@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
@@ -3,101 +3,103 @@
3
3
  @import '~@kaizen/design-tokens/sass/color';
4
4
  @import '~@kaizen/design-tokens/sass/typography';
5
5
 
6
- .tab {
7
- display: inline-flex;
8
- align-items: center;
9
- border: 0;
10
- border-top: 2px solid transparent;
11
- border-left: 2px solid transparent;
12
- border-right: 2px solid transparent;
13
- border-top-left-radius: $border-borderless-border-radius;
14
- border-top-right-radius: $border-borderless-border-radius;
15
- background: $color-white;
16
- white-space: nowrap;
17
- text-decoration: none;
18
- padding: $spacing-md $spacing-md;
19
- margin: 0;
20
- font-family: $typography-heading-4-font-family;
21
- font-size: $typography-heading-4-font-size;
22
- font-weight: $typography-heading-4-font-weight;
23
- line-height: $typography-heading-4-line-height;
24
- letter-spacing: $typography-heading-4-letter-spacing;
25
- color: $color-purple-800;
6
+ @layer kz-components {
7
+ .tab {
8
+ display: inline-flex;
9
+ align-items: center;
10
+ border: 0;
11
+ border-top: 2px solid transparent;
12
+ border-left: 2px solid transparent;
13
+ border-right: 2px solid transparent;
14
+ border-top-left-radius: $border-borderless-border-radius;
15
+ border-top-right-radius: $border-borderless-border-radius;
16
+ background: $color-white;
17
+ white-space: nowrap;
18
+ text-decoration: none;
19
+ padding: $spacing-md $spacing-md;
20
+ margin: 0;
21
+ font-family: $typography-heading-4-font-family;
22
+ font-size: $typography-heading-4-font-size;
23
+ font-weight: $typography-heading-4-font-weight;
24
+ line-height: $typography-heading-4-line-height;
25
+ letter-spacing: $typography-heading-4-letter-spacing;
26
+ color: $color-purple-800;
26
27
 
27
- &:focus {
28
- outline: none;
29
- }
28
+ &:focus {
29
+ outline: none;
30
+ }
30
31
 
31
- &:focus-visible {
32
- background: $color-blue-100;
33
- color: $color-blue-500;
34
- border-color: $color-blue-500;
35
- }
32
+ &:focus-visible {
33
+ background: $color-blue-100;
34
+ color: $color-blue-500;
35
+ border-color: $color-blue-500;
36
+ }
36
37
 
37
- &:disabled {
38
- opacity: 30%;
39
- }
38
+ &:disabled {
39
+ opacity: 30%;
40
+ }
41
+
42
+ &:not(:first-child) {
43
+ margin-inline-start: $spacing-xs;
44
+ }
40
45
 
41
- &:not(:first-child) {
42
- margin-inline-start: $spacing-xs;
46
+ &:not(:disabled):hover {
47
+ background: $color-blue-100;
48
+ color: $color-blue-500;
49
+ }
43
50
  }
44
51
 
45
- &:not(:disabled):hover {
46
- background: $color-blue-100;
52
+ .tab[data-selected] {
53
+ position: relative;
47
54
  color: $color-blue-500;
48
- }
49
- }
50
55
 
51
- .tab[data-selected] {
52
- position: relative;
53
- color: $color-blue-500;
56
+ &::before {
57
+ content: '';
58
+ display: block;
59
+ border-top-left-radius: 5px;
60
+ border-top-right-radius: 5px;
61
+ background-color: currentcolor;
62
+ height: 5px;
63
+ width: 100%;
64
+ position: absolute;
65
+ left: 0;
66
+ right: 0;
67
+ bottom: 0;
68
+ }
69
+ }
54
70
 
55
- &::before {
56
- content: '';
57
- display: block;
58
- border-top-left-radius: 5px;
59
- border-top-right-radius: 5px;
60
- background-color: currentcolor;
61
- height: 5px;
62
- width: 100%;
63
- position: absolute;
64
- left: 0;
65
- right: 0;
66
- bottom: 0;
71
+ .badge {
72
+ margin-inline-start: $spacing-sm;
73
+ display: inline-flex;
74
+ align-items: center;
67
75
  }
68
- }
69
76
 
70
- .badge {
71
- margin-inline-start: $spacing-sm;
72
- display: inline-flex;
73
- align-items: center;
74
- }
77
+ @media (forced-colors: active) {
78
+ .tab {
79
+ border: 2px solid transparent;
75
80
 
76
- @media (forced-colors: active) {
77
- .tab {
78
- border: 2px solid transparent;
81
+ &:focus-visible::after {
82
+ $focus-ring-offset: calc((#{$border-focus-ring-border-width} * 2) + 1px);
79
83
 
80
- &:focus-visible::after {
81
- $focus-ring-offset: calc((#{$border-focus-ring-border-width} * 2) + 1px);
84
+ content: '';
85
+ position: absolute;
86
+ background: transparent;
87
+ border-radius: $border-focus-ring-border-radius;
88
+ border-width: $border-focus-ring-border-width;
89
+ border-style: $border-focus-ring-border-style;
90
+ border-color: transparent;
91
+ inset: calc(-1 * #{$focus-ring-offset});
92
+ }
93
+ }
82
94
 
95
+ .tab.selected::before {
96
+ // High contrast also doesn't see the pseudo element created to show the active tab.
83
97
  content: '';
84
98
  position: absolute;
85
- background: transparent;
86
- border-radius: $border-focus-ring-border-radius;
87
- border-width: $border-focus-ring-border-width;
88
- border-style: $border-focus-ring-border-style;
89
- border-color: transparent;
90
- inset: calc(-1 * #{$focus-ring-offset});
99
+ left: 0;
100
+ right: 0;
101
+ bottom: 0;
102
+ border-bottom: 2px solid transparent;
91
103
  }
92
104
  }
93
-
94
- .tab.selected::before {
95
- // High contrast also doesn't see the pseudo element created to show the active tab.
96
- content: '';
97
- position: absolute;
98
- left: 0;
99
- right: 0;
100
- bottom: 0;
101
- border-bottom: 2px solid transparent;
102
- }
103
105
  }
@@ -1,11 +1,13 @@
1
1
  @import '~@kaizen/design-tokens/sass/spacing';
2
2
  @import '~@kaizen/design-tokens/sass/color';
3
3
 
4
- .tabList {
5
- border-bottom: 1px solid rgba($color-gray-600-rgb, 0.1);
6
- padding: $spacing-xs $spacing-md 0;
7
- }
4
+ @layer kz-components {
5
+ .tabList {
6
+ border-bottom: 1px solid rgba($color-gray-600-rgb, 0.1);
7
+ padding: $spacing-xs $spacing-md 0;
8
+ }
8
9
 
9
- .tabList.noPadding {
10
- padding: 0;
10
+ .tabList.noPadding {
11
+ padding: 0;
12
+ }
11
13
  }
@@ -1,15 +1,17 @@
1
1
  @import '~@kaizen/design-tokens/sass/border';
2
2
  @import '~@kaizen/design-tokens/sass/color';
3
3
 
4
- .tabPanel {
5
- border: 2px solid transparent;
4
+ @layer kz-components {
5
+ .tabPanel {
6
+ border: 2px solid transparent;
6
7
 
7
- &:focus {
8
- outline: none;
9
- }
8
+ &:focus {
9
+ outline: none;
10
+ }
10
11
 
11
- &:focus-visible {
12
- border-color: $color-blue-500;
13
- border-radius: $border-focus-ring-border-radius;
12
+ &:focus-visible {
13
+ border-color: $color-blue-500;
14
+ border-radius: $border-focus-ring-border-radius;
15
+ }
14
16
  }
15
17
  }
@@ -4,210 +4,212 @@
4
4
  @import '~@kaizen/design-tokens/sass/spacing';
5
5
  @import '../../styles/utils/button-reset';
6
6
 
7
- $medium: calc(#{$spacing-md} * 1.25);
8
- $small: $spacing-md;
9
-
10
- .root {
11
- margin-inline-end: calc(#{$spacing-md} * 0.5);
12
- font-size: $typography-paragraph-small-font-size;
13
- font-weight: $typography-paragraph-small-font-weight;
14
- letter-spacing: $typography-paragraph-small-letter-spacing;
15
- color: $color-purple-800;
16
- display: inline-block;
17
- border: $border-borderless-border-width $border-borderless-border-style
18
- $border-borderless-border-color;
19
- border-radius: calc(#{$spacing-md} * 0.75);
20
- padding: 0 calc(#{$spacing-md} * 0.4);
21
- box-sizing: border-box;
22
-
23
- &.profile {
24
- padding-left: calc(#{$spacing-md} * 0.2);
7
+ @layer kz-components {
8
+ $medium: calc(#{$spacing-md} * 1.25);
9
+ $small: $spacing-md;
10
+
11
+ .root {
12
+ margin-inline-end: calc(#{$spacing-md} * 0.5);
13
+ font-size: $typography-paragraph-small-font-size;
14
+ font-weight: $typography-paragraph-small-font-weight;
15
+ letter-spacing: $typography-paragraph-small-letter-spacing;
16
+ color: $color-purple-800;
17
+ display: inline-block;
18
+ border: $border-borderless-border-width $border-borderless-border-style
19
+ $border-borderless-border-color;
20
+ border-radius: calc(#{$spacing-md} * 0.75);
21
+ padding: 0 calc(#{$spacing-md} * 0.4);
22
+ box-sizing: border-box;
23
+
24
+ &.profile {
25
+ padding-left: calc(#{$spacing-md} * 0.2);
26
+ }
25
27
  }
26
- }
27
-
28
- .layoutContainer {
29
- height: 100%;
30
- display: flex;
31
- align-items: center;
32
- }
33
-
34
- .validationIcon {
35
- align-items: center;
36
- display: flex;
37
- color: $color-white;
38
- margin-inline: calc(#{$spacing-md} * -0.15) $spacing-xs;
39
- }
40
-
41
- .profile {
42
- margin-inline: calc(#{$spacing-md} * -0.15) $spacing-xs;
43
- display: inline-flex;
44
- align-items: center;
45
- }
46
28
 
47
- .textContent {
48
- margin-top: -1px;
49
- font-family: $typography-paragraph-small-font-family;
50
- font-weight: $typography-paragraph-small-font-weight;
51
- font-size: $typography-paragraph-small-font-size;
52
- line-height: $typography-paragraph-small-line-height;
53
- letter-spacing: $typography-paragraph-small-letter-spacing;
54
- white-space: nowrap;
55
- }
29
+ .layoutContainer {
30
+ height: 100%;
31
+ display: flex;
32
+ align-items: center;
33
+ }
56
34
 
57
- .iconWrapper {
58
- --icon-size: 16;
35
+ .validationIcon {
36
+ align-items: center;
37
+ display: flex;
38
+ color: $color-white;
39
+ margin-inline: calc(#{$spacing-md} * -0.15) $spacing-xs;
40
+ }
59
41
 
60
- position: relative;
61
- height: 16px;
62
- width: 16px;
63
- }
42
+ .profile {
43
+ margin-inline: calc(#{$spacing-md} * -0.15) $spacing-xs;
44
+ display: inline-flex;
45
+ align-items: center;
46
+ }
64
47
 
65
- .dismissButton {
66
- @include button-reset;
48
+ .textContent {
49
+ margin-top: -1px;
50
+ font-family: $typography-paragraph-small-font-family;
51
+ font-weight: $typography-paragraph-small-font-weight;
52
+ font-size: $typography-paragraph-small-font-size;
53
+ line-height: $typography-paragraph-small-line-height;
54
+ letter-spacing: $typography-paragraph-small-letter-spacing;
55
+ white-space: nowrap;
56
+ }
67
57
 
68
- position: relative;
69
- display: flex;
70
- height: 100%;
71
- align-items: center;
72
- padding: 0 $spacing-xs;
73
- margin-inline: -0.225rem -0.6625rem;
74
- color: rgba($color-purple-800-rgb, 0.7);
75
- cursor: pointer;
58
+ .iconWrapper {
59
+ --icon-size: 16;
76
60
 
77
- &:hover {
78
- color: $color-purple-800;
61
+ position: relative;
62
+ height: 16px;
63
+ width: 16px;
79
64
  }
80
65
 
81
- &:active {
82
- color: $color-purple-800;
83
- }
66
+ .dismissButton {
67
+ @include button-reset;
84
68
 
85
- svg {
86
69
  position: relative;
87
- }
70
+ display: flex;
71
+ height: 100%;
72
+ align-items: center;
73
+ padding: 0 $spacing-xs;
74
+ margin-inline: -0.225rem -0.6625rem;
75
+ color: rgba($color-purple-800-rgb, 0.7);
76
+ cursor: pointer;
77
+
78
+ &:hover {
79
+ color: $color-purple-800;
80
+ }
88
81
 
89
- &:focus {
90
- outline: none;
91
- }
82
+ &:active {
83
+ color: $color-purple-800;
84
+ }
92
85
 
93
- &:focus-visible .iconWrapper {
94
- color: $color-purple-800;
86
+ svg {
87
+ position: relative;
88
+ }
89
+
90
+ &:focus {
91
+ outline: none;
92
+ }
95
93
 
96
- &::after {
97
- $focus-ring-offset: calc((#{$border-focus-ring-border-width}));
98
-
99
- content: '';
100
- position: absolute;
101
- background: transparent;
102
- border-radius: 50%;
103
- border-width: $border-focus-ring-border-width;
104
- border-style: $border-focus-ring-border-style;
105
- border-color: $color-blue-500;
106
- inset: calc(-1 * #{$focus-ring-offset});
94
+ &:focus-visible .iconWrapper {
95
+ color: $color-purple-800;
96
+
97
+ &::after {
98
+ $focus-ring-offset: calc((#{$border-focus-ring-border-width}));
99
+
100
+ content: '';
101
+ position: absolute;
102
+ background: transparent;
103
+ border-radius: 50%;
104
+ border-width: $border-focus-ring-border-width;
105
+ border-style: $border-focus-ring-border-style;
106
+ border-color: $color-blue-500;
107
+ inset: calc(-1 * #{$focus-ring-offset});
108
+ }
107
109
  }
108
110
  }
109
- }
110
111
 
111
- .background {
112
- // As our icons are only one-tone, this span places
113
- // a white background under the dismissible icon to
114
- // give the illusion of a background colour that is
115
- // different to the rest of the tag
116
- position: absolute;
117
- display: inline-block;
118
- width: calc(#{$spacing-xs} + 0.125rem); // optical adjustment
119
- height: calc(#{$spacing-xs} + 0.125rem); // optical adjustment
120
- background-color: white;
121
- left: 10px;
122
- top: 10px;
123
- }
112
+ .background {
113
+ // As our icons are only one-tone, this span places
114
+ // a white background under the dismissible icon to
115
+ // give the illusion of a background colour that is
116
+ // different to the rest of the tag
117
+ position: absolute;
118
+ display: inline-block;
119
+ width: calc(#{$spacing-xs} + 0.125rem); // optical adjustment
120
+ height: calc(#{$spacing-xs} + 0.125rem); // optical adjustment
121
+ background-color: white;
122
+ left: 10px;
123
+ top: 10px;
124
+ }
124
125
 
125
- .truncate {
126
- text-overflow: ellipsis;
127
- overflow-x: hidden;
128
- white-space: nowrap;
129
- }
126
+ .truncate {
127
+ text-overflow: ellipsis;
128
+ overflow-x: hidden;
129
+ white-space: nowrap;
130
+ }
130
131
 
131
- .inline {
132
- margin: 0;
133
- }
132
+ .inline {
133
+ margin: 0;
134
+ }
134
135
 
135
- .medium {
136
- height: $medium;
137
- }
136
+ .medium {
137
+ height: $medium;
138
+ }
138
139
 
139
- .small {
140
- height: $small;
141
- }
140
+ .small {
141
+ height: $small;
142
+ }
142
143
 
143
- .default {
144
- background-color: $color-gray-300;
145
- }
144
+ .default {
145
+ background-color: $color-gray-300;
146
+ }
146
147
 
147
- .sentimentPositive {
148
- background-color: $color-green-100;
149
- }
148
+ .sentimentPositive {
149
+ background-color: $color-green-100;
150
+ }
150
151
 
151
- .sentimentNeutral {
152
- background-color: $color-gray-300;
153
- }
152
+ .sentimentNeutral {
153
+ background-color: $color-gray-300;
154
+ }
154
155
 
155
- .sentimentNegative {
156
- background-color: $color-red-100;
157
- }
156
+ .sentimentNegative {
157
+ background-color: $color-red-100;
158
+ }
158
159
 
159
- .sentimentNone {
160
- background-color: $color-white;
161
- border-color: $color-gray-300;
162
- }
160
+ .sentimentNone {
161
+ background-color: $color-white;
162
+ border-color: $color-gray-300;
163
+ }
163
164
 
164
- .validationPositive {
165
- background-color: $color-green-100;
165
+ .validationPositive {
166
+ background-color: $color-green-100;
166
167
 
167
- .validationIcon {
168
- color: $color-green-500;
168
+ .validationIcon {
169
+ color: $color-green-500;
170
+ }
169
171
  }
170
- }
171
172
 
172
- .validationInformative {
173
- background-color: $color-blue-100;
173
+ .validationInformative {
174
+ background-color: $color-blue-100;
174
175
 
175
- .validationIcon {
176
- color: $color-blue-500;
176
+ .validationIcon {
177
+ color: $color-blue-500;
178
+ }
177
179
  }
178
- }
179
180
 
180
- .validationNegative {
181
- background-color: $color-red-100;
181
+ .validationNegative {
182
+ background-color: $color-red-100;
182
183
 
183
- .validationIcon {
184
- color: $color-red-500;
184
+ .validationIcon {
185
+ color: $color-red-500;
186
+ }
185
187
  }
186
- }
187
188
 
188
- .validationCautionary {
189
- background-color: $color-yellow-100;
189
+ .validationCautionary {
190
+ background-color: $color-yellow-100;
190
191
 
191
- .validationIcon {
192
- color: var(--color-yellow-700);
192
+ .validationIcon {
193
+ color: var(--color-yellow-700);
194
+ }
193
195
  }
194
- }
195
196
 
196
- .statusLive {
197
- background-color: $color-green-100;
198
- color: $color-purple-800;
199
- }
197
+ .statusLive {
198
+ background-color: $color-green-100;
199
+ color: $color-purple-800;
200
+ }
200
201
 
201
- .statusAction {
202
- background-color: $color-orange-100;
203
- color: $color-purple-800;
204
- }
202
+ .statusAction {
203
+ background-color: $color-orange-100;
204
+ color: $color-purple-800;
205
+ }
205
206
 
206
- .statusClosed {
207
- background-color: $color-red-100;
208
- }
207
+ .statusClosed {
208
+ background-color: $color-red-100;
209
+ }
209
210
 
210
- .statusDraft {
211
- background-color: $color-blue-100;
212
- color: $color-purple-800;
211
+ .statusDraft {
212
+ background-color: $color-blue-100;
213
+ color: $color-purple-800;
214
+ }
213
215
  }