diff --git a/src-docs/src/views/datagrid/advanced/custom_renderer.tsx b/src-docs/src/views/datagrid/advanced/custom_renderer.tsx
index 289d59f09a5..5f2359059af 100644
--- a/src-docs/src/views/datagrid/advanced/custom_renderer.tsx
+++ b/src-docs/src/views/datagrid/advanced/custom_renderer.tsx
@@ -24,11 +24,11 @@ import {
const raw_data: Array<{ [key: string]: string }> = [];
for (let i = 1; i < 100; i++) {
raw_data.push({
- name: `${faker.name.lastName()}, ${faker.name.firstName()}`,
+ name: `${faker.person.lastName()}, ${faker.person.firstName()}`,
email: faker.internet.email(),
- location: `${faker.address.city()}, ${faker.address.country()}`,
+ location: `${faker.location.city()}, ${faker.location.country()}`,
date: `${faker.date.past()}`,
- amount: faker.commerce.price(1, 1000, 2, '$'),
+ amount: faker.commerce.price({ min: 1, max: 1000, dec: 2, symbol: '$' }),
});
}
diff --git a/src-docs/src/views/datagrid/advanced/in_memory.js b/src-docs/src/views/datagrid/advanced/in_memory.js
index b962d1629fc..45069d0bb07 100644
--- a/src-docs/src/views/datagrid/advanced/in_memory.js
+++ b/src-docs/src/views/datagrid/advanced/in_memory.js
@@ -35,16 +35,16 @@ const raw_data = [];
for (let i = 1; i < 100; i++) {
raw_data.push({
- name: `${faker.name.lastName()}, ${faker.name.firstName()} ${faker.name.suffix()}`,
+ name: `${faker.person.lastName()}, ${faker.person.firstName()} ${faker.person.suffix()}`,
email: {faker.internet.email()},
location: (
- {`${faker.address.city()}, `}
- {faker.address.country()}
+ {`${faker.location.city()}, `}
+ {faker.location.country()}
),
date: `${faker.date.past()}`,
- account: faker.finance.account(),
+ account: faker.finance.accountNumber(),
amount: faker.commerce.price(),
phone: faker.phone.number(),
version: faker.system.semver(),
diff --git a/src-docs/src/views/datagrid/advanced/in_memory_enhancements.js b/src-docs/src/views/datagrid/advanced/in_memory_enhancements.js
index 437ea0fd884..96cf8bd064f 100644
--- a/src-docs/src/views/datagrid/advanced/in_memory_enhancements.js
+++ b/src-docs/src/views/datagrid/advanced/in_memory_enhancements.js
@@ -33,16 +33,16 @@ const raw_data = [];
for (let i = 1; i < 100; i++) {
raw_data.push({
- name: `${faker.name.lastName()}, ${faker.name.firstName()} ${faker.name.suffix()}`,
+ name: `${faker.person.lastName()}, ${faker.person.firstName()} ${faker.person.suffix()}`,
email: {faker.internet.email()},
location: (
- {`${faker.address.city()}, `}
- {faker.address.country()}
+ {`${faker.location.city()}, `}
+ {faker.location.country()}
),
date: `${faker.date.past()}`,
- account: faker.finance.account(),
+ account: faker.finance.accountNumber(),
amount: faker.commerce.price(),
phone: faker.phone.number(),
version: faker.system.semver(),
diff --git a/src-docs/src/views/datagrid/advanced/in_memory_pagination.js b/src-docs/src/views/datagrid/advanced/in_memory_pagination.js
index 824ced39c49..a4f744d077f 100644
--- a/src-docs/src/views/datagrid/advanced/in_memory_pagination.js
+++ b/src-docs/src/views/datagrid/advanced/in_memory_pagination.js
@@ -34,16 +34,16 @@ const raw_data = [];
for (let i = 1; i < 100; i++) {
raw_data.push({
- name: `${faker.name.lastName()}, ${faker.name.firstName()} ${faker.name.suffix()}`,
+ name: `${faker.person.lastName()}, ${faker.person.firstName()} ${faker.person.suffix()}`,
email: {faker.internet.email()},
location: (
- {`${faker.address.city()}, `}
- {faker.address.country()}
+ {`${faker.location.city()}, `}
+ {faker.location.country()}
),
date: `${faker.date.past()}`,
- account: faker.finance.account(),
+ account: faker.finance.accountNumber(),
amount: faker.commerce.price(),
phone: faker.phone.number(),
version: faker.system.semver(),
diff --git a/src-docs/src/views/datagrid/advanced/in_memory_sorting.js b/src-docs/src/views/datagrid/advanced/in_memory_sorting.js
index 4e9ece2c11c..f89e8ceb4b9 100644
--- a/src-docs/src/views/datagrid/advanced/in_memory_sorting.js
+++ b/src-docs/src/views/datagrid/advanced/in_memory_sorting.js
@@ -34,16 +34,16 @@ const raw_data = [];
for (let i = 1; i < 100; i++) {
raw_data.push({
- name: `${faker.name.lastName()}, ${faker.name.firstName()} ${faker.name.suffix()}`,
+ name: `${faker.person.lastName()}, ${faker.person.firstName()} ${faker.person.suffix()}`,
email: {faker.internet.email()},
location: (
- {`${faker.address.city()}, `}
- {faker.address.country()}
+ {`${faker.location.city()}, `}
+ {faker.location.country()}
),
date: `${faker.date.past()}`,
- account: faker.finance.account(),
+ account: faker.finance.accountNumber(),
amount: faker.commerce.price(),
phone: faker.phone.number(),
version: faker.system.semver(),
diff --git a/src-docs/src/views/datagrid/advanced/ref.tsx b/src-docs/src/views/datagrid/advanced/ref.tsx
index e82eb22bbf2..256ca249ec1 100644
--- a/src-docs/src/views/datagrid/advanced/ref.tsx
+++ b/src-docs/src/views/datagrid/advanced/ref.tsx
@@ -25,10 +25,10 @@ import {
const raw_data: Array<{ [key: string]: string }> = [];
for (let i = 1; i < 100; i++) {
raw_data.push({
- name: `${faker.name.lastName()}, ${faker.name.firstName()}`,
+ name: `${faker.person.lastName()}, ${faker.person.firstName()}`,
email: faker.internet.email(),
- location: `${faker.address.city()}, ${faker.address.country()}`,
- account: faker.finance.account(),
+ location: `${faker.location.city()}, ${faker.location.country()}`,
+ account: faker.finance.accountNumber(),
date: `${faker.date.past()}`,
});
}
diff --git a/src-docs/src/views/datagrid/basics/container.js b/src-docs/src/views/datagrid/basics/container.js
index d90206f0885..eee0013bd07 100644
--- a/src-docs/src/views/datagrid/basics/container.js
+++ b/src-docs/src/views/datagrid/basics/container.js
@@ -25,11 +25,11 @@ const data = [];
for (let i = 1; i < 20; i++) {
data.push({
- name: `${faker.name.lastName()}, ${faker.name.firstName()} ${faker.name.suffix()}`,
+ name: `${faker.person.lastName()}, ${faker.person.firstName()} ${faker.person.suffix()}`,
email: faker.internet.email(),
- city: {faker.address.city()},
- country: faker.address.country(),
- account: faker.finance.account(),
+ city: {faker.location.city()},
+ country: faker.location.country(),
+ account: faker.finance.accountNumber(),
});
}
diff --git a/src-docs/src/views/datagrid/basics/datagrid.js b/src-docs/src/views/datagrid/basics/datagrid.js
index a8898bb14b7..9da9bc14ffb 100644
--- a/src-docs/src/views/datagrid/basics/datagrid.js
+++ b/src-docs/src/views/datagrid/basics/datagrid.js
@@ -41,8 +41,8 @@ const raw_data = [];
for (let i = 1; i < 100; i++) {
const email = faker.internet.email();
- const name = `${faker.name.lastName()}, ${faker.name.firstName()}`;
- const suffix = faker.name.suffix();
+ const name = `${faker.person.lastName()}, ${faker.person.firstName()}`;
+ const suffix = faker.person.suffix();
raw_data.push({
name: {
formatted: `${name} ${suffix}`,
@@ -54,12 +54,12 @@ for (let i = 1; i < 100; i++) {
},
location: (
- {`${faker.address.city()}, `}
- {faker.address.country()}
+ {`${faker.location.city()}, `}
+ {faker.location.country()}
),
date: `${faker.date.past()}`,
- account: faker.finance.account(),
+ account: faker.finance.accountNumber(),
amount: faker.commerce.price(),
phone: faker.phone.number(),
version: faker.system.semver(),
diff --git a/src-docs/src/views/datagrid/basics/flex.js b/src-docs/src/views/datagrid/basics/flex.js
index 2b32608c7ee..2e025f8f1a9 100644
--- a/src-docs/src/views/datagrid/basics/flex.js
+++ b/src-docs/src/views/datagrid/basics/flex.js
@@ -31,11 +31,11 @@ const data = [];
for (let i = 1; i < 20; i++) {
data.push({
- name: `${faker.name.lastName()}, ${faker.name.firstName()} ${faker.name.suffix()}`,
+ name: `${faker.person.lastName()}, ${faker.person.firstName()} ${faker.person.suffix()}`,
email: faker.internet.email(),
- city: {faker.address.city()},
- country: faker.address.country(),
- account: faker.finance.account(),
+ city: {faker.location.city()},
+ country: faker.location.country(),
+ account: faker.finance.accountNumber(),
});
}
diff --git a/src-docs/src/views/datagrid/basics/virtualization.js b/src-docs/src/views/datagrid/basics/virtualization.js
index 1ffdf895f3c..e07ae2428e9 100644
--- a/src-docs/src/views/datagrid/basics/virtualization.js
+++ b/src-docs/src/views/datagrid/basics/virtualization.js
@@ -67,19 +67,21 @@ function RenderCellValue({ rowIndex, columnId }) {
if (data[rowIndex] == null) {
const email = faker.internet.email();
- const name = `${faker.name.lastName()}, ${faker.name.firstName()}`;
- const suffix = faker.name.suffix();
+ const name = `${faker.person.lastName()}, ${faker.person.firstName()}`;
+ const suffix = faker.person.suffix();
data[rowIndex] = {
name: `${name} ${suffix}`,
email: {email},
location: (
- {`${faker.address.city()}, `}
- {faker.address.country()}
+ {`${faker.location.city()}, `}
+
+ {faker.location.country()}
+
),
date: `${faker.date.past()}`,
- account: faker.finance.account(),
+ account: faker.finance.accountNumber(),
amount: faker.commerce.price(),
phone: faker.phone.number(),
version: faker.system.semver(),
diff --git a/src-docs/src/views/datagrid/basics/virtualization_constrained.js b/src-docs/src/views/datagrid/basics/virtualization_constrained.js
index 3b695bc8d6e..6bdc959f88e 100644
--- a/src-docs/src/views/datagrid/basics/virtualization_constrained.js
+++ b/src-docs/src/views/datagrid/basics/virtualization_constrained.js
@@ -65,19 +65,21 @@ function RenderCellValue({ rowIndex, columnId }) {
if (data[rowIndex] == null) {
const email = faker.internet.email();
- const name = `${faker.name.lastName()}, ${faker.name.firstName()}`;
- const suffix = faker.name.suffix();
+ const name = `${faker.person.lastName()}, ${faker.person.firstName()}`;
+ const suffix = faker.person.suffix();
data[rowIndex] = {
name: `${name} ${suffix}`,
email: {email},
location: (
- {`${faker.address.city()}, `}
- {faker.address.country()}
+ {`${faker.location.city()}, `}
+
+ {faker.location.country()}
+
),
date: `${faker.date.past()}`,
- account: faker.finance.account(),
+ account: faker.finance.accountNumber(),
amount: faker.commerce.price(),
phone: faker.phone.number(),
version: faker.system.semver(),
diff --git a/src-docs/src/views/datagrid/cells_popovers/cell_popover_is_details.tsx b/src-docs/src/views/datagrid/cells_popovers/cell_popover_is_details.tsx
index b0a9fdd9a65..2967fcdde0e 100644
--- a/src-docs/src/views/datagrid/cells_popovers/cell_popover_is_details.tsx
+++ b/src-docs/src/views/datagrid/cells_popovers/cell_popover_is_details.tsx
@@ -46,11 +46,11 @@ const columns: EuiDataGridColumn[] = [
const data: Array<{ [key: string]: ReactNode }> = [];
for (let i = 1; i < 5; i++) {
data.push({
- default: `${faker.name.lastName()}, ${faker.name.firstName()} ${faker.name.suffix()}`,
+ default: `${faker.person.lastName()}, ${faker.person.firstName()} ${faker.person.suffix()}`,
datetime: `${faker.date.past()}`,
json: JSON.stringify([
{
- numeric: faker.finance.account(),
+ numeric: faker.finance.accountNumber(),
currency: faker.finance.amount(),
date: `${faker.date.past()}`,
},
diff --git a/src-docs/src/views/datagrid/cells_popovers/cell_popover_is_expandable.tsx b/src-docs/src/views/datagrid/cells_popovers/cell_popover_is_expandable.tsx
index d3a8d49456a..deaf3080358 100644
--- a/src-docs/src/views/datagrid/cells_popovers/cell_popover_is_expandable.tsx
+++ b/src-docs/src/views/datagrid/cells_popovers/cell_popover_is_expandable.tsx
@@ -43,9 +43,9 @@ const columns: EuiDataGridColumn[] = [
const data: Array<{ [key: string]: ReactNode }> = [];
for (let i = 1; i < 5; i++) {
data.push({
- firstName: faker.name.firstName(),
- lastName: faker.name.lastName(),
- suffix: faker.name.suffix(),
+ firstName: faker.person.firstName(),
+ lastName: faker.person.lastName(),
+ suffix: faker.person.suffix(),
boolean: `${faker.datatype.boolean()}`,
});
}
diff --git a/src-docs/src/views/datagrid/cells_popovers/cell_popover_rendercellpopover.tsx b/src-docs/src/views/datagrid/cells_popovers/cell_popover_rendercellpopover.tsx
index 11a9eea4968..6171f46f9d1 100644
--- a/src-docs/src/views/datagrid/cells_popovers/cell_popover_rendercellpopover.tsx
+++ b/src-docs/src/views/datagrid/cells_popovers/cell_popover_rendercellpopover.tsx
@@ -52,11 +52,11 @@ const columns: EuiDataGridColumn[] = [
const data: Array<{ [key: string]: ReactNode }> = [];
for (let i = 1; i < 5; i++) {
data.push({
- default: `${faker.name.lastName()}, ${faker.name.firstName()} ${faker.name.suffix()}`,
+ default: `${faker.person.lastName()}, ${faker.person.firstName()} ${faker.person.suffix()}`,
datetime: `${faker.date.past()}`,
json: JSON.stringify([
{
- numeric: faker.finance.account(),
+ numeric: faker.finance.accountNumber(),
currency: faker.finance.amount(),
date: `${faker.date.past()}`,
},
diff --git a/src-docs/src/views/datagrid/cells_popovers/column_cell_actions.js b/src-docs/src/views/datagrid/cells_popovers/column_cell_actions.js
index 596300865aa..9ccb7c8cc31 100644
--- a/src-docs/src/views/datagrid/cells_popovers/column_cell_actions.js
+++ b/src-docs/src/views/datagrid/cells_popovers/column_cell_actions.js
@@ -108,14 +108,14 @@ for (let i = 1; i < 5; i++) {
avatar: (
),
- name: `${faker.name.lastName()}, ${faker.name.firstName()} ${faker.name.suffix()}`,
+ name: `${faker.person.lastName()}, ${faker.person.firstName()} ${faker.person.suffix()}`,
email: faker.internet.email(),
- city: faker.address.city(),
- country: faker.address.country(),
- account: faker.finance.account(),
+ city: faker.location.city(),
+ country: faker.location.country(),
+ account: faker.finance.accountNumber(),
});
}
diff --git a/src-docs/src/views/datagrid/cells_popovers/focus.js b/src-docs/src/views/datagrid/cells_popovers/focus.js
index 4d1e1300c38..1653d10e77b 100644
--- a/src-docs/src/views/datagrid/cells_popovers/focus.js
+++ b/src-docs/src/views/datagrid/cells_popovers/focus.js
@@ -17,8 +17,8 @@ const data = [];
for (let i = 0; i < 10; i++) {
data.push([
- {faker.name.firstName()},
- {faker.name.firstName()},
+ {faker.person.firstName()},
+ {faker.person.firstName()},
diff --git a/src-docs/src/views/datagrid/cells_popovers/visible_cell_actions.tsx b/src-docs/src/views/datagrid/cells_popovers/visible_cell_actions.tsx
index a11466891da..91d76498619 100644
--- a/src-docs/src/views/datagrid/cells_popovers/visible_cell_actions.tsx
+++ b/src-docs/src/views/datagrid/cells_popovers/visible_cell_actions.tsx
@@ -66,11 +66,11 @@ const columns: EuiDataGridColumn[] = [
const data: Array<{ [key: string]: ReactNode }> = [];
for (let i = 1; i < 5; i++) {
data.push({
- default: `${faker.name.lastName()}, ${faker.name.firstName()} ${faker.name.suffix()}`,
+ default: `${faker.person.lastName()}, ${faker.person.firstName()} ${faker.person.suffix()}`,
datetime: `${faker.date.past()}`,
json: JSON.stringify([
{
- numeric: faker.finance.account(),
+ numeric: faker.finance.accountNumber(),
currency: faker.finance.amount(),
date: `${faker.date.past()}`,
},
diff --git a/src-docs/src/views/datagrid/schema_columns/column_actions.js b/src-docs/src/views/datagrid/schema_columns/column_actions.js
index dd0f444057f..f4d4d9a95b5 100644
--- a/src-docs/src/views/datagrid/schema_columns/column_actions.js
+++ b/src-docs/src/views/datagrid/schema_columns/column_actions.js
@@ -57,14 +57,14 @@ for (let i = 1; i < 5; i++) {
avatar: (
),
- name: `${faker.name.lastName()}, ${faker.name.firstName()} ${faker.name.suffix()}`,
+ name: `${faker.person.lastName()}, ${faker.person.firstName()} ${faker.person.suffix()}`,
email: faker.internet.email(),
- city: faker.address.city(),
- country: faker.address.country(),
- account: faker.finance.account(),
+ city: faker.location.city(),
+ country: faker.location.country(),
+ account: faker.finance.accountNumber(),
});
}
diff --git a/src-docs/src/views/datagrid/schema_columns/column_widths.js b/src-docs/src/views/datagrid/schema_columns/column_widths.js
index f76c1e18a5f..fd3e11e4d60 100644
--- a/src-docs/src/views/datagrid/schema_columns/column_widths.js
+++ b/src-docs/src/views/datagrid/schema_columns/column_widths.js
@@ -34,14 +34,14 @@ for (let i = 1; i < 5; i++) {
avatar: (
),
- name: `${faker.name.lastName()}, ${faker.name.firstName()} ${faker.name.suffix()}`,
+ name: `${faker.person.lastName()}, ${faker.person.firstName()} ${faker.person.suffix()}`,
email: faker.internet.email(),
- city: faker.address.city(),
- country: faker.address.country(),
- account: faker.finance.account(),
+ city: faker.location.city(),
+ country: faker.location.country(),
+ account: faker.finance.accountNumber(),
});
}
diff --git a/src-docs/src/views/datagrid/schema_columns/control_columns.js b/src-docs/src/views/datagrid/schema_columns/control_columns.js
index c6d45022939..f937d52e251 100644
--- a/src-docs/src/views/datagrid/schema_columns/control_columns.js
+++ b/src-docs/src/views/datagrid/schema_columns/control_columns.js
@@ -63,14 +63,14 @@ for (let i = 1; i < 500; i++) {
avatar: (
),
- name: `${faker.name.lastName()}, ${faker.name.firstName()} ${faker.name.suffix()}`,
+ name: `${faker.person.lastName()}, ${faker.person.firstName()} ${faker.person.suffix()}`,
email: faker.internet.email(),
- city: faker.address.city(),
- country: faker.address.country(),
- account: faker.finance.account(),
+ city: faker.location.city(),
+ country: faker.location.country(),
+ account: faker.finance.accountNumber(),
});
}
diff --git a/src-docs/src/views/datagrid/schema_columns/footer_row.js b/src-docs/src/views/datagrid/schema_columns/footer_row.js
index c06ed3fbb8e..99c9e8892d3 100644
--- a/src-docs/src/views/datagrid/schema_columns/footer_row.js
+++ b/src-docs/src/views/datagrid/schema_columns/footer_row.js
@@ -14,7 +14,7 @@ const raw_data = [];
for (let i = 1; i < 20; i++) {
raw_data.push({
- name: `${faker.name.lastName()}, ${faker.name.firstName()} ${faker.name.suffix()}`,
+ name: `${faker.person.lastName()}, ${faker.person.firstName()} ${faker.person.suffix()}`,
date: `${faker.date.past()}`,
amount: `$${faker.commerce.price()}`,
phone: faker.phone.number(),
diff --git a/src-docs/src/views/datagrid/schema_columns/schema.js b/src-docs/src/views/datagrid/schema_columns/schema.js
index 7a4a0ff968e..2b1a428d87a 100644
--- a/src-docs/src/views/datagrid/schema_columns/schema.js
+++ b/src-docs/src/views/datagrid/schema_columns/schema.js
@@ -33,16 +33,16 @@ const storeData = [];
for (let i = 1; i < 5; i++) {
storeData.push({
- default: `${faker.name.lastName()}, ${faker.name.firstName()} ${faker.name.suffix()}`,
+ default: `${faker.person.lastName()}, ${faker.person.firstName()} ${faker.person.suffix()}`,
boolean: `${faker.datatype.boolean()}`,
- numeric: faker.finance.account(),
+ numeric: faker.finance.accountNumber(),
currency: faker.finance.amount(),
datetime: `${faker.date.past()}`,
json: JSON.stringify([
{
- default: `${faker.name.lastName()}, ${faker.name.firstName()} ${faker.name.suffix()}`,
+ default: `${faker.person.lastName()}, ${faker.person.firstName()} ${faker.person.suffix()}`,
boolean: `${faker.datatype.boolean()}`,
- numeric: faker.finance.account(),
+ numeric: faker.finance.accountNumber(),
currency: faker.finance.amount(),
date: `${faker.date.past()}`,
custom: `${faker.date.past()}`,
diff --git a/src-docs/src/views/datagrid/styling/display_callbacks.js b/src-docs/src/views/datagrid/styling/display_callbacks.js
index 0a863784b18..2e8368d7b36 100644
--- a/src-docs/src/views/datagrid/styling/display_callbacks.js
+++ b/src-docs/src/views/datagrid/styling/display_callbacks.js
@@ -13,11 +13,11 @@ const columns = [
const data = [];
for (let i = 1; i <= 5; i++) {
data.push({
- name: `${faker.name.lastName()}, ${faker.name.firstName()} ${faker.name.suffix()}`,
+ name: `${faker.person.lastName()}, ${faker.person.firstName()} ${faker.person.suffix()}`,
email: faker.internet.email(),
- city: faker.address.city(),
- country: faker.address.country(),
- account: faker.finance.account(),
+ city: faker.location.city(),
+ country: faker.location.country(),
+ account: faker.finance.accountNumber(),
});
}
diff --git a/src-docs/src/views/datagrid/styling/row_classes.js b/src-docs/src/views/datagrid/styling/row_classes.js
index cc9c91bf21e..d370492fcdb 100644
--- a/src-docs/src/views/datagrid/styling/row_classes.js
+++ b/src-docs/src/views/datagrid/styling/row_classes.js
@@ -29,11 +29,11 @@ const DEMO_ROW = 2;
const data = [];
for (let i = 1; i <= 10; i++) {
data.push({
- name: `${faker.name.lastName()}, ${faker.name.firstName()} ${faker.name.suffix()}`,
+ name: `${faker.person.lastName()}, ${faker.person.firstName()} ${faker.person.suffix()}`,
email: faker.internet.email(),
- city: faker.address.city(),
- country: faker.address.country(),
- account: faker.finance.account(),
+ city: faker.location.city(),
+ country: faker.location.country(),
+ account: faker.finance.accountNumber(),
});
}
data[DEMO_ROW].account = 'OVERDUE';
diff --git a/src-docs/src/views/datagrid/styling/styling_grid.js b/src-docs/src/views/datagrid/styling/styling_grid.js
index 540cbb6a578..17d379de563 100644
--- a/src-docs/src/views/datagrid/styling/styling_grid.js
+++ b/src-docs/src/views/datagrid/styling/styling_grid.js
@@ -32,14 +32,14 @@ for (let i = 1; i < 6; i++) {
avatar: (
),
- name: `${faker.name.lastName()}, ${faker.name.firstName()} ${faker.name.suffix()}`,
+ name: `${faker.person.lastName()}, ${faker.person.firstName()} ${faker.person.suffix()}`,
email: faker.internet.email(),
- city: faker.address.city(),
- country: faker.address.country(),
- account: faker.finance.account(),
+ city: faker.location.city(),
+ country: faker.location.country(),
+ account: faker.finance.accountNumber(),
});
}
diff --git a/src-docs/src/views/datagrid/toolbar/_grid.js b/src-docs/src/views/datagrid/toolbar/_grid.js
index 0d6e8b5d3eb..b1faa80f8b2 100644
--- a/src-docs/src/views/datagrid/toolbar/_grid.js
+++ b/src-docs/src/views/datagrid/toolbar/_grid.js
@@ -32,14 +32,14 @@ for (let i = 1; i < 6; i++) {
avatar: (
),
- name: `${faker.name.lastName()}, ${faker.name.firstName()} ${faker.name.suffix()}`,
+ name: `${faker.person.lastName()}, ${faker.person.firstName()} ${faker.person.suffix()}`,
email: faker.internet.email(),
- city: faker.address.city(),
- country: faker.address.country(),
- account: faker.finance.account(),
+ city: faker.location.city(),
+ country: faker.location.country(),
+ account: faker.finance.accountNumber(),
});
}
diff --git a/src-docs/src/views/datagrid/toolbar/additional_controls.tsx b/src-docs/src/views/datagrid/toolbar/additional_controls.tsx
index 606e3c21885..d91c17d43d8 100644
--- a/src-docs/src/views/datagrid/toolbar/additional_controls.tsx
+++ b/src-docs/src/views/datagrid/toolbar/additional_controls.tsx
@@ -41,11 +41,11 @@ const data: any[] = [];
for (let i = 1; i < 20; i++) {
data.push({
- name: `${faker.name.lastName()}, ${faker.name.firstName()} ${faker.name.suffix()}`,
+ name: `${faker.person.lastName()}, ${faker.person.firstName()} ${faker.person.suffix()}`,
email: faker.internet.email(),
- city: {faker.address.city()},
- country: faker.address.country(),
- account: faker.finance.account(),
+ city: {faker.location.city()},
+ country: faker.location.country(),
+ account: faker.finance.accountNumber(),
});
}
diff --git a/src-docs/src/views/pagination/paginated_table.js b/src-docs/src/views/pagination/paginated_table.js
index 0b04fc32e72..12649338de3 100644
--- a/src-docs/src/views/pagination/paginated_table.js
+++ b/src-docs/src/views/pagination/paginated_table.js
@@ -16,8 +16,8 @@ const PAGE_COUNT_KEY = 'paginationGuide_pageCount';
const raw_data = [];
for (let i = 1; i < 25; i++) {
- const name = `${faker.name.lastName()}, ${faker.name.firstName()}`;
- const suffix = faker.name.suffix();
+ const name = `${faker.person.lastName()}, ${faker.person.firstName()}`;
+ const suffix = faker.person.suffix();
raw_data.push({
name: {
formatted: `${name} ${suffix}`,
@@ -25,8 +25,8 @@ for (let i = 1; i < 25; i++) {
},
location: (
- {`${faker.address.city()}, `}
- {faker.address.country()}
+ {`${faker.location.city()}, `}
+ {faker.location.country()}
),
date: `${faker.date.past()}`,
diff --git a/src-docs/src/views/tables/actions/actions.tsx b/src-docs/src/views/tables/actions/actions.tsx
index 271a34a35bb..86ac089a0af 100644
--- a/src-docs/src/views/tables/actions/actions.tsx
+++ b/src-docs/src/views/tables/actions/actions.tsx
@@ -37,14 +37,14 @@ const users: User[] = [];
for (let i = 0; i < 20; i++) {
users.push({
id: i + 1,
- firstName: faker.name.firstName(),
- lastName: faker.name.lastName(),
+ firstName: faker.person.firstName(),
+ lastName: faker.person.lastName(),
github: faker.internet.userName(),
dateOfBirth: faker.date.past(),
online: faker.datatype.boolean(),
location: {
- city: faker.address.city(),
- country: faker.address.country(),
+ city: faker.location.city(),
+ country: faker.location.country(),
},
});
}
diff --git a/src-docs/src/views/tables/auto/auto.tsx b/src-docs/src/views/tables/auto/auto.tsx
index c825a1dcd9e..0344bf816b0 100644
--- a/src-docs/src/views/tables/auto/auto.tsx
+++ b/src-docs/src/views/tables/auto/auto.tsx
@@ -28,12 +28,14 @@ const users: User[] = [];
for (let i = 0; i < 10; i++) {
users.push({
id: i + 1,
- firstName: faker.name.firstName(),
- lastName: faker.name.lastName(),
+ firstName: faker.person.firstName(),
+ lastName: faker.person.lastName(),
github: faker.internet.userName(),
dateOfBirth: faker.date.past(),
- jobTitle: faker.name.jobTitle(),
- address: `${faker.address.streetAddress()} ${faker.address.cityName()} ${faker.address.stateAbbr()} ${faker.address.zipCode()}`,
+ jobTitle: faker.person.jobTitle(),
+ address: `${faker.location.streetAddress()} ${faker.location.city()} ${faker.location.state(
+ { abbreviated: true }
+ )} ${faker.location.zipCode()}`,
});
}
diff --git a/src-docs/src/views/tables/basic/basic.tsx b/src-docs/src/views/tables/basic/basic.tsx
index f7a3f4ca1f6..4e58f781fe5 100644
--- a/src-docs/src/views/tables/basic/basic.tsx
+++ b/src-docs/src/views/tables/basic/basic.tsx
@@ -27,15 +27,15 @@ const users: User[] = [];
for (let i = 0; i < 10; i++) {
users.push({
- id: faker.datatype.uuid(),
- firstName: faker.name.firstName(),
- lastName: faker.name.lastName(),
+ id: faker.string.uuid(),
+ firstName: faker.person.firstName(),
+ lastName: faker.person.lastName(),
github: faker.internet.userName(),
dateOfBirth: faker.date.past(),
online: faker.datatype.boolean(),
location: {
- city: faker.address.city(),
- country: faker.address.country(),
+ city: faker.location.city(),
+ country: faker.location.country(),
},
});
}
diff --git a/src-docs/src/views/tables/expanding_rows/expanding_rows.tsx b/src-docs/src/views/tables/expanding_rows/expanding_rows.tsx
index 1ede7b2ad9c..dbcdf236090 100644
--- a/src-docs/src/views/tables/expanding_rows/expanding_rows.tsx
+++ b/src-docs/src/views/tables/expanding_rows/expanding_rows.tsx
@@ -32,14 +32,14 @@ const users: User[] = [];
for (let i = 0; i < 20; i++) {
users.push({
id: i + 1,
- firstName: faker.name.firstName(),
- lastName: faker.name.lastName(),
+ firstName: faker.person.firstName(),
+ lastName: faker.person.lastName(),
github: faker.internet.userName(),
dateOfBirth: faker.date.past(),
online: faker.datatype.boolean(),
location: {
- city: faker.address.city(),
- country: faker.address.country(),
+ city: faker.location.city(),
+ country: faker.location.country(),
},
});
}
diff --git a/src-docs/src/views/tables/footer/footer.tsx b/src-docs/src/views/tables/footer/footer.tsx
index 5275bbd6e34..7909e53d8d9 100644
--- a/src-docs/src/views/tables/footer/footer.tsx
+++ b/src-docs/src/views/tables/footer/footer.tsx
@@ -30,14 +30,14 @@ const users: User[] = [];
for (let i = 0; i < 20; i++) {
users.push({
id: i + 1,
- firstName: faker.name.firstName(),
- lastName: faker.name.lastName(),
+ firstName: faker.person.firstName(),
+ lastName: faker.person.lastName(),
github: faker.internet.userName(),
dateOfBirth: faker.date.past(),
online: faker.datatype.boolean(),
location: {
- city: faker.address.city(),
- country: faker.address.country(),
+ city: faker.location.city(),
+ country: faker.location.country(),
},
});
}
diff --git a/src-docs/src/views/tables/in_memory/in_memory.tsx b/src-docs/src/views/tables/in_memory/in_memory.tsx
index 936a1f63d2c..8bfe861bf6a 100644
--- a/src-docs/src/views/tables/in_memory/in_memory.tsx
+++ b/src-docs/src/views/tables/in_memory/in_memory.tsx
@@ -27,14 +27,14 @@ const users: User[] = [];
for (let i = 0; i < 20; i++) {
users.push({
id: i + 1,
- firstName: faker.name.firstName(),
- lastName: faker.name.lastName(),
+ firstName: faker.person.firstName(),
+ lastName: faker.person.lastName(),
github: faker.internet.userName(),
dateOfBirth: faker.date.past(),
online: faker.datatype.boolean(),
location: {
- city: faker.address.city(),
- country: faker.address.country(),
+ city: faker.location.city(),
+ country: faker.location.country(),
},
});
}
diff --git a/src-docs/src/views/tables/in_memory/in_memory_controlled_pagination.tsx b/src-docs/src/views/tables/in_memory/in_memory_controlled_pagination.tsx
index 55cc6b82032..0f6a4004073 100644
--- a/src-docs/src/views/tables/in_memory/in_memory_controlled_pagination.tsx
+++ b/src-docs/src/views/tables/in_memory/in_memory_controlled_pagination.tsx
@@ -29,14 +29,14 @@ const userData: User[] = [];
for (let i = 0; i < 20; i++) {
userData.push({
id: i + 1,
- firstName: faker.name.firstName(),
- lastName: faker.name.lastName(),
+ firstName: faker.person.firstName(),
+ lastName: faker.person.lastName(),
github: faker.internet.userName(),
dateOfBirth: faker.date.past(),
online: faker.datatype.boolean(),
location: {
- city: faker.address.city(),
- country: faker.address.country(),
+ city: faker.location.city(),
+ country: faker.location.country(),
},
});
}
diff --git a/src-docs/src/views/tables/in_memory/in_memory_search_callback.tsx b/src-docs/src/views/tables/in_memory/in_memory_search_callback.tsx
index 391f010a980..a0e70f63780 100644
--- a/src-docs/src/views/tables/in_memory/in_memory_search_callback.tsx
+++ b/src-docs/src/views/tables/in_memory/in_memory_search_callback.tsx
@@ -28,14 +28,14 @@ const users: User[] = [];
for (let i = 0; i < 20; i++) {
users.push({
id: i + 1,
- firstName: faker.name.firstName(),
- lastName: faker.name.lastName(),
+ firstName: faker.person.firstName(),
+ lastName: faker.person.lastName(),
github: faker.internet.userName(),
dateOfBirth: faker.date.past(),
online: faker.datatype.boolean(),
location: {
- city: faker.address.city(),
- country: faker.address.country(),
+ city: faker.location.city(),
+ country: faker.location.country(),
},
});
}
diff --git a/src-docs/src/views/tables/in_memory/in_memory_search_external.tsx b/src-docs/src/views/tables/in_memory/in_memory_search_external.tsx
index e0fff0d4cc5..6cdc9d690ae 100644
--- a/src-docs/src/views/tables/in_memory/in_memory_search_external.tsx
+++ b/src-docs/src/views/tables/in_memory/in_memory_search_external.tsx
@@ -59,8 +59,8 @@ for (let i = 0; i < 20; i++) {
users.push({
id: i + 1,
- firstName: faker.name.firstName(),
- lastName: faker.name.lastName(),
+ firstName: faker.person.firstName(),
+ lastName: faker.person.lastName(),
github: faker.internet.userName(),
dateOfBirth: faker.date.past(),
online: faker.datatype.boolean(),
diff --git a/src-docs/src/views/tables/in_memory/in_memory_selection.tsx b/src-docs/src/views/tables/in_memory/in_memory_selection.tsx
index 47cd95d0dfe..5d01925f869 100644
--- a/src-docs/src/views/tables/in_memory/in_memory_selection.tsx
+++ b/src-docs/src/views/tables/in_memory/in_memory_selection.tsx
@@ -34,14 +34,14 @@ const userData: User[] = [];
for (let i = 0; i < 20; i++) {
userData.push({
id: i + 1,
- firstName: faker.name.firstName(),
- lastName: faker.name.lastName(),
+ firstName: faker.person.firstName(),
+ lastName: faker.person.lastName(),
github: faker.internet.userName(),
dateOfBirth: faker.date.past(),
online: faker.datatype.boolean(),
location: {
- city: faker.address.city(),
- country: faker.address.country(),
+ city: faker.location.city(),
+ country: faker.location.country(),
},
});
}
diff --git a/src-docs/src/views/tables/mobile/mobile.tsx b/src-docs/src/views/tables/mobile/mobile.tsx
index 75fd3167ab1..dd7bf0b5d9c 100644
--- a/src-docs/src/views/tables/mobile/mobile.tsx
+++ b/src-docs/src/views/tables/mobile/mobile.tsx
@@ -34,14 +34,14 @@ const users: User[] = [];
for (let i = 0; i < 20; i++) {
users.push({
id: i + 1,
- firstName: faker.name.firstName(),
- lastName: faker.name.lastName(),
+ firstName: faker.person.firstName(),
+ lastName: faker.person.lastName(),
github: faker.internet.userName(),
dateOfBirth: faker.date.past(),
online: faker.datatype.boolean(),
location: {
- city: faker.address.city(),
- country: faker.address.country(),
+ city: faker.location.city(),
+ country: faker.location.country(),
},
});
}
diff --git a/src-docs/src/views/tables/paginated/paginated.tsx b/src-docs/src/views/tables/paginated/paginated.tsx
index 5fe88f3a262..75cc28fc5d7 100644
--- a/src-docs/src/views/tables/paginated/paginated.tsx
+++ b/src-docs/src/views/tables/paginated/paginated.tsx
@@ -32,15 +32,15 @@ const users: User[] = [];
for (let i = 0; i < 20; i++) {
users.push({
- id: faker.datatype.uuid(),
- firstName: faker.name.firstName(),
- lastName: faker.name.lastName(),
+ id: faker.string.uuid(),
+ firstName: faker.person.firstName(),
+ lastName: faker.person.lastName(),
github: faker.internet.userName(),
dateOfBirth: faker.date.past(),
online: faker.datatype.boolean(),
location: {
- city: faker.address.city(),
- country: faker.address.country(),
+ city: faker.location.city(),
+ country: faker.location.country(),
},
});
}
diff --git a/src-docs/src/views/tables/selection/selection.tsx b/src-docs/src/views/tables/selection/selection.tsx
index 014af8ee349..fe6484debd6 100644
--- a/src-docs/src/views/tables/selection/selection.tsx
+++ b/src-docs/src/views/tables/selection/selection.tsx
@@ -34,14 +34,14 @@ const users: User[] = [];
for (let i = 0; i < 20; i++) {
users.push({
id: i + 1,
- firstName: faker.name.firstName(),
- lastName: faker.name.lastName(),
+ firstName: faker.person.firstName(),
+ lastName: faker.person.lastName(),
github: faker.internet.userName(),
dateOfBirth: faker.date.past(),
online: faker.datatype.boolean(),
location: {
- city: faker.address.city(),
- country: faker.address.country(),
+ city: faker.location.city(),
+ country: faker.location.country(),
},
});
}
diff --git a/src-docs/src/views/tables/sorting/sorting.tsx b/src-docs/src/views/tables/sorting/sorting.tsx
index 3c246070112..bd0d1b73f3f 100644
--- a/src-docs/src/views/tables/sorting/sorting.tsx
+++ b/src-docs/src/views/tables/sorting/sorting.tsx
@@ -36,14 +36,14 @@ const users: User[] = [];
for (let i = 0; i < 20; i++) {
users.push({
id: i + 1,
- firstName: faker.name.firstName(),
- lastName: faker.name.lastName(),
+ firstName: faker.person.firstName(),
+ lastName: faker.person.lastName(),
github: faker.internet.userName(),
dateOfBirth: faker.date.past(),
online: faker.datatype.boolean(),
location: {
- city: faker.address.city(),
- country: faker.address.country(),
+ city: faker.location.city(),
+ country: faker.location.country(),
},
});
}
diff --git a/src/components/basic_table/basic_table.a11y.tsx b/src/components/basic_table/basic_table.a11y.tsx
index 9b9a7003645..7a04e284fe7 100644
--- a/src/components/basic_table/basic_table.a11y.tsx
+++ b/src/components/basic_table/basic_table.a11y.tsx
@@ -38,14 +38,14 @@ const users: User[] = [];
for (let i = 0; i < 20; i++) {
users.push({
id: i + 1,
- firstName: faker.name.firstName(),
- lastName: faker.name.lastName(),
+ firstName: faker.person.firstName(),
+ lastName: faker.person.lastName(),
github: faker.internet.userName(),
dateOfBirth: faker.date.past(),
online: faker.datatype.boolean(),
location: {
- city: faker.address.city(),
- country: faker.address.country(),
+ city: faker.location.city(),
+ country: faker.location.country(),
},
});
}
diff --git a/src/components/basic_table/in_memory_table.a11y.tsx b/src/components/basic_table/in_memory_table.a11y.tsx
index 6852e23ce57..8f4e8de11d7 100644
--- a/src/components/basic_table/in_memory_table.a11y.tsx
+++ b/src/components/basic_table/in_memory_table.a11y.tsx
@@ -36,14 +36,14 @@ const users: User[] = [];
for (let i = 0; i < 20; i++) {
users.push({
id: i + 1,
- firstName: faker.name.firstName(),
- lastName: faker.name.lastName(),
+ firstName: faker.person.firstName(),
+ lastName: faker.person.lastName(),
github: faker.internet.userName(),
dateOfBirth: faker.date.past(),
online: faker.datatype.boolean(),
location: {
- city: faker.address.city(),
- country: faker.address.country(),
+ city: faker.location.city(),
+ country: faker.location.country(),
},
});
}
diff --git a/src/components/datagrid/data_grid.a11y.tsx b/src/components/datagrid/data_grid.a11y.tsx
index 91a666ec667..d735acc9281 100644
--- a/src/components/datagrid/data_grid.a11y.tsx
+++ b/src/components/datagrid/data_grid.a11y.tsx
@@ -56,9 +56,9 @@ const storeData: any[] = [];
for (let i = 1; i < 11; i++) {
storeData.push({
- Name: `${faker.name.lastName()}, ${faker.name.firstName()} ${faker.name.suffix()}`,
+ Name: `${faker.person.lastName()}, ${faker.person.firstName()} ${faker.person.suffix()}`,
Email: `${faker.internet.email()}`,
- 'User ID': `${faker.datatype.number({ min: 1000000, max: 9999999 })}`,
+ 'User ID': `${faker.number.int({ min: 1000000, max: 9999999 })}`,
'Account balance': faker.finance.amount(),
'Last purchase': `${faker.date.past()}`,
'Favorite distro': i % 2 === 0 ? 'Alma' : 'Debian',