@povio/ui 6.0.0-rc.11 → 6.0.0-rc.13

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 (495) hide show
  1. package/README.md +470 -43
  2. package/dist/{Accordion-Cup5eRZz.d.ts → Accordion-CR9oomZY.d.ts} +29 -17
  3. package/dist/{Accordion-ORBin0EZ.js → Accordion-gUW7u1Zn.js} +41 -41
  4. package/dist/Alert-DwnALnFY.d.ts +36 -0
  5. package/dist/AlertDialog-BcRiqY_n.d.ts +70 -0
  6. package/dist/Autocomplete-CV4Aa1Ok.js +319 -0
  7. package/dist/Autocomplete-DRwQxx0U.d.ts +123 -0
  8. package/dist/Badge-CO-ZsmbR.d.ts +67 -0
  9. package/dist/{BottomSheet-CGipksM_.js → BottomSheet-APVu5TUd.js} +8 -8
  10. package/dist/BottomSheet-Be0HtQzP.d.ts +65 -0
  11. package/dist/{BottomSheet.lazy-CuJMUeJP.d.ts → BottomSheet.lazy-NNB7ivkW.d.ts} +1 -1
  12. package/dist/{Breadcrumbs-CcB0oOF8.d.ts → Breadcrumbs-Bn3fqVYx.d.ts} +6 -3
  13. package/dist/{Breadcrumbs-a1-q_he0.js → Breadcrumbs-Cd75RPbS.js} +33 -17
  14. package/dist/{Button-C1YB5dOw.js → Button-BJJkLVNj.js} +1 -5
  15. package/dist/{Button-BaODzvZd.js → Button-CzEs3tcV.js} +1 -1
  16. package/dist/{Button-0SswSdDg.d.ts → Button-Hk8zm9q_.d.ts} +2 -2
  17. package/dist/ButtonBase-Cp1w00t2.d.ts +47 -0
  18. package/dist/{ButtonBase-s-VV7oCa.js → ButtonBase-aGz6DYum.js} +10 -18
  19. package/dist/{ButtonContent-Dztbuz3q.js → ButtonContent-2KsbdWRO.js} +5 -5
  20. package/dist/{Calendar-DX0dVo6z.js → Calendar-DN-i_b-_.js} +19 -17
  21. package/dist/{Calendar.lazy-W51M56GQ.js → Calendar.lazy-CqmyDSND.js} +4 -4
  22. package/dist/{Checkbox-Bjsbx-wK.js → Checkbox-CzKXZw_w.js} +35 -9
  23. package/dist/Checkbox-D32MOIhF.d.ts +49 -0
  24. package/dist/CheckboxCheckmark-DDU_Ie7-.js +42 -0
  25. package/dist/CheckboxGroup-B5Mn1G3u.d.ts +52 -0
  26. package/dist/{CheckboxGroup-B3O3IUiu.js → CheckboxGroup-BqWt09kZ.js} +75 -35
  27. package/dist/DatePicker-CmoVbapu.d.ts +80 -0
  28. package/dist/{DatePicker-CqNS7lgR.js → DatePicker-DQewd1By.js} +80 -41
  29. package/dist/{DatePickerInput-vLlL5ATh.d.ts → DatePickerInput-B9VnExeA.d.ts} +3 -3
  30. package/dist/{DatePickerInput-B2Pc_aJr.js → DatePickerInput-Bp9ZIN5E.js} +37 -26
  31. package/dist/{DateRangePicker-C3ClfSfj.js → DateRangePicker-DRZ1hLlR.js} +93 -169
  32. package/dist/DateRangePicker-LX1VJlnD.d.ts +102 -0
  33. package/dist/DateTimePicker-D9pODhAj.d.ts +83 -0
  34. package/dist/{DateTimePicker-CYa2J-1r.js → DateTimePicker-DWtKPaE6.js} +70 -35
  35. package/dist/{Dialog-C9H9_BmK.js → Dialog-BJ13KRQo.js} +1 -1
  36. package/dist/{Dialog-96c4Pzfm.js → Dialog-BzQYDPJ9.js} +23 -19
  37. package/dist/Dialog-D0SeePPz.d.ts +66 -0
  38. package/dist/{Disclosure-BRSkMbZQ.js → Disclosure-Bjm5IOpg.js} +1 -1
  39. package/dist/Drawer-o018RqIt.d.ts +42 -0
  40. package/dist/DropdownMenu-DTr7b-XO.d.ts +51 -0
  41. package/dist/{DropdownMenu-DS0RaEfH.js → DropdownMenu-DrshB60h.js} +33 -21
  42. package/dist/{DropdownMenuDesktop-DGPIfex-.js → DropdownMenuDesktop-DxGA0yvx.js} +14 -8
  43. package/dist/FileInput-Bokcp9nH.d.ts +61 -0
  44. package/dist/{FileInput-IRM0C9W6.js → FileInput-LMhFxlqB.js} +75 -80
  45. package/dist/FileUpload-BqXd4_nz.d.ts +181 -0
  46. package/dist/FileUpload-CJZrkr_U.js +679 -0
  47. package/dist/{FormField-dduTMkNH.js → FormField-TI8Vx5aC.js} +10 -10
  48. package/dist/FormField-XQbjfGSv.d.ts +70 -0
  49. package/dist/{FormFieldError-BT4uxbKY.d.ts → FormFieldError-C7yOdjzQ.d.ts} +1 -0
  50. package/dist/FormFieldHeaderTooltip-DB7KrrcD.js +22 -0
  51. package/dist/HiddenFormValue-DZ2d9eoA.js +20 -0
  52. package/dist/IconButton-CQLHX8-Y.d.ts +24 -0
  53. package/dist/{IconSlot-CqNuZl0E.js → IconSlot-TAWTJ6iK.js} +2 -4
  54. package/dist/{InlineTooltipWrapper-CKTiFpZn.js → InlineTooltipWrapper-CjDUsi2I.js} +1 -1
  55. package/dist/{Input-UbFhc_J2.js → Input-CeRJeAoR.js} +94 -59
  56. package/dist/Input-onUj0DKg.d.ts +56 -0
  57. package/dist/{InputContent-D7lnNLWk.js → InputContent-B8OCdbVP.js} +15 -13
  58. package/dist/InputContent-D5ZkB9hO.d.ts +39 -0
  59. package/dist/Link-BdnWVYL9.d.ts +15 -0
  60. package/dist/{ListBox-DhR5kojP.js → ListBox-gR4iSV7N.js} +3 -3
  61. package/dist/{Modal-DcLWF9cB.js → Modal-DAMsCwzb.js} +1 -1
  62. package/dist/{NumberField-twW8zuJ9.js → NumberField-6Q9LHGSo.js} +91 -62
  63. package/dist/NumberField-Sb30Qao3.d.ts +41 -0
  64. package/dist/{NumberRangeInput-gT6gEJIz.js → NumberRangeInput-BDSkcHVJ.js} +152 -101
  65. package/dist/NumberRangeInput-Dvq8mOUY.d.ts +89 -0
  66. package/dist/{PageHeader-DTfzf-dA.d.ts → PageHeader-eJk6GNK6.d.ts} +6 -5
  67. package/dist/{PasswordInput.bound-CXtbMCD6.js → PasswordInput-BcHpV0Ie.js} +6 -6
  68. package/dist/PasswordInput-VHzP4VPU.d.ts +16 -0
  69. package/dist/Popover-qplPGDnR.d.ts +51 -0
  70. package/dist/Progress-DH-w99MU.d.ts +26 -0
  71. package/dist/Progress-WzWvbvtp.js +180 -0
  72. package/dist/ProgressBar-BsSimmJF.js +46 -0
  73. package/dist/RadioGroup-CC8bKtBN.d.ts +52 -0
  74. package/dist/{RadioGroup-IL4Y8XHO.js → RadioGroup-PKqFHoKP.js} +66 -26
  75. package/dist/{RangeCalendar-0W1YFZqn.js → RangeCalendar-DqCTlIuy.js} +42 -13
  76. package/dist/Select-CSyfDyxG.d.ts +248 -0
  77. package/dist/{Select-B-TuE_Fh.js → Select-D3fuXwVt.js} +435 -184
  78. package/dist/{SelectListBox-Dlonoc5z.js → SelectListBox-DqAxkT1f.js} +46 -37
  79. package/dist/{SidebarWorkspaces-DJknAfS9.js → SidebarWorkspaces-BGl_PIsH.js} +280 -363
  80. package/dist/{SidebarWorkspaces-DDHJAdNH.d.ts → SidebarWorkspaces-CdtK2M-C.d.ts} +31 -17
  81. package/dist/{Slider-DCsCCPFx.js → Slider-BCUiALjE.js} +69 -12
  82. package/dist/Slider-DxalZD3o.d.ts +57 -0
  83. package/dist/Spinner-BTrEbNFy.d.ts +13 -0
  84. package/dist/SplitButton-Dv5l8p5t.d.ts +25 -0
  85. package/dist/Stepper-B1IOUcSI.d.ts +49 -0
  86. package/dist/{Stepper-Dyhxp0Tl.js → Stepper-DA2G546I.js} +116 -88
  87. package/dist/{Switch-BfpSMMpv.js → Switch-Ce-bJOVw.js} +54 -12
  88. package/dist/Switch-urNrop0P.d.ts +42 -0
  89. package/dist/{TabsFilters-CWUNeqYa.js → TabsFilters-Cweij8He.js} +44 -33
  90. package/dist/TabsFilters-M5Ld7eb8.d.ts +59 -0
  91. package/dist/Tag-BKR1AZFa.d.ts +26 -0
  92. package/dist/TextArea-D7YVclaz.d.ts +33 -0
  93. package/dist/{TextArea-DakA3nzZ.js → TextArea-P8F0oD_A.js} +59 -32
  94. package/dist/TimePicker-Ai1M2TGW.d.ts +63 -0
  95. package/dist/{TimePicker-RFzfDezn.js → TimePicker-l4Ysk2AX.js} +99 -50
  96. package/dist/{TimePickerForm-DohOZViU.js → TimePickerForm-BMqNpDPT.js} +5 -5
  97. package/dist/{ToastContainer-Dd0LPykL.js → ToastContainer-BeklfvlK.js} +4 -4
  98. package/dist/{ToggleButton-HUZ8ij6i.d.ts → ToggleButton-DWw53pTt.d.ts} +2 -2
  99. package/dist/ToggleGroup-BQk3k0at.d.ts +95 -0
  100. package/dist/ToggleGroup-BdIgqoqA.js +500 -0
  101. package/dist/{Tooltip-DRB6lo0U.js → Tooltip-BkXPEBqw.js} +2 -2
  102. package/dist/Tooltip-H8OB7CqY.d.ts +33 -0
  103. package/dist/TooltipEllipsis-7QF00kXk.d.ts +21 -0
  104. package/dist/{TooltipWrapper-DLBksJsF.js → TooltipWrapper-ubbBHHVD.js} +6 -6
  105. package/dist/{Typography-DJojwiXV.d.ts → Typography-Cx1oRGxd.d.ts} +5 -1
  106. package/dist/{badgeButton.cva-t5PQOH4M.js → badge.cva-BpoxNggB.js} +20 -22
  107. package/dist/{button.cva-Ciga0rdG.js → button.cva-C2aoXMh-.js} +10 -16
  108. package/dist/{buttonContent.cva-BapnODby.d.ts → buttonContent.cva-Dyy_RUZU.d.ts} +1 -1
  109. package/dist/{checkbox.cva-aLJS7v4z.js → checkbox.cva-qU_q0lSX.js} +14 -14
  110. package/dist/components/accordion.d.ts +1 -1
  111. package/dist/components/accordion.js +1 -1
  112. package/dist/components/alert-dialog.d.ts +2 -2
  113. package/dist/components/alert-dialog.js +174 -128
  114. package/dist/components/alert.d.ts +1 -1
  115. package/dist/components/alert.js +17 -15
  116. package/dist/components/autocomplete.d.ts +2 -2
  117. package/dist/components/autocomplete.js +1 -1
  118. package/dist/components/badge.d.ts +2 -2
  119. package/dist/components/badge.js +159 -81
  120. package/dist/components/bottom-sheet-header.d.ts +1 -1
  121. package/dist/components/bottom-sheet-header.js +4 -4
  122. package/dist/components/bottom-sheet.d.ts +2 -2
  123. package/dist/components/bottom-sheet.js +2 -2
  124. package/dist/components/breadcrumbs.d.ts +1 -1
  125. package/dist/components/breadcrumbs.js +1 -1
  126. package/dist/components/button.d.ts +2 -2
  127. package/dist/components/button.js +1 -1
  128. package/dist/components/checkbox-group.d.ts +2 -2
  129. package/dist/components/checkbox-group.js +1 -1
  130. package/dist/components/checkbox.d.ts +2 -2
  131. package/dist/components/checkbox.js +1 -1
  132. package/dist/components/date-picker.d.ts +2 -2
  133. package/dist/components/date-picker.js +1 -1
  134. package/dist/components/date-range-picker.d.ts +4 -41
  135. package/dist/components/date-range-picker.js +4 -2
  136. package/dist/components/date-range-presets.d.ts +2 -0
  137. package/dist/components/date-range-presets.js +3 -0
  138. package/dist/components/date-time-picker.d.ts +2 -2
  139. package/dist/components/date-time-picker.js +1 -1
  140. package/dist/components/dialog.d.ts +1 -1
  141. package/dist/components/dialog.js +1 -1
  142. package/dist/components/drawer.d.ts +1 -1
  143. package/dist/components/drawer.js +16 -80
  144. package/dist/components/dropdown-menu.d.ts +2 -3
  145. package/dist/components/dropdown-menu.js +2 -3
  146. package/dist/components/file-input.d.ts +2 -2
  147. package/dist/components/file-input.js +1 -1
  148. package/dist/components/file-upload.d.ts +2 -3
  149. package/dist/components/file-upload.js +1 -1
  150. package/dist/components/form-field.d.ts +3 -2
  151. package/dist/components/form-field.js +1 -1
  152. package/dist/components/icon-button.d.ts +1 -1
  153. package/dist/components/icon-button.js +22 -25
  154. package/dist/components/icon-slot.d.ts +1 -2
  155. package/dist/components/icon-slot.js +2 -2
  156. package/dist/components/input-frame.d.ts +6 -10
  157. package/dist/components/input-frame.js +29 -26
  158. package/dist/components/input.d.ts +2 -2
  159. package/dist/components/input.js +2 -2
  160. package/dist/components/link.d.ts +1 -1
  161. package/dist/components/link.js +1 -1
  162. package/dist/components/number-field.d.ts +2 -2
  163. package/dist/components/number-field.js +2 -2
  164. package/dist/components/number-range-input.d.ts +2 -2
  165. package/dist/components/number-range-input.js +1 -1
  166. package/dist/components/page-header.d.ts +1 -1
  167. package/dist/components/page-header.js +5 -5
  168. package/dist/components/password-input.d.ts +2 -2
  169. package/dist/components/password-input.js +1 -22
  170. package/dist/components/popover.d.ts +1 -1
  171. package/dist/components/popover.js +105 -87
  172. package/dist/components/progress.d.ts +2 -2
  173. package/dist/components/progress.js +1 -1
  174. package/dist/components/radio-group.d.ts +2 -2
  175. package/dist/components/radio-group.js +1 -1
  176. package/dist/components/select.d.ts +2 -2
  177. package/dist/components/select.js +1 -1
  178. package/dist/components/sidebar.d.ts +1 -1
  179. package/dist/components/sidebar.js +1 -1
  180. package/dist/components/slider.d.ts +2 -2
  181. package/dist/components/slider.js +1 -1
  182. package/dist/components/spinner.d.ts +1 -1
  183. package/dist/components/spinner.js +71 -1
  184. package/dist/components/split-button.d.ts +1 -1
  185. package/dist/components/split-button.js +15 -4
  186. package/dist/components/stepper.d.ts +1 -1
  187. package/dist/components/stepper.js +1 -1
  188. package/dist/components/style-definitions.d.ts +2 -2
  189. package/dist/components/style-definitions.js +33 -18
  190. package/dist/components/switch.d.ts +2 -2
  191. package/dist/components/switch.js +1 -1
  192. package/dist/components/tabs-filters.d.ts +1 -1
  193. package/dist/components/tabs-filters.js +1 -1
  194. package/dist/components/tag.d.ts +1 -1
  195. package/dist/components/tag.js +50 -64
  196. package/dist/components/text-area.d.ts +2 -2
  197. package/dist/components/text-area.js +1 -1
  198. package/dist/components/time-picker.d.ts +2 -2
  199. package/dist/components/time-picker.js +1 -1
  200. package/dist/components/toast.d.ts +3 -3
  201. package/dist/components/toast.js +4 -3
  202. package/dist/components/toggle-button.d.ts +1 -1
  203. package/dist/components/toggle-button.js +1 -1
  204. package/dist/components/toggle-group.d.ts +2 -2
  205. package/dist/components/toggle-group.js +1 -1
  206. package/dist/components/tooltip-ellipsis.d.ts +1 -1
  207. package/dist/components/tooltip-ellipsis.js +1 -1
  208. package/dist/components/tooltip.d.ts +1 -1
  209. package/dist/components/tooltip.js +1 -1
  210. package/dist/components/typography.d.ts +2 -2
  211. package/dist/components/use-toast.d.ts +2 -2
  212. package/dist/components/use-toast.js +1 -41
  213. package/dist/config/component-configuration.d.ts +1 -1
  214. package/dist/config/component-configuration.js +53 -2
  215. package/dist/config/confirmation.d.ts +1 -1
  216. package/dist/config/confirmation.js +1 -1
  217. package/dist/config/link-context.d.ts +3 -3
  218. package/dist/config/link-context.js +1 -1
  219. package/dist/config/resources.d.ts +1 -1
  220. package/dist/config/resources.js +1 -1
  221. package/dist/config/ui-config.d.ts +2 -2
  222. package/dist/config/ui-config.js +1 -1
  223. package/dist/config/ui-router.d.ts +1 -1
  224. package/dist/config/ui-router.js +1 -1
  225. package/dist/confirmation.context-BflM4Vxg.js +93 -0
  226. package/dist/confirmation.context-C_js9qNv.d.ts +32 -0
  227. package/dist/{datePickerInput.cva-Du0Zn04v.js → datePickerInput.cva-CWkV2fut.js} +1 -1
  228. package/dist/dateRangePreset.utils-Bnb-rjTt.js +116 -0
  229. package/dist/{dialog.cva-BIpz6HcA.js → dialog.cva-BjVggO5l.js} +1 -1
  230. package/dist/{dist-DEZzXa0W.js → dist-DZOoWaZz.js} +63 -38
  231. package/dist/{dropdownMenu.cva-DwSOcbmR.js → dropdownMenu.cva-BopsvbOy.js} +19 -7
  232. package/dist/{exports-BNrTn8Tj.js → exports-DeBGRThC.js} +3 -3
  233. package/dist/{file.utils-Crb-mIHs.d.ts → file.utils-DUADtzdt.d.ts} +3 -3
  234. package/dist/{file.utils-DqQxnuAm.js → file.utils-X6tkeWaz.js} +2 -6
  235. package/dist/fileInputButton.cva-gbqRUf1g.js +39 -0
  236. package/dist/{fileUpload.cva-BYzXGc9C.js → fileUpload.cva-MH5ziWUe.js} +2 -2
  237. package/dist/form-field-Bw7U_ZPI.d.ts +1 -0
  238. package/dist/form.binding-Brdjq2yr.js +161 -0
  239. package/dist/form.binding-DSXB2AOD.d.ts +127 -0
  240. package/dist/form.types-a2WVJDQX.d.ts +43 -0
  241. package/dist/formReset-CnZl_yze.js +35 -0
  242. package/dist/hints-B09_WDhL.d.ts +17 -0
  243. package/dist/hooks/use-async-list.d.ts +1 -1
  244. package/dist/hooks/use-async-list.js +1 -1
  245. package/dist/hooks/use-breakpoint.d.ts +3 -0
  246. package/dist/hooks/use-breakpoint.js +2 -0
  247. package/dist/hooks/use-filters.d.ts +2 -2
  248. package/dist/hooks/use-filters.js +1 -1
  249. package/dist/{i18n-EDC8xyfH.d.ts → i18n-B3PeqBM7.d.ts} +100 -20
  250. package/dist/{i18n-BE9Wvs9L.js → i18n-DQs7jPjv.js} +99 -25
  251. package/dist/iconSlot.cva-DyhOI7EK.js +5 -0
  252. package/dist/{import-Dkfk7PHt.js → import-C73fI3WD.js} +2 -2
  253. package/dist/index.d.ts +64 -85
  254. package/dist/index.js +55 -92
  255. package/dist/{input.cva-DZii82eS.js → input.cva-mm1dnfKP.js} +27 -23
  256. package/dist/inputLayout-CIVpuUBq.js +7 -0
  257. package/dist/inputRow.clsx-BbcaXVta.js +6 -0
  258. package/dist/{label.cva-DTfT6FrX.js → label.cva-DJ5Dmbz5.js} +7 -7
  259. package/dist/link.context-BcBuP9ZT.d.ts +20 -0
  260. package/dist/{link.context-TPjDtjw3.js → link.context-CD5h_b5O.js} +12 -11
  261. package/dist/link.cva-D6L1c2wq.d.ts +2157 -0
  262. package/dist/{logger-CqZjM-sn.js → logger-CW24po62.js} +10 -1
  263. package/dist/{progress.cva-CsGaGVJ-.js → progress.cva-mkJxrrac.js} +2 -2
  264. package/dist/{radio.cva-DistaZtZ.js → radio.cva-Dt5N2ul2.js} +7 -7
  265. package/dist/rich-text-editor.d.ts +44 -2
  266. package/dist/rich-text-editor.js +733 -1
  267. package/dist/router.context-B6j_M4cN.js +151 -0
  268. package/dist/router.context-CSd9JYQ4.d.ts +33 -0
  269. package/dist/{selectDesktop.cva-DStkOdwm.js → selectDesktop.cva-30JAvtgB.js} +1 -1
  270. package/dist/sidebar.cva-BgxTCejU.js +150 -0
  271. package/dist/spinner.cva-j4kGmIWC.js +17 -0
  272. package/dist/{staticDateTimeSegments-4tIzPL8l.js → staticDateTimeSegments-BYk1tcxs.js} +43 -13
  273. package/dist/{status.cva-CYgi3Htz.js → status.cva-WLEqUAjH.js} +9 -9
  274. package/dist/styles/input.d.ts +1 -1
  275. package/dist/tanstack/form.d.ts +3 -3
  276. package/dist/tanstack/form.js +3 -3
  277. package/dist/tanstack/table.d.ts +5 -3
  278. package/dist/tanstack/table.js +2 -2
  279. package/dist/tanstack-ABeiJISz.js +10 -0
  280. package/dist/tanstack-bLXoUPDY.d.ts +165 -0
  281. package/dist/tanstack.d.ts +64 -85
  282. package/dist/tanstack.js +55 -92
  283. package/dist/{toast.cva-B6NXTwbZ.js → toast.cva-C3oA7He3.js} +8 -8
  284. package/dist/toast.runtime-BHXdSTXV.js +25 -0
  285. package/dist/{toggleGroup.cva-CJ-3Ps7j.js → toggleGroup.cva-CvNS5QO1.js} +2 -2
  286. package/dist/uiConfig.context-CN_QgxGO.d.ts +19 -0
  287. package/dist/{uiConfig.context-3DN9w6oU.js → uiConfig.context-CjnLnQOo.js} +5 -7
  288. package/dist/{uiConfig.context-BnCORTNm.d.ts → uiConfig.types-B0sPL7nN.d.ts} +34 -34
  289. package/dist/{useAsyncList-Ct74ve3i.js → useAsyncList-CQgkDfjW.js} +140 -35
  290. package/dist/useAsyncList-F-328rtE.d.ts +25 -0
  291. package/dist/useAutoFocus-K-bfNxa2.js +16 -0
  292. package/dist/{useBreakpoint-CJ3mx7UF.js → useBreakpoint-BrJrvp9_.js} +5 -1
  293. package/dist/useBreakpoint-D-SVcBeQ.d.ts +9 -0
  294. package/dist/useDebounceCallback-BjePw6y4.js +90 -0
  295. package/dist/useFilters-CybBXUAA.js +217 -0
  296. package/dist/useFilters-DrfBFNLw.d.ts +57 -0
  297. package/dist/useFormAutosave-BN-zueci.js +419 -0
  298. package/dist/{useFormAutosave-BBLm3Ujo.d.ts → useFormAutosave-ClMnzVE7.d.ts} +1 -1
  299. package/dist/{useIntersectionObserver-DFAhTsV0.js → useIntersectionObserver-B8msnQTR.js} +15 -3
  300. package/dist/{numberStatic.utils-BIyZuILs.js → useLiveNumberFieldState-B7qGzySj.js} +103 -2
  301. package/dist/useRemoveButton-B6-IGvpY.js +98 -0
  302. package/dist/useResolveDateRangePreset-C_L-doA6.js +26 -0
  303. package/dist/useResolveDateRangePreset-DOSzJR-N.d.ts +64 -0
  304. package/dist/{useScrollableListBox-oYKqU3Hp.js → useScrollableListBox-C8chM7c-.js} +1 -1
  305. package/dist/{useStaticInputHandoff-BN0fOerH.js → useStaticInputHandoff-DrNFrvD7.js} +6 -1
  306. package/dist/{useTableColumnConfig-D3KH4Rpo.js → useTableColumnConfig-B9cYBKo3.js} +956 -689
  307. package/dist/useTableNav-rP1wDkhV.d.ts +372 -0
  308. package/dist/useToast-D2C9pROU.d.ts +78 -0
  309. package/dist/useToast-DSoOiSw0.js +63 -0
  310. package/dist/utils/file.d.ts +1 -1
  311. package/dist/utils/file.js +1 -1
  312. package/dist/utils/logger.js +1 -1
  313. package/llms.txt +3116 -0
  314. package/package.json +13 -131
  315. package/MIGRATION.md +0 -673
  316. package/dist/Alert-D4X7OWiv.d.ts +0 -34
  317. package/dist/AlertDialog-DklLDjmw.d.ts +0 -26
  318. package/dist/Autocomplete-BgFz3kuR.d.ts +0 -23
  319. package/dist/Autocomplete-BxRjxjtp.js +0 -145
  320. package/dist/Autocomplete.bound-CpHZZ3C9.d.ts +0 -9
  321. package/dist/Autocomplete.bound-DweyHUI5.js +0 -28
  322. package/dist/Badge-Db1ndK67.d.ts +0 -30
  323. package/dist/BadgeButton-BPhWDAnc.d.ts +0 -15
  324. package/dist/BottomSheet-BZmDJBR-.d.ts +0 -33
  325. package/dist/ButtonBase-CZuEy3Pk.d.ts +0 -32
  326. package/dist/Checkbox-w2j5hLOQ.d.ts +0 -27
  327. package/dist/Checkbox.bound-D2nBglJz.js +0 -33
  328. package/dist/Checkbox.bound-DD_RCjVm.d.ts +0 -9
  329. package/dist/CheckboxCheckmark-DWsYVZuu.js +0 -25
  330. package/dist/CheckboxGroup-BYI15Y09.d.ts +0 -30
  331. package/dist/CheckboxGroup.bound-DY0HKGSh.js +0 -32
  332. package/dist/CheckboxGroup.bound-QiJ-P0KR.d.ts +0 -9
  333. package/dist/ComboBox-ChsdI0lt.js +0 -212
  334. package/dist/DatePicker-QzfQf21b.d.ts +0 -56
  335. package/dist/DatePicker.bound-DoCAqhM4.d.ts +0 -9
  336. package/dist/DatePicker.bound-Dxg2LM89.js +0 -36
  337. package/dist/DateRangePicker-32D4pWJg.d.ts +0 -97
  338. package/dist/DateRangePicker.bound-CVtoVsho.d.ts +0 -9
  339. package/dist/DateRangePicker.bound-PR9rBoXc.js +0 -35
  340. package/dist/DateTimePicker-BTRIUagV.d.ts +0 -55
  341. package/dist/DateTimePicker.bound-CQxnRveH.js +0 -32
  342. package/dist/DateTimePicker.bound-X4DTyQ1b.d.ts +0 -9
  343. package/dist/Dialog-CO9xljD3.d.ts +0 -21
  344. package/dist/Drawer-D1cHiBFO.d.ts +0 -18
  345. package/dist/DropdownMenu-D_9z9ond.d.ts +0 -25
  346. package/dist/FileInput-BEaECoBS.d.ts +0 -75
  347. package/dist/FileInput.bound-CctyulN9.js +0 -30
  348. package/dist/FileInput.bound-D2HuuqSb.d.ts +0 -8
  349. package/dist/FileUpload-BUTSqHVk.d.ts +0 -11
  350. package/dist/FileUpload-Dfs3FvJ7.js +0 -749
  351. package/dist/FileUpload.bound-CGQXb4iT.d.ts +0 -16
  352. package/dist/FileUpload.bound-vik_sTkm.js +0 -30
  353. package/dist/FileUploadContainer-Dzg5aXXZ.d.ts +0 -5
  354. package/dist/FormField-DGyCDxOp.d.ts +0 -42
  355. package/dist/FormFieldHeaderTooltip-Dt-g40Tc.js +0 -17
  356. package/dist/IconButton-shH_9wcl.d.ts +0 -25
  357. package/dist/Input-CTp_9mS9.d.ts +0 -34
  358. package/dist/Input.bound-0iJO2-ia.js +0 -31
  359. package/dist/Input.bound-B9a62ylL.d.ts +0 -9
  360. package/dist/InputContent-BCNkN4Fx.d.ts +0 -27
  361. package/dist/Link-PvYB_M-j.d.ts +0 -30
  362. package/dist/MenuItem-U3-pu1j5.d.ts +0 -6
  363. package/dist/NumberField-WXebfxjK.d.ts +0 -34
  364. package/dist/NumberField.bound-DHDsBNvI.js +0 -32
  365. package/dist/NumberField.bound-Dy0A5iVc.d.ts +0 -9
  366. package/dist/NumberRangeInput-BCKQaGpy.d.ts +0 -50
  367. package/dist/NumberRangeInput.bound-5Yv3Og73.js +0 -32
  368. package/dist/NumberRangeInput.bound-BNXxIQ0b.d.ts +0 -9
  369. package/dist/Pagination-BCGUVYOF.d.ts +0 -12
  370. package/dist/PaginationList-CvlSkJGn.d.ts +0 -18
  371. package/dist/PaginationList-D7SRwySe.js +0 -220
  372. package/dist/PasswordInput-EhQjYyJS.d.ts +0 -11
  373. package/dist/PasswordInput.bound-CK5GwKL4.d.ts +0 -9
  374. package/dist/Popover-D_t1XDPA.d.ts +0 -20
  375. package/dist/Progress-Ckfpi_-M.d.ts +0 -45
  376. package/dist/Progress-RiEGGxNG.js +0 -119
  377. package/dist/RadioGroup-6e-Z6jW8.d.ts +0 -26
  378. package/dist/RadioGroup.bound-BFWSq-on.js +0 -32
  379. package/dist/RadioGroup.bound-w3SZqSkH.d.ts +0 -9
  380. package/dist/RichTextEditor-BuqZth3X.js +0 -651
  381. package/dist/RichTextEditor-DHhuBeT6.d.ts +0 -28
  382. package/dist/Select-C34ENdjq.d.ts +0 -119
  383. package/dist/Select.bound-CNCChZww.js +0 -34
  384. package/dist/Select.bound-qOihchei.d.ts +0 -17
  385. package/dist/Slider-DRg8zKRM.d.ts +0 -23
  386. package/dist/Slider.bound-CByTXPTr.js +0 -31
  387. package/dist/Slider.bound-CaEF19um.d.ts +0 -9
  388. package/dist/Spinner-Cvy_6zgD.d.ts +0 -30
  389. package/dist/Spinner-DqjP06T1.js +0 -101
  390. package/dist/SplitButton-V1f2NWfh.d.ts +0 -15
  391. package/dist/Stepper-k91x_m-E.d.ts +0 -114
  392. package/dist/Switch-ELVPkPx0.d.ts +0 -24
  393. package/dist/Switch.bound-DeEdVvZV.d.ts +0 -9
  394. package/dist/Switch.bound-Dv0cHsMM.js +0 -33
  395. package/dist/TableDnd-CuHxANWh.js +0 -133
  396. package/dist/TableRowDetails-D8HFTghI.d.ts +0 -109
  397. package/dist/TabsFilters-DePddjCk.d.ts +0 -30
  398. package/dist/Tag-B2_ZiSE-.d.ts +0 -44
  399. package/dist/TextArea-iqUeB2QY.d.ts +0 -26
  400. package/dist/TextArea.bound-BJHyCogp.d.ts +0 -9
  401. package/dist/TextArea.bound-CDVPP_qb.js +0 -28
  402. package/dist/TimePicker-BZ1ocsBX.d.ts +0 -45
  403. package/dist/TimePicker.bound-8DmjMXuE.d.ts +0 -9
  404. package/dist/TimePicker.bound-DPia51Qs.js +0 -32
  405. package/dist/Toast-D9pdadZ4.d.ts +0 -16
  406. package/dist/ToggleGroup-CrDoeLN0.js +0 -333
  407. package/dist/ToggleGroup-DvjnSinl.d.ts +0 -42
  408. package/dist/ToggleGroup.bound-B03ISHQ8.d.ts +0 -9
  409. package/dist/ToggleGroup.bound-DCnYwmBt.js +0 -67
  410. package/dist/Tooltip-B8DTURLQ.d.ts +0 -16
  411. package/dist/TooltipEllipsis-Di9Dvd4x.d.ts +0 -11
  412. package/dist/badgeButton.cva-CBFIhr1S.d.ts +0 -41
  413. package/dist/button.cva-C8LGtNJ3.d.ts +0 -94
  414. package/dist/checkbox.cva-CCh_UlrC.d.ts +0 -76
  415. package/dist/components/badge-button.d.ts +0 -2
  416. package/dist/components/badge-button.js +0 -74
  417. package/dist/components/file-upload-container.d.ts +0 -3
  418. package/dist/components/file-upload-container.js +0 -15
  419. package/dist/components/pagination-list.d.ts +0 -2
  420. package/dist/components/pagination-list.js +0 -2
  421. package/dist/components/pagination.d.ts +0 -2
  422. package/dist/components/pagination.js +0 -138
  423. package/dist/confirmation.context-BwlIEVeF.js +0 -114
  424. package/dist/confirmation.context-C_GDRn3a.d.ts +0 -23
  425. package/dist/fileUpload.types-C-ke21yY.d.ts +0 -110
  426. package/dist/form.binding-DOR5gIQf.js +0 -49
  427. package/dist/form.types-C8P4sznq.d.ts +0 -22
  428. package/dist/formFieldHelper.cva-DRmSyRZN.js +0 -14
  429. package/dist/iconSlot.cva-CLB5Tlsr.d.ts +0 -9
  430. package/dist/icons.d.ts +0 -4
  431. package/dist/icons.js +0 -3
  432. package/dist/input.cva-BjuHsDGy.d.ts +0 -80
  433. package/dist/inputLayout-KdAtunGk.js +0 -5
  434. package/dist/link.context-BCHn7NSy.d.ts +0 -12
  435. package/dist/radio.cva-D7M1hqLe.d.ts +0 -56
  436. package/dist/router.context-CtafjXV7.d.ts +0 -16
  437. package/dist/router.context-MckTbHw9.js +0 -63
  438. package/dist/routing.utils-DfxEt0_Y.js +0 -30
  439. package/dist/style-definitions-Dx6aFDiR.d.ts +0 -1038
  440. package/dist/switch.cva-r6vcS25Q.d.ts +0 -16
  441. package/dist/tanstack/autocomplete.d.ts +0 -3
  442. package/dist/tanstack/autocomplete.js +0 -2
  443. package/dist/tanstack/checkbox-group.d.ts +0 -3
  444. package/dist/tanstack/checkbox-group.js +0 -2
  445. package/dist/tanstack/checkbox.d.ts +0 -3
  446. package/dist/tanstack/checkbox.js +0 -2
  447. package/dist/tanstack/date-picker.d.ts +0 -3
  448. package/dist/tanstack/date-picker.js +0 -2
  449. package/dist/tanstack/date-range-picker.d.ts +0 -3
  450. package/dist/tanstack/date-range-picker.js +0 -2
  451. package/dist/tanstack/date-time-picker.d.ts +0 -3
  452. package/dist/tanstack/date-time-picker.js +0 -2
  453. package/dist/tanstack/file-input.d.ts +0 -3
  454. package/dist/tanstack/file-input.js +0 -2
  455. package/dist/tanstack/file-upload.d.ts +0 -4
  456. package/dist/tanstack/file-upload.js +0 -2
  457. package/dist/tanstack/input.d.ts +0 -3
  458. package/dist/tanstack/input.js +0 -2
  459. package/dist/tanstack/number-field.d.ts +0 -3
  460. package/dist/tanstack/number-field.js +0 -2
  461. package/dist/tanstack/number-range-input.d.ts +0 -3
  462. package/dist/tanstack/number-range-input.js +0 -2
  463. package/dist/tanstack/password-input.d.ts +0 -2
  464. package/dist/tanstack/password-input.js +0 -2
  465. package/dist/tanstack/radio-group.d.ts +0 -3
  466. package/dist/tanstack/radio-group.js +0 -2
  467. package/dist/tanstack/rich-text-editor.d.ts +0 -9
  468. package/dist/tanstack/rich-text-editor.js +0 -28
  469. package/dist/tanstack/select.d.ts +0 -3
  470. package/dist/tanstack/select.js +0 -2
  471. package/dist/tanstack/slider.d.ts +0 -3
  472. package/dist/tanstack/slider.js +0 -2
  473. package/dist/tanstack/switch.d.ts +0 -3
  474. package/dist/tanstack/switch.js +0 -2
  475. package/dist/tanstack/text-area.d.ts +0 -3
  476. package/dist/tanstack/text-area.js +0 -2
  477. package/dist/tanstack/time-picker.d.ts +0 -3
  478. package/dist/tanstack/time-picker.js +0 -2
  479. package/dist/tanstack/toggle-group.d.ts +0 -3
  480. package/dist/tanstack/toggle-group.js +0 -2
  481. package/dist/tanstack-Bgdv0qU1.js +0 -19
  482. package/dist/tanstack-CtuKX9Ss.d.ts +0 -568
  483. package/dist/toast.cva-AmLw6Cf5.d.ts +0 -61
  484. package/dist/toast.runtime-Drd2IJ_j.js +0 -17
  485. package/dist/toastActivation.store-BELtcr76.js +0 -16
  486. package/dist/toggleGroup.cva-DA4U21gn.d.ts +0 -26
  487. package/dist/typography.cva-BCHlTHdM.d.ts +0 -36
  488. package/dist/useAsyncList-Cu-Y8If2.d.ts +0 -9
  489. package/dist/useFilters-BxRScJdn.d.ts +0 -11
  490. package/dist/useFilters-DMi94RZK.js +0 -190
  491. package/dist/useForm-Cb7KWLds.js +0 -217
  492. package/dist/useForm-I6z23FXf.d.ts +0 -51
  493. package/dist/useFormAutosave-BPGlChiY.js +0 -216
  494. package/dist/useTableNav-H5DrogZU.d.ts +0 -215
  495. package/dist/useToast-DsA8CVoY.d.ts +0 -16
@@ -0,0 +1,116 @@
1
+ import { t as DateTimeUtils } from "./date-time.utils-0F9qduim.js";
2
+ import { endOfMonth, endOfWeek, endOfYear, getLocalTimeZone, startOfMonth, startOfWeek, startOfYear, toCalendarDate, today } from "@internationalized/date";
3
+ //#region src/components/inputs/DateTime/DateRangePicker/dateRangePreset.utils.ts
4
+ const dateRangePresetValues = [
5
+ "thisWeek",
6
+ "lastWeek",
7
+ "thisAndLastWeek",
8
+ "thisMonth",
9
+ "thisAndLastMonth",
10
+ "thisYear",
11
+ "lastYear",
12
+ "thisAndLastYear",
13
+ "soFar"
14
+ ];
15
+ const RELATIVE_DAYS_VALUE_PATTERN = /^days:([+-]?\d{1,7}):([+-]?\d{1,7})$/;
16
+ /** Whole days from `currentDate` to `date`; negative when `date` is in the past. */
17
+ const getRelativeDaysOffset = (date, currentDate) => toCalendarDate(date).compare(currentDate);
18
+ /** Display form of a single offset, e.g. `-7`, `0` or `+3`. */
19
+ const formatRelativeDaysOffset = (days) => days > 0 ? `+${days}` : `${days}`;
20
+ /** Serializes day offsets into a stable `relativeValue`, e.g. `days:-7:+3`. */
21
+ const formatRelativeDaysValue = ({ start, end }) => `days:${formatRelativeDaysOffset(start)}:${formatRelativeDaysOffset(end)}`;
22
+ /** Returns undefined when the value is not a day-offset value or its start is after its end. */
23
+ const parseRelativeDaysValue = (value) => {
24
+ const match = RELATIVE_DAYS_VALUE_PATTERN.exec(value);
25
+ if (!match) return;
26
+ const start = Number(match[1]);
27
+ const end = Number(match[2]);
28
+ return start <= end ? {
29
+ start,
30
+ end
31
+ } : void 0;
32
+ };
33
+ const isStoredRelativeDateRangeValue = (value) => typeof value === "object" && value !== null && typeof value.relativeValue === "string";
34
+ const isRelativeDateRangeValue = (value) => isStoredRelativeDateRangeValue(value) && typeof value.resolvedValue === "object";
35
+ const isDateRangePresetValue = (value) => dateRangePresetValues.some((preset) => preset === value);
36
+ /**
37
+ * The concrete range of a preset key or a `days:` offset value, counted from `currentDate`.
38
+ * `locale` sets the first day of the week for week presets; it defaults to `en-GB` (Monday), which differs from the
39
+ * picker in other locales such as `en-US` (Sunday). Inside a component, use `useResolveDateRangePreset`, which reads
40
+ * the picker's locale and time zone.
41
+ */
42
+ const getDateRangePreset = (value, currentDate = today(getLocalTimeZone()), locale = "en-GB") => {
43
+ const relativeDays = parseRelativeDaysValue(value);
44
+ if (relativeDays) return {
45
+ start: currentDate.add({ days: relativeDays.start }),
46
+ end: currentDate.add({ days: relativeDays.end })
47
+ };
48
+ if (!isDateRangePresetValue(value)) return;
49
+ const previousYear = currentDate.subtract({ years: 1 });
50
+ switch (value) {
51
+ case "thisWeek": return {
52
+ start: startOfWeek(currentDate, locale),
53
+ end: endOfWeek(currentDate, locale)
54
+ };
55
+ case "lastWeek": {
56
+ const thisWeekStart = startOfWeek(currentDate, locale);
57
+ return {
58
+ start: thisWeekStart.subtract({ weeks: 1 }),
59
+ end: thisWeekStart.subtract({ days: 1 })
60
+ };
61
+ }
62
+ case "thisAndLastWeek": return {
63
+ start: startOfWeek(currentDate, locale).subtract({ weeks: 1 }),
64
+ end: endOfWeek(currentDate, locale)
65
+ };
66
+ case "thisMonth": return {
67
+ start: startOfMonth(currentDate),
68
+ end: endOfMonth(currentDate)
69
+ };
70
+ case "thisAndLastMonth": return {
71
+ start: startOfMonth(currentDate).subtract({ months: 1 }),
72
+ end: endOfMonth(currentDate)
73
+ };
74
+ case "thisYear":
75
+ case "soFar": return {
76
+ start: startOfYear(currentDate),
77
+ end: currentDate
78
+ };
79
+ case "lastYear": return {
80
+ start: startOfYear(previousYear),
81
+ end: endOfYear(previousYear)
82
+ };
83
+ case "thisAndLastYear": return {
84
+ start: startOfYear(previousYear),
85
+ end: currentDate
86
+ };
87
+ }
88
+ };
89
+ /** Formats a preset range like a `DateRangePicker` value: full ISO endpoints, or `YYYY-MM-DD` with `fullIso: false`. */
90
+ const formatDateRangePreset = (range, fullIso = true) => fullIso ? {
91
+ start: DateTimeUtils.fromCalendarDateToUTCISO(range.start),
92
+ end: DateTimeUtils.fromCalendarDateToUTCISO(range.end, { endOfDay: true })
93
+ } : {
94
+ start: range.start.toString(),
95
+ end: range.end.toString()
96
+ };
97
+ /**
98
+ * `getDateRangePreset` formatted as full ISO endpoints, the default `DateRangePicker` value format.
99
+ * The `locale` default (`en-GB`, weeks start on Monday) only matches an `en-GB`-like picker; inside a component, use
100
+ * `useResolveDateRangePreset` so week presets match the picker.
101
+ */
102
+ const resolveDateRangePreset = (value, currentDate = today(getLocalTimeZone()), locale = "en-GB") => {
103
+ const range = getDateRangePreset(value, currentDate, locale);
104
+ return range ? formatDateRangePreset(range) : void 0;
105
+ };
106
+ /** Adds `resolvedValue` to a stored `{ relativeValue }`; `locale` works as in `resolveDateRangePreset`. */
107
+ const hydrateRelativeDateRangeValue = (value, currentDate = today(getLocalTimeZone()), locale = "en-GB") => {
108
+ if (isRelativeDateRangeValue(value)) return value;
109
+ const resolvedValue = resolveDateRangePreset(value.relativeValue, currentDate, locale);
110
+ return resolvedValue ? {
111
+ relativeValue: value.relativeValue,
112
+ resolvedValue
113
+ } : void 0;
114
+ };
115
+ //#endregion
116
+ export { getDateRangePreset as a, isDateRangePresetValue as c, parseRelativeDaysValue as d, resolveDateRangePreset as f, formatRelativeDaysValue as i, isRelativeDateRangeValue as l, formatDateRangePreset as n, getRelativeDaysOffset as o, formatRelativeDaysOffset as r, hydrateRelativeDateRangeValue as s, dateRangePresetValues as t, isStoredRelativeDateRangeValue as u };
@@ -3,7 +3,7 @@ import { r as cva, t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
3
3
  const dialogContentDefinition = UIOverrides.defineConfig({
4
4
  base: [
5
5
  "relative flex flex-col gap-4 shadow-lg",
6
- "w-fit max-w-full [&>*]:max-w-full",
6
+ "max-w-full [&>*]:max-w-full",
7
7
  "bg-background text-foreground outline-none",
8
8
  "pointer-events-auto"
9
9
  ],
@@ -1,57 +1,82 @@
1
1
  import { t as clsx } from "./clsx-CnD0nOiA.js";
2
2
  import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
3
- import { t as IconSlot } from "./IconSlot-CqNuZl0E.js";
3
+ import { t as IconSlot } from "./IconSlot-TAWTJ6iK.js";
4
4
  import { t as Typography } from "./Typography-DCLnPa3P.js";
5
- import { t as Spinner } from "./Spinner-DqjP06T1.js";
6
- import { t as UIConfig } from "./uiConfig.context-3DN9w6oU.js";
7
- import { t as Button } from "./Button-BaODzvZd.js";
8
- import { a as toastDefinition, n as statusIconDefinition, r as statusSeparatorDefinition, t as buttonColorVariant } from "./toast.cva-B6NXTwbZ.js";
5
+ import "./i18n-DQs7jPjv.js";
6
+ import { Spinner } from "./components/spinner.js";
7
+ import { t as UIConfig } from "./uiConfig.context-CjnLnQOo.js";
8
+ import { t as Button } from "./Button-CzEs3tcV.js";
9
+ import { IconButton } from "./components/icon-button.js";
10
+ import { a as toastDefinition, n as statusIconDefinition, r as statusSeparatorDefinition, t as buttonColorVariant } from "./toast.cva-C3oA7He3.js";
9
11
  import $ahdqC$react, { cloneElement, isValidElement, useEffect, useLayoutEffect, useRef, useState, useSyncExternalStore } from "react";
10
12
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
13
+ import { X } from "lucide-react";
14
+ import { useTranslation } from "react-i18next";
11
15
  //#region src/components/status/Toast/Toast.tsx
12
- const Toast = ({ text, isLoading = false, actions = [], icon: Icon, ...props }) => {
16
+ const ToastView = ({ text, isLoading = false, actions = [], icon, closeToast, showCloseButton = false, ...props }) => {
17
+ const { t } = useTranslation("ui");
13
18
  const uiConfig = UIConfig.useConfig();
14
- const { variant = uiConfig.toast.variant, ...restProps } = props;
19
+ const { variant = uiConfig.toast.variant, color, ...restProps } = props;
15
20
  const toastCva = UIOverrides.useCva("toast.cva", toastDefinition);
16
21
  const buttonColor = UIOverrides.useMapper("toast.buttonColor", buttonColorVariant);
17
22
  const iconCva = UIOverrides.useCva("status.iconCva", statusIconDefinition);
18
23
  const separatorCva = UIOverrides.useCva("status.separatorCva", statusSeparatorDefinition);
19
24
  const variantProps = {
20
25
  variant,
26
+ color,
21
27
  ...restProps
22
28
  };
23
29
  return /* @__PURE__ */ jsxs("div", {
24
30
  className: toastCva(variantProps),
25
- children: [/* @__PURE__ */ jsxs("div", {
26
- className: "flex min-w-0 flex-1 items-start gap-1.5",
27
- children: [
28
- isLoading && /* @__PURE__ */ jsx("span", {
29
- className: "flex h-5 shrink-0 items-center",
30
- children: /* @__PURE__ */ jsx(Spinner, { size: "default" })
31
- }),
32
- !isLoading && Icon && /* @__PURE__ */ jsx(IconSlot, {
33
- icon: Icon,
34
- className: iconCva(variantProps)
35
- }),
36
- /* @__PURE__ */ jsx(Typography, {
37
- size: "large",
38
- className: "font-medium",
39
- children: text
40
- })
41
- ]
42
- }), actions.length > 0 && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("div", { className: separatorCva(variantProps) }), /* @__PURE__ */ jsx("div", {
43
- className: "ml-auto flex shrink-0 items-center gap-2",
44
- children: actions.map(({ text: buttonText, onPress }) => /* @__PURE__ */ jsx(Button, {
45
- onPress,
46
- ...buttonColor(variantProps),
47
- variant: "contained",
48
- size: "s",
31
+ children: [
32
+ /* @__PURE__ */ jsxs("div", {
33
+ className: "flex min-w-0 flex-1 items-start gap-1.5",
34
+ children: [
35
+ isLoading && /* @__PURE__ */ jsx("span", {
36
+ className: "flex h-5 shrink-0 items-center",
37
+ children: /* @__PURE__ */ jsx(Spinner, { size: "default" })
38
+ }),
39
+ !isLoading && icon && /* @__PURE__ */ jsx(IconSlot, {
40
+ icon,
41
+ className: iconCva(variantProps)
42
+ }),
43
+ /* @__PURE__ */ jsx(Typography, {
44
+ size: "large",
45
+ className: "font-medium",
46
+ children: text
47
+ })
48
+ ]
49
+ }),
50
+ actions.length > 0 && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("div", { className: separatorCva(variantProps) }), /* @__PURE__ */ jsx("div", {
51
+ className: "ml-auto flex shrink-0 items-center gap-2",
52
+ children: actions.map(({ label, onPress }) => /* @__PURE__ */ jsx(Button, {
53
+ onPress: () => {
54
+ onPress();
55
+ closeToast?.();
56
+ },
57
+ ...buttonColor(variantProps),
58
+ variant: "contained",
59
+ size: "sm",
60
+ width: "hug",
61
+ children: label
62
+ }, label))
63
+ })] }),
64
+ showCloseButton && closeToast && /* @__PURE__ */ jsx(IconButton, {
65
+ icon: X,
66
+ label: t(($) => $.ui.closeAlt),
67
+ onPress: closeToast,
68
+ variant: "ghost",
69
+ color: "secondary",
70
+ size: "sm",
49
71
  width: "hug",
50
- children: buttonText
51
- }, buttonText))
52
- })] })]
72
+ disableTooltip: true,
73
+ className: "shrink-0 self-start"
74
+ })
75
+ ]
53
76
  });
54
77
  };
78
+ /** A toast's content and look. Show toasts with the functions from `useToast`; render `Toast` only to preview one. */
79
+ const Toast = ToastView;
55
80
  //#endregion
56
81
  //#region ../../node_modules/.bun/react-toastify@11.1.0+67f6792bdf102c28/node_modules/react-toastify/dist/index.mjs
57
82
  var L = (t) => typeof t == "number" && !isNaN(t);
@@ -260,7 +285,7 @@ var Ct = (t, { containerId: o }) => {
260
285
  var e;
261
286
  return (e = I.get(o || 1)) == null ? void 0 : e.toasts.get(t);
262
287
  };
263
- function X(t, o) {
288
+ function X$1(t, o) {
264
289
  var r;
265
290
  if (o) return !!((r = I.get(o)) != null && r.isToastActive(t));
266
291
  let e = !1;
@@ -406,7 +431,7 @@ function Yt(t) {
406
431
  }
407
432
  y.dismiss = Yt;
408
433
  y.clearWaitingQueue = Et;
409
- y.isActive = X;
434
+ y.isActive = X$1;
410
435
  y.update = (t, o = {}) => {
411
436
  let e = Ct(t, o);
412
437
  if (e) {
@@ -443,7 +468,7 @@ function kt(t) {
443
468
  }
444
469
  return {
445
470
  getToastToRender: l,
446
- isToastActive: X,
471
+ isToastActive: X$1,
447
472
  count: a == null ? void 0 : a.length
448
473
  };
449
474
  }
@@ -1535,4 +1560,4 @@ function xo(t) {
1535
1560
  return Rt(Mt, t.nonce), $ahdqC$react.createElement(dt, { ...t });
1536
1561
  }
1537
1562
  //#endregion
1538
- export { y as n, Toast as r, xo as t };
1563
+ export { ToastView as i, y as n, Toast as r, xo as t };
@@ -13,16 +13,28 @@ const dropdownMenuDefinition = UIOverrides.defineConfig({
13
13
  const menuItemDefinition = UIOverrides.defineConfig({
14
14
  base: [
15
15
  "relative flex cursor-default items-center gap-2 text-sm outline-none select-none",
16
- "focused:bg-accent focused:text-accent-foreground open:bg-accent open:text-accent-foreground",
17
16
  "disabled:pointer-events-none disabled:opacity-50",
18
- "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='text-'])]:text-muted-foreground"
17
+ "[&_svg]:pointer-events-none [&_svg]:shrink-0"
19
18
  ],
20
19
  config: {
21
- variants: { isMobile: {
22
- true: ["min-h-11 w-full justify-start px-4 py-2.5 font-medium"],
23
- false: ["justify-between rounded-sm px-2 py-1.5"]
24
- } },
25
- defaultVariants: { isMobile: false }
20
+ variants: {
21
+ isMobile: {
22
+ true: ["min-h-11 w-full justify-start px-4 py-2.5 font-medium"],
23
+ false: ["justify-between rounded-sm px-2 py-1.5"]
24
+ },
25
+ color: {
26
+ default: ["focus:bg-accent focus:text-accent-foreground open:bg-accent open:text-accent-foreground", "[&_svg:not([class*='text-'])]:text-muted-foreground"],
27
+ error: [
28
+ "text-destructive focus:bg-destructive/10 focus:text-destructive open:bg-destructive/10 open:text-destructive",
29
+ "dark:focus:bg-destructive/20 dark:open:bg-destructive/20",
30
+ "[&_svg:not([class*='text-'])]:text-destructive"
31
+ ]
32
+ }
33
+ },
34
+ defaultVariants: {
35
+ isMobile: false,
36
+ color: "default"
37
+ }
26
38
  }
27
39
  });
28
40
  const menuPopoverDefinition = UIOverrides.defineConfig({ base: ["pt-1 outline-none"] });
@@ -1,5 +1,5 @@
1
1
  import "react-aria/CollectionBuilder";
2
- import "react-aria/Collection";
2
+ import { Collection as $a3be900807531178$re_export$Collection } from "react-aria/Collection";
3
3
  import { useLocale as $a3be900807531178$re_export$useLocale } from "react-aria/I18nProvider";
4
4
  import "react-aria/VisuallyHidden";
5
5
  import "react-stately/private/form/useFormValidationState";
@@ -13,9 +13,9 @@ import "react-stately/useToastState";
13
13
  import "react-aria/useDrag";
14
14
  import "react-aria/private/utils/openLink";
15
15
  import "react-aria/Pressable";
16
- import { Focusable as $a3be900807531178$re_export$Focusable } from "react-aria/Focusable";
16
+ import "react-aria/Focusable";
17
17
  import "react-aria/useFocusVisible";
18
18
  import "react-stately/useListData";
19
19
  import "react-stately/useTreeData";
20
20
  import "react-stately/useAsyncList";
21
- export { $a3be900807531178$re_export$useLocale as a, $a3be900807531178$re_export$useFilter as i, $a3be900807531178$re_export$ListLayout as n, $a3be900807531178$re_export$Rect as r, $a3be900807531178$re_export$Focusable as t };
21
+ export { $a3be900807531178$re_export$useLocale as a, $a3be900807531178$re_export$useFilter as i, $a3be900807531178$re_export$ListLayout as n, $a3be900807531178$re_export$Rect as r, $a3be900807531178$re_export$Collection as t };
@@ -11,9 +11,9 @@ declare namespace FileUtils {
11
11
  const downloadFile: (data: Blob | BlobResponse, fileName?: string, revokeTimeoutMs?: number) => void;
12
12
  const isFileTypeAccepted: (file: File, fileTypes?: readonly string[] | string[]) => boolean;
13
13
  const getCalculatedFileSize: (file?: File) => string;
14
- const getFileDisplaySize: (state: {
15
- file?: File;
16
- displaySize?: number;
14
+ /** Formats the size of a `File` or of an uploaded file record; empty when the size is unknown. */
15
+ const getFileDisplaySize: (file: {
16
+ size?: number;
17
17
  }) => string;
18
18
  const formatBytes: (size: number, decimals?: number) => string;
19
19
  }
@@ -38,18 +38,14 @@ let FileUtils;
38
38
  return file.name.toLowerCase().endsWith(type.toLowerCase());
39
39
  });
40
40
  };
41
- const getCalculatedFileSize = _FileUtils.getCalculatedFileSize = (file) => {
41
+ _FileUtils.getCalculatedFileSize = (file) => {
42
42
  if (!file) return "";
43
43
  if (file.size < 1024) return `${file.size} B`;
44
44
  if (file.size < 1048576) return `${(file.size / 1024).toFixed(2)} KB`;
45
45
  if (file.size < 1073741824) return `${(file.size / 1024 / 1024).toFixed(2)} MB`;
46
46
  return `${(file.size / 1024 / 1024 / 1024).toFixed(2)} GB`;
47
47
  };
48
- _FileUtils.getFileDisplaySize = (state) => {
49
- if (state.file) return getCalculatedFileSize(state.file);
50
- if (state.displaySize != null) return formatBytes(state.displaySize);
51
- return "";
52
- };
48
+ _FileUtils.getFileDisplaySize = (file) => file.size == null ? "" : formatBytes(file.size);
53
49
  const formatBytes = _FileUtils.formatBytes = (size, decimals = 2) => {
54
50
  if (size < 1024) return `${size} B`;
55
51
  if (size < 1048576) return `${(size / 1024).toFixed(decimals)} KB`;
@@ -0,0 +1,39 @@
1
+ import { t as clsx } from "./clsx-CnD0nOiA.js";
2
+ import { r as cva, t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
3
+ //#region src/components/inputs/File/shared/fileInputButton.cva.ts
4
+ const fileInputButtonDefinition = UIOverrides.defineConfig({
5
+ base: ["flex w-full items-center justify-between gap-2"],
6
+ config: {
7
+ variants: { buttonPosition: {
8
+ outside: [],
9
+ inside: []
10
+ } },
11
+ defaultVariants: { buttonPosition: "outside" }
12
+ }
13
+ });
14
+ const fileInputButtonBase = cva(fileInputButtonDefinition.base, fileInputButtonDefinition.config);
15
+ const fileInputButton = (props) => {
16
+ const { className, ...rest } = props;
17
+ return clsx(fileInputButtonBase(rest), className);
18
+ };
19
+ const fileInputDropZoneDefinition = UIOverrides.defineConfig({
20
+ base: [
21
+ "relative",
22
+ "min-w-0 flex-1",
23
+ "flex items-center",
24
+ "outline-none transition-[color,box-shadow]",
25
+ "focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50",
26
+ "data-[drop-target]:border-ring data-[drop-target]:ring-[3px] data-[drop-target]:ring-ring/50",
27
+ "group-invalid/input-upload:border-destructive group-invalid/input-upload:ring-destructive/20 dark:group-invalid/input-upload:ring-destructive/40"
28
+ ],
29
+ config: {
30
+ variants: { buttonPosition: {
31
+ outside: ["rounded-md border border-input border-solid bg-transparent shadow-xs dark:bg-input/30"],
32
+ inside: ["rounded-md border border-input border-solid bg-transparent shadow-xs dark:bg-input/30"]
33
+ } },
34
+ defaultVariants: { buttonPosition: "outside" }
35
+ }
36
+ });
37
+ const fileInputDropZone = cva(fileInputDropZoneDefinition.base, fileInputDropZoneDefinition.config);
38
+ //#endregion
39
+ export { fileInputDropZoneDefinition as i, fileInputButtonDefinition as n, fileInputDropZone as r, fileInputButton as t };
@@ -4,7 +4,7 @@ const fileUploadDropZoneDefinition = UIOverrides.defineConfig({
4
4
  base: ["relative w-full rounded-lg outline-none"],
5
5
  config: {
6
6
  variants: {
7
- variant: {
7
+ orientation: {
8
8
  vertical: ["flex-col justify-center"],
9
9
  horizontal: ["flex-row justify-between"]
10
10
  },
@@ -35,7 +35,7 @@ const fileUploadDropZoneDefinition = UIOverrides.defineConfig({
35
35
  ]
36
36
  }
37
37
  },
38
- defaultVariants: { variant: "vertical" }
38
+ defaultVariants: { orientation: "vertical" }
39
39
  }
40
40
  });
41
41
  //#endregion
@@ -0,0 +1 @@
1
+ import "./FormField-XQbjfGSv.js";
@@ -0,0 +1,161 @@
1
+ import { c } from "react/compiler-runtime";
2
+ import { useSyncExternalStore } from "react";
3
+ import { jsx } from "react/jsx-runtime";
4
+ //#region src/hooks/formStore.ts
5
+ /** Subscribes to a store slice. The selector must return a referentially stable value (a primitive). */
6
+ function useStoreSelector(store, selector) {
7
+ const $ = c(5);
8
+ let t0;
9
+ if ($[0] !== store) {
10
+ t0 = (listener) => {
11
+ const subscription = store.subscribe(listener);
12
+ return typeof subscription === "function" ? subscription : () => subscription.unsubscribe();
13
+ };
14
+ $[0] = store;
15
+ $[1] = t0;
16
+ } else t0 = $[1];
17
+ const subscribe = t0;
18
+ let t1;
19
+ if ($[2] !== selector || $[3] !== store.state) {
20
+ t1 = () => selector(store.state);
21
+ $[2] = selector;
22
+ $[3] = store.state;
23
+ $[4] = t1;
24
+ } else t1 = $[4];
25
+ const getSnapshot = t1;
26
+ return useSyncExternalStore(subscribe, getSnapshot, getSnapshot);
27
+ }
28
+ const disabledStores = /* @__PURE__ */ new WeakMap();
29
+ function registerFormDisabledStore(form, store) {
30
+ disabledStores.set(form, store);
31
+ }
32
+ const selectDisabled = (disabled) => disabled;
33
+ function useFormDisabledStore(form) {
34
+ const $ = c(2);
35
+ let t0;
36
+ if ($[0] !== form) {
37
+ t0 = disabledStores.get(form);
38
+ $[0] = form;
39
+ $[1] = t0;
40
+ } else t0 = $[1];
41
+ const store = t0;
42
+ if (!store) throw new Error("useFormDisabled must be used with a form created by useForm");
43
+ return useStoreSelector(store, selectDisabled);
44
+ }
45
+ //#endregion
46
+ //#region src/components/inputs/shared/form.types.ts
47
+ const getFieldError = (errors) => errors.flatMap((error) => {
48
+ if (typeof error === "string") return [error];
49
+ if (error && typeof error === "object" && "message" in error) return [String(error.message)];
50
+ return [];
51
+ }).at(0);
52
+ //#endregion
53
+ //#region src/components/inputs/shared/form.binding.tsx
54
+ const selectSubmissionAttempts = (state) => state.submissionAttempts;
55
+ /**
56
+ * Ref callback for the element of a form-bound control. The form's schema is its only validation; the browser's own
57
+ * checks (`type="email"`, `minLength`, `pattern`) would run first, cancel the submit with a browser bubble, and keep
58
+ * the schema's messages from showing. So the `<form>` around a bound control skips them (`noValidate`).
59
+ */
60
+ const skipBrowserValidation = (element) => {
61
+ if (!(element instanceof Element)) return;
62
+ const form = element instanceof HTMLInputElement ? element.form : element.closest("form");
63
+ if (form) form.noValidate = true;
64
+ };
65
+ /**
66
+ * Whether a control's `onBlur` call is real focus loss, which runs `field.onBlur`, rather than a commit (a clear, a
67
+ * pick, a closed sheet) that only marks the field touched. Focus loss passes a focus event or an object with
68
+ * `type: "blur"`; TipTap passes `{ editor, event }`. Commits pass nothing, `null`, `{}` or `{ target }`.
69
+ */
70
+ const isFocusLoss = (event) => {
71
+ if (!event || typeof event !== "object") return false;
72
+ if ("nativeEvent" in event) return true;
73
+ if ("type" in event) return event.type === "blur" || event.type === "focusout";
74
+ return "editor" in event && "event" in event && isFocusLoss(event.event);
75
+ };
76
+ /**
77
+ * The first error reported beneath a field's own path (`range.start`, `recipients[0].label`). Schema issues are
78
+ * keyed by their exact path, so a field holding an object or an array would otherwise never show them.
79
+ */
80
+ const getNestedFieldError = (fieldMeta, name) => {
81
+ for (const path in fieldMeta) if (path.startsWith(`${name}.`) || path.startsWith(`${name}[`)) {
82
+ const error = getFieldError(fieldMeta[path]?.errors ?? []);
83
+ if (error) return error;
84
+ }
85
+ };
86
+ function FieldController({ control: form, name: nameProp, onValueChange, onBlur, validateOnSubmit, render }) {
87
+ const name = nameProp;
88
+ const isFormDisabled = useFormDisabledStore(form);
89
+ const submissionAttempts = useStoreSelector(form.store, selectSubmissionAttempts);
90
+ const nestedError = useStoreSelector(form.store, (state) => state.submissionAttempts > 0 ? getNestedFieldError(state.fieldMeta, name) : void 0);
91
+ const fieldValidators = form.getFieldValidators(name);
92
+ return /* @__PURE__ */ jsx(form.Field, {
93
+ name,
94
+ validators: validateOnSubmit ? {
95
+ ...fieldValidators,
96
+ onSubmit: validateOnSubmit
97
+ } : fieldValidators,
98
+ children: (field) => {
99
+ const validators = form.getFieldValidators(name);
100
+ const validationError = submissionAttempts > 0 ? getFieldError(field.state.meta.errors) ?? nestedError : validators?.onChange && field.state.meta.isDirty ? validators.onChange({ value: field.state.value }) : validators?.onBlur && field.state.meta.isTouched ? validators.onBlur({ value: field.state.value }) : void 0;
101
+ return render({
102
+ field: {
103
+ disabled: isFormDisabled,
104
+ name: field.name,
105
+ onBlur: (event) => {
106
+ field.handleBlur();
107
+ form.notifyBlur(name);
108
+ if (isFocusLoss(event)) onBlur?.();
109
+ },
110
+ onValueCommit: () => {
111
+ field.handleBlur();
112
+ form.notifyBlur(name);
113
+ },
114
+ onChange: (value) => {
115
+ field.handleChange(value);
116
+ onValueChange?.(value);
117
+ },
118
+ ref: skipBrowserValidation,
119
+ value: field.state.value
120
+ },
121
+ fieldState: {
122
+ error: validationError ? { message: validationError } : void 0,
123
+ isDirty: field.state.meta.isDirty
124
+ }
125
+ });
126
+ }
127
+ });
128
+ }
129
+ /**
130
+ * Binds a custom control (one the library has no input for) to a form field, with the same error, touched and
131
+ * autosave behaviour as the library's bound inputs. Render the control and a `FormField` in the children.
132
+ *
133
+ * @example
134
+ * <BoundField field={{ form, name: "brandColor" }}>
135
+ * {({ value, onChange, onBlur, ref, error }) => (
136
+ * <FormField label="Brand colour" error={error} labelProps={{ htmlFor: id }}>
137
+ * <input id={id} type="color" ref={ref} value={value} onChange={(e) => onChange(e.target.value)} onBlur={onBlur} />
138
+ * </FormField>
139
+ * )}
140
+ * </BoundField>
141
+ */
142
+ function BoundField({ field, children }) {
143
+ return /* @__PURE__ */ jsx(FieldController, {
144
+ control: field.form,
145
+ name: field.name,
146
+ onValueChange: field.onValueChange,
147
+ onBlur: field.onBlur,
148
+ render: ({ field: control, fieldState }) => children({
149
+ name: control.name,
150
+ value: control.value,
151
+ onChange: control.onChange,
152
+ onBlur: () => control.onBlur({ type: "blur" }),
153
+ ref: control.ref,
154
+ error: fieldState.error?.message,
155
+ isDirty: fieldState.isDirty,
156
+ isDisabled: control.disabled
157
+ })
158
+ });
159
+ }
160
+ //#endregion
161
+ export { registerFormDisabledStore as a, skipBrowserValidation as i, FieldController as n, useStoreSelector as o, selectSubmissionAttempts as r, BoundField as t };