@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
@@ -1,170 +1,172 @@
1
1
  @import '~@kaizen/design-tokens/sass/spacing';
2
2
  @import '~@kaizen/design-tokens/sass/color';
3
3
 
4
- $thumb-color: $color-blue-500;
5
- $thumb-color-hover: $color-blue-600;
6
- $thumb-radius: 100%;
7
- $thumb-border-width: 4px;
8
- $thumb-border-color: $color-white;
9
- $thumb-height: 26px;
10
- $thumb-width: 26px;
11
- $thumb-height-with-border: $thumb-height + ($thumb-border-width * 2);
12
- $thumb-width-with-border: $thumb-width + ($thumb-border-width * 2);
13
-
14
- // The range
15
- $track-color: $color-gray-500;
16
- $track-radius: 4px;
17
-
18
- @mixin track {
19
- width: auto;
20
- height: 0;
21
- box-sizing: border-box;
22
- border-top: 1px solid $track-color;
23
- border-bottom: 2px solid $track-color;
24
- border-radius: $track-radius;
25
- }
4
+ @layer kz-components {
5
+ $thumb-color: $color-blue-500;
6
+ $thumb-color-hover: $color-blue-600;
7
+ $thumb-radius: 100%;
8
+ $thumb-border-width: 4px;
9
+ $thumb-border-color: $color-white;
10
+ $thumb-height: 26px;
11
+ $thumb-width: 26px;
12
+ $thumb-height-with-border: $thumb-height + ($thumb-border-width * 2);
13
+ $thumb-width-with-border: $thumb-width + ($thumb-border-width * 2);
14
+
15
+ // The range
16
+ $track-color: $color-gray-500;
17
+ $track-radius: 4px;
18
+
19
+ @mixin track {
20
+ width: auto;
21
+ height: 0;
22
+ box-sizing: border-box;
23
+ border-top: 1px solid $track-color;
24
+ border-bottom: 2px solid $track-color;
25
+ border-radius: $track-radius;
26
+ }
26
27
 
27
- @mixin thumb {
28
- box-sizing: content-box;
29
- width: $thumb-width;
30
- height: $thumb-height;
31
- border: $thumb-border-width solid $thumb-border-color;
32
- border-radius: $thumb-radius;
33
- background: $thumb-color;
34
-
35
- &:not(:disabled) {
36
- transition: all 0.2s;
37
- transition-property: background, height, width;
38
-
39
- &:hover {
40
- background: $thumb-color-hover;
41
- width: $thumb-height + 6px;
42
- height: $thumb-width + 6px;
28
+ @mixin thumb {
29
+ box-sizing: content-box;
30
+ width: $thumb-width;
31
+ height: $thumb-height;
32
+ border: $thumb-border-width solid $thumb-border-color;
33
+ border-radius: $thumb-radius;
34
+ background: $thumb-color;
35
+
36
+ &:not(:disabled) {
37
+ transition: all 0.2s;
38
+ transition-property: background, height, width;
39
+
40
+ &:hover {
41
+ background: $thumb-color-hover;
42
+ width: $thumb-height + 6px;
43
+ height: $thumb-width + 6px;
44
+ }
43
45
  }
44
46
  }
45
- }
46
47
 
47
- @mixin hidden-thumb {
48
- width: 0;
49
- height: 0;
50
- border: none;
51
- }
48
+ @mixin hidden-thumb {
49
+ width: 0;
50
+ height: 0;
51
+ border: none;
52
+ }
52
53
 
53
- // extra input[type="range"] is required to override materialize.css in performance-ui
54
- input[type='range'].ratingScaleRange {
55
- all: unset;
56
- appearance: none;
57
- width: 100%;
58
- margin: 0; // performance-ui materialize override
54
+ // extra input[type="range"] is required to override materialize.css in performance-ui
55
+ input[type='range'].ratingScaleRange {
56
+ all: unset;
57
+ appearance: none;
58
+ width: 100%;
59
+ margin: 0; // performance-ui materialize override
59
60
 
60
- &.disabled {
61
- opacity: 40%;
62
- }
61
+ &.disabled {
62
+ opacity: 40%;
63
+ }
63
64
 
64
- &::-moz-focus-outer {
65
- border: 0;
66
- }
65
+ &::-moz-focus-outer {
66
+ border: 0;
67
+ }
67
68
 
68
- &:focus {
69
- outline: 0;
70
- }
69
+ &:focus {
70
+ outline: 0;
71
+ }
71
72
 
72
- &:focus-visible {
73
- outline: 2px solid $color-blue-500;
74
- }
73
+ &:focus-visible {
74
+ outline: 2px solid $color-blue-500;
75
+ }
75
76
 
76
- &::-webkit-slider-runnable-track {
77
- margin: $spacing-sm 0;
77
+ &::-webkit-slider-runnable-track {
78
+ margin: $spacing-sm 0;
78
79
 
79
- @include track;
80
- }
80
+ @include track;
81
+ }
81
82
 
82
- &::-moz-range-track {
83
- @include track;
84
- }
83
+ &::-moz-range-track {
84
+ @include track;
85
+ }
85
86
 
86
- &::-webkit-slider-thumb {
87
- -webkit-appearance: none;
88
- margin-top: calc((#{$thumb-height-with-border}/ 2) * -1);
87
+ &::-webkit-slider-thumb {
88
+ -webkit-appearance: none;
89
+ margin-top: calc((#{$thumb-height-with-border}/ 2) * -1);
89
90
 
90
- @include thumb;
91
- }
91
+ @include thumb;
92
+ }
92
93
 
93
- &::-moz-range-thumb {
94
- @include thumb;
95
- }
94
+ &::-moz-range-thumb {
95
+ @include thumb;
96
+ }
96
97
 
97
- &.hideThumb::-webkit-slider-thumb {
98
- @include hidden-thumb;
99
- }
98
+ &.hideThumb::-webkit-slider-thumb {
99
+ @include hidden-thumb;
100
+ }
100
101
 
101
- &.hideThumb::-moz-range-thumb {
102
- @include hidden-thumb;
103
- }
102
+ &.hideThumb::-moz-range-thumb {
103
+ @include hidden-thumb;
104
+ }
104
105
 
105
- &::-ms-track {
106
- @include track;
106
+ &::-ms-track {
107
+ @include track;
107
108
 
108
- color: transparent;
109
- border-width: $thumb-width 0;
110
- border-color: transparent;
111
- background: transparent;
112
- }
109
+ color: transparent;
110
+ border-width: $thumb-width 0;
111
+ border-color: transparent;
112
+ background: transparent;
113
+ }
113
114
 
114
- &::-ms-fill-lower {
115
- border: none;
116
- border-radius: $track-radius * 2;
117
- background: $track-color;
118
- }
115
+ &::-ms-fill-lower {
116
+ border: none;
117
+ border-radius: $track-radius * 2;
118
+ background: $track-color;
119
+ }
119
120
 
120
- &::-ms-fill-upper {
121
- border: none;
122
- border-radius: $track-radius * 2;
123
- background: $track-color;
124
- }
121
+ &::-ms-fill-upper {
122
+ border: none;
123
+ border-radius: $track-radius * 2;
124
+ background: $track-color;
125
+ }
125
126
 
126
- &::-ms-thumb {
127
- @include thumb;
127
+ &::-ms-thumb {
128
+ @include thumb;
129
+ }
128
130
  }
129
- }
130
131
 
131
- .spokes {
132
- display: flex;
133
- justify-content: space-between;
134
- padding: 0 calc(#{$thumb-width-with-border}/ 2) $spacing-sm;
135
- }
132
+ .spokes {
133
+ display: flex;
134
+ justify-content: space-between;
135
+ padding: 0 calc(#{$thumb-width-with-border}/ 2) $spacing-sm;
136
+ }
136
137
 
137
- .spokes.disabled {
138
- opacity: 40%;
139
- }
138
+ .spokes.disabled {
139
+ opacity: 40%;
140
+ }
140
141
 
141
- .spokeContainer {
142
- display: flex;
143
- align-items: center;
144
- justify-content: center;
145
- width: 1px;
146
- }
142
+ .spokeContainer {
143
+ display: flex;
144
+ align-items: center;
145
+ justify-content: center;
146
+ width: 1px;
147
+ }
147
148
 
148
- .spoke {
149
- width: 0;
150
- height: 0;
151
- background: $track-color;
152
- border: 2px solid $track-color;
153
- border-radius: 100%;
154
- }
149
+ .spoke {
150
+ width: 0;
151
+ height: 0;
152
+ background: $track-color;
153
+ border: 2px solid $track-color;
154
+ border-radius: 100%;
155
+ }
155
156
 
156
- .labelsContainer {
157
- display: flex;
158
- justify-content: center;
159
- width: 100%;
160
- }
157
+ .labelsContainer {
158
+ display: flex;
159
+ justify-content: center;
160
+ width: 100%;
161
+ }
161
162
 
162
- .sliderLabels {
163
- width: 100%;
164
- display: flex;
165
- justify-content: space-between;
166
- }
163
+ .sliderLabels {
164
+ width: 100%;
165
+ display: flex;
166
+ justify-content: space-between;
167
+ }
167
168
 
168
- .sliderLabels.disabled {
169
- opacity: 40%;
169
+ .sliderLabels.disabled {
170
+ opacity: 40%;
171
+ }
170
172
  }
@@ -3,208 +3,211 @@
3
3
  @import '~@kaizen/design-tokens/sass/spacing';
4
4
  @import '../../../styles/utils/forms';
5
5
 
6
- $input-height: 48px;
7
- $input-padding-before-start-icon: 1rem;
8
- $input-padding-between-icon-input: $spacing-sm;
9
- $input-padding-after-end-icon: $spacing-sm;
10
- $input-icon-size: 1.25rem; // 20px
11
- $input-padding-with-icon: calc(
12
- #{$input-padding-before-start-icon} + #{$input-icon-size} + #{$input-padding-between-icon-input}
13
- );
14
- $input-disabled-opacity: 0.3;
15
- $border-solid-border-radius-curved: $input-height;
16
-
17
- $input-placeholder-opacity--default: 0.7;
18
- $start-icon-opacity--default: $input-placeholder-opacity--default;
19
- $input-placeholder-opacity--reversed: 0.8;
20
- $start-icon-opacity--reversed: $input-placeholder-opacity--reversed;
21
-
22
- // [type="search"] is required to override performance-ui global materialize CSS >:|
23
- $classname--input: '.input[type="search"]';
24
-
25
- .wrapper {
26
- position: relative;
27
- }
28
-
29
- #{$classname--input} {
30
- @include form-input-reset;
31
-
32
- display: flex;
33
- align-items: center;
34
- height: $input-height;
35
- width: 100%;
36
- border: $border-solid-border-width $border-solid-border-style transparent;
37
- border-radius: $border-solid-border-radius-curved;
38
- padding-block: 0;
39
- padding-inline: $input-padding-with-icon $input-padding-after-end-icon;
40
- font-size: 1rem;
41
- line-height: 1.5;
42
-
43
- @include form-input-placeholder {
44
- opacity: 100%;
45
- }
46
-
47
- &::-webkit-search-cancel-button {
48
- -webkit-appearance: none;
6
+ @layer kz-components {
7
+ $input-height: 48px;
8
+ $input-padding-before-start-icon: 1rem;
9
+ $input-padding-between-icon-input: $spacing-sm;
10
+ $input-padding-after-end-icon: $spacing-sm;
11
+ $input-icon-size: 1.25rem; // 20px
12
+ $input-padding-with-icon: calc(
13
+ #{$input-padding-before-start-icon} + #{$input-icon-size} + #{$input-padding-between-icon-input}
14
+ );
15
+ $input-disabled-opacity: 0.3;
16
+ $border-solid-border-radius-curved: $input-height;
17
+
18
+ $input-placeholder-opacity--default: 0.7;
19
+ $start-icon-opacity--default: $input-placeholder-opacity--default;
20
+ $input-placeholder-opacity--reversed: 0.8;
21
+ $start-icon-opacity--reversed: $input-placeholder-opacity--reversed;
22
+
23
+ // [type="search"] is required to override performance-ui global materialize CSS >:|
24
+ $classname--input: '.input[type="search"]';
25
+
26
+ .wrapper {
27
+ position: relative;
49
28
  }
50
29
 
51
- .hasEndIconAdornment & {
52
- padding-inline-end: calc(
53
- #{$input-padding-between-icon-input} + #{$input-icon-size} + #{$input-padding-after-end-icon}
54
- );
55
- }
30
+ #{$classname--input} {
31
+ @include form-input-reset;
32
+
33
+ display: flex;
34
+ align-items: center;
35
+ height: $input-height;
36
+ width: 100%;
37
+ border: $border-solid-border-width $border-solid-border-style transparent;
38
+ border-radius: $border-solid-border-radius-curved;
39
+ padding-block: 0;
40
+ padding-inline: $input-padding-with-icon $input-padding-after-end-icon;
41
+ font-size: 1rem;
42
+ line-height: 1.5;
56
43
 
57
- &:focus,
58
- &:hover {
59
44
  @include form-input-placeholder {
60
- opacity: 0%;
45
+ opacity: 100%;
61
46
  }
62
- }
63
-
64
- &:focus {
65
- outline: var(--border-focus-ring-border-width) var(--border-focus-ring-border-style)
66
- var(--color-blue-500);
67
- outline-offset: 1px;
68
- }
69
- }
70
47
 
71
- @mixin vertically-center-icon {
72
- position: absolute;
73
- height: $input-icon-size;
74
- top: 50%;
75
- transform: translateY(-50%);
76
- z-index: 1;
77
- }
48
+ &::-webkit-search-cancel-button {
49
+ -webkit-appearance: none;
50
+ }
78
51
 
79
- .startIconAdornment {
80
- @include vertically-center-icon;
52
+ .hasEndIconAdornment & {
53
+ padding-inline-end: calc(
54
+ #{$input-padding-between-icon-input} + #{$input-icon-size} +
55
+ #{$input-padding-after-end-icon}
56
+ );
57
+ }
81
58
 
82
- inset-inline-start: $input-padding-before-start-icon;
83
- }
59
+ &:focus,
60
+ &:hover {
61
+ @include form-input-placeholder {
62
+ opacity: 0%;
63
+ }
64
+ }
84
65
 
85
- .loadingSpinner {
86
- margin-top: -2px;
87
- }
66
+ &:focus {
67
+ outline: var(--border-focus-ring-border-width) var(--border-focus-ring-border-style)
68
+ var(--color-blue-500);
69
+ outline-offset: 1px;
70
+ }
71
+ }
88
72
 
89
- .endIconAdornment {
90
- @include vertically-center-icon;
73
+ @mixin vertically-center-icon {
74
+ position: absolute;
75
+ height: $input-icon-size;
76
+ top: 50%;
77
+ transform: translateY(-50%);
78
+ z-index: 1;
79
+ }
91
80
 
92
- inset-inline-end: $input-padding-after-end-icon;
93
- }
81
+ .startIconAdornment {
82
+ @include vertically-center-icon;
94
83
 
95
- .disabled {
96
- pointer-events: none;
97
- opacity: $input-disabled-opacity;
98
- }
84
+ inset-inline-start: $input-padding-before-start-icon;
85
+ }
99
86
 
100
- /* stylelint-disable no-descending-specificity */
101
- ///////////////////////////////////////////////////
102
- // THEMES
103
- ///////////////////////////////////////////////////
87
+ .loadingSpinner {
88
+ margin-top: -2px;
89
+ }
104
90
 
105
- // Default
106
- .default {
107
- #{$classname--input} {
108
- border-color: $color-gray-500;
109
- background-color: $color-white;
110
- color: $color-purple-800;
91
+ .endIconAdornment {
92
+ @include vertically-center-icon;
111
93
 
112
- @include form-input-placeholder {
113
- color: $color-purple-800;
114
- opacity: $input-placeholder-opacity--default;
115
- }
94
+ inset-inline-end: $input-padding-after-end-icon;
116
95
  }
117
96
 
118
- .startIconAdornment {
119
- color: $color-purple-800;
120
- opacity: $start-icon-opacity--default;
97
+ .disabled {
98
+ pointer-events: none;
99
+ opacity: $input-disabled-opacity;
121
100
  }
122
101
 
123
- &:hover,
124
- &:focus-within {
102
+ /* stylelint-disable no-descending-specificity */
103
+ ///////////////////////////////////////////////////
104
+ // THEMES
105
+ ///////////////////////////////////////////////////
106
+
107
+ // Default
108
+ .default {
125
109
  #{$classname--input} {
126
- border-color: $color-gray-600;
127
- background-color: $color-gray-200;
110
+ border-color: $color-gray-500;
111
+ background-color: $color-white;
112
+ color: $color-purple-800;
128
113
 
129
114
  @include form-input-placeholder {
130
- opacity: 100%;
115
+ color: $color-purple-800;
116
+ opacity: $input-placeholder-opacity--default;
131
117
  }
132
118
  }
133
119
 
134
120
  .startIconAdornment {
135
- opacity: 100%;
121
+ color: $color-purple-800;
122
+ opacity: $start-icon-opacity--default;
136
123
  }
137
- }
138
- }
139
124
 
140
- // Secondary
141
- .secondary {
142
- #{$classname--input} {
143
- border-color: transparent;
144
- background-color: $color-gray-200;
145
- color: $color-purple-800;
125
+ &:hover,
126
+ &:focus-within {
127
+ #{$classname--input} {
128
+ border-color: $color-gray-600;
129
+ background-color: $color-gray-200;
146
130
 
147
- @include form-input-placeholder {
148
- color: $color-purple-800;
149
- opacity: $input-placeholder-opacity--default;
150
- }
151
- }
131
+ @include form-input-placeholder {
132
+ opacity: 100%;
133
+ }
134
+ }
152
135
 
153
- .startIconAdornment {
154
- color: $color-purple-800;
155
- opacity: $start-icon-opacity--default;
136
+ .startIconAdornment {
137
+ opacity: 100%;
138
+ }
139
+ }
156
140
  }
157
141
 
158
- &:hover,
159
- &:focus-within {
142
+ // Secondary
143
+ .secondary {
160
144
  #{$classname--input} {
161
145
  border-color: transparent;
162
- background-color: $color-gray-300;
146
+ background-color: $color-gray-200;
147
+ color: $color-purple-800;
163
148
 
164
149
  @include form-input-placeholder {
165
- opacity: 100%;
150
+ color: $color-purple-800;
151
+ opacity: $input-placeholder-opacity--default;
166
152
  }
167
153
  }
168
154
 
169
155
  .startIconAdornment {
170
- opacity: 100%;
156
+ color: $color-purple-800;
157
+ opacity: $start-icon-opacity--default;
171
158
  }
172
- }
173
- }
174
159
 
175
- // Reversed
176
- .reversed {
177
- #{$classname--input} {
178
- background: rgba($color-white-rgb, 0.1);
179
- color: $color-white;
160
+ &:hover,
161
+ &:focus-within {
162
+ #{$classname--input} {
163
+ border-color: transparent;
164
+ background-color: $color-gray-300;
180
165
 
181
- @include form-input-placeholder {
182
- color: $color-white;
183
- opacity: $input-placeholder-opacity--reversed;
184
- }
166
+ @include form-input-placeholder {
167
+ opacity: 100%;
168
+ }
169
+ }
185
170
 
186
- &:focus {
187
- outline-color: var(--color-blue-300);
171
+ .startIconAdornment {
172
+ opacity: 100%;
173
+ }
188
174
  }
189
175
  }
190
176
 
191
- .startIconAdornment {
192
- color: $color-white;
193
- opacity: $start-icon-opacity--reversed;
194
- }
195
-
196
- &:hover,
197
- &:focus-within {
177
+ // Reversed
178
+ .reversed {
198
179
  #{$classname--input} {
199
- border-color: transparent;
200
- background-color: rgba($color-white-rgb, 0.2);
180
+ background: rgba($color-white-rgb, 0.1);
181
+ color: $color-white;
182
+
183
+ @include form-input-placeholder {
184
+ color: $color-white;
185
+ opacity: $input-placeholder-opacity--reversed;
186
+ }
187
+
188
+ &:focus {
189
+ outline-color: var(--color-blue-300);
190
+ }
201
191
  }
202
- }
203
192
 
204
- &.default {
205
- #{$classname--input} {
206
- border-color: rgba($color-white-rgb, 0.65);
193
+ .startIconAdornment {
194
+ color: $color-white;
195
+ opacity: $start-icon-opacity--reversed;
196
+ }
197
+
198
+ &:hover,
199
+ &:focus-within {
200
+ #{$classname--input} {
201
+ border-color: transparent;
202
+ background-color: rgba($color-white-rgb, 0.2);
203
+ }
204
+ }
205
+
206
+ &.default {
207
+ #{$classname--input} {
208
+ border-color: rgba($color-white-rgb, 0.65);
209
+ }
207
210
  }
208
211
  }
212
+ /* stylelint-enable no-descending-specificity */
209
213
  }
210
- /* stylelint-enable no-descending-specificity */