@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,119 +2,117 @@
2
2
  @import '~@kaizen/design-tokens/sass/border';
3
3
  @import '~@kaizen/design-tokens/sass/color';
4
4
 
5
- @layer kz-components {
6
- .button {
7
- border: none;
8
- background-color: $color-white;
9
- width: 3rem;
10
- height: 3rem;
11
- border-radius: $border-solid-border-radius;
12
- display: flex;
13
- align-items: center;
14
- justify-content: center;
15
- position: relative;
16
- transition: background-color $animation-duration-immediate;
17
-
18
- &:focus {
19
- outline: none;
20
- }
21
-
22
- &:focus-visible::after {
23
- $focus-ring-offset: 3px;
24
-
25
- content: '';
26
- position: absolute;
27
- background: transparent;
28
- border-radius: $border-focus-ring-border-radius;
29
- border-width: $border-focus-ring-border-width;
30
- border-style: $border-focus-ring-border-style;
31
- border-color: $color-blue-500;
32
- inset: calc(-1 * #{$focus-ring-offset});
33
- }
5
+ .button {
6
+ border: none;
7
+ background-color: $color-white;
8
+ width: 3rem;
9
+ height: 3rem;
10
+ border-radius: $border-solid-border-radius;
11
+ display: flex;
12
+ align-items: center;
13
+ justify-content: center;
14
+ position: relative;
15
+ transition: background-color $animation-duration-immediate;
16
+
17
+ &:focus {
18
+ outline: none;
34
19
  }
35
20
 
36
- .default {
37
- background-color: $color-white;
38
- color: $color-purple-800;
21
+ &:focus-visible::after {
22
+ $focus-ring-offset: 3px;
23
+
24
+ content: '';
25
+ position: absolute;
26
+ background: transparent;
27
+ border-radius: $border-focus-ring-border-radius;
28
+ border-width: $border-focus-ring-border-width;
29
+ border-style: $border-focus-ring-border-style;
30
+ border-color: $color-blue-500;
31
+ inset: calc(-1 * #{$focus-ring-offset});
32
+ }
33
+ }
39
34
 
40
- &:hover,
41
- &:focus-visible {
42
- background-color: $color-gray-200;
43
- }
35
+ .default {
36
+ background-color: $color-white;
37
+ color: $color-purple-800;
44
38
 
45
- &.active {
46
- background-color: $color-gray-300;
47
- color: $color-purple-800;
48
- }
39
+ &:hover,
40
+ &:focus-visible {
41
+ background-color: $color-gray-200;
49
42
  }
50
43
 
51
- .secondary {
52
- background-color: $color-white;
53
- color: $color-blue-500;
44
+ &.active {
45
+ background-color: $color-gray-300;
46
+ color: $color-purple-800;
47
+ }
48
+ }
54
49
 
55
- &:hover,
56
- &:focus-visible {
57
- background-color: $color-blue-100;
58
- }
50
+ .secondary {
51
+ background-color: $color-white;
52
+ color: $color-blue-500;
59
53
 
60
- &.active {
61
- background-color: $color-blue-200;
62
- }
54
+ &:hover,
55
+ &:focus-visible {
56
+ background-color: $color-blue-100;
63
57
  }
64
58
 
65
- .primary {
66
- background-color: $color-blue-500;
67
- color: $color-white;
59
+ &.active {
60
+ background-color: $color-blue-200;
61
+ }
62
+ }
68
63
 
69
- &:hover,
70
- &:focus-visible {
71
- background-color: $color-blue-600;
72
- }
64
+ .primary {
65
+ background-color: $color-blue-500;
66
+ color: $color-white;
73
67
 
74
- &.active {
75
- background-color: $color-blue-700;
76
- }
68
+ &:hover,
69
+ &:focus-visible {
70
+ background-color: $color-blue-600;
77
71
  }
78
72
 
79
- .destructive {
80
- background-color: $color-red-500;
81
- color: $color-white;
73
+ &.active {
74
+ background-color: $color-blue-700;
75
+ }
76
+ }
82
77
 
83
- &:hover,
84
- &:focus-visible {
85
- background-color: $color-red-600;
86
- }
78
+ .destructive {
79
+ background-color: $color-red-500;
80
+ color: $color-white;
87
81
 
88
- &.active {
89
- background-color: $color-red-700;
90
- }
82
+ &:hover,
83
+ &:focus-visible {
84
+ background-color: $color-red-600;
91
85
  }
92
86
 
93
- .secondary-destructive {
94
- background-color: $color-white;
95
- color: $color-red-600;
87
+ &.active {
88
+ background-color: $color-red-700;
89
+ }
90
+ }
96
91
 
97
- &:hover,
98
- &:focus-visible {
99
- background-color: $color-red-100;
100
- }
92
+ .secondary-destructive {
93
+ background-color: $color-white;
94
+ color: $color-red-600;
101
95
 
102
- &.active {
103
- background-color: $color-red-200;
104
- }
96
+ &:hover,
97
+ &:focus-visible {
98
+ background-color: $color-red-100;
105
99
  }
106
100
 
107
- .disabled {
108
- opacity: 30%;
109
- pointer-events: none;
110
-
111
- &:focus-visible::after {
112
- color: rgba($color-purple-800-rgb, 0.3);
113
- outline-offset: -2px;
114
- background-color: transparent;
115
- border-color: transparent;
116
- opacity: 100%;
117
- outline: $color-purple-800 $border-solid-border-style $border-focus-ring-border-width;
118
- }
101
+ &.active {
102
+ background-color: $color-red-200;
103
+ }
104
+ }
105
+
106
+ .disabled {
107
+ opacity: 30%;
108
+ pointer-events: none;
109
+
110
+ &:focus-visible::after {
111
+ color: rgba($color-purple-800-rgb, 0.3);
112
+ outline-offset: -2px;
113
+ background-color: transparent;
114
+ border-color: transparent;
115
+ opacity: 100%;
116
+ outline: $color-purple-800 $border-solid-border-style $border-focus-ring-border-width;
119
117
  }
120
118
  }
@@ -1,8 +1,6 @@
1
1
  @import '~@kaizen/design-tokens/sass/color';
2
2
 
3
- @layer kz-components {
4
- .toolbar {
5
- display: block;
6
- border-bottom: 2px solid $color-gray-500;
7
- }
3
+ .toolbar {
4
+ display: block;
5
+ border-bottom: 2px solid $color-gray-500;
8
6
  }
@@ -1,17 +1,15 @@
1
1
  @import '~@kaizen/design-tokens/sass/color';
2
2
  @import '~@kaizen/design-tokens/sass/spacing';
3
3
 
4
- @layer kz-components {
5
- .toolbarSection {
6
- display: inline-flex;
7
- align-items: center;
8
- gap: $spacing-xs;
9
- margin: $spacing-xs 0;
10
- padding: 0 $spacing-xs;
11
- flex-wrap: wrap;
12
- }
4
+ .toolbarSection {
5
+ display: inline-flex;
6
+ align-items: center;
7
+ gap: $spacing-xs;
8
+ margin: $spacing-xs 0;
9
+ padding: 0 $spacing-xs;
10
+ flex-wrap: wrap;
11
+ }
13
12
 
14
- .toolbarSection + .toolbarSection {
15
- border-inline-start: 1px solid rgba($color-gray-600-rgb, 0.1);
16
- }
13
+ .toolbarSection + .toolbarSection {
14
+ border-inline-start: 1px solid rgba($color-gray-600-rgb, 0.1);
17
15
  }
@@ -9,8 +9,7 @@
9
9
  line-height: $typography-paragraph-body-line-height;
10
10
  letter-spacing: $typography-paragraph-body-letter-spacing;
11
11
  position: relative;
12
- /* stylelint-disable-next-line declaration-no-important */
13
- white-space: pre-wrap !important; // Override unlayered TipTap styles from within kz-components layer
12
+ white-space: pre-wrap;
14
13
  box-sizing: content-box;
15
14
  color: $color-purple-800;
16
15
 
@@ -1,7 +1,5 @@
1
- @layer kz-components {
2
- .validationErrorMessage {
3
- ul {
4
- margin-bottom: 0;
5
- }
1
+ .validationErrorMessage {
2
+ ul {
3
+ margin-bottom: 0;
6
4
  }
7
5
  }
@@ -1,30 +1,28 @@
1
1
  @import '~@kaizen/design-tokens/sass/color';
2
2
  @import '~@kaizen/design-tokens/sass/spacing';
3
3
 
4
- @layer kz-components {
5
- .popoverContent {
6
- display: flex;
7
- align-items: center;
8
- justify-content: center;
9
- }
4
+ .popoverContent {
5
+ display: flex;
6
+ align-items: center;
7
+ justify-content: center;
8
+ }
10
9
 
11
- .popoverLinkContainer {
12
- padding-inline: $spacing-8 $spacing-12;
13
- }
10
+ .popoverLinkContainer {
11
+ padding-inline: $spacing-8 $spacing-12;
12
+ }
14
13
 
15
- .popoverLink {
16
- max-width: 300px;
17
- overflow: hidden;
18
- text-overflow: ellipsis;
19
- white-space: nowrap;
20
- }
14
+ .popoverLink {
15
+ max-width: 300px;
16
+ overflow: hidden;
17
+ text-overflow: ellipsis;
18
+ white-space: nowrap;
19
+ }
21
20
 
22
- .paragraphFlex {
23
- display: inline-flex;
24
- }
21
+ .paragraphFlex {
22
+ display: inline-flex;
23
+ }
25
24
 
26
- .popoverActions {
27
- padding-inline: $spacing-4 $spacing-4;
28
- border-left: 1px solid rgba($color-gray-600-rgb, 0.1);
29
- }
25
+ .popoverActions {
26
+ padding-inline: $spacing-4 $spacing-4;
27
+ border-left: 1px solid rgba($color-gray-600-rgb, 0.1);
30
28
  }
@@ -1,8 +1,8 @@
1
- import type { Mark, MarkSpec } from 'prosemirror-model'
1
+ import type { MarkSpec, Node } from 'prosemirror-model'
2
2
  import { marks as proseMarks } from 'prosemirror-schema-basic'
3
3
  import { validateLink } from '../plugins/LinkManager/validation'
4
4
 
5
- export const getMarks = (): Record<string, MarkSpec> => ({
5
+ export const getMarks = (): MarkSpec => ({
6
6
  ...proseMarks,
7
7
 
8
8
  // An underline mark. Rendered as a `<u>` element. Has parse rules that also
@@ -26,19 +26,18 @@ export const getMarks = (): Record<string, MarkSpec> => ({
26
26
  parseDOM: [
27
27
  {
28
28
  tag: 'a[href]',
29
- getAttrs(dom: HTMLElement) {
30
- const anchor = dom as HTMLAnchorElement
29
+ getAttrs(dom: HTMLAnchorElement) {
31
30
  return {
32
- href: getAttributeWithDefault(anchor, 'href'),
33
- target: getAttributeWithDefault(anchor, 'target'),
34
- rel: getAttributeWithDefault(anchor, 'rel'),
31
+ href: getAttributeWithDefault(dom, 'href'),
32
+ target: getAttributeWithDefault(dom, 'target'),
33
+ rel: getAttributeWithDefault(dom, 'rel'),
35
34
  _metadata: null,
36
35
  }
37
36
  },
38
37
  },
39
38
  ],
40
- toDOM(mark: Mark) {
41
- const { href, target, rel } = mark.attrs
39
+ toDOM(node: Node) {
40
+ const { href, target, rel } = node.attrs
42
41
  const validationStatus = validateLink(href)
43
42
 
44
43
  if (validationStatus.status === 'error') {
@@ -1,8 +1,6 @@
1
1
  @import '~@kaizen/design-tokens/sass/spacing';
2
2
 
3
- @layer kz-components {
4
- .label {
5
- display: block;
6
- margin-bottom: $spacing-xs; // @note: add gap between label and input
7
- }
3
+ .label {
4
+ display: block;
5
+ margin-bottom: $spacing-xs; // @note: add gap between label and input
8
6
  }
@@ -3,23 +3,6 @@
3
3
  @import '~@kaizen/design-tokens/sass/border';
4
4
  @import '~@kaizen/design-tokens/sass/color';
5
5
 
6
- /*
7
- NOTE: Select is NOT in @layer kz-components
8
-
9
- Because the styles in this module need to override the un-layered styles
10
- provided by react-select, we do not wrap them in @layer kz-components the way
11
- we do all other Kaizen components.
12
-
13
- This means that consuming apps will not be able to override these styles with
14
- Tailwind v4+ utility styles, which are generated in @layer utilities.
15
-
16
- If we ever need to get these styles into a layer, we may need to update our
17
- use of React Select to disable its styles and replace them with a layered
18
- version of our own, or perhaps use something like
19
- https://github.com/DefinedNet/postcss-assign-layer to assign the components
20
- layer to the React Select styles.
21
- */
22
-
23
6
  // Should match the values for the Input component
24
7
  $input-height: 48px;
25
8
  $input-placeholder-opacity: 0.7;
@@ -3,32 +3,30 @@
3
3
  $dt-color-background-color-default: $color-purple-600;
4
4
  $dt-color-background-color-education: $color-blue-100;
5
5
 
6
- @layer kz-components {
7
- .container {
8
- position: relative;
9
- }
6
+ .container {
7
+ position: relative;
8
+ }
10
9
 
11
- // Actual height is determined in JavaScript
12
- .underlay {
13
- box-sizing: content-box;
14
- position: absolute;
15
- z-index: 1;
16
- top: 0;
17
- left: 0;
18
- right: 0;
19
- height: 100%;
20
- }
10
+ // Actual height is determined in JavaScript
11
+ .underlay {
12
+ box-sizing: content-box;
13
+ position: absolute;
14
+ z-index: 1;
15
+ top: 0;
16
+ left: 0;
17
+ right: 0;
18
+ height: 100%;
19
+ }
21
20
 
22
- .defaultVariant {
23
- background-color: $dt-color-background-color-default;
24
- }
21
+ .defaultVariant {
22
+ background-color: $dt-color-background-color-default;
23
+ }
25
24
 
26
- .educationVariant {
27
- background-color: $dt-color-background-color-education;
28
- }
25
+ .educationVariant {
26
+ background-color: $dt-color-background-color-education;
27
+ }
29
28
 
30
- .content {
31
- position: relative;
32
- z-index: 2;
33
- }
29
+ .content {
30
+ position: relative;
31
+ z-index: 2;
34
32
  }
@@ -1,19 +1,17 @@
1
1
  @import '~@kaizen/design-tokens/sass/layout';
2
2
  @import '../../../Content/variables';
3
3
 
4
- @layer kz-components {
5
- .wrapper {
6
- @media (max-width: $layout-breakpoints-large) {
7
- margin-left: $content-margin-width-on-medium-and-small * -1;
8
- margin-right: $content-margin-width-on-medium-and-small * -1;
9
- border-bottom-left-radius: 0;
10
- border-bottom-right-radius: 0;
11
- }
4
+ .wrapper {
5
+ @media (max-width: $layout-breakpoints-large) {
6
+ margin-left: $content-margin-width-on-medium-and-small * -1;
7
+ margin-right: $content-margin-width-on-medium-and-small * -1;
8
+ border-bottom-left-radius: 0;
9
+ border-bottom-right-radius: 0;
10
+ }
12
11
 
13
- @media (max-width: $layout-breakpoints-medium) {
14
- border-radius: 0;
15
- margin-left: $content-margin-width-on-medium-and-small * -1;
16
- margin-right: $content-margin-width-on-medium-and-small * -1;
17
- }
12
+ @media (max-width: $layout-breakpoints-medium) {
13
+ border-radius: 0;
14
+ margin-left: $content-margin-width-on-medium-and-small * -1;
15
+ margin-right: $content-margin-width-on-medium-and-small * -1;
18
16
  }
19
17
  }
@@ -2,47 +2,45 @@
2
2
  @import '~@kaizen/design-tokens/sass/spacing';
3
3
  @import '~@kaizen/design-tokens/sass/layout';
4
4
 
5
- @layer kz-components {
6
- .wrapper {
7
- display: flex;
8
- flex-direction: column;
9
- }
5
+ .wrapper {
6
+ display: flex;
7
+ flex-direction: column;
8
+ }
10
9
 
11
- .labelWrapper {
12
- margin-bottom: $spacing-sm;
13
- }
10
+ .labelWrapper {
11
+ margin-bottom: $spacing-sm;
12
+ }
14
13
 
15
- .label {
16
- margin-bottom: $spacing-4;
17
- }
14
+ .label {
15
+ margin-bottom: $spacing-4;
16
+ }
18
17
 
19
- @media (min-width: $layout-breakpoints-medium) {
20
- .labelInline {
21
- &.wrapper {
22
- align-items: center;
23
- flex-direction: row;
24
- }
18
+ @media (min-width: $layout-breakpoints-medium) {
19
+ .labelInline {
20
+ &.wrapper {
21
+ align-items: center;
22
+ flex-direction: row;
23
+ }
25
24
 
26
- .labelWrapper {
27
- flex: 1;
28
- }
25
+ .labelWrapper {
26
+ flex: 1;
27
+ }
29
28
 
30
- .inputWrapper {
31
- flex-basis: 50%;
32
- }
29
+ .inputWrapper {
30
+ flex-basis: 50%;
33
31
  }
34
32
  }
33
+ }
35
34
 
36
- .descriptionDisabled {
37
- opacity: 30%;
38
- }
35
+ .descriptionDisabled {
36
+ opacity: 30%;
37
+ }
39
38
 
40
- .readOnlyMessage {
41
- text-align: center;
42
- font-family: $typography-paragraph-small-font-family;
43
- font-size: $typography-paragraph-small-font-size;
44
- font-weight: $typography-paragraph-bold-font-weight;
45
- line-height: $typography-paragraph-body-line-height;
46
- letter-spacing: $typography-paragraph-body-letter-spacing;
47
- }
39
+ .readOnlyMessage {
40
+ text-align: center;
41
+ font-family: $typography-paragraph-small-font-family;
42
+ font-size: $typography-paragraph-small-font-size;
43
+ font-weight: $typography-paragraph-bold-font-weight;
44
+ line-height: $typography-paragraph-body-line-height;
45
+ letter-spacing: $typography-paragraph-body-letter-spacing;
48
46
  }
@@ -1,6 +1,4 @@
1
- @layer kz-components {
2
- .splitButton {
3
- display: inline-flex;
4
- align-items: center;
5
- }
1
+ .splitButton {
2
+ display: inline-flex;
3
+ align-items: center;
6
4
  }
@@ -1,10 +1,8 @@
1
1
  @import '~@kaizen/design-tokens/sass/border';
2
2
 
3
- @layer kz-components {
4
- .actionButton {
5
- border-start-start-radius: $border-solid-border-radius;
6
- border-end-start-radius: $border-solid-border-radius;
7
- border-start-end-radius: 0;
8
- border-end-end-radius: 0;
9
- }
3
+ .actionButton {
4
+ border-start-start-radius: $border-solid-border-radius;
5
+ border-end-start-radius: $border-solid-border-radius;
6
+ border-start-end-radius: 0;
7
+ border-end-end-radius: 0;
10
8
  }