@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,109 +4,107 @@
4
4
  @import '~@kaizen/design-tokens/sass/spacing';
5
5
  @import '~@kaizen/design-tokens/sass/animation';
6
6
 
7
- @layer kz-components {
8
- $heading-active-color: $color-gray-200;
9
- $divider-color: rgba($color-gray-600-rgb, 0.2);
10
- $container-border-width: var(--border-width-1);
11
-
12
- // We need a full border radius on this container element, then have classes
13
- // beneath to toggle nested borders off and on for different use cases.
14
- .container {
15
- background-color: $color-white;
16
- box-shadow: $shadow-small-box-shadow;
17
- border: $container-border-width var(--border-solid-border-style) var(--color-gray-500);
18
- border-radius: $border-borderless-border-radius;
19
- }
7
+ $heading-active-color: $color-gray-200;
8
+ $divider-color: rgba($color-gray-600-rgb, 0.2);
9
+ $container-border-width: var(--border-width-1);
10
+
11
+ // We need a full border radius on this container element, then have classes
12
+ // beneath to toggle nested borders off and on for different use cases.
13
+ .container {
14
+ background-color: $color-white;
15
+ box-shadow: $shadow-small-box-shadow;
16
+ border: $container-border-width var(--border-solid-border-style) var(--color-gray-500);
17
+ border-radius: $border-borderless-border-radius;
18
+ }
20
19
 
21
- .header {
22
- display: flex;
23
- align-items: center;
24
- text-align: start;
25
- background-color: $color-white;
26
- border: none;
27
- border-radius: var(--border-borderless-border-radius);
28
- transition: background-color $animation-duration-rapid;
29
- padding-block: calc(var(--spacing-12) - #{$container-border-width});
30
- padding-inline: var(--spacing-24) var(--spacing-12);
31
-
32
- &:hover {
33
- background-color: $heading-active-color;
34
- }
35
-
36
- // Round the bottom corners of the header so when the container is open, the
37
- // header background is not rounded on the corners and flush with the content beneath.
38
- &.open {
39
- border-bottom-left-radius: 0;
40
- border-bottom-right-radius: 0;
41
- }
20
+ .header {
21
+ display: flex;
22
+ align-items: center;
23
+ text-align: start;
24
+ background-color: $color-white;
25
+ border: none;
26
+ border-radius: var(--border-borderless-border-radius);
27
+ transition: background-color $animation-duration-rapid;
28
+ padding-block: calc(var(--spacing-12) - #{$container-border-width});
29
+ padding-inline: var(--spacing-24) var(--spacing-12);
30
+
31
+ &:hover {
32
+ background-color: $heading-active-color;
42
33
  }
43
34
 
44
- .separated {
45
- & + .separated {
46
- margin-top: calc(#{$spacing-md} * 0.3);
47
- margin-right: 0;
48
- margin-left: 0;
49
- }
35
+ // Round the bottom corners of the header so when the container is open, the
36
+ // header background is not rounded on the corners and flush with the content beneath.
37
+ &.open {
38
+ border-bottom-left-radius: 0;
39
+ border-bottom-right-radius: 0;
50
40
  }
41
+ }
51
42
 
52
- // When a collapsible group is rendered, we need the first group to have a rounded
53
- // on top and the last group to have a rounded bottom edge. Then when the last group
54
- // is open we remove the rounded edge as the content sits beneath and needs to be straight.
55
- .groupItem {
56
- & + .groupItem {
57
- border-top: 1px $border-solid-border-style $divider-color;
58
- }
59
-
60
- .header {
61
- border-radius: 0;
62
- padding-block: var(--spacing-12);
63
- }
64
-
65
- &:first-of-type > .header {
66
- border-top-left-radius: $border-borderless-border-radius;
67
- border-top-right-radius: $border-borderless-border-radius;
68
- padding-block-start: calc(var(--spacing-12) - #{$container-border-width});
69
- }
70
-
71
- &:last-of-type > .header:not(.open) {
72
- border-bottom-left-radius: $border-borderless-border-radius;
73
- border-bottom-right-radius: $border-borderless-border-radius;
74
- padding-block-end: calc(var(--spacing-12) - #{$container-border-width});
75
- }
43
+ .separated {
44
+ & + .separated {
45
+ margin-top: calc(#{$spacing-md} * 0.3);
46
+ margin-right: 0;
47
+ margin-left: 0;
76
48
  }
49
+ }
77
50
 
78
- .chevronButton:hover {
79
- // hack to get rid of the IconButton hover styling because it clashes with the hover styling on the Collapsible header
80
- background-color: transparent !important; /* stylelint-disable-line declaration-no-important */
51
+ // When a collapsible group is rendered, we need the first group to have a rounded
52
+ // on top and the last group to have a rounded bottom edge. Then when the last group
53
+ // is open we remove the rounded edge as the content sits beneath and needs to be straight.
54
+ .groupItem {
55
+ & + .groupItem {
56
+ border-top: 1px $border-solid-border-style $divider-color;
81
57
  }
82
58
 
83
- .title {
84
- flex: 1 1 auto;
59
+ .header {
60
+ border-radius: 0;
61
+ padding-block: var(--spacing-12);
85
62
  }
86
63
 
87
- .defaultVariant {
88
- background-color: $heading-active-color;
64
+ &:first-of-type > .header {
65
+ border-top-left-radius: $border-borderless-border-radius;
66
+ border-top-right-radius: $border-borderless-border-radius;
67
+ padding-block-start: calc(var(--spacing-12) - #{$container-border-width});
89
68
  }
90
69
 
91
- .clearVariant {
92
- border-bottom: 1px $border-solid-border-style $divider-color;
70
+ &:last-of-type > .header:not(.open) {
71
+ border-bottom-left-radius: $border-borderless-border-radius;
72
+ border-bottom-right-radius: $border-borderless-border-radius;
73
+ padding-block-end: calc(var(--spacing-12) - #{$container-border-width});
93
74
  }
75
+ }
94
76
 
95
- .sticky {
96
- position: -webkit-sticky; /* stylelint-disable-line value-no-vendor-prefix */
97
- position: sticky;
98
- z-index: 10;
99
- }
77
+ .chevronButton:hover {
78
+ // hack to get rid of the IconButton hover styling because it clashes with the hover styling on the Collapsible header
79
+ background-color: transparent !important; /* stylelint-disable-line declaration-no-important */
80
+ }
100
81
 
101
- .section {
102
- padding: var(--spacing-24);
103
- }
82
+ .title {
83
+ flex: 1 1 auto;
84
+ }
104
85
 
105
- .noPadding {
106
- padding: 0;
107
- }
86
+ .defaultVariant {
87
+ background-color: $heading-active-color;
88
+ }
108
89
 
109
- .hide {
110
- display: none;
111
- }
90
+ .clearVariant {
91
+ border-bottom: 1px $border-solid-border-style $divider-color;
92
+ }
93
+
94
+ .sticky {
95
+ position: -webkit-sticky; /* stylelint-disable-line value-no-vendor-prefix */
96
+ position: sticky;
97
+ z-index: 10;
98
+ }
99
+
100
+ .section {
101
+ padding: var(--spacing-24);
102
+ }
103
+
104
+ .noPadding {
105
+ padding: 0;
106
+ }
107
+
108
+ .hide {
109
+ display: none;
112
110
  }
@@ -1,13 +1,11 @@
1
1
  @import '~@kaizen/design-tokens/sass/border';
2
2
  @import '~@kaizen/design-tokens/sass/shadow';
3
3
 
4
- @layer kz-components {
5
- // We need a full border radius on this container element, then have classes
6
- // beneath to toggle nested borders off and on for different use cases.
7
- .container {
8
- background-color: white;
9
- box-shadow: $shadow-small-box-shadow;
10
- border: var(--border-width-1) var(--border-solid-border-style) var(--color-gray-500);
11
- border-radius: $border-borderless-border-radius;
12
- }
4
+ // We need a full border radius on this container element, then have classes
5
+ // beneath to toggle nested borders off and on for different use cases.
6
+ .container {
7
+ background-color: white;
8
+ box-shadow: $shadow-small-box-shadow;
9
+ border: var(--border-width-1) var(--border-solid-border-style) var(--color-gray-500);
10
+ border-radius: $border-borderless-border-radius;
13
11
  }
@@ -2,48 +2,46 @@
2
2
  @import '~@kaizen/design-tokens/sass/color';
3
3
  @import '~@kaizen/design-tokens/sass/spacing';
4
4
 
5
- @layer kz-components {
6
- .expertAdviceContainer {
7
- background-color: $color-purple-100;
8
- border: var(--border-width-1) var(--border-solid-border-style) var(--color-purple-400);
9
- box-shadow: none;
10
- color: $color-purple-800;
11
-
12
- &:hover {
13
- border-color: $color-purple-500;
14
- }
15
- }
16
-
17
- // Override Collapsible header
18
- .expertAdviceContainer > div {
19
- &:first-of-type {
20
- background-color: $color-purple-100;
21
- border-radius: $border-borderless-border-radius;
22
- }
5
+ .expertAdviceContainer {
6
+ background-color: $color-purple-100;
7
+ border: var(--border-width-1) var(--border-solid-border-style) var(--color-purple-400);
8
+ box-shadow: none;
9
+ color: $color-purple-800;
10
+
11
+ &:hover {
12
+ border-color: $color-purple-500;
23
13
  }
14
+ }
24
15
 
25
- .expertAdviceHeader {
16
+ // Override Collapsible header
17
+ .expertAdviceContainer > div {
18
+ &:first-of-type {
26
19
  background-color: $color-purple-100;
27
- flex: 1 1 auto;
28
- align-items: center;
29
- display: flex;
20
+ border-radius: $border-borderless-border-radius;
30
21
  }
22
+ }
31
23
 
32
- .expertAdviceHeading {
33
- color: $color-purple-600;
24
+ .expertAdviceHeader {
25
+ background-color: $color-purple-100;
26
+ flex: 1 1 auto;
27
+ align-items: center;
28
+ display: flex;
29
+ }
34
30
 
35
- .expertAdviceContainer:hover & {
36
- color: $color-purple-700;
37
- }
38
- }
31
+ .expertAdviceHeading {
32
+ color: $color-purple-600;
39
33
 
40
- .expertAdviceIcon {
41
- margin-inline-end: $spacing-sm;
42
- width: 1.75rem;
43
- height: 1.75rem;
34
+ .expertAdviceContainer:hover & {
35
+ color: $color-purple-700;
44
36
  }
37
+ }
45
38
 
46
- .expertAdviceSection {
47
- padding: 0 $spacing-md $spacing-md;
48
- }
39
+ .expertAdviceIcon {
40
+ margin-inline-end: $spacing-sm;
41
+ width: 1.75rem;
42
+ height: 1.75rem;
43
+ }
44
+
45
+ .expertAdviceSection {
46
+ padding: 0 $spacing-md $spacing-md;
49
47
  }
@@ -1,15 +1,13 @@
1
- @layer kz-components {
2
- .container {
3
- display: flex;
4
- width: 100%;
5
- justify-content: center;
1
+ .container {
2
+ display: flex;
3
+ width: 100%;
4
+ justify-content: center;
6
5
 
7
- * {
8
- &,
9
- &::after,
10
- &::before {
11
- box-sizing: border-box;
12
- }
6
+ * {
7
+ &,
8
+ &::after,
9
+ &::before {
10
+ box-sizing: border-box;
13
11
  }
14
12
  }
15
13
  }
@@ -1,17 +1,15 @@
1
1
  @import '~@kaizen/design-tokens/sass/layout';
2
2
  @import './variables';
3
3
 
4
- @layer kz-components {
5
- .content {
6
- max-width: $layout-content-max-width;
7
- margin: 0 $layout-content-side-margin;
8
- width: 100%;
4
+ .content {
5
+ max-width: $layout-content-max-width;
6
+ margin: 0 $layout-content-side-margin;
7
+ width: 100%;
9
8
 
10
- // Setting a min-width: 0 will maintain the gutter margins when the inner contents has something wider than the page (e.g. scrollable table)
11
- min-width: 0;
9
+ // Setting a min-width: 0 will maintain the gutter margins when the inner contents has something wider than the page (e.g. scrollable table)
10
+ min-width: 0;
12
11
 
13
- @media (max-width: calc(#{$layout-breakpoints-large} - 1px)) {
14
- margin: 0 $content-margin-width-on-medium-and-small;
15
- }
12
+ @media (max-width: calc(#{$layout-breakpoints-large} - 1px)) {
13
+ margin: 0 $content-margin-width-on-medium-and-small;
16
14
  }
17
15
  }
@@ -1,11 +1,9 @@
1
1
  @import '~@kaizen/design-tokens/sass/spacing';
2
2
 
3
- @layer kz-components {
4
- .dateInput {
5
- width: 100%;
6
- }
3
+ .dateInput {
4
+ width: 100%;
5
+ }
7
6
 
8
- .input {
9
- margin-top: $spacing-6;
10
- }
7
+ .input {
8
+ margin-top: $spacing-6;
11
9
  }
@@ -1,21 +1,19 @@
1
1
  @import '~@kaizen/design-tokens/sass/spacing';
2
2
 
3
- @layer kz-components {
4
- .dateInputDescription {
5
- display: inline;
6
- }
3
+ .dateInputDescription {
4
+ display: inline;
5
+ }
7
6
 
8
- .dateInputFormatContainer {
9
- margin-inline-start: $spacing-xs;
10
- white-space: nowrap;
11
- }
7
+ .dateInputFormatContainer {
8
+ margin-inline-start: $spacing-xs;
9
+ white-space: nowrap;
10
+ }
12
11
 
13
- .descriptionInputFormat {
14
- display: inline-flex;
15
- white-space: nowrap;
16
- }
12
+ .descriptionInputFormat {
13
+ display: inline-flex;
14
+ white-space: nowrap;
15
+ }
17
16
 
18
- .labelSeparator {
19
- margin-inline-end: $spacing-xs;
20
- }
17
+ .labelSeparator {
18
+ margin-inline-end: $spacing-xs;
21
19
  }
@@ -4,41 +4,39 @@
4
4
  @import '../../../styles/utils/animation';
5
5
  @import '../../../styles/utils/button-reset';
6
6
 
7
- @layer kz-components {
8
- $input-disabled-opacity: 0.3;
9
-
10
- .iconButton {
11
- @include button-reset;
12
-
13
- display: flex;
14
- padding: var(--spacing-6);
15
- border: $border-solid-border-width $border-solid-border-style transparent;
16
- border-radius: $border-solid-border-radius;
17
- position: relative;
18
- inset-inline-end: -0.35rem;
19
- top: -40%;
20
-
21
- :focus {
22
- outline: none;
23
- }
24
-
25
- &:focus-visible {
26
- outline-offset: -2px;
27
- outline: $color-blue-500 $border-focus-ring-border-style $border-focus-ring-border-width;
28
- }
29
-
30
- &:hover:not([disabled]) {
31
- background-color: $color-blue-100;
32
- color: $color-blue-500;
33
- }
7
+ $input-disabled-opacity: 0.3;
8
+
9
+ .iconButton {
10
+ @include button-reset;
11
+
12
+ display: flex;
13
+ padding: var(--spacing-6);
14
+ border: $border-solid-border-width $border-solid-border-style transparent;
15
+ border-radius: $border-solid-border-radius;
16
+ position: relative;
17
+ inset-inline-end: -0.35rem;
18
+ top: -40%;
19
+
20
+ :focus {
21
+ outline: none;
34
22
  }
35
23
 
36
- .calendarActive {
37
- color: $color-blue-500;
38
- background-color: $color-blue-100;
24
+ &:focus-visible {
25
+ outline-offset: -2px;
26
+ outline: $color-blue-500 $border-focus-ring-border-style $border-focus-ring-border-width;
39
27
  }
40
28
 
41
- .disabled {
42
- opacity: $input-disabled-opacity;
29
+ &:hover:not([disabled]) {
30
+ background-color: $color-blue-100;
31
+ color: $color-blue-500;
43
32
  }
44
33
  }
34
+
35
+ .calendarActive {
36
+ color: $color-blue-500;
37
+ background-color: $color-blue-100;
38
+ }
39
+
40
+ .disabled {
41
+ opacity: $input-disabled-opacity;
42
+ }
@@ -1,11 +1,9 @@
1
1
  @import '~@kaizen/design-tokens/sass/color';
2
2
 
3
- @layer kz-components {
4
- .datePicker {
5
- color: $color-purple-800;
6
- }
3
+ .datePicker {
4
+ color: $color-purple-800;
5
+ }
7
6
 
8
- .isReversed {
9
- color: $color-yellow-600;
10
- }
7
+ .isReversed {
8
+ color: $color-yellow-600;
11
9
  }
@@ -91,8 +91,11 @@ describe('<DatePicker />', () => {
91
91
  expect(screen.getByRole('dialog')).toBeVisible()
92
92
  })
93
93
 
94
- // TODO: For some reason a single tab no longer jumps out of input to the button
95
94
  await user.tab()
95
+ await waitFor(() => {
96
+ expect(input).toHaveFocus()
97
+ })
98
+
96
99
  await user.tab()
97
100
  await waitFor(() => {
98
101
  const calendarButton = screen.getByRole('button', { name: 'Choose date' })
@@ -102,7 +105,7 @@ describe('<DatePicker />', () => {
102
105
  await user.tab()
103
106
  await waitFor(() => {
104
107
  const arrowButton = screen.getByRole('button', {
105
- name: /Go to the previous month/i,
108
+ name: 'Go to previous month',
106
109
  })
107
110
  expect(arrowButton).toHaveFocus()
108
111
  })
@@ -165,8 +168,7 @@ describe('<DatePicker /> - Focus element', () => {
165
168
 
166
169
  const month = screen.getByRole('grid', { name: 'March 2022' })
167
170
  const dateToSelect = within(month).getByRole('gridcell', { name: '6' })
168
- const dateToSelectButton = within(dateToSelect).getByRole('button')
169
- await user.click(dateToSelectButton)
171
+ await user.click(dateToSelect)
170
172
 
171
173
  const input = screen.getByLabelText('Input label', { selector: 'input' })
172
174
  expect(input).toHaveFocus()
@@ -190,8 +192,7 @@ describe('<DatePicker /> - Focus element', () => {
190
192
 
191
193
  const month = screen.getByRole('grid', { name: 'March 2022' })
192
194
  const selectedDate = within(month).getByRole('gridcell', { name: '1' })
193
- const selectedDateButton = within(selectedDate).getByRole('button')
194
- expect(selectedDateButton).toHaveFocus()
195
+ expect(selectedDate).toHaveFocus()
195
196
  })
196
197
 
197
198
  it('returns focus to the input when the user escapes from the calendar', async () => {
@@ -232,8 +233,7 @@ describe('<DatePicker /> - Focus element', () => {
232
233
 
233
234
  const month = screen.getByRole('grid', { name: 'March 2022' })
234
235
  const selectedDate = within(month).getByRole('gridcell', { name: '1' })
235
- const selectedDateButton = within(selectedDate).getByRole('button')
236
- expect(selectedDateButton).toHaveFocus()
236
+ expect(selectedDate).toHaveFocus()
237
237
  })
238
238
 
239
239
  it('returns focus to the calendar button when the user escapes from the calendar', async () => {
@@ -277,8 +277,7 @@ describe('<DatePicker /> - Focus element', () => {
277
277
 
278
278
  const month = screen.getByRole('grid', { name: 'March 2022' })
279
279
  const selectedDate = within(month).getByRole('gridcell', { name: '1' })
280
- const selectedDateButton = within(selectedDate).getByRole('button')
281
- expect(selectedDateButton).toHaveFocus()
280
+ expect(selectedDate).toHaveFocus()
282
281
  })
283
282
 
284
283
  it('returns focus to the input when the user escapes from the calendar', async () => {
@@ -1,6 +1,6 @@
1
1
  import React, { useEffect, useId, useRef, useState, type RefObject } from 'react'
2
2
  import { useIntl } from '@cultureamp/i18n-react-intl'
3
- import { type DayEventHandler } from 'react-day-picker'
3
+ import { type DayClickEventHandler } from 'react-day-picker'
4
4
  import { FocusOn } from 'react-focus-on'
5
5
  import {
6
6
  CalendarSingle,
@@ -161,7 +161,7 @@ export const DatePicker = ({
161
161
  onDayChange(newDate)
162
162
  }
163
163
 
164
- const handleCalendarDayChange: DayEventHandler<React.MouseEvent> = (date) => {
164
+ const handleCalendarDayChange: DayClickEventHandler = (date) => {
165
165
  if (!isDisabledDate(date, disabledDays)) {
166
166
  const newInputValue =
167
167
  lastTrigger === 'calendarButton'
@@ -1,7 +1,5 @@
1
- @layer kz-components {
2
- $input-disabled-opacity: 0.3;
1
+ $input-disabled-opacity: 0.3;
3
2
 
4
- .disabled {
5
- opacity: $input-disabled-opacity;
6
- }
3
+ .disabled {
4
+ opacity: $input-disabled-opacity;
7
5
  }