@kaizen/components 0.0.0-canary-kz-components-css-layer-pre-release-20250527021003 → 0.0.0-canary-fix-fms-popover-20250603003244

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