@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
package/src/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.module.css
CHANGED
|
@@ -1,117 +1,119 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
@layer kz-components {
|
|
2
|
+
.stepsContainer {
|
|
3
|
+
--progress-stepper-indicator-size: 1.25rem;
|
|
3
4
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
5
|
+
width: 100%;
|
|
6
|
+
grid-area: stepper;
|
|
7
|
+
}
|
|
7
8
|
|
|
8
|
-
.stepList {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
.stepList {
|
|
10
|
+
display: none;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
align-items: flex-end;
|
|
13
|
+
list-style: none;
|
|
14
|
+
margin: 0;
|
|
15
|
+
padding: 0;
|
|
16
|
+
|
|
17
|
+
@media (width >= 768px) {
|
|
18
|
+
display: flex;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
15
21
|
|
|
16
|
-
|
|
22
|
+
.step {
|
|
17
23
|
display: flex;
|
|
24
|
+
flex-grow: 1;
|
|
25
|
+
flex-basis: 100%;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
max-width: var(--spacing-96);
|
|
28
|
+
overflow-wrap: break-word;
|
|
29
|
+
position: relative;
|
|
30
|
+
container: step / inline-size;
|
|
18
31
|
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.step {
|
|
22
|
-
display: flex;
|
|
23
|
-
flex-grow: 1;
|
|
24
|
-
flex-basis: 100%;
|
|
25
|
-
justify-content: center;
|
|
26
|
-
max-width: var(--spacing-96);
|
|
27
|
-
overflow-wrap: break-word;
|
|
28
|
-
position: relative;
|
|
29
|
-
container: step / inline-size;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.stepContent {
|
|
33
|
-
display: flex;
|
|
34
|
-
align-items: center;
|
|
35
|
-
flex-direction: column;
|
|
36
|
-
}
|
|
37
32
|
|
|
38
|
-
.
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.stepName {
|
|
45
|
-
display: none;
|
|
46
|
-
text-align: center;
|
|
47
|
-
margin-bottom: var(--spacing-12);
|
|
48
|
-
font-family: var(--typography-paragraph-small-font-family);
|
|
49
|
-
font-size: var(--typography-paragraph-small-font-size);
|
|
50
|
-
line-height: var(--typography-paragraph-small-line-height);
|
|
51
|
-
font-weight: var(--typography-paragraph-bold-font-weight);
|
|
52
|
-
color: var(--color-gray-600);
|
|
53
|
-
}
|
|
33
|
+
.stepContent {
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
}
|
|
54
38
|
|
|
55
|
-
.
|
|
56
|
-
|
|
57
|
-
|
|
39
|
+
.stepIndicator {
|
|
40
|
+
width: var(--progress-stepper-indicator-size);
|
|
41
|
+
height: var(--progress-stepper-indicator-size);
|
|
42
|
+
position: relative;
|
|
43
|
+
}
|
|
58
44
|
|
|
59
|
-
.
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
45
|
+
.stepName {
|
|
46
|
+
display: none;
|
|
47
|
+
text-align: center;
|
|
48
|
+
margin-bottom: var(--spacing-12);
|
|
49
|
+
font-family: var(--typography-paragraph-small-font-family);
|
|
50
|
+
font-size: var(--typography-paragraph-small-font-size);
|
|
51
|
+
line-height: var(--typography-paragraph-small-line-height);
|
|
52
|
+
font-weight: var(--typography-paragraph-bold-font-weight);
|
|
53
|
+
color: var(--color-gray-600);
|
|
54
|
+
}
|
|
68
55
|
|
|
69
|
-
.
|
|
70
|
-
|
|
71
|
-
}
|
|
56
|
+
.stepName.isCurrent {
|
|
57
|
+
color: var(--color-purple-800);
|
|
58
|
+
}
|
|
72
59
|
|
|
73
|
-
.
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
border-radius: var(--border-solid-border-radius);
|
|
82
|
-
inset-inline-start: 100%;
|
|
83
|
-
|
|
84
|
-
/* sets fron the bottom to the centre of the dot */
|
|
85
|
-
top: calc(100% - calc(var(--progress-stepper-indicator-size) / 2));
|
|
86
|
-
transform: translateX(-50%);
|
|
87
|
-
|
|
88
|
-
:dir(rtl) & {
|
|
89
|
-
left: unset;
|
|
90
|
-
right: 100%;
|
|
91
|
-
transform: translateX(50%);
|
|
60
|
+
.stepIcon {
|
|
61
|
+
color: var(--color-purple-800);
|
|
62
|
+
position: absolute;
|
|
63
|
+
width: var(--progress-stepper-indicator-size);
|
|
64
|
+
height: var(--progress-stepper-indicator-size);
|
|
65
|
+
left: 50%;
|
|
66
|
+
top: 50%;
|
|
67
|
+
transform: translate(-50%, -50%);
|
|
92
68
|
}
|
|
93
|
-
}
|
|
94
69
|
|
|
95
|
-
.
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
font-family: var(--typography-paragraph-small-font-family);
|
|
99
|
-
font-weight: var(--typography-paragraph-small-font-weight);
|
|
100
|
-
font-size: var(--typography-paragraph-small-font-size);
|
|
101
|
-
line-height: var(--typography-paragraph-small-line-height);
|
|
70
|
+
.stepIcon.isCompleted {
|
|
71
|
+
color: var(--color-green-500);
|
|
72
|
+
}
|
|
102
73
|
|
|
103
|
-
|
|
104
|
-
/* sr hidden styles */
|
|
105
|
-
position: absolute;
|
|
106
|
-
width: 0;
|
|
74
|
+
.stepDivider {
|
|
107
75
|
height: 0;
|
|
108
|
-
|
|
76
|
+
display: flex;
|
|
77
|
+
position: absolute;
|
|
78
|
+
flex-grow: 1;
|
|
79
|
+
min-width: calc(100% - var(--spacing-24));
|
|
80
|
+
border: solid var(--spacing-1) var(--color-gray-300);
|
|
81
|
+
margin: 0;
|
|
82
|
+
border-radius: var(--border-solid-border-radius);
|
|
83
|
+
inset-inline-start: 100%;
|
|
84
|
+
|
|
85
|
+
/* sets fron the bottom to the centre of the dot */
|
|
86
|
+
top: calc(100% - calc(var(--progress-stepper-indicator-size) / 2));
|
|
87
|
+
transform: translateX(-50%);
|
|
88
|
+
|
|
89
|
+
:dir(rtl) & {
|
|
90
|
+
left: unset;
|
|
91
|
+
right: 100%;
|
|
92
|
+
transform: translateX(50%);
|
|
93
|
+
}
|
|
109
94
|
}
|
|
110
|
-
}
|
|
111
95
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
96
|
+
.stepperDescription {
|
|
97
|
+
display: flex;
|
|
98
|
+
justify-content: center;
|
|
99
|
+
font-family: var(--typography-paragraph-small-font-family);
|
|
100
|
+
font-weight: var(--typography-paragraph-small-font-weight);
|
|
101
|
+
font-size: var(--typography-paragraph-small-font-size);
|
|
102
|
+
line-height: var(--typography-paragraph-small-line-height);
|
|
103
|
+
|
|
104
|
+
@media (width >= 768px) {
|
|
105
|
+
/* sr hidden styles */
|
|
106
|
+
position: absolute;
|
|
107
|
+
width: 0;
|
|
108
|
+
height: 0;
|
|
109
|
+
overflow: hidden;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/* Some defensive CSS for many steps on desktop screens */
|
|
114
|
+
@container step (width >= 4.5rem) {
|
|
115
|
+
.stepName {
|
|
116
|
+
display: inline;
|
|
117
|
+
}
|
|
116
118
|
}
|
|
117
119
|
}
|
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
@layer kz-components {
|
|
2
|
+
.footerRoot {
|
|
3
|
+
display: grid;
|
|
4
|
+
grid-template-areas: 'prev stepper next';
|
|
5
|
+
grid-template-columns: 1fr 2fr 1fr;
|
|
6
|
+
flex-grow: 1;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
align-items: center;
|
|
9
|
+
padding: var(--spacing-24) var(--spacing-12);
|
|
10
|
+
background: var(--color-white);
|
|
11
|
+
gap: var(--spacing-16);
|
|
12
|
+
border-top: 2px solid rgb(var(--color-gray-600-rgb), 0.1);
|
|
12
13
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
@media (width >= 768px) {
|
|
15
|
+
grid-template-columns: 1fr 5fr 1fr;
|
|
16
|
+
padding: var(--spacing-24) var(--spacing-32);
|
|
17
|
+
position: sticky;
|
|
18
|
+
bottom: 0;
|
|
19
|
+
z-index: 1;
|
|
20
|
+
}
|
|
19
21
|
}
|
|
20
22
|
}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
@layer kz-components {
|
|
2
|
+
.actions {
|
|
3
|
+
grid-area: actions;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
flex-grow: 1;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
align-items: center;
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
@media (width >= 768px) {
|
|
11
|
+
flex-direction: row;
|
|
12
|
+
align-items: flex-start;
|
|
13
|
+
justify-content: flex-end;
|
|
14
|
+
margin-top: calc(-1 * var(--spacing-12));
|
|
15
|
+
}
|
|
14
16
|
}
|
|
15
17
|
}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
@layer kz-components {
|
|
2
|
+
.branding {
|
|
3
|
+
grid-area: branding;
|
|
4
|
+
display: flex;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
padding-top: var(--spacing-4);
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
@media (width >=768px) {
|
|
9
|
+
justify-content: unset;
|
|
10
|
+
}
|
|
9
11
|
}
|
|
10
|
-
}
|
|
11
12
|
|
|
12
|
-
.logo {
|
|
13
|
-
|
|
13
|
+
.logo {
|
|
14
|
+
width: 7.5rem;
|
|
15
|
+
}
|
|
14
16
|
}
|
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
@layer kz-components {
|
|
2
|
+
.root {
|
|
3
|
+
display: grid;
|
|
4
|
+
background-color: var(--color-white);
|
|
5
|
+
grid-template: 'branding' min-content 'titles' max-content 'actions' min-content / 1fr;
|
|
6
|
+
flex-grow: 1;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
align-items: center;
|
|
9
|
+
text-align: center;
|
|
10
|
+
padding: var(--spacing-24);
|
|
11
|
+
gap: var(--spacing-16);
|
|
12
|
+
border-bottom: 2px solid rgb(var(--color-gray-600-rgb), 0.1);
|
|
12
13
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
@media (width >= 768px) {
|
|
15
|
+
align-items: start;
|
|
16
|
+
grid-template: 'branding titles actions' min-content / 1fr max-content 1fr;
|
|
17
|
+
position: sticky;
|
|
18
|
+
top: 0;
|
|
19
|
+
z-index: 1;
|
|
20
|
+
}
|
|
19
21
|
}
|
|
20
22
|
}
|
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
@layer kz-components {
|
|
2
|
+
.titles {
|
|
3
|
+
grid-area: titles;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
flex-grow: 1;
|
|
9
|
+
}
|
|
9
10
|
|
|
10
|
-
.pageTitle {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
11
|
+
.pageTitle {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
}
|
|
14
15
|
|
|
15
|
-
.prefix {
|
|
16
|
-
|
|
17
|
-
}
|
|
16
|
+
.prefix {
|
|
17
|
+
margin-bottom: var(--spacing-4);
|
|
18
|
+
}
|
|
18
19
|
|
|
19
|
-
.statusTag {
|
|
20
|
-
|
|
20
|
+
.statusTag {
|
|
21
|
+
margin-top: var(--spacing-8);
|
|
22
|
+
}
|
|
21
23
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
@layer kz-components {
|
|
2
|
+
.wrapper {
|
|
3
|
+
display: grid;
|
|
4
|
+
grid-template-rows: min-content 1fr min-content;
|
|
5
|
+
position: relative;
|
|
6
|
+
min-height: 100vh;
|
|
7
|
+
background: var(--color-gray-100);
|
|
8
|
+
}
|
|
7
9
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { render } from '@testing-library/react'
|
|
3
|
+
import { SingleSelect } from './SingleSelect'
|
|
4
|
+
import { singleMockItems } from './_docs/mockData'
|
|
5
|
+
|
|
6
|
+
const SingleSelectWrapper = (): JSX.Element => (
|
|
7
|
+
<SingleSelect>
|
|
8
|
+
<SingleSelect.List>
|
|
9
|
+
{singleMockItems.map((item) => (
|
|
10
|
+
<SingleSelect.ListItem key={item.value} value={{ value: item.value }}>
|
|
11
|
+
{item.label}
|
|
12
|
+
</SingleSelect.ListItem>
|
|
13
|
+
))}
|
|
14
|
+
</SingleSelect.List>
|
|
15
|
+
</SingleSelect>
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
describe('<SingleSelect />', () => {
|
|
19
|
+
describe('renders', () => {
|
|
20
|
+
it('a basic select component', () => {
|
|
21
|
+
const { getByRole } = render(<SingleSelectWrapper />)
|
|
22
|
+
const select = getByRole('button')
|
|
23
|
+
expect(select).toBeInTheDocument()
|
|
24
|
+
})
|
|
25
|
+
})
|
|
26
|
+
})
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React, { type HTMLAttributes, type PropsWithChildren } from 'react'
|
|
2
|
+
import { Popover as RACPopover, Select as RACSelect } from 'react-aria-components'
|
|
3
|
+
import { type OverrideClassName } from '~components/types/OverrideClassName'
|
|
4
|
+
import { List, ListItem, ListSection, Trigger } from './subcomponents'
|
|
5
|
+
import styles from './SingleSelect.module.css'
|
|
6
|
+
|
|
7
|
+
export type SingleSelectProps = {
|
|
8
|
+
children?: React.ReactNode
|
|
9
|
+
} & OverrideClassName<HTMLAttributes<Element>>
|
|
10
|
+
|
|
11
|
+
export const SingleSelect = ({
|
|
12
|
+
classNameOverride,
|
|
13
|
+
children,
|
|
14
|
+
...restProps
|
|
15
|
+
}: PropsWithChildren<SingleSelectProps>): JSX.Element => {
|
|
16
|
+
return (
|
|
17
|
+
<RACSelect className={classNameOverride} placeholder="" {...restProps}>
|
|
18
|
+
<Trigger />
|
|
19
|
+
<RACPopover className={styles.popover}>{children}</RACPopover>
|
|
20
|
+
</RACSelect>
|
|
21
|
+
)
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
SingleSelect.displayName = 'SingleSelect'
|
|
25
|
+
SingleSelect.List = List
|
|
26
|
+
SingleSelect.ListItem = ListItem
|
|
27
|
+
SingleSelect.ListSection = ListSection
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Canvas, Controls, DocsStory, Meta } from '@storybook/blocks'
|
|
2
|
+
import { ResourceLinks, KAIOInstallation, AlphaNotice } from '~storybook/components'
|
|
3
|
+
import * as SingleSelectStories from './SingleSelect.stories'
|
|
4
|
+
|
|
5
|
+
<Meta of={SingleSelectStories} />
|
|
6
|
+
|
|
7
|
+
# SingleSelect
|
|
8
|
+
|
|
9
|
+
<ResourceLinks
|
|
10
|
+
sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/__alpha__/SingleSelect"
|
|
11
|
+
figma=""
|
|
12
|
+
designGuidelines=""
|
|
13
|
+
/>
|
|
14
|
+
|
|
15
|
+
<AlphaNotice />
|
|
16
|
+
|
|
17
|
+
<KAIOInstallation exportNames="SingleSelect" isAlpha />
|
|
18
|
+
|
|
19
|
+
## Overview
|
|
20
|
+
|
|
21
|
+
{/* @todo: Update summary. */}
|
|
22
|
+
Brief summary of the component here.
|
|
23
|
+
|
|
24
|
+
<Canvas of={SingleSelectStories.Playground} />
|
|
25
|
+
<Controls of={SingleSelectStories.Playground} />
|
|
26
|
+
|
|
27
|
+
## API
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { type Meta } from '@storybook/react'
|
|
3
|
+
import { StickerSheet, type StickerSheetStory } from '~storybook/components/StickerSheet'
|
|
4
|
+
import { SingleSelect } from '../index'
|
|
5
|
+
import { groupedMockItems, singleMockItems } from './mockData'
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
title: 'Components/SingleSelect/SingleSelect (alpha)',
|
|
9
|
+
parameters: {
|
|
10
|
+
chromatic: { disable: false },
|
|
11
|
+
controls: { disable: true },
|
|
12
|
+
},
|
|
13
|
+
} satisfies Meta
|
|
14
|
+
|
|
15
|
+
const StickerSheetTemplate: StickerSheetStory = {
|
|
16
|
+
render: ({ isReversed }) => {
|
|
17
|
+
return (
|
|
18
|
+
<StickerSheet isReversed={isReversed} title="SingleSelect" headers={['Items', 'Grouped']}>
|
|
19
|
+
<StickerSheet.Row>
|
|
20
|
+
<SingleSelect>
|
|
21
|
+
<SingleSelect.List>
|
|
22
|
+
{singleMockItems.map((item) => (
|
|
23
|
+
<SingleSelect.ListItem key={item.value} value={{ value: item.value }}>
|
|
24
|
+
{item.label}
|
|
25
|
+
</SingleSelect.ListItem>
|
|
26
|
+
))}
|
|
27
|
+
</SingleSelect.List>
|
|
28
|
+
</SingleSelect>
|
|
29
|
+
|
|
30
|
+
<SingleSelect>
|
|
31
|
+
<SingleSelect.List>
|
|
32
|
+
{groupedMockItems.map((section) => (
|
|
33
|
+
<SingleSelect.ListSection name={section.label} key={section.label}>
|
|
34
|
+
{section.options.map((item) => (
|
|
35
|
+
<SingleSelect.ListItem key={item.value} value={{ value: item.value }}>
|
|
36
|
+
{item.label}
|
|
37
|
+
</SingleSelect.ListItem>
|
|
38
|
+
))}
|
|
39
|
+
</SingleSelect.ListSection>
|
|
40
|
+
))}
|
|
41
|
+
</SingleSelect.List>
|
|
42
|
+
</SingleSelect>
|
|
43
|
+
</StickerSheet.Row>
|
|
44
|
+
</StickerSheet>
|
|
45
|
+
)
|
|
46
|
+
},
|
|
47
|
+
/** @note: Only required if you have pseudo states, otherwise this can be removed */
|
|
48
|
+
parameters: {
|
|
49
|
+
/** @todo: Remove any inapplicable pseudo states */
|
|
50
|
+
pseudo: {
|
|
51
|
+
hover: '[data-sb-pseudo-styles="hover"]',
|
|
52
|
+
active: '[data-sb-pseudo-styles="active"]',
|
|
53
|
+
focus: '[data-sb-pseudo-styles="focus"]',
|
|
54
|
+
focusVisible: '[data-sb-pseudo-styles="focus"]',
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export const StickerSheetDefault: StickerSheetStory = {
|
|
60
|
+
...StickerSheetTemplate,
|
|
61
|
+
name: 'Sticker Sheet (Default)',
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export const StickerSheetReversed: StickerSheetStory = {
|
|
65
|
+
...StickerSheetTemplate,
|
|
66
|
+
name: 'Sticker Sheet (Reversed)',
|
|
67
|
+
parameters: {
|
|
68
|
+
/** @note: Only required if template has parameters, otherwise this spread can be removed */
|
|
69
|
+
...StickerSheetTemplate.parameters,
|
|
70
|
+
backgrounds: { default: 'Purple 700' },
|
|
71
|
+
},
|
|
72
|
+
args: { isReversed: true },
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export const StickerSheetRTL: StickerSheetStory = {
|
|
76
|
+
...StickerSheetTemplate,
|
|
77
|
+
name: 'Sticker Sheet (RTL)',
|
|
78
|
+
parameters: {
|
|
79
|
+
/** @note: Only required if template has parameters, otherwise this spread can be removed */
|
|
80
|
+
...StickerSheetTemplate.parameters,
|
|
81
|
+
textDirection: 'rtl',
|
|
82
|
+
},
|
|
83
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type Meta, type StoryObj } from '@storybook/react'
|
|
2
|
+
import { SingleSelect } from '../index'
|
|
3
|
+
|
|
4
|
+
const meta = {
|
|
5
|
+
title: 'Components/SingleSelect/SingleSelect (alpha)',
|
|
6
|
+
component: SingleSelect,
|
|
7
|
+
args: {},
|
|
8
|
+
} satisfies Meta<typeof SingleSelect>
|
|
9
|
+
|
|
10
|
+
export default meta
|
|
11
|
+
|
|
12
|
+
type Story = StoryObj<typeof meta>
|
|
13
|
+
|
|
14
|
+
export const Playground: Story = {
|
|
15
|
+
args: {},
|
|
16
|
+
parameters: {
|
|
17
|
+
docs: {
|
|
18
|
+
canvas: {
|
|
19
|
+
sourceState: 'shown',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
}
|