@kaizen/components 1.68.6 → 1.68.8
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 +2 -1
- package/codemods/__tests__/utils/index.ts +1 -1
- package/codemods/__tests__/utils/parseJsx.ts +2 -8
- package/codemods/migrateBrandMomentMoodToVariant/index.ts +4 -10
- package/codemods/migrateBrandMomentMoodToVariant/transformBrandMomentMoodToVariant.spec.ts +12 -22
- package/codemods/migrateBrandMomentMoodToVariant/transformBrandMomentMoodToVariant.ts +12 -12
- package/codemods/migrateCardVariantToColor/index.ts +4 -4
- package/codemods/migrateCardVariantToColor/transformCardVariantToColor.spec.ts +23 -37
- package/codemods/migrateCardVariantToColor/transformCardVariantToColor.ts +20 -20
- package/codemods/migrateConfirmationModalMoodsToVariant/index.ts +4 -8
- package/codemods/migrateConfirmationModalMoodsToVariant/transformConfirmationModalMoodsToVariant.spec.ts +14 -14
- package/codemods/migrateConfirmationModalMoodsToVariant/transformConfirmationModalMoodsToVariant.ts +16 -16
- package/codemods/migrateEmptyStateIllustrationTypeToVariant/index.ts +4 -10
- package/codemods/migrateEmptyStateIllustrationTypeToVariant/transformEmptyStateIllustrationTypeToVariant.spec.ts +19 -29
- package/codemods/migrateEmptyStateIllustrationTypeToVariant/transformEmptyStateIllustrationTypeToVariant.ts +16 -16
- package/codemods/migrateGlobalNotificationTypeToVariant/index.ts +4 -8
- package/codemods/migrateInformationTileMoodToVariant/index.ts +4 -10
- package/codemods/migrateInformationTileMoodToVariant/transformInformationTileMoodToVariant.spec.ts +21 -25
- package/codemods/migrateInformationTileMoodToVariant/transformInformationTileMoodToVariant.ts +9 -9
- package/codemods/migrateInlineNotificationTypeToVariant/index.ts +4 -8
- package/codemods/migrateMultiActionTileMoodToVariant/index.ts +4 -10
- package/codemods/migrateMultiActionTileMoodToVariant/transformMultiActionTileMoodToVariant.spec.ts +21 -25
- package/codemods/migrateMultiActionTileMoodToVariant/transformMultiActionTileMoodToVariant.ts +9 -9
- package/codemods/migrateNotificationTypeToVariant/index.ts +1 -1
- package/codemods/migrateNotificationTypeToVariant/migrateNotificationTypeToVariant.spec.ts +11 -11
- package/codemods/migrateNotificationTypeToVariant/migrateNotificationTypeToVariant.ts +16 -16
- package/codemods/migrateProgressBarMoodToColor/index.ts +4 -10
- package/codemods/migrateProgressBarMoodToColor/transformProgressBarMoodToColor.spec.ts +14 -32
- package/codemods/migrateProgressBarMoodToColor/transformProgressBarMoodToColor.ts +14 -14
- package/codemods/migrateToastNotificationTypeToVariant/index.ts +4 -8
- package/codemods/migrateWellVariantToColor/index.ts +4 -4
- package/codemods/migrateWellVariantToColor/transformWellVariantToColor.spec.ts +21 -21
- package/codemods/migrateWellVariantToColor/transformWellVariantToColor.ts +27 -28
- package/codemods/removeInputEditModalMood/index.ts +4 -8
- package/codemods/removeInputEditModalMood/removeInputEditModalMood.spec.ts +10 -10
- package/codemods/removeInputEditModalMood/removeInputEditModalMood.ts +2 -2
- package/codemods/removePopoverVariant/index.ts +4 -4
- package/codemods/removePopoverVariant/removePopoverVariant.spec.ts +12 -12
- package/codemods/removePopoverVariant/removePopoverVariant.ts +2 -2
- package/codemods/upgradeIconV1/getNewIconPropsFromOldIconName.ts +244 -244
- package/codemods/upgradeIconV1/index.ts +8 -11
- package/codemods/upgradeIconV1/transformCaMonogramIconToBrand.spec.ts +16 -20
- package/codemods/upgradeIconV1/transformCaMonogramIconToBrand.ts +12 -17
- package/codemods/upgradeIconV1/transformIcon.spec.ts +18 -18
- package/codemods/upgradeIconV1/transformIcon.ts +31 -34
- package/codemods/upgradeIconV1/transformSpinnerIconToLoadingSpinner.spec.ts +18 -26
- package/codemods/upgradeIconV1/transformSpinnerIconToLoadingSpinner.ts +10 -18
- package/codemods/upgradeIconV1/upgradeIconV1.spec.ts +62 -78
- package/codemods/upgradeIconV1/upgradeIconV1.ts +25 -31
- package/codemods/utils/__fixtures__/KaioComponent.tsx +2 -2
- package/codemods/utils/__snapshots__/emptyLineEncoder.spec.ts.snap +4 -4
- package/codemods/utils/__snapshots__/transformSource.spec.ts.snap +4 -4
- package/codemods/utils/createEncodedSourceFile.ts +4 -12
- package/codemods/utils/createProp.spec.ts +35 -38
- package/codemods/utils/createProp.ts +13 -25
- package/codemods/utils/emptyLineEncoder.spec.ts +11 -15
- package/codemods/utils/emptyLineEncoder.ts +5 -5
- package/codemods/utils/getKaioTagName.spec.ts +34 -38
- package/codemods/utils/getKaioTagName.ts +11 -17
- package/codemods/utils/getPropValueText.spec.ts +25 -41
- package/codemods/utils/getPropValueText.ts +4 -6
- package/codemods/utils/index.ts +9 -9
- package/codemods/utils/migrateStringProp.spec.ts +31 -53
- package/codemods/utils/migrateStringProp.ts +8 -12
- package/codemods/utils/printAst.ts +1 -1
- package/codemods/utils/removeProps.spec.ts +16 -16
- package/codemods/utils/removeProps.ts +11 -13
- package/codemods/utils/transformComponentsInDir.ts +14 -20
- package/codemods/utils/transformSource.spec.ts +22 -28
- package/codemods/utils/transformSource.ts +7 -10
- package/codemods/utils/updateJsxElementWithNewProps.spec.ts +17 -20
- package/codemods/utils/updateJsxElementWithNewProps.ts +4 -4
- package/codemods/utils/updateKaioImports.spec.ts +42 -60
- package/codemods/utils/updateKaioImports.ts +39 -56
- package/dist/cjs/Avatar/Avatar.cjs +19 -19
- package/dist/cjs/AvatarGroup/AvatarGroup.cjs +1 -1
- package/dist/cjs/Badge/Badge.cjs +5 -5
- package/dist/cjs/Brand/Brand.cjs +6 -6
- package/dist/cjs/Brand/BrandCollectiveIntelligence/BrandCollectiveIntelligence.cjs +3 -3
- package/dist/cjs/BrandMoment/BrandMoment.cjs +3 -3
- package/dist/cjs/ButtonGroup/ButtonGroup.cjs +2 -2
- package/dist/cjs/Calendar/CalendarPopover/CalendarPopover.cjs +4 -4
- package/dist/cjs/Calendar/CalendarRange/CalendarRange.cjs +9 -8
- package/dist/cjs/Calendar/CalendarSingle/CalendarSingle.cjs +3 -3
- package/dist/cjs/Calendar/LegacyCalendarRange/LegacyCalendarRange.cjs +5 -4
- package/dist/cjs/Calendar/enums.cjs +2 -2
- package/dist/cjs/Calendar/utils/formatDateAsNumeral.cjs +1 -1
- package/dist/cjs/Calendar/utils/formatDateAsText.cjs +1 -1
- package/dist/cjs/Calendar/utils/isInvalidDate.cjs +1 -1
- package/dist/cjs/Calendar/utils/parseDateAsTextOrNumeral.cjs +1 -1
- package/dist/cjs/Card/Card.cjs +3 -3
- package/dist/cjs/Checkbox/Checkbox/Checkbox.cjs +8 -8
- package/dist/cjs/Checkbox/CheckboxField/CheckboxField.cjs +6 -5
- package/dist/cjs/Checkbox/CheckboxGroup/CheckboxGroup.cjs +3 -2
- package/dist/cjs/ClearButton/ClearButton.cjs +1 -1
- package/dist/cjs/Collapsible/Collapsible/Collapsible.cjs +7 -6
- package/dist/cjs/Collapsible/ExpertAdviceCollapsible/ExpertAdviceCollapsible.cjs +1 -1
- package/dist/cjs/Container/Container.cjs +1 -1
- package/dist/cjs/Content/Content.cjs +1 -1
- package/dist/cjs/DateInput/DateInput/DateInput.cjs +1 -1
- package/dist/cjs/DateInput/DateInputDescription/DateInputDescription.cjs +4 -4
- package/dist/cjs/DateInput/DateInputDescription/utils/formatDescriptionInputFormat.cjs +1 -1
- package/dist/cjs/DateInput/DateInputWithIconButton/DateInputWithIconButton.cjs +3 -3
- package/dist/cjs/DatePicker/DatePicker.cjs +33 -31
- package/dist/cjs/DatePicker/subcomponents/DateInputField/DateInputField.cjs +1 -1
- package/dist/cjs/DatePicker/utils/getLocale.cjs +47 -47
- package/dist/cjs/DatePicker/utils/validateDate.cjs +2 -2
- package/dist/cjs/DateRangePicker/DateRangePicker.cjs +13 -12
- package/dist/cjs/DateRangePicker/utils/formatDateRangeValue.cjs +8 -8
- package/dist/cjs/Divider/Divider.cjs +1 -1
- package/dist/cjs/EmptyState/EmptyState.cjs +10 -10
- package/dist/cjs/ErrorPage/ErrorPage.cjs +15 -14
- package/dist/cjs/ErrorPage/hooks/useErrorMessages.cjs +49 -49
- package/dist/cjs/FieldGroup/FieldGroup.cjs +1 -1
- package/dist/cjs/FieldMessage/FieldMessage.cjs +8 -8
- package/dist/cjs/Filter/Filter/Filter.cjs +7 -7
- package/dist/cjs/Filter/Filter/subcomponents/FilterContents/FilterContents.cjs +1 -1
- package/dist/cjs/Filter/Filter/subcomponents/FilterPopover/FilterPopover.cjs +3 -3
- package/dist/cjs/Filter/FilterBar/FilterBar.cjs +1 -1
- package/dist/cjs/Filter/FilterBar/context/FilterBarContext.cjs +22 -16
- package/dist/cjs/Filter/FilterBar/context/reducer/filterBarStateReducer.cjs +7 -7
- package/dist/cjs/Filter/FilterBar/context/utils/getValidValue.cjs +1 -1
- package/dist/cjs/Filter/FilterBar/subcomponents/AddFiltersMenu/AddFiltersMenu.cjs +6 -6
- package/dist/cjs/Filter/FilterBar/subcomponents/ClearAllButton/ClearAllButton.cjs +7 -7
- package/dist/cjs/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.cjs +2 -2
- package/dist/cjs/Filter/FilterBar/subcomponents/FilterBarDatePicker/FilterBarDatePicker.cjs +4 -4
- package/dist/cjs/Filter/FilterBar/subcomponents/FilterBarDateRangePicker/FilterBarDateRangePicker.cjs +3 -3
- package/dist/cjs/Filter/FilterBar/subcomponents/FilterBarMultiSelect/FilterBarMultiSelect.cjs +20 -15
- package/dist/cjs/Filter/FilterBar/subcomponents/FilterBarSelect/FilterBarSelect.cjs +15 -10
- package/dist/cjs/Filter/FilterButton/FilterButton/FilterButton.cjs +2 -2
- package/dist/cjs/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.cjs +4 -4
- package/dist/cjs/Filter/FilterButton/subcomponents/FilterButtonBase/FilterButtonBase.cjs +1 -1
- package/dist/cjs/Filter/FilterDatePicker/FilterDatePicker.cjs +1 -1
- package/dist/cjs/Filter/FilterDatePicker/hooks/useDateInputHandlers.cjs +2 -2
- package/dist/cjs/Filter/FilterDatePicker/subcomponents/DateInputField/DateInputField.cjs +5 -5
- package/dist/cjs/Filter/FilterDatePicker/subcomponents/FilterDatePickerField/FilterDatePickerField.cjs +9 -7
- package/dist/cjs/Filter/FilterDatePicker/subcomponents/FilterDatePickerField/filterDatePickerFieldReducer.cjs +5 -4
- package/dist/cjs/Filter/FilterDatePicker/utils/transformDateToInputValue.cjs +1 -1
- package/dist/cjs/Filter/FilterDateRangePicker/FilterDateRangePicker.cjs +1 -1
- package/dist/cjs/Filter/FilterDateRangePicker/subcomponents/DateRangeDisplayLabel/DateRangeDisplayLabel.cjs +1 -1
- package/dist/cjs/Filter/FilterDateRangePicker/subcomponents/DateRangeInputField/DateRangeInputField.cjs +1 -1
- package/dist/cjs/Filter/FilterDateRangePicker/subcomponents/DateRangeValidationMessage/DateRangeValidationMessage.cjs +1 -1
- package/dist/cjs/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/FilterDateRangePickerField.cjs +26 -23
- package/dist/cjs/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/filterDateRangePickerFieldReducer.cjs +8 -7
- package/dist/cjs/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/utils/validateEndDateBeforeStartDate.cjs +1 -1
- package/dist/cjs/Filter/FilterMultiSelect/FilterMultiSelect.cjs +2 -2
- package/dist/cjs/Filter/FilterMultiSelect/context/MenuTriggerProvider/MenuTriggerProvider.cjs +1 -1
- package/dist/cjs/Filter/FilterMultiSelect/context/SelectionProvider/SelectionProvider.cjs +1 -1
- package/dist/cjs/Filter/FilterMultiSelect/subcomponents/ListBox/ListBox.cjs +3 -1
- package/dist/cjs/Filter/FilterMultiSelect/subcomponents/ListBoxSection/ListBoxSection.cjs +2 -2
- package/dist/cjs/Filter/FilterMultiSelect/subcomponents/LoadMoreButton/LoadMoreButton.cjs +1 -1
- package/dist/cjs/Filter/FilterMultiSelect/subcomponents/MenuLayout/MenuFooter/MenuFooter.cjs +1 -1
- package/dist/cjs/Filter/FilterMultiSelect/subcomponents/MenuLayout/MenuLoadingSkeleton/MenuLoadingSkeleton.cjs +1 -1
- package/dist/cjs/Filter/FilterMultiSelect/subcomponents/MenuPopup/MenuPopup.cjs +1 -1
- package/dist/cjs/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.cjs +1 -1
- package/dist/cjs/Filter/FilterMultiSelect/subcomponents/NoResults/NoResults.cjs +1 -1
- package/dist/cjs/Filter/FilterMultiSelect/subcomponents/SearchInput/SearchInput.cjs +8 -8
- package/dist/cjs/Filter/FilterMultiSelect/subcomponents/SelectionControlButton/ClearButton/ClearButton.cjs +8 -6
- package/dist/cjs/Filter/FilterMultiSelect/subcomponents/SelectionControlButton/SelectAllButton/SelectAllButton.cjs +1 -1
- package/dist/cjs/Filter/FilterMultiSelect/subcomponents/Trigger/FilterTriggerButton/FilterTriggerButton.cjs +1 -1
- package/dist/cjs/Filter/FilterMultiSelect/subcomponents/Trigger/RemovableFilterTrigger/RemovableFilterTrigger.cjs +1 -1
- package/dist/cjs/Filter/FilterMultiSelect/utils/getSelectedOptionKeys.cjs +1 -1
- package/dist/cjs/Filter/FilterMultiSelect/utils/getSelectedOptionLabels.cjs +3 -3
- package/dist/cjs/Filter/FilterMultiSelect/utils/getTruncatedLabel.cjs +3 -3
- package/dist/cjs/Filter/FilterSelect/FilterSelect.cjs +6 -6
- package/dist/cjs/GuidanceBlock/GuidanceBlock.cjs +21 -19
- package/dist/cjs/Heading/Heading.cjs +18 -18
- package/dist/cjs/Icon/subcomponents/SVG/SVG.cjs +3 -3
- package/dist/cjs/Illustration/Scene/BrandMomentCaptureIntro/BrandMomentCaptureIntro.cjs +3 -3
- package/dist/cjs/Illustration/Scene/Scene.cjs +106 -106
- package/dist/cjs/Illustration/Spot/Spot.cjs +2 -2
- package/dist/cjs/Illustration/subcomponents/Base/Base.cjs +2 -2
- package/dist/cjs/Illustration/subcomponents/VideoPlayer/VideoPlayer.cjs +10 -10
- package/dist/cjs/Illustration/utils/canPlayWebm.cjs +3 -3
- package/dist/cjs/Illustration/utils/usePausePlay.cjs +2 -2
- package/dist/cjs/Input/Input/Input.cjs +4 -4
- package/dist/cjs/Input/Input/types.cjs +2 -2
- package/dist/cjs/Input/InputRange/InputRange.cjs +5 -5
- package/dist/cjs/Input/InputSearch/InputSearch.cjs +5 -5
- package/dist/cjs/KaizenProvider/KaizenProvider.cjs +2 -2
- package/dist/cjs/KaizenProvider/subcomponents/OptionalIntlProvider/OptionalIntlProvider.cjs +1 -1
- package/dist/cjs/Label/Label.cjs +7 -7
- package/dist/cjs/LabelledMessage/LabelledMessage.cjs +1 -1
- package/dist/cjs/LikertScaleLegacy/LikertScaleLegacy.cjs +18 -15
- package/dist/cjs/LikertScaleLegacy/utils/determineSelectionFromKeyPress.cjs +3 -3
- package/dist/cjs/Loading/LoadingGraphic/LoadingGraphic.cjs +2 -2
- package/dist/cjs/Loading/LoadingHeading/LoadingHeading.cjs +1 -1
- package/dist/cjs/Loading/LoadingInput/LoadingInput.cjs +1 -1
- package/dist/cjs/Loading/LoadingParagraph/LoadingParagraph.cjs +1 -1
- package/dist/cjs/Loading/LoadingSpinner/LoadingSpinner.cjs +3 -3
- package/dist/cjs/Loading/LoadingSpinner/subcomponents/SpinnerIcon.cjs +2 -2
- package/dist/cjs/Modal/ConfirmationModal/ConfirmationModal.cjs +24 -24
- package/dist/cjs/Modal/ContextModal/ContextModal.cjs +5 -5
- package/dist/cjs/Modal/GenericModal/GenericModal.cjs +6 -4
- package/dist/cjs/Modal/GenericModal/context/ModalContext.cjs +2 -2
- package/dist/cjs/Modal/GenericModal/subcomponents/ModalAccessibleDescription/ModalAccessibleDescription.cjs +1 -1
- package/dist/cjs/Modal/GenericModal/subcomponents/ModalAccessibleLabel/ModalAccessibleLabel.cjs +1 -1
- package/dist/cjs/Modal/GenericModal/subcomponents/ModalBody/ModalBody.cjs +1 -1
- package/dist/cjs/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.cjs +6 -6
- package/dist/cjs/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.cjs +1 -1
- package/dist/cjs/Modal/InputEditModal/InputEditModal.cjs +6 -6
- package/dist/cjs/Modal/util/console.cjs +3 -3
- package/dist/cjs/MultiSelect/MultiSelect.cjs +3 -2
- package/dist/cjs/MultiSelect/subcomponents/Checkbox/Checkbox.cjs +7 -7
- package/dist/cjs/MultiSelect/subcomponents/MultiSelectOptionField/MultiSelectOptionField.cjs +2 -2
- package/dist/cjs/MultiSelect/subcomponents/MultiSelectOptions/MultiSelectOptions.cjs +2 -2
- package/dist/cjs/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.cjs +3 -3
- package/dist/cjs/MultiSelect/subcomponents/Popover/Popover.cjs +2 -2
- package/dist/cjs/Notification/GlobalNotification/GlobalNotification.cjs +1 -1
- package/dist/cjs/Notification/InlineNotification/InlineNotification.cjs +1 -1
- package/dist/cjs/Notification/ToastNotification/ToastNotification/ToastNotification.cjs +5 -3
- package/dist/cjs/Notification/ToastNotification/ToastNotificationsList/ToastNotificationsList.cjs +1 -1
- package/dist/cjs/Notification/ToastNotification/ToastNotificationsList/subcomponents/ToastNotificationsMap/ToastNotificationsMap.cjs +2 -2
- package/dist/cjs/Notification/ToastNotification/context/ToastNotificationContext.cjs +2 -2
- package/dist/cjs/Notification/subcomponents/CancelButton/CancelButton.cjs +1 -1
- package/dist/cjs/Notification/subcomponents/GenericNotification/GenericNotification.cjs +6 -6
- package/dist/cjs/Notification/subcomponents/NotificationHeading/NotificationHeading.cjs +5 -4
- package/dist/cjs/Notification/subcomponents/NotificationIcon/NotificationIcon.cjs +12 -12
- package/dist/cjs/Pagination/Pagination.cjs +4 -4
- package/dist/cjs/Pagination/subcomponents/DirectionalLink/DirectionalLink.cjs +5 -5
- package/dist/cjs/Pagination/subcomponents/PaginationLink/PaginationLink.cjs +1 -1
- package/dist/cjs/Popover/Popover.cjs +10 -10
- package/dist/cjs/Popover/utils/classMappers.cjs +19 -19
- package/dist/cjs/ProgressBar/ProgressBar.cjs +2 -2
- package/dist/cjs/ProgressBar/subcomponents/Label/Label.cjs +2 -2
- package/dist/cjs/Radio/Radio/Radio.cjs +1 -1
- package/dist/cjs/Radio/RadioField/RadioField.cjs +5 -4
- package/dist/cjs/Radio/RadioGroup/RadioGroup.cjs +5 -4
- package/dist/cjs/RichTextEditor/EditableRichTextContent/EditableRichTextContent.cjs +2 -2
- package/dist/cjs/RichTextEditor/RichTextContent/RichTextContent.cjs +5 -3
- package/dist/cjs/RichTextEditor/RichTextEditor/RichTextEditor.cjs +23 -18
- package/dist/cjs/RichTextEditor/RichTextEditor/schema.cjs +14 -14
- package/dist/cjs/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/ToggleIconButton.cjs +2 -2
- package/dist/cjs/RichTextEditor/RichTextEditor/subcomponents/Toolbar/Toolbar.cjs +4 -4
- package/dist/cjs/RichTextEditor/RichTextEditor/subcomponents/ToolbarSection/ToolbarSection.cjs +1 -1
- package/dist/cjs/RichTextEditor/RichTextEditor/utils/controlmap.cjs +27 -24
- package/dist/cjs/RichTextEditor/RichTextEditor/utils/keymap.cjs +25 -27
- package/dist/cjs/RichTextEditor/constants.cjs +1 -1
- package/dist/cjs/RichTextEditor/utils/commands/markIsActive.cjs +7 -6
- package/dist/cjs/RichTextEditor/utils/core/createRichTextEditor.cjs +3 -3
- package/dist/cjs/RichTextEditor/utils/core/hooks/useRichTextEditor.cjs +6 -1
- package/dist/cjs/RichTextEditor/utils/core/state.cjs +1 -1
- package/dist/cjs/RichTextEditor/utils/plugins/LinkManager/LinkManager.cjs +3 -3
- package/dist/cjs/RichTextEditor/utils/plugins/LinkManager/components/LinkEditor/LinkEditor.cjs +2 -4
- package/dist/cjs/RichTextEditor/utils/plugins/LinkManager/components/LinkModal/LinkModal.cjs +7 -7
- package/dist/cjs/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/LinkPopover.cjs +2 -2
- package/dist/cjs/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/Positioner.cjs +5 -5
- package/dist/cjs/RichTextEditor/utils/plugins/LinkManager/createReactTooltipWrapper.cjs +5 -5
- package/dist/cjs/RichTextEditor/utils/plugins/LinkManager/validation.cjs +2 -2
- package/dist/cjs/RichTextEditor/utils/schema/marks.cjs +13 -13
- package/dist/cjs/RichTextEditor/utils/schema/nodes.cjs +5 -5
- package/dist/cjs/SearchField/SearchField.cjs +1 -1
- package/dist/cjs/Select/Select.cjs +9 -9
- package/dist/cjs/Skirt/Skirt.cjs +2 -2
- package/dist/cjs/Skirt/subcomponents/SkirtCard/SkirtCard.cjs +1 -1
- package/dist/cjs/Slider/Slider.cjs +6 -5
- package/dist/cjs/SplitButton/SplitButton.cjs +2 -2
- package/dist/cjs/SplitButton/subcomponents/ActionButton/ActionButton.cjs +1 -1
- package/dist/cjs/SplitButton/subcomponents/BaseButton/BaseButton.cjs +3 -3
- package/dist/cjs/SplitButton/subcomponents/DropdownButton/DropdownButton.cjs +6 -6
- package/dist/cjs/Table/Table.cjs +12 -12
- package/dist/cjs/Tabs/Tabs.cjs +1 -1
- package/dist/cjs/Tabs/subcomponents/Tab.cjs +2 -2
- package/dist/cjs/Tabs/subcomponents/TabList.cjs +1 -1
- package/dist/cjs/Tag/Tag.cjs +12 -12
- package/dist/cjs/Text/Text.cjs +3 -3
- package/dist/cjs/TextArea/TextArea.cjs +6 -5
- package/dist/cjs/TextAreaField/TextAreaField.cjs +13 -12
- package/dist/cjs/TextField/TextField.cjs +8 -7
- package/dist/cjs/Tile/InformationTile/InformationTile.cjs +1 -1
- package/dist/cjs/Tile/MultiActionTile/MultiActionTile.cjs +1 -1
- package/dist/cjs/Tile/TileGrid/TileGrid.cjs +1 -1
- package/dist/cjs/Tile/subcomponents/GenericTile/GenericTile.cjs +16 -28
- package/dist/cjs/TimeField/TimeField.cjs +7 -7
- package/dist/cjs/TimeField/subcomponents/TimeSegment/TimeSegment.cjs +2 -2
- package/dist/cjs/TimeField/subcomponents/TimeSegment/utils/generateSegmentDisplayText.cjs +1 -1
- package/dist/cjs/TitleBlockZen/TitleBlockZen.cjs +46 -45
- package/dist/cjs/TitleBlockZen/constants.cjs +2 -2
- package/dist/cjs/TitleBlockZen/subcomponents/MainActions.cjs +17 -16
- package/dist/cjs/TitleBlockZen/subcomponents/MobileActions.cjs +35 -29
- package/dist/cjs/TitleBlockZen/subcomponents/NavigationTabs.cjs +2 -2
- package/dist/cjs/TitleBlockZen/subcomponents/SecondaryActions.cjs +5 -5
- package/dist/cjs/TitleBlockZen/subcomponents/TitleBlockMenuItem.cjs +3 -3
- package/dist/cjs/TitleBlockZen/subcomponents/Toolbar.cjs +1 -1
- package/dist/cjs/TitleBlockZen/utils.cjs +8 -8
- package/dist/cjs/ToggleSwitch/ToggleSwitch/ToggleSwitch.cjs +2 -2
- package/dist/cjs/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.cjs +5 -5
- package/dist/cjs/VisuallyHidden/VisuallyHidden.cjs +1 -1
- package/dist/cjs/Well/Well.cjs +3 -3
- package/dist/cjs/Workflow/subcomponents/Footer/Footer.cjs +1 -1
- package/dist/cjs/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.cjs +2 -2
- package/dist/cjs/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.cjs +1 -1
- package/dist/cjs/Workflow/subcomponents/Footer/components/Root/Root.cjs +1 -1
- package/dist/cjs/Workflow/subcomponents/Header/Header.cjs +1 -1
- package/dist/cjs/Workflow/subcomponents/Header/components/Actions/Actions.cjs +1 -1
- package/dist/cjs/Workflow/subcomponents/Header/components/Branding/Branding.cjs +2 -2
- package/dist/cjs/Workflow/subcomponents/Header/components/Root/Root.cjs +1 -1
- package/dist/cjs/Workflow/subcomponents/Header/components/Titles/Titles.cjs +1 -1
- package/dist/cjs/Workflow/subcomponents/Main/Main.cjs +1 -1
- package/dist/cjs/Workflow/subcomponents/Wrapper/Wrapper.cjs +1 -1
- package/dist/cjs/__actions__/Button/v1/Button/Button.cjs +1 -1
- package/dist/cjs/__actions__/Button/v1/GenericButton/GenericButton.cjs +55 -55
- package/dist/cjs/__actions__/Button/v1/IconButton/IconButton.cjs +1 -1
- package/dist/cjs/__actions__/Button/v3/Button.cjs +4 -3
- package/dist/cjs/__actions__/Button/v3/subcomponents/ButtonContent/ButtonContent.cjs +4 -4
- package/dist/cjs/__actions__/Button/v3/subcomponents/PendingContent/PendingContent.cjs +2 -2
- package/dist/cjs/__actions__/Menu/v1/Menu.cjs +1 -1
- package/dist/cjs/__actions__/Menu/v1/subcomponents/MenuDropdown/MenuDropdown.cjs +15 -15
- package/dist/cjs/__actions__/Menu/v1/subcomponents/MenuHeading/MenuHeading.cjs +1 -1
- package/dist/cjs/__actions__/Menu/v1/subcomponents/MenuItem/MenuItem.cjs +3 -3
- package/dist/cjs/__actions__/Menu/v1/subcomponents/MenuList/MenuList.cjs +1 -1
- package/dist/cjs/__actions__/Menu/v1/subcomponents/StatelessMenu/StatelessMenu.cjs +9 -9
- package/dist/cjs/__actions__/Menu/v3/Menu.cjs +1 -0
- package/dist/cjs/__actions__/Menu/v3/MenuItem.cjs +3 -2
- package/dist/cjs/__future__/Icon/Icon.cjs +2 -2
- package/dist/cjs/__future__/Icon/constants.cjs +2 -2
- package/dist/cjs/__future__/Select/Select.cjs +9 -8
- package/dist/cjs/__future__/Select/context/SelectContext.cjs +1 -1
- package/dist/cjs/__future__/Select/subcomponents/ListBox/ListBox.cjs +5 -3
- package/dist/cjs/__future__/Select/subcomponents/ListBoxSection/ListBoxSection.cjs +3 -3
- package/dist/cjs/__future__/Select/subcomponents/ListItem/ListItem.cjs +2 -2
- package/dist/cjs/__future__/Select/subcomponents/ListItems/ListItems.cjs +1 -1
- package/dist/cjs/__future__/Select/subcomponents/Option/Option.cjs +2 -2
- package/dist/cjs/__future__/Select/subcomponents/Overlay/Overlay.cjs +1 -1
- package/dist/cjs/__future__/Select/subcomponents/SectionDivider/SectionDivider.cjs +1 -1
- package/dist/cjs/__future__/Select/subcomponents/SelectPopoverContents/SelectPopoverContents.cjs +1 -1
- package/dist/cjs/__future__/Select/subcomponents/SelectToggle/SelectToggle.cjs +4 -4
- package/dist/cjs/__future__/Select/utils/isSelectOptionGroup.cjs +1 -1
- package/dist/cjs/__future__/Tabs/subcomponents/Tab/Tab.cjs +1 -1
- package/dist/cjs/__future__/Tabs/subcomponents/TabList/TabList.cjs +1 -1
- package/dist/cjs/__future__/Tag/RemovableTag/RemovableTag.cjs +1 -1
- package/dist/cjs/__future__/Tag/RemovableTag/subcomponents/RemoveButton.cjs +1 -1
- package/dist/cjs/__future__/Tag/Tag/Tag.cjs +2 -2
- package/dist/cjs/__overlays__/Tooltip/v1/Tooltip.cjs +19 -19
- package/dist/cjs/__overlays__/Tooltip/v1/subcomponents/AppearanceAnim.cjs +1 -1
- package/dist/cjs/__overlays__/Tooltip/v1/utils/isSemanticElement.cjs +7 -6
- package/dist/cjs/__overlays__/Tooltip/v3/Tooltip.cjs +5 -4
- package/dist/cjs/__utilities__/useIsClientReady/useIsClientReady.cjs +1 -1
- package/dist/cjs/utils/getNodeText.cjs +4 -4
- package/dist/cjs/utils/hostedAssets.cjs +2 -2
- package/dist/cjs/utils/isRefObject.cjs +1 -1
- package/dist/cjs/utils/mergeClassNames.cjs +2 -2
- package/dist/cjs/utils/useMediaQueries.cjs +11 -11
- package/dist/esm/Avatar/Avatar.mjs +19 -19
- package/dist/esm/AvatarGroup/AvatarGroup.mjs +1 -1
- package/dist/esm/Badge/Badge.mjs +5 -5
- package/dist/esm/Brand/Brand.mjs +6 -6
- package/dist/esm/Brand/BrandCollectiveIntelligence/BrandCollectiveIntelligence.mjs +3 -3
- package/dist/esm/BrandMoment/BrandMoment.mjs +3 -3
- package/dist/esm/ButtonGroup/ButtonGroup.mjs +2 -2
- package/dist/esm/Calendar/CalendarPopover/CalendarPopover.mjs +4 -4
- package/dist/esm/Calendar/CalendarRange/CalendarRange.mjs +9 -8
- package/dist/esm/Calendar/CalendarSingle/CalendarSingle.mjs +3 -3
- package/dist/esm/Calendar/LegacyCalendarRange/LegacyCalendarRange.mjs +5 -4
- package/dist/esm/Calendar/enums.mjs +2 -2
- package/dist/esm/Calendar/utils/formatDateAsNumeral.mjs +1 -1
- package/dist/esm/Calendar/utils/formatDateAsText.mjs +1 -1
- package/dist/esm/Calendar/utils/isInvalidDate.mjs +1 -1
- package/dist/esm/Calendar/utils/parseDateAsTextOrNumeral.mjs +1 -1
- package/dist/esm/Card/Card.mjs +3 -3
- package/dist/esm/Checkbox/Checkbox/Checkbox.mjs +8 -8
- package/dist/esm/Checkbox/CheckboxField/CheckboxField.mjs +6 -5
- package/dist/esm/Checkbox/CheckboxGroup/CheckboxGroup.mjs +3 -2
- package/dist/esm/ClearButton/ClearButton.mjs +1 -1
- package/dist/esm/Collapsible/Collapsible/Collapsible.mjs +7 -6
- package/dist/esm/Collapsible/ExpertAdviceCollapsible/ExpertAdviceCollapsible.mjs +1 -1
- package/dist/esm/Container/Container.mjs +1 -1
- package/dist/esm/Content/Content.mjs +1 -1
- package/dist/esm/DateInput/DateInput/DateInput.mjs +1 -1
- package/dist/esm/DateInput/DateInputDescription/DateInputDescription.mjs +4 -4
- package/dist/esm/DateInput/DateInputDescription/utils/formatDescriptionInputFormat.mjs +1 -1
- package/dist/esm/DateInput/DateInputWithIconButton/DateInputWithIconButton.mjs +3 -3
- package/dist/esm/DatePicker/DatePicker.mjs +34 -32
- package/dist/esm/DatePicker/subcomponents/DateInputField/DateInputField.mjs +1 -1
- package/dist/esm/DatePicker/utils/getLocale.mjs +47 -47
- package/dist/esm/DatePicker/utils/validateDate.mjs +2 -2
- package/dist/esm/DateRangePicker/DateRangePicker.mjs +13 -12
- package/dist/esm/DateRangePicker/utils/formatDateRangeValue.mjs +8 -8
- package/dist/esm/Divider/Divider.mjs +1 -1
- package/dist/esm/EmptyState/EmptyState.mjs +12 -12
- package/dist/esm/ErrorPage/ErrorPage.mjs +17 -16
- package/dist/esm/ErrorPage/hooks/useErrorMessages.mjs +49 -49
- package/dist/esm/FieldGroup/FieldGroup.mjs +1 -1
- package/dist/esm/FieldMessage/FieldMessage.mjs +8 -8
- package/dist/esm/Filter/Filter/Filter.mjs +7 -7
- package/dist/esm/Filter/Filter/subcomponents/FilterContents/FilterContents.mjs +1 -1
- package/dist/esm/Filter/Filter/subcomponents/FilterPopover/FilterPopover.mjs +3 -3
- package/dist/esm/Filter/FilterBar/FilterBar.mjs +1 -1
- package/dist/esm/Filter/FilterBar/context/FilterBarContext.mjs +22 -16
- package/dist/esm/Filter/FilterBar/context/reducer/filterBarStateReducer.mjs +7 -7
- package/dist/esm/Filter/FilterBar/context/utils/getValidValue.mjs +1 -1
- package/dist/esm/Filter/FilterBar/subcomponents/AddFiltersMenu/AddFiltersMenu.mjs +6 -6
- package/dist/esm/Filter/FilterBar/subcomponents/ClearAllButton/ClearAllButton.mjs +7 -7
- package/dist/esm/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.mjs +2 -2
- package/dist/esm/Filter/FilterBar/subcomponents/FilterBarDatePicker/FilterBarDatePicker.mjs +4 -4
- package/dist/esm/Filter/FilterBar/subcomponents/FilterBarDateRangePicker/FilterBarDateRangePicker.mjs +3 -3
- package/dist/esm/Filter/FilterBar/subcomponents/FilterBarMultiSelect/FilterBarMultiSelect.mjs +20 -15
- package/dist/esm/Filter/FilterBar/subcomponents/FilterBarSelect/FilterBarSelect.mjs +15 -10
- package/dist/esm/Filter/FilterButton/FilterButton/FilterButton.mjs +2 -2
- package/dist/esm/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.mjs +4 -4
- package/dist/esm/Filter/FilterButton/subcomponents/FilterButtonBase/FilterButtonBase.mjs +1 -1
- package/dist/esm/Filter/FilterDatePicker/FilterDatePicker.mjs +1 -1
- package/dist/esm/Filter/FilterDatePicker/hooks/useDateInputHandlers.mjs +2 -2
- package/dist/esm/Filter/FilterDatePicker/subcomponents/DateInputField/DateInputField.mjs +5 -5
- package/dist/esm/Filter/FilterDatePicker/subcomponents/FilterDatePickerField/FilterDatePickerField.mjs +9 -7
- package/dist/esm/Filter/FilterDatePicker/subcomponents/FilterDatePickerField/filterDatePickerFieldReducer.mjs +5 -4
- package/dist/esm/Filter/FilterDatePicker/utils/transformDateToInputValue.mjs +1 -1
- package/dist/esm/Filter/FilterDateRangePicker/FilterDateRangePicker.mjs +1 -1
- package/dist/esm/Filter/FilterDateRangePicker/subcomponents/DateRangeDisplayLabel/DateRangeDisplayLabel.mjs +1 -1
- package/dist/esm/Filter/FilterDateRangePicker/subcomponents/DateRangeInputField/DateRangeInputField.mjs +1 -1
- package/dist/esm/Filter/FilterDateRangePicker/subcomponents/DateRangeValidationMessage/DateRangeValidationMessage.mjs +1 -1
- package/dist/esm/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/FilterDateRangePickerField.mjs +26 -23
- package/dist/esm/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/filterDateRangePickerFieldReducer.mjs +8 -7
- package/dist/esm/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/utils/validateEndDateBeforeStartDate.mjs +1 -1
- package/dist/esm/Filter/FilterMultiSelect/FilterMultiSelect.mjs +2 -2
- package/dist/esm/Filter/FilterMultiSelect/context/MenuTriggerProvider/MenuTriggerProvider.mjs +1 -1
- package/dist/esm/Filter/FilterMultiSelect/context/SelectionProvider/SelectionProvider.mjs +1 -1
- package/dist/esm/Filter/FilterMultiSelect/subcomponents/ListBox/ListBox.mjs +3 -1
- package/dist/esm/Filter/FilterMultiSelect/subcomponents/ListBoxSection/ListBoxSection.mjs +2 -2
- package/dist/esm/Filter/FilterMultiSelect/subcomponents/LoadMoreButton/LoadMoreButton.mjs +1 -1
- package/dist/esm/Filter/FilterMultiSelect/subcomponents/MenuLayout/MenuFooter/MenuFooter.mjs +1 -1
- package/dist/esm/Filter/FilterMultiSelect/subcomponents/MenuLayout/MenuLoadingSkeleton/MenuLoadingSkeleton.mjs +1 -1
- package/dist/esm/Filter/FilterMultiSelect/subcomponents/MenuPopup/MenuPopup.mjs +1 -1
- package/dist/esm/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.mjs +1 -1
- package/dist/esm/Filter/FilterMultiSelect/subcomponents/NoResults/NoResults.mjs +1 -1
- package/dist/esm/Filter/FilterMultiSelect/subcomponents/SearchInput/SearchInput.mjs +8 -8
- package/dist/esm/Filter/FilterMultiSelect/subcomponents/SelectionControlButton/ClearButton/ClearButton.mjs +8 -6
- package/dist/esm/Filter/FilterMultiSelect/subcomponents/SelectionControlButton/SelectAllButton/SelectAllButton.mjs +1 -1
- package/dist/esm/Filter/FilterMultiSelect/subcomponents/Trigger/FilterTriggerButton/FilterTriggerButton.mjs +1 -1
- package/dist/esm/Filter/FilterMultiSelect/subcomponents/Trigger/RemovableFilterTrigger/RemovableFilterTrigger.mjs +1 -1
- package/dist/esm/Filter/FilterMultiSelect/utils/getSelectedOptionKeys.mjs +1 -1
- package/dist/esm/Filter/FilterMultiSelect/utils/getSelectedOptionLabels.mjs +3 -3
- package/dist/esm/Filter/FilterMultiSelect/utils/getTruncatedLabel.mjs +3 -3
- package/dist/esm/Filter/FilterSelect/FilterSelect.mjs +6 -6
- package/dist/esm/GuidanceBlock/GuidanceBlock.mjs +21 -19
- package/dist/esm/Heading/Heading.mjs +18 -18
- package/dist/esm/Icon/subcomponents/SVG/SVG.mjs +3 -3
- package/dist/esm/Illustration/Scene/BrandMomentCaptureIntro/BrandMomentCaptureIntro.mjs +3 -3
- package/dist/esm/Illustration/Scene/Scene.mjs +106 -106
- package/dist/esm/Illustration/Spot/Spot.mjs +2 -2
- package/dist/esm/Illustration/subcomponents/Base/Base.mjs +2 -2
- package/dist/esm/Illustration/subcomponents/VideoPlayer/VideoPlayer.mjs +12 -12
- package/dist/esm/Illustration/utils/canPlayWebm.mjs +3 -3
- package/dist/esm/Illustration/utils/usePausePlay.mjs +4 -4
- package/dist/esm/Input/Input/Input.mjs +8 -8
- package/dist/esm/Input/Input/types.mjs +2 -2
- package/dist/esm/Input/InputRange/InputRange.mjs +5 -5
- package/dist/esm/Input/InputSearch/InputSearch.mjs +5 -5
- package/dist/esm/KaizenProvider/KaizenProvider.mjs +2 -2
- package/dist/esm/KaizenProvider/subcomponents/OptionalIntlProvider/OptionalIntlProvider.mjs +1 -1
- package/dist/esm/Label/Label.mjs +7 -7
- package/dist/esm/LabelledMessage/LabelledMessage.mjs +1 -1
- package/dist/esm/LikertScaleLegacy/LikertScaleLegacy.mjs +18 -15
- package/dist/esm/LikertScaleLegacy/utils/determineSelectionFromKeyPress.mjs +3 -3
- package/dist/esm/Loading/LoadingGraphic/LoadingGraphic.mjs +2 -2
- package/dist/esm/Loading/LoadingHeading/LoadingHeading.mjs +1 -1
- package/dist/esm/Loading/LoadingInput/LoadingInput.mjs +1 -1
- package/dist/esm/Loading/LoadingParagraph/LoadingParagraph.mjs +1 -1
- package/dist/esm/Loading/LoadingSpinner/LoadingSpinner.mjs +3 -3
- package/dist/esm/Loading/LoadingSpinner/subcomponents/SpinnerIcon.mjs +2 -2
- package/dist/esm/Modal/ConfirmationModal/ConfirmationModal.mjs +24 -24
- package/dist/esm/Modal/ContextModal/ContextModal.mjs +7 -7
- package/dist/esm/Modal/GenericModal/GenericModal.mjs +6 -4
- package/dist/esm/Modal/GenericModal/context/ModalContext.mjs +2 -2
- package/dist/esm/Modal/GenericModal/subcomponents/ModalAccessibleDescription/ModalAccessibleDescription.mjs +1 -1
- package/dist/esm/Modal/GenericModal/subcomponents/ModalAccessibleLabel/ModalAccessibleLabel.mjs +1 -1
- package/dist/esm/Modal/GenericModal/subcomponents/ModalBody/ModalBody.mjs +1 -1
- package/dist/esm/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.mjs +6 -6
- package/dist/esm/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.mjs +1 -1
- package/dist/esm/Modal/InputEditModal/InputEditModal.mjs +6 -6
- package/dist/esm/Modal/util/console.mjs +3 -3
- package/dist/esm/MultiSelect/MultiSelect.mjs +5 -4
- package/dist/esm/MultiSelect/subcomponents/Checkbox/Checkbox.mjs +7 -7
- package/dist/esm/MultiSelect/subcomponents/MultiSelectOptionField/MultiSelectOptionField.mjs +2 -2
- package/dist/esm/MultiSelect/subcomponents/MultiSelectOptions/MultiSelectOptions.mjs +2 -2
- package/dist/esm/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.mjs +3 -3
- package/dist/esm/MultiSelect/subcomponents/Popover/Popover.mjs +2 -2
- package/dist/esm/Notification/GlobalNotification/GlobalNotification.mjs +1 -1
- package/dist/esm/Notification/InlineNotification/InlineNotification.mjs +1 -1
- package/dist/esm/Notification/ToastNotification/ToastNotification/ToastNotification.mjs +5 -3
- package/dist/esm/Notification/ToastNotification/ToastNotificationsList/ToastNotificationsList.mjs +1 -1
- package/dist/esm/Notification/ToastNotification/ToastNotificationsList/subcomponents/ToastNotificationsMap/ToastNotificationsMap.mjs +2 -2
- package/dist/esm/Notification/ToastNotification/context/ToastNotificationContext.mjs +2 -2
- package/dist/esm/Notification/subcomponents/CancelButton/CancelButton.mjs +1 -1
- package/dist/esm/Notification/subcomponents/GenericNotification/GenericNotification.mjs +6 -6
- package/dist/esm/Notification/subcomponents/NotificationHeading/NotificationHeading.mjs +5 -4
- package/dist/esm/Notification/subcomponents/NotificationIcon/NotificationIcon.mjs +12 -12
- package/dist/esm/Pagination/Pagination.mjs +4 -4
- package/dist/esm/Pagination/subcomponents/DirectionalLink/DirectionalLink.mjs +5 -5
- package/dist/esm/Pagination/subcomponents/PaginationLink/PaginationLink.mjs +1 -1
- package/dist/esm/Popover/Popover.mjs +12 -12
- package/dist/esm/Popover/utils/classMappers.mjs +19 -19
- package/dist/esm/ProgressBar/ProgressBar.mjs +2 -2
- package/dist/esm/ProgressBar/subcomponents/Label/Label.mjs +2 -2
- package/dist/esm/Radio/Radio/Radio.mjs +1 -1
- package/dist/esm/Radio/RadioField/RadioField.mjs +5 -4
- package/dist/esm/Radio/RadioGroup/RadioGroup.mjs +5 -4
- package/dist/esm/RichTextEditor/EditableRichTextContent/EditableRichTextContent.mjs +4 -4
- package/dist/esm/RichTextEditor/RichTextContent/RichTextContent.mjs +5 -3
- package/dist/esm/RichTextEditor/RichTextEditor/RichTextEditor.mjs +25 -20
- package/dist/esm/RichTextEditor/RichTextEditor/schema.mjs +14 -14
- package/dist/esm/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/ToggleIconButton.mjs +2 -2
- package/dist/esm/RichTextEditor/RichTextEditor/subcomponents/Toolbar/Toolbar.mjs +4 -4
- package/dist/esm/RichTextEditor/RichTextEditor/subcomponents/ToolbarSection/ToolbarSection.mjs +1 -1
- package/dist/esm/RichTextEditor/RichTextEditor/utils/controlmap.mjs +35 -32
- package/dist/esm/RichTextEditor/RichTextEditor/utils/keymap.mjs +25 -27
- package/dist/esm/RichTextEditor/constants.mjs +1 -1
- package/dist/esm/RichTextEditor/utils/commands/markIsActive.mjs +7 -6
- package/dist/esm/RichTextEditor/utils/core/createRichTextEditor.mjs +3 -3
- package/dist/esm/RichTextEditor/utils/core/hooks/useRichTextEditor.mjs +6 -1
- package/dist/esm/RichTextEditor/utils/core/state.mjs +1 -1
- package/dist/esm/RichTextEditor/utils/plugins/LinkManager/LinkManager.mjs +3 -3
- package/dist/esm/RichTextEditor/utils/plugins/LinkManager/components/LinkEditor/LinkEditor.mjs +2 -4
- package/dist/esm/RichTextEditor/utils/plugins/LinkManager/components/LinkModal/LinkModal.mjs +7 -7
- package/dist/esm/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/LinkPopover.mjs +2 -2
- package/dist/esm/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/Positioner.mjs +5 -5
- package/dist/esm/RichTextEditor/utils/plugins/LinkManager/createReactTooltipWrapper.mjs +5 -5
- package/dist/esm/RichTextEditor/utils/plugins/LinkManager/validation.mjs +2 -2
- package/dist/esm/RichTextEditor/utils/schema/marks.mjs +13 -13
- package/dist/esm/RichTextEditor/utils/schema/nodes.mjs +5 -5
- package/dist/esm/SearchField/SearchField.mjs +1 -1
- package/dist/esm/Select/Select.mjs +11 -11
- package/dist/esm/Skirt/Skirt.mjs +2 -2
- package/dist/esm/Skirt/subcomponents/SkirtCard/SkirtCard.mjs +1 -1
- package/dist/esm/Slider/Slider.mjs +8 -7
- package/dist/esm/SplitButton/SplitButton.mjs +2 -2
- package/dist/esm/SplitButton/subcomponents/ActionButton/ActionButton.mjs +1 -1
- package/dist/esm/SplitButton/subcomponents/BaseButton/BaseButton.mjs +3 -3
- package/dist/esm/SplitButton/subcomponents/DropdownButton/DropdownButton.mjs +6 -6
- package/dist/esm/Table/Table.mjs +12 -12
- package/dist/esm/Tabs/Tabs.mjs +1 -1
- package/dist/esm/Tabs/subcomponents/Tab.mjs +2 -2
- package/dist/esm/Tabs/subcomponents/TabList.mjs +1 -1
- package/dist/esm/Tag/Tag.mjs +12 -12
- package/dist/esm/Text/Text.mjs +3 -3
- package/dist/esm/TextArea/TextArea.mjs +6 -5
- package/dist/esm/TextAreaField/TextAreaField.mjs +13 -12
- package/dist/esm/TextField/TextField.mjs +8 -7
- package/dist/esm/Tile/InformationTile/InformationTile.mjs +1 -1
- package/dist/esm/Tile/MultiActionTile/MultiActionTile.mjs +1 -1
- package/dist/esm/Tile/TileGrid/TileGrid.mjs +1 -1
- package/dist/esm/Tile/subcomponents/GenericTile/GenericTile.mjs +16 -28
- package/dist/esm/TimeField/TimeField.mjs +9 -9
- package/dist/esm/TimeField/subcomponents/TimeSegment/TimeSegment.mjs +2 -2
- package/dist/esm/TimeField/subcomponents/TimeSegment/utils/generateSegmentDisplayText.mjs +1 -1
- package/dist/esm/TitleBlockZen/TitleBlockZen.mjs +46 -45
- package/dist/esm/TitleBlockZen/constants.mjs +2 -2
- package/dist/esm/TitleBlockZen/subcomponents/MainActions.mjs +17 -16
- package/dist/esm/TitleBlockZen/subcomponents/MobileActions.mjs +35 -29
- package/dist/esm/TitleBlockZen/subcomponents/NavigationTabs.mjs +2 -2
- package/dist/esm/TitleBlockZen/subcomponents/SecondaryActions.mjs +5 -5
- package/dist/esm/TitleBlockZen/subcomponents/TitleBlockMenuItem.mjs +5 -5
- package/dist/esm/TitleBlockZen/subcomponents/Toolbar.mjs +1 -1
- package/dist/esm/TitleBlockZen/utils.mjs +8 -8
- package/dist/esm/ToggleSwitch/ToggleSwitch/ToggleSwitch.mjs +2 -2
- package/dist/esm/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.mjs +5 -5
- package/dist/esm/VisuallyHidden/VisuallyHidden.mjs +1 -1
- package/dist/esm/Well/Well.mjs +3 -3
- package/dist/esm/Workflow/subcomponents/Footer/Footer.mjs +1 -1
- package/dist/esm/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.mjs +2 -2
- package/dist/esm/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.mjs +1 -1
- package/dist/esm/Workflow/subcomponents/Footer/components/Root/Root.mjs +1 -1
- package/dist/esm/Workflow/subcomponents/Header/Header.mjs +1 -1
- package/dist/esm/Workflow/subcomponents/Header/components/Actions/Actions.mjs +1 -1
- package/dist/esm/Workflow/subcomponents/Header/components/Branding/Branding.mjs +2 -2
- package/dist/esm/Workflow/subcomponents/Header/components/Root/Root.mjs +1 -1
- package/dist/esm/Workflow/subcomponents/Header/components/Titles/Titles.mjs +1 -1
- package/dist/esm/Workflow/subcomponents/Main/Main.mjs +1 -1
- package/dist/esm/Workflow/subcomponents/Wrapper/Wrapper.mjs +1 -1
- package/dist/esm/__actions__/Button/v1/Button/Button.mjs +1 -1
- package/dist/esm/__actions__/Button/v1/GenericButton/GenericButton.mjs +56 -56
- package/dist/esm/__actions__/Button/v1/IconButton/IconButton.mjs +1 -1
- package/dist/esm/__actions__/Button/v3/Button.mjs +51 -47
- package/dist/esm/__actions__/Button/v3/subcomponents/ButtonContent/ButtonContent.mjs +6 -6
- package/dist/esm/__actions__/Button/v3/subcomponents/PendingContent/PendingContent.mjs +2 -2
- package/dist/esm/__actions__/Menu/v1/Menu.mjs +1 -1
- package/dist/esm/__actions__/Menu/v1/subcomponents/MenuDropdown/MenuDropdown.mjs +15 -15
- package/dist/esm/__actions__/Menu/v1/subcomponents/MenuHeading/MenuHeading.mjs +1 -1
- package/dist/esm/__actions__/Menu/v1/subcomponents/MenuItem/MenuItem.mjs +3 -3
- package/dist/esm/__actions__/Menu/v1/subcomponents/MenuList/MenuList.mjs +1 -1
- package/dist/esm/__actions__/Menu/v1/subcomponents/StatelessMenu/StatelessMenu.mjs +9 -9
- package/dist/esm/__actions__/Menu/v3/Menu.mjs +12 -8
- package/dist/esm/__actions__/Menu/v3/MenuItem.mjs +21 -17
- package/dist/esm/__future__/Icon/Icon.mjs +2 -2
- package/dist/esm/__future__/Icon/constants.mjs +2 -2
- package/dist/esm/__future__/Select/Select.mjs +9 -8
- package/dist/esm/__future__/Select/context/SelectContext.mjs +1 -1
- package/dist/esm/__future__/Select/subcomponents/ListBox/ListBox.mjs +5 -3
- package/dist/esm/__future__/Select/subcomponents/ListBoxSection/ListBoxSection.mjs +3 -3
- package/dist/esm/__future__/Select/subcomponents/ListItem/ListItem.mjs +2 -2
- package/dist/esm/__future__/Select/subcomponents/ListItems/ListItems.mjs +1 -1
- package/dist/esm/__future__/Select/subcomponents/Option/Option.mjs +2 -2
- package/dist/esm/__future__/Select/subcomponents/Overlay/Overlay.mjs +1 -1
- package/dist/esm/__future__/Select/subcomponents/SectionDivider/SectionDivider.mjs +1 -1
- package/dist/esm/__future__/Select/subcomponents/SelectPopoverContents/SelectPopoverContents.mjs +3 -3
- package/dist/esm/__future__/Select/subcomponents/SelectToggle/SelectToggle.mjs +4 -4
- package/dist/esm/__future__/Select/utils/isSelectOptionGroup.mjs +1 -1
- package/dist/esm/__future__/Tabs/subcomponents/Tab/Tab.mjs +1 -1
- package/dist/esm/__future__/Tabs/subcomponents/TabList/TabList.mjs +1 -1
- package/dist/esm/__future__/Tag/RemovableTag/RemovableTag.mjs +1 -1
- package/dist/esm/__future__/Tag/RemovableTag/subcomponents/RemoveButton.mjs +1 -1
- package/dist/esm/__future__/Tag/Tag/Tag.mjs +2 -2
- package/dist/esm/__overlays__/Tooltip/v1/Tooltip.mjs +19 -19
- package/dist/esm/__overlays__/Tooltip/v1/subcomponents/AppearanceAnim.mjs +1 -1
- package/dist/esm/__overlays__/Tooltip/v1/utils/isSemanticElement.mjs +7 -6
- package/dist/esm/__overlays__/Tooltip/v3/Tooltip.mjs +36 -32
- package/dist/esm/__utilities__/useIsClientReady/useIsClientReady.mjs +1 -1
- package/dist/esm/utils/getNodeText.mjs +4 -4
- package/dist/esm/utils/hostedAssets.mjs +2 -2
- package/dist/esm/utils/isRefObject.mjs +1 -1
- package/dist/esm/utils/mergeClassNames.mjs +2 -2
- package/dist/esm/utils/useMediaQueries.mjs +11 -11
- package/dist/styles.css +56 -63
- package/dist/types/Avatar/Avatar.d.ts +2 -2
- package/dist/types/Avatar/index.d.ts +1 -1
- package/dist/types/AvatarGroup/AvatarGroup.d.ts +3 -3
- package/dist/types/AvatarGroup/_docs/example-data.d.ts +1 -1
- package/dist/types/AvatarGroup/index.d.ts +1 -1
- package/dist/types/Badge/Badge.d.ts +5 -5
- package/dist/types/Badge/index.d.ts +1 -1
- package/dist/types/Brand/Brand.d.ts +9 -9
- package/dist/types/Brand/BrandCollectiveIntelligence/BrandCollectiveIntelligence.d.ts +1 -1
- package/dist/types/Brand/BrandCollectiveIntelligence/index.d.ts +1 -1
- package/dist/types/Brand/index.d.ts +1 -1
- package/dist/types/BrandMoment/BrandMoment.d.ts +3 -3
- package/dist/types/BrandMoment/index.d.ts +1 -1
- package/dist/types/ButtonGroup/ButtonGroup.d.ts +3 -3
- package/dist/types/ButtonGroup/index.d.ts +1 -1
- package/dist/types/Calendar/CalendarPopover/CalendarPopover.d.ts +2 -2
- package/dist/types/Calendar/CalendarPopover/index.d.ts +1 -1
- package/dist/types/Calendar/CalendarRange/CalendarRange.d.ts +2 -2
- package/dist/types/Calendar/CalendarRange/index.d.ts +1 -1
- package/dist/types/Calendar/CalendarSingle/CalendarSingle.d.ts +2 -2
- package/dist/types/Calendar/CalendarSingle/index.d.ts +1 -1
- package/dist/types/Calendar/LegacyCalendarRange/LegacyCalendarRange.d.ts +3 -3
- package/dist/types/Calendar/LegacyCalendarRange/index.d.ts +1 -1
- package/dist/types/Calendar/_docs/controls/defaultMonthControls.d.ts +1 -1
- package/dist/types/Calendar/_docs/controls/weekStartsOnControls.d.ts +1 -1
- package/dist/types/Calendar/baseCalendarClassNames.d.ts +1 -1
- package/dist/types/Calendar/index.d.ts +5 -5
- package/dist/types/Calendar/types.d.ts +3 -3
- package/dist/types/Calendar/utils/calculateDisabledDays.d.ts +2 -2
- package/dist/types/Calendar/utils/formatDateAsNumeral.d.ts +1 -1
- package/dist/types/Calendar/utils/formatDateAsText.d.ts +2 -2
- package/dist/types/Calendar/utils/index.d.ts +11 -11
- package/dist/types/Calendar/utils/isDisabledDate.d.ts +1 -1
- package/dist/types/Calendar/utils/isValidWeekStartsOn.d.ts +2 -2
- package/dist/types/Calendar/utils/parseDateAsTextOrNumeral.d.ts +1 -1
- package/dist/types/Calendar/utils/parseDateFromNumeralFormatValue.d.ts +1 -1
- package/dist/types/Calendar/utils/parseDateFromTextFormatValue.d.ts +1 -1
- package/dist/types/Calendar/utils/setFocusInCalendar.d.ts +2 -2
- package/dist/types/Card/Card.d.ts +5 -5
- package/dist/types/Card/index.d.ts +1 -1
- package/dist/types/Checkbox/Checkbox/Checkbox.d.ts +3 -3
- package/dist/types/Checkbox/Checkbox/index.d.ts +1 -1
- package/dist/types/Checkbox/CheckboxField/CheckboxField.d.ts +11 -11
- package/dist/types/Checkbox/CheckboxField/index.d.ts +1 -1
- package/dist/types/Checkbox/CheckboxGroup/CheckboxGroup.d.ts +1 -1
- package/dist/types/Checkbox/CheckboxGroup/index.d.ts +1 -1
- package/dist/types/Checkbox/index.d.ts +3 -3
- package/dist/types/ClearButton/ClearButton.d.ts +2 -2
- package/dist/types/ClearButton/index.d.ts +1 -1
- package/dist/types/Collapsible/Collapsible/Collapsible.d.ts +3 -3
- package/dist/types/Collapsible/Collapsible/index.d.ts +1 -1
- package/dist/types/Collapsible/CollapsibleGroup/CollapsibleGroup.d.ts +3 -3
- package/dist/types/Collapsible/CollapsibleGroup/index.d.ts +1 -1
- package/dist/types/Collapsible/ExpertAdviceCollapsible/ExpertAdviceCollapsible.d.ts +1 -1
- package/dist/types/Collapsible/ExpertAdviceCollapsible/index.d.ts +1 -1
- package/dist/types/Collapsible/index.d.ts +3 -3
- package/dist/types/Container/Container.d.ts +1 -1
- package/dist/types/Container/index.d.ts +1 -1
- package/dist/types/Content/Content.d.ts +2 -2
- package/dist/types/Content/index.d.ts +1 -1
- package/dist/types/DateInput/DateInput/DateInput.d.ts +2 -2
- package/dist/types/DateInput/DateInput/index.d.ts +1 -1
- package/dist/types/DateInput/DateInputDescription/DateInputDescription.d.ts +1 -1
- package/dist/types/DateInput/DateInputDescription/index.d.ts +1 -1
- package/dist/types/DateInput/DateInputDescription/utils/formatDescriptionInputFormat.d.ts +1 -1
- package/dist/types/DateInput/DateInputWithIconButton/DateInputWithIconButton.d.ts +3 -3
- package/dist/types/DateInput/DateInputWithIconButton/index.d.ts +1 -1
- package/dist/types/DateInput/index.d.ts +3 -3
- package/dist/types/DatePicker/DatePicker.d.ts +14 -14
- package/dist/types/DatePicker/_docs/controls/datePickerLocaleControls.d.ts +1 -1
- package/dist/types/DatePicker/_docs/controls/disabledDayMatchersControls.d.ts +1 -1
- package/dist/types/DatePicker/index.d.ts +2 -2
- package/dist/types/DatePicker/subcomponents/DateInputField/DateInputField.d.ts +3 -3
- package/dist/types/DatePicker/subcomponents/DateInputField/index.d.ts +1 -1
- package/dist/types/DatePicker/types.d.ts +1 -1
- package/dist/types/DatePicker/utils/getLocale.d.ts +1 -1
- package/dist/types/DatePicker/utils/validateDate.d.ts +1 -1
- package/dist/types/DateRangePicker/DateRangePicker.d.ts +4 -4
- package/dist/types/DateRangePicker/index.d.ts +2 -2
- package/dist/types/Divider/Divider.d.ts +2 -2
- package/dist/types/Divider/index.d.ts +1 -1
- package/dist/types/EmptyState/EmptyState.d.ts +5 -5
- package/dist/types/EmptyState/index.d.ts +1 -1
- package/dist/types/ErrorPage/ErrorPage.d.ts +2 -2
- package/dist/types/ErrorPage/hooks/index.d.ts +1 -1
- package/dist/types/ErrorPage/index.d.ts +1 -1
- package/dist/types/FieldGroup/FieldGroup.d.ts +1 -1
- package/dist/types/FieldGroup/index.d.ts +1 -1
- package/dist/types/FieldMessage/FieldMessage.d.ts +3 -3
- package/dist/types/FieldMessage/index.d.ts +1 -1
- package/dist/types/Filter/Filter/Filter.d.ts +2 -2
- package/dist/types/Filter/Filter/index.d.ts +3 -3
- package/dist/types/Filter/Filter/subcomponents/FilterContents/FilterContents.d.ts +1 -1
- package/dist/types/Filter/Filter/subcomponents/FilterContents/index.d.ts +1 -1
- package/dist/types/Filter/Filter/subcomponents/FilterPopover/FilterPopover.d.ts +2 -2
- package/dist/types/Filter/Filter/subcomponents/FilterPopover/index.d.ts +1 -1
- package/dist/types/Filter/FilterBar/FilterBar.d.ts +3 -3
- package/dist/types/Filter/FilterBar/context/FilterBarContext.d.ts +3 -3
- package/dist/types/Filter/FilterBar/context/reducer/filterBarStateReducer.d.ts +9 -9
- package/dist/types/Filter/FilterBar/context/reducer/setupFilterBarState.d.ts +2 -2
- package/dist/types/Filter/FilterBar/context/reducer/updateSingleFilter.d.ts +2 -2
- package/dist/types/Filter/FilterBar/context/reducer/updateValues.d.ts +2 -2
- package/dist/types/Filter/FilterBar/context/types.d.ts +2 -2
- package/dist/types/Filter/FilterBar/context/utils/checkShouldUpdateValues.d.ts +2 -2
- package/dist/types/Filter/FilterBar/context/utils/createFiltersHash.d.ts +1 -1
- package/dist/types/Filter/FilterBar/context/utils/getInactiveFilters.d.ts +3 -3
- package/dist/types/Filter/FilterBar/context/utils/getIsUsableWhenArgs.d.ts +2 -2
- package/dist/types/Filter/FilterBar/context/utils/getMappedFilters.d.ts +2 -2
- package/dist/types/Filter/FilterBar/context/utils/updateDependentFilters.d.ts +2 -2
- package/dist/types/Filter/FilterBar/index.d.ts +4 -4
- package/dist/types/Filter/FilterBar/subcomponents/AddFiltersMenu/index.d.ts +1 -1
- package/dist/types/Filter/FilterBar/subcomponents/ClearAllButton/index.d.ts +1 -1
- package/dist/types/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.d.ts +1 -1
- package/dist/types/Filter/FilterBar/subcomponents/FilterBarButton/index.d.ts +1 -1
- package/dist/types/Filter/FilterBar/subcomponents/FilterBarDatePicker/FilterBarDatePicker.d.ts +3 -3
- package/dist/types/Filter/FilterBar/subcomponents/FilterBarDatePicker/index.d.ts +1 -1
- package/dist/types/Filter/FilterBar/subcomponents/FilterBarDateRangePicker/FilterBarDateRangePicker.d.ts +3 -3
- package/dist/types/Filter/FilterBar/subcomponents/FilterBarDateRangePicker/index.d.ts +1 -1
- package/dist/types/Filter/FilterBar/subcomponents/FilterBarMultiSelect/FilterBarMultiSelect.d.ts +4 -4
- package/dist/types/Filter/FilterBar/subcomponents/FilterBarMultiSelect/index.d.ts +1 -1
- package/dist/types/Filter/FilterBar/subcomponents/FilterBarSelect/FilterBarSelect.d.ts +1 -1
- package/dist/types/Filter/FilterBar/subcomponents/FilterBarSelect/index.d.ts +1 -1
- package/dist/types/Filter/FilterBar/subcomponents/index.d.ts +4 -4
- package/dist/types/Filter/FilterBar/types.d.ts +1 -1
- package/dist/types/Filter/FilterButton/FilterButton/FilterButton.d.ts +4 -4
- package/dist/types/Filter/FilterButton/FilterButton/index.d.ts +1 -1
- package/dist/types/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.d.ts +5 -5
- package/dist/types/Filter/FilterButton/FilterButtonRemovable/index.d.ts +1 -1
- package/dist/types/Filter/FilterButton/index.d.ts +2 -2
- package/dist/types/Filter/FilterButton/subcomponents/FilterButtonBase/FilterButtonBase.d.ts +1 -1
- package/dist/types/Filter/FilterButton/subcomponents/FilterButtonBase/index.d.ts +1 -1
- package/dist/types/Filter/FilterDatePicker/FilterDatePicker.d.ts +6 -6
- package/dist/types/Filter/FilterDatePicker/_docs/controls/disabledDaysControls.d.ts +1 -1
- package/dist/types/Filter/FilterDatePicker/_docs/controls/validationControls.d.ts +1 -1
- package/dist/types/Filter/FilterDatePicker/hooks/useDateInputHandlers.d.ts +9 -9
- package/dist/types/Filter/FilterDatePicker/hooks/useDateValidation.d.ts +2 -2
- package/dist/types/Filter/FilterDatePicker/index.d.ts +6 -6
- package/dist/types/Filter/FilterDatePicker/subcomponents/DateInputField/DateInputField.d.ts +6 -6
- package/dist/types/Filter/FilterDatePicker/subcomponents/DateInputField/index.d.ts +1 -1
- package/dist/types/Filter/FilterDatePicker/subcomponents/FilterDatePickerField/FilterDatePickerField.d.ts +7 -7
- package/dist/types/Filter/FilterDatePicker/subcomponents/FilterDatePickerField/filterDatePickerFieldReducer.d.ts +3 -3
- package/dist/types/Filter/FilterDatePicker/subcomponents/FilterDatePickerField/index.d.ts +1 -1
- package/dist/types/Filter/FilterDatePicker/types.d.ts +1 -1
- package/dist/types/Filter/FilterDatePicker/utils/getDateValidationHandler.d.ts +3 -3
- package/dist/types/Filter/FilterDatePicker/utils/transformDateToInputValue.d.ts +1 -1
- package/dist/types/Filter/FilterDatePicker/utils/validateDate.d.ts +1 -1
- package/dist/types/Filter/FilterDateRangePicker/FilterDateRangePicker.d.ts +5 -5
- package/dist/types/Filter/FilterDateRangePicker/_docs/controls/disabledDaysControls.d.ts +1 -1
- package/dist/types/Filter/FilterDateRangePicker/_docs/controls/validationControls.d.ts +1 -1
- package/dist/types/Filter/FilterDateRangePicker/index.d.ts +2 -2
- package/dist/types/Filter/FilterDateRangePicker/subcomponents/DateRangeDisplayLabel/DateRangeDisplayLabel.d.ts +1 -1
- package/dist/types/Filter/FilterDateRangePicker/subcomponents/DateRangeDisplayLabel/index.d.ts +1 -1
- package/dist/types/Filter/FilterDateRangePicker/subcomponents/DateRangeInputField/DateRangeInputField.d.ts +7 -7
- package/dist/types/Filter/FilterDateRangePicker/subcomponents/DateRangeInputField/index.d.ts +1 -1
- package/dist/types/Filter/FilterDateRangePicker/subcomponents/DateRangeValidationMessage/DateRangeValidationMessage.d.ts +1 -1
- package/dist/types/Filter/FilterDateRangePicker/subcomponents/DateRangeValidationMessage/index.d.ts +1 -1
- package/dist/types/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/FilterDateRangePickerField.d.ts +8 -8
- package/dist/types/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/filterDateRangePickerFieldReducer.d.ts +5 -5
- package/dist/types/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/hooks/useEndDateValidation.d.ts +1 -1
- package/dist/types/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/index.d.ts +1 -1
- package/dist/types/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/utils/validateEndDateBeforeStartDate.d.ts +1 -1
- package/dist/types/Filter/FilterMultiSelect/FilterMultiSelect.d.ts +7 -7
- package/dist/types/Filter/FilterMultiSelect/_docs/MockData.d.ts +1 -1
- package/dist/types/Filter/FilterMultiSelect/context/MenuTriggerProvider/MenuTriggerProvider.d.ts +4 -4
- package/dist/types/Filter/FilterMultiSelect/context/MenuTriggerProvider/index.d.ts +1 -1
- package/dist/types/Filter/FilterMultiSelect/context/SelectionProvider/SelectionProvider.d.ts +4 -4
- package/dist/types/Filter/FilterMultiSelect/context/SelectionProvider/index.d.ts +1 -1
- package/dist/types/Filter/FilterMultiSelect/context/index.d.ts +2 -2
- package/dist/types/Filter/FilterMultiSelect/index.d.ts +5 -5
- package/dist/types/Filter/FilterMultiSelect/subcomponents/ListBox/ListBox.d.ts +2 -2
- package/dist/types/Filter/FilterMultiSelect/subcomponents/ListBox/index.d.ts +1 -1
- package/dist/types/Filter/FilterMultiSelect/subcomponents/ListBoxSection/ListBoxSection.d.ts +2 -2
- package/dist/types/Filter/FilterMultiSelect/subcomponents/ListBoxSection/index.d.ts +1 -1
- package/dist/types/Filter/FilterMultiSelect/subcomponents/LoadMoreButton/index.d.ts +1 -1
- package/dist/types/Filter/FilterMultiSelect/subcomponents/MenuLayout/MenuFooter/MenuFooter.d.ts +1 -1
- package/dist/types/Filter/FilterMultiSelect/subcomponents/MenuLayout/MenuFooter/index.d.ts +1 -1
- package/dist/types/Filter/FilterMultiSelect/subcomponents/MenuLayout/MenuLoadingSkeleton/index.d.ts +1 -1
- package/dist/types/Filter/FilterMultiSelect/subcomponents/MenuLayout/index.d.ts +2 -2
- package/dist/types/Filter/FilterMultiSelect/subcomponents/MenuPopup/MenuPopup.d.ts +1 -1
- package/dist/types/Filter/FilterMultiSelect/subcomponents/MenuPopup/index.d.ts +1 -1
- package/dist/types/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.d.ts +1 -1
- package/dist/types/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/index.d.ts +1 -1
- package/dist/types/Filter/FilterMultiSelect/subcomponents/NoResults/NoResults.d.ts +1 -1
- package/dist/types/Filter/FilterMultiSelect/subcomponents/NoResults/index.d.ts +1 -1
- package/dist/types/Filter/FilterMultiSelect/subcomponents/SearchInput/SearchInput.d.ts +1 -1
- package/dist/types/Filter/FilterMultiSelect/subcomponents/SearchInput/index.d.ts +1 -1
- package/dist/types/Filter/FilterMultiSelect/subcomponents/SectionDivider/index.d.ts +1 -1
- package/dist/types/Filter/FilterMultiSelect/subcomponents/SelectionControlButton/ClearButton/index.d.ts +1 -1
- package/dist/types/Filter/FilterMultiSelect/subcomponents/SelectionControlButton/SelectAllButton/index.d.ts +1 -1
- package/dist/types/Filter/FilterMultiSelect/subcomponents/SelectionControlButton/index.d.ts +2 -2
- package/dist/types/Filter/FilterMultiSelect/subcomponents/Trigger/FilterTriggerButton/index.d.ts +1 -1
- package/dist/types/Filter/FilterMultiSelect/subcomponents/Trigger/RemovableFilterTrigger/RemovableFilterTrigger.d.ts +1 -1
- package/dist/types/Filter/FilterMultiSelect/subcomponents/Trigger/RemovableFilterTrigger/index.d.ts +1 -1
- package/dist/types/Filter/FilterMultiSelect/subcomponents/Trigger/index.d.ts +2 -2
- package/dist/types/Filter/FilterMultiSelect/subcomponents/index.d.ts +8 -8
- package/dist/types/Filter/FilterMultiSelect/types.d.ts +1 -1
- package/dist/types/Filter/FilterMultiSelect/utils/getSelectedOptionKeys.d.ts +2 -2
- package/dist/types/Filter/FilterMultiSelect/utils/getSelectedOptionLabels.d.ts +2 -2
- package/dist/types/Filter/FilterMultiSelect/utils/index.d.ts +3 -3
- package/dist/types/Filter/FilterSelect/FilterSelect.d.ts +5 -5
- package/dist/types/Filter/FilterSelect/_docs/mockData.d.ts +1 -1
- package/dist/types/Filter/FilterSelect/index.d.ts +2 -2
- package/dist/types/Filter/_docs/controls/renderTriggerControls.d.ts +1 -1
- package/dist/types/Filter/index.d.ts +7 -7
- package/dist/types/GuidanceBlock/GuidanceBlock.d.ts +10 -10
- package/dist/types/GuidanceBlock/index.d.ts +1 -1
- package/dist/types/Heading/Heading.d.ts +4 -4
- package/dist/types/Heading/index.d.ts +1 -1
- package/dist/types/Icon/index.d.ts +243 -243
- package/dist/types/Icon/subcomponents/SVG/SVG.d.ts +5 -5
- package/dist/types/Icon/subcomponents/SVG/index.d.ts +1 -1
- package/dist/types/Icon/types.d.ts +1 -1
- package/dist/types/Illustration/Scene/BrandMomentCaptureIntro/index.d.ts +1 -1
- package/dist/types/Illustration/Scene/Scene.d.ts +5 -5
- package/dist/types/Illustration/Scene/index.d.ts +2 -2
- package/dist/types/Illustration/Spot/Spot.d.ts +2 -2
- package/dist/types/Illustration/Spot/index.d.ts +1 -1
- package/dist/types/Illustration/index.d.ts +2 -2
- package/dist/types/Illustration/subcomponents/Base/Base.d.ts +2 -2
- package/dist/types/Illustration/subcomponents/Base/index.d.ts +1 -1
- package/dist/types/Illustration/subcomponents/VideoPlayer/VideoPlayer.d.ts +1 -1
- package/dist/types/Illustration/subcomponents/VideoPlayer/index.d.ts +1 -1
- package/dist/types/Illustration/utils/usePausePlay.d.ts +1 -1
- package/dist/types/Input/Input/Input.d.ts +2 -2
- package/dist/types/Input/Input/index.d.ts +2 -2
- package/dist/types/Input/InputRange/InputRange.d.ts +1 -1
- package/dist/types/Input/InputRange/index.d.ts +1 -1
- package/dist/types/Input/InputSearch/InputSearch.d.ts +2 -2
- package/dist/types/Input/InputSearch/index.d.ts +1 -1
- package/dist/types/Input/index.d.ts +3 -3
- package/dist/types/KaizenProvider/KaizenProvider.d.ts +2 -2
- package/dist/types/KaizenProvider/index.d.ts +1 -1
- package/dist/types/KaizenProvider/subcomponents/FontDefinitions/index.d.ts +1 -1
- package/dist/types/KaizenProvider/subcomponents/OptionalIntlProvider/OptionalIntlProvider.d.ts +2 -2
- package/dist/types/KaizenProvider/subcomponents/OptionalIntlProvider/index.d.ts +1 -1
- package/dist/types/Label/Label.d.ts +4 -4
- package/dist/types/Label/index.d.ts +1 -1
- package/dist/types/LabelledMessage/LabelledMessage.d.ts +1 -1
- package/dist/types/LabelledMessage/index.d.ts +1 -1
- package/dist/types/LikertScaleLegacy/LikertScaleLegacy.d.ts +11 -11
- package/dist/types/LikertScaleLegacy/index.d.ts +2 -2
- package/dist/types/LikertScaleLegacy/types.d.ts +1 -1
- package/dist/types/LikertScaleLegacy/utils/determineSelectionFromKeyPress.d.ts +1 -1
- package/dist/types/Loading/LoadingGraphic/LoadingGraphic.d.ts +2 -2
- package/dist/types/Loading/LoadingGraphic/index.d.ts +1 -1
- package/dist/types/Loading/LoadingHeading/LoadingHeading.d.ts +1 -1
- package/dist/types/Loading/LoadingHeading/index.d.ts +1 -1
- package/dist/types/Loading/LoadingInput/LoadingInput.d.ts +1 -1
- package/dist/types/Loading/LoadingInput/index.d.ts +1 -1
- package/dist/types/Loading/LoadingParagraph/LoadingParagraph.d.ts +1 -1
- package/dist/types/Loading/LoadingParagraph/index.d.ts +1 -1
- package/dist/types/Loading/LoadingSpinner/LoadingSpinner.d.ts +3 -3
- package/dist/types/Loading/LoadingSpinner/index.d.ts +1 -1
- package/dist/types/Loading/LoadingSpinner/subcomponents/SpinnerIcon.d.ts +1 -1
- package/dist/types/Loading/LoadingSpinner/subcomponents/index.d.ts +1 -1
- package/dist/types/Loading/index.d.ts +5 -5
- package/dist/types/Modal/ConfirmationModal/ConfirmationModal.d.ts +3 -3
- package/dist/types/Modal/ConfirmationModal/index.d.ts +1 -1
- package/dist/types/Modal/ContextModal/ContextModal.d.ts +2 -2
- package/dist/types/Modal/ContextModal/index.d.ts +1 -1
- package/dist/types/Modal/GenericModal/GenericModal.d.ts +1 -1
- package/dist/types/Modal/GenericModal/index.d.ts +7 -7
- package/dist/types/Modal/GenericModal/subcomponents/ModalAccessibleDescription/ModalAccessibleDescription.d.ts +1 -1
- package/dist/types/Modal/GenericModal/subcomponents/ModalAccessibleDescription/index.d.ts +1 -1
- package/dist/types/Modal/GenericModal/subcomponents/ModalAccessibleLabel/ModalAccessibleLabel.d.ts +1 -1
- package/dist/types/Modal/GenericModal/subcomponents/ModalAccessibleLabel/index.d.ts +1 -1
- package/dist/types/Modal/GenericModal/subcomponents/ModalBody/ModalBody.d.ts +2 -2
- package/dist/types/Modal/GenericModal/subcomponents/ModalBody/index.d.ts +1 -1
- package/dist/types/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.d.ts +3 -3
- package/dist/types/Modal/GenericModal/subcomponents/ModalFooter/index.d.ts +1 -1
- package/dist/types/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.d.ts +2 -2
- package/dist/types/Modal/GenericModal/subcomponents/ModalHeader/index.d.ts +1 -1
- package/dist/types/Modal/InputEditModal/InputEditModal.d.ts +4 -4
- package/dist/types/Modal/InputEditModal/index.d.ts +1 -1
- package/dist/types/Modal/_docs/controls.d.ts +1 -1
- package/dist/types/Modal/index.d.ts +4 -4
- package/dist/types/MultiSelect/MultiSelect.d.ts +7 -7
- package/dist/types/MultiSelect/index.d.ts +1 -1
- package/dist/types/MultiSelect/subcomponents/Checkbox/Checkbox.d.ts +4 -4
- package/dist/types/MultiSelect/subcomponents/Checkbox/index.d.ts +1 -1
- package/dist/types/MultiSelect/subcomponents/MultiSelectOptionField/MultiSelectOptionField.d.ts +6 -6
- package/dist/types/MultiSelect/subcomponents/MultiSelectOptionField/index.d.ts +1 -1
- package/dist/types/MultiSelect/subcomponents/MultiSelectOptions/MultiSelectOptions.d.ts +5 -5
- package/dist/types/MultiSelect/subcomponents/MultiSelectOptions/index.d.ts +1 -1
- package/dist/types/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.d.ts +6 -6
- package/dist/types/MultiSelect/subcomponents/MultiSelectToggle/index.d.ts +1 -1
- package/dist/types/MultiSelect/subcomponents/Popover/Popover.d.ts +6 -6
- package/dist/types/MultiSelect/subcomponents/Popover/index.d.ts +2 -2
- package/dist/types/MultiSelect/types.d.ts +1 -1
- package/dist/types/Notification/GlobalNotification/GlobalNotification.d.ts +2 -2
- package/dist/types/Notification/GlobalNotification/index.d.ts +1 -1
- package/dist/types/Notification/InlineNotification/InlineNotification.d.ts +3 -3
- package/dist/types/Notification/InlineNotification/index.d.ts +1 -1
- package/dist/types/Notification/ToastNotification/ToastNotification/ToastNotification.d.ts +3 -3
- package/dist/types/Notification/ToastNotification/ToastNotification/index.d.ts +1 -1
- package/dist/types/Notification/ToastNotification/ToastNotificationsList/index.d.ts +1 -1
- package/dist/types/Notification/ToastNotification/ToastNotificationsList/subcomponents/ToastNotificationsMap/ToastNotificationsMap.d.ts +2 -2
- package/dist/types/Notification/ToastNotification/ToastNotificationsList/subcomponents/ToastNotificationsMap/index.d.ts +1 -1
- package/dist/types/Notification/ToastNotification/context/ToastNotificationContext.d.ts +3 -3
- package/dist/types/Notification/ToastNotification/hooks/useToastNotification.d.ts +1 -1
- package/dist/types/Notification/ToastNotification/index.d.ts +4 -4
- package/dist/types/Notification/ToastNotification/types.d.ts +1 -1
- package/dist/types/Notification/index.d.ts +3 -3
- package/dist/types/Notification/subcomponents/CancelButton/CancelButton.d.ts +1 -1
- package/dist/types/Notification/subcomponents/CancelButton/index.d.ts +1 -1
- package/dist/types/Notification/subcomponents/GenericNotification/GenericNotification.d.ts +3 -3
- package/dist/types/Notification/subcomponents/GenericNotification/index.d.ts +1 -1
- package/dist/types/Notification/subcomponents/NotificationHeading/NotificationHeading.d.ts +1 -1
- package/dist/types/Notification/subcomponents/NotificationHeading/index.d.ts +1 -1
- package/dist/types/Notification/subcomponents/NotificationIcon/NotificationIcon.d.ts +2 -2
- package/dist/types/Notification/subcomponents/NotificationIcon/index.d.ts +1 -1
- package/dist/types/Notification/types.d.ts +2 -2
- package/dist/types/Pagination/Pagination.d.ts +1 -1
- package/dist/types/Pagination/index.d.ts +3 -3
- package/dist/types/Pagination/subcomponents/DirectionalLink/DirectionalLink.d.ts +1 -1
- package/dist/types/Pagination/subcomponents/DirectionalLink/index.d.ts +1 -1
- package/dist/types/Pagination/subcomponents/PaginationLink/PaginationLink.d.ts +3 -3
- package/dist/types/Pagination/subcomponents/PaginationLink/index.d.ts +1 -1
- package/dist/types/Pagination/subcomponents/TruncateIndicator/index.d.ts +1 -1
- package/dist/types/Popover/Popover.d.ts +3 -3
- package/dist/types/Popover/index.d.ts +1 -1
- package/dist/types/Popover/types.d.ts +2 -2
- package/dist/types/Popover/utils/classMappers.d.ts +1 -1
- package/dist/types/ProgressBar/ProgressBar.d.ts +4 -4
- package/dist/types/ProgressBar/index.d.ts +1 -1
- package/dist/types/ProgressBar/subcomponents/Label/Label.d.ts +1 -1
- package/dist/types/ProgressBar/subcomponents/Label/index.d.ts +1 -1
- package/dist/types/ProgressBar/utils/calculatePercentage.d.ts +1 -1
- package/dist/types/Radio/Radio/Radio.d.ts +2 -2
- package/dist/types/Radio/Radio/index.d.ts +1 -1
- package/dist/types/Radio/RadioField/RadioField.d.ts +10 -10
- package/dist/types/Radio/RadioField/index.d.ts +1 -1
- package/dist/types/Radio/RadioGroup/RadioGroup.d.ts +8 -8
- package/dist/types/Radio/RadioGroup/index.d.ts +1 -1
- package/dist/types/Radio/index.d.ts +3 -3
- package/dist/types/RichTextEditor/EditableRichTextContent/EditableRichTextContent.d.ts +5 -5
- package/dist/types/RichTextEditor/EditableRichTextContent/index.d.ts +1 -1
- package/dist/types/RichTextEditor/RichTextContent/RichTextContent.d.ts +3 -3
- package/dist/types/RichTextEditor/RichTextContent/index.d.ts +1 -1
- package/dist/types/RichTextEditor/RichTextEditor/RichTextEditor.d.ts +9 -9
- package/dist/types/RichTextEditor/RichTextEditor/index.d.ts +4 -4
- package/dist/types/RichTextEditor/RichTextEditor/schema.d.ts +2 -2
- package/dist/types/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/ToggleIconButton.d.ts +2 -2
- package/dist/types/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/index.d.ts +1 -1
- package/dist/types/RichTextEditor/RichTextEditor/subcomponents/Toolbar/Toolbar.d.ts +4 -4
- package/dist/types/RichTextEditor/RichTextEditor/subcomponents/Toolbar/index.d.ts +1 -1
- package/dist/types/RichTextEditor/RichTextEditor/subcomponents/ToolbarSection/ToolbarSection.d.ts +1 -1
- package/dist/types/RichTextEditor/RichTextEditor/subcomponents/ToolbarSection/index.d.ts +1 -1
- package/dist/types/RichTextEditor/RichTextEditor/utils/controlmap.d.ts +2 -2
- package/dist/types/RichTextEditor/RichTextEditor/utils/inputrules.d.ts +1 -1
- package/dist/types/RichTextEditor/RichTextEditor/utils/keymap.d.ts +2 -4
- package/dist/types/RichTextEditor/constants.d.ts +1 -1
- package/dist/types/RichTextEditor/index.d.ts +9 -9
- package/dist/types/RichTextEditor/types.d.ts +2 -4
- package/dist/types/RichTextEditor/utils/commands/addMark.d.ts +1 -1
- package/dist/types/RichTextEditor/utils/commands/fixtures/helpers.d.ts +2 -2
- package/dist/types/RichTextEditor/utils/commands/fixtures/test-state.d.ts +49 -4
- package/dist/types/RichTextEditor/utils/commands/getMarkAttrs.d.ts +2 -2
- package/dist/types/RichTextEditor/utils/commands/getMarkRange.d.ts +2 -2
- package/dist/types/RichTextEditor/utils/commands/index.d.ts +9 -9
- package/dist/types/RichTextEditor/utils/commands/listIsActive.d.ts +3 -3
- package/dist/types/RichTextEditor/utils/commands/markContainsSelection.d.ts +2 -2
- package/dist/types/RichTextEditor/utils/commands/markIsActive.d.ts +2 -2
- package/dist/types/RichTextEditor/utils/commands/removeMark.d.ts +1 -1
- package/dist/types/RichTextEditor/utils/commands/updateMark.d.ts +1 -1
- package/dist/types/RichTextEditor/utils/commands/validateAndRemoveMarks.d.ts +3 -5
- package/dist/types/RichTextEditor/utils/core/createRichTextEditor.d.ts +3 -5
- package/dist/types/RichTextEditor/utils/core/fixtures/testState.d.ts +1 -1
- package/dist/types/RichTextEditor/utils/core/hooks/useRichTextEditor.d.ts +2 -2
- package/dist/types/RichTextEditor/utils/core/index.d.ts +5 -5
- package/dist/types/RichTextEditor/utils/core/inputrules.d.ts +2 -2
- package/dist/types/RichTextEditor/utils/core/state.d.ts +3 -3
- package/dist/types/RichTextEditor/utils/core/types.d.ts +3 -3
- package/dist/types/RichTextEditor/utils/plugins/LinkManager/LinkManager.d.ts +5 -5
- package/dist/types/RichTextEditor/utils/plugins/LinkManager/components/LinkEditor/LinkEditor.d.ts +2 -4
- package/dist/types/RichTextEditor/utils/plugins/LinkManager/components/LinkEditor/index.d.ts +1 -1
- package/dist/types/RichTextEditor/utils/plugins/LinkManager/components/LinkModal/index.d.ts +1 -1
- package/dist/types/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/LinkPopover.d.ts +1 -1
- package/dist/types/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/Positioner.d.ts +2 -2
- package/dist/types/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/index.d.ts +1 -1
- package/dist/types/RichTextEditor/utils/plugins/LinkManager/components/index.d.ts +3 -3
- package/dist/types/RichTextEditor/utils/plugins/LinkManager/createReactTooltipWrapper.d.ts +2 -2
- package/dist/types/RichTextEditor/utils/plugins/LinkManager/index.d.ts +2 -2
- package/dist/types/RichTextEditor/utils/plugins/LinkManager/types.d.ts +2 -2
- package/dist/types/RichTextEditor/utils/plugins/LinkManager/validation.d.ts +2 -2
- package/dist/types/RichTextEditor/utils/plugins/index.d.ts +1 -1
- package/dist/types/RichTextEditor/utils/prosemirror/index.d.ts +7 -7
- package/dist/types/RichTextEditor/utils/schema/index.d.ts +2 -2
- package/dist/types/RichTextEditor/utils/schema/marks.d.ts +1 -1
- package/dist/types/RichTextEditor/utils/schema/nodes.d.ts +1 -1
- package/dist/types/SearchField/SearchField.d.ts +1 -1
- package/dist/types/SearchField/index.d.ts +1 -1
- package/dist/types/Select/Select.d.ts +5 -5
- package/dist/types/Select/index.d.ts +2 -2
- package/dist/types/Skirt/Skirt.d.ts +2 -2
- package/dist/types/Skirt/index.d.ts +2 -2
- package/dist/types/Skirt/subcomponents/SkirtCard/index.d.ts +1 -1
- package/dist/types/Slider/Slider.d.ts +4 -4
- package/dist/types/Slider/index.d.ts +1 -1
- package/dist/types/SplitButton/SplitButton.d.ts +4 -4
- package/dist/types/SplitButton/index.d.ts +1 -1
- package/dist/types/SplitButton/subcomponents/ActionButton/ActionButton.d.ts +2 -2
- package/dist/types/SplitButton/subcomponents/ActionButton/index.d.ts +1 -1
- package/dist/types/SplitButton/subcomponents/BaseButton/BaseButton.d.ts +1 -1
- package/dist/types/SplitButton/subcomponents/BaseButton/index.d.ts +1 -1
- package/dist/types/SplitButton/subcomponents/DropdownButton/DropdownButton.d.ts +2 -2
- package/dist/types/SplitButton/subcomponents/DropdownButton/index.d.ts +1 -1
- package/dist/types/Table/Table.d.ts +7 -7
- package/dist/types/Table/index.d.ts +1 -1
- package/dist/types/Tabs/Tabs.d.ts +2 -2
- package/dist/types/Tabs/index.d.ts +2 -2
- package/dist/types/Tabs/subcomponents/Tab.d.ts +2 -2
- package/dist/types/Tabs/subcomponents/TabList.d.ts +4 -4
- package/dist/types/Tabs/subcomponents/TabPanel.d.ts +1 -1
- package/dist/types/Tabs/subcomponents/TabPanels.d.ts +1 -1
- package/dist/types/Tabs/subcomponents/index.d.ts +4 -4
- package/dist/types/Tag/Tag.d.ts +5 -5
- package/dist/types/Tag/index.d.ts +1 -1
- package/dist/types/Text/Text.d.ts +4 -4
- package/dist/types/Text/index.d.ts +1 -1
- package/dist/types/TextArea/TextArea.d.ts +2 -2
- package/dist/types/TextArea/index.d.ts +1 -1
- package/dist/types/TextAreaField/TextAreaField.d.ts +2 -2
- package/dist/types/TextAreaField/index.d.ts +1 -1
- package/dist/types/TextField/TextField.d.ts +2 -2
- package/dist/types/TextField/index.d.ts +1 -1
- package/dist/types/Tile/InformationTile/InformationTile.d.ts +1 -1
- package/dist/types/Tile/InformationTile/index.d.ts +1 -1
- package/dist/types/Tile/MultiActionTile/MultiActionTile.d.ts +2 -2
- package/dist/types/Tile/MultiActionTile/index.d.ts +1 -1
- package/dist/types/Tile/TileGrid/TileGrid.d.ts +3 -3
- package/dist/types/Tile/TileGrid/index.d.ts +1 -1
- package/dist/types/Tile/index.d.ts +3 -3
- package/dist/types/Tile/subcomponents/GenericTile/GenericTile.d.ts +4 -4
- package/dist/types/Tile/subcomponents/GenericTile/index.d.ts +1 -1
- package/dist/types/TimeField/TimeField.d.ts +4 -4
- package/dist/types/TimeField/index.d.ts +1 -1
- package/dist/types/TimeField/subcomponents/TimeSegment/TimeSegment.d.ts +2 -2
- package/dist/types/TimeField/subcomponents/TimeSegment/index.d.ts +1 -1
- package/dist/types/TimeField/subcomponents/TimeSegment/utils/generateSegmentDisplayText.d.ts +1 -1
- package/dist/types/TimeField/types.d.ts +2 -2
- package/dist/types/TitleBlockZen/TitleBlockZen.d.ts +1 -1
- package/dist/types/TitleBlockZen/index.d.ts +4 -4
- package/dist/types/TitleBlockZen/subcomponents/MainActions.d.ts +1 -1
- package/dist/types/TitleBlockZen/subcomponents/MobileActions.d.ts +2 -2
- package/dist/types/TitleBlockZen/subcomponents/NavigationTabs.d.ts +3 -3
- package/dist/types/TitleBlockZen/subcomponents/SecondaryActions.d.ts +1 -1
- package/dist/types/TitleBlockZen/subcomponents/TitleBlockMenuItem.d.ts +1 -1
- package/dist/types/TitleBlockZen/subcomponents/Toolbar.d.ts +4 -4
- package/dist/types/TitleBlockZen/types.d.ts +11 -11
- package/dist/types/TitleBlockZen/utils.d.ts +1 -1
- package/dist/types/ToggleSwitch/ToggleSwitch/ToggleSwitch.d.ts +3 -3
- package/dist/types/ToggleSwitch/ToggleSwitch/index.d.ts +1 -1
- package/dist/types/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.d.ts +3 -3
- package/dist/types/ToggleSwitch/ToggleSwitchField/index.d.ts +1 -1
- package/dist/types/ToggleSwitch/index.d.ts +2 -2
- package/dist/types/VisuallyHidden/VisuallyHidden.d.ts +1 -1
- package/dist/types/VisuallyHidden/index.d.ts +1 -1
- package/dist/types/Well/Well.d.ts +2 -2
- package/dist/types/Well/index.d.ts +1 -1
- package/dist/types/Workflow/Workflow.d.ts +3 -3
- package/dist/types/Workflow/_docs/controls/controls.d.ts +1 -1
- package/dist/types/Workflow/_docs/controls/index.d.ts +1 -1
- package/dist/types/Workflow/index.d.ts +1 -1
- package/dist/types/Workflow/subcomponents/Footer/Footer.d.ts +2 -2
- package/dist/types/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.d.ts +3 -3
- package/dist/types/Workflow/subcomponents/Footer/components/FooterActions/index.d.ts +1 -1
- package/dist/types/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.d.ts +1 -1
- package/dist/types/Workflow/subcomponents/Footer/components/ProgressStepper/index.d.ts +1 -1
- package/dist/types/Workflow/subcomponents/Footer/components/Root/Root.d.ts +1 -1
- package/dist/types/Workflow/subcomponents/Footer/components/Root/index.d.ts +1 -1
- package/dist/types/Workflow/subcomponents/Footer/components/index.d.ts +3 -3
- package/dist/types/Workflow/subcomponents/Footer/index.d.ts +2 -2
- package/dist/types/Workflow/subcomponents/Header/Header.d.ts +1 -1
- package/dist/types/Workflow/subcomponents/Header/components/Actions/Actions.d.ts +2 -2
- package/dist/types/Workflow/subcomponents/Header/components/Actions/index.d.ts +1 -1
- package/dist/types/Workflow/subcomponents/Header/components/Branding/Branding.d.ts +2 -2
- package/dist/types/Workflow/subcomponents/Header/components/Branding/index.d.ts +1 -1
- package/dist/types/Workflow/subcomponents/Header/components/Root/Root.d.ts +1 -1
- package/dist/types/Workflow/subcomponents/Header/components/Root/index.d.ts +1 -1
- package/dist/types/Workflow/subcomponents/Header/components/Titles/Titles.d.ts +1 -1
- package/dist/types/Workflow/subcomponents/Header/components/Titles/index.d.ts +1 -1
- package/dist/types/Workflow/subcomponents/Header/components/index.d.ts +4 -4
- package/dist/types/Workflow/subcomponents/Header/index.d.ts +2 -2
- package/dist/types/Workflow/subcomponents/Main/Main.d.ts +1 -1
- package/dist/types/Workflow/subcomponents/Main/index.d.ts +1 -1
- package/dist/types/Workflow/subcomponents/Wrapper/Wrapper.d.ts +1 -1
- package/dist/types/Workflow/subcomponents/Wrapper/index.d.ts +1 -1
- package/dist/types/Workflow/subcomponents/index.d.ts +4 -4
- package/dist/types/__actions__/Button/v1/Button/Button.d.ts +2 -2
- package/dist/types/__actions__/Button/v1/Button/index.d.ts +1 -1
- package/dist/types/__actions__/Button/v1/GenericButton/GenericButton.d.ts +24 -24
- package/dist/types/__actions__/Button/v1/GenericButton/index.d.ts +1 -1
- package/dist/types/__actions__/Button/v1/IconButton/IconButton.d.ts +3 -3
- package/dist/types/__actions__/Button/v1/IconButton/index.d.ts +1 -1
- package/dist/types/__actions__/Button/v1/index.d.ts +3 -3
- package/dist/types/__actions__/Button/v2/Button/index.d.ts +1 -1
- package/dist/types/__actions__/Button/v2/GenericButton/index.d.ts +1 -1
- package/dist/types/__actions__/Button/v2/IconButton/index.d.ts +1 -1
- package/dist/types/__actions__/Button/v2/index.d.ts +3 -3
- package/dist/types/__actions__/Button/v3/Button.d.ts +6 -6
- package/dist/types/__actions__/Button/v3/index.d.ts +2 -2
- package/dist/types/__actions__/Button/v3/subcomponents/ButtonContent/ButtonContent.d.ts +6 -6
- package/dist/types/__actions__/Button/v3/subcomponents/ButtonContent/index.d.ts +1 -1
- package/dist/types/__actions__/Button/v3/subcomponents/PendingContent/PendingContent.d.ts +1 -1
- package/dist/types/__actions__/Button/v3/subcomponents/PendingContent/index.d.ts +1 -1
- package/dist/types/__actions__/Button/v3/subcomponents/index.d.ts +2 -2
- package/dist/types/__actions__/Button/v3/types.d.ts +2 -2
- package/dist/types/__actions__/Menu/v1/Menu.d.ts +5 -5
- package/dist/types/__actions__/Menu/v1/_docs/MenuContentExample.d.ts +1 -1
- package/dist/types/__actions__/Menu/v1/_docs/examples.d.ts +1 -1
- package/dist/types/__actions__/Menu/v1/index.d.ts +5 -5
- package/dist/types/__actions__/Menu/v1/subcomponents/MenuDropdown/MenuDropdown.d.ts +4 -4
- package/dist/types/__actions__/Menu/v1/subcomponents/MenuDropdown/index.d.ts +1 -1
- package/dist/types/__actions__/Menu/v1/subcomponents/MenuHeading/MenuHeading.d.ts +1 -1
- package/dist/types/__actions__/Menu/v1/subcomponents/MenuHeading/index.d.ts +1 -1
- package/dist/types/__actions__/Menu/v1/subcomponents/MenuItem/MenuItem.d.ts +12 -12
- package/dist/types/__actions__/Menu/v1/subcomponents/MenuItem/index.d.ts +1 -1
- package/dist/types/__actions__/Menu/v1/subcomponents/MenuList/MenuList.d.ts +1 -1
- package/dist/types/__actions__/Menu/v1/subcomponents/MenuList/index.d.ts +1 -1
- package/dist/types/__actions__/Menu/v1/subcomponents/StatelessMenu/StatelessMenu.d.ts +18 -18
- package/dist/types/__actions__/Menu/v1/subcomponents/StatelessMenu/index.d.ts +1 -1
- package/dist/types/__actions__/Menu/v2/index.d.ts +6 -6
- package/dist/types/__actions__/Menu/v3/Menu.d.ts +3 -3
- package/dist/types/__actions__/Menu/v3/MenuItem.d.ts +2 -2
- package/dist/types/__actions__/Menu/v3/MenuTrigger.d.ts +2 -2
- package/dist/types/__actions__/Menu/v3/SubmenuTrigger.d.ts +2 -2
- package/dist/types/__actions__/Menu/v3/index.d.ts +3 -3
- package/dist/types/__actions__/v1.d.ts +2 -2
- package/dist/types/__actions__/v2.d.ts +2 -2
- package/dist/types/__actions__/v3.d.ts +2 -2
- package/dist/types/__future__/Icon/Icon.d.ts +2 -2
- package/dist/types/__future__/Icon/index.d.ts +1 -1
- package/dist/types/__future__/Icon/types.d.ts +2 -2
- package/dist/types/__future__/Select/Select.d.ts +12 -12
- package/dist/types/__future__/Select/_docs/mockData.d.ts +1 -1
- package/dist/types/__future__/Select/context/SelectContext.d.ts +3 -3
- package/dist/types/__future__/Select/context/index.d.ts +1 -1
- package/dist/types/__future__/Select/index.d.ts +2 -2
- package/dist/types/__future__/Select/subcomponents/ListBox/ListBox.d.ts +3 -3
- package/dist/types/__future__/Select/subcomponents/ListBox/index.d.ts +1 -1
- package/dist/types/__future__/Select/subcomponents/ListBoxSection/ListBoxSection.d.ts +1 -1
- package/dist/types/__future__/Select/subcomponents/ListBoxSection/index.d.ts +1 -1
- package/dist/types/__future__/Select/subcomponents/ListItem/ListItem.d.ts +1 -1
- package/dist/types/__future__/Select/subcomponents/ListItem/index.d.ts +1 -1
- package/dist/types/__future__/Select/subcomponents/ListItems/ListItems.d.ts +3 -3
- package/dist/types/__future__/Select/subcomponents/ListItems/index.d.ts +1 -1
- package/dist/types/__future__/Select/subcomponents/Option/Option.d.ts +3 -3
- package/dist/types/__future__/Select/subcomponents/Option/index.d.ts +1 -1
- package/dist/types/__future__/Select/subcomponents/Overlay/Overlay.d.ts +2 -2
- package/dist/types/__future__/Select/subcomponents/Overlay/index.d.ts +1 -1
- package/dist/types/__future__/Select/subcomponents/SectionDivider/index.d.ts +1 -1
- package/dist/types/__future__/Select/subcomponents/SelectPopoverContents/SelectPopoverContents.d.ts +4 -4
- package/dist/types/__future__/Select/subcomponents/SelectPopoverContents/index.d.ts +1 -1
- package/dist/types/__future__/Select/subcomponents/SelectToggle/SelectToggle.d.ts +3 -3
- package/dist/types/__future__/Select/subcomponents/SelectToggle/index.d.ts +1 -1
- package/dist/types/__future__/Select/subcomponents/index.d.ts +9 -9
- package/dist/types/__future__/Select/types.d.ts +5 -5
- package/dist/types/__future__/Select/utils/getDisabledKeysFromItems.d.ts +3 -3
- package/dist/types/__future__/Select/utils/isSelectOptionGroup.d.ts +1 -1
- package/dist/types/__future__/Select/utils/transformSelectItemToCollectionElement.d.ts +2 -2
- package/dist/types/__future__/Tabs/Tabs.d.ts +2 -2
- package/dist/types/__future__/Tabs/index.d.ts +2 -2
- package/dist/types/__future__/Tabs/subcomponents/Tab/Tab.d.ts +2 -2
- package/dist/types/__future__/Tabs/subcomponents/Tab/index.d.ts +1 -1
- package/dist/types/__future__/Tabs/subcomponents/TabList/TabList.d.ts +5 -5
- package/dist/types/__future__/Tabs/subcomponents/TabList/index.d.ts +1 -1
- package/dist/types/__future__/Tabs/subcomponents/TabPanel/TabPanel.d.ts +1 -1
- package/dist/types/__future__/Tabs/subcomponents/TabPanel/index.d.ts +1 -1
- package/dist/types/__future__/Tabs/subcomponents/index.d.ts +3 -3
- package/dist/types/__future__/Tag/RemovableTag/RemovableTag.d.ts +3 -3
- package/dist/types/__future__/Tag/RemovableTag/index.d.ts +1 -1
- package/dist/types/__future__/Tag/RemovableTag/subcomponents/RemoveButton.d.ts +2 -2
- package/dist/types/__future__/Tag/Tag/Tag.d.ts +2 -2
- package/dist/types/__future__/Tag/Tag/index.d.ts +1 -1
- package/dist/types/__future__/Tag/index.d.ts +2 -2
- package/dist/types/__future__/index.d.ts +4 -4
- package/dist/types/__overlays__/Focusable/v3/Focusable.d.ts +2 -2
- package/dist/types/__overlays__/Focusable/v3/index.d.ts +1 -1
- package/dist/types/__overlays__/Tooltip/v1/Tooltip.d.ts +4 -4
- package/dist/types/__overlays__/Tooltip/v1/index.d.ts +1 -1
- package/dist/types/__overlays__/Tooltip/v1/subcomponents/AppearanceAnim.d.ts +1 -1
- package/dist/types/__overlays__/Tooltip/v1/utils/isSemanticElement.d.ts +1 -1
- package/dist/types/__overlays__/Tooltip/v2/index.d.ts +1 -1
- package/dist/types/__overlays__/Tooltip/v3/OverlayArrow.d.ts +1 -1
- package/dist/types/__overlays__/Tooltip/v3/Tooltip.d.ts +4 -4
- package/dist/types/__overlays__/Tooltip/v3/TooltipTrigger.d.ts +2 -2
- package/dist/types/__overlays__/Tooltip/v3/index.d.ts +2 -2
- package/dist/types/__overlays__/v1.d.ts +1 -1
- package/dist/types/__overlays__/v2.d.ts +1 -1
- package/dist/types/__overlays__/v3.d.ts +2 -2
- package/dist/types/__react-aria-components__/index.d.ts +1 -1
- package/dist/types/__react-aria__/index.d.ts +1 -1
- package/dist/types/__utilities__/ReversedColors/v3/ReversedColors.d.ts +1 -1
- package/dist/types/__utilities__/ReversedColors/v3/index.d.ts +1 -1
- package/dist/types/__utilities__/useIsClientReady/index.d.ts +1 -1
- package/dist/types/__utilities__/v3.d.ts +1 -1
- package/dist/types/index.d.ts +63 -63
- package/dist/types/types/DataAttributes.d.ts +1 -3
- package/dist/types/types/OverrideClassName.d.ts +1 -1
- package/dist/types/utils/AppearanceAnim.d.ts +1 -1
- package/dist/types/utils/getNodeText.d.ts +1 -1
- package/dist/types/utils/index.d.ts +2 -2
- package/dist/types/utils/mergeClassNames.d.ts +1 -1
- package/dist/types/utils/useMediaQueries.d.ts +2 -4
- package/dist/types/utils/useResizeObserver.d.ts +1 -1
- package/package.json +27 -28
- package/src/Avatar/Avatar.module.scss +5 -5
- package/src/Avatar/Avatar.spec.tsx +35 -37
- package/src/Avatar/Avatar.tsx +36 -56
- package/src/Avatar/_docs/Avatar.mdx +3 -4
- package/src/Avatar/_docs/Avatar.stickersheet.stories.tsx +26 -41
- package/src/Avatar/_docs/Avatar.stories.tsx +5 -5
- package/src/Avatar/index.ts +1 -1
- package/src/AvatarGroup/AvatarGroup.module.scss +3 -3
- package/src/AvatarGroup/AvatarGroup.spec.tsx +18 -22
- package/src/AvatarGroup/AvatarGroup.tsx +11 -15
- package/src/AvatarGroup/_docs/AvatarGroup.mdx +3 -3
- package/src/AvatarGroup/_docs/AvatarGroup.stickersheet.stories.tsx +17 -27
- package/src/AvatarGroup/_docs/AvatarGroup.stories.tsx +6 -6
- package/src/AvatarGroup/_docs/example-data.ts +10 -10
- package/src/AvatarGroup/index.ts +1 -1
- package/src/Badge/Badge.module.scss +5 -6
- package/src/Badge/Badge.tsx +14 -16
- package/src/Badge/_docs/Badge.mdx +3 -3
- package/src/Badge/_docs/Badge.stickersheet.stories.tsx +11 -17
- package/src/Badge/_docs/Badge.stories.tsx +7 -8
- package/src/Badge/index.ts +1 -1
- package/src/Brand/Brand.tsx +21 -33
- package/src/Brand/BrandCollectiveIntelligence/BrandCollectiveIntelligence.tsx +5 -5
- package/src/Brand/BrandCollectiveIntelligence/index.ts +1 -1
- package/src/Brand/_docs/Brand.mdx +3 -4
- package/src/Brand/_docs/Brand.stickersheet.stories.tsx +10 -21
- package/src/Brand/_docs/Brand.stories.tsx +8 -8
- package/src/Brand/index.ts +1 -1
- package/src/BrandMoment/BrandMoment.module.scss +3 -3
- package/src/BrandMoment/BrandMoment.tsx +21 -42
- package/src/BrandMoment/_docs/BrandMoment.mdx +3 -3
- package/src/BrandMoment/_docs/BrandMoment.stickersheet.stories.tsx +13 -16
- package/src/BrandMoment/_docs/BrandMoment.stories.tsx +35 -40
- package/src/BrandMoment/_docs/ExampleHeaders.module.scss +5 -5
- package/src/BrandMoment/_docs/ExampleHeaders.tsx +10 -22
- package/src/BrandMoment/index.ts +1 -1
- package/src/ButtonGroup/ButtonGroup.module.scss +2 -2
- package/src/ButtonGroup/ButtonGroup.tsx +13 -18
- package/src/ButtonGroup/_docs/ButtonGroup.mdx +3 -3
- package/src/ButtonGroup/_docs/ButtonGroup.stickersheet.stories.tsx +21 -57
- package/src/ButtonGroup/_docs/ButtonGroup.stories.tsx +6 -6
- package/src/ButtonGroup/index.ts +1 -1
- package/src/Calendar/CalendarPopover/CalendarPopover.module.scss +5 -5
- package/src/Calendar/CalendarPopover/CalendarPopover.tsx +10 -12
- package/src/Calendar/CalendarPopover/_docs/CalendarPopover.stickersheet.stories.tsx +33 -37
- package/src/Calendar/CalendarPopover/index.ts +1 -1
- package/src/Calendar/CalendarRange/CalendarRange.module.scss +3 -3
- package/src/Calendar/CalendarRange/CalendarRange.spec.tsx +17 -17
- package/src/Calendar/CalendarRange/CalendarRange.tsx +17 -22
- package/src/Calendar/CalendarRange/_docs/CalendarRange.mdx +3 -3
- package/src/Calendar/CalendarRange/_docs/CalendarRange.stickersheet.stories.tsx +32 -38
- package/src/Calendar/CalendarRange/_docs/CalendarRange.stories.tsx +11 -15
- package/src/Calendar/CalendarRange/index.ts +1 -1
- package/src/Calendar/CalendarSingle/CalendarSingle.module.scss +1 -1
- package/src/Calendar/CalendarSingle/CalendarSingle.spec.tsx +15 -15
- package/src/Calendar/CalendarSingle/CalendarSingle.tsx +17 -24
- package/src/Calendar/CalendarSingle/_docs/CalendarSingle.mdx +3 -3
- package/src/Calendar/CalendarSingle/_docs/CalendarSingle.stickersheet.stories.tsx +45 -69
- package/src/Calendar/CalendarSingle/_docs/CalendarSingle.stories.tsx +9 -11
- package/src/Calendar/CalendarSingle/index.ts +1 -1
- package/src/Calendar/LegacyCalendarRange/LegacyCalendarRange.module.scss +1 -1
- package/src/Calendar/LegacyCalendarRange/LegacyCalendarRange.tsx +15 -22
- package/src/Calendar/LegacyCalendarRange/index.ts +1 -1
- package/src/Calendar/_docs/controls/defaultMonthControls.ts +6 -6
- package/src/Calendar/_docs/controls/weekStartsOnControls.ts +11 -11
- package/src/Calendar/baseCalendarClassNames.module.scss +8 -11
- package/src/Calendar/baseCalendarClassNames.ts +2 -2
- package/src/Calendar/enums.ts +4 -4
- package/src/Calendar/index.ts +5 -5
- package/src/Calendar/types.ts +3 -3
- package/src/Calendar/utils/calculateDisabledDays.spec.ts +11 -11
- package/src/Calendar/utils/calculateDisabledDays.ts +3 -3
- package/src/Calendar/utils/formatDateAsNumeral.spec.ts +11 -15
- package/src/Calendar/utils/formatDateAsNumeral.ts +4 -4
- package/src/Calendar/utils/formatDateAsText.spec.ts +17 -27
- package/src/Calendar/utils/formatDateAsText.ts +7 -7
- package/src/Calendar/utils/index.ts +11 -11
- package/src/Calendar/utils/isDisabledDate.spec.ts +18 -18
- package/src/Calendar/utils/isDisabledDate.ts +3 -6
- package/src/Calendar/utils/isInvalidDate.spec.ts +18 -18
- package/src/Calendar/utils/isInvalidDate.ts +1 -2
- package/src/Calendar/utils/isSelectingDayInCalendar.spec.tsx +12 -12
- package/src/Calendar/utils/isSelectingDayInCalendar.ts +3 -4
- package/src/Calendar/utils/isValidWeekStartsOn.ts +4 -5
- package/src/Calendar/utils/parseDateAsTextOrNumeral.spec.ts +15 -15
- package/src/Calendar/utils/parseDateAsTextOrNumeral.ts +5 -8
- package/src/Calendar/utils/parseDateFromNumeralFormatValue.spec.tsx +11 -17
- package/src/Calendar/utils/parseDateFromNumeralFormatValue.ts +3 -6
- package/src/Calendar/utils/parseDateFromTextFormatValue.spec.ts +13 -21
- package/src/Calendar/utils/parseDateFromTextFormatValue.ts +3 -6
- package/src/Calendar/utils/setFocusInCalendar.spec.tsx +25 -27
- package/src/Calendar/utils/setFocusInCalendar.ts +7 -8
- package/src/Card/Card.tsx +25 -25
- package/src/Card/_docs/Card.mdx +5 -4
- package/src/Card/_docs/Card.stickersheet.stories.tsx +28 -31
- package/src/Card/_docs/Card.stories.tsx +16 -16
- package/src/Card/index.ts +1 -1
- package/src/Checkbox/Checkbox/Checkbox.module.scss +9 -17
- package/src/Checkbox/Checkbox/Checkbox.spec.tsx +13 -15
- package/src/Checkbox/Checkbox/Checkbox.tsx +17 -27
- package/src/Checkbox/Checkbox/_docs/Checkbox.mdx +4 -5
- package/src/Checkbox/Checkbox/_docs/Checkbox.stickersheet.stories.tsx +17 -27
- package/src/Checkbox/Checkbox/_docs/Checkbox.stories.tsx +16 -17
- package/src/Checkbox/Checkbox/index.ts +1 -1
- package/src/Checkbox/CheckboxField/CheckboxField.module.scss +4 -4
- package/src/Checkbox/CheckboxField/CheckboxField.tsx +21 -20
- package/src/Checkbox/CheckboxField/_docs/CheckboxField.mdx +5 -3
- package/src/Checkbox/CheckboxField/_docs/CheckboxField.stickersheet.stories.tsx +18 -28
- package/src/Checkbox/CheckboxField/_docs/CheckboxField.stories.tsx +18 -21
- package/src/Checkbox/CheckboxField/index.ts +1 -1
- package/src/Checkbox/CheckboxGroup/CheckboxGroup.module.scss +1 -1
- package/src/Checkbox/CheckboxGroup/CheckboxGroup.spec.tsx +9 -11
- package/src/Checkbox/CheckboxGroup/CheckboxGroup.tsx +10 -14
- package/src/Checkbox/CheckboxGroup/_docs/CheckboxGroup.mdx +4 -3
- package/src/Checkbox/CheckboxGroup/_docs/CheckboxGroup.stickersheet.stories.tsx +19 -40
- package/src/Checkbox/CheckboxGroup/_docs/CheckboxGroup.stories.tsx +25 -28
- package/src/Checkbox/CheckboxGroup/index.ts +1 -1
- package/src/Checkbox/index.ts +3 -3
- package/src/ClearButton/ClearButton.module.scss +4 -4
- package/src/ClearButton/ClearButton.tsx +8 -8
- package/src/ClearButton/_docs/ClearButton.stickersheet.stories.tsx +9 -15
- package/src/ClearButton/index.ts +1 -1
- package/src/Collapsible/Collapsible/Collapsible.module.scss +6 -7
- package/src/Collapsible/Collapsible/Collapsible.spec.tsx +30 -36
- package/src/Collapsible/Collapsible/Collapsible.tsx +21 -32
- package/src/Collapsible/Collapsible/_docs/Collapsible.mdx +3 -3
- package/src/Collapsible/Collapsible/_docs/Collapsible.stickersheet.stories.tsx +35 -50
- package/src/Collapsible/Collapsible/_docs/Collapsible.stories.tsx +19 -23
- package/src/Collapsible/Collapsible/index.ts +1 -1
- package/src/Collapsible/CollapsibleGroup/CollapsibleGroup.module.scss +3 -4
- package/src/Collapsible/CollapsibleGroup/CollapsibleGroup.spec.tsx +11 -11
- package/src/Collapsible/CollapsibleGroup/CollapsibleGroup.tsx +11 -14
- package/src/Collapsible/CollapsibleGroup/_docs/CollapsibleGroup.mdx +8 -7
- package/src/Collapsible/CollapsibleGroup/_docs/CollapsibleGroup.stickersheet.stories.tsx +17 -28
- package/src/Collapsible/CollapsibleGroup/_docs/CollapsibleGroup.stories.tsx +15 -23
- package/src/Collapsible/CollapsibleGroup/index.ts +1 -1
- package/src/Collapsible/ExpertAdviceCollapsible/ExpertAdviceCollapsible.module.scss +4 -5
- package/src/Collapsible/ExpertAdviceCollapsible/ExpertAdviceCollapsible.tsx +9 -18
- package/src/Collapsible/ExpertAdviceCollapsible/_docs/ExpertAdviceCollapsible.mdx +3 -3
- package/src/Collapsible/ExpertAdviceCollapsible/_docs/ExpertAdviceCollapsible.stickersheets.stories.tsx +15 -19
- package/src/Collapsible/ExpertAdviceCollapsible/_docs/ExpertAdviceCollapsible.stories.tsx +8 -12
- package/src/Collapsible/ExpertAdviceCollapsible/index.ts +1 -1
- package/src/Collapsible/index.ts +3 -3
- package/src/Container/Container.tsx +6 -6
- package/src/Container/_docs/Container.mdx +6 -4
- package/src/Container/_docs/Container.stories.tsx +21 -23
- package/src/Container/index.ts +1 -1
- package/src/Content/Content.module.scss +2 -2
- package/src/Content/Content.tsx +25 -25
- package/src/Content/_docs/Content.mdx +6 -4
- package/src/Content/_docs/Content.stories.tsx +20 -22
- package/src/Content/index.ts +1 -1
- package/src/DateInput/DateInput/DateInput.module.scss +1 -1
- package/src/DateInput/DateInput/DateInput.tsx +10 -20
- package/src/DateInput/DateInput/index.ts +1 -1
- package/src/DateInput/DateInputDescription/DateInputDescription.module.scss +1 -1
- package/src/DateInput/DateInputDescription/DateInputDescription.spec.tsx +16 -28
- package/src/DateInput/DateInputDescription/DateInputDescription.tsx +10 -11
- package/src/DateInput/DateInputDescription/index.ts +1 -1
- package/src/DateInput/DateInputDescription/utils/formatDescriptionInputFormat.spec.ts +7 -7
- package/src/DateInput/DateInputDescription/utils/formatDescriptionInputFormat.ts +2 -2
- package/src/DateInput/DateInputWithIconButton/DateInputWithIconButton.module.scss +6 -7
- package/src/DateInput/DateInputWithIconButton/DateInputWithIconButton.spec.tsx +24 -40
- package/src/DateInput/DateInputWithIconButton/DateInputWithIconButton.tsx +11 -11
- package/src/DateInput/DateInputWithIconButton/index.ts +1 -1
- package/src/DateInput/index.ts +3 -3
- package/src/DatePicker/DatePicker.module.scss +1 -1
- package/src/DatePicker/DatePicker.spec.tsx +151 -183
- package/src/DatePicker/DatePicker.tsx +62 -77
- package/src/DatePicker/_docs/DatePicker.mdx +3 -3
- package/src/DatePicker/_docs/DatePicker.stickersheet.stories.tsx +30 -56
- package/src/DatePicker/_docs/DatePicker.stories.tsx +89 -107
- package/src/DatePicker/_docs/controls/datePickerLocaleControls.ts +5 -5
- package/src/DatePicker/_docs/controls/disabledDayMatchersControls.ts +30 -31
- package/src/DatePicker/_docs/getLocale.stickersheet.stories.tsx +15 -21
- package/src/DatePicker/index.ts +2 -2
- package/src/DatePicker/subcomponents/DateInputField/DateInputField.spec.tsx +41 -67
- package/src/DatePicker/subcomponents/DateInputField/DateInputField.tsx +14 -23
- package/src/DatePicker/subcomponents/DateInputField/index.ts +1 -1
- package/src/DatePicker/types.ts +2 -2
- package/src/DatePicker/utils/getLocale.spec.ts +5 -5
- package/src/DatePicker/utils/getLocale.ts +49 -49
- package/src/DatePicker/utils/validateDate.spec.ts +27 -29
- package/src/DatePicker/utils/validateDate.tsx +6 -10
- package/src/DateRangePicker/DateRangePicker.module.scss +7 -9
- package/src/DateRangePicker/DateRangePicker.spec.tsx +22 -24
- package/src/DateRangePicker/DateRangePicker.tsx +24 -35
- package/src/DateRangePicker/_docs/DateRangePicker.mdx +3 -4
- package/src/DateRangePicker/_docs/DateRangePicker.stickersheet.stories.tsx +17 -34
- package/src/DateRangePicker/_docs/DateRangePicker.stories.tsx +32 -32
- package/src/DateRangePicker/index.ts +2 -2
- package/src/DateRangePicker/utils/formatDateRangeValue.spec.ts +9 -13
- package/src/DateRangePicker/utils/formatDateRangeValue.ts +11 -17
- package/src/Divider/Divider.module.scss +2 -2
- package/src/Divider/Divider.tsx +7 -7
- package/src/Divider/_docs/Divider.mdx +3 -3
- package/src/Divider/_docs/Divider.stickersheet.stories.tsx +8 -11
- package/src/Divider/_docs/Divider.stories.tsx +9 -9
- package/src/Divider/index.ts +1 -1
- package/src/EmptyState/EmptyState.tsx +25 -39
- package/src/EmptyState/_docs/EmptyState.mdx +3 -3
- package/src/EmptyState/_docs/EmptyState.stickersheet.stories.tsx +31 -50
- package/src/EmptyState/_docs/EmptyState.stories.tsx +16 -18
- package/src/EmptyState/index.ts +1 -1
- package/src/ErrorPage/ErrorPage.module.scss +1 -1
- package/src/ErrorPage/ErrorPage.spec.tsx +42 -54
- package/src/ErrorPage/ErrorPage.tsx +25 -27
- package/src/ErrorPage/_docs/ErrorPage.mdx +3 -3
- package/src/ErrorPage/_docs/ErrorPage.stickersheet.stories.tsx +12 -15
- package/src/ErrorPage/_docs/ErrorPage.stories.tsx +7 -7
- package/src/ErrorPage/hooks/index.ts +1 -1
- package/src/ErrorPage/hooks/useErrorMessages.ts +61 -67
- package/src/ErrorPage/index.ts +1 -1
- package/src/FieldGroup/FieldGroup.module.scss +1 -1
- package/src/FieldGroup/FieldGroup.tsx +6 -10
- package/src/FieldGroup/_docs/FieldGroup.mdx +6 -4
- package/src/FieldGroup/_docs/FieldGroup.stickersheet.stories.tsx +10 -13
- package/src/FieldGroup/_docs/FieldGroup.stories.tsx +11 -31
- package/src/FieldGroup/index.ts +1 -1
- package/src/FieldMessage/FieldMessage.module.scss +3 -3
- package/src/FieldMessage/FieldMessage.spec.tsx +23 -29
- package/src/FieldMessage/FieldMessage.tsx +20 -24
- package/src/FieldMessage/_docs/FieldMessage.mdx +3 -4
- package/src/FieldMessage/_docs/FieldMessage.stickersheet.stories.tsx +12 -18
- package/src/FieldMessage/_docs/FieldMessage.stories.tsx +18 -19
- package/src/FieldMessage/index.ts +1 -1
- package/src/Filter/Filter/Filter.spec.tsx +20 -22
- package/src/Filter/Filter/Filter.tsx +11 -22
- package/src/Filter/Filter/_docs/Filter.mdx +13 -14
- package/src/Filter/Filter/_docs/Filter.stickersheet.stories.tsx +13 -16
- package/src/Filter/Filter/_docs/Filter.stories.tsx +11 -13
- package/src/Filter/Filter/index.ts +3 -3
- package/src/Filter/Filter/subcomponents/FilterContents/FilterContents.module.scss +1 -1
- package/src/Filter/Filter/subcomponents/FilterContents/FilterContents.tsx +6 -9
- package/src/Filter/Filter/subcomponents/FilterContents/index.ts +1 -1
- package/src/Filter/Filter/subcomponents/FilterPopover/FilterPopover.module.scss +3 -3
- package/src/Filter/Filter/subcomponents/FilterPopover/FilterPopover.tsx +11 -13
- package/src/Filter/Filter/subcomponents/FilterPopover/index.ts +1 -1
- package/src/Filter/FilterBar/FilterBar.spec.tsx +275 -358
- package/src/Filter/FilterBar/FilterBar.tsx +11 -14
- package/src/Filter/FilterBar/_docs/FilterBar.mdx +49 -48
- package/src/Filter/FilterBar/_docs/FilterBar.spec.stories.tsx +77 -102
- package/src/Filter/FilterBar/_docs/FilterBar.stickersheet.stories.tsx +43 -47
- package/src/Filter/FilterBar/_docs/FilterBar.stories.tsx +139 -195
- package/src/Filter/FilterBar/context/FilterBarContext.tsx +45 -74
- package/src/Filter/FilterBar/context/reducer/filterBarStateReducer.spec.ts +24 -26
- package/src/Filter/FilterBar/context/reducer/filterBarStateReducer.ts +21 -23
- package/src/Filter/FilterBar/context/reducer/setupFilterBarState.spec.tsx +31 -31
- package/src/Filter/FilterBar/context/reducer/setupFilterBarState.ts +5 -5
- package/src/Filter/FilterBar/context/reducer/updateSingleFilter.spec.ts +16 -16
- package/src/Filter/FilterBar/context/reducer/updateSingleFilter.ts +3 -7
- package/src/Filter/FilterBar/context/reducer/updateValues.spec.ts +42 -48
- package/src/Filter/FilterBar/context/reducer/updateValues.ts +4 -4
- package/src/Filter/FilterBar/context/types.ts +3 -8
- package/src/Filter/FilterBar/context/utils/checkShouldUpdateValues.spec.ts +21 -21
- package/src/Filter/FilterBar/context/utils/checkShouldUpdateValues.ts +3 -3
- package/src/Filter/FilterBar/context/utils/createFiltersHash.ts +2 -4
- package/src/Filter/FilterBar/context/utils/getInactiveFilters.spec.ts +17 -17
- package/src/Filter/FilterBar/context/utils/getInactiveFilters.ts +4 -6
- package/src/Filter/FilterBar/context/utils/getIsUsableWhenArgs.spec.ts +16 -16
- package/src/Filter/FilterBar/context/utils/getIsUsableWhenArgs.ts +3 -3
- package/src/Filter/FilterBar/context/utils/getMappedFilters.spec.tsx +11 -11
- package/src/Filter/FilterBar/context/utils/getMappedFilters.ts +4 -4
- package/src/Filter/FilterBar/context/utils/getValidValue.spec.ts +12 -12
- package/src/Filter/FilterBar/context/utils/getValidValue.ts +1 -2
- package/src/Filter/FilterBar/context/utils/updateDependentFilters.spec.ts +46 -52
- package/src/Filter/FilterBar/context/utils/updateDependentFilters.ts +5 -5
- package/src/Filter/FilterBar/index.ts +4 -4
- package/src/Filter/FilterBar/subcomponents/AddFiltersMenu/AddFiltersMenu.spec.tsx +27 -36
- package/src/Filter/FilterBar/subcomponents/AddFiltersMenu/AddFiltersMenu.tsx +13 -19
- package/src/Filter/FilterBar/subcomponents/AddFiltersMenu/index.ts +1 -1
- package/src/Filter/FilterBar/subcomponents/ClearAllButton/ClearAllButton.tsx +13 -13
- package/src/Filter/FilterBar/subcomponents/ClearAllButton/index.ts +1 -1
- package/src/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.spec.tsx +18 -28
- package/src/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.tsx +14 -26
- package/src/Filter/FilterBar/subcomponents/FilterBarButton/index.ts +1 -1
- package/src/Filter/FilterBar/subcomponents/FilterBarDatePicker/FilterBarDatePicker.spec.tsx +43 -61
- package/src/Filter/FilterBar/subcomponents/FilterBarDatePicker/FilterBarDatePicker.tsx +22 -28
- package/src/Filter/FilterBar/subcomponents/FilterBarDatePicker/index.ts +1 -1
- package/src/Filter/FilterBar/subcomponents/FilterBarDateRangePicker/FilterBarDateRangePicker.spec.tsx +52 -66
- package/src/Filter/FilterBar/subcomponents/FilterBarDateRangePicker/FilterBarDateRangePicker.tsx +22 -25
- package/src/Filter/FilterBar/subcomponents/FilterBarDateRangePicker/index.ts +1 -1
- package/src/Filter/FilterBar/subcomponents/FilterBarMultiSelect/FilterBarMultiSelect.spec.tsx +78 -99
- package/src/Filter/FilterBar/subcomponents/FilterBarMultiSelect/FilterBarMultiSelect.tsx +25 -35
- package/src/Filter/FilterBar/subcomponents/FilterBarMultiSelect/index.ts +1 -1
- package/src/Filter/FilterBar/subcomponents/FilterBarSelect/FilterBarSelect.spec.tsx +71 -80
- package/src/Filter/FilterBar/subcomponents/FilterBarSelect/FilterBarSelect.tsx +24 -24
- package/src/Filter/FilterBar/subcomponents/FilterBarSelect/index.ts +1 -1
- package/src/Filter/FilterBar/subcomponents/index.ts +4 -4
- package/src/Filter/FilterBar/types.ts +3 -8
- package/src/Filter/FilterBar/utils/checkArraysMatch.spec.ts +8 -8
- package/src/Filter/FilterButton/FilterButton/FilterButton.spec.tsx +22 -24
- package/src/Filter/FilterButton/FilterButton/FilterButton.tsx +12 -21
- package/src/Filter/FilterButton/FilterButton/index.ts +1 -1
- package/src/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.spec.tsx +16 -25
- package/src/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.tsx +21 -28
- package/src/Filter/FilterButton/FilterButtonRemovable/index.ts +1 -1
- package/src/Filter/FilterButton/_docs/FilterButton.stories.tsx +12 -12
- package/src/Filter/FilterButton/_docs/FilterButtonRemovable.stories.tsx +11 -11
- package/src/Filter/FilterButton/_docs/filter-buttons.mdx +5 -5
- package/src/Filter/FilterButton/_docs/filter-buttons.stickersheet.stories.tsx +17 -35
- package/src/Filter/FilterButton/index.ts +2 -2
- package/src/Filter/FilterButton/subcomponents/FilterButtonBase/FilterButtonBase.module.scss +8 -9
- package/src/Filter/FilterButton/subcomponents/FilterButtonBase/FilterButtonBase.tsx +17 -18
- package/src/Filter/FilterButton/subcomponents/FilterButtonBase/_variables.scss +1 -1
- package/src/Filter/FilterButton/subcomponents/FilterButtonBase/index.ts +1 -1
- package/src/Filter/FilterDatePicker/FilterDatePicker.spec.stories.tsx +14 -17
- package/src/Filter/FilterDatePicker/FilterDatePicker.spec.tsx +76 -92
- package/src/Filter/FilterDatePicker/FilterDatePicker.tsx +11 -11
- package/src/Filter/FilterDatePicker/_docs/FilterDatePicker.mdx +8 -3
- package/src/Filter/FilterDatePicker/_docs/FilterDatePicker.stickersheet.stories.tsx +35 -43
- package/src/Filter/FilterDatePicker/_docs/FilterDatePicker.stories.tsx +61 -79
- package/src/Filter/FilterDatePicker/_docs/controls/disabledDaysControls.ts +22 -23
- package/src/Filter/FilterDatePicker/_docs/controls/validationControls.ts +19 -27
- package/src/Filter/FilterDatePicker/hooks/useDateInputHandlers.spec.ts +67 -67
- package/src/Filter/FilterDatePicker/hooks/useDateInputHandlers.ts +18 -21
- package/src/Filter/FilterDatePicker/hooks/useDateValidation.spec.ts +27 -29
- package/src/Filter/FilterDatePicker/hooks/useDateValidation.ts +6 -9
- package/src/Filter/FilterDatePicker/index.ts +6 -6
- package/src/Filter/FilterDatePicker/subcomponents/DateInputField/DateInputField.tsx +21 -30
- package/src/Filter/FilterDatePicker/subcomponents/DateInputField/index.ts +1 -1
- package/src/Filter/FilterDatePicker/subcomponents/FilterDatePickerField/FilterDatePickerField.module.scss +1 -1
- package/src/Filter/FilterDatePicker/subcomponents/FilterDatePickerField/FilterDatePickerField.spec.tsx +122 -146
- package/src/Filter/FilterDatePicker/subcomponents/FilterDatePickerField/FilterDatePickerField.tsx +35 -48
- package/src/Filter/FilterDatePicker/subcomponents/FilterDatePickerField/filterDatePickerFieldReducer.tsx +11 -16
- package/src/Filter/FilterDatePicker/subcomponents/FilterDatePickerField/index.ts +1 -1
- package/src/Filter/FilterDatePicker/types.ts +2 -2
- package/src/Filter/FilterDatePicker/utils/getDateValidationHandler.spec.tsx +22 -27
- package/src/Filter/FilterDatePicker/utils/getDateValidationHandler.tsx +7 -16
- package/src/Filter/FilterDatePicker/utils/transformDateToInputValue.ts +4 -4
- package/src/Filter/FilterDatePicker/utils/validateDate.spec.ts +27 -29
- package/src/Filter/FilterDatePicker/utils/validateDate.ts +3 -5
- package/src/Filter/FilterDateRangePicker/FilterDateRangePicker.spec.tsx +38 -44
- package/src/Filter/FilterDateRangePicker/FilterDateRangePicker.tsx +13 -16
- package/src/Filter/FilterDateRangePicker/_docs/FilterDateRangePicker.mdx +9 -3
- package/src/Filter/FilterDateRangePicker/_docs/FilterDateRangePicker.stickersheet.stories.tsx +49 -65
- package/src/Filter/FilterDateRangePicker/_docs/FilterDateRangePicker.stories.tsx +82 -103
- package/src/Filter/FilterDateRangePicker/_docs/controls/disabledDaysControls.ts +22 -23
- package/src/Filter/FilterDateRangePicker/_docs/controls/validationControls.ts +19 -27
- package/src/Filter/FilterDateRangePicker/index.ts +2 -2
- package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeDisplayLabel/DateRangeDisplayLabel.module.scss +1 -1
- package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeDisplayLabel/DateRangeDisplayLabel.tsx +5 -5
- package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeDisplayLabel/index.ts +1 -1
- package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeInputField/DateRangeInputField.module.scss +3 -3
- package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeInputField/DateRangeInputField.spec.tsx +38 -51
- package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeInputField/DateRangeInputField.tsx +20 -25
- package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeInputField/index.ts +1 -1
- package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeValidationMessage/DateRangeValidationMessage.module.scss +1 -1
- package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeValidationMessage/DateRangeValidationMessage.spec.tsx +11 -14
- package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeValidationMessage/DateRangeValidationMessage.tsx +5 -5
- package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeValidationMessage/index.ts +1 -1
- package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/FilterDateRangePickerField.module.scss +1 -1
- package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/FilterDateRangePickerField.spec.tsx +242 -286
- package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/FilterDateRangePickerField.tsx +54 -74
- package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/filterDateRangePickerFieldReducer.tsx +16 -24
- package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/hooks/useEndDateValidation.spec.ts +24 -28
- package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/hooks/useEndDateValidation.ts +9 -15
- package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/hooks/useStartDateValidation.spec.ts +12 -14
- package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/hooks/useStartDateValidation.ts +5 -12
- package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/index.ts +1 -1
- package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/types.ts +1 -1
- package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/utils/isValidRange.spec.ts +16 -16
- package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/utils/isValidRange.ts +1 -4
- package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/utils/validateEndDateBeforeStartDate.spec.ts +26 -28
- package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/utils/validateEndDateBeforeStartDate.tsx +6 -6
- package/src/Filter/FilterDateRangePicker/utils/isCompleteDateRange.spec.ts +10 -12
- package/src/Filter/FilterDateRangePicker/utils/isCompleteDateRange.ts +2 -2
- package/src/Filter/FilterMultiSelect/FilterMultiSelect.spec.tsx +63 -80
- package/src/Filter/FilterMultiSelect/FilterMultiSelect.tsx +20 -28
- package/src/Filter/FilterMultiSelect/_docs/FilterMultiSelect.mdx +143 -4
- package/src/Filter/FilterMultiSelect/_docs/FilterMultiSelect.stories.tsx +42 -314
- package/src/Filter/FilterMultiSelect/_docs/MockData.ts +30 -30
- package/src/Filter/FilterMultiSelect/context/MenuTriggerProvider/MenuTriggerProvider.spec.tsx +62 -73
- package/src/Filter/FilterMultiSelect/context/MenuTriggerProvider/MenuTriggerProvider.tsx +8 -17
- package/src/Filter/FilterMultiSelect/context/MenuTriggerProvider/index.ts +1 -1
- package/src/Filter/FilterMultiSelect/context/SelectionProvider/SelectionProvider.spec.tsx +201 -266
- package/src/Filter/FilterMultiSelect/context/SelectionProvider/SelectionProvider.tsx +17 -20
- package/src/Filter/FilterMultiSelect/context/SelectionProvider/index.ts +1 -1
- package/src/Filter/FilterMultiSelect/context/index.ts +2 -2
- package/src/Filter/FilterMultiSelect/index.ts +5 -5
- package/src/Filter/FilterMultiSelect/subcomponents/ListBox/ListBox.module.scss +1 -1
- package/src/Filter/FilterMultiSelect/subcomponents/ListBox/ListBox.tsx +11 -9
- package/src/Filter/FilterMultiSelect/subcomponents/ListBox/index.ts +1 -1
- package/src/Filter/FilterMultiSelect/subcomponents/ListBoxSection/ListBoxSection.module.scss +3 -3
- package/src/Filter/FilterMultiSelect/subcomponents/ListBoxSection/ListBoxSection.spec.tsx +21 -21
- package/src/Filter/FilterMultiSelect/subcomponents/ListBoxSection/ListBoxSection.tsx +8 -12
- package/src/Filter/FilterMultiSelect/subcomponents/ListBoxSection/index.ts +1 -1
- package/src/Filter/FilterMultiSelect/subcomponents/LoadMoreButton/LoadMoreButton.module.scss +1 -1
- package/src/Filter/FilterMultiSelect/subcomponents/LoadMoreButton/LoadMoreButton.tsx +4 -4
- package/src/Filter/FilterMultiSelect/subcomponents/LoadMoreButton/index.ts +1 -1
- package/src/Filter/FilterMultiSelect/subcomponents/MenuLayout/MenuFooter/MenuFooter.module.scss +2 -2
- package/src/Filter/FilterMultiSelect/subcomponents/MenuLayout/MenuFooter/MenuFooter.tsx +3 -3
- package/src/Filter/FilterMultiSelect/subcomponents/MenuLayout/MenuFooter/index.ts +1 -1
- package/src/Filter/FilterMultiSelect/subcomponents/MenuLayout/MenuLoadingSkeleton/MenuLoadingSkeleton.module.scss +1 -1
- package/src/Filter/FilterMultiSelect/subcomponents/MenuLayout/MenuLoadingSkeleton/MenuLoadingSkeleton.tsx +6 -9
- package/src/Filter/FilterMultiSelect/subcomponents/MenuLayout/MenuLoadingSkeleton/index.ts +1 -1
- package/src/Filter/FilterMultiSelect/subcomponents/MenuLayout/index.ts +2 -2
- package/src/Filter/FilterMultiSelect/subcomponents/MenuPopup/MenuPopup.module.scss +4 -4
- package/src/Filter/FilterMultiSelect/subcomponents/MenuPopup/MenuPopup.tsx +7 -7
- package/src/Filter/FilterMultiSelect/subcomponents/MenuPopup/index.ts +1 -1
- package/src/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.module.scss +6 -7
- package/src/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.spec.tsx +33 -34
- package/src/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.tsx +15 -21
- package/src/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/index.ts +1 -1
- package/src/Filter/FilterMultiSelect/subcomponents/NoResults/NoResults.tsx +5 -8
- package/src/Filter/FilterMultiSelect/subcomponents/NoResults/index.ts +1 -1
- package/src/Filter/FilterMultiSelect/subcomponents/SearchInput/SearchInput.module.scss +1 -1
- package/src/Filter/FilterMultiSelect/subcomponents/SearchInput/SearchInput.spec.tsx +20 -20
- package/src/Filter/FilterMultiSelect/subcomponents/SearchInput/SearchInput.tsx +15 -19
- package/src/Filter/FilterMultiSelect/subcomponents/SearchInput/index.ts +1 -1
- package/src/Filter/FilterMultiSelect/subcomponents/SectionDivider/SectionDivider.tsx +3 -3
- package/src/Filter/FilterMultiSelect/subcomponents/SectionDivider/index.ts +1 -1
- package/src/Filter/FilterMultiSelect/subcomponents/SelectionControlButton/ClearButton/ClearButton.spec.tsx +16 -16
- package/src/Filter/FilterMultiSelect/subcomponents/SelectionControlButton/ClearButton/ClearButton.tsx +11 -18
- package/src/Filter/FilterMultiSelect/subcomponents/SelectionControlButton/ClearButton/index.ts +1 -1
- package/src/Filter/FilterMultiSelect/subcomponents/SelectionControlButton/SelectAllButton/SelectAllButton.spec.tsx +27 -31
- package/src/Filter/FilterMultiSelect/subcomponents/SelectionControlButton/SelectAllButton/SelectAllButton.tsx +11 -18
- package/src/Filter/FilterMultiSelect/subcomponents/SelectionControlButton/SelectAllButton/index.ts +1 -1
- package/src/Filter/FilterMultiSelect/subcomponents/SelectionControlButton/SelectionControlButton.module.scss +6 -6
- package/src/Filter/FilterMultiSelect/subcomponents/SelectionControlButton/index.ts +2 -2
- package/src/Filter/FilterMultiSelect/subcomponents/Trigger/FilterTriggerButton/FilterTriggerButton.tsx +7 -10
- package/src/Filter/FilterMultiSelect/subcomponents/Trigger/FilterTriggerButton/index.ts +1 -1
- package/src/Filter/FilterMultiSelect/subcomponents/Trigger/RemovableFilterTrigger/RemovableFilterTrigger.tsx +11 -17
- package/src/Filter/FilterMultiSelect/subcomponents/Trigger/RemovableFilterTrigger/index.ts +1 -1
- package/src/Filter/FilterMultiSelect/subcomponents/Trigger/index.ts +2 -2
- package/src/Filter/FilterMultiSelect/subcomponents/index.ts +8 -11
- package/src/Filter/FilterMultiSelect/types.ts +1 -1
- package/src/Filter/FilterMultiSelect/utils/getSelectedOptionKeys.spec.ts +23 -26
- package/src/Filter/FilterMultiSelect/utils/getSelectedOptionKeys.ts +5 -8
- package/src/Filter/FilterMultiSelect/utils/getSelectedOptionLabels.spec.ts +23 -26
- package/src/Filter/FilterMultiSelect/utils/getSelectedOptionLabels.ts +7 -10
- package/src/Filter/FilterMultiSelect/utils/getTruncatedLabel.ts +4 -5
- package/src/Filter/FilterMultiSelect/utils/getTruncatedLabels.spec.ts +19 -25
- package/src/Filter/FilterMultiSelect/utils/index.ts +3 -3
- package/src/Filter/FilterSelect/FilterSelect.module.scss +1 -1
- package/src/Filter/FilterSelect/FilterSelect.spec.tsx +98 -108
- package/src/Filter/FilterSelect/FilterSelect.tsx +31 -41
- package/src/Filter/FilterSelect/_docs/FilterSelect.mdx +4 -4
- package/src/Filter/FilterSelect/_docs/FilterSelect.stickersheet.stories.tsx +71 -125
- package/src/Filter/FilterSelect/_docs/FilterSelect.stories.tsx +29 -33
- package/src/Filter/FilterSelect/_docs/mockData.ts +47 -47
- package/src/Filter/FilterSelect/index.ts +2 -2
- package/src/Filter/FilterSelect/types.ts +1 -1
- package/src/Filter/_docs/controls/renderTriggerControls.tsx +10 -12
- package/src/Filter/index.ts +7 -7
- package/src/GuidanceBlock/GuidanceBlock.module.css +1 -2
- package/src/GuidanceBlock/GuidanceBlock.spec.tsx +30 -31
- package/src/GuidanceBlock/GuidanceBlock.tsx +48 -63
- package/src/GuidanceBlock/_docs/GuidanceBlock.mdx +3 -3
- package/src/GuidanceBlock/_docs/GuidanceBlock.stickersheet.stories.tsx +23 -26
- package/src/GuidanceBlock/_docs/GuidanceBlock.stories.tsx +34 -35
- package/src/GuidanceBlock/index.ts +1 -1
- package/src/GuidanceBlock/types.ts +7 -7
- package/src/Heading/Heading.module.scss +3 -3
- package/src/Heading/Heading.spec.tsx +22 -22
- package/src/Heading/Heading.tsx +48 -49
- package/src/Heading/_docs/Heading.mdx +4 -4
- package/src/Heading/_docs/Heading.stickersheet.stories.tsx +21 -26
- package/src/Heading/_docs/Heading.stories.tsx +12 -12
- package/src/Heading/index.ts +1 -1
- package/src/Icon/AcademyIcon.tsx +3 -3
- package/src/Icon/ActionOffIcon.tsx +3 -3
- package/src/Icon/ActionOffWhiteIcon.tsx +3 -3
- package/src/Icon/ActionOnIcon.tsx +3 -3
- package/src/Icon/AddIcon.tsx +3 -3
- package/src/Icon/AddLinkIcon.tsx +3 -3
- package/src/Icon/AddWhiteIcon.tsx +5 -11
- package/src/Icon/AiIcon.tsx +3 -3
- package/src/Icon/ArchivedIcon.tsx +3 -3
- package/src/Icon/ArchivedWhiteIcon.tsx +4 -7
- package/src/Icon/ArrowBackwardIcon.tsx +3 -3
- package/src/Icon/ArrowDownIcon.tsx +4 -7
- package/src/Icon/ArrowForwardIcon.tsx +3 -3
- package/src/Icon/ArrowLeftIcon.tsx +3 -3
- package/src/Icon/ArrowRightIcon.tsx +3 -3
- package/src/Icon/ArrowUpIcon.tsx +4 -7
- package/src/Icon/AssignmentIcon.tsx +3 -3
- package/src/Icon/BlankIcon.tsx +3 -3
- package/src/Icon/BoldIcon.tsx +3 -3
- package/src/Icon/BookmarkOffIcon.tsx +3 -3
- package/src/Icon/BookmarkOnIcon.tsx +4 -7
- package/src/Icon/BranchingIcon.tsx +3 -3
- package/src/Icon/BullettedListIcon.tsx +3 -3
- package/src/Icon/CaMonogramIcon.tsx +3 -3
- package/src/Icon/CameraIcon.tsx +3 -3
- package/src/Icon/CautionIcon.tsx +3 -3
- package/src/Icon/CautionWhiteIcon.tsx +3 -3
- package/src/Icon/CheckIcon.tsx +3 -3
- package/src/Icon/ChevronDownIcon.tsx +4 -7
- package/src/Icon/ChevronLeftIcon.tsx +4 -7
- package/src/Icon/ChevronRightIcon.tsx +4 -7
- package/src/Icon/ChevronUpIcon.tsx +4 -7
- package/src/Icon/ClearIcon.tsx +3 -3
- package/src/Icon/ClearWhiteIcon.tsx +4 -7
- package/src/Icon/CloseIcon.tsx +3 -3
- package/src/Icon/ClosedIcon.tsx +3 -3
- package/src/Icon/ClosedWhiteIcon.tsx +3 -3
- package/src/Icon/CommentAddIcon.tsx +3 -3
- package/src/Icon/CommentAddWhiteIcon.tsx +3 -3
- package/src/Icon/CommentBankIcon.tsx +3 -3
- package/src/Icon/CommentDisabledIcon.tsx +3 -3
- package/src/Icon/CommentDisabledWhiteIcon.tsx +3 -3
- package/src/Icon/CommentIcon.tsx +3 -3
- package/src/Icon/CommentWhiteIcon.tsx +4 -7
- package/src/Icon/CommunicationsIcon.tsx +3 -3
- package/src/Icon/CompetencyLibraryIcon.tsx +3 -3
- package/src/Icon/ConfigureIcon.tsx +3 -3
- package/src/Icon/ConnectIcon.tsx +3 -3
- package/src/Icon/ConnectLineIcon.tsx +3 -3
- package/src/Icon/CustomIcon.tsx +3 -3
- package/src/Icon/DashboardIcon.tsx +3 -3
- package/src/Icon/DateEndIcon.tsx +3 -3
- package/src/Icon/DateEndWhiteIcon.tsx +3 -3
- package/src/Icon/DateRangeIcon.tsx +3 -3
- package/src/Icon/DateRangeWhiteIcon.tsx +3 -3
- package/src/Icon/DateStartIcon.tsx +3 -3
- package/src/Icon/DateStartWhiteIcon.tsx +3 -3
- package/src/Icon/DecreaseIndentIcon.tsx +3 -3
- package/src/Icon/DeltaBareIcon.tsx +4 -7
- package/src/Icon/DeltaBareWhiteIcon.tsx +3 -3
- package/src/Icon/DeltaFlatIcon.tsx +3 -3
- package/src/Icon/DeltaIcon.tsx +3 -3
- package/src/Icon/DeltaNegativeIcon.tsx +3 -3
- package/src/Icon/DeltaPositiveIcon.tsx +3 -3
- package/src/Icon/DeltaWhiteIcon.tsx +4 -7
- package/src/Icon/DemographicsIcon.tsx +3 -3
- package/src/Icon/DepartmentIcon.tsx +3 -3
- package/src/Icon/DraftIcon.tsx +3 -3
- package/src/Icon/DraftWhiteIcon.tsx +3 -3
- package/src/Icon/DragIcon.tsx +3 -3
- package/src/Icon/DuplicateIcon.tsx +3 -3
- package/src/Icon/EditIcon.tsx +3 -3
- package/src/Icon/EffectivenessIcon.tsx +3 -3
- package/src/Icon/EllipsisIcon.tsx +3 -3
- package/src/Icon/EmailIcon.tsx +3 -3
- package/src/Icon/EmptyIcon.tsx +3 -3
- package/src/Icon/EmptyWhiteIcon.tsx +3 -3
- package/src/Icon/EndIcon.tsx +3 -3
- package/src/Icon/EngagementIcon.tsx +3 -3
- package/src/Icon/EngagementWhiteIcon.tsx +3 -3
- package/src/Icon/EqualIcon.tsx +3 -3
- package/src/Icon/EqualWhiteIcon.tsx +5 -11
- package/src/Icon/ExclamationIcon.tsx +3 -3
- package/src/Icon/ExclamationOctagonIcon.tsx +3 -3
- package/src/Icon/ExclamationOctagonWhiteIcon.tsx +4 -7
- package/src/Icon/ExclamationWhiteIcon.tsx +3 -3
- package/src/Icon/ExperienceIcon.tsx +3 -3
- package/src/Icon/ExportIcon.tsx +3 -3
- package/src/Icon/ExportWhiteIcon.tsx +4 -7
- package/src/Icon/ExternalLinkIcon.tsx +3 -3
- package/src/Icon/FaceDissatisfiedIcon.tsx +3 -3
- package/src/Icon/FaceDissatisfiedWhiteIcon.tsx +3 -3
- package/src/Icon/FaceNeutralIcon.tsx +3 -3
- package/src/Icon/FaceNeutralWhiteIcon.tsx +5 -11
- package/src/Icon/FaceSatisfiedIcon.tsx +3 -3
- package/src/Icon/FaceSatisfiedWhiteIcon.tsx +3 -3
- package/src/Icon/FaceVeryDissatisfiedIcon.tsx +3 -3
- package/src/Icon/FaceVeryDissatisfiedWhiteIcon.tsx +4 -6
- package/src/Icon/FaceVerySatisfiedIcon.tsx +3 -3
- package/src/Icon/FaceVerySatisfiedWhiteIcon.tsx +3 -3
- package/src/Icon/FactorsIcon.tsx +3 -3
- package/src/Icon/FavoriteOffIcon.tsx +3 -3
- package/src/Icon/FavoriteOnIcon.tsx +3 -3
- package/src/Icon/FeedbackClassifyIcon.tsx +3 -3
- package/src/Icon/FeedbackClassifyWhiteIcon.tsx +3 -3
- package/src/Icon/FeedbackCompletedIcon.tsx +3 -3
- package/src/Icon/FeedbackCompletedWhiteIcon.tsx +4 -7
- package/src/Icon/FeedbackReportIcon.tsx +3 -3
- package/src/Icon/FeedbackReportWhiteIcon.tsx +3 -3
- package/src/Icon/FeedbackReviewIcon.tsx +3 -3
- package/src/Icon/FeedbackReviewWhiteIcon.tsx +3 -3
- package/src/Icon/FeedbackShareIcon.tsx +3 -3
- package/src/Icon/FeedbackShareWhiteIcon.tsx +3 -3
- package/src/Icon/FileIcon.tsx +3 -3
- package/src/Icon/FileWhiteIcon.tsx +3 -3
- package/src/Icon/FilterIcon.tsx +3 -3
- package/src/Icon/FlagOffIcon.tsx +3 -3
- package/src/Icon/FlagOffWhiteIcon.tsx +3 -3
- package/src/Icon/FlagOnIcon.tsx +3 -3
- package/src/Icon/FullIcon.tsx +3 -3
- package/src/Icon/GridViewIcon.tsx +3 -3
- package/src/Icon/GuidanceIcon.tsx +3 -3
- package/src/Icon/HamburgerIcon.tsx +3 -3
- package/src/Icon/HeatmapIcon.tsx +3 -3
- package/src/Icon/HeatmapWhiteIcon.tsx +3 -3
- package/src/Icon/HierarchyIcon.tsx +3 -3
- package/src/Icon/HomeIcon.tsx +3 -3
- package/src/Icon/ImportIcon.tsx +3 -3
- package/src/Icon/ImportWhiteIcon.tsx +4 -7
- package/src/Icon/IncreaseIndentIcon.tsx +3 -3
- package/src/Icon/IndicatorActiveIcon.tsx +3 -3
- package/src/Icon/IndicatorInactiveIcon.tsx +3 -3
- package/src/Icon/InformationIcon.tsx +3 -3
- package/src/Icon/InformationWhiteIcon.tsx +4 -7
- package/src/Icon/InsightIcon.tsx +3 -3
- package/src/Icon/InsightsIcon.tsx +3 -3
- package/src/Icon/InvisibleIcon.tsx +3 -3
- package/src/Icon/ItalicsIcon.tsx +3 -3
- package/src/Icon/KebabIcon.tsx +3 -3
- package/src/Icon/KioskIcon.tsx +3 -3
- package/src/Icon/KioskWhiteIcon.tsx +3 -3
- package/src/Icon/LaunchIcon.tsx +3 -3
- package/src/Icon/LaunchWhiteIcon.tsx +4 -7
- package/src/Icon/LeaderboardIcon.tsx +3 -3
- package/src/Icon/ListViewIcon.tsx +3 -3
- package/src/Icon/LiveIcon.tsx +3 -3
- package/src/Icon/LockIcon.tsx +3 -3
- package/src/Icon/LockWhiteIcon.tsx +3 -3
- package/src/Icon/LogOutIcon.tsx +3 -3
- package/src/Icon/MaximizeIcon.tsx +3 -3
- package/src/Icon/MeatballsIcon.tsx +3 -3
- package/src/Icon/MinimizeIcon.tsx +3 -3
- package/src/Icon/MinusIcon.tsx +3 -3
- package/src/Icon/NavigatorIcon.tsx +3 -3
- package/src/Icon/NotificationIcon.tsx +3 -3
- package/src/Icon/NumberedListIcon.tsx +3 -3
- package/src/Icon/NumberedListRtlIcon.tsx +3 -3
- package/src/Icon/OpenIcon.tsx +3 -3
- package/src/Icon/OpenWhiteIcon.tsx +3 -3
- package/src/Icon/OrganizationIcon.tsx +3 -3
- package/src/Icon/ParticipationIcon.tsx +3 -3
- package/src/Icon/ParticipationWhiteIcon.tsx +4 -7
- package/src/Icon/PauseIcon.tsx +3 -3
- package/src/Icon/PauseWhiteIcon.tsx +4 -7
- package/src/Icon/PercentageIcon.tsx +3 -3
- package/src/Icon/PermissionsIcon.tsx +3 -3
- package/src/Icon/PersonIcon.tsx +3 -3
- package/src/Icon/PhotoUploadIcon.tsx +3 -3
- package/src/Icon/PowerIcon.tsx +3 -3
- package/src/Icon/PrintIcon.tsx +3 -3
- package/src/Icon/PrintWhiteIcon.tsx +3 -3
- package/src/Icon/ProcessManagerIcon.tsx +3 -3
- package/src/Icon/PromotionIcon.tsx +3 -3
- package/src/Icon/PromotionWhiteIcon.tsx +3 -3
- package/src/Icon/QuestionIcon.tsx +3 -3
- package/src/Icon/QuestionWhiteIcon.tsx +3 -3
- package/src/Icon/QuestionsIcon.tsx +3 -3
- package/src/Icon/RedoIcon.tsx +3 -3
- package/src/Icon/RefreshIcon.tsx +3 -3
- package/src/Icon/RemoveLinkIcon.tsx +3 -3
- package/src/Icon/RepeatsIcon.tsx +3 -3
- package/src/Icon/ReportIcon.tsx +3 -3
- package/src/Icon/ReportSharingIcon.tsx +3 -3
- package/src/Icon/RestoreIcon.tsx +3 -3
- package/src/Icon/SaveIcon.tsx +3 -3
- package/src/Icon/SearchIcon.tsx +3 -3
- package/src/Icon/SearchWhiteIcon.tsx +3 -3
- package/src/Icon/SecurityTipIcon.tsx +3 -3
- package/src/Icon/SendIcon.tsx +3 -3
- package/src/Icon/SendRtlIcon.tsx +3 -3
- package/src/Icon/SettingsIcon.tsx +3 -3
- package/src/Icon/SettingsWhiteIcon.tsx +3 -3
- package/src/Icon/ShareIcon.tsx +3 -3
- package/src/Icon/SkipIcon.tsx +3 -3
- package/src/Icon/SkipWhiteIcon.tsx +5 -11
- package/src/Icon/SortAscendingIcon.tsx +3 -3
- package/src/Icon/SortDescendingIcon.tsx +3 -3
- package/src/Icon/SpinnerIcon.tsx +14 -102
- package/src/Icon/StarOffIcon.tsx +3 -3
- package/src/Icon/StarOnIcon.tsx +3 -3
- package/src/Icon/StartIcon.tsx +3 -3
- package/src/Icon/SubtractIcon.tsx +3 -3
- package/src/Icon/SubtractWhiteIcon.tsx +4 -7
- package/src/Icon/SuccessIcon.tsx +3 -3
- package/src/Icon/SuccessWhiteIcon.tsx +5 -11
- package/src/Icon/SupportIcon.tsx +3 -3
- package/src/Icon/SurveysIcon.tsx +3 -3
- package/src/Icon/SurveysWhiteIcon.tsx +3 -3
- package/src/Icon/SyncIcon.tsx +3 -3
- package/src/Icon/TagIcon.tsx +3 -3
- package/src/Icon/TasksIcon.tsx +3 -3
- package/src/Icon/TasksWhiteIcon.tsx +3 -3
- package/src/Icon/TemplateIcon.tsx +3 -3
- package/src/Icon/TemplateWhiteIcon.tsx +3 -3
- package/src/Icon/TextAnalyticsIcon.tsx +3 -3
- package/src/Icon/TextAnalyticsWhiteIcon.tsx +3 -3
- package/src/Icon/ThumbsDownIcon.tsx +3 -3
- package/src/Icon/ThumbsDownOffIcon.tsx +3 -3
- package/src/Icon/ThumbsDownOnIcon.tsx +3 -3
- package/src/Icon/ThumbsUpIcon.tsx +3 -3
- package/src/Icon/ThumbsUpOffIcon.tsx +3 -3
- package/src/Icon/ThumbsUpOnIcon.tsx +3 -3
- package/src/Icon/TimeIcon.tsx +3 -3
- package/src/Icon/TimeWhiteIcon.tsx +4 -7
- package/src/Icon/TranslationIcon.tsx +3 -3
- package/src/Icon/TrashIcon.tsx +3 -3
- package/src/Icon/UnattributedIcon.tsx +3 -3
- package/src/Icon/UnattributedWhiteIcon.tsx +3 -3
- package/src/Icon/UnderlineIcon.tsx +3 -3
- package/src/Icon/UndoIcon.tsx +3 -3
- package/src/Icon/UserAddIcon.tsx +3 -3
- package/src/Icon/UserDeleteIcon.tsx +3 -3
- package/src/Icon/UserExitIcon.tsx +3 -3
- package/src/Icon/UserIcon.tsx +3 -3
- package/src/Icon/UserSelectIcon.tsx +3 -3
- package/src/Icon/UserSettingsIcon.tsx +3 -3
- package/src/Icon/UserUpdateIcon.tsx +3 -3
- package/src/Icon/UsersIcon.tsx +3 -3
- package/src/Icon/VisibleIcon.tsx +3 -3
- package/src/Icon/WritingIcon.tsx +3 -3
- package/src/Icon/ZoomInIcon.tsx +3 -3
- package/src/Icon/ZoomOutIcon.tsx +3 -3
- package/src/Icon/_docs/Icon.docs.stories.tsx +20 -22
- package/src/Icon/_docs/Icon.mdx +5 -7
- package/src/Icon/_docs/Icon.stickersheet.stories.tsx +10 -15
- package/src/Icon/_docs/icon.module.scss +1 -1
- package/src/Icon/bin/Template.tsx +3 -3
- package/src/Icon/bin/utils/insertSvgData.spec.ts +10 -12
- package/src/Icon/bin/utils/insertSvgData.ts +8 -11
- package/src/Icon/bin/utils/svgToComponentTitle.spec.ts +8 -8
- package/src/Icon/bin/utils/svgToComponentTitle.ts +3 -3
- package/src/Icon/bin/wrapSVGs.ts +18 -29
- package/src/Icon/index.ts +243 -243
- package/src/Icon/subcomponents/SVG/SVG.spec.tsx +9 -9
- package/src/Icon/subcomponents/SVG/SVG.tsx +13 -23
- package/src/Icon/subcomponents/SVG/index.ts +1 -1
- package/src/Icon/types.ts +1 -1
- package/src/Illustration/Scene/BrandMomentCaptureIntro/BrandMomentCaptureIntro.tsx +8 -9
- package/src/Illustration/Scene/BrandMomentCaptureIntro/_docs/BrandMomentCaptureIntro.mdx +10 -3
- package/src/Illustration/Scene/BrandMomentCaptureIntro/_docs/BrandMomentCaptureIntro.stickersheet.stories.tsx +7 -13
- package/src/Illustration/Scene/BrandMomentCaptureIntro/_docs/BrandMomentCaptureIntro.stories.tsx +4 -4
- package/src/Illustration/Scene/BrandMomentCaptureIntro/index.ts +1 -1
- package/src/Illustration/Scene/Scene.tsx +128 -178
- package/src/Illustration/Scene/_docs/Scene.mdx +5 -8
- package/src/Illustration/Scene/_docs/Scene.stickersheet.stories.tsx +7 -10
- package/src/Illustration/Scene/_docs/Scene.stories.tsx +4 -4
- package/src/Illustration/Scene/index.ts +2 -2
- package/src/Illustration/Spot/Spot.tsx +5 -5
- package/src/Illustration/Spot/_docs/Spot.mdx +4 -4
- package/src/Illustration/Spot/_docs/Spot.stickersheet.stories.tsx +134 -134
- package/src/Illustration/Spot/_docs/Spot.stories.tsx +12 -14
- package/src/Illustration/Spot/index.ts +1 -1
- package/src/Illustration/index.ts +2 -2
- package/src/Illustration/subcomponents/Base/Base.module.scss +8 -8
- package/src/Illustration/subcomponents/Base/Base.tsx +10 -20
- package/src/Illustration/subcomponents/Base/index.ts +1 -1
- package/src/Illustration/subcomponents/VideoPlayer/VideoPlayer.spec.tsx +21 -27
- package/src/Illustration/subcomponents/VideoPlayer/VideoPlayer.stickersheet.stories.tsx +6 -9
- package/src/Illustration/subcomponents/VideoPlayer/VideoPlayer.stories.tsx +12 -12
- package/src/Illustration/subcomponents/VideoPlayer/VideoPlayer.tsx +22 -31
- package/src/Illustration/subcomponents/VideoPlayer/index.ts +1 -1
- package/src/Illustration/utils/canPlayWebm.ts +3 -3
- package/src/Illustration/utils/usePausePlay.tsx +5 -13
- package/src/Input/Input/Input.module.scss +6 -8
- package/src/Input/Input/Input.tsx +12 -16
- package/src/Input/Input/_docs/Input.mdx +8 -4
- package/src/Input/Input/_docs/Input.stickersheet.stories.tsx +21 -40
- package/src/Input/Input/_docs/Input.stories.tsx +12 -14
- package/src/Input/Input/index.ts +2 -2
- package/src/Input/Input/types.ts +2 -2
- package/src/Input/InputRange/InputRange.module.scss +3 -3
- package/src/Input/InputRange/InputRange.spec.tsx +11 -26
- package/src/Input/InputRange/InputRange.tsx +13 -20
- package/src/Input/InputRange/_docs/InputRange.mdx +3 -3
- package/src/Input/InputRange/_docs/InputRange.stickersheet.stories.tsx +12 -24
- package/src/Input/InputRange/_docs/InputRange.stories.tsx +11 -17
- package/src/Input/InputRange/index.ts +1 -1
- package/src/Input/InputSearch/InputSearch.module.scss +4 -4
- package/src/Input/InputSearch/InputSearch.spec.tsx +18 -22
- package/src/Input/InputSearch/InputSearch.tsx +15 -17
- package/src/Input/InputSearch/_docs/InputSearch.mdx +4 -3
- package/src/Input/InputSearch/_docs/InputSearch.stickersheet.stories.tsx +16 -28
- package/src/Input/InputSearch/_docs/InputSearch.stories.tsx +12 -12
- package/src/Input/InputSearch/index.ts +1 -1
- package/src/Input/index.ts +3 -3
- package/src/KaizenProvider/KaizenProvider.spec.tsx +11 -16
- package/src/KaizenProvider/KaizenProvider.tsx +7 -10
- package/src/KaizenProvider/_docs/KaizenProvider.mdx +13 -15
- package/src/KaizenProvider/_docs/internationalization-in-kaizen.mdx +10 -11
- package/src/KaizenProvider/index.ts +1 -1
- package/src/KaizenProvider/subcomponents/FontDefinitions/FontDefinitions.tsx +1 -1
- package/src/KaizenProvider/subcomponents/FontDefinitions/index.ts +1 -1
- package/src/KaizenProvider/subcomponents/OptionalIntlProvider/OptionalIntlProvider.spec.tsx +15 -15
- package/src/KaizenProvider/subcomponents/OptionalIntlProvider/OptionalIntlProvider.tsx +6 -9
- package/src/KaizenProvider/subcomponents/OptionalIntlProvider/index.ts +1 -1
- package/src/Label/Label.module.scss +4 -4
- package/src/Label/Label.tsx +16 -16
- package/src/Label/_docs/Label.mdx +9 -3
- package/src/Label/_docs/Label.stickersheet.stories.tsx +26 -65
- package/src/Label/_docs/Label.stories.tsx +18 -24
- package/src/Label/index.ts +1 -1
- package/src/Label/types.ts +2 -2
- package/src/LabelledMessage/LabelledMessage.module.scss +1 -1
- package/src/LabelledMessage/LabelledMessage.tsx +6 -9
- package/src/LabelledMessage/_docs/LabelledMessage.mdx +3 -3
- package/src/LabelledMessage/_docs/LabelledMessage.stickersheet.stories.tsx +8 -11
- package/src/LabelledMessage/_docs/LabelledMessage.stories.tsx +6 -6
- package/src/LabelledMessage/index.ts +1 -1
- package/src/LikertScaleLegacy/LikertScaleLegacy.module.scss +8 -9
- package/src/LikertScaleLegacy/LikertScaleLegacy.spec.tsx +18 -20
- package/src/LikertScaleLegacy/LikertScaleLegacy.tsx +43 -58
- package/src/LikertScaleLegacy/_docs/LikertScaleLegacy.mdx +3 -3
- package/src/LikertScaleLegacy/_docs/LikertScaleLegacy.stickersheet.stories.tsx +23 -26
- package/src/LikertScaleLegacy/_docs/LikertScaleLegacy.stories.tsx +16 -22
- package/src/LikertScaleLegacy/index.ts +2 -2
- package/src/LikertScaleLegacy/types.ts +1 -1
- package/src/LikertScaleLegacy/utils/determineSelectionFromKeyPress.ts +5 -5
- package/src/Loading/LoadingGraphic/LoadingGraphic.module.scss +2 -2
- package/src/Loading/LoadingGraphic/LoadingGraphic.tsx +13 -19
- package/src/Loading/LoadingGraphic/_docs/LoadingGraphic.mdx +5 -5
- package/src/Loading/LoadingGraphic/_docs/LoadingGraphic.stickersheet.stories.tsx +8 -11
- package/src/Loading/LoadingGraphic/_docs/LoadingGraphic.stories.tsx +17 -38
- package/src/Loading/LoadingGraphic/index.ts +1 -1
- package/src/Loading/LoadingHeading/LoadingHeading.module.scss +10 -24
- package/src/Loading/LoadingHeading/LoadingHeading.tsx +7 -7
- package/src/Loading/LoadingHeading/_docs/LoadingHeading.mdx +3 -3
- package/src/Loading/LoadingHeading/_docs/LoadingHeading.stickersheet.stories.tsx +17 -25
- package/src/Loading/LoadingHeading/_docs/LoadingHeading.stories.tsx +18 -18
- package/src/Loading/LoadingHeading/index.ts +1 -1
- package/src/Loading/LoadingInput/LoadingInput.module.scss +2 -2
- package/src/Loading/LoadingInput/LoadingInput.tsx +6 -6
- package/src/Loading/LoadingInput/_docs/LoadingInput.mdx +3 -3
- package/src/Loading/LoadingInput/_docs/LoadingInput.stories.tsx +10 -10
- package/src/Loading/LoadingInput/index.ts +1 -1
- package/src/Loading/LoadingParagraph/LoadingParagraph.module.scss +3 -3
- package/src/Loading/LoadingParagraph/LoadingParagraph.tsx +6 -6
- package/src/Loading/LoadingParagraph/_docs/LoadingParagraph.mdx +3 -3
- package/src/Loading/LoadingParagraph/_docs/LoadingParagraph.stickersheet.stories.tsx +10 -13
- package/src/Loading/LoadingParagraph/_docs/LoadingParagraph.stories.tsx +10 -10
- package/src/Loading/LoadingParagraph/index.ts +1 -1
- package/src/Loading/LoadingSpinner/LoadingSpinner.tsx +12 -16
- package/src/Loading/LoadingSpinner/_docs/LoadingSpinner.mdx +3 -4
- package/src/Loading/LoadingSpinner/_docs/LoadingSpinner.stickersheet.stories.tsx +8 -14
- package/src/Loading/LoadingSpinner/_docs/LoadingSpinner.stories.tsx +11 -11
- package/src/Loading/LoadingSpinner/index.ts +1 -1
- package/src/Loading/LoadingSpinner/subcomponents/SpinnerIcon.tsx +8 -29
- package/src/Loading/LoadingSpinner/subcomponents/index.ts +1 -1
- package/src/Loading/_mixins.scss +3 -3
- package/src/Loading/index.ts +5 -5
- package/src/Modal/ConfirmationModal/ConfirmationModal.module.scss +6 -6
- package/src/Modal/ConfirmationModal/ConfirmationModal.spec.tsx +16 -25
- package/src/Modal/ConfirmationModal/ConfirmationModal.tsx +39 -64
- package/src/Modal/ConfirmationModal/_docs/ConfirmationModal.mdx +3 -3
- package/src/Modal/ConfirmationModal/_docs/ConfirmationModal.stories.tsx +16 -20
- package/src/Modal/ConfirmationModal/index.ts +1 -1
- package/src/Modal/ContextModal/ContextModal.module.scss +4 -4
- package/src/Modal/ContextModal/ContextModal.spec.tsx +12 -15
- package/src/Modal/ContextModal/ContextModal.tsx +16 -29
- package/src/Modal/ContextModal/_docs/ContextModal.mdx +6 -3
- package/src/Modal/ContextModal/_docs/ContextModal.stories.tsx +24 -36
- package/src/Modal/ContextModal/index.ts +1 -1
- package/src/Modal/GenericModal/GenericModal.module.scss +12 -16
- package/src/Modal/GenericModal/GenericModal.spec.tsx +22 -22
- package/src/Modal/GenericModal/GenericModal.tsx +18 -21
- package/src/Modal/GenericModal/_docs/GenericModal.mdx +5 -4
- package/src/Modal/GenericModal/_docs/GenericModal.spec.stories.tsx +26 -38
- package/src/Modal/GenericModal/_docs/GenericModal.stories.tsx +7 -11
- package/src/Modal/GenericModal/context/ModalContext.ts +3 -3
- package/src/Modal/GenericModal/index.ts +7 -7
- package/src/Modal/GenericModal/subcomponents/ModalAccessibleDescription/ModalAccessibleDescription.tsx +4 -4
- package/src/Modal/GenericModal/subcomponents/ModalAccessibleDescription/index.ts +1 -1
- package/src/Modal/GenericModal/subcomponents/ModalAccessibleLabel/ModalAccessibleLabel.module.scss +3 -3
- package/src/Modal/GenericModal/subcomponents/ModalAccessibleLabel/ModalAccessibleLabel.tsx +6 -9
- package/src/Modal/GenericModal/subcomponents/ModalAccessibleLabel/index.ts +1 -1
- package/src/Modal/GenericModal/subcomponents/ModalBody/ModalBody.module.scss +2 -2
- package/src/Modal/GenericModal/subcomponents/ModalBody/ModalBody.tsx +5 -8
- package/src/Modal/GenericModal/subcomponents/ModalBody/index.ts +1 -1
- package/src/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.module.scss +3 -3
- package/src/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.tsx +15 -15
- package/src/Modal/GenericModal/subcomponents/ModalFooter/index.ts +1 -1
- package/src/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.module.scss +3 -3
- package/src/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.tsx +7 -11
- package/src/Modal/GenericModal/subcomponents/ModalHeader/index.ts +1 -1
- package/src/Modal/InputEditModal/InputEditModal.module.scss +4 -4
- package/src/Modal/InputEditModal/InputEditModal.spec.tsx +13 -13
- package/src/Modal/InputEditModal/InputEditModal.tsx +16 -16
- package/src/Modal/InputEditModal/_docs/InputEditModal.mdx +3 -4
- package/src/Modal/InputEditModal/_docs/InputEditModal.stories.tsx +21 -36
- package/src/Modal/InputEditModal/index.ts +1 -1
- package/src/Modal/_docs/controls.tsx +5 -5
- package/src/Modal/index.ts +4 -4
- package/src/Modal/util/console.ts +4 -6
- package/src/MultiSelect/MultiSelect.module.scss +1 -1
- package/src/MultiSelect/MultiSelect.spec.tsx +123 -140
- package/src/MultiSelect/MultiSelect.tsx +23 -31
- package/src/MultiSelect/_docs/MultiSelect.mdx +3 -4
- package/src/MultiSelect/_docs/MultiSelect.stickersheet.stories.tsx +26 -29
- package/src/MultiSelect/_docs/MultiSelect.stories.tsx +29 -29
- package/src/MultiSelect/index.ts +1 -1
- package/src/MultiSelect/subcomponents/Checkbox/Checkbox.module.scss +3 -3
- package/src/MultiSelect/subcomponents/Checkbox/Checkbox.spec.tsx +26 -32
- package/src/MultiSelect/subcomponents/Checkbox/Checkbox.tsx +17 -22
- package/src/MultiSelect/subcomponents/Checkbox/_docs/Checkbox.stickersheet.stories.tsx +14 -21
- package/src/MultiSelect/subcomponents/Checkbox/_docs/Checkbox.stories.tsx +16 -18
- package/src/MultiSelect/subcomponents/Checkbox/index.ts +1 -1
- package/src/MultiSelect/subcomponents/MultiSelectOptionField/MultiSelectOptionField.module.scss +6 -6
- package/src/MultiSelect/subcomponents/MultiSelectOptionField/MultiSelectOptionField.spec.tsx +23 -27
- package/src/MultiSelect/subcomponents/MultiSelectOptionField/MultiSelectOptionField.tsx +12 -15
- package/src/MultiSelect/subcomponents/MultiSelectOptionField/_docs/MultiSelectOptionField.stickersheet.stories.tsx +29 -32
- package/src/MultiSelect/subcomponents/MultiSelectOptionField/_docs/MultiSelectOptionField.stories.tsx +21 -25
- package/src/MultiSelect/subcomponents/MultiSelectOptionField/index.ts +1 -1
- package/src/MultiSelect/subcomponents/MultiSelectOptions/MultiSelectOptions.module.scss +1 -1
- package/src/MultiSelect/subcomponents/MultiSelectOptions/MultiSelectOptions.spec.tsx +43 -54
- package/src/MultiSelect/subcomponents/MultiSelectOptions/MultiSelectOptions.tsx +15 -19
- package/src/MultiSelect/subcomponents/MultiSelectOptions/_docs/MultiSelectOptions.stickersheet.stories.tsx +17 -20
- package/src/MultiSelect/subcomponents/MultiSelectOptions/_docs/MultiSelectOptions.stories.tsx +20 -24
- package/src/MultiSelect/subcomponents/MultiSelectOptions/index.ts +1 -1
- package/src/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.module.scss +8 -11
- package/src/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.spec.tsx +29 -37
- package/src/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.tsx +25 -31
- package/src/MultiSelect/subcomponents/MultiSelectToggle/_docs/MultiSelectToggle.stickersheet.stories.tsx +35 -57
- package/src/MultiSelect/subcomponents/MultiSelectToggle/index.ts +1 -1
- package/src/MultiSelect/subcomponents/Popover/Popover.module.scss +4 -5
- package/src/MultiSelect/subcomponents/Popover/Popover.spec.tsx +12 -16
- package/src/MultiSelect/subcomponents/Popover/Popover.tsx +14 -14
- package/src/MultiSelect/subcomponents/Popover/_docs/Popover.stickersheet.stories.tsx +40 -45
- package/src/MultiSelect/subcomponents/Popover/_docs/Popover.stories.tsx +9 -15
- package/src/MultiSelect/subcomponents/Popover/index.ts +2 -2
- package/src/MultiSelect/types.ts +2 -2
- package/src/Notification/GlobalNotification/GlobalNotification.spec.tsx +10 -16
- package/src/Notification/GlobalNotification/GlobalNotification.tsx +4 -4
- package/src/Notification/GlobalNotification/_docs/GlobalNotification.mdx +3 -3
- package/src/Notification/GlobalNotification/_docs/GlobalNotification.stickersheet.stories.tsx +32 -38
- package/src/Notification/GlobalNotification/_docs/GlobalNotification.stories.tsx +8 -8
- package/src/Notification/GlobalNotification/index.ts +1 -1
- package/src/Notification/InlineNotification/InlineNotification.spec.tsx +12 -16
- package/src/Notification/InlineNotification/InlineNotification.tsx +13 -24
- package/src/Notification/InlineNotification/_docs/InlineNotification.mdx +3 -4
- package/src/Notification/InlineNotification/_docs/InlineNotification.stickersheet.stories.tsx +84 -91
- package/src/Notification/InlineNotification/_docs/InlineNotification.stories.tsx +16 -16
- package/src/Notification/InlineNotification/index.ts +1 -1
- package/src/Notification/ToastNotification/ToastNotification/ToastNotification.tsx +10 -8
- package/src/Notification/ToastNotification/ToastNotification/index.ts +1 -1
- package/src/Notification/ToastNotification/ToastNotificationsList/ToastNotificationsList.module.scss +2 -2
- package/src/Notification/ToastNotification/ToastNotificationsList/ToastNotificationsList.tsx +9 -12
- package/src/Notification/ToastNotification/ToastNotificationsList/index.ts +1 -1
- package/src/Notification/ToastNotification/ToastNotificationsList/subcomponents/ToastNotificationsMap/ToastNotificationsMap.tsx +24 -26
- package/src/Notification/ToastNotification/ToastNotificationsList/subcomponents/ToastNotificationsMap/index.ts +1 -1
- package/src/Notification/ToastNotification/_docs/ToastNotification.mdx +3 -3
- package/src/Notification/ToastNotification/_docs/ToastNotification.stickersheet.stories.tsx +23 -24
- package/src/Notification/ToastNotification/_docs/ToastNotification.stories.tsx +55 -63
- package/src/Notification/ToastNotification/context/ToastNotificationContext.tsx +33 -42
- package/src/Notification/ToastNotification/hooks/useToastNotification.ts +1 -1
- package/src/Notification/ToastNotification/index.ts +4 -4
- package/src/Notification/ToastNotification/types.ts +2 -2
- package/src/Notification/index.ts +3 -3
- package/src/Notification/subcomponents/CancelButton/CancelButton.tsx +4 -4
- package/src/Notification/subcomponents/CancelButton/index.ts +1 -1
- package/src/Notification/subcomponents/GenericNotification/GenericNotification.module.scss +6 -6
- package/src/Notification/subcomponents/GenericNotification/GenericNotification.stories.tsx +23 -23
- package/src/Notification/subcomponents/GenericNotification/GenericNotification.tsx +25 -50
- package/src/Notification/subcomponents/GenericNotification/_mixins.scss +7 -8
- package/src/Notification/subcomponents/GenericNotification/index.ts +1 -1
- package/src/Notification/subcomponents/NotificationHeading/NotificationHeading.tsx +8 -8
- package/src/Notification/subcomponents/NotificationHeading/index.ts +1 -1
- package/src/Notification/subcomponents/NotificationIcon/NotificationIcon.tsx +19 -31
- package/src/Notification/subcomponents/NotificationIcon/index.ts +1 -1
- package/src/Notification/types.ts +2 -12
- package/src/Pagination/Pagination.module.scss +5 -7
- package/src/Pagination/Pagination.spec.tsx +11 -11
- package/src/Pagination/Pagination.tsx +26 -44
- package/src/Pagination/_docs/Pagination.mdx +3 -3
- package/src/Pagination/_docs/Pagination.stickersheet.stories.tsx +14 -17
- package/src/Pagination/_docs/Pagination.stories.tsx +8 -8
- package/src/Pagination/index.ts +3 -3
- package/src/Pagination/subcomponents/DirectionalLink/DirectionalLink.module.scss +4 -4
- package/src/Pagination/subcomponents/DirectionalLink/DirectionalLink.tsx +10 -19
- package/src/Pagination/subcomponents/DirectionalLink/_docs/DirectionalLink.mdx +3 -3
- package/src/Pagination/subcomponents/DirectionalLink/_docs/DirectionalLink.stickersheet.stories.tsx +27 -42
- package/src/Pagination/subcomponents/DirectionalLink/_docs/DirectionalLink.stories.tsx +6 -6
- package/src/Pagination/subcomponents/DirectionalLink/index.ts +1 -1
- package/src/Pagination/subcomponents/PaginationLink/PaginationLink.module.scss +9 -17
- package/src/Pagination/subcomponents/PaginationLink/PaginationLink.tsx +6 -9
- package/src/Pagination/subcomponents/PaginationLink/_docs/PaginationLink.mdx +3 -3
- package/src/Pagination/subcomponents/PaginationLink/_docs/PaginationLink.stickersheet.stories.tsx +23 -41
- package/src/Pagination/subcomponents/PaginationLink/_docs/PaginationLink.stories.tsx +6 -6
- package/src/Pagination/subcomponents/PaginationLink/index.ts +1 -1
- package/src/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.tsx +4 -7
- package/src/Pagination/subcomponents/TruncateIndicator/index.ts +1 -1
- package/src/Pagination/utils/createRange.spec.ts +3 -3
- package/src/Popover/Popover.module.scss +9 -10
- package/src/Popover/Popover.tsx +61 -94
- package/src/Popover/_docs/Popover.mdx +12 -10
- package/src/Popover/_docs/Popover.stickersheet.stories.tsx +16 -19
- package/src/Popover/_docs/Popover.stories.tsx +8 -13
- package/src/Popover/index.ts +1 -1
- package/src/Popover/types.ts +10 -15
- package/src/Popover/utils/classMappers.tsx +24 -27
- package/src/ProgressBar/ProgressBar.module.scss +4 -9
- package/src/ProgressBar/ProgressBar.spec.tsx +10 -10
- package/src/ProgressBar/ProgressBar.tsx +14 -19
- package/src/ProgressBar/_docs/ProgressBar.mdx +3 -4
- package/src/ProgressBar/_docs/ProgressBar.stickersheet.stories.tsx +35 -42
- package/src/ProgressBar/_docs/ProgressBar.stories.tsx +19 -19
- package/src/ProgressBar/index.ts +1 -1
- package/src/ProgressBar/subcomponents/Label/Label.module.scss +2 -2
- package/src/ProgressBar/subcomponents/Label/Label.tsx +5 -5
- package/src/ProgressBar/subcomponents/Label/index.ts +1 -1
- package/src/ProgressBar/utils/calculatePercentage.spec.ts +3 -3
- package/src/ProgressBar/utils/calculatePercentage.ts +2 -7
- package/src/Radio/Radio/Radio.module.scss +9 -15
- package/src/Radio/Radio/Radio.tsx +9 -21
- package/src/Radio/Radio/_docs/Radio.mdx +4 -4
- package/src/Radio/Radio/_docs/Radio.stickersheet.stories.tsx +11 -23
- package/src/Radio/Radio/_docs/Radio.stories.tsx +8 -8
- package/src/Radio/Radio/index.ts +1 -1
- package/src/Radio/RadioField/RadioField.module.scss +4 -4
- package/src/Radio/RadioField/RadioField.tsx +19 -17
- package/src/Radio/RadioField/_docs/RadioField.mdx +3 -3
- package/src/Radio/RadioField/_docs/RadioField.stickersheet.stories.tsx +14 -31
- package/src/Radio/RadioField/_docs/RadioField.stories.tsx +11 -15
- package/src/Radio/RadioField/index.ts +1 -1
- package/src/Radio/RadioGroup/RadioGroup.module.scss +2 -2
- package/src/Radio/RadioGroup/RadioGroup.spec.tsx +13 -19
- package/src/Radio/RadioGroup/RadioGroup.tsx +18 -19
- package/src/Radio/RadioGroup/_docs/RadioGroup.mdx +3 -3
- package/src/Radio/RadioGroup/_docs/RadioGroup.stickersheet.stories.tsx +22 -54
- package/src/Radio/RadioGroup/_docs/RadioGroup.stories.tsx +15 -15
- package/src/Radio/RadioGroup/index.ts +1 -1
- package/src/Radio/index.ts +3 -3
- package/src/RichTextEditor/EditableRichTextContent/EditableRichTextContent.module.scss +7 -8
- package/src/RichTextEditor/EditableRichTextContent/EditableRichTextContent.spec.tsx +13 -13
- package/src/RichTextEditor/EditableRichTextContent/EditableRichTextContent.tsx +15 -23
- package/src/RichTextEditor/EditableRichTextContent/_docs/EditableRichTextContent.mdx +7 -10
- package/src/RichTextEditor/EditableRichTextContent/_docs/EditableRichTextContent.stickersheet.stories.tsx +17 -26
- package/src/RichTextEditor/EditableRichTextContent/_docs/EditableRichTextContent.stories.tsx +19 -25
- package/src/RichTextEditor/EditableRichTextContent/_docs/dummyContent.json +1 -3
- package/src/RichTextEditor/EditableRichTextContent/index.ts +1 -1
- package/src/RichTextEditor/RichTextContent/RichTextContent.module.scss +1 -1
- package/src/RichTextEditor/RichTextContent/RichTextContent.tsx +16 -18
- package/src/RichTextEditor/RichTextContent/_docs/RichTextContent.mdx +3 -5
- package/src/RichTextEditor/RichTextContent/_docs/RichTextContent.stories.tsx +12 -12
- package/src/RichTextEditor/RichTextContent/_docs/dummyContent.json +1 -3
- package/src/RichTextEditor/RichTextContent/index.ts +1 -1
- package/src/RichTextEditor/RichTextEditor/RichTextEditor.module.scss +9 -11
- package/src/RichTextEditor/RichTextEditor/RichTextEditor.spec.stories.tsx +74 -78
- package/src/RichTextEditor/RichTextEditor/RichTextEditor.spec.tsx +69 -77
- package/src/RichTextEditor/RichTextEditor/RichTextEditor.tsx +63 -90
- package/src/RichTextEditor/RichTextEditor/_docs/RichTextEditor.mdx +7 -9
- package/src/RichTextEditor/RichTextEditor/_docs/RichTextEditor.stories.tsx +45 -51
- package/src/RichTextEditor/RichTextEditor/index.ts +4 -4
- package/src/RichTextEditor/RichTextEditor/schema.ts +22 -24
- package/src/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/ToggleIconButton.module.scss +5 -6
- package/src/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/ToggleIconButton.tsx +44 -50
- package/src/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/_docs/ToggleIconButton.mdx +3 -3
- package/src/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/_docs/ToggleIconButton.stickersheet.stories.tsx +13 -31
- package/src/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/_docs/ToggleIconButton.stories.tsx +7 -7
- package/src/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/index.ts +1 -1
- package/src/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/types.ts +5 -5
- package/src/RichTextEditor/RichTextEditor/subcomponents/Toolbar/Toolbar.module.scss +1 -1
- package/src/RichTextEditor/RichTextEditor/subcomponents/Toolbar/Toolbar.spec.tsx +31 -37
- package/src/RichTextEditor/RichTextEditor/subcomponents/Toolbar/Toolbar.tsx +21 -36
- package/src/RichTextEditor/RichTextEditor/subcomponents/Toolbar/_docs/Toolbar.mdx +3 -3
- package/src/RichTextEditor/RichTextEditor/subcomponents/Toolbar/_docs/Toolbar.stories.tsx +16 -34
- package/src/RichTextEditor/RichTextEditor/subcomponents/Toolbar/index.ts +1 -1
- package/src/RichTextEditor/RichTextEditor/subcomponents/ToolbarSection/ToolbarSection.module.scss +2 -2
- package/src/RichTextEditor/RichTextEditor/subcomponents/ToolbarSection/ToolbarSection.tsx +3 -3
- package/src/RichTextEditor/RichTextEditor/subcomponents/ToolbarSection/index.ts +1 -1
- package/src/RichTextEditor/RichTextEditor/utils/controlmap.tsx +69 -99
- package/src/RichTextEditor/RichTextEditor/utils/inputrules.ts +4 -7
- package/src/RichTextEditor/RichTextEditor/utils/keymap.ts +28 -34
- package/src/RichTextEditor/_mixins.scss +3 -3
- package/src/RichTextEditor/constants.ts +7 -7
- package/src/RichTextEditor/index.ts +9 -9
- package/src/RichTextEditor/types.ts +7 -7
- package/src/RichTextEditor/utils/commands/addMark.spec.ts +21 -21
- package/src/RichTextEditor/utils/commands/addMark.ts +3 -4
- package/src/RichTextEditor/utils/commands/fixtures/helpers.ts +19 -42
- package/src/RichTextEditor/utils/commands/fixtures/test-state.ts +11 -12
- package/src/RichTextEditor/utils/commands/getMarkAttrs.spec.ts +17 -17
- package/src/RichTextEditor/utils/commands/getMarkAttrs.ts +4 -4
- package/src/RichTextEditor/utils/commands/getMarkRange.spec.ts +18 -18
- package/src/RichTextEditor/utils/commands/getMarkRange.ts +6 -12
- package/src/RichTextEditor/utils/commands/index.ts +9 -9
- package/src/RichTextEditor/utils/commands/listIsActive.spec.ts +17 -21
- package/src/RichTextEditor/utils/commands/listIsActive.ts +5 -8
- package/src/RichTextEditor/utils/commands/markContainsSelection.spec.ts +21 -27
- package/src/RichTextEditor/utils/commands/markContainsSelection.ts +6 -13
- package/src/RichTextEditor/utils/commands/markIsActive.spec.ts +19 -25
- package/src/RichTextEditor/utils/commands/markIsActive.ts +3 -3
- package/src/RichTextEditor/utils/commands/removeMark.spec.ts +28 -32
- package/src/RichTextEditor/utils/commands/removeMark.ts +3 -3
- package/src/RichTextEditor/utils/commands/updateMark.spec.ts +36 -39
- package/src/RichTextEditor/utils/commands/updateMark.ts +3 -3
- package/src/RichTextEditor/utils/commands/validateAndRemoveMarks.spec.ts +13 -15
- package/src/RichTextEditor/utils/commands/validateAndRemoveMarks.ts +5 -7
- package/src/RichTextEditor/utils/core/createRichTextEditor.spec.ts +54 -56
- package/src/RichTextEditor/utils/core/createRichTextEditor.ts +8 -14
- package/src/RichTextEditor/utils/core/fixtures/testState.ts +12 -12
- package/src/RichTextEditor/utils/core/hooks/useRichTextEditor.spec.tsx +42 -45
- package/src/RichTextEditor/utils/core/hooks/useRichTextEditor.ts +18 -15
- package/src/RichTextEditor/utils/core/index.ts +5 -5
- package/src/RichTextEditor/utils/core/inputrules.ts +4 -4
- package/src/RichTextEditor/utils/core/state.spec.ts +12 -16
- package/src/RichTextEditor/utils/core/state.ts +6 -8
- package/src/RichTextEditor/utils/core/types.ts +3 -3
- package/src/RichTextEditor/utils/plugins/LinkManager/LinkManager.tsx +19 -35
- package/src/RichTextEditor/utils/plugins/LinkManager/components/LinkEditor/LinkEditor.tsx +9 -16
- package/src/RichTextEditor/utils/plugins/LinkManager/components/LinkEditor/index.ts +1 -1
- package/src/RichTextEditor/utils/plugins/LinkManager/components/LinkModal/LinkModal.spec.stories.tsx +8 -8
- package/src/RichTextEditor/utils/plugins/LinkManager/components/LinkModal/LinkModal.stories.tsx +5 -5
- package/src/RichTextEditor/utils/plugins/LinkManager/components/LinkModal/LinkModal.tsx +13 -15
- package/src/RichTextEditor/utils/plugins/LinkManager/components/LinkModal/index.ts +1 -1
- package/src/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/LinkPopover.module.scss +2 -2
- package/src/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/LinkPopover.tsx +10 -14
- package/src/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/Positioner.tsx +12 -14
- package/src/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/index.ts +1 -1
- package/src/RichTextEditor/utils/plugins/LinkManager/components/index.ts +3 -3
- package/src/RichTextEditor/utils/plugins/LinkManager/createReactTooltipWrapper.tsx +12 -19
- package/src/RichTextEditor/utils/plugins/LinkManager/index.ts +2 -2
- package/src/RichTextEditor/utils/plugins/LinkManager/types.ts +2 -2
- package/src/RichTextEditor/utils/plugins/LinkManager/validation.tsx +4 -4
- package/src/RichTextEditor/utils/plugins/index.ts +1 -1
- package/src/RichTextEditor/utils/prosemirror/index.ts +7 -7
- package/src/RichTextEditor/utils/schema/index.ts +2 -2
- package/src/RichTextEditor/utils/schema/marks.ts +16 -19
- package/src/RichTextEditor/utils/schema/nodes.ts +8 -8
- package/src/SearchField/SearchField.module.scss +1 -1
- package/src/SearchField/SearchField.tsx +6 -6
- package/src/SearchField/_docs/SearchField.mdx +3 -3
- package/src/SearchField/_docs/SearchField.stickersheet.stories.tsx +22 -33
- package/src/SearchField/_docs/SearchField.stories.tsx +11 -11
- package/src/SearchField/index.ts +1 -1
- package/src/Select/Select.module.scss +8 -11
- package/src/Select/Select.tsx +46 -68
- package/src/Select/_docs/Select.mdx +7 -3
- package/src/Select/_docs/Select.stickersheet.stories.tsx +25 -45
- package/src/Select/_docs/Select.stories.tsx +26 -34
- package/src/Select/index.ts +2 -2
- package/src/Skirt/Skirt.module.scss +1 -1
- package/src/Skirt/Skirt.tsx +17 -26
- package/src/Skirt/_docs/Skirt.mdx +4 -4
- package/src/Skirt/_docs/Skirt.stories.tsx +18 -20
- package/src/Skirt/index.ts +2 -2
- package/src/Skirt/subcomponents/SkirtCard/SkirtCard.module.scss +2 -2
- package/src/Skirt/subcomponents/SkirtCard/SkirtCard.tsx +6 -11
- package/src/Skirt/subcomponents/SkirtCard/index.ts +1 -1
- package/src/Slider/Slider.module.scss +3 -3
- package/src/Slider/Slider.spec.tsx +10 -17
- package/src/Slider/Slider.tsx +20 -38
- package/src/Slider/_docs/Slider.mdx +3 -3
- package/src/Slider/_docs/Slider.stickersheet.stories.tsx +13 -29
- package/src/Slider/_docs/Slider.stories.tsx +11 -19
- package/src/Slider/index.ts +1 -1
- package/src/SplitButton/SplitButton.spec.tsx +18 -22
- package/src/SplitButton/SplitButton.tsx +14 -29
- package/src/SplitButton/_docs/SplitButton.mdx +4 -3
- package/src/SplitButton/_docs/SplitButton.stickersheet.stories.tsx +22 -29
- package/src/SplitButton/_docs/SplitButton.stories.tsx +13 -16
- package/src/SplitButton/index.ts +1 -1
- package/src/SplitButton/subcomponents/ActionButton/ActionButton.module.scss +1 -1
- package/src/SplitButton/subcomponents/ActionButton/ActionButton.tsx +6 -6
- package/src/SplitButton/subcomponents/ActionButton/index.ts +1 -1
- package/src/SplitButton/subcomponents/BaseButton/BaseButton.module.scss +4 -4
- package/src/SplitButton/subcomponents/BaseButton/BaseButton.spec.tsx +18 -24
- package/src/SplitButton/subcomponents/BaseButton/BaseButton.tsx +9 -14
- package/src/SplitButton/subcomponents/BaseButton/index.ts +1 -1
- package/src/SplitButton/subcomponents/DropdownButton/DropdownButton.module.scss +2 -2
- package/src/SplitButton/subcomponents/DropdownButton/DropdownButton.spec.tsx +11 -11
- package/src/SplitButton/subcomponents/DropdownButton/DropdownButton.tsx +13 -13
- package/src/SplitButton/subcomponents/DropdownButton/index.ts +1 -1
- package/src/Table/Table.module.scss +8 -8
- package/src/Table/Table.spec.tsx +13 -17
- package/src/Table/Table.tsx +44 -68
- package/src/Table/_docs/Table.mdx +19 -6
- package/src/Table/_docs/Table.stickersheet.stories.tsx +63 -141
- package/src/Table/_docs/Table.stories.tsx +85 -85
- package/src/Table/index.ts +1 -1
- package/src/Tabs/Tabs.tsx +6 -12
- package/src/Tabs/_docs/Tabs.mdx +4 -7
- package/src/Tabs/_docs/Tabs.stories.tsx +15 -22
- package/src/Tabs/index.ts +2 -2
- package/src/Tabs/subcomponents/Tab.module.scss +7 -7
- package/src/Tabs/subcomponents/Tab.tsx +12 -31
- package/src/Tabs/subcomponents/TabList.module.scss +2 -2
- package/src/Tabs/subcomponents/TabList.tsx +10 -14
- package/src/Tabs/subcomponents/TabPanel.module.scss +2 -2
- package/src/Tabs/subcomponents/TabPanel.tsx +5 -8
- package/src/Tabs/subcomponents/TabPanels.tsx +3 -3
- package/src/Tabs/subcomponents/index.ts +4 -4
- package/src/Tag/Tag.module.scss +6 -6
- package/src/Tag/Tag.tsx +26 -32
- package/src/Tag/_docs/Tag.mdx +16 -5
- package/src/Tag/_docs/Tag.stickersheet.stories.tsx +17 -24
- package/src/Tag/_docs/Tag.stories.tsx +27 -31
- package/src/Tag/index.ts +1 -1
- package/src/Tag/types.ts +13 -13
- package/src/Text/Text.module.scss +2 -2
- package/src/Text/Text.spec.tsx +18 -23
- package/src/Text/Text.tsx +27 -37
- package/src/Text/_docs/Text.mdx +3 -3
- package/src/Text/_docs/Text.stickersheet.stories.tsx +11 -14
- package/src/Text/_docs/Text.stories.tsx +7 -7
- package/src/Text/index.ts +1 -1
- package/src/TextArea/TextArea.module.css +5 -7
- package/src/TextArea/TextArea.spec.tsx +14 -14
- package/src/TextArea/TextArea.tsx +12 -11
- package/src/TextArea/_docs/TextArea.mdx +5 -4
- package/src/TextArea/_docs/TextArea.stickersheet.stories.tsx +13 -31
- package/src/TextArea/_docs/TextArea.stories.tsx +5 -5
- package/src/TextArea/index.ts +1 -1
- package/src/TextAreaField/TextAreaField.module.scss +2 -2
- package/src/TextAreaField/TextAreaField.spec.tsx +10 -14
- package/src/TextAreaField/TextAreaField.tsx +22 -25
- package/src/TextAreaField/_docs/TextAreaField.mdx +9 -4
- package/src/TextAreaField/_docs/TextAreaField.stickersheet.stories.tsx +22 -49
- package/src/TextAreaField/_docs/TextAreaField.stories.tsx +10 -10
- package/src/TextAreaField/index.ts +1 -1
- package/src/TextField/TextField.module.scss +1 -1
- package/src/TextField/TextField.spec.tsx +30 -38
- package/src/TextField/TextField.tsx +21 -40
- package/src/TextField/_docs/TextField.mdx +9 -4
- package/src/TextField/_docs/TextField.stickersheet.stories.tsx +15 -23
- package/src/TextField/_docs/TextField.stories.tsx +12 -12
- package/src/TextField/index.ts +1 -1
- package/src/Tile/InformationTile/InformationTile.tsx +3 -3
- package/src/Tile/InformationTile/_docs/InformationTile.mdx +5 -4
- package/src/Tile/InformationTile/_docs/InformationTile.stickersheet.stories.tsx +21 -26
- package/src/Tile/InformationTile/_docs/InformationTile.stories.tsx +13 -17
- package/src/Tile/InformationTile/index.ts +1 -1
- package/src/Tile/MultiActionTile/MultiActionTile.module.scss +1 -1
- package/src/Tile/MultiActionTile/MultiActionTile.tsx +8 -18
- package/src/Tile/MultiActionTile/_docs/MultiActionTile.mdx +5 -3
- package/src/Tile/MultiActionTile/_docs/MultiActionTile.stickersheet.stories.tsx +23 -28
- package/src/Tile/MultiActionTile/_docs/MultiActionTile.stories.tsx +13 -17
- package/src/Tile/MultiActionTile/index.ts +1 -1
- package/src/Tile/TileGrid/TileGrid.module.scss +3 -3
- package/src/Tile/TileGrid/TileGrid.tsx +9 -14
- package/src/Tile/TileGrid/_docs/TileGrid.mdx +3 -3
- package/src/Tile/TileGrid/_docs/TileGrid.stickersheet.stories.tsx +7 -10
- package/src/Tile/TileGrid/_docs/TileGrid.stories.tsx +17 -17
- package/src/Tile/TileGrid/index.ts +1 -1
- package/src/Tile/index.ts +3 -3
- package/src/Tile/subcomponents/GenericTile/GenericTile.module.scss +7 -7
- package/src/Tile/subcomponents/GenericTile/GenericTile.spec.stories.tsx +40 -40
- package/src/Tile/subcomponents/GenericTile/GenericTile.tsx +33 -71
- package/src/Tile/subcomponents/GenericTile/_docs/GenericTile.stickersheet.stories.tsx +21 -26
- package/src/Tile/subcomponents/GenericTile/index.ts +1 -1
- package/src/TimeField/TimeField.module.scss +4 -4
- package/src/TimeField/TimeField.spec.tsx +39 -47
- package/src/TimeField/TimeField.tsx +29 -42
- package/src/TimeField/_docs/TimeField.mdx +3 -3
- package/src/TimeField/_docs/TimeField.stickersheet.stories.tsx +16 -43
- package/src/TimeField/_docs/TimeField.stories.tsx +14 -14
- package/src/TimeField/index.ts +1 -1
- package/src/TimeField/subcomponents/TimeSegment/TimeSegment.module.scss +1 -1
- package/src/TimeField/subcomponents/TimeSegment/TimeSegment.tsx +10 -13
- package/src/TimeField/subcomponents/TimeSegment/index.ts +1 -1
- package/src/TimeField/subcomponents/TimeSegment/utils/generateSegmentDisplayText.spec.ts +20 -20
- package/src/TimeField/subcomponents/TimeSegment/utils/generateSegmentDisplayText.ts +2 -2
- package/src/TimeField/types.ts +2 -2
- package/src/TitleBlockZen/TitleBlockZen.module.scss +19 -35
- package/src/TitleBlockZen/TitleBlockZen.spec.tsx +313 -420
- package/src/TitleBlockZen/TitleBlockZen.tsx +66 -93
- package/src/TitleBlockZen/_docs/TitleBlockZen.mdx +5 -3
- package/src/TitleBlockZen/_docs/TitleBlockZen.stories.tsx +65 -65
- package/src/TitleBlockZen/_mixins.scss +1 -1
- package/src/TitleBlockZen/_variables.scss +1 -1
- package/src/TitleBlockZen/constants.ts +2 -3
- package/src/TitleBlockZen/index.ts +4 -4
- package/src/TitleBlockZen/subcomponents/MainActions.module.scss +2 -2
- package/src/TitleBlockZen/subcomponents/MainActions.tsx +22 -40
- package/src/TitleBlockZen/subcomponents/MobileActions.module.scss +10 -10
- package/src/TitleBlockZen/subcomponents/MobileActions.spec.tsx +76 -92
- package/src/TitleBlockZen/subcomponents/MobileActions.tsx +71 -141
- package/src/TitleBlockZen/subcomponents/NavigationTabs.module.scss +11 -15
- package/src/TitleBlockZen/subcomponents/NavigationTabs.spec.tsx +22 -26
- package/src/TitleBlockZen/subcomponents/NavigationTabs.tsx +9 -9
- package/src/TitleBlockZen/subcomponents/SecondaryActions.tsx +17 -24
- package/src/TitleBlockZen/subcomponents/TitleBlockMenuItem.module.scss +3 -3
- package/src/TitleBlockZen/subcomponents/TitleBlockMenuItem.tsx +12 -16
- package/src/TitleBlockZen/subcomponents/Toolbar.module.scss +3 -3
- package/src/TitleBlockZen/subcomponents/Toolbar.tsx +11 -22
- package/src/TitleBlockZen/types.ts +22 -48
- package/src/TitleBlockZen/utils.ts +13 -15
- package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.scss +7 -8
- package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.spec.tsx +12 -14
- package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.tsx +10 -17
- package/src/ToggleSwitch/ToggleSwitch/_docs/ToggleSwitch.mdx +3 -3
- package/src/ToggleSwitch/ToggleSwitch/_docs/ToggleSwitch.stickersheet.stories.tsx +14 -28
- package/src/ToggleSwitch/ToggleSwitch/_docs/ToggleSwitch.stories.tsx +6 -6
- package/src/ToggleSwitch/ToggleSwitch/index.ts +1 -1
- package/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.module.scss +1 -1
- package/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.tsx +12 -16
- package/src/ToggleSwitch/ToggleSwitchField/_docs/ToggleSwitchField.mdx +3 -3
- package/src/ToggleSwitch/ToggleSwitchField/_docs/ToggleSwitchField.stickersheet.stories.tsx +13 -27
- package/src/ToggleSwitch/ToggleSwitchField/_docs/ToggleSwitchField.stories.tsx +6 -6
- package/src/ToggleSwitch/ToggleSwitchField/index.ts +1 -1
- package/src/ToggleSwitch/index.ts +2 -2
- package/src/VisuallyHidden/VisuallyHidden.spec.tsx +7 -7
- package/src/VisuallyHidden/VisuallyHidden.tsx +5 -5
- package/src/VisuallyHidden/_docs/VisuallyHidden.mdx +6 -4
- package/src/VisuallyHidden/_docs/VisuallyHidden.stories.tsx +9 -9
- package/src/VisuallyHidden/index.ts +1 -1
- package/src/Well/Well.tsx +9 -9
- package/src/Well/_docs/Well.mdx +5 -5
- package/src/Well/_docs/Well.stickersheet.stories.tsx +18 -26
- package/src/Well/_docs/Well.stories.tsx +16 -16
- package/src/Well/index.ts +1 -1
- package/src/Well/types.ts +16 -16
- package/src/Workflow/Workflow.tsx +5 -5
- package/src/Workflow/_docs/ProgressStepper.mdx +3 -3
- package/src/Workflow/_docs/ProgressStepper.stories.tsx +21 -21
- package/src/Workflow/_docs/Workflow.mdx +25 -19
- package/src/Workflow/_docs/Workflow.stories.tsx +32 -38
- package/src/Workflow/_docs/WorkflowFooter.mdx +3 -3
- package/src/Workflow/_docs/WorkflowFooter.stories.tsx +25 -32
- package/src/Workflow/_docs/WorkflowHeader.mdx +3 -3
- package/src/Workflow/_docs/WorkflowHeader.stories.tsx +12 -12
- package/src/Workflow/_docs/controls/controls.tsx +28 -43
- package/src/Workflow/_docs/controls/index.tsx +1 -1
- package/src/Workflow/index.ts +1 -1
- package/src/Workflow/subcomponents/Footer/Footer.tsx +6 -10
- package/src/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.module.css +2 -2
- package/src/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.tsx +9 -12
- package/src/Workflow/subcomponents/Footer/components/FooterActions/index.ts +1 -1
- package/src/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.spec.tsx +22 -30
- package/src/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.tsx +12 -22
- package/src/Workflow/subcomponents/Footer/components/ProgressStepper/index.ts +1 -1
- package/src/Workflow/subcomponents/Footer/components/Root/FooterRoot.module.css +1 -1
- package/src/Workflow/subcomponents/Footer/components/Root/Root.tsx +7 -12
- package/src/Workflow/subcomponents/Footer/components/Root/index.ts +1 -1
- package/src/Workflow/subcomponents/Footer/components/index.ts +3 -3
- package/src/Workflow/subcomponents/Footer/index.ts +2 -2
- package/src/Workflow/subcomponents/Header/Header.tsx +4 -8
- package/src/Workflow/subcomponents/Header/components/Actions/Actions.tsx +6 -9
- package/src/Workflow/subcomponents/Header/components/Actions/index.ts +1 -1
- package/src/Workflow/subcomponents/Header/components/Branding/Branding.tsx +7 -7
- package/src/Workflow/subcomponents/Header/components/Branding/index.ts +1 -1
- package/src/Workflow/subcomponents/Header/components/Root/Root.module.css +2 -2
- package/src/Workflow/subcomponents/Header/components/Root/Root.tsx +6 -8
- package/src/Workflow/subcomponents/Header/components/Root/index.tsx +1 -1
- package/src/Workflow/subcomponents/Header/components/Titles/Titles.tsx +6 -6
- package/src/Workflow/subcomponents/Header/components/Titles/index.ts +1 -1
- package/src/Workflow/subcomponents/Header/components/index.ts +4 -4
- package/src/Workflow/subcomponents/Header/index.ts +2 -2
- package/src/Workflow/subcomponents/Main/Main.tsx +6 -8
- package/src/Workflow/subcomponents/Main/index.tsx +1 -1
- package/src/Workflow/subcomponents/Wrapper/Wrapper.tsx +6 -8
- package/src/Workflow/subcomponents/Wrapper/index.ts +1 -1
- package/src/Workflow/subcomponents/index.ts +4 -4
- package/src/__actions__/Button/v1/Button/Button.module.scss +16 -38
- package/src/__actions__/Button/v1/Button/Button.tsx +6 -8
- package/src/__actions__/Button/v1/Button/_docs/Button.mdx +4 -4
- package/src/__actions__/Button/v1/Button/_docs/Button.stickersheet.stories.tsx +67 -97
- package/src/__actions__/Button/v1/Button/_docs/Button.stories.tsx +25 -34
- package/src/__actions__/Button/v1/Button/index.ts +1 -1
- package/src/__actions__/Button/v1/GenericButton/GenericButton.module.scss +5 -5
- package/src/__actions__/Button/v1/GenericButton/GenericButton.spec.tsx +56 -77
- package/src/__actions__/Button/v1/GenericButton/GenericButton.tsx +102 -135
- package/src/__actions__/Button/v1/GenericButton/index.ts +1 -1
- package/src/__actions__/Button/v1/IconButton/IconButton.module.scss +7 -13
- package/src/__actions__/Button/v1/IconButton/IconButton.spec.tsx +11 -20
- package/src/__actions__/Button/v1/IconButton/IconButton.tsx +5 -11
- package/src/__actions__/Button/v1/IconButton/_docs/IconButton.mdx +3 -3
- package/src/__actions__/Button/v1/IconButton/_docs/IconButton.stickersheet.stories.tsx +32 -47
- package/src/__actions__/Button/v1/IconButton/_docs/IconButton.stories.tsx +9 -9
- package/src/__actions__/Button/v1/IconButton/index.ts +1 -1
- package/src/__actions__/Button/v1/index.ts +3 -3
- package/src/__actions__/Button/v1/utils/_mixins.scss +1 -4
- package/src/__actions__/Button/v1/utils/_variables.scss +6 -8
- package/src/__actions__/Button/v2/Button/_docs/Button.mdx +4 -4
- package/src/__actions__/Button/v2/Button/_docs/Button.stories.tsx +25 -34
- package/src/__actions__/Button/v2/Button/index.ts +1 -1
- package/src/__actions__/Button/v2/GenericButton/index.ts +1 -1
- package/src/__actions__/Button/v2/IconButton/_docs/IconButton.mdx +3 -3
- package/src/__actions__/Button/v2/IconButton/_docs/IconButton.stories.tsx +9 -9
- package/src/__actions__/Button/v2/IconButton/index.ts +1 -1
- package/src/__actions__/Button/v2/index.ts +3 -3
- package/src/__actions__/Button/v3/Button.module.css +2 -5
- package/src/__actions__/Button/v3/Button.tsx +20 -23
- package/src/__actions__/Button/v3/_docs/Button--api-specification.mdx +49 -17
- package/src/__actions__/Button/v3/_docs/Button--usage-guidelines.mdx +8 -6
- package/src/__actions__/Button/v3/_docs/Button.docs.stories.tsx +22 -22
- package/src/__actions__/Button/v3/_docs/Button.spec.stories.tsx +31 -38
- package/src/__actions__/Button/v3/_docs/Button.stickersheet.stories.tsx +42 -77
- package/src/__actions__/Button/v3/index.ts +2 -2
- package/src/__actions__/Button/v3/subcomponents/ButtonContent/ButtonContent.tsx +14 -21
- package/src/__actions__/Button/v3/subcomponents/ButtonContent/index.ts +1 -1
- package/src/__actions__/Button/v3/subcomponents/PendingContent/PendingContent.tsx +9 -11
- package/src/__actions__/Button/v3/subcomponents/PendingContent/index.ts +1 -1
- package/src/__actions__/Button/v3/subcomponents/index.ts +2 -2
- package/src/__actions__/Button/v3/types.ts +2 -2
- package/src/__actions__/Menu/v1/Menu.spec.tsx +21 -21
- package/src/__actions__/Menu/v1/Menu.tsx +8 -15
- package/src/__actions__/Menu/v1/_docs/Menu.mdx +3 -4
- package/src/__actions__/Menu/v1/_docs/Menu.stickersheet.stories.tsx +14 -17
- package/src/__actions__/Menu/v1/_docs/Menu.stories.tsx +11 -11
- package/src/__actions__/Menu/v1/_docs/MenuContentExample.tsx +14 -37
- package/src/__actions__/Menu/v1/_docs/examples.tsx +12 -22
- package/src/__actions__/Menu/v1/index.ts +5 -11
- package/src/__actions__/Menu/v1/subcomponents/MenuDropdown/MenuDropdown.module.scss +4 -4
- package/src/__actions__/Menu/v1/subcomponents/MenuDropdown/MenuDropdown.tsx +38 -51
- package/src/__actions__/Menu/v1/subcomponents/MenuDropdown/index.ts +1 -1
- package/src/__actions__/Menu/v1/subcomponents/MenuHeading/MenuHeading.module.scss +2 -2
- package/src/__actions__/Menu/v1/subcomponents/MenuHeading/MenuHeading.tsx +5 -5
- package/src/__actions__/Menu/v1/subcomponents/MenuHeading/index.ts +1 -1
- package/src/__actions__/Menu/v1/subcomponents/MenuItem/MenuItem.module.scss +3 -3
- package/src/__actions__/Menu/v1/subcomponents/MenuItem/MenuItem.tsx +20 -20
- package/src/__actions__/Menu/v1/subcomponents/MenuItem/index.ts +1 -1
- package/src/__actions__/Menu/v1/subcomponents/MenuList/MenuList.module.scss +2 -2
- package/src/__actions__/Menu/v1/subcomponents/MenuList/MenuList.spec.tsx +17 -25
- package/src/__actions__/Menu/v1/subcomponents/MenuList/MenuList.tsx +4 -4
- package/src/__actions__/Menu/v1/subcomponents/MenuList/index.ts +1 -1
- package/src/__actions__/Menu/v1/subcomponents/StatelessMenu/StatelessMenu.tsx +32 -36
- package/src/__actions__/Menu/v1/subcomponents/StatelessMenu/index.ts +1 -1
- package/src/__actions__/Menu/v2/_docs/Menu.mdx +8 -4
- package/src/__actions__/Menu/v2/_docs/Menu.stories.tsx +10 -10
- package/src/__actions__/Menu/v2/index.ts +6 -6
- package/src/__actions__/Menu/v3/Menu.module.css +1 -1
- package/src/__actions__/Menu/v3/Menu.tsx +9 -17
- package/src/__actions__/Menu/v3/MenuItem.module.css +3 -4
- package/src/__actions__/Menu/v3/MenuItem.tsx +9 -11
- package/src/__actions__/Menu/v3/MenuTrigger.tsx +4 -6
- package/src/__actions__/Menu/v3/SubmenuTrigger.tsx +2 -2
- package/src/__actions__/Menu/v3/_docs/ApiSpecification.mdx +35 -24
- package/src/__actions__/Menu/v3/_docs/Menu.docs.stories.tsx +15 -29
- package/src/__actions__/Menu/v3/_docs/Menu.mdx +52 -39
- package/src/__actions__/Menu/v3/_docs/Menu.spec.stories.tsx +47 -66
- package/src/__actions__/Menu/v3/_docs/Menu.stories.tsx +15 -25
- package/src/__actions__/Menu/v3/index.ts +3 -3
- package/src/__actions__/v1.ts +2 -2
- package/src/__actions__/v2.ts +2 -2
- package/src/__actions__/v3.ts +2 -2
- package/src/__future__/Icon/Icon.module.css +8 -8
- package/src/__future__/Icon/Icon.spec.tsx +19 -19
- package/src/__future__/Icon/Icon.tsx +10 -14
- package/src/__future__/Icon/_docs/Icon--api-specification.mdx +17 -10
- package/src/__future__/Icon/_docs/Icon--usage-guidelines.mdx +5 -4
- package/src/__future__/Icon/_docs/Icon.docs.module.css +1 -1
- package/src/__future__/Icon/_docs/Icon.docs.stories.tsx +44 -84
- package/src/__future__/Icon/_docs/Icon.stickersheet.stories.tsx +22 -33
- package/src/__future__/Icon/constants.ts +141 -141
- package/src/__future__/Icon/index.ts +1 -1
- package/src/__future__/Icon/types.ts +2 -2
- package/src/__future__/Select/Select.module.scss +4 -4
- package/src/__future__/Select/Select.spec.tsx +129 -176
- package/src/__future__/Select/Select.tsx +34 -54
- package/src/__future__/Select/_docs/Select.mdx +9 -5
- package/src/__future__/Select/_docs/Select.stickersheet.stories.tsx +76 -126
- package/src/__future__/Select/_docs/Select.stories.tsx +51 -75
- package/src/__future__/Select/_docs/mockData.ts +47 -47
- package/src/__future__/Select/context/SelectContext.tsx +4 -6
- package/src/__future__/Select/context/index.ts +1 -1
- package/src/__future__/Select/index.ts +2 -2
- package/src/__future__/Select/subcomponents/ListBox/ListBox.tsx +16 -16
- package/src/__future__/Select/subcomponents/ListBox/index.ts +1 -1
- package/src/__future__/Select/subcomponents/ListBoxSection/ListBoxSection.module.scss +1 -1
- package/src/__future__/Select/subcomponents/ListBoxSection/ListBoxSection.tsx +10 -10
- package/src/__future__/Select/subcomponents/ListBoxSection/index.ts +1 -1
- package/src/__future__/Select/subcomponents/ListItem/ListItem.tsx +6 -6
- package/src/__future__/Select/subcomponents/ListItem/index.ts +1 -1
- package/src/__future__/Select/subcomponents/ListItems/ListItems.tsx +6 -6
- package/src/__future__/Select/subcomponents/ListItems/index.ts +1 -1
- package/src/__future__/Select/subcomponents/Option/Option.module.scss +6 -7
- package/src/__future__/Select/subcomponents/Option/Option.tsx +15 -21
- package/src/__future__/Select/subcomponents/Option/index.ts +1 -1
- package/src/__future__/Select/subcomponents/Overlay/Overlay.tsx +9 -14
- package/src/__future__/Select/subcomponents/Overlay/index.ts +1 -1
- package/src/__future__/Select/subcomponents/SectionDivider/SectionDivider.module.scss +1 -1
- package/src/__future__/Select/subcomponents/SectionDivider/SectionDivider.tsx +4 -4
- package/src/__future__/Select/subcomponents/SectionDivider/index.ts +1 -1
- package/src/__future__/Select/subcomponents/SelectPopoverContents/SelectPopoverContents.module.scss +1 -1
- package/src/__future__/Select/subcomponents/SelectPopoverContents/SelectPopoverContents.tsx +12 -18
- package/src/__future__/Select/subcomponents/SelectPopoverContents/index.ts +1 -1
- package/src/__future__/Select/subcomponents/SelectToggle/SelectToggle.module.scss +9 -12
- package/src/__future__/Select/subcomponents/SelectToggle/SelectToggle.tsx +17 -20
- package/src/__future__/Select/subcomponents/SelectToggle/index.ts +1 -1
- package/src/__future__/Select/subcomponents/index.ts +9 -9
- package/src/__future__/Select/types.ts +13 -12
- package/src/__future__/Select/utils/getDisabledKeysFromItems.ts +7 -9
- package/src/__future__/Select/utils/isSelectOptionGroup.ts +3 -3
- package/src/__future__/Select/utils/transformSelectItemToCollectionElement.tsx +7 -9
- package/src/__future__/Tabs/Tabs.tsx +3 -7
- package/src/__future__/Tabs/_docs/Tabs--api-specification.mdx +4 -8
- package/src/__future__/Tabs/_docs/Tabs--migration-guide.mdx +11 -4
- package/src/__future__/Tabs/_docs/Tabs.stories.tsx +13 -20
- package/src/__future__/Tabs/index.ts +2 -2
- package/src/__future__/Tabs/subcomponents/Tab/Tab.module.css +3 -3
- package/src/__future__/Tabs/subcomponents/Tab/Tab.tsx +7 -19
- package/src/__future__/Tabs/subcomponents/Tab/index.ts +1 -1
- package/src/__future__/Tabs/subcomponents/TabList/TabList.tsx +9 -22
- package/src/__future__/Tabs/subcomponents/TabList/index.ts +1 -1
- package/src/__future__/Tabs/subcomponents/TabPanel/TabPanel.tsx +3 -6
- package/src/__future__/Tabs/subcomponents/TabPanel/index.ts +1 -1
- package/src/__future__/Tabs/subcomponents/index.ts +3 -3
- package/src/__future__/Tag/RemovableTag/RemovableTag.module.scss +1 -1
- package/src/__future__/Tag/RemovableTag/RemovableTag.tsx +7 -10
- package/src/__future__/Tag/RemovableTag/_docs/RemovableTag.mdx +4 -6
- package/src/__future__/Tag/RemovableTag/_docs/RemovableTag.stickersheet.stories.tsx +19 -31
- package/src/__future__/Tag/RemovableTag/_docs/RemovableTag.stories.tsx +9 -9
- package/src/__future__/Tag/RemovableTag/index.ts +1 -1
- package/src/__future__/Tag/RemovableTag/subcomponents/RemoveButton.module.scss +5 -5
- package/src/__future__/Tag/RemovableTag/subcomponents/RemoveButton.tsx +7 -8
- package/src/__future__/Tag/Tag/Tag.module.scss +3 -3
- package/src/__future__/Tag/Tag/Tag.tsx +8 -11
- package/src/__future__/Tag/Tag/_docs/Tag-migration-guide.mdx +12 -20
- package/src/__future__/Tag/Tag/_docs/Tag-migration-guide.stories.tsx +24 -33
- package/src/__future__/Tag/Tag/_docs/Tag.mdx +3 -4
- package/src/__future__/Tag/Tag/_docs/Tag.stickersheet.stories.tsx +14 -22
- package/src/__future__/Tag/Tag/_docs/Tag.stories.tsx +16 -22
- package/src/__future__/Tag/Tag/index.ts +1 -1
- package/src/__future__/Tag/Tag/types.ts +1 -9
- package/src/__future__/Tag/index.ts +2 -2
- package/src/__future__/index.ts +4 -4
- package/src/__overlays__/Focusable/v3/Focusable.tsx +5 -9
- package/src/__overlays__/Focusable/v3/_docs/ApiSpecification.mdx +14 -13
- package/src/__overlays__/Focusable/v3/_docs/Focusable.stories.tsx +7 -7
- package/src/__overlays__/Focusable/v3/index.ts +1 -1
- package/src/__overlays__/Tooltip/v1/Tooltip.module.scss +12 -12
- package/src/__overlays__/Tooltip/v1/Tooltip.spec.tsx +24 -32
- package/src/__overlays__/Tooltip/v1/Tooltip.tsx +71 -96
- package/src/__overlays__/Tooltip/v1/_docs/Tooltip.mdx +5 -7
- package/src/__overlays__/Tooltip/v1/_docs/Tooltip.stickersheet.stories.tsx +26 -70
- package/src/__overlays__/Tooltip/v1/_docs/Tooltip.stories.tsx +68 -79
- package/src/__overlays__/Tooltip/v1/index.ts +1 -1
- package/src/__overlays__/Tooltip/v1/subcomponents/AppearanceAnim.tsx +5 -5
- package/src/__overlays__/Tooltip/v1/utils/isSemanticElement.spec.tsx +17 -19
- package/src/__overlays__/Tooltip/v1/utils/isSemanticElement.tsx +9 -13
- package/src/__overlays__/Tooltip/v2/_docs/Tooltip.mdx +5 -6
- package/src/__overlays__/Tooltip/v2/_docs/Tooltip.stories.tsx +10 -12
- package/src/__overlays__/Tooltip/v2/index.ts +1 -1
- package/src/__overlays__/Tooltip/v3/OverlayArrow.module.scss +9 -9
- package/src/__overlays__/Tooltip/v3/OverlayArrow.tsx +6 -9
- package/src/__overlays__/Tooltip/v3/Tooltip.module.scss +11 -12
- package/src/__overlays__/Tooltip/v3/Tooltip.tsx +34 -42
- package/src/__overlays__/Tooltip/v3/TooltipTrigger.tsx +3 -6
- package/src/__overlays__/Tooltip/v3/_docs/ApiSpecification.mdx +50 -46
- package/src/__overlays__/Tooltip/v3/_docs/Tooltip.docs.stories.tsx +31 -38
- package/src/__overlays__/Tooltip/v3/_docs/Tooltip.mdx +63 -48
- package/src/__overlays__/Tooltip/v3/_docs/Tooltip.spec.stories.tsx +29 -38
- package/src/__overlays__/Tooltip/v3/_docs/Tooltip.stickersheet.stories.tsx +12 -12
- package/src/__overlays__/Tooltip/v3/_docs/Tooltip.stories.tsx +11 -12
- package/src/__overlays__/Tooltip/v3/index.ts +2 -2
- package/src/__overlays__/v1.ts +1 -1
- package/src/__overlays__/v2.ts +1 -1
- package/src/__overlays__/v3.ts +2 -2
- package/src/__react-aria-components__/index.ts +1 -1
- package/src/__react-aria__/index.ts +1 -1
- package/src/__utilities__/ReversedColors/v3/ReversedColors.tsx +3 -6
- package/src/__utilities__/ReversedColors/v3/index.ts +1 -1
- package/src/__utilities__/useIsClientReady/index.ts +1 -1
- package/src/__utilities__/useIsClientReady/useIsClientReady.tsx +2 -2
- package/src/__utilities__/v3.ts +1 -1
- package/src/index.ts +63 -63
- package/src/types/DataAttributes.ts +1 -1
- package/src/types/OverrideClassName.ts +1 -4
- package/src/types/StringSuggestions.ts +1 -3
- package/src/types/cssVariables.d.ts +2 -2
- package/src/utils/AppearanceAnim.tsx +7 -7
- package/src/utils/getNodeText.spec.tsx +15 -15
- package/src/utils/getNodeText.ts +5 -5
- package/src/utils/hostedAssets.ts +2 -3
- package/src/utils/index.ts +2 -2
- package/src/utils/isRefObject.ts +2 -3
- package/src/utils/mergeClassNames.ts +8 -13
- package/src/utils/useMediaQueries.spec.tsx +21 -35
- package/src/utils/useMediaQueries.tsx +33 -46
- package/src/utils/useResizeObserver.ts +16 -21
- package/src/Filter/FilterMultiSelect/_docs/FilterMultiSelect.module.scss +0 -24
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { render, waitFor, screen, within } from
|
|
3
|
-
import userEvent from
|
|
4
|
-
import { vi } from
|
|
5
|
-
import { CustomBreadcrumbProps, SectionTitleRenderProps } from
|
|
6
|
-
import { TitleBlockZen } from
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { render, waitFor, screen, within } from '@testing-library/react'
|
|
3
|
+
import userEvent from '@testing-library/user-event'
|
|
4
|
+
import { vi } from 'vitest'
|
|
5
|
+
import { CustomBreadcrumbProps, SectionTitleRenderProps } from './types'
|
|
6
|
+
import { TitleBlockZen } from './index'
|
|
7
7
|
|
|
8
8
|
const user = userEvent.setup()
|
|
9
9
|
|
|
10
10
|
const mockMatchMedia = (matches: boolean = false): void => {
|
|
11
|
-
Object.defineProperty(window,
|
|
11
|
+
Object.defineProperty(window, 'matchMedia', {
|
|
12
12
|
writable: true,
|
|
13
|
-
value: vi.fn().mockImplementation(query => ({
|
|
13
|
+
value: vi.fn().mockImplementation((query) => ({
|
|
14
14
|
matches,
|
|
15
15
|
media: query,
|
|
16
16
|
onchange: null,
|
|
@@ -23,43 +23,43 @@ const mockMatchMedia = (matches: boolean = false): void => {
|
|
|
23
23
|
})
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
describe(
|
|
26
|
+
describe('<TitleBlockZen />', () => {
|
|
27
27
|
beforeEach(() => {
|
|
28
28
|
mockMatchMedia()
|
|
29
29
|
})
|
|
30
|
-
describe(
|
|
30
|
+
describe('when the primary action is a button with only an href', () => {
|
|
31
31
|
const primaryActionAsLink = {
|
|
32
|
-
label:
|
|
33
|
-
href:
|
|
32
|
+
label: 'primaryActionLabel',
|
|
33
|
+
href: '#primaryActionHref',
|
|
34
34
|
primary: true,
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
it(
|
|
37
|
+
it('renders the primary action button label and href', () => {
|
|
38
38
|
const { getByTestId } = render(
|
|
39
39
|
<TitleBlockZen title="Test Title" primaryAction={primaryActionAsLink}>
|
|
40
40
|
Example
|
|
41
|
-
</TitleBlockZen
|
|
41
|
+
</TitleBlockZen>,
|
|
42
42
|
)
|
|
43
|
-
const btn = getByTestId(
|
|
43
|
+
const btn = getByTestId('title-block-primary-action-button')
|
|
44
44
|
expect(btn.textContent).toEqual(primaryActionAsLink.label)
|
|
45
|
-
expect(btn.getAttribute(
|
|
45
|
+
expect(btn.getAttribute('href')).toEqual(primaryActionAsLink.href)
|
|
46
46
|
})
|
|
47
47
|
|
|
48
|
-
it(
|
|
48
|
+
it('passes the href to the mobile action drawer button', () => {
|
|
49
49
|
const { getByTestId } = render(
|
|
50
50
|
<TitleBlockZen title="Test Title" primaryAction={primaryActionAsLink}>
|
|
51
51
|
Example
|
|
52
|
-
</TitleBlockZen
|
|
52
|
+
</TitleBlockZen>,
|
|
53
53
|
)
|
|
54
|
-
const btn = getByTestId(
|
|
55
|
-
expect(btn.getAttribute(
|
|
54
|
+
const btn = getByTestId('title-block-mobile-actions-primary-button')
|
|
55
|
+
expect(btn.getAttribute('href')).toEqual(primaryActionAsLink.href)
|
|
56
56
|
})
|
|
57
57
|
})
|
|
58
58
|
|
|
59
|
-
describe(
|
|
59
|
+
describe('when the primary action is a button with only an onClick', () => {
|
|
60
60
|
const testOnClickFn = vi.fn()
|
|
61
61
|
const primaryActionAsButton = {
|
|
62
|
-
label:
|
|
62
|
+
label: 'primaryActionLabel',
|
|
63
63
|
onClick: testOnClickFn,
|
|
64
64
|
primary: true,
|
|
65
65
|
}
|
|
@@ -68,13 +68,13 @@ describe("<TitleBlockZen />", () => {
|
|
|
68
68
|
testOnClickFn.mockClear()
|
|
69
69
|
})
|
|
70
70
|
|
|
71
|
-
it(
|
|
71
|
+
it('renders the primary action button label and onClick', async () => {
|
|
72
72
|
const { getByTestId } = render(
|
|
73
73
|
<TitleBlockZen title="Test Title" primaryAction={primaryActionAsButton}>
|
|
74
74
|
Example
|
|
75
|
-
</TitleBlockZen
|
|
75
|
+
</TitleBlockZen>,
|
|
76
76
|
)
|
|
77
|
-
const btn = getByTestId(
|
|
77
|
+
const btn = getByTestId('title-block-primary-action-button')
|
|
78
78
|
expect(btn.textContent).toEqual(primaryActionAsButton.label)
|
|
79
79
|
await user.click(btn)
|
|
80
80
|
|
|
@@ -83,14 +83,14 @@ describe("<TitleBlockZen />", () => {
|
|
|
83
83
|
})
|
|
84
84
|
})
|
|
85
85
|
|
|
86
|
-
it(
|
|
86
|
+
it('creates a mobile actions primary button', async () => {
|
|
87
87
|
const { getByTestId } = render(
|
|
88
88
|
<TitleBlockZen title="Test Title" primaryAction={primaryActionAsButton}>
|
|
89
89
|
Example
|
|
90
|
-
</TitleBlockZen
|
|
90
|
+
</TitleBlockZen>,
|
|
91
91
|
)
|
|
92
92
|
|
|
93
|
-
const btn = getByTestId(
|
|
93
|
+
const btn = getByTestId('title-block-mobile-actions-primary-button')
|
|
94
94
|
expect(btn.textContent).toEqual(primaryActionAsButton.label)
|
|
95
95
|
await user.click(btn)
|
|
96
96
|
await waitFor(() => {
|
|
@@ -99,17 +99,17 @@ describe("<TitleBlockZen />", () => {
|
|
|
99
99
|
})
|
|
100
100
|
})
|
|
101
101
|
|
|
102
|
-
describe(
|
|
102
|
+
describe('when the primary action is disabled', () => {
|
|
103
103
|
const testOnClickFn = vi.fn()
|
|
104
104
|
const primaryActionAsButton = {
|
|
105
|
-
label:
|
|
105
|
+
label: 'primaryActionLabel',
|
|
106
106
|
onClick: testOnClickFn,
|
|
107
107
|
disabled: true,
|
|
108
108
|
primary: true,
|
|
109
109
|
}
|
|
110
110
|
const primaryActionAsLink = {
|
|
111
|
-
label:
|
|
112
|
-
href:
|
|
111
|
+
label: 'primaryActionLabel',
|
|
112
|
+
href: '#primaryActionHref',
|
|
113
113
|
disabled: true,
|
|
114
114
|
primary: true,
|
|
115
115
|
}
|
|
@@ -117,15 +117,13 @@ describe("<TitleBlockZen />", () => {
|
|
|
117
117
|
testOnClickFn.mockClear()
|
|
118
118
|
})
|
|
119
119
|
|
|
120
|
-
it(
|
|
120
|
+
it('renders a disabled primary action button', async () => {
|
|
121
121
|
const { getByTestId } = render(
|
|
122
122
|
<TitleBlockZen title="Test Title" primaryAction={primaryActionAsButton}>
|
|
123
123
|
Example
|
|
124
|
-
</TitleBlockZen
|
|
124
|
+
</TitleBlockZen>,
|
|
125
125
|
)
|
|
126
|
-
const btn = getByTestId(
|
|
127
|
-
"title-block-primary-action-button"
|
|
128
|
-
) as HTMLButtonElement
|
|
126
|
+
const btn = getByTestId('title-block-primary-action-button') as HTMLButtonElement
|
|
129
127
|
expect(btn.textContent).toEqual(primaryActionAsButton.label)
|
|
130
128
|
expect(btn.disabled).toBeTruthy()
|
|
131
129
|
await user.click(btn)
|
|
@@ -135,29 +133,25 @@ describe("<TitleBlockZen />", () => {
|
|
|
135
133
|
})
|
|
136
134
|
})
|
|
137
135
|
|
|
138
|
-
it(
|
|
136
|
+
it('renders a disabled primary action link button', () => {
|
|
139
137
|
const { getByTestId } = render(
|
|
140
138
|
<TitleBlockZen title="Test Title" primaryAction={primaryActionAsLink}>
|
|
141
139
|
Example
|
|
142
|
-
</TitleBlockZen
|
|
140
|
+
</TitleBlockZen>,
|
|
143
141
|
)
|
|
144
|
-
const btn = getByTestId(
|
|
145
|
-
"title-block-primary-action-button"
|
|
146
|
-
) as HTMLButtonElement
|
|
142
|
+
const btn = getByTestId('title-block-primary-action-button') as HTMLButtonElement
|
|
147
143
|
expect(btn.textContent).toEqual(primaryActionAsLink.label)
|
|
148
|
-
expect(btn.getAttribute(
|
|
144
|
+
expect(btn.getAttribute('href')).not.toEqual(primaryActionAsLink.href)
|
|
149
145
|
})
|
|
150
146
|
|
|
151
|
-
it(
|
|
147
|
+
it('creates a mobile actions primary button with disabled styles and no onClick', async () => {
|
|
152
148
|
const { getByTestId } = render(
|
|
153
149
|
<TitleBlockZen title="Test Title" primaryAction={primaryActionAsButton}>
|
|
154
150
|
Example
|
|
155
|
-
</TitleBlockZen
|
|
151
|
+
</TitleBlockZen>,
|
|
156
152
|
)
|
|
157
153
|
|
|
158
|
-
const btn = getByTestId(
|
|
159
|
-
"title-block-mobile-actions-primary-button"
|
|
160
|
-
) as HTMLButtonElement
|
|
154
|
+
const btn = getByTestId('title-block-mobile-actions-primary-button') as HTMLButtonElement
|
|
161
155
|
expect(btn.textContent).toEqual(primaryActionAsButton.label)
|
|
162
156
|
await user.click(btn)
|
|
163
157
|
|
|
@@ -166,26 +160,24 @@ describe("<TitleBlockZen />", () => {
|
|
|
166
160
|
})
|
|
167
161
|
})
|
|
168
162
|
|
|
169
|
-
it(
|
|
163
|
+
it('creates a mobile actions primary button with disabled styles and no href', () => {
|
|
170
164
|
const { getByTestId } = render(
|
|
171
165
|
<TitleBlockZen title="Test Title" primaryAction={primaryActionAsLink}>
|
|
172
166
|
Example
|
|
173
|
-
</TitleBlockZen
|
|
167
|
+
</TitleBlockZen>,
|
|
174
168
|
)
|
|
175
169
|
|
|
176
|
-
const btn = getByTestId(
|
|
177
|
-
"title-block-mobile-actions-primary-button"
|
|
178
|
-
) as HTMLButtonElement
|
|
170
|
+
const btn = getByTestId('title-block-mobile-actions-primary-button') as HTMLButtonElement
|
|
179
171
|
expect(btn.textContent).toEqual(primaryActionAsLink.label)
|
|
180
|
-
expect(btn.getAttribute(
|
|
172
|
+
expect(btn.getAttribute('href')).not.toEqual(primaryActionAsLink.href)
|
|
181
173
|
})
|
|
182
174
|
})
|
|
183
175
|
|
|
184
|
-
describe(
|
|
176
|
+
describe('when the primary action is a button with both an href and an onClick', () => {
|
|
185
177
|
const testOnClickFn = vi.fn()
|
|
186
178
|
const primaryActionAsLinkAndOnClick = {
|
|
187
|
-
label:
|
|
188
|
-
href:
|
|
179
|
+
label: 'primaryActionLabel',
|
|
180
|
+
href: '#primaryActionHref',
|
|
189
181
|
onClick: testOnClickFn,
|
|
190
182
|
primary: true,
|
|
191
183
|
}
|
|
@@ -194,20 +186,15 @@ describe("<TitleBlockZen />", () => {
|
|
|
194
186
|
testOnClickFn.mockClear()
|
|
195
187
|
})
|
|
196
188
|
|
|
197
|
-
it(
|
|
189
|
+
it('renders the primary action button label, href and onClick', async () => {
|
|
198
190
|
const { getByTestId } = render(
|
|
199
|
-
<TitleBlockZen
|
|
200
|
-
title="Test Title"
|
|
201
|
-
primaryAction={primaryActionAsLinkAndOnClick}
|
|
202
|
-
>
|
|
191
|
+
<TitleBlockZen title="Test Title" primaryAction={primaryActionAsLinkAndOnClick}>
|
|
203
192
|
Example
|
|
204
|
-
</TitleBlockZen
|
|
193
|
+
</TitleBlockZen>,
|
|
205
194
|
)
|
|
206
|
-
const btn = getByTestId(
|
|
195
|
+
const btn = getByTestId('title-block-primary-action-button')
|
|
207
196
|
expect(btn.textContent).toEqual(primaryActionAsLinkAndOnClick.label)
|
|
208
|
-
expect(btn.getAttribute(
|
|
209
|
-
primaryActionAsLinkAndOnClick.href
|
|
210
|
-
)
|
|
197
|
+
expect(btn.getAttribute('href')).toEqual(primaryActionAsLinkAndOnClick.href)
|
|
211
198
|
await user.click(btn)
|
|
212
199
|
|
|
213
200
|
await waitFor(() => {
|
|
@@ -215,19 +202,14 @@ describe("<TitleBlockZen />", () => {
|
|
|
215
202
|
})
|
|
216
203
|
})
|
|
217
204
|
|
|
218
|
-
it(
|
|
205
|
+
it('passes both the href and onClick to the mobile action drawer button', async () => {
|
|
219
206
|
const { getByTestId } = render(
|
|
220
|
-
<TitleBlockZen
|
|
221
|
-
title="Test Title"
|
|
222
|
-
primaryAction={primaryActionAsLinkAndOnClick}
|
|
223
|
-
>
|
|
207
|
+
<TitleBlockZen title="Test Title" primaryAction={primaryActionAsLinkAndOnClick}>
|
|
224
208
|
Example
|
|
225
|
-
</TitleBlockZen
|
|
226
|
-
)
|
|
227
|
-
const btn = getByTestId("title-block-mobile-actions-primary-button")
|
|
228
|
-
expect(btn.getAttribute("href")).toEqual(
|
|
229
|
-
primaryActionAsLinkAndOnClick.href
|
|
209
|
+
</TitleBlockZen>,
|
|
230
210
|
)
|
|
211
|
+
const btn = getByTestId('title-block-mobile-actions-primary-button')
|
|
212
|
+
expect(btn.getAttribute('href')).toEqual(primaryActionAsLinkAndOnClick.href)
|
|
231
213
|
await user.click(btn)
|
|
232
214
|
|
|
233
215
|
await waitFor(() => {
|
|
@@ -236,28 +218,28 @@ describe("<TitleBlockZen />", () => {
|
|
|
236
218
|
})
|
|
237
219
|
})
|
|
238
220
|
|
|
239
|
-
describe(
|
|
221
|
+
describe('when the primary action is a menu', () => {
|
|
240
222
|
const primaryActionAsMenu = {
|
|
241
|
-
label:
|
|
223
|
+
label: 'primaryActionLabel',
|
|
242
224
|
menuItems: [
|
|
243
225
|
{
|
|
244
|
-
label:
|
|
245
|
-
href:
|
|
226
|
+
label: 'Menu item 1',
|
|
227
|
+
href: '#',
|
|
246
228
|
},
|
|
247
229
|
{
|
|
248
|
-
label:
|
|
249
|
-
href:
|
|
230
|
+
label: 'Menu item 1',
|
|
231
|
+
href: '#',
|
|
250
232
|
},
|
|
251
233
|
],
|
|
252
234
|
}
|
|
253
235
|
|
|
254
|
-
it(
|
|
236
|
+
it('renders the primary action menu button with label and menu items', async () => {
|
|
255
237
|
const { getByTestId, getAllByTestId } = render(
|
|
256
238
|
<TitleBlockZen title="Test Title" primaryAction={primaryActionAsMenu}>
|
|
257
239
|
Example
|
|
258
|
-
</TitleBlockZen
|
|
240
|
+
</TitleBlockZen>,
|
|
259
241
|
)
|
|
260
|
-
const btn = getByTestId(
|
|
242
|
+
const btn = getByTestId('title-block-primary-action-button')
|
|
261
243
|
expect(btn).toHaveAccessibleName(primaryActionAsMenu.label)
|
|
262
244
|
await user.click(btn)
|
|
263
245
|
|
|
@@ -267,80 +249,76 @@ describe("<TitleBlockZen />", () => {
|
|
|
267
249
|
})
|
|
268
250
|
})
|
|
269
251
|
|
|
270
|
-
it(
|
|
252
|
+
it('passes the primary menu items to the mobile actions drawer', () => {
|
|
271
253
|
const { getAllByTestId } = render(
|
|
272
254
|
<TitleBlockZen title="Test Title" primaryAction={primaryActionAsMenu}>
|
|
273
255
|
Example
|
|
274
|
-
</TitleBlockZen
|
|
275
|
-
)
|
|
276
|
-
const menuItems = getAllByTestId(
|
|
277
|
-
/^title-block-mobile-actions-primary-link-/
|
|
256
|
+
</TitleBlockZen>,
|
|
278
257
|
)
|
|
258
|
+
const menuItems = getAllByTestId(/^title-block-mobile-actions-primary-link-/)
|
|
279
259
|
expect(menuItems.length).toEqual(2)
|
|
280
260
|
})
|
|
281
261
|
})
|
|
282
262
|
|
|
283
|
-
describe(
|
|
263
|
+
describe('when the default action is a button with only an href', () => {
|
|
284
264
|
const defaultActionAsLink = {
|
|
285
|
-
label:
|
|
286
|
-
href:
|
|
265
|
+
label: 'defaultActionLabel',
|
|
266
|
+
href: '#defaultActionHref',
|
|
287
267
|
}
|
|
288
268
|
|
|
289
|
-
it(
|
|
269
|
+
it('renders the default action button label and href', () => {
|
|
290
270
|
const { getByTestId } = render(
|
|
291
271
|
<TitleBlockZen title="Test Title" defaultAction={defaultActionAsLink}>
|
|
292
272
|
Example
|
|
293
|
-
</TitleBlockZen
|
|
273
|
+
</TitleBlockZen>,
|
|
294
274
|
)
|
|
295
|
-
const btn = getByTestId(
|
|
275
|
+
const btn = getByTestId('title-block-default-action-button')
|
|
296
276
|
expect(btn.textContent).toEqual(defaultActionAsLink.label)
|
|
297
|
-
expect(btn.getAttribute(
|
|
277
|
+
expect(btn.getAttribute('href')).toEqual(defaultActionAsLink.href)
|
|
298
278
|
})
|
|
299
279
|
|
|
300
|
-
it(
|
|
280
|
+
it('creates a mobile actions default action menu item', () => {
|
|
301
281
|
const { getByTestId } = render(
|
|
302
282
|
<TitleBlockZen title="Test Title" defaultAction={defaultActionAsLink}>
|
|
303
283
|
Example
|
|
304
|
-
</TitleBlockZen
|
|
284
|
+
</TitleBlockZen>,
|
|
305
285
|
)
|
|
306
286
|
|
|
307
|
-
const menuItem = getByTestId(
|
|
308
|
-
expect(menuItem.getAttribute(
|
|
287
|
+
const menuItem = getByTestId('title-block-mobile-actions-default-link')
|
|
288
|
+
expect(menuItem.getAttribute('href')).toEqual(defaultActionAsLink.href)
|
|
309
289
|
expect(menuItem.textContent).toEqual(defaultActionAsLink.label)
|
|
310
290
|
})
|
|
311
291
|
|
|
312
|
-
it(
|
|
292
|
+
it('renders the mobile actions menu drawer handle even with no primary action', () => {
|
|
313
293
|
const { getByTestId } = render(
|
|
314
294
|
<TitleBlockZen title="Test Title" defaultAction={defaultActionAsLink}>
|
|
315
295
|
Example
|
|
316
|
-
</TitleBlockZen
|
|
296
|
+
</TitleBlockZen>,
|
|
317
297
|
)
|
|
318
298
|
|
|
319
|
-
expect(
|
|
320
|
-
getByTestId("title-block-mobile-actions-drawer-handle")
|
|
321
|
-
).toBeTruthy()
|
|
299
|
+
expect(getByTestId('title-block-mobile-actions-drawer-handle')).toBeTruthy()
|
|
322
300
|
})
|
|
323
301
|
})
|
|
324
302
|
|
|
325
|
-
describe(
|
|
303
|
+
describe('when the default action is a button with only an onClick', () => {
|
|
326
304
|
const testOnClickFn = vi.fn()
|
|
327
305
|
const defaultActionAsButton = {
|
|
328
|
-
label:
|
|
329
|
-
onClick: testOnClickFn,
|
|
330
|
-
|
|
306
|
+
'label': 'defaultActionLabel',
|
|
307
|
+
'onClick': testOnClickFn,
|
|
308
|
+
'data-testid': 'title-block-mobile-actions-default-action',
|
|
331
309
|
}
|
|
332
310
|
|
|
333
311
|
beforeEach(() => {
|
|
334
312
|
testOnClickFn.mockClear()
|
|
335
313
|
})
|
|
336
314
|
|
|
337
|
-
it(
|
|
315
|
+
it('renders the default action button label and onClick', async () => {
|
|
338
316
|
const { getByTestId } = render(
|
|
339
317
|
<TitleBlockZen title="Test Title" defaultAction={defaultActionAsButton}>
|
|
340
318
|
Example
|
|
341
|
-
</TitleBlockZen
|
|
319
|
+
</TitleBlockZen>,
|
|
342
320
|
)
|
|
343
|
-
const btn = getByTestId(
|
|
321
|
+
const btn = getByTestId('title-block-default-action-button')
|
|
344
322
|
expect(btn.textContent).toEqual(defaultActionAsButton.label)
|
|
345
323
|
await user.click(btn)
|
|
346
324
|
|
|
@@ -349,14 +327,14 @@ describe("<TitleBlockZen />", () => {
|
|
|
349
327
|
})
|
|
350
328
|
})
|
|
351
329
|
|
|
352
|
-
it(
|
|
330
|
+
it('creates a mobile actions default action menu item', async () => {
|
|
353
331
|
const { getByTestId } = render(
|
|
354
332
|
<TitleBlockZen title="Test Title" defaultAction={defaultActionAsButton}>
|
|
355
333
|
Example
|
|
356
|
-
</TitleBlockZen
|
|
334
|
+
</TitleBlockZen>,
|
|
357
335
|
)
|
|
358
336
|
|
|
359
|
-
const menuItem = getByTestId(
|
|
337
|
+
const menuItem = getByTestId('title-block-mobile-actions-default-action')
|
|
360
338
|
expect(menuItem.textContent).toEqual(defaultActionAsButton.label)
|
|
361
339
|
await user.click(menuItem)
|
|
362
340
|
|
|
@@ -365,24 +343,22 @@ describe("<TitleBlockZen />", () => {
|
|
|
365
343
|
})
|
|
366
344
|
})
|
|
367
345
|
|
|
368
|
-
it(
|
|
346
|
+
it('renders the mobile actions menu drawer handle even with no primary action', () => {
|
|
369
347
|
const { getByTestId } = render(
|
|
370
348
|
<TitleBlockZen title="Test Title" defaultAction={defaultActionAsButton}>
|
|
371
349
|
Example
|
|
372
|
-
</TitleBlockZen
|
|
350
|
+
</TitleBlockZen>,
|
|
373
351
|
)
|
|
374
352
|
|
|
375
|
-
expect(
|
|
376
|
-
getByTestId("title-block-mobile-actions-drawer-handle")
|
|
377
|
-
).toBeTruthy()
|
|
353
|
+
expect(getByTestId('title-block-mobile-actions-drawer-handle')).toBeTruthy()
|
|
378
354
|
})
|
|
379
355
|
})
|
|
380
356
|
|
|
381
|
-
describe(
|
|
357
|
+
describe('when the default action is a button with both an href and an onClick', () => {
|
|
382
358
|
const testOnClickFn = vi.fn()
|
|
383
359
|
const defaultActionAsLinkAndOnClick = {
|
|
384
|
-
label:
|
|
385
|
-
href:
|
|
360
|
+
label: 'defaultActionLabel',
|
|
361
|
+
href: '#defaultActionHref',
|
|
386
362
|
onClick: testOnClickFn,
|
|
387
363
|
}
|
|
388
364
|
|
|
@@ -390,20 +366,15 @@ describe("<TitleBlockZen />", () => {
|
|
|
390
366
|
testOnClickFn.mockClear()
|
|
391
367
|
})
|
|
392
368
|
|
|
393
|
-
it(
|
|
369
|
+
it('renders the default action button label, href and onClick', async () => {
|
|
394
370
|
const { getByTestId } = render(
|
|
395
|
-
<TitleBlockZen
|
|
396
|
-
title="Test Title"
|
|
397
|
-
defaultAction={defaultActionAsLinkAndOnClick}
|
|
398
|
-
>
|
|
371
|
+
<TitleBlockZen title="Test Title" defaultAction={defaultActionAsLinkAndOnClick}>
|
|
399
372
|
Example
|
|
400
|
-
</TitleBlockZen
|
|
373
|
+
</TitleBlockZen>,
|
|
401
374
|
)
|
|
402
|
-
const btn = getByTestId(
|
|
375
|
+
const btn = getByTestId('title-block-default-action-button')
|
|
403
376
|
expect(btn.textContent).toEqual(defaultActionAsLinkAndOnClick.label)
|
|
404
|
-
expect(btn.getAttribute(
|
|
405
|
-
defaultActionAsLinkAndOnClick.href
|
|
406
|
-
)
|
|
377
|
+
expect(btn.getAttribute('href')).toEqual(defaultActionAsLinkAndOnClick.href)
|
|
407
378
|
await user.click(btn)
|
|
408
379
|
|
|
409
380
|
await waitFor(() => {
|
|
@@ -411,24 +382,17 @@ describe("<TitleBlockZen />", () => {
|
|
|
411
382
|
})
|
|
412
383
|
})
|
|
413
384
|
|
|
414
|
-
it(
|
|
385
|
+
it('creates a single mobile actions default link menu item with both href and onClick', async () => {
|
|
415
386
|
const { getByTestId, queryByTestId } = render(
|
|
416
|
-
<TitleBlockZen
|
|
417
|
-
title="Test Title"
|
|
418
|
-
defaultAction={defaultActionAsLinkAndOnClick}
|
|
419
|
-
>
|
|
387
|
+
<TitleBlockZen title="Test Title" defaultAction={defaultActionAsLinkAndOnClick}>
|
|
420
388
|
Example
|
|
421
|
-
</TitleBlockZen
|
|
389
|
+
</TitleBlockZen>,
|
|
422
390
|
)
|
|
423
391
|
|
|
424
|
-
const menuItem = getByTestId(
|
|
425
|
-
const defaultAction = queryByTestId(
|
|
426
|
-
"title-block-mobile-actions-default-action"
|
|
427
|
-
)
|
|
392
|
+
const menuItem = getByTestId('title-block-mobile-actions-default-link')
|
|
393
|
+
const defaultAction = queryByTestId('title-block-mobile-actions-default-action')
|
|
428
394
|
expect(defaultAction).toBeFalsy()
|
|
429
|
-
expect(menuItem.getAttribute(
|
|
430
|
-
defaultActionAsLinkAndOnClick.href
|
|
431
|
-
)
|
|
395
|
+
expect(menuItem.getAttribute('href')).toEqual(defaultActionAsLinkAndOnClick.href)
|
|
432
396
|
expect(menuItem.textContent).toEqual(defaultActionAsLinkAndOnClick.label)
|
|
433
397
|
await user.click(menuItem)
|
|
434
398
|
|
|
@@ -438,16 +402,16 @@ describe("<TitleBlockZen />", () => {
|
|
|
438
402
|
})
|
|
439
403
|
})
|
|
440
404
|
|
|
441
|
-
describe(
|
|
405
|
+
describe('when the default action is disabled', () => {
|
|
442
406
|
const testOnClickFn = vi.fn()
|
|
443
407
|
const defaultActionAsButton = {
|
|
444
|
-
label:
|
|
408
|
+
label: 'defaultActionLabel',
|
|
445
409
|
onClick: testOnClickFn,
|
|
446
410
|
disabled: true,
|
|
447
411
|
}
|
|
448
412
|
const defaultActionAsLink = {
|
|
449
|
-
label:
|
|
450
|
-
href:
|
|
413
|
+
label: 'defaultActionLabel',
|
|
414
|
+
href: '#defaultActionHref',
|
|
451
415
|
disabled: true,
|
|
452
416
|
}
|
|
453
417
|
|
|
@@ -455,15 +419,13 @@ describe("<TitleBlockZen />", () => {
|
|
|
455
419
|
testOnClickFn.mockClear()
|
|
456
420
|
})
|
|
457
421
|
|
|
458
|
-
it(
|
|
422
|
+
it('renders a disabled default action button', async () => {
|
|
459
423
|
const { getByTestId } = render(
|
|
460
424
|
<TitleBlockZen title="Test Title" defaultAction={defaultActionAsButton}>
|
|
461
425
|
Example
|
|
462
|
-
</TitleBlockZen
|
|
426
|
+
</TitleBlockZen>,
|
|
463
427
|
)
|
|
464
|
-
const btn = getByTestId(
|
|
465
|
-
"title-block-default-action-button"
|
|
466
|
-
) as HTMLButtonElement
|
|
428
|
+
const btn = getByTestId('title-block-default-action-button') as HTMLButtonElement
|
|
467
429
|
expect(btn.textContent).toEqual(defaultActionAsButton.label)
|
|
468
430
|
expect(btn.disabled).toBeTruthy()
|
|
469
431
|
await user.click(btn)
|
|
@@ -473,29 +435,25 @@ describe("<TitleBlockZen />", () => {
|
|
|
473
435
|
})
|
|
474
436
|
})
|
|
475
437
|
|
|
476
|
-
it(
|
|
438
|
+
it('renders a disabled default action link button', () => {
|
|
477
439
|
const { getByTestId } = render(
|
|
478
440
|
<TitleBlockZen title="Test Title" defaultAction={defaultActionAsLink}>
|
|
479
441
|
Example
|
|
480
|
-
</TitleBlockZen
|
|
442
|
+
</TitleBlockZen>,
|
|
481
443
|
)
|
|
482
|
-
const btn = getByTestId(
|
|
483
|
-
"title-block-default-action-button"
|
|
484
|
-
) as HTMLButtonElement
|
|
444
|
+
const btn = getByTestId('title-block-default-action-button') as HTMLButtonElement
|
|
485
445
|
expect(btn.textContent).toEqual(defaultActionAsLink.label)
|
|
486
|
-
expect(btn.getAttribute(
|
|
446
|
+
expect(btn.getAttribute('href')).not.toEqual(defaultActionAsLink.href)
|
|
487
447
|
})
|
|
488
448
|
|
|
489
|
-
it(
|
|
449
|
+
it('creates a mobile actions default action menu item with disabled styles and no onClick', async () => {
|
|
490
450
|
const { getByTestId } = render(
|
|
491
451
|
<TitleBlockZen title="Test Title" defaultAction={defaultActionAsButton}>
|
|
492
452
|
Example
|
|
493
|
-
</TitleBlockZen
|
|
453
|
+
</TitleBlockZen>,
|
|
494
454
|
)
|
|
495
455
|
|
|
496
|
-
const btn = getByTestId(
|
|
497
|
-
"title-block-mobile-actions-default-action"
|
|
498
|
-
) as HTMLButtonElement
|
|
456
|
+
const btn = getByTestId('title-block-mobile-actions-default-action') as HTMLButtonElement
|
|
499
457
|
expect(btn.textContent).toEqual(defaultActionAsButton.label)
|
|
500
458
|
await user.click(btn)
|
|
501
459
|
|
|
@@ -504,26 +462,24 @@ describe("<TitleBlockZen />", () => {
|
|
|
504
462
|
})
|
|
505
463
|
})
|
|
506
464
|
|
|
507
|
-
it(
|
|
465
|
+
it('creates a mobile actions default link menu item with disabled styles and no href', () => {
|
|
508
466
|
const { getByTestId } = render(
|
|
509
467
|
<TitleBlockZen title="Test Title" defaultAction={defaultActionAsLink}>
|
|
510
468
|
Example
|
|
511
|
-
</TitleBlockZen
|
|
469
|
+
</TitleBlockZen>,
|
|
512
470
|
)
|
|
513
471
|
|
|
514
|
-
const btn = getByTestId(
|
|
515
|
-
"title-block-mobile-actions-default-link"
|
|
516
|
-
) as HTMLButtonElement
|
|
472
|
+
const btn = getByTestId('title-block-mobile-actions-default-link') as HTMLButtonElement
|
|
517
473
|
expect(btn.textContent).toEqual(defaultActionAsLink.label)
|
|
518
|
-
expect(btn.getAttribute(
|
|
474
|
+
expect(btn.getAttribute('href')).not.toEqual(defaultActionAsLink.href)
|
|
519
475
|
})
|
|
520
476
|
})
|
|
521
477
|
|
|
522
|
-
describe(
|
|
478
|
+
describe('when a secondary action is passed with both an href and an onClick', () => {
|
|
523
479
|
const testOnClickFn = vi.fn()
|
|
524
480
|
const secondaryActionWithLinkAndOnClick = {
|
|
525
|
-
label:
|
|
526
|
-
href:
|
|
481
|
+
label: 'secondaryActionLabel',
|
|
482
|
+
href: '#secondaryActionHref',
|
|
527
483
|
onClick: testOnClickFn,
|
|
528
484
|
}
|
|
529
485
|
|
|
@@ -531,26 +487,19 @@ describe("<TitleBlockZen />", () => {
|
|
|
531
487
|
testOnClickFn.mockClear()
|
|
532
488
|
})
|
|
533
489
|
|
|
534
|
-
it(
|
|
490
|
+
it('renders the secondary action with both the href and onClick', async () => {
|
|
535
491
|
const mockWarnFn = vi.fn()
|
|
536
|
-
const spy = vi
|
|
537
|
-
.spyOn(global.console, "warn")
|
|
538
|
-
.mockImplementation(mockWarnFn)
|
|
492
|
+
const spy = vi.spyOn(global.console, 'warn').mockImplementation(mockWarnFn)
|
|
539
493
|
const { getByTestId } = render(
|
|
540
|
-
<TitleBlockZen
|
|
541
|
-
title="Test Title"
|
|
542
|
-
secondaryActions={[secondaryActionWithLinkAndOnClick]}
|
|
543
|
-
>
|
|
494
|
+
<TitleBlockZen title="Test Title" secondaryActions={[secondaryActionWithLinkAndOnClick]}>
|
|
544
495
|
Example
|
|
545
|
-
</TitleBlockZen
|
|
496
|
+
</TitleBlockZen>,
|
|
546
497
|
)
|
|
547
|
-
const btn = getByTestId(
|
|
498
|
+
const btn = getByTestId('title-block-secondary-actions-button')
|
|
548
499
|
expect(btn).toBeTruthy()
|
|
549
500
|
expect(mockWarnFn).toBeCalled()
|
|
550
501
|
expect(btn.textContent).toEqual(secondaryActionWithLinkAndOnClick.label)
|
|
551
|
-
expect(btn.getAttribute(
|
|
552
|
-
secondaryActionWithLinkAndOnClick.href
|
|
553
|
-
)
|
|
502
|
+
expect(btn.getAttribute('href')).toEqual(secondaryActionWithLinkAndOnClick.href)
|
|
554
503
|
await user.click(btn)
|
|
555
504
|
await waitFor(() => {
|
|
556
505
|
expect(testOnClickFn).toHaveBeenCalled()
|
|
@@ -558,24 +507,17 @@ describe("<TitleBlockZen />", () => {
|
|
|
558
507
|
spy.mockRestore()
|
|
559
508
|
})
|
|
560
509
|
|
|
561
|
-
it(
|
|
510
|
+
it('renders the action as a single mobile actions drawer item with an onClick', async () => {
|
|
562
511
|
const mockWarnFn = vi.fn()
|
|
563
|
-
const spy = vi
|
|
564
|
-
.spyOn(global.console, "warn")
|
|
565
|
-
.mockImplementation(mockWarnFn)
|
|
512
|
+
const spy = vi.spyOn(global.console, 'warn').mockImplementation(mockWarnFn)
|
|
566
513
|
const { getAllByTestId } = render(
|
|
567
|
-
<TitleBlockZen
|
|
568
|
-
title="Test Title"
|
|
569
|
-
secondaryActions={[secondaryActionWithLinkAndOnClick]}
|
|
570
|
-
>
|
|
514
|
+
<TitleBlockZen title="Test Title" secondaryActions={[secondaryActionWithLinkAndOnClick]}>
|
|
571
515
|
Example
|
|
572
|
-
</TitleBlockZen
|
|
516
|
+
</TitleBlockZen>,
|
|
573
517
|
)
|
|
574
|
-
const btn = getAllByTestId(
|
|
518
|
+
const btn = getAllByTestId('title-block-mobile-actions-secondary-action')
|
|
575
519
|
expect(btn.length).toEqual(1)
|
|
576
|
-
expect(btn[0].getAttribute(
|
|
577
|
-
secondaryActionWithLinkAndOnClick.href
|
|
578
|
-
)
|
|
520
|
+
expect(btn[0].getAttribute('href')).not.toEqual(secondaryActionWithLinkAndOnClick.href)
|
|
579
521
|
await user.click(btn[0])
|
|
580
522
|
|
|
581
523
|
await waitFor(() => {
|
|
@@ -585,9 +527,9 @@ describe("<TitleBlockZen />", () => {
|
|
|
585
527
|
})
|
|
586
528
|
})
|
|
587
529
|
|
|
588
|
-
describe(
|
|
589
|
-
it(
|
|
590
|
-
const expectedText =
|
|
530
|
+
describe('when a custom compent is provided for section title', () => {
|
|
531
|
+
it('renders a custom element in section title', async () => {
|
|
532
|
+
const expectedText = 'This is a button'
|
|
591
533
|
const CustomComponent = (props: SectionTitleRenderProps): JSX.Element => (
|
|
592
534
|
<button type="button">{props.sectionTitle}</button>
|
|
593
535
|
)
|
|
@@ -596,48 +538,45 @@ describe("<TitleBlockZen />", () => {
|
|
|
596
538
|
title="Test title"
|
|
597
539
|
sectionTitle={expectedText}
|
|
598
540
|
renderSectionTitle={CustomComponent}
|
|
599
|
-
|
|
541
|
+
/>,
|
|
600
542
|
)
|
|
601
|
-
const el = await screen.findByRole(
|
|
543
|
+
const el = await screen.findByRole('button')
|
|
602
544
|
expect(el.textContent).toBe(expectedText)
|
|
603
545
|
})
|
|
604
546
|
|
|
605
|
-
it(
|
|
606
|
-
const expectedText =
|
|
547
|
+
it('renders a heading when no render prop is provided', async () => {
|
|
548
|
+
const expectedText = 'My expected text'
|
|
607
549
|
render(<TitleBlockZen title="Test title" sectionTitle={expectedText} />)
|
|
608
|
-
const el = await screen.findByRole(
|
|
550
|
+
const el = await screen.findByRole('heading', { level: 2 })
|
|
609
551
|
expect(el.textContent).toBe(expectedText)
|
|
610
552
|
})
|
|
611
553
|
})
|
|
612
554
|
|
|
613
|
-
describe(
|
|
555
|
+
describe('when a secondary action is passed with only an href', () => {
|
|
614
556
|
const secondaryActionWithLink = {
|
|
615
|
-
label:
|
|
616
|
-
href:
|
|
557
|
+
label: 'secondaryActionLabel',
|
|
558
|
+
href: '#secondaryActionHref',
|
|
617
559
|
}
|
|
618
560
|
|
|
619
|
-
it(
|
|
561
|
+
it('renders the action as a single mobile actions drawer item with the correct href', () => {
|
|
620
562
|
const { getAllByTestId } = render(
|
|
621
|
-
<TitleBlockZen
|
|
622
|
-
title="Test Title"
|
|
623
|
-
secondaryActions={[secondaryActionWithLink]}
|
|
624
|
-
>
|
|
563
|
+
<TitleBlockZen title="Test Title" secondaryActions={[secondaryActionWithLink]}>
|
|
625
564
|
Example
|
|
626
|
-
</TitleBlockZen
|
|
565
|
+
</TitleBlockZen>,
|
|
627
566
|
)
|
|
628
|
-
const btn = getAllByTestId(
|
|
567
|
+
const btn = getAllByTestId('title-block-mobile-actions-secondary-action')
|
|
629
568
|
expect(btn.length).toEqual(1)
|
|
630
|
-
expect(btn[0].getAttribute(
|
|
569
|
+
expect(btn[0].getAttribute('href')).toEqual(secondaryActionWithLink.href)
|
|
631
570
|
})
|
|
632
571
|
})
|
|
633
572
|
|
|
634
|
-
describe(
|
|
573
|
+
describe('when autoHideMobileActionsMenu is true', () => {
|
|
635
574
|
const secondaryActionWithLink = {
|
|
636
|
-
label:
|
|
637
|
-
href:
|
|
575
|
+
label: 'secondaryActionLabel',
|
|
576
|
+
href: '#secondaryActionHref',
|
|
638
577
|
}
|
|
639
578
|
|
|
640
|
-
it(
|
|
579
|
+
it('hides the other actions menu when user clicks a menu item', async () => {
|
|
641
580
|
const { getAllByTestId } = render(
|
|
642
581
|
<TitleBlockZen
|
|
643
582
|
title="Test Title"
|
|
@@ -645,75 +584,63 @@ describe("<TitleBlockZen />", () => {
|
|
|
645
584
|
autoHideMobileActionsMenu
|
|
646
585
|
>
|
|
647
586
|
Example
|
|
648
|
-
</TitleBlockZen
|
|
587
|
+
</TitleBlockZen>,
|
|
649
588
|
)
|
|
650
589
|
|
|
651
|
-
const mobileActionsButton = screen.getByRole(
|
|
652
|
-
name:
|
|
590
|
+
const mobileActionsButton = screen.getByRole('button', {
|
|
591
|
+
name: 'Other actions',
|
|
653
592
|
})
|
|
654
593
|
|
|
655
|
-
expect(mobileActionsButton.getAttribute(
|
|
594
|
+
expect(mobileActionsButton.getAttribute('aria-expanded')).toEqual('false')
|
|
656
595
|
await user.click(mobileActionsButton)
|
|
657
596
|
await waitFor(() => {
|
|
658
|
-
expect(mobileActionsButton.getAttribute(
|
|
659
|
-
"true"
|
|
660
|
-
)
|
|
597
|
+
expect(mobileActionsButton.getAttribute('aria-expanded')).toEqual('true')
|
|
661
598
|
})
|
|
662
599
|
|
|
663
|
-
const btn = getAllByTestId(
|
|
600
|
+
const btn = getAllByTestId('title-block-mobile-actions-secondary-action')
|
|
664
601
|
expect(btn.length).toEqual(1)
|
|
665
602
|
await user.click(btn[0])
|
|
666
603
|
|
|
667
604
|
await waitFor(() => {
|
|
668
|
-
expect(mobileActionsButton.getAttribute(
|
|
669
|
-
"false"
|
|
670
|
-
)
|
|
605
|
+
expect(mobileActionsButton.getAttribute('aria-expanded')).toEqual('false')
|
|
671
606
|
})
|
|
672
607
|
})
|
|
673
608
|
})
|
|
674
609
|
|
|
675
|
-
describe(
|
|
610
|
+
describe('when a disabled secondary action is passed with only an href', () => {
|
|
676
611
|
const secondaryActionWithLink = {
|
|
677
|
-
label:
|
|
678
|
-
href:
|
|
612
|
+
label: 'secondaryActionLabel',
|
|
613
|
+
href: '#secondaryActionHref',
|
|
679
614
|
disabled: true,
|
|
680
615
|
}
|
|
681
616
|
|
|
682
|
-
it(
|
|
617
|
+
it('renders the action as a single disabled mobile actions drawer item with no href', () => {
|
|
683
618
|
const { getAllByTestId } = render(
|
|
684
|
-
<TitleBlockZen
|
|
685
|
-
title="Test Title"
|
|
686
|
-
secondaryActions={[secondaryActionWithLink]}
|
|
687
|
-
>
|
|
619
|
+
<TitleBlockZen title="Test Title" secondaryActions={[secondaryActionWithLink]}>
|
|
688
620
|
Example
|
|
689
|
-
</TitleBlockZen
|
|
621
|
+
</TitleBlockZen>,
|
|
690
622
|
)
|
|
691
|
-
const btn = getAllByTestId(
|
|
623
|
+
const btn = getAllByTestId('title-block-mobile-actions-secondary-action')
|
|
692
624
|
expect(btn.length).toEqual(1)
|
|
693
|
-
expect(btn[0].getAttribute(
|
|
694
|
-
secondaryActionWithLink.href
|
|
695
|
-
)
|
|
625
|
+
expect(btn[0].getAttribute('href')).not.toEqual(secondaryActionWithLink.href)
|
|
696
626
|
})
|
|
697
627
|
})
|
|
698
628
|
|
|
699
|
-
describe(
|
|
629
|
+
describe('when a disabled secondary action is passed with only an onClick', () => {
|
|
700
630
|
const testOnClickFn = vi.fn()
|
|
701
631
|
const secondaryActionWithOnClick = {
|
|
702
|
-
label:
|
|
632
|
+
label: 'secondaryActionLabel',
|
|
703
633
|
onClick: testOnClickFn,
|
|
704
634
|
disabled: true,
|
|
705
635
|
}
|
|
706
636
|
|
|
707
|
-
it(
|
|
637
|
+
it('renders the action as a single disabled mobile actions drawer item with no onClick', async () => {
|
|
708
638
|
const { getAllByTestId } = render(
|
|
709
|
-
<TitleBlockZen
|
|
710
|
-
title="Test Title"
|
|
711
|
-
secondaryActions={[secondaryActionWithOnClick]}
|
|
712
|
-
>
|
|
639
|
+
<TitleBlockZen title="Test Title" secondaryActions={[secondaryActionWithOnClick]}>
|
|
713
640
|
Example
|
|
714
|
-
</TitleBlockZen
|
|
641
|
+
</TitleBlockZen>,
|
|
715
642
|
)
|
|
716
|
-
const btn = getAllByTestId(
|
|
643
|
+
const btn = getAllByTestId('title-block-mobile-actions-secondary-action')
|
|
717
644
|
expect(btn.length).toEqual(1)
|
|
718
645
|
await user.click(btn[0])
|
|
719
646
|
|
|
@@ -723,15 +650,15 @@ describe("<TitleBlockZen />", () => {
|
|
|
723
650
|
})
|
|
724
651
|
})
|
|
725
652
|
|
|
726
|
-
describe(
|
|
653
|
+
describe('when a disabled secondary overflow menu item is passed with only an onClick for the action', () => {
|
|
727
654
|
const testOnClickFn = vi.fn()
|
|
728
655
|
const secondaryOverflowMenuItemWithOnClick = {
|
|
729
|
-
label:
|
|
656
|
+
label: 'secondaryActionOverflowMenuItemLabel',
|
|
730
657
|
action: testOnClickFn,
|
|
731
658
|
disabled: true,
|
|
732
659
|
}
|
|
733
660
|
|
|
734
|
-
it(
|
|
661
|
+
it('renders the action as a single disabled mobile actions drawer item with no onClick', async () => {
|
|
735
662
|
const { getAllByTestId } = render(
|
|
736
663
|
<TitleBlockZen
|
|
737
664
|
title="Test Title"
|
|
@@ -739,11 +666,9 @@ describe("<TitleBlockZen />", () => {
|
|
|
739
666
|
secondaryOverflowMenuItems={[secondaryOverflowMenuItemWithOnClick]}
|
|
740
667
|
>
|
|
741
668
|
Example
|
|
742
|
-
</TitleBlockZen
|
|
743
|
-
)
|
|
744
|
-
const btn = getAllByTestId(
|
|
745
|
-
"title-block-mobile-actions-overflow-menu-item"
|
|
669
|
+
</TitleBlockZen>,
|
|
746
670
|
)
|
|
671
|
+
const btn = getAllByTestId('title-block-mobile-actions-overflow-menu-item')
|
|
747
672
|
expect(btn.length).toEqual(1)
|
|
748
673
|
await user.click(btn[0])
|
|
749
674
|
|
|
@@ -753,18 +678,17 @@ describe("<TitleBlockZen />", () => {
|
|
|
753
678
|
})
|
|
754
679
|
})
|
|
755
680
|
|
|
756
|
-
describe(
|
|
757
|
-
describe(
|
|
758
|
-
it(
|
|
681
|
+
describe('automation ID behaviour', () => {
|
|
682
|
+
describe('when default automation IDs are not provided alongside required conditional renders', () => {
|
|
683
|
+
it('renders the default automation IDs', () => {
|
|
759
684
|
const automationdIds = {
|
|
760
|
-
titleAutomationId:
|
|
761
|
-
avatarAutomationId:
|
|
762
|
-
subtitleAutomationId:
|
|
763
|
-
sectionTitleAutomationId:
|
|
764
|
-
sectionTitleDescriptionAutomationId:
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
breadcrumbTextAutomationId: "TitleBlock__BreadcrumbText",
|
|
685
|
+
titleAutomationId: 'TitleBlock__Title',
|
|
686
|
+
avatarAutomationId: 'TitleBlock__Avatar',
|
|
687
|
+
subtitleAutomationId: 'TitleBlock__Subtitle',
|
|
688
|
+
sectionTitleAutomationId: 'TitleBlock__SectionTitle',
|
|
689
|
+
sectionTitleDescriptionAutomationId: 'TitleBlock__SectionTitleDescription',
|
|
690
|
+
breadcrumbAutomationId: 'TitleBlock__Breadcrumb',
|
|
691
|
+
breadcrumbTextAutomationId: 'TitleBlock__BreadcrumbText',
|
|
768
692
|
}
|
|
769
693
|
|
|
770
694
|
const { container } = render(
|
|
@@ -773,36 +697,33 @@ describe("<TitleBlockZen />", () => {
|
|
|
773
697
|
subtitle="Test Subtitle"
|
|
774
698
|
avatar={<div>Test JSX Avatar Component</div>}
|
|
775
699
|
breadcrumb={{
|
|
776
|
-
text:
|
|
777
|
-
path:
|
|
700
|
+
text: 'Test Breadcrumb',
|
|
701
|
+
path: '/',
|
|
778
702
|
handleClick: vi.fn(),
|
|
779
703
|
}}
|
|
780
704
|
sectionTitle="Test Section Title"
|
|
781
705
|
sectionTitleDescription="Test Section Title Description"
|
|
782
706
|
>
|
|
783
707
|
Example
|
|
784
|
-
</TitleBlockZen
|
|
708
|
+
</TitleBlockZen>,
|
|
785
709
|
)
|
|
786
710
|
|
|
787
711
|
for (const automationId of Object.values(automationdIds)) {
|
|
788
|
-
expect(
|
|
789
|
-
container.querySelector(`[data-automation-id="${automationId}"]`)
|
|
790
|
-
).toBeTruthy()
|
|
712
|
+
expect(container.querySelector(`[data-automation-id="${automationId}"]`)).toBeTruthy()
|
|
791
713
|
}
|
|
792
714
|
})
|
|
793
715
|
})
|
|
794
716
|
|
|
795
|
-
describe(
|
|
796
|
-
it(
|
|
717
|
+
describe('when default automation IDs are provided alongside required conditional renders', () => {
|
|
718
|
+
it('renders the provided automation IDs', () => {
|
|
797
719
|
const automationdIds = {
|
|
798
|
-
titleAutomationId:
|
|
799
|
-
avatarAutomationId:
|
|
800
|
-
subtitleAutomationId:
|
|
801
|
-
sectionTitleAutomationId:
|
|
802
|
-
sectionTitleDescriptionAutomationId:
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
breadcrumbTextAutomationId: "breadcrumbTextAutomationId",
|
|
720
|
+
titleAutomationId: 'titleBlockTitle',
|
|
721
|
+
avatarAutomationId: 'titleBlockAvatar',
|
|
722
|
+
subtitleAutomationId: 'titleBlockSubtitle',
|
|
723
|
+
sectionTitleAutomationId: 'titleBlockSectionTitle',
|
|
724
|
+
sectionTitleDescriptionAutomationId: 'titleBlockSectionTitleDescription',
|
|
725
|
+
breadcrumbAutomationId: 'breadcrumbAutomationId',
|
|
726
|
+
breadcrumbTextAutomationId: 'breadcrumbTextAutomationId',
|
|
806
727
|
}
|
|
807
728
|
|
|
808
729
|
const { container } = render(
|
|
@@ -811,8 +732,8 @@ describe("<TitleBlockZen />", () => {
|
|
|
811
732
|
subtitle="Test Subtitle"
|
|
812
733
|
avatar={<div>Test JSX Avatar Component</div>}
|
|
813
734
|
breadcrumb={{
|
|
814
|
-
text:
|
|
815
|
-
path:
|
|
735
|
+
text: 'Test Breadcrumb',
|
|
736
|
+
path: '/',
|
|
816
737
|
handleClick: vi.fn(),
|
|
817
738
|
}}
|
|
818
739
|
sectionTitle="Test Section Title"
|
|
@@ -821,43 +742,37 @@ describe("<TitleBlockZen />", () => {
|
|
|
821
742
|
avatarAutomationId={automationdIds.avatarAutomationId}
|
|
822
743
|
subtitleAutomationId={automationdIds.subtitleAutomationId}
|
|
823
744
|
sectionTitleAutomationId={automationdIds.sectionTitleAutomationId}
|
|
824
|
-
sectionTitleDescriptionAutomationId={
|
|
825
|
-
automationdIds.sectionTitleDescriptionAutomationId
|
|
826
|
-
}
|
|
745
|
+
sectionTitleDescriptionAutomationId={automationdIds.sectionTitleDescriptionAutomationId}
|
|
827
746
|
breadcrumbAutomationId={automationdIds.breadcrumbAutomationId}
|
|
828
|
-
breadcrumbTextAutomationId={
|
|
829
|
-
automationdIds.breadcrumbTextAutomationId
|
|
830
|
-
}
|
|
747
|
+
breadcrumbTextAutomationId={automationdIds.breadcrumbTextAutomationId}
|
|
831
748
|
>
|
|
832
749
|
Example
|
|
833
|
-
</TitleBlockZen
|
|
750
|
+
</TitleBlockZen>,
|
|
834
751
|
)
|
|
835
752
|
|
|
836
753
|
for (const automationId of Object.values(automationdIds)) {
|
|
837
|
-
expect(
|
|
838
|
-
container.querySelector(`[data-automation-id="${automationId}"]`)
|
|
839
|
-
).toBeTruthy()
|
|
754
|
+
expect(container.querySelector(`[data-automation-id="${automationId}"]`)).toBeTruthy()
|
|
840
755
|
}
|
|
841
756
|
})
|
|
842
757
|
})
|
|
843
758
|
})
|
|
844
759
|
|
|
845
|
-
describe(
|
|
846
|
-
it(
|
|
760
|
+
describe('breadcrumb', () => {
|
|
761
|
+
it('renders a link when you pass a path prop', () => {
|
|
847
762
|
render(
|
|
848
763
|
<TitleBlockZen
|
|
849
764
|
title="Test Title"
|
|
850
765
|
breadcrumb={{
|
|
851
|
-
text:
|
|
852
|
-
path:
|
|
766
|
+
text: 'Back',
|
|
767
|
+
path: '/path/to/somewhere',
|
|
853
768
|
handleClick: (): void => undefined,
|
|
854
769
|
}}
|
|
855
770
|
>
|
|
856
771
|
Example
|
|
857
|
-
</TitleBlockZen
|
|
772
|
+
</TitleBlockZen>,
|
|
858
773
|
)
|
|
859
774
|
|
|
860
|
-
expect(screen.getByRole(
|
|
775
|
+
expect(screen.getByRole('link', { name: 'Back' })).toBeInTheDocument()
|
|
861
776
|
})
|
|
862
777
|
|
|
863
778
|
it("renders a button when you don't pass a path prop", () => {
|
|
@@ -865,15 +780,15 @@ describe("<TitleBlockZen />", () => {
|
|
|
865
780
|
<TitleBlockZen
|
|
866
781
|
title="Test Title"
|
|
867
782
|
breadcrumb={{
|
|
868
|
-
text:
|
|
783
|
+
text: 'Back',
|
|
869
784
|
handleClick: (): void => undefined,
|
|
870
785
|
}}
|
|
871
786
|
>
|
|
872
787
|
Example
|
|
873
|
-
</TitleBlockZen
|
|
788
|
+
</TitleBlockZen>,
|
|
874
789
|
)
|
|
875
790
|
|
|
876
|
-
expect(screen.getByRole(
|
|
791
|
+
expect(screen.getByRole('button', { name: 'Back' })).toBeInTheDocument()
|
|
877
792
|
})
|
|
878
793
|
|
|
879
794
|
it("renders a custom component when you pass a 'render' prop", async () => {
|
|
@@ -894,17 +809,17 @@ describe("<TitleBlockZen />", () => {
|
|
|
894
809
|
<TitleBlockZen
|
|
895
810
|
title="Test Title"
|
|
896
811
|
breadcrumb={{
|
|
897
|
-
text:
|
|
812
|
+
text: 'Back',
|
|
898
813
|
handleClick: mockFn,
|
|
899
814
|
render: CustomComponent,
|
|
900
815
|
}}
|
|
901
816
|
>
|
|
902
817
|
Example
|
|
903
|
-
</TitleBlockZen
|
|
818
|
+
</TitleBlockZen>,
|
|
904
819
|
)
|
|
905
820
|
|
|
906
|
-
const customElement = screen.getByTestId(
|
|
907
|
-
expect(customElement).toHaveTextContent(
|
|
821
|
+
const customElement = screen.getByTestId('custom-component')
|
|
822
|
+
expect(customElement).toHaveTextContent('Back')
|
|
908
823
|
await user.click(customElement)
|
|
909
824
|
|
|
910
825
|
await waitFor(() => {
|
|
@@ -915,11 +830,7 @@ describe("<TitleBlockZen />", () => {
|
|
|
915
830
|
|
|
916
831
|
describe("renders a custom component when you pass a 'component' prop to a action", () => {
|
|
917
832
|
const MockLinkComponent = (props: any): JSX.Element => (
|
|
918
|
-
<a
|
|
919
|
-
className={props.className}
|
|
920
|
-
href={props.href}
|
|
921
|
-
data-testid={props["data-testid"]}
|
|
922
|
-
>
|
|
833
|
+
<a className={props.className} href={props.href} data-testid={props['data-testid']}>
|
|
923
834
|
{props.children}
|
|
924
835
|
</a>
|
|
925
836
|
)
|
|
@@ -928,82 +839,78 @@ describe("<TitleBlockZen />", () => {
|
|
|
928
839
|
type="button"
|
|
929
840
|
className={props.className}
|
|
930
841
|
onClick={props.onClick}
|
|
931
|
-
data-testid={props[
|
|
842
|
+
data-testid={props['data-testid']}
|
|
932
843
|
>
|
|
933
844
|
{props.children}
|
|
934
845
|
</button>
|
|
935
846
|
)
|
|
936
847
|
|
|
937
|
-
describe(
|
|
938
|
-
it(
|
|
848
|
+
describe('primaryAction', () => {
|
|
849
|
+
it('will render a custom anchor component in the main action toolbar', () => {
|
|
939
850
|
render(
|
|
940
851
|
<TitleBlockZen
|
|
941
852
|
title="Test Title"
|
|
942
853
|
primaryAction={{
|
|
943
|
-
label:
|
|
944
|
-
href:
|
|
854
|
+
label: 'Primary action',
|
|
855
|
+
href: '#test-primary',
|
|
945
856
|
component: MockLinkComponent,
|
|
946
857
|
}}
|
|
947
858
|
>
|
|
948
859
|
Example
|
|
949
|
-
</TitleBlockZen
|
|
860
|
+
</TitleBlockZen>,
|
|
950
861
|
)
|
|
951
|
-
const toolbar = screen.getByTestId(
|
|
952
|
-
within(toolbar).getByRole(
|
|
953
|
-
name:
|
|
862
|
+
const toolbar = screen.getByTestId('title-block-main-actions-toolbar')
|
|
863
|
+
within(toolbar).getByRole('link', {
|
|
864
|
+
name: 'Primary action',
|
|
954
865
|
})
|
|
955
866
|
expect(
|
|
956
|
-
within(toolbar).getByRole(
|
|
957
|
-
name:
|
|
958
|
-
})
|
|
959
|
-
).toHaveAttribute(
|
|
867
|
+
within(toolbar).getByRole('link', {
|
|
868
|
+
name: 'Primary action',
|
|
869
|
+
}),
|
|
870
|
+
).toHaveAttribute('href', '#test-primary')
|
|
960
871
|
})
|
|
961
872
|
|
|
962
|
-
it(
|
|
873
|
+
it('will render a custom anchor component in the mobile drawer', () => {
|
|
963
874
|
render(
|
|
964
875
|
<TitleBlockZen
|
|
965
876
|
title="Test Title"
|
|
966
877
|
primaryAction={{
|
|
967
|
-
label:
|
|
968
|
-
href:
|
|
878
|
+
label: 'Primary action',
|
|
879
|
+
href: '#test-primary',
|
|
969
880
|
component: MockLinkComponent,
|
|
970
881
|
}}
|
|
971
882
|
>
|
|
972
883
|
Example
|
|
973
|
-
</TitleBlockZen
|
|
884
|
+
</TitleBlockZen>,
|
|
974
885
|
)
|
|
975
|
-
const drawer = screen.getByTestId(
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
within(drawer).getByRole("link", {
|
|
979
|
-
name: "Primary action",
|
|
886
|
+
const drawer = screen.getByTestId('title-block-mobile-actions-drawer-handle')
|
|
887
|
+
within(drawer).getByRole('link', {
|
|
888
|
+
name: 'Primary action',
|
|
980
889
|
})
|
|
981
890
|
expect(
|
|
982
|
-
within(drawer).getByRole(
|
|
983
|
-
name:
|
|
984
|
-
})
|
|
985
|
-
).toHaveAttribute(
|
|
891
|
+
within(drawer).getByRole('link', {
|
|
892
|
+
name: 'Primary action',
|
|
893
|
+
}),
|
|
894
|
+
).toHaveAttribute('href', '#test-primary')
|
|
986
895
|
})
|
|
987
896
|
|
|
988
|
-
it(
|
|
897
|
+
it('will render custom button with functional onClick', async () => {
|
|
989
898
|
const testClickFunc = vi.fn()
|
|
990
899
|
render(
|
|
991
900
|
<TitleBlockZen
|
|
992
901
|
title="Test Title"
|
|
993
902
|
primaryAction={{
|
|
994
|
-
label:
|
|
903
|
+
label: 'Primary action',
|
|
995
904
|
onClick: testClickFunc,
|
|
996
905
|
component: MockButtonComponent,
|
|
997
906
|
}}
|
|
998
907
|
>
|
|
999
908
|
Example
|
|
1000
|
-
</TitleBlockZen
|
|
1001
|
-
)
|
|
1002
|
-
const drawer = screen.getByTestId(
|
|
1003
|
-
"title-block-mobile-actions-drawer-handle"
|
|
909
|
+
</TitleBlockZen>,
|
|
1004
910
|
)
|
|
1005
|
-
const
|
|
1006
|
-
|
|
911
|
+
const drawer = screen.getByTestId('title-block-mobile-actions-drawer-handle')
|
|
912
|
+
const drawerBtn = within(drawer).getByRole('button', {
|
|
913
|
+
name: 'Primary action',
|
|
1007
914
|
})
|
|
1008
915
|
await user.click(drawerBtn)
|
|
1009
916
|
|
|
@@ -1012,158 +919,144 @@ describe("<TitleBlockZen />", () => {
|
|
|
1012
919
|
})
|
|
1013
920
|
})
|
|
1014
921
|
|
|
1015
|
-
it(
|
|
922
|
+
it('will render custom button with children and not label', () => {
|
|
1016
923
|
const testClickFunc = vi.fn()
|
|
1017
924
|
render(
|
|
1018
925
|
<TitleBlockZen
|
|
1019
926
|
title="Test Title"
|
|
1020
927
|
primaryAction={{
|
|
1021
|
-
label:
|
|
928
|
+
label: 'Primary action',
|
|
1022
929
|
onClick: testClickFunc,
|
|
1023
930
|
component: (props): JSX.Element => (
|
|
1024
|
-
<MockButtonComponent {...props}>
|
|
1025
|
-
This will replace label
|
|
1026
|
-
</MockButtonComponent>
|
|
931
|
+
<MockButtonComponent {...props}>This will replace label</MockButtonComponent>
|
|
1027
932
|
),
|
|
1028
933
|
}}
|
|
1029
934
|
>
|
|
1030
935
|
Example
|
|
1031
|
-
</TitleBlockZen
|
|
1032
|
-
)
|
|
1033
|
-
const drawer = screen.getByTestId(
|
|
1034
|
-
"title-block-mobile-actions-drawer-handle"
|
|
936
|
+
</TitleBlockZen>,
|
|
1035
937
|
)
|
|
1036
|
-
|
|
1037
|
-
|
|
938
|
+
const drawer = screen.getByTestId('title-block-mobile-actions-drawer-handle')
|
|
939
|
+
within(drawer).getByRole('button', {
|
|
940
|
+
name: 'This will replace label',
|
|
1038
941
|
})
|
|
1039
942
|
expect(
|
|
1040
|
-
within(drawer).queryByRole(
|
|
1041
|
-
name:
|
|
1042
|
-
})
|
|
943
|
+
within(drawer).queryByRole('button', {
|
|
944
|
+
name: 'Primary action',
|
|
945
|
+
}),
|
|
1043
946
|
).toBeFalsy()
|
|
1044
947
|
})
|
|
1045
948
|
})
|
|
1046
949
|
|
|
1047
|
-
describe(
|
|
1048
|
-
it(
|
|
950
|
+
describe('secondaryActions', () => {
|
|
951
|
+
it('will render multiple custom anchor components in the secondary actions toolbar', () => {
|
|
1049
952
|
render(
|
|
1050
953
|
<TitleBlockZen
|
|
1051
954
|
title="Test Title"
|
|
1052
955
|
secondaryActions={[
|
|
1053
956
|
{
|
|
1054
|
-
label:
|
|
1055
|
-
href:
|
|
957
|
+
label: 'Secondary action 1',
|
|
958
|
+
href: '#test-secondary',
|
|
1056
959
|
component: MockLinkComponent,
|
|
1057
960
|
},
|
|
1058
961
|
{
|
|
1059
|
-
label:
|
|
1060
|
-
href:
|
|
962
|
+
label: 'Secondary action 2',
|
|
963
|
+
href: '#test-secondary-2',
|
|
1061
964
|
component: MockLinkComponent,
|
|
1062
965
|
},
|
|
1063
966
|
]}
|
|
1064
967
|
>
|
|
1065
968
|
Example
|
|
1066
|
-
</TitleBlockZen
|
|
969
|
+
</TitleBlockZen>,
|
|
1067
970
|
)
|
|
1068
|
-
const toolbar = screen.getByTestId(
|
|
1069
|
-
|
|
1070
|
-
)
|
|
1071
|
-
const links = within(toolbar).getAllByRole("link")
|
|
971
|
+
const toolbar = screen.getByTestId('title-block-secondary-actions-toolbar')
|
|
972
|
+
const links = within(toolbar).getAllByRole('link')
|
|
1072
973
|
expect(links.length).toBe(2)
|
|
1073
|
-
expect(links[0]).toHaveAttribute(
|
|
1074
|
-
expect(links[1]).toHaveAttribute(
|
|
974
|
+
expect(links[0]).toHaveAttribute('href', '#test-secondary')
|
|
975
|
+
expect(links[1]).toHaveAttribute('href', '#test-secondary-2')
|
|
1075
976
|
})
|
|
1076
977
|
|
|
1077
|
-
it(
|
|
978
|
+
it('will render multiple custom anchor components in the secondary actions mobile Drawer', () => {
|
|
1078
979
|
render(
|
|
1079
980
|
<TitleBlockZen
|
|
1080
981
|
title="Test Title"
|
|
1081
982
|
secondaryActions={[
|
|
1082
983
|
{
|
|
1083
|
-
label:
|
|
1084
|
-
href:
|
|
984
|
+
label: 'Secondary action 1',
|
|
985
|
+
href: '#test-secondary',
|
|
1085
986
|
component: MockLinkComponent,
|
|
1086
987
|
},
|
|
1087
988
|
{
|
|
1088
|
-
label:
|
|
1089
|
-
href:
|
|
989
|
+
label: 'Secondary action 2',
|
|
990
|
+
href: '#test-secondary-2',
|
|
1090
991
|
component: MockLinkComponent,
|
|
1091
992
|
},
|
|
1092
993
|
]}
|
|
1093
994
|
>
|
|
1094
995
|
Example
|
|
1095
|
-
</TitleBlockZen
|
|
1096
|
-
)
|
|
1097
|
-
const links = screen.getAllByTestId(
|
|
1098
|
-
"title-block-mobile-actions-secondary-action"
|
|
996
|
+
</TitleBlockZen>,
|
|
1099
997
|
)
|
|
998
|
+
const links = screen.getAllByTestId('title-block-mobile-actions-secondary-action')
|
|
1100
999
|
expect(links.length).toBe(2)
|
|
1101
|
-
expect(links[0]).toHaveAttribute(
|
|
1102
|
-
expect(links[1]).toHaveAttribute(
|
|
1000
|
+
expect(links[0]).toHaveAttribute('href', '#test-secondary')
|
|
1001
|
+
expect(links[1]).toHaveAttribute('href', '#test-secondary-2')
|
|
1103
1002
|
})
|
|
1104
1003
|
})
|
|
1105
1004
|
|
|
1106
|
-
describe(
|
|
1107
|
-
it(
|
|
1005
|
+
describe('defaultAction', () => {
|
|
1006
|
+
it('will render a custom anchor components in the main action toolbar', () => {
|
|
1108
1007
|
render(
|
|
1109
1008
|
<TitleBlockZen
|
|
1110
1009
|
title="Test Title"
|
|
1111
1010
|
defaultAction={{
|
|
1112
|
-
label:
|
|
1113
|
-
href:
|
|
1011
|
+
label: 'Default action',
|
|
1012
|
+
href: '#test-default',
|
|
1114
1013
|
component: MockLinkComponent,
|
|
1115
1014
|
}}
|
|
1116
1015
|
>
|
|
1117
1016
|
Example
|
|
1118
|
-
</TitleBlockZen
|
|
1017
|
+
</TitleBlockZen>,
|
|
1119
1018
|
)
|
|
1120
|
-
const toolbar = screen.getByTestId(
|
|
1121
|
-
const defaultActionAnchor = within(toolbar).getByRole(
|
|
1122
|
-
name:
|
|
1019
|
+
const toolbar = screen.getByTestId('title-block-main-actions-toolbar')
|
|
1020
|
+
const defaultActionAnchor = within(toolbar).getByRole('link', {
|
|
1021
|
+
name: 'Default action',
|
|
1123
1022
|
})
|
|
1124
|
-
expect(defaultActionAnchor).toHaveAttribute(
|
|
1023
|
+
expect(defaultActionAnchor).toHaveAttribute('href', '#test-default')
|
|
1125
1024
|
})
|
|
1126
1025
|
|
|
1127
|
-
it(
|
|
1026
|
+
it('will render the component above primary action in the Drawer content if it is a link', () => {
|
|
1128
1027
|
render(
|
|
1129
1028
|
<TitleBlockZen
|
|
1130
1029
|
title="Test Title"
|
|
1131
1030
|
defaultAction={{
|
|
1132
|
-
label:
|
|
1133
|
-
href:
|
|
1031
|
+
label: 'Default action',
|
|
1032
|
+
href: '#test-default',
|
|
1134
1033
|
component: MockLinkComponent,
|
|
1135
1034
|
}}
|
|
1136
1035
|
>
|
|
1137
1036
|
Example
|
|
1138
|
-
</TitleBlockZen
|
|
1139
|
-
)
|
|
1140
|
-
const mobileActionLink = screen.getByTestId(
|
|
1141
|
-
"title-block-mobile-actions-default-link"
|
|
1037
|
+
</TitleBlockZen>,
|
|
1142
1038
|
)
|
|
1039
|
+
const mobileActionLink = screen.getByTestId('title-block-mobile-actions-default-link')
|
|
1143
1040
|
|
|
1144
1041
|
expect(mobileActionLink).toBeInTheDocument()
|
|
1145
1042
|
})
|
|
1146
1043
|
|
|
1147
|
-
it(
|
|
1044
|
+
it('will render the component in the top list of the Drawer content if it is a clickable button', () => {
|
|
1148
1045
|
const testClickFunc = vi.fn()
|
|
1149
1046
|
render(
|
|
1150
1047
|
<TitleBlockZen
|
|
1151
1048
|
title="Test Title"
|
|
1152
1049
|
defaultAction={{
|
|
1153
|
-
label:
|
|
1050
|
+
label: 'Default action',
|
|
1154
1051
|
onClick: testClickFunc,
|
|
1155
1052
|
component: MockButtonComponent,
|
|
1156
1053
|
}}
|
|
1157
1054
|
>
|
|
1158
1055
|
Example
|
|
1159
|
-
</TitleBlockZen
|
|
1056
|
+
</TitleBlockZen>,
|
|
1160
1057
|
)
|
|
1161
|
-
expect(
|
|
1162
|
-
|
|
1163
|
-
).toBeFalsy()
|
|
1164
|
-
expect(
|
|
1165
|
-
screen.getByTestId("title-block-mobile-actions-default-action")
|
|
1166
|
-
).toBeInTheDocument()
|
|
1058
|
+
expect(screen.queryByTestId('title-block-mobile-actions-default-link')).toBeFalsy()
|
|
1059
|
+
expect(screen.getByTestId('title-block-mobile-actions-default-action')).toBeInTheDocument()
|
|
1167
1060
|
})
|
|
1168
1061
|
})
|
|
1169
1062
|
})
|