@kaizen/components 1.78.1 → 1.79.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. package/dist/styles.css +10589 -10782
  2. package/package.json +1 -1
  3. package/src/Avatar/Avatar.module.css +137 -135
  4. package/src/AvatarGroup/AvatarGroup.module.css +58 -56
  5. package/src/Badge/Badge.module.css +98 -96
  6. package/src/Brand/Brand.module.css +5 -3
  7. package/src/BrandMoment/BrandMoment.module.css +147 -145
  8. package/src/BrandMoment/_docs/ExampleHeaders.module.scss +68 -66
  9. package/src/Button/Button/Button.module.scss +135 -133
  10. package/src/Button/GenericButton/GenericButton.module.scss +81 -79
  11. package/src/Button/IconButton/IconButton.module.scss +20 -18
  12. package/src/ButtonGroup/ButtonGroup.module.css +38 -36
  13. package/src/ButtonGroup/ButtonGroup.module.scss +41 -39
  14. package/src/Calendar/CalendarPopover/CalendarPopover.module.scss +19 -17
  15. package/src/Calendar/CalendarRange/CalendarRange.module.scss +48 -46
  16. package/src/Calendar/CalendarSingle/CalendarSingle.module.scss +12 -10
  17. package/src/Calendar/LegacyCalendarRange/LegacyCalendarRange.module.scss +20 -18
  18. package/src/Calendar/baseCalendarClassNames.module.scss +148 -146
  19. package/src/Card/Card.module.css +91 -89
  20. package/src/Checkbox/Checkbox/Checkbox.module.scss +89 -87
  21. package/src/Checkbox/CheckboxField/CheckboxField.module.scss +32 -30
  22. package/src/Checkbox/CheckboxGroup/CheckboxGroup.module.scss +11 -9
  23. package/src/ClearButton/ClearButton.module.scss +32 -30
  24. package/src/Collapsible/Collapsible/Collapsible.module.scss +87 -85
  25. package/src/Collapsible/CollapsibleGroup/CollapsibleGroup.module.scss +9 -7
  26. package/src/Collapsible/ExpertAdviceCollapsible/ExpertAdviceCollapsible.module.scss +35 -33
  27. package/src/Container/Container.module.scss +11 -9
  28. package/src/Content/Content.module.scss +10 -8
  29. package/src/DateInput/DateInput/DateInput.module.scss +7 -5
  30. package/src/DateInput/DateInputDescription/DateInputDescription.module.scss +15 -13
  31. package/src/DateInput/DateInputWithIconButton/DateInputWithIconButton.module.scss +32 -30
  32. package/src/DatePicker/DatePicker.module.scss +7 -5
  33. package/src/DatePicker/subcomponents/DateInputField/DateInputField.module.scss +5 -3
  34. package/src/DateRangePicker/DateRangePicker.module.scss +75 -73
  35. package/src/Divider/Divider.module.scss +35 -33
  36. package/src/EmptyState/EmptyState.module.css +95 -93
  37. package/src/ErrorPage/ErrorPage.module.scss +4 -2
  38. package/src/FieldGroup/FieldGroup.module.scss +8 -6
  39. package/src/FieldMessage/FieldMessage.module.scss +53 -51
  40. package/src/Filter/Filter/Filter.module.css +5 -3
  41. package/src/Filter/Filter/subcomponents/FilterContents/FilterContents.module.css +4 -2
  42. package/src/Filter/Filter/subcomponents/FilterPopover/FilterPopover.module.css +8 -6
  43. package/src/Filter/FilterBar/FilterBar.module.css +17 -15
  44. package/src/Filter/FilterBar/subcomponents/ClearAllButton/ClearAllButton.module.css +7 -5
  45. package/src/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.module.css +4 -2
  46. package/src/Filter/FilterBar/subcomponents/FilterBarMultiSelect/FilterBarMultiSelect.module.css +5 -3
  47. package/src/Filter/FilterButton/FilterButton/FilterButton.module.css +19 -17
  48. package/src/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.module.css +4 -2
  49. package/src/Filter/FilterButton/subcomponents/FilterButtonBase/FilterButtonBase.module.scss +42 -40
  50. package/src/Filter/FilterDatePicker/subcomponents/DateInputField/DateInputField.module.scss +4 -2
  51. package/src/Filter/FilterDatePicker/subcomponents/FilterDatePickerField/FilterDatePickerField.module.scss +6 -4
  52. package/src/Filter/FilterDateRangePicker/FilterDateRangePicker.module.css +7 -5
  53. package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeDisplayLabel/DateRangeDisplayLabel.module.scss +5 -3
  54. package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeInputField/DateRangeInputField.module.scss +36 -34
  55. package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeValidationMessage/DateRangeValidationMessage.module.scss +5 -3
  56. package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/FilterDateRangePickerField.module.scss +7 -5
  57. package/src/Filter/FilterMultiSelect/subcomponents/ListBox/ListBox.module.scss +19 -17
  58. package/src/Filter/FilterMultiSelect/subcomponents/ListBoxSection/ListBoxSection.module.scss +14 -12
  59. package/src/Filter/FilterMultiSelect/subcomponents/LoadMoreButton/LoadMoreButton.module.scss +4 -2
  60. package/src/Filter/FilterMultiSelect/subcomponents/MenuLayout/MenuFooter/MenuFooter.module.scss +7 -5
  61. package/src/Filter/FilterMultiSelect/subcomponents/MenuLayout/MenuLoadingSkeleton/MenuLoadingSkeleton.module.scss +8 -6
  62. package/src/Filter/FilterMultiSelect/subcomponents/MenuPopup/MenuPopup.module.scss +17 -15
  63. package/src/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.module.scss +90 -88
  64. package/src/Filter/FilterMultiSelect/subcomponents/NoResults/NoResults.module.scss +4 -2
  65. package/src/Filter/FilterMultiSelect/subcomponents/SearchInput/SearchInput.module.scss +5 -3
  66. package/src/Filter/FilterMultiSelect/subcomponents/SectionDivider/SectionDivider.module.scss +4 -2
  67. package/src/Filter/FilterMultiSelect/subcomponents/SelectionControlButton/SelectionControlButton.module.scss +52 -50
  68. package/src/Filter/FilterMultiSelect/subcomponents/Trigger/RemovableFilterTrigger/RemovableFilterTrigger.module.css +4 -2
  69. package/src/Filter/FilterSelect/FilterSelect.module.css +9 -7
  70. package/src/Focusable/Focusable.module.scss +4 -2
  71. package/src/GuidanceBlock/GuidanceBlock.module.css +212 -210
  72. package/src/Heading/Heading.module.scss +87 -85
  73. package/src/Icon/_docs/icon.module.scss +35 -33
  74. package/src/Icon/subcomponents/SVG/SVG.module.scss +26 -24
  75. package/src/Illustration/subcomponents/Base/Base.module.scss +100 -98
  76. package/src/Input/Input/Input.module.scss +217 -215
  77. package/src/Input/InputRange/InputRange.module.scss +138 -136
  78. package/src/Input/InputSearch/InputSearch.module.scss +155 -152
  79. package/src/Label/Label.module.scss +82 -80
  80. package/src/LabelledMessage/LabelledMessage.module.scss +8 -6
  81. package/src/LikertScaleLegacy/LikertScaleLegacy.module.scss +266 -264
  82. package/src/Link/Link.module.css +115 -113
  83. package/src/LinkButton/LinkButton.module.css +5 -3
  84. package/src/Loading/LoadingGraphic/LoadingGraphic.module.scss +12 -10
  85. package/src/Loading/LoadingHeading/LoadingHeading.module.scss +44 -42
  86. package/src/Loading/LoadingInput/LoadingInput.module.scss +11 -9
  87. package/src/Loading/LoadingParagraph/LoadingParagraph.module.scss +47 -45
  88. package/src/Loading/LoadingSpinner/LoadingSpinner.module.css +22 -20
  89. package/src/Loading/_mixins.scss +11 -9
  90. package/src/Menu/subcomponents/MenuDropdown/MenuDropdown.module.scss +18 -16
  91. package/src/Menu/subcomponents/MenuHeading/MenuHeading.module.scss +8 -6
  92. package/src/Menu/subcomponents/MenuItem/MenuItem.module.scss +74 -72
  93. package/src/Menu/subcomponents/MenuList/MenuList.module.scss +14 -12
  94. package/src/Menu/subcomponents/StatelessMenu/StatelessMenu.module.scss +4 -2
  95. package/src/Modal/ConfirmationModal/ConfirmationModal.module.scss +126 -124
  96. package/src/Modal/ContextModal/ContextModal.module.scss +72 -70
  97. package/src/Modal/GenericModal/GenericModal.module.scss +92 -90
  98. package/src/Modal/GenericModal/subcomponents/ModalAccessibleDescription/ModalAccessibleDescription.module.scss +4 -2
  99. package/src/Modal/GenericModal/subcomponents/ModalAccessibleLabel/ModalAccessibleLabel.module.scss +25 -23
  100. package/src/Modal/GenericModal/subcomponents/ModalBody/ModalBody.module.scss +5 -3
  101. package/src/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.module.scss +55 -53
  102. package/src/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.module.scss +17 -15
  103. package/src/Modal/InputEditModal/InputEditModal.module.scss +32 -30
  104. package/src/MultiSelect/MultiSelect.module.scss +7 -5
  105. package/src/MultiSelect/subcomponents/Checkbox/Checkbox.module.scss +59 -57
  106. package/src/MultiSelect/subcomponents/MultiSelectOptionField/MultiSelectOptionField.module.scss +55 -53
  107. package/src/MultiSelect/subcomponents/MultiSelectOptions/MultiSelectOptions.module.scss +8 -6
  108. package/src/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.module.scss +66 -64
  109. package/src/MultiSelect/subcomponents/Popover/Popover.module.scss +15 -13
  110. package/src/Notification/ToastNotification/ToastNotificationsList/ToastNotificationsList.module.scss +21 -19
  111. package/src/Notification/subcomponents/GenericNotification/GenericNotification.module.scss +112 -110
  112. package/src/Notification/subcomponents/GenericNotification/_mixins.scss +278 -276
  113. package/src/Notification/subcomponents/NotificationIcon/NotificationIcon.module.css +4 -2
  114. package/src/Pagination/Pagination.module.scss +39 -37
  115. package/src/Pagination/subcomponents/DirectionalLink/DirectionalLink.module.scss +11 -9
  116. package/src/Pagination/subcomponents/PaginationLink/PaginationLink.module.scss +53 -51
  117. package/src/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.module.css +10 -8
  118. package/src/Popover/Popover.module.scss +187 -185
  119. package/src/ProgressBar/ProgressBar.module.scss +75 -73
  120. package/src/ProgressBar/subcomponents/Label/Label.module.scss +6 -4
  121. package/src/Radio/Radio/Radio.module.scss +60 -58
  122. package/src/Radio/RadioField/RadioField.module.scss +33 -31
  123. package/src/Radio/RadioGroup/RadioGroup.module.scss +18 -16
  124. package/src/RichTextEditor/EditableRichTextContent/EditableRichTextContent.module.scss +32 -30
  125. package/src/RichTextEditor/RichTextContent/RichTextContent.module.scss +4 -2
  126. package/src/RichTextEditor/RichTextEditor/RichTextEditor.module.scss +76 -74
  127. package/src/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/ToggleIconButton.module.scss +92 -90
  128. package/src/RichTextEditor/RichTextEditor/subcomponents/Toolbar/Toolbar.module.scss +5 -3
  129. package/src/RichTextEditor/RichTextEditor/subcomponents/ToolbarSection/ToolbarSection.module.scss +12 -10
  130. package/src/RichTextEditor/_mixins.scss +1 -1
  131. package/src/RichTextEditor/utils/plugins/LinkManager/components/LinkModal/LinkModal.module.scss +5 -3
  132. package/src/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/LinkPopover.module.scss +22 -20
  133. package/src/SearchField/SearchField.module.scss +5 -3
  134. package/src/Select/Select.module.scss +17 -0
  135. package/src/Skirt/Skirt.module.scss +24 -22
  136. package/src/Skirt/subcomponents/SkirtCard/SkirtCard.module.scss +13 -11
  137. package/src/Slider/Slider.module.scss +34 -32
  138. package/src/SplitButton/SplitButton.module.scss +5 -3
  139. package/src/SplitButton/subcomponents/ActionButton/ActionButton.module.scss +7 -5
  140. package/src/SplitButton/subcomponents/BaseButton/BaseButton.module.scss +65 -63
  141. package/src/SplitButton/subcomponents/DropdownButton/DropdownButton.module.scss +19 -17
  142. package/src/Table/Table.module.scss +251 -249
  143. package/src/Tabs/subcomponents/Tab.module.scss +81 -79
  144. package/src/Tabs/subcomponents/TabList.module.scss +8 -6
  145. package/src/Tabs/subcomponents/TabPanel.module.scss +10 -8
  146. package/src/Tag/Tag.module.scss +166 -164
  147. package/src/Tag/subcomponents/LiveIcon/LiveIcon.module.css +42 -40
  148. package/src/Text/Text.module.scss +57 -55
  149. package/src/TextArea/TextArea.module.css +102 -99
  150. package/src/TextAreaField/TextAreaField.module.scss +14 -12
  151. package/src/TextField/TextField.module.scss +16 -14
  152. package/src/Tile/MultiActionTile/MultiActionTile.module.scss +7 -5
  153. package/src/Tile/TileGrid/TileGrid.module.scss +18 -16
  154. package/src/Tile/subcomponents/GenericTile/GenericTile.module.scss +123 -121
  155. package/src/TimeField/TimeField.module.scss +57 -55
  156. package/src/TimeField/subcomponents/TimeSegment/TimeSegment.module.scss +37 -35
  157. package/src/TitleBlockZen/TitleBlockZen.module.scss +507 -505
  158. package/src/TitleBlockZen/subcomponents/MainActions.module.scss +11 -9
  159. package/src/TitleBlockZen/subcomponents/MobileActions.module.scss +146 -144
  160. package/src/TitleBlockZen/subcomponents/NavigationTabs.module.scss +105 -103
  161. package/src/TitleBlockZen/subcomponents/TitleBlockMenuItem.module.scss +74 -72
  162. package/src/TitleBlockZen/subcomponents/Toolbar.module.scss +28 -26
  163. package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.scss +105 -103
  164. package/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.module.scss +11 -9
  165. package/src/Tooltip/Tooltip.module.scss +139 -137
  166. package/src/VisuallyHidden/VisuallyHidden.module.scss +10 -8
  167. package/src/Well/Well.module.css +104 -102
  168. package/src/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.module.css +14 -12
  169. package/src/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.module.css +101 -99
  170. package/src/Workflow/subcomponents/Footer/components/Root/FooterRoot.module.css +19 -17
  171. package/src/Workflow/subcomponents/Header/components/Actions/Actions.module.css +14 -12
  172. package/src/Workflow/subcomponents/Header/components/Branding/Branding.module.css +12 -10
  173. package/src/Workflow/subcomponents/Header/components/Root/Root.module.css +19 -17
  174. package/src/Workflow/subcomponents/Header/components/Titles/Titles.module.css +19 -17
  175. package/src/Workflow/subcomponents/Main/Main.module.css +5 -3
  176. package/src/Workflow/subcomponents/Wrapper/Wrapper.module.css +8 -6
  177. package/src/__next__/Button/Button.module.css +220 -218
  178. package/src/__next__/Button/subcomponents/ButtonContent/ButtonContent.module.css +17 -15
  179. package/src/__next__/Button/subcomponents/PendingContent/PendingContent.module.css +15 -13
  180. package/src/__next__/Icon/Icon.module.css +40 -38
  181. package/src/__next__/Icon/_docs/Icon.docs.module.css +13 -11
  182. package/src/__next__/Menu/Menu.module.css +30 -28
  183. package/src/__next__/Menu/MenuItem.module.css +41 -39
  184. package/src/__next__/Select/Select.module.scss +8 -6
  185. package/src/__next__/Select/subcomponents/ListBox/ListBox.module.scss +12 -10
  186. package/src/__next__/Select/subcomponents/ListBoxSection/ListBoxSection.module.scss +15 -13
  187. package/src/__next__/Select/subcomponents/Option/Option.module.scss +53 -51
  188. package/src/__next__/Select/subcomponents/SectionDivider/SectionDivider.module.scss +8 -6
  189. package/src/__next__/Select/subcomponents/SelectPopoverContents/SelectPopoverContents.module.scss +4 -2
  190. package/src/__next__/Select/subcomponents/SelectToggle/SelectToggle.module.scss +105 -103
  191. package/src/__next__/Tabs/subcomponents/Tab/Tab.module.css +81 -79
  192. package/src/__next__/Tabs/subcomponents/TabList/TabList.module.css +56 -54
  193. package/src/__next__/Tabs/subcomponents/TabPanel/TabPanel.module.css +10 -8
  194. package/src/__next__/Tag/RemovableTag/RemovableTag.module.scss +6 -4
  195. package/src/__next__/Tag/RemovableTag/subcomponents/RemoveButton.module.scss +26 -24
  196. package/src/__next__/Tag/Tag/Tag.module.scss +56 -54
  197. package/src/__next__/Tooltip/OverlayArrow.module.scss +40 -38
  198. package/src/__next__/Tooltip/Tooltip.module.scss +39 -37
  199. package/src/__next__/Tooltip/_docs/ApiSpecification.mdx +2 -2
  200. package/src/__next__/Tooltip/_docs/Tooltip.docs.stories.tsx +15 -30
  201. package/src/__next__/Tooltip/_docs/Tooltip.mdx +1 -1
  202. package/src/__next__/Tooltip/_docs/Tooltip.spec.stories.tsx +21 -58
  203. package/src/__next__/Tooltip/_docs/Tooltip.stories.tsx +2 -2
  204. package/src/utils/AppearanceAnim.module.scss +14 -12
@@ -4,107 +4,109 @@
4
4
  @import '~@kaizen/design-tokens/sass/spacing';
5
5
  @import '~@kaizen/design-tokens/sass/animation';
6
6
 
7
- $heading-active-color: $color-gray-200;
8
- $divider-color: rgba($color-gray-600-rgb, 0.2);
9
- $container-border-width: var(--border-width-1);
10
-
11
- // We need a full border radius on this container element, then have classes
12
- // beneath to toggle nested borders off and on for different use cases.
13
- .container {
14
- background-color: $color-white;
15
- box-shadow: $shadow-small-box-shadow;
16
- border: $container-border-width var(--border-solid-border-style) var(--color-gray-500);
17
- border-radius: $border-borderless-border-radius;
18
- }
19
-
20
- .header {
21
- display: flex;
22
- align-items: center;
23
- text-align: start;
24
- background-color: $color-white;
25
- border: none;
26
- border-radius: var(--border-borderless-border-radius);
27
- transition: background-color $animation-duration-rapid;
28
- padding-block: calc(var(--spacing-12) - #{$container-border-width});
29
- padding-inline: var(--spacing-24) var(--spacing-12);
30
-
31
- &:hover {
32
- background-color: $heading-active-color;
7
+ @layer kz-components {
8
+ $heading-active-color: $color-gray-200;
9
+ $divider-color: rgba($color-gray-600-rgb, 0.2);
10
+ $container-border-width: var(--border-width-1);
11
+
12
+ // We need a full border radius on this container element, then have classes
13
+ // beneath to toggle nested borders off and on for different use cases.
14
+ .container {
15
+ background-color: $color-white;
16
+ box-shadow: $shadow-small-box-shadow;
17
+ border: $container-border-width var(--border-solid-border-style) var(--color-gray-500);
18
+ border-radius: $border-borderless-border-radius;
33
19
  }
34
20
 
35
- // Round the bottom corners of the header so when the container is open, the
36
- // header background is not rounded on the corners and flush with the content beneath.
37
- &.open {
38
- border-bottom-left-radius: 0;
39
- border-bottom-right-radius: 0;
21
+ .header {
22
+ display: flex;
23
+ align-items: center;
24
+ text-align: start;
25
+ background-color: $color-white;
26
+ border: none;
27
+ border-radius: var(--border-borderless-border-radius);
28
+ transition: background-color $animation-duration-rapid;
29
+ padding-block: calc(var(--spacing-12) - #{$container-border-width});
30
+ padding-inline: var(--spacing-24) var(--spacing-12);
31
+
32
+ &:hover {
33
+ background-color: $heading-active-color;
34
+ }
35
+
36
+ // Round the bottom corners of the header so when the container is open, the
37
+ // header background is not rounded on the corners and flush with the content beneath.
38
+ &.open {
39
+ border-bottom-left-radius: 0;
40
+ border-bottom-right-radius: 0;
41
+ }
40
42
  }
41
- }
42
43
 
43
- .separated {
44
- & + .separated {
45
- margin-top: calc(#{$spacing-md} * 0.3);
46
- margin-right: 0;
47
- margin-left: 0;
44
+ .separated {
45
+ & + .separated {
46
+ margin-top: calc(#{$spacing-md} * 0.3);
47
+ margin-right: 0;
48
+ margin-left: 0;
49
+ }
48
50
  }
49
- }
50
51
 
51
- // When a collapsible group is rendered, we need the first group to have a rounded
52
- // on top and the last group to have a rounded bottom edge. Then when the last group
53
- // is open we remove the rounded edge as the content sits beneath and needs to be straight.
54
- .groupItem {
55
- & + .groupItem {
56
- border-top: 1px $border-solid-border-style $divider-color;
52
+ // When a collapsible group is rendered, we need the first group to have a rounded
53
+ // on top and the last group to have a rounded bottom edge. Then when the last group
54
+ // is open we remove the rounded edge as the content sits beneath and needs to be straight.
55
+ .groupItem {
56
+ & + .groupItem {
57
+ border-top: 1px $border-solid-border-style $divider-color;
58
+ }
59
+
60
+ .header {
61
+ border-radius: 0;
62
+ padding-block: var(--spacing-12);
63
+ }
64
+
65
+ &:first-of-type > .header {
66
+ border-top-left-radius: $border-borderless-border-radius;
67
+ border-top-right-radius: $border-borderless-border-radius;
68
+ padding-block-start: calc(var(--spacing-12) - #{$container-border-width});
69
+ }
70
+
71
+ &:last-of-type > .header:not(.open) {
72
+ border-bottom-left-radius: $border-borderless-border-radius;
73
+ border-bottom-right-radius: $border-borderless-border-radius;
74
+ padding-block-end: calc(var(--spacing-12) - #{$container-border-width});
75
+ }
57
76
  }
58
77
 
59
- .header {
60
- border-radius: 0;
61
- padding-block: var(--spacing-12);
78
+ .chevronButton:hover {
79
+ // hack to get rid of the IconButton hover styling because it clashes with the hover styling on the Collapsible header
80
+ background-color: transparent !important; /* stylelint-disable-line declaration-no-important */
62
81
  }
63
82
 
64
- &:first-of-type > .header {
65
- border-top-left-radius: $border-borderless-border-radius;
66
- border-top-right-radius: $border-borderless-border-radius;
67
- padding-block-start: calc(var(--spacing-12) - #{$container-border-width});
83
+ .title {
84
+ flex: 1 1 auto;
68
85
  }
69
86
 
70
- &:last-of-type > .header:not(.open) {
71
- border-bottom-left-radius: $border-borderless-border-radius;
72
- border-bottom-right-radius: $border-borderless-border-radius;
73
- padding-block-end: calc(var(--spacing-12) - #{$container-border-width});
87
+ .defaultVariant {
88
+ background-color: $heading-active-color;
74
89
  }
75
- }
76
-
77
- .chevronButton:hover {
78
- // hack to get rid of the IconButton hover styling because it clashes with the hover styling on the Collapsible header
79
- background-color: transparent !important; /* stylelint-disable-line declaration-no-important */
80
- }
81
-
82
- .title {
83
- flex: 1 1 auto;
84
- }
85
-
86
- .defaultVariant {
87
- background-color: $heading-active-color;
88
- }
89
90
 
90
- .clearVariant {
91
- border-bottom: 1px $border-solid-border-style $divider-color;
92
- }
91
+ .clearVariant {
92
+ border-bottom: 1px $border-solid-border-style $divider-color;
93
+ }
93
94
 
94
- .sticky {
95
- position: -webkit-sticky; /* stylelint-disable-line value-no-vendor-prefix */
96
- position: sticky;
97
- z-index: 10;
98
- }
95
+ .sticky {
96
+ position: -webkit-sticky; /* stylelint-disable-line value-no-vendor-prefix */
97
+ position: sticky;
98
+ z-index: 10;
99
+ }
99
100
 
100
- .section {
101
- padding: var(--spacing-24);
102
- }
101
+ .section {
102
+ padding: var(--spacing-24);
103
+ }
103
104
 
104
- .noPadding {
105
- padding: 0;
106
- }
105
+ .noPadding {
106
+ padding: 0;
107
+ }
107
108
 
108
- .hide {
109
- display: none;
109
+ .hide {
110
+ display: none;
111
+ }
110
112
  }
@@ -1,11 +1,13 @@
1
1
  @import '~@kaizen/design-tokens/sass/border';
2
2
  @import '~@kaizen/design-tokens/sass/shadow';
3
3
 
4
- // We need a full border radius on this container element, then have classes
5
- // beneath to toggle nested borders off and on for different use cases.
6
- .container {
7
- background-color: white;
8
- box-shadow: $shadow-small-box-shadow;
9
- border: var(--border-width-1) var(--border-solid-border-style) var(--color-gray-500);
10
- border-radius: $border-borderless-border-radius;
4
+ @layer kz-components {
5
+ // We need a full border radius on this container element, then have classes
6
+ // beneath to toggle nested borders off and on for different use cases.
7
+ .container {
8
+ background-color: white;
9
+ box-shadow: $shadow-small-box-shadow;
10
+ border: var(--border-width-1) var(--border-solid-border-style) var(--color-gray-500);
11
+ border-radius: $border-borderless-border-radius;
12
+ }
11
13
  }
@@ -2,46 +2,48 @@
2
2
  @import '~@kaizen/design-tokens/sass/color';
3
3
  @import '~@kaizen/design-tokens/sass/spacing';
4
4
 
5
- .expertAdviceContainer {
6
- background-color: $color-purple-100;
7
- border: var(--border-width-1) var(--border-solid-border-style) var(--color-purple-400);
8
- box-shadow: none;
9
- color: $color-purple-800;
10
-
11
- &:hover {
12
- border-color: $color-purple-500;
5
+ @layer kz-components {
6
+ .expertAdviceContainer {
7
+ background-color: $color-purple-100;
8
+ border: var(--border-width-1) var(--border-solid-border-style) var(--color-purple-400);
9
+ box-shadow: none;
10
+ color: $color-purple-800;
11
+
12
+ &:hover {
13
+ border-color: $color-purple-500;
14
+ }
13
15
  }
14
- }
15
16
 
16
- // Override Collapsible header
17
- .expertAdviceContainer > div {
18
- &:first-of-type {
19
- background-color: $color-purple-100;
20
- border-radius: $border-borderless-border-radius;
17
+ // Override Collapsible header
18
+ .expertAdviceContainer > div {
19
+ &:first-of-type {
20
+ background-color: $color-purple-100;
21
+ border-radius: $border-borderless-border-radius;
22
+ }
21
23
  }
22
- }
23
24
 
24
- .expertAdviceHeader {
25
- background-color: $color-purple-100;
26
- flex: 1 1 auto;
27
- align-items: center;
28
- display: flex;
29
- }
25
+ .expertAdviceHeader {
26
+ background-color: $color-purple-100;
27
+ flex: 1 1 auto;
28
+ align-items: center;
29
+ display: flex;
30
+ }
30
31
 
31
- .expertAdviceHeading {
32
- color: $color-purple-600;
32
+ .expertAdviceHeading {
33
+ color: $color-purple-600;
33
34
 
34
- .expertAdviceContainer:hover & {
35
- color: $color-purple-700;
35
+ .expertAdviceContainer:hover & {
36
+ color: $color-purple-700;
37
+ }
36
38
  }
37
- }
38
39
 
39
- .expertAdviceIcon {
40
- margin-inline-end: $spacing-sm;
41
- width: 1.75rem;
42
- height: 1.75rem;
43
- }
40
+ .expertAdviceIcon {
41
+ margin-inline-end: $spacing-sm;
42
+ width: 1.75rem;
43
+ height: 1.75rem;
44
+ }
44
45
 
45
- .expertAdviceSection {
46
- padding: 0 $spacing-md $spacing-md;
46
+ .expertAdviceSection {
47
+ padding: 0 $spacing-md $spacing-md;
48
+ }
47
49
  }
@@ -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
  }