@vlrc-fe/components 2.7.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 +41 -0
- package/README.md +127 -209
- package/bin/vlrc.mjs +15 -0
- package/dist/ConfirmModal.cjs +1 -0
- package/dist/ConfirmModal.d.ts +2 -3
- package/dist/ConfirmModal.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- package/dist/DataTable/components/DataTableFacetedFilter.js +226 -0
- package/dist/DataTable/components/DataTablePagination.cjs +1 -0
- package/dist/DataTable/components/DataTablePagination.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- package/dist/Dropdown/Dropdown.js +221 -0
- package/dist/Dropdown/types.d.ts +1 -1
- package/dist/Dropdown/types.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/FormDatePicker.js +79 -0
- package/dist/Form/FormDatePicker/MonthPickerPanel.cjs +1 -0
- package/dist/Form/FormDatePicker/MonthPickerPanel.d.ts +2 -1
- package/dist/Form/FormDatePicker/MonthPickerPanel.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/MonthPickerPanel.js +120 -0
- package/dist/Form/FormDatePicker/RangeDatePicker.cjs +1 -0
- package/dist/Form/FormDatePicker/RangeDatePicker.d.ts +7 -1
- package/dist/Form/FormDatePicker/RangeDatePicker.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/RangeDatePicker.js +123 -0
- package/dist/Form/FormDatePicker/SingleDatePicker.cjs +1 -0
- package/dist/Form/FormDatePicker/SingleDatePicker.d.ts +5 -1
- package/dist/Form/FormDatePicker/SingleDatePicker.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/SingleDatePicker.js +157 -0
- package/dist/Form/FormDatePicker/TimeInput.cjs +1 -0
- package/dist/Form/FormDatePicker/TimeInput.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/TimeInput.js +86 -0
- package/dist/Form/FormDatePicker/TimePicker.cjs +1 -0
- package/dist/Form/FormDatePicker/TimePicker.d.ts.map +1 -1
- 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/types.d.ts +5 -0
- package/dist/Form/FormDatePicker/types.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- 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.d.ts +2 -2
- package/dist/Form/FormNumberInput/useFormNumberInput.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- package/dist/Form/FormSelect/FormSelect.js +30 -0
- package/dist/Form/FormSelect/types.d.ts +1 -1
- package/dist/Form/FormSelect/types.d.ts.map +1 -1
- package/dist/Form/FormSelect/useFormSelect.d.ts +1 -1
- package/dist/Form/FormSelect/useFormSelect.d.ts.map +1 -1
- package/dist/Modal.cjs +1 -0
- package/dist/Modal.js +120 -0
- package/dist/MultiSelect/MultiSelect.cjs +1 -0
- package/dist/MultiSelect/MultiSelect.d.ts +3 -31
- package/dist/MultiSelect/MultiSelect.d.ts.map +1 -1
- package/dist/MultiSelect/MultiSelect.js +199 -0
- package/dist/MultiSelect/renderers.cjs +1 -0
- package/dist/MultiSelect/renderers.d.ts.map +1 -1
- package/dist/MultiSelect/renderers.js +367 -0
- package/dist/MultiSelect/type.d.ts +1 -0
- package/dist/MultiSelect/type.d.ts.map +1 -1
- package/dist/MultiSelect/useMultiSelect.cjs +1 -0
- package/dist/MultiSelect/useMultiSelect.d.ts.map +1 -1
- package/dist/MultiSelect/useMultiSelect.js +163 -0
- package/dist/Select/BaseSelect.cjs +1 -0
- package/dist/Select/BaseSelect.d.ts.map +1 -1
- package/dist/Select/BaseSelect.js +222 -0
- package/dist/Select/MultiSelectTags.cjs +1 -0
- package/dist/Select/MultiSelectTags.d.ts.map +1 -1
- package/dist/Select/MultiSelectTags.js +101 -0
- package/dist/Select/type.d.ts +1 -1
- package/dist/Select/type.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- package/dist/Typography/Code.js +123 -0
- package/dist/Typography/Link.cjs +1 -0
- package/dist/Typography/Link.d.ts.map +1 -1
- package/dist/Typography/Link.js +128 -0
- package/dist/Typography/Paragraph.cjs +1 -0
- package/dist/Typography/Paragraph.d.ts.map +1 -1
- package/dist/Typography/Paragraph.js +212 -0
- package/dist/Typography/Text.cjs +1 -0
- package/dist/Typography/Text.d.ts.map +1 -1
- 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/types.d.ts +37 -1
- package/dist/Typography/types.d.ts.map +1 -1
- package/dist/Typography/utils.cjs +1 -0
- package/dist/Typography/utils.d.ts +3 -2
- package/dist/Typography/utils.d.ts.map +1 -1
- package/dist/Typography/utils.js +24 -0
- package/dist/Typography/weightStyles.cjs +1 -0
- package/dist/assets/stylex.css +369 -298
- 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/lazyLoad.cjs +1 -0
- package/dist/lazyLoad.js +13 -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-context@1.2.2_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-context/dist/index.js +89 -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-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 +44 -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/zIndex.js +30 -0
- package/dist/theme.css +52 -138
- package/dist/ui/accordion.cjs +1 -0
- package/dist/ui/accordion.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- 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.d.ts +1 -1
- package/dist/ui/calendar.d.ts.map +1 -1
- 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.d.ts +1 -1
- package/dist/ui/command.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- package/dist/ui/dropdown-menu.js +319 -0
- package/dist/ui/editable.cjs +1 -0
- package/dist/ui/editable.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- package/dist/ui/input-group.js +219 -0
- package/dist/ui/input-otp.cjs +1 -0
- package/dist/ui/input-otp.d.ts +1 -1
- package/dist/ui/input-otp.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- 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/label.js +35 -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.d.ts.map +1 -1
- 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.d.ts +3 -1
- package/dist/ui/pagination.d.ts.map +1 -1
- 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/spinner.js +70 -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/table.js +186 -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.d.ts +1 -1
- package/dist/ui/toggle-group.d.ts.map +1 -1
- package/dist/ui/toggle-group.js +74 -0
- package/dist/ui/toggle.cjs +1 -0
- package/dist/ui/toggle.d.ts +2 -2
- package/dist/ui/toggle.d.ts.map +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/ui/useBreakpoint.d.ts +0 -4
- package/dist/ui/useBreakpoint.d.ts.map +1 -1
- package/dist/ui/useBreakpoint.js +65 -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/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 -326
- 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 -322
- package/dist/index108.cjs +0 -1
- package/dist/index108.js +0 -336
- package/dist/index109.cjs +0 -1
- package/dist/index109.js +0 -134
- package/dist/index11.cjs +0 -1
- package/dist/index11.js +0 -183
- package/dist/index110.cjs +0 -1
- package/dist/index110.js +0 -35
- package/dist/index111.cjs +0 -1
- package/dist/index111.js +0 -35
- package/dist/index112.cjs +0 -1
- package/dist/index112.js +0 -307
- 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 -154
- package/dist/index117.cjs +0 -1
- package/dist/index117.js +0 -116
- package/dist/index118.cjs +0 -1
- package/dist/index118.js +0 -65
- package/dist/index119.cjs +0 -1
- package/dist/index119.js +0 -471
- package/dist/index12.cjs +0 -1
- package/dist/index12.js +0 -155
- 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 -215
- package/dist/index125.cjs +0 -20
- package/dist/index126.cjs +0 -1
- package/dist/index126.js +0 -187
- package/dist/index127.cjs +0 -1
- package/dist/index127.js +0 -269
- 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 -184
- package/dist/index130.cjs +0 -1
- package/dist/index130.js +0 -401
- 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 -303
- 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 -131
- 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 -75
- 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/index152.js +0 -70
- 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/index157.js +0 -186
- 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 -106
- 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/index168.cjs +0 -1
- package/dist/index168.js +0 -13
- package/dist/index169.cjs +0 -1
- package/dist/index169.js +0 -92
- package/dist/index17.cjs +0 -1
- package/dist/index17.js +0 -16
- 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 -201
- 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 -269
- package/dist/index181.cjs +0 -1
- package/dist/index181.js +0 -356
- 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/index19.cjs +0 -1
- package/dist/index19.js +0 -281
- package/dist/index190.cjs +0 -1
- package/dist/index190.js +0 -6
- package/dist/index191.cjs +0 -1
- package/dist/index191.js +0 -7
- package/dist/index193.cjs +0 -1
- package/dist/index193.js +0 -6
- package/dist/index194.cjs +0 -1
- package/dist/index194.js +0 -8
- package/dist/index197.cjs +0 -1
- package/dist/index197.js +0 -201
- package/dist/index198.cjs +0 -1
- package/dist/index198.js +0 -123
- package/dist/index199.cjs +0 -1
- package/dist/index199.js +0 -31
- package/dist/index200.cjs +0 -1
- package/dist/index200.js +0 -19
- package/dist/index201.cjs +0 -1
- package/dist/index201.js +0 -68
- package/dist/index202.cjs +0 -1
- package/dist/index202.js +0 -31
- package/dist/index203.cjs +0 -1
- package/dist/index203.js +0 -10
- package/dist/index204.cjs +0 -1
- package/dist/index204.js +0 -279
- package/dist/index205.cjs +0 -1
- package/dist/index205.js +0 -156
- package/dist/index206.cjs +0 -1
- package/dist/index206.js +0 -19
- package/dist/index207.cjs +0 -1
- package/dist/index207.js +0 -9
- package/dist/index208.cjs +0 -1
- package/dist/index208.js +0 -13
- package/dist/index209.cjs +0 -1
- package/dist/index209.js +0 -7
- package/dist/index210.cjs +0 -1
- package/dist/index210.js +0 -7
- package/dist/index211.cjs +0 -1
- package/dist/index211.js +0 -10
- package/dist/index212.cjs +0 -1
- package/dist/index212.js +0 -9
- package/dist/index214.cjs +0 -1
- package/dist/index214.js +0 -7
- package/dist/index215.cjs +0 -1
- package/dist/index215.js +0 -7
- package/dist/index216.cjs +0 -1
- package/dist/index216.js +0 -9
- package/dist/index217.cjs +0 -1
- package/dist/index217.js +0 -10
- package/dist/index218.cjs +0 -1
- package/dist/index218.js +0 -14
- package/dist/index219.cjs +0 -1
- package/dist/index219.js +0 -10
- package/dist/index220.cjs +0 -1
- package/dist/index220.js +0 -10
- package/dist/index222.cjs +0 -1
- package/dist/index222.js +0 -42
- package/dist/index223.cjs +0 -1
- package/dist/index223.js +0 -388
- package/dist/index226.cjs +0 -1
- package/dist/index226.js +0 -58
- package/dist/index227.cjs +0 -1
- package/dist/index227.js +0 -40
- package/dist/index228.cjs +0 -1
- package/dist/index228.js +0 -124
- package/dist/index229.cjs +0 -1
- package/dist/index229.js +0 -77
- package/dist/index23.cjs +0 -1
- package/dist/index23.js +0 -29
- package/dist/index230.cjs +0 -1
- package/dist/index230.js +0 -71
- package/dist/index231.cjs +0 -1
- package/dist/index231.js +0 -116
- package/dist/index232.cjs +0 -1
- package/dist/index232.js +0 -100
- package/dist/index233.cjs +0 -1
- package/dist/index233.js +0 -150
- package/dist/index234.cjs +0 -1
- package/dist/index234.js +0 -71
- package/dist/index235.cjs +0 -9
- package/dist/index236.cjs +0 -1
- package/dist/index236.js +0 -67
- package/dist/index237.cjs +0 -1
- package/dist/index237.js +0 -43
- package/dist/index238.cjs +0 -1
- package/dist/index238.js +0 -67
- package/dist/index24.cjs +0 -1
- package/dist/index24.js +0 -369
- package/dist/index240.cjs +0 -1
- package/dist/index240.js +0 -97
- package/dist/index241.cjs +0 -1
- package/dist/index241.js +0 -212
- package/dist/index242.cjs +0 -1
- package/dist/index242.js +0 -25
- package/dist/index244.cjs +0 -1
- package/dist/index244.js +0 -63
- package/dist/index245.cjs +0 -1
- package/dist/index245.js +0 -422
- package/dist/index246.cjs +0 -1
- package/dist/index246.js +0 -25
- package/dist/index247.cjs +0 -1
- package/dist/index247.js +0 -209
- package/dist/index25.cjs +0 -1
- package/dist/index25.js +0 -182
- package/dist/index26.cjs +0 -1
- package/dist/index26.js +0 -107
- package/dist/index27.cjs +0 -1
- package/dist/index27.js +0 -161
- package/dist/index28.cjs +0 -1
- package/dist/index28.js +0 -97
- package/dist/index29.cjs +0 -1
- package/dist/index29.js +0 -89
- package/dist/index3.cjs +0 -1
- package/dist/index3.js +0 -63
- package/dist/index30.cjs +0 -1
- package/dist/index32.cjs +0 -1
- package/dist/index32.js +0 -87
- package/dist/index33.cjs +0 -1
- package/dist/index33.js +0 -234
- package/dist/index34.cjs +0 -1
- package/dist/index34.js +0 -44
- package/dist/index35.cjs +0 -1
- package/dist/index35.js +0 -31
- package/dist/index36.cjs +0 -1
- package/dist/index36.js +0 -15
- package/dist/index37.cjs +0 -1
- package/dist/index38.cjs +0 -1
- package/dist/index39.cjs +0 -1
- package/dist/index39.js +0 -87
- package/dist/index40.cjs +0 -1
- package/dist/index40.js +0 -178
- package/dist/index41.cjs +0 -1
- package/dist/index41.js +0 -145
- package/dist/index42.cjs +0 -1
- package/dist/index42.js +0 -69
- package/dist/index43.cjs +0 -1
- package/dist/index43.js +0 -57
- package/dist/index44.cjs +0 -1
- package/dist/index44.js +0 -270
- package/dist/index45.cjs +0 -1
- package/dist/index45.js +0 -8
- package/dist/index47.cjs +0 -1
- package/dist/index47.js +0 -504
- package/dist/index48.cjs +0 -1
- package/dist/index48.js +0 -211
- package/dist/index51.cjs +0 -1
- package/dist/index51.js +0 -23
- package/dist/index52.cjs +0 -1
- package/dist/index52.js +0 -208
- package/dist/index53.cjs +0 -1
- package/dist/index53.js +0 -157
- package/dist/index54.cjs +0 -1
- package/dist/index54.js +0 -124
- package/dist/index55.cjs +0 -1
- package/dist/index55.js +0 -20
- package/dist/index56.cjs +0 -1
- package/dist/index56.js +0 -82
- package/dist/index57.cjs +0 -1
- package/dist/index57.js +0 -97
- package/dist/index58.cjs +0 -1
- package/dist/index58.js +0 -15
- package/dist/index59.cjs +0 -1
- package/dist/index59.js +0 -94
- package/dist/index6.cjs +0 -1
- package/dist/index6.js +0 -6
- package/dist/index60.cjs +0 -1
- package/dist/index60.js +0 -33
- package/dist/index61.cjs +0 -1
- package/dist/index61.js +0 -212
- package/dist/index62.cjs +0 -1
- package/dist/index62.js +0 -253
- 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 -30
- 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/index8.js +0 -63
- 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 -18
- 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/{index46.cjs → Form/FormDatePicker/types.cjs} +0 -0
- /package/dist/{index46.js → Form/FormDatePicker/types.js} +0 -0
- /package/dist/{index243.cjs → Form/FormRadioGroup/useFormRadio.cjs} +0 -0
- /package/dist/{index243.js → Form/FormRadioGroup/useFormRadio.js} +0 -0
- /package/dist/{index239.cjs → Form/FormSelect/useFormSelect.cjs} +0 -0
- /package/dist/{index239.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/{index10.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/{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/{index31.cjs → node_modules/.pnpm/@radix-ui_primitive@1.1.7/node_modules/@radix-ui/primitive/dist/index.cjs} +0 -0
- /package/dist/{index31.js → node_modules/.pnpm/@radix-ui_primitive@1.1.7/node_modules/@radix-ui/primitive/dist/index.js} +0 -0
- /package/dist/{index30.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/{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/{index37.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/{index38.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/{index221.cjs → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/addLeadingZeros.cjs} +0 -0
- /package/dist/{index221.js → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/addLeadingZeros.js} +0 -0
- /package/dist/{index192.cjs → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/defaultOptions.cjs} +0 -0
- /package/dist/{index192.js → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/defaultOptions.js} +0 -0
- /package/dist/{index224.cjs → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/longFormatters.cjs} +0 -0
- /package/dist/{index224.js → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/longFormatters.js} +0 -0
- /package/dist/{index225.cjs → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/protectedTokens.cjs} +0 -0
- /package/dist/{index225.js → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/protectedTokens.js} +0 -0
- /package/dist/{index189.cjs → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constants.cjs} +0 -0
- /package/dist/{index189.js → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constants.js} +0 -0
- /package/dist/{index213.cjs → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isDate.cjs} +0 -0
- /package/dist/{index213.js → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isDate.js} +0 -0
- /package/dist/{index185.cjs → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.cjs} +0 -0
- /package/dist/{index185.js → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js} +0 -0
- /package/dist/{index186.cjs → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.cjs} +0 -0
- /package/dist/{index186.js → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js} +0 -0
- /package/dist/{index187.cjs → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchFn.cjs} +0 -0
- /package/dist/{index187.js → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchFn.js} +0 -0
- /package/dist/{index188.cjs → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.cjs} +0 -0
- /package/dist/{index188.js → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js} +0 -0
- /package/dist/{index195.cjs → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.cjs} +0 -0
- /package/dist/{index195.js → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.js} +0 -0
- /package/dist/{index196.cjs → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.cjs} +0 -0
- /package/dist/{index196.js → node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.js} +0 -0
- /package/dist/{index49.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/{index49.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/{index50.cjs → node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.cjs} +0 -0
- /package/dist/{index50.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/{index235.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/{index22.cjs → theme/spacing.cjs} +0 -0
- /package/dist/{index22.js → theme/spacing.js} +0 -0
- /package/dist/{index20.cjs → theme/types.cjs} +0 -0
- /package/dist/{index20.js → theme/types.js} +0 -0
- /package/dist/{index21.cjs → theme/width.cjs} +0 -0
- /package/dist/{index21.js → theme/width.js} +0 -0
- /package/dist/{index113.js → ui/file-upload-adapters.js} +0 -0
package/dist/ui/field.js
ADDED
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
import { Paragraph as e } from "../Typography/Paragraph.js";
|
|
2
|
+
import { Text as t } from "../Typography/Text.js";
|
|
3
|
+
import { resolveWidth as n } from "../theme/width.js";
|
|
4
|
+
import { Label as r } from "./label.js";
|
|
5
|
+
import { Separator as i } from "./separator.js";
|
|
6
|
+
import * as a from "@stylexjs/stylex";
|
|
7
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
8
|
+
import "react";
|
|
9
|
+
import { c } from "react/compiler-runtime";
|
|
10
|
+
import { Field as l, FieldLabel as u, FieldStatus as d, InputClearButton as f } from "@astryxdesign/core";
|
|
11
|
+
// src/ui/field.tsx
|
|
12
|
+
var p = {
|
|
13
|
+
set: {
|
|
14
|
+
k1xSpc: "x78zum5",
|
|
15
|
+
kXwgrk: "xdt5ytf",
|
|
16
|
+
kOIVth: "xru8eyw",
|
|
17
|
+
$$css: !0
|
|
18
|
+
},
|
|
19
|
+
legend: {
|
|
20
|
+
k1K539: "x1gr9t9r",
|
|
21
|
+
k63SB2: "xk50ysn",
|
|
22
|
+
kGuDYH: "x1jchvi3",
|
|
23
|
+
kMwMTN: "x84br7x",
|
|
24
|
+
$$css: !0
|
|
25
|
+
},
|
|
26
|
+
legendLabel: {
|
|
27
|
+
kGuDYH: "xkpwil5",
|
|
28
|
+
$$css: !0
|
|
29
|
+
},
|
|
30
|
+
group: {
|
|
31
|
+
k1xSpc: "x78zum5",
|
|
32
|
+
kzqmXN: "xh8yej3",
|
|
33
|
+
kXwgrk: "xdt5ytf",
|
|
34
|
+
kOIVth: "xj3jsk1",
|
|
35
|
+
$$css: !0
|
|
36
|
+
},
|
|
37
|
+
fieldBase: {
|
|
38
|
+
k1xSpc: "x78zum5",
|
|
39
|
+
kzqmXN: "xh8yej3",
|
|
40
|
+
kOIVth: "xpj7pl4",
|
|
41
|
+
$$css: !0
|
|
42
|
+
},
|
|
43
|
+
vertical: {
|
|
44
|
+
kXwgrk: "xdt5ytf",
|
|
45
|
+
kOIVth: "xpj7pl4",
|
|
46
|
+
$$css: !0
|
|
47
|
+
},
|
|
48
|
+
horizontal: {
|
|
49
|
+
kXwgrk: "x1q0g3np",
|
|
50
|
+
kGNEyG: "x6s0dn4",
|
|
51
|
+
kOIVth: "x13z6uf9",
|
|
52
|
+
$$css: !0
|
|
53
|
+
},
|
|
54
|
+
responsive: {
|
|
55
|
+
kXwgrk: "xdt5ytf",
|
|
56
|
+
kOIVth: "xpj7pl4",
|
|
57
|
+
$$css: !0
|
|
58
|
+
},
|
|
59
|
+
content: {
|
|
60
|
+
k1xSpc: "x78zum5",
|
|
61
|
+
kUk6DE: "x845mor",
|
|
62
|
+
kXwgrk: "xdt5ytf",
|
|
63
|
+
kOIVth: "xvh977a",
|
|
64
|
+
kLWn49: "x1pujyh6",
|
|
65
|
+
$$css: !0
|
|
66
|
+
},
|
|
67
|
+
label: {
|
|
68
|
+
k1xSpc: "x3nfvp2",
|
|
69
|
+
kGNEyG: "x6s0dn4",
|
|
70
|
+
kzqmXN: "xeq5yr9",
|
|
71
|
+
kOIVth: "x1enigpx",
|
|
72
|
+
kLWn49: "x1pujyh6",
|
|
73
|
+
kGuDYH: "xkpwil5",
|
|
74
|
+
k63SB2: "xk50ysn",
|
|
75
|
+
kMwMTN: "x84br7x",
|
|
76
|
+
$$css: !0
|
|
77
|
+
},
|
|
78
|
+
title: {
|
|
79
|
+
k1xSpc: "x78zum5",
|
|
80
|
+
kzqmXN: "xeq5yr9",
|
|
81
|
+
kGNEyG: "x6s0dn4",
|
|
82
|
+
kOIVth: "x13z6uf9",
|
|
83
|
+
kGuDYH: "xkpwil5",
|
|
84
|
+
kLWn49: "x1pujyh6",
|
|
85
|
+
k63SB2: "xk50ysn",
|
|
86
|
+
kMwMTN: "x84br7x",
|
|
87
|
+
$$css: !0
|
|
88
|
+
},
|
|
89
|
+
description: {
|
|
90
|
+
kMwMTN: "xw3nh4a",
|
|
91
|
+
kGuDYH: "xkpwil5",
|
|
92
|
+
kLWn49: "x1evy7pa",
|
|
93
|
+
$$css: !0
|
|
94
|
+
},
|
|
95
|
+
separator: {
|
|
96
|
+
kVAEAm: "x1n2onr6",
|
|
97
|
+
kqGvvJ: "x1atlohd",
|
|
98
|
+
kZKoxP: "xmll18r",
|
|
99
|
+
kGuDYH: "xkpwil5",
|
|
100
|
+
$$css: !0
|
|
101
|
+
},
|
|
102
|
+
separatorLine: {
|
|
103
|
+
kVAEAm: "x10l6tqk",
|
|
104
|
+
kpwlN0: "x10a8y8t",
|
|
105
|
+
k87sOh: "xwa60dl",
|
|
106
|
+
$$css: !0
|
|
107
|
+
},
|
|
108
|
+
error: {
|
|
109
|
+
kMwMTN: "xuuroe4",
|
|
110
|
+
kGuDYH: "xkpwil5",
|
|
111
|
+
k63SB2: "xo1l8bm",
|
|
112
|
+
$$css: !0
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
function m(e) {
|
|
116
|
+
let t = c(13), n, r, i;
|
|
117
|
+
t[0] === e ? (n = t[1], r = t[2], i = t[3]) : ({className: n, sx: i, ...r} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i);
|
|
118
|
+
let s;
|
|
119
|
+
t[4] === i ? s = t[5] : (s = a.props(p.set, i), t[4] = i, t[5] = s);
|
|
120
|
+
let l = s, u;
|
|
121
|
+
t[6] !== n || t[7] !== l.className ? (u = n ? `${l.className || ""} ${n}`.trim() : l.className, t[6] = n, t[7] = l.className, t[8] = u) : u = t[8];
|
|
122
|
+
let d;
|
|
123
|
+
return t[9] !== r || t[10] !== l || t[11] !== u ? (d = /* @__PURE__ */ o("fieldset", {
|
|
124
|
+
"data-slot": "field-set",
|
|
125
|
+
...l,
|
|
126
|
+
className: u,
|
|
127
|
+
...r
|
|
128
|
+
}), t[9] = r, t[10] = l, t[11] = u, t[12] = d) : d = t[12], d;
|
|
129
|
+
}
|
|
130
|
+
function h({ className: e, variant: t = "legend", sx: n, ...r }) {
|
|
131
|
+
let i = a.props(p.legend, t === "label" && p.legendLabel, n);
|
|
132
|
+
return /* @__PURE__ */ o("legend", {
|
|
133
|
+
"data-slot": "field-legend",
|
|
134
|
+
"data-variant": t,
|
|
135
|
+
...i,
|
|
136
|
+
className: e ? `${i.className || ""} ${e}`.trim() : i.className,
|
|
137
|
+
...r
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
function g(e) {
|
|
141
|
+
let t = c(13), n, r, i;
|
|
142
|
+
t[0] === e ? (n = t[1], r = t[2], i = t[3]) : ({className: n, sx: i, ...r} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i);
|
|
143
|
+
let s;
|
|
144
|
+
t[4] === i ? s = t[5] : (s = a.props(p.group, i), t[4] = i, t[5] = s);
|
|
145
|
+
let l = s, u;
|
|
146
|
+
t[6] !== n || t[7] !== l.className ? (u = n ? `${l.className || ""} ${n}`.trim() : l.className, t[6] = n, t[7] = l.className, t[8] = u) : u = t[8];
|
|
147
|
+
let d;
|
|
148
|
+
return t[9] !== r || t[10] !== l || t[11] !== u ? (d = /* @__PURE__ */ o("div", {
|
|
149
|
+
"data-slot": "field-group",
|
|
150
|
+
...l,
|
|
151
|
+
className: u,
|
|
152
|
+
...r
|
|
153
|
+
}), t[9] = r, t[10] = l, t[11] = u, t[12] = d) : d = t[12], d;
|
|
154
|
+
}
|
|
155
|
+
var _ = {
|
|
156
|
+
vertical: p.vertical,
|
|
157
|
+
horizontal: p.horizontal,
|
|
158
|
+
responsive: p.responsive
|
|
159
|
+
};
|
|
160
|
+
function v({ className: e, orientation: t = "vertical", sx: r, width: i, style: s, ...c }) {
|
|
161
|
+
let l = n(i), u = a.props(p.fieldBase, _[t], r);
|
|
162
|
+
return /* @__PURE__ */ o("div", {
|
|
163
|
+
role: "group",
|
|
164
|
+
"data-slot": "field",
|
|
165
|
+
"data-orientation": t,
|
|
166
|
+
"data-width": i,
|
|
167
|
+
...u,
|
|
168
|
+
style: {
|
|
169
|
+
...u.style,
|
|
170
|
+
...s,
|
|
171
|
+
...l ? { width: l } : {}
|
|
172
|
+
},
|
|
173
|
+
className: e ? `${u.className || ""} ${e}`.trim() : u.className,
|
|
174
|
+
...c
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
function y(e) {
|
|
178
|
+
let t = c(13), n, r, i;
|
|
179
|
+
t[0] === e ? (n = t[1], r = t[2], i = t[3]) : ({className: n, sx: i, ...r} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i);
|
|
180
|
+
let s;
|
|
181
|
+
t[4] === i ? s = t[5] : (s = a.props(p.content, i), t[4] = i, t[5] = s);
|
|
182
|
+
let l = s, u;
|
|
183
|
+
t[6] !== n || t[7] !== l.className ? (u = n ? `${l.className || ""} ${n}`.trim() : l.className, t[6] = n, t[7] = l.className, t[8] = u) : u = t[8];
|
|
184
|
+
let d;
|
|
185
|
+
return t[9] !== r || t[10] !== l || t[11] !== u ? (d = /* @__PURE__ */ o("div", {
|
|
186
|
+
"data-slot": "field-content",
|
|
187
|
+
...l,
|
|
188
|
+
className: u,
|
|
189
|
+
...r
|
|
190
|
+
}), t[9] = r, t[10] = l, t[11] = u, t[12] = d) : d = t[12], d;
|
|
191
|
+
}
|
|
192
|
+
function b(e) {
|
|
193
|
+
let t = c(13), n, i, s;
|
|
194
|
+
t[0] === e ? (n = t[1], i = t[2], s = t[3]) : ({className: n, sx: s, ...i} = e, t[0] = e, t[1] = n, t[2] = i, t[3] = s);
|
|
195
|
+
let l;
|
|
196
|
+
t[4] === s ? l = t[5] : (l = a.props(p.label, s), t[4] = s, t[5] = l);
|
|
197
|
+
let u = l, d;
|
|
198
|
+
t[6] !== n || t[7] !== u.className ? (d = n ? `${u.className || ""} ${n}`.trim() : u.className, t[6] = n, t[7] = u.className, t[8] = d) : d = t[8];
|
|
199
|
+
let f;
|
|
200
|
+
return t[9] !== i || t[10] !== u || t[11] !== d ? (f = /* @__PURE__ */ o(r, {
|
|
201
|
+
"data-slot": "field-label",
|
|
202
|
+
...u,
|
|
203
|
+
className: d,
|
|
204
|
+
...i
|
|
205
|
+
}), t[9] = i, t[10] = u, t[11] = d, t[12] = f) : f = t[12], f;
|
|
206
|
+
}
|
|
207
|
+
function x(e) {
|
|
208
|
+
let t = c(13), n, r, i;
|
|
209
|
+
t[0] === e ? (n = t[1], r = t[2], i = t[3]) : ({className: n, sx: i, ...r} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i);
|
|
210
|
+
let s;
|
|
211
|
+
t[4] === i ? s = t[5] : (s = a.props(p.title, i), t[4] = i, t[5] = s);
|
|
212
|
+
let l = s, u;
|
|
213
|
+
t[6] !== n || t[7] !== l.className ? (u = n ? `${l.className || ""} ${n}`.trim() : l.className, t[6] = n, t[7] = l.className, t[8] = u) : u = t[8];
|
|
214
|
+
let d;
|
|
215
|
+
return t[9] !== r || t[10] !== l || t[11] !== u ? (d = /* @__PURE__ */ o("div", {
|
|
216
|
+
"data-slot": "field-label",
|
|
217
|
+
...l,
|
|
218
|
+
className: u,
|
|
219
|
+
...r
|
|
220
|
+
}), t[9] = r, t[10] = l, t[11] = u, t[12] = d) : d = t[12], d;
|
|
221
|
+
}
|
|
222
|
+
function S(t) {
|
|
223
|
+
let n = c(13), r, i, s;
|
|
224
|
+
n[0] === t ? (r = n[1], i = n[2], s = n[3]) : ({className: r, sx: s, ...i} = t, n[0] = t, n[1] = r, n[2] = i, n[3] = s);
|
|
225
|
+
let l;
|
|
226
|
+
n[4] === s ? l = n[5] : (l = a.props(p.description, s), n[4] = s, n[5] = l);
|
|
227
|
+
let u = l, d;
|
|
228
|
+
n[6] !== r || n[7] !== u.className ? (d = r ? `${u.className || ""} ${r}`.trim() : u.className, n[6] = r, n[7] = u.className, n[8] = d) : d = n[8];
|
|
229
|
+
let f;
|
|
230
|
+
return n[9] !== i || n[10] !== u || n[11] !== d ? (f = /* @__PURE__ */ o(e, {
|
|
231
|
+
as: "p",
|
|
232
|
+
"data-slot": "field-description",
|
|
233
|
+
size: "xs",
|
|
234
|
+
type: "secondary",
|
|
235
|
+
...u,
|
|
236
|
+
className: d,
|
|
237
|
+
...i
|
|
238
|
+
}), n[9] = i, n[10] = u, n[11] = d, n[12] = f) : f = n[12], f;
|
|
239
|
+
}
|
|
240
|
+
function C(e) {
|
|
241
|
+
let n = c(19), r, l, u, d;
|
|
242
|
+
n[0] === e ? (r = n[1], l = n[2], u = n[3], d = n[4]) : ({children: r, className: l, sx: d, ...u} = e, n[0] = e, n[1] = r, n[2] = l, n[3] = u, n[4] = d);
|
|
243
|
+
let f;
|
|
244
|
+
n[5] === d ? f = n[6] : (f = a.props(p.separator, d), n[5] = d, n[6] = f);
|
|
245
|
+
let m = f, h = !!r, g;
|
|
246
|
+
n[7] !== l || n[8] !== m.className ? (g = l ? `${m.className || ""} ${l}`.trim() : m.className, n[7] = l, n[8] = m.className, n[9] = g) : g = n[9];
|
|
247
|
+
let _;
|
|
248
|
+
n[10] === Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ o(i, { sx: p.separatorLine }), n[10] = _) : _ = n[10];
|
|
249
|
+
let v;
|
|
250
|
+
n[11] === r ? v = n[12] : (v = r && /* @__PURE__ */ o(t, {
|
|
251
|
+
as: "span",
|
|
252
|
+
size: "xs",
|
|
253
|
+
type: "secondary",
|
|
254
|
+
className: "x1mlyrtw xw3nh4a x1n2onr6 xvueqy4 x1lliihq xeq5yr9 x97vtpp",
|
|
255
|
+
"data-slot": "field-separator-content",
|
|
256
|
+
children: r
|
|
257
|
+
}), n[11] = r, n[12] = v);
|
|
258
|
+
let y;
|
|
259
|
+
return n[13] !== u || n[14] !== m || n[15] !== h || n[16] !== g || n[17] !== v ? (y = /* @__PURE__ */ s("div", {
|
|
260
|
+
"data-slot": "field-separator",
|
|
261
|
+
"data-content": h,
|
|
262
|
+
...m,
|
|
263
|
+
className: g,
|
|
264
|
+
...u,
|
|
265
|
+
children: [_, v]
|
|
266
|
+
}), n[13] = u, n[14] = m, n[15] = h, n[16] = g, n[17] = v, n[18] = y) : y = n[18], y;
|
|
267
|
+
}
|
|
268
|
+
function w(e) {
|
|
269
|
+
let t = c(20), n, r, i, s, l;
|
|
270
|
+
t[0] === e ? (n = t[1], r = t[2], i = t[3], s = t[4], l = t[5]) : ({className: r, children: n, errors: i, sx: l, ...s} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = s, t[5] = l);
|
|
271
|
+
let u;
|
|
272
|
+
bb0: {
|
|
273
|
+
if (n) {
|
|
274
|
+
u = n;
|
|
275
|
+
break bb0;
|
|
276
|
+
}
|
|
277
|
+
if (!i?.length) {
|
|
278
|
+
u = null;
|
|
279
|
+
break bb0;
|
|
280
|
+
}
|
|
281
|
+
let e;
|
|
282
|
+
t[6] === i ? e = t[7] : (e = [...new Map(i.map(E)).values()], t[6] = i, t[7] = e);
|
|
283
|
+
let r = e;
|
|
284
|
+
if (r?.length === 1) {
|
|
285
|
+
u = r[0]?.message;
|
|
286
|
+
break bb0;
|
|
287
|
+
}
|
|
288
|
+
let a;
|
|
289
|
+
t[8] === r ? a = t[9] : (a = /* @__PURE__ */ o("ul", {
|
|
290
|
+
className: "xt3xpxm x78zum5 xtaz4m5 xdt5ytf xvh977a",
|
|
291
|
+
children: r.map(T)
|
|
292
|
+
}), t[8] = r, t[9] = a), u = a;
|
|
293
|
+
}
|
|
294
|
+
let d = u;
|
|
295
|
+
if (!d) return null;
|
|
296
|
+
let f;
|
|
297
|
+
t[10] === l ? f = t[11] : (f = a.props(p.error, l), t[10] = l, t[11] = f);
|
|
298
|
+
let m = f, h;
|
|
299
|
+
t[12] !== r || t[13] !== m.className ? (h = r ? `${m.className || ""} ${r}`.trim() : m.className, t[12] = r, t[13] = m.className, t[14] = h) : h = t[14];
|
|
300
|
+
let g;
|
|
301
|
+
return t[15] !== d || t[16] !== s || t[17] !== m || t[18] !== h ? (g = /* @__PURE__ */ o("div", {
|
|
302
|
+
role: "alert",
|
|
303
|
+
"data-slot": "field-error",
|
|
304
|
+
...m,
|
|
305
|
+
className: h,
|
|
306
|
+
...s,
|
|
307
|
+
children: d
|
|
308
|
+
}), t[15] = d, t[16] = s, t[17] = m, t[18] = h, t[19] = g) : g = t[19], g;
|
|
309
|
+
}
|
|
310
|
+
function T(e, t) {
|
|
311
|
+
return e?.message && /* @__PURE__ */ o("li", { children: e.message }, t);
|
|
312
|
+
}
|
|
313
|
+
function E(e) {
|
|
314
|
+
return [e?.message, e];
|
|
315
|
+
}
|
|
316
|
+
export { l as AstryxField, u as AstryxFieldLabel, d as AstryxFieldStatus, v as Field, y as FieldContent, S as FieldDescription, w as FieldError, g as FieldGroup, b as FieldLabel, h as FieldLegend, C as FieldSeparator, m as FieldSet, x as FieldTitle, f as InputClearButton };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("../_virtual/_rolldown/runtime.cjs");let t=require("react"),n=e.__toESM(t,1);t=e.__toESM(t);function r(e,t=1){if(e===0)return`0 B`;let n=1024,r=t<0?0:t,i=[`B`,`KB`,`MB`,`GB`,`TB`],a=Math.floor(Math.log(e)/Math.log(n)),o=Math.min(a,i.length-1);return`${parseFloat((e/n**o).toFixed(r))} ${i[o]}`}function i(e){let{endpoint:t,method:n=`POST`,fieldName:r=`file`,headers:i,extraBody:a,withCredentials:o=!1,timeout:s,responseParser:c}=e;return async(e,l={})=>{let u=async e=>new Promise(async(u,d)=>{let f=new XMLHttpRequest;if(l.signal){if(l.signal.aborted)return d(new DOMException(`Upload aborted`,`AbortError`));l.signal.addEventListener(`abort`,()=>{f.abort(),d(new DOMException(`Upload aborted`,`AbortError`))})}let p=typeof t==`function`?await t(e):t;if(f.open(n,p,!0),f.withCredentials=o,s&&(f.timeout=s),i){let t=typeof i==`function`?await i(e):i;for(let[e,n]of Object.entries(t))f.setRequestHeader(e,n)}f.upload.onprogress=t=>{if(t.lengthComputable&&l.onProgress){let n=Math.round(t.loaded/t.total*100);l.onProgress(e,n)}},f.onload=async()=>{if(f.status>=200&&f.status<300)try{let t=f.responseText;try{t=JSON.parse(f.responseText)}catch{}let n;if(c){let r=await c(t,e);n=typeof r==`string`?{key:e.name,name:e.name,size:e.size,type:e.type,url:r,serverData:t}:r}else{let r=typeof t==`object`&&t?t:{},i=typeof r.data==`object`&&r.data!==null?r.data:{},a=r.url||r.fileUrl||r.ufsUrl||i.url||i.fileUrl||(typeof t==`string`&&(t.startsWith(`http://`)||t.startsWith(`https://`))?t:``),o=r.key||r.id||i.key||e.name;n={key:String(o),name:e.name,size:e.size,type:e.type,url:a,serverData:t}}l.onProgress?.(e,100),l.onSuccess?.(e,n),u(n)}catch(t){let n=t instanceof Error?t:Error(`Failed to parse upload response`);l.onError?.(e,n),d(n)}else{let t=Error(`Upload failed with status ${f.status}: ${f.statusText||`Server Error`}`);l.onError?.(e,t),d(t)}},f.onerror=()=>{let t=Error(`Network error during file upload`);l.onError?.(e,t),d(t)},f.ontimeout=()=>{let t=Error(`File upload timed out`);l.onError?.(e,t),d(t)};let m=null;if(a){let t=typeof a==`function`?await a(e):a;if(t instanceof FormData)t.append(r,e),m=t;else{let n=new FormData;for(let[e,r]of Object.entries(t))r!=null&&n.append(e,String(r));n.append(r,e),m=n}}else{let t=new FormData;t.append(r,e),m=t}f.send(m)});return Promise.all(e.map(e=>u(e)))}}function a(e){let{uploadFiles:t,endpoint:n,headers:r,skipPolling:i}=e;return async(e,a={})=>{try{return(await t(n,{files:e,headers:r,skipPolling:i,onUploadProgress:({file:e,progress:t})=>{a.onProgress?.(e,t)}})).map((t,n)=>{let r=e[n]||e[0],i={key:String(t.key||r.name),name:String(t.name||r.name),size:Number(t.size||r.size),type:String(t.type||r.type),url:String(t.ufsUrl||t.url||``),serverData:t.serverData};return a.onSuccess?.(r,i),i})}catch(t){let n=t instanceof Error?t:Error(typeof t==`object`&&t&&`message`in t?String(t.message):`UploadThing upload failed`);for(let t of e)a.onError?.(t,n);throw n}}}function o(e){return async(t,n={})=>{let r=async t=>{let{uploadUrl:r,fileUrl:i,headers:a,method:o=`PUT`}=await e.getPresignedUrl(t);return new Promise((e,s)=>{let c=new XMLHttpRequest;if(n.signal){if(n.signal.aborted)return s(new DOMException(`Upload aborted`,`AbortError`));n.signal.addEventListener(`abort`,()=>{c.abort(),s(new DOMException(`Upload aborted`,`AbortError`))})}if(c.open(o,r,!0),a)for(let[e,t]of Object.entries(a))c.setRequestHeader(e,t);a&&`Content-Type`in a||c.setRequestHeader(`Content-Type`,t.type||`application/octet-stream`),c.upload.onprogress=e=>{if(e.lengthComputable&&n.onProgress){let r=Math.round(e.loaded/e.total*100);n.onProgress(t,r)}},c.onload=()=>{if(c.status>=200&&c.status<300){let a=i||r.split(`?`)[0],o={key:t.name,name:t.name,size:t.size,type:t.type,url:a};n.onProgress?.(t,100),n.onSuccess?.(t,o),e(o)}else{let e=Error(`S3 upload failed with status ${c.status}`);n.onError?.(t,e),s(e)}},c.onerror=()=>{let e=Error(`Network error during S3 direct upload`);n.onError?.(t,e),s(e)},c.send(t)})};return Promise.all(t.map(e=>r(e)))}}function s(e={}){let{uploadHandler:t,defaultUploadedFiles:r=[],onSuccess:i,onError:a}=e,[o,s]=n.useState(r),[c,l]=n.useState({}),[u,d]=n.useState(!1),[f,p]=n.useState(null),m=n.useRef(null),h=n.useCallback(()=>{m.current&&=(m.current.abort(),null),d(!1)},[]),g=n.useCallback(()=>{h(),s([]),l({}),p(null)},[h]);return{onUpload:n.useCallback(async(e,n)=>{let r=n||t;if(!r)throw Error(`No upload handler or configuration provided to useUploadFile.`);d(!0),p(null);let o=new AbortController;m.current=o;try{let t=await r(e,{signal:o.signal,onProgress:(e,t)=>{l(n=>({...n,[e.name]:t}))}});return s(e=>[...e,...t]),i?.(t),t}catch(e){let t=e instanceof Error?e:Error(`An unexpected upload error occurred`);throw p(t),a?.(t),t}finally{d(!1),m.current=null}},[t,i,a]),uploadedFiles:o,progresses:c,isUploading:u,error:f,reset:g,abort:h,setUploadedFiles:s}}exports.createApiUploadHandler=i,exports.createS3PresignedUploadHandler=o,exports.createUploadThingUploadHandler=a,exports.formatFileSize=r,exports.useUploadFile=s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";const e=require("../_virtual/_rolldown/runtime.cjs"),t=require("../Icons/Icons.cjs"),n=require("../Typography/Text.cjs"),r=require("./file-upload-adapters.cjs");let i=require("@stylexjs/stylex");i=e.__toESM(i,1);let a=require("react/jsx-runtime"),o=require("react"),s=e.__toESM(o,1);o=e.__toESM(o);let c=require("react/compiler-runtime"),l=require("@radix-ui/react-slot");var u=`FileUpload`,d=`FileUploadDropzone`,f=`FileUploadTrigger`,p=`FileUploadList`,m=`FileUploadItem`,h=`FileUploadItemPreview`,g=`FileUploadItemMetadata`,_=`FileUploadItemProgress`,v=`FileUploadItemDelete`,y={root:{kVAEAm:`x1n2onr6`,k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kOIVth:`x8233eu`,kzqmXN:`xh8yej3`,$$css:!0},dropzone:{kVAEAm:`x1n2onr6`,k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kOIVth:`x13z6uf9`,kaIpWk:`x1ez7q3a`,kMzoRj:`xdh2fpr`,ksu8eU:`xbsl7fq`,kVAM5u:`xb30jbz`,kWkggS:`x1mlyrtw`,kmVPX3:`xis3749`,kkrTdU:`x1ypdohk`,kfSwDN:`x87ps6o`,k1ekBW:`x11vqxbs`,kIyJzY:`x13dflua`,kI3sdo:`x1a2a7pz`,kGzVvX:`x9p52ec`,kaVNsj:`x14aqmuz`,kOJeXU:`x156qtes`,kEtg5x:`xik21o4`,$$css:!0},dropzoneDragging:{kWkggS:`x1jgryid`,kVAM5u:`x1khvrlk`,kGVxlE:`xf0oo4t`,$$css:!0},dropzoneInvalid:{kVAM5u:`x1uwefn5`,kWkggS:`x6lw6w7`,kGVxlE:`x1r3qo2b`,$$css:!0},dropzoneDisabled:{kfzvcC:`x47corl`,kSiTet:`xbyyjgo`,kkrTdU:`x1h6gzvc`,$$css:!0},avatarDropzone:{kVAEAm:`x1n2onr6`,kzqmXN:`x1eyvef`,kZKoxP:`xw76nk8`,kaIpWk:`x9psvww`,kMzoRj:`xdh2fpr`,ksu8eU:`xbsl7fq`,kVAM5u:`xb30jbz`,kWkggS:`x1mlyrtw`,kVQacm:`xb3r6kr`,k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kkrTdU:`x1ypdohk`,k1ekBW:`xq90yva`,kIyJzY:`x13dflua`,kmVPX3:`x1717udv`,kaVNsj:`x14aqmuz`,$$css:!0},avatarItem:{kzqmXN:`xh8yej3`,kZKoxP:`x5yr21d`,kmVPX3:`x1717udv`,kMzoRj:`xc342km`,$$css:!0},avatarPreview:{kzqmXN:`xh8yej3`,kZKoxP:`x5yr21d`,kaIpWk:`x9psvww`,$$css:!0},list:{k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kOIVth:`x13z6uf9`,kzqmXN:`xh8yej3`,$$css:!0},listHorizontal:{kXwgrk:`x1q0g3np`,kwnvtZ:`x1a02dak`,$$css:!0},item:{kVAEAm:`x1n2onr6`,k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kOIVth:`x8233eu`,kaIpWk:`xrijj7p`,kMzoRj:`xmkeg23`,ksu8eU:`x1y0btm7`,kVAM5u:`xb30jbz`,kWkggS:`x1rexohn`,kMwMTN:`xk0jn7w`,kmVPX3:`x2nx7ib`,kVQacm:`xb3r6kr`,k1ekBW:`xq90yva`,kIyJzY:`xx6bhzk`,$$css:!0},itemPreview:{kVAEAm:`x1n2onr6`,k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kzqmXN:`xvm51jw`,kZKoxP:`xwaiz5r`,k7Eaqz:`xj9j1fp`,kaIpWk:`xqfady0`,kWkggS:`x1qry0bl`,kMwMTN:`xw3nh4a`,kVQacm:`xb3r6kr`,$$css:!0},itemMetadata:{k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kUk6DE:`x98rzlu`,k7Eaqz:`xeuugli`,kOIVth:`x1enigpx`,$$css:!0},itemName:{kGuDYH:`xkpwil5`,k63SB2:`xk50ysn`,kMwMTN:`x84br7x`,kVQacm:`xb3r6kr`,kg5iWk:`xlyipyv`,khDVqt:`xuxw1ft`,$$css:!0},itemSize:{kGuDYH:`xboafo0`,kMwMTN:`xw3nh4a`,$$css:!0},itemError:{kGuDYH:`xboafo0`,kMwMTN:`xuuroe4`,$$css:!0},itemDeleteBtn:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kzqmXN:`xh29eag`,kZKoxP:`xb8l8e1`,kaIpWk:`xqfady0`,kMzoRj:`xc342km`,kWkggS:`xjbqb8w`,kMwMTN:`xw3nh4a`,kkrTdU:`x1ypdohk`,kmVPX3:`x1717udv`,k1ekBW:`xs2xxs2`,kIyJzY:`xx6bhzk`,kGzVvX:`x9p52ec`,kDPRdz:`x1mqvv6a`,$$css:!0},progressRoot:{kVAEAm:`x1n2onr6`,kzqmXN:`xh8yej3`,kZKoxP:`xqu0tyb`,kaIpWk:`x9psvww`,kWkggS:`x1qry0bl`,kVQacm:`xb3r6kr`,$$css:!0},progressBottom:{kVAEAm:`x10l6tqk`,krVfgx:`x1ey2m1c`,kbCHJM:`xu96u03`,kCIrl2:`x3m8u43`,kaIpWk:`x2u8bby`,kZKoxP:`xuoj239`,$$css:!0},progressFill:{kVAEAm:`x10l6tqk`,kpwlN0:`x10a8y8t`,kZKoxP:`x5yr21d`,kaIpWk:`x2u8bby`,kWkggS:`xa0uij2`,kfzvcC:`x47corl`,$$css:!0},dropzoneTitle:{kGuDYH:`xkpwil5`,k63SB2:`xk50ysn`,kMwMTN:`x84br7x`,kogj98:`x1ghz6dp`,$$css:!0},dropzoneSubtitle:{kGuDYH:`xboafo0`,kMwMTN:`xw3nh4a`,kogj98:`x1ghz6dp`,k9WMMc:`x2b8uid`,$$css:!0},whiteText:{kMwMTN:`xstwp1q`,$$css:!0},compactDropzone:{kmVPX3:`x19btat0`,kXwgrk:`x1q0g3np`,kOIVth:`x8233eu`,$$css:!0}};function b(e,t,n,r,i){let a={files:t,dragOver:!1,invalid:r};function o(e,r){switch(r.type){case`ADD_FILES`:for(let e of r.files)t.set(e,{file:e,progress:0,status:`idle`});return i&&i(Array.from(t.values()).map(e=>e.file)),{...e,files:t};case`SET_FILES`:{let n=new Set(r.files);for(let e of t.keys())n.has(e)||t.delete(e);for(let e of r.files)t.get(e)||t.set(e,{file:e,progress:0,status:`idle`});return{...e,files:t}}case`SET_PROGRESS`:{let n=t.get(r.file);return n&&t.set(r.file,{...n,progress:r.progress,status:`uploading`}),{...e,files:t}}case`SET_SUCCESS`:{let n=t.get(r.file);return n&&t.set(r.file,{...n,progress:100,status:`success`}),{...e,files:t}}case`SET_ERROR`:{let n=t.get(r.file);return n&&t.set(r.file,{...n,error:r.error,status:`error`}),{...e,files:t}}case`REMOVE_FILE`:if(n){let e=n.get(r.file);e&&(URL.revokeObjectURL(e),n.delete(r.file))}return t.delete(r.file),i&&i(Array.from(t.values()).map(e=>e.file)),{...e,files:t};case`SET_DRAG_OVER`:return{...e,dragOver:r.dragOver};case`SET_INVALID`:return{...e,invalid:r.invalid};case`CLEAR`:for(let e of t.keys())if(n){let t=n.get(e);t&&(URL.revokeObjectURL(t),n.delete(e))}return t.clear(),i&&i([]),{...e,files:t};default:return e}}function s(){e.forEach(e=>e())}return{getState:()=>a,dispatch:e=>{a=o(a,e),s()},subscribe:t=>(e.add(t),()=>{e.delete(t)})}}var x=s.createContext(null);function S(e){let t=(0,c.c)(3),n=s.useContext(x);if(!n)throw Error(`useStore must be used within FileUploadRoot`);let r=s.useRef(null),i=s.useRef(void 0),a;t[0]!==e||t[1]!==n?(a=()=>{let t=n.getState();if(t===r.current&&i.current!==void 0)return i.current;let a=e(t);return r.current=t,i.current=a,a},t[0]=e,t[1]=n,t[2]=a):a=t[2];let o=a;return s.useSyncExternalStore(n.subscribe,o,o)}function C(e){return S(e)}var w=s.createContext(null);function T(e){let t=s.useContext(w);if(!t)throw Error(`${e} must be within ${u}`);return t}function E(e){let{asChild:t,value:n,defaultValue:o,onValueChange:c,onAccept:u,onFileReject:d,onUpload:f,accept:p,maxFiles:m=0,maxSize:h=1/0,minSize:g=0,multiple:_=!1,disabled:v=!1,name:S,required:C,invalid:T=!1,label:E,dir:D=`ltr`,className:O,sx:k,children:A,...j}=e,M=s.useId(),N=s.useId(),P=s.useId(),F=s.useId(),I=s.useRef(null),L=s.useRef(new Set).current,R=s.useRef(new WeakMap).current,z=s.useMemo(()=>{let e=new Map,t=n??o??[];for(let n of t)e.set(n,{file:n,progress:0,status:`idle`});return e},[]),B=s.useMemo(()=>b(L,z,R,T,c),[]);s.useEffect(()=>{n!==void 0&&B.dispatch({type:`SET_FILES`,files:n})},[n,B]),s.useEffect(()=>{B.dispatch({type:`SET_INVALID`,invalid:T})},[T,B]);let V=s.useCallback(e=>{if(p){let t=p.split(`,`).map(e=>e.trim().toLowerCase()),n=e.type.toLowerCase(),r=e.name.toLowerCase();if(!t.some(e=>{if(e.startsWith(`.`))return r.endsWith(e);if(e.endsWith(`/*`)){let t=e.slice(0,-2);return n.startsWith(t)}return n===e}))return`File "${e.name}" is not an accepted format (${p})`}return e.size>h?`File "${e.name}" exceeds maximum allowed size of ${r.formatFileSize(h)}`:e.size<g?`File "${e.name}" is smaller than minimum required size of ${r.formatFileSize(g)}`:null},[p,h,g]),H=s.useCallback(async e=>{if(v)return;let t=Array.from(B.getState().files.keys()),n=_?m>0?m:1/0:1,r=n-t.length;if(r<=0&&n===1)B.dispatch({type:`CLEAR`});else if(r<=0){d?.(e[0],`Maximum file limit (${m}) reached`);return}let i=_?e.slice(0,r<=0?1:r):[e[0]],a=[];for(let e of i){let t=V(e);t?d?.(e,t):a.push(e)}if(a.length>0&&(B.dispatch({type:`ADD_FILES`,files:a}),u?.(a),f)){for(let e of a)B.dispatch({type:`SET_PROGRESS`,file:e,progress:0});try{await f(a,{onProgress:(e,t)=>{B.dispatch({type:`SET_PROGRESS`,file:e,progress:t})},onSuccess:e=>{B.dispatch({type:`SET_SUCCESS`,file:e})},onError:(e,t)=>{B.dispatch({type:`SET_ERROR`,file:e,error:t.message})}})}catch{}}},[v,m,_,u,d,f,B,V]),U=s.useCallback(e=>{let t=e.target.files?Array.from(e.target.files):[];t.length>0&&H(t),e.target.value=``},[H]),W=s.useMemo(()=>({dropzoneId:M,inputId:N,listId:P,labelId:F,dir:D,disabled:v,inputRef:I,urlCache:R,processFiles:H}),[M,N,P,F,D,v,R,H]),G=t?l.Slot:`div`,K=i.props(y.root,k);return(0,a.jsx)(x.Provider,{value:B,children:(0,a.jsx)(w.Provider,{value:W,children:(0,a.jsxs)(G,{"data-disabled":v?``:void 0,"data-slot":`file-upload`,dir:D,...j,...K,className:O?`${K.className||``} ${O}`.trim():K.className,children:[A,(0,a.jsx)(`input`,{type:`file`,id:N,"aria-labelledby":F,"aria-describedby":M,ref:I,tabIndex:-1,accept:p,name:S,className:`x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr xzpqnlu xuxw1ft xc342km`,disabled:v,multiple:_,required:C,onChange:U}),(0,a.jsx)(`span`,{id:F,className:`x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr xzpqnlu xuxw1ft xc342km`,children:E??`File upload`})]})})})}function D(e){let{asChild:t,className:n,sx:r,onClick:o,onDragOver:c,onDragEnter:u,onDragLeave:f,onDrop:p,onKeyDown:m,children:h,...g}=e,_=T(d),v=s.useContext(x),b=S(e=>e.dragOver),C=S(e=>e.invalid),w=s.useCallback(e=>{if(o?.(e),e.defaultPrevented)return;let t=e.target;t instanceof HTMLElement&&t.closest(`[data-slot="file-upload-trigger"]`)||_.inputRef.current?.click()},[_.inputRef,o]),E=s.useCallback(e=>{c?.(e),!e.defaultPrevented&&(e.preventDefault(),v?.dispatch({type:`SET_DRAG_OVER`,dragOver:!0}))},[v,c]),D=s.useCallback(e=>{u?.(e),!e.defaultPrevented&&(e.preventDefault(),v?.dispatch({type:`SET_DRAG_OVER`,dragOver:!0}))},[v,u]),O=s.useCallback(e=>{if(f?.(e),e.defaultPrevented)return;let t=e.relatedTarget;t&&t instanceof Node&&e.currentTarget.contains(t)||(e.preventDefault(),v?.dispatch({type:`SET_DRAG_OVER`,dragOver:!1}))},[v,f]),k=s.useCallback(e=>{if(p?.(e),e.defaultPrevented)return;e.preventDefault(),v?.dispatch({type:`SET_DRAG_OVER`,dragOver:!1});let t=e.dataTransfer?.files?Array.from(e.dataTransfer.files):[];t.length!==0&&_.processFiles(t)},[v,_.processFiles,p]),A=s.useCallback(e=>{m?.(e),e.defaultPrevented||e.key!==`Enter`&&e.key!==` `||(e.preventDefault(),_.inputRef.current?.click())},[_.inputRef,m]),j=t?l.Slot:`div`,M=i.props(y.dropzone,b&&y.dropzoneDragging,C&&y.dropzoneInvalid,_.disabled&&y.dropzoneDisabled,r);return(0,a.jsx)(j,{role:`region`,id:_.dropzoneId,"aria-controls":`${_.inputId} ${_.listId}`,"aria-disabled":_.disabled,"aria-invalid":C,"data-disabled":_.disabled?``:void 0,"data-dragging":b?``:void 0,"data-invalid":C?``:void 0,"data-slot":`file-upload-dropzone`,tabIndex:_.disabled?void 0:0,...g,...M,className:n?`${M.className||``} ${n}`.trim():M.className,onClick:w,onDragEnter:D,onDragLeave:O,onDragOver:E,onDrop:k,onKeyDown:A,children:h})}function O(e){let t=(0,c.c)(23),n,r,o,s,u;t[0]===e?(n=t[1],r=t[2],o=t[3],s=t[4],u=t[5]):({asChild:n,onClick:o,className:r,sx:s,...u}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=s,t[5]=u);let d=T(f),p;t[6]!==d.inputRef||t[7]!==o?(p=e=>{o?.(e),!e.defaultPrevented&&d.inputRef.current?.click()},t[6]=d.inputRef,t[7]=o,t[8]=p):p=t[8];let m=p,h=n?l.Slot:`button`,g;t[9]===s?g=t[10]:(g=i.props(s),t[9]=s,t[10]=g);let _=g,v=d.disabled?``:void 0,y;t[11]!==r||t[12]!==_.className?(y=r?`${_.className||``} ${r}`.trim():_.className,t[11]=r,t[12]=_.className,t[13]=y):y=t[13];let b;return t[14]!==h||t[15]!==d.disabled||t[16]!==d.inputId||t[17]!==m||t[18]!==_||t[19]!==v||t[20]!==y||t[21]!==u?(b=(0,a.jsx)(h,{type:`button`,"aria-controls":d.inputId,"data-disabled":v,"data-slot":`file-upload-trigger`,disabled:d.disabled,...u,..._,className:y,onClick:m}),t[14]=h,t[15]=d.disabled,t[16]=d.inputId,t[17]=m,t[18]=_,t[19]=v,t[20]=y,t[21]=u,t[22]=b):b=t[22],b}function k(e){let{asChild:t,orientation:n=`vertical`,className:r,sx:o,children:s,...c}=e,u=T(p),d=t?l.Slot:`div`,f=i.props(y.list,n===`horizontal`&&y.listHorizontal,o);return(0,a.jsx)(d,{id:u.listId,role:`list`,"data-slot":`file-upload-list`,...c,...f,className:r?`${f.className||``} ${r}`.trim():f.className,children:s})}var A=s.createContext(null);function j(e){let t=s.useContext(A);if(!t)throw Error(`${e} must be within ${m}`);return t}function M(e){let t=(0,c.c)(31),n,r,o,u,d,f;t[0]===e?(n=t[1],r=t[2],o=t[3],u=t[4],d=t[5],f=t[6]):({asChild:n,value:f,className:o,sx:d,children:r,...u}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=u,t[5]=d,t[6]=f),T(m);let p=S(N),h;t[7]!==p||t[8]!==f?(h=p.get(f),t[7]=p,t[8]=f,t[9]=h):h=t[9];let g=h,_=s.useId(),v=s.useId(),b=s.useId(),x;t[10]!==g||t[11]!==v||t[12]!==b||t[13]!==_||t[14]!==f?(x={file:f,fileState:g,statusId:_,nameId:v,sizeId:b},t[10]=g,t[11]=v,t[12]=b,t[13]=_,t[14]=f,t[15]=x):x=t[15];let C=x,w=n?l.Slot:`div`,E;t[16]===d?E=t[17]:(E=i.props(y.item,d),t[16]=d,t[17]=E);let D=E,O=g?.status||`idle`,k;t[18]!==o||t[19]!==D.className?(k=o?`${D.className||``} ${o}`.trim():D.className,t[18]=o,t[19]=D.className,t[20]=k):k=t[20];let j;t[21]!==w||t[22]!==r||t[23]!==u||t[24]!==D||t[25]!==O||t[26]!==k?(j=(0,a.jsx)(w,{role:`listitem`,"data-slot":`file-upload-item`,"data-status":O,...u,...D,className:k,children:r}),t[21]=w,t[22]=r,t[23]=u,t[24]=D,t[25]=O,t[26]=k,t[27]=j):j=t[27];let M;return t[28]!==C||t[29]!==j?(M=(0,a.jsx)(A.Provider,{value:C,children:j}),t[28]=C,t[29]=j,t[30]=M):M=t[30],M}function N(e){return e.files}function P(e){let n=(0,c.c)(31),r,o,u,d,f,p;n[0]===e?(r=n[1],o=n[2],u=n[3],d=n[4],f=n[5],p=n[6]):({asChild:r,render:f,className:u,sx:p,children:o,...d}=e,n[0]=e,n[1]=r,n[2]=o,n[3]=u,n[4]=d,n[5]=f,n[6]=p);let m=T(h),g=j(h).file,[_,v]=s.useState(null),b,x;n[7]!==m.urlCache||n[8]!==g?(b=()=>{let e=g;if(e.uploadedUrl&&g.type.startsWith(`image/`))v(e.uploadedUrl);else if(g.type.startsWith(`image/`)&&typeof URL<`u`&&URL.createObjectURL){let e=m.urlCache.get(g);e||(e=URL.createObjectURL(g),m.urlCache.set(g,e)),v(e)}},x=[g,m.urlCache],n[7]=m.urlCache,n[8]=g,n[9]=b,n[10]=x):(b=n[9],x=n[10]),s.useEffect(b,x);let S;n[11]!==g.name||n[12]!==g.type?(S=()=>{let e=g.type,n=g.name.toLowerCase();return e.startsWith(`video/`)?(0,a.jsx)(t.Icons.FileVideoIcon,{size:20}):e.startsWith(`audio/`)?(0,a.jsx)(t.Icons.FileAudioIcon,{size:20}):n.endsWith(`.zip`)||n.endsWith(`.tar`)||n.endsWith(`.gz`)||n.endsWith(`.rar`)?(0,a.jsx)(t.Icons.FileArchiveIcon,{size:20}):n.endsWith(`.js`)||n.endsWith(`.ts`)||n.endsWith(`.tsx`)||n.endsWith(`.html`)||n.endsWith(`.css`)||n.endsWith(`.json`)?(0,a.jsx)(t.Icons.FileCodeIcon,{size:20}):e.startsWith(`text/`)||n.endsWith(`.pdf`)||n.endsWith(`.doc`)||n.endsWith(`.docx`)?(0,a.jsx)(t.Icons.FileTextIcon,{size:20}):(0,a.jsx)(t.Icons.FileIcon,{size:20})},n[11]=g.name,n[12]=g.type,n[13]=S):S=n[13];let C=S,w=r?l.Slot:`div`,E;n[14]===p?E=n[15]:(E=i.props(y.itemPreview,p),n[14]=p,n[15]=E);let D=E,O;n[16]!==u||n[17]!==D.className?(O=u?`${D.className||``} ${u}`.trim():D.className,n[16]=u,n[17]=D.className,n[18]=O):O=n[18];let k;n[19]!==o||n[20]!==C||n[21]!==g||n[22]!==_||n[23]!==f?(k=f?f(g,C):_?(0,a.jsx)(`img`,{src:_,alt:g.name,className:`xh8yej3 x5yr21d xl1xv1r`}):o||C(),n[19]=o,n[20]=C,n[21]=g,n[22]=_,n[23]=f,n[24]=k):k=n[24];let A;return n[25]!==w||n[26]!==d||n[27]!==D||n[28]!==O||n[29]!==k?(A=(0,a.jsx)(w,{"data-slot":`file-upload-item-preview`,...d,...D,className:O,children:k}),n[25]=w,n[26]=d,n[27]=D,n[28]=O,n[29]=k,n[30]=A):A=n[30],A}function F(e){let t=(0,c.c)(23),o,s,u,d,f;t[0]===e?(o=t[1],s=t[2],u=t[3],d=t[4],f=t[5]):({asChild:o,className:u,sx:f,children:s,...d}=e,t[0]=e,t[1]=o,t[2]=s,t[3]=u,t[4]=d,t[5]=f);let p=j(g),m=p.file,h=p.fileState,_=o?l.Slot:`div`,v;t[6]===f?v=t[7]:(v=i.props(y.itemMetadata,f),t[6]=f,t[7]=v);let b=v,x;t[8]!==u||t[9]!==b.className?(x=u?`${b.className||``} ${u}`.trim():b.className,t[8]=u,t[9]=b.className,t[10]=x):x=t[10];let S;t[11]!==s||t[12]!==m||t[13]!==h||t[14]!==p.nameId||t[15]!==p.sizeId?(S=s||(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.Text,{id:p.nameId,size:`sm`,weight:`medium`,ellipsis:!0,title:m.name,sx:y.itemName,children:m.name}),h?.error?(0,a.jsx)(n.Text,{size:`xs`,type:`danger`,sx:y.itemError,children:h.error}):(0,a.jsx)(n.Text,{id:p.sizeId,size:`xs`,type:`muted`,sx:y.itemSize,children:r.formatFileSize(m.size)})]}),t[11]=s,t[12]=m,t[13]=h,t[14]=p.nameId,t[15]=p.sizeId,t[16]=S):S=t[16];let C;return t[17]!==_||t[18]!==d||t[19]!==b||t[20]!==x||t[21]!==S?(C=(0,a.jsx)(_,{"data-slot":`file-upload-item-metadata`,...d,...b,className:x,children:S}),t[17]=_,t[18]=d,t[19]=b,t[20]=x,t[21]=S,t[22]=C):C=t[22],C}function I(e){let{asChild:t,variant:n=`linear`,className:r,sx:o,...s}=e,c=j(_),u=c.fileState?.progress??0;if(c.fileState?.status!==`uploading`&&n===`fill`)return null;let d=t?l.Slot:`div`,f=i.props(n===`fill`?y.progressFill:n===`bottom`?[y.progressRoot,y.progressBottom]:y.progressRoot,o);return(0,a.jsx)(d,{role:`progressbar`,"aria-valuenow":u,"aria-valuemin":0,"aria-valuemax":100,"data-slot":`file-upload-item-progress`,...s,...f,className:r?`${f.className||``} ${r}`.trim():f.className,children:n!==`fill`&&(0,a.jsx)(`div`,{className:`x5yr21d x1j7ufkg x9psvww xxrbq2n x1d8287x xz4gly6`,style:{width:`${Math.min(Math.max(u,0),100)}%`}})})}function L(e){let n=(0,c.c)(26),r,o,u,d,f,p;n[0]===e?(r=n[1],o=n[2],u=n[3],d=n[4],f=n[5],p=n[6]):({asChild:r,onClick:f,className:u,sx:p,children:o,...d}=e,n[0]=e,n[1]=r,n[2]=o,n[3]=u,n[4]=d,n[5]=f,n[6]=p);let m=s.useContext(x),h=j(v),g;n[7]!==h.file||n[8]!==f||n[9]!==m?(g=e=>{f?.(e),!e.defaultPrevented&&m?.dispatch({type:`REMOVE_FILE`,file:h.file})},n[7]=h.file,n[8]=f,n[9]=m,n[10]=g):g=n[10];let _=g,b=r?l.Slot:`button`,S;n[11]===p?S=n[12]:(S=i.props(y.itemDeleteBtn,p),n[11]=p,n[12]=S);let C=S,w=`Remove ${h.file.name}`,T;n[13]!==u||n[14]!==C.className?(T=u?`${C.className||``} ${u}`.trim():C.className,n[13]=u,n[14]=C.className,n[15]=T):T=n[15];let E;n[16]===o?E=n[17]:(E=o||(0,a.jsx)(t.Icons.X,{size:15}),n[16]=o,n[17]=E);let D;return n[18]!==b||n[19]!==d||n[20]!==_||n[21]!==C||n[22]!==w||n[23]!==T||n[24]!==E?(D=(0,a.jsx)(b,{type:`button`,"data-slot":`file-upload-item-delete`,"aria-label":w,...d,...C,className:T,onClick:_,children:E}),n[18]=b,n[19]=d,n[20]=_,n[21]=C,n[22]=w,n[23]=T,n[24]=E,n[25]=D):D=n[25],D}function R(e){let t=(0,c.c)(20),n,r,o,u,d;t[0]===e?(n=t[1],r=t[2],o=t[3],u=t[4],d=t[5]):({asChild:n,onClick:u,className:r,sx:d,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=u,t[5]=d);let f=s.useContext(x),p;t[6]!==u||t[7]!==f?(p=e=>{u?.(e),!e.defaultPrevented&&f?.dispatch({type:`CLEAR`})},t[6]=u,t[7]=f,t[8]=p):p=t[8];let m=p,h=n?l.Slot:`button`,g;t[9]===d?g=t[10]:(g=i.props(d),t[9]=d,t[10]=g);let _=g,v;t[11]!==r||t[12]!==_.className?(v=r?`${_.className||``} ${r}`.trim():_.className,t[11]=r,t[12]=_.className,t[13]=v):v=t[13];let y;return t[14]!==h||t[15]!==o||t[16]!==m||t[17]!==_||t[18]!==v?(y=(0,a.jsx)(h,{type:`button`,"data-slot":`file-upload-clear`,...o,..._,className:v,onClick:m}),t[14]=h,t[15]=o,t[16]=m,t[17]=_,t[18]=v,t[19]=y):y=t[19],y}function z({variant:e=`default`,dropzoneTitle:i,dropzoneSubtitle:o,icon:c,uploadHandler:l,showFileList:u=!0,showProgress:d=!0,showPreview:f=!0,showClear:p=!1,onUpload:m,maxFiles:h=1,maxSize:g=10485760,accept:_=`image/*`,value:v,onValueChange:b,sx:x,className:S,...C}){let[w,T]=s.useState(v||[]),A=v===void 0?w:v,j=e=>{T(e),b?.(e)},N=s.useCallback(async(e,t)=>{if(m)return m(e,t);l&&await l(e,{onProgress:t.onProgress,onSuccess:e=>t.onSuccess(e),onError:(e,n)=>t.onError(e,n)})},[m,l]);if(e===`avatar`){let e=A[0];return(0,a.jsx)(E,{value:A,onValueChange:j,maxFiles:1,maxSize:g,accept:_,onUpload:N,sx:x,className:S,...C,children:(0,a.jsx)(D,{sx:y.avatarDropzone,children:e?(0,a.jsxs)(M,{value:e,sx:y.avatarItem,children:[(0,a.jsx)(P,{sx:y.avatarPreview,render:e=>{let t=URL.createObjectURL(e);return(0,a.jsx)(`img`,{src:t,alt:e.name,className:`xh8yej3 x5yr21d xl1xv1r`})}}),(0,a.jsxs)(`div`,{className:`x10l6tqk x10a8y8t x78zum5 xdt5ytf x6s0dn4 xl56j7k xvh977a xa44r0r xstwp1q xg01cxk x19991ni x13dflua x1o7uuvo`,children:[(0,a.jsx)(t.Icons.Camera,{size:22}),(0,a.jsx)(n.Text,{size:`xs`,weight:`semibold`,sx:y.whiteText,children:`Change`})]}),d&&(0,a.jsx)(I,{variant:`fill`})]}):(0,a.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,alignItems:`center`,gap:`0.25rem`},children:[(0,a.jsx)(t.Icons.Camera,{size:28}),(0,a.jsx)(n.Text,{size:`xs`,type:`muted`,weight:`medium`,children:`Upload photo`})]})})})}if(e===`compact`)return(0,a.jsxs)(E,{value:A,onValueChange:j,maxFiles:h,maxSize:g,accept:_,multiple:h>1,onUpload:N,sx:x,className:S,...C,children:[(0,a.jsxs)(D,{sx:y.compactDropzone,children:[(0,a.jsx)(`div`,{className:`x78zum5 x6s0dn4 xl56j7k xvm51jw xwaiz5r x9psvww xmkeg23 x1y0btm7 xb30jbz x1rexohn xw3nh4a`,children:c||(0,a.jsx)(t.Icons.CloudUpload,{size:18})}),(0,a.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,flex:1,minWidth:0},children:[(0,a.jsx)(n.Text,{size:`sm`,weight:`medium`,children:i||`Choose or drop files to upload`}),(0,a.jsx)(n.Text,{size:`xs`,type:`muted`,children:o||`${h>1?`Up to ${h} files`:`1 file max`} ${g?`(Max ${r.formatFileSize(g)})`:``}`})]}),(0,a.jsx)(O,{asChild:!0,children:(0,a.jsx)(`button`,{type:`button`,style:{fontSize:`0.75rem`,padding:`0.375rem 0.75rem`,borderRadius:`0.375rem`,border:`1px solid var(--border)`,backgroundColor:`var(--background)`,color:`var(--foreground)`,cursor:`pointer`,fontWeight:500},children:`Browse`})})]}),u&&A.length>0&&(0,a.jsx)(k,{orientation:`horizontal`,children:A.map((e,t)=>(0,a.jsxs)(M,{value:e,children:[f&&(0,a.jsx)(P,{}),(0,a.jsx)(F,{}),d&&(0,a.jsx)(I,{variant:`bottom`}),(0,a.jsx)(L,{})]},`${e.name}-${t}`))})]});let z=`${h>1?`Up to ${h} files`:`1 file max`} ${g?`(Max ${r.formatFileSize(g)})`:``}`;return(0,a.jsxs)(E,{value:A,onValueChange:j,maxFiles:h,maxSize:g,accept:_,multiple:h>1,onUpload:N,sx:x,className:S,...C,children:[(0,a.jsxs)(D,{children:[(0,a.jsx)(`div`,{className:`x78zum5 x6s0dn4 xl56j7k xvm51jw xwaiz5r x9psvww xmkeg23 x1y0btm7 xb30jbz x1rexohn xw3nh4a`,children:c||(0,a.jsx)(t.Icons.CloudUpload,{size:20})}),(0,a.jsx)(n.Text,{size:`md`,weight:`medium`,sx:y.dropzoneTitle,children:i||`Drag & drop files here, or click to browse`}),(0,a.jsx)(n.Text,{size:`xs`,type:`muted`,sx:y.dropzoneSubtitle,children:o||z})]}),p&&A.length>0&&(0,a.jsx)(`div`,{className:`x78zum5 x13a6bvl xh8yej3`,children:(0,a.jsx)(R,{asChild:!0,children:(0,a.jsxs)(`button`,{type:`button`,className:`x3nfvp2 x6s0dn4 xvh977a xboafo0 xw3nh4a xjbqb8w xc342km x1ypdohk x48ff29 xqfady0 x9p52ec x1mqvv6a`,children:[(0,a.jsx)(t.Icons.Trash2,{size:13}),`Clear all`]})})}),u&&A.length>0&&(0,a.jsx)(k,{children:A.map((e,t)=>(0,a.jsxs)(M,{value:e,children:[f&&(0,a.jsx)(P,{render:(e,t)=>{if(e.type.startsWith(`image/`)){let t=URL.createObjectURL(e);return(0,a.jsx)(`img`,{src:t,alt:e.name,className:`xh8yej3 x5yr21d xl1xv1r`})}return t()}}),(0,a.jsx)(F,{}),d&&(0,a.jsx)(I,{variant:`bottom`}),(0,a.jsx)(L,{})]},`${e.name}-${t}`))})]})}exports.FileUpload=E,exports.FileUploadClear=R,exports.FileUploadDropzone=D,exports.FileUploadItem=M,exports.FileUploadItemDelete=L,exports.FileUploadItemMetadata=F,exports.FileUploadItemPreview=P,exports.FileUploadItemProgress=I,exports.FileUploadList=k,exports.FileUploadTrigger=O,exports.FileUploader=z,exports.createApiUploadHandler=r.createApiUploadHandler,exports.createS3PresignedUploadHandler=r.createS3PresignedUploadHandler,exports.createUploadThingUploadHandler=r.createUploadThingUploadHandler,exports.formatFileSize=r.formatFileSize,exports.useFileUpload=C,exports.useUploadFile=r.useUploadFile;
|