@kaizen/components 0.0.0-canary-fix-select-futureselect-focus-jumping-20241003232256 → 0.0.0-canary-tsx-codemod-20241029235345
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/bin/codemod.sh +2 -2
- package/codemods/README.md +12 -4
- package/codemods/upgradeIconV1/getNewIconPropsFromOldIconName.ts +255 -0
- package/codemods/upgradeIconV1/index.ts +33 -0
- package/codemods/upgradeIconV1/transformCaMonogramIconToBrand.spec.ts +83 -0
- package/codemods/upgradeIconV1/transformCaMonogramIconToBrand.ts +53 -0
- package/codemods/upgradeIconV1/transformIcon.spec.ts +181 -0
- package/codemods/upgradeIconV1/transformIcon.ts +115 -0
- package/codemods/upgradeIconV1/transformSpinnerIconToLoadingSpinner.spec.ts +81 -0
- package/codemods/upgradeIconV1/transformSpinnerIconToLoadingSpinner.ts +41 -0
- package/codemods/upgradeIconV1/upgradeIconV1.spec.ts +306 -0
- package/codemods/upgradeIconV1/upgradeIconV1.ts +94 -0
- package/codemods/utils/createProp.spec.ts +83 -0
- package/codemods/utils/createProp.ts +51 -0
- package/codemods/utils/getKaioTagName.spec.ts +85 -0
- package/codemods/utils/getKaioTagName.ts +129 -0
- package/codemods/utils/index.ts +3 -1
- package/codemods/utils/transformComponentsInDir.ts +32 -16
- package/codemods/utils/transformSource.ts +10 -5
- package/codemods/utils/updateJsxElementWithNewProps.ts +4 -3
- package/codemods/utils/updateKaioImports.spec.ts +223 -0
- package/codemods/utils/updateKaioImports.ts +233 -0
- package/dist/cjs/Avatar/Avatar.cjs +16 -13
- package/dist/cjs/Calendar/CalendarRange/CalendarRange.cjs +9 -7
- package/dist/cjs/Calendar/CalendarSingle/CalendarSingle.cjs +9 -7
- package/dist/cjs/Calendar/LegacyCalendarRange/LegacyCalendarRange.cjs +9 -7
- package/dist/cjs/Checkbox/Checkbox/Checkbox.cjs +5 -11
- package/dist/cjs/ClearButton/ClearButton.cjs +5 -4
- package/dist/cjs/Collapsible/Collapsible/Collapsible.cjs +4 -7
- package/dist/cjs/DateInput/DateInputWithIconButton/DateInputWithIconButton.cjs +5 -4
- package/dist/cjs/DateRangePicker/DateRangePicker.cjs +5 -4
- package/dist/cjs/ErrorPage/ErrorPage.cjs +9 -7
- package/dist/cjs/FieldMessage/FieldMessage.cjs +5 -11
- package/dist/cjs/Filter/FilterBar/context/FilterBarContext.cjs +17 -2
- package/dist/cjs/Filter/FilterBar/context/reducer/filterBarStateReducer.cjs +4 -0
- package/dist/cjs/Filter/FilterBar/context/reducer/setupFilterBarState.cjs +2 -1
- package/dist/cjs/Filter/FilterBar/subcomponents/AddFiltersMenu/AddFiltersMenu.cjs +16 -6
- package/dist/cjs/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.cjs +12 -1
- package/dist/cjs/Filter/FilterBar/subcomponents/FilterBarMultiSelect/FilterBarMultiSelect.cjs +13 -2
- package/dist/cjs/Filter/FilterButton/FilterButton/FilterButton.cjs +4 -7
- package/dist/cjs/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.cjs +5 -5
- package/dist/cjs/Filter/FilterMultiSelect/FilterMultiSelect.cjs +4 -2
- package/dist/cjs/Filter/FilterMultiSelect/context/MenuTriggerProvider/MenuTriggerProvider.cjs +4 -2
- package/dist/cjs/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.cjs +4 -4
- package/dist/cjs/Filter/FilterSelect/FilterSelect.cjs +2 -1
- package/dist/cjs/GuidanceBlock/GuidanceBlock.cjs +5 -4
- package/dist/cjs/Illustration/utils/usePausePlay.cjs +5 -8
- package/dist/cjs/Input/InputSearch/InputSearch.cjs +4 -3
- package/dist/cjs/LikertScaleLegacy/LikertScaleLegacy.cjs +5 -6
- package/dist/cjs/Loading/LoadingSpinner/LoadingSpinner.cjs +6 -42
- package/dist/cjs/Loading/LoadingSpinner/LoadingSpinner.module.css.cjs +10 -0
- package/dist/cjs/Loading/LoadingSpinner/subcomponents/SpinnerIcon.cjs +80 -0
- package/dist/cjs/Modal/ConfirmationModal/ConfirmationModal.cjs +31 -26
- package/dist/cjs/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.cjs +4 -5
- package/dist/cjs/MultiSelect/subcomponents/Checkbox/Checkbox.cjs +7 -17
- package/dist/cjs/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.cjs +4 -7
- package/dist/cjs/Notification/subcomponents/CancelButton/CancelButton.cjs +4 -3
- package/dist/cjs/Notification/subcomponents/NotificationIcon/NotificationIcon.cjs +33 -38
- package/dist/cjs/Notification/subcomponents/NotificationIcon/NotificationIcon.module.css.cjs +6 -0
- package/dist/cjs/Pagination/subcomponents/DirectionalLink/DirectionalLink.cjs +11 -19
- package/dist/cjs/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.cjs +4 -5
- package/dist/cjs/Popover/Popover.cjs +5 -4
- package/dist/cjs/Popover/utils/classMappers.cjs +21 -16
- package/dist/cjs/RichTextEditor/RichTextEditor/utils/controlmap.cjs +29 -25
- package/dist/cjs/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/LinkPopover.cjs +10 -12
- package/dist/cjs/Select/Select.cjs +8 -10
- package/dist/cjs/SplitButton/subcomponents/DropdownButton/DropdownButton.cjs +4 -4
- package/dist/cjs/Table/Table.cjs +11 -10
- package/dist/cjs/Tag/Tag.cjs +21 -17
- package/dist/cjs/TextArea/TextArea.cjs +20 -52
- package/dist/cjs/TextArea/TextArea.module.css.cjs +14 -0
- package/dist/cjs/TextField/TextField.cjs +7 -6
- package/dist/cjs/TextField/TextField.module.scss.cjs +4 -6
- package/dist/cjs/Tile/subcomponents/GenericTile/GenericTile.cjs +8 -7
- package/dist/cjs/TitleBlockZen/TitleBlockZen.cjs +9 -12
- package/dist/cjs/TitleBlockZen/subcomponents/MainActions.cjs +7 -7
- package/dist/cjs/TitleBlockZen/subcomponents/MobileActions.cjs +10 -15
- package/dist/cjs/TitleBlockZen/subcomponents/SecondaryActions.cjs +7 -7
- package/dist/cjs/ToggleSwitch/ToggleSwitch/ToggleSwitch.cjs +5 -5
- package/dist/cjs/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.cjs +13 -18
- package/dist/cjs/__future__/Icon/Icon.cjs +47 -0
- package/dist/cjs/__future__/Icon/Icon.module.css.cjs +10 -0
- package/dist/cjs/__future__/Icon/constants.cjs +8 -0
- package/dist/cjs/__future__/Select/subcomponents/ListBox/ListBox.cjs +7 -10
- package/dist/cjs/__future__/Select/subcomponents/Option/Option.cjs +4 -5
- package/dist/cjs/__future__/Select/subcomponents/SelectToggle/SelectToggle.cjs +5 -9
- package/dist/cjs/__future__/Tabs/Tabs.cjs +23 -0
- package/dist/cjs/__future__/Tabs/subcomponents/Tab/Tab.cjs +39 -0
- package/dist/cjs/__future__/Tabs/subcomponents/Tab/Tab.module.css.cjs +7 -0
- package/dist/cjs/__future__/Tabs/subcomponents/TabList/TabList.cjs +31 -0
- package/dist/cjs/__future__/Tabs/subcomponents/TabList/TabList.module.css.cjs +7 -0
- package/dist/cjs/__future__/Tabs/subcomponents/TabPanel/TabPanel.cjs +24 -0
- package/dist/cjs/__future__/Tag/RemovableTag/subcomponents/RemoveButton.cjs +4 -3
- package/dist/cjs/future.cjs +10 -0
- package/dist/esm/Avatar/Avatar.mjs +16 -13
- package/dist/esm/Calendar/CalendarRange/CalendarRange.mjs +9 -7
- package/dist/esm/Calendar/CalendarSingle/CalendarSingle.mjs +9 -7
- package/dist/esm/Calendar/LegacyCalendarRange/LegacyCalendarRange.mjs +9 -7
- package/dist/esm/Checkbox/Checkbox/Checkbox.mjs +5 -11
- package/dist/esm/ClearButton/ClearButton.mjs +5 -4
- package/dist/esm/Collapsible/Collapsible/Collapsible.mjs +5 -8
- package/dist/esm/DateInput/DateInputWithIconButton/DateInputWithIconButton.mjs +5 -4
- package/dist/esm/DateRangePicker/DateRangePicker.mjs +5 -4
- package/dist/esm/ErrorPage/ErrorPage.mjs +10 -8
- package/dist/esm/FieldMessage/FieldMessage.mjs +6 -12
- package/dist/esm/Filter/FilterBar/context/FilterBarContext.mjs +17 -2
- package/dist/esm/Filter/FilterBar/context/reducer/filterBarStateReducer.mjs +4 -0
- package/dist/esm/Filter/FilterBar/context/reducer/setupFilterBarState.mjs +2 -1
- package/dist/esm/Filter/FilterBar/subcomponents/AddFiltersMenu/AddFiltersMenu.mjs +17 -7
- package/dist/esm/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.mjs +13 -2
- package/dist/esm/Filter/FilterBar/subcomponents/FilterBarMultiSelect/FilterBarMultiSelect.mjs +14 -3
- package/dist/esm/Filter/FilterButton/FilterButton/FilterButton.mjs +5 -8
- package/dist/esm/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.mjs +5 -5
- package/dist/esm/Filter/FilterMultiSelect/FilterMultiSelect.mjs +4 -2
- package/dist/esm/Filter/FilterMultiSelect/context/MenuTriggerProvider/MenuTriggerProvider.mjs +4 -2
- package/dist/esm/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.mjs +4 -4
- package/dist/esm/Filter/FilterSelect/FilterSelect.mjs +2 -1
- package/dist/esm/GuidanceBlock/GuidanceBlock.mjs +5 -4
- package/dist/esm/Illustration/utils/usePausePlay.mjs +5 -8
- package/dist/esm/Input/InputSearch/InputSearch.mjs +4 -3
- package/dist/esm/LikertScaleLegacy/LikertScaleLegacy.mjs +5 -6
- package/dist/esm/Loading/LoadingSpinner/LoadingSpinner.mjs +6 -42
- package/dist/esm/Loading/LoadingSpinner/LoadingSpinner.module.css.mjs +8 -0
- package/dist/esm/Loading/LoadingSpinner/subcomponents/SpinnerIcon.mjs +72 -0
- package/dist/esm/Modal/ConfirmationModal/ConfirmationModal.mjs +31 -26
- package/dist/esm/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.mjs +4 -5
- package/dist/esm/MultiSelect/subcomponents/Checkbox/Checkbox.mjs +7 -17
- package/dist/esm/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.mjs +5 -8
- package/dist/esm/Notification/subcomponents/CancelButton/CancelButton.mjs +4 -3
- package/dist/esm/Notification/subcomponents/NotificationIcon/NotificationIcon.mjs +33 -38
- package/dist/esm/Notification/subcomponents/NotificationIcon/NotificationIcon.module.css.mjs +4 -0
- package/dist/esm/Pagination/subcomponents/DirectionalLink/DirectionalLink.mjs +11 -19
- package/dist/esm/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.mjs +4 -5
- package/dist/esm/Popover/Popover.mjs +5 -4
- package/dist/esm/Popover/utils/classMappers.mjs +21 -16
- package/dist/esm/RichTextEditor/RichTextEditor/utils/controlmap.mjs +33 -29
- package/dist/esm/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/LinkPopover.mjs +10 -12
- package/dist/esm/Select/Select.mjs +9 -11
- package/dist/esm/SplitButton/subcomponents/DropdownButton/DropdownButton.mjs +4 -4
- package/dist/esm/Table/Table.mjs +11 -10
- package/dist/esm/Tag/Tag.mjs +21 -17
- package/dist/esm/TextArea/TextArea.mjs +21 -53
- package/dist/esm/TextArea/TextArea.module.css.mjs +12 -0
- package/dist/esm/TextField/TextField.mjs +7 -6
- package/dist/esm/TextField/TextField.module.scss.mjs +4 -6
- package/dist/esm/Tile/subcomponents/GenericTile/GenericTile.mjs +8 -7
- package/dist/esm/TitleBlockZen/TitleBlockZen.mjs +9 -12
- package/dist/esm/TitleBlockZen/subcomponents/MainActions.mjs +7 -7
- package/dist/esm/TitleBlockZen/subcomponents/MobileActions.mjs +13 -18
- package/dist/esm/TitleBlockZen/subcomponents/SecondaryActions.mjs +7 -7
- package/dist/esm/ToggleSwitch/ToggleSwitch/ToggleSwitch.mjs +5 -5
- package/dist/esm/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.mjs +16 -21
- package/dist/esm/__future__/Icon/Icon.mjs +38 -0
- package/dist/esm/__future__/Icon/Icon.module.css.mjs +8 -0
- package/dist/esm/__future__/Icon/constants.mjs +6 -0
- package/dist/esm/__future__/Select/subcomponents/ListBox/ListBox.mjs +7 -11
- package/dist/esm/__future__/Select/subcomponents/Option/Option.mjs +4 -5
- package/dist/esm/__future__/Select/subcomponents/SelectToggle/SelectToggle.mjs +6 -10
- package/dist/esm/__future__/Tabs/Tabs.mjs +15 -0
- package/dist/esm/__future__/Tabs/subcomponents/Tab/Tab.mjs +30 -0
- package/dist/esm/__future__/Tabs/subcomponents/Tab/Tab.module.css.mjs +5 -0
- package/dist/esm/__future__/Tabs/subcomponents/TabList/TabList.mjs +22 -0
- package/dist/esm/__future__/Tabs/subcomponents/TabList/TabList.module.css.mjs +5 -0
- package/dist/esm/__future__/Tabs/subcomponents/TabPanel/TabPanel.mjs +16 -0
- package/dist/esm/__future__/Tag/RemovableTag/subcomponents/RemoveButton.mjs +4 -3
- package/dist/esm/future.mjs +5 -0
- package/dist/styles.css +828 -1388
- package/dist/types/Filter/FilterBar/context/FilterBarContext.d.ts +2 -0
- package/dist/types/Filter/FilterBar/context/reducer/filterBarStateReducer.d.ts +3 -0
- package/dist/types/Filter/FilterBar/context/types.d.ts +1 -0
- package/dist/types/Filter/FilterMultiSelect/FilterMultiSelect.d.ts +2 -1
- package/dist/types/Filter/FilterMultiSelect/context/MenuTriggerProvider/MenuTriggerProvider.d.ts +2 -1
- package/dist/types/Loading/LoadingSpinner/LoadingSpinner.d.ts +2 -2
- package/dist/types/Loading/LoadingSpinner/subcomponents/SpinnerIcon.d.ts +5 -0
- package/dist/types/Loading/LoadingSpinner/subcomponents/index.d.ts +1 -0
- package/dist/types/Tabs/subcomponents/index.d.ts +0 -1
- package/dist/types/TextArea/TextArea.d.ts +4 -0
- package/dist/types/__future__/Icon/Icon.d.ts +21 -0
- package/dist/types/__future__/Icon/constants.d.ts +5 -0
- package/dist/types/__future__/Icon/index.d.ts +1 -0
- package/dist/types/__future__/Icon/types.d.ts +4 -0
- package/dist/types/__future__/Tabs/Tabs.d.ts +11 -0
- package/dist/types/__future__/Tabs/index.d.ts +2 -0
- package/dist/types/__future__/Tabs/subcomponents/Tab/Tab.d.ts +12 -0
- package/dist/types/__future__/Tabs/subcomponents/Tab/index.d.ts +1 -0
- package/dist/types/__future__/Tabs/subcomponents/TabList/TabList.d.ts +17 -0
- package/dist/types/__future__/Tabs/subcomponents/TabList/index.d.ts +1 -0
- package/dist/types/__future__/Tabs/subcomponents/TabPanel/TabPanel.d.ts +6 -0
- package/dist/types/__future__/Tabs/subcomponents/TabPanel/index.d.ts +1 -0
- package/dist/types/__future__/Tabs/subcomponents/index.d.ts +3 -0
- package/dist/types/__future__/index.d.ts +2 -0
- package/package.json +36 -37
- package/src/Avatar/Avatar.module.scss +10 -12
- package/src/Avatar/Avatar.tsx +14 -5
- package/src/BrandMoment/_docs/BrandMoment.stories.tsx +6 -10
- package/src/BrandMoment/_docs/ExampleHeaders.tsx +2 -2
- package/src/Calendar/CalendarRange/CalendarRange.tsx +7 -3
- package/src/Calendar/CalendarSingle/CalendarSingle.tsx +7 -3
- package/src/Calendar/LegacyCalendarRange/LegacyCalendarRange.tsx +7 -3
- package/src/Calendar/baseCalendarClassNames.module.scss +0 -4
- package/src/Checkbox/Checkbox/Checkbox.module.scss +2 -10
- package/src/Checkbox/Checkbox/Checkbox.tsx +6 -8
- package/src/ClearButton/ClearButton.tsx +2 -2
- package/src/Collapsible/Collapsible/Collapsible.tsx +5 -6
- package/src/Collapsible/Collapsible/_docs/Collapsible.stories.tsx +2 -2
- package/src/DateInput/DateInputWithIconButton/DateInputWithIconButton.module.scss +2 -7
- package/src/DateInput/DateInputWithIconButton/DateInputWithIconButton.tsx +2 -2
- package/src/DateRangePicker/DateRangePicker.tsx +2 -2
- package/src/EmptyState/_docs/EmptyState.stickersheet.stories.tsx +8 -2
- package/src/EmptyState/_docs/EmptyState.stories.tsx +4 -2
- package/src/ErrorPage/ErrorPage.tsx +5 -3
- package/src/FieldMessage/FieldMessage.tsx +6 -14
- package/src/Filter/FilterBar/FilterBar.spec.tsx +99 -12
- package/src/Filter/FilterBar/context/FilterBarContext.tsx +11 -2
- package/src/Filter/FilterBar/context/reducer/filterBarStateReducer.ts +7 -0
- package/src/Filter/FilterBar/context/reducer/setupFilterBarState.ts +1 -0
- package/src/Filter/FilterBar/context/types.ts +1 -0
- package/src/Filter/FilterBar/subcomponents/AddFiltersMenu/AddFiltersMenu.tsx +14 -4
- package/src/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.tsx +10 -2
- package/src/Filter/FilterBar/subcomponents/FilterBarMultiSelect/FilterBarMultiSelect.tsx +18 -3
- package/src/Filter/FilterButton/FilterButton/FilterButton.module.scss +1 -1
- package/src/Filter/FilterButton/FilterButton/FilterButton.tsx +5 -6
- package/src/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.tsx +2 -2
- package/src/Filter/FilterDateRangePicker/FilterDateRangePicker.spec.tsx +0 -1
- package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeInputField/DateRangeInputField.spec.tsx +2 -1
- package/src/Filter/FilterMultiSelect/FilterMultiSelect.tsx +3 -1
- package/src/Filter/FilterMultiSelect/context/MenuTriggerProvider/MenuTriggerProvider.tsx +4 -1
- package/src/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.tsx +2 -2
- package/src/Filter/FilterMultiSelect/subcomponents/SelectionControlButton/SelectionControlButton.module.scss +9 -11
- package/src/Filter/FilterSelect/FilterSelect.spec.tsx +52 -21
- package/src/Filter/FilterSelect/FilterSelect.tsx +2 -1
- package/src/Filter/FilterSelect/_docs/FilterSelect.stories.tsx +0 -1
- package/src/GuidanceBlock/GuidanceBlock.module.scss +4 -5
- package/src/GuidanceBlock/GuidanceBlock.tsx +6 -2
- package/src/Icon/_docs/{Icon.stories.tsx → Icon.docs.stories.tsx} +1 -1
- package/src/Icon/_docs/Icon.mdx +1 -2
- package/src/Icon/_docs/Icon.stickersheet.stories.tsx +1 -1
- package/src/Icon/bin/update-icons.sh +1 -1
- package/src/Illustration/utils/usePausePlay.tsx +7 -5
- package/src/Input/Input/_docs/Input.stickersheet.stories.tsx +7 -5
- package/src/Input/Input/_docs/Input.stories.tsx +5 -3
- package/src/Input/InputRange/InputRange.module.scss +4 -4
- package/src/Input/InputSearch/InputSearch.module.scss +21 -21
- package/src/Input/InputSearch/InputSearch.tsx +2 -2
- package/src/Label/Label.module.scss +4 -0
- package/src/LikertScaleLegacy/LikertScaleLegacy.module.scss +7 -8
- package/src/LikertScaleLegacy/LikertScaleLegacy.tsx +2 -2
- package/src/Loading/LoadingGraphic/_docs/LoadingGraphic.stories.tsx +2 -2
- package/src/Loading/LoadingSpinner/LoadingSpinner.module.css +32 -0
- package/src/Loading/LoadingSpinner/LoadingSpinner.tsx +10 -54
- package/src/Loading/LoadingSpinner/_docs/LoadingSpinner.mdx +7 -2
- package/src/Loading/LoadingSpinner/_docs/LoadingSpinner.stickersheet.stories.tsx +2 -1
- package/src/Loading/LoadingSpinner/_docs/LoadingSpinner.stories.tsx +19 -0
- package/src/Loading/LoadingSpinner/subcomponents/SpinnerIcon.tsx +87 -0
- package/src/Loading/LoadingSpinner/subcomponents/index.ts +1 -0
- package/src/Modal/ConfirmationModal/ConfirmationModal.module.scss +2 -0
- package/src/Modal/ConfirmationModal/ConfirmationModal.tsx +32 -35
- package/src/Modal/ContextModal/ContextModal.module.scss +4 -4
- package/src/Modal/GenericModal/GenericModal.module.scss +8 -8
- package/src/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.module.scss +2 -2
- package/src/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.tsx +2 -2
- package/src/Modal/InputEditModal/InputEditModal.module.scss +4 -4
- package/src/MultiSelect/MultiSelect.spec.tsx +7 -3
- package/src/MultiSelect/subcomponents/Checkbox/Checkbox.module.scss +0 -6
- package/src/MultiSelect/subcomponents/Checkbox/Checkbox.tsx +10 -9
- package/src/MultiSelect/subcomponents/MultiSelectOptions/MultiSelectOptions.spec.tsx +11 -7
- package/src/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.tsx +5 -7
- package/src/Notification/subcomponents/CancelButton/CancelButton.tsx +2 -2
- package/src/Notification/subcomponents/GenericNotification/_mixins.scss +9 -8
- package/src/Notification/subcomponents/NotificationIcon/NotificationIcon.module.css +3 -0
- package/src/Notification/subcomponents/NotificationIcon/NotificationIcon.tsx +22 -16
- package/src/Pagination/subcomponents/DirectionalLink/DirectionalLink.module.scss +0 -4
- package/src/Pagination/subcomponents/DirectionalLink/DirectionalLink.tsx +13 -12
- package/src/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.module.scss +0 -1
- package/src/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.tsx +2 -2
- package/src/Popover/Popover.module.scss +3 -3
- package/src/Popover/Popover.tsx +2 -2
- package/src/Popover/utils/classMappers.tsx +6 -11
- package/src/RichTextEditor/RichTextEditor/RichTextEditor.module.scss +2 -2
- package/src/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/ToggleIconButton.module.scss +1 -1
- package/src/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/_docs/ToggleIconButton.stickersheet.stories.tsx +7 -7
- package/src/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/_docs/ToggleIconButton.stories.tsx +2 -2
- package/src/RichTextEditor/RichTextEditor/subcomponents/Toolbar/Toolbar.spec.tsx +7 -4
- package/src/RichTextEditor/RichTextEditor/subcomponents/Toolbar/_docs/Toolbar.stories.tsx +18 -12
- package/src/RichTextEditor/RichTextEditor/utils/controlmap.tsx +25 -18
- package/src/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/LinkPopover.tsx +4 -8
- package/src/Select/Select.module.scss +9 -9
- package/src/Select/Select.tsx +10 -7
- package/src/SplitButton/subcomponents/DropdownButton/DropdownButton.spec.tsx +4 -5
- package/src/SplitButton/subcomponents/DropdownButton/DropdownButton.tsx +2 -2
- package/src/Table/Table.module.scss +11 -7
- package/src/Table/Table.tsx +4 -8
- package/src/Table/_docs/Table.stickersheet.stories.tsx +4 -4
- package/src/Table/_docs/Table.stories.tsx +3 -3
- package/src/Tabs/subcomponents/index.ts +0 -1
- package/src/Tag/Tag.module.scss +2 -0
- package/src/Tag/Tag.tsx +7 -13
- package/src/Text/Text.module.scss +2 -0
- package/src/TextArea/TextArea.module.css +142 -0
- package/src/TextArea/TextArea.tsx +25 -53
- package/src/TextField/TextField.module.scss +10 -36
- package/src/TextField/TextField.spec.tsx +9 -4
- package/src/TextField/TextField.tsx +4 -6
- package/src/TextField/_docs/TextField.stickersheet.stories.tsx +9 -1
- package/src/TextField/_docs/TextField.stories.tsx +4 -3
- package/src/Tile/subcomponents/GenericTile/GenericTile.module.scss +7 -8
- package/src/Tile/subcomponents/GenericTile/GenericTile.tsx +3 -3
- package/src/TitleBlockZen/TitleBlockZen.module.scss +15 -21
- package/src/TitleBlockZen/TitleBlockZen.spec.tsx +1 -1
- package/src/TitleBlockZen/TitleBlockZen.tsx +6 -9
- package/src/TitleBlockZen/_docs/TitleBlockZen.stories.tsx +5 -5
- package/src/TitleBlockZen/subcomponents/MainActions.tsx +5 -3
- package/src/TitleBlockZen/subcomponents/MobileActions.module.scss +2 -2
- package/src/TitleBlockZen/subcomponents/MobileActions.tsx +13 -16
- package/src/TitleBlockZen/subcomponents/SecondaryActions.tsx +3 -3
- package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.scss +0 -3
- package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.tsx +2 -2
- package/src/Workflow/_docs/Workflow.stories.tsx +4 -5
- package/src/Workflow/_docs/WorkflowHeader.stories.tsx +4 -5
- package/src/Workflow/_docs/controls/controls.tsx +4 -4
- package/src/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.tsx +6 -31
- package/src/__actions__/Button/v1/Button/Button.module.scss +0 -1
- package/src/__actions__/Button/v1/Button/_docs/Button.mdx +1 -1
- package/src/__actions__/Button/v1/Button/_docs/Button.stickersheet.stories.tsx +6 -6
- package/src/__actions__/Button/v1/Button/_docs/Button.stories.tsx +7 -6
- package/src/__actions__/Button/v1/IconButton/_docs/IconButton.stickersheet.stories.tsx +7 -7
- package/src/__actions__/Button/v1/IconButton/_docs/IconButton.stories.tsx +5 -5
- package/src/__actions__/Button/v2/Button/_docs/Button.mdx +1 -1
- package/src/__actions__/Button/v2/Button/_docs/Button.stories.tsx +7 -6
- package/src/__actions__/Button/v2/IconButton/_docs/IconButton.stories.tsx +5 -5
- package/src/__actions__/Button/v3/_docs/ApiSpecification.mdx +1 -1
- package/src/__actions__/Button/v3/_docs/Button.docs.stories.tsx +1 -1
- package/src/__actions__/Button/v3/_docs/Button.mdx +1 -1
- package/src/__actions__/Button/v3/_docs/Button.spec.stories.tsx +1 -1
- package/src/__actions__/Button/v3/_docs/Button.stickersheet.stories.tsx +3 -3
- package/src/__actions__/Button/v3/_docs/Button.stories.tsx +1 -1
- package/src/__actions__/Menu/v1/_docs/Menu.stickersheet.stories.tsx +3 -3
- package/src/__actions__/Menu/v1/_docs/Menu.stories.tsx +3 -3
- package/src/__actions__/Menu/v1/_docs/MenuContentExample.tsx +6 -6
- package/src/__actions__/Menu/v1/_docs/examples.tsx +5 -5
- package/src/__actions__/Menu/v2/_docs/Menu.stories.tsx +3 -3
- package/src/__actions__/Menu/v3/_docs/ApiSpecification.mdx +1 -3
- package/src/__actions__/Menu/v3/_docs/Menu.docs.stories.tsx +46 -45
- package/src/__actions__/Menu/v3/_docs/Menu.mdx +1 -1
- package/src/__actions__/Menu/v3/_docs/Menu.spec.stories.tsx +21 -23
- package/src/__actions__/Menu/v3/_docs/Menu.stories.tsx +12 -15
- package/src/__future__/Icon/Icon.module.css +35 -0
- package/src/__future__/Icon/Icon.spec.tsx +36 -0
- package/src/__future__/Icon/Icon.tsx +85 -0
- package/src/__future__/Icon/_docs/Icon--api-specification.mdx +98 -0
- package/src/__future__/Icon/_docs/Icon--usage-guidelines.mdx +145 -0
- package/src/__future__/Icon/_docs/Icon.docs.module.css +17 -0
- package/src/__future__/Icon/_docs/Icon.docs.stories.tsx +524 -0
- package/src/__future__/Icon/_docs/Icon.stickersheet.stories.tsx +126 -0
- package/src/__future__/Icon/_docs/assets/interface-dont.png +0 -0
- package/src/__future__/Icon/_docs/assets/tooltip-dont.png +0 -0
- package/src/__future__/Icon/constants.ts +149 -0
- package/src/__future__/Icon/index.ts +1 -0
- package/src/__future__/Icon/material-symbols-metadata.json +3370 -0
- package/src/__future__/Icon/types.ts +11 -0
- package/src/__future__/Select/_docs/Select.stories.tsx +1 -2
- package/src/__future__/Select/subcomponents/ListBox/ListBox.tsx +3 -4
- package/src/__future__/Select/subcomponents/Option/Option.tsx +2 -2
- package/src/__future__/Select/subcomponents/SelectToggle/SelectToggle.module.scss +1 -1
- package/src/__future__/Select/subcomponents/SelectToggle/SelectToggle.tsx +6 -9
- package/src/__future__/Tabs/Tabs.tsx +18 -0
- package/src/__future__/Tabs/_docs/Tabs--api-specification.mdx +43 -0
- package/src/__future__/Tabs/_docs/Tabs--migration-guide.mdx +93 -0
- package/src/__future__/Tabs/_docs/Tabs.stories.tsx +74 -0
- package/src/__future__/Tabs/index.ts +2 -0
- package/src/__future__/Tabs/subcomponents/Tab/Tab.module.css +94 -0
- package/src/__future__/Tabs/subcomponents/Tab/Tab.tsx +58 -0
- package/src/__future__/Tabs/subcomponents/Tab/index.ts +1 -0
- package/src/__future__/Tabs/subcomponents/TabList/TabList.module.css +8 -0
- package/src/__future__/Tabs/subcomponents/TabList/TabList.tsx +45 -0
- package/src/__future__/Tabs/subcomponents/TabList/index.ts +1 -0
- package/src/__future__/Tabs/subcomponents/TabPanel/TabPanel.module.css +12 -0
- package/src/__future__/Tabs/subcomponents/TabPanel/TabPanel.tsx +20 -0
- package/src/__future__/Tabs/subcomponents/TabPanel/index.ts +1 -0
- package/src/__future__/Tabs/subcomponents/index.ts +3 -0
- package/src/__future__/Tag/RemovableTag/_docs/RemovableTag.stories.tsx +0 -77
- package/src/__future__/Tag/RemovableTag/subcomponents/RemoveButton.module.scss +1 -58
- package/src/__future__/Tag/RemovableTag/subcomponents/RemoveButton.tsx +2 -12
- package/src/__future__/Tag/Tag/Tag.module.scss +1 -1
- package/src/__future__/Tag/Tag/_docs/Tag-migration-guide.stories.tsx +6 -17
- package/src/__future__/Tag/Tag/_docs/Tag.stickersheet.stories.tsx +5 -2
- package/src/__future__/Tag/Tag/_docs/Tag.stories.tsx +13 -6
- package/src/__future__/index.ts +2 -0
- package/src/__overlays__/Tooltip/v1/_docs/Tooltip.stickersheet.stories.tsx +10 -10
- package/src/__overlays__/Tooltip/v1/_docs/Tooltip.stories.tsx +7 -4
- package/src/__overlays__/Tooltip/v1/utils/isSemanticElement.spec.tsx +4 -11
- package/src/__overlays__/Tooltip/v3/_docs/Tooltip.docs.stories.tsx +10 -10
- package/src/__overlays__/Tooltip/v3/_docs/Tooltip.spec.stories.tsx +3 -3
- package/codemods/utils/getTagName.spec.ts +0 -24
- package/codemods/utils/getTagName.ts +0 -32
- package/dist/cjs/Loading/LoadingSpinner/LoadingSpinner.module.scss.cjs +0 -7
- package/dist/cjs/TextArea/TextArea.module.scss.cjs +0 -13
- package/dist/cjs/__future__/Tag/RemovableTag/subcomponents/RemoveTagIcon.cjs +0 -23
- package/dist/esm/Loading/LoadingSpinner/LoadingSpinner.module.scss.mjs +0 -5
- package/dist/esm/TextArea/TextArea.module.scss.mjs +0 -11
- package/dist/esm/__future__/Tag/RemovableTag/subcomponents/RemoveTagIcon.mjs +0 -15
- package/dist/types/__future__/Tag/RemovableTag/subcomponents/RemoveTagIcon.d.ts +0 -2
- package/src/Loading/LoadingSpinner/LoadingSpinner.module.scss +0 -16
- package/src/TextArea/TextArea.module.scss +0 -137
- package/src/__future__/Tag/RemovableTag/subcomponents/RemoveTagIcon.tsx +0 -21
- /package/dist/cjs/__utilities__/{isClientReady → useIsClientReady}/useIsClientReady.cjs +0 -0
- /package/dist/esm/__utilities__/{isClientReady → useIsClientReady}/useIsClientReady.mjs +0 -0
- /package/dist/types/__utilities__/{isClientReady → useIsClientReady}/index.d.ts +0 -0
- /package/dist/types/__utilities__/{isClientReady → useIsClientReady}/useIsClientReady.d.ts +0 -0
- /package/src/__utilities__/{isClientReady → useIsClientReady}/index.ts +0 -0
- /package/src/__utilities__/{isClientReady → useIsClientReady}/useIsClientReady.tsx +0 -0
|
@@ -2,9 +2,7 @@ import { __rest, __assign } from 'tslib';
|
|
|
2
2
|
import React, { useRef, useEffect } from 'react';
|
|
3
3
|
import { enAU } from 'date-fns/locale';
|
|
4
4
|
import { DayPicker } from 'react-day-picker';
|
|
5
|
-
import '../../Icon/
|
|
6
|
-
import { ArrowBackwardIcon } from '../../Icon/ArrowBackwardIcon.mjs';
|
|
7
|
-
import { ArrowForwardIcon } from '../../Icon/ArrowForwardIcon.mjs';
|
|
5
|
+
import { Icon } from '../../__future__/Icon/Icon.mjs';
|
|
8
6
|
import { baseCalendarClassNames } from '../baseCalendarClassNames.mjs';
|
|
9
7
|
import 'date-fns';
|
|
10
8
|
import { isInvalidDate } from '../utils/isInvalidDate.mjs';
|
|
@@ -45,13 +43,17 @@ const CalendarSingle = /*#__PURE__*/function () {
|
|
|
45
43
|
classNames: classNames,
|
|
46
44
|
components: {
|
|
47
45
|
IconRight: function () {
|
|
48
|
-
return /*#__PURE__*/React.createElement(
|
|
49
|
-
|
|
46
|
+
return /*#__PURE__*/React.createElement(Icon, {
|
|
47
|
+
name: "arrow_forward",
|
|
48
|
+
isPresentational: true,
|
|
49
|
+
shouldMirrorInRTL: true
|
|
50
50
|
});
|
|
51
51
|
},
|
|
52
52
|
IconLeft: function () {
|
|
53
|
-
return /*#__PURE__*/React.createElement(
|
|
54
|
-
|
|
53
|
+
return /*#__PURE__*/React.createElement(Icon, {
|
|
54
|
+
name: "arrow_back",
|
|
55
|
+
isPresentational: true,
|
|
56
|
+
shouldMirrorInRTL: true
|
|
55
57
|
});
|
|
56
58
|
}
|
|
57
59
|
},
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { __assign } from 'tslib';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { DayPicker } from 'react-day-picker';
|
|
4
|
-
import '../../Icon/
|
|
5
|
-
import { ArrowBackwardIcon } from '../../Icon/ArrowBackwardIcon.mjs';
|
|
6
|
-
import { ArrowForwardIcon } from '../../Icon/ArrowForwardIcon.mjs';
|
|
4
|
+
import { Icon } from '../../__future__/Icon/Icon.mjs';
|
|
7
5
|
import { baseCalendarClassNames } from '../baseCalendarClassNames.mjs';
|
|
8
6
|
import { DayOfWeek } from '../enums.mjs';
|
|
9
7
|
import 'date-fns';
|
|
@@ -43,13 +41,17 @@ const LegacyCalendarRange = /*#__PURE__*/function () {
|
|
|
43
41
|
classNames: classNames,
|
|
44
42
|
components: {
|
|
45
43
|
IconRight: function () {
|
|
46
|
-
return /*#__PURE__*/React.createElement(
|
|
47
|
-
|
|
44
|
+
return /*#__PURE__*/React.createElement(Icon, {
|
|
45
|
+
name: "arrow_forward",
|
|
46
|
+
isPresentational: true,
|
|
47
|
+
shouldMirrorInRTL: true
|
|
48
48
|
});
|
|
49
49
|
},
|
|
50
50
|
IconLeft: function () {
|
|
51
|
-
return /*#__PURE__*/React.createElement(
|
|
52
|
-
|
|
51
|
+
return /*#__PURE__*/React.createElement(Icon, {
|
|
52
|
+
name: "arrow_back",
|
|
53
|
+
isPresentational: true,
|
|
54
|
+
shouldMirrorInRTL: true
|
|
53
55
|
});
|
|
54
56
|
}
|
|
55
57
|
},
|
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
|
-
import '../../Icon/
|
|
5
|
-
import { CheckIcon } from '../../Icon/CheckIcon.mjs';
|
|
6
|
-
import { MinusIcon } from '../../Icon/MinusIcon.mjs';
|
|
4
|
+
import { Icon } from '../../__future__/Icon/Icon.mjs';
|
|
7
5
|
import styles from './Checkbox.module.scss.mjs';
|
|
8
6
|
var renderCheckOrMixedIcon = function (status, reversed) {
|
|
9
7
|
if (status === "off") return;
|
|
10
|
-
return /*#__PURE__*/React.createElement(
|
|
8
|
+
return /*#__PURE__*/React.createElement(Icon, {
|
|
9
|
+
name: status === "on" ? "check" : "remove",
|
|
10
|
+
isPresentational: true,
|
|
11
11
|
className: classnames(styles.icon, reversed && styles.reversed)
|
|
12
|
-
}
|
|
13
|
-
role: "presentation",
|
|
14
|
-
inheritSize: true
|
|
15
|
-
})) : ( /*#__PURE__*/React.createElement(MinusIcon, {
|
|
16
|
-
role: "presentation",
|
|
17
|
-
inheritSize: true
|
|
18
|
-
})));
|
|
12
|
+
});
|
|
19
13
|
};
|
|
20
14
|
var getCheckedFromStatus = function (checkedStatus) {
|
|
21
15
|
return checkedStatus === "on";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
|
-
import '../Icon/
|
|
5
|
-
import { ClearIcon } from '../Icon/ClearIcon.mjs';
|
|
4
|
+
import { Icon } from '../__future__/Icon/Icon.mjs';
|
|
6
5
|
import styles from './ClearButton.module.scss.mjs';
|
|
7
6
|
const ClearButton = /*#__PURE__*/function () {
|
|
8
7
|
const ClearButton = function (_a) {
|
|
@@ -14,8 +13,10 @@ const ClearButton = /*#__PURE__*/function () {
|
|
|
14
13
|
type: "button",
|
|
15
14
|
"aria-label": "clear",
|
|
16
15
|
className: classnames(styles.clearButton, isReversed ? styles.reversed : styles.default, classNameOverride)
|
|
17
|
-
}, restProps), /*#__PURE__*/React.createElement(
|
|
18
|
-
|
|
16
|
+
}, restProps), /*#__PURE__*/React.createElement(Icon, {
|
|
17
|
+
name: "cancel",
|
|
18
|
+
isPresentational: true,
|
|
19
|
+
isFilled: true
|
|
19
20
|
}));
|
|
20
21
|
};
|
|
21
22
|
ClearButton.displayName = "ClearButton";
|
|
@@ -3,9 +3,7 @@ import React, { useState, useId } from 'react';
|
|
|
3
3
|
import classnames from 'classnames';
|
|
4
4
|
import AnimateHeight from 'react-animate-height';
|
|
5
5
|
import { Heading } from '../../Heading/Heading.mjs';
|
|
6
|
-
import '../../Icon/
|
|
7
|
-
import { ChevronDownIcon } from '../../Icon/ChevronDownIcon.mjs';
|
|
8
|
-
import { ChevronUpIcon } from '../../Icon/ChevronUpIcon.mjs';
|
|
6
|
+
import { Icon } from '../../__future__/Icon/Icon.mjs';
|
|
9
7
|
import styles from './Collapsible.module.scss.mjs';
|
|
10
8
|
import { IconButton } from '../../__actions__/Button/v1/IconButton/IconButton.mjs';
|
|
11
9
|
const Collapsible = /*#__PURE__*/function () {
|
|
@@ -65,11 +63,10 @@ const Collapsible = /*#__PURE__*/function () {
|
|
|
65
63
|
tag: "span"
|
|
66
64
|
}, title))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(IconButton, {
|
|
67
65
|
label: title,
|
|
68
|
-
icon:
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
})),
|
|
66
|
+
icon: /*#__PURE__*/React.createElement(Icon, {
|
|
67
|
+
name: isOpen ? "keyboard_arrow_up" : "keyboard_arrow_down",
|
|
68
|
+
isPresentational: true
|
|
69
|
+
}),
|
|
73
70
|
type: "button",
|
|
74
71
|
"aria-expanded": isOpen,
|
|
75
72
|
"aria-controls": sectionId,
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
|
-
import '../../Icon/
|
|
5
|
-
import { DateStartIcon } from '../../Icon/DateStartIcon.mjs';
|
|
4
|
+
import { Icon } from '../../__future__/Icon/Icon.mjs';
|
|
6
5
|
import { isRefObject } from '../../utils/isRefObject.mjs';
|
|
7
6
|
import { DateInput } from '../DateInput/DateInput.mjs';
|
|
8
7
|
import styles from './DateInputWithIconButton.module.scss.mjs';
|
|
@@ -23,8 +22,10 @@ const DateInputWithIconButton = /*#__PURE__*/function () {
|
|
|
23
22
|
"aria-disabled": disabled,
|
|
24
23
|
disabled: disabled,
|
|
25
24
|
className: classnames(styles.iconButton, restProps["aria-expanded"] && styles.calendarActive, disabled && styles.disabled)
|
|
26
|
-
}, /*#__PURE__*/React.createElement(
|
|
27
|
-
|
|
25
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
26
|
+
name: "today",
|
|
27
|
+
isPresentational: true,
|
|
28
|
+
isFilled: true
|
|
28
29
|
}));
|
|
29
30
|
return /*#__PURE__*/React.createElement(DateInput, __assign({
|
|
30
31
|
ref: inputRef,
|
|
@@ -11,10 +11,9 @@ import 'date-fns';
|
|
|
11
11
|
import { isDisabledDate } from '../Calendar/utils/isDisabledDate.mjs';
|
|
12
12
|
import { CalendarPopover } from '../Calendar/CalendarPopover/CalendarPopover.mjs';
|
|
13
13
|
import { LegacyCalendarRange } from '../Calendar/LegacyCalendarRange/LegacyCalendarRange.mjs';
|
|
14
|
-
import '../Icon/subcomponents/SVG/SVG.mjs';
|
|
15
|
-
import { DateStartIcon } from '../Icon/DateStartIcon.mjs';
|
|
16
14
|
import { Label } from '../Label/Label.mjs';
|
|
17
15
|
import { VisuallyHidden } from '../VisuallyHidden/VisuallyHidden.mjs';
|
|
16
|
+
import { Icon } from '../__future__/Icon/Icon.mjs';
|
|
18
17
|
import styles from './DateRangePicker.module.scss.mjs';
|
|
19
18
|
|
|
20
19
|
/**
|
|
@@ -117,8 +116,10 @@ const DateRangePicker = /*#__PURE__*/function () {
|
|
|
117
116
|
"aria-label": (selectedDateRange === null || selectedDateRange === void 0 ? void 0 : selectedDateRange.from) ? "Change date: ".concat(value) : "Choose date"
|
|
118
117
|
}, inputProps), /*#__PURE__*/React.createElement("div", {
|
|
119
118
|
className: styles.startIconAdornment
|
|
120
|
-
}, /*#__PURE__*/React.createElement(
|
|
121
|
-
|
|
119
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
120
|
+
name: "today",
|
|
121
|
+
isPresentational: true,
|
|
122
|
+
isFilled: true
|
|
122
123
|
})), /*#__PURE__*/React.createElement("span", {
|
|
123
124
|
className: styles.value
|
|
124
125
|
}, (selectedDateRange === null || selectedDateRange === void 0 ? void 0 : selectedDateRange.from) ? value : undefined))), isOpen && ( /*#__PURE__*/React.createElement(FocusOn, {
|
|
@@ -3,13 +3,11 @@ import React from 'react';
|
|
|
3
3
|
import { useIntl, FormattedMessage } from '@cultureamp/i18n-react-intl';
|
|
4
4
|
import classnames from 'classnames';
|
|
5
5
|
import { BrandMoment } from '../BrandMoment/BrandMoment.mjs';
|
|
6
|
-
import '../Icon/subcomponents/SVG/SVG.mjs';
|
|
7
|
-
import { ArrowRightIcon } from '../Icon/ArrowRightIcon.mjs';
|
|
8
|
-
import { EmailIcon } from '../Icon/EmailIcon.mjs';
|
|
9
6
|
import '../Illustration/subcomponents/Base/Base.mjs';
|
|
10
7
|
import '../Illustration/Scene/BrandMomentCaptureIntro/BrandMomentCaptureIntro.mjs';
|
|
11
8
|
import { BrandMomentError } from '../Illustration/Scene/Scene.mjs';
|
|
12
9
|
import { Text } from '../Text/Text.mjs';
|
|
10
|
+
import { Icon } from '../__future__/Icon/Icon.mjs';
|
|
13
11
|
import { useErrorMessages } from './hooks/useErrorMessages.mjs';
|
|
14
12
|
import styles from './ErrorPage.module.scss.mjs';
|
|
15
13
|
var getMailToHref = function (code) {
|
|
@@ -62,9 +60,11 @@ const ErrorPage = /*#__PURE__*/function () {
|
|
|
62
60
|
}),
|
|
63
61
|
variant: "warning",
|
|
64
62
|
primaryAction: __assign(__assign({}, actions.primary), {
|
|
65
|
-
icon: /*#__PURE__*/React.createElement(
|
|
66
|
-
|
|
67
|
-
|
|
63
|
+
icon: ( /*#__PURE__*/React.createElement(Icon, {
|
|
64
|
+
name: "arrow_forward",
|
|
65
|
+
isPresentational: true,
|
|
66
|
+
shouldMirrorInRTL: true
|
|
67
|
+
})),
|
|
68
68
|
iconPosition: "end",
|
|
69
69
|
label: formatMessage({
|
|
70
70
|
id: "kzErrorPage.goToHome",
|
|
@@ -73,8 +73,10 @@ const ErrorPage = /*#__PURE__*/function () {
|
|
|
73
73
|
})
|
|
74
74
|
}),
|
|
75
75
|
secondaryAction: __assign(__assign({}, actions.secondary), {
|
|
76
|
-
icon: /*#__PURE__*/React.createElement(
|
|
77
|
-
|
|
76
|
+
icon: /*#__PURE__*/React.createElement(Icon, {
|
|
77
|
+
name: "mail",
|
|
78
|
+
isPresentational: true,
|
|
79
|
+
isFilled: true
|
|
78
80
|
}),
|
|
79
81
|
label: formatMessage({
|
|
80
82
|
id: "kzErrorPage",
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
|
-
import '../Icon/subcomponents/SVG/SVG.mjs';
|
|
5
|
-
import { CautionWhiteIcon } from '../Icon/CautionWhiteIcon.mjs';
|
|
6
|
-
import { ExclamationWhiteIcon } from '../Icon/ExclamationWhiteIcon.mjs';
|
|
7
4
|
import { Text } from '../Text/Text.mjs';
|
|
5
|
+
import { Icon } from '../__future__/Icon/Icon.mjs';
|
|
8
6
|
import styles from './FieldMessage.module.scss.mjs';
|
|
9
7
|
const FieldMessage = /*#__PURE__*/function () {
|
|
10
8
|
const FieldMessage = function (_a) {
|
|
@@ -22,15 +20,11 @@ const FieldMessage = /*#__PURE__*/function () {
|
|
|
22
20
|
className: classnames(styles.message, styles[status], classNameOverride, reversed && styles.reversed, position === "bottom" && styles.positionBottom, position === "top" && styles.positionTop)
|
|
23
21
|
}, restProps), (status === "error" || status === "caution") && ( /*#__PURE__*/React.createElement("span", {
|
|
24
22
|
className: styles.warningIcon
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}))
|
|
30
|
-
role: "img",
|
|
31
|
-
inheritSize: false,
|
|
32
|
-
"aria-label": "".concat(status, " message")
|
|
33
|
-
})))), /*#__PURE__*/React.createElement("div", {
|
|
23
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
24
|
+
name: status === "error" ? "error" : "warning",
|
|
25
|
+
isFilled: true,
|
|
26
|
+
alt: "".concat(status, " message")
|
|
27
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
34
28
|
className: styles.message
|
|
35
29
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
36
30
|
variant: "small",
|
|
@@ -72,16 +72,24 @@ var FilterBarProvider = function (_a) {
|
|
|
72
72
|
});
|
|
73
73
|
},
|
|
74
74
|
showFilter: function (id) {
|
|
75
|
-
|
|
75
|
+
dispatch({
|
|
76
76
|
type: "activate_filter",
|
|
77
77
|
id: id
|
|
78
78
|
});
|
|
79
|
+
dispatch({
|
|
80
|
+
type: "set_focus",
|
|
81
|
+
id: id
|
|
82
|
+
});
|
|
79
83
|
},
|
|
80
84
|
hideFilter: function (id) {
|
|
81
85
|
dispatch({
|
|
82
86
|
type: "deactivate_filter",
|
|
83
87
|
id: id
|
|
84
88
|
});
|
|
89
|
+
dispatch({
|
|
90
|
+
type: "set_focus",
|
|
91
|
+
id: "add_filter"
|
|
92
|
+
});
|
|
85
93
|
},
|
|
86
94
|
getInactiveFilters: function () {
|
|
87
95
|
return getInactiveFilters(state);
|
|
@@ -97,7 +105,14 @@ var FilterBarProvider = function (_a) {
|
|
|
97
105
|
type: "update_values",
|
|
98
106
|
values: {}
|
|
99
107
|
});
|
|
100
|
-
}
|
|
108
|
+
},
|
|
109
|
+
setFocus: function (id) {
|
|
110
|
+
dispatch({
|
|
111
|
+
type: "set_focus",
|
|
112
|
+
id: id
|
|
113
|
+
});
|
|
114
|
+
},
|
|
115
|
+
focusId: state.focusId
|
|
101
116
|
};
|
|
102
117
|
useEffect(function () {
|
|
103
118
|
var shouldUpdate = checkShouldUpdateValues(state, values);
|
|
@@ -4,6 +4,10 @@ import { updateSingleFilter } from './updateSingleFilter.mjs';
|
|
|
4
4
|
import { updateValues } from './updateValues.mjs';
|
|
5
5
|
var filterBarStateReducer = function (state, action) {
|
|
6
6
|
switch (action.type) {
|
|
7
|
+
case "set_focus":
|
|
8
|
+
return __assign(__assign({}, state), {
|
|
9
|
+
focusId: action.id
|
|
10
|
+
});
|
|
7
11
|
case "update_values":
|
|
8
12
|
return __assign({}, updateValues(state, action.values));
|
|
9
13
|
case "complete_update_values":
|
|
@@ -26,7 +26,8 @@ var setupFilterBarState = function (filters, values) {
|
|
|
26
26
|
activeFilterIds: new Set(),
|
|
27
27
|
values: values,
|
|
28
28
|
dependentFilterIds: new Set(),
|
|
29
|
-
hasUpdatedValues: false
|
|
29
|
+
hasUpdatedValues: false,
|
|
30
|
+
focusId: undefined
|
|
30
31
|
});
|
|
31
32
|
return updateDependentFilters(state);
|
|
32
33
|
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { useRef, useEffect } from 'react';
|
|
2
2
|
import { useIntl } from '@cultureamp/i18n-react-intl';
|
|
3
|
-
import '
|
|
4
|
-
import '../../../../Icon/subcomponents/SVG/SVG.mjs';
|
|
5
|
-
import { AddIcon } from '../../../../Icon/AddIcon.mjs';
|
|
3
|
+
import { Icon } from '../../../../__future__/Icon/Icon.mjs';
|
|
6
4
|
import { useFilterBarContext } from '../../context/FilterBarContext.mjs';
|
|
7
5
|
import { Menu } from '../../../../__actions__/Menu/v1/Menu.mjs';
|
|
8
6
|
import { MenuList } from '../../../../__actions__/Menu/v1/subcomponents/MenuList/MenuList.mjs';
|
|
@@ -11,6 +9,7 @@ import { Button } from '../../../../__actions__/Button/v1/Button/Button.mjs';
|
|
|
11
9
|
const AddFiltersMenu = /*#__PURE__*/function () {
|
|
12
10
|
const AddFiltersMenu = function () {
|
|
13
11
|
var formatMessage = useIntl().formatMessage;
|
|
12
|
+
var buttonRef = useRef(null);
|
|
14
13
|
var menuButtonLabel = formatMessage({
|
|
15
14
|
id: "filterBar.addFiltersMenu.buttonLabel",
|
|
16
15
|
defaultMessage: "Add Filters",
|
|
@@ -18,15 +17,26 @@ const AddFiltersMenu = /*#__PURE__*/function () {
|
|
|
18
17
|
});
|
|
19
18
|
var _a = useFilterBarContext(),
|
|
20
19
|
getInactiveFilters = _a.getInactiveFilters,
|
|
21
|
-
showFilter = _a.showFilter
|
|
20
|
+
showFilter = _a.showFilter,
|
|
21
|
+
focusId = _a.focusId,
|
|
22
|
+
setFocus = _a.setFocus;
|
|
22
23
|
var inactiveFilters = getInactiveFilters();
|
|
24
|
+
useEffect(function () {
|
|
25
|
+
var _a;
|
|
26
|
+
if (focusId === "add_filter") {
|
|
27
|
+
(_a = buttonRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
28
|
+
setFocus(undefined);
|
|
29
|
+
}
|
|
30
|
+
}, [focusId]);
|
|
23
31
|
return /*#__PURE__*/React.createElement(Menu, {
|
|
24
32
|
button: /*#__PURE__*/React.createElement(Button, {
|
|
33
|
+
ref: buttonRef,
|
|
25
34
|
label: menuButtonLabel,
|
|
26
35
|
secondary: true,
|
|
27
36
|
disabled: inactiveFilters.length === 0,
|
|
28
|
-
icon: /*#__PURE__*/React.createElement(
|
|
29
|
-
|
|
37
|
+
icon: /*#__PURE__*/React.createElement(Icon, {
|
|
38
|
+
name: "add",
|
|
39
|
+
isPresentational: true
|
|
30
40
|
})
|
|
31
41
|
})
|
|
32
42
|
}, /*#__PURE__*/React.createElement(MenuList, null, inactiveFilters.map(function (_a) {
|
|
@@ -1,15 +1,26 @@
|
|
|
1
1
|
import { __rest, __assign } from 'tslib';
|
|
2
|
-
import React, { forwardRef } from 'react';
|
|
2
|
+
import React, { forwardRef, useEffect } from 'react';
|
|
3
3
|
import { useFilterBarContext } from '../../context/FilterBarContext.mjs';
|
|
4
4
|
import { FilterButton } from '../../../FilterButton/FilterButton/FilterButton.mjs';
|
|
5
5
|
import { FilterButtonRemovable } from '../../../FilterButton/FilterButtonRemovable/FilterButtonRemovable.mjs';
|
|
6
|
+
import { isRefObject } from '../../../../utils/isRefObject.mjs';
|
|
6
7
|
const FilterBarButton = /*#__PURE__*/function () {
|
|
7
8
|
const FilterBarButton = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
8
9
|
var filterId = _a.filterId,
|
|
9
10
|
_b = _a.isRemovable,
|
|
10
11
|
isRemovable = _b === void 0 ? false : _b,
|
|
11
12
|
props = __rest(_a, ["filterId", "isRemovable"]);
|
|
12
|
-
var
|
|
13
|
+
var _c = useFilterBarContext(),
|
|
14
|
+
hideFilter = _c.hideFilter,
|
|
15
|
+
focusId = _c.focusId,
|
|
16
|
+
setFocus = _c.setFocus;
|
|
17
|
+
useEffect(function () {
|
|
18
|
+
var _a, _b, _c;
|
|
19
|
+
if (focusId === filterId && isRefObject(ref)) {
|
|
20
|
+
(_c = (_b = (_a = ref === null || ref === void 0 ? void 0 : ref.current) === null || _a === void 0 ? void 0 : _a.triggerRef) === null || _b === void 0 ? void 0 : _b.current) === null || _c === void 0 ? void 0 : _c.focus();
|
|
21
|
+
setFocus(undefined);
|
|
22
|
+
}
|
|
23
|
+
}, [focusId]);
|
|
13
24
|
return isRemovable ? ( /*#__PURE__*/React.createElement(FilterButtonRemovable, {
|
|
14
25
|
ref: ref,
|
|
15
26
|
triggerButtonProps: props,
|
package/dist/esm/Filter/FilterBar/subcomponents/FilterBarMultiSelect/FilterBarMultiSelect.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __rest, __assign } from 'tslib';
|
|
2
|
-
import React, { useState, useEffect } from 'react';
|
|
2
|
+
import React, { useState, useRef, useEffect } from 'react';
|
|
3
3
|
import { FilterMultiSelect } from '../../../FilterMultiSelect/FilterMultiSelect.mjs';
|
|
4
4
|
import '../../../FilterMultiSelect/context/MenuTriggerProvider/MenuTriggerProvider.mjs';
|
|
5
5
|
import '../../../FilterMultiSelect/context/SelectionProvider/SelectionProvider.mjs';
|
|
@@ -25,10 +25,13 @@ const FilterBarMultiSelect = /*#__PURE__*/function () {
|
|
|
25
25
|
getFilterState = _b.getFilterState,
|
|
26
26
|
setFilterOpenState = _b.setFilterOpenState,
|
|
27
27
|
updateValue = _b.updateValue,
|
|
28
|
-
hideFilter = _b.hideFilter
|
|
28
|
+
hideFilter = _b.hideFilter,
|
|
29
|
+
focusId = _b.focusId,
|
|
30
|
+
setFocus = _b.setFocus;
|
|
29
31
|
var _c = useState(propsItems),
|
|
30
32
|
items = _c[0],
|
|
31
33
|
setItems = _c[1];
|
|
34
|
+
var buttonRef = useRef(null);
|
|
32
35
|
if (!id) throw Error("Missing `id` prop in FilterBarMultiSelect");
|
|
33
36
|
var filterState = getFilterState(id);
|
|
34
37
|
useEffect(function () {
|
|
@@ -50,6 +53,13 @@ const FilterBarMultiSelect = /*#__PURE__*/function () {
|
|
|
50
53
|
}
|
|
51
54
|
}
|
|
52
55
|
}, [items]);
|
|
56
|
+
useEffect(function () {
|
|
57
|
+
var _a;
|
|
58
|
+
if (focusId === id) {
|
|
59
|
+
(_a = buttonRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
60
|
+
setFocus(undefined);
|
|
61
|
+
}
|
|
62
|
+
}, [focusId]);
|
|
53
63
|
return /*#__PURE__*/React.createElement(FilterMultiSelect, __assign({
|
|
54
64
|
label: filterState.name,
|
|
55
65
|
// Convert the incoming FilterBar state to a Set (internal FilterMultiSelect state)
|
|
@@ -74,7 +84,8 @@ const FilterBarMultiSelect = /*#__PURE__*/function () {
|
|
|
74
84
|
return hideFilter(id);
|
|
75
85
|
}
|
|
76
86
|
}))) : ( /*#__PURE__*/React.createElement(FilterMultiSelect.TriggerButton, __assign({}, triggerProps)));
|
|
77
|
-
}
|
|
87
|
+
},
|
|
88
|
+
triggerRef: buttonRef
|
|
78
89
|
}, props), children);
|
|
79
90
|
};
|
|
80
91
|
FilterBarMultiSelect.displayName = "FilterBar.MultiSelect";
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
|
-
import '../../../Icon/
|
|
5
|
-
import { ChevronDownIcon } from '../../../Icon/ChevronDownIcon.mjs';
|
|
6
|
-
import { ChevronUpIcon } from '../../../Icon/ChevronUpIcon.mjs';
|
|
4
|
+
import { Icon } from '../../../__future__/Icon/Icon.mjs';
|
|
7
5
|
import { isRefObject } from '../../../utils/isRefObject.mjs';
|
|
8
6
|
import { FilterButtonBase } from '../subcomponents/FilterButtonBase/FilterButtonBase.mjs';
|
|
9
7
|
import styles from './FilterButton.module.scss.mjs';
|
|
@@ -29,11 +27,10 @@ const FilterButton = /*#__PURE__*/function () {
|
|
|
29
27
|
className: styles.hasSelectedValues
|
|
30
28
|
}, /*#__PURE__*/React.createElement("span", null, label), /*#__PURE__*/React.createElement("span", {
|
|
31
29
|
className: styles.labelSeparator
|
|
32
|
-
}, ":")), /*#__PURE__*/React.createElement("span", null, selectedValuesLabel))) : label),
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
})));
|
|
30
|
+
}, ":")), /*#__PURE__*/React.createElement("span", null, selectedValuesLabel))) : label), /*#__PURE__*/React.createElement(Icon, {
|
|
31
|
+
name: isOpen ? "keyboard_arrow_up" : "keyboard_arrow_down",
|
|
32
|
+
isPresentational: true
|
|
33
|
+
}));
|
|
37
34
|
});
|
|
38
35
|
FilterButton.displayName = "FilterButton";
|
|
39
36
|
return FilterButton;
|
|
@@ -2,8 +2,7 @@ import { __rest, __assign } from 'tslib';
|
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
3
|
import { useIntl } from '@cultureamp/i18n-react-intl';
|
|
4
4
|
import { ButtonGroup } from '../../../ButtonGroup/ButtonGroup.mjs';
|
|
5
|
-
import '../../../Icon/
|
|
6
|
-
import { ClearIcon } from '../../../Icon/ClearIcon.mjs';
|
|
5
|
+
import { Icon } from '../../../__future__/Icon/Icon.mjs';
|
|
7
6
|
import { Tooltip } from '../../../__overlays__/Tooltip/v1/index.mjs';
|
|
8
7
|
import { isRefObject } from '../../../utils/isRefObject.mjs';
|
|
9
8
|
import { FilterButton } from '../FilterButton/FilterButton.mjs';
|
|
@@ -33,9 +32,10 @@ const FilterButtonRemovable = /*#__PURE__*/function () {
|
|
|
33
32
|
position: "below"
|
|
34
33
|
}, /*#__PURE__*/React.createElement(FilterButtonBase, __assign({
|
|
35
34
|
ref: removeButtonRef
|
|
36
|
-
}, removeButtonProps), /*#__PURE__*/React.createElement(
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
}, removeButtonProps), /*#__PURE__*/React.createElement(Icon, {
|
|
36
|
+
name: "cancel",
|
|
37
|
+
alt: removeButtonLabel,
|
|
38
|
+
isFilled: true
|
|
39
39
|
}))));
|
|
40
40
|
});
|
|
41
41
|
FilterButtonRemovable.displayName = "FilterButtonRemovable";
|
|
@@ -32,11 +32,13 @@ const FilterMultiSelect = /*#__PURE__*/function () {
|
|
|
32
32
|
onSelectionChange = _a.onSelectionChange,
|
|
33
33
|
_b = _a.selectionMode,
|
|
34
34
|
selectionMode = _b === void 0 ? "multiple" : _b,
|
|
35
|
-
onSearchInputChange = _a.onSearchInputChange
|
|
35
|
+
onSearchInputChange = _a.onSearchInputChange,
|
|
36
|
+
triggerRef = _a.triggerRef;
|
|
36
37
|
var menuTriggerProps = {
|
|
37
38
|
isOpen: isOpen,
|
|
38
39
|
defaultOpen: defaultOpen,
|
|
39
|
-
onOpenChange: onOpenChange
|
|
40
|
+
onOpenChange: onOpenChange,
|
|
41
|
+
triggerRef: triggerRef
|
|
40
42
|
};
|
|
41
43
|
var menuPopupProps = {
|
|
42
44
|
isLoading: isLoading,
|
package/dist/esm/Filter/FilterMultiSelect/context/MenuTriggerProvider/MenuTriggerProvider.mjs
CHANGED
|
@@ -7,7 +7,8 @@ function MenuTriggerProvider(_a) {
|
|
|
7
7
|
var isOpen = _a.isOpen,
|
|
8
8
|
defaultOpen = _a.defaultOpen,
|
|
9
9
|
onOpenChange = _a.onOpenChange,
|
|
10
|
-
children = _a.children
|
|
10
|
+
children = _a.children,
|
|
11
|
+
triggerRef = _a.triggerRef;
|
|
11
12
|
// Create state based on the incoming props to manage the open/close
|
|
12
13
|
var state = useMenuTriggerState({
|
|
13
14
|
isOpen: isOpen,
|
|
@@ -15,7 +16,8 @@ function MenuTriggerProvider(_a) {
|
|
|
15
16
|
onOpenChange: onOpenChange
|
|
16
17
|
});
|
|
17
18
|
// Get A11y attributes and events for the menu trigger and menu elements
|
|
18
|
-
var
|
|
19
|
+
var fallbackRef = useRef(null);
|
|
20
|
+
var ref = triggerRef || fallbackRef;
|
|
19
21
|
var _b = useMenuTrigger({}, state, ref),
|
|
20
22
|
menuTriggerProps = _b.menuTriggerProps,
|
|
21
23
|
menuProps = _b.menuProps;
|
package/dist/esm/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.mjs
CHANGED
|
@@ -5,9 +5,8 @@ import { useOption } from '@react-aria/listbox';
|
|
|
5
5
|
import { mergeProps } from '@react-aria/utils';
|
|
6
6
|
import classnames from 'classnames';
|
|
7
7
|
import { Badge } from '../../../../Badge/Badge.mjs';
|
|
8
|
-
import '../../../../Icon/subcomponents/SVG/SVG.mjs';
|
|
9
|
-
import { CheckIcon } from '../../../../Icon/CheckIcon.mjs';
|
|
10
8
|
import { VisuallyHidden } from '../../../../VisuallyHidden/VisuallyHidden.mjs';
|
|
9
|
+
import { Icon } from '../../../../__future__/Icon/Icon.mjs';
|
|
11
10
|
import '../../context/MenuTriggerProvider/MenuTriggerProvider.mjs';
|
|
12
11
|
import { useSelectionContext } from '../../context/SelectionProvider/SelectionProvider.mjs';
|
|
13
12
|
import styles from './MultiSelectOption.module.scss.mjs';
|
|
@@ -38,8 +37,9 @@ const MultiSelectOption = /*#__PURE__*/function () {
|
|
|
38
37
|
"aria-describedby": ((_c = item.value) === null || _c === void 0 ? void 0 : _c.count) ? countElementId : undefined
|
|
39
38
|
}), /*#__PURE__*/React.createElement("span", {
|
|
40
39
|
className: classnames(styles.icon, isSelected && styles.isSelected)
|
|
41
|
-
}, isSelected && /*#__PURE__*/React.createElement(
|
|
42
|
-
|
|
40
|
+
}, isSelected && /*#__PURE__*/React.createElement(Icon, {
|
|
41
|
+
name: "check",
|
|
42
|
+
isPresentational: true
|
|
43
43
|
})), item.rendered, ((_d = item.value) === null || _d === void 0 ? void 0 : _d.count) && ( /*#__PURE__*/React.createElement("span", {
|
|
44
44
|
id: countElementId,
|
|
45
45
|
className: styles.badgeContainer
|
|
@@ -50,7 +50,8 @@ const FilterSelect = /*#__PURE__*/function () {
|
|
|
50
50
|
triggerProps = _c.triggerProps,
|
|
51
51
|
menuProps = _c.menuProps;
|
|
52
52
|
var buttonProps = useButton(triggerProps, triggerRef).buttonProps;
|
|
53
|
-
//
|
|
53
|
+
// `aria-labelledby` and `aria-controls` are being remapped because the `buttonProps` ids generated by React Aria point to nothing.
|
|
54
|
+
// This should ideally be refactored but for now the `aria-controls` is set to the Filter's Listbox (menuProps.id) and the `aria-labelledby` to undefined so the accessible name is derived from the buttons content.
|
|
54
55
|
var renderTriggerButtonProps = __assign(__assign({}, buttonProps), {
|
|
55
56
|
"aria-labelledby": undefined,
|
|
56
57
|
"aria-controls": menuProps.id
|
|
@@ -3,9 +3,8 @@ import React, { useState, useEffect } from 'react';
|
|
|
3
3
|
import classnames from 'classnames';
|
|
4
4
|
import Media from 'react-media';
|
|
5
5
|
import { Heading } from '../Heading/Heading.mjs';
|
|
6
|
-
import '../Icon/subcomponents/SVG/SVG.mjs';
|
|
7
|
-
import { ArrowForwardIcon } from '../Icon/ArrowForwardIcon.mjs';
|
|
8
6
|
import { Text } from '../Text/Text.mjs';
|
|
7
|
+
import { Icon } from '../__future__/Icon/Icon.mjs';
|
|
9
8
|
import { Tooltip } from '../__overlays__/Tooltip/v1/index.mjs';
|
|
10
9
|
import styles from './GuidanceBlock.module.scss.mjs';
|
|
11
10
|
import { Button } from '../__actions__/Button/v1/Button/Button.mjs';
|
|
@@ -127,8 +126,10 @@ const GuidanceBlock = /*#__PURE__*/function () {
|
|
|
127
126
|
}, /*#__PURE__*/React.createElement(WithTooltip, {
|
|
128
127
|
tooltipProps: actions.primary.tooltip
|
|
129
128
|
}, /*#__PURE__*/React.createElement(Button, __assign({
|
|
130
|
-
icon: withActionButtonArrow ? ( /*#__PURE__*/React.createElement(
|
|
131
|
-
|
|
129
|
+
icon: withActionButtonArrow ? ( /*#__PURE__*/React.createElement(Icon, {
|
|
130
|
+
name: "arrow_forward",
|
|
131
|
+
isPresentational: true,
|
|
132
|
+
shouldMirrorInRTL: true
|
|
132
133
|
})) : undefined,
|
|
133
134
|
iconPosition: "end"
|
|
134
135
|
}, actions.primary, {
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import '
|
|
3
|
-
import '../../Icon/subcomponents/SVG/SVG.mjs';
|
|
4
|
-
import { LaunchIcon } from '../../Icon/LaunchIcon.mjs';
|
|
5
|
-
import { PauseIcon } from '../../Icon/PauseIcon.mjs';
|
|
2
|
+
import { Icon } from '../../__future__/Icon/Icon.mjs';
|
|
6
3
|
var usePausePlay = function (videoRef) {
|
|
7
4
|
var _a = useState(false),
|
|
8
5
|
isPaused = _a[0],
|
|
@@ -18,10 +15,10 @@ var usePausePlay = function (videoRef) {
|
|
|
18
15
|
videoRef.current.pause();
|
|
19
16
|
}
|
|
20
17
|
},
|
|
21
|
-
icon:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
icon: ( /*#__PURE__*/React.createElement(Icon, {
|
|
19
|
+
name: isPaused ? "play_circle" : "pause",
|
|
20
|
+
isPresentational: true,
|
|
21
|
+
isFilled: true
|
|
25
22
|
})),
|
|
26
23
|
label: isPaused ? "Play animation" : "Pause animation"
|
|
27
24
|
};
|