@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
@@ -3,77 +3,79 @@
3
3
  @import '../../../styles/utils/forms';
4
4
  @import '../../../styles/utils/form-variables';
5
5
 
6
- $radio-size: 24px;
7
- $icon-size: 10px;
8
- $icon-offset: 5px;
9
- $focus-ring-offset: 2px;
6
+ @layer kz-components {
7
+ $radio-size: 24px;
8
+ $icon-size: 10px;
9
+ $icon-offset: 5px;
10
+ $focus-ring-offset: 2px;
10
11
 
11
- $dt-color-radio-background-color-hover: $color-gray-200;
12
- $dt-color-radio-disc-color-base: $color-gray-600;
13
- $dt-color-radio-border-color-focus: $color-blue-500;
14
- $dt-color-radio-border-color-focus-reversed: $color-blue-300;
12
+ $dt-color-radio-background-color-hover: $color-gray-200;
13
+ $dt-color-radio-disc-color-base: $color-gray-600;
14
+ $dt-color-radio-border-color-focus: $color-blue-500;
15
+ $dt-color-radio-border-color-focus-reversed: $color-blue-300;
15
16
 
16
- .radioInput {
17
- @include form-input-visually-hidden;
18
- }
19
-
20
- .icon {
21
- top: $icon-offset;
22
- left: $icon-offset;
23
- width: $icon-size;
24
- height: $icon-size;
25
- border-radius: 50%;
26
- background: $dt-color-radio-disc-color-base;
27
- position: absolute;
28
-
29
- &.reversed {
30
- background: $color-white;
17
+ .radioInput {
18
+ @include form-input-visually-hidden;
31
19
  }
32
20
 
33
- @media (forced-colors: active) {
34
- // High contrast mode with remove the background color so we have to use border to create the selected icon state.
35
- // Transparent is used so the user defined colors for borders will be used here
36
- border: $icon-offset solid transparent;
37
- width: 0;
38
- height: 0;
39
- }
40
- }
21
+ .icon {
22
+ top: $icon-offset;
23
+ left: $icon-offset;
24
+ width: $icon-size;
25
+ height: $icon-size;
26
+ border-radius: 50%;
27
+ background: $dt-color-radio-disc-color-base;
28
+ position: absolute;
41
29
 
42
- .box {
43
- display: block;
44
- position: relative;
45
- background: $color-white;
46
- height: $radio-size;
47
- width: $radio-size;
48
- top: 0;
49
- border: $border-solid-border-width $border-solid-border-style $dt-color-form-border-color;
50
- box-sizing: border-box;
51
- border-radius: 50%;
52
-
53
- .radioInput:focus:not([disabled]) + & {
54
- border-color: $dt-color-radio-disc-color-base;
55
- outline: var(--border-focus-ring-border-width) var(--border-focus-ring-border-style)
56
- var(--color-blue-500);
57
- outline-offset: 1px;
58
- }
30
+ &.reversed {
31
+ background: $color-white;
32
+ }
59
33
 
60
- .radioInput:not([disabled]) + &:hover {
61
- border-color: $dt-color-form-border-color-hover;
62
- background-color: $dt-color-radio-background-color-hover;
34
+ @media (forced-colors: active) {
35
+ // High contrast mode with remove the background color so we have to use border to create the selected icon state.
36
+ // Transparent is used so the user defined colors for borders will be used here
37
+ border: $icon-offset solid transparent;
38
+ width: 0;
39
+ height: 0;
40
+ }
63
41
  }
64
42
 
65
- &.reversed {
66
- border: $border-solid-border-width $border-solid-border-style rgba($color-white-rgb, 0.65);
67
- background: transparent;
43
+ .box {
44
+ display: block;
45
+ position: relative;
46
+ background: $color-white;
47
+ height: $radio-size;
48
+ width: $radio-size;
49
+ top: 0;
50
+ border: $border-solid-border-width $border-solid-border-style $dt-color-form-border-color;
51
+ box-sizing: border-box;
52
+ border-radius: 50%;
68
53
 
69
54
  .radioInput:focus:not([disabled]) + & {
70
- border-color: $color-white;
71
- outline-color: $dt-color-radio-border-color-focus-reversed;
55
+ border-color: $dt-color-radio-disc-color-base;
56
+ outline: var(--border-focus-ring-border-width) var(--border-focus-ring-border-style)
57
+ var(--color-blue-500);
58
+ outline-offset: 1px;
72
59
  }
73
60
 
74
61
  .radioInput:not([disabled]) + &:hover {
75
- border-color: $color-white;
76
- background-color: transparent;
62
+ border-color: $dt-color-form-border-color-hover;
63
+ background-color: $dt-color-radio-background-color-hover;
64
+ }
65
+
66
+ &.reversed {
67
+ border: $border-solid-border-width $border-solid-border-style rgba($color-white-rgb, 0.65);
68
+ background: transparent;
69
+
70
+ .radioInput:focus:not([disabled]) + & {
71
+ border-color: $color-white;
72
+ outline-color: $dt-color-radio-border-color-focus-reversed;
73
+ }
74
+
75
+ .radioInput:not([disabled]) + &:hover {
76
+ border-color: $color-white;
77
+ background-color: transparent;
78
+ }
77
79
  }
78
80
  }
79
81
  }
@@ -3,46 +3,48 @@
3
3
  @import '~@kaizen/design-tokens/sass/typography';
4
4
  @import '../../../styles/utils/form-variables';
5
5
 
6
- $dt-color-radio-background-color-hover: $color-gray-200;
6
+ @layer kz-components {
7
+ $dt-color-radio-background-color-hover: $color-gray-200;
7
8
 
8
- .container {
9
- position: relative;
10
- overflow-wrap: anywhere;
11
- word-break: normal;
12
- margin-bottom: $spacing-sm;
9
+ .container {
10
+ position: relative;
11
+ overflow-wrap: anywhere;
12
+ word-break: normal;
13
+ margin-bottom: $spacing-sm;
13
14
 
14
- label {
15
- -webkit-tap-highlight-color: transparent;
15
+ label {
16
+ -webkit-tap-highlight-color: transparent;
16
17
 
17
- :global(.ideal-sans) & {
18
- // This is to override bootstrap styles. Remove when appropriate
19
- font-size: $typography-paragraph-body-font-size;
20
- padding-top: 0;
18
+ :global(.ideal-sans) & {
19
+ // This is to override bootstrap styles. Remove when appropriate
20
+ font-size: $typography-paragraph-body-font-size;
21
+ padding-top: 0;
22
+ }
21
23
  }
22
- }
23
24
 
24
- &.selected {
25
- label {
26
- font-family: $typography-paragraph-body-font-family;
27
- font-size: $typography-paragraph-body-font-size;
28
- line-height: $typography-paragraph-body-line-height;
29
- letter-spacing: $typography-paragraph-body-letter-spacing;
30
- font-weight: $typography-paragraph-bold-font-weight;
31
- position: static;
25
+ &.selected {
26
+ label {
27
+ font-family: $typography-paragraph-body-font-family;
28
+ font-size: $typography-paragraph-body-font-size;
29
+ line-height: $typography-paragraph-body-line-height;
30
+ letter-spacing: $typography-paragraph-body-letter-spacing;
31
+ font-weight: $typography-paragraph-bold-font-weight;
32
+ position: static;
33
+ }
32
34
  }
33
- }
34
35
 
35
- &:not(.reversed) label:hover {
36
- input:not([disabled]) + span {
37
- border-color: $dt-color-form-border-color-hover;
38
- background-color: $dt-color-radio-background-color-hover;
36
+ &:not(.reversed) label:hover {
37
+ input:not([disabled]) + span {
38
+ border-color: $dt-color-form-border-color-hover;
39
+ background-color: $dt-color-radio-background-color-hover;
40
+ }
39
41
  }
40
- }
41
42
 
42
- &.reversed label:hover {
43
- input:not([disabled]) + span {
44
- border-color: $color-white;
45
- background-color: transparent;
43
+ &.reversed label:hover {
44
+ input:not([disabled]) + span {
45
+ border-color: $color-white;
46
+ background-color: transparent;
47
+ }
46
48
  }
47
49
  }
48
50
  }
@@ -1,27 +1,29 @@
1
1
  @import '~@kaizen/design-tokens/sass/color';
2
2
  @import '~@kaizen/design-tokens/sass/spacing';
3
3
 
4
- .radioGroupLabel {
5
- margin-bottom: $spacing-sm;
4
+ @layer kz-components {
5
+ .radioGroupLabel {
6
+ margin-bottom: $spacing-sm;
6
7
 
7
- label {
8
- :global(.ideal-sans) & {
9
- // This is to override bootstrap styles. Remove when appropriate
10
- padding-top: 0;
8
+ label {
9
+ :global(.ideal-sans) & {
10
+ // This is to override bootstrap styles. Remove when appropriate
11
+ padding-top: 0;
12
+ }
11
13
  }
12
- }
13
14
 
14
- &.reversed {
15
- color: $color-white;
15
+ &.reversed {
16
+ color: $color-white;
17
+ }
16
18
  }
17
- }
18
19
 
19
- .radioGroupContainer {
20
- display: flex;
21
- flex-direction: column;
22
- margin-bottom: $spacing-sm;
20
+ .radioGroupContainer {
21
+ display: flex;
22
+ flex-direction: column;
23
+ margin-bottom: $spacing-sm;
23
24
 
24
- &.noBottomMargin {
25
- margin-bottom: 0;
25
+ &.noBottomMargin {
26
+ margin-bottom: 0;
27
+ }
26
28
  }
27
29
  }
@@ -4,40 +4,42 @@
4
4
  @import '~@kaizen/design-tokens/sass/spacing';
5
5
  @import '~@kaizen/design-tokens/sass/typography';
6
6
 
7
- .editorLabel {
8
- margin-bottom: $spacing-6;
9
- display: inline-block;
10
- }
7
+ @layer kz-components {
8
+ .editorLabel {
9
+ margin-bottom: $spacing-6;
10
+ display: inline-block;
11
+ }
11
12
 
12
- .editableContainer :global(.ProseMirror) {
13
- padding: calc($spacing-12 - $border-solid-border-width);
14
- position: relative;
15
- border-radius: $border-solid-border-radius;
16
- border: $border-solid-border-width $border-solid-border-style $color-gray-500;
17
- transition:
18
- background-color $animation-duration-immediate,
19
- border-color $animation-duration-immediate;
20
- background-color: $color-white;
21
- min-height: $typography-paragraph-body-line-height;
22
- }
13
+ .editableContainer :global(.ProseMirror) {
14
+ padding: calc($spacing-12 - $border-solid-border-width);
15
+ position: relative;
16
+ border-radius: $border-solid-border-radius;
17
+ border: $border-solid-border-width $border-solid-border-style $color-gray-500;
18
+ transition:
19
+ background-color $animation-duration-immediate,
20
+ border-color $animation-duration-immediate;
21
+ background-color: $color-white;
22
+ min-height: $typography-paragraph-body-line-height;
23
+ }
23
24
 
24
- .editableContainer:hover :global(.ProseMirror) {
25
- background-color: $color-gray-200;
26
- }
25
+ .editableContainer:hover :global(.ProseMirror) {
26
+ background-color: $color-gray-200;
27
+ }
27
28
 
28
- .editableContainer .hiddenButton:focus-within + * > :global(.ProseMirror) {
29
- background-color: $color-gray-200;
29
+ .editableContainer .hiddenButton:focus-within + * > :global(.ProseMirror) {
30
+ background-color: $color-gray-200;
30
31
 
31
- &::before {
32
- $focus-ring-offset: calc((#{$border-focus-ring-border-width} * 2) + 1px);
32
+ &::before {
33
+ $focus-ring-offset: calc((#{$border-focus-ring-border-width} * 2) + 1px);
33
34
 
34
- pointer-events: none;
35
- content: '';
36
- position: absolute;
37
- background: transparent;
38
- border: $border-focus-ring-border-width $border-focus-ring-border-style $color-blue-500;
39
- border-radius: 10px;
40
- inset: calc(-1 * #{$focus-ring-offset});
41
- z-index: 1;
35
+ pointer-events: none;
36
+ content: '';
37
+ position: absolute;
38
+ background: transparent;
39
+ border: $border-focus-ring-border-width $border-focus-ring-border-style $color-blue-500;
40
+ border-radius: 10px;
41
+ inset: calc(-1 * #{$focus-ring-offset});
42
+ z-index: 1;
43
+ }
42
44
  }
43
45
  }
@@ -1,5 +1,7 @@
1
1
  @import '../mixins';
2
2
 
3
- .content > :global(.ProseMirror) {
4
- @include content-styles;
3
+ @layer kz-components {
4
+ .content > :global(.ProseMirror) {
5
+ @include content-styles;
6
+ }
5
7
  }
@@ -5,102 +5,104 @@
5
5
  @import '~@kaizen/design-tokens/sass/typography';
6
6
  @import '../mixins';
7
7
 
8
- .editor > :global(.ProseMirror) {
9
- border-radius: $border-solid-border-radius;
10
- padding: $spacing-sm calc(#{$spacing-xs} * 3);
11
- position: relative;
12
- transition:
13
- background-color $animation-duration-immediate,
14
- border-color $animation-duration-immediate;
15
-
16
- @include content-styles;
17
-
18
- &:hover,
19
- &:focus-visible {
20
- border-color: $color-gray-600;
21
- background: $color-gray-200;
22
- }
8
+ @layer kz-components {
9
+ .editor > :global(.ProseMirror) {
10
+ border-radius: $border-solid-border-radius;
11
+ padding: $spacing-sm calc(#{$spacing-xs} * 3);
12
+ position: relative;
13
+ transition:
14
+ background-color $animation-duration-immediate,
15
+ border-color $animation-duration-immediate;
16
+
17
+ @include content-styles;
18
+
19
+ &:hover,
20
+ &:focus-visible {
21
+ border-color: $color-gray-600;
22
+ background: $color-gray-200;
23
+ }
23
24
 
24
- &:focus {
25
- outline: none;
26
- }
25
+ &:focus {
26
+ outline: none;
27
+ }
27
28
 
28
- &:focus-visible::after {
29
- $focus-ring-offset: 5px;
30
-
31
- content: '';
32
- pointer-events: none;
33
- position: absolute;
34
- background: transparent;
35
- border-radius: 2px 2px $border-focus-ring-border-radius $border-focus-ring-border-radius;
36
- border-width: $border-focus-ring-border-width;
37
- border-style: $border-focus-ring-border-style;
38
- border-color: $color-blue-500;
39
- inset: calc(-1 * #{$focus-ring-offset});
29
+ &:focus-visible::after {
30
+ $focus-ring-offset: 5px;
31
+
32
+ content: '';
33
+ pointer-events: none;
34
+ position: absolute;
35
+ background: transparent;
36
+ border-radius: 2px 2px $border-focus-ring-border-radius $border-focus-ring-border-radius;
37
+ border-width: $border-focus-ring-border-width;
38
+ border-style: $border-focus-ring-border-style;
39
+ border-color: $color-blue-500;
40
+ inset: calc(-1 * #{$focus-ring-offset});
41
+ }
40
42
  }
41
- }
42
-
43
- .editor.hasToolbar > :global(.ProseMirror) {
44
- border-top-left-radius: 0;
45
- border-top-right-radius: 0;
46
- }
47
43
 
48
- .editorLabel {
49
- margin-bottom: $spacing-6;
50
- display: inline-block;
51
- }
44
+ .editor.hasToolbar > :global(.ProseMirror) {
45
+ border-top-left-radius: 0;
46
+ border-top-right-radius: 0;
47
+ }
52
48
 
53
- /* stylelint-disable no-descending-specificity */
54
- .editorWrapper {
55
- position: relative;
56
- border: $border-solid-border-width $border-solid-border-style $color-gray-500;
57
- background: $color-white;
58
- border-radius: $border-solid-border-radius;
59
- word-wrap: break-word;
49
+ .editorLabel {
50
+ margin-bottom: $spacing-6;
51
+ display: inline-block;
52
+ }
60
53
 
61
- &:hover,
62
- &:focus-within {
63
- border-color: $color-gray-600;
54
+ /* stylelint-disable no-descending-specificity */
55
+ .editorWrapper {
56
+ position: relative;
57
+ border: $border-solid-border-width $border-solid-border-style $color-gray-500;
58
+ background: $color-white;
59
+ border-radius: $border-solid-border-radius;
60
+ word-wrap: break-word;
64
61
 
65
- .toolbar {
62
+ &:hover,
63
+ &:focus-within {
66
64
  border-color: $color-gray-600;
67
- }
68
- }
69
65
 
70
- &.error {
71
- &,
72
- .toolbar {
73
- border-color: $color-red-500;
66
+ .toolbar {
67
+ border-color: $color-gray-600;
68
+ }
74
69
  }
75
70
 
76
- &:hover {
71
+ &.error {
77
72
  &,
78
73
  .toolbar {
79
- border-color: $color-red-600;
74
+ border-color: $color-red-500;
80
75
  }
81
- }
82
- }
83
76
 
84
- &.caution {
85
- &,
86
- .toolbar {
87
- border-color: $color-yellow-600;
77
+ &:hover {
78
+ &,
79
+ .toolbar {
80
+ border-color: $color-red-600;
81
+ }
82
+ }
88
83
  }
89
84
 
90
- &:hover {
85
+ &.caution {
91
86
  &,
92
87
  .toolbar {
93
- border-color: $color-yellow-700;
88
+ border-color: $color-yellow-600;
89
+ }
90
+
91
+ &:hover {
92
+ &,
93
+ .toolbar {
94
+ border-color: $color-yellow-700;
95
+ }
94
96
  }
95
97
  }
98
+ /* stylelint-enable no-descending-specificity */
96
99
  }
97
- /* stylelint-enable no-descending-specificity */
98
- }
99
100
 
100
- @for $i from 1 through 20 {
101
- .editor.rows#{$i} > :global(.ProseMirror) {
102
- min-height: calc(
103
- ((#{$typography-paragraph-body-line-height} + #{$spacing-16}) * #{$i}) - #{$spacing-16}
104
- );
101
+ @for $i from 1 through 20 {
102
+ .editor.rows#{$i} > :global(.ProseMirror) {
103
+ min-height: calc(
104
+ ((#{$typography-paragraph-body-line-height} + #{$spacing-16}) * #{$i}) - #{$spacing-16}
105
+ );
106
+ }
105
107
  }
106
108
  }