@vlrc-fe/components 3.0.2 → 3.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -1
- package/README.md +10 -1
- package/bin/registry.mjs +1124 -0
- package/bin/vlrc.mjs +102 -7
- package/dist/ConfirmModal.cjs +276 -1
- package/dist/ConfirmModal.js +119 -103
- package/dist/DataTable/DataTable.cjs +203 -1
- package/dist/DataTable/DataTable.js +161 -120
- package/dist/DataTable/components/DataTableColumnHeader.cjs +214 -1
- package/dist/DataTable/components/DataTableColumnHeader.d.ts +3 -3
- package/dist/DataTable/components/DataTableColumnHeader.d.ts.map +1 -1
- package/dist/DataTable/components/DataTableColumnHeader.js +201 -103
- package/dist/DataTable/components/DataTableFacetedFilter.cjs +332 -1
- package/dist/DataTable/components/DataTableFacetedFilter.d.ts +3 -3
- package/dist/DataTable/components/DataTableFacetedFilter.d.ts.map +1 -1
- package/dist/DataTable/components/DataTableFacetedFilter.js +285 -181
- package/dist/DataTable/components/DataTablePagination.cjs +200 -1
- package/dist/DataTable/components/DataTablePagination.js +188 -91
- package/dist/DataTable/components/DataTableRowActions.cjs +172 -1
- package/dist/DataTable/components/DataTableRowActions.js +161 -62
- package/dist/DataTable/components/DataTableTable.cjs +100 -1
- package/dist/DataTable/components/DataTableTable.js +87 -35
- package/dist/DataTable/components/DataTableToolbar.cjs +112 -1
- package/dist/DataTable/components/DataTableToolbar.js +106 -44
- package/dist/DataTable/components/DataTableViewOptions.cjs +113 -1
- package/dist/DataTable/components/DataTableViewOptions.js +105 -44
- package/dist/DataTable/render/createColumns.cjs +84 -1
- package/dist/DataTable/render/createColumns.js +65 -44
- package/dist/DataTable/render/defaults.cjs +38 -1
- package/dist/DataTable/render/defaults.js +18 -13
- package/dist/Dropdown/Dropdown.cjs +255 -1
- package/dist/Dropdown/Dropdown.js +138 -108
- package/dist/Form/Form.cjs +439 -1
- package/dist/Form/Form.js +417 -206
- package/dist/Form/FormDatePicker/FormDatePicker.cjs +84 -1
- package/dist/Form/FormDatePicker/FormDatePicker.js +68 -65
- package/dist/Form/FormDatePicker/MonthPickerPanel.cjs +217 -1
- package/dist/Form/FormDatePicker/MonthPickerPanel.js +194 -101
- package/dist/Form/FormDatePicker/RangeDatePicker.cjs +144 -1
- package/dist/Form/FormDatePicker/RangeDatePicker.js +94 -77
- package/dist/Form/FormDatePicker/SingleDatePicker.cjs +191 -1
- package/dist/Form/FormDatePicker/SingleDatePicker.js +144 -114
- package/dist/Form/FormDatePicker/TimeInput.cjs +172 -1
- package/dist/Form/FormDatePicker/TimeInput.js +162 -79
- package/dist/Form/FormDatePicker/TimePicker.cjs +107 -1
- package/dist/Form/FormDatePicker/TimePicker.js +58 -43
- package/dist/Form/FormDatePicker/YearPickerPanel.cjs +184 -1
- package/dist/Form/FormDatePicker/YearPickerPanel.js +164 -84
- package/dist/Form/FormDatePicker/types.cjs +10 -1
- package/dist/Form/FormDatePicker/types.js +8 -3
- package/dist/Form/FormDatePicker/useFormDatePicker.cjs +70 -1
- package/dist/Form/FormDatePicker/useFormDatePicker.js +58 -31
- package/dist/Form/FormFileUpload/FileUpload.cjs +603 -1
- package/dist/Form/FormFileUpload/FileUpload.d.ts +41 -3
- package/dist/Form/FormFileUpload/FileUpload.d.ts.map +1 -1
- package/dist/Form/FormFileUpload/FileUpload.js +454 -275
- package/dist/Form/FormFileUpload/index.cjs +175 -1
- package/dist/Form/FormFileUpload/index.d.ts.map +1 -1
- package/dist/Form/FormFileUpload/index.js +170 -28
- package/dist/Form/FormMultiSelect/FormMultiSelect.cjs +46 -1
- package/dist/Form/FormMultiSelect/FormMultiSelect.js +42 -22
- package/dist/Form/FormNumberInput/FormNumberInput.cjs +71 -1
- package/dist/Form/FormNumberInput/FormNumberInput.js +60 -58
- package/dist/Form/FormNumberInput/StepperControls.cjs +104 -1
- package/dist/Form/FormNumberInput/StepperControls.js +78 -43
- package/dist/Form/FormNumberInput/useFormNumberInput.cjs +72 -1
- package/dist/Form/FormNumberInput/useFormNumberInput.js +68 -39
- package/dist/Form/FormRadioGroup/FormRadio.cjs +65 -1
- package/dist/Form/FormRadioGroup/FormRadio.js +38 -38
- package/dist/Form/FormRadioGroup/useFormRadio.cjs +38 -1
- package/dist/Form/FormRadioGroup/useFormRadio.js +27 -16
- package/dist/Form/FormSelect/FormSelect.cjs +46 -1
- package/dist/Form/FormSelect/FormSelect.js +40 -26
- package/dist/Form/FormSelect/useFormSelect.cjs +58 -1
- package/dist/Form/FormSelect/useFormSelect.js +52 -43
- package/dist/Icons/Icons.cjs +155 -1
- package/dist/Icons/Icons.js +142 -142
- package/dist/Modal.cjs +135 -1
- package/dist/Modal.js +67 -54
- package/dist/MultiSelect/MultiSelect.cjs +211 -1
- package/dist/MultiSelect/MultiSelect.js +127 -117
- package/dist/MultiSelect/renderers.cjs +571 -1
- package/dist/MultiSelect/renderers.js +508 -309
- package/dist/MultiSelect/useMultiSelect.cjs +243 -1
- package/dist/MultiSelect/useMultiSelect.js +207 -127
- package/dist/MultiSelect/utils.cjs +123 -1
- package/dist/MultiSelect/utils.js +79 -51
- package/dist/Select/BaseSelect.cjs +265 -1
- package/dist/Select/BaseSelect.js +165 -126
- package/dist/Select/MultiSelectTags.cjs +129 -1
- package/dist/Select/MultiSelectTags.js +82 -56
- package/dist/Typography/Blockquote.cjs +79 -1
- package/dist/Typography/Blockquote.js +40 -38
- package/dist/Typography/Code.cjs +131 -1
- package/dist/Typography/Code.js +64 -58
- package/dist/Typography/Link.cjs +141 -1
- package/dist/Typography/Link.d.ts +1 -2
- package/dist/Typography/Link.d.ts.map +1 -1
- package/dist/Typography/Link.js +74 -63
- package/dist/Typography/Paragraph.cjs +226 -1
- package/dist/Typography/Paragraph.d.ts +1 -2
- package/dist/Typography/Paragraph.d.ts.map +1 -1
- package/dist/Typography/Paragraph.js +119 -107
- package/dist/Typography/Text.cjs +224 -1
- package/dist/Typography/Text.d.ts +1 -2
- package/dist/Typography/Text.d.ts.map +1 -1
- package/dist/Typography/Text.js +117 -100
- package/dist/Typography/Title.cjs +220 -1
- package/dist/Typography/Title.d.ts +1 -2
- package/dist/Typography/Title.d.ts.map +1 -1
- package/dist/Typography/Title.js +125 -103
- package/dist/Typography/Typography.cjs +17 -1
- package/dist/Typography/Typography.js +14 -14
- package/dist/Typography/index.d.ts +1 -1
- package/dist/Typography/index.d.ts.map +1 -1
- package/dist/Typography/index.js +13 -13
- package/dist/Typography/tooltip.cjs +42 -1
- package/dist/Typography/tooltip.js +34 -14
- package/dist/Typography/types.cjs +20 -1
- package/dist/Typography/types.js +5 -2
- package/dist/Typography/utils.cjs +52 -1
- package/dist/Typography/utils.js +48 -21
- package/dist/Typography/weightStyles.cjs +58 -1
- package/dist/Typography/weightStyles.js +26 -25
- package/dist/_virtual/_rolldown/runtime.cjs +32 -1
- package/dist/_virtual/_rolldown/runtime.js +9 -7
- package/dist/assets/stylex.css +135 -1
- package/dist/astryx.cjs +18 -1
- package/dist/astryx.d.ts.map +1 -1
- package/dist/astryx.js +2 -1
- package/dist/index.cjs +789 -1
- package/dist/index.js +122 -118
- package/dist/layout/Box.cjs +203 -1
- package/dist/layout/Box.d.ts +8 -8
- package/dist/layout/Box.d.ts.map +1 -1
- package/dist/layout/Box.js +138 -49
- package/dist/layout/Center.cjs +51 -1
- package/dist/layout/Center.d.ts +3 -3
- package/dist/layout/Center.d.ts.map +1 -1
- package/dist/layout/Center.js +49 -20
- package/dist/layout/Container.cjs +81 -1
- package/dist/layout/Container.d.ts +8 -8
- package/dist/layout/Container.d.ts.map +1 -1
- package/dist/layout/Container.js +34 -30
- package/dist/layout/Stack.cjs +237 -1
- package/dist/layout/Stack.d.ts +9 -9
- package/dist/layout/Stack.d.ts.map +1 -1
- package/dist/layout/Stack.js +220 -75
- package/dist/layout/index.js +9 -9
- package/dist/lazyLoad.cjs +13 -1
- package/dist/lazyLoad.js +9 -9
- package/dist/node_modules/.pnpm/@floating-ui_core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.cjs +551 -1
- package/dist/node_modules/.pnpm/@floating-ui_core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.js +440 -234
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs +546 -1
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +452 -236
- package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.cjs +330 -1
- package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +272 -164
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs +150 -1
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs +132 -1
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +90 -74
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +92 -67
- package/dist/node_modules/.pnpm/@radix-ui_number@1.1.3/node_modules/@radix-ui/number/dist/index.cjs +11 -1
- package/dist/node_modules/.pnpm/@radix-ui_number@1.1.3/node_modules/@radix-ui/number/dist/index.js +8 -7
- package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.7/node_modules/@radix-ui/primitive/dist/index.cjs +48 -1
- package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.7/node_modules/@radix-ui/primitive/dist/index.js +34 -31
- package/dist/node_modules/.pnpm/@radix-ui_react-alert-dialog@1.1.23_@types_react-dom@19.3.0_@types_react@19.3.0__@types_023ac3f94ac95798b92bc4b7f556cbda/node_modules/@radix-ui/react-alert-dialog/dist/index.cjs +145 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-alert-dialog@1.1.23_@types_react-dom@19.3.0_@types_react@19.3.0__@types_023ac3f94ac95798b92bc4b7f556cbda/node_modules/@radix-ui/react-alert-dialog/dist/index.js +111 -73
- package/dist/node_modules/.pnpm/@radix-ui_react-aspect-ratio@1.1.15_@types_react-dom@19.3.0_@types_react@19.3.0__@types_3fe40fa8e2833eaf8803b46e02e4c30f/node_modules/@radix-ui/react-aspect-ratio/dist/index.cjs +38 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-aspect-ratio@1.1.15_@types_react-dom@19.3.0_@types_react@19.3.0__@types_3fe40fa8e2833eaf8803b46e02e4c30f/node_modules/@radix-ui/react-aspect-ratio/dist/index.js +19 -16
- package/dist/node_modules/.pnpm/@radix-ui_react-avatar@1.2.6_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_c3568bdf5c60d38014d320037c857c95/node_modules/@radix-ui/react-avatar/dist/index.cjs +126 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-avatar@1.2.6_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_c3568bdf5c60d38014d320037c857c95/node_modules/@radix-ui/react-avatar/dist/index.js +103 -72
- package/dist/node_modules/.pnpm/@radix-ui_react-collapsible@1.1.20_@types_react-dom@19.3.0_@types_react@19.3.0__@types__75f9b408b6aa016f78c6c390e6f84227/node_modules/@radix-ui/react-collapsible/dist/index.cjs +134 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-collapsible@1.1.20_@types_react-dom@19.3.0_@types_react@19.3.0__@types__75f9b408b6aa016f78c6c390e6f84227/node_modules/@radix-ui/react-collapsible/dist/index.js +113 -79
- package/dist/node_modules/.pnpm/@radix-ui_react-collection@1.1.15_@types_react-dom@19.3.0_@types_react@19.3.0__@types_r_5961dc5beb3cb19a205dfdbd3304cbe5/node_modules/@radix-ui/react-collection/dist/index.cjs +541 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-collection@1.1.15_@types_react-dom@19.3.0_@types_react@19.3.0__@types_r_5961dc5beb3cb19a205dfdbd3304cbe5/node_modules/@radix-ui/react-collection/dist/index.js +459 -331
- package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.5_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +39 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.5_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-compose-refs/dist/index.js +26 -22
- package/dist/node_modules/.pnpm/@radix-ui_react-context-menu@2.3.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types__30d9c1a1570dd32a7a328fd93feebae9/node_modules/@radix-ui/react-context-menu/dist/index.cjs +304 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-context-menu@2.3.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types__30d9c1a1570dd32a7a328fd93feebae9/node_modules/@radix-ui/react-context-menu/dist/index.js +234 -160
- package/dist/node_modules/.pnpm/@radix-ui_react-context@1.2.2_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-context/dist/index.cjs +108 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-context@1.2.2_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-context/dist/index.js +82 -67
- package/dist/node_modules/.pnpm/@radix-ui_react-direction@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-direction/dist/index.cjs +19 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-direction@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-direction/dist/index.js +12 -10
- package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.19_@types_react-dom@19.3.0_@types_react@19.3.0__@_221317ca07dfdaa6590fc49e548d4242/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +275 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.19_@types_react-dom@19.3.0_@types_react@19.3.0__@_221317ca07dfdaa6590fc49e548d4242/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +228 -127
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.6_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-focus-guards/dist/index.cjs +53 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.6_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-focus-guards/dist/index.js +40 -22
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.16_@types_react-dom@19.3.0_@types_react@19.3.0__@types__3593711fa410ee31279d746c57990974/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +215 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.16_@types_react-dom@19.3.0_@types_react@19.3.0__@types__3593711fa410ee31279d746c57990974/node_modules/@radix-ui/react-focus-scope/dist/index.js +171 -117
- package/dist/node_modules/.pnpm/@radix-ui_react-hover-card@1.1.23_@types_react-dom@19.3.0_@types_react@19.3.0__@types_r_a8ac333b78a7741970303e37358b886d/node_modules/@radix-ui/react-hover-card/dist/index.cjs +219 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-hover-card@1.1.23_@types_react-dom@19.3.0_@types_react@19.3.0__@types_r_a8ac333b78a7741970303e37358b886d/node_modules/@radix-ui/react-hover-card/dist/index.js +178 -118
- package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-id/dist/index.cjs +22 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-id/dist/index.js +17 -13
- package/dist/node_modules/.pnpm/@radix-ui_react-menu@2.1.24_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@1_bd1746795e703f342b2f4982589d4efb/node_modules/@radix-ui/react-menu/dist/index.cjs +802 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-menu@2.1.24_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@1_bd1746795e703f342b2f4982589d4efb/node_modules/@radix-ui/react-menu/dist/index.js +648 -422
- package/dist/node_modules/.pnpm/@radix-ui_react-menubar@1.1.24_@types_react-dom@19.3.0_@types_react@19.3.0__@types_reac_b8d55f7c7c6b477421e3cc1ba6fb334b/node_modules/@radix-ui/react-menubar/dist/index.cjs +410 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-menubar@1.1.24_@types_react-dom@19.3.0_@types_react@19.3.0__@types_reac_b8d55f7c7c6b477421e3cc1ba6fb334b/node_modules/@radix-ui/react-menubar/dist/index.js +313 -212
- package/dist/node_modules/.pnpm/@radix-ui_react-navigation-menu@1.2.22_@types_react-dom@19.3.0_@types_react@19.3.0__@ty_fde94e4aef42debd49119dde2ad3b250/node_modules/@radix-ui/react-navigation-menu/dist/index.cjs +741 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-navigation-menu@1.2.22_@types_react-dom@19.3.0_@types_react@19.3.0__@ty_fde94e4aef42debd49119dde2ad3b250/node_modules/@radix-ui/react-navigation-menu/dist/index.js +602 -417
- package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.3.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_ca4fb1e7b10e21399fbf7b38c61d930c/node_modules/@radix-ui/react-popper/dist/index.cjs +246 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.3.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_ca4fb1e7b10e21399fbf7b38c61d930c/node_modules/@radix-ui/react-popper/dist/index.js +195 -121
- package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.17_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react_dcf9598b366f9d4cb930092169158fb6/node_modules/@radix-ui/react-portal/dist/index.cjs +27 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.17_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react_dcf9598b366f9d4cb930092169158fb6/node_modules/@radix-ui/react-portal/dist/index.js +20 -17
- package/dist/node_modules/.pnpm/@radix-ui_react-presence@1.1.10_@types_react-dom@19.3.0_@types_react@19.3.0__@types_rea_d7b4951725c0f0b9fd732151cb937913/node_modules/@radix-ui/react-presence/dist/index.cjs +148 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-presence@1.1.10_@types_react-dom@19.3.0_@types_react@19.3.0__@types_rea_d7b4951725c0f0b9fd732151cb937913/node_modules/@radix-ui/react-presence/dist/index.js +115 -67
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.1.10_@types_react-dom@19.3.0_@types_react@19.3.0__@types_re_b879c40dbdb8ea08e1db9842f10f20a8/node_modules/@radix-ui/react-primitive/dist/index.cjs +55 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.1.10_@types_react-dom@19.3.0_@types_react@19.3.0__@types_re_b879c40dbdb8ea08e1db9842f10f20a8/node_modules/@radix-ui/react-primitive/dist/index.js +27 -21
- package/dist/node_modules/.pnpm/@radix-ui_react-roving-focus@1.1.19_@types_react-dom@19.3.0_@types_react@19.3.0__@types_43a41e6ed06e4781ce7b1fb0f0076623/node_modules/@radix-ui/react-roving-focus/dist/index.cjs +223 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-roving-focus@1.1.19_@types_react-dom@19.3.0_@types_react@19.3.0__@types_43a41e6ed06e4781ce7b1fb0f0076623/node_modules/@radix-ui/react-roving-focus/dist/index.js +179 -131
- package/dist/node_modules/.pnpm/@radix-ui_react-slider@1.4.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_0a49b18268a9d1d70ad7e785633a1513/node_modules/@radix-ui/react-slider/dist/index.cjs +576 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-slider@1.4.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_0a49b18268a9d1d70ad7e785633a1513/node_modules/@radix-ui/react-slider/dist/index.js +437 -308
- package/dist/node_modules/.pnpm/@radix-ui_react-switch@1.3.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_f8723a7bd506c0f648804ec2dc0f18e3/node_modules/@radix-ui/react-switch/dist/index.cjs +202 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-switch@1.3.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_f8723a7bd506c0f648804ec2dc0f18e3/node_modules/@radix-ui/react-switch/dist/index.js +160 -125
- package/dist/node_modules/.pnpm/@radix-ui_react-tabs@1.1.21_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@1_2c04ca1fb5fd914a25ee24a303bd8469/node_modules/@radix-ui/react-tabs/dist/index.cjs +159 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-tabs@1.1.21_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@1_2c04ca1fb5fd914a25ee24a303bd8469/node_modules/@radix-ui/react-tabs/dist/index.js +125 -93
- package/dist/node_modules/.pnpm/@radix-ui_react-toggle-group@1.1.19_@types_react-dom@19.3.0_@types_react@19.3.0__@types_e645c0ca626436d86b14232bd158d09b/node_modules/@radix-ui/react-toggle-group/dist/index.cjs +158 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-toggle-group@1.1.19_@types_react-dom@19.3.0_@types_react@19.3.0__@types_e645c0ca626436d86b14232bd158d09b/node_modules/@radix-ui/react-toggle-group/dist/index.js +128 -98
- package/dist/node_modules/.pnpm/@radix-ui_react-toggle@1.1.18_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react_f121473145ec675e8ab50657e8e97e06/node_modules/@radix-ui/react-toggle/dist/index.cjs +39 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-toggle@1.1.18_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react_f121473145ec675e8ab50657e8e97e06/node_modules/@radix-ui/react-toggle/dist/index.js +29 -24
- package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +19 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +13 -11
- package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.2.6_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +109 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.2.6_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +91 -68
- package/dist/node_modules/.pnpm/@radix-ui_react-use-effect-event@0.0.5_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-effect-event/dist/index.cjs +28 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-use-effect-event@0.0.5_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-effect-event/dist/index.js +22 -17
- package/dist/node_modules/.pnpm/@radix-ui_react-use-is-hydrated@0.1.3_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-is-hydrated/dist/index.cjs +33 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-use-is-hydrated@0.1.3_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +25 -19
- package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs +7 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +3 -3
- package/dist/node_modules/.pnpm/@radix-ui_react-use-previous@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-previous/dist/index.cjs +25 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-use-previous@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-previous/dist/index.js +18 -11
- package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-size/dist/index.cjs +47 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-size/dist/index.js +38 -28
- package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.2.11_@types_react-dom@19.3.0_@types_react@19.3.0__@ty_ef452cff5863a129db7ebc4b37ab07c3/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs +38 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.2.11_@types_react-dom@19.3.0_@types_react@19.3.0__@ty_ef452cff5863a129db7ebc4b37ab07c3/node_modules/@radix-ui/react-visually-hidden/dist/index.js +19 -15
- package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.cjs +106 -1
- package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js +95 -34
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/addLeadingZeros.cjs +5 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/addLeadingZeros.js +3 -3
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/defaultOptions.cjs +6 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/defaultOptions.js +4 -4
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/formatters.cjs +423 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/formatters.js +237 -202
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/lightFormatters.cjs +45 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/lightFormatters.js +35 -32
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/longFormatters.cjs +42 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/longFormatters.js +37 -32
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.cjs +20 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +18 -5
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/normalizeDates.cjs +7 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/normalizeDates.js +5 -5
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/protectedTokens.cjs +27 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/protectedTokens.js +15 -12
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constants.cjs +45 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constants.js +41 -4
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constructFrom.cjs +45 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constructFrom.js +42 -4
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/differenceInCalendarDays.cjs +49 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/differenceInCalendarDays.js +46 -8
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/format.cjs +358 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/format.js +341 -45
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getDayOfYear.cjs +31 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getDayOfYear.js +28 -7
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeek.cjs +35 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeek.js +32 -8
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeekYear.cjs +44 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeekYear.js +41 -11
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeek.cjs +49 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeek.js +46 -8
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeekYear.cjs +61 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeekYear.js +58 -12
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isDate.cjs +38 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isDate.js +35 -3
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isValid.cjs +39 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isValid.js +36 -5
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.cjs +8 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +5 -5
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.cjs +50 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +45 -11
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchFn.cjs +27 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchFn.js +20 -14
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.cjs +18 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +13 -12
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.cjs +77 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +14 -5
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatLong.cjs +31 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatLong.js +6 -6
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.cjs +11 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +4 -3
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/localize.cjs +210 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/localize.js +197 -188
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/match.cjs +122 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/match.js +12 -12
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US.cjs +28 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US.js +20 -12
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfDay.cjs +34 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfDay.js +31 -5
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeek.cjs +37 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeek.js +32 -5
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeekYear.cjs +41 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeekYear.js +38 -7
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeek.cjs +45 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeek.js +42 -6
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeekYear.cjs +56 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeekYear.js +53 -8
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfYear.cjs +35 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfYear.js +32 -5
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/toDate.cjs +45 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/toDate.js +42 -4
- package/dist/node_modules/.pnpm/embla-carousel-react@8.6.0_react@19.3.1/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.cjs +34 -1
- package/dist/node_modules/.pnpm/embla-carousel-react@8.6.0_react@19.3.1/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js +32 -21
- package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.cjs +39 -1
- package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +27 -20
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +1391 -1
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.js +1178 -803
- package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.cjs +7 -1
- package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js +3 -4
- package/dist/node_modules/.pnpm/input-otp@1.4.2_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/input-otp/dist/index.cjs +369 -2
- package/dist/node_modules/.pnpm/input-otp@1.4.2_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/input-otp/dist/index.js +282 -238
- package/dist/node_modules/.pnpm/react-hook-form@7.83.0_react@19.3.1/node_modules/react-hook-form/dist/index.esm.cjs +625 -1
- package/dist/node_modules/.pnpm/react-hook-form@7.83.0_react@19.3.1/node_modules/react-hook-form/dist/index.esm.js +545 -276
- package/dist/node_modules/.pnpm/react-number-format@5.4.5_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-number-format/dist/react-number-format.es.cjs +1033 -9
- package/dist/node_modules/.pnpm/react-number-format@5.4.5_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-number-format/dist/react-number-format.es.js +898 -460
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/component.cjs +47 -38
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/component.js +38 -64
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/constants.cjs +13 -1
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +9 -2
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/index.cjs +4 -1
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/utils.cjs +36 -1
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +25 -16
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/Combination.cjs +15 -1
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/Combination.js +10 -10
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs +167 -4
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +144 -93
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/UI.cjs +63 -1
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/UI.js +45 -35
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.cjs +14 -1
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +11 -9
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/handleScroll.cjs +84 -1
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +75 -43
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/medium.cjs +3 -1
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/medium.js +3 -3
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/sidecar.cjs +6 -1
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/sidecar.js +5 -5
- package/dist/node_modules/.pnpm/react-resizable-panels@2.1.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-resizable-panels/dist/react-resizable-panels.browser.esm.cjs +1617 -1
- package/dist/node_modules/.pnpm/react-resizable-panels@2.1.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-resizable-panels/dist/react-resizable-panels.browser.esm.js +1332 -874
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/component.cjs +18 -1
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/component.js +15 -7
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/hook.cjs +26 -1
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/hook.js +20 -10
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/index.cjs +4 -1
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/singleton.cjs +40 -1
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/singleton.js +29 -16
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.cjs +36 -1
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.js +25 -14
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.3.0_react@19.3.1/node_modules/use-callback-ref/dist/es2015/assignRef.cjs +20 -1
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.3.0_react@19.3.1/node_modules/use-callback-ref/dist/es2015/assignRef.js +18 -3
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.3.0_react@19.3.1/node_modules/use-callback-ref/dist/es2015/useMergeRef.cjs +46 -1
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.3.0_react@19.3.1/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +38 -19
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.3.0_react@19.3.1/node_modules/use-callback-ref/dist/es2015/useRef.cjs +39 -1
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.3.0_react@19.3.1/node_modules/use-callback-ref/dist/es2015/useRef.js +29 -11
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.3.0_react@19.3.1/node_modules/use-sidecar/dist/es2015/exports.cjs +18 -1
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.3.0_react@19.3.1/node_modules/use-sidecar/dist/es2015/exports.js +13 -12
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.3.0_react@19.3.1/node_modules/use-sidecar/dist/es2015/medium.cjs +81 -1
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.3.0_react@19.3.1/node_modules/use-sidecar/dist/es2015/medium.js +58 -45
- package/dist/node_modules/.pnpm/vaul@1.1.2_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@19.3.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/vaul/dist/index.cjs +1252 -3
- package/dist/node_modules/.pnpm/vaul@1.1.2_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@19.3.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/vaul/dist/index.js +1003 -648
- package/dist/theme/index.cjs +63 -1
- package/dist/theme/index.js +31 -31
- package/dist/theme/spacing.cjs +93 -1
- package/dist/theme/spacing.js +52 -26
- package/dist/theme/tokens.stylex.cjs +210 -1
- package/dist/theme/tokens.stylex.js +58 -26
- package/dist/theme/types.cjs +13 -1
- package/dist/theme/types.js +4 -3
- package/dist/theme/width.cjs +39 -1
- package/dist/theme/width.js +16 -4
- package/dist/theme/zIndex.cjs +64 -1
- package/dist/theme/zIndex.js +44 -15
- package/dist/theme.css +135 -1
- package/dist/ui/accordion.cjs +431 -1
- package/dist/ui/accordion.d.ts +10 -10
- package/dist/ui/accordion.d.ts.map +1 -1
- package/dist/ui/accordion.js +276 -136
- package/dist/ui/action-bar.cjs +274 -1
- package/dist/ui/action-bar.d.ts +11 -11
- package/dist/ui/action-bar.d.ts.map +1 -1
- package/dist/ui/action-bar.js +204 -98
- package/dist/ui/alert-dialog.cjs +538 -1
- package/dist/ui/alert-dialog.d.ts +19 -19
- package/dist/ui/alert-dialog.d.ts.map +1 -1
- package/dist/ui/alert-dialog.js +459 -167
- package/dist/ui/alert.cjs +163 -1
- package/dist/ui/alert.d.ts +7 -7
- package/dist/ui/alert.d.ts.map +1 -1
- package/dist/ui/alert.js +111 -50
- package/dist/ui/aspect-ratio.cjs +25 -1
- package/dist/ui/aspect-ratio.d.ts +2 -2
- package/dist/ui/aspect-ratio.d.ts.map +1 -1
- package/dist/ui/aspect-ratio.js +22 -12
- package/dist/ui/avatar.cjs +341 -1
- package/dist/ui/avatar.d.ts +10 -10
- package/dist/ui/avatar.d.ts.map +1 -1
- package/dist/ui/avatar.js +226 -114
- package/dist/ui/badge-overflow.cjs +66 -1
- package/dist/ui/badge-overflow.d.ts +5 -5
- package/dist/ui/badge-overflow.d.ts.map +1 -1
- package/dist/ui/badge-overflow.js +34 -27
- package/dist/ui/badge.cjs +167 -1
- package/dist/ui/badge.d.ts +3 -3
- package/dist/ui/badge.d.ts.map +1 -1
- package/dist/ui/badge.js +48 -42
- package/dist/ui/breadcrumb.cjs +508 -1
- package/dist/ui/breadcrumb.d.ts +15 -15
- package/dist/ui/breadcrumb.d.ts.map +1 -1
- package/dist/ui/breadcrumb.js +386 -159
- package/dist/ui/button.cjs +425 -1
- package/dist/ui/button.d.ts +3 -3
- package/dist/ui/button.d.ts.map +1 -1
- package/dist/ui/button.js +137 -117
- package/dist/ui/calendar.cjs +626 -1
- package/dist/ui/calendar.d.ts +5 -5
- package/dist/ui/calendar.d.ts.map +1 -1
- package/dist/ui/calendar.js +309 -192
- package/dist/ui/card.cjs +401 -1
- package/dist/ui/card.d.ts +15 -15
- package/dist/ui/card.d.ts.map +1 -1
- package/dist/ui/card.js +300 -119
- package/dist/ui/carousel.cjs +333 -1
- package/dist/ui/carousel.d.ts +10 -10
- package/dist/ui/carousel.d.ts.map +1 -1
- package/dist/ui/carousel.js +245 -126
- package/dist/ui/checkbox.cjs +167 -1
- package/dist/ui/checkbox.d.ts +4 -4
- package/dist/ui/checkbox.d.ts.map +1 -1
- package/dist/ui/checkbox.js +66 -58
- package/dist/ui/circular-progress.cjs +139 -1
- package/dist/ui/circular-progress.d.ts +4 -4
- package/dist/ui/circular-progress.d.ts.map +1 -1
- package/dist/ui/circular-progress.js +65 -52
- package/dist/ui/code-block.cjs +819 -0
- package/dist/ui/code-block.d.ts +81 -0
- package/dist/ui/code-block.d.ts.map +1 -0
- package/dist/ui/code-block.js +809 -0
- package/dist/ui/collapsible.cjs +65 -1
- package/dist/ui/collapsible.d.ts +4 -4
- package/dist/ui/collapsible.d.ts.map +1 -1
- package/dist/ui/collapsible.js +58 -28
- package/dist/ui/command.cjs +556 -1
- package/dist/ui/command.d.ts +19 -19
- package/dist/ui/command.d.ts.map +1 -1
- package/dist/ui/command.js +432 -163
- package/dist/ui/compare-slider.cjs +170 -1
- package/dist/ui/compare-slider.d.ts +7 -7
- package/dist/ui/compare-slider.d.ts.map +1 -1
- package/dist/ui/compare-slider.js +106 -72
- package/dist/ui/context-menu.cjs +811 -1
- package/dist/ui/context-menu.d.ts +26 -26
- package/dist/ui/context-menu.d.ts.map +1 -1
- package/dist/ui/context-menu.js +693 -228
- package/dist/ui/copy-button.cjs +94 -1
- package/dist/ui/copy-button.d.ts +1 -2
- package/dist/ui/copy-button.d.ts.map +1 -1
- package/dist/ui/copy-button.js +56 -44
- package/dist/ui/dialog.cjs +409 -1
- package/dist/ui/dialog.d.ts +18 -18
- package/dist/ui/dialog.d.ts.map +1 -1
- package/dist/ui/dialog.js +317 -131
- package/dist/ui/drawer.cjs +476 -1
- package/dist/ui/drawer.d.ts +17 -17
- package/dist/ui/drawer.d.ts.map +1 -1
- package/dist/ui/drawer.js +394 -151
- package/dist/ui/dropdown-menu.cjs +638 -1
- package/dist/ui/dropdown-menu.d.ts +26 -26
- package/dist/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/ui/dropdown-menu.js +511 -208
- package/dist/ui/editable.cjs +608 -1
- package/dist/ui/editable.d.ts +14 -14
- package/dist/ui/editable.d.ts.map +1 -1
- package/dist/ui/editable.js +478 -218
- package/dist/ui/empty.cjs +310 -1
- package/dist/ui/empty.d.ts +15 -15
- package/dist/ui/empty.d.ts.map +1 -1
- package/dist/ui/empty.js +277 -107
- package/dist/ui/field.cjs +621 -1
- package/dist/ui/field.d.ts +21 -21
- package/dist/ui/field.d.ts.map +1 -1
- package/dist/ui/field.js +468 -198
- package/dist/ui/file-upload-adapters.cjs +289 -1
- package/dist/ui/file-upload-adapters.d.ts +1 -2
- package/dist/ui/file-upload-adapters.d.ts.map +1 -1
- package/dist/ui/file-upload-adapters.js +244 -170
- package/dist/ui/file-upload.cjs +1481 -1
- package/dist/ui/file-upload.d.ts +22 -22
- package/dist/ui/file-upload.d.ts.map +1 -1
- package/dist/ui/file-upload.js +1064 -598
- package/dist/ui/flex.cjs +203 -1
- package/dist/ui/flex.d.ts +6 -6
- package/dist/ui/flex.d.ts.map +1 -1
- package/dist/ui/flex.js +111 -92
- package/dist/ui/form.cjs +454 -1
- package/dist/ui/form.d.ts +11 -11
- package/dist/ui/form.d.ts.map +1 -1
- package/dist/ui/form.js +421 -135
- package/dist/ui/gauge.cjs +127 -1
- package/dist/ui/gauge.d.ts +6 -6
- package/dist/ui/gauge.d.ts.map +1 -1
- package/dist/ui/gauge.js +61 -52
- package/dist/ui/grid.cjs +224 -1
- package/dist/ui/grid.d.ts +7 -7
- package/dist/ui/grid.d.ts.map +1 -1
- package/dist/ui/grid.js +125 -94
- package/dist/ui/hover-card.cjs +86 -1
- package/dist/ui/hover-card.d.ts +6 -6
- package/dist/ui/hover-card.d.ts.map +1 -1
- package/dist/ui/hover-card.js +57 -36
- package/dist/ui/index.d.ts +4 -0
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/input-group.cjs +328 -1
- package/dist/ui/input-group.d.ts +12 -12
- package/dist/ui/input-group.d.ts.map +1 -1
- package/dist/ui/input-group.js +207 -105
- package/dist/ui/input-otp.cjs +312 -1
- package/dist/ui/input-otp.d.ts +10 -10
- package/dist/ui/input-otp.d.ts.map +1 -1
- package/dist/ui/input-otp.js +217 -94
- package/dist/ui/input.cjs +388 -1
- package/dist/ui/input.d.ts +3 -3
- package/dist/ui/input.d.ts.map +1 -1
- package/dist/ui/input.js +137 -119
- package/dist/ui/item.cjs +585 -1
- package/dist/ui/item.d.ts +20 -20
- package/dist/ui/item.d.ts.map +1 -1
- package/dist/ui/item.js +460 -162
- package/dist/ui/kbd.cjs +115 -1
- package/dist/ui/kbd.d.ts +5 -5
- package/dist/ui/kbd.d.ts.map +1 -1
- package/dist/ui/kbd.js +42 -37
- package/dist/ui/label.cjs +67 -1
- package/dist/ui/label.d.ts +4 -4
- package/dist/ui/label.d.ts.map +1 -1
- package/dist/ui/label.js +51 -21
- package/dist/ui/marker.cjs +294 -0
- package/dist/ui/marker.d.ts +22 -0
- package/dist/ui/marker.d.ts.map +1 -0
- package/dist/ui/marker.js +290 -0
- package/dist/ui/masonry.cjs +58 -1
- package/dist/ui/masonry.d.ts +4 -4
- package/dist/ui/masonry.d.ts.map +1 -1
- package/dist/ui/masonry.js +41 -36
- package/dist/ui/menubar.cjs +908 -1
- package/dist/ui/menubar.d.ts +29 -29
- package/dist/ui/menubar.d.ts.map +1 -1
- package/dist/ui/menubar.js +737 -251
- package/dist/ui/navigation-menu.cjs +560 -1
- package/dist/ui/navigation-menu.d.ts +18 -18
- package/dist/ui/navigation-menu.d.ts.map +1 -1
- package/dist/ui/navigation-menu.js +442 -148
- package/dist/ui/pagination.cjs +575 -1
- package/dist/ui/pagination.d.ts +13 -13
- package/dist/ui/pagination.d.ts.map +1 -1
- package/dist/ui/pagination.js +422 -172
- package/dist/ui/popover.cjs +93 -1
- package/dist/ui/popover.d.ts +7 -7
- package/dist/ui/popover.d.ts.map +1 -1
- package/dist/ui/popover.js +61 -42
- package/dist/ui/progress.cjs +33 -1
- package/dist/ui/progress.d.ts +3 -3
- package/dist/ui/progress.d.ts.map +1 -1
- package/dist/ui/progress.js +19 -17
- package/dist/ui/questionnaire.cjs +679 -0
- package/dist/ui/questionnaire.d.ts +101 -0
- package/dist/ui/questionnaire.d.ts.map +1 -0
- package/dist/ui/questionnaire.js +667 -0
- package/dist/ui/radio-group.cjs +221 -1
- package/dist/ui/radio-group.d.ts +6 -6
- package/dist/ui/radio-group.d.ts.map +1 -1
- package/dist/ui/radio-group.js +125 -74
- package/dist/ui/rating.cjs +191 -1
- package/dist/ui/rating.d.ts +3 -3
- package/dist/ui/rating.d.ts.map +1 -1
- package/dist/ui/rating.js +96 -78
- package/dist/ui/resizable.cjs +175 -1
- package/dist/ui/resizable.d.ts +7 -7
- package/dist/ui/resizable.d.ts.map +1 -1
- package/dist/ui/resizable.js +150 -54
- package/dist/ui/responsive-dialog.cjs +400 -1
- package/dist/ui/responsive-dialog.d.ts +17 -17
- package/dist/ui/responsive-dialog.d.ts.map +1 -1
- package/dist/ui/responsive-dialog.js +372 -155
- package/dist/ui/row-col.cjs +510 -1
- package/dist/ui/row-col.d.ts +11 -11
- package/dist/ui/row-col.d.ts.map +1 -1
- package/dist/ui/row-col.js +238 -205
- package/dist/ui/scroll-area.cjs +142 -1
- package/dist/ui/scroll-area.d.ts +6 -6
- package/dist/ui/scroll-area.d.ts.map +1 -1
- package/dist/ui/scroll-area.js +103 -47
- package/dist/ui/segmented.cjs +170 -1
- package/dist/ui/segmented.d.ts +5 -5
- package/dist/ui/segmented.d.ts.map +1 -1
- package/dist/ui/segmented.js +75 -62
- package/dist/ui/select.cjs +484 -1
- package/dist/ui/select.d.ts +17 -17
- package/dist/ui/select.d.ts.map +1 -1
- package/dist/ui/select.js +353 -160
- package/dist/ui/separator.cjs +44 -1
- package/dist/ui/separator.d.ts +4 -4
- package/dist/ui/separator.d.ts.map +1 -1
- package/dist/ui/separator.js +17 -17
- package/dist/ui/sheet.cjs +460 -1
- package/dist/ui/sheet.d.ts +16 -16
- package/dist/ui/sheet.d.ts.map +1 -1
- package/dist/ui/sheet.js +329 -141
- package/dist/ui/sidebar.cjs +1453 -1
- package/dist/ui/sidebar.d.ts +48 -48
- package/dist/ui/sidebar.d.ts.map +1 -1
- package/dist/ui/sidebar.js +1057 -438
- package/dist/ui/signature-pad.cjs +740 -0
- package/dist/ui/signature-pad.d.ts +107 -0
- package/dist/ui/signature-pad.d.ts.map +1 -0
- package/dist/ui/signature-pad.js +730 -0
- package/dist/ui/skeleton.cjs +62 -1
- package/dist/ui/skeleton.d.ts +3 -3
- package/dist/ui/skeleton.d.ts.map +1 -1
- package/dist/ui/skeleton.js +50 -20
- package/dist/ui/slider.cjs +47 -1
- package/dist/ui/slider.d.ts +4 -4
- package/dist/ui/slider.d.ts.map +1 -1
- package/dist/ui/slider.js +27 -26
- package/dist/ui/sonner.cjs +28 -1
- package/dist/ui/sonner.js +24 -22
- package/dist/ui/spinner.cjs +73 -1
- package/dist/ui/spinner.d.ts +3 -3
- package/dist/ui/spinner.d.ts.map +1 -1
- package/dist/ui/spinner.js +29 -28
- package/dist/ui/stat.cjs +334 -1
- package/dist/ui/stat.d.ts +15 -15
- package/dist/ui/stat.d.ts.map +1 -1
- package/dist/ui/stat.js +271 -130
- package/dist/ui/stepper.cjs +785 -1
- package/dist/ui/stepper.d.ts +24 -24
- package/dist/ui/stepper.d.ts.map +1 -1
- package/dist/ui/stepper.js +594 -281
- package/dist/ui/switch.cjs +203 -1
- package/dist/ui/switch.d.ts +4 -4
- package/dist/ui/switch.d.ts.map +1 -1
- package/dist/ui/switch.js +83 -72
- package/dist/ui/table.cjs +435 -1
- package/dist/ui/table.d.ts +17 -17
- package/dist/ui/table.d.ts.map +1 -1
- package/dist/ui/table.js +369 -129
- package/dist/ui/tabs.cjs +340 -1
- package/dist/ui/tabs.d.ts +10 -10
- package/dist/ui/tabs.d.ts.map +1 -1
- package/dist/ui/tabs.js +204 -95
- package/dist/ui/tags-input.cjs +585 -1
- package/dist/ui/tags-input.d.ts +13 -13
- package/dist/ui/tags-input.d.ts.map +1 -1
- package/dist/ui/tags-input.js +446 -221
- package/dist/ui/textarea.cjs +119 -1
- package/dist/ui/textarea.d.ts +3 -3
- package/dist/ui/textarea.d.ts.map +1 -1
- package/dist/ui/textarea.js +37 -33
- package/dist/ui/timeline.cjs +583 -1
- package/dist/ui/timeline.d.ts +22 -22
- package/dist/ui/timeline.d.ts.map +1 -1
- package/dist/ui/timeline.js +409 -198
- package/dist/ui/toggle-group.cjs +128 -1
- package/dist/ui/toggle-group.d.ts +7 -7
- package/dist/ui/toggle-group.d.ts.map +1 -1
- package/dist/ui/toggle-group.js +92 -41
- package/dist/ui/toggle.cjs +145 -1
- package/dist/ui/toggle.d.ts +4 -4
- package/dist/ui/toggle.d.ts.map +1 -1
- package/dist/ui/toggle.js +38 -34
- package/dist/ui/tooltip.cjs +81 -1
- package/dist/ui/tooltip.d.ts +7 -7
- package/dist/ui/tooltip.d.ts.map +1 -1
- package/dist/ui/tooltip.js +50 -37
- package/dist/ui/useBreakpoint.cjs +91 -1
- package/dist/ui/useBreakpoint.js +66 -43
- package/dist/utils.cjs +9 -1
- package/dist/utils.js +4 -4
- package/package.json +10 -2
|
@@ -1,26 +1,30 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { createContextScope
|
|
3
|
-
import { useComposedRefs
|
|
4
|
-
import { composeEventHandlers
|
|
5
|
-
import { Primitive
|
|
6
|
-
import { useControllableState
|
|
7
|
-
import { createCollection
|
|
8
|
-
import { useDirection
|
|
9
|
-
import { useSize
|
|
10
|
-
import { usePrevious
|
|
11
|
-
import { clamp
|
|
12
|
-
import { Fragment
|
|
13
|
-
import * as
|
|
2
|
+
import { createContextScope } from "../../../../../@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";
|
|
3
|
+
import { useComposedRefs } from "../../../../../@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";
|
|
4
|
+
import { composeEventHandlers } from "../../../../../@radix-ui_primitive@1.1.7/node_modules/@radix-ui/primitive/dist/index.js";
|
|
5
|
+
import { Primitive } from "../../../../../@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";
|
|
6
|
+
import { useControllableState } from "../../../../../@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";
|
|
7
|
+
import { createCollection } from "../../../../../@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";
|
|
8
|
+
import { useDirection } from "../../../../../@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";
|
|
9
|
+
import { useSize } from "../../../../../@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";
|
|
10
|
+
import { usePrevious } from "../../../../../@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";
|
|
11
|
+
import { clamp } from "../../../../../@radix-ui_number@1.1.3/node_modules/@radix-ui/number/dist/index.js";
|
|
12
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
+
import * as React$1 from "react";
|
|
14
14
|
// ../../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.mjs
|
|
15
|
-
var
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
var __defProp = Object.defineProperty;
|
|
16
|
+
var __name = (target, value) => __defProp(target, "name", {
|
|
17
|
+
value,
|
|
18
|
+
configurable: true
|
|
19
|
+
});
|
|
20
|
+
var PAGE_KEYS = ["PageUp", "PageDown"];
|
|
21
|
+
var ARROW_KEYS = [
|
|
19
22
|
"ArrowUp",
|
|
20
23
|
"ArrowDown",
|
|
21
24
|
"ArrowLeft",
|
|
22
25
|
"ArrowRight"
|
|
23
|
-
]
|
|
26
|
+
];
|
|
27
|
+
var BACK_KEYS = {
|
|
24
28
|
"from-left": [
|
|
25
29
|
"Home",
|
|
26
30
|
"PageDown",
|
|
@@ -45,387 +49,512 @@ var m = Object.defineProperty, h = (e, t) => m(e, "name", {
|
|
|
45
49
|
"ArrowUp",
|
|
46
50
|
"ArrowLeft"
|
|
47
51
|
]
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
52
|
+
};
|
|
53
|
+
var SLIDER_NAME = "Slider";
|
|
54
|
+
var [Collection, useCollection, createCollectionScope] = createCollection(SLIDER_NAME);
|
|
55
|
+
var [createSliderContext, createSliderScope] = createContextScope(SLIDER_NAME, [createCollectionScope]);
|
|
56
|
+
var [SliderProvider, useSliderContext] = createSliderContext(SLIDER_NAME);
|
|
57
|
+
var Slider = /* @__PURE__ */ React$1.forwardRef(/* @__PURE__ */ __name(function Slider2(props, forwardedRef) {
|
|
58
|
+
const { name, min = 0, max = 100, step = 1, orientation = "horizontal", disabled = false, minStepsBetweenThumbs = 0, defaultValue = [min], value, onValueChange = /* @__PURE__ */ __name(() => {}, "onValueChange"), onValueCommit = /* @__PURE__ */ __name(() => {}, "onValueCommit"), inverted = false, form, ...sliderProps } = props;
|
|
59
|
+
const thumbRefs = React$1.useRef(/* @__PURE__ */ new Set());
|
|
60
|
+
const valueIndexToChangeRef = React$1.useRef(0);
|
|
61
|
+
const isKeyboardInteractionRef = React$1.useRef(false);
|
|
62
|
+
const SliderOrientation = orientation === "horizontal" ? SliderHorizontal : SliderVertical;
|
|
63
|
+
const [control, setControl] = React$1.useState(null);
|
|
64
|
+
const composedRefs = useComposedRefs(forwardedRef, setControl);
|
|
65
|
+
const [values = [], setValues] = useControllableState({
|
|
66
|
+
prop: value,
|
|
67
|
+
defaultProp: defaultValue,
|
|
68
|
+
onChange: /* @__PURE__ */ __name((value2) => {
|
|
69
|
+
[...thumbRefs.current][valueIndexToChangeRef.current]?.focus({
|
|
70
|
+
preventScroll: true,
|
|
71
|
+
focusVisible: isKeyboardInteractionRef.current
|
|
72
|
+
});
|
|
73
|
+
isKeyboardInteractionRef.current = false;
|
|
74
|
+
onValueChange(value2);
|
|
57
75
|
}, "onChange")
|
|
58
|
-
})
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
76
|
+
});
|
|
77
|
+
const valuesBeforeSlideStartRef = React$1.useRef(values);
|
|
78
|
+
const initialValuesRef = React$1.useRef(values);
|
|
79
|
+
React$1.useEffect(() => {
|
|
80
|
+
const associatedForm = form ? control?.ownerDocument.getElementById(form) : control?.closest("form");
|
|
81
|
+
if (associatedForm instanceof HTMLFormElement) {
|
|
82
|
+
const reset = /* @__PURE__ */ __name(() => setValues(initialValuesRef.current), "reset");
|
|
83
|
+
associatedForm.addEventListener("reset", reset);
|
|
84
|
+
return () => associatedForm.removeEventListener("reset", reset);
|
|
64
85
|
}
|
|
65
86
|
}, [
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
87
|
+
control,
|
|
88
|
+
form,
|
|
89
|
+
setValues
|
|
69
90
|
]);
|
|
70
|
-
function
|
|
71
|
-
|
|
91
|
+
function handleSlideStart(value2) {
|
|
92
|
+
updateValues(value2, getClosestValueIndex(values, value2));
|
|
72
93
|
}
|
|
73
|
-
|
|
74
|
-
function
|
|
75
|
-
|
|
94
|
+
__name(handleSlideStart, "handleSlideStart");
|
|
95
|
+
function handleSlideMove(value2) {
|
|
96
|
+
updateValues(value2, valueIndexToChangeRef.current);
|
|
76
97
|
}
|
|
77
|
-
|
|
78
|
-
function
|
|
79
|
-
String(
|
|
98
|
+
__name(handleSlideMove, "handleSlideMove");
|
|
99
|
+
function handleSlideEnd() {
|
|
100
|
+
if (String(values) !== String(valuesBeforeSlideStartRef.current)) onValueCommit(values);
|
|
80
101
|
}
|
|
81
|
-
|
|
82
|
-
function
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
102
|
+
__name(handleSlideEnd, "handleSlideEnd");
|
|
103
|
+
function updateValues(value2, atIndex, { commit } = { commit: false }) {
|
|
104
|
+
const decimalCount = getDecimalCount(step);
|
|
105
|
+
const snapToStep = roundValue(Math.round((value2 - min) / step) * step + min, decimalCount);
|
|
106
|
+
const nextValue = clamp(snapToStep, [min, max]);
|
|
107
|
+
setValues((prevValues = []) => {
|
|
108
|
+
const nextValues = getNextSortedValues(prevValues, nextValue, atIndex);
|
|
109
|
+
if (hasMinStepsBetweenValues(nextValues, minStepsBetweenThumbs * step)) {
|
|
110
|
+
valueIndexToChangeRef.current = nextValues.indexOf(nextValue);
|
|
111
|
+
const hasChanged = String(nextValues) !== String(prevValues);
|
|
112
|
+
if (hasChanged && commit) onValueCommit(nextValues);
|
|
113
|
+
return hasChanged ? nextValues : prevValues;
|
|
114
|
+
} else return prevValues;
|
|
92
115
|
});
|
|
93
116
|
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
"
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
117
|
+
__name(updateValues, "updateValues");
|
|
118
|
+
return /* @__PURE__ */ jsx(SliderProvider, {
|
|
119
|
+
scope: props.__scopeSlider,
|
|
120
|
+
name,
|
|
121
|
+
disabled,
|
|
122
|
+
min,
|
|
123
|
+
max,
|
|
124
|
+
valueIndexToChangeRef,
|
|
125
|
+
thumbs: thumbRefs.current,
|
|
126
|
+
values,
|
|
127
|
+
orientation,
|
|
128
|
+
form,
|
|
129
|
+
children: /* @__PURE__ */ jsx(Collection.Provider, {
|
|
130
|
+
scope: props.__scopeSlider,
|
|
131
|
+
children: /* @__PURE__ */ jsx(Collection.Slot, {
|
|
132
|
+
scope: props.__scopeSlider,
|
|
133
|
+
children: /* @__PURE__ */ jsx(SliderOrientation, {
|
|
134
|
+
"aria-disabled": disabled,
|
|
135
|
+
"data-disabled": disabled ? "" : void 0,
|
|
136
|
+
...sliderProps,
|
|
137
|
+
ref: composedRefs,
|
|
138
|
+
onPointerDown: composeEventHandlers(sliderProps.onPointerDown, () => {
|
|
139
|
+
if (!disabled) {
|
|
140
|
+
valuesBeforeSlideStartRef.current = values;
|
|
141
|
+
isKeyboardInteractionRef.current = false;
|
|
142
|
+
}
|
|
116
143
|
}),
|
|
117
|
-
min
|
|
118
|
-
max
|
|
119
|
-
inverted
|
|
120
|
-
onSlideStart:
|
|
121
|
-
onSlideMove:
|
|
122
|
-
onSlideEnd:
|
|
144
|
+
min,
|
|
145
|
+
max,
|
|
146
|
+
inverted,
|
|
147
|
+
onSlideStart: disabled ? void 0 : handleSlideStart,
|
|
148
|
+
onSlideMove: disabled ? void 0 : handleSlideMove,
|
|
149
|
+
onSlideEnd: disabled ? void 0 : handleSlideEnd,
|
|
123
150
|
onHomeKeyDown: () => {
|
|
124
|
-
|
|
151
|
+
if (!disabled) {
|
|
152
|
+
isKeyboardInteractionRef.current = true;
|
|
153
|
+
updateValues(min, 0, { commit: true });
|
|
154
|
+
}
|
|
125
155
|
},
|
|
126
156
|
onEndKeyDown: () => {
|
|
127
|
-
|
|
157
|
+
if (!disabled) {
|
|
158
|
+
isKeyboardInteractionRef.current = true;
|
|
159
|
+
updateValues(max, values.length - 1, { commit: true });
|
|
160
|
+
}
|
|
128
161
|
},
|
|
129
|
-
onStepKeyDown: ({ event
|
|
130
|
-
if (!
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
162
|
+
onStepKeyDown: ({ event, direction: stepDirection }) => {
|
|
163
|
+
if (!disabled) {
|
|
164
|
+
isKeyboardInteractionRef.current = true;
|
|
165
|
+
const multiplier = PAGE_KEYS.includes(event.key) || event.shiftKey && ARROW_KEYS.includes(event.key) ? 10 : 1;
|
|
166
|
+
const atIndex = valueIndexToChangeRef.current;
|
|
167
|
+
const value2 = values[atIndex];
|
|
168
|
+
updateValues(getNextStepValue(value2, {
|
|
169
|
+
min,
|
|
170
|
+
step,
|
|
171
|
+
direction: stepDirection,
|
|
172
|
+
multiplier
|
|
173
|
+
}), atIndex, { commit: true });
|
|
139
174
|
}
|
|
140
175
|
}
|
|
141
176
|
})
|
|
142
177
|
})
|
|
143
178
|
})
|
|
144
179
|
});
|
|
145
|
-
}, "Slider"))
|
|
180
|
+
}, "Slider"));
|
|
181
|
+
var [SliderOrientationProvider, useSliderOrientationContext] = createSliderContext(SLIDER_NAME, {
|
|
146
182
|
startEdge: "left",
|
|
147
183
|
endEdge: "right",
|
|
148
184
|
size: "width",
|
|
149
185
|
direction: 1
|
|
150
|
-
})
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
186
|
+
});
|
|
187
|
+
var SliderHorizontal = /* @__PURE__ */ React$1.forwardRef(/* @__PURE__ */ __name(function SliderHorizontal2(props, forwardedRef) {
|
|
188
|
+
const { min, max, dir, inverted, onSlideStart, onSlideMove, onSlideEnd, onStepKeyDown, ...sliderProps } = props;
|
|
189
|
+
const [slider, setSlider] = React$1.useState(null);
|
|
190
|
+
const composedRefs = useComposedRefs(forwardedRef, setSlider);
|
|
191
|
+
const rectRef = React$1.useRef(void 0);
|
|
192
|
+
const direction = useDirection(dir);
|
|
193
|
+
const isDirectionLTR = direction === "ltr";
|
|
194
|
+
const isSlidingFromLeft = isDirectionLTR && !inverted || !isDirectionLTR && inverted;
|
|
195
|
+
function getValueFromPointer(pointerPosition) {
|
|
196
|
+
const rect = rectRef.current || slider.getBoundingClientRect();
|
|
197
|
+
const value = linearScale([0, rect.width], isSlidingFromLeft ? [min, max] : [max, min]);
|
|
198
|
+
rectRef.current = rect;
|
|
199
|
+
return value(pointerPosition - rect.left);
|
|
155
200
|
}
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
201
|
+
__name(getValueFromPointer, "getValueFromPointer");
|
|
202
|
+
return /* @__PURE__ */ jsx(SliderOrientationProvider, {
|
|
203
|
+
scope: props.__scopeSlider,
|
|
204
|
+
startEdge: isSlidingFromLeft ? "left" : "right",
|
|
205
|
+
endEdge: isSlidingFromLeft ? "right" : "left",
|
|
206
|
+
direction: isSlidingFromLeft ? 1 : -1,
|
|
161
207
|
size: "width",
|
|
162
|
-
children: /* @__PURE__ */
|
|
163
|
-
dir:
|
|
208
|
+
children: /* @__PURE__ */ jsx(SliderImpl, {
|
|
209
|
+
dir: direction,
|
|
164
210
|
"data-orientation": "horizontal",
|
|
165
|
-
...
|
|
166
|
-
ref:
|
|
211
|
+
...sliderProps,
|
|
212
|
+
ref: composedRefs,
|
|
167
213
|
style: {
|
|
168
|
-
...
|
|
214
|
+
...sliderProps.style,
|
|
169
215
|
"--radix-slider-thumb-transform": "translateX(-50%)"
|
|
170
216
|
},
|
|
171
|
-
onSlideStart: (
|
|
172
|
-
|
|
173
|
-
|
|
217
|
+
onSlideStart: (event) => {
|
|
218
|
+
const value = getValueFromPointer(event.clientX);
|
|
219
|
+
onSlideStart?.(value);
|
|
174
220
|
},
|
|
175
|
-
onSlideMove: (
|
|
176
|
-
|
|
177
|
-
|
|
221
|
+
onSlideMove: (event) => {
|
|
222
|
+
const value = getValueFromPointer(event.clientX);
|
|
223
|
+
onSlideMove?.(value);
|
|
178
224
|
},
|
|
179
225
|
onSlideEnd: () => {
|
|
180
|
-
|
|
226
|
+
rectRef.current = void 0;
|
|
227
|
+
onSlideEnd?.();
|
|
181
228
|
},
|
|
182
|
-
onStepKeyDown: (
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
event
|
|
186
|
-
direction:
|
|
229
|
+
onStepKeyDown: (event) => {
|
|
230
|
+
const isBackKey = BACK_KEYS[isSlidingFromLeft ? "from-left" : "from-right"].includes(event.key);
|
|
231
|
+
onStepKeyDown?.({
|
|
232
|
+
event,
|
|
233
|
+
direction: isBackKey ? -1 : 1
|
|
187
234
|
});
|
|
188
235
|
}
|
|
189
236
|
})
|
|
190
237
|
});
|
|
191
|
-
}, "SliderHorizontal"))
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
238
|
+
}, "SliderHorizontal"));
|
|
239
|
+
var SliderVertical = /* @__PURE__ */ React$1.forwardRef(/* @__PURE__ */ __name(function SliderVertical2(props, forwardedRef) {
|
|
240
|
+
const { min, max, inverted, onSlideStart, onSlideMove, onSlideEnd, onStepKeyDown, ...sliderProps } = props;
|
|
241
|
+
const sliderRef = React$1.useRef(null);
|
|
242
|
+
const ref = useComposedRefs(forwardedRef, sliderRef);
|
|
243
|
+
const rectRef = React$1.useRef(void 0);
|
|
244
|
+
const isSlidingFromBottom = !inverted;
|
|
245
|
+
function getValueFromPointer(pointerPosition) {
|
|
246
|
+
const rect = rectRef.current || sliderRef.current.getBoundingClientRect();
|
|
247
|
+
const value = linearScale([0, rect.height], isSlidingFromBottom ? [max, min] : [min, max]);
|
|
248
|
+
rectRef.current = rect;
|
|
249
|
+
return value(pointerPosition - rect.top);
|
|
196
250
|
}
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
251
|
+
__name(getValueFromPointer, "getValueFromPointer");
|
|
252
|
+
return /* @__PURE__ */ jsx(SliderOrientationProvider, {
|
|
253
|
+
scope: props.__scopeSlider,
|
|
254
|
+
startEdge: isSlidingFromBottom ? "bottom" : "top",
|
|
255
|
+
endEdge: isSlidingFromBottom ? "top" : "bottom",
|
|
201
256
|
size: "height",
|
|
202
|
-
direction:
|
|
203
|
-
children: /* @__PURE__ */
|
|
257
|
+
direction: isSlidingFromBottom ? 1 : -1,
|
|
258
|
+
children: /* @__PURE__ */ jsx(SliderImpl, {
|
|
204
259
|
"data-orientation": "vertical",
|
|
205
|
-
...
|
|
206
|
-
ref
|
|
260
|
+
...sliderProps,
|
|
261
|
+
ref,
|
|
207
262
|
style: {
|
|
208
|
-
...
|
|
263
|
+
...sliderProps.style,
|
|
209
264
|
"--radix-slider-thumb-transform": "translateY(50%)"
|
|
210
265
|
},
|
|
211
|
-
onSlideStart: (
|
|
212
|
-
|
|
213
|
-
|
|
266
|
+
onSlideStart: (event) => {
|
|
267
|
+
const value = getValueFromPointer(event.clientY);
|
|
268
|
+
onSlideStart?.(value);
|
|
214
269
|
},
|
|
215
|
-
onSlideMove: (
|
|
216
|
-
|
|
217
|
-
|
|
270
|
+
onSlideMove: (event) => {
|
|
271
|
+
const value = getValueFromPointer(event.clientY);
|
|
272
|
+
onSlideMove?.(value);
|
|
218
273
|
},
|
|
219
274
|
onSlideEnd: () => {
|
|
220
|
-
|
|
275
|
+
rectRef.current = void 0;
|
|
276
|
+
onSlideEnd?.();
|
|
221
277
|
},
|
|
222
|
-
onStepKeyDown: (
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
event
|
|
226
|
-
direction:
|
|
278
|
+
onStepKeyDown: (event) => {
|
|
279
|
+
const isBackKey = BACK_KEYS[isSlidingFromBottom ? "from-bottom" : "from-top"].includes(event.key);
|
|
280
|
+
onStepKeyDown?.({
|
|
281
|
+
event,
|
|
282
|
+
direction: isBackKey ? -1 : 1
|
|
227
283
|
});
|
|
228
284
|
}
|
|
229
285
|
})
|
|
230
286
|
});
|
|
231
|
-
}, "SliderVertical"))
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
287
|
+
}, "SliderVertical"));
|
|
288
|
+
var SliderImpl = /* @__PURE__ */ React$1.forwardRef(/* @__PURE__ */ __name(function SliderImpl2(props, forwardedRef) {
|
|
289
|
+
const { __scopeSlider, onSlideStart, onSlideMove, onSlideEnd, onHomeKeyDown, onEndKeyDown, onStepKeyDown, ...sliderProps } = props;
|
|
290
|
+
const context = useSliderContext(SLIDER_NAME, __scopeSlider);
|
|
291
|
+
return /* @__PURE__ */ jsx(Primitive.span, {
|
|
292
|
+
...sliderProps,
|
|
293
|
+
ref: forwardedRef,
|
|
294
|
+
onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {
|
|
295
|
+
if (event.key === "Home") {
|
|
296
|
+
onHomeKeyDown(event);
|
|
297
|
+
event.preventDefault();
|
|
298
|
+
} else if (event.key === "End") {
|
|
299
|
+
onEndKeyDown(event);
|
|
300
|
+
event.preventDefault();
|
|
301
|
+
} else if (PAGE_KEYS.concat(ARROW_KEYS).includes(event.key)) {
|
|
302
|
+
onStepKeyDown(event);
|
|
303
|
+
event.preventDefault();
|
|
304
|
+
}
|
|
238
305
|
}),
|
|
239
|
-
onPointerDown:
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
306
|
+
onPointerDown: composeEventHandlers(props.onPointerDown, (event) => {
|
|
307
|
+
const target = event.target;
|
|
308
|
+
target.setPointerCapture(event.pointerId);
|
|
309
|
+
event.preventDefault();
|
|
310
|
+
if (context.thumbs.has(target)) target.focus({
|
|
311
|
+
preventScroll: true,
|
|
312
|
+
focusVisible: false
|
|
313
|
+
});
|
|
314
|
+
else onSlideStart(event);
|
|
245
315
|
}),
|
|
246
|
-
onPointerMove:
|
|
247
|
-
|
|
316
|
+
onPointerMove: composeEventHandlers(props.onPointerMove, (event) => {
|
|
317
|
+
if (event.target.hasPointerCapture(event.pointerId)) onSlideMove(event);
|
|
248
318
|
}),
|
|
249
|
-
onPointerUp:
|
|
250
|
-
|
|
251
|
-
|
|
319
|
+
onPointerUp: composeEventHandlers(props.onPointerUp, (event) => {
|
|
320
|
+
const target = event.target;
|
|
321
|
+
if (target.hasPointerCapture(event.pointerId)) {
|
|
322
|
+
target.releasePointerCapture(event.pointerId);
|
|
323
|
+
onSlideEnd(event);
|
|
324
|
+
}
|
|
252
325
|
})
|
|
253
326
|
});
|
|
254
|
-
}, "SliderImpl"))
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
327
|
+
}, "SliderImpl"));
|
|
328
|
+
var TRACK_NAME = "SliderTrack";
|
|
329
|
+
var SliderTrack = /* @__PURE__ */ React$1.forwardRef(/* @__PURE__ */ __name(function SliderTrack2(props, forwardedRef) {
|
|
330
|
+
const { __scopeSlider, ...trackProps } = props;
|
|
331
|
+
const context = useSliderContext(TRACK_NAME, __scopeSlider);
|
|
332
|
+
return /* @__PURE__ */ jsx(Primitive.span, {
|
|
333
|
+
"data-disabled": context.disabled ? "" : void 0,
|
|
334
|
+
"data-orientation": context.orientation,
|
|
335
|
+
...trackProps,
|
|
336
|
+
ref: forwardedRef
|
|
261
337
|
});
|
|
262
|
-
}, "SliderTrack"))
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
338
|
+
}, "SliderTrack"));
|
|
339
|
+
var RANGE_NAME = "SliderRange";
|
|
340
|
+
var SliderRange = /* @__PURE__ */ React$1.forwardRef(/* @__PURE__ */ __name(function SliderRange2(props, forwardedRef) {
|
|
341
|
+
const { __scopeSlider, ...rangeProps } = props;
|
|
342
|
+
const context = useSliderContext(RANGE_NAME, __scopeSlider);
|
|
343
|
+
const orientation = useSliderOrientationContext(RANGE_NAME, __scopeSlider);
|
|
344
|
+
const ref = React$1.useRef(null);
|
|
345
|
+
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
346
|
+
const valuesCount = context.values.length;
|
|
347
|
+
const percentages = context.values.map((value) => convertValueToPercentage(value, context.min, context.max));
|
|
348
|
+
const offsetStart = valuesCount > 1 ? Math.min(...percentages) : 0;
|
|
349
|
+
const offsetEnd = 100 - Math.max(...percentages);
|
|
350
|
+
return /* @__PURE__ */ jsx(Primitive.span, {
|
|
351
|
+
"data-orientation": context.orientation,
|
|
352
|
+
"data-disabled": context.disabled ? "" : void 0,
|
|
353
|
+
...rangeProps,
|
|
354
|
+
ref: composedRefs,
|
|
269
355
|
style: {
|
|
270
|
-
...
|
|
271
|
-
[
|
|
272
|
-
[
|
|
356
|
+
...props.style,
|
|
357
|
+
[orientation.startEdge]: offsetStart + "%",
|
|
358
|
+
[orientation.endEdge]: offsetEnd + "%"
|
|
273
359
|
}
|
|
274
360
|
});
|
|
275
|
-
}, "SliderRange"))
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
361
|
+
}, "SliderRange"));
|
|
362
|
+
var [SliderThumbContextProvider, useSliderThumbContext] = createSliderContext("SliderThumb");
|
|
363
|
+
var THUMB_PROVIDER_NAME = "SliderThumbProvider";
|
|
364
|
+
function SliderThumbProvider(props) {
|
|
365
|
+
const { __scopeSlider, name, children, internal_do_not_use_render } = props;
|
|
366
|
+
const context = useSliderContext(THUMB_PROVIDER_NAME, __scopeSlider);
|
|
367
|
+
const getItems = useCollection(__scopeSlider);
|
|
368
|
+
const [thumb, setThumb] = React$1.useState(null);
|
|
369
|
+
const index = React$1.useMemo(() => thumb ? getItems().findIndex((item) => item.ref.current === thumb) : -1, [getItems, thumb]);
|
|
370
|
+
const size = useSize(thumb);
|
|
371
|
+
const isFormControl = thumb ? !!context.form || !!thumb.closest("form") : true;
|
|
372
|
+
const value = context.values[index];
|
|
373
|
+
const resolvedName = name ?? (context.name ? context.name + (context.values.length > 1 ? "[]" : "") : void 0);
|
|
374
|
+
const percent = value === void 0 ? 0 : convertValueToPercentage(value, context.min, context.max);
|
|
375
|
+
React$1.useEffect(() => {
|
|
376
|
+
if (thumb) {
|
|
377
|
+
context.thumbs.add(thumb);
|
|
378
|
+
return () => {
|
|
379
|
+
context.thumbs.delete(thumb);
|
|
380
|
+
};
|
|
381
|
+
}
|
|
382
|
+
}, [thumb, context.thumbs]);
|
|
383
|
+
const thumbContext = {
|
|
384
|
+
value,
|
|
385
|
+
name: resolvedName,
|
|
386
|
+
form: context.form,
|
|
387
|
+
isFormControl,
|
|
388
|
+
index,
|
|
389
|
+
thumb,
|
|
390
|
+
onThumbChange: setThumb,
|
|
391
|
+
percent,
|
|
392
|
+
size
|
|
293
393
|
};
|
|
294
|
-
return /* @__PURE__ */
|
|
295
|
-
scope:
|
|
296
|
-
...
|
|
297
|
-
children:
|
|
394
|
+
return /* @__PURE__ */ jsx(SliderThumbContextProvider, {
|
|
395
|
+
scope: __scopeSlider,
|
|
396
|
+
...thumbContext,
|
|
397
|
+
children: isFunction(internal_do_not_use_render) ? internal_do_not_use_render(thumbContext) : children
|
|
298
398
|
});
|
|
299
399
|
}
|
|
300
|
-
|
|
301
|
-
var
|
|
302
|
-
|
|
303
|
-
|
|
400
|
+
__name(SliderThumbProvider, "SliderThumbProvider");
|
|
401
|
+
var THUMB_TRIGGER_NAME = "SliderThumbTrigger";
|
|
402
|
+
var SliderThumbTrigger = /* @__PURE__ */ React$1.forwardRef(/* @__PURE__ */ __name(function SliderThumbTrigger2(props, forwardedRef) {
|
|
403
|
+
const { __scopeSlider, ...thumbProps } = props;
|
|
404
|
+
const context = useSliderContext(THUMB_TRIGGER_NAME, __scopeSlider);
|
|
405
|
+
const orientation = useSliderOrientationContext(THUMB_TRIGGER_NAME, __scopeSlider);
|
|
406
|
+
const { index, value, percent, size, onThumbChange } = useSliderThumbContext(THUMB_TRIGGER_NAME, __scopeSlider);
|
|
407
|
+
const composedRefs = useComposedRefs(forwardedRef, onThumbChange);
|
|
408
|
+
const label = getLabel(index, context.values.length);
|
|
409
|
+
const orientationSize = size?.[orientation.size];
|
|
410
|
+
const thumbInBoundsOffset = orientationSize ? getThumbInBoundsOffset(orientationSize, percent, orientation.direction) : 0;
|
|
411
|
+
return /* @__PURE__ */ jsx("span", {
|
|
304
412
|
style: {
|
|
305
413
|
transform: "var(--radix-slider-thumb-transform)",
|
|
306
414
|
position: "absolute",
|
|
307
|
-
[
|
|
415
|
+
[orientation.startEdge]: `calc(${percent}% + ${thumbInBoundsOffset}px)`
|
|
308
416
|
},
|
|
309
|
-
children: /* @__PURE__ */
|
|
310
|
-
scope:
|
|
311
|
-
children: /* @__PURE__ */
|
|
417
|
+
children: /* @__PURE__ */ jsx(Collection.ItemSlot, {
|
|
418
|
+
scope: __scopeSlider,
|
|
419
|
+
children: /* @__PURE__ */ jsx(Primitive.span, {
|
|
312
420
|
role: "slider",
|
|
313
|
-
"aria-label":
|
|
314
|
-
"aria-valuemin":
|
|
315
|
-
"aria-valuenow":
|
|
316
|
-
"aria-valuemax":
|
|
317
|
-
"aria-orientation":
|
|
318
|
-
"data-orientation":
|
|
319
|
-
"data-disabled":
|
|
320
|
-
tabIndex:
|
|
321
|
-
...
|
|
322
|
-
ref:
|
|
323
|
-
style:
|
|
324
|
-
onFocus:
|
|
325
|
-
|
|
421
|
+
"aria-label": props["aria-label"] || label,
|
|
422
|
+
"aria-valuemin": context.min,
|
|
423
|
+
"aria-valuenow": value,
|
|
424
|
+
"aria-valuemax": context.max,
|
|
425
|
+
"aria-orientation": context.orientation,
|
|
426
|
+
"data-orientation": context.orientation,
|
|
427
|
+
"data-disabled": context.disabled ? "" : void 0,
|
|
428
|
+
tabIndex: context.disabled ? void 0 : 0,
|
|
429
|
+
...thumbProps,
|
|
430
|
+
ref: composedRefs,
|
|
431
|
+
style: value === void 0 ? { display: "none" } : props.style,
|
|
432
|
+
onFocus: composeEventHandlers(props.onFocus, () => {
|
|
433
|
+
context.valueIndexToChangeRef.current = index;
|
|
326
434
|
})
|
|
327
435
|
})
|
|
328
436
|
})
|
|
329
437
|
});
|
|
330
|
-
}, "SliderThumbTrigger"))
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
438
|
+
}, "SliderThumbTrigger"));
|
|
439
|
+
var SliderThumb = /* @__PURE__ */ React$1.forwardRef(/* @__PURE__ */ __name(function SliderThumb2(props, forwardedRef) {
|
|
440
|
+
const { __scopeSlider, name, ...thumbProps } = props;
|
|
441
|
+
return /* @__PURE__ */ jsx(SliderThumbProvider, {
|
|
442
|
+
__scopeSlider,
|
|
443
|
+
name,
|
|
444
|
+
internal_do_not_use_render: ({ index, isFormControl }) => /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(SliderThumbTrigger, {
|
|
445
|
+
...thumbProps,
|
|
446
|
+
ref: forwardedRef,
|
|
447
|
+
__scopeSlider
|
|
448
|
+
}), isFormControl ? /* @__PURE__ */ jsx(SliderBubbleInput, { __scopeSlider }, index) : null] })
|
|
340
449
|
});
|
|
341
|
-
}, "SliderThumb"))
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
450
|
+
}, "SliderThumb"));
|
|
451
|
+
var BUBBLE_INPUT_NAME = "SliderBubbleInput";
|
|
452
|
+
var SliderBubbleInput = /* @__PURE__ */ React$1.forwardRef(/* @__PURE__ */ __name(function SliderBubbleInput2({ __scopeSlider, ...props }, forwardedRef) {
|
|
453
|
+
const { value, name, form } = useSliderThumbContext(BUBBLE_INPUT_NAME, __scopeSlider);
|
|
454
|
+
const ref = React$1.useRef(null);
|
|
455
|
+
const composedRefs = useComposedRefs(ref, forwardedRef);
|
|
456
|
+
const prevValue = usePrevious(value);
|
|
457
|
+
React$1.useEffect(() => {
|
|
458
|
+
const input = ref.current;
|
|
459
|
+
if (!input) return;
|
|
460
|
+
const inputProto = window.HTMLInputElement.prototype;
|
|
461
|
+
const setValue = Object.getOwnPropertyDescriptor(inputProto, "value").set;
|
|
462
|
+
if (prevValue !== value && setValue) {
|
|
463
|
+
const event = new Event("input", { bubbles: true });
|
|
464
|
+
setValue.call(input, value);
|
|
465
|
+
input.dispatchEvent(event);
|
|
350
466
|
}
|
|
351
|
-
}, [
|
|
467
|
+
}, [prevValue, value]);
|
|
468
|
+
return /* @__PURE__ */ jsx(Primitive.input, {
|
|
352
469
|
style: { display: "none" },
|
|
353
|
-
name
|
|
354
|
-
form
|
|
355
|
-
...
|
|
356
|
-
ref:
|
|
357
|
-
defaultValue:
|
|
470
|
+
name,
|
|
471
|
+
form,
|
|
472
|
+
...props,
|
|
473
|
+
ref: composedRefs,
|
|
474
|
+
defaultValue: value
|
|
358
475
|
});
|
|
359
476
|
}, "SliderBubbleInput"));
|
|
360
|
-
function
|
|
361
|
-
|
|
362
|
-
|
|
477
|
+
function getNextSortedValues(prevValues = [], nextValue, atIndex) {
|
|
478
|
+
const nextValues = [...prevValues];
|
|
479
|
+
nextValues[atIndex] = nextValue;
|
|
480
|
+
return nextValues.sort((a, b) => a - b);
|
|
363
481
|
}
|
|
364
|
-
|
|
365
|
-
function
|
|
366
|
-
|
|
367
|
-
return
|
|
482
|
+
__name(getNextSortedValues, "getNextSortedValues");
|
|
483
|
+
function convertValueToPercentage(value, min, max) {
|
|
484
|
+
const percentage = 100 / (max - min) * (value - min);
|
|
485
|
+
return clamp(percentage, [0, 100]);
|
|
368
486
|
}
|
|
369
|
-
|
|
370
|
-
function
|
|
371
|
-
if (
|
|
372
|
-
if (
|
|
487
|
+
__name(convertValueToPercentage, "convertValueToPercentage");
|
|
488
|
+
function getLabel(index, totalValues) {
|
|
489
|
+
if (totalValues > 2) return `Value ${index + 1} of ${totalValues}`;
|
|
490
|
+
else if (totalValues === 2) return ["Minimum", "Maximum"][index];
|
|
491
|
+
else return;
|
|
373
492
|
}
|
|
374
|
-
|
|
375
|
-
function
|
|
376
|
-
if (
|
|
377
|
-
|
|
378
|
-
|
|
493
|
+
__name(getLabel, "getLabel");
|
|
494
|
+
function getClosestValueIndex(values, nextValue) {
|
|
495
|
+
if (values.length === 1) return 0;
|
|
496
|
+
const distances = values.map((value) => Math.abs(value - nextValue));
|
|
497
|
+
const closestDistance = Math.min(...distances);
|
|
498
|
+
return distances.indexOf(closestDistance);
|
|
379
499
|
}
|
|
380
|
-
|
|
381
|
-
function
|
|
382
|
-
|
|
383
|
-
return (
|
|
500
|
+
__name(getClosestValueIndex, "getClosestValueIndex");
|
|
501
|
+
function getThumbInBoundsOffset(width, left, direction) {
|
|
502
|
+
const halfWidth = width / 2;
|
|
503
|
+
return (halfWidth - linearScale([0, 50], [0, halfWidth])(left) * direction) * direction;
|
|
384
504
|
}
|
|
385
|
-
|
|
386
|
-
function
|
|
387
|
-
return
|
|
505
|
+
__name(getThumbInBoundsOffset, "getThumbInBoundsOffset");
|
|
506
|
+
function getStepsBetweenValues(values) {
|
|
507
|
+
return values.slice(0, -1).map((value, index) => values[index + 1] - value);
|
|
388
508
|
}
|
|
389
|
-
|
|
390
|
-
function
|
|
391
|
-
if (
|
|
392
|
-
|
|
393
|
-
return Math.min(...
|
|
509
|
+
__name(getStepsBetweenValues, "getStepsBetweenValues");
|
|
510
|
+
function hasMinStepsBetweenValues(values, minStepsBetweenValues) {
|
|
511
|
+
if (minStepsBetweenValues > 0) {
|
|
512
|
+
const stepsBetweenValues = getStepsBetweenValues(values);
|
|
513
|
+
return Math.min(...stepsBetweenValues) >= minStepsBetweenValues;
|
|
394
514
|
}
|
|
395
|
-
return
|
|
515
|
+
return true;
|
|
396
516
|
}
|
|
397
|
-
|
|
398
|
-
function
|
|
399
|
-
return (
|
|
400
|
-
if (
|
|
401
|
-
|
|
402
|
-
return
|
|
517
|
+
__name(hasMinStepsBetweenValues, "hasMinStepsBetweenValues");
|
|
518
|
+
function linearScale(input, output) {
|
|
519
|
+
return (value) => {
|
|
520
|
+
if (input[0] === input[1] || output[0] === output[1]) return output[0];
|
|
521
|
+
const ratio = (output[1] - output[0]) / (input[1] - input[0]);
|
|
522
|
+
return output[0] + ratio * (value - input[0]);
|
|
403
523
|
};
|
|
404
524
|
}
|
|
405
|
-
|
|
406
|
-
function
|
|
407
|
-
if (!Number.isFinite(
|
|
408
|
-
|
|
409
|
-
if (
|
|
410
|
-
|
|
411
|
-
|
|
525
|
+
__name(linearScale, "linearScale");
|
|
526
|
+
function getDecimalCount(value) {
|
|
527
|
+
if (!Number.isFinite(value)) return 0;
|
|
528
|
+
const str = value.toString();
|
|
529
|
+
if (str.includes("e")) {
|
|
530
|
+
const [coefficient, exponent] = str.split("e");
|
|
531
|
+
const decimalPart2 = coefficient.split(".")[1] || "";
|
|
532
|
+
const exponentNum = Number(exponent);
|
|
533
|
+
return Math.max(0, decimalPart2.length - exponentNum);
|
|
412
534
|
}
|
|
413
|
-
|
|
414
|
-
return
|
|
535
|
+
const decimalPart = str.split(".")[1];
|
|
536
|
+
return decimalPart ? decimalPart.length : 0;
|
|
415
537
|
}
|
|
416
|
-
|
|
417
|
-
function
|
|
418
|
-
|
|
419
|
-
return Math.round(
|
|
538
|
+
__name(getDecimalCount, "getDecimalCount");
|
|
539
|
+
function roundValue(value, decimalCount) {
|
|
540
|
+
const rounder = Math.pow(10, decimalCount);
|
|
541
|
+
return Math.round(value * rounder) / rounder;
|
|
420
542
|
}
|
|
421
|
-
|
|
422
|
-
function
|
|
423
|
-
|
|
424
|
-
|
|
543
|
+
__name(roundValue, "roundValue");
|
|
544
|
+
function getNextStepValue(value, { min, step, direction, multiplier }) {
|
|
545
|
+
const decimalCount = getDecimalCount(step);
|
|
546
|
+
const stepsFromMin = (value - min) / step;
|
|
547
|
+
const nearestSteps = Math.round(stepsFromMin);
|
|
548
|
+
const isAligned = roundValue(nearestSteps * step + min, decimalCount) === roundValue(value, decimalCount);
|
|
549
|
+
let nextSteps;
|
|
550
|
+
if (isAligned) nextSteps = nearestSteps + multiplier * direction;
|
|
551
|
+
else if (direction > 0) nextSteps = Math.ceil(stepsFromMin);
|
|
552
|
+
else nextSteps = Math.floor(stepsFromMin);
|
|
553
|
+
return roundValue(nextSteps * step + min, decimalCount);
|
|
425
554
|
}
|
|
426
|
-
|
|
427
|
-
function
|
|
428
|
-
return typeof
|
|
555
|
+
__name(getNextStepValue, "getNextStepValue");
|
|
556
|
+
function isFunction(value) {
|
|
557
|
+
return typeof value === "function";
|
|
429
558
|
}
|
|
430
|
-
|
|
431
|
-
export {
|
|
559
|
+
__name(isFunction, "isFunction");
|
|
560
|
+
export { SliderRange as Range, SliderRange, Slider as Root, Slider, SliderThumb, SliderThumb as Thumb, SliderTrack, SliderTrack as Track, SliderBubbleInput as unstable_BubbleInput, SliderBubbleInput as unstable_SliderBubbleInput, SliderThumbProvider as unstable_SliderThumbProvider, SliderThumbProvider as unstable_ThumbProvider, SliderThumbTrigger as unstable_SliderThumbTrigger, SliderThumbTrigger as unstable_ThumbTrigger };
|