@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
|
@@ -14,6 +14,8 @@ export type FilterBarContextValue<Value, ValuesMap extends FiltersValues = Recor
|
|
|
14
14
|
hideFilter: <Id extends keyof ValuesMap>(id: Id) => void;
|
|
15
15
|
getInactiveFilters: () => Array<FilterAttributes<ValuesMap>>;
|
|
16
16
|
clearAllFilters: () => void;
|
|
17
|
+
setFocus: <Id extends keyof ValuesMap>(id: Id | undefined) => void;
|
|
18
|
+
focusId?: keyof ValuesMap;
|
|
17
19
|
};
|
|
18
20
|
export declare const useFilterBarContext: <Value, Values extends FiltersValues = Record<string, Value>>() => FilterBarContextValue<Value, Values>;
|
|
19
21
|
export type FilterBarProviderProps<ValuesMap extends FiltersValues> = {
|
|
@@ -18,6 +18,9 @@ type Actions<ValuesMap extends FiltersValues> = {
|
|
|
18
18
|
} | {
|
|
19
19
|
type: "update_filter_labels";
|
|
20
20
|
data: Filters<ValuesMap>;
|
|
21
|
+
} | {
|
|
22
|
+
type: "set_focus";
|
|
23
|
+
id: keyof ValuesMap | undefined;
|
|
21
24
|
};
|
|
22
25
|
export declare const filterBarStateReducer: <ValuesMap extends FiltersValues>(state: FilterBarState<ValuesMap>, action: Actions<ValuesMap>) => FilterBarState<ValuesMap>;
|
|
23
26
|
export {};
|
|
@@ -24,5 +24,6 @@ export type FilterBarState<ValuesMap extends FiltersValues> = {
|
|
|
24
24
|
activeFilterIds: Set<keyof ValuesMap>;
|
|
25
25
|
values: Partial<ValuesMap>;
|
|
26
26
|
dependentFilterIds: Set<keyof ValuesMap>;
|
|
27
|
+
focusId?: keyof ValuesMap;
|
|
27
28
|
};
|
|
28
29
|
export type ActiveFiltersArray<ValuesMap extends FiltersValues> = Array<FilterAttributes<ValuesMap>>;
|
|
@@ -15,9 +15,10 @@ type SelectionProps = {
|
|
|
15
15
|
export type FilterMultiSelectProps = {
|
|
16
16
|
trigger: (value?: MenuTriggerProviderContextType) => React.ReactNode;
|
|
17
17
|
children: (value?: SelectionProviderContextType) => React.ReactNode;
|
|
18
|
+
triggerRef?: React.RefObject<HTMLButtonElement>;
|
|
18
19
|
} & Omit<MenuPopupProps, "children"> & Omit<MenuTriggerProviderProps, "children"> & SelectionProps;
|
|
19
20
|
export declare const FilterMultiSelect: {
|
|
20
|
-
({ trigger, children, isOpen, defaultOpen, onOpenChange, isLoading, loadingSkeleton, label, items, selectedKeys, defaultSelectedKeys, onSelectionChange, selectionMode, onSearchInputChange, }: FilterMultiSelectProps): JSX.Element;
|
|
21
|
+
({ trigger, children, isOpen, defaultOpen, onOpenChange, isLoading, loadingSkeleton, label, items, selectedKeys, defaultSelectedKeys, onSelectionChange, selectionMode, onSearchInputChange, triggerRef, }: FilterMultiSelectProps): JSX.Element;
|
|
21
22
|
displayName: string;
|
|
22
23
|
TriggerButton: {
|
|
23
24
|
({ selectedOptionLabels, label, classNameOverride, labelCharacterLimitBeforeTruncate, }: import("./subcomponents/Trigger").FilterTriggerButtonProps): JSX.Element;
|
package/dist/types/Filter/FilterMultiSelect/context/MenuTriggerProvider/MenuTriggerProvider.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export type MenuTriggerProviderProps = {
|
|
|
7
7
|
defaultOpen?: boolean;
|
|
8
8
|
onOpenChange?: (isOpen: boolean) => void;
|
|
9
9
|
children: React.ReactNode;
|
|
10
|
+
triggerRef?: React.RefObject<HTMLButtonElement>;
|
|
10
11
|
};
|
|
11
12
|
export type MenuTriggerProviderContextType = {
|
|
12
13
|
menuTriggerProps: HTMLAttributes<HTMLElement>;
|
|
@@ -15,6 +16,6 @@ export type MenuTriggerProviderContextType = {
|
|
|
15
16
|
menuTriggerState: MenuTriggerState;
|
|
16
17
|
buttonRef: React.RefObject<HTMLButtonElement>;
|
|
17
18
|
};
|
|
18
|
-
export declare function MenuTriggerProvider({ isOpen, defaultOpen, onOpenChange, children, }: MenuTriggerProviderProps): JSX.Element;
|
|
19
|
+
export declare function MenuTriggerProvider({ isOpen, defaultOpen, onOpenChange, children, triggerRef, }: MenuTriggerProviderProps): JSX.Element;
|
|
19
20
|
export declare const useMenuTriggerContext: () => MenuTriggerProviderContextType;
|
|
20
21
|
export declare const MenuTriggerConsumer: ({ children, }: React.ConsumerProps<MenuTriggerProviderContextType>) => JSX.Element;
|
|
@@ -3,9 +3,9 @@ import { OverrideClassName } from "../../types/OverrideClassName";
|
|
|
3
3
|
export type LoadingSpinnerProps = {
|
|
4
4
|
accessibilityLabel: string;
|
|
5
5
|
/**
|
|
6
|
-
* Generally use "md" unless spinner is inside a form field
|
|
6
|
+
* Generally use "md" unless spinner is inside a form field. @default "md"
|
|
7
7
|
*/
|
|
8
|
-
size?: "sm" | "md";
|
|
8
|
+
size?: "xs" | "sm" | "md";
|
|
9
9
|
} & OverrideClassName<Omit<HTMLAttributes<HTMLDivElement>, "children">>;
|
|
10
10
|
/**
|
|
11
11
|
* {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082093253/Loading+Spinner Guidance} |
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./SpinnerIcon";
|
|
@@ -3,6 +3,10 @@ import { OverrideClassName } from "../types/OverrideClassName";
|
|
|
3
3
|
export type TextAreaProps = {
|
|
4
4
|
textAreaRef?: React.RefObject<HTMLTextAreaElement>;
|
|
5
5
|
status?: "default" | "error" | "caution";
|
|
6
|
+
/**
|
|
7
|
+
* Grows the input height as more content is added
|
|
8
|
+
* Replace with CSS field-sizing once it's supported by all major browsers
|
|
9
|
+
*/
|
|
6
10
|
autogrow?: boolean;
|
|
7
11
|
reversed?: boolean;
|
|
8
12
|
/**
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { HTMLAttributes } from "react";
|
|
2
|
+
import { StringSuggestions } from "../../types/StringSuggestions";
|
|
3
|
+
import { IconNames } from "./types";
|
|
4
|
+
type PresentationalIcon = {
|
|
5
|
+
isPresentational: true;
|
|
6
|
+
alt?: never;
|
|
7
|
+
};
|
|
8
|
+
type MeaningfulIcon = {
|
|
9
|
+
isPresentational?: false;
|
|
10
|
+
alt: string;
|
|
11
|
+
};
|
|
12
|
+
type BaseIconProps = {
|
|
13
|
+
isFilled?: boolean;
|
|
14
|
+
} & HTMLAttributes<HTMLSpanElement> & (PresentationalIcon | MeaningfulIcon);
|
|
15
|
+
export type IconProps = BaseIconProps & {
|
|
16
|
+
/** Options available at https://fonts.google.com/icons */
|
|
17
|
+
name: StringSuggestions<IconNames>;
|
|
18
|
+
shouldMirrorInRTL?: boolean;
|
|
19
|
+
};
|
|
20
|
+
export declare const Icon: ({ name, shouldMirrorInRTL, ...restProps }: IconProps) => JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const handledRtlIcons: {
|
|
2
|
+
checklist: "checklist_rtl";
|
|
3
|
+
format_list_numbered: "format_list_numbered_rtl";
|
|
4
|
+
};
|
|
5
|
+
export declare const iconDefaultSet: ("add" | "add_a_photo" | "add_comment" | "add_link" | "arrow_back" | "arrow_downward" | "arrow_drop_down" | "arrow_drop_up" | "arrow_forward" | "arrow_upward" | "assignment" | "assignment_add" | "assignment_ind" | "assignment_returned" | "assignment_turned_in" | "backup" | "bar_chart" | "bookmark" | "brush" | "build" | "cached" | "cancel" | "chat_apps_script" | "chat_error" | "chat_paste_go" | "check" | "check_circle" | "chevron_left" | "chevron_right" | "close" | "close_fullscreen" | "cloud_download" | "comment_bank" | "content_copy" | "dashboard" | "date_range" | "delete" | "domain" | "draft" | "drag_indicator" | "edit" | "error" | "event" | "favorite" | "find_in_page" | "flag" | "flash_on" | "format_bold" | "format_indent_decrease" | "format_indent_increase" | "format_italic" | "format_list_bulleted" | "format_list_numbered" | "format_underlined" | "forum" | "forward" | "front_hand" | "grade" | "group" | "groups" | "help" | "history" | "home" | "horizontal_rule" | "info" | "key" | "keyboard_arrow_down" | "keyboard_arrow_up" | "keyboard_tab" | "keyboard_tab_rtl" | "label" | "lan" | "lightbulb" | "link_off" | "list" | "local_fire_department" | "lock" | "logout" | "mail" | "manage_accounts" | "menu" | "mms" | "more_horiz" | "more_vert" | "north_east" | "note_alt" | "notifications_active" | "open_in_full" | "open_in_new" | "pause" | "percent" | "person" | "person_add" | "person_cancel" | "person_check" | "play_circle" | "playlist_add_check" | "potted_plant" | "power" | "power_settings_new" | "print" | "privacy_tip" | "psychology_alt" | "radio_button_checked" | "radio_button_unchecked" | "rate_review" | "redo" | "reduce_capacity" | "refresh" | "remove" | "reviews" | "schedule" | "school" | "search" | "send" | "sensors" | "sentiment_dissatisfied" | "sentiment_neutral" | "sentiment_satisfied" | "sentiment_very_satisfied" | "settings" | "sms" | "south_east" | "star" | "support" | "thumb_down" | "thumb_up" | "today" | "translate" | "tune" | "undo" | "user_attributes" | "visibility" | "visibility_off" | "warning" | "zoom_in" | "zoom_out" | "auto_awesome")[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Icon";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TabsProps as RACTabsProps, Key as RACKey } from "react-aria-components";
|
|
2
|
+
export type TabsProps = Omit<RACTabsProps, "orientation">;
|
|
3
|
+
export type Key = RACKey;
|
|
4
|
+
/**
|
|
5
|
+
* {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3081929117/Tabs Guidance} |
|
|
6
|
+
* {@link https://cultureamp.design/?path=/docs/components-tabs--controlled Storybook}
|
|
7
|
+
*
|
|
8
|
+
* Wrapper around all of the tab subcomponents
|
|
9
|
+
* Holds a TabList and TabPanels
|
|
10
|
+
*/
|
|
11
|
+
export declare const Tabs: (props: TabsProps) => JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TabProps as RACTabProps } from "react-aria-components";
|
|
2
|
+
export type TabProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Adds a Kaizen Badge component to the tab.
|
|
5
|
+
* Comes with some logic baked in - changes variant based on active/focus/hover state.
|
|
6
|
+
*/
|
|
7
|
+
badge?: string;
|
|
8
|
+
} & Omit<RACTabProps, "href" | "hrefLang" | "target" | "rel" | "download" | "ping" | "referrerPolicy">;
|
|
9
|
+
/**
|
|
10
|
+
* A tab button
|
|
11
|
+
*/
|
|
12
|
+
export declare const Tab: (props: TabProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Tab";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { TabListProps as RACTabListProps } from "react-aria-components";
|
|
3
|
+
export type TabListProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Accessible name for the set of tabs
|
|
6
|
+
*/
|
|
7
|
+
"aria-label": string;
|
|
8
|
+
/**
|
|
9
|
+
* Removes the built in padding
|
|
10
|
+
*/
|
|
11
|
+
noPadding?: boolean;
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
} & RACTabListProps<HTMLElement>;
|
|
14
|
+
/**
|
|
15
|
+
* Wrapper for the tabs themselves
|
|
16
|
+
*/
|
|
17
|
+
export declare const TabList: (props: TabListProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./TabList";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./TabPanel";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kaizen/components",
|
|
3
|
-
"version": "0.0.0-canary-
|
|
3
|
+
"version": "0.0.0-canary-tsx-codemod-20241029235345",
|
|
4
4
|
"description": "Kaizen component library",
|
|
5
5
|
"author": "Geoffrey Chong <geoff.chong@cultureamp.com>",
|
|
6
6
|
"homepage": "https://cultureamp.design",
|
|
@@ -36,61 +36,60 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@floating-ui/react-dom": "^2.1.2",
|
|
38
38
|
"@headlessui/react": "<=1.5.0",
|
|
39
|
-
"@internationalized/date": "^3.5.
|
|
39
|
+
"@internationalized/date": "^3.5.6",
|
|
40
40
|
"@popperjs/core": "^2.11.8",
|
|
41
41
|
"@reach/tabs": "^0.18.0",
|
|
42
|
-
"@react-aria/button": "^3.
|
|
43
|
-
"@react-aria/datepicker": "^3.11.
|
|
44
|
-
"@react-aria/focus": "^3.18.
|
|
45
|
-
"@react-aria/i18n": "^3.12.
|
|
46
|
-
"@react-aria/listbox": "^3.13.
|
|
47
|
-
"@react-aria/menu": "^3.15.
|
|
48
|
-
"@react-aria/overlays": "^3.23.
|
|
49
|
-
"@react-aria/select": "^3.14.
|
|
50
|
-
"@react-aria/utils": "^3.25.
|
|
51
|
-
"@react-stately/collections": "^3.
|
|
52
|
-
"@react-stately/datepicker": "^3.10.
|
|
53
|
-
"@react-stately/list": "^3.
|
|
54
|
-
"@react-stately/menu": "^3.8.
|
|
55
|
-
"@react-stately/select": "^3.6.
|
|
56
|
-
"@react-types/shared": "^3.
|
|
42
|
+
"@react-aria/button": "^3.10.1",
|
|
43
|
+
"@react-aria/datepicker": "^3.11.4",
|
|
44
|
+
"@react-aria/focus": "^3.18.4",
|
|
45
|
+
"@react-aria/i18n": "^3.12.3",
|
|
46
|
+
"@react-aria/listbox": "^3.13.5",
|
|
47
|
+
"@react-aria/menu": "^3.15.5",
|
|
48
|
+
"@react-aria/overlays": "^3.23.4",
|
|
49
|
+
"@react-aria/select": "^3.14.11",
|
|
50
|
+
"@react-aria/utils": "^3.25.3",
|
|
51
|
+
"@react-stately/collections": "^3.11.0",
|
|
52
|
+
"@react-stately/datepicker": "^3.10.3",
|
|
53
|
+
"@react-stately/list": "^3.11.0",
|
|
54
|
+
"@react-stately/menu": "^3.8.3",
|
|
55
|
+
"@react-stately/select": "^3.6.8",
|
|
56
|
+
"@react-types/shared": "^3.25.0",
|
|
57
57
|
"classnames": "^2.5.1",
|
|
58
58
|
"date-fns": "^4.1.0",
|
|
59
59
|
"lodash.debounce": "^4.0.8",
|
|
60
60
|
"nanobus": "^4.5.0",
|
|
61
|
-
"prosemirror-commands": "^1.6.
|
|
61
|
+
"prosemirror-commands": "^1.6.2",
|
|
62
62
|
"prosemirror-history": "^1.4.1",
|
|
63
63
|
"prosemirror-inputrules": "^1.4.0",
|
|
64
64
|
"prosemirror-keymap": "^1.2.2",
|
|
65
|
-
"prosemirror-model": "^1.
|
|
65
|
+
"prosemirror-model": "^1.23.0",
|
|
66
66
|
"prosemirror-schema-basic": "^1.2.3",
|
|
67
67
|
"prosemirror-schema-list": "^1.4.1",
|
|
68
68
|
"prosemirror-state": "^1.4.3",
|
|
69
|
-
"prosemirror-transform": "^1.10.
|
|
69
|
+
"prosemirror-transform": "^1.10.2",
|
|
70
70
|
"prosemirror-utils": "^1.2.2",
|
|
71
71
|
"prosemirror-view": "^1.34.3",
|
|
72
72
|
"react-animate-height": "^3.2.3",
|
|
73
|
-
"react-aria": "^3.
|
|
74
|
-
"react-aria-components": "^1.
|
|
73
|
+
"react-aria": "^3.35.1",
|
|
74
|
+
"react-aria-components": "^1.4.1",
|
|
75
75
|
"react-day-picker": "8.10.1",
|
|
76
76
|
"react-focus-lock": "^2.13.2",
|
|
77
|
-
"react-focus-on": "^3.9.
|
|
77
|
+
"react-focus-on": "^3.9.4",
|
|
78
78
|
"react-media": "^1.10.0",
|
|
79
79
|
"react-popper": "^2.3.0",
|
|
80
|
-
"react-select": "^5.8.
|
|
80
|
+
"react-select": "^5.8.2",
|
|
81
81
|
"react-textfit": "^1.1.1",
|
|
82
82
|
"resize-observer-polyfill": "^1.5.1",
|
|
83
|
-
"
|
|
84
|
-
"use-debounce": "^10.0.3",
|
|
83
|
+
"use-debounce": "^10.0.4",
|
|
85
84
|
"uuid": "^10.0.0"
|
|
86
85
|
},
|
|
87
86
|
"dependenciesComments": {
|
|
88
87
|
"react-day-picker": "Version locked until a11y gets fixed (https://github.com/gpbl/react-day-picker/pull/1708)"
|
|
89
88
|
},
|
|
90
89
|
"devDependencies": {
|
|
91
|
-
"@cultureamp/frontend-apis": "^
|
|
92
|
-
"@cultureamp/i18n-react-intl": "^2.
|
|
93
|
-
"@tanstack/react-query": "^5.
|
|
90
|
+
"@cultureamp/frontend-apis": "^10.0.0",
|
|
91
|
+
"@cultureamp/i18n-react-intl": "^2.7.1",
|
|
92
|
+
"@tanstack/react-query": "^5.59.16",
|
|
94
93
|
"@testing-library/dom": "^10.4.0",
|
|
95
94
|
"@types/jest-axe": "^3.5.9",
|
|
96
95
|
"@types/lodash.debounce": "^4.0.9",
|
|
@@ -106,21 +105,21 @@
|
|
|
106
105
|
"postcss": "^8.4.47",
|
|
107
106
|
"postcss-cli": "^11.0.0",
|
|
108
107
|
"postcss-import": "^16.1.0",
|
|
109
|
-
"postcss-preset-env": "^10.0.
|
|
108
|
+
"postcss-preset-env": "^10.0.8",
|
|
110
109
|
"postcss-scss": "^4.0.9",
|
|
111
|
-
"query-string": "^9.1.
|
|
110
|
+
"query-string": "^9.1.1",
|
|
112
111
|
"react": "^18.3.1",
|
|
113
112
|
"react-dom": "^18.3.1",
|
|
114
113
|
"react-highlight": "^0.15.0",
|
|
115
|
-
"react-intl": "^6.
|
|
116
|
-
"rollup": "^4.
|
|
114
|
+
"react-intl": "^6.8.4",
|
|
115
|
+
"rollup": "^4.24.2",
|
|
117
116
|
"sass": "^1.77.8",
|
|
118
117
|
"serialize-query-params": "^2.0.2",
|
|
119
118
|
"svgo": "^3.3.2",
|
|
120
|
-
"tslib": "^2.
|
|
121
|
-
"tsx": "^4.
|
|
122
|
-
"@kaizen/design-tokens": "
|
|
123
|
-
"@kaizen/package-bundler": "1.1.
|
|
119
|
+
"tslib": "^2.8.0",
|
|
120
|
+
"tsx": "^4.19.2",
|
|
121
|
+
"@kaizen/design-tokens": "0.0.0-canary-tsx-codemod-20241029235345",
|
|
122
|
+
"@kaizen/package-bundler": "1.1.8"
|
|
124
123
|
},
|
|
125
124
|
"peerDependencies": {
|
|
126
125
|
"@cultureamp/i18n-react-intl": "^2.5.9",
|
|
@@ -89,13 +89,13 @@ $avatar-xxl: 7.75rem;
|
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
.avatarImage {
|
|
92
|
-
.loading & {
|
|
93
|
-
display: none;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
92
|
width: 100%;
|
|
97
93
|
height: 100%;
|
|
98
94
|
object-fit: cover;
|
|
95
|
+
|
|
96
|
+
.loading & {
|
|
97
|
+
display: none;
|
|
98
|
+
}
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
.companyAvatarImage {
|
|
@@ -106,28 +106,26 @@ $avatar-xxl: 7.75rem;
|
|
|
106
106
|
|
|
107
107
|
.fallbackIcon {
|
|
108
108
|
color: rgba($color-purple-800-rgb, 0.7);
|
|
109
|
-
|
|
109
|
+
font-size: var(--avatar-fallback-icon-size);
|
|
110
110
|
|
|
111
111
|
.xxlarge & {
|
|
112
|
-
|
|
112
|
+
--avatar-fallback-icon-size: calc(#{$avatar-xxl} * 0.8);
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
.xlarge & {
|
|
116
|
-
|
|
116
|
+
--avatar-fallback-icon-size: calc(#{$avatar-xl} * 0.8);
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
.large & {
|
|
120
|
-
|
|
120
|
+
--avatar-fallback-icon-size: calc(#{$avatar-lg} * 0.7);
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
.medium & {
|
|
124
|
-
|
|
125
|
-
margin-bottom: -1px;
|
|
124
|
+
--avatar-fallback-icon-size: calc(#{$avatar-md} * 0.7);
|
|
126
125
|
}
|
|
127
126
|
|
|
128
127
|
.small & {
|
|
129
|
-
|
|
130
|
-
margin-bottom: -1px;
|
|
128
|
+
--avatar-fallback-icon-size: calc(#{$avatar-sm} * 0.7);
|
|
131
129
|
}
|
|
132
130
|
}
|
|
133
131
|
|
package/src/Avatar/Avatar.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState, useEffect, useRef, HTMLAttributes } from "react"
|
|
2
2
|
import classnames from "classnames"
|
|
3
3
|
import { Textfit } from "react-textfit"
|
|
4
|
-
import {
|
|
4
|
+
import { Icon } from "~components/__future__/Icon"
|
|
5
5
|
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
6
6
|
import styles from "./Avatar.module.scss"
|
|
7
7
|
|
|
@@ -76,12 +76,21 @@ const getMaxFontSizePixels: (size: AvatarSizes) => number = size => {
|
|
|
76
76
|
return 22
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
const
|
|
79
|
+
const FallbackIcon = ({ alt }: { alt: string }): JSX.Element => {
|
|
80
80
|
if (alt) {
|
|
81
|
-
return
|
|
81
|
+
return (
|
|
82
|
+
<Icon name="person" alt={alt} isFilled className={styles.fallbackIcon} />
|
|
83
|
+
)
|
|
82
84
|
}
|
|
83
85
|
|
|
84
|
-
return
|
|
86
|
+
return (
|
|
87
|
+
<Icon
|
|
88
|
+
name="person"
|
|
89
|
+
isPresentational
|
|
90
|
+
isFilled
|
|
91
|
+
className={styles.fallbackIcon}
|
|
92
|
+
/>
|
|
93
|
+
)
|
|
85
94
|
}
|
|
86
95
|
|
|
87
96
|
const renderInitials = (
|
|
@@ -95,7 +104,7 @@ const renderInitials = (
|
|
|
95
104
|
const renderFallback = disableInitials || initials === ""
|
|
96
105
|
|
|
97
106
|
return renderFallback ? (
|
|
98
|
-
<
|
|
107
|
+
<FallbackIcon alt={alt} />
|
|
99
108
|
) : (
|
|
100
109
|
<abbr
|
|
101
110
|
className={classnames(styles.initials, isLongName && styles.longName)}
|
|
@@ -2,11 +2,6 @@
|
|
|
2
2
|
import React from "react"
|
|
3
3
|
import { Meta, StoryObj } from "@storybook/react"
|
|
4
4
|
import isChromatic from "chromatic"
|
|
5
|
-
import {
|
|
6
|
-
ArrowRightIcon,
|
|
7
|
-
EmailIcon,
|
|
8
|
-
FeedbackClassifyIcon,
|
|
9
|
-
} from "~components/Icon"
|
|
10
5
|
import {
|
|
11
6
|
BrandMomentCaptureIntro,
|
|
12
7
|
BrandMomentPositiveOutro,
|
|
@@ -14,6 +9,7 @@ import {
|
|
|
14
9
|
AnimatedSceneProps,
|
|
15
10
|
} from "~components/Illustration"
|
|
16
11
|
import { Text } from "~components/Text"
|
|
12
|
+
import { Icon } from "~components/__future__/Icon"
|
|
17
13
|
import { BrandMoment } from "../index"
|
|
18
14
|
import {
|
|
19
15
|
MinimalBasic,
|
|
@@ -65,7 +61,7 @@ export const Informative: Story = {
|
|
|
65
61
|
primaryAction: {
|
|
66
62
|
label: "Get started",
|
|
67
63
|
href: "#",
|
|
68
|
-
icon: <
|
|
64
|
+
icon: <Icon name="arrow_forward" isPresentational shouldMirrorInRTL />,
|
|
69
65
|
iconPosition: "end",
|
|
70
66
|
},
|
|
71
67
|
},
|
|
@@ -98,12 +94,12 @@ export const Success: Story = {
|
|
|
98
94
|
primaryAction: {
|
|
99
95
|
label: "Go to Home",
|
|
100
96
|
href: "#",
|
|
101
|
-
icon: <
|
|
97
|
+
icon: <Icon name="arrow_forward" isPresentational shouldMirrorInRTL />,
|
|
102
98
|
iconPosition: "end",
|
|
103
99
|
},
|
|
104
100
|
secondaryAction: {
|
|
105
101
|
label: "Rate this survey",
|
|
106
|
-
icon: <
|
|
102
|
+
icon: <Icon name="reviews" isPresentational isFilled />,
|
|
107
103
|
},
|
|
108
104
|
},
|
|
109
105
|
}
|
|
@@ -132,12 +128,12 @@ export const Warning: Story = {
|
|
|
132
128
|
primaryAction: {
|
|
133
129
|
label: "Go to Home",
|
|
134
130
|
href: "#",
|
|
135
|
-
icon: <
|
|
131
|
+
icon: <Icon name="arrow_forward" isPresentational shouldMirrorInRTL />,
|
|
136
132
|
iconPosition: "end",
|
|
137
133
|
},
|
|
138
134
|
secondaryAction: {
|
|
139
135
|
label: "Contact support",
|
|
140
|
-
icon: <
|
|
136
|
+
icon: <Icon name="mail" isPresentational isFilled />,
|
|
141
137
|
},
|
|
142
138
|
},
|
|
143
139
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react"
|
|
2
|
-
import { CloseIcon } from "~components/Icon"
|
|
3
2
|
import { Button } from "~components/__actions__/v2"
|
|
3
|
+
import { Icon } from "~components/__future__/Icon"
|
|
4
4
|
import { assetUrl } from "~components/utils/hostedAssets"
|
|
5
5
|
import styles from "./ExampleHeaders.module.scss"
|
|
6
6
|
|
|
@@ -18,7 +18,7 @@ export const MinimalBasic = (): JSX.Element => (
|
|
|
18
18
|
<Button
|
|
19
19
|
href="#"
|
|
20
20
|
label="Exit"
|
|
21
|
-
icon={<
|
|
21
|
+
icon={<Icon name="close" isPresentational />}
|
|
22
22
|
secondary
|
|
23
23
|
/>
|
|
24
24
|
<div className={styles.logoContainer}>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useEffect, useRef } from "react"
|
|
2
2
|
import { enAU } from "date-fns/locale"
|
|
3
3
|
import { DayPicker, DayPickerRangeProps } from "react-day-picker"
|
|
4
|
-
import {
|
|
4
|
+
import { Icon } from "~components/__future__/Icon"
|
|
5
5
|
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
6
6
|
import { baseCalendarClassNames } from "../baseCalendarClassNames"
|
|
7
7
|
import { isInvalidDate } from "../utils"
|
|
@@ -55,8 +55,12 @@ export const CalendarRange = ({
|
|
|
55
55
|
defaultMonth={selectedMonth}
|
|
56
56
|
classNames={classNames}
|
|
57
57
|
components={{
|
|
58
|
-
IconRight: () =>
|
|
59
|
-
|
|
58
|
+
IconRight: () => (
|
|
59
|
+
<Icon name="arrow_forward" isPresentational shouldMirrorInRTL />
|
|
60
|
+
),
|
|
61
|
+
IconLeft: () => (
|
|
62
|
+
<Icon name="arrow_back" isPresentational shouldMirrorInRTL />
|
|
63
|
+
),
|
|
60
64
|
}}
|
|
61
65
|
numberOfMonths={2}
|
|
62
66
|
locale={locale}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useEffect, useRef } from "react"
|
|
2
2
|
import { enAU } from "date-fns/locale"
|
|
3
3
|
import { DayPicker, DayPickerSingleProps } from "react-day-picker"
|
|
4
|
-
import {
|
|
4
|
+
import { Icon } from "~components/__future__/Icon"
|
|
5
5
|
import { OverrideClassName } from "~components/types/OverrideClassName"
|
|
6
6
|
import { baseCalendarClassNames } from "../baseCalendarClassNames"
|
|
7
7
|
import { isInvalidDate, isValidWeekStartsOn } from "../utils"
|
|
@@ -53,8 +53,12 @@ export const CalendarSingle = ({
|
|
|
53
53
|
}
|
|
54
54
|
classNames={classNames}
|
|
55
55
|
components={{
|
|
56
|
-
IconRight: () =>
|
|
57
|
-
|
|
56
|
+
IconRight: () => (
|
|
57
|
+
<Icon name="arrow_forward" isPresentational shouldMirrorInRTL />
|
|
58
|
+
),
|
|
59
|
+
IconLeft: () => (
|
|
60
|
+
<Icon name="arrow_back" isPresentational shouldMirrorInRTL />
|
|
61
|
+
),
|
|
58
62
|
}}
|
|
59
63
|
locale={locale}
|
|
60
64
|
{...restProps}
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
Matcher,
|
|
8
8
|
DayPickerRangeProps,
|
|
9
9
|
} from "react-day-picker"
|
|
10
|
-
import {
|
|
10
|
+
import { Icon } from "~components/__future__/Icon"
|
|
11
11
|
import { baseCalendarClassNames } from "../baseCalendarClassNames"
|
|
12
12
|
import { DayOfWeek } from "../enums"
|
|
13
13
|
import { isInvalidDate, isValidWeekStartsOn } from "../utils"
|
|
@@ -62,8 +62,12 @@ export const LegacyCalendarRange = ({
|
|
|
62
62
|
onDayClick={onDayChange}
|
|
63
63
|
classNames={classNames}
|
|
64
64
|
components={{
|
|
65
|
-
IconRight: () =>
|
|
66
|
-
|
|
65
|
+
IconRight: () => (
|
|
66
|
+
<Icon name="arrow_forward" isPresentational shouldMirrorInRTL />
|
|
67
|
+
),
|
|
68
|
+
IconLeft: () => (
|
|
69
|
+
<Icon name="arrow_back" isPresentational shouldMirrorInRTL />
|
|
70
|
+
),
|
|
67
71
|
}}
|
|
68
72
|
locale={locale}
|
|
69
73
|
/>
|