@vlrc-fe/components 3.0.2 → 3.0.4

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 (685) hide show
  1. package/CHANGELOG.md +30 -1
  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 +276 -1
  6. package/dist/ConfirmModal.js +119 -103
  7. package/dist/DataTable/DataTable.cjs +203 -1
  8. package/dist/DataTable/DataTable.js +161 -120
  9. package/dist/DataTable/components/DataTableColumnHeader.cjs +214 -1
  10. package/dist/DataTable/components/DataTableColumnHeader.d.ts +3 -3
  11. package/dist/DataTable/components/DataTableColumnHeader.d.ts.map +1 -1
  12. package/dist/DataTable/components/DataTableColumnHeader.js +201 -103
  13. package/dist/DataTable/components/DataTableFacetedFilter.cjs +332 -1
  14. package/dist/DataTable/components/DataTableFacetedFilter.d.ts +3 -3
  15. package/dist/DataTable/components/DataTableFacetedFilter.d.ts.map +1 -1
  16. package/dist/DataTable/components/DataTableFacetedFilter.js +285 -181
  17. package/dist/DataTable/components/DataTablePagination.cjs +200 -1
  18. package/dist/DataTable/components/DataTablePagination.js +188 -91
  19. package/dist/DataTable/components/DataTableRowActions.cjs +172 -1
  20. package/dist/DataTable/components/DataTableRowActions.js +161 -62
  21. package/dist/DataTable/components/DataTableTable.cjs +100 -1
  22. package/dist/DataTable/components/DataTableTable.js +87 -35
  23. package/dist/DataTable/components/DataTableToolbar.cjs +112 -1
  24. package/dist/DataTable/components/DataTableToolbar.js +106 -44
  25. package/dist/DataTable/components/DataTableViewOptions.cjs +113 -1
  26. package/dist/DataTable/components/DataTableViewOptions.js +105 -44
  27. package/dist/DataTable/render/createColumns.cjs +84 -1
  28. package/dist/DataTable/render/createColumns.js +65 -44
  29. package/dist/DataTable/render/defaults.cjs +38 -1
  30. package/dist/DataTable/render/defaults.js +18 -13
  31. package/dist/Dropdown/Dropdown.cjs +255 -1
  32. package/dist/Dropdown/Dropdown.js +138 -108
  33. package/dist/Form/Form.cjs +439 -1
  34. package/dist/Form/Form.js +417 -206
  35. package/dist/Form/FormDatePicker/FormDatePicker.cjs +84 -1
  36. package/dist/Form/FormDatePicker/FormDatePicker.js +68 -65
  37. package/dist/Form/FormDatePicker/MonthPickerPanel.cjs +217 -1
  38. package/dist/Form/FormDatePicker/MonthPickerPanel.js +194 -101
  39. package/dist/Form/FormDatePicker/RangeDatePicker.cjs +144 -1
  40. package/dist/Form/FormDatePicker/RangeDatePicker.js +94 -77
  41. package/dist/Form/FormDatePicker/SingleDatePicker.cjs +191 -1
  42. package/dist/Form/FormDatePicker/SingleDatePicker.js +144 -114
  43. package/dist/Form/FormDatePicker/TimeInput.cjs +172 -1
  44. package/dist/Form/FormDatePicker/TimeInput.js +162 -79
  45. package/dist/Form/FormDatePicker/TimePicker.cjs +107 -1
  46. package/dist/Form/FormDatePicker/TimePicker.js +58 -43
  47. package/dist/Form/FormDatePicker/YearPickerPanel.cjs +184 -1
  48. package/dist/Form/FormDatePicker/YearPickerPanel.js +164 -84
  49. package/dist/Form/FormDatePicker/types.cjs +10 -1
  50. package/dist/Form/FormDatePicker/types.js +8 -3
  51. package/dist/Form/FormDatePicker/useFormDatePicker.cjs +70 -1
  52. package/dist/Form/FormDatePicker/useFormDatePicker.js +58 -31
  53. package/dist/Form/FormFileUpload/FileUpload.cjs +603 -1
  54. package/dist/Form/FormFileUpload/FileUpload.d.ts +41 -3
  55. package/dist/Form/FormFileUpload/FileUpload.d.ts.map +1 -1
  56. package/dist/Form/FormFileUpload/FileUpload.js +454 -275
  57. package/dist/Form/FormFileUpload/index.cjs +175 -1
  58. package/dist/Form/FormFileUpload/index.d.ts.map +1 -1
  59. package/dist/Form/FormFileUpload/index.js +170 -28
  60. package/dist/Form/FormMultiSelect/FormMultiSelect.cjs +46 -1
  61. package/dist/Form/FormMultiSelect/FormMultiSelect.js +42 -22
  62. package/dist/Form/FormNumberInput/FormNumberInput.cjs +71 -1
  63. package/dist/Form/FormNumberInput/FormNumberInput.js +60 -58
  64. package/dist/Form/FormNumberInput/StepperControls.cjs +104 -1
  65. package/dist/Form/FormNumberInput/StepperControls.js +78 -43
  66. package/dist/Form/FormNumberInput/useFormNumberInput.cjs +72 -1
  67. package/dist/Form/FormNumberInput/useFormNumberInput.js +68 -39
  68. package/dist/Form/FormRadioGroup/FormRadio.cjs +65 -1
  69. package/dist/Form/FormRadioGroup/FormRadio.js +38 -38
  70. package/dist/Form/FormRadioGroup/useFormRadio.cjs +38 -1
  71. package/dist/Form/FormRadioGroup/useFormRadio.js +27 -16
  72. package/dist/Form/FormSelect/FormSelect.cjs +46 -1
  73. package/dist/Form/FormSelect/FormSelect.js +40 -26
  74. package/dist/Form/FormSelect/useFormSelect.cjs +58 -1
  75. package/dist/Form/FormSelect/useFormSelect.js +52 -43
  76. package/dist/Icons/Icons.cjs +155 -1
  77. package/dist/Icons/Icons.js +142 -142
  78. package/dist/Modal.cjs +135 -1
  79. package/dist/Modal.js +67 -54
  80. package/dist/MultiSelect/MultiSelect.cjs +211 -1
  81. package/dist/MultiSelect/MultiSelect.js +127 -117
  82. package/dist/MultiSelect/renderers.cjs +571 -1
  83. package/dist/MultiSelect/renderers.js +508 -309
  84. package/dist/MultiSelect/useMultiSelect.cjs +243 -1
  85. package/dist/MultiSelect/useMultiSelect.js +207 -127
  86. package/dist/MultiSelect/utils.cjs +123 -1
  87. package/dist/MultiSelect/utils.js +79 -51
  88. package/dist/Select/BaseSelect.cjs +265 -1
  89. package/dist/Select/BaseSelect.js +165 -126
  90. package/dist/Select/MultiSelectTags.cjs +129 -1
  91. package/dist/Select/MultiSelectTags.js +82 -56
  92. package/dist/Typography/Blockquote.cjs +79 -1
  93. package/dist/Typography/Blockquote.js +40 -38
  94. package/dist/Typography/Code.cjs +131 -1
  95. package/dist/Typography/Code.js +64 -58
  96. package/dist/Typography/Link.cjs +141 -1
  97. package/dist/Typography/Link.d.ts +1 -2
  98. package/dist/Typography/Link.d.ts.map +1 -1
  99. package/dist/Typography/Link.js +74 -63
  100. package/dist/Typography/Paragraph.cjs +226 -1
  101. package/dist/Typography/Paragraph.d.ts +1 -2
  102. package/dist/Typography/Paragraph.d.ts.map +1 -1
  103. package/dist/Typography/Paragraph.js +119 -107
  104. package/dist/Typography/Text.cjs +224 -1
  105. package/dist/Typography/Text.d.ts +1 -2
  106. package/dist/Typography/Text.d.ts.map +1 -1
  107. package/dist/Typography/Text.js +117 -100
  108. package/dist/Typography/Title.cjs +220 -1
  109. package/dist/Typography/Title.d.ts +1 -2
  110. package/dist/Typography/Title.d.ts.map +1 -1
  111. package/dist/Typography/Title.js +125 -103
  112. package/dist/Typography/Typography.cjs +17 -1
  113. package/dist/Typography/Typography.js +14 -14
  114. package/dist/Typography/index.d.ts +1 -1
  115. package/dist/Typography/index.d.ts.map +1 -1
  116. package/dist/Typography/index.js +13 -13
  117. package/dist/Typography/tooltip.cjs +42 -1
  118. package/dist/Typography/tooltip.js +34 -14
  119. package/dist/Typography/types.cjs +20 -1
  120. package/dist/Typography/types.js +5 -2
  121. package/dist/Typography/utils.cjs +52 -1
  122. package/dist/Typography/utils.js +48 -21
  123. package/dist/Typography/weightStyles.cjs +58 -1
  124. package/dist/Typography/weightStyles.js +26 -25
  125. package/dist/_virtual/_rolldown/runtime.cjs +32 -1
  126. package/dist/_virtual/_rolldown/runtime.js +9 -7
  127. package/dist/assets/stylex.css +135 -1
  128. package/dist/astryx.cjs +18 -1
  129. package/dist/astryx.d.ts.map +1 -1
  130. package/dist/astryx.js +2 -1
  131. package/dist/index.cjs +789 -1
  132. package/dist/index.js +122 -118
  133. package/dist/layout/Box.cjs +203 -1
  134. package/dist/layout/Box.d.ts +8 -8
  135. package/dist/layout/Box.d.ts.map +1 -1
  136. package/dist/layout/Box.js +138 -49
  137. package/dist/layout/Center.cjs +51 -1
  138. package/dist/layout/Center.d.ts +3 -3
  139. package/dist/layout/Center.d.ts.map +1 -1
  140. package/dist/layout/Center.js +49 -20
  141. package/dist/layout/Container.cjs +81 -1
  142. package/dist/layout/Container.d.ts +8 -8
  143. package/dist/layout/Container.d.ts.map +1 -1
  144. package/dist/layout/Container.js +34 -30
  145. package/dist/layout/Stack.cjs +237 -1
  146. package/dist/layout/Stack.d.ts +9 -9
  147. package/dist/layout/Stack.d.ts.map +1 -1
  148. package/dist/layout/Stack.js +220 -75
  149. package/dist/layout/index.js +9 -9
  150. package/dist/lazyLoad.cjs +13 -1
  151. package/dist/lazyLoad.js +9 -9
  152. package/dist/node_modules/.pnpm/@floating-ui_core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.cjs +551 -1
  153. package/dist/node_modules/.pnpm/@floating-ui_core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.js +440 -234
  154. package/dist/node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs +546 -1
  155. package/dist/node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +452 -236
  156. 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
  157. 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
  158. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs +150 -1
  159. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs +132 -1
  160. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +90 -74
  161. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +92 -67
  162. package/dist/node_modules/.pnpm/@radix-ui_number@1.1.3/node_modules/@radix-ui/number/dist/index.cjs +11 -1
  163. package/dist/node_modules/.pnpm/@radix-ui_number@1.1.3/node_modules/@radix-ui/number/dist/index.js +8 -7
  164. package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.7/node_modules/@radix-ui/primitive/dist/index.cjs +48 -1
  165. package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.7/node_modules/@radix-ui/primitive/dist/index.js +34 -31
  166. 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
  167. 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
  168. 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
  169. 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
  170. 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
  171. 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
  172. 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
  173. 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
  174. 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
  175. 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
  176. 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
  177. 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
  178. 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
  179. 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
  180. 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
  181. 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
  182. 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
  183. 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
  184. 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
  185. 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
  186. 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
  187. 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
  188. 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
  189. 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
  190. 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
  191. 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
  192. 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
  193. 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
  194. 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
  195. 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
  196. 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
  197. 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
  198. 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
  199. 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
  200. 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
  201. 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
  202. 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
  203. 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
  204. 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
  205. 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
  206. 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
  207. 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
  208. 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
  209. 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
  210. 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
  211. 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
  212. 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
  213. 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
  214. 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
  215. 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
  216. 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
  217. 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
  218. 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
  219. 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
  220. 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
  221. 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
  222. 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
  223. 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
  224. 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
  225. 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
  226. 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
  227. 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
  228. 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
  229. 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
  230. 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
  231. 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
  232. 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
  233. 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
  234. 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
  235. 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
  236. package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.cjs +106 -1
  237. package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js +95 -34
  238. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/addLeadingZeros.cjs +5 -1
  239. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/addLeadingZeros.js +3 -3
  240. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/defaultOptions.cjs +6 -1
  241. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/defaultOptions.js +4 -4
  242. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/formatters.cjs +423 -1
  243. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/formatters.js +237 -202
  244. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/lightFormatters.cjs +45 -1
  245. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/lightFormatters.js +35 -32
  246. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/longFormatters.cjs +42 -1
  247. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/longFormatters.js +37 -32
  248. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.cjs +20 -1
  249. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +18 -5
  250. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/normalizeDates.cjs +7 -1
  251. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/normalizeDates.js +5 -5
  252. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/protectedTokens.cjs +27 -1
  253. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/protectedTokens.js +15 -12
  254. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constants.cjs +45 -1
  255. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constants.js +41 -4
  256. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constructFrom.cjs +45 -1
  257. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constructFrom.js +42 -4
  258. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/differenceInCalendarDays.cjs +49 -1
  259. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/differenceInCalendarDays.js +46 -8
  260. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/format.cjs +358 -1
  261. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/format.js +341 -45
  262. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getDayOfYear.cjs +31 -1
  263. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getDayOfYear.js +28 -7
  264. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeek.cjs +35 -1
  265. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeek.js +32 -8
  266. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeekYear.cjs +44 -1
  267. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeekYear.js +41 -11
  268. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeek.cjs +49 -1
  269. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeek.js +46 -8
  270. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeekYear.cjs +61 -1
  271. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeekYear.js +58 -12
  272. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isDate.cjs +38 -1
  273. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isDate.js +35 -3
  274. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isValid.cjs +39 -1
  275. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isValid.js +36 -5
  276. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.cjs +8 -1
  277. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +5 -5
  278. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.cjs +50 -1
  279. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +45 -11
  280. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchFn.cjs +27 -1
  281. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchFn.js +20 -14
  282. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.cjs +18 -1
  283. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +13 -12
  284. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.cjs +77 -1
  285. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +14 -5
  286. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatLong.cjs +31 -1
  287. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatLong.js +6 -6
  288. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.cjs +11 -1
  289. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +4 -3
  290. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/localize.cjs +210 -1
  291. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/localize.js +197 -188
  292. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/match.cjs +122 -1
  293. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/match.js +12 -12
  294. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US.cjs +28 -1
  295. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US.js +20 -12
  296. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfDay.cjs +34 -1
  297. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfDay.js +31 -5
  298. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeek.cjs +37 -1
  299. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeek.js +32 -5
  300. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeekYear.cjs +41 -1
  301. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeekYear.js +38 -7
  302. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeek.cjs +45 -1
  303. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeek.js +42 -6
  304. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeekYear.cjs +56 -1
  305. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeekYear.js +53 -8
  306. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfYear.cjs +35 -1
  307. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfYear.js +32 -5
  308. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/toDate.cjs +45 -1
  309. package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/toDate.js +42 -4
  310. 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
  311. 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
  312. 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
  313. 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
  314. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +1391 -1
  315. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.js +1178 -803
  316. package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.cjs +7 -1
  317. package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js +3 -4
  318. 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
  319. 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
  320. 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
  321. 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
  322. 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
  323. 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
  324. 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
  325. 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
  326. 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
  327. 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
  328. 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
  329. 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
  330. 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
  331. 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
  332. 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
  333. 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
  334. 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
  335. 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
  336. 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
  337. 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
  338. 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
  339. 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
  340. 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
  341. 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
  342. 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
  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/sidecar.cjs +6 -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/sidecar.js +5 -5
  345. 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
  346. 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
  347. 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
  348. 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
  349. 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
  350. 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
  351. 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
  352. 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
  353. 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
  354. package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.cjs +36 -1
  355. package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.js +25 -14
  356. 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
  357. 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
  358. 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
  359. 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
  360. 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
  361. 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
  362. 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
  363. 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
  364. 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
  365. 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
  366. 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
  367. 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
  368. package/dist/theme/index.cjs +63 -1
  369. package/dist/theme/index.js +31 -31
  370. package/dist/theme/spacing.cjs +93 -1
  371. package/dist/theme/spacing.js +52 -26
  372. package/dist/theme/tokens.stylex.cjs +210 -1
  373. package/dist/theme/tokens.stylex.js +58 -26
  374. package/dist/theme/types.cjs +13 -1
  375. package/dist/theme/types.js +4 -3
  376. package/dist/theme/width.cjs +39 -1
  377. package/dist/theme/width.js +16 -4
  378. package/dist/theme/zIndex.cjs +64 -1
  379. package/dist/theme/zIndex.js +44 -15
  380. package/dist/theme.css +135 -1
  381. package/dist/ui/accordion.cjs +431 -1
  382. package/dist/ui/accordion.d.ts +10 -10
  383. package/dist/ui/accordion.d.ts.map +1 -1
  384. package/dist/ui/accordion.js +276 -136
  385. package/dist/ui/action-bar.cjs +274 -1
  386. package/dist/ui/action-bar.d.ts +11 -11
  387. package/dist/ui/action-bar.d.ts.map +1 -1
  388. package/dist/ui/action-bar.js +204 -98
  389. package/dist/ui/alert-dialog.cjs +538 -1
  390. package/dist/ui/alert-dialog.d.ts +19 -19
  391. package/dist/ui/alert-dialog.d.ts.map +1 -1
  392. package/dist/ui/alert-dialog.js +459 -167
  393. package/dist/ui/alert.cjs +163 -1
  394. package/dist/ui/alert.d.ts +7 -7
  395. package/dist/ui/alert.d.ts.map +1 -1
  396. package/dist/ui/alert.js +111 -50
  397. package/dist/ui/aspect-ratio.cjs +25 -1
  398. package/dist/ui/aspect-ratio.d.ts +2 -2
  399. package/dist/ui/aspect-ratio.d.ts.map +1 -1
  400. package/dist/ui/aspect-ratio.js +22 -12
  401. package/dist/ui/avatar.cjs +341 -1
  402. package/dist/ui/avatar.d.ts +10 -10
  403. package/dist/ui/avatar.d.ts.map +1 -1
  404. package/dist/ui/avatar.js +226 -114
  405. package/dist/ui/badge-overflow.cjs +66 -1
  406. package/dist/ui/badge-overflow.d.ts +5 -5
  407. package/dist/ui/badge-overflow.d.ts.map +1 -1
  408. package/dist/ui/badge-overflow.js +34 -27
  409. package/dist/ui/badge.cjs +167 -1
  410. package/dist/ui/badge.d.ts +3 -3
  411. package/dist/ui/badge.d.ts.map +1 -1
  412. package/dist/ui/badge.js +48 -42
  413. package/dist/ui/breadcrumb.cjs +508 -1
  414. package/dist/ui/breadcrumb.d.ts +15 -15
  415. package/dist/ui/breadcrumb.d.ts.map +1 -1
  416. package/dist/ui/breadcrumb.js +386 -159
  417. package/dist/ui/button.cjs +425 -1
  418. package/dist/ui/button.d.ts +3 -3
  419. package/dist/ui/button.d.ts.map +1 -1
  420. package/dist/ui/button.js +137 -117
  421. package/dist/ui/calendar.cjs +626 -1
  422. package/dist/ui/calendar.d.ts +5 -5
  423. package/dist/ui/calendar.d.ts.map +1 -1
  424. package/dist/ui/calendar.js +309 -192
  425. package/dist/ui/card.cjs +401 -1
  426. package/dist/ui/card.d.ts +15 -15
  427. package/dist/ui/card.d.ts.map +1 -1
  428. package/dist/ui/card.js +300 -119
  429. package/dist/ui/carousel.cjs +333 -1
  430. package/dist/ui/carousel.d.ts +10 -10
  431. package/dist/ui/carousel.d.ts.map +1 -1
  432. package/dist/ui/carousel.js +245 -126
  433. package/dist/ui/checkbox.cjs +167 -1
  434. package/dist/ui/checkbox.d.ts +4 -4
  435. package/dist/ui/checkbox.d.ts.map +1 -1
  436. package/dist/ui/checkbox.js +66 -58
  437. package/dist/ui/circular-progress.cjs +139 -1
  438. package/dist/ui/circular-progress.d.ts +4 -4
  439. package/dist/ui/circular-progress.d.ts.map +1 -1
  440. package/dist/ui/circular-progress.js +65 -52
  441. package/dist/ui/code-block.cjs +819 -0
  442. package/dist/ui/code-block.d.ts +81 -0
  443. package/dist/ui/code-block.d.ts.map +1 -0
  444. package/dist/ui/code-block.js +809 -0
  445. package/dist/ui/collapsible.cjs +65 -1
  446. package/dist/ui/collapsible.d.ts +4 -4
  447. package/dist/ui/collapsible.d.ts.map +1 -1
  448. package/dist/ui/collapsible.js +58 -28
  449. package/dist/ui/command.cjs +556 -1
  450. package/dist/ui/command.d.ts +19 -19
  451. package/dist/ui/command.d.ts.map +1 -1
  452. package/dist/ui/command.js +432 -163
  453. package/dist/ui/compare-slider.cjs +170 -1
  454. package/dist/ui/compare-slider.d.ts +7 -7
  455. package/dist/ui/compare-slider.d.ts.map +1 -1
  456. package/dist/ui/compare-slider.js +106 -72
  457. package/dist/ui/context-menu.cjs +811 -1
  458. package/dist/ui/context-menu.d.ts +26 -26
  459. package/dist/ui/context-menu.d.ts.map +1 -1
  460. package/dist/ui/context-menu.js +693 -228
  461. package/dist/ui/copy-button.cjs +94 -1
  462. package/dist/ui/copy-button.d.ts +1 -2
  463. package/dist/ui/copy-button.d.ts.map +1 -1
  464. package/dist/ui/copy-button.js +56 -44
  465. package/dist/ui/dialog.cjs +409 -1
  466. package/dist/ui/dialog.d.ts +18 -18
  467. package/dist/ui/dialog.d.ts.map +1 -1
  468. package/dist/ui/dialog.js +317 -131
  469. package/dist/ui/drawer.cjs +476 -1
  470. package/dist/ui/drawer.d.ts +17 -17
  471. package/dist/ui/drawer.d.ts.map +1 -1
  472. package/dist/ui/drawer.js +394 -151
  473. package/dist/ui/dropdown-menu.cjs +638 -1
  474. package/dist/ui/dropdown-menu.d.ts +26 -26
  475. package/dist/ui/dropdown-menu.d.ts.map +1 -1
  476. package/dist/ui/dropdown-menu.js +511 -208
  477. package/dist/ui/editable.cjs +608 -1
  478. package/dist/ui/editable.d.ts +14 -14
  479. package/dist/ui/editable.d.ts.map +1 -1
  480. package/dist/ui/editable.js +478 -218
  481. package/dist/ui/empty.cjs +310 -1
  482. package/dist/ui/empty.d.ts +15 -15
  483. package/dist/ui/empty.d.ts.map +1 -1
  484. package/dist/ui/empty.js +277 -107
  485. package/dist/ui/field.cjs +621 -1
  486. package/dist/ui/field.d.ts +21 -21
  487. package/dist/ui/field.d.ts.map +1 -1
  488. package/dist/ui/field.js +468 -198
  489. package/dist/ui/file-upload-adapters.cjs +289 -1
  490. package/dist/ui/file-upload-adapters.d.ts +1 -2
  491. package/dist/ui/file-upload-adapters.d.ts.map +1 -1
  492. package/dist/ui/file-upload-adapters.js +244 -170
  493. package/dist/ui/file-upload.cjs +1481 -1
  494. package/dist/ui/file-upload.d.ts +22 -22
  495. package/dist/ui/file-upload.d.ts.map +1 -1
  496. package/dist/ui/file-upload.js +1064 -598
  497. package/dist/ui/flex.cjs +203 -1
  498. package/dist/ui/flex.d.ts +6 -6
  499. package/dist/ui/flex.d.ts.map +1 -1
  500. package/dist/ui/flex.js +111 -92
  501. package/dist/ui/form.cjs +454 -1
  502. package/dist/ui/form.d.ts +11 -11
  503. package/dist/ui/form.d.ts.map +1 -1
  504. package/dist/ui/form.js +421 -135
  505. package/dist/ui/gauge.cjs +127 -1
  506. package/dist/ui/gauge.d.ts +6 -6
  507. package/dist/ui/gauge.d.ts.map +1 -1
  508. package/dist/ui/gauge.js +61 -52
  509. package/dist/ui/grid.cjs +224 -1
  510. package/dist/ui/grid.d.ts +7 -7
  511. package/dist/ui/grid.d.ts.map +1 -1
  512. package/dist/ui/grid.js +125 -94
  513. package/dist/ui/hover-card.cjs +86 -1
  514. package/dist/ui/hover-card.d.ts +6 -6
  515. package/dist/ui/hover-card.d.ts.map +1 -1
  516. package/dist/ui/hover-card.js +57 -36
  517. package/dist/ui/index.d.ts +4 -0
  518. package/dist/ui/index.d.ts.map +1 -1
  519. package/dist/ui/input-group.cjs +328 -1
  520. package/dist/ui/input-group.d.ts +12 -12
  521. package/dist/ui/input-group.d.ts.map +1 -1
  522. package/dist/ui/input-group.js +207 -105
  523. package/dist/ui/input-otp.cjs +312 -1
  524. package/dist/ui/input-otp.d.ts +10 -10
  525. package/dist/ui/input-otp.d.ts.map +1 -1
  526. package/dist/ui/input-otp.js +217 -94
  527. package/dist/ui/input.cjs +388 -1
  528. package/dist/ui/input.d.ts +3 -3
  529. package/dist/ui/input.d.ts.map +1 -1
  530. package/dist/ui/input.js +137 -119
  531. package/dist/ui/item.cjs +585 -1
  532. package/dist/ui/item.d.ts +20 -20
  533. package/dist/ui/item.d.ts.map +1 -1
  534. package/dist/ui/item.js +460 -162
  535. package/dist/ui/kbd.cjs +115 -1
  536. package/dist/ui/kbd.d.ts +5 -5
  537. package/dist/ui/kbd.d.ts.map +1 -1
  538. package/dist/ui/kbd.js +42 -37
  539. package/dist/ui/label.cjs +67 -1
  540. package/dist/ui/label.d.ts +4 -4
  541. package/dist/ui/label.d.ts.map +1 -1
  542. package/dist/ui/label.js +51 -21
  543. package/dist/ui/marker.cjs +294 -0
  544. package/dist/ui/marker.d.ts +22 -0
  545. package/dist/ui/marker.d.ts.map +1 -0
  546. package/dist/ui/marker.js +290 -0
  547. package/dist/ui/masonry.cjs +58 -1
  548. package/dist/ui/masonry.d.ts +4 -4
  549. package/dist/ui/masonry.d.ts.map +1 -1
  550. package/dist/ui/masonry.js +41 -36
  551. package/dist/ui/menubar.cjs +908 -1
  552. package/dist/ui/menubar.d.ts +29 -29
  553. package/dist/ui/menubar.d.ts.map +1 -1
  554. package/dist/ui/menubar.js +737 -251
  555. package/dist/ui/navigation-menu.cjs +560 -1
  556. package/dist/ui/navigation-menu.d.ts +18 -18
  557. package/dist/ui/navigation-menu.d.ts.map +1 -1
  558. package/dist/ui/navigation-menu.js +442 -148
  559. package/dist/ui/pagination.cjs +575 -1
  560. package/dist/ui/pagination.d.ts +13 -13
  561. package/dist/ui/pagination.d.ts.map +1 -1
  562. package/dist/ui/pagination.js +422 -172
  563. package/dist/ui/popover.cjs +93 -1
  564. package/dist/ui/popover.d.ts +7 -7
  565. package/dist/ui/popover.d.ts.map +1 -1
  566. package/dist/ui/popover.js +61 -42
  567. package/dist/ui/progress.cjs +33 -1
  568. package/dist/ui/progress.d.ts +3 -3
  569. package/dist/ui/progress.d.ts.map +1 -1
  570. package/dist/ui/progress.js +19 -17
  571. package/dist/ui/questionnaire.cjs +679 -0
  572. package/dist/ui/questionnaire.d.ts +101 -0
  573. package/dist/ui/questionnaire.d.ts.map +1 -0
  574. package/dist/ui/questionnaire.js +667 -0
  575. package/dist/ui/radio-group.cjs +221 -1
  576. package/dist/ui/radio-group.d.ts +6 -6
  577. package/dist/ui/radio-group.d.ts.map +1 -1
  578. package/dist/ui/radio-group.js +125 -74
  579. package/dist/ui/rating.cjs +191 -1
  580. package/dist/ui/rating.d.ts +3 -3
  581. package/dist/ui/rating.d.ts.map +1 -1
  582. package/dist/ui/rating.js +96 -78
  583. package/dist/ui/resizable.cjs +175 -1
  584. package/dist/ui/resizable.d.ts +7 -7
  585. package/dist/ui/resizable.d.ts.map +1 -1
  586. package/dist/ui/resizable.js +150 -54
  587. package/dist/ui/responsive-dialog.cjs +400 -1
  588. package/dist/ui/responsive-dialog.d.ts +17 -17
  589. package/dist/ui/responsive-dialog.d.ts.map +1 -1
  590. package/dist/ui/responsive-dialog.js +372 -155
  591. package/dist/ui/row-col.cjs +510 -1
  592. package/dist/ui/row-col.d.ts +11 -11
  593. package/dist/ui/row-col.d.ts.map +1 -1
  594. package/dist/ui/row-col.js +238 -205
  595. package/dist/ui/scroll-area.cjs +142 -1
  596. package/dist/ui/scroll-area.d.ts +6 -6
  597. package/dist/ui/scroll-area.d.ts.map +1 -1
  598. package/dist/ui/scroll-area.js +103 -47
  599. package/dist/ui/segmented.cjs +170 -1
  600. package/dist/ui/segmented.d.ts +5 -5
  601. package/dist/ui/segmented.d.ts.map +1 -1
  602. package/dist/ui/segmented.js +75 -62
  603. package/dist/ui/select.cjs +484 -1
  604. package/dist/ui/select.d.ts +17 -17
  605. package/dist/ui/select.d.ts.map +1 -1
  606. package/dist/ui/select.js +353 -160
  607. package/dist/ui/separator.cjs +44 -1
  608. package/dist/ui/separator.d.ts +4 -4
  609. package/dist/ui/separator.d.ts.map +1 -1
  610. package/dist/ui/separator.js +17 -17
  611. package/dist/ui/sheet.cjs +460 -1
  612. package/dist/ui/sheet.d.ts +16 -16
  613. package/dist/ui/sheet.d.ts.map +1 -1
  614. package/dist/ui/sheet.js +329 -141
  615. package/dist/ui/sidebar.cjs +1453 -1
  616. package/dist/ui/sidebar.d.ts +48 -48
  617. package/dist/ui/sidebar.d.ts.map +1 -1
  618. package/dist/ui/sidebar.js +1057 -438
  619. package/dist/ui/signature-pad.cjs +740 -0
  620. package/dist/ui/signature-pad.d.ts +107 -0
  621. package/dist/ui/signature-pad.d.ts.map +1 -0
  622. package/dist/ui/signature-pad.js +730 -0
  623. package/dist/ui/skeleton.cjs +62 -1
  624. package/dist/ui/skeleton.d.ts +3 -3
  625. package/dist/ui/skeleton.d.ts.map +1 -1
  626. package/dist/ui/skeleton.js +50 -20
  627. package/dist/ui/slider.cjs +47 -1
  628. package/dist/ui/slider.d.ts +4 -4
  629. package/dist/ui/slider.d.ts.map +1 -1
  630. package/dist/ui/slider.js +27 -26
  631. package/dist/ui/sonner.cjs +28 -1
  632. package/dist/ui/sonner.js +24 -22
  633. package/dist/ui/spinner.cjs +73 -1
  634. package/dist/ui/spinner.d.ts +3 -3
  635. package/dist/ui/spinner.d.ts.map +1 -1
  636. package/dist/ui/spinner.js +29 -28
  637. package/dist/ui/stat.cjs +334 -1
  638. package/dist/ui/stat.d.ts +15 -15
  639. package/dist/ui/stat.d.ts.map +1 -1
  640. package/dist/ui/stat.js +271 -130
  641. package/dist/ui/stepper.cjs +785 -1
  642. package/dist/ui/stepper.d.ts +24 -24
  643. package/dist/ui/stepper.d.ts.map +1 -1
  644. package/dist/ui/stepper.js +594 -281
  645. package/dist/ui/switch.cjs +203 -1
  646. package/dist/ui/switch.d.ts +4 -4
  647. package/dist/ui/switch.d.ts.map +1 -1
  648. package/dist/ui/switch.js +83 -72
  649. package/dist/ui/table.cjs +435 -1
  650. package/dist/ui/table.d.ts +17 -17
  651. package/dist/ui/table.d.ts.map +1 -1
  652. package/dist/ui/table.js +369 -129
  653. package/dist/ui/tabs.cjs +340 -1
  654. package/dist/ui/tabs.d.ts +10 -10
  655. package/dist/ui/tabs.d.ts.map +1 -1
  656. package/dist/ui/tabs.js +204 -95
  657. package/dist/ui/tags-input.cjs +585 -1
  658. package/dist/ui/tags-input.d.ts +13 -13
  659. package/dist/ui/tags-input.d.ts.map +1 -1
  660. package/dist/ui/tags-input.js +446 -221
  661. package/dist/ui/textarea.cjs +119 -1
  662. package/dist/ui/textarea.d.ts +3 -3
  663. package/dist/ui/textarea.d.ts.map +1 -1
  664. package/dist/ui/textarea.js +37 -33
  665. package/dist/ui/timeline.cjs +583 -1
  666. package/dist/ui/timeline.d.ts +22 -22
  667. package/dist/ui/timeline.d.ts.map +1 -1
  668. package/dist/ui/timeline.js +409 -198
  669. package/dist/ui/toggle-group.cjs +128 -1
  670. package/dist/ui/toggle-group.d.ts +7 -7
  671. package/dist/ui/toggle-group.d.ts.map +1 -1
  672. package/dist/ui/toggle-group.js +92 -41
  673. package/dist/ui/toggle.cjs +145 -1
  674. package/dist/ui/toggle.d.ts +4 -4
  675. package/dist/ui/toggle.d.ts.map +1 -1
  676. package/dist/ui/toggle.js +38 -34
  677. package/dist/ui/tooltip.cjs +81 -1
  678. package/dist/ui/tooltip.d.ts +7 -7
  679. package/dist/ui/tooltip.d.ts.map +1 -1
  680. package/dist/ui/tooltip.js +50 -37
  681. package/dist/ui/useBreakpoint.cjs +91 -1
  682. package/dist/ui/useBreakpoint.js +66 -43
  683. package/dist/utils.cjs +9 -1
  684. package/dist/utils.js +4 -4
  685. package/package.json +10 -2
@@ -1,67 +1,69 @@
1
- import { cn as e } from "../../utils.js";
2
- import { FormBase as t } from "../Form.js";
3
- import { NumericFormat as n } from "../../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";
4
- import { StepperControls as r } from "./StepperControls.js";
5
- import { useFormNumberInput as i } from "./useFormNumberInput.js";
1
+ import { cn } from "../../utils.js";
2
+ import { FormBase } from "../Form.js";
3
+ import { NumericFormat } from "../../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";
4
+ import { StepperControls } from "./StepperControls.js";
5
+ import { useFormNumberInput } from "./useFormNumberInput.js";
6
6
  import "@stylexjs/stylex";
7
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
7
+ import { jsx, jsxs } from "react/jsx-runtime";
8
8
  // src/Form/FormNumberInput/FormNumberInput.tsx
9
- function s({ control: s, name: c, label: l, stepper: u = 1, min: d = "0", max: f = "100", minValue: p = -Infinity, maxValue: m = Infinity, thousandSeparator: h, placeholder: g, fixedDecimalScale: _ = !1, decimalScale: v = 0, suffix: y, prefix: b, inputClassName: x, onChange: S, rules: C, description: w, horizontal: T, controlFirst: E, width: D, ...O }) {
10
- let { enhancedRules: k, numericClass: A, getHandlers: j } = i({
11
- min: p,
12
- max: m,
13
- rules: C,
14
- inputClassName: x,
15
- stepper: u,
16
- onChange: S,
17
- passthroughProps: O
9
+ function FormNumberInput({ control, name, label, stepper = 1, min = "0", max = "100", minValue = Number.NEGATIVE_INFINITY, maxValue = Number.POSITIVE_INFINITY, thousandSeparator, placeholder, fixedDecimalScale = false, decimalScale = 0, suffix, prefix, inputClassName, onChange, rules, description, horizontal, controlFirst, width, ...props }) {
10
+ const { enhancedRules, numericClass, getHandlers } = useFormNumberInput({
11
+ min: minValue,
12
+ max: maxValue,
13
+ rules,
14
+ inputClassName,
15
+ stepper,
16
+ onChange,
17
+ passthroughProps: props
18
18
  });
19
- return /* @__PURE__ */ a(t, {
20
- control: s,
21
- name: c,
22
- label: l,
23
- description: w,
24
- rules: k,
25
- horizontal: T,
26
- controlFirst: E,
27
- width: D,
28
- children: ({ id: t, "aria-invalid": i, ...s }) => {
29
- let c = s.value, { handleIncrement: l, handleDecrement: u, handleKeyDown: x, handleBlur: S, numericOnValueChange: C } = j({
30
- currentValue: c,
31
- field: s
32
- }), w = { className: "xh8yej3 xeuugli xrijj7p x1a2w583 xjppbhk xmkeg23 x1y0btm7 xsyin8q xjbqb8w x84br7x xfk7h2l x1bh2a3r xx6bhzk x1a2a7pz xk8t5le x1ryrjj2 x18g2hj5 xkpwil5 x8r4c90" };
33
- return /* @__PURE__ */ o("div", {
19
+ return /* @__PURE__ */ jsx(FormBase, {
20
+ control,
21
+ name,
22
+ label,
23
+ description,
24
+ rules: enhancedRules,
25
+ horizontal,
26
+ controlFirst,
27
+ width,
28
+ children: ({ id, "aria-invalid": ariaInvalid, ...field }) => {
29
+ const currentValue = field.value;
30
+ const { handleIncrement, handleDecrement, handleKeyDown, handleBlur, numericOnValueChange } = getHandlers({
31
+ currentValue,
32
+ field
33
+ });
34
+ const inputStyleProps = { className: "xh8yej3 xeuugli xrijj7p x1a2w583 xjppbhk xmkeg23 x1y0btm7 xsyin8q xjbqb8w x84br7x xfk7h2l x1bh2a3r xx6bhzk x1a2a7pz xk8t5le x1ryrjj2 x18g2hj5 xkpwil5 x8r4c90" };
35
+ return /* @__PURE__ */ jsxs("div", {
34
36
  className: "x78zum5 x6s0dn4 xh8yej3",
35
- children: [/* @__PURE__ */ a(n, {
36
- min: d,
37
- max: f,
38
- "aria-invalid": i,
39
- value: c ?? "",
40
- onValueChange: C,
41
- thousandSeparator: h,
42
- decimalScale: v,
43
- fixedDecimalScale: _,
44
- allowNegative: p < 0,
45
- valueIsNumericString: !1,
46
- onBlur: S,
47
- suffix: y,
48
- prefix: b,
49
- placeholder: g || "0",
50
- getInputRef: s.ref,
51
- onKeyDown: x,
52
- name: s.name,
53
- ...O,
54
- id: t,
55
- ...w,
56
- className: e(w.className, A, O.className)
57
- }), /* @__PURE__ */ a(r, {
58
- onIncrement: l,
59
- onDecrement: u,
60
- disableIncrement: c !== void 0 && c >= m,
61
- disableDecrement: c !== void 0 && c <= p
37
+ children: [/* @__PURE__ */ jsx(NumericFormat, {
38
+ min,
39
+ max,
40
+ "aria-invalid": ariaInvalid,
41
+ value: currentValue ?? "",
42
+ onValueChange: numericOnValueChange,
43
+ thousandSeparator,
44
+ decimalScale,
45
+ fixedDecimalScale,
46
+ allowNegative: minValue < 0,
47
+ valueIsNumericString: false,
48
+ onBlur: handleBlur,
49
+ suffix,
50
+ prefix,
51
+ placeholder: placeholder || "0",
52
+ getInputRef: field.ref,
53
+ onKeyDown: handleKeyDown,
54
+ name: field.name,
55
+ ...props,
56
+ id,
57
+ ...inputStyleProps,
58
+ className: cn(inputStyleProps.className, numericClass, props.className)
59
+ }), /* @__PURE__ */ jsx(StepperControls, {
60
+ onIncrement: handleIncrement,
61
+ onDecrement: handleDecrement,
62
+ disableIncrement: currentValue !== void 0 && currentValue >= maxValue,
63
+ disableDecrement: currentValue !== void 0 && currentValue <= minValue
62
64
  })]
63
65
  });
64
66
  }
65
67
  });
66
68
  }
67
- export { s as FormNumberInput };
69
+ export { FormNumberInput };
@@ -1 +1,104 @@
1
- const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../ui/button.cjs");let n=require("@stylexjs/stylex");n=e.__toESM(n,1);let r=require("lucide-react"),i=require("react/jsx-runtime"),a=require("react/compiler-runtime"),o=require("react-i18next");var s={btnUp:{kg3NbH:`x97vtpp`,kZKoxP:`xaylbqo`,kIxVMA:`x1ia1hqs`,kqGeR4:`xfrllxf`,kYm2EN:`xjppbhk`,kZ1KPB:`xyj58a3`,kt9PQ7:`x1co6499`,kVAM5u:`xsyin8q`,$$css:!0},btnDown:{kg3NbH:`x97vtpp`,kZKoxP:`xaylbqo`,kIxVMA:`x1ia1hqs`,kqGeR4:`xfrllxf`,ksF3WI:`x1a2w583`,kZ1KPB:`xyj58a3`,kEafiO:`xt8cgyo`,kVAM5u:`xsyin8q`,$$css:!0}};function c(e){let n=(0,a.c)(17),{onIncrement:c,onDecrement:l,disableIncrement:u,disableDecrement:d}=e,{t:f}=(0,o.useTranslation)(),p;n[0]===f?p=n[1]:(p=f(`form_increase_value`),n[0]=f,n[1]=p);let m;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,i.jsx)(r.ChevronUp,{size:15}),n[2]=m):m=n[2];let h;n[3]!==u||n[4]!==c||n[5]!==p?(h=(0,i.jsx)(t.Button,{"aria-label":p,sx:s.btnUp,variant:`outline`,onClick:c,disabled:u,type:`button`,children:m}),n[3]=u,n[4]=c,n[5]=p,n[6]=h):h=n[6];let g;n[7]===f?g=n[8]:(g=f(`form_decrease_value`),n[7]=f,n[8]=g);let _;n[9]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,i.jsx)(r.ChevronDown,{size:15}),n[9]=_):_=n[9];let v;n[10]!==d||n[11]!==l||n[12]!==g?(v=(0,i.jsx)(t.Button,{"aria-label":g,sx:s.btnDown,variant:`outline`,onClick:l,disabled:d,type:`button`,children:_}),n[10]=d,n[11]=l,n[12]=g,n[13]=v):v=n[13];let y;return n[14]!==h||n[15]!==v?(y=(0,i.jsxs)(`div`,{className:`x78zum5 xdt5ytf x4aigyd`,children:[h,v]}),n[14]=h,n[15]=v,n[16]=y):y=n[16],y}exports.StepperControls=c;
1
+ const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
2
+ const require_button = require("../../ui/button.cjs");
3
+ let _stylexjs_stylex = require("@stylexjs/stylex");
4
+ _stylexjs_stylex = require_runtime.__toESM(_stylexjs_stylex, 1);
5
+ let lucide_react = require("lucide-react");
6
+ let react_jsx_runtime = require("react/jsx-runtime");
7
+ let react_compiler_runtime = require("react/compiler-runtime");
8
+ let react_i18next = require("react-i18next");
9
+ // src/Form/FormNumberInput/StepperControls.tsx
10
+ var styles = {
11
+ btnUp: {
12
+ kg3NbH: "x97vtpp",
13
+ kZKoxP: "xaylbqo",
14
+ kIxVMA: "x1ia1hqs",
15
+ kqGeR4: "xfrllxf",
16
+ kYm2EN: "xjppbhk",
17
+ kZ1KPB: "xyj58a3",
18
+ kt9PQ7: "x1co6499",
19
+ kVAM5u: "xsyin8q",
20
+ $$css: true
21
+ },
22
+ btnDown: {
23
+ kg3NbH: "x97vtpp",
24
+ kZKoxP: "xaylbqo",
25
+ kIxVMA: "x1ia1hqs",
26
+ kqGeR4: "xfrllxf",
27
+ ksF3WI: "x1a2w583",
28
+ kZ1KPB: "xyj58a3",
29
+ kEafiO: "xt8cgyo",
30
+ kVAM5u: "xsyin8q",
31
+ $$css: true
32
+ }
33
+ };
34
+ function StepperControls(t0) {
35
+ const $ = (0, react_compiler_runtime.c)(17);
36
+ const { onIncrement, onDecrement, disableIncrement, disableDecrement } = t0;
37
+ const { t } = (0, react_i18next.useTranslation)();
38
+ let t1;
39
+ if ($[0] !== t) {
40
+ t1 = t("form_increase_value");
41
+ $[0] = t;
42
+ $[1] = t1;
43
+ } else t1 = $[1];
44
+ let t2;
45
+ if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
46
+ t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.ChevronUp, { size: 15 });
47
+ $[2] = t2;
48
+ } else t2 = $[2];
49
+ let t3;
50
+ if ($[3] !== disableIncrement || $[4] !== onIncrement || $[5] !== t1) {
51
+ t3 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_button.Button, {
52
+ "aria-label": t1,
53
+ sx: styles.btnUp,
54
+ variant: "outline",
55
+ onClick: onIncrement,
56
+ disabled: disableIncrement,
57
+ type: "button",
58
+ children: t2
59
+ });
60
+ $[3] = disableIncrement;
61
+ $[4] = onIncrement;
62
+ $[5] = t1;
63
+ $[6] = t3;
64
+ } else t3 = $[6];
65
+ let t4;
66
+ if ($[7] !== t) {
67
+ t4 = t("form_decrease_value");
68
+ $[7] = t;
69
+ $[8] = t4;
70
+ } else t4 = $[8];
71
+ let t5;
72
+ if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
73
+ t5 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.ChevronDown, { size: 15 });
74
+ $[9] = t5;
75
+ } else t5 = $[9];
76
+ let t6;
77
+ if ($[10] !== disableDecrement || $[11] !== onDecrement || $[12] !== t4) {
78
+ t6 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_button.Button, {
79
+ "aria-label": t4,
80
+ sx: styles.btnDown,
81
+ variant: "outline",
82
+ onClick: onDecrement,
83
+ disabled: disableDecrement,
84
+ type: "button",
85
+ children: t5
86
+ });
87
+ $[10] = disableDecrement;
88
+ $[11] = onDecrement;
89
+ $[12] = t4;
90
+ $[13] = t6;
91
+ } else t6 = $[13];
92
+ let t7;
93
+ if ($[14] !== t3 || $[15] !== t6) {
94
+ t7 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
95
+ className: "x78zum5 xdt5ytf x4aigyd",
96
+ children: [t3, t6]
97
+ });
98
+ $[14] = t3;
99
+ $[15] = t6;
100
+ $[16] = t7;
101
+ } else t7 = $[16];
102
+ return t7;
103
+ }
104
+ exports.StepperControls = StepperControls;
@@ -1,11 +1,11 @@
1
- import { Button as e } from "../../ui/button.js";
1
+ import { Button } from "../../ui/button.js";
2
2
  import "@stylexjs/stylex";
3
- import { ChevronDown as t, ChevronUp as n } from "lucide-react";
4
- import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
- import { c as a } from "react/compiler-runtime";
6
- import { useTranslation as o } from "react-i18next";
3
+ import { ChevronDown, ChevronUp } from "lucide-react";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
+ import { c } from "react/compiler-runtime";
6
+ import { useTranslation } from "react-i18next";
7
7
  // src/Form/FormNumberInput/StepperControls.tsx
8
- var s = {
8
+ var styles = {
9
9
  btnUp: {
10
10
  kg3NbH: "x97vtpp",
11
11
  kZKoxP: "xaylbqo",
@@ -15,7 +15,7 @@ var s = {
15
15
  kZ1KPB: "xyj58a3",
16
16
  kt9PQ7: "x1co6499",
17
17
  kVAM5u: "xsyin8q",
18
- $$css: !0
18
+ $$css: true
19
19
  },
20
20
  btnDown: {
21
21
  kg3NbH: "x97vtpp",
@@ -26,42 +26,77 @@ var s = {
26
26
  kZ1KPB: "xyj58a3",
27
27
  kEafiO: "xt8cgyo",
28
28
  kVAM5u: "xsyin8q",
29
- $$css: !0
29
+ $$css: true
30
30
  }
31
31
  };
32
- function c(c) {
33
- let l = a(17), { onIncrement: u, onDecrement: d, disableIncrement: f, disableDecrement: p } = c, { t: m } = o(), h;
34
- l[0] === m ? h = l[1] : (h = m("form_increase_value"), l[0] = m, l[1] = h);
35
- let g;
36
- l[2] === Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ r(n, { size: 15 }), l[2] = g) : g = l[2];
37
- let _;
38
- l[3] !== f || l[4] !== u || l[5] !== h ? (_ = /* @__PURE__ */ r(e, {
39
- "aria-label": h,
40
- sx: s.btnUp,
41
- variant: "outline",
42
- onClick: u,
43
- disabled: f,
44
- type: "button",
45
- children: g
46
- }), l[3] = f, l[4] = u, l[5] = h, l[6] = _) : _ = l[6];
47
- let v;
48
- l[7] === m ? v = l[8] : (v = m("form_decrease_value"), l[7] = m, l[8] = v);
49
- let y;
50
- l[9] === Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ r(t, { size: 15 }), l[9] = y) : y = l[9];
51
- let b;
52
- l[10] !== p || l[11] !== d || l[12] !== v ? (b = /* @__PURE__ */ r(e, {
53
- "aria-label": v,
54
- sx: s.btnDown,
55
- variant: "outline",
56
- onClick: d,
57
- disabled: p,
58
- type: "button",
59
- children: y
60
- }), l[10] = p, l[11] = d, l[12] = v, l[13] = b) : b = l[13];
61
- let x;
62
- return l[14] !== _ || l[15] !== b ? (x = /* @__PURE__ */ i("div", {
63
- className: "x78zum5 xdt5ytf x4aigyd",
64
- children: [_, b]
65
- }), l[14] = _, l[15] = b, l[16] = x) : x = l[16], x;
32
+ function StepperControls(t0) {
33
+ const $ = c(17);
34
+ const { onIncrement, onDecrement, disableIncrement, disableDecrement } = t0;
35
+ const { t } = useTranslation();
36
+ let t1;
37
+ if ($[0] !== t) {
38
+ t1 = t("form_increase_value");
39
+ $[0] = t;
40
+ $[1] = t1;
41
+ } else t1 = $[1];
42
+ let t2;
43
+ if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
44
+ t2 = /* @__PURE__ */ jsx(ChevronUp, { size: 15 });
45
+ $[2] = t2;
46
+ } else t2 = $[2];
47
+ let t3;
48
+ if ($[3] !== disableIncrement || $[4] !== onIncrement || $[5] !== t1) {
49
+ t3 = /* @__PURE__ */ jsx(Button, {
50
+ "aria-label": t1,
51
+ sx: styles.btnUp,
52
+ variant: "outline",
53
+ onClick: onIncrement,
54
+ disabled: disableIncrement,
55
+ type: "button",
56
+ children: t2
57
+ });
58
+ $[3] = disableIncrement;
59
+ $[4] = onIncrement;
60
+ $[5] = t1;
61
+ $[6] = t3;
62
+ } else t3 = $[6];
63
+ let t4;
64
+ if ($[7] !== t) {
65
+ t4 = t("form_decrease_value");
66
+ $[7] = t;
67
+ $[8] = t4;
68
+ } else t4 = $[8];
69
+ let t5;
70
+ if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
71
+ t5 = /* @__PURE__ */ jsx(ChevronDown, { size: 15 });
72
+ $[9] = t5;
73
+ } else t5 = $[9];
74
+ let t6;
75
+ if ($[10] !== disableDecrement || $[11] !== onDecrement || $[12] !== t4) {
76
+ t6 = /* @__PURE__ */ jsx(Button, {
77
+ "aria-label": t4,
78
+ sx: styles.btnDown,
79
+ variant: "outline",
80
+ onClick: onDecrement,
81
+ disabled: disableDecrement,
82
+ type: "button",
83
+ children: t5
84
+ });
85
+ $[10] = disableDecrement;
86
+ $[11] = onDecrement;
87
+ $[12] = t4;
88
+ $[13] = t6;
89
+ } else t6 = $[13];
90
+ let t7;
91
+ if ($[14] !== t3 || $[15] !== t6) {
92
+ t7 = /* @__PURE__ */ jsxs("div", {
93
+ className: "x78zum5 xdt5ytf x4aigyd",
94
+ children: [t3, t6]
95
+ });
96
+ $[14] = t3;
97
+ $[15] = t6;
98
+ $[16] = t7;
99
+ } else t7 = $[16];
100
+ return t7;
66
101
  }
67
- export { c as StepperControls };
102
+ export { StepperControls };
@@ -1 +1,72 @@
1
- const e=require("../../utils.cjs");var t=[];function n({rules:n,inputClassName:r,stepper:i,min:a,max:o,onChange:s,passthroughProps:c}){let l=n?.required!==void 0&&n.required!==!1;return{isRequired:l,enhancedRules:(()=>{if(!n)return n;let e={...n};return l&&typeof e.required!=`string`&&typeof e.required!=`object`?e.required=`This field is required`:typeof e.required==`object`&&!e.required.message&&(e.required={...e.required,message:`This field is required`}),e})(),numericClass:e.cn(t,r),getHandlers:({currentValue:e,field:t})=>{let n=()=>{let n=Math.min((e??0)+i,o);t.onChange(n),s?.(n)},r=()=>{let n=Math.max((e??0)-i,a);t.onChange(n),s?.(n)};return{handleIncrement:n,handleDecrement:r,handleKeyDown:e=>{e.key===`ArrowUp`?(e.preventDefault(),n()):e.key===`ArrowDown`&&(e.preventDefault(),r()),c.onKeyDown?.(e)},handleBlur:n=>{let r=e;r!==void 0&&(r<a?(t.onChange(a),s?.(a)):r>o&&(t.onChange(o),s?.(o))),t.onBlur(),n&&c.onBlur?.(n)},numericOnValueChange:e=>{let n=e.floatValue===void 0?void 0:e.floatValue;t.onChange(n),s?.(n)}}}}}exports.useFormNumberInput=n;
1
+ const require_utils = require("../../utils.cjs");
2
+ // src/Form/FormNumberInput/useFormNumberInput.ts
3
+ var numericInputBaseClass = [];
4
+ function useFormNumberInput({ rules, inputClassName, stepper, min, max, onChange, passthroughProps }) {
5
+ const isRequired = rules?.required !== void 0 && rules.required !== false;
6
+ const enhancedRules = (() => {
7
+ if (!rules) return rules;
8
+ const newRules = { ...rules };
9
+ if (isRequired && typeof newRules.required !== "string" && typeof newRules.required !== "object") newRules.required = "This field is required";
10
+ else if (typeof newRules.required === "object" && !newRules.required.message) newRules.required = {
11
+ ...newRules.required,
12
+ message: "This field is required"
13
+ };
14
+ return newRules;
15
+ })();
16
+ const numericClass = require_utils.cn(numericInputBaseClass, inputClassName);
17
+ const getHandlers = ({ currentValue, field }) => {
18
+ const handleIncrement = () => {
19
+ const next = Math.min((currentValue ?? 0) + stepper, max);
20
+ field.onChange(next);
21
+ onChange?.(next);
22
+ };
23
+ const handleDecrement = () => {
24
+ const next = Math.max((currentValue ?? 0) - stepper, min);
25
+ field.onChange(next);
26
+ onChange?.(next);
27
+ };
28
+ const handleKeyDown = (e) => {
29
+ if (e.key === "ArrowUp") {
30
+ e.preventDefault();
31
+ handleIncrement();
32
+ } else if (e.key === "ArrowDown") {
33
+ e.preventDefault();
34
+ handleDecrement();
35
+ }
36
+ passthroughProps.onKeyDown?.(e);
37
+ };
38
+ const handleBlur = (e) => {
39
+ const cur = currentValue;
40
+ if (cur !== void 0) {
41
+ if (cur < min) {
42
+ field.onChange(min);
43
+ onChange?.(min);
44
+ } else if (cur > max) {
45
+ field.onChange(max);
46
+ onChange?.(max);
47
+ }
48
+ }
49
+ field.onBlur();
50
+ if (e) passthroughProps.onBlur?.(e);
51
+ };
52
+ const numericOnValueChange = (values) => {
53
+ const newValue = values.floatValue === void 0 ? void 0 : values.floatValue;
54
+ field.onChange(newValue);
55
+ onChange?.(newValue);
56
+ };
57
+ return {
58
+ handleIncrement,
59
+ handleDecrement,
60
+ handleKeyDown,
61
+ handleBlur,
62
+ numericOnValueChange
63
+ };
64
+ };
65
+ return {
66
+ isRequired,
67
+ enhancedRules,
68
+ numericClass,
69
+ getHandlers
70
+ };
71
+ }
72
+ exports.useFormNumberInput = useFormNumberInput;
@@ -1,43 +1,72 @@
1
- import { cn as e } from "../../utils.js";
1
+ import { cn } from "../../utils.js";
2
2
  // src/Form/FormNumberInput/useFormNumberInput.ts
3
- var t = [];
4
- function n({ rules: n, inputClassName: r, stepper: i, min: a, max: o, onChange: s, passthroughProps: c }) {
5
- let l = n?.required !== void 0 && n.required !== !1;
6
- return {
7
- isRequired: l,
8
- enhancedRules: (() => {
9
- if (!n) return n;
10
- let e = { ...n };
11
- return l && typeof e.required != "string" && typeof e.required != "object" ? e.required = "This field is required" : typeof e.required == "object" && !e.required.message && (e.required = {
12
- ...e.required,
13
- message: "This field is required"
14
- }), e;
15
- })(),
16
- numericClass: e(t, r),
17
- getHandlers: ({ currentValue: e, field: t }) => {
18
- let n = () => {
19
- let n = Math.min((e ?? 0) + i, o);
20
- t.onChange(n), s?.(n);
21
- }, r = () => {
22
- let n = Math.max((e ?? 0) - i, a);
23
- t.onChange(n), s?.(n);
24
- };
25
- return {
26
- handleIncrement: n,
27
- handleDecrement: r,
28
- handleKeyDown: (e) => {
29
- e.key === "ArrowUp" ? (e.preventDefault(), n()) : e.key === "ArrowDown" && (e.preventDefault(), r()), c.onKeyDown?.(e);
30
- },
31
- handleBlur: (n) => {
32
- let r = e;
33
- r !== void 0 && (r < a ? (t.onChange(a), s?.(a)) : r > o && (t.onChange(o), s?.(o))), t.onBlur(), n && c.onBlur?.(n);
34
- },
35
- numericOnValueChange: (e) => {
36
- let n = e.floatValue === void 0 ? void 0 : e.floatValue;
37
- t.onChange(n), s?.(n);
3
+ var numericInputBaseClass = [];
4
+ function useFormNumberInput({ rules, inputClassName, stepper, min, max, onChange, passthroughProps }) {
5
+ const isRequired = rules?.required !== void 0 && rules.required !== false;
6
+ const enhancedRules = (() => {
7
+ if (!rules) return rules;
8
+ const newRules = { ...rules };
9
+ if (isRequired && typeof newRules.required !== "string" && typeof newRules.required !== "object") newRules.required = "This field is required";
10
+ else if (typeof newRules.required === "object" && !newRules.required.message) newRules.required = {
11
+ ...newRules.required,
12
+ message: "This field is required"
13
+ };
14
+ return newRules;
15
+ })();
16
+ const numericClass = cn(numericInputBaseClass, inputClassName);
17
+ const getHandlers = ({ currentValue, field }) => {
18
+ const handleIncrement = () => {
19
+ const next = Math.min((currentValue ?? 0) + stepper, max);
20
+ field.onChange(next);
21
+ onChange?.(next);
22
+ };
23
+ const handleDecrement = () => {
24
+ const next = Math.max((currentValue ?? 0) - stepper, min);
25
+ field.onChange(next);
26
+ onChange?.(next);
27
+ };
28
+ const handleKeyDown = (e) => {
29
+ if (e.key === "ArrowUp") {
30
+ e.preventDefault();
31
+ handleIncrement();
32
+ } else if (e.key === "ArrowDown") {
33
+ e.preventDefault();
34
+ handleDecrement();
35
+ }
36
+ passthroughProps.onKeyDown?.(e);
37
+ };
38
+ const handleBlur = (e) => {
39
+ const cur = currentValue;
40
+ if (cur !== void 0) {
41
+ if (cur < min) {
42
+ field.onChange(min);
43
+ onChange?.(min);
44
+ } else if (cur > max) {
45
+ field.onChange(max);
46
+ onChange?.(max);
38
47
  }
39
- };
40
- }
48
+ }
49
+ field.onBlur();
50
+ if (e) passthroughProps.onBlur?.(e);
51
+ };
52
+ const numericOnValueChange = (values) => {
53
+ const newValue = values.floatValue === void 0 ? void 0 : values.floatValue;
54
+ field.onChange(newValue);
55
+ onChange?.(newValue);
56
+ };
57
+ return {
58
+ handleIncrement,
59
+ handleDecrement,
60
+ handleKeyDown,
61
+ handleBlur,
62
+ numericOnValueChange
63
+ };
64
+ };
65
+ return {
66
+ isRequired,
67
+ enhancedRules,
68
+ numericClass,
69
+ getHandlers
41
70
  };
42
71
  }
43
- export { n as useFormNumberInput };
72
+ export { useFormNumberInput };
@@ -1 +1,65 @@
1
- const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../ui/label.cjs"),n=require("../../ui/radio-group.cjs"),r=require("../Form.cjs"),i=require("./useFormRadio.cjs");let a=require("@stylexjs/stylex");a=e.__toESM(a,1);let o=require("react/jsx-runtime");var s={list:{k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kOIVth:`xb6y1gh`,keoZOQ:`x72edsj`,$$css:!0},label:{kkrTdU:`x1ypdohk`,k63SB2:`xo1l8bm`,kGuDYH:`xkpwil5`,kMwMTN:`x84br7x`,kfSwDN:`x87ps6o`,$$css:!0},scrollable:{kORKVm:`x1odjw0f`,$$css:!0}};function c({name:e,control:a,label:c=``,size:l=`middle`,options:u=[],onChange:d,value:f,rules:p={},disabled:m=!1,optionType:h=`default`,buttonStyle:g,autoHeightMax:_,showEmpty:v=!1,hideErrorMessage:y=!1,className:b}){let{processedRules:x,parseValue:S,emitChange:C}=i.useFormRadio({rules:p,value:f,onChange:d,showEmpty:v});return(0,o.jsx)(r.FormBase,{name:e,control:a,label:c,rules:x,className:b,children:r=>(0,o.jsx)(n.RadioGroup,{value:S(f??r.value),onValueChange:e=>C(r.onChange,e),disabled:m,sx:[s.list,_?s.scrollable:void 0],style:_?{maxHeight:`${_}px`}:void 0,children:u.map(r=>(0,o.jsxs)(`div`,{className:`x78zum5 x6s0dn4 x13z6uf9`,children:[(0,o.jsx)(n.RadioGroupItem,{value:String(r.value),id:`${String(e)}-${r.value}`,disabled:m||r.disabled}),(0,o.jsx)(t.Label,{htmlFor:`${String(e)}-${r.value}`,sx:s.label,children:r.label})]},String(r.value)))})})}exports.FormRadio=c;
1
+ const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
2
+ const require_label = require("../../ui/label.cjs");
3
+ const require_radio_group = require("../../ui/radio-group.cjs");
4
+ const require_Form = require("../Form.cjs");
5
+ const require_useFormRadio = require("./useFormRadio.cjs");
6
+ let _stylexjs_stylex = require("@stylexjs/stylex");
7
+ _stylexjs_stylex = require_runtime.__toESM(_stylexjs_stylex, 1);
8
+ let react_jsx_runtime = require("react/jsx-runtime");
9
+ // src/Form/FormRadioGroup/FormRadio.tsx
10
+ var styles = {
11
+ list: {
12
+ k1xSpc: "x78zum5",
13
+ kXwgrk: "xdt5ytf",
14
+ kOIVth: "xb6y1gh",
15
+ keoZOQ: "x72edsj",
16
+ $$css: true
17
+ },
18
+ label: {
19
+ kkrTdU: "x1ypdohk",
20
+ k63SB2: "xo1l8bm",
21
+ kGuDYH: "xkpwil5",
22
+ kMwMTN: "x84br7x",
23
+ kfSwDN: "x87ps6o",
24
+ $$css: true
25
+ },
26
+ scrollable: {
27
+ kORKVm: "x1odjw0f",
28
+ $$css: true
29
+ }
30
+ };
31
+ function FormRadio({ name, control, label = "", size: _size = "middle", options = [], onChange, value, rules = {}, disabled = false, optionType: _optionType = "default", buttonStyle: _buttonStyle, autoHeightMax, showEmpty = false, hideErrorMessage: _hideErrorMessage = false, className }) {
32
+ const { processedRules, parseValue, emitChange } = require_useFormRadio.useFormRadio({
33
+ rules,
34
+ value,
35
+ onChange,
36
+ showEmpty
37
+ });
38
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Form.FormBase, {
39
+ name,
40
+ control,
41
+ label,
42
+ rules: processedRules,
43
+ className,
44
+ children: (field) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_radio_group.RadioGroup, {
45
+ value: parseValue(value ?? field.value),
46
+ onValueChange: (newValue) => emitChange(field.onChange, newValue),
47
+ disabled,
48
+ sx: [styles.list, autoHeightMax ? styles.scrollable : void 0],
49
+ style: autoHeightMax ? { maxHeight: `${autoHeightMax}px` } : void 0,
50
+ children: options.map((option) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
51
+ className: "x78zum5 x6s0dn4 x13z6uf9",
52
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_radio_group.RadioGroupItem, {
53
+ value: String(option.value),
54
+ id: `${String(name)}-${option.value}`,
55
+ disabled: disabled || option.disabled
56
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_label.Label, {
57
+ htmlFor: `${String(name)}-${option.value}`,
58
+ sx: styles.label,
59
+ children: option.label
60
+ })]
61
+ }, String(option.value)))
62
+ })
63
+ });
64
+ }
65
+ exports.FormRadio = FormRadio;