@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,118 +0,0 @@
|
|
|
1
|
-
import React from "react"
|
|
2
|
-
import { Meta } from "@storybook/react"
|
|
3
|
-
import { Heading } from "~components/Heading"
|
|
4
|
-
import { EmptyStatesPositive, Informative } from "~components/Illustration"
|
|
5
|
-
import { Tag } from "~components/Tag"
|
|
6
|
-
import { Text } from "~components/Text"
|
|
7
|
-
import {
|
|
8
|
-
StickerSheet,
|
|
9
|
-
StickerSheetStory,
|
|
10
|
-
} from "~storybook/components/StickerSheet"
|
|
11
|
-
import { GuidanceBlock, GuidanceBlockProps } from "../index"
|
|
12
|
-
|
|
13
|
-
export default {
|
|
14
|
-
title: "Containers/GuidanceBlock/v2",
|
|
15
|
-
parameters: {
|
|
16
|
-
chromatic: { disable: false },
|
|
17
|
-
controls: { disable: true },
|
|
18
|
-
},
|
|
19
|
-
} satisfies Meta
|
|
20
|
-
|
|
21
|
-
const GENERIC_PROPS = {
|
|
22
|
-
persistent: true,
|
|
23
|
-
illustration: <Informative alt="" />,
|
|
24
|
-
actions: {
|
|
25
|
-
primary: {
|
|
26
|
-
label: "Action",
|
|
27
|
-
onClick: () => {
|
|
28
|
-
alert("tada: 🎉")
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
secondary: {
|
|
32
|
-
label: "Pass",
|
|
33
|
-
onClick: () => {
|
|
34
|
-
alert("tada: 🎉")
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
const TEXT_PROPS: GuidanceBlockProps = {
|
|
41
|
-
...GENERIC_PROPS,
|
|
42
|
-
text: {
|
|
43
|
-
title: "This is the Guidance block title",
|
|
44
|
-
description:
|
|
45
|
-
"Mussum Ipsum, cacilds vidis litro abertis. Suco de cevadiss, é um leite divinis, " +
|
|
46
|
-
"qui tem lupuliz, matis, aguis e fermentis. Mé faiz elementum girarzis, nisi eros vermeio.",
|
|
47
|
-
},
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
const CONTENT_PROPS: GuidanceBlockProps = {
|
|
51
|
-
...GENERIC_PROPS,
|
|
52
|
-
content: (
|
|
53
|
-
<>
|
|
54
|
-
<Tag>Early Access</Tag>
|
|
55
|
-
<Heading variant="heading-3">{TEXT_PROPS.text.title}</Heading>
|
|
56
|
-
<Text variant="body">{TEXT_PROPS.text.description}</Text>
|
|
57
|
-
</>
|
|
58
|
-
),
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
const StickerSheetTemplate: StickerSheetStory = {
|
|
62
|
-
render: ({ isReversed }) => (
|
|
63
|
-
<StickerSheet isReversed={isReversed}>
|
|
64
|
-
<StickerSheet.Body>
|
|
65
|
-
<StickerSheet.Row rowTitle="Default">
|
|
66
|
-
<GuidanceBlock {...TEXT_PROPS} />
|
|
67
|
-
</StickerSheet.Row>
|
|
68
|
-
<StickerSheet.Row rowTitle="Expert advice">
|
|
69
|
-
<GuidanceBlock variant="expert-advice" {...TEXT_PROPS} />
|
|
70
|
-
</StickerSheet.Row>
|
|
71
|
-
<StickerSheet.Row rowTitle="No arrow">
|
|
72
|
-
<GuidanceBlock withActionButtonArrow={false} {...TEXT_PROPS} />
|
|
73
|
-
</StickerSheet.Row>
|
|
74
|
-
<StickerSheet.Row rowTitle="Custom Content">
|
|
75
|
-
<GuidanceBlock {...CONTENT_PROPS} />
|
|
76
|
-
</StickerSheet.Row>
|
|
77
|
-
<StickerSheet.Row rowTitle="Tooltip">
|
|
78
|
-
<GuidanceBlock
|
|
79
|
-
{...TEXT_PROPS}
|
|
80
|
-
actions={{
|
|
81
|
-
primary: {
|
|
82
|
-
...GENERIC_PROPS.actions.primary,
|
|
83
|
-
tooltip: {
|
|
84
|
-
text: "Opens in a new tab",
|
|
85
|
-
mood: "cautionary",
|
|
86
|
-
isInitiallyVisible: true,
|
|
87
|
-
},
|
|
88
|
-
},
|
|
89
|
-
}}
|
|
90
|
-
/>
|
|
91
|
-
</StickerSheet.Row>
|
|
92
|
-
<StickerSheet.Row rowTitle="Scene Illustration">
|
|
93
|
-
<GuidanceBlock
|
|
94
|
-
{...TEXT_PROPS}
|
|
95
|
-
illustration={<EmptyStatesPositive alt="" />}
|
|
96
|
-
illustrationType="scene"
|
|
97
|
-
/>
|
|
98
|
-
</StickerSheet.Row>
|
|
99
|
-
<StickerSheet.Row rowTitle="No Max Width">
|
|
100
|
-
<GuidanceBlock {...TEXT_PROPS} noMaxWidth />
|
|
101
|
-
</StickerSheet.Row>
|
|
102
|
-
</StickerSheet.Body>
|
|
103
|
-
</StickerSheet>
|
|
104
|
-
),
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export const StickerSheetDefault: StickerSheetStory = {
|
|
108
|
-
...StickerSheetTemplate,
|
|
109
|
-
name: "Sticker Sheet (Default)",
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
export const StickerSheetRTL: StickerSheetStory = {
|
|
113
|
-
...StickerSheetTemplate,
|
|
114
|
-
name: "Sticker Sheet (RTL)",
|
|
115
|
-
parameters: {
|
|
116
|
-
textDirection: "rtl",
|
|
117
|
-
},
|
|
118
|
-
}
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
import React from "react"
|
|
2
|
-
import { Meta, StoryObj } from "@storybook/react"
|
|
3
|
-
import { Heading } from "~components/Heading"
|
|
4
|
-
import {
|
|
5
|
-
BrandMomentPositiveOutro,
|
|
6
|
-
Informative,
|
|
7
|
-
SkillsCoachEssentialFeedback,
|
|
8
|
-
} from "~components/Illustration"
|
|
9
|
-
import { Text } from "~components/Text"
|
|
10
|
-
import { GuidanceBlock } from "../index"
|
|
11
|
-
|
|
12
|
-
const ContentComponent = (): JSX.Element => (
|
|
13
|
-
<>
|
|
14
|
-
<Heading tag="h3" variant="heading-3">
|
|
15
|
-
This is the Guidance block title
|
|
16
|
-
</Heading>
|
|
17
|
-
<Text variant="body">
|
|
18
|
-
Mussum Ipsum, cacilds vidis litro abertis. Suco de cevadiss, é um leite
|
|
19
|
-
divinis,
|
|
20
|
-
</Text>
|
|
21
|
-
</>
|
|
22
|
-
)
|
|
23
|
-
|
|
24
|
-
const defaultText = {
|
|
25
|
-
description:
|
|
26
|
-
"Mussum Ipsum, cacilds vidis litro abertis. Suco de cevadiss, é um leite divinis, qui tem lupuliz, matis, aguis e fermentis. Mé faiz elementum girarzis, nisi eros vermeio.",
|
|
27
|
-
title: "This is the Guidance block title",
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
const meta = {
|
|
31
|
-
title: "Containers/GuidanceBlock/v2",
|
|
32
|
-
component: GuidanceBlock,
|
|
33
|
-
args: {
|
|
34
|
-
layout: "default",
|
|
35
|
-
illustration: <Informative alt="" />,
|
|
36
|
-
},
|
|
37
|
-
argTypes: {
|
|
38
|
-
actions: {
|
|
39
|
-
control: false,
|
|
40
|
-
},
|
|
41
|
-
illustrationType: {
|
|
42
|
-
description:
|
|
43
|
-
"Sets the how the width and aspect ratio will respond to the Illustration passed in.",
|
|
44
|
-
},
|
|
45
|
-
illustration: {
|
|
46
|
-
control: { type: "radio" },
|
|
47
|
-
options: ["spot", "scene"],
|
|
48
|
-
mapping: {
|
|
49
|
-
spot: <Informative alt="" />,
|
|
50
|
-
scene: <BrandMomentPositiveOutro alt="" />,
|
|
51
|
-
},
|
|
52
|
-
description:
|
|
53
|
-
"This takes a scene scene or spot element, ie: `<Informative />`. This radio button implementation is a storybook only representation to toggle between the two illustration styles.",
|
|
54
|
-
},
|
|
55
|
-
content: {
|
|
56
|
-
description:
|
|
57
|
-
"If you need to render custom content inside of the `GuidanceBlock` that is more than just a title and description use this prop instead of the default `text` option.",
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
} satisfies Meta<typeof GuidanceBlock>
|
|
61
|
-
|
|
62
|
-
export default meta
|
|
63
|
-
|
|
64
|
-
type Story = StoryObj<typeof meta>
|
|
65
|
-
|
|
66
|
-
export const Playground: Story = {
|
|
67
|
-
args: {
|
|
68
|
-
text: defaultText,
|
|
69
|
-
},
|
|
70
|
-
parameters: {
|
|
71
|
-
docs: {
|
|
72
|
-
canvas: {
|
|
73
|
-
sourceState: "shown",
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export const Actions: Story = {
|
|
80
|
-
args: {
|
|
81
|
-
content: <ContentComponent />,
|
|
82
|
-
actions: {
|
|
83
|
-
primary: {
|
|
84
|
-
label: "Learn more",
|
|
85
|
-
onClick: () => alert("tada: 🎉"),
|
|
86
|
-
},
|
|
87
|
-
secondary: {
|
|
88
|
-
label: "Dismiss",
|
|
89
|
-
href: "#",
|
|
90
|
-
},
|
|
91
|
-
},
|
|
92
|
-
},
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export const Tooltip: Story = {
|
|
96
|
-
args: {
|
|
97
|
-
content: <ContentComponent />,
|
|
98
|
-
actions: {
|
|
99
|
-
primary: {
|
|
100
|
-
label: "Hover me for a tooltip",
|
|
101
|
-
onClick: () => alert("tada: 🎉"),
|
|
102
|
-
tooltip: {
|
|
103
|
-
text: "Opens in a new tab",
|
|
104
|
-
mood: "cautionary",
|
|
105
|
-
},
|
|
106
|
-
},
|
|
107
|
-
secondary: {
|
|
108
|
-
label: "Dismiss",
|
|
109
|
-
href: "#",
|
|
110
|
-
},
|
|
111
|
-
},
|
|
112
|
-
},
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
export const CustomContent: Story = {
|
|
116
|
-
args: {
|
|
117
|
-
content: <ContentComponent />,
|
|
118
|
-
},
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
export const Stacked: Story = {
|
|
122
|
-
render: args => (
|
|
123
|
-
<div style={{ display: "flex", gap: "36px" }}>
|
|
124
|
-
<GuidanceBlock {...args} />
|
|
125
|
-
<GuidanceBlock {...args} />
|
|
126
|
-
</div>
|
|
127
|
-
),
|
|
128
|
-
args: {
|
|
129
|
-
layout: "stacked",
|
|
130
|
-
content: <ContentComponent />,
|
|
131
|
-
},
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
export const SceneExample: Story = {
|
|
135
|
-
args: {
|
|
136
|
-
illustration: <SkillsCoachEssentialFeedback alt="" />,
|
|
137
|
-
illustrationType: "scene",
|
|
138
|
-
text: defaultText,
|
|
139
|
-
},
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
export const Variants: Story = {
|
|
143
|
-
render: args => (
|
|
144
|
-
<div className="flex flex-col gap-16">
|
|
145
|
-
<GuidanceBlock {...args} />
|
|
146
|
-
<GuidanceBlock variant="expert-advice" {...args} />
|
|
147
|
-
</div>
|
|
148
|
-
),
|
|
149
|
-
args: {
|
|
150
|
-
text: defaultText,
|
|
151
|
-
},
|
|
152
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./GuidanceBlock"
|
package/src/__containers__/v1.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./GuidanceBlock/v1"
|
package/src/__containers__/v2.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./GuidanceBlock/v2"
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import React, { HTMLAttributes } from "react"
|
|
2
|
-
import { OverrideClassName } from "~types/OverrideClassName"
|
|
3
|
-
import {
|
|
4
|
-
Footer,
|
|
5
|
-
FooterProps,
|
|
6
|
-
Header,
|
|
7
|
-
Main,
|
|
8
|
-
HeaderProps,
|
|
9
|
-
ProgressStepper,
|
|
10
|
-
Wrapper,
|
|
11
|
-
} from "./subcomponents"
|
|
12
|
-
|
|
13
|
-
export type WorkflowProps = OverrideClassName<HTMLAttributes<HTMLDivElement>> &
|
|
14
|
-
FooterProps &
|
|
15
|
-
Pick<HeaderProps, "workflowName" | "status" | "headerActions">
|
|
16
|
-
|
|
17
|
-
export const Workflow = ({
|
|
18
|
-
steps,
|
|
19
|
-
currentStepId,
|
|
20
|
-
isComplete,
|
|
21
|
-
workflowName,
|
|
22
|
-
status,
|
|
23
|
-
headerActions,
|
|
24
|
-
children,
|
|
25
|
-
nextAction,
|
|
26
|
-
previousAction,
|
|
27
|
-
classNameOverride,
|
|
28
|
-
...restProps
|
|
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
|
-
status={status}
|
|
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
|
-
|
|
51
|
-
Workflow.Header = Header
|
|
52
|
-
Workflow.Footer = Footer
|
|
53
|
-
Workflow.Main = Main
|
|
54
|
-
Workflow.ProgressStepper = ProgressStepper
|
|
55
|
-
Workflow.Wrapper = Wrapper
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Canvas, Controls, DocsStory, Meta } from "@storybook/blocks"
|
|
2
|
-
import { KAIOInstallation, ResourceLinks, KaioLegacyDocsNotification } from "~storybook/components"
|
|
3
|
-
import * as ProgressStepperStories from "./ProgressStepper.stories"
|
|
4
|
-
|
|
5
|
-
<Meta of={ProgressStepperStories} />
|
|
6
|
-
|
|
7
|
-
# Progress Stepper
|
|
8
|
-
|
|
9
|
-
<ResourceLinks
|
|
10
|
-
sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/Workflow"
|
|
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"
|
|
12
|
-
designGuidelines="https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3064989884/Documentation"
|
|
13
|
-
|
|
14
|
-
/>
|
|
15
|
-
|
|
16
|
-
<KaioLegacyDocsNotification version="1.16.0" />
|
|
17
|
-
|
|
18
|
-
<KAIOInstallation exportNames="ProgressStepper" isFuture />
|
|
19
|
-
|
|
20
|
-
## Overview
|
|
21
|
-
|
|
22
|
-
This component is used in the `Footer` to track progress of the Workflows steps.
|
|
23
|
-
|
|
24
|
-
It has no reverse variant and should only be used in the Worflow's `Footer` component.
|
|
25
|
-
|
|
26
|
-
<Canvas of={ProgressStepperStories.Playground} />
|
|
27
|
-
<Controls of={ProgressStepperStories.Playground} />
|
|
28
|
-
|
|
29
|
-
## API
|
|
30
|
-
|
|
31
|
-
<DocsStory of={ProgressStepperStories.ProgressStates} />
|
|
32
|
-
|
|
33
|
-
<DocsStory of={ProgressStepperStories.AllStepsComplete} />
|
|
34
|
-
|
|
35
|
-
<DocsStory of={ProgressStepperStories.FewerSteps} />
|
|
36
|
-
|
|
37
|
-
<DocsStory of={ProgressStepperStories.EightSteps} />
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import React from "react"
|
|
2
|
-
import { Meta, StoryObj } from "@storybook/react"
|
|
3
|
-
import { Workflow } from "../"
|
|
4
|
-
import { WorkflowControls } from "./controls"
|
|
5
|
-
|
|
6
|
-
const meta = {
|
|
7
|
-
title: "Pages/Workflow/Future/Components/Progress Stepper",
|
|
8
|
-
component: Workflow.ProgressStepper,
|
|
9
|
-
argTypes: {
|
|
10
|
-
currentStepId: WorkflowControls.currentStepId,
|
|
11
|
-
},
|
|
12
|
-
args: {
|
|
13
|
-
currentStepId: "preview-step",
|
|
14
|
-
steps: [
|
|
15
|
-
{ label: "Settings", id: "settings-step" },
|
|
16
|
-
{ label: "Questions", id: "questions-step" },
|
|
17
|
-
{ label: "Preview", id: "preview-step" },
|
|
18
|
-
{ label: "Employees", id: "employees-step" },
|
|
19
|
-
{ label: "Schedule", id: "schedule-step" },
|
|
20
|
-
],
|
|
21
|
-
isComplete: false,
|
|
22
|
-
},
|
|
23
|
-
decorators: [
|
|
24
|
-
Story => (
|
|
25
|
-
<div className="bg-blue-500 p-8">
|
|
26
|
-
<Story />
|
|
27
|
-
</div>
|
|
28
|
-
),
|
|
29
|
-
],
|
|
30
|
-
} satisfies Meta<typeof Workflow.ProgressStepper>
|
|
31
|
-
|
|
32
|
-
export default meta
|
|
33
|
-
|
|
34
|
-
type Story = StoryObj<typeof meta>
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* <p>This component is used in the `Footer` to track progress of the Workflows steps.</p>
|
|
38
|
-
* <p>It has no reverse variant and should only be used in the Worflow's `Footer` component.</p>
|
|
39
|
-
*/
|
|
40
|
-
export const Playground: Story = {
|
|
41
|
-
parameters: {
|
|
42
|
-
docs: {
|
|
43
|
-
canvas: {
|
|
44
|
-
sourceState: "shown",
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/** <p>To ensure WCAG AA compliance, there are 3 visually destinct states.</p>
|
|
51
|
-
* <p>These are reflected in their accessible names for screen reader: "Completed", "Current" and "Not started"</p>
|
|
52
|
-
*/
|
|
53
|
-
export const ProgressStates: Story = {
|
|
54
|
-
args: {
|
|
55
|
-
currentStepId: "questions-step",
|
|
56
|
-
},
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* <p>You can use the `isComplete` follow a successful submission to render all steps as complete.</p>
|
|
61
|
-
*/
|
|
62
|
-
export const AllStepsComplete: Story = {
|
|
63
|
-
args: {
|
|
64
|
-
currentStepId: "schedule-step",
|
|
65
|
-
isComplete: true,
|
|
66
|
-
},
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export const FewerSteps: Story = {
|
|
70
|
-
args: {
|
|
71
|
-
currentStepId: "questions-step",
|
|
72
|
-
steps: [
|
|
73
|
-
{ label: "Settings", id: "settings-step" },
|
|
74
|
-
{ label: "Questions", id: "questions-step" },
|
|
75
|
-
{ label: "Preview", id: "preview-step" },
|
|
76
|
-
],
|
|
77
|
-
},
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* <p>We have baked in a container query to ensure the component can be responsive.</p>
|
|
82
|
-
* <p>When a step reaches its minimum size (4.5rem), it will hide the display name to maximise realestate.</p>
|
|
83
|
-
*/
|
|
84
|
-
export const EightSteps: Story = {
|
|
85
|
-
args: {
|
|
86
|
-
currentStepId: "questions-step",
|
|
87
|
-
steps: [
|
|
88
|
-
...meta.args.steps,
|
|
89
|
-
{ label: "Plan", id: "plan-step" },
|
|
90
|
-
{ label: "Provision", id: "provision-step" },
|
|
91
|
-
{ label: "Procure", id: "procure-step" },
|
|
92
|
-
],
|
|
93
|
-
},
|
|
94
|
-
}
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
import { ArgTypes, Canvas, Meta } from "@storybook/blocks"
|
|
2
|
-
import { KAIOInstallation, KaioLegacyDocsNotification, ResourceLinks } from "~storybook/components"
|
|
3
|
-
import * as Workflow from "./Workflow.stories"
|
|
4
|
-
import * as WorkflowFooter from "./WorkflowFooter.stories"
|
|
5
|
-
import * as WorkflowHeader from "./WorkflowHeader.stories"
|
|
6
|
-
|
|
7
|
-
<Meta of={Workflow} />
|
|
8
|
-
|
|
9
|
-
# Workflow
|
|
10
|
-
|
|
11
|
-
<ResourceLinks
|
|
12
|
-
sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/Workflow"
|
|
13
|
-
|
|
14
|
-
/>
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
<KaioLegacyDocsNotification version="1.16.0" />
|
|
18
|
-
|
|
19
|
-
<KAIOInstallation exportNames="Workflow" isFuture />
|
|
20
|
-
|
|
21
|
-
## Overview
|
|
22
|
-
|
|
23
|
-
This is a page template component containing the header, footer, and main landmarks that compose a Workflow page. Its purpose is to guide a customer through a multi-step form to create a Workflow.
|
|
24
|
-
|
|
25
|
-
The Worflow is intended as a page wrapper and sets a minimum height of `100vh` with a sticky `Header` component. The `Children` will be wrapped in an unstyled main landmark to provide flexibility for inner content layouts.
|
|
26
|
-
|
|
27
|
-
To ensure at readability at 400% zoom (See WCAG's [Reflow criteria](https://www.w3.org/WAI/WCAG21/Understanding/reflow.html)) this component will collapse to a vertical layout on smaller screen sizes and remove `sticky` positioning to maximise screen real estate. You can see an example in [the responsive workflow story](/story/pages-workflow-components-workflow--responsive-workflow).
|
|
28
|
-
|
|
29
|
-
<Canvas layout="fullscreen" of={Workflow.Playground} />
|
|
30
|
-
|
|
31
|
-
## Header actions
|
|
32
|
-
|
|
33
|
-
The `headerActions` prop takes array of JSX elements that will render in the top right of the `Header` component.
|
|
34
|
-
|
|
35
|
-
While the number of JSX elements is not limited, is important to consider the real estate in the `Header` and how larger strings or components may be rendered on smaller screen sizes.
|
|
36
|
-
|
|
37
|
-
<Canvas
|
|
38
|
-
layout="fullscreen"
|
|
39
|
-
of={WorkflowHeader.MultipleActions}
|
|
40
|
-
source={{code: `<Workflow
|
|
41
|
-
headerActions={[
|
|
42
|
-
<Button
|
|
43
|
-
key="would-use-uui-1"
|
|
44
|
-
label="Preview"
|
|
45
|
-
icon={VisibleIcon}
|
|
46
|
-
secondary
|
|
47
|
-
iconPosition="start"
|
|
48
|
-
/>,
|
|
49
|
-
<Button
|
|
50
|
-
key="would-use-uui-2"
|
|
51
|
-
label="Save and close"
|
|
52
|
-
icon={CloseIcon}
|
|
53
|
-
secondary
|
|
54
|
-
iconPosition="end"
|
|
55
|
-
/>
|
|
56
|
-
]}
|
|
57
|
-
{...otherProps}
|
|
58
|
-
>
|
|
59
|
-
<MockContent />
|
|
60
|
-
</Workflow>`}}
|
|
61
|
-
/>
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
## Handling a Workflow exit
|
|
65
|
-
|
|
66
|
-
A common pattern identified is a Workflow Exit button. An implementation of this component should be passed to the `headerActions` an array to handle a user leaving a Workflow. We've provided an example below that combines a Kaizen `Button` with the `ConfirmationModal` component.
|
|
67
|
-
|
|
68
|
-
<Canvas
|
|
69
|
-
layout="fullscreen"
|
|
70
|
-
of={WorkflowHeader.Playground}
|
|
71
|
-
source={{code: `
|
|
72
|
-
const [showModal, setShowModal] = useState<boolean>(false)
|
|
73
|
-
...
|
|
74
|
-
return (
|
|
75
|
-
<>
|
|
76
|
-
<Button
|
|
77
|
-
label={exitLabel}
|
|
78
|
-
icon={closeIcon}
|
|
79
|
-
iconPosition="end"
|
|
80
|
-
secondary
|
|
81
|
-
onClick={() => setShowModal(true)}
|
|
82
|
-
/>
|
|
83
|
-
<ConfirmationModal
|
|
84
|
-
isOpen={showModal}
|
|
85
|
-
mood={mood}
|
|
86
|
-
isProminent={true}
|
|
87
|
-
title={exitTitle}
|
|
88
|
-
confirmLabel={confirmExitLabel}
|
|
89
|
-
dismissLabel={dismissExitLabel}
|
|
90
|
-
onConfirm={onConfirmExitCallback}
|
|
91
|
-
onDismiss={() => {
|
|
92
|
-
setShowModal(false)
|
|
93
|
-
}}
|
|
94
|
-
>
|
|
95
|
-
<div>
|
|
96
|
-
<Text variant="body">{exitDescription}</Text>
|
|
97
|
-
</div>
|
|
98
|
-
</ConfirmationModal>
|
|
99
|
-
</>
|
|
100
|
-
)`
|
|
101
|
-
}}
|
|
102
|
-
/>
|
|
103
|
-
|
|
104
|
-
## Tracking progress
|
|
105
|
-
|
|
106
|
-
The Footer tracks the progress of the form by using finding the index of the `currentStepId` within the `steps` array.
|
|
107
|
-
|
|
108
|
-
<Canvas
|
|
109
|
-
layout="fullscreen"
|
|
110
|
-
of={WorkflowFooter.FirstStep}
|
|
111
|
-
source={{code: `<Workflow
|
|
112
|
-
currentStepId="settings-step"
|
|
113
|
-
steps={[
|
|
114
|
-
{ label: "Settings", id: "settings-step" },
|
|
115
|
-
{ label: "Questions", id: "questions-step" },
|
|
116
|
-
{ label: "Preview", id: "preview-step" },
|
|
117
|
-
{ label: "Employees", id: "employees-step" },
|
|
118
|
-
{ label: "Schedule", id: "schedule-step" },
|
|
119
|
-
]}
|
|
120
|
-
{...otherProps}
|
|
121
|
-
>
|
|
122
|
-
<MockContent />
|
|
123
|
-
</Workflow>`}}
|
|
124
|
-
/>
|
|
125
|
-
|
|
126
|
-
The Footer is agnostic to the JSX elements that are used in the `previousAction` and `nextAction`. While we recommend using the Kaizen Button, a button-like component can be used in its place to satisfy project-specific requirements.
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
To hide, disable or change the appearance of the Footer buttons you can leverage the props available for the `@kaizen/button` or pass in undefined to not render the component.
|
|
130
|
-
|
|
131
|
-
<Canvas
|
|
132
|
-
layout="fullscreen"
|
|
133
|
-
of={WorkflowFooter.LastStep}
|
|
134
|
-
source={{code: `<Workflow
|
|
135
|
-
nextAction={<Button disabled label="Finish" primary reversed/>}
|
|
136
|
-
previousAction={<Button label="Back" reversed/>}
|
|
137
|
-
{...otherProps}
|
|
138
|
-
>
|
|
139
|
-
<MockContent />
|
|
140
|
-
</Workflow>`}}
|
|
141
|
-
/>
|
|
142
|
-
|
|
143
|
-
In Instances where users are returning to a completed workflow you can pass the `isComplete` prop to set the indicators to their "complete" status. This will also be reflected in their Aria title.
|
|
144
|
-
|
|
145
|
-
<Canvas
|
|
146
|
-
layout="fullscreen"
|
|
147
|
-
of={WorkflowFooter.AllStepsComplete}
|
|
148
|
-
source={{code: `<Workflow
|
|
149
|
-
isComplete
|
|
150
|
-
{...otherProps}
|
|
151
|
-
>
|
|
152
|
-
<MockContent />
|
|
153
|
-
</Workflow>`}}
|
|
154
|
-
/>
|
|
155
|
-
|
|
156
|
-
## Composable Worflow
|
|
157
|
-
|
|
158
|
-
While we do not advise this path, a composable Workflow may be created if required. Refer to the component's stories on how to consume each subcomponent.
|
|
159
|
-
|
|
160
|
-
<Canvas layout="fullscreen" of={Workflow.ComposableWorkflow} />
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
## Worflow API at a glance
|
|
164
|
-
|
|
165
|
-
<ArgTypes of={Workflow.Playground} />
|