@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
@@ -1,49 +1,51 @@
1
- .liveIcon {
2
- display: inline-block;
3
- position: relative;
4
- width: 20px;
5
- height: 20px;
6
- margin-inline-start: 0.25rem;
7
- color: var(--color-green-500);
8
- }
1
+ @layer kz-components {
2
+ .liveIcon {
3
+ display: inline-block;
4
+ position: relative;
5
+ width: 20px;
6
+ height: 20px;
7
+ margin-inline-start: 0.25rem;
8
+ color: var(--color-green-500);
9
+ }
9
10
 
10
- .liveIcon_base {
11
- opacity: 0.3;
12
- display: block;
13
- }
11
+ .liveIcon_base {
12
+ opacity: 0.3;
13
+ display: block;
14
+ }
14
15
 
15
- .liveIcon_1,
16
- .liveIcon_2,
17
- .liveIcon_3 {
18
- display: block;
19
- position: absolute;
20
- top: 0;
21
- left: 0;
22
- width: 100%;
23
- height: 100%;
24
- aspect-ratio: 1;
25
- overflow: hidden;
26
- }
16
+ .liveIcon_1,
17
+ .liveIcon_2,
18
+ .liveIcon_3 {
19
+ display: block;
20
+ position: absolute;
21
+ top: 0;
22
+ left: 0;
23
+ width: 100%;
24
+ height: 100%;
25
+ aspect-ratio: 1;
26
+ overflow: hidden;
27
+ }
27
28
 
28
- .liveIcon_1 {
29
- clip-path: circle(16%);
30
- }
29
+ .liveIcon_1 {
30
+ clip-path: circle(16%);
31
+ }
31
32
 
32
- .liveIcon_2,
33
- .liveIcon_3 {
34
- animation-duration: 3s;
35
- animation-iteration-count: 3;
36
- animation-delay: 1s;
37
- }
33
+ .liveIcon_2,
34
+ .liveIcon_3 {
35
+ animation-duration: 3s;
36
+ animation-iteration-count: 3;
37
+ animation-delay: 1s;
38
+ }
38
39
 
39
- .liveIcon_2 {
40
- clip-path: circle(32%);
41
- animation-name: pulse-inner;
42
- }
40
+ .liveIcon_2 {
41
+ clip-path: circle(32%);
42
+ animation-name: pulse-inner;
43
+ }
43
44
 
44
- .liveIcon_3 {
45
- clip-path: circle(50%);
46
- animation-name: pulse-outer;
45
+ .liveIcon_3 {
46
+ clip-path: circle(50%);
47
+ animation-name: pulse-outer;
48
+ }
47
49
  }
48
50
 
49
51
  @keyframes pulse-inner {
@@ -1,72 +1,74 @@
1
1
  @import '~@kaizen/design-tokens/sass/color';
2
2
  @import '~@kaizen/design-tokens/sass/typography';
3
3
 
4
- .text {
5
- --icon-vertical-align: text-bottom;
4
+ @layer kz-components {
5
+ .text {
6
+ --icon-vertical-align: text-bottom;
6
7
 
7
- margin: 0;
8
+ margin: 0;
8
9
 
9
- strong {
10
- font-weight: $typography-paragraph-bold-font-weight;
10
+ strong {
11
+ font-weight: $typography-paragraph-bold-font-weight;
12
+ }
11
13
  }
12
- }
13
14
 
14
- .intro-lede {
15
- font-family: $typography-paragraph-intro-lede-font-family;
16
- font-weight: $typography-paragraph-intro-lede-font-weight;
17
- font-size: $typography-paragraph-intro-lede-font-size;
18
- line-height: $typography-paragraph-intro-lede-line-height;
19
- letter-spacing: $typography-paragraph-intro-lede-letter-spacing;
20
- }
15
+ .intro-lede {
16
+ font-family: $typography-paragraph-intro-lede-font-family;
17
+ font-weight: $typography-paragraph-intro-lede-font-weight;
18
+ font-size: $typography-paragraph-intro-lede-font-size;
19
+ line-height: $typography-paragraph-intro-lede-line-height;
20
+ letter-spacing: $typography-paragraph-intro-lede-letter-spacing;
21
+ }
21
22
 
22
- .body {
23
- font-family: $typography-paragraph-body-font-family;
24
- font-weight: $typography-paragraph-body-font-weight;
25
- font-size: $typography-paragraph-body-font-size;
26
- line-height: $typography-paragraph-body-line-height;
27
- letter-spacing: $typography-paragraph-body-letter-spacing;
28
- }
23
+ .body {
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
+ }
29
30
 
30
- .small {
31
- font-family: $typography-paragraph-small-font-family;
32
- font-weight: $typography-paragraph-small-font-weight;
33
- font-size: $typography-paragraph-small-font-size;
34
- line-height: $typography-paragraph-small-line-height;
35
- letter-spacing: $typography-paragraph-small-letter-spacing;
36
- }
31
+ .small {
32
+ font-family: $typography-paragraph-small-font-family;
33
+ font-weight: $typography-paragraph-small-font-weight;
34
+ font-size: $typography-paragraph-small-font-size;
35
+ line-height: $typography-paragraph-small-line-height;
36
+ letter-spacing: $typography-paragraph-small-letter-spacing;
37
+ }
37
38
 
38
- .extra-small {
39
- font-family: $typography-paragraph-extra-small-font-family;
40
- font-weight: $typography-paragraph-extra-small-font-weight;
41
- font-size: $typography-paragraph-extra-small-font-size;
42
- line-height: $typography-paragraph-extra-small-line-height;
43
- letter-spacing: $typography-paragraph-extra-small-letter-spacing;
44
- }
39
+ .extra-small {
40
+ font-family: $typography-paragraph-extra-small-font-family;
41
+ font-weight: $typography-paragraph-extra-small-font-weight;
42
+ font-size: $typography-paragraph-extra-small-font-size;
43
+ line-height: $typography-paragraph-extra-small-line-height;
44
+ letter-spacing: $typography-paragraph-extra-small-letter-spacing;
45
+ }
45
46
 
46
- .dark {
47
- color: $color-purple-800;
48
- opacity: 100%;
49
- }
47
+ .dark {
48
+ color: $color-purple-800;
49
+ opacity: 100%;
50
+ }
50
51
 
51
- .dark-reduced-opacity {
52
- color: $color-purple-800;
53
- opacity: 70%;
54
- }
52
+ .dark-reduced-opacity {
53
+ color: $color-purple-800;
54
+ opacity: 70%;
55
+ }
55
56
 
56
- .white {
57
- color: $color-white;
58
- opacity: 100%;
59
- }
57
+ .white {
58
+ color: $color-white;
59
+ opacity: 100%;
60
+ }
60
61
 
61
- .white-reduced-opacity {
62
- color: $color-white;
63
- opacity: 80%;
64
- }
62
+ .white-reduced-opacity {
63
+ color: $color-white;
64
+ opacity: 80%;
65
+ }
65
66
 
66
- .positive {
67
- color: $color-green-600;
68
- }
67
+ .positive {
68
+ color: $color-green-600;
69
+ }
69
70
 
70
- .negative {
71
- color: $color-red-600;
71
+ .negative {
72
+ color: $color-red-600;
73
+ }
72
74
  }
@@ -1,140 +1,143 @@
1
- .wrapper {
2
- font-family: var(--typography-paragraph-body-font-family);
3
- font-size: var(--typography-paragraph-body-font-size);
4
- font-weight: var(--typography-paragraph-body-font-weight);
5
- line-height: var(--typography-paragraph-body-line-height);
6
- letter-spacing: var(--typography-paragraph-body-letter-spacing);
7
- color: var(--color-purple-800-rgb);
8
- }
9
-
10
- .wrapperAutogrow {
11
- display: grid;
12
- }
13
-
14
- .wrapperAutogrow::after {
15
- content: attr(data-value) ' ';
16
- white-space: pre-wrap;
17
- visibility: hidden;
18
- }
1
+ @layer kz-components {
2
+ .wrapper {
3
+ font-family: var(--typography-paragraph-body-font-family);
4
+ font-size: var(--typography-paragraph-body-font-size);
5
+ font-weight: var(--typography-paragraph-body-font-weight);
6
+ line-height: var(--typography-paragraph-body-line-height);
7
+ letter-spacing: var(--typography-paragraph-body-letter-spacing);
8
+ color: var(--color-purple-800-rgb);
9
+ }
19
10
 
20
- /* these properties need to be set on both for autogrow to work properly */
21
- .textarea,
22
- .wrapperAutogrow::after {
23
- border: var(--border-solid-border-width) var(--border-solid-border-style) var(--color-gray-500);
24
- border-radius: var(--border-solid-border-radius);
25
- padding: var(--spacing-sm);
26
- box-sizing: border-box;
27
- width: 100%;
28
- font: inherit;
29
- }
11
+ .wrapperAutogrow {
12
+ display: grid;
13
+ }
30
14
 
31
- .textareaAutogrow,
32
- .wrapperAutogrow::after {
33
- grid-area: 2 / 1;
34
- }
15
+ .wrapperAutogrow::after {
16
+ content: attr(data-value) ' ';
17
+ white-space: pre-wrap;
18
+ visibility: hidden;
19
+ }
35
20
 
36
- .textarea {
37
- display: block;
38
- border: var(--border-solid-border-width) var(--border-solid-border-style) var(--color-gray-500);
39
- border-radius: var(--border-solid-border-radius);
40
- padding: var(--spacing-sm);
41
- resize: vertical;
42
-
43
- &:focus {
44
- outline: var(--border-focus-ring-border-width) var(--border-focus-ring-border-style)
45
- var(--color-blue-500);
46
- outline-offset: 1px;
21
+ /* these properties need to be set on both for autogrow to work properly */
22
+ .textarea,
23
+ .wrapperAutogrow::after {
24
+ border: var(--border-solid-border-width) var(--border-solid-border-style) var(--color-gray-500);
25
+ border-radius: var(--border-solid-border-radius);
26
+ padding: var(--spacing-sm);
27
+ box-sizing: border-box;
28
+ width: 100%;
29
+ font: inherit;
47
30
  }
48
31
 
49
- &:disabled {
50
- resize: none;
32
+ .textareaAutogrow,
33
+ .wrapperAutogrow::after {
34
+ grid-area: 2 / 1;
51
35
  }
52
- }
53
36
 
54
- .textareaAutogrow {
55
- overflow: hidden;
56
- }
37
+ .textarea {
38
+ display: block;
39
+ border: var(--border-solid-border-width) var(--border-solid-border-style) var(--color-gray-500);
40
+ border-radius: var(--border-solid-border-radius);
41
+ padding: var(--spacing-sm);
42
+ resize: vertical;
43
+
44
+ &:focus {
45
+ outline: var(--border-focus-ring-border-width) var(--border-focus-ring-border-style)
46
+ var(--color-blue-500);
47
+ outline-offset: 1px;
48
+ }
57
49
 
58
- .default {
59
- &:not(.error, .caution) {
60
50
  &:disabled {
61
51
  border-color: rgb(var(--color-gray-500-rgb), 0.3);
52
+ resize: none;
62
53
  }
63
54
  }
64
55
 
65
- &:focus:not([disabled]),
66
- &:hover:not([disabled]),
67
- &:hover:focus:not([disabled]) {
68
- background-color: var(--color-gray-200);
69
- border-color: var(--color-gray-600);
56
+ .textareaAutogrow {
57
+ overflow: hidden;
70
58
  }
71
59
 
72
- &.error {
73
- border-color: var(--color-red-500);
60
+ .default {
61
+ &:not(.error, .caution) {
62
+ &:disabled {
63
+ border-color: rgb(var(--color-gray-500-rgb), 0.3);
64
+ }
65
+ }
74
66
 
75
67
  &:focus:not([disabled]),
76
68
  &:hover:not([disabled]),
77
69
  &:hover:focus:not([disabled]) {
78
- border-color: var(--color-red-500);
70
+ background-color: var(--color-gray-200);
71
+ border-color: var(--color-gray-600);
79
72
  }
80
- }
81
73
 
82
- &.caution {
83
- border-color: var(--color-yellow-600);
74
+ &.error {
75
+ border-color: var(--color-red-500);
84
76
 
85
- &:focus:not([disabled]),
86
- &:hover:not([disabled]),
87
- &:hover:focus:not([disabled]) {
88
- border-color: var(--color-yellow-600);
77
+ &:focus:not([disabled]),
78
+ &:hover:not([disabled]),
79
+ &:hover:focus:not([disabled]) {
80
+ border-color: var(--color-red-500);
81
+ }
89
82
  }
90
- }
91
83
 
92
- &.disabled {
93
- background-color: var(--color-white);
94
- border-color: rgb(var(--color-gray-500-rgb), 0.3);
95
- color: rgb(var(--color-purple-800-rgb), 0.3);
96
- }
97
- }
84
+ &.caution {
85
+ border-color: var(--color-yellow-600);
98
86
 
99
- .reversed {
100
- border-color: rgb(var(--color-white-rgb), 0.65);
101
- background: transparent;
102
- color: var(--color-white);
87
+ &:focus:not([disabled]),
88
+ &:hover:not([disabled]),
89
+ &:hover:focus:not([disabled]) {
90
+ border-color: var(--color-yellow-600);
91
+ }
92
+ }
103
93
 
104
- &:focus {
105
- outline-color: var(--color-blue-300);
94
+ &.disabled {
95
+ background-color: var(--color-white);
96
+ border-color: rgb(var(--color-gray-500-rgb), 0.3);
97
+ color: rgb(var(--color-purple-800-rgb), 0.3);
98
+ }
106
99
  }
107
100
 
108
- &:focus:not([disabled]),
109
- &:hover:not([disabled]),
110
- &:hover:focus:not([disabled]) {
111
- background: rgb(var(--color-white-rgb), 0.1);
112
- border-color: var(--color-white);
113
- }
101
+ .reversed {
102
+ border-color: rgb(var(--color-white-rgb), 0.65);
103
+ background: transparent;
104
+ color: var(--color-white);
114
105
 
115
- &.error {
116
- border-color: var(--color-red-300);
106
+ &:focus {
107
+ outline-color: var(--color-blue-300);
108
+ }
117
109
 
118
110
  &:focus:not([disabled]),
119
111
  &:hover:not([disabled]),
120
112
  &:hover:focus:not([disabled]) {
121
- border-color: var(--color-red-300);
113
+ background: rgb(var(--color-white-rgb), 0.1);
114
+ border-color: var(--color-white);
122
115
  }
123
- }
124
116
 
125
- &.caution {
126
- border-color: var(--color-yellow-400);
117
+ &.error {
118
+ border-color: var(--color-red-300);
127
119
 
128
- &:focus:not([disabled]),
129
- &:hover:not([disabled]),
130
- &:hover:focus:not([disabled]) {
120
+ &:focus:not([disabled]),
121
+ &:hover:not([disabled]),
122
+ &:hover:focus:not([disabled]) {
123
+ border-color: var(--color-red-300);
124
+ }
125
+ }
126
+
127
+ &.caution {
131
128
  border-color: var(--color-yellow-400);
129
+
130
+ &:focus:not([disabled]),
131
+ &:hover:not([disabled]),
132
+ &:hover:focus:not([disabled]) {
133
+ border-color: var(--color-yellow-400);
134
+ }
132
135
  }
133
- }
134
136
 
135
- &.disabled {
136
- background: transparent;
137
- border-color: rgb(var(--color-white-rgb), 0.3);
138
- color: rgb(var(--color-white-rgb), 0.3);
137
+ &.disabled {
138
+ background: transparent;
139
+ border-color: rgb(var(--color-white-rgb), 0.3);
140
+ color: rgb(var(--color-white-rgb), 0.3);
141
+ }
139
142
  }
140
143
  }
@@ -1,20 +1,22 @@
1
1
  @import '~@kaizen/design-tokens/sass/spacing';
2
2
  @import '~@kaizen/design-tokens/sass/color';
3
3
 
4
- $input-disabled-background: $color-gray-300;
5
- $input-disabled-opacity: 0.3;
6
- $input-disabled-border-alpha: 50%;
4
+ @layer kz-components {
5
+ $input-disabled-background: $color-gray-300;
6
+ $input-disabled-opacity: 0.3;
7
+ $input-disabled-border-alpha: 50%;
7
8
 
8
- .message {
9
- &.disabled {
10
- opacity: $input-disabled-opacity;
9
+ .message {
10
+ &.disabled {
11
+ opacity: $input-disabled-opacity;
12
+ }
11
13
  }
12
- }
13
14
 
14
- .textareaLabel {
15
- margin-bottom: $spacing-xs;
16
- }
15
+ .textareaLabel {
16
+ margin-bottom: $spacing-xs;
17
+ }
17
18
 
18
- .textareaLabelProminent {
19
- margin-bottom: 0;
19
+ .textareaLabelProminent {
20
+ margin-bottom: 0;
21
+ }
20
22
  }
@@ -1,23 +1,25 @@
1
1
  @import '../../styles/utils/animation';
2
2
 
3
- .input {
4
- margin-top: var(--spacing-6);
5
- }
3
+ @layer kz-components {
4
+ .input {
5
+ margin-top: var(--spacing-6);
6
+ }
6
7
 
7
- .icon {
8
- color: var(--textfield-icon-color);
8
+ .icon {
9
+ color: var(--textfield-icon-color);
9
10
 
10
- @include ca-animation-fade(in);
11
- }
11
+ @include ca-animation-fade(in);
12
+ }
12
13
 
13
- .success {
14
- --textfield-icon-color: var(--color-green-500);
14
+ .success {
15
+ --textfield-icon-color: var(--color-green-500);
15
16
 
16
- .reversed & {
17
- --textfield-icon-color: var(--color-green-400);
17
+ .reversed & {
18
+ --textfield-icon-color: var(--color-green-400);
19
+ }
18
20
  }
19
- }
20
21
 
21
- .disabled {
22
- opacity: 0.3;
22
+ .disabled {
23
+ opacity: 0.3;
24
+ }
23
25
  }
@@ -1,9 +1,11 @@
1
1
  @import '~@kaizen/design-tokens/sass/spacing';
2
2
 
3
- .actions {
4
- display: flex;
5
- }
3
+ @layer kz-components {
4
+ .actions {
5
+ display: flex;
6
+ }
6
7
 
7
- .secondaryAction {
8
- margin-inline-end: $spacing-8;
8
+ .secondaryAction {
9
+ margin-inline-end: $spacing-8;
10
+ }
9
11
  }
@@ -2,25 +2,27 @@
2
2
  @import '../../../styles/utils/responsive';
3
3
  @import '../subcomponents/GenericTile/variables';
4
4
 
5
- .grid {
6
- list-style-type: none;
7
- padding-inline-start: 0;
8
- margin-block: 0;
9
- display: grid;
10
- // the more we shave off the width here,
11
- // the less the tiles will grow when they lose one from the row
12
- grid-template-columns: repeat(auto-fill, minmax($tileWidth - 40px, 1fr));
13
- grid-gap: $spacing-md;
5
+ @layer kz-components {
6
+ .grid {
7
+ list-style-type: none;
8
+ padding-inline-start: 0;
9
+ margin-block: 0;
10
+ display: grid;
11
+ // the more we shave off the width here,
12
+ // the less the tiles will grow when they lose one from the row
13
+ grid-template-columns: repeat(auto-fill, minmax($tileWidth - 40px, 1fr));
14
+ grid-gap: $spacing-md;
14
15
 
15
- @include ca-media-mobile {
16
- grid-template-columns: repeat(2, minmax(226px, $tileHeight));
16
+ @include ca-media-mobile {
17
+ grid-template-columns: repeat(2, minmax(226px, $tileHeight));
17
18
 
18
- > * {
19
- width: 100%;
19
+ > * {
20
+ width: 100%;
21
+ }
20
22
  }
21
- }
22
23
 
23
- @media (max-width: 480px) {
24
- grid-template-columns: repeat(1, 100%);
24
+ @media (max-width: 480px) {
25
+ grid-template-columns: repeat(1, 100%);
26
+ }
25
27
  }
26
28
  }