From cbdeaa36a7940b522c718f743c42adb6fa6816f4 Mon Sep 17 00:00:00 2001 From: atanasster Date: Fri, 7 May 2021 19:38:46 +0300 Subject: [PATCH] fix: load existing data files --- core/core/src/modules.ts | 15 +- .../test/fixtures/story/VariantButton.data.js | 54 ++++ .../test/fixtures/story/VariantButton.test.js | 47 ++++ .../test/fixtures/story/VariantButton.test.ts | 38 +++ .../__snapshots__/VariantButton.test.js.snap | 242 ++++++++++++++++++ .../__snapshots__/VariantButton.test.ts.snap | 126 +++++++++ plugins/cc-cli/src/cli/save-data-template.ts | 10 +- .../cli-document-data.test.ts.snap | 27 +- plugins/cc-cli/test/cli-document-data.test.ts | 3 +- ui/components/src/ActionBar/ActionBar.data.ts | 20 +- ui/components/src/ActionBar/ActionBar.test.ts | 28 +- .../src/BlockContainer/BlockContainer.data.ts | 20 +- .../src/Collapsible/Collapsible.data.ts | 20 +- ui/components/src/Donut/Donut.data.ts | 42 +-- .../src/ExternalLink/ExternalLink.data.ts | 10 +- .../src/GithubAvatar/GithubAvatar.data.ts | 20 +- ui/components/src/InfoTip/InfoTip.data.ts | 20 +- .../src/LinkHeading/LinkHeading.data.ts | 25 +- ui/components/src/Popover/Popover.data.ts | 25 +- .../ProgressIndicator.data.ts | 19 +- ui/components/src/Shield/Shield.data.ts | 35 ++- ui/components/src/Sidebar/Sidebar.data.ts | 20 +- ui/components/src/Source/Source.data.ts | 25 +- ui/components/src/Subtitle/Subtitle.data.ts | 20 +- .../SyntaxHighlighter.data.ts | 25 +- ui/components/src/Table/Table.data.ts | 70 ++--- ui/components/src/Tag/Tag.data.ts | 20 +- .../src/TitledImage/TitledImage.data.ts | 20 +- ui/components/src/Value/Value.data.ts | 20 +- 29 files changed, 867 insertions(+), 199 deletions(-) create mode 100644 core/jest-extract/test/fixtures/story/VariantButton.data.js create mode 100644 core/jest-extract/test/fixtures/story/VariantButton.test.js create mode 100644 core/jest-extract/test/fixtures/story/VariantButton.test.ts create mode 100644 core/jest-extract/test/fixtures/story/__snapshots__/VariantButton.test.js.snap create mode 100644 core/jest-extract/test/fixtures/story/__snapshots__/VariantButton.test.ts.snap diff --git a/core/core/src/modules.ts b/core/core/src/modules.ts index a6d6969c6..6b34ae0fb 100644 --- a/core/core/src/modules.ts +++ b/core/core/src/modules.ts @@ -13,6 +13,16 @@ export const nakedFileName = (filePath: string): string => { return baseName.substr(0, baseName.lastIndexOf('.')); }; +const esmRequire = (filePath: string): any => { + const result = require('esm')(module)(filePath); + if ( + !result || + (typeof result === 'object' && Object.keys(result).length === 0) + ) { + return require(filePath); + } + return result; +}; export const dynamicRequire = (filePath: string): any => { const ext = filePath @@ -55,12 +65,13 @@ export const dynamicRequire = (filePath: string): any => { } ts.sys.writeFile(fileName, data); }); - return require('esm')(module)(jsFilePath); + const result = esmRequire(jsFilePath); + return result; } finally { fs.rmdirSync(tmpDir.name, { recursive: true }); // tmpDir.removeCallback(); } } - return require('esm')(module)(filePath); + return esmRequire(filePath); }; diff --git a/core/jest-extract/test/fixtures/story/VariantButton.data.js b/core/jest-extract/test/fixtures/story/VariantButton.data.js new file mode 100644 index 000000000..067ac4e4a --- /dev/null +++ b/core/jest-extract/test/fixtures/story/VariantButton.data.js @@ -0,0 +1,54 @@ +module.exports = { + overview: { + '0': { + text: 'Gisselle Mohr', + icon: 'Kaden Powlowski', + fontSize: 12, + }, + '1': { + text: 'Barbara Brakus', + icon: 'Miss Dolly Ferry', + fontSize: 22, + }, + '2': { + text: 'Adah Nolan', + icon: 'Anais Pagac', + fontSize: 22, + }, + '3': { + text: 'Jon Will', + icon: 'Geraldine Metz', + fontSize: 20, + }, + '4': { + text: 'Mr. Dulce Rice', + icon: 'Karianne Bins', + fontSize: 16, + }, + '5': { + text: 'Mrs. Jermey Jacobson', + icon: 'Mikayla Gusikowski', + fontSize: 29, + }, + '6': { + text: 'Clark Hickle', + icon: 'Marielle Durgan', + fontSize: 16, + }, + '7': { + text: 'Ibrahim Purdy', + icon: 'Cullen Heller', + fontSize: 27, + }, + '8': { + text: 'Jody Legros', + icon: 'Dedric Smitham', + fontSize: 16, + }, + '9': { + text: 'Ford Kunze', + icon: 'Trinity Hickle', + fontSize: 12, + }, + }, +}; diff --git a/core/jest-extract/test/fixtures/story/VariantButton.test.js b/core/jest-extract/test/fixtures/story/VariantButton.test.js new file mode 100644 index 000000000..00af6809b --- /dev/null +++ b/core/jest-extract/test/fixtures/story/VariantButton.test.js @@ -0,0 +1,47 @@ +const path = require('path'); +const { run } = require('axe-core'); +const { reactRunDOM } = require('@component-controls/test-renderers'); +require('@component-controls/jest-axe-matcher'); + +const { loadConfigurations } = require('@component-controls/config'); +const { renderDocument } = require('@component-controls/test-renderers'); +const { render, act } = require('@testing-library/react'); +const { renderErr } = require('@component-controls/test-renderers'); + +const examples = require('./VariantButton.docs'); +const data = require('./VariantButton.data'); + +describe('VariantButton', () => { + const configPath = path.resolve( + __dirname, + '../../../../../plugins/cc-cli/test/.config', + ); + const config = loadConfigurations(configPath); + let renderedExamples = []; + act(() => { + renderedExamples = renderDocument(examples, config, data); + }); + if (!renderedExamples) { + renderErr(); + return; + } + renderedExamples.forEach(({ name, rendered, dataId, values }) => { + describe(name, () => { + const runTests = () => { + it('snapshot', () => { + const { asFragment } = render(rendered); + expect(asFragment()).toMatchSnapshot(); + }); + it('accessibility', async () => { + const axeResults = await reactRunDOM(rendered, run); + expect(axeResults).toHaveNoAxeViolations(); + }); + }; + if (values) { + describe(dataId, runTests); + } else { + runTests(); + } + }); + }); +}); diff --git a/core/jest-extract/test/fixtures/story/VariantButton.test.ts b/core/jest-extract/test/fixtures/story/VariantButton.test.ts new file mode 100644 index 000000000..581f1c3a6 --- /dev/null +++ b/core/jest-extract/test/fixtures/story/VariantButton.test.ts @@ -0,0 +1,38 @@ +import * as path from 'path'; +import { run, AxeResults } from 'axe-core'; +import { reactRunDOM } from '@component-controls/test-renderers'; +import '@component-controls/jest-axe-matcher'; +import { loadConfigurations } from '@component-controls/config'; +import { renderDocument } from '@component-controls/test-renderers'; +import { render, act } from '@testing-library/react'; +import { renderErr } from '@component-controls/test-renderers'; + +import * as examples from './VariantButton.docs'; + +describe('VariantButton', () => { + const configPath = path.resolve( + __dirname, + '../../../../../plugins/cc-cli/test/.config', + ); + const config = loadConfigurations(configPath); + let renderedExamples: ReturnType = []; + act(() => { + renderedExamples = renderDocument(examples, config); + }); + if (!renderedExamples) { + renderErr(); + return; + } + renderedExamples.forEach(({ name, rendered }) => { + describe(name, () => { + it('snapshot', () => { + const { asFragment } = render(rendered); + expect(asFragment()).toMatchSnapshot(); + }); + it('accessibility', async () => { + const axeResults = await reactRunDOM(rendered, run); + expect(axeResults).toHaveNoAxeViolations(); + }); + }); + }); +}); diff --git a/core/jest-extract/test/fixtures/story/__snapshots__/VariantButton.test.js.snap b/core/jest-extract/test/fixtures/story/__snapshots__/VariantButton.test.js.snap new file mode 100644 index 000000000..7f5352570 --- /dev/null +++ b/core/jest-extract/test/fixtures/story/__snapshots__/VariantButton.test.js.snap @@ -0,0 +1,242 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`VariantButton accent snapshot 1`] = ` + + + +`; + +exports[`VariantButton disabled snapshot 1`] = ` + + + +`; + +exports[`VariantButton error snapshot 1`] = ` + + + +`; + +exports[`VariantButton overview 0 snapshot 1`] = ` + + + +`; + +exports[`VariantButton overview 1 snapshot 1`] = ` + + + +`; + +exports[`VariantButton overview 2 snapshot 1`] = ` + + + +`; + +exports[`VariantButton overview 3 snapshot 1`] = ` + + + +`; + +exports[`VariantButton overview 4 snapshot 1`] = ` + + + +`; + +exports[`VariantButton overview 5 snapshot 1`] = ` + + + +`; + +exports[`VariantButton overview 6 snapshot 1`] = ` + + + +`; + +exports[`VariantButton overview 7 snapshot 1`] = ` + + + +`; + +exports[`VariantButton overview 8 snapshot 1`] = ` + + + +`; + +exports[`VariantButton overview 9 snapshot 1`] = ` + + + +`; + +exports[`VariantButton primary snapshot 1`] = ` + + + +`; + +exports[`VariantButton success snapshot 1`] = ` + + + +`; + +exports[`VariantButton warning snapshot 1`] = ` + + + +`; diff --git a/core/jest-extract/test/fixtures/story/__snapshots__/VariantButton.test.ts.snap b/core/jest-extract/test/fixtures/story/__snapshots__/VariantButton.test.ts.snap new file mode 100644 index 000000000..571875fe4 --- /dev/null +++ b/core/jest-extract/test/fixtures/story/__snapshots__/VariantButton.test.ts.snap @@ -0,0 +1,126 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`VariantButton accent snapshot 1`] = ` + + + +`; + +exports[`VariantButton disabled snapshot 1`] = ` + + + +`; + +exports[`VariantButton error snapshot 1`] = ` + + + +`; + +exports[`VariantButton overview snapshot 1`] = ` + + + +`; + +exports[`VariantButton primary snapshot 1`] = ` + + + +`; + +exports[`VariantButton success snapshot 1`] = ` + + + +`; + +exports[`VariantButton warning snapshot 1`] = ` + + + +`; diff --git a/plugins/cc-cli/src/cli/save-data-template.ts b/plugins/cc-cli/src/cli/save-data-template.ts index a1c5124d1..2d902c29b 100644 --- a/plugins/cc-cli/src/cli/save-data-template.ts +++ b/plugins/cc-cli/src/cli/save-data-template.ts @@ -26,14 +26,8 @@ export const saveDataTemplate = async

( if (fs.existsSync(filePath)) { if (overwrite) { //load existing data file - - existing = dynamicRequire(filePath); - if ( - !existing || - (typeof existing === 'object' && Object.keys(existing).length === 0) - ) { - existing = require(filePath); - } + const loaded = dynamicRequire(filePath); + existing = loaded.default || loaded; } else { return undefined; } diff --git a/plugins/cc-cli/test/__snapshots__/cli-document-data.test.ts.snap b/plugins/cc-cli/test/__snapshots__/cli-document-data.test.ts.snap index d51561d1b..975170cdb 100644 --- a/plugins/cc-cli/test/__snapshots__/cli-document-data.test.ts.snap +++ b/plugins/cc-cli/test/__snapshots__/cli-document-data.test.ts.snap @@ -2,7 +2,7 @@ exports[`cli-document-data create cjs document 1`] = ` Object { - "Popover.data.js": "module.exports = { + "Popover.data.ts": "export default { overview: { '0': { placement: 'bottom-end', @@ -27,18 +27,17 @@ Object { }, }; ", - "Popover.test.js": "const path = require('path'); -const { run } = require('axe-core'); -const { reactRunDOM } = require('@component-controls/test-renderers'); -require('@component-controls/jest-axe-matcher'); - -const { loadConfigurations } = require('@component-controls/config'); -const { renderDocument } = require('@component-controls/test-renderers'); -const { render, act } = require('@testing-library/react'); -const { renderErr } = require('@component-controls/test-renderers'); + "Popover.test.ts": "import * as path from 'path'; +import { run, AxeResults } from 'axe-core'; +import { reactRunDOM } from '@component-controls/test-renderers'; +import '@component-controls/jest-axe-matcher'; +import { loadConfigurations } from '@component-controls/config'; +import { renderDocument } from '@component-controls/test-renderers'; +import { render, act } from '@testing-library/react'; +import { renderErr } from '@component-controls/test-renderers'; -const examples = require('../../../../ui/components/src/Popover/Popover.stories'); -const data = require('./Popover.data'); +import * as examples from '../../../../ui/components/src/Popover/Popover.stories'; +import data from './Popover.data'; describe('Popover', () => { const configPath = path.resolve( @@ -46,7 +45,7 @@ describe('Popover', () => { '../../../../ui/components/.config', ); const config = loadConfigurations(configPath); - let renderedExamples = []; + let renderedExamples: ReturnType = []; act(() => { renderedExamples = renderDocument(examples, config, data); }); @@ -62,7 +61,7 @@ describe('Popover', () => { expect(asFragment()).toMatchSnapshot(); }); it('accessibility', async () => { - const axeResults = await reactRunDOM(rendered, run); + const axeResults = await reactRunDOM(rendered, run); expect(axeResults).toHaveNoAxeViolations(); }); }; diff --git a/plugins/cc-cli/test/cli-document-data.test.ts b/plugins/cc-cli/test/cli-document-data.test.ts index 026dfa546..8a8e836d2 100644 --- a/plugins/cc-cli/test/cli-document-data.test.ts +++ b/plugins/cc-cli/test/cli-document-data.test.ts @@ -6,12 +6,11 @@ describe('cli-document-data', () => { runTests('create cjs document', [ '-g', 'doc', - '-f', - 'cjs', '-d', '5', '-c', '../../ui/components/.config', + '-w', '-i', 'Popover', ]); diff --git a/ui/components/src/ActionBar/ActionBar.data.ts b/ui/components/src/ActionBar/ActionBar.data.ts index c7e1130dc..88042738a 100644 --- a/ui/components/src/ActionBar/ActionBar.data.ts +++ b/ui/components/src/ActionBar/ActionBar.data.ts @@ -1,9 +1,19 @@ export default { overview: { - '0': {}, - '1': {}, - '2': {}, - '3': {}, - '4': {}, + '0': { + themeKey: 'actionbar', + }, + '1': { + themeKey: 'toolbar', + }, + '2': { + themeKey: 'footer', + }, + '3': { + themeKey: 'toolbar', + }, + '4': { + themeKey: 'toolbar', + }, }, }; diff --git a/ui/components/src/ActionBar/ActionBar.test.ts b/ui/components/src/ActionBar/ActionBar.test.ts index de9cfd9a3..d549c46a6 100644 --- a/ui/components/src/ActionBar/ActionBar.test.ts +++ b/ui/components/src/ActionBar/ActionBar.test.ts @@ -8,28 +8,36 @@ import { render, act } from '@testing-library/react'; import { renderErr } from '@component-controls/test-renderers'; import * as examples from './ActionBar.stories'; +import data from './ActionBar.data'; describe('ActionBar', () => { const configPath = path.resolve(__dirname, '../../.config'); const config = loadConfigurations(configPath); let renderedExamples: ReturnType = []; act(() => { - renderedExamples = renderDocument(examples, config); + renderedExamples = renderDocument(examples, config, data); }); if (!renderedExamples) { renderErr(); return; } - renderedExamples.forEach(({ name, rendered }) => { + renderedExamples.forEach(({ name, rendered, dataId, values }) => { describe(name, () => { - it('snapshot', () => { - const { asFragment } = render(rendered); - expect(asFragment()).toMatchSnapshot(); - }); - it('accessibility', async () => { - const axeResults = await reactRunDOM(rendered, run); - expect(axeResults).toHaveNoAxeViolations(); - }); + const runTests = () => { + it('snapshot', () => { + const { asFragment } = render(rendered); + expect(asFragment()).toMatchSnapshot(); + }); + it('accessibility', async () => { + const axeResults = await reactRunDOM(rendered, run); + expect(axeResults).toHaveNoAxeViolations(); + }); + }; + if (values) { + describe(dataId, runTests); + } else { + runTests(); + } }); }); }); diff --git a/ui/components/src/BlockContainer/BlockContainer.data.ts b/ui/components/src/BlockContainer/BlockContainer.data.ts index c7e1130dc..a9c47324a 100644 --- a/ui/components/src/BlockContainer/BlockContainer.data.ts +++ b/ui/components/src/BlockContainer/BlockContainer.data.ts @@ -1,9 +1,19 @@ export default { overview: { - '0': {}, - '1': {}, - '2': {}, - '3': {}, - '4': {}, + '0': { + title: 'Kristina Homenick', + }, + '1': { + title: 'Vergie Zboncak', + }, + '2': { + title: 'Lenora Greenholt', + }, + '3': { + title: 'Brayan Osinski', + }, + '4': { + title: 'Nyasia Dare', + }, }, }; diff --git a/ui/components/src/Collapsible/Collapsible.data.ts b/ui/components/src/Collapsible/Collapsible.data.ts index c7e1130dc..ff4c785b5 100644 --- a/ui/components/src/Collapsible/Collapsible.data.ts +++ b/ui/components/src/Collapsible/Collapsible.data.ts @@ -1,9 +1,19 @@ export default { overview: { - '0': {}, - '1': {}, - '2': {}, - '3': {}, - '4': {}, + '0': { + easing: 'ease-out', + }, + '1': { + easing: 'ease-in-out', + }, + '2': { + easing: 'ease', + }, + '3': { + easing: 'ease', + }, + '4': { + easing: 'ease-in', + }, }, }; diff --git a/ui/components/src/Donut/Donut.data.ts b/ui/components/src/Donut/Donut.data.ts index 05414cca2..1fd26791a 100644 --- a/ui/components/src/Donut/Donut.data.ts +++ b/ui/components/src/Donut/Donut.data.ts @@ -1,44 +1,44 @@ export default { overview: { '0': { - size: 233, + size: 141, strokeWidth: 2, value: 0, min: 1, - max: 2, - title: 'Monserrat Ferry', + max: 1, + title: 'Dr. Stewart Leuschke', }, '1': { - size: 243, - strokeWidth: 4, - value: 0, - min: 0, - max: 2, - title: 'Kayley Grady', + size: 171, + strokeWidth: 2, + value: 1, + min: 1, + max: 1, + title: 'Meredith Fritsch', }, '2': { - size: 161, - strokeWidth: 1, + size: 135, + strokeWidth: 2, value: 0, min: 1, - max: 0, - title: 'Connor Bashirian PhD', + max: 1, + title: 'Emmet King', }, '3': { - size: 98, - strokeWidth: 1, - value: 1, + size: 234, + strokeWidth: 3, + value: 0, min: 0, max: 2, - title: 'Franco Shanahan', + title: 'Luther Pacocha', }, '4': { - size: 194, - strokeWidth: 4, + size: 232, + strokeWidth: 2, value: 0, min: 0, - max: 2, - title: 'Maybell Cronin', + max: 1, + title: 'Jovany Adams', }, }, }; diff --git a/ui/components/src/ExternalLink/ExternalLink.data.ts b/ui/components/src/ExternalLink/ExternalLink.data.ts index 2c9612c83..39d2ca3c7 100644 --- a/ui/components/src/ExternalLink/ExternalLink.data.ts +++ b/ui/components/src/ExternalLink/ExternalLink.data.ts @@ -1,19 +1,19 @@ export default { overview: { '0': { - href: 'http://era.org', + href: 'https://shyann.biz', }, '1': { - href: 'http://salvatore.info', + href: 'https://lera.info', }, '2': { - href: 'http://trudie.net', + href: 'https://bella.name', }, '3': { - href: 'http://amina.info', + href: 'https://heber.net', }, '4': { - href: 'http://brooks.us', + href: 'http://gudrun.org', }, }, }; diff --git a/ui/components/src/GithubAvatar/GithubAvatar.data.ts b/ui/components/src/GithubAvatar/GithubAvatar.data.ts index d078c6b5d..5a289ae1d 100644 --- a/ui/components/src/GithubAvatar/GithubAvatar.data.ts +++ b/ui/components/src/GithubAvatar/GithubAvatar.data.ts @@ -1,24 +1,24 @@ export default { overview: { '0': { - username: 'Mr. Lelia Dooley', - useremail: 'Alvera Stiedemann', + username: 'Lelia Hirthe', + useremail: 'Cassandre Mills', }, '1': { - username: 'Ulises Jacobi', - useremail: 'Sammy Bartell', + username: 'Werner Fay', + useremail: 'Brayan Murray', }, '2': { - username: 'Hazel Steuber', - useremail: 'Leanne Carroll', + username: 'Jermaine Mohr', + useremail: 'Deangelo Gerlach', }, '3': { - username: 'Lou Williamson', - useremail: 'Maximo Bins', + username: 'Charley Rosenbaum', + useremail: 'Bell Torp', }, '4': { - username: 'Laura Renner', - useremail: 'Russell Quigley', + username: 'Dr. Josephine Kris', + useremail: 'Haylee Dare', }, }, }; diff --git a/ui/components/src/InfoTip/InfoTip.data.ts b/ui/components/src/InfoTip/InfoTip.data.ts index d0eb4c639..cccff462c 100644 --- a/ui/components/src/InfoTip/InfoTip.data.ts +++ b/ui/components/src/InfoTip/InfoTip.data.ts @@ -1,24 +1,24 @@ export default { overview: { '0': { - children: 'Adan Kovacek', - size: 22, + children: 'Pansy Feeney', + size: 17, }, '1': { - children: 'Garrett Collier', - size: 33, + children: 'Emilia McLaughlin', + size: 36, }, '2': { - children: 'Mr. Sherman Walker', - size: 33, + children: 'Citlalli Emard', + size: 31, }, '3': { - children: 'Eloise Boyle', - size: 16, + children: 'Reynold Toy', + size: 13, }, '4': { - children: 'Nicholas Lebsack', - size: 26, + children: 'Mr. Soledad Labadie', + size: 22, }, }, }; diff --git a/ui/components/src/LinkHeading/LinkHeading.data.ts b/ui/components/src/LinkHeading/LinkHeading.data.ts index c7e1130dc..d833f4766 100644 --- a/ui/components/src/LinkHeading/LinkHeading.data.ts +++ b/ui/components/src/LinkHeading/LinkHeading.data.ts @@ -1,9 +1,24 @@ export default { overview: { - '0': {}, - '1': {}, - '2': {}, - '3': {}, - '4': {}, + '0': { + children: 'Angelica Howell', + as: 'h1', + }, + '1': { + children: 'Mrs. Rosalyn Moen', + as: 'h6', + }, + '2': { + children: 'Stuart Rutherford', + as: 'h1', + }, + '3': { + children: 'Miss Litzy Bergnaum', + as: 'h2', + }, + '4': { + children: 'Dr. Dariana Murray', + as: 'h1', + }, }, }; diff --git a/ui/components/src/Popover/Popover.data.ts b/ui/components/src/Popover/Popover.data.ts index c7e1130dc..460595d39 100644 --- a/ui/components/src/Popover/Popover.data.ts +++ b/ui/components/src/Popover/Popover.data.ts @@ -1,9 +1,24 @@ export default { overview: { - '0': {}, - '1': {}, - '2': {}, - '3': {}, - '4': {}, + '0': { + placement: 'bottom-end', + trigger: 'hover', + }, + '1': { + placement: 'top-end', + trigger: 'hover', + }, + '2': { + placement: 'bottom-end', + trigger: 'click', + }, + '3': { + placement: 'right-end', + trigger: 'hover', + }, + '4': { + placement: 'auto-start', + trigger: 'right-click', + }, }, }; diff --git a/ui/components/src/ProgressIndicator/ProgressIndicator.data.ts b/ui/components/src/ProgressIndicator/ProgressIndicator.data.ts index c9f76ad1e..bd75d9059 100644 --- a/ui/components/src/ProgressIndicator/ProgressIndicator.data.ts +++ b/ui/components/src/ProgressIndicator/ProgressIndicator.data.ts @@ -1,24 +1,29 @@ export default { overview: { '0': { - max: 10, - value: 2, + max: 14, + value: 5, + color: '#0c3a21', }, '1': { - max: 5, + max: 15, value: 6, + color: '#642242', }, '2': { max: 10, - value: 3, + value: 4, + color: '#5b7f18', }, '3': { - max: 14, - value: 6, + max: 6, + value: 2, + color: '#4e6404', }, '4': { - max: 20, + max: 5, value: 5, + color: '#2c5e74', }, }, }; diff --git a/ui/components/src/Shield/Shield.data.ts b/ui/components/src/Shield/Shield.data.ts index 3b559f770..a86af657b 100644 --- a/ui/components/src/Shield/Shield.data.ts +++ b/ui/components/src/Shield/Shield.data.ts @@ -1,26 +1,41 @@ export default { overview: { '0': { - label: 'Ms. Angelina Leffler', + color: '#071542', + label: 'Jaden Kozey', }, '1': { - label: 'Oliver Abshire', + color: '#3e1402', + label: 'Violet Jerde', }, '2': { - label: 'Kenyon Collins Jr.', + color: '#303c4a', + label: 'Oren Hermiston', }, '3': { - label: 'Candida Dare', + color: '#4b412c', + label: 'Randy Jones', }, '4': { - label: 'Alta West', + color: '#07632f', + label: 'Vicenta Swaniawski', }, }, themeColor: { - '0': {}, - '1': {}, - '2': {}, - '3': {}, - '4': {}, + '0': { + color: 'palette2', + }, + '1': { + color: 'accentPalette0', + }, + '2': { + color: 'status_passed', + }, + '3': { + color: 'accentPalette2', + }, + '4': { + color: 'palette5', + }, }, }; diff --git a/ui/components/src/Sidebar/Sidebar.data.ts b/ui/components/src/Sidebar/Sidebar.data.ts index c7e1130dc..aca0d78d6 100644 --- a/ui/components/src/Sidebar/Sidebar.data.ts +++ b/ui/components/src/Sidebar/Sidebar.data.ts @@ -1,9 +1,19 @@ export default { overview: { - '0': {}, - '1': {}, - '2': {}, - '3': {}, - '4': {}, + '0': { + collapsible: false, + }, + '1': { + collapsible: true, + }, + '2': { + collapsible: true, + }, + '3': { + collapsible: true, + }, + '4': { + collapsible: true, + }, }, }; diff --git a/ui/components/src/Source/Source.data.ts b/ui/components/src/Source/Source.data.ts index c7e1130dc..7b3fd888d 100644 --- a/ui/components/src/Source/Source.data.ts +++ b/ui/components/src/Source/Source.data.ts @@ -1,9 +1,24 @@ export default { overview: { - '0': {}, - '1': {}, - '2': {}, - '3': {}, - '4': {}, + '0': { + dark: false, + children: 'Eve Barrows', + }, + '1': { + dark: false, + children: 'Earnest Smitham MD', + }, + '2': { + dark: true, + children: 'Brianne Fay', + }, + '3': { + dark: true, + children: 'Maeve Quigley', + }, + '4': { + dark: true, + children: 'Cathryn Fadel', + }, }, }; diff --git a/ui/components/src/Subtitle/Subtitle.data.ts b/ui/components/src/Subtitle/Subtitle.data.ts index c7e1130dc..6ab62cd3f 100644 --- a/ui/components/src/Subtitle/Subtitle.data.ts +++ b/ui/components/src/Subtitle/Subtitle.data.ts @@ -1,9 +1,19 @@ export default { overview: { - '0': {}, - '1': {}, - '2': {}, - '3': {}, - '4': {}, + '0': { + children: 'Dr. Tate Hermann', + }, + '1': { + children: 'Rosina Zulauf MD', + }, + '2': { + children: 'Sydnee Heaney', + }, + '3': { + children: 'Ervin Ward', + }, + '4': { + children: 'Destany Dach', + }, }, }; diff --git a/ui/components/src/SyntaxHighlighter/SyntaxHighlighter.data.ts b/ui/components/src/SyntaxHighlighter/SyntaxHighlighter.data.ts index c7e1130dc..913d2fe7d 100644 --- a/ui/components/src/SyntaxHighlighter/SyntaxHighlighter.data.ts +++ b/ui/components/src/SyntaxHighlighter/SyntaxHighlighter.data.ts @@ -1,9 +1,24 @@ export default { overview: { - '0': {}, - '1': {}, - '2': {}, - '3': {}, - '4': {}, + '0': { + children: 'Iliana Jaskolski', + dark: true, + }, + '1': { + children: 'Okey Barrows', + dark: true, + }, + '2': { + children: 'Leopoldo Langworth', + dark: true, + }, + '3': { + children: 'Brent Turcotte', + dark: false, + }, + '4': { + children: 'Modesta Steuber', + dark: true, + }, }, }; diff --git a/ui/components/src/Table/Table.data.ts b/ui/components/src/Table/Table.data.ts index 85eda4010..0787239a8 100644 --- a/ui/components/src/Table/Table.data.ts +++ b/ui/components/src/Table/Table.data.ts @@ -1,64 +1,64 @@ export default { pagination: { '0': { - totalCountVisible: false, - totalCountTemplate: 'Dayne Effertz', - pageIndex: 0, + totalCountVisible: true, + totalCountTemplate: 'Howell Williamson', + pageIndex: 1, pageSize: 6, - pageTemplate: 'Miss Judy Ullrich', + pageTemplate: 'Natasha Toy', pageVisible: false, - pageSizeTemplate: 'Bridget Murazik', - pageSizeVisible: true, + pageSizeTemplate: 'Halle Ernser', + pageSizeVisible: false, goToPageVisible: false, - goToPageTemplate: 'Jennings Sporer', + goToPageTemplate: 'Marian Connelly', }, '1': { totalCountVisible: false, - totalCountTemplate: 'Lonnie Strosin', + totalCountTemplate: 'Garfield Raynor', pageIndex: 0, - pageSize: 18, - pageTemplate: 'Mia Schowalter II', - pageVisible: true, - pageSizeTemplate: 'Daisy Weissnat', + pageSize: 8, + pageTemplate: 'Alyce Kutch', + pageVisible: false, + pageSizeTemplate: 'Arnoldo Armstrong', pageSizeVisible: false, goToPageVisible: true, - goToPageTemplate: 'Roy Cronin', + goToPageTemplate: 'Glennie Casper', }, '2': { - totalCountVisible: true, - totalCountTemplate: 'Violette Buckridge', + totalCountVisible: false, + totalCountTemplate: 'Raymond Brown', pageIndex: 0, - pageSize: 14, - pageTemplate: 'Myrtle Hartmann', + pageSize: 7, + pageTemplate: 'Beth Jacobson', pageVisible: true, - pageSizeTemplate: 'Rahsaan Green', - pageSizeVisible: false, - goToPageVisible: true, - goToPageTemplate: 'Dortha Vandervort', + pageSizeTemplate: 'Chet Yundt', + pageSizeVisible: true, + goToPageVisible: false, + goToPageTemplate: 'Dr. Bruce Howell', }, '3': { - totalCountVisible: true, - totalCountTemplate: 'Terence Howe', + totalCountVisible: false, + totalCountTemplate: 'Rigoberto Rempel', pageIndex: 0, pageSize: 7, - pageTemplate: 'Lorna Rice', - pageVisible: true, - pageSizeTemplate: 'Deron Koepp', + pageTemplate: 'Miss Maiya Glover', + pageVisible: false, + pageSizeTemplate: 'Annabell Luettgen IV', pageSizeVisible: false, goToPageVisible: false, - goToPageTemplate: 'Marty Considine', + goToPageTemplate: 'Dawson Glover', }, '4': { - totalCountVisible: true, - totalCountTemplate: 'Cecile Witting', + totalCountVisible: false, + totalCountTemplate: 'Dejon Lynch', pageIndex: 0, - pageSize: 10, - pageTemplate: 'Tristin Hettinger Jr.', - pageVisible: false, - pageSizeTemplate: 'Frederique Ledner', - pageSizeVisible: false, + pageSize: 11, + pageTemplate: 'Dr. Ryley Hills', + pageVisible: true, + pageSizeTemplate: 'Maximus Tillman', + pageSizeVisible: true, goToPageVisible: false, - goToPageTemplate: 'Roselyn Kassulke', + goToPageTemplate: 'Bobbie Mante', }, }, }; diff --git a/ui/components/src/Tag/Tag.data.ts b/ui/components/src/Tag/Tag.data.ts index c7e1130dc..8927871d8 100644 --- a/ui/components/src/Tag/Tag.data.ts +++ b/ui/components/src/Tag/Tag.data.ts @@ -1,9 +1,19 @@ export default { overview: { - '0': {}, - '1': {}, - '2': {}, - '3': {}, - '4': {}, + '0': { + color: '#464a48', + }, + '1': { + color: '#7e262d', + }, + '2': { + color: '#796d26', + }, + '3': { + color: '#4a4529', + }, + '4': { + color: '#5e6756', + }, }, }; diff --git a/ui/components/src/TitledImage/TitledImage.data.ts b/ui/components/src/TitledImage/TitledImage.data.ts index c7e1130dc..d938ca087 100644 --- a/ui/components/src/TitledImage/TitledImage.data.ts +++ b/ui/components/src/TitledImage/TitledImage.data.ts @@ -1,9 +1,19 @@ export default { overview: { - '0': {}, - '1': {}, - '2': {}, - '3': {}, - '4': {}, + '0': { + title: 'Joana VonRueden', + }, + '1': { + title: 'Leo Lakin', + }, + '2': { + title: 'Destin Turcotte', + }, + '3': { + title: 'Daniela Monahan', + }, + '4': { + title: 'Jaunita Quitzon', + }, }, }; diff --git a/ui/components/src/Value/Value.data.ts b/ui/components/src/Value/Value.data.ts index e8a4d1c87..2b6dea398 100644 --- a/ui/components/src/Value/Value.data.ts +++ b/ui/components/src/Value/Value.data.ts @@ -1,24 +1,24 @@ export default { overview: { '0': { - label: 'Shannon Grady', - value: 'Ilene Sawayn', + label: 'Darrel Labadie', + value: 'Seamus McGlynn', }, '1': { - label: 'Deron Jenkins', - value: 'Broderick Hartmann', + label: 'Pietro Kassulke', + value: 'Miss Ines Kemmer', }, '2': { - label: 'Jillian Rodriguez', - value: 'Lorna Weber', + label: 'Billy Kuvalis PhD', + value: 'Marvin Krajcik', }, '3': { - label: 'Lenny Howell', - value: 'Benny Bahringer', + label: 'Eino Anderson', + value: 'Carter Swift', }, '4': { - label: 'Brennon Kemmer', - value: 'Demarco Towne', + label: 'Cali Hilpert', + value: 'Mrs. Ulises Batz', }, }, };