@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
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React, { useState } from "react"
|
|
2
2
|
import { render, screen, waitFor } from "@testing-library/react"
|
|
3
3
|
import userEvent from "@testing-library/user-event"
|
|
4
|
+
import { vi } from "vitest"
|
|
4
5
|
import { TimeField, TimeFieldProps } from "./TimeField"
|
|
5
6
|
import { ValueType } from "./types"
|
|
6
|
-
|
|
7
7
|
const user = userEvent.setup()
|
|
8
8
|
|
|
9
|
-
const mockOnChange =
|
|
9
|
+
const mockOnChange = vi.fn()
|
|
10
10
|
const LABEL = "Launch Time Label"
|
|
11
11
|
|
|
12
12
|
const pressArrowKey =
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import classnames from "classnames"
|
|
10
10
|
import { FieldMessage } from "~components/FieldMessage"
|
|
11
11
|
import { Label } from "~components/Label"
|
|
12
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
12
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
13
13
|
import { TimeSegment } from "./subcomponents/TimeSegment"
|
|
14
14
|
import { StatusType, TimeValue, ValueType } from "./types"
|
|
15
15
|
import styles from "./TimeField.module.scss"
|
|
@@ -1,12 +1,28 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { render, waitFor, screen, within } from "@testing-library/react"
|
|
3
3
|
import userEvent from "@testing-library/user-event"
|
|
4
|
-
import {
|
|
4
|
+
import { vi } from "vitest"
|
|
5
5
|
import { CustomBreadcrumbProps, SectionTitleRenderProps } from "./types"
|
|
6
6
|
import { TitleBlockZen } from "./index"
|
|
7
7
|
|
|
8
8
|
const user = userEvent.setup()
|
|
9
9
|
|
|
10
|
+
const mockMatchMedia = (matches: boolean = false): void => {
|
|
11
|
+
Object.defineProperty(window, "matchMedia", {
|
|
12
|
+
writable: true,
|
|
13
|
+
value: vi.fn().mockImplementation(query => ({
|
|
14
|
+
matches,
|
|
15
|
+
media: query,
|
|
16
|
+
onchange: null,
|
|
17
|
+
addListener: vi.fn(), // Deprecated
|
|
18
|
+
removeListener: vi.fn(), // Deprecated
|
|
19
|
+
addEventListener: vi.fn(),
|
|
20
|
+
removeEventListener: vi.fn(),
|
|
21
|
+
dispatchEvent: vi.fn(),
|
|
22
|
+
})),
|
|
23
|
+
})
|
|
24
|
+
}
|
|
25
|
+
|
|
10
26
|
describe("<TitleBlockZen />", () => {
|
|
11
27
|
beforeEach(() => {
|
|
12
28
|
mockMatchMedia()
|
|
@@ -41,7 +57,7 @@ describe("<TitleBlockZen />", () => {
|
|
|
41
57
|
})
|
|
42
58
|
|
|
43
59
|
describe("when the primary action is a button with only an onClick", () => {
|
|
44
|
-
const testOnClickFn =
|
|
60
|
+
const testOnClickFn = vi.fn()
|
|
45
61
|
const primaryActionAsButton = {
|
|
46
62
|
label: "primaryActionLabel",
|
|
47
63
|
onClick: testOnClickFn,
|
|
@@ -84,7 +100,7 @@ describe("<TitleBlockZen />", () => {
|
|
|
84
100
|
})
|
|
85
101
|
|
|
86
102
|
describe("when the primary action is disabled", () => {
|
|
87
|
-
const testOnClickFn =
|
|
103
|
+
const testOnClickFn = vi.fn()
|
|
88
104
|
const primaryActionAsButton = {
|
|
89
105
|
label: "primaryActionLabel",
|
|
90
106
|
onClick: testOnClickFn,
|
|
@@ -166,7 +182,7 @@ describe("<TitleBlockZen />", () => {
|
|
|
166
182
|
})
|
|
167
183
|
|
|
168
184
|
describe("when the primary action is a button with both an href and an onClick", () => {
|
|
169
|
-
const testOnClickFn =
|
|
185
|
+
const testOnClickFn = vi.fn()
|
|
170
186
|
const primaryActionAsLinkAndOnClick = {
|
|
171
187
|
label: "primaryActionLabel",
|
|
172
188
|
href: "#primaryActionHref",
|
|
@@ -307,7 +323,7 @@ describe("<TitleBlockZen />", () => {
|
|
|
307
323
|
})
|
|
308
324
|
|
|
309
325
|
describe("when the default action is a button with only an onClick", () => {
|
|
310
|
-
const testOnClickFn =
|
|
326
|
+
const testOnClickFn = vi.fn()
|
|
311
327
|
const defaultActionAsButton = {
|
|
312
328
|
label: "defaultActionLabel",
|
|
313
329
|
onClick: testOnClickFn,
|
|
@@ -363,7 +379,7 @@ describe("<TitleBlockZen />", () => {
|
|
|
363
379
|
})
|
|
364
380
|
|
|
365
381
|
describe("when the default action is a button with both an href and an onClick", () => {
|
|
366
|
-
const testOnClickFn =
|
|
382
|
+
const testOnClickFn = vi.fn()
|
|
367
383
|
const defaultActionAsLinkAndOnClick = {
|
|
368
384
|
label: "defaultActionLabel",
|
|
369
385
|
href: "#defaultActionHref",
|
|
@@ -423,7 +439,7 @@ describe("<TitleBlockZen />", () => {
|
|
|
423
439
|
})
|
|
424
440
|
|
|
425
441
|
describe("when the default action is disabled", () => {
|
|
426
|
-
const testOnClickFn =
|
|
442
|
+
const testOnClickFn = vi.fn()
|
|
427
443
|
const defaultActionAsButton = {
|
|
428
444
|
label: "defaultActionLabel",
|
|
429
445
|
onClick: testOnClickFn,
|
|
@@ -504,7 +520,7 @@ describe("<TitleBlockZen />", () => {
|
|
|
504
520
|
})
|
|
505
521
|
|
|
506
522
|
describe("when a secondary action is passed with both an href and an onClick", () => {
|
|
507
|
-
const testOnClickFn =
|
|
523
|
+
const testOnClickFn = vi.fn()
|
|
508
524
|
const secondaryActionWithLinkAndOnClick = {
|
|
509
525
|
label: "secondaryActionLabel",
|
|
510
526
|
href: "#secondaryActionHref",
|
|
@@ -516,8 +532,8 @@ describe("<TitleBlockZen />", () => {
|
|
|
516
532
|
})
|
|
517
533
|
|
|
518
534
|
it("renders the secondary action with both the href and onClick", async () => {
|
|
519
|
-
const mockWarnFn =
|
|
520
|
-
const spy =
|
|
535
|
+
const mockWarnFn = vi.fn()
|
|
536
|
+
const spy = vi
|
|
521
537
|
.spyOn(global.console, "warn")
|
|
522
538
|
.mockImplementation(mockWarnFn)
|
|
523
539
|
const { getByTestId } = render(
|
|
@@ -543,8 +559,8 @@ describe("<TitleBlockZen />", () => {
|
|
|
543
559
|
})
|
|
544
560
|
|
|
545
561
|
it("renders the action as a single mobile actions drawer item with an onClick", async () => {
|
|
546
|
-
const mockWarnFn =
|
|
547
|
-
const spy =
|
|
562
|
+
const mockWarnFn = vi.fn()
|
|
563
|
+
const spy = vi
|
|
548
564
|
.spyOn(global.console, "warn")
|
|
549
565
|
.mockImplementation(mockWarnFn)
|
|
550
566
|
const { getAllByTestId } = render(
|
|
@@ -681,7 +697,7 @@ describe("<TitleBlockZen />", () => {
|
|
|
681
697
|
})
|
|
682
698
|
|
|
683
699
|
describe("when a disabled secondary action is passed with only an onClick", () => {
|
|
684
|
-
const testOnClickFn =
|
|
700
|
+
const testOnClickFn = vi.fn()
|
|
685
701
|
const secondaryActionWithOnClick = {
|
|
686
702
|
label: "secondaryActionLabel",
|
|
687
703
|
onClick: testOnClickFn,
|
|
@@ -708,7 +724,7 @@ describe("<TitleBlockZen />", () => {
|
|
|
708
724
|
})
|
|
709
725
|
|
|
710
726
|
describe("when a disabled secondary overflow menu item is passed with only an onClick for the action", () => {
|
|
711
|
-
const testOnClickFn =
|
|
727
|
+
const testOnClickFn = vi.fn()
|
|
712
728
|
const secondaryOverflowMenuItemWithOnClick = {
|
|
713
729
|
label: "secondaryActionOverflowMenuItemLabel",
|
|
714
730
|
action: testOnClickFn,
|
|
@@ -737,54 +753,6 @@ describe("<TitleBlockZen />", () => {
|
|
|
737
753
|
})
|
|
738
754
|
})
|
|
739
755
|
|
|
740
|
-
describe("survey status", () => {
|
|
741
|
-
it("doesn't render tag when field is omitted", async () => {
|
|
742
|
-
render(<TitleBlockZen title="Test Title">Example</TitleBlockZen>)
|
|
743
|
-
|
|
744
|
-
await waitFor(() => {
|
|
745
|
-
expect(
|
|
746
|
-
screen.queryByTestId("survey-status-tag")
|
|
747
|
-
).not.toBeInTheDocument()
|
|
748
|
-
})
|
|
749
|
-
})
|
|
750
|
-
|
|
751
|
-
it.each([
|
|
752
|
-
["draft", "statusDraft"],
|
|
753
|
-
["live", "statusLive"],
|
|
754
|
-
["closed", "statusClosed"],
|
|
755
|
-
["scheduled", "statusClosed"],
|
|
756
|
-
["sentimentPositive", "sentimentPositive"],
|
|
757
|
-
["default", "default"],
|
|
758
|
-
])(
|
|
759
|
-
"renders tag with correct text and variant when %s status",
|
|
760
|
-
async (status, expectedClassName) => {
|
|
761
|
-
render(
|
|
762
|
-
<TitleBlockZen
|
|
763
|
-
title="Test Title"
|
|
764
|
-
surveyStatus={{
|
|
765
|
-
text: `${status} text`,
|
|
766
|
-
status: `${status}` as
|
|
767
|
-
| "draft"
|
|
768
|
-
| "live"
|
|
769
|
-
| "scheduled"
|
|
770
|
-
| "closed"
|
|
771
|
-
| "sentimentPositive"
|
|
772
|
-
| "default",
|
|
773
|
-
}}
|
|
774
|
-
>
|
|
775
|
-
Example
|
|
776
|
-
</TitleBlockZen>
|
|
777
|
-
)
|
|
778
|
-
|
|
779
|
-
const tagElement = (await screen.findByTestId("survey-status-tag"))
|
|
780
|
-
.firstChild
|
|
781
|
-
|
|
782
|
-
expect(tagElement).toHaveTextContent(`${status} text`)
|
|
783
|
-
expect(tagElement).toHaveClass(expectedClassName)
|
|
784
|
-
}
|
|
785
|
-
)
|
|
786
|
-
})
|
|
787
|
-
|
|
788
756
|
describe("automation ID behaviour", () => {
|
|
789
757
|
describe("when default automation IDs are not provided alongside required conditional renders", () => {
|
|
790
758
|
it("renders the default automation IDs", () => {
|
|
@@ -807,7 +775,7 @@ describe("<TitleBlockZen />", () => {
|
|
|
807
775
|
breadcrumb={{
|
|
808
776
|
text: "Test Breadcrumb",
|
|
809
777
|
path: "/",
|
|
810
|
-
handleClick:
|
|
778
|
+
handleClick: vi.fn(),
|
|
811
779
|
}}
|
|
812
780
|
sectionTitle="Test Section Title"
|
|
813
781
|
sectionTitleDescription="Test Section Title Description"
|
|
@@ -845,7 +813,7 @@ describe("<TitleBlockZen />", () => {
|
|
|
845
813
|
breadcrumb={{
|
|
846
814
|
text: "Test Breadcrumb",
|
|
847
815
|
path: "/",
|
|
848
|
-
handleClick:
|
|
816
|
+
handleClick: vi.fn(),
|
|
849
817
|
}}
|
|
850
818
|
sectionTitle="Test Section Title"
|
|
851
819
|
sectionTitleDescription="Test Section Title Description"
|
|
@@ -909,7 +877,7 @@ describe("<TitleBlockZen />", () => {
|
|
|
909
877
|
})
|
|
910
878
|
|
|
911
879
|
it("renders a custom component when you pass a 'render' prop", async () => {
|
|
912
|
-
const mockFn =
|
|
880
|
+
const mockFn = vi.fn()
|
|
913
881
|
|
|
914
882
|
const CustomComponent = (props: CustomBreadcrumbProps): JSX.Element => (
|
|
915
883
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
@@ -1018,7 +986,7 @@ describe("<TitleBlockZen />", () => {
|
|
|
1018
986
|
})
|
|
1019
987
|
|
|
1020
988
|
it("will render custom button with functional onClick", async () => {
|
|
1021
|
-
const testClickFunc =
|
|
989
|
+
const testClickFunc = vi.fn()
|
|
1022
990
|
render(
|
|
1023
991
|
<TitleBlockZen
|
|
1024
992
|
title="Test Title"
|
|
@@ -1045,7 +1013,7 @@ describe("<TitleBlockZen />", () => {
|
|
|
1045
1013
|
})
|
|
1046
1014
|
|
|
1047
1015
|
it("will render custom button with children and not label", () => {
|
|
1048
|
-
const testClickFunc =
|
|
1016
|
+
const testClickFunc = vi.fn()
|
|
1049
1017
|
render(
|
|
1050
1018
|
<TitleBlockZen
|
|
1051
1019
|
title="Test Title"
|
|
@@ -1177,7 +1145,7 @@ describe("<TitleBlockZen />", () => {
|
|
|
1177
1145
|
})
|
|
1178
1146
|
|
|
1179
1147
|
it("will render the component in the top list of the Drawer content if it is a clickable button", () => {
|
|
1180
|
-
const testClickFunc =
|
|
1148
|
+
const testClickFunc = vi.fn()
|
|
1181
1149
|
render(
|
|
1182
1150
|
<TitleBlockZen
|
|
1183
1151
|
title="Test Title"
|
|
@@ -6,7 +6,7 @@ import { ArrowLeftIcon, ArrowRightIcon, HamburgerIcon } from "~components/Icon"
|
|
|
6
6
|
import { Select } from "~components/Select"
|
|
7
7
|
import { Tag } from "~components/Tag"
|
|
8
8
|
import { IconButton } from "~components/__actions__/v2"
|
|
9
|
-
import { useMediaQueries } from "~utils/useMediaQueries"
|
|
9
|
+
import { useMediaQueries } from "~components/utils/useMediaQueries"
|
|
10
10
|
import { MainActions } from "./subcomponents/MainActions"
|
|
11
11
|
import { MobileActions } from "./subcomponents/MobileActions"
|
|
12
12
|
import { SecondaryActions } from "./subcomponents/SecondaryActions"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { Meta, StoryObj } from "@storybook/react"
|
|
3
|
-
import { assetUrl } from "@kaizen/hosted-assets"
|
|
4
3
|
import { AddIcon, StarOnIcon } from "~components/Icon"
|
|
4
|
+
import { assetUrl } from "~components/utils/hostedAssets"
|
|
5
5
|
import { StickerSheet } from "~storybook/components/StickerSheet"
|
|
6
6
|
import { NavigationTab, TitleBlockZen } from "../index"
|
|
7
7
|
|
|
@@ -75,13 +75,6 @@ const meta = {
|
|
|
75
75
|
<NavigationTab key="6" text="Label" href="#" />,
|
|
76
76
|
],
|
|
77
77
|
},
|
|
78
|
-
decorators: [
|
|
79
|
-
Story => (
|
|
80
|
-
<div style={{ margin: "-1rem" }}>
|
|
81
|
-
<Story />
|
|
82
|
-
</div>
|
|
83
|
-
),
|
|
84
|
-
],
|
|
85
78
|
} satisfies Meta<typeof TitleBlockZen>
|
|
86
79
|
|
|
87
80
|
export default meta
|
|
@@ -152,7 +145,7 @@ export const HasLongTitle: Story = {
|
|
|
152
145
|
args: { title: "A long title with over thirty characters" },
|
|
153
146
|
}
|
|
154
147
|
|
|
155
|
-
export const
|
|
148
|
+
export const StickerSheetBreadcrumbs: Story = {
|
|
156
149
|
parameters: {
|
|
157
150
|
docs: {
|
|
158
151
|
canvas: {
|
|
@@ -208,4 +201,81 @@ export const StickerSheetDefault: Story = {
|
|
|
208
201
|
</StickerSheet.Row>
|
|
209
202
|
</StickerSheet>
|
|
210
203
|
),
|
|
204
|
+
name: "Sticker Sheet (Breadcrumb)",
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export const StickerSheetDefault: Story = {
|
|
208
|
+
render: () => (
|
|
209
|
+
<StickerSheet title="Survey Status">
|
|
210
|
+
<StickerSheet.Body>
|
|
211
|
+
<StickerSheet.Row rowTitle="Draft">
|
|
212
|
+
<TitleBlockZen
|
|
213
|
+
title="Draft Title"
|
|
214
|
+
surveyStatus={{
|
|
215
|
+
text: "draft text",
|
|
216
|
+
status: "draft",
|
|
217
|
+
}}
|
|
218
|
+
>
|
|
219
|
+
Draft
|
|
220
|
+
</TitleBlockZen>
|
|
221
|
+
</StickerSheet.Row>
|
|
222
|
+
<StickerSheet.Row rowTitle="Default">
|
|
223
|
+
<TitleBlockZen
|
|
224
|
+
title="Default Title"
|
|
225
|
+
surveyStatus={{
|
|
226
|
+
text: "default text",
|
|
227
|
+
status: "default",
|
|
228
|
+
}}
|
|
229
|
+
>
|
|
230
|
+
Default
|
|
231
|
+
</TitleBlockZen>
|
|
232
|
+
</StickerSheet.Row>
|
|
233
|
+
<StickerSheet.Row rowTitle="Scheduled">
|
|
234
|
+
<TitleBlockZen
|
|
235
|
+
title="Scheduled Title"
|
|
236
|
+
surveyStatus={{
|
|
237
|
+
text: "scheduled text",
|
|
238
|
+
status: "scheduled",
|
|
239
|
+
}}
|
|
240
|
+
>
|
|
241
|
+
Due
|
|
242
|
+
</TitleBlockZen>
|
|
243
|
+
</StickerSheet.Row>
|
|
244
|
+
<StickerSheet.Row rowTitle="Live">
|
|
245
|
+
<TitleBlockZen
|
|
246
|
+
title="Live Title"
|
|
247
|
+
surveyStatus={{
|
|
248
|
+
text: "live text",
|
|
249
|
+
status: "live",
|
|
250
|
+
}}
|
|
251
|
+
>
|
|
252
|
+
Overdue
|
|
253
|
+
</TitleBlockZen>
|
|
254
|
+
</StickerSheet.Row>
|
|
255
|
+
<StickerSheet.Row rowTitle="Closed">
|
|
256
|
+
<TitleBlockZen
|
|
257
|
+
title="Closed Title"
|
|
258
|
+
surveyStatus={{
|
|
259
|
+
text: "closed text",
|
|
260
|
+
status: "closed",
|
|
261
|
+
}}
|
|
262
|
+
>
|
|
263
|
+
Completed
|
|
264
|
+
</TitleBlockZen>
|
|
265
|
+
</StickerSheet.Row>
|
|
266
|
+
<StickerSheet.Row rowTitle="Sentiment Positive">
|
|
267
|
+
<TitleBlockZen
|
|
268
|
+
title="Sentiment Positive Title"
|
|
269
|
+
surveyStatus={{
|
|
270
|
+
text: "sentimentPositive text",
|
|
271
|
+
status: "sentimentPositive",
|
|
272
|
+
}}
|
|
273
|
+
>
|
|
274
|
+
Completed
|
|
275
|
+
</TitleBlockZen>
|
|
276
|
+
</StickerSheet.Row>
|
|
277
|
+
</StickerSheet.Body>
|
|
278
|
+
</StickerSheet>
|
|
279
|
+
),
|
|
280
|
+
name: "Sticker Sheet (Survey Status)",
|
|
211
281
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { render, screen, waitFor } from "@testing-library/react"
|
|
3
3
|
import userEvent from "@testing-library/user-event"
|
|
4
|
+
import { vi } from "vitest"
|
|
4
5
|
import { MobileActions } from "./MobileActions"
|
|
5
|
-
|
|
6
6
|
const user = userEvent.setup()
|
|
7
7
|
|
|
8
8
|
const MENU_LINKS = [
|
|
@@ -147,7 +147,7 @@ describe("<MobileActions />", () => {
|
|
|
147
147
|
|
|
148
148
|
describe("when autoHide is true", () => {
|
|
149
149
|
beforeEach(() => {
|
|
150
|
-
window.alert =
|
|
150
|
+
window.alert = vi.fn()
|
|
151
151
|
render(
|
|
152
152
|
<MobileActions
|
|
153
153
|
primaryAction={{
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { render, screen, waitFor } from "@testing-library/react"
|
|
3
3
|
import userEvent from "@testing-library/user-event"
|
|
4
|
+
import { vi } from "vitest"
|
|
4
5
|
import { NavigationTab, CustomNavigationTabProps } from "./NavigationTabs"
|
|
6
|
+
import styles from "./NavigationTabs.module.scss"
|
|
5
7
|
|
|
6
8
|
const user = userEvent.setup()
|
|
7
9
|
|
|
@@ -33,7 +35,7 @@ describe("NavigationTabs", () => {
|
|
|
33
35
|
|
|
34
36
|
describe("with a render prop", () => {
|
|
35
37
|
it("renders the component passed with the navigation tab props", async () => {
|
|
36
|
-
const handleClick =
|
|
38
|
+
const handleClick = vi.fn()
|
|
37
39
|
const text = "I am also navigation tabs"
|
|
38
40
|
const href = "www.cultureamp.com"
|
|
39
41
|
render(
|
|
@@ -50,7 +52,11 @@ describe("NavigationTabs", () => {
|
|
|
50
52
|
const button = screen.getByRole("button", {
|
|
51
53
|
name: `${href} - ${text} - true`,
|
|
52
54
|
})
|
|
53
|
-
expect(button).toHaveClass(
|
|
55
|
+
expect(button).toHaveClass(
|
|
56
|
+
styles.linkAnchor,
|
|
57
|
+
styles.active,
|
|
58
|
+
styles.lightBackground
|
|
59
|
+
)
|
|
54
60
|
|
|
55
61
|
await user.click(button)
|
|
56
62
|
await waitFor(() => {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { render, screen, waitFor } from "@testing-library/react"
|
|
3
3
|
import userEvent from "@testing-library/user-event"
|
|
4
|
+
import { vi } from "vitest"
|
|
4
5
|
import { ToggleSwitch, ToggleSwitchProps } from "./ToggleSwitch"
|
|
5
|
-
|
|
6
6
|
const user = userEvent.setup()
|
|
7
7
|
|
|
8
8
|
const defaultToggleSwitchProps = {
|
|
9
9
|
id: "someToggleSwitchId",
|
|
10
|
-
onToggle:
|
|
10
|
+
onToggle: vi.fn(),
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
const renderToggleSwitch = (
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { InputHTMLAttributes } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
3
|
import { CheckIcon } from "~components/Icon"
|
|
4
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
4
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
5
5
|
import styles from "./ToggleSwitch.module.scss"
|
|
6
6
|
|
|
7
7
|
export type ToggledStatus = "on" | "off"
|
|
@@ -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 styles from "./VisuallyHidden.module.scss"
|
|
5
5
|
|
|
6
6
|
export type VisuallyHiddenProps = {
|
package/src/Well/Well.tsx
CHANGED
|
@@ -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 { WellBorderStyleType, WellVariantType, WellColors } from "./types"
|
|
5
5
|
import styles from "./Well.module.scss"
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from "react"
|
|
2
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
2
|
+
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
3
3
|
import {
|
|
4
4
|
Footer,
|
|
5
5
|
FooterProps,
|
|
@@ -12,41 +12,41 @@ import {
|
|
|
12
12
|
|
|
13
13
|
export type WorkflowProps = OverrideClassName<HTMLAttributes<HTMLDivElement>> &
|
|
14
14
|
FooterProps &
|
|
15
|
-
HeaderProps
|
|
15
|
+
Pick<HeaderProps, "workflowName" | "statusTag" | "headerActions">
|
|
16
16
|
|
|
17
|
-
/**
|
|
18
|
-
* @deprecated Use { Workflow } from `@kaizen/components/future`
|
|
19
|
-
*/
|
|
20
17
|
export const Workflow = ({
|
|
21
|
-
stepName,
|
|
22
18
|
steps,
|
|
19
|
+
currentStepId,
|
|
23
20
|
isComplete,
|
|
24
21
|
workflowName,
|
|
25
|
-
|
|
22
|
+
statusTag,
|
|
26
23
|
headerActions,
|
|
27
24
|
children,
|
|
28
25
|
nextAction,
|
|
29
26
|
previousAction,
|
|
30
27
|
classNameOverride,
|
|
31
28
|
...restProps
|
|
32
|
-
}: WorkflowProps): JSX.Element =>
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
29
|
+
}: WorkflowProps): JSX.Element => {
|
|
30
|
+
const currentStep = steps.find(step => step.id === currentStepId)
|
|
31
|
+
return (
|
|
32
|
+
<Workflow.Wrapper classNameOverride={classNameOverride} {...restProps}>
|
|
33
|
+
<Workflow.Header
|
|
34
|
+
workflowName={workflowName}
|
|
35
|
+
stepName={currentStep!.label}
|
|
36
|
+
statusTag={statusTag}
|
|
37
|
+
headerActions={headerActions}
|
|
38
|
+
/>
|
|
39
|
+
<Workflow.Main>{children}</Workflow.Main>
|
|
40
|
+
<Workflow.Footer
|
|
41
|
+
currentStepId={currentStepId}
|
|
42
|
+
steps={steps}
|
|
43
|
+
isComplete={isComplete}
|
|
44
|
+
nextAction={nextAction}
|
|
45
|
+
previousAction={previousAction}
|
|
46
|
+
/>
|
|
47
|
+
</Workflow.Wrapper>
|
|
48
|
+
)
|
|
49
|
+
}
|
|
50
50
|
|
|
51
51
|
Workflow.Header = Header
|
|
52
52
|
Workflow.Footer = Footer
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Canvas, Controls, DocsStory, Meta } from "@storybook/blocks"
|
|
2
|
-
import {
|
|
3
|
-
import { KAIOInstallation, ResourceLinks } from "~storybook/components"
|
|
2
|
+
import { Installation, ResourceLinks } from "~storybook/components"
|
|
4
3
|
import * as ProgressStepperStories from "./ProgressStepper.stories"
|
|
5
4
|
|
|
6
5
|
<Meta of={ProgressStepperStories} />
|
|
@@ -11,15 +10,12 @@ import * as ProgressStepperStories from "./ProgressStepper.stories"
|
|
|
11
10
|
sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/Workflow"
|
|
12
11
|
figma="https://www.figma.com/file/IJTy1JpS4Xyop5cQwroRje/%F0%9F%9B%A0%EF%B8%8F-Self-reflection%3A-Build-Handoff?node-id=188%3A62005&t=x4zyx07E2G3BmKGw-1"
|
|
13
12
|
designGuidelines="https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3064989884/Documentation"
|
|
14
|
-
|
|
15
13
|
/>
|
|
16
14
|
|
|
17
|
-
<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
<KAIOInstallation exportNames="Workflow" />
|
|
15
|
+
<Installation
|
|
16
|
+
installCommand="pnpm add @kaizen/components"
|
|
17
|
+
importStatement='import { Workflow } from "@kaizen/components"'
|
|
18
|
+
/>
|
|
23
19
|
|
|
24
20
|
## Overview
|
|
25
21
|
|
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
import React from "react"
|
|
2
1
|
import { Meta, StoryObj } from "@storybook/react"
|
|
3
2
|
import { Workflow } from "../"
|
|
3
|
+
import { WorkflowControls } from "./controls"
|
|
4
4
|
|
|
5
5
|
const meta = {
|
|
6
|
-
title: "
|
|
6
|
+
title: "Layout/Workflow/Workflow/Components/Progress Stepper",
|
|
7
7
|
component: Workflow.ProgressStepper,
|
|
8
|
+
argTypes: {
|
|
9
|
+
currentStepId: WorkflowControls.currentStepId,
|
|
10
|
+
},
|
|
8
11
|
args: {
|
|
9
|
-
|
|
10
|
-
steps: [
|
|
12
|
+
currentStepId: "preview-step",
|
|
13
|
+
steps: [
|
|
14
|
+
{ label: "Settings", id: "settings-step" },
|
|
15
|
+
{ label: "Questions", id: "questions-step" },
|
|
16
|
+
{ label: "Preview", id: "preview-step" },
|
|
17
|
+
{ label: "Employees", id: "employees-step" },
|
|
18
|
+
{ label: "Schedule", id: "schedule-step" },
|
|
19
|
+
],
|
|
11
20
|
isComplete: false,
|
|
12
21
|
},
|
|
13
|
-
decorators: [
|
|
14
|
-
Story => (
|
|
15
|
-
<div className="bg-blue-500 p-8">
|
|
16
|
-
<Story />
|
|
17
|
-
</div>
|
|
18
|
-
),
|
|
19
|
-
],
|
|
20
22
|
} satisfies Meta<typeof Workflow.ProgressStepper>
|
|
21
23
|
|
|
22
24
|
export default meta
|
|
@@ -42,7 +44,7 @@ export const Playground: Story = {
|
|
|
42
44
|
*/
|
|
43
45
|
export const ProgressStates: Story = {
|
|
44
46
|
args: {
|
|
45
|
-
|
|
47
|
+
currentStepId: "questions-step",
|
|
46
48
|
},
|
|
47
49
|
}
|
|
48
50
|
|
|
@@ -51,15 +53,19 @@ export const ProgressStates: Story = {
|
|
|
51
53
|
*/
|
|
52
54
|
export const AllStepsComplete: Story = {
|
|
53
55
|
args: {
|
|
54
|
-
|
|
56
|
+
currentStepId: "schedule-step",
|
|
55
57
|
isComplete: true,
|
|
56
58
|
},
|
|
57
59
|
}
|
|
58
60
|
|
|
59
61
|
export const FewerSteps: Story = {
|
|
60
62
|
args: {
|
|
61
|
-
|
|
62
|
-
steps: [
|
|
63
|
+
currentStepId: "questions-step",
|
|
64
|
+
steps: [
|
|
65
|
+
{ label: "Settings", id: "settings-step" },
|
|
66
|
+
{ label: "Questions", id: "questions-step" },
|
|
67
|
+
{ label: "Preview", id: "preview-step" },
|
|
68
|
+
],
|
|
63
69
|
},
|
|
64
70
|
}
|
|
65
71
|
|
|
@@ -69,16 +75,12 @@ export const FewerSteps: Story = {
|
|
|
69
75
|
*/
|
|
70
76
|
export const EightSteps: Story = {
|
|
71
77
|
args: {
|
|
72
|
-
|
|
78
|
+
currentStepId: "questions-step",
|
|
73
79
|
steps: [
|
|
74
|
-
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"Schedule",
|
|
79
|
-
"Plan",
|
|
80
|
-
"Provision",
|
|
81
|
-
"Another thing",
|
|
80
|
+
...meta.args.steps,
|
|
81
|
+
{ label: "Plan", id: "plan-step" },
|
|
82
|
+
{ label: "Provision", id: "provision-step" },
|
|
83
|
+
{ label: "Procure", id: "procure-step" },
|
|
82
84
|
],
|
|
83
85
|
},
|
|
84
86
|
}
|