@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
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { Meta, StoryObj } from "@storybook/react"
|
|
3
|
-
import {
|
|
4
|
-
BoldIcon,
|
|
5
|
-
BullettedListIcon,
|
|
6
|
-
ItalicsIcon,
|
|
7
|
-
NumberedListIcon,
|
|
8
|
-
UnderlineIcon,
|
|
9
|
-
} from "~components/Icon"
|
|
3
|
+
import { Icon } from "~components/__future__/Icon"
|
|
10
4
|
import { ToggleIconButton } from "../../ToggleIconButton"
|
|
11
5
|
import { ToolbarSection } from "../../ToolbarSection"
|
|
12
6
|
import { Toolbar } from "../index"
|
|
@@ -22,25 +16,37 @@ const meta = {
|
|
|
22
16
|
<ToolbarSection>
|
|
23
17
|
<ToggleIconButton
|
|
24
18
|
label="Bold"
|
|
25
|
-
icon={<
|
|
19
|
+
icon={<Icon name="format_bold" isPresentational />}
|
|
26
20
|
/>
|
|
27
21
|
<ToggleIconButton
|
|
28
22
|
label="Italic"
|
|
29
|
-
icon={<
|
|
23
|
+
icon={<Icon name="format_italic" isPresentational />}
|
|
30
24
|
/>
|
|
31
25
|
<ToggleIconButton
|
|
32
26
|
label="Underline"
|
|
33
|
-
icon={<
|
|
27
|
+
icon={<Icon name="format_underlined" isPresentational />}
|
|
34
28
|
/>
|
|
35
29
|
</ToolbarSection>
|
|
36
30
|
<ToolbarSection>
|
|
37
31
|
<ToggleIconButton
|
|
38
32
|
label="Bullet list"
|
|
39
|
-
icon={
|
|
33
|
+
icon={
|
|
34
|
+
<Icon
|
|
35
|
+
name="format_list_bulleted"
|
|
36
|
+
isPresentational
|
|
37
|
+
shouldMirrorInRTL
|
|
38
|
+
/>
|
|
39
|
+
}
|
|
40
40
|
/>
|
|
41
41
|
<ToggleIconButton
|
|
42
42
|
label="Numbered list"
|
|
43
|
-
icon={
|
|
43
|
+
icon={
|
|
44
|
+
<Icon
|
|
45
|
+
name="format_list_numbered"
|
|
46
|
+
isPresentational
|
|
47
|
+
shouldMirrorInRTL
|
|
48
|
+
/>
|
|
49
|
+
}
|
|
44
50
|
/>
|
|
45
51
|
</ToolbarSection>
|
|
46
52
|
</>
|
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
import React from "react"
|
|
2
|
-
import {
|
|
3
|
-
AddLinkIcon,
|
|
4
|
-
BoldIcon,
|
|
5
|
-
BullettedListIcon,
|
|
6
|
-
DecreaseIndentIcon,
|
|
7
|
-
IncreaseIndentIcon,
|
|
8
|
-
ItalicsIcon,
|
|
9
|
-
NumberedListIcon,
|
|
10
|
-
UnderlineIcon,
|
|
11
|
-
} from "~components/Icon"
|
|
2
|
+
import { Icon } from "~components/__future__/Icon"
|
|
12
3
|
import { ToolbarItems, ToolbarControlTypes } from "../../types"
|
|
13
4
|
import { listIsActive, markIsActive } from "../../utils/commands"
|
|
14
5
|
import {
|
|
@@ -210,7 +201,7 @@ export const buildControlMap = (
|
|
|
210
201
|
isActive: markIsActive(editorState, type),
|
|
211
202
|
action: createToggleMarkCommand(type),
|
|
212
203
|
label: "Bold",
|
|
213
|
-
icon: <
|
|
204
|
+
icon: <Icon name="format_bold" isPresentational />,
|
|
214
205
|
})
|
|
215
206
|
}
|
|
216
207
|
|
|
@@ -221,7 +212,7 @@ export const buildControlMap = (
|
|
|
221
212
|
isActive: markIsActive(editorState, type),
|
|
222
213
|
action: createToggleMarkCommand(type),
|
|
223
214
|
label: "Italic",
|
|
224
|
-
icon: <
|
|
215
|
+
icon: <Icon name="format_italic" isPresentational />,
|
|
225
216
|
})
|
|
226
217
|
}
|
|
227
218
|
|
|
@@ -232,7 +223,7 @@ export const buildControlMap = (
|
|
|
232
223
|
isActive: markIsActive(editorState, type),
|
|
233
224
|
action: createToggleMarkCommand(type),
|
|
234
225
|
label: "Underline",
|
|
235
|
-
icon: <
|
|
226
|
+
icon: <Icon name="format_underlined" isPresentational />,
|
|
236
227
|
})
|
|
237
228
|
}
|
|
238
229
|
|
|
@@ -243,7 +234,9 @@ export const buildControlMap = (
|
|
|
243
234
|
action: createToggleListCommand(type),
|
|
244
235
|
isActive: listIsActive(editorState, type, listNodes),
|
|
245
236
|
label: "Bullet List",
|
|
246
|
-
icon:
|
|
237
|
+
icon: (
|
|
238
|
+
<Icon name="format_list_bulleted" isPresentational shouldMirrorInRTL />
|
|
239
|
+
),
|
|
247
240
|
})
|
|
248
241
|
}
|
|
249
242
|
|
|
@@ -254,7 +247,9 @@ export const buildControlMap = (
|
|
|
254
247
|
action: createToggleListCommand(type),
|
|
255
248
|
isActive: listIsActive(editorState, type, listNodes),
|
|
256
249
|
label: "Numbered List",
|
|
257
|
-
icon:
|
|
250
|
+
icon: (
|
|
251
|
+
<Icon name="format_list_numbered" isPresentational shouldMirrorInRTL />
|
|
252
|
+
),
|
|
258
253
|
})
|
|
259
254
|
}
|
|
260
255
|
|
|
@@ -270,14 +265,26 @@ export const buildControlMap = (
|
|
|
270
265
|
disabled: liftListIsDisabled(editorState),
|
|
271
266
|
isActive: false,
|
|
272
267
|
label: "Decrease indent",
|
|
273
|
-
icon:
|
|
268
|
+
icon: (
|
|
269
|
+
<Icon
|
|
270
|
+
name="format_indent_decrease"
|
|
271
|
+
isPresentational
|
|
272
|
+
shouldMirrorInRTL
|
|
273
|
+
/>
|
|
274
|
+
),
|
|
274
275
|
},
|
|
275
276
|
{
|
|
276
277
|
action: createIndentListCommand(),
|
|
277
278
|
disabled: indentListIsDisabled(editorState),
|
|
278
279
|
isActive: false,
|
|
279
280
|
label: "Increase indent",
|
|
280
|
-
icon:
|
|
281
|
+
icon: (
|
|
282
|
+
<Icon
|
|
283
|
+
name="format_indent_increase"
|
|
284
|
+
isPresentational
|
|
285
|
+
shouldMirrorInRTL
|
|
286
|
+
/>
|
|
287
|
+
),
|
|
281
288
|
}
|
|
282
289
|
)
|
|
283
290
|
}
|
|
@@ -290,7 +297,7 @@ export const buildControlMap = (
|
|
|
290
297
|
disabled: editorState.selection.empty,
|
|
291
298
|
isActive: false,
|
|
292
299
|
label: "Link",
|
|
293
|
-
icon: <
|
|
300
|
+
icon: <Icon name="add_link" isPresentational />,
|
|
294
301
|
})
|
|
295
302
|
}
|
|
296
303
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react"
|
|
2
|
-
import { EditIcon, ExternalLinkIcon, RemoveLinkIcon } from "~components/Icon"
|
|
3
2
|
import { usePopover } from "~components/Popover"
|
|
4
3
|
import { Text } from "~components/Text"
|
|
4
|
+
import { Icon } from "~components/__future__/Icon"
|
|
5
5
|
import { SelectionPosition } from "../../types"
|
|
6
6
|
import { Positioner } from "./Positioner"
|
|
7
7
|
import styles from "./LinkPopover.module.scss"
|
|
@@ -26,7 +26,7 @@ export const LinkPopover = ({
|
|
|
26
26
|
<Positioner ref={ElementRef} {...selectionPosition} />
|
|
27
27
|
<Popover size="large">
|
|
28
28
|
<div className={styles.popoverContent}>
|
|
29
|
-
<
|
|
29
|
+
<Icon name="open_in_new" isPresentational />
|
|
30
30
|
<div className={styles.popoverLinkContainer}>
|
|
31
31
|
<Text
|
|
32
32
|
variant="body"
|
|
@@ -44,13 +44,9 @@ export const LinkPopover = ({
|
|
|
44
44
|
</Text>
|
|
45
45
|
</div>
|
|
46
46
|
<div className={styles.popoverActions}>
|
|
47
|
-
<
|
|
47
|
+
<Icon name="edit" onClick={onEdit} alt="Edit link" />
|
|
48
48
|
</div>
|
|
49
|
-
<
|
|
50
|
-
role="img"
|
|
51
|
-
onClick={onRemove}
|
|
52
|
-
aria-label="Remove link"
|
|
53
|
-
/>
|
|
49
|
+
<Icon name="link_off" onClick={onRemove} alt="Remove link" />
|
|
54
50
|
</div>
|
|
55
51
|
</Popover>
|
|
56
52
|
</>
|
|
@@ -47,15 +47,15 @@ $focus-border-color: $color-blue-500;
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
.control {
|
|
50
|
-
&.disabled {
|
|
51
|
-
opacity: 30%;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
50
|
min-height: $input-height;
|
|
55
51
|
border: $border-solid-border-width $border-solid-border-style
|
|
56
52
|
$color-gray-500;
|
|
57
53
|
border-radius: $border-solid-border-radius;
|
|
58
54
|
|
|
55
|
+
&.disabled {
|
|
56
|
+
opacity: 30%;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
59
|
&:hover {
|
|
60
60
|
border-color: $color-gray-600;
|
|
61
61
|
background-color: $color-gray-100;
|
|
@@ -138,8 +138,6 @@ $focus-border-color: $color-blue-500;
|
|
|
138
138
|
|
|
139
139
|
&.disabledOption {
|
|
140
140
|
color: $color-purple-800;
|
|
141
|
-
border-style: $border-dashed-border-style;
|
|
142
|
-
border-width: $border-focus-ring-border-width;
|
|
143
141
|
border-color: $color-gray-500;
|
|
144
142
|
background: transparent;
|
|
145
143
|
}
|
|
@@ -150,12 +148,12 @@ $focus-border-color: $color-blue-500;
|
|
|
150
148
|
}
|
|
151
149
|
|
|
152
150
|
.selectedOption {
|
|
151
|
+
font-weight: $typography-paragraph-bold-font-weight;
|
|
152
|
+
color: $color-blue-500;
|
|
153
|
+
|
|
153
154
|
&:not(.focusedOption) {
|
|
154
155
|
background-color: transparent;
|
|
155
156
|
}
|
|
156
|
-
|
|
157
|
-
font-weight: $typography-paragraph-bold-font-weight;
|
|
158
|
-
color: $color-blue-500;
|
|
159
157
|
}
|
|
160
158
|
|
|
161
159
|
.disabledOption {
|
|
@@ -347,6 +345,8 @@ $focus-border-color: $color-blue-500;
|
|
|
347
345
|
}
|
|
348
346
|
|
|
349
347
|
.dropdownIndicator {
|
|
348
|
+
--icon-size: 14;
|
|
349
|
+
|
|
350
350
|
padding-top: 0;
|
|
351
351
|
padding-bottom: 0;
|
|
352
352
|
transform: translateY(1px);
|
package/src/Select/Select.tsx
CHANGED
|
@@ -7,9 +7,9 @@ import ReactSelect, {
|
|
|
7
7
|
} from "react-select"
|
|
8
8
|
import Async, { AsyncProps as ReactAsyncSelectProps } from "react-select/async"
|
|
9
9
|
import { FieldMessage } from "~components/FieldMessage"
|
|
10
|
-
import { ChevronDownIcon, ChevronUpIcon, ClearIcon } from "~components/Icon"
|
|
11
10
|
import { Label } from "~components/Label"
|
|
12
11
|
import { Tag } from "~components/Tag"
|
|
12
|
+
import { Icon } from "~components/__future__/Icon"
|
|
13
13
|
import styles from "./Select.module.scss"
|
|
14
14
|
|
|
15
15
|
export type SelectProps = {
|
|
@@ -183,11 +183,14 @@ const Placeholder: typeof components.Placeholder = props => (
|
|
|
183
183
|
|
|
184
184
|
const DropdownIndicator: typeof components.DropdownIndicator = props => (
|
|
185
185
|
<components.DropdownIndicator {...props} className={styles.dropdownIndicator}>
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
186
|
+
<Icon
|
|
187
|
+
name={
|
|
188
|
+
props.selectProps.menuIsOpen
|
|
189
|
+
? "keyboard_arrow_up"
|
|
190
|
+
: "keyboard_arrow_down"
|
|
191
|
+
}
|
|
192
|
+
isPresentational
|
|
193
|
+
/>
|
|
191
194
|
</components.DropdownIndicator>
|
|
192
195
|
)
|
|
193
196
|
|
|
@@ -258,6 +261,6 @@ const ValueContainer: typeof components.ValueContainer = props => (
|
|
|
258
261
|
)
|
|
259
262
|
const ClearIndicator: typeof components.ClearIndicator = props => (
|
|
260
263
|
<components.ClearIndicator {...props} className={styles.clearIndicator}>
|
|
261
|
-
<
|
|
264
|
+
<Icon name="cancel" isPresentational isFilled />
|
|
262
265
|
</components.ClearIndicator>
|
|
263
266
|
)
|
|
@@ -7,20 +7,19 @@ const DropdownButtonWrapper = (
|
|
|
7
7
|
): JSX.Element => <DropdownButton {...props} />
|
|
8
8
|
|
|
9
9
|
describe("<DropdownButton />", () => {
|
|
10
|
-
it("
|
|
10
|
+
it("has default accessible name", async () => {
|
|
11
11
|
render(<DropdownButtonWrapper />)
|
|
12
12
|
await waitFor(() => {
|
|
13
13
|
const button = screen.getByRole("button", { name: "Additional actions" })
|
|
14
|
-
expect(button
|
|
15
|
-
expect(button.firstChild?.nodeName).toEqual("svg")
|
|
14
|
+
expect(button).toBeInTheDocument()
|
|
16
15
|
})
|
|
17
16
|
})
|
|
18
17
|
|
|
19
|
-
it("
|
|
18
|
+
it("can customise accessible name", async () => {
|
|
20
19
|
render(<DropdownButtonWrapper aria-label="Custom aria label" />)
|
|
21
20
|
await waitFor(() => {
|
|
22
21
|
const button = screen.getByRole("button", { name: "Custom aria label" })
|
|
23
|
-
expect(button
|
|
22
|
+
expect(button).toBeInTheDocument()
|
|
24
23
|
})
|
|
25
24
|
})
|
|
26
25
|
})
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { useIntl } from "@cultureamp/i18n-react-intl"
|
|
3
3
|
import classnames from "classnames"
|
|
4
|
-
import {
|
|
4
|
+
import { Icon } from "~components/__future__/Icon"
|
|
5
5
|
import { BaseButton, BaseButtonProps } from "../BaseButton"
|
|
6
6
|
import styles from "./DropdownButton.module.scss"
|
|
7
7
|
|
|
@@ -23,7 +23,7 @@ export const DropdownButton = ({
|
|
|
23
23
|
description: "Label for a dropdown menu holding additional actions",
|
|
24
24
|
})
|
|
25
25
|
}
|
|
26
|
-
icon={<
|
|
26
|
+
icon={<Icon name="keyboard_arrow_down" isPresentational />}
|
|
27
27
|
classNameOverride={classnames(styles.dropdownButton, classNameOverride)}
|
|
28
28
|
{...restProps}
|
|
29
29
|
/>
|
|
@@ -14,7 +14,9 @@ $row-height-data-variant: 48px;
|
|
|
14
14
|
text-decoration: none;
|
|
15
15
|
color: $color-purple-800;
|
|
16
16
|
display: block;
|
|
17
|
+
}
|
|
17
18
|
|
|
19
|
+
@mixin anchor-reset-pseudo-states {
|
|
18
20
|
&:hover,
|
|
19
21
|
&:active,
|
|
20
22
|
&:focus {
|
|
@@ -94,6 +96,8 @@ $row-height-data-variant: 48px;
|
|
|
94
96
|
// Ensures that the 100% doesn't go outside of the `headerRowCell` width
|
|
95
97
|
box-sizing: border-box;
|
|
96
98
|
|
|
99
|
+
@include anchor-reset-pseudo-states;
|
|
100
|
+
|
|
97
101
|
&:focus-visible {
|
|
98
102
|
outline: none;
|
|
99
103
|
position: relative;
|
|
@@ -161,8 +165,12 @@ $row-height-data-variant: 48px;
|
|
|
161
165
|
|
|
162
166
|
.card {
|
|
163
167
|
@include button-reset;
|
|
168
|
+
// These css properties are required for when the rows are anchor elements
|
|
169
|
+
@include anchor-reset;
|
|
164
170
|
|
|
165
|
-
|
|
171
|
+
// This is an optical hack to stop the card shadow from overlapping over
|
|
172
|
+
// the proceeding cards
|
|
173
|
+
box-shadow: 0 4px 6px rgba(53, 55, 74, 0.04);
|
|
166
174
|
border: solid 1px rgba($color-purple-700-rgb, 0.1);
|
|
167
175
|
transition:
|
|
168
176
|
box-shadow $animation-duration-rapid,
|
|
@@ -170,13 +178,9 @@ $row-height-data-variant: 48px;
|
|
|
170
178
|
margin $animation-duration-rapid,
|
|
171
179
|
padding $animation-duration-rapid,
|
|
172
180
|
width $animation-duration-rapid;
|
|
181
|
+
background: $color-white;
|
|
173
182
|
|
|
174
|
-
|
|
175
|
-
// the proceeding cards
|
|
176
|
-
box-shadow: 0 4px 6px rgba(53, 55, 74, 0.04);
|
|
177
|
-
|
|
178
|
-
// These css properties are required for when the rows are anchor elements
|
|
179
|
-
@include anchor-reset;
|
|
183
|
+
@include anchor-reset-pseudo-states;
|
|
180
184
|
|
|
181
185
|
&:not(:first-child) {
|
|
182
186
|
margin-top: -1px;
|
package/src/Table/Table.tsx
CHANGED
|
@@ -2,11 +2,7 @@ import React, { cloneElement, HTMLAttributes, ReactElement } from "react"
|
|
|
2
2
|
import classnames from "classnames"
|
|
3
3
|
import { Checkbox, CheckedStatus } from "~components/Checkbox"
|
|
4
4
|
import { Heading } from "~components/Heading"
|
|
5
|
-
import {
|
|
6
|
-
ExclamationIcon,
|
|
7
|
-
SortAscendingIcon,
|
|
8
|
-
SortDescendingIcon,
|
|
9
|
-
} from "~components/Icon"
|
|
5
|
+
import { Icon } from "~components/__future__/Icon"
|
|
10
6
|
import { Tooltip } from "~components/__overlays__/Tooltip/v1"
|
|
11
7
|
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
12
8
|
import styles from "./Table.module.scss"
|
|
@@ -169,7 +165,7 @@ export const TableHeaderRowCell = ({
|
|
|
169
165
|
)}
|
|
170
166
|
{tooltipInfo != null && !isTooltipIconHidden ? (
|
|
171
167
|
<div className={styles.headerRowCellTooltipIcon}>
|
|
172
|
-
<
|
|
168
|
+
<Icon name="error" isPresentational isFilled />
|
|
173
169
|
</div>
|
|
174
170
|
) : null}
|
|
175
171
|
{/* If an "icon" is supplied, the label is displayed inside the icon aria title instead */}
|
|
@@ -192,9 +188,9 @@ export const TableHeaderRowCell = ({
|
|
|
192
188
|
)}
|
|
193
189
|
>
|
|
194
190
|
{sorting === "ascending" || sortingArrowsOnHover === "ascending" ? (
|
|
195
|
-
<
|
|
191
|
+
<Icon name="arrow_drop_up" isPresentational />
|
|
196
192
|
) : (
|
|
197
|
-
<
|
|
193
|
+
<Icon name="arrow_drop_down" isPresentational />
|
|
198
194
|
)}
|
|
199
195
|
</div>
|
|
200
196
|
)}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { action } from "@storybook/addon-actions"
|
|
3
3
|
import { Meta, StoryObj } from "@storybook/react"
|
|
4
|
-
import { EffectivenessIcon } from "~components/Icon"
|
|
5
4
|
import { Text } from "~components/Text"
|
|
5
|
+
import { Icon } from "~components/__future__/Icon"
|
|
6
6
|
import { StickerSheetStory } from "~storybook/components/StickerSheet"
|
|
7
7
|
import {
|
|
8
8
|
TableCard,
|
|
@@ -178,7 +178,7 @@ const TableTemplate: StoryObj<StickerSheetStory> = {
|
|
|
178
178
|
width={4 / 12}
|
|
179
179
|
sorting="descending"
|
|
180
180
|
onClick={action("header 1")}
|
|
181
|
-
icon={<
|
|
181
|
+
icon={<Icon name="potted_plant" alt="Focus" isFilled />}
|
|
182
182
|
/>
|
|
183
183
|
<TableHeaderRowCell
|
|
184
184
|
reversed={isReversed}
|
|
@@ -187,7 +187,7 @@ const TableTemplate: StoryObj<StickerSheetStory> = {
|
|
|
187
187
|
sorting="ascending"
|
|
188
188
|
onClick={action("header 3")}
|
|
189
189
|
data-sb-pseudo-styles="hover"
|
|
190
|
-
icon={<
|
|
190
|
+
icon={<Icon name="potted_plant" alt="Focus" isFilled />}
|
|
191
191
|
/>
|
|
192
192
|
<TableHeaderRowCell
|
|
193
193
|
reversed={isReversed}
|
|
@@ -196,7 +196,7 @@ const TableTemplate: StoryObj<StickerSheetStory> = {
|
|
|
196
196
|
sorting="ascending"
|
|
197
197
|
onClick={action("header 2")}
|
|
198
198
|
data-sb-pseudo-styles="focus-visible"
|
|
199
|
-
icon={<
|
|
199
|
+
icon={<Icon name="potted_plant" alt="Focus" isFilled />}
|
|
200
200
|
/>
|
|
201
201
|
</TableRow>
|
|
202
202
|
</TableHeader>
|
|
@@ -3,8 +3,8 @@ import { action } from "@storybook/addon-actions"
|
|
|
3
3
|
import { Meta, StoryObj } from "@storybook/react"
|
|
4
4
|
import { Checkbox } from "~components/Checkbox"
|
|
5
5
|
import { Divider } from "~components/Divider"
|
|
6
|
-
import { EffectivenessIcon } from "~components/Icon"
|
|
7
6
|
import { Text } from "~components/Text"
|
|
7
|
+
import { Icon } from "~components/__future__/Icon"
|
|
8
8
|
import {
|
|
9
9
|
TableCard,
|
|
10
10
|
TableCardProps,
|
|
@@ -331,12 +331,12 @@ export const IconVariant: StoryObj<TableStoryProps> = {
|
|
|
331
331
|
args: {
|
|
332
332
|
headerRowCells: [
|
|
333
333
|
{
|
|
334
|
-
icon: <
|
|
334
|
+
icon: <Icon name="potted_plant" isPresentational isFilled />,
|
|
335
335
|
labelText: "Resource name",
|
|
336
336
|
width: 3 / 12,
|
|
337
337
|
},
|
|
338
338
|
{
|
|
339
|
-
icon: <
|
|
339
|
+
icon: <Icon name="potted_plant" isPresentational isFilled />,
|
|
340
340
|
labelText: "Supplementary information",
|
|
341
341
|
width: 3 / 12,
|
|
342
342
|
},
|
package/src/Tag/Tag.module.scss
CHANGED
package/src/Tag/Tag.tsx
CHANGED
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
3
|
import { Avatar, AvatarProps } from "~components/Avatar"
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
ClearIcon,
|
|
7
|
-
ExclamationIcon,
|
|
8
|
-
InformationIcon,
|
|
9
|
-
LiveIcon,
|
|
10
|
-
SuccessIcon,
|
|
11
|
-
} from "~components/Icon"
|
|
4
|
+
import { LiveIcon } from "~components/Icon"
|
|
5
|
+
import { Icon } from "~components/__future__/Icon"
|
|
12
6
|
import { TagVariants } from "./types"
|
|
13
7
|
import styles from "./Tag.module.scss"
|
|
14
8
|
|
|
@@ -85,25 +79,25 @@ export const Tag = (props: TagProps): JSX.Element => {
|
|
|
85
79
|
case "validationPositive":
|
|
86
80
|
return (
|
|
87
81
|
<span className={styles.validationIcon}>
|
|
88
|
-
<
|
|
82
|
+
<Icon name="check_circle" isPresentational isFilled />
|
|
89
83
|
</span>
|
|
90
84
|
)
|
|
91
85
|
case "validationNegative":
|
|
92
86
|
return (
|
|
93
87
|
<span className={styles.validationIcon}>
|
|
94
|
-
<
|
|
88
|
+
<Icon name="error" isPresentational isFilled />
|
|
95
89
|
</span>
|
|
96
90
|
)
|
|
97
91
|
case "validationCautionary":
|
|
98
92
|
return (
|
|
99
93
|
<span className={styles.validationIcon}>
|
|
100
|
-
<
|
|
94
|
+
<Icon name="warning" isPresentational isFilled />
|
|
101
95
|
</span>
|
|
102
96
|
)
|
|
103
97
|
case "validationInformative":
|
|
104
98
|
return (
|
|
105
99
|
<span className={styles.validationIcon}>
|
|
106
|
-
<
|
|
100
|
+
<Icon name="info" isPresentational isFilled />
|
|
107
101
|
</span>
|
|
108
102
|
)
|
|
109
103
|
case "profile":
|
|
@@ -137,7 +131,7 @@ export const Tag = (props: TagProps): JSX.Element => {
|
|
|
137
131
|
onMouseLeave={onMouseLeave}
|
|
138
132
|
>
|
|
139
133
|
<div className={styles.iconWrapper}>
|
|
140
|
-
<
|
|
134
|
+
<Icon name="cancel" alt="Dismiss" isFilled />
|
|
141
135
|
</div>
|
|
142
136
|
</button>
|
|
143
137
|
</>
|