@kaizen/components 0.0.0-canary-fix-select-focus-add-small-delay-20241013230007 → 0.0.0-canary-codemod-tsx-20241030002309

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 (360) hide show
  1. package/bin/codemod.sh +2 -2
  2. package/codemods/README.md +12 -4
  3. package/codemods/upgradeIconV1/getNewIconPropsFromOldIconName.ts +255 -0
  4. package/codemods/upgradeIconV1/index.ts +33 -0
  5. package/codemods/upgradeIconV1/transformCaMonogramIconToBrand.spec.ts +83 -0
  6. package/codemods/upgradeIconV1/transformCaMonogramIconToBrand.ts +53 -0
  7. package/codemods/upgradeIconV1/transformIcon.spec.ts +181 -0
  8. package/codemods/upgradeIconV1/transformIcon.ts +115 -0
  9. package/codemods/upgradeIconV1/transformSpinnerIconToLoadingSpinner.spec.ts +81 -0
  10. package/codemods/upgradeIconV1/transformSpinnerIconToLoadingSpinner.ts +41 -0
  11. package/codemods/upgradeIconV1/upgradeIconV1.spec.ts +306 -0
  12. package/codemods/upgradeIconV1/upgradeIconV1.ts +94 -0
  13. package/codemods/utils/createProp.spec.ts +83 -0
  14. package/codemods/utils/createProp.ts +51 -0
  15. package/codemods/utils/getKaioTagName.spec.ts +85 -0
  16. package/codemods/utils/getKaioTagName.ts +129 -0
  17. package/codemods/utils/index.ts +3 -1
  18. package/codemods/utils/transformComponentsInDir.ts +32 -16
  19. package/codemods/utils/transformSource.ts +10 -5
  20. package/codemods/utils/updateJsxElementWithNewProps.ts +4 -3
  21. package/codemods/utils/updateKaioImports.spec.ts +223 -0
  22. package/codemods/utils/updateKaioImports.ts +233 -0
  23. package/dist/cjs/Avatar/Avatar.cjs +16 -13
  24. package/dist/cjs/Calendar/CalendarRange/CalendarRange.cjs +9 -7
  25. package/dist/cjs/Calendar/CalendarSingle/CalendarSingle.cjs +9 -7
  26. package/dist/cjs/Calendar/LegacyCalendarRange/LegacyCalendarRange.cjs +9 -7
  27. package/dist/cjs/Checkbox/Checkbox/Checkbox.cjs +5 -11
  28. package/dist/cjs/ClearButton/ClearButton.cjs +5 -4
  29. package/dist/cjs/Collapsible/Collapsible/Collapsible.cjs +4 -7
  30. package/dist/cjs/DateInput/DateInputWithIconButton/DateInputWithIconButton.cjs +5 -4
  31. package/dist/cjs/DateRangePicker/DateRangePicker.cjs +5 -4
  32. package/dist/cjs/ErrorPage/ErrorPage.cjs +9 -7
  33. package/dist/cjs/FieldMessage/FieldMessage.cjs +5 -11
  34. package/dist/cjs/Filter/FilterBar/context/FilterBarContext.cjs +17 -2
  35. package/dist/cjs/Filter/FilterBar/context/reducer/filterBarStateReducer.cjs +4 -0
  36. package/dist/cjs/Filter/FilterBar/context/reducer/setupFilterBarState.cjs +2 -1
  37. package/dist/cjs/Filter/FilterBar/subcomponents/AddFiltersMenu/AddFiltersMenu.cjs +16 -6
  38. package/dist/cjs/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.cjs +12 -1
  39. package/dist/cjs/Filter/FilterBar/subcomponents/FilterBarMultiSelect/FilterBarMultiSelect.cjs +13 -2
  40. package/dist/cjs/Filter/FilterButton/FilterButton/FilterButton.cjs +4 -7
  41. package/dist/cjs/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.cjs +5 -5
  42. package/dist/cjs/Filter/FilterMultiSelect/FilterMultiSelect.cjs +4 -2
  43. package/dist/cjs/Filter/FilterMultiSelect/context/MenuTriggerProvider/MenuTriggerProvider.cjs +4 -2
  44. package/dist/cjs/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.cjs +4 -4
  45. package/dist/cjs/GuidanceBlock/GuidanceBlock.cjs +5 -4
  46. package/dist/cjs/Illustration/utils/usePausePlay.cjs +5 -8
  47. package/dist/cjs/Input/InputSearch/InputSearch.cjs +4 -3
  48. package/dist/cjs/LikertScaleLegacy/LikertScaleLegacy.cjs +5 -6
  49. package/dist/cjs/Loading/LoadingSpinner/LoadingSpinner.cjs +6 -42
  50. package/dist/cjs/Loading/LoadingSpinner/LoadingSpinner.module.css.cjs +10 -0
  51. package/dist/cjs/Loading/LoadingSpinner/subcomponents/SpinnerIcon.cjs +80 -0
  52. package/dist/cjs/Modal/ConfirmationModal/ConfirmationModal.cjs +31 -26
  53. package/dist/cjs/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.cjs +4 -5
  54. package/dist/cjs/MultiSelect/subcomponents/Checkbox/Checkbox.cjs +7 -17
  55. package/dist/cjs/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.cjs +4 -7
  56. package/dist/cjs/Notification/subcomponents/CancelButton/CancelButton.cjs +4 -3
  57. package/dist/cjs/Notification/subcomponents/NotificationIcon/NotificationIcon.cjs +33 -38
  58. package/dist/cjs/Notification/subcomponents/NotificationIcon/NotificationIcon.module.css.cjs +6 -0
  59. package/dist/cjs/Pagination/subcomponents/DirectionalLink/DirectionalLink.cjs +11 -19
  60. package/dist/cjs/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.cjs +4 -5
  61. package/dist/cjs/Popover/Popover.cjs +5 -4
  62. package/dist/cjs/Popover/utils/classMappers.cjs +21 -16
  63. package/dist/cjs/RichTextEditor/RichTextEditor/utils/controlmap.cjs +29 -25
  64. package/dist/cjs/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/LinkPopover.cjs +10 -12
  65. package/dist/cjs/Select/Select.cjs +8 -10
  66. package/dist/cjs/SplitButton/subcomponents/DropdownButton/DropdownButton.cjs +4 -4
  67. package/dist/cjs/Table/Table.cjs +11 -10
  68. package/dist/cjs/Tag/Tag.cjs +21 -17
  69. package/dist/cjs/TextArea/TextArea.cjs +20 -52
  70. package/dist/cjs/TextArea/TextArea.module.css.cjs +14 -0
  71. package/dist/cjs/TextField/TextField.cjs +7 -6
  72. package/dist/cjs/TextField/TextField.module.scss.cjs +4 -6
  73. package/dist/cjs/Tile/subcomponents/GenericTile/GenericTile.cjs +8 -7
  74. package/dist/cjs/TitleBlockZen/TitleBlockZen.cjs +9 -12
  75. package/dist/cjs/TitleBlockZen/subcomponents/MainActions.cjs +7 -7
  76. package/dist/cjs/TitleBlockZen/subcomponents/MobileActions.cjs +10 -15
  77. package/dist/cjs/TitleBlockZen/subcomponents/SecondaryActions.cjs +7 -7
  78. package/dist/cjs/ToggleSwitch/ToggleSwitch/ToggleSwitch.cjs +5 -5
  79. package/dist/cjs/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.cjs +13 -18
  80. package/dist/cjs/__future__/Icon/Icon.cjs +47 -0
  81. package/dist/cjs/__future__/Icon/Icon.module.css.cjs +10 -0
  82. package/dist/cjs/__future__/Icon/constants.cjs +8 -0
  83. package/dist/cjs/__future__/Select/subcomponents/ListBox/ListBox.cjs +7 -10
  84. package/dist/cjs/__future__/Select/subcomponents/Option/Option.cjs +4 -5
  85. package/dist/cjs/__future__/Select/subcomponents/SelectToggle/SelectToggle.cjs +5 -9
  86. package/dist/cjs/__future__/Tag/RemovableTag/subcomponents/RemoveButton.cjs +4 -3
  87. package/dist/cjs/future.cjs +2 -0
  88. package/dist/esm/Avatar/Avatar.mjs +16 -13
  89. package/dist/esm/Calendar/CalendarRange/CalendarRange.mjs +9 -7
  90. package/dist/esm/Calendar/CalendarSingle/CalendarSingle.mjs +9 -7
  91. package/dist/esm/Calendar/LegacyCalendarRange/LegacyCalendarRange.mjs +9 -7
  92. package/dist/esm/Checkbox/Checkbox/Checkbox.mjs +5 -11
  93. package/dist/esm/ClearButton/ClearButton.mjs +5 -4
  94. package/dist/esm/Collapsible/Collapsible/Collapsible.mjs +5 -8
  95. package/dist/esm/DateInput/DateInputWithIconButton/DateInputWithIconButton.mjs +5 -4
  96. package/dist/esm/DateRangePicker/DateRangePicker.mjs +5 -4
  97. package/dist/esm/ErrorPage/ErrorPage.mjs +10 -8
  98. package/dist/esm/FieldMessage/FieldMessage.mjs +6 -12
  99. package/dist/esm/Filter/FilterBar/context/FilterBarContext.mjs +17 -2
  100. package/dist/esm/Filter/FilterBar/context/reducer/filterBarStateReducer.mjs +4 -0
  101. package/dist/esm/Filter/FilterBar/context/reducer/setupFilterBarState.mjs +2 -1
  102. package/dist/esm/Filter/FilterBar/subcomponents/AddFiltersMenu/AddFiltersMenu.mjs +17 -7
  103. package/dist/esm/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.mjs +13 -2
  104. package/dist/esm/Filter/FilterBar/subcomponents/FilterBarMultiSelect/FilterBarMultiSelect.mjs +14 -3
  105. package/dist/esm/Filter/FilterButton/FilterButton/FilterButton.mjs +5 -8
  106. package/dist/esm/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.mjs +5 -5
  107. package/dist/esm/Filter/FilterMultiSelect/FilterMultiSelect.mjs +4 -2
  108. package/dist/esm/Filter/FilterMultiSelect/context/MenuTriggerProvider/MenuTriggerProvider.mjs +4 -2
  109. package/dist/esm/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.mjs +4 -4
  110. package/dist/esm/GuidanceBlock/GuidanceBlock.mjs +5 -4
  111. package/dist/esm/Illustration/utils/usePausePlay.mjs +5 -8
  112. package/dist/esm/Input/InputSearch/InputSearch.mjs +4 -3
  113. package/dist/esm/LikertScaleLegacy/LikertScaleLegacy.mjs +5 -6
  114. package/dist/esm/Loading/LoadingSpinner/LoadingSpinner.mjs +6 -42
  115. package/dist/esm/Loading/LoadingSpinner/LoadingSpinner.module.css.mjs +8 -0
  116. package/dist/esm/Loading/LoadingSpinner/subcomponents/SpinnerIcon.mjs +72 -0
  117. package/dist/esm/Modal/ConfirmationModal/ConfirmationModal.mjs +31 -26
  118. package/dist/esm/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.mjs +4 -5
  119. package/dist/esm/MultiSelect/subcomponents/Checkbox/Checkbox.mjs +7 -17
  120. package/dist/esm/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.mjs +5 -8
  121. package/dist/esm/Notification/subcomponents/CancelButton/CancelButton.mjs +4 -3
  122. package/dist/esm/Notification/subcomponents/NotificationIcon/NotificationIcon.mjs +33 -38
  123. package/dist/esm/Notification/subcomponents/NotificationIcon/NotificationIcon.module.css.mjs +4 -0
  124. package/dist/esm/Pagination/subcomponents/DirectionalLink/DirectionalLink.mjs +11 -19
  125. package/dist/esm/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.mjs +4 -5
  126. package/dist/esm/Popover/Popover.mjs +5 -4
  127. package/dist/esm/Popover/utils/classMappers.mjs +21 -16
  128. package/dist/esm/RichTextEditor/RichTextEditor/utils/controlmap.mjs +33 -29
  129. package/dist/esm/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/LinkPopover.mjs +10 -12
  130. package/dist/esm/Select/Select.mjs +9 -11
  131. package/dist/esm/SplitButton/subcomponents/DropdownButton/DropdownButton.mjs +4 -4
  132. package/dist/esm/Table/Table.mjs +11 -10
  133. package/dist/esm/Tag/Tag.mjs +21 -17
  134. package/dist/esm/TextArea/TextArea.mjs +21 -53
  135. package/dist/esm/TextArea/TextArea.module.css.mjs +12 -0
  136. package/dist/esm/TextField/TextField.mjs +7 -6
  137. package/dist/esm/TextField/TextField.module.scss.mjs +4 -6
  138. package/dist/esm/Tile/subcomponents/GenericTile/GenericTile.mjs +8 -7
  139. package/dist/esm/TitleBlockZen/TitleBlockZen.mjs +9 -12
  140. package/dist/esm/TitleBlockZen/subcomponents/MainActions.mjs +7 -7
  141. package/dist/esm/TitleBlockZen/subcomponents/MobileActions.mjs +13 -18
  142. package/dist/esm/TitleBlockZen/subcomponents/SecondaryActions.mjs +7 -7
  143. package/dist/esm/ToggleSwitch/ToggleSwitch/ToggleSwitch.mjs +5 -5
  144. package/dist/esm/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.mjs +16 -21
  145. package/dist/esm/__future__/Icon/Icon.mjs +38 -0
  146. package/dist/esm/__future__/Icon/Icon.module.css.mjs +8 -0
  147. package/dist/esm/__future__/Icon/constants.mjs +6 -0
  148. package/dist/esm/__future__/Select/subcomponents/ListBox/ListBox.mjs +7 -10
  149. package/dist/esm/__future__/Select/subcomponents/Option/Option.mjs +4 -5
  150. package/dist/esm/__future__/Select/subcomponents/SelectToggle/SelectToggle.mjs +6 -10
  151. package/dist/esm/__future__/Tag/RemovableTag/subcomponents/RemoveButton.mjs +4 -3
  152. package/dist/esm/future.mjs +1 -0
  153. package/dist/styles.css +1026 -1699
  154. package/dist/types/Filter/FilterBar/context/FilterBarContext.d.ts +2 -0
  155. package/dist/types/Filter/FilterBar/context/reducer/filterBarStateReducer.d.ts +3 -0
  156. package/dist/types/Filter/FilterBar/context/types.d.ts +1 -0
  157. package/dist/types/Filter/FilterMultiSelect/FilterMultiSelect.d.ts +2 -1
  158. package/dist/types/Filter/FilterMultiSelect/context/MenuTriggerProvider/MenuTriggerProvider.d.ts +2 -1
  159. package/dist/types/Loading/LoadingSpinner/LoadingSpinner.d.ts +2 -2
  160. package/dist/types/Loading/LoadingSpinner/subcomponents/SpinnerIcon.d.ts +5 -0
  161. package/dist/types/Loading/LoadingSpinner/subcomponents/index.d.ts +1 -0
  162. package/dist/types/TextArea/TextArea.d.ts +4 -0
  163. package/dist/types/__future__/Icon/Icon.d.ts +21 -0
  164. package/dist/types/__future__/Icon/constants.d.ts +5 -0
  165. package/dist/types/__future__/Icon/index.d.ts +1 -0
  166. package/dist/types/__future__/Icon/types.d.ts +4 -0
  167. package/dist/types/__future__/index.d.ts +1 -0
  168. package/package.json +34 -35
  169. package/src/Avatar/Avatar.module.scss +10 -12
  170. package/src/Avatar/Avatar.tsx +14 -5
  171. package/src/BrandMoment/_docs/BrandMoment.stories.tsx +6 -10
  172. package/src/BrandMoment/_docs/ExampleHeaders.tsx +2 -2
  173. package/src/Calendar/CalendarRange/CalendarRange.tsx +7 -3
  174. package/src/Calendar/CalendarSingle/CalendarSingle.tsx +7 -3
  175. package/src/Calendar/LegacyCalendarRange/LegacyCalendarRange.tsx +7 -3
  176. package/src/Calendar/baseCalendarClassNames.module.scss +0 -4
  177. package/src/Checkbox/Checkbox/Checkbox.module.scss +2 -10
  178. package/src/Checkbox/Checkbox/Checkbox.tsx +6 -8
  179. package/src/ClearButton/ClearButton.tsx +2 -2
  180. package/src/Collapsible/Collapsible/Collapsible.tsx +5 -6
  181. package/src/Collapsible/Collapsible/_docs/Collapsible.stories.tsx +2 -2
  182. package/src/DateInput/DateInputWithIconButton/DateInputWithIconButton.module.scss +2 -7
  183. package/src/DateInput/DateInputWithIconButton/DateInputWithIconButton.tsx +2 -2
  184. package/src/DateRangePicker/DateRangePicker.tsx +2 -2
  185. package/src/EmptyState/_docs/EmptyState.stickersheet.stories.tsx +8 -2
  186. package/src/EmptyState/_docs/EmptyState.stories.tsx +4 -2
  187. package/src/ErrorPage/ErrorPage.tsx +5 -3
  188. package/src/FieldMessage/FieldMessage.tsx +6 -14
  189. package/src/Filter/FilterBar/FilterBar.spec.tsx +99 -12
  190. package/src/Filter/FilterBar/context/FilterBarContext.tsx +11 -2
  191. package/src/Filter/FilterBar/context/reducer/filterBarStateReducer.ts +7 -0
  192. package/src/Filter/FilterBar/context/reducer/setupFilterBarState.ts +1 -0
  193. package/src/Filter/FilterBar/context/types.ts +1 -0
  194. package/src/Filter/FilterBar/subcomponents/AddFiltersMenu/AddFiltersMenu.tsx +14 -4
  195. package/src/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.tsx +10 -2
  196. package/src/Filter/FilterBar/subcomponents/FilterBarMultiSelect/FilterBarMultiSelect.tsx +18 -3
  197. package/src/Filter/FilterButton/FilterButton/FilterButton.module.scss +1 -1
  198. package/src/Filter/FilterButton/FilterButton/FilterButton.tsx +5 -6
  199. package/src/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.tsx +2 -2
  200. package/src/Filter/FilterDateRangePicker/FilterDateRangePicker.spec.tsx +0 -1
  201. package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeInputField/DateRangeInputField.spec.tsx +2 -1
  202. package/src/Filter/FilterMultiSelect/FilterMultiSelect.tsx +3 -1
  203. package/src/Filter/FilterMultiSelect/context/MenuTriggerProvider/MenuTriggerProvider.tsx +4 -1
  204. package/src/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.tsx +2 -2
  205. package/src/Filter/FilterMultiSelect/subcomponents/SelectionControlButton/SelectionControlButton.module.scss +9 -10
  206. package/src/Filter/FilterSelect/FilterSelect.spec.tsx +4 -5
  207. package/src/GuidanceBlock/GuidanceBlock.module.scss +4 -5
  208. package/src/GuidanceBlock/GuidanceBlock.tsx +6 -2
  209. package/src/Icon/_docs/{Icon.stories.tsx → Icon.docs.stories.tsx} +1 -1
  210. package/src/Icon/_docs/Icon.mdx +1 -2
  211. package/src/Icon/_docs/Icon.stickersheet.stories.tsx +1 -1
  212. package/src/Icon/bin/update-icons.sh +1 -1
  213. package/src/Illustration/utils/usePausePlay.tsx +7 -5
  214. package/src/Input/Input/_docs/Input.stickersheet.stories.tsx +7 -5
  215. package/src/Input/Input/_docs/Input.stories.tsx +5 -3
  216. package/src/Input/InputRange/InputRange.module.scss +4 -4
  217. package/src/Input/InputSearch/InputSearch.module.scss +21 -21
  218. package/src/Input/InputSearch/InputSearch.tsx +2 -2
  219. package/src/Label/Label.module.scss +4 -0
  220. package/src/LikertScaleLegacy/LikertScaleLegacy.module.scss +7 -8
  221. package/src/LikertScaleLegacy/LikertScaleLegacy.tsx +2 -2
  222. package/src/Loading/LoadingGraphic/_docs/LoadingGraphic.stories.tsx +2 -2
  223. package/src/Loading/LoadingSpinner/LoadingSpinner.module.css +32 -0
  224. package/src/Loading/LoadingSpinner/LoadingSpinner.tsx +10 -54
  225. package/src/Loading/LoadingSpinner/_docs/LoadingSpinner.mdx +7 -2
  226. package/src/Loading/LoadingSpinner/_docs/LoadingSpinner.stickersheet.stories.tsx +2 -1
  227. package/src/Loading/LoadingSpinner/_docs/LoadingSpinner.stories.tsx +19 -0
  228. package/src/Loading/LoadingSpinner/subcomponents/SpinnerIcon.tsx +87 -0
  229. package/src/Loading/LoadingSpinner/subcomponents/index.ts +1 -0
  230. package/src/Modal/ConfirmationModal/ConfirmationModal.module.scss +2 -0
  231. package/src/Modal/ConfirmationModal/ConfirmationModal.tsx +32 -35
  232. package/src/Modal/ContextModal/ContextModal.module.scss +4 -4
  233. package/src/Modal/GenericModal/GenericModal.module.scss +8 -8
  234. package/src/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.module.scss +2 -2
  235. package/src/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.tsx +2 -2
  236. package/src/Modal/InputEditModal/InputEditModal.module.scss +4 -4
  237. package/src/MultiSelect/MultiSelect.spec.tsx +7 -3
  238. package/src/MultiSelect/subcomponents/Checkbox/Checkbox.module.scss +0 -6
  239. package/src/MultiSelect/subcomponents/Checkbox/Checkbox.tsx +10 -9
  240. package/src/MultiSelect/subcomponents/MultiSelectOptions/MultiSelectOptions.spec.tsx +11 -7
  241. package/src/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.tsx +5 -7
  242. package/src/Notification/subcomponents/CancelButton/CancelButton.tsx +2 -2
  243. package/src/Notification/subcomponents/GenericNotification/_mixins.scss +9 -8
  244. package/src/Notification/subcomponents/NotificationIcon/NotificationIcon.module.css +3 -0
  245. package/src/Notification/subcomponents/NotificationIcon/NotificationIcon.tsx +22 -16
  246. package/src/Pagination/subcomponents/DirectionalLink/DirectionalLink.module.scss +0 -4
  247. package/src/Pagination/subcomponents/DirectionalLink/DirectionalLink.tsx +13 -12
  248. package/src/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.module.scss +0 -1
  249. package/src/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.tsx +2 -2
  250. package/src/Popover/Popover.module.scss +3 -3
  251. package/src/Popover/Popover.tsx +2 -2
  252. package/src/Popover/utils/classMappers.tsx +6 -11
  253. package/src/RichTextEditor/RichTextEditor/RichTextEditor.module.scss +2 -2
  254. package/src/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/_docs/ToggleIconButton.stickersheet.stories.tsx +7 -7
  255. package/src/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/_docs/ToggleIconButton.stories.tsx +2 -2
  256. package/src/RichTextEditor/RichTextEditor/subcomponents/Toolbar/Toolbar.spec.tsx +7 -4
  257. package/src/RichTextEditor/RichTextEditor/subcomponents/Toolbar/_docs/Toolbar.stories.tsx +18 -12
  258. package/src/RichTextEditor/RichTextEditor/utils/controlmap.tsx +25 -18
  259. package/src/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/LinkPopover.tsx +4 -8
  260. package/src/Select/Select.module.scss +9 -7
  261. package/src/Select/Select.tsx +10 -7
  262. package/src/SplitButton/subcomponents/DropdownButton/DropdownButton.spec.tsx +4 -5
  263. package/src/SplitButton/subcomponents/DropdownButton/DropdownButton.tsx +2 -2
  264. package/src/Table/Table.module.scss +11 -7
  265. package/src/Table/Table.tsx +4 -8
  266. package/src/Table/_docs/Table.stickersheet.stories.tsx +4 -4
  267. package/src/Table/_docs/Table.stories.tsx +3 -3
  268. package/src/Tag/Tag.module.scss +2 -0
  269. package/src/Tag/Tag.tsx +7 -13
  270. package/src/Text/Text.module.scss +2 -0
  271. package/src/TextArea/TextArea.module.css +142 -0
  272. package/src/TextArea/TextArea.tsx +25 -53
  273. package/src/TextField/TextField.module.scss +10 -36
  274. package/src/TextField/TextField.spec.tsx +9 -4
  275. package/src/TextField/TextField.tsx +4 -6
  276. package/src/TextField/_docs/TextField.stickersheet.stories.tsx +9 -1
  277. package/src/TextField/_docs/TextField.stories.tsx +4 -3
  278. package/src/Tile/subcomponents/GenericTile/GenericTile.module.scss +7 -8
  279. package/src/Tile/subcomponents/GenericTile/GenericTile.tsx +3 -3
  280. package/src/TitleBlockZen/TitleBlockZen.module.scss +15 -21
  281. package/src/TitleBlockZen/TitleBlockZen.spec.tsx +1 -1
  282. package/src/TitleBlockZen/TitleBlockZen.tsx +6 -9
  283. package/src/TitleBlockZen/_docs/TitleBlockZen.stories.tsx +5 -5
  284. package/src/TitleBlockZen/subcomponents/MainActions.tsx +5 -3
  285. package/src/TitleBlockZen/subcomponents/MobileActions.module.scss +2 -2
  286. package/src/TitleBlockZen/subcomponents/MobileActions.tsx +13 -16
  287. package/src/TitleBlockZen/subcomponents/SecondaryActions.tsx +3 -3
  288. package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.scss +0 -3
  289. package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.tsx +2 -2
  290. package/src/Workflow/_docs/Workflow.stories.tsx +4 -5
  291. package/src/Workflow/_docs/WorkflowHeader.stories.tsx +4 -5
  292. package/src/Workflow/_docs/controls/controls.tsx +4 -4
  293. package/src/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.tsx +6 -31
  294. package/src/__actions__/Button/v1/Button/_docs/Button.mdx +1 -1
  295. package/src/__actions__/Button/v1/Button/_docs/Button.stickersheet.stories.tsx +6 -6
  296. package/src/__actions__/Button/v1/Button/_docs/Button.stories.tsx +7 -6
  297. package/src/__actions__/Button/v1/IconButton/_docs/IconButton.stickersheet.stories.tsx +7 -7
  298. package/src/__actions__/Button/v1/IconButton/_docs/IconButton.stories.tsx +5 -5
  299. package/src/__actions__/Button/v2/Button/_docs/Button.mdx +1 -1
  300. package/src/__actions__/Button/v2/Button/_docs/Button.stories.tsx +7 -6
  301. package/src/__actions__/Button/v2/IconButton/_docs/IconButton.stories.tsx +5 -5
  302. package/src/__actions__/Button/v3/_docs/ApiSpecification.mdx +1 -1
  303. package/src/__actions__/Button/v3/_docs/Button.docs.stories.tsx +1 -1
  304. package/src/__actions__/Button/v3/_docs/Button.mdx +1 -1
  305. package/src/__actions__/Button/v3/_docs/Button.spec.stories.tsx +1 -1
  306. package/src/__actions__/Button/v3/_docs/Button.stickersheet.stories.tsx +3 -3
  307. package/src/__actions__/Button/v3/_docs/Button.stories.tsx +1 -1
  308. package/src/__actions__/Menu/v1/_docs/Menu.stickersheet.stories.tsx +3 -3
  309. package/src/__actions__/Menu/v1/_docs/Menu.stories.tsx +3 -3
  310. package/src/__actions__/Menu/v1/_docs/MenuContentExample.tsx +6 -6
  311. package/src/__actions__/Menu/v1/_docs/examples.tsx +5 -5
  312. package/src/__actions__/Menu/v2/_docs/Menu.stories.tsx +3 -3
  313. package/src/__actions__/Menu/v3/_docs/ApiSpecification.mdx +1 -3
  314. package/src/__actions__/Menu/v3/_docs/Menu.docs.stories.tsx +46 -45
  315. package/src/__actions__/Menu/v3/_docs/Menu.mdx +1 -1
  316. package/src/__actions__/Menu/v3/_docs/Menu.spec.stories.tsx +21 -23
  317. package/src/__actions__/Menu/v3/_docs/Menu.stories.tsx +12 -15
  318. package/src/__future__/Icon/Icon.module.css +35 -0
  319. package/src/__future__/Icon/Icon.spec.tsx +36 -0
  320. package/src/__future__/Icon/Icon.tsx +85 -0
  321. package/src/__future__/Icon/_docs/Icon--api-specification.mdx +98 -0
  322. package/src/__future__/Icon/_docs/Icon--usage-guidelines.mdx +145 -0
  323. package/src/__future__/Icon/_docs/Icon.docs.module.css +17 -0
  324. package/src/__future__/Icon/_docs/Icon.docs.stories.tsx +524 -0
  325. package/src/__future__/Icon/_docs/Icon.stickersheet.stories.tsx +126 -0
  326. package/src/__future__/Icon/_docs/assets/interface-dont.png +0 -0
  327. package/src/__future__/Icon/_docs/assets/tooltip-dont.png +0 -0
  328. package/src/__future__/Icon/constants.ts +149 -0
  329. package/src/__future__/Icon/index.ts +1 -0
  330. package/src/__future__/Icon/material-symbols-metadata.json +3370 -0
  331. package/src/__future__/Icon/types.ts +11 -0
  332. package/src/__future__/Select/subcomponents/ListBox/ListBox.tsx +4 -7
  333. package/src/__future__/Select/subcomponents/Option/Option.tsx +2 -2
  334. package/src/__future__/Select/subcomponents/SelectToggle/SelectToggle.module.scss +1 -1
  335. package/src/__future__/Select/subcomponents/SelectToggle/SelectToggle.tsx +6 -9
  336. package/src/__future__/Tag/RemovableTag/_docs/RemovableTag.stories.tsx +0 -77
  337. package/src/__future__/Tag/RemovableTag/subcomponents/RemoveButton.module.scss +1 -58
  338. package/src/__future__/Tag/RemovableTag/subcomponents/RemoveButton.tsx +2 -12
  339. package/src/__future__/Tag/Tag/Tag.module.scss +1 -1
  340. package/src/__future__/Tag/Tag/_docs/Tag-migration-guide.stories.tsx +6 -17
  341. package/src/__future__/Tag/Tag/_docs/Tag.stickersheet.stories.tsx +5 -2
  342. package/src/__future__/Tag/Tag/_docs/Tag.stories.tsx +13 -6
  343. package/src/__future__/index.ts +1 -0
  344. package/src/__overlays__/Tooltip/v1/_docs/Tooltip.stickersheet.stories.tsx +10 -10
  345. package/src/__overlays__/Tooltip/v1/_docs/Tooltip.stories.tsx +7 -4
  346. package/src/__overlays__/Tooltip/v1/utils/isSemanticElement.spec.tsx +4 -11
  347. package/src/__overlays__/Tooltip/v3/_docs/Tooltip.docs.stories.tsx +10 -10
  348. package/src/__overlays__/Tooltip/v3/_docs/Tooltip.spec.stories.tsx +3 -3
  349. package/codemods/utils/getTagName.spec.ts +0 -24
  350. package/codemods/utils/getTagName.ts +0 -32
  351. package/dist/cjs/Loading/LoadingSpinner/LoadingSpinner.module.scss.cjs +0 -7
  352. package/dist/cjs/TextArea/TextArea.module.scss.cjs +0 -13
  353. package/dist/cjs/__future__/Tag/RemovableTag/subcomponents/RemoveTagIcon.cjs +0 -23
  354. package/dist/esm/Loading/LoadingSpinner/LoadingSpinner.module.scss.mjs +0 -5
  355. package/dist/esm/TextArea/TextArea.module.scss.mjs +0 -11
  356. package/dist/esm/__future__/Tag/RemovableTag/subcomponents/RemoveTagIcon.mjs +0 -15
  357. package/dist/types/__future__/Tag/RemovableTag/subcomponents/RemoveTagIcon.d.ts +0 -2
  358. package/src/Loading/LoadingSpinner/LoadingSpinner.module.scss +0 -16
  359. package/src/TextArea/TextArea.module.scss +0 -137
  360. package/src/__future__/Tag/RemovableTag/subcomponents/RemoveTagIcon.tsx +0 -21
@@ -115,14 +115,13 @@ $tab-container-height-medium-and-small-collapsed: 0;
115
115
  align-items: center;
116
116
  min-width: 0; // this is an important trick to prevent flexbox items from overflowing
117
117
  z-index: $ca-z-index-dropdown; // this ensures the page switcher dropdown sits over nav tabs
118
+ transform: translateY(-0.0833em);
118
119
 
119
120
  .hasSubtitle & {
120
121
  @include title-block-under-1366 {
121
122
  transform: translateY(-0.3833em);
122
123
  }
123
124
  }
124
-
125
- transform: translateY(-0.0833em);
126
125
  }
127
126
 
128
127
  .titleAndSubtitleInner {
@@ -243,13 +242,12 @@ $tab-container-height-medium-and-small-collapsed: 0;
243
242
  line-height: $typography-paragraph-small-line-height;
244
243
  letter-spacing: $typography-paragraph-small-letter-spacing;
245
244
  max-width: 230px;
245
+ margin-inline: var(--spacing-12) 0;
246
246
 
247
247
  .adminVariant & {
248
248
  color: $color-purple-800;
249
249
  }
250
250
 
251
- @include ca-margin($start: calc(#{$ca-grid} / 2));
252
-
253
251
  @include title-block-under-1366 {
254
252
  white-space: nowrap;
255
253
  text-overflow: ellipsis;
@@ -285,9 +283,7 @@ $tab-container-height-medium-and-small-collapsed: 0;
285
283
 
286
284
  .sectionTitleOverride.sectionTitleOverride {
287
285
  white-space: nowrap;
288
-
289
- @include ca-margin($end: $ca-grid);
290
-
286
+ margin-inline: 0 var(--spacing-24);
291
287
  font-family: $typography-heading-2-font-family;
292
288
  font-weight: $typography-heading-2-font-weight;
293
289
  font-size: $typography-heading-2-font-size;
@@ -316,10 +312,6 @@ $tab-container-height-medium-and-small-collapsed: 0;
316
312
  }
317
313
 
318
314
  .sectionTitleDescription {
319
- .sectionTitle + & {
320
- margin-top: calc(#{$ca-grid} / 4);
321
- }
322
-
323
315
  color: $color-white;
324
316
  max-width: 780px;
325
317
  font-family: $typography-paragraph-small-font-family;
@@ -328,6 +320,10 @@ $tab-container-height-medium-and-small-collapsed: 0;
328
320
  line-height: $typography-paragraph-small-line-height;
329
321
  letter-spacing: $typography-paragraph-small-letter-spacing;
330
322
 
323
+ .sectionTitle + & {
324
+ margin-top: var(--spacing-6);
325
+ }
326
+
331
327
  &.dark {
332
328
  color: rgba($color-purple-800-rgb, 0.7);
333
329
  }
@@ -360,30 +356,28 @@ $tab-container-height-medium-and-small-collapsed: 0;
360
356
  }
361
357
 
362
358
  .tag {
363
- @include ca-margin($start: calc(#{$ca-grid} / 2));
364
-
365
359
  display: flex;
366
360
  align-items: center;
361
+ margin-inline: var(--spacing-12) 0;
367
362
 
368
363
  @include title-block-medium-and-small {
369
364
  display: none;
370
365
  }
371
366
 
372
367
  + .pageSwitcherSelectNextToTitle {
373
- @include ca-margin($start: 0);
368
+ margin-inline-start: 0;
374
369
  }
375
370
  }
376
371
 
377
372
  .pageSwitcherSelectNextToTitle {
378
- @include ca-margin($start: calc(#{$ca-grid} / 2));
379
-
380
373
  flex-shrink: 0;
381
- width: 10 * $ca-grid;
374
+ width: var(--spacing-240);
375
+ margin-inline: var(--spacing-12) 0;
382
376
  }
383
377
 
384
378
  .pageSwitcherSelectUnderneathTitle {
385
379
  flex-shrink: 0;
386
- max-width: 10 * $ca-grid;
380
+ max-width: var(--spacing-240);
387
381
  }
388
382
 
389
383
  .navigationTabsContainer {
@@ -525,6 +519,7 @@ $tab-container-height-medium-and-small-collapsed: 0;
525
519
  align-items: center;
526
520
  top: 50%;
527
521
  transform: translateY(-50%);
522
+ text-decoration: none;
528
523
 
529
524
  @include ca-position(
530
525
  $start: calc(-#{$breadcrumb-circle-width} - #{$ca-grid})
@@ -557,11 +552,10 @@ $tab-container-height-medium-and-small-collapsed: 0;
557
552
 
558
553
  @media only screen and (max-width: $breadcrumb-breakpoint-width) {
559
554
  position: relative;
555
+ transform: translateY(0);
556
+ margin-inline: 0 var(--spacing-12);
560
557
 
561
- @include ca-margin($end: calc(#{$ca-grid} / 2));
562
558
  @include ca-position($start: 0);
563
-
564
- transform: translateY(0);
565
559
  }
566
560
 
567
561
  @include title-block-medium-and-small {
@@ -258,7 +258,7 @@ describe("<TitleBlockZen />", () => {
258
258
  </TitleBlockZen>
259
259
  )
260
260
  const btn = getByTestId("title-block-primary-action-button")
261
- expect(btn.textContent).toEqual(primaryActionAsMenu.label)
261
+ expect(btn).toHaveAccessibleName(primaryActionAsMenu.label)
262
262
  await user.click(btn)
263
263
 
264
264
  await waitFor(() => {
@@ -2,10 +2,10 @@ import React from "react"
2
2
  import classnames from "classnames"
3
3
  import { Avatar } from "~components/Avatar"
4
4
  import { Heading } from "~components/Heading"
5
- import { ArrowLeftIcon, ArrowRightIcon, HamburgerIcon } from "~components/Icon"
6
5
  import { Select } from "~components/Select"
7
6
  import { Tag } from "~components/Tag"
8
7
  import { IconButton } from "~components/__actions__/v2"
8
+ import { Icon } from "~components/__future__/Icon"
9
9
  import { useMediaQueries } from "~components/utils/useMediaQueries"
10
10
  import { MainActions } from "./subcomponents/MainActions"
11
11
  import { MobileActions } from "./subcomponents/MobileActions"
@@ -157,15 +157,12 @@ const Breadcrumb = ({
157
157
  textDirection,
158
158
  }: TitleBlockBreadcrumbProps): JSX.Element => {
159
159
  const { path, handleClick, text, render } = breadcrumb
160
- const icon =
161
- textDirection === "rtl" ? (
162
- <ArrowRightIcon role="presentation" />
163
- ) : (
164
- <ArrowLeftIcon role="presentation" />
165
- )
160
+
166
161
  const InnerContents = (): JSX.Element => (
167
162
  <>
168
- <div className={styles.circle}>{icon}</div>
163
+ <div className={styles.circle}>
164
+ <Icon name="arrow_back" isPresentational shouldMirrorInRTL />
165
+ </div>
169
166
  <span
170
167
  className={styles.breadcrumbTextLink}
171
168
  data-automation-id={textAutomationId}
@@ -318,7 +315,7 @@ export const TitleBlockZen = ({
318
315
  <div className={styles.hamburger}>
319
316
  <IconButton
320
317
  onClick={handleHamburgerClick}
321
- icon={<HamburgerIcon role="presentation" />}
318
+ icon={<Icon name="menu" isPresentational />}
322
319
  label="Open menu"
323
320
  reversed={isReversed(variant)}
324
321
  />
@@ -1,6 +1,6 @@
1
1
  import React from "react"
2
2
  import { Meta, StoryObj } from "@storybook/react"
3
- import { AddIcon, StarOnIcon } from "~components/Icon"
3
+ import { Icon } from "~components/__future__/Icon"
4
4
  import { assetUrl } from "~components/utils/hostedAssets"
5
5
  import { StickerSheet } from "~storybook/components/StickerSheet"
6
6
  import { NavigationTab, TitleBlockZen } from "../index"
@@ -16,7 +16,7 @@ const SECONDARY_ACTIONS = [
16
16
  {
17
17
  onClick: (): void => alert("test"),
18
18
  label: "Secondary menu action 2",
19
- icon: <StarOnIcon role="presentation" />,
19
+ icon: <Icon name="star" isPresentational isFilled />,
20
20
  },
21
21
  ],
22
22
  },
@@ -41,7 +41,7 @@ const meta = {
41
41
  },
42
42
  primaryAction: {
43
43
  label: "Primary link",
44
- icon: <AddIcon role="presentation" />,
44
+ icon: <Icon name="add" isPresentational />,
45
45
  disabled: true,
46
46
  href: "#",
47
47
  },
@@ -53,11 +53,11 @@ const meta = {
53
53
  secondaryOverflowMenuItems: [
54
54
  {
55
55
  label: "Overflow action 1",
56
- icon: <StarOnIcon role="presentation" />,
56
+ icon: <Icon name="star" isPresentational isFilled />,
57
57
  },
58
58
  {
59
59
  label: "Overflow link 1",
60
- icon: <StarOnIcon role="presentation" />,
60
+ icon: <Icon name="star" isPresentational isFilled />,
61
61
  },
62
62
  ],
63
63
  handleHamburgerClick: (): void => alert("Hamburger clicked"),
@@ -1,6 +1,6 @@
1
1
  import React from "react"
2
- import { ChevronDownIcon, MeatballsIcon } from "~components/Icon"
3
2
  import { Menu, MenuList, Button, IconButton } from "~components/__actions__/v2"
3
+ import { Icon } from "~components/__future__/Icon"
4
4
  import { TITLE_BLOCK_ZEN_SECONDARY_MENU_HTML_ID } from "../constants"
5
5
  import {
6
6
  DefaultActionProps,
@@ -71,7 +71,9 @@ export const MainActions = ({
71
71
  label={primaryAction.label}
72
72
  primary
73
73
  reversed={reversed}
74
- icon={<ChevronDownIcon role="presentation" />}
74
+ icon={
75
+ <Icon name="keyboard_arrow_down" isPresentational />
76
+ }
75
77
  iconPosition="end"
76
78
  data-automation-id="title-block-primary-action-button"
77
79
  data-testid="title-block-primary-action-button"
@@ -162,7 +164,7 @@ export const MainActions = ({
162
164
  id={TITLE_BLOCK_ZEN_SECONDARY_MENU_HTML_ID}
163
165
  label="Open secondary menu"
164
166
  reversed={reversed}
165
- icon={<MeatballsIcon role="presentation" />}
167
+ icon={<Icon name="more_horiz" isPresentational />}
166
168
  />
167
169
  }
168
170
  >
@@ -77,8 +77,6 @@ $slide-up-duration: 0.4s;
77
77
  }
78
78
 
79
79
  .mobileActionsPrimaryLabel {
80
- @include ca-padding($start: $ca-grid * 0.75);
81
-
82
80
  text-align: left;
83
81
  text-decoration: none;
84
82
  color: $color-white;
@@ -87,6 +85,8 @@ $slide-up-duration: 0.4s;
87
85
  font-size: $typography-button-primary-font-size;
88
86
  line-height: $typography-button-primary-line-height;
89
87
  letter-spacing: $typography-button-primary-letter-spacing;
88
+
89
+ @include ca-padding($start: $ca-grid * 0.75);
90
90
  }
91
91
 
92
92
  .mobileActionsPrimaryButton,
@@ -1,13 +1,13 @@
1
1
  import React, { useCallback, useEffect, useState } from "react"
2
2
  import classnames from "classnames"
3
3
  import { FocusOn } from "react-focus-on"
4
- import { ChevronDownIcon, ChevronUpIcon } from "~components/Icon"
5
4
  import {
6
5
  MenuItem,
7
6
  MenuList,
8
7
  MenuHeading,
9
8
  ButtonProps,
10
9
  } from "~components/__actions__/v2"
10
+ import { Icon } from "~components/__future__/Icon"
11
11
  import { TITLE_BLOCK_ZEN_OTHER_ACTIONS_HTML_ID } from "../constants"
12
12
  import {
13
13
  DefaultActionProps,
@@ -352,11 +352,10 @@ const DrawerHandle = ({
352
352
  >
353
353
  {primaryAction.label}
354
354
  <span className={styles.mobileActionsChevronSquare}>
355
- {isOpen ? (
356
- <ChevronDownIcon role="presentation" />
357
- ) : (
358
- <ChevronUpIcon role="presentation" />
359
- )}
355
+ <Icon
356
+ name={isOpen ? "keyboard_arrow_down" : "keyboard_arrow_up"}
357
+ isPresentational
358
+ />
360
359
  </span>
361
360
  </button>
362
361
  </div>
@@ -407,11 +406,10 @@ const DrawerHandle = ({
407
406
  id={TITLE_BLOCK_ZEN_OTHER_ACTIONS_HTML_ID}
408
407
  aria-label="Other actions"
409
408
  >
410
- {isOpen ? (
411
- <ChevronDownIcon role="presentation" />
412
- ) : (
413
- <ChevronUpIcon role="presentation" />
414
- )}
409
+ <Icon
410
+ name={isOpen ? "keyboard_arrow_down" : "keyboard_arrow_up"}
411
+ isPresentational
412
+ />
415
413
  </button>
416
414
  )}
417
415
  </div>
@@ -440,11 +438,10 @@ const DrawerHandle = ({
440
438
  >
441
439
  {renderDrawerHandleLabel("Other actions")}
442
440
  <span className={styles.mobileActionsChevronSquare}>
443
- {isOpen ? (
444
- <ChevronDownIcon role="presentation" />
445
- ) : (
446
- <ChevronUpIcon role="presentation" />
447
- )}
441
+ <Icon
442
+ name={isOpen ? "keyboard_arrow_down" : "keyboard_arrow_up"}
443
+ isPresentational
444
+ />
448
445
  </span>
449
446
  </button>
450
447
  </div>
@@ -1,6 +1,6 @@
1
1
  import React from "react"
2
- import { ChevronDownIcon, MeatballsIcon } from "~components/Icon"
3
2
  import { Menu, MenuList, Button, IconButton } from "~components/__actions__/v2"
3
+ import { Icon } from "~components/__future__/Icon"
4
4
  import styles from "../TitleBlockZen.module.scss"
5
5
  import { TITLE_BLOCK_ZEN_SECONDARY_MENU_HTML_ID } from "../constants"
6
6
  import { SecondaryActionsProps, TitleBlockMenuItemProps } from "../types"
@@ -25,7 +25,7 @@ const renderSecondaryOverflowMenu = (
25
25
  <IconButton
26
26
  label="Open secondary menu"
27
27
  reversed={reversed}
28
- icon={<MeatballsIcon role="presentation" />}
28
+ icon={<Icon name="more_horiz" isPresentational />}
29
29
  id={TITLE_BLOCK_ZEN_SECONDARY_MENU_HTML_ID}
30
30
  />
31
31
  }
@@ -63,7 +63,7 @@ export const SecondaryActions = ({
63
63
  secondary
64
64
  label={action.label}
65
65
  reversed={reversed}
66
- icon={<ChevronDownIcon role="presentation" />}
66
+ icon={<Icon name="keyboard_arrow_down" isPresentational />}
67
67
  iconPosition="end"
68
68
  />
69
69
  }
@@ -51,9 +51,6 @@ $focus-ring-offset: 1px;
51
51
  background-color: $color-white;
52
52
  border: $border-borderless-border-width $border-borderless-border-style
53
53
  $border-borderless-border-color;
54
- box-sizing: content-box;
55
- width: calc(#{$spacing-md} * 0.9);
56
- height: calc(#{$spacing-md} * 0.9);
57
54
  border-radius: $spacing-md;
58
55
  transition:
59
56
  left $animation-timing,
@@ -1,6 +1,6 @@
1
1
  import React, { InputHTMLAttributes } from "react"
2
2
  import classnames from "classnames"
3
- import { CheckIcon } from "~components/Icon"
3
+ import { Icon } from "~components/__future__/Icon"
4
4
  import { OverrideClassName } from "~components/types/OverrideClassName"
5
5
  import styles from "./ToggleSwitch.module.scss"
6
6
 
@@ -41,7 +41,7 @@ export const ToggleSwitch = ({
41
41
  />
42
42
  <span className={styles.track}>
43
43
  <span className={styles.thumb}>
44
- <CheckIcon classNameOverride={styles.checkIcon} role="presentation" />
44
+ <Icon name="check" isPresentational className={styles.checkIcon} />
45
45
  </span>
46
46
  </span>
47
47
  </span>
@@ -1,11 +1,10 @@
1
1
  import React from "react"
2
2
  import { Meta, StoryObj } from "@storybook/react"
3
3
  import { Heading } from "~components/Heading"
4
- import { CloseIcon, VisibleIcon } from "~components/Icon"
5
4
  import { Text } from "~components/Text"
6
5
  import { TextField } from "~components/TextField"
7
6
  import { Button } from "~components/__actions__/v2"
8
- import { Tag } from "~components/__future__"
7
+ import { Icon, Tag } from "~components/__future__"
9
8
  import { Workflow } from "../"
10
9
  import { WorkflowControls } from "./controls"
11
10
 
@@ -55,7 +54,7 @@ const meta = {
55
54
  <Button
56
55
  key="would-use-uui-2"
57
56
  label="Save and close"
58
- icon={<CloseIcon role="presentation" />}
57
+ icon={<Icon name="close" isPresentational />}
59
58
  secondary
60
59
  iconPosition="end"
61
60
  />,
@@ -85,14 +84,14 @@ export const MultipleActions: Story = {
85
84
  <Button
86
85
  key="would-use-uui-1"
87
86
  label="Preview"
88
- icon={<VisibleIcon role="presentation" />}
87
+ icon={<Icon name="visibility" isPresentational isFilled />}
89
88
  secondary
90
89
  iconPosition="start"
91
90
  />,
92
91
  <Button
93
92
  key="would-use-uui-2"
94
93
  label="Save and close"
95
- icon={<CloseIcon role="presentation" />}
94
+ icon={<Icon name="close" isPresentational />}
96
95
  secondary
97
96
  iconPosition="end"
98
97
  onClick={(): void => alert("mock example of a save action")}
@@ -1,8 +1,7 @@
1
1
  import React from "react"
2
2
  import { Meta, StoryObj } from "@storybook/react"
3
- import { CloseIcon, VisibleIcon } from "~components/Icon"
4
3
  import { Button } from "~components/__actions__/v2"
5
- import { Tag } from "~components/__future__"
4
+ import { Icon, Tag } from "~components/__future__"
6
5
  import { Workflow } from "../"
7
6
  import { WorkflowControls } from "./controls"
8
7
 
@@ -20,7 +19,7 @@ const meta = {
20
19
  <Button
21
20
  key="would-use-uui-2"
22
21
  label="Save and close"
23
- icon={<CloseIcon role="presentation" />}
22
+ icon={<Icon name="close" isPresentational />}
24
23
  secondary
25
24
  iconPosition="end"
26
25
  onClick={(): void => alert("mock example of a save action")}
@@ -51,14 +50,14 @@ export const MultipleActions: Story = {
51
50
  <Button
52
51
  key="would-use-uui-1"
53
52
  label="Preview"
54
- icon={<VisibleIcon role="presentation" />}
53
+ icon={<Icon name="visibility" isPresentational isFilled />}
55
54
  secondary
56
55
  iconPosition="start"
57
56
  />,
58
57
  <Button
59
58
  key="would-use-uui-2"
60
59
  label="Save and close"
61
- icon={<CloseIcon role="presentation" />}
60
+ icon={<Icon name="close" isPresentational />}
62
61
  secondary
63
62
  iconPosition="end"
64
63
  onClick={(): void => alert("mock example of a save action")}
@@ -1,7 +1,7 @@
1
1
  import React from "react"
2
2
  import { ArgTypes } from "@storybook/react"
3
- import { CloseIcon, VisibleIcon } from "~components/Icon"
4
3
  import { Button } from "~components/__actions__/v2"
4
+ import { Icon } from "~components/__future__/Icon"
5
5
 
6
6
  export const WorkflowControls: Partial<ArgTypes> = {
7
7
  headerActions: {
@@ -14,7 +14,7 @@ export const WorkflowControls: Partial<ArgTypes> = {
14
14
  <Button
15
15
  key="would-use-uui-1"
16
16
  label="Close"
17
- icon={<CloseIcon role="presentation" />}
17
+ icon={<Icon name="close" isPresentational />}
18
18
  secondary
19
19
  iconPosition="end"
20
20
  />,
@@ -23,14 +23,14 @@ export const WorkflowControls: Partial<ArgTypes> = {
23
23
  <Button
24
24
  key="would-use-uui-1"
25
25
  label="Close"
26
- icon={<CloseIcon role="presentation" />}
26
+ icon={<Icon name="close" isPresentational />}
27
27
  secondary
28
28
  iconPosition="end"
29
29
  />,
30
30
  <Button
31
31
  key="would-use-uui-2"
32
32
  label="Preview"
33
- icon={<VisibleIcon role="presentation" />}
33
+ icon={<Icon name="visibility" isPresentational isFilled />}
34
34
  secondary
35
35
  iconPosition="start"
36
36
  />,
@@ -1,11 +1,7 @@
1
1
  import React from "react"
2
2
  import classnames from "classnames"
3
- import {
4
- IndicatorActiveIcon,
5
- IndicatorInactiveIcon,
6
- SuccessIcon,
7
- } from "~components/Icon"
8
3
  import { VisuallyHidden } from "~components/VisuallyHidden"
4
+ import { Icon } from "~components/__future__/Icon"
9
5
  import styles from "./ProgressStepper.module.css"
10
6
 
11
7
  export type Step = {
@@ -34,39 +30,18 @@ const getStepStatus = (
34
30
  } => {
35
31
  if (isComplete) {
36
32
  return {
37
- icon: (
38
- <SuccessIcon
39
- key={index}
40
- inheritSize
41
- role="presentation"
42
- classNameOverride="success"
43
- />
44
- ),
33
+ icon: <Icon key={index} name="check_circle" isPresentational isFilled />,
45
34
  accessibleName: `Completed: ${step.label}`,
46
35
  }
47
36
  }
48
37
  if (isCurrentStep) {
49
38
  return {
50
- icon: (
51
- <IndicatorActiveIcon
52
- key={index}
53
- inheritSize
54
- role="presentation"
55
- classNameOverride="active"
56
- />
57
- ),
39
+ icon: <Icon key={index} name="radio_button_checked" isPresentational />,
58
40
  accessibleName: `Current: ${step.label}`,
59
41
  }
60
42
  }
61
43
  return {
62
- icon: (
63
- <IndicatorInactiveIcon
64
- key={index}
65
- inheritSize
66
- classNameOverride="incomplete"
67
- role="presentation"
68
- />
69
- ),
44
+ icon: <Icon key={index} name="radio_button_unchecked" isPresentational />,
70
45
  accessibleName: `Not started: ${step.label}`,
71
46
  }
72
47
  }
@@ -91,7 +66,7 @@ export const ProgressStepper = ({
91
66
  {steps.map((step, index: number) => {
92
67
  const isCurrentStep = currentStepIndex === index
93
68
  const isCompletedStep = index < currentStepIndex || isComplete
94
- const { accessibleName, icon: Icon } = getStepStatus(
69
+ const { accessibleName, icon } = getStepStatus(
95
70
  isCompletedStep,
96
71
  isCurrentStep,
97
72
  step,
@@ -122,7 +97,7 @@ export const ProgressStepper = ({
122
97
  [styles.isCompleted]: isCompletedStep,
123
98
  })}
124
99
  >
125
- {Icon}
100
+ {icon}
126
101
  </span>
127
102
  </div>
128
103
  {index < steps.length - 1 && (
@@ -47,7 +47,7 @@ A disabled Button prevents user interaction. It doesn't appear in the tab order,
47
47
 
48
48
  Use any <LinkTo pageId="components-icons">Icon</LinkTo> component in the `icon` prop.
49
49
 
50
- <Canvas of={ButtonStories.Icon} />
50
+ <Canvas of={ButtonStories.IconStory} />
51
51
 
52
52
  #### Icon position
53
53
 
@@ -1,6 +1,6 @@
1
1
  import React from "react"
2
2
  import { Meta } from "@storybook/react"
3
- import { AddIcon } from "~components/Icon"
3
+ import { Icon } from "~components/__future__/Icon"
4
4
  import {
5
5
  StickerSheet,
6
6
  StickerSheetStory,
@@ -8,7 +8,7 @@ import {
8
8
  import { Button, ButtonProps } from "../index"
9
9
 
10
10
  export default {
11
- title: "Actions/Button/v1",
11
+ title: "Actions/Button/Button (v1)",
12
12
  parameters: {
13
13
  chromatic: { disable: false },
14
14
  controls: { disable: true },
@@ -69,12 +69,12 @@ const StickerSheetTemplate: StickerSheetStory = {
69
69
 
70
70
  const ICON_LEFT_PROPS: ButtonProps = {
71
71
  label: "Label",
72
- icon: <AddIcon role="presentation" />,
72
+ icon: <Icon name="add" isPresentational />,
73
73
  }
74
74
 
75
75
  const ICON_RIGHT_PROPS: ButtonProps = {
76
76
  label: "Label",
77
- icon: <AddIcon role="presentation" />,
77
+ icon: <Icon name="arrow_forward" isPresentational shouldMirrorInRTL />,
78
78
  iconPosition: "end",
79
79
  }
80
80
 
@@ -84,12 +84,12 @@ const StickerSheetTemplate: StickerSheetStory = {
84
84
  }
85
85
  const BADGE_LEFT_PROPS: ButtonProps = {
86
86
  ...BADGE_PROPS,
87
- icon: <AddIcon role="presentation" />,
87
+ icon: <Icon name="add" isPresentational />,
88
88
  }
89
89
 
90
90
  const BADGE_RIGHT_PROPS: ButtonProps = {
91
91
  ...BADGE_PROPS,
92
- icon: <AddIcon role="presentation" />,
92
+ icon: <Icon name="arrow_forward" isPresentational shouldMirrorInRTL />,
93
93
  iconPosition: "end",
94
94
  }
95
95
 
@@ -1,12 +1,12 @@
1
1
  import React, { useState } from "react"
2
2
  import { StoryObj, Meta } from "@storybook/react"
3
- import { AddIcon, ArrowRightIcon } from "~components/Icon"
4
3
  import { LoadingInput } from "~components/Loading"
5
4
  import { TextField } from "~components/TextField"
5
+ import { Icon } from "~components/__future__/Icon"
6
6
  import { Button } from "../index"
7
7
 
8
8
  const meta = {
9
- title: "Actions/Button/v1",
9
+ title: "Actions/Button/Button (v1)",
10
10
  component: Button,
11
11
  args: {
12
12
  label: "Label",
@@ -65,12 +65,13 @@ export const Disabled: Story = {
65
65
  const sourceCodeIcon = `
66
66
  import { Button, AddIcon } from "@kaizen/components"
67
67
 
68
- <Button label="Label" icon={<AddIcon role="presentation" />} />
68
+ <Button label="Label" icon={<Icon name="add" isPresentational />} />
69
69
  `
70
70
 
71
- export const Icon: Story = {
71
+ export const IconStory: Story = {
72
+ name: "Icon",
72
73
  args: {
73
- icon: <AddIcon role="presentation" />,
74
+ icon: <Icon name="add" isPresentational />,
74
75
  },
75
76
  parameters: {
76
77
  docs: { source: { code: sourceCodeIcon } },
@@ -79,7 +80,7 @@ export const Icon: Story = {
79
80
 
80
81
  export const IconPosition: Story = {
81
82
  args: {
82
- icon: <ArrowRightIcon role="presentation" />,
83
+ icon: <Icon name="arrow_forward" isPresentational shouldMirrorInRTL />,
83
84
  iconPosition: "end",
84
85
  },
85
86
  }