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