@midas-ds/components 11.2.0 → 12.1.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 (465) hide show
  1. package/AccordionItem-C9dBt-tQ.js +335 -0
  2. package/AccordionItem-SOfjXh3V.cjs +1 -0
  3. package/BadgeContainer-iNNgJKD9.js +37 -0
  4. package/{BadgeContainer-DWVHS5dn.cjs → BadgeContainer-su0iCJKy.cjs} +1 -1
  5. package/Breadcrumbs-BAHJMPsu.js +271 -0
  6. package/Breadcrumbs-DUcHHI_2.cjs +1 -0
  7. package/Button-CMIbSc4-.cjs +1 -0
  8. package/{Button-CepQFEit.js → Button-DD5_S-tD.js} +154 -160
  9. package/{Button-BjMaGya2.js → Button-DYcmg49Z.js} +2 -2
  10. package/{Button-Dq6ugqxT.cjs → Button-DrL5Jv-s.cjs} +1 -1
  11. package/Button.module-BNLcvARn.cjs +1 -0
  12. package/Button.module-Bax2YU6N.js +14 -0
  13. package/ButtonGroup-ClYTgaRc.cjs +1 -0
  14. package/{ButtonGroup-DvVvear6.js → ButtonGroup-WZZDPu9Z.js} +1 -1
  15. package/CHANGELOG.md +114 -0
  16. package/Card-BDDyGAMA.js +131 -0
  17. package/Card-mj5lCIR4.cjs +1 -0
  18. package/{CharacterCounter-DSFBv3Rw.cjs → CharacterCounter-CnRv-iUP.cjs} +1 -1
  19. package/{CharacterCounter-DpBDwvLw.js → CharacterCounter-DT7A0wWP.js} +8 -8
  20. package/Checkbox-BtM2rFh9.js +278 -0
  21. package/Checkbox-CvdIG43J.cjs +1 -0
  22. package/CheckboxGroup-C94as9Xt.cjs +1 -0
  23. package/CheckboxGroup-CjcDYBRk.js +157 -0
  24. package/Collection-B0_WAieZ.js +625 -0
  25. package/Collection-BvWp2xBd.cjs +1 -0
  26. package/{ColorSchemeSwitch-PiEHptw1.js → ColorSchemeSwitch-C4PMYeD5.js} +17 -25
  27. package/{ColorSchemeSwitch-owUryjYz.cjs → ColorSchemeSwitch-CKcoGZM1.cjs} +1 -1
  28. package/ComboBox-B2EmfOyr.cjs +1 -0
  29. package/{ComboBox-DfJ_aJrf.js → ComboBox-BWXJZyOR.js} +522 -511
  30. package/DateField-CcQJYDLD.js +47 -0
  31. package/DateField-IpCiF81R.cjs +1 -0
  32. package/{DateInputDivider-BmvqW1Hk.js → DateInputDivider-CXkUdlzc.js} +936 -839
  33. package/DateInputDivider-Cf5GZHlM.cjs +1 -0
  34. package/DateRangePicker-B2BJO1KC.js +889 -0
  35. package/DateRangePicker-Dfwe9RhJ.cjs +6 -0
  36. package/Dialog-B8swxl24.js +1643 -0
  37. package/Dialog-DR6nEqMT.cjs +1 -0
  38. package/Dialog-DgJobm71.cjs +1 -0
  39. package/Dialog-P3frHOdq.js +240 -0
  40. package/DragAndDrop-Dw8JZmrn.cjs +1 -0
  41. package/DragAndDrop-PrUJv--B.js +75 -0
  42. package/{Dropdown-Cpc2EszJ.js → Dropdown-CIvWpN3v.js} +33 -32
  43. package/Dropdown-DJ2vWAqk.cjs +6 -0
  44. package/FieldError-Cornph2A.cjs +1 -0
  45. package/{FieldError-CDCvUjK5.js → FieldError-DdvFyIf4.js} +16 -14
  46. package/{FileUpload-BokzdXVc.js → FileUpload-D2gnQKdn.js} +76 -74
  47. package/{FileUpload-Bz9md5zc.cjs → FileUpload-D3RaARDV.cjs} +2 -2
  48. package/{FocusScope-DMsfA3bj.js → FocusScope-Bj40Ir-g.js} +192 -195
  49. package/FocusScope-Uy3DiY0-.cjs +1 -0
  50. package/Grid-WbEkSCGh.cjs +1 -0
  51. package/{Grid--OhtgCo6.js → Grid-s8ovKDi8.js} +6 -9
  52. package/GridItem-CIVF1fRW.cjs +1 -0
  53. package/GridItem-D3FZyyO-.js +243 -0
  54. package/{Group-DOpbdoAi.cjs → Group-BKYGeOBr.cjs} +1 -1
  55. package/{Group-B0vQfHDy.js → Group-C73mD_-i.js} +6 -6
  56. package/Heading-BQlmb5Tm.js +46 -0
  57. package/Heading-D3FR_KXb.cjs +1 -0
  58. package/InfoBanner-CqjnTYaa.cjs +1 -0
  59. package/InfoBanner-CrA8MS3v.js +83 -0
  60. package/{Input-n-Z20KbW.js → Input-BLVRv0FK.js} +4 -4
  61. package/{Input-MJji5hhq.cjs → Input-CzMx2mfl.cjs} +1 -1
  62. package/{Label-endv1fkJ.js → Label-BG7G0iyG.js} +23 -27
  63. package/Label-C00qz3kQ.cjs +1 -0
  64. package/Layout-Bta_Cpq_.cjs +16 -0
  65. package/Layout-CG-Qxr_1.js +482 -0
  66. package/{Link-ovwNVMfg.js → Link-BtxKZ0h3.js} +16 -16
  67. package/Link-Bx6avHVl.cjs +6 -0
  68. package/Link-CbFSuEI1.js +73 -0
  69. package/Link-wM7cVPlS.cjs +1 -0
  70. package/LinkButton-BvXu6vAH.cjs +6 -0
  71. package/LinkButton-D3EnZ65v.js +69 -0
  72. package/ListBox-ICZKGluC.cjs +1 -0
  73. package/ListBox-LncMQt6I.js +523 -0
  74. package/ListBoxLoadMoreItem-Ceo73a2q.cjs +1 -0
  75. package/ListBoxLoadMoreItem-W11V-Lef.js +41 -0
  76. package/ListBoxSection-BCPv9H50.js +1085 -0
  77. package/ListBoxSection-Dx75ZinL.cjs +1 -0
  78. package/{ListKeyboardDelegate-CHki611g.js → ListKeyboardDelegate-CVxkAn5D.js} +13 -9
  79. package/ListKeyboardDelegate-C_X1wLkh.cjs +1 -0
  80. package/{Logo-BpH0HC91.cjs → Logo-CFjZc5u2.cjs} +1 -1
  81. package/{Logo-ME4ffCue.js → Logo-DkagDdKQ.js} +14 -18
  82. package/OverlayArrow-ByH6lM-H.cjs +1 -0
  83. package/OverlayArrow-CvNuu3e3.js +519 -0
  84. package/{Popover-BDvKByTT.cjs → Popover-Bi5yJEoE.cjs} +1 -1
  85. package/{Popover-Tniqbaes.js → Popover-CyEVqpJ6.js} +11 -11
  86. package/{PressResponder-C3APAKsz.js → PressResponder-CxVtArtP.js} +4 -4
  87. package/{PressResponder-4jE_HLu3.cjs → PressResponder-DbnYqwGB.cjs} +1 -1
  88. package/ProgressBar-CdXHEJh6.js +53 -0
  89. package/ProgressBar-CjuHokVZ.cjs +1 -0
  90. package/Radio-Bll-7H8O.cjs +1 -0
  91. package/Radio-DoWx2AE1.js +333 -0
  92. package/RangeCalendar-A4WQIG7P.cjs +6 -0
  93. package/{RangeCalendar-BCruEq9d.js → RangeCalendar-D7eFVAPP.js} +637 -629
  94. package/{SearchField-QFyuaT-K.cjs → SearchField-BbrUZpQm.cjs} +2 -2
  95. package/{SearchField-nwlyszwt.js → SearchField-F2FKgYds.js} +27 -31
  96. package/Select-BnbDXwgD.cjs +1 -0
  97. package/Select-Dpi3LhbI.js +654 -0
  98. package/{SelectionManager-BKrZ_mMO.js → SelectionManager-Bq-Gw1UT.js} +291 -282
  99. package/SelectionManager-BtbHoHpA.cjs +1 -0
  100. package/Separator-CM0KPvsX.js +105 -0
  101. package/Separator-Cfv2pbWf.cjs +1 -0
  102. package/Separator-DH-5wu9X.js +77 -0
  103. package/Separator-Dgin8BNW.cjs +1 -0
  104. package/Skeleton-BpYj25p8.js +37 -0
  105. package/Skeleton-DMOxEwnd.cjs +1 -0
  106. package/Spinner-D1UBuLy4.cjs +6 -0
  107. package/Spinner-DTKb_LAA.js +47 -0
  108. package/TabList-D4WwgQY3.cjs +1 -0
  109. package/TabList-D9tl2s85.js +397 -0
  110. package/Table-C6k3PiiC.cjs +16 -0
  111. package/{Table-DGTwyh7U.js → Table-CkN3y69S.js} +883 -804
  112. package/Tag-7dHEMQum.cjs +1 -0
  113. package/Tag-BUJ20HHw.js +765 -0
  114. package/Text-BAFsaON-.cjs +1 -0
  115. package/{Text-DcZqSUN9.js → Text-Be7WIOwv.js} +1 -1
  116. package/{Text-CfcjRtke.cjs → Text-BtPiT2P1.cjs} +1 -1
  117. package/Text-CmlsaWMA.js +32 -0
  118. package/TextArea-BCikUXaD.cjs +1 -0
  119. package/TextArea-h5_oBQH1.js +125 -0
  120. package/TextField-Bm5916AD.cjs +1 -0
  121. package/TextField-_UY8CXtW.js +134 -0
  122. package/TextField.module-C9Zm9unF.js +13 -0
  123. package/TextField.module-GTQtNO0r.cjs +1 -0
  124. package/{Toast-CWt_mNIg.js → Toast-BBkWczCk.js} +234 -253
  125. package/Toast-DclaxvZM.cjs +1 -0
  126. package/ToggleButtonGroup-BGG64PK1.js +214 -0
  127. package/ToggleButtonGroup-Da330GRT.cjs +1 -0
  128. package/Tooltip-BHAtsp9k.js +281 -0
  129. package/Tooltip-CZa9n5sT.cjs +1 -0
  130. package/{VisuallyHidden-CYfmTSCD.js → VisuallyHidden-CGEtjAP7.js} +2 -2
  131. package/{VisuallyHidden-Doyzl0F7.cjs → VisuallyHidden-EjrqodVh.cjs} +1 -1
  132. package/accordion/Accordion.d.ts +8 -2
  133. package/accordion/AccordionContext.d.ts +4 -0
  134. package/accordion/AccordionItem.d.ts +6 -4
  135. package/accordion/index.cjs +1 -1
  136. package/accordion/index.js +1 -1
  137. package/assets/AccordionItem.css +1 -1
  138. package/assets/BadgeContainer.css +1 -1
  139. package/assets/Breadcrumbs.css +1 -1
  140. package/assets/Button.css +1 -1
  141. package/assets/ButtonGroup.css +1 -1
  142. package/assets/Card.css +1 -1
  143. package/assets/CharacterCounter.css +1 -1
  144. package/assets/Checkbox.css +1 -1
  145. package/assets/ComboBox.css +1 -1
  146. package/assets/DateField.css +1 -1
  147. package/assets/DateInputDivider.css +1 -1
  148. package/assets/DateRangePicker.css +1 -1
  149. package/assets/Dialog.css +1 -1
  150. package/assets/Dropdown.css +1 -1
  151. package/assets/FieldError.css +1 -1
  152. package/assets/FileUpload.css +1 -1
  153. package/assets/GridItem.css +1 -1
  154. package/assets/Heading.css +1 -1
  155. package/assets/InfoBanner.css +1 -1
  156. package/assets/Label.css +1 -1
  157. package/assets/Layout.css +1 -1
  158. package/assets/Link.css +1 -1
  159. package/assets/LinkButton.css +1 -1
  160. package/assets/ListBoxSection.css +1 -1
  161. package/assets/Logo.css +1 -1
  162. package/assets/Popover.css +1 -1
  163. package/assets/ProgressBar.css +1 -1
  164. package/assets/Radio.css +1 -1
  165. package/assets/RangeCalendar.css +1 -1
  166. package/assets/SearchField.css +1 -1
  167. package/assets/Select.css +1 -1
  168. package/assets/Separator.css +1 -0
  169. package/assets/Skeleton.css +1 -1
  170. package/assets/Spinner.css +1 -1
  171. package/assets/TabList.css +1 -1
  172. package/assets/Table.css +1 -1
  173. package/assets/Tag.css +1 -1
  174. package/assets/Text.css +1 -1
  175. package/assets/TextField.css +1 -1
  176. package/assets/Toast.css +1 -1
  177. package/assets/ToggleButtonGroup.css +1 -1
  178. package/assets/Tooltip.css +1 -1
  179. package/assets/theme.css +1 -0
  180. package/assets/variables.css +1 -0
  181. package/badge/index.cjs +1 -1
  182. package/badge/index.js +1 -1
  183. package/breadcrumbs/Breadcrumbs.d.ts +0 -2
  184. package/breadcrumbs/index.cjs +1 -1
  185. package/breadcrumbs/index.js +1 -1
  186. package/button/index.cjs +1 -1
  187. package/button/index.js +2 -2
  188. package/calendar/index.cjs +1 -1
  189. package/calendar/index.js +1 -1
  190. package/card/index.cjs +1 -1
  191. package/card/index.js +1 -1
  192. package/character-counter/index.cjs +1 -1
  193. package/character-counter/index.js +1 -1
  194. package/checkbox/index.cjs +1 -1
  195. package/checkbox/index.js +2 -2
  196. package/chevron-right-0-sUFBiR.cjs +6 -0
  197. package/chevron-right-BYYHEJjK.js +11 -0
  198. package/color-scheme-switch/index.cjs +1 -1
  199. package/color-scheme-switch/index.js +1 -1
  200. package/combobox/ComboBox.d.ts +0 -4
  201. package/combobox/index.cjs +1 -1
  202. package/combobox/index.d.ts +1 -2
  203. package/combobox/index.js +2 -3
  204. package/combobox/intl/translations.json.d.ts +4 -2
  205. package/combobox/types.d.ts +0 -13
  206. package/common/icon-map.d.ts +6 -0
  207. package/common/types.d.ts +8 -0
  208. package/date-field/index.cjs +1 -1
  209. package/date-field/index.js +2 -2
  210. package/date-picker/index.cjs +1 -1
  211. package/date-picker/index.js +1 -1
  212. package/dropdown/Dropdown.d.ts +25 -1
  213. package/dropdown/index.cjs +1 -1
  214. package/dropdown/index.js +1 -1
  215. package/field-error/index.cjs +1 -1
  216. package/field-error/index.js +1 -1
  217. package/file-upload/index.cjs +1 -1
  218. package/file-upload/index.js +1 -1
  219. package/filterDOMProps-RRlKPKX0.cjs +1 -0
  220. package/filterDOMProps-wsa9OcNI.js +65 -0
  221. package/grid/Grid.d.ts +0 -8
  222. package/grid/GridItem.d.ts +0 -8
  223. package/grid/index.cjs +1 -1
  224. package/grid/index.d.ts +2 -2
  225. package/grid/index.js +4 -6
  226. package/heading/index.cjs +1 -1
  227. package/heading/index.js +1 -1
  228. package/icon-map-9XcghDra.cjs +11 -0
  229. package/icon-map-uS87FT_Q.js +43 -0
  230. package/{index-CGRFP4CC.js → index-BLPblar-.js} +34 -31
  231. package/index-DSFSh2sC.cjs +17 -0
  232. package/index.cjs +1 -1
  233. package/index.d.ts +2 -0
  234. package/index.js +133 -121
  235. package/info-banner/InfoBanner.d.ts +18 -10
  236. package/info-banner/index.cjs +1 -1
  237. package/info-banner/index.js +1 -1
  238. package/label/index.cjs +1 -1
  239. package/label/index.js +1 -1
  240. package/layout/index.cjs +1 -1
  241. package/layout/index.js +1 -1
  242. package/link/index.cjs +1 -1
  243. package/link/index.js +2 -2
  244. package/link-button/index.cjs +1 -1
  245. package/link-button/index.js +2 -2
  246. package/list-box/ListBoxLoadMoreItem.d.ts +4 -0
  247. package/list-box/index.cjs +1 -1
  248. package/list-box/index.d.ts +1 -0
  249. package/list-box/index.js +6 -5
  250. package/list-box/intl/translations.json.d.ts +11 -0
  251. package/logo/index.cjs +1 -1
  252. package/logo/index.js +1 -1
  253. package/menu/Menu.d.ts +13 -0
  254. package/menu/MenuItem.d.ts +5 -0
  255. package/menu/MenuPopover.d.ts +3 -0
  256. package/menu/MenuSection.d.ts +3 -0
  257. package/menu/Separator.d.ts +3 -0
  258. package/menu/index.cjs +1 -0
  259. package/menu/index.d.ts +5 -0
  260. package/menu/index.js +8 -0
  261. package/{mergeProps-C1U1OIeJ.js → mergeProps-BSsN7Bgk.js} +36 -34
  262. package/mergeProps-JhcJ7uJL.cjs +1 -0
  263. package/modal/index.cjs +1 -1
  264. package/modal/index.js +2 -2
  265. package/package.json +9 -4
  266. package/popover/index.cjs +1 -1
  267. package/popover/index.js +1 -1
  268. package/progress-bar/index.cjs +1 -1
  269. package/progress-bar/index.js +1 -1
  270. package/radio/index.cjs +1 -1
  271. package/radio/index.js +1 -1
  272. package/search-field/index.cjs +1 -1
  273. package/search-field/index.js +1 -1
  274. package/select/Select.d.ts +1 -1
  275. package/select/index.cjs +1 -1
  276. package/select/index.d.ts +1 -1
  277. package/select/index.js +1 -1
  278. package/select/types.d.ts +1 -13
  279. package/skeleton/index.cjs +1 -1
  280. package/skeleton/index.js +1 -1
  281. package/spinner/index.cjs +1 -1
  282. package/spinner/index.js +1 -1
  283. package/table/Table.d.ts +7 -12
  284. package/table/index.cjs +1 -1
  285. package/table/index.js +1 -1
  286. package/tabs/Tabs.d.ts +0 -12
  287. package/tabs/index.cjs +1 -1
  288. package/tabs/index.js +1 -1
  289. package/tag/Tag.d.ts +2 -1
  290. package/tag/index.cjs +1 -1
  291. package/tag/index.js +1 -1
  292. package/text/index.cjs +1 -1
  293. package/text/index.js +1 -1
  294. package/textfield/Input.d.ts +7 -2
  295. package/textfield/PasswordField.d.ts +1 -1
  296. package/textfield/index.cjs +1 -1
  297. package/textfield/index.js +1 -1
  298. package/theme/generated-object.d.ts +384 -0
  299. package/theme/generated-tokens.d.ts +334 -0
  300. package/theme/index.cjs +1 -1
  301. package/theme/index.d.ts +39 -12
  302. package/theme/index.js +4037 -13
  303. package/theme/tokens.d.ts +65 -18
  304. package/toast/Toast.d.ts +2 -1
  305. package/toast/index.cjs +1 -1
  306. package/toast/index.js +1 -1
  307. package/toggle-button/index.cjs +1 -1
  308. package/toggle-button/index.js +1 -1
  309. package/tokens-B3FfJ-rY.cjs +1 -0
  310. package/{tokens-CqvelUoA.js → tokens-B9ooUP4g.js} +69 -32
  311. package/tooltip/index.cjs +1 -1
  312. package/tooltip/index.js +1 -1
  313. package/useButton-D6iUB8cN.js +56 -0
  314. package/useButton-R8-i3HLC.cjs +1 -0
  315. package/useDateFormatter-2B0vgHc-.cjs +1 -0
  316. package/{useDateFormatter-C7BJgoDR.js → useDateFormatter-BJ1ZyaH1.js} +431 -407
  317. package/{useDescription-DYfKjGGU.js → useDescription-BLmIkYCq.js} +1 -1
  318. package/{useDescription-CPo72trh.cjs → useDescription-BMuiAqI5.cjs} +1 -1
  319. package/{useEvent-DPxMu-X9.cjs → useEvent-3ZO5TPSH.cjs} +1 -1
  320. package/{useEvent-CigwyJOw.js → useEvent-DpBHTuHJ.js} +1 -1
  321. package/{useField-CefQB81E.js → useField-BMegM8fA.js} +2 -2
  322. package/{useField-D1UkzeaI.cjs → useField-DyeD7MLj.cjs} +1 -1
  323. package/{useFilter-DsOxD9JB.js → useFilter-BFnSe_Eq.js} +1 -1
  324. package/{useFilter-BhM2yVO3.cjs → useFilter-aoggM85n.cjs} +1 -1
  325. package/{useFocusRing-B-A1OLhU.cjs → useFocusRing-BcbYske2.cjs} +1 -1
  326. package/{useFocusRing-DOfBqnUN.js → useFocusRing-DMo8ctYV.js} +2 -2
  327. package/{useFocusWithin-T1ifEM_s.js → useFocusWithin-ClMkhYcq.js} +1 -1
  328. package/{useFocusWithin-CG8mAt2D.cjs → useFocusWithin-DTnk0e8a.cjs} +1 -1
  329. package/{useFocusable-D7I1ujkW.cjs → useFocusable-CsG-IPuC.cjs} +1 -1
  330. package/{useFocusable-BjE42axF.js → useFocusable-DXlMChFC.js} +4 -4
  331. package/useFormValidation-BQIRxgbU.cjs +1 -0
  332. package/useFormValidation-L0UHvOsP.js +217 -0
  333. package/{useHasTabbableChild-BgEe5J35.js → useHasTabbableChild-BDaxMsGu.js} +2 -2
  334. package/{useHasTabbableChild-CoQRpNbC.cjs → useHasTabbableChild-CJcLnolh.cjs} +1 -1
  335. package/{useHighlightSelectionDescription-xr_16pKd.js → useHighlightSelectionDescription-BkEv9Jye.js} +4 -4
  336. package/{useHighlightSelectionDescription-DmbDkFGY.cjs → useHighlightSelectionDescription-CQaG611l.cjs} +1 -1
  337. package/{useHover-DQvJ3Y-W.js → useHover-D6bNIkU0.js} +76 -74
  338. package/useHover-DGAmG7jt.cjs +1 -0
  339. package/{useLabels-CSU0kbtJ.cjs → useLabels-CvUk-yS3.cjs} +1 -1
  340. package/{useLabels-LrKQiY11.js → useLabels-Kmq5JCp_.js} +1 -1
  341. package/useListState-D2IEg6_e.cjs +1 -0
  342. package/{useListState-B3c3xcNW.js → useListState-pixYqSLl.js} +43 -42
  343. package/usePress-CicXV7UO.cjs +7 -0
  344. package/{usePress-BW47IcyU.js → usePress-DMUpU0GU.js} +153 -149
  345. package/{useSingleSelectListState-DdBsBWKG.js → useSingleSelectListState-BlvpP8y-.js} +1 -1
  346. package/{useSingleSelectListState-DlO5H9N-.cjs → useSingleSelectListState-CwWK_Dx2.cjs} +1 -1
  347. package/{useTextField-DjxayZsV.js → useTextField-BC5X_AO_.js} +30 -27
  348. package/useTextField-Cxpfu0U3.cjs +1 -0
  349. package/useToggleState-BVOqL4hI.js +21 -0
  350. package/useToggleState-SqDyNfRi.cjs +1 -0
  351. package/utils/types.d.ts +4 -0
  352. package/{utils-DHNZrQmj.cjs → utils-CMHKYKlz.cjs} +1 -1
  353. package/{utils-KLjWgdLR.js → utils-Cpcjg55U.js} +1 -1
  354. package/utils-DFIwp4PB.js +262 -0
  355. package/utils-__vrf9VZ.cjs +1 -0
  356. package/AccordionItem-BPOQqTkQ.js +0 -323
  357. package/AccordionItem-CS-QKqrU.cjs +0 -1
  358. package/BadgeContainer-CKBIZWsc.js +0 -37
  359. package/Breadcrumbs-BBzSV4SK.js +0 -262
  360. package/Breadcrumbs-CFUryOhf.cjs +0 -1
  361. package/Button-DExMoP5f.cjs +0 -1
  362. package/Button.module-D-mPLRxe.js +0 -14
  363. package/Button.module-goCEz5qs.cjs +0 -1
  364. package/ButtonGroup-DUqW5dzM.cjs +0 -1
  365. package/Card-BRs1FKX5.js +0 -131
  366. package/Card-cdL5669N.cjs +0 -1
  367. package/Checkbox-Co3h0hur.cjs +0 -1
  368. package/Checkbox-EB_SCBEo.js +0 -264
  369. package/CheckboxGroup-CT_eqERw.cjs +0 -1
  370. package/CheckboxGroup-DvrN1oyw.js +0 -159
  371. package/Collection-BtBX5IMY.cjs +0 -1
  372. package/Collection-D2jVTmDW.js +0 -577
  373. package/ComboBox-D_jh7TKo.cjs +0 -1
  374. package/DateField-BURrxhil.cjs +0 -1
  375. package/DateField-DKCbEonm.js +0 -47
  376. package/DateInputDivider-ToFY-yjB.cjs +0 -1
  377. package/DateRangePicker-B5vx9onl.js +0 -870
  378. package/DateRangePicker-DkIAEIIj.cjs +0 -6
  379. package/Dialog-CxHiZorC.cjs +0 -1
  380. package/Dialog-D5c_dUnB.js +0 -1611
  381. package/Dialog-DtHk3eXI.cjs +0 -1
  382. package/Dialog-DuGcBeNN.js +0 -212
  383. package/DragAndDrop-CSg60YQE.cjs +0 -1
  384. package/DragAndDrop-DOXLfJaA.js +0 -60
  385. package/Dropdown-CYakzdJg.cjs +0 -6
  386. package/FieldError-Bv3Q6ZP-.cjs +0 -1
  387. package/FocusScope-vcXLOQiu.cjs +0 -1
  388. package/Grid-DVQtOcu9.cjs +0 -1
  389. package/GridItem-DlbSdRmB.js +0 -246
  390. package/GridItem-XgHmZWXY.cjs +0 -1
  391. package/Heading-CKTR4sOz.cjs +0 -1
  392. package/Heading-D2y_kiC0.js +0 -46
  393. package/InfoBanner-CzwbOdRG.cjs +0 -1
  394. package/InfoBanner-D05poAe3.js +0 -91
  395. package/Label-ChjDdBlv.cjs +0 -1
  396. package/Layout-D0E1fOgZ.cjs +0 -16
  397. package/Layout-DtyhUz-G.js +0 -498
  398. package/Link-CibH8uRY.js +0 -72
  399. package/Link-CidjjqHb.cjs +0 -1
  400. package/Link-ESjrl63P.cjs +0 -6
  401. package/LinkButton-B6AWNiRn.cjs +0 -6
  402. package/LinkButton-BkZULm2a.js +0 -69
  403. package/ListBox-B0E1hdEt.cjs +0 -1
  404. package/ListBox-Djy7244v.js +0 -531
  405. package/ListBoxButton-CIqNRR3y.cjs +0 -1
  406. package/ListBoxButton-sqirI6I4.js +0 -15
  407. package/ListBoxSection-BYJccE4T.cjs +0 -1
  408. package/ListBoxSection-Cicbu8pS.js +0 -1058
  409. package/ListKeyboardDelegate-ZKBk2IId.cjs +0 -1
  410. package/OverlayArrow-DB_aVTVM.js +0 -507
  411. package/OverlayArrow-DpZ1FqOd.cjs +0 -1
  412. package/ProgressBar-ClysdvqU.cjs +0 -1
  413. package/ProgressBar-DTn23Zkr.js +0 -53
  414. package/Radio-CCN3o3s-.js +0 -313
  415. package/Radio-Cz0vLIBw.cjs +0 -1
  416. package/RangeCalendar-BY82hPRu.cjs +0 -11
  417. package/Select-MwvnbChP.js +0 -664
  418. package/Select-lhIwwJL7.cjs +0 -1
  419. package/SelectionManager-BJjqIWtf.cjs +0 -1
  420. package/Separator-DPLEx950.cjs +0 -1
  421. package/Separator-DvvVAypT.js +0 -59
  422. package/Skeleton-BAwbfKBW.cjs +0 -1
  423. package/Skeleton-BePDRmrO.js +0 -40
  424. package/Spinner-VSyPhiJ9.js +0 -51
  425. package/Spinner-vof0Y9Hh.cjs +0 -6
  426. package/TabList-CWMlbijV.cjs +0 -1
  427. package/TabList-VpTv_Xff.js +0 -435
  428. package/Table-DGYC-sDq.cjs +0 -16
  429. package/Tag-bYq-wf5D.cjs +0 -1
  430. package/Tag-rI-NhuT0.js +0 -748
  431. package/Text-BPcfhYQ9.js +0 -32
  432. package/Text-DBHWi5gA.cjs +0 -1
  433. package/TextArea-CrEALC58.js +0 -119
  434. package/TextArea-DJKHFKuI.cjs +0 -1
  435. package/TextField-BAX93sq7.cjs +0 -1
  436. package/TextField-Dma22dnD.js +0 -120
  437. package/TextField.module-BcpPBWnD.js +0 -13
  438. package/TextField.module-Dw5Rtn9y.cjs +0 -1
  439. package/Toast-DdmSvNaO.cjs +0 -1
  440. package/ToggleButtonGroup-98z8Dw8-.js +0 -211
  441. package/ToggleButtonGroup-DZ_wo0qx.cjs +0 -1
  442. package/Tooltip-DjNc93tV.js +0 -285
  443. package/Tooltip-pN5W3IK6.cjs +0 -1
  444. package/circle-check-BErh6TKu.js +0 -26
  445. package/circle-check-OVUGxwp9.cjs +0 -11
  446. package/filterDOMProps-BS2lrgFA.cjs +0 -1
  447. package/filterDOMProps-D6KHYVBX.js +0 -24
  448. package/index-Dsz3aiWt.cjs +0 -17
  449. package/mergeProps-B5KXZAI3.cjs +0 -1
  450. package/tokens-5PzK5zK7.cjs +0 -1
  451. package/triangle-alert-B_qAPmWC.js +0 -21
  452. package/triangle-alert-BviJNFjf.cjs +0 -6
  453. package/useButton-BoIV3kDJ.js +0 -47
  454. package/useButton-D60q0SQw.cjs +0 -1
  455. package/useDateFormatter-BJBt0jk_.cjs +0 -1
  456. package/useFormValidation-BlFGdPZB.cjs +0 -1
  457. package/useFormValidation-BzzruZKm.js +0 -215
  458. package/useHover-BE_XKZKe.cjs +0 -1
  459. package/useListState-wLau6fXo.cjs +0 -1
  460. package/usePress-BooY_CAy.cjs +0 -7
  461. package/useTextField-DnRrCg5o.cjs +0 -1
  462. package/useToggleState-Bz5rAf4C.js +0 -18
  463. package/useToggleState-DoIkSQdj.cjs +0 -1
  464. package/utils-CoCR_Fce.js +0 -234
  465. package/utils-Dvdohqm9.cjs +0 -1
package/Text-BPcfhYQ9.js DELETED
@@ -1,32 +0,0 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { c as b } from "./clsx-OuTLNxxd.js";
3
- import { a as y } from "./Text-DcZqSUN9.js";
4
- import './assets/Text.css';const x = "_description_17s3x_24", s = {
5
- "body-01": "_body-01_17s3x_4",
6
- "body-02": "_body-02_17s3x_5",
7
- description: x
8
- }, t = "span", f = ({
9
- children: e,
10
- className: c,
11
- variant: d = "body-02",
12
- isExpressive: r = !1,
13
- elementType: i = t,
14
- ...o
15
- }) => {
16
- const n = {
17
- "body-01": s["body-01"],
18
- "body-02": s["body-02"]
19
- }, p = {
20
- className: b(
21
- o.slot === "description" ? s.description : n[d],
22
- c
23
- ),
24
- elementType: i || t,
25
- ...r && { "data-expressive": !0 },
26
- ...o
27
- };
28
- return /* @__PURE__ */ a(y, { ...p, children: e });
29
- };
30
- export {
31
- f as T
32
- };
package/Text-DBHWi5gA.cjs DELETED
@@ -1 +0,0 @@
1
- "use strict";require('./assets/Text.css');const b=require("react/jsx-runtime"),y=require("./clsx-C11secjj.cjs"),p=require("./Text-CfcjRtke.cjs"),_="_description_17s3x_24",s={"body-01":"_body-01_17s3x_4","body-02":"_body-02_17s3x_5",description:_},t="span",a=({children:o,className:c,variant:n="body-02",isExpressive:d=!1,elementType:r=t,...e})=>{const i={"body-01":s["body-01"],"body-02":s["body-02"]},x={className:y.clsx(e.slot==="description"?s.description:i[n],c),elementType:r||t,...d&&{"data-expressive":!0},...e};return b.jsx(p.$514c0188e459b4c0$export$5f1af8db9871e1d6,{...x,children:o})};exports.Text=a;
@@ -1,119 +0,0 @@
1
- import { jsxs as m, jsx as r, Fragment as u } from "react/jsx-runtime";
2
- import * as d from "react";
3
- import { $ as h } from "./utils-KLjWgdLR.js";
4
- import { a as N, $ as F } from "./Input-n-Z20KbW.js";
5
- import { c as n } from "./clsx-OuTLNxxd.js";
6
- import { s as i } from "./TextField.module-BcpPBWnD.js";
7
- import { T as $ } from "./Text-BPcfhYQ9.js";
8
- import { B as T } from "./Button-BjMaGya2.js";
9
- import { u as g } from "./useLocalizedStringFormatter-N0AyjzbM.js";
10
- import { $ as P, a as v, b as L } from "./TextField-Dma22dnD.js";
11
- import { F as f } from "./FieldError-CDCvUjK5.js";
12
- import { C as R } from "./CharacterCounter-DpBDwvLw.js";
13
- import { a as y, L as B } from "./Label-endv1fkJ.js";
14
- const p = d.forwardRef((e, s) => {
15
- [e] = h(e, s, v);
16
- const {
17
- label: o,
18
- description: a,
19
- errorMessage: t,
20
- showCounter: c,
21
- errorPosition: l = "top",
22
- size: b = "large",
23
- popover: w,
24
- children: x
25
- } = e;
26
- return /* @__PURE__ */ m(
27
- P,
28
- {
29
- ...e,
30
- className: n(i.textField, {
31
- [i.medium]: b === "medium"
32
- }),
33
- children: [
34
- /* @__PURE__ */ r(y, { popover: w, children: o && /* @__PURE__ */ r(B, { children: o }) }),
35
- a && /* @__PURE__ */ r($, { slot: "description", children: a }),
36
- c && /* @__PURE__ */ r(R, { isLonely: !a }),
37
- l === "top" && /* @__PURE__ */ r(f, { "data-testid": "fieldError", children: t }),
38
- x,
39
- l === "bottom" && /* @__PURE__ */ r(
40
- f,
41
- {
42
- "data-testid": "fieldError",
43
- className: i.bottomError,
44
- children: t
45
- }
46
- )
47
- ]
48
- }
49
- );
50
- }), C = {
51
- hide: "Hide",
52
- show: "Show"
53
- }, E = {
54
- hide: "Dölj",
55
- show: "Visa"
56
- }, S = {
57
- en: C,
58
- sv: E
59
- }, j = ({ value: e }) => {
60
- const [s, o] = d.useState(!1), a = () => o((c) => !c), t = g(S);
61
- return /* @__PURE__ */ m(u, { children: [
62
- s && /* @__PURE__ */ r(
63
- $,
64
- {
65
- slot: "description",
66
- className: i.passwordText,
67
- children: e
68
- }
69
- ),
70
- /* @__PURE__ */ r(
71
- T,
72
- {
73
- variant: "tertiary",
74
- onPress: a,
75
- className: i.passwordButton,
76
- children: s ? t.format("hide") : t.format("show")
77
- }
78
- )
79
- ] });
80
- }, z = d.forwardRef(
81
- (e, s) => ([e, s] = h(e, s, F), /* @__PURE__ */ m("div", { className: i.wrap, children: [
82
- /* @__PURE__ */ r(
83
- N,
84
- {
85
- ...e,
86
- ref: s,
87
- className: n(i.input, e.className)
88
- }
89
- ),
90
- e.type === "password" && /* @__PURE__ */ r(j, { ...e })
91
- ] }))
92
- ), O = d.forwardRef(
93
- ({ className: e, form: s, list: o, ...a }, t) => /* @__PURE__ */ r(p, { ...a, children: /* @__PURE__ */ r(
94
- z,
95
- {
96
- className: n(e),
97
- form: s,
98
- list: o,
99
- ref: t
100
- }
101
- ) })
102
- ), Q = d.forwardRef(
103
- ({ className: e, form: s, rows: o, wrap: a, ...t }, c) => /* @__PURE__ */ r(p, { ...t, children: /* @__PURE__ */ r(
104
- L,
105
- {
106
- className: n(i.textArea, e),
107
- form: s,
108
- ref: c,
109
- rows: o,
110
- wrap: a
111
- }
112
- ) })
113
- );
114
- export {
115
- z as I,
116
- p as T,
117
- O as a,
118
- Q as b
119
- };
@@ -1 +0,0 @@
1
- "use strict";const t=require("react/jsx-runtime"),F=require("react"),b=require("./utils-DHNZrQmj.cjs"),f=require("./Input-MJji5hhq.cjs"),l=require("./clsx-C11secjj.cjs"),a=require("./TextField.module-Dw5Rtn9y.cjs"),j=require("./Text-DBHWi5gA.cjs"),q=require("./Button-Dq6ugqxT.cjs"),T=require("./useLocalizedStringFormatter-BO2iZEL0.cjs"),d=require("./TextField-BAX93sq7.cjs"),m=require("./FieldError-Bv3Q6ZP-.cjs"),g=require("./CharacterCounter-DSFBv3Rw.cjs"),h=require("./Label-ChjDdBlv.cjs");function N(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(s,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return s.default=e,Object.freeze(s)}const i=N(F),u=i.forwardRef((e,s)=>{[e]=b.$64fa3d84918910a7$export$29f1550f4b0d4415(e,s,d.$bcdf0525bf22703d$export$2129e27b3ef0d483);const{label:r,description:o,errorMessage:c,showCounter:n,errorPosition:x="top",size:w="large",popover:p,children:y}=e;return t.jsxs(d.$bcdf0525bf22703d$export$2c73285ae9390cec,{...e,className:l.clsx(a.styles.textField,{[a.styles.medium]:w==="medium"}),children:[t.jsx(h.LabelWrapper,{popover:p,children:r&&t.jsx(h.Label,{children:r})}),o&&t.jsx(j.Text,{slot:"description",children:o}),n&&t.jsx(g.CharacterCounter,{isLonely:!o}),x==="top"&&t.jsx(m.FieldError,{"data-testid":"fieldError",children:c}),y,x==="bottom"&&t.jsx(m.FieldError,{"data-testid":"fieldError",className:a.styles.bottomError,children:c})]})}),P={hide:"Hide",show:"Show"},R={hide:"Dölj",show:"Visa"},S={en:P,sv:R},v=({value:e})=>{const[s,r]=i.useState(!1),o=()=>r(n=>!n),c=T.useLocalizedStringFormatter(S);return t.jsxs(t.Fragment,{children:[s&&t.jsx(j.Text,{slot:"description",className:a.styles.passwordText,children:e}),t.jsx(q.Button,{variant:"tertiary",onPress:o,className:a.styles.passwordButton,children:s?c.format("hide"):c.format("show")})]})},$=i.forwardRef((e,s)=>([e,s]=b.$64fa3d84918910a7$export$29f1550f4b0d4415(e,s,f.$3985021b0ad6602f$export$37fb8590cf2c088c),t.jsxs("div",{className:a.styles.wrap,children:[t.jsx(f.$3985021b0ad6602f$export$f5b8910cec6cf069,{...e,ref:s,className:l.clsx(a.styles.input,e.className)}),e.type==="password"&&t.jsx(v,{...e})]}))),E=i.forwardRef(({className:e,form:s,list:r,...o},c)=>t.jsx(u,{...o,children:t.jsx($,{className:l.clsx(e),form:s,list:r,ref:c})})),L=i.forwardRef(({className:e,form:s,rows:r,wrap:o,...c},n)=>t.jsx(u,{...c,children:t.jsx(d.$216918bed6669f72$export$f5c9f3c2c4054eec,{className:l.clsx(a.styles.textArea,e),form:s,ref:n,rows:r,wrap:o})}));exports.Input=$;exports.TextArea=L;exports.TextField=E;exports.TextFieldBase=u;
@@ -1 +0,0 @@
1
- "use strict";const a=require("./utils-DHNZrQmj.cjs"),y=require("./FieldError-Bv3Q6ZP-.cjs"),C=require("./Form-BuOomA4T.cjs"),P=require("./Input-MJji5hhq.cjs"),B=require("./Button-DExMoP5f.cjs"),t=require("react"),D=require("./useHover-BE_XKZKe.cjs"),M=require("./useFocusRing-B-A1OLhU.cjs"),q=require("./mergeProps-B5KXZAI3.cjs"),O=require("./Text-CfcjRtke.cjs"),A=require("./Hidden-BxRZGdEW.cjs"),V=require("./filterDOMProps-BS2lrgFA.cjs"),S=require("./useTextField-DnRrCg5o.cjs"),F=t.createContext({});let _=l=>{let{onHoverStart:e,onHoverChange:d,onHoverEnd:n,...r}=l;return r};const N=t.forwardRef(function(e,d){[e,d]=a.$64fa3d84918910a7$export$29f1550f4b0d4415(e,d,F);let{hoverProps:n,isHovered:r}=D.$6179b936705e76d3$export$ae780daf29e6d456(e),{isFocused:i,isFocusVisible:f,focusProps:s}=M.$f7dceffc5ad7768b$export$4e328f61c538687f({isTextInput:!0,autoFocus:e.autoFocus}),c=!!e["aria-invalid"]&&e["aria-invalid"]!=="false",o=a.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,values:{isHovered:r,isFocused:i,isFocusVisible:f,isDisabled:e.disabled||!1,isInvalid:c},defaultClassName:"react-aria-TextArea"});return t.createElement("textarea",{...q.$3ef42575df84b30b$export$9d1611c77c2fe928(_(e),s,n),...o,ref:d,"data-focused":i||void 0,"data-disabled":e.disabled||void 0,"data-hovered":r||void 0,"data-focus-visible":f||void 0,"data-invalid":c||void 0})}),R=t.createContext(null),k=A.$f39a9eba43920ace$export$86427a43e3e48ebb(function(e,d){[e,d]=a.$64fa3d84918910a7$export$29f1550f4b0d4415(e,d,R);let{validationBehavior:n}=a.$64fa3d84918910a7$export$fabf2dc03a41866e(C.$d3e0e05bdfcf66bd$export$c24727297075ec6a)||{};var r,i;let f=(i=(r=e.validationBehavior)!==null&&r!==void 0?r:n)!==null&&i!==void 0?i:"native",s=t.useRef(null),[c,o]=a.$64fa3d84918910a7$export$29f1550f4b0d4415({},s,P.$3985021b0ad6602f$export$37fb8590cf2c088c),[h,m]=a.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!e["aria-label"]&&!e["aria-labelledby"]),[H,T]=t.useState("input"),{labelProps:E,inputProps:b,descriptionProps:I,errorMessageProps:g,...$}=S.$2d73ec29415bd339$export$712718f7aec83d5({...a.$64fa3d84918910a7$export$ef03459518577ad4(e),inputElementType:H,label:m,validationBehavior:f},o),v=t.useCallback(u=>{o.current=u,u&&T(u instanceof HTMLTextAreaElement?"textarea":"input")},[o]),x=a.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,values:{isDisabled:e.isDisabled||!1,isInvalid:$.isInvalid,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-TextField"}),p=V.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e);return delete p.id,t.createElement("div",{...p,...x,ref:d,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":$.isInvalid||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0},t.createElement(a.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[B.$01b77f81d0f07f68$export$75b6ee27786ba447,{...E,ref:h}],[P.$3985021b0ad6602f$export$37fb8590cf2c088c,{...q.$3ef42575df84b30b$export$9d1611c77c2fe928(b,c),ref:v}],[F,{...b,ref:v}],[O.$514c0188e459b4c0$export$9afb8bc826b033ea,{slots:{description:I,errorMessage:g}}],[y.$ee014567cb39d3f0$export$ff05c3ac10437e03,$]]},x.children))});exports.$216918bed6669f72$export$f5c9f3c2c4054eec=N;exports.$bcdf0525bf22703d$export$2129e27b3ef0d483=R;exports.$bcdf0525bf22703d$export$2c73285ae9390cec=k;
@@ -1,120 +0,0 @@
1
- import { $ as c, a as P, c as B, d as D, e as M, f as O } from "./utils-KLjWgdLR.js";
2
- import { $ as _ } from "./FieldError-CDCvUjK5.js";
3
- import { $ as q } from "./Form-CXcEMuBf.js";
4
- import { $ as p } from "./Input-n-Z20KbW.js";
5
- import { b as A } from "./Button-CepQFEit.js";
6
- import u, { forwardRef as V, createContext as h, useRef as S, useState as N, useCallback as k } from "react";
7
- import { $ as w } from "./useHover-DQvJ3Y-W.js";
8
- import { $ as L } from "./useFocusRing-DOfBqnUN.js";
9
- import { a as R } from "./mergeProps-C1U1OIeJ.js";
10
- import { $ as j } from "./Text-DcZqSUN9.js";
11
- import { $ as z } from "./Hidden-C9KWUR7b.js";
12
- import { $ as G } from "./filterDOMProps-D6KHYVBX.js";
13
- import { $ as J } from "./useTextField-DjxayZsV.js";
14
- const H = /* @__PURE__ */ h({});
15
- let K = (l) => {
16
- let { onHoverStart: e, onHoverChange: a, onHoverEnd: r, ...t } = l;
17
- return t;
18
- };
19
- const le = /* @__PURE__ */ V(function(e, a) {
20
- [e, a] = c(e, a, H);
21
- let { hoverProps: r, isHovered: t } = w(e), { isFocused: d, isFocusVisible: o, focusProps: s } = L({
22
- isTextInput: !0,
23
- autoFocus: e.autoFocus
24
- }), f = !!e["aria-invalid"] && e["aria-invalid"] !== "false", i = P({
25
- ...e,
26
- values: {
27
- isHovered: t,
28
- isFocused: d,
29
- isFocusVisible: o,
30
- isDisabled: e.disabled || !1,
31
- isInvalid: f
32
- },
33
- defaultClassName: "react-aria-TextArea"
34
- });
35
- return /* @__PURE__ */ u.createElement("textarea", {
36
- ...R(K(e), s, r),
37
- ...i,
38
- ref: a,
39
- "data-focused": d || void 0,
40
- "data-disabled": e.disabled || void 0,
41
- "data-hovered": t || void 0,
42
- "data-focus-visible": o || void 0,
43
- "data-invalid": f || void 0
44
- });
45
- }), Q = /* @__PURE__ */ h(null), se = /* @__PURE__ */ z(function(e, a) {
46
- [e, a] = c(e, a, Q);
47
- let { validationBehavior: r } = B(q) || {};
48
- var t, d;
49
- let o = (d = (t = e.validationBehavior) !== null && t !== void 0 ? t : r) !== null && d !== void 0 ? d : "native", s = S(null), [f, i] = c({}, s, p), [T, F] = D(!e["aria-label"] && !e["aria-labelledby"]), [E, y] = N("input"), { labelProps: I, inputProps: b, descriptionProps: C, errorMessageProps: g, ...n } = J({
50
- ...M(e),
51
- inputElementType: E,
52
- label: F,
53
- validationBehavior: o
54
- }, i), v = k(($) => {
55
- i.current = $, $ && y($ instanceof HTMLTextAreaElement ? "textarea" : "input");
56
- }, [
57
- i
58
- ]), m = P({
59
- ...e,
60
- values: {
61
- isDisabled: e.isDisabled || !1,
62
- isInvalid: n.isInvalid,
63
- isReadOnly: e.isReadOnly || !1,
64
- isRequired: e.isRequired || !1
65
- },
66
- defaultClassName: "react-aria-TextField"
67
- }), x = G(e);
68
- return delete x.id, /* @__PURE__ */ u.createElement("div", {
69
- ...x,
70
- ...m,
71
- ref: a,
72
- slot: e.slot || void 0,
73
- "data-disabled": e.isDisabled || void 0,
74
- "data-invalid": n.isInvalid || void 0,
75
- "data-readonly": e.isReadOnly || void 0,
76
- "data-required": e.isRequired || void 0
77
- }, /* @__PURE__ */ u.createElement(O, {
78
- values: [
79
- [
80
- A,
81
- {
82
- ...I,
83
- ref: T
84
- }
85
- ],
86
- [
87
- p,
88
- {
89
- ...R(b, f),
90
- ref: v
91
- }
92
- ],
93
- [
94
- H,
95
- {
96
- ...b,
97
- ref: v
98
- }
99
- ],
100
- [
101
- j,
102
- {
103
- slots: {
104
- description: C,
105
- errorMessage: g
106
- }
107
- }
108
- ],
109
- [
110
- _,
111
- n
112
- ]
113
- ]
114
- }, m.children));
115
- });
116
- export {
117
- se as $,
118
- Q as a,
119
- le as b
120
- };
@@ -1,13 +0,0 @@
1
- import './assets/TextField.css';const t = "_textField_101h7_4", o = "_bottomError_101h7_23", s = "_textArea_101h7_32", _ = "_wrap_101h7_79", r = "_medium_101h7_84", e = "_input_101h7_85", n = "_passwordText_101h7_108", a = "_passwordButton_101h7_147", p = {
2
- textField: t,
3
- bottomError: o,
4
- textArea: s,
5
- wrap: _,
6
- medium: r,
7
- input: e,
8
- passwordText: n,
9
- passwordButton: a
10
- };
11
- export {
12
- p as s
13
- };
@@ -1 +0,0 @@
1
- "use strict";require('./assets/TextField.css');const t="_textField_101h7_4",o="_bottomError_101h7_23",s="_textArea_101h7_32",_="_wrap_101h7_79",r="_medium_101h7_84",e="_input_101h7_85",n="_passwordText_101h7_108",a="_passwordButton_101h7_147",d={textField:t,bottomError:o,textArea:s,wrap:_,medium:r,input:e,passwordText:n,passwordButton:a};exports.styles=d;
@@ -1 +0,0 @@
1
- "use strict";require('./assets/Toast.css');const b=require("react/jsx-runtime"),ge=require("./Button-Dq6ugqxT.cjs"),a=require("react"),j=require("react-dom"),w=require("./clsx-C11secjj.cjs"),A=require("./index-Dsz3aiWt.cjs"),k=require("./mergeProps-B5KXZAI3.cjs"),g=require("./utils-Dvdohqm9.cjs"),y=require("./useHover-BE_XKZKe.cjs"),Te=require("./useFocusWithin-CG8mAt2D.cjs"),P=require("./useLocalizedStringFormatter-BiX5BTlb.cjs"),ye=require("./filterDOMProps-BS2lrgFA.cjs"),Le=require("./triangle-alert-BviJNFjf.cjs"),B=require("./circle-check-OVUGxwp9.cjs"),we=require("./info-Dj6SyPex.cjs"),_e=require("./x-rV-nu490.cjs"),F=1,L=Symbol.for("react-aria-landmark-manager");function Ce(t){return document.addEventListener("react-aria-landmark-manager-change",t),()=>document.removeEventListener("react-aria-landmark-manager-change",t)}function I(){if(typeof document>"u")return null;let t=document[L];return t&&t.version>=F?t:(document[L]=new Ie,document.dispatchEvent(new CustomEvent("react-aria-landmark-manager-change")),document[L])}function Be(){return A.shimExports.useSyncExternalStore(Ce,I,I)}class Ie{setupIfNeeded(){this.isListening||(document.addEventListener("keydown",this.f6Handler,{capture:!0}),document.addEventListener("focusin",this.focusinHandler,{capture:!0}),document.addEventListener("focusout",this.focusoutHandler,{capture:!0}),this.isListening=!0)}teardownIfNeeded(){!this.isListening||this.landmarks.length>0||this.refCount>0||(document.removeEventListener("keydown",this.f6Handler,{capture:!0}),document.removeEventListener("focusin",this.focusinHandler,{capture:!0}),document.removeEventListener("focusout",this.focusoutHandler,{capture:!0}),this.isListening=!1)}focusLandmark(e,n){var i,o;(o=this.landmarks.find(u=>u.ref.current===e))===null||o===void 0||(i=o.focus)===null||i===void 0||i.call(o,n)}getLandmarksByRole(e){return new Set(this.landmarks.filter(n=>n.role===e))}getLandmarkByRole(e){return this.landmarks.find(n=>n.role===e)}addLandmark(e){if(this.setupIfNeeded(),this.landmarks.find(o=>o.ref===e.ref)||!e.ref.current)return;if(this.landmarks.filter(o=>o.role==="main").length>1&&process.env.NODE_ENV!=="production"&&console.error('Page can contain no more than one landmark with the role "main".'),this.landmarks.length===0){this.landmarks=[e],this.checkLabels(e.role);return}let n=0,i=this.landmarks.length-1;for(;n<=i;){let o=Math.floor((n+i)/2),u=e.ref.current.compareDocumentPosition(this.landmarks[o].ref.current);!!(u&Node.DOCUMENT_POSITION_PRECEDING||u&Node.DOCUMENT_POSITION_CONTAINS)?n=o+1:i=o-1}this.landmarks.splice(n,0,e),this.checkLabels(e.role)}updateLandmark(e){let n=this.landmarks.findIndex(i=>i.ref===e.ref);n>=0&&(this.landmarks[n]={...this.landmarks[n],...e},this.checkLabels(this.landmarks[n].role))}removeLandmark(e){this.landmarks=this.landmarks.filter(n=>n.ref!==e),this.teardownIfNeeded()}checkLabels(e){let n=this.getLandmarksByRole(e);if(n.size>1){let i=[...n].filter(o=>!o.label);if(i.length>0&&process.env.NODE_ENV!=="production")console.warn(`Page contains more than one landmark with the '${e}' role. If two or more landmarks on a page share the same role, all must be labeled with an aria-label or aria-labelledby attribute: `,i.map(o=>o.ref.current));else if(process.env.NODE_ENV!=="production"){let o=[...n].map(r=>r.label);o.filter((r,s)=>o.indexOf(r)!==s).forEach(r=>{console.warn(`Page contains more than one landmark with the '${e}' role and '${r}' label. If two or more landmarks on a page share the same role, they must have unique labels: `,[...n].filter(s=>s.label===r).map(s=>s.ref.current))})}}}closestLandmark(e){let n=new Map(this.landmarks.map(o=>[o.ref.current,o])),i=e;for(;i&&!n.has(i)&&i!==document.body&&i.parentElement;)i=i.parentElement;return n.get(i)}getNextLandmark(e,{backward:n}){var i;let o=this.closestLandmark(e),u=n?this.landmarks.length-1:0;o&&(u=this.landmarks.indexOf(o)+(n?-1:1));let r=()=>{if(u<0){if(!e.dispatchEvent(new CustomEvent("react-aria-landmark-navigation",{detail:{direction:"backward"},bubbles:!0,cancelable:!0})))return!0;u=this.landmarks.length-1}else if(u>=this.landmarks.length){if(!e.dispatchEvent(new CustomEvent("react-aria-landmark-navigation",{detail:{direction:"forward"},bubbles:!0,cancelable:!0})))return!0;u=0}return u<0||u>=this.landmarks.length};if(r())return;let s=u;for(;!((i=this.landmarks[u].ref.current)===null||i===void 0)&&i.closest("[aria-hidden=true]");){if(u+=n?-1:1,r())return;if(u===s)break}return this.landmarks[u]}f6Handler(e){e.key==="F6"&&(e.altKey?this.focusMain():this.navigate(e.target,e.shiftKey))&&(e.preventDefault(),e.stopPropagation())}focusMain(){let e=this.getLandmarkByRole("main");return e&&e.ref.current&&document.contains(e.ref.current)?(this.focusLandmark(e.ref.current,"forward"),!0):!1}navigate(e,n){let i=this.getNextLandmark(e,{backward:n});if(!i)return!1;if(i.lastFocused){let o=i.lastFocused;if(document.body.contains(o))return o.focus(),!0}return i.ref.current&&document.contains(i.ref.current)?(this.focusLandmark(i.ref.current,n?"backward":"forward"),!0):!1}focusinHandler(e){let n=this.closestLandmark(e.target);n&&n.ref.current!==e.target&&this.updateLandmark({ref:n.ref,lastFocused:e.target});let i=e.relatedTarget;if(i){let o=this.closestLandmark(i);o&&o.ref.current===i&&o.blur()}}focusoutHandler(e){let n=e.target,i=e.relatedTarget;if(!i||i===document){let o=this.closestLandmark(n);o&&o.ref.current===n&&o.blur()}}createLandmarkController(){let e=this;return e.refCount++,e.setupIfNeeded(),{navigate(n,i){let o=(i==null?void 0:i.from)||document.activeElement;return e.navigate(o,n==="backward")},focusNext(n){let i=(n==null?void 0:n.from)||document.activeElement;return e.navigate(i,!1)},focusPrevious(n){let i=(n==null?void 0:n.from)||document.activeElement;return e.navigate(i,!0)},focusMain(){return e.focusMain()},dispose(){e&&(e.refCount--,e.teardownIfNeeded(),e=null)}}}registerLandmark(e){return this.landmarks.find(n=>n.ref===e.ref)?this.updateLandmark(e):this.addLandmark(e),()=>this.removeLandmark(e.ref)}constructor(){this.landmarks=[],this.isListening=!1,this.refCount=0,this.version=F,this.f6Handler=this.f6Handler.bind(this),this.focusinHandler=this.focusinHandler.bind(this),this.focusoutHandler=this.focusoutHandler.bind(this)}}function je(t,e){const{role:n,"aria-label":i,"aria-labelledby":o,focus:u}=t;let r=Be(),s=i||o,[h,f]=a.useState(!1),$=a.useCallback(()=>{f(!0)},[f]),p=a.useCallback(()=>{f(!1)},[f]);return k.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(r)return r.registerLandmark({ref:e,label:s,role:n,focus:u||$,blur:p})},[r,s,e,n,u,$,p]),a.useEffect(()=>{var c;h&&((c=e.current)===null||c===void 0||c.focus())},[h,e]),{landmarkProps:{role:n,tabIndex:h?-1:void 0,"aria-label":i,"aria-labelledby":o}}}var N={};N={close:"إغلاق",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} إشعار`,other:()=>`${e.number(t.count)} إشعارات`})}.`};var R={};R={close:"Затвори",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} известие`,other:()=>`${e.number(t.count)} известия`})}.`};var S={};S={close:"Zavřít",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} oznámení`,other:()=>`${e.number(t.count)} oznámení`})}.`};var D={};D={close:"Luk",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} besked`,other:()=>`${e.number(t.count)} beskeder`})}.`};var M={};M={close:"Schließen",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} Benachrichtigung`,other:()=>`${e.number(t.count)} Benachrichtigungen`})}.`};var O={};O={close:"Κλείσιμο",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} ειδοποίηση`,other:()=>`${e.number(t.count)} ειδοποιήσεις`})}.`};var H={};H={close:"Close",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notification`,other:()=>`${e.number(t.count)} notifications`})}.`};var V={};V={close:"Cerrar",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notificación`,other:()=>`${e.number(t.count)} notificaciones`})}.`};var q={};q={close:"Sule",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} teatis`,other:()=>`${e.number(t.count)} teatist`})}.`};var z={};z={close:"Sulje",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} ilmoitus`,other:()=>`${e.number(t.count)} ilmoitusta`})}.`};var U={};U={close:"Fermer",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notification`,other:()=>`${e.number(t.count)} notifications`})}.`};var W={};W={close:"סגור",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} התראה`,other:()=>`${e.number(t.count)} התראות`})}.`};var K={};K={close:"Zatvori",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} obavijest`,other:()=>`${e.number(t.count)} obavijesti`})}.`};var Z={};Z={close:"Bezárás",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} értesítés`,other:()=>`${e.number(t.count)} értesítés`})}.`};var G={};G={close:"Chiudi",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notifica`,other:()=>`${e.number(t.count)} notifiche`})}.`};var Q={};Q={close:"閉じる",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} 個の通知`,other:()=>`${e.number(t.count)} 個の通知`})}。`};var J={};J={close:"닫기",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)}개 알림`,other:()=>`${e.number(t.count)}개 알림`})}.`};var X={};X={close:"Uždaryti",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} pranešimas`,other:()=>`${e.number(t.count)} pranešimai`})}.`};var Y={};Y={close:"Aizvērt",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} paziņojums`,other:()=>`${e.number(t.count)} paziņojumi`})}.`};var ee={};ee={close:"Lukk",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} varsling`,other:()=>`${e.number(t.count)} varsler`})}.`};var te={};te={close:"Sluiten",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} melding`,other:()=>`${e.number(t.count)} meldingen`})}.`};var ne={};ne={close:"Zamknij",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} powiadomienie`,few:()=>`${e.number(t.count)} powiadomienia`,many:()=>`${e.number(t.count)} powiadomień`,other:()=>`${e.number(t.count)} powiadomienia`})}.`};var ie={};ie={close:"Fechar",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notificação`,other:()=>`${e.number(t.count)} notificações`})}.`};var oe={};oe={close:"Fechar",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notificação`,other:()=>`${e.number(t.count)} notificações`})}.`};var ue={};ue={close:"Închideţi",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notificare`,other:()=>`${e.number(t.count)} notificări`})}.`};var re={};re={close:"Закрыть",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} уведомление`,other:()=>`${e.number(t.count)} уведомления`})}.`};var se={};se={close:"Zatvoriť",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} oznámenie`,few:()=>`${e.number(t.count)} oznámenia`,other:()=>`${e.number(t.count)} oznámení`})}.`};var ae={};ae={close:"Zapri",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} obvestilo`,two:()=>`${e.number(t.count)} obvestili`,few:()=>`${e.number(t.count)} obvestila`,other:()=>`${e.number(t.count)} obvestil`})}.`};var ce={};ce={close:"Zatvori",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} obaveštenje`,other:()=>`${e.number(t.count)} obaveštenja`})}.`};var le={};le={close:"Stäng",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} meddelande`,other:()=>`${e.number(t.count)} meddelanden`})}.`};var de={};de={close:"Kapat",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} bildirim`,other:()=>`${e.number(t.count)} bildirim`})}.`};var fe={};fe={close:"Закрити",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} сповіщення`,other:()=>`${e.number(t.count)} сповіщення`})}.`};var be={};be={close:"关闭",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} 个通知`,other:()=>`${e.number(t.count)} 个通知`})}。`};var $e={};$e={close:"關閉",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} 個通知`,other:()=>`${e.number(t.count)} 個通知`})}。`};var _={};_={"ar-AE":N,"bg-BG":R,"cs-CZ":S,"da-DK":D,"de-DE":M,"el-GR":O,"en-US":H,"es-ES":V,"et-EE":q,"fi-FI":z,"fr-FR":U,"he-IL":W,"hr-HR":K,"hu-HU":Z,"it-IT":G,"ja-JP":Q,"ko-KR":J,"lt-LT":X,"lv-LV":Y,"nb-NO":ee,"nl-NL":te,"pl-PL":ne,"pt-BR":ie,"pt-PT":oe,"ro-RO":ue,"ru-RU":re,"sk-SK":se,"sl-SI":ae,"sr-SP":ce,"sv-SE":le,"tr-TR":de,"uk-UA":fe,"zh-CN":be,"zh-TW":$e};function Ae(t){return t&&t.__esModule?t.default:t}function Pe(t,e,n){let{key:i,timer:o,timeout:u}=t.toast;a.useEffect(()=>{if(!(o==null||u==null))return o.reset(u),()=>{o.pause()}},[o,u]);let r=k.$bdb11010cef70236$export$f680877a34711e37(),s=k.$bdb11010cef70236$export$b4cc09c592e8fdb8(),h=P.$fca6afa0e843324b$export$f12b703ca79dfbb1(Ae(_),"@react-aria/toast"),[f,$]=a.useState(!1);return a.useEffect(()=>{$(!0)},[]),{toastProps:{...ye.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{labelable:!0}),role:"alertdialog","aria-modal":"false","aria-labelledby":t["aria-labelledby"]||r,"aria-describedby":t["aria-describedby"]||s,tabIndex:0},contentProps:{role:"alert","aria-atomic":"true","aria-hidden":f?void 0:"true"},titleProps:{id:r},descriptionProps:{id:s},closeButtonProps:{"aria-label":h.format("close"),onPress:()=>e.close(i)}}}function Fe(t){return t&&t.__esModule?t.default:t}function Ne(t,e,n){let i=P.$fca6afa0e843324b$export$f12b703ca79dfbb1(Fe(_),"@react-aria/toast"),{landmarkProps:o}=je({role:"region","aria-label":t["aria-label"]||i.format("notifications",{count:e.visibleToasts.length})},n),u=a.useRef(!1),r=a.useRef(!1),s=k.$8ae05eaa5c114e9c$export$7f54fc3180508a52(()=>{u.current||r.current?e.pauseAll():e.resumeAll()}),{hoverProps:h}=y.$6179b936705e76d3$export$ae780daf29e6d456({onHoverStart:()=>{u.current=!0,s()},onHoverEnd:()=>{u.current=!1,s()}}),f=a.useRef([]),$=a.useRef(e.visibleToasts),p=a.useRef(null);k.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(p.current===-1||e.visibleToasts.length===0||!n.current){f.current=[],$.current=e.visibleToasts;return}if(f.current=[...n.current.querySelectorAll('[role="alertdialog"]')],$.current.length===e.visibleToasts.length&&e.visibleToasts.every((d,m)=>d.key===$.current[m].key)){$.current=e.visibleToasts;return}let l=$.current.map((d,m)=>({...d,i:m,isRemoved:!e.visibleToasts.some(v=>d.key===v.key)})),T=l.findIndex(d=>d.i===p.current&&d.isRemoved);if(T>-1){var E;if(y.$507fabe10e71c6fb$export$630ff653c5ada6a9()==="pointer"&&(!((E=c.current)===null||E===void 0)&&E.isConnected))g.$7215afc6de606d6b$export$de79e2c695e052f3(c.current);else{let d=0,m,v;for(;d<=T;)l[d].isRemoved||(v=Math.max(0,d-1)),d++;for(;d<l.length;){if(!l[d].isRemoved){m=d-1;break}d++}v===void 0&&m===void 0&&(v=0),v>=0&&v<f.current.length?g.$7215afc6de606d6b$export$de79e2c695e052f3(f.current[v]):m>=0&&m<f.current.length&&g.$7215afc6de606d6b$export$de79e2c695e052f3(f.current[m])}}$.current=e.visibleToasts},[e.visibleToasts,n,s]);let c=a.useRef(null),{focusWithinProps:Ee}=Te.$9ab94262bd0047c7$export$420e68273165f4ec({onFocusWithin:l=>{r.current=!0,c.current=l.relatedTarget,s()},onBlurWithin:()=>{r.current=!1,c.current=null,s()}});return a.useEffect(()=>{var l;e.visibleToasts.length===0&&(!((l=c.current)===null||l===void 0)&&l.isConnected)&&(y.$507fabe10e71c6fb$export$630ff653c5ada6a9()==="pointer"?g.$7215afc6de606d6b$export$de79e2c695e052f3(c.current):c.current.focus(),c.current=null)},[n,e.visibleToasts.length]),a.useEffect(()=>()=>{var l;!((l=c.current)===null||l===void 0)&&l.isConnected&&(y.$507fabe10e71c6fb$export$630ff653c5ada6a9()==="pointer"?g.$7215afc6de606d6b$export$de79e2c695e052f3(c.current):c.current.focus(),c.current=null)},[n]),{regionProps:k.$3ef42575df84b30b$export$9d1611c77c2fe928(o,h,Ee,{tabIndex:-1,"data-react-aria-top-layer":!0,onFocus:l=>{let T=l.target.closest('[role="alertdialog"]');p.current=f.current.findIndex(E=>E===T)},onBlur:()=>{p.current=-1}})}}function he(t){let e=a.useCallback(o=>t.subscribe(o),[t]),n=a.useCallback(()=>t.visibleToasts,[t]);return{visibleToasts:A.shimExports.useSyncExternalStore(e,n,n),add:(o,u)=>t.add(o,u),close:o=>t.close(o),pauseAll:()=>t.pauseAll(),resumeAll:()=>t.resumeAll()}}class me{runWithWrapUpdate(e,n){this.wrapUpdate?this.wrapUpdate(e,n):e()}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}add(e,n={}){let i="_"+Math.random().toString(36).slice(2),o={...n,content:e,key:i,timer:n.timeout?new Re(()=>this.close(i),n.timeout):void 0};return this.queue.unshift(o),this.updateVisibleToasts("add"),i}close(e){let n=this.queue.findIndex(u=>u.key===e);if(n>=0){var i,o;(i=(o=this.queue[n]).onClose)===null||i===void 0||i.call(o),this.queue.splice(n,1)}this.updateVisibleToasts("remove")}updateVisibleToasts(e){this.visibleToasts=this.queue.slice(0,this.maxVisibleToasts),this.runWithWrapUpdate(()=>{for(let n of this.subscriptions)n()},e)}pauseAll(){for(let e of this.visibleToasts)e.timer&&e.timer.pause()}resumeAll(){for(let e of this.visibleToasts)e.timer&&e.timer.resume()}clear(){this.queue=[],this.updateVisibleToasts("clear")}constructor(e){this.queue=[],this.subscriptions=new Set,this.visibleToasts=[];var n;this.maxVisibleToasts=(n=e==null?void 0:e.maxVisibleToasts)!==null&&n!==void 0?n:1/0,this.wrapUpdate=e==null?void 0:e.wrapUpdate}}class Re{reset(e){this.remaining=e,this.resume()}pause(){this.timerId!=null&&(clearTimeout(this.timerId),this.timerId=null,this.remaining-=Date.now()-this.startTime)}resume(){this.remaining<=0||(this.startTime=Date.now(),this.timerId=setTimeout(()=>{this.timerId=null,this.remaining=0,this.callback()},this.remaining))}constructor(e,n){this.startTime=null,this.remaining=n,this.callback=e}}const Se='"../theme/tokens.css"',De="_toastRegion_jgjyx_52",Me="_toast_jgjyx_52",Oe="_success_jgjyx_95",He="_info_jgjyx_103",Ve="_important_jgjyx_111",qe="_warning_jgjyx_119",ze="_icon_jgjyx_127",Ue="_toastContent_jgjyx_137",We="_toastMessage_jgjyx_144",Ke="_slideInTop_jgjyx_1",Ze="_slideInEnd_jgjyx_1",Ge="_slideOutTop_jgjyx_1",Qe="_slideOutEnd_jgjyx_1",x={tokens:Se,"--font-family":'"Inter", sans-serif',"--text-primary":"light-dark(#171717, #f2f2f2)","--support-background-success":"light-dark(#d5f2d9, light-dark(#f2f2f2, #262626))","--support-border-success":"light-dark(#008d3c, #008d3c)","--support-background-info":"light-dark(#eaf2f6, light-dark(#f2f2f2, #262626))","--support-border-info":"light-dark(#0066cc, #0066cc)","--support-background-important":"light-dark(#fff8e1, light-dark(#f2f2f2, #262626))","--support-border-important":"light-dark(#fdb813, #fdb813)","--support-border-warning":"light-dark(#e62323, #e62323)","--support-background-warning":"light-dark(#ffdfdf, light-dark(#f2f2f2, #262626))","--breakpoint-md":"(min-width: 768px)","--focus":"0 0 0 2px light-dark(white, black), 0 0 0 4px light-dark(black, white)","--z-index-toast":"1100",toastRegion:De,toast:Me,success:Oe,info:He,important:Ve,warning:qe,icon:ze,toastContent:Ue,toastMessage:We,slideInTop:Ke,slideInEnd:Ze,slideOutTop:Ge,slideOutEnd:Qe},Je={success:B.CircleCheck,info:we.Info,important:B.CircleAlert,warning:Le.TriangleAlert},pe={wrapUpdate(t){"startViewTransition"in document?document.startViewTransition(()=>{j.flushSync(t)}):t()},maxVisibleToasts:5};function ve(t={}){const{maxVisibleToasts:e=1,wrapUpdate:n}=t,i=a.useMemo(()=>new me({maxVisibleToasts:e,wrapUpdate:n}),[e,n]);return he(i)}const xe=new me(pe),Xe=t=>{const e=he(xe);return e.visibleToasts.length>0?j.createPortal(b.jsx(C,{...t,state:e}),document.body):null},Ye=({children:t,...e})=>{const n=ve(pe);return b.jsxs(b.Fragment,{children:[typeof t=="function"?t(n):t,n.visibleToasts.length>0&&b.jsx(C,{...e,state:n})]})};function C({state:t,className:e,...n}){const i=a.useRef(null),{regionProps:o}=Ne(n,t,i);return b.jsx("div",{...o,ref:i,className:w.clsx(x.toastRegion,e),children:t.visibleToasts.map(u=>b.jsx(ke,{toast:u,state:t},u.key))})}function ke({state:t,className:e,...n}){const i=a.useRef(null),{toastProps:o,contentProps:u,titleProps:r,closeButtonProps:s}=Pe(n,t),h=Je[n.toast.content.type];return b.jsxs("div",{...o,ref:i,className:w.clsx(x.toast,x[n.toast.content.type],e),style:{viewTransitionName:n.toast.key},children:[b.jsxs("div",{...u,className:w.clsx(x.toastContent,u.className),children:[b.jsx(h,{className:x.icon,size:20,"aria-hidden":!0}),b.jsxs("div",{children:[b.jsx("p",{className:x.toastMessage,...r,children:n.toast.content.message}),n.toast.content.children]})]}),b.jsx(ge.Button,{variant:"icon",...s,children:b.jsx(_e.X,{size:20,"aria-hidden":!0})})]})}exports.GlobalToastRegion=Xe;exports.Toast=ke;exports.ToastProvider=Ye;exports.ToastRegion=C;exports.toastQueue=xe;exports.useToastState=ve;
@@ -1,211 +0,0 @@
1
- import { jsx as y } from "react/jsx-runtime";
2
- import { $ as D, a as h } from "./utils-KLjWgdLR.js";
3
- import P, { useState as _, useRef as E, useMemo as x, forwardRef as K, createContext as S, useContext as F } from "react";
4
- import { $ as N } from "./useToggleState-Bz5rAf4C.js";
5
- import { $ as M } from "./useFocusRing-DOfBqnUN.js";
6
- import { e as z, a as p, $ as R } from "./mergeProps-C1U1OIeJ.js";
7
- import { $ as A } from "./useHover-DQvJ3Y-W.js";
8
- import { B as v } from "./Button.module-D-mPLRxe.js";
9
- import { c as B } from "./clsx-OuTLNxxd.js";
10
- import { $ as L } from "./useControlledState-u436Wbp1.js";
11
- import { $ as G } from "./useButton-BoIV3kDJ.js";
12
- import { b as H } from "./FocusScope-DMsfA3bj.js";
13
- import { $ as V } from "./filterDOMProps-D6KHYVBX.js";
14
- import { $ as k } from "./context-CGNJ3grH.js";
15
- import './assets/ToggleButtonGroup.css';function w(t, e, d) {
16
- const { isSelected: a } = e, { isPressed: s, buttonProps: l } = G({
17
- ...t,
18
- onPress: z(e.toggle, t.onPress)
19
- }, d);
20
- return {
21
- isPressed: s,
22
- isSelected: a,
23
- isDisabled: t.isDisabled || !1,
24
- buttonProps: p(l, {
25
- "aria-pressed": a
26
- })
27
- };
28
- }
29
- function I(t, e) {
30
- const { "aria-label": d, "aria-labelledby": a, orientation: s = "horizontal" } = t;
31
- let [l, r] = _(!1);
32
- R(() => {
33
- var o;
34
- r(!!(e.current && (!((o = e.current.parentElement) === null || o === void 0) && o.closest('[role="toolbar"]'))));
35
- });
36
- const { direction: i } = k(), u = i === "rtl" && s === "horizontal";
37
- let c = H(e);
38
- const b = (o) => {
39
- if (o.currentTarget.contains(o.target)) {
40
- if (s === "horizontal" && o.key === "ArrowRight" || s === "vertical" && o.key === "ArrowDown")
41
- u ? c.focusPrevious() : c.focusNext();
42
- else if (s === "horizontal" && o.key === "ArrowLeft" || s === "vertical" && o.key === "ArrowUp")
43
- u ? c.focusNext() : c.focusPrevious();
44
- else if (o.key === "Tab") {
45
- o.stopPropagation(), n.current = document.activeElement, o.shiftKey ? c.focusFirst() : c.focusLast();
46
- return;
47
- } else
48
- return;
49
- o.stopPropagation(), o.preventDefault();
50
- }
51
- }, n = E(null), g = (o) => {
52
- !o.currentTarget.contains(o.relatedTarget) && !n.current && (n.current = o.target);
53
- }, $ = (o) => {
54
- var f;
55
- if (n.current && !o.currentTarget.contains(o.relatedTarget) && (!((f = e.current) === null || f === void 0) && f.contains(o.target))) {
56
- var m;
57
- (m = n.current) === null || m === void 0 || m.focus(), n.current = null;
58
- }
59
- };
60
- return {
61
- toolbarProps: {
62
- ...V(t, {
63
- labelable: !0
64
- }),
65
- role: l ? "group" : "toolbar",
66
- "aria-orientation": s,
67
- "aria-label": d,
68
- "aria-labelledby": d == null ? a : void 0,
69
- onKeyDownCapture: l ? void 0 : b,
70
- onFocusCapture: l ? void 0 : $,
71
- onBlurCapture: l ? void 0 : g
72
- }
73
- };
74
- }
75
- function j(t, e, d) {
76
- let { isDisabled: a } = t, { toolbarProps: s } = I(t, d);
77
- return {
78
- groupProps: {
79
- ...s,
80
- role: e.selectionMode === "single" ? "radiogroup" : s.role,
81
- "aria-disabled": a
82
- }
83
- };
84
- }
85
- function U(t, e, d) {
86
- let a = {
87
- isSelected: e.selectedKeys.has(t.id),
88
- setSelected(u) {
89
- e.setSelected(t.id, u);
90
- },
91
- toggle() {
92
- e.toggleKey(t.id);
93
- }
94
- }, { isPressed: s, isSelected: l, isDisabled: r, buttonProps: i } = w({
95
- ...t,
96
- id: void 0,
97
- isDisabled: t.isDisabled || e.isDisabled
98
- }, a, d);
99
- return e.selectionMode === "single" && (i.role = "radio", i["aria-checked"] = a.isSelected, delete i["aria-pressed"]), {
100
- isPressed: s,
101
- isSelected: l,
102
- isDisabled: r,
103
- buttonProps: i
104
- };
105
- }
106
- function q(t) {
107
- let { selectionMode: e = "single", disallowEmptySelection: d, isDisabled: a = !1 } = t, [s, l] = L(x(() => t.selectedKeys ? new Set(t.selectedKeys) : void 0, [
108
- t.selectedKeys
109
- ]), x(() => t.defaultSelectedKeys ? new Set(t.defaultSelectedKeys) : /* @__PURE__ */ new Set(), [
110
- t.defaultSelectedKeys
111
- ]), t.onSelectionChange);
112
- return {
113
- selectionMode: e,
114
- isDisabled: a,
115
- selectedKeys: s,
116
- setSelectedKeys: l,
117
- toggleKey(r) {
118
- let i;
119
- e === "multiple" ? (i = new Set(s), i.has(r) && (!d || i.size > 1) ? i.delete(r) : i.add(r)) : i = new Set(s.has(r) && !d ? [] : [
120
- r
121
- ]), l(i);
122
- },
123
- setSelected(r, i) {
124
- i !== s.has(r) && this.toggleKey(r);
125
- }
126
- };
127
- }
128
- const J = /* @__PURE__ */ S({}), T = /* @__PURE__ */ S(null), O = /* @__PURE__ */ K(function(e, d) {
129
- [e, d] = D(e, d, J);
130
- let a = q(e), { groupProps: s } = j(e, a, d), l = h({
131
- ...e,
132
- values: {
133
- isDisabled: a.isDisabled,
134
- state: a
135
- },
136
- defaultClassName: "react-aria-ToggleButtonGroup"
137
- });
138
- return /* @__PURE__ */ P.createElement("div", {
139
- ...s,
140
- ...l,
141
- ref: d,
142
- slot: e.slot || void 0,
143
- "data-orientation": e.orientation || "horizontal",
144
- "data-disabled": e.isDisabled || void 0
145
- }, /* @__PURE__ */ P.createElement(T.Provider, {
146
- value: a
147
- }, l.children));
148
- }), Q = /* @__PURE__ */ S({}), W = /* @__PURE__ */ K(function(e, d) {
149
- [e, d] = D(e, d, Q);
150
- let a = F(T), s = N(a && e.id != null ? {
151
- isSelected: a.selectedKeys.has(e.id),
152
- onChange(f) {
153
- a.setSelected(e.id, f);
154
- }
155
- } : e), { buttonProps: l, isPressed: r, isSelected: i, isDisabled: u } = a && e.id != null ? U({
156
- ...e,
157
- id: e.id
158
- }, a, d) : w({
159
- ...e,
160
- id: e.id != null ? String(e.id) : void 0
161
- }, s, d), { focusProps: c, isFocused: b, isFocusVisible: n } = M(e), { hoverProps: g, isHovered: $ } = A(e), o = h({
162
- ...e,
163
- id: void 0,
164
- values: {
165
- isHovered: $,
166
- isPressed: r,
167
- isFocused: b,
168
- isSelected: s.isSelected,
169
- isFocusVisible: n,
170
- isDisabled: u,
171
- state: s
172
- },
173
- defaultClassName: "react-aria-ToggleButton"
174
- });
175
- return /* @__PURE__ */ P.createElement("button", {
176
- ...p(l, c, g),
177
- ...o,
178
- ref: d,
179
- slot: e.slot || void 0,
180
- "data-focused": b || void 0,
181
- "data-disabled": u || void 0,
182
- "data-pressed": r || void 0,
183
- "data-selected": i || void 0,
184
- "data-hovered": $ || void 0,
185
- "data-focus-visible": n || void 0
186
- });
187
- }), X = "_group_syep5_4", Y = "_toggleButton_syep5_13", C = {
188
- group: X,
189
- toggleButton: Y
190
- }, be = ({ ...t }) => /* @__PURE__ */ y(
191
- W,
192
- {
193
- ...t,
194
- className: B(
195
- v.button,
196
- v.iconBtn,
197
- C.toggleButton,
198
- t.className
199
- )
200
- }
201
- ), $e = ({ ...t }) => /* @__PURE__ */ y(
202
- O,
203
- {
204
- ...t,
205
- className: B(C.group, t.className)
206
- }
207
- );
208
- export {
209
- be as T,
210
- $e as a
211
- };
@@ -1 +0,0 @@
1
- "use strict";require('./assets/ToggleButtonGroup.css');const D=require("react/jsx-runtime"),x=require("./utils-DHNZrQmj.cjs"),a=require("react"),T=require("./useToggleState-DoIkSQdj.cjs"),w=require("./useFocusRing-B-A1OLhU.cjs"),S=require("./mergeProps-B5KXZAI3.cjs"),q=require("./useHover-BE_XKZKe.cjs"),y=require("./Button.module-goCEz5qs.cjs"),h=require("./clsx-C11secjj.cjs"),C=require("./useControlledState-D0L6S_5r.cjs"),F=require("./useButton-D60q0SQw.cjs"),M=require("./FocusScope-vcXLOQiu.cjs"),p=require("./filterDOMProps-BS2lrgFA.cjs"),E=require("./context-Df3XbgBG.cjs");function m(t,e,d){const{isSelected:i}=e,{isPressed:o,buttonProps:l}=F.$701a24aa0da5b062$export$ea18c227d4417cc3({...t,onPress:S.$ff5963eb1fccf552$export$e08e3b67e392101e(e.toggle,t.onPress)},d);return{isPressed:o,isSelected:i,isDisabled:t.isDisabled||!1,buttonProps:S.$3ef42575df84b30b$export$9d1611c77c2fe928(l,{"aria-pressed":i})}}function N(t,e){const{"aria-label":d,"aria-labelledby":i,orientation:o="horizontal"}=t;let[l,r]=a.useState(!1);S.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{var s;r(!!(e.current&&(!((s=e.current.parentElement)===null||s===void 0)&&s.closest('[role="toolbar"]'))))});const{direction:n}=E.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),f=n==="rtl"&&o==="horizontal";let u=M.$9bf71ea28793e738$export$c5251b9e124bf29(e);const $=s=>{if(s.currentTarget.contains(s.target)){if(o==="horizontal"&&s.key==="ArrowRight"||o==="vertical"&&s.key==="ArrowDown")f?u.focusPrevious():u.focusNext();else if(o==="horizontal"&&s.key==="ArrowLeft"||o==="vertical"&&s.key==="ArrowUp")f?u.focusNext():u.focusPrevious();else if(s.key==="Tab"){s.stopPropagation(),c.current=document.activeElement,s.shiftKey?u.focusFirst():u.focusLast();return}else return;s.stopPropagation(),s.preventDefault()}},c=a.useRef(null),P=s=>{!s.currentTarget.contains(s.relatedTarget)&&!c.current&&(c.current=s.target)},g=s=>{var b;if(c.current&&!s.currentTarget.contains(s.relatedTarget)&&(!((b=e.current)===null||b===void 0)&&b.contains(s.target))){var v;(v=c.current)===null||v===void 0||v.focus(),c.current=null}};return{toolbarProps:{...p.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{labelable:!0}),role:l?"group":"toolbar","aria-orientation":o,"aria-label":d,"aria-labelledby":d==null?i:void 0,onKeyDownCapture:l?void 0:$,onFocusCapture:l?void 0:g,onBlurCapture:l?void 0:P}}}function R(t,e,d){let{isDisabled:i}=t,{toolbarProps:o}=N(t,d);return{groupProps:{...o,role:e.selectionMode==="single"?"radiogroup":o.role,"aria-disabled":i}}}function _(t,e,d){let i={isSelected:e.selectedKeys.has(t.id),setSelected(f){e.setSelected(t.id,f)},toggle(){e.toggleKey(t.id)}},{isPressed:o,isSelected:l,isDisabled:r,buttonProps:n}=m({...t,id:void 0,isDisabled:t.isDisabled||e.isDisabled},i,d);return e.selectionMode==="single"&&(n.role="radio",n["aria-checked"]=i.isSelected,delete n["aria-pressed"]),{isPressed:o,isSelected:l,isDisabled:r,buttonProps:n}}function z(t){let{selectionMode:e="single",disallowEmptySelection:d,isDisabled:i=!1}=t,[o,l]=C.$458b0a5536c1a7cf$export$40bfa8c7b0832715(a.useMemo(()=>t.selectedKeys?new Set(t.selectedKeys):void 0,[t.selectedKeys]),a.useMemo(()=>t.defaultSelectedKeys?new Set(t.defaultSelectedKeys):new Set,[t.defaultSelectedKeys]),t.onSelectionChange);return{selectionMode:e,isDisabled:i,selectedKeys:o,setSelectedKeys:l,toggleKey(r){let n;e==="multiple"?(n=new Set(o),n.has(r)&&(!d||n.size>1)?n.delete(r):n.add(r)):n=new Set(o.has(r)&&!d?[]:[r]),l(n)},setSelected(r,n){n!==o.has(r)&&this.toggleKey(r)}}}const A=a.createContext({}),B=a.createContext(null),G=a.forwardRef(function(e,d){[e,d]=x.$64fa3d84918910a7$export$29f1550f4b0d4415(e,d,A);let i=z(e),{groupProps:o}=R(e,i,d),l=x.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,values:{isDisabled:i.isDisabled,state:i},defaultClassName:"react-aria-ToggleButtonGroup"});return a.createElement("div",{...o,...l,ref:d,slot:e.slot||void 0,"data-orientation":e.orientation||"horizontal","data-disabled":e.isDisabled||void 0},a.createElement(B.Provider,{value:i},l.children))}),H=a.createContext({}),L=a.forwardRef(function(e,d){[e,d]=x.$64fa3d84918910a7$export$29f1550f4b0d4415(e,d,H);let i=a.useContext(B),o=T.$3017fa7ffdddec74$export$8042c6c013fd5226(i&&e.id!=null?{isSelected:i.selectedKeys.has(e.id),onChange(b){i.setSelected(e.id,b)}}:e),{buttonProps:l,isPressed:r,isSelected:n,isDisabled:f}=i&&e.id!=null?_({...e,id:e.id},i,d):m({...e,id:e.id!=null?String(e.id):void 0},o,d),{focusProps:u,isFocused:$,isFocusVisible:c}=w.$f7dceffc5ad7768b$export$4e328f61c538687f(e),{hoverProps:P,isHovered:g}=q.$6179b936705e76d3$export$ae780daf29e6d456(e),s=x.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,id:void 0,values:{isHovered:g,isPressed:r,isFocused:$,isSelected:o.isSelected,isFocusVisible:c,isDisabled:f,state:o},defaultClassName:"react-aria-ToggleButton"});return a.createElement("button",{...S.$3ef42575df84b30b$export$9d1611c77c2fe928(l,u,P),...s,ref:d,slot:e.slot||void 0,"data-focused":$||void 0,"data-disabled":f||void 0,"data-pressed":r||void 0,"data-selected":n||void 0,"data-hovered":g||void 0,"data-focus-visible":c||void 0})}),j="_group_syep5_4",V="_toggleButton_syep5_13",K={group:j,toggleButton:V},k=({...t})=>D.jsx(L,{...t,className:h.clsx(y.ButtonStyles.button,y.ButtonStyles.iconBtn,K.toggleButton,t.className)}),I=({...t})=>D.jsx(G,{...t,className:h.clsx(K.group,t.className)});exports.ToggleButton=k;exports.ToggleButtonGroup=I;