@povio/ui 6.0.0-rc.12 → 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 (488) hide show
  1. package/README.md +469 -42
  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-yaQubCWK.js → Calendar-DN-i_b-_.js} +19 -17
  21. package/dist/{Calendar.lazy-DcVss9Bk.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-bme8zGBo.js → DatePicker-DQewd1By.js} +80 -41
  29. package/dist/{DatePickerInput-vLlL5ATh.d.ts → DatePickerInput-B9VnExeA.d.ts} +3 -3
  30. package/dist/{DatePickerInput-C2881tvS.js → DatePickerInput-Bp9ZIN5E.js} +37 -26
  31. package/dist/{DateRangePicker-Blg158JD.js → DateRangePicker-DRZ1hLlR.js} +86 -158
  32. package/dist/DateRangePicker-LX1VJlnD.d.ts +102 -0
  33. package/dist/DateTimePicker-D9pODhAj.d.ts +83 -0
  34. package/dist/{DateTimePicker-CdRFt8WM.js → DateTimePicker-DWtKPaE6.js} +70 -35
  35. package/dist/{Dialog-C9H9_BmK.js → Dialog-BJ13KRQo.js} +1 -1
  36. package/dist/{Dialog-DN5703sy.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-BUwtAF2-.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-CG5LQ0zs.js → Input-CeRJeAoR.js} +94 -59
  56. package/dist/Input-onUj0DKg.d.ts +56 -0
  57. package/dist/{InputContent-Fx2E4UXl.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-DxuikBcr.js → NumberField-6Q9LHGSo.js} +91 -62
  63. package/dist/NumberField-Sb30Qao3.d.ts +41 -0
  64. package/dist/{NumberRangeInput-8bOjNEnS.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-Dfq5c3JQ.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-DT63UD8K.js → RangeCalendar-DqCTlIuy.js} +12 -10
  76. package/dist/Select-CSyfDyxG.d.ts +248 -0
  77. package/dist/{Select-BM8PNrjC.js → Select-D3fuXwVt.js} +435 -184
  78. package/dist/{SelectListBox-BFSZxDSi.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-DybNturW.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-Blsip3ZC.js → TextArea-P8F0oD_A.js} +59 -32
  94. package/dist/TimePicker-Ai1M2TGW.d.ts +63 -0
  95. package/dist/{TimePicker-4hV5zbgd.js → TimePicker-l4Ysk2AX.js} +99 -50
  96. package/dist/{TimePickerForm-DD9VA_td.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-BSY31JMc.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-DM-PUcxQ.d.ts → i18n-B3PeqBM7.d.ts} +100 -4
  250. package/dist/{i18n-D8vXIoiq.js → i18n-DQs7jPjv.js} +99 -9
  251. package/dist/iconSlot.cva-DyhOI7EK.js +5 -0
  252. package/dist/{import-C7W0Wv2r.js → import-C73fI3WD.js} +2 -2
  253. package/dist/index.d.ts +64 -83
  254. package/dist/index.js +55 -90
  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-CVuAhDDl.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 +1 -1
  279. package/dist/tanstack-ABeiJISz.js +10 -0
  280. package/dist/tanstack-bLXoUPDY.d.ts +165 -0
  281. package/dist/tanstack.d.ts +64 -83
  282. package/dist/tanstack.js +55 -90
  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-CXYgj5xi.js → useTableColumnConfig-B9cYBKo3.js} +956 -535
  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 -121
  315. package/MIGRATION.md +0 -655
  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-Bn13u0zu.js +0 -145
  320. package/dist/Autocomplete.bound-CpHZZ3C9.d.ts +0 -9
  321. package/dist/Autocomplete.bound-Dwh__y-Z.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-M2cjR37s.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-CkIDsAUf.js +0 -35
  340. package/dist/DateTimePicker-BTRIUagV.d.ts +0 -55
  341. package/dist/DateTimePicker.bound-X4DTyQ1b.d.ts +0 -9
  342. package/dist/DateTimePicker.bound-nSCVUqd0.js +0 -32
  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-C12mOKpg.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-D7FMYm-k.js +0 -749
  351. package/dist/FileUpload.bound-CGQXb4iT.d.ts +0 -16
  352. package/dist/FileUpload.bound-DmkuulOi.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-B9a62ylL.d.ts +0 -9
  359. package/dist/Input.bound-DYoXyRGy.js +0 -31
  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-ChJnNyJS.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-BF6P_ega.js +0 -32
  368. package/dist/NumberRangeInput.bound-BNXxIQ0b.d.ts +0 -9
  369. package/dist/PasswordInput-EhQjYyJS.d.ts +0 -11
  370. package/dist/PasswordInput.bound-CK5GwKL4.d.ts +0 -9
  371. package/dist/Popover-D_t1XDPA.d.ts +0 -20
  372. package/dist/Progress-Ckfpi_-M.d.ts +0 -45
  373. package/dist/Progress-RiEGGxNG.js +0 -119
  374. package/dist/RadioGroup-6e-Z6jW8.d.ts +0 -26
  375. package/dist/RadioGroup.bound-BFWSq-on.js +0 -32
  376. package/dist/RadioGroup.bound-w3SZqSkH.d.ts +0 -9
  377. package/dist/RichTextEditor-DHhuBeT6.d.ts +0 -28
  378. package/dist/RichTextEditor-DfwVdm45.js +0 -651
  379. package/dist/Select-C34ENdjq.d.ts +0 -119
  380. package/dist/Select.bound--Az1Xwgm.js +0 -34
  381. package/dist/Select.bound-qOihchei.d.ts +0 -17
  382. package/dist/Slider-DRg8zKRM.d.ts +0 -23
  383. package/dist/Slider.bound-CByTXPTr.js +0 -31
  384. package/dist/Slider.bound-CaEF19um.d.ts +0 -9
  385. package/dist/Spinner-Cvy_6zgD.d.ts +0 -30
  386. package/dist/Spinner-DqjP06T1.js +0 -101
  387. package/dist/SplitButton-V1f2NWfh.d.ts +0 -15
  388. package/dist/Stepper-k91x_m-E.d.ts +0 -114
  389. package/dist/Switch-ELVPkPx0.d.ts +0 -24
  390. package/dist/Switch.bound-DeEdVvZV.d.ts +0 -9
  391. package/dist/Switch.bound-Dv0cHsMM.js +0 -33
  392. package/dist/TableDnd-CuHxANWh.js +0 -133
  393. package/dist/TableRowDetails-D8HFTghI.d.ts +0 -109
  394. package/dist/TabsFilters-DePddjCk.d.ts +0 -30
  395. package/dist/Tag-B2_ZiSE-.d.ts +0 -44
  396. package/dist/TextArea-iqUeB2QY.d.ts +0 -26
  397. package/dist/TextArea.bound-BJHyCogp.d.ts +0 -9
  398. package/dist/TextArea.bound-DeaskY6r.js +0 -28
  399. package/dist/TimePicker-BZ1ocsBX.d.ts +0 -45
  400. package/dist/TimePicker.bound-8DmjMXuE.d.ts +0 -9
  401. package/dist/TimePicker.bound-BFSXJvE_.js +0 -32
  402. package/dist/Toast-D9pdadZ4.d.ts +0 -16
  403. package/dist/ToggleGroup-CrDoeLN0.js +0 -333
  404. package/dist/ToggleGroup-DvjnSinl.d.ts +0 -42
  405. package/dist/ToggleGroup.bound-B03ISHQ8.d.ts +0 -9
  406. package/dist/ToggleGroup.bound-DCnYwmBt.js +0 -67
  407. package/dist/Tooltip-B8DTURLQ.d.ts +0 -16
  408. package/dist/TooltipEllipsis-Di9Dvd4x.d.ts +0 -11
  409. package/dist/badgeButton.cva-CBFIhr1S.d.ts +0 -41
  410. package/dist/button.cva-C8LGtNJ3.d.ts +0 -94
  411. package/dist/checkbox.cva-CCh_UlrC.d.ts +0 -76
  412. package/dist/components/badge-button.d.ts +0 -2
  413. package/dist/components/badge-button.js +0 -74
  414. package/dist/components/file-upload-container.d.ts +0 -3
  415. package/dist/components/file-upload-container.js +0 -15
  416. package/dist/confirmation.context-Bc2yEVp_.js +0 -114
  417. package/dist/confirmation.context-C_GDRn3a.d.ts +0 -23
  418. package/dist/fileUpload.types-C-ke21yY.d.ts +0 -110
  419. package/dist/form.binding-DOR5gIQf.js +0 -49
  420. package/dist/form.types-C8P4sznq.d.ts +0 -22
  421. package/dist/formFieldHelper.cva-DRmSyRZN.js +0 -14
  422. package/dist/iconSlot.cva-CLB5Tlsr.d.ts +0 -9
  423. package/dist/icons.d.ts +0 -4
  424. package/dist/icons.js +0 -3
  425. package/dist/input.cva-BjuHsDGy.d.ts +0 -80
  426. package/dist/inputLayout-KdAtunGk.js +0 -5
  427. package/dist/link.context-BCHn7NSy.d.ts +0 -12
  428. package/dist/radio.cva-D7M1hqLe.d.ts +0 -56
  429. package/dist/router.context-CtafjXV7.d.ts +0 -16
  430. package/dist/router.context-MckTbHw9.js +0 -63
  431. package/dist/routing.utils-DfxEt0_Y.js +0 -30
  432. package/dist/style-definitions-Dx6aFDiR.d.ts +0 -1038
  433. package/dist/switch.cva-r6vcS25Q.d.ts +0 -16
  434. package/dist/tanstack/autocomplete.d.ts +0 -3
  435. package/dist/tanstack/autocomplete.js +0 -2
  436. package/dist/tanstack/checkbox-group.d.ts +0 -3
  437. package/dist/tanstack/checkbox-group.js +0 -2
  438. package/dist/tanstack/checkbox.d.ts +0 -3
  439. package/dist/tanstack/checkbox.js +0 -2
  440. package/dist/tanstack/date-picker.d.ts +0 -3
  441. package/dist/tanstack/date-picker.js +0 -2
  442. package/dist/tanstack/date-range-picker.d.ts +0 -3
  443. package/dist/tanstack/date-range-picker.js +0 -2
  444. package/dist/tanstack/date-time-picker.d.ts +0 -3
  445. package/dist/tanstack/date-time-picker.js +0 -2
  446. package/dist/tanstack/file-input.d.ts +0 -3
  447. package/dist/tanstack/file-input.js +0 -2
  448. package/dist/tanstack/file-upload.d.ts +0 -4
  449. package/dist/tanstack/file-upload.js +0 -2
  450. package/dist/tanstack/input.d.ts +0 -3
  451. package/dist/tanstack/input.js +0 -2
  452. package/dist/tanstack/number-field.d.ts +0 -3
  453. package/dist/tanstack/number-field.js +0 -2
  454. package/dist/tanstack/number-range-input.d.ts +0 -3
  455. package/dist/tanstack/number-range-input.js +0 -2
  456. package/dist/tanstack/password-input.d.ts +0 -2
  457. package/dist/tanstack/password-input.js +0 -2
  458. package/dist/tanstack/radio-group.d.ts +0 -3
  459. package/dist/tanstack/radio-group.js +0 -2
  460. package/dist/tanstack/rich-text-editor.d.ts +0 -9
  461. package/dist/tanstack/rich-text-editor.js +0 -28
  462. package/dist/tanstack/select.d.ts +0 -3
  463. package/dist/tanstack/select.js +0 -2
  464. package/dist/tanstack/slider.d.ts +0 -3
  465. package/dist/tanstack/slider.js +0 -2
  466. package/dist/tanstack/switch.d.ts +0 -3
  467. package/dist/tanstack/switch.js +0 -2
  468. package/dist/tanstack/text-area.d.ts +0 -3
  469. package/dist/tanstack/text-area.js +0 -2
  470. package/dist/tanstack/time-picker.d.ts +0 -3
  471. package/dist/tanstack/time-picker.js +0 -2
  472. package/dist/tanstack/toggle-group.d.ts +0 -3
  473. package/dist/tanstack/toggle-group.js +0 -2
  474. package/dist/tanstack-Bgdv0qU1.js +0 -19
  475. package/dist/tanstack-wNbE6b-h.d.ts +0 -566
  476. package/dist/toast.cva-AmLw6Cf5.d.ts +0 -61
  477. package/dist/toast.runtime-Drd2IJ_j.js +0 -17
  478. package/dist/toastActivation.store-BELtcr76.js +0 -16
  479. package/dist/toggleGroup.cva-DA4U21gn.d.ts +0 -26
  480. package/dist/typography.cva-BCHlTHdM.d.ts +0 -36
  481. package/dist/useAsyncList-Cu-Y8If2.d.ts +0 -9
  482. package/dist/useFilters-BxRScJdn.d.ts +0 -11
  483. package/dist/useFilters-DMi94RZK.js +0 -190
  484. package/dist/useForm-Cb7KWLds.js +0 -217
  485. package/dist/useForm-I6z23FXf.d.ts +0 -51
  486. package/dist/useFormAutosave-BPGlChiY.js +0 -216
  487. package/dist/useTableNav-BusSFEVC.d.ts +0 -197
  488. package/dist/useToast-DsA8CVoY.d.ts +0 -16
@@ -1,11 +1,14 @@
1
1
  import { t as clsx } from "./clsx-CnD0nOiA.js";
2
2
  import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
3
3
  import { c as $7230ffa83bc0c2cf$export$ef03459518577ad4, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a } from "./utils-BkLF-JA3.js";
4
- import { t as UIConfig } from "./uiConfig.context-3DN9w6oU.js";
4
+ import { t as UIConfig } from "./uiConfig.context-CjnLnQOo.js";
5
+ import { n as FieldController } from "./form.binding-Brdjq2yr.js";
6
+ import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js";
5
7
  import { t as FormFieldError } from "./FormFieldError-DTT5TUQ1.js";
6
8
  import { t as CheckContent } from "./CheckContent-BKLnTPZr.js";
9
+ import { t as useFieldAccessibility } from "./useFieldAccessibility-eZIMECmG.js";
7
10
  import { n as switchDefinition, r as switchTypography, t as switchContentClassName } from "./switch.cva-BT0kGRIk.js";
8
- import $ahdqC$react, { createContext, forwardRef, memo, useContext, useMemo } from "react";
11
+ import $ahdqC$react, { createContext, forwardRef, memo, useContext, useLayoutEffect, useMemo, useRef } from "react";
9
12
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
10
13
  import { mergeProps } from "react-aria/mergeProps";
11
14
  import { mergeRefs } from "react-aria/mergeRefs";
@@ -91,14 +94,27 @@ const SwitchBase = (props) => {
91
94
  const switchCva = UIOverrides.useCva("switch.cva", switchDefinition);
92
95
  const switchTypographyMap = UIOverrides.useMapper("switch.typography", switchTypography);
93
96
  const switchContentClassNameMap = UIOverrides.useMapper("switch.contentClassName", switchContentClassName);
94
- const { className, children, isDisabled, disabled, isRequired, required, error, variant: variantProp, fireBlurOnChange: fireBlurOnChangeProp, onChange, onBlur, ...rest } = props;
95
- const resolvedIsDisabled = isDisabled ?? disabled;
96
- const resolvedIsRequired = isRequired ?? required;
97
+ const { className, children, isDisabled, isRequired, isInvalid: isInvalidProp, error, inputRef: inputRefProp, variant: variantProp, fireBlurOnChange: fireBlurOnChangeProp, onChange, onBlur, ...rest } = props;
97
98
  const variant = variantProp ?? ui.switch.variant;
98
99
  const fireBlurOnChange = fireBlurOnChangeProp ?? ui.switch.fireBlurOnChange;
100
+ const isInvalid = isInvalidProp || !!error;
101
+ const accessibility = useFieldAccessibility({
102
+ describedBy: rest["aria-describedby"],
103
+ error
104
+ });
105
+ const inputRef = useRef(null);
106
+ useLayoutEffect(() => {
107
+ const input = inputRef.current;
108
+ if (!input) return;
109
+ if (isRequired) input.setAttribute("aria-required", "true");
110
+ else input.removeAttribute("aria-required");
111
+ if (isInvalid) input.setAttribute("aria-invalid", "true");
112
+ else input.removeAttribute("aria-invalid");
113
+ }, [isRequired, isInvalid]);
99
114
  const formFieldErrorProps = {
115
+ id: accessibility.errorMessageId,
100
116
  error,
101
- isDisabled: resolvedIsDisabled
117
+ isDisabled
102
118
  };
103
119
  const handleChange = (isSelected) => {
104
120
  onChange?.(isSelected);
@@ -107,12 +123,14 @@ const SwitchBase = (props) => {
107
123
  return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs($24585aa46d6ffdff$export$b5d5cf8927ab7262, {
108
124
  ...rest,
109
125
  "data-is-dirty": props.isDirty || void 0,
110
- "data-is-required": resolvedIsRequired || void 0,
111
- "aria-required": resolvedIsRequired || void 0,
112
- isDisabled: resolvedIsDisabled,
126
+ "data-is-required": isRequired || void 0,
127
+ inputRef: $a8ea2faf2ebe4d2f$re_export$mergeRefs(inputRefProp, inputRef),
128
+ "aria-describedby": accessibility.describedBy,
129
+ "aria-errormessage": rest["aria-errormessage"] ?? accessibility.errorMessageId,
130
+ isDisabled,
113
131
  onChange: handleChange,
114
132
  onBlur,
115
- className: clsx("group flex items-center gap-2 disabled:cursor-not-allowed disabled:opacity-50", !resolvedIsDisabled && "cursor-pointer", className),
133
+ className: clsx("group flex items-center gap-2 disabled:cursor-not-allowed disabled:opacity-50", !isDisabled && "cursor-pointer", className),
116
134
  children: [/* @__PURE__ */ jsx("div", { className: switchCva({
117
135
  variant,
118
136
  ...rest
@@ -129,7 +147,31 @@ const SwitchBase = (props) => {
129
147
  })]
130
148
  }), /* @__PURE__ */ jsx(FormFieldError, { ...formFieldErrorProps })] });
131
149
  };
132
- const SwitchComponent = (props) => /* @__PURE__ */ jsx(SwitchBase, { ...props });
150
+ const ControlledSwitch = (props) => {
151
+ const { field, ref, ...innerProps } = props;
152
+ return /* @__PURE__ */ jsx(FieldController, {
153
+ control: field.form,
154
+ name: field.name,
155
+ onValueChange: field.onValueChange,
156
+ onBlur: field.onBlur,
157
+ render: ({ field, fieldState: { error, isDirty } }) => /* @__PURE__ */ jsx(SwitchBase, {
158
+ ...innerProps,
159
+ fireBlurOnChange: false,
160
+ ref: $a8ea2faf2ebe4d2f$re_export$mergeRefs(ref, field.ref),
161
+ isSelected: field.value ?? false,
162
+ onChange: (value) => {
163
+ field.onChange(value);
164
+ field.onValueCommit();
165
+ },
166
+ onBlur: field.onBlur,
167
+ name: field.name,
168
+ isDirty,
169
+ isDisabled: field.disabled || props.isDisabled,
170
+ error: props.error ?? error?.message
171
+ })
172
+ });
173
+ };
174
+ const SwitchComponent = (props) => props.field ? /* @__PURE__ */ jsx(ControlledSwitch, { ...props }) : /* @__PURE__ */ jsx(SwitchBase, { ...props });
133
175
  const Switch = memo(SwitchComponent);
134
176
  //#endregion
135
- export { SwitchBase as n, Switch as t };
177
+ export { Switch as t };
@@ -0,0 +1,42 @@
1
+ import { Dt as SwitchVariantProps } from "./link.cva-D6L1c2wq.js";
2
+ import { n as Removed } from "./hints-B09_WDhL.js";
3
+ import { t as FormFieldErrorProps } from "./FormFieldError-C7yOdjzQ.js";
4
+ import { i as FieldValues } from "./form.binding-DSXB2AOD.js";
5
+ import { t as FormControlProps } from "./form.types-a2WVJDQX.js";
6
+ import { ReactNode, Ref } from "react";
7
+ import { SwitchProps } from "react-aria-components";
8
+ //#region src/components/inputs/Switch/Switch.d.ts
9
+ interface SwitchBaseProps extends Omit<FormFieldErrorProps, "isHidden">, SwitchVariantProps, Omit<SwitchProps, "className"> {
10
+ ref?: Ref<HTMLLabelElement>;
11
+ /** The label, rendered next to the switch. */
12
+ children?: ReactNode;
13
+ /** Marks the field as changed; only sets `data-is-dirty` for styling. Filled in automatically when bound with `field`. */
14
+ isDirty?: boolean;
15
+ isRequired?: boolean;
16
+ /** Marks the switch invalid without an error text; `error` sets it too. */
17
+ isInvalid?: boolean;
18
+ /** Calls `onBlur` after every change. Defaults to `UIConfig.switch.fireBlurOnChange`. */
19
+ fireBlurOnChange?: boolean;
20
+ /** @deprecated Pass the label as children. */
21
+ label?: Removed<"Pass the label as children: <Switch>Label</Switch>">;
22
+ /** @deprecated Use `isSelected`. */
23
+ checked?: Removed<"Use `isSelected`">;
24
+ /** @deprecated Use `onChange`. */
25
+ onCheckedChange?: Removed<"Use `onChange`: (isSelected: boolean) => void">;
26
+ /** @deprecated Never had an effect. */
27
+ isHidden?: Removed<"Render the switch conditionally to hide it">;
28
+ /** @deprecated Use `onChange`, or `field.onValueChange` on a bound switch. */
29
+ onValueChange?: Removed<"Use `onChange`, or `field.onValueChange` when the input is bound with `field`">;
30
+ }
31
+ /** Props for a `Switch` that owns its state through `isSelected`/`defaultSelected`/`onChange`. */
32
+ type StandaloneSwitchProps = SwitchBaseProps & {
33
+ field?: never;
34
+ };
35
+ /** Props for a `Switch` bound to a form field; the form owns the value, change, and blur handling. */
36
+ type ControlledSwitchProps<TFieldValues extends FieldValues = FieldValues> = FormControlProps<StandaloneSwitchProps, TFieldValues, "isSelected", "a boolean">;
37
+ /** Props for `Switch`: either its own value props, or `field={{ form, name }}` to bind a form field. */
38
+ type SwitchProps$1<TFieldValues extends FieldValues = FieldValues> = StandaloneSwitchProps | ControlledSwitchProps<TFieldValues>;
39
+ declare const SwitchComponent: <TFieldValues extends FieldValues = FieldValues>(props: SwitchProps$1<TFieldValues>) => import("react").JSX.Element;
40
+ declare const Switch: typeof SwitchComponent;
41
+ //#endregion
42
+ export { SwitchProps$1 as i, StandaloneSwitchProps as n, Switch as r, ControlledSwitchProps as t };
@@ -2,9 +2,9 @@ import { t as clsx } from "./clsx-CnD0nOiA.js";
2
2
  import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
3
3
  import { t as $792f28e438b9ad5f$export$758399f318e6385a } from "./SharedElementTransition-CZ2bE7yo.js";
4
4
  import { t as $91fe5e721c7f36c1$export$17f80983afe4e444 } from "./SelectionIndicator-C3hniBa2.js";
5
+ import "./i18n-DQs7jPjv.js";
5
6
  import { n as uiOutlineClass } from "./outline.clsx-DGGQQRkM.js";
6
- import { t as Button } from "./Button-BaODzvZd.js";
7
- import "./i18n-D8vXIoiq.js";
7
+ import { t as Button } from "./Button-CzEs3tcV.js";
8
8
  import { Link } from "./components/link.js";
9
9
  import { Badge } from "./components/badge.js";
10
10
  import { c } from "react/compiler-runtime";
@@ -29,21 +29,29 @@ const listTabIndicatorDefinition = UIOverrides.defineConfig({ base: ["absolute i
29
29
  //#endregion
30
30
  //#region src/components/navigation/TabsFilters/TabsFilters.tsx
31
31
  const ListTabs = (t0) => {
32
- const $ = c(17);
33
- const { items, activeId, label: t1, className } = t0;
34
- const label = t1 === void 0 ? "Lists" : t1;
32
+ const $ = c(20);
33
+ const { items, activeId, label: labelProp, className } = t0;
34
+ const { t } = useTranslation("ui");
35
+ let t1;
36
+ if ($[0] !== labelProp || $[1] !== t) {
37
+ t1 = labelProp ?? t(_temp);
38
+ $[0] = labelProp;
39
+ $[1] = t;
40
+ $[2] = t1;
41
+ } else t1 = $[2];
42
+ const label = t1;
35
43
  const listTabCva = UIOverrides.useCva("tabsFilters.tabCva", listTabDefinition);
36
44
  const listTabIndicatorCva = UIOverrides.useCva("tabsFilters.indicatorCva", listTabIndicatorDefinition);
37
45
  let t2;
38
- if ($[0] !== className) {
46
+ if ($[3] !== className) {
39
47
  t2 = clsx("flex gap-4", className);
40
- $[0] = className;
41
- $[1] = t2;
42
- } else t2 = $[1];
48
+ $[3] = className;
49
+ $[4] = t2;
50
+ } else t2 = $[4];
43
51
  let t3;
44
- if ($[2] !== activeId || $[3] !== items || $[4] !== listTabCva || $[5] !== listTabIndicatorCva) {
52
+ if ($[5] !== activeId || $[6] !== items || $[7] !== listTabCva || $[8] !== listTabIndicatorCva) {
45
53
  let t4;
46
- if ($[7] !== activeId || $[8] !== listTabCva || $[9] !== listTabIndicatorCva) {
54
+ if ($[10] !== activeId || $[11] !== listTabCva || $[12] !== listTabIndicatorCva) {
47
55
  t4 = (tab) => {
48
56
  const isActive = tab.id === activeId;
49
57
  return /* @__PURE__ */ jsxs(Link, {
@@ -64,36 +72,36 @@ const ListTabs = (t0) => {
64
72
  ]
65
73
  }, tab.id);
66
74
  };
67
- $[7] = activeId;
68
- $[8] = listTabCva;
69
- $[9] = listTabIndicatorCva;
70
- $[10] = t4;
71
- } else t4 = $[10];
75
+ $[10] = activeId;
76
+ $[11] = listTabCva;
77
+ $[12] = listTabIndicatorCva;
78
+ $[13] = t4;
79
+ } else t4 = $[13];
72
80
  t3 = items.map(t4);
73
- $[2] = activeId;
74
- $[3] = items;
75
- $[4] = listTabCva;
76
- $[5] = listTabIndicatorCva;
77
- $[6] = t3;
78
- } else t3 = $[6];
81
+ $[5] = activeId;
82
+ $[6] = items;
83
+ $[7] = listTabCva;
84
+ $[8] = listTabIndicatorCva;
85
+ $[9] = t3;
86
+ } else t3 = $[9];
79
87
  let t4;
80
- if ($[11] !== t3) {
88
+ if ($[14] !== t3) {
81
89
  t4 = /* @__PURE__ */ jsx($792f28e438b9ad5f$export$758399f318e6385a, { children: t3 });
82
- $[11] = t3;
83
- $[12] = t4;
84
- } else t4 = $[12];
90
+ $[14] = t3;
91
+ $[15] = t4;
92
+ } else t4 = $[15];
85
93
  let t5;
86
- if ($[13] !== label || $[14] !== t2 || $[15] !== t4) {
94
+ if ($[16] !== label || $[17] !== t2 || $[18] !== t4) {
87
95
  t5 = /* @__PURE__ */ jsx("nav", {
88
96
  "aria-label": label,
89
97
  className: t2,
90
98
  children: t4
91
99
  });
92
- $[13] = label;
93
- $[14] = t2;
94
- $[15] = t4;
95
- $[16] = t5;
96
- } else t5 = $[16];
100
+ $[16] = label;
101
+ $[17] = t2;
102
+ $[18] = t4;
103
+ $[19] = t5;
104
+ } else t5 = $[19];
97
105
  return t5;
98
106
  };
99
107
  const TabsFilters = (t0) => {
@@ -132,7 +140,7 @@ const TabsFilters = (t0) => {
132
140
  size: "sm",
133
141
  width: "hug",
134
142
  onPress: onClearFilters,
135
- children: t(_temp)
143
+ children: t(_temp2)
136
144
  })]
137
145
  });
138
146
  $[4] = filters;
@@ -217,6 +225,9 @@ const TabsFilters = (t0) => {
217
225
  return t8;
218
226
  };
219
227
  function _temp($) {
228
+ return $.ui.tabsFilters.lists;
229
+ }
230
+ function _temp2($) {
220
231
  return $.ui.tabsFilters.clearFilters;
221
232
  }
222
233
  //#endregion
@@ -0,0 +1,59 @@
1
+ import { n as Removed } from "./hints-B09_WDhL.js";
2
+ import { n as LinkNavigationProps } from "./Link-BdnWVYL9.js";
3
+ import { ReactNode } from "react";
4
+ //#region src/components/navigation/TabsFilters/TabsFilters.d.ts
5
+ interface ListTab {
6
+ id: string;
7
+ label: string;
8
+ /** Number shown in a badge after the label, e.g. how many rows the tab's list holds. */
9
+ count?: number;
10
+ /** Where the tab goes: `{ href }`, or the app router's link props (`{ to, search }`). */
11
+ link: LinkNavigationProps;
12
+ /** @deprecated Use `link: { href }`. */
13
+ href?: Removed<"Use `link: { href }`">;
14
+ /** @deprecated Tabs are links. For tabs held in state use `ToggleGroup`. */
15
+ onPress?: Removed<"Tabs are links: use `link`. For tabs held in state use `ToggleGroup`">;
16
+ }
17
+ /**
18
+ * Navigation tabs: each tab is a link to its own URL and the route decides which one is active.
19
+ * It holds no selection state. For in-page tabs driven by state use `ToggleGroup`.
20
+ */
21
+ interface ListTabsProps {
22
+ /** The tabs as `{ id, label, link, count? }`. */
23
+ items: ListTab[];
24
+ /** `id` of the tab for the current route, marked with `aria-current="page"`. Derive it from the URL. */
25
+ activeId: string;
26
+ /** Accessible name of the `<nav>` landmark. Defaults to "Lists". */
27
+ label?: string;
28
+ className?: string;
29
+ /** @deprecated `ListTabs` is navigation: each tab is a link. For tabs held in state use `ToggleGroup`. */
30
+ onChange?: Removed<"`ListTabs` tabs are links; set `activeId` from the route. For tabs held in state use `ToggleGroup`">;
31
+ /** @deprecated `ListTabs` is navigation: each tab is a link. For tabs held in state use `ToggleGroup`. */
32
+ onSelectionChange?: Removed<"`ListTabs` tabs are links; set `activeId` from the route. For tabs held in state use `ToggleGroup`">;
33
+ }
34
+ declare const ListTabs: ({ items, activeId, label: labelProp, className }: ListTabsProps) => import("react").JSX.Element;
35
+ type TabsFiltersPlacement = "below" | "beside";
36
+ /**
37
+ * The toolbar above a list page: a tab row plus search, filters, a view switcher and the page's main action.
38
+ * It only lays the slots out; each control keeps its own state.
39
+ */
40
+ interface TabsFiltersProps {
41
+ /** The tab row: `ListTabs` when each tab is its own route, `ToggleGroup` when the tab is held in state. */
42
+ tabs: ReactNode;
43
+ /** Where the filter row sits: `below` the tabs (default) or `beside` them on wide containers. */
44
+ placement?: TabsFiltersPlacement;
45
+ /** Search field, given a fixed width. Use an `Input` with `layout="filter"` and `size="sm"`. */
46
+ search?: ReactNode;
47
+ /** Filter controls, each with `layout="filter"` and `size="sm"`. Pass several in a fragment. */
48
+ filters?: ReactNode;
49
+ /** Control that switches the list's presentation (table, grid…), usually a `ToggleGroup`. */
50
+ viewSwitcher?: ReactNode;
51
+ /** The page's main action, e.g. a "Create" button, aligned to the end. */
52
+ primaryAction?: ReactNode;
53
+ /** Shows a "Clear filters" button after the filters. Pass it only while a filter is set. */
54
+ onClearFilters?: () => void;
55
+ className?: string;
56
+ }
57
+ declare const TabsFilters: ({ tabs, placement, search, filters, viewSwitcher, primaryAction, onClearFilters, className }: TabsFiltersProps) => import("react").JSX.Element;
58
+ //#endregion
59
+ export { TabsFiltersPlacement as a, TabsFilters as i, ListTabs as n, TabsFiltersProps as o, ListTabsProps as r, ListTab as t };
@@ -0,0 +1,26 @@
1
+ import { o as TagVariantProps } from "./link.cva-D6L1c2wq.js";
2
+ import { n as Removed } from "./hints-B09_WDhL.js";
3
+ import { n as TypographyProps } from "./Typography-Cx1oRGxd.js";
4
+ import { Ref } from "react";
5
+ import { ButtonProps } from "react-aria-components";
6
+ //#region src/components/text/Tag/Tag.d.ts
7
+ interface TagProps extends TagVariantProps {
8
+ className?: string;
9
+ children: string;
10
+ isDisabled?: boolean;
11
+ contentRef?: Ref<HTMLElement>;
12
+ /** Defaults to `UIConfig.tag.textSize`. */
13
+ textSize?: TypographyProps["size"];
14
+ /** Makes the tag removable: renders a remove button that calls this handler. */
15
+ onRemove?: () => void;
16
+ /** Props applied to the remove button, when one is rendered. Its default name is "Remove <children>"; an `aria-label` replaces it. */
17
+ removeButtonProps?: Omit<ButtonProps, "children" | "onPress">;
18
+ excludeFromTabOrder?: boolean;
19
+ /** @deprecated Use `onRemove`. */
20
+ onDismiss?: Removed<"Use `onRemove` instead of `onDismiss`">;
21
+ /** @deprecated Pass `onRemove`. */
22
+ dismissible?: Removed<"Pass `onRemove`; it alone renders the remove button">;
23
+ }
24
+ declare const Tag: ({ className, children, isDisabled, onRemove, removeButtonProps, excludeFromTabOrder, contentRef, textSize: textSizeProp, ...appearanceProps }: TagProps) => import("react").JSX.Element;
25
+ //#endregion
26
+ export { TagProps as n, Tag as t };
@@ -0,0 +1,33 @@
1
+ import { an as InputVariantProps } from "./link.cva-D6L1c2wq.js";
2
+ import { n as Removed } from "./hints-B09_WDhL.js";
3
+ import { r as FormFieldProps } from "./FormField-XQbjfGSv.js";
4
+ import { i as FieldValues } from "./form.binding-DSXB2AOD.js";
5
+ import { n as UnsupportedAriaFieldProps, t as FormControlProps } from "./form.types-a2WVJDQX.js";
6
+ import { Ref } from "react";
7
+ import { TextAreaProps } from "react-aria-components";
8
+ import { AriaTextFieldProps } from "@react-aria/textfield";
9
+ //#region src/components/inputs/Input/TextArea/TextArea.d.ts
10
+ interface TextAreaBaseProps extends FormFieldProps, InputVariantProps, Pick<TextAreaProps, "rows" | "cols" | "wrap">, Omit<AriaTextFieldProps<HTMLTextAreaElement>, "label" | "type" | UnsupportedAriaFieldProps> {
11
+ ref?: Ref<HTMLTextAreaElement>;
12
+ /** Shows a clear button while the field has a value. Defaults to `UIConfig.input.isClearable`. */
13
+ isClearable?: boolean;
14
+ isClearableIfDisabled?: boolean;
15
+ /** Marks the field as changed; only sets `data-is-dirty` for styling. Filled in automatically when bound with `field`. */
16
+ isDirty?: boolean;
17
+ inputClassName?: string;
18
+ /** @deprecated The field forwards no click handler. */
19
+ onClick?: Removed<"TextArea takes no `onClick`: use `onFocus`">;
20
+ /** @deprecated Use `className`. */
21
+ style?: Removed<"Use `className` (field root) or `inputClassName` (the textarea); set the height with `rows`">;
22
+ }
23
+ interface StandaloneTextAreaProps extends TextAreaBaseProps {
24
+ field?: never;
25
+ }
26
+ /** Props for a `TextArea` bound to a form field; the form owns the value, change, and blur handling. */
27
+ type ControlledTextAreaProps<TFieldValues extends FieldValues = FieldValues> = FormControlProps<StandaloneTextAreaProps, TFieldValues, "value", "a string">;
28
+ /** Props for `TextArea`: either its own value props, or `field={{ form, name }}` to bind a form field. */
29
+ type TextAreaProps$1<TFieldValues extends FieldValues = FieldValues> = StandaloneTextAreaProps | ControlledTextAreaProps<TFieldValues>;
30
+ declare const TextAreaComponent: <TFieldValues extends FieldValues = FieldValues>(props: TextAreaProps$1<TFieldValues>) => import("react").JSX.Element;
31
+ declare const TextArea: typeof TextAreaComponent;
32
+ //#endregion
33
+ export { TextAreaProps$1 as i, StandaloneTextAreaProps as n, TextArea as r, ControlledTextAreaProps as t };
@@ -1,12 +1,15 @@
1
1
  import { t as clsx } from "./clsx-CnD0nOiA.js";
2
2
  import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
3
3
  import { n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e } from "./utils-BkLF-JA3.js";
4
- import { t as UIConfig } from "./uiConfig.context-3DN9w6oU.js";
4
+ import { t as UIConfig } from "./uiConfig.context-CjnLnQOo.js";
5
+ import { n as FieldController } from "./form.binding-Brdjq2yr.js";
6
+ import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js";
5
7
  import { t as useFieldAccessibility } from "./useFieldAccessibility-eZIMECmG.js";
6
- import { n as FormFieldLabel, t as FormField } from "./FormField-dduTMkNH.js";
7
- import { a as inputSizeDefinition, i as inputSideDefinition, o as useInputCva } from "./input.cva-DZii82eS.js";
8
- import { t as resolveInputLayout } from "./inputLayout-KdAtunGk.js";
9
- import { n as InputClear, t as TooltipWrapper } from "./TooltipWrapper-BSY31JMc.js";
8
+ import { n as FormFieldLabel, t as FormField } from "./FormField-TI8Vx5aC.js";
9
+ import { a as inputSizeDefinition, i as inputSideDefinition, o as useInputCva } from "./input.cva-mm1dnfKP.js";
10
+ import { n as resolveInputLayout, t as isFieldHeaderHiddenByLayout } from "./inputLayout-CIVpuUBq.js";
11
+ import { n as InputClear, t as TooltipWrapper } from "./TooltipWrapper-ubbBHHVD.js";
12
+ import { t as useAutoFocus } from "./useAutoFocus-K-bfNxa2.js";
10
13
  import { t as textAreaWrapperDefinition } from "./TextArea.cva-ENXI55ec.js";
11
14
  import $ahdqC$react, { createContext, forwardRef, memo, useRef, useState } from "react";
12
15
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -58,21 +61,22 @@ const TextAreaBase = (props) => {
58
61
  const inputSizeCva = UIOverrides.useCva("input.sizeCva", inputSizeDefinition);
59
62
  const inputSideCva = UIOverrides.useCva("input.sideCva", inputSideDefinition);
60
63
  const textAreaWrapperCva = UIOverrides.useCva("textArea.wrapperCva", textAreaWrapperDefinition);
61
- const { ref, className, inputClassName, error, errorMessage, label, tooltipText, helperText, isRequired, required, rightContent, isDisabled, disabled, isDirty, headerClassName, errorClassName, isHeaderHidden, value, onChange, onBlur, as: asProp, layout: layoutProp, hideLabel: hideLabelProp, variant: variantProp, isClearable: isClearableProp, isClearableIfDisabled, ...rest } = props;
62
- const as = resolveInputLayout(layoutProp, asProp, ui.input.as);
63
- const resolvedIsDisabled = isDisabled ?? disabled;
64
- const resolvedIsRequired = isRequired ?? required;
65
- const resolvedError = errorMessage ?? error;
64
+ const { ref, className, inputClassName, error, isInvalid, label, tooltipText, helperText, isRequired, rightContent, isDisabled, isDirty, headerClassName, errorClassName, value, onChange, onBlur, layout: layoutProp, hideLabel: hideLabelProp, variant: variantProp, size: sizeProp, isClearable: isClearableProp, isClearableIfDisabled, rows, cols, wrap, ...rest } = props;
65
+ const as = resolveInputLayout(layoutProp, ui.input.layout);
66
66
  const hideLabel = hideLabelProp ?? ui.input.hideLabel;
67
67
  const variant = variantProp ?? ui.input.variant;
68
+ const size = sizeProp ?? ui.input.size;
68
69
  const isClearable = isClearableProp ?? ui.input.isClearable;
69
70
  const textFieldRef = useRef(null);
71
+ const textAreaRef = useRef(null);
72
+ useAutoFocus(textAreaRef, rest.autoFocus);
70
73
  const textFieldProps = {
71
74
  ...rest,
75
+ inputElementType: "textarea",
72
76
  label,
73
- isDisabled: resolvedIsDisabled,
74
- isInvalid: !!resolvedError,
75
- isRequired: resolvedIsRequired,
77
+ isDisabled,
78
+ isInvalid: isInvalid || !!error,
79
+ isRequired,
76
80
  value,
77
81
  onChange,
78
82
  onBlur
@@ -80,21 +84,20 @@ const TextAreaBase = (props) => {
80
84
  const { labelProps, inputProps } = useTextField(textFieldProps, textFieldRef);
81
85
  const { describedBy, errorMessageId, helperTextId } = useFieldAccessibility({
82
86
  describedBy: inputProps["aria-describedby"],
83
- error: resolvedError,
87
+ error,
84
88
  helperText
85
89
  });
86
90
  const formFieldProps = {
87
91
  errorMessageId,
88
92
  helperTextId,
89
- error: resolvedError,
93
+ error,
90
94
  label,
91
95
  tooltipText,
92
96
  helperText,
93
- isRequired: resolvedIsRequired,
97
+ isRequired,
94
98
  rightContent,
95
- isHeaderHidden: isHeaderHidden || as === "inline" || as === "filter" || as === "floating",
96
- hideLabel,
97
- isDisabled: resolvedIsDisabled,
99
+ hideLabel: hideLabel || isFieldHeaderHiddenByLayout(as),
100
+ isDisabled,
98
101
  headerClassName,
99
102
  errorClassName
100
103
  };
@@ -102,21 +105,21 @@ const TextAreaBase = (props) => {
102
105
  label,
103
106
  tooltipText,
104
107
  helperText,
105
- isRequired: resolvedIsRequired,
108
+ isRequired,
106
109
  rightContent,
107
- isHeaderHidden: hideLabel || isHeaderHidden,
108
- isDisabled: resolvedIsDisabled,
110
+ isHeaderHidden: hideLabel,
111
+ isDisabled,
109
112
  className: headerClassName,
110
113
  labelProps
111
114
  };
112
- const showClear = isClearable && value != null && value !== "" && (!resolvedIsDisabled || isClearableIfDisabled === true);
115
+ const showClear = isClearable && value != null && value !== "" && (!isDisabled || isClearableIfDisabled === true);
113
116
  return /* @__PURE__ */ jsx(TooltipWrapper, {
114
117
  as,
115
- error: resolvedError,
118
+ error,
116
119
  triggerTabIndex: as === "inline" ? -1 : void 0,
117
120
  children: /* @__PURE__ */ jsx(FormField, {
118
121
  ...formFieldProps,
119
- as,
122
+ layout: as,
120
123
  labelProps,
121
124
  className: clsx("group w-full flex flex-col", className),
122
125
  tabIndex: as === "inline" ? -1 : void 0,
@@ -128,28 +131,32 @@ const TextAreaBase = (props) => {
128
131
  as,
129
132
  ...headerProps,
130
133
  className: clsx(headerProps.className, inputSideCva({
131
- size: rest.size,
134
+ size,
132
135
  type: "left"
133
136
  }))
134
137
  }),
135
138
  /* @__PURE__ */ jsx($bd263d78e9bf3c56$export$f5c9f3c2c4054eec, {
136
139
  ...inputProps,
140
+ rows,
141
+ cols,
142
+ wrap,
137
143
  "aria-describedby": describedBy,
138
144
  "aria-errormessage": errorMessageId,
139
145
  "data-is-dirty": isDirty || void 0,
140
- "data-is-required": resolvedIsRequired || void 0,
146
+ "data-is-required": isRequired || void 0,
141
147
  "data-is-empty": value?.trim() === "" || value === null || value === void 0 || void 0,
142
148
  placeholder: as === "floating" ? "" : inputProps.placeholder,
143
149
  className: inputCva({
150
+ ...rest,
144
151
  variant,
152
+ size,
145
153
  as,
146
- ...rest,
147
154
  className: clsx("block h-full min-h-8", as !== "inline" && "[textarea&]:rounded-[min(var(--radius-input-rounding-default),1rem)]", inputClassName)
148
155
  }),
149
- ref
156
+ ref: $a8ea2faf2ebe4d2f$re_export$mergeRefs(ref, textAreaRef)
150
157
  }),
151
158
  showClear && /* @__PURE__ */ jsx("span", {
152
- className: clsx("absolute top-0 right-0", inputSizeCva({ size: rest.size })),
159
+ className: clsx("absolute top-0 right-0", inputSizeCva({ size })),
153
160
  children: /* @__PURE__ */ jsx(InputClear, {
154
161
  onClear: () => {
155
162
  onChange?.("");
@@ -163,7 +170,7 @@ const TextAreaBase = (props) => {
163
170
  })
164
171
  });
165
172
  };
166
- const TextAreaComponent = ({ defaultValue, value, onChange, ...props }) => {
173
+ const StandaloneTextArea = ({ defaultValue, value, onChange, ...props }) => {
167
174
  const [internalValue, setInternalValue] = useState(defaultValue ?? "");
168
175
  return /* @__PURE__ */ jsx(TextAreaBase, {
169
176
  ...props,
@@ -174,6 +181,26 @@ const TextAreaComponent = ({ defaultValue, value, onChange, ...props }) => {
174
181
  }
175
182
  });
176
183
  };
184
+ const ControlledTextArea = (props) => {
185
+ const { field, ref, ...innerProps } = props;
186
+ return /* @__PURE__ */ jsx(FieldController, {
187
+ control: field.form,
188
+ name: field.name,
189
+ onValueChange: field.onValueChange,
190
+ onBlur: field.onBlur,
191
+ render: ({ field, fieldState: { error, isDirty } }) => /* @__PURE__ */ jsx(TextAreaBase, {
192
+ ...innerProps,
193
+ ref: $a8ea2faf2ebe4d2f$re_export$mergeRefs(ref, field.ref),
194
+ value: field.value ?? "",
195
+ onChange: field.onChange,
196
+ onBlur: field.onBlur,
197
+ isDirty,
198
+ isDisabled: field.disabled || props.isDisabled,
199
+ error: props.error ?? error?.message
200
+ })
201
+ });
202
+ };
203
+ const TextAreaComponent = (props) => props.field ? /* @__PURE__ */ jsx(ControlledTextArea, { ...props }) : /* @__PURE__ */ jsx(StandaloneTextArea, { ...props });
177
204
  const TextArea = memo(TextAreaComponent);
178
205
  //#endregion
179
- export { TextAreaBase as n, TextArea as t };
206
+ export { TextArea as t };
@@ -0,0 +1,63 @@
1
+ import { an as InputVariantProps } from "./link.cva-D6L1c2wq.js";
2
+ import { n as Removed } from "./hints-B09_WDhL.js";
3
+ import { r as FormFieldProps } from "./FormField-XQbjfGSv.js";
4
+ import { i as FieldValues } from "./form.binding-DSXB2AOD.js";
5
+ import { n as UnsupportedAriaFieldProps, t as FormControlProps } from "./form.types-a2WVJDQX.js";
6
+ import { FocusEvent, Ref } from "react";
7
+ import { AriaTimeFieldProps, TimeValue } from "react-aria";
8
+ //#region src/components/inputs/DateTime/TimePicker/TimePicker.d.ts
9
+ interface TimePickerBaseProps extends FormFieldProps, InputVariantProps, Omit<AriaTimeFieldProps<TimeValue>, "label" | "onBlur" | UnsupportedAriaFieldProps> {
10
+ ref?: Ref<HTMLDivElement>;
11
+ /** Hides the picker button and popover so the value can only be typed. Ignored when manual entry is disabled. */
12
+ disableDropdown?: boolean;
13
+ /**
14
+ * Date anchor parsed as a JS Date instant, then converted to timeZone before replacing its clock fields.
15
+ * Omit/null to use today's date in that zone; the value's date is not the anchor.
16
+ * Once the editable input is mounted, changing this prop re-emits the current time with the new anchor.
17
+ */
18
+ date?: string | null;
19
+ /** Shows a clear button while the field has a value. Defaults to `UIConfig.input.isClearable`. */
20
+ isClearable?: boolean;
21
+ /** Keeps the clear button while the field is disabled. */
22
+ isClearableIfDisabled?: boolean;
23
+ /** Marks the value as changed for styling; set from the form state when bound with `field`. */
24
+ isDirty?: boolean;
25
+ /** Makes the segments read-only so the value can only be picked from the popover. Defaults to `UIConfig.dateInput.disableManualEntry`. */
26
+ disableManualEntry?: boolean;
27
+ /** Replaces the segment placeholders while the field is empty. */
28
+ placeholder?: string;
29
+ /** Classes for the bordered input box; `className` styles the field root. */
30
+ inputClassName?: string;
31
+ onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
32
+ /** Runs after the user commits a value with the popover's Apply or the clear button. */
33
+ onValueCommit?: () => void;
34
+ /** Pads hours with a leading zero. Defaults to `UIConfig.dateInput.shouldForceLeadingZeros`. */
35
+ shouldForceLeadingZeros?: boolean;
36
+ }
37
+ interface StandaloneTimePickerProps extends Omit<TimePickerBaseProps, "value" | "onChange" | "defaultValue" | "minValue" | "maxValue" | "onValueCommit" | "name"> {
38
+ field?: never;
39
+ /** @deprecated The date and time pickers are not submitted through native `FormData`. */
40
+ name?: Removed<"The date and time pickers are not submitted with native FormData: bind them with field={{ form, name }}">;
41
+ /** Initial ISO timestamp with Z or an explicit offset; used only when value is undefined. */
42
+ defaultValue?: string | null;
43
+ /** Controlled ISO timestamp; only its clock fields in timeZone are displayed. Null clears the field. */
44
+ value?: string | null;
45
+ /** Emits the edited time on the date anchor as a UTC ISO timestamp (YYYY-MM-DDTHH:mm:ss.sssZ), or null. */
46
+ onChange?: (value: string | null) => void;
47
+ /** Display/edit and anchor zone; defaults to UIConfig.dateInput.timeZone (clientLocal uses the browser zone). */
48
+ timeZone?: string;
49
+ /** Earliest allowed time: a `TimeValue`, `HH:mm` or `HH:mm:ss`, or an ISO timestamp whose clock time in timeZone is used. */
50
+ minValue?: TimeValue | string;
51
+ /** Latest allowed time: a `TimeValue`, `HH:mm` or `HH:mm:ss`, or an ISO timestamp whose clock time in timeZone is used. */
52
+ maxValue?: TimeValue | string;
53
+ /** Renders a lightweight static field until first interaction. Defaults to `UIConfig.renderStaticInput`. */
54
+ renderStaticInput?: boolean;
55
+ }
56
+ /** Props for a `TimePicker` bound to a form field; the form owns the value, change, and blur handling. */
57
+ type ControlledTimePickerProps<TFieldValues extends FieldValues = FieldValues> = FormControlProps<StandaloneTimePickerProps, TFieldValues, "value", "an ISO date-time string">;
58
+ /** Props for `TimePicker`: either its own value props, or `field={{ form, name }}` to bind a form field. */
59
+ type TimePickerProps<TFieldValues extends FieldValues = FieldValues> = StandaloneTimePickerProps | ControlledTimePickerProps<TFieldValues>;
60
+ declare const TimePickerComponent: <TFieldValues extends FieldValues = FieldValues>(props: TimePickerProps<TFieldValues>) => import("react").JSX.Element;
61
+ declare const TimePicker: typeof TimePickerComponent;
62
+ //#endregion
63
+ export { TimePickerProps as i, StandaloneTimePickerProps as n, TimePicker as r, ControlledTimePickerProps as t };