@midas-ds/components 10.1.1 → 10.3.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 (383) hide show
  1. package/AccordionItem-BGWiWjxA.cjs +1 -0
  2. package/AccordionItem-ChHpW8EW.js +320 -0
  3. package/BadgeContainer-DM8TdyMT.js +37 -0
  4. package/BadgeContainer-I1XA3OCl.cjs +1 -0
  5. package/Breadcrumbs-CwDUNIqF.js +250 -0
  6. package/Breadcrumbs-DtjJ1UmU.cjs +1 -0
  7. package/Button-BoJl6JGM.cjs +1 -0
  8. package/Button-Csih3v23.js +38 -0
  9. package/Button-DjBChs7s.js +340 -0
  10. package/Button-htW9qIsS.cjs +1 -0
  11. package/Button.module-DEQtBYe5.cjs +1 -0
  12. package/Button.module-tti8HGxs.js +14 -0
  13. package/ButtonGroup-DUqW5dzM.cjs +1 -0
  14. package/ButtonGroup-DvVvear6.js +22 -0
  15. package/CHANGELOG.md +68 -0
  16. package/Card-0G0mj9q5.cjs +1 -0
  17. package/Card-yrtGzt70.js +131 -0
  18. package/CharacterCounter-BL_nZHya.js +22 -0
  19. package/CharacterCounter-CHcTDHO-.cjs +1 -0
  20. package/Checkbox-5HINZdGu.js +263 -0
  21. package/Checkbox-DqcPg5hz.cjs +1 -0
  22. package/CheckboxGroup-BBrSMuDY.cjs +1 -0
  23. package/CheckboxGroup-CLgixk2p.js +243 -0
  24. package/Collection-BIDsXNhi.cjs +1 -0
  25. package/Collection-Brgjpkne.js +576 -0
  26. package/ColorSchemeSwitch-BpzQ7g0b.js +106 -0
  27. package/ColorSchemeSwitch-C-qWuqkU.cjs +16 -0
  28. package/ComboBox-CVDyp2a-.js +1379 -0
  29. package/ComboBox-CWJUg9Xx.cjs +1 -0
  30. package/DateField-DeDhiYnW.cjs +1 -0
  31. package/DateField-DhU3q-rG.js +47 -0
  32. package/DateInputDivider-ADvOavHw.cjs +1 -0
  33. package/DateInputDivider-CF4xWsMT.js +2904 -0
  34. package/DateRangePicker-BsAHhy99.cjs +6 -0
  35. package/DateRangePicker-ziD1_k1W.js +881 -0
  36. package/Dialog-B8GTYbvu.cjs +1 -0
  37. package/Dialog-BOrYdX50.cjs +1 -0
  38. package/Dialog-CXNu48AC.js +208 -0
  39. package/Dialog-D14MbJ7o.js +1633 -0
  40. package/DragAndDrop-DNth776R.cjs +1 -0
  41. package/DragAndDrop-o3ruz_SR.js +60 -0
  42. package/Dropdown-CJ6My6EI.cjs +6 -0
  43. package/Dropdown-Df58j43I.js +84 -0
  44. package/FieldError-CAcjosk_.js +46 -0
  45. package/FieldError-CKBb2-mp.cjs +1 -0
  46. package/FileUpload-CxCOtyB9.cjs +2 -0
  47. package/FileUpload-D6qoEAjn.js +2373 -0
  48. package/FocusScope-5c9SVBcR.cjs +1 -0
  49. package/FocusScope-CxkURfoc.js +625 -0
  50. package/Form-BuOomA4T.cjs +1 -0
  51. package/Form-CXcEMuBf.js +5 -0
  52. package/Grid--OhtgCo6.js +27 -0
  53. package/Grid-DVQtOcu9.cjs +1 -0
  54. package/GridItem-DlbSdRmB.js +246 -0
  55. package/GridItem-XgHmZWXY.cjs +1 -0
  56. package/Group-B6EslsHZ.js +44 -0
  57. package/Group-CgiqQHH1.cjs +1 -0
  58. package/Heading-BFtiin0g.js +46 -0
  59. package/Heading-mHhCbGjY.cjs +1 -0
  60. package/Hidden-BxRZGdEW.cjs +1 -0
  61. package/Hidden-C9KWUR7b.js +34 -0
  62. package/InfoBanner-BLM-TJJ6.js +83 -0
  63. package/InfoBanner-C2kTIsrB.cjs +1 -0
  64. package/Input-BTzwcf72.js +41 -0
  65. package/Input-DKSAYvsw.cjs +1 -0
  66. package/Label-7Ybb99CE.cjs +1 -0
  67. package/Label-BwJrdqEE.js +70 -0
  68. package/Layout-1g6bMH62.cjs +16 -0
  69. package/Layout-Ey8flY7E.js +468 -0
  70. package/Link-B88l_oaE.cjs +6 -0
  71. package/Link-BQhauBuw.cjs +1 -0
  72. package/Link-DX5BbBnn.js +59 -0
  73. package/Link-yNO2-sqx.js +71 -0
  74. package/LinkButton-CBpGLETx.cjs +6 -0
  75. package/LinkButton-o6uS1XsR.js +69 -0
  76. package/ListBox-DP9M4H6R.cjs +1 -0
  77. package/ListBox-GnVK_Pdq.js +529 -0
  78. package/ListBoxButton-DPBrtXyv.cjs +1 -0
  79. package/ListBoxButton-D_J3jlP0.js +15 -0
  80. package/ListBoxSection-BGaigBnG.cjs +1 -0
  81. package/ListBoxSection-C0BGnpB4.js +1058 -0
  82. package/ListKeyboardDelegate-DNI8GQtX.js +167 -0
  83. package/ListKeyboardDelegate-DTg9h4v6.cjs +1 -0
  84. package/Logo-BIrOEINM.js +133 -0
  85. package/Logo-DT2_2O43.cjs +1 -0
  86. package/OverlayArrow-CDLXPTew.js +506 -0
  87. package/OverlayArrow-D75k-EMl.cjs +1 -0
  88. package/Popover-BGGXeD54.js +38 -0
  89. package/Popover-CqNWzPf-.cjs +1 -0
  90. package/ProgressBar-DMSg-Prr.js +53 -0
  91. package/ProgressBar-Jbg28j2a.cjs +1 -0
  92. package/RSPContexts-BW2SEIqe.js +11 -0
  93. package/RSPContexts-D8hmBfGm.cjs +1 -0
  94. package/Radio-BwqrdhQE.cjs +1 -0
  95. package/Radio-Cz29wPXd.js +311 -0
  96. package/RangeCalendar-BehUaydF.cjs +11 -0
  97. package/RangeCalendar-RAlAHlNL.js +1683 -0
  98. package/SearchField-CxMwDeUM.cjs +6 -0
  99. package/SearchField-IlvZ3Kh6.js +362 -0
  100. package/Select-2q1iSzAX.cjs +1 -0
  101. package/Select-BVQZtoi9.js +646 -0
  102. package/SelectionManager-B4ORduja.js +1032 -0
  103. package/SelectionManager-CwYux2h3.cjs +1 -0
  104. package/Separator-Cu9fYKUM.js +59 -0
  105. package/Separator-DECIYLtZ.cjs +1 -0
  106. package/Skeleton-BAwbfKBW.cjs +1 -0
  107. package/Skeleton-BePDRmrO.js +40 -0
  108. package/Spinner-D31SXm-U.js +41 -0
  109. package/Spinner-P35rvvsl.cjs +6 -0
  110. package/Table-B40CGLT-.cjs +16 -0
  111. package/Table-F4oYBtUM.js +2447 -0
  112. package/Tabs-B4oZJkZG.js +404 -0
  113. package/Tabs-DA2qXhzb.cjs +1 -0
  114. package/Tag-DPAGmcMK.cjs +1 -0
  115. package/Tag-Du7GvSv2.js +745 -0
  116. package/Text-3MNwRMpI.cjs +1 -0
  117. package/Text-B2K-BJKQ.cjs +1 -0
  118. package/Text-BoXuUVVH.js +15 -0
  119. package/Text-jWWg0B20.js +32 -0
  120. package/TextArea-C7JZ_pQd.cjs +1 -0
  121. package/TextArea-XeBCSyzl.js +191 -0
  122. package/TextField-BgNdhZi_.cjs +1 -0
  123. package/TextField-C-hTPukq.js +119 -0
  124. package/TextField.module-BcpPBWnD.js +13 -0
  125. package/TextField.module-Dw5Rtn9y.cjs +1 -0
  126. package/Toast-AbDA1BOs.cjs +1 -0
  127. package/Toast-Btg21Xge.js +989 -0
  128. package/ToggleButtonGroup-B5yz1tm2.js +210 -0
  129. package/ToggleButtonGroup-BFDoj0P6.cjs +1 -0
  130. package/Tooltip-CMLs7WMw.js +283 -0
  131. package/Tooltip-DeBuBKhS.cjs +1 -0
  132. package/VisuallyHidden-CLWHbz2n.cjs +1 -0
  133. package/VisuallyHidden-ZCYf65q4.js +40 -0
  134. package/accordion/index.cjs +1 -0
  135. package/accordion/index.js +5 -0
  136. package/arrow-right-Dg8sttFO.js +14 -0
  137. package/arrow-right-QJ2gXPKQ.cjs +6 -0
  138. package/assets/AccordionItem.css +1 -0
  139. package/assets/BadgeContainer.css +1 -0
  140. package/assets/Breadcrumbs.css +1 -0
  141. package/assets/Button.css +1 -0
  142. package/assets/ButtonGroup.css +1 -0
  143. package/assets/Card.css +1 -0
  144. package/assets/CharacterCounter.css +1 -0
  145. package/assets/Checkbox.css +1 -0
  146. package/assets/ColorSchemeSwitch.css +1 -0
  147. package/assets/ComboBox.css +1 -0
  148. package/assets/DateField.css +1 -0
  149. package/assets/DateInputDivider.css +1 -0
  150. package/assets/DateRangePicker.css +1 -0
  151. package/assets/Dialog.css +1 -0
  152. package/assets/Dropdown.css +1 -0
  153. package/assets/FieldError.css +1 -0
  154. package/assets/FileUpload.css +1 -0
  155. package/assets/GridItem.css +1 -0
  156. package/assets/Heading.css +1 -0
  157. package/assets/InfoBanner.css +1 -0
  158. package/assets/Label.css +1 -0
  159. package/assets/Layout.css +1 -0
  160. package/assets/Link.css +1 -0
  161. package/assets/LinkButton.css +1 -0
  162. package/assets/ListBoxSection.css +1 -0
  163. package/assets/Logo.css +1 -0
  164. package/assets/Popover.css +1 -0
  165. package/assets/ProgressBar.css +1 -0
  166. package/assets/Radio.css +1 -0
  167. package/assets/RangeCalendar.css +1 -0
  168. package/assets/SearchField.css +1 -0
  169. package/assets/Select.css +1 -0
  170. package/assets/Skeleton.css +1 -0
  171. package/assets/Spinner.css +1 -0
  172. package/assets/Table.css +1 -0
  173. package/assets/Tabs.css +1 -0
  174. package/assets/Tag.css +1 -0
  175. package/assets/Text.css +1 -0
  176. package/assets/TextField.css +1 -0
  177. package/assets/Toast.css +1 -0
  178. package/assets/ToggleButtonGroup.css +1 -0
  179. package/assets/Tooltip.css +1 -0
  180. package/badge/index.cjs +1 -0
  181. package/badge/index.js +5 -0
  182. package/breadcrumbs/index.cjs +1 -0
  183. package/breadcrumbs/index.js +4 -0
  184. package/button/index.cjs +1 -0
  185. package/button/index.js +6 -0
  186. package/calendar/CalendarHeader.d.ts +2 -1
  187. package/calendar/index.cjs +1 -0
  188. package/calendar/index.js +5 -0
  189. package/card/index.cjs +1 -0
  190. package/card/index.js +10 -0
  191. package/character-counter/index.cjs +1 -0
  192. package/character-counter/index.js +4 -0
  193. package/check-CLF6Yxza.js +11 -0
  194. package/check-D_KoootC.cjs +6 -0
  195. package/checkbox/Checkbox.d.ts +2 -2
  196. package/checkbox/CheckboxGroup.d.ts +8 -8
  197. package/checkbox/CheckboxGroupFieldError.d.ts +8 -0
  198. package/checkbox/CheckboxGroupItem.d.ts +3 -0
  199. package/checkbox/CheckboxInner.d.ts +2 -0
  200. package/checkbox/SingleCheckbox.d.ts +3 -0
  201. package/checkbox/context.d.ts +3 -0
  202. package/checkbox/index.cjs +1 -0
  203. package/checkbox/index.d.ts +2 -1
  204. package/checkbox/index.js +6 -0
  205. package/checkbox/intl/translations.json.d.ts +35 -0
  206. package/checkbox/types.d.ts +14 -0
  207. package/checkbox/useSelectAll.d.ts +7 -0
  208. package/chevron-down-Cd1bkzXT.js +13 -0
  209. package/chevron-down-jl83cllc.cjs +6 -0
  210. package/circle-check-B9HYcH7Z.js +26 -0
  211. package/circle-check-BGo8gML8.cjs +11 -0
  212. package/clsx-C11secjj.cjs +1 -0
  213. package/clsx-OuTLNxxd.js +16 -0
  214. package/color-scheme-switch/index.cjs +1 -0
  215. package/color-scheme-switch/index.js +4 -0
  216. package/combobox/ComboBox.d.ts +3 -1
  217. package/combobox/index.cjs +1 -0
  218. package/combobox/index.js +7 -0
  219. package/common/types.d.ts +2 -0
  220. package/context-C81gPYvC.js +80 -0
  221. package/context-DjwhtgxQ.cjs +1 -0
  222. package/createLucideIcon-Cg_wkoIA.cjs +21 -0
  223. package/createLucideIcon-DeWljiyi.js +79 -0
  224. package/date-field/DateField.d.ts +3 -0
  225. package/date-field/index.cjs +1 -0
  226. package/date-field/index.js +8 -0
  227. package/date-picker/DatePicker.d.ts +3 -0
  228. package/date-picker/DateRangePicker.d.ts +3 -0
  229. package/date-picker/index.cjs +1 -0
  230. package/date-picker/index.js +5 -0
  231. package/dropdown/index.cjs +1 -0
  232. package/dropdown/index.js +5 -0
  233. package/field-error/FieldError.d.ts +4 -1
  234. package/field-error/index.cjs +1 -0
  235. package/field-error/index.js +4 -0
  236. package/file-upload/FileUpload.d.ts +3 -0
  237. package/file-upload/index.cjs +1 -0
  238. package/file-upload/index.js +4 -0
  239. package/filterDOMProps-BS2lrgFA.cjs +1 -0
  240. package/filterDOMProps-D6KHYVBX.js +24 -0
  241. package/getScrollParent-BhFcYrwL.js +9 -0
  242. package/getScrollParent-DDJu9WHU.cjs +1 -0
  243. package/grid/Grid.d.ts +15 -4
  244. package/grid/GridItem.d.ts +31 -2
  245. package/grid/index.cjs +1 -0
  246. package/grid/index.d.ts +2 -2
  247. package/grid/index.js +8 -0
  248. package/heading/index.cjs +1 -0
  249. package/heading/index.js +4 -0
  250. package/index-CGRFP4CC.js +120 -0
  251. package/index-Dsz3aiWt.cjs +17 -0
  252. package/index.cjs +1 -169
  253. package/index.d.ts +1 -1
  254. package/index.js +129 -29979
  255. package/inertValue-B3AFhVG4.cjs +1 -0
  256. package/inertValue-B7loUihk.js +8 -0
  257. package/info-BZwphdye.js +15 -0
  258. package/info-CIEIENo6.cjs +6 -0
  259. package/info-banner/index.cjs +1 -0
  260. package/info-banner/index.js +4 -0
  261. package/label/InfoPopover.d.ts +9 -0
  262. package/label/LabelWrapper.d.ts +11 -0
  263. package/label/index.cjs +1 -0
  264. package/label/index.d.ts +1 -0
  265. package/label/index.js +4 -0
  266. package/layout/index.cjs +1 -0
  267. package/layout/index.js +8 -0
  268. package/link/index.cjs +1 -0
  269. package/link/index.js +6 -0
  270. package/link-button/index.cjs +1 -0
  271. package/link-button/index.js +6 -0
  272. package/list-box/index.cjs +1 -0
  273. package/list-box/index.js +9 -0
  274. package/logo/index.cjs +1 -0
  275. package/logo/index.js +4 -0
  276. package/modal/index.cjs +1 -0
  277. package/modal/index.js +6 -0
  278. package/number-BE8InLgI.js +6 -0
  279. package/number-E0x3H9cL.cjs +1 -0
  280. package/package.json +4 -4
  281. package/popover/Popover.d.ts +7 -0
  282. package/popover/index.cjs +1 -0
  283. package/popover/index.d.ts +1 -0
  284. package/popover/index.js +4 -0
  285. package/progress-bar/index.cjs +1 -0
  286. package/progress-bar/index.js +4 -0
  287. package/radio/Radio.d.ts +3 -0
  288. package/radio/index.cjs +1 -0
  289. package/radio/index.js +5 -0
  290. package/scrollIntoView-C8doLzDd.cjs +1 -0
  291. package/scrollIntoView-Hwb_aaNf.js +87 -0
  292. package/search-field/index.cjs +1 -0
  293. package/search-field/index.js +4 -0
  294. package/select/index.cjs +1 -0
  295. package/select/index.js +4 -0
  296. package/skeleton/Skeleton.d.ts +5 -0
  297. package/skeleton/index.cjs +1 -0
  298. package/skeleton/index.js +4 -0
  299. package/spinner/index.cjs +1 -0
  300. package/spinner/index.js +4 -0
  301. package/square-arrow-out-up-right-BkyqV2PN.js +15 -0
  302. package/square-arrow-out-up-right-V4Gd08uI.cjs +6 -0
  303. package/table/Table.d.ts +7 -1
  304. package/table/index.cjs +1 -0
  305. package/table/index.js +9 -0
  306. package/tabs/index.cjs +1 -0
  307. package/tabs/index.js +4 -0
  308. package/tag/index.cjs +1 -0
  309. package/tag/index.js +5 -0
  310. package/text/index.cjs +1 -0
  311. package/text/index.js +4 -0
  312. package/textfield/TextFieldBase.d.ts +2 -0
  313. package/textfield/index.cjs +1 -0
  314. package/textfield/index.js +7 -0
  315. package/theme/index.cjs +1 -0
  316. package/theme/index.d.ts +4 -0
  317. package/{theme.js → theme/index.js} +2 -2
  318. package/theme/tokens.d.ts +10 -0
  319. package/toast/index.cjs +1 -0
  320. package/toast/index.js +9 -0
  321. package/toggle-button/index.cjs +1 -0
  322. package/toggle-button/index.js +5 -0
  323. package/tokens-p6pg1Cea.cjs +1 -0
  324. package/{tokens-C0U7hdoO.js → tokens-xp-7KMK7.js} +18 -8
  325. package/tooltip/index.cjs +1 -0
  326. package/tooltip/index.js +5 -0
  327. package/triangle-alert-DJW8U7jL.cjs +6 -0
  328. package/triangle-alert-wxyxspAl.js +21 -0
  329. package/useButton-B8dB9sot.js +47 -0
  330. package/useButton-cpNi-fY4.cjs +1 -0
  331. package/useControlledState-D0L6S_5r.cjs +1 -0
  332. package/useControlledState-u436Wbp1.js +30 -0
  333. package/useDateFormatter-CnxoJ4jF.cjs +1 -0
  334. package/useDateFormatter-EHm4auIg.js +1571 -0
  335. package/useEvent-DxBxMX2V.cjs +1 -0
  336. package/useEvent-IsD2Awnh.js +21 -0
  337. package/useField-CXKYU74k.cjs +1 -0
  338. package/useField-DvpGZkw_.js +35 -0
  339. package/useFilter-BTgDWHVx.cjs +1 -0
  340. package/useFilter-CUq74PQ2.js +35 -0
  341. package/useFocusRing-CbImDrwF.cjs +1 -0
  342. package/useFocusRing-XnR3cZjO.js +82 -0
  343. package/useFocusable-C8uh8K4g.js +125 -0
  344. package/useFocusable-NUVSFcRC.cjs +1 -0
  345. package/useFormValidation-BIGzfO9h.js +215 -0
  346. package/useFormValidation-ClximP89.cjs +1 -0
  347. package/useHasTabbableChild-C-1mZUQe.js +34 -0
  348. package/useHasTabbableChild-DCBTulUQ.cjs +1 -0
  349. package/useHighlightSelectionDescription-CnBDT86u.js +567 -0
  350. package/useHighlightSelectionDescription-CzYucm61.cjs +1 -0
  351. package/useHover-DjIHtjGN.js +490 -0
  352. package/useHover-_mv5J4_q.cjs +1 -0
  353. package/useLabels-BDwkBYbE.js +17 -0
  354. package/useLabels-BLOfc6Y-.cjs +1 -0
  355. package/useListState-Bx8u4IFG.cjs +1 -0
  356. package/useListState-CrZFZffI.js +132 -0
  357. package/useLocalizedStringFormatter-BKoxGZf1.js +96 -0
  358. package/useLocalizedStringFormatter-BsxLt89S.cjs +1 -0
  359. package/useLocalizedStringFormatter-D3JQyjb4.js +21 -0
  360. package/useLocalizedStringFormatter-ioacM-Yt.cjs +1 -0
  361. package/useObserveElement-BdI4zgd7.js +27 -0
  362. package/useObserveElement-MhzEsCkX.cjs +1 -0
  363. package/usePress-0AjDbW9R.cjs +7 -0
  364. package/usePress-CNjmDzap.js +542 -0
  365. package/useSingleSelectListState-0AGHxvy3.js +34 -0
  366. package/useSingleSelectListState-Cl3KV5E1.cjs +1 -0
  367. package/useTextField--czJtyNd.cjs +1 -0
  368. package/useTextField-Cw-33OP_.js +86 -0
  369. package/useToggleState-Bz5rAf4C.js +18 -0
  370. package/useToggleState-DoIkSQdj.cjs +1 -0
  371. package/useUpdateEffect-C5YQs_1w.cjs +1 -0
  372. package/useUpdateEffect-CCDx8D4X.js +13 -0
  373. package/utils-BNtZbAib.cjs +1 -0
  374. package/utils-DIMfEPAt.js +308 -0
  375. package/x-H8Zrx8-x.cjs +6 -0
  376. package/x-JK7i-TQC.js +14 -0
  377. package/flex/Flex.d.ts +0 -17
  378. package/flex/FlexItem.d.ts +0 -15
  379. package/flex/index.d.ts +0 -2
  380. package/index.css +0 -1
  381. package/theme.cjs +0 -1
  382. package/tokens-COoF1t17.cjs +0 -1
  383. /package/{global.css → assets/global.css} +0 -0
@@ -0,0 +1,7 @@
1
+ import { C as a, a as b, c as e, b as x } from "../ComboBox-CVDyp2a-.js";
2
+ export {
3
+ a as ComboBox,
4
+ b as ComboBoxItem,
5
+ e as ComboBoxSection,
6
+ x as ComboBoxSelection
7
+ };
package/common/types.d.ts CHANGED
@@ -1 +1,3 @@
1
1
  export type Size = 'large' | 'medium';
2
+ export type ColumnSize = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | 'auto' | 'grow' | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 'full' | 'half' | 'third' | 'quarter';
3
+ export type OffsetSize = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 'auto' | 'half' | 'third' | 'quarter';
@@ -0,0 +1,80 @@
1
+ import l, { useState as i, useEffect as d, useContext as $ } from "react";
2
+ import { k as u } from "./utils-DIMfEPAt.js";
3
+ const s = /* @__PURE__ */ new Set([
4
+ "Arab",
5
+ "Syrc",
6
+ "Samr",
7
+ "Mand",
8
+ "Thaa",
9
+ "Mend",
10
+ "Nkoo",
11
+ "Adlm",
12
+ "Rohg",
13
+ "Hebr"
14
+ ]), b = /* @__PURE__ */ new Set([
15
+ "ae",
16
+ "ar",
17
+ "arc",
18
+ "bcc",
19
+ "bqi",
20
+ "ckb",
21
+ "dv",
22
+ "fa",
23
+ "glk",
24
+ "he",
25
+ "ku",
26
+ "mzn",
27
+ "nqo",
28
+ "pnb",
29
+ "ps",
30
+ "sd",
31
+ "ug",
32
+ "ur",
33
+ "yi"
34
+ ]);
35
+ function p(e) {
36
+ if (Intl.Locale) {
37
+ let t = new Intl.Locale(e).maximize(), r = typeof t.getTextInfo == "function" ? t.getTextInfo() : t.textInfo;
38
+ if (r) return r.direction === "rtl";
39
+ if (t.script) return s.has(t.script);
40
+ }
41
+ let n = e.split("-")[0];
42
+ return b.has(n);
43
+ }
44
+ const g = Symbol.for("react-aria.i18n.locale");
45
+ function c() {
46
+ let e = typeof window < "u" && window[g] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
47
+ try {
48
+ Intl.DateTimeFormat.supportedLocalesOf([
49
+ e
50
+ ]);
51
+ } catch {
52
+ e = "en-US";
53
+ }
54
+ return {
55
+ locale: e,
56
+ direction: p(e) ? "rtl" : "ltr"
57
+ };
58
+ }
59
+ let o = c(), a = /* @__PURE__ */ new Set();
60
+ function f() {
61
+ o = c();
62
+ for (let e of a) e(o);
63
+ }
64
+ function x() {
65
+ let e = u(), [n, t] = i(o);
66
+ return d(() => (a.size === 0 && window.addEventListener("languagechange", f), a.add(t), () => {
67
+ a.delete(t), a.size === 0 && window.removeEventListener("languagechange", f);
68
+ }), []), e ? {
69
+ locale: "en-US",
70
+ direction: "ltr"
71
+ } : n;
72
+ }
73
+ const S = /* @__PURE__ */ l.createContext(null);
74
+ function L() {
75
+ let e = x();
76
+ return $(S) || e;
77
+ }
78
+ export {
79
+ L as $
80
+ };
@@ -0,0 +1 @@
1
+ "use strict";const r=require("react"),i=require("./utils-BNtZbAib.cjs"),d=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),$=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function u(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),f=typeof t.getTextInfo=="function"?t.getTextInfo():t.textInfo;if(f)return f.direction==="rtl";if(t.script)return d.has(t.script)}let n=e.split("-")[0];return $.has(n)}const s=Symbol.for("react-aria.i18n.locale");function l(){let e=typeof window<"u"&&window[s]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:u(e)?"rtl":"ltr"}}let o=l(),a=new Set;function c(){o=l();for(let e of a)e(o)}function b(){let e=i.$b5e257d569688ac6$export$535bd6ca7f90a273(),[n,t]=r.useState(o);return r.useEffect(()=>(a.size===0&&window.addEventListener("languagechange",c),a.add(t),()=>{a.delete(t),a.size===0&&window.removeEventListener("languagechange",c)}),[]),e?{locale:"en-US",direction:"ltr"}:n}const g=r.createContext(null);function p(){let e=b();return r.useContext(g)||e}exports.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7=p;
@@ -0,0 +1,21 @@
1
+ "use strict";const a=require("react");/**
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 w=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),c=(...e)=>e.filter((r,t,o)=>!!r&&o.indexOf(r)===t).join(" ");/**
7
+ * @license lucide-react v0.453.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */var f={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
12
+ * @license lucide-react v0.453.0 - ISC
13
+ *
14
+ * This source code is licensed under the ISC license.
15
+ * See the LICENSE file in the root directory of this source tree.
16
+ */const g=a.forwardRef(({color:e="currentColor",size:r=24,strokeWidth:t=2,absoluteStrokeWidth:o,className:s="",children:n,iconNode:i,...u},l)=>a.createElement("svg",{ref:l,...f,width:r,height:r,stroke:e,strokeWidth:o?Number(t)*24/Number(r):t,className:c("lucide",s),...u},[...i.map(([d,m])=>a.createElement(d,m)),...Array.isArray(n)?n:[n]]));/**
17
+ * @license lucide-react v0.453.0 - ISC
18
+ *
19
+ * This source code is licensed under the ISC license.
20
+ * See the LICENSE file in the root directory of this source tree.
21
+ */const h=(e,r)=>{const t=a.forwardRef(({className:o,...s},n)=>a.createElement(g,{ref:n,iconNode:r,className:c(`lucide-${w(e)}`,o),...s}));return t.displayName=`${e}`,t};exports.createLucideIcon=h;
@@ -0,0 +1,79 @@
1
+ import { forwardRef as c, createElement as a } from "react";
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 p = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), i = (...e) => e.filter((r, t, o) => !!r && o.indexOf(r) === t).join(" ");
9
+ /**
10
+ * @license lucide-react v0.453.0 - ISC
11
+ *
12
+ * This source code is licensed under the ISC license.
13
+ * See the LICENSE file in the root directory of this source tree.
14
+ */
15
+ var f = {
16
+ xmlns: "http://www.w3.org/2000/svg",
17
+ width: 24,
18
+ height: 24,
19
+ viewBox: "0 0 24 24",
20
+ fill: "none",
21
+ stroke: "currentColor",
22
+ strokeWidth: 2,
23
+ strokeLinecap: "round",
24
+ strokeLinejoin: "round"
25
+ };
26
+ /**
27
+ * @license lucide-react v0.453.0 - ISC
28
+ *
29
+ * This source code is licensed under the ISC license.
30
+ * See the LICENSE file in the root directory of this source tree.
31
+ */
32
+ const g = c(
33
+ ({
34
+ color: e = "currentColor",
35
+ size: r = 24,
36
+ strokeWidth: t = 2,
37
+ absoluteStrokeWidth: o,
38
+ className: s = "",
39
+ children: n,
40
+ iconNode: u,
41
+ ...l
42
+ }, d) => a(
43
+ "svg",
44
+ {
45
+ ref: d,
46
+ ...f,
47
+ width: r,
48
+ height: r,
49
+ stroke: e,
50
+ strokeWidth: o ? Number(t) * 24 / Number(r) : t,
51
+ className: i("lucide", s),
52
+ ...l
53
+ },
54
+ [
55
+ ...u.map(([m, w]) => a(m, w)),
56
+ ...Array.isArray(n) ? n : [n]
57
+ ]
58
+ )
59
+ );
60
+ /**
61
+ * @license lucide-react v0.453.0 - ISC
62
+ *
63
+ * This source code is licensed under the ISC license.
64
+ * See the LICENSE file in the root directory of this source tree.
65
+ */
66
+ const C = (e, r) => {
67
+ const t = c(
68
+ ({ className: o, ...s }, n) => a(g, {
69
+ ref: n,
70
+ iconNode: r,
71
+ className: i(`lucide-${p(e)}`, o),
72
+ ...s
73
+ })
74
+ );
75
+ return t.displayName = `${e}`, t;
76
+ };
77
+ export {
78
+ C as c
79
+ };
@@ -1,4 +1,5 @@
1
1
  import { DateFieldProps as AriaDateFieldProps, DateValue, ValidationResult } from 'react-aria-components';
2
+ import { InfoPopoverProps } from '../label';
2
3
  import { Size } from '../common/types';
3
4
  import * as React from 'react';
4
5
  export interface DateFieldProps extends AriaDateFieldProps<DateValue> {
@@ -10,5 +11,7 @@ export interface DateFieldProps extends AriaDateFieldProps<DateValue> {
10
11
  * @default 'large'
11
12
  * */
12
13
  size?: Size;
14
+ /** An assistive text that helps the user understand the field better. Will be hidden in a popover with an info icon button. */
15
+ popover?: InfoPopoverProps;
13
16
  }
14
17
  export declare const DateField: React.FC<DateFieldProps>;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../DateField-DeDhiYnW.cjs"),e=require("../DateInputDivider-ADvOavHw.cjs");exports.DateField=t.DateField;exports.DateInput=e.DateInput;exports.DateInputDivider=e.DateInputDivider;exports.DateSegment=e.DateSegment;
@@ -0,0 +1,8 @@
1
+ import { D as t } from "../DateField-DhU3q-rG.js";
2
+ import { a as r, b as o, D as p } from "../DateInputDivider-CF4xWsMT.js";
3
+ export {
4
+ t as DateField,
5
+ r as DateInput,
6
+ o as DateInputDivider,
7
+ p as DateSegment
8
+ };
@@ -1,4 +1,5 @@
1
1
  import { DatePickerProps as AriaDatePickerProps, DateValue, ValidationResult } from 'react-aria-components';
2
+ import { InfoPopoverProps } from '../label';
2
3
  import { Size } from '../common/types';
3
4
  import * as React from 'react';
4
5
  interface DatePickerProps extends AriaDatePickerProps<DateValue> {
@@ -10,6 +11,8 @@ interface DatePickerProps extends AriaDatePickerProps<DateValue> {
10
11
  * @default 'large'
11
12
  * */
12
13
  size?: Size;
14
+ /** An assistive text that helps the user understand the field better. Will be hidden in a popover with an info icon button. */
15
+ popover?: InfoPopoverProps;
13
16
  }
14
17
  export declare const DatePicker: React.FC<DatePickerProps>;
15
18
  export {};
@@ -1,4 +1,5 @@
1
1
  import { DateRangePickerProps as AriaDateRangePickerProps, DateValue, ValidationResult } from 'react-aria-components';
2
+ import { InfoPopoverProps } from '../label';
2
3
  import { Size } from '../common/types';
3
4
  import * as React from 'react';
4
5
  export interface DateRangePickerProps extends AriaDateRangePickerProps<DateValue> {
@@ -10,5 +11,7 @@ export interface DateRangePickerProps extends AriaDateRangePickerProps<DateValue
10
11
  * @default 'large'
11
12
  * */
12
13
  size?: Size;
14
+ /** An assistive text that helps the user understand the field better. Will be hidden in a popover with an info icon button. */
15
+ popover?: InfoPopoverProps;
13
16
  }
14
17
  export declare const DateRangePicker: React.FC<DateRangePickerProps>;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../DateRangePicker-BsAHhy99.cjs");exports.DatePicker=e.DatePicker;exports.DateRangePicker=e.DateRangePicker;
@@ -0,0 +1,5 @@
1
+ import { D as r, a as t } from "../DateRangePicker-ziD1_k1W.js";
2
+ export {
3
+ r as DatePicker,
4
+ t as DateRangePicker
5
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../Dropdown-CJ6My6EI.cjs");exports.Dropdown=o.Dropdown;exports.DropdownItem=o.DropdownItem;
@@ -0,0 +1,5 @@
1
+ import { D as a, a as p } from "../Dropdown-Df58j43I.js";
2
+ export {
3
+ a as Dropdown,
4
+ p as DropdownItem
5
+ };
@@ -1,3 +1,6 @@
1
- import { FieldErrorProps } from 'react-aria-components';
1
+ import { FieldErrorProps as AriaFieldErrorProps } from 'react-aria-components';
2
2
  import * as React from 'react';
3
+ export interface FieldErrorProps extends AriaFieldErrorProps {
4
+ isInvalid?: boolean;
5
+ }
3
6
  export declare const FieldError: React.ForwardRefExoticComponent<FieldErrorProps & React.RefAttributes<HTMLElement>>;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../FieldError-CKBb2-mp.cjs");exports.FieldError=r.FieldError;
@@ -0,0 +1,4 @@
1
+ import { F as e } from "../FieldError-CAcjosk_.js";
2
+ export {
3
+ e as FieldError
4
+ };
@@ -1,4 +1,5 @@
1
1
  import { FileTriggerProps as AriaFileTriggerProps } from 'react-aria-components';
2
+ import { InfoPopoverProps } from '../label';
2
3
  import * as React from 'react';
3
4
  export interface FileTriggerProps extends AriaFileTriggerProps {
4
5
  /** Label for the file upload button */
@@ -7,5 +8,7 @@ export interface FileTriggerProps extends AriaFileTriggerProps {
7
8
  description?: string;
8
9
  /** Use DropZone version */
9
10
  dropzone?: boolean;
11
+ /** An assistive text that helps the user understand the field better. Will be hidden in a popover with an info icon button. */
12
+ popover?: InfoPopoverProps;
10
13
  }
11
14
  export declare const FileUpload: React.FC<FileTriggerProps>;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../FileUpload-CxCOtyB9.cjs");exports.FileUpload=e.FileUpload;
@@ -0,0 +1,4 @@
1
+ import { F as e } from "../FileUpload-D6qoEAjn.js";
2
+ export {
3
+ e as FileUpload
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";const o=new Set(["id"]),c=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),i=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),s=/^(data-.*)$/;function n(a,t={}){let{labelable:l,isLink:b,propNames:r}=t,d={};for(const e in a)Object.prototype.hasOwnProperty.call(a,e)&&(o.has(e)||l&&c.has(e)||b&&i.has(e)||r!=null&&r.has(e)||s.test(e))&&(d[e]=a[e]);return d}exports.$65484d02dcb7eb3e$export$457c3d6518dd4c6f=n;
@@ -0,0 +1,24 @@
1
+ const b = /* @__PURE__ */ new Set([
2
+ "id"
3
+ ]), i = /* @__PURE__ */ new Set([
4
+ "aria-label",
5
+ "aria-labelledby",
6
+ "aria-describedby",
7
+ "aria-details"
8
+ ]), n = /* @__PURE__ */ new Set([
9
+ "href",
10
+ "hrefLang",
11
+ "target",
12
+ "rel",
13
+ "download",
14
+ "ping",
15
+ "referrerPolicy"
16
+ ]), s = /^(data-.*)$/;
17
+ function c(a, t = {}) {
18
+ let { labelable: d, isLink: o, propNames: r } = t, l = {};
19
+ for (const e in a) Object.prototype.hasOwnProperty.call(a, e) && (b.has(e) || d && i.has(e) || o && n.has(e) || r != null && r.has(e) || s.test(e)) && (l[e] = a[e]);
20
+ return l;
21
+ }
22
+ export {
23
+ c as $
24
+ };
@@ -0,0 +1,9 @@
1
+ import { $ as n } from "./scrollIntoView-Hwb_aaNf.js";
2
+ function c(l, t) {
3
+ let e = l;
4
+ for (n(e, t) && (e = e.parentElement); e && !n(e, t); ) e = e.parentElement;
5
+ return e || document.scrollingElement || document.documentElement;
6
+ }
7
+ export {
8
+ c as $
9
+ };
@@ -0,0 +1 @@
1
+ "use strict";const c=require("./scrollIntoView-C8doLzDd.cjs");function d(n,t){let e=n;for(c.$cc38e7bd3fc7b213$export$2bb74740c4e19def(e,t)&&(e=e.parentElement);e&&!c.$cc38e7bd3fc7b213$export$2bb74740c4e19def(e,t);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}exports.$62d8ded9296f3872$export$cfa2225e87938781=d;
package/grid/Grid.d.ts CHANGED
@@ -1,16 +1,27 @@
1
1
  import * as React from 'react';
2
- interface GridProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
2
+ export interface GridProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
3
3
  children: React.ReactNode;
4
- /** Removes outer margins for nested use. First Flex on a page should have outer margins. */
4
+ /** Removes outer margins for nested use. First Grid on a page should have outer margins.
5
+ * @deprecated since v10.2.0 Use `isContained` prop instead.
6
+ */
5
7
  fluid?: boolean;
8
+ /** A contained grid has a max-width and centered positioning on large screens. */
9
+ isContained?: boolean;
10
+ /** Removes outer margins. */
11
+ removeMargins?: boolean;
6
12
  }
7
13
  /**
8
- * Grid based on display: grid;
14
+ * Grid based on display: flex;
9
15
  * Calculates breakpoints and distributes columns according to MV specifications
10
16
  *
11
17
  * ### Children
12
18
  * Use GridItem to manage each column.
13
19
  * GridItem accepts values of 1 through 12 and auto.
20
+ *
21
+ * @see {@link: https://migrationsverket.se/components/grid}
14
22
  */
15
23
  export declare const Grid: React.FC<GridProps>;
16
- export {};
24
+ /**
25
+ * @deprecated since v10.2.0 Use `Grid` instead.
26
+ */
27
+ export declare const Flex: React.FC<GridProps>;
@@ -1,7 +1,36 @@
1
+ import { ColumnSize, OffsetSize } from '../common/types';
1
2
  import * as React from 'react';
2
3
  export interface GridItemProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
3
4
  children: React.ReactNode;
4
- /** Column size and behaviour */
5
- col?: '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
5
+ /** Column size and behaviour
6
+ * @deprecated since v10.2.0 Use `size` prop instead.
7
+ */
8
+ col?: ColumnSize;
9
+ /** Column size and behaviour across different breakpoints */
10
+ size?: ColumnSize | {
11
+ xs?: ColumnSize;
12
+ sm?: ColumnSize;
13
+ md?: ColumnSize;
14
+ lg?: ColumnSize;
15
+ xl?: ColumnSize;
16
+ };
17
+ /** Additional spacing between columns */
18
+ offset?: OffsetSize | {
19
+ xs?: OffsetSize;
20
+ sm?: OffsetSize;
21
+ md?: OffsetSize;
22
+ lg?: OffsetSize;
23
+ xl?: OffsetSize;
24
+ };
6
25
  }
26
+ /**
27
+ * Columns based on display: flex;
28
+ * GridItem accepts values of 1 through 12 and auto.
29
+ *
30
+ * @see {@link: https://migrationsverket.se/components/flex}
31
+ */
7
32
  export declare const GridItem: React.FC<GridItemProps>;
33
+ /**
34
+ * @deprecated since v10.2.0 Use `GridItem` instead.
35
+ */
36
+ export declare const FlexItem: React.FC<GridItemProps>;
package/grid/index.cjs ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Grid-DVQtOcu9.cjs"),r=require("../GridItem-XgHmZWXY.cjs");exports.Flex=e.Flex;exports.Grid=e.Grid;exports.FlexItem=r.FlexItem;exports.GridItem=r.GridItem;
package/grid/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { Grid } from './Grid';
2
- export { GridItem } from './GridItem';
1
+ export { Grid, Flex } from './Grid';
2
+ export { GridItem, FlexItem } from './GridItem';
package/grid/index.js ADDED
@@ -0,0 +1,8 @@
1
+ import { F as a, G as m } from "../Grid--OhtgCo6.js";
2
+ import { F as s, G as t } from "../GridItem-DlbSdRmB.js";
3
+ export {
4
+ a as Flex,
5
+ s as FlexItem,
6
+ m as Grid,
7
+ t as GridItem
8
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Heading-mHhCbGjY.cjs");exports.Heading=e.Heading;
@@ -0,0 +1,4 @@
1
+ import { H as o } from "../Heading-BFtiin0g.js";
2
+ export {
3
+ o as Heading
4
+ };
@@ -0,0 +1,120 @@
1
+ import w from "react";
2
+ var m = { exports: {} }, y = {};
3
+ /**
4
+ * @license React
5
+ * use-sync-external-store-shim.production.js
6
+ *
7
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
8
+ *
9
+ * This source code is licensed under the MIT license found in the
10
+ * LICENSE file in the root directory of this source tree.
11
+ */
12
+ var L;
13
+ function T() {
14
+ if (L) return y;
15
+ L = 1;
16
+ var s = w;
17
+ function d(t, o) {
18
+ return t === o && (t !== 0 || 1 / t === 1 / o) || t !== t && o !== o;
19
+ }
20
+ var c = typeof Object.is == "function" ? Object.is : d, _ = s.useState, u = s.useEffect, S = s.useLayoutEffect, p = s.useDebugValue;
21
+ function E(t, o) {
22
+ var e = o(), n = _({ inst: { value: e, getSnapshot: o } }), r = n[0].inst, a = n[1];
23
+ return S(
24
+ function() {
25
+ r.value = e, r.getSnapshot = o, f(r) && a({ inst: r });
26
+ },
27
+ [t, e, o]
28
+ ), u(
29
+ function() {
30
+ return f(r) && a({ inst: r }), t(function() {
31
+ f(r) && a({ inst: r });
32
+ });
33
+ },
34
+ [t]
35
+ ), p(e), e;
36
+ }
37
+ function f(t) {
38
+ var o = t.getSnapshot;
39
+ t = t.value;
40
+ try {
41
+ var e = o();
42
+ return !c(t, e);
43
+ } catch {
44
+ return !0;
45
+ }
46
+ }
47
+ function O(t, o) {
48
+ return o();
49
+ }
50
+ var l = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? O : E;
51
+ return y.useSyncExternalStore = s.useSyncExternalStore !== void 0 ? s.useSyncExternalStore : l, y;
52
+ }
53
+ var h = {};
54
+ /**
55
+ * @license React
56
+ * use-sync-external-store-shim.development.js
57
+ *
58
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
59
+ *
60
+ * This source code is licensed under the MIT license found in the
61
+ * LICENSE file in the root directory of this source tree.
62
+ */
63
+ var x;
64
+ function A() {
65
+ return x || (x = 1, process.env.NODE_ENV !== "production" && function() {
66
+ function s(e, n) {
67
+ return e === n && (e !== 0 || 1 / e === 1 / n) || e !== e && n !== n;
68
+ }
69
+ function d(e, n) {
70
+ l || u.startTransition === void 0 || (l = !0, console.error(
71
+ "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
72
+ ));
73
+ var r = n();
74
+ if (!t) {
75
+ var a = n();
76
+ S(r, a) || (console.error(
77
+ "The result of getSnapshot should be cached to avoid an infinite loop"
78
+ ), t = !0);
79
+ }
80
+ a = p({
81
+ inst: { value: r, getSnapshot: n }
82
+ });
83
+ var i = a[0].inst, v = a[1];
84
+ return f(
85
+ function() {
86
+ i.value = r, i.getSnapshot = n, c(i) && v({ inst: i });
87
+ },
88
+ [e, r, n]
89
+ ), E(
90
+ function() {
91
+ return c(i) && v({ inst: i }), e(function() {
92
+ c(i) && v({ inst: i });
93
+ });
94
+ },
95
+ [e]
96
+ ), O(r), r;
97
+ }
98
+ function c(e) {
99
+ var n = e.getSnapshot;
100
+ e = e.value;
101
+ try {
102
+ var r = n();
103
+ return !S(e, r);
104
+ } catch {
105
+ return !0;
106
+ }
107
+ }
108
+ function _(e, n) {
109
+ return n();
110
+ }
111
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
112
+ var u = w, S = typeof Object.is == "function" ? Object.is : s, p = u.useState, E = u.useEffect, f = u.useLayoutEffect, O = u.useDebugValue, l = !1, t = !1, o = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? _ : d;
113
+ h.useSyncExternalStore = u.useSyncExternalStore !== void 0 ? u.useSyncExternalStore : o, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
114
+ }()), h;
115
+ }
116
+ process.env.NODE_ENV === "production" ? m.exports = T() : m.exports = A();
117
+ var D = m.exports;
118
+ export {
119
+ D as s
120
+ };
@@ -0,0 +1,17 @@
1
+ "use strict";const w=require("react");var L={exports:{}},y={};/**
2
+ * @license React
3
+ * use-sync-external-store-shim.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var m;function T(){if(m)return y;m=1;var s=w;function d(t,o){return t===o&&(t!==0||1/t===1/o)||t!==t&&o!==o}var c=typeof Object.is=="function"?Object.is:d,_=s.useState,u=s.useEffect,S=s.useLayoutEffect,E=s.useDebugValue;function p(t,o){var e=o(),n=_({inst:{value:e,getSnapshot:o}}),r=n[0].inst,a=n[1];return S(function(){r.value=e,r.getSnapshot=o,f(r)&&a({inst:r})},[t,e,o]),u(function(){return f(r)&&a({inst:r}),t(function(){f(r)&&a({inst:r})})},[t]),E(e),e}function f(t){var o=t.getSnapshot;t=t.value;try{var e=o();return!c(t,e)}catch{return!0}}function O(t,o){return o()}var l=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?O:p;return y.useSyncExternalStore=s.useSyncExternalStore!==void 0?s.useSyncExternalStore:l,y}var h={};/**
10
+ * @license React
11
+ * use-sync-external-store-shim.development.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var x;function A(){return x||(x=1,process.env.NODE_ENV!=="production"&&function(){function s(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}function d(e,n){l||u.startTransition===void 0||(l=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var r=n();if(!t){var a=n();S(r,a)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),t=!0)}a=E({inst:{value:r,getSnapshot:n}});var i=a[0].inst,v=a[1];return f(function(){i.value=r,i.getSnapshot=n,c(i)&&v({inst:i})},[e,r,n]),p(function(){return c(i)&&v({inst:i}),e(function(){c(i)&&v({inst:i})})},[e]),O(r),r}function c(e){var n=e.getSnapshot;e=e.value;try{var r=n();return!S(e,r)}catch{return!0}}function _(e,n){return n()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var u=w,S=typeof Object.is=="function"?Object.is:s,E=u.useState,p=u.useEffect,f=u.useLayoutEffect,O=u.useDebugValue,l=!1,t=!1,o=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?_:d;h.useSyncExternalStore=u.useSyncExternalStore!==void 0?u.useSyncExternalStore:o,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),h}process.env.NODE_ENV==="production"?L.exports=T():L.exports=A();var g=L.exports;exports.shimExports=g;