@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
@@ -2,200 +2,199 @@
2
2
  @import '~@kaizen/design-tokens/sass/border';
3
3
  @import '../../styles/utils/button-reset';
4
4
 
5
- @layer kz-components {
6
- // Sync with PopoverModern.tsx
7
- $arrow-width: 14px;
8
- $arrow-height: 7px;
9
-
10
- $large-width: 450px;
11
-
12
- // Suggestion: with this implementation, the anchor point of the popover is at the base of the triangle. But,
13
- // we would ideally want it at the tip of the triangle. Otherwise, when using the popover, the consumer needs to manually
14
- // add something like a `margin-top: 8px` to get the popover properly positioned.
15
- // I didn't update this, as I didn't want to introduce a breaking change.
16
- @mixin arrow($background-color, $border-color) {
17
- &::before,
18
- &::after {
19
- content: '';
20
- position: absolute;
21
- border-left: calc(#{$arrow-width} / 2) solid transparent;
22
- border-right: calc(#{$arrow-width} / 2) solid transparent;
23
- top: 0;
24
- left: 0;
25
- }
26
-
27
- &::before {
28
- border-top: $arrow-height solid $border-color;
29
- }
30
-
31
- /* The white fill of the triangle */
32
- &::after {
33
- border-top: $arrow-height solid $background-color;
34
- margin-top: -1.5px;
35
- z-index: 1;
36
- }
37
- }
38
-
39
- .root {
40
- width: 220px;
5
+ // Sync with PopoverModern.tsx
6
+ $arrow-width: 14px;
7
+ $arrow-height: 7px;
8
+
9
+ $large-width: 450px;
10
+
11
+ // Suggestion: with this implementation, the anchor point of the popover is at the base of the triangle. But,
12
+ // we would ideally want it at the tip of the triangle. Otherwise, when using the popover, the consumer needs to manually
13
+ // add something like a `margin-top: 8px` to get the popover properly positioned.
14
+ // I didn't update this, as I didn't want to introduce a breaking change.
15
+ @mixin arrow($background-color, $border-color) {
16
+ &::before,
17
+ &::after {
18
+ content: '';
41
19
  position: absolute;
42
- left: 50%;
43
- // also see the component file under getRootStyle, which will transform the element
20
+ border-left: calc(#{$arrow-width} / 2) solid transparent;
21
+ border-right: calc(#{$arrow-width} / 2) solid transparent;
22
+ top: 0;
23
+ left: 0;
44
24
  }
45
25
 
46
- %box {
47
- --border-width: var(--border-width-1);
26
+ &::before {
27
+ border-top: $arrow-height solid $border-color;
28
+ }
48
29
 
49
- border: var(--border-width) var(--border-solid-border-style);
50
- filter: drop-shadow(0 0 7px rgb(0, 0, 0, 0.1));
51
- border-radius: $border-solid-border-radius;
52
- color: $color-purple-800;
53
- text-align: start;
54
- padding-block: calc(var(--spacing-12) - var(--border-width))
55
- calc(var(--spacing-16) - var(--border-width));
56
- padding-inline: calc(var(--spacing-16) - var(--border-width));
30
+ /* The white fill of the triangle */
31
+ &::after {
32
+ border-top: $arrow-height solid $background-color;
33
+ margin-top: -1.5px;
34
+ z-index: 1;
57
35
  }
36
+ }
58
37
 
59
- $default-box-border-color: var(--color-gray-500);
38
+ .root {
39
+ width: 220px;
40
+ position: absolute;
41
+ left: 50%;
42
+ // also see the component file under getRootStyle, which will transform the element
43
+ }
60
44
 
61
- .defaultBox {
62
- @extend %box;
45
+ %box {
46
+ --border-width: var(--border-width-1);
47
+
48
+ border: var(--border-width) var(--border-solid-border-style);
49
+ filter: drop-shadow(0 0 7px rgba(0, 0, 0, 0.1));
50
+ border-radius: $border-solid-border-radius;
51
+ color: $color-purple-800;
52
+ text-align: start;
53
+ padding-block: calc(var(--spacing-12) - var(--border-width))
54
+ calc(var(--spacing-16) - var(--border-width));
55
+ padding-inline: calc(var(--spacing-16) - var(--border-width));
56
+ }
63
57
 
64
- background: var(--color-white);
65
- border-color: $default-box-border-color;
66
- }
58
+ $default-box-border-color: var(--color-gray-500);
67
59
 
68
- .defaultArrow {
69
- @include arrow(var(--color-white), $default-box-border-color);
70
- }
60
+ .defaultBox {
61
+ @extend %box;
71
62
 
72
- $informative-box-border-color: var(--color-blue-400);
63
+ background: var(--color-white);
64
+ border-color: $default-box-border-color;
65
+ }
73
66
 
74
- .informativeBox {
75
- @extend %box;
67
+ .defaultArrow {
68
+ @include arrow(var(--color-white), $default-box-border-color);
69
+ }
76
70
 
77
- background: $color-blue-100;
78
- border-color: $informative-box-border-color;
79
- }
71
+ $informative-box-border-color: var(--color-blue-400);
80
72
 
81
- .informativeArrow {
82
- @include arrow($color-blue-100, $informative-box-border-color);
83
- }
73
+ .informativeBox {
74
+ @extend %box;
84
75
 
85
- $positive-box-border-color: var(--color-green-500);
76
+ background: $color-blue-100;
77
+ border-color: $informative-box-border-color;
78
+ }
86
79
 
87
- .positiveBox {
88
- @extend %box;
80
+ .informativeArrow {
81
+ @include arrow($color-blue-100, $informative-box-border-color);
82
+ }
89
83
 
90
- background: $color-green-100;
91
- border-color: $positive-box-border-color;
92
- }
84
+ $positive-box-border-color: var(--color-green-500);
93
85
 
94
- .positiveArrow {
95
- @include arrow($color-green-100, $positive-box-border-color);
96
- }
86
+ .positiveBox {
87
+ @extend %box;
97
88
 
98
- $negative-box-border-color: var(--color-red-500);
89
+ background: $color-green-100;
90
+ border-color: $positive-box-border-color;
91
+ }
99
92
 
100
- .negativeBox {
101
- @extend %box;
93
+ .positiveArrow {
94
+ @include arrow($color-green-100, $positive-box-border-color);
95
+ }
102
96
 
103
- background: $color-red-100;
104
- border-color: $negative-box-border-color;
105
- }
97
+ $negative-box-border-color: var(--color-red-500);
106
98
 
107
- .negativeArrow {
108
- @include arrow($color-red-100, $negative-box-border-color);
109
- }
99
+ .negativeBox {
100
+ @extend %box;
110
101
 
111
- $cautionary-box-border-color: var(--color-yellow-700);
102
+ background: $color-red-100;
103
+ border-color: $negative-box-border-color;
104
+ }
112
105
 
113
- .cautionaryBox {
114
- @extend %box;
106
+ .negativeArrow {
107
+ @include arrow($color-red-100, $negative-box-border-color);
108
+ }
115
109
 
116
- background: $color-yellow-100;
117
- border-color: $cautionary-box-border-color;
118
- }
110
+ $cautionary-box-border-color: var(--color-yellow-700);
119
111
 
120
- .cautionaryArrow {
121
- @include arrow($color-yellow-100, $cautionary-box-border-color);
122
- }
112
+ .cautionaryBox {
113
+ @extend %box;
123
114
 
124
- .header {
125
- position: relative;
126
- margin-bottom: var(--spacing-6);
127
- display: flex;
128
- align-items: center;
129
- white-space: nowrap;
130
- padding-inline-end: var(--spacing-24);
131
- }
115
+ background: $color-yellow-100;
116
+ border-color: $cautionary-box-border-color;
117
+ }
132
118
 
133
- .container {
134
- position: relative;
135
- white-space: pre-line;
136
- }
119
+ .cautionaryArrow {
120
+ @include arrow($color-yellow-100, $cautionary-box-border-color);
121
+ }
137
122
 
138
- .icon {
139
- display: inherit;
140
- margin-inline-end: var(--spacing-6);
141
- }
123
+ .header {
124
+ position: relative;
125
+ margin-bottom: var(--spacing-6);
126
+ display: flex;
127
+ align-items: center;
128
+ white-space: nowrap;
129
+ padding-inline-end: var(--spacing-24);
130
+ }
142
131
 
143
- .informativeIcon {
144
- color: var(--color-blue-500);
145
- }
132
+ .container {
133
+ position: relative;
134
+ white-space: pre-line;
135
+ }
146
136
 
147
- .positiveIcon {
148
- color: var(--color-green-500);
149
- }
137
+ .icon {
138
+ display: inherit;
139
+ margin-inline-end: var(--spacing-6);
140
+ }
150
141
 
151
- .negativeIcon {
152
- color: var(--color-red-500);
153
- }
142
+ .informativeIcon {
143
+ color: var(--color-blue-500);
144
+ }
154
145
 
155
- .cautionaryIcon {
156
- color: var(--color-yellow-700);
157
- }
146
+ .positiveIcon {
147
+ color: var(--color-green-500);
148
+ }
158
149
 
159
- .close {
160
- @include button-reset;
150
+ .negativeIcon {
151
+ color: var(--color-red-500);
152
+ }
161
153
 
162
- position: absolute;
163
- right: 0;
164
- margin-left: auto;
165
- display: inherit;
166
- color: rgb($color-purple-800-rgb, 0.7);
167
-
168
- &:hover {
169
- color: $color-purple-800;
170
- }
171
-
172
- &:focus {
173
- outline: none;
174
- }
175
-
176
- &:focus-visible {
177
- color: $color-purple-800;
178
- outline: $color-blue-500 $border-focus-ring-border-style $border-focus-ring-border-width;
179
- outline-offset: calc(-1 * #{$border-focus-ring-border-width});
180
- border-radius: $border-borderless-border-radius;
181
- }
154
+ .cautionaryIcon {
155
+ color: var(--color-yellow-700);
156
+ }
157
+
158
+ .close {
159
+ @include button-reset;
160
+
161
+ position: absolute;
162
+ right: 0;
163
+ margin-left: auto;
164
+ display: inherit;
165
+ color: rgba($color-purple-800-rgb, 0.7);
166
+
167
+ &:hover {
168
+ color: $color-purple-800;
182
169
  }
183
170
 
184
- .arrowWrapper {
185
- position: absolute;
186
- // Needed by popper, so it measures the size of the arrow correctly
187
- width: $arrow-width;
188
- height: $arrow-height;
171
+ &:focus {
172
+ outline: none;
189
173
  }
190
174
 
191
- .arrow {
192
- // Needed by popper, so it measures the size of the arrow correctly
193
- width: $arrow-width;
194
- height: $arrow-height;
175
+ &:focus-visible {
176
+ color: $color-purple-800;
177
+ outline: $color-blue-500 $border-focus-ring-border-style $border-focus-ring-border-width;
178
+ outline-offset: calc(-1 * #{$border-focus-ring-border-width});
179
+ border-radius: $border-borderless-border-radius;
195
180
  }
181
+ }
196
182
 
197
- /* stylelint-disable no-descending-specificity */
198
- /**
183
+ .arrowWrapper {
184
+ position: absolute;
185
+ // Needed by popper, so it measures the size of the arrow correctly
186
+ width: $arrow-width;
187
+ height: $arrow-height;
188
+ }
189
+
190
+ .arrow {
191
+ // Needed by popper, so it measures the size of the arrow correctly
192
+ width: $arrow-width;
193
+ height: $arrow-height;
194
+ }
195
+
196
+ /* stylelint-disable no-descending-specificity */
197
+ /**
199
198
  * In the legacy popover, the "side" described the location of the arrow, and
200
199
  * we use css classes to determine the placement.
201
200
  * In the modern popover, the "side" describes the location of the popover
@@ -204,48 +203,47 @@
204
203
  * Hence, the confusion below.
205
204
  */
206
205
 
207
- [data-popper-placement^='bottom'] .arrowWrapper {
208
- bottom: 100%;
209
- left: 50%;
210
- margin-top: -9px;
206
+ [data-popper-placement^='bottom'] .arrowWrapper {
207
+ bottom: 100%;
208
+ left: 50%;
209
+ margin-top: -9px;
211
210
 
212
- .arrow {
213
- transform: rotate(180deg);
214
- }
211
+ .arrow {
212
+ transform: rotate(180deg);
215
213
  }
214
+ }
216
215
 
217
- [data-popper-placement^='left'] .arrowWrapper {
218
- right: 0;
219
- margin-right: -10px;
216
+ [data-popper-placement^='left'] .arrowWrapper {
217
+ right: 0;
218
+ margin-right: -10px;
220
219
 
221
- .arrow {
222
- transform: rotate(270deg);
223
- }
220
+ .arrow {
221
+ transform: rotate(270deg);
224
222
  }
223
+ }
225
224
 
226
- [data-popper-placement^='right'] .arrowWrapper {
227
- left: 0;
228
- margin-left: -10px;
225
+ [data-popper-placement^='right'] .arrowWrapper {
226
+ left: 0;
227
+ margin-left: -10px;
229
228
 
230
- .arrow {
231
- transform: rotate(90deg);
232
- }
229
+ .arrow {
230
+ transform: rotate(90deg);
233
231
  }
232
+ }
234
233
 
235
- [data-popper-placement^='top'] .arrowWrapper {
236
- top: 100%;
237
- left: 50%;
238
- }
234
+ [data-popper-placement^='top'] .arrowWrapper {
235
+ top: 100%;
236
+ left: 50%;
237
+ }
239
238
 
240
- .large {
241
- width: auto;
242
- max-width: $large-width;
243
- }
239
+ .large {
240
+ width: auto;
241
+ max-width: $large-width;
242
+ }
244
243
 
245
- .singleLine {
246
- text-overflow: ellipsis;
247
- white-space: nowrap; /* white-space and overflow are required for text-overflow to do anything */
248
- overflow: hidden;
249
- }
250
- /* stylelint-enable no-descending-specificity */
244
+ .singleLine {
245
+ text-overflow: ellipsis;
246
+ white-space: nowrap; /* white-space and overflow are required for text-overflow to do anything */
247
+ overflow: hidden;
251
248
  }
249
+ /* stylelint-enable no-descending-specificity */
@@ -1,97 +1,95 @@
1
1
  @import '~@kaizen/design-tokens/sass/color';
2
2
  @import '~@kaizen/design-tokens/sass/spacing';
3
3
 
4
- @layer kz-components {
5
- $height: 10px;
6
-
7
- .subtext {
8
- color: $color-purple-800;
9
- padding-top: $spacing-6;
10
- text-align: center;
11
- opacity: 80%;
12
- }
4
+ $height: 10px;
13
5
 
14
- .progressBackground {
15
- width: 100%;
16
- background: $color-gray-300;
17
- border-radius: $height;
18
- height: $height;
19
- overflow: hidden;
20
- position: relative;
21
- }
6
+ .subtext {
7
+ color: $color-purple-800;
8
+ padding-top: $spacing-6;
9
+ text-align: center;
10
+ opacity: 80%;
11
+ }
22
12
 
23
- .progress {
24
- position: absolute;
25
- inset: 0;
26
- border-radius: $height;
27
- overflow: hidden;
28
- transition: transform 200ms ease;
29
- background-color: var(--progressbar-background-color);
30
- }
13
+ .progressBackground {
14
+ width: 100%;
15
+ background: $color-gray-300;
16
+ border-radius: $height;
17
+ height: $height;
18
+ overflow: hidden;
19
+ position: relative;
20
+ }
31
21
 
32
- // ------------------------------
33
- // Moods
34
- // @deprecated use colors instead
35
- // ------------------------------
36
- .positive {
37
- --progressbar-background-color: var(--color-green-400);
22
+ @keyframes pulse {
23
+ 0% {
24
+ transform: translateX(-100%);
38
25
  }
39
26
 
40
- .informative {
41
- --progressbar-background-color: var(--color-blue-400);
27
+ 100% {
28
+ transform: translateX(200%);
42
29
  }
30
+ }
43
31
 
44
- .cautionary {
45
- --progressbar-background-color: var(--color-yellow-400);
46
- }
32
+ .progress {
33
+ position: absolute;
34
+ inset: 0;
35
+ border-radius: $height;
36
+ overflow: hidden;
37
+ transition: transform 200ms ease;
38
+ background-color: var(--progressbar-background-color);
39
+ }
47
40
 
48
- .negative {
49
- --progressbar-background-color: var(--color-red-400);
50
- }
41
+ // ------------------------------
42
+ // Moods
43
+ // @deprecated use colors instead
44
+ // ------------------------------
45
+ .positive {
46
+ --progressbar-background-color: var(--color-green-400);
47
+ }
51
48
 
52
- // End deprecated styles
49
+ .informative {
50
+ --progressbar-background-color: var(--color-blue-400);
51
+ }
53
52
 
54
- // ------------------------------
55
- // Colors
56
- // ------------------------------
57
- .blue {
58
- --progressbar-background-color: var(--color-blue-400);
59
- }
53
+ .cautionary {
54
+ --progressbar-background-color: var(--color-yellow-400);
55
+ }
60
56
 
61
- .green {
62
- --progressbar-background-color: var(--color-green-400);
63
- }
57
+ .negative {
58
+ --progressbar-background-color: var(--color-red-400);
59
+ }
64
60
 
65
- .red {
66
- --progressbar-background-color: var(--color-red-400);
67
- }
61
+ // End deprecated styles
68
62
 
69
- .yellow {
70
- --progressbar-background-color: var(--color-yellow-400);
71
- }
63
+ // ------------------------------
64
+ // Colors
65
+ // ------------------------------
66
+ .blue {
67
+ --progressbar-background-color: var(--color-blue-400);
68
+ }
72
69
 
73
- .isAnimating {
74
- &::after {
75
- background: linear-gradient(90deg, transparent, var(--color-white) 75%, transparent);
76
- opacity: 25%;
77
- content: '';
78
- position: absolute;
79
- top: 0;
80
- bottom: 0;
81
- left: 0;
82
- width: 50%;
83
- animation: pulse 2s infinite;
84
- transition: opacity 0.2s;
85
- }
86
- }
70
+ .green {
71
+ --progressbar-background-color: var(--color-green-400);
87
72
  }
88
73
 
89
- @keyframes pulse {
90
- 0% {
91
- transform: translateX(-100%);
92
- }
74
+ .red {
75
+ --progressbar-background-color: var(--color-red-400);
76
+ }
93
77
 
94
- 100% {
95
- transform: translateX(200%);
78
+ .yellow {
79
+ --progressbar-background-color: var(--color-yellow-400);
80
+ }
81
+
82
+ .isAnimating {
83
+ &::after {
84
+ background: linear-gradient(90deg, transparent, var(--color-white) 75%, transparent);
85
+ opacity: 25%;
86
+ content: '';
87
+ position: absolute;
88
+ top: 0;
89
+ bottom: 0;
90
+ left: 0;
91
+ width: 50%;
92
+ animation: pulse 2s infinite;
93
+ transition: opacity 0.2s;
96
94
  }
97
95
  }
@@ -1,10 +1,8 @@
1
1
  @import '~@kaizen/design-tokens/sass/color';
2
2
  @import '~@kaizen/design-tokens/sass/spacing';
3
3
 
4
- @layer kz-components {
5
- .label {
6
- padding-bottom: $spacing-6;
7
- color: $color-purple-800;
8
- text-align: center;
9
- }
4
+ .label {
5
+ padding-bottom: $spacing-6;
6
+ color: $color-purple-800;
7
+ text-align: center;
10
8
  }