@kaizen/components 1.71.0 → 1.73.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 (710) hide show
  1. package/codemods/README.md +3 -3
  2. package/codemods/upgradeIconV1/getNewIconPropsFromOldIconName.ts +1 -1
  3. package/codemods/upgradeIconV1/index.ts +1 -1
  4. package/codemods/upgradeIconV1/upgradeIconV1.spec.ts +4 -4
  5. package/codemods/upgradeIconV1/upgradeIconV1.ts +1 -1
  6. package/codemods/utils/getKaioTagName.spec.ts +4 -4
  7. package/codemods/utils/getKaioTagName.ts +1 -1
  8. package/codemods/utils/updateKaioImports.spec.ts +20 -20
  9. package/dist/cjs/Avatar/Avatar.cjs +1 -1
  10. package/dist/cjs/ButtonGroup/ButtonGroup.cjs +4 -4
  11. package/dist/cjs/Calendar/CalendarRange/CalendarRange.cjs +1 -1
  12. package/dist/cjs/Calendar/CalendarSingle/CalendarSingle.cjs +1 -1
  13. package/dist/cjs/Calendar/LegacyCalendarRange/LegacyCalendarRange.cjs +1 -1
  14. package/dist/cjs/Checkbox/Checkbox/Checkbox.cjs +1 -1
  15. package/dist/cjs/ClearButton/ClearButton.cjs +1 -1
  16. package/dist/cjs/Collapsible/Collapsible/Collapsible.cjs +1 -1
  17. package/dist/cjs/DateInput/DateInputWithIconButton/DateInputWithIconButton.cjs +1 -1
  18. package/dist/cjs/DateRangePicker/DateRangePicker.cjs +1 -1
  19. package/dist/cjs/ErrorPage/ErrorPage.cjs +1 -1
  20. package/dist/cjs/FieldMessage/FieldMessage.cjs +1 -1
  21. package/dist/cjs/Filter/FilterBar/subcomponents/AddFiltersMenu/AddFiltersMenu.cjs +1 -1
  22. package/dist/cjs/Filter/FilterButton/FilterButton/FilterButton.cjs +1 -1
  23. package/dist/cjs/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.cjs +3 -3
  24. package/dist/cjs/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.cjs +1 -1
  25. package/dist/cjs/Filter/FilterSelect/FilterSelect.cjs +12 -12
  26. package/dist/cjs/Focusable/Focusable.module.scss.cjs +6 -0
  27. package/dist/cjs/GuidanceBlock/GuidanceBlock.cjs +3 -3
  28. package/dist/cjs/Illustration/utils/usePausePlay.cjs +1 -1
  29. package/dist/cjs/Input/InputSearch/InputSearch.cjs +1 -1
  30. package/dist/cjs/LikertScaleLegacy/LikertScaleLegacy.cjs +1 -1
  31. package/dist/cjs/Link/Link.cjs +45 -0
  32. package/dist/cjs/Link/Link.module.css.cjs +20 -0
  33. package/dist/cjs/Link/subcomponents/LinkContent.cjs +34 -0
  34. package/dist/cjs/LinkButton/LinkButton.cjs +3 -3
  35. package/dist/cjs/Menu/index.cjs +0 -1
  36. package/dist/cjs/Modal/ConfirmationModal/ConfirmationModal.cjs +1 -1
  37. package/dist/cjs/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.cjs +1 -1
  38. package/dist/cjs/MultiSelect/subcomponents/Checkbox/Checkbox.cjs +1 -1
  39. package/dist/cjs/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.cjs +2 -2
  40. package/dist/cjs/Notification/subcomponents/CancelButton/CancelButton.cjs +1 -1
  41. package/dist/cjs/Notification/subcomponents/NotificationIcon/NotificationIcon.cjs +1 -1
  42. package/dist/cjs/Pagination/Pagination.cjs +1 -0
  43. package/dist/cjs/Pagination/subcomponents/DirectionalLink/DirectionalLink.cjs +1 -1
  44. package/dist/cjs/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.cjs +1 -1
  45. package/dist/cjs/Popover/Popover.cjs +1 -1
  46. package/dist/cjs/Popover/utils/classMappers.cjs +1 -1
  47. package/dist/cjs/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/ToggleIconButton.cjs +2 -2
  48. package/dist/cjs/RichTextEditor/RichTextEditor/utils/controlmap.cjs +1 -1
  49. package/dist/cjs/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/LinkPopover.cjs +1 -1
  50. package/dist/cjs/Select/Select.cjs +1 -1
  51. package/dist/cjs/SplitButton/subcomponents/DropdownButton/DropdownButton.cjs +1 -1
  52. package/dist/cjs/Table/Table.cjs +3 -3
  53. package/dist/cjs/Tag/Tag.cjs +1 -1
  54. package/dist/cjs/TextField/TextField.cjs +1 -1
  55. package/dist/cjs/Tile/subcomponents/GenericTile/GenericTile.cjs +1 -1
  56. package/dist/cjs/TitleBlockZen/TitleBlockZen.cjs +1 -1
  57. package/dist/cjs/TitleBlockZen/subcomponents/MainActions.cjs +1 -1
  58. package/dist/cjs/TitleBlockZen/subcomponents/MobileActions.cjs +1 -1
  59. package/dist/cjs/TitleBlockZen/subcomponents/SecondaryActions.cjs +1 -1
  60. package/dist/cjs/ToggleSwitch/ToggleSwitch/ToggleSwitch.cjs +1 -1
  61. package/dist/cjs/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.cjs +1 -1
  62. package/dist/cjs/{__rc__ → __next__}/Button/Button.cjs +1 -1
  63. package/dist/cjs/__next__/Button/Button.module.css.cjs +21 -0
  64. package/dist/cjs/__next__/Button/subcomponents/ButtonContent/ButtonContent.module.css.cjs +9 -0
  65. package/dist/cjs/__next__/Button/subcomponents/PendingContent/PendingContent.module.css.cjs +8 -0
  66. package/dist/cjs/__next__/Icon/Icon.module.css.cjs +11 -0
  67. package/dist/cjs/{__rc__ → __next__}/Menu/Menu.module.css.cjs +1 -1
  68. package/dist/cjs/__next__/Menu/MenuItem.module.css.cjs +8 -0
  69. package/dist/cjs/__next__/Select/Select.module.scss.cjs +7 -0
  70. package/dist/cjs/{__rc__ → __next__}/Select/subcomponents/ListBox/ListBox.cjs +1 -1
  71. package/dist/cjs/{__rc__ → __next__}/Select/subcomponents/ListBox/ListBox.module.scss.cjs +1 -1
  72. package/dist/cjs/__next__/Select/subcomponents/ListBoxSection/ListBoxSection.module.scss.cjs +8 -0
  73. package/dist/cjs/__next__/Select/subcomponents/Option/Option.module.scss.cjs +10 -0
  74. package/dist/cjs/{__rc__ → __next__}/Select/subcomponents/SectionDivider/SectionDivider.module.scss.cjs +1 -1
  75. package/dist/cjs/{__rc__ → __next__}/Select/subcomponents/SelectPopoverContents/SelectPopoverContents.module.scss.cjs +1 -1
  76. package/dist/cjs/__next__/Select/subcomponents/SelectToggle/SelectToggle.module.scss.cjs +14 -0
  77. package/dist/cjs/__next__/Tabs/subcomponents/Tab/Tab.module.css.cjs +7 -0
  78. package/dist/cjs/{__rc__ → __next__}/Tabs/subcomponents/TabList/TabList.cjs +1 -1
  79. package/dist/cjs/__next__/Tabs/subcomponents/TabList/TabList.module.css.cjs +10 -0
  80. package/dist/cjs/__next__/Tag/RemovableTag/RemovableTag.module.scss.cjs +6 -0
  81. package/dist/cjs/__next__/Tag/RemovableTag/subcomponents/RemoveButton.module.scss.cjs +6 -0
  82. package/dist/cjs/__next__/Tag/Tag/Tag.module.scss.cjs +14 -0
  83. package/dist/cjs/{__rc__ → __next__}/Tooltip/OverlayArrow.cjs +1 -1
  84. package/dist/cjs/__next__/Tooltip/OverlayArrow.module.scss.cjs +7 -0
  85. package/dist/cjs/{__rc__ → __next__}/Tooltip/Tooltip.cjs +1 -1
  86. package/dist/cjs/__next__/Tooltip/Tooltip.module.scss.cjs +8 -0
  87. package/dist/cjs/actionsV3.cjs +7 -7
  88. package/dist/cjs/future.cjs +18 -18
  89. package/dist/cjs/index.cjs +9 -2
  90. package/dist/cjs/next.cjs +45 -0
  91. package/dist/cjs/overlaysV1.cjs +2 -2
  92. package/dist/cjs/overlaysV2.cjs +2 -2
  93. package/dist/cjs/overlaysV3.cjs +2 -4
  94. package/dist/cjs/utilitiesV3.cjs +1055 -1
  95. package/dist/esm/Avatar/Avatar.mjs +1 -1
  96. package/dist/esm/ButtonGroup/ButtonGroup.mjs +1 -1
  97. package/dist/esm/Calendar/CalendarRange/CalendarRange.mjs +1 -1
  98. package/dist/esm/Calendar/CalendarSingle/CalendarSingle.mjs +1 -1
  99. package/dist/esm/Calendar/LegacyCalendarRange/LegacyCalendarRange.mjs +1 -1
  100. package/dist/esm/Checkbox/Checkbox/Checkbox.mjs +1 -1
  101. package/dist/esm/ClearButton/ClearButton.mjs +1 -1
  102. package/dist/esm/Collapsible/Collapsible/Collapsible.mjs +1 -1
  103. package/dist/esm/DateInput/DateInputWithIconButton/DateInputWithIconButton.mjs +1 -1
  104. package/dist/esm/DateRangePicker/DateRangePicker.mjs +1 -1
  105. package/dist/esm/ErrorPage/ErrorPage.mjs +1 -1
  106. package/dist/esm/FieldMessage/FieldMessage.mjs +1 -1
  107. package/dist/esm/Filter/FilterBar/subcomponents/AddFiltersMenu/AddFiltersMenu.mjs +1 -1
  108. package/dist/esm/Filter/FilterButton/FilterButton/FilterButton.mjs +1 -1
  109. package/dist/esm/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.mjs +2 -2
  110. package/dist/esm/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.mjs +1 -1
  111. package/dist/esm/Filter/FilterSelect/FilterSelect.mjs +12 -12
  112. package/dist/esm/Focusable/Focusable.module.scss.mjs +4 -0
  113. package/dist/esm/GuidanceBlock/GuidanceBlock.mjs +2 -2
  114. package/dist/esm/Illustration/utils/usePausePlay.mjs +1 -1
  115. package/dist/esm/Input/InputSearch/InputSearch.mjs +1 -1
  116. package/dist/esm/LikertScaleLegacy/LikertScaleLegacy.mjs +1 -1
  117. package/dist/esm/Link/Link.mjs +40 -0
  118. package/dist/esm/Link/Link.module.css.mjs +18 -0
  119. package/dist/esm/Link/subcomponents/LinkContent.mjs +26 -0
  120. package/dist/esm/LinkButton/LinkButton.mjs +3 -3
  121. package/dist/esm/Menu/index.mjs +0 -1
  122. package/dist/esm/Modal/ConfirmationModal/ConfirmationModal.mjs +1 -1
  123. package/dist/esm/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.mjs +1 -1
  124. package/dist/esm/MultiSelect/subcomponents/Checkbox/Checkbox.mjs +1 -1
  125. package/dist/esm/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.mjs +2 -2
  126. package/dist/esm/Notification/subcomponents/CancelButton/CancelButton.mjs +1 -1
  127. package/dist/esm/Notification/subcomponents/NotificationIcon/NotificationIcon.mjs +1 -1
  128. package/dist/esm/Pagination/Pagination.mjs +1 -0
  129. package/dist/esm/Pagination/subcomponents/DirectionalLink/DirectionalLink.mjs +1 -1
  130. package/dist/esm/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.mjs +1 -1
  131. package/dist/esm/Popover/Popover.mjs +1 -1
  132. package/dist/esm/Popover/utils/classMappers.mjs +1 -1
  133. package/dist/esm/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/ToggleIconButton.mjs +1 -1
  134. package/dist/esm/RichTextEditor/RichTextEditor/utils/controlmap.mjs +1 -1
  135. package/dist/esm/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/LinkPopover.mjs +1 -1
  136. package/dist/esm/Select/Select.mjs +1 -1
  137. package/dist/esm/SplitButton/subcomponents/DropdownButton/DropdownButton.mjs +1 -1
  138. package/dist/esm/Table/Table.mjs +2 -2
  139. package/dist/esm/Tag/Tag.mjs +1 -1
  140. package/dist/esm/TextField/TextField.mjs +1 -1
  141. package/dist/esm/Tile/subcomponents/GenericTile/GenericTile.mjs +1 -1
  142. package/dist/esm/TitleBlockZen/TitleBlockZen.mjs +1 -1
  143. package/dist/esm/TitleBlockZen/subcomponents/MainActions.mjs +1 -1
  144. package/dist/esm/TitleBlockZen/subcomponents/MobileActions.mjs +1 -1
  145. package/dist/esm/TitleBlockZen/subcomponents/SecondaryActions.mjs +1 -1
  146. package/dist/esm/ToggleSwitch/ToggleSwitch/ToggleSwitch.mjs +1 -1
  147. package/dist/esm/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.mjs +1 -1
  148. package/dist/esm/{__rc__ → __next__}/Button/Button.mjs +1 -1
  149. package/dist/esm/__next__/Button/Button.module.css.mjs +19 -0
  150. package/dist/esm/__next__/Button/subcomponents/ButtonContent/ButtonContent.module.css.mjs +7 -0
  151. package/dist/esm/__next__/Button/subcomponents/PendingContent/PendingContent.module.css.mjs +6 -0
  152. package/dist/esm/__next__/Icon/Icon.module.css.mjs +9 -0
  153. package/dist/esm/{__rc__ → __next__}/Menu/Menu.module.css.mjs +1 -1
  154. package/dist/esm/__next__/Menu/MenuItem.module.css.mjs +6 -0
  155. package/dist/esm/__next__/Select/Select.module.scss.mjs +5 -0
  156. package/dist/esm/{__rc__ → __next__}/Select/subcomponents/ListBox/ListBox.mjs +1 -1
  157. package/dist/esm/{__rc__ → __next__}/Select/subcomponents/ListBox/ListBox.module.scss.mjs +1 -1
  158. package/dist/esm/__next__/Select/subcomponents/ListBoxSection/ListBoxSection.module.scss.mjs +6 -0
  159. package/dist/esm/__next__/Select/subcomponents/Option/Option.module.scss.mjs +8 -0
  160. package/dist/esm/__next__/Select/subcomponents/SectionDivider/SectionDivider.module.scss.mjs +4 -0
  161. package/dist/esm/{__rc__ → __next__}/Select/subcomponents/SelectPopoverContents/SelectPopoverContents.module.scss.mjs +1 -1
  162. package/dist/esm/__next__/Select/subcomponents/SelectToggle/SelectToggle.module.scss.mjs +12 -0
  163. package/dist/esm/__next__/Tabs/subcomponents/Tab/Tab.module.css.mjs +5 -0
  164. package/dist/esm/{__rc__ → __next__}/Tabs/subcomponents/TabList/TabList.mjs +1 -1
  165. package/dist/esm/__next__/Tabs/subcomponents/TabList/TabList.module.css.mjs +8 -0
  166. package/dist/esm/__next__/Tag/RemovableTag/RemovableTag.module.scss.mjs +4 -0
  167. package/dist/esm/__next__/Tag/RemovableTag/subcomponents/RemoveButton.module.scss.mjs +4 -0
  168. package/dist/esm/__next__/Tag/Tag/Tag.module.scss.mjs +12 -0
  169. package/dist/esm/{__rc__ → __next__}/Tooltip/OverlayArrow.mjs +1 -1
  170. package/dist/esm/__next__/Tooltip/OverlayArrow.module.scss.mjs +5 -0
  171. package/dist/esm/{__rc__ → __next__}/Tooltip/Tooltip.mjs +1 -1
  172. package/dist/esm/__next__/Tooltip/Tooltip.module.scss.mjs +6 -0
  173. package/dist/esm/actionsV3.mjs +7 -7
  174. package/dist/esm/future.mjs +18 -18
  175. package/dist/esm/index.mjs +4 -1
  176. package/dist/esm/next.mjs +19 -0
  177. package/dist/esm/overlaysV1.mjs +1 -1
  178. package/dist/esm/overlaysV2.mjs +1 -1
  179. package/dist/esm/overlaysV3.mjs +2 -3
  180. package/dist/esm/utilitiesV3.mjs +423 -1
  181. package/dist/styles.css +8588 -8468
  182. package/dist/types/Filter/FilterSelect/FilterSelect.d.ts +4 -4
  183. package/dist/types/Filter/FilterSelect/types.d.ts +1 -1
  184. package/dist/types/Link/Link.d.ts +39 -0
  185. package/dist/types/Link/index.d.ts +1 -0
  186. package/dist/types/Link/subcomponents/LinkContent.d.ts +8 -0
  187. package/dist/types/LinkButton/LinkButton.d.ts +1 -1
  188. package/dist/types/Tooltip/index.d.ts +1 -8
  189. package/dist/types/{__rc__ → __next__}/Button/Button.d.ts +2 -2
  190. package/dist/types/{__rc__ → __next__}/Tooltip/index.d.ts +0 -1
  191. package/dist/types/{__rc__ → __next__}/index.d.ts +1 -0
  192. package/dist/types/__utilities__/index.d.ts +1 -0
  193. package/dist/types/index.d.ts +2 -0
  194. package/dist/types/utils/index.d.ts +1 -0
  195. package/dist/types/v3-actions.d.ts +2 -2
  196. package/dist/types/v3-overlays.d.ts +1 -1
  197. package/future/README.md +2 -24
  198. package/future/package.json +1 -1
  199. package/next/README.md +27 -0
  200. package/next/package.json +5 -0
  201. package/package.json +11 -5
  202. package/src/Avatar/Avatar.tsx +1 -1
  203. package/src/BrandMoment/_docs/BrandMoment.stickersheet.stories.tsx +1 -1
  204. package/src/BrandMoment/_docs/BrandMoment.stories.tsx +2 -2
  205. package/src/BrandMoment/_docs/ExampleHeaders.tsx +1 -1
  206. package/src/Button/Button/_docs/Button.mdx +5 -4
  207. package/src/Button/Button/_docs/Button.stickersheet.stories.tsx +2 -2
  208. package/src/Button/Button/_docs/Button.stories.tsx +2 -2
  209. package/src/Button/IconButton/_docs/IconButton.mdx +5 -3
  210. package/src/Button/IconButton/_docs/IconButton.stickersheet.stories.tsx +2 -2
  211. package/src/Button/IconButton/_docs/IconButton.stories.tsx +2 -2
  212. package/src/Calendar/CalendarPopover/_docs/CalendarPopover.stickersheet.stories.tsx +1 -1
  213. package/src/Calendar/CalendarRange/CalendarRange.tsx +1 -1
  214. package/src/Calendar/CalendarRange/_docs/CalendarRange.stickersheet.stories.tsx +1 -1
  215. package/src/Calendar/CalendarRange/_docs/CalendarRange.stories.tsx +1 -1
  216. package/src/Calendar/CalendarSingle/CalendarSingle.tsx +1 -1
  217. package/src/Calendar/CalendarSingle/_docs/CalendarSingle.stickersheet.stories.tsx +1 -1
  218. package/src/Calendar/CalendarSingle/_docs/CalendarSingle.stories.tsx +1 -1
  219. package/src/Calendar/LegacyCalendarRange/LegacyCalendarRange.tsx +1 -1
  220. package/src/Checkbox/Checkbox/Checkbox.tsx +1 -1
  221. package/src/Checkbox/Checkbox/_docs/Checkbox.stickersheet.stories.tsx +1 -1
  222. package/src/Checkbox/Checkbox/_docs/Checkbox.stories.tsx +1 -1
  223. package/src/Checkbox/CheckboxField/_docs/CheckboxField.stickersheet.stories.tsx +1 -1
  224. package/src/Checkbox/CheckboxField/_docs/CheckboxField.stories.tsx +1 -1
  225. package/src/Checkbox/CheckboxGroup/_docs/CheckboxGroup.stickersheet.stories.tsx +1 -1
  226. package/src/Checkbox/CheckboxGroup/_docs/CheckboxGroup.stories.tsx +1 -1
  227. package/src/ClearButton/ClearButton.tsx +1 -1
  228. package/src/Collapsible/Collapsible/Collapsible.tsx +1 -1
  229. package/src/Collapsible/Collapsible/_docs/Collapsible.stories.tsx +1 -1
  230. package/src/DateInput/DateInputWithIconButton/DateInputWithIconButton.tsx +1 -1
  231. package/src/DatePicker/_docs/DatePicker.stickersheet.stories.tsx +1 -1
  232. package/src/DatePicker/_docs/DatePicker.stories.tsx +1 -1
  233. package/src/DatePicker/_docs/getLocale.stickersheet.stories.tsx +1 -1
  234. package/src/DateRangePicker/DateRangePicker.tsx +1 -1
  235. package/src/DateRangePicker/_docs/DateRangePicker.stickersheet.stories.tsx +1 -1
  236. package/src/DateRangePicker/_docs/DateRangePicker.stories.tsx +1 -1
  237. package/src/EmptyState/_docs/EmptyState.stickersheet.stories.tsx +1 -1
  238. package/src/EmptyState/_docs/EmptyState.stories.tsx +1 -1
  239. package/src/ErrorPage/ErrorPage.tsx +1 -1
  240. package/src/FieldGroup/_docs/FieldGroup.stickersheet.stories.tsx +1 -1
  241. package/src/FieldGroup/_docs/FieldGroup.stories.tsx +1 -1
  242. package/src/FieldMessage/FieldMessage.tsx +1 -1
  243. package/src/FieldMessage/_docs/FieldMessage.stickersheet.stories.tsx +1 -1
  244. package/src/FieldMessage/_docs/FieldMessage.stories.tsx +1 -1
  245. package/src/Filter/FilterBar/subcomponents/AddFiltersMenu/AddFiltersMenu.tsx +1 -1
  246. package/src/Filter/FilterButton/FilterButton/FilterButton.tsx +1 -1
  247. package/src/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.tsx +1 -1
  248. package/src/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.tsx +1 -1
  249. package/src/Filter/FilterSelect/FilterSelect.tsx +4 -4
  250. package/src/Filter/FilterSelect/types.ts +2 -2
  251. package/src/{__rc__/Tooltip/subcomponents/Focusable → Focusable}/_docs/ApiSpecification.mdx +5 -5
  252. package/src/{__rc__/Tooltip/subcomponents/Focusable → Focusable}/_docs/Focusable.stories.tsx +2 -2
  253. package/src/GuidanceBlock/GuidanceBlock.tsx +1 -1
  254. package/src/Icon/_docs/Icon.docs.stories.tsx +2 -2
  255. package/src/Icon/_docs/Icon.mdx +4 -2
  256. package/src/Icon/_docs/Icon.stickersheet.stories.tsx +1 -1
  257. package/src/Illustration/utils/usePausePlay.tsx +1 -1
  258. package/src/Input/Input/_docs/Input.stickersheet.stories.tsx +2 -2
  259. package/src/Input/Input/_docs/Input.stories.tsx +2 -2
  260. package/src/Input/InputRange/_docs/InputRange.stickersheet.stories.tsx +1 -1
  261. package/src/Input/InputRange/_docs/InputRange.stories.tsx +1 -1
  262. package/src/Input/InputSearch/InputSearch.tsx +1 -1
  263. package/src/Input/InputSearch/_docs/InputSearch.stickersheet.stories.tsx +1 -1
  264. package/src/Input/InputSearch/_docs/InputSearch.stories.tsx +1 -1
  265. package/src/Label/_docs/Label.stickersheet.stories.tsx +1 -1
  266. package/src/Label/_docs/Label.stories.tsx +1 -1
  267. package/src/LabelledMessage/_docs/LabelledMessage.stickersheet.stories.tsx +1 -1
  268. package/src/LabelledMessage/_docs/LabelledMessage.stories.tsx +1 -1
  269. package/src/LikertScaleLegacy/LikertScaleLegacy.tsx +1 -1
  270. package/src/Link/Link.module.css +119 -0
  271. package/src/Link/Link.tsx +90 -0
  272. package/src/Link/_docs/Link--api-specification.mdx +133 -0
  273. package/src/Link/_docs/Link--api-usage-guidelines.mdx +107 -0
  274. package/src/Link/_docs/Link.doc.stories.tsx +238 -0
  275. package/src/Link/_docs/Link.stickersheet.stories.tsx +191 -0
  276. package/src/Link/index.ts +1 -0
  277. package/src/Link/subcomponents/LinkContent.tsx +31 -0
  278. package/src/LinkButton/LinkButton.tsx +4 -4
  279. package/src/LinkButton/_docs/LinkButton--api-specification.mdx +8 -64
  280. package/src/LinkButton/_docs/LinkButton--usage-guidelines.mdx +1 -1
  281. package/src/LinkButton/_docs/LinkButton.doc.stories.tsx +1 -1
  282. package/src/LinkButton/_docs/LinkButton.spec.stories.tsx +1 -1
  283. package/src/LinkButton/_docs/LinkButton.stickersheet.stories.tsx +1 -1
  284. package/src/Loading/LoadingGraphic/_docs/LoadingGraphic.stories.tsx +1 -1
  285. package/src/Menu/_docs/Menu.mdx +5 -5
  286. package/src/Menu/_docs/Menu.stickersheet.stories.tsx +2 -2
  287. package/src/Menu/_docs/Menu.stories.tsx +2 -2
  288. package/src/Menu/_docs/MenuContentExample.tsx +1 -1
  289. package/src/Menu/_docs/examples.tsx +1 -1
  290. package/src/Menu/index.ts +0 -2
  291. package/src/Modal/ConfirmationModal/ConfirmationModal.tsx +1 -1
  292. package/src/Modal/GenericModal/_docs/GenericModal.spec.stories.tsx +1 -1
  293. package/src/Modal/GenericModal/_docs/GenericModal.stories.tsx +1 -1
  294. package/src/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.tsx +1 -1
  295. package/src/MultiSelect/subcomponents/Checkbox/Checkbox.tsx +1 -1
  296. package/src/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.tsx +1 -1
  297. package/src/Notification/subcomponents/CancelButton/CancelButton.tsx +1 -1
  298. package/src/Notification/subcomponents/NotificationIcon/NotificationIcon.tsx +1 -1
  299. package/src/Pagination/subcomponents/DirectionalLink/DirectionalLink.tsx +1 -1
  300. package/src/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.tsx +1 -1
  301. package/src/Popover/Popover.tsx +1 -1
  302. package/src/Popover/utils/classMappers.tsx +1 -1
  303. package/src/Radio/Radio/_docs/Radio.stickersheet.stories.tsx +1 -1
  304. package/src/Radio/Radio/_docs/Radio.stories.tsx +1 -1
  305. package/src/Radio/RadioField/_docs/RadioField.stickersheet.stories.tsx +1 -1
  306. package/src/Radio/RadioField/_docs/RadioField.stories.tsx +1 -1
  307. package/src/Radio/RadioGroup/_docs/RadioGroup.stickersheet.stories.tsx +1 -1
  308. package/src/Radio/RadioGroup/_docs/RadioGroup.stories.tsx +1 -1
  309. package/src/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/_docs/ToggleIconButton.stickersheet.stories.tsx +1 -1
  310. package/src/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/_docs/ToggleIconButton.stories.tsx +1 -1
  311. package/src/RichTextEditor/RichTextEditor/subcomponents/Toolbar/Toolbar.spec.tsx +1 -1
  312. package/src/RichTextEditor/RichTextEditor/subcomponents/Toolbar/_docs/Toolbar.stories.tsx +1 -1
  313. package/src/RichTextEditor/RichTextEditor/utils/controlmap.tsx +1 -1
  314. package/src/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/LinkPopover.tsx +1 -1
  315. package/src/Select/Select.tsx +1 -1
  316. package/src/Select/_docs/Select.mdx +1 -1
  317. package/src/SplitButton/subcomponents/DropdownButton/DropdownButton.tsx +1 -1
  318. package/src/Table/Table.tsx +1 -1
  319. package/src/Table/_docs/Table.stickersheet.stories.tsx +1 -1
  320. package/src/Table/_docs/Table.stories.tsx +1 -1
  321. package/src/Tabs/_docs/Tabs.mdx +4 -2
  322. package/src/Tabs/_docs/Tabs.stories.tsx +1 -1
  323. package/src/Tag/Tag.tsx +1 -1
  324. package/src/Tag/_docs/Tag.mdx +3 -8
  325. package/src/Tag/_docs/Tag.stickersheet.stories.tsx +1 -1
  326. package/src/Tag/_docs/Tag.stories.tsx +1 -1
  327. package/src/TextArea/_docs/TextArea.stickersheet.stories.tsx +1 -1
  328. package/src/TextArea/_docs/TextArea.stories.tsx +1 -1
  329. package/src/TextAreaField/_docs/TextAreaField.stickersheet.stories.tsx +1 -1
  330. package/src/TextAreaField/_docs/TextAreaField.stories.tsx +1 -1
  331. package/src/TextField/TextField.tsx +1 -1
  332. package/src/TextField/_docs/TextField.stickersheet.stories.tsx +1 -1
  333. package/src/TextField/_docs/TextField.stories.tsx +2 -2
  334. package/src/Tile/subcomponents/GenericTile/GenericTile.spec.stories.tsx +1 -1
  335. package/src/Tile/subcomponents/GenericTile/GenericTile.tsx +1 -1
  336. package/src/Tile/subcomponents/GenericTile/_docs/GenericTile.stickersheet.stories.tsx +1 -1
  337. package/src/TitleBlockZen/TitleBlockZen.tsx +1 -1
  338. package/src/TitleBlockZen/_docs/TitleBlockZen.stories.tsx +1 -1
  339. package/src/TitleBlockZen/subcomponents/MainActions.tsx +1 -1
  340. package/src/TitleBlockZen/subcomponents/MobileActions.tsx +1 -1
  341. package/src/TitleBlockZen/subcomponents/SecondaryActions.tsx +1 -1
  342. package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.tsx +1 -1
  343. package/src/ToggleSwitch/ToggleSwitch/_docs/ToggleSwitch.stickersheet.stories.tsx +1 -1
  344. package/src/ToggleSwitch/ToggleSwitch/_docs/ToggleSwitch.stories.tsx +1 -1
  345. package/src/ToggleSwitch/ToggleSwitchField/_docs/ToggleSwitchField.stickersheet.stories.tsx +1 -1
  346. package/src/ToggleSwitch/ToggleSwitchField/_docs/ToggleSwitchField.stories.tsx +1 -1
  347. package/src/Tooltip/_docs/Tooltip.mdx +5 -8
  348. package/src/Tooltip/_docs/Tooltip.stickersheet.stories.tsx +2 -2
  349. package/src/Tooltip/_docs/Tooltip.stories.tsx +3 -3
  350. package/src/Tooltip/index.ts +1 -7
  351. package/src/Tooltip/utils/isSemanticElement.spec.tsx +1 -1
  352. package/src/Workflow/_docs/Workflow.stories.tsx +1 -1
  353. package/src/Workflow/_docs/WorkflowHeader.stories.tsx +1 -1
  354. package/src/Workflow/_docs/controls/controls.tsx +1 -1
  355. package/src/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.tsx +1 -1
  356. package/src/{__rc__ → __next__}/Button/Button.tsx +3 -3
  357. package/src/{__rc__ → __next__}/Button/_docs/Button--api-specification.mdx +9 -9
  358. package/src/{__rc__ → __next__}/Button/_docs/Button--usage-guidelines.mdx +5 -5
  359. package/src/{__rc__ → __next__}/Button/_docs/Button.docs.stories.tsx +3 -3
  360. package/src/{__rc__ → __next__}/Button/_docs/Button.spec.stories.tsx +2 -2
  361. package/src/{__rc__ → __next__}/Button/_docs/Button.stickersheet.stories.tsx +2 -2
  362. package/src/{__rc__ → __next__}/Icon/_docs/Icon--api-specification.mdx +3 -3
  363. package/src/{__rc__ → __next__}/Icon/_docs/Icon--migration-guide.mdx +3 -3
  364. package/src/{__rc__ → __next__}/Icon/_docs/Icon--usage-guidelines.mdx +4 -4
  365. package/src/{__rc__ → __next__}/Icon/_docs/Icon.docs.stories.tsx +3 -3
  366. package/src/{__rc__ → __next__}/Icon/_docs/Icon.stickersheet.stories.tsx +3 -3
  367. package/src/{__rc__ → __next__}/Menu/_docs/Menu--api-specification.mdx +5 -6
  368. package/src/{__rc__ → __next__}/Menu/_docs/Menu--usage-guidelines.mdx +3 -4
  369. package/src/{__rc__ → __next__}/Menu/_docs/Menu.docs.stories.tsx +3 -3
  370. package/src/{__rc__ → __next__}/Menu/_docs/Menu.spec.stories.tsx +3 -3
  371. package/src/{__rc__ → __next__}/Menu/_docs/Menu.stories.tsx +3 -3
  372. package/src/{__rc__ → __next__}/Select/_docs/Select.mdx +2 -2
  373. package/src/{__rc__ → __next__}/Select/_docs/Select.stickersheet.stories.tsx +1 -1
  374. package/src/{__rc__ → __next__}/Select/_docs/Select.stories.tsx +1 -1
  375. package/src/{__rc__ → __next__}/Select/subcomponents/ListBox/ListBox.tsx +1 -1
  376. package/src/{__rc__ → __next__}/Select/subcomponents/Option/Option.tsx +1 -1
  377. package/src/{__rc__ → __next__}/Select/subcomponents/SelectToggle/SelectToggle.tsx +1 -1
  378. package/src/{__rc__ → __next__}/Tabs/_docs/Tabs--api-specification.mdx +3 -3
  379. package/src/{__rc__ → __next__}/Tabs/_docs/Tabs--migration-guide.mdx +3 -3
  380. package/src/{__rc__ → __next__}/Tabs/_docs/Tabs.spec.stories.tsx +1 -1
  381. package/src/{__rc__ → __next__}/Tabs/_docs/Tabs.stickersheet.stories.tsx +1 -1
  382. package/src/{__rc__ → __next__}/Tabs/_docs/Tabs.stories.tsx +1 -1
  383. package/src/{__rc__ → __next__}/Tabs/subcomponents/TabList/TabList.tsx +2 -2
  384. package/src/{__rc__ → __next__}/Tag/RemovableTag/_docs/RemovableTag.mdx +3 -3
  385. package/src/{__rc__ → __next__}/Tag/RemovableTag/_docs/RemovableTag.stickersheet.stories.tsx +1 -1
  386. package/src/{__rc__ → __next__}/Tag/RemovableTag/_docs/RemovableTag.stories.tsx +1 -1
  387. package/src/{__rc__ → __next__}/Tag/RemovableTag/subcomponents/RemoveButton.tsx +1 -1
  388. package/src/{__rc__ → __next__}/Tag/Tag/_docs/Tag-migration-guide.mdx +8 -8
  389. package/src/{__rc__ → __next__}/Tag/Tag/_docs/Tag-migration-guide.stories.tsx +2 -2
  390. package/src/{__rc__ → __next__}/Tag/Tag/_docs/Tag.mdx +5 -5
  391. package/src/{__rc__ → __next__}/Tag/Tag/_docs/Tag.stickersheet.stories.tsx +2 -2
  392. package/src/{__rc__ → __next__}/Tag/Tag/_docs/Tag.stories.tsx +2 -2
  393. package/src/{__rc__ → __next__}/Tooltip/OverlayArrow.tsx +1 -1
  394. package/src/{__rc__ → __next__}/Tooltip/Tooltip.tsx +1 -1
  395. package/src/{__rc__ → __next__}/Tooltip/_docs/ApiSpecification.mdx +6 -6
  396. package/src/{__rc__ → __next__}/Tooltip/_docs/Tooltip.docs.stories.tsx +4 -3
  397. package/src/{__rc__ → __next__}/Tooltip/_docs/Tooltip.mdx +5 -5
  398. package/src/{__rc__ → __next__}/Tooltip/_docs/Tooltip.spec.stories.tsx +6 -5
  399. package/src/{__rc__ → __next__}/Tooltip/_docs/Tooltip.stickersheet.stories.tsx +2 -2
  400. package/src/{__rc__ → __next__}/Tooltip/_docs/Tooltip.stories.tsx +4 -3
  401. package/src/{__rc__ → __next__}/Tooltip/index.ts +0 -1
  402. package/src/__next__/index.ts +11 -0
  403. package/src/__utilities__/index.ts +2 -0
  404. package/src/index.ts +2 -0
  405. package/src/utils/index.ts +1 -0
  406. package/src/v3-actions.ts +2 -2
  407. package/src/v3-overlays.ts +1 -1
  408. package/v3/utilities/package.json +1 -1
  409. package/dist/cjs/Tooltip/index.cjs +0 -8
  410. package/dist/cjs/__rc__/Button/Button.module.css.cjs +0 -21
  411. package/dist/cjs/__rc__/Button/subcomponents/ButtonContent/ButtonContent.module.css.cjs +0 -9
  412. package/dist/cjs/__rc__/Button/subcomponents/PendingContent/PendingContent.module.css.cjs +0 -8
  413. package/dist/cjs/__rc__/Icon/Icon.module.css.cjs +0 -11
  414. package/dist/cjs/__rc__/Menu/MenuItem.module.css.cjs +0 -8
  415. package/dist/cjs/__rc__/Select/Select.module.scss.cjs +0 -7
  416. package/dist/cjs/__rc__/Select/subcomponents/ListBoxSection/ListBoxSection.module.scss.cjs +0 -8
  417. package/dist/cjs/__rc__/Select/subcomponents/Option/Option.module.scss.cjs +0 -10
  418. package/dist/cjs/__rc__/Select/subcomponents/SelectToggle/SelectToggle.module.scss.cjs +0 -14
  419. package/dist/cjs/__rc__/Tabs/subcomponents/Tab/Tab.module.css.cjs +0 -7
  420. package/dist/cjs/__rc__/Tabs/subcomponents/TabList/TabList.module.css.cjs +0 -10
  421. package/dist/cjs/__rc__/Tag/RemovableTag/RemovableTag.module.scss.cjs +0 -6
  422. package/dist/cjs/__rc__/Tag/RemovableTag/subcomponents/RemoveButton.module.scss.cjs +0 -6
  423. package/dist/cjs/__rc__/Tag/Tag/Tag.module.scss.cjs +0 -14
  424. package/dist/cjs/__rc__/Tooltip/OverlayArrow.module.scss.cjs +0 -7
  425. package/dist/cjs/__rc__/Tooltip/Tooltip.module.scss.cjs +0 -8
  426. package/dist/cjs/__rc__/Tooltip/subcomponents/Focusable/Focusable.module.scss.cjs +0 -6
  427. package/dist/esm/Tooltip/index.mjs +0 -6
  428. package/dist/esm/__rc__/Button/Button.module.css.mjs +0 -19
  429. package/dist/esm/__rc__/Button/subcomponents/ButtonContent/ButtonContent.module.css.mjs +0 -7
  430. package/dist/esm/__rc__/Button/subcomponents/PendingContent/PendingContent.module.css.mjs +0 -6
  431. package/dist/esm/__rc__/Icon/Icon.module.css.mjs +0 -9
  432. package/dist/esm/__rc__/Menu/MenuItem.module.css.mjs +0 -6
  433. package/dist/esm/__rc__/Select/Select.module.scss.mjs +0 -5
  434. package/dist/esm/__rc__/Select/subcomponents/ListBoxSection/ListBoxSection.module.scss.mjs +0 -6
  435. package/dist/esm/__rc__/Select/subcomponents/Option/Option.module.scss.mjs +0 -8
  436. package/dist/esm/__rc__/Select/subcomponents/SectionDivider/SectionDivider.module.scss.mjs +0 -4
  437. package/dist/esm/__rc__/Select/subcomponents/SelectToggle/SelectToggle.module.scss.mjs +0 -12
  438. package/dist/esm/__rc__/Tabs/subcomponents/Tab/Tab.module.css.mjs +0 -5
  439. package/dist/esm/__rc__/Tabs/subcomponents/TabList/TabList.module.css.mjs +0 -8
  440. package/dist/esm/__rc__/Tag/RemovableTag/RemovableTag.module.scss.mjs +0 -4
  441. package/dist/esm/__rc__/Tag/RemovableTag/subcomponents/RemoveButton.module.scss.mjs +0 -4
  442. package/dist/esm/__rc__/Tag/Tag/Tag.module.scss.mjs +0 -12
  443. package/dist/esm/__rc__/Tooltip/OverlayArrow.module.scss.mjs +0 -5
  444. package/dist/esm/__rc__/Tooltip/Tooltip.module.scss.mjs +0 -6
  445. package/dist/esm/__rc__/Tooltip/subcomponents/Focusable/Focusable.module.scss.mjs +0 -4
  446. package/dist/types/__utilities__/v3.d.ts +0 -1
  447. package/src/Button/Button/_docs/v2/Button.mdx +0 -98
  448. package/src/Button/Button/_docs/v2/Button.stories.tsx +0 -162
  449. package/src/Button/IconButton/_docs/v2/IconButton.mdx +0 -24
  450. package/src/Button/IconButton/_docs/v2/IconButton.stories.tsx +0 -37
  451. package/src/Menu/_docs/v2/Menu.mdx +0 -31
  452. package/src/Menu/_docs/v2/Menu.stories.tsx +0 -54
  453. package/src/Tooltip/_docs/v2/Tooltip.mdx +0 -130
  454. package/src/Tooltip/_docs/v2/Tooltip.stories.tsx +0 -47
  455. package/src/__rc__/index.ts +0 -7
  456. package/src/__utilities__/v3.ts +0 -1
  457. /package/dist/cjs/{__rc__/Tooltip/subcomponents/Focusable → Focusable}/Focusable.cjs +0 -0
  458. /package/dist/cjs/{__rc__ → __next__}/Button/subcomponents/ButtonContent/ButtonContent.cjs +0 -0
  459. /package/dist/cjs/{__rc__ → __next__}/Button/subcomponents/PendingContent/PendingContent.cjs +0 -0
  460. /package/dist/cjs/{__rc__ → __next__}/Icon/Icon.cjs +0 -0
  461. /package/dist/cjs/{__rc__ → __next__}/Icon/constants.cjs +0 -0
  462. /package/dist/cjs/{__rc__ → __next__}/Menu/Menu.cjs +0 -0
  463. /package/dist/cjs/{__rc__ → __next__}/Menu/MenuHeader.cjs +0 -0
  464. /package/dist/cjs/{__rc__ → __next__}/Menu/MenuItem.cjs +0 -0
  465. /package/dist/cjs/{__rc__ → __next__}/Menu/MenuPopover.cjs +0 -0
  466. /package/dist/cjs/{__rc__ → __next__}/Menu/MenuSection.cjs +0 -0
  467. /package/dist/cjs/{__rc__ → __next__}/Menu/MenuTrigger.cjs +0 -0
  468. /package/dist/cjs/{__rc__ → __next__}/Select/Select.cjs +0 -0
  469. /package/dist/cjs/{__rc__ → __next__}/Select/context/SelectContext.cjs +0 -0
  470. /package/dist/cjs/{__rc__ → __next__}/Select/subcomponents/ListBoxSection/ListBoxSection.cjs +0 -0
  471. /package/dist/cjs/{__rc__ → __next__}/Select/subcomponents/ListItem/ListItem.cjs +0 -0
  472. /package/dist/cjs/{__rc__ → __next__}/Select/subcomponents/ListItems/ListItems.cjs +0 -0
  473. /package/dist/cjs/{__rc__ → __next__}/Select/subcomponents/Option/Option.cjs +0 -0
  474. /package/dist/cjs/{__rc__ → __next__}/Select/subcomponents/Overlay/Overlay.cjs +0 -0
  475. /package/dist/cjs/{__rc__ → __next__}/Select/subcomponents/SectionDivider/SectionDivider.cjs +0 -0
  476. /package/dist/cjs/{__rc__ → __next__}/Select/subcomponents/SelectPopoverContents/SelectPopoverContents.cjs +0 -0
  477. /package/dist/cjs/{__rc__ → __next__}/Select/subcomponents/SelectToggle/SelectToggle.cjs +0 -0
  478. /package/dist/cjs/{__rc__ → __next__}/Select/utils/getDisabledKeysFromItems.cjs +0 -0
  479. /package/dist/cjs/{__rc__ → __next__}/Select/utils/isSelectOptionGroup.cjs +0 -0
  480. /package/dist/cjs/{__rc__ → __next__}/Select/utils/transformSelectItemToCollectionElement.cjs +0 -0
  481. /package/dist/cjs/{__rc__ → __next__}/Tabs/Tabs.cjs +0 -0
  482. /package/dist/cjs/{__rc__ → __next__}/Tabs/constants.cjs +0 -0
  483. /package/dist/cjs/{__rc__ → __next__}/Tabs/subcomponents/Tab/Tab.cjs +0 -0
  484. /package/dist/cjs/{__rc__ → __next__}/Tabs/subcomponents/TabPanel/TabPanel.cjs +0 -0
  485. /package/dist/cjs/{__rc__ → __next__}/Tag/RemovableTag/RemovableTag.cjs +0 -0
  486. /package/dist/cjs/{__rc__ → __next__}/Tag/RemovableTag/subcomponents/RemoveButton.cjs +0 -0
  487. /package/dist/cjs/{__rc__ → __next__}/Tag/Tag/Tag.cjs +0 -0
  488. /package/dist/cjs/{__rc__ → __next__}/Tooltip/TooltipTrigger.cjs +0 -0
  489. /package/dist/cjs/{__utilities__/ReversedColors/v3 → utils/ReversedColors}/ReversedColors.cjs +0 -0
  490. /package/dist/cjs/{__utilities__ → utils}/isRTL/isRTL.cjs +0 -0
  491. /package/dist/cjs/{__utilities__ → utils}/useIsClientReady/useIsClientReady.cjs +0 -0
  492. /package/dist/esm/{__rc__/Tooltip/subcomponents/Focusable → Focusable}/Focusable.mjs +0 -0
  493. /package/dist/esm/{__rc__ → __next__}/Button/subcomponents/ButtonContent/ButtonContent.mjs +0 -0
  494. /package/dist/esm/{__rc__ → __next__}/Button/subcomponents/PendingContent/PendingContent.mjs +0 -0
  495. /package/dist/esm/{__rc__ → __next__}/Icon/Icon.mjs +0 -0
  496. /package/dist/esm/{__rc__ → __next__}/Icon/constants.mjs +0 -0
  497. /package/dist/esm/{__rc__ → __next__}/Menu/Menu.mjs +0 -0
  498. /package/dist/esm/{__rc__ → __next__}/Menu/MenuHeader.mjs +0 -0
  499. /package/dist/esm/{__rc__ → __next__}/Menu/MenuItem.mjs +0 -0
  500. /package/dist/esm/{__rc__ → __next__}/Menu/MenuPopover.mjs +0 -0
  501. /package/dist/esm/{__rc__ → __next__}/Menu/MenuSection.mjs +0 -0
  502. /package/dist/esm/{__rc__ → __next__}/Menu/MenuTrigger.mjs +0 -0
  503. /package/dist/esm/{__rc__ → __next__}/Select/Select.mjs +0 -0
  504. /package/dist/esm/{__rc__ → __next__}/Select/context/SelectContext.mjs +0 -0
  505. /package/dist/esm/{__rc__ → __next__}/Select/subcomponents/ListBoxSection/ListBoxSection.mjs +0 -0
  506. /package/dist/esm/{__rc__ → __next__}/Select/subcomponents/ListItem/ListItem.mjs +0 -0
  507. /package/dist/esm/{__rc__ → __next__}/Select/subcomponents/ListItems/ListItems.mjs +0 -0
  508. /package/dist/esm/{__rc__ → __next__}/Select/subcomponents/Option/Option.mjs +0 -0
  509. /package/dist/esm/{__rc__ → __next__}/Select/subcomponents/Overlay/Overlay.mjs +0 -0
  510. /package/dist/esm/{__rc__ → __next__}/Select/subcomponents/SectionDivider/SectionDivider.mjs +0 -0
  511. /package/dist/esm/{__rc__ → __next__}/Select/subcomponents/SelectPopoverContents/SelectPopoverContents.mjs +0 -0
  512. /package/dist/esm/{__rc__ → __next__}/Select/subcomponents/SelectToggle/SelectToggle.mjs +0 -0
  513. /package/dist/esm/{__rc__ → __next__}/Select/utils/getDisabledKeysFromItems.mjs +0 -0
  514. /package/dist/esm/{__rc__ → __next__}/Select/utils/isSelectOptionGroup.mjs +0 -0
  515. /package/dist/esm/{__rc__ → __next__}/Select/utils/transformSelectItemToCollectionElement.mjs +0 -0
  516. /package/dist/esm/{__rc__ → __next__}/Tabs/Tabs.mjs +0 -0
  517. /package/dist/esm/{__rc__ → __next__}/Tabs/constants.mjs +0 -0
  518. /package/dist/esm/{__rc__ → __next__}/Tabs/subcomponents/Tab/Tab.mjs +0 -0
  519. /package/dist/esm/{__rc__ → __next__}/Tabs/subcomponents/TabPanel/TabPanel.mjs +0 -0
  520. /package/dist/esm/{__rc__ → __next__}/Tag/RemovableTag/RemovableTag.mjs +0 -0
  521. /package/dist/esm/{__rc__ → __next__}/Tag/RemovableTag/subcomponents/RemoveButton.mjs +0 -0
  522. /package/dist/esm/{__rc__ → __next__}/Tag/Tag/Tag.mjs +0 -0
  523. /package/dist/esm/{__rc__ → __next__}/Tooltip/TooltipTrigger.mjs +0 -0
  524. /package/dist/esm/{__utilities__/ReversedColors/v3 → utils/ReversedColors}/ReversedColors.mjs +0 -0
  525. /package/dist/esm/{__utilities__ → utils}/isRTL/isRTL.mjs +0 -0
  526. /package/dist/esm/{__utilities__ → utils}/useIsClientReady/useIsClientReady.mjs +0 -0
  527. /package/dist/types/{__rc__/Tooltip/subcomponents/Focusable → Focusable}/Focusable.d.ts +0 -0
  528. /package/dist/types/{__rc__/Tooltip/subcomponents/Focusable → Focusable}/index.d.ts +0 -0
  529. /package/dist/types/{__rc__ → __next__}/Button/index.d.ts +0 -0
  530. /package/dist/types/{__rc__ → __next__}/Button/subcomponents/ButtonContent/ButtonContent.d.ts +0 -0
  531. /package/dist/types/{__rc__ → __next__}/Button/subcomponents/ButtonContent/index.d.ts +0 -0
  532. /package/dist/types/{__rc__ → __next__}/Button/subcomponents/PendingContent/PendingContent.d.ts +0 -0
  533. /package/dist/types/{__rc__ → __next__}/Button/subcomponents/PendingContent/index.d.ts +0 -0
  534. /package/dist/types/{__rc__ → __next__}/Button/subcomponents/index.d.ts +0 -0
  535. /package/dist/types/{__rc__ → __next__}/Button/types.d.ts +0 -0
  536. /package/dist/types/{__rc__ → __next__}/Icon/Icon.d.ts +0 -0
  537. /package/dist/types/{__rc__ → __next__}/Icon/constants.d.ts +0 -0
  538. /package/dist/types/{__rc__ → __next__}/Icon/index.d.ts +0 -0
  539. /package/dist/types/{__rc__ → __next__}/Icon/types.d.ts +0 -0
  540. /package/dist/types/{__rc__ → __next__}/Menu/Menu.d.ts +0 -0
  541. /package/dist/types/{__rc__ → __next__}/Menu/MenuHeader.d.ts +0 -0
  542. /package/dist/types/{__rc__ → __next__}/Menu/MenuItem.d.ts +0 -0
  543. /package/dist/types/{__rc__ → __next__}/Menu/MenuPopover.d.ts +0 -0
  544. /package/dist/types/{__rc__ → __next__}/Menu/MenuSection.d.ts +0 -0
  545. /package/dist/types/{__rc__ → __next__}/Menu/MenuTrigger.d.ts +0 -0
  546. /package/dist/types/{__rc__ → __next__}/Menu/SubmenuTrigger.d.ts +0 -0
  547. /package/dist/types/{__rc__ → __next__}/Menu/index.d.ts +0 -0
  548. /package/dist/types/{__rc__ → __next__}/Select/Select.d.ts +0 -0
  549. /package/dist/types/{__rc__ → __next__}/Select/_docs/mockData.d.ts +0 -0
  550. /package/dist/types/{__rc__ → __next__}/Select/context/SelectContext.d.ts +0 -0
  551. /package/dist/types/{__rc__ → __next__}/Select/context/index.d.ts +0 -0
  552. /package/dist/types/{__rc__ → __next__}/Select/index.d.ts +0 -0
  553. /package/dist/types/{__rc__ → __next__}/Select/subcomponents/ListBox/ListBox.d.ts +0 -0
  554. /package/dist/types/{__rc__ → __next__}/Select/subcomponents/ListBox/index.d.ts +0 -0
  555. /package/dist/types/{__rc__ → __next__}/Select/subcomponents/ListBoxSection/ListBoxSection.d.ts +0 -0
  556. /package/dist/types/{__rc__ → __next__}/Select/subcomponents/ListBoxSection/index.d.ts +0 -0
  557. /package/dist/types/{__rc__ → __next__}/Select/subcomponents/ListItem/ListItem.d.ts +0 -0
  558. /package/dist/types/{__rc__ → __next__}/Select/subcomponents/ListItem/index.d.ts +0 -0
  559. /package/dist/types/{__rc__ → __next__}/Select/subcomponents/ListItems/ListItems.d.ts +0 -0
  560. /package/dist/types/{__rc__ → __next__}/Select/subcomponents/ListItems/index.d.ts +0 -0
  561. /package/dist/types/{__rc__ → __next__}/Select/subcomponents/Option/Option.d.ts +0 -0
  562. /package/dist/types/{__rc__ → __next__}/Select/subcomponents/Option/index.d.ts +0 -0
  563. /package/dist/types/{__rc__ → __next__}/Select/subcomponents/Overlay/Overlay.d.ts +0 -0
  564. /package/dist/types/{__rc__ → __next__}/Select/subcomponents/Overlay/index.d.ts +0 -0
  565. /package/dist/types/{__rc__ → __next__}/Select/subcomponents/SectionDivider/SectionDivider.d.ts +0 -0
  566. /package/dist/types/{__rc__ → __next__}/Select/subcomponents/SectionDivider/index.d.ts +0 -0
  567. /package/dist/types/{__rc__ → __next__}/Select/subcomponents/SelectPopoverContents/SelectPopoverContents.d.ts +0 -0
  568. /package/dist/types/{__rc__ → __next__}/Select/subcomponents/SelectPopoverContents/index.d.ts +0 -0
  569. /package/dist/types/{__rc__ → __next__}/Select/subcomponents/SelectToggle/SelectToggle.d.ts +0 -0
  570. /package/dist/types/{__rc__ → __next__}/Select/subcomponents/SelectToggle/index.d.ts +0 -0
  571. /package/dist/types/{__rc__ → __next__}/Select/subcomponents/index.d.ts +0 -0
  572. /package/dist/types/{__rc__ → __next__}/Select/types.d.ts +0 -0
  573. /package/dist/types/{__rc__ → __next__}/Select/utils/getDisabledKeysFromItems.d.ts +0 -0
  574. /package/dist/types/{__rc__ → __next__}/Select/utils/isSelectOptionGroup.d.ts +0 -0
  575. /package/dist/types/{__rc__ → __next__}/Select/utils/transformSelectItemToCollectionElement.d.ts +0 -0
  576. /package/dist/types/{__rc__ → __next__}/Tabs/Tabs.d.ts +0 -0
  577. /package/dist/types/{__rc__ → __next__}/Tabs/constants.d.ts +0 -0
  578. /package/dist/types/{__rc__ → __next__}/Tabs/index.d.ts +0 -0
  579. /package/dist/types/{__rc__ → __next__}/Tabs/subcomponents/Tab/Tab.d.ts +0 -0
  580. /package/dist/types/{__rc__ → __next__}/Tabs/subcomponents/Tab/index.d.ts +0 -0
  581. /package/dist/types/{__rc__ → __next__}/Tabs/subcomponents/TabList/TabList.d.ts +0 -0
  582. /package/dist/types/{__rc__ → __next__}/Tabs/subcomponents/TabList/index.d.ts +0 -0
  583. /package/dist/types/{__rc__ → __next__}/Tabs/subcomponents/TabPanel/TabPanel.d.ts +0 -0
  584. /package/dist/types/{__rc__ → __next__}/Tabs/subcomponents/TabPanel/index.d.ts +0 -0
  585. /package/dist/types/{__rc__ → __next__}/Tabs/subcomponents/index.d.ts +0 -0
  586. /package/dist/types/{__rc__ → __next__}/Tag/RemovableTag/RemovableTag.d.ts +0 -0
  587. /package/dist/types/{__rc__ → __next__}/Tag/RemovableTag/index.d.ts +0 -0
  588. /package/dist/types/{__rc__ → __next__}/Tag/RemovableTag/subcomponents/RemoveButton.d.ts +0 -0
  589. /package/dist/types/{__rc__ → __next__}/Tag/Tag/Tag.d.ts +0 -0
  590. /package/dist/types/{__rc__ → __next__}/Tag/Tag/index.d.ts +0 -0
  591. /package/dist/types/{__rc__ → __next__}/Tag/Tag/types.d.ts +0 -0
  592. /package/dist/types/{__rc__ → __next__}/Tag/index.d.ts +0 -0
  593. /package/dist/types/{__rc__ → __next__}/Tooltip/OverlayArrow.d.ts +0 -0
  594. /package/dist/types/{__rc__ → __next__}/Tooltip/Tooltip.d.ts +0 -0
  595. /package/dist/types/{__rc__ → __next__}/Tooltip/TooltipTrigger.d.ts +0 -0
  596. /package/dist/types/{__utilities__/ReversedColors/v3 → utils/ReversedColors}/ReversedColors.d.ts +0 -0
  597. /package/dist/types/{__utilities__/ReversedColors/v3 → utils/ReversedColors}/index.d.ts +0 -0
  598. /package/dist/types/{__utilities__ → utils}/isRTL/index.d.ts +0 -0
  599. /package/dist/types/{__utilities__ → utils}/isRTL/isRTL.d.ts +0 -0
  600. /package/dist/types/{__utilities__ → utils}/useIsClientReady/index.d.ts +0 -0
  601. /package/dist/types/{__utilities__ → utils}/useIsClientReady/useIsClientReady.d.ts +0 -0
  602. /package/src/{__rc__/Tooltip/subcomponents/Focusable → Focusable}/Focusable.module.scss +0 -0
  603. /package/src/{__rc__/Tooltip/subcomponents/Focusable → Focusable}/Focusable.tsx +0 -0
  604. /package/src/{__rc__/Tooltip/subcomponents/Focusable → Focusable}/index.ts +0 -0
  605. /package/src/{__rc__ → __next__}/Button/Button.module.css +0 -0
  606. /package/src/{__rc__ → __next__}/Button/_docs/assets/button_anatomy.png +0 -0
  607. /package/src/{__rc__ → __next__}/Button/_docs/assets/button_icon_only_spec.png +0 -0
  608. /package/src/{__rc__ → __next__}/Button/_docs/assets/button_icon_spec.png +0 -0
  609. /package/src/{__rc__ → __next__}/Button/_docs/assets/button_spec.png +0 -0
  610. /package/src/{__rc__ → __next__}/Button/index.ts +0 -0
  611. /package/src/{__rc__ → __next__}/Button/subcomponents/ButtonContent/ButtonContent.module.css +0 -0
  612. /package/src/{__rc__ → __next__}/Button/subcomponents/ButtonContent/ButtonContent.tsx +0 -0
  613. /package/src/{__rc__ → __next__}/Button/subcomponents/ButtonContent/index.ts +0 -0
  614. /package/src/{__rc__ → __next__}/Button/subcomponents/PendingContent/PendingContent.module.css +0 -0
  615. /package/src/{__rc__ → __next__}/Button/subcomponents/PendingContent/PendingContent.tsx +0 -0
  616. /package/src/{__rc__ → __next__}/Button/subcomponents/PendingContent/index.ts +0 -0
  617. /package/src/{__rc__ → __next__}/Button/subcomponents/index.ts +0 -0
  618. /package/src/{__rc__ → __next__}/Button/types.ts +0 -0
  619. /package/src/{__rc__ → __next__}/Icon/Icon.module.css +0 -0
  620. /package/src/{__rc__ → __next__}/Icon/Icon.spec.tsx +0 -0
  621. /package/src/{__rc__ → __next__}/Icon/Icon.tsx +0 -0
  622. /package/src/{__rc__ → __next__}/Icon/_docs/Icon.docs.module.css +0 -0
  623. /package/src/{__rc__ → __next__}/Icon/_docs/assets/interface-dont.png +0 -0
  624. /package/src/{__rc__ → __next__}/Icon/_docs/assets/tooltip-dont.png +0 -0
  625. /package/src/{__rc__ → __next__}/Icon/constants.ts +0 -0
  626. /package/src/{__rc__ → __next__}/Icon/index.ts +0 -0
  627. /package/src/{__rc__ → __next__}/Icon/material-symbols-metadata.json +0 -0
  628. /package/src/{__rc__ → __next__}/Icon/types.ts +0 -0
  629. /package/src/{__rc__ → __next__}/Menu/Menu.module.css +0 -0
  630. /package/src/{__rc__ → __next__}/Menu/Menu.tsx +0 -0
  631. /package/src/{__rc__ → __next__}/Menu/MenuHeader.tsx +0 -0
  632. /package/src/{__rc__ → __next__}/Menu/MenuItem.module.css +0 -0
  633. /package/src/{__rc__ → __next__}/Menu/MenuItem.tsx +0 -0
  634. /package/src/{__rc__ → __next__}/Menu/MenuPopover.tsx +0 -0
  635. /package/src/{__rc__ → __next__}/Menu/MenuSection.tsx +0 -0
  636. /package/src/{__rc__ → __next__}/Menu/MenuTrigger.tsx +0 -0
  637. /package/src/{__rc__ → __next__}/Menu/SubmenuTrigger.tsx +0 -0
  638. /package/src/{__rc__ → __next__}/Menu/index.ts +0 -0
  639. /package/src/{__rc__ → __next__}/Select/Select.module.scss +0 -0
  640. /package/src/{__rc__ → __next__}/Select/Select.spec.tsx +0 -0
  641. /package/src/{__rc__ → __next__}/Select/Select.tsx +0 -0
  642. /package/src/{__rc__ → __next__}/Select/_docs/mockData.ts +0 -0
  643. /package/src/{__rc__ → __next__}/Select/context/SelectContext.tsx +0 -0
  644. /package/src/{__rc__ → __next__}/Select/context/index.ts +0 -0
  645. /package/src/{__rc__ → __next__}/Select/index.ts +0 -0
  646. /package/src/{__rc__ → __next__}/Select/subcomponents/ListBox/ListBox.module.scss +0 -0
  647. /package/src/{__rc__ → __next__}/Select/subcomponents/ListBox/index.ts +0 -0
  648. /package/src/{__rc__ → __next__}/Select/subcomponents/ListBoxSection/ListBoxSection.module.scss +0 -0
  649. /package/src/{__rc__ → __next__}/Select/subcomponents/ListBoxSection/ListBoxSection.tsx +0 -0
  650. /package/src/{__rc__ → __next__}/Select/subcomponents/ListBoxSection/index.ts +0 -0
  651. /package/src/{__rc__ → __next__}/Select/subcomponents/ListItem/ListItem.tsx +0 -0
  652. /package/src/{__rc__ → __next__}/Select/subcomponents/ListItem/index.ts +0 -0
  653. /package/src/{__rc__ → __next__}/Select/subcomponents/ListItems/ListItems.tsx +0 -0
  654. /package/src/{__rc__ → __next__}/Select/subcomponents/ListItems/index.ts +0 -0
  655. /package/src/{__rc__ → __next__}/Select/subcomponents/Option/Option.module.scss +0 -0
  656. /package/src/{__rc__ → __next__}/Select/subcomponents/Option/index.ts +0 -0
  657. /package/src/{__rc__ → __next__}/Select/subcomponents/Overlay/Overlay.tsx +0 -0
  658. /package/src/{__rc__ → __next__}/Select/subcomponents/Overlay/index.ts +0 -0
  659. /package/src/{__rc__ → __next__}/Select/subcomponents/SectionDivider/SectionDivider.module.scss +0 -0
  660. /package/src/{__rc__ → __next__}/Select/subcomponents/SectionDivider/SectionDivider.tsx +0 -0
  661. /package/src/{__rc__ → __next__}/Select/subcomponents/SectionDivider/index.ts +0 -0
  662. /package/src/{__rc__ → __next__}/Select/subcomponents/SelectPopoverContents/SelectPopoverContents.module.scss +0 -0
  663. /package/src/{__rc__ → __next__}/Select/subcomponents/SelectPopoverContents/SelectPopoverContents.tsx +0 -0
  664. /package/src/{__rc__ → __next__}/Select/subcomponents/SelectPopoverContents/index.ts +0 -0
  665. /package/src/{__rc__ → __next__}/Select/subcomponents/SelectToggle/SelectToggle.module.scss +0 -0
  666. /package/src/{__rc__ → __next__}/Select/subcomponents/SelectToggle/index.ts +0 -0
  667. /package/src/{__rc__ → __next__}/Select/subcomponents/index.ts +0 -0
  668. /package/src/{__rc__ → __next__}/Select/types.ts +0 -0
  669. /package/src/{__rc__ → __next__}/Select/utils/getDisabledKeysFromItems.ts +0 -0
  670. /package/src/{__rc__ → __next__}/Select/utils/isSelectOptionGroup.ts +0 -0
  671. /package/src/{__rc__ → __next__}/Select/utils/transformSelectItemToCollectionElement.tsx +0 -0
  672. /package/src/{__rc__ → __next__}/Tabs/Tabs.tsx +0 -0
  673. /package/src/{__rc__ → __next__}/Tabs/constants.ts +0 -0
  674. /package/src/{__rc__ → __next__}/Tabs/index.ts +0 -0
  675. /package/src/{__rc__ → __next__}/Tabs/subcomponents/Tab/Tab.module.css +0 -0
  676. /package/src/{__rc__ → __next__}/Tabs/subcomponents/Tab/Tab.tsx +0 -0
  677. /package/src/{__rc__ → __next__}/Tabs/subcomponents/Tab/index.ts +0 -0
  678. /package/src/{__rc__ → __next__}/Tabs/subcomponents/TabList/TabList.module.css +0 -0
  679. /package/src/{__rc__ → __next__}/Tabs/subcomponents/TabList/index.ts +0 -0
  680. /package/src/{__rc__ → __next__}/Tabs/subcomponents/TabPanel/TabPanel.module.css +0 -0
  681. /package/src/{__rc__ → __next__}/Tabs/subcomponents/TabPanel/TabPanel.tsx +0 -0
  682. /package/src/{__rc__ → __next__}/Tabs/subcomponents/TabPanel/index.ts +0 -0
  683. /package/src/{__rc__ → __next__}/Tabs/subcomponents/index.ts +0 -0
  684. /package/src/{__rc__ → __next__}/Tag/RemovableTag/RemovableTag.module.scss +0 -0
  685. /package/src/{__rc__ → __next__}/Tag/RemovableTag/RemovableTag.tsx +0 -0
  686. /package/src/{__rc__ → __next__}/Tag/RemovableTag/index.ts +0 -0
  687. /package/src/{__rc__ → __next__}/Tag/RemovableTag/subcomponents/RemoveButton.module.scss +0 -0
  688. /package/src/{__rc__ → __next__}/Tag/Tag/Tag.module.scss +0 -0
  689. /package/src/{__rc__ → __next__}/Tag/Tag/Tag.tsx +0 -0
  690. /package/src/{__rc__ → __next__}/Tag/Tag/index.ts +0 -0
  691. /package/src/{__rc__ → __next__}/Tag/Tag/types.ts +0 -0
  692. /package/src/{__rc__ → __next__}/Tag/index.ts +0 -0
  693. /package/src/{__rc__ → __next__}/Tooltip/OverlayArrow.module.scss +0 -0
  694. /package/src/{__rc__ → __next__}/Tooltip/Tooltip.module.scss +0 -0
  695. /package/src/{__rc__ → __next__}/Tooltip/TooltipTrigger.tsx +0 -0
  696. /package/src/{__rc__ → __next__}/Tooltip/_docs/assets/tooltip_anatomy.png +0 -0
  697. /package/src/{__rc__ → __next__}/Tooltip/_docs/assets/tooltip_placement.png +0 -0
  698. /package/src/{__rc__ → __next__}/Tooltip/_docs/assets/tooltip_spec.png +0 -0
  699. /package/src/{__rc__ → __next__}/Tooltip/_docs/assets/tooltip_trigger_1.png +0 -0
  700. /package/src/{__rc__ → __next__}/Tooltip/_docs/assets/tooltip_trigger_2.png +0 -0
  701. /package/src/{__rc__ → __next__}/Tooltip/_docs/assets/tooltip_trigger_3.png +0 -0
  702. /package/src/{__rc__ → __next__}/Tooltip/_docs/assets/tooltip_variant.png +0 -0
  703. /package/src/{__rc__ → __next__}/Tooltip/_docs/assets/tooltip_when_to_use.png +0 -0
  704. /package/src/{__utilities__/ReversedColors/v3 → utils/ReversedColors}/ReversedColors.tsx +0 -0
  705. /package/src/{__utilities__/ReversedColors/v3 → utils/ReversedColors}/index.ts +0 -0
  706. /package/src/{__utilities__ → utils}/isRTL/index.ts +0 -0
  707. /package/src/{__utilities__ → utils}/isRTL/isRTL.spec.tsx +0 -0
  708. /package/src/{__utilities__ → utils}/isRTL/isRTL.ts +0 -0
  709. /package/src/{__utilities__ → utils}/useIsClientReady/index.ts +0 -0
  710. /package/src/{__utilities__ → utils}/useIsClientReady/useIsClientReady.tsx +0 -0
@@ -0,0 +1,90 @@
1
+ import React, { forwardRef } from 'react'
2
+ import { Link as RACLink, type LinkProps as RACLinkProps } from 'react-aria-components'
3
+ import { type TextProps } from '~components/Text'
4
+ import { mergeClassNames } from '~components/utils/mergeClassNames'
5
+ import { LinkContent } from './subcomponents/LinkContent'
6
+ import styles from './Link.module.css'
7
+
8
+ export type LinkProps = BaseLinkProps &
9
+ ((UnderlinedLink | NonUnderlinedLink) & (InlineLink | NonInlineLink))
10
+
11
+ type BaseLinkProps = {
12
+ /** Controls the visual style of a link. @default 'primary' */
13
+ variant?: 'primary' | 'secondary' | 'white'
14
+ /** Controls the position of a link. @default 'end' */
15
+ iconPosition?: 'start' | 'end'
16
+ } & Omit<RACLinkProps, 'children'> & {
17
+ /** Used as the label for the Link. */
18
+ children: RACLinkProps['children']
19
+ }
20
+
21
+ type UnderlinedLink = {
22
+ /** Toggles the underline of the icon and children @default true */
23
+ isUnderlined?: true
24
+ /** The icon to be displayed, optional when link is underlined */
25
+ icon?: JSX.Element
26
+ }
27
+
28
+ type NonUnderlinedLink = {
29
+ /** Toggles the underline of the icon and children */
30
+ isUnderlined?: false
31
+ /** The icon to be displayed, required when link is not underlined */
32
+ icon: JSX.Element
33
+ }
34
+
35
+ type InlineLink = {
36
+ /** isInline assumes the Link is wrapped in a [Text](https://cultureamp.design/?path=/docs/components-text--docs) component */
37
+ isInline: true
38
+ /** The size of the link, not passed when isInline */
39
+ size?: never
40
+ }
41
+
42
+ type NonInlineLink = {
43
+ /** isInline assumes the Link is wrapped in a [Text](https://cultureamp.design/?path=/docs/components-text--docs) component @default false */
44
+ isInline?: false
45
+ /** The size of the link. Sizes correlate to body text sizes. @default 'body' */
46
+ size?: TextProps['variant']
47
+ }
48
+
49
+ export const Link = forwardRef(
50
+ (
51
+ {
52
+ children,
53
+ variant = 'primary',
54
+ size = 'body',
55
+ icon,
56
+ iconPosition = 'end',
57
+ isInline = false,
58
+ isDisabled,
59
+ className,
60
+ isUnderlined = true,
61
+ ...otherProps
62
+ }: LinkProps,
63
+ ref: React.ForwardedRef<HTMLAnchorElement>,
64
+ ) => {
65
+ const childIsFunction = typeof children === 'function'
66
+
67
+ return (
68
+ <RACLink
69
+ ref={ref}
70
+ className={mergeClassNames(
71
+ styles.link,
72
+ isDisabled && styles.isDisabled,
73
+ isInline ? styles.isInline : styles[size],
74
+ styles[variant],
75
+ className,
76
+ )}
77
+ isDisabled={isDisabled}
78
+ {...otherProps}
79
+ >
80
+ {(racStateProps) => (
81
+ <LinkContent icon={icon} iconPosition={iconPosition} isUnderlined={isUnderlined}>
82
+ {childIsFunction ? children(racStateProps) : children}
83
+ </LinkContent>
84
+ )}
85
+ </RACLink>
86
+ )
87
+ },
88
+ )
89
+
90
+ Link.displayName = 'Link'
@@ -0,0 +1,133 @@
1
+ import { Canvas, Meta, Controls, ArgTypes, DocsStory } from '@storybook/blocks'
2
+ import { ResourceLinks, KAIOInstallation, LinkTo } from '~storybook/components'
3
+ import * as exampleStories from './Link.doc.stories'
4
+
5
+ <Meta title="Components/Link/API Specification" />
6
+
7
+ # Link API Specification
8
+
9
+ Update Jan 29, 2025
10
+
11
+ <ResourceLinks
12
+ sourceCode="blah blah update when available on main"
13
+ figma="https://www.figma.com/design/FWIOtGjpv9z0by95j1SgP0/Link?node-id=273-4107"
14
+ designGuidelines="/?path=/docs/components-link-usage-guidelines--docs"
15
+ />
16
+
17
+ <KAIOInstallation exportNames={'Link'} />
18
+
19
+ ## Overview
20
+
21
+ `Link` allows users to navigate to another page or resource. It is a wrapper around the native `a` element, with additional functionality and styling.
22
+
23
+ The following example and table showcases the essential props that enable the core functionality of `Link`. For the remaining suite of API options refer to [this section](#additional-api-options).
24
+
25
+ <Canvas of={exampleStories.Playground} />
26
+
27
+ <Controls
28
+ of={exampleStories.Playground}
29
+ include={[
30
+ 'className',
31
+ 'children',
32
+ 'href',
33
+ 'variant',
34
+ 'size',
35
+ 'icon',
36
+ 'iconPosition',
37
+ 'underlined',
38
+ 'isInline',
39
+ 'isUnderlined',
40
+ 'isReversed',
41
+ 'isDisabled',
42
+ ]}
43
+ />
44
+
45
+ ## API
46
+
47
+ This is built on top of [React Aria's Link component](https://react-spectrum.adobe.com/react-aria/Link.html)
48
+
49
+ ## Navigation and native anchor attributes
50
+
51
+ Out of the box, `Link` supports the majority of native `anchor` attributes and shares the same basic behaviour, i.e. `href` will trigger new page loads.
52
+
53
+ While client side routing is possible, the `Link` is agnostic to the routing technology chosen. Refer to our general set up guide to get started with [client side routing](#client-side-routing).
54
+
55
+ #### Opening new tabs and accessibility considerations
56
+
57
+ The general recommendation is to limit the number of links that open a new tab or window on a single page. While there are valid scenarios that can help avoid loss of data and or progress, as with links in forms, opening new tabs can be disorienting for users - especially for those who have difficulty perceiving visual content.
58
+
59
+ In order to provide advance warning to all users, it is recommended that links using `target="_blank"` be accompanied by a visual indicator and audible warning. As shown in the following example, additional context can be provided via a visually hidden element within the `children` of the component.
60
+
61
+ You may also consider using the `rel="noopener noreferrer"` attribute to prevent the new tab from accessing the `window.opener` object, which can be a security risk. Read more about this consideration on the [Lighthouse docs](https://developer.chrome.com/docs/lighthouse/best-practices/external-anchors-use-rel-noopener).
62
+
63
+ <Canvas of={exampleStories.LinkOpensInNewTab} />
64
+
65
+ For more context on this recommendation, we recommend taking a look at the [W3C page on the G200 success criteria](https://www.w3.org/TR/WCAG20-TECHS/G200.html).
66
+
67
+ ### Variants
68
+
69
+ `Link` supports `primary`, `secondary` and `white` variants. If the `variant` prop is not specified, the default variant is `primary`.
70
+
71
+ <Canvas of={exampleStories.LinkVariants} />
72
+
73
+ <DocsStory of={exampleStories.LinkVariantWhite} expanded={false} />
74
+
75
+ ### Sizes
76
+
77
+ Link supports the following sizes: `extra-small`, `small`, `body` and `intro-lede`. If the `size` prop is not specified, the default size is `body`.
78
+
79
+ <Canvas of={exampleStories.LinkSizes} />
80
+
81
+ ### Links within Text
82
+
83
+ The `isInline` prop can be toggled to have the `Link` inherit the sizing from the parent text element. This is useful when the `Link` is nested within a paragraph or other text element.
84
+
85
+ ### Link content and children
86
+
87
+ Labels and any `Link` content can be passed to the component via `children`. Where possible, ensure `Link` does not break over multiple lines. [See the section](/docs/components-link-usage-guidelines--docs) for standalone links for guidance. For icons as content, refer to the [next section](#icons-and-positioning).
88
+
89
+ ```tsx
90
+ <Link href="#link">Label</Link>
91
+ ```
92
+
93
+ While in most cases, `children` will be a `ReactNode`, `Link` also accepts a render function with React Aria's `LinkRenderProps`. This allows for more advanced styling and rendering options by hooking into React Aria's internal Link state. You can read more about this [here](https://react-spectrum.adobe.com/react-aria/Link.html#styling).
94
+
95
+ ### Icons and positioning
96
+
97
+ [This is the intended icon](docs/components-icon-icon-future-api-specification--docs) component to be used with `Link`. The `icon` property abstracts the need to handle positioning and sizing of icons within the `Link` component. The `iconPosition` prop allows for the icon to be positioned to the left or right of the `children`.
98
+
99
+ ### Icons and Underlines
100
+
101
+ The underline on the `Link` can be toggled using the `isUnderlined` prop and is `true` by default. If the `Link` is not underlined, the `icon` prop must be passed. The `icon` prop is optional if the link is underlined.
102
+
103
+ <Canvas of={exampleStories.LinkWithIconStart} />
104
+
105
+ Setting the `iconPosition` props will ensure content is flipped in `RTL` layouts. Note that icons will need the [shouldMirrorInRTL](/docs/illustrations-icon-icon-future-api-specification--docs#mirror-in-rtl) prop set to `true` when mirroring is required.
106
+
107
+ <Canvas of={exampleStories.LinkWithIconEnd} />
108
+
109
+ ## Client side routing
110
+
111
+ Please refer to the [client side routing](/docs/guides-client-side-routing--docs) for more information on how to set up client side routing with the `Link` component.
112
+
113
+ ## Additional API options
114
+
115
+ The following table is a collection of additional React Aria and native HTML props that are exposed from the [React Aria Link API](https://react-spectrum.adobe.com/react-aria/Link.html). These are not required for the implementation of `LinkButton` but can be used to extend its functionality. Refer back to the [overview section](#overview) for the core props that enable most use cases.
116
+
117
+ <ArgTypes
118
+ of={exampleStories.Playground}
119
+ exclude={[
120
+ 'className',
121
+ 'children',
122
+ 'href',
123
+ 'variant',
124
+ 'size',
125
+ 'icon',
126
+ 'iconPosition',
127
+ 'underlined',
128
+ 'isInline',
129
+ 'isUnderlined',
130
+ 'isReversed',
131
+ 'isDisabled',
132
+ ]}
133
+ />
@@ -0,0 +1,107 @@
1
+ import { Canvas, Meta, Controls } from '@storybook/blocks'
2
+ import {
3
+ ResourceLinks,
4
+ KAIOInstallation,
5
+ LinkTo,
6
+ DosAndDonts,
7
+ DoOrDont,
8
+ } from '~storybook/components'
9
+ import * as Link from './Link.doc.stories'
10
+
11
+ <Meta title="Components/Link/Usage Guidelines" />
12
+
13
+ # Link
14
+
15
+ Updated Jan 30, 2025
16
+
17
+ <ResourceLinks
18
+ sourceCode="https://github.com/cultureamp/kaizen-design-system/tree/main/packages/components/src/Link"
19
+ figma="https://www.figma.com/design/FWIOtGjpv9z0by95j1SgP0/Link?node-id=273-4107"
20
+ apiSpecification="/?path=/docs/components-link-api-specification--docs"
21
+ />
22
+
23
+ <KAIOInstallation exportNames={'Link'} />
24
+
25
+ ## Overview
26
+
27
+ `Link` allow users to navigate to a different location. They can be presented inside a paragraph or as standalone text.
28
+
29
+ <Canvas of={Link.Playground} />
30
+
31
+ <Controls
32
+ of={Link.Playground}
33
+ include={['href', 'variant', 'size', 'isDisabled', 'icon', 'iconPosition']}
34
+ className="mb-64"
35
+ />
36
+
37
+ ## When to use
38
+
39
+ - Navigating to a different page within the application
40
+ - Navigating to an entirely different site
41
+ - Jump to an element on the same page
42
+ - Link to emails or phone numbers
43
+
44
+ ## When not to use
45
+
46
+ - Do not use links for actions that will change data or manipulate how it is displayed, change a state, or trigger an action. Instead, use buttons to guide users to specific actions.
47
+
48
+ ### Use primary links to highlight
49
+
50
+ The primary link is the default and is blue. This should be used to call attention to the link and for when the blue color won’t feel too overwhelming in the experience.
51
+
52
+ ### Use secondary links to optimise readability
53
+
54
+ The secondary link is the same color as the paragraph text. Its subdued appearance is optimal for when the primary variant is too overwhelming, such as in blocks of text with several references linked throughout.
55
+
56
+ ### Use links in body copy
57
+
58
+ Put links in regular text, not in titles. If you need something bigger or more noticeable, try using a button instead.
59
+
60
+ ### Use a relative link size
61
+
62
+ The link component has four size variants, each aligning with body text sizes.
63
+
64
+ - **Inline Links**: Use the isInline prop to inherit the font size from the parent Text component.
65
+ - **Standalone Links**: Choose a size that maintains consistency with the surrounding text within the same component or pattern.
66
+
67
+ ### Give context to inline links
68
+
69
+ For links in a sentence, write them as part of the sentence and include enough information so people know what to expect. This approach can draw a user’s focus to the linked text. If the link leads to more content, it can be helpful to write it as a descriptive noun (e.g., “survey feedback”). If the link launches a task or action, start it with a verb (e.g., “Share your feedback”).
70
+
71
+ ### Specs
72
+
73
+ #### Write standalone links like calls-to-action
74
+
75
+ Standalone links are not full sentences, and do not have punctuation at the end. Treat these like calls-to-action by writing them as short verb phrases. Where possible, do not break over multiple lines.
76
+
77
+ <DosAndDonts>
78
+ <DoOrDont story={Link.StandaloneLinkDo} />
79
+ <DoOrDont story={Link.StandaloneLinkDont} isDont />
80
+ </DosAndDonts>
81
+
82
+ #### Ensure clarity by prioritizing the most valuable links
83
+
84
+ Think about how many links you use and where you put them. Don't overload your interface with too many links as clustering links can confuse people.
85
+
86
+ <DosAndDonts>
87
+ <DoOrDont story={Link.OneLinkInSentence} />
88
+ <DoOrDont story={Link.FiveLinksInSentence} isDont />
89
+ </DosAndDonts>
90
+
91
+ #### Use icons in links sparingly and consistently
92
+
93
+ Overusing icons can create visual clutter and overwhelm users. Use them sparingly to highlight common and recognisable navigation.
94
+
95
+ <DosAndDonts>
96
+ <DoOrDont story={Link.ExternalIconLink} />
97
+ <DoOrDont story={Link.RandomIconLink} isDont />
98
+ </DosAndDonts>
99
+
100
+ #### Links should make sense in isolation
101
+
102
+ If links on a page have the same label repeated multiple times, they should have distinct, accessible names that add context for users. This ensures [better accessibility for screen reader](https://cultureamp.atlassian.net/wiki/spaces/PA/pages/3240099910/Buttons+and+link+labels+make+sense+in+isolation) users, who rely on descriptive labels to distinguish between links.
103
+
104
+ <DosAndDonts>
105
+ <DoOrDont story={Link.DistinctNamedLink} />
106
+ <DoOrDont story={Link.GenericNamedLink} isDont />
107
+ </DosAndDonts>
@@ -0,0 +1,238 @@
1
+ import React from 'react'
2
+ import { type Meta, type StoryObj } from '@storybook/react'
3
+ import { Text } from '~components/Text'
4
+ import { Icon } from '~components/__next__/Icon'
5
+ import { Link } from '../Link'
6
+
7
+ const meta = {
8
+ title: 'Components/Link',
9
+ component: Link,
10
+ args: {
11
+ children: 'Link',
12
+ href: 'https://www.google.com',
13
+ },
14
+ argTypes: {
15
+ variant: {
16
+ options: ['primary', 'secondary', 'white'],
17
+ },
18
+ size: {
19
+ options: ['intro-lede', 'body', 'small', 'extra-small'],
20
+ },
21
+ icon: {
22
+ options: ['arrow_forward', 'open_in_new'],
23
+ mapping: {
24
+ // eslint-disable-next-line camelcase
25
+ arrow_forward: <Icon isPresentational name="arrow_forward" />,
26
+ // eslint-disable-next-line camelcase
27
+ open_in_new: <Icon isPresentational name="open_in_new" />,
28
+ },
29
+ description:
30
+ 'Renders an icon at the specified `iconPosition`. For size scaling, use the `Icon` component from `"@kaizen/components/future"`. See [all available icons](https://cultureamp.design/?path=/docs/components-icon-icon-future-api-specification--docs)',
31
+ },
32
+ },
33
+ } satisfies Meta<typeof Link>
34
+
35
+ export default meta
36
+
37
+ type Story = StoryObj<typeof meta>
38
+
39
+ export const Playground: Story = {
40
+ render: (props) =>
41
+ props.variant !== 'white' ? (
42
+ <Link {...props} />
43
+ ) : (
44
+ <div className="flex p-12 bg-purple-600">
45
+ {' '}
46
+ <Link {...props} />
47
+ </div>
48
+ ),
49
+ }
50
+
51
+ export const LinkVariants: Story = {
52
+ render: (props) => (
53
+ <>
54
+ <Link {...props} variant="primary" />
55
+ <br />
56
+ <Link {...props} variant="secondary" />
57
+ </>
58
+ ),
59
+ decorators: [
60
+ (Story) => (
61
+ <div className="flex gap-8">
62
+ <Story />
63
+ </div>
64
+ ),
65
+ ],
66
+ }
67
+
68
+ export const LinkVariantWhite: Story = {
69
+ render: (props) => <Link {...props} variant="white" />,
70
+ parameters: {
71
+ reverseColors: true,
72
+ },
73
+ }
74
+
75
+ export const LinkWithIconStart: Story = {
76
+ render: (props) => (
77
+ <Link {...props} icon={<Icon name="add" isPresentational />} iconPosition="start" />
78
+ ),
79
+ }
80
+
81
+ export const LinkWithIconEnd: Story = {
82
+ render: (props) => (
83
+ <Link {...props} icon={<Icon name="add" isPresentational />} iconPosition="end" />
84
+ ),
85
+ }
86
+
87
+ export const LinkOpensInNewTab: Story = {
88
+ render: (props) => (
89
+ <Link
90
+ {...props}
91
+ target="_blank"
92
+ icon={<Icon name="open_in_new" isPresentational />}
93
+ iconPosition="end"
94
+ />
95
+ ),
96
+ }
97
+
98
+ export const WithText: Story = {
99
+ render: ({ size: _, ...otherArgs }) => (
100
+ <>
101
+ <Text variant="intro-lede">
102
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Quae eaque amet atque. Dolores
103
+ repellendus eligendi <span style={{ textDecoration: 'underline' }}> totam.</span>{' '}
104
+ <Link {...otherArgs} icon={<Icon name="add" isPresentational />} isInline /> Mollitia vero
105
+ asperiores assumenda, odit ratione id perspiciatis suscipit molestias quas facere, commodi
106
+ saepe! Quisquam, quidem quas a quos quae quia quidem, quod, voluptates, dolorum quibusdam.
107
+ Quisquam, quidem quas a quos quae
108
+ </Text>
109
+ <br />
110
+ <Text variant="body">
111
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Quae eaque amet atque. Dolores
112
+ repellendus eligendi <span style={{ textDecoration: 'underline' }}> totam.</span>{' '}
113
+ <Link
114
+ {...otherArgs}
115
+ icon={<Icon name="add" isPresentational />}
116
+ isInline
117
+ size={undefined}
118
+ />
119
+ Mollitia vero asperiores assumenda, odit ratione id perspiciatis suscipit molestias quas
120
+ facere, commodi saepe! Quisquam, quidem quas a quos quae quia quidem, quod, voluptates,
121
+ dolorum quibusdam. Quisquam, quidem quas a quos quae
122
+ </Text>
123
+ <br />
124
+ <Text variant="small">
125
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Quae eaque amet atque. Dolores
126
+ repellendus eligendi <span style={{ textDecoration: 'underline' }}> totam.</span>{' '}
127
+ <Link {...otherArgs} icon={<Icon name="add" isPresentational />} isInline /> Mollitia vero
128
+ asperiores assumenda, odit ratione id perspiciatis suscipit molestias quas facere, commodi
129
+ saepe! Quisquam, quidem quas a quos quae quia quidem, quod, voluptates, dolorum quibusdam.
130
+ Quisquam, quidem quas a quos quae
131
+ </Text>
132
+ <br />
133
+ <Text variant="extra-small">
134
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Quae eaque amet atque. Dolores
135
+ repellendus eligendi <span style={{ textDecoration: 'underline' }}> totam.</span>{' '}
136
+ <Link {...otherArgs} icon={<Icon name="add" isPresentational />} isInline /> Mollitia vero
137
+ asperiores assumenda, odit ratione id perspiciatis suscipit molestias quas facere, commodi
138
+ saepe! Quisquam, quidem quas a quos quae quia quidem, quod, voluptates, dolorum quibusdam.
139
+ Quisquam, quidem quas a quos quae
140
+ </Text>
141
+ </>
142
+ ),
143
+ }
144
+
145
+ // Links of every different size
146
+ export const LinkSizes: Story = {
147
+ render: ({ children: _, size: __, isInline: ___, ...otherArgs }) => (
148
+ <>
149
+ <Link size="extra-small" {...otherArgs}>
150
+ Extra Small
151
+ </Link>
152
+ <br />
153
+ <Link {...otherArgs} size="small">
154
+ Small
155
+ </Link>
156
+ <br />
157
+ <Link {...otherArgs} size="body">
158
+ Body
159
+ </Link>
160
+ <br />
161
+ <Link {...otherArgs} size="intro-lede">
162
+ Intro Lede
163
+ </Link>
164
+ </>
165
+ ),
166
+ }
167
+
168
+ export const StandaloneLinkDo: Story = {
169
+ render: (props) => <Link {...props}>Learn more about demographics</Link>,
170
+ }
171
+
172
+ export const StandaloneLinkDont: Story = {
173
+ render: ({ size: _, ...otherArgs }) => (
174
+ <Text variant="body">
175
+ Learn more about{' '}
176
+ <Link {...otherArgs} isInline>
177
+ demographics
178
+ </Link>
179
+ </Text>
180
+ ),
181
+ }
182
+
183
+ export const OneLinkInSentence: Story = {
184
+ render: (props) => (
185
+ <Text variant="body">
186
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Illo ad nobis, ut aspernatur deserunt
187
+ fuga expedita amet architecto{' '}
188
+ <Link {...props} isInline size={undefined}>
189
+ pariatur cum itaque
190
+ </Link>{' '}
191
+ dicta veritatis inventore ea esse rem dolore natus! Architecto.
192
+ </Text>
193
+ ),
194
+ }
195
+
196
+ export const FiveLinksInSentence: Story = {
197
+ render: ({ size: _, ...otherArgs }) => (
198
+ <Text variant="body">
199
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Illo{' '}
200
+ <Link {...otherArgs} isInline>
201
+ {' '}
202
+ ad nobis
203
+ </Link>
204
+ , ut aspernatur{' '}
205
+ <Link {...otherArgs} isInline>
206
+ deserunt fuga expedita amet architecto
207
+ </Link>{' '}
208
+ <Link {...otherArgs} isInline>
209
+ pariatur cum itaque
210
+ </Link>{' '}
211
+ dicta veritatis{' '}
212
+ <Link {...otherArgs} isInline>
213
+ inventore ea
214
+ </Link>{' '}
215
+ esse rem dolore{' '}
216
+ <Link {...otherArgs} isInline>
217
+ natus
218
+ </Link>
219
+ ! Architecto.
220
+ </Text>
221
+ ),
222
+ }
223
+
224
+ export const ExternalIconLink: Story = {
225
+ render: (props) => <Link {...props} icon={<Icon name="open_in_new" isPresentational />} />,
226
+ }
227
+
228
+ export const RandomIconLink: Story = {
229
+ render: (props) => <Link {...props} icon={<Icon name="flag" isPresentational />} />,
230
+ }
231
+
232
+ export const DistinctNamedLink: Story = {
233
+ render: (props) => <Link {...props}>View Q4 2024 dataset</Link>,
234
+ }
235
+
236
+ export const GenericNamedLink: Story = {
237
+ render: (props) => <Link {...props}>Learn more</Link>,
238
+ }