@vlrc-fe/components 2.8.0 → 3.0.0
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 +16 -0
- package/README.md +127 -209
- package/bin/vlrc.mjs +15 -0
- package/dist/ConfirmModal.cjs +1 -0
- package/dist/ConfirmModal.js +257 -0
- package/dist/DataTable/DataTable.cjs +1 -0
- package/dist/DataTable/DataTable.js +159 -0
- package/dist/DataTable/components/DataTableColumnHeader.cjs +1 -0
- package/dist/DataTable/components/DataTableColumnHeader.js +114 -0
- package/dist/DataTable/components/DataTableFacetedFilter.cjs +1 -0
- package/dist/DataTable/components/DataTableFacetedFilter.js +226 -0
- package/dist/DataTable/components/DataTablePagination.cjs +1 -0
- package/dist/DataTable/components/DataTablePagination.js +101 -0
- package/dist/DataTable/components/DataTableRowActions.cjs +1 -0
- package/dist/DataTable/components/DataTableRowActions.js +71 -0
- package/dist/DataTable/components/DataTableTable.cjs +1 -0
- package/dist/DataTable/components/DataTableTable.js +46 -0
- package/dist/DataTable/components/DataTableToolbar.cjs +1 -0
- package/dist/DataTable/components/DataTableToolbar.js +48 -0
- package/dist/DataTable/components/DataTableViewOptions.cjs +1 -0
- package/dist/DataTable/components/DataTableViewOptions.js +50 -0
- package/dist/DataTable/render/createColumns.cjs +1 -0
- package/dist/DataTable/render/createColumns.js +59 -0
- package/dist/DataTable/render/defaults.cjs +1 -0
- package/dist/Dropdown/Dropdown.cjs +1 -0
- package/dist/Dropdown/Dropdown.js +221 -0
- package/dist/Form/Form.cjs +1 -0
- package/dist/Form/Form.js +221 -0
- package/dist/Form/FormDatePicker/FormDatePicker.cjs +1 -0
- package/dist/Form/FormDatePicker/FormDatePicker.js +79 -0
- package/dist/Form/FormDatePicker/MonthPickerPanel.cjs +1 -0
- package/dist/Form/FormDatePicker/MonthPickerPanel.js +120 -0
- package/dist/Form/FormDatePicker/RangeDatePicker.cjs +1 -0
- package/dist/Form/FormDatePicker/RangeDatePicker.js +123 -0
- package/dist/Form/FormDatePicker/SingleDatePicker.cjs +1 -0
- package/dist/Form/FormDatePicker/SingleDatePicker.js +157 -0
- package/dist/Form/FormDatePicker/TimeInput.cjs +1 -0
- package/dist/Form/FormDatePicker/TimeInput.js +86 -0
- package/dist/Form/FormDatePicker/TimePicker.cjs +1 -0
- package/dist/Form/FormDatePicker/TimePicker.js +89 -0
- package/dist/Form/FormDatePicker/YearPickerPanel.cjs +1 -0
- package/dist/Form/FormDatePicker/YearPickerPanel.js +100 -0
- package/dist/Form/FormDatePicker/useFormDatePicker.cjs +1 -0
- package/dist/Form/FormDatePicker/useFormDatePicker.js +40 -0
- package/dist/Form/FormFileUpload/FileUpload.cjs +1 -0
- package/dist/Form/FormFileUpload/FileUpload.js +422 -0
- package/dist/Form/FormFileUpload/index.cjs +1 -0
- package/dist/Form/FormFileUpload/index.js +30 -0
- package/dist/Form/FormMultiSelect/FormMultiSelect.cjs +1 -0
- package/dist/Form/FormMultiSelect/FormMultiSelect.js +25 -0
- package/dist/Form/FormNumberInput/FormNumberInput.cjs +1 -0
- package/dist/Form/FormNumberInput/FormNumberInput.js +67 -0
- package/dist/Form/FormNumberInput/StepperControls.cjs +1 -0
- package/dist/Form/FormNumberInput/StepperControls.js +67 -0
- package/dist/Form/FormNumberInput/useFormNumberInput.cjs +1 -0
- package/dist/Form/FormNumberInput/useFormNumberInput.js +43 -0
- package/dist/Form/FormRadioGroup/FormRadio.cjs +1 -0
- package/dist/Form/FormRadioGroup/FormRadio.js +63 -0
- package/dist/Form/FormSelect/FormSelect.cjs +1 -0
- package/dist/Form/FormSelect/FormSelect.js +30 -0
- package/dist/Modal.cjs +1 -0
- package/dist/Modal.js +120 -0
- package/dist/MultiSelect/MultiSelect.cjs +1 -0
- package/dist/MultiSelect/MultiSelect.js +199 -0
- package/dist/MultiSelect/renderers.cjs +1 -0
- package/dist/MultiSelect/renderers.js +367 -0
- package/dist/MultiSelect/useMultiSelect.cjs +1 -0
- package/dist/MultiSelect/useMultiSelect.js +163 -0
- package/dist/Select/BaseSelect.cjs +1 -0
- package/dist/Select/BaseSelect.js +222 -0
- package/dist/Select/MultiSelectTags.cjs +1 -0
- package/dist/Select/MultiSelectTags.js +101 -0
- package/dist/Typography/Blockquote.cjs +1 -0
- package/dist/Typography/Blockquote.js +75 -0
- package/dist/Typography/Code.cjs +1 -0
- package/dist/Typography/Code.js +123 -0
- package/dist/Typography/Link.cjs +1 -0
- package/dist/Typography/Link.js +128 -0
- package/dist/Typography/Paragraph.cjs +1 -0
- package/dist/Typography/Paragraph.js +212 -0
- package/dist/Typography/Text.cjs +1 -0
- package/dist/Typography/Text.js +205 -0
- package/dist/Typography/Title.cjs +1 -0
- package/dist/Typography/Title.d.ts.map +1 -1
- package/dist/Typography/Title.js +199 -0
- package/dist/Typography/Typography.cjs +1 -0
- package/dist/Typography/Typography.js +16 -0
- package/dist/Typography/index.d.ts +1 -0
- package/dist/Typography/index.d.ts.map +1 -1
- package/dist/Typography/index.js +13 -0
- package/dist/Typography/tooltip.cjs +1 -0
- package/dist/Typography/tooltip.js +18 -0
- package/dist/Typography/utils.cjs +1 -0
- package/dist/Typography/utils.js +24 -0
- package/dist/Typography/weightStyles.cjs +1 -0
- package/dist/assets/stylex.css +333 -274
- package/dist/astryx.cjs +1 -0
- package/dist/astryx.d.ts +3 -0
- package/dist/astryx.d.ts.map +1 -0
- package/dist/astryx.js +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +118 -111
- package/dist/layout/Box.cjs +1 -0
- package/dist/layout/Box.d.ts +19 -0
- package/dist/layout/Box.d.ts.map +1 -0
- package/dist/layout/Box.js +112 -0
- package/dist/layout/Center.cjs +1 -0
- package/dist/layout/Center.d.ts +9 -0
- package/dist/layout/Center.d.ts.map +1 -0
- package/dist/layout/Center.js +22 -0
- package/dist/layout/Container.cjs +1 -0
- package/dist/layout/Container.d.ts +17 -0
- package/dist/layout/Container.d.ts.map +1 -0
- package/dist/layout/Container.js +75 -0
- package/dist/layout/Stack.cjs +1 -0
- package/dist/layout/Stack.d.ts +26 -0
- package/dist/layout/Stack.d.ts.map +1 -0
- package/dist/layout/Stack.js +89 -0
- package/dist/layout/index.d.ts +6 -1
- package/dist/layout/index.d.ts.map +1 -1
- package/dist/layout/index.js +9 -0
- package/dist/node_modules/.pnpm/@floating-ui_core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.cjs +1 -0
- package/dist/node_modules/.pnpm/@floating-ui_core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.js +336 -0
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs +1 -0
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +321 -0
- 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 +1 -0
- 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 +211 -0
- 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 +1 -0
- 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 +87 -0
- 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 +1 -0
- 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 +31 -0
- 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 +1 -0
- 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 +87 -0
- 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 +1 -0
- 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 +94 -0
- 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 +1 -0
- 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 +409 -0
- 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 +1 -0
- 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 +1 -0
- 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 +198 -0
- 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 +1 -0
- 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 +1 -0
- 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 +14 -0
- 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 +1 -0
- 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 +170 -0
- 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 +1 -0
- 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 +1 -0
- 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 +158 -0
- 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 +1 -0
- 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 +149 -0
- 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 +1 -0
- 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 +15 -0
- 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 +1 -0
- 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 +543 -0
- 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 +1 -0
- 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 +275 -0
- 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 +1 -0
- 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 +537 -0
- 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 +1 -0
- 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 +163 -0
- 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 +1 -0
- 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 -0
- 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 +1 -0
- 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 +97 -0
- 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 +1 -0
- 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 +1 -0
- 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 +168 -0
- 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 +1 -0
- 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 +431 -0
- 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 +1 -0
- 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 +155 -0
- 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 +1 -0
- 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 +117 -0
- 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 +1 -0
- 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 +122 -0
- 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 +1 -0
- 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 +30 -0
- 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 +1 -0
- 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 +1 -0
- 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 +82 -0
- 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 +1 -0
- 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 +20 -0
- 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 +1 -0
- 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 +1 -0
- 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 +1 -0
- 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 +1 -0
- 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 +34 -0
- 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 +1 -0
- 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 +29 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/formatters.cjs +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/formatters.js +388 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/lightFormatters.cjs +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/lightFormatters.js +42 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.cjs +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +7 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/normalizeDates.cjs +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/normalizeDates.js +7 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constructFrom.cjs +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constructFrom.js +6 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/differenceInCalendarDays.cjs +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/differenceInCalendarDays.js +10 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/format.cjs +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/format.js +58 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getDayOfYear.cjs +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getDayOfYear.js +9 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeek.cjs +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeek.js +10 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeekYear.cjs +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeekYear.js +13 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeek.cjs +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeek.js +10 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeekYear.cjs +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeekYear.js +14 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isValid.cjs +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isValid.js +7 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatLong.cjs +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatLong.js +31 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/localize.cjs +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/localize.js +201 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/match.cjs +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/match.js +123 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US.cjs +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US.js +19 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfDay.cjs +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfDay.js +7 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeek.cjs +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeek.js +9 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeekYear.cjs +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeekYear.js +9 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeek.cjs +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeek.js +8 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeekYear.cjs +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeekYear.js +10 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfYear.cjs +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfYear.js +7 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/toDate.cjs +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/toDate.js +6 -0
- 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 +1 -0
- 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 +23 -0
- 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 +20 -0
- package/dist/node_modules/.pnpm/react-hook-form@7.83.0_react@19.3.1/node_modules/react-hook-form/dist/index.esm.cjs +1 -0
- 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 +9 -0
- 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 +38 -0
- 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 +69 -0
- 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 +1 -0
- 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.js +3 -0
- 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 +1 -0
- 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 +13 -0
- 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 +4 -0
- 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 +112 -0
- 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 +1 -0
- 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 +51 -0
- 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 +1 -0
- 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 +4 -0
- 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 +1 -0
- 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 +6 -0
- 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 +1 -0
- 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 +1 -0
- 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 +10 -0
- 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 +1 -0
- 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 +14 -0
- 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 +1 -0
- 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.js +3 -0
- 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 +1 -0
- 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 +27 -0
- 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 +1 -0
- 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 +25 -0
- 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 +1 -0
- 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 +15 -0
- 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 +1 -0
- 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 +68 -0
- 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 +3 -0
- package/dist/richtext/index.d.ts +2 -0
- package/dist/richtext/index.d.ts.map +1 -0
- package/dist/theme/index.cjs +1 -0
- package/dist/theme/index.js +34 -0
- package/dist/theme/tokens.stylex.cjs +1 -0
- package/dist/theme/tokens.stylex.d.ts +175 -5
- package/dist/theme/tokens.stylex.d.ts.map +1 -1
- package/dist/theme/tokens.stylex.js +166 -0
- package/dist/theme/zIndex.cjs +1 -0
- package/dist/theme.css +52 -138
- package/dist/ui/accordion.cjs +1 -0
- package/dist/ui/accordion.js +286 -0
- package/dist/ui/action-bar.cjs +1 -0
- package/dist/ui/action-bar.js +161 -0
- package/dist/ui/alert-dialog.cjs +1 -0
- package/dist/ui/alert-dialog.js +234 -0
- package/dist/ui/alert.cjs +1 -0
- package/dist/ui/alert.js +97 -0
- package/dist/ui/aspect-ratio.cjs +1 -0
- package/dist/ui/aspect-ratio.js +15 -0
- package/dist/ui/avatar.cjs +1 -0
- package/dist/ui/avatar.js +224 -0
- package/dist/ui/badge-overflow.cjs +1 -0
- package/dist/ui/badge-overflow.js +57 -0
- package/dist/ui/badge.cjs +1 -0
- package/dist/ui/badge.d.ts +2 -0
- package/dist/ui/badge.d.ts.map +1 -1
- package/dist/ui/badge.js +146 -0
- package/dist/ui/breadcrumb.cjs +1 -0
- package/dist/ui/breadcrumb.js +273 -0
- package/dist/ui/button.cjs +1 -0
- package/dist/ui/button.d.ts +2 -0
- package/dist/ui/button.d.ts.map +1 -1
- package/dist/ui/button.js +372 -0
- package/dist/ui/calendar.cjs +1 -0
- package/dist/ui/calendar.js +506 -0
- package/dist/ui/card.cjs +1 -0
- package/dist/ui/card.js +211 -0
- package/dist/ui/carousel.cjs +1 -0
- package/dist/ui/carousel.js +208 -0
- package/dist/ui/checkbox.cjs +1 -0
- package/dist/ui/checkbox.js +157 -0
- package/dist/ui/circular-progress.cjs +1 -0
- package/dist/ui/circular-progress.js +124 -0
- package/dist/ui/collapsible.cjs +1 -0
- package/dist/ui/collapsible.js +33 -0
- package/dist/ui/command.cjs +1 -0
- package/dist/ui/command.js +277 -0
- package/dist/ui/compare-slider.cjs +1 -0
- package/dist/ui/compare-slider.js +134 -0
- package/dist/ui/context-menu.cjs +1 -0
- package/dist/ui/context-menu.js +330 -0
- package/dist/ui/copy-button.cjs +1 -0
- package/dist/ui/copy-button.d.ts.map +1 -1
- package/dist/ui/copy-button.js +80 -0
- package/dist/ui/dialog.cjs +1 -0
- package/dist/ui/dialog.js +212 -0
- package/dist/ui/drawer.cjs +1 -0
- package/dist/ui/drawer.js +222 -0
- package/dist/ui/dropdown-menu.cjs +1 -0
- package/dist/ui/dropdown-menu.js +319 -0
- package/dist/ui/editable.cjs +1 -0
- package/dist/ui/editable.js +339 -0
- package/dist/ui/empty.cjs +1 -0
- package/dist/ui/empty.js +134 -0
- package/dist/ui/field.cjs +1 -0
- package/dist/ui/field.d.ts +2 -0
- package/dist/ui/field.d.ts.map +1 -1
- package/dist/ui/field.js +316 -0
- package/dist/ui/file-upload-adapters.cjs +1 -0
- package/dist/ui/file-upload.cjs +1 -0
- package/dist/ui/file-upload.js +997 -0
- package/dist/ui/flex.cjs +1 -0
- package/dist/ui/flex.js +182 -0
- package/dist/ui/form.cjs +1 -0
- package/dist/ui/form.js +159 -0
- package/dist/ui/gauge.cjs +1 -0
- package/dist/ui/gauge.js +116 -0
- package/dist/ui/grid.cjs +1 -0
- package/dist/ui/grid.js +190 -0
- package/dist/ui/hover-card.cjs +1 -0
- package/dist/ui/hover-card.js +61 -0
- package/dist/ui/input-group.cjs +1 -0
- package/dist/ui/input-group.js +219 -0
- package/dist/ui/input-otp.cjs +1 -0
- package/dist/ui/input-otp.js +184 -0
- package/dist/ui/input.cjs +1 -0
- package/dist/ui/input.js +368 -0
- package/dist/ui/item.cjs +1 -0
- package/dist/ui/item.js +276 -0
- package/dist/ui/kbd.cjs +1 -0
- package/dist/ui/kbd.js +107 -0
- package/dist/ui/label.cjs +1 -0
- package/dist/ui/masonry.cjs +1 -0
- package/dist/ui/masonry.js +51 -0
- package/dist/ui/menubar.cjs +1 -0
- package/dist/ui/menubar.js +405 -0
- package/dist/ui/navigation-menu.cjs +1 -0
- package/dist/ui/navigation-menu.js +256 -0
- package/dist/ui/pagination.cjs +1 -0
- package/dist/ui/pagination.js +317 -0
- package/dist/ui/popover.cjs +1 -0
- package/dist/ui/popover.js +69 -0
- package/dist/ui/progress.cjs +1 -0
- package/dist/ui/progress.js +29 -0
- package/dist/ui/radio-group.cjs +1 -0
- package/dist/ui/radio-group.js +167 -0
- package/dist/ui/rating.cjs +1 -0
- package/dist/ui/rating.js +171 -0
- package/dist/ui/resizable.cjs +1 -0
- package/dist/ui/resizable.js +75 -0
- package/dist/ui/responsive-dialog.cjs +1 -0
- package/dist/ui/responsive-dialog.js +175 -0
- package/dist/ui/row-col.cjs +1 -0
- package/dist/ui/row-col.js +471 -0
- package/dist/ui/scroll-area.cjs +1 -0
- package/dist/ui/scroll-area.js +83 -0
- package/dist/ui/segmented.cjs +1 -0
- package/dist/ui/segmented.js +155 -0
- package/dist/ui/select.cjs +1 -0
- package/dist/ui/select.js +280 -0
- package/dist/ui/separator.cjs +1 -0
- package/dist/ui/separator.d.ts +2 -0
- package/dist/ui/separator.d.ts.map +1 -1
- package/dist/ui/separator.js +36 -0
- package/dist/ui/sheet.cjs +1 -0
- package/dist/ui/sheet.js +263 -0
- package/dist/ui/sidebar.cjs +1 -0
- package/dist/ui/sidebar.js +808 -0
- package/dist/ui/skeleton.cjs +1 -0
- package/dist/ui/skeleton.js +30 -0
- package/dist/ui/slider.cjs +1 -0
- package/dist/ui/slider.js +44 -0
- package/dist/ui/sonner.cjs +1 -0
- package/dist/ui/sonner.d.ts +1 -1
- package/dist/ui/sonner.d.ts.map +1 -1
- package/dist/ui/sonner.js +24 -0
- package/dist/ui/spinner.cjs +1 -0
- package/dist/ui/stat.cjs +1 -0
- package/dist/ui/stat.js +185 -0
- package/dist/ui/stepper.cjs +1 -0
- package/dist/ui/stepper.js +459 -0
- package/dist/ui/switch.cjs +1 -0
- package/dist/ui/switch.js +190 -0
- package/dist/ui/table.cjs +1 -0
- package/dist/ui/tabs.cjs +1 -0
- package/dist/ui/tabs.js +226 -0
- package/dist/ui/tags-input.cjs +1 -0
- package/dist/ui/tags-input.js +353 -0
- package/dist/ui/textarea.cjs +1 -0
- package/dist/ui/textarea.js +113 -0
- package/dist/ui/timeline.cjs +1 -0
- package/dist/ui/timeline.js +361 -0
- package/dist/ui/toggle-group.cjs +1 -0
- package/dist/ui/toggle-group.js +74 -0
- package/dist/ui/toggle.cjs +1 -0
- package/dist/ui/toggle.d.ts +1 -1
- package/dist/ui/toggle.js +136 -0
- package/dist/ui/tooltip.cjs +1 -0
- package/dist/ui/tooltip.js +63 -0
- package/dist/ui/useBreakpoint.cjs +1 -0
- package/dist/utils.cjs +1 -0
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +7 -0
- package/dist/vlrc-theme.css +316 -0
- package/package.json +51 -52
- package/dist/index10.cjs +0 -1
- package/dist/index10.js +0 -18
- package/dist/index100.cjs +0 -1
- package/dist/index100.js +0 -13
- package/dist/index101.cjs +0 -1
- package/dist/index101.js +0 -543
- package/dist/index102.cjs +0 -1
- package/dist/index102.js +0 -198
- package/dist/index103.cjs +0 -1
- package/dist/index103.js +0 -330
- package/dist/index104.cjs +0 -1
- package/dist/index104.js +0 -80
- package/dist/index105.cjs +0 -3
- package/dist/index106.cjs +0 -1
- package/dist/index106.js +0 -222
- package/dist/index107.cjs +0 -1
- package/dist/index107.js +0 -319
- package/dist/index108.cjs +0 -1
- package/dist/index108.js +0 -339
- package/dist/index109.cjs +0 -1
- package/dist/index109.js +0 -134
- package/dist/index11.cjs +0 -1
- package/dist/index110.cjs +0 -1
- package/dist/index111.cjs +0 -1
- package/dist/index111.js +0 -35
- package/dist/index112.cjs +0 -1
- package/dist/index112.js +0 -315
- package/dist/index113.cjs +0 -1
- package/dist/index114.cjs +0 -1
- package/dist/index114.js +0 -997
- package/dist/index115.cjs +0 -1
- package/dist/index116.cjs +0 -1
- package/dist/index116.js +0 -159
- package/dist/index117.cjs +0 -1
- package/dist/index117.js +0 -116
- package/dist/index118.cjs +0 -1
- package/dist/index119.cjs +0 -1
- package/dist/index119.js +0 -471
- package/dist/index12.cjs +0 -1
- package/dist/index12.js +0 -199
- package/dist/index120.cjs +0 -1
- package/dist/index120.js +0 -190
- package/dist/index121.cjs +0 -1
- package/dist/index121.js +0 -149
- package/dist/index122.cjs +0 -1
- package/dist/index122.js +0 -61
- package/dist/index123.cjs +0 -1
- package/dist/index123.js +0 -368
- package/dist/index124.cjs +0 -1
- package/dist/index124.js +0 -219
- package/dist/index125.cjs +0 -20
- package/dist/index126.cjs +0 -1
- package/dist/index126.js +0 -184
- package/dist/index127.cjs +0 -1
- package/dist/index127.js +0 -276
- package/dist/index128.cjs +0 -1
- package/dist/index128.js +0 -51
- package/dist/index129.cjs +0 -1
- package/dist/index129.js +0 -275
- package/dist/index13.cjs +0 -1
- package/dist/index13.js +0 -212
- package/dist/index130.cjs +0 -1
- package/dist/index130.js +0 -405
- package/dist/index131.cjs +0 -1
- package/dist/index132.cjs +0 -1
- package/dist/index132.js +0 -29
- package/dist/index133.cjs +0 -1
- package/dist/index133.js +0 -537
- package/dist/index134.cjs +0 -1
- package/dist/index134.js +0 -256
- package/dist/index135.cjs +0 -1
- package/dist/index135.js +0 -317
- package/dist/index136.cjs +0 -1
- package/dist/index136.js +0 -29
- package/dist/index137.cjs +0 -1
- package/dist/index137.js +0 -167
- package/dist/index138.cjs +0 -1
- package/dist/index138.js +0 -171
- package/dist/index139.cjs +0 -1
- package/dist/index14.cjs +0 -1
- package/dist/index14.js +0 -205
- package/dist/index140.cjs +0 -1
- package/dist/index140.js +0 -75
- package/dist/index141.cjs +0 -1
- package/dist/index141.js +0 -175
- package/dist/index142.cjs +0 -1
- package/dist/index142.js +0 -83
- package/dist/index143.cjs +0 -1
- package/dist/index143.js +0 -155
- package/dist/index144.cjs +0 -1
- package/dist/index144.js +0 -280
- package/dist/index145.cjs +0 -1
- package/dist/index145.js +0 -263
- package/dist/index146.cjs +0 -1
- package/dist/index146.js +0 -30
- package/dist/index147.cjs +0 -1
- package/dist/index147.js +0 -808
- package/dist/index149.cjs +0 -1
- package/dist/index149.js +0 -431
- package/dist/index15.cjs +0 -1
- package/dist/index15.js +0 -128
- package/dist/index150.cjs +0 -1
- package/dist/index150.js +0 -44
- package/dist/index151.cjs +0 -1
- package/dist/index151.js +0 -28
- package/dist/index152.cjs +0 -1
- package/dist/index153.cjs +0 -1
- package/dist/index153.js +0 -185
- package/dist/index154.cjs +0 -1
- package/dist/index154.js +0 -459
- package/dist/index155.cjs +0 -1
- package/dist/index155.js +0 -155
- package/dist/index156.cjs +0 -1
- package/dist/index156.js +0 -190
- package/dist/index157.cjs +0 -1
- package/dist/index158.cjs +0 -1
- package/dist/index158.js +0 -117
- package/dist/index159.cjs +0 -1
- package/dist/index159.js +0 -226
- package/dist/index16.cjs +0 -1
- package/dist/index16.js +0 -75
- package/dist/index160.cjs +0 -1
- package/dist/index160.js +0 -353
- package/dist/index161.cjs +0 -1
- package/dist/index161.js +0 -113
- package/dist/index162.cjs +0 -1
- package/dist/index162.js +0 -361
- package/dist/index163.cjs +0 -1
- package/dist/index163.js +0 -30
- package/dist/index164.cjs +0 -1
- package/dist/index164.js +0 -136
- package/dist/index165.cjs +0 -1
- package/dist/index165.js +0 -122
- package/dist/index166.cjs +0 -1
- package/dist/index166.js +0 -74
- package/dist/index167.cjs +0 -1
- package/dist/index167.js +0 -120
- package/dist/index169.cjs +0 -1
- package/dist/index169.js +0 -101
- package/dist/index17.cjs +0 -1
- package/dist/index17.js +0 -123
- package/dist/index170.cjs +0 -1
- package/dist/index170.js +0 -46
- package/dist/index171.cjs +0 -1
- package/dist/index171.js +0 -48
- package/dist/index172.cjs +0 -1
- package/dist/index172.js +0 -50
- package/dist/index173.cjs +0 -1
- package/dist/index174.cjs +0 -1
- package/dist/index174.js +0 -159
- package/dist/index175.cjs +0 -1
- package/dist/index175.js +0 -71
- package/dist/index176.cjs +0 -1
- package/dist/index176.js +0 -59
- package/dist/index177.cjs +0 -1
- package/dist/index177.js +0 -226
- package/dist/index178.cjs +0 -1
- package/dist/index178.js +0 -114
- package/dist/index179.cjs +0 -1
- package/dist/index179.js +0 -221
- package/dist/index18.cjs +0 -1
- package/dist/index18.js +0 -16
- package/dist/index181.cjs +0 -1
- package/dist/index181.js +0 -367
- package/dist/index182.cjs +0 -1
- package/dist/index182.js +0 -163
- package/dist/index183.cjs +0 -1
- package/dist/index183.js +0 -199
- package/dist/index184.cjs +0 -1
- package/dist/index184.js +0 -25
- package/dist/index186.cjs +0 -1
- package/dist/index186.js +0 -6
- package/dist/index187.cjs +0 -1
- package/dist/index187.js +0 -6
- package/dist/index189.cjs +0 -1
- package/dist/index189.js +0 -8
- package/dist/index190.cjs +0 -1
- package/dist/index190.js +0 -9
- package/dist/index191.cjs +0 -1
- package/dist/index191.js +0 -13
- package/dist/index192.cjs +0 -1
- package/dist/index192.js +0 -7
- package/dist/index193.cjs +0 -1
- package/dist/index193.js +0 -7
- package/dist/index194.cjs +0 -1
- package/dist/index194.js +0 -7
- package/dist/index195.cjs +0 -1
- package/dist/index195.js +0 -10
- package/dist/index196.cjs +0 -1
- package/dist/index196.js +0 -9
- package/dist/index198.cjs +0 -1
- package/dist/index198.js +0 -7
- package/dist/index199.cjs +0 -1
- package/dist/index199.js +0 -7
- package/dist/index202.cjs +0 -1
- package/dist/index202.js +0 -31
- package/dist/index205.cjs +0 -1
- package/dist/index205.js +0 -201
- package/dist/index208.cjs +0 -1
- package/dist/index208.js +0 -123
- package/dist/index209.cjs +0 -1
- package/dist/index209.js +0 -19
- package/dist/index21.cjs +0 -1
- package/dist/index21.js +0 -29
- package/dist/index210.cjs +0 -1
- package/dist/index210.js +0 -9
- package/dist/index211.cjs +0 -1
- package/dist/index211.js +0 -10
- package/dist/index212.cjs +0 -1
- package/dist/index212.js +0 -14
- package/dist/index213.cjs +0 -1
- package/dist/index213.js +0 -10
- package/dist/index214.cjs +0 -1
- package/dist/index214.js +0 -10
- package/dist/index216.cjs +0 -1
- package/dist/index216.js +0 -42
- package/dist/index217.cjs +0 -1
- package/dist/index217.js +0 -388
- package/dist/index22.cjs +0 -1
- package/dist/index22.js +0 -371
- package/dist/index220.cjs +0 -1
- package/dist/index220.js +0 -58
- package/dist/index221.cjs +0 -1
- package/dist/index221.js +0 -40
- package/dist/index222.cjs +0 -1
- package/dist/index222.js +0 -123
- package/dist/index223.cjs +0 -1
- package/dist/index223.js +0 -86
- package/dist/index224.cjs +0 -1
- package/dist/index224.js +0 -89
- package/dist/index225.cjs +0 -1
- package/dist/index225.js +0 -120
- package/dist/index226.cjs +0 -1
- package/dist/index226.js +0 -100
- package/dist/index227.cjs +0 -1
- package/dist/index227.js +0 -157
- package/dist/index228.cjs +0 -1
- package/dist/index228.js +0 -79
- package/dist/index229.cjs +0 -9
- package/dist/index23.cjs +0 -1
- package/dist/index23.js +0 -212
- package/dist/index230.cjs +0 -1
- package/dist/index230.js +0 -67
- package/dist/index231.cjs +0 -1
- package/dist/index231.js +0 -43
- package/dist/index232.cjs +0 -1
- package/dist/index232.js +0 -67
- package/dist/index234.cjs +0 -1
- package/dist/index234.js +0 -101
- package/dist/index235.cjs +0 -1
- package/dist/index235.js +0 -222
- package/dist/index236.cjs +0 -1
- package/dist/index236.js +0 -30
- package/dist/index238.cjs +0 -1
- package/dist/index238.js +0 -63
- package/dist/index239.cjs +0 -1
- package/dist/index239.js +0 -422
- package/dist/index24.cjs +0 -1
- package/dist/index24.js +0 -257
- package/dist/index240.cjs +0 -1
- package/dist/index240.js +0 -30
- package/dist/index241.cjs +0 -1
- package/dist/index241.js +0 -221
- package/dist/index25.cjs +0 -1
- package/dist/index25.js +0 -286
- package/dist/index26.cjs +0 -1
- package/dist/index26.js +0 -182
- package/dist/index27.cjs +0 -1
- package/dist/index27.js +0 -107
- package/dist/index28.cjs +0 -1
- package/dist/index28.js +0 -161
- package/dist/index29.cjs +0 -1
- package/dist/index29.js +0 -97
- package/dist/index3.cjs +0 -1
- package/dist/index3.js +0 -63
- package/dist/index30.cjs +0 -1
- package/dist/index31.cjs +0 -1
- package/dist/index33.cjs +0 -1
- package/dist/index33.js +0 -87
- package/dist/index34.cjs +0 -1
- package/dist/index34.js +0 -234
- package/dist/index35.cjs +0 -1
- package/dist/index36.cjs +0 -1
- package/dist/index36.js +0 -31
- package/dist/index37.cjs +0 -1
- package/dist/index37.js +0 -15
- package/dist/index38.cjs +0 -1
- package/dist/index39.cjs +0 -1
- package/dist/index40.cjs +0 -1
- package/dist/index40.js +0 -87
- package/dist/index41.cjs +0 -1
- package/dist/index41.js +0 -69
- package/dist/index42.cjs +0 -1
- package/dist/index42.js +0 -224
- package/dist/index43.cjs +0 -1
- package/dist/index43.js +0 -145
- package/dist/index44.cjs +0 -1
- package/dist/index44.js +0 -57
- package/dist/index45.cjs +0 -1
- package/dist/index45.js +0 -273
- package/dist/index46.cjs +0 -1
- package/dist/index46.js +0 -8
- package/dist/index48.cjs +0 -1
- package/dist/index48.js +0 -506
- package/dist/index49.cjs +0 -1
- package/dist/index49.js +0 -211
- package/dist/index52.cjs +0 -1
- package/dist/index52.js +0 -23
- package/dist/index53.cjs +0 -1
- package/dist/index53.js +0 -208
- package/dist/index54.cjs +0 -1
- package/dist/index54.js +0 -157
- package/dist/index55.cjs +0 -1
- package/dist/index55.js +0 -124
- package/dist/index56.cjs +0 -1
- package/dist/index56.js +0 -20
- package/dist/index57.cjs +0 -1
- package/dist/index57.js +0 -82
- package/dist/index58.cjs +0 -1
- package/dist/index58.js +0 -97
- package/dist/index59.cjs +0 -1
- package/dist/index59.js +0 -15
- package/dist/index60.cjs +0 -1
- package/dist/index60.js +0 -94
- package/dist/index61.cjs +0 -1
- package/dist/index61.js +0 -33
- package/dist/index62.cjs +0 -1
- package/dist/index62.js +0 -277
- package/dist/index63.cjs +0 -1
- package/dist/index63.js +0 -134
- package/dist/index64.cjs +0 -1
- package/dist/index64.js +0 -409
- package/dist/index65.cjs +0 -1
- package/dist/index65.js +0 -170
- package/dist/index66.cjs +0 -1
- package/dist/index67.cjs +0 -1
- package/dist/index67.js +0 -158
- package/dist/index69.cjs +0 -1
- package/dist/index69.js +0 -336
- package/dist/index7.cjs +0 -1
- package/dist/index7.js +0 -24
- package/dist/index71.cjs +0 -1
- package/dist/index71.js +0 -321
- package/dist/index72.cjs +0 -1
- package/dist/index72.js +0 -211
- package/dist/index73.cjs +0 -1
- package/dist/index73.js +0 -34
- package/dist/index74.cjs +0 -1
- package/dist/index74.js +0 -163
- package/dist/index75.cjs +0 -1
- package/dist/index75.js +0 -20
- package/dist/index76.cjs +0 -1
- package/dist/index77.cjs +0 -1
- package/dist/index77.js +0 -168
- package/dist/index8.cjs +0 -1
- package/dist/index83.cjs +0 -1
- package/dist/index83.js +0 -25
- package/dist/index84.cjs +0 -1
- package/dist/index84.js +0 -68
- package/dist/index85.cjs +0 -1
- package/dist/index85.js +0 -15
- package/dist/index86.cjs +0 -1
- package/dist/index86.js +0 -4
- package/dist/index87.cjs +0 -1
- package/dist/index87.js +0 -51
- package/dist/index89.cjs +0 -1
- package/dist/index89.js +0 -27
- package/dist/index9.cjs +0 -1
- package/dist/index9.js +0 -63
- package/dist/index90.cjs +0 -1
- package/dist/index90.js +0 -14
- package/dist/index91.cjs +0 -1
- package/dist/index91.js +0 -10
- package/dist/index92.cjs +0 -1
- package/dist/index92.js +0 -3
- package/dist/index94.cjs +0 -38
- package/dist/index94.js +0 -69
- package/dist/index95.cjs +0 -1
- package/dist/index95.js +0 -3
- package/dist/index98.cjs +0 -4
- package/dist/index98.js +0 -112
- package/dist/index99.cjs +0 -1
- package/dist/index99.js +0 -6
- /package/dist/{index173.js → DataTable/render/defaults.js} +0 -0
- /package/dist/{index47.cjs → Form/FormDatePicker/types.cjs} +0 -0
- /package/dist/{index47.js → Form/FormDatePicker/types.js} +0 -0
- /package/dist/{index237.cjs → Form/FormRadioGroup/useFormRadio.cjs} +0 -0
- /package/dist/{index237.js → Form/FormRadioGroup/useFormRadio.js} +0 -0
- /package/dist/{index233.cjs → Form/FormSelect/useFormSelect.cjs} +0 -0
- /package/dist/{index233.js → Form/FormSelect/useFormSelect.js} +0 -0
- /package/dist/{index4.cjs → Icons/Icons.cjs} +0 -0
- /package/dist/{index4.js → Icons/Icons.js} +0 -0
- /package/dist/{index180.cjs → MultiSelect/utils.cjs} +0 -0
- /package/dist/{index180.js → MultiSelect/utils.js} +0 -0
- /package/dist/{index5.cjs → Typography/types.cjs} +0 -0
- /package/dist/{index5.js → Typography/types.js} +0 -0
- /package/dist/{index11.js → Typography/weightStyles.js} +0 -0
- /package/dist/{index2.cjs → _virtual/_rolldown/runtime.cjs} +0 -0
- /package/dist/{index2.js → _virtual/_rolldown/runtime.js} +0 -0
- /package/dist/{index168.cjs → lazyLoad.cjs} +0 -0
- /package/dist/{index168.js → lazyLoad.js} +0 -0
- /package/dist/{index68.cjs → node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs} +0 -0
- /package/dist/{index70.cjs → node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs} +0 -0
- /package/dist/{index70.js → node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js} +0 -0
- /package/dist/{index68.js → node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.js} +0 -0
- /package/dist/{index148.cjs → node_modules/.pnpm/@radix-ui_number@1.1.3/node_modules/@radix-ui/number/dist/index.cjs} +0 -0
- /package/dist/{index148.js → node_modules/.pnpm/@radix-ui_number@1.1.3/node_modules/@radix-ui/number/dist/index.js} +0 -0
- /package/dist/{index32.cjs → node_modules/.pnpm/@radix-ui_primitive@1.1.7/node_modules/@radix-ui/primitive/dist/index.cjs} +0 -0
- /package/dist/{index32.js → node_modules/.pnpm/@radix-ui_primitive@1.1.7/node_modules/@radix-ui/primitive/dist/index.js} +0 -0
- /package/dist/{index31.js → 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} +0 -0
- /package/dist/{index30.js → 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} +0 -0
- /package/dist/{index66.js → 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} +0 -0
- /package/dist/{index35.js → 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} +0 -0
- /package/dist/{index38.js → 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} +0 -0
- /package/dist/{index76.js → 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} +0 -0
- /package/dist/{index39.js → 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} +0 -0
- /package/dist/{index131.js → 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} +0 -0
- /package/dist/{index78.cjs → node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.cjs} +0 -0
- /package/dist/{index78.js → node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js} +0 -0
- /package/dist/{index215.cjs → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/addLeadingZeros.cjs} +0 -0
- /package/dist/{index215.js → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/addLeadingZeros.js} +0 -0
- /package/dist/{index188.cjs → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/defaultOptions.cjs} +0 -0
- /package/dist/{index188.js → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/defaultOptions.js} +0 -0
- /package/dist/{index218.cjs → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/longFormatters.cjs} +0 -0
- /package/dist/{index218.js → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/longFormatters.js} +0 -0
- /package/dist/{index219.cjs → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/protectedTokens.cjs} +0 -0
- /package/dist/{index219.js → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/protectedTokens.js} +0 -0
- /package/dist/{index185.cjs → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constants.cjs} +0 -0
- /package/dist/{index185.js → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constants.js} +0 -0
- /package/dist/{index197.cjs → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isDate.cjs} +0 -0
- /package/dist/{index197.js → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isDate.js} +0 -0
- /package/dist/{index201.cjs → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.cjs} +0 -0
- /package/dist/{index201.js → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js} +0 -0
- /package/dist/{index204.cjs → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.cjs} +0 -0
- /package/dist/{index204.js → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js} +0 -0
- /package/dist/{index206.cjs → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchFn.cjs} +0 -0
- /package/dist/{index206.js → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchFn.js} +0 -0
- /package/dist/{index207.cjs → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.cjs} +0 -0
- /package/dist/{index207.js → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js} +0 -0
- /package/dist/{index200.cjs → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.cjs} +0 -0
- /package/dist/{index200.js → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.js} +0 -0
- /package/dist/{index203.cjs → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.cjs} +0 -0
- /package/dist/{index203.js → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.js} +0 -0
- /package/dist/{index50.cjs → 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} +0 -0
- /package/dist/{index50.js → 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} +0 -0
- /package/dist/{index51.cjs → node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.cjs} +0 -0
- /package/dist/{index51.js → node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.js} +0 -0
- /package/dist/{index88.cjs → node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.cjs} +0 -0
- /package/dist/{index88.js → node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js} +0 -0
- /package/dist/{index125.js → 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} +0 -0
- /package/dist/{index115.js → node_modules/.pnpm/react-hook-form@7.83.0_react@19.3.1/node_modules/react-hook-form/dist/index.esm.js} +0 -0
- /package/dist/{index229.js → 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} +0 -0
- /package/dist/{index80.cjs → 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} +0 -0
- /package/dist/{index80.js → 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} +0 -0
- /package/dist/{index93.cjs → 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} +0 -0
- /package/dist/{index93.js → 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} +0 -0
- /package/dist/{index96.cjs → 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} +0 -0
- /package/dist/{index96.js → 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} +0 -0
- /package/dist/{index97.cjs → 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} +0 -0
- /package/dist/{index97.js → 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} +0 -0
- /package/dist/{index139.js → 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} +0 -0
- /package/dist/{index79.cjs → node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.cjs} +0 -0
- /package/dist/{index79.js → node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.js} +0 -0
- /package/dist/{index81.cjs → 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} +0 -0
- /package/dist/{index81.js → 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} +0 -0
- /package/dist/{index82.cjs → 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} +0 -0
- /package/dist/{index82.js → 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} +0 -0
- /package/dist/{index105.js → 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} +0 -0
- /package/dist/{index6.cjs → theme/spacing.cjs} +0 -0
- /package/dist/{index6.js → theme/spacing.js} +0 -0
- /package/dist/{index19.cjs → theme/types.cjs} +0 -0
- /package/dist/{index19.js → theme/types.js} +0 -0
- /package/dist/{index20.cjs → theme/width.cjs} +0 -0
- /package/dist/{index20.js → theme/width.js} +0 -0
- /package/dist/{index8.js → theme/zIndex.js} +0 -0
- /package/dist/{index113.js → ui/file-upload-adapters.js} +0 -0
- /package/dist/{index110.js → ui/label.js} +0 -0
- /package/dist/{index152.js → ui/spinner.js} +0 -0
- /package/dist/{index157.js → ui/table.js} +0 -0
- /package/dist/{index118.js → ui/useBreakpoint.js} +0 -0
|
@@ -0,0 +1,997 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Icons as e } from "../Icons/Icons.js";
|
|
3
|
+
import { Text as t } from "../Typography/Text.js";
|
|
4
|
+
import { createApiUploadHandler as n, createS3PresignedUploadHandler as r, createUploadThingUploadHandler as i, formatFileSize as a, useUploadFile as o } from "./file-upload-adapters.js";
|
|
5
|
+
import * as s from "@stylexjs/stylex";
|
|
6
|
+
import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
7
|
+
import * as d from "react";
|
|
8
|
+
import { c as f } from "react/compiler-runtime";
|
|
9
|
+
import { Slot as p } from "@radix-ui/react-slot";
|
|
10
|
+
// src/ui/file-upload.tsx
|
|
11
|
+
var m = "FileUpload", h = "FileUploadDropzone", g = "FileUploadTrigger", _ = "FileUploadList", v = "FileUploadItem", y = "FileUploadItemPreview", b = "FileUploadItemMetadata", x = "FileUploadItemProgress", S = "FileUploadItemDelete", C = {
|
|
12
|
+
root: {
|
|
13
|
+
kVAEAm: "x1n2onr6",
|
|
14
|
+
k1xSpc: "x78zum5",
|
|
15
|
+
kXwgrk: "xdt5ytf",
|
|
16
|
+
kOIVth: "x8233eu",
|
|
17
|
+
kzqmXN: "xh8yej3",
|
|
18
|
+
$$css: !0
|
|
19
|
+
},
|
|
20
|
+
dropzone: {
|
|
21
|
+
kVAEAm: "x1n2onr6",
|
|
22
|
+
k1xSpc: "x78zum5",
|
|
23
|
+
kXwgrk: "xdt5ytf",
|
|
24
|
+
kGNEyG: "x6s0dn4",
|
|
25
|
+
kjj79g: "xl56j7k",
|
|
26
|
+
kOIVth: "x13z6uf9",
|
|
27
|
+
kaIpWk: "x1ez7q3a",
|
|
28
|
+
kMzoRj: "xdh2fpr",
|
|
29
|
+
ksu8eU: "xbsl7fq",
|
|
30
|
+
kVAM5u: "xb30jbz",
|
|
31
|
+
kWkggS: "x1mlyrtw",
|
|
32
|
+
kmVPX3: "xis3749",
|
|
33
|
+
kkrTdU: "x1ypdohk",
|
|
34
|
+
kfSwDN: "x87ps6o",
|
|
35
|
+
k1ekBW: "x11vqxbs",
|
|
36
|
+
kIyJzY: "x13dflua",
|
|
37
|
+
kI3sdo: "x1a2a7pz",
|
|
38
|
+
kGzVvX: "x9p52ec",
|
|
39
|
+
kaVNsj: "x14aqmuz",
|
|
40
|
+
kOJeXU: "x156qtes",
|
|
41
|
+
kEtg5x: "xik21o4",
|
|
42
|
+
$$css: !0
|
|
43
|
+
},
|
|
44
|
+
dropzoneDragging: {
|
|
45
|
+
kWkggS: "x1jgryid",
|
|
46
|
+
kVAM5u: "x1khvrlk",
|
|
47
|
+
kGVxlE: "xf0oo4t",
|
|
48
|
+
$$css: !0
|
|
49
|
+
},
|
|
50
|
+
dropzoneInvalid: {
|
|
51
|
+
kVAM5u: "x1uwefn5",
|
|
52
|
+
kWkggS: "x6lw6w7",
|
|
53
|
+
kGVxlE: "x1r3qo2b",
|
|
54
|
+
$$css: !0
|
|
55
|
+
},
|
|
56
|
+
dropzoneDisabled: {
|
|
57
|
+
kfzvcC: "x47corl",
|
|
58
|
+
kSiTet: "xbyyjgo",
|
|
59
|
+
kkrTdU: "x1h6gzvc",
|
|
60
|
+
$$css: !0
|
|
61
|
+
},
|
|
62
|
+
avatarDropzone: {
|
|
63
|
+
kVAEAm: "x1n2onr6",
|
|
64
|
+
kzqmXN: "x1eyvef",
|
|
65
|
+
kZKoxP: "xw76nk8",
|
|
66
|
+
kaIpWk: "x9psvww",
|
|
67
|
+
kMzoRj: "xdh2fpr",
|
|
68
|
+
ksu8eU: "xbsl7fq",
|
|
69
|
+
kVAM5u: "xb30jbz",
|
|
70
|
+
kWkggS: "x1mlyrtw",
|
|
71
|
+
kVQacm: "xb3r6kr",
|
|
72
|
+
k1xSpc: "x78zum5",
|
|
73
|
+
kXwgrk: "xdt5ytf",
|
|
74
|
+
kGNEyG: "x6s0dn4",
|
|
75
|
+
kjj79g: "xl56j7k",
|
|
76
|
+
kkrTdU: "x1ypdohk",
|
|
77
|
+
k1ekBW: "xq90yva",
|
|
78
|
+
kIyJzY: "x13dflua",
|
|
79
|
+
kmVPX3: "x1717udv",
|
|
80
|
+
kaVNsj: "x14aqmuz",
|
|
81
|
+
$$css: !0
|
|
82
|
+
},
|
|
83
|
+
avatarItem: {
|
|
84
|
+
kzqmXN: "xh8yej3",
|
|
85
|
+
kZKoxP: "x5yr21d",
|
|
86
|
+
kmVPX3: "x1717udv",
|
|
87
|
+
kMzoRj: "xc342km",
|
|
88
|
+
$$css: !0
|
|
89
|
+
},
|
|
90
|
+
avatarPreview: {
|
|
91
|
+
kzqmXN: "xh8yej3",
|
|
92
|
+
kZKoxP: "x5yr21d",
|
|
93
|
+
kaIpWk: "x9psvww",
|
|
94
|
+
$$css: !0
|
|
95
|
+
},
|
|
96
|
+
list: {
|
|
97
|
+
k1xSpc: "x78zum5",
|
|
98
|
+
kXwgrk: "xdt5ytf",
|
|
99
|
+
kOIVth: "x13z6uf9",
|
|
100
|
+
kzqmXN: "xh8yej3",
|
|
101
|
+
$$css: !0
|
|
102
|
+
},
|
|
103
|
+
listHorizontal: {
|
|
104
|
+
kXwgrk: "x1q0g3np",
|
|
105
|
+
kwnvtZ: "x1a02dak",
|
|
106
|
+
$$css: !0
|
|
107
|
+
},
|
|
108
|
+
item: {
|
|
109
|
+
kVAEAm: "x1n2onr6",
|
|
110
|
+
k1xSpc: "x78zum5",
|
|
111
|
+
kGNEyG: "x6s0dn4",
|
|
112
|
+
kOIVth: "x8233eu",
|
|
113
|
+
kaIpWk: "xrijj7p",
|
|
114
|
+
kMzoRj: "xmkeg23",
|
|
115
|
+
ksu8eU: "x1y0btm7",
|
|
116
|
+
kVAM5u: "xb30jbz",
|
|
117
|
+
kWkggS: "x1rexohn",
|
|
118
|
+
kMwMTN: "xk0jn7w",
|
|
119
|
+
kmVPX3: "x2nx7ib",
|
|
120
|
+
kVQacm: "xb3r6kr",
|
|
121
|
+
k1ekBW: "xq90yva",
|
|
122
|
+
kIyJzY: "xx6bhzk",
|
|
123
|
+
$$css: !0
|
|
124
|
+
},
|
|
125
|
+
itemPreview: {
|
|
126
|
+
kVAEAm: "x1n2onr6",
|
|
127
|
+
k1xSpc: "x78zum5",
|
|
128
|
+
kGNEyG: "x6s0dn4",
|
|
129
|
+
kjj79g: "xl56j7k",
|
|
130
|
+
kzqmXN: "xvm51jw",
|
|
131
|
+
kZKoxP: "xwaiz5r",
|
|
132
|
+
k7Eaqz: "xj9j1fp",
|
|
133
|
+
kaIpWk: "xqfady0",
|
|
134
|
+
kWkggS: "x1qry0bl",
|
|
135
|
+
kMwMTN: "xw3nh4a",
|
|
136
|
+
kVQacm: "xb3r6kr",
|
|
137
|
+
$$css: !0
|
|
138
|
+
},
|
|
139
|
+
itemMetadata: {
|
|
140
|
+
k1xSpc: "x78zum5",
|
|
141
|
+
kXwgrk: "xdt5ytf",
|
|
142
|
+
kUk6DE: "x98rzlu",
|
|
143
|
+
k7Eaqz: "xeuugli",
|
|
144
|
+
kOIVth: "x1enigpx",
|
|
145
|
+
$$css: !0
|
|
146
|
+
},
|
|
147
|
+
itemName: {
|
|
148
|
+
kGuDYH: "xkpwil5",
|
|
149
|
+
k63SB2: "xk50ysn",
|
|
150
|
+
kMwMTN: "x84br7x",
|
|
151
|
+
kVQacm: "xb3r6kr",
|
|
152
|
+
kg5iWk: "xlyipyv",
|
|
153
|
+
khDVqt: "xuxw1ft",
|
|
154
|
+
$$css: !0
|
|
155
|
+
},
|
|
156
|
+
itemSize: {
|
|
157
|
+
kGuDYH: "xboafo0",
|
|
158
|
+
kMwMTN: "xw3nh4a",
|
|
159
|
+
$$css: !0
|
|
160
|
+
},
|
|
161
|
+
itemError: {
|
|
162
|
+
kGuDYH: "xboafo0",
|
|
163
|
+
kMwMTN: "xuuroe4",
|
|
164
|
+
$$css: !0
|
|
165
|
+
},
|
|
166
|
+
itemDeleteBtn: {
|
|
167
|
+
k1xSpc: "x3nfvp2",
|
|
168
|
+
kGNEyG: "x6s0dn4",
|
|
169
|
+
kjj79g: "xl56j7k",
|
|
170
|
+
kzqmXN: "xh29eag",
|
|
171
|
+
kZKoxP: "xb8l8e1",
|
|
172
|
+
kaIpWk: "xqfady0",
|
|
173
|
+
kMzoRj: "xc342km",
|
|
174
|
+
kWkggS: "xjbqb8w",
|
|
175
|
+
kMwMTN: "xw3nh4a",
|
|
176
|
+
kkrTdU: "x1ypdohk",
|
|
177
|
+
kmVPX3: "x1717udv",
|
|
178
|
+
k1ekBW: "xs2xxs2",
|
|
179
|
+
kIyJzY: "xx6bhzk",
|
|
180
|
+
kGzVvX: "x9p52ec",
|
|
181
|
+
kDPRdz: "x1mqvv6a",
|
|
182
|
+
$$css: !0
|
|
183
|
+
},
|
|
184
|
+
progressRoot: {
|
|
185
|
+
kVAEAm: "x1n2onr6",
|
|
186
|
+
kzqmXN: "xh8yej3",
|
|
187
|
+
kZKoxP: "xqu0tyb",
|
|
188
|
+
kaIpWk: "x9psvww",
|
|
189
|
+
kWkggS: "x1qry0bl",
|
|
190
|
+
kVQacm: "xb3r6kr",
|
|
191
|
+
$$css: !0
|
|
192
|
+
},
|
|
193
|
+
progressBottom: {
|
|
194
|
+
kVAEAm: "x10l6tqk",
|
|
195
|
+
krVfgx: "x1ey2m1c",
|
|
196
|
+
kbCHJM: "xu96u03",
|
|
197
|
+
kCIrl2: "x3m8u43",
|
|
198
|
+
kaIpWk: "x2u8bby",
|
|
199
|
+
kZKoxP: "xuoj239",
|
|
200
|
+
$$css: !0
|
|
201
|
+
},
|
|
202
|
+
progressFill: {
|
|
203
|
+
kVAEAm: "x10l6tqk",
|
|
204
|
+
kpwlN0: "x10a8y8t",
|
|
205
|
+
kZKoxP: "x5yr21d",
|
|
206
|
+
kaIpWk: "x2u8bby",
|
|
207
|
+
kWkggS: "xa0uij2",
|
|
208
|
+
kfzvcC: "x47corl",
|
|
209
|
+
$$css: !0
|
|
210
|
+
},
|
|
211
|
+
dropzoneTitle: {
|
|
212
|
+
kGuDYH: "xkpwil5",
|
|
213
|
+
k63SB2: "xk50ysn",
|
|
214
|
+
kMwMTN: "x84br7x",
|
|
215
|
+
kogj98: "x1ghz6dp",
|
|
216
|
+
$$css: !0
|
|
217
|
+
},
|
|
218
|
+
dropzoneSubtitle: {
|
|
219
|
+
kGuDYH: "xboafo0",
|
|
220
|
+
kMwMTN: "xw3nh4a",
|
|
221
|
+
kogj98: "x1ghz6dp",
|
|
222
|
+
k9WMMc: "x2b8uid",
|
|
223
|
+
$$css: !0
|
|
224
|
+
},
|
|
225
|
+
whiteText: {
|
|
226
|
+
kMwMTN: "xstwp1q",
|
|
227
|
+
$$css: !0
|
|
228
|
+
},
|
|
229
|
+
compactDropzone: {
|
|
230
|
+
kmVPX3: "x19btat0",
|
|
231
|
+
kXwgrk: "x1q0g3np",
|
|
232
|
+
kOIVth: "x8233eu",
|
|
233
|
+
$$css: !0
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
function w(e, t, n, r, i) {
|
|
237
|
+
let a = {
|
|
238
|
+
files: t,
|
|
239
|
+
dragOver: !1,
|
|
240
|
+
invalid: r
|
|
241
|
+
};
|
|
242
|
+
function o(e, r) {
|
|
243
|
+
switch (r.type) {
|
|
244
|
+
case "ADD_FILES":
|
|
245
|
+
for (let e of r.files) t.set(e, {
|
|
246
|
+
file: e,
|
|
247
|
+
progress: 0,
|
|
248
|
+
status: "idle"
|
|
249
|
+
});
|
|
250
|
+
return i && i(Array.from(t.values()).map((e) => e.file)), {
|
|
251
|
+
...e,
|
|
252
|
+
files: t
|
|
253
|
+
};
|
|
254
|
+
case "SET_FILES": {
|
|
255
|
+
let n = new Set(r.files);
|
|
256
|
+
for (let e of t.keys()) n.has(e) || t.delete(e);
|
|
257
|
+
for (let e of r.files) t.get(e) || t.set(e, {
|
|
258
|
+
file: e,
|
|
259
|
+
progress: 0,
|
|
260
|
+
status: "idle"
|
|
261
|
+
});
|
|
262
|
+
return {
|
|
263
|
+
...e,
|
|
264
|
+
files: t
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
case "SET_PROGRESS": {
|
|
268
|
+
let n = t.get(r.file);
|
|
269
|
+
return n && t.set(r.file, {
|
|
270
|
+
...n,
|
|
271
|
+
progress: r.progress,
|
|
272
|
+
status: "uploading"
|
|
273
|
+
}), {
|
|
274
|
+
...e,
|
|
275
|
+
files: t
|
|
276
|
+
};
|
|
277
|
+
}
|
|
278
|
+
case "SET_SUCCESS": {
|
|
279
|
+
let n = t.get(r.file);
|
|
280
|
+
return n && t.set(r.file, {
|
|
281
|
+
...n,
|
|
282
|
+
progress: 100,
|
|
283
|
+
status: "success"
|
|
284
|
+
}), {
|
|
285
|
+
...e,
|
|
286
|
+
files: t
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
case "SET_ERROR": {
|
|
290
|
+
let n = t.get(r.file);
|
|
291
|
+
return n && t.set(r.file, {
|
|
292
|
+
...n,
|
|
293
|
+
error: r.error,
|
|
294
|
+
status: "error"
|
|
295
|
+
}), {
|
|
296
|
+
...e,
|
|
297
|
+
files: t
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
case "REMOVE_FILE":
|
|
301
|
+
if (n) {
|
|
302
|
+
let e = n.get(r.file);
|
|
303
|
+
e && (URL.revokeObjectURL(e), n.delete(r.file));
|
|
304
|
+
}
|
|
305
|
+
return t.delete(r.file), i && i(Array.from(t.values()).map((e) => e.file)), {
|
|
306
|
+
...e,
|
|
307
|
+
files: t
|
|
308
|
+
};
|
|
309
|
+
case "SET_DRAG_OVER": return {
|
|
310
|
+
...e,
|
|
311
|
+
dragOver: r.dragOver
|
|
312
|
+
};
|
|
313
|
+
case "SET_INVALID": return {
|
|
314
|
+
...e,
|
|
315
|
+
invalid: r.invalid
|
|
316
|
+
};
|
|
317
|
+
case "CLEAR":
|
|
318
|
+
for (let e of t.keys()) if (n) {
|
|
319
|
+
let t = n.get(e);
|
|
320
|
+
t && (URL.revokeObjectURL(t), n.delete(e));
|
|
321
|
+
}
|
|
322
|
+
return t.clear(), i && i([]), {
|
|
323
|
+
...e,
|
|
324
|
+
files: t
|
|
325
|
+
};
|
|
326
|
+
default: return e;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
function s() {
|
|
330
|
+
e.forEach((e) => e());
|
|
331
|
+
}
|
|
332
|
+
return {
|
|
333
|
+
getState: () => a,
|
|
334
|
+
dispatch: (e) => {
|
|
335
|
+
a = o(a, e), s();
|
|
336
|
+
},
|
|
337
|
+
subscribe: (t) => (e.add(t), () => {
|
|
338
|
+
e.delete(t);
|
|
339
|
+
})
|
|
340
|
+
};
|
|
341
|
+
}
|
|
342
|
+
var T = d.createContext(null);
|
|
343
|
+
function E(e) {
|
|
344
|
+
let t = f(3), n = d.useContext(T);
|
|
345
|
+
if (!n) throw Error("useStore must be used within FileUploadRoot");
|
|
346
|
+
let r = d.useRef(null), i = d.useRef(void 0), a;
|
|
347
|
+
t[0] !== e || t[1] !== n ? (a = () => {
|
|
348
|
+
let t = n.getState();
|
|
349
|
+
if (t === r.current && i.current !== void 0) return i.current;
|
|
350
|
+
let a = e(t);
|
|
351
|
+
return r.current = t, i.current = a, a;
|
|
352
|
+
}, t[0] = e, t[1] = n, t[2] = a) : a = t[2];
|
|
353
|
+
let o = a;
|
|
354
|
+
return d.useSyncExternalStore(n.subscribe, o, o);
|
|
355
|
+
}
|
|
356
|
+
function D(e) {
|
|
357
|
+
return E(e);
|
|
358
|
+
}
|
|
359
|
+
var O = d.createContext(null);
|
|
360
|
+
function k(e) {
|
|
361
|
+
let t = d.useContext(O);
|
|
362
|
+
if (!t) throw Error(`${e} must be within ${m}`);
|
|
363
|
+
return t;
|
|
364
|
+
}
|
|
365
|
+
function A(e) {
|
|
366
|
+
let { asChild: t, value: n, defaultValue: r, onValueChange: i, onAccept: o, onFileReject: c, onUpload: f, accept: m, maxFiles: h = 0, maxSize: g = Infinity, minSize: _ = 0, multiple: v = !1, disabled: y = !1, name: b, required: x, invalid: S = !1, label: E, dir: D = "ltr", className: k, sx: A, children: j, ...M } = e, N = d.useId(), P = d.useId(), F = d.useId(), I = d.useId(), L = d.useRef(null), R = d.useRef(/* @__PURE__ */ new Set()).current, z = d.useRef(/* @__PURE__ */ new WeakMap()).current, B = d.useMemo(() => {
|
|
367
|
+
let e = /* @__PURE__ */ new Map(), t = n ?? r ?? [];
|
|
368
|
+
for (let n of t) e.set(n, {
|
|
369
|
+
file: n,
|
|
370
|
+
progress: 0,
|
|
371
|
+
status: "idle"
|
|
372
|
+
});
|
|
373
|
+
return e;
|
|
374
|
+
}, []), V = d.useMemo(() => w(R, B, z, S, i), []);
|
|
375
|
+
d.useEffect(() => {
|
|
376
|
+
n !== void 0 && V.dispatch({
|
|
377
|
+
type: "SET_FILES",
|
|
378
|
+
files: n
|
|
379
|
+
});
|
|
380
|
+
}, [n, V]), d.useEffect(() => {
|
|
381
|
+
V.dispatch({
|
|
382
|
+
type: "SET_INVALID",
|
|
383
|
+
invalid: S
|
|
384
|
+
});
|
|
385
|
+
}, [S, V]);
|
|
386
|
+
let H = d.useCallback((e) => {
|
|
387
|
+
if (m) {
|
|
388
|
+
let t = m.split(",").map((e) => e.trim().toLowerCase()), n = e.type.toLowerCase(), r = e.name.toLowerCase();
|
|
389
|
+
if (!t.some((e) => {
|
|
390
|
+
if (e.startsWith(".")) return r.endsWith(e);
|
|
391
|
+
if (e.endsWith("/*")) {
|
|
392
|
+
let t = e.slice(0, -2);
|
|
393
|
+
return n.startsWith(t);
|
|
394
|
+
}
|
|
395
|
+
return n === e;
|
|
396
|
+
})) return `File "${e.name}" is not an accepted format (${m})`;
|
|
397
|
+
}
|
|
398
|
+
return e.size > g ? `File "${e.name}" exceeds maximum allowed size of ${a(g)}` : e.size < _ ? `File "${e.name}" is smaller than minimum required size of ${a(_)}` : null;
|
|
399
|
+
}, [
|
|
400
|
+
m,
|
|
401
|
+
g,
|
|
402
|
+
_
|
|
403
|
+
]), U = d.useCallback(async (e) => {
|
|
404
|
+
if (y) return;
|
|
405
|
+
let t = Array.from(V.getState().files.keys()), n = v ? h > 0 ? h : Infinity : 1, r = n - t.length;
|
|
406
|
+
if (r <= 0 && n === 1) V.dispatch({ type: "CLEAR" });
|
|
407
|
+
else if (r <= 0) {
|
|
408
|
+
c?.(e[0], `Maximum file limit (${h}) reached`);
|
|
409
|
+
return;
|
|
410
|
+
}
|
|
411
|
+
let i = v ? e.slice(0, r <= 0 ? 1 : r) : [e[0]], a = [];
|
|
412
|
+
for (let e of i) {
|
|
413
|
+
let t = H(e);
|
|
414
|
+
t ? c?.(e, t) : a.push(e);
|
|
415
|
+
}
|
|
416
|
+
if (a.length > 0 && (V.dispatch({
|
|
417
|
+
type: "ADD_FILES",
|
|
418
|
+
files: a
|
|
419
|
+
}), o?.(a), f)) {
|
|
420
|
+
for (let e of a) V.dispatch({
|
|
421
|
+
type: "SET_PROGRESS",
|
|
422
|
+
file: e,
|
|
423
|
+
progress: 0
|
|
424
|
+
});
|
|
425
|
+
try {
|
|
426
|
+
await f(a, {
|
|
427
|
+
onProgress: (e, t) => {
|
|
428
|
+
V.dispatch({
|
|
429
|
+
type: "SET_PROGRESS",
|
|
430
|
+
file: e,
|
|
431
|
+
progress: t
|
|
432
|
+
});
|
|
433
|
+
},
|
|
434
|
+
onSuccess: (e) => {
|
|
435
|
+
V.dispatch({
|
|
436
|
+
type: "SET_SUCCESS",
|
|
437
|
+
file: e
|
|
438
|
+
});
|
|
439
|
+
},
|
|
440
|
+
onError: (e, t) => {
|
|
441
|
+
V.dispatch({
|
|
442
|
+
type: "SET_ERROR",
|
|
443
|
+
file: e,
|
|
444
|
+
error: t.message
|
|
445
|
+
});
|
|
446
|
+
}
|
|
447
|
+
});
|
|
448
|
+
} catch {}
|
|
449
|
+
}
|
|
450
|
+
}, [
|
|
451
|
+
y,
|
|
452
|
+
h,
|
|
453
|
+
v,
|
|
454
|
+
o,
|
|
455
|
+
c,
|
|
456
|
+
f,
|
|
457
|
+
V,
|
|
458
|
+
H
|
|
459
|
+
]), W = d.useCallback((e) => {
|
|
460
|
+
let t = e.target.files ? Array.from(e.target.files) : [];
|
|
461
|
+
t.length > 0 && U(t), e.target.value = "";
|
|
462
|
+
}, [U]), G = d.useMemo(() => ({
|
|
463
|
+
dropzoneId: N,
|
|
464
|
+
inputId: P,
|
|
465
|
+
listId: F,
|
|
466
|
+
labelId: I,
|
|
467
|
+
dir: D,
|
|
468
|
+
disabled: y,
|
|
469
|
+
inputRef: L,
|
|
470
|
+
urlCache: z,
|
|
471
|
+
processFiles: U
|
|
472
|
+
}), [
|
|
473
|
+
N,
|
|
474
|
+
P,
|
|
475
|
+
F,
|
|
476
|
+
I,
|
|
477
|
+
D,
|
|
478
|
+
y,
|
|
479
|
+
z,
|
|
480
|
+
U
|
|
481
|
+
]), K = t ? p : "div", q = s.props(C.root, A);
|
|
482
|
+
return /* @__PURE__ */ l(T.Provider, {
|
|
483
|
+
value: V,
|
|
484
|
+
children: /* @__PURE__ */ l(O.Provider, {
|
|
485
|
+
value: G,
|
|
486
|
+
children: /* @__PURE__ */ u(K, {
|
|
487
|
+
"data-disabled": y ? "" : void 0,
|
|
488
|
+
"data-slot": "file-upload",
|
|
489
|
+
dir: D,
|
|
490
|
+
...M,
|
|
491
|
+
...q,
|
|
492
|
+
className: k ? `${q.className || ""} ${k}`.trim() : q.className,
|
|
493
|
+
children: [
|
|
494
|
+
j,
|
|
495
|
+
/* @__PURE__ */ l("input", {
|
|
496
|
+
type: "file",
|
|
497
|
+
id: P,
|
|
498
|
+
"aria-labelledby": I,
|
|
499
|
+
"aria-describedby": N,
|
|
500
|
+
ref: L,
|
|
501
|
+
tabIndex: -1,
|
|
502
|
+
accept: m,
|
|
503
|
+
name: b,
|
|
504
|
+
className: "x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr xzpqnlu xuxw1ft xc342km",
|
|
505
|
+
disabled: y,
|
|
506
|
+
multiple: v,
|
|
507
|
+
required: x,
|
|
508
|
+
onChange: W
|
|
509
|
+
}),
|
|
510
|
+
/* @__PURE__ */ l("span", {
|
|
511
|
+
id: I,
|
|
512
|
+
className: "x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr xzpqnlu xuxw1ft xc342km",
|
|
513
|
+
children: E ?? "File upload"
|
|
514
|
+
})
|
|
515
|
+
]
|
|
516
|
+
})
|
|
517
|
+
})
|
|
518
|
+
});
|
|
519
|
+
}
|
|
520
|
+
function j(e) {
|
|
521
|
+
let { asChild: t, className: n, sx: r, onClick: i, onDragOver: a, onDragEnter: o, onDragLeave: c, onDrop: u, onKeyDown: f, children: m, ...g } = e, _ = k(h), v = d.useContext(T), y = E((e) => e.dragOver), b = E((e) => e.invalid), x = d.useCallback((e) => {
|
|
522
|
+
if (i?.(e), e.defaultPrevented) return;
|
|
523
|
+
let t = e.target;
|
|
524
|
+
t instanceof HTMLElement && t.closest("[data-slot=\"file-upload-trigger\"]") || _.inputRef.current?.click();
|
|
525
|
+
}, [_.inputRef, i]), S = d.useCallback((e) => {
|
|
526
|
+
a?.(e), !e.defaultPrevented && (e.preventDefault(), v?.dispatch({
|
|
527
|
+
type: "SET_DRAG_OVER",
|
|
528
|
+
dragOver: !0
|
|
529
|
+
}));
|
|
530
|
+
}, [v, a]), w = d.useCallback((e) => {
|
|
531
|
+
o?.(e), !e.defaultPrevented && (e.preventDefault(), v?.dispatch({
|
|
532
|
+
type: "SET_DRAG_OVER",
|
|
533
|
+
dragOver: !0
|
|
534
|
+
}));
|
|
535
|
+
}, [v, o]), D = d.useCallback((e) => {
|
|
536
|
+
if (c?.(e), e.defaultPrevented) return;
|
|
537
|
+
let t = e.relatedTarget;
|
|
538
|
+
t && t instanceof Node && e.currentTarget.contains(t) || (e.preventDefault(), v?.dispatch({
|
|
539
|
+
type: "SET_DRAG_OVER",
|
|
540
|
+
dragOver: !1
|
|
541
|
+
}));
|
|
542
|
+
}, [v, c]), O = d.useCallback((e) => {
|
|
543
|
+
if (u?.(e), e.defaultPrevented) return;
|
|
544
|
+
e.preventDefault(), v?.dispatch({
|
|
545
|
+
type: "SET_DRAG_OVER",
|
|
546
|
+
dragOver: !1
|
|
547
|
+
});
|
|
548
|
+
let t = e.dataTransfer?.files ? Array.from(e.dataTransfer.files) : [];
|
|
549
|
+
t.length !== 0 && _.processFiles(t);
|
|
550
|
+
}, [
|
|
551
|
+
v,
|
|
552
|
+
_.processFiles,
|
|
553
|
+
u
|
|
554
|
+
]), A = d.useCallback((e) => {
|
|
555
|
+
f?.(e), e.defaultPrevented || e.key !== "Enter" && e.key !== " " || (e.preventDefault(), _.inputRef.current?.click());
|
|
556
|
+
}, [_.inputRef, f]), j = t ? p : "div", M = s.props(C.dropzone, y && C.dropzoneDragging, b && C.dropzoneInvalid, _.disabled && C.dropzoneDisabled, r);
|
|
557
|
+
return /* @__PURE__ */ l(j, {
|
|
558
|
+
role: "region",
|
|
559
|
+
id: _.dropzoneId,
|
|
560
|
+
"aria-controls": `${_.inputId} ${_.listId}`,
|
|
561
|
+
"aria-disabled": _.disabled,
|
|
562
|
+
"aria-invalid": b,
|
|
563
|
+
"data-disabled": _.disabled ? "" : void 0,
|
|
564
|
+
"data-dragging": y ? "" : void 0,
|
|
565
|
+
"data-invalid": b ? "" : void 0,
|
|
566
|
+
"data-slot": "file-upload-dropzone",
|
|
567
|
+
tabIndex: _.disabled ? void 0 : 0,
|
|
568
|
+
...g,
|
|
569
|
+
...M,
|
|
570
|
+
className: n ? `${M.className || ""} ${n}`.trim() : M.className,
|
|
571
|
+
onClick: x,
|
|
572
|
+
onDragEnter: w,
|
|
573
|
+
onDragLeave: D,
|
|
574
|
+
onDragOver: S,
|
|
575
|
+
onDrop: O,
|
|
576
|
+
onKeyDown: A,
|
|
577
|
+
children: m
|
|
578
|
+
});
|
|
579
|
+
}
|
|
580
|
+
function M(e) {
|
|
581
|
+
let t = f(23), n, r, i, a, o;
|
|
582
|
+
t[0] === e ? (n = t[1], r = t[2], i = t[3], a = t[4], o = t[5]) : ({asChild: n, onClick: i, className: r, sx: a, ...o} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = a, t[5] = o);
|
|
583
|
+
let c = k(g), u;
|
|
584
|
+
t[6] !== c.inputRef || t[7] !== i ? (u = (e) => {
|
|
585
|
+
i?.(e), !e.defaultPrevented && c.inputRef.current?.click();
|
|
586
|
+
}, t[6] = c.inputRef, t[7] = i, t[8] = u) : u = t[8];
|
|
587
|
+
let d = u, m = n ? p : "button", h;
|
|
588
|
+
t[9] === a ? h = t[10] : (h = s.props(a), t[9] = a, t[10] = h);
|
|
589
|
+
let _ = h, v = c.disabled ? "" : void 0, y;
|
|
590
|
+
t[11] !== r || t[12] !== _.className ? (y = r ? `${_.className || ""} ${r}`.trim() : _.className, t[11] = r, t[12] = _.className, t[13] = y) : y = t[13];
|
|
591
|
+
let b;
|
|
592
|
+
return t[14] !== m || t[15] !== c.disabled || t[16] !== c.inputId || t[17] !== d || t[18] !== _ || t[19] !== v || t[20] !== y || t[21] !== o ? (b = /* @__PURE__ */ l(m, {
|
|
593
|
+
type: "button",
|
|
594
|
+
"aria-controls": c.inputId,
|
|
595
|
+
"data-disabled": v,
|
|
596
|
+
"data-slot": "file-upload-trigger",
|
|
597
|
+
disabled: c.disabled,
|
|
598
|
+
...o,
|
|
599
|
+
..._,
|
|
600
|
+
className: y,
|
|
601
|
+
onClick: d
|
|
602
|
+
}), t[14] = m, t[15] = c.disabled, t[16] = c.inputId, t[17] = d, t[18] = _, t[19] = v, t[20] = y, t[21] = o, t[22] = b) : b = t[22], b;
|
|
603
|
+
}
|
|
604
|
+
function N(e) {
|
|
605
|
+
let { asChild: t, orientation: n = "vertical", className: r, sx: i, children: a, ...o } = e, c = k(_), u = t ? p : "div", d = s.props(C.list, n === "horizontal" && C.listHorizontal, i);
|
|
606
|
+
return /* @__PURE__ */ l(u, {
|
|
607
|
+
id: c.listId,
|
|
608
|
+
role: "list",
|
|
609
|
+
"data-slot": "file-upload-list",
|
|
610
|
+
...o,
|
|
611
|
+
...d,
|
|
612
|
+
className: r ? `${d.className || ""} ${r}`.trim() : d.className,
|
|
613
|
+
children: a
|
|
614
|
+
});
|
|
615
|
+
}
|
|
616
|
+
var P = d.createContext(null);
|
|
617
|
+
function F(e) {
|
|
618
|
+
let t = d.useContext(P);
|
|
619
|
+
if (!t) throw Error(`${e} must be within ${v}`);
|
|
620
|
+
return t;
|
|
621
|
+
}
|
|
622
|
+
function I(e) {
|
|
623
|
+
let t = f(31), n, r, i, a, o, c;
|
|
624
|
+
t[0] === e ? (n = t[1], r = t[2], i = t[3], a = t[4], o = t[5], c = t[6]) : ({asChild: n, value: c, className: i, sx: o, children: r, ...a} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = a, t[5] = o, t[6] = c), k(v);
|
|
625
|
+
let u = E(L), m;
|
|
626
|
+
t[7] !== u || t[8] !== c ? (m = u.get(c), t[7] = u, t[8] = c, t[9] = m) : m = t[9];
|
|
627
|
+
let h = m, g = d.useId(), _ = d.useId(), y = d.useId(), b;
|
|
628
|
+
t[10] !== h || t[11] !== _ || t[12] !== y || t[13] !== g || t[14] !== c ? (b = {
|
|
629
|
+
file: c,
|
|
630
|
+
fileState: h,
|
|
631
|
+
statusId: g,
|
|
632
|
+
nameId: _,
|
|
633
|
+
sizeId: y
|
|
634
|
+
}, t[10] = h, t[11] = _, t[12] = y, t[13] = g, t[14] = c, t[15] = b) : b = t[15];
|
|
635
|
+
let x = b, S = n ? p : "div", w;
|
|
636
|
+
t[16] === o ? w = t[17] : (w = s.props(C.item, o), t[16] = o, t[17] = w);
|
|
637
|
+
let T = w, D = h?.status || "idle", O;
|
|
638
|
+
t[18] !== i || t[19] !== T.className ? (O = i ? `${T.className || ""} ${i}`.trim() : T.className, t[18] = i, t[19] = T.className, t[20] = O) : O = t[20];
|
|
639
|
+
let A;
|
|
640
|
+
t[21] !== S || t[22] !== r || t[23] !== a || t[24] !== T || t[25] !== D || t[26] !== O ? (A = /* @__PURE__ */ l(S, {
|
|
641
|
+
role: "listitem",
|
|
642
|
+
"data-slot": "file-upload-item",
|
|
643
|
+
"data-status": D,
|
|
644
|
+
...a,
|
|
645
|
+
...T,
|
|
646
|
+
className: O,
|
|
647
|
+
children: r
|
|
648
|
+
}), t[21] = S, t[22] = r, t[23] = a, t[24] = T, t[25] = D, t[26] = O, t[27] = A) : A = t[27];
|
|
649
|
+
let j;
|
|
650
|
+
return t[28] !== x || t[29] !== A ? (j = /* @__PURE__ */ l(P.Provider, {
|
|
651
|
+
value: x,
|
|
652
|
+
children: A
|
|
653
|
+
}), t[28] = x, t[29] = A, t[30] = j) : j = t[30], j;
|
|
654
|
+
}
|
|
655
|
+
function L(e) {
|
|
656
|
+
return e.files;
|
|
657
|
+
}
|
|
658
|
+
function R(t) {
|
|
659
|
+
let n = f(31), r, i, a, o, c, u;
|
|
660
|
+
n[0] === t ? (r = n[1], i = n[2], a = n[3], o = n[4], c = n[5], u = n[6]) : ({asChild: r, render: c, className: a, sx: u, children: i, ...o} = t, n[0] = t, n[1] = r, n[2] = i, n[3] = a, n[4] = o, n[5] = c, n[6] = u);
|
|
661
|
+
let m = k(y), h = F(y).file, [g, _] = d.useState(null), v, b;
|
|
662
|
+
n[7] !== m.urlCache || n[8] !== h ? (v = () => {
|
|
663
|
+
let e = h;
|
|
664
|
+
if (e.uploadedUrl && h.type.startsWith("image/")) _(e.uploadedUrl);
|
|
665
|
+
else if (h.type.startsWith("image/") && typeof URL < "u" && URL.createObjectURL) {
|
|
666
|
+
let e = m.urlCache.get(h);
|
|
667
|
+
e || (e = URL.createObjectURL(h), m.urlCache.set(h, e)), _(e);
|
|
668
|
+
}
|
|
669
|
+
}, b = [h, m.urlCache], n[7] = m.urlCache, n[8] = h, n[9] = v, n[10] = b) : (v = n[9], b = n[10]), d.useEffect(v, b);
|
|
670
|
+
let x;
|
|
671
|
+
n[11] !== h.name || n[12] !== h.type ? (x = () => {
|
|
672
|
+
let t = h.type, n = h.name.toLowerCase();
|
|
673
|
+
return t.startsWith("video/") ? /* @__PURE__ */ l(e.FileVideoIcon, { size: 20 }) : t.startsWith("audio/") ? /* @__PURE__ */ l(e.FileAudioIcon, { size: 20 }) : n.endsWith(".zip") || n.endsWith(".tar") || n.endsWith(".gz") || n.endsWith(".rar") ? /* @__PURE__ */ l(e.FileArchiveIcon, { size: 20 }) : n.endsWith(".js") || n.endsWith(".ts") || n.endsWith(".tsx") || n.endsWith(".html") || n.endsWith(".css") || n.endsWith(".json") ? /* @__PURE__ */ l(e.FileCodeIcon, { size: 20 }) : t.startsWith("text/") || n.endsWith(".pdf") || n.endsWith(".doc") || n.endsWith(".docx") ? /* @__PURE__ */ l(e.FileTextIcon, { size: 20 }) : /* @__PURE__ */ l(e.FileIcon, { size: 20 });
|
|
674
|
+
}, n[11] = h.name, n[12] = h.type, n[13] = x) : x = n[13];
|
|
675
|
+
let S = x, w = r ? p : "div", T;
|
|
676
|
+
n[14] === u ? T = n[15] : (T = s.props(C.itemPreview, u), n[14] = u, n[15] = T);
|
|
677
|
+
let E = T, D;
|
|
678
|
+
n[16] !== a || n[17] !== E.className ? (D = a ? `${E.className || ""} ${a}`.trim() : E.className, n[16] = a, n[17] = E.className, n[18] = D) : D = n[18];
|
|
679
|
+
let O;
|
|
680
|
+
n[19] !== i || n[20] !== S || n[21] !== h || n[22] !== g || n[23] !== c ? (O = c ? c(h, S) : g ? /* @__PURE__ */ l("img", {
|
|
681
|
+
src: g,
|
|
682
|
+
alt: h.name,
|
|
683
|
+
className: "xh8yej3 x5yr21d xl1xv1r"
|
|
684
|
+
}) : i || S(), n[19] = i, n[20] = S, n[21] = h, n[22] = g, n[23] = c, n[24] = O) : O = n[24];
|
|
685
|
+
let A;
|
|
686
|
+
return n[25] !== w || n[26] !== o || n[27] !== E || n[28] !== D || n[29] !== O ? (A = /* @__PURE__ */ l(w, {
|
|
687
|
+
"data-slot": "file-upload-item-preview",
|
|
688
|
+
...o,
|
|
689
|
+
...E,
|
|
690
|
+
className: D,
|
|
691
|
+
children: O
|
|
692
|
+
}), n[25] = w, n[26] = o, n[27] = E, n[28] = D, n[29] = O, n[30] = A) : A = n[30], A;
|
|
693
|
+
}
|
|
694
|
+
function z(e) {
|
|
695
|
+
let n = f(23), r, i, o, d, m;
|
|
696
|
+
n[0] === e ? (r = n[1], i = n[2], o = n[3], d = n[4], m = n[5]) : ({asChild: r, className: o, sx: m, children: i, ...d} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = o, n[4] = d, n[5] = m);
|
|
697
|
+
let h = F(b), g = h.file, _ = h.fileState, v = r ? p : "div", y;
|
|
698
|
+
n[6] === m ? y = n[7] : (y = s.props(C.itemMetadata, m), n[6] = m, n[7] = y);
|
|
699
|
+
let x = y, S;
|
|
700
|
+
n[8] !== o || n[9] !== x.className ? (S = o ? `${x.className || ""} ${o}`.trim() : x.className, n[8] = o, n[9] = x.className, n[10] = S) : S = n[10];
|
|
701
|
+
let w;
|
|
702
|
+
n[11] !== i || n[12] !== g || n[13] !== _ || n[14] !== h.nameId || n[15] !== h.sizeId ? (w = i || /* @__PURE__ */ u(c, { children: [/* @__PURE__ */ l(t, {
|
|
703
|
+
id: h.nameId,
|
|
704
|
+
size: "sm",
|
|
705
|
+
weight: "medium",
|
|
706
|
+
ellipsis: !0,
|
|
707
|
+
title: g.name,
|
|
708
|
+
sx: C.itemName,
|
|
709
|
+
children: g.name
|
|
710
|
+
}), _?.error ? /* @__PURE__ */ l(t, {
|
|
711
|
+
size: "xs",
|
|
712
|
+
type: "danger",
|
|
713
|
+
sx: C.itemError,
|
|
714
|
+
children: _.error
|
|
715
|
+
}) : /* @__PURE__ */ l(t, {
|
|
716
|
+
id: h.sizeId,
|
|
717
|
+
size: "xs",
|
|
718
|
+
type: "muted",
|
|
719
|
+
sx: C.itemSize,
|
|
720
|
+
children: a(g.size)
|
|
721
|
+
})] }), n[11] = i, n[12] = g, n[13] = _, n[14] = h.nameId, n[15] = h.sizeId, n[16] = w) : w = n[16];
|
|
722
|
+
let T;
|
|
723
|
+
return n[17] !== v || n[18] !== d || n[19] !== x || n[20] !== S || n[21] !== w ? (T = /* @__PURE__ */ l(v, {
|
|
724
|
+
"data-slot": "file-upload-item-metadata",
|
|
725
|
+
...d,
|
|
726
|
+
...x,
|
|
727
|
+
className: S,
|
|
728
|
+
children: w
|
|
729
|
+
}), n[17] = v, n[18] = d, n[19] = x, n[20] = S, n[21] = w, n[22] = T) : T = n[22], T;
|
|
730
|
+
}
|
|
731
|
+
function B(e) {
|
|
732
|
+
let { asChild: t, variant: n = "linear", className: r, sx: i, ...a } = e, o = F(x), c = o.fileState?.progress ?? 0;
|
|
733
|
+
if (o.fileState?.status !== "uploading" && n === "fill") return null;
|
|
734
|
+
let u = t ? p : "div", d = s.props(n === "fill" ? C.progressFill : n === "bottom" ? [C.progressRoot, C.progressBottom] : C.progressRoot, i);
|
|
735
|
+
return /* @__PURE__ */ l(u, {
|
|
736
|
+
role: "progressbar",
|
|
737
|
+
"aria-valuenow": c,
|
|
738
|
+
"aria-valuemin": 0,
|
|
739
|
+
"aria-valuemax": 100,
|
|
740
|
+
"data-slot": "file-upload-item-progress",
|
|
741
|
+
...a,
|
|
742
|
+
...d,
|
|
743
|
+
className: r ? `${d.className || ""} ${r}`.trim() : d.className,
|
|
744
|
+
children: n !== "fill" && /* @__PURE__ */ l("div", {
|
|
745
|
+
className: "x5yr21d x1j7ufkg x9psvww xxrbq2n x1d8287x xz4gly6",
|
|
746
|
+
style: { width: `${Math.min(Math.max(c, 0), 100)}%` }
|
|
747
|
+
})
|
|
748
|
+
});
|
|
749
|
+
}
|
|
750
|
+
function V(t) {
|
|
751
|
+
let n = f(26), r, i, a, o, c, u;
|
|
752
|
+
n[0] === t ? (r = n[1], i = n[2], a = n[3], o = n[4], c = n[5], u = n[6]) : ({asChild: r, onClick: c, className: a, sx: u, children: i, ...o} = t, n[0] = t, n[1] = r, n[2] = i, n[3] = a, n[4] = o, n[5] = c, n[6] = u);
|
|
753
|
+
let m = d.useContext(T), h = F(S), g;
|
|
754
|
+
n[7] !== h.file || n[8] !== c || n[9] !== m ? (g = (e) => {
|
|
755
|
+
c?.(e), !e.defaultPrevented && m?.dispatch({
|
|
756
|
+
type: "REMOVE_FILE",
|
|
757
|
+
file: h.file
|
|
758
|
+
});
|
|
759
|
+
}, n[7] = h.file, n[8] = c, n[9] = m, n[10] = g) : g = n[10];
|
|
760
|
+
let _ = g, v = r ? p : "button", y;
|
|
761
|
+
n[11] === u ? y = n[12] : (y = s.props(C.itemDeleteBtn, u), n[11] = u, n[12] = y);
|
|
762
|
+
let b = y, x = `Remove ${h.file.name}`, w;
|
|
763
|
+
n[13] !== a || n[14] !== b.className ? (w = a ? `${b.className || ""} ${a}`.trim() : b.className, n[13] = a, n[14] = b.className, n[15] = w) : w = n[15];
|
|
764
|
+
let E;
|
|
765
|
+
n[16] === i ? E = n[17] : (E = i || /* @__PURE__ */ l(e.X, { size: 15 }), n[16] = i, n[17] = E);
|
|
766
|
+
let D;
|
|
767
|
+
return n[18] !== v || n[19] !== o || n[20] !== _ || n[21] !== b || n[22] !== x || n[23] !== w || n[24] !== E ? (D = /* @__PURE__ */ l(v, {
|
|
768
|
+
type: "button",
|
|
769
|
+
"data-slot": "file-upload-item-delete",
|
|
770
|
+
"aria-label": x,
|
|
771
|
+
...o,
|
|
772
|
+
...b,
|
|
773
|
+
className: w,
|
|
774
|
+
onClick: _,
|
|
775
|
+
children: E
|
|
776
|
+
}), n[18] = v, n[19] = o, n[20] = _, n[21] = b, n[22] = x, n[23] = w, n[24] = E, n[25] = D) : D = n[25], D;
|
|
777
|
+
}
|
|
778
|
+
function H(e) {
|
|
779
|
+
let t = f(20), n, r, i, a, o;
|
|
780
|
+
t[0] === e ? (n = t[1], r = t[2], i = t[3], a = t[4], o = t[5]) : ({asChild: n, onClick: a, className: r, sx: o, ...i} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = a, t[5] = o);
|
|
781
|
+
let c = d.useContext(T), u;
|
|
782
|
+
t[6] !== a || t[7] !== c ? (u = (e) => {
|
|
783
|
+
a?.(e), !e.defaultPrevented && c?.dispatch({ type: "CLEAR" });
|
|
784
|
+
}, t[6] = a, t[7] = c, t[8] = u) : u = t[8];
|
|
785
|
+
let m = u, h = n ? p : "button", g;
|
|
786
|
+
t[9] === o ? g = t[10] : (g = s.props(o), t[9] = o, t[10] = g);
|
|
787
|
+
let _ = g, v;
|
|
788
|
+
t[11] !== r || t[12] !== _.className ? (v = r ? `${_.className || ""} ${r}`.trim() : _.className, t[11] = r, t[12] = _.className, t[13] = v) : v = t[13];
|
|
789
|
+
let y;
|
|
790
|
+
return t[14] !== h || t[15] !== i || t[16] !== m || t[17] !== _ || t[18] !== v ? (y = /* @__PURE__ */ l(h, {
|
|
791
|
+
type: "button",
|
|
792
|
+
"data-slot": "file-upload-clear",
|
|
793
|
+
...i,
|
|
794
|
+
..._,
|
|
795
|
+
className: v,
|
|
796
|
+
onClick: m
|
|
797
|
+
}), t[14] = h, t[15] = i, t[16] = m, t[17] = _, t[18] = v, t[19] = y) : y = t[19], y;
|
|
798
|
+
}
|
|
799
|
+
function U({ variant: n = "default", dropzoneTitle: r, dropzoneSubtitle: i, icon: o, uploadHandler: s, showFileList: c = !0, showProgress: f = !0, showPreview: p = !0, showClear: m = !1, onUpload: h, maxFiles: g = 1, maxSize: _ = 10485760, accept: v = "image/*", value: y, onValueChange: b, sx: x, className: S, ...w }) {
|
|
800
|
+
let [T, E] = d.useState(y || []), D = y === void 0 ? T : y, O = (e) => {
|
|
801
|
+
E(e), b?.(e);
|
|
802
|
+
}, k = d.useCallback(async (e, t) => {
|
|
803
|
+
if (h) return h(e, t);
|
|
804
|
+
s && await s(e, {
|
|
805
|
+
onProgress: t.onProgress,
|
|
806
|
+
onSuccess: (e) => t.onSuccess(e),
|
|
807
|
+
onError: (e, n) => t.onError(e, n)
|
|
808
|
+
});
|
|
809
|
+
}, [h, s]);
|
|
810
|
+
if (n === "avatar") {
|
|
811
|
+
let n = D[0];
|
|
812
|
+
return /* @__PURE__ */ l(A, {
|
|
813
|
+
value: D,
|
|
814
|
+
onValueChange: O,
|
|
815
|
+
maxFiles: 1,
|
|
816
|
+
maxSize: _,
|
|
817
|
+
accept: v,
|
|
818
|
+
onUpload: k,
|
|
819
|
+
sx: x,
|
|
820
|
+
className: S,
|
|
821
|
+
...w,
|
|
822
|
+
children: /* @__PURE__ */ l(j, {
|
|
823
|
+
sx: C.avatarDropzone,
|
|
824
|
+
children: n ? /* @__PURE__ */ u(I, {
|
|
825
|
+
value: n,
|
|
826
|
+
sx: C.avatarItem,
|
|
827
|
+
children: [
|
|
828
|
+
/* @__PURE__ */ l(R, {
|
|
829
|
+
sx: C.avatarPreview,
|
|
830
|
+
render: (e) => {
|
|
831
|
+
let t = URL.createObjectURL(e);
|
|
832
|
+
return /* @__PURE__ */ l("img", {
|
|
833
|
+
src: t,
|
|
834
|
+
alt: e.name,
|
|
835
|
+
className: "xh8yej3 x5yr21d xl1xv1r"
|
|
836
|
+
});
|
|
837
|
+
}
|
|
838
|
+
}),
|
|
839
|
+
/* @__PURE__ */ u("div", {
|
|
840
|
+
className: "x10l6tqk x10a8y8t x78zum5 xdt5ytf x6s0dn4 xl56j7k xvh977a xa44r0r xstwp1q xg01cxk x19991ni x13dflua x1o7uuvo",
|
|
841
|
+
children: [/* @__PURE__ */ l(e.Camera, { size: 22 }), /* @__PURE__ */ l(t, {
|
|
842
|
+
size: "xs",
|
|
843
|
+
weight: "semibold",
|
|
844
|
+
sx: C.whiteText,
|
|
845
|
+
children: "Change"
|
|
846
|
+
})]
|
|
847
|
+
}),
|
|
848
|
+
f && /* @__PURE__ */ l(B, { variant: "fill" })
|
|
849
|
+
]
|
|
850
|
+
}) : /* @__PURE__ */ u("div", {
|
|
851
|
+
style: {
|
|
852
|
+
display: "flex",
|
|
853
|
+
flexDirection: "column",
|
|
854
|
+
alignItems: "center",
|
|
855
|
+
gap: "0.25rem"
|
|
856
|
+
},
|
|
857
|
+
children: [/* @__PURE__ */ l(e.Camera, { size: 28 }), /* @__PURE__ */ l(t, {
|
|
858
|
+
size: "xs",
|
|
859
|
+
type: "muted",
|
|
860
|
+
weight: "medium",
|
|
861
|
+
children: "Upload photo"
|
|
862
|
+
})]
|
|
863
|
+
})
|
|
864
|
+
})
|
|
865
|
+
});
|
|
866
|
+
}
|
|
867
|
+
if (n === "compact") return /* @__PURE__ */ u(A, {
|
|
868
|
+
value: D,
|
|
869
|
+
onValueChange: O,
|
|
870
|
+
maxFiles: g,
|
|
871
|
+
maxSize: _,
|
|
872
|
+
accept: v,
|
|
873
|
+
multiple: g > 1,
|
|
874
|
+
onUpload: k,
|
|
875
|
+
sx: x,
|
|
876
|
+
className: S,
|
|
877
|
+
...w,
|
|
878
|
+
children: [/* @__PURE__ */ u(j, {
|
|
879
|
+
sx: C.compactDropzone,
|
|
880
|
+
children: [
|
|
881
|
+
/* @__PURE__ */ l("div", {
|
|
882
|
+
className: "x78zum5 x6s0dn4 xl56j7k xvm51jw xwaiz5r x9psvww xmkeg23 x1y0btm7 xb30jbz x1rexohn xw3nh4a",
|
|
883
|
+
children: o || /* @__PURE__ */ l(e.CloudUpload, { size: 18 })
|
|
884
|
+
}),
|
|
885
|
+
/* @__PURE__ */ u("div", {
|
|
886
|
+
style: {
|
|
887
|
+
display: "flex",
|
|
888
|
+
flexDirection: "column",
|
|
889
|
+
flex: 1,
|
|
890
|
+
minWidth: 0
|
|
891
|
+
},
|
|
892
|
+
children: [/* @__PURE__ */ l(t, {
|
|
893
|
+
size: "sm",
|
|
894
|
+
weight: "medium",
|
|
895
|
+
children: r || "Choose or drop files to upload"
|
|
896
|
+
}), /* @__PURE__ */ l(t, {
|
|
897
|
+
size: "xs",
|
|
898
|
+
type: "muted",
|
|
899
|
+
children: i || `${g > 1 ? `Up to ${g} files` : "1 file max"} ${_ ? `(Max ${a(_)})` : ""}`
|
|
900
|
+
})]
|
|
901
|
+
}),
|
|
902
|
+
/* @__PURE__ */ l(M, {
|
|
903
|
+
asChild: !0,
|
|
904
|
+
children: /* @__PURE__ */ l("button", {
|
|
905
|
+
type: "button",
|
|
906
|
+
style: {
|
|
907
|
+
fontSize: "0.75rem",
|
|
908
|
+
padding: "0.375rem 0.75rem",
|
|
909
|
+
borderRadius: "0.375rem",
|
|
910
|
+
border: "1px solid var(--border)",
|
|
911
|
+
backgroundColor: "var(--background)",
|
|
912
|
+
color: "var(--foreground)",
|
|
913
|
+
cursor: "pointer",
|
|
914
|
+
fontWeight: 500
|
|
915
|
+
},
|
|
916
|
+
children: "Browse"
|
|
917
|
+
})
|
|
918
|
+
})
|
|
919
|
+
]
|
|
920
|
+
}), c && D.length > 0 && /* @__PURE__ */ l(N, {
|
|
921
|
+
orientation: "horizontal",
|
|
922
|
+
children: D.map((e, t) => /* @__PURE__ */ u(I, {
|
|
923
|
+
value: e,
|
|
924
|
+
children: [
|
|
925
|
+
p && /* @__PURE__ */ l(R, {}),
|
|
926
|
+
/* @__PURE__ */ l(z, {}),
|
|
927
|
+
f && /* @__PURE__ */ l(B, { variant: "bottom" }),
|
|
928
|
+
/* @__PURE__ */ l(V, {})
|
|
929
|
+
]
|
|
930
|
+
}, `${e.name}-${t}`))
|
|
931
|
+
})]
|
|
932
|
+
});
|
|
933
|
+
let P = `${g > 1 ? `Up to ${g} files` : "1 file max"} ${_ ? `(Max ${a(_)})` : ""}`;
|
|
934
|
+
return /* @__PURE__ */ u(A, {
|
|
935
|
+
value: D,
|
|
936
|
+
onValueChange: O,
|
|
937
|
+
maxFiles: g,
|
|
938
|
+
maxSize: _,
|
|
939
|
+
accept: v,
|
|
940
|
+
multiple: g > 1,
|
|
941
|
+
onUpload: k,
|
|
942
|
+
sx: x,
|
|
943
|
+
className: S,
|
|
944
|
+
...w,
|
|
945
|
+
children: [
|
|
946
|
+
/* @__PURE__ */ u(j, { children: [
|
|
947
|
+
/* @__PURE__ */ l("div", {
|
|
948
|
+
className: "x78zum5 x6s0dn4 xl56j7k xvm51jw xwaiz5r x9psvww xmkeg23 x1y0btm7 xb30jbz x1rexohn xw3nh4a",
|
|
949
|
+
children: o || /* @__PURE__ */ l(e.CloudUpload, { size: 20 })
|
|
950
|
+
}),
|
|
951
|
+
/* @__PURE__ */ l(t, {
|
|
952
|
+
size: "md",
|
|
953
|
+
weight: "medium",
|
|
954
|
+
sx: C.dropzoneTitle,
|
|
955
|
+
children: r || "Drag & drop files here, or click to browse"
|
|
956
|
+
}),
|
|
957
|
+
/* @__PURE__ */ l(t, {
|
|
958
|
+
size: "xs",
|
|
959
|
+
type: "muted",
|
|
960
|
+
sx: C.dropzoneSubtitle,
|
|
961
|
+
children: i || P
|
|
962
|
+
})
|
|
963
|
+
] }),
|
|
964
|
+
m && D.length > 0 && /* @__PURE__ */ l("div", {
|
|
965
|
+
className: "x78zum5 x13a6bvl xh8yej3",
|
|
966
|
+
children: /* @__PURE__ */ l(H, {
|
|
967
|
+
asChild: !0,
|
|
968
|
+
children: /* @__PURE__ */ u("button", {
|
|
969
|
+
type: "button",
|
|
970
|
+
className: "x3nfvp2 x6s0dn4 xvh977a xboafo0 xw3nh4a xjbqb8w xc342km x1ypdohk x48ff29 xqfady0 x9p52ec x1mqvv6a",
|
|
971
|
+
children: [/* @__PURE__ */ l(e.Trash2, { size: 13 }), "Clear all"]
|
|
972
|
+
})
|
|
973
|
+
})
|
|
974
|
+
}),
|
|
975
|
+
c && D.length > 0 && /* @__PURE__ */ l(N, { children: D.map((e, t) => /* @__PURE__ */ u(I, {
|
|
976
|
+
value: e,
|
|
977
|
+
children: [
|
|
978
|
+
p && /* @__PURE__ */ l(R, { render: (e, t) => {
|
|
979
|
+
if (e.type.startsWith("image/")) {
|
|
980
|
+
let t = URL.createObjectURL(e);
|
|
981
|
+
return /* @__PURE__ */ l("img", {
|
|
982
|
+
src: t,
|
|
983
|
+
alt: e.name,
|
|
984
|
+
className: "xh8yej3 x5yr21d xl1xv1r"
|
|
985
|
+
});
|
|
986
|
+
}
|
|
987
|
+
return t();
|
|
988
|
+
} }),
|
|
989
|
+
/* @__PURE__ */ l(z, {}),
|
|
990
|
+
f && /* @__PURE__ */ l(B, { variant: "bottom" }),
|
|
991
|
+
/* @__PURE__ */ l(V, {})
|
|
992
|
+
]
|
|
993
|
+
}, `${e.name}-${t}`)) })
|
|
994
|
+
]
|
|
995
|
+
});
|
|
996
|
+
}
|
|
997
|
+
export { A as FileUpload, H as FileUploadClear, j as FileUploadDropzone, I as FileUploadItem, V as FileUploadItemDelete, z as FileUploadItemMetadata, R as FileUploadItemPreview, B as FileUploadItemProgress, N as FileUploadList, M as FileUploadTrigger, U as FileUploader, n as createApiUploadHandler, r as createS3PresignedUploadHandler, i as createUploadThingUploadHandler, a as formatFileSize, D as useFileUpload, o as useUploadFile };
|