@kaizen/components 0.0.0-canary-toast-notification-fix-20240822034045 → 0.0.0-canary-workflow-export-20240910075656
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/codemods/README.md +0 -1
- package/codemods/utils/__snapshots__/transformSource.spec.ts.snap +2 -2
- package/dist/cjs/Brand/Brand.cjs +1 -1
- package/dist/cjs/BrandMoment/BrandMoment.cjs +1 -1
- package/dist/cjs/Card/Card.cjs +1 -1
- package/dist/cjs/Card/Card.module.css.cjs +22 -0
- package/dist/cjs/{__containers__/GuidanceBlock/v1 → GuidanceBlock}/GuidanceBlock.cjs +6 -6
- package/dist/cjs/GuidanceBlock/GuidanceBlock.module.scss.cjs +33 -0
- package/dist/cjs/Illustration/subcomponents/Base/Base.cjs +1 -1
- package/dist/cjs/Illustration/subcomponents/VideoPlayer/VideoPlayer.cjs +1 -1
- package/dist/cjs/Modal/ConfirmationModal/ConfirmationModal.cjs +1 -1
- package/dist/cjs/MultiSelect/MultiSelect.cjs +3 -0
- package/dist/cjs/MultiSelect/subcomponents/Popover/Popover.cjs +1 -4
- package/dist/cjs/Notification/ToastNotification/context/ToastNotificationContext.cjs +2 -2
- package/dist/cjs/RichTextEditor/RichTextContent/RichTextContent.cjs +10 -1
- package/dist/cjs/Workflow/Workflow.cjs +10 -11
- package/dist/cjs/Workflow/subcomponents/Footer/Footer.cjs +3 -3
- package/dist/cjs/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.cjs +1 -1
- package/dist/cjs/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.module.css.cjs +8 -0
- package/dist/cjs/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.cjs +20 -22
- package/dist/cjs/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.module.css.cjs +16 -0
- package/dist/cjs/Workflow/subcomponents/Footer/components/Root/{FooterRoot.module.scss.cjs → FooterRoot.module.css.cjs} +1 -1
- package/dist/cjs/Workflow/subcomponents/Footer/components/Root/Root.cjs +1 -1
- package/dist/cjs/Workflow/subcomponents/Header/Header.cjs +3 -3
- package/dist/cjs/Workflow/subcomponents/Header/components/Actions/Actions.cjs +1 -1
- package/dist/cjs/Workflow/subcomponents/{Wrapper/Wrapper.module.scss.cjs → Header/components/Actions/Actions.module.css.cjs} +1 -1
- package/dist/cjs/Workflow/subcomponents/Header/components/Branding/Branding.cjs +1 -1
- package/dist/cjs/Workflow/subcomponents/Header/components/Branding/Branding.module.css.cjs +7 -0
- package/dist/cjs/Workflow/subcomponents/Header/components/Root/Root.cjs +1 -1
- package/dist/cjs/{__future__/Workflow/subcomponents/Header/components/Root/Root.module.scss.cjs → Workflow/subcomponents/Header/components/Root/Root.module.css.cjs} +1 -1
- package/dist/cjs/Workflow/subcomponents/Header/components/Titles/Titles.cjs +7 -11
- package/dist/cjs/Workflow/subcomponents/Header/components/Titles/Titles.module.css.cjs +9 -0
- package/dist/cjs/Workflow/subcomponents/Main/Main.cjs +1 -1
- package/dist/cjs/{__future__/Workflow/subcomponents/Main/Main.module.scss.cjs → Workflow/subcomponents/Main/Main.module.css.cjs} +1 -1
- package/dist/cjs/Workflow/subcomponents/Wrapper/Wrapper.cjs +1 -1
- package/dist/cjs/Workflow/subcomponents/{Header/components/Actions/Actions.module.scss.cjs → Wrapper/Wrapper.module.css.cjs} +1 -1
- package/dist/cjs/__future__/Select/Select.cjs +1 -6
- package/dist/cjs/__future__/Select/subcomponents/ListBox/ListBox.cjs +1 -2
- package/dist/cjs/__future__/Select/subcomponents/ListBox/ListBox.module.scss.cjs +1 -2
- package/dist/cjs/future.cjs +0 -2
- package/dist/cjs/index.cjs +4 -2
- package/dist/cjs/utils/hostedAssets.cjs +16 -0
- package/dist/cjs/utils/useResizeObserver.cjs +1 -0
- package/dist/esm/Brand/Brand.mjs +1 -1
- package/dist/esm/BrandMoment/BrandMoment.mjs +1 -1
- package/dist/esm/Card/Card.mjs +1 -1
- package/dist/esm/Card/Card.module.css.mjs +20 -0
- package/dist/esm/{__containers__/GuidanceBlock/v1 → GuidanceBlock}/GuidanceBlock.mjs +6 -6
- package/dist/esm/GuidanceBlock/GuidanceBlock.module.scss.mjs +31 -0
- package/dist/esm/Illustration/subcomponents/Base/Base.mjs +1 -1
- package/dist/esm/Illustration/subcomponents/VideoPlayer/VideoPlayer.mjs +1 -1
- package/dist/esm/Modal/ConfirmationModal/ConfirmationModal.mjs +1 -1
- package/dist/esm/MultiSelect/MultiSelect.mjs +3 -0
- package/dist/esm/MultiSelect/subcomponents/Popover/Popover.mjs +1 -4
- package/dist/esm/Notification/ToastNotification/context/ToastNotificationContext.mjs +3 -3
- package/dist/esm/RichTextEditor/RichTextContent/RichTextContent.mjs +11 -2
- package/dist/esm/Workflow/Workflow.mjs +10 -11
- package/dist/esm/Workflow/subcomponents/Footer/Footer.mjs +3 -3
- package/dist/esm/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.mjs +1 -1
- package/dist/esm/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.module.css.mjs +6 -0
- package/dist/esm/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.mjs +20 -22
- package/dist/esm/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.module.css.mjs +14 -0
- package/dist/esm/Workflow/subcomponents/Footer/components/Root/FooterRoot.module.css.mjs +4 -0
- package/dist/esm/Workflow/subcomponents/Footer/components/Root/Root.mjs +1 -1
- package/dist/esm/Workflow/subcomponents/Header/Header.mjs +3 -3
- package/dist/esm/Workflow/subcomponents/Header/components/Actions/Actions.mjs +1 -1
- package/dist/esm/Workflow/subcomponents/{Wrapper/Wrapper.module.scss.mjs → Header/components/Actions/Actions.module.css.mjs} +1 -1
- package/dist/esm/Workflow/subcomponents/Header/components/Branding/Branding.mjs +1 -1
- package/dist/esm/Workflow/subcomponents/Header/components/Branding/Branding.module.css.mjs +5 -0
- package/dist/esm/Workflow/subcomponents/Header/components/Root/Root.mjs +1 -1
- package/dist/esm/{__future__/Workflow/subcomponents/Header/components/Root/Root.module.scss.mjs → Workflow/subcomponents/Header/components/Root/Root.module.css.mjs} +1 -1
- package/dist/esm/Workflow/subcomponents/Header/components/Titles/Titles.mjs +7 -11
- package/dist/esm/Workflow/subcomponents/Header/components/Titles/Titles.module.css.mjs +7 -0
- package/dist/esm/Workflow/subcomponents/Main/Main.mjs +1 -1
- package/dist/esm/{__future__/Workflow/subcomponents/Main/Main.module.scss.mjs → Workflow/subcomponents/Main/Main.module.css.mjs} +1 -1
- package/dist/esm/Workflow/subcomponents/Wrapper/Wrapper.mjs +1 -1
- package/dist/esm/Workflow/subcomponents/{Header/components/Actions/Actions.module.scss.mjs → Wrapper/Wrapper.module.css.mjs} +1 -1
- package/dist/esm/__future__/Select/Select.mjs +1 -6
- package/dist/esm/__future__/Select/subcomponents/ListBox/ListBox.mjs +1 -2
- package/dist/esm/__future__/Select/subcomponents/ListBox/ListBox.module.scss.mjs +1 -2
- package/dist/esm/future.mjs +0 -1
- package/dist/esm/index.mjs +2 -1
- package/dist/esm/utils/hostedAssets.mjs +14 -0
- package/dist/esm/utils/useResizeObserver.mjs +1 -0
- package/dist/styles.css +12431 -179
- package/dist/types/{__containers__/GuidanceBlock/v1 → GuidanceBlock}/GuidanceBlock.d.ts +4 -4
- package/dist/types/LikertScaleLegacy/index.d.ts +1 -0
- package/dist/types/Workflow/Workflow.d.ts +5 -8
- package/dist/types/Workflow/subcomponents/Footer/Footer.d.ts +3 -4
- package/dist/types/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.d.ts +10 -3
- package/dist/types/Workflow/subcomponents/Header/Header.d.ts +2 -2
- package/dist/types/Workflow/subcomponents/Header/components/Titles/Titles.d.ts +3 -9
- package/dist/types/__future__/index.d.ts +0 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/utils/hostedAssets.d.ts +10 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/useResizeObserver.d.ts +1 -0
- package/package.json +29 -19
- package/src/Avatar/Avatar.spec.tsx +1 -1
- package/src/Avatar/Avatar.tsx +1 -1
- package/src/AvatarGroup/AvatarGroup.tsx +1 -1
- package/src/Badge/Badge.tsx +1 -1
- package/src/Brand/Brand.tsx +2 -2
- package/src/BrandMoment/BrandMoment.tsx +3 -3
- package/src/BrandMoment/_docs/ExampleHeaders.tsx +2 -2
- package/src/ButtonGroup/ButtonGroup.tsx +1 -1
- package/src/Calendar/CalendarPopover/CalendarPopover.tsx +1 -1
- package/src/Calendar/CalendarRange/CalendarRange.tsx +1 -1
- package/src/Calendar/CalendarSingle/CalendarSingle.tsx +1 -1
- package/src/Calendar/utils/setFocusInCalendar.spec.tsx +2 -2
- package/src/Card/{Card.module.scss → Card.module.css} +6 -14
- package/src/Card/Card.tsx +2 -2
- package/src/Checkbox/Checkbox/Checkbox.spec.tsx +2 -2
- package/src/Checkbox/Checkbox/Checkbox.tsx +1 -1
- package/src/Checkbox/CheckboxGroup/CheckboxGroup.tsx +1 -1
- package/src/ClearButton/ClearButton.tsx +1 -1
- package/src/Collapsible/Collapsible/Collapsible.spec.tsx +2 -14
- package/src/Collapsible/Collapsible/Collapsible.tsx +1 -1
- package/src/Collapsible/Collapsible/_docs/Collapsible.mdx +0 -2
- package/src/Collapsible/Collapsible/_docs/Collapsible.stickersheet.stories.tsx +49 -0
- package/src/Collapsible/Collapsible/_docs/Collapsible.stories.tsx +0 -11
- package/src/Collapsible/CollapsibleGroup/CollapsibleGroup.tsx +1 -1
- package/src/Content/Content.tsx +1 -1
- package/src/DateInput/DateInput/DateInput.tsx +1 -1
- package/src/DateInput/DateInputDescription/DateInputDescription.spec.tsx +5 -6
- package/src/DateInput/DateInputWithIconButton/DateInputWithIconButton.spec.tsx +4 -6
- package/src/DateInput/DateInputWithIconButton/DateInputWithIconButton.tsx +1 -1
- package/src/DatePicker/DatePicker.spec.tsx +32 -36
- package/src/DatePicker/subcomponents/DateInputField/DateInputField.spec.tsx +13 -13
- package/src/DatePicker/utils/validateDate.spec.ts +5 -6
- package/src/Divider/Divider.tsx +1 -1
- package/src/EmptyState/EmptyState.spec.tsx +1 -1
- package/src/EmptyState/EmptyState.tsx +1 -1
- package/src/ErrorPage/ErrorPage.spec.tsx +19 -19
- package/src/ErrorPage/ErrorPage.tsx +1 -1
- package/src/FieldGroup/FieldGroup.tsx +1 -1
- package/src/FieldMessage/FieldMessage.tsx +1 -1
- package/src/Filter/Filter/Filter.tsx +1 -1
- package/src/Filter/Filter/subcomponents/FilterContents/FilterContents.tsx +1 -1
- package/src/Filter/Filter/subcomponents/FilterPopover/FilterPopover.tsx +1 -1
- package/src/Filter/FilterBar/FilterBar.spec.tsx +26 -26
- package/src/Filter/FilterBar/FilterBar.tsx +1 -1
- package/src/Filter/FilterBar/context/utils/updateDependentFilters.spec.ts +2 -4
- package/src/Filter/FilterBar/subcomponents/AddFiltersMenu/AddFiltersMenu.spec.tsx +3 -4
- package/src/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.spec.tsx +3 -6
- package/src/Filter/FilterBar/subcomponents/FilterBarDatePicker/FilterBarDatePicker.spec.tsx +10 -12
- package/src/Filter/FilterBar/subcomponents/FilterBarDateRangePicker/FilterBarDateRangePicker.spec.tsx +9 -10
- package/src/Filter/FilterBar/subcomponents/FilterBarMultiSelect/FilterBarMultiSelect.spec.tsx +12 -14
- package/src/Filter/FilterBar/subcomponents/FilterBarSelect/FilterBarSelect.spec.tsx +11 -13
- package/src/Filter/FilterButton/FilterButton/FilterButton.tsx +1 -1
- package/src/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.spec.tsx +5 -5
- package/src/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.tsx +2 -2
- package/src/Filter/FilterButton/subcomponents/FilterButtonBase/FilterButtonBase.tsx +1 -1
- package/src/Filter/FilterDatePicker/FilterDatePicker.spec.tsx +12 -15
- package/src/Filter/FilterDatePicker/hooks/useDateInputHandlers.spec.ts +13 -16
- package/src/Filter/FilterDatePicker/hooks/useDateValidation.spec.ts +3 -6
- package/src/Filter/FilterDatePicker/subcomponents/FilterDatePickerField/FilterDatePickerField.spec.tsx +23 -28
- package/src/Filter/FilterDatePicker/subcomponents/FilterDatePickerField/FilterDatePickerField.tsx +2 -2
- package/src/Filter/FilterDatePicker/utils/getDateValidationHandler.spec.tsx +2 -6
- package/src/Filter/FilterDatePicker/utils/getDateValidationHandler.tsx +1 -1
- package/src/Filter/FilterDatePicker/utils/validateDate.spec.ts +5 -6
- package/src/Filter/FilterDateRangePicker/FilterDateRangePicker.spec.tsx +2 -3
- package/src/Filter/FilterDateRangePicker/_docs/FilterDateRangePicker.stickersheet.stories.tsx +27 -0
- package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeInputField/DateRangeInputField.spec.tsx +9 -11
- package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeInputField/DateRangeInputField.tsx +2 -2
- package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeValidationMessage/DateRangeValidationMessage.spec.tsx +1 -63
- package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/FilterDateRangePickerField.spec.tsx +32 -32
- package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/FilterDateRangePickerField.tsx +2 -2
- package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/hooks/useEndDateValidation.spec.ts +3 -9
- package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/hooks/useStartDateValidation.spec.ts +2 -6
- package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/utils/validateEndDateBeforeStartDate.spec.ts +2 -3
- package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/utils/validateEndDateBeforeStartDate.tsx +1 -1
- package/src/Filter/FilterMultiSelect/FilterMultiSelect.spec.tsx +9 -10
- package/src/Filter/FilterMultiSelect/_docs/FilterMultiSelect.stories.tsx +1 -1
- package/src/Filter/FilterMultiSelect/context/MenuTriggerProvider/MenuTriggerProvider.spec.tsx +2 -1
- package/src/Filter/FilterMultiSelect/context/SelectionProvider/SelectionProvider.spec.tsx +32 -32
- package/src/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.spec.tsx +9 -7
- package/src/Filter/FilterMultiSelect/subcomponents/SearchInput/SearchInput.spec.tsx +12 -12
- package/src/Filter/FilterMultiSelect/subcomponents/SelectionControlButton/ClearButton/ClearButton.spec.tsx +7 -7
- package/src/Filter/FilterMultiSelect/subcomponents/SelectionControlButton/SelectAllButton/SelectAllButton.spec.tsx +9 -9
- package/src/Filter/FilterSelect/FilterSelect.spec.tsx +3 -5
- package/src/Filter/FilterSelect/FilterSelect.tsx +1 -1
- package/src/{__containers__/GuidanceBlock/v1 → GuidanceBlock}/GuidanceBlock.module.scss +2 -2
- package/src/{__containers__/GuidanceBlock/v2 → GuidanceBlock}/GuidanceBlock.spec.tsx +5 -5
- package/src/{__containers__/GuidanceBlock/v2 → GuidanceBlock}/_docs/GuidanceBlock.mdx +2 -2
- package/src/{__containers__/GuidanceBlock/v1 → GuidanceBlock}/_docs/GuidanceBlock.stickersheet.stories.tsx +1 -1
- package/src/{__containers__/GuidanceBlock/v1 → GuidanceBlock}/_docs/GuidanceBlock.stories.tsx +1 -1
- package/src/Heading/Heading.module.scss +1 -1
- package/src/Heading/Heading.spec.tsx +1 -31
- package/src/Heading/Heading.tsx +1 -1
- package/src/Icon/_docs/Icon.stories.tsx +1 -1
- package/src/Icon/subcomponents/SVG/SVG.tsx +1 -1
- package/src/Illustration/subcomponents/Base/Base.tsx +2 -2
- package/src/Illustration/subcomponents/VideoPlayer/VideoPlayer.spec.tsx +43 -97
- package/src/Illustration/subcomponents/VideoPlayer/VideoPlayer.stickersheet.stories.tsx +68 -0
- package/src/Illustration/subcomponents/VideoPlayer/VideoPlayer.stories.tsx +37 -0
- package/src/Illustration/subcomponents/VideoPlayer/VideoPlayer.tsx +1 -1
- package/src/Input/Input/Input.tsx +1 -1
- package/src/Input/InputRange/InputRange.spec.tsx +2 -2
- package/src/Input/InputRange/InputRange.tsx +1 -1
- package/src/Input/InputSearch/InputSearch.spec.tsx +3 -5
- package/src/Input/InputSearch/InputSearch.tsx +1 -1
- package/src/KaizenProvider/KaizenProvider.spec.tsx +2 -2
- package/src/KaizenProvider/_docs/KaizenProvider.mdx +4 -4
- package/src/KaizenProvider/subcomponents/OptionalIntlProvider/OptionalIntlProvider.spec.tsx +2 -3
- package/src/Label/Label.tsx +1 -1
- package/src/LabelledMessage/LabelledMessage.tsx +1 -1
- package/src/LikertScaleLegacy/index.ts +1 -0
- package/src/Loading/LoadingGraphic/LoadingGraphic.tsx +1 -1
- package/src/Loading/LoadingHeading/LoadingHeading.tsx +1 -1
- package/src/Loading/LoadingInput/LoadingInput.tsx +1 -1
- package/src/Loading/LoadingParagraph/LoadingParagraph.tsx +1 -1
- package/src/Loading/LoadingSpinner/LoadingSpinner.tsx +1 -1
- package/src/Modal/ConfirmationModal/ConfirmationModal.spec.tsx +8 -8
- package/src/Modal/ConfirmationModal/ConfirmationModal.tsx +5 -1
- package/src/Modal/ContextModal/ContextModal.spec.tsx +6 -6
- package/src/Modal/GenericModal/GenericModal.spec.tsx +4 -4
- package/src/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.tsx +1 -1
- package/src/Modal/InputEditModal/InputEditModal.spec.tsx +8 -8
- package/src/MultiSelect/MultiSelect.tsx +4 -1
- package/src/MultiSelect/subcomponents/Checkbox/Checkbox.tsx +1 -1
- package/src/MultiSelect/subcomponents/MultiSelectOptionField/MultiSelectOptionField.spec.tsx +3 -3
- package/src/MultiSelect/subcomponents/MultiSelectOptionField/MultiSelectOptionField.tsx +1 -1
- package/src/MultiSelect/subcomponents/MultiSelectOptions/MultiSelectOptions.spec.tsx +3 -3
- package/src/MultiSelect/subcomponents/MultiSelectOptions/MultiSelectOptions.tsx +1 -1
- package/src/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.spec.tsx +2 -2
- package/src/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.tsx +1 -1
- package/src/MultiSelect/subcomponents/Popover/Popover.module.scss +1 -0
- package/src/MultiSelect/subcomponents/Popover/Popover.tsx +1 -4
- package/src/Notification/GlobalNotification/GlobalNotification.tsx +1 -1
- package/src/Notification/InlineNotification/InlineNotification.tsx +1 -1
- package/src/Notification/ToastNotification/ToastNotificationsList/subcomponents/ToastNotificationsMap/ToastNotificationsMap.tsx +1 -1
- package/src/Notification/ToastNotification/_docs/ToastNotification.stories.tsx +33 -0
- package/src/Notification/ToastNotification/context/ToastNotificationContext.tsx +13 -18
- package/src/Notification/ToastNotification/types.ts +1 -1
- package/src/Notification/subcomponents/GenericNotification/GenericNotification.stories.tsx +60 -0
- package/src/Notification/subcomponents/GenericNotification/GenericNotification.tsx +1 -1
- package/src/Pagination/Pagination.spec.tsx +2 -2
- package/src/Pagination/Pagination.tsx +1 -1
- package/src/Popover/Popover.tsx +1 -1
- package/src/ProgressBar/ProgressBar.tsx +1 -1
- package/src/Radio/Radio/Radio.tsx +1 -1
- package/src/Radio/RadioGroup/RadioGroup.tsx +1 -1
- package/src/RichTextEditor/EditableRichTextContent/EditableRichTextContent.spec.tsx +4 -4
- package/src/RichTextEditor/EditableRichTextContent/EditableRichTextContent.tsx +1 -1
- package/src/RichTextEditor/RichTextContent/RichTextContent.tsx +12 -3
- package/src/RichTextEditor/RichTextEditor/RichTextEditor.tsx +1 -1
- package/src/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/ToggleIconButton.tsx +1 -1
- package/src/RichTextEditor/RichTextEditor/subcomponents/Toolbar/Toolbar.tsx +1 -1
- package/src/RichTextEditor/utils/commands/addMark.spec.ts +2 -2
- package/src/RichTextEditor/utils/commands/fixtures/helpers.ts +4 -3
- package/src/RichTextEditor/utils/commands/getMarkAttrs.spec.ts +2 -2
- package/src/RichTextEditor/utils/commands/getMarkRange.spec.ts +2 -2
- package/src/RichTextEditor/utils/commands/listIsActive.spec.ts +2 -2
- package/src/RichTextEditor/utils/commands/markContainsSelection.spec.ts +2 -2
- package/src/RichTextEditor/utils/commands/markIsActive.spec.ts +2 -2
- package/src/RichTextEditor/utils/commands/removeMark.spec.ts +2 -2
- package/src/RichTextEditor/utils/commands/updateMark.spec.ts +2 -2
- package/src/RichTextEditor/utils/commands/validateAndRemoveMarks.spec.ts +3 -3
- package/src/RichTextEditor/utils/core/createRichTextEditor.spec.ts +11 -11
- package/src/RichTextEditor/utils/core/hooks/useRichTextEditor.spec.tsx +2 -2
- package/src/Skirt/Skirt.tsx +1 -1
- package/src/SplitButton/SplitButton.spec.tsx +5 -5
- package/src/SplitButton/SplitButton.tsx +2 -2
- package/src/SplitButton/subcomponents/BaseButton/BaseButton.tsx +1 -1
- package/src/SplitButton/subcomponents/DropdownButton/DropdownButton.spec.tsx +3 -4
- package/src/Table/Table.tsx +1 -1
- package/src/Tabs/subcomponents/Tab.tsx +1 -1
- package/src/Tabs/subcomponents/TabList.tsx +1 -1
- package/src/Tabs/subcomponents/TabPanel.tsx +1 -1
- package/src/Tabs/subcomponents/TabPanels.tsx +1 -1
- package/src/Text/Text.spec.tsx +1 -57
- package/src/Text/Text.tsx +1 -1
- package/src/TextArea/TextArea.spec.tsx +2 -2
- package/src/TextArea/TextArea.tsx +1 -1
- package/src/Tile/TileGrid/TileGrid.tsx +1 -1
- package/src/Tile/subcomponents/GenericTile/GenericTile.tsx +1 -1
- package/src/TimeField/TimeField.spec.tsx +2 -2
- package/src/TimeField/TimeField.tsx +1 -1
- package/src/TitleBlockZen/TitleBlockZen.spec.tsx +36 -68
- package/src/TitleBlockZen/TitleBlockZen.tsx +1 -1
- package/src/TitleBlockZen/_docs/TitleBlockZen.stories.tsx +79 -9
- package/src/TitleBlockZen/subcomponents/MobileActions.spec.tsx +2 -2
- package/src/TitleBlockZen/subcomponents/NavigationTabs.spec.tsx +8 -2
- package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.spec.tsx +2 -2
- package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.tsx +1 -1
- package/src/VisuallyHidden/VisuallyHidden.tsx +1 -1
- package/src/Well/Well.tsx +1 -1
- package/src/Workflow/Workflow.tsx +25 -25
- package/src/Workflow/_docs/ProgressStepper.mdx +5 -9
- package/src/Workflow/_docs/ProgressStepper.stories.tsx +26 -24
- package/src/Workflow/_docs/Workflow.mdx +14 -17
- package/src/Workflow/_docs/Workflow.stories.tsx +31 -29
- package/src/Workflow/_docs/WorkflowFooter.mdx +5 -8
- package/src/Workflow/_docs/WorkflowFooter.stories.tsx +36 -26
- package/src/Workflow/_docs/WorkflowHeader.mdx +5 -8
- package/src/Workflow/_docs/WorkflowHeader.stories.tsx +12 -6
- package/src/Workflow/_docs/controls/controls.tsx +6 -6
- package/src/Workflow/subcomponents/Footer/Footer.tsx +6 -5
- package/src/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.tsx +2 -2
- package/src/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.module.css +117 -0
- package/src/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.tsx +37 -26
- package/src/{__future__/Workflow/subcomponents/Footer/components/Root/FooterRoot.module.scss → Workflow/subcomponents/Footer/components/Root/FooterRoot.module.css} +6 -8
- package/src/Workflow/subcomponents/Footer/components/Root/Root.tsx +2 -2
- package/src/Workflow/subcomponents/Header/Header.tsx +7 -3
- package/src/{__future__/Workflow/subcomponents/Header/components/Actions/Actions.module.scss → Workflow/subcomponents/Header/components/Actions/Actions.module.css} +2 -4
- package/src/Workflow/subcomponents/Header/components/Actions/Actions.tsx +2 -2
- package/src/{__future__/Workflow/subcomponents/Header/components/Branding/Branding.module.scss → Workflow/subcomponents/Header/components/Branding/Branding.module.css} +2 -4
- package/src/Workflow/subcomponents/Header/components/Branding/Branding.tsx +2 -2
- package/src/{__future__/Workflow/subcomponents/Header/components/Root/Root.module.scss → Workflow/subcomponents/Header/components/Root/Root.module.css} +5 -9
- package/src/Workflow/subcomponents/Header/components/Root/Root.tsx +2 -2
- package/src/{__future__/Workflow/subcomponents/Header/components/Titles/Titles.module.scss → Workflow/subcomponents/Header/components/Titles/Titles.module.css} +3 -5
- package/src/Workflow/subcomponents/Header/components/Titles/Titles.tsx +8 -19
- package/src/Workflow/subcomponents/Main/Main.module.css +4 -0
- package/src/Workflow/subcomponents/Main/Main.tsx +2 -2
- package/src/{__future__/Workflow/subcomponents/Wrapper/Wrapper.module.scss → Workflow/subcomponents/Wrapper/Wrapper.module.css} +1 -3
- package/src/Workflow/subcomponents/Wrapper/Wrapper.tsx +2 -2
- package/src/__actions__/Button/v3/Button.tsx +1 -1
- package/src/__actions__/Menu/v1/Menu.spec.tsx +2 -2
- package/src/__actions__/Menu/v1/subcomponents/MenuList/MenuList.tsx +1 -1
- package/src/__actions__/Menu/v3/Menu.tsx +1 -1
- package/src/__actions__/Menu/v3/MenuItem.tsx +1 -1
- package/src/__future__/Select/Select.spec.tsx +13 -27
- package/src/__future__/Select/Select.tsx +2 -11
- package/src/__future__/Select/_docs/Select.mdx +2 -0
- package/src/__future__/Select/subcomponents/ListBox/ListBox.module.scss +3 -3
- package/src/__future__/Select/subcomponents/ListBox/ListBox.tsx +2 -2
- package/src/__future__/Select/subcomponents/Option/Option.tsx +1 -1
- package/src/__future__/Select/subcomponents/Overlay/Overlay.tsx +1 -1
- package/src/__future__/Select/subcomponents/SelectToggle/SelectToggle.tsx +1 -1
- package/src/__future__/Tag/RemovableTag/subcomponents/RemoveButton.tsx +1 -1
- package/src/__future__/Tag/Tag/Tag.tsx +1 -1
- package/src/__future__/index.ts +0 -1
- package/src/{Workflow → __layout__/Workflow/v2}/subcomponents/Footer/components/ProgressStepper/ProgressStepper.module.scss +8 -2
- package/src/{__future__/Workflow → __layout__/Workflow/v2}/subcomponents/Footer/components/ProgressStepper/ProgressStepper.tsx +2 -7
- package/src/__overlays__/Tooltip/v1/Tooltip.spec.tsx +1 -1
- package/src/__overlays__/Tooltip/v1/utils/isSemanticElement.spec.tsx +4 -9
- package/src/__overlays__/Tooltip/v3/OverlayArrow.tsx +1 -1
- package/src/__overlays__/Tooltip/v3/Tooltip.tsx +1 -1
- package/src/__overlays__/Tooltip/v3/_docs/Tooltip.stickersheet.stories.tsx +1 -1
- package/src/index.ts +1 -2
- package/src/utils/hostedAssets.ts +13 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/useMediaQueries.spec.tsx +7 -7
- package/src/utils/useResizeObserver.ts +1 -0
- package/codemods/updateGuidanceBlockVariantProp/index.ts +0 -19
- package/codemods/updateGuidanceBlockVariantProp/transformGuidanceBlockVariantProp.spec.ts +0 -135
- package/codemods/updateGuidanceBlockVariantProp/transformGuidanceBlockVariantProp.ts +0 -77
- package/dist/cjs/Card/Card.module.scss.cjs +0 -22
- package/dist/cjs/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.module.scss.cjs +0 -8
- package/dist/cjs/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.module.scss.cjs +0 -14
- package/dist/cjs/Workflow/subcomponents/Header/components/Branding/Branding.module.scss.cjs +0 -7
- package/dist/cjs/Workflow/subcomponents/Header/components/Root/Root.module.scss.cjs +0 -6
- package/dist/cjs/Workflow/subcomponents/Header/components/Titles/Titles.module.scss.cjs +0 -9
- package/dist/cjs/Workflow/subcomponents/Main/Main.module.scss.cjs +0 -6
- package/dist/cjs/__containers__/GuidanceBlock/v1/GuidanceBlock.module.scss.cjs +0 -33
- package/dist/cjs/__containers__/GuidanceBlock/v2/GuidanceBlock.cjs +0 -160
- package/dist/cjs/__containers__/GuidanceBlock/v2/GuidanceBlock.module.scss.cjs +0 -28
- package/dist/cjs/__future__/Workflow/Workflow.cjs +0 -57
- package/dist/cjs/__future__/Workflow/subcomponents/Footer/Footer.cjs +0 -34
- package/dist/cjs/__future__/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.cjs +0 -26
- package/dist/cjs/__future__/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.module.scss.cjs +0 -8
- package/dist/cjs/__future__/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.cjs +0 -100
- package/dist/cjs/__future__/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.module.scss.cjs +0 -14
- package/dist/cjs/__future__/Workflow/subcomponents/Footer/components/Root/FooterRoot.module.scss.cjs +0 -6
- package/dist/cjs/__future__/Workflow/subcomponents/Footer/components/Root/Root.cjs +0 -23
- package/dist/cjs/__future__/Workflow/subcomponents/Header/Header.cjs +0 -32
- package/dist/cjs/__future__/Workflow/subcomponents/Header/components/Actions/Actions.cjs +0 -26
- package/dist/cjs/__future__/Workflow/subcomponents/Header/components/Actions/Actions.module.scss.cjs +0 -6
- package/dist/cjs/__future__/Workflow/subcomponents/Header/components/Branding/Branding.cjs +0 -25
- package/dist/cjs/__future__/Workflow/subcomponents/Header/components/Branding/Branding.module.scss.cjs +0 -7
- package/dist/cjs/__future__/Workflow/subcomponents/Header/components/Root/Root.cjs +0 -23
- package/dist/cjs/__future__/Workflow/subcomponents/Header/components/Titles/Titles.cjs +0 -42
- package/dist/cjs/__future__/Workflow/subcomponents/Header/components/Titles/Titles.module.scss.cjs +0 -9
- package/dist/cjs/__future__/Workflow/subcomponents/Main/Main.cjs +0 -23
- package/dist/cjs/__future__/Workflow/subcomponents/Wrapper/Wrapper.cjs +0 -23
- package/dist/cjs/__future__/Workflow/subcomponents/Wrapper/Wrapper.module.scss.cjs +0 -6
- package/dist/cjs/containersV1.cjs +0 -4
- package/dist/cjs/containersV2.cjs +0 -4
- package/dist/esm/Card/Card.module.scss.mjs +0 -20
- package/dist/esm/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.module.scss.mjs +0 -6
- package/dist/esm/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.module.scss.mjs +0 -12
- package/dist/esm/Workflow/subcomponents/Footer/components/Root/FooterRoot.module.scss.mjs +0 -4
- package/dist/esm/Workflow/subcomponents/Header/components/Branding/Branding.module.scss.mjs +0 -5
- package/dist/esm/Workflow/subcomponents/Header/components/Root/Root.module.scss.mjs +0 -4
- package/dist/esm/Workflow/subcomponents/Header/components/Titles/Titles.module.scss.mjs +0 -7
- package/dist/esm/Workflow/subcomponents/Main/Main.module.scss.mjs +0 -4
- package/dist/esm/__containers__/GuidanceBlock/v1/GuidanceBlock.module.scss.mjs +0 -31
- package/dist/esm/__containers__/GuidanceBlock/v2/GuidanceBlock.mjs +0 -153
- package/dist/esm/__containers__/GuidanceBlock/v2/GuidanceBlock.module.scss.mjs +0 -26
- package/dist/esm/__future__/Workflow/Workflow.mjs +0 -52
- package/dist/esm/__future__/Workflow/subcomponents/Footer/Footer.mjs +0 -29
- package/dist/esm/__future__/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.mjs +0 -20
- package/dist/esm/__future__/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.module.scss.mjs +0 -6
- package/dist/esm/__future__/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.mjs +0 -94
- package/dist/esm/__future__/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.module.scss.mjs +0 -12
- package/dist/esm/__future__/Workflow/subcomponents/Footer/components/Root/FooterRoot.module.scss.mjs +0 -4
- package/dist/esm/__future__/Workflow/subcomponents/Footer/components/Root/Root.mjs +0 -17
- package/dist/esm/__future__/Workflow/subcomponents/Header/Header.mjs +0 -27
- package/dist/esm/__future__/Workflow/subcomponents/Header/components/Actions/Actions.mjs +0 -21
- package/dist/esm/__future__/Workflow/subcomponents/Header/components/Actions/Actions.module.scss.mjs +0 -4
- package/dist/esm/__future__/Workflow/subcomponents/Header/components/Branding/Branding.mjs +0 -20
- package/dist/esm/__future__/Workflow/subcomponents/Header/components/Branding/Branding.module.scss.mjs +0 -5
- package/dist/esm/__future__/Workflow/subcomponents/Header/components/Root/Root.mjs +0 -17
- package/dist/esm/__future__/Workflow/subcomponents/Header/components/Titles/Titles.mjs +0 -38
- package/dist/esm/__future__/Workflow/subcomponents/Header/components/Titles/Titles.module.scss.mjs +0 -7
- package/dist/esm/__future__/Workflow/subcomponents/Main/Main.mjs +0 -17
- package/dist/esm/__future__/Workflow/subcomponents/Wrapper/Wrapper.mjs +0 -17
- package/dist/esm/__future__/Workflow/subcomponents/Wrapper/Wrapper.module.scss.mjs +0 -4
- package/dist/esm/containersV1.mjs +0 -1
- package/dist/esm/containersV2.mjs +0 -1
- package/dist/types/__containers__/GuidanceBlock/v2/GuidanceBlock.d.ts +0 -59
- package/dist/types/__containers__/GuidanceBlock/v2/index.d.ts +0 -1
- package/dist/types/__containers__/v1.d.ts +0 -1
- package/dist/types/__containers__/v2.d.ts +0 -1
- package/dist/types/__future__/Workflow/Workflow.d.ts +0 -27
- package/dist/types/__future__/Workflow/_docs/controls/controls.d.ts +0 -2
- package/dist/types/__future__/Workflow/_docs/controls/index.d.ts +0 -1
- package/dist/types/__future__/Workflow/index.d.ts +0 -1
- package/dist/types/__future__/Workflow/subcomponents/Footer/Footer.d.ts +0 -12
- package/dist/types/__future__/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.d.ts +0 -11
- package/dist/types/__future__/Workflow/subcomponents/Footer/components/FooterActions/index.d.ts +0 -1
- package/dist/types/__future__/Workflow/subcomponents/Footer/components/ProgressStepper/index.d.ts +0 -1
- package/dist/types/__future__/Workflow/subcomponents/Footer/components/Root/Root.d.ts +0 -7
- package/dist/types/__future__/Workflow/subcomponents/Footer/components/Root/index.d.ts +0 -1
- package/dist/types/__future__/Workflow/subcomponents/Footer/components/index.d.ts +0 -3
- package/dist/types/__future__/Workflow/subcomponents/Footer/index.d.ts +0 -2
- package/dist/types/__future__/Workflow/subcomponents/Header/Header.d.ts +0 -6
- package/dist/types/__future__/Workflow/subcomponents/Header/components/Actions/Actions.d.ts +0 -13
- package/dist/types/__future__/Workflow/subcomponents/Header/components/Actions/index.d.ts +0 -1
- package/dist/types/__future__/Workflow/subcomponents/Header/components/Branding/Branding.d.ts +0 -11
- package/dist/types/__future__/Workflow/subcomponents/Header/components/Branding/index.d.ts +0 -1
- package/dist/types/__future__/Workflow/subcomponents/Header/components/Root/Root.d.ts +0 -7
- package/dist/types/__future__/Workflow/subcomponents/Header/components/Root/index.d.ts +0 -1
- package/dist/types/__future__/Workflow/subcomponents/Header/components/Titles/Titles.d.ts +0 -17
- package/dist/types/__future__/Workflow/subcomponents/Header/components/Titles/index.d.ts +0 -1
- package/dist/types/__future__/Workflow/subcomponents/Header/components/index.d.ts +0 -4
- package/dist/types/__future__/Workflow/subcomponents/Header/index.d.ts +0 -2
- package/dist/types/__future__/Workflow/subcomponents/Main/Main.d.ts +0 -9
- package/dist/types/__future__/Workflow/subcomponents/Main/index.d.ts +0 -1
- package/dist/types/__future__/Workflow/subcomponents/Wrapper/Wrapper.d.ts +0 -9
- package/dist/types/__future__/Workflow/subcomponents/Wrapper/index.d.ts +0 -1
- package/dist/types/__future__/Workflow/subcomponents/index.d.ts +0 -4
- package/src/Heading/__snapshots__/Heading.spec.tsx.snap +0 -85
- package/src/Illustration/utils/usePausePlay.spec.tsx +0 -86
- package/src/Notification/subcomponents/GenericNotification/GenericNotification.spec.tsx +0 -76
- package/src/Text/__snapshots__/Text.spec.tsx.snap +0 -49
- package/src/Workflow/subcomponents/Footer/components/Root/FooterRoot.module.scss +0 -22
- package/src/Workflow/subcomponents/Header/components/Actions/Actions.module.scss +0 -17
- package/src/Workflow/subcomponents/Header/components/Branding/Branding.module.scss +0 -17
- package/src/Workflow/subcomponents/Header/components/Root/Root.module.scss +0 -24
- package/src/Workflow/subcomponents/Header/components/Titles/Titles.module.scss +0 -23
- package/src/Workflow/subcomponents/Main/Main.module.scss +0 -4
- package/src/Workflow/subcomponents/Wrapper/Wrapper.module.scss +0 -9
- package/src/__containers__/GuidanceBlock/v1/GuidanceBlock.spec.tsx +0 -82
- package/src/__containers__/GuidanceBlock/v1/_docs/GuidanceBlock.mdx +0 -38
- package/src/__containers__/GuidanceBlock/v2/GuidanceBlock.module.scss +0 -356
- package/src/__containers__/GuidanceBlock/v2/GuidanceBlock.tsx +0 -262
- package/src/__containers__/GuidanceBlock/v2/_docs/GuidanceBlock.stickersheet.stories.tsx +0 -118
- package/src/__containers__/GuidanceBlock/v2/_docs/GuidanceBlock.stories.tsx +0 -152
- package/src/__containers__/GuidanceBlock/v2/index.ts +0 -1
- package/src/__containers__/v1.ts +0 -1
- package/src/__containers__/v2.ts +0 -1
- package/src/__future__/Workflow/Workflow.tsx +0 -55
- package/src/__future__/Workflow/_docs/ProgressStepper.mdx +0 -37
- package/src/__future__/Workflow/_docs/ProgressStepper.stories.tsx +0 -94
- package/src/__future__/Workflow/_docs/Workflow.mdx +0 -165
- package/src/__future__/Workflow/_docs/Workflow.stories.tsx +0 -174
- package/src/__future__/Workflow/_docs/WorkflowFooter.mdx +0 -38
- package/src/__future__/Workflow/_docs/WorkflowFooter.stories.tsx +0 -96
- package/src/__future__/Workflow/_docs/WorkflowHeader.mdx +0 -28
- package/src/__future__/Workflow/_docs/WorkflowHeader.stories.tsx +0 -70
- package/src/__future__/Workflow/_docs/controls/controls.tsx +0 -93
- package/src/__future__/Workflow/_docs/controls/index.tsx +0 -1
- package/src/__future__/Workflow/index.ts +0 -1
- package/src/__future__/Workflow/subcomponents/Footer/Footer.tsx +0 -38
- package/src/__future__/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.module.scss +0 -15
- package/src/__future__/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.tsx +0 -28
- package/src/__future__/Workflow/subcomponents/Footer/components/FooterActions/index.ts +0 -1
- package/src/__future__/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.module.scss +0 -105
- package/src/__future__/Workflow/subcomponents/Footer/components/ProgressStepper/index.ts +0 -1
- package/src/__future__/Workflow/subcomponents/Footer/components/Root/Root.tsx +0 -23
- package/src/__future__/Workflow/subcomponents/Footer/components/Root/index.ts +0 -1
- package/src/__future__/Workflow/subcomponents/Footer/components/index.ts +0 -3
- package/src/__future__/Workflow/subcomponents/Footer/index.ts +0 -2
- package/src/__future__/Workflow/subcomponents/Header/Header.tsx +0 -27
- package/src/__future__/Workflow/subcomponents/Header/components/Actions/Actions.tsx +0 -24
- package/src/__future__/Workflow/subcomponents/Header/components/Actions/index.ts +0 -1
- package/src/__future__/Workflow/subcomponents/Header/components/Branding/Branding.tsx +0 -20
- package/src/__future__/Workflow/subcomponents/Header/components/Branding/index.ts +0 -1
- package/src/__future__/Workflow/subcomponents/Header/components/Root/Root.tsx +0 -20
- package/src/__future__/Workflow/subcomponents/Header/components/Root/index.tsx +0 -1
- package/src/__future__/Workflow/subcomponents/Header/components/Titles/Titles.tsx +0 -55
- package/src/__future__/Workflow/subcomponents/Header/components/Titles/index.ts +0 -1
- package/src/__future__/Workflow/subcomponents/Header/components/index.ts +0 -4
- package/src/__future__/Workflow/subcomponents/Header/index.ts +0 -2
- package/src/__future__/Workflow/subcomponents/Main/Main.module.scss +0 -4
- package/src/__future__/Workflow/subcomponents/Main/Main.tsx +0 -22
- package/src/__future__/Workflow/subcomponents/Main/index.tsx +0 -1
- package/src/__future__/Workflow/subcomponents/Wrapper/Wrapper.tsx +0 -22
- package/src/__future__/Workflow/subcomponents/Wrapper/index.ts +0 -1
- package/src/__future__/Workflow/subcomponents/index.ts +0 -4
- package/src/__overlays__/Tooltip/v1/subcomponents/AppearanceAnim.spec.tsx +0 -39
- package/src/utils/useResizeObserver.spec.tsx +0 -49
- package/v1/containers/package.json +0 -5
- package/v2/containers/package.json +0 -5
- /package/dist/types/{__containers__/GuidanceBlock/v1 → GuidanceBlock}/index.d.ts +0 -0
- /package/dist/types/{__containers__/GuidanceBlock/v1 → GuidanceBlock}/types.d.ts +0 -0
- /package/dist/types/{__future__/Workflow → __layout__/Workflow/v2}/subcomponents/Footer/components/ProgressStepper/ProgressStepper.d.ts +0 -0
- /package/src/BrandMoment/_docs/{ExampleHeaders.scss → ExampleHeaders.module.scss} +0 -0
- /package/src/Filter/FilterMultiSelect/_docs/{FilterMultiSelect.stories.scss → FilterMultiSelect.module.scss} +0 -0
- /package/src/{__containers__/GuidanceBlock/v1 → GuidanceBlock}/GuidanceBlock.tsx +0 -0
- /package/src/{__containers__/GuidanceBlock/v1 → GuidanceBlock}/index.ts +0 -0
- /package/src/{__containers__/GuidanceBlock/v1 → GuidanceBlock}/types.ts +0 -0
- /package/src/Icon/_docs/{icon.stories.scss → icon.module.scss} +0 -0
- /package/src/Workflow/subcomponents/Footer/components/FooterActions/{FooterActions.module.scss → FooterActions.module.css} +0 -0
- /package/src/{__future__/Workflow → Workflow}/subcomponents/Footer/components/ProgressStepper/ProgressStepper.spec.tsx +0 -0
|
@@ -4,7 +4,7 @@ import { useOption } from "@react-aria/listbox"
|
|
|
4
4
|
import { mergeProps } from "@react-aria/utils"
|
|
5
5
|
import classnames from "classnames"
|
|
6
6
|
import { CheckIcon } from "~components/Icon"
|
|
7
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
7
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
8
8
|
import { useSelectContext } from "../../context"
|
|
9
9
|
import { SelectOption, SelectOptionNode } from "../../types"
|
|
10
10
|
import styles from "./Option.module.scss"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from "react"
|
|
2
2
|
import { FocusScope } from "@react-aria/focus"
|
|
3
3
|
import { useOverlay, DismissButton } from "@react-aria/overlays"
|
|
4
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
4
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
5
5
|
import { useSelectContext } from "../../context"
|
|
6
6
|
import { SelectOption } from "../../types"
|
|
7
7
|
|
|
@@ -3,7 +3,7 @@ import { DOMAttributes, FocusableElement } from "@react-types/shared"
|
|
|
3
3
|
import classnames from "classnames"
|
|
4
4
|
import { ChevronDownIcon, ChevronUpIcon } from "~components/Icon"
|
|
5
5
|
import { Label } from "~components/Label"
|
|
6
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
6
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
7
7
|
import styles from "./SelectToggle.module.scss"
|
|
8
8
|
|
|
9
9
|
export type SelectToggleProps = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ButtonHTMLAttributes } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
3
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
4
4
|
import { RemoveTagIcon } from "./RemoveTagIcon"
|
|
5
5
|
import styles from "./RemoveButton.module.scss"
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode, HTMLAttributes } from "react"
|
|
2
2
|
import classNames from "classnames"
|
|
3
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
3
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
4
4
|
import { TagColors } from "./types"
|
|
5
5
|
import styles from "./Tag.module.scss"
|
|
6
6
|
|
package/src/__future__/index.ts
CHANGED
|
@@ -87,9 +87,15 @@ $indicator-size: 1.25rem;
|
|
|
87
87
|
.stepperDescription {
|
|
88
88
|
display: flex;
|
|
89
89
|
justify-content: center;
|
|
90
|
+
color: var(--color-white);
|
|
91
|
+
font-family: var(--typography-paragraph-small-font-family);
|
|
92
|
+
font-weight: var(--typography-paragraph-small-font-weight);
|
|
93
|
+
font-size: var(--typography-paragraph-small-font-size);
|
|
94
|
+
line-height: var(--typography-paragraph-small-line-height);
|
|
95
|
+
letter-spacing: var(--typography-paragraph-small-letter-spacing);
|
|
90
96
|
|
|
91
|
-
@media (
|
|
92
|
-
|
|
97
|
+
@media (width >= 768px) {
|
|
98
|
+
/* sr hidden styles */
|
|
93
99
|
position: absolute;
|
|
94
100
|
width: 0;
|
|
95
101
|
height: 0;
|
|
@@ -133,14 +133,9 @@ export const ProgressStepper = ({
|
|
|
133
133
|
)
|
|
134
134
|
})}
|
|
135
135
|
</ol>
|
|
136
|
-
<
|
|
137
|
-
classNameOverride={styles.stepperDescription}
|
|
138
|
-
variant="small"
|
|
139
|
-
color="white"
|
|
140
|
-
id="stepper-description"
|
|
141
|
-
>
|
|
136
|
+
<span className={styles.stepperDescription} id="stepper-description">
|
|
142
137
|
Step {currentStepIndex + 1} of {steps.length}
|
|
143
|
-
</
|
|
138
|
+
</span>
|
|
144
139
|
</div>
|
|
145
140
|
)
|
|
146
141
|
}
|
|
@@ -48,7 +48,7 @@ describe("<Tooltip />", () => {
|
|
|
48
48
|
// Non-semantic elements without roles should not have aria-description on them.
|
|
49
49
|
// They won't read to all screen readers as expected and may be reported in Storybook's accessibility tab (which uses Axe under the hood)
|
|
50
50
|
it("doesn't add an accessible description when wrapping a non-semantic element", async () => {
|
|
51
|
-
const warn =
|
|
51
|
+
const warn = vi.spyOn(console, "warn").mockImplementation(vi.fn())
|
|
52
52
|
|
|
53
53
|
render(
|
|
54
54
|
<Tooltip
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from "react"
|
|
2
|
+
import { vi } from "vitest"
|
|
2
3
|
import { ArrowRightIcon } from "~components/Icon"
|
|
3
4
|
import { Button, IconButton } from "~components/__actions__/v2"
|
|
4
5
|
import { isSemanticElement } from "./isSemanticElement"
|
|
5
|
-
|
|
6
6
|
describe("isSemanticElement", () => {
|
|
7
7
|
it("returns true if provided a native element with a semantic role", () => {
|
|
8
8
|
expect(
|
|
9
9
|
isSemanticElement(
|
|
10
|
-
<button onClick={
|
|
10
|
+
<button onClick={vi.fn()} type="button">
|
|
11
11
|
click
|
|
12
12
|
</button>
|
|
13
13
|
)
|
|
@@ -28,19 +28,14 @@ describe("isSemanticElement", () => {
|
|
|
28
28
|
it("will return true if provided a non-semantic element with a semantic role", () => {
|
|
29
29
|
expect(
|
|
30
30
|
isSemanticElement(
|
|
31
|
-
<span
|
|
32
|
-
tabIndex={0}
|
|
33
|
-
role="button"
|
|
34
|
-
onKeyDown={jest.fn}
|
|
35
|
-
onClick={jest.fn()}
|
|
36
|
-
>
|
|
31
|
+
<span tabIndex={0} role="button" onKeyDown={vi.fn()} onClick={vi.fn()}>
|
|
37
32
|
custom semantic el
|
|
38
33
|
</span>
|
|
39
34
|
)
|
|
40
35
|
).toBe(true)
|
|
41
36
|
expect(
|
|
42
37
|
isSemanticElement(
|
|
43
|
-
<div tabIndex={0} role="button" onKeyDown={
|
|
38
|
+
<div tabIndex={0} role="button" onKeyDown={vi.fn()} onClick={vi.fn()}>
|
|
44
39
|
custom semantic el
|
|
45
40
|
</div>
|
|
46
41
|
)
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
type OverlayArrowProps,
|
|
5
5
|
} from "react-aria-components"
|
|
6
6
|
import { useReversedColors } from "~components/__utilities__/v3"
|
|
7
|
-
import { mergeClassNames } from "~utils/mergeClassNames"
|
|
7
|
+
import { mergeClassNames } from "~components/utils/mergeClassNames"
|
|
8
8
|
|
|
9
9
|
import styles from "./OverlayArrow.module.scss"
|
|
10
10
|
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
useContextProps,
|
|
9
9
|
} from "react-aria-components"
|
|
10
10
|
import { useReversedColors } from "~components/__utilities__/v3"
|
|
11
|
-
import { mergeClassNames } from "~utils/mergeClassNames"
|
|
11
|
+
import { mergeClassNames } from "~components/utils/mergeClassNames"
|
|
12
12
|
import { OverlayArrow } from "./OverlayArrow"
|
|
13
13
|
import styles from "./Tooltip.module.scss"
|
|
14
14
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { Meta, composeStories } from "@storybook/react"
|
|
3
3
|
import { ReversedColors } from "~components/__utilities__/v3"
|
|
4
|
+
import { mergeClassNames } from "~components/utils/mergeClassNames"
|
|
4
5
|
import { StickerSheetStory } from "~storybook/components/StickerSheet"
|
|
5
|
-
import { mergeClassNames } from "~utils/mergeClassNames"
|
|
6
6
|
import * as testStories from "./Tooltip.spec.stories"
|
|
7
7
|
|
|
8
8
|
export default {
|
package/src/index.ts
CHANGED
|
@@ -20,7 +20,7 @@ export * from "./ErrorPage"
|
|
|
20
20
|
export * from "./FieldGroup"
|
|
21
21
|
export * from "./FieldMessage"
|
|
22
22
|
export * from "./Filter"
|
|
23
|
-
|
|
23
|
+
export * from "./GuidanceBlock"
|
|
24
24
|
export * from "./Heading"
|
|
25
25
|
export * from "./Icon"
|
|
26
26
|
export * from "./Illustration"
|
|
@@ -61,4 +61,3 @@ export * from "./Workflow"
|
|
|
61
61
|
export * from "./__overlays__/Tooltip/v1"
|
|
62
62
|
export * from "./__actions__/Menu/v1"
|
|
63
63
|
export * from "./__actions__/Button/v1"
|
|
64
|
-
export * from "./__containers__/GuidanceBlock/v1"
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const ORIGIN_BASE_URL = "https://d1e7r7b0lb8p4d.cloudfront.net"
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Returns the full URL of the asset at `path` managed by the
|
|
5
|
+
* `kaizen-design-system-assets` service.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* assetUrl("some/blob.png") -> "https://<origin>/some/blob.png"
|
|
9
|
+
*
|
|
10
|
+
* @see https://github.com/cultureamp/kaizen-design-system-assets/
|
|
11
|
+
*/
|
|
12
|
+
export const assetUrl = (path: string): string =>
|
|
13
|
+
[ORIGIN_BASE_URL, path].join("/")
|
package/src/utils/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { render, screen } from "@testing-library/react"
|
|
3
|
+
import { vi } from "vitest"
|
|
3
4
|
import { useMediaQueries, subtractOnePixel } from "./useMediaQueries"
|
|
4
|
-
|
|
5
5
|
const ExampleComponent = (): JSX.Element => {
|
|
6
6
|
const { queries, components } = useMediaQueries({
|
|
7
7
|
prefersReducedMotion: "(prefers-reduced-motion: reduce)",
|
|
@@ -27,15 +27,15 @@ const ExampleComponent = (): JSX.Element => {
|
|
|
27
27
|
export const mockMatchMedia = (matches: boolean = false): void => {
|
|
28
28
|
Object.defineProperty(window, "matchMedia", {
|
|
29
29
|
writable: true,
|
|
30
|
-
value:
|
|
30
|
+
value: vi.fn().mockImplementation(query => ({
|
|
31
31
|
matches,
|
|
32
32
|
media: query,
|
|
33
33
|
onchange: null,
|
|
34
|
-
addListener:
|
|
35
|
-
removeListener:
|
|
36
|
-
addEventListener:
|
|
37
|
-
removeEventListener:
|
|
38
|
-
dispatchEvent:
|
|
34
|
+
addListener: vi.fn(), // Deprecated
|
|
35
|
+
removeListener: vi.fn(), // Deprecated
|
|
36
|
+
addEventListener: vi.fn(),
|
|
37
|
+
removeEventListener: vi.fn(),
|
|
38
|
+
dispatchEvent: vi.fn(),
|
|
39
39
|
})),
|
|
40
40
|
})
|
|
41
41
|
}
|
|
@@ -23,6 +23,7 @@ export interface DOMRectReadOnly {
|
|
|
23
23
|
* @return {Array} An array containing a ref for binding to the observed DOM
|
|
24
24
|
* element, and the current value of the callback-resolved ResizeObserverEntry
|
|
25
25
|
* @callback resolveEntryCallback
|
|
26
|
+
* @deprecated use native `ResizeObserver` DOM API instead
|
|
26
27
|
*/
|
|
27
28
|
export const useResizeObserver = <T, E extends Element = HTMLElement>(
|
|
28
29
|
resolveEntry: (entry: ResizeObserverEntry) => any = defaultCallback
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { transformComponentsInDir } from "../utils"
|
|
2
|
-
import { transformGuidanceBlockVariantProp } from "./transformGuidanceBlockVariantProp"
|
|
3
|
-
/** This is here as a script runner that updates GuidanceBlock variants to v2 variants */
|
|
4
|
-
const updateGuidanceBlockVariantProp = (): void => {
|
|
5
|
-
// eslint-disable-next-line no-console
|
|
6
|
-
console.log(" ~(-_- ~) Running GuidanceBlock transformer (~ -_-)~")
|
|
7
|
-
const targetDir = process.argv[2]
|
|
8
|
-
if (!targetDir) {
|
|
9
|
-
process.exit(1)
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
transformComponentsInDir(
|
|
13
|
-
targetDir,
|
|
14
|
-
transformGuidanceBlockVariantProp,
|
|
15
|
-
"GuidanceBlock"
|
|
16
|
-
)
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
updateGuidanceBlockVariantProp()
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { parseJsx } from "../__tests__/utils"
|
|
2
|
-
import { transformSource, printAst } from "../utils"
|
|
3
|
-
import { transformGuidanceBlockVariantProp } from "./transformGuidanceBlockVariantProp"
|
|
4
|
-
|
|
5
|
-
describe("transformGuidanceBlockVariantProp", () => {
|
|
6
|
-
it("updates the import statement for GuidanceBlock to the new family version", () => {
|
|
7
|
-
const inputAst = parseJsx(`
|
|
8
|
-
import { GuidanceBlock } from "@kaizen/components"
|
|
9
|
-
import { Card } from "@kaizen/components"
|
|
10
|
-
`)
|
|
11
|
-
const outputAst = parseJsx(`
|
|
12
|
-
import { GuidanceBlock } from "@kaizen/components/v2/containers"
|
|
13
|
-
import { Card } from "@kaizen/components"
|
|
14
|
-
`)
|
|
15
|
-
const transformed = transformSource({
|
|
16
|
-
sourceFile: inputAst,
|
|
17
|
-
astTransformer: transformGuidanceBlockVariantProp,
|
|
18
|
-
tagName: "GuidanceBlock",
|
|
19
|
-
})
|
|
20
|
-
expect(transformed).toBe(printAst(outputAst))
|
|
21
|
-
})
|
|
22
|
-
|
|
23
|
-
it("removes all instances of `positive`, `negative`, `informative`, `cautionary`, `assertive`", () => {
|
|
24
|
-
const inputAst = parseJsx(`
|
|
25
|
-
const TestComponent = () => <GuidanceBlock variant="positive" />
|
|
26
|
-
const TestComponent = () => <GuidanceBlock variant="negative" />
|
|
27
|
-
const TestComponent = () => <GuidanceBlock variant="informative" />
|
|
28
|
-
const TestComponent = () => <GuidanceBlock variant="cautionary" />
|
|
29
|
-
const TestComponent = () => <GuidanceBlock variant="assertive" />
|
|
30
|
-
`)
|
|
31
|
-
const outputAst = parseJsx(`
|
|
32
|
-
const TestComponent = () => <GuidanceBlock />
|
|
33
|
-
const TestComponent = () => <GuidanceBlock />
|
|
34
|
-
const TestComponent = () => <GuidanceBlock />
|
|
35
|
-
const TestComponent = () => <GuidanceBlock />
|
|
36
|
-
const TestComponent = () => <GuidanceBlock />
|
|
37
|
-
`)
|
|
38
|
-
const transformed = transformSource({
|
|
39
|
-
sourceFile: inputAst,
|
|
40
|
-
astTransformer: transformGuidanceBlockVariantProp,
|
|
41
|
-
tagName: "GuidanceBlock",
|
|
42
|
-
})
|
|
43
|
-
expect(transformed).toEqual(printAst(outputAst))
|
|
44
|
-
})
|
|
45
|
-
|
|
46
|
-
it('replaces variant="expert-advice" with variant="prominent"', () => {
|
|
47
|
-
const inputAst = parseJsx(`
|
|
48
|
-
export const TestComponent = () => <GuidanceBlock variant="expert-advice" />
|
|
49
|
-
`)
|
|
50
|
-
const outputAst = parseJsx(`
|
|
51
|
-
export const TestComponent = () => <GuidanceBlock variant="prominent" />
|
|
52
|
-
`)
|
|
53
|
-
const transformed = transformSource({
|
|
54
|
-
sourceFile: inputAst,
|
|
55
|
-
astTransformer: transformGuidanceBlockVariantProp,
|
|
56
|
-
tagName: "GuidanceBlock",
|
|
57
|
-
})
|
|
58
|
-
expect(transformed).toBe(printAst(outputAst))
|
|
59
|
-
})
|
|
60
|
-
|
|
61
|
-
it("handles multiple attributes and replace only variant", () => {
|
|
62
|
-
const inputAst = parseJsx(`
|
|
63
|
-
export const TestComponent = () => <GuidanceBlock variant="positive" id="123" />
|
|
64
|
-
`)
|
|
65
|
-
const outputAst = parseJsx(`
|
|
66
|
-
export const TestComponent = () => <GuidanceBlock id="123" />
|
|
67
|
-
`)
|
|
68
|
-
const transformed = transformSource({
|
|
69
|
-
sourceFile: inputAst,
|
|
70
|
-
astTransformer: transformGuidanceBlockVariantProp,
|
|
71
|
-
tagName: "GuidanceBlock",
|
|
72
|
-
})
|
|
73
|
-
expect(transformed).toBe(printAst(outputAst))
|
|
74
|
-
})
|
|
75
|
-
|
|
76
|
-
it("handles nested GuidanceBlock components", () => {
|
|
77
|
-
const inputAst = parseJsx(`
|
|
78
|
-
export const TestComponent = () => <div><GuidanceBlock variant="positive" id="123" /></div>
|
|
79
|
-
`)
|
|
80
|
-
const outputAst = parseJsx(`
|
|
81
|
-
export const TestComponent = () => <div><GuidanceBlock id="123" /></div>
|
|
82
|
-
`)
|
|
83
|
-
const transformed = transformSource({
|
|
84
|
-
sourceFile: inputAst,
|
|
85
|
-
astTransformer: transformGuidanceBlockVariantProp,
|
|
86
|
-
tagName: "GuidanceBlock",
|
|
87
|
-
})
|
|
88
|
-
expect(transformed).toBe(printAst(outputAst))
|
|
89
|
-
})
|
|
90
|
-
|
|
91
|
-
it("transforms multiple GuidanceBlock", () => {
|
|
92
|
-
const inputAst = parseJsx(`
|
|
93
|
-
export const TestComponent = () => <div><GuidanceBlock variant="positive" /><GuidanceBlock variant="positive" /></div>
|
|
94
|
-
`)
|
|
95
|
-
const outputAst = parseJsx(`
|
|
96
|
-
export const TestComponent = () => <div><GuidanceBlock /><GuidanceBlock /></div>
|
|
97
|
-
`)
|
|
98
|
-
const transformed = transformSource({
|
|
99
|
-
sourceFile: inputAst,
|
|
100
|
-
astTransformer: transformGuidanceBlockVariantProp,
|
|
101
|
-
tagName: "GuidanceBlock",
|
|
102
|
-
})
|
|
103
|
-
expect(transformed).toBe(printAst(outputAst))
|
|
104
|
-
})
|
|
105
|
-
|
|
106
|
-
it("transforms GuidanceBlock with arbitrary braces", () => {
|
|
107
|
-
const inputAst = parseJsx(`
|
|
108
|
-
export const TestComponent = () => <div><GuidanceBlock variant={"informative"} /><GuidanceBlock variant={'assertive'} /><GuidanceBlock variant={\`expert-advice\`} /></div>
|
|
109
|
-
`)
|
|
110
|
-
const outputAst = parseJsx(`
|
|
111
|
-
export const TestComponent = () => <div><GuidanceBlock /><GuidanceBlock /><GuidanceBlock variant="prominent" /></div>
|
|
112
|
-
`)
|
|
113
|
-
const transformed = transformSource({
|
|
114
|
-
sourceFile: inputAst,
|
|
115
|
-
astTransformer: transformGuidanceBlockVariantProp,
|
|
116
|
-
tagName: "GuidanceBlock",
|
|
117
|
-
})
|
|
118
|
-
expect(transformed).toBe(printAst(outputAst))
|
|
119
|
-
})
|
|
120
|
-
|
|
121
|
-
it("won't modify variants usings variables", () => {
|
|
122
|
-
const inputAst = parseJsx(`
|
|
123
|
-
export const TestComponent = () => <div><GuidanceBlock variant={varName} /></div>
|
|
124
|
-
`)
|
|
125
|
-
const outputAst = parseJsx(`
|
|
126
|
-
export const TestComponent = () => <div><GuidanceBlock variant={varName} /></div>
|
|
127
|
-
`)
|
|
128
|
-
const transformed = transformSource({
|
|
129
|
-
sourceFile: inputAst,
|
|
130
|
-
astTransformer: transformGuidanceBlockVariantProp,
|
|
131
|
-
tagName: "GuidanceBlock",
|
|
132
|
-
})
|
|
133
|
-
expect(transformed).toBe(printAst(outputAst))
|
|
134
|
-
})
|
|
135
|
-
})
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import ts from "typescript"
|
|
2
|
-
import { getPropValueText } from "../utils/getPropValueText"
|
|
3
|
-
|
|
4
|
-
/** Recurses through AST to find and update any jsx element that matched the tagName */
|
|
5
|
-
export const transformGuidanceBlockVariantProp =
|
|
6
|
-
(context: ts.TransformationContext, tagName: string) =>
|
|
7
|
-
(rootNode: ts.Node): ts.Node => {
|
|
8
|
-
function visit(node: ts.Node): ts.Node {
|
|
9
|
-
if (ts.isImportDeclaration(node) && node.getText().includes(tagName)) {
|
|
10
|
-
const newModuleSpecifier = ts.factory.createStringLiteral(
|
|
11
|
-
"@kaizen/components/v2/containers"
|
|
12
|
-
)
|
|
13
|
-
return ts.factory.updateImportDeclaration(
|
|
14
|
-
node,
|
|
15
|
-
node.modifiers,
|
|
16
|
-
node.importClause,
|
|
17
|
-
newModuleSpecifier,
|
|
18
|
-
node.attributes
|
|
19
|
-
)
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
if (ts.isJsxSelfClosingElement(node)) {
|
|
23
|
-
if (node.tagName.getText() === tagName) {
|
|
24
|
-
const newAttributes = node.attributes.properties.reduce<
|
|
25
|
-
ts.JsxAttributeLike[]
|
|
26
|
-
>((acc, attr) => {
|
|
27
|
-
if (ts.isJsxAttribute(attr) && attr.name.getText() === "variant") {
|
|
28
|
-
const valueName =
|
|
29
|
-
attr.initializer && getPropValueText(attr.initializer)
|
|
30
|
-
|
|
31
|
-
const oldValues = [
|
|
32
|
-
"positive",
|
|
33
|
-
"negative",
|
|
34
|
-
"informative",
|
|
35
|
-
"cautionary",
|
|
36
|
-
"assertive",
|
|
37
|
-
]
|
|
38
|
-
|
|
39
|
-
if (valueName) {
|
|
40
|
-
if (oldValues.includes(valueName)) {
|
|
41
|
-
// Remove the attribute for old values
|
|
42
|
-
return acc
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
if (valueName === "expert-advice") {
|
|
46
|
-
// Replace the attribute value for expert-advice
|
|
47
|
-
return [
|
|
48
|
-
...acc,
|
|
49
|
-
ts.factory.createJsxAttribute(
|
|
50
|
-
attr.name,
|
|
51
|
-
ts.factory.createStringLiteral("prominent")
|
|
52
|
-
),
|
|
53
|
-
]
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
// Keep the attribute for other values
|
|
57
|
-
return [...acc, attr]
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
return [...acc, attr]
|
|
62
|
-
}, [])
|
|
63
|
-
|
|
64
|
-
if (ts.isJsxSelfClosingElement(node)) {
|
|
65
|
-
return ts.factory.updateJsxSelfClosingElement(
|
|
66
|
-
node,
|
|
67
|
-
node.tagName,
|
|
68
|
-
node.typeArguments,
|
|
69
|
-
ts.factory.createJsxAttributes(newAttributes)
|
|
70
|
-
)
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
return ts.visitEachChild(node, visit, context)
|
|
75
|
-
}
|
|
76
|
-
return ts.visitNode(rootNode, visit)
|
|
77
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var styles = {
|
|
4
|
-
"wrapper": "Card-module_wrapper__h5MUx",
|
|
5
|
-
"elevated": "Card-module_elevated__m7z8s",
|
|
6
|
-
"blue": "Card-module_blue__3-ogH",
|
|
7
|
-
"gray": "Card-module_gray__laFe8",
|
|
8
|
-
"green": "Card-module_green__FOeLt",
|
|
9
|
-
"orange": "Card-module_orange__hIZPr",
|
|
10
|
-
"purple": "Card-module_purple__7tEwm",
|
|
11
|
-
"red": "Card-module_red__e6deN",
|
|
12
|
-
"white": "Card-module_white__HD1ph",
|
|
13
|
-
"yellow": "Card-module_yellow__j4aX-",
|
|
14
|
-
"default": "Card-module_default__MzW74",
|
|
15
|
-
"informative": "Card-module_informative__4yRSy",
|
|
16
|
-
"positive": "Card-module_positive__KvUqp",
|
|
17
|
-
"cautionary": "Card-module_cautionary__iMWR-",
|
|
18
|
-
"destructive": "Card-module_destructive__9wC8X",
|
|
19
|
-
"assertive": "Card-module_assertive__6d1GM",
|
|
20
|
-
"highlight": "Card-module_highlight__2GSL-"
|
|
21
|
-
};
|
|
22
|
-
module.exports = styles;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var styles = {
|
|
4
|
-
"footerAction": "FooterActions-module_footerAction__H-bdq",
|
|
5
|
-
"footerActionPrevious": "FooterActions-module_footerActionPrevious__yyzsX",
|
|
6
|
-
"footerActionNext": "FooterActions-module_footerActionNext__GIowc"
|
|
7
|
-
};
|
|
8
|
-
module.exports = styles;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var styles = {
|
|
4
|
-
"stepsContainer": "ProgressStepper-module_stepsContainer__kh4S2",
|
|
5
|
-
"stepList": "ProgressStepper-module_stepList__ToKVO",
|
|
6
|
-
"step": "ProgressStepper-module_step__5Zakx",
|
|
7
|
-
"stepContent": "ProgressStepper-module_stepContent__brp8m",
|
|
8
|
-
"stepIndicator": "ProgressStepper-module_stepIndicator__vAWW6",
|
|
9
|
-
"stepName": "ProgressStepper-module_stepName__21rPP",
|
|
10
|
-
"stepIcon": "ProgressStepper-module_stepIcon__eW-Ps",
|
|
11
|
-
"stepDivider": "ProgressStepper-module_stepDivider__SaO4y",
|
|
12
|
-
"stepperDescription": "ProgressStepper-module_stepperDescription__XT8Ra"
|
|
13
|
-
};
|
|
14
|
-
module.exports = styles;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var styles = {
|
|
4
|
-
"rightMargin": "GuidanceBlock-module_rightMargin__SbVUD",
|
|
5
|
-
"noRightMargin": "GuidanceBlock-module_noRightMargin__CbCz9",
|
|
6
|
-
"banner": "GuidanceBlock-module_banner__NyOs1",
|
|
7
|
-
"noMaxWidth": "GuidanceBlock-module_noMaxWidth__Rh070",
|
|
8
|
-
"illustrationWrapper": "GuidanceBlock-module_illustrationWrapper__lIGaj",
|
|
9
|
-
"illustration": "GuidanceBlock-module_illustration__W7PwM",
|
|
10
|
-
"hasSceneIllustration": "GuidanceBlock-module_hasSceneIllustration__CX8GF",
|
|
11
|
-
"descriptionContainer": "GuidanceBlock-module_descriptionContainer__JyNJp",
|
|
12
|
-
"descriptionAndActions": "GuidanceBlock-module_descriptionAndActions__2KGZQ",
|
|
13
|
-
"buttonContainer": "GuidanceBlock-module_buttonContainer__6-Ty-",
|
|
14
|
-
"hidden": "GuidanceBlock-module_hidden__a6zCg",
|
|
15
|
-
"headingWrapper": "GuidanceBlock-module_headingWrapper__3zGY2",
|
|
16
|
-
"cancel": "GuidanceBlock-module_cancel__G-4ci",
|
|
17
|
-
"icon": "GuidanceBlock-module_icon__W0pEX",
|
|
18
|
-
"disabled": "GuidanceBlock-module_disabled__GL1dK",
|
|
19
|
-
"hover": "GuidanceBlock-module_hover__5PdJM",
|
|
20
|
-
"active": "GuidanceBlock-module_active__3ifEz",
|
|
21
|
-
"default": "GuidanceBlock-module_default__9rhEq",
|
|
22
|
-
"positive": "GuidanceBlock-module_positive__m6n-N",
|
|
23
|
-
"negative": "GuidanceBlock-module_negative__Z8tj-",
|
|
24
|
-
"assertive": "GuidanceBlock-module_assertive__76y6Y",
|
|
25
|
-
"informative": "GuidanceBlock-module_informative__QBzhx",
|
|
26
|
-
"cautionary": "GuidanceBlock-module_cautionary__iwOA-",
|
|
27
|
-
"prominent": "GuidanceBlock-module_prominent__LWMSm",
|
|
28
|
-
"inline": "GuidanceBlock-module_inline__Dq-OU",
|
|
29
|
-
"stacked": "GuidanceBlock-module_stacked__h3bUz",
|
|
30
|
-
"centerContent": "GuidanceBlock-module_centerContent__Cyd34",
|
|
31
|
-
"smallScreenTextAlignment": "GuidanceBlock-module_smallScreenTextAlignment__VI-fw"
|
|
32
|
-
};
|
|
33
|
-
module.exports = styles;
|