@midas-ds/components 10.1.1 → 10.2.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 (373) hide show
  1. package/AccordionItem-DZT76sWu.js +320 -0
  2. package/AccordionItem-Z_c9MpAM.cjs +1 -0
  3. package/BadgeContainer-D3RtqcPF.js +37 -0
  4. package/BadgeContainer-DeUgqGqb.cjs +1 -0
  5. package/Breadcrumbs-CmZXtTiS.js +250 -0
  6. package/Breadcrumbs-Cx09jwZZ.cjs +1 -0
  7. package/Button-CbFRzRrF.js +38 -0
  8. package/Button-DnhqHU01.cjs +1 -0
  9. package/Button-ZOQy9Ivu.js +78 -0
  10. package/Button-iSiWjocA.cjs +1 -0
  11. package/Button.module-CMMhIrkn.js +14 -0
  12. package/Button.module-DO5s9hOk.cjs +1 -0
  13. package/ButtonGroup-DUqW5dzM.cjs +1 -0
  14. package/ButtonGroup-DvVvear6.js +22 -0
  15. package/CHANGELOG.md +48 -0
  16. package/Card-C0BFW3wJ.cjs +1 -0
  17. package/Card-CaKKKv9k.js +131 -0
  18. package/CharacterCounter-CPGdboVJ.js +22 -0
  19. package/CharacterCounter-CrY8QRuY.cjs +1 -0
  20. package/Checkbox-CvFsn_FL.js +380 -0
  21. package/Checkbox-DSxGAJX2.cjs +1 -0
  22. package/CheckboxGroup-Bk9DPq4I.cjs +1 -0
  23. package/CheckboxGroup-Dij9zKlF.js +54 -0
  24. package/Collection-C5ONNBqd.js +576 -0
  25. package/Collection-Csx3L9gh.cjs +1 -0
  26. package/ColorSchemeSwitch-CbAWIJCg.js +106 -0
  27. package/ColorSchemeSwitch-JRrCyYVv.cjs +16 -0
  28. package/ComboBox-BCaqPEIH.js +1375 -0
  29. package/ComboBox-gveQKHU3.cjs +1 -0
  30. package/DateField-CAQlzuDD.js +46 -0
  31. package/DateField-deVVFwKA.cjs +1 -0
  32. package/DateInputDivider-DnUxETEC.cjs +1 -0
  33. package/DateInputDivider-Dx8n1Lxp.js +2908 -0
  34. package/DateRangePicker-BmBvwqo6.js +881 -0
  35. package/DateRangePicker-BzfitoK0.cjs +6 -0
  36. package/Dialog-Bd5hK360.cjs +1 -0
  37. package/Dialog-Bxx8cBEq.js +208 -0
  38. package/Dialog-CYxThuMl.js +1609 -0
  39. package/Dialog-CwTEAujZ.cjs +1 -0
  40. package/DragAndDrop-CSwmPhxC.js +60 -0
  41. package/DragAndDrop-HvycSrKY.cjs +1 -0
  42. package/Dropdown-CaGon9OR.cjs +6 -0
  43. package/Dropdown-nkjzsVYX.js +84 -0
  44. package/FieldError-BZw8UzBk.cjs +1 -0
  45. package/FieldError-CZikNDxX.js +28 -0
  46. package/FieldError-DqdfJ3fs.cjs +1 -0
  47. package/FieldError-Dv3bBEjh.js +23 -0
  48. package/FileUpload-DYRZ0M9F.cjs +2 -0
  49. package/FileUpload-ULwcYDxs.js +2372 -0
  50. package/FocusScope-DwIqdYpQ.js +625 -0
  51. package/FocusScope-NaPbvuuS.cjs +1 -0
  52. package/Form-BuOomA4T.cjs +1 -0
  53. package/Form-CXcEMuBf.js +5 -0
  54. package/Grid--OhtgCo6.js +27 -0
  55. package/Grid-DVQtOcu9.cjs +1 -0
  56. package/GridItem-DlbSdRmB.js +246 -0
  57. package/GridItem-XgHmZWXY.cjs +1 -0
  58. package/Group-CeSsSQVC.js +44 -0
  59. package/Group-CgiqQHH1.cjs +1 -0
  60. package/Heading-BY5-QN4S.js +46 -0
  61. package/Heading-DoJAtYZf.cjs +1 -0
  62. package/Hidden-B5ir3Lei.js +34 -0
  63. package/Hidden-BxRZGdEW.cjs +1 -0
  64. package/InfoBanner-BS-dAfzO.cjs +1 -0
  65. package/InfoBanner-CVIBFSWx.js +82 -0
  66. package/Input-D8Ku_FQz.js +41 -0
  67. package/Input-DKSAYvsw.cjs +1 -0
  68. package/Label-C9ivwkAd.js +21 -0
  69. package/Label-CUV21CAv.cjs +1 -0
  70. package/Label-DkDOsmUF.js +16 -0
  71. package/Label-IMWAyoKb.cjs +1 -0
  72. package/Layout-BWeHHnqU.cjs +16 -0
  73. package/Layout-CCt_2L1k.js +468 -0
  74. package/Link-B-nus-FT.js +71 -0
  75. package/Link-DsnCtNeI.cjs +6 -0
  76. package/Link-SHMbeyIP.cjs +1 -0
  77. package/Link-uFowN4qv.js +59 -0
  78. package/LinkButton-CuBilDML.js +69 -0
  79. package/LinkButton-CymMrcGL.cjs +6 -0
  80. package/ListBox-CDOsQChA.cjs +1 -0
  81. package/ListBox-DOi_y_Lt.js +530 -0
  82. package/ListBoxButton-CFeNhJhr.cjs +1 -0
  83. package/ListBoxButton-O6zN3P4W.js +15 -0
  84. package/ListBoxSection-C1aLKL9p.js +1058 -0
  85. package/ListBoxSection-DGCP6xpf.cjs +1 -0
  86. package/ListKeyboardDelegate-BqMETvPv.cjs +1 -0
  87. package/ListKeyboardDelegate-DNOzQ8nc.js +158 -0
  88. package/LiveAnnouncer-B6177m92.js +51 -0
  89. package/LiveAnnouncer-CwEWPU8b.cjs +1 -0
  90. package/LocalizedStringFormatter-C0C54hjf.cjs +1 -0
  91. package/LocalizedStringFormatter-D-4Qyql0.js +77 -0
  92. package/Logo-BIrOEINM.js +133 -0
  93. package/Logo-DT2_2O43.cjs +1 -0
  94. package/NumberFormatter-DewVDY5w.cjs +1 -0
  95. package/NumberFormatter-DgOUVrge.js +119 -0
  96. package/OverlayArrow-D75k-EMl.cjs +1 -0
  97. package/OverlayArrow-DorA4Rbr.js +506 -0
  98. package/PressResponder-C06O3Z5P.cjs +1 -0
  99. package/PressResponder-CVEg5kND.js +33 -0
  100. package/ProgressBar-Bkw9zavs.cjs +1 -0
  101. package/ProgressBar-CEX2WNoW.js +77 -0
  102. package/ProgressBar-Dqh3ftSP.cjs +1 -0
  103. package/ProgressBar-gmAzSsrz.js +53 -0
  104. package/RSPContexts-BW2SEIqe.js +11 -0
  105. package/RSPContexts-D8hmBfGm.cjs +1 -0
  106. package/Radio-CDKrvQe4.cjs +1 -0
  107. package/Radio-_ukSkxPT.js +311 -0
  108. package/RangeCalendar-cbCKBPZv.cjs +11 -0
  109. package/RangeCalendar-uXwoBL-O.js +1685 -0
  110. package/SearchField-6yBGiojX.cjs +6 -0
  111. package/SearchField-DYl2uo7o.js +362 -0
  112. package/Select-CpHjd1tp.cjs +1 -0
  113. package/Select-PvCqY7Lp.js +646 -0
  114. package/SelectionManager-6H88Cv6B.js +1033 -0
  115. package/SelectionManager-C5NGBzvz.cjs +1 -0
  116. package/Separator-LYnFqh4L.js +60 -0
  117. package/Separator-nPra6kD-.cjs +1 -0
  118. package/Skeleton-BAwbfKBW.cjs +1 -0
  119. package/Skeleton-BePDRmrO.js +40 -0
  120. package/Spinner-D31SXm-U.js +41 -0
  121. package/Spinner-DAJtfxqJ.cjs +6 -0
  122. package/Table-B_N7wUmA.js +2451 -0
  123. package/Table-D9vNc_y-.cjs +16 -0
  124. package/Tabs-Ct6D83aR.js +404 -0
  125. package/Tabs-Dtcl2oK2.cjs +1 -0
  126. package/Tag-CVFkzg3s.cjs +1 -0
  127. package/Tag-g6HN-YCv.js +748 -0
  128. package/Text-3MNwRMpI.cjs +1 -0
  129. package/Text-B2K-BJKQ.cjs +1 -0
  130. package/Text-BN-g1iWi.js +32 -0
  131. package/Text-B_H68Tvq.js +15 -0
  132. package/TextArea-DSiQ578a.js +206 -0
  133. package/TextArea-cVyGBRbL.cjs +1 -0
  134. package/TextField-B70CL2qz.cjs +1 -0
  135. package/TextField-DBaRuNj7.js +119 -0
  136. package/TextField.module-BcpPBWnD.js +13 -0
  137. package/TextField.module-Dw5Rtn9y.cjs +1 -0
  138. package/Toast-CjpldAI8.js +988 -0
  139. package/Toast-DrkOGy4d.cjs +1 -0
  140. package/ToggleButtonGroup-BuU_6dYe.cjs +1 -0
  141. package/ToggleButtonGroup-Ceh9_yBM.js +210 -0
  142. package/Tooltip-BAIjaYax.js +283 -0
  143. package/Tooltip-CiWg4zIC.cjs +1 -0
  144. package/VisuallyHidden-CtXvK_Tw.cjs +1 -0
  145. package/VisuallyHidden-D-4z1VgU.js +40 -0
  146. package/accordion/index.cjs +1 -0
  147. package/accordion/index.js +5 -0
  148. package/arrow-right-Cw48o2oW.cjs +6 -0
  149. package/arrow-right-Dg8sttFO.js +14 -0
  150. package/assets/AccordionItem.css +1 -0
  151. package/assets/BadgeContainer.css +1 -0
  152. package/assets/Breadcrumbs.css +1 -0
  153. package/assets/Button.css +1 -0
  154. package/assets/ButtonGroup.css +1 -0
  155. package/assets/Card.css +1 -0
  156. package/assets/CharacterCounter.css +1 -0
  157. package/assets/Checkbox.css +1 -0
  158. package/assets/ColorSchemeSwitch.css +1 -0
  159. package/assets/ComboBox.css +1 -0
  160. package/assets/DateField.css +1 -0
  161. package/assets/DateInputDivider.css +1 -0
  162. package/assets/DateRangePicker.css +1 -0
  163. package/assets/Dialog.css +1 -0
  164. package/assets/Dropdown.css +1 -0
  165. package/assets/FieldError.css +1 -0
  166. package/assets/FileUpload.css +1 -0
  167. package/assets/GridItem.css +1 -0
  168. package/assets/Heading.css +1 -0
  169. package/assets/InfoBanner.css +1 -0
  170. package/assets/Label.css +1 -0
  171. package/assets/Layout.css +1 -0
  172. package/assets/Link.css +1 -0
  173. package/assets/LinkButton.css +1 -0
  174. package/assets/ListBoxSection.css +1 -0
  175. package/assets/Logo.css +1 -0
  176. package/assets/ProgressBar.css +1 -0
  177. package/assets/Radio.css +1 -0
  178. package/assets/RangeCalendar.css +1 -0
  179. package/assets/SearchField.css +1 -0
  180. package/assets/Select.css +1 -0
  181. package/assets/Skeleton.css +1 -0
  182. package/assets/Spinner.css +1 -0
  183. package/assets/Table.css +1 -0
  184. package/assets/Tabs.css +1 -0
  185. package/assets/Tag.css +1 -0
  186. package/assets/Text.css +1 -0
  187. package/assets/TextField.css +1 -0
  188. package/assets/Toast.css +1 -0
  189. package/assets/ToggleButtonGroup.css +1 -0
  190. package/assets/Tooltip.css +1 -0
  191. package/badge/index.cjs +1 -0
  192. package/badge/index.js +5 -0
  193. package/breadcrumbs/index.cjs +1 -0
  194. package/breadcrumbs/index.js +4 -0
  195. package/button/index.cjs +1 -0
  196. package/button/index.js +6 -0
  197. package/calendar/CalendarHeader.d.ts +2 -1
  198. package/calendar/index.cjs +1 -0
  199. package/calendar/index.js +5 -0
  200. package/card/index.cjs +1 -0
  201. package/card/index.js +10 -0
  202. package/character-counter/index.cjs +1 -0
  203. package/character-counter/index.js +4 -0
  204. package/check-CLF6Yxza.js +11 -0
  205. package/check-Dw9c62O4.cjs +6 -0
  206. package/checkbox/index.cjs +1 -0
  207. package/checkbox/index.js +6 -0
  208. package/chevron-down-C2E7aZ3N.cjs +6 -0
  209. package/chevron-down-Cd1bkzXT.js +13 -0
  210. package/clsx-C11secjj.cjs +1 -0
  211. package/clsx-OuTLNxxd.js +16 -0
  212. package/color-scheme-switch/index.cjs +1 -0
  213. package/color-scheme-switch/index.js +4 -0
  214. package/combobox/index.cjs +1 -0
  215. package/combobox/index.js +7 -0
  216. package/common/types.d.ts +2 -0
  217. package/context-B8cn10po.js +80 -0
  218. package/context-DjwhtgxQ.cjs +1 -0
  219. package/createLucideIcon-DAY4oS-S.cjs +21 -0
  220. package/createLucideIcon-DeWljiyi.js +79 -0
  221. package/date-field/index.cjs +1 -0
  222. package/date-field/index.js +8 -0
  223. package/date-picker/index.cjs +1 -0
  224. package/date-picker/index.js +5 -0
  225. package/dropdown/index.cjs +1 -0
  226. package/dropdown/index.js +5 -0
  227. package/field-error/FieldError.d.ts +4 -1
  228. package/field-error/index.cjs +1 -0
  229. package/field-error/index.js +4 -0
  230. package/file-upload/index.cjs +1 -0
  231. package/file-upload/index.js +4 -0
  232. package/filterDOMProps-BS2lrgFA.cjs +1 -0
  233. package/filterDOMProps-D6KHYVBX.js +24 -0
  234. package/focusSafely-Bqfo_DH7.cjs +1 -0
  235. package/focusSafely-C48ucRUz.js +56 -0
  236. package/getScrollParent-DuKmPmUa.cjs +1 -0
  237. package/getScrollParent-Ru2U2LlM.js +9 -0
  238. package/grid/Grid.d.ts +15 -4
  239. package/grid/GridItem.d.ts +31 -2
  240. package/grid/index.cjs +1 -0
  241. package/grid/index.d.ts +2 -2
  242. package/grid/index.js +8 -0
  243. package/heading/index.cjs +1 -0
  244. package/heading/index.js +4 -0
  245. package/index-BSMrH_Du.js +120 -0
  246. package/index-D97L3EBk.cjs +17 -0
  247. package/index.cjs +1 -169
  248. package/index.d.ts +0 -1
  249. package/index.js +127 -29979
  250. package/inertValue-B7loUihk.js +8 -0
  251. package/inertValue-BWmZ1afe.cjs +1 -0
  252. package/info-DkzVqB8I.js +38 -0
  253. package/info-DlzSeKbc.cjs +16 -0
  254. package/info-banner/index.cjs +1 -0
  255. package/info-banner/index.js +4 -0
  256. package/label/index.cjs +1 -0
  257. package/label/index.js +4 -0
  258. package/layout/index.cjs +1 -0
  259. package/layout/index.js +8 -0
  260. package/link/index.cjs +1 -0
  261. package/link/index.js +6 -0
  262. package/link-button/index.cjs +1 -0
  263. package/link-button/index.js +6 -0
  264. package/list-box/index.cjs +1 -0
  265. package/list-box/index.js +9 -0
  266. package/logo/index.cjs +1 -0
  267. package/logo/index.js +4 -0
  268. package/modal/index.cjs +1 -0
  269. package/modal/index.js +6 -0
  270. package/number-BE8InLgI.js +6 -0
  271. package/number-E0x3H9cL.cjs +1 -0
  272. package/package.json +4 -4
  273. package/progress-bar/index.cjs +1 -0
  274. package/progress-bar/index.js +4 -0
  275. package/radio/index.cjs +1 -0
  276. package/radio/index.js +5 -0
  277. package/scrollIntoView-ClEACHUk.js +57 -0
  278. package/scrollIntoView-DRSoJp89.cjs +1 -0
  279. package/search-field/index.cjs +1 -0
  280. package/search-field/index.js +4 -0
  281. package/select/index.cjs +1 -0
  282. package/select/index.js +4 -0
  283. package/skeleton/Skeleton.d.ts +5 -0
  284. package/skeleton/index.cjs +1 -0
  285. package/skeleton/index.js +4 -0
  286. package/spinner/index.cjs +1 -0
  287. package/spinner/index.js +4 -0
  288. package/square-arrow-out-up-right-BCAO2eJs.cjs +6 -0
  289. package/square-arrow-out-up-right-BkyqV2PN.js +15 -0
  290. package/table/Table.d.ts +7 -1
  291. package/table/index.cjs +1 -0
  292. package/table/index.js +9 -0
  293. package/tabs/index.cjs +1 -0
  294. package/tabs/index.js +4 -0
  295. package/tag/index.cjs +1 -0
  296. package/tag/index.js +5 -0
  297. package/text/index.cjs +1 -0
  298. package/text/index.js +4 -0
  299. package/textfield/index.cjs +1 -0
  300. package/textfield/index.js +7 -0
  301. package/theme/index.cjs +1 -0
  302. package/theme/index.d.ts +4 -0
  303. package/{theme.js → theme/index.js} +2 -2
  304. package/theme/tokens.d.ts +10 -0
  305. package/toast/index.cjs +1 -0
  306. package/toast/index.js +9 -0
  307. package/toggle-button/index.cjs +1 -0
  308. package/toggle-button/index.js +5 -0
  309. package/tokens-p6pg1Cea.cjs +1 -0
  310. package/{tokens-C0U7hdoO.js → tokens-xp-7KMK7.js} +18 -8
  311. package/tooltip/index.cjs +1 -0
  312. package/tooltip/index.js +5 -0
  313. package/triangle-alert-C0lvfCYH.cjs +6 -0
  314. package/triangle-alert-wxyxspAl.js +21 -0
  315. package/useButton-B1Fa-6qE.cjs +1 -0
  316. package/useButton-C-Lq7CNY.js +47 -0
  317. package/useCollator-C_ozeWLo.cjs +1 -0
  318. package/useCollator-CgZcHC8N.js +11 -0
  319. package/useControlledState-D0L6S_5r.cjs +1 -0
  320. package/useControlledState-u436Wbp1.js +30 -0
  321. package/useDateFormatter-C53Uxdli.js +1571 -0
  322. package/useDateFormatter-g2maMTGH.cjs +1 -0
  323. package/useDescription-CVKhFa3c.js +32 -0
  324. package/useDescription-DmQYSEES.cjs +1 -0
  325. package/useEvent-CjkbBniY.cjs +1 -0
  326. package/useEvent-Cyd2ZL0c.js +21 -0
  327. package/useField-B1RU0GKs.cjs +1 -0
  328. package/useField-BPMAlIbU.js +35 -0
  329. package/useFilter-ChIbnALW.js +35 -0
  330. package/useFilter-CtIwF2qW.cjs +1 -0
  331. package/useFocusRing-BDGH3lpn.js +82 -0
  332. package/useFocusRing-CbImDrwF.cjs +1 -0
  333. package/useFocusable-CaedRTpB.js +74 -0
  334. package/useFocusable-CuPQ7Cm5.cjs +1 -0
  335. package/useFormValidation-ClximP89.cjs +1 -0
  336. package/useFormValidation-R8hQIjWP.js +215 -0
  337. package/useHasTabbableChild-DgphNvnk.cjs +1 -0
  338. package/useHasTabbableChild-DsD9AJwE.js +34 -0
  339. package/useHighlightSelectionDescription-BizKjvPU.cjs +1 -0
  340. package/useHighlightSelectionDescription-DFfcgbUj.js +567 -0
  341. package/useHover-_mv5J4_q.cjs +1 -0
  342. package/useHover-qRAon4nS.js +490 -0
  343. package/useLabel-DDdAJ1JO.js +23 -0
  344. package/useLabel-m_S5xkHy.cjs +1 -0
  345. package/useLabels-BLOfc6Y-.cjs +1 -0
  346. package/useLabels-BZjoZA1Z.js +17 -0
  347. package/useListState-Ca2-uZMO.cjs +1 -0
  348. package/useListState-DFQ9d-uE.js +132 -0
  349. package/useLocalizedStringFormatter-D07YB2e1.js +22 -0
  350. package/useLocalizedStringFormatter-u9SJaOwk.cjs +1 -0
  351. package/useObserveElement-BdI4zgd7.js +27 -0
  352. package/useObserveElement-BzEr5D32.cjs +1 -0
  353. package/usePress-BFa6cT9o.cjs +7 -0
  354. package/usePress-CUJ3pMOw.js +542 -0
  355. package/useSingleSelectListState-C-nB8cug.js +34 -0
  356. package/useSingleSelectListState-MGNxUTum.cjs +1 -0
  357. package/useTextField-5OZQPyOW.js +86 -0
  358. package/useTextField-CtUDWsUl.cjs +1 -0
  359. package/useToggleState-Bz5rAf4C.js +18 -0
  360. package/useToggleState-DoIkSQdj.cjs +1 -0
  361. package/useUpdateEffect-CCDx8D4X.js +13 -0
  362. package/useUpdateEffect-sk3kiVGz.cjs +1 -0
  363. package/utils-BNtZbAib.cjs +1 -0
  364. package/utils-HNTsIwux.js +308 -0
  365. package/x-CvxiAZTW.cjs +6 -0
  366. package/x-JK7i-TQC.js +14 -0
  367. package/flex/Flex.d.ts +0 -17
  368. package/flex/FlexItem.d.ts +0 -15
  369. package/flex/index.d.ts +0 -2
  370. package/index.css +0 -1
  371. package/theme.cjs +0 -1
  372. package/tokens-COoF1t17.cjs +0 -1
  373. /package/{global.css → assets/global.css} +0 -0
@@ -0,0 +1,86 @@
1
+ import { a as h } from "./useHover-qRAon4nS.js";
2
+ import { d as x } from "./utils-HNTsIwux.js";
3
+ import { $ as E } from "./filterDOMProps-D6KHYVBX.js";
4
+ import { $ as I, a as M, b as S } from "./useFormValidation-R8hQIjWP.js";
5
+ import { $ as D } from "./useControlledState-u436Wbp1.js";
6
+ import L, { useEffect as O } from "react";
7
+ import { $ as R } from "./useField-BPMAlIbU.js";
8
+ import { $ as q } from "./useFocusable-CaedRTpB.js";
9
+ function _(e, a) {
10
+ let { inputElementType: u = "input", isDisabled: c = !1, isRequired: o = !1, isReadOnly: f = !1, type: m = "text", validationBehavior: r = "aria" } = e, [i, l] = D(e.value, e.defaultValue || "", e.onChange), { focusableProps: $ } = q(e, a), d = I({
11
+ ...e,
12
+ value: i
13
+ }), { isInvalid: n, validationErrors: s, validationDetails: b } = d.displayValidation, { labelProps: v, fieldProps: C, descriptionProps: p, errorMessageProps: P } = R({
14
+ ...e,
15
+ isInvalid: n,
16
+ errorMessage: e.errorMessage || s
17
+ }), g = E(e, {
18
+ labelable: !0
19
+ });
20
+ const y = {
21
+ type: m,
22
+ pattern: e.pattern
23
+ };
24
+ return M(a, i, l), S(e, d, a), O(() => {
25
+ if (a.current instanceof h(a.current).HTMLTextAreaElement) {
26
+ let t = a.current;
27
+ Object.defineProperty(t, "defaultValue", {
28
+ get: () => t.value,
29
+ set: () => {
30
+ },
31
+ configurable: !0
32
+ });
33
+ }
34
+ }, [
35
+ a
36
+ ]), {
37
+ labelProps: v,
38
+ inputProps: x(g, u === "input" ? y : void 0, {
39
+ disabled: c,
40
+ readOnly: f,
41
+ required: o && r === "native",
42
+ "aria-required": o && r === "aria" || void 0,
43
+ "aria-invalid": n || void 0,
44
+ "aria-errormessage": e["aria-errormessage"],
45
+ "aria-activedescendant": e["aria-activedescendant"],
46
+ "aria-autocomplete": e["aria-autocomplete"],
47
+ "aria-haspopup": e["aria-haspopup"],
48
+ "aria-controls": e["aria-controls"],
49
+ value: i,
50
+ onChange: (t) => l(t.target.value),
51
+ autoComplete: e.autoComplete,
52
+ autoCapitalize: e.autoCapitalize,
53
+ maxLength: e.maxLength,
54
+ minLength: e.minLength,
55
+ name: e.name,
56
+ placeholder: e.placeholder,
57
+ inputMode: e.inputMode,
58
+ autoCorrect: e.autoCorrect,
59
+ spellCheck: e.spellCheck,
60
+ [parseInt(L.version, 10) >= 17 ? "enterKeyHint" : "enterkeyhint"]: e.enterKeyHint,
61
+ // Clipboard events
62
+ onCopy: e.onCopy,
63
+ onCut: e.onCut,
64
+ onPaste: e.onPaste,
65
+ // Composition events
66
+ onCompositionEnd: e.onCompositionEnd,
67
+ onCompositionStart: e.onCompositionStart,
68
+ onCompositionUpdate: e.onCompositionUpdate,
69
+ // Selection events
70
+ onSelect: e.onSelect,
71
+ // Input events
72
+ onBeforeInput: e.onBeforeInput,
73
+ onInput: e.onInput,
74
+ ...$,
75
+ ...C
76
+ }),
77
+ descriptionProps: p,
78
+ errorMessageProps: P,
79
+ isInvalid: n,
80
+ validationErrors: s,
81
+ validationDetails: b
82
+ };
83
+ }
84
+ export {
85
+ _ as $
86
+ };
@@ -0,0 +1 @@
1
+ "use strict";const q=require("./useHover-_mv5J4_q.cjs"),E=require("./utils-BNtZbAib.cjs"),I=require("./filterDOMProps-BS2lrgFA.cjs"),o=require("./useFormValidation-ClximP89.cjs"),M=require("./useControlledState-D0L6S_5r.cjs"),c=require("react"),S=require("./useField-B1RU0GKs.cjs"),D=require("./useFocusable-CuPQ7Cm5.cjs");function O(e,a){let{inputElementType:f="input",isDisabled:$=!1,isRequired:r=!1,isReadOnly:b=!1,type:v="text",validationBehavior:l="aria"}=e,[i,d]=M.$458b0a5536c1a7cf$export$40bfa8c7b0832715(e.value,e.defaultValue||"",e.onChange),{focusableProps:m}=D.$f645667febf57a63$export$4c014de7c8940b4c(e,a),u=o.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:i}),{isInvalid:n,validationErrors:s,validationDetails:C}=u.displayValidation,{labelProps:P,fieldProps:g,descriptionProps:y,errorMessageProps:h}=S.$2baaea4c71418dea$export$294aa081a6c6f55d({...e,isInvalid:n,errorMessage:e.errorMessage||s}),x=I.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{labelable:!0});const p={type:v,pattern:e.pattern};return o.$99facab73266f662$export$5add1d006293d136(a,i,d),o.$e93e671b31057976$export$b8473d3665f3a75a(e,u,a),c.useEffect(()=>{if(a.current instanceof q.$431fbd86ca7dc216$export$f21a1ffae260145a(a.current).HTMLTextAreaElement){let t=a.current;Object.defineProperty(t,"defaultValue",{get:()=>t.value,set:()=>{},configurable:!0})}},[a]),{labelProps:P,inputProps:E.$3ef42575df84b30b$export$9d1611c77c2fe928(x,f==="input"?p:void 0,{disabled:$,readOnly:b,required:r&&l==="native","aria-required":r&&l==="aria"||void 0,"aria-invalid":n||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:i,onChange:t=>d(t.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(c.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...m,...g}),descriptionProps:y,errorMessageProps:h,isInvalid:n,validationErrors:s,validationDetails:C}}exports.$2d73ec29415bd339$export$712718f7aec83d5=O;
@@ -0,0 +1,18 @@
1
+ import { $ as i } from "./useControlledState-u436Wbp1.js";
2
+ function o(e = {}) {
3
+ let { isReadOnly: t } = e, [c, d] = i(e.isSelected, e.defaultSelected || !1, e.onChange);
4
+ function l(a) {
5
+ t || d(a);
6
+ }
7
+ function f() {
8
+ t || d(!c);
9
+ }
10
+ return {
11
+ isSelected: c,
12
+ setSelected: l,
13
+ toggle: f
14
+ };
15
+ }
16
+ export {
17
+ o as $
18
+ };
@@ -0,0 +1 @@
1
+ "use strict";const n=require("./useControlledState-D0L6S_5r.cjs");function i(e={}){let{isReadOnly:t}=e,[c,d]=n.$458b0a5536c1a7cf$export$40bfa8c7b0832715(e.isSelected,e.defaultSelected||!1,e.onChange);function f(a){t||d(a)}function l(){t||d(!c)}return{isSelected:c,setSelected:f,toggle:l}}exports.$3017fa7ffdddec74$export$8042c6c013fd5226=i;
@@ -0,0 +1,13 @@
1
+ import { useRef as f, useEffect as s } from "react";
2
+ function a(c, t) {
3
+ const r = f(!0), e = f(null);
4
+ s(() => (r.current = !0, () => {
5
+ r.current = !1;
6
+ }), []), s(() => {
7
+ let u = e.current;
8
+ r.current ? r.current = !1 : (!u || t.some((n, o) => !Object.is(n, u[o]))) && c(), e.current = t;
9
+ }, t);
10
+ }
11
+ export {
12
+ a as $
13
+ };
@@ -0,0 +1 @@
1
+ "use strict";const t=require("react");function a(c,r){const e=t.useRef(!0),f=t.useRef(null);t.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.useEffect(()=>{let u=f.current;e.current?e.current=!1:(!u||r.some((s,n)=>!Object.is(s,u[n])))&&c(),f.current=r},r)}exports.$4f58c5f72bcf79f7$export$496315a1608d9602=a;
@@ -0,0 +1 @@
1
+ "use strict";const u=require("react"),I=require("./clsx-C11secjj.cjs"),$=typeof document<"u"?u.useLayoutEffect:()=>{};function x(e){const t=u.useRef(null);return $(()=>{t.current=e},[e]),u.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function N(e){let[t,n]=u.useState(e),r=u.useRef(null),f=x(()=>{if(!r.current)return;let c=r.current.next();if(c.done){r.current=null;return}t===c.value?f():n(c.value)});$(()=>{r.current&&f()});let l=x(c=>{r.current=c(t),f()});return[t,l]}const p={prefix:String(Math.round(Math.random()*1e10)),current:0},m=u.createContext(p),q=u.createContext(!1);let z=!!(typeof window<"u"&&window.document&&window.document.createElement),y=new WeakMap;function j(e=!1){let t=u.useContext(m),n=u.useRef(null);if(n.current===null&&!e){var r,f;let l=(f=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||f===void 0||(r=f.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(l){let c=y.get(l);c==null?y.set(l,{id:t.current,state:l.memoizedState}):l.memoizedState!==c.state&&(t.current=c.id,y.delete(l))}n.current=++t.current}return n.current}function P(e){let t=u.useContext(m);t===p&&!z&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=j(!!e),r=t===p&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function E(e){let t=u.useId(),[n]=u.useState(S()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${p.prefix}`;return e||`${r}-${t}`}const F=typeof u.useId=="function"?E:P;function H(){return!1}function K(){return!0}function G(e){return()=>{}}function S(){return typeof u.useSyncExternalStore=="function"?u.useSyncExternalStore(G,H,K):u.useContext(q)}let J=!!(typeof window<"u"&&window.document&&window.document.createElement),i=new Map,b;typeof FinalizationRegistry<"u"&&(b=new FinalizationRegistry(e=>{i.delete(e)}));function h(e){let[t,n]=u.useState(e),r=u.useRef(null),f=F(t),l=u.useRef(null);if(b&&b.register(l,f),J){const c=i.get(f);c&&!c.includes(r)?c.push(r):i.set(f,[r])}return $(()=>{let c=f;return()=>{b&&b.unregister(l),i.delete(c)}},[f]),u.useEffect(()=>{let c=r.current;return c&&n(c),()=>{c&&(r.current=null)}}),f}function Q(e,t){if(e===t)return e;let n=i.get(e);if(n)return n.forEach(f=>f.current=t),t;let r=i.get(t);return r?(r.forEach(f=>f.current=e),e):t}function X(e=[]){let t=h(),[n,r]=N(t),f=u.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return $(f,[t,f,...e]),n}function C(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}function g(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let f in r){let l=t[f],c=r[f];typeof l=="function"&&typeof c=="function"&&f[0]==="o"&&f[1]==="n"&&f.charCodeAt(2)>=65&&f.charCodeAt(2)<=90?t[f]=C(l,c):(f==="className"||f==="UNSAFE_className")&&typeof l=="string"&&typeof c=="string"?t[f]=I.clsx(l,c):f==="id"&&l&&c?t.id=Q(l,c):t[f]=c!==void 0?c:l}}return t}function w(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1;const r=e.map(f=>{const l=v(f,t);return n||(n=typeof l=="function"),l});if(n)return()=>{r.forEach((f,l)=>{typeof f=="function"?f():v(e[l],null)})}}}function v(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function M(e){const t=u.useRef(null),n=u.useRef(void 0),r=u.useCallback(f=>{if(typeof e=="function"){const l=e,c=l(f);return()=>{typeof c=="function"?c():l(null)}}else if(e)return e.current=f,()=>{e.current=null}},[e]);return u.useMemo(()=>({get current(){return t.current},set current(f){t.current=f,n.current&&(n.current(),n.current=void 0),f!=null&&(n.current=r(f))}}),[r])}const R=Symbol("default");function Z({values:e,children:t}){for(let[n,r]of e)t=u.createElement(n.Provider,{value:r},t);return t}function D(e){let{className:t,style:n,children:r,defaultClassName:f,defaultChildren:l,defaultStyle:c,values:d}=e;return u.useMemo(()=>{let a,s,o;return typeof t=="function"?a=t({...d,defaultClassName:f}):a=t,typeof n=="function"?s=n({...d,defaultStyle:c||{}}):s=n,typeof r=="function"?o=r({...d,defaultChildren:l}):r==null?o=l:o=r,{className:a??f,style:s||c?{...c,...s}:void 0,children:o??l,"data-rac":""}},[t,n,r,f,l,c,d])}function k(e,t){let n=u.useContext(e);if(t===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=t||R;if(!n.slots[r]){let f=new Intl.ListFormat().format(Object.keys(n.slots).map(c=>`"${c}"`)),l=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${l} Valid slot names are ${f}.`)}return n.slots[r]}return n}function W(e,t,n){let r=k(n,e.slot)||{},{ref:f,...l}=r,c=M(u.useMemo(()=>w(t,f),[t,f])),d=g(l,e);return"style"in l&&l.style&&"style"in e&&e.style&&(typeof l.style=="function"||typeof e.style=="function"?d.style=a=>{let s=typeof l.style=="function"?l.style(a):l.style,o={...a.defaultStyle,...s},V=typeof e.style=="function"?e.style({...a,defaultStyle:o}):e.style;return{...o,...V}}:d.style={...l.style,...e.style}),[d,c]}function A(e=!0){let[t,n]=u.useState(e),r=u.useRef(!1),f=u.useCallback(l=>{r.current=!0,n(!!l)},[]);return $(()=>{r.current||n(!1)},[]),[f,t]}function B(e){const t=/^(data-.*)$/;let n={};for(const r in e)t.test(r)||(n[r]=e[r]);return n}exports.$3ef42575df84b30b$export$9d1611c77c2fe928=g;exports.$5dc95899b306f630$export$c9058316764c140e=w;exports.$64fa3d84918910a7$export$2881499e37b75b9a=Z;exports.$64fa3d84918910a7$export$29f1550f4b0d4415=W;exports.$64fa3d84918910a7$export$4d86445c2cf5e3=D;exports.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8=A;exports.$64fa3d84918910a7$export$c62b8e45d58ddad9=R;exports.$64fa3d84918910a7$export$ef03459518577ad4=B;exports.$64fa3d84918910a7$export$fabf2dc03a41866e=k;exports.$8ae05eaa5c114e9c$export$7f54fc3180508a52=x;exports.$b5e257d569688ac6$export$535bd6ca7f90a273=S;exports.$bdb11010cef70236$export$b4cc09c592e8fdb8=X;exports.$bdb11010cef70236$export$f680877a34711e37=h;exports.$df56164dff5785e2$export$4338b53315abf666=M;exports.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c=$;exports.$ff5963eb1fccf552$export$e08e3b67e392101e=C;
@@ -0,0 +1,308 @@
1
+ import o, { useRef as i, useCallback as x, useState as m, useContext as v, useEffect as V, useMemo as h } from "react";
2
+ import { c as k } from "./clsx-OuTLNxxd.js";
3
+ const y = typeof document < "u" ? o.useLayoutEffect : () => {
4
+ };
5
+ function g(e) {
6
+ const t = i(null);
7
+ return y(() => {
8
+ t.current = e;
9
+ }, [
10
+ e
11
+ ]), x((...n) => {
12
+ const r = t.current;
13
+ return r == null ? void 0 : r(...n);
14
+ }, []);
15
+ }
16
+ function I(e) {
17
+ let [t, n] = m(e), r = i(null), l = g(() => {
18
+ if (!r.current) return;
19
+ let u = r.current.next();
20
+ if (u.done) {
21
+ r.current = null;
22
+ return;
23
+ }
24
+ t === u.value ? l() : n(u.value);
25
+ });
26
+ y(() => {
27
+ r.current && l();
28
+ });
29
+ let f = g((u) => {
30
+ r.current = u(t), l();
31
+ });
32
+ return [
33
+ t,
34
+ f
35
+ ];
36
+ }
37
+ const b = {
38
+ prefix: String(Math.round(Math.random() * 1e10)),
39
+ current: 0
40
+ }, C = /* @__PURE__ */ o.createContext(b), N = /* @__PURE__ */ o.createContext(!1);
41
+ let j = !!(typeof window < "u" && window.document && window.document.createElement), S = /* @__PURE__ */ new WeakMap();
42
+ function z(e = !1) {
43
+ let t = v(C), n = i(null);
44
+ if (n.current === null && !e) {
45
+ var r, l;
46
+ let f = (l = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || l === void 0 || (r = l.ReactCurrentOwner) === null || r === void 0 ? void 0 : r.current;
47
+ if (f) {
48
+ let u = S.get(f);
49
+ u == null ? S.set(f, {
50
+ id: t.current,
51
+ state: f.memoizedState
52
+ }) : f.memoizedState !== u.state && (t.current = u.id, S.delete(f));
53
+ }
54
+ n.current = ++t.current;
55
+ }
56
+ return n.current;
57
+ }
58
+ function P(e) {
59
+ let t = v(C);
60
+ t === b && !j && process.env.NODE_ENV !== "production" && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
61
+ let n = z(!!e), r = t === b && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${t.prefix}`;
62
+ return e || `${r}-${n}`;
63
+ }
64
+ function R(e) {
65
+ let t = o.useId(), [n] = m(K()), r = n || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${b.prefix}`;
66
+ return e || `${r}-${t}`;
67
+ }
68
+ const q = typeof o.useId == "function" ? R : P;
69
+ function E() {
70
+ return !1;
71
+ }
72
+ function F() {
73
+ return !0;
74
+ }
75
+ function H(e) {
76
+ return () => {
77
+ };
78
+ }
79
+ function K() {
80
+ return typeof o.useSyncExternalStore == "function" ? o.useSyncExternalStore(H, E, F) : v(N);
81
+ }
82
+ let G = !!(typeof window < "u" && window.document && window.document.createElement), $ = /* @__PURE__ */ new Map(), p;
83
+ typeof FinalizationRegistry < "u" && (p = new FinalizationRegistry((e) => {
84
+ $.delete(e);
85
+ }));
86
+ function J(e) {
87
+ let [t, n] = m(e), r = i(null), l = q(t), f = i(null);
88
+ if (p && p.register(f, l), G) {
89
+ const u = $.get(l);
90
+ u && !u.includes(r) ? u.push(r) : $.set(l, [
91
+ r
92
+ ]);
93
+ }
94
+ return y(() => {
95
+ let u = l;
96
+ return () => {
97
+ p && p.unregister(f), $.delete(u);
98
+ };
99
+ }, [
100
+ l
101
+ ]), V(() => {
102
+ let u = r.current;
103
+ return u && n(u), () => {
104
+ u && (r.current = null);
105
+ };
106
+ }), l;
107
+ }
108
+ function Q(e, t) {
109
+ if (e === t) return e;
110
+ let n = $.get(e);
111
+ if (n)
112
+ return n.forEach((l) => l.current = t), t;
113
+ let r = $.get(t);
114
+ return r ? (r.forEach((l) => l.current = e), e) : t;
115
+ }
116
+ function L(e = []) {
117
+ let t = J(), [n, r] = I(t), l = x(() => {
118
+ r(function* () {
119
+ yield t, yield document.getElementById(t) ? t : void 0;
120
+ });
121
+ }, [
122
+ t,
123
+ r
124
+ ]);
125
+ return y(l, [
126
+ t,
127
+ l,
128
+ ...e
129
+ ]), n;
130
+ }
131
+ function X(...e) {
132
+ return (...t) => {
133
+ for (let n of e) typeof n == "function" && n(...t);
134
+ };
135
+ }
136
+ function Z(...e) {
137
+ let t = {
138
+ ...e[0]
139
+ };
140
+ for (let n = 1; n < e.length; n++) {
141
+ let r = e[n];
142
+ for (let l in r) {
143
+ let f = t[l], u = r[l];
144
+ typeof f == "function" && typeof u == "function" && // This is a lot faster than a regex.
145
+ l[0] === "o" && l[1] === "n" && l.charCodeAt(2) >= /* 'A' */
146
+ 65 && l.charCodeAt(2) <= /* 'Z' */
147
+ 90 ? t[l] = X(f, u) : (l === "className" || l === "UNSAFE_className") && typeof f == "string" && typeof u == "string" ? t[l] = k(f, u) : l === "id" && f && u ? t.id = Q(f, u) : t[l] = u !== void 0 ? u : f;
148
+ }
149
+ }
150
+ return t;
151
+ }
152
+ function D(...e) {
153
+ return e.length === 1 && e[0] ? e[0] : (t) => {
154
+ let n = !1;
155
+ const r = e.map((l) => {
156
+ const f = w(l, t);
157
+ return n || (n = typeof f == "function"), f;
158
+ });
159
+ if (n) return () => {
160
+ r.forEach((l, f) => {
161
+ typeof l == "function" ? l() : w(e[f], null);
162
+ });
163
+ };
164
+ };
165
+ }
166
+ function w(e, t) {
167
+ if (typeof e == "function") return e(t);
168
+ e != null && (e.current = t);
169
+ }
170
+ function W(e) {
171
+ const t = i(null), n = i(void 0), r = x((l) => {
172
+ if (typeof e == "function") {
173
+ const f = e, u = f(l);
174
+ return () => {
175
+ typeof u == "function" ? u() : f(null);
176
+ };
177
+ } else if (e)
178
+ return e.current = l, () => {
179
+ e.current = null;
180
+ };
181
+ }, [
182
+ e
183
+ ]);
184
+ return h(() => ({
185
+ get current() {
186
+ return t.current;
187
+ },
188
+ set current(l) {
189
+ t.current = l, n.current && (n.current(), n.current = void 0), l != null && (n.current = r(l));
190
+ }
191
+ }), [
192
+ r
193
+ ]);
194
+ }
195
+ const A = Symbol("default");
196
+ function O({ values: e, children: t }) {
197
+ for (let [n, r] of e)
198
+ t = /* @__PURE__ */ o.createElement(n.Provider, {
199
+ value: r
200
+ }, t);
201
+ return t;
202
+ }
203
+ function T(e) {
204
+ let { className: t, style: n, children: r, defaultClassName: l, defaultChildren: f, defaultStyle: u, values: s } = e;
205
+ return h(() => {
206
+ let a, d, c;
207
+ return typeof t == "function" ? a = t({
208
+ ...s,
209
+ defaultClassName: l
210
+ }) : a = t, typeof n == "function" ? d = n({
211
+ ...s,
212
+ defaultStyle: u || {}
213
+ }) : d = n, typeof r == "function" ? c = r({
214
+ ...s,
215
+ defaultChildren: f
216
+ }) : r == null ? c = f : c = r, {
217
+ className: a ?? l,
218
+ style: d || u ? {
219
+ ...u,
220
+ ...d
221
+ } : void 0,
222
+ children: c ?? f,
223
+ "data-rac": ""
224
+ };
225
+ }, [
226
+ t,
227
+ n,
228
+ r,
229
+ l,
230
+ f,
231
+ u,
232
+ s
233
+ ]);
234
+ }
235
+ function B(e, t) {
236
+ let n = v(e);
237
+ if (t === null)
238
+ return null;
239
+ if (n && typeof n == "object" && "slots" in n && n.slots) {
240
+ let r = t || A;
241
+ if (!n.slots[r]) {
242
+ let l = new Intl.ListFormat().format(Object.keys(n.slots).map((u) => `"${u}"`)), f = t ? `Invalid slot "${t}".` : "A slot prop is required.";
243
+ throw new Error(`${f} Valid slot names are ${l}.`);
244
+ }
245
+ return n.slots[r];
246
+ }
247
+ return n;
248
+ }
249
+ function _(e, t, n) {
250
+ let r = B(n, e.slot) || {}, { ref: l, ...f } = r, u = W(h(() => D(t, l), [
251
+ t,
252
+ l
253
+ ])), s = Z(f, e);
254
+ return "style" in f && f.style && "style" in e && e.style && (typeof f.style == "function" || typeof e.style == "function" ? s.style = (a) => {
255
+ let d = typeof f.style == "function" ? f.style(a) : f.style, c = {
256
+ ...a.defaultStyle,
257
+ ...d
258
+ }, M = typeof e.style == "function" ? e.style({
259
+ ...a,
260
+ defaultStyle: c
261
+ }) : e.style;
262
+ return {
263
+ ...c,
264
+ ...M
265
+ };
266
+ } : s.style = {
267
+ ...f.style,
268
+ ...e.style
269
+ }), [
270
+ s,
271
+ u
272
+ ];
273
+ }
274
+ function ee(e = !0) {
275
+ let [t, n] = m(e), r = i(!1), l = x((f) => {
276
+ r.current = !0, n(!!f);
277
+ }, []);
278
+ return y(() => {
279
+ r.current || n(!1);
280
+ }, []), [
281
+ l,
282
+ t
283
+ ];
284
+ }
285
+ function te(e) {
286
+ const t = /^(data-.*)$/;
287
+ let n = {};
288
+ for (const r in e) t.test(r) || (n[r] = e[r]);
289
+ return n;
290
+ }
291
+ export {
292
+ y as $,
293
+ _ as a,
294
+ T as b,
295
+ J as c,
296
+ Z as d,
297
+ W as e,
298
+ L as f,
299
+ g,
300
+ B as h,
301
+ ee as i,
302
+ te as j,
303
+ O as k,
304
+ K as l,
305
+ D as m,
306
+ X as n,
307
+ A as o
308
+ };
package/x-CvxiAZTW.cjs ADDED
@@ -0,0 +1,6 @@
1
+ "use strict";const e=require("./createLucideIcon-DAY4oS-S.cjs");/**
2
+ * @license lucide-react v0.453.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const c=e.createLucideIcon("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);exports.X=c;
package/x-JK7i-TQC.js ADDED
@@ -0,0 +1,14 @@
1
+ import { c as e } from "./createLucideIcon-DeWljiyi.js";
2
+ /**
3
+ * @license lucide-react v0.453.0 - ISC
4
+ *
5
+ * This source code is licensed under the ISC license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */
8
+ const c = e("X", [
9
+ ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
10
+ ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
11
+ ]);
12
+ export {
13
+ c as X
14
+ };
package/flex/Flex.d.ts DELETED
@@ -1,17 +0,0 @@
1
- import * as React from 'react';
2
- export interface FlexProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
3
- children: React.ReactNode;
4
- /** Removes outer margins for nested use. First Flex on a page should have outer margins. */
5
- fluid?: boolean;
6
- }
7
- /**
8
- * Grid based on display: flex;
9
- * Calculates breakpoints and distributes columns according to MV specifications
10
- *
11
- * ### Children
12
- * Use FlexItem to manage each column.
13
- * FlexItem accepts values of 1 through 12 and auto.
14
- *
15
- * @see {@link: https://migrationsverket.se/components/flex}
16
- */
17
- export declare const Flex: React.FC<FlexProps>;
@@ -1,15 +0,0 @@
1
- import * as React from 'react';
2
- export interface FlexItemProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
3
- children: React.ReactNode;
4
- /** Column size and behaviour */
5
- col?: '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | 'auto' | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
6
- /** Additional spacing between columns */
7
- offset?: '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
8
- }
9
- /**
10
- * Columns based on display: flex;
11
- * FlexItem accepts values of 1 through 12 and auto.
12
- *
13
- * @see {@link: https://migrationsverket.se/components/flex}
14
- */
15
- export declare const FlexItem: React.FC<FlexItemProps>;
package/flex/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export { Flex } from './Flex';
2
- export { FlexItem } from './FlexItem';