@redsift/design-system 11.5.0 → 11.6.0-muiv5-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (710) hide show
  1. package/_virtual/_rollupPluginBabelHelpers.js +133 -0
  2. package/_virtual/_rollupPluginBabelHelpers.js.map +1 -0
  3. package/_virtual/jsx-runtime.js +4 -0
  4. package/_virtual/jsx-runtime.js.map +1 -0
  5. package/_virtual/react-jsx-runtime.development.js +4 -0
  6. package/_virtual/react-jsx-runtime.development.js.map +1 -0
  7. package/_virtual/react-jsx-runtime.production.min.js +4 -0
  8. package/_virtual/react-jsx-runtime.production.min.js.map +1 -0
  9. package/components/alert/Alert.d.ts +9 -0
  10. package/components/alert/Alert.js +117 -0
  11. package/components/alert/Alert.js.map +1 -0
  12. package/components/alert/intl/en-US.json.js +7 -0
  13. package/components/alert/intl/en-US.json.js.map +1 -0
  14. package/components/alert/intl/fr-FR.json.js +7 -0
  15. package/components/alert/intl/fr-FR.json.js.map +1 -0
  16. package/components/alert/intl/index.js +10 -0
  17. package/components/alert/intl/index.js.map +1 -0
  18. package/components/alert/styles.js +54 -0
  19. package/components/alert/styles.js.map +1 -0
  20. package/components/alert/types.d.ts +49 -0
  21. package/components/alert/types.js +20 -0
  22. package/components/alert/types.js.map +1 -0
  23. package/components/app-bar/AppBar.d.ts +9 -0
  24. package/components/app-bar/AppBar.js +95 -0
  25. package/components/app-bar/AppBar.js.map +1 -0
  26. package/components/app-bar/intl/en-US.json.js +9 -0
  27. package/components/app-bar/intl/en-US.json.js.map +1 -0
  28. package/components/app-bar/intl/fr-FR.json.js +9 -0
  29. package/components/app-bar/intl/fr-FR.json.js.map +1 -0
  30. package/components/app-bar/intl/index.js +10 -0
  31. package/components/app-bar/intl/index.js.map +1 -0
  32. package/components/app-bar/styles.js +139 -0
  33. package/components/app-bar/styles.js.map +1 -0
  34. package/components/app-bar/types.d.ts +31 -0
  35. package/components/app-container/AppContainer.d.ts +11 -0
  36. package/components/app-container/AppContainer.js +117 -0
  37. package/components/app-container/AppContainer.js.map +1 -0
  38. package/components/app-container/context.d.ts +6 -0
  39. package/components/app-container/context.js +6 -0
  40. package/components/app-container/context.js.map +1 -0
  41. package/components/app-container/styles.js +30 -0
  42. package/components/app-container/styles.js.map +1 -0
  43. package/components/app-container/types.d.ts +51 -0
  44. package/components/app-content/AppContent.d.ts +9 -0
  45. package/components/app-content/AppContent.js +42 -0
  46. package/components/app-content/AppContent.js.map +1 -0
  47. package/components/app-content/styles.js +54 -0
  48. package/components/app-content/styles.js.map +1 -0
  49. package/components/app-content/types.d.ts +19 -0
  50. package/components/app-side-panel/AppSidePanel.d.ts +9 -0
  51. package/components/app-side-panel/AppSidePanel.js +86 -0
  52. package/components/app-side-panel/AppSidePanel.js.map +1 -0
  53. package/components/app-side-panel/intl/en-US.json.js +9 -0
  54. package/components/app-side-panel/intl/en-US.json.js.map +1 -0
  55. package/components/app-side-panel/intl/fr-FR.json.js +9 -0
  56. package/components/app-side-panel/intl/fr-FR.json.js.map +1 -0
  57. package/components/app-side-panel/intl/index.js +10 -0
  58. package/components/app-side-panel/intl/index.js.map +1 -0
  59. package/components/app-side-panel/styles.js +183 -0
  60. package/components/app-side-panel/styles.js.map +1 -0
  61. package/components/app-side-panel/types.d.ts +39 -0
  62. package/components/app-side-panel/types.js +15 -0
  63. package/components/app-side-panel/types.js.map +1 -0
  64. package/components/app-side-panel/useAppSidePanel.d.ts +6 -0
  65. package/components/app-side-panel/useAppSidePanel.js +23 -0
  66. package/components/app-side-panel/useAppSidePanel.js.map +1 -0
  67. package/components/badge/Badge.d.ts +9 -0
  68. package/components/badge/Badge.js +44 -0
  69. package/components/badge/Badge.js.map +1 -0
  70. package/components/badge/styles.js +93 -0
  71. package/components/badge/styles.js.map +1 -0
  72. package/components/badge/types.d.ts +37 -0
  73. package/components/badge/types.js +14 -0
  74. package/components/badge/types.js.map +1 -0
  75. package/components/breadcrumb-item/BreadcrumbItem.d.ts +9 -0
  76. package/components/breadcrumb-item/BreadcrumbItem.js +47 -0
  77. package/components/breadcrumb-item/BreadcrumbItem.js.map +1 -0
  78. package/components/breadcrumb-item/styles.js +48 -0
  79. package/components/breadcrumb-item/styles.js.map +1 -0
  80. package/components/breadcrumb-item/types.d.ts +23 -0
  81. package/components/breadcrumbs/Breadcrumbs.d.ts +13 -0
  82. package/components/breadcrumbs/Breadcrumbs.js +61 -0
  83. package/components/breadcrumbs/Breadcrumbs.js.map +1 -0
  84. package/components/breadcrumbs/styles.js +38 -0
  85. package/components/breadcrumbs/styles.js.map +1 -0
  86. package/components/breadcrumbs/types.d.ts +19 -0
  87. package/components/button/Button.d.ts +13 -0
  88. package/components/button/Button.js +92 -0
  89. package/components/button/Button.js.map +1 -0
  90. package/components/button/styles.d.ts +20 -0
  91. package/components/button/styles.js +219 -0
  92. package/components/button/styles.js.map +1 -0
  93. package/components/button/types.d.ts +67 -0
  94. package/components/button/types.js +19 -0
  95. package/components/button/types.js.map +1 -0
  96. package/components/button-group/ButtonGroup.d.ts +9 -0
  97. package/components/button-group/ButtonGroup.js +67 -0
  98. package/components/button-group/ButtonGroup.js.map +1 -0
  99. package/components/button-group/styles.js +103 -0
  100. package/components/button-group/styles.js.map +1 -0
  101. package/components/button-group/types.d.ts +36 -0
  102. package/components/button-group/types.js +19 -0
  103. package/components/button-group/types.js.map +1 -0
  104. package/components/button-link/ButtonLink.d.ts +13 -0
  105. package/components/button-link/ButtonLink.js +85 -0
  106. package/components/button-link/ButtonLink.js.map +1 -0
  107. package/components/button-link/types.d.ts +18 -0
  108. package/components/card/Card.d.ts +13 -0
  109. package/components/card/Card.js +81 -0
  110. package/components/card/Card.js.map +1 -0
  111. package/components/card/intl/en-US.json.js +9 -0
  112. package/components/card/intl/en-US.json.js.map +1 -0
  113. package/components/card/intl/fr-FR.json.js +9 -0
  114. package/components/card/intl/fr-FR.json.js.map +1 -0
  115. package/components/card/intl/index.js +10 -0
  116. package/components/card/intl/index.js.map +1 -0
  117. package/components/card/styles.js +63 -0
  118. package/components/card/styles.js.map +1 -0
  119. package/components/card/types.d.ts +25 -0
  120. package/components/card-actions/CardActions.d.ts +9 -0
  121. package/components/card-actions/CardActions.js +33 -0
  122. package/components/card-actions/CardActions.js.map +1 -0
  123. package/components/card-actions/styles.js +15 -0
  124. package/components/card-actions/styles.js.map +1 -0
  125. package/components/card-actions/types.d.ts +11 -0
  126. package/components/card-body/CardBody.d.ts +9 -0
  127. package/components/card-body/CardBody.js +28 -0
  128. package/components/card-body/CardBody.js.map +1 -0
  129. package/components/card-body/styles.js +18 -0
  130. package/components/card-body/styles.js.map +1 -0
  131. package/components/card-body/types.d.ts +11 -0
  132. package/components/card-header/CardHeader.d.ts +9 -0
  133. package/components/card-header/CardHeader.js +56 -0
  134. package/components/card-header/CardHeader.js.map +1 -0
  135. package/components/card-header/styles.js +31 -0
  136. package/components/card-header/styles.js.map +1 -0
  137. package/components/card-header/types.d.ts +28 -0
  138. package/components/checkbox/Checkbox.d.ts +11 -0
  139. package/components/checkbox/Checkbox.js +135 -0
  140. package/components/checkbox/Checkbox.js.map +1 -0
  141. package/components/checkbox/styles.js +113 -0
  142. package/components/checkbox/styles.js.map +1 -0
  143. package/components/checkbox/types.d.ts +60 -0
  144. package/components/checkbox-group/CheckboxGroup.d.ts +10 -0
  145. package/components/checkbox-group/CheckboxGroup.js +101 -0
  146. package/components/checkbox-group/CheckboxGroup.js.map +1 -0
  147. package/components/checkbox-group/context.js +6 -0
  148. package/components/checkbox-group/context.js.map +1 -0
  149. package/components/checkbox-group/styles.js +78 -0
  150. package/components/checkbox-group/styles.js.map +1 -0
  151. package/components/checkbox-group/types.d.ts +72 -0
  152. package/components/checkbox-group/types.js +18 -0
  153. package/components/checkbox-group/types.js.map +1 -0
  154. package/components/conditional-wrapper/ConditionalWrapper.d.ts +6 -0
  155. package/components/conditional-wrapper/ConditionalWrapper.js +13 -0
  156. package/components/conditional-wrapper/ConditionalWrapper.js.map +1 -0
  157. package/components/conditional-wrapper/types.d.ts +10 -0
  158. package/components/detailed-card/DetailedCard.d.ts +15 -0
  159. package/components/detailed-card/DetailedCard.js +170 -0
  160. package/components/detailed-card/DetailedCard.js.map +1 -0
  161. package/components/detailed-card/intl/en-US.json.js +7 -0
  162. package/components/detailed-card/intl/en-US.json.js.map +1 -0
  163. package/components/detailed-card/intl/fr-FR.json.js +7 -0
  164. package/components/detailed-card/intl/fr-FR.json.js.map +1 -0
  165. package/components/detailed-card/intl/index.js +10 -0
  166. package/components/detailed-card/intl/index.js.map +1 -0
  167. package/components/detailed-card/styles.js +49 -0
  168. package/components/detailed-card/styles.js.map +1 -0
  169. package/components/detailed-card/types.d.ts +40 -0
  170. package/components/detailed-card-collapsible-section-items/DetailedCardCollapsibleSectionItems.d.ts +9 -0
  171. package/components/detailed-card-collapsible-section-items/DetailedCardCollapsibleSectionItems.js +33 -0
  172. package/components/detailed-card-collapsible-section-items/DetailedCardCollapsibleSectionItems.js.map +1 -0
  173. package/components/detailed-card-collapsible-section-items/styles.js +35 -0
  174. package/components/detailed-card-collapsible-section-items/styles.js.map +1 -0
  175. package/components/detailed-card-collapsible-section-items/types.d.ts +16 -0
  176. package/components/detailed-card-header/DetailedCardHeader.d.ts +9 -0
  177. package/components/detailed-card-header/DetailedCardHeader.js +45 -0
  178. package/components/detailed-card-header/DetailedCardHeader.js.map +1 -0
  179. package/components/detailed-card-header/styles.js +26 -0
  180. package/components/detailed-card-header/styles.js.map +1 -0
  181. package/components/detailed-card-header/types.d.ts +20 -0
  182. package/components/detailed-card-section/DetailedCardSection.d.ts +9 -0
  183. package/components/detailed-card-section/DetailedCardSection.js +90 -0
  184. package/components/detailed-card-section/DetailedCardSection.js.map +1 -0
  185. package/components/detailed-card-section/intl/en-US.json.js +9 -0
  186. package/components/detailed-card-section/intl/en-US.json.js.map +1 -0
  187. package/components/detailed-card-section/intl/fr-FR.json.js +9 -0
  188. package/components/detailed-card-section/intl/fr-FR.json.js.map +1 -0
  189. package/components/detailed-card-section/intl/index.js +10 -0
  190. package/components/detailed-card-section/intl/index.js.map +1 -0
  191. package/components/detailed-card-section/styles.js +69 -0
  192. package/components/detailed-card-section/styles.js.map +1 -0
  193. package/components/detailed-card-section/types.d.ts +27 -0
  194. package/components/detailed-card-section-item/DetailedCardSectionItem.d.ts +9 -0
  195. package/components/detailed-card-section-item/DetailedCardSectionItem.js +64 -0
  196. package/components/detailed-card-section-item/DetailedCardSectionItem.js.map +1 -0
  197. package/components/detailed-card-section-item/styles.js +34 -0
  198. package/components/detailed-card-section-item/styles.js.map +1 -0
  199. package/components/detailed-card-section-item/types.d.ts +35 -0
  200. package/components/flexbox/Flexbox.d.ts +9 -0
  201. package/components/flexbox/Flexbox.js +44 -0
  202. package/components/flexbox/Flexbox.js.map +1 -0
  203. package/components/flexbox/styles.js +54 -0
  204. package/components/flexbox/styles.js.map +1 -0
  205. package/components/flexbox/types.d.ts +24 -0
  206. package/components/focus-within-group/FocusWithinGroup.d.ts +41 -0
  207. package/components/focus-within-group/FocusWithinGroup.js +91 -0
  208. package/components/focus-within-group/FocusWithinGroup.js.map +1 -0
  209. package/components/focus-within-group/context.d.ts +7 -0
  210. package/components/focus-within-group/context.js +21 -0
  211. package/components/focus-within-group/context.js.map +1 -0
  212. package/components/focus-within-group/reducer.d.ts +5 -0
  213. package/components/focus-within-group/reducer.js +419 -0
  214. package/components/focus-within-group/reducer.js.map +1 -0
  215. package/components/focus-within-group/types.d.ts +143 -0
  216. package/components/focus-within-group/types.js +42 -0
  217. package/components/focus-within-group/types.js.map +1 -0
  218. package/components/focus-within-group/useFocusOnList.d.ts +5 -0
  219. package/components/focus-within-group/useFocusOnList.js +44 -0
  220. package/components/focus-within-group/useFocusOnList.js.map +1 -0
  221. package/components/focus-within-group/useFocusOnListItem.d.ts +39 -0
  222. package/components/focus-within-group/useFocusOnListItem.js +148 -0
  223. package/components/focus-within-group/useFocusOnListItem.js.map +1 -0
  224. package/components/gradient-border/index.d.ts +14 -0
  225. package/components/gradient-border/index.js +38 -0
  226. package/components/gradient-border/index.js.map +1 -0
  227. package/components/grid/Grid.d.ts +13 -0
  228. package/components/grid/Grid.js +45 -0
  229. package/components/grid/Grid.js.map +1 -0
  230. package/components/grid/styles.js +55 -0
  231. package/components/grid/styles.js.map +1 -0
  232. package/components/grid/types.d.ts +22 -0
  233. package/components/grid-item/GridItem.d.ts +9 -0
  234. package/components/grid-item/GridItem.js +28 -0
  235. package/components/grid-item/GridItem.js.map +1 -0
  236. package/components/grid-item/styles.js +16 -0
  237. package/components/grid-item/styles.js.map +1 -0
  238. package/components/grid-item/types.d.ts +11 -0
  239. package/components/heading/Heading.d.ts +9 -0
  240. package/components/heading/Heading.js +50 -0
  241. package/components/heading/Heading.js.map +1 -0
  242. package/components/heading/styles.js +67 -0
  243. package/components/heading/styles.js.map +1 -0
  244. package/components/heading/types.d.ts +62 -0
  245. package/components/heading/types.js +26 -0
  246. package/components/heading/types.js.map +1 -0
  247. package/components/icon/Icon.d.ts +10 -0
  248. package/components/icon/Icon.js +116 -0
  249. package/components/icon/Icon.js.map +1 -0
  250. package/components/icon/styles.js +84 -0
  251. package/components/icon/styles.js.map +1 -0
  252. package/components/icon/types.d.ts +57 -0
  253. package/components/icon/types.js +18 -0
  254. package/components/icon/types.js.map +1 -0
  255. package/components/icon-button/IconButton.d.ts +12 -0
  256. package/components/icon-button/IconButton.js +81 -0
  257. package/components/icon-button/IconButton.js.map +1 -0
  258. package/components/icon-button/styles.js +31 -0
  259. package/components/icon-button/styles.js.map +1 -0
  260. package/components/icon-button/types.d.ts +56 -0
  261. package/components/icon-button/types.js +19 -0
  262. package/components/icon-button/types.js.map +1 -0
  263. package/components/icon-button-link/IconButtonLink.d.ts +13 -0
  264. package/components/icon-button-link/IconButtonLink.js +76 -0
  265. package/components/icon-button-link/IconButtonLink.js.map +1 -0
  266. package/components/icon-button-link/types.d.ts +18 -0
  267. package/components/item/Item.d.ts +10 -0
  268. package/components/item/Item.js +225 -0
  269. package/components/item/Item.js.map +1 -0
  270. package/components/item/styles.d.ts +20 -0
  271. package/components/item/styles.js +129 -0
  272. package/components/item/styles.js.map +1 -0
  273. package/components/item/types.d.ts +59 -0
  274. package/components/item/useMenuItem.js +55 -0
  275. package/components/item/useMenuItem.js.map +1 -0
  276. package/components/link/Link.d.ts +14 -0
  277. package/components/link/Link.js +67 -0
  278. package/components/link/Link.js.map +1 -0
  279. package/components/link/styles.d.ts +15 -0
  280. package/components/link/styles.js +145 -0
  281. package/components/link/styles.js.map +1 -0
  282. package/components/link/types.d.ts +40 -0
  283. package/components/link-button/LinkButton.d.ts +13 -0
  284. package/components/link-button/LinkButton.js +66 -0
  285. package/components/link-button/LinkButton.js.map +1 -0
  286. package/components/link-button/types.d.ts +13 -0
  287. package/components/listbox/ActiveDescendantListbox.d.ts +8 -0
  288. package/components/listbox/ActiveDescendantListbox.js +74 -0
  289. package/components/listbox/ActiveDescendantListbox.js.map +1 -0
  290. package/components/listbox/Listbox.d.ts +10 -0
  291. package/components/listbox/Listbox.js +110 -0
  292. package/components/listbox/Listbox.js.map +1 -0
  293. package/components/listbox/RovingTabindexListbox.d.ts +8 -0
  294. package/components/listbox/RovingTabindexListbox.js +30 -0
  295. package/components/listbox/RovingTabindexListbox.js.map +1 -0
  296. package/components/listbox/context.d.ts +7 -0
  297. package/components/listbox/context.js +15 -0
  298. package/components/listbox/context.js.map +1 -0
  299. package/components/listbox/reducer.d.ts +5 -0
  300. package/components/listbox/reducer.js +45 -0
  301. package/components/listbox/reducer.js.map +1 -0
  302. package/components/listbox/styles.js +44 -0
  303. package/components/listbox/styles.js.map +1 -0
  304. package/components/listbox/types.d.ts +101 -0
  305. package/components/listbox/types.js +32 -0
  306. package/components/listbox/types.js.map +1 -0
  307. package/components/listbox/useListboxItem.d.ts +12 -0
  308. package/components/listbox/useListboxItem.js +90 -0
  309. package/components/listbox/useListboxItem.js.map +1 -0
  310. package/components/number/Number.d.ts +9 -0
  311. package/components/number/Number.js +105 -0
  312. package/components/number/Number.js.map +1 -0
  313. package/components/number/styles.js +10 -0
  314. package/components/number/styles.js.map +1 -0
  315. package/components/number/types.d.ts +63 -0
  316. package/components/number-field/NumberField.d.ts +10 -0
  317. package/components/number-field/NumberField.js +216 -0
  318. package/components/number-field/NumberField.js.map +1 -0
  319. package/components/number-field/styles.js +240 -0
  320. package/components/number-field/styles.js.map +1 -0
  321. package/components/number-field/types.d.ts +74 -0
  322. package/components/number-field/types.js +14 -0
  323. package/components/number-field/types.js.map +1 -0
  324. package/components/pill/Pill.d.ts +9 -0
  325. package/components/pill/Pill.js +93 -0
  326. package/components/pill/Pill.js.map +1 -0
  327. package/components/pill/styles.js +305 -0
  328. package/components/pill/styles.js.map +1 -0
  329. package/components/pill/types.d.ts +47 -0
  330. package/components/pill/types.js +15 -0
  331. package/components/pill/types.js.map +1 -0
  332. package/components/progress-bar/ProgressBar.d.ts +9 -0
  333. package/components/progress-bar/ProgressBar.js +35 -0
  334. package/components/progress-bar/ProgressBar.js.map +1 -0
  335. package/components/progress-bar/styles.js +38 -0
  336. package/components/progress-bar/styles.js.map +1 -0
  337. package/components/progress-bar/types.d.ts +20 -0
  338. package/components/radio/Radio.d.ts +11 -0
  339. package/components/radio/Radio.js +128 -0
  340. package/components/radio/Radio.js.map +1 -0
  341. package/components/radio/styles.js +113 -0
  342. package/components/radio/styles.js.map +1 -0
  343. package/components/radio/types.d.ts +58 -0
  344. package/components/radio-group/RadioGroup.d.ts +10 -0
  345. package/components/radio-group/RadioGroup.js +89 -0
  346. package/components/radio-group/RadioGroup.js.map +1 -0
  347. package/components/radio-group/context.js +6 -0
  348. package/components/radio-group/context.js.map +1 -0
  349. package/components/radio-group/styles.js +78 -0
  350. package/components/radio-group/styles.js.map +1 -0
  351. package/components/radio-group/types.d.ts +68 -0
  352. package/components/radio-group/types.js +18 -0
  353. package/components/radio-group/types.js.map +1 -0
  354. package/components/shared/styles.d.ts +17 -0
  355. package/components/shared/styles.js +250 -0
  356. package/components/shared/styles.js.map +1 -0
  357. package/components/shield/Shield.d.ts +9 -0
  358. package/components/shield/Shield.js +136 -0
  359. package/components/shield/Shield.js.map +1 -0
  360. package/components/shield/styles.js +71 -0
  361. package/components/shield/styles.js.map +1 -0
  362. package/components/shield/types.d.ts +52 -0
  363. package/components/shield/types.js +25 -0
  364. package/components/shield/types.js.map +1 -0
  365. package/components/side-navigation-menu/SideNavigationMenu.d.ts +9 -0
  366. package/components/side-navigation-menu/SideNavigationMenu.js +367 -0
  367. package/components/side-navigation-menu/SideNavigationMenu.js.map +1 -0
  368. package/components/side-navigation-menu/context.js +6 -0
  369. package/components/side-navigation-menu/context.js.map +1 -0
  370. package/components/side-navigation-menu/reducer.js +26 -0
  371. package/components/side-navigation-menu/reducer.js.map +1 -0
  372. package/components/side-navigation-menu/styles.js +196 -0
  373. package/components/side-navigation-menu/styles.js.map +1 -0
  374. package/components/side-navigation-menu/types.d.ts +72 -0
  375. package/components/side-navigation-menu/types.js +21 -0
  376. package/components/side-navigation-menu/types.js.map +1 -0
  377. package/components/side-navigation-menu-bar/SideNavigationMenuBar.d.ts +9 -0
  378. package/components/side-navigation-menu-bar/SideNavigationMenuBar.js +217 -0
  379. package/components/side-navigation-menu-bar/SideNavigationMenuBar.js.map +1 -0
  380. package/components/side-navigation-menu-bar/context.js +6 -0
  381. package/components/side-navigation-menu-bar/context.js.map +1 -0
  382. package/components/side-navigation-menu-bar/styles.js +89 -0
  383. package/components/side-navigation-menu-bar/styles.js.map +1 -0
  384. package/components/side-navigation-menu-bar/types.d.ts +65 -0
  385. package/components/side-navigation-menu-bar/types.js +22 -0
  386. package/components/side-navigation-menu-bar/types.js.map +1 -0
  387. package/components/side-navigation-menu-bar/useSideNavigationMenuBar.d.ts +9 -0
  388. package/components/side-navigation-menu-bar/useSideNavigationMenuBar.js +70 -0
  389. package/components/side-navigation-menu-bar/useSideNavigationMenuBar.js.map +1 -0
  390. package/components/side-navigation-menu-item/SideNavigationMenuItem.d.ts +9 -0
  391. package/components/side-navigation-menu-item/SideNavigationMenuItem.js +115 -0
  392. package/components/side-navigation-menu-item/SideNavigationMenuItem.js.map +1 -0
  393. package/components/side-navigation-menu-item/styles.js +174 -0
  394. package/components/side-navigation-menu-item/styles.js.map +1 -0
  395. package/components/side-navigation-menu-item/types.d.ts +51 -0
  396. package/components/skeleton/Skeleton.d.ts +15 -0
  397. package/components/skeleton/Skeleton.js +42 -0
  398. package/components/skeleton/Skeleton.js.map +1 -0
  399. package/components/skeleton/styles.js +84 -0
  400. package/components/skeleton/styles.js.map +1 -0
  401. package/components/skeleton/types.d.ts +18 -0
  402. package/components/skeleton-circle/SkeletonCircle.d.ts +9 -0
  403. package/components/skeleton-circle/SkeletonCircle.js +36 -0
  404. package/components/skeleton-circle/SkeletonCircle.js.map +1 -0
  405. package/components/skeleton-circle/styles.js +26 -0
  406. package/components/skeleton-circle/styles.js.map +1 -0
  407. package/components/skeleton-circle/types.d.ts +12 -0
  408. package/components/skeleton-text/SkeletonText.d.ts +9 -0
  409. package/components/skeleton-text/SkeletonText.js +42 -0
  410. package/components/skeleton-text/SkeletonText.js.map +1 -0
  411. package/components/skeleton-text/styles.js +39 -0
  412. package/components/skeleton-text/styles.js.map +1 -0
  413. package/components/skeleton-text/types.d.ts +36 -0
  414. package/components/skeleton-text/types.js +20 -0
  415. package/components/skeleton-text/types.js.map +1 -0
  416. package/components/spinner/Spinner.d.ts +9 -0
  417. package/components/spinner/Spinner.js +82 -0
  418. package/components/spinner/Spinner.js.map +1 -0
  419. package/components/spinner/images/spinner-grey-l1.svg.js +4 -0
  420. package/components/spinner/images/spinner-grey-l1.svg.js.map +1 -0
  421. package/components/spinner/images/spinner-grey-l2.svg.js +4 -0
  422. package/components/spinner/images/spinner-grey-l2.svg.js.map +1 -0
  423. package/components/spinner/images/spinner-grey-l3.svg.js +4 -0
  424. package/components/spinner/images/spinner-grey-l3.svg.js.map +1 -0
  425. package/components/spinner/images/spinner-primary-n.svg.js +4 -0
  426. package/components/spinner/images/spinner-primary-n.svg.js.map +1 -0
  427. package/components/spinner/intl/en-US.json.js +7 -0
  428. package/components/spinner/intl/en-US.json.js.map +1 -0
  429. package/components/spinner/intl/fr-FR.json.js +7 -0
  430. package/components/spinner/intl/fr-FR.json.js.map +1 -0
  431. package/components/spinner/intl/index.js +10 -0
  432. package/components/spinner/intl/index.js.map +1 -0
  433. package/components/spinner/styles.js +13 -0
  434. package/components/spinner/styles.js.map +1 -0
  435. package/components/spinner/types.d.ts +38 -0
  436. package/components/spinner/types.js +16 -0
  437. package/components/spinner/types.js.map +1 -0
  438. package/components/switch/Switch.d.ts +11 -0
  439. package/components/switch/Switch.js +137 -0
  440. package/components/switch/Switch.js.map +1 -0
  441. package/components/switch/styles.js +187 -0
  442. package/components/switch/styles.js.map +1 -0
  443. package/components/switch/types.d.ts +58 -0
  444. package/components/switch-group/SwitchGroup.d.ts +10 -0
  445. package/components/switch-group/SwitchGroup.js +101 -0
  446. package/components/switch-group/SwitchGroup.js.map +1 -0
  447. package/components/switch-group/context.js +6 -0
  448. package/components/switch-group/context.js.map +1 -0
  449. package/components/switch-group/styles.js +78 -0
  450. package/components/switch-group/styles.js.map +1 -0
  451. package/components/switch-group/types.d.ts +72 -0
  452. package/components/switch-group/types.js +18 -0
  453. package/components/switch-group/types.js.map +1 -0
  454. package/components/text/Text.d.ts +9 -0
  455. package/components/text/Text.js +51 -0
  456. package/components/text/Text.js.map +1 -0
  457. package/components/text/styles.js +112 -0
  458. package/components/text/styles.js.map +1 -0
  459. package/components/text/types.d.ts +73 -0
  460. package/components/text/types.js +34 -0
  461. package/components/text/types.js.map +1 -0
  462. package/components/text-area/TextArea.d.ts +10 -0
  463. package/components/text-area/TextArea.js +165 -0
  464. package/components/text-area/TextArea.js.map +1 -0
  465. package/components/text-area/styles.js +240 -0
  466. package/components/text-area/styles.js.map +1 -0
  467. package/components/text-area/types.d.ts +28 -0
  468. package/components/text-area/types.js +14 -0
  469. package/components/text-area/types.js.map +1 -0
  470. package/components/text-field/TextField.d.ts +10 -0
  471. package/components/text-field/TextField.js +197 -0
  472. package/components/text-field/TextField.js.map +1 -0
  473. package/components/text-field/intl/en-US.json.js +8 -0
  474. package/components/text-field/intl/en-US.json.js.map +1 -0
  475. package/components/text-field/intl/fr-FR.json.js +8 -0
  476. package/components/text-field/intl/fr-FR.json.js.map +1 -0
  477. package/components/text-field/intl/index.js +10 -0
  478. package/components/text-field/intl/index.js.map +1 -0
  479. package/components/text-field/styles.d.ts +22 -0
  480. package/components/text-field/styles.js +252 -0
  481. package/components/text-field/styles.js.map +1 -0
  482. package/components/text-field/types.d.ts +99 -0
  483. package/components/text-field/types.js +18 -0
  484. package/components/text-field/types.js.map +1 -0
  485. package/components/theme/context.d.ts +11 -0
  486. package/components/theme/context.js +7 -0
  487. package/components/theme/context.js.map +1 -0
  488. package/components/theme/useTheme.d.ts +5 -0
  489. package/components/theme/useTheme.js +13 -0
  490. package/components/theme/useTheme.js.map +1 -0
  491. package/hooks/useBoundingRect.d.ts +8 -0
  492. package/hooks/useBoundingRect.js +17 -0
  493. package/hooks/useBoundingRect.js.map +1 -0
  494. package/hooks/useComputeNumberOfRows.d.ts +15 -0
  495. package/hooks/useComputeNumberOfRows.js +40 -0
  496. package/hooks/useComputeNumberOfRows.js.map +1 -0
  497. package/hooks/useIsLoaded.d.ts +5 -0
  498. package/hooks/useIsLoaded.js +14 -0
  499. package/hooks/useIsLoaded.js.map +1 -0
  500. package/hooks/useWindowSize.d.ts +8 -0
  501. package/hooks/useWindowSize.js +42 -0
  502. package/hooks/useWindowSize.js.map +1 -0
  503. package/index.d.ts +157 -4667
  504. package/index.js +121 -24514
  505. package/index.js.map +1 -1
  506. package/package.json +11 -3
  507. package/packages/popovers/src/components/tooltip/Tooltip.js +62 -0
  508. package/packages/popovers/src/components/tooltip/Tooltip.js.map +1 -0
  509. package/packages/popovers/src/components/tooltip/context.js +6 -0
  510. package/packages/popovers/src/components/tooltip/context.js.map +1 -0
  511. package/packages/popovers/src/components/tooltip/types.js +28 -0
  512. package/packages/popovers/src/components/tooltip/types.js.map +1 -0
  513. package/packages/popovers/src/components/tooltip/useTooltip.js +78 -0
  514. package/packages/popovers/src/components/tooltip/useTooltip.js.map +1 -0
  515. package/packages/popovers/src/components/tooltip/useTooltipContext.js +13 -0
  516. package/packages/popovers/src/components/tooltip/useTooltipContext.js.map +1 -0
  517. package/packages/popovers/src/components/tooltip-content/TooltipContent.js +80 -0
  518. package/packages/popovers/src/components/tooltip-content/TooltipContent.js.map +1 -0
  519. package/packages/popovers/src/components/tooltip-content/styles.js +128 -0
  520. package/packages/popovers/src/components/tooltip-content/styles.js.map +1 -0
  521. package/packages/popovers/src/components/tooltip-trigger/TooltipTrigger.js +47 -0
  522. package/packages/popovers/src/components/tooltip-trigger/TooltipTrigger.js.map +1 -0
  523. package/react-aria/internationalized/date/DateFormatter.d.ts +25 -0
  524. package/react-aria/internationalized/date/DateFormatter.js +187 -0
  525. package/react-aria/internationalized/date/DateFormatter.js.map +1 -0
  526. package/react-aria/internationalized/message/MessageDictionary.d.ts +7 -0
  527. package/react-aria/internationalized/message/MessageDictionary.js +82 -0
  528. package/react-aria/internationalized/message/MessageDictionary.js.map +1 -0
  529. package/react-aria/internationalized/message/MessageFormatter.js +38 -0
  530. package/react-aria/internationalized/message/MessageFormatter.js.map +1 -0
  531. package/react-aria/internationalized/number/NumberFormatter.d.ts +6 -0
  532. package/react-aria/internationalized/number/NumberFormatter.js +222 -0
  533. package/react-aria/internationalized/number/NumberFormatter.js.map +1 -0
  534. package/react-aria/internationalized/number/NumberParser.js +288 -0
  535. package/react-aria/internationalized/number/NumberParser.js.map +1 -0
  536. package/react-aria/internationalized/string/LocalizedStringDictionary.d.ts +21 -0
  537. package/react-aria/internationalized/string/LocalizedStringDictionary.js +118 -0
  538. package/react-aria/internationalized/string/LocalizedStringDictionary.js.map +1 -0
  539. package/react-aria/internationalized/string/LocalizedStringFormatter.d.ts +21 -0
  540. package/react-aria/internationalized/string/LocalizedStringFormatter.js +70 -0
  541. package/react-aria/internationalized/string/LocalizedStringFormatter.js.map +1 -0
  542. package/react-aria/react-aria/button/useButton.js +95 -0
  543. package/react-aria/react-aria/button/useButton.js.map +1 -0
  544. package/react-aria/react-aria/focus/focusSafely.js +33 -0
  545. package/react-aria/react-aria/focus/focusSafely.js.map +1 -0
  546. package/react-aria/react-aria/focus/useFocusRing.js +57 -0
  547. package/react-aria/react-aria/focus/useFocusRing.js.map +1 -0
  548. package/react-aria/react-aria/focus/useFocusable.js +47 -0
  549. package/react-aria/react-aria/focus/useFocusable.js.map +1 -0
  550. package/react-aria/react-aria/form/useFormValidation.js +112 -0
  551. package/react-aria/react-aria/form/useFormValidation.js.map +1 -0
  552. package/react-aria/react-aria/i18n/context.d.ts +19 -0
  553. package/react-aria/react-aria/i18n/context.js +41 -0
  554. package/react-aria/react-aria/i18n/context.js.map +1 -0
  555. package/react-aria/react-aria/i18n/useCollator.d.ts +8 -0
  556. package/react-aria/react-aria/i18n/useCollator.js +25 -0
  557. package/react-aria/react-aria/i18n/useCollator.js.map +1 -0
  558. package/react-aria/react-aria/i18n/useDateFormatter.d.ts +13 -0
  559. package/react-aria/react-aria/i18n/useDateFormatter.js +39 -0
  560. package/react-aria/react-aria/i18n/useDateFormatter.js.map +1 -0
  561. package/react-aria/react-aria/i18n/useDefaultLocale.d.ts +10 -0
  562. package/react-aria/react-aria/i18n/useDefaultLocale.js +67 -0
  563. package/react-aria/react-aria/i18n/useDefaultLocale.js.map +1 -0
  564. package/react-aria/react-aria/i18n/useFilter.d.ts +15 -0
  565. package/react-aria/react-aria/i18n/useFilter.js +58 -0
  566. package/react-aria/react-aria/i18n/useFilter.js.map +1 -0
  567. package/react-aria/react-aria/i18n/useListFormatter.d.ts +8 -0
  568. package/react-aria/react-aria/i18n/useListFormatter.js +20 -0
  569. package/react-aria/react-aria/i18n/useListFormatter.js.map +1 -0
  570. package/react-aria/react-aria/i18n/useLocalizedStringFormatter.d.ts +15 -0
  571. package/react-aria/react-aria/i18n/useLocalizedStringFormatter.js +38 -0
  572. package/react-aria/react-aria/i18n/useLocalizedStringFormatter.js.map +1 -0
  573. package/react-aria/react-aria/i18n/useMessageFormatter.d.ts +13 -0
  574. package/react-aria/react-aria/i18n/useMessageFormatter.js +32 -0
  575. package/react-aria/react-aria/i18n/useMessageFormatter.js.map +1 -0
  576. package/react-aria/react-aria/i18n/useNumberFormatter.d.ts +10 -0
  577. package/react-aria/react-aria/i18n/useNumberFormatter.js +21 -0
  578. package/react-aria/react-aria/i18n/useNumberFormatter.js.map +1 -0
  579. package/react-aria/react-aria/i18n/utils.js +49 -0
  580. package/react-aria/react-aria/i18n/utils.js.map +1 -0
  581. package/react-aria/react-aria/interactions/context.js +20 -0
  582. package/react-aria/react-aria/interactions/context.js.map +1 -0
  583. package/react-aria/react-aria/interactions/createEventHandler.js +48 -0
  584. package/react-aria/react-aria/interactions/createEventHandler.js.map +1 -0
  585. package/react-aria/react-aria/interactions/textSelection.js +85 -0
  586. package/react-aria/react-aria/interactions/textSelection.js.map +1 -0
  587. package/react-aria/react-aria/interactions/useFocus.js +53 -0
  588. package/react-aria/react-aria/interactions/useFocus.js.map +1 -0
  589. package/react-aria/react-aria/interactions/useFocusVisible.js +236 -0
  590. package/react-aria/react-aria/interactions/useFocusVisible.js.map +1 -0
  591. package/react-aria/react-aria/interactions/useFocusWithin.js +65 -0
  592. package/react-aria/react-aria/interactions/useFocusWithin.js.map +1 -0
  593. package/react-aria/react-aria/interactions/useKeyboard.js +27 -0
  594. package/react-aria/react-aria/interactions/useKeyboard.js.map +1 -0
  595. package/react-aria/react-aria/interactions/usePress.js +769 -0
  596. package/react-aria/react-aria/interactions/usePress.js.map +1 -0
  597. package/react-aria/react-aria/interactions/useScrollWheel.js +31 -0
  598. package/react-aria/react-aria/interactions/useScrollWheel.js.map +1 -0
  599. package/react-aria/react-aria/interactions/utils.js +116 -0
  600. package/react-aria/react-aria/interactions/utils.js.map +1 -0
  601. package/react-aria/react-aria/label/useField.js +42 -0
  602. package/react-aria/react-aria/label/useField.js.map +1 -0
  603. package/react-aria/react-aria/label/useLabel.js +42 -0
  604. package/react-aria/react-aria/label/useLabel.js.map +1 -0
  605. package/react-aria/react-aria/live-announcer/LiveAnnouncer.js +121 -0
  606. package/react-aria/react-aria/live-announcer/LiveAnnouncer.js.map +1 -0
  607. package/react-aria/react-aria/numberfield/intl/en-US.json.js +11 -0
  608. package/react-aria/react-aria/numberfield/intl/en-US.json.js.map +1 -0
  609. package/react-aria/react-aria/numberfield/intl/fr-FR.json.js +11 -0
  610. package/react-aria/react-aria/numberfield/intl/fr-FR.json.js.map +1 -0
  611. package/react-aria/react-aria/numberfield/intl/index.js +10 -0
  612. package/react-aria/react-aria/numberfield/intl/index.js.map +1 -0
  613. package/react-aria/react-aria/numberfield/useNumberField.js +294 -0
  614. package/react-aria/react-aria/numberfield/useNumberField.js.map +1 -0
  615. package/react-aria/react-aria/spinbutton/intl/en-US.json.js +7 -0
  616. package/react-aria/react-aria/spinbutton/intl/en-US.json.js.map +1 -0
  617. package/react-aria/react-aria/spinbutton/intl/fr-FR.json.js +7 -0
  618. package/react-aria/react-aria/spinbutton/intl/fr-FR.json.js.map +1 -0
  619. package/react-aria/react-aria/spinbutton/intl/index.js +10 -0
  620. package/react-aria/react-aria/spinbutton/intl/index.js.map +1 -0
  621. package/react-aria/react-aria/spinbutton/useSpinButton.js +168 -0
  622. package/react-aria/react-aria/spinbutton/useSpinButton.js.map +1 -0
  623. package/react-aria/react-aria/ssr/SSRProvider.d.ts +22 -0
  624. package/react-aria/react-aria/ssr/SSRProvider.js +157 -0
  625. package/react-aria/react-aria/ssr/SSRProvider.js.map +1 -0
  626. package/react-aria/react-aria/textfield/useFormattedTextField.js +142 -0
  627. package/react-aria/react-aria/textfield/useFormattedTextField.js.map +1 -0
  628. package/react-aria/react-aria/textfield/useTextField.js +156 -0
  629. package/react-aria/react-aria/textfield/useTextField.js.map +1 -0
  630. package/react-aria/react-aria/utils/chain.js +33 -0
  631. package/react-aria/react-aria/utils/chain.js.map +1 -0
  632. package/react-aria/react-aria/utils/domHelpers.js +14 -0
  633. package/react-aria/react-aria/utils/domHelpers.js.map +1 -0
  634. package/react-aria/react-aria/utils/filterDOMProps.js +45 -0
  635. package/react-aria/react-aria/utils/filterDOMProps.js.map +1 -0
  636. package/react-aria/react-aria/utils/focusWithoutScrolling.js +88 -0
  637. package/react-aria/react-aria/utils/focusWithoutScrolling.js.map +1 -0
  638. package/react-aria/react-aria/utils/isVirtualEvent.js +51 -0
  639. package/react-aria/react-aria/utils/isVirtualEvent.js.map +1 -0
  640. package/react-aria/react-aria/utils/mergeProps.js +48 -0
  641. package/react-aria/react-aria/utils/mergeProps.js.map +1 -0
  642. package/react-aria/react-aria/utils/openLink.js +55 -0
  643. package/react-aria/react-aria/utils/openLink.js.map +1 -0
  644. package/react-aria/react-aria/utils/platform.js +69 -0
  645. package/react-aria/react-aria/utils/platform.js.map +1 -0
  646. package/react-aria/react-aria/utils/runAfterTransition.js +100 -0
  647. package/react-aria/react-aria/utils/runAfterTransition.js.map +1 -0
  648. package/react-aria/react-aria/utils/useDeepMemo.js +16 -0
  649. package/react-aria/react-aria/utils/useDeepMemo.js.map +1 -0
  650. package/react-aria/react-aria/utils/useEffectEvent.js +31 -0
  651. package/react-aria/react-aria/utils/useEffectEvent.js.map +1 -0
  652. package/react-aria/react-aria/utils/useEvent.js +21 -0
  653. package/react-aria/react-aria/utils/useEvent.js.map +1 -0
  654. package/react-aria/react-aria/utils/useFormReset.js +23 -0
  655. package/react-aria/react-aria/utils/useFormReset.js.map +1 -0
  656. package/react-aria/react-aria/utils/useGlobalListeners.js +44 -0
  657. package/react-aria/react-aria/utils/useGlobalListeners.js.map +1 -0
  658. package/react-aria/react-aria/utils/useId.js +86 -0
  659. package/react-aria/react-aria/utils/useId.js.map +1 -0
  660. package/react-aria/react-aria/utils/useLabels.js +39 -0
  661. package/react-aria/react-aria/utils/useLabels.js.map +1 -0
  662. package/react-aria/react-aria/utils/useLayoutEffect.js +21 -0
  663. package/react-aria/react-aria/utils/useLayoutEffect.js.map +1 -0
  664. package/react-aria/react-aria/utils/useSyncRef.js +29 -0
  665. package/react-aria/react-aria/utils/useSyncRef.js.map +1 -0
  666. package/react-aria/react-aria/utils/useValueEffect.js +52 -0
  667. package/react-aria/react-aria/utils/useValueEffect.js.map +1 -0
  668. package/react-aria/react-stately/form/useFormValidationState.js +191 -0
  669. package/react-aria/react-stately/form/useFormValidationState.js.map +1 -0
  670. package/react-aria/react-stately/numberfield/useNumberFieldState.js +196 -0
  671. package/react-aria/react-stately/numberfield/useNumberFieldState.js.map +1 -0
  672. package/react-aria/react-stately/utils/number.js +56 -0
  673. package/react-aria/react-stately/utils/number.js.map +1 -0
  674. package/react-aria/react-stately/utils/useControlledState.js +68 -0
  675. package/react-aria/react-stately/utils/useControlledState.js.map +1 -0
  676. package/react-aria/react-types/shared/locale.d.ts +3 -0
  677. package/types/colors.d.ts +102 -0
  678. package/types/colors.js +64 -0
  679. package/types/colors.js.map +1 -0
  680. package/types/fonts.d.ts +12 -0
  681. package/types/fonts.js +10 -0
  682. package/types/fonts.js.map +1 -0
  683. package/types/helpers.d.ts +23 -0
  684. package/types/products.d.ts +40 -0
  685. package/types/products.js +38 -0
  686. package/types/products.js.map +1 -0
  687. package/types/styles.d.ts +283 -0
  688. package/types/styles.js +161 -0
  689. package/types/styles.js.map +1 -0
  690. package/utils/filterComponents.d.ts +12 -0
  691. package/utils/filterComponents.js +24 -0
  692. package/utils/filterComponents.js.map +1 -0
  693. package/utils/getTextWidth.d.ts +6 -0
  694. package/utils/getTextWidth.js +32 -0
  695. package/utils/getTextWidth.js.map +1 -0
  696. package/utils/isComponent.d.ts +12 -0
  697. package/utils/isComponent.js +15 -0
  698. package/utils/isComponent.js.map +1 -0
  699. package/utils/partitionComponents.d.ts +10 -0
  700. package/utils/partitionComponents.js +26 -0
  701. package/utils/partitionComponents.js.map +1 -0
  702. package/utils/redsift-design-tokens.d.ts +1389 -0
  703. package/utils/redsift-design-tokens.js +1391 -0
  704. package/utils/redsift-design-tokens.js.map +1 -0
  705. package/utils/useId.d.ts +6 -0
  706. package/utils/useId.js +42 -0
  707. package/utils/useId.js.map +1 -0
  708. package/utils/warnIfNoAccessibleLabelFound.d.ts +11 -0
  709. package/utils/warnIfNoAccessibleLabelFound.js +20 -0
  710. package/utils/warnIfNoAccessibleLabelFound.js.map +1 -0
@@ -0,0 +1,90 @@
1
+ import { useContext, useCallback, useEffect } from 'react';
2
+ import { ListboxContext } from './context.js';
3
+ import { ListboxActionType } from './types.js';
4
+ import { useFocusOnListItem } from '../focus-within-group/useFocusOnListItem.js';
5
+
6
+ function useListboxItem(props) {
7
+ var _context$state, _context$state$select;
8
+ const {
9
+ domElementRef,
10
+ value,
11
+ id,
12
+ isDisabled,
13
+ propsIsSelected
14
+ } = props;
15
+ const {
16
+ tabIndex,
17
+ isFocused,
18
+ handleKeyDown: handleFocusKeyDown,
19
+ handleClick: handleFocusClick
20
+ } = useFocusOnListItem({
21
+ domElementRef,
22
+ isDisabled: isDisabled,
23
+ id,
24
+ value
25
+ });
26
+ const context = useContext(ListboxContext);
27
+ const handleKeyDown = useCallback(event => {
28
+ handleFocusKeyDown(event);
29
+ const code = event.code;
30
+ if (code === 'Enter' || code === 'Space') {
31
+ if (context.state.selectionMode === 'multiple') {
32
+ context.dispatch({
33
+ type: ListboxActionType.TOGGLE,
34
+ payload: {
35
+ value,
36
+ activedescendant: [id, value]
37
+ }
38
+ });
39
+ } else {
40
+ context.dispatch({
41
+ type: ListboxActionType.SET,
42
+ payload: {
43
+ values: [value],
44
+ activedescendant: [id, value]
45
+ }
46
+ });
47
+ }
48
+ }
49
+ }, []);
50
+ const handleClick = useCallback(() => {
51
+ handleFocusClick();
52
+ if (context.state.selectionMode === 'multiple') {
53
+ if (value) {
54
+ context.dispatch({
55
+ type: ListboxActionType.TOGGLE,
56
+ payload: {
57
+ value,
58
+ activedescendant: [id, value]
59
+ }
60
+ });
61
+ }
62
+ } else {
63
+ context.dispatch({
64
+ type: ListboxActionType.SET,
65
+ payload: {
66
+ values: [value],
67
+ activedescendant: [id, value]
68
+ }
69
+ });
70
+ }
71
+ }, [value]);
72
+ const isSelected = propsIsSelected !== null && propsIsSelected !== void 0 ? propsIsSelected : (context === null || context === void 0 ? void 0 : (_context$state = context.state) === null || _context$state === void 0 ? void 0 : (_context$state$select = _context$state.selectedValues) === null || _context$state$select === void 0 ? void 0 : _context$state$select.find(selectedValue => selectedValue === value)) !== undefined;
73
+ useEffect(() => {
74
+ if (isFocused && domElementRef.current) {
75
+ var _current;
76
+ (_current = domElementRef.current) === null || _current === void 0 ? void 0 : _current.focus();
77
+ }
78
+ }, [isFocused]);
79
+ return {
80
+ tabIndex,
81
+ isFocused,
82
+ isSelected,
83
+ isDisabled,
84
+ handleKeyDown,
85
+ handleClick
86
+ };
87
+ }
88
+
89
+ export { useListboxItem };
90
+ //# sourceMappingURL=useListboxItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useListboxItem.js","sources":["../../../src/components/listbox/useListboxItem.ts"],"sourcesContent":["import { useCallback, useContext, useEffect, RefObject, KeyboardEvent } from 'react';\nimport { ListboxContext } from './context';\nimport { ListboxActionType, UseListboxItemProps } from './types';\nimport { useFocusOnListItem } from '../focus-within-group';\n\nexport function useListboxItem(props: {\n domElementRef: RefObject<Element>;\n value: string;\n id?: string;\n isDisabled?: boolean;\n propsIsSelected?: boolean;\n}): UseListboxItemProps {\n const { domElementRef, value, id, isDisabled, propsIsSelected } = props;\n\n const {\n tabIndex,\n isFocused,\n handleKeyDown: handleFocusKeyDown,\n handleClick: handleFocusClick,\n } = useFocusOnListItem({ domElementRef, isDisabled: isDisabled!, id, value });\n\n const context = useContext(ListboxContext);\n\n const handleKeyDown = useCallback((event: KeyboardEvent) => {\n handleFocusKeyDown(event);\n const code = event.code;\n if (code === 'Enter' || code === 'Space') {\n if (context.state.selectionMode === 'multiple') {\n context.dispatch({\n type: ListboxActionType.TOGGLE,\n payload: { value, activedescendant: [id!, value] },\n });\n } else {\n context.dispatch({\n type: ListboxActionType.SET,\n payload: {\n values: [value],\n activedescendant: [id!, value],\n },\n });\n }\n }\n }, []);\n\n const handleClick = useCallback(() => {\n handleFocusClick();\n if (context.state.selectionMode === 'multiple') {\n if (value) {\n context.dispatch({\n type: ListboxActionType.TOGGLE,\n payload: { value, activedescendant: [id!, value] },\n });\n }\n } else {\n context.dispatch({\n type: ListboxActionType.SET,\n payload: {\n values: [value],\n activedescendant: [id!, value],\n },\n });\n }\n }, [value]);\n\n const isSelected =\n propsIsSelected ?? context?.state?.selectedValues?.find((selectedValue) => selectedValue === value) !== undefined;\n\n useEffect(() => {\n if (isFocused && domElementRef.current) {\n (domElementRef as RefObject<SVGElement | HTMLElement>).current?.focus();\n }\n }, [isFocused]);\n\n return {\n tabIndex,\n isFocused,\n isSelected,\n isDisabled,\n handleKeyDown,\n handleClick,\n };\n}\n"],"names":["useListboxItem","props","_context$state","_context$state$select","domElementRef","value","id","isDisabled","propsIsSelected","tabIndex","isFocused","handleKeyDown","handleFocusKeyDown","handleClick","handleFocusClick","useFocusOnListItem","context","useContext","ListboxContext","useCallback","event","code","state","selectionMode","dispatch","type","ListboxActionType","TOGGLE","payload","activedescendant","SET","values","isSelected","selectedValues","find","selectedValue","undefined","useEffect","current","_current","focus"],"mappings":";;;;;AAKO,SAASA,cAAcA,CAACC,KAM9B,EAAuB;EAAA,IAAAC,cAAA,EAAAC,qBAAA,CAAA;EACtB,MAAM;IAAEC,aAAa;IAAEC,KAAK;IAAEC,EAAE;IAAEC,UAAU;AAAEC,IAAAA,eAAAA;AAAgB,GAAC,GAAGP,KAAK,CAAA;EAEvE,MAAM;IACJQ,QAAQ;IACRC,SAAS;AACTC,IAAAA,aAAa,EAAEC,kBAAkB;AACjCC,IAAAA,WAAW,EAAEC,gBAAAA;GACd,GAAGC,kBAAkB,CAAC;IAAEX,aAAa;AAAEG,IAAAA,UAAU,EAAEA,UAAW;IAAED,EAAE;AAAED,IAAAA,KAAAA;AAAM,GAAC,C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;IACTsB,UAAU;IACVzB,UAAU;IACVI,aAAa;AACbE,IAAAA,WAAAA;GACD,CAAA;AACH;;;;"}
@@ -0,0 +1,9 @@
1
+ import { NumberProps } from './types.js';
2
+ import { Comp } from '../../types/helpers.js';
3
+
4
+ /**
5
+ * The Number component.
6
+ */
7
+ declare const Number: Comp<NumberProps, HTMLDivElement>;
8
+
9
+ export { Number };
@@ -0,0 +1,105 @@
1
+ import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
+ import React__default, { forwardRef } from 'react';
3
+ import classNames from 'classnames';
4
+ import { StyledNumber } from './styles.js';
5
+ import { useNumberFormatter } from '../../react-aria/react-aria/i18n/useNumberFormatter.js';
6
+ import { useTheme } from '../theme/useTheme.js';
7
+
8
+ const _excluded = ["as", "className", "color", "compactDisplay", "currency", "currencyDisplay", "currencySign", "fontSize", "fontFamily", "fontWeight", "lineHeight", "localeMatcher", "maximumFractionDigits", "maximumSignificantDigits", "minimumFractionDigits", "minimumIntegerDigits", "minimumSignificantDigits", "notation", "noWrap", "numberingSystem", "roundingIncrement", "roundingMode", "roundingPriority", "signDisplay", "theme", "trailingZeroDisplay", "type", "unit", "unitDisplay", "useGrouping", "value", "variant"];
9
+ const COMPONENT_NAME = 'Number';
10
+ const CLASSNAME = 'redsift-number';
11
+
12
+ /**
13
+ * The Number component.
14
+ */
15
+ const Number = /*#__PURE__*/forwardRef((props, ref) => {
16
+ const {
17
+ as,
18
+ className,
19
+ color,
20
+ compactDisplay = 'short',
21
+ currency,
22
+ currencyDisplay = 'symbol',
23
+ currencySign = 'standard',
24
+ fontSize,
25
+ fontFamily,
26
+ fontWeight,
27
+ lineHeight,
28
+ localeMatcher = 'best fit',
29
+ maximumFractionDigits,
30
+ maximumSignificantDigits,
31
+ minimumFractionDigits,
32
+ minimumIntegerDigits,
33
+ minimumSignificantDigits,
34
+ notation = 'standard',
35
+ noWrap,
36
+ numberingSystem,
37
+ roundingIncrement,
38
+ roundingMode = 'halfExpand',
39
+ roundingPriority = 'auto',
40
+ signDisplay = 'auto',
41
+ theme: propsTheme,
42
+ trailingZeroDisplay = 'auto',
43
+ type = 'decimal',
44
+ unit,
45
+ unitDisplay = 'short',
46
+ useGrouping,
47
+ value,
48
+ variant
49
+ } = props,
50
+ forwardedProps = _objectWithoutProperties(props, _excluded);
51
+ const formatter = useNumberFormatter(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
52
+ compactDisplay,
53
+ currency,
54
+ currencyDisplay,
55
+ currencySign,
56
+ localeMatcher
57
+ }, maximumFractionDigits !== undefined && {
58
+ maximumFractionDigits
59
+ }), maximumSignificantDigits !== undefined && {
60
+ maximumSignificantDigits
61
+ }), minimumFractionDigits !== undefined && {
62
+ minimumFractionDigits
63
+ }), minimumIntegerDigits !== undefined && {
64
+ minimumIntegerDigits
65
+ }), minimumSignificantDigits !== undefined && {
66
+ minimumSignificantDigits
67
+ }), {}, {
68
+ notation,
69
+ numberingSystem,
70
+ // @ts-ignore
71
+ roundingIncrement,
72
+ // @ts-ignore
73
+ roundingMode,
74
+ // @ts-ignore
75
+ roundingPriority,
76
+ signDisplay,
77
+ style: type,
78
+ // @ts-ignore
79
+ trailingZeroDisplay,
80
+ unit,
81
+ unitDisplay,
82
+ useGrouping
83
+ }));
84
+ const theme = useTheme(propsTheme);
85
+ return /*#__PURE__*/React__default.createElement(StyledNumber, _extends({
86
+ as: as
87
+ }, forwardedProps, {
88
+ $as: as,
89
+ className: classNames(Number.className, className),
90
+ ref: ref,
91
+ $color: color,
92
+ $lineHeight: lineHeight,
93
+ $fontSize: fontSize,
94
+ $fontFamily: fontFamily,
95
+ $fontWeight: fontWeight,
96
+ $noWrap: noWrap,
97
+ $theme: theme,
98
+ $variant: variant
99
+ }), formatter.format(value));
100
+ });
101
+ Number.className = CLASSNAME;
102
+ Number.displayName = COMPONENT_NAME;
103
+
104
+ export { Number };
105
+ //# sourceMappingURL=Number.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Number.js","sources":["../../../src/components/number/Number.tsx"],"sourcesContent":["import React, { forwardRef, RefObject } from 'react';\nimport { useNumberFormatter } from '../../react-aria/react-aria/i18n';\nimport classNames from 'classnames';\nimport { Comp } from '../../types';\nimport { StyledNumber } from './styles';\nimport { NumberProps } from './types';\nimport { useTheme } from '../theme';\n\nconst COMPONENT_NAME = 'Number';\nconst CLASSNAME = 'redsift-number';\n\n/**\n * The Number component.\n */\nexport const Number: Comp<NumberProps, HTMLDivElement> = forwardRef((props, ref) => {\n const {\n as,\n className,\n color,\n compactDisplay = 'short',\n currency,\n currencyDisplay = 'symbol',\n currencySign = 'standard',\n fontSize,\n fontFamily,\n fontWeight,\n lineHeight,\n localeMatcher = 'best fit',\n maximumFractionDigits,\n maximumSignificantDigits,\n minimumFractionDigits,\n minimumIntegerDigits,\n minimumSignificantDigits,\n notation = 'standard',\n noWrap,\n numberingSystem,\n roundingIncrement,\n roundingMode = 'halfExpand',\n roundingPriority = 'auto',\n signDisplay = 'auto',\n theme: propsTheme,\n trailingZeroDisplay = 'auto',\n type = 'decimal',\n unit,\n unitDisplay = 'short',\n useGrouping,\n value,\n variant,\n ...forwardedProps\n } = props;\n const formatter = useNumberFormatter({\n compactDisplay,\n currency,\n currencyDisplay,\n currencySign,\n localeMatcher,\n ...(maximumFractionDigits !== undefined && { maximumFractionDigits }),\n ...(maximumSignificantDigits !== undefined && {\n maximumSignificantDigits,\n }),\n ...(minimumFractionDigits !== undefined && { minimumFractionDigits }),\n ...(minimumIntegerDigits !== undefined && { minimumIntegerDigits }),\n ...(minimumSignificantDigits !== undefined && {\n minimumSignificantDigits,\n }),\n notation,\n numberingSystem,\n // @ts-ignore\n roundingIncrement,\n // @ts-ignore\n roundingMode,\n // @ts-ignore\n roundingPriority,\n signDisplay,\n style: type,\n // @ts-ignore\n trailingZeroDisplay,\n unit,\n unitDisplay,\n useGrouping,\n });\n\n const theme = useTheme(propsTheme);\n\n return (\n <StyledNumber\n as={as}\n {...forwardedProps}\n $as={as}\n className={classNames(Number.className, className)}\n ref={ref as RefObject<HTMLDivElement>}\n $color={color}\n $lineHeight={lineHeight}\n $fontSize={fontSize}\n $fontFamily={fontFamily}\n $fontWeight={fontWeight}\n $noWrap={noWrap}\n $theme={theme}\n $variant={variant}\n >\n {formatter.format(value)}\n </StyledNumber>\n );\n});\nNumber.className = CLASSNAME;\nNumber.displayName = COMPONENT_NAME;\n"],"names":["COMPONENT_NAME","CLASSNAME","Number","forwardRef","props","ref","as","className","color","compactDisplay","currency","currencyDisplay","currencySign","fontSize","fontFamily","fontWeight","lineHeight","localeMatcher","maximumFractionDigits","maximumSignificantDigits","minimumFractionDigits","minimumIntegerDigits","minimumSignificantDigits","notation","noWrap","numberingSystem","roundingIncrement","roundingMode","roundingPriority","signDisplay","theme","propsTheme","trailingZeroDisplay","type","unit","unitDisplay","useGrouping","value","variant","forwardedProps","_objectWithoutProperties","_excluded","formatter","useNumberFormatter","_objectSpread","undefined","style","useTheme","React","createElement","StyledNumber","_extends","$as","classNames","$color","$lineHeight","$fontSize","$fontFamily","$fontWeight","$noWrap","$theme","$variant","format","displayName"],"mappings":";;;;;;;;AAQA,MAAMA,cAAc,GAAG,QAAQ,CAAA;AAC/B,MAAMC,SAAS,GAAG,gBAAgB,CAAA;;AAElC;AACA;AACA;AACO,MAAMC,MAAyC,gBAAGC,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAK;EAClF,MAAM;MACJC,EAAE;MACFC,SAAS;MACTC,KAAK;AACLC,MAAAA,cAAc,GAAG,OAAO;MACxBC,QAAQ;AACRC,MAAAA,eAAe,GAAG,QAAQ;AAC1BC,MAAAA,YAAY,GAAG,UAAU;MACzBC,QAAQ;MACRC,UAAU;MACVC,UAAU;MACVC,UAAU;AACVC,MAAAA,aAAa,GAAG,UAAU;MAC1BC,qBAAqB;MACrBC,wBAAwB;MACxBC,qBAAqB;MACrBC,oBAAoB;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IACAD,mBAAmB;IACnBE,IAAI;IACJC,WAAW;AACXC,IAAAA,WAAAA;AAAW,GAAA,CACZ,CAAC,CAAA;AAEF,EAAA,MAAMN,KAAK,GAAGiB,QAAQ,CAAChB,UAAU,CAAC,CAAA;AAElC,EAAA,oBACEiB,cAAA,CAAAC,aAAA,CAACC,YAAY,EAAAC,QAAA,CAAA;AACX7C,IAAAA,EAAE,EAAEA,EAAAA;AAAG,GAAA,EACHiC,cAAc,EAAA;AAClBa,IAAAA,GAAG,EAAE9C,EAAG;IACRC,SAAS,EAAE8C,UAAU,CAACnD,MAAM,CAACK,SAAS,EAAEA,SAAS,CAAE;AACnDF,IAAAA,GAAG,EAAEA,GAAiC;AACtCiD,IAAAA,MAAM,EAAE9C,KAAM;AACd+C,IAAAA,WAAW,EAAEvC,UAAW;AACxBwC,IAAAA,SAAS,EAAE3C,QAAS;AACpB4C,IAAAA,WAAW,EAAE3C,UAAW;AACxB4C,IAAAA,WAAW,EAAE3C,UAAW;AACxB4C,IAAAA,OAAO,EAAEnC,MAAO;AAChBoC,IAAAA,MAAM,EAAE9B,KAAM;AACd+B,IAAAA,QAAQ,EAAEvB,OAAAA;AAAQ,GAAA,CAAA,EAEjBI,SAAS,CAACoB,MAAM,CAACzB,KAAK,CACX,CAAC,CAAA;AAEnB,CAAC,EAAC;AACFnC,MAAM,CAACK,SAAS,GAAGN,SAAS,CAAA;AAC5BC,MAAM,CAAC6D,WAAW,GAAG/D,cAAc;;;;"}
@@ -0,0 +1,10 @@
1
+ import styled from 'styled-components';
2
+ import { StyledText } from '../text/styles.js';
3
+
4
+ /**
5
+ * Component style.
6
+ */
7
+ const StyledNumber = styled(StyledText)``;
8
+
9
+ export { StyledNumber };
10
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sources":["../../../src/components/number/styles.ts"],"sourcesContent":["import styled from 'styled-components';\nimport { StyledText } from '../text/styles';\nimport { StyledNumberProps } from './types';\n\n/**\n * Component style.\n */\nexport const StyledNumber = styled(StyledText)<StyledNumberProps>``;\n"],"names":["StyledNumber","styled","StyledText"],"mappings":";;;AAIA;AACA;AACA;MACaA,YAAY,GAAGC,MAAM,CAACC,UAAU,CAAqB,CAAC;;;;"}
@@ -0,0 +1,63 @@
1
+ import { TextProps } from '../text/types.js';
2
+
3
+ interface NumberFormatOptions {
4
+ }
5
+ /**
6
+ * Component props.
7
+ */
8
+ interface NumberProps extends TextProps {
9
+ /** Value. */
10
+ value: number;
11
+ /** The formatting style to use. */
12
+ type?: 'decimal' | 'currency' | 'percent' | 'unit';
13
+ /** Only used when notation is 'compact'. */
14
+ compactDisplay?: 'short' | 'long';
15
+ /** The currency to use in currency formatting. Possible values are the ISO 4217 currency codes, such as "USD" for the US dollar, "EUR" for the euro, or "CNY" for the Chinese RMB */
16
+ currency?: string;
17
+ /** How to display the currency in currency formatting. */
18
+ currencyDisplay?: 'symbol' | 'narrowSymbol' | 'code' | 'name';
19
+ /** In many locales, accounting format means to wrap the number with parentheses instead of appending a minus sign. */
20
+ currencySign?: 'standard' | 'accounting';
21
+ /** The locale matching algorithm to use. */
22
+ localeMatcher?: 'best fit' | 'lookup';
23
+ /** The formatting that should be displayed for the number. */
24
+ notation?: 'standard' | 'scientific' | 'engineering' | 'compact';
25
+ /** Overrides default numbering system for the current locale. */
26
+ numberingSystem?: string;
27
+ /** When to display the sign for the number. */
28
+ signDisplay?: 'auto' | 'always' | 'exceptZero' | 'never';
29
+ /** The unit to use in unit formatting. */
30
+ unit?: string;
31
+ /** The unit formatting style to use in unit formatting. */
32
+ unitDisplay?: 'long' | 'short' | 'narrow';
33
+ /** Whether to use grouping separators. */
34
+ useGrouping?: boolean;
35
+ /** Options for rounding modes. */
36
+ roundingMode?: 'ceil' | 'floor' | 'expand' | 'trunc' | 'halfCeil' | 'halfFloor' | 'halfExpand' | 'halfTrunc' | 'halfEven';
37
+ /** Specify how rounding conflicts will be resolved. */
38
+ roundingPriority?: 'auto' | 'morePrecision' | 'lessPrecision';
39
+ /** Specifies the rounding-increment precision. */
40
+ roundingIncrement?: 1 | 2 | 5 | 10 | 20 | 25 | 50 | 100 | 200 | 250 | 500 | 1000 | 2000 | 2500 | 5000;
41
+ /** A string expressing the strategy for displaying trailing zeros on whole numbers. */
42
+ trailingZeroDisplay?: 'auto' | 'stripIfInteger';
43
+ /** The minimum number of integer digits to use. A value with a smaller number of integer digits than this number will be left-padded with zeros (to the specified length) when formatted. */
44
+ minimumIntegerDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;
45
+ /** The minimum number of fraction digits to use. */
46
+ minimumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;
47
+ /** The maximum number of fraction digits to use. */
48
+ maximumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;
49
+ /** The minimum number of significant digits to use. */
50
+ minimumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;
51
+ /** The maximum number of significant digits to use. */
52
+ maximumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;
53
+ }
54
+ type StyledNumberProps = Omit<NumberProps, 'as' | 'color' | 'fontFamily' | 'fontSize' | 'value' | 'variant'> & {
55
+ $color: NumberProps['color'];
56
+ $fontFamily: NumberProps['fontFamily'];
57
+ $fontSize: NumberProps['fontSize'];
58
+ $fontWeight: NumberProps['fontWeight'];
59
+ $variant: NumberProps['variant'];
60
+ $theme: NumberProps['theme'];
61
+ };
62
+
63
+ export { NumberFormatOptions, NumberProps, StyledNumberProps };
@@ -0,0 +1,10 @@
1
+ import { NumberFieldProps } from './types.js';
2
+ import { Comp } from '../../types/helpers.js';
3
+
4
+ /**
5
+ * The NumberField component.
6
+ * Can be used as controlled or uncontrolled.
7
+ */
8
+ declare const NumberField: Comp<NumberFieldProps, HTMLDivElement>;
9
+
10
+ export { NumberField };
@@ -0,0 +1,216 @@
1
+ import { objectWithoutProperties as _objectWithoutProperties, objectSpread2 as _objectSpread2, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
+ import React__default, { forwardRef, useRef, useState } from 'react';
3
+ import classNames from 'classnames';
4
+ import { warnIfNoAccessibleLabelFound } from '../../utils/warnIfNoAccessibleLabelFound.js';
5
+ import { NumberFieldVariant } from './types.js';
6
+ import { StyledNumberField } from './styles.js';
7
+ import { mdiMenuUp, mdiMenuDown } from '@redsift/icons';
8
+ import { StyledIconButton } from '../icon-button/styles.js';
9
+ import { useLocale } from '../../react-aria/react-aria/i18n/context.js';
10
+ import { useNumberFieldState } from '../../react-aria/react-stately/numberfield/useNumberFieldState.js';
11
+ import { useNumberField } from '../../react-aria/react-aria/numberfield/useNumberField.js';
12
+ import { useButton } from '../../react-aria/react-aria/button/useButton.js';
13
+ import { useFocusRing } from '../../react-aria/react-aria/focus/useFocusRing.js';
14
+ import { useFocusWithin } from '../../react-aria/react-aria/interactions/useFocusWithin.js';
15
+ import { useTheme } from '../theme/useTheme.js';
16
+ import { Icon } from '../icon/Icon.js';
17
+ import { Flexbox } from '../flexbox/Flexbox.js';
18
+
19
+ const _excluded = ["autoFocus", "className", "decrementAriaLabel", "defaultValue", "formatOptions", "id", "incrementAriaLabel", "inputProps", "inputRef", "isColored", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "isWheelDisabled", "label", "leftIcon", "maxValue", "minValue", "onBlur", "onChange", "onFocus", "onFocusChange", "onKeyDown", "onKeyUp", "placeholder", "step", "theme", "value", "variant"];
20
+ const COMPONENT_NAME = 'NumberField';
21
+ const CLASSNAME = 'redsift-number-field';
22
+
23
+ /**
24
+ * The NumberField component.
25
+ * Can be used as controlled or uncontrolled.
26
+ */
27
+ const NumberField = /*#__PURE__*/forwardRef((props, ref) => {
28
+ const {
29
+ autoFocus,
30
+ className,
31
+ decrementAriaLabel,
32
+ defaultValue,
33
+ formatOptions,
34
+ id,
35
+ incrementAriaLabel,
36
+ inputProps: propsInputProps,
37
+ inputRef: propsInputRef,
38
+ isColored = true,
39
+ isDisabled,
40
+ isInvalid,
41
+ isReadOnly,
42
+ isRequired,
43
+ isWheelDisabled,
44
+ label,
45
+ leftIcon,
46
+ maxValue,
47
+ minValue,
48
+ onBlur: onBlurProps,
49
+ onChange: propsOnChange,
50
+ onFocus: onFocusProps,
51
+ onFocusChange,
52
+ onKeyDown,
53
+ onKeyUp,
54
+ placeholder,
55
+ step,
56
+ theme: propsTheme,
57
+ value,
58
+ variant = NumberFieldVariant.default
59
+ } = props,
60
+ forwardedProps = _objectWithoutProperties(props, _excluded);
61
+ const numberFieldProps = {
62
+ id,
63
+ isDisabled,
64
+ isReadOnly,
65
+ isRequired,
66
+ minValue,
67
+ maxValue,
68
+ step,
69
+ autoFocus,
70
+ label,
71
+ formatOptions,
72
+ onBlur: onBlurProps,
73
+ onFocus: onFocusProps,
74
+ onFocusChange,
75
+ onKeyDown,
76
+ onKeyUp,
77
+ value,
78
+ defaultValue,
79
+ onChange: propsOnChange
80
+ };
81
+ const theme = useTheme(propsTheme);
82
+ const {
83
+ locale
84
+ } = useLocale();
85
+ const state = useNumberFieldState(_objectSpread2({
86
+ locale
87
+ }, numberFieldProps));
88
+ const _inputRef = React__default.useRef(null);
89
+ const inputRef = propsInputRef !== null && propsInputRef !== void 0 ? propsInputRef : _inputRef;
90
+ const {
91
+ labelProps,
92
+ groupProps,
93
+ inputProps,
94
+ incrementButtonProps,
95
+ decrementButtonProps
96
+ } = useNumberField(_objectSpread2({
97
+ decrementAriaLabel,
98
+ incrementAriaLabel,
99
+ isWheelDisabled
100
+ }, numberFieldProps), state, inputRef);
101
+ const incrementButtonRef = useRef(null);
102
+ const {
103
+ buttonProps: incrementButtonForwardedProps
104
+ } = useButton(incrementButtonProps, incrementButtonRef);
105
+ const decrementButtonRef = useRef(null);
106
+ const {
107
+ buttonProps: decrementButtonForwardedProps
108
+ } = useButton(decrementButtonProps, decrementButtonRef);
109
+ const {
110
+ isFocusVisible,
111
+ isFocused,
112
+ focusProps: {
113
+ onFocus,
114
+ onBlur
115
+ }
116
+ } = useFocusRing({
117
+ autoFocus
118
+ });
119
+ const [isFocusWithin, setFocusWithin] = useState(Boolean(autoFocus));
120
+ const {
121
+ focusWithinProps
122
+ } = useFocusWithin({
123
+ onFocusWithinChange: isFocusWithin => setFocusWithin(isFocusWithin)
124
+ });
125
+ warnIfNoAccessibleLabelFound(props, [label], 'NumberField');
126
+ return /*#__PURE__*/React__default.createElement(StyledNumberField, _extends({}, forwardedProps, focusWithinProps, {
127
+ $hasContent: isFocusWithin || Boolean(inputProps.value !== undefined && inputProps.value !== '') || Boolean(placeholder),
128
+ $hasLeftIcon: Boolean(leftIcon),
129
+ $isColored: isColored,
130
+ $isDisabled: isDisabled,
131
+ $isFocusVisible: isFocusVisible,
132
+ $isInvalid: isInvalid || isRequired && !(inputProps.value !== undefined),
133
+ $isRequired: isRequired,
134
+ $isFocused: isFocused,
135
+ $theme: theme,
136
+ $variant: variant,
137
+ className: classNames(NumberField.className, className),
138
+ ref: ref
139
+ }), label ? /*#__PURE__*/React__default.createElement("label", _extends({}, labelProps, {
140
+ className: `${NumberField.className}__label`
141
+ }), /*#__PURE__*/React__default.createElement("span", null, label)) : null, /*#__PURE__*/React__default.createElement("div", {
142
+ className: `${NumberField.className}__input-wrapper`
143
+ }, leftIcon ? /*#__PURE__*/React__default.createElement(Icon, _extends({
144
+ color: isDisabled ? 'question' : 'black'
145
+ }, leftIcon, {
146
+ "aria-hidden": "true",
147
+ className: "left"
148
+ })) : null, /*#__PURE__*/React__default.createElement(Flexbox, _extends({}, groupProps, {
149
+ flexDirection: "row",
150
+ gap: "0",
151
+ width: "100%"
152
+ }), /*#__PURE__*/React__default.createElement("input", _extends({}, propsInputProps, inputProps, {
153
+ onChange: event => {
154
+ if (propsOnChange) {
155
+ propsOnChange(Number(event.target.value));
156
+ } else {
157
+ var _inputProps$onChange;
158
+ (_inputProps$onChange = inputProps.onChange) === null || _inputProps$onChange === void 0 ? void 0 : _inputProps$onChange.call(inputProps, event);
159
+ }
160
+ },
161
+ onBlur: event => {
162
+ onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
163
+ onBlurProps === null || onBlurProps === void 0 ? void 0 : onBlurProps(event);
164
+ },
165
+ onFocus: event => {
166
+ onFocus === null || onFocus === void 0 ? void 0 : onFocus(event);
167
+ onFocusProps === null || onFocusProps === void 0 ? void 0 : onFocusProps(event);
168
+ },
169
+ placeholder: placeholder ? `${placeholder}` : undefined,
170
+ className: `${NumberField.className}-input-wrapper__input`,
171
+ ref: inputRef,
172
+ width: "100%"
173
+ })), /*#__PURE__*/React__default.createElement(Flexbox, {
174
+ className: `${NumberField.className}-input-wrapper__toolbar`,
175
+ flexDirection: "column",
176
+ gap: "0"
177
+ }, /*#__PURE__*/React__default.createElement(StyledIconButton, _extends({
178
+ $color: "grey",
179
+ $isActive: false,
180
+ $isDisabled: isDisabled,
181
+ $isGradient: false,
182
+ $isHovered: false,
183
+ $isLoading: false,
184
+ $variant: variant === NumberFieldVariant.underline ? 'unstyled' : 'secondary',
185
+ $theme: theme
186
+ }, incrementButtonForwardedProps, {
187
+ className: `${NumberField.className}-input-wrapper-toolbar__increment-button`
188
+ }), /*#__PURE__*/React__default.createElement(Icon, {
189
+ icon: mdiMenuUp,
190
+ color: isDisabled ? undefined : 'grey'
191
+ })), /*#__PURE__*/React__default.createElement(StyledIconButton, _extends({
192
+ $color: "grey",
193
+ $isActive: false,
194
+ $isDisabled: isDisabled,
195
+ $isGradient: false,
196
+ $isHovered: false,
197
+ $isLoading: false,
198
+ $variant: variant === NumberFieldVariant.underline ? 'unstyled' : 'secondary',
199
+ $theme: theme
200
+ }, decrementButtonForwardedProps, {
201
+ className: `${NumberField.className}-input-wrapper-toolbar__decrement-button`
202
+ }), /*#__PURE__*/React__default.createElement(Icon, {
203
+ icon: mdiMenuDown,
204
+ color: isDisabled ? undefined : 'grey'
205
+ })))), /*#__PURE__*/React__default.createElement("fieldset", {
206
+ "aria-hidden": "true",
207
+ className: `${NumberField.className}-input-wrapper__fieldset`
208
+ }, /*#__PURE__*/React__default.createElement("legend", {
209
+ className: `${NumberField.className}-input-wrapper-fieldset__legend`
210
+ }, label ? /*#__PURE__*/React__default.createElement("span", null, label) : null))));
211
+ });
212
+ NumberField.className = CLASSNAME;
213
+ NumberField.displayName = COMPONENT_NAME;
214
+
215
+ export { NumberField };
216
+ //# sourceMappingURL=NumberField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NumberField.js","sources":["../../../src/components/number-field/NumberField.tsx"],"sourcesContent":["import React, { ComponentProps, forwardRef, MutableRefObject, useRef, useState } from 'react';\nimport classNames from 'classnames';\nimport { useFocusRing } from '../../react-aria/react-aria/focus';\nimport { useFocusWithin } from '../../react-aria/react-aria/interactions';\nimport { useNumberFieldState } from '../../react-aria/react-stately/numberfield';\nimport { useNumberField } from '../../react-aria/react-aria/numberfield';\nimport { useButton } from '../../react-aria/react-aria/button';\nimport { Comp } from '../../types';\nimport { warnIfNoAccessibleLabelFound } from '../../utils/warnIfNoAccessibleLabelFound';\nimport { NumberFieldProps, NumberFieldVariant } from './types';\nimport { StyledNumberField } from './styles';\nimport { Icon } from '../../components/icon';\nimport { mdiMenuDown, mdiMenuUp } from '@redsift/icons';\nimport { Flexbox } from '../flexbox';\nimport { useTheme } from '../theme';\nimport { StyledIconButton } from '../icon-button/styles';\nimport { useLocale } from '../../react-aria/react-aria/i18n';\n\nconst COMPONENT_NAME = 'NumberField';\nconst CLASSNAME = 'redsift-number-field';\n\n/**\n * The NumberField component.\n * Can be used as controlled or uncontrolled.\n */\nexport const NumberField: Comp<NumberFieldProps, HTMLDivElement> = forwardRef((props, ref) => {\n const {\n autoFocus,\n className,\n decrementAriaLabel,\n defaultValue,\n formatOptions,\n id,\n incrementAriaLabel,\n inputProps: propsInputProps,\n inputRef: propsInputRef,\n isColored = true,\n isDisabled,\n isInvalid,\n isReadOnly,\n isRequired,\n isWheelDisabled,\n label,\n leftIcon,\n maxValue,\n minValue,\n onBlur: onBlurProps,\n onChange: propsOnChange,\n onFocus: onFocusProps,\n onFocusChange,\n onKeyDown,\n onKeyUp,\n placeholder,\n step,\n theme: propsTheme,\n value,\n variant = NumberFieldVariant.default,\n ...forwardedProps\n } = props;\n\n const numberFieldProps = {\n id,\n isDisabled,\n isReadOnly,\n isRequired,\n minValue,\n maxValue,\n step,\n autoFocus,\n label,\n formatOptions,\n onBlur: onBlurProps,\n onFocus: onFocusProps,\n onFocusChange,\n onKeyDown,\n onKeyUp,\n value,\n defaultValue,\n onChange: propsOnChange,\n };\n\n const theme = useTheme(propsTheme);\n\n const { locale } = useLocale();\n const state = useNumberFieldState({ locale, ...numberFieldProps });\n const _inputRef = React.useRef(null);\n const inputRef = propsInputRef ?? _inputRef;\n const { labelProps, groupProps, inputProps, incrementButtonProps, decrementButtonProps } = useNumberField(\n {\n decrementAriaLabel,\n incrementAriaLabel,\n isWheelDisabled,\n ...numberFieldProps,\n },\n state,\n inputRef\n );\n\n const incrementButtonRef = useRef<HTMLButtonElement>(null);\n const { buttonProps: incrementButtonForwardedProps } = useButton(incrementButtonProps, incrementButtonRef);\n const decrementButtonRef = useRef<HTMLButtonElement>(null);\n const { buttonProps: decrementButtonForwardedProps } = useButton(decrementButtonProps, decrementButtonRef);\n\n const {\n isFocusVisible,\n isFocused,\n focusProps: { onFocus, onBlur },\n } = useFocusRing({\n autoFocus,\n });\n const [isFocusWithin, setFocusWithin] = useState(Boolean(autoFocus));\n const { focusWithinProps } = useFocusWithin({\n onFocusWithinChange: (isFocusWithin) => setFocusWithin(isFocusWithin),\n });\n\n warnIfNoAccessibleLabelFound(props as ComponentProps<'label'>, [label], 'NumberField');\n\n return (\n <StyledNumberField\n {...forwardedProps}\n {...focusWithinProps}\n $hasContent={\n isFocusWithin || Boolean(inputProps.value !== undefined && inputProps.value !== '') || Boolean(placeholder)\n }\n $hasLeftIcon={Boolean(leftIcon)}\n $isColored={isColored}\n $isDisabled={isDisabled}\n $isFocusVisible={isFocusVisible}\n $isInvalid={isInvalid || (isRequired && !(inputProps.value !== undefined))}\n $isRequired={isRequired}\n $isFocused={isFocused}\n $theme={theme}\n $variant={variant}\n className={classNames(NumberField.className, className)}\n ref={ref as MutableRefObject<HTMLDivElement>}\n >\n {label ? (\n <label {...labelProps} className={`${NumberField.className}__label`}>\n <span>{label}</span>\n </label>\n ) : null}\n <div className={`${NumberField.className}__input-wrapper`}>\n {leftIcon ? (\n <Icon color={isDisabled ? 'question' : 'black'} {...leftIcon} aria-hidden=\"true\" className=\"left\" />\n ) : null}\n <Flexbox {...groupProps} flexDirection=\"row\" gap=\"0\" width=\"100%\">\n <input\n {...propsInputProps}\n {...inputProps}\n onChange={(event) => {\n if (propsOnChange) {\n propsOnChange(Number(event.target.value));\n } else {\n inputProps.onChange?.(event);\n }\n }}\n onBlur={(event) => {\n onBlur?.(event);\n onBlurProps?.(event);\n }}\n onFocus={(event) => {\n onFocus?.(event);\n onFocusProps?.(event);\n }}\n placeholder={placeholder ? `${placeholder}` : undefined}\n className={`${NumberField.className}-input-wrapper__input`}\n ref={inputRef as MutableRefObject<HTMLInputElement>}\n width=\"100%\"\n />\n <Flexbox className={`${NumberField.className}-input-wrapper__toolbar`} flexDirection=\"column\" gap=\"0\">\n <StyledIconButton\n $color=\"grey\"\n $isActive={false}\n $isDisabled={isDisabled}\n $isGradient={false}\n $isHovered={false}\n $isLoading={false}\n $variant={variant === NumberFieldVariant.underline ? 'unstyled' : 'secondary'}\n $theme={theme}\n {...incrementButtonForwardedProps}\n className={`${NumberField.className}-input-wrapper-toolbar__increment-button`}\n >\n <Icon icon={mdiMenuUp} color={isDisabled ? undefined : 'grey'} />\n </StyledIconButton>\n <StyledIconButton\n $color=\"grey\"\n $isActive={false}\n $isDisabled={isDisabled}\n $isGradient={false}\n $isHovered={false}\n $isLoading={false}\n $variant={variant === NumberFieldVariant.underline ? 'unstyled' : 'secondary'}\n $theme={theme}\n {...decrementButtonForwardedProps}\n className={`${NumberField.className}-input-wrapper-toolbar__decrement-button`}\n >\n <Icon icon={mdiMenuDown} color={isDisabled ? undefined : 'grey'} />\n </StyledIconButton>\n </Flexbox>\n </Flexbox>\n <fieldset aria-hidden=\"true\" className={`${NumberField.className}-input-wrapper__fieldset`}>\n <legend className={`${NumberField.className}-input-wrapper-fieldset__legend`}>\n {label ? <span>{label}</span> : null}\n </legend>\n </fieldset>\n </div>\n </StyledNumberField>\n );\n});\nNumberField.className = CLASSNAME;\nNumberField.displayName = COMPONENT_NAME;\n"],"names":["COMPONENT_NAME","CLASSNAME","NumberField","forwardRef","props","ref","autoFocus","className","decrementAriaLabel","defaultValue","formatOptions","id","incrementAriaLabel","inputProps","propsInputProps","inputRef","propsInputRef","isColored","isDisabled","isInvalid","isReadOnly","isRequired","isWheelDisabled","label","leftIcon","maxValue","minValue","onBlur","onBlurProps","onChange","propsOnChange","onFocus","onFocusProps","onFocusChange","onKeyDown","onKeyUp","placeholder","step","theme","propsTheme","value","variant","NumberFieldVariant","default","forwardedProps","_objectWithoutProperties","_excluded","numberFieldProps","useTheme","locale","useLocale","state","useNumberFieldState","_objectSpread","_inputRef","React","useRef","labelProps","groupProps","incrementButtonProps","decrementButtonProps","useNumberField","incrementButtonRef","buttonProps","incrementButtonForwardedProps","useButton","decrementButtonRef","decrementButtonForwardedProps","isFocusVisible","isFocused","focusProps","useFocusRing","isFocusWithin","setFocusWithin","useState","Boolean","focusWithinProps","useFocusWithin","onFocusWithinChange","warnIfNoAccessibleLabelFound","createElement","StyledNumberField","_extends","$hasContent","undefined","$hasLeftIcon","$isColored","$isDisabled","$isFocusVisible","$isInvalid","$isRequired","$isFocused","$theme","$variant","classNames","Icon","color","Flexbox","flexDirection","gap","width","event","Number","target","_inputProps$onChange","call","StyledIconButton","$color","$isActive","$isGradient","$isHovered","$isLoading","underline","icon","mdiMenuUp","mdiMenuDown","displayName"],"mappings":";;;;;;;;;;;;;;;;;;;AAkBA,MAAMA,cAAc,GAAG,aAAa,CAAA;AACpC,MAAMC,SAAS,GAAG,sBAAsB,CAAA;;AAExC;AACA;AACA;AACA;AACO,MAAMC,WAAmD,gBAAGC,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAK;EAC5F,MAAM;MACJC,SAAS;MACTC,SAAS;MACTC,kBAAkB;MAClBC,YAAY;MACZC,aAAa;MACbC,EAAE;MACFC,kBAAkB;AAClBC,MAAAA,UAAU,EAAEC,eAAe;AAC3BC,MAAAA,QAAQ,EAAEC,aAAa;AACvBC,MAAAA,SAAS,GAAG,IAAI;MAChBC,UAAU;MACVC,SAAS;MACTC,UAAU;MACVC,UAAU;MACVC,eAAe;MACfC,KAAK;MACLC,QAAQ;MACRC,QAAQ;MACRC,QAAQ;AACRC,MAAAA,MAAM,EAAEC,WAAW;AACnBC,MAAAA,QAAQ,EAAEC,aAAa;AACvBC,MAAAA,OAAO,EAAEC,YAAY;MACrBC,aAAa;MACbC,SAAS;MACTC,OAAO;MACPC,WAAW;MACXC,IAAI;AACJC,MAAAA,KAAK,EAAEC,UAAU;MACjBC,KAAK;MACLC,OAAO,GAAGC,kBAAkB,CAACC,OAAAA;AAE/B,KAAC,GAAGvC,KAAK;AADJwC,IAAAA,cAAc,GAAAC,wBAAA,CACfzC,KAAK,EAAA0C,SAAA,CAAA,CAAA;AAET,EAAA,MAAMC,gBAAgB,GAAG;IACvBpC,EAAE;IACFO,UAAU;IACVE,UAAU;IACVC,UAAU;IACVK,QAAQ;IACRD,QAAQ;IACRY,IAAI;IACJ/B,SAAS;IACTiB,KAAK;IACLb,aAAa;AACbiB,IAAAA,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