@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,419 +0,0 @@
1
- import { objectSpread2 as _objectSpread2 } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
- import { FocusWithinGroupActionType, Navigation, EventKey } from './types.js';
3
-
4
- const DOCUMENT_POSITION_FOLLOWING = 4;
5
- const FocusWithinGroupReducer = (state, action) => {
6
- switch (action.type) {
7
- case FocusWithinGroupActionType.REGISTER_TAB_STOP:
8
- {
9
- const newTabStop = action.payload;
10
- if (!newTabStop.domElementRef.current) {
11
- return state;
12
- }
13
-
14
- // Iterate backwards through state.tabStops since it is
15
- // most likely that the tab stop will need to be inserted
16
- // at the end of that array.
17
- let indexToInsertAt = -1;
18
- for (let i = state.tabStops.length - 1; i >= 0; --i) {
19
- const loopTabStop = state.tabStops[i];
20
- if (loopTabStop.id === newTabStop.id) {
21
- // console.warn(false, `'${newTabStop.id}' tab stop already registered`);
22
- return state;
23
- }
24
- // The compareDocumentPosition condition is true
25
- // if newTabStop follows loopTabStop:
26
- if (indexToInsertAt === -1 && loopTabStop.domElementRef.current && !!(loopTabStop.domElementRef.current.compareDocumentPosition(newTabStop.domElementRef.current) & DOCUMENT_POSITION_FOLLOWING)) {
27
- indexToInsertAt = i + 1;
28
- break;
29
- }
30
- }
31
-
32
- // The indexToInsertAt is -1 when newTabStop should be inserted
33
- // at the start of tabStops (the compareDocumentPosition condition
34
- // always returns false in that case).
35
- if (indexToInsertAt === -1) {
36
- indexToInsertAt = 0;
37
- }
38
- const newTabStops = state.tabStops.slice();
39
- newTabStops.splice(indexToInsertAt, 0, newTabStop);
40
- return _objectSpread2(_objectSpread2({}, state), {}, {
41
- selectedId: state.focusOnInit ? getUpdatedSelectedId(newTabStops, state.selectedId) : null,
42
- tabStops: newTabStops,
43
- rowStartMap: null
44
- });
45
- }
46
- case FocusWithinGroupActionType.UNREGISTER_TAB_STOP:
47
- {
48
- const id = action.payload.id;
49
- const newTabStops = state.tabStops.filter(tabStop => tabStop.id !== id);
50
- if (newTabStops.length === state.tabStops.length) {
51
- // console.warn(false, `'${id}' tab stop already unregistered`);
52
- return state;
53
- }
54
- return _objectSpread2(_objectSpread2({}, state), {}, {
55
- selectedId: state.focusOnInit ? getUpdatedSelectedId(newTabStops, state.selectedId) : null,
56
- tabStops: newTabStops,
57
- rowStartMap: null
58
- });
59
- }
60
- case FocusWithinGroupActionType.TAB_STOP_UPDATED:
61
- {
62
- const {
63
- id,
64
- rowIndex,
65
- isDisabled,
66
- value
67
- } = action.payload;
68
- const index = state.tabStops.findIndex(tabStop => tabStop.id === id);
69
- if (index === -1) {
70
- console.warn(false, `'${id}' tab stop not registered`);
71
- return state;
72
- }
73
- const tabStop = state.tabStops[index];
74
- if (tabStop.isDisabled === isDisabled && tabStop.rowIndex === rowIndex && tabStop.value === value) {
75
- // Nothing to do so short-circuit.
76
- return state;
77
- }
78
- const newTabStop = _objectSpread2(_objectSpread2({}, tabStop), {}, {
79
- rowIndex,
80
- isDisabled,
81
- value
82
- });
83
- const newTabStops = state.tabStops.slice();
84
- newTabStops.splice(index, 1, newTabStop);
85
- return _objectSpread2(_objectSpread2({}, state), {}, {
86
- selectedId: state.focusOnInit ? getUpdatedSelectedId(newTabStops, state.selectedId) : null,
87
- tabStops: newTabStops,
88
- rowStartMap: null
89
- });
90
- }
91
- case FocusWithinGroupActionType.KEY_DOWN_ON_ITEM:
92
- {
93
- const {
94
- id,
95
- key,
96
- ctrlKey
97
- } = action.payload;
98
- const index = state.tabStops.findIndex(tabStop => tabStop.id === id);
99
- if (index === -1) {
100
- console.warn(false, `'${id}' tab stop not registered`);
101
- return state;
102
- }
103
- return moveSelectionFromKey(state, index, key, ctrlKey);
104
- }
105
- case FocusWithinGroupActionType.CLICK_ON_ITEM:
106
- {
107
- const id = action.payload.id;
108
- const index = state.tabStops.findIndex(tabStop => tabStop.id === id);
109
- if (index === -1) {
110
- console.warn(false, `'${id}' tab stop not registered`);
111
- return state;
112
- }
113
- const currentTabStop = state.tabStops[index];
114
- return currentTabStop.isDisabled ? state : selectTabStop(state, currentTabStop, undefined, state.focusOnClick);
115
- }
116
- case FocusWithinGroupActionType.FOCUS_ON_LIST:
117
- {
118
- var _action$payload$id, _state$tabStops$;
119
- const id = (_action$payload$id = action.payload.id) !== null && _action$payload$id !== void 0 ? _action$payload$id : (_state$tabStops$ = state.tabStops[0]) === null || _state$tabStops$ === void 0 ? void 0 : _state$tabStops$.id;
120
- const index = state.tabStops.findIndex(tabStop => tabStop.id === id);
121
- if (index === -1) {
122
- return state;
123
- }
124
- const currentTabStop = state.tabStops[index];
125
- return currentTabStop.isDisabled ? _objectSpread2(_objectSpread2({}, state), {}, {
126
- delayedAction: undefined
127
- }, action.payload) : selectTabStop(_objectSpread2(_objectSpread2({}, state), {}, {
128
- delayedAction: undefined
129
- }, action.payload), currentTabStop, undefined, state.focusOnClick);
130
- }
131
- case FocusWithinGroupActionType.BLUR_ON_LIST:
132
- {
133
- return _objectSpread2(_objectSpread2({}, state), {}, {
134
- activedescendant: ['', '']
135
- });
136
- }
137
- case FocusWithinGroupActionType.KEY_DOWN_ON_LIST:
138
- {
139
- const {
140
- key,
141
- ctrlKey
142
- } = action.payload;
143
- let index = state.tabStops.findIndex(tabStop => tabStop.id === state.selectedId);
144
- if (index === -1) {
145
- if (state.focusOnInit) {
146
- console.warn(false, `'${state.selectedId}' tab stop not registered`);
147
- return _objectSpread2(_objectSpread2({}, state), {}, {
148
- delayedAction: undefined
149
- });
150
- } else {
151
- index = 0;
152
- }
153
- }
154
- return moveSelectionFromKey(_objectSpread2(_objectSpread2({}, state), {}, {
155
- delayedAction: undefined
156
- }), index, key, ctrlKey);
157
- }
158
- case FocusWithinGroupActionType.OPTIONS_UPDATED:
159
- return _objectSpread2(_objectSpread2({}, state), action.payload);
160
- case FocusWithinGroupActionType.FILTER_LIST:
161
- return _objectSpread2(_objectSpread2({}, state), {}, {
162
- selectedId: null
163
- }, action.payload);
164
- case FocusWithinGroupActionType.DELAY_ACTION:
165
- return _objectSpread2(_objectSpread2({}, state), {}, {
166
- delayedAction: action.payload
167
- });
168
- /* istanbul ignore next */
169
- default:
170
- return state;
171
- }
172
- };
173
- function findIndexOfVeryFirstActiveTabStop(tabStops) {
174
- return tabStops.findIndex(tabStop => !tabStop.isDisabled);
175
- }
176
- function findIndexOfVeryLastActiveTabStop(tabStops) {
177
- for (let i = tabStops.length - 1; i >= 0; --i) {
178
- const tabStop = tabStops[i];
179
- if (!tabStop.isDisabled) {
180
- return i;
181
- }
182
- }
183
- return -1;
184
- }
185
-
186
- // Determine the updated value for selectedId:
187
- function getUpdatedSelectedId(tabStops, currentSelectedId) {
188
- if (currentSelectedId === null) {
189
- // There is not currently selected tab stop, so find
190
- // the first tab stop that is not isDisabled and return
191
- // its id, otherwise return null.
192
- const index = tabStops.findIndex(tabStop => !tabStop.isDisabled);
193
- return index === -1 ? null : tabStops[index].id;
194
- }
195
- let index = tabStops.findIndex(tabStop => tabStop.id === currentSelectedId);
196
- if (index !== -1 && !tabStops[index].isDisabled) {
197
- // The current selected id is still valid, so return it.
198
- return currentSelectedId;
199
- }
200
-
201
- // Finds the first tab stop that is not isDisabled and return
202
- // its id, otherwise return null.
203
- index = tabStops.findIndex(tabStop => !tabStop.isDisabled);
204
- return index === -1 ? null : tabStops[index].id;
205
- }
206
-
207
- // Translates the user key down event info into a navigation instruction.
208
- function getNavigationValue(key, ctrlKey, isGrid, direction, loopAround, isFirst, isLast) {
209
- switch (key) {
210
- case EventKey.ArrowLeft:
211
- if (isGrid || direction === 'horizontal' || direction === 'both') {
212
- return !isGrid && loopAround && isFirst ? Navigation.VERY_LAST : Navigation.PREVIOUS;
213
- }
214
- return null;
215
- case EventKey.ArrowRight:
216
- if (isGrid || direction === 'horizontal' || direction === 'both') {
217
- return !isGrid && loopAround && isLast ? Navigation.VERY_FIRST : Navigation.NEXT;
218
- }
219
- return null;
220
- case EventKey.ArrowUp:
221
- if (isGrid) {
222
- return Navigation.PREVIOUS_ROW;
223
- } else if (direction === 'vertical' || direction === 'both') {
224
- return loopAround && isFirst ? Navigation.VERY_LAST : Navigation.PREVIOUS;
225
- }
226
- return null;
227
- case EventKey.ArrowDown:
228
- if (isGrid) {
229
- return Navigation.NEXT_ROW;
230
- } else if (direction === 'vertical' || direction === 'both') {
231
- return loopAround && isLast ? Navigation.VERY_FIRST : Navigation.NEXT;
232
- }
233
- return null;
234
- case EventKey.Home:
235
- return !isGrid || ctrlKey ? Navigation.VERY_FIRST : Navigation.FIRST_IN_ROW;
236
- case EventKey.End:
237
- return !isGrid || ctrlKey ? Navigation.VERY_LAST : Navigation.LAST_IN_ROW;
238
- /* istanbul ignore next */
239
- default:
240
- return null;
241
- }
242
- }
243
-
244
- // Creates the new state for a tab stop when it becomes the selected one.
245
- function selectTabStop(state, tabStop, rowStartMap) {
246
- let allowFocusing = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
247
- return _objectSpread2(_objectSpread2({}, state), {}, {
248
- allowFocusing,
249
- selectedId: tabStop.id,
250
- rowStartMap: rowStartMap || state.rowStartMap,
251
- activedescendant: state.focusType === 'virtual-focus' ? [tabStop.id, tabStop.value] : undefined
252
- });
253
- }
254
-
255
- // Creates the row start index lookup map
256
- // for the currently registered tab stops.
257
- function createRowStartMap(state) {
258
- const map = new Map();
259
- for (let i = 0; i < state.tabStops.length; ++i) {
260
- const {
261
- rowIndex
262
- } = state.tabStops[i];
263
- if (rowIndex !== null && !map.has(rowIndex)) {
264
- map.set(rowIndex, i);
265
- }
266
- }
267
- return map;
268
- }
269
- function moveSelectionFromKey(state, index, key, ctrlKey) {
270
- const currentTabStop = state.tabStops[index];
271
- if (currentTabStop.isDisabled) {
272
- return state;
273
- }
274
- const isGrid = currentTabStop.rowIndex !== null;
275
- const isFirst = index === findIndexOfVeryFirstActiveTabStop(state.tabStops);
276
- const isLast = index === findIndexOfVeryLastActiveTabStop(state.tabStops);
277
- const navigation = getNavigationValue(key, ctrlKey, isGrid, state.direction, state.loopAround, isFirst, isLast);
278
- if (!navigation) {
279
- return state;
280
- }
281
- switch (navigation) {
282
- case Navigation.NEXT:
283
- {
284
- for (let i = index + 1; i < state.tabStops.length; ++i) {
285
- const tabStop = state.tabStops[i];
286
- if (isGrid && tabStop.rowIndex !== currentTabStop.rowIndex) {
287
- break;
288
- }
289
- if (!tabStop.isDisabled) {
290
- return selectTabStop(state, tabStop);
291
- }
292
- }
293
- }
294
- break;
295
- case Navigation.PREVIOUS:
296
- {
297
- for (let i = index - 1; i >= 0; --i) {
298
- const tabStop = state.tabStops[i];
299
- if (isGrid && tabStop.rowIndex !== currentTabStop.rowIndex) {
300
- break;
301
- }
302
- if (!tabStop.isDisabled) {
303
- return selectTabStop(state, tabStop);
304
- }
305
- }
306
- }
307
- break;
308
- case Navigation.VERY_FIRST:
309
- {
310
- const index = findIndexOfVeryFirstActiveTabStop(state.tabStops);
311
- if (index > -1) {
312
- return selectTabStop(state, state.tabStops[index]);
313
- }
314
- }
315
- break;
316
- case Navigation.VERY_LAST:
317
- {
318
- const index = findIndexOfVeryLastActiveTabStop(state.tabStops);
319
- if (index > -1) {
320
- return selectTabStop(state, state.tabStops[index]);
321
- }
322
- }
323
- break;
324
- case Navigation.PREVIOUS_ROW:
325
- {
326
- if (currentTabStop.rowIndex === null || currentTabStop.rowIndex === 0) {
327
- return state;
328
- }
329
- const rowStartMap = state.rowStartMap || createRowStartMap(state);
330
- const rowStartIndex = rowStartMap.get(currentTabStop.rowIndex);
331
- if (rowStartIndex === undefined) {
332
- return state;
333
- }
334
- const columnOffset = index - rowStartIndex;
335
- for (let i = currentTabStop.rowIndex - 1; i >= 0; --i) {
336
- const rowStartIndex = rowStartMap.get(i);
337
- if (rowStartIndex === undefined) {
338
- return state;
339
- }
340
- const rowTabStop = state.tabStops[rowStartIndex + columnOffset];
341
- if (rowTabStop && !rowTabStop.isDisabled) {
342
- return selectTabStop(state, rowTabStop, rowStartMap);
343
- }
344
- }
345
- return _objectSpread2(_objectSpread2({}, state), {}, {
346
- allowFocusing: true,
347
- rowStartMap
348
- });
349
- }
350
- case Navigation.NEXT_ROW:
351
- {
352
- const maxRowIndex = state.tabStops[state.tabStops.length - 1].rowIndex;
353
- if (currentTabStop.rowIndex === null || maxRowIndex === null || currentTabStop.rowIndex === maxRowIndex) {
354
- return state;
355
- }
356
- const rowStartMap = state.rowStartMap || createRowStartMap(state);
357
- const rowStartIndex = rowStartMap.get(currentTabStop.rowIndex);
358
- if (rowStartIndex === undefined) {
359
- return state;
360
- }
361
- const columnOffset = index - rowStartIndex;
362
- for (let i = currentTabStop.rowIndex + 1; i <= maxRowIndex; ++i) {
363
- const rowStartIndex = rowStartMap.get(i);
364
- if (rowStartIndex === undefined) {
365
- return state;
366
- }
367
- const rowTabStop = state.tabStops[rowStartIndex + columnOffset];
368
- if (rowTabStop && !rowTabStop.isDisabled) {
369
- return selectTabStop(state, rowTabStop, rowStartMap);
370
- }
371
- }
372
- return _objectSpread2(_objectSpread2({}, state), {}, {
373
- allowFocusing: true,
374
- rowStartMap
375
- });
376
- }
377
- case Navigation.FIRST_IN_ROW:
378
- {
379
- if (currentTabStop.rowIndex === null) {
380
- return state;
381
- }
382
- const rowStartMap = state.rowStartMap || createRowStartMap(state);
383
- const rowStartIndex = rowStartMap.get(currentTabStop.rowIndex);
384
- if (rowStartIndex === undefined) {
385
- return state;
386
- }
387
- for (let i = rowStartIndex; i < state.tabStops.length; ++i) {
388
- const tabStop = state.tabStops[i];
389
- if (tabStop.rowIndex !== currentTabStop.rowIndex) {
390
- break;
391
- } else if (!tabStop.isDisabled) {
392
- return selectTabStop(state, state.tabStops[i], rowStartMap);
393
- }
394
- }
395
- }
396
- break;
397
- case Navigation.LAST_IN_ROW:
398
- {
399
- if (currentTabStop.rowIndex === null) {
400
- return state;
401
- }
402
- const rowStartMap = state.rowStartMap || createRowStartMap(state);
403
- const rowEndIndex = rowStartMap.has(currentTabStop.rowIndex + 1) ? (rowStartMap.get(currentTabStop.rowIndex + 1) || 0) - 1 : state.tabStops.length - 1;
404
- for (let i = rowEndIndex; i >= 0; --i) {
405
- const tabStop = state.tabStops[i];
406
- if (tabStop.rowIndex !== currentTabStop.rowIndex) {
407
- break;
408
- } else if (!tabStop.isDisabled) {
409
- return selectTabStop(state, state.tabStops[i], rowStartMap);
410
- }
411
- }
412
- }
413
- break;
414
- }
415
- return state;
416
- }
417
-
418
- export { FocusWithinGroupReducer };
419
- //# sourceMappingURL=reducer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reducer.js","sources":["../../../src/components/focus-within-group/reducer.ts"],"sourcesContent":["import {\n FocusWithinGroupState,\n FocusWithinGroupAction,\n FocusWithinGroupActionType,\n TabStop,\n RowStartMap,\n EventKey,\n Navigation,\n} from './types';\n\nconst DOCUMENT_POSITION_FOLLOWING = 4;\n\nexport const FocusWithinGroupReducer = (\n state: FocusWithinGroupState,\n action: FocusWithinGroupAction\n): FocusWithinGroupState => {\n switch (action.type) {\n case FocusWithinGroupActionType.REGISTER_TAB_STOP: {\n const newTabStop = action.payload;\n if (!newTabStop.domElementRef.current) {\n return state;\n }\n\n // Iterate backwards through state.tabStops since it is\n // most likely that the tab stop will need to be inserted\n // at the end of that array.\n let indexToInsertAt = -1;\n for (let i = state.tabStops.length - 1; i >= 0; --i) {\n const loopTabStop = state.tabStops[i];\n if (loopTabStop.id === newTabStop.id) {\n // console.warn(false, `'${newTabStop.id}' tab stop already registered`);\n return state;\n }\n // The compareDocumentPosition condition is true\n // if newTabStop follows loopTabStop:\n if (\n indexToInsertAt === -1 &&\n loopTabStop.domElementRef.current &&\n !!(\n loopTabStop.domElementRef.current.compareDocumentPosition(newTabStop.domElementRef.current) &\n DOCUMENT_POSITION_FOLLOWING\n )\n ) {\n indexToInsertAt = i + 1;\n break;\n }\n }\n\n // The indexToInsertAt is -1 when newTabStop should be inserted\n // at the start of tabStops (the compareDocumentPosition condition\n // always returns false in that case).\n if (indexToInsertAt === -1) {\n indexToInsertAt = 0;\n }\n\n const newTabStops = state.tabStops.slice();\n newTabStops.splice(indexToInsertAt, 0, newTabStop);\n\n return {\n ...state,\n selectedId: state.focusOnInit ? getUpdatedSelectedId(newTabStops, state.selectedId) : null,\n tabStops: newTabStops,\n rowStartMap: null,\n };\n }\n case FocusWithinGroupActionType.UNREGISTER_TAB_STOP: {\n const id = action.payload.id;\n const newTabStops = state.tabStops.filter((tabStop) => tabStop.id !== id);\n if (newTabStops.length === state.tabStops.length) {\n // console.warn(false, `'${id}' tab stop already unregistered`);\n return state;\n }\n return {\n ...state,\n selectedId: state.focusOnInit ? getUpdatedSelectedId(newTabStops, state.selectedId) : null,\n tabStops: newTabStops,\n rowStartMap: null,\n };\n }\n case FocusWithinGroupActionType.TAB_STOP_UPDATED: {\n const { id, rowIndex, isDisabled, value } = action.payload;\n const index = state.tabStops.findIndex((tabStop) => tabStop.id === id);\n if (index === -1) {\n console.warn(false, `'${id}' tab stop not registered`);\n return state;\n }\n\n const tabStop = state.tabStops[index];\n if (tabStop.isDisabled === isDisabled && tabStop.rowIndex === rowIndex && tabStop.value === value) {\n // Nothing to do so short-circuit.\n return state;\n }\n\n const newTabStop = { ...tabStop, rowIndex, isDisabled, value };\n const newTabStops = state.tabStops.slice();\n newTabStops.splice(index, 1, newTabStop);\n\n return {\n ...state,\n selectedId: state.focusOnInit ? getUpdatedSelectedId(newTabStops, state.selectedId) : null,\n tabStops: newTabStops,\n rowStartMap: null,\n };\n }\n case FocusWithinGroupActionType.KEY_DOWN_ON_ITEM: {\n const { id, key, ctrlKey } = action.payload;\n const index = state.tabStops.findIndex((tabStop) => tabStop.id === id);\n if (index === -1) {\n console.warn(false, `'${id}' tab stop not registered`);\n return state;\n }\n return moveSelectionFromKey(state, index, key, ctrlKey);\n }\n case FocusWithinGroupActionType.CLICK_ON_ITEM: {\n const id = action.payload.id;\n const index = state.tabStops.findIndex((tabStop) => tabStop.id === id);\n if (index === -1) {\n console.warn(false, `'${id}' tab stop not registered`);\n return state;\n }\n const currentTabStop = state.tabStops[index];\n return currentTabStop.isDisabled ? state : selectTabStop(state, currentTabStop, undefined, state.focusOnClick);\n }\n case FocusWithinGroupActionType.FOCUS_ON_LIST: {\n const id = action.payload.id ?? state.tabStops[0]?.id;\n const index = state.tabStops.findIndex((tabStop) => tabStop.id === id);\n if (index === -1) {\n return state;\n }\n const currentTabStop = state.tabStops[index];\n return currentTabStop.isDisabled\n ? { ...state, delayedAction: undefined, ...action.payload }\n : selectTabStop(\n { ...state, delayedAction: undefined, ...action.payload },\n currentTabStop,\n undefined,\n state.focusOnClick\n );\n }\n case FocusWithinGroupActionType.BLUR_ON_LIST: {\n return { ...state, activedescendant: ['', ''] };\n }\n case FocusWithinGroupActionType.KEY_DOWN_ON_LIST: {\n const { key, ctrlKey } = action.payload;\n let index = state.tabStops.findIndex((tabStop) => tabStop.id === state.selectedId);\n if (index === -1) {\n if (state.focusOnInit) {\n console.warn(false, `'${state.selectedId}' tab stop not registered`);\n return { ...state, delayedAction: undefined };\n } else {\n index = 0;\n }\n }\n return moveSelectionFromKey({ ...state, delayedAction: undefined }, index, key, ctrlKey);\n }\n case FocusWithinGroupActionType.OPTIONS_UPDATED:\n return { ...state, ...action.payload };\n case FocusWithinGroupActionType.FILTER_LIST:\n return { ...state, selectedId: null, ...action.payload };\n case FocusWithinGroupActionType.DELAY_ACTION:\n return { ...state, delayedAction: action.payload };\n /* istanbul ignore next */\n default:\n return state;\n }\n};\n\nfunction findIndexOfVeryFirstActiveTabStop(tabStops: FocusWithinGroupState['tabStops']): number {\n return tabStops.findIndex((tabStop) => !tabStop.isDisabled);\n}\n\nfunction findIndexOfVeryLastActiveTabStop(tabStops: FocusWithinGroupState['tabStops']): number {\n for (let i = tabStops.length - 1; i >= 0; --i) {\n const tabStop = tabStops[i];\n if (!tabStop.isDisabled) {\n return i;\n }\n }\n return -1;\n}\n\n// Determine the updated value for selectedId:\nfunction getUpdatedSelectedId(\n tabStops: FocusWithinGroupState['tabStops'],\n currentSelectedId: FocusWithinGroupState['selectedId']\n): FocusWithinGroupState['selectedId'] {\n if (currentSelectedId === null) {\n // There is not currently selected tab stop, so find\n // the first tab stop that is not isDisabled and return\n // its id, otherwise return null.\n const index = tabStops.findIndex((tabStop) => !tabStop.isDisabled);\n return index === -1 ? null : tabStops[index].id;\n }\n\n let index = tabStops.findIndex((tabStop) => tabStop.id === currentSelectedId);\n if (index !== -1 && !tabStops[index].isDisabled) {\n // The current selected id is still valid, so return it.\n return currentSelectedId;\n }\n\n // Finds the first tab stop that is not isDisabled and return\n // its id, otherwise return null.\n index = tabStops.findIndex((tabStop) => !tabStop.isDisabled);\n return index === -1 ? null : tabStops[index].id;\n}\n\n// Translates the user key down event info into a navigation instruction.\nfunction getNavigationValue(\n key: EventKey,\n ctrlKey: boolean,\n isGrid: boolean,\n direction: string,\n loopAround: boolean,\n isFirst: boolean,\n isLast: boolean\n): Navigation | null {\n switch (key) {\n case EventKey.ArrowLeft:\n if (isGrid || direction === 'horizontal' || direction === 'both') {\n return !isGrid && loopAround && isFirst ? Navigation.VERY_LAST : Navigation.PREVIOUS;\n }\n return null;\n case EventKey.ArrowRight:\n if (isGrid || direction === 'horizontal' || direction === 'both') {\n return !isGrid && loopAround && isLast ? Navigation.VERY_FIRST : Navigation.NEXT;\n }\n return null;\n case EventKey.ArrowUp:\n if (isGrid) {\n return Navigation.PREVIOUS_ROW;\n } else if (direction === 'vertical' || direction === 'both') {\n return loopAround && isFirst ? Navigation.VERY_LAST : Navigation.PREVIOUS;\n }\n return null;\n case EventKey.ArrowDown:\n if (isGrid) {\n return Navigation.NEXT_ROW;\n } else if (direction === 'vertical' || direction === 'both') {\n return loopAround && isLast ? Navigation.VERY_FIRST : Navigation.NEXT;\n }\n return null;\n case EventKey.Home:\n return !isGrid || ctrlKey ? Navigation.VERY_FIRST : Navigation.FIRST_IN_ROW;\n case EventKey.End:\n return !isGrid || ctrlKey ? Navigation.VERY_LAST : Navigation.LAST_IN_ROW;\n /* istanbul ignore next */\n default:\n return null;\n }\n}\n\n// Creates the new state for a tab stop when it becomes the selected one.\nfunction selectTabStop(\n state: FocusWithinGroupState,\n tabStop: TabStop,\n rowStartMap?: RowStartMap,\n allowFocusing = true\n) {\n return {\n ...state,\n allowFocusing,\n selectedId: tabStop.id,\n rowStartMap: rowStartMap || state.rowStartMap,\n activedescendant:\n state.focusType === 'virtual-focus' ? ([tabStop.id, tabStop.value] as [string, string]) : undefined,\n };\n}\n\n// Creates the row start index lookup map\n// for the currently registered tab stops.\nfunction createRowStartMap(state: FocusWithinGroupState) {\n const map: RowStartMap = new Map();\n for (let i = 0; i < state.tabStops.length; ++i) {\n const { rowIndex } = state.tabStops[i];\n if (rowIndex !== null && !map.has(rowIndex)) {\n map.set(rowIndex, i);\n }\n }\n return map;\n}\n\nfunction moveSelectionFromKey(state: FocusWithinGroupState, index: number, key: EventKey, ctrlKey: boolean) {\n const currentTabStop = state.tabStops[index];\n if (currentTabStop.isDisabled) {\n return state;\n }\n const isGrid = currentTabStop.rowIndex !== null;\n const isFirst = index === findIndexOfVeryFirstActiveTabStop(state.tabStops);\n const isLast = index === findIndexOfVeryLastActiveTabStop(state.tabStops);\n const navigation = getNavigationValue(key, ctrlKey, isGrid, state.direction, state.loopAround, isFirst, isLast);\n if (!navigation) {\n return state;\n }\n\n switch (navigation) {\n case Navigation.NEXT:\n {\n for (let i = index + 1; i < state.tabStops.length; ++i) {\n const tabStop = state.tabStops[i];\n if (isGrid && tabStop.rowIndex !== currentTabStop.rowIndex) {\n break;\n }\n if (!tabStop.isDisabled) {\n return selectTabStop(state, tabStop);\n }\n }\n }\n break;\n case Navigation.PREVIOUS:\n {\n for (let i = index - 1; i >= 0; --i) {\n const tabStop = state.tabStops[i];\n if (isGrid && tabStop.rowIndex !== currentTabStop.rowIndex) {\n break;\n }\n if (!tabStop.isDisabled) {\n return selectTabStop(state, tabStop);\n }\n }\n }\n break;\n case Navigation.VERY_FIRST:\n {\n const index = findIndexOfVeryFirstActiveTabStop(state.tabStops);\n if (index > -1) {\n return selectTabStop(state, state.tabStops[index]);\n }\n }\n break;\n case Navigation.VERY_LAST:\n {\n const index = findIndexOfVeryLastActiveTabStop(state.tabStops);\n if (index > -1) {\n return selectTabStop(state, state.tabStops[index]);\n }\n }\n break;\n case Navigation.PREVIOUS_ROW: {\n if (currentTabStop.rowIndex === null || currentTabStop.rowIndex === 0) {\n return state;\n }\n const rowStartMap = state.rowStartMap || createRowStartMap(state);\n const rowStartIndex = rowStartMap.get(currentTabStop.rowIndex);\n if (rowStartIndex === undefined) {\n return state;\n }\n const columnOffset = index - rowStartIndex;\n for (let i = currentTabStop.rowIndex - 1; i >= 0; --i) {\n const rowStartIndex = rowStartMap.get(i);\n if (rowStartIndex === undefined) {\n return state;\n }\n const rowTabStop = state.tabStops[rowStartIndex + columnOffset];\n if (rowTabStop && !rowTabStop.isDisabled) {\n return selectTabStop(state, rowTabStop, rowStartMap);\n }\n }\n return { ...state, allowFocusing: true, rowStartMap };\n }\n case Navigation.NEXT_ROW: {\n const maxRowIndex = state.tabStops[state.tabStops.length - 1].rowIndex;\n if (currentTabStop.rowIndex === null || maxRowIndex === null || currentTabStop.rowIndex === maxRowIndex) {\n return state;\n }\n const rowStartMap = state.rowStartMap || createRowStartMap(state);\n const rowStartIndex = rowStartMap.get(currentTabStop.rowIndex);\n if (rowStartIndex === undefined) {\n return state;\n }\n const columnOffset = index - rowStartIndex;\n for (let i = currentTabStop.rowIndex + 1; i <= maxRowIndex; ++i) {\n const rowStartIndex = rowStartMap.get(i);\n if (rowStartIndex === undefined) {\n return state;\n }\n const rowTabStop = state.tabStops[rowStartIndex + columnOffset];\n if (rowTabStop && !rowTabStop.isDisabled) {\n return selectTabStop(state, rowTabStop, rowStartMap);\n }\n }\n return { ...state, allowFocusing: true, rowStartMap };\n }\n case Navigation.FIRST_IN_ROW:\n {\n if (currentTabStop.rowIndex === null) {\n return state;\n }\n const rowStartMap = state.rowStartMap || createRowStartMap(state);\n const rowStartIndex = rowStartMap.get(currentTabStop.rowIndex);\n if (rowStartIndex === undefined) {\n return state;\n }\n for (let i = rowStartIndex; i < state.tabStops.length; ++i) {\n const tabStop = state.tabStops[i];\n if (tabStop.rowIndex !== currentTabStop.rowIndex) {\n break;\n } else if (!tabStop.isDisabled) {\n return selectTabStop(state, state.tabStops[i], rowStartMap);\n }\n }\n }\n break;\n case Navigation.LAST_IN_ROW:\n {\n if (currentTabStop.rowIndex === null) {\n return state;\n }\n const rowStartMap = state.rowStartMap || createRowStartMap(state);\n const rowEndIndex = rowStartMap.has(currentTabStop.rowIndex + 1)\n ? (rowStartMap.get(currentTabStop.rowIndex + 1) || 0) - 1\n : state.tabStops.length - 1;\n for (let i = rowEndIndex; i >= 0; --i) {\n const tabStop = state.tabStops[i];\n if (tabStop.rowIndex !== currentTabStop.rowIndex) {\n break;\n } else if (!tabStop.isDisabled) {\n return selectTabStop(state, state.tabStops[i], rowStartMap);\n }\n }\n }\n break;\n }\n return state;\n}\n"],"names":["DOCUMENT_POSITION_FOLLOWING","FocusWithinGroupReducer","state","action","type","FocusWithinGroupActionType","REGISTER_TAB_STOP","newTabStop","payload","domElementRef","current","indexToInsertAt","i","tabStops","length","loopTabStop","id","compareDocumentPosition","newTabStops","slice","splice","_objectSpread","selectedId","focusOnInit","getUpdatedSelectedId","rowStartMap","UNREGISTER_TAB_STOP","filter","tabStop","TAB_STOP_UPDATED","rowIndex","isDisabled","value","index","findIndex","console","warn","KEY_DOWN_ON_ITEM","key","ctrlKey","moveSelectionFromKey","CLICK_ON_ITEM","currentTabStop","selectTabStop","undefined","focusOnClick","FOCUS_ON_LIST","_action$payload$id","_state$tabStops$","delayedAction","BLUR_ON_LIST","activedescendant","KEY_DOWN_ON_LIST","OPTIONS_UPDATED","FILTER_LIST","DELAY_ACTION","findIndexOfVeryFirstActiveTabStop","findIndexOfVeryLastActiveTabStop","currentSelectedId","getNavigationValue","isGrid","direction","loopAround","isFirst","isLast","EventKey","ArrowLeft","Navigation","VERY_LAST","PREVIOUS","ArrowRight","VERY_FIRST","NEXT","ArrowUp","PREVIOUS_ROW","ArrowDown","NEXT_ROW","Home","FIRST_IN_ROW","End","LAST_IN_ROW","allowFocusing","arguments","focusType","createRowStartMap","map","Map","has","set","navigation","rowStartIndex","get","columnOffset","rowTabStop","maxRowIndex","rowEndIndex"],"mappings":";;;AAUA,MAAMA,2BAA2B,GAAG,CAAC,CAAA;MAExBC,uBAAuB,GAAGA,CACrCC,KAA4B,EAC5BC,MAA8B,KACJ;EAC1B,QAAQA,MAAM,CAACC,IAAI;IACjB,KAAKC,0BAA0B,CAACC,iBAAiB;AAAE,MAAA;AACjD,QAAA,MAAMC,UAAU,GAAGJ,MAAM,CAACK,OAAO,CAAA;AACjC,QAAA,IAAI,CAACD,UAAU,CAACE,aAAa,CAACC,OAAO,EAAE;AACrC,UAAA,OAAOR,KAAK,CAAA;AACd,SAAA;;AAEA;AACA;AACA;QACA,IAAIS,eAAe,GAAG,CAAC,CAAC,CAAA;AACxB,QAAA,KAAK,IAAIC,CAAC,GAAGV,KAAK,CAACW,QAAQ,CAACC,MAAM,GAAG,CAAC,EAAEF,CAAC,IAAI,CAAC,EAAE,EAAEA,CAAC,EAAE;AACnD,UAAA,MAAMG,WAAW,GAAGb,KAAK,CAACW,QAAQ,CAACD,CAAC,CAAC,CAAA;AACrC,UAAA,IAAIG,WAAW,CAACC,EAAE,KAAKT,UAAU,CAACS,EAAE,EAAE;AACpC;AACA,YAAA,OAAOd,KAAK,CAAA;AACd,WAAA;AACA;AACA;AACA,UAAA,IACES,eAAe,KAAK,CAAC,CAAC,IACtBI,WAAW,CAACN,aAAa,CAACC,OAAO,IACjC,CAAC,EACCK,WAAW,CAACN,aAAa,CAACC,OAAO,CAACO,uBAAuB,CAACV,UAAU,CAAC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GvB,KAAK,CAACuB,WAAW,IAAI2D,iBAAiB,CAAClF,KAAK,CAAC,CAAA;AACjE,QAAA,MAAM6F,WAAW,GAAGtE,WAAW,CAAC8D,GAAG,CAAC7C,cAAc,CAACZ,QAAQ,GAAG,CAAC,CAAC,GAC5D,CAACL,WAAW,CAACkE,GAAG,CAACjD,cAAc,CAACZ,QAAQ,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GACvD5B,KAAK,CAACW,QAAQ,CAACC,MAAM,GAAG,CAAC,CAAA;QAC7B,KAAK,IAAIF,CAAC,GAAGmF,WAAW,EAAEnF,CAAC,IAAI,CAAC,EAAE,EAAEA,CAAC,EAAE;AACrC,UAAA,MAAMgB,OAAO,GAAG1B,KAAK,CAACW,QAAQ,CAACD,CAAC,CAAC,CAAA;AACjC,UAAA,IAAIgB,OAAO,CAACE,QAAQ,KAAKY,cAAc,CAACZ,QAAQ,EAAE;AAChD,YAAA,MAAA;AACF,WAAC,MAAM,IAAI,CAACF,OAAO,CAACG,UAAU,EAAE;AAC9B,YAAA,OAAOY,aAAa,CAACzC,KAAK,EAAEA,KAAK,CAACW,QAAQ,CAACD,CAAC,CAAC,EAAEa,WAAW,CAAC,CAAA;AAC7D,WAAA;AACF,SAAA;AACF,OAAA;AACA,MAAA,MAAA;AACJ,GAAA;AACA,EAAA,OAAOvB,KAAK,CAAA;AACd;;;;"}
@@ -1,143 +0,0 @@
1
- import { ComponentProps } from 'react';
2
-
3
- declare enum EventKey {
4
- ArrowLeft = "ArrowLeft",
5
- ArrowRight = "ArrowRight",
6
- ArrowUp = "ArrowUp",
7
- ArrowDown = "ArrowDown",
8
- Home = "Home",
9
- End = "End",
10
- Enter = "Enter"
11
- }
12
- type KeyDirection = 'horizontal' | 'vertical' | 'both';
13
- declare enum Navigation {
14
- PREVIOUS = "PREVIOUS",
15
- NEXT = "NEXT",
16
- VERY_FIRST = "VERY_FIRST",
17
- VERY_LAST = "VERY_LAST",
18
- PREVIOUS_ROW = "PREVIOUS_ROW",
19
- NEXT_ROW = "NEXT_ROW",
20
- FIRST_IN_ROW = "FIRST_IN_ROW",
21
- LAST_IN_ROW = "LAST_IN_ROW"
22
- }
23
- type TabStop = Readonly<{
24
- id: string;
25
- domElementRef: React.RefObject<Element>;
26
- isDisabled: boolean;
27
- rowIndex: number | null;
28
- value: string;
29
- }>;
30
- type RowStartMap = Map<Exclude<TabStop['rowIndex'], null>, number>;
31
- type FocusWithinGroupState = Readonly<{
32
- selectedId: string | null;
33
- allowFocusing: boolean;
34
- tabStops: readonly TabStop[];
35
- direction: KeyDirection;
36
- focusOnClick: boolean;
37
- focusOnInit: boolean;
38
- loopAround: boolean;
39
- rowStartMap: RowStartMap | null;
40
- focusType: 'roving-tabindex' | 'virtual-focus';
41
- listRole: 'listbox' | 'menu';
42
- activedescendant?: [string, string];
43
- filter?: {
44
- value: string;
45
- type: 'startsWith' | 'contains' | 'endsWith';
46
- caseSensitive?: boolean;
47
- };
48
- delayedAction?: BaseFocusWithinGroupAction;
49
- maxOptionsLength?: number;
50
- }>;
51
- type FocusWithinGroupOptions = Partial<Pick<FocusWithinGroupState, 'direction' | 'focusOnClick' | 'focusOnInit' | 'loopAround' | 'focusType' | 'listRole' | 'activedescendant' | 'maxOptionsLength'>>;
52
- declare enum FocusWithinGroupActionType {
53
- REGISTER_TAB_STOP = "REGISTER_TAB_STOP",
54
- UNREGISTER_TAB_STOP = "UNREGISTER_TAB_STOP",
55
- KEY_DOWN_ON_ITEM = "KEY_DOWN_ON_ITEM",
56
- CLICK_ON_ITEM = "CLICK_ON_ITEM",
57
- KEY_DOWN_ON_LIST = "KEY_DOWN_ON_LIST",
58
- FOCUS_ON_LIST = "FOCUS_ON_LIST",
59
- BLUR_ON_LIST = "BLUR_ON_LIST",
60
- TAB_STOP_UPDATED = "TAB_STOP_UPDATED",
61
- OPTIONS_UPDATED = "OPTIONS_UPDATED",
62
- FILTER_LIST = "FILTER_LIST",
63
- DELAY_ACTION = "DELAY_ACTION"
64
- }
65
- type BaseFocusWithinGroupAction = {
66
- type: FocusWithinGroupActionType.REGISTER_TAB_STOP;
67
- payload: TabStop;
68
- } | {
69
- type: FocusWithinGroupActionType.UNREGISTER_TAB_STOP;
70
- payload: {
71
- id: TabStop['id'];
72
- };
73
- } | {
74
- type: FocusWithinGroupActionType.TAB_STOP_UPDATED;
75
- payload: {
76
- id: TabStop['id'];
77
- rowIndex: TabStop['rowIndex'];
78
- isDisabled: TabStop['isDisabled'];
79
- value: string;
80
- };
81
- } | {
82
- type: FocusWithinGroupActionType.KEY_DOWN_ON_ITEM;
83
- payload: {
84
- id: TabStop['id'];
85
- key: EventKey;
86
- ctrlKey: boolean;
87
- };
88
- } | {
89
- type: FocusWithinGroupActionType.CLICK_ON_ITEM;
90
- payload: {
91
- id: TabStop['id'];
92
- };
93
- } | {
94
- type: FocusWithinGroupActionType.KEY_DOWN_ON_LIST;
95
- payload: {
96
- key: EventKey;
97
- ctrlKey: boolean;
98
- };
99
- } | {
100
- type: FocusWithinGroupActionType.FOCUS_ON_LIST;
101
- payload: {
102
- id: TabStop['id'];
103
- filter?: FocusWithinGroupState['filter'];
104
- };
105
- } | {
106
- type: FocusWithinGroupActionType.BLUR_ON_LIST;
107
- payload: {};
108
- } | {
109
- type: FocusWithinGroupActionType.OPTIONS_UPDATED;
110
- payload: FocusWithinGroupOptions;
111
- } | {
112
- type: FocusWithinGroupActionType.FILTER_LIST;
113
- payload: {
114
- filter: FocusWithinGroupState['filter'];
115
- };
116
- };
117
- type FocusWithinGroupAction = BaseFocusWithinGroupAction | {
118
- type: FocusWithinGroupActionType.DELAY_ACTION;
119
- payload: BaseFocusWithinGroupAction;
120
- };
121
- type UseFocusWithinGroupProps = {
122
- tabIndex?: number;
123
- isFocused: boolean;
124
- handleKeyDown: (event: React.KeyboardEvent) => void;
125
- handleClick: () => void;
126
- };
127
- type UseFocusGroupProps = {
128
- activedescendant: [string, string] | undefined;
129
- handleKeyDown: (event: React.KeyboardEvent) => void;
130
- handleFocus: () => void;
131
- handleBlur: () => void;
132
- };
133
- type FocusWithinGroupContextProps = {
134
- state: FocusWithinGroupState;
135
- dispatch: React.Dispatch<FocusWithinGroupAction>;
136
- };
137
- /**
138
- * Component props.
139
- */
140
- interface FocusWithinGroupProps extends ComponentProps<'div'>, FocusWithinGroupOptions {
141
- }
142
-
143
- export { BaseFocusWithinGroupAction, EventKey, FocusWithinGroupAction, FocusWithinGroupActionType, FocusWithinGroupContextProps, FocusWithinGroupOptions, FocusWithinGroupProps, FocusWithinGroupState, KeyDirection, Navigation, RowStartMap, TabStop, UseFocusGroupProps, UseFocusWithinGroupProps };
@@ -1,42 +0,0 @@
1
- let EventKey = /*#__PURE__*/function (EventKey) {
2
- EventKey["ArrowLeft"] = "ArrowLeft";
3
- EventKey["ArrowRight"] = "ArrowRight";
4
- EventKey["ArrowUp"] = "ArrowUp";
5
- EventKey["ArrowDown"] = "ArrowDown";
6
- EventKey["Home"] = "Home";
7
- EventKey["End"] = "End";
8
- EventKey["Enter"] = "Enter";
9
- return EventKey;
10
- }({});
11
- let Navigation = /*#__PURE__*/function (Navigation) {
12
- Navigation["PREVIOUS"] = "PREVIOUS";
13
- Navigation["NEXT"] = "NEXT";
14
- Navigation["VERY_FIRST"] = "VERY_FIRST";
15
- Navigation["VERY_LAST"] = "VERY_LAST";
16
- Navigation["PREVIOUS_ROW"] = "PREVIOUS_ROW";
17
- Navigation["NEXT_ROW"] = "NEXT_ROW";
18
- Navigation["FIRST_IN_ROW"] = "FIRST_IN_ROW";
19
- Navigation["LAST_IN_ROW"] = "LAST_IN_ROW";
20
- return Navigation;
21
- }({});
22
- let FocusWithinGroupActionType = /*#__PURE__*/function (FocusWithinGroupActionType) {
23
- FocusWithinGroupActionType["REGISTER_TAB_STOP"] = "REGISTER_TAB_STOP";
24
- FocusWithinGroupActionType["UNREGISTER_TAB_STOP"] = "UNREGISTER_TAB_STOP";
25
- FocusWithinGroupActionType["KEY_DOWN_ON_ITEM"] = "KEY_DOWN_ON_ITEM";
26
- FocusWithinGroupActionType["CLICK_ON_ITEM"] = "CLICK_ON_ITEM";
27
- FocusWithinGroupActionType["KEY_DOWN_ON_LIST"] = "KEY_DOWN_ON_LIST";
28
- FocusWithinGroupActionType["FOCUS_ON_LIST"] = "FOCUS_ON_LIST";
29
- FocusWithinGroupActionType["BLUR_ON_LIST"] = "BLUR_ON_LIST";
30
- FocusWithinGroupActionType["TAB_STOP_UPDATED"] = "TAB_STOP_UPDATED";
31
- FocusWithinGroupActionType["OPTIONS_UPDATED"] = "OPTIONS_UPDATED";
32
- FocusWithinGroupActionType["FILTER_LIST"] = "FILTER_LIST";
33
- FocusWithinGroupActionType["DELAY_ACTION"] = "DELAY_ACTION";
34
- return FocusWithinGroupActionType;
35
- }({});
36
-
37
- /**
38
- * Component props.
39
- */
40
-
41
- export { EventKey, FocusWithinGroupActionType, Navigation };
42
- //# sourceMappingURL=types.js.map