@kaizen/components 1.66.0 → 1.67.0

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 (274) hide show
  1. package/codemods/README.md +5 -0
  2. package/codemods/upgradeIconV1/getNewIconPropsFromOldIconName.ts +255 -0
  3. package/codemods/upgradeIconV1/index.ts +33 -0
  4. package/codemods/upgradeIconV1/transformCaMonogramIconToBrand.spec.ts +83 -0
  5. package/codemods/upgradeIconV1/transformCaMonogramIconToBrand.ts +53 -0
  6. package/codemods/upgradeIconV1/transformIcon.spec.ts +181 -0
  7. package/codemods/upgradeIconV1/transformIcon.ts +115 -0
  8. package/codemods/upgradeIconV1/transformSpinnerIconToLoadingSpinner.spec.ts +81 -0
  9. package/codemods/upgradeIconV1/transformSpinnerIconToLoadingSpinner.ts +41 -0
  10. package/codemods/upgradeIconV1/upgradeIconV1.spec.ts +306 -0
  11. package/codemods/upgradeIconV1/upgradeIconV1.ts +94 -0
  12. package/codemods/utils/createProp.spec.ts +83 -0
  13. package/codemods/utils/createProp.ts +51 -0
  14. package/codemods/utils/getKaioTagName.spec.ts +85 -0
  15. package/codemods/utils/getKaioTagName.ts +129 -0
  16. package/codemods/utils/index.ts +3 -1
  17. package/codemods/utils/transformComponentsInDir.ts +32 -16
  18. package/codemods/utils/transformSource.ts +10 -5
  19. package/codemods/utils/updateJsxElementWithNewProps.ts +4 -3
  20. package/codemods/utils/updateKaioImports.spec.ts +223 -0
  21. package/codemods/utils/updateKaioImports.ts +233 -0
  22. package/dist/cjs/Avatar/Avatar.cjs +16 -13
  23. package/dist/cjs/Calendar/CalendarRange/CalendarRange.cjs +9 -7
  24. package/dist/cjs/Calendar/CalendarSingle/CalendarSingle.cjs +9 -7
  25. package/dist/cjs/Calendar/LegacyCalendarRange/LegacyCalendarRange.cjs +9 -7
  26. package/dist/cjs/Checkbox/Checkbox/Checkbox.cjs +5 -11
  27. package/dist/cjs/ClearButton/ClearButton.cjs +5 -4
  28. package/dist/cjs/Collapsible/Collapsible/Collapsible.cjs +4 -7
  29. package/dist/cjs/DateInput/DateInputWithIconButton/DateInputWithIconButton.cjs +5 -4
  30. package/dist/cjs/DateRangePicker/DateRangePicker.cjs +5 -4
  31. package/dist/cjs/ErrorPage/ErrorPage.cjs +9 -7
  32. package/dist/cjs/FieldMessage/FieldMessage.cjs +5 -11
  33. package/dist/cjs/Filter/FilterBar/subcomponents/AddFiltersMenu/AddFiltersMenu.cjs +4 -5
  34. package/dist/cjs/Filter/FilterButton/FilterButton/FilterButton.cjs +4 -7
  35. package/dist/cjs/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.cjs +5 -5
  36. package/dist/cjs/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.cjs +4 -4
  37. package/dist/cjs/GuidanceBlock/GuidanceBlock.cjs +5 -4
  38. package/dist/cjs/Illustration/utils/usePausePlay.cjs +5 -8
  39. package/dist/cjs/Input/InputSearch/InputSearch.cjs +4 -3
  40. package/dist/cjs/LikertScaleLegacy/LikertScaleLegacy.cjs +5 -6
  41. package/dist/cjs/Modal/ConfirmationModal/ConfirmationModal.cjs +31 -26
  42. package/dist/cjs/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.cjs +4 -5
  43. package/dist/cjs/MultiSelect/subcomponents/Checkbox/Checkbox.cjs +7 -17
  44. package/dist/cjs/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.cjs +4 -7
  45. package/dist/cjs/Notification/subcomponents/CancelButton/CancelButton.cjs +4 -3
  46. package/dist/cjs/Notification/subcomponents/NotificationIcon/NotificationIcon.cjs +33 -38
  47. package/dist/cjs/Notification/subcomponents/NotificationIcon/NotificationIcon.module.css.cjs +6 -0
  48. package/dist/cjs/Pagination/subcomponents/DirectionalLink/DirectionalLink.cjs +11 -19
  49. package/dist/cjs/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.cjs +4 -5
  50. package/dist/cjs/Popover/Popover.cjs +5 -4
  51. package/dist/cjs/Popover/utils/classMappers.cjs +21 -16
  52. package/dist/cjs/RichTextEditor/RichTextEditor/utils/controlmap.cjs +29 -25
  53. package/dist/cjs/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/LinkPopover.cjs +10 -12
  54. package/dist/cjs/Select/Select.cjs +8 -10
  55. package/dist/cjs/SplitButton/subcomponents/DropdownButton/DropdownButton.cjs +4 -4
  56. package/dist/cjs/Table/Table.cjs +11 -10
  57. package/dist/cjs/Tag/Tag.cjs +21 -17
  58. package/dist/cjs/TextField/TextField.cjs +5 -4
  59. package/dist/cjs/Tile/subcomponents/GenericTile/GenericTile.cjs +8 -7
  60. package/dist/cjs/TitleBlockZen/TitleBlockZen.cjs +9 -12
  61. package/dist/cjs/TitleBlockZen/subcomponents/MainActions.cjs +7 -7
  62. package/dist/cjs/TitleBlockZen/subcomponents/MobileActions.cjs +10 -15
  63. package/dist/cjs/TitleBlockZen/subcomponents/SecondaryActions.cjs +7 -7
  64. package/dist/cjs/ToggleSwitch/ToggleSwitch/ToggleSwitch.cjs +5 -5
  65. package/dist/cjs/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.cjs +13 -18
  66. package/dist/cjs/__future__/Icon/Icon.cjs +47 -0
  67. package/dist/cjs/__future__/Icon/Icon.module.css.cjs +10 -0
  68. package/dist/cjs/__future__/Icon/constants.cjs +8 -0
  69. package/dist/cjs/__future__/Select/subcomponents/Option/Option.cjs +4 -5
  70. package/dist/cjs/__future__/Select/subcomponents/SelectToggle/SelectToggle.cjs +5 -9
  71. package/dist/cjs/__future__/Tag/RemovableTag/subcomponents/RemoveButton.cjs +4 -3
  72. package/dist/cjs/future.cjs +2 -0
  73. package/dist/esm/Avatar/Avatar.mjs +16 -13
  74. package/dist/esm/Calendar/CalendarRange/CalendarRange.mjs +9 -7
  75. package/dist/esm/Calendar/CalendarSingle/CalendarSingle.mjs +9 -7
  76. package/dist/esm/Calendar/LegacyCalendarRange/LegacyCalendarRange.mjs +9 -7
  77. package/dist/esm/Checkbox/Checkbox/Checkbox.mjs +5 -11
  78. package/dist/esm/ClearButton/ClearButton.mjs +5 -4
  79. package/dist/esm/Collapsible/Collapsible/Collapsible.mjs +5 -8
  80. package/dist/esm/DateInput/DateInputWithIconButton/DateInputWithIconButton.mjs +5 -4
  81. package/dist/esm/DateRangePicker/DateRangePicker.mjs +5 -4
  82. package/dist/esm/ErrorPage/ErrorPage.mjs +10 -8
  83. package/dist/esm/FieldMessage/FieldMessage.mjs +6 -12
  84. package/dist/esm/Filter/FilterBar/subcomponents/AddFiltersMenu/AddFiltersMenu.mjs +4 -5
  85. package/dist/esm/Filter/FilterButton/FilterButton/FilterButton.mjs +5 -8
  86. package/dist/esm/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.mjs +5 -5
  87. package/dist/esm/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.mjs +4 -4
  88. package/dist/esm/GuidanceBlock/GuidanceBlock.mjs +5 -4
  89. package/dist/esm/Illustration/utils/usePausePlay.mjs +5 -8
  90. package/dist/esm/Input/InputSearch/InputSearch.mjs +4 -3
  91. package/dist/esm/LikertScaleLegacy/LikertScaleLegacy.mjs +5 -6
  92. package/dist/esm/Modal/ConfirmationModal/ConfirmationModal.mjs +31 -26
  93. package/dist/esm/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.mjs +4 -5
  94. package/dist/esm/MultiSelect/subcomponents/Checkbox/Checkbox.mjs +7 -17
  95. package/dist/esm/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.mjs +5 -8
  96. package/dist/esm/Notification/subcomponents/CancelButton/CancelButton.mjs +4 -3
  97. package/dist/esm/Notification/subcomponents/NotificationIcon/NotificationIcon.mjs +33 -38
  98. package/dist/esm/Notification/subcomponents/NotificationIcon/NotificationIcon.module.css.mjs +4 -0
  99. package/dist/esm/Pagination/subcomponents/DirectionalLink/DirectionalLink.mjs +11 -19
  100. package/dist/esm/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.mjs +4 -5
  101. package/dist/esm/Popover/Popover.mjs +5 -4
  102. package/dist/esm/Popover/utils/classMappers.mjs +21 -16
  103. package/dist/esm/RichTextEditor/RichTextEditor/utils/controlmap.mjs +33 -29
  104. package/dist/esm/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/LinkPopover.mjs +10 -12
  105. package/dist/esm/Select/Select.mjs +9 -11
  106. package/dist/esm/SplitButton/subcomponents/DropdownButton/DropdownButton.mjs +4 -4
  107. package/dist/esm/Table/Table.mjs +11 -10
  108. package/dist/esm/Tag/Tag.mjs +21 -17
  109. package/dist/esm/TextField/TextField.mjs +5 -4
  110. package/dist/esm/Tile/subcomponents/GenericTile/GenericTile.mjs +8 -7
  111. package/dist/esm/TitleBlockZen/TitleBlockZen.mjs +9 -12
  112. package/dist/esm/TitleBlockZen/subcomponents/MainActions.mjs +7 -7
  113. package/dist/esm/TitleBlockZen/subcomponents/MobileActions.mjs +13 -18
  114. package/dist/esm/TitleBlockZen/subcomponents/SecondaryActions.mjs +7 -7
  115. package/dist/esm/ToggleSwitch/ToggleSwitch/ToggleSwitch.mjs +5 -5
  116. package/dist/esm/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.mjs +16 -21
  117. package/dist/esm/__future__/Icon/Icon.mjs +38 -0
  118. package/dist/esm/__future__/Icon/Icon.module.css.mjs +8 -0
  119. package/dist/esm/__future__/Icon/constants.mjs +6 -0
  120. package/dist/esm/__future__/Select/subcomponents/Option/Option.mjs +4 -5
  121. package/dist/esm/__future__/Select/subcomponents/SelectToggle/SelectToggle.mjs +6 -10
  122. package/dist/esm/__future__/Tag/RemovableTag/subcomponents/RemoveButton.mjs +4 -3
  123. package/dist/esm/future.mjs +1 -0
  124. package/dist/styles.css +585 -561
  125. package/dist/types/__future__/Icon/Icon.d.ts +21 -0
  126. package/dist/types/__future__/Icon/constants.d.ts +5 -0
  127. package/dist/types/__future__/Icon/index.d.ts +1 -0
  128. package/dist/types/__future__/Icon/types.d.ts +4 -0
  129. package/dist/types/__future__/index.d.ts +1 -0
  130. package/package.json +10 -10
  131. package/src/Avatar/Avatar.module.scss +6 -8
  132. package/src/Avatar/Avatar.tsx +14 -5
  133. package/src/BrandMoment/_docs/BrandMoment.stories.tsx +6 -10
  134. package/src/BrandMoment/_docs/ExampleHeaders.tsx +2 -2
  135. package/src/Calendar/CalendarRange/CalendarRange.tsx +7 -3
  136. package/src/Calendar/CalendarSingle/CalendarSingle.tsx +7 -3
  137. package/src/Calendar/LegacyCalendarRange/LegacyCalendarRange.tsx +7 -3
  138. package/src/Calendar/baseCalendarClassNames.module.scss +0 -4
  139. package/src/Checkbox/Checkbox/Checkbox.module.scss +0 -8
  140. package/src/Checkbox/Checkbox/Checkbox.tsx +6 -8
  141. package/src/ClearButton/ClearButton.tsx +2 -2
  142. package/src/Collapsible/Collapsible/Collapsible.tsx +5 -6
  143. package/src/Collapsible/Collapsible/_docs/Collapsible.stories.tsx +2 -2
  144. package/src/DateInput/DateInputWithIconButton/DateInputWithIconButton.module.scss +2 -7
  145. package/src/DateInput/DateInputWithIconButton/DateInputWithIconButton.tsx +2 -2
  146. package/src/DateRangePicker/DateRangePicker.tsx +2 -2
  147. package/src/EmptyState/_docs/EmptyState.stickersheet.stories.tsx +8 -2
  148. package/src/EmptyState/_docs/EmptyState.stories.tsx +4 -2
  149. package/src/ErrorPage/ErrorPage.tsx +5 -3
  150. package/src/FieldMessage/FieldMessage.tsx +6 -14
  151. package/src/Filter/FilterBar/FilterBar.spec.tsx +12 -12
  152. package/src/Filter/FilterBar/subcomponents/AddFiltersMenu/AddFiltersMenu.tsx +2 -2
  153. package/src/Filter/FilterButton/FilterButton/FilterButton.module.scss +1 -1
  154. package/src/Filter/FilterButton/FilterButton/FilterButton.tsx +5 -6
  155. package/src/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.tsx +2 -2
  156. package/src/Filter/FilterDateRangePicker/FilterDateRangePicker.spec.tsx +0 -1
  157. package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeInputField/DateRangeInputField.spec.tsx +2 -1
  158. package/src/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.tsx +2 -2
  159. package/src/Filter/FilterSelect/FilterSelect.spec.tsx +4 -5
  160. package/src/GuidanceBlock/GuidanceBlock.tsx +6 -2
  161. package/src/Icon/_docs/{Icon.stories.tsx → Icon.docs.stories.tsx} +1 -1
  162. package/src/Icon/_docs/Icon.mdx +1 -2
  163. package/src/Icon/_docs/Icon.stickersheet.stories.tsx +1 -1
  164. package/src/Illustration/utils/usePausePlay.tsx +7 -5
  165. package/src/Input/Input/_docs/Input.stickersheet.stories.tsx +7 -5
  166. package/src/Input/Input/_docs/Input.stories.tsx +5 -3
  167. package/src/Input/InputSearch/InputSearch.tsx +2 -2
  168. package/src/Label/Label.module.scss +4 -0
  169. package/src/LikertScaleLegacy/LikertScaleLegacy.tsx +2 -2
  170. package/src/Loading/LoadingGraphic/_docs/LoadingGraphic.stories.tsx +2 -2
  171. package/src/Modal/ConfirmationModal/ConfirmationModal.module.scss +2 -0
  172. package/src/Modal/ConfirmationModal/ConfirmationModal.tsx +32 -35
  173. package/src/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.tsx +2 -2
  174. package/src/MultiSelect/MultiSelect.spec.tsx +7 -3
  175. package/src/MultiSelect/subcomponents/Checkbox/Checkbox.module.scss +0 -6
  176. package/src/MultiSelect/subcomponents/Checkbox/Checkbox.tsx +10 -9
  177. package/src/MultiSelect/subcomponents/MultiSelectOptions/MultiSelectOptions.spec.tsx +11 -7
  178. package/src/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.tsx +5 -7
  179. package/src/Notification/subcomponents/CancelButton/CancelButton.tsx +2 -2
  180. package/src/Notification/subcomponents/GenericNotification/_mixins.scss +2 -0
  181. package/src/Notification/subcomponents/NotificationIcon/NotificationIcon.module.css +3 -0
  182. package/src/Notification/subcomponents/NotificationIcon/NotificationIcon.tsx +22 -16
  183. package/src/Pagination/subcomponents/DirectionalLink/DirectionalLink.module.scss +0 -4
  184. package/src/Pagination/subcomponents/DirectionalLink/DirectionalLink.tsx +13 -12
  185. package/src/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.module.scss +0 -1
  186. package/src/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.tsx +2 -2
  187. package/src/Popover/Popover.module.scss +3 -3
  188. package/src/Popover/Popover.tsx +2 -2
  189. package/src/Popover/utils/classMappers.tsx +6 -11
  190. package/src/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/_docs/ToggleIconButton.stickersheet.stories.tsx +7 -7
  191. package/src/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/_docs/ToggleIconButton.stories.tsx +2 -2
  192. package/src/RichTextEditor/RichTextEditor/subcomponents/Toolbar/Toolbar.spec.tsx +7 -4
  193. package/src/RichTextEditor/RichTextEditor/subcomponents/Toolbar/_docs/Toolbar.stories.tsx +18 -12
  194. package/src/RichTextEditor/RichTextEditor/utils/controlmap.tsx +25 -18
  195. package/src/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/LinkPopover.tsx +4 -8
  196. package/src/Select/Select.module.scss +2 -0
  197. package/src/Select/Select.tsx +10 -7
  198. package/src/SplitButton/subcomponents/DropdownButton/DropdownButton.spec.tsx +4 -5
  199. package/src/SplitButton/subcomponents/DropdownButton/DropdownButton.tsx +2 -2
  200. package/src/Table/Table.tsx +4 -8
  201. package/src/Table/_docs/Table.stickersheet.stories.tsx +4 -4
  202. package/src/Table/_docs/Table.stories.tsx +3 -3
  203. package/src/Tag/Tag.module.scss +2 -0
  204. package/src/Tag/Tag.tsx +7 -13
  205. package/src/Text/Text.module.scss +2 -0
  206. package/src/TextField/TextField.spec.tsx +9 -4
  207. package/src/TextField/TextField.tsx +2 -2
  208. package/src/TextField/_docs/TextField.stories.tsx +4 -3
  209. package/src/Tile/subcomponents/GenericTile/GenericTile.tsx +3 -3
  210. package/src/TitleBlockZen/TitleBlockZen.module.scss +1 -0
  211. package/src/TitleBlockZen/TitleBlockZen.spec.tsx +1 -1
  212. package/src/TitleBlockZen/TitleBlockZen.tsx +6 -9
  213. package/src/TitleBlockZen/_docs/TitleBlockZen.stories.tsx +5 -5
  214. package/src/TitleBlockZen/subcomponents/MainActions.tsx +5 -3
  215. package/src/TitleBlockZen/subcomponents/MobileActions.tsx +13 -16
  216. package/src/TitleBlockZen/subcomponents/SecondaryActions.tsx +3 -3
  217. package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.scss +0 -3
  218. package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.tsx +2 -2
  219. package/src/Workflow/_docs/Workflow.stories.tsx +4 -5
  220. package/src/Workflow/_docs/WorkflowHeader.stories.tsx +4 -5
  221. package/src/Workflow/_docs/controls/controls.tsx +4 -4
  222. package/src/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.tsx +6 -31
  223. package/src/__actions__/Button/v1/Button/_docs/Button.stickersheet.stories.tsx +5 -5
  224. package/src/__actions__/Button/v1/Button/_docs/Button.stories.tsx +6 -5
  225. package/src/__actions__/Button/v1/IconButton/_docs/IconButton.stickersheet.stories.tsx +6 -6
  226. package/src/__actions__/Button/v1/IconButton/_docs/IconButton.stories.tsx +4 -4
  227. package/src/__actions__/Button/v2/Button/_docs/Button.stories.tsx +6 -5
  228. package/src/__actions__/Button/v2/IconButton/_docs/IconButton.stories.tsx +4 -4
  229. package/src/__actions__/Menu/v1/_docs/Menu.stickersheet.stories.tsx +3 -3
  230. package/src/__actions__/Menu/v1/_docs/Menu.stories.tsx +3 -3
  231. package/src/__actions__/Menu/v1/_docs/MenuContentExample.tsx +6 -6
  232. package/src/__actions__/Menu/v1/_docs/examples.tsx +5 -5
  233. package/src/__actions__/Menu/v2/_docs/Menu.stories.tsx +3 -3
  234. package/src/__actions__/Menu/v3/_docs/ApiSpecification.mdx +1 -3
  235. package/src/__actions__/Menu/v3/_docs/Menu.docs.stories.tsx +46 -45
  236. package/src/__actions__/Menu/v3/_docs/Menu.mdx +1 -1
  237. package/src/__actions__/Menu/v3/_docs/Menu.spec.stories.tsx +21 -23
  238. package/src/__actions__/Menu/v3/_docs/Menu.stories.tsx +12 -15
  239. package/src/__future__/Icon/Icon.module.css +35 -0
  240. package/src/__future__/Icon/Icon.spec.tsx +36 -0
  241. package/src/__future__/Icon/Icon.tsx +85 -0
  242. package/src/__future__/Icon/_docs/Icon--api-specification.mdx +98 -0
  243. package/src/__future__/Icon/_docs/Icon--usage-guidelines.mdx +145 -0
  244. package/src/__future__/Icon/_docs/Icon.docs.module.css +17 -0
  245. package/src/__future__/Icon/_docs/Icon.docs.stories.tsx +524 -0
  246. package/src/__future__/Icon/_docs/Icon.stickersheet.stories.tsx +126 -0
  247. package/src/__future__/Icon/_docs/assets/interface-dont.png +0 -0
  248. package/src/__future__/Icon/_docs/assets/tooltip-dont.png +0 -0
  249. package/src/__future__/Icon/constants.ts +149 -0
  250. package/src/__future__/Icon/index.ts +1 -0
  251. package/src/__future__/Icon/material-symbols-metadata.json +3370 -0
  252. package/src/__future__/Icon/types.ts +11 -0
  253. package/src/__future__/Select/subcomponents/Option/Option.tsx +2 -2
  254. package/src/__future__/Select/subcomponents/SelectToggle/SelectToggle.module.scss +1 -1
  255. package/src/__future__/Select/subcomponents/SelectToggle/SelectToggle.tsx +6 -9
  256. package/src/__future__/Tag/RemovableTag/_docs/RemovableTag.stories.tsx +0 -77
  257. package/src/__future__/Tag/RemovableTag/subcomponents/RemoveButton.module.scss +0 -56
  258. package/src/__future__/Tag/RemovableTag/subcomponents/RemoveButton.tsx +2 -12
  259. package/src/__future__/Tag/Tag/Tag.module.scss +1 -1
  260. package/src/__future__/Tag/Tag/_docs/Tag-migration-guide.stories.tsx +6 -17
  261. package/src/__future__/Tag/Tag/_docs/Tag.stickersheet.stories.tsx +5 -2
  262. package/src/__future__/Tag/Tag/_docs/Tag.stories.tsx +13 -6
  263. package/src/__future__/index.ts +1 -0
  264. package/src/__overlays__/Tooltip/v1/_docs/Tooltip.stickersheet.stories.tsx +10 -10
  265. package/src/__overlays__/Tooltip/v1/_docs/Tooltip.stories.tsx +7 -4
  266. package/src/__overlays__/Tooltip/v1/utils/isSemanticElement.spec.tsx +4 -11
  267. package/src/__overlays__/Tooltip/v3/_docs/Tooltip.docs.stories.tsx +10 -10
  268. package/src/__overlays__/Tooltip/v3/_docs/Tooltip.spec.stories.tsx +3 -3
  269. package/codemods/utils/getTagName.spec.ts +0 -24
  270. package/codemods/utils/getTagName.ts +0 -32
  271. package/dist/cjs/__future__/Tag/RemovableTag/subcomponents/RemoveTagIcon.cjs +0 -23
  272. package/dist/esm/__future__/Tag/RemovableTag/subcomponents/RemoveTagIcon.mjs +0 -15
  273. package/dist/types/__future__/Tag/RemovableTag/subcomponents/RemoveTagIcon.d.ts +0 -2
  274. package/src/__future__/Tag/RemovableTag/subcomponents/RemoveTagIcon.tsx +0 -21
@@ -2,9 +2,7 @@ import { __assign } from 'tslib';
2
2
  import React, { useState, useCallback, useEffect } from 'react';
3
3
  import classnames from 'classnames';
4
4
  import { FocusOn } from 'react-focus-on';
5
- import '../../Icon/subcomponents/SVG/SVG.mjs';
6
- import { ChevronDownIcon } from '../../Icon/ChevronDownIcon.mjs';
7
- import { ChevronUpIcon } from '../../Icon/ChevronUpIcon.mjs';
5
+ import { Icon } from '../../__future__/Icon/Icon.mjs';
8
6
  import { TITLE_BLOCK_ZEN_OTHER_ACTIONS_HTML_ID } from '../constants.mjs';
9
7
  import { isMenuGroupNotButton, convertSecondaryActionsToMenuItems } from '../utils.mjs';
10
8
  import { TitleBlockMenuItem } from './TitleBlockMenuItem.mjs';
@@ -191,11 +189,10 @@ var DrawerHandle = function (_a) {
191
189
  "aria-expanded": isOpen
192
190
  }, primaryAction.label, /*#__PURE__*/React.createElement("span", {
193
191
  className: styles.mobileActionsChevronSquare
194
- }, isOpen ? ( /*#__PURE__*/React.createElement(ChevronDownIcon, {
195
- role: "presentation"
196
- })) : ( /*#__PURE__*/React.createElement(ChevronUpIcon, {
197
- role: "presentation"
198
- })))));
192
+ }, /*#__PURE__*/React.createElement(Icon, {
193
+ name: isOpen ? "keyboard_arrow_down" : "keyboard_arrow_up",
194
+ isPresentational: true
195
+ }))));
199
196
  }
200
197
  // If the primary action is a button, or has no onClick/href/action
201
198
  return /*#__PURE__*/React.createElement("div", {
@@ -212,11 +209,10 @@ var DrawerHandle = function (_a) {
212
209
  "aria-expanded": isOpen,
213
210
  id: TITLE_BLOCK_ZEN_OTHER_ACTIONS_HTML_ID,
214
211
  "aria-label": "Other actions"
215
- }, isOpen ? ( /*#__PURE__*/React.createElement(ChevronDownIcon, {
216
- role: "presentation"
217
- })) : ( /*#__PURE__*/React.createElement(ChevronUpIcon, {
218
- role: "presentation"
219
- })))));
212
+ }, /*#__PURE__*/React.createElement(Icon, {
213
+ name: isOpen ? "keyboard_arrow_down" : "keyboard_arrow_up",
214
+ isPresentational: true
215
+ }))));
220
216
  }
221
217
  // if there are default/secondary actions but no primary action
222
218
  if (showDrawer) {
@@ -231,11 +227,10 @@ var DrawerHandle = function (_a) {
231
227
  id: TITLE_BLOCK_ZEN_OTHER_ACTIONS_HTML_ID
232
228
  }, renderDrawerHandleLabel("Other actions"), /*#__PURE__*/React.createElement("span", {
233
229
  className: styles.mobileActionsChevronSquare
234
- }, isOpen ? ( /*#__PURE__*/React.createElement(ChevronDownIcon, {
235
- role: "presentation"
236
- })) : ( /*#__PURE__*/React.createElement(ChevronUpIcon, {
237
- role: "presentation"
238
- })))));
230
+ }, /*#__PURE__*/React.createElement(Icon, {
231
+ name: isOpen ? "keyboard_arrow_down" : "keyboard_arrow_up",
232
+ isPresentational: true
233
+ }))));
239
234
  }
240
235
  return null;
241
236
  };
@@ -1,8 +1,6 @@
1
1
  import { __assign, __spreadArray } from 'tslib';
2
2
  import React from 'react';
3
- import '../../Icon/subcomponents/SVG/SVG.mjs';
4
- import { ChevronDownIcon } from '../../Icon/ChevronDownIcon.mjs';
5
- import { MeatballsIcon } from '../../Icon/MeatballsIcon.mjs';
3
+ import { Icon } from '../../__future__/Icon/Icon.mjs';
6
4
  import styles from '../TitleBlockZen.module.scss.mjs';
7
5
  import { TITLE_BLOCK_ZEN_SECONDARY_MENU_HTML_ID } from '../constants.mjs';
8
6
  import { TitleBlockMenuItem } from './TitleBlockMenuItem.mjs';
@@ -18,8 +16,9 @@ var renderSecondaryOverflowMenu = function (secondaryOverflowMenuItems, reversed
18
16
  button: /*#__PURE__*/React.createElement(IconButton, {
19
17
  label: "Open secondary menu",
20
18
  reversed: reversed,
21
- icon: /*#__PURE__*/React.createElement(MeatballsIcon, {
22
- role: "presentation"
19
+ icon: /*#__PURE__*/React.createElement(Icon, {
20
+ name: "more_horiz",
21
+ isPresentational: true
23
22
  }),
24
23
  id: TITLE_BLOCK_ZEN_SECONDARY_MENU_HTML_ID
25
24
  })
@@ -50,8 +49,9 @@ const SecondaryActions = /*#__PURE__*/function () {
50
49
  secondary: true,
51
50
  label: action.label,
52
51
  reversed: reversed,
53
- icon: /*#__PURE__*/React.createElement(ChevronDownIcon, {
54
- role: "presentation"
52
+ icon: /*#__PURE__*/React.createElement(Icon, {
53
+ name: "keyboard_arrow_down",
54
+ isPresentational: true
55
55
  }),
56
56
  iconPosition: "end"
57
57
  })
@@ -1,8 +1,7 @@
1
1
  import { __rest, __assign } from 'tslib';
2
2
  import React from 'react';
3
3
  import classnames from 'classnames';
4
- import '../../Icon/subcomponents/SVG/SVG.mjs';
5
- import { CheckIcon } from '../../Icon/CheckIcon.mjs';
4
+ import { Icon } from '../../__future__/Icon/Icon.mjs';
6
5
  import styles from './ToggleSwitch.module.scss.mjs';
7
6
  const ToggleSwitch = /*#__PURE__*/function () {
8
7
  const ToggleSwitch = function (_a) {
@@ -22,9 +21,10 @@ const ToggleSwitch = /*#__PURE__*/function () {
22
21
  className: styles.track
23
22
  }, /*#__PURE__*/React.createElement("span", {
24
23
  className: styles.thumb
25
- }, /*#__PURE__*/React.createElement(CheckIcon, {
26
- classNameOverride: styles.checkIcon,
27
- role: "presentation"
24
+ }, /*#__PURE__*/React.createElement(Icon, {
25
+ name: "check",
26
+ isPresentational: true,
27
+ className: styles.checkIcon
28
28
  }))));
29
29
  };
30
30
  ToggleSwitch.displayName = "ToggleSwitch";
@@ -1,42 +1,37 @@
1
1
  import { __rest, __assign } from 'tslib';
2
2
  import React from 'react';
3
3
  import classnames from 'classnames';
4
- import '../../../../../Icon/subcomponents/SVG/SVG.mjs';
5
- import { IndicatorActiveIcon } from '../../../../../Icon/IndicatorActiveIcon.mjs';
6
- import { IndicatorInactiveIcon } from '../../../../../Icon/IndicatorInactiveIcon.mjs';
7
- import { SuccessIcon } from '../../../../../Icon/SuccessIcon.mjs';
8
4
  import { VisuallyHidden } from '../../../../../VisuallyHidden/VisuallyHidden.mjs';
5
+ import { Icon } from '../../../../../__future__/Icon/Icon.mjs';
9
6
  import styles from './ProgressStepper.module.css.mjs';
10
7
  var getStepStatus = function (isComplete, isCurrentStep, step, index) {
11
8
  if (isComplete) {
12
9
  return {
13
- icon: ( /*#__PURE__*/React.createElement(SuccessIcon, {
10
+ icon: /*#__PURE__*/React.createElement(Icon, {
14
11
  key: index,
15
- inheritSize: true,
16
- role: "presentation",
17
- classNameOverride: "success"
18
- })),
12
+ name: "check_circle",
13
+ isPresentational: true,
14
+ isFilled: true
15
+ }),
19
16
  accessibleName: "Completed: ".concat(step.label)
20
17
  };
21
18
  }
22
19
  if (isCurrentStep) {
23
20
  return {
24
- icon: ( /*#__PURE__*/React.createElement(IndicatorActiveIcon, {
21
+ icon: /*#__PURE__*/React.createElement(Icon, {
25
22
  key: index,
26
- inheritSize: true,
27
- role: "presentation",
28
- classNameOverride: "active"
29
- })),
23
+ name: "radio_button_checked",
24
+ isPresentational: true
25
+ }),
30
26
  accessibleName: "Current: ".concat(step.label)
31
27
  };
32
28
  }
33
29
  return {
34
- icon: ( /*#__PURE__*/React.createElement(IndicatorInactiveIcon, {
30
+ icon: /*#__PURE__*/React.createElement(Icon, {
35
31
  key: index,
36
- inheritSize: true,
37
- classNameOverride: "incomplete",
38
- role: "presentation"
39
- })),
32
+ name: "radio_button_unchecked",
33
+ isPresentational: true
34
+ }),
40
35
  accessibleName: "Not started: ".concat(step.label)
41
36
  };
42
37
  };
@@ -62,7 +57,7 @@ const ProgressStepper = /*#__PURE__*/function () {
62
57
  var isCompletedStep = index < currentStepIndex || isComplete;
63
58
  var _c = getStepStatus(isCompletedStep, isCurrentStep, step, index),
64
59
  accessibleName = _c.accessibleName,
65
- Icon = _c.icon;
60
+ icon = _c.icon;
66
61
  return /*#__PURE__*/React.createElement("li", {
67
62
  className: styles.step,
68
63
  key: "".concat(step.id),
@@ -76,7 +71,7 @@ const ProgressStepper = /*#__PURE__*/function () {
76
71
  className: styles.stepIndicator
77
72
  }, /*#__PURE__*/React.createElement("span", {
78
73
  className: classnames(styles.stepIcon, (_b = {}, _b[styles.isCompleted] = isCompletedStep, _b))
79
- }, Icon)), index < steps.length - 1 && ( /*#__PURE__*/React.createElement("div", {
74
+ }, icon)), index < steps.length - 1 && ( /*#__PURE__*/React.createElement("div", {
80
75
  className: classnames([styles.stepDivider, isCompletedStep && styles.completedStep])
81
76
  }))));
82
77
  })), /*#__PURE__*/React.createElement("span", {
@@ -0,0 +1,38 @@
1
+ import { __rest, __assign } from 'tslib';
2
+ import React from 'react';
3
+ import classnames from 'classnames';
4
+ import { handledRtlIcons } from './constants.mjs';
5
+ import styles from './Icon.module.css.mjs';
6
+ var MaterialIcon = function (_a) {
7
+ var children = _a.children,
8
+ isFilled = _a.isFilled,
9
+ isPresentational = _a.isPresentational,
10
+ alt = _a.alt,
11
+ className = _a.className,
12
+ restProps = __rest(_a, ["children", "isFilled", "isPresentational", "alt", "className"]);
13
+ return /*#__PURE__*/React.createElement("span", __assign({
14
+ className: classnames("material-symbols-outlined", styles.icon, isFilled && styles.filled, className),
15
+ "aria-hidden": isPresentational,
16
+ role: isPresentational ? undefined : "img",
17
+ "aria-label": alt
18
+ }, restProps), children);
19
+ };
20
+ var Icon = function (_a) {
21
+ var name = _a.name,
22
+ shouldMirrorInRTL = _a.shouldMirrorInRTL,
23
+ restProps = __rest(_a, ["name", "shouldMirrorInRTL"]);
24
+ if (!shouldMirrorInRTL) {
25
+ return /*#__PURE__*/React.createElement(MaterialIcon, __assign({}, restProps), name);
26
+ }
27
+ if (Object.keys(handledRtlIcons).includes(name)) {
28
+ return /*#__PURE__*/React.createElement(MaterialIcon, __assign({}, restProps), /*#__PURE__*/React.createElement("span", {
29
+ className: styles.iconLTR
30
+ }, name), /*#__PURE__*/React.createElement("span", {
31
+ className: styles.iconRTL
32
+ }, handledRtlIcons[name]));
33
+ }
34
+ return /*#__PURE__*/React.createElement(MaterialIcon, __assign({}, restProps, {
35
+ className: classnames(styles.shouldMirrorInRTL, restProps.className)
36
+ }), name);
37
+ };
38
+ export { Icon };
@@ -0,0 +1,8 @@
1
+ var styles = {
2
+ "icon": "Icon-module_icon__CkmHY",
3
+ "filled": "Icon-module_filled__-VArQ",
4
+ "shouldMirrorInRTL": "Icon-module_shouldMirrorInRTL__kxncF",
5
+ "iconLTR": "Icon-module_iconLTR__b3GoB",
6
+ "iconRTL": "Icon-module_iconRTL__lpVw5"
7
+ };
8
+ export { styles as default };
@@ -0,0 +1,6 @@
1
+ /* eslint-disable camelcase */
2
+ var handledRtlIcons = {
3
+ checklist: "checklist_rtl",
4
+ format_list_numbered: "format_list_numbered_rtl"
5
+ };
6
+ export { handledRtlIcons };
@@ -2,8 +2,7 @@ import { __rest, __assign } from 'tslib';
2
2
  import React from 'react';
3
3
  import classnames from 'classnames';
4
4
  import { useOption, useFocusRing, mergeProps } from 'react-aria';
5
- import '../../../../Icon/subcomponents/SVG/SVG.mjs';
6
- import { CheckIcon } from '../../../../Icon/CheckIcon.mjs';
5
+ import { Icon } from '../../../Icon/Icon.mjs';
7
6
  import { useSelectContext } from '../../context/SelectContext.mjs';
8
7
  import styles from './Option.module.scss.mjs';
9
8
  const Option = /*#__PURE__*/function () {
@@ -42,9 +41,9 @@ const Option = /*#__PURE__*/function () {
42
41
  "aria-label": item.textValue
43
42
  }), item.rendered, /*#__PURE__*/React.createElement("span", {
44
43
  className: classnames(styles.icon, isSelected && styles.isSelected)
45
- }, isSelected && /*#__PURE__*/React.createElement(CheckIcon, {
46
- inheritSize: true,
47
- role: "presentation"
44
+ }, isSelected && /*#__PURE__*/React.createElement(Icon, {
45
+ name: "check",
46
+ isPresentational: true
48
47
  })));
49
48
  };
50
49
  Option.displayName = "Option";
@@ -1,10 +1,8 @@
1
1
  import { __rest, __assign } from 'tslib';
2
2
  import React from 'react';
3
3
  import classnames from 'classnames';
4
- import '../../../../Icon/subcomponents/SVG/SVG.mjs';
5
- import { ChevronDownIcon } from '../../../../Icon/ChevronDownIcon.mjs';
6
- import { ChevronUpIcon } from '../../../../Icon/ChevronUpIcon.mjs';
7
4
  import { Label } from '../../../../Label/Label.mjs';
5
+ import { Icon } from '../../../Icon/Icon.mjs';
8
6
  import styles from './SelectToggle.module.scss.mjs';
9
7
  const SelectToggle = /*#__PURE__*/function () {
10
8
  const SelectToggle = /*#__PURE__*/React.forwardRef(function (_a, ref) {
@@ -33,13 +31,11 @@ const SelectToggle = /*#__PURE__*/function () {
33
31
  className: classnames(styles.selectToggle, (value === null || value === undefined) && styles.placeholder, status === "error" && styles.error, status === "caution" && styles.caution, isDisabled && styles.disabled, isReversed && styles.reversed, classNameOverride)
34
32
  }), /*#__PURE__*/React.createElement("span", __assign({}, valueProps, {
35
33
  className: styles.value
36
- }), value !== null && value !== void 0 ? value : placeholder), isOpen ? ( /*#__PURE__*/React.createElement(ChevronUpIcon, {
37
- role: "presentation",
38
- classNameOverride: styles.icon
39
- })) : ( /*#__PURE__*/React.createElement(ChevronDownIcon, {
40
- role: "presentation",
41
- classNameOverride: styles.icon
42
- }))));
34
+ }), value !== null && value !== void 0 ? value : placeholder), /*#__PURE__*/React.createElement(Icon, {
35
+ name: isOpen ? "keyboard_arrow_up" : "keyboard_arrow_down",
36
+ isPresentational: true,
37
+ className: styles.icon
38
+ })));
43
39
  });
44
40
  SelectToggle.displayName = "SelectToggle";
45
41
  return SelectToggle;
@@ -1,7 +1,7 @@
1
1
  import { __rest, __assign } from 'tslib';
2
2
  import React from 'react';
3
3
  import classnames from 'classnames';
4
- import { RemoveTagIcon } from './RemoveTagIcon.mjs';
4
+ import { Icon } from '../../../Icon/Icon.mjs';
5
5
  import styles from './RemoveButton.module.scss.mjs';
6
6
  const RemoveButton = /*#__PURE__*/function () {
7
7
  const RemoveButton = function (_a) {
@@ -15,8 +15,9 @@ const RemoveButton = /*#__PURE__*/function () {
15
15
  "aria-label": ariaLabel,
16
16
  className: classnames(styles.removeButton, classNameOverride),
17
17
  onClick: onClick
18
- }, restProps), /*#__PURE__*/React.createElement(RemoveTagIcon, {
19
- role: "presentation"
18
+ }, restProps), /*#__PURE__*/React.createElement(Icon, {
19
+ name: "close",
20
+ isPresentational: true
20
21
  }));
21
22
  };
22
23
  RemoveButton.displayName = "RemoveButton";
@@ -1,3 +1,4 @@
1
+ export { Icon } from './__future__/Icon/Icon.mjs';
1
2
  export { Select } from './__future__/Select/Select.mjs';
2
3
  export { RemovableTag } from './__future__/Tag/RemovableTag/RemovableTag.mjs';
3
4
  export { Tag } from './__future__/Tag/Tag/Tag.mjs';