@kaizen/components 1.78.1 → 1.79.1

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 (208) hide show
  1. package/dist/cjs/src/__next__/Select/Select.cjs +6 -2
  2. package/dist/esm/src/__next__/Select/Select.mjs +6 -2
  3. package/dist/styles.css +10589 -10782
  4. package/dist/types/__next__/Select/Select.d.ts +6 -2
  5. package/package.json +1 -1
  6. package/src/Avatar/Avatar.module.css +137 -135
  7. package/src/AvatarGroup/AvatarGroup.module.css +58 -56
  8. package/src/Badge/Badge.module.css +98 -96
  9. package/src/Brand/Brand.module.css +5 -3
  10. package/src/BrandMoment/BrandMoment.module.css +147 -145
  11. package/src/BrandMoment/_docs/ExampleHeaders.module.scss +68 -66
  12. package/src/Button/Button/Button.module.scss +135 -133
  13. package/src/Button/GenericButton/GenericButton.module.scss +81 -79
  14. package/src/Button/IconButton/IconButton.module.scss +20 -18
  15. package/src/ButtonGroup/ButtonGroup.module.css +38 -36
  16. package/src/ButtonGroup/ButtonGroup.module.scss +41 -39
  17. package/src/Calendar/CalendarPopover/CalendarPopover.module.scss +19 -17
  18. package/src/Calendar/CalendarRange/CalendarRange.module.scss +48 -46
  19. package/src/Calendar/CalendarSingle/CalendarSingle.module.scss +12 -10
  20. package/src/Calendar/LegacyCalendarRange/LegacyCalendarRange.module.scss +20 -18
  21. package/src/Calendar/baseCalendarClassNames.module.scss +148 -146
  22. package/src/Card/Card.module.css +91 -89
  23. package/src/Checkbox/Checkbox/Checkbox.module.scss +89 -87
  24. package/src/Checkbox/CheckboxField/CheckboxField.module.scss +32 -30
  25. package/src/Checkbox/CheckboxGroup/CheckboxGroup.module.scss +11 -9
  26. package/src/ClearButton/ClearButton.module.scss +32 -30
  27. package/src/Collapsible/Collapsible/Collapsible.module.scss +87 -85
  28. package/src/Collapsible/CollapsibleGroup/CollapsibleGroup.module.scss +9 -7
  29. package/src/Collapsible/ExpertAdviceCollapsible/ExpertAdviceCollapsible.module.scss +35 -33
  30. package/src/Container/Container.module.scss +11 -9
  31. package/src/Content/Content.module.scss +10 -8
  32. package/src/DateInput/DateInput/DateInput.module.scss +7 -5
  33. package/src/DateInput/DateInputDescription/DateInputDescription.module.scss +15 -13
  34. package/src/DateInput/DateInputWithIconButton/DateInputWithIconButton.module.scss +32 -30
  35. package/src/DatePicker/DatePicker.module.scss +7 -5
  36. package/src/DatePicker/subcomponents/DateInputField/DateInputField.module.scss +5 -3
  37. package/src/DateRangePicker/DateRangePicker.module.scss +75 -73
  38. package/src/Divider/Divider.module.scss +35 -33
  39. package/src/EmptyState/EmptyState.module.css +95 -93
  40. package/src/ErrorPage/ErrorPage.module.scss +4 -2
  41. package/src/FieldGroup/FieldGroup.module.scss +8 -6
  42. package/src/FieldMessage/FieldMessage.module.scss +53 -51
  43. package/src/Filter/Filter/Filter.module.css +5 -3
  44. package/src/Filter/Filter/subcomponents/FilterContents/FilterContents.module.css +4 -2
  45. package/src/Filter/Filter/subcomponents/FilterPopover/FilterPopover.module.css +8 -6
  46. package/src/Filter/FilterBar/FilterBar.module.css +17 -15
  47. package/src/Filter/FilterBar/subcomponents/ClearAllButton/ClearAllButton.module.css +7 -5
  48. package/src/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.module.css +4 -2
  49. package/src/Filter/FilterBar/subcomponents/FilterBarMultiSelect/FilterBarMultiSelect.module.css +5 -3
  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 -31
  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 +102 -99
  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/Select.tsx +7 -1
  189. package/src/__next__/Select/subcomponents/ListBox/ListBox.module.scss +12 -10
  190. package/src/__next__/Select/subcomponents/ListBoxSection/ListBoxSection.module.scss +15 -13
  191. package/src/__next__/Select/subcomponents/Option/Option.module.scss +53 -51
  192. package/src/__next__/Select/subcomponents/SectionDivider/SectionDivider.module.scss +8 -6
  193. package/src/__next__/Select/subcomponents/SelectPopoverContents/SelectPopoverContents.module.scss +4 -2
  194. package/src/__next__/Select/subcomponents/SelectToggle/SelectToggle.module.scss +105 -103
  195. package/src/__next__/Tabs/subcomponents/Tab/Tab.module.css +81 -79
  196. package/src/__next__/Tabs/subcomponents/TabList/TabList.module.css +56 -54
  197. package/src/__next__/Tabs/subcomponents/TabPanel/TabPanel.module.css +10 -8
  198. package/src/__next__/Tag/RemovableTag/RemovableTag.module.scss +6 -4
  199. package/src/__next__/Tag/RemovableTag/subcomponents/RemoveButton.module.scss +26 -24
  200. package/src/__next__/Tag/Tag/Tag.module.scss +56 -54
  201. package/src/__next__/Tooltip/OverlayArrow.module.scss +40 -38
  202. package/src/__next__/Tooltip/Tooltip.module.scss +39 -37
  203. package/src/__next__/Tooltip/_docs/ApiSpecification.mdx +2 -2
  204. package/src/__next__/Tooltip/_docs/Tooltip.docs.stories.tsx +15 -30
  205. package/src/__next__/Tooltip/_docs/Tooltip.mdx +1 -1
  206. package/src/__next__/Tooltip/_docs/Tooltip.spec.stories.tsx +29 -60
  207. package/src/__next__/Tooltip/_docs/Tooltip.stories.tsx +2 -2
  208. package/src/utils/AppearanceAnim.module.scss +14 -12
@@ -2,117 +2,119 @@
2
2
  @import '~@kaizen/design-tokens/sass/border';
3
3
  @import '~@kaizen/design-tokens/sass/color';
4
4
 
5
- .button {
6
- border: none;
7
- background-color: $color-white;
8
- width: 3rem;
9
- height: 3rem;
10
- border-radius: $border-solid-border-radius;
11
- display: flex;
12
- align-items: center;
13
- justify-content: center;
14
- position: relative;
15
- transition: background-color $animation-duration-immediate;
16
-
17
- &:focus {
18
- outline: none;
5
+ @layer kz-components {
6
+ .button {
7
+ border: none;
8
+ background-color: $color-white;
9
+ width: 3rem;
10
+ height: 3rem;
11
+ border-radius: $border-solid-border-radius;
12
+ display: flex;
13
+ align-items: center;
14
+ justify-content: center;
15
+ position: relative;
16
+ transition: background-color $animation-duration-immediate;
17
+
18
+ &:focus {
19
+ outline: none;
20
+ }
21
+
22
+ &:focus-visible::after {
23
+ $focus-ring-offset: 3px;
24
+
25
+ content: '';
26
+ position: absolute;
27
+ background: transparent;
28
+ border-radius: $border-focus-ring-border-radius;
29
+ border-width: $border-focus-ring-border-width;
30
+ border-style: $border-focus-ring-border-style;
31
+ border-color: $color-blue-500;
32
+ inset: calc(-1 * #{$focus-ring-offset});
33
+ }
19
34
  }
20
35
 
21
- &:focus-visible::after {
22
- $focus-ring-offset: 3px;
23
-
24
- content: '';
25
- position: absolute;
26
- background: transparent;
27
- border-radius: $border-focus-ring-border-radius;
28
- border-width: $border-focus-ring-border-width;
29
- border-style: $border-focus-ring-border-style;
30
- border-color: $color-blue-500;
31
- inset: calc(-1 * #{$focus-ring-offset});
32
- }
33
- }
36
+ .default {
37
+ background-color: $color-white;
38
+ color: $color-purple-800;
34
39
 
35
- .default {
36
- background-color: $color-white;
37
- color: $color-purple-800;
40
+ &:hover,
41
+ &:focus-visible {
42
+ background-color: $color-gray-200;
43
+ }
38
44
 
39
- &:hover,
40
- &:focus-visible {
41
- background-color: $color-gray-200;
45
+ &.active {
46
+ background-color: $color-gray-300;
47
+ color: $color-purple-800;
48
+ }
42
49
  }
43
50
 
44
- &.active {
45
- background-color: $color-gray-300;
46
- color: $color-purple-800;
47
- }
48
- }
51
+ .secondary {
52
+ background-color: $color-white;
53
+ color: $color-blue-500;
49
54
 
50
- .secondary {
51
- background-color: $color-white;
52
- color: $color-blue-500;
55
+ &:hover,
56
+ &:focus-visible {
57
+ background-color: $color-blue-100;
58
+ }
53
59
 
54
- &:hover,
55
- &:focus-visible {
56
- background-color: $color-blue-100;
60
+ &.active {
61
+ background-color: $color-blue-200;
62
+ }
57
63
  }
58
64
 
59
- &.active {
60
- background-color: $color-blue-200;
61
- }
62
- }
65
+ .primary {
66
+ background-color: $color-blue-500;
67
+ color: $color-white;
63
68
 
64
- .primary {
65
- background-color: $color-blue-500;
66
- color: $color-white;
69
+ &:hover,
70
+ &:focus-visible {
71
+ background-color: $color-blue-600;
72
+ }
67
73
 
68
- &:hover,
69
- &:focus-visible {
70
- background-color: $color-blue-600;
74
+ &.active {
75
+ background-color: $color-blue-700;
76
+ }
71
77
  }
72
78
 
73
- &.active {
74
- background-color: $color-blue-700;
75
- }
76
- }
79
+ .destructive {
80
+ background-color: $color-red-500;
81
+ color: $color-white;
77
82
 
78
- .destructive {
79
- background-color: $color-red-500;
80
- color: $color-white;
83
+ &:hover,
84
+ &:focus-visible {
85
+ background-color: $color-red-600;
86
+ }
81
87
 
82
- &:hover,
83
- &:focus-visible {
84
- background-color: $color-red-600;
88
+ &.active {
89
+ background-color: $color-red-700;
90
+ }
85
91
  }
86
92
 
87
- &.active {
88
- background-color: $color-red-700;
89
- }
90
- }
93
+ .secondary-destructive {
94
+ background-color: $color-white;
95
+ color: $color-red-600;
91
96
 
92
- .secondary-destructive {
93
- background-color: $color-white;
94
- color: $color-red-600;
97
+ &:hover,
98
+ &:focus-visible {
99
+ background-color: $color-red-100;
100
+ }
95
101
 
96
- &:hover,
97
- &:focus-visible {
98
- background-color: $color-red-100;
102
+ &.active {
103
+ background-color: $color-red-200;
104
+ }
99
105
  }
100
106
 
101
- &.active {
102
- background-color: $color-red-200;
103
- }
104
- }
105
-
106
- .disabled {
107
- opacity: 30%;
108
- pointer-events: none;
109
-
110
- &:focus-visible::after {
111
- color: rgba($color-purple-800-rgb, 0.3);
112
- outline-offset: -2px;
113
- background-color: transparent;
114
- border-color: transparent;
115
- opacity: 100%;
116
- outline: $color-purple-800 $border-solid-border-style $border-focus-ring-border-width;
107
+ .disabled {
108
+ opacity: 30%;
109
+ pointer-events: none;
110
+
111
+ &:focus-visible::after {
112
+ color: rgba($color-purple-800-rgb, 0.3);
113
+ outline-offset: -2px;
114
+ background-color: transparent;
115
+ border-color: transparent;
116
+ opacity: 100%;
117
+ outline: $color-purple-800 $border-solid-border-style $border-focus-ring-border-width;
118
+ }
117
119
  }
118
120
  }
@@ -1,6 +1,8 @@
1
1
  @import '~@kaizen/design-tokens/sass/color';
2
2
 
3
- .toolbar {
4
- display: block;
5
- border-bottom: 2px solid $color-gray-500;
3
+ @layer kz-components {
4
+ .toolbar {
5
+ display: block;
6
+ border-bottom: 2px solid $color-gray-500;
7
+ }
6
8
  }
@@ -1,15 +1,17 @@
1
1
  @import '~@kaizen/design-tokens/sass/color';
2
2
  @import '~@kaizen/design-tokens/sass/spacing';
3
3
 
4
- .toolbarSection {
5
- display: inline-flex;
6
- align-items: center;
7
- gap: $spacing-xs;
8
- margin: $spacing-xs 0;
9
- padding: 0 $spacing-xs;
10
- flex-wrap: wrap;
11
- }
4
+ @layer kz-components {
5
+ .toolbarSection {
6
+ display: inline-flex;
7
+ align-items: center;
8
+ gap: $spacing-xs;
9
+ margin: $spacing-xs 0;
10
+ padding: 0 $spacing-xs;
11
+ flex-wrap: wrap;
12
+ }
12
13
 
13
- .toolbarSection + .toolbarSection {
14
- border-inline-start: 1px solid rgba($color-gray-600-rgb, 0.1);
14
+ .toolbarSection + .toolbarSection {
15
+ border-inline-start: 1px solid rgba($color-gray-600-rgb, 0.1);
16
+ }
15
17
  }
@@ -10,7 +10,7 @@
10
10
  letter-spacing: $typography-paragraph-body-letter-spacing;
11
11
  position: relative;
12
12
  /* stylelint-disable-next-line declaration-no-important */
13
- white-space: pre-wrap !important; // Override unlayered TipTap styles from within components layer
13
+ white-space: pre-wrap !important; // Override unlayered TipTap styles from within kz-components layer
14
14
  box-sizing: content-box;
15
15
  color: $color-purple-800;
16
16
 
@@ -1,5 +1,7 @@
1
- .validationErrorMessage {
2
- ul {
3
- margin-bottom: 0;
1
+ @layer kz-components {
2
+ .validationErrorMessage {
3
+ ul {
4
+ margin-bottom: 0;
5
+ }
4
6
  }
5
7
  }
@@ -1,28 +1,30 @@
1
1
  @import '~@kaizen/design-tokens/sass/color';
2
2
  @import '~@kaizen/design-tokens/sass/spacing';
3
3
 
4
- .popoverContent {
5
- display: flex;
6
- align-items: center;
7
- justify-content: center;
8
- }
4
+ @layer kz-components {
5
+ .popoverContent {
6
+ display: flex;
7
+ align-items: center;
8
+ justify-content: center;
9
+ }
9
10
 
10
- .popoverLinkContainer {
11
- padding-inline: $spacing-8 $spacing-12;
12
- }
11
+ .popoverLinkContainer {
12
+ padding-inline: $spacing-8 $spacing-12;
13
+ }
13
14
 
14
- .popoverLink {
15
- max-width: 300px;
16
- overflow: hidden;
17
- text-overflow: ellipsis;
18
- white-space: nowrap;
19
- }
15
+ .popoverLink {
16
+ max-width: 300px;
17
+ overflow: hidden;
18
+ text-overflow: ellipsis;
19
+ white-space: nowrap;
20
+ }
20
21
 
21
- .paragraphFlex {
22
- display: inline-flex;
23
- }
22
+ .paragraphFlex {
23
+ display: inline-flex;
24
+ }
24
25
 
25
- .popoverActions {
26
- padding-inline: $spacing-4 $spacing-4;
27
- border-left: 1px solid rgba($color-gray-600-rgb, 0.1);
26
+ .popoverActions {
27
+ padding-inline: $spacing-4 $spacing-4;
28
+ border-left: 1px solid rgba($color-gray-600-rgb, 0.1);
29
+ }
28
30
  }
@@ -1,6 +1,8 @@
1
1
  @import '~@kaizen/design-tokens/sass/spacing';
2
2
 
3
- .label {
4
- display: block;
5
- margin-bottom: $spacing-xs; // @note: add gap between label and input
3
+ @layer kz-components {
4
+ .label {
5
+ display: block;
6
+ margin-bottom: $spacing-xs; // @note: add gap between label and input
7
+ }
6
8
  }
@@ -3,6 +3,23 @@
3
3
  @import '~@kaizen/design-tokens/sass/border';
4
4
  @import '~@kaizen/design-tokens/sass/color';
5
5
 
6
+ /*
7
+ NOTE: Select is NOT in @layer kz-components
8
+
9
+ Because the styles in this module need to override the un-layered styles
10
+ provided by react-select, we do not wrap them in @layer kz-components the way
11
+ we do all other Kaizen components.
12
+
13
+ This means that consuming apps will not be able to override these styles with
14
+ Tailwind v4+ utility styles, which are generated in @layer utilities.
15
+
16
+ If we ever need to get these styles into a layer, we may need to update our
17
+ use of React Select to disable its styles and replace them with a layered
18
+ version of our own, or perhaps use something like
19
+ https://github.com/DefinedNet/postcss-assign-layer to assign the components
20
+ layer to the React Select styles.
21
+ */
22
+
6
23
  // Should match the values for the Input component
7
24
  $input-height: 48px;
8
25
  $input-placeholder-opacity: 0.7;
@@ -3,30 +3,32 @@
3
3
  $dt-color-background-color-default: $color-purple-600;
4
4
  $dt-color-background-color-education: $color-blue-100;
5
5
 
6
- .container {
7
- position: relative;
8
- }
6
+ @layer kz-components {
7
+ .container {
8
+ position: relative;
9
+ }
9
10
 
10
- // Actual height is determined in JavaScript
11
- .underlay {
12
- box-sizing: content-box;
13
- position: absolute;
14
- z-index: 1;
15
- top: 0;
16
- left: 0;
17
- right: 0;
18
- height: 100%;
19
- }
11
+ // Actual height is determined in JavaScript
12
+ .underlay {
13
+ box-sizing: content-box;
14
+ position: absolute;
15
+ z-index: 1;
16
+ top: 0;
17
+ left: 0;
18
+ right: 0;
19
+ height: 100%;
20
+ }
20
21
 
21
- .defaultVariant {
22
- background-color: $dt-color-background-color-default;
23
- }
22
+ .defaultVariant {
23
+ background-color: $dt-color-background-color-default;
24
+ }
24
25
 
25
- .educationVariant {
26
- background-color: $dt-color-background-color-education;
27
- }
26
+ .educationVariant {
27
+ background-color: $dt-color-background-color-education;
28
+ }
28
29
 
29
- .content {
30
- position: relative;
31
- z-index: 2;
30
+ .content {
31
+ position: relative;
32
+ z-index: 2;
33
+ }
32
34
  }
@@ -1,17 +1,19 @@
1
1
  @import '~@kaizen/design-tokens/sass/layout';
2
2
  @import '../../../Content/variables';
3
3
 
4
- .wrapper {
5
- @media (max-width: $layout-breakpoints-large) {
6
- margin-left: $content-margin-width-on-medium-and-small * -1;
7
- margin-right: $content-margin-width-on-medium-and-small * -1;
8
- border-bottom-left-radius: 0;
9
- border-bottom-right-radius: 0;
10
- }
4
+ @layer kz-components {
5
+ .wrapper {
6
+ @media (max-width: $layout-breakpoints-large) {
7
+ margin-left: $content-margin-width-on-medium-and-small * -1;
8
+ margin-right: $content-margin-width-on-medium-and-small * -1;
9
+ border-bottom-left-radius: 0;
10
+ border-bottom-right-radius: 0;
11
+ }
11
12
 
12
- @media (max-width: $layout-breakpoints-medium) {
13
- border-radius: 0;
14
- margin-left: $content-margin-width-on-medium-and-small * -1;
15
- margin-right: $content-margin-width-on-medium-and-small * -1;
13
+ @media (max-width: $layout-breakpoints-medium) {
14
+ border-radius: 0;
15
+ margin-left: $content-margin-width-on-medium-and-small * -1;
16
+ margin-right: $content-margin-width-on-medium-and-small * -1;
17
+ }
16
18
  }
17
19
  }
@@ -2,45 +2,47 @@
2
2
  @import '~@kaizen/design-tokens/sass/spacing';
3
3
  @import '~@kaizen/design-tokens/sass/layout';
4
4
 
5
- .wrapper {
6
- display: flex;
7
- flex-direction: column;
8
- }
5
+ @layer kz-components {
6
+ .wrapper {
7
+ display: flex;
8
+ flex-direction: column;
9
+ }
9
10
 
10
- .labelWrapper {
11
- margin-bottom: $spacing-sm;
12
- }
11
+ .labelWrapper {
12
+ margin-bottom: $spacing-sm;
13
+ }
13
14
 
14
- .label {
15
- margin-bottom: $spacing-4;
16
- }
15
+ .label {
16
+ margin-bottom: $spacing-4;
17
+ }
17
18
 
18
- @media (min-width: $layout-breakpoints-medium) {
19
- .labelInline {
20
- &.wrapper {
21
- align-items: center;
22
- flex-direction: row;
23
- }
19
+ @media (min-width: $layout-breakpoints-medium) {
20
+ .labelInline {
21
+ &.wrapper {
22
+ align-items: center;
23
+ flex-direction: row;
24
+ }
24
25
 
25
- .labelWrapper {
26
- flex: 1;
27
- }
26
+ .labelWrapper {
27
+ flex: 1;
28
+ }
28
29
 
29
- .inputWrapper {
30
- flex-basis: 50%;
30
+ .inputWrapper {
31
+ flex-basis: 50%;
32
+ }
31
33
  }
32
34
  }
33
- }
34
35
 
35
- .descriptionDisabled {
36
- opacity: 30%;
37
- }
36
+ .descriptionDisabled {
37
+ opacity: 30%;
38
+ }
38
39
 
39
- .readOnlyMessage {
40
- text-align: center;
41
- font-family: $typography-paragraph-small-font-family;
42
- font-size: $typography-paragraph-small-font-size;
43
- font-weight: $typography-paragraph-bold-font-weight;
44
- line-height: $typography-paragraph-body-line-height;
45
- letter-spacing: $typography-paragraph-body-letter-spacing;
40
+ .readOnlyMessage {
41
+ text-align: center;
42
+ font-family: $typography-paragraph-small-font-family;
43
+ font-size: $typography-paragraph-small-font-size;
44
+ font-weight: $typography-paragraph-bold-font-weight;
45
+ line-height: $typography-paragraph-body-line-height;
46
+ letter-spacing: $typography-paragraph-body-letter-spacing;
47
+ }
46
48
  }
@@ -1,4 +1,6 @@
1
- .splitButton {
2
- display: inline-flex;
3
- align-items: center;
1
+ @layer kz-components {
2
+ .splitButton {
3
+ display: inline-flex;
4
+ align-items: center;
5
+ }
4
6
  }
@@ -1,8 +1,10 @@
1
1
  @import '~@kaizen/design-tokens/sass/border';
2
2
 
3
- .actionButton {
4
- border-start-start-radius: $border-solid-border-radius;
5
- border-end-start-radius: $border-solid-border-radius;
6
- border-start-end-radius: 0;
7
- border-end-end-radius: 0;
3
+ @layer kz-components {
4
+ .actionButton {
5
+ border-start-start-radius: $border-solid-border-radius;
6
+ border-end-start-radius: $border-solid-border-radius;
7
+ border-start-end-radius: 0;
8
+ border-end-end-radius: 0;
9
+ }
8
10
  }