@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.
Files changed (204) hide show
  1. package/dist/styles.css +10589 -10782
  2. package/package.json +1 -1
  3. package/src/Avatar/Avatar.module.css +137 -135
  4. package/src/AvatarGroup/AvatarGroup.module.css +58 -56
  5. package/src/Badge/Badge.module.css +98 -96
  6. package/src/Brand/Brand.module.css +5 -3
  7. package/src/BrandMoment/BrandMoment.module.css +147 -145
  8. package/src/BrandMoment/_docs/ExampleHeaders.module.scss +68 -66
  9. package/src/Button/Button/Button.module.scss +135 -133
  10. package/src/Button/GenericButton/GenericButton.module.scss +81 -79
  11. package/src/Button/IconButton/IconButton.module.scss +20 -18
  12. package/src/ButtonGroup/ButtonGroup.module.css +38 -36
  13. package/src/ButtonGroup/ButtonGroup.module.scss +41 -39
  14. package/src/Calendar/CalendarPopover/CalendarPopover.module.scss +19 -17
  15. package/src/Calendar/CalendarRange/CalendarRange.module.scss +48 -46
  16. package/src/Calendar/CalendarSingle/CalendarSingle.module.scss +12 -10
  17. package/src/Calendar/LegacyCalendarRange/LegacyCalendarRange.module.scss +20 -18
  18. package/src/Calendar/baseCalendarClassNames.module.scss +148 -146
  19. package/src/Card/Card.module.css +91 -89
  20. package/src/Checkbox/Checkbox/Checkbox.module.scss +89 -87
  21. package/src/Checkbox/CheckboxField/CheckboxField.module.scss +32 -30
  22. package/src/Checkbox/CheckboxGroup/CheckboxGroup.module.scss +11 -9
  23. package/src/ClearButton/ClearButton.module.scss +32 -30
  24. package/src/Collapsible/Collapsible/Collapsible.module.scss +87 -85
  25. package/src/Collapsible/CollapsibleGroup/CollapsibleGroup.module.scss +9 -7
  26. package/src/Collapsible/ExpertAdviceCollapsible/ExpertAdviceCollapsible.module.scss +35 -33
  27. package/src/Container/Container.module.scss +11 -9
  28. package/src/Content/Content.module.scss +10 -8
  29. package/src/DateInput/DateInput/DateInput.module.scss +7 -5
  30. package/src/DateInput/DateInputDescription/DateInputDescription.module.scss +15 -13
  31. package/src/DateInput/DateInputWithIconButton/DateInputWithIconButton.module.scss +32 -30
  32. package/src/DatePicker/DatePicker.module.scss +7 -5
  33. package/src/DatePicker/subcomponents/DateInputField/DateInputField.module.scss +5 -3
  34. package/src/DateRangePicker/DateRangePicker.module.scss +75 -73
  35. package/src/Divider/Divider.module.scss +35 -33
  36. package/src/EmptyState/EmptyState.module.css +95 -93
  37. package/src/ErrorPage/ErrorPage.module.scss +4 -2
  38. package/src/FieldGroup/FieldGroup.module.scss +8 -6
  39. package/src/FieldMessage/FieldMessage.module.scss +53 -51
  40. package/src/Filter/Filter/Filter.module.css +5 -3
  41. package/src/Filter/Filter/subcomponents/FilterContents/FilterContents.module.css +4 -2
  42. package/src/Filter/Filter/subcomponents/FilterPopover/FilterPopover.module.css +8 -6
  43. package/src/Filter/FilterBar/FilterBar.module.css +17 -15
  44. package/src/Filter/FilterBar/subcomponents/ClearAllButton/ClearAllButton.module.css +7 -5
  45. package/src/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.module.css +4 -2
  46. package/src/Filter/FilterBar/subcomponents/FilterBarMultiSelect/FilterBarMultiSelect.module.css +5 -3
  47. package/src/Filter/FilterButton/FilterButton/FilterButton.module.css +19 -17
  48. package/src/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.module.css +4 -2
  49. package/src/Filter/FilterButton/subcomponents/FilterButtonBase/FilterButtonBase.module.scss +42 -40
  50. package/src/Filter/FilterDatePicker/subcomponents/DateInputField/DateInputField.module.scss +4 -2
  51. package/src/Filter/FilterDatePicker/subcomponents/FilterDatePickerField/FilterDatePickerField.module.scss +6 -4
  52. package/src/Filter/FilterDateRangePicker/FilterDateRangePicker.module.css +7 -5
  53. package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeDisplayLabel/DateRangeDisplayLabel.module.scss +5 -3
  54. package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeInputField/DateRangeInputField.module.scss +36 -34
  55. package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeValidationMessage/DateRangeValidationMessage.module.scss +5 -3
  56. package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/FilterDateRangePickerField.module.scss +7 -5
  57. package/src/Filter/FilterMultiSelect/subcomponents/ListBox/ListBox.module.scss +19 -17
  58. package/src/Filter/FilterMultiSelect/subcomponents/ListBoxSection/ListBoxSection.module.scss +14 -12
  59. package/src/Filter/FilterMultiSelect/subcomponents/LoadMoreButton/LoadMoreButton.module.scss +4 -2
  60. package/src/Filter/FilterMultiSelect/subcomponents/MenuLayout/MenuFooter/MenuFooter.module.scss +7 -5
  61. package/src/Filter/FilterMultiSelect/subcomponents/MenuLayout/MenuLoadingSkeleton/MenuLoadingSkeleton.module.scss +8 -6
  62. package/src/Filter/FilterMultiSelect/subcomponents/MenuPopup/MenuPopup.module.scss +17 -15
  63. package/src/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.module.scss +90 -88
  64. package/src/Filter/FilterMultiSelect/subcomponents/NoResults/NoResults.module.scss +4 -2
  65. package/src/Filter/FilterMultiSelect/subcomponents/SearchInput/SearchInput.module.scss +5 -3
  66. package/src/Filter/FilterMultiSelect/subcomponents/SectionDivider/SectionDivider.module.scss +4 -2
  67. package/src/Filter/FilterMultiSelect/subcomponents/SelectionControlButton/SelectionControlButton.module.scss +52 -50
  68. package/src/Filter/FilterMultiSelect/subcomponents/Trigger/RemovableFilterTrigger/RemovableFilterTrigger.module.css +4 -2
  69. package/src/Filter/FilterSelect/FilterSelect.module.css +9 -7
  70. package/src/Focusable/Focusable.module.scss +4 -2
  71. package/src/GuidanceBlock/GuidanceBlock.module.css +212 -210
  72. package/src/Heading/Heading.module.scss +87 -85
  73. package/src/Icon/_docs/icon.module.scss +35 -33
  74. package/src/Icon/subcomponents/SVG/SVG.module.scss +26 -24
  75. package/src/Illustration/subcomponents/Base/Base.module.scss +100 -98
  76. package/src/Input/Input/Input.module.scss +217 -215
  77. package/src/Input/InputRange/InputRange.module.scss +138 -136
  78. package/src/Input/InputSearch/InputSearch.module.scss +155 -152
  79. package/src/Label/Label.module.scss +82 -80
  80. package/src/LabelledMessage/LabelledMessage.module.scss +8 -6
  81. package/src/LikertScaleLegacy/LikertScaleLegacy.module.scss +266 -264
  82. package/src/Link/Link.module.css +115 -113
  83. package/src/LinkButton/LinkButton.module.css +5 -3
  84. package/src/Loading/LoadingGraphic/LoadingGraphic.module.scss +12 -10
  85. package/src/Loading/LoadingHeading/LoadingHeading.module.scss +44 -42
  86. package/src/Loading/LoadingInput/LoadingInput.module.scss +11 -9
  87. package/src/Loading/LoadingParagraph/LoadingParagraph.module.scss +47 -45
  88. package/src/Loading/LoadingSpinner/LoadingSpinner.module.css +22 -20
  89. package/src/Loading/_mixins.scss +11 -9
  90. package/src/Menu/subcomponents/MenuDropdown/MenuDropdown.module.scss +18 -16
  91. package/src/Menu/subcomponents/MenuHeading/MenuHeading.module.scss +8 -6
  92. package/src/Menu/subcomponents/MenuItem/MenuItem.module.scss +74 -72
  93. package/src/Menu/subcomponents/MenuList/MenuList.module.scss +14 -12
  94. package/src/Menu/subcomponents/StatelessMenu/StatelessMenu.module.scss +4 -2
  95. package/src/Modal/ConfirmationModal/ConfirmationModal.module.scss +126 -124
  96. package/src/Modal/ContextModal/ContextModal.module.scss +72 -70
  97. package/src/Modal/GenericModal/GenericModal.module.scss +92 -90
  98. package/src/Modal/GenericModal/subcomponents/ModalAccessibleDescription/ModalAccessibleDescription.module.scss +4 -2
  99. package/src/Modal/GenericModal/subcomponents/ModalAccessibleLabel/ModalAccessibleLabel.module.scss +25 -23
  100. package/src/Modal/GenericModal/subcomponents/ModalBody/ModalBody.module.scss +5 -3
  101. package/src/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.module.scss +55 -53
  102. package/src/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.module.scss +17 -15
  103. package/src/Modal/InputEditModal/InputEditModal.module.scss +32 -30
  104. package/src/MultiSelect/MultiSelect.module.scss +7 -5
  105. package/src/MultiSelect/subcomponents/Checkbox/Checkbox.module.scss +59 -57
  106. package/src/MultiSelect/subcomponents/MultiSelectOptionField/MultiSelectOptionField.module.scss +55 -53
  107. package/src/MultiSelect/subcomponents/MultiSelectOptions/MultiSelectOptions.module.scss +8 -6
  108. package/src/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.module.scss +66 -64
  109. package/src/MultiSelect/subcomponents/Popover/Popover.module.scss +15 -13
  110. package/src/Notification/ToastNotification/ToastNotificationsList/ToastNotificationsList.module.scss +21 -19
  111. package/src/Notification/subcomponents/GenericNotification/GenericNotification.module.scss +112 -110
  112. package/src/Notification/subcomponents/GenericNotification/_mixins.scss +278 -276
  113. package/src/Notification/subcomponents/NotificationIcon/NotificationIcon.module.css +4 -2
  114. package/src/Pagination/Pagination.module.scss +39 -37
  115. package/src/Pagination/subcomponents/DirectionalLink/DirectionalLink.module.scss +11 -9
  116. package/src/Pagination/subcomponents/PaginationLink/PaginationLink.module.scss +53 -51
  117. package/src/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.module.css +10 -8
  118. package/src/Popover/Popover.module.scss +187 -185
  119. package/src/ProgressBar/ProgressBar.module.scss +75 -73
  120. package/src/ProgressBar/subcomponents/Label/Label.module.scss +6 -4
  121. package/src/Radio/Radio/Radio.module.scss +60 -58
  122. package/src/Radio/RadioField/RadioField.module.scss +33 -31
  123. package/src/Radio/RadioGroup/RadioGroup.module.scss +18 -16
  124. package/src/RichTextEditor/EditableRichTextContent/EditableRichTextContent.module.scss +32 -30
  125. package/src/RichTextEditor/RichTextContent/RichTextContent.module.scss +4 -2
  126. package/src/RichTextEditor/RichTextEditor/RichTextEditor.module.scss +76 -74
  127. package/src/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/ToggleIconButton.module.scss +92 -90
  128. package/src/RichTextEditor/RichTextEditor/subcomponents/Toolbar/Toolbar.module.scss +5 -3
  129. package/src/RichTextEditor/RichTextEditor/subcomponents/ToolbarSection/ToolbarSection.module.scss +12 -10
  130. package/src/RichTextEditor/_mixins.scss +1 -1
  131. package/src/RichTextEditor/utils/plugins/LinkManager/components/LinkModal/LinkModal.module.scss +5 -3
  132. package/src/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/LinkPopover.module.scss +22 -20
  133. package/src/SearchField/SearchField.module.scss +5 -3
  134. package/src/Select/Select.module.scss +17 -0
  135. package/src/Skirt/Skirt.module.scss +24 -22
  136. package/src/Skirt/subcomponents/SkirtCard/SkirtCard.module.scss +13 -11
  137. package/src/Slider/Slider.module.scss +34 -32
  138. package/src/SplitButton/SplitButton.module.scss +5 -3
  139. package/src/SplitButton/subcomponents/ActionButton/ActionButton.module.scss +7 -5
  140. package/src/SplitButton/subcomponents/BaseButton/BaseButton.module.scss +65 -63
  141. package/src/SplitButton/subcomponents/DropdownButton/DropdownButton.module.scss +19 -17
  142. package/src/Table/Table.module.scss +251 -249
  143. package/src/Tabs/subcomponents/Tab.module.scss +81 -79
  144. package/src/Tabs/subcomponents/TabList.module.scss +8 -6
  145. package/src/Tabs/subcomponents/TabPanel.module.scss +10 -8
  146. package/src/Tag/Tag.module.scss +166 -164
  147. package/src/Tag/subcomponents/LiveIcon/LiveIcon.module.css +42 -40
  148. package/src/Text/Text.module.scss +57 -55
  149. package/src/TextArea/TextArea.module.css +102 -99
  150. package/src/TextAreaField/TextAreaField.module.scss +14 -12
  151. package/src/TextField/TextField.module.scss +16 -14
  152. package/src/Tile/MultiActionTile/MultiActionTile.module.scss +7 -5
  153. package/src/Tile/TileGrid/TileGrid.module.scss +18 -16
  154. package/src/Tile/subcomponents/GenericTile/GenericTile.module.scss +123 -121
  155. package/src/TimeField/TimeField.module.scss +57 -55
  156. package/src/TimeField/subcomponents/TimeSegment/TimeSegment.module.scss +37 -35
  157. package/src/TitleBlockZen/TitleBlockZen.module.scss +507 -505
  158. package/src/TitleBlockZen/subcomponents/MainActions.module.scss +11 -9
  159. package/src/TitleBlockZen/subcomponents/MobileActions.module.scss +146 -144
  160. package/src/TitleBlockZen/subcomponents/NavigationTabs.module.scss +105 -103
  161. package/src/TitleBlockZen/subcomponents/TitleBlockMenuItem.module.scss +74 -72
  162. package/src/TitleBlockZen/subcomponents/Toolbar.module.scss +28 -26
  163. package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.scss +105 -103
  164. package/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.module.scss +11 -9
  165. package/src/Tooltip/Tooltip.module.scss +139 -137
  166. package/src/VisuallyHidden/VisuallyHidden.module.scss +10 -8
  167. package/src/Well/Well.module.css +104 -102
  168. package/src/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.module.css +14 -12
  169. package/src/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.module.css +101 -99
  170. package/src/Workflow/subcomponents/Footer/components/Root/FooterRoot.module.css +19 -17
  171. package/src/Workflow/subcomponents/Header/components/Actions/Actions.module.css +14 -12
  172. package/src/Workflow/subcomponents/Header/components/Branding/Branding.module.css +12 -10
  173. package/src/Workflow/subcomponents/Header/components/Root/Root.module.css +19 -17
  174. package/src/Workflow/subcomponents/Header/components/Titles/Titles.module.css +19 -17
  175. package/src/Workflow/subcomponents/Main/Main.module.css +5 -3
  176. package/src/Workflow/subcomponents/Wrapper/Wrapper.module.css +8 -6
  177. package/src/__next__/Button/Button.module.css +220 -218
  178. package/src/__next__/Button/subcomponents/ButtonContent/ButtonContent.module.css +17 -15
  179. package/src/__next__/Button/subcomponents/PendingContent/PendingContent.module.css +15 -13
  180. package/src/__next__/Icon/Icon.module.css +40 -38
  181. package/src/__next__/Icon/_docs/Icon.docs.module.css +13 -11
  182. package/src/__next__/Menu/Menu.module.css +30 -28
  183. package/src/__next__/Menu/MenuItem.module.css +41 -39
  184. package/src/__next__/Select/Select.module.scss +8 -6
  185. package/src/__next__/Select/subcomponents/ListBox/ListBox.module.scss +12 -10
  186. package/src/__next__/Select/subcomponents/ListBoxSection/ListBoxSection.module.scss +15 -13
  187. package/src/__next__/Select/subcomponents/Option/Option.module.scss +53 -51
  188. package/src/__next__/Select/subcomponents/SectionDivider/SectionDivider.module.scss +8 -6
  189. package/src/__next__/Select/subcomponents/SelectPopoverContents/SelectPopoverContents.module.scss +4 -2
  190. package/src/__next__/Select/subcomponents/SelectToggle/SelectToggle.module.scss +105 -103
  191. package/src/__next__/Tabs/subcomponents/Tab/Tab.module.css +81 -79
  192. package/src/__next__/Tabs/subcomponents/TabList/TabList.module.css +56 -54
  193. package/src/__next__/Tabs/subcomponents/TabPanel/TabPanel.module.css +10 -8
  194. package/src/__next__/Tag/RemovableTag/RemovableTag.module.scss +6 -4
  195. package/src/__next__/Tag/RemovableTag/subcomponents/RemoveButton.module.scss +26 -24
  196. package/src/__next__/Tag/Tag/Tag.module.scss +56 -54
  197. package/src/__next__/Tooltip/OverlayArrow.module.scss +40 -38
  198. package/src/__next__/Tooltip/Tooltip.module.scss +39 -37
  199. package/src/__next__/Tooltip/_docs/ApiSpecification.mdx +2 -2
  200. package/src/__next__/Tooltip/_docs/Tooltip.docs.stories.tsx +15 -30
  201. package/src/__next__/Tooltip/_docs/Tooltip.mdx +1 -1
  202. package/src/__next__/Tooltip/_docs/Tooltip.spec.stories.tsx +21 -58
  203. package/src/__next__/Tooltip/_docs/Tooltip.stories.tsx +2 -2
  204. package/src/utils/AppearanceAnim.module.scss +14 -12
@@ -4,101 +4,103 @@
4
4
 
5
5
  /* stylelint-disable no-descending-specificity */
6
6
 
7
- // We're duplicating the CSS instead of manipulating the Menu package to accept the alternate props
8
- .menuListItem {
9
- display: flex;
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
- &:not(.menuItem--disabled):hover,
37
- &:focus {
38
- background: $color-blue-100;
39
- color: $color-blue-500;
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
- .menuItem__Icon {
42
- color: $color-blue-500;
33
+ &:hover {
34
+ text-decoration: none;
43
35
  }
44
36
 
45
- &.menuItem--destructive {
46
- background: $color-red-100;
47
- color: $color-red-600;
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
- &:focus {
56
- outline: none;
57
- }
56
+ &:focus {
57
+ outline: none;
58
+ }
58
59
 
59
- &:focus-visible {
60
- border-color: $color-blue-500;
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
- .menuItem--active {
73
- color: $color-blue-500;
74
- font-weight: $typography-paragraph-bold-font-weight;
75
- }
68
+ .menuItem__Icon {
69
+ color: rgba($color-purple-800-rgb, 0.3);
70
+ }
71
+ }
76
72
 
77
- .menuItem--destructive {
78
- color: $color-red-600;
73
+ .menuItem--active {
74
+ color: $color-blue-500;
75
+ font-weight: $typography-paragraph-bold-font-weight;
76
+ }
79
77
 
80
- .menuItem__Icon {
78
+ .menuItem--destructive {
81
79
  color: $color-red-600;
82
- }
83
- }
84
80
 
85
- .menuItem--destructive.menuItem--disabled {
86
- color: rgba($color-red-600-rgb, 0.3);
81
+ .menuItem__Icon {
82
+ color: $color-red-600;
83
+ }
84
+ }
87
85
 
88
- .menuItem__Icon {
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
- flex-grow: 1;
95
- }
94
+ .menuItem__Label {
95
+ flex-grow: 1;
96
+ }
96
97
 
97
- .menuItem__Icon {
98
- margin-inline-end: calc(#{$spacing-md} / 3);
99
- display: flex;
100
- align-self: flex-start;
101
- transform: translateY(0.2em);
102
- color: rgba($color-purple-800-rgb, 0.75);
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
- .toolbar {
6
- display: flex;
7
- align-items: center;
5
+ @layer kz-components {
6
+ .toolbar {
7
+ display: flex;
8
+ align-items: center;
8
9
 
9
- .toolbarItem {
10
- margin: 0 calc(#{$ca-grid} / 4);
10
+ .toolbarItem {
11
+ margin: 0 calc(#{$ca-grid} / 4);
11
12
 
12
- @include title-block-under-1024 {
13
- margin: 0 calc(#{$ca-grid} / 8);
14
- }
13
+ @include title-block-under-1024 {
14
+ margin: 0 calc(#{$ca-grid} / 8);
15
+ }
15
16
 
16
- &.noGap {
17
- margin: 0;
17
+ &.noGap {
18
+ margin: 0;
19
+ }
18
20
  }
19
- }
20
21
 
21
- .toolbarItem:first-of-type {
22
- @include ca-margin($start: 0, $end: calc(#{$ca-grid} / 4));
22
+ .toolbarItem:first-of-type {
23
+ @include ca-margin($start: 0, $end: calc(#{$ca-grid} / 4));
23
24
 
24
- @include title-block-under-1024 {
25
- @include ca-margin($start: 0, $end: calc(#{$ca-grid} / 8));
26
- }
25
+ @include title-block-under-1024 {
26
+ @include ca-margin($start: 0, $end: calc(#{$ca-grid} / 8));
27
+ }
27
28
 
28
- &.noGap {
29
- margin: 0;
29
+ &.noGap {
30
+ margin: 0;
31
+ }
30
32
  }
31
- }
32
33
 
33
- .toolbarItem:last-of-type {
34
- @include ca-margin($start: calc(#{$ca-grid} / 4), $end: 0);
34
+ .toolbarItem:last-of-type {
35
+ @include ca-margin($start: calc(#{$ca-grid} / 4), $end: 0);
35
36
 
36
- @include title-block-under-1024 {
37
- @include ca-margin($start: calc(#{$ca-grid} / 8), $end: 0);
38
- }
37
+ @include title-block-under-1024 {
38
+ @include ca-margin($start: calc(#{$ca-grid} / 8), $end: 0);
39
+ }
39
40
 
40
- &.noGap {
41
- margin: 0;
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
- $animation-timing: $animation-duration-immediate $animation-easing-function-linear;
8
- $focus-ring-offset: 1px;
7
+ @layer kz-components {
8
+ $animation-timing: $animation-duration-immediate $animation-easing-function-linear;
9
+ $focus-ring-offset: 1px;
9
10
 
10
- .checkbox {
11
- @include form-input-visually-hidden;
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
- .checkbox:not(.disabled) + &:hover,
39
- label:hover .checkbox:not(.disabled) + & {
40
- background-color: $color-purple-500;
41
- background-color: $color-gray-600;
42
- }
43
-
44
- /* stylelint-enable no-descending-specificity */
45
- }
46
-
47
- .thumb {
48
- display: flex;
49
- align-items: center;
50
- justify-content: center;
51
- background-color: $color-white;
52
- border: $border-borderless-border-width $border-borderless-border-style
53
- $border-borderless-border-color;
54
- border-radius: $spacing-md;
55
- transition:
56
- left $animation-timing,
57
- right $animation-timing;
58
- cursor: default;
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
- /* stylelint-disable no-descending-specificity */
68
- .on {
69
- .checkbox + .track {
70
- border-color: $border-borderless-border-color;
71
- background-color: $color-green-500;
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
- .checkbox:focus + .track {
75
- border-color: transparent;
76
- background-color: $color-green-600;
45
+ /* stylelint-enable no-descending-specificity */
77
46
  }
78
47
 
79
48
  .thumb {
80
- position: relative;
81
- right: auto;
82
- inset-inline-start: calc(#{$spacing-md} * 1.1);
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
- opacity: 100%;
87
- transition-delay: $animation-duration-immediate;
88
- transition-duration: $animation-duration-fast;
63
+ color: $color-green-500;
64
+ opacity: 0%;
65
+ transition-duration: $animation-duration-rapid;
89
66
  }
90
67
 
91
- .checkbox:not(.disabled) + .track:hover,
92
- label:hover & .checkbox:not(.disabled) + .track {
93
- background-color: $color-green-600;
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
- .off {
98
- .thumb {
99
- position: relative;
100
- right: auto;
101
- inset-inline-start: calc(#{$spacing-md} * -0.05);
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
- .reversed {
106
- .checkbox:focus + .track,
107
- .checkbox:hover:focus + .track {
108
- outline-color: $color-blue-300;
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
- &.off {
112
- .track {
113
- background-color: rgba($color-white-rgb, 0.2);
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
- background-color: rgba($color-white-rgb, 0.65);
109
+ outline-color: $color-blue-300;
119
110
  }
120
111
 
121
- .checkbox:not(.disabled) + .track:hover,
122
- label:hover & .checkbox:not(.disabled) + .track {
123
- background-color: rgba($color-white-rgb, 0.65);
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
- opacity: 100%;
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
- opacity: 30%;
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
- .container {
4
- display: flex;
5
- }
3
+ @layer kz-components {
4
+ .container {
5
+ display: flex;
6
+ }
6
7
 
7
- .fullWidth {
8
- .inner {
9
- width: 100%;
8
+ .fullWidth {
9
+ .inner {
10
+ width: 100%;
11
+ }
10
12
  }
11
- }
12
13
 
13
- .on label {
14
- font-weight: $typography-paragraph-bold-font-weight;
14
+ .on label {
15
+ font-weight: $typography-paragraph-bold-font-weight;
16
+ }
15
17
  }