@redsift/design-system 11.6.0-muiv5-alpha.4 → 11.6.0-muiv5-alpha.5

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 (992) hide show
  1. package/_internal/Alert2.js +54 -0
  2. package/_internal/Alert2.js.map +1 -0
  3. package/_internal/AppBar.js +37 -0
  4. package/_internal/AppBar.js.map +1 -0
  5. package/_internal/AppContainer.js +96 -0
  6. package/_internal/AppContainer.js.map +1 -0
  7. package/_internal/AppContent.js +25 -0
  8. package/_internal/AppContent.js.map +1 -0
  9. package/_internal/Badge2.js +9 -0
  10. package/_internal/Badge2.js.map +1 -0
  11. package/_internal/BreadcrumbItem.js +9 -0
  12. package/_internal/BreadcrumbItem.js.map +1 -0
  13. package/_internal/Breadcrumbs2.js +29 -0
  14. package/_internal/Breadcrumbs2.js.map +1 -0
  15. package/_internal/Button2.js +30 -0
  16. package/_internal/Button2.js.map +1 -0
  17. package/_internal/ButtonGroup.js +41 -0
  18. package/_internal/ButtonGroup.js.map +1 -0
  19. package/_internal/ButtonLink.js +28 -0
  20. package/_internal/ButtonLink.js.map +1 -0
  21. package/_internal/Card2.js +35 -0
  22. package/_internal/Card2.js.map +1 -0
  23. package/_internal/CardActions.js +9 -0
  24. package/_internal/CardActions.js.map +1 -0
  25. package/_internal/CardBody.js +9 -0
  26. package/_internal/CardBody.js.map +1 -0
  27. package/_internal/CardHeader.js +9 -0
  28. package/_internal/CardHeader.js.map +1 -0
  29. package/_internal/Checkbox2.js +68 -0
  30. package/_internal/Checkbox2.js.map +1 -0
  31. package/_internal/CheckboxGroup.js +10 -0
  32. package/_internal/CheckboxGroup.js.map +1 -0
  33. package/_internal/ConditionalWrapper.js +14 -0
  34. package/_internal/ConditionalWrapper.js.map +1 -0
  35. package/_internal/DetailedCard.js +52 -0
  36. package/_internal/DetailedCard.js.map +1 -0
  37. package/_internal/DetailedCardCollapsibleSectionItems.js +9 -0
  38. package/_internal/DetailedCardCollapsibleSectionItems.js.map +1 -0
  39. package/_internal/DetailedCardHeader.js +9 -0
  40. package/_internal/DetailedCardHeader.js.map +1 -0
  41. package/_internal/DetailedCardSection.js +9 -0
  42. package/_internal/DetailedCardSection.js.map +1 -0
  43. package/_internal/DetailedCardSectionItem.js +9 -0
  44. package/_internal/DetailedCardSectionItem.js.map +1 -0
  45. package/_internal/Flexbox2.js +30 -0
  46. package/_internal/Flexbox2.js.map +1 -0
  47. package/_internal/Grid2.js +32 -0
  48. package/_internal/Grid2.js.map +1 -0
  49. package/_internal/GridItem.js +9 -0
  50. package/_internal/GridItem.js.map +1 -0
  51. package/_internal/Heading2.js +9 -0
  52. package/_internal/Heading2.js.map +1 -0
  53. package/_internal/Icon2.js +10 -0
  54. package/_internal/Icon2.js.map +1 -0
  55. package/_internal/IconButton.js +12 -0
  56. package/_internal/IconButton.js.map +1 -0
  57. package/_internal/IconButtonLink.js +28 -0
  58. package/_internal/IconButtonLink.js.map +1 -0
  59. package/_internal/Item2.js +82 -0
  60. package/_internal/Item2.js.map +1 -0
  61. package/_internal/Link2.js +26 -0
  62. package/_internal/Link2.js.map +1 -0
  63. package/_internal/LinkButton.js +23 -0
  64. package/_internal/LinkButton.js.map +1 -0
  65. package/_internal/Listbox2.js +274 -0
  66. package/_internal/Listbox2.js.map +1 -0
  67. package/_internal/Number2.js +69 -0
  68. package/_internal/Number2.js.map +1 -0
  69. package/_internal/NumberField.js +80 -0
  70. package/_internal/NumberField.js.map +1 -0
  71. package/_internal/Pill2.js +9 -0
  72. package/_internal/Pill2.js.map +1 -0
  73. package/_internal/ProgressBar.js +26 -0
  74. package/_internal/ProgressBar.js.map +1 -0
  75. package/_internal/Radio2.js +66 -0
  76. package/_internal/Radio2.js.map +1 -0
  77. package/_internal/RadioGroup.js +10 -0
  78. package/_internal/RadioGroup.js.map +1 -0
  79. package/_internal/Shield2.js +9 -0
  80. package/_internal/Shield2.js.map +1 -0
  81. package/_internal/SideNavigationMenu.js +9 -0
  82. package/_internal/SideNavigationMenu.js.map +1 -0
  83. package/_internal/SideNavigationMenuBar.js +9 -0
  84. package/_internal/SideNavigationMenuItem.js +9 -0
  85. package/_internal/SideNavigationMenuItem.js.map +1 -0
  86. package/_internal/Skeleton2.js +15 -0
  87. package/_internal/Skeleton2.js.map +1 -0
  88. package/_internal/SkeletonCircle.js +9 -0
  89. package/_internal/SkeletonCircle.js.map +1 -0
  90. package/_internal/SkeletonText.js +9 -0
  91. package/_internal/SkeletonText.js.map +1 -0
  92. package/_internal/Spinner2.js +43 -0
  93. package/_internal/Spinner2.js.map +1 -0
  94. package/_internal/Switch2.js +66 -0
  95. package/_internal/Switch2.js.map +1 -0
  96. package/_internal/SwitchGroup.js +10 -0
  97. package/_internal/SwitchGroup.js.map +1 -0
  98. package/_internal/Text2.js +9 -0
  99. package/_internal/Text2.js.map +1 -0
  100. package/_internal/TextArea.js +34 -0
  101. package/_internal/TextArea.js.map +1 -0
  102. package/_internal/TextField.js +29 -0
  103. package/_internal/TextField.js.map +1 -0
  104. package/_internal/_rollupPluginBabelHelpers.js +133 -0
  105. package/_internal/alert.js +5 -0
  106. package/_internal/alert.js.map +1 -0
  107. package/_internal/app-bar.js +8 -0
  108. package/_internal/app-bar.js.map +1 -0
  109. package/_internal/app-container.js +9 -0
  110. package/_internal/app-container.js.map +1 -0
  111. package/_internal/app-content.js +5 -0
  112. package/_internal/app-content.js.map +1 -0
  113. package/_internal/app-side-panel.js +11 -0
  114. package/_internal/app-side-panel.js.map +1 -0
  115. package/_internal/badge.js +6 -0
  116. package/_internal/badge.js.map +1 -0
  117. package/_internal/breadcrumb-item.js +5 -0
  118. package/_internal/breadcrumb-item.js.map +1 -0
  119. package/_internal/breadcrumbs.js +6 -0
  120. package/_internal/breadcrumbs.js.map +1 -0
  121. package/_internal/button-group.js +5 -0
  122. package/_internal/button-group.js.map +1 -0
  123. package/_internal/button-link.js +8 -0
  124. package/_internal/button-link.js.map +1 -0
  125. package/_internal/button.js +8 -0
  126. package/_internal/button.js.map +1 -0
  127. package/_internal/card-actions.js +5 -0
  128. package/_internal/card-actions.js.map +1 -0
  129. package/_internal/card-body.js +5 -0
  130. package/_internal/card-body.js.map +1 -0
  131. package/_internal/card-header.js +9 -0
  132. package/_internal/card-header.js.map +1 -0
  133. package/_internal/card.js +11 -0
  134. package/_internal/card.js.map +1 -0
  135. package/_internal/checkbox-group.js +6 -0
  136. package/_internal/checkbox-group.js.map +1 -0
  137. package/_internal/checkbox.js +6 -0
  138. package/_internal/checkbox.js.map +1 -0
  139. package/_internal/colors.js +102 -0
  140. package/_internal/colors.js.map +1 -0
  141. package/_internal/conditional-wrapper.js +2 -0
  142. package/_internal/conditional-wrapper.js.map +1 -0
  143. package/_internal/context.js +6 -0
  144. package/_internal/context.js.map +1 -0
  145. package/_internal/context2.js +300 -0
  146. package/_internal/context2.js.map +1 -0
  147. package/_internal/context3.js +6 -0
  148. package/_internal/context3.js.map +1 -0
  149. package/_internal/context4.js +6 -0
  150. package/_internal/context4.js.map +1 -0
  151. package/_internal/context5.js +6 -0
  152. package/_internal/context5.js.map +1 -0
  153. package/_internal/detailed-card-collapsible-section-items.js +4 -0
  154. package/_internal/detailed-card-collapsible-section-items.js.map +1 -0
  155. package/_internal/detailed-card-header.js +8 -0
  156. package/_internal/detailed-card-header.js.map +1 -0
  157. package/_internal/detailed-card-section-item.js +11 -0
  158. package/_internal/detailed-card-section-item.js.map +1 -0
  159. package/_internal/detailed-card-section.js +7 -0
  160. package/_internal/detailed-card-section.js.map +1 -0
  161. package/_internal/detailed-card.js +16 -0
  162. package/_internal/detailed-card.js.map +1 -0
  163. package/_internal/filterComponents.js +24 -0
  164. package/_internal/filterComponents.js.map +1 -0
  165. package/_internal/flexbox.js +5 -0
  166. package/_internal/flexbox.js.map +1 -0
  167. package/_internal/focus-within-group.js +3 -0
  168. package/_internal/focus-within-group.js.map +1 -0
  169. package/_internal/fonts.js +12 -0
  170. package/_internal/gradient-border.js +19 -0
  171. package/_internal/gradient-border.js.map +1 -0
  172. package/_internal/grid-item.js +5 -0
  173. package/_internal/grid-item.js.map +1 -0
  174. package/_internal/grid.js +6 -0
  175. package/_internal/grid.js.map +1 -0
  176. package/_internal/heading.js +7 -0
  177. package/_internal/heading.js.map +1 -0
  178. package/_internal/helpers.js +23 -0
  179. package/_internal/icon-button-link.js +8 -0
  180. package/_internal/icon-button-link.js.map +1 -0
  181. package/_internal/icon-button.js +7 -0
  182. package/_internal/icon-button.js.map +1 -0
  183. package/_internal/icon.js +6 -0
  184. package/_internal/icon.js.map +1 -0
  185. package/_internal/isComponent.js +15 -0
  186. package/_internal/isComponent.js.map +1 -0
  187. package/_internal/item.js +8 -0
  188. package/_internal/item.js.map +1 -0
  189. package/_internal/link-button.js +8 -0
  190. package/_internal/link-button.js.map +1 -0
  191. package/_internal/link.js +8 -0
  192. package/_internal/link.js.map +1 -0
  193. package/_internal/listbox.js +6 -0
  194. package/_internal/listbox.js.map +1 -0
  195. package/_internal/number-field.js +9 -0
  196. package/_internal/number-field.js.map +1 -0
  197. package/_internal/number.js +7 -0
  198. package/_internal/number.js.map +1 -0
  199. package/_internal/partitionComponents.js +26 -0
  200. package/_internal/pill.js +6 -0
  201. package/_internal/pill.js.map +1 -0
  202. package/_internal/progress-bar.js +5 -0
  203. package/_internal/progress-bar.js.map +1 -0
  204. package/_internal/radio-group.js +6 -0
  205. package/_internal/radio-group.js.map +1 -0
  206. package/_internal/radio.js +6 -0
  207. package/_internal/radio.js.map +1 -0
  208. package/_internal/redsift-design-tokens.js +1391 -0
  209. package/_internal/shared.js +5 -0
  210. package/_internal/shared.js.map +1 -0
  211. package/_internal/shield.js +6 -0
  212. package/_internal/shield.js.map +1 -0
  213. package/_internal/side-navigation-menu-bar.js +9 -0
  214. package/_internal/side-navigation-menu-bar.js.map +1 -0
  215. package/_internal/side-navigation-menu-item.js +8 -0
  216. package/_internal/side-navigation-menu-item.js.map +1 -0
  217. package/_internal/side-navigation-menu.js +8 -0
  218. package/_internal/side-navigation-menu.js.map +1 -0
  219. package/_internal/skeleton-circle.js +7 -0
  220. package/_internal/skeleton-circle.js.map +1 -0
  221. package/_internal/skeleton-text.js +7 -0
  222. package/_internal/skeleton-text.js.map +1 -0
  223. package/_internal/skeleton.js +8 -0
  224. package/_internal/skeleton.js.map +1 -0
  225. package/_internal/spinner.js +5 -0
  226. package/_internal/spinner.js.map +1 -0
  227. package/_internal/styles.js +17 -0
  228. package/_internal/styles.js.map +1 -0
  229. package/_internal/styles2.js +283 -0
  230. package/_internal/styles2.js.map +1 -0
  231. package/_internal/styles3.js +145 -0
  232. package/_internal/styles3.js.map +1 -0
  233. package/_internal/styles4.js +250 -0
  234. package/_internal/styles4.js.map +1 -0
  235. package/_internal/styles5.js +143 -0
  236. package/_internal/styles5.js.map +1 -0
  237. package/_internal/styles6.js +84 -0
  238. package/_internal/styles6.js.map +1 -0
  239. package/_internal/switch-group.js +6 -0
  240. package/_internal/switch-group.js.map +1 -0
  241. package/_internal/switch.js +6 -0
  242. package/_internal/switch.js.map +1 -0
  243. package/_internal/text-area.js +9 -0
  244. package/_internal/text-area.js.map +1 -0
  245. package/_internal/text-field.js +10 -0
  246. package/_internal/text-field.js.map +1 -0
  247. package/_internal/text.js +7 -0
  248. package/_internal/text.js.map +1 -0
  249. package/_internal/theme.js +4 -0
  250. package/_internal/theme.js.map +1 -0
  251. package/_internal/types.js +39 -0
  252. package/_internal/types.js.map +1 -0
  253. package/_internal/types10.js +20 -0
  254. package/_internal/types11.js +27 -0
  255. package/_internal/types12.js +35 -0
  256. package/_internal/types13.js +143 -0
  257. package/_internal/types14.js +11 -0
  258. package/_internal/types15.js +62 -0
  259. package/_internal/types16.js +56 -0
  260. package/_internal/types17.js +57 -0
  261. package/_internal/types18.js +40 -0
  262. package/_internal/types19.js +101 -0
  263. package/_internal/types2.js +37 -0
  264. package/_internal/types2.js.map +1 -0
  265. package/_internal/types20.js +47 -0
  266. package/_internal/types21.js +68 -0
  267. package/_internal/types22.js +52 -0
  268. package/_internal/types23.js +174 -0
  269. package/_internal/types24.js +18 -0
  270. package/_internal/types25.js +12 -0
  271. package/_internal/types26.js +36 -0
  272. package/_internal/types27.js +72 -0
  273. package/_internal/types28.js +73 -0
  274. package/_internal/types29.js +99 -0
  275. package/_internal/types3.js +23 -0
  276. package/_internal/types3.js.map +1 -0
  277. package/_internal/types4.js +67 -0
  278. package/_internal/types5.js +11 -0
  279. package/_internal/types6.js +11 -0
  280. package/_internal/types7.js +28 -0
  281. package/_internal/types8.js +72 -0
  282. package/_internal/types9.js +16 -0
  283. package/_internal/useAppSidePanel.js +12 -0
  284. package/_internal/useAppSidePanel.js.map +1 -0
  285. package/_internal/useFocusOnList.js +83 -0
  286. package/_internal/useFocusOnList.js.map +1 -0
  287. package/_internal/useFocusOnListItem.js +203 -0
  288. package/_internal/useFocusOnListItem.js.map +1 -0
  289. package/_internal/useFocusRing.js +669 -0
  290. package/_internal/useFocusRing.js.map +1 -0
  291. package/_internal/useId.js +42 -0
  292. package/_internal/useId.js.map +1 -0
  293. package/_internal/useIsLoaded.js +14 -0
  294. package/_internal/useListboxItem.js +32 -0
  295. package/_internal/useListboxItem.js.map +1 -0
  296. package/_internal/useMessageFormatter.js +143 -0
  297. package/_internal/useMessageFormatter.js.map +1 -0
  298. package/_internal/useNumberFormatter.js +239 -0
  299. package/_internal/useNumberFormatter.js.map +1 -0
  300. package/_internal/useSideNavigationMenuBar.js +9 -0
  301. package/_internal/useSideNavigationMenuBar.js.map +1 -0
  302. package/_internal/useTheme.js +13 -0
  303. package/_internal/useTheme.js.map +1 -0
  304. package/_internal/warnIfNoAccessibleLabelFound.js +20 -0
  305. package/index.js +1738 -122
  306. package/index.js.map +1 -1
  307. package/package.json +2 -7
  308. package/_virtual/_rollupPluginBabelHelpers.js +0 -133
  309. package/components/alert/Alert.d.ts +0 -9
  310. package/components/alert/Alert.js +0 -117
  311. package/components/alert/Alert.js.map +0 -1
  312. package/components/alert/intl/en-US.json.js +0 -7
  313. package/components/alert/intl/en-US.json.js.map +0 -1
  314. package/components/alert/intl/fr-FR.json.js +0 -7
  315. package/components/alert/intl/fr-FR.json.js.map +0 -1
  316. package/components/alert/intl/index.js +0 -10
  317. package/components/alert/intl/index.js.map +0 -1
  318. package/components/alert/styles.js +0 -54
  319. package/components/alert/styles.js.map +0 -1
  320. package/components/alert/types.d.ts +0 -49
  321. package/components/alert/types.js +0 -20
  322. package/components/alert/types.js.map +0 -1
  323. package/components/app-bar/AppBar.d.ts +0 -9
  324. package/components/app-bar/AppBar.js +0 -95
  325. package/components/app-bar/AppBar.js.map +0 -1
  326. package/components/app-bar/intl/en-US.json.js +0 -9
  327. package/components/app-bar/intl/en-US.json.js.map +0 -1
  328. package/components/app-bar/intl/fr-FR.json.js +0 -9
  329. package/components/app-bar/intl/fr-FR.json.js.map +0 -1
  330. package/components/app-bar/intl/index.js +0 -10
  331. package/components/app-bar/intl/index.js.map +0 -1
  332. package/components/app-bar/styles.js +0 -139
  333. package/components/app-bar/styles.js.map +0 -1
  334. package/components/app-bar/types.d.ts +0 -31
  335. package/components/app-container/AppContainer.d.ts +0 -11
  336. package/components/app-container/AppContainer.js +0 -117
  337. package/components/app-container/AppContainer.js.map +0 -1
  338. package/components/app-container/context.d.ts +0 -6
  339. package/components/app-container/context.js +0 -6
  340. package/components/app-container/context.js.map +0 -1
  341. package/components/app-container/styles.js +0 -30
  342. package/components/app-container/styles.js.map +0 -1
  343. package/components/app-container/types.d.ts +0 -51
  344. package/components/app-content/AppContent.d.ts +0 -9
  345. package/components/app-content/AppContent.js +0 -42
  346. package/components/app-content/AppContent.js.map +0 -1
  347. package/components/app-content/styles.js +0 -54
  348. package/components/app-content/styles.js.map +0 -1
  349. package/components/app-content/types.d.ts +0 -19
  350. package/components/app-side-panel/AppSidePanel.d.ts +0 -9
  351. package/components/app-side-panel/AppSidePanel.js +0 -86
  352. package/components/app-side-panel/AppSidePanel.js.map +0 -1
  353. package/components/app-side-panel/intl/en-US.json.js +0 -9
  354. package/components/app-side-panel/intl/en-US.json.js.map +0 -1
  355. package/components/app-side-panel/intl/fr-FR.json.js +0 -9
  356. package/components/app-side-panel/intl/fr-FR.json.js.map +0 -1
  357. package/components/app-side-panel/intl/index.js +0 -10
  358. package/components/app-side-panel/intl/index.js.map +0 -1
  359. package/components/app-side-panel/styles.js +0 -183
  360. package/components/app-side-panel/styles.js.map +0 -1
  361. package/components/app-side-panel/types.d.ts +0 -39
  362. package/components/app-side-panel/types.js +0 -15
  363. package/components/app-side-panel/types.js.map +0 -1
  364. package/components/app-side-panel/useAppSidePanel.d.ts +0 -6
  365. package/components/app-side-panel/useAppSidePanel.js +0 -23
  366. package/components/app-side-panel/useAppSidePanel.js.map +0 -1
  367. package/components/badge/Badge.d.ts +0 -9
  368. package/components/badge/Badge.js +0 -44
  369. package/components/badge/Badge.js.map +0 -1
  370. package/components/badge/styles.js +0 -93
  371. package/components/badge/styles.js.map +0 -1
  372. package/components/badge/types.d.ts +0 -37
  373. package/components/badge/types.js +0 -14
  374. package/components/badge/types.js.map +0 -1
  375. package/components/breadcrumb-item/BreadcrumbItem.d.ts +0 -9
  376. package/components/breadcrumb-item/BreadcrumbItem.js +0 -47
  377. package/components/breadcrumb-item/BreadcrumbItem.js.map +0 -1
  378. package/components/breadcrumb-item/styles.js +0 -48
  379. package/components/breadcrumb-item/styles.js.map +0 -1
  380. package/components/breadcrumb-item/types.d.ts +0 -23
  381. package/components/breadcrumbs/Breadcrumbs.d.ts +0 -13
  382. package/components/breadcrumbs/Breadcrumbs.js +0 -61
  383. package/components/breadcrumbs/Breadcrumbs.js.map +0 -1
  384. package/components/breadcrumbs/styles.js +0 -38
  385. package/components/breadcrumbs/styles.js.map +0 -1
  386. package/components/breadcrumbs/types.d.ts +0 -19
  387. package/components/button/Button.d.ts +0 -13
  388. package/components/button/Button.js +0 -92
  389. package/components/button/Button.js.map +0 -1
  390. package/components/button/styles.d.ts +0 -20
  391. package/components/button/styles.js +0 -219
  392. package/components/button/styles.js.map +0 -1
  393. package/components/button/types.d.ts +0 -67
  394. package/components/button/types.js +0 -19
  395. package/components/button/types.js.map +0 -1
  396. package/components/button-group/ButtonGroup.d.ts +0 -9
  397. package/components/button-group/ButtonGroup.js +0 -67
  398. package/components/button-group/ButtonGroup.js.map +0 -1
  399. package/components/button-group/styles.js +0 -103
  400. package/components/button-group/styles.js.map +0 -1
  401. package/components/button-group/types.d.ts +0 -36
  402. package/components/button-group/types.js +0 -19
  403. package/components/button-group/types.js.map +0 -1
  404. package/components/button-link/ButtonLink.d.ts +0 -13
  405. package/components/button-link/ButtonLink.js +0 -85
  406. package/components/button-link/ButtonLink.js.map +0 -1
  407. package/components/button-link/types.d.ts +0 -18
  408. package/components/card/Card.d.ts +0 -13
  409. package/components/card/Card.js +0 -81
  410. package/components/card/Card.js.map +0 -1
  411. package/components/card/intl/en-US.json.js +0 -9
  412. package/components/card/intl/en-US.json.js.map +0 -1
  413. package/components/card/intl/fr-FR.json.js +0 -9
  414. package/components/card/intl/fr-FR.json.js.map +0 -1
  415. package/components/card/intl/index.js +0 -10
  416. package/components/card/intl/index.js.map +0 -1
  417. package/components/card/styles.js +0 -63
  418. package/components/card/styles.js.map +0 -1
  419. package/components/card/types.d.ts +0 -25
  420. package/components/card-actions/CardActions.d.ts +0 -9
  421. package/components/card-actions/CardActions.js +0 -33
  422. package/components/card-actions/CardActions.js.map +0 -1
  423. package/components/card-actions/styles.js +0 -15
  424. package/components/card-actions/styles.js.map +0 -1
  425. package/components/card-actions/types.d.ts +0 -11
  426. package/components/card-body/CardBody.d.ts +0 -9
  427. package/components/card-body/CardBody.js +0 -28
  428. package/components/card-body/CardBody.js.map +0 -1
  429. package/components/card-body/styles.js +0 -18
  430. package/components/card-body/styles.js.map +0 -1
  431. package/components/card-body/types.d.ts +0 -11
  432. package/components/card-header/CardHeader.d.ts +0 -9
  433. package/components/card-header/CardHeader.js +0 -56
  434. package/components/card-header/CardHeader.js.map +0 -1
  435. package/components/card-header/styles.js +0 -31
  436. package/components/card-header/styles.js.map +0 -1
  437. package/components/card-header/types.d.ts +0 -28
  438. package/components/checkbox/Checkbox.d.ts +0 -11
  439. package/components/checkbox/Checkbox.js +0 -135
  440. package/components/checkbox/Checkbox.js.map +0 -1
  441. package/components/checkbox/styles.js +0 -113
  442. package/components/checkbox/styles.js.map +0 -1
  443. package/components/checkbox/types.d.ts +0 -60
  444. package/components/checkbox-group/CheckboxGroup.d.ts +0 -10
  445. package/components/checkbox-group/CheckboxGroup.js +0 -101
  446. package/components/checkbox-group/CheckboxGroup.js.map +0 -1
  447. package/components/checkbox-group/context.js +0 -6
  448. package/components/checkbox-group/context.js.map +0 -1
  449. package/components/checkbox-group/styles.js +0 -78
  450. package/components/checkbox-group/styles.js.map +0 -1
  451. package/components/checkbox-group/types.d.ts +0 -72
  452. package/components/checkbox-group/types.js +0 -18
  453. package/components/checkbox-group/types.js.map +0 -1
  454. package/components/conditional-wrapper/ConditionalWrapper.d.ts +0 -6
  455. package/components/conditional-wrapper/ConditionalWrapper.js +0 -13
  456. package/components/conditional-wrapper/ConditionalWrapper.js.map +0 -1
  457. package/components/conditional-wrapper/types.d.ts +0 -10
  458. package/components/detailed-card/DetailedCard.d.ts +0 -15
  459. package/components/detailed-card/DetailedCard.js +0 -170
  460. package/components/detailed-card/DetailedCard.js.map +0 -1
  461. package/components/detailed-card/intl/en-US.json.js +0 -7
  462. package/components/detailed-card/intl/en-US.json.js.map +0 -1
  463. package/components/detailed-card/intl/fr-FR.json.js +0 -7
  464. package/components/detailed-card/intl/fr-FR.json.js.map +0 -1
  465. package/components/detailed-card/intl/index.js +0 -10
  466. package/components/detailed-card/intl/index.js.map +0 -1
  467. package/components/detailed-card/styles.js +0 -49
  468. package/components/detailed-card/styles.js.map +0 -1
  469. package/components/detailed-card/types.d.ts +0 -49
  470. package/components/detailed-card-collapsible-section-items/DetailedCardCollapsibleSectionItems.d.ts +0 -9
  471. package/components/detailed-card-collapsible-section-items/DetailedCardCollapsibleSectionItems.js +0 -33
  472. package/components/detailed-card-collapsible-section-items/DetailedCardCollapsibleSectionItems.js.map +0 -1
  473. package/components/detailed-card-collapsible-section-items/styles.js +0 -35
  474. package/components/detailed-card-collapsible-section-items/styles.js.map +0 -1
  475. package/components/detailed-card-collapsible-section-items/types.d.ts +0 -16
  476. package/components/detailed-card-header/DetailedCardHeader.d.ts +0 -9
  477. package/components/detailed-card-header/DetailedCardHeader.js +0 -45
  478. package/components/detailed-card-header/DetailedCardHeader.js.map +0 -1
  479. package/components/detailed-card-header/styles.js +0 -26
  480. package/components/detailed-card-header/styles.js.map +0 -1
  481. package/components/detailed-card-header/types.d.ts +0 -20
  482. package/components/detailed-card-section/DetailedCardSection.d.ts +0 -9
  483. package/components/detailed-card-section/DetailedCardSection.js +0 -90
  484. package/components/detailed-card-section/DetailedCardSection.js.map +0 -1
  485. package/components/detailed-card-section/intl/en-US.json.js +0 -9
  486. package/components/detailed-card-section/intl/en-US.json.js.map +0 -1
  487. package/components/detailed-card-section/intl/fr-FR.json.js +0 -9
  488. package/components/detailed-card-section/intl/fr-FR.json.js.map +0 -1
  489. package/components/detailed-card-section/intl/index.js +0 -10
  490. package/components/detailed-card-section/intl/index.js.map +0 -1
  491. package/components/detailed-card-section/styles.js +0 -69
  492. package/components/detailed-card-section/styles.js.map +0 -1
  493. package/components/detailed-card-section/types.d.ts +0 -27
  494. package/components/detailed-card-section-item/DetailedCardSectionItem.d.ts +0 -9
  495. package/components/detailed-card-section-item/DetailedCardSectionItem.js +0 -64
  496. package/components/detailed-card-section-item/DetailedCardSectionItem.js.map +0 -1
  497. package/components/detailed-card-section-item/styles.js +0 -34
  498. package/components/detailed-card-section-item/styles.js.map +0 -1
  499. package/components/detailed-card-section-item/types.d.ts +0 -35
  500. package/components/flexbox/Flexbox.d.ts +0 -9
  501. package/components/flexbox/Flexbox.js +0 -44
  502. package/components/flexbox/Flexbox.js.map +0 -1
  503. package/components/flexbox/styles.js +0 -54
  504. package/components/flexbox/styles.js.map +0 -1
  505. package/components/flexbox/types.d.ts +0 -24
  506. package/components/focus-within-group/FocusWithinGroup.d.ts +0 -41
  507. package/components/focus-within-group/FocusWithinGroup.js +0 -91
  508. package/components/focus-within-group/FocusWithinGroup.js.map +0 -1
  509. package/components/focus-within-group/context.d.ts +0 -7
  510. package/components/focus-within-group/context.js +0 -21
  511. package/components/focus-within-group/context.js.map +0 -1
  512. package/components/focus-within-group/reducer.d.ts +0 -5
  513. package/components/focus-within-group/reducer.js +0 -419
  514. package/components/focus-within-group/reducer.js.map +0 -1
  515. package/components/focus-within-group/types.d.ts +0 -143
  516. package/components/focus-within-group/types.js +0 -42
  517. package/components/focus-within-group/types.js.map +0 -1
  518. package/components/focus-within-group/useFocusOnList.d.ts +0 -5
  519. package/components/focus-within-group/useFocusOnList.js +0 -44
  520. package/components/focus-within-group/useFocusOnList.js.map +0 -1
  521. package/components/focus-within-group/useFocusOnListItem.d.ts +0 -39
  522. package/components/focus-within-group/useFocusOnListItem.js +0 -148
  523. package/components/focus-within-group/useFocusOnListItem.js.map +0 -1
  524. package/components/gradient-border/index.d.ts +0 -14
  525. package/components/gradient-border/index.js +0 -38
  526. package/components/gradient-border/index.js.map +0 -1
  527. package/components/grid/Grid.d.ts +0 -13
  528. package/components/grid/Grid.js +0 -45
  529. package/components/grid/Grid.js.map +0 -1
  530. package/components/grid/styles.js +0 -55
  531. package/components/grid/styles.js.map +0 -1
  532. package/components/grid/types.d.ts +0 -22
  533. package/components/grid-item/GridItem.d.ts +0 -9
  534. package/components/grid-item/GridItem.js +0 -28
  535. package/components/grid-item/GridItem.js.map +0 -1
  536. package/components/grid-item/styles.js +0 -16
  537. package/components/grid-item/styles.js.map +0 -1
  538. package/components/grid-item/types.d.ts +0 -11
  539. package/components/heading/Heading.d.ts +0 -9
  540. package/components/heading/Heading.js +0 -50
  541. package/components/heading/Heading.js.map +0 -1
  542. package/components/heading/styles.js +0 -67
  543. package/components/heading/styles.js.map +0 -1
  544. package/components/heading/types.d.ts +0 -62
  545. package/components/heading/types.js +0 -26
  546. package/components/heading/types.js.map +0 -1
  547. package/components/icon/Icon.d.ts +0 -10
  548. package/components/icon/Icon.js +0 -116
  549. package/components/icon/Icon.js.map +0 -1
  550. package/components/icon/styles.js +0 -84
  551. package/components/icon/styles.js.map +0 -1
  552. package/components/icon/types.d.ts +0 -57
  553. package/components/icon/types.js +0 -18
  554. package/components/icon/types.js.map +0 -1
  555. package/components/icon-button/IconButton.d.ts +0 -12
  556. package/components/icon-button/IconButton.js +0 -81
  557. package/components/icon-button/IconButton.js.map +0 -1
  558. package/components/icon-button/styles.js +0 -31
  559. package/components/icon-button/styles.js.map +0 -1
  560. package/components/icon-button/types.d.ts +0 -56
  561. package/components/icon-button/types.js +0 -19
  562. package/components/icon-button/types.js.map +0 -1
  563. package/components/icon-button-link/IconButtonLink.d.ts +0 -13
  564. package/components/icon-button-link/IconButtonLink.js +0 -76
  565. package/components/icon-button-link/IconButtonLink.js.map +0 -1
  566. package/components/icon-button-link/types.d.ts +0 -18
  567. package/components/item/Item.d.ts +0 -10
  568. package/components/item/Item.js +0 -225
  569. package/components/item/Item.js.map +0 -1
  570. package/components/item/styles.d.ts +0 -20
  571. package/components/item/styles.js +0 -129
  572. package/components/item/styles.js.map +0 -1
  573. package/components/item/types.d.ts +0 -59
  574. package/components/item/useMenuItem.js +0 -55
  575. package/components/item/useMenuItem.js.map +0 -1
  576. package/components/link/Link.d.ts +0 -14
  577. package/components/link/Link.js +0 -67
  578. package/components/link/Link.js.map +0 -1
  579. package/components/link/styles.d.ts +0 -15
  580. package/components/link/styles.js +0 -145
  581. package/components/link/styles.js.map +0 -1
  582. package/components/link/types.d.ts +0 -40
  583. package/components/link-button/LinkButton.d.ts +0 -13
  584. package/components/link-button/LinkButton.js +0 -66
  585. package/components/link-button/LinkButton.js.map +0 -1
  586. package/components/link-button/types.d.ts +0 -13
  587. package/components/listbox/ActiveDescendantListbox.d.ts +0 -8
  588. package/components/listbox/ActiveDescendantListbox.js +0 -74
  589. package/components/listbox/ActiveDescendantListbox.js.map +0 -1
  590. package/components/listbox/Listbox.d.ts +0 -10
  591. package/components/listbox/Listbox.js +0 -110
  592. package/components/listbox/Listbox.js.map +0 -1
  593. package/components/listbox/RovingTabindexListbox.d.ts +0 -8
  594. package/components/listbox/RovingTabindexListbox.js +0 -30
  595. package/components/listbox/RovingTabindexListbox.js.map +0 -1
  596. package/components/listbox/context.d.ts +0 -7
  597. package/components/listbox/context.js +0 -15
  598. package/components/listbox/context.js.map +0 -1
  599. package/components/listbox/reducer.d.ts +0 -5
  600. package/components/listbox/reducer.js +0 -45
  601. package/components/listbox/reducer.js.map +0 -1
  602. package/components/listbox/styles.js +0 -44
  603. package/components/listbox/styles.js.map +0 -1
  604. package/components/listbox/types.d.ts +0 -101
  605. package/components/listbox/types.js +0 -32
  606. package/components/listbox/types.js.map +0 -1
  607. package/components/listbox/useListboxItem.d.ts +0 -12
  608. package/components/listbox/useListboxItem.js +0 -90
  609. package/components/listbox/useListboxItem.js.map +0 -1
  610. package/components/number/Number.d.ts +0 -9
  611. package/components/number/Number.js +0 -105
  612. package/components/number/Number.js.map +0 -1
  613. package/components/number/styles.js +0 -10
  614. package/components/number/styles.js.map +0 -1
  615. package/components/number/types.d.ts +0 -63
  616. package/components/number-field/NumberField.d.ts +0 -10
  617. package/components/number-field/NumberField.js +0 -216
  618. package/components/number-field/NumberField.js.map +0 -1
  619. package/components/number-field/styles.js +0 -240
  620. package/components/number-field/styles.js.map +0 -1
  621. package/components/number-field/types.d.ts +0 -74
  622. package/components/number-field/types.js +0 -14
  623. package/components/number-field/types.js.map +0 -1
  624. package/components/pill/Pill.d.ts +0 -9
  625. package/components/pill/Pill.js +0 -93
  626. package/components/pill/Pill.js.map +0 -1
  627. package/components/pill/styles.js +0 -305
  628. package/components/pill/styles.js.map +0 -1
  629. package/components/pill/types.d.ts +0 -47
  630. package/components/pill/types.js +0 -15
  631. package/components/pill/types.js.map +0 -1
  632. package/components/progress-bar/ProgressBar.d.ts +0 -9
  633. package/components/progress-bar/ProgressBar.js +0 -35
  634. package/components/progress-bar/ProgressBar.js.map +0 -1
  635. package/components/progress-bar/styles.js +0 -38
  636. package/components/progress-bar/styles.js.map +0 -1
  637. package/components/progress-bar/types.d.ts +0 -20
  638. package/components/radio/Radio.d.ts +0 -11
  639. package/components/radio/Radio.js +0 -128
  640. package/components/radio/Radio.js.map +0 -1
  641. package/components/radio/styles.js +0 -113
  642. package/components/radio/styles.js.map +0 -1
  643. package/components/radio/types.d.ts +0 -58
  644. package/components/radio-group/RadioGroup.d.ts +0 -10
  645. package/components/radio-group/RadioGroup.js +0 -89
  646. package/components/radio-group/RadioGroup.js.map +0 -1
  647. package/components/radio-group/context.js +0 -6
  648. package/components/radio-group/context.js.map +0 -1
  649. package/components/radio-group/styles.js +0 -78
  650. package/components/radio-group/styles.js.map +0 -1
  651. package/components/radio-group/types.d.ts +0 -68
  652. package/components/radio-group/types.js +0 -18
  653. package/components/radio-group/types.js.map +0 -1
  654. package/components/shared/styles.d.ts +0 -17
  655. package/components/shared/styles.js +0 -250
  656. package/components/shared/styles.js.map +0 -1
  657. package/components/shield/Shield.d.ts +0 -9
  658. package/components/shield/Shield.js +0 -136
  659. package/components/shield/Shield.js.map +0 -1
  660. package/components/shield/styles.js +0 -71
  661. package/components/shield/styles.js.map +0 -1
  662. package/components/shield/types.d.ts +0 -52
  663. package/components/shield/types.js +0 -25
  664. package/components/shield/types.js.map +0 -1
  665. package/components/side-navigation-menu/SideNavigationMenu.d.ts +0 -9
  666. package/components/side-navigation-menu/SideNavigationMenu.js +0 -367
  667. package/components/side-navigation-menu/SideNavigationMenu.js.map +0 -1
  668. package/components/side-navigation-menu/context.js +0 -6
  669. package/components/side-navigation-menu/context.js.map +0 -1
  670. package/components/side-navigation-menu/reducer.js +0 -26
  671. package/components/side-navigation-menu/reducer.js.map +0 -1
  672. package/components/side-navigation-menu/styles.js +0 -196
  673. package/components/side-navigation-menu/styles.js.map +0 -1
  674. package/components/side-navigation-menu/types.d.ts +0 -72
  675. package/components/side-navigation-menu/types.js +0 -21
  676. package/components/side-navigation-menu/types.js.map +0 -1
  677. package/components/side-navigation-menu-bar/SideNavigationMenuBar.d.ts +0 -9
  678. package/components/side-navigation-menu-bar/SideNavigationMenuBar.js +0 -217
  679. package/components/side-navigation-menu-bar/SideNavigationMenuBar.js.map +0 -1
  680. package/components/side-navigation-menu-bar/context.js +0 -6
  681. package/components/side-navigation-menu-bar/context.js.map +0 -1
  682. package/components/side-navigation-menu-bar/styles.js +0 -89
  683. package/components/side-navigation-menu-bar/styles.js.map +0 -1
  684. package/components/side-navigation-menu-bar/types.d.ts +0 -65
  685. package/components/side-navigation-menu-bar/types.js +0 -22
  686. package/components/side-navigation-menu-bar/types.js.map +0 -1
  687. package/components/side-navigation-menu-bar/useSideNavigationMenuBar.d.ts +0 -9
  688. package/components/side-navigation-menu-bar/useSideNavigationMenuBar.js +0 -70
  689. package/components/side-navigation-menu-bar/useSideNavigationMenuBar.js.map +0 -1
  690. package/components/side-navigation-menu-item/SideNavigationMenuItem.d.ts +0 -9
  691. package/components/side-navigation-menu-item/SideNavigationMenuItem.js +0 -115
  692. package/components/side-navigation-menu-item/SideNavigationMenuItem.js.map +0 -1
  693. package/components/side-navigation-menu-item/styles.js +0 -174
  694. package/components/side-navigation-menu-item/styles.js.map +0 -1
  695. package/components/side-navigation-menu-item/types.d.ts +0 -51
  696. package/components/skeleton/Skeleton.d.ts +0 -15
  697. package/components/skeleton/Skeleton.js +0 -42
  698. package/components/skeleton/Skeleton.js.map +0 -1
  699. package/components/skeleton/styles.js +0 -84
  700. package/components/skeleton/styles.js.map +0 -1
  701. package/components/skeleton/types.d.ts +0 -18
  702. package/components/skeleton-circle/SkeletonCircle.d.ts +0 -9
  703. package/components/skeleton-circle/SkeletonCircle.js +0 -36
  704. package/components/skeleton-circle/SkeletonCircle.js.map +0 -1
  705. package/components/skeleton-circle/styles.js +0 -26
  706. package/components/skeleton-circle/styles.js.map +0 -1
  707. package/components/skeleton-circle/types.d.ts +0 -12
  708. package/components/skeleton-text/SkeletonText.d.ts +0 -9
  709. package/components/skeleton-text/SkeletonText.js +0 -42
  710. package/components/skeleton-text/SkeletonText.js.map +0 -1
  711. package/components/skeleton-text/styles.js +0 -39
  712. package/components/skeleton-text/styles.js.map +0 -1
  713. package/components/skeleton-text/types.d.ts +0 -36
  714. package/components/skeleton-text/types.js +0 -20
  715. package/components/skeleton-text/types.js.map +0 -1
  716. package/components/spinner/Spinner.d.ts +0 -9
  717. package/components/spinner/Spinner.js +0 -82
  718. package/components/spinner/Spinner.js.map +0 -1
  719. package/components/spinner/images/spinner-grey-l1.svg.js +0 -4
  720. package/components/spinner/images/spinner-grey-l1.svg.js.map +0 -1
  721. package/components/spinner/images/spinner-grey-l2.svg.js +0 -4
  722. package/components/spinner/images/spinner-grey-l2.svg.js.map +0 -1
  723. package/components/spinner/images/spinner-grey-l3.svg.js +0 -4
  724. package/components/spinner/images/spinner-grey-l3.svg.js.map +0 -1
  725. package/components/spinner/images/spinner-primary-n.svg.js +0 -4
  726. package/components/spinner/images/spinner-primary-n.svg.js.map +0 -1
  727. package/components/spinner/intl/en-US.json.js +0 -7
  728. package/components/spinner/intl/en-US.json.js.map +0 -1
  729. package/components/spinner/intl/fr-FR.json.js +0 -7
  730. package/components/spinner/intl/fr-FR.json.js.map +0 -1
  731. package/components/spinner/intl/index.js +0 -10
  732. package/components/spinner/intl/index.js.map +0 -1
  733. package/components/spinner/styles.js +0 -13
  734. package/components/spinner/styles.js.map +0 -1
  735. package/components/spinner/types.d.ts +0 -38
  736. package/components/spinner/types.js +0 -16
  737. package/components/spinner/types.js.map +0 -1
  738. package/components/switch/Switch.d.ts +0 -11
  739. package/components/switch/Switch.js +0 -137
  740. package/components/switch/Switch.js.map +0 -1
  741. package/components/switch/styles.js +0 -187
  742. package/components/switch/styles.js.map +0 -1
  743. package/components/switch/types.d.ts +0 -58
  744. package/components/switch-group/SwitchGroup.d.ts +0 -10
  745. package/components/switch-group/SwitchGroup.js +0 -101
  746. package/components/switch-group/SwitchGroup.js.map +0 -1
  747. package/components/switch-group/context.js +0 -6
  748. package/components/switch-group/context.js.map +0 -1
  749. package/components/switch-group/styles.js +0 -78
  750. package/components/switch-group/styles.js.map +0 -1
  751. package/components/switch-group/types.d.ts +0 -72
  752. package/components/switch-group/types.js +0 -18
  753. package/components/switch-group/types.js.map +0 -1
  754. package/components/text/Text.d.ts +0 -9
  755. package/components/text/Text.js +0 -51
  756. package/components/text/Text.js.map +0 -1
  757. package/components/text/styles.js +0 -112
  758. package/components/text/styles.js.map +0 -1
  759. package/components/text/types.d.ts +0 -73
  760. package/components/text/types.js +0 -34
  761. package/components/text/types.js.map +0 -1
  762. package/components/text-area/TextArea.d.ts +0 -10
  763. package/components/text-area/TextArea.js +0 -165
  764. package/components/text-area/TextArea.js.map +0 -1
  765. package/components/text-area/styles.js +0 -240
  766. package/components/text-area/styles.js.map +0 -1
  767. package/components/text-area/types.d.ts +0 -28
  768. package/components/text-area/types.js +0 -14
  769. package/components/text-area/types.js.map +0 -1
  770. package/components/text-field/TextField.d.ts +0 -10
  771. package/components/text-field/TextField.js +0 -197
  772. package/components/text-field/TextField.js.map +0 -1
  773. package/components/text-field/intl/en-US.json.js +0 -8
  774. package/components/text-field/intl/en-US.json.js.map +0 -1
  775. package/components/text-field/intl/fr-FR.json.js +0 -8
  776. package/components/text-field/intl/fr-FR.json.js.map +0 -1
  777. package/components/text-field/intl/index.js +0 -10
  778. package/components/text-field/intl/index.js.map +0 -1
  779. package/components/text-field/styles.d.ts +0 -22
  780. package/components/text-field/styles.js +0 -252
  781. package/components/text-field/styles.js.map +0 -1
  782. package/components/text-field/types.d.ts +0 -99
  783. package/components/text-field/types.js +0 -18
  784. package/components/text-field/types.js.map +0 -1
  785. package/components/theme/context.d.ts +0 -11
  786. package/components/theme/context.js +0 -7
  787. package/components/theme/context.js.map +0 -1
  788. package/components/theme/useTheme.d.ts +0 -5
  789. package/components/theme/useTheme.js +0 -13
  790. package/components/theme/useTheme.js.map +0 -1
  791. package/hooks/useBoundingRect.d.ts +0 -8
  792. package/hooks/useBoundingRect.js +0 -17
  793. package/hooks/useBoundingRect.js.map +0 -1
  794. package/hooks/useComputeNumberOfRows.d.ts +0 -15
  795. package/hooks/useComputeNumberOfRows.js +0 -40
  796. package/hooks/useComputeNumberOfRows.js.map +0 -1
  797. package/hooks/useIsLoaded.d.ts +0 -5
  798. package/hooks/useIsLoaded.js +0 -14
  799. package/hooks/useWindowSize.d.ts +0 -8
  800. package/hooks/useWindowSize.js +0 -42
  801. package/hooks/useWindowSize.js.map +0 -1
  802. package/index.d.ts +0 -157
  803. package/react-aria/internationalized/date/DateFormatter.d.ts +0 -25
  804. package/react-aria/internationalized/date/DateFormatter.js +0 -187
  805. package/react-aria/internationalized/date/DateFormatter.js.map +0 -1
  806. package/react-aria/internationalized/message/MessageDictionary.d.ts +0 -7
  807. package/react-aria/internationalized/message/MessageDictionary.js +0 -82
  808. package/react-aria/internationalized/message/MessageDictionary.js.map +0 -1
  809. package/react-aria/internationalized/message/MessageFormatter.js +0 -38
  810. package/react-aria/internationalized/message/MessageFormatter.js.map +0 -1
  811. package/react-aria/internationalized/number/NumberFormatter.d.ts +0 -6
  812. package/react-aria/internationalized/number/NumberFormatter.js +0 -222
  813. package/react-aria/internationalized/number/NumberFormatter.js.map +0 -1
  814. package/react-aria/internationalized/number/NumberParser.js +0 -288
  815. package/react-aria/internationalized/number/NumberParser.js.map +0 -1
  816. package/react-aria/internationalized/string/LocalizedStringDictionary.d.ts +0 -21
  817. package/react-aria/internationalized/string/LocalizedStringDictionary.js +0 -118
  818. package/react-aria/internationalized/string/LocalizedStringDictionary.js.map +0 -1
  819. package/react-aria/internationalized/string/LocalizedStringFormatter.d.ts +0 -21
  820. package/react-aria/internationalized/string/LocalizedStringFormatter.js +0 -70
  821. package/react-aria/internationalized/string/LocalizedStringFormatter.js.map +0 -1
  822. package/react-aria/react-aria/button/useButton.js +0 -95
  823. package/react-aria/react-aria/button/useButton.js.map +0 -1
  824. package/react-aria/react-aria/focus/focusSafely.js +0 -33
  825. package/react-aria/react-aria/focus/focusSafely.js.map +0 -1
  826. package/react-aria/react-aria/focus/useFocusRing.js +0 -57
  827. package/react-aria/react-aria/focus/useFocusRing.js.map +0 -1
  828. package/react-aria/react-aria/focus/useFocusable.js +0 -47
  829. package/react-aria/react-aria/focus/useFocusable.js.map +0 -1
  830. package/react-aria/react-aria/form/useFormValidation.js +0 -112
  831. package/react-aria/react-aria/form/useFormValidation.js.map +0 -1
  832. package/react-aria/react-aria/i18n/context.d.ts +0 -19
  833. package/react-aria/react-aria/i18n/context.js +0 -41
  834. package/react-aria/react-aria/i18n/context.js.map +0 -1
  835. package/react-aria/react-aria/i18n/useCollator.d.ts +0 -8
  836. package/react-aria/react-aria/i18n/useCollator.js +0 -25
  837. package/react-aria/react-aria/i18n/useCollator.js.map +0 -1
  838. package/react-aria/react-aria/i18n/useDateFormatter.d.ts +0 -13
  839. package/react-aria/react-aria/i18n/useDateFormatter.js +0 -39
  840. package/react-aria/react-aria/i18n/useDateFormatter.js.map +0 -1
  841. package/react-aria/react-aria/i18n/useDefaultLocale.d.ts +0 -10
  842. package/react-aria/react-aria/i18n/useDefaultLocale.js +0 -67
  843. package/react-aria/react-aria/i18n/useDefaultLocale.js.map +0 -1
  844. package/react-aria/react-aria/i18n/useFilter.d.ts +0 -15
  845. package/react-aria/react-aria/i18n/useFilter.js +0 -58
  846. package/react-aria/react-aria/i18n/useFilter.js.map +0 -1
  847. package/react-aria/react-aria/i18n/useListFormatter.d.ts +0 -8
  848. package/react-aria/react-aria/i18n/useListFormatter.js +0 -20
  849. package/react-aria/react-aria/i18n/useListFormatter.js.map +0 -1
  850. package/react-aria/react-aria/i18n/useLocalizedStringFormatter.d.ts +0 -15
  851. package/react-aria/react-aria/i18n/useLocalizedStringFormatter.js +0 -38
  852. package/react-aria/react-aria/i18n/useLocalizedStringFormatter.js.map +0 -1
  853. package/react-aria/react-aria/i18n/useMessageFormatter.d.ts +0 -13
  854. package/react-aria/react-aria/i18n/useMessageFormatter.js +0 -32
  855. package/react-aria/react-aria/i18n/useMessageFormatter.js.map +0 -1
  856. package/react-aria/react-aria/i18n/useNumberFormatter.d.ts +0 -10
  857. package/react-aria/react-aria/i18n/useNumberFormatter.js +0 -21
  858. package/react-aria/react-aria/i18n/useNumberFormatter.js.map +0 -1
  859. package/react-aria/react-aria/i18n/utils.js +0 -49
  860. package/react-aria/react-aria/i18n/utils.js.map +0 -1
  861. package/react-aria/react-aria/interactions/context.js +0 -20
  862. package/react-aria/react-aria/interactions/context.js.map +0 -1
  863. package/react-aria/react-aria/interactions/createEventHandler.js +0 -48
  864. package/react-aria/react-aria/interactions/createEventHandler.js.map +0 -1
  865. package/react-aria/react-aria/interactions/textSelection.js +0 -85
  866. package/react-aria/react-aria/interactions/textSelection.js.map +0 -1
  867. package/react-aria/react-aria/interactions/useFocus.js +0 -53
  868. package/react-aria/react-aria/interactions/useFocus.js.map +0 -1
  869. package/react-aria/react-aria/interactions/useFocusVisible.js +0 -236
  870. package/react-aria/react-aria/interactions/useFocusVisible.js.map +0 -1
  871. package/react-aria/react-aria/interactions/useFocusWithin.js +0 -65
  872. package/react-aria/react-aria/interactions/useFocusWithin.js.map +0 -1
  873. package/react-aria/react-aria/interactions/useKeyboard.js +0 -27
  874. package/react-aria/react-aria/interactions/useKeyboard.js.map +0 -1
  875. package/react-aria/react-aria/interactions/usePress.js +0 -769
  876. package/react-aria/react-aria/interactions/usePress.js.map +0 -1
  877. package/react-aria/react-aria/interactions/useScrollWheel.js +0 -31
  878. package/react-aria/react-aria/interactions/useScrollWheel.js.map +0 -1
  879. package/react-aria/react-aria/interactions/utils.js +0 -116
  880. package/react-aria/react-aria/interactions/utils.js.map +0 -1
  881. package/react-aria/react-aria/label/useField.js +0 -42
  882. package/react-aria/react-aria/label/useField.js.map +0 -1
  883. package/react-aria/react-aria/label/useLabel.js +0 -42
  884. package/react-aria/react-aria/label/useLabel.js.map +0 -1
  885. package/react-aria/react-aria/live-announcer/LiveAnnouncer.js +0 -121
  886. package/react-aria/react-aria/live-announcer/LiveAnnouncer.js.map +0 -1
  887. package/react-aria/react-aria/numberfield/intl/en-US.json.js +0 -11
  888. package/react-aria/react-aria/numberfield/intl/en-US.json.js.map +0 -1
  889. package/react-aria/react-aria/numberfield/intl/fr-FR.json.js +0 -11
  890. package/react-aria/react-aria/numberfield/intl/fr-FR.json.js.map +0 -1
  891. package/react-aria/react-aria/numberfield/intl/index.js +0 -10
  892. package/react-aria/react-aria/numberfield/intl/index.js.map +0 -1
  893. package/react-aria/react-aria/numberfield/useNumberField.js +0 -294
  894. package/react-aria/react-aria/numberfield/useNumberField.js.map +0 -1
  895. package/react-aria/react-aria/spinbutton/intl/en-US.json.js +0 -7
  896. package/react-aria/react-aria/spinbutton/intl/en-US.json.js.map +0 -1
  897. package/react-aria/react-aria/spinbutton/intl/fr-FR.json.js +0 -7
  898. package/react-aria/react-aria/spinbutton/intl/fr-FR.json.js.map +0 -1
  899. package/react-aria/react-aria/spinbutton/intl/index.js +0 -10
  900. package/react-aria/react-aria/spinbutton/intl/index.js.map +0 -1
  901. package/react-aria/react-aria/spinbutton/useSpinButton.js +0 -168
  902. package/react-aria/react-aria/spinbutton/useSpinButton.js.map +0 -1
  903. package/react-aria/react-aria/ssr/SSRProvider.d.ts +0 -22
  904. package/react-aria/react-aria/ssr/SSRProvider.js +0 -157
  905. package/react-aria/react-aria/ssr/SSRProvider.js.map +0 -1
  906. package/react-aria/react-aria/textfield/useFormattedTextField.js +0 -142
  907. package/react-aria/react-aria/textfield/useFormattedTextField.js.map +0 -1
  908. package/react-aria/react-aria/textfield/useTextField.js +0 -156
  909. package/react-aria/react-aria/textfield/useTextField.js.map +0 -1
  910. package/react-aria/react-aria/utils/chain.js +0 -33
  911. package/react-aria/react-aria/utils/chain.js.map +0 -1
  912. package/react-aria/react-aria/utils/domHelpers.js +0 -14
  913. package/react-aria/react-aria/utils/domHelpers.js.map +0 -1
  914. package/react-aria/react-aria/utils/filterDOMProps.js +0 -45
  915. package/react-aria/react-aria/utils/filterDOMProps.js.map +0 -1
  916. package/react-aria/react-aria/utils/focusWithoutScrolling.js +0 -88
  917. package/react-aria/react-aria/utils/focusWithoutScrolling.js.map +0 -1
  918. package/react-aria/react-aria/utils/isVirtualEvent.js +0 -51
  919. package/react-aria/react-aria/utils/isVirtualEvent.js.map +0 -1
  920. package/react-aria/react-aria/utils/mergeProps.js +0 -48
  921. package/react-aria/react-aria/utils/mergeProps.js.map +0 -1
  922. package/react-aria/react-aria/utils/openLink.js +0 -55
  923. package/react-aria/react-aria/utils/openLink.js.map +0 -1
  924. package/react-aria/react-aria/utils/platform.js +0 -69
  925. package/react-aria/react-aria/utils/platform.js.map +0 -1
  926. package/react-aria/react-aria/utils/runAfterTransition.js +0 -100
  927. package/react-aria/react-aria/utils/runAfterTransition.js.map +0 -1
  928. package/react-aria/react-aria/utils/useDeepMemo.js +0 -16
  929. package/react-aria/react-aria/utils/useDeepMemo.js.map +0 -1
  930. package/react-aria/react-aria/utils/useEffectEvent.js +0 -31
  931. package/react-aria/react-aria/utils/useEffectEvent.js.map +0 -1
  932. package/react-aria/react-aria/utils/useEvent.js +0 -21
  933. package/react-aria/react-aria/utils/useEvent.js.map +0 -1
  934. package/react-aria/react-aria/utils/useFormReset.js +0 -23
  935. package/react-aria/react-aria/utils/useFormReset.js.map +0 -1
  936. package/react-aria/react-aria/utils/useGlobalListeners.js +0 -44
  937. package/react-aria/react-aria/utils/useGlobalListeners.js.map +0 -1
  938. package/react-aria/react-aria/utils/useId.js +0 -86
  939. package/react-aria/react-aria/utils/useId.js.map +0 -1
  940. package/react-aria/react-aria/utils/useLabels.js +0 -39
  941. package/react-aria/react-aria/utils/useLabels.js.map +0 -1
  942. package/react-aria/react-aria/utils/useLayoutEffect.js +0 -21
  943. package/react-aria/react-aria/utils/useLayoutEffect.js.map +0 -1
  944. package/react-aria/react-aria/utils/useSyncRef.js +0 -29
  945. package/react-aria/react-aria/utils/useSyncRef.js.map +0 -1
  946. package/react-aria/react-aria/utils/useValueEffect.js +0 -52
  947. package/react-aria/react-aria/utils/useValueEffect.js.map +0 -1
  948. package/react-aria/react-stately/form/useFormValidationState.js +0 -191
  949. package/react-aria/react-stately/form/useFormValidationState.js.map +0 -1
  950. package/react-aria/react-stately/numberfield/useNumberFieldState.js +0 -196
  951. package/react-aria/react-stately/numberfield/useNumberFieldState.js.map +0 -1
  952. package/react-aria/react-stately/utils/number.js +0 -56
  953. package/react-aria/react-stately/utils/number.js.map +0 -1
  954. package/react-aria/react-stately/utils/useControlledState.js +0 -68
  955. package/react-aria/react-stately/utils/useControlledState.js.map +0 -1
  956. package/react-aria/react-types/shared/locale.d.ts +0 -3
  957. package/types/colors.d.ts +0 -102
  958. package/types/colors.js +0 -64
  959. package/types/colors.js.map +0 -1
  960. package/types/fonts.d.ts +0 -12
  961. package/types/fonts.js +0 -10
  962. package/types/helpers.d.ts +0 -23
  963. package/types/products.d.ts +0 -40
  964. package/types/products.js +0 -38
  965. package/types/products.js.map +0 -1
  966. package/types/styles.d.ts +0 -283
  967. package/types/styles.js +0 -161
  968. package/types/styles.js.map +0 -1
  969. package/utils/filterComponents.d.ts +0 -12
  970. package/utils/filterComponents.js +0 -24
  971. package/utils/filterComponents.js.map +0 -1
  972. package/utils/getTextWidth.d.ts +0 -6
  973. package/utils/getTextWidth.js +0 -32
  974. package/utils/getTextWidth.js.map +0 -1
  975. package/utils/isComponent.d.ts +0 -12
  976. package/utils/isComponent.js +0 -15
  977. package/utils/isComponent.js.map +0 -1
  978. package/utils/partitionComponents.d.ts +0 -10
  979. package/utils/partitionComponents.js +0 -26
  980. package/utils/redsift-design-tokens.d.ts +0 -1389
  981. package/utils/redsift-design-tokens.js +0 -1391
  982. package/utils/useId.d.ts +0 -6
  983. package/utils/useId.js +0 -42
  984. package/utils/useId.js.map +0 -1
  985. package/utils/warnIfNoAccessibleLabelFound.d.ts +0 -11
  986. package/utils/warnIfNoAccessibleLabelFound.js +0 -20
  987. /package/{_virtual → _internal}/_rollupPluginBabelHelpers.js.map +0 -0
  988. /package/{types → _internal}/fonts.js.map +0 -0
  989. /package/{utils → _internal}/partitionComponents.js.map +0 -0
  990. /package/{utils → _internal}/redsift-design-tokens.js.map +0 -0
  991. /package/{hooks → _internal}/useIsLoaded.js.map +0 -0
  992. /package/{utils → _internal}/warnIfNoAccessibleLabelFound.js.map +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sources":["../../../src/components/focus-within-group/types.ts"],"sourcesContent":["import { ComponentProps } from 'react';\n\nexport enum EventKey {\n ArrowLeft = 'ArrowLeft',\n ArrowRight = 'ArrowRight',\n ArrowUp = 'ArrowUp',\n ArrowDown = 'ArrowDown',\n Home = 'Home',\n End = 'End',\n Enter = 'Enter',\n}\n\nexport type KeyDirection = 'horizontal' | 'vertical' | 'both';\n\nexport enum Navigation {\n PREVIOUS = 'PREVIOUS',\n NEXT = 'NEXT',\n VERY_FIRST = 'VERY_FIRST',\n VERY_LAST = 'VERY_LAST',\n PREVIOUS_ROW = 'PREVIOUS_ROW',\n NEXT_ROW = 'NEXT_ROW',\n FIRST_IN_ROW = 'FIRST_IN_ROW',\n LAST_IN_ROW = 'LAST_IN_ROW',\n}\n\nexport type TabStop = Readonly<{\n id: string;\n domElementRef: React.RefObject<Element>;\n isDisabled: boolean;\n rowIndex: number | null;\n value: string;\n}>;\n\nexport type RowStartMap = Map<Exclude<TabStop['rowIndex'], null>, number>;\n\nexport type FocusWithinGroupState = Readonly<{\n selectedId: string | null;\n allowFocusing: boolean;\n tabStops: readonly TabStop[];\n direction: KeyDirection;\n focusOnClick: boolean;\n focusOnInit: boolean;\n loopAround: boolean;\n rowStartMap: RowStartMap | null;\n focusType: 'roving-tabindex' | 'virtual-focus';\n listRole: 'listbox' | 'menu';\n activedescendant?: [string, string];\n filter?: {\n value: string;\n type: 'startsWith' | 'contains' | 'endsWith';\n caseSensitive?: boolean;\n };\n delayedAction?: BaseFocusWithinGroupAction;\n maxOptionsLength?: number;\n}>;\n\nexport type FocusWithinGroupOptions = Partial<\n Pick<\n FocusWithinGroupState,\n | 'direction'\n | 'focusOnClick'\n | 'focusOnInit'\n | 'loopAround'\n | 'focusType'\n | 'listRole'\n | 'activedescendant'\n | 'maxOptionsLength'\n >\n>;\n\nexport enum FocusWithinGroupActionType {\n REGISTER_TAB_STOP = 'REGISTER_TAB_STOP',\n UNREGISTER_TAB_STOP = 'UNREGISTER_TAB_STOP',\n KEY_DOWN_ON_ITEM = 'KEY_DOWN_ON_ITEM',\n CLICK_ON_ITEM = 'CLICK_ON_ITEM',\n KEY_DOWN_ON_LIST = 'KEY_DOWN_ON_LIST',\n FOCUS_ON_LIST = 'FOCUS_ON_LIST',\n BLUR_ON_LIST = 'BLUR_ON_LIST',\n TAB_STOP_UPDATED = 'TAB_STOP_UPDATED',\n OPTIONS_UPDATED = 'OPTIONS_UPDATED',\n FILTER_LIST = 'FILTER_LIST',\n DELAY_ACTION = 'DELAY_ACTION',\n}\n\nexport type BaseFocusWithinGroupAction =\n | {\n type: FocusWithinGroupActionType.REGISTER_TAB_STOP;\n payload: TabStop;\n }\n | {\n type: FocusWithinGroupActionType.UNREGISTER_TAB_STOP;\n payload: { id: TabStop['id'] };\n }\n | {\n type: FocusWithinGroupActionType.TAB_STOP_UPDATED;\n payload: {\n id: TabStop['id'];\n rowIndex: TabStop['rowIndex'];\n isDisabled: TabStop['isDisabled'];\n value: string;\n };\n }\n | {\n type: FocusWithinGroupActionType.KEY_DOWN_ON_ITEM;\n payload: {\n id: TabStop['id'];\n key: EventKey;\n ctrlKey: boolean;\n };\n }\n | {\n type: FocusWithinGroupActionType.CLICK_ON_ITEM;\n payload: { id: TabStop['id'] };\n }\n | {\n type: FocusWithinGroupActionType.KEY_DOWN_ON_LIST;\n payload: {\n key: EventKey;\n ctrlKey: boolean;\n };\n }\n | {\n type: FocusWithinGroupActionType.FOCUS_ON_LIST;\n payload: { id: TabStop['id']; filter?: FocusWithinGroupState['filter'] };\n }\n | {\n type: FocusWithinGroupActionType.BLUR_ON_LIST;\n payload: {};\n }\n | {\n type: FocusWithinGroupActionType.OPTIONS_UPDATED;\n payload: FocusWithinGroupOptions;\n }\n | {\n type: FocusWithinGroupActionType.FILTER_LIST;\n payload: { filter: FocusWithinGroupState['filter'] };\n };\nexport type FocusWithinGroupAction =\n | BaseFocusWithinGroupAction\n | {\n type: FocusWithinGroupActionType.DELAY_ACTION;\n payload: BaseFocusWithinGroupAction;\n };\n\nexport type UseFocusWithinGroupProps = {\n tabIndex?: number;\n isFocused: boolean;\n handleKeyDown: (event: React.KeyboardEvent) => void;\n handleClick: () => void;\n};\n\nexport type UseFocusGroupProps = {\n activedescendant: [string, string] | undefined;\n handleKeyDown: (event: React.KeyboardEvent) => void;\n handleFocus: () => void;\n handleBlur: () => void;\n};\n\nexport type FocusWithinGroupContextProps = {\n state: FocusWithinGroupState;\n dispatch: React.Dispatch<FocusWithinGroupAction>;\n};\n\n/**\n * Component props.\n */\nexport interface FocusWithinGroupProps extends ComponentProps<'div'>, FocusWithinGroupOptions {}\n"],"names":["EventKey","Navigation","FocusWithinGroupActionType"],"mappings":"AAEYA,IAAAA,QAAQ,0BAARA,QAAQ,EAAA;EAARA,QAAQ,CAAA,WAAA,CAAA,GAAA,WAAA,CAAA;EAARA,QAAQ,CAAA,YAAA,CAAA,GAAA,YAAA,CAAA;EAARA,QAAQ,CAAA,SAAA,CAAA,GAAA,SAAA,CAAA;EAARA,QAAQ,CAAA,WAAA,CAAA,GAAA,WAAA,CAAA;EAARA,QAAQ,CAAA,MAAA,CAAA,GAAA,MAAA,CAAA;EAARA,QAAQ,CAAA,KAAA,CAAA,GAAA,KAAA,CAAA;EAARA,QAAQ,CAAA,OAAA,CAAA,GAAA,OAAA,CAAA;AAAA,EAAA,OAARA,QAAQ,CAAA;AAAA,CAAA,CAAA,EAAA,EAAA;AAYRC,IAAAA,UAAU,0BAAVA,UAAU,EAAA;EAAVA,UAAU,CAAA,UAAA,CAAA,GAAA,UAAA,CAAA;EAAVA,UAAU,CAAA,MAAA,CAAA,GAAA,MAAA,CAAA;EAAVA,UAAU,CAAA,YAAA,CAAA,GAAA,YAAA,CAAA;EAAVA,UAAU,CAAA,WAAA,CAAA,GAAA,WAAA,CAAA;EAAVA,UAAU,CAAA,cAAA,CAAA,GAAA,cAAA,CAAA;EAAVA,UAAU,CAAA,UAAA,CAAA,GAAA,UAAA,CAAA;EAAVA,UAAU,CAAA,cAAA,CAAA,GAAA,cAAA,CAAA;EAAVA,UAAU,CAAA,aAAA,CAAA,GAAA,aAAA,CAAA;AAAA,EAAA,OAAVA,UAAU,CAAA;AAAA,CAAA,CAAA,EAAA,EAAA;AAwDVC,IAAAA,0BAA0B,0BAA1BA,0BAA0B,EAAA;EAA1BA,0BAA0B,CAAA,mBAAA,CAAA,GAAA,mBAAA,CAAA;EAA1BA,0BAA0B,CAAA,qBAAA,CAAA,GAAA,qBAAA,CAAA;EAA1BA,0BAA0B,CAAA,kBAAA,CAAA,GAAA,kBAAA,CAAA;EAA1BA,0BAA0B,CAAA,eAAA,CAAA,GAAA,eAAA,CAAA;EAA1BA,0BAA0B,CAAA,kBAAA,CAAA,GAAA,kBAAA,CAAA;EAA1BA,0BAA0B,CAAA,eAAA,CAAA,GAAA,eAAA,CAAA;EAA1BA,0BAA0B,CAAA,cAAA,CAAA,GAAA,cAAA,CAAA;EAA1BA,0BAA0B,CAAA,kBAAA,CAAA,GAAA,kBAAA,CAAA;EAA1BA,0BAA0B,CAAA,iBAAA,CAAA,GAAA,iBAAA,CAAA;EAA1BA,0BAA0B,CAAA,aAAA,CAAA,GAAA,aAAA,CAAA;EAA1BA,0BAA0B,CAAA,cAAA,CAAA,GAAA,cAAA,CAAA;AAAA,EAAA,OAA1BA,0BAA0B,CAAA;AAAA,CAAA,CAAA,EAAA,EAAA;;AA6FtC;AACA;AACA;;;;"}
@@ -1,5 +0,0 @@
1
- import { UseFocusGroupProps } from './types.js';
2
-
3
- declare function useFocusOnList(): UseFocusGroupProps;
4
-
5
- export { useFocusOnList };
@@ -1,44 +0,0 @@
1
- import { useContext, useCallback } from 'react';
2
- import { FocusWithinGroupContext } from './context.js';
3
- import { EventKey, FocusWithinGroupActionType } from './types.js';
4
-
5
- function useFocusOnList() {
6
- const context = useContext(FocusWithinGroupContext);
7
- const handleKeyDown = useCallback(event => {
8
- const key = EventKey[event.key];
9
- if (!key) {
10
- return;
11
- }
12
- context.dispatch({
13
- type: FocusWithinGroupActionType.KEY_DOWN_ON_LIST,
14
- payload: {
15
- key,
16
- ctrlKey: event.ctrlKey
17
- }
18
- });
19
- event.preventDefault();
20
- }, []);
21
- const handleFocus = useCallback(() => {
22
- context.dispatch({
23
- type: FocusWithinGroupActionType.FOCUS_ON_LIST,
24
- payload: {
25
- id: context.state.selectedId
26
- }
27
- });
28
- }, [context.state.selectedId]);
29
- const handleBlur = useCallback(() => {
30
- context.dispatch({
31
- type: FocusWithinGroupActionType.BLUR_ON_LIST,
32
- payload: {}
33
- });
34
- }, []);
35
- return {
36
- activedescendant: context.state.activedescendant,
37
- handleKeyDown,
38
- handleFocus,
39
- handleBlur
40
- };
41
- }
42
-
43
- export { useFocusOnList };
44
- //# sourceMappingURL=useFocusOnList.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useFocusOnList.js","sources":["../../../src/components/focus-within-group/useFocusOnList.ts"],"sourcesContent":["import { useCallback, useContext, KeyboardEvent } from 'react';\nimport { FocusWithinGroupContext } from './context';\nimport { FocusWithinGroupActionType, EventKey, UseFocusGroupProps } from './types';\n\nexport function useFocusOnList(): UseFocusGroupProps {\n const context = useContext(FocusWithinGroupContext);\n\n const handleKeyDown = useCallback((event: KeyboardEvent) => {\n const key = EventKey[event.key as EventKey];\n if (!key) {\n return;\n }\n context.dispatch({\n type: FocusWithinGroupActionType.KEY_DOWN_ON_LIST,\n payload: { key, ctrlKey: event.ctrlKey },\n });\n event.preventDefault();\n }, []);\n\n const handleFocus = useCallback(() => {\n context.dispatch({\n type: FocusWithinGroupActionType.FOCUS_ON_LIST,\n payload: {\n id: context.state.selectedId!,\n },\n });\n }, [context.state.selectedId]);\n\n const handleBlur = useCallback(() => {\n context.dispatch({\n type: FocusWithinGroupActionType.BLUR_ON_LIST,\n payload: {},\n });\n }, []);\n\n return {\n activedescendant: context.state.activedescendant,\n handleKeyDown,\n handleFocus,\n handleBlur,\n };\n}\n"],"names":["useFocusOnList","context","useContext","FocusWithinGroupContext","handleKeyDown","useCallback","event","key","EventKey","dispatch","type","FocusWithinGroupActionType","KEY_DOWN_ON_LIST","payload","ctrlKey","preventDefault","handleFocus","FOCUS_ON_LIST","id","state","selectedId","handleBlur","BLUR_ON_LIST","activedescendant"],"mappings":";;;;AAIO,SAASA,cAAcA,GAAuB;AACnD,EAAA,MAAMC,OAAO,GAAGC,UAAU,CAACC,uBAAuB,CAAC,CAAA;AAEnD,EAAA,MAAMC,aAAa,GAAGC,WAAW,CAAEC,KAAoB,IAAK;AAC1D,IAAA,MAAMC,GAAG,GAAGC,QAAQ,CAACF,KAAK,CAACC,GAAG,CAAa,CAAA;IAC3C,IAAI,CAACA,GAAG,EAAE;AACR,MAAA,OAAA;AACF,KAAA;IACAN,OAAO,CAACQ,QAAQ,CAAC;MACfC,IAAI,EAAEC,0BAA0B,CAACC,gBAAgB;AACjDC,MAAAA,OAAO,EAAE;QAAEN,GAAG;QAAEO,OAAO,EAAER,KAAK,CAACQ,OAAAA;AAAQ,OAAA;AACzC,KAAC,CAAC,CAAA;IACFR,KAAK,CAACS,cAAc,EAAE,CAAA;GACvB,EAAE,EAAE,CAAC,CAAA;AAEN,EAAA,MAAMC,WAAW,GAAGX,WAAW,CAAC,MAAM;IACpCJ,OAAO,CAACQ,QAAQ,CAAC;MACfC,IAAI,EAAEC,0BAA0B,CAACM,aAAa;AAC9CJ,MAAAA,OAAO,EAAE;AACPK,QAAAA,EAAE,EAAEjB,OAAO,CAACkB,KAAK,CAACC,UAAAA;AACpB,OAAA;AACF,KAAC,CAAC,CAAA;GACH,EAAE,CAACnB,OAAO,CAACkB,KAAK,CAACC,UAAU,CAAC,CAAC,CAAA;AAE9B,EAAA,MAAMC,UAAU,GAAGhB,WAAW,CAAC,MAAM;IACnCJ,OAAO,CAACQ,QAAQ,CAAC;MACfC,IAAI,EAAEC,0BAA0B,CAACW,YAAY;AAC7CT,MAAAA,OAAO,EAAE,EAAC;AACZ,KAAC,CAAC,CAAA;GACH,EAAE,EAAE,CAAC,CAAA;EAEN,OAAO;AACLU,IAAAA,gBAAgB,EAAEtB,OAAO,CAACkB,KAAK,CAACI,gBAAgB;IAChDnB,aAAa;IACbY,WAAW;AACXK,IAAAA,UAAAA;GACD,CAAA;AACH;;;;"}
@@ -1,39 +0,0 @@
1
- import { RefObject } from 'react';
2
- import { UseFocusWithinGroupProps } from './types.js';
3
-
4
- declare function uniqueId(): string;
5
- /**
6
- * Includes the given DOM element in the current roving tabindex.
7
- * @param {RefObject<Element>} domElementRef The DOM element to include.
8
- * This must be the same DOM element for the lifetime of the containing
9
- * component.
10
- * @param {boolean} isDisabled Whether or not the DOM element is currently
11
- * enabled. This value can be updated as appropriate throughout the lifetime
12
- * of the containing component.
13
- * @param {number?} rowIndex An optional integer value that must be
14
- * populated if the roving tabindex is being used in a grid. In that case,
15
- * set it to the zero-based index of the row that the given DOM element
16
- * is currently part of. You can update this row index as appropriate
17
- * throughout the lifetime of the containing component, for example if
18
- * the shape of the grid can change dynamically.
19
- * @returns A tuple of values to be applied by the containing
20
- * component for the roving tabindex to work correctly.
21
- * First tuple value: The tabIndex value to apply to the tab stop
22
- * element.
23
- * Second tuple value: Whether or not focus() should be invoked on the
24
- * tab stop element.
25
- * Third tuple value: The onKeyDown callback to apply to the tab
26
- * stop element. If the key press is relevant to the hook then
27
- * event.preventDefault() will be invoked on the event.
28
- * Fourth tuple value: The onClick callback to apply to the tab
29
- * stop element.
30
- */
31
- declare function useFocusOnListItem(props: {
32
- domElementRef: RefObject<Element>;
33
- isDisabled: boolean;
34
- id?: string;
35
- value?: string;
36
- rowIndex?: number | null;
37
- }): UseFocusWithinGroupProps;
38
-
39
- export { uniqueId, useFocusOnListItem };
@@ -1,148 +0,0 @@
1
- import { useRef, useContext, useEffect, useCallback } from 'react';
2
- import { FocusWithinGroupContext } from './context.js';
3
- import { FocusWithinGroupActionType, EventKey } from './types.js';
4
-
5
- let counter = 0;
6
- function uniqueId() {
7
- return `rti_${++counter}`;
8
- }
9
-
10
- /**
11
- * Includes the given DOM element in the current roving tabindex.
12
- * @param {RefObject<Element>} domElementRef The DOM element to include.
13
- * This must be the same DOM element for the lifetime of the containing
14
- * component.
15
- * @param {boolean} isDisabled Whether or not the DOM element is currently
16
- * enabled. This value can be updated as appropriate throughout the lifetime
17
- * of the containing component.
18
- * @param {number?} rowIndex An optional integer value that must be
19
- * populated if the roving tabindex is being used in a grid. In that case,
20
- * set it to the zero-based index of the row that the given DOM element
21
- * is currently part of. You can update this row index as appropriate
22
- * throughout the lifetime of the containing component, for example if
23
- * the shape of the grid can change dynamically.
24
- * @returns A tuple of values to be applied by the containing
25
- * component for the roving tabindex to work correctly.
26
- * First tuple value: The tabIndex value to apply to the tab stop
27
- * element.
28
- * Second tuple value: Whether or not focus() should be invoked on the
29
- * tab stop element.
30
- * Third tuple value: The onKeyDown callback to apply to the tab
31
- * stop element. If the key press is relevant to the hook then
32
- * event.preventDefault() will be invoked on the event.
33
- * Fourth tuple value: The onClick callback to apply to the tab
34
- * stop element.
35
- */
36
- function useFocusOnListItem(props) {
37
- var _context$state$active;
38
- const {
39
- domElementRef,
40
- isDisabled,
41
- id,
42
- value,
43
- rowIndex = null
44
- } = props;
45
- // Create a stable ID for the lifetime of the component:
46
- const idRef = useRef(null);
47
- function getId() {
48
- if (id) {
49
- return id;
50
- }
51
- if (!idRef.current) {
52
- idRef.current = uniqueId();
53
- }
54
- return idRef.current;
55
- }
56
- const isMounted = useRef(false);
57
- const context = useContext(FocusWithinGroupContext);
58
-
59
- // Register the tab stop on mount and unregister it on unmount:
60
- useEffect(() => {
61
- const id = getId();
62
- context.dispatch({
63
- type: FocusWithinGroupActionType.REGISTER_TAB_STOP,
64
- payload: {
65
- id,
66
- domElementRef,
67
- rowIndex,
68
- isDisabled,
69
- value: value
70
- }
71
- });
72
- return () => {
73
- context.dispatch({
74
- type: FocusWithinGroupActionType.UNREGISTER_TAB_STOP,
75
- payload: {
76
- id
77
- }
78
- });
79
- };
80
- }, []);
81
-
82
- // Update the tab stop data if rowIndex or isDisabled change.
83
- // The isMounted flag is used to prevent this effect running
84
- // on mount, which is benign but redundant (as the
85
- // REGISTER_TAB_STOP action would have just been dispatched).
86
- useEffect(() => {
87
- if (isMounted.current) {
88
- context.dispatch({
89
- type: FocusWithinGroupActionType.TAB_STOP_UPDATED,
90
- payload: {
91
- id: getId(),
92
- rowIndex,
93
- isDisabled,
94
- value: value || ''
95
- }
96
- });
97
- } else {
98
- isMounted.current = true;
99
- }
100
- }, [rowIndex, isDisabled]);
101
-
102
- // Create a stable callback function for handling key down events:
103
- const handleKeyDown = useCallback(event => {
104
- const key = EventKey[event.key];
105
- if (!key) {
106
- return;
107
- }
108
- context.dispatch({
109
- type: FocusWithinGroupActionType.KEY_DOWN_ON_ITEM,
110
- payload: {
111
- id: getId(),
112
- key,
113
- ctrlKey: event.ctrlKey
114
- }
115
- });
116
- event.preventDefault();
117
- }, []);
118
-
119
- // Create a stable callback function for handling click events:
120
- const handleClick = useCallback(() => {
121
- context.dispatch({
122
- type: FocusWithinGroupActionType.CLICK_ON_ITEM,
123
- payload: {
124
- id: getId()
125
- }
126
- });
127
- }, []);
128
-
129
- // Determine if the current tab stop is the currently active one:
130
- const selected = getId() === context.state.selectedId;
131
- const tabIndex = context.state.focusType === 'roving-tabindex' ? selected ? 0 : -1 : undefined;
132
- const isFocused = selected && context.state.allowFocusing;
133
- useEffect(() => {
134
- if (isFocused && domElementRef.current && context.state.focusType === 'roving-tabindex') {
135
- var _current;
136
- (_current = domElementRef.current) === null || _current === void 0 ? void 0 : _current.focus();
137
- }
138
- }, [isFocused]);
139
- return {
140
- tabIndex,
141
- isFocused: context.state.focusType === 'roving-tabindex' ? isFocused && document.activeElement === domElementRef.current : selected && ((_context$state$active = context.state.activedescendant) === null || _context$state$active === void 0 ? void 0 : _context$state$active[0]) === getId(),
142
- handleKeyDown,
143
- handleClick
144
- };
145
- }
146
-
147
- export { uniqueId, useFocusOnListItem };
148
- //# sourceMappingURL=useFocusOnListItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useFocusOnListItem.js","sources":["../../../src/components/focus-within-group/useFocusOnListItem.ts"],"sourcesContent":["import { useCallback, useRef, useContext, useEffect, RefObject, KeyboardEvent } from 'react';\nimport { FocusWithinGroupContext } from './context';\nimport { FocusWithinGroupActionType, EventKey, UseFocusWithinGroupProps } from './types';\n\nlet counter = 0;\n\nexport function uniqueId(): string {\n return `rti_${++counter}`;\n}\n\n/**\n * Includes the given DOM element in the current roving tabindex.\n * @param {RefObject<Element>} domElementRef The DOM element to include.\n * This must be the same DOM element for the lifetime of the containing\n * component.\n * @param {boolean} isDisabled Whether or not the DOM element is currently\n * enabled. This value can be updated as appropriate throughout the lifetime\n * of the containing component.\n * @param {number?} rowIndex An optional integer value that must be\n * populated if the roving tabindex is being used in a grid. In that case,\n * set it to the zero-based index of the row that the given DOM element\n * is currently part of. You can update this row index as appropriate\n * throughout the lifetime of the containing component, for example if\n * the shape of the grid can change dynamically.\n * @returns A tuple of values to be applied by the containing\n * component for the roving tabindex to work correctly.\n * First tuple value: The tabIndex value to apply to the tab stop\n * element.\n * Second tuple value: Whether or not focus() should be invoked on the\n * tab stop element.\n * Third tuple value: The onKeyDown callback to apply to the tab\n * stop element. If the key press is relevant to the hook then\n * event.preventDefault() will be invoked on the event.\n * Fourth tuple value: The onClick callback to apply to the tab\n * stop element.\n */\nexport function useFocusOnListItem(props: {\n domElementRef: RefObject<Element>;\n isDisabled: boolean;\n id?: string;\n value?: string;\n rowIndex?: number | null;\n}): UseFocusWithinGroupProps {\n const { domElementRef, isDisabled, id, value, rowIndex = null } = props;\n // Create a stable ID for the lifetime of the component:\n const idRef = useRef<string | null>(null);\n\n function getId() {\n if (id) {\n return id;\n }\n\n if (!idRef.current) {\n idRef.current = uniqueId();\n }\n return idRef.current;\n }\n\n const isMounted = useRef(false);\n const context = useContext(FocusWithinGroupContext);\n\n // Register the tab stop on mount and unregister it on unmount:\n useEffect(() => {\n const id = getId();\n context.dispatch({\n type: FocusWithinGroupActionType.REGISTER_TAB_STOP,\n payload: {\n id,\n domElementRef,\n rowIndex,\n isDisabled,\n value: value!,\n },\n });\n return (): void => {\n context.dispatch({\n type: FocusWithinGroupActionType.UNREGISTER_TAB_STOP,\n payload: { id },\n });\n };\n }, []);\n\n // Update the tab stop data if rowIndex or isDisabled change.\n // The isMounted flag is used to prevent this effect running\n // on mount, which is benign but redundant (as the\n // REGISTER_TAB_STOP action would have just been dispatched).\n useEffect(() => {\n if (isMounted.current) {\n context.dispatch({\n type: FocusWithinGroupActionType.TAB_STOP_UPDATED,\n payload: {\n id: getId(),\n rowIndex,\n isDisabled,\n value: value || '',\n },\n });\n } else {\n isMounted.current = true;\n }\n }, [rowIndex, isDisabled]);\n\n // Create a stable callback function for handling key down events:\n const handleKeyDown = useCallback((event: KeyboardEvent) => {\n const key = EventKey[event.key as EventKey];\n if (!key) {\n return;\n }\n context.dispatch({\n type: FocusWithinGroupActionType.KEY_DOWN_ON_ITEM,\n payload: { id: getId(), key, ctrlKey: event.ctrlKey },\n });\n event.preventDefault();\n }, []);\n\n // Create a stable callback function for handling click events:\n const handleClick = useCallback(() => {\n context.dispatch({\n type: FocusWithinGroupActionType.CLICK_ON_ITEM,\n payload: { id: getId() },\n });\n }, []);\n\n // Determine if the current tab stop is the currently active one:\n const selected = getId() === context.state.selectedId;\n\n const tabIndex = context.state.focusType === 'roving-tabindex' ? (selected ? 0 : -1) : undefined;\n const isFocused = selected && context.state.allowFocusing;\n\n useEffect(() => {\n if (isFocused && domElementRef.current && context.state.focusType === 'roving-tabindex') {\n (domElementRef as RefObject<SVGElement | HTMLElement>).current?.focus();\n }\n }, [isFocused]);\n\n return {\n tabIndex,\n isFocused:\n context.state.focusType === 'roving-tabindex'\n ? isFocused && document.activeElement === (domElementRef as RefObject<SVGElement | HTMLElement>).current\n : selected && context.state.activedescendant?.[0] === getId(),\n handleKeyDown,\n handleClick,\n };\n}\n"],"names":["counter","uniqueId","useFocusOnListItem","props","_context$state$active","domElementRef","isDisabled","id","value","rowIndex","idRef","useRef","getId","current","isMounted","context","useContext","FocusWithinGroupContext","useEffect","dispatch","type","FocusWithinGroupActionType","REGISTER_TAB_STOP","payload","UNREGISTER_TAB_STOP","TAB_STOP_UPDATED","handleKeyDown","useCallback","event","key","EventKey","KEY_DOWN_ON_ITEM","ctrlKey","preventDefault","handleClick","CLICK_ON_ITEM","selected","state","selectedId","tabIndex","focusType","undefined","isFocused","allowFocusing","_current","focus","document","activeElement","activedescendant"],"mappings":";;;;AAIA,IAAIA,OAAO,GAAG,CAAC,CAAA;AAER,SAASC,QAAQA,GAAW;EACjC,OAAQ,CAAA,IAAA,EAAM,EAAED,OAAQ,CAAC,CAAA,CAAA;AAC3B,CAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASE,kBAAkBA,CAACC,KAMlC,EAA4B;AAAA,EAAA,IAAAC,qBAAA,CAAA;EAC3B,MAAM;IAAEC,aAAa;IAAEC,UAAU;IAAEC,EAAE;IAAEC,KAAK;AAAEC,IAAAA,QAAQ,GAAG,IAAA;AAAK,GAAC,GAAGN,KAAK,CAAA;AACvE;AACA,EAAA,MAAMO,KAAK,GAAGC,MAAM,CAAgB,IAAI,CAAC,CAAA;EAEzC,SAASC,KAAKA,GAAG;AACf,IAAA,IAAIL,EAAE,EAAE;AACN,MAAA,OAAOA,EAAE,CAAA;AACX,KAAA;AAEA,IAAA,IAAI,CAACG,KAAK,CAACG,OAAO,EAAE;AAClBH,MAAAA,KAAK,CAACG,OAAO,GAAGZ,QAAQ,EAAE,CAAA;AAC5B,KAAA;IACA,OAAOS,KAAK,CAACG,OAAO,CAAA;AACtB,GAAA;AAEA,EAAA,MAAMC,SAAS,GAAGH,MAAM,CAAC,KAAK,CAAC,CAAA;AAC/B,EAAA,MAAMI,OAAO,GAAGC,UAAU,CAACC,uBAAuB,CAAC,CAAA;;AAEnD;AACAC,EAAAA,SAAS,CAAC,MAAM;AACd,IAAA,MAAMX,EAAE,GAAGK,KAAK,EAAE,CAAA;IAClBG,OAAO,CAACI,QAAQ,CAAC;MACfC,IAAI,EAAEC,0BAA0B,CAACC,iBAAiB;AAClDC,MAAAA,OAAO,EAAE;QACPhB,EAAE;QACFF,aAAa;QACbI,QAAQ;QACRH,UAAU;AACVE,QAAAA,KAAK,EAAEA,KAAAA;AACT,OAAA;AACF,KAAC,CAAC,CAAA;AACF,IAAA,OAAO,MAAY;MACjBO,OAAO,CAACI,QAAQ,CAAC;QACfC,IAAI,EAAEC,0BAA0B,CAACG,mBAAmB;AACpDD,QAAAA,OAAO,EAAE;AAAEhB,UAAAA,EAAAA;AAAG,SAAA;AAChB,OAAC,CAAC,CAAA;KACH,CAAA;GACF,EAAE,EAAE,CAAC,CAAA;;AAEN;AACA;AACA;AACA;AACAW,EAAAA,SAAS,CAAC,MAAM;IACd,IAAIJ,SAAS,CAACD,OAAO,EAAE;MACrBE,OAAO,CAACI,QAAQ,CAAC;QACfC,IAAI,EAAEC,0BAA0B,CAACI,gBAAgB;AACjDF,QAAAA,OAAO,EAAE;UACPhB,EAAE,EAAEK,KAAK,EAAE;UACXH,QAAQ;UACRH,UAAU;UACVE,KAAK,EAAEA,KAAK,IAAI,EAAA;AAClB,SAAA;AACF,OAAC,CAAC,CAAA;AACJ,KAAC,MAAM;MACLM,SAAS,CAACD,OAAO,GAAG,IAAI,CAAA;AAC1B,KAAA;AACF,GAAC,EAAE,CAACJ,QAAQ,EAAEH,UAAU,CAAC,CAAC,CAAA;;AAE1B;AACA,EAAA,MAAMoB,aAAa,GAAGC,WAAW,CAAEC,KAAoB,IAAK;AAC1D,IAAA,MAAMC,GAAG,GAAGC,QAAQ,CAACF,KAAK,CAACC,GAAG,CAAa,CAAA;IAC3C,IAAI,CAACA,GAAG,EAAE;AACR,MAAA,OAAA;AACF,KAAA;IACAd,OAAO,CAACI,QAAQ,CAAC;MACfC,IAAI,EAAEC,0BAA0B,CAACU,gBAAgB;AACjDR,MAAAA,OAAO,EAAE;QAAEhB,EAAE,EAAEK,KAAK,EAAE;QAAEiB,GAAG;QAAEG,OAAO,EAAEJ,KAAK,CAACI,OAAAA;AAAQ,OAAA;AACtD,KAAC,CAAC,CAAA;IACFJ,KAAK,CAACK,cAAc,EAAE,CAAA;GACvB,EAAE,EAAE,CAAC,CAAA;;AAEN;AACA,EAAA,MAAMC,WAAW,GAAGP,WAAW,CAAC,MAAM;IACpCZ,OAAO,CAACI,QAAQ,CAAC;MACfC,IAAI,EAAEC,0BAA0B,CAACc,aAAa;AAC9CZ,MAAAA,OAAO,EAAE;QAAEhB,EAAE,EAAEK,KAAK,EAAC;AAAE,OAAA;AACzB,KAAC,CAAC,CAAA;GACH,EAAE,EAAE,CAAC,CAAA;;AAEN;EACA,MAAMwB,QAAQ,GAAGxB,KAAK,EAAE,KAAKG,OAAO,CAACsB,KAAK,CAACC,UAAU,CAAA;AAErD,EAAA,MAAMC,QAAQ,GAAGxB,OAAO,CAACsB,KAAK,CAACG,SAAS,KAAK,iBAAiB,GAAIJ,QAAQ,GAAG,CAAC,GAAG,CAAC,CAAC,GAAIK,SAAS,CAAA;EAChG,MAAMC,SAAS,GAAGN,QAAQ,IAAIrB,OAAO,CAACsB,KAAK,CAACM,aAAa,CAAA;AAEzDzB,EAAAA,SAAS,CAAC,MAAM;AACd,IAAA,IAAIwB,SAAS,IAAIrC,aAAa,CAACQ,OAAO,IAAIE,OAAO,CAACsB,KAAK,CAACG,SAAS,KAAK,iBAAiB,EAAE;AAAA,MAAA,IAAAI,QAAA,CAAA;AACvF,MAAA,CAAAA,QAAA,GAACvC,aAAa,CAAyCQ,OAAO,MAAA,IAAA,IAAA+B,QAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAA9DA,QAAA,CAAgEC,KAAK,EAAE,CAAA;AACzE,KAAA;AACF,GAAC,EAAE,CAACH,SAAS,CAAC,CAAC,CAAA;EAEf,OAAO;IACLH,QAAQ;AACRG,IAAAA,SAAS,EACP3B,OAAO,CAACsB,KAAK,CAACG,SAAS,KAAK,iBAAiB,GACzCE,SAAS,IAAII,QAAQ,CAACC,aAAa,KAAM1C,aAAa,CAAyCQ,OAAO,GACtGuB,QAAQ,IAAI,EAAAhC,qBAAA,GAAAW,OAAO,CAACsB,KAAK,CAACW,gBAAgB,MAAA,IAAA,IAAA5C,qBAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAA9BA,qBAAA,CAAiC,CAAC,CAAC,MAAKQ,KAAK,EAAE;IACjEc,aAAa;AACbQ,IAAAA,WAAAA;GACD,CAAA;AACH;;;;"}
@@ -1,14 +0,0 @@
1
- import * as styled_components from 'styled-components';
2
- import { ButtonProps } from '../button/types.js';
3
-
4
- declare const StyledGradientBorder: styled_components.StyledComponent<"div", any, {
5
- $borderRadius?: string | undefined;
6
- $color?: ButtonProps['color'];
7
- $isActive?: ButtonProps['isActive'];
8
- $isDisabled?: ButtonProps['isDisabled'];
9
- $isHovered?: ButtonProps['isHovered'];
10
- $theme?: ButtonProps['theme'];
11
- width?: string | undefined;
12
- }, never>;
13
-
14
- export { StyledGradientBorder };
@@ -1,38 +0,0 @@
1
- import styled, { css } from 'styled-components';
2
- import { Theme } from '../../types/colors.js';
3
-
4
- const StyledGradientBorder = styled.div`
5
- ${_ref => {
6
- let {
7
- $borderRadius,
8
- $color,
9
- $isActive,
10
- $isDisabled,
11
- $isHovered,
12
- $theme,
13
- width
14
- } = _ref;
15
- return css`
16
- background: transparent;
17
- border-radius: ${$borderRadius !== null && $borderRadius !== void 0 ? $borderRadius : '4px'};
18
- width: ${width !== null && width !== void 0 ? width : 'fit-content'};
19
-
20
- ${!$isDisabled ? css`
21
- border: 1px solid transparent;
22
- background-clip: padding-box, border-box;
23
- background-origin: border-box;
24
- background-image: linear-gradient(
25
- 90deg,
26
- var(--redsift-color-neutral-${$theme === Theme.dark ? 'x-dark-grey' : 'white'}),
27
- var(--redsift-color-neutral-${$theme === Theme.dark ? 'x-dark-grey' : 'white'})
28
- ),
29
- var(
30
- --redsift-color-${$theme}-components-buttons-secondary-button-${$color}-text-${$isDisabled ? 'disabled' : $isActive ? 'active' : $isHovered ? 'hover' : 'default'}
31
- );
32
- ` : ''}
33
- `;
34
- }};
35
- `;
36
-
37
- export { StyledGradientBorder };
38
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/components/gradient-border/index.ts"],"sourcesContent":["import styled, { css } from 'styled-components';\nimport { ButtonProps } from '../button';\nimport { Theme } from '../../types';\n\nexport const StyledGradientBorder = styled.div<{\n $borderRadius?: string;\n $color?: ButtonProps['color'];\n $isActive?: ButtonProps['isActive'];\n $isDisabled?: ButtonProps['isDisabled'];\n $isHovered?: ButtonProps['isHovered'];\n $theme?: ButtonProps['theme'];\n width?: string;\n}>`\n ${({ $borderRadius, $color, $isActive, $isDisabled, $isHovered, $theme, width }) => css`\n background: transparent;\n border-radius: ${$borderRadius ?? '4px'};\n width: ${width ?? 'fit-content'};\n\n ${!$isDisabled\n ? css`\n border: 1px solid transparent;\n background-clip: padding-box, border-box;\n background-origin: border-box;\n background-image: linear-gradient(\n 90deg,\n var(--redsift-color-neutral-${$theme === Theme.dark ? 'x-dark-grey' : 'white'}),\n var(--redsift-color-neutral-${$theme === Theme.dark ? 'x-dark-grey' : 'white'})\n ),\n var(\n --redsift-color-${$theme}-components-buttons-secondary-button-${$color}-text-${$isDisabled ? 'disabled' : $isActive ? 'active' : $isHovered ? 'hover' : 'default'}\n );\n `\n : ''}\n `};\n`;\n"],"names":["StyledGradientBorder","styled","div","_ref","$borderRadius","$color","$isActive","$isDisabled","$isHovered","$theme","width","css","Theme","dark"],"mappings":";;;AAIaA,MAAAA,oBAAoB,GAAGC,MAAM,CAACC,GAQxC,CAAA;AACH,EAAA,EAAIC,IAAA,IAAA;EAAA,IAAC;IAAEC,aAAa;IAAEC,MAAM;IAAEC,SAAS;IAAEC,WAAW;IAAEC,UAAU;IAAEC,MAAM;AAAEC,IAAAA,KAAAA;AAAM,GAAC,GAAAP,IAAA,CAAA;AAAA,EAAA,OAAKQ,GAAI,CAAA;AAC1F;AACA,mBAAA,EAAqBP,aAAa,KAAbA,IAAAA,IAAAA,aAAa,KAAbA,KAAAA,CAAAA,GAAAA,aAAa,GAAI,KAAM,CAAA;AAC5C,WAAA,EAAaM,KAAK,KAALA,IAAAA,IAAAA,KAAK,KAALA,KAAAA,CAAAA,GAAAA,KAAK,GAAI,aAAc,CAAA;AACpC;AACA,IAAM,EAAA,CAACH,WAAW,GACVI,GAAI,CAAA;AACZ;AACA;AACA;AACA;AACA;AACA,0CAA4CF,EAAAA,MAAM,KAAKG,KAAK,CAACC,IAAI,GAAG,aAAa,GAAG,OAAQ,CAAA;AAC5F,0CAA4CJ,EAAAA,MAAM,KAAKG,KAAK,CAACC,IAAI,GAAG,aAAa,GAAG,OAAQ,CAAA;AAC5F;AACA;AACA,8BAAA,EAAgCJ,MAAO,CAAuCJ,qCAAAA,EAAAA,MAAO,CAAQE,MAAAA,EAAAA,WAAW,GAAG,UAAU,GAAGD,SAAS,GAAG,QAAQ,GAAGE,UAAU,GAAG,OAAO,GAAG,SAAU,CAAA;AAChL;AACA,QAAA,CAAS,GACD,EAAG,CAAA;AACX,EAAG,CAAA,CAAA;AAAA,CAAC,CAAA;AACJ;;;;"}
@@ -1,13 +0,0 @@
1
- import { GridProps } from './types.js';
2
- import { Comp } from '../../types/helpers.js';
3
- import { GridItemProps } from '../grid-item/types.js';
4
-
5
- /**
6
- * The Grid component.
7
- */
8
- declare const BaseGrid: Comp<GridProps, HTMLDivElement>;
9
- declare const Grid: Comp<GridProps, HTMLDivElement> & {
10
- Item: Comp<GridItemProps, HTMLDivElement>;
11
- };
12
-
13
- export { BaseGrid, Grid };
@@ -1,45 +0,0 @@
1
- import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
- import React, { forwardRef } from 'react';
3
- import classNames from 'classnames';
4
- import { StyledGrid } from './styles.js';
5
- import { GridItem } from '../grid-item/GridItem.js';
6
- import { useTheme } from '../theme/useTheme.js';
7
- import { ThemeProvider } from '../theme/context.js';
8
-
9
- const _excluded = ["children", "className", "divider", "gap", "theme"];
10
- const COMPONENT_NAME = 'Grid';
11
- const CLASSNAME = 'redsift-grid';
12
-
13
- /**
14
- * The Grid component.
15
- */
16
- const BaseGrid = /*#__PURE__*/forwardRef((props, ref) => {
17
- const {
18
- children,
19
- className,
20
- divider,
21
- gap,
22
- theme: propsTheme
23
- } = props,
24
- forwardedProps = _objectWithoutProperties(props, _excluded);
25
- const theme = useTheme(propsTheme);
26
- return /*#__PURE__*/React.createElement(ThemeProvider, {
27
- value: {
28
- theme
29
- }
30
- }, /*#__PURE__*/React.createElement(StyledGrid, _extends({}, forwardedProps, {
31
- gap: divider ? `${divider.rowGap}px ${divider.colGap}px` : gap,
32
- className: classNames(BaseGrid.className, className),
33
- ref: ref,
34
- $divider: divider,
35
- $theme: theme
36
- }), children));
37
- });
38
- BaseGrid.className = CLASSNAME;
39
- BaseGrid.displayName = COMPONENT_NAME;
40
- const Grid = Object.assign(BaseGrid, {
41
- Item: GridItem
42
- });
43
-
44
- export { BaseGrid, Grid };
45
- //# sourceMappingURL=Grid.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Grid.js","sources":["../../../src/components/grid/Grid.tsx"],"sourcesContent":["import React, { forwardRef, RefObject } from 'react';\nimport classNames from 'classnames';\nimport { Comp } from '../../types';\nimport { StyledGrid } from './styles';\nimport { GridProps } from './types';\nimport { GridItem } from '../grid-item';\nimport { ThemeProvider, useTheme } from '../theme';\n\nconst COMPONENT_NAME = 'Grid';\nconst CLASSNAME = 'redsift-grid';\n\n/**\n * The Grid component.\n */\nexport const BaseGrid: Comp<GridProps, HTMLDivElement> = forwardRef((props, ref) => {\n const { children, className, divider, gap, theme: propsTheme, ...forwardedProps } = props;\n const theme = useTheme(propsTheme);\n\n return (\n <ThemeProvider value={{ theme }}>\n <StyledGrid\n {...forwardedProps}\n gap={divider ? `${divider.rowGap}px ${divider.colGap}px` : gap}\n className={classNames(BaseGrid.className, className)}\n ref={ref as RefObject<HTMLDivElement>}\n $divider={divider}\n $theme={theme}\n >\n {children}\n </StyledGrid>\n </ThemeProvider>\n );\n});\nBaseGrid.className = CLASSNAME;\nBaseGrid.displayName = COMPONENT_NAME;\n\nexport const Grid = Object.assign(BaseGrid, {\n Item: GridItem,\n});\n"],"names":["COMPONENT_NAME","CLASSNAME","BaseGrid","forwardRef","props","ref","children","className","divider","gap","theme","propsTheme","forwardedProps","_objectWithoutProperties","_excluded","useTheme","React","createElement","ThemeProvider","value","StyledGrid","_extends","rowGap","colGap","classNames","$divider","$theme","displayName","Grid","Object","assign","Item","GridItem"],"mappings":";;;;;;;;;AAQA,MAAMA,cAAc,GAAG,MAAM,CAAA;AAC7B,MAAMC,SAAS,GAAG,cAAc,CAAA;;AAEhC;AACA;AACA;AACO,MAAMC,QAAyC,gBAAGC,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAK;EAClF,MAAM;MAAEC,QAAQ;MAAEC,SAAS;MAAEC,OAAO;MAAEC,GAAG;AAAEC,MAAAA,KAAK,EAAEC,UAAAA;AAA8B,KAAC,GAAGP,KAAK;AAAxBQ,IAAAA,cAAc,GAAAC,wBAAA,CAAKT,KAAK,EAAAU,SAAA,CAAA,CAAA;AACzF,EAAA,MAAMJ,KAAK,GAAGK,QAAQ,CAACJ,UAAU,CAAC,CAAA;AAElC,EAAA,oBACEK,KAAA,CAAAC,aAAA,CAACC,aAAa,EAAA;AAACC,IAAAA,KAAK,EAAE;AAAET,MAAAA,KAAAA;AAAM,KAAA;GAC5BM,eAAAA,KAAA,CAAAC,aAAA,CAACG,UAAU,EAAAC,QAAA,KACLT,cAAc,EAAA;AAClBH,IAAAA,GAAG,EAAED,OAAO,GAAI,CAAA,EAAEA,OAAO,CAACc,MAAO,CAAA,GAAA,EAAKd,OAAO,CAACe,MAAO,CAAA,EAAA,CAAG,GAAGd,GAAI;IAC/DF,SAAS,EAAEiB,UAAU,CAACtB,QAAQ,CAACK,SAAS,EAAEA,SAAS,CAAE;AACrDF,IAAAA,GAAG,EAAEA,GAAiC;AACtCoB,IAAAA,QAAQ,EAAEjB,OAAQ;AAClBkB,IAAAA,MAAM,EAAEhB,KAAAA;GAEPJ,CAAAA,EAAAA,QACS,CACC,CAAC,CAAA;AAEpB,CAAC,EAAC;AACFJ,QAAQ,CAACK,SAAS,GAAGN,SAAS,CAAA;AAC9BC,QAAQ,CAACyB,WAAW,GAAG3B,cAAc,CAAA;AAE9B,MAAM4B,IAAI,GAAGC,MAAM,CAACC,MAAM,CAAC5B,QAAQ,EAAE;AAC1C6B,EAAAA,IAAI,EAAEC,QAAAA;AACR,CAAC;;;;"}
@@ -1,55 +0,0 @@
1
- import styled, { css } from 'styled-components';
2
- import { baseStyling, baseInternalSpacing, baseGrid, baseBorder } from '../shared/styles.js';
3
-
4
- /**
5
- * Component style.
6
- */
7
- const StyledGrid = styled.div`
8
- display: ${_ref => {
9
- let {
10
- inline
11
- } = _ref;
12
- return inline ? 'inline-grid' : 'grid';
13
- }};
14
- flex: 1;
15
-
16
- ${baseStyling}
17
- ${baseInternalSpacing}
18
- ${baseGrid}
19
- ${baseBorder}
20
-
21
- ${_ref2 => {
22
- let {
23
- $divider
24
- } = _ref2;
25
- return $divider ? css`
26
- overflow: hidden;
27
- > .redsift-grid-item:not(:empty) {
28
- position: relative;
29
-
30
- ::before {
31
- content: '';
32
- position: absolute;
33
- background-color: var(--redsift-color-neutral-light-grey);
34
- inline-size: 1px;
35
- block-size: 100%;
36
- inset-inline-start: calc(${Math.max(1, $divider.colGap / 2)}px * -1);
37
- }
38
-
39
- ::after {
40
- content: '';
41
- position: absolute;
42
- background-color: var(--redsift-color-neutral-light-grey);
43
- inline-size: 200vw;
44
- block-size: 1px;
45
- inset-inline-start: -100vw;
46
- inset-block-start: calc(${Math.max(1, $divider.rowGap / 2)}px * -1);
47
- z-index: 0;
48
- }
49
- }
50
- ` : '';
51
- }}
52
- `;
53
-
54
- export { StyledGrid };
55
- //# sourceMappingURL=styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.js","sources":["../../../src/components/grid/styles.ts"],"sourcesContent":["import styled, { css } from 'styled-components';\nimport { baseBorder, baseGrid, baseInternalSpacing, baseStyling } from '../shared';\nimport { StyledGridProps } from './types';\n\n/**\n * Component style.\n */\nexport const StyledGrid = styled.div<StyledGridProps>`\n display: ${({ inline }) => (inline ? 'inline-grid' : 'grid')};\n flex: 1;\n\n ${baseStyling}\n ${baseInternalSpacing}\n ${baseGrid}\n ${baseBorder}\n\n ${({ $divider }) =>\n $divider\n ? css`\n overflow: hidden;\n > .redsift-grid-item:not(:empty) {\n position: relative;\n\n ::before {\n content: '';\n position: absolute;\n background-color: var(--redsift-color-neutral-light-grey);\n inline-size: 1px;\n block-size: 100%;\n inset-inline-start: calc(${Math.max(1, $divider.colGap / 2)}px * -1);\n }\n\n ::after {\n content: '';\n position: absolute;\n background-color: var(--redsift-color-neutral-light-grey);\n inline-size: 200vw;\n block-size: 1px;\n inset-inline-start: -100vw;\n inset-block-start: calc(${Math.max(1, $divider.rowGap / 2)}px * -1);\n z-index: 0;\n }\n }\n `\n : ''}\n`;\n"],"names":["StyledGrid","styled","div","_ref","inline","baseStyling","baseInternalSpacing","baseGrid","baseBorder","_ref2","$divider","css","Math","max","colGap","rowGap"],"mappings":";;;AAIA;AACA;AACA;AACaA,MAAAA,UAAU,GAAGC,MAAM,CAACC,GAAqB,CAAA;AACtD,WAAA,EAAaC,IAAA,IAAA;EAAA,IAAC;AAAEC,IAAAA,MAAAA;AAAO,GAAC,GAAAD,IAAA,CAAA;AAAA,EAAA,OAAMC,MAAM,GAAG,aAAa,GAAG,MAAM,CAAA;AAAA,CAAE,CAAA;AAC/D;AACA;AACA,EAAA,EAAIC,WAAY,CAAA;AAChB,EAAA,EAAIC,mBAAoB,CAAA;AACxB,EAAA,EAAIC,QAAS,CAAA;AACb,EAAA,EAAIC,UAAW,CAAA;AACf;AACA,EAAA,EAAIC,KAAA,IAAA;EAAA,IAAC;AAAEC,IAAAA,QAAAA;AAAS,GAAC,GAAAD,KAAA,CAAA;EAAA,OACbC,QAAQ,GACJC,GAAI,CAAA;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAyCC,EAAAA,IAAI,CAACC,GAAG,CAAC,CAAC,EAAEH,QAAQ,CAACI,MAAM,GAAG,CAAC,CAAE,CAAA;AAC1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAwCF,EAAAA,IAAI,CAACC,GAAG,CAAC,CAAC,EAAEH,QAAQ,CAACK,MAAM,GAAG,CAAC,CAAE,CAAA;AACzE;AACA;AACA;AACA,QAAA,CAAS,GACD,EAAE,CAAA;AAAA,CAAC,CAAA;AACX;;;;"}
@@ -1,22 +0,0 @@
1
- import { ComponentProps } from 'react';
2
- import { StylingProps, InternalSpacingProps, GridLayoutProps, BorderProps } from '../../types/styles.js';
3
- import { Theme } from '../../types/colors.js';
4
-
5
- /**
6
- * Component props.
7
- */
8
- interface GridProps extends ComponentProps<'div'>, StylingProps, InternalSpacingProps, GridLayoutProps, BorderProps {
9
- /** Whether the grid has divider or not. The number of pixels defining the gap between columns and rows is mandatory. This replaces the grid gap property. */
10
- divider?: {
11
- colGap: number;
12
- rowGap: number;
13
- };
14
- /** Theme. */
15
- theme?: Theme;
16
- }
17
- type StyledGridProps = GridProps & {
18
- $divider: GridProps['divider'];
19
- $theme: GridProps['theme'];
20
- };
21
-
22
- export { GridProps, StyledGridProps };
@@ -1,9 +0,0 @@
1
- import { GridItemProps } from './types.js';
2
- import { Comp } from '../../types/helpers.js';
3
-
4
- /**
5
- * The GridItem component.
6
- */
7
- declare const GridItem: Comp<GridItemProps, HTMLDivElement>;
8
-
9
- export { GridItem };
@@ -1,28 +0,0 @@
1
- import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
- import React, { forwardRef } from 'react';
3
- import classNames from 'classnames';
4
- import { StyledGridItem } from './styles.js';
5
-
6
- const _excluded = ["children", "className"];
7
- const COMPONENT_NAME = 'GridItem';
8
- const CLASSNAME = 'redsift-grid-item';
9
-
10
- /**
11
- * The GridItem component.
12
- */
13
- const GridItem = /*#__PURE__*/forwardRef((props, ref) => {
14
- const {
15
- children,
16
- className
17
- } = props,
18
- forwardedProps = _objectWithoutProperties(props, _excluded);
19
- return /*#__PURE__*/React.createElement(StyledGridItem, _extends({}, forwardedProps, {
20
- className: classNames(GridItem.className, className),
21
- ref: ref
22
- }), children);
23
- });
24
- GridItem.className = CLASSNAME;
25
- GridItem.displayName = COMPONENT_NAME;
26
-
27
- export { GridItem };
28
- //# sourceMappingURL=GridItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GridItem.js","sources":["../../../src/components/grid-item/GridItem.tsx"],"sourcesContent":["import React, { forwardRef, RefObject } from 'react';\nimport classNames from 'classnames';\nimport { Comp } from '../../types';\nimport { StyledGridItem } from './styles';\nimport { GridItemProps } from './types';\n\nconst COMPONENT_NAME = 'GridItem';\nconst CLASSNAME = 'redsift-grid-item';\n\n/**\n * The GridItem component.\n */\nexport const GridItem: Comp<GridItemProps, HTMLDivElement> = forwardRef((props, ref) => {\n const { children, className, ...forwardedProps } = props;\n\n return (\n <StyledGridItem\n {...forwardedProps}\n className={classNames(GridItem.className, className)}\n ref={ref as RefObject<HTMLDivElement>}\n >\n {children}\n </StyledGridItem>\n );\n});\nGridItem.className = CLASSNAME;\nGridItem.displayName = COMPONENT_NAME;\n"],"names":["COMPONENT_NAME","CLASSNAME","GridItem","forwardRef","props","ref","children","className","forwardedProps","_objectWithoutProperties","_excluded","React","createElement","StyledGridItem","_extends","classNames","displayName"],"mappings":";;;;;;AAMA,MAAMA,cAAc,GAAG,UAAU,CAAA;AACjC,MAAMC,SAAS,GAAG,mBAAmB,CAAA;;AAErC;AACA;AACA;AACO,MAAMC,QAA6C,gBAAGC,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAK;EACtF,MAAM;MAAEC,QAAQ;AAAEC,MAAAA,SAAAA;AAA6B,KAAC,GAAGH,KAAK;AAAxBI,IAAAA,cAAc,GAAAC,wBAAA,CAAKL,KAAK,EAAAM,SAAA,CAAA,CAAA;EAExD,oBACEC,KAAA,CAAAC,aAAA,CAACC,cAAc,EAAAC,QAAA,KACTN,cAAc,EAAA;IAClBD,SAAS,EAAEQ,UAAU,CAACb,QAAQ,CAACK,SAAS,EAAEA,SAAS,CAAE;AACrDF,IAAAA,GAAG,EAAEA,GAAAA;AAAiC,GAAA,CAAA,EAErCC,QACa,CAAC,CAAA;AAErB,CAAC,EAAC;AACFJ,QAAQ,CAACK,SAAS,GAAGN,SAAS,CAAA;AAC9BC,QAAQ,CAACc,WAAW,GAAGhB,cAAc;;;;"}
@@ -1,16 +0,0 @@
1
- import styled from 'styled-components';
2
- import { baseStyling, baseInternalSpacing, baseBorder } from '../shared/styles.js';
3
-
4
- /**
5
- * Component style.
6
- */
7
- const StyledGridItem = styled.div`
8
- display: inherit;
9
-
10
- ${baseStyling}
11
- ${baseInternalSpacing}
12
- ${baseBorder}
13
- `;
14
-
15
- export { StyledGridItem };
16
- //# sourceMappingURL=styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.js","sources":["../../../src/components/grid-item/styles.ts"],"sourcesContent":["import styled from 'styled-components';\nimport { baseBorder, baseInternalSpacing, baseStyling } from '../shared';\nimport { StyledGridItemProps } from './types';\n\n/**\n * Component style.\n */\nexport const StyledGridItem = styled.div<StyledGridItemProps>`\n display: inherit;\n\n ${baseStyling}\n ${baseInternalSpacing}\n ${baseBorder}\n`;\n"],"names":["StyledGridItem","styled","div","baseStyling","baseInternalSpacing","baseBorder"],"mappings":";;;AAIA;AACA;AACA;AACaA,MAAAA,cAAc,GAAGC,MAAM,CAACC,GAAyB,CAAA;AAC9D;AACA;AACA,EAAA,EAAIC,WAAY,CAAA;AAChB,EAAA,EAAIC,mBAAoB,CAAA;AACxB,EAAA,EAAIC,UAAW,CAAA;AACf;;;;"}
@@ -1,11 +0,0 @@
1
- import { ComponentProps } from 'react';
2
- import { StylingProps, InternalSpacingProps, BorderProps } from '../../types/styles.js';
3
-
4
- /**
5
- * Component props.
6
- */
7
- interface GridItemProps extends ComponentProps<'div'>, StylingProps, InternalSpacingProps, BorderProps {
8
- }
9
- type StyledGridItemProps = GridItemProps;
10
-
11
- export { GridItemProps, StyledGridItemProps };
@@ -1,9 +0,0 @@
1
- import { HeadingProps } from './types.js';
2
- import { Comp } from '../../types/helpers.js';
3
-
4
- /**
5
- * The Heading component.
6
- */
7
- declare const Heading: Comp<HeadingProps, HTMLDivElement>;
8
-
9
- export { Heading };
@@ -1,50 +0,0 @@
1
- import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
- import React, { forwardRef } from 'react';
3
- import classNames from 'classnames';
4
- import { StyledHeading } from './styles.js';
5
- import { FontFamily } from '../../types/fonts.js';
6
- import { useTheme } from '../theme/useTheme.js';
7
-
8
- const _excluded = ["as", "children", "className", "color", "fontFamily", "fontSize", "fontWeight", "lineHeight", "noWrap", "theme", "variant"];
9
- const COMPONENT_NAME = 'Heading';
10
- const CLASSNAME = 'redsift-heading';
11
-
12
- /**
13
- * The Heading component.
14
- */
15
- const Heading = /*#__PURE__*/forwardRef((props, ref) => {
16
- const {
17
- as,
18
- children,
19
- className,
20
- color,
21
- fontFamily = FontFamily.poppins,
22
- fontSize,
23
- fontWeight,
24
- lineHeight,
25
- noWrap,
26
- theme: propsTheme,
27
- variant
28
- } = props,
29
- forwardedProps = _objectWithoutProperties(props, _excluded);
30
- const theme = useTheme(propsTheme);
31
- return /*#__PURE__*/React.createElement(StyledHeading, _extends({
32
- as: as
33
- }, forwardedProps, {
34
- className: classNames(Heading.className, className),
35
- ref: ref,
36
- $noWrap: noWrap,
37
- $theme: theme,
38
- $color: color,
39
- $fontFamily: fontFamily,
40
- $fontSize: fontSize,
41
- $fontWeight: fontWeight,
42
- $lineHeight: lineHeight,
43
- $variant: variant ? variant : as === 'span' ? 'body' : as
44
- }), children);
45
- });
46
- Heading.className = CLASSNAME;
47
- Heading.displayName = COMPONENT_NAME;
48
-
49
- export { Heading };
50
- //# sourceMappingURL=Heading.js.map