@kaizen/components 1.78.1 → 1.79.0
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/styles.css +10589 -10782
- 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/GenericButton/GenericButton.module.scss +81 -79
- package/src/Button/IconButton/IconButton.module.scss +20 -18
- 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/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 +92 -90
- 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/subcomponents/SkirtCard/SkirtCard.module.scss +13 -11
- package/src/Slider/Slider.module.scss +34 -32
- package/src/SplitButton/SplitButton.module.scss +5 -3
- 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/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/__next__/Button/Button.module.css +220 -218
- 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.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__/Select/Select.module.scss +8 -6
- 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/SectionDivider/SectionDivider.module.scss +8 -6
- package/src/__next__/Select/subcomponents/SelectPopoverContents/SelectPopoverContents.module.scss +4 -2
- package/src/__next__/Select/subcomponents/SelectToggle/SelectToggle.module.scss +105 -103
- package/src/__next__/Tabs/subcomponents/Tab/Tab.module.css +81 -79
- package/src/__next__/Tabs/subcomponents/TabList/TabList.module.css +56 -54
- 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/ApiSpecification.mdx +2 -2
- package/src/__next__/Tooltip/_docs/Tooltip.docs.stories.tsx +15 -30
- package/src/__next__/Tooltip/_docs/Tooltip.mdx +1 -1
- package/src/__next__/Tooltip/_docs/Tooltip.spec.stories.tsx +21 -58
- package/src/__next__/Tooltip/_docs/Tooltip.stories.tsx +2 -2
- package/src/utils/AppearanceAnim.module.scss +14 -12
|
@@ -4,101 +4,103 @@
|
|
|
4
4
|
|
|
5
5
|
/* stylelint-disable no-descending-specificity */
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
.menuItem {
|
|
13
|
-
display: flex;
|
|
14
|
-
align-items: center;
|
|
15
|
-
flex: 1 1 auto;
|
|
16
|
-
box-sizing: border-box;
|
|
17
|
-
background: none;
|
|
18
|
-
border: 2px transparent solid;
|
|
19
|
-
text-align: start;
|
|
20
|
-
padding: 6px calc(#{$spacing-sm} - 2px);
|
|
21
|
-
margin: 0 $spacing-xs;
|
|
22
|
-
min-height: calc(1.75 * #{$spacing-md});
|
|
23
|
-
border-radius: 4px;
|
|
24
|
-
font-family: $typography-paragraph-body-font-family;
|
|
25
|
-
font-weight: $typography-paragraph-body-font-weight;
|
|
26
|
-
font-size: $typography-paragraph-body-font-size;
|
|
27
|
-
line-height: $typography-paragraph-body-line-height;
|
|
28
|
-
letter-spacing: $typography-paragraph-body-letter-spacing;
|
|
29
|
-
text-decoration: none;
|
|
30
|
-
color: $color-purple-800;
|
|
31
|
-
|
|
32
|
-
&:hover {
|
|
33
|
-
text-decoration: none;
|
|
7
|
+
@layer kz-components {
|
|
8
|
+
// We're duplicating the CSS instead of manipulating the Menu package to accept the alternate props
|
|
9
|
+
.menuListItem {
|
|
10
|
+
display: flex;
|
|
34
11
|
}
|
|
35
12
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
13
|
+
.menuItem {
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
flex: 1 1 auto;
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
background: none;
|
|
19
|
+
border: 2px transparent solid;
|
|
20
|
+
text-align: start;
|
|
21
|
+
padding: 6px calc(#{$spacing-sm} - 2px);
|
|
22
|
+
margin: 0 $spacing-xs;
|
|
23
|
+
min-height: calc(1.75 * #{$spacing-md});
|
|
24
|
+
border-radius: 4px;
|
|
25
|
+
font-family: $typography-paragraph-body-font-family;
|
|
26
|
+
font-weight: $typography-paragraph-body-font-weight;
|
|
27
|
+
font-size: $typography-paragraph-body-font-size;
|
|
28
|
+
line-height: $typography-paragraph-body-line-height;
|
|
29
|
+
letter-spacing: $typography-paragraph-body-letter-spacing;
|
|
30
|
+
text-decoration: none;
|
|
31
|
+
color: $color-purple-800;
|
|
40
32
|
|
|
41
|
-
|
|
42
|
-
|
|
33
|
+
&:hover {
|
|
34
|
+
text-decoration: none;
|
|
43
35
|
}
|
|
44
36
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
37
|
+
&:not(.menuItem--disabled):hover,
|
|
38
|
+
&:focus {
|
|
39
|
+
background: $color-blue-100;
|
|
40
|
+
color: $color-blue-500;
|
|
48
41
|
|
|
49
42
|
.menuItem__Icon {
|
|
43
|
+
color: $color-blue-500;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&.menuItem--destructive {
|
|
47
|
+
background: $color-red-100;
|
|
50
48
|
color: $color-red-600;
|
|
49
|
+
|
|
50
|
+
.menuItem__Icon {
|
|
51
|
+
color: $color-red-600;
|
|
52
|
+
}
|
|
51
53
|
}
|
|
52
54
|
}
|
|
53
|
-
}
|
|
54
55
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
&:focus {
|
|
57
|
+
outline: none;
|
|
58
|
+
}
|
|
58
59
|
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
&:focus-visible {
|
|
61
|
+
border-color: $color-blue-500;
|
|
62
|
+
}
|
|
61
63
|
}
|
|
62
|
-
}
|
|
63
64
|
|
|
64
|
-
.menuItem--disabled {
|
|
65
|
-
color: rgba($color-purple-800-rgb, 0.3);
|
|
66
|
-
|
|
67
|
-
.menuItem__Icon {
|
|
65
|
+
.menuItem--disabled {
|
|
68
66
|
color: rgba($color-purple-800-rgb, 0.3);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
67
|
|
|
72
|
-
.
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
68
|
+
.menuItem__Icon {
|
|
69
|
+
color: rgba($color-purple-800-rgb, 0.3);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
76
72
|
|
|
77
|
-
.menuItem--
|
|
78
|
-
|
|
73
|
+
.menuItem--active {
|
|
74
|
+
color: $color-blue-500;
|
|
75
|
+
font-weight: $typography-paragraph-bold-font-weight;
|
|
76
|
+
}
|
|
79
77
|
|
|
80
|
-
.
|
|
78
|
+
.menuItem--destructive {
|
|
81
79
|
color: $color-red-600;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
80
|
|
|
85
|
-
.
|
|
86
|
-
|
|
81
|
+
.menuItem__Icon {
|
|
82
|
+
color: $color-red-600;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
87
85
|
|
|
88
|
-
.
|
|
86
|
+
.menuItem--destructive.menuItem--disabled {
|
|
89
87
|
color: rgba($color-red-600-rgb, 0.3);
|
|
88
|
+
|
|
89
|
+
.menuItem__Icon {
|
|
90
|
+
color: rgba($color-red-600-rgb, 0.3);
|
|
91
|
+
}
|
|
90
92
|
}
|
|
91
|
-
}
|
|
92
93
|
|
|
93
|
-
.menuItem__Label {
|
|
94
|
-
|
|
95
|
-
}
|
|
94
|
+
.menuItem__Label {
|
|
95
|
+
flex-grow: 1;
|
|
96
|
+
}
|
|
96
97
|
|
|
97
|
-
.menuItem__Icon {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
98
|
+
.menuItem__Icon {
|
|
99
|
+
margin-inline-end: calc(#{$spacing-md} / 3);
|
|
100
|
+
display: flex;
|
|
101
|
+
align-self: flex-start;
|
|
102
|
+
transform: translateY(0.2em);
|
|
103
|
+
color: rgba($color-purple-800-rgb, 0.75);
|
|
104
|
+
}
|
|
105
|
+
/* stylelint-enable no-descending-specificity */
|
|
103
106
|
}
|
|
104
|
-
/* stylelint-enable no-descending-specificity */
|
|
@@ -2,43 +2,45 @@
|
|
|
2
2
|
@import '../../../styles/utils/legacy/grid';
|
|
3
3
|
@import '../mixins';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
@layer kz-components {
|
|
6
|
+
.toolbar {
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
.toolbarItem {
|
|
11
|
+
margin: 0 calc(#{$ca-grid} / 4);
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
@include title-block-under-1024 {
|
|
14
|
+
margin: 0 calc(#{$ca-grid} / 8);
|
|
15
|
+
}
|
|
15
16
|
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
&.noGap {
|
|
18
|
+
margin: 0;
|
|
19
|
+
}
|
|
18
20
|
}
|
|
19
|
-
}
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
.toolbarItem:first-of-type {
|
|
23
|
+
@include ca-margin($start: 0, $end: calc(#{$ca-grid} / 4));
|
|
23
24
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
@include title-block-under-1024 {
|
|
26
|
+
@include ca-margin($start: 0, $end: calc(#{$ca-grid} / 8));
|
|
27
|
+
}
|
|
27
28
|
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
&.noGap {
|
|
30
|
+
margin: 0;
|
|
31
|
+
}
|
|
30
32
|
}
|
|
31
|
-
}
|
|
32
33
|
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
.toolbarItem:last-of-type {
|
|
35
|
+
@include ca-margin($start: calc(#{$ca-grid} / 4), $end: 0);
|
|
35
36
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
@include title-block-under-1024 {
|
|
38
|
+
@include ca-margin($start: calc(#{$ca-grid} / 8), $end: 0);
|
|
39
|
+
}
|
|
39
40
|
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
&.noGap {
|
|
42
|
+
margin: 0;
|
|
43
|
+
}
|
|
42
44
|
}
|
|
43
45
|
}
|
|
44
46
|
}
|
|
@@ -4,134 +4,136 @@
|
|
|
4
4
|
@import '~@kaizen/design-tokens/sass/animation';
|
|
5
5
|
@import '../../../styles/utils/forms';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
$
|
|
7
|
+
@layer kz-components {
|
|
8
|
+
$animation-timing: $animation-duration-immediate $animation-easing-function-linear;
|
|
9
|
+
$focus-ring-offset: 1px;
|
|
9
10
|
|
|
10
|
-
.checkbox {
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.track {
|
|
15
|
-
position: relative;
|
|
16
|
-
background-color: $color-gray-500;
|
|
17
|
-
border: $border-borderless-border-width $border-borderless-border-style
|
|
18
|
-
$border-borderless-border-color;
|
|
19
|
-
border-radius: $spacing-md;
|
|
20
|
-
box-sizing: content-box;
|
|
21
|
-
width: calc((#{$spacing-md} * 1.05) * 2);
|
|
22
|
-
height: calc(#{$spacing-md} * 1.25);
|
|
23
|
-
padding: 0 calc(#{$spacing-md} * 0.15);
|
|
24
|
-
display: flex;
|
|
25
|
-
align-items: center;
|
|
26
|
-
transition: background-color $animation-timing;
|
|
27
|
-
|
|
28
|
-
/* TODO: Fix */
|
|
29
|
-
/* stylelint-disable no-descending-specificity */
|
|
30
|
-
.checkbox:not(.disabled):focus + &,
|
|
31
|
-
.checkbox:not(.disabled):hover:focus + & {
|
|
32
|
-
border-color: transparent;
|
|
33
|
-
outline: 2px solid $color-blue-500;
|
|
34
|
-
outline-offset: $focus-ring-offset;
|
|
35
|
-
background-color: $color-gray-600;
|
|
11
|
+
.checkbox {
|
|
12
|
+
@include form-input-visually-hidden;
|
|
36
13
|
}
|
|
37
14
|
|
|
38
|
-
.
|
|
39
|
-
|
|
40
|
-
background-color: $color-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
.checkIcon {
|
|
62
|
-
color: $color-green-500;
|
|
63
|
-
opacity: 0%;
|
|
64
|
-
transition-duration: $animation-duration-rapid;
|
|
65
|
-
}
|
|
15
|
+
.track {
|
|
16
|
+
position: relative;
|
|
17
|
+
background-color: $color-gray-500;
|
|
18
|
+
border: $border-borderless-border-width $border-borderless-border-style
|
|
19
|
+
$border-borderless-border-color;
|
|
20
|
+
border-radius: $spacing-md;
|
|
21
|
+
box-sizing: content-box;
|
|
22
|
+
width: calc((#{$spacing-md} * 1.05) * 2);
|
|
23
|
+
height: calc(#{$spacing-md} * 1.25);
|
|
24
|
+
padding: 0 calc(#{$spacing-md} * 0.15);
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
transition: background-color $animation-timing;
|
|
28
|
+
|
|
29
|
+
/* TODO: Fix */
|
|
30
|
+
/* stylelint-disable no-descending-specificity */
|
|
31
|
+
.checkbox:not(.disabled):focus + &,
|
|
32
|
+
.checkbox:not(.disabled):hover:focus + & {
|
|
33
|
+
border-color: transparent;
|
|
34
|
+
outline: 2px solid $color-blue-500;
|
|
35
|
+
outline-offset: $focus-ring-offset;
|
|
36
|
+
background-color: $color-gray-600;
|
|
37
|
+
}
|
|
66
38
|
|
|
67
|
-
|
|
68
|
-
.
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
39
|
+
.checkbox:not(.disabled) + &:hover,
|
|
40
|
+
label:hover .checkbox:not(.disabled) + & {
|
|
41
|
+
background-color: $color-purple-500;
|
|
42
|
+
background-color: $color-gray-600;
|
|
43
|
+
}
|
|
73
44
|
|
|
74
|
-
|
|
75
|
-
border-color: transparent;
|
|
76
|
-
background-color: $color-green-600;
|
|
45
|
+
/* stylelint-enable no-descending-specificity */
|
|
77
46
|
}
|
|
78
47
|
|
|
79
48
|
.thumb {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
justify-content: center;
|
|
52
|
+
background-color: $color-white;
|
|
53
|
+
border: $border-borderless-border-width $border-borderless-border-style
|
|
54
|
+
$border-borderless-border-color;
|
|
55
|
+
border-radius: $spacing-md;
|
|
56
|
+
transition:
|
|
57
|
+
left $animation-timing,
|
|
58
|
+
right $animation-timing;
|
|
59
|
+
cursor: default;
|
|
83
60
|
}
|
|
84
61
|
|
|
85
62
|
.checkIcon {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
transition-duration: $animation-duration-
|
|
63
|
+
color: $color-green-500;
|
|
64
|
+
opacity: 0%;
|
|
65
|
+
transition-duration: $animation-duration-rapid;
|
|
89
66
|
}
|
|
90
67
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
68
|
+
/* stylelint-disable no-descending-specificity */
|
|
69
|
+
.on {
|
|
70
|
+
.checkbox + .track {
|
|
71
|
+
border-color: $border-borderless-border-color;
|
|
72
|
+
background-color: $color-green-500;
|
|
73
|
+
}
|
|
96
74
|
|
|
97
|
-
.
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
75
|
+
.checkbox:focus + .track {
|
|
76
|
+
border-color: transparent;
|
|
77
|
+
background-color: $color-green-600;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.thumb {
|
|
81
|
+
position: relative;
|
|
82
|
+
right: auto;
|
|
83
|
+
inset-inline-start: calc(#{$spacing-md} * 1.1);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.checkIcon {
|
|
87
|
+
opacity: 100%;
|
|
88
|
+
transition-delay: $animation-duration-immediate;
|
|
89
|
+
transition-duration: $animation-duration-fast;
|
|
90
|
+
}
|
|
104
91
|
|
|
105
|
-
.
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
92
|
+
.checkbox:not(.disabled) + .track:hover,
|
|
93
|
+
label:hover & .checkbox:not(.disabled) + .track {
|
|
94
|
+
background-color: $color-green-600;
|
|
95
|
+
}
|
|
109
96
|
}
|
|
110
97
|
|
|
111
|
-
|
|
112
|
-
.
|
|
113
|
-
|
|
98
|
+
.off {
|
|
99
|
+
.thumb {
|
|
100
|
+
position: relative;
|
|
101
|
+
right: auto;
|
|
102
|
+
inset-inline-start: calc(#{$spacing-md} * -0.05);
|
|
114
103
|
}
|
|
104
|
+
}
|
|
115
105
|
|
|
106
|
+
.reversed {
|
|
116
107
|
.checkbox:focus + .track,
|
|
117
108
|
.checkbox:hover:focus + .track {
|
|
118
|
-
|
|
109
|
+
outline-color: $color-blue-300;
|
|
119
110
|
}
|
|
120
111
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
112
|
+
&.off {
|
|
113
|
+
.track {
|
|
114
|
+
background-color: rgba($color-white-rgb, 0.2);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.checkbox:focus + .track,
|
|
118
|
+
.checkbox:hover:focus + .track {
|
|
119
|
+
background-color: rgba($color-white-rgb, 0.65);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.checkbox:not(.disabled) + .track:hover,
|
|
123
|
+
label:hover & .checkbox:not(.disabled) + .track {
|
|
124
|
+
background-color: rgba($color-white-rgb, 0.65);
|
|
125
|
+
}
|
|
124
126
|
}
|
|
125
127
|
}
|
|
126
|
-
}
|
|
127
128
|
|
|
128
|
-
// When the ToggleSwitch is used as part of the ToggleSwitchField, the disabled state opacity is set on the Label component
|
|
129
|
-
label .disabled.track {
|
|
130
|
-
|
|
131
|
-
}
|
|
129
|
+
// When the ToggleSwitch is used as part of the ToggleSwitchField, the disabled state opacity is set on the Label component
|
|
130
|
+
label .disabled.track {
|
|
131
|
+
opacity: 100%;
|
|
132
|
+
}
|
|
132
133
|
|
|
133
|
-
.disabled.track {
|
|
134
|
-
|
|
135
|
-
}
|
|
134
|
+
.disabled.track {
|
|
135
|
+
opacity: 30%;
|
|
136
|
+
}
|
|
136
137
|
|
|
137
|
-
/* stylelint-enable no-descending-specificity */
|
|
138
|
+
/* stylelint-enable no-descending-specificity */
|
|
139
|
+
}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
@import '~@kaizen/design-tokens/sass/typography';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
@layer kz-components {
|
|
4
|
+
.container {
|
|
5
|
+
display: flex;
|
|
6
|
+
}
|
|
6
7
|
|
|
7
|
-
.fullWidth {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
.fullWidth {
|
|
9
|
+
.inner {
|
|
10
|
+
width: 100%;
|
|
11
|
+
}
|
|
10
12
|
}
|
|
11
|
-
}
|
|
12
13
|
|
|
13
|
-
.on label {
|
|
14
|
-
|
|
14
|
+
.on label {
|
|
15
|
+
font-weight: $typography-paragraph-bold-font-weight;
|
|
16
|
+
}
|
|
15
17
|
}
|