@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,13 +1,15 @@
1
- .container {
2
- display: flex;
3
- width: 100%;
4
- justify-content: center;
1
+ @layer kz-components {
2
+ .container {
3
+ display: flex;
4
+ width: 100%;
5
+ justify-content: center;
5
6
 
6
- * {
7
- &,
8
- &::after,
9
- &::before {
10
- box-sizing: border-box;
7
+ * {
8
+ &,
9
+ &::after,
10
+ &::before {
11
+ box-sizing: border-box;
12
+ }
11
13
  }
12
14
  }
13
15
  }
@@ -1,15 +1,17 @@
1
1
  @import '~@kaizen/design-tokens/sass/layout';
2
2
  @import './variables';
3
3
 
4
- .content {
5
- max-width: $layout-content-max-width;
6
- margin: 0 $layout-content-side-margin;
7
- width: 100%;
4
+ @layer kz-components {
5
+ .content {
6
+ max-width: $layout-content-max-width;
7
+ margin: 0 $layout-content-side-margin;
8
+ width: 100%;
8
9
 
9
- // Setting a min-width: 0 will maintain the gutter margins when the inner contents has something wider than the page (e.g. scrollable table)
10
- min-width: 0;
10
+ // Setting a min-width: 0 will maintain the gutter margins when the inner contents has something wider than the page (e.g. scrollable table)
11
+ min-width: 0;
11
12
 
12
- @media (max-width: calc(#{$layout-breakpoints-large} - 1px)) {
13
- margin: 0 $content-margin-width-on-medium-and-small;
13
+ @media (max-width: calc(#{$layout-breakpoints-large} - 1px)) {
14
+ margin: 0 $content-margin-width-on-medium-and-small;
15
+ }
14
16
  }
15
17
  }
@@ -1,9 +1,11 @@
1
1
  @import '~@kaizen/design-tokens/sass/spacing';
2
2
 
3
- .dateInput {
4
- width: 100%;
5
- }
3
+ @layer kz-components {
4
+ .dateInput {
5
+ width: 100%;
6
+ }
6
7
 
7
- .input {
8
- margin-top: $spacing-6;
8
+ .input {
9
+ margin-top: $spacing-6;
10
+ }
9
11
  }
@@ -1,19 +1,21 @@
1
1
  @import '~@kaizen/design-tokens/sass/spacing';
2
2
 
3
- .dateInputDescription {
4
- display: inline;
5
- }
3
+ @layer kz-components {
4
+ .dateInputDescription {
5
+ display: inline;
6
+ }
6
7
 
7
- .dateInputFormatContainer {
8
- margin-inline-start: $spacing-xs;
9
- white-space: nowrap;
10
- }
8
+ .dateInputFormatContainer {
9
+ margin-inline-start: $spacing-xs;
10
+ white-space: nowrap;
11
+ }
11
12
 
12
- .descriptionInputFormat {
13
- display: inline-flex;
14
- white-space: nowrap;
15
- }
13
+ .descriptionInputFormat {
14
+ display: inline-flex;
15
+ white-space: nowrap;
16
+ }
16
17
 
17
- .labelSeparator {
18
- margin-inline-end: $spacing-xs;
18
+ .labelSeparator {
19
+ margin-inline-end: $spacing-xs;
20
+ }
19
21
  }
@@ -4,39 +4,41 @@
4
4
  @import '../../../styles/utils/animation';
5
5
  @import '../../../styles/utils/button-reset';
6
6
 
7
- $input-disabled-opacity: 0.3;
8
-
9
- .iconButton {
10
- @include button-reset;
11
-
12
- display: flex;
13
- padding: var(--spacing-6);
14
- border: $border-solid-border-width $border-solid-border-style transparent;
15
- border-radius: $border-solid-border-radius;
16
- position: relative;
17
- inset-inline-end: -0.35rem;
18
- top: -40%;
19
-
20
- :focus {
21
- outline: none;
7
+ @layer kz-components {
8
+ $input-disabled-opacity: 0.3;
9
+
10
+ .iconButton {
11
+ @include button-reset;
12
+
13
+ display: flex;
14
+ padding: var(--spacing-6);
15
+ border: $border-solid-border-width $border-solid-border-style transparent;
16
+ border-radius: $border-solid-border-radius;
17
+ position: relative;
18
+ inset-inline-end: -0.35rem;
19
+ top: -40%;
20
+
21
+ :focus {
22
+ outline: none;
23
+ }
24
+
25
+ &:focus-visible {
26
+ outline-offset: -2px;
27
+ outline: $color-blue-500 $border-focus-ring-border-style $border-focus-ring-border-width;
28
+ }
29
+
30
+ &:hover:not([disabled]) {
31
+ background-color: $color-blue-100;
32
+ color: $color-blue-500;
33
+ }
22
34
  }
23
35
 
24
- &:focus-visible {
25
- outline-offset: -2px;
26
- outline: $color-blue-500 $border-focus-ring-border-style $border-focus-ring-border-width;
27
- }
28
-
29
- &:hover:not([disabled]) {
30
- background-color: $color-blue-100;
36
+ .calendarActive {
31
37
  color: $color-blue-500;
38
+ background-color: $color-blue-100;
32
39
  }
33
- }
34
40
 
35
- .calendarActive {
36
- color: $color-blue-500;
37
- background-color: $color-blue-100;
38
- }
39
-
40
- .disabled {
41
- opacity: $input-disabled-opacity;
41
+ .disabled {
42
+ opacity: $input-disabled-opacity;
43
+ }
42
44
  }
@@ -1,9 +1,11 @@
1
1
  @import '~@kaizen/design-tokens/sass/color';
2
2
 
3
- .datePicker {
4
- color: $color-purple-800;
5
- }
3
+ @layer kz-components {
4
+ .datePicker {
5
+ color: $color-purple-800;
6
+ }
6
7
 
7
- .isReversed {
8
- color: $color-yellow-600;
8
+ .isReversed {
9
+ color: $color-yellow-600;
10
+ }
9
11
  }
@@ -1,5 +1,7 @@
1
- $input-disabled-opacity: 0.3;
1
+ @layer kz-components {
2
+ $input-disabled-opacity: 0.3;
2
3
 
3
- .disabled {
4
- opacity: $input-disabled-opacity;
4
+ .disabled {
5
+ opacity: $input-disabled-opacity;
6
+ }
5
7
  }
@@ -4,95 +4,97 @@
4
4
  @import '~@kaizen/design-tokens/sass/border';
5
5
  @import '../../styles/utils/button-reset';
6
6
 
7
- // Vars
8
- $button-height: 48px;
9
- $button-base-padding-horizontal: $spacing-sm;
10
- $button-icon-size: 1.25rem; // 20px
7
+ @layer kz-components {
8
+ // Vars
9
+ $button-height: 48px;
10
+ $button-base-padding-horizontal: $spacing-sm;
11
+ $button-icon-size: 1.25rem; // 20px
11
12
 
12
- $disabled-opacity: 0.5;
13
- $placeholder-opacity: 0.7;
13
+ $disabled-opacity: 0.5;
14
+ $placeholder-opacity: 0.7;
14
15
 
15
- .button {
16
- @include button-reset;
17
-
18
- position: relative;
19
- display: flex;
20
- align-items: center;
21
- height: $button-height;
22
- width: 100%;
23
- color: $color-purple-800;
24
- font-family: $typography-paragraph-body-font-family;
25
- font-size: $typography-paragraph-body-font-size;
26
- font-weight: $typography-paragraph-body-font-weight;
27
- line-height: 1.5;
28
- letter-spacing: $typography-paragraph-body-letter-spacing;
29
- text-align: start;
30
- background-color: $color-white;
31
- background-clip: padding-box;
32
- border: $border-solid-border-width $border-solid-border-style $color-gray-500;
33
- border-radius: $border-solid-border-radius;
34
- margin-top: $spacing-6;
35
- padding: 0 $button-base-padding-horizontal;
16
+ .button {
17
+ @include button-reset;
36
18
 
37
- &:focus-visible:not([disabled]),
38
- &:hover:not([disabled]) {
39
- background-color: $color-gray-200;
40
- border-color: $color-gray-600;
19
+ position: relative;
20
+ display: flex;
21
+ align-items: center;
22
+ height: $button-height;
23
+ width: 100%;
41
24
  color: $color-purple-800;
42
- }
25
+ font-family: $typography-paragraph-body-font-family;
26
+ font-size: $typography-paragraph-body-font-size;
27
+ font-weight: $typography-paragraph-body-font-weight;
28
+ line-height: 1.5;
29
+ letter-spacing: $typography-paragraph-body-letter-spacing;
30
+ text-align: start;
31
+ background-color: $color-white;
32
+ background-clip: padding-box;
33
+ border: $border-solid-border-width $border-solid-border-style $color-gray-500;
34
+ border-radius: $border-solid-border-radius;
35
+ margin-top: $spacing-6;
36
+ padding: 0 $button-base-padding-horizontal;
43
37
 
44
- &:focus-visible:not([disabled]) {
45
- outline: $color-blue-500 $border-focus-ring-border-style $border-focus-ring-border-width;
46
- outline-offset: 1px;
47
- }
48
-
49
- :focus:not([disabled]) {
50
- outline: none;
51
- }
38
+ &:focus-visible:not([disabled]),
39
+ &:hover:not([disabled]) {
40
+ background-color: $color-gray-200;
41
+ border-color: $color-gray-600;
42
+ color: $color-purple-800;
43
+ }
52
44
 
53
- &.disabled {
54
- background: $color-white;
55
- opacity: $disabled-opacity;
56
- color: rgba($color-purple-800-rgb, $placeholder-opacity);
57
- border-color: rgba($color-gray-500-rgb, 0.7);
58
- }
45
+ &:focus-visible:not([disabled]) {
46
+ outline: $color-blue-500 $border-focus-ring-border-style $border-focus-ring-border-width;
47
+ outline-offset: 1px;
48
+ }
59
49
 
60
- .value {
61
- padding-inline: 1.75rem $button-base-padding-horizontal;
62
- }
63
- }
50
+ :focus:not([disabled]) {
51
+ outline: none;
52
+ }
64
53
 
65
- .startIconAdornment {
66
- margin-top: -1px;
67
- }
54
+ &.disabled {
55
+ background: $color-white;
56
+ opacity: $disabled-opacity;
57
+ color: rgba($color-purple-800-rgb, $placeholder-opacity);
58
+ border-color: rgba($color-gray-500-rgb, 0.7);
59
+ }
68
60
 
69
- // Icon adornment styles
70
- @mixin vertically-center-icon {
71
- position: absolute;
72
- height: $button-icon-size;
73
- top: 50%;
74
- transform: translateY(-50%);
75
- }
61
+ .value {
62
+ padding-inline: 1.75rem $button-base-padding-horizontal;
63
+ }
64
+ }
76
65
 
77
- /* stylelint-disable no-descending-specificity */
78
- .withStartIconAdornment {
79
66
  .startIconAdornment {
80
- @include vertically-center-icon;
67
+ margin-top: -1px;
68
+ }
81
69
 
82
- color: $color-purple-800;
83
- opacity: $disabled-opacity;
84
- inset-inline: $spacing-sm auto;
70
+ // Icon adornment styles
71
+ @mixin vertically-center-icon {
72
+ position: absolute;
73
+ height: $button-icon-size;
74
+ top: 50%;
75
+ transform: translateY(-50%);
85
76
  }
86
77
 
87
- &:focus-within:not(.disabled),
88
- &:hover:not(.disabled) {
78
+ /* stylelint-disable no-descending-specificity */
79
+ .withStartIconAdornment {
89
80
  .startIconAdornment {
90
- opacity: $placeholder-opacity;
81
+ @include vertically-center-icon;
82
+
83
+ color: $color-purple-800;
84
+ opacity: $disabled-opacity;
85
+ inset-inline: $spacing-sm auto;
91
86
  }
92
- }
93
87
 
94
- .button {
95
- padding-inline: calc(#{$spacing-md} + #{$button-icon-size}) $button-base-padding-horizontal;
88
+ &:focus-within:not(.disabled),
89
+ &:hover:not(.disabled) {
90
+ .startIconAdornment {
91
+ opacity: $placeholder-opacity;
92
+ }
93
+ }
94
+
95
+ .button {
96
+ padding-inline: calc(#{$spacing-md} + #{$button-icon-size}) $button-base-padding-horizontal;
97
+ }
96
98
  }
99
+ /* stylelint-enable no-descending-specificity */
97
100
  }
98
- /* stylelint-enable no-descending-specificity */
@@ -1,37 +1,39 @@
1
1
  @import '~@kaizen/design-tokens/sass/border';
2
2
  @import '~@kaizen/design-tokens/sass/color';
3
3
 
4
- // Use different tokens with different opacities across the Zen and Heart themes, by assuming that when Zen is applied there won't be any CSS variables declared.
5
-
6
- $dt-content-border-color: rgba($color-gray-600-rgb, 0.1);
7
-
8
- .wrapper {
9
- width: 100%;
10
- border: 0;
11
- margin: 0;
12
- border-radius: $border-solid-border-radius;
13
- // This is here to protect against a global style in a consumer.
14
- // https://github.com/cultureamp/murmur/blob/master/app/assets/stylesheets/legacy/modules/_body.scss
15
- visibility: visible;
16
- }
17
-
18
- .content {
19
- border-top: 1px solid;
20
- border-color: $dt-content-border-color;
21
- }
22
-
23
- .canvas {
24
- border-top: 1px solid;
25
- border-bottom: 1px solid;
26
- border-color: rgba($color-gray-600-rgb, 0.1);
27
- }
28
-
29
- .reversed {
30
- border-color: rgba($color-white-rgb, 0.1);
31
- }
32
-
33
- .menuSeparator {
34
- @extend .content; /* stylelint-disable-line scss/at-extend-no-missing-placeholder */
35
-
36
- margin: 5px 0;
4
+ @layer kz-components {
5
+ // Use different tokens with different opacities across the Zen and Heart themes, by assuming that when Zen is applied there won't be any CSS variables declared.
6
+
7
+ $dt-content-border-color: rgba($color-gray-600-rgb, 0.1);
8
+
9
+ .wrapper {
10
+ width: 100%;
11
+ border: 0;
12
+ margin: 0;
13
+ border-radius: $border-solid-border-radius;
14
+ // This is here to protect against a global style in a consumer.
15
+ // https://github.com/cultureamp/murmur/blob/master/app/assets/stylesheets/legacy/modules/_body.scss
16
+ visibility: visible;
17
+ }
18
+
19
+ .content {
20
+ border-top: 1px solid;
21
+ border-color: $dt-content-border-color;
22
+ }
23
+
24
+ .canvas {
25
+ border-top: 1px solid;
26
+ border-bottom: 1px solid;
27
+ border-color: rgba($color-gray-600-rgb, 0.1);
28
+ }
29
+
30
+ .reversed {
31
+ border-color: rgba($color-white-rgb, 0.1);
32
+ }
33
+
34
+ .menuSeparator {
35
+ @extend .content; /* stylelint-disable-line scss/at-extend-no-missing-placeholder */
36
+
37
+ margin: 5px 0;
38
+ }
37
39
  }
@@ -1,114 +1,116 @@
1
- .container {
2
- --empty-state-border-width: var(--border-width-1);
3
- --empty-state-illustration-max-height: 366px;
4
- --empty-state-illustration-max-width: 420px;
5
- --empty-state-text-container-max-width: 426px;
6
-
7
- container-type: inline-size;
8
- width: 100%;
9
- border: var(--empty-state-border-width) solid var(--empty-state-border-color);
10
- border-radius: var(--border-solid-border-radius);
11
- background-color: var(--empty-state-background-color);
12
- color: var(--color-purple-800);
13
- }
14
-
15
- .straightCorners {
16
- border-radius: 0;
17
- }
18
-
19
- /** @deprecated */
20
- .positive {
21
- --empty-state-border-color: var(--color-green-500);
22
- --empty-state-background-color: var(--color-green-100);
23
- }
24
-
25
- .negative,
26
- .action {
27
- --empty-state-border-color: var(--color-red-500);
28
- --empty-state-background-color: var(--color-red-100);
29
- }
30
-
31
- .neutral {
32
- --empty-state-border-color: var(--color-purple-400);
33
- --empty-state-background-color: var(--color-purple-100);
34
- }
35
-
36
- /** end @deprecated */
37
- .success {
38
- --empty-state-border-color: var(--color-green-500);
39
- --empty-state-background-color: var(--color-green-100);
40
- }
1
+ @layer kz-components {
2
+ .container {
3
+ --empty-state-border-width: var(--border-width-1);
4
+ --empty-state-illustration-max-height: 366px;
5
+ --empty-state-illustration-max-width: 420px;
6
+ --empty-state-text-container-max-width: 426px;
7
+
8
+ container-type: inline-size;
9
+ width: 100%;
10
+ border: var(--empty-state-border-width) solid var(--empty-state-border-color);
11
+ border-radius: var(--border-solid-border-radius);
12
+ background-color: var(--empty-state-background-color);
13
+ color: var(--color-purple-800);
14
+ }
41
15
 
42
- .warning {
43
- --empty-state-border-color: var(--color-red-500);
44
- --empty-state-background-color: var(--color-red-100);
45
- }
16
+ .straightCorners {
17
+ border-radius: 0;
18
+ }
46
19
 
47
- .informative {
48
- --empty-state-border-color: var(--color-blue-400);
49
- --empty-state-background-color: var(--color-blue-100);
50
- }
20
+ /** @deprecated */
21
+ .positive {
22
+ --empty-state-border-color: var(--color-green-500);
23
+ --empty-state-background-color: var(--color-green-100);
24
+ }
51
25
 
52
- .expert-advice {
53
- --empty-state-border-color: var(--color-purple-400);
54
- --empty-state-background-color: var(--color-purple-100);
55
- }
26
+ .negative,
27
+ .action {
28
+ --empty-state-border-color: var(--color-red-500);
29
+ --empty-state-background-color: var(--color-red-100);
30
+ }
56
31
 
57
- .content {
58
- justify-content: center;
59
- display: grid;
60
- grid-template-columns: minmax(auto, var(--empty-state-illustration-max-width)) minmax(
61
- auto,
62
- var(--empty-state-text-container-max-width)
63
- );
64
- grid-template-rows: minmax(auto, var(--empty-state-illustration-max-height)) auto;
65
- padding: var(--spacing-24);
66
- grid-column-gap: var(--spacing-32);
67
- }
32
+ .neutral {
33
+ --empty-state-border-color: var(--color-purple-400);
34
+ --empty-state-background-color: var(--color-purple-100);
35
+ }
68
36
 
69
- .illustrationContainer {
70
- display: flex;
71
- align-items: center;
72
- }
37
+ /** end @deprecated */
38
+ .success {
39
+ --empty-state-border-color: var(--color-green-500);
40
+ --empty-state-background-color: var(--color-green-100);
41
+ }
73
42
 
74
- .illustration,
75
- .illustrationContainer video {
76
- max-width: 100%;
77
- max-height: var(--empty-state-illustration-max-height);
78
- height: 100%;
79
- width: auto;
80
- }
43
+ .warning {
44
+ --empty-state-border-color: var(--color-red-500);
45
+ --empty-state-background-color: var(--color-red-100);
46
+ }
81
47
 
82
- .textContainer {
83
- display: flex;
84
- flex-direction: column;
85
- justify-content: center;
86
- gap: var(--spacing-24);
87
- }
48
+ .informative {
49
+ --empty-state-border-color: var(--color-blue-400);
50
+ --empty-state-background-color: var(--color-blue-100);
51
+ }
88
52
 
89
- @container (width <=1024px) {
90
- .content {
91
- padding: var(--spacing-16);
53
+ .expert-advice {
54
+ --empty-state-border-color: var(--color-purple-400);
55
+ --empty-state-background-color: var(--color-purple-100);
92
56
  }
93
- }
94
57
 
95
- @container (width <=560px) {
96
58
  .content {
97
- grid-template-columns: 1fr;
98
- grid-template-rows: auto;
99
- grid-column-gap: unset;
100
- grid-row-gap: var(--spacing-24);
59
+ justify-content: center;
60
+ display: grid;
61
+ grid-template-columns: minmax(auto, var(--empty-state-illustration-max-width)) minmax(
62
+ auto,
63
+ var(--empty-state-text-container-max-width)
64
+ );
65
+ grid-template-rows: minmax(auto, var(--empty-state-illustration-max-height)) auto;
101
66
  padding: var(--spacing-24);
67
+ grid-column-gap: var(--spacing-32);
102
68
  }
103
69
 
104
70
  .illustrationContainer {
105
- --empty-state-illustration-max-height: 210px;
71
+ display: flex;
72
+ align-items: center;
73
+ }
106
74
 
75
+ .illustration,
76
+ .illustrationContainer video {
77
+ max-width: 100%;
78
+ max-height: var(--empty-state-illustration-max-height);
79
+ height: 100%;
80
+ width: auto;
81
+ }
82
+
83
+ .textContainer {
84
+ display: flex;
85
+ flex-direction: column;
107
86
  justify-content: center;
87
+ gap: var(--spacing-24);
88
+ }
89
+
90
+ @container (width <=1024px) {
91
+ .content {
92
+ padding: var(--spacing-16);
93
+ }
108
94
  }
109
95
 
110
- .heading {
111
- font-size: 1.25rem;
112
- line-height: 1.5rem;
96
+ @container (width <=560px) {
97
+ .content {
98
+ grid-template-columns: 1fr;
99
+ grid-template-rows: auto;
100
+ grid-column-gap: unset;
101
+ grid-row-gap: var(--spacing-24);
102
+ padding: var(--spacing-24);
103
+ }
104
+
105
+ .illustrationContainer {
106
+ --empty-state-illustration-max-height: 210px;
107
+
108
+ justify-content: center;
109
+ }
110
+
111
+ .heading {
112
+ font-size: 1.25rem;
113
+ line-height: 1.5rem;
114
+ }
113
115
  }
114
116
  }
@@ -1,5 +1,7 @@
1
1
  @import '~@kaizen/design-tokens/sass/spacing';
2
2
 
3
- .paragraphPadding {
4
- padding: $spacing-24 0;
3
+ @layer kz-components {
4
+ .paragraphPadding {
5
+ padding: $spacing-24 0;
6
+ }
5
7
  }