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

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 (291) hide show
  1. package/README.md +55 -1
  2. package/dist/{Accordion-gUW7u1Zn.js → Accordion-BNHpv7Zj.js} +3 -3
  3. package/dist/{Alert-DwnALnFY.d.ts → Alert-xHGPLUpt.d.ts} +1 -1
  4. package/dist/{AlertDialog-BcRiqY_n.d.ts → AlertDialog-CKcUZ6l9.d.ts} +3 -3
  5. package/dist/{Autocomplete-DRwQxx0U.d.ts → Autocomplete-CkWTSFoj.d.ts} +1 -1
  6. package/dist/{Autocomplete-CV4Aa1Ok.js → Autocomplete-CrNDRxvg.js} +10 -10
  7. package/dist/{Badge-CO-ZsmbR.d.ts → Badge-B25YEMEw.d.ts} +3 -3
  8. package/dist/{BottomSheet-Be0HtQzP.d.ts → BottomSheet-CtcPZG82.d.ts} +1 -1
  9. package/dist/{BottomSheet-APVu5TUd.js → BottomSheet-tUXH3NjS.js} +4 -4
  10. package/dist/{BottomSheet.lazy-NNB7ivkW.d.ts → BottomSheet.lazy-DuwAJSaI.d.ts} +1 -1
  11. package/dist/{Breadcrumbs-Bn3fqVYx.d.ts → Breadcrumbs-BrtRh_dX.d.ts} +1 -1
  12. package/dist/{Breadcrumbs-Cd75RPbS.js → Breadcrumbs-D8WXqOLN.js} +8 -8
  13. package/dist/{Button-CzEs3tcV.js → Button-C1Jv1Plk.js} +1 -1
  14. package/dist/{Button-Hk8zm9q_.d.ts → Button-DDuk3hJ3.d.ts} +1 -1
  15. package/dist/{Button-BJJkLVNj.js → Button-DF6sbTuF.js} +3 -3
  16. package/dist/{ButtonBase-aGz6DYum.js → ButtonBase-BYJz1JkH.js} +4 -4
  17. package/dist/{ButtonBase-Cp1w00t2.d.ts → ButtonBase-Bn_FT89h.d.ts} +3 -3
  18. package/dist/{Calendar-DN-i_b-_.js → Calendar-DdneUEhM.js} +58 -24
  19. package/dist/{Calendar.lazy-CqmyDSND.js → Calendar.lazy-BY0kLoYH.js} +6 -6
  20. package/dist/{Checkbox-D32MOIhF.d.ts → Checkbox-Bwl6MA-V.d.ts} +1 -1
  21. package/dist/{Checkbox-CzKXZw_w.js → Checkbox-E2bns_n0.js} +7 -7
  22. package/dist/{CheckboxCheckmark-DDU_Ie7-.js → CheckboxCheckmark-Beu8T1g9.js} +2 -2
  23. package/dist/{CheckboxGroup-B5Mn1G3u.d.ts → CheckboxGroup-0rzsn-bA.d.ts} +2 -2
  24. package/dist/{CheckboxGroup-BqWt09kZ.js → CheckboxGroup-C7epIEpW.js} +3 -3
  25. package/dist/ColumnConfigContent-LNq-6Brf.js +1025 -0
  26. package/dist/ColumnListContent-Dzze5R7T.js +133 -0
  27. package/dist/{DatePicker-CmoVbapu.d.ts → DatePicker-B70SCKfT.d.ts} +3 -3
  28. package/dist/{DatePicker-DQewd1By.js → DatePicker-BU-34fCk.js} +44 -12
  29. package/dist/{DatePickerInput-B9VnExeA.d.ts → DatePickerInput-BCuz08Ws.d.ts} +3 -3
  30. package/dist/{DatePickerInput-Bp9ZIN5E.js → DatePickerInput-CMEJmZSQ.js} +10 -10
  31. package/dist/{DateRangePicker-DRZ1hLlR.js → DateRangePicker-D0RtqeBM.js} +13 -13
  32. package/dist/{DateRangePicker-LX1VJlnD.d.ts → DateRangePicker-jovxcWGk.d.ts} +4 -4
  33. package/dist/{DateTimePicker-DWtKPaE6.js → DateTimePicker-Cbdt76CL.js} +30 -11
  34. package/dist/{DateTimePicker-D9pODhAj.d.ts → DateTimePicker-Cfi3ruFy.d.ts} +3 -3
  35. package/dist/{Dialog-D0SeePPz.d.ts → Dialog-BWNQjIgo.d.ts} +1 -1
  36. package/dist/{Dialog-BJ13KRQo.js → Dialog-Bpwr1nuy.js} +15 -15
  37. package/dist/{Dialog-BzQYDPJ9.js → Dialog-ebjPH22i.js} +3 -3
  38. package/dist/{Disclosure-Bjm5IOpg.js → Disclosure-D_aym2zh.js} +3 -3
  39. package/dist/{DropdownMenu-DTr7b-XO.d.ts → DropdownMenu-3V-G7fZ7.d.ts} +2 -2
  40. package/dist/{DropdownMenu-DrshB60h.js → DropdownMenu-C4WitobV.js} +4 -4
  41. package/dist/{DropdownMenuDesktop-DxGA0yvx.js → DropdownMenuDesktop-BM7659Sk.js} +1 -1
  42. package/dist/{FileInput-LMhFxlqB.js → FileInput-Bc_E1M1X.js} +5 -5
  43. package/dist/{FileInput-Bokcp9nH.d.ts → FileInput-CWRW7OzZ.d.ts} +2 -2
  44. package/dist/{FileTrigger-DlryDp2T.js → FileTrigger-tGSUFrb2.js} +6 -6
  45. package/dist/{FileUpload-BqXd4_nz.d.ts → FileUpload-DVnp9xxv.d.ts} +2 -2
  46. package/dist/{FileUpload-CJZrkr_U.js → FileUpload-Dk6ZmgWF.js} +501 -75
  47. package/dist/{Form-CqF1SaVw.js → Form-4jZarkjk.js} +2 -2
  48. package/dist/{FormField-XQbjfGSv.d.ts → FormField-BgiWLGjf.d.ts} +1 -1
  49. package/dist/{FormField-TI8Vx5aC.js → FormField-DOZ7eXjA.js} +2 -2
  50. package/dist/{FormFieldHeaderTooltip-DB7KrrcD.js → FormFieldHeaderTooltip-DW9sqJWl.js} +3 -3
  51. package/dist/{Heading-D4XFYv__.js → Heading-B9G3z6Es.js} +2 -2
  52. package/dist/{IconButton-CQLHX8-Y.d.ts → IconButton-Bjjf5cQL.d.ts} +1 -1
  53. package/dist/{InlineTooltipWrapper-CjDUsi2I.js → InlineTooltipWrapper-CcdpMJa6.js} +1 -1
  54. package/dist/{Input-BG0Xjw5X.js → Input-BkR3jkvt.js} +2 -2
  55. package/dist/{Input-CeRJeAoR.js → Input-CvYyjMWx.js} +5 -5
  56. package/dist/{Input-onUj0DKg.d.ts → Input-lppNS8wM.d.ts} +3 -3
  57. package/dist/{InputContent-B8OCdbVP.js → InputContent-B5YjsLDE.js} +2 -2
  58. package/dist/{InputContent-D5ZkB9hO.d.ts → InputContent-Bgalf6R1.d.ts} +2 -2
  59. package/dist/{Label-BGvF9vWx.js → Label-VTcaaLO8.js} +2 -2
  60. package/dist/{Link-Chux-Clm.js → Link-8zP_NC_c.js} +2 -2
  61. package/dist/{Link-BdnWVYL9.d.ts → Link-HJ4y-xiW.d.ts} +1 -1
  62. package/dist/{ListBox-gR4iSV7N.js → ListBox-Ck-B1Jae.js} +7 -7
  63. package/dist/{Modal-DAMsCwzb.js → Modal-xT-Wz5GH.js} +3 -3
  64. package/dist/{NumberField-6Q9LHGSo.js → NumberField-BXLzNb2T.js} +6 -6
  65. package/dist/{NumberField-Sb30Qao3.d.ts → NumberField-Q-4y3jpb.d.ts} +3 -3
  66. package/dist/{NumberFormatter-DYarfm5F.js → NumberFormatter-D5csbNXm.js} +1 -1
  67. package/dist/{NumberRangeInput-BDSkcHVJ.js → NumberRangeInput-BBzZCC54.js} +6 -6
  68. package/dist/{NumberRangeInput-Dvq8mOUY.d.ts → NumberRangeInput-DuWOdSdU.d.ts} +2 -2
  69. package/dist/{OverlayArrow-DF0jMwul.js → OverlayArrow-BptI-A_7.js} +2 -2
  70. package/dist/{PageHeader-eJk6GNK6.d.ts → PageHeader-jVaC3Z9L.d.ts} +2 -2
  71. package/dist/{PasswordInput-VHzP4VPU.d.ts → PasswordInput-DtTnGHRD.d.ts} +1 -1
  72. package/dist/{PasswordInput-BcHpV0Ie.js → PasswordInput-U0QhNsMp.js} +2 -2
  73. package/dist/{Popover-qplPGDnR.d.ts → Popover-ClCEOP3e.d.ts} +2 -2
  74. package/dist/{Progress-WzWvbvtp.js → Progress-DlXY0dv_.js} +1 -1
  75. package/dist/{Progress-DH-w99MU.d.ts → Progress-VkkXbIh7.d.ts} +1 -1
  76. package/dist/{ProgressBar-BsSimmJF.js → ProgressBar-mpNpV7ow.js} +3 -3
  77. package/dist/{RadioGroup-PKqFHoKP.js → RadioGroup-BPPJyA1s.js} +8 -8
  78. package/dist/{RadioGroup-CC8bKtBN.d.ts → RadioGroup-BbcrP56w.d.ts} +2 -2
  79. package/dist/{RangeCalendar-DqCTlIuy.js → RangeCalendar-DIVjIl0T.js} +4 -4
  80. package/dist/{Select-CSyfDyxG.d.ts → Select-D1qIWZCv.d.ts} +3 -3
  81. package/dist/{Select-D3fuXwVt.js → Select-DlbVDCz8.js} +36 -26
  82. package/dist/{SelectListBox-DqAxkT1f.js → SelectListBox-CCr5YY86.js} +15 -12
  83. package/dist/{SelectionIndicator-C3hniBa2.js → SelectionIndicator-CvuKjZRP.js} +3 -3
  84. package/dist/{SharedElementTransition-CZ2bE7yo.js → SharedElementTransition-BkyYit3Q.js} +2 -2
  85. package/dist/{SidebarWorkspaces-BGl_PIsH.js → SidebarWorkspaces-CIpFJGOa.js} +10 -10
  86. package/dist/{SidebarWorkspaces-CdtK2M-C.d.ts → SidebarWorkspaces-DcwA_jv7.d.ts} +3 -3
  87. package/dist/{Slider-DxalZD3o.d.ts → Slider-CLViwkE1.d.ts} +1 -1
  88. package/dist/{Slider-BCUiALjE.js → Slider-_RsgBJcg.js} +5 -5
  89. package/dist/{Spinner-BTrEbNFy.d.ts → Spinner-GMEauCHv.d.ts} +1 -1
  90. package/dist/{SplitButton-Dv5l8p5t.d.ts → SplitButton-BdP4xjFQ.d.ts} +3 -3
  91. package/dist/{Stepper-DA2G546I.js → Stepper-D4z7JNsD.js} +2 -2
  92. package/dist/{Stepper-B1IOUcSI.d.ts → Stepper-DBb0qfla.d.ts} +1 -1
  93. package/dist/{Switch-Ce-bJOVw.js → Switch-Bi3_bUw1.js} +3 -3
  94. package/dist/{Switch-urNrop0P.d.ts → Switch-DCxONL2Q.d.ts} +1 -1
  95. package/dist/TableDnd-CG1yOlxh.js +238 -0
  96. package/dist/TableDragHandle-CXApnuUm.js +51 -0
  97. package/dist/{TabsFilters-Cweij8He.js → TabsFilters-BPogry73.js} +4 -4
  98. package/dist/{TabsFilters-M5Ld7eb8.d.ts → TabsFilters-CPfGBODw.d.ts} +1 -1
  99. package/dist/{Tag-BKR1AZFa.d.ts → Tag-xhcJOv_X.d.ts} +2 -2
  100. package/dist/{Text-D72yc4S6.js → Text-D7Nqkw1l.js} +1 -1
  101. package/dist/{TextArea-D7YVclaz.d.ts → TextArea-BYX9Kk_v.d.ts} +2 -2
  102. package/dist/{TextArea-P8F0oD_A.js → TextArea-CuJS3-Nv.js} +6 -6
  103. package/dist/{TimePicker-l4Ysk2AX.js → TimePicker-ByfjqkLp.js} +28 -13
  104. package/dist/{TimePicker-Ai1M2TGW.d.ts → TimePicker-UTo9C6gz.d.ts} +3 -2
  105. package/dist/TimePickerForm-CaIHR0PV.js +532 -0
  106. package/dist/{ToastContainer-BeklfvlK.js → ToastContainer-tr7Zxahc.js} +4 -4
  107. package/dist/{ToggleButton-DWw53pTt.d.ts → ToggleButton-BX8o7ECO.d.ts} +1 -1
  108. package/dist/{ToggleButton-P1z1pxzT.js → ToggleButton-D8BT67FO.js} +5 -5
  109. package/dist/{ToggleGroup-BdIgqoqA.js → ToggleGroup-18c-FZ_r.js} +5 -5
  110. package/dist/{ToggleGroup-BQk3k0at.d.ts → ToggleGroup-UazUtgU1.d.ts} +2 -2
  111. package/dist/{Tooltip-BkXPEBqw.js → Tooltip-Dl3sf8fq.js} +3 -3
  112. package/dist/{Tooltip-H8OB7CqY.d.ts → Tooltip-FcJ29dhq.d.ts} +1 -1
  113. package/dist/{TooltipWrapper-ubbBHHVD.js → TooltipWrapper-bvNpM6ku.js} +3 -3
  114. package/dist/{Typography-Cx1oRGxd.d.ts → Typography-auHWN282.d.ts} +1 -1
  115. package/dist/{badge.cva-BpoxNggB.js → badge.cva-C9mE8CMf.js} +3 -2
  116. package/dist/{buttonContent.cva-Dyy_RUZU.d.ts → buttonContent.cva-CeGnrjoA.d.ts} +2 -2
  117. package/dist/calendarHeader.cva-D3sXR7ox.js +23 -0
  118. package/dist/columnConfig.cva-CERwSZRN.js +29 -0
  119. package/dist/components/accordion.js +1 -1
  120. package/dist/components/alert-dialog.d.ts +1 -1
  121. package/dist/components/alert-dialog.js +3 -3
  122. package/dist/components/alert.d.ts +1 -1
  123. package/dist/components/autocomplete.d.ts +1 -1
  124. package/dist/components/autocomplete.js +1 -1
  125. package/dist/components/badge.d.ts +1 -1
  126. package/dist/components/badge.js +37 -30
  127. package/dist/components/bottom-sheet-header.d.ts +1 -1
  128. package/dist/components/bottom-sheet-header.js +23 -19
  129. package/dist/components/bottom-sheet.d.ts +2 -2
  130. package/dist/components/bottom-sheet.js +2 -2
  131. package/dist/components/breadcrumbs.d.ts +1 -1
  132. package/dist/components/breadcrumbs.js +1 -1
  133. package/dist/components/button.d.ts +2 -2
  134. package/dist/components/button.js +1 -1
  135. package/dist/components/checkbox-group.d.ts +1 -1
  136. package/dist/components/checkbox-group.js +1 -1
  137. package/dist/components/checkbox.d.ts +1 -1
  138. package/dist/components/checkbox.js +1 -1
  139. package/dist/components/date-picker.d.ts +1 -1
  140. package/dist/components/date-picker.js +1 -1
  141. package/dist/components/date-range-picker.d.ts +2 -2
  142. package/dist/components/date-range-picker.js +2 -2
  143. package/dist/components/date-range-presets.js +1 -1
  144. package/dist/components/date-time-picker.d.ts +1 -1
  145. package/dist/components/date-time-picker.js +1 -1
  146. package/dist/components/dialog.d.ts +1 -1
  147. package/dist/components/dialog.js +1 -1
  148. package/dist/components/drawer.js +2 -2
  149. package/dist/components/dropdown-menu.d.ts +1 -1
  150. package/dist/components/dropdown-menu.js +1 -1
  151. package/dist/components/file-input.d.ts +1 -1
  152. package/dist/components/file-input.js +1 -1
  153. package/dist/components/file-upload.d.ts +1 -1
  154. package/dist/components/file-upload.js +1 -1
  155. package/dist/components/form-field.d.ts +2 -2
  156. package/dist/components/form-field.js +1 -1
  157. package/dist/components/icon-button.d.ts +1 -1
  158. package/dist/components/icon-button.js +2 -2
  159. package/dist/components/input-frame.d.ts +3 -3
  160. package/dist/components/input-frame.js +5 -5
  161. package/dist/components/input.d.ts +1 -1
  162. package/dist/components/input.js +1 -1
  163. package/dist/components/link.d.ts +1 -1
  164. package/dist/components/link.js +1 -1
  165. package/dist/components/number-field.d.ts +1 -1
  166. package/dist/components/number-field.js +1 -1
  167. package/dist/components/number-range-input.d.ts +1 -1
  168. package/dist/components/number-range-input.js +1 -1
  169. package/dist/components/page-header.d.ts +1 -1
  170. package/dist/components/page-header.js +1 -1
  171. package/dist/components/password-input.d.ts +1 -1
  172. package/dist/components/password-input.js +1 -1
  173. package/dist/components/popover.d.ts +1 -1
  174. package/dist/components/popover.js +2 -2
  175. package/dist/components/progress.d.ts +1 -1
  176. package/dist/components/progress.js +1 -1
  177. package/dist/components/radio-group.d.ts +1 -1
  178. package/dist/components/radio-group.js +1 -1
  179. package/dist/components/select.d.ts +1 -1
  180. package/dist/components/select.js +1 -1
  181. package/dist/components/sidebar.d.ts +1 -1
  182. package/dist/components/sidebar.js +1 -1
  183. package/dist/components/slider.d.ts +1 -1
  184. package/dist/components/slider.js +1 -1
  185. package/dist/components/spinner.d.ts +1 -1
  186. package/dist/components/split-button.d.ts +1 -1
  187. package/dist/components/split-button.js +2 -2
  188. package/dist/components/stepper.d.ts +1 -1
  189. package/dist/components/stepper.js +1 -1
  190. package/dist/components/style-definitions.d.ts +2 -2
  191. package/dist/components/style-definitions.js +32 -5
  192. package/dist/components/switch.d.ts +1 -1
  193. package/dist/components/switch.js +1 -1
  194. package/dist/components/tabs-filters.d.ts +1 -1
  195. package/dist/components/tabs-filters.js +1 -1
  196. package/dist/components/tag.d.ts +1 -1
  197. package/dist/components/tag.js +3 -3
  198. package/dist/components/text-area.d.ts +1 -1
  199. package/dist/components/text-area.js +1 -1
  200. package/dist/components/time-picker.d.ts +1 -1
  201. package/dist/components/time-picker.js +1 -1
  202. package/dist/components/toast.d.ts +2 -2
  203. package/dist/components/toast.js +3 -3
  204. package/dist/components/toggle-button.d.ts +1 -1
  205. package/dist/components/toggle-button.js +1 -1
  206. package/dist/components/toggle-group.d.ts +1 -1
  207. package/dist/components/toggle-group.js +1 -1
  208. package/dist/components/tooltip-ellipsis.js +1 -1
  209. package/dist/components/tooltip.d.ts +1 -1
  210. package/dist/components/tooltip.js +1 -1
  211. package/dist/components/typography.d.ts +2 -2
  212. package/dist/components/use-toast.d.ts +1 -1
  213. package/dist/components/use-toast.js +1 -1
  214. package/dist/config/component-configuration.d.ts +2 -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 +2 -2
  218. package/dist/config/resources.d.ts +1 -1
  219. package/dist/config/resources.js +1 -1
  220. package/dist/config/ui-config.d.ts +2 -2
  221. package/dist/config/ui-config.js +1 -1
  222. package/dist/config/ui-overrides.d.ts +1 -1
  223. package/dist/{confirmation.context-BflM4Vxg.js → confirmation.context-C_-uADGJ.js} +1 -1
  224. package/dist/{confirmation.context-C_js9qNv.d.ts → confirmation.context-DkWyR2aT.d.ts} +1 -1
  225. package/dist/{dist-DZOoWaZz.js → dist-CP6vV22I.js} +14 -10
  226. package/dist/{dom.utils-BPooTXtC.js → dom.utils-CqejLWIQ.js} +1 -1
  227. package/dist/{fileUpload.cva-MH5ziWUe.js → fileUpload.cva-SrF6v406.js} +1 -1
  228. package/dist/form-field-C735uXsi.d.ts +1 -0
  229. package/dist/hooks/use-async-list.js +1 -1
  230. package/dist/hooks/use-breakpoint.d.ts +2 -2
  231. package/dist/hooks/use-breakpoint.js +1 -1
  232. package/dist/{i18n-DQs7jPjv.js → i18n-DaIHnR2n.js} +26 -2
  233. package/dist/{i18n-B3PeqBM7.d.ts → i18n-xXkHgzet.d.ts} +24 -0
  234. package/dist/{import-C73fI3WD.js → import-Cz8NlFqm.js} +39 -15
  235. package/dist/index.d.ts +56 -55
  236. package/dist/index.js +49 -49
  237. package/dist/{intlStrings-Cu1YN1tA.js → intlStrings-ClpdCJmU.js} +35 -35
  238. package/dist/{isEqual-LFw0W5rU.js → isEqual-BdJdNr5O.js} +1 -1
  239. package/dist/{link.context-BcBuP9ZT.d.ts → link.context-BxVK2yQ5.d.ts} +1 -1
  240. package/dist/{link.cva-D6L1c2wq.d.ts → link.cva-ZhpQz3P0.d.ts} +129 -9
  241. package/dist/{logger-CW24po62.js → logger-CqZjM-sn.js} +1 -10
  242. package/dist/rich-text-editor.d.ts +2 -2
  243. package/dist/rich-text-editor.js +14 -14
  244. package/dist/{selectItem.cva-B6vxey2R.js → selectItem.cva-DsOZSSPx.js} +2 -1
  245. package/dist/{staticDateTimeSegments-BYk1tcxs.js → staticDateTimeSegments-BgUrcqXD.js} +342 -87
  246. package/dist/styles/input.d.ts +1 -1
  247. package/dist/{table.cva-DkcsOmZG.js → table.cva-n9TO_vu1.js} +68 -17
  248. package/dist/tableCells.cva-Br0_kgRM.js +18 -0
  249. package/dist/tableColumnConfigStorage-Cciq8gVe.js +215 -0
  250. package/dist/tableVirtualStore-whSmFzTV.js +67 -0
  251. package/dist/tanstack/form.js +1 -1
  252. package/dist/tanstack/table-context.d.ts +2 -0
  253. package/dist/tanstack/table-context.js +2 -0
  254. package/dist/tanstack/table-types.d.ts +55 -0
  255. package/dist/tanstack/table.d.ts +5 -5
  256. package/dist/tanstack/table.js +3 -2
  257. package/dist/tanstack-JB8VmS9j.js +73 -0
  258. package/dist/{tanstack-bLXoUPDY.d.ts → tanstack-cQOW9-Q2.d.ts} +50 -50
  259. package/dist/tanstack-table-DdWYwCZM.d.ts +858 -0
  260. package/dist/tanstack-table-M1M26UQJ.js +5299 -0
  261. package/dist/tanstack.d.ts +56 -55
  262. package/dist/tanstack.js +49 -49
  263. package/dist/{toast.cva-C3oA7He3.js → toast.cva-DusQwZw-.js} +5 -1
  264. package/dist/{toast.runtime-BHXdSTXV.js → toast.runtime-ZN5q4T9X.js} +1 -1
  265. package/dist/{uiConfig.context-CjnLnQOo.js → uiConfig.context-NWmBJ2Hc.js} +68 -4
  266. package/dist/{uiConfig.context-CN_QgxGO.d.ts → uiConfig.context-ykH4E2js.d.ts} +1 -1
  267. package/dist/uiConfig.types-BsyPKepP.d.ts +291 -0
  268. package/dist/{uiOverrides.context-DHHzLSnq.d.ts → uiOverrides.context-C5Maic5Q.d.ts} +106 -0
  269. package/dist/{useAsyncList-CQgkDfjW.js → useAsyncList-DkIjhlce.js} +2 -2
  270. package/dist/{useBreakpoint-D-SVcBeQ.d.ts → useBreakpoint-BPrZNuNl.d.ts} +1 -1
  271. package/dist/{useBreakpoint-BrJrvp9_.js → useBreakpoint-DtYSRweq.js} +2 -2
  272. package/dist/{useControlledState-CuU1VIh1.js → useControlledState-C1-Mt2i0.js} +1 -1
  273. package/dist/{useDebounceCallback-BjePw6y4.js → useDebounceCallback-C7YKfjXW.js} +6 -0
  274. package/dist/{useFormAutosave-BN-zueci.js → useFormAutosave-BzCGqFqi.js} +2 -2
  275. package/dist/{useLiveNumberFieldState-B7qGzySj.js → useLiveNumberFieldState-npiqOvyB.js} +4 -4
  276. package/dist/{useRemoveButton-B6-IGvpY.js → useRemoveButton-zhlA1Pbc.js} +1 -1
  277. package/dist/{useResolveDateRangePreset-C_L-doA6.js → useResolveDateRangePreset-k_h_XJBG.js} +1 -1
  278. package/dist/{useScrollableListBox-C8chM7c-.js → useScrollableListBox-4pieApqz.js} +1 -1
  279. package/dist/useTableVirtualizer-sFInQiH-.d.ts +162 -0
  280. package/dist/{useToast-D2C9pROU.d.ts → useToast-BHqkSByv.d.ts} +1 -1
  281. package/dist/{useToast-DSoOiSw0.js → useToast-DgqC6Ta_.js} +2 -2
  282. package/dist/utils/logger.js +1 -1
  283. package/dist/{utils-BkLF-JA3.js → utils-Q5Oc6oX2.js} +1 -1
  284. package/llms.txt +89 -4
  285. package/package.json +13 -1
  286. package/dist/TimePickerForm-BMqNpDPT.js +0 -225
  287. package/dist/form-field-Bw7U_ZPI.d.ts +0 -1
  288. package/dist/tanstack-ABeiJISz.js +0 -10
  289. package/dist/uiConfig.types-B0sPL7nN.d.ts +0 -132
  290. package/dist/useTableColumnConfig-B9cYBKo3.js +0 -2327
  291. package/dist/useTableNav-rP1wDkhV.d.ts +0 -372
@@ -1,57 +1,451 @@
1
1
  import { t as clsx } from "./clsx-CnD0nOiA.js";
2
2
  import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
3
3
  import { t as IconSlot } from "./IconSlot-TAWTJ6iK.js";
4
- import { n as $070c0dd15dc89b58$export$3c6489d84dc98b6, t as $b325d7bd7e74496a$export$6fb4a10d2c950550 } from "./FileTrigger-DlryDp2T.js";
4
+ import { n as $070c0dd15dc89b58$export$3c6489d84dc98b6, t as $b325d7bd7e74496a$export$6fb4a10d2c950550 } from "./FileTrigger-tGSUFrb2.js";
5
5
  import { t as Typography } from "./Typography-DCLnPa3P.js";
6
- import "./i18n-DQs7jPjv.js";
7
- import { t as UIConfig } from "./uiConfig.context-CjnLnQOo.js";
8
- import { t as Button } from "./Button-CzEs3tcV.js";
6
+ import "./i18n-DaIHnR2n.js";
7
+ import { t as UIConfig } from "./uiConfig.context-NWmBJ2Hc.js";
8
+ import { t as Button } from "./Button-C1Jv1Plk.js";
9
9
  import { IconButton } from "./components/icon-button.js";
10
10
  import { n as FieldController, o as useStoreSelector, r as selectSubmissionAttempts } from "./form.binding-Brdjq2yr.js";
11
11
  import { i as $a8ea2faf2ebe4d2f$re_export$useLabels, r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js";
12
- import { t as FormField } from "./FormField-TI8Vx5aC.js";
12
+ import { t as FormField } from "./FormField-DOZ7eXjA.js";
13
13
  import { i as subscribeFormReset } from "./formReset-CnZl_yze.js";
14
14
  import { t as FileUtils } from "./file.utils-X6tkeWaz.js";
15
- import { t as Progress } from "./Progress-WzWvbvtp.js";
16
- import { t as fileUploadDropZoneDefinition } from "./fileUpload.cva-MH5ziWUe.js";
15
+ import { t as Progress } from "./Progress-DlXY0dv_.js";
16
+ import { t as fileUploadDropZoneDefinition } from "./fileUpload.cva-SrF6v406.js";
17
17
  import { memo, useCallback, useEffect, useId, useLayoutEffect, useMemo, useRef, useState } from "react";
18
18
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
19
19
  import { CheckCircle, File, Upload, X } from "lucide-react";
20
20
  import { flushSync } from "react-dom";
21
21
  import { useTranslation } from "react-i18next";
22
+ //#region src/components/inputs/File/shared/fileUploadContent.cva.ts
23
+ const content = {
24
+ empty: "",
25
+ filled: "",
26
+ loading: ""
27
+ };
28
+ const orientation = {
29
+ vertical: "",
30
+ horizontal: ""
31
+ };
32
+ const actionStyle = {
33
+ button: "",
34
+ link: ""
35
+ };
36
+ const isDisabled = {
37
+ true: "",
38
+ false: ""
39
+ };
40
+ const fileUploadContentDefinition = UIOverrides.defineConfig({
41
+ base: [""],
42
+ config: {
43
+ variants: {
44
+ content,
45
+ orientation,
46
+ actionStyle
47
+ },
48
+ compoundVariants: [
49
+ {
50
+ content: "empty",
51
+ className: "flex w-full items-center"
52
+ },
53
+ {
54
+ content: "empty",
55
+ orientation: "vertical",
56
+ className: "flex-col gap-3"
57
+ },
58
+ {
59
+ content: "empty",
60
+ orientation: "horizontal",
61
+ className: "min-h-9 flex-row justify-between gap-4"
62
+ },
63
+ {
64
+ content: "filled",
65
+ className: "flex w-full items-center"
66
+ },
67
+ {
68
+ content: "filled",
69
+ orientation: "horizontal",
70
+ className: "flex-row gap-4"
71
+ },
72
+ {
73
+ content: "filled",
74
+ orientation: "vertical",
75
+ className: "flex-col"
76
+ },
77
+ {
78
+ content: "filled",
79
+ orientation: "vertical",
80
+ actionStyle: "button",
81
+ className: "gap-4"
82
+ },
83
+ {
84
+ content: "filled",
85
+ orientation: "vertical",
86
+ actionStyle: "link",
87
+ className: "gap-1"
88
+ },
89
+ {
90
+ content: "loading",
91
+ className: "flex w-full flex-col items-center"
92
+ },
93
+ {
94
+ content: "loading",
95
+ orientation: "vertical",
96
+ className: "flex-col"
97
+ },
98
+ {
99
+ content: "loading",
100
+ orientation: "horizontal",
101
+ className: "flex-row"
102
+ },
103
+ {
104
+ content: "loading",
105
+ actionStyle: "button",
106
+ className: "gap-4"
107
+ }
108
+ ]
109
+ }
110
+ });
111
+ const fileUploadContentBodyDefinition = UIOverrides.defineConfig({
112
+ base: ["flex w-full items-center justify-between"],
113
+ config: { variants: {
114
+ orientation: {
115
+ vertical: "flex-col gap-1",
116
+ horizontal: "flex-row gap-4"
117
+ },
118
+ isDisabled: {
119
+ true: "opacity-50",
120
+ false: ""
121
+ }
122
+ } }
123
+ });
124
+ const fileUploadContentLeadDefinition = UIOverrides.defineConfig({
125
+ base: [""],
126
+ config: {
127
+ variants: {
128
+ content,
129
+ orientation,
130
+ isDisabled
131
+ },
132
+ compoundVariants: [
133
+ {
134
+ content: "empty",
135
+ className: "flex min-w-0 items-center gap-2"
136
+ },
137
+ {
138
+ content: "filled",
139
+ className: "flex min-w-0 max-w-full grow items-center gap-2"
140
+ },
141
+ {
142
+ content: ["empty", "filled"],
143
+ orientation: "vertical",
144
+ className: "flex-col"
145
+ },
146
+ {
147
+ content: ["empty", "filled"],
148
+ orientation: "horizontal",
149
+ className: "flex-row"
150
+ },
151
+ {
152
+ content: ["empty", "filled"],
153
+ isDisabled: true,
154
+ className: "opacity-50"
155
+ },
156
+ {
157
+ content: "loading",
158
+ className: "flex items-center gap-2"
159
+ },
160
+ {
161
+ content: "loading",
162
+ orientation: "vertical",
163
+ className: "w-full flex-col"
164
+ },
165
+ {
166
+ content: "loading",
167
+ orientation: "horizontal",
168
+ className: "w-1/2"
169
+ }
170
+ ]
171
+ }
172
+ });
173
+ const fileUploadContentIconDefinition = UIOverrides.defineConfig({
174
+ base: [""],
175
+ config: { variants: { content: {
176
+ empty: "text-muted-foreground",
177
+ filled: "text-muted-foreground",
178
+ loading: "text-muted-foreground"
179
+ } } }
180
+ });
181
+ const fileUploadContentTextDefinition = UIOverrides.defineConfig({
182
+ base: [""],
183
+ config: {
184
+ variants: {
185
+ content,
186
+ orientation
187
+ },
188
+ compoundVariants: [
189
+ {
190
+ content: "empty",
191
+ className: "flex min-w-0 flex-col gap-0.5"
192
+ },
193
+ {
194
+ content: "empty",
195
+ orientation: "vertical",
196
+ className: "items-center text-center"
197
+ },
198
+ {
199
+ content: "filled",
200
+ className: "flex flex-col gap-1"
201
+ },
202
+ {
203
+ content: "filled",
204
+ orientation: "vertical",
205
+ className: "max-w-full items-center"
206
+ },
207
+ {
208
+ content: "filled",
209
+ orientation: "horizontal",
210
+ className: "max-w-[calc(100%-32px)]"
211
+ },
212
+ {
213
+ content: "loading",
214
+ className: "flex flex-col"
215
+ },
216
+ {
217
+ content: "loading",
218
+ orientation: "vertical",
219
+ className: "max-w-full gap-2 text-center"
220
+ },
221
+ {
222
+ content: "loading",
223
+ orientation: "horizontal",
224
+ className: "max-w-[calc(100%-32px)] gap-1"
225
+ }
226
+ ]
227
+ }
228
+ });
229
+ const fileUploadContentTitleDefinition = UIOverrides.defineConfig({
230
+ base: [""],
231
+ config: {
232
+ variants: {
233
+ content,
234
+ orientation
235
+ },
236
+ compoundVariants: [
237
+ {
238
+ content: "empty",
239
+ className: "text-foreground font-medium"
240
+ },
241
+ {
242
+ content: ["filled", "loading"],
243
+ className: "self-stretch truncate text-center text-foreground font-medium"
244
+ },
245
+ {
246
+ content: "empty",
247
+ orientation: "vertical",
248
+ className: "text-center"
249
+ }
250
+ ]
251
+ }
252
+ });
253
+ const fileUploadContentDescriptionDefinition = UIOverrides.defineConfig({
254
+ base: [""],
255
+ config: {
256
+ variants: {
257
+ content,
258
+ orientation,
259
+ isDisabled
260
+ },
261
+ compoundVariants: [
262
+ {
263
+ content: "empty",
264
+ className: "text-muted-foreground font-normal"
265
+ },
266
+ {
267
+ content: "filled",
268
+ className: "text-foreground"
269
+ },
270
+ {
271
+ content: "loading",
272
+ className: "text-muted-foreground"
273
+ },
274
+ {
275
+ content: "empty",
276
+ orientation: "vertical",
277
+ className: "text-center"
278
+ }
279
+ ]
280
+ }
281
+ });
282
+ const fileUploadContentActionsDefinition = UIOverrides.defineConfig({
283
+ base: [""],
284
+ config: {
285
+ variants: {
286
+ content,
287
+ orientation,
288
+ actionStyle
289
+ },
290
+ compoundVariants: [
291
+ {
292
+ content: "empty",
293
+ className: "flex flex-wrap items-center gap-1"
294
+ },
295
+ {
296
+ content: "filled",
297
+ className: "flex flex-none items-center justify-end"
298
+ },
299
+ {
300
+ content: "filled",
301
+ orientation: "vertical",
302
+ actionStyle: "button",
303
+ className: "flex-col"
304
+ },
305
+ {
306
+ content: "empty",
307
+ orientation: "vertical",
308
+ className: "justify-center"
309
+ },
310
+ {
311
+ content: "filled",
312
+ orientation: "vertical",
313
+ actionStyle: "link",
314
+ className: "gap-1"
315
+ },
316
+ {
317
+ content: "filled",
318
+ orientation: "vertical",
319
+ actionStyle: "button",
320
+ className: "gap-4"
321
+ },
322
+ {
323
+ content: "filled",
324
+ orientation: "horizontal",
325
+ className: "gap-2"
326
+ }
327
+ ]
328
+ }
329
+ });
330
+ const fileUploadContentLinkDefinition = UIOverrides.defineConfig({
331
+ base: [""],
332
+ config: {
333
+ variants: {
334
+ content,
335
+ orientation,
336
+ action: {
337
+ browse: "",
338
+ remove: ""
339
+ }
340
+ },
341
+ compoundVariants: [
342
+ {
343
+ content: "empty",
344
+ action: "browse",
345
+ className: "text-xs text-primary lowercase"
346
+ },
347
+ {
348
+ content: "filled",
349
+ action: "browse",
350
+ className: "text-primary"
351
+ },
352
+ {
353
+ content: "filled",
354
+ action: "browse",
355
+ orientation: "vertical",
356
+ className: "[&>span>span]:font-medium!"
357
+ },
358
+ {
359
+ content: "filled",
360
+ action: "remove",
361
+ orientation: "vertical",
362
+ className: "text-primary lowercase [&>span>span]:font-medium!"
363
+ }
364
+ ]
365
+ }
366
+ });
367
+ const fileUploadContentSeparatorDefinition = UIOverrides.defineConfig({
368
+ base: [""],
369
+ config: { variants: { content: {
370
+ empty: "",
371
+ filled: "text-muted-foreground",
372
+ loading: ""
373
+ } } }
374
+ });
375
+ const fileUploadContentButtonsDefinition = UIOverrides.defineConfig({ base: ["flex items-center justify-center gap-2 self-stretch"] });
376
+ const fileUploadCardDefinition = UIOverrides.defineConfig({ base: [
377
+ "flex items-center self-stretch",
378
+ "bg-card",
379
+ "px-3",
380
+ "py-4",
381
+ "rounded-lg border border-border border-solid"
382
+ ] });
383
+ const fileUploadCardListDefinition = UIOverrides.defineConfig({ base: ["mt-4 flex flex-col items-start gap-2 self-stretch"] });
384
+ const fileUploadGroupDefinition = UIOverrides.defineConfig({ base: ["flex w-full items-center justify-between gap-2"] });
385
+ //#endregion
386
+ //#region src/components/inputs/File/shared/useFileUploadContentStyles.ts
387
+ /** The class builders of a file upload content's parts, with the app's `fileUpload.*` overrides. */
388
+ const useFileUploadContentStyles = () => ({
389
+ content: UIOverrides.useCva("fileUpload.contentCva", fileUploadContentDefinition),
390
+ body: UIOverrides.useCva("fileUpload.contentBodyCva", fileUploadContentBodyDefinition),
391
+ lead: UIOverrides.useCva("fileUpload.contentLeadCva", fileUploadContentLeadDefinition),
392
+ icon: UIOverrides.useCva("fileUpload.contentIconCva", fileUploadContentIconDefinition),
393
+ text: UIOverrides.useCva("fileUpload.contentTextCva", fileUploadContentTextDefinition),
394
+ title: UIOverrides.useCva("fileUpload.contentTitleCva", fileUploadContentTitleDefinition),
395
+ description: UIOverrides.useCva("fileUpload.contentDescriptionCva", fileUploadContentDescriptionDefinition),
396
+ actions: UIOverrides.useCva("fileUpload.contentActionsCva", fileUploadContentActionsDefinition),
397
+ link: UIOverrides.useCva("fileUpload.contentLinkCva", fileUploadContentLinkDefinition),
398
+ separator: UIOverrides.useCva("fileUpload.contentSeparatorCva", fileUploadContentSeparatorDefinition),
399
+ buttons: UIOverrides.useCva("fileUpload.contentButtonsCva", fileUploadContentButtonsDefinition)
400
+ });
401
+ const useFileUploadCardStyles = () => ({
402
+ card: UIOverrides.useCva("fileUpload.cardCva", fileUploadCardDefinition),
403
+ list: UIOverrides.useCva("fileUpload.cardListCva", fileUploadCardListDefinition)
404
+ });
405
+ //#endregion
22
406
  //#region src/components/inputs/File/shared/FileUploadContentFilled.tsx
23
407
  const FileUploadContentFilled = ({ orientation, actionStyle, isDisabled, file, browseText, fileTriggerProps, removeWithIcon = false, onRemove, browseButtonProps }) => {
24
408
  const { t } = useTranslation("ui");
25
409
  const { size: browseButtonSize = "sm", variant: browseButtonVariant = "outlined", width: browseButtonWidth = "hug", ...browseButtonRestProps } = browseButtonProps ?? {};
410
+ const styles = useFileUploadContentStyles();
411
+ const parts = {
412
+ content: "filled",
413
+ orientation,
414
+ actionStyle,
415
+ isDisabled
416
+ };
26
417
  return /* @__PURE__ */ jsx("div", {
27
418
  className: clsx("flex w-full flex-fill flex-col items-start"),
28
419
  children: /* @__PURE__ */ jsxs("div", {
29
- className: clsx("flex w-full items-center", orientation === "horizontal" && "flex-row gap-4", orientation === "vertical" && "flex-col", orientation === "vertical" && actionStyle === "button" && "gap-4", orientation === "vertical" && actionStyle === "link" && "gap-1"),
420
+ className: styles.content(parts),
30
421
  children: [/* @__PURE__ */ jsxs("div", {
31
- className: clsx("flex min-w-0 max-w-full grow items-center gap-2", orientation === "vertical" && "flex-col", orientation === "horizontal" && "flex-row", isDisabled && "opacity-50"),
422
+ className: styles.lead(parts),
32
423
  children: [/* @__PURE__ */ jsx(IconSlot, {
33
424
  icon: CheckCircle,
34
- className: "text-muted-foreground"
425
+ className: styles.icon(parts)
35
426
  }), /* @__PURE__ */ jsxs("div", {
36
- className: clsx("flex flex-col gap-1", orientation === "vertical" && "max-w-full items-center", orientation === "horizontal" && "max-w-[calc(100%-32px)]"),
427
+ className: styles.text(parts),
37
428
  children: [/* @__PURE__ */ jsx(Typography, {
38
429
  size: "large",
39
430
  as: "span",
40
- className: "self-stretch truncate text-center text-foreground font-medium",
431
+ className: styles.title(parts),
41
432
  children: file.name
42
433
  }), /* @__PURE__ */ jsx(Typography, {
43
434
  size: "small",
44
435
  as: "span",
45
- className: "text-foreground",
436
+ className: styles.description(parts),
46
437
  children: FileUtils.getFileDisplaySize(file)
47
438
  })]
48
439
  })]
49
440
  }), /* @__PURE__ */ jsx("div", {
50
- className: clsx("flex flex-none items-center justify-end", orientation === "vertical" && actionStyle === "button" && "flex-col", actionStyle === "link" && orientation === "vertical" && "gap-1", actionStyle === "button" && orientation === "vertical" && "gap-4", orientation === "horizontal" && "gap-2"),
441
+ className: styles.actions(parts),
51
442
  children: actionStyle === "link" ? /* @__PURE__ */ jsxs(Fragment$1, { children: [fileTriggerProps && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx($b325d7bd7e74496a$export$6fb4a10d2c950550, {
52
443
  ...fileTriggerProps,
53
444
  children: /* @__PURE__ */ jsx(Button, {
54
- className: clsx("text-primary", orientation === "vertical" && "[&>span>span]:font-medium!"),
445
+ className: styles.link({
446
+ ...parts,
447
+ action: "browse"
448
+ }),
55
449
  variant: "text",
56
450
  width: "hug",
57
451
  children: browseText ?? ""
@@ -59,7 +453,7 @@ const FileUploadContentFilled = ({ orientation, actionStyle, isDisabled, file, b
59
453
  }), orientation === "vertical" && /* @__PURE__ */ jsx(Typography, {
60
454
  size: "small",
61
455
  as: "span",
62
- className: "text-muted-foreground",
456
+ className: styles.separator(parts),
63
457
  children: t(($) => $.ui.fileUpload.or)
64
458
  })] }), removeWithIcon ? /* @__PURE__ */ jsx(IconButton, {
65
459
  label: t(($) => $.ui.fileUpload.removeFile),
@@ -71,14 +465,17 @@ const FileUploadContentFilled = ({ orientation, actionStyle, isDisabled, file, b
71
465
  disableTooltip: true,
72
466
  size: "sm"
73
467
  }) : /* @__PURE__ */ jsx(Button, {
74
- className: clsx(orientation === "vertical" && "text-primary lowercase [&>span>span]:font-medium!"),
468
+ className: styles.link({
469
+ ...parts,
470
+ action: "remove"
471
+ }),
75
472
  color: orientation === "horizontal" ? "secondary" : "primary",
76
473
  onPress: onRemove,
77
474
  variant: "text",
78
475
  width: "hug",
79
476
  children: t(($) => $.ui.fileUpload.removeFile)
80
477
  })] }) : /* @__PURE__ */ jsxs("div", {
81
- className: "flex items-center justify-center gap-2 self-stretch",
478
+ className: styles.buttons(parts),
82
479
  children: [fileTriggerProps && /* @__PURE__ */ jsx($b325d7bd7e74496a$export$6fb4a10d2c950550, {
83
480
  ...fileTriggerProps,
84
481
  children: /* @__PURE__ */ jsx(Button, {
@@ -117,26 +514,33 @@ const FileUploadContentFilled = ({ orientation, actionStyle, isDisabled, file, b
117
514
  const FileUploadContentLoading = ({ orientation, actionStyle, file, isDisabled, onCancel, cancelButtonProps }) => {
118
515
  const { t } = useTranslation("ui");
119
516
  const { color: cancelButtonColor = "secondary", size: cancelButtonSize = "sm", variant: cancelButtonVariant = "outlined", width: cancelButtonWidth = "hug", ...cancelButtonRestProps } = cancelButtonProps ?? {};
517
+ const styles = useFileUploadContentStyles();
518
+ const parts = {
519
+ content: "loading",
520
+ orientation,
521
+ actionStyle,
522
+ isDisabled
523
+ };
120
524
  return /* @__PURE__ */ jsxs("div", {
121
- className: clsx("flex w-full flex-col items-center", orientation === "vertical" && "flex-col", orientation === "horizontal" && "flex-row", actionStyle === "button" && "gap-4"),
525
+ className: styles.content(parts),
122
526
  children: [/* @__PURE__ */ jsxs("div", {
123
- className: clsx("flex w-full items-center justify-between", orientation === "vertical" && "flex-col gap-1", orientation === "horizontal" && "flex-row gap-4", isDisabled && "opacity-50"),
527
+ className: styles.body(parts),
124
528
  children: [/* @__PURE__ */ jsxs("div", {
125
- className: clsx("flex items-center gap-2", orientation === "vertical" && "w-full flex-col", orientation === "horizontal" && "w-1/2"),
529
+ className: styles.lead(parts),
126
530
  children: [/* @__PURE__ */ jsx(IconSlot, {
127
531
  icon: File,
128
- className: "text-muted-foreground"
532
+ className: styles.icon(parts)
129
533
  }), /* @__PURE__ */ jsxs("div", {
130
- className: clsx("flex flex-col", orientation === "vertical" && "max-w-full gap-2 text-center", orientation === "horizontal" && "max-w-[calc(100%-32px)] gap-1"),
534
+ className: styles.text(parts),
131
535
  children: [/* @__PURE__ */ jsx(Typography, {
132
536
  size: "large",
133
537
  as: "span",
134
- className: "self-stretch truncate text-center text-foreground font-medium",
538
+ className: styles.title(parts),
135
539
  children: file.name
136
540
  }), /* @__PURE__ */ jsx(Typography, {
137
541
  size: "small",
138
542
  as: "span",
139
- className: "text-muted-foreground",
543
+ className: styles.description(parts),
140
544
  children: FileUtils.getFileDisplaySize(file)
141
545
  })]
142
546
  })]
@@ -170,31 +574,35 @@ const FileUploadContentLoading = ({ orientation, actionStyle, file, isDisabled,
170
574
  };
171
575
  //#endregion
172
576
  //#region src/components/inputs/File/shared/FileCard.tsx
173
- const FileCardComponent = ({ actionStyle, file, onRemove, isDisabled, browseButtonProps, cancelButtonProps, onCancel }) => /* @__PURE__ */ jsx("div", {
174
- className: clsx("flex items-center self-stretch", "bg-card", "px-3", "py-4", "rounded-lg border border-border border-solid"),
175
- children: file.status === "uploading" ? /* @__PURE__ */ jsx(FileUploadContentLoading, {
176
- orientation: "horizontal",
177
- actionStyle,
178
- isDisabled,
179
- file,
180
- cancelButtonProps,
181
- onCancel: () => onCancel?.(file)
182
- }) : /* @__PURE__ */ jsx(FileUploadContentFilled, {
183
- actionStyle,
184
- removeWithIcon: true,
185
- orientation: "horizontal",
186
- isDisabled,
187
- file,
188
- browseButtonProps,
189
- onRemove: () => onRemove?.(file)
190
- })
191
- });
577
+ const FileCardComponent = ({ actionStyle, file, onRemove, isDisabled, browseButtonProps, cancelButtonProps, onCancel }) => {
578
+ const { card } = useFileUploadCardStyles();
579
+ return /* @__PURE__ */ jsx("div", {
580
+ className: card(),
581
+ children: file.status === "uploading" ? /* @__PURE__ */ jsx(FileUploadContentLoading, {
582
+ orientation: "horizontal",
583
+ actionStyle,
584
+ isDisabled,
585
+ file,
586
+ cancelButtonProps,
587
+ onCancel: () => onCancel?.(file)
588
+ }) : /* @__PURE__ */ jsx(FileUploadContentFilled, {
589
+ actionStyle,
590
+ removeWithIcon: true,
591
+ orientation: "horizontal",
592
+ isDisabled,
593
+ file,
594
+ browseButtonProps,
595
+ onRemove: () => onRemove?.(file)
596
+ })
597
+ });
598
+ };
192
599
  const FileCard = memo(FileCardComponent);
193
600
  //#endregion
194
601
  //#region src/components/inputs/File/shared/FileCardList.tsx
195
602
  const FileCardList = memo(({ files, actionStyle, isDisabled, browseButtonProps, cancelButtonProps, className, onRemove, onCancel }) => {
603
+ const { list } = useFileUploadCardStyles();
196
604
  return /* @__PURE__ */ jsx("div", {
197
- className: clsx("mt-4 flex flex-col items-start gap-2 self-stretch", className),
605
+ className: list({ className }),
198
606
  children: files.map((file) => /* @__PURE__ */ jsx(FileCard, {
199
607
  actionStyle,
200
608
  file,
@@ -210,40 +618,57 @@ const FileCardList = memo(({ files, actionStyle, isDisabled, browseButtonProps,
210
618
  //#region src/components/inputs/File/shared/FileUploadContentEmpty.tsx
211
619
  const FileUploadContentEmpty = ({ orientation, actionStyle, isDisabled, title, browseText, uploadText, hideButton = false, className, browseButtonProps }) => {
212
620
  const { size: browseButtonSize = "sm", variant: browseButtonVariant = "outlined", width: browseButtonWidth = "hug", ...browseButtonRestProps } = browseButtonProps ?? {};
621
+ const styles = useFileUploadContentStyles();
622
+ const parts = {
623
+ content: "empty",
624
+ orientation,
625
+ actionStyle,
626
+ isDisabled
627
+ };
628
+ const showButton = !hideButton && !!browseText;
213
629
  return /* @__PURE__ */ jsxs("div", {
214
- className: clsx("flex w-full items-center gap-1", className, orientation === "vertical" && "flex-col", orientation === "horizontal" && "min-h-11 flex-row justify-between"),
630
+ className: styles.content({
631
+ ...parts,
632
+ className
633
+ }),
215
634
  children: [/* @__PURE__ */ jsxs("div", {
216
- className: clsx("flex items-center gap-2", orientation === "vertical" && "flex-col", orientation === "horizontal" && "flex-row", isDisabled && "opacity-50"),
635
+ className: styles.lead(parts),
217
636
  children: [/* @__PURE__ */ jsx(IconSlot, {
218
637
  icon: Upload,
219
- className: "text-foreground"
220
- }), /* @__PURE__ */ jsx(Typography, {
221
- size: "lead",
222
- as: "span",
223
- className: clsx("self-stretch text-foreground font-normal", orientation === "vertical" && "text-center"),
224
- children: title
638
+ className: styles.icon(parts)
639
+ }), /* @__PURE__ */ jsxs("div", {
640
+ className: styles.text(parts),
641
+ children: [/* @__PURE__ */ jsx(Typography, {
642
+ size: "large",
643
+ as: "span",
644
+ className: styles.title(parts),
645
+ children: title
646
+ }), (uploadText || showButton && actionStyle === "link") && /* @__PURE__ */ jsxs("span", {
647
+ className: styles.actions(parts),
648
+ children: [uploadText && /* @__PURE__ */ jsx(Typography, {
649
+ size: "small",
650
+ as: "span",
651
+ className: styles.description(parts),
652
+ children: uploadText
653
+ }), showButton && actionStyle === "link" && /* @__PURE__ */ jsx(Button, {
654
+ className: styles.link({
655
+ ...parts,
656
+ action: "browse"
657
+ }),
658
+ isDisabled,
659
+ variant: "text",
660
+ width: "hug",
661
+ children: browseText
662
+ })]
663
+ })]
225
664
  })]
226
- }), /* @__PURE__ */ jsxs("div", {
227
- className: clsx("flex items-center justify-center", orientation === "vertical" && actionStyle === "button" && "flex-col", actionStyle === "link" && "gap-1", actionStyle === "button" && "gap-4"),
228
- children: [/* @__PURE__ */ jsx(Typography, {
229
- size: "large",
230
- as: "span",
231
- className: clsx("text-muted-foreground font-normal", orientation === "vertical" && "text-center", isDisabled && "opacity-50"),
232
- children: uploadText
233
- }), !hideButton && browseText && (actionStyle === "link" ? /* @__PURE__ */ jsx(Button, {
234
- className: "text-primary lowercase",
235
- isDisabled,
236
- variant: "text",
237
- width: "hug",
238
- children: browseText
239
- }) : /* @__PURE__ */ jsx(Button, {
240
- variant: browseButtonVariant,
241
- size: browseButtonSize,
242
- width: browseButtonWidth,
243
- ...browseButtonRestProps,
244
- isDisabled,
245
- children: browseText
246
- }))]
665
+ }), showButton && actionStyle === "button" && /* @__PURE__ */ jsx(Button, {
666
+ variant: browseButtonVariant,
667
+ size: browseButtonSize,
668
+ width: browseButtonWidth,
669
+ ...browseButtonRestProps,
670
+ isDisabled,
671
+ children: browseText
247
672
  })]
248
673
  });
249
674
  };
@@ -304,6 +729,7 @@ const FileUploadBase = (props) => {
304
729
  const { ref, label, tooltipText, orientation = "vertical", actionStyle = "button", helperText, isRequired, isDisabled, headerClassName, errorClassName, error, errorMessageId, className, allowsMultiple = false, hideLabel, acceptedFileTypes, clearOnSuccess, emptyText = t(($) => $.ui.fileUpload.emptyText), uploadText = t(($) => $.ui.fileUpload.uploadText), browseText = t(($) => $.ui.fileUpload.browse), onUpload, onRemove, children, browseButtonProps, cancelButtonProps, onInvalidFileType, onChange, onBlur, value, defaultValue, subscribeReset, onUploadingChange, fieldError, ...rest } = props;
305
730
  const ui = UIConfig.useConfig();
306
731
  const fileUploadDropZoneCva = UIOverrides.useCva("fileUpload.dropZoneCva", fileUploadDropZoneDefinition);
732
+ const fileUploadGroupCva = UIOverrides.useCva("fileUpload.groupCva", fileUploadGroupDefinition);
307
733
  const generatedErrorId = useId();
308
734
  const resolvedErrorId = errorMessageId ?? generatedErrorId;
309
735
  const generatedHelperTextId = useId();
@@ -559,7 +985,7 @@ const FileUploadBase = (props) => {
559
985
  helperTextId,
560
986
  resolvedError ? resolvedErrorId : void 0
561
987
  ].filter(Boolean).join(" ") || void 0,
562
- className: "flex w-full items-center justify-between gap-2",
988
+ className: fileUploadGroupCva(),
563
989
  children: /* @__PURE__ */ jsx($070c0dd15dc89b58$export$3c6489d84dc98b6, {
564
990
  ...rest,
565
991
  "data-rac": "",