@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
|
@@ -4,109 +4,107 @@
|
|
|
4
4
|
@import '~@kaizen/design-tokens/sass/spacing';
|
|
5
5
|
@import '~@kaizen/design-tokens/sass/animation';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
7
|
+
$heading-active-color: $color-gray-200;
|
|
8
|
+
$divider-color: rgba($color-gray-600-rgb, 0.2);
|
|
9
|
+
$container-border-width: var(--border-width-1);
|
|
10
|
+
|
|
11
|
+
// We need a full border radius on this container element, then have classes
|
|
12
|
+
// beneath to toggle nested borders off and on for different use cases.
|
|
13
|
+
.container {
|
|
14
|
+
background-color: $color-white;
|
|
15
|
+
box-shadow: $shadow-small-box-shadow;
|
|
16
|
+
border: $container-border-width var(--border-solid-border-style) var(--color-gray-500);
|
|
17
|
+
border-radius: $border-borderless-border-radius;
|
|
18
|
+
}
|
|
20
19
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
// Round the bottom corners of the header so when the container is open, the
|
|
37
|
-
// header background is not rounded on the corners and flush with the content beneath.
|
|
38
|
-
&.open {
|
|
39
|
-
border-bottom-left-radius: 0;
|
|
40
|
-
border-bottom-right-radius: 0;
|
|
41
|
-
}
|
|
20
|
+
.header {
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
text-align: start;
|
|
24
|
+
background-color: $color-white;
|
|
25
|
+
border: none;
|
|
26
|
+
border-radius: var(--border-borderless-border-radius);
|
|
27
|
+
transition: background-color $animation-duration-rapid;
|
|
28
|
+
padding-block: calc(var(--spacing-12) - #{$container-border-width});
|
|
29
|
+
padding-inline: var(--spacing-24) var(--spacing-12);
|
|
30
|
+
|
|
31
|
+
&:hover {
|
|
32
|
+
background-color: $heading-active-color;
|
|
42
33
|
}
|
|
43
34
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
35
|
+
// Round the bottom corners of the header so when the container is open, the
|
|
36
|
+
// header background is not rounded on the corners and flush with the content beneath.
|
|
37
|
+
&.open {
|
|
38
|
+
border-bottom-left-radius: 0;
|
|
39
|
+
border-bottom-right-radius: 0;
|
|
50
40
|
}
|
|
41
|
+
}
|
|
51
42
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
border-top: 1px $border-solid-border-style $divider-color;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.header {
|
|
61
|
-
border-radius: 0;
|
|
62
|
-
padding-block: var(--spacing-12);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
&:first-of-type > .header {
|
|
66
|
-
border-top-left-radius: $border-borderless-border-radius;
|
|
67
|
-
border-top-right-radius: $border-borderless-border-radius;
|
|
68
|
-
padding-block-start: calc(var(--spacing-12) - #{$container-border-width});
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&:last-of-type > .header:not(.open) {
|
|
72
|
-
border-bottom-left-radius: $border-borderless-border-radius;
|
|
73
|
-
border-bottom-right-radius: $border-borderless-border-radius;
|
|
74
|
-
padding-block-end: calc(var(--spacing-12) - #{$container-border-width});
|
|
75
|
-
}
|
|
43
|
+
.separated {
|
|
44
|
+
& + .separated {
|
|
45
|
+
margin-top: calc(#{$spacing-md} * 0.3);
|
|
46
|
+
margin-right: 0;
|
|
47
|
+
margin-left: 0;
|
|
76
48
|
}
|
|
49
|
+
}
|
|
77
50
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
51
|
+
// When a collapsible group is rendered, we need the first group to have a rounded
|
|
52
|
+
// on top and the last group to have a rounded bottom edge. Then when the last group
|
|
53
|
+
// is open we remove the rounded edge as the content sits beneath and needs to be straight.
|
|
54
|
+
.groupItem {
|
|
55
|
+
& + .groupItem {
|
|
56
|
+
border-top: 1px $border-solid-border-style $divider-color;
|
|
81
57
|
}
|
|
82
58
|
|
|
83
|
-
.
|
|
84
|
-
|
|
59
|
+
.header {
|
|
60
|
+
border-radius: 0;
|
|
61
|
+
padding-block: var(--spacing-12);
|
|
85
62
|
}
|
|
86
63
|
|
|
87
|
-
.
|
|
88
|
-
|
|
64
|
+
&:first-of-type > .header {
|
|
65
|
+
border-top-left-radius: $border-borderless-border-radius;
|
|
66
|
+
border-top-right-radius: $border-borderless-border-radius;
|
|
67
|
+
padding-block-start: calc(var(--spacing-12) - #{$container-border-width});
|
|
89
68
|
}
|
|
90
69
|
|
|
91
|
-
.
|
|
92
|
-
border-bottom:
|
|
70
|
+
&:last-of-type > .header:not(.open) {
|
|
71
|
+
border-bottom-left-radius: $border-borderless-border-radius;
|
|
72
|
+
border-bottom-right-radius: $border-borderless-border-radius;
|
|
73
|
+
padding-block-end: calc(var(--spacing-12) - #{$container-border-width});
|
|
93
74
|
}
|
|
75
|
+
}
|
|
94
76
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
77
|
+
.chevronButton:hover {
|
|
78
|
+
// hack to get rid of the IconButton hover styling because it clashes with the hover styling on the Collapsible header
|
|
79
|
+
background-color: transparent !important; /* stylelint-disable-line declaration-no-important */
|
|
80
|
+
}
|
|
100
81
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
82
|
+
.title {
|
|
83
|
+
flex: 1 1 auto;
|
|
84
|
+
}
|
|
104
85
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
86
|
+
.defaultVariant {
|
|
87
|
+
background-color: $heading-active-color;
|
|
88
|
+
}
|
|
108
89
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
90
|
+
.clearVariant {
|
|
91
|
+
border-bottom: 1px $border-solid-border-style $divider-color;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.sticky {
|
|
95
|
+
position: -webkit-sticky; /* stylelint-disable-line value-no-vendor-prefix */
|
|
96
|
+
position: sticky;
|
|
97
|
+
z-index: 10;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.section {
|
|
101
|
+
padding: var(--spacing-24);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.noPadding {
|
|
105
|
+
padding: 0;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.hide {
|
|
109
|
+
display: none;
|
|
112
110
|
}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
@import '~@kaizen/design-tokens/sass/border';
|
|
2
2
|
@import '~@kaizen/design-tokens/sass/shadow';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
border-radius: $border-borderless-border-radius;
|
|
12
|
-
}
|
|
4
|
+
// We need a full border radius on this container element, then have classes
|
|
5
|
+
// beneath to toggle nested borders off and on for different use cases.
|
|
6
|
+
.container {
|
|
7
|
+
background-color: white;
|
|
8
|
+
box-shadow: $shadow-small-box-shadow;
|
|
9
|
+
border: var(--border-width-1) var(--border-solid-border-style) var(--color-gray-500);
|
|
10
|
+
border-radius: $border-borderless-border-radius;
|
|
13
11
|
}
|
|
@@ -2,48 +2,46 @@
|
|
|
2
2
|
@import '~@kaizen/design-tokens/sass/color';
|
|
3
3
|
@import '~@kaizen/design-tokens/sass/spacing';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
border-color: $color-purple-500;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
// Override Collapsible header
|
|
18
|
-
.expertAdviceContainer > div {
|
|
19
|
-
&:first-of-type {
|
|
20
|
-
background-color: $color-purple-100;
|
|
21
|
-
border-radius: $border-borderless-border-radius;
|
|
22
|
-
}
|
|
5
|
+
.expertAdviceContainer {
|
|
6
|
+
background-color: $color-purple-100;
|
|
7
|
+
border: var(--border-width-1) var(--border-solid-border-style) var(--color-purple-400);
|
|
8
|
+
box-shadow: none;
|
|
9
|
+
color: $color-purple-800;
|
|
10
|
+
|
|
11
|
+
&:hover {
|
|
12
|
+
border-color: $color-purple-500;
|
|
23
13
|
}
|
|
14
|
+
}
|
|
24
15
|
|
|
25
|
-
|
|
16
|
+
// Override Collapsible header
|
|
17
|
+
.expertAdviceContainer > div {
|
|
18
|
+
&:first-of-type {
|
|
26
19
|
background-color: $color-purple-100;
|
|
27
|
-
|
|
28
|
-
align-items: center;
|
|
29
|
-
display: flex;
|
|
20
|
+
border-radius: $border-borderless-border-radius;
|
|
30
21
|
}
|
|
22
|
+
}
|
|
31
23
|
|
|
32
|
-
|
|
33
|
-
|
|
24
|
+
.expertAdviceHeader {
|
|
25
|
+
background-color: $color-purple-100;
|
|
26
|
+
flex: 1 1 auto;
|
|
27
|
+
align-items: center;
|
|
28
|
+
display: flex;
|
|
29
|
+
}
|
|
34
30
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
}
|
|
31
|
+
.expertAdviceHeading {
|
|
32
|
+
color: $color-purple-600;
|
|
39
33
|
|
|
40
|
-
.
|
|
41
|
-
|
|
42
|
-
width: 1.75rem;
|
|
43
|
-
height: 1.75rem;
|
|
34
|
+
.expertAdviceContainer:hover & {
|
|
35
|
+
color: $color-purple-700;
|
|
44
36
|
}
|
|
37
|
+
}
|
|
45
38
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
39
|
+
.expertAdviceIcon {
|
|
40
|
+
margin-inline-end: $spacing-sm;
|
|
41
|
+
width: 1.75rem;
|
|
42
|
+
height: 1.75rem;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.expertAdviceSection {
|
|
46
|
+
padding: 0 $spacing-md $spacing-md;
|
|
49
47
|
}
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
justify-content: center;
|
|
1
|
+
.container {
|
|
2
|
+
display: flex;
|
|
3
|
+
width: 100%;
|
|
4
|
+
justify-content: center;
|
|
6
5
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
6
|
+
* {
|
|
7
|
+
&,
|
|
8
|
+
&::after,
|
|
9
|
+
&::before {
|
|
10
|
+
box-sizing: border-box;
|
|
13
11
|
}
|
|
14
12
|
}
|
|
15
13
|
}
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
@import '~@kaizen/design-tokens/sass/layout';
|
|
2
2
|
@import './variables';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
width: 100%;
|
|
4
|
+
.content {
|
|
5
|
+
max-width: $layout-content-max-width;
|
|
6
|
+
margin: 0 $layout-content-side-margin;
|
|
7
|
+
width: 100%;
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
// Setting a min-width: 0 will maintain the gutter margins when the inner contents has something wider than the page (e.g. scrollable table)
|
|
10
|
+
min-width: 0;
|
|
12
11
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
12
|
+
@media (max-width: calc(#{$layout-breakpoints-large} - 1px)) {
|
|
13
|
+
margin: 0 $content-margin-width-on-medium-and-small;
|
|
16
14
|
}
|
|
17
15
|
}
|
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
@import '~@kaizen/design-tokens/sass/spacing';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
3
|
+
.dateInputDescription {
|
|
4
|
+
display: inline;
|
|
5
|
+
}
|
|
7
6
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
.dateInputFormatContainer {
|
|
8
|
+
margin-inline-start: $spacing-xs;
|
|
9
|
+
white-space: nowrap;
|
|
10
|
+
}
|
|
12
11
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
.descriptionInputFormat {
|
|
13
|
+
display: inline-flex;
|
|
14
|
+
white-space: nowrap;
|
|
15
|
+
}
|
|
17
16
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
17
|
+
.labelSeparator {
|
|
18
|
+
margin-inline-end: $spacing-xs;
|
|
21
19
|
}
|
|
@@ -4,41 +4,39 @@
|
|
|
4
4
|
@import '../../../styles/utils/animation';
|
|
5
5
|
@import '../../../styles/utils/button-reset';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
:
|
|
22
|
-
outline: none;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&:focus-visible {
|
|
26
|
-
outline-offset: -2px;
|
|
27
|
-
outline: $color-blue-500 $border-focus-ring-border-style $border-focus-ring-border-width;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&:hover:not([disabled]) {
|
|
31
|
-
background-color: $color-blue-100;
|
|
32
|
-
color: $color-blue-500;
|
|
33
|
-
}
|
|
7
|
+
$input-disabled-opacity: 0.3;
|
|
8
|
+
|
|
9
|
+
.iconButton {
|
|
10
|
+
@include button-reset;
|
|
11
|
+
|
|
12
|
+
display: flex;
|
|
13
|
+
padding: var(--spacing-6);
|
|
14
|
+
border: $border-solid-border-width $border-solid-border-style transparent;
|
|
15
|
+
border-radius: $border-solid-border-radius;
|
|
16
|
+
position: relative;
|
|
17
|
+
inset-inline-end: -0.35rem;
|
|
18
|
+
top: -40%;
|
|
19
|
+
|
|
20
|
+
:focus {
|
|
21
|
+
outline: none;
|
|
34
22
|
}
|
|
35
23
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
24
|
+
&:focus-visible {
|
|
25
|
+
outline-offset: -2px;
|
|
26
|
+
outline: $color-blue-500 $border-focus-ring-border-style $border-focus-ring-border-width;
|
|
39
27
|
}
|
|
40
28
|
|
|
41
|
-
|
|
42
|
-
|
|
29
|
+
&:hover:not([disabled]) {
|
|
30
|
+
background-color: $color-blue-100;
|
|
31
|
+
color: $color-blue-500;
|
|
43
32
|
}
|
|
44
33
|
}
|
|
34
|
+
|
|
35
|
+
.calendarActive {
|
|
36
|
+
color: $color-blue-500;
|
|
37
|
+
background-color: $color-blue-100;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.disabled {
|
|
41
|
+
opacity: $input-disabled-opacity;
|
|
42
|
+
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
@import '~@kaizen/design-tokens/sass/color';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
3
|
+
.datePicker {
|
|
4
|
+
color: $color-purple-800;
|
|
5
|
+
}
|
|
7
6
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
7
|
+
.isReversed {
|
|
8
|
+
color: $color-yellow-600;
|
|
11
9
|
}
|
|
@@ -91,8 +91,11 @@ describe('<DatePicker />', () => {
|
|
|
91
91
|
expect(screen.getByRole('dialog')).toBeVisible()
|
|
92
92
|
})
|
|
93
93
|
|
|
94
|
-
// TODO: For some reason a single tab no longer jumps out of input to the button
|
|
95
94
|
await user.tab()
|
|
95
|
+
await waitFor(() => {
|
|
96
|
+
expect(input).toHaveFocus()
|
|
97
|
+
})
|
|
98
|
+
|
|
96
99
|
await user.tab()
|
|
97
100
|
await waitFor(() => {
|
|
98
101
|
const calendarButton = screen.getByRole('button', { name: 'Choose date' })
|
|
@@ -102,7 +105,7 @@ describe('<DatePicker />', () => {
|
|
|
102
105
|
await user.tab()
|
|
103
106
|
await waitFor(() => {
|
|
104
107
|
const arrowButton = screen.getByRole('button', {
|
|
105
|
-
name:
|
|
108
|
+
name: 'Go to previous month',
|
|
106
109
|
})
|
|
107
110
|
expect(arrowButton).toHaveFocus()
|
|
108
111
|
})
|
|
@@ -165,8 +168,7 @@ describe('<DatePicker /> - Focus element', () => {
|
|
|
165
168
|
|
|
166
169
|
const month = screen.getByRole('grid', { name: 'March 2022' })
|
|
167
170
|
const dateToSelect = within(month).getByRole('gridcell', { name: '6' })
|
|
168
|
-
|
|
169
|
-
await user.click(dateToSelectButton)
|
|
171
|
+
await user.click(dateToSelect)
|
|
170
172
|
|
|
171
173
|
const input = screen.getByLabelText('Input label', { selector: 'input' })
|
|
172
174
|
expect(input).toHaveFocus()
|
|
@@ -190,8 +192,7 @@ describe('<DatePicker /> - Focus element', () => {
|
|
|
190
192
|
|
|
191
193
|
const month = screen.getByRole('grid', { name: 'March 2022' })
|
|
192
194
|
const selectedDate = within(month).getByRole('gridcell', { name: '1' })
|
|
193
|
-
|
|
194
|
-
expect(selectedDateButton).toHaveFocus()
|
|
195
|
+
expect(selectedDate).toHaveFocus()
|
|
195
196
|
})
|
|
196
197
|
|
|
197
198
|
it('returns focus to the input when the user escapes from the calendar', async () => {
|
|
@@ -232,8 +233,7 @@ describe('<DatePicker /> - Focus element', () => {
|
|
|
232
233
|
|
|
233
234
|
const month = screen.getByRole('grid', { name: 'March 2022' })
|
|
234
235
|
const selectedDate = within(month).getByRole('gridcell', { name: '1' })
|
|
235
|
-
|
|
236
|
-
expect(selectedDateButton).toHaveFocus()
|
|
236
|
+
expect(selectedDate).toHaveFocus()
|
|
237
237
|
})
|
|
238
238
|
|
|
239
239
|
it('returns focus to the calendar button when the user escapes from the calendar', async () => {
|
|
@@ -277,8 +277,7 @@ describe('<DatePicker /> - Focus element', () => {
|
|
|
277
277
|
|
|
278
278
|
const month = screen.getByRole('grid', { name: 'March 2022' })
|
|
279
279
|
const selectedDate = within(month).getByRole('gridcell', { name: '1' })
|
|
280
|
-
|
|
281
|
-
expect(selectedDateButton).toHaveFocus()
|
|
280
|
+
expect(selectedDate).toHaveFocus()
|
|
282
281
|
})
|
|
283
282
|
|
|
284
283
|
it('returns focus to the input when the user escapes from the calendar', async () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useEffect, useId, useRef, useState, type RefObject } from 'react'
|
|
2
2
|
import { useIntl } from '@cultureamp/i18n-react-intl'
|
|
3
|
-
import { type
|
|
3
|
+
import { type DayClickEventHandler } from 'react-day-picker'
|
|
4
4
|
import { FocusOn } from 'react-focus-on'
|
|
5
5
|
import {
|
|
6
6
|
CalendarSingle,
|
|
@@ -161,7 +161,7 @@ export const DatePicker = ({
|
|
|
161
161
|
onDayChange(newDate)
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
-
const handleCalendarDayChange:
|
|
164
|
+
const handleCalendarDayChange: DayClickEventHandler = (date) => {
|
|
165
165
|
if (!isDisabledDate(date, disabledDays)) {
|
|
166
166
|
const newInputValue =
|
|
167
167
|
lastTrigger === 'calendarButton'
|