@kaizen/components 1.78.0 → 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 (207) hide show
  1. package/dist/cjs/src/Filter/FilterBar/subcomponents/FilterBarSelect/FilterBarSelect.cjs +1 -1
  2. package/dist/esm/src/Filter/FilterBar/subcomponents/FilterBarSelect/FilterBarSelect.mjs +1 -1
  3. package/dist/styles.css +9823 -10017
  4. package/package.json +27 -26
  5. package/src/Avatar/Avatar.module.css +137 -135
  6. package/src/AvatarGroup/AvatarGroup.module.css +58 -56
  7. package/src/Badge/Badge.module.css +98 -96
  8. package/src/Brand/Brand.module.css +5 -3
  9. package/src/BrandMoment/BrandMoment.module.css +147 -145
  10. package/src/BrandMoment/_docs/ExampleHeaders.module.scss +68 -66
  11. package/src/Button/Button/Button.module.scss +135 -133
  12. package/src/Button/GenericButton/GenericButton.module.scss +81 -79
  13. package/src/Button/IconButton/IconButton.module.scss +20 -18
  14. package/src/ButtonGroup/ButtonGroup.module.css +38 -36
  15. package/src/ButtonGroup/ButtonGroup.module.scss +41 -39
  16. package/src/Calendar/CalendarPopover/CalendarPopover.module.scss +19 -17
  17. package/src/Calendar/CalendarRange/CalendarRange.module.scss +48 -46
  18. package/src/Calendar/CalendarSingle/CalendarSingle.module.scss +12 -10
  19. package/src/Calendar/LegacyCalendarRange/LegacyCalendarRange.module.scss +20 -18
  20. package/src/Calendar/baseCalendarClassNames.module.scss +148 -146
  21. package/src/Card/Card.module.css +91 -89
  22. package/src/Checkbox/Checkbox/Checkbox.module.scss +89 -87
  23. package/src/Checkbox/CheckboxField/CheckboxField.module.scss +32 -30
  24. package/src/Checkbox/CheckboxGroup/CheckboxGroup.module.scss +11 -9
  25. package/src/ClearButton/ClearButton.module.scss +32 -30
  26. package/src/Collapsible/Collapsible/Collapsible.module.scss +87 -85
  27. package/src/Collapsible/CollapsibleGroup/CollapsibleGroup.module.scss +9 -7
  28. package/src/Collapsible/ExpertAdviceCollapsible/ExpertAdviceCollapsible.module.scss +35 -33
  29. package/src/Container/Container.module.scss +11 -9
  30. package/src/Content/Content.module.scss +10 -8
  31. package/src/DateInput/DateInput/DateInput.module.scss +7 -5
  32. package/src/DateInput/DateInputDescription/DateInputDescription.module.scss +15 -13
  33. package/src/DateInput/DateInputWithIconButton/DateInputWithIconButton.module.scss +32 -30
  34. package/src/DatePicker/DatePicker.module.scss +7 -5
  35. package/src/DatePicker/subcomponents/DateInputField/DateInputField.module.scss +5 -3
  36. package/src/DateRangePicker/DateRangePicker.module.scss +75 -73
  37. package/src/Divider/Divider.module.scss +35 -33
  38. package/src/EmptyState/EmptyState.module.css +95 -93
  39. package/src/ErrorPage/ErrorPage.module.scss +4 -2
  40. package/src/FieldGroup/FieldGroup.module.scss +8 -6
  41. package/src/FieldMessage/FieldMessage.module.scss +53 -51
  42. package/src/Filter/Filter/Filter.module.css +5 -3
  43. package/src/Filter/Filter/subcomponents/FilterContents/FilterContents.module.css +4 -2
  44. package/src/Filter/Filter/subcomponents/FilterPopover/FilterPopover.module.css +8 -6
  45. package/src/Filter/FilterBar/FilterBar.module.css +17 -15
  46. package/src/Filter/FilterBar/subcomponents/ClearAllButton/ClearAllButton.module.css +7 -5
  47. package/src/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.module.css +4 -2
  48. package/src/Filter/FilterBar/subcomponents/FilterBarMultiSelect/FilterBarMultiSelect.module.css +5 -3
  49. package/src/Filter/FilterBar/subcomponents/FilterBarSelect/FilterBarSelect.tsx +1 -1
  50. package/src/Filter/FilterButton/FilterButton/FilterButton.module.css +19 -17
  51. package/src/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.module.css +4 -2
  52. package/src/Filter/FilterButton/subcomponents/FilterButtonBase/FilterButtonBase.module.scss +42 -40
  53. package/src/Filter/FilterDatePicker/subcomponents/DateInputField/DateInputField.module.scss +4 -2
  54. package/src/Filter/FilterDatePicker/subcomponents/FilterDatePickerField/FilterDatePickerField.module.scss +6 -4
  55. package/src/Filter/FilterDateRangePicker/FilterDateRangePicker.module.css +7 -5
  56. package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeDisplayLabel/DateRangeDisplayLabel.module.scss +5 -3
  57. package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeInputField/DateRangeInputField.module.scss +36 -34
  58. package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeValidationMessage/DateRangeValidationMessage.module.scss +5 -3
  59. package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/FilterDateRangePickerField.module.scss +7 -5
  60. package/src/Filter/FilterMultiSelect/subcomponents/ListBox/ListBox.module.scss +19 -17
  61. package/src/Filter/FilterMultiSelect/subcomponents/ListBoxSection/ListBoxSection.module.scss +14 -12
  62. package/src/Filter/FilterMultiSelect/subcomponents/LoadMoreButton/LoadMoreButton.module.scss +4 -2
  63. package/src/Filter/FilterMultiSelect/subcomponents/MenuLayout/MenuFooter/MenuFooter.module.scss +7 -5
  64. package/src/Filter/FilterMultiSelect/subcomponents/MenuLayout/MenuLoadingSkeleton/MenuLoadingSkeleton.module.scss +8 -6
  65. package/src/Filter/FilterMultiSelect/subcomponents/MenuPopup/MenuPopup.module.scss +17 -15
  66. package/src/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.module.scss +90 -88
  67. package/src/Filter/FilterMultiSelect/subcomponents/NoResults/NoResults.module.scss +4 -2
  68. package/src/Filter/FilterMultiSelect/subcomponents/SearchInput/SearchInput.module.scss +5 -3
  69. package/src/Filter/FilterMultiSelect/subcomponents/SectionDivider/SectionDivider.module.scss +4 -2
  70. package/src/Filter/FilterMultiSelect/subcomponents/SelectionControlButton/SelectionControlButton.module.scss +52 -50
  71. package/src/Filter/FilterMultiSelect/subcomponents/Trigger/RemovableFilterTrigger/RemovableFilterTrigger.module.css +4 -2
  72. package/src/Filter/FilterSelect/FilterSelect.module.css +9 -7
  73. package/src/Focusable/Focusable.module.scss +4 -2
  74. package/src/GuidanceBlock/GuidanceBlock.module.css +212 -210
  75. package/src/Heading/Heading.module.scss +87 -85
  76. package/src/Icon/_docs/icon.module.scss +35 -33
  77. package/src/Icon/subcomponents/SVG/SVG.module.scss +26 -24
  78. package/src/Illustration/subcomponents/Base/Base.module.scss +100 -98
  79. package/src/Input/Input/Input.module.scss +217 -215
  80. package/src/Input/InputRange/InputRange.module.scss +138 -136
  81. package/src/Input/InputSearch/InputSearch.module.scss +155 -152
  82. package/src/Label/Label.module.scss +82 -80
  83. package/src/LabelledMessage/LabelledMessage.module.scss +8 -6
  84. package/src/LikertScaleLegacy/LikertScaleLegacy.module.scss +266 -264
  85. package/src/Link/Link.module.css +115 -113
  86. package/src/LinkButton/LinkButton.module.css +5 -3
  87. package/src/Loading/LoadingGraphic/LoadingGraphic.module.scss +12 -10
  88. package/src/Loading/LoadingHeading/LoadingHeading.module.scss +44 -42
  89. package/src/Loading/LoadingInput/LoadingInput.module.scss +11 -9
  90. package/src/Loading/LoadingParagraph/LoadingParagraph.module.scss +47 -45
  91. package/src/Loading/LoadingSpinner/LoadingSpinner.module.css +22 -20
  92. package/src/Loading/_mixins.scss +11 -9
  93. package/src/Menu/subcomponents/MenuDropdown/MenuDropdown.module.scss +18 -16
  94. package/src/Menu/subcomponents/MenuHeading/MenuHeading.module.scss +8 -6
  95. package/src/Menu/subcomponents/MenuItem/MenuItem.module.scss +74 -72
  96. package/src/Menu/subcomponents/MenuList/MenuList.module.scss +14 -12
  97. package/src/Menu/subcomponents/StatelessMenu/StatelessMenu.module.scss +4 -2
  98. package/src/Modal/ConfirmationModal/ConfirmationModal.module.scss +126 -124
  99. package/src/Modal/ContextModal/ContextModal.module.scss +72 -70
  100. package/src/Modal/GenericModal/GenericModal.module.scss +92 -90
  101. package/src/Modal/GenericModal/subcomponents/ModalAccessibleDescription/ModalAccessibleDescription.module.scss +4 -2
  102. package/src/Modal/GenericModal/subcomponents/ModalAccessibleLabel/ModalAccessibleLabel.module.scss +25 -23
  103. package/src/Modal/GenericModal/subcomponents/ModalBody/ModalBody.module.scss +5 -3
  104. package/src/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.module.scss +55 -53
  105. package/src/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.module.scss +17 -15
  106. package/src/Modal/InputEditModal/InputEditModal.module.scss +32 -30
  107. package/src/MultiSelect/MultiSelect.module.scss +7 -5
  108. package/src/MultiSelect/subcomponents/Checkbox/Checkbox.module.scss +59 -57
  109. package/src/MultiSelect/subcomponents/MultiSelectOptionField/MultiSelectOptionField.module.scss +55 -53
  110. package/src/MultiSelect/subcomponents/MultiSelectOptions/MultiSelectOptions.module.scss +8 -6
  111. package/src/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.module.scss +66 -64
  112. package/src/MultiSelect/subcomponents/Popover/Popover.module.scss +15 -13
  113. package/src/Notification/ToastNotification/ToastNotificationsList/ToastNotificationsList.module.scss +21 -19
  114. package/src/Notification/subcomponents/GenericNotification/GenericNotification.module.scss +112 -110
  115. package/src/Notification/subcomponents/GenericNotification/_mixins.scss +278 -276
  116. package/src/Notification/subcomponents/NotificationIcon/NotificationIcon.module.css +4 -2
  117. package/src/Pagination/Pagination.module.scss +39 -37
  118. package/src/Pagination/subcomponents/DirectionalLink/DirectionalLink.module.scss +11 -9
  119. package/src/Pagination/subcomponents/PaginationLink/PaginationLink.module.scss +53 -51
  120. package/src/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.module.css +10 -8
  121. package/src/Popover/Popover.module.scss +187 -185
  122. package/src/ProgressBar/ProgressBar.module.scss +75 -73
  123. package/src/ProgressBar/subcomponents/Label/Label.module.scss +6 -4
  124. package/src/Radio/Radio/Radio.module.scss +60 -58
  125. package/src/Radio/RadioField/RadioField.module.scss +33 -32
  126. package/src/Radio/RadioGroup/RadioGroup.module.scss +18 -16
  127. package/src/RichTextEditor/EditableRichTextContent/EditableRichTextContent.module.scss +32 -30
  128. package/src/RichTextEditor/RichTextContent/RichTextContent.module.scss +4 -2
  129. package/src/RichTextEditor/RichTextEditor/RichTextEditor.module.scss +76 -74
  130. package/src/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/ToggleIconButton.module.scss +92 -90
  131. package/src/RichTextEditor/RichTextEditor/subcomponents/Toolbar/Toolbar.module.scss +5 -3
  132. package/src/RichTextEditor/RichTextEditor/subcomponents/ToolbarSection/ToolbarSection.module.scss +12 -10
  133. package/src/RichTextEditor/_mixins.scss +1 -1
  134. package/src/RichTextEditor/utils/plugins/LinkManager/components/LinkModal/LinkModal.module.scss +5 -3
  135. package/src/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/LinkPopover.module.scss +22 -20
  136. package/src/SearchField/SearchField.module.scss +5 -3
  137. package/src/Select/Select.module.scss +17 -0
  138. package/src/Skirt/Skirt.module.scss +24 -22
  139. package/src/Skirt/subcomponents/SkirtCard/SkirtCard.module.scss +13 -11
  140. package/src/Slider/Slider.module.scss +34 -32
  141. package/src/SplitButton/SplitButton.module.scss +5 -3
  142. package/src/SplitButton/subcomponents/ActionButton/ActionButton.module.scss +7 -5
  143. package/src/SplitButton/subcomponents/BaseButton/BaseButton.module.scss +65 -63
  144. package/src/SplitButton/subcomponents/DropdownButton/DropdownButton.module.scss +19 -17
  145. package/src/Table/Table.module.scss +251 -249
  146. package/src/Tabs/subcomponents/Tab.module.scss +81 -79
  147. package/src/Tabs/subcomponents/TabList.module.scss +8 -6
  148. package/src/Tabs/subcomponents/TabPanel.module.scss +10 -8
  149. package/src/Tag/Tag.module.scss +166 -164
  150. package/src/Tag/subcomponents/LiveIcon/LiveIcon.module.css +42 -40
  151. package/src/Text/Text.module.scss +57 -55
  152. package/src/TextArea/TextArea.module.css +103 -100
  153. package/src/TextAreaField/TextAreaField.module.scss +14 -12
  154. package/src/TextField/TextField.module.scss +16 -14
  155. package/src/Tile/MultiActionTile/MultiActionTile.module.scss +7 -5
  156. package/src/Tile/TileGrid/TileGrid.module.scss +18 -16
  157. package/src/Tile/subcomponents/GenericTile/GenericTile.module.scss +123 -121
  158. package/src/TimeField/TimeField.module.scss +57 -55
  159. package/src/TimeField/subcomponents/TimeSegment/TimeSegment.module.scss +37 -35
  160. package/src/TitleBlockZen/TitleBlockZen.module.scss +507 -505
  161. package/src/TitleBlockZen/subcomponents/MainActions.module.scss +11 -9
  162. package/src/TitleBlockZen/subcomponents/MobileActions.module.scss +146 -144
  163. package/src/TitleBlockZen/subcomponents/NavigationTabs.module.scss +105 -103
  164. package/src/TitleBlockZen/subcomponents/TitleBlockMenuItem.module.scss +74 -72
  165. package/src/TitleBlockZen/subcomponents/Toolbar.module.scss +28 -26
  166. package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.scss +105 -103
  167. package/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.module.scss +11 -9
  168. package/src/Tooltip/Tooltip.module.scss +139 -137
  169. package/src/VisuallyHidden/VisuallyHidden.module.scss +10 -8
  170. package/src/Well/Well.module.css +104 -102
  171. package/src/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.module.css +14 -12
  172. package/src/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.module.css +101 -99
  173. package/src/Workflow/subcomponents/Footer/components/Root/FooterRoot.module.css +19 -17
  174. package/src/Workflow/subcomponents/Header/components/Actions/Actions.module.css +14 -12
  175. package/src/Workflow/subcomponents/Header/components/Branding/Branding.module.css +12 -10
  176. package/src/Workflow/subcomponents/Header/components/Root/Root.module.css +19 -17
  177. package/src/Workflow/subcomponents/Header/components/Titles/Titles.module.css +19 -17
  178. package/src/Workflow/subcomponents/Main/Main.module.css +5 -3
  179. package/src/Workflow/subcomponents/Wrapper/Wrapper.module.css +8 -6
  180. package/src/__next__/Button/Button.module.css +220 -218
  181. package/src/__next__/Button/subcomponents/ButtonContent/ButtonContent.module.css +17 -15
  182. package/src/__next__/Button/subcomponents/PendingContent/PendingContent.module.css +15 -13
  183. package/src/__next__/Icon/Icon.module.css +40 -38
  184. package/src/__next__/Icon/_docs/Icon.docs.module.css +13 -11
  185. package/src/__next__/Menu/Menu.module.css +30 -28
  186. package/src/__next__/Menu/MenuItem.module.css +41 -39
  187. package/src/__next__/Select/Select.module.scss +8 -6
  188. package/src/__next__/Select/subcomponents/ListBox/ListBox.module.scss +12 -10
  189. package/src/__next__/Select/subcomponents/ListBoxSection/ListBoxSection.module.scss +15 -13
  190. package/src/__next__/Select/subcomponents/Option/Option.module.scss +53 -51
  191. package/src/__next__/Select/subcomponents/SectionDivider/SectionDivider.module.scss +8 -6
  192. package/src/__next__/Select/subcomponents/SelectPopoverContents/SelectPopoverContents.module.scss +4 -2
  193. package/src/__next__/Select/subcomponents/SelectToggle/SelectToggle.module.scss +105 -103
  194. package/src/__next__/Tabs/subcomponents/Tab/Tab.module.css +81 -79
  195. package/src/__next__/Tabs/subcomponents/TabList/TabList.module.css +56 -54
  196. package/src/__next__/Tabs/subcomponents/TabPanel/TabPanel.module.css +10 -8
  197. package/src/__next__/Tag/RemovableTag/RemovableTag.module.scss +6 -4
  198. package/src/__next__/Tag/RemovableTag/subcomponents/RemoveButton.module.scss +26 -24
  199. package/src/__next__/Tag/Tag/Tag.module.scss +56 -54
  200. package/src/__next__/Tooltip/OverlayArrow.module.scss +40 -38
  201. package/src/__next__/Tooltip/Tooltip.module.scss +39 -37
  202. package/src/__next__/Tooltip/_docs/ApiSpecification.mdx +2 -2
  203. package/src/__next__/Tooltip/_docs/Tooltip.docs.stories.tsx +15 -30
  204. package/src/__next__/Tooltip/_docs/Tooltip.mdx +1 -1
  205. package/src/__next__/Tooltip/_docs/Tooltip.spec.stories.tsx +21 -58
  206. package/src/__next__/Tooltip/_docs/Tooltip.stories.tsx +2 -2
  207. package/src/utils/AppearanceAnim.module.scss +14 -12
@@ -1,5 +1,7 @@
1
1
  @import '~@kaizen/design-tokens/sass/spacing';
2
2
 
3
- .container {
4
- padding: $spacing-sm $spacing-sm 0;
3
+ @layer kz-components {
4
+ .container {
5
+ padding: $spacing-sm $spacing-sm 0;
6
+ }
5
7
  }
@@ -1,9 +1,11 @@
1
1
  @import '~@kaizen/design-tokens/sass/color';
2
2
  @import '~@kaizen/design-tokens/sass/spacing';
3
3
 
4
- .footer {
5
- border-top: 1px solid rgba($color-gray-600-rgb, 0.1);
6
- gap: $spacing-xs;
7
- display: flex;
8
- padding: $spacing-sm $spacing-sm 0;
4
+ @layer kz-components {
5
+ .footer {
6
+ border-top: 1px solid rgba($color-gray-600-rgb, 0.1);
7
+ gap: $spacing-xs;
8
+ display: flex;
9
+ padding: $spacing-sm $spacing-sm 0;
10
+ }
9
11
  }
@@ -1,10 +1,12 @@
1
1
  @import '~@kaizen/design-tokens/sass/spacing';
2
2
 
3
- .loadingInput {
4
- margin-bottom: $spacing-sm;
5
- }
3
+ @layer kz-components {
4
+ .loadingInput {
5
+ margin-bottom: $spacing-sm;
6
+ }
6
7
 
7
- .loadingContainer {
8
- margin-left: $spacing-sm;
9
- margin-right: $spacing-sm;
8
+ .loadingContainer {
9
+ margin-left: $spacing-sm;
10
+ margin-right: $spacing-sm;
11
+ }
10
12
  }
@@ -3,20 +3,22 @@
3
3
  @import '~@kaizen/design-tokens/sass/border';
4
4
  @import '~@kaizen/design-tokens/sass/color';
5
5
 
6
- // figma hard coded: https://www.figma.com/file/eZKEE5kXbEMY3lx84oz8iN/%E2%9D%A4%EF%B8%8F-UI-Kit%3A-Heart?node-id=22814%3A96966
7
- $menu-container-width: 294px;
8
- $menu-container-max-height: 312px;
6
+ @layer kz-components {
7
+ // figma hard coded: https://www.figma.com/file/eZKEE5kXbEMY3lx84oz8iN/%E2%9D%A4%EF%B8%8F-UI-Kit%3A-Heart?node-id=22814%3A96966
8
+ $menu-container-width: 294px;
9
+ $menu-container-max-height: 312px;
9
10
 
10
- .menuPopup {
11
- position: absolute;
12
- z-index: 1000; // from $ca-z-index-dropdown
13
- box-sizing: border-box;
14
- background: $color-white;
15
- color: $color-purple-800;
16
- border-radius: $border-solid-border-radius;
17
- box-shadow: $shadow-large-box-shadow;
18
- padding: $spacing-sm 0;
19
- margin-top: $spacing-xs;
20
- text-align: start;
21
- width: $menu-container-width;
11
+ .menuPopup {
12
+ position: absolute;
13
+ z-index: 1000; // from $ca-z-index-dropdown
14
+ box-sizing: border-box;
15
+ background: $color-white;
16
+ color: $color-purple-800;
17
+ border-radius: $border-solid-border-radius;
18
+ box-shadow: $shadow-large-box-shadow;
19
+ padding: $spacing-sm 0;
20
+ margin-top: $spacing-xs;
21
+ text-align: start;
22
+ width: $menu-container-width;
23
+ }
22
24
  }
@@ -3,110 +3,112 @@
3
3
  @import '~@kaizen/design-tokens/sass/typography';
4
4
  @import '~@kaizen/design-tokens/sass/spacing';
5
5
 
6
- $iconAndBadgeHeight: $spacing-md;
7
-
8
- .icon {
9
- line-height: 1;
10
- height: calc(#{$iconAndBadgeHeight} - #{$border-solid-border-width} * 2);
11
- width: calc(#{$iconAndBadgeHeight} - #{$border-solid-border-width} * 2);
12
- border: $border-solid-border-width $border-solid-border-style;
13
- border-color: $color-gray-500;
14
- border-radius: $border-solid-border-radius;
15
- display: inline-flex;
16
- justify-content: center;
17
- align-items: center;
18
- }
6
+ @layer kz-components {
7
+ $iconAndBadgeHeight: $spacing-md;
8
+
9
+ .icon {
10
+ line-height: 1;
11
+ height: calc(#{$iconAndBadgeHeight} - #{$border-solid-border-width} * 2);
12
+ width: calc(#{$iconAndBadgeHeight} - #{$border-solid-border-width} * 2);
13
+ border: $border-solid-border-width $border-solid-border-style;
14
+ border-color: $color-gray-500;
15
+ border-radius: $border-solid-border-radius;
16
+ display: inline-flex;
17
+ justify-content: center;
18
+ align-items: center;
19
+ }
19
20
 
20
- .option {
21
- height: fit-content;
22
- align-items: flex-start;
23
- display: inline-grid;
24
- grid-template-columns: $spacing-md 1fr auto;
25
- gap: $spacing-xs;
26
- padding: $spacing-xs;
27
- position: relative;
28
- font-family: $typography-paragraph-body-font-family;
29
- font-size: $typography-paragraph-body-font-size;
30
- letter-spacing: $typography-paragraph-body-letter-spacing;
31
- font-weight: $typography-paragraph-body-font-weight;
32
- line-height: $typography-paragraph-body-line-height;
33
- border: $border-solid-border-width $border-solid-border-style;
34
- border-color: $border-borderless-border-color;
35
- border-radius: $border-solid-border-radius;
36
- cursor: default;
37
-
38
- &:hover,
39
- &:active,
40
- &:focus {
41
- background-color: $color-blue-100;
42
-
43
- .badge {
44
- background-color: $color-white;
21
+ .option {
22
+ height: fit-content;
23
+ align-items: flex-start;
24
+ display: inline-grid;
25
+ grid-template-columns: $spacing-md 1fr auto;
26
+ gap: $spacing-xs;
27
+ padding: $spacing-xs;
28
+ position: relative;
29
+ font-family: $typography-paragraph-body-font-family;
30
+ font-size: $typography-paragraph-body-font-size;
31
+ letter-spacing: $typography-paragraph-body-letter-spacing;
32
+ font-weight: $typography-paragraph-body-font-weight;
33
+ line-height: $typography-paragraph-body-line-height;
34
+ border: $border-solid-border-width $border-solid-border-style;
35
+ border-color: $border-borderless-border-color;
36
+ border-radius: $border-solid-border-radius;
37
+ cursor: default;
38
+
39
+ &:hover,
40
+ &:active,
41
+ &:focus {
42
+ background-color: $color-blue-100;
43
+
44
+ .badge {
45
+ background-color: $color-white;
46
+ }
47
+
48
+ .icon {
49
+ border-color: $color-gray-600;
50
+ background-color: $color-gray-200;
51
+ }
45
52
  }
46
53
 
47
- .icon {
48
- border-color: $color-gray-600;
49
- background-color: $color-gray-200;
54
+ &.isFocused,
55
+ &:focus-visible {
56
+ background-color: $color-blue-100;
57
+
58
+ &::after {
59
+ $focus-ring-offset: calc((#{$border-focus-ring-border-width} * 2) + 1px);
60
+
61
+ content: '';
62
+ position: absolute;
63
+ background: transparent;
64
+ border: $border-focus-ring-border-width $border-focus-ring-border-style $color-blue-500;
65
+ border-radius: $border-focus-ring-border-radius;
66
+ inset: calc(-1 * #{$focus-ring-offset});
67
+ z-index: 1; // show border when sibling option is hovered
68
+ }
50
69
  }
51
- }
52
-
53
- &.isFocused,
54
- &:focus-visible {
55
- background-color: $color-blue-100;
56
70
 
57
- &::after {
58
- $focus-ring-offset: calc((#{$border-focus-ring-border-width} * 2) + 1px);
59
-
60
- content: '';
61
- position: absolute;
62
- background: transparent;
63
- border: $border-focus-ring-border-width $border-focus-ring-border-style $color-blue-500;
64
- border-radius: $border-focus-ring-border-radius;
65
- inset: calc(-1 * #{$focus-ring-offset});
66
- z-index: 1; // show border when sibling option is hovered
71
+ &:focus {
72
+ outline: none; // cancel browser style
67
73
  }
68
74
  }
69
75
 
70
- &:focus {
71
- outline: none; // cancel browser style
72
- }
73
- }
74
-
75
- .isDisabled {
76
- opacity: 30%;
77
- background: none;
76
+ .isDisabled {
77
+ opacity: 30%;
78
+ background: none;
78
79
 
79
- &:hover {
80
- .icon {
81
- border-color: $color-gray-500;
82
- }
80
+ &:hover {
81
+ .icon {
82
+ border-color: $color-gray-500;
83
+ }
83
84
 
84
- .badge {
85
- background-color: $color-gray-300;
85
+ .badge {
86
+ background-color: $color-gray-300;
87
+ }
86
88
  }
87
89
  }
88
- }
89
90
 
90
- .badgeContainer {
91
- // Must be the same height as .icon, so they align vertically
92
- height: $iconAndBadgeHeight;
93
- display: flex;
94
- align-items: center;
95
- }
91
+ .badgeContainer {
92
+ // Must be the same height as .icon, so they align vertically
93
+ height: $iconAndBadgeHeight;
94
+ display: flex;
95
+ align-items: center;
96
+ }
96
97
 
97
- .isSelected {
98
- font-weight: $typography-paragraph-bold-font-weight;
98
+ .isSelected {
99
+ font-weight: $typography-paragraph-bold-font-weight;
99
100
 
100
- &.icon {
101
- background-color: $color-gray-500;
102
- color: $color-white;
103
- }
101
+ &.icon {
102
+ background-color: $color-gray-500;
103
+ color: $color-white;
104
+ }
104
105
 
105
- &:hover,
106
- &:active,
107
- &:focus {
108
- .icon {
109
- background-color: $color-gray-600;
106
+ &:hover,
107
+ &:active,
108
+ &:focus {
109
+ .icon {
110
+ background-color: $color-gray-600;
111
+ }
110
112
  }
111
113
  }
112
114
  }
@@ -1,3 +1,5 @@
1
- .container {
2
- padding: 1.125rem; // There's no spacing token for 18px -_-
1
+ @layer kz-components {
2
+ .container {
3
+ padding: 1.125rem; // There's no spacing token for 18px -_-
4
+ }
3
5
  }
@@ -1,6 +1,8 @@
1
1
  @import '~@kaizen/design-tokens/sass/spacing';
2
2
 
3
- .inputSearchContainer {
4
- position: relative;
5
- margin: 0 $spacing-sm;
3
+ @layer kz-components {
4
+ .inputSearchContainer {
5
+ position: relative;
6
+ margin: 0 $spacing-sm;
7
+ }
6
8
  }
@@ -1,3 +1,5 @@
1
- .divider {
2
- margin: 0.5rem 0;
1
+ @layer kz-components {
2
+ .divider {
3
+ margin: 0.5rem 0;
4
+ }
3
5
  }
@@ -4,66 +4,68 @@
4
4
  @import '~@kaizen/design-tokens/sass/spacing';
5
5
  @import '../../../../../styles/utils/button-reset';
6
6
 
7
- $focus-ring-offset: 1px;
7
+ @layer kz-components {
8
+ $focus-ring-offset: 1px;
8
9
 
9
- .button {
10
- @include button-reset;
10
+ .button {
11
+ @include button-reset;
11
12
 
12
- -webkit-font-smoothing: antialiased;
13
- -moz-osx-font-smoothing: grayscale;
14
- position: relative;
15
- display: inline-flex;
16
- align-items: center;
17
- gap: $spacing-xs;
18
- border: $border-solid-border-width $border-solid-border-style;
19
- border-color: $border-borderless-border-color;
20
- border-radius: $border-solid-border-radius;
21
- padding: $spacing-4 $spacing-8;
22
- font-weight: $typography-button-secondary-font-weight;
23
- font-family: $typography-button-secondary-font-family;
24
- font-size: $typography-button-secondary-font-size;
25
- line-height: $typography-button-secondary-line-height;
26
- letter-spacing: $typography-button-secondary-letter-spacing;
27
- color: $color-blue-500;
13
+ -webkit-font-smoothing: antialiased;
14
+ -moz-osx-font-smoothing: grayscale;
15
+ position: relative;
16
+ display: inline-flex;
17
+ align-items: center;
18
+ gap: $spacing-xs;
19
+ border: $border-solid-border-width $border-solid-border-style;
20
+ border-color: $border-borderless-border-color;
21
+ border-radius: $border-solid-border-radius;
22
+ padding: $spacing-4 $spacing-8;
23
+ font-weight: $typography-button-secondary-font-weight;
24
+ font-family: $typography-button-secondary-font-family;
25
+ font-size: $typography-button-secondary-font-size;
26
+ line-height: $typography-button-secondary-line-height;
27
+ letter-spacing: $typography-button-secondary-letter-spacing;
28
+ color: $color-blue-500;
28
29
 
29
- &:focus {
30
- outline: none;
31
- }
30
+ &:focus {
31
+ outline: none;
32
+ }
32
33
 
33
- &:hover,
34
- &:active,
35
- &:focus {
36
- &:not(.isDisabled) {
37
- background-color: $color-blue-100;
34
+ &:hover,
35
+ &:active,
36
+ &:focus {
37
+ &:not(.isDisabled) {
38
+ background-color: $color-blue-100;
39
+ }
38
40
  }
39
- }
40
41
 
41
- &:focus-visible::after {
42
- $focus-ring-offset: calc((#{$border-focus-ring-border-width} * 2) + 1px);
42
+ &:focus-visible::after {
43
+ $focus-ring-offset: calc((#{$border-focus-ring-border-width} * 2) + 1px);
43
44
 
44
- content: '';
45
- position: absolute;
46
- background: transparent;
47
- border-radius: $border-focus-ring-border-radius;
48
- border-width: $border-focus-ring-border-width;
49
- border-style: $border-focus-ring-border-style;
50
- border-color: $color-blue-500;
51
- inset: calc(-1 * #{$focus-ring-offset});
52
- }
45
+ content: '';
46
+ position: absolute;
47
+ background: transparent;
48
+ border-radius: $border-focus-ring-border-radius;
49
+ border-width: $border-focus-ring-border-width;
50
+ border-style: $border-focus-ring-border-style;
51
+ border-color: $color-blue-500;
52
+ inset: calc(-1 * #{$focus-ring-offset});
53
+ }
53
54
 
54
- // TODO: copied from Calendar button since the design is not settled
55
- &.isDisabled {
56
- pointer-events: none;
57
- color: rgba($color-purple-800-rgb, 0.3);
58
- opacity: 100%;
55
+ // TODO: copied from Calendar button since the design is not settled
56
+ &.isDisabled {
57
+ pointer-events: none;
58
+ color: rgba($color-purple-800-rgb, 0.3);
59
+ opacity: 100%;
59
60
 
60
- &:focus {
61
- outline: none;
62
- border: 2px solid transparent;
63
- }
61
+ &:focus {
62
+ outline: none;
63
+ border: 2px solid transparent;
64
+ }
64
65
 
65
- &:focus-visible::after {
66
- border-color: $color-gray-400;
66
+ &:focus-visible::after {
67
+ border-color: $color-gray-400;
68
+ }
67
69
  }
68
70
  }
69
71
  }
@@ -1,3 +1,5 @@
1
- .filterButtonRemovable {
2
- width: 100%;
1
+ @layer kz-components {
2
+ .filterButtonRemovable {
3
+ width: 100%;
4
+ }
3
5
  }
@@ -1,8 +1,10 @@
1
- /* This a temporary fix to increase specificity, until we figure out why this CSS is being compiled later than the padding in the FilterContents sub-component */
2
- .filterContents.filterContents {
3
- box-sizing: border-box;
4
- min-width: 12.25rem; /* 196px */
5
- max-width: 25rem; /* 400px */
6
- overflow: auto;
7
- padding: unset; /* Padding is added by <SelectPopoverContents> */
1
+ @layer kz-components {
2
+ /* This a temporary fix to increase specificity, until we figure out why this CSS is being compiled later than the padding in the FilterContents sub-component */
3
+ .filterContents.filterContents {
4
+ box-sizing: border-box;
5
+ min-width: 12.25rem; /* 196px */
6
+ max-width: 25rem; /* 400px */
7
+ overflow: auto;
8
+ padding: unset; /* Padding is added by <SelectPopoverContents> */
9
+ }
8
10
  }
@@ -1,3 +1,5 @@
1
- .focusableWrapper {
2
- display: inline-flex;
1
+ @layer kz-components {
2
+ .focusableWrapper {
3
+ display: inline-flex;
4
+ }
3
5
  }