From 1f3b13dd020cf88cc0ddd82d3cc891684bc63c53 Mon Sep 17 00:00:00 2001 From: Ian Date: Mon, 11 Mar 2024 16:46:36 -0500 Subject: [PATCH] make v3 default for all web components (#1082) * initial commit * udpate mem date * fix typo * update story * tweak css * tweak css * fix tests * tweak margin selector * update va-banner * remove v1 statement-of-truth story * bump semvers * va-file-input to v1 default * update tests --- packages/core/package.json | 2 +- packages/storybook/.storybook/preview.js | 1 + .../stories/va-accordion-uswds.stories.jsx | 73 +++-- .../stories/va-accordion.stories.jsx | 43 +-- .../va-additional-info-uswds.stories.jsx | 5 +- .../stories/va-additional-info.stories.jsx | 5 +- .../stories/va-alert-expandable.stories.jsx | 2 +- .../stories/va-alert-uswds.stories.jsx | 13 +- .../storybook/stories/va-alert.stories.jsx | 14 +- .../stories/va-back-to-top.stories.jsx | 2 +- .../storybook/stories/va-banner.stories.jsx | 2 +- .../stories/va-breadcrumbs-uswds.stories.jsx | 19 +- .../stories/va-breadcrumbs.stories.jsx | 12 +- .../stories/va-button-pair-uswds.stories.jsx | 5 +- .../stories/va-button-pair.stories.jsx | 5 +- .../stories/va-button-uswds.stories.jsx | 5 +- .../storybook/stories/va-button.stories.jsx | 11 +- .../storybook/stories/va-card.stories.jsx | 2 +- .../va-checkbox-group-uswds.stories.jsx | 46 +--- .../stories/va-checkbox-group.stories.jsx | 14 +- .../stories/va-checkbox-uswds.stories.jsx | 8 +- .../storybook/stories/va-checkbox.stories.jsx | 5 +- .../storybook/stories/va-date.stories.jsx | 2 +- .../stories/va-file-input-uswds.stories.jsx | 7 +- .../stories/va-file-input.stories.jsx | 7 +- .../stories/va-header-minimal.stories.jsx | 2 +- .../stories/va-icon-uswds.stories.jsx | 2 +- .../storybook/stories/va-link.stories.jsx | 2 +- .../stories/va-loading-indicator.stories.jsx | 2 +- .../stories/va-maintenance-banner.stories.jsx | 2 +- .../va-memorable-date-uswds.stories.jsx | 31 +-- .../stories/va-memorable-date.stories.jsx | 15 +- .../stories/va-minimal-footer.stories.jsx | 2 +- .../stories/va-modal-uswds.stories.jsx | 11 +- .../storybook/stories/va-modal.stories.jsx | 11 +- .../stories/va-need-help.stories.jsx | 2 +- .../stories/va-number-input-uswds.stories.jsx | 33 +-- .../stories/va-number-input.stories.jsx | 13 +- .../va-official-gov-banner.stories.jsx | 2 +- .../storybook/stories/va-omb-info.stories.jsx | 2 +- .../stories/va-on-this-page.stories.jsx | 2 +- .../stories/va-pagination-uswds.stories.jsx | 11 +- .../stories/va-pagination.stories.jsx | 5 +- .../va-privacy-agreement-uswds.stories.jsx | 5 +- .../stories/va-privacy-agreement.stories.jsx | 3 +- .../stories/va-process-list-uswds.stories.jsx | 33 +-- .../stories/va-process-list.stories.jsx | 11 +- .../stories/va-progress-bar.stories.jsx | 2 +- .../stories/va-promo-banner.stories.jsx | 2 +- .../stories/va-radio-uswds.stories.jsx | 70 ++--- .../storybook/stories/va-radio.stories.jsx | 33 ++- .../stories/va-search-input-uswds.stories.jsx | 5 +- .../stories/va-search-input.stories.jsx | 9 +- ...a-segmented-progress-bar-uswds.stories.jsx | 3 +- .../va-segmented-progress-bar.stories.jsx | 5 +- .../stories/va-select-uswds.stories.jsx | 13 +- .../storybook/stories/va-select.stories.jsx | 5 +- .../va-statement-of-truth-uswds.stories.jsx | 4 +- .../stories/va-statement-of-truth.stories.jsx | 75 ------ .../stories/va-summary-box-uswds.stories.jsx | 11 +- .../stories/va-summary-box.stories.jsx | 2 +- .../storybook/stories/va-table.stories.jsx | 3 +- .../stories/va-telephone.stories.jsx | 2 +- .../stories/va-text-input-uswds.stories.jsx | 35 +-- .../stories/va-text-input.stories.jsx | 25 +- .../stories/va-textarea-uswds.stories.jsx | 20 +- .../storybook/stories/va-textarea.stories.jsx | 6 +- packages/web-components/package.json | 2 +- .../va-accordion/va-accordion-item.e2e.ts | 36 +-- .../va-accordion/va-accordion-item.tsx | 2 +- .../va-accordion/va-accordion.e2e.ts | 64 ++--- .../components/va-accordion/va-accordion.scss | 6 +- .../components/va-accordion/va-accordion.tsx | 2 +- .../test/va-additional-info.e2e.ts | 32 +-- .../va-additional-info/va-additional-info.tsx | 2 +- .../components/va-alert/test/va-alert.e2e.ts | 56 ++-- .../src/components/va-alert/va-alert-slot.css | 2 +- .../src/components/va-alert/va-alert.scss | 40 +-- .../src/components/va-alert/va-alert.tsx | 7 +- .../va-banner/test/va-banner.e2e.ts | 4 +- .../src/components/va-banner/va-banner.tsx | 2 + .../va-breadcrumbs/test/va-breadcrumbs.e2e.ts | 40 +-- .../va-breadcrumbs/va-breadcrumbs.scss | 4 +- .../va-breadcrumbs/va-breadcrumbs.tsx | 2 +- .../va-button-pair/test/va-button-pair.e2e.ts | 30 +-- .../va-button-pair/va-button-pair.scss | 28 +- .../va-button-pair/va-button-pair.tsx | 14 +- .../va-button/test/va-button.e2e.ts | 88 +++--- .../src/components/va-button/va-button.scss | 22 +- .../src/components/va-button/va-button.tsx | 14 +- .../test/va-checkbox-group.e2e.ts | 100 +++---- .../va-checkbox-group/va-checkbox-group.scss | 4 +- .../va-checkbox-group/va-checkbox-group.tsx | 2 +- .../va-checkbox/test/va-checkbox.e2e.ts | 76 +++--- .../components/va-checkbox/va-checkbox.scss | 10 +- .../components/va-checkbox/va-checkbox.tsx | 10 +- .../va-crisis-line-modal.tsx | 1 - .../src/components/va-date/va-date.css | 4 +- .../src/components/va-date/va-date.tsx | 15 +- .../va-file-input/test/va-file-input.e2e.ts | 2 +- .../va-file-input/va-file-input.tsx | 2 + .../test/va-memorable-date.e2e.ts | 116 ++++---- .../va-memorable-date/va-memorable-date.scss | 18 +- .../va-memorable-date/va-memorable-date.tsx | 15 +- .../components/va-modal/test/va-modal.e2e.ts | 48 ++-- .../src/components/va-modal/va-modal.scss | 2 +- .../src/components/va-modal/va-modal.tsx | 4 +- .../test/va-number-input.e2e.ts | 74 ++--- .../va-number-input/va-number-input.scss | 2 +- .../va-number-input/va-number-input.tsx | 2 +- .../va-omb-info/test/va-omb-info.e2e.ts | 2 +- .../components/va-omb-info/va-omb-info.tsx | 3 + .../va-pagination/test/va-pagination.e2e.ts | 50 ++-- .../va-pagination/va-pagination.scss | 2 +- .../va-pagination/va-pagination.tsx | 6 +- .../test/va-privacy-agreement.e2e.ts | 18 +- .../va-privacy-agreement.scss | 2 +- .../va-privacy-agreement.tsx | 7 +- .../test/va-process-list.e2e.ts | 10 +- .../va-process-list/va-process-list.scss | 2 +- .../va-process-list/va-process-list.tsx | 2 +- .../test/va-radio-option.e2e.ts | 28 +- .../va-radio-option/va-radio-option.scss | 12 +- .../va-radio-option/va-radio-option.tsx | 2 +- .../components/va-radio/test/va-radio.e2e.ts | 254 +++++++++--------- .../src/components/va-radio/va-radio.scss | 6 +- .../src/components/va-radio/va-radio.tsx | 2 +- .../test/va-search-input.e2e.ts | 38 +-- .../va-search-input/va-search-input.scss | 8 +- .../va-search-input/va-search-input.tsx | 2 +- .../test/va-segmented-progress-bar.e2e.ts | 38 +-- .../va-segmented-progress-bar.tsx | 2 +- .../va-select/test/va-select.e2e.ts | 26 +- .../src/components/va-select/va-select.scss | 14 +- .../src/components/va-select/va-select.tsx | 10 +- .../va-statement-of-truth.tsx | 2 - .../va-summary-box/test/va-summary-box.e2e.ts | 16 +- .../va-summary-box/va-summary-box.tsx | 2 +- .../va-text-input/test/va-text-input.e2e.ts | 106 ++++---- .../va-text-input/va-text-input.scss | 12 +- .../va-text-input/va-text-input.tsx | 10 +- .../va-textarea/test/va-textarea.e2e.ts | 70 ++--- .../components/va-textarea/va-textarea.scss | 8 +- .../components/va-textarea/va-textarea.tsx | 2 +- .../web-components/src/mixins/focusable.css | 2 +- .../src/mixins/form-field-error.css | 2 +- .../src/mixins/uswds-error-border.scss | 12 +- .../src/mixins/uswds-input-width.scss | 2 +- 148 files changed, 1282 insertions(+), 1358 deletions(-) delete mode 100644 packages/storybook/stories/va-statement-of-truth.stories.jsx diff --git a/packages/core/package.json b/packages/core/package.json index e8ba70b20..a1a962209 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,7 +1,7 @@ { "name": "@department-of-veterans-affairs/component-library", "description": "VA.gov component library. Includes React and web components.", - "version": "37.2.0", + "version": "38.0.0", "license": "MIT", "scripts": { "build": "webpack" diff --git a/packages/storybook/.storybook/preview.js b/packages/storybook/.storybook/preview.js index c0712d752..916f93997 100644 --- a/packages/storybook/.storybook/preview.js +++ b/packages/storybook/.storybook/preview.js @@ -88,6 +88,7 @@ export const parameters = { 'About', ['Introduction'], 'Components', + 'V1 Components', 'Under development', 'Deprecated', ], diff --git a/packages/storybook/stories/va-accordion-uswds.stories.jsx b/packages/storybook/stories/va-accordion-uswds.stories.jsx index 2a5d00c3c..9c2a09072 100644 --- a/packages/storybook/stories/va-accordion-uswds.stories.jsx +++ b/packages/storybook/stories/va-accordion-uswds.stories.jsx @@ -10,7 +10,7 @@ const accordionDocs = getWebComponentDocs('va-accordion'); const accordionItem = getWebComponentDocs('va-accordion-item'); export default { - title: 'USWDS/Accordion USWDS', + title: 'Components/Accordion USWDS', id: 'uswds/va-accordion', subcomponents: componentStructure(accordionItem), parameters: { @@ -23,7 +23,7 @@ export default { const Template = args => ( - +

Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech, @@ -31,13 +31,13 @@ const Template = args => ( petition the Government for a redress of grievances.

- +

A well regulated Militia, being necessary to the security of a free State, the right of the people to keep and bear Arms, shall not be infringed.

- +

No Soldier shall, in time of peace be quartered in any house, without the consent of the Owner, nor in time of war, but in a manner to be prescribed by law. @@ -49,7 +49,7 @@ const Template = args => ( const BorderedTemplate = args => { return ( - +

Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech, @@ -57,13 +57,13 @@ const BorderedTemplate = args => { petition the Government for a redress of grievances.

- +

A well regulated Militia, being necessary to the security of a free State, the right of the people to keep and bear Arms, shall not be infringed.

- +

No Soldier shall, in time of peace be quartered in any house, without the consent of the Owner, nor in time of war, but in a manner to be prescribed by law. @@ -75,7 +75,7 @@ const BorderedTemplate = args => { const TemplateSubheader = args => ( - +

Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech, @@ -83,13 +83,13 @@ const TemplateSubheader = args => ( petition the Government for a redress of grievances.

- +

A well regulated Militia, being necessary to the security of a free State, the right of the people to keep and bear Arms, shall not be infringed.

- +

No Soldier shall, in time of peace be quartered in any house, without the consent of the Owner, nor in time of war, but in a manner to be prescribed by law. @@ -100,7 +100,7 @@ const TemplateSubheader = args => ( const TemplateIconHeaders = args => ( - +