@kaizen/components 1.78.1 → 1.79.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. package/dist/styles.css +10589 -10782
  2. package/package.json +1 -1
  3. package/src/Avatar/Avatar.module.css +137 -135
  4. package/src/AvatarGroup/AvatarGroup.module.css +58 -56
  5. package/src/Badge/Badge.module.css +98 -96
  6. package/src/Brand/Brand.module.css +5 -3
  7. package/src/BrandMoment/BrandMoment.module.css +147 -145
  8. package/src/BrandMoment/_docs/ExampleHeaders.module.scss +68 -66
  9. package/src/Button/Button/Button.module.scss +135 -133
  10. package/src/Button/GenericButton/GenericButton.module.scss +81 -79
  11. package/src/Button/IconButton/IconButton.module.scss +20 -18
  12. package/src/ButtonGroup/ButtonGroup.module.css +38 -36
  13. package/src/ButtonGroup/ButtonGroup.module.scss +41 -39
  14. package/src/Calendar/CalendarPopover/CalendarPopover.module.scss +19 -17
  15. package/src/Calendar/CalendarRange/CalendarRange.module.scss +48 -46
  16. package/src/Calendar/CalendarSingle/CalendarSingle.module.scss +12 -10
  17. package/src/Calendar/LegacyCalendarRange/LegacyCalendarRange.module.scss +20 -18
  18. package/src/Calendar/baseCalendarClassNames.module.scss +148 -146
  19. package/src/Card/Card.module.css +91 -89
  20. package/src/Checkbox/Checkbox/Checkbox.module.scss +89 -87
  21. package/src/Checkbox/CheckboxField/CheckboxField.module.scss +32 -30
  22. package/src/Checkbox/CheckboxGroup/CheckboxGroup.module.scss +11 -9
  23. package/src/ClearButton/ClearButton.module.scss +32 -30
  24. package/src/Collapsible/Collapsible/Collapsible.module.scss +87 -85
  25. package/src/Collapsible/CollapsibleGroup/CollapsibleGroup.module.scss +9 -7
  26. package/src/Collapsible/ExpertAdviceCollapsible/ExpertAdviceCollapsible.module.scss +35 -33
  27. package/src/Container/Container.module.scss +11 -9
  28. package/src/Content/Content.module.scss +10 -8
  29. package/src/DateInput/DateInput/DateInput.module.scss +7 -5
  30. package/src/DateInput/DateInputDescription/DateInputDescription.module.scss +15 -13
  31. package/src/DateInput/DateInputWithIconButton/DateInputWithIconButton.module.scss +32 -30
  32. package/src/DatePicker/DatePicker.module.scss +7 -5
  33. package/src/DatePicker/subcomponents/DateInputField/DateInputField.module.scss +5 -3
  34. package/src/DateRangePicker/DateRangePicker.module.scss +75 -73
  35. package/src/Divider/Divider.module.scss +35 -33
  36. package/src/EmptyState/EmptyState.module.css +95 -93
  37. package/src/ErrorPage/ErrorPage.module.scss +4 -2
  38. package/src/FieldGroup/FieldGroup.module.scss +8 -6
  39. package/src/FieldMessage/FieldMessage.module.scss +53 -51
  40. package/src/Filter/Filter/Filter.module.css +5 -3
  41. package/src/Filter/Filter/subcomponents/FilterContents/FilterContents.module.css +4 -2
  42. package/src/Filter/Filter/subcomponents/FilterPopover/FilterPopover.module.css +8 -6
  43. package/src/Filter/FilterBar/FilterBar.module.css +17 -15
  44. package/src/Filter/FilterBar/subcomponents/ClearAllButton/ClearAllButton.module.css +7 -5
  45. package/src/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.module.css +4 -2
  46. package/src/Filter/FilterBar/subcomponents/FilterBarMultiSelect/FilterBarMultiSelect.module.css +5 -3
  47. package/src/Filter/FilterButton/FilterButton/FilterButton.module.css +19 -17
  48. package/src/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.module.css +4 -2
  49. package/src/Filter/FilterButton/subcomponents/FilterButtonBase/FilterButtonBase.module.scss +42 -40
  50. package/src/Filter/FilterDatePicker/subcomponents/DateInputField/DateInputField.module.scss +4 -2
  51. package/src/Filter/FilterDatePicker/subcomponents/FilterDatePickerField/FilterDatePickerField.module.scss +6 -4
  52. package/src/Filter/FilterDateRangePicker/FilterDateRangePicker.module.css +7 -5
  53. package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeDisplayLabel/DateRangeDisplayLabel.module.scss +5 -3
  54. package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeInputField/DateRangeInputField.module.scss +36 -34
  55. package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeValidationMessage/DateRangeValidationMessage.module.scss +5 -3
  56. package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/FilterDateRangePickerField.module.scss +7 -5
  57. package/src/Filter/FilterMultiSelect/subcomponents/ListBox/ListBox.module.scss +19 -17
  58. package/src/Filter/FilterMultiSelect/subcomponents/ListBoxSection/ListBoxSection.module.scss +14 -12
  59. package/src/Filter/FilterMultiSelect/subcomponents/LoadMoreButton/LoadMoreButton.module.scss +4 -2
  60. package/src/Filter/FilterMultiSelect/subcomponents/MenuLayout/MenuFooter/MenuFooter.module.scss +7 -5
  61. package/src/Filter/FilterMultiSelect/subcomponents/MenuLayout/MenuLoadingSkeleton/MenuLoadingSkeleton.module.scss +8 -6
  62. package/src/Filter/FilterMultiSelect/subcomponents/MenuPopup/MenuPopup.module.scss +17 -15
  63. package/src/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.module.scss +90 -88
  64. package/src/Filter/FilterMultiSelect/subcomponents/NoResults/NoResults.module.scss +4 -2
  65. package/src/Filter/FilterMultiSelect/subcomponents/SearchInput/SearchInput.module.scss +5 -3
  66. package/src/Filter/FilterMultiSelect/subcomponents/SectionDivider/SectionDivider.module.scss +4 -2
  67. package/src/Filter/FilterMultiSelect/subcomponents/SelectionControlButton/SelectionControlButton.module.scss +52 -50
  68. package/src/Filter/FilterMultiSelect/subcomponents/Trigger/RemovableFilterTrigger/RemovableFilterTrigger.module.css +4 -2
  69. package/src/Filter/FilterSelect/FilterSelect.module.css +9 -7
  70. package/src/Focusable/Focusable.module.scss +4 -2
  71. package/src/GuidanceBlock/GuidanceBlock.module.css +212 -210
  72. package/src/Heading/Heading.module.scss +87 -85
  73. package/src/Icon/_docs/icon.module.scss +35 -33
  74. package/src/Icon/subcomponents/SVG/SVG.module.scss +26 -24
  75. package/src/Illustration/subcomponents/Base/Base.module.scss +100 -98
  76. package/src/Input/Input/Input.module.scss +217 -215
  77. package/src/Input/InputRange/InputRange.module.scss +138 -136
  78. package/src/Input/InputSearch/InputSearch.module.scss +155 -152
  79. package/src/Label/Label.module.scss +82 -80
  80. package/src/LabelledMessage/LabelledMessage.module.scss +8 -6
  81. package/src/LikertScaleLegacy/LikertScaleLegacy.module.scss +266 -264
  82. package/src/Link/Link.module.css +115 -113
  83. package/src/LinkButton/LinkButton.module.css +5 -3
  84. package/src/Loading/LoadingGraphic/LoadingGraphic.module.scss +12 -10
  85. package/src/Loading/LoadingHeading/LoadingHeading.module.scss +44 -42
  86. package/src/Loading/LoadingInput/LoadingInput.module.scss +11 -9
  87. package/src/Loading/LoadingParagraph/LoadingParagraph.module.scss +47 -45
  88. package/src/Loading/LoadingSpinner/LoadingSpinner.module.css +22 -20
  89. package/src/Loading/_mixins.scss +11 -9
  90. package/src/Menu/subcomponents/MenuDropdown/MenuDropdown.module.scss +18 -16
  91. package/src/Menu/subcomponents/MenuHeading/MenuHeading.module.scss +8 -6
  92. package/src/Menu/subcomponents/MenuItem/MenuItem.module.scss +74 -72
  93. package/src/Menu/subcomponents/MenuList/MenuList.module.scss +14 -12
  94. package/src/Menu/subcomponents/StatelessMenu/StatelessMenu.module.scss +4 -2
  95. package/src/Modal/ConfirmationModal/ConfirmationModal.module.scss +126 -124
  96. package/src/Modal/ContextModal/ContextModal.module.scss +72 -70
  97. package/src/Modal/GenericModal/GenericModal.module.scss +92 -90
  98. package/src/Modal/GenericModal/subcomponents/ModalAccessibleDescription/ModalAccessibleDescription.module.scss +4 -2
  99. package/src/Modal/GenericModal/subcomponents/ModalAccessibleLabel/ModalAccessibleLabel.module.scss +25 -23
  100. package/src/Modal/GenericModal/subcomponents/ModalBody/ModalBody.module.scss +5 -3
  101. package/src/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.module.scss +55 -53
  102. package/src/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.module.scss +17 -15
  103. package/src/Modal/InputEditModal/InputEditModal.module.scss +32 -30
  104. package/src/MultiSelect/MultiSelect.module.scss +7 -5
  105. package/src/MultiSelect/subcomponents/Checkbox/Checkbox.module.scss +59 -57
  106. package/src/MultiSelect/subcomponents/MultiSelectOptionField/MultiSelectOptionField.module.scss +55 -53
  107. package/src/MultiSelect/subcomponents/MultiSelectOptions/MultiSelectOptions.module.scss +8 -6
  108. package/src/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.module.scss +66 -64
  109. package/src/MultiSelect/subcomponents/Popover/Popover.module.scss +15 -13
  110. package/src/Notification/ToastNotification/ToastNotificationsList/ToastNotificationsList.module.scss +21 -19
  111. package/src/Notification/subcomponents/GenericNotification/GenericNotification.module.scss +112 -110
  112. package/src/Notification/subcomponents/GenericNotification/_mixins.scss +278 -276
  113. package/src/Notification/subcomponents/NotificationIcon/NotificationIcon.module.css +4 -2
  114. package/src/Pagination/Pagination.module.scss +39 -37
  115. package/src/Pagination/subcomponents/DirectionalLink/DirectionalLink.module.scss +11 -9
  116. package/src/Pagination/subcomponents/PaginationLink/PaginationLink.module.scss +53 -51
  117. package/src/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.module.css +10 -8
  118. package/src/Popover/Popover.module.scss +187 -185
  119. package/src/ProgressBar/ProgressBar.module.scss +75 -73
  120. package/src/ProgressBar/subcomponents/Label/Label.module.scss +6 -4
  121. package/src/Radio/Radio/Radio.module.scss +60 -58
  122. package/src/Radio/RadioField/RadioField.module.scss +33 -31
  123. package/src/Radio/RadioGroup/RadioGroup.module.scss +18 -16
  124. package/src/RichTextEditor/EditableRichTextContent/EditableRichTextContent.module.scss +32 -30
  125. package/src/RichTextEditor/RichTextContent/RichTextContent.module.scss +4 -2
  126. package/src/RichTextEditor/RichTextEditor/RichTextEditor.module.scss +76 -74
  127. package/src/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/ToggleIconButton.module.scss +92 -90
  128. package/src/RichTextEditor/RichTextEditor/subcomponents/Toolbar/Toolbar.module.scss +5 -3
  129. package/src/RichTextEditor/RichTextEditor/subcomponents/ToolbarSection/ToolbarSection.module.scss +12 -10
  130. package/src/RichTextEditor/_mixins.scss +1 -1
  131. package/src/RichTextEditor/utils/plugins/LinkManager/components/LinkModal/LinkModal.module.scss +5 -3
  132. package/src/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/LinkPopover.module.scss +22 -20
  133. package/src/SearchField/SearchField.module.scss +5 -3
  134. package/src/Select/Select.module.scss +17 -0
  135. package/src/Skirt/Skirt.module.scss +24 -22
  136. package/src/Skirt/subcomponents/SkirtCard/SkirtCard.module.scss +13 -11
  137. package/src/Slider/Slider.module.scss +34 -32
  138. package/src/SplitButton/SplitButton.module.scss +5 -3
  139. package/src/SplitButton/subcomponents/ActionButton/ActionButton.module.scss +7 -5
  140. package/src/SplitButton/subcomponents/BaseButton/BaseButton.module.scss +65 -63
  141. package/src/SplitButton/subcomponents/DropdownButton/DropdownButton.module.scss +19 -17
  142. package/src/Table/Table.module.scss +251 -249
  143. package/src/Tabs/subcomponents/Tab.module.scss +81 -79
  144. package/src/Tabs/subcomponents/TabList.module.scss +8 -6
  145. package/src/Tabs/subcomponents/TabPanel.module.scss +10 -8
  146. package/src/Tag/Tag.module.scss +166 -164
  147. package/src/Tag/subcomponents/LiveIcon/LiveIcon.module.css +42 -40
  148. package/src/Text/Text.module.scss +57 -55
  149. package/src/TextArea/TextArea.module.css +102 -99
  150. package/src/TextAreaField/TextAreaField.module.scss +14 -12
  151. package/src/TextField/TextField.module.scss +16 -14
  152. package/src/Tile/MultiActionTile/MultiActionTile.module.scss +7 -5
  153. package/src/Tile/TileGrid/TileGrid.module.scss +18 -16
  154. package/src/Tile/subcomponents/GenericTile/GenericTile.module.scss +123 -121
  155. package/src/TimeField/TimeField.module.scss +57 -55
  156. package/src/TimeField/subcomponents/TimeSegment/TimeSegment.module.scss +37 -35
  157. package/src/TitleBlockZen/TitleBlockZen.module.scss +507 -505
  158. package/src/TitleBlockZen/subcomponents/MainActions.module.scss +11 -9
  159. package/src/TitleBlockZen/subcomponents/MobileActions.module.scss +146 -144
  160. package/src/TitleBlockZen/subcomponents/NavigationTabs.module.scss +105 -103
  161. package/src/TitleBlockZen/subcomponents/TitleBlockMenuItem.module.scss +74 -72
  162. package/src/TitleBlockZen/subcomponents/Toolbar.module.scss +28 -26
  163. package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.scss +105 -103
  164. package/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.module.scss +11 -9
  165. package/src/Tooltip/Tooltip.module.scss +139 -137
  166. package/src/VisuallyHidden/VisuallyHidden.module.scss +10 -8
  167. package/src/Well/Well.module.css +104 -102
  168. package/src/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.module.css +14 -12
  169. package/src/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.module.css +101 -99
  170. package/src/Workflow/subcomponents/Footer/components/Root/FooterRoot.module.css +19 -17
  171. package/src/Workflow/subcomponents/Header/components/Actions/Actions.module.css +14 -12
  172. package/src/Workflow/subcomponents/Header/components/Branding/Branding.module.css +12 -10
  173. package/src/Workflow/subcomponents/Header/components/Root/Root.module.css +19 -17
  174. package/src/Workflow/subcomponents/Header/components/Titles/Titles.module.css +19 -17
  175. package/src/Workflow/subcomponents/Main/Main.module.css +5 -3
  176. package/src/Workflow/subcomponents/Wrapper/Wrapper.module.css +8 -6
  177. package/src/__next__/Button/Button.module.css +220 -218
  178. package/src/__next__/Button/subcomponents/ButtonContent/ButtonContent.module.css +17 -15
  179. package/src/__next__/Button/subcomponents/PendingContent/PendingContent.module.css +15 -13
  180. package/src/__next__/Icon/Icon.module.css +40 -38
  181. package/src/__next__/Icon/_docs/Icon.docs.module.css +13 -11
  182. package/src/__next__/Menu/Menu.module.css +30 -28
  183. package/src/__next__/Menu/MenuItem.module.css +41 -39
  184. package/src/__next__/Select/Select.module.scss +8 -6
  185. package/src/__next__/Select/subcomponents/ListBox/ListBox.module.scss +12 -10
  186. package/src/__next__/Select/subcomponents/ListBoxSection/ListBoxSection.module.scss +15 -13
  187. package/src/__next__/Select/subcomponents/Option/Option.module.scss +53 -51
  188. package/src/__next__/Select/subcomponents/SectionDivider/SectionDivider.module.scss +8 -6
  189. package/src/__next__/Select/subcomponents/SelectPopoverContents/SelectPopoverContents.module.scss +4 -2
  190. package/src/__next__/Select/subcomponents/SelectToggle/SelectToggle.module.scss +105 -103
  191. package/src/__next__/Tabs/subcomponents/Tab/Tab.module.css +81 -79
  192. package/src/__next__/Tabs/subcomponents/TabList/TabList.module.css +56 -54
  193. package/src/__next__/Tabs/subcomponents/TabPanel/TabPanel.module.css +10 -8
  194. package/src/__next__/Tag/RemovableTag/RemovableTag.module.scss +6 -4
  195. package/src/__next__/Tag/RemovableTag/subcomponents/RemoveButton.module.scss +26 -24
  196. package/src/__next__/Tag/Tag/Tag.module.scss +56 -54
  197. package/src/__next__/Tooltip/OverlayArrow.module.scss +40 -38
  198. package/src/__next__/Tooltip/Tooltip.module.scss +39 -37
  199. package/src/__next__/Tooltip/_docs/ApiSpecification.mdx +2 -2
  200. package/src/__next__/Tooltip/_docs/Tooltip.docs.stories.tsx +15 -30
  201. package/src/__next__/Tooltip/_docs/Tooltip.mdx +1 -1
  202. package/src/__next__/Tooltip/_docs/Tooltip.spec.stories.tsx +21 -58
  203. package/src/__next__/Tooltip/_docs/Tooltip.stories.tsx +2 -2
  204. package/src/utils/AppearanceAnim.module.scss +14 -12
@@ -4,306 +4,308 @@
4
4
  @import '~@kaizen/design-tokens/sass/spacing';
5
5
  @import '~@kaizen/design-tokens/sass/color';
6
6
 
7
- // Taken from design-tokens/sass/shadow
8
- // we need control of the x and y offset in this component
9
- $box-shadow-color-sm: rgb(53, 55, 74, 0.09);
10
- $row-height: 60px;
11
- $row-height-data-variant: 48px;
12
-
13
- @mixin anchor-reset {
14
- text-decoration: none;
15
- color: $color-purple-800;
16
- display: block;
17
- }
18
-
19
- @mixin anchor-reset-pseudo-states {
20
- &:hover,
21
- &:active,
22
- &:focus {
7
+ @layer kz-components {
8
+ // Taken from design-tokens/sass/shadow
9
+ // we need control of the x and y offset in this component
10
+ $box-shadow-color-sm: rgb(53, 55, 74, 0.09);
11
+ $row-height: 60px;
12
+ $row-height-data-variant: 48px;
13
+
14
+ @mixin anchor-reset {
23
15
  text-decoration: none;
16
+ color: $color-purple-800;
17
+ display: block;
24
18
  }
25
- }
26
-
27
- // Special Table-only button reset
28
- @mixin button-reset {
29
- appearance: none;
30
- background: transparent;
31
- border: none;
32
- font: inherit;
33
- margin: 0;
34
- padding: 0;
35
- transition: none; // override Murmur global styles :(
36
- outline: none;
37
- }
38
19
 
39
- .container {
40
- width: 100%;
41
- margin-bottom: $spacing-sm;
42
- }
43
-
44
- .headerRowCell {
45
- display: flex;
46
- align-items: stretch;
47
- text-align: start;
48
- justify-content: flex-start;
49
- // The 8px usually makes the height of the header cell 40px
50
- padding: 8px $spacing-md;
51
- // This is required as so the tooltip will display directly above the header cell
52
- position: relative;
53
- }
54
-
55
- .headerRowCellNoWrap {
56
- .headerRowCellLabel {
57
- text-overflow: ellipsis;
58
- overflow: hidden;
59
- white-space: nowrap;
20
+ @mixin anchor-reset-pseudo-states {
21
+ &:hover,
22
+ &:active,
23
+ &:focus {
24
+ text-decoration: none;
25
+ }
60
26
  }
61
- }
62
-
63
- .headerRowCellAlignCenter {
64
- justify-content: center;
65
- text-align: center;
66
- }
67
-
68
- .headerRowCellAlignEnd {
69
- justify-content: flex-end;
70
- text-align: end;
71
- }
72
27
 
73
- .headerRowCellCheckbox {
74
- margin-inline-end: 10px;
75
- }
76
-
77
- // The .headerRowCell wrapper is required to increase the specificity, as so
78
- // we can override the `Tooltip` component's styling.
79
- .headerRowCell .headerRowCellTooltip {
80
- display: flex;
81
- align-items: stretch;
82
- max-width: 100%;
83
- }
84
-
85
- .headerRowCell.headerRowCellNoWrap .headerRowCellContent {
86
- max-width: 100%;
87
- }
88
-
89
- .headerRowCellButton {
90
- @include button-reset;
91
- @include anchor-reset;
92
-
93
- display: flex;
94
- align-items: stretch;
95
- width: 100%;
96
- // Ensures that the 100% doesn't go outside of the `headerRowCell` width
97
- box-sizing: border-box;
28
+ // Special Table-only button reset
29
+ @mixin button-reset {
30
+ appearance: none;
31
+ background: transparent;
32
+ border: none;
33
+ font: inherit;
34
+ margin: 0;
35
+ padding: 0;
36
+ transition: none; // override Murmur global styles :(
37
+ outline: none;
38
+ }
98
39
 
99
- @include anchor-reset-pseudo-states;
40
+ .container {
41
+ width: 100%;
42
+ margin-bottom: $spacing-sm;
43
+ }
100
44
 
101
- &:focus-visible {
102
- outline: none;
45
+ .headerRowCell {
46
+ display: flex;
47
+ align-items: stretch;
48
+ text-align: start;
49
+ justify-content: flex-start;
50
+ // The 8px usually makes the height of the header cell 40px
51
+ padding: 8px $spacing-md;
52
+ // This is required as so the tooltip will display directly above the header cell
103
53
  position: relative;
54
+ }
104
55
 
105
- &::after {
106
- // This offset provide enough gap on reverse for contrast ratios
107
- $focus-ring-offset: calc((#{$border-focus-ring-border-width} * 2) + 1px);
108
-
109
- top: 50%;
110
- left: 50%;
111
- transform: translate(-50%, -50%);
112
- width: calc(100% + #{$focus-ring-offset});
113
- height: calc(100% + #{$focus-ring-offset});
114
- content: '';
115
- position: absolute;
116
- background: transparent;
117
- border-color: $color-blue-500;
118
- border-width: $border-focus-ring-border-width;
119
- border-style: $border-focus-ring-border-style;
120
- border-radius: $border-focus-ring-border-radius;
56
+ .headerRowCellNoWrap {
57
+ .headerRowCellLabel {
58
+ text-overflow: ellipsis;
59
+ overflow: hidden;
60
+ white-space: nowrap;
121
61
  }
122
62
  }
123
- }
124
63
 
125
- .headerRowCellButtonReversed {
126
- color: $color-white;
127
-
128
- &:focus-visible::after {
129
- border-color: $color-blue-100;
64
+ .headerRowCellAlignCenter {
65
+ justify-content: center;
66
+ text-align: center;
130
67
  }
131
- }
132
68
 
133
- .headerRowCellNoButton {
134
- display: flex;
135
- align-items: stretch;
136
- width: 100%;
137
- // Ensures that the 100% doesn't go outside of the `headerRowCell` width
138
- box-sizing: border-box;
139
- }
69
+ .headerRowCellAlignEnd {
70
+ justify-content: flex-end;
71
+ text-align: end;
72
+ }
140
73
 
141
- .headerRowCellLabelAndIcons {
142
- display: flex;
143
- align-items: center;
144
- flex: 1 1 100%;
145
- width: 100%;
146
- }
74
+ .headerRowCellCheckbox {
75
+ margin-inline-end: 10px;
76
+ }
147
77
 
148
- .headerRowCellTooltipIcon {
149
- color: $color-blue-500;
150
- margin-inline-end: $spacing-xs;
151
- }
78
+ // The .headerRowCell wrapper is required to increase the specificity, as so
79
+ // we can override the `Tooltip` component's styling.
80
+ .headerRowCell .headerRowCellTooltip {
81
+ display: flex;
82
+ align-items: stretch;
83
+ max-width: 100%;
84
+ }
152
85
 
153
- .headerRowCellIcon {
154
- color: rgba($color-purple-800-rgb, 0.7);
155
- height: 20px;
86
+ .headerRowCell.headerRowCellNoWrap .headerRowCellContent {
87
+ max-width: 100%;
88
+ }
156
89
 
157
- .headerRowCellActive & {
158
- color: $color-purple-800;
90
+ .headerRowCellButton {
91
+ @include button-reset;
92
+ @include anchor-reset;
93
+
94
+ display: flex;
95
+ align-items: stretch;
96
+ width: 100%;
97
+ // Ensures that the 100% doesn't go outside of the `headerRowCell` width
98
+ box-sizing: border-box;
99
+
100
+ @include anchor-reset-pseudo-states;
101
+
102
+ &:focus-visible {
103
+ outline: none;
104
+ position: relative;
105
+
106
+ &::after {
107
+ // This offset provide enough gap on reverse for contrast ratios
108
+ $focus-ring-offset: calc((#{$border-focus-ring-border-width} * 2) + 1px);
109
+
110
+ top: 50%;
111
+ left: 50%;
112
+ transform: translate(-50%, -50%);
113
+ width: calc(100% + #{$focus-ring-offset});
114
+ height: calc(100% + #{$focus-ring-offset});
115
+ content: '';
116
+ position: absolute;
117
+ background: transparent;
118
+ border-color: $color-blue-500;
119
+ border-width: $border-focus-ring-border-width;
120
+ border-style: $border-focus-ring-border-style;
121
+ border-radius: $border-focus-ring-border-radius;
122
+ }
123
+ }
159
124
  }
160
125
 
161
- .headerRowCellButtonReversed & {
126
+ .headerRowCellButtonReversed {
162
127
  color: $color-white;
128
+
129
+ &:focus-visible::after {
130
+ border-color: $color-blue-100;
131
+ }
163
132
  }
164
- }
165
133
 
166
- .card {
167
- @include button-reset;
168
- // These css properties are required for when the rows are anchor elements
169
- @include anchor-reset;
170
-
171
- // This is an optical hack to stop the card shadow from overlapping over
172
- // the proceeding cards
173
- box-shadow: 0 4px 6px rgb(53, 55, 74, 0.04);
174
- border: solid 1px rgba($color-purple-700-rgb, 0.1);
175
- transition:
176
- box-shadow $animation-duration-rapid,
177
- border-color $animation-duration-rapid,
178
- margin $animation-duration-rapid,
179
- padding $animation-duration-rapid,
180
- width $animation-duration-rapid;
181
- background: $color-white;
182
-
183
- @include anchor-reset-pseudo-states;
184
-
185
- &:not(:first-child) {
186
- margin-top: -1px;
134
+ .headerRowCellNoButton {
135
+ display: flex;
136
+ align-items: stretch;
137
+ width: 100%;
138
+ // Ensures that the 100% doesn't go outside of the `headerRowCell` width
139
+ box-sizing: border-box;
187
140
  }
188
141
 
189
- &:last-child {
190
- border-bottom-left-radius: $border-solid-border-radius;
191
- border-bottom-right-radius: $border-solid-border-radius;
142
+ .headerRowCellLabelAndIcons {
143
+ display: flex;
144
+ align-items: center;
145
+ flex: 1 1 100%;
146
+ width: 100%;
192
147
  }
193
148
 
194
- &:hover {
195
- will-change: box-shadow, border-color, margin, padding, width;
149
+ .headerRowCellTooltipIcon {
150
+ color: $color-blue-500;
151
+ margin-inline-end: $spacing-xs;
196
152
  }
197
153
 
198
- &:focus-visible {
199
- outline: none;
200
- position: relative;
154
+ .headerRowCellIcon {
155
+ color: rgb($color-purple-800-rgb, 0.7);
156
+ height: 20px;
201
157
 
202
- &::after {
203
- // This offset provide enough gap on on reverse for contrast ratios
204
- $focus-ring-offset: calc(#{$border-focus-ring-border-width} + 2px);
205
-
206
- top: 50%;
207
- left: 50%;
208
- transform: translate(-50%, -50%);
209
- width: calc(100% + #{$focus-ring-offset});
210
- height: calc(100% + #{$focus-ring-offset});
211
- content: '';
212
- position: absolute;
213
- background: transparent;
214
- border-color: $color-blue-500;
215
- border-width: $border-focus-ring-border-width;
216
- border-style: $border-focus-ring-border-style;
217
- border-radius: inherit;
158
+ .headerRowCellActive & {
159
+ color: $color-purple-800;
218
160
  }
219
- }
220
161
 
221
- &.well {
222
- margin-top: $spacing-sm;
162
+ .headerRowCellButtonReversed & {
163
+ color: $color-white;
164
+ }
223
165
  }
224
- }
225
166
 
226
- // target the first child card when there is a heading present
227
- [role='rowgroup'] + .card {
228
- border-top-left-radius: $border-solid-border-radius;
229
- border-top-right-radius: $border-solid-border-radius;
230
- box-shadow: $shadow-small-box-shadow;
231
- }
167
+ .card {
168
+ @include button-reset;
169
+ // These css properties are required for when the rows are anchor elements
170
+ @include anchor-reset;
171
+
172
+ // This is an optical hack to stop the card shadow from overlapping over
173
+ // the proceeding cards
174
+ box-shadow: 0 4px 6px rgb(53, 55, 74, 0.04);
175
+ border: solid 1px rgb($color-purple-700-rgb, 0.1);
176
+ transition:
177
+ box-shadow $animation-duration-rapid,
178
+ border-color $animation-duration-rapid,
179
+ margin $animation-duration-rapid,
180
+ padding $animation-duration-rapid,
181
+ width $animation-duration-rapid;
182
+ background: $color-white;
183
+
184
+ @include anchor-reset-pseudo-states;
185
+
186
+ &:not(:first-child) {
187
+ margin-top: -1px;
188
+ }
232
189
 
233
- .card:first-child {
234
- border-top-left-radius: $border-solid-border-radius;
235
- border-top-right-radius: $border-solid-border-radius;
236
- box-shadow: $shadow-small-box-shadow;
237
- }
190
+ &:last-child {
191
+ border-bottom-left-radius: $border-solid-border-radius;
192
+ border-bottom-right-radius: $border-solid-border-radius;
193
+ }
238
194
 
239
- .row {
240
- display: flex;
241
- }
195
+ &:hover {
196
+ will-change: box-shadow, border-color, margin, padding, width;
197
+ }
242
198
 
243
- .well {
244
- border-color: $border-borderless-border-color;
245
- box-shadow: none;
246
- border-radius: $border-solid-border-radius;
247
- background-color: $color-gray-300;
248
- margin-bottom: $spacing-sm;
249
- }
199
+ &:focus-visible {
200
+ outline: none;
201
+ position: relative;
202
+
203
+ &::after {
204
+ // This offset provide enough gap on on reverse for contrast ratios
205
+ $focus-ring-offset: calc(#{$border-focus-ring-border-width} + 2px);
206
+
207
+ top: 50%;
208
+ left: 50%;
209
+ transform: translate(-50%, -50%);
210
+ width: calc(100% + #{$focus-ring-offset});
211
+ height: calc(100% + #{$focus-ring-offset});
212
+ content: '';
213
+ position: absolute;
214
+ background: transparent;
215
+ border-color: $color-blue-500;
216
+ border-width: $border-focus-ring-border-width;
217
+ border-style: $border-focus-ring-border-style;
218
+ border-radius: inherit;
219
+ }
220
+ }
250
221
 
251
- .popout {
252
- box-shadow: $shadow-large-box-shadow;
253
- }
222
+ &.well {
223
+ margin-top: $spacing-sm;
224
+ }
225
+ }
254
226
 
255
- .expanded {
256
- position: relative;
257
- z-index: 1;
258
- margin-left: calc(#{$spacing-sm} * -1);
259
- margin-right: calc(#{$spacing-sm} * -1);
260
- padding-left: $spacing-sm;
261
- padding-right: $spacing-sm;
262
- }
227
+ // target the first child card when there is a heading present
228
+ [role='rowgroup'] + .card {
229
+ border-top-left-radius: $border-solid-border-radius;
230
+ border-top-right-radius: $border-solid-border-radius;
231
+ box-shadow: $shadow-small-box-shadow;
232
+ }
263
233
 
264
- .hasHoverState {
265
- width: 100%;
266
- text-align: left;
267
- cursor: pointer;
234
+ .card:first-child {
235
+ border-top-left-radius: $border-solid-border-radius;
236
+ border-top-right-radius: $border-solid-border-radius;
237
+ box-shadow: $shadow-small-box-shadow;
238
+ }
268
239
 
269
- &.expanded {
270
- width: calc(100% + #{$spacing-md});
240
+ .row {
241
+ display: flex;
271
242
  }
272
243
 
273
- &:focus,
274
- &:hover {
275
- background-color: $color-gray-100;
244
+ .well {
245
+ border-color: $border-borderless-border-color;
246
+ box-shadow: none;
247
+ border-radius: $border-solid-border-radius;
248
+ background-color: $color-gray-300;
249
+ margin-bottom: $spacing-sm;
250
+ }
251
+
252
+ .popout {
253
+ box-shadow: $shadow-large-box-shadow;
254
+ }
255
+
256
+ .expanded {
257
+ position: relative;
258
+ z-index: 1;
259
+ margin-left: calc(#{$spacing-sm} * -1);
260
+ margin-right: calc(#{$spacing-sm} * -1);
261
+ padding-left: $spacing-sm;
262
+ padding-right: $spacing-sm;
276
263
  }
277
- }
278
264
 
279
- .rowCell {
280
- // These css properties are required for when the cells are anchor elements
281
- @include anchor-reset;
265
+ .hasHoverState {
266
+ width: 100%;
267
+ text-align: left;
268
+ cursor: pointer;
282
269
 
283
- min-height: $row-height;
284
- padding: 0 $spacing-md;
285
- display: flex;
286
- align-items: center;
270
+ &.expanded {
271
+ width: calc(100% + #{$spacing-md});
272
+ }
287
273
 
288
- .defaultSpacing & {
289
- padding: $spacing-sm $spacing-md;
274
+ &:focus,
275
+ &:hover {
276
+ background-color: $color-gray-100;
277
+ }
290
278
  }
291
279
 
292
- .dataVariant & {
293
- min-height: $row-height-data-variant;
280
+ .rowCell {
281
+ // These css properties are required for when the cells are anchor elements
282
+ @include anchor-reset;
283
+
284
+ min-height: $row-height;
285
+ padding: 0 $spacing-md;
286
+ display: flex;
287
+ align-items: center;
288
+
289
+ .defaultSpacing & {
290
+ padding: $spacing-sm $spacing-md;
291
+ }
292
+
293
+ .dataVariant & {
294
+ min-height: $row-height-data-variant;
295
+ }
294
296
  }
295
- }
296
297
 
297
- .rowCellAlignCenter {
298
- justify-content: center;
299
- text-align: center;
300
- }
298
+ .rowCellAlignCenter {
299
+ justify-content: center;
300
+ text-align: center;
301
+ }
301
302
 
302
- .rowCellAlignEnd {
303
- justify-content: flex-end;
304
- text-align: right;
305
- }
303
+ .rowCellAlignEnd {
304
+ justify-content: flex-end;
305
+ text-align: right;
306
+ }
306
307
 
307
- .whiteText {
308
- color: $color-white;
308
+ .whiteText {
309
+ color: $color-white;
310
+ }
309
311
  }