@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
@@ -4,85 +4,87 @@
4
4
  @import '~@kaizen/design-tokens/sass/spacing';
5
5
  @import '~@kaizen/design-tokens/sass/layout';
6
6
 
7
- .header {
8
- display: flex;
9
- align-items: center;
10
- justify-content: center;
11
- padding: $spacing-sm $spacing-md;
12
- }
13
-
14
- .headerLeft {
15
- flex: 0 0 50%;
16
- }
17
-
18
- .headerRight {
19
- flex: 0 0 50%;
20
- display: flex;
21
- justify-content: flex-end;
22
- gap: $spacing-8;
23
- }
7
+ @layer kz-components {
8
+ .header {
9
+ display: flex;
10
+ align-items: center;
11
+ justify-content: center;
12
+ padding: $spacing-sm $spacing-md;
13
+ }
24
14
 
25
- .logoLink {
26
- display: flex;
27
- align-items: center;
28
- padding: calc(#{$spacing-sm} - #{$border-solid-border-width}) 0;
29
- max-inline-size: 133px;
15
+ .headerLeft {
16
+ flex: 0 0 50%;
17
+ }
30
18
 
31
- > img {
32
- inline-size: 100%;
19
+ .headerRight {
20
+ flex: 0 0 50%;
21
+ display: flex;
22
+ justify-content: flex-end;
23
+ gap: $spacing-8;
33
24
  }
34
- }
35
25
 
36
- .logoContainer {
37
- background: $color-white;
38
- box-sizing: border-box;
39
- inline-size: 48px;
40
- block-size: 48px;
41
- padding: $spacing-xs;
42
- border-radius: $border-solid-border-radius;
43
- box-shadow: $shadow-small-box-shadow;
26
+ .logoLink {
27
+ display: flex;
28
+ align-items: center;
29
+ padding: calc(#{$spacing-sm} - #{$border-solid-border-width}) 0;
30
+ max-inline-size: 133px;
44
31
 
45
- > img {
46
- inline-size: 100%;
47
- border-radius: 4px;
32
+ > img {
33
+ inline-size: 100%;
34
+ }
48
35
  }
49
- }
50
36
 
51
- .headerCustomerFocused {
52
- display: grid;
53
- justify-items: center;
54
- grid-template-columns: auto auto;
55
- padding: $spacing-lg $spacing-md;
56
- }
37
+ .logoContainer {
38
+ background: $color-white;
39
+ box-sizing: border-box;
40
+ inline-size: 48px;
41
+ block-size: 48px;
42
+ padding: $spacing-xs;
43
+ border-radius: $border-solid-border-radius;
44
+ box-shadow: $shadow-small-box-shadow;
57
45
 
58
- .headerCustomerFocused .logoContainer {
59
- inline-size: 48px;
60
- block-size: 48px;
61
- padding: $spacing-xs;
62
- margin-inline-end: auto;
63
- }
64
-
65
- .headerCustomerFocused .rightAlign {
66
- margin-inline-start: auto;
67
- }
46
+ > img {
47
+ inline-size: 100%;
48
+ border-radius: 4px;
49
+ }
50
+ }
68
51
 
69
- @media (min-width: $layout-breakpoints-large) {
70
52
  .headerCustomerFocused {
71
- align-items: flex-start;
72
- grid-template-columns: 1fr auto 1fr;
53
+ display: grid;
54
+ justify-items: center;
55
+ grid-template-columns: auto auto;
56
+ padding: $spacing-lg $spacing-md;
73
57
  }
74
58
 
75
59
  .headerCustomerFocused .logoContainer {
76
- grid-column-start: 2;
77
- inline-size: 84px;
78
- block-size: 84px;
79
- padding: $spacing-sm;
60
+ inline-size: 48px;
61
+ block-size: 48px;
62
+ padding: $spacing-xs;
63
+ margin-inline-end: auto;
80
64
  }
81
- }
82
65
 
83
- .fakeNav {
84
- background: $color-purple-600;
85
- padding: $spacing-md;
86
- display: flex;
87
- align-items: center;
66
+ .headerCustomerFocused .rightAlign {
67
+ margin-inline-start: auto;
68
+ }
69
+
70
+ @media (min-width: $layout-breakpoints-large) {
71
+ .headerCustomerFocused {
72
+ align-items: flex-start;
73
+ grid-template-columns: 1fr auto 1fr;
74
+ }
75
+
76
+ .headerCustomerFocused .logoContainer {
77
+ grid-column-start: 2;
78
+ inline-size: 84px;
79
+ block-size: 84px;
80
+ padding: $spacing-sm;
81
+ }
82
+ }
83
+
84
+ .fakeNav {
85
+ background: $color-purple-600;
86
+ padding: $spacing-md;
87
+ display: flex;
88
+ align-items: center;
89
+ }
88
90
  }
@@ -6,180 +6,182 @@
6
6
  @import '../utils/mixins';
7
7
  @import '../utils/variables';
8
8
 
9
- %button {
10
- @include button-reset;
11
-
12
- -webkit-font-smoothing: antialiased;
13
- -moz-osx-font-smoothing: grayscale;
14
- font-family: $typography-button-primary-font-family;
15
- font-weight: $typography-button-primary-font-weight;
16
- font-size: $typography-button-primary-font-size;
17
- line-height: $typography-button-primary-line-height;
18
- letter-spacing: $typography-button-primary-letter-spacing;
19
- display: inline-flex;
20
- // ^inline-flex is used over (block) flex here to fix an edge case where the parent element is display:grid
21
- // and this element is an <a>, causing the element to be full width.
22
- align-items: center;
23
- box-sizing: border-box;
24
- min-height: $button-height;
25
- border: $border-solid-border-width $border-solid-border-style;
26
- border-radius: $border-solid-border-radius;
27
- position: relative;
28
- text-align: left;
29
- cursor: pointer;
30
- overflow: visible; // Required for the focus ring on IE11
31
-
32
- &[href] {
33
- text-decoration: none;
34
- }
35
-
36
- &:not(.disabled, .working) {
37
- &:active {
38
- transform: translateY(1px);
9
+ @layer kz-components {
10
+ %button {
11
+ @include button-reset;
12
+
13
+ -webkit-font-smoothing: antialiased;
14
+ -moz-osx-font-smoothing: grayscale;
15
+ font-family: $typography-button-primary-font-family;
16
+ font-weight: $typography-button-primary-font-weight;
17
+ font-size: $typography-button-primary-font-size;
18
+ line-height: $typography-button-primary-line-height;
19
+ letter-spacing: $typography-button-primary-letter-spacing;
20
+ display: inline-flex;
21
+ // ^inline-flex is used over (block) flex here to fix an edge case where the parent element is display:grid
22
+ // and this element is an <a>, causing the element to be full width.
23
+ align-items: center;
24
+ box-sizing: border-box;
25
+ min-height: $button-height;
26
+ border: $border-solid-border-width $border-solid-border-style;
27
+ border-radius: $border-solid-border-radius;
28
+ position: relative;
29
+ text-align: left;
30
+ cursor: pointer;
31
+ overflow: visible; // Required for the focus ring on IE11
32
+
33
+ &[href] {
34
+ text-decoration: none;
39
35
  }
40
- }
41
36
 
42
- &:focus {
43
- outline: none;
44
- }
37
+ &:not(.disabled, .working) {
38
+ &:active {
39
+ transform: translateY(1px);
40
+ }
41
+ }
45
42
 
46
- &:focus-visible {
47
- &::after {
48
- $focus-ring-offset: calc((#{$border-focus-ring-border-width} * 2) + 1px);
49
-
50
- content: '';
51
- position: absolute;
52
- background: transparent;
53
- border-color: $color-blue-500;
54
- border-radius: $border-focus-ring-border-radius;
55
- border-width: $border-focus-ring-border-width;
56
- border-style: $border-focus-ring-border-style;
57
- inset: calc(-1 * #{$focus-ring-offset});
43
+ &:focus {
44
+ outline: none;
58
45
  }
59
- }
60
46
 
61
- &.reversed {
62
47
  &:focus-visible {
63
48
  &::after {
64
- border-color: $color-blue-300;
49
+ $focus-ring-offset: calc((#{$border-focus-ring-border-width} * 2) + 1px);
50
+
51
+ content: '';
52
+ position: absolute;
53
+ background: transparent;
54
+ border-color: $color-blue-500;
55
+ border-radius: $border-focus-ring-border-radius;
56
+ border-width: $border-focus-ring-border-width;
57
+ border-style: $border-focus-ring-border-style;
58
+ inset: calc(-1 * #{$focus-ring-offset});
65
59
  }
60
+ }
66
61
 
67
- &.disabled,
68
- &.working {
62
+ &.reversed {
63
+ &:focus-visible {
69
64
  &::after {
70
- border-color: $color-gray-400;
65
+ border-color: $color-blue-300;
66
+ }
67
+
68
+ &.disabled,
69
+ &.working {
70
+ &::after {
71
+ border-color: $color-gray-400;
72
+ }
71
73
  }
72
74
  }
73
75
  }
74
- }
75
76
 
76
- &.disabled,
77
- &.working {
78
- cursor: default;
79
- opacity: 30%;
77
+ &.disabled,
78
+ &.working {
79
+ cursor: default;
80
+ opacity: 30%;
80
81
 
81
- &:focus-visible {
82
- &::after {
83
- border-color: $color-purple-800;
82
+ &:focus-visible {
83
+ &::after {
84
+ border-color: $color-purple-800;
85
+ }
84
86
  }
85
87
  }
86
- }
87
88
 
88
- #{$className--content} {
89
- height: 100%;
90
- display: flex;
91
- align-items: center;
92
- padding: $button-vertical-padding calc(#{$spacing-md} - #{$border-solid-border-width});
89
+ #{$className--content} {
90
+ height: 100%;
91
+ display: flex;
92
+ align-items: center;
93
+ padding: $button-vertical-padding calc(#{$spacing-md} - #{$border-solid-border-width});
94
+ }
93
95
  }
94
- }
95
96
 
96
- %variant-default {
97
- background-color: $color-white;
98
- border-color: $color-gray-500;
99
- color: $color-purple-800;
97
+ %variant-default {
98
+ background-color: $color-white;
99
+ border-color: $color-gray-500;
100
+ color: $color-purple-800;
100
101
 
101
- @include enabled-pseudo-states-variant($color-gray-200, $color-gray-600);
102
+ @include enabled-pseudo-states-variant($color-gray-200, $color-gray-600);
102
103
 
103
- &.reversed {
104
- background-color: transparent;
105
- border-color: rgba($color-white-rgb, 0.65);
106
- color: $color-white;
104
+ &.reversed {
105
+ background-color: transparent;
106
+ border-color: rgba($color-white-rgb, 0.65);
107
+ color: $color-white;
107
108
 
108
- @include enabled-pseudo-states-variant(rgba($color-white-rgb, 0.1), $color-white);
109
+ @include enabled-pseudo-states-variant(rgba($color-white-rgb, 0.1), $color-white);
110
+ }
109
111
  }
110
- }
111
112
 
112
- %variant-primary {
113
- background-color: $color-blue-500;
114
- border-color: $border-borderless-border-color;
115
- color: $color-white;
116
-
117
- @include enabled-pseudo-states-variant($color-blue-600, $border-borderless-border-color);
118
-
119
- &.reversed {
120
- background-color: $color-green-300;
113
+ %variant-primary {
114
+ background-color: $color-blue-500;
121
115
  border-color: $border-borderless-border-color;
122
- color: $color-purple-800;
116
+ color: $color-white;
123
117
 
124
- @include enabled-pseudo-states-variant($color-green-400, $border-borderless-border-color);
125
- }
126
- }
118
+ @include enabled-pseudo-states-variant($color-blue-600, $border-borderless-border-color);
127
119
 
128
- %variant-destructive {
129
- background-color: $color-red-500;
130
- border-color: $border-borderless-border-color;
131
- color: $color-white;
120
+ &.reversed {
121
+ background-color: $color-green-300;
122
+ border-color: $border-borderless-border-color;
123
+ color: $color-purple-800;
132
124
 
133
- @include enabled-pseudo-states-variant($color-red-600, $border-borderless-border-color);
125
+ @include enabled-pseudo-states-variant($color-green-400, $border-borderless-border-color);
126
+ }
127
+ }
134
128
 
135
- &.reversed {
136
- background-color: $color-red-300;
129
+ %variant-destructive {
130
+ background-color: $color-red-500;
137
131
  border-color: $border-borderless-border-color;
138
- color: $color-purple-800;
132
+ color: $color-white;
139
133
 
140
- @include enabled-pseudo-states-variant($color-red-400, $border-borderless-border-color);
141
- }
142
- }
134
+ @include enabled-pseudo-states-variant($color-red-600, $border-borderless-border-color);
135
+
136
+ &.reversed {
137
+ background-color: $color-red-300;
138
+ border-color: $border-borderless-border-color;
139
+ color: $color-purple-800;
143
140
 
144
- %variant-secondary {
145
- font-family: $typography-button-secondary-font-family;
146
- font-weight: $typography-button-secondary-font-weight;
147
- font-size: $typography-button-secondary-font-size;
148
- line-height: $typography-button-secondary-line-height;
149
- letter-spacing: $typography-button-secondary-letter-spacing;
150
- background-color: transparent;
151
- border-color: $border-borderless-border-color;
152
- color: $color-blue-500;
153
-
154
- @include enabled-pseudo-states-variant($color-blue-100, $border-borderless-border-color);
155
-
156
- #{$className--content} {
157
- padding-left: calc(#{$spacing-sm} - #{$border-solid-border-width});
158
- padding-right: calc(#{$spacing-sm} - #{$border-solid-border-width});
141
+ @include enabled-pseudo-states-variant($color-red-400, $border-borderless-border-color);
142
+ }
159
143
  }
160
144
 
161
- &.reversed {
145
+ %variant-secondary {
146
+ font-family: $typography-button-secondary-font-family;
147
+ font-weight: $typography-button-secondary-font-weight;
148
+ font-size: $typography-button-secondary-font-size;
149
+ line-height: $typography-button-secondary-line-height;
150
+ letter-spacing: $typography-button-secondary-letter-spacing;
151
+ background-color: transparent;
162
152
  border-color: $border-borderless-border-color;
163
- color: $color-white;
153
+ color: $color-blue-500;
154
+
155
+ @include enabled-pseudo-states-variant($color-blue-100, $border-borderless-border-color);
156
+
157
+ #{$className--content} {
158
+ padding-left: calc(#{$spacing-sm} - #{$border-solid-border-width});
159
+ padding-right: calc(#{$spacing-sm} - #{$border-solid-border-width});
160
+ }
164
161
 
165
- @include enabled-pseudo-states-variant(
166
- rgba($color-white-rgb, 0.2),
167
- $border-borderless-border-color
168
- );
162
+ &.reversed {
163
+ border-color: $border-borderless-border-color;
164
+ color: $color-white;
165
+
166
+ @include enabled-pseudo-states-variant(
167
+ rgba($color-white-rgb, 0.2),
168
+ $border-borderless-border-color
169
+ );
170
+ }
169
171
  }
170
- }
171
172
 
172
- %variant-secondary-destructive {
173
- color: $color-red-600;
173
+ %variant-secondary-destructive {
174
+ color: $color-red-600;
174
175
 
175
- @include enabled-pseudo-states-variant($color-red-100, $border-borderless-border-color);
176
- }
176
+ @include enabled-pseudo-states-variant($color-red-100, $border-borderless-border-color);
177
+ }
177
178
 
178
- %variant-small {
179
- min-height: $button-small-height;
179
+ %variant-small {
180
+ min-height: $button-small-height;
180
181
 
181
- #{$className--content} {
182
- padding-top: $button-vertical-padding--small;
183
- padding-bottom: $button-vertical-padding--small;
182
+ #{$className--content} {
183
+ padding-top: $button-vertical-padding--small;
184
+ padding-bottom: $button-vertical-padding--small;
185
+ }
184
186
  }
185
187
  }
@@ -4,112 +4,114 @@
4
4
  @import '../../Pagination/subcomponents/PaginationLink/PaginationLink.module';
5
5
  @import '../../Pagination/subcomponents/DirectionalLink/DirectionalLink.module';
6
6
 
7
- .container {
8
- display: inline-block;
9
- }
7
+ @layer kz-components {
8
+ .container {
9
+ display: inline-block;
10
+ }
10
11
 
11
- .button {
12
- @extend %button;
13
- }
12
+ .button {
13
+ @extend %button;
14
+ }
14
15
 
15
- .default {
16
- @extend %variant-default;
17
- }
16
+ .default {
17
+ @extend %variant-default;
18
+ }
18
19
 
19
- .primary {
20
- @extend %variant-primary;
21
- }
20
+ .primary {
21
+ @extend %variant-primary;
22
+ }
22
23
 
23
- .destructive {
24
- @extend %variant-destructive;
25
- }
24
+ .destructive {
25
+ @extend %variant-destructive;
26
+ }
26
27
 
27
- .secondary {
28
- @extend %variant-secondary;
28
+ .secondary {
29
+ @extend %variant-secondary;
29
30
 
30
- &.destructive {
31
- @extend %variant-secondary-destructive;
31
+ &.destructive {
32
+ @extend %variant-secondary-destructive;
33
+ }
32
34
  }
33
- }
34
35
 
35
- .small {
36
- @extend %variant-small;
37
- }
36
+ .small {
37
+ @extend %variant-small;
38
+ }
38
39
 
39
- .label {
40
- line-height: 1;
40
+ .label {
41
+ line-height: 1;
41
42
 
42
- &:not(:first-child) {
43
- @include ca-margin($start: 0.5em, $end: null);
44
- }
43
+ &:not(:first-child) {
44
+ @include ca-margin($start: 0.5em, $end: null);
45
+ }
45
46
 
46
- &:not(:last-child) {
47
- @include ca-margin($end: 0.5em, $start: null);
47
+ &:not(:last-child) {
48
+ @include ca-margin($end: 0.5em, $start: null);
49
+ }
48
50
  }
49
- }
50
-
51
- .fullWidth {
52
- width: 100%;
53
51
 
54
- .button {
55
- display: flex;
52
+ .fullWidth {
56
53
  width: 100%;
57
- justify-content: center;
58
- }
59
54
 
60
- #{$className--content} {
61
- justify-content: center;
55
+ .button {
56
+ display: flex;
57
+ width: 100%;
58
+ justify-content: center;
59
+ }
60
+
61
+ #{$className--content} {
62
+ justify-content: center;
63
+ }
62
64
  }
63
- }
64
65
 
65
- .iconWrapper {
66
- height: 20px;
67
- align-self: flex-start;
68
- }
66
+ .iconWrapper {
67
+ height: 20px;
68
+ align-self: flex-start;
69
+ }
69
70
 
70
- .additionalContentWrapper {
71
- display: inherit;
71
+ .additionalContentWrapper {
72
+ display: inherit;
72
73
 
73
- &:not(:last-child) {
74
- @include ca-margin($end: 0.5em, $start: null);
74
+ &:not(:last-child) {
75
+ @include ca-margin($end: 0.5em, $start: null);
76
+ }
75
77
  }
76
- }
77
78
 
78
- .loadingSpinner {
79
- // This is to fix a problem in safari where the svg stretched too high
80
- svg {
81
- height: 100%;
79
+ .loadingSpinner {
80
+ // This is to fix a problem in safari where the svg stretched too high
81
+ svg {
82
+ height: 100%;
83
+ }
82
84
  }
83
- }
84
85
 
85
- .centeredLoadingSpinner {
86
- position: absolute;
87
- left: 0;
88
- right: 0;
89
- display: flex;
90
- justify-content: center;
91
- }
86
+ .centeredLoadingSpinner {
87
+ position: absolute;
88
+ left: 0;
89
+ right: 0;
90
+ display: flex;
91
+ justify-content: center;
92
+ }
92
93
 
93
- .hidden {
94
- visibility: hidden;
95
- }
94
+ .hidden {
95
+ visibility: hidden;
96
+ }
96
97
 
97
- .iconButton {
98
- @extend %icon-button;
99
- }
98
+ .iconButton {
99
+ @extend %icon-button;
100
+ }
100
101
 
101
- .circleButton {
102
- @extend %circle-button;
103
- }
102
+ .circleButton {
103
+ @extend %circle-button;
104
+ }
104
105
 
105
- .directionalLink {
106
- @extend %directional-link;
107
- }
106
+ .directionalLink {
107
+ @extend %directional-link;
108
+ }
108
109
 
109
- .paginationLink {
110
- @extend %pagination-link;
111
- }
110
+ .paginationLink {
111
+ @extend %pagination-link;
112
+ }
112
113
 
113
- .isPaginationLinkActive {
114
- @extend %pagination-link--active;
114
+ .isPaginationLinkActive {
115
+ @extend %pagination-link--active;
116
+ }
115
117
  }