@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
@@ -17,348 +17,346 @@ $notification-collapse-height-delayed:
17
17
  $notification-pop-up: transform 200ms ease-out;
18
18
  $notification-slide-right: transform 300ms ease-out;
19
19
 
20
- @layer kz-components {
21
- %ca-notification {
20
+ %ca-notification {
21
+ display: flex;
22
+ box-sizing: border-box;
23
+ pointer-events: all;
24
+
25
+ &:focus {
26
+ outline-offset: 1px;
27
+ outline: 2px solid var(--color-blue-500);
28
+ }
29
+
30
+ // Variants
31
+ &%ca-notification---inline,
32
+ &%ca-notification---toast {
33
+ margin-bottom: $spacing-24;
34
+ border-width: $border-width;
35
+ border-style: solid;
36
+ border-radius: $border-solid-border-radius;
37
+ }
38
+
39
+ &%ca-notification---inline {
40
+ width: auto;
41
+ min-height: 46px;
42
+ padding: $notification-vertical-padding $spacing-12;
43
+ transition: $notification-fade-out, $notification-pop-up, $notification-collapse-height;
44
+ }
45
+
46
+ &%ca-notification---toast {
47
+ container-type: inline-size;
48
+ width: 25rem;
49
+ box-shadow: $shadow-small-box-shadow;
50
+ max-width: 100%;
51
+ padding: $notification-vertical-padding 10px;
52
+ transition:
53
+ $notification-fade-out, $notification-slide-right, $notification-collapse-height-delayed;
54
+ will-change: transform;
55
+ }
56
+
57
+ &%ca-notification---global {
58
+ width: 100%;
22
59
  display: flex;
23
- box-sizing: border-box;
24
- pointer-events: all;
60
+ align-items: center;
61
+ border-width: 0;
62
+ border-radius: 0;
63
+ margin-bottom: 0;
64
+ padding-top: var(--spacing-16);
65
+ padding-bottom: var(--spacing-16);
66
+ padding-inline-start: var(--spacing-8);
67
+ transition: $notification-collapse-height;
68
+ position: relative;
69
+ z-index: 1030;
70
+ }
25
71
 
26
- &:focus {
27
- outline-offset: 1px;
28
- outline: 2px solid var(--color-blue-500);
29
- }
72
+ // Types
73
+ &%ca-notification---positive {
74
+ background: $color-green-100;
75
+ border-color: var(--color-green-500);
76
+ color: $color-purple-800;
77
+ }
30
78
 
31
- // Variants
32
- &%ca-notification---inline,
33
- &%ca-notification---toast {
34
- margin-bottom: $spacing-24;
35
- border-width: $border-width;
36
- border-style: solid;
37
- border-radius: $border-solid-border-radius;
38
- }
79
+ &%ca-notification---informative {
80
+ background: $color-blue-100;
81
+ border-color: var(--color-blue-400);
82
+ color: $color-purple-800;
83
+ }
39
84
 
40
- &%ca-notification---inline {
41
- width: auto;
42
- min-height: 46px;
43
- padding: $notification-vertical-padding $spacing-12;
44
- transition: $notification-fade-out, $notification-pop-up, $notification-collapse-height;
45
- }
85
+ &%ca-notification---cautionary {
86
+ background: $color-yellow-100;
87
+ border-color: var(--color-yellow-700);
88
+ color: $color-purple-800;
89
+ }
46
90
 
47
- &%ca-notification---toast {
48
- container-type: inline-size;
49
- width: 25rem;
50
- box-shadow: $shadow-small-box-shadow;
51
- max-width: 100%;
52
- padding: $notification-vertical-padding 10px;
53
- transition:
54
- $notification-fade-out, $notification-slide-right, $notification-collapse-height-delayed;
55
- will-change: transform;
56
- }
91
+ &%ca-notification---negative {
92
+ background: $color-red-100;
93
+ border-color: var(--color-red-500);
94
+ color: $color-purple-800;
95
+ }
96
+
97
+ // Hidden state
98
+ &%ca-notification---hidden {
99
+ opacity: 0%;
57
100
 
101
+ &%ca-notification---inline,
58
102
  &%ca-notification---global {
59
- width: 100%;
60
- display: flex;
61
- align-items: center;
62
- border-width: 0;
63
- border-radius: 0;
64
103
  margin-bottom: 0;
65
- padding-top: var(--spacing-16);
66
- padding-bottom: var(--spacing-16);
67
- padding-inline-start: var(--spacing-8);
68
- transition: $notification-collapse-height;
69
- position: relative;
70
- z-index: 1030;
71
- }
72
-
73
- // Types
74
- &%ca-notification---positive {
75
- background: $color-green-100;
76
- border-color: var(--color-green-500);
77
- color: $color-purple-800;
78
104
  }
79
105
 
80
- &%ca-notification---informative {
81
- background: $color-blue-100;
82
- border-color: var(--color-blue-400);
83
- color: $color-purple-800;
84
- }
85
-
86
- &%ca-notification---cautionary {
87
- background: $color-yellow-100;
88
- border-color: var(--color-yellow-700);
89
- color: $color-purple-800;
106
+ &%ca-notification---inline {
107
+ // When entering we use "ease-out", but when transitioning to hidden we want to use "ease-in".
108
+ // We want it moving the fastest when it is the furthest off screen.
109
+ transition-timing-function: ease-in;
110
+ transform: translateY(-50%);
90
111
  }
91
112
 
92
- &%ca-notification---negative {
93
- background: $color-red-100;
94
- border-color: var(--color-red-500);
95
- color: $color-purple-800;
113
+ &%ca-notification---toast {
114
+ // When entering we use "ease-out", but when transitioning to hidden we want to use "ease-in".
115
+ // We want it moving the fastest when it is the furthest off screen.
116
+ transition-timing-function: ease-in;
117
+ transform: translateX(50%);
96
118
  }
97
119
 
98
- // Hidden state
99
- &%ca-notification---hidden {
100
- opacity: 0%;
101
-
102
- &%ca-notification---inline,
103
- &%ca-notification---global {
104
- margin-bottom: 0;
105
- }
106
-
107
- &%ca-notification---inline {
108
- // When entering we use "ease-out", but when transitioning to hidden we want to use "ease-in".
109
- // We want it moving the fastest when it is the furthest off screen.
110
- transition-timing-function: ease-in;
111
- transform: translateY(-50%);
112
- }
113
-
114
- &%ca-notification---toast {
115
- // When entering we use "ease-out", but when transitioning to hidden we want to use "ease-in".
116
- // We want it moving the fastest when it is the furthest off screen.
117
- transition-timing-function: ease-in;
118
- transform: translateX(50%);
119
- }
120
-
121
- &%ca-notification---global {
122
- z-index: 1029;
123
- opacity: 100%;
124
- }
120
+ &%ca-notification---global {
121
+ z-index: 1029;
122
+ opacity: 100%;
125
123
  }
124
+ }
126
125
 
127
- // Modifiers
128
- &%ca-notification---noBottomMargin {
129
- margin-bottom: 0;
130
- }
126
+ // Modifiers
127
+ &%ca-notification---noBottomMargin {
128
+ margin-bottom: 0;
129
+ }
131
130
 
132
- &%ca-notification---persistent {
133
- transition: none;
134
- }
131
+ &%ca-notification---persistent {
132
+ transition: none;
133
+ }
135
134
 
136
- // this is only for inline notifications
137
- &%ca-notification---subtle {
138
- background: none;
139
- border: none;
140
- padding: 0;
141
- }
135
+ // this is only for inline notifications
136
+ &%ca-notification---subtle {
137
+ background: none;
138
+ border: none;
139
+ padding: 0;
142
140
  }
141
+ }
143
142
 
144
- %ca-notification__icon {
145
- align-items: flex-start;
146
- box-sizing: content-box;
143
+ %ca-notification__icon {
144
+ align-items: flex-start;
145
+ box-sizing: content-box;
147
146
 
148
- %ca-notification---positive & {
149
- color: $color-green-500;
150
- }
147
+ %ca-notification---positive & {
148
+ color: $color-green-500;
149
+ }
151
150
 
152
- %ca-notification---informative & {
153
- color: $color-blue-500;
154
- }
151
+ %ca-notification---informative & {
152
+ color: $color-blue-500;
153
+ }
155
154
 
156
- %ca-notification---cautionary & {
157
- color: var(--color-yellow-700);
158
- }
155
+ %ca-notification---cautionary & {
156
+ color: var(--color-yellow-700);
157
+ }
159
158
 
160
- %ca-notification---negative & {
161
- color: $color-red-500;
162
- }
159
+ %ca-notification---negative & {
160
+ color: $color-red-500;
161
+ }
163
162
 
164
- %ca-notification---inline &,
165
- %ca-notification---toast & {
166
- width: 22px;
167
- height: 22px;
168
- font-size: 22px;
169
- margin-top: $spacing-6;
170
- }
163
+ %ca-notification---inline &,
164
+ %ca-notification---toast & {
165
+ width: 22px;
166
+ height: 22px;
167
+ font-size: 22px;
168
+ margin-top: $spacing-6;
169
+ }
171
170
 
172
- %ca-notification---global & {
173
- width: 24px;
174
- height: 24px;
175
- font-size: 24px;
176
- }
171
+ %ca-notification---global & {
172
+ width: 24px;
173
+ height: 24px;
174
+ font-size: 24px;
177
175
  }
176
+ }
178
177
 
179
- %ca-notification__text-container {
180
- box-sizing: content-box;
181
- display: flex;
182
- flex-flow: row wrap;
183
- flex: 1 0 0;
178
+ %ca-notification__text-container {
179
+ box-sizing: content-box;
180
+ display: flex;
181
+ flex-flow: row wrap;
182
+ flex: 1 0 0;
184
183
 
185
- %ca-notification---inline &,
186
- %ca-notification---toast & {
187
- margin-inline-start: $spacing-6;
188
- }
184
+ %ca-notification---inline &,
185
+ %ca-notification---toast & {
186
+ margin-inline-start: $spacing-6;
187
+ }
189
188
 
190
- %ca-notification---toast & {
191
- margin-inline-start: $spacing-6;
192
- max-width: calc(100% - #{$spacing-48});
193
- overflow-wrap: break-word;
194
- hyphens: auto;
195
- }
189
+ %ca-notification---toast & {
190
+ margin-inline-start: $spacing-6;
191
+ max-width: calc(100% - #{$spacing-48});
192
+ overflow-wrap: break-word;
193
+ hyphens: auto;
194
+ }
196
195
 
197
- %ca-notification---global & {
198
- margin-inline-start: var(--spacing-8);
199
- }
196
+ %ca-notification---global & {
197
+ margin-inline-start: var(--spacing-8);
198
+ }
200
199
 
201
- %ca-notification---inline & {
202
- // Inline notifications often fade onto a white background.
203
- // Fading the higher-contrast text out at, as well as the whole container, makes for a smoother animation.
204
- transition: $notification-fade-out;
205
- }
200
+ %ca-notification---inline & {
201
+ // Inline notifications often fade onto a white background.
202
+ // Fading the higher-contrast text out at, as well as the whole container, makes for a smoother animation.
203
+ transition: $notification-fade-out;
204
+ }
206
205
 
207
- &%ca-notification---forceMultiline {
208
- flex-direction: column;
209
- }
206
+ &%ca-notification---forceMultiline {
207
+ flex-direction: column;
210
208
  }
209
+ }
211
210
 
212
- %ca-notification__title {
213
- position: relative;
214
- font-family: $typography-heading-6-font-family;
215
- font-weight: $typography-heading-6-font-weight;
216
- font-size: $typography-heading-6-font-size;
217
- line-height: $typography-heading-6-line-height;
218
- letter-spacing: $typography-heading-6-letter-spacing;
219
- margin: 0;
220
- padding-right: 6px;
221
- // overriding Bootstrap style that changes h6s to text-transform: uppercase
222
- text-transform: none;
223
- color: inherit;
224
- top: 0.37em;
225
- }
226
-
227
- %ca-notification__text {
211
+ %ca-notification__title {
212
+ position: relative;
213
+ font-family: $typography-heading-6-font-family;
214
+ font-weight: $typography-heading-6-font-weight;
215
+ font-size: $typography-heading-6-font-size;
216
+ line-height: $typography-heading-6-line-height;
217
+ letter-spacing: $typography-heading-6-letter-spacing;
218
+ margin: 0;
219
+ padding-right: 6px;
220
+ // overriding Bootstrap style that changes h6s to text-transform: uppercase
221
+ text-transform: none;
222
+ color: inherit;
223
+ top: 0.37em;
224
+ }
225
+
226
+ %ca-notification__text {
227
+ position: relative;
228
+ font-family: $typography-paragraph-small-font-family;
229
+ font-weight: $typography-paragraph-small-font-weight;
230
+ font-size: $typography-paragraph-small-font-size;
231
+ line-height: $typography-paragraph-small-line-height;
232
+ letter-spacing: $typography-paragraph-small-letter-spacing;
233
+ margin: 0;
234
+ color: inherit;
235
+
236
+ %ca-notification---inline &,
237
+ %ca-notification---toast & {
228
238
  position: relative;
229
239
  font-family: $typography-paragraph-small-font-family;
230
240
  font-weight: $typography-paragraph-small-font-weight;
231
241
  font-size: $typography-paragraph-small-font-size;
232
242
  line-height: $typography-paragraph-small-line-height;
233
243
  letter-spacing: $typography-paragraph-small-letter-spacing;
234
- margin: 0;
235
- color: inherit;
236
-
237
- %ca-notification---inline &,
238
- %ca-notification---toast & {
239
- position: relative;
240
- font-family: $typography-paragraph-small-font-family;
241
- font-weight: $typography-paragraph-small-font-weight;
242
- font-size: $typography-paragraph-small-font-size;
243
- line-height: $typography-paragraph-small-line-height;
244
- letter-spacing: $typography-paragraph-small-letter-spacing;
245
- // When the title and text are on different lines this ensures the baselines of the first lines are exactly 1 grid unit apart.
246
- // When they are both on a single line it ensures both are 1 grid unit tall.
247
- margin-top: $spacing-6;
248
- flex: 0 1 auto;
249
- padding-bottom: $spacing-12;
250
- top: 0.21em;
251
- }
252
- %ca-notification---toast & {
253
- width: 100%;
254
- }
244
+ // When the title and text are on different lines this ensures the baselines of the first lines are exactly 1 grid unit apart.
245
+ // When they are both on a single line it ensures both are 1 grid unit tall.
246
+ margin-top: $spacing-6;
247
+ flex: 0 1 auto;
248
+ padding-bottom: $spacing-12;
249
+ top: 0.21em;
250
+ }
251
+ %ca-notification---toast & {
252
+ width: 100%;
253
+ }
255
254
 
256
- %ca-notification---global & {
257
- // Inherit baseline because the parent selector doesn't.
258
- position: static;
259
- font-weight: $typography-paragraph-body-font-weight;
260
- font-size: $typography-paragraph-body-font-size;
261
- line-height: $typography-paragraph-body-line-height;
262
- letter-spacing: $typography-paragraph-body-letter-spacing;
263
- }
255
+ %ca-notification---global & {
256
+ // Inherit baseline because the parent selector doesn't.
257
+ position: static;
258
+ font-weight: $typography-paragraph-body-font-weight;
259
+ font-size: $typography-paragraph-body-font-size;
260
+ line-height: $typography-paragraph-body-line-height;
261
+ letter-spacing: $typography-paragraph-body-letter-spacing;
262
+ }
264
263
 
265
- a[href] {
266
- color: $color-blue-500;
267
- text-decoration: underline;
264
+ a[href] {
265
+ color: $color-blue-500;
266
+ text-decoration: underline;
268
267
 
269
- &:hover {
270
- color: $color-blue-500;
271
- text-decoration: none;
272
- }
268
+ &:hover {
269
+ color: $color-blue-500;
270
+ text-decoration: none;
273
271
  }
272
+ }
274
273
 
275
- strong {
276
- font-weight: $typography-button-secondary-font-weight;
277
- }
274
+ strong {
275
+ font-weight: $typography-button-secondary-font-weight;
276
+ }
278
277
 
279
- p {
280
- font-weight: inherit;
281
- }
278
+ p {
279
+ font-weight: inherit;
282
280
  }
281
+ }
283
282
 
284
- %ca-notification__cancel {
285
- cursor: pointer;
286
- appearance: none;
287
- transition: none;
288
- transform: none;
289
- margin: 0;
290
- padding: 0;
291
- border: none;
292
- background: transparent;
293
- font: inherit;
294
- color: $color-purple-800;
283
+ %ca-notification__cancel {
284
+ cursor: pointer;
285
+ appearance: none;
286
+ transition: none;
287
+ transform: none;
288
+ margin: 0;
289
+ padding: 0;
290
+ border: none;
291
+ background: transparent;
292
+ font: inherit;
293
+ color: $color-purple-800;
294
+
295
+ .icon {
296
+ opacity: 70%;
297
+ transition: $animation-duration-fast opacity;
298
+ }
295
299
 
300
+ &:disabled,
301
+ &.disabled {
296
302
  .icon {
297
- opacity: 70%;
298
- transition: $animation-duration-fast opacity;
303
+ opacity: 30%;
299
304
  }
305
+ }
300
306
 
301
- &:disabled,
302
- &.disabled {
307
+ &:not(:disabled, .disabled) {
308
+ &:hover,
309
+ &:focus,
310
+ &.hover {
303
311
  .icon {
304
- opacity: 30%;
312
+ opacity: 100%;
305
313
  }
306
314
  }
307
315
 
308
- &:not(:disabled, .disabled) {
309
- &:hover,
310
- &:focus,
311
- &.hover {
312
- .icon {
313
- opacity: 100%;
314
- }
315
- }
316
-
317
- &:active,
318
- &.active {
319
- .icon {
320
- opacity: 100%;
321
- }
316
+ &:active,
317
+ &.active {
318
+ .icon {
319
+ opacity: 100%;
322
320
  }
323
321
  }
322
+ }
324
323
 
325
- &:active {
326
- transform: translateY(1px);
327
- }
328
-
329
- // The negative margins below are so that our clickable area will overlap the notification padding
330
- %ca-notification---inline &,
331
- %ca-notification---toast & {
332
- width: var(--spacing-48);
333
- height: var(--spacing-48);
334
- margin-top: calc(-1 * var(--spacing-6));
335
- margin-bottom: calc(-1 * var(--spacing-6));
336
- }
324
+ &:active {
325
+ transform: translateY(1px);
326
+ }
337
327
 
338
- %ca-notification---inline & {
339
- margin-inline-end: calc(-1 * var(--spacing-12));
340
- }
328
+ // The negative margins below are so that our clickable area will overlap the notification padding
329
+ %ca-notification---inline &,
330
+ %ca-notification---toast & {
331
+ width: var(--spacing-48);
332
+ height: var(--spacing-48);
333
+ margin-top: calc(-1 * var(--spacing-6));
334
+ margin-bottom: calc(-1 * var(--spacing-6));
335
+ }
341
336
 
342
- %ca-notification---toast & {
343
- margin-inline-end: -10px;
344
- }
337
+ %ca-notification---inline & {
338
+ margin-inline-end: calc(-1 * var(--spacing-12));
339
+ }
345
340
 
346
- %ca-notification---global & {
347
- width: var(--spacing-48);
348
- height: var(--spacing-48);
349
- margin-top: calc(-1 * var(--spacing-24));
350
- margin-bottom: calc(-1 * var(--spacing-24));
351
- }
341
+ %ca-notification---toast & {
342
+ margin-inline-end: -10px;
352
343
  }
353
344
 
354
- %ca-notification__cancel__label {
355
- position: absolute;
356
- width: 1px;
357
- height: 1px;
358
- padding: 0;
359
- margin: -1px;
360
- overflow: hidden;
361
- clip: rect(0, 0, 0, 0);
362
- border: 0;
345
+ %ca-notification---global & {
346
+ width: var(--spacing-48);
347
+ height: var(--spacing-48);
348
+ margin-top: calc(-1 * var(--spacing-24));
349
+ margin-bottom: calc(-1 * var(--spacing-24));
363
350
  }
364
351
  }
352
+
353
+ %ca-notification__cancel__label {
354
+ position: absolute;
355
+ width: 1px;
356
+ height: 1px;
357
+ padding: 0;
358
+ margin: -1px;
359
+ overflow: hidden;
360
+ clip: rect(0, 0, 0, 0);
361
+ border: 0;
362
+ }
@@ -1,5 +1,3 @@
1
- @layer kz-components {
2
- .notificationIcon {
3
- font-size: inherit;
4
- }
1
+ .notificationIcon {
2
+ font-size: inherit;
5
3
  }