@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 * as GuidanceBlockStories from "./GuidanceBlock.stories"
|
|
|
4
4
|
|
|
5
5
|
<Meta of={GuidanceBlockStories} />
|
|
6
6
|
|
|
7
|
-
# GuidanceBlock
|
|
7
|
+
# GuidanceBlock
|
|
8
8
|
|
|
9
9
|
<ResourceLinks
|
|
10
10
|
sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/GuidanceBlock"
|
|
@@ -13,7 +13,7 @@ import * as GuidanceBlockStories from "./GuidanceBlock.stories"
|
|
|
13
13
|
|
|
14
14
|
/>
|
|
15
15
|
|
|
16
|
-
<KAIOInstallation exportNames="GuidanceBlock"
|
|
16
|
+
<KAIOInstallation exportNames="GuidanceBlock" />
|
|
17
17
|
|
|
18
18
|
## Overview
|
|
19
19
|
|
|
@@ -12,7 +12,7 @@ import { GuidanceBlock, GuidanceBlockProps } from "../index"
|
|
|
12
12
|
import { variantsMap } from "../types"
|
|
13
13
|
|
|
14
14
|
export default {
|
|
15
|
-
title: "Containers/GuidanceBlock
|
|
15
|
+
title: "Containers/GuidanceBlock",
|
|
16
16
|
parameters: {
|
|
17
17
|
chromatic: { disable: false },
|
|
18
18
|
controls: { disable: true },
|
|
@@ -1,37 +1,8 @@
|
|
|
1
1
|
import * as React from "react"
|
|
2
2
|
import { render } from "@testing-library/react"
|
|
3
|
-
import { AllowedHeadingTags, Heading, HeadingVariants } from "
|
|
3
|
+
import { AllowedHeadingTags, Heading, HeadingVariants } from "."
|
|
4
4
|
|
|
5
5
|
describe("<Heading />", () => {
|
|
6
|
-
it("renders the correct classes", () => {
|
|
7
|
-
const headingMock = render(<Heading variant="display-0">Example</Heading>)
|
|
8
|
-
const headingClasslist = headingMock.getByText("Example").classList
|
|
9
|
-
expect(headingClasslist).toContain("heading")
|
|
10
|
-
expect(headingClasslist).toContain("display-0")
|
|
11
|
-
expect(headingClasslist).toContain("large")
|
|
12
|
-
})
|
|
13
|
-
|
|
14
|
-
it("adds a .small class instead of .large if a Heading 3 is used", () => {
|
|
15
|
-
const headingMock = render(
|
|
16
|
-
<Heading variant="heading-3" tag="div">
|
|
17
|
-
Example
|
|
18
|
-
</Heading>
|
|
19
|
-
)
|
|
20
|
-
expect(headingMock.getByText("Example").classList).toContain("small")
|
|
21
|
-
expect(headingMock.getByText("Example").classList).not.toContain("large")
|
|
22
|
-
})
|
|
23
|
-
|
|
24
|
-
it("adds a .dark-reduced-opacity class if the color prop is set to that", () => {
|
|
25
|
-
const headingMock = render(
|
|
26
|
-
<Heading variant="heading-3" color="dark-reduced-opacity">
|
|
27
|
-
Example
|
|
28
|
-
</Heading>
|
|
29
|
-
)
|
|
30
|
-
expect(headingMock.getByText("Example").classList).toContain(
|
|
31
|
-
"dark-reduced-opacity"
|
|
32
|
-
)
|
|
33
|
-
})
|
|
34
|
-
|
|
35
6
|
it("changes rendered HTML element when passed tag", () => {
|
|
36
7
|
const headingMock = render(
|
|
37
8
|
<Heading variant="display-0" tag="div">
|
|
@@ -66,7 +37,6 @@ describe("<Heading />", () => {
|
|
|
66
37
|
it(`renders the correct element for <Heading variant={${variant}} />`, () => {
|
|
67
38
|
const headingMock = render(<Heading variant={variant}>Example</Heading>)
|
|
68
39
|
expect(headingMock.getByText("Example").tagName.toLowerCase()).toBe(el)
|
|
69
|
-
expect(headingMock.baseElement).toMatchSnapshot()
|
|
70
40
|
})
|
|
71
41
|
})
|
|
72
42
|
})
|
package/src/Heading/Heading.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createElement, 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 styles from "./Heading.module.scss"
|
|
5
5
|
|
|
6
6
|
const VARIANTS_24PX_OR_GREATER = ["display-0", "heading-1", "heading-2"]
|
|
@@ -4,7 +4,7 @@ import * as ICONS from "~components/Icon"
|
|
|
4
4
|
import { Text } from "~components/Text"
|
|
5
5
|
import { Tag } from "~components/__future__/Tag"
|
|
6
6
|
import { AddIcon } from "../index"
|
|
7
|
-
import styles from "./icon.
|
|
7
|
+
import styles from "./icon.module.scss"
|
|
8
8
|
|
|
9
9
|
const meta = {
|
|
10
10
|
title: "Components/Icons",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode, SVGAttributes } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
3
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
4
4
|
import styles from "./SVG.module.scss"
|
|
5
5
|
|
|
6
6
|
type MeaningfulIcon = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
4
|
+
import { assetUrl } from "~components/utils/hostedAssets"
|
|
5
5
|
import styles from "./Base.module.scss"
|
|
6
6
|
|
|
7
7
|
export type BaseProps = {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { render, screen } from "@testing-library/react"
|
|
3
|
-
import
|
|
3
|
+
import { vi } from "vitest"
|
|
4
4
|
import { VideoPlayer } from "./VideoPlayer"
|
|
5
5
|
|
|
6
6
|
const matchMedia = {
|
|
7
7
|
media: "",
|
|
8
8
|
onchange: null,
|
|
9
|
-
addListener:
|
|
10
|
-
removeListener:
|
|
11
|
-
addEventListener:
|
|
12
|
-
removeEventListener:
|
|
9
|
+
addListener: vi.fn(),
|
|
10
|
+
removeListener: vi.fn(),
|
|
11
|
+
addEventListener: vi.fn(),
|
|
12
|
+
removeEventListener: vi.fn(),
|
|
13
13
|
}
|
|
14
14
|
const mockPrefersReducedMotion = {
|
|
15
15
|
matches: true,
|
|
@@ -19,35 +19,36 @@ const mockDoesNotPreferReducedMotion = {
|
|
|
19
19
|
matches: false,
|
|
20
20
|
...matchMedia,
|
|
21
21
|
}
|
|
22
|
-
const mockPlay =
|
|
23
|
-
const mockLoad =
|
|
24
|
-
const mockPause =
|
|
22
|
+
const mockPlay = vi.fn().mockResolvedValue(undefined)
|
|
23
|
+
const mockLoad = vi.fn()
|
|
24
|
+
const mockPause = vi.fn()
|
|
25
25
|
|
|
26
26
|
describe("<VideoPlayer />", () => {
|
|
27
27
|
beforeEach(() => {
|
|
28
28
|
window.HTMLMediaElement.prototype.load = mockLoad
|
|
29
29
|
window.HTMLMediaElement.prototype.play = mockPlay
|
|
30
30
|
window.HTMLMediaElement.prototype.pause = mockPause
|
|
31
|
-
window.matchMedia =
|
|
31
|
+
window.matchMedia = vi
|
|
32
32
|
.fn()
|
|
33
33
|
.mockImplementation(() => mockDoesNotPreferReducedMotion)
|
|
34
34
|
// this will stop throwing the unstable_flushDiscreteUpdates console error cause by react bug
|
|
35
35
|
// https://stackoverflow.com/a/65338472/18285270
|
|
36
36
|
Object.defineProperty(HTMLMediaElement.prototype, "muted", {
|
|
37
|
-
set:
|
|
37
|
+
set: vi.fn(),
|
|
38
38
|
})
|
|
39
39
|
})
|
|
40
40
|
|
|
41
41
|
afterEach(() => {
|
|
42
|
-
|
|
42
|
+
vi.clearAllMocks()
|
|
43
43
|
})
|
|
44
44
|
|
|
45
|
-
it("renders a video player in the document and autoplay",
|
|
45
|
+
it("renders a video player in the document and autoplay", () => {
|
|
46
46
|
render(
|
|
47
47
|
<VideoPlayer
|
|
48
48
|
autoplay
|
|
49
49
|
fallback="illustrations/heart/spot/moods-cautionary.svg"
|
|
50
50
|
source="illustrations/heart/spot/moods-cautionary.webm"
|
|
51
|
+
data-testid="kz-video-player"
|
|
51
52
|
/>
|
|
52
53
|
)
|
|
53
54
|
const videoPlayer = screen.getByTestId("kz-video-player")
|
|
@@ -55,92 +56,37 @@ describe("<VideoPlayer />", () => {
|
|
|
55
56
|
expect(mockPlay).toHaveBeenCalled()
|
|
56
57
|
})
|
|
57
58
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
})
|
|
74
|
-
|
|
75
|
-
it("defaults to autoplay when user does not set use-reduced-motion preferences", () => {
|
|
76
|
-
window.matchMedia = jest
|
|
77
|
-
.fn()
|
|
78
|
-
.mockImplementation(() => mockDoesNotPreferReducedMotion)
|
|
79
|
-
render(
|
|
80
|
-
<VideoPlayer
|
|
81
|
-
autoplay
|
|
82
|
-
fallback="illustrations/heart/spot/moods-cautionary.svg"
|
|
83
|
-
source="illustrations/heart/spot/moods-cautionary.webm"
|
|
84
|
-
/>
|
|
85
|
-
)
|
|
86
|
-
const videoPlayer = screen.getByTestId("kz-video-player")
|
|
87
|
-
expect(videoPlayer).toHaveAttribute("autoplay")
|
|
88
|
-
expect(mockPlay).toHaveBeenCalled()
|
|
89
|
-
})
|
|
90
|
-
})
|
|
91
|
-
|
|
92
|
-
describe("when the aspect ratio is set as a prop", () => {
|
|
93
|
-
it("has aspect ratio class", () => {
|
|
94
|
-
window.matchMedia = jest
|
|
95
|
-
.fn()
|
|
96
|
-
.mockImplementation(() => mockDoesNotPreferReducedMotion)
|
|
97
|
-
const { container } = render(
|
|
98
|
-
<VideoPlayer
|
|
99
|
-
aspectRatio="landscape"
|
|
100
|
-
autoplay
|
|
101
|
-
fallback="illustrations/heart/spot/moods-cautionary.svg"
|
|
102
|
-
source="illustrations/heart/spot/moods-cautionary.webm"
|
|
103
|
-
/>
|
|
104
|
-
)
|
|
105
|
-
expect(container.querySelector(".aspectRatioWrapper")).toBeTruthy()
|
|
106
|
-
expect(container.querySelector(".landscape")).toBeTruthy()
|
|
107
|
-
})
|
|
108
|
-
})
|
|
109
|
-
|
|
110
|
-
describe("when the aspect ratio is not set as a prop", () => {
|
|
111
|
-
it("does not have aspect ratio class", () => {
|
|
112
|
-
window.matchMedia = jest
|
|
113
|
-
.fn()
|
|
114
|
-
.mockImplementation(() => mockDoesNotPreferReducedMotion)
|
|
115
|
-
const { container } = render(
|
|
116
|
-
<VideoPlayer
|
|
117
|
-
autoplay
|
|
118
|
-
fallback="illustrations/heart/spot/moods-cautionary.svg"
|
|
119
|
-
source="illustrations/heart/spot/moods-cautionary.webm"
|
|
120
|
-
/>
|
|
121
|
-
)
|
|
122
|
-
expect(container.querySelector(".aspectRatioWrapper")).toBeFalsy()
|
|
123
|
-
expect(container.querySelector(".landscape")).toBeFalsy()
|
|
124
|
-
})
|
|
59
|
+
it("respects the use-reduced-motion preferences of the user", () => {
|
|
60
|
+
window.matchMedia = vi
|
|
61
|
+
.fn()
|
|
62
|
+
.mockImplementation(() => mockPrefersReducedMotion)
|
|
63
|
+
render(
|
|
64
|
+
<VideoPlayer
|
|
65
|
+
autoplay
|
|
66
|
+
fallback="illustrations/heart/spot/moods-cautionary.svg"
|
|
67
|
+
source="illustrations/heart/spot/moods-cautionary.webm"
|
|
68
|
+
data-testid="kz-video-player"
|
|
69
|
+
/>
|
|
70
|
+
)
|
|
71
|
+
const videoPlayer = screen.getByTestId("kz-video-player")
|
|
72
|
+
expect(videoPlayer).not.toHaveAttribute("autoplay")
|
|
73
|
+
expect(mockPause).toHaveBeenCalled()
|
|
125
74
|
})
|
|
126
75
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
expect(mockPlay).toHaveBeenCalled()
|
|
144
|
-
})
|
|
76
|
+
it("defaults to autoplay when user does not set use-reduced-motion preferences", () => {
|
|
77
|
+
window.matchMedia = vi
|
|
78
|
+
.fn()
|
|
79
|
+
.mockImplementation(() => mockDoesNotPreferReducedMotion)
|
|
80
|
+
render(
|
|
81
|
+
<VideoPlayer
|
|
82
|
+
autoplay
|
|
83
|
+
fallback="illustrations/heart/spot/moods-cautionary.svg"
|
|
84
|
+
source="illustrations/heart/spot/moods-cautionary.webm"
|
|
85
|
+
data-testid="kz-video-player"
|
|
86
|
+
/>
|
|
87
|
+
)
|
|
88
|
+
const videoPlayer = screen.getByTestId("kz-video-player")
|
|
89
|
+
expect(videoPlayer).toHaveAttribute("autoplay")
|
|
90
|
+
expect(mockPlay).toHaveBeenCalled()
|
|
145
91
|
})
|
|
146
92
|
})
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import React from "react"
|
|
2
|
+
import { Meta } from "@storybook/react"
|
|
3
|
+
import {
|
|
4
|
+
StickerSheet,
|
|
5
|
+
StickerSheetStory,
|
|
6
|
+
} from "~storybook/components/StickerSheet"
|
|
7
|
+
import { VideoPlayer } from "./index"
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
title: "Components/Illustrations/VideoPlayer",
|
|
11
|
+
parameters: {
|
|
12
|
+
controls: { disable: true },
|
|
13
|
+
chromatic: { disable: false },
|
|
14
|
+
},
|
|
15
|
+
} satisfies Meta
|
|
16
|
+
|
|
17
|
+
const StickerSheetTemplate: StickerSheetStory = {
|
|
18
|
+
render: ({ isReversed }) => (
|
|
19
|
+
<StickerSheet isReversed={isReversed} title="Aspect Ratio">
|
|
20
|
+
<StickerSheet.Body>
|
|
21
|
+
<StickerSheet.Row rowTitle="default">
|
|
22
|
+
<div className="border border-dashed border-grey-500">
|
|
23
|
+
<VideoPlayer
|
|
24
|
+
autoplay={false}
|
|
25
|
+
fallback="illustrations/heart/scene/brand-moments-positive-outro"
|
|
26
|
+
source="illustrations/heart/scene/brand-moments-positive-outro"
|
|
27
|
+
/>
|
|
28
|
+
</div>
|
|
29
|
+
</StickerSheet.Row>
|
|
30
|
+
<StickerSheet.Row rowTitle="landscape">
|
|
31
|
+
<div className="border border-dashed border-grey-500">
|
|
32
|
+
<VideoPlayer
|
|
33
|
+
autoplay={false}
|
|
34
|
+
aspectRatio="landscape"
|
|
35
|
+
fallback="illustrations/heart/scene/brand-moments-positive-outro"
|
|
36
|
+
source="illustrations/heart/scene/brand-moments-positive-outro"
|
|
37
|
+
/>
|
|
38
|
+
</div>
|
|
39
|
+
</StickerSheet.Row>
|
|
40
|
+
<StickerSheet.Row rowTitle="portrait">
|
|
41
|
+
<div className="border border-dashed border-grey-500">
|
|
42
|
+
<VideoPlayer
|
|
43
|
+
autoplay={false}
|
|
44
|
+
aspectRatio="portrait"
|
|
45
|
+
fallback="illustrations/heart/scene/brand-moments-positive-outro"
|
|
46
|
+
source="illustrations/heart/scene/brand-moments-positive-outro"
|
|
47
|
+
/>
|
|
48
|
+
</div>
|
|
49
|
+
</StickerSheet.Row>
|
|
50
|
+
<StickerSheet.Row rowTitle="square">
|
|
51
|
+
<div className="border border-dashed border-grey-500">
|
|
52
|
+
<VideoPlayer
|
|
53
|
+
autoplay={false}
|
|
54
|
+
aspectRatio="square"
|
|
55
|
+
fallback="illustrations/heart/scene/brand-moments-positive-outro"
|
|
56
|
+
source="illustrations/heart/scene/brand-moments-positive-outro"
|
|
57
|
+
/>
|
|
58
|
+
</div>
|
|
59
|
+
</StickerSheet.Row>
|
|
60
|
+
</StickerSheet.Body>
|
|
61
|
+
</StickerSheet>
|
|
62
|
+
),
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export const StickerSheetDefault: StickerSheetStory = {
|
|
66
|
+
...StickerSheetTemplate,
|
|
67
|
+
name: "Sticker Sheet (Default)",
|
|
68
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from "react"
|
|
2
|
+
import { Meta, StoryObj } from "@storybook/react"
|
|
3
|
+
import { userEvent, within, expect, waitFor } from "@storybook/test"
|
|
4
|
+
import { VideoPlayer } from "./index"
|
|
5
|
+
|
|
6
|
+
const meta = {
|
|
7
|
+
title: "Components/Illustrations/VideoPlayer",
|
|
8
|
+
component: VideoPlayer,
|
|
9
|
+
args: {
|
|
10
|
+
autoplay: false,
|
|
11
|
+
fallback: "illustrations/heart/scene/brand-moments-positive-outro",
|
|
12
|
+
source: "illustrations/heart/scene/brand-moments-positive-outro",
|
|
13
|
+
},
|
|
14
|
+
} satisfies Meta<typeof VideoPlayer>
|
|
15
|
+
|
|
16
|
+
export default meta
|
|
17
|
+
|
|
18
|
+
type Story = StoryObj<typeof meta>
|
|
19
|
+
|
|
20
|
+
export const PausePlay: Story = {
|
|
21
|
+
render: args => <VideoPlayer {...args} />,
|
|
22
|
+
name: "VideoPlayer: Pause/Play",
|
|
23
|
+
play: async ({ canvasElement }) => {
|
|
24
|
+
const canvas = within(canvasElement)
|
|
25
|
+
const element = canvas.getByRole("button")
|
|
26
|
+
|
|
27
|
+
waitFor(() => {
|
|
28
|
+
userEvent.click(element)
|
|
29
|
+
expect(element).toHaveAttribute("aria-label", "Pause animation")
|
|
30
|
+
})
|
|
31
|
+
|
|
32
|
+
waitFor(() => {
|
|
33
|
+
userEvent.click(element)
|
|
34
|
+
expect(element).toHaveAttribute("aria-label", "Play animation")
|
|
35
|
+
})
|
|
36
|
+
},
|
|
37
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useEffect, useRef } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
|
-
import { assetUrl } from "@kaizen/hosted-assets"
|
|
4
3
|
import { IconButton } from "~components/__actions__/v2"
|
|
4
|
+
import { assetUrl } from "~components/utils/hostedAssets"
|
|
5
5
|
import { canPlayWebm } from "../../utils/canPlayWebm"
|
|
6
6
|
import { usePausePlay } from "../../utils/usePausePlay"
|
|
7
7
|
import styles from "../Base/Base.module.scss"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { InputHTMLAttributes } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
3
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
4
4
|
import { InputStatus, InputTypes } from "./types"
|
|
5
5
|
import styles from "./Input.module.scss"
|
|
6
6
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { render, screen, fireEvent, waitFor } from "@testing-library/react"
|
|
3
|
+
import { vi } from "vitest"
|
|
3
4
|
import { InputRange } from "./index"
|
|
4
|
-
|
|
5
5
|
describe("<InputRange />", () => {
|
|
6
6
|
it("fires onChange after interaction", async () => {
|
|
7
|
-
const onChange =
|
|
7
|
+
const onChange = vi.fn()
|
|
8
8
|
render(
|
|
9
9
|
<InputRange
|
|
10
10
|
id="unique-3"
|
|
@@ -2,7 +2,7 @@ import React, { InputHTMLAttributes, ReactNode, useState } from "react"
|
|
|
2
2
|
import classnames from "classnames"
|
|
3
3
|
import { Text } from "~components/Text"
|
|
4
4
|
import { VisuallyHidden } from "~components/VisuallyHidden"
|
|
5
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
5
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
6
6
|
import styles from "./InputRange.module.scss"
|
|
7
7
|
|
|
8
8
|
export type InputRangeProps = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { render, waitFor } from "@testing-library/react"
|
|
3
3
|
import userEvent from "@testing-library/user-event"
|
|
4
|
-
import {
|
|
4
|
+
import { vi } from "vitest"
|
|
5
5
|
import { InputSearchProps } from "./InputSearch"
|
|
6
6
|
import { InputSearch } from "."
|
|
7
7
|
|
|
@@ -10,7 +10,7 @@ const user = userEvent.setup()
|
|
|
10
10
|
const defaultInputProps = {
|
|
11
11
|
id: "someInputId",
|
|
12
12
|
value: "somevalue",
|
|
13
|
-
onChange:
|
|
13
|
+
onChange: vi.fn(),
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
const renderInput = (
|
|
@@ -18,9 +18,7 @@ const renderInput = (
|
|
|
18
18
|
): ReturnType<typeof render> => {
|
|
19
19
|
const mergedInputProps = { ...defaultInputProps, ...props }
|
|
20
20
|
|
|
21
|
-
return
|
|
22
|
-
<InputSearch {...mergedInputProps} data-testid="someInputId" />
|
|
23
|
-
)
|
|
21
|
+
return render(<InputSearch {...mergedInputProps} data-testid="someInputId" />)
|
|
24
22
|
}
|
|
25
23
|
|
|
26
24
|
describe("<InputSearch />", () => {
|
|
@@ -4,7 +4,7 @@ import classnames from "classnames"
|
|
|
4
4
|
import { ClearButton } from "~components/ClearButton"
|
|
5
5
|
import { SearchIcon } from "~components/Icon/SearchIcon"
|
|
6
6
|
import { LoadingSpinner } from "~components/Loading"
|
|
7
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
7
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
8
8
|
import styles from "./InputSearch.module.scss"
|
|
9
9
|
|
|
10
10
|
export type InputSearchProps = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { render } from "@testing-library/react"
|
|
3
|
+
import { vi } from "vitest"
|
|
3
4
|
import { KaizenProvider, KaizenProviderProps } from "./KaizenProvider"
|
|
4
|
-
|
|
5
5
|
const KaizenProviderWrapper = ({
|
|
6
6
|
children,
|
|
7
7
|
...restProps
|
|
@@ -9,7 +9,7 @@ const KaizenProviderWrapper = ({
|
|
|
9
9
|
<KaizenProvider {...restProps}>{children}</KaizenProvider>
|
|
10
10
|
)
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
vi.mock("./subcomponents/OptionalIntlProvider", () => ({
|
|
13
13
|
OptionalIntlProvider: ({ children }: { children: React.ReactElement }) => (
|
|
14
14
|
<div>{children}</div>
|
|
15
15
|
),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Meta } from "@storybook/blocks"
|
|
2
2
|
import Highlight from "react-highlight"
|
|
3
|
-
import migrationBonus from "
|
|
4
|
-
import migrationFETBonus from "
|
|
5
|
-
import migrationFETToV1 from "
|
|
6
|
-
import migrationToV1 from "
|
|
3
|
+
import migrationBonus from "./code-diffs/migration-bonus.diff?raw"
|
|
4
|
+
import migrationFETBonus from "./code-diffs/migration-fe-template-bonus.diff?raw"
|
|
5
|
+
import migrationFETToV1 from "./code-diffs/migration-fe-template-to-v1.diff?raw"
|
|
6
|
+
import migrationToV1 from "./code-diffs/migration-to-v1.diff?raw"
|
|
7
7
|
|
|
8
8
|
<Meta title="Components/Kaizen Provider/Installation" />
|
|
9
9
|
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { render, screen } from "@testing-library/react"
|
|
3
3
|
import { IntlProvider } from "react-intl"
|
|
4
|
+
import { vi } from "vitest"
|
|
4
5
|
import { OptionalIntlProvider } from "."
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
vi.mock("@cultureamp/i18n-react-intl", () => ({
|
|
7
8
|
StaticIntlProvider: ({ children }: { children: React.ReactElement }) => (
|
|
8
9
|
<div data-testid="mockedIntlProvider">{children}</div>
|
|
9
10
|
),
|
|
@@ -35,5 +36,3 @@ describe("<OptionalIntlProvider>", () => {
|
|
|
35
36
|
expect(childrenResult).toBeInTheDocument()
|
|
36
37
|
})
|
|
37
38
|
})
|
|
38
|
-
|
|
39
|
-
/* eslint-enable jest/expect-expect */
|
package/src/Label/Label.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { LabelHTMLAttributes } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
3
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
4
4
|
import styles from "./Label.module.scss"
|
|
5
5
|
|
|
6
6
|
type LabelType = "text" | "checkbox" | "toggle" | "radio"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { 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 styles from "./LabelledMessage.module.scss"
|
|
5
5
|
|
|
6
6
|
export type LabelledMessageProps = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { 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 styles from "./LoadingGraphic.module.scss"
|
|
5
5
|
|
|
6
6
|
export type LoadingGraphicSize =
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
3
|
import { HeadingVariants } from "~components/Heading"
|
|
4
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
4
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
5
5
|
import styles from "./LoadingHeading.module.scss"
|
|
6
6
|
|
|
7
7
|
export type LoadingHeadingProps = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { 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 styles from "./LoadingInput.module.scss"
|
|
5
5
|
|
|
6
6
|
export type LoadingInputProps = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { 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 styles from "./LoadingParagraph.module.scss"
|
|
5
5
|
|
|
6
6
|
export type LoadingParagraphProps = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
3
|
import { VisuallyHidden } from "~components/VisuallyHidden"
|
|
4
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
4
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
5
5
|
import styles from "./LoadingSpinner.module.scss"
|
|
6
6
|
|
|
7
7
|
export type LoadingSpinnerProps = {
|