@kaizen/components 0.0.0-canary-test-cherry-picked-updates-20250702235156 → 0.0.0-canary-ssr-generic-modal-1-20250709023540
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/dist/cjs/alpha.cjs +4 -0
- package/dist/cjs/src/Button/Button/Button.cjs +5 -0
- package/dist/cjs/src/Button/IconButton/IconButton.cjs +5 -0
- package/dist/cjs/src/LikertScaleLegacy/LikertScaleLegacy.cjs +3 -0
- package/dist/cjs/src/Modal/GenericModal/GenericModal.cjs +13 -1
- package/dist/cjs/src/Skirt/Skirt.cjs +3 -0
- package/dist/cjs/src/Skirt/subcomponents/SkirtCard/SkirtCard.cjs +4 -0
- package/dist/cjs/src/SplitButton/SplitButton.cjs +2 -0
- package/dist/cjs/src/TitleBlockZen/TitleBlockZen.cjs +3 -0
- package/dist/cjs/src/__alpha__/SingleSelect/SingleSelect.cjs +32 -0
- package/dist/cjs/src/__alpha__/SingleSelect/SingleSelect.module.css.cjs +6 -0
- package/dist/cjs/src/__alpha__/SingleSelect/subcomponents/List/List.cjs +24 -0
- package/dist/cjs/src/__alpha__/SingleSelect/subcomponents/List/List.module.css.cjs +6 -0
- package/dist/cjs/src/__alpha__/SingleSelect/subcomponents/ListItem/ListItem.cjs +24 -0
- package/dist/cjs/src/__alpha__/SingleSelect/subcomponents/ListItem/ListItem.module.css.cjs +6 -0
- package/dist/cjs/src/__alpha__/SingleSelect/subcomponents/ListSection/ListSection.cjs +25 -0
- package/dist/cjs/src/__alpha__/SingleSelect/subcomponents/ListSection/ListSection.module.css.cjs +6 -0
- package/dist/cjs/src/__alpha__/SingleSelect/subcomponents/Trigger/Trigger.cjs +21 -0
- package/dist/cjs/src/__alpha__/SingleSelect/subcomponents/Trigger/Trigger.module.css.cjs +6 -0
- package/dist/cjs/src/__next__/Select/Select.cjs +4 -3
- package/dist/cjs/src/__next__/Select/subcomponents/Overlay/Overlay.cjs +3 -3
- package/dist/cjs/src/__next__/Select/subcomponents/SelectPopoverContents/SelectPopoverContents.cjs +5 -2
- package/dist/cjs/src/__next__/Tabs/subcomponents/TabList/TabList.cjs +3 -3
- package/dist/esm/alpha.mjs +1 -0
- package/dist/esm/src/Button/Button/Button.mjs +5 -0
- package/dist/esm/src/Button/IconButton/IconButton.mjs +5 -0
- package/dist/esm/src/LikertScaleLegacy/LikertScaleLegacy.mjs +3 -0
- package/dist/esm/src/Modal/GenericModal/GenericModal.mjs +13 -1
- package/dist/esm/src/Skirt/Skirt.mjs +3 -0
- package/dist/esm/src/Skirt/subcomponents/SkirtCard/SkirtCard.mjs +4 -0
- package/dist/esm/src/SplitButton/SplitButton.mjs +2 -0
- package/dist/esm/src/TitleBlockZen/TitleBlockZen.mjs +3 -0
- package/dist/esm/src/__alpha__/SingleSelect/SingleSelect.mjs +27 -0
- package/dist/esm/src/__alpha__/SingleSelect/SingleSelect.module.css.mjs +4 -0
- package/dist/esm/src/__alpha__/SingleSelect/subcomponents/List/List.mjs +18 -0
- package/dist/esm/src/__alpha__/SingleSelect/subcomponents/List/List.module.css.mjs +4 -0
- package/dist/esm/src/__alpha__/SingleSelect/subcomponents/ListItem/ListItem.mjs +18 -0
- package/dist/esm/src/__alpha__/SingleSelect/subcomponents/ListItem/ListItem.module.css.mjs +4 -0
- package/dist/esm/src/__alpha__/SingleSelect/subcomponents/ListSection/ListSection.mjs +19 -0
- package/dist/esm/src/__alpha__/SingleSelect/subcomponents/ListSection/ListSection.module.css.mjs +4 -0
- package/dist/esm/src/__alpha__/SingleSelect/subcomponents/Trigger/Trigger.mjs +13 -0
- package/dist/esm/src/__alpha__/SingleSelect/subcomponents/Trigger/Trigger.module.css.mjs +4 -0
- package/dist/esm/src/__next__/Select/Select.mjs +4 -3
- package/dist/esm/src/__next__/Select/subcomponents/Overlay/Overlay.mjs +3 -3
- package/dist/esm/src/__next__/Select/subcomponents/SelectPopoverContents/SelectPopoverContents.mjs +5 -2
- package/dist/esm/src/__next__/Tabs/subcomponents/TabList/TabList.mjs +3 -3
- package/dist/styles.css +9901 -10026
- package/dist/types/Button/Button/Button.d.ts +5 -0
- package/dist/types/Button/IconButton/IconButton.d.ts +5 -0
- package/dist/types/LikertScaleLegacy/LikertScaleLegacy.d.ts +3 -0
- package/dist/types/Skirt/Skirt.d.ts +3 -0
- package/dist/types/Skirt/subcomponents/SkirtCard/SkirtCard.d.ts +3 -0
- package/dist/types/SplitButton/SplitButton.d.ts +2 -0
- package/dist/types/TitleBlockZen/TitleBlockZen.d.ts +3 -0
- package/dist/types/__alpha__/SingleSelect/SingleSelect.d.ts +23 -0
- package/dist/types/__alpha__/SingleSelect/_docs/mockData.d.ts +59 -0
- package/dist/types/__alpha__/SingleSelect/index.d.ts +1 -0
- package/dist/types/__alpha__/SingleSelect/subcomponents/List/List.d.ts +6 -0
- package/dist/types/__alpha__/SingleSelect/subcomponents/List/index.d.ts +1 -0
- package/dist/types/__alpha__/SingleSelect/subcomponents/ListItem/ListItem.d.ts +6 -0
- package/dist/types/__alpha__/SingleSelect/subcomponents/ListItem/index.d.ts +1 -0
- package/dist/types/__alpha__/SingleSelect/subcomponents/ListSection/ListSection.d.ts +8 -0
- package/dist/types/__alpha__/SingleSelect/subcomponents/ListSection/index.d.ts +1 -0
- package/dist/types/__alpha__/SingleSelect/subcomponents/Trigger/Trigger.d.ts +1 -0
- package/dist/types/__alpha__/SingleSelect/subcomponents/Trigger/index.d.ts +1 -0
- package/dist/types/__alpha__/SingleSelect/subcomponents/index.d.ts +4 -0
- package/dist/types/__alpha__/index.d.ts +1 -0
- package/dist/types/__next__/Select/Select.d.ts +6 -2
- package/dist/types/__next__/Select/subcomponents/Overlay/Overlay.d.ts +2 -1
- package/dist/types/__next__/Select/subcomponents/SelectPopoverContents/SelectPopoverContents.d.ts +2 -1
- package/package.json +1 -1
- package/src/Avatar/Avatar.module.css +137 -135
- package/src/AvatarGroup/AvatarGroup.module.css +58 -56
- package/src/Badge/Badge.module.css +98 -96
- package/src/Brand/Brand.module.css +5 -3
- package/src/BrandMoment/BrandMoment.module.css +147 -145
- package/src/BrandMoment/_docs/ExampleHeaders.module.scss +68 -66
- package/src/Button/Button/Button.module.scss +135 -133
- package/src/Button/Button/Button.tsx +5 -0
- package/src/Button/GenericButton/GenericButton.module.scss +81 -79
- package/src/Button/IconButton/IconButton.module.scss +20 -18
- package/src/Button/IconButton/IconButton.tsx +5 -0
- package/src/ButtonGroup/ButtonGroup.module.css +38 -36
- package/src/ButtonGroup/ButtonGroup.module.scss +41 -39
- package/src/Calendar/CalendarPopover/CalendarPopover.module.scss +19 -17
- package/src/Calendar/CalendarRange/CalendarRange.module.scss +48 -46
- package/src/Calendar/CalendarSingle/CalendarSingle.module.scss +12 -10
- package/src/Calendar/LegacyCalendarRange/LegacyCalendarRange.module.scss +20 -18
- package/src/Calendar/baseCalendarClassNames.module.scss +148 -146
- package/src/Card/Card.module.css +91 -89
- package/src/Checkbox/Checkbox/Checkbox.module.scss +89 -87
- package/src/Checkbox/CheckboxField/CheckboxField.module.scss +32 -30
- package/src/Checkbox/CheckboxGroup/CheckboxGroup.module.scss +11 -9
- package/src/ClearButton/ClearButton.module.scss +32 -30
- package/src/Collapsible/Collapsible/Collapsible.module.scss +87 -85
- package/src/Collapsible/CollapsibleGroup/CollapsibleGroup.module.scss +9 -7
- package/src/Collapsible/ExpertAdviceCollapsible/ExpertAdviceCollapsible.module.scss +35 -33
- package/src/Container/Container.module.scss +11 -9
- package/src/Content/Content.module.scss +10 -8
- package/src/DateInput/DateInput/DateInput.module.scss +7 -5
- package/src/DateInput/DateInputDescription/DateInputDescription.module.scss +15 -13
- package/src/DateInput/DateInputWithIconButton/DateInputWithIconButton.module.scss +32 -30
- package/src/DatePicker/DatePicker.module.scss +7 -5
- package/src/DatePicker/subcomponents/DateInputField/DateInputField.module.scss +5 -3
- package/src/DateRangePicker/DateRangePicker.module.scss +75 -73
- package/src/Divider/Divider.module.scss +35 -33
- package/src/EmptyState/EmptyState.module.css +95 -93
- package/src/ErrorPage/ErrorPage.module.scss +4 -2
- package/src/FieldGroup/FieldGroup.module.scss +8 -6
- package/src/FieldMessage/FieldMessage.module.scss +53 -51
- package/src/Filter/Filter/Filter.module.css +5 -3
- package/src/Filter/Filter/subcomponents/FilterContents/FilterContents.module.css +4 -2
- package/src/Filter/Filter/subcomponents/FilterPopover/FilterPopover.module.css +8 -6
- package/src/Filter/FilterBar/FilterBar.module.css +17 -15
- package/src/Filter/FilterBar/subcomponents/ClearAllButton/ClearAllButton.module.css +7 -5
- package/src/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.module.css +4 -2
- package/src/Filter/FilterBar/subcomponents/FilterBarMultiSelect/FilterBarMultiSelect.module.css +5 -3
- package/src/Filter/FilterButton/FilterButton/FilterButton.module.css +19 -17
- package/src/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.module.css +4 -2
- package/src/Filter/FilterButton/subcomponents/FilterButtonBase/FilterButtonBase.module.scss +42 -40
- package/src/Filter/FilterDatePicker/subcomponents/DateInputField/DateInputField.module.scss +4 -2
- package/src/Filter/FilterDatePicker/subcomponents/FilterDatePickerField/FilterDatePickerField.module.scss +6 -4
- package/src/Filter/FilterDateRangePicker/FilterDateRangePicker.module.css +7 -5
- package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeDisplayLabel/DateRangeDisplayLabel.module.scss +5 -3
- package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeInputField/DateRangeInputField.module.scss +36 -34
- package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeValidationMessage/DateRangeValidationMessage.module.scss +5 -3
- package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/FilterDateRangePickerField.module.scss +7 -5
- package/src/Filter/FilterMultiSelect/subcomponents/ListBox/ListBox.module.scss +19 -17
- package/src/Filter/FilterMultiSelect/subcomponents/ListBoxSection/ListBoxSection.module.scss +14 -12
- package/src/Filter/FilterMultiSelect/subcomponents/LoadMoreButton/LoadMoreButton.module.scss +4 -2
- package/src/Filter/FilterMultiSelect/subcomponents/MenuLayout/MenuFooter/MenuFooter.module.scss +7 -5
- package/src/Filter/FilterMultiSelect/subcomponents/MenuLayout/MenuLoadingSkeleton/MenuLoadingSkeleton.module.scss +8 -6
- package/src/Filter/FilterMultiSelect/subcomponents/MenuPopup/MenuPopup.module.scss +17 -15
- package/src/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.module.scss +90 -88
- package/src/Filter/FilterMultiSelect/subcomponents/NoResults/NoResults.module.scss +4 -2
- package/src/Filter/FilterMultiSelect/subcomponents/SearchInput/SearchInput.module.scss +5 -3
- package/src/Filter/FilterMultiSelect/subcomponents/SectionDivider/SectionDivider.module.scss +4 -2
- package/src/Filter/FilterMultiSelect/subcomponents/SelectionControlButton/SelectionControlButton.module.scss +52 -50
- package/src/Filter/FilterMultiSelect/subcomponents/Trigger/RemovableFilterTrigger/RemovableFilterTrigger.module.css +4 -2
- package/src/Filter/FilterSelect/FilterSelect.module.css +9 -7
- package/src/Focusable/Focusable.module.scss +4 -2
- package/src/GuidanceBlock/GuidanceBlock.module.css +212 -210
- package/src/Heading/Heading.module.scss +87 -85
- package/src/Icon/_docs/icon.module.scss +35 -33
- package/src/Icon/subcomponents/SVG/SVG.module.scss +26 -24
- package/src/Illustration/subcomponents/Base/Base.module.scss +100 -98
- package/src/Input/Input/Input.module.scss +217 -215
- package/src/Input/InputRange/InputRange.module.scss +138 -136
- package/src/Input/InputSearch/InputSearch.module.scss +155 -152
- package/src/Label/Label.module.scss +82 -80
- package/src/LabelledMessage/LabelledMessage.module.scss +8 -6
- package/src/LikertScaleLegacy/LikertScaleLegacy.module.scss +266 -264
- package/src/LikertScaleLegacy/LikertScaleLegacy.tsx +3 -0
- package/src/LikertScaleLegacy/_docs/LikertScaleLegacy.mdx +3 -2
- package/src/LikertScaleLegacy/_docs/LikertScaleLegacy.stickersheet.stories.tsx +1 -1
- package/src/LikertScaleLegacy/_docs/LikertScaleLegacy.stories.tsx +1 -1
- package/src/Link/Link.module.css +115 -113
- package/src/LinkButton/LinkButton.module.css +5 -3
- package/src/Loading/LoadingGraphic/LoadingGraphic.module.scss +12 -10
- package/src/Loading/LoadingHeading/LoadingHeading.module.scss +44 -42
- package/src/Loading/LoadingInput/LoadingInput.module.scss +11 -9
- package/src/Loading/LoadingParagraph/LoadingParagraph.module.scss +47 -45
- package/src/Loading/LoadingSpinner/LoadingSpinner.module.css +22 -20
- package/src/Loading/_mixins.scss +11 -9
- package/src/Menu/subcomponents/MenuDropdown/MenuDropdown.module.scss +18 -16
- package/src/Menu/subcomponents/MenuHeading/MenuHeading.module.scss +8 -6
- package/src/Menu/subcomponents/MenuItem/MenuItem.module.scss +74 -72
- package/src/Menu/subcomponents/MenuList/MenuList.module.scss +14 -12
- package/src/Menu/subcomponents/StatelessMenu/StatelessMenu.module.scss +4 -2
- package/src/Modal/ConfirmationModal/ConfirmationModal.module.scss +126 -124
- package/src/Modal/ContextModal/ContextModal.module.scss +72 -70
- package/src/Modal/GenericModal/GenericModal.module.scss +94 -90
- package/src/Modal/GenericModal/GenericModal.tsx +19 -1
- package/src/Modal/GenericModal/_docs/GenericModal.spec.stories.tsx +6 -1
- package/src/Modal/GenericModal/subcomponents/ModalAccessibleDescription/ModalAccessibleDescription.module.scss +4 -2
- package/src/Modal/GenericModal/subcomponents/ModalAccessibleLabel/ModalAccessibleLabel.module.scss +25 -23
- package/src/Modal/GenericModal/subcomponents/ModalBody/ModalBody.module.scss +5 -3
- package/src/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.module.scss +55 -53
- package/src/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.module.scss +17 -15
- package/src/Modal/InputEditModal/InputEditModal.module.scss +32 -30
- package/src/MultiSelect/MultiSelect.module.scss +7 -5
- package/src/MultiSelect/subcomponents/Checkbox/Checkbox.module.scss +59 -57
- package/src/MultiSelect/subcomponents/MultiSelectOptionField/MultiSelectOptionField.module.scss +55 -53
- package/src/MultiSelect/subcomponents/MultiSelectOptions/MultiSelectOptions.module.scss +8 -6
- package/src/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.module.scss +66 -64
- package/src/MultiSelect/subcomponents/Popover/Popover.module.scss +15 -13
- package/src/Notification/ToastNotification/ToastNotificationsList/ToastNotificationsList.module.scss +21 -19
- package/src/Notification/subcomponents/GenericNotification/GenericNotification.module.scss +112 -110
- package/src/Notification/subcomponents/GenericNotification/_mixins.scss +278 -276
- package/src/Notification/subcomponents/NotificationIcon/NotificationIcon.module.css +4 -2
- package/src/Pagination/Pagination.module.scss +39 -37
- package/src/Pagination/subcomponents/DirectionalLink/DirectionalLink.module.scss +11 -9
- package/src/Pagination/subcomponents/PaginationLink/PaginationLink.module.scss +53 -51
- package/src/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.module.css +10 -8
- package/src/Popover/Popover.module.scss +187 -185
- package/src/ProgressBar/ProgressBar.module.scss +75 -73
- package/src/ProgressBar/subcomponents/Label/Label.module.scss +6 -4
- package/src/Radio/Radio/Radio.module.scss +60 -58
- package/src/Radio/RadioField/RadioField.module.scss +33 -31
- package/src/Radio/RadioGroup/RadioGroup.module.scss +18 -16
- package/src/RichTextEditor/EditableRichTextContent/EditableRichTextContent.module.scss +32 -30
- package/src/RichTextEditor/RichTextContent/RichTextContent.module.scss +4 -2
- package/src/RichTextEditor/RichTextEditor/RichTextEditor.module.scss +76 -74
- package/src/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/ToggleIconButton.module.scss +92 -90
- package/src/RichTextEditor/RichTextEditor/subcomponents/Toolbar/Toolbar.module.scss +5 -3
- package/src/RichTextEditor/RichTextEditor/subcomponents/ToolbarSection/ToolbarSection.module.scss +12 -10
- package/src/RichTextEditor/_mixins.scss +1 -1
- package/src/RichTextEditor/utils/plugins/LinkManager/components/LinkModal/LinkModal.module.scss +5 -3
- package/src/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/LinkPopover.module.scss +22 -20
- package/src/SearchField/SearchField.module.scss +5 -3
- package/src/Select/Select.module.scss +17 -0
- package/src/Skirt/Skirt.module.scss +24 -22
- package/src/Skirt/Skirt.tsx +4 -0
- package/src/Skirt/_docs/Skirt.mdx +3 -1
- package/src/Skirt/_docs/Skirt.stories.tsx +1 -1
- package/src/Skirt/subcomponents/SkirtCard/SkirtCard.module.scss +13 -11
- package/src/Skirt/subcomponents/SkirtCard/SkirtCard.tsx +4 -0
- package/src/Slider/Slider.module.scss +34 -32
- package/src/SplitButton/SplitButton.module.scss +5 -3
- package/src/SplitButton/SplitButton.tsx +2 -0
- package/src/SplitButton/_docs/SplitButton.mdx +3 -1
- package/src/SplitButton/_docs/SplitButton.stickersheet.stories.tsx +1 -1
- package/src/SplitButton/_docs/SplitButton.stories.tsx +1 -1
- package/src/SplitButton/subcomponents/ActionButton/ActionButton.module.scss +7 -5
- package/src/SplitButton/subcomponents/BaseButton/BaseButton.module.scss +65 -63
- package/src/SplitButton/subcomponents/DropdownButton/DropdownButton.module.scss +19 -17
- package/src/Table/Table.module.scss +251 -249
- package/src/Tabs/subcomponents/Tab.module.scss +81 -79
- package/src/Tabs/subcomponents/TabList.module.scss +8 -6
- package/src/Tabs/subcomponents/TabPanel.module.scss +10 -8
- package/src/Tag/Tag.module.scss +166 -164
- package/src/Tag/subcomponents/LiveIcon/LiveIcon.module.css +42 -40
- package/src/Text/Text.module.scss +57 -55
- package/src/TextArea/TextArea.module.css +102 -99
- package/src/TextAreaField/TextAreaField.module.scss +14 -12
- package/src/TextField/TextField.module.scss +16 -14
- package/src/Tile/MultiActionTile/MultiActionTile.module.scss +7 -5
- package/src/Tile/TileGrid/TileGrid.module.scss +18 -16
- package/src/Tile/subcomponents/GenericTile/GenericTile.module.scss +123 -121
- package/src/TimeField/TimeField.module.scss +57 -55
- package/src/TimeField/subcomponents/TimeSegment/TimeSegment.module.scss +37 -35
- package/src/TitleBlockZen/TitleBlockZen.module.scss +507 -505
- package/src/TitleBlockZen/TitleBlockZen.tsx +3 -0
- package/src/TitleBlockZen/_docs/TitleBlockZen.mdx +3 -2
- package/src/TitleBlockZen/subcomponents/MainActions.module.scss +11 -9
- package/src/TitleBlockZen/subcomponents/MobileActions.module.scss +146 -144
- package/src/TitleBlockZen/subcomponents/NavigationTabs.module.scss +105 -103
- package/src/TitleBlockZen/subcomponents/TitleBlockMenuItem.module.scss +74 -72
- package/src/TitleBlockZen/subcomponents/Toolbar.module.scss +28 -26
- package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.scss +105 -103
- package/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.module.scss +11 -9
- package/src/Tooltip/Tooltip.module.scss +139 -137
- package/src/VisuallyHidden/VisuallyHidden.module.scss +10 -8
- package/src/Well/Well.module.css +104 -102
- package/src/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.module.css +14 -12
- package/src/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.module.css +101 -99
- package/src/Workflow/subcomponents/Footer/components/Root/FooterRoot.module.css +19 -17
- package/src/Workflow/subcomponents/Header/components/Actions/Actions.module.css +14 -12
- package/src/Workflow/subcomponents/Header/components/Branding/Branding.module.css +12 -10
- package/src/Workflow/subcomponents/Header/components/Root/Root.module.css +19 -17
- package/src/Workflow/subcomponents/Header/components/Titles/Titles.module.css +19 -17
- package/src/Workflow/subcomponents/Main/Main.module.css +5 -3
- package/src/Workflow/subcomponents/Wrapper/Wrapper.module.css +8 -6
- package/src/__alpha__/SingleSelect/SingleSelect.module.css +9 -0
- package/src/__alpha__/SingleSelect/SingleSelect.spec.tsx +26 -0
- package/src/__alpha__/SingleSelect/SingleSelect.tsx +27 -0
- package/src/__alpha__/SingleSelect/_docs/SingleSelect.mdx +27 -0
- package/src/__alpha__/SingleSelect/_docs/SingleSelect.stickersheet.stories.tsx +83 -0
- package/src/__alpha__/SingleSelect/_docs/SingleSelect.stories.tsx +23 -0
- package/src/__alpha__/SingleSelect/_docs/mockData.ts +92 -0
- package/src/__alpha__/SingleSelect/index.ts +1 -0
- package/src/__alpha__/SingleSelect/subcomponents/List/List.module.css +7 -0
- package/src/__alpha__/SingleSelect/subcomponents/List/List.tsx +17 -0
- package/src/__alpha__/SingleSelect/subcomponents/List/index.ts +1 -0
- package/src/__alpha__/SingleSelect/subcomponents/ListItem/ListItem.module.css +9 -0
- package/src/__alpha__/SingleSelect/subcomponents/ListItem/ListItem.tsx +17 -0
- package/src/__alpha__/SingleSelect/subcomponents/ListItem/index.ts +1 -0
- package/src/__alpha__/SingleSelect/subcomponents/ListSection/ListSection.module.css +9 -0
- package/src/__alpha__/SingleSelect/subcomponents/ListSection/ListSection.tsx +23 -0
- package/src/__alpha__/SingleSelect/subcomponents/ListSection/index.ts +1 -0
- package/src/__alpha__/SingleSelect/subcomponents/Trigger/Trigger.module.css +18 -0
- package/src/__alpha__/SingleSelect/subcomponents/Trigger/Trigger.tsx +13 -0
- package/src/__alpha__/SingleSelect/subcomponents/Trigger/index.ts +1 -0
- package/src/__alpha__/SingleSelect/subcomponents/index.ts +4 -0
- package/src/__alpha__/index.ts +1 -0
- package/src/__next__/Button/Button.module.css +220 -218
- package/src/__next__/Button/_docs/Button--migration-guide.mdx +12 -5
- package/src/__next__/Button/subcomponents/ButtonContent/ButtonContent.module.css +17 -15
- package/src/__next__/Button/subcomponents/PendingContent/PendingContent.module.css +15 -13
- package/src/__next__/Icon/Icon.module.css +40 -38
- package/src/__next__/Icon/_docs/Icon--migration-guide.mdx +11 -3
- package/src/__next__/Icon/_docs/Icon.docs.module.css +13 -11
- package/src/__next__/Menu/Menu.module.css +30 -28
- package/src/__next__/Menu/MenuItem.module.css +41 -39
- package/src/__next__/Menu/_docs/Menu--migration-guide.mdx +91 -0
- package/src/__next__/Select/Select.module.scss +8 -6
- package/src/__next__/Select/Select.tsx +9 -3
- package/src/__next__/Select/subcomponents/ListBox/ListBox.module.scss +12 -10
- package/src/__next__/Select/subcomponents/ListBoxSection/ListBoxSection.module.scss +15 -13
- package/src/__next__/Select/subcomponents/Option/Option.module.scss +53 -51
- package/src/__next__/Select/subcomponents/Overlay/Overlay.tsx +4 -2
- package/src/__next__/Select/subcomponents/SectionDivider/SectionDivider.module.scss +8 -6
- package/src/__next__/Select/subcomponents/SelectPopoverContents/SelectPopoverContents.module.scss +4 -2
- package/src/__next__/Select/subcomponents/SelectPopoverContents/SelectPopoverContents.tsx +3 -1
- package/src/__next__/Select/subcomponents/SelectToggle/SelectToggle.module.scss +105 -103
- package/src/__next__/Tabs/_docs/Tabs--migration-guide.mdx +10 -2
- package/src/__next__/Tabs/_docs/Tabs.spec.stories.tsx +48 -3
- package/src/__next__/Tabs/_docs/Tabs.stories.tsx +13 -2
- package/src/__next__/Tabs/subcomponents/Tab/Tab.module.css +81 -79
- package/src/__next__/Tabs/subcomponents/TabList/TabList.module.css +58 -54
- package/src/__next__/Tabs/subcomponents/TabList/TabList.tsx +3 -3
- package/src/__next__/Tabs/subcomponents/TabPanel/TabPanel.module.css +10 -8
- package/src/__next__/Tag/RemovableTag/RemovableTag.module.scss +6 -4
- package/src/__next__/Tag/RemovableTag/subcomponents/RemoveButton.module.scss +26 -24
- package/src/__next__/Tag/Tag/Tag.module.scss +56 -54
- package/src/__next__/Tooltip/OverlayArrow.module.scss +40 -38
- package/src/__next__/Tooltip/Tooltip.module.scss +39 -37
- package/src/__next__/Tooltip/_docs/Tooltip--migration-guide.mdx +62 -0
- package/src/__next__/Tooltip/_docs/Tooltip.spec.stories.tsx +12 -6
- package/src/utils/AppearanceAnim.module.scss +14 -12
|
@@ -4,131 +4,133 @@
|
|
|
4
4
|
@import '~@kaizen/design-tokens/sass/typography';
|
|
5
5
|
@import '../../../../../styles/utils/button-reset';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
@layer kz-components {
|
|
8
|
+
.iconWrapper {
|
|
9
|
+
line-height: 1;
|
|
10
|
+
}
|
|
10
11
|
|
|
11
|
-
.icon {
|
|
12
|
-
|
|
13
|
-
}
|
|
12
|
+
.icon {
|
|
13
|
+
color: $color-gray-500;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.selectToggle {
|
|
17
|
+
@include button-reset;
|
|
18
|
+
|
|
19
|
+
-webkit-font-smoothing: antialiased;
|
|
20
|
+
-moz-osx-font-smoothing: grayscale;
|
|
21
|
+
position: relative;
|
|
22
|
+
display: inline-flex;
|
|
23
|
+
flex: 1;
|
|
24
|
+
justify-content: space-between;
|
|
25
|
+
align-items: center;
|
|
26
|
+
height: $spacing-xl;
|
|
27
|
+
width: 100%;
|
|
28
|
+
min-width: 0;
|
|
29
|
+
margin-top: $spacing-xs;
|
|
30
|
+
border: $border-solid-border-width $border-solid-border-style $color-gray-500;
|
|
31
|
+
border-radius: $border-solid-border-radius;
|
|
32
|
+
background-color: $color-white;
|
|
33
|
+
padding-block: calc(#{$spacing-12} - #{$border-solid-border-width});
|
|
34
|
+
padding-inline: 0.875rem $spacing-12;
|
|
35
|
+
font-family: $typography-paragraph-body-font-family;
|
|
36
|
+
font-weight: $typography-paragraph-body-font-weight;
|
|
37
|
+
font-size: $typography-paragraph-body-font-size;
|
|
38
|
+
line-height: $typography-paragraph-body-line-height;
|
|
39
|
+
letter-spacing: $typography-paragraph-body-letter-spacing;
|
|
40
|
+
color: $color-purple-800;
|
|
41
|
+
white-space: nowrap;
|
|
42
|
+
|
|
43
|
+
&:hover,
|
|
44
|
+
&:active,
|
|
45
|
+
&:focus {
|
|
46
|
+
.icon {
|
|
47
|
+
color: $color-gray-600;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&:active,
|
|
52
|
+
&:hover {
|
|
53
|
+
background-color: $color-gray-200;
|
|
54
|
+
border-color: $color-gray-600;
|
|
55
|
+
}
|
|
14
56
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
display: inline-flex;
|
|
22
|
-
flex: 1;
|
|
23
|
-
justify-content: space-between;
|
|
24
|
-
align-items: center;
|
|
25
|
-
height: $spacing-xl;
|
|
26
|
-
width: 100%;
|
|
27
|
-
min-width: 0;
|
|
28
|
-
margin-top: $spacing-xs;
|
|
29
|
-
border: $border-solid-border-width $border-solid-border-style $color-gray-500;
|
|
30
|
-
border-radius: $border-solid-border-radius;
|
|
31
|
-
background-color: $color-white;
|
|
32
|
-
padding-block: calc(#{$spacing-12} - #{$border-solid-border-width});
|
|
33
|
-
padding-inline: 0.875rem $spacing-12;
|
|
34
|
-
font-family: $typography-paragraph-body-font-family;
|
|
35
|
-
font-weight: $typography-paragraph-body-font-weight;
|
|
36
|
-
font-size: $typography-paragraph-body-font-size;
|
|
37
|
-
line-height: $typography-paragraph-body-line-height;
|
|
38
|
-
letter-spacing: $typography-paragraph-body-letter-spacing;
|
|
39
|
-
color: $color-purple-800;
|
|
40
|
-
white-space: nowrap;
|
|
41
|
-
|
|
42
|
-
&:hover,
|
|
43
|
-
&:active,
|
|
44
|
-
&:focus {
|
|
45
|
-
.icon {
|
|
46
|
-
color: $color-gray-600;
|
|
57
|
+
&:focus {
|
|
58
|
+
outline: var(--border-focus-ring-border-width) var(--border-focus-ring-border-style)
|
|
59
|
+
var(--color-blue-500);
|
|
60
|
+
outline-offset: 1px;
|
|
61
|
+
background-color: $color-gray-200;
|
|
62
|
+
border-color: $color-gray-600;
|
|
47
63
|
}
|
|
48
64
|
}
|
|
49
65
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
background-color: $color-gray-200;
|
|
53
|
-
border-color: $color-gray-600;
|
|
66
|
+
.placeholder {
|
|
67
|
+
color: rgb($color-purple-800-rgb, 0.7);
|
|
54
68
|
}
|
|
55
69
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
var(--color-blue-500);
|
|
59
|
-
outline-offset: 1px;
|
|
60
|
-
background-color: $color-gray-200;
|
|
61
|
-
border-color: $color-gray-600;
|
|
70
|
+
.error {
|
|
71
|
+
border: $border-solid-border-width $border-solid-border-style $color-red-500;
|
|
62
72
|
}
|
|
63
|
-
}
|
|
64
73
|
|
|
65
|
-
.
|
|
66
|
-
|
|
67
|
-
}
|
|
74
|
+
.caution {
|
|
75
|
+
border: $border-solid-border-width $border-solid-border-style $color-yellow-600;
|
|
76
|
+
}
|
|
68
77
|
|
|
69
|
-
.
|
|
70
|
-
|
|
71
|
-
|
|
78
|
+
.disabled {
|
|
79
|
+
border: $border-solid-border-width $border-solid-border-style $color-gray-300;
|
|
80
|
+
background-color: $color-gray-100;
|
|
81
|
+
color: $color-gray-500;
|
|
82
|
+
pointer-events: none;
|
|
83
|
+
}
|
|
72
84
|
|
|
73
|
-
.
|
|
74
|
-
|
|
75
|
-
|
|
85
|
+
.reversed {
|
|
86
|
+
border: $border-solid-border-width $border-solid-border-style rgba($color-white-rgb, 0.8);
|
|
87
|
+
background-color: transparent;
|
|
88
|
+
color: $color-white;
|
|
76
89
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
color: $color-gray-500;
|
|
81
|
-
pointer-events: none;
|
|
82
|
-
}
|
|
90
|
+
&.placeholder {
|
|
91
|
+
color: rgba($color-white-rgb, 0.65);
|
|
92
|
+
}
|
|
83
93
|
|
|
84
|
-
.
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
color: $color-white;
|
|
94
|
+
&.selectToggle .icon {
|
|
95
|
+
color: rgb(255, 255, 255, 0.8);
|
|
96
|
+
}
|
|
88
97
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
98
|
+
&:active,
|
|
99
|
+
&:hover,
|
|
100
|
+
&:focus {
|
|
101
|
+
background-color: rgba($color-white-rgb, 0.1);
|
|
102
|
+
border: $border-solid-border-width $border-solid-border-style $color-white;
|
|
92
103
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
104
|
+
.icon {
|
|
105
|
+
color: $color-white;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
96
108
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
background-color: rgba($color-white-rgb, 0.1);
|
|
101
|
-
border: $border-solid-border-width $border-solid-border-style $color-white;
|
|
109
|
+
&:focus {
|
|
110
|
+
outline-color: var(--color-blue-300);
|
|
111
|
+
}
|
|
102
112
|
|
|
103
|
-
.
|
|
104
|
-
color: $color-
|
|
113
|
+
.error {
|
|
114
|
+
border-color: $color-red-300;
|
|
105
115
|
}
|
|
106
|
-
}
|
|
107
116
|
|
|
108
|
-
|
|
109
|
-
|
|
117
|
+
.caution {
|
|
118
|
+
border-color: $color-yellow-400;
|
|
119
|
+
}
|
|
110
120
|
}
|
|
111
121
|
|
|
112
|
-
.
|
|
113
|
-
|
|
122
|
+
.reversed.disabled {
|
|
123
|
+
background-color: transparent;
|
|
124
|
+
border-color: rgba($color-white-rgb, 0.3);
|
|
125
|
+
color: rgba($color-white-rgb, 0.3);
|
|
114
126
|
}
|
|
115
127
|
|
|
116
|
-
.
|
|
117
|
-
|
|
128
|
+
.value {
|
|
129
|
+
width: 100%;
|
|
130
|
+
text-align: start;
|
|
131
|
+
white-space: nowrap;
|
|
132
|
+
overflow: hidden;
|
|
133
|
+
text-overflow: ellipsis;
|
|
134
|
+
padding-inline-end: var(--spacing-12);
|
|
118
135
|
}
|
|
119
136
|
}
|
|
120
|
-
|
|
121
|
-
.reversed.disabled {
|
|
122
|
-
background-color: transparent;
|
|
123
|
-
border-color: rgba($color-white-rgb, 0.3);
|
|
124
|
-
color: rgba($color-white-rgb, 0.3);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.value {
|
|
128
|
-
width: 100%;
|
|
129
|
-
text-align: start;
|
|
130
|
-
white-space: nowrap;
|
|
131
|
-
overflow: hidden;
|
|
132
|
-
text-overflow: ellipsis;
|
|
133
|
-
padding-inline-end: var(--spacing-12);
|
|
134
|
-
}
|
|
@@ -2,9 +2,17 @@ import { Meta } from '@storybook/blocks'
|
|
|
2
2
|
|
|
3
3
|
<Meta title="Components/Tabs/Migration guide" />
|
|
4
4
|
|
|
5
|
-
#
|
|
5
|
+
# Tabs migration guide
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## Audience
|
|
8
|
+
|
|
9
|
+
This guide is relevant for Kaizen All-In-One (KAIO) v1 consumers.
|
|
10
|
+
|
|
11
|
+
## Purpose
|
|
12
|
+
|
|
13
|
+
This guide provides instructions for migrating tabs usage from the `deprecated` (`@kaizen/components`) `Tabs` component to the `next` (`@kaizen/components/next`) `Tabs` component.
|
|
14
|
+
|
|
15
|
+
This migration is a prerequisite for [migrating to KAIO v2](/docs/releases-upcoming-major-releases--docs).
|
|
8
16
|
|
|
9
17
|
## Why the change?
|
|
10
18
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React from 'react'
|
|
1
|
+
import React, { useState } from 'react'
|
|
2
2
|
import { type Meta, type StoryObj } from '@storybook/react'
|
|
3
|
-
import { expect, userEvent, within } from '@storybook/test'
|
|
3
|
+
import { expect, userEvent, waitFor, within } from '@storybook/test'
|
|
4
4
|
import { Text } from '~components/Text'
|
|
5
|
-
import { Tab, TabList, TabPanel, Tabs } from '../index'
|
|
5
|
+
import { Tab, TabList, TabPanel, Tabs, type Key } from '../index'
|
|
6
6
|
|
|
7
7
|
const meta = {
|
|
8
8
|
title: 'Components/Tabs/Tabs (next)/Tabs (next) tests',
|
|
@@ -116,3 +116,48 @@ export const ArrowsShowingAndHidingRTL: Story = {
|
|
|
116
116
|
expect(leftArrow).not.toBeInTheDocument()
|
|
117
117
|
},
|
|
118
118
|
}
|
|
119
|
+
|
|
120
|
+
export const AsyncLoaded: Story = {
|
|
121
|
+
render: () => {
|
|
122
|
+
const [selectedKey, setSelectedKey] = useState<Key>(0)
|
|
123
|
+
|
|
124
|
+
const [showSecondTab, setShowSecondTab] = React.useState(false)
|
|
125
|
+
React.useEffect(() => {
|
|
126
|
+
const timer = setTimeout(() => setShowSecondTab(true), 1000)
|
|
127
|
+
return () => clearTimeout(timer)
|
|
128
|
+
}, [])
|
|
129
|
+
return (
|
|
130
|
+
<div style={{ maxWidth: '300px' }}>
|
|
131
|
+
<Tabs selectedKey={selectedKey} onSelectionChange={setSelectedKey}>
|
|
132
|
+
<TabList aria-label="Tabs" data-testid="sb-arrows">
|
|
133
|
+
<Tab id="one">Conversation</Tab>
|
|
134
|
+
{showSecondTab && <Tab id="two">Personal notes</Tab>}
|
|
135
|
+
</TabList>
|
|
136
|
+
<TabPanel id="one" className="p-24">
|
|
137
|
+
<Text variant="body">Content 1</Text>
|
|
138
|
+
</TabPanel>
|
|
139
|
+
<TabPanel id="two" className="p-24">
|
|
140
|
+
<Text variant="body">Content 2</Text>
|
|
141
|
+
</TabPanel>
|
|
142
|
+
</Tabs>
|
|
143
|
+
</div>
|
|
144
|
+
)
|
|
145
|
+
},
|
|
146
|
+
play: async ({ canvasElement, step }) => {
|
|
147
|
+
const canvas = within(canvasElement.parentElement!)
|
|
148
|
+
expect(canvas.queryByTestId('kz-tablist-right-arrow')).not.toBeInTheDocument()
|
|
149
|
+
await waitFor(() => userEvent.click(canvasElement))
|
|
150
|
+
await new Promise((r) => setTimeout(r, 2000))
|
|
151
|
+
|
|
152
|
+
await step('Check if second tab is loaded', async () => {
|
|
153
|
+
await waitFor(() => {
|
|
154
|
+
expect(canvas.queryByText('Personal notes')).toBeInTheDocument()
|
|
155
|
+
})
|
|
156
|
+
|
|
157
|
+
await waitFor(async () => {
|
|
158
|
+
const rightTab = await canvas.findByTestId('sb-arrows-kz-tablist-right-arrow')
|
|
159
|
+
expect(rightTab).toBeInTheDocument()
|
|
160
|
+
})
|
|
161
|
+
})
|
|
162
|
+
},
|
|
163
|
+
}
|
|
@@ -66,11 +66,22 @@ export const Playground: Story = {
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
export const Controlled: Story = {
|
|
69
|
-
render: (
|
|
69
|
+
render: () => {
|
|
70
70
|
const [selectedKey, setSelectedKey] = useState<Key>(0)
|
|
71
71
|
return (
|
|
72
72
|
<>
|
|
73
|
-
<Tabs
|
|
73
|
+
<Tabs selectedKey={selectedKey} onSelectionChange={setSelectedKey}>
|
|
74
|
+
<TabList aria-label="Tabs">
|
|
75
|
+
<Tab id="one">Tab 1</Tab>
|
|
76
|
+
<Tab id="two">Tab 2</Tab>
|
|
77
|
+
</TabList>
|
|
78
|
+
<TabPanel id="one" className="p-24">
|
|
79
|
+
<Text variant="body">Content 1</Text>
|
|
80
|
+
</TabPanel>
|
|
81
|
+
<TabPanel id="two" className="p-24">
|
|
82
|
+
<Text variant="body">Content 2</Text>
|
|
83
|
+
</TabPanel>
|
|
84
|
+
</Tabs>
|
|
74
85
|
<Button label="Switch to tab 2" onClick={(): void => setSelectedKey('two')} />
|
|
75
86
|
</>
|
|
76
87
|
)
|
|
@@ -1,98 +1,100 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
@layer kz-components {
|
|
2
|
+
.tab {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
border: 2px solid transparent;
|
|
6
|
+
border-bottom: 0;
|
|
7
|
+
border-top-left-radius: var(--border-borderless-border-radius);
|
|
8
|
+
border-top-right-radius: var(--border-borderless-border-radius);
|
|
9
|
+
background: var(--color-white);
|
|
10
|
+
white-space: nowrap;
|
|
11
|
+
text-decoration: none;
|
|
12
|
+
padding: var(--spacing-md) var(--spacing-md);
|
|
13
|
+
margin: 0;
|
|
14
|
+
font-family: var(--typography-heading-4-font-family);
|
|
15
|
+
font-size: var(--typography-heading-4-font-size);
|
|
16
|
+
font-weight: var(--typography-heading-4-font-weight);
|
|
17
|
+
line-height: var(--typography-heading-4-line-height);
|
|
18
|
+
letter-spacing: var(--typography-heading-4-letter-spacing);
|
|
19
|
+
color: var(--color-purple-800);
|
|
20
|
+
cursor: default;
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
&:focus {
|
|
23
|
+
outline: none;
|
|
24
|
+
}
|
|
24
25
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
&:focus-visible {
|
|
27
|
+
color: var(--color-blue-500);
|
|
28
|
+
border-color: var(--color-blue-500);
|
|
29
|
+
}
|
|
29
30
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
&[data-disabled] {
|
|
32
|
+
opacity: 0.3;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&:not(:first-child) {
|
|
36
|
+
margin-inline-start: var(--spacing-xs);
|
|
37
|
+
}
|
|
33
38
|
|
|
34
|
-
|
|
35
|
-
|
|
39
|
+
&:not([data-disabled]):hover {
|
|
40
|
+
background: var(--color-blue-200);
|
|
41
|
+
color: var(--color-blue-500);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&:not([data-disabled]):active {
|
|
45
|
+
background: var(--color-blue-100);
|
|
46
|
+
}
|
|
36
47
|
}
|
|
37
48
|
|
|
38
|
-
|
|
39
|
-
|
|
49
|
+
.tab[data-selected] {
|
|
50
|
+
position: relative;
|
|
40
51
|
color: var(--color-blue-500);
|
|
41
|
-
}
|
|
42
52
|
|
|
43
|
-
|
|
44
|
-
|
|
53
|
+
&::before {
|
|
54
|
+
content: '';
|
|
55
|
+
display: block;
|
|
56
|
+
border-top-left-radius: 5px;
|
|
57
|
+
border-top-right-radius: 5px;
|
|
58
|
+
background-color: currentcolor;
|
|
59
|
+
height: 5px;
|
|
60
|
+
width: 100%;
|
|
61
|
+
position: absolute;
|
|
62
|
+
left: 0;
|
|
63
|
+
right: 0;
|
|
64
|
+
bottom: 0;
|
|
65
|
+
}
|
|
45
66
|
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.tab[data-selected] {
|
|
49
|
-
position: relative;
|
|
50
|
-
color: var(--color-blue-500);
|
|
51
67
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
display:
|
|
55
|
-
|
|
56
|
-
border-top-right-radius: 5px;
|
|
57
|
-
background-color: currentcolor;
|
|
58
|
-
height: 5px;
|
|
59
|
-
width: 100%;
|
|
60
|
-
position: absolute;
|
|
61
|
-
left: 0;
|
|
62
|
-
right: 0;
|
|
63
|
-
bottom: 0;
|
|
68
|
+
.badge {
|
|
69
|
+
margin-inline-start: var(--spacing-sm);
|
|
70
|
+
display: inline-flex;
|
|
71
|
+
align-items: center;
|
|
64
72
|
}
|
|
65
|
-
}
|
|
66
73
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
align-items: center;
|
|
71
|
-
}
|
|
74
|
+
@media (forced-colors: active) {
|
|
75
|
+
.tab {
|
|
76
|
+
border: 2px solid transparent;
|
|
72
77
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
78
|
+
&:focus-visible::after {
|
|
79
|
+
content: '';
|
|
80
|
+
position: absolute;
|
|
81
|
+
background: transparent;
|
|
82
|
+
border-radius: var(--border-focus-ring-border-radius);
|
|
83
|
+
border-width: var(--border-focus-ring-border-width);
|
|
84
|
+
border-style: var(--border-focus-ring-border-style);
|
|
85
|
+
border-color: transparent;
|
|
86
|
+
inset: -2px;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
76
89
|
|
|
77
|
-
|
|
90
|
+
.tab[data-selected]::before {
|
|
91
|
+
/* High contrast also doesn't see the pseudo element created to show the active tab. */
|
|
78
92
|
content: '';
|
|
79
93
|
position: absolute;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
border-
|
|
84
|
-
border-color: transparent;
|
|
85
|
-
inset: -2px;
|
|
94
|
+
left: 0;
|
|
95
|
+
right: 0;
|
|
96
|
+
bottom: 0;
|
|
97
|
+
border-bottom: 2px solid transparent;
|
|
86
98
|
}
|
|
87
99
|
}
|
|
88
|
-
|
|
89
|
-
.tab[data-selected]::before {
|
|
90
|
-
/* High contrast also doesn't see the pseudo element created to show the active tab. */
|
|
91
|
-
content: '';
|
|
92
|
-
position: absolute;
|
|
93
|
-
left: 0;
|
|
94
|
-
right: 0;
|
|
95
|
-
bottom: 0;
|
|
96
|
-
border-bottom: 2px solid transparent;
|
|
97
|
-
}
|
|
98
100
|
}
|
|
@@ -1,67 +1,71 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
@layer kz-components {
|
|
2
|
+
.container {
|
|
3
|
+
position: relative;
|
|
4
|
+
}
|
|
4
5
|
|
|
5
|
-
.tabList {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
6
|
+
.tabList {
|
|
7
|
+
border-bottom: 1px solid var(--color-gray-300);
|
|
8
|
+
padding: var(--spacing-6) 0 0;
|
|
9
|
+
width: 100%;
|
|
10
|
+
height: 100%;
|
|
11
|
+
overflow-x: scroll;
|
|
12
|
+
white-space: nowrap;
|
|
13
|
+
scrollbar-width: none;
|
|
14
|
+
scroll-behavior: smooth;
|
|
15
|
+
}
|
|
15
16
|
|
|
16
|
-
.noPadding {
|
|
17
|
-
|
|
18
|
-
}
|
|
17
|
+
.noPadding {
|
|
18
|
+
padding: 0;
|
|
19
|
+
}
|
|
19
20
|
|
|
20
|
-
.leftArrow,
|
|
21
|
-
.rightArrow {
|
|
22
|
-
|
|
21
|
+
.leftArrow,
|
|
22
|
+
.rightArrow {
|
|
23
|
+
--icon-size: 24;
|
|
23
24
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
position: absolute;
|
|
29
|
+
|
|
30
|
+
/* from $ca-z-index-fixed */
|
|
31
|
+
z-index: 1030;
|
|
32
|
+
background: var(--color-white);
|
|
33
|
+
inset-block: 0 1px;
|
|
34
|
+
width: 48px;
|
|
35
|
+
cursor: default;
|
|
36
|
+
user-select: none;
|
|
37
|
+
}
|
|
35
38
|
|
|
36
|
-
/*
|
|
39
|
+
/*
|
|
37
40
|
* Note: we're purposefully using directional properties instead of start/end for positioning and styling related to the carousel arrows
|
|
38
41
|
*/
|
|
39
|
-
.leftArrow {
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
+
.leftArrow {
|
|
43
|
+
left: 0;
|
|
44
|
+
}
|
|
42
45
|
|
|
43
|
-
.leftArrow,
|
|
44
|
-
.leftArrow:hover {
|
|
45
|
-
|
|
46
|
-
}
|
|
46
|
+
.leftArrow,
|
|
47
|
+
.leftArrow:hover {
|
|
48
|
+
border-right: 1px solid var(--color-gray-300);
|
|
49
|
+
}
|
|
47
50
|
|
|
48
|
-
.rightArrow {
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
+
.rightArrow {
|
|
52
|
+
right: 0;
|
|
53
|
+
}
|
|
51
54
|
|
|
52
|
-
.rightArrow,
|
|
53
|
-
.rightArrow:hover {
|
|
54
|
-
|
|
55
|
-
}
|
|
55
|
+
.rightArrow,
|
|
56
|
+
.rightArrow:hover {
|
|
57
|
+
border-left: 1px solid var(--color-gray-300);
|
|
58
|
+
}
|
|
56
59
|
|
|
57
|
-
.leftArrow:hover,
|
|
58
|
-
.rightArrow:hover {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
60
|
+
.leftArrow:hover,
|
|
61
|
+
.rightArrow:hover {
|
|
62
|
+
background: var(--color-blue-200);
|
|
63
|
+
color: var(--color-blue-500);
|
|
64
|
+
}
|
|
62
65
|
|
|
63
|
-
.leftArrow:active,
|
|
64
|
-
.rightArrow:active {
|
|
65
|
-
|
|
66
|
-
|
|
66
|
+
.leftArrow:active,
|
|
67
|
+
.rightArrow:active {
|
|
68
|
+
background: var(--color-blue-100);
|
|
69
|
+
color: var(--color-blue-500);
|
|
70
|
+
}
|
|
67
71
|
}
|
|
@@ -75,7 +75,7 @@ export const TabList = (props: TabListProps): JSX.Element => {
|
|
|
75
75
|
setLeftArrowEnabled(false)
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
|
-
threshold: 0.
|
|
78
|
+
threshold: 0.8,
|
|
79
79
|
root: containerElement,
|
|
80
80
|
},
|
|
81
81
|
)
|
|
@@ -90,7 +90,7 @@ export const TabList = (props: TabListProps): JSX.Element => {
|
|
|
90
90
|
setRightArrowEnabled(false)
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
|
-
threshold: 0.
|
|
93
|
+
threshold: 0.8,
|
|
94
94
|
root: containerElement,
|
|
95
95
|
},
|
|
96
96
|
)
|
|
@@ -100,7 +100,7 @@ export const TabList = (props: TabListProps): JSX.Element => {
|
|
|
100
100
|
firstTabObserver.disconnect()
|
|
101
101
|
lastTabObserver.disconnect()
|
|
102
102
|
}
|
|
103
|
-
}, [isDocumentReady, containerElement, isRTL])
|
|
103
|
+
}, [isDocumentReady, containerElement, isRTL, tabListContext?.collection.size])
|
|
104
104
|
|
|
105
105
|
useEffect(() => {
|
|
106
106
|
if (!isDocumentReady) {
|