@vlrc-fe/components 3.0.3 → 3.0.5

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 (701) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/README.md +10 -1
  3. package/bin/registry.mjs +1124 -0
  4. package/bin/vlrc.mjs +102 -7
  5. package/dist/ConfirmModal.cjs +268 -1
  6. package/dist/ConfirmModal.d.ts +5 -21
  7. package/dist/ConfirmModal.d.ts.map +1 -1
  8. package/dist/ConfirmModal.js +120 -111
  9. package/dist/DataTable/DataTable.cjs +203 -1
  10. package/dist/DataTable/DataTable.js +161 -120
  11. package/dist/DataTable/components/DataTableColumnHeader.cjs +214 -1
  12. package/dist/DataTable/components/DataTableColumnHeader.d.ts +3 -3
  13. package/dist/DataTable/components/DataTableColumnHeader.d.ts.map +1 -1
  14. package/dist/DataTable/components/DataTableColumnHeader.js +201 -103
  15. package/dist/DataTable/components/DataTableFacetedFilter.cjs +332 -1
  16. package/dist/DataTable/components/DataTableFacetedFilter.d.ts +3 -3
  17. package/dist/DataTable/components/DataTableFacetedFilter.d.ts.map +1 -1
  18. package/dist/DataTable/components/DataTableFacetedFilter.js +285 -181
  19. package/dist/DataTable/components/DataTablePagination.cjs +200 -1
  20. package/dist/DataTable/components/DataTablePagination.js +188 -91
  21. package/dist/DataTable/components/DataTableRowActions.cjs +172 -1
  22. package/dist/DataTable/components/DataTableRowActions.js +161 -62
  23. package/dist/DataTable/components/DataTableTable.cjs +100 -1
  24. package/dist/DataTable/components/DataTableTable.js +87 -35
  25. package/dist/DataTable/components/DataTableToolbar.cjs +112 -1
  26. package/dist/DataTable/components/DataTableToolbar.js +106 -44
  27. package/dist/DataTable/components/DataTableViewOptions.cjs +113 -1
  28. package/dist/DataTable/components/DataTableViewOptions.js +105 -44
  29. package/dist/DataTable/render/createColumns.cjs +84 -1
  30. package/dist/DataTable/render/createColumns.js +65 -44
  31. package/dist/DataTable/render/defaults.cjs +38 -1
  32. package/dist/DataTable/render/defaults.js +18 -13
  33. package/dist/Dropdown/Dropdown.cjs +255 -1
  34. package/dist/Dropdown/Dropdown.js +138 -108
  35. package/dist/Form/Form.cjs +439 -1
  36. package/dist/Form/Form.js +417 -206
  37. package/dist/Form/FormDatePicker/FormDatePicker.cjs +84 -1
  38. package/dist/Form/FormDatePicker/FormDatePicker.js +68 -65
  39. package/dist/Form/FormDatePicker/MonthPickerPanel.cjs +217 -1
  40. package/dist/Form/FormDatePicker/MonthPickerPanel.js +194 -101
  41. package/dist/Form/FormDatePicker/RangeDatePicker.cjs +144 -1
  42. package/dist/Form/FormDatePicker/RangeDatePicker.js +94 -77
  43. package/dist/Form/FormDatePicker/SingleDatePicker.cjs +191 -1
  44. package/dist/Form/FormDatePicker/SingleDatePicker.js +144 -114
  45. package/dist/Form/FormDatePicker/TimeInput.cjs +172 -1
  46. package/dist/Form/FormDatePicker/TimeInput.js +162 -79
  47. package/dist/Form/FormDatePicker/TimePicker.cjs +107 -1
  48. package/dist/Form/FormDatePicker/TimePicker.js +58 -43
  49. package/dist/Form/FormDatePicker/YearPickerPanel.cjs +184 -1
  50. package/dist/Form/FormDatePicker/YearPickerPanel.js +164 -84
  51. package/dist/Form/FormDatePicker/types.cjs +10 -1
  52. package/dist/Form/FormDatePicker/types.js +8 -3
  53. package/dist/Form/FormDatePicker/useFormDatePicker.cjs +70 -1
  54. package/dist/Form/FormDatePicker/useFormDatePicker.js +58 -31
  55. package/dist/Form/FormFileUpload/FileUpload.cjs +603 -1
  56. package/dist/Form/FormFileUpload/FileUpload.js +452 -306
  57. package/dist/Form/FormFileUpload/index.cjs +175 -1
  58. package/dist/Form/FormFileUpload/index.js +164 -50
  59. package/dist/Form/FormMultiSelect/FormMultiSelect.cjs +46 -1
  60. package/dist/Form/FormMultiSelect/FormMultiSelect.js +42 -22
  61. package/dist/Form/FormNumberInput/FormNumberInput.cjs +71 -1
  62. package/dist/Form/FormNumberInput/FormNumberInput.js +60 -58
  63. package/dist/Form/FormNumberInput/StepperControls.cjs +104 -1
  64. package/dist/Form/FormNumberInput/StepperControls.js +78 -43
  65. package/dist/Form/FormNumberInput/useFormNumberInput.cjs +72 -1
  66. package/dist/Form/FormNumberInput/useFormNumberInput.js +68 -39
  67. package/dist/Form/FormRadioGroup/FormRadio.cjs +65 -1
  68. package/dist/Form/FormRadioGroup/FormRadio.js +38 -38
  69. package/dist/Form/FormRadioGroup/useFormRadio.cjs +38 -1
  70. package/dist/Form/FormRadioGroup/useFormRadio.js +27 -16
  71. package/dist/Form/FormSelect/FormSelect.cjs +46 -1
  72. package/dist/Form/FormSelect/FormSelect.js +40 -26
  73. package/dist/Form/FormSelect/useFormSelect.cjs +58 -1
  74. package/dist/Form/FormSelect/useFormSelect.js +52 -43
  75. package/dist/Icons/Icons.cjs +155 -1
  76. package/dist/Icons/Icons.js +142 -142
  77. package/dist/Modal.cjs +131 -1
  78. package/dist/Modal.d.ts +2 -14
  79. package/dist/Modal.d.ts.map +1 -1
  80. package/dist/Modal.js +63 -54
  81. package/dist/MultiSelect/MultiSelect.cjs +210 -1
  82. package/dist/MultiSelect/MultiSelect.d.ts.map +1 -1
  83. package/dist/MultiSelect/MultiSelect.js +126 -117
  84. package/dist/MultiSelect/renderers.cjs +571 -1
  85. package/dist/MultiSelect/renderers.js +508 -309
  86. package/dist/MultiSelect/useMultiSelect.cjs +244 -1
  87. package/dist/MultiSelect/useMultiSelect.d.ts.map +1 -1
  88. package/dist/MultiSelect/useMultiSelect.js +208 -127
  89. package/dist/MultiSelect/utils.cjs +123 -1
  90. package/dist/MultiSelect/utils.js +79 -51
  91. package/dist/Select/BaseSelect.cjs +265 -1
  92. package/dist/Select/BaseSelect.js +165 -126
  93. package/dist/Select/MultiSelectTags.cjs +129 -1
  94. package/dist/Select/MultiSelectTags.js +82 -56
  95. package/dist/Typography/Blockquote.cjs +79 -1
  96. package/dist/Typography/Blockquote.js +40 -38
  97. package/dist/Typography/Code.cjs +131 -1
  98. package/dist/Typography/Code.js +64 -58
  99. package/dist/Typography/Link.cjs +139 -1
  100. package/dist/Typography/Link.d.ts +1 -2
  101. package/dist/Typography/Link.d.ts.map +1 -1
  102. package/dist/Typography/Link.js +73 -64
  103. package/dist/Typography/Paragraph.cjs +224 -1
  104. package/dist/Typography/Paragraph.d.ts +1 -2
  105. package/dist/Typography/Paragraph.d.ts.map +1 -1
  106. package/dist/Typography/Paragraph.js +118 -108
  107. package/dist/Typography/Text.cjs +223 -1
  108. package/dist/Typography/Text.d.ts +1 -2
  109. package/dist/Typography/Text.d.ts.map +1 -1
  110. package/dist/Typography/Text.js +117 -101
  111. package/dist/Typography/Title.cjs +220 -1
  112. package/dist/Typography/Title.d.ts +1 -2
  113. package/dist/Typography/Title.d.ts.map +1 -1
  114. package/dist/Typography/Title.js +126 -104
  115. package/dist/Typography/Typography.cjs +17 -1
  116. package/dist/Typography/Typography.d.ts +8 -4
  117. package/dist/Typography/Typography.d.ts.map +1 -1
  118. package/dist/Typography/Typography.js +14 -14
  119. package/dist/Typography/index.d.ts +1 -4
  120. package/dist/Typography/index.d.ts.map +1 -1
  121. package/dist/Typography/index.js +10 -13
  122. package/dist/Typography/tooltip.cjs +42 -1
  123. package/dist/Typography/tooltip.js +34 -14
  124. package/dist/Typography/types.cjs +20 -1
  125. package/dist/Typography/types.d.ts +4 -0
  126. package/dist/Typography/types.d.ts.map +1 -1
  127. package/dist/Typography/types.js +5 -2
  128. package/dist/Typography/utils.cjs +52 -1
  129. package/dist/Typography/utils.js +48 -21
  130. package/dist/Typography/weightStyles.cjs +58 -1
  131. package/dist/Typography/weightStyles.js +26 -25
  132. package/dist/_virtual/_rolldown/runtime.cjs +32 -1
  133. package/dist/_virtual/_rolldown/runtime.js +9 -7
  134. package/dist/assets/stylex.css +167 -9
  135. package/dist/astryx.cjs +9 -1
  136. package/dist/astryx.d.ts +0 -1
  137. package/dist/astryx.d.ts.map +1 -1
  138. package/dist/astryx.js +0 -1
  139. package/dist/index.cjs +779 -1
  140. package/dist/index.d.ts +2 -3
  141. package/dist/index.d.ts.map +1 -1
  142. package/dist/index.js +119 -118
  143. package/dist/layout/Box.cjs +180 -1
  144. package/dist/layout/Box.d.ts +6 -8
  145. package/dist/layout/Box.d.ts.map +1 -1
  146. package/dist/layout/Box.js +116 -50
  147. package/dist/layout/Center.cjs +40 -1
  148. package/dist/layout/Center.d.ts +3 -3
  149. package/dist/layout/Center.d.ts.map +1 -1
  150. package/dist/layout/Center.js +39 -21
  151. package/dist/layout/Container.cjs +92 -1
  152. package/dist/layout/Container.d.ts +6 -8
  153. package/dist/layout/Container.d.ts.map +1 -1
  154. package/dist/layout/Container.js +46 -31
  155. package/dist/layout/Stack.cjs +199 -1
  156. package/dist/layout/Stack.d.ts +9 -9
  157. package/dist/layout/Stack.d.ts.map +1 -1
  158. package/dist/layout/Stack.js +186 -79
  159. package/dist/layout/index.d.ts +1 -1
  160. package/dist/layout/index.js +9 -9
  161. package/dist/lazyLoad.cjs +13 -1
  162. package/dist/lazyLoad.d.ts.map +1 -1
  163. package/dist/lazyLoad.js +9 -9
  164. package/dist/node_modules/.pnpm/@floating-ui_core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.cjs +551 -1
  165. package/dist/node_modules/.pnpm/@floating-ui_core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.js +440 -234
  166. package/dist/node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs +546 -1
  167. package/dist/node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +452 -236
  168. package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.cjs +330 -1
  169. package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +272 -164
  170. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs +150 -1
  171. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs +132 -1
  172. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +90 -74
  173. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +92 -67
  174. package/dist/node_modules/.pnpm/@radix-ui_number@1.1.3/node_modules/@radix-ui/number/dist/index.cjs +11 -1
  175. package/dist/node_modules/.pnpm/@radix-ui_number@1.1.3/node_modules/@radix-ui/number/dist/index.js +8 -7
  176. package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.7/node_modules/@radix-ui/primitive/dist/index.cjs +48 -1
  177. package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.7/node_modules/@radix-ui/primitive/dist/index.js +34 -31
  178. package/dist/node_modules/.pnpm/@radix-ui_react-alert-dialog@1.1.23_@types_react-dom@19.3.0_@types_react@19.3.0__@types_023ac3f94ac95798b92bc4b7f556cbda/node_modules/@radix-ui/react-alert-dialog/dist/index.cjs +145 -1
  179. package/dist/node_modules/.pnpm/@radix-ui_react-alert-dialog@1.1.23_@types_react-dom@19.3.0_@types_react@19.3.0__@types_023ac3f94ac95798b92bc4b7f556cbda/node_modules/@radix-ui/react-alert-dialog/dist/index.js +111 -73
  180. package/dist/node_modules/.pnpm/@radix-ui_react-aspect-ratio@1.1.15_@types_react-dom@19.3.0_@types_react@19.3.0__@types_3fe40fa8e2833eaf8803b46e02e4c30f/node_modules/@radix-ui/react-aspect-ratio/dist/index.cjs +38 -1
  181. package/dist/node_modules/.pnpm/@radix-ui_react-aspect-ratio@1.1.15_@types_react-dom@19.3.0_@types_react@19.3.0__@types_3fe40fa8e2833eaf8803b46e02e4c30f/node_modules/@radix-ui/react-aspect-ratio/dist/index.js +19 -16
  182. package/dist/node_modules/.pnpm/@radix-ui_react-avatar@1.2.6_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_c3568bdf5c60d38014d320037c857c95/node_modules/@radix-ui/react-avatar/dist/index.cjs +126 -1
  183. package/dist/node_modules/.pnpm/@radix-ui_react-avatar@1.2.6_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_c3568bdf5c60d38014d320037c857c95/node_modules/@radix-ui/react-avatar/dist/index.js +103 -72
  184. package/dist/node_modules/.pnpm/@radix-ui_react-collapsible@1.1.20_@types_react-dom@19.3.0_@types_react@19.3.0__@types__75f9b408b6aa016f78c6c390e6f84227/node_modules/@radix-ui/react-collapsible/dist/index.cjs +134 -1
  185. package/dist/node_modules/.pnpm/@radix-ui_react-collapsible@1.1.20_@types_react-dom@19.3.0_@types_react@19.3.0__@types__75f9b408b6aa016f78c6c390e6f84227/node_modules/@radix-ui/react-collapsible/dist/index.js +113 -79
  186. package/dist/node_modules/.pnpm/@radix-ui_react-collection@1.1.15_@types_react-dom@19.3.0_@types_react@19.3.0__@types_r_5961dc5beb3cb19a205dfdbd3304cbe5/node_modules/@radix-ui/react-collection/dist/index.cjs +541 -1
  187. package/dist/node_modules/.pnpm/@radix-ui_react-collection@1.1.15_@types_react-dom@19.3.0_@types_react@19.3.0__@types_r_5961dc5beb3cb19a205dfdbd3304cbe5/node_modules/@radix-ui/react-collection/dist/index.js +459 -331
  188. package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.5_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +39 -1
  189. package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.5_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-compose-refs/dist/index.js +26 -22
  190. package/dist/node_modules/.pnpm/@radix-ui_react-context-menu@2.3.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types__30d9c1a1570dd32a7a328fd93feebae9/node_modules/@radix-ui/react-context-menu/dist/index.cjs +304 -1
  191. package/dist/node_modules/.pnpm/@radix-ui_react-context-menu@2.3.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types__30d9c1a1570dd32a7a328fd93feebae9/node_modules/@radix-ui/react-context-menu/dist/index.js +234 -160
  192. package/dist/node_modules/.pnpm/@radix-ui_react-context@1.2.2_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-context/dist/index.cjs +108 -1
  193. package/dist/node_modules/.pnpm/@radix-ui_react-context@1.2.2_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-context/dist/index.js +82 -67
  194. package/dist/node_modules/.pnpm/@radix-ui_react-direction@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-direction/dist/index.cjs +19 -1
  195. package/dist/node_modules/.pnpm/@radix-ui_react-direction@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-direction/dist/index.js +12 -10
  196. package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.19_@types_react-dom@19.3.0_@types_react@19.3.0__@_221317ca07dfdaa6590fc49e548d4242/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +275 -1
  197. package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.19_@types_react-dom@19.3.0_@types_react@19.3.0__@_221317ca07dfdaa6590fc49e548d4242/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +228 -127
  198. package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.6_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-focus-guards/dist/index.cjs +53 -1
  199. package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.6_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-focus-guards/dist/index.js +40 -22
  200. package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.16_@types_react-dom@19.3.0_@types_react@19.3.0__@types__3593711fa410ee31279d746c57990974/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +215 -1
  201. package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.16_@types_react-dom@19.3.0_@types_react@19.3.0__@types__3593711fa410ee31279d746c57990974/node_modules/@radix-ui/react-focus-scope/dist/index.js +171 -117
  202. package/dist/node_modules/.pnpm/@radix-ui_react-hover-card@1.1.23_@types_react-dom@19.3.0_@types_react@19.3.0__@types_r_a8ac333b78a7741970303e37358b886d/node_modules/@radix-ui/react-hover-card/dist/index.cjs +219 -1
  203. package/dist/node_modules/.pnpm/@radix-ui_react-hover-card@1.1.23_@types_react-dom@19.3.0_@types_react@19.3.0__@types_r_a8ac333b78a7741970303e37358b886d/node_modules/@radix-ui/react-hover-card/dist/index.js +178 -118
  204. package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-id/dist/index.cjs +22 -1
  205. package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-id/dist/index.js +17 -13
  206. package/dist/node_modules/.pnpm/@radix-ui_react-menu@2.1.24_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@1_bd1746795e703f342b2f4982589d4efb/node_modules/@radix-ui/react-menu/dist/index.cjs +802 -1
  207. package/dist/node_modules/.pnpm/@radix-ui_react-menu@2.1.24_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@1_bd1746795e703f342b2f4982589d4efb/node_modules/@radix-ui/react-menu/dist/index.js +648 -422
  208. package/dist/node_modules/.pnpm/@radix-ui_react-menubar@1.1.24_@types_react-dom@19.3.0_@types_react@19.3.0__@types_reac_b8d55f7c7c6b477421e3cc1ba6fb334b/node_modules/@radix-ui/react-menubar/dist/index.cjs +410 -1
  209. package/dist/node_modules/.pnpm/@radix-ui_react-menubar@1.1.24_@types_react-dom@19.3.0_@types_react@19.3.0__@types_reac_b8d55f7c7c6b477421e3cc1ba6fb334b/node_modules/@radix-ui/react-menubar/dist/index.js +313 -212
  210. package/dist/node_modules/.pnpm/@radix-ui_react-navigation-menu@1.2.22_@types_react-dom@19.3.0_@types_react@19.3.0__@ty_fde94e4aef42debd49119dde2ad3b250/node_modules/@radix-ui/react-navigation-menu/dist/index.cjs +741 -1
  211. package/dist/node_modules/.pnpm/@radix-ui_react-navigation-menu@1.2.22_@types_react-dom@19.3.0_@types_react@19.3.0__@ty_fde94e4aef42debd49119dde2ad3b250/node_modules/@radix-ui/react-navigation-menu/dist/index.js +602 -417
  212. package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.3.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_ca4fb1e7b10e21399fbf7b38c61d930c/node_modules/@radix-ui/react-popper/dist/index.cjs +246 -1
  213. package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.3.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_ca4fb1e7b10e21399fbf7b38c61d930c/node_modules/@radix-ui/react-popper/dist/index.js +195 -121
  214. package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.17_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react_dcf9598b366f9d4cb930092169158fb6/node_modules/@radix-ui/react-portal/dist/index.cjs +27 -1
  215. package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.17_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react_dcf9598b366f9d4cb930092169158fb6/node_modules/@radix-ui/react-portal/dist/index.js +20 -17
  216. package/dist/node_modules/.pnpm/@radix-ui_react-presence@1.1.10_@types_react-dom@19.3.0_@types_react@19.3.0__@types_rea_d7b4951725c0f0b9fd732151cb937913/node_modules/@radix-ui/react-presence/dist/index.cjs +148 -1
  217. package/dist/node_modules/.pnpm/@radix-ui_react-presence@1.1.10_@types_react-dom@19.3.0_@types_react@19.3.0__@types_rea_d7b4951725c0f0b9fd732151cb937913/node_modules/@radix-ui/react-presence/dist/index.js +115 -67
  218. package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.1.10_@types_react-dom@19.3.0_@types_react@19.3.0__@types_re_b879c40dbdb8ea08e1db9842f10f20a8/node_modules/@radix-ui/react-primitive/dist/index.cjs +55 -1
  219. package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.1.10_@types_react-dom@19.3.0_@types_react@19.3.0__@types_re_b879c40dbdb8ea08e1db9842f10f20a8/node_modules/@radix-ui/react-primitive/dist/index.js +27 -21
  220. package/dist/node_modules/.pnpm/@radix-ui_react-roving-focus@1.1.19_@types_react-dom@19.3.0_@types_react@19.3.0__@types_43a41e6ed06e4781ce7b1fb0f0076623/node_modules/@radix-ui/react-roving-focus/dist/index.cjs +223 -1
  221. package/dist/node_modules/.pnpm/@radix-ui_react-roving-focus@1.1.19_@types_react-dom@19.3.0_@types_react@19.3.0__@types_43a41e6ed06e4781ce7b1fb0f0076623/node_modules/@radix-ui/react-roving-focus/dist/index.js +179 -131
  222. package/dist/node_modules/.pnpm/@radix-ui_react-slider@1.4.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_0a49b18268a9d1d70ad7e785633a1513/node_modules/@radix-ui/react-slider/dist/index.cjs +576 -1
  223. package/dist/node_modules/.pnpm/@radix-ui_react-slider@1.4.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_0a49b18268a9d1d70ad7e785633a1513/node_modules/@radix-ui/react-slider/dist/index.js +437 -308
  224. package/dist/node_modules/.pnpm/@radix-ui_react-switch@1.3.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_f8723a7bd506c0f648804ec2dc0f18e3/node_modules/@radix-ui/react-switch/dist/index.cjs +202 -1
  225. package/dist/node_modules/.pnpm/@radix-ui_react-switch@1.3.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_f8723a7bd506c0f648804ec2dc0f18e3/node_modules/@radix-ui/react-switch/dist/index.js +160 -125
  226. package/dist/node_modules/.pnpm/@radix-ui_react-tabs@1.1.21_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@1_2c04ca1fb5fd914a25ee24a303bd8469/node_modules/@radix-ui/react-tabs/dist/index.cjs +159 -1
  227. package/dist/node_modules/.pnpm/@radix-ui_react-tabs@1.1.21_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@1_2c04ca1fb5fd914a25ee24a303bd8469/node_modules/@radix-ui/react-tabs/dist/index.js +125 -93
  228. package/dist/node_modules/.pnpm/@radix-ui_react-toggle-group@1.1.19_@types_react-dom@19.3.0_@types_react@19.3.0__@types_e645c0ca626436d86b14232bd158d09b/node_modules/@radix-ui/react-toggle-group/dist/index.cjs +158 -1
  229. package/dist/node_modules/.pnpm/@radix-ui_react-toggle-group@1.1.19_@types_react-dom@19.3.0_@types_react@19.3.0__@types_e645c0ca626436d86b14232bd158d09b/node_modules/@radix-ui/react-toggle-group/dist/index.js +128 -98
  230. package/dist/node_modules/.pnpm/@radix-ui_react-toggle@1.1.18_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react_f121473145ec675e8ab50657e8e97e06/node_modules/@radix-ui/react-toggle/dist/index.cjs +39 -1
  231. package/dist/node_modules/.pnpm/@radix-ui_react-toggle@1.1.18_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react_f121473145ec675e8ab50657e8e97e06/node_modules/@radix-ui/react-toggle/dist/index.js +29 -24
  232. package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +19 -1
  233. package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +13 -11
  234. package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.2.6_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +109 -1
  235. package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.2.6_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +91 -68
  236. package/dist/node_modules/.pnpm/@radix-ui_react-use-effect-event@0.0.5_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-effect-event/dist/index.cjs +28 -1
  237. package/dist/node_modules/.pnpm/@radix-ui_react-use-effect-event@0.0.5_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-effect-event/dist/index.js +22 -17
  238. package/dist/node_modules/.pnpm/@radix-ui_react-use-is-hydrated@0.1.3_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-is-hydrated/dist/index.cjs +33 -1
  239. package/dist/node_modules/.pnpm/@radix-ui_react-use-is-hydrated@0.1.3_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +25 -19
  240. package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs +7 -1
  241. package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +3 -3
  242. package/dist/node_modules/.pnpm/@radix-ui_react-use-previous@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-previous/dist/index.cjs +25 -1
  243. package/dist/node_modules/.pnpm/@radix-ui_react-use-previous@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-previous/dist/index.js +18 -11
  244. package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-size/dist/index.cjs +47 -1
  245. package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-size/dist/index.js +38 -28
  246. package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.2.11_@types_react-dom@19.3.0_@types_react@19.3.0__@ty_ef452cff5863a129db7ebc4b37ab07c3/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs +38 -1
  247. package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.2.11_@types_react-dom@19.3.0_@types_react@19.3.0__@ty_ef452cff5863a129db7ebc4b37ab07c3/node_modules/@radix-ui/react-visually-hidden/dist/index.js +19 -15
  248. package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.cjs +106 -1
  249. package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js +95 -34
  250. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/addLeadingZeros.cjs +5 -1
  251. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/addLeadingZeros.js +3 -3
  252. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/defaultOptions.cjs +6 -1
  253. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/defaultOptions.js +4 -4
  254. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/formatters.cjs +423 -1
  255. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/formatters.js +237 -202
  256. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/lightFormatters.cjs +45 -1
  257. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/lightFormatters.js +35 -32
  258. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/longFormatters.cjs +42 -1
  259. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/longFormatters.js +37 -32
  260. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.cjs +20 -1
  261. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +18 -5
  262. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/normalizeDates.cjs +7 -1
  263. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/normalizeDates.js +5 -5
  264. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/protectedTokens.cjs +27 -1
  265. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/protectedTokens.js +15 -12
  266. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constants.cjs +45 -1
  267. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constants.js +41 -4
  268. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constructFrom.cjs +45 -1
  269. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constructFrom.js +42 -4
  270. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/differenceInCalendarDays.cjs +49 -1
  271. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/differenceInCalendarDays.js +46 -8
  272. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/format.cjs +358 -1
  273. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/format.js +341 -45
  274. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getDayOfYear.cjs +31 -1
  275. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getDayOfYear.js +28 -7
  276. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeek.cjs +35 -1
  277. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeek.js +32 -8
  278. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeekYear.cjs +44 -1
  279. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeekYear.js +41 -11
  280. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeek.cjs +49 -1
  281. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeek.js +46 -8
  282. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeekYear.cjs +61 -1
  283. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeekYear.js +58 -12
  284. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isDate.cjs +38 -1
  285. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isDate.js +35 -3
  286. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isValid.cjs +39 -1
  287. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isValid.js +36 -5
  288. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.cjs +8 -1
  289. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +5 -5
  290. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.cjs +50 -1
  291. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +45 -11
  292. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchFn.cjs +27 -1
  293. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchFn.js +20 -14
  294. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.cjs +18 -1
  295. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +13 -12
  296. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.cjs +77 -1
  297. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +14 -5
  298. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatLong.cjs +31 -1
  299. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatLong.js +6 -6
  300. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.cjs +11 -1
  301. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +4 -3
  302. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/localize.cjs +210 -1
  303. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/localize.js +197 -188
  304. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/match.cjs +122 -1
  305. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/match.js +12 -12
  306. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US.cjs +28 -1
  307. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US.js +20 -12
  308. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfDay.cjs +34 -1
  309. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfDay.js +31 -5
  310. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeek.cjs +37 -1
  311. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeek.js +32 -5
  312. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeekYear.cjs +41 -1
  313. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeekYear.js +38 -7
  314. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeek.cjs +45 -1
  315. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeek.js +42 -6
  316. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeekYear.cjs +56 -1
  317. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeekYear.js +53 -8
  318. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfYear.cjs +35 -1
  319. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfYear.js +32 -5
  320. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/toDate.cjs +45 -1
  321. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/toDate.js +42 -4
  322. package/dist/node_modules/.pnpm/embla-carousel-react@8.6.0_react@19.3.1/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.cjs +34 -1
  323. package/dist/node_modules/.pnpm/embla-carousel-react@8.6.0_react@19.3.1/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js +32 -21
  324. package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.cjs +39 -1
  325. package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +27 -20
  326. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +1391 -1
  327. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.js +1178 -803
  328. package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.cjs +7 -1
  329. package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js +3 -4
  330. package/dist/node_modules/.pnpm/input-otp@1.4.2_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/input-otp/dist/index.cjs +369 -2
  331. package/dist/node_modules/.pnpm/input-otp@1.4.2_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/input-otp/dist/index.js +282 -238
  332. package/dist/node_modules/.pnpm/react-hook-form@7.83.0_react@19.3.1/node_modules/react-hook-form/dist/index.esm.cjs +625 -1
  333. package/dist/node_modules/.pnpm/react-hook-form@7.83.0_react@19.3.1/node_modules/react-hook-form/dist/index.esm.js +545 -276
  334. package/dist/node_modules/.pnpm/react-number-format@5.4.5_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-number-format/dist/react-number-format.es.cjs +1033 -9
  335. package/dist/node_modules/.pnpm/react-number-format@5.4.5_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-number-format/dist/react-number-format.es.js +898 -460
  336. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/component.cjs +47 -38
  337. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/component.js +38 -64
  338. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/constants.cjs +13 -1
  339. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +9 -2
  340. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/index.cjs +4 -1
  341. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/utils.cjs +36 -1
  342. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +25 -16
  343. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/Combination.cjs +15 -1
  344. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/Combination.js +10 -10
  345. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs +167 -4
  346. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +144 -93
  347. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/UI.cjs +63 -1
  348. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/UI.js +45 -35
  349. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.cjs +14 -1
  350. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +11 -9
  351. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/handleScroll.cjs +84 -1
  352. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +75 -43
  353. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/medium.cjs +3 -1
  354. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/medium.js +3 -3
  355. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/sidecar.cjs +6 -1
  356. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/sidecar.js +5 -5
  357. package/dist/node_modules/.pnpm/react-resizable-panels@2.1.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-resizable-panels/dist/react-resizable-panels.browser.esm.cjs +1617 -1
  358. package/dist/node_modules/.pnpm/react-resizable-panels@2.1.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-resizable-panels/dist/react-resizable-panels.browser.esm.js +1332 -874
  359. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/component.cjs +18 -1
  360. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/component.js +15 -7
  361. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/hook.cjs +26 -1
  362. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/hook.js +20 -10
  363. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/index.cjs +4 -1
  364. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/singleton.cjs +40 -1
  365. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/singleton.js +29 -16
  366. package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.cjs +36 -1
  367. package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.js +25 -14
  368. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.3.0_react@19.3.1/node_modules/use-callback-ref/dist/es2015/assignRef.cjs +20 -1
  369. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.3.0_react@19.3.1/node_modules/use-callback-ref/dist/es2015/assignRef.js +18 -3
  370. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.3.0_react@19.3.1/node_modules/use-callback-ref/dist/es2015/useMergeRef.cjs +46 -1
  371. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.3.0_react@19.3.1/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +38 -19
  372. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.3.0_react@19.3.1/node_modules/use-callback-ref/dist/es2015/useRef.cjs +39 -1
  373. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.3.0_react@19.3.1/node_modules/use-callback-ref/dist/es2015/useRef.js +29 -11
  374. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.3.0_react@19.3.1/node_modules/use-sidecar/dist/es2015/exports.cjs +18 -1
  375. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.3.0_react@19.3.1/node_modules/use-sidecar/dist/es2015/exports.js +13 -12
  376. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.3.0_react@19.3.1/node_modules/use-sidecar/dist/es2015/medium.cjs +81 -1
  377. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.3.0_react@19.3.1/node_modules/use-sidecar/dist/es2015/medium.js +58 -45
  378. package/dist/node_modules/.pnpm/vaul@1.1.2_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@19.3.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/vaul/dist/index.cjs +1252 -3
  379. package/dist/node_modules/.pnpm/vaul@1.1.2_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@19.3.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/vaul/dist/index.js +1003 -648
  380. package/dist/theme/index.cjs +63 -1
  381. package/dist/theme/index.js +31 -31
  382. package/dist/theme/spacing.cjs +93 -1
  383. package/dist/theme/spacing.js +52 -26
  384. package/dist/theme/tokens.stylex.cjs +210 -1
  385. package/dist/theme/tokens.stylex.js +58 -26
  386. package/dist/theme/types.cjs +13 -1
  387. package/dist/theme/types.js +4 -3
  388. package/dist/theme/width.cjs +39 -1
  389. package/dist/theme/width.js +16 -4
  390. package/dist/theme/zIndex.cjs +62 -1
  391. package/dist/theme/zIndex.d.ts +4 -4
  392. package/dist/theme/zIndex.d.ts.map +1 -1
  393. package/dist/theme/zIndex.js +44 -15
  394. package/dist/theme.css +167 -9
  395. package/dist/ui/accordion.cjs +431 -1
  396. package/dist/ui/accordion.d.ts +10 -10
  397. package/dist/ui/accordion.d.ts.map +1 -1
  398. package/dist/ui/accordion.js +276 -136
  399. package/dist/ui/action-bar.cjs +274 -1
  400. package/dist/ui/action-bar.d.ts +11 -11
  401. package/dist/ui/action-bar.d.ts.map +1 -1
  402. package/dist/ui/action-bar.js +204 -98
  403. package/dist/ui/alert-dialog.cjs +538 -1
  404. package/dist/ui/alert-dialog.d.ts +19 -19
  405. package/dist/ui/alert-dialog.d.ts.map +1 -1
  406. package/dist/ui/alert-dialog.js +459 -167
  407. package/dist/ui/alert.cjs +163 -1
  408. package/dist/ui/alert.d.ts +7 -7
  409. package/dist/ui/alert.d.ts.map +1 -1
  410. package/dist/ui/alert.js +111 -50
  411. package/dist/ui/aspect-ratio.cjs +24 -1
  412. package/dist/ui/aspect-ratio.d.ts +2 -2
  413. package/dist/ui/aspect-ratio.d.ts.map +1 -1
  414. package/dist/ui/aspect-ratio.js +22 -13
  415. package/dist/ui/avatar.cjs +340 -1
  416. package/dist/ui/avatar.d.ts +10 -10
  417. package/dist/ui/avatar.d.ts.map +1 -1
  418. package/dist/ui/avatar.js +226 -115
  419. package/dist/ui/badge-overflow.cjs +66 -1
  420. package/dist/ui/badge-overflow.d.ts +5 -5
  421. package/dist/ui/badge-overflow.d.ts.map +1 -1
  422. package/dist/ui/badge-overflow.js +34 -27
  423. package/dist/ui/badge.cjs +167 -1
  424. package/dist/ui/badge.d.ts +3 -3
  425. package/dist/ui/badge.d.ts.map +1 -1
  426. package/dist/ui/badge.js +48 -42
  427. package/dist/ui/breadcrumb.cjs +508 -1
  428. package/dist/ui/breadcrumb.d.ts +15 -15
  429. package/dist/ui/breadcrumb.d.ts.map +1 -1
  430. package/dist/ui/breadcrumb.js +386 -159
  431. package/dist/ui/button.cjs +425 -1
  432. package/dist/ui/button.d.ts +3 -3
  433. package/dist/ui/button.d.ts.map +1 -1
  434. package/dist/ui/button.js +137 -117
  435. package/dist/ui/calendar.cjs +625 -1
  436. package/dist/ui/calendar.d.ts +5 -5
  437. package/dist/ui/calendar.d.ts.map +1 -1
  438. package/dist/ui/calendar.js +309 -193
  439. package/dist/ui/card.cjs +401 -1
  440. package/dist/ui/card.d.ts +15 -15
  441. package/dist/ui/card.d.ts.map +1 -1
  442. package/dist/ui/card.js +300 -119
  443. package/dist/ui/carousel.cjs +332 -1
  444. package/dist/ui/carousel.d.ts +10 -10
  445. package/dist/ui/carousel.d.ts.map +1 -1
  446. package/dist/ui/carousel.js +245 -127
  447. package/dist/ui/checkbox.cjs +163 -1
  448. package/dist/ui/checkbox.d.ts +4 -4
  449. package/dist/ui/checkbox.d.ts.map +1 -1
  450. package/dist/ui/checkbox.js +62 -58
  451. package/dist/ui/circular-progress.cjs +144 -1
  452. package/dist/ui/circular-progress.d.ts +5 -5
  453. package/dist/ui/circular-progress.d.ts.map +1 -1
  454. package/dist/ui/circular-progress.js +85 -67
  455. package/dist/ui/code-block.cjs +823 -0
  456. package/dist/ui/code-block.d.ts +89 -0
  457. package/dist/ui/code-block.d.ts.map +1 -0
  458. package/dist/ui/code-block.js +813 -0
  459. package/dist/ui/collapsible.cjs +64 -1
  460. package/dist/ui/collapsible.d.ts +4 -4
  461. package/dist/ui/collapsible.d.ts.map +1 -1
  462. package/dist/ui/collapsible.js +58 -29
  463. package/dist/ui/command.cjs +556 -1
  464. package/dist/ui/command.d.ts +19 -19
  465. package/dist/ui/command.d.ts.map +1 -1
  466. package/dist/ui/command.js +432 -163
  467. package/dist/ui/compare-slider.cjs +169 -1
  468. package/dist/ui/compare-slider.d.ts +8 -7
  469. package/dist/ui/compare-slider.d.ts.map +1 -1
  470. package/dist/ui/compare-slider.js +106 -73
  471. package/dist/ui/context-menu.cjs +810 -1
  472. package/dist/ui/context-menu.d.ts +26 -26
  473. package/dist/ui/context-menu.d.ts.map +1 -1
  474. package/dist/ui/context-menu.js +693 -229
  475. package/dist/ui/copy-button.cjs +93 -1
  476. package/dist/ui/copy-button.d.ts +1 -2
  477. package/dist/ui/copy-button.d.ts.map +1 -1
  478. package/dist/ui/copy-button.js +56 -45
  479. package/dist/ui/dialog.cjs +411 -1
  480. package/dist/ui/dialog.d.ts +18 -18
  481. package/dist/ui/dialog.d.ts.map +1 -1
  482. package/dist/ui/dialog.js +319 -131
  483. package/dist/ui/drawer.cjs +478 -1
  484. package/dist/ui/drawer.d.ts +17 -17
  485. package/dist/ui/drawer.d.ts.map +1 -1
  486. package/dist/ui/drawer.js +396 -151
  487. package/dist/ui/dropdown-menu.cjs +638 -1
  488. package/dist/ui/dropdown-menu.d.ts +26 -26
  489. package/dist/ui/dropdown-menu.d.ts.map +1 -1
  490. package/dist/ui/dropdown-menu.js +511 -208
  491. package/dist/ui/editable.cjs +609 -1
  492. package/dist/ui/editable.d.ts +14 -14
  493. package/dist/ui/editable.d.ts.map +1 -1
  494. package/dist/ui/editable.js +479 -218
  495. package/dist/ui/empty.cjs +295 -1
  496. package/dist/ui/empty.d.ts +15 -15
  497. package/dist/ui/empty.d.ts.map +1 -1
  498. package/dist/ui/empty.js +267 -112
  499. package/dist/ui/field.cjs +621 -1
  500. package/dist/ui/field.d.ts +21 -21
  501. package/dist/ui/field.d.ts.map +1 -1
  502. package/dist/ui/field.js +468 -198
  503. package/dist/ui/file-upload-adapters.cjs +289 -1
  504. package/dist/ui/file-upload-adapters.d.ts +1 -2
  505. package/dist/ui/file-upload-adapters.d.ts.map +1 -1
  506. package/dist/ui/file-upload-adapters.js +244 -170
  507. package/dist/ui/file-upload.cjs +1480 -1
  508. package/dist/ui/file-upload.d.ts +22 -22
  509. package/dist/ui/file-upload.d.ts.map +1 -1
  510. package/dist/ui/file-upload.js +1064 -599
  511. package/dist/ui/flex.cjs +202 -1
  512. package/dist/ui/flex.d.ts +7 -6
  513. package/dist/ui/flex.d.ts.map +1 -1
  514. package/dist/ui/flex.js +111 -93
  515. package/dist/ui/form.cjs +453 -1
  516. package/dist/ui/form.d.ts +11 -11
  517. package/dist/ui/form.d.ts.map +1 -1
  518. package/dist/ui/form.js +421 -136
  519. package/dist/ui/gauge.cjs +125 -1
  520. package/dist/ui/gauge.d.ts +7 -6
  521. package/dist/ui/gauge.d.ts.map +1 -1
  522. package/dist/ui/gauge.js +60 -53
  523. package/dist/ui/grid.cjs +224 -1
  524. package/dist/ui/grid.d.ts +11 -7
  525. package/dist/ui/grid.d.ts.map +1 -1
  526. package/dist/ui/grid.js +126 -96
  527. package/dist/ui/hover-card.cjs +85 -1
  528. package/dist/ui/hover-card.d.ts +6 -6
  529. package/dist/ui/hover-card.d.ts.map +1 -1
  530. package/dist/ui/hover-card.js +57 -37
  531. package/dist/ui/index.d.ts +4 -0
  532. package/dist/ui/index.d.ts.map +1 -1
  533. package/dist/ui/input-group.cjs +322 -1
  534. package/dist/ui/input-group.d.ts +12 -12
  535. package/dist/ui/input-group.d.ts.map +1 -1
  536. package/dist/ui/input-group.js +203 -107
  537. package/dist/ui/input-otp.cjs +312 -1
  538. package/dist/ui/input-otp.d.ts +10 -10
  539. package/dist/ui/input-otp.d.ts.map +1 -1
  540. package/dist/ui/input-otp.js +217 -94
  541. package/dist/ui/input.cjs +388 -1
  542. package/dist/ui/input.d.ts +3 -3
  543. package/dist/ui/input.d.ts.map +1 -1
  544. package/dist/ui/input.js +137 -119
  545. package/dist/ui/item.cjs +585 -1
  546. package/dist/ui/item.d.ts +20 -20
  547. package/dist/ui/item.d.ts.map +1 -1
  548. package/dist/ui/item.js +460 -162
  549. package/dist/ui/kbd.cjs +115 -1
  550. package/dist/ui/kbd.d.ts +5 -5
  551. package/dist/ui/kbd.d.ts.map +1 -1
  552. package/dist/ui/kbd.js +42 -37
  553. package/dist/ui/label.cjs +67 -1
  554. package/dist/ui/label.d.ts +4 -4
  555. package/dist/ui/label.d.ts.map +1 -1
  556. package/dist/ui/label.js +51 -21
  557. package/dist/ui/marker.cjs +297 -0
  558. package/dist/ui/marker.d.ts +25 -0
  559. package/dist/ui/marker.d.ts.map +1 -0
  560. package/dist/ui/marker.js +293 -0
  561. package/dist/ui/masonry.cjs +56 -1
  562. package/dist/ui/masonry.d.ts +4 -4
  563. package/dist/ui/masonry.d.ts.map +1 -1
  564. package/dist/ui/masonry.js +40 -37
  565. package/dist/ui/menubar.cjs +907 -1
  566. package/dist/ui/menubar.d.ts +29 -29
  567. package/dist/ui/menubar.d.ts.map +1 -1
  568. package/dist/ui/menubar.js +737 -252
  569. package/dist/ui/navigation-menu.cjs +560 -1
  570. package/dist/ui/navigation-menu.d.ts +18 -18
  571. package/dist/ui/navigation-menu.d.ts.map +1 -1
  572. package/dist/ui/navigation-menu.js +442 -148
  573. package/dist/ui/pagination.cjs +575 -1
  574. package/dist/ui/pagination.d.ts +13 -13
  575. package/dist/ui/pagination.d.ts.map +1 -1
  576. package/dist/ui/pagination.js +422 -172
  577. package/dist/ui/popover.cjs +93 -1
  578. package/dist/ui/popover.d.ts +7 -7
  579. package/dist/ui/popover.d.ts.map +1 -1
  580. package/dist/ui/popover.js +61 -42
  581. package/dist/ui/progress.cjs +34 -1
  582. package/dist/ui/progress.d.ts +3 -3
  583. package/dist/ui/progress.d.ts.map +1 -1
  584. package/dist/ui/progress.js +21 -18
  585. package/dist/ui/questionnaire.cjs +682 -0
  586. package/dist/ui/questionnaire.d.ts +111 -0
  587. package/dist/ui/questionnaire.d.ts.map +1 -0
  588. package/dist/ui/questionnaire.js +670 -0
  589. package/dist/ui/radio-group.cjs +221 -1
  590. package/dist/ui/radio-group.d.ts +6 -6
  591. package/dist/ui/radio-group.d.ts.map +1 -1
  592. package/dist/ui/radio-group.js +125 -74
  593. package/dist/ui/rating.cjs +190 -1
  594. package/dist/ui/rating.d.ts +4 -3
  595. package/dist/ui/rating.d.ts.map +1 -1
  596. package/dist/ui/rating.js +96 -79
  597. package/dist/ui/resizable.cjs +174 -1
  598. package/dist/ui/resizable.d.ts +7 -7
  599. package/dist/ui/resizable.d.ts.map +1 -1
  600. package/dist/ui/resizable.js +150 -55
  601. package/dist/ui/responsive-dialog.cjs +400 -1
  602. package/dist/ui/responsive-dialog.d.ts +17 -17
  603. package/dist/ui/responsive-dialog.d.ts.map +1 -1
  604. package/dist/ui/responsive-dialog.js +372 -155
  605. package/dist/ui/row-col.cjs +508 -1
  606. package/dist/ui/row-col.d.ts +13 -11
  607. package/dist/ui/row-col.d.ts.map +1 -1
  608. package/dist/ui/row-col.js +238 -207
  609. package/dist/ui/scroll-area.cjs +129 -1
  610. package/dist/ui/scroll-area.d.ts +6 -6
  611. package/dist/ui/scroll-area.d.ts.map +1 -1
  612. package/dist/ui/scroll-area.js +92 -49
  613. package/dist/ui/segmented.cjs +169 -1
  614. package/dist/ui/segmented.d.ts +6 -5
  615. package/dist/ui/segmented.d.ts.map +1 -1
  616. package/dist/ui/segmented.js +75 -63
  617. package/dist/ui/select.cjs +484 -1
  618. package/dist/ui/select.d.ts +17 -17
  619. package/dist/ui/select.d.ts.map +1 -1
  620. package/dist/ui/select.js +353 -160
  621. package/dist/ui/separator.cjs +44 -1
  622. package/dist/ui/separator.d.ts +4 -4
  623. package/dist/ui/separator.d.ts.map +1 -1
  624. package/dist/ui/separator.js +17 -17
  625. package/dist/ui/sheet.cjs +462 -1
  626. package/dist/ui/sheet.d.ts +16 -16
  627. package/dist/ui/sheet.d.ts.map +1 -1
  628. package/dist/ui/sheet.js +331 -141
  629. package/dist/ui/sidebar.cjs +1452 -1
  630. package/dist/ui/sidebar.d.ts +48 -48
  631. package/dist/ui/sidebar.d.ts.map +1 -1
  632. package/dist/ui/sidebar.js +1057 -439
  633. package/dist/ui/signature-pad.cjs +741 -0
  634. package/dist/ui/signature-pad.d.ts +115 -0
  635. package/dist/ui/signature-pad.d.ts.map +1 -0
  636. package/dist/ui/signature-pad.js +731 -0
  637. package/dist/ui/skeleton.cjs +62 -1
  638. package/dist/ui/skeleton.d.ts +3 -3
  639. package/dist/ui/skeleton.d.ts.map +1 -1
  640. package/dist/ui/skeleton.js +50 -20
  641. package/dist/ui/slider.cjs +47 -1
  642. package/dist/ui/slider.d.ts +4 -4
  643. package/dist/ui/slider.d.ts.map +1 -1
  644. package/dist/ui/slider.js +27 -26
  645. package/dist/ui/sonner.cjs +28 -1
  646. package/dist/ui/sonner.js +24 -22
  647. package/dist/ui/spinner.cjs +73 -1
  648. package/dist/ui/spinner.d.ts +3 -3
  649. package/dist/ui/spinner.d.ts.map +1 -1
  650. package/dist/ui/spinner.js +29 -28
  651. package/dist/ui/stat.cjs +320 -1
  652. package/dist/ui/stat.d.ts +15 -15
  653. package/dist/ui/stat.d.ts.map +1 -1
  654. package/dist/ui/stat.js +275 -148
  655. package/dist/ui/stepper.cjs +785 -1
  656. package/dist/ui/stepper.d.ts +24 -24
  657. package/dist/ui/stepper.d.ts.map +1 -1
  658. package/dist/ui/stepper.js +594 -281
  659. package/dist/ui/switch.cjs +199 -1
  660. package/dist/ui/switch.d.ts +4 -4
  661. package/dist/ui/switch.d.ts.map +1 -1
  662. package/dist/ui/switch.js +79 -72
  663. package/dist/ui/table.cjs +435 -1
  664. package/dist/ui/table.d.ts +17 -17
  665. package/dist/ui/table.d.ts.map +1 -1
  666. package/dist/ui/table.js +369 -129
  667. package/dist/ui/tabs.cjs +340 -1
  668. package/dist/ui/tabs.d.ts +10 -10
  669. package/dist/ui/tabs.d.ts.map +1 -1
  670. package/dist/ui/tabs.js +204 -95
  671. package/dist/ui/tags-input.cjs +585 -1
  672. package/dist/ui/tags-input.d.ts +13 -13
  673. package/dist/ui/tags-input.d.ts.map +1 -1
  674. package/dist/ui/tags-input.js +446 -221
  675. package/dist/ui/textarea.cjs +119 -1
  676. package/dist/ui/textarea.d.ts +3 -3
  677. package/dist/ui/textarea.d.ts.map +1 -1
  678. package/dist/ui/textarea.js +37 -33
  679. package/dist/ui/timeline.cjs +583 -1
  680. package/dist/ui/timeline.d.ts +22 -22
  681. package/dist/ui/timeline.d.ts.map +1 -1
  682. package/dist/ui/timeline.js +409 -198
  683. package/dist/ui/toggle-group.cjs +128 -1
  684. package/dist/ui/toggle-group.d.ts +7 -7
  685. package/dist/ui/toggle-group.d.ts.map +1 -1
  686. package/dist/ui/toggle-group.js +92 -41
  687. package/dist/ui/toggle.cjs +145 -1
  688. package/dist/ui/toggle.d.ts +4 -4
  689. package/dist/ui/toggle.d.ts.map +1 -1
  690. package/dist/ui/toggle.js +38 -34
  691. package/dist/ui/tooltip.cjs +81 -1
  692. package/dist/ui/tooltip.d.ts +7 -7
  693. package/dist/ui/tooltip.d.ts.map +1 -1
  694. package/dist/ui/tooltip.js +50 -37
  695. package/dist/ui/useBreakpoint.cjs +91 -1
  696. package/dist/ui/useBreakpoint.js +66 -43
  697. package/dist/utils.cjs +4 -1
  698. package/dist/utils.d.ts +2 -12
  699. package/dist/utils.d.ts.map +1 -1
  700. package/dist/utils.js +3 -6
  701. package/package.json +10 -2
@@ -1,15 +1,15 @@
1
- import { Icons as e } from "../../Icons/Icons.js";
2
- import { Text as t } from "../../Typography/Text.js";
3
- import { Button as n } from "../../ui/button.js";
4
- import { FieldError as r } from "../../ui/field.js";
5
- import { createApiUploadHandler as i, createUploadThingUploadHandler as a, formatFileSize as o } from "../../ui/file-upload-adapters.js";
6
- import { FileUpload as s, FileUploadClear as c, FileUploadDropzone as l, FileUploadItem as u, FileUploadItemDelete as d, FileUploadItemMetadata as f, FileUploadItemPreview as p, FileUploadItemProgress as m, FileUploadList as h, FileUploadTrigger as ee, useFileUpload as g } from "../../ui/file-upload.js";
7
- import * as _ from "@stylexjs/stylex";
8
- import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
9
- import { useCallback as x, useEffect as S, useMemo as C, useRef as w, useState as te } from "react";
10
- import { c as T } from "react/compiler-runtime";
1
+ import { Icons } from "../../Icons/Icons.js";
2
+ import { Text } from "../../Typography/Text.js";
3
+ import { Button } from "../../ui/button.js";
4
+ import { FieldError } from "../../ui/field.js";
5
+ import { createApiUploadHandler, createUploadThingUploadHandler, formatFileSize } from "../../ui/file-upload-adapters.js";
6
+ import { FileUpload as FileUploadRoot, FileUploadClear, FileUploadDropzone, FileUploadItem, FileUploadItemDelete, FileUploadItemMetadata, FileUploadItemPreview, FileUploadItemProgress, FileUploadList, FileUploadTrigger, useFileUpload } from "../../ui/file-upload.js";
7
+ import * as stylex from "@stylexjs/stylex";
8
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
9
+ import { useCallback, useEffect, useMemo, useRef, useState } from "react";
10
+ import { c } from "react/compiler-runtime";
11
11
  // src/Form/FormFileUpload/FileUpload.tsx
12
- var E = {
12
+ var styles = {
13
13
  avatarDropzone: {
14
14
  kVAEAm: "x1n2onr6",
15
15
  kzqmXN: "x1eyvef",
@@ -28,7 +28,7 @@ var E = {
28
28
  k1ekBW: "xq90yva",
29
29
  kIyJzY: "x13dflua",
30
30
  kaVNsj: "x14aqmuz",
31
- $$css: !0
31
+ $$css: true
32
32
  },
33
33
  avatarItem: {
34
34
  kVAEAm: "x1n2onr6",
@@ -39,7 +39,7 @@ var E = {
39
39
  kaIpWk: "x2u8bby",
40
40
  kMzoRj: "xc342km",
41
41
  kmVPX3: "x1717udv",
42
- $$css: !0
42
+ $$css: true
43
43
  },
44
44
  avatarPreview: {
45
45
  kzqmXN: "xh8yej3",
@@ -47,13 +47,13 @@ var E = {
47
47
  kaIpWk: "x2u8bby",
48
48
  kMzoRj: "xc342km",
49
49
  kWkggS: "xjbqb8w",
50
- $$css: !0
50
+ $$css: true
51
51
  },
52
52
  avatarImg: {
53
53
  kzqmXN: "xh8yej3",
54
54
  kZKoxP: "x5yr21d",
55
55
  kVIFPx: "xl1xv1r",
56
- $$css: !0
56
+ $$css: true
57
57
  },
58
58
  compactDropzone: {
59
59
  kVAEAm: "x1n2onr6",
@@ -72,13 +72,13 @@ var E = {
72
72
  kIyJzY: "xx6bhzk",
73
73
  kaVNsj: "x14aqmuz",
74
74
  kGzVvX: "x9p52ec",
75
- $$css: !0
75
+ $$css: true
76
76
  },
77
77
  clearBtnRow: {
78
78
  k1xSpc: "x78zum5",
79
79
  kjj79g: "x13a6bvl",
80
80
  kzqmXN: "xh8yej3",
81
- $$css: !0
81
+ $$css: true
82
82
  },
83
83
  clearBtn: {
84
84
  k1xSpc: "x3nfvp2",
@@ -93,7 +93,7 @@ var E = {
93
93
  kaIpWk: "xqfady0",
94
94
  kGzVvX: "x9p52ec",
95
95
  kDPRdz: "x1mqvv6a",
96
- $$css: !0
96
+ $$css: true
97
97
  },
98
98
  deleteBtn: {
99
99
  k1xSpc: "x3nfvp2",
@@ -111,345 +111,491 @@ var E = {
111
111
  kIyJzY: "xx6bhzk",
112
112
  kGzVvX: "x9p52ec",
113
113
  kDPRdz: "x1mqvv6a",
114
- $$css: !0
114
+ $$css: true
115
115
  },
116
116
  whiteText: {
117
117
  kMwMTN: "xstwp1q",
118
- $$css: !0
118
+ $$css: true
119
119
  }
120
120
  };
121
- function ne(e) {
122
- let t = T(7), { onChange: n, autoUpload: r, maxFiles: i, onResetReject: a } = e, o = g(j), s = w(null), c = w(!0), l, u;
123
- return t[0] !== r || t[1] !== i || t[2] !== n || t[3] !== a || t[4] !== o ? (l = () => {
124
- if (!n) return;
125
- let e = Array.from(o.files.values());
126
- if (c.current && (c.current = !1, e.length === 0)) return;
127
- let t = (() => {
128
- if (r) {
129
- let t = e.filter(A).map(k).filter(O);
130
- return i === 1 ? t.length > 0 ? t[t.length - 1] : null : t;
121
+ /**
122
+ * Internal synchronizer component that monitors file store mutations
123
+ * and propagates updated file references or uploaded URL strings to onChange.
124
+ */
125
+ function FileUploadSync(t0) {
126
+ const $ = c(7);
127
+ const { onChange, autoUpload, maxFiles, onResetReject } = t0;
128
+ const store = useFileUpload(_temp);
129
+ const lastValueRef = useRef(null);
130
+ const isFirstRenderRef = useRef(true);
131
+ let t1;
132
+ let t2;
133
+ if ($[0] !== autoUpload || $[1] !== maxFiles || $[2] !== onChange || $[3] !== onResetReject || $[4] !== store) {
134
+ t1 = () => {
135
+ if (!onChange) return;
136
+ const currentFiles = Array.from(store.files.values());
137
+ if (isFirstRenderRef.current) {
138
+ isFirstRenderRef.current = false;
139
+ if (currentFiles.length === 0) return;
131
140
  }
132
- let t = e.map(D);
133
- return i === 1 ? t.length > 0 ? t[t.length - 1] : null : t;
134
- })(), l = s.current;
135
- (r ? JSON.stringify(l) === JSON.stringify(t) : Array.isArray(t) && Array.isArray(l) ? t.length === l.length && t.every((e, t) => e === l[t]) : t === l) || (s.current = t, n(t), a?.());
136
- }, u = [
137
- o,
138
- r,
139
- i,
140
- n,
141
- a
142
- ], t[0] = r, t[1] = i, t[2] = n, t[3] = a, t[4] = o, t[5] = l, t[6] = u) : (l = t[5], u = t[6]), S(l, u), null;
141
+ const newValue = (() => {
142
+ if (autoUpload) {
143
+ const urls = currentFiles.filter(_temp2).map(_temp3).filter(_temp4);
144
+ return maxFiles === 1 ? urls.length > 0 ? urls[urls.length - 1] : null : urls;
145
+ }
146
+ const files = currentFiles.map(_temp5);
147
+ return maxFiles === 1 ? files.length > 0 ? files[files.length - 1] : null : files;
148
+ })();
149
+ const last = lastValueRef.current;
150
+ if (!(() => {
151
+ if (autoUpload) return JSON.stringify(last) === JSON.stringify(newValue);
152
+ if (Array.isArray(newValue) && Array.isArray(last)) return newValue.length === last.length && newValue.every((f, i) => f === last[i]);
153
+ return newValue === last;
154
+ })()) {
155
+ lastValueRef.current = newValue;
156
+ onChange(newValue);
157
+ onResetReject?.();
158
+ }
159
+ };
160
+ t2 = [
161
+ store,
162
+ autoUpload,
163
+ maxFiles,
164
+ onChange,
165
+ onResetReject
166
+ ];
167
+ $[0] = autoUpload;
168
+ $[1] = maxFiles;
169
+ $[2] = onChange;
170
+ $[3] = onResetReject;
171
+ $[4] = store;
172
+ $[5] = t1;
173
+ $[6] = t2;
174
+ } else {
175
+ t1 = $[5];
176
+ t2 = $[6];
177
+ }
178
+ useEffect(t1, t2);
179
+ return null;
143
180
  }
144
- function D(e) {
145
- return e.file;
181
+ function _temp5(fs_1) {
182
+ return fs_1.file;
146
183
  }
147
- function O(e) {
148
- return !!e;
184
+ function _temp4(u) {
185
+ return Boolean(u);
149
186
  }
150
- function k(e) {
151
- return e.file.uploadedUrl;
187
+ function _temp3(fs_0) {
188
+ return fs_0.file.uploadedUrl;
152
189
  }
153
- function A(e) {
154
- return e.status === "success";
190
+ function _temp2(fs) {
191
+ return fs.status === "success";
155
192
  }
156
- function j(e) {
157
- return e;
193
+ function _temp(state) {
194
+ return state;
158
195
  }
159
- function re(e, t = "") {
160
- let n = e.split("/").pop()?.split("?")[0] || "file", r = n.split(".").pop()?.toLowerCase(), i = r && {
196
+ function urlToStubFile(url, accept = "") {
197
+ const fileName = url.split("/").pop()?.split("?")[0] || "file";
198
+ const ext = fileName.split(".").pop()?.toLowerCase();
199
+ let type = ext && {
161
200
  jpg: "image/jpeg",
162
201
  jpeg: "image/jpeg",
163
202
  png: "image/png",
164
203
  gif: "image/gif",
165
204
  webp: "image/webp",
166
205
  pdf: "application/pdf"
167
- }[r];
168
- i ||= t.includes("image") ? "image/jpeg" : "application/octet-stream";
169
- let a = new File([""], n, { type: i });
170
- return a.isUploadedUrl = !0, a.uploadedUrl = e, a;
206
+ }[ext];
207
+ if (!type) type = accept.includes("image") ? "image/jpeg" : "application/octet-stream";
208
+ const file = new File([""], fileName, { type });
209
+ file.isUploadedUrl = true;
210
+ file.uploadedUrl = url;
211
+ return file;
171
212
  }
172
- function M({ showPreview: t, showProgress: r, orientation: i = "vertical", avatarImgSx: a, deleteBtnSx: o }) {
173
- let s = g((e) => Array.from(e.files.values()).map((e) => e.file));
174
- return s.length === 0 ? null : /* @__PURE__ */ y(h, {
175
- orientation: i,
176
- children: s.map((s, c) => /* @__PURE__ */ b(u, {
177
- value: s,
213
+ function FileUploadItemsList({ showPreview, showProgress, orientation = "vertical", avatarImgSx, deleteBtnSx }) {
214
+ const files = useFileUpload((state) => Array.from(state.files.values()).map((fs) => fs.file));
215
+ if (files.length === 0) return null;
216
+ return /* @__PURE__ */ jsx(FileUploadList, {
217
+ orientation,
218
+ children: files.map((file, i) => /* @__PURE__ */ jsxs(FileUploadItem, {
219
+ value: file,
178
220
  children: [
179
- t && /* @__PURE__ */ y(p, { render: (e, t) => {
180
- let n = e.uploadedUrl || (e.type.startsWith("image/") && typeof URL < "u" && URL.createObjectURL ? URL.createObjectURL(e) : null);
181
- return n && e.type.startsWith("image/") ? /* @__PURE__ */ y("img", {
182
- src: n,
183
- alt: e.name,
184
- ..._.props(a)
185
- }) : t();
221
+ showPreview && /* @__PURE__ */ jsx(FileUploadItemPreview, { render: (previewFile, fallback) => {
222
+ const url = previewFile.uploadedUrl || (previewFile.type.startsWith("image/") && typeof URL !== "undefined" && URL.createObjectURL ? URL.createObjectURL(previewFile) : null);
223
+ if (url && previewFile.type.startsWith("image/")) return /* @__PURE__ */ jsx("img", {
224
+ src: url,
225
+ alt: previewFile.name,
226
+ ...stylex.props(avatarImgSx)
227
+ });
228
+ return fallback();
186
229
  } }),
187
- /* @__PURE__ */ y(f, {}),
188
- r && /* @__PURE__ */ y(m, { variant: "bottom" }),
189
- /* @__PURE__ */ y(d, {
190
- asChild: !0,
191
- children: /* @__PURE__ */ y(n, {
230
+ /* @__PURE__ */ jsx(FileUploadItemMetadata, {}),
231
+ showProgress && /* @__PURE__ */ jsx(FileUploadItemProgress, { variant: "bottom" }),
232
+ /* @__PURE__ */ jsx(FileUploadItemDelete, {
233
+ asChild: true,
234
+ children: /* @__PURE__ */ jsx(Button, {
192
235
  variant: "ghost",
193
236
  size: "icon",
194
- "aria-label": `Delete ${s.name}`,
195
- sx: o,
196
- children: /* @__PURE__ */ y(e.Trash2, { size: i === "horizontal" ? 15 : 16 })
237
+ "aria-label": `Delete ${file.name}`,
238
+ sx: deleteBtnSx,
239
+ children: /* @__PURE__ */ jsx(Icons.Trash2, { size: orientation === "horizontal" ? 15 : 16 })
197
240
  })
198
241
  })
199
242
  ]
200
- }, `${s.name}-${c}`))
243
+ }, `${file.name}-${i}`))
201
244
  });
202
245
  }
203
- function N(t) {
204
- let n = T(10), { clearBtnRowSx: r, clearBtnSx: i } = t;
205
- if (g(P) === 0) return null;
206
- let a;
207
- n[0] === r ? a = n[1] : (a = _.props(r), n[0] = r, n[1] = a);
208
- let o;
209
- n[2] === i ? o = n[3] : (o = _.props(i), n[2] = i, n[3] = o);
210
- let s;
211
- n[4] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ y(e.Trash2, { size: 13 }), n[4] = s) : s = n[4];
212
- let l;
213
- n[5] === o ? l = n[6] : (l = /* @__PURE__ */ y(c, {
214
- asChild: !0,
215
- children: /* @__PURE__ */ b("button", {
216
- type: "button",
217
- ...o,
218
- children: [s, "Clear all"]
219
- })
220
- }), n[5] = o, n[6] = l);
221
- let u;
222
- return n[7] !== a || n[8] !== l ? (u = /* @__PURE__ */ y("div", {
223
- ...a,
224
- children: l
225
- }), n[7] = a, n[8] = l, n[9] = u) : u = n[9], u;
246
+ function FileUploadClearRow(t0) {
247
+ const $ = c(10);
248
+ const { clearBtnRowSx, clearBtnSx } = t0;
249
+ if (useFileUpload(_temp6) === 0) return null;
250
+ let t1;
251
+ if ($[0] !== clearBtnRowSx) {
252
+ t1 = stylex.props(clearBtnRowSx);
253
+ $[0] = clearBtnRowSx;
254
+ $[1] = t1;
255
+ } else t1 = $[1];
256
+ let t2;
257
+ if ($[2] !== clearBtnSx) {
258
+ t2 = stylex.props(clearBtnSx);
259
+ $[2] = clearBtnSx;
260
+ $[3] = t2;
261
+ } else t2 = $[3];
262
+ let t3;
263
+ if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
264
+ t3 = /* @__PURE__ */ jsx(Icons.Trash2, { size: 13 });
265
+ $[4] = t3;
266
+ } else t3 = $[4];
267
+ let t4;
268
+ if ($[5] !== t2) {
269
+ t4 = /* @__PURE__ */ jsx(FileUploadClear, {
270
+ asChild: true,
271
+ children: /* @__PURE__ */ jsxs("button", {
272
+ type: "button",
273
+ ...t2,
274
+ children: [t3, "Clear all"]
275
+ })
276
+ });
277
+ $[5] = t2;
278
+ $[6] = t4;
279
+ } else t4 = $[6];
280
+ let t5;
281
+ if ($[7] !== t1 || $[8] !== t4) {
282
+ t5 = /* @__PURE__ */ jsx("div", {
283
+ ...t1,
284
+ children: t4
285
+ });
286
+ $[7] = t1;
287
+ $[8] = t4;
288
+ $[9] = t5;
289
+ } else t5 = $[9];
290
+ return t5;
226
291
  }
227
- function P(e) {
228
- return e.files.size;
292
+ function _temp6(state) {
293
+ return state.files.size;
229
294
  }
230
- function F(n) {
231
- let r = T(9), { showProgress: i, maxSize: a, errorElem: s } = n, c = g(L), d;
232
- r[0] !== c || r[1] !== i ? (d = /* @__PURE__ */ y(l, {
233
- sx: E.avatarDropzone,
234
- children: c ? /* @__PURE__ */ b(u, {
235
- value: c,
236
- sx: E.avatarItem,
295
+ /**
296
+ * Dedicated renderer for circular profile avatar dropzones.
297
+ */
298
+ function FileUploadAvatarRenderer(t0) {
299
+ const $ = c(9);
300
+ const { showProgress, maxSize, errorElem } = t0;
301
+ const file = useFileUpload(_temp7);
302
+ let t1;
303
+ if ($[0] !== file || $[1] !== showProgress) {
304
+ t1 = /* @__PURE__ */ jsx(FileUploadDropzone, {
305
+ sx: styles.avatarDropzone,
306
+ children: file ? /* @__PURE__ */ jsxs(FileUploadItem, {
307
+ value: file,
308
+ sx: styles.avatarItem,
309
+ children: [
310
+ /* @__PURE__ */ jsx(FileUploadItemPreview, {
311
+ sx: styles.avatarPreview,
312
+ render: _temp8
313
+ }),
314
+ /* @__PURE__ */ jsxs("div", {
315
+ className: "x10l6tqk x10a8y8t x78zum5 xdt5ytf x6s0dn4 xl56j7k xvh977a xa44r0r xstwp1q xg01cxk x19991ni x13dflua x1o7uuvo",
316
+ children: [/* @__PURE__ */ jsx(Icons.Camera, { size: 22 }), /* @__PURE__ */ jsx(Text, {
317
+ size: "xs",
318
+ weight: "semibold",
319
+ sx: styles.whiteText,
320
+ children: "Change photo"
321
+ })]
322
+ }),
323
+ showProgress && /* @__PURE__ */ jsx(FileUploadItemProgress, {
324
+ variant: "fill",
325
+ style: { opacity: .5 }
326
+ })
327
+ ]
328
+ }) : /* @__PURE__ */ jsxs("div", {
329
+ className: "x78zum5 xh8yej3 x5yr21d xdt5ytf x6s0dn4 xl56j7k xvh977a x1jgryid xw3nh4a x15406qy x13dflua",
330
+ children: [/* @__PURE__ */ jsx(Icons.Camera, { size: 24 }), /* @__PURE__ */ jsx(Text, {
331
+ size: "xs",
332
+ weight: "medium",
333
+ children: "Upload"
334
+ })]
335
+ })
336
+ });
337
+ $[0] = file;
338
+ $[1] = showProgress;
339
+ $[2] = t1;
340
+ } else t1 = $[2];
341
+ let t2;
342
+ if ($[3] !== maxSize) {
343
+ t2 = maxSize ? /* @__PURE__ */ jsxs(Text, {
344
+ size: "xs",
345
+ type: "muted",
346
+ children: ["Max ", formatFileSize(maxSize)]
347
+ }) : null;
348
+ $[3] = maxSize;
349
+ $[4] = t2;
350
+ } else t2 = $[4];
351
+ let t3;
352
+ if ($[5] !== errorElem || $[6] !== t1 || $[7] !== t2) {
353
+ t3 = /* @__PURE__ */ jsxs("div", {
354
+ className: "x78zum5 xdt5ytf x6s0dn4 x13z6uf9",
237
355
  children: [
238
- /* @__PURE__ */ y(p, {
239
- sx: E.avatarPreview,
240
- render: I
241
- }),
242
- /* @__PURE__ */ b("div", {
243
- className: "x10l6tqk x10a8y8t x78zum5 xdt5ytf x6s0dn4 xl56j7k xvh977a xa44r0r xstwp1q xg01cxk x19991ni x13dflua x1o7uuvo",
244
- children: [/* @__PURE__ */ y(e.Camera, { size: 22 }), /* @__PURE__ */ y(t, {
245
- size: "xs",
246
- weight: "semibold",
247
- sx: E.whiteText,
248
- children: "Change photo"
249
- })]
250
- }),
251
- i && /* @__PURE__ */ y(m, {
252
- variant: "fill",
253
- style: { opacity: .5 }
254
- })
356
+ t1,
357
+ t2,
358
+ errorElem
255
359
  ]
256
- }) : /* @__PURE__ */ b("div", {
257
- className: "x78zum5 xh8yej3 x5yr21d xdt5ytf x6s0dn4 xl56j7k xvh977a x1jgryid xw3nh4a x15406qy x13dflua",
258
- children: [/* @__PURE__ */ y(e.Camera, { size: 24 }), /* @__PURE__ */ y(t, {
259
- size: "xs",
260
- weight: "medium",
261
- children: "Upload"
262
- })]
263
- })
264
- }), r[0] = c, r[1] = i, r[2] = d) : d = r[2];
265
- let f;
266
- r[3] === a ? f = r[4] : (f = a ? /* @__PURE__ */ b(t, {
267
- size: "xs",
268
- type: "muted",
269
- children: ["Max ", o(a)]
270
- }) : null, r[3] = a, r[4] = f);
271
- let h;
272
- return r[5] !== s || r[6] !== d || r[7] !== f ? (h = /* @__PURE__ */ b("div", {
273
- className: "x78zum5 xdt5ytf x6s0dn4 x13z6uf9",
274
- children: [
275
- d,
276
- f,
277
- s
278
- ]
279
- }), r[5] = s, r[6] = d, r[7] = f, r[8] = h) : h = r[8], h;
360
+ });
361
+ $[5] = errorElem;
362
+ $[6] = t1;
363
+ $[7] = t2;
364
+ $[8] = t3;
365
+ } else t3 = $[8];
366
+ return t3;
280
367
  }
281
- function I(n) {
282
- let r = n.uploadedUrl || (n.type.startsWith("image/") && typeof URL < "u" && URL.createObjectURL ? URL.createObjectURL(n) : null);
283
- return r ? /* @__PURE__ */ y("img", {
284
- src: r,
368
+ /**
369
+ * Resolves an array of error objects from explicit errors, a single error,
370
+ * or rejection error messages captured during file validation.
371
+ *
372
+ * @param explicitErrors Array of error objects passed via props
373
+ * @param singleError Single error string or object passed via props
374
+ * @param rejectMessages Rejection messages captured during file validation
375
+ * @returns Array of errors formatted for FieldError, or undefined if none exist
376
+ */
377
+ function _temp8(previewFile) {
378
+ const url = previewFile.uploadedUrl || (previewFile.type.startsWith("image/") && typeof URL !== "undefined" && URL.createObjectURL ? URL.createObjectURL(previewFile) : null);
379
+ if (url) return /* @__PURE__ */ jsx("img", {
380
+ src: url,
285
381
  alt: "Avatar",
286
382
  className: "xh8yej3 x5yr21d xl1xv1r"
287
- }) : /* @__PURE__ */ b("div", {
383
+ });
384
+ return /* @__PURE__ */ jsxs("div", {
288
385
  className: "x78zum5 xh8yej3 x5yr21d xdt5ytf x6s0dn4 xl56j7k xvh977a x1jgryid xw3nh4a x15406qy x13dflua",
289
- children: [/* @__PURE__ */ y(e.Camera, { size: 24 }), /* @__PURE__ */ y(t, {
386
+ children: [/* @__PURE__ */ jsx(Icons.Camera, { size: 24 }), /* @__PURE__ */ jsx(Text, {
290
387
  size: "xs",
291
388
  weight: "medium",
292
389
  children: "Upload"
293
390
  })]
294
391
  });
295
392
  }
296
- function L(e) {
297
- let t = e.files.values().next();
298
- return t.done ? null : t.value.file;
393
+ function _temp7(state) {
394
+ const first = state.files.values().next();
395
+ return first.done ? null : first.value.file;
299
396
  }
300
- function ie(e, t, n = []) {
301
- if (e && e.length > 0) return e;
302
- if (t) return [typeof t == "string" ? { message: t } : t];
303
- if (n.length > 0) return n.map((e) => ({ message: e }));
397
+ function resolveDisplayErrors(explicitErrors, singleError, rejectMessages = []) {
398
+ if (explicitErrors && explicitErrors.length > 0) return explicitErrors;
399
+ if (singleError) return [typeof singleError === "string" ? { message: singleError } : singleError];
400
+ if (rejectMessages.length > 0) return rejectMessages.map((message) => ({ message }));
304
401
  }
305
- function R({ value: c, onChange: u, autoUpload: d = !1, uploadFile: f, apiConfig: p, uploadThingConfig: m, uploadHandler: h, maxFiles: g = 1, maxSize: _ = 5242880, minSize: T, accept: D = "image/*", multiple: O, disabled: k, className: A, sx: j, variant: P = "default", dropzoneTitle: I, dropzoneSubtitle: L, icon: R, showFileList: z = !0, showProgress: B = !0, showPreview: V = !0, showClear: H = !1, error: U, errors: W, onFileReject: G, onAccept: K, hideError: ae = !1, invalid: oe, "aria-invalid": se }) {
306
- let [q, J] = te([]), ce = x((e, t) => {
307
- J((e) => e.includes(t) ? e : [...e, t]), G?.(e, t);
308
- }, [G]), le = x((e) => {
309
- J([]), K?.(e);
310
- }, [K]), ue = x(() => {
311
- J([]);
402
+ /**
403
+ * Rich, accessible File Upload control styled with Meta StyleX.
404
+ * Supports auto-upload via UploadThing (AWS S3) or custom HTTP APIs,
405
+ * as well as manual deferred upload on form submission.
406
+ */
407
+ function FileUpload({ value, onChange, autoUpload = false, uploadFile, apiConfig, uploadThingConfig, uploadHandler, maxFiles = 1, maxSize = 5242880, minSize, accept = "image/*", multiple, disabled, className, sx, variant = "default", dropzoneTitle, dropzoneSubtitle, icon, showFileList = true, showProgress = true, showPreview = true, showClear = false, error, errors, onFileReject, onAccept, hideError = false, invalid, "aria-invalid": ariaInvalid }) {
408
+ const [rejectErrors, setRejectErrors] = useState([]);
409
+ const handleFileReject = useCallback((file, message) => {
410
+ setRejectErrors((prev) => prev.includes(message) ? prev : [...prev, message]);
411
+ onFileReject?.(file, message);
412
+ }, [onFileReject]);
413
+ const handleAccept = useCallback((files) => {
414
+ setRejectErrors([]);
415
+ onAccept?.(files);
416
+ }, [onAccept]);
417
+ const handleResetReject = useCallback(() => {
418
+ setRejectErrors([]);
312
419
  }, []);
313
- S(() => {
314
- J([]);
315
- }, [c]);
316
- let Y = C(() => ie(W, U, q), [
317
- W,
318
- U,
319
- q
320
- ]), X = !ae && Y && Y.length > 0 ? /* @__PURE__ */ y(r, { errors: Y }) : null, Z = w(/* @__PURE__ */ new Map()), de = C(() => (Array.isArray(c) ? c : c ? [c] : []).map((e) => {
321
- if (e instanceof File) return e;
322
- if (typeof e == "string") {
323
- let t = Z.current.get(e);
324
- return t || (t = re(e, D), Z.current.set(e, t)), t;
325
- }
326
- return e;
327
- }), [c, D]), Q = C(() => h || (m ? a(m) : p ? i(p) : null), [
328
- h,
329
- m,
330
- p
331
- ]), fe = async (e, t) => {
332
- if (!d) e.forEach((e) => t.onSuccess(e));
333
- else if (Q) try {
334
- (await Q(e, {
335
- onProgress: t.onProgress,
336
- onSuccess: (e, n) => {
337
- e.uploadedUrl = n.url, t.onSuccess(e);
338
- },
339
- onError: (e, n) => {
340
- t.onError(e, n);
420
+ useEffect(() => {
421
+ setRejectErrors([]);
422
+ }, [value]);
423
+ const displayErrors = useMemo(() => resolveDisplayErrors(errors, error, rejectErrors), [
424
+ errors,
425
+ error,
426
+ rejectErrors
427
+ ]);
428
+ const errorElem = !hideError && displayErrors && displayErrors.length > 0 ? /* @__PURE__ */ jsx(FieldError, { errors: displayErrors }) : null;
429
+ const cachedStubsRef = useRef(/* @__PURE__ */ new Map());
430
+ const mappedFiles = useMemo(() => {
431
+ return (Array.isArray(value) ? value : value ? [value] : []).map((item) => {
432
+ if (item instanceof File) return item;
433
+ if (typeof item === "string") {
434
+ let stub = cachedStubsRef.current.get(item);
435
+ if (!stub) {
436
+ stub = urlToStubFile(item, accept);
437
+ cachedStubsRef.current.set(item, stub);
341
438
  }
342
- })).forEach((t, n) => {
343
- let r = e[n];
344
- r && (r.uploadedUrl = t.url);
345
- });
346
- } catch {}
347
- else f ? await Promise.all(e.map(async (e) => {
348
- let n = e;
349
- if (n.isUploadedUrl) t.onSuccess(e);
350
- else try {
351
- t.onProgress(e, 20), n.uploadedUrl = await f(e), t.onProgress(e, 100), t.onSuccess(e);
352
- } catch (n) {
353
- t.onError(e, n instanceof Error ? n : /* @__PURE__ */ Error("Upload failed"));
439
+ return stub;
354
440
  }
355
- })) : (console.warn("FileUpload: autoUpload is true but no upload handler or config was provided."), e.forEach((e) => t.onError(e, /* @__PURE__ */ Error("Missing upload configuration"))));
356
- }, $ = `${g > 1 ? `Up to ${g} files` : "1 file max"} ${_ ? `(Max ${o(_)})` : ""}`;
357
- return /* @__PURE__ */ b(s, {
358
- value: de,
359
- maxFiles: P === "avatar" ? 1 : g,
360
- maxSize: _,
361
- minSize: T,
362
- accept: D,
363
- multiple: P === "avatar" ? !1 : O ?? g > 1,
364
- disabled: k,
365
- invalid: !!(oe || se || Y && Y.length > 0),
366
- onUpload: fe,
367
- onFileReject: ce,
368
- onAccept: le,
369
- className: A,
370
- sx: j,
371
- children: [/* @__PURE__ */ y(ne, {
372
- onChange: u,
373
- autoUpload: !!d,
374
- maxFiles: P === "avatar" ? 1 : g,
375
- onResetReject: ue
376
- }), P === "avatar" ? /* @__PURE__ */ y(F, {
377
- showProgress: B,
378
- maxSize: _,
379
- errorElem: X
380
- }) : P === "compact" ? /* @__PURE__ */ b(v, { children: [
381
- /* @__PURE__ */ b(l, {
382
- sx: E.compactDropzone,
383
- children: [
384
- /* @__PURE__ */ y("div", {
385
- className: "x78zum5 x6s0dn4 xl56j7k xs5h3dt xettwda x9psvww xmkeg23 x1y0btm7 xb30jbz x1rexohn xw3nh4a x2lah0s",
386
- children: R || /* @__PURE__ */ y(e.CloudUpload, { size: 18 })
387
- }),
388
- /* @__PURE__ */ b("div", {
389
- className: "x78zum5 xdt5ytf x98rzlu xeuugli",
390
- children: [/* @__PURE__ */ y(t, {
391
- size: "sm",
392
- weight: "medium",
393
- children: I || "Choose or drop files to upload"
394
- }), /* @__PURE__ */ y(t, {
395
- size: "xs",
396
- type: "muted",
397
- children: L || $
398
- })]
399
- }),
400
- /* @__PURE__ */ y(ee, {
401
- asChild: !0,
402
- children: /* @__PURE__ */ y(n, {
403
- variant: "outline",
404
- size: "sm",
405
- disabled: k,
406
- children: "Browse"
407
- })
408
- })
409
- ]
410
- }),
411
- H && /* @__PURE__ */ y(N, {
412
- clearBtnRowSx: E.clearBtnRow,
413
- clearBtnSx: E.clearBtn
414
- }),
415
- z && /* @__PURE__ */ y(M, {
416
- showPreview: V,
417
- showProgress: B,
418
- orientation: "horizontal",
419
- avatarImgSx: E.avatarImg,
420
- deleteBtnSx: E.deleteBtn
421
- }),
422
- X
423
- ] }) : /* @__PURE__ */ b(v, { children: [
424
- /* @__PURE__ */ b(l, { children: [
425
- /* @__PURE__ */ y("div", {
426
- className: "x78zum5 x6s0dn4 xl56j7k xvm51jw xwaiz5r x9psvww xmkeg23 x1y0btm7 xb30jbz x1rexohn xw3nh4a x1hpqcdg",
427
- children: R || /* @__PURE__ */ y(e.CloudUpload, { size: 20 })
441
+ return item;
442
+ });
443
+ }, [value, accept]);
444
+ const resolvedUploadHandler = useMemo(() => {
445
+ if (uploadHandler) return uploadHandler;
446
+ if (uploadThingConfig) return createUploadThingUploadHandler(uploadThingConfig);
447
+ if (apiConfig) return createApiUploadHandler(apiConfig);
448
+ return null;
449
+ }, [
450
+ uploadHandler,
451
+ uploadThingConfig,
452
+ apiConfig
453
+ ]);
454
+ const handleUpload = async (filesToUpload, options) => {
455
+ if (!autoUpload) {
456
+ filesToUpload.forEach((f) => options.onSuccess(f));
457
+ return;
458
+ }
459
+ if (resolvedUploadHandler) {
460
+ try {
461
+ (await resolvedUploadHandler(filesToUpload, {
462
+ onProgress: options.onProgress,
463
+ onSuccess: (file_0, result) => {
464
+ file_0.uploadedUrl = result.url;
465
+ options.onSuccess(file_0);
466
+ },
467
+ onError: (file_1, error_0) => {
468
+ options.onError(file_1, error_0);
469
+ }
470
+ })).forEach((res, index) => {
471
+ const file_2 = filesToUpload[index];
472
+ if (file_2) file_2.uploadedUrl = res.url;
473
+ });
474
+ } catch {}
475
+ return;
476
+ }
477
+ if (uploadFile) {
478
+ await Promise.all(filesToUpload.map(async (file_3) => {
479
+ const extendedFile = file_3;
480
+ if (extendedFile.isUploadedUrl) {
481
+ options.onSuccess(file_3);
482
+ return;
483
+ }
484
+ try {
485
+ options.onProgress(file_3, 20);
486
+ extendedFile.uploadedUrl = await uploadFile(file_3);
487
+ options.onProgress(file_3, 100);
488
+ options.onSuccess(file_3);
489
+ } catch (error_1) {
490
+ options.onError(file_3, error_1 instanceof Error ? error_1 : /* @__PURE__ */ new Error("Upload failed"));
491
+ }
492
+ }));
493
+ return;
494
+ }
495
+ console.warn("FileUpload: autoUpload is true but no upload handler or config was provided.");
496
+ filesToUpload.forEach((f_0) => options.onError(f_0, /* @__PURE__ */ new Error("Missing upload configuration")));
497
+ };
498
+ const defaultTitle = "Drag & drop files here, or click to select";
499
+ const defaultSubtitle = `${maxFiles > 1 ? `Up to ${maxFiles} files` : "1 file max"} ${maxSize ? `(Max ${formatFileSize(maxSize)})` : ""}`;
500
+ const isMultiple = variant === "avatar" ? false : multiple ?? maxFiles > 1;
501
+ const renderCompactVariant = () => /* @__PURE__ */ jsxs(Fragment, { children: [
502
+ /* @__PURE__ */ jsxs(FileUploadDropzone, {
503
+ sx: styles.compactDropzone,
504
+ children: [
505
+ /* @__PURE__ */ jsx("div", {
506
+ className: "x78zum5 x6s0dn4 xl56j7k xs5h3dt xettwda x9psvww xmkeg23 x1y0btm7 xb30jbz x1rexohn xw3nh4a x2lah0s",
507
+ children: icon || /* @__PURE__ */ jsx(Icons.CloudUpload, { size: 18 })
428
508
  }),
429
- /* @__PURE__ */ y(t, {
430
- size: "md",
431
- weight: "medium",
432
- children: I || "Drag & drop files here, or click to select"
509
+ /* @__PURE__ */ jsxs("div", {
510
+ className: "x78zum5 xdt5ytf x98rzlu xeuugli",
511
+ children: [/* @__PURE__ */ jsx(Text, {
512
+ size: "sm",
513
+ weight: "medium",
514
+ children: dropzoneTitle || "Choose or drop files to upload"
515
+ }), /* @__PURE__ */ jsx(Text, {
516
+ size: "xs",
517
+ type: "muted",
518
+ children: dropzoneSubtitle || defaultSubtitle
519
+ })]
433
520
  }),
434
- /* @__PURE__ */ y(t, {
435
- size: "xs",
436
- type: "muted",
437
- children: L || $
521
+ /* @__PURE__ */ jsx(FileUploadTrigger, {
522
+ asChild: true,
523
+ children: /* @__PURE__ */ jsx(Button, {
524
+ variant: "outline",
525
+ size: "sm",
526
+ disabled,
527
+ children: "Browse"
528
+ })
438
529
  })
439
- ] }),
440
- H && /* @__PURE__ */ y(N, {
441
- clearBtnRowSx: E.clearBtnRow,
442
- clearBtnSx: E.clearBtn
530
+ ]
531
+ }),
532
+ showClear && /* @__PURE__ */ jsx(FileUploadClearRow, {
533
+ clearBtnRowSx: styles.clearBtnRow,
534
+ clearBtnSx: styles.clearBtn
535
+ }),
536
+ showFileList && /* @__PURE__ */ jsx(FileUploadItemsList, {
537
+ showPreview,
538
+ showProgress,
539
+ orientation: "horizontal",
540
+ avatarImgSx: styles.avatarImg,
541
+ deleteBtnSx: styles.deleteBtn
542
+ }),
543
+ errorElem
544
+ ] });
545
+ const renderDefaultVariant = () => /* @__PURE__ */ jsxs(Fragment, { children: [
546
+ /* @__PURE__ */ jsxs(FileUploadDropzone, { children: [
547
+ /* @__PURE__ */ jsx("div", {
548
+ className: "x78zum5 x6s0dn4 xl56j7k xvm51jw xwaiz5r x9psvww xmkeg23 x1y0btm7 xb30jbz x1rexohn xw3nh4a x1hpqcdg",
549
+ children: icon || /* @__PURE__ */ jsx(Icons.CloudUpload, { size: 20 })
443
550
  }),
444
- z && /* @__PURE__ */ y(M, {
445
- showPreview: V,
446
- showProgress: B,
447
- orientation: "vertical",
448
- avatarImgSx: E.avatarImg,
449
- deleteBtnSx: E.deleteBtn
551
+ /* @__PURE__ */ jsx(Text, {
552
+ size: "md",
553
+ weight: "medium",
554
+ children: dropzoneTitle || defaultTitle
450
555
  }),
451
- X
452
- ] })]
556
+ /* @__PURE__ */ jsx(Text, {
557
+ size: "xs",
558
+ type: "muted",
559
+ children: dropzoneSubtitle || defaultSubtitle
560
+ })
561
+ ] }),
562
+ showClear && /* @__PURE__ */ jsx(FileUploadClearRow, {
563
+ clearBtnRowSx: styles.clearBtnRow,
564
+ clearBtnSx: styles.clearBtn
565
+ }),
566
+ showFileList && /* @__PURE__ */ jsx(FileUploadItemsList, {
567
+ showPreview,
568
+ showProgress,
569
+ orientation: "vertical",
570
+ avatarImgSx: styles.avatarImg,
571
+ deleteBtnSx: styles.deleteBtn
572
+ }),
573
+ errorElem
574
+ ] });
575
+ return /* @__PURE__ */ jsxs(FileUploadRoot, {
576
+ value: mappedFiles,
577
+ maxFiles: variant === "avatar" ? 1 : maxFiles,
578
+ maxSize,
579
+ minSize,
580
+ accept,
581
+ multiple: isMultiple,
582
+ disabled,
583
+ invalid: Boolean(invalid || ariaInvalid || displayErrors && displayErrors.length > 0),
584
+ onUpload: handleUpload,
585
+ onFileReject: handleFileReject,
586
+ onAccept: handleAccept,
587
+ className,
588
+ sx,
589
+ children: [/* @__PURE__ */ jsx(FileUploadSync, {
590
+ onChange,
591
+ autoUpload: Boolean(autoUpload),
592
+ maxFiles: variant === "avatar" ? 1 : maxFiles,
593
+ onResetReject: handleResetReject
594
+ }), variant === "avatar" ? /* @__PURE__ */ jsx(FileUploadAvatarRenderer, {
595
+ showProgress,
596
+ maxSize,
597
+ errorElem
598
+ }) : variant === "compact" ? renderCompactVariant() : renderDefaultVariant()]
453
599
  });
454
600
  }
455
- export { R as FileUpload };
601
+ export { FileUpload };