@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
@@ -3,32 +3,30 @@
3
3
  @import '../utils/mixins';
4
4
  @import '../utils/variables';
5
5
 
6
- @layer kz-components {
7
- %icon-button {
8
- width: $button-height;
9
- border-color: $border-borderless-border-color;
6
+ %icon-button {
7
+ width: $button-height;
8
+ border-color: $border-borderless-border-color;
10
9
 
11
- @include enabled-pseudo-states-variant($border-color: $border-borderless-border-color);
10
+ @include enabled-pseudo-states-variant($border-color: $border-borderless-border-color);
12
11
 
13
- & #{$className--content} {
14
- justify-content: center;
15
- width: 100%;
16
- padding: 0;
17
- }
12
+ & #{$className--content} {
13
+ justify-content: center;
14
+ width: 100%;
15
+ padding: 0;
16
+ }
18
17
 
19
- &:not(.reversed) {
20
- &.default {
21
- background-color: transparent;
22
- color: inherit;
18
+ &:not(.reversed) {
19
+ &.default {
20
+ background-color: transparent;
21
+ color: inherit;
23
22
 
24
- @include enabled-pseudo-states-variant($background-color: $color-gray-200);
25
- }
23
+ @include enabled-pseudo-states-variant($background-color: $color-gray-200);
26
24
  }
25
+ }
27
26
 
28
- &.reversed {
29
- border-color: $border-borderless-border-color;
27
+ &.reversed {
28
+ border-color: $border-borderless-border-color;
30
29
 
31
- @include enabled-pseudo-states-variant($border-color: $border-borderless-border-color);
32
- }
30
+ @include enabled-pseudo-states-variant($border-color: $border-borderless-border-color);
33
31
  }
34
32
  }
@@ -1,50 +1,48 @@
1
- @layer kz-components {
2
- .buttonGroup {
3
- --focus-ring-offset: 1px;
4
- --focus-ring-offset-inner: calc(-1 * var(--focus-ring-offset));
1
+ .buttonGroup {
2
+ --focus-ring-offset: 1px;
3
+ --focus-ring-offset-inner: calc(-1 * var(--focus-ring-offset));
5
4
 
6
- display: inline-flex;
7
- }
5
+ display: inline-flex;
6
+ }
8
7
 
9
- .child {
10
- border-radius: 0;
11
- }
8
+ .child {
9
+ border-radius: 0;
10
+ }
12
11
 
13
- .child:focus-visible::after {
14
- border-radius: 0;
15
- }
12
+ .child:focus-visible::after {
13
+ border-radius: 0;
14
+ }
16
15
 
17
- .child:not(.firstChild) {
18
- border-inline-start: 1px solid var(--color-blue-300);
19
- }
16
+ .child:not(.firstChild) {
17
+ border-inline-start: 1px solid var(--color-blue-300);
18
+ }
20
19
 
21
- .child:not(.firstChild, .lastChild) {
22
- &:focus-visible {
23
- &::after {
24
- inset-inline: var(--focus-ring-offset-inner);
25
- }
20
+ .child:not(.firstChild, .lastChild) {
21
+ &:focus-visible {
22
+ &::after {
23
+ inset-inline: var(--focus-ring-offset-inner);
26
24
  }
27
25
  }
26
+ }
28
27
 
29
- .child.firstChild {
30
- border-start-start-radius: var(--border-focus-ring-border-radius);
31
- border-end-start-radius: var(--border-focus-ring-border-radius);
32
- }
28
+ .child.firstChild {
29
+ border-start-start-radius: var(--border-focus-ring-border-radius);
30
+ border-end-start-radius: var(--border-focus-ring-border-radius);
31
+ }
33
32
 
34
- .child.firstChild:focus-visible::after {
35
- border-start-start-radius: var(--border-focus-ring-border-radius);
36
- border-end-start-radius: var(--border-focus-ring-border-radius);
37
- inset-inline-end: var(--focus-ring-offset-inner);
38
- }
33
+ .child.firstChild:focus-visible::after {
34
+ border-start-start-radius: var(--border-focus-ring-border-radius);
35
+ border-end-start-radius: var(--border-focus-ring-border-radius);
36
+ inset-inline-end: var(--focus-ring-offset-inner);
37
+ }
39
38
 
40
- .child.lastChild {
41
- border-start-end-radius: var(--border-focus-ring-border-radius);
42
- border-end-end-radius: var(--border-focus-ring-border-radius);
43
- }
39
+ .child.lastChild {
40
+ border-start-end-radius: var(--border-focus-ring-border-radius);
41
+ border-end-end-radius: var(--border-focus-ring-border-radius);
42
+ }
44
43
 
45
- .child.lastChild:focus-visible::after {
46
- border-start-end-radius: var(--border-focus-ring-border-radius);
47
- border-end-end-radius: var(--border-focus-ring-border-radius);
48
- inset-inline-start: var(--focus-ring-offset-inner);
49
- }
44
+ .child.lastChild:focus-visible::after {
45
+ border-start-end-radius: var(--border-focus-ring-border-radius);
46
+ border-end-end-radius: var(--border-focus-ring-border-radius);
47
+ inset-inline-start: var(--focus-ring-offset-inner);
50
48
  }
@@ -1,65 +1,63 @@
1
1
  @import '~@kaizen/design-tokens/sass/border';
2
2
  @import '~@kaizen/design-tokens/sass/color';
3
3
 
4
- @layer kz-components {
5
- $focus-ring-offset: 1px;
6
- $focus-ring-offset-inner: calc(-1 * #{$focus-ring-offset});
4
+ $focus-ring-offset: 1px;
5
+ $focus-ring-offset-inner: calc(-1 * #{$focus-ring-offset});
7
6
 
8
- %firstChildBorders {
9
- border-start-start-radius: $border-focus-ring-border-radius;
10
- border-end-start-radius: $border-focus-ring-border-radius;
11
- }
7
+ %firstChildBorders {
8
+ border-start-start-radius: $border-focus-ring-border-radius;
9
+ border-end-start-radius: $border-focus-ring-border-radius;
10
+ }
12
11
 
13
- %lastChildBorders {
14
- border-start-end-radius: $border-focus-ring-border-radius;
15
- border-end-end-radius: $border-focus-ring-border-radius;
16
- }
12
+ %lastChildBorders {
13
+ border-start-end-radius: $border-focus-ring-border-radius;
14
+ border-end-end-radius: $border-focus-ring-border-radius;
15
+ }
17
16
 
18
- .buttonGroup {
19
- display: inline-flex;
17
+ .buttonGroup {
18
+ display: inline-flex;
20
19
 
21
- .child {
22
- border-radius: 0;
20
+ .child {
21
+ border-radius: 0;
23
22
 
24
- &:focus-visible {
25
- &::after {
26
- border-radius: 0;
27
- }
23
+ &:focus-visible {
24
+ &::after {
25
+ border-radius: 0;
28
26
  }
27
+ }
29
28
 
30
- &:not(.firstChild) {
31
- border-inline-start: 1px solid $color-blue-300;
32
- }
29
+ &:not(.firstChild) {
30
+ border-inline-start: 1px solid $color-blue-300;
31
+ }
33
32
 
34
- &:not(.firstChild, .lastChild) {
35
- &:focus-visible {
36
- &::after {
37
- inset-inline: $focus-ring-offset-inner $focus-ring-offset-inner;
38
- }
33
+ &:not(.firstChild, .lastChild) {
34
+ &:focus-visible {
35
+ &::after {
36
+ inset-inline: $focus-ring-offset-inner $focus-ring-offset-inner;
39
37
  }
40
38
  }
39
+ }
41
40
 
42
- &.firstChild {
43
- @extend %firstChildBorders;
41
+ &.firstChild {
42
+ @extend %firstChildBorders;
44
43
 
45
- &:focus-visible {
46
- &::after {
47
- @extend %firstChildBorders;
44
+ &:focus-visible {
45
+ &::after {
46
+ @extend %firstChildBorders;
48
47
 
49
- inset-inline-end: $focus-ring-offset-inner;
50
- }
48
+ inset-inline-end: $focus-ring-offset-inner;
51
49
  }
52
50
  }
51
+ }
53
52
 
54
- &.lastChild {
55
- @extend %lastChildBorders;
53
+ &.lastChild {
54
+ @extend %lastChildBorders;
56
55
 
57
- &:focus-visible {
58
- &::after {
59
- @extend %lastChildBorders;
56
+ &:focus-visible {
57
+ &::after {
58
+ @extend %lastChildBorders;
60
59
 
61
- inset-inline-start: $focus-ring-offset-inner;
62
- }
60
+ inset-inline-start: $focus-ring-offset-inner;
63
61
  }
64
62
  }
65
63
  }
@@ -4,26 +4,24 @@
4
4
  @import '~@kaizen/design-tokens/sass/spacing';
5
5
  @import '~@kaizen/design-tokens/sass/layout';
6
6
 
7
- @layer kz-components {
8
- .calendarPopover {
9
- background-color: $color-white;
10
- z-index: 1010;
11
- box-shadow: $shadow-large-box-shadow;
12
- border-radius: $border-borderless-border-radius;
13
- padding: $spacing-12 $spacing-8;
14
- box-sizing: border-box;
15
- overflow: auto;
7
+ .calendarPopover {
8
+ background-color: $color-white;
9
+ z-index: 1010;
10
+ box-shadow: $shadow-large-box-shadow;
11
+ border-radius: $border-borderless-border-radius;
12
+ padding: $spacing-12 $spacing-8;
13
+ box-sizing: border-box;
14
+ overflow: auto;
16
15
 
17
- @media (min-width: $layout-breakpoints-medium) {
18
- padding: $spacing-24;
19
- }
16
+ @media (min-width: $layout-breakpoints-medium) {
17
+ padding: $spacing-24;
20
18
  }
19
+ }
21
20
 
22
- // Overrides for if the browser supports popovers. The inset unset is to fix a bug with RTL positioning https://github.com/floating-ui/floating-ui/issues/3221
23
- // Margin 0 because default styling for [popover] is margin: auto to center it.
24
- .calendarPopover[popover]:popover-open {
25
- z-index: unset;
26
- margin: 0;
27
- inset: unset;
28
- }
21
+ // Overrides for if the browser supports popovers. The inset unset is to fix a bug with RTL positioning https://github.com/floating-ui/floating-ui/issues/3221
22
+ // Margin 0 because default styling for [popover] is margin: auto to center it.
23
+ .calendarPopover[popover]:popover-open {
24
+ z-index: unset;
25
+ margin: 0;
26
+ inset: unset;
29
27
  }
@@ -1,68 +1,66 @@
1
1
  @import '~@kaizen/design-tokens/sass/color';
2
2
  @import '~@kaizen/design-tokens/sass/spacing';
3
3
 
4
- @layer kz-components {
5
- $cell-border-radius: 3px;
4
+ $cell-border-radius: 3px;
6
5
 
7
- .month {
8
- padding: 0 $spacing-sm;
6
+ .month {
7
+ padding: 0 $spacing-sm;
9
8
 
10
- &:nth-of-type(1) {
11
- padding-inline-start: 0;
12
- }
13
-
14
- &:last-child {
15
- padding-inline-end: 0;
16
- }
9
+ &:first-child {
10
+ padding-inline-start: 0;
17
11
  }
18
12
 
19
- .monthWithDivider {
20
- position: relative;
21
- padding: 0 $spacing-md;
22
-
23
- &:not(:nth-of-type(1)) {
24
- &::before {
25
- position: absolute;
26
- content: '';
27
- inset: calc(-1 * #{$spacing-md}) 0;
28
- border-inline-start: 1px solid $color-gray-300;
29
- }
30
- }
13
+ &:last-child {
14
+ padding-inline-end: 0;
15
+ }
16
+ }
31
17
 
32
- &:nth-of-type(1) {
33
- padding-inline-start: 0;
34
- }
18
+ .monthWithDivider {
19
+ position: relative;
20
+ padding: 0 $spacing-md;
35
21
 
36
- &:last-child {
37
- padding-inline-end: 0;
22
+ &:not(:first-child) {
23
+ &::before {
24
+ position: absolute;
25
+ content: '';
26
+ inset: calc(-1 * #{$spacing-md}) 0;
27
+ border-inline-start: 1px solid $color-gray-300;
38
28
  }
39
29
  }
40
30
 
41
- .nav {
42
- position: absolute;
43
- display: flex;
44
- justify-content: space-between;
45
- width: 100%;
46
- color: $color-purple-800;
47
- top: -0.25rem;
31
+ &:first-child {
32
+ padding-inline-start: 0;
48
33
  }
49
34
 
50
- .dayRangeStart,
51
- .dayRangeEnd {
52
- background-color: $color-blue-500;
53
- color: $color-white;
35
+ &:last-child {
36
+ padding-inline-end: 0;
54
37
  }
38
+ }
55
39
 
56
- .dayRangeMiddle {
57
- background-color: $color-blue-100;
58
- color: $color-blue-500;
40
+ .nav {
41
+ position: absolute;
42
+ display: flex;
43
+ justify-content: flex-start;
44
+ width: 100%;
45
+ color: $color-purple-800;
59
46
 
60
- & [class*='_button_'] {
61
- color: $color-blue-500;
62
- }
47
+ .captionEnd & {
48
+ flex-direction: row-reverse;
63
49
  }
64
50
 
65
- .hidden {
66
- background-color: transparent;
51
+ .captionStart.captionEnd & {
52
+ justify-content: space-between;
53
+ flex-direction: row;
67
54
  }
68
55
  }
56
+
57
+ .dayRangeStart,
58
+ .dayRangeEnd {
59
+ background-color: $color-blue-500;
60
+ color: $color-white;
61
+ }
62
+
63
+ .dayRangeMiddle {
64
+ background-color: $color-blue-100;
65
+ color: $color-blue-500;
66
+ }
@@ -1,6 +1,6 @@
1
1
  import React, { useEffect, useRef } from 'react'
2
2
  import { enAU } from 'date-fns/locale'
3
- import { DayPicker, type PropsBase, type PropsRange } from 'react-day-picker'
3
+ import { DayPicker, type DayPickerRangeProps } from 'react-day-picker'
4
4
  import { Icon } from '~components/__next__/Icon'
5
5
  import { type OverrideClassName } from '~components/types/OverrideClassName'
6
6
  import { baseCalendarClassNames } from '../baseCalendarClassNames'
@@ -13,7 +13,7 @@ export type CalendarRangeProps = {
13
13
  id?: string
14
14
  onMount?: (calendarElement: CalendarRangeElement) => void
15
15
  hasDivider?: boolean
16
- } & OverrideClassName<Omit<PropsRange & Omit<PropsBase, 'mode'>, 'mode'>>
16
+ } & OverrideClassName<Omit<DayPickerRangeProps, 'mode'>>
17
17
 
18
18
  export const CalendarRange = ({
19
19
  id,
@@ -36,15 +36,16 @@ export const CalendarRange = ({
36
36
  const selectedMonth = monthToShow && isInvalidDate(monthToShow) ? undefined : monthToShow
37
37
 
38
38
  /* eslint-disable camelcase */
39
- const classNames: PropsBase['classNames'] = {
39
+ const classNames = {
40
40
  ...baseCalendarClassNames,
41
41
  month: hasDivider ? styles.monthWithDivider : styles.month,
42
+ caption_end: styles.captionEnd,
43
+ caption_start: styles.captionStart,
42
44
  nav: styles.nav,
43
- range_start: styles.dayRangeStart,
44
- range_end: styles.dayRangeEnd,
45
- range_middle: styles.dayRangeMiddle,
46
- hidden: styles.hidden,
47
- }
45
+ day_range_start: styles.dayRangeStart,
46
+ day_range_end: styles.dayRangeEnd,
47
+ day_range_middle: styles.dayRangeMiddle,
48
+ } satisfies DayPickerRangeProps['classNames']
48
49
  /* eslint-enable camelcase */
49
50
 
50
51
  return (
@@ -55,13 +56,8 @@ export const CalendarRange = ({
55
56
  defaultMonth={selectedMonth}
56
57
  classNames={classNames}
57
58
  components={{
58
- Chevron: (props) => {
59
- if (props.orientation === 'left') {
60
- return <Icon name="arrow_back" isPresentational shouldMirrorInRTL />
61
- }
62
-
63
- return <Icon name="arrow_forward" isPresentational shouldMirrorInRTL />
64
- },
59
+ IconRight: () => <Icon name="arrow_forward" isPresentational shouldMirrorInRTL />,
60
+ IconLeft: () => <Icon name="arrow_back" isPresentational shouldMirrorInRTL />,
65
61
  }}
66
62
  numberOfMonths={numberOfMonths}
67
63
  locale={locale}
@@ -89,8 +89,7 @@ const applyStickerSheetStyles = (canvasElement: HTMLElement): void => {
89
89
  ): HTMLElement => {
90
90
  const calendar = canvas.getByTestId(id)
91
91
  const month = within(calendar).getByRole('grid', { name: monthName })
92
- const day = within(month).getByRole('gridcell', { name: dayName })
93
- return within(day).getByRole('button')
92
+ return within(month).getByRole('gridcell', { name: dayName })
94
93
  }
95
94
 
96
95
  const calendarsPseudoStates = [
@@ -1,16 +1,13 @@
1
1
  @import '~@kaizen/design-tokens/sass/color';
2
2
 
3
- @layer kz-components {
4
- .nav {
5
- position: absolute;
6
- display: flex;
7
- justify-content: space-between;
8
- width: 100%;
9
- color: $color-purple-800;
10
- top: -0.25rem;
11
- }
3
+ .nav {
4
+ position: absolute;
5
+ display: flex;
6
+ justify-content: space-between;
7
+ width: 100%;
8
+ color: $color-purple-800;
9
+ }
12
10
 
13
- .navButtonNext {
14
- inset-inline-end: 0;
15
- }
11
+ .navButtonNext {
12
+ inset-inline-end: 0;
16
13
  }
@@ -1,6 +1,6 @@
1
1
  import React, { useEffect, useRef } from 'react'
2
2
  import { enAU } from 'date-fns/locale'
3
- import { DayPicker, type PropsBase, type PropsSingle } from 'react-day-picker'
3
+ import { DayPicker, type DayPickerSingleProps } from 'react-day-picker'
4
4
  import { Icon } from '~components/__next__/Icon'
5
5
  import { type OverrideClassName } from '~components/types/OverrideClassName'
6
6
  import { baseCalendarClassNames } from '../baseCalendarClassNames'
@@ -12,7 +12,7 @@ export type CalendarSingleElement = HTMLDivElement
12
12
  export type CalendarSingleProps = {
13
13
  id?: string
14
14
  onMount?: (calendarElement: CalendarSingleElement) => void
15
- } & OverrideClassName<Omit<PropsSingle & Omit<PropsBase, 'mode'>, 'mode'>>
15
+ } & OverrideClassName<Omit<DayPickerSingleProps, 'mode'>>
16
16
 
17
17
  export const CalendarSingle = ({
18
18
  id,
@@ -34,11 +34,11 @@ export const CalendarSingle = ({
34
34
  const selectedMonth = monthToShow && isInvalidDate(monthToShow) ? undefined : monthToShow
35
35
 
36
36
  /* eslint-disable camelcase */
37
- const classNames: PropsBase['classNames'] = {
37
+ const classNames = {
38
38
  ...baseCalendarClassNames,
39
39
  nav: styles.nav,
40
40
  nav_button_next: styles.navButtonNext,
41
- }
41
+ } satisfies DayPickerSingleProps['classNames']
42
42
  /* eslint-enable camelcase */
43
43
 
44
44
  return (
@@ -50,13 +50,8 @@ export const CalendarSingle = ({
50
50
  weekStartsOn={isValidWeekStartsOn(weekStartsOn) ? weekStartsOn : undefined}
51
51
  classNames={classNames}
52
52
  components={{
53
- Chevron: (props) => {
54
- if (props.orientation === 'left') {
55
- return <Icon name="arrow_back" isPresentational shouldMirrorInRTL />
56
- }
57
-
58
- return <Icon name="arrow_forward" isPresentational shouldMirrorInRTL />
59
- },
53
+ IconRight: () => <Icon name="arrow_forward" isPresentational shouldMirrorInRTL />,
54
+ IconLeft: () => <Icon name="arrow_back" isPresentational shouldMirrorInRTL />,
60
55
  }}
61
56
  locale={locale}
62
57
  {...restProps}
@@ -89,14 +89,9 @@ const StickerSheetTemplate: StickerSheetStory = {
89
89
  const applyStickerSheetStyles = (canvasElement: HTMLElement): void => {
90
90
  const canvas = within(canvasElement)
91
91
 
92
- const getElementWithinCalendar = (
93
- id: string,
94
- role: string,
95
- name: string | RegExp,
96
- ): HTMLElement => {
92
+ const getElementWithinCalendar = (id: string, role: string, name: string): HTMLElement => {
97
93
  const calendar = canvas.getByTestId(id)
98
- const day = within(calendar).getByRole(role, { name })
99
- return role === 'button' ? day : within(day).getByRole('button')
94
+ return within(calendar).getByRole(role, { name })
100
95
  }
101
96
 
102
97
  const todayCalendarIds = [
@@ -123,7 +118,7 @@ const applyStickerSheetStyles = (canvasElement: HTMLElement): void => {
123
118
  {
124
119
  id: 'id--calendar-navigation',
125
120
  role: 'button',
126
- name: /Go to the previous month/i,
121
+ name: 'Go to previous month',
127
122
  },
128
123
  ]
129
124
 
@@ -1,27 +1,24 @@
1
1
  @import '~@kaizen/design-tokens/sass/color';
2
2
 
3
- @layer kz-components {
4
- .nav {
5
- position: absolute;
6
- display: flex;
7
- justify-content: space-between;
8
- width: 100%;
9
- color: $color-purple-800;
10
- top: -0.25rem;
11
- }
3
+ .nav {
4
+ position: absolute;
5
+ display: flex;
6
+ justify-content: space-between;
7
+ width: 100%;
8
+ color: $color-purple-800;
9
+ }
12
10
 
13
- .dayRangeStart,
14
- .dayRangeEnd {
15
- background-color: $color-blue-500;
16
- color: $color-white;
17
- }
11
+ .navButtonNext {
12
+ inset-inline-end: 0;
13
+ }
18
14
 
19
- .dayRangeMiddle {
20
- background-color: $color-blue-100;
21
- color: $color-blue-500;
15
+ .dayRangeStart,
16
+ .dayRangeEnd {
17
+ background-color: $color-blue-500;
18
+ color: $color-white;
19
+ }
22
20
 
23
- & [class*='_button_'] {
24
- color: $color-blue-500;
25
- }
26
- }
21
+ .dayRangeMiddle {
22
+ background-color: $color-blue-100;
23
+ color: $color-blue-500;
27
24
  }