@kaizen/components 0.0.0-canary-kz-components-css-layer-pre-release-20250527021003 → 0.0.0-canary-fix-fms-popover-20250603003244
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/src/Calendar/CalendarRange/CalendarRange.cjs +13 -12
- package/dist/cjs/src/Calendar/CalendarRange/CalendarRange.module.scss.cjs +3 -2
- package/dist/cjs/src/Calendar/CalendarSingle/CalendarSingle.cjs +8 -8
- package/dist/cjs/src/Calendar/LegacyCalendarRange/LegacyCalendarRange.cjs +12 -11
- package/dist/cjs/src/Calendar/LegacyCalendarRange/LegacyCalendarRange.module.scss.cjs +1 -0
- package/dist/cjs/src/Calendar/baseCalendarClassNames.cjs +13 -11
- package/dist/cjs/src/Calendar/baseCalendarClassNames.module.scss.cjs +2 -1
- package/dist/cjs/src/Calendar/utils/setFocusInCalendar.cjs +6 -7
- package/dist/cjs/src/Filter/FilterBar/subcomponents/FilterBarSelect/FilterBarSelect.cjs +1 -1
- package/dist/cjs/src/Filter/FilterMultiSelect/FilterMultiSelect.cjs +7 -3
- package/dist/cjs/src/Filter/FilterMultiSelect/subcomponents/MenuPopup/MenuPopup.cjs +67 -37
- package/dist/cjs/src/RichTextEditor/utils/schema/marks.cjs +5 -6
- package/dist/esm/src/Calendar/CalendarRange/CalendarRange.mjs +13 -12
- package/dist/esm/src/Calendar/CalendarRange/CalendarRange.module.scss.mjs +3 -2
- package/dist/esm/src/Calendar/CalendarSingle/CalendarSingle.mjs +8 -8
- package/dist/esm/src/Calendar/LegacyCalendarRange/LegacyCalendarRange.mjs +12 -11
- package/dist/esm/src/Calendar/LegacyCalendarRange/LegacyCalendarRange.module.scss.mjs +1 -0
- package/dist/esm/src/Calendar/baseCalendarClassNames.mjs +13 -11
- package/dist/esm/src/Calendar/baseCalendarClassNames.module.scss.mjs +2 -1
- package/dist/esm/src/Calendar/utils/setFocusInCalendar.mjs +6 -7
- package/dist/esm/src/Filter/FilterBar/subcomponents/FilterBarSelect/FilterBarSelect.mjs +1 -1
- package/dist/esm/src/Filter/FilterMultiSelect/FilterMultiSelect.mjs +7 -3
- package/dist/esm/src/Filter/FilterMultiSelect/subcomponents/MenuPopup/MenuPopup.mjs +68 -40
- package/dist/esm/src/RichTextEditor/utils/schema/marks.mjs +5 -6
- package/dist/styles.css +10102 -9903
- package/dist/types/Calendar/CalendarRange/CalendarRange.d.ts +2 -2
- package/dist/types/Calendar/CalendarSingle/CalendarSingle.d.ts +2 -2
- package/dist/types/Calendar/LegacyCalendarRange/LegacyCalendarRange.d.ts +2 -3
- package/dist/types/Calendar/baseCalendarClassNames.d.ts +2 -2
- package/dist/types/Filter/FilterMultiSelect/FilterMultiSelect.d.ts +1 -1
- package/dist/types/Filter/FilterMultiSelect/subcomponents/MenuPopup/MenuPopup.d.ts +7 -4
- package/dist/types/RichTextEditor/utils/schema/marks.d.ts +1 -1
- package/package.json +43 -44
- package/src/Avatar/Avatar.module.css +135 -137
- package/src/AvatarGroup/AvatarGroup.module.css +56 -58
- package/src/Badge/Badge.module.css +96 -98
- package/src/Brand/Brand.module.css +3 -5
- package/src/BrandMoment/BrandMoment.module.css +145 -147
- package/src/BrandMoment/_docs/ExampleHeaders.module.scss +66 -68
- package/src/Button/Button/Button.module.scss +133 -135
- package/src/Button/GenericButton/GenericButton.module.scss +79 -81
- package/src/Button/IconButton/IconButton.module.scss +18 -20
- package/src/ButtonGroup/ButtonGroup.module.css +36 -38
- package/src/ButtonGroup/ButtonGroup.module.scss +39 -41
- package/src/Calendar/CalendarPopover/CalendarPopover.module.scss +17 -19
- package/src/Calendar/CalendarRange/CalendarRange.module.scss +45 -47
- package/src/Calendar/CalendarRange/CalendarRange.tsx +11 -15
- package/src/Calendar/CalendarRange/_docs/CalendarRange.stickersheet.stories.tsx +1 -2
- package/src/Calendar/CalendarSingle/CalendarSingle.module.scss +9 -12
- package/src/Calendar/CalendarSingle/CalendarSingle.tsx +6 -11
- package/src/Calendar/CalendarSingle/_docs/CalendarSingle.stickersheet.stories.tsx +3 -8
- package/src/Calendar/LegacyCalendarRange/LegacyCalendarRange.module.scss +18 -21
- package/src/Calendar/LegacyCalendarRange/LegacyCalendarRange.tsx +11 -15
- package/src/Calendar/baseCalendarClassNames.module.scss +156 -151
- package/src/Calendar/baseCalendarClassNames.ts +15 -13
- package/src/Calendar/utils/isSelectingDayInCalendar.spec.tsx +1 -2
- package/src/Calendar/utils/setFocusInCalendar.spec.tsx +4 -8
- package/src/Calendar/utils/setFocusInCalendar.ts +10 -10
- package/src/Card/Card.module.css +89 -91
- package/src/Checkbox/Checkbox/Checkbox.module.scss +87 -89
- package/src/Checkbox/CheckboxField/CheckboxField.module.scss +30 -32
- package/src/Checkbox/CheckboxGroup/CheckboxGroup.module.scss +9 -11
- package/src/ClearButton/ClearButton.module.scss +30 -32
- package/src/Collapsible/Collapsible/Collapsible.module.scss +85 -87
- package/src/Collapsible/CollapsibleGroup/CollapsibleGroup.module.scss +7 -9
- package/src/Collapsible/ExpertAdviceCollapsible/ExpertAdviceCollapsible.module.scss +33 -35
- package/src/Container/Container.module.scss +9 -11
- package/src/Content/Content.module.scss +8 -10
- package/src/DateInput/DateInput/DateInput.module.scss +5 -7
- package/src/DateInput/DateInputDescription/DateInputDescription.module.scss +13 -15
- package/src/DateInput/DateInputWithIconButton/DateInputWithIconButton.module.scss +30 -32
- package/src/DatePicker/DatePicker.module.scss +5 -7
- package/src/DatePicker/DatePicker.spec.tsx +9 -10
- package/src/DatePicker/DatePicker.tsx +2 -2
- package/src/DatePicker/subcomponents/DateInputField/DateInputField.module.scss +3 -5
- package/src/DateRangePicker/DateRangePicker.module.scss +73 -75
- package/src/Divider/Divider.module.scss +33 -35
- package/src/EmptyState/EmptyState.module.css +93 -95
- package/src/ErrorPage/ErrorPage.module.scss +2 -4
- package/src/FieldGroup/FieldGroup.module.scss +6 -8
- package/src/FieldMessage/FieldMessage.module.scss +51 -53
- package/src/Filter/Filter/Filter.module.css +3 -5
- package/src/Filter/Filter/subcomponents/FilterContents/FilterContents.module.css +2 -4
- package/src/Filter/Filter/subcomponents/FilterPopover/FilterPopover.module.css +6 -8
- package/src/Filter/FilterBar/FilterBar.module.css +15 -17
- package/src/Filter/FilterBar/subcomponents/ClearAllButton/ClearAllButton.module.css +5 -7
- package/src/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.module.css +2 -4
- package/src/Filter/FilterBar/subcomponents/FilterBarDatePicker/FilterBarDatePicker.spec.tsx +2 -4
- package/src/Filter/FilterBar/subcomponents/FilterBarDateRangePicker/FilterBarDateRangePicker.spec.tsx +2 -6
- package/src/Filter/FilterBar/subcomponents/FilterBarMultiSelect/FilterBarMultiSelect.module.css +3 -5
- package/src/Filter/FilterBar/subcomponents/FilterBarMultiSelect/FilterBarMultiSelect.spec.tsx +1 -0
- package/src/Filter/FilterBar/subcomponents/FilterBarSelect/FilterBarSelect.tsx +1 -1
- package/src/Filter/FilterButton/FilterButton/FilterButton.module.css +17 -19
- package/src/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.module.css +2 -4
- package/src/Filter/FilterButton/subcomponents/FilterButtonBase/FilterButtonBase.module.scss +40 -42
- package/src/Filter/FilterDatePicker/FilterDatePicker.spec.tsx +2 -3
- package/src/Filter/FilterDatePicker/subcomponents/DateInputField/DateInputField.module.scss +2 -4
- package/src/Filter/FilterDatePicker/subcomponents/FilterDatePickerField/FilterDatePickerField.module.scss +4 -6
- package/src/Filter/FilterDatePicker/subcomponents/FilterDatePickerField/FilterDatePickerField.spec.tsx +4 -8
- package/src/Filter/FilterDateRangePicker/FilterDateRangePicker.module.css +5 -7
- package/src/Filter/FilterDateRangePicker/_docs/FilterDateRangePicker.stories.tsx +2 -2
- package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeDisplayLabel/DateRangeDisplayLabel.module.scss +3 -5
- package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeInputField/DateRangeInputField.module.scss +34 -36
- package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeValidationMessage/DateRangeValidationMessage.module.scss +3 -5
- package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/FilterDateRangePickerField.module.scss +5 -7
- package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/FilterDateRangePickerField.spec.tsx +8 -14
- package/src/Filter/FilterMultiSelect/FilterMultiSelect.tsx +3 -2
- package/src/Filter/FilterMultiSelect/_docs/FilterMultiSelect.mdx +8 -0
- package/src/Filter/FilterMultiSelect/_docs/FilterMultiSelect.stories.tsx +88 -0
- package/src/Filter/FilterMultiSelect/context/MenuTriggerProvider/MenuTriggerProvider.spec.tsx +2 -18
- package/src/Filter/FilterMultiSelect/subcomponents/ListBox/ListBox.module.scss +17 -19
- package/src/Filter/FilterMultiSelect/subcomponents/ListBoxSection/ListBoxSection.module.scss +12 -14
- package/src/Filter/FilterMultiSelect/subcomponents/LoadMoreButton/LoadMoreButton.module.scss +2 -4
- package/src/Filter/FilterMultiSelect/subcomponents/MenuLayout/MenuFooter/MenuFooter.module.scss +5 -7
- package/src/Filter/FilterMultiSelect/subcomponents/MenuLayout/MenuLoadingSkeleton/MenuLoadingSkeleton.module.scss +6 -8
- package/src/Filter/FilterMultiSelect/subcomponents/MenuPopup/MenuPopup.module.scss +21 -17
- package/src/Filter/FilterMultiSelect/subcomponents/MenuPopup/MenuPopup.tsx +81 -41
- package/src/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.module.scss +88 -90
- package/src/Filter/FilterMultiSelect/subcomponents/NoResults/NoResults.module.scss +2 -4
- package/src/Filter/FilterMultiSelect/subcomponents/SearchInput/SearchInput.module.scss +3 -5
- package/src/Filter/FilterMultiSelect/subcomponents/SectionDivider/SectionDivider.module.scss +2 -4
- package/src/Filter/FilterMultiSelect/subcomponents/SelectionControlButton/SelectionControlButton.module.scss +50 -52
- package/src/Filter/FilterMultiSelect/subcomponents/Trigger/RemovableFilterTrigger/RemovableFilterTrigger.module.css +2 -4
- package/src/Filter/FilterSelect/FilterSelect.module.css +7 -9
- package/src/Focusable/Focusable.module.scss +2 -4
- package/src/GuidanceBlock/GuidanceBlock.module.css +210 -212
- package/src/Heading/Heading.module.scss +85 -87
- package/src/Icon/_docs/icon.module.scss +33 -35
- package/src/Icon/subcomponents/SVG/SVG.module.scss +24 -26
- package/src/Illustration/subcomponents/Base/Base.module.scss +98 -100
- package/src/Input/Input/Input.module.scss +215 -217
- package/src/Input/InputRange/InputRange.module.scss +136 -138
- package/src/Input/InputSearch/InputSearch.module.scss +152 -155
- package/src/Label/Label.module.scss +80 -82
- package/src/LabelledMessage/LabelledMessage.module.scss +6 -8
- package/src/LikertScaleLegacy/LikertScaleLegacy.module.scss +264 -266
- package/src/Link/Link.module.css +113 -115
- package/src/LinkButton/LinkButton.module.css +3 -5
- package/src/Loading/LoadingGraphic/LoadingGraphic.module.scss +10 -12
- package/src/Loading/LoadingHeading/LoadingHeading.module.scss +42 -44
- package/src/Loading/LoadingInput/LoadingInput.module.scss +9 -11
- package/src/Loading/LoadingParagraph/LoadingParagraph.module.scss +45 -47
- package/src/Loading/LoadingSpinner/LoadingSpinner.module.css +20 -22
- package/src/Loading/_mixins.scss +9 -11
- package/src/Menu/subcomponents/MenuDropdown/MenuDropdown.module.scss +16 -18
- package/src/Menu/subcomponents/MenuHeading/MenuHeading.module.scss +6 -8
- package/src/Menu/subcomponents/MenuItem/MenuItem.module.scss +72 -74
- package/src/Menu/subcomponents/MenuList/MenuList.module.scss +12 -14
- package/src/Menu/subcomponents/StatelessMenu/StatelessMenu.module.scss +2 -4
- package/src/Modal/ConfirmationModal/ConfirmationModal.module.scss +124 -126
- package/src/Modal/ContextModal/ContextModal.module.scss +70 -72
- package/src/Modal/GenericModal/GenericModal.module.scss +90 -92
- package/src/Modal/GenericModal/subcomponents/ModalAccessibleDescription/ModalAccessibleDescription.module.scss +2 -4
- package/src/Modal/GenericModal/subcomponents/ModalAccessibleLabel/ModalAccessibleLabel.module.scss +23 -25
- package/src/Modal/GenericModal/subcomponents/ModalBody/ModalBody.module.scss +3 -5
- package/src/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.module.scss +53 -55
- package/src/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.module.scss +15 -17
- package/src/Modal/InputEditModal/InputEditModal.module.scss +30 -32
- package/src/MultiSelect/MultiSelect.module.scss +5 -7
- package/src/MultiSelect/subcomponents/Checkbox/Checkbox.module.scss +57 -59
- package/src/MultiSelect/subcomponents/MultiSelectOptionField/MultiSelectOptionField.module.scss +53 -55
- package/src/MultiSelect/subcomponents/MultiSelectOptions/MultiSelectOptions.module.scss +6 -8
- package/src/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.module.scss +64 -66
- package/src/MultiSelect/subcomponents/Popover/Popover.module.scss +13 -15
- package/src/Notification/ToastNotification/ToastNotificationsList/ToastNotificationsList.module.scss +19 -21
- package/src/Notification/subcomponents/GenericNotification/GenericNotification.module.scss +110 -112
- package/src/Notification/subcomponents/GenericNotification/_mixins.scss +276 -278
- package/src/Notification/subcomponents/NotificationIcon/NotificationIcon.module.css +2 -4
- package/src/Pagination/Pagination.module.scss +37 -39
- package/src/Pagination/subcomponents/DirectionalLink/DirectionalLink.module.scss +9 -11
- package/src/Pagination/subcomponents/PaginationLink/PaginationLink.module.scss +51 -53
- package/src/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.module.css +8 -10
- package/src/Popover/Popover.module.scss +185 -187
- package/src/ProgressBar/ProgressBar.module.scss +73 -75
- package/src/ProgressBar/subcomponents/Label/Label.module.scss +4 -6
- package/src/Radio/Radio/Radio.module.scss +58 -60
- package/src/Radio/RadioField/RadioField.module.scss +32 -33
- package/src/Radio/RadioGroup/RadioGroup.module.scss +16 -18
- package/src/RichTextEditor/EditableRichTextContent/EditableRichTextContent.module.scss +30 -32
- package/src/RichTextEditor/RichTextContent/RichTextContent.module.scss +2 -4
- package/src/RichTextEditor/RichTextEditor/RichTextEditor.module.scss +74 -76
- package/src/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/ToggleIconButton.module.scss +90 -92
- package/src/RichTextEditor/RichTextEditor/subcomponents/Toolbar/Toolbar.module.scss +3 -5
- package/src/RichTextEditor/RichTextEditor/subcomponents/ToolbarSection/ToolbarSection.module.scss +10 -12
- package/src/RichTextEditor/_mixins.scss +1 -2
- package/src/RichTextEditor/utils/plugins/LinkManager/components/LinkModal/LinkModal.module.scss +3 -5
- package/src/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/LinkPopover.module.scss +20 -22
- package/src/RichTextEditor/utils/schema/marks.ts +8 -9
- package/src/SearchField/SearchField.module.scss +3 -5
- package/src/Select/Select.module.scss +0 -17
- package/src/Skirt/Skirt.module.scss +22 -24
- package/src/Skirt/subcomponents/SkirtCard/SkirtCard.module.scss +11 -13
- package/src/Slider/Slider.module.scss +32 -34
- package/src/SplitButton/SplitButton.module.scss +3 -5
- package/src/SplitButton/subcomponents/ActionButton/ActionButton.module.scss +5 -7
- package/src/SplitButton/subcomponents/BaseButton/BaseButton.module.scss +63 -65
- package/src/SplitButton/subcomponents/DropdownButton/DropdownButton.module.scss +17 -19
- package/src/Table/Table.module.scss +249 -251
- package/src/Tabs/subcomponents/Tab.module.scss +79 -81
- package/src/Tabs/subcomponents/TabList.module.scss +6 -8
- package/src/Tabs/subcomponents/TabPanel.module.scss +8 -10
- package/src/Tag/Tag.module.scss +164 -166
- package/src/Tag/subcomponents/LiveIcon/LiveIcon.module.css +40 -42
- package/src/Text/Text.module.scss +55 -57
- package/src/TextArea/TextArea.module.css +100 -103
- package/src/TextAreaField/TextAreaField.module.scss +12 -14
- package/src/TextField/TextField.module.scss +14 -16
- package/src/Tile/MultiActionTile/MultiActionTile.module.scss +5 -7
- package/src/Tile/TileGrid/TileGrid.module.scss +16 -18
- package/src/Tile/subcomponents/GenericTile/GenericTile.module.scss +121 -123
- package/src/TimeField/TimeField.module.scss +55 -57
- package/src/TimeField/subcomponents/TimeSegment/TimeSegment.module.scss +35 -37
- package/src/TitleBlockZen/TitleBlockZen.module.scss +505 -507
- package/src/TitleBlockZen/subcomponents/MainActions.module.scss +9 -11
- package/src/TitleBlockZen/subcomponents/MobileActions.module.scss +144 -146
- package/src/TitleBlockZen/subcomponents/NavigationTabs.module.scss +103 -105
- package/src/TitleBlockZen/subcomponents/TitleBlockMenuItem.module.scss +72 -74
- package/src/TitleBlockZen/subcomponents/Toolbar.module.scss +26 -28
- package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.scss +103 -105
- package/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.module.scss +9 -11
- package/src/Tooltip/Tooltip.module.scss +137 -139
- package/src/VisuallyHidden/VisuallyHidden.module.scss +8 -10
- package/src/Well/Well.module.css +102 -104
- package/src/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.module.css +12 -14
- package/src/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.module.css +99 -101
- package/src/Workflow/subcomponents/Footer/components/Root/FooterRoot.module.css +17 -19
- package/src/Workflow/subcomponents/Header/components/Actions/Actions.module.css +12 -14
- package/src/Workflow/subcomponents/Header/components/Branding/Branding.module.css +10 -12
- package/src/Workflow/subcomponents/Header/components/Root/Root.module.css +17 -19
- package/src/Workflow/subcomponents/Header/components/Titles/Titles.module.css +17 -19
- package/src/Workflow/subcomponents/Main/Main.module.css +3 -5
- package/src/Workflow/subcomponents/Wrapper/Wrapper.module.css +6 -8
- package/src/__next__/Button/Button.module.css +218 -220
- package/src/__next__/Button/subcomponents/ButtonContent/ButtonContent.module.css +15 -17
- package/src/__next__/Button/subcomponents/PendingContent/PendingContent.module.css +13 -15
- package/src/__next__/Icon/Icon.module.css +38 -40
- package/src/__next__/Icon/_docs/Icon.docs.module.css +11 -13
- package/src/__next__/Menu/Menu.module.css +28 -30
- package/src/__next__/Menu/MenuItem.module.css +39 -41
- package/src/__next__/Select/Select.module.scss +6 -8
- package/src/__next__/Select/subcomponents/ListBox/ListBox.module.scss +10 -12
- package/src/__next__/Select/subcomponents/ListBoxSection/ListBoxSection.module.scss +13 -15
- package/src/__next__/Select/subcomponents/Option/Option.module.scss +51 -53
- package/src/__next__/Select/subcomponents/SectionDivider/SectionDivider.module.scss +6 -8
- package/src/__next__/Select/subcomponents/SelectPopoverContents/SelectPopoverContents.module.scss +2 -4
- package/src/__next__/Select/subcomponents/SelectToggle/SelectToggle.module.scss +103 -105
- package/src/__next__/Tabs/subcomponents/Tab/Tab.module.css +79 -81
- package/src/__next__/Tabs/subcomponents/TabList/TabList.module.css +54 -56
- package/src/__next__/Tabs/subcomponents/TabPanel/TabPanel.module.css +8 -10
- package/src/__next__/Tag/RemovableTag/RemovableTag.module.scss +4 -6
- package/src/__next__/Tag/RemovableTag/subcomponents/RemoveButton.module.scss +24 -26
- package/src/__next__/Tag/Tag/Tag.module.scss +54 -56
- package/src/__next__/Tooltip/OverlayArrow.module.scss +38 -40
- package/src/__next__/Tooltip/Tooltip.module.scss +37 -39
- package/src/__next__/Tooltip/_docs/ApiSpecification.mdx +2 -2
- package/src/__next__/Tooltip/_docs/Tooltip.docs.stories.tsx +30 -15
- package/src/__next__/Tooltip/_docs/Tooltip.mdx +1 -1
- package/src/__next__/Tooltip/_docs/Tooltip.spec.stories.tsx +58 -21
- package/src/__next__/Tooltip/_docs/Tooltip.stories.tsx +2 -2
- package/src/utils/AppearanceAnim.module.scss +12 -14
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
1
|
+
.filterBar {
|
|
2
|
+
display: flex;
|
|
3
|
+
padding: var(--spacing-8);
|
|
4
|
+
border-radius: var(--border-solid-border-radius);
|
|
5
|
+
background-color: var(--color-white);
|
|
6
|
+
}
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
8
|
+
@media (width < 768px) {
|
|
9
|
+
.filterBar {
|
|
10
|
+
flex-direction: column;
|
|
13
11
|
}
|
|
12
|
+
}
|
|
14
13
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
14
|
+
.filtersContainer {
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-grow: 1;
|
|
17
|
+
flex-wrap: wrap;
|
|
18
|
+
gap: var(--spacing-8);
|
|
21
19
|
}
|
|
@@ -127,9 +127,8 @@ describe('<FilterBarDatePicker />', () => {
|
|
|
127
127
|
|
|
128
128
|
const targetMonth = screen.getByRole('grid', { name: 'June 2023' })
|
|
129
129
|
const targetDay = within(targetMonth).getByRole('gridcell', { name: '7' })
|
|
130
|
-
const targetBtn = within(targetDay).getByRole('button')
|
|
131
130
|
|
|
132
|
-
await user.click(
|
|
131
|
+
await user.click(targetDay)
|
|
133
132
|
|
|
134
133
|
await waitFor(() => {
|
|
135
134
|
expect(screen.getByRole('button', { name: 'Drank : 7 Jun 2023' })).toBeInTheDocument()
|
|
@@ -149,8 +148,7 @@ describe('<FilterBarDatePicker />', () => {
|
|
|
149
148
|
|
|
150
149
|
const targetMonth = screen.getByRole('grid', { name: 'June 2023' })
|
|
151
150
|
const targetDay = within(targetMonth).getByRole('gridcell', { name: '7' })
|
|
152
|
-
|
|
153
|
-
await user.click(targetBtn)
|
|
151
|
+
await user.click(targetDay)
|
|
154
152
|
|
|
155
153
|
await waitFor(() => {
|
|
156
154
|
expect(onChange.mock.calls).toEqual([[new Date('2023-06-07')]])
|
|
@@ -138,9 +138,7 @@ describe('<FilterBarDateRangePicker />', () => {
|
|
|
138
138
|
|
|
139
139
|
const targetMonth = screen.getByRole('grid', { name: 'June 2022' })
|
|
140
140
|
const targetDay = within(targetMonth).getByRole('gridcell', { name: '23' })
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
await user.click(targetBtn)
|
|
141
|
+
await user.click(targetDay)
|
|
144
142
|
await user.click(document.body) // Exit the focus lock
|
|
145
143
|
|
|
146
144
|
await waitFor(() => {
|
|
@@ -172,9 +170,7 @@ describe('<FilterBarDateRangePicker />', () => {
|
|
|
172
170
|
|
|
173
171
|
const targetMonth = screen.getByRole('grid', { name: 'June 2022' })
|
|
174
172
|
const targetDay = within(targetMonth).getByRole('gridcell', { name: '23' })
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
await user.click(targetBtn)
|
|
173
|
+
await user.click(targetDay)
|
|
178
174
|
|
|
179
175
|
await waitFor(() => {
|
|
180
176
|
expect(onChange).toHaveBeenCalledWith({
|
package/src/Filter/FilterBar/subcomponents/FilterBarMultiSelect/FilterBarMultiSelect.spec.tsx
CHANGED
|
@@ -180,6 +180,7 @@ describe('<FilterBarMultiSelect />', () => {
|
|
|
180
180
|
})
|
|
181
181
|
|
|
182
182
|
await user.click(getByRole('option', { name: 'Fruit Jelly' }))
|
|
183
|
+
await user.keyboard('{Escape}')
|
|
183
184
|
await waitFor(() => {
|
|
184
185
|
expect(getByRole('button', { name: 'Toppings : Pearls, Fruit Jelly' })).toBeInTheDocument()
|
|
185
186
|
})
|
|
@@ -60,7 +60,7 @@ export const FilterBarSelect = <Option extends SelectOption = SelectOption>({
|
|
|
60
60
|
<FilterBarButton {...triggerProps} filterId={id} isRemovable={filterState.isRemovable} />
|
|
61
61
|
)}
|
|
62
62
|
onSelectionChange={(key): void => {
|
|
63
|
-
updateValue(id, key
|
|
63
|
+
updateValue(id, key)
|
|
64
64
|
onSelectionChange?.(key)
|
|
65
65
|
}}
|
|
66
66
|
isOpen={filterState.isOpen}
|
|
@@ -1,25 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
.filterButton {
|
|
2
|
+
gap: var(--spacing-6);
|
|
3
|
+
justify-content: space-between;
|
|
4
|
+
}
|
|
6
5
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
6
|
+
@media (width < 768px) {
|
|
7
|
+
.filterButton {
|
|
8
|
+
flex-grow: 1;
|
|
11
9
|
}
|
|
10
|
+
}
|
|
12
11
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
.labelContainer {
|
|
13
|
+
display: inline-flex;
|
|
14
|
+
flex-wrap: wrap;
|
|
15
|
+
}
|
|
17
16
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
.hasSelectedValues {
|
|
18
|
+
font-weight: bold;
|
|
19
|
+
}
|
|
21
20
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
21
|
+
.labelSeparator {
|
|
22
|
+
margin-inline-end: var(--spacing-6);
|
|
25
23
|
}
|
|
@@ -5,54 +5,52 @@
|
|
|
5
5
|
@import '../../../../../styles/utils/button-reset';
|
|
6
6
|
@import './variables';
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
@include button-reset;
|
|
8
|
+
.filterButtonBase {
|
|
9
|
+
@include button-reset;
|
|
11
10
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
11
|
+
-webkit-font-smoothing: antialiased;
|
|
12
|
+
-moz-osx-font-smoothing: grayscale;
|
|
13
|
+
position: relative;
|
|
14
|
+
display: inline-flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
min-height: 3rem; // 48px
|
|
17
|
+
padding: $spacing-sm;
|
|
18
|
+
border-width: 0;
|
|
19
|
+
border-radius: $border-solid-border-radius;
|
|
20
|
+
background-color: $color-blue-100;
|
|
21
|
+
font-family: $typography-button-secondary-font-family;
|
|
22
|
+
font-weight: $typography-button-secondary-font-weight;
|
|
23
|
+
font-size: $typography-button-secondary-font-size;
|
|
24
|
+
line-height: $typography-button-secondary-line-height;
|
|
25
|
+
letter-spacing: $typography-button-secondary-letter-spacing;
|
|
26
|
+
color: $color-blue-500;
|
|
27
|
+
text-align: start;
|
|
29
28
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
&:hover,
|
|
30
|
+
&:active {
|
|
31
|
+
z-index: 2;
|
|
32
|
+
}
|
|
34
33
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
34
|
+
&:hover,
|
|
35
|
+
&:active,
|
|
36
|
+
&:focus-visible {
|
|
37
|
+
background-color: $color-blue-200;
|
|
38
|
+
}
|
|
40
39
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
&:focus {
|
|
41
|
+
outline: none;
|
|
42
|
+
}
|
|
44
43
|
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
&:focus-visible {
|
|
45
|
+
outline: none;
|
|
47
46
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
47
|
+
&::after {
|
|
48
|
+
content: '';
|
|
49
|
+
z-index: 3;
|
|
50
|
+
position: absolute;
|
|
51
|
+
inset: $focus-ring-offset-outer;
|
|
52
|
+
border-radius: $border-focus-ring-border-radius;
|
|
53
|
+
border: $border-focus-ring-border-width $border-focus-ring-border-style $color-blue-500;
|
|
56
54
|
}
|
|
57
55
|
}
|
|
58
56
|
}
|
|
@@ -75,8 +75,7 @@ describe('<FilterDatePicker />', () => {
|
|
|
75
75
|
|
|
76
76
|
const targetMonth = screen.getByRole('grid', { name: 'May 2022' })
|
|
77
77
|
const targetDay = within(targetMonth).getByRole('gridcell', { name: '2' })
|
|
78
|
-
|
|
79
|
-
await user.click(targetBtn)
|
|
78
|
+
await user.click(targetDay)
|
|
80
79
|
|
|
81
80
|
await waitFor(() => {
|
|
82
81
|
expect(dialog).not.toBeInTheDocument()
|
|
@@ -197,7 +196,7 @@ describe('<FilterDatePicker />', () => {
|
|
|
197
196
|
})
|
|
198
197
|
|
|
199
198
|
const navigateMonthsButton = getByRole('button', {
|
|
200
|
-
name:
|
|
199
|
+
name: 'Go to next month',
|
|
201
200
|
})
|
|
202
201
|
|
|
203
202
|
await user.click(navigateMonthsButton)
|
|
@@ -191,8 +191,7 @@ describe('<FilterDatePickerField />', () => {
|
|
|
191
191
|
const targetDay = within(targetMonth).getByRole('gridcell', {
|
|
192
192
|
name: '15',
|
|
193
193
|
})
|
|
194
|
-
|
|
195
|
-
await user.click(targetBtn)
|
|
194
|
+
await user.click(targetDay)
|
|
196
195
|
|
|
197
196
|
await waitFor(() => {
|
|
198
197
|
expect(inputDateOnSubmit).toHaveBeenCalled()
|
|
@@ -211,8 +210,7 @@ describe('<FilterDatePickerField />', () => {
|
|
|
211
210
|
name: '12',
|
|
212
211
|
})
|
|
213
212
|
expect(targetDay).not.toHaveAttribute('aria-selected')
|
|
214
|
-
|
|
215
|
-
await user.click(targetBtn)
|
|
213
|
+
await user.click(targetDay)
|
|
216
214
|
|
|
217
215
|
await waitFor(() => {
|
|
218
216
|
expect(targetDay).toHaveAttribute('aria-selected', 'true')
|
|
@@ -231,8 +229,7 @@ describe('<FilterDatePickerField />', () => {
|
|
|
231
229
|
const firstSelectedDay = within(targetMonth).getByRole('gridcell', {
|
|
232
230
|
name: '15',
|
|
233
231
|
})
|
|
234
|
-
|
|
235
|
-
await user.click(targetBtn)
|
|
232
|
+
await user.click(firstSelectedDay)
|
|
236
233
|
|
|
237
234
|
await waitFor(() => {
|
|
238
235
|
expect(inputDate).toHaveValue('')
|
|
@@ -326,8 +323,7 @@ describe('<FilterDatePickerField />', () => {
|
|
|
326
323
|
const targetDay = within(targetMonth).getByRole('gridcell', {
|
|
327
324
|
name: '12',
|
|
328
325
|
})
|
|
329
|
-
|
|
330
|
-
await user.click(targetBtn)
|
|
326
|
+
await user.click(targetDay)
|
|
331
327
|
|
|
332
328
|
await waitFor(() => {
|
|
333
329
|
expect(dateErrorContainer).not.toBeInTheDocument()
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
@
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
box-sizing: border-box;
|
|
7
|
-
}
|
|
1
|
+
@media (width <= 320px) {
|
|
2
|
+
.filterDateRangePickerContents {
|
|
3
|
+
padding: var(--spacing-16);
|
|
4
|
+
max-width: 320px;
|
|
5
|
+
box-sizing: border-box;
|
|
8
6
|
}
|
|
9
7
|
}
|
|
@@ -454,8 +454,8 @@ export const OnSmallViewport: Story = {
|
|
|
454
454
|
|
|
455
455
|
await step('Back and Forward arrow and both visible', async () => {
|
|
456
456
|
await waitFor(() => {
|
|
457
|
-
const prevMonth = canvas.getByLabelText(
|
|
458
|
-
const nextMonth = canvas.getByLabelText(
|
|
457
|
+
const prevMonth = canvas.getByLabelText('Go to previous month')
|
|
458
|
+
const nextMonth = canvas.getByLabelText('Go to next month')
|
|
459
459
|
|
|
460
460
|
expect(prevMonth).toBeVisible()
|
|
461
461
|
expect(nextMonth).toBeVisible()
|
|
@@ -1,47 +1,45 @@
|
|
|
1
1
|
@import '~@kaizen/design-tokens/sass/border';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
$input-disabled-opacity: 0.3;
|
|
3
|
+
$input-disabled-opacity: 0.3;
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
.dateRangeInputContainer {
|
|
6
|
+
display: flex;
|
|
7
|
+
margin: 0;
|
|
8
|
+
padding: 0;
|
|
9
|
+
border: none;
|
|
10
|
+
}
|
|
12
11
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
.inputStartDate input {
|
|
13
|
+
border-start-end-radius: 0;
|
|
14
|
+
border-end-end-radius: 0;
|
|
16
15
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
16
|
+
// `postcss-preset-env` v8 has this style as a lower priority
|
|
17
|
+
// than what it wants to override so we must make everything important
|
|
18
|
+
+ [class*='focusRing'] {
|
|
19
|
+
/* stylelint-disable declaration-no-important */
|
|
20
|
+
border-start-end-radius: 0 !important;
|
|
21
|
+
border-end-end-radius: 0 !important;
|
|
22
|
+
/* stylelint-enable declaration-no-important */
|
|
25
23
|
}
|
|
24
|
+
}
|
|
26
25
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
.inputEndDate input {
|
|
27
|
+
position: relative;
|
|
28
|
+
inset-inline-start: calc(-1 * #{$border-solid-border-width});
|
|
29
|
+
border-start-start-radius: 0;
|
|
30
|
+
border-end-start-radius: 0;
|
|
32
31
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
32
|
+
// `postcss-preset-env` v8 has this style as a lower priority
|
|
33
|
+
// than what it wants to override so we must make everything important
|
|
34
|
+
+ [class*='focusRing'] {
|
|
35
|
+
/* stylelint-disable declaration-no-important */
|
|
36
|
+
border-start-start-radius: 0 !important;
|
|
37
|
+
border-end-start-radius: 0 !important;
|
|
38
|
+
inset-inline: calc(-1 * calc(2 * #{$border-solid-border-width} + 1px)) -1px !important;
|
|
39
|
+
/* stylelint-enable declaration-no-important */
|
|
42
40
|
}
|
|
41
|
+
}
|
|
43
42
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
43
|
+
.disabled {
|
|
44
|
+
opacity: $input-disabled-opacity;
|
|
47
45
|
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
@import '~@kaizen/design-tokens/sass/spacing';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
3
|
+
.filterDateRangePickerField {
|
|
4
|
+
display: contents;
|
|
5
|
+
}
|
|
7
6
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
7
|
+
.dateRangeInputField {
|
|
8
|
+
margin-bottom: $spacing-24;
|
|
11
9
|
}
|
|
@@ -254,9 +254,7 @@ describe('<FilterDateRangePickerField />', () => {
|
|
|
254
254
|
name: '12',
|
|
255
255
|
})
|
|
256
256
|
expect(targetDay).not.toHaveAttribute('aria-selected')
|
|
257
|
-
|
|
258
|
-
const targetBtn = within(targetDay).getByRole('button')
|
|
259
|
-
await user.click(targetBtn)
|
|
257
|
+
await user.click(targetDay)
|
|
260
258
|
|
|
261
259
|
await waitFor(() => {
|
|
262
260
|
expect(targetDay).toHaveAttribute('aria-selected', 'true')
|
|
@@ -283,8 +281,7 @@ describe('<FilterDateRangePickerField />', () => {
|
|
|
283
281
|
name: '23',
|
|
284
282
|
})
|
|
285
283
|
expect(targetDay).not.toHaveAttribute('aria-selected')
|
|
286
|
-
|
|
287
|
-
await user.click(targetBtn)
|
|
284
|
+
await user.click(targetDay)
|
|
288
285
|
|
|
289
286
|
await waitFor(() => {
|
|
290
287
|
expect(targetDay).toHaveAttribute('aria-selected', 'true')
|
|
@@ -292,7 +289,7 @@ describe('<FilterDateRangePickerField />', () => {
|
|
|
292
289
|
})
|
|
293
290
|
})
|
|
294
291
|
|
|
295
|
-
it('
|
|
292
|
+
it('clears the inputs when clearing the calendar value', async () => {
|
|
296
293
|
render(
|
|
297
294
|
<FilterDateRangePickerFieldWrapper
|
|
298
295
|
selectedRange={{
|
|
@@ -305,20 +302,18 @@ describe('<FilterDateRangePickerField />', () => {
|
|
|
305
302
|
|
|
306
303
|
const inputStartDate = screen.getByLabelText('Date from')
|
|
307
304
|
const inputEndDate = screen.getByLabelText('Date to')
|
|
308
|
-
|
|
309
|
-
expect(inputStartDate).toHaveValue(startDate)
|
|
305
|
+
expect(inputStartDate).toHaveValue('15 May 2022')
|
|
310
306
|
expect(inputEndDate).toHaveValue('22 May 2022')
|
|
311
307
|
|
|
312
308
|
const targetMonth = screen.getByRole('grid', { name: 'May 2022' })
|
|
313
309
|
const firstSelectedDay = within(targetMonth).getByRole('gridcell', {
|
|
314
310
|
name: '15',
|
|
315
311
|
})
|
|
316
|
-
|
|
317
|
-
await user.click(firstSelectedDayBtn)
|
|
312
|
+
await user.click(firstSelectedDay)
|
|
318
313
|
|
|
319
314
|
await waitFor(() => {
|
|
320
|
-
expect(inputStartDate).toHaveValue(
|
|
321
|
-
expect(inputEndDate).toHaveValue(
|
|
315
|
+
expect(inputStartDate).toHaveValue('')
|
|
316
|
+
expect(inputEndDate).toHaveValue('')
|
|
322
317
|
})
|
|
323
318
|
})
|
|
324
319
|
})
|
|
@@ -639,8 +634,7 @@ describe('<FilterDateRangePickerField />', () => {
|
|
|
639
634
|
const targetDay = within(targetMonth).getByRole('gridcell', {
|
|
640
635
|
name: '12',
|
|
641
636
|
})
|
|
642
|
-
|
|
643
|
-
await user.click(targetBtn)
|
|
637
|
+
await user.click(targetDay)
|
|
644
638
|
|
|
645
639
|
await waitFor(() => {
|
|
646
640
|
expect(dateEndErrorContainer).not.toBeInTheDocument()
|
|
@@ -58,9 +58,10 @@ export const FilterMultiSelect = ({
|
|
|
58
58
|
onSearchInputChange,
|
|
59
59
|
triggerRef,
|
|
60
60
|
className,
|
|
61
|
+
floatingOptions,
|
|
61
62
|
}: FilterMultiSelectProps): JSX.Element => {
|
|
62
63
|
const menuTriggerProps = { isOpen, defaultOpen, onOpenChange, triggerRef }
|
|
63
|
-
const menuPopupProps = { isLoading, loadingSkeleton }
|
|
64
|
+
const menuPopupProps = { isLoading, loadingSkeleton, floatingOptions }
|
|
64
65
|
const disabledKeys: Selection = new Set(
|
|
65
66
|
items?.filter((item) => item.isDisabled === true).map((disabledItem) => disabledItem.value),
|
|
66
67
|
)
|
|
@@ -79,7 +80,7 @@ export const FilterMultiSelect = ({
|
|
|
79
80
|
<MenuTriggerProvider {...menuTriggerProps}>
|
|
80
81
|
<div className={className}>
|
|
81
82
|
<MenuTriggerConsumer>{trigger}</MenuTriggerConsumer>
|
|
82
|
-
<MenuPopup {...menuPopupProps}>
|
|
83
|
+
<MenuPopup aria-label={label} {...menuPopupProps}>
|
|
83
84
|
<SelectionProvider {...selectionProps}>
|
|
84
85
|
<SelectionConsumer>{children}</SelectionConsumer>
|
|
85
86
|
</SelectionProvider>
|
|
@@ -30,6 +30,14 @@ The FilterMultiSelect is a component relies heavily on consumer implemntation. I
|
|
|
30
30
|
|
|
31
31
|
<Canvas of={FilterMultiSelectStories.WithSectionHeaders} />
|
|
32
32
|
|
|
33
|
+
### Limited viewport autoplacement above
|
|
34
|
+
|
|
35
|
+
<Canvas of={FilterMultiSelectStories.AboveIfAvailable} />
|
|
36
|
+
|
|
37
|
+
### With floatingOptions
|
|
38
|
+
|
|
39
|
+
<Canvas of={FilterMultiSelectStories.WithFloatingOptions} />
|
|
40
|
+
|
|
33
41
|
### Async
|
|
34
42
|
|
|
35
43
|
The following is an example of how you may create an async FilterMultiSelect using `@tanstack/react-query`.
|