@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
|
@@ -4,9 +4,7 @@ var tslib = require('tslib');
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var classnames = require('classnames');
|
|
6
6
|
var reactFocusOn = require('react-focus-on');
|
|
7
|
-
require('../../Icon/
|
|
8
|
-
var ChevronDownIcon = require('../../Icon/ChevronDownIcon.cjs');
|
|
9
|
-
var ChevronUpIcon = require('../../Icon/ChevronUpIcon.cjs');
|
|
7
|
+
var Icon = require('../../__future__/Icon/Icon.cjs');
|
|
10
8
|
var constants = require('../constants.cjs');
|
|
11
9
|
var utils = require('../utils.cjs');
|
|
12
10
|
var TitleBlockMenuItem = require('./TitleBlockMenuItem.cjs');
|
|
@@ -200,10 +198,9 @@ var DrawerHandle = function (_a) {
|
|
|
200
198
|
"aria-expanded": isOpen
|
|
201
199
|
}, primaryAction.label, React__default.default.createElement("span", {
|
|
202
200
|
className: MobileActions_module.mobileActionsChevronSquare
|
|
203
|
-
},
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
role: "presentation"
|
|
201
|
+
}, React__default.default.createElement(Icon.Icon, {
|
|
202
|
+
name: isOpen ? "keyboard_arrow_down" : "keyboard_arrow_up",
|
|
203
|
+
isPresentational: true
|
|
207
204
|
}))));
|
|
208
205
|
}
|
|
209
206
|
// If the primary action is a button, or has no onClick/href/action
|
|
@@ -221,10 +218,9 @@ var DrawerHandle = function (_a) {
|
|
|
221
218
|
"aria-expanded": isOpen,
|
|
222
219
|
id: constants.TITLE_BLOCK_ZEN_OTHER_ACTIONS_HTML_ID,
|
|
223
220
|
"aria-label": "Other actions"
|
|
224
|
-
},
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
role: "presentation"
|
|
221
|
+
}, React__default.default.createElement(Icon.Icon, {
|
|
222
|
+
name: isOpen ? "keyboard_arrow_down" : "keyboard_arrow_up",
|
|
223
|
+
isPresentational: true
|
|
228
224
|
})));
|
|
229
225
|
}
|
|
230
226
|
// if there are default/secondary actions but no primary action
|
|
@@ -240,10 +236,9 @@ var DrawerHandle = function (_a) {
|
|
|
240
236
|
id: constants.TITLE_BLOCK_ZEN_OTHER_ACTIONS_HTML_ID
|
|
241
237
|
}, renderDrawerHandleLabel("Other actions"), React__default.default.createElement("span", {
|
|
242
238
|
className: MobileActions_module.mobileActionsChevronSquare
|
|
243
|
-
},
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
role: "presentation"
|
|
239
|
+
}, React__default.default.createElement(Icon.Icon, {
|
|
240
|
+
name: isOpen ? "keyboard_arrow_down" : "keyboard_arrow_up",
|
|
241
|
+
isPresentational: true
|
|
247
242
|
}))));
|
|
248
243
|
}
|
|
249
244
|
return null;
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
require('../../Icon/
|
|
6
|
-
var ChevronDownIcon = require('../../Icon/ChevronDownIcon.cjs');
|
|
7
|
-
var MeatballsIcon = require('../../Icon/MeatballsIcon.cjs');
|
|
5
|
+
var Icon = require('../../__future__/Icon/Icon.cjs');
|
|
8
6
|
var TitleBlockZen_module = require('../TitleBlockZen.module.scss.cjs');
|
|
9
7
|
var constants = require('../constants.cjs');
|
|
10
8
|
var TitleBlockMenuItem = require('./TitleBlockMenuItem.cjs');
|
|
@@ -26,8 +24,9 @@ var renderSecondaryOverflowMenu = function (secondaryOverflowMenuItems, reversed
|
|
|
26
24
|
button: React__default.default.createElement(IconButton.IconButton, {
|
|
27
25
|
label: "Open secondary menu",
|
|
28
26
|
reversed: reversed,
|
|
29
|
-
icon: React__default.default.createElement(
|
|
30
|
-
|
|
27
|
+
icon: React__default.default.createElement(Icon.Icon, {
|
|
28
|
+
name: "more_horiz",
|
|
29
|
+
isPresentational: true
|
|
31
30
|
}),
|
|
32
31
|
id: constants.TITLE_BLOCK_ZEN_SECONDARY_MENU_HTML_ID
|
|
33
32
|
})
|
|
@@ -57,8 +56,9 @@ var SecondaryActions = function (_a) {
|
|
|
57
56
|
secondary: true,
|
|
58
57
|
label: action.label,
|
|
59
58
|
reversed: reversed,
|
|
60
|
-
icon: React__default.default.createElement(
|
|
61
|
-
|
|
59
|
+
icon: React__default.default.createElement(Icon.Icon, {
|
|
60
|
+
name: "keyboard_arrow_down",
|
|
61
|
+
isPresentational: true
|
|
62
62
|
}),
|
|
63
63
|
iconPosition: "end"
|
|
64
64
|
})
|
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var classnames = require('classnames');
|
|
6
|
-
require('../../Icon/
|
|
7
|
-
var CheckIcon = require('../../Icon/CheckIcon.cjs');
|
|
6
|
+
var Icon = require('../../__future__/Icon/Icon.cjs');
|
|
8
7
|
var ToggleSwitch_module = require('./ToggleSwitch.module.scss.cjs');
|
|
9
8
|
function _interopDefault(e) {
|
|
10
9
|
return e && e.__esModule ? e : {
|
|
@@ -30,9 +29,10 @@ var ToggleSwitch = function (_a) {
|
|
|
30
29
|
className: ToggleSwitch_module.track
|
|
31
30
|
}, React__default.default.createElement("span", {
|
|
32
31
|
className: ToggleSwitch_module.thumb
|
|
33
|
-
}, React__default.default.createElement(
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
}, React__default.default.createElement(Icon.Icon, {
|
|
33
|
+
name: "check",
|
|
34
|
+
isPresentational: true,
|
|
35
|
+
className: ToggleSwitch_module.checkIcon
|
|
36
36
|
}))));
|
|
37
37
|
};
|
|
38
38
|
ToggleSwitch.displayName = "ToggleSwitch";
|
package/dist/cjs/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.cjs
CHANGED
|
@@ -3,11 +3,8 @@
|
|
|
3
3
|
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var classnames = require('classnames');
|
|
6
|
-
require('../../../../../Icon/subcomponents/SVG/SVG.cjs');
|
|
7
|
-
var IndicatorActiveIcon = require('../../../../../Icon/IndicatorActiveIcon.cjs');
|
|
8
|
-
var IndicatorInactiveIcon = require('../../../../../Icon/IndicatorInactiveIcon.cjs');
|
|
9
|
-
var SuccessIcon = require('../../../../../Icon/SuccessIcon.cjs');
|
|
10
6
|
var VisuallyHidden = require('../../../../../VisuallyHidden/VisuallyHidden.cjs');
|
|
7
|
+
var Icon = require('../../../../../__future__/Icon/Icon.cjs');
|
|
11
8
|
var ProgressStepper_module = require('./ProgressStepper.module.css.cjs');
|
|
12
9
|
function _interopDefault(e) {
|
|
13
10
|
return e && e.__esModule ? e : {
|
|
@@ -19,32 +16,30 @@ var classnames__default = /*#__PURE__*/_interopDefault(classnames);
|
|
|
19
16
|
var getStepStatus = function (isComplete, isCurrentStep, step, index) {
|
|
20
17
|
if (isComplete) {
|
|
21
18
|
return {
|
|
22
|
-
icon: React__default.default.createElement(
|
|
19
|
+
icon: React__default.default.createElement(Icon.Icon, {
|
|
23
20
|
key: index,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
name: "check_circle",
|
|
22
|
+
isPresentational: true,
|
|
23
|
+
isFilled: true
|
|
27
24
|
}),
|
|
28
25
|
accessibleName: "Completed: ".concat(step.label)
|
|
29
26
|
};
|
|
30
27
|
}
|
|
31
28
|
if (isCurrentStep) {
|
|
32
29
|
return {
|
|
33
|
-
icon: React__default.default.createElement(
|
|
30
|
+
icon: React__default.default.createElement(Icon.Icon, {
|
|
34
31
|
key: index,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
classNameOverride: "active"
|
|
32
|
+
name: "radio_button_checked",
|
|
33
|
+
isPresentational: true
|
|
38
34
|
}),
|
|
39
35
|
accessibleName: "Current: ".concat(step.label)
|
|
40
36
|
};
|
|
41
37
|
}
|
|
42
38
|
return {
|
|
43
|
-
icon: React__default.default.createElement(
|
|
39
|
+
icon: React__default.default.createElement(Icon.Icon, {
|
|
44
40
|
key: index,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
role: "presentation"
|
|
41
|
+
name: "radio_button_unchecked",
|
|
42
|
+
isPresentational: true
|
|
48
43
|
}),
|
|
49
44
|
accessibleName: "Not started: ".concat(step.label)
|
|
50
45
|
};
|
|
@@ -70,7 +65,7 @@ var ProgressStepper = function (_a) {
|
|
|
70
65
|
var isCompletedStep = index < currentStepIndex || isComplete;
|
|
71
66
|
var _c = getStepStatus(isCompletedStep, isCurrentStep, step, index),
|
|
72
67
|
accessibleName = _c.accessibleName,
|
|
73
|
-
|
|
68
|
+
icon = _c.icon;
|
|
74
69
|
return React__default.default.createElement("li", {
|
|
75
70
|
className: ProgressStepper_module.step,
|
|
76
71
|
key: "".concat(step.id),
|
|
@@ -84,7 +79,7 @@ var ProgressStepper = function (_a) {
|
|
|
84
79
|
className: ProgressStepper_module.stepIndicator
|
|
85
80
|
}, React__default.default.createElement("span", {
|
|
86
81
|
className: classnames__default.default(ProgressStepper_module.stepIcon, (_b = {}, _b[ProgressStepper_module.isCompleted] = isCompletedStep, _b))
|
|
87
|
-
},
|
|
82
|
+
}, icon)), index < steps.length - 1 && React__default.default.createElement("div", {
|
|
88
83
|
className: classnames__default.default([ProgressStepper_module.stepDivider, isCompletedStep && ProgressStepper_module.completedStep])
|
|
89
84
|
})));
|
|
90
85
|
})), React__default.default.createElement("span", {
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var tslib = require('tslib');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var classnames = require('classnames');
|
|
6
|
+
var constants = require('./constants.cjs');
|
|
7
|
+
var Icon_module = require('./Icon.module.css.cjs');
|
|
8
|
+
function _interopDefault(e) {
|
|
9
|
+
return e && e.__esModule ? e : {
|
|
10
|
+
default: e
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
14
|
+
var classnames__default = /*#__PURE__*/_interopDefault(classnames);
|
|
15
|
+
var MaterialIcon = function (_a) {
|
|
16
|
+
var children = _a.children,
|
|
17
|
+
isFilled = _a.isFilled,
|
|
18
|
+
isPresentational = _a.isPresentational,
|
|
19
|
+
alt = _a.alt,
|
|
20
|
+
className = _a.className,
|
|
21
|
+
restProps = tslib.__rest(_a, ["children", "isFilled", "isPresentational", "alt", "className"]);
|
|
22
|
+
return React__default.default.createElement("span", tslib.__assign({
|
|
23
|
+
className: classnames__default.default("material-symbols-outlined", Icon_module.icon, isFilled && Icon_module.filled, className),
|
|
24
|
+
"aria-hidden": isPresentational,
|
|
25
|
+
role: isPresentational ? undefined : "img",
|
|
26
|
+
"aria-label": alt
|
|
27
|
+
}, restProps), children);
|
|
28
|
+
};
|
|
29
|
+
var Icon = function (_a) {
|
|
30
|
+
var name = _a.name,
|
|
31
|
+
shouldMirrorInRTL = _a.shouldMirrorInRTL,
|
|
32
|
+
restProps = tslib.__rest(_a, ["name", "shouldMirrorInRTL"]);
|
|
33
|
+
if (!shouldMirrorInRTL) {
|
|
34
|
+
return React__default.default.createElement(MaterialIcon, tslib.__assign({}, restProps), name);
|
|
35
|
+
}
|
|
36
|
+
if (Object.keys(constants.handledRtlIcons).includes(name)) {
|
|
37
|
+
return React__default.default.createElement(MaterialIcon, tslib.__assign({}, restProps), React__default.default.createElement("span", {
|
|
38
|
+
className: Icon_module.iconLTR
|
|
39
|
+
}, name), React__default.default.createElement("span", {
|
|
40
|
+
className: Icon_module.iconRTL
|
|
41
|
+
}, constants.handledRtlIcons[name]));
|
|
42
|
+
}
|
|
43
|
+
return React__default.default.createElement(MaterialIcon, tslib.__assign({}, restProps, {
|
|
44
|
+
className: classnames__default.default(Icon_module.shouldMirrorInRTL, restProps.className)
|
|
45
|
+
}), name);
|
|
46
|
+
};
|
|
47
|
+
exports.Icon = Icon;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var styles = {
|
|
4
|
+
"icon": "Icon-module_icon__CkmHY",
|
|
5
|
+
"filled": "Icon-module_filled__-VArQ",
|
|
6
|
+
"shouldMirrorInRTL": "Icon-module_shouldMirrorInRTL__kxncF",
|
|
7
|
+
"iconLTR": "Icon-module_iconLTR__b3GoB",
|
|
8
|
+
"iconRTL": "Icon-module_iconRTL__lpVw5"
|
|
9
|
+
};
|
|
10
|
+
module.exports = styles;
|
|
@@ -4,7 +4,7 @@ var tslib = require('tslib');
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var listbox = require('@react-aria/listbox');
|
|
6
6
|
var classnames = require('classnames');
|
|
7
|
-
var useIsClientReady = require('../../../../__utilities__/
|
|
7
|
+
var useIsClientReady = require('../../../../__utilities__/useIsClientReady/useIsClientReady.cjs');
|
|
8
8
|
var SelectContext = require('../../context/SelectContext.cjs');
|
|
9
9
|
var ListBox_module = require('./ListBox.module.scss.cjs');
|
|
10
10
|
function _interopDefault(e) {
|
|
@@ -34,7 +34,7 @@ var safeQuerySelector = function (selector) {
|
|
|
34
34
|
return document.querySelector(selector);
|
|
35
35
|
} catch (error) {
|
|
36
36
|
// eslint-disable-next-line no-console
|
|
37
|
-
console.error("
|
|
37
|
+
console.error("Kaizen querySelector failed:", error);
|
|
38
38
|
return null;
|
|
39
39
|
}
|
|
40
40
|
};
|
|
@@ -48,7 +48,7 @@ var ListBox = function (_a) {
|
|
|
48
48
|
var ref = React.useRef(null);
|
|
49
49
|
var listBoxProps = listbox.useListBox(tslib.__assign(tslib.__assign({}, menuProps), {
|
|
50
50
|
disallowEmptySelection: true,
|
|
51
|
-
// This is to ensure that the listbox use React Aria's auto focus feature for Listbox, which creates a visual bug
|
|
51
|
+
// This is to ensure that the listbox doesn't use React Aria's auto focus feature for Listbox, which creates a visual bug
|
|
52
52
|
autoFocus: false
|
|
53
53
|
}), state, ref).listBoxProps;
|
|
54
54
|
/**
|
|
@@ -67,13 +67,10 @@ var ListBox = function (_a) {
|
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
}, [isClientReady]);
|
|
70
|
-
return (
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
className: classnames__default.default(ListBox_module.listBox, classNameOverride)
|
|
75
|
-
}, listBoxProps, restProps), children)
|
|
76
|
-
);
|
|
70
|
+
return React__default.default.createElement("ul", tslib.__assign({
|
|
71
|
+
ref: ref,
|
|
72
|
+
className: classnames__default.default(ListBox_module.listBox, classNameOverride)
|
|
73
|
+
}, listBoxProps, restProps), children);
|
|
77
74
|
};
|
|
78
75
|
ListBox.displayName = "ListBox";
|
|
79
76
|
exports.ListBox = ListBox;
|
|
@@ -4,8 +4,7 @@ var tslib = require('tslib');
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var classnames = require('classnames');
|
|
6
6
|
var reactAria = require('react-aria');
|
|
7
|
-
require('
|
|
8
|
-
var CheckIcon = require('../../../../Icon/CheckIcon.cjs');
|
|
7
|
+
var Icon = require('../../../Icon/Icon.cjs');
|
|
9
8
|
var SelectContext = require('../../context/SelectContext.cjs');
|
|
10
9
|
var Option_module = require('./Option.module.scss.cjs');
|
|
11
10
|
function _interopDefault(e) {
|
|
@@ -50,9 +49,9 @@ var Option = function (_a) {
|
|
|
50
49
|
"aria-label": item.textValue
|
|
51
50
|
}), item.rendered, React__default.default.createElement("span", {
|
|
52
51
|
className: classnames__default.default(Option_module.icon, isSelected && Option_module.isSelected)
|
|
53
|
-
}, isSelected && React__default.default.createElement(
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
}, isSelected && React__default.default.createElement(Icon.Icon, {
|
|
53
|
+
name: "check",
|
|
54
|
+
isPresentational: true
|
|
56
55
|
})));
|
|
57
56
|
};
|
|
58
57
|
Option.displayName = "Option";
|
|
@@ -3,10 +3,8 @@
|
|
|
3
3
|
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var classnames = require('classnames');
|
|
6
|
-
require('../../../../Icon/subcomponents/SVG/SVG.cjs');
|
|
7
|
-
var ChevronDownIcon = require('../../../../Icon/ChevronDownIcon.cjs');
|
|
8
|
-
var ChevronUpIcon = require('../../../../Icon/ChevronUpIcon.cjs');
|
|
9
6
|
var Label = require('../../../../Label/Label.cjs');
|
|
7
|
+
var Icon = require('../../../Icon/Icon.cjs');
|
|
10
8
|
var SelectToggle_module = require('./SelectToggle.module.scss.cjs');
|
|
11
9
|
function _interopDefault(e) {
|
|
12
10
|
return e && e.__esModule ? e : {
|
|
@@ -41,12 +39,10 @@ var SelectToggle = React__default.default.forwardRef(function (_a, ref) {
|
|
|
41
39
|
className: classnames__default.default(SelectToggle_module.selectToggle, (value === null || value === undefined) && SelectToggle_module.placeholder, status === "error" && SelectToggle_module.error, status === "caution" && SelectToggle_module.caution, isDisabled && SelectToggle_module.disabled, isReversed && SelectToggle_module.reversed, classNameOverride)
|
|
42
40
|
}), React__default.default.createElement("span", tslib.__assign({}, valueProps, {
|
|
43
41
|
className: SelectToggle_module.value
|
|
44
|
-
}), value !== null && value !== void 0 ? value : placeholder),
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
role: "presentation",
|
|
49
|
-
classNameOverride: SelectToggle_module.icon
|
|
42
|
+
}), value !== null && value !== void 0 ? value : placeholder), React__default.default.createElement(Icon.Icon, {
|
|
43
|
+
name: isOpen ? "keyboard_arrow_up" : "keyboard_arrow_down",
|
|
44
|
+
isPresentational: true,
|
|
45
|
+
className: SelectToggle_module.icon
|
|
50
46
|
})));
|
|
51
47
|
});
|
|
52
48
|
SelectToggle.displayName = "SelectToggle";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var tslib = require('tslib');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var reactAriaComponents = require('react-aria-components');
|
|
6
|
+
function _interopDefault(e) {
|
|
7
|
+
return e && e.__esModule ? e : {
|
|
8
|
+
default: e
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3081929117/Tabs Guidance} |
|
|
15
|
+
* {@link https://cultureamp.design/?path=/docs/components-tabs--controlled Storybook}
|
|
16
|
+
*
|
|
17
|
+
* Wrapper around all of the tab subcomponents
|
|
18
|
+
* Holds a TabList and TabPanels
|
|
19
|
+
*/
|
|
20
|
+
var Tabs = function (props) {
|
|
21
|
+
return React__default.default.createElement(reactAriaComponents.Tabs, tslib.__assign({}, props));
|
|
22
|
+
};
|
|
23
|
+
exports.Tabs = Tabs;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var tslib = require('tslib');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var classnames = require('classnames');
|
|
6
|
+
var reactAriaComponents = require('react-aria-components');
|
|
7
|
+
var Badge = require('../../../../Badge/Badge.cjs');
|
|
8
|
+
var Tab_module = require('./Tab.module.css.cjs');
|
|
9
|
+
function _interopDefault(e) {
|
|
10
|
+
return e && e.__esModule ? e : {
|
|
11
|
+
default: e
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
15
|
+
var classnames__default = /*#__PURE__*/_interopDefault(classnames);
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* A tab button
|
|
19
|
+
*/
|
|
20
|
+
var Tab = function (props) {
|
|
21
|
+
var badge = props.badge,
|
|
22
|
+
children = props.children,
|
|
23
|
+
className = props.className,
|
|
24
|
+
restProps = tslib.__rest(props, ["badge", "children", "className"]);
|
|
25
|
+
var tabProps = tslib.__assign({
|
|
26
|
+
className: classnames__default.default(Tab_module.tab, className)
|
|
27
|
+
}, restProps);
|
|
28
|
+
return React__default.default.createElement(reactAriaComponents.Tab, tslib.__assign({}, tabProps), function (_a) {
|
|
29
|
+
var isSelected = _a.isSelected,
|
|
30
|
+
isFocusVisible = _a.isFocusVisible,
|
|
31
|
+
isHovered = _a.isHovered;
|
|
32
|
+
return React__default.default.createElement(React__default.default.Fragment, null, children, badge && React__default.default.createElement("span", {
|
|
33
|
+
className: Tab_module.badge
|
|
34
|
+
}, React__default.default.createElement(Badge.Badge, {
|
|
35
|
+
variant: isSelected || isFocusVisible || isHovered ? "active" : "default"
|
|
36
|
+
}, badge)));
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
exports.Tab = Tab;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var tslib = require('tslib');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var classnames = require('classnames');
|
|
6
|
+
var reactAriaComponents = require('react-aria-components');
|
|
7
|
+
var TabList_module = require('./TabList.module.css.cjs');
|
|
8
|
+
function _interopDefault(e) {
|
|
9
|
+
return e && e.__esModule ? e : {
|
|
10
|
+
default: e
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
14
|
+
var classnames__default = /*#__PURE__*/_interopDefault(classnames);
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Wrapper for the tabs themselves
|
|
18
|
+
*/
|
|
19
|
+
var TabList = function (props) {
|
|
20
|
+
var ariaLabel = props["aria-label"],
|
|
21
|
+
_a = props.noPadding,
|
|
22
|
+
noPadding = _a === void 0 ? false : _a,
|
|
23
|
+
children = props.children,
|
|
24
|
+
className = props.className,
|
|
25
|
+
restProps = tslib.__rest(props, ["aria-label", "noPadding", "children", "className"]);
|
|
26
|
+
return React__default.default.createElement(reactAriaComponents.TabList, tslib.__assign({
|
|
27
|
+
"aria-label": ariaLabel,
|
|
28
|
+
className: classnames__default.default(TabList_module.tabList, className, noPadding && TabList_module.noPadding)
|
|
29
|
+
}, restProps), children);
|
|
30
|
+
};
|
|
31
|
+
exports.TabList = TabList;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var tslib = require('tslib');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var reactAriaComponents = require('react-aria-components');
|
|
6
|
+
function _interopDefault(e) {
|
|
7
|
+
return e && e.__esModule ? e : {
|
|
8
|
+
default: e
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Wrapper for the content that shows when tab is active
|
|
15
|
+
*/
|
|
16
|
+
var TabPanel = function (props) {
|
|
17
|
+
var className = props.className,
|
|
18
|
+
children = props.children,
|
|
19
|
+
restProps = tslib.__rest(props, ["className", "children"]);
|
|
20
|
+
return React__default.default.createElement(reactAriaComponents.TabPanel, tslib.__assign({
|
|
21
|
+
className: className
|
|
22
|
+
}, restProps), children);
|
|
23
|
+
};
|
|
24
|
+
exports.TabPanel = TabPanel;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var classnames = require('classnames');
|
|
6
|
-
var
|
|
6
|
+
var Icon = require('../../../Icon/Icon.cjs');
|
|
7
7
|
var RemoveButton_module = require('./RemoveButton.module.scss.cjs');
|
|
8
8
|
function _interopDefault(e) {
|
|
9
9
|
return e && e.__esModule ? e : {
|
|
@@ -23,8 +23,9 @@ var RemoveButton = function (_a) {
|
|
|
23
23
|
"aria-label": ariaLabel,
|
|
24
24
|
className: classnames__default.default(RemoveButton_module.removeButton, classNameOverride),
|
|
25
25
|
onClick: onClick
|
|
26
|
-
}, restProps), React__default.default.createElement(
|
|
27
|
-
|
|
26
|
+
}, restProps), React__default.default.createElement(Icon.Icon, {
|
|
27
|
+
name: "close",
|
|
28
|
+
isPresentational: true
|
|
28
29
|
}));
|
|
29
30
|
};
|
|
30
31
|
RemoveButton.displayName = "RemoveButton";
|
package/dist/cjs/future.cjs
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var Icon = require('./__future__/Icon/Icon.cjs');
|
|
3
4
|
var Select = require('./__future__/Select/Select.cjs');
|
|
4
5
|
var RemovableTag = require('./__future__/Tag/RemovableTag/RemovableTag.cjs');
|
|
5
6
|
var Tag = require('./__future__/Tag/Tag/Tag.cjs');
|
|
7
|
+
var Tabs = require('./__future__/Tabs/Tabs.cjs');
|
|
8
|
+
var Tab = require('./__future__/Tabs/subcomponents/Tab/Tab.cjs');
|
|
9
|
+
var TabList = require('./__future__/Tabs/subcomponents/TabList/TabList.cjs');
|
|
10
|
+
var TabPanel = require('./__future__/Tabs/subcomponents/TabPanel/TabPanel.cjs');
|
|
11
|
+
exports.Icon = Icon.Icon;
|
|
6
12
|
exports.Select = Select.Select;
|
|
7
13
|
exports.RemovableTag = RemovableTag.RemovableTag;
|
|
8
14
|
exports.Tag = Tag.Tag;
|
|
15
|
+
exports.Tabs = Tabs.Tabs;
|
|
16
|
+
exports.Tab = Tab.Tab;
|
|
17
|
+
exports.TabList = TabList.TabList;
|
|
18
|
+
exports.TabPanel = TabPanel.TabPanel;
|
|
@@ -2,8 +2,7 @@ import { __rest, __assign } from 'tslib';
|
|
|
2
2
|
import React, { useState, useRef, useEffect } from 'react';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
4
|
import { Textfit } from 'react-textfit';
|
|
5
|
-
import '../Icon/
|
|
6
|
-
import { UserIcon } from '../Icon/UserIcon.mjs';
|
|
5
|
+
import { Icon } from '../__future__/Icon/Icon.mjs';
|
|
7
6
|
import styles from './Avatar.module.scss.mjs';
|
|
8
7
|
var getInitials = function (fullName, max2Characters) {
|
|
9
8
|
if (max2Characters === void 0) {
|
|
@@ -19,17 +18,21 @@ var getMaxFontSizePixels = function (size) {
|
|
|
19
18
|
if (size === "xlarge" || size === "xxlarge") return 34;
|
|
20
19
|
return 22;
|
|
21
20
|
};
|
|
22
|
-
var
|
|
21
|
+
var FallbackIcon = function (_a) {
|
|
22
|
+
var alt = _a.alt;
|
|
23
23
|
if (alt) {
|
|
24
|
-
return /*#__PURE__*/React.createElement(
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
return /*#__PURE__*/React.createElement(Icon, {
|
|
25
|
+
name: "person",
|
|
26
|
+
alt: alt,
|
|
27
|
+
isFilled: true,
|
|
28
|
+
className: styles.fallbackIcon
|
|
28
29
|
});
|
|
29
30
|
}
|
|
30
|
-
return /*#__PURE__*/React.createElement(
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
return /*#__PURE__*/React.createElement(Icon, {
|
|
32
|
+
name: "person",
|
|
33
|
+
isPresentational: true,
|
|
34
|
+
isFilled: true,
|
|
35
|
+
className: styles.fallbackIcon
|
|
33
36
|
});
|
|
34
37
|
};
|
|
35
38
|
var renderInitials = function (fullName, alt, size, disableInitials) {
|
|
@@ -42,9 +45,9 @@ var renderInitials = function (fullName, alt, size, disableInitials) {
|
|
|
42
45
|
var initials = getInitials(fullName);
|
|
43
46
|
var isLongName = initials.length > 2 && size !== "small";
|
|
44
47
|
var renderFallback = disableInitials || initials === "";
|
|
45
|
-
return renderFallback ? ( /*#__PURE__*/React.createElement(
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
+
return renderFallback ? ( /*#__PURE__*/React.createElement(FallbackIcon, {
|
|
49
|
+
alt: alt
|
|
50
|
+
})) : ( /*#__PURE__*/React.createElement("abbr", {
|
|
48
51
|
className: classnames(styles.initials, isLongName && styles.longName),
|
|
49
52
|
title: alt
|
|
50
53
|
}, isLongName ? (
|
|
@@ -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';
|
|
@@ -48,13 +46,17 @@ const CalendarRange = /*#__PURE__*/function () {
|
|
|
48
46
|
classNames: classNames,
|
|
49
47
|
components: {
|
|
50
48
|
IconRight: function () {
|
|
51
|
-
return /*#__PURE__*/React.createElement(
|
|
52
|
-
|
|
49
|
+
return /*#__PURE__*/React.createElement(Icon, {
|
|
50
|
+
name: "arrow_forward",
|
|
51
|
+
isPresentational: true,
|
|
52
|
+
shouldMirrorInRTL: true
|
|
53
53
|
});
|
|
54
54
|
},
|
|
55
55
|
IconLeft: function () {
|
|
56
|
-
return /*#__PURE__*/React.createElement(
|
|
57
|
-
|
|
56
|
+
return /*#__PURE__*/React.createElement(Icon, {
|
|
57
|
+
name: "arrow_back",
|
|
58
|
+
isPresentational: true,
|
|
59
|
+
shouldMirrorInRTL: true
|
|
58
60
|
});
|
|
59
61
|
}
|
|
60
62
|
},
|