@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,233 +1,326 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { createContextScope
|
|
3
|
-
import { useComposedRefs
|
|
4
|
-
import { composeEventHandlers
|
|
5
|
-
import { Primitive
|
|
6
|
-
import { useCallbackRef
|
|
7
|
-
import { Presence
|
|
8
|
-
import { useId as
|
|
9
|
-
import { createCollection
|
|
10
|
-
import { useDirection
|
|
11
|
-
import { DismissableLayer
|
|
12
|
-
import { useFocusGuards
|
|
13
|
-
import { FocusScope
|
|
14
|
-
import { Anchor
|
|
15
|
-
import { Portal as
|
|
16
|
-
import { Item
|
|
17
|
-
import { hideOthers
|
|
18
|
-
import
|
|
19
|
-
import { jsx
|
|
20
|
-
import * as
|
|
21
|
-
import { createSlot
|
|
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, dispatchDiscreteCustomEvent } 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 { useCallbackRef } from "../../../../../@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";
|
|
7
|
+
import { Presence } from "../../../../../@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";
|
|
8
|
+
import { useId as useId$1 } from "../../../../../@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";
|
|
9
|
+
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";
|
|
10
|
+
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";
|
|
11
|
+
import { DismissableLayer } from "../../../../../@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";
|
|
12
|
+
import { useFocusGuards } from "../../../../../@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";
|
|
13
|
+
import { FocusScope } from "../../../../../@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";
|
|
14
|
+
import { Anchor, Content, Root as Root2, createPopperScope } from "../../../../../@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";
|
|
15
|
+
import { Portal as Portal$1 } from "../../../../../@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";
|
|
16
|
+
import { Item, Root, createRovingFocusGroupScope } from "../../../../../@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";
|
|
17
|
+
import { hideOthers } from "../../../../../aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js";
|
|
18
|
+
import ReactRemoveScroll from "../../../../../react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/Combination.js";
|
|
19
|
+
import { jsx } from "react/jsx-runtime";
|
|
20
|
+
import * as React$1 from "react";
|
|
21
|
+
import { createSlot } from "@radix-ui/react-slot";
|
|
22
22
|
// ../../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.mjs
|
|
23
|
-
var
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
var __defProp = Object.defineProperty;
|
|
24
|
+
var __name = (target, value) => __defProp(target, "name", {
|
|
25
|
+
value,
|
|
26
|
+
configurable: true
|
|
27
|
+
});
|
|
28
|
+
var SELECTION_KEYS = ["Enter", " "];
|
|
29
|
+
var FIRST_KEYS = [
|
|
27
30
|
"ArrowDown",
|
|
28
31
|
"PageUp",
|
|
29
32
|
"Home"
|
|
30
|
-
]
|
|
33
|
+
];
|
|
34
|
+
var LAST_KEYS = [
|
|
31
35
|
"ArrowUp",
|
|
32
36
|
"PageDown",
|
|
33
37
|
"End"
|
|
34
|
-
]
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
+
];
|
|
39
|
+
var FIRST_LAST_KEYS = [...FIRST_KEYS, ...LAST_KEYS];
|
|
40
|
+
var SUB_OPEN_KEYS = {
|
|
41
|
+
ltr: [...SELECTION_KEYS, "ArrowRight"],
|
|
42
|
+
rtl: [...SELECTION_KEYS, "ArrowLeft"]
|
|
43
|
+
};
|
|
44
|
+
var SUB_CLOSE_KEYS = {
|
|
38
45
|
ltr: ["ArrowLeft"],
|
|
39
46
|
rtl: ["ArrowRight"]
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
47
|
+
};
|
|
48
|
+
var MENU_NAME = "Menu";
|
|
49
|
+
var [Collection, useCollection, createCollectionScope] = createCollection(MENU_NAME);
|
|
50
|
+
var [createMenuContext, createMenuScope] = createContextScope(MENU_NAME, [
|
|
51
|
+
createCollectionScope,
|
|
52
|
+
createPopperScope,
|
|
53
|
+
createRovingFocusGroupScope
|
|
54
|
+
]);
|
|
55
|
+
var usePopperScope = createPopperScope();
|
|
56
|
+
var useRovingFocusGroupScope = createRovingFocusGroupScope();
|
|
57
|
+
var [MenuProvider, useMenuContext] = createMenuContext(MENU_NAME);
|
|
58
|
+
var [MenuRootProvider, useMenuRootContext] = createMenuContext(MENU_NAME);
|
|
59
|
+
var Menu = /* @__PURE__ */ __name((props) => {
|
|
60
|
+
const { __scopeMenu, open = false, children, dir, onOpenChange, modal = true } = props;
|
|
61
|
+
const popperScope = usePopperScope(__scopeMenu);
|
|
62
|
+
const [content, setContent] = React$1.useState(null);
|
|
63
|
+
const isUsingKeyboardRef = React$1.useRef(false);
|
|
64
|
+
const handleOpenChange = useCallbackRef(onOpenChange);
|
|
65
|
+
const direction = useDirection(dir);
|
|
66
|
+
React$1.useEffect(() => {
|
|
67
|
+
const handleKeyDown = /* @__PURE__ */ __name(() => {
|
|
68
|
+
isUsingKeyboardRef.current = true;
|
|
69
|
+
document.addEventListener("pointerdown", handlePointer, {
|
|
70
|
+
capture: true,
|
|
71
|
+
once: true
|
|
54
72
|
});
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
73
|
+
document.addEventListener("pointermove", handlePointer, {
|
|
74
|
+
capture: true,
|
|
75
|
+
once: true
|
|
76
|
+
});
|
|
77
|
+
}, "handleKeyDown");
|
|
78
|
+
const handlePointer = /* @__PURE__ */ __name(() => isUsingKeyboardRef.current = false, "handlePointer");
|
|
79
|
+
document.addEventListener("keydown", handleKeyDown, { capture: true });
|
|
80
|
+
return () => {
|
|
81
|
+
document.removeEventListener("keydown", handleKeyDown, { capture: true });
|
|
82
|
+
document.removeEventListener("pointerdown", handlePointer, { capture: true });
|
|
83
|
+
document.removeEventListener("pointermove", handlePointer, { capture: true });
|
|
58
84
|
};
|
|
59
|
-
}, [])
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
85
|
+
}, []);
|
|
86
|
+
React$1.useEffect(() => {
|
|
87
|
+
if (!open) return;
|
|
88
|
+
const handleBlur = /* @__PURE__ */ __name(() => handleOpenChange(false), "handleBlur");
|
|
89
|
+
window.addEventListener("blur", handleBlur);
|
|
90
|
+
return () => window.removeEventListener("blur", handleBlur);
|
|
91
|
+
}, [open, handleOpenChange]);
|
|
92
|
+
return /* @__PURE__ */ jsx(Root2, {
|
|
93
|
+
...popperScope,
|
|
94
|
+
children: /* @__PURE__ */ jsx(MenuProvider, {
|
|
95
|
+
scope: __scopeMenu,
|
|
96
|
+
open,
|
|
97
|
+
onOpenChange: handleOpenChange,
|
|
98
|
+
content,
|
|
99
|
+
onContentChange: setContent,
|
|
100
|
+
children: /* @__PURE__ */ jsx(MenuRootProvider, {
|
|
101
|
+
scope: __scopeMenu,
|
|
102
|
+
onClose: React$1.useCallback(() => handleOpenChange(false), [handleOpenChange]),
|
|
103
|
+
isUsingKeyboardRef,
|
|
104
|
+
dir: direction,
|
|
105
|
+
modal,
|
|
106
|
+
children
|
|
78
107
|
})
|
|
79
108
|
})
|
|
80
109
|
});
|
|
81
|
-
}, "Menu")
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
110
|
+
}, "Menu");
|
|
111
|
+
var MenuAnchor = /* @__PURE__ */ React$1.forwardRef(/* @__PURE__ */ __name(function MenuAnchor2(props, forwardedRef) {
|
|
112
|
+
const { __scopeMenu, ...anchorProps } = props;
|
|
113
|
+
const popperScope = usePopperScope(__scopeMenu);
|
|
114
|
+
return /* @__PURE__ */ jsx(Anchor, {
|
|
115
|
+
...popperScope,
|
|
116
|
+
...anchorProps,
|
|
117
|
+
ref: forwardedRef
|
|
87
118
|
});
|
|
88
|
-
}, "MenuAnchor"))
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
119
|
+
}, "MenuAnchor"));
|
|
120
|
+
var PORTAL_NAME = "MenuPortal";
|
|
121
|
+
var [PortalProvider, usePortalContext] = createMenuContext(PORTAL_NAME, { forceMount: void 0 });
|
|
122
|
+
var MenuPortal = /* @__PURE__ */ __name((props) => {
|
|
123
|
+
const { __scopeMenu, forceMount, children, container } = props;
|
|
124
|
+
const context = useMenuContext(PORTAL_NAME, __scopeMenu);
|
|
125
|
+
return /* @__PURE__ */ jsx(PortalProvider, {
|
|
126
|
+
scope: __scopeMenu,
|
|
127
|
+
forceMount,
|
|
128
|
+
children: /* @__PURE__ */ jsx(Presence, {
|
|
129
|
+
present: forceMount || context.open,
|
|
130
|
+
children: /* @__PURE__ */ jsx(Portal$1, {
|
|
131
|
+
asChild: true,
|
|
132
|
+
container,
|
|
133
|
+
children
|
|
99
134
|
})
|
|
100
135
|
})
|
|
101
136
|
});
|
|
102
|
-
}, "MenuPortal")
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
137
|
+
}, "MenuPortal");
|
|
138
|
+
var CONTENT_NAME = "MenuContent";
|
|
139
|
+
var [MenuContentProvider, useMenuContentContext] = createMenuContext(CONTENT_NAME);
|
|
140
|
+
var MenuContent = /* @__PURE__ */ React$1.forwardRef(/* @__PURE__ */ __name(function MenuContent2(props, forwardedRef) {
|
|
141
|
+
const portalContext = usePortalContext(CONTENT_NAME, props.__scopeMenu);
|
|
142
|
+
const { forceMount = portalContext.forceMount, ...contentProps } = props;
|
|
143
|
+
const context = useMenuContext(CONTENT_NAME, props.__scopeMenu);
|
|
144
|
+
const rootContext = useMenuRootContext(CONTENT_NAME, props.__scopeMenu);
|
|
145
|
+
return /* @__PURE__ */ jsx(Collection.Provider, {
|
|
146
|
+
scope: props.__scopeMenu,
|
|
147
|
+
children: /* @__PURE__ */ jsx(Presence, {
|
|
148
|
+
present: forceMount || context.open,
|
|
149
|
+
children: /* @__PURE__ */ jsx(Collection.Slot, {
|
|
150
|
+
scope: props.__scopeMenu,
|
|
151
|
+
children: rootContext.modal ? /* @__PURE__ */ jsx(MenuRootContentModal, {
|
|
152
|
+
...contentProps,
|
|
153
|
+
ref: forwardedRef
|
|
154
|
+
}) : /* @__PURE__ */ jsx(MenuRootContentNonModal, {
|
|
155
|
+
...contentProps,
|
|
156
|
+
ref: forwardedRef
|
|
116
157
|
})
|
|
117
158
|
})
|
|
118
159
|
})
|
|
119
160
|
});
|
|
120
|
-
}, "MenuContent"))
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
161
|
+
}, "MenuContent"));
|
|
162
|
+
var MenuRootContentModal = /* @__PURE__ */ React$1.forwardRef(/* @__PURE__ */ __name(function MenuRootContentModal2(props, forwardedRef) {
|
|
163
|
+
const context = useMenuContext(CONTENT_NAME, props.__scopeMenu);
|
|
164
|
+
const ref = React$1.useRef(null);
|
|
165
|
+
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
166
|
+
React$1.useEffect(() => {
|
|
167
|
+
const content = ref.current;
|
|
168
|
+
if (content) return hideOthers(content);
|
|
169
|
+
}, []);
|
|
170
|
+
return /* @__PURE__ */ jsx(MenuContentImpl, {
|
|
171
|
+
...props,
|
|
172
|
+
ref: composedRefs,
|
|
173
|
+
trapFocus: context.open,
|
|
174
|
+
disableOutsidePointerEvents: context.open,
|
|
175
|
+
disableOutsideScroll: true,
|
|
176
|
+
onFocusOutside: composeEventHandlers(props.onFocusOutside, (event) => event.preventDefault(), { checkForDefaultPrevented: false }),
|
|
177
|
+
onDismiss: () => context.onOpenChange(false)
|
|
133
178
|
});
|
|
134
|
-
}, "MenuRootContentModal"))
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
179
|
+
}, "MenuRootContentModal"));
|
|
180
|
+
var MenuRootContentNonModal = /* @__PURE__ */ React$1.forwardRef(/* @__PURE__ */ __name(function MenuRootContentNonModal2(props, forwardedRef) {
|
|
181
|
+
const context = useMenuContext(CONTENT_NAME, props.__scopeMenu);
|
|
182
|
+
return /* @__PURE__ */ jsx(MenuContentImpl, {
|
|
183
|
+
...props,
|
|
184
|
+
ref: forwardedRef,
|
|
185
|
+
trapFocus: false,
|
|
186
|
+
disableOutsidePointerEvents: false,
|
|
187
|
+
disableOutsideScroll: false,
|
|
188
|
+
onDismiss: () => context.onOpenChange(false)
|
|
143
189
|
});
|
|
144
|
-
}, "MenuRootContentNonModal"))
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
190
|
+
}, "MenuRootContentNonModal"));
|
|
191
|
+
var Slot$1 = createSlot("MenuContent.ScrollLock");
|
|
192
|
+
var MenuContentImpl = /* @__PURE__ */ React$1.forwardRef(/* @__PURE__ */ __name(function MenuContentImpl2(props, forwardedRef) {
|
|
193
|
+
const { __scopeMenu, loop = false, trapFocus, onOpenAutoFocus, onCloseAutoFocus, disableOutsidePointerEvents, onEntryFocus, onEscapeKeyDown, onPointerDownOutside, onFocusOutside, onInteractOutside, onDismiss, disableOutsideScroll, ...contentProps } = props;
|
|
194
|
+
const context = useMenuContext(CONTENT_NAME, __scopeMenu);
|
|
195
|
+
const rootContext = useMenuRootContext(CONTENT_NAME, __scopeMenu);
|
|
196
|
+
const popperScope = usePopperScope(__scopeMenu);
|
|
197
|
+
const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeMenu);
|
|
198
|
+
const getItems = useCollection(__scopeMenu);
|
|
199
|
+
const [currentItemId, setCurrentItemId] = React$1.useState(null);
|
|
200
|
+
const contentRef = React$1.useRef(null);
|
|
201
|
+
const composedRefs = useComposedRefs(forwardedRef, contentRef, context.onContentChange);
|
|
202
|
+
const timerRef = React$1.useRef(0);
|
|
203
|
+
const searchRef = React$1.useRef("");
|
|
204
|
+
const pointerGraceTimerRef = React$1.useRef(0);
|
|
205
|
+
const pointerGraceIntentRef = React$1.useRef(null);
|
|
206
|
+
const pointerDirRef = React$1.useRef("right");
|
|
207
|
+
const lastPointerXRef = React$1.useRef(0);
|
|
208
|
+
const ScrollLockWrapper = disableOutsideScroll ? ReactRemoveScroll : React$1.Fragment;
|
|
209
|
+
const scrollLockWrapperProps = disableOutsideScroll ? {
|
|
210
|
+
as: Slot$1,
|
|
211
|
+
allowPinchZoom: true
|
|
212
|
+
} : void 0;
|
|
213
|
+
const handleTypeaheadSearch = /* @__PURE__ */ __name((key) => {
|
|
214
|
+
const search = searchRef.current + key;
|
|
215
|
+
const items = getItems().filter((item) => !item.disabled);
|
|
216
|
+
const currentItem = document.activeElement;
|
|
217
|
+
const currentMatch = items.find((item) => item.ref.current === currentItem)?.textValue;
|
|
218
|
+
const nextMatch = getNextMatch(items.map((item) => item.textValue), search, currentMatch);
|
|
219
|
+
const newItem = items.find((item) => item.textValue === nextMatch)?.ref.current;
|
|
220
|
+
(/* @__PURE__ */ __name((function updateSearch(value) {
|
|
221
|
+
searchRef.current = value;
|
|
222
|
+
window.clearTimeout(timerRef.current);
|
|
223
|
+
if (value !== "") timerRef.current = window.setTimeout(() => updateSearch(""), 1e3);
|
|
224
|
+
}), "updateSearch"))(search);
|
|
225
|
+
if (newItem) setTimeout(() => newItem.focus());
|
|
153
226
|
}, "handleTypeaheadSearch");
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
227
|
+
React$1.useEffect(() => {
|
|
228
|
+
return () => window.clearTimeout(timerRef.current);
|
|
229
|
+
}, []);
|
|
230
|
+
useFocusGuards();
|
|
231
|
+
const isPointerMovingToSubmenu = React$1.useCallback((event) => {
|
|
232
|
+
return pointerDirRef.current === pointerGraceIntentRef.current?.side && isPointerInGraceArea(event, pointerGraceIntentRef.current?.area);
|
|
233
|
+
}, []);
|
|
234
|
+
return /* @__PURE__ */ jsx(MenuContentProvider, {
|
|
235
|
+
scope: __scopeMenu,
|
|
236
|
+
searchRef,
|
|
237
|
+
onItemEnter: React$1.useCallback((event) => {
|
|
238
|
+
if (isPointerMovingToSubmenu(event)) event.preventDefault();
|
|
239
|
+
}, [isPointerMovingToSubmenu]),
|
|
240
|
+
onItemLeave: React$1.useCallback((event) => {
|
|
241
|
+
if (isPointerMovingToSubmenu(event)) return;
|
|
242
|
+
contentRef.current?.focus();
|
|
243
|
+
setCurrentItemId(null);
|
|
244
|
+
}, [isPointerMovingToSubmenu]),
|
|
245
|
+
onTriggerLeave: React$1.useCallback((event) => {
|
|
246
|
+
if (isPointerMovingToSubmenu(event)) event.preventDefault();
|
|
247
|
+
}, [isPointerMovingToSubmenu]),
|
|
248
|
+
pointerGraceTimerRef,
|
|
249
|
+
onPointerGraceIntentChange: React$1.useCallback((intent) => {
|
|
250
|
+
pointerGraceIntentRef.current = intent;
|
|
171
251
|
}, []),
|
|
172
|
-
children: /* @__PURE__ */
|
|
173
|
-
...
|
|
174
|
-
children: /* @__PURE__ */
|
|
175
|
-
asChild:
|
|
176
|
-
trapped:
|
|
177
|
-
onMountAutoFocus:
|
|
178
|
-
|
|
252
|
+
children: /* @__PURE__ */ jsx(ScrollLockWrapper, {
|
|
253
|
+
...scrollLockWrapperProps,
|
|
254
|
+
children: /* @__PURE__ */ jsx(FocusScope, {
|
|
255
|
+
asChild: true,
|
|
256
|
+
trapped: trapFocus,
|
|
257
|
+
onMountAutoFocus: composeEventHandlers(onOpenAutoFocus, (event) => {
|
|
258
|
+
event.preventDefault();
|
|
259
|
+
contentRef.current?.focus({ preventScroll: true });
|
|
179
260
|
}),
|
|
180
|
-
onUnmountAutoFocus:
|
|
181
|
-
children: /* @__PURE__ */
|
|
182
|
-
asChild:
|
|
183
|
-
disableOutsidePointerEvents
|
|
184
|
-
onEscapeKeyDown
|
|
185
|
-
onPointerDownOutside
|
|
186
|
-
onFocusOutside
|
|
187
|
-
onInteractOutside
|
|
188
|
-
onDismiss
|
|
189
|
-
children: /* @__PURE__ */
|
|
190
|
-
asChild:
|
|
191
|
-
...
|
|
192
|
-
dir:
|
|
261
|
+
onUnmountAutoFocus: onCloseAutoFocus,
|
|
262
|
+
children: /* @__PURE__ */ jsx(DismissableLayer, {
|
|
263
|
+
asChild: true,
|
|
264
|
+
disableOutsidePointerEvents,
|
|
265
|
+
onEscapeKeyDown,
|
|
266
|
+
onPointerDownOutside,
|
|
267
|
+
onFocusOutside,
|
|
268
|
+
onInteractOutside,
|
|
269
|
+
onDismiss,
|
|
270
|
+
children: /* @__PURE__ */ jsx(Root, {
|
|
271
|
+
asChild: true,
|
|
272
|
+
...rovingFocusGroupScope,
|
|
273
|
+
dir: rootContext.dir,
|
|
193
274
|
orientation: "vertical",
|
|
194
|
-
loop
|
|
195
|
-
currentTabStopId:
|
|
196
|
-
onCurrentTabStopIdChange:
|
|
197
|
-
onEntryFocus:
|
|
198
|
-
|
|
275
|
+
loop,
|
|
276
|
+
currentTabStopId: currentItemId,
|
|
277
|
+
onCurrentTabStopIdChange: setCurrentItemId,
|
|
278
|
+
onEntryFocus: composeEventHandlers(onEntryFocus, (event) => {
|
|
279
|
+
if (!rootContext.isUsingKeyboardRef.current) event.preventDefault();
|
|
199
280
|
}),
|
|
200
|
-
preventScrollOnEntryFocus:
|
|
201
|
-
children: /* @__PURE__ */
|
|
281
|
+
preventScrollOnEntryFocus: true,
|
|
282
|
+
children: /* @__PURE__ */ jsx(Content, {
|
|
202
283
|
role: "menu",
|
|
203
284
|
"aria-orientation": "vertical",
|
|
204
|
-
"data-state":
|
|
285
|
+
"data-state": getOpenState(context.open),
|
|
205
286
|
"data-radix-menu-content": "",
|
|
206
|
-
dir:
|
|
207
|
-
...
|
|
208
|
-
...
|
|
209
|
-
ref:
|
|
287
|
+
dir: rootContext.dir,
|
|
288
|
+
...popperScope,
|
|
289
|
+
...contentProps,
|
|
290
|
+
ref: composedRefs,
|
|
210
291
|
style: {
|
|
211
292
|
outline: "none",
|
|
212
|
-
...
|
|
293
|
+
...contentProps.style
|
|
213
294
|
},
|
|
214
|
-
onKeyDown:
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
if (
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
295
|
+
onKeyDown: composeEventHandlers(contentProps.onKeyDown, (event) => {
|
|
296
|
+
const isKeyDownInside = event.target.closest("[data-radix-menu-content]") === event.currentTarget;
|
|
297
|
+
const isModifierKey = event.ctrlKey || event.altKey || event.metaKey;
|
|
298
|
+
const isCharacterKey = event.key.length === 1;
|
|
299
|
+
if (isKeyDownInside) {
|
|
300
|
+
if (event.key === "Tab") event.preventDefault();
|
|
301
|
+
if (!isModifierKey && isCharacterKey) handleTypeaheadSearch(event.key);
|
|
302
|
+
}
|
|
303
|
+
const content = contentRef.current;
|
|
304
|
+
if (event.target !== content) return;
|
|
305
|
+
if (!FIRST_LAST_KEYS.includes(event.key)) return;
|
|
306
|
+
event.preventDefault();
|
|
307
|
+
const candidateNodes = getItems().filter((item) => !item.disabled).map((item) => item.ref.current);
|
|
308
|
+
if (LAST_KEYS.includes(event.key)) candidateNodes.reverse();
|
|
309
|
+
focusFirst(candidateNodes);
|
|
222
310
|
}),
|
|
223
|
-
onBlur:
|
|
224
|
-
|
|
311
|
+
onBlur: composeEventHandlers(props.onBlur, (event) => {
|
|
312
|
+
if (!event.currentTarget.contains(event.target)) {
|
|
313
|
+
window.clearTimeout(timerRef.current);
|
|
314
|
+
searchRef.current = "";
|
|
315
|
+
}
|
|
225
316
|
}),
|
|
226
|
-
onPointerMove:
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
317
|
+
onPointerMove: composeEventHandlers(props.onPointerMove, whenMouse((event) => {
|
|
318
|
+
const target = event.target;
|
|
319
|
+
const pointerXHasChanged = lastPointerXRef.current !== event.clientX;
|
|
320
|
+
if (event.currentTarget.contains(target) && pointerXHasChanged) {
|
|
321
|
+
const newDir = event.clientX > lastPointerXRef.current ? "right" : "left";
|
|
322
|
+
pointerDirRef.current = newDir;
|
|
323
|
+
lastPointerXRef.current = event.clientX;
|
|
231
324
|
}
|
|
232
325
|
}))
|
|
233
326
|
})
|
|
@@ -236,308 +329,441 @@ var S = Object.defineProperty, C = (e, t) => S(e, "name", {
|
|
|
236
329
|
})
|
|
237
330
|
})
|
|
238
331
|
});
|
|
239
|
-
}, "MenuContentImpl"))
|
|
240
|
-
|
|
241
|
-
|
|
332
|
+
}, "MenuContentImpl"));
|
|
333
|
+
var MenuGroup = /* @__PURE__ */ React$1.forwardRef(/* @__PURE__ */ __name(function MenuGroup2(props, forwardedRef) {
|
|
334
|
+
const { __scopeMenu, ...groupProps } = props;
|
|
335
|
+
return /* @__PURE__ */ jsx(Primitive.div, {
|
|
242
336
|
role: "group",
|
|
243
|
-
...
|
|
244
|
-
ref:
|
|
337
|
+
...groupProps,
|
|
338
|
+
ref: forwardedRef
|
|
245
339
|
});
|
|
246
|
-
}, "MenuGroup"))
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
340
|
+
}, "MenuGroup"));
|
|
341
|
+
var MenuLabel = /* @__PURE__ */ React$1.forwardRef(/* @__PURE__ */ __name(function MenuLabel2(props, forwardedRef) {
|
|
342
|
+
const { __scopeMenu, ...labelProps } = props;
|
|
343
|
+
return /* @__PURE__ */ jsx(Primitive.div, {
|
|
344
|
+
...labelProps,
|
|
345
|
+
ref: forwardedRef
|
|
251
346
|
});
|
|
252
|
-
}, "MenuLabel"))
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
347
|
+
}, "MenuLabel"));
|
|
348
|
+
var ITEM_NAME = "MenuItem";
|
|
349
|
+
var ITEM_SELECT = "menu.itemSelect";
|
|
350
|
+
var MenuItem = /* @__PURE__ */ React$1.forwardRef(/* @__PURE__ */ __name(function MenuItem2(props, forwardedRef) {
|
|
351
|
+
const { disabled = false, onSelect, ...itemProps } = props;
|
|
352
|
+
const ref = React$1.useRef(null);
|
|
353
|
+
const rootContext = useMenuRootContext(ITEM_NAME, props.__scopeMenu);
|
|
354
|
+
const contentContext = useMenuContentContext(ITEM_NAME, props.__scopeMenu);
|
|
355
|
+
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
356
|
+
const isPointerDownRef = React$1.useRef(false);
|
|
357
|
+
const handleSelect = /* @__PURE__ */ __name(() => {
|
|
358
|
+
const menuItem = ref.current;
|
|
359
|
+
if (!disabled && menuItem) {
|
|
360
|
+
const itemSelectEvent = new CustomEvent(ITEM_SELECT, {
|
|
361
|
+
bubbles: true,
|
|
362
|
+
cancelable: true
|
|
259
363
|
});
|
|
260
|
-
|
|
364
|
+
menuItem.addEventListener(ITEM_SELECT, (event) => onSelect?.(event), { once: true });
|
|
365
|
+
dispatchDiscreteCustomEvent(menuItem, itemSelectEvent);
|
|
366
|
+
if (itemSelectEvent.defaultPrevented) isPointerDownRef.current = false;
|
|
367
|
+
else rootContext.onClose();
|
|
261
368
|
}
|
|
262
369
|
}, "handleSelect");
|
|
263
|
-
return /* @__PURE__ */
|
|
264
|
-
...
|
|
265
|
-
ref:
|
|
266
|
-
disabled
|
|
267
|
-
onClick:
|
|
268
|
-
onPointerDown: (
|
|
269
|
-
|
|
370
|
+
return /* @__PURE__ */ jsx(MenuItemImpl, {
|
|
371
|
+
...itemProps,
|
|
372
|
+
ref: composedRefs,
|
|
373
|
+
disabled,
|
|
374
|
+
onClick: composeEventHandlers(props.onClick, handleSelect),
|
|
375
|
+
onPointerDown: (event) => {
|
|
376
|
+
props.onPointerDown?.(event);
|
|
377
|
+
isPointerDownRef.current = true;
|
|
270
378
|
},
|
|
271
|
-
onPointerUp:
|
|
272
|
-
|
|
379
|
+
onPointerUp: composeEventHandlers(props.onPointerUp, (event) => {
|
|
380
|
+
if (!isPointerDownRef.current) event.currentTarget?.click();
|
|
273
381
|
}),
|
|
274
|
-
onKeyDown:
|
|
275
|
-
|
|
382
|
+
onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {
|
|
383
|
+
if (disabled || event.target !== event.currentTarget) return;
|
|
384
|
+
if (contentContext.searchRef.current !== "" && event.key === " ") return;
|
|
385
|
+
if (SELECTION_KEYS.includes(event.key)) {
|
|
386
|
+
event.currentTarget.click();
|
|
387
|
+
event.preventDefault();
|
|
388
|
+
}
|
|
276
389
|
})
|
|
277
390
|
});
|
|
278
|
-
}, "MenuItem"))
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
391
|
+
}, "MenuItem"));
|
|
392
|
+
var MenuItemImpl = /* @__PURE__ */ React$1.forwardRef(/* @__PURE__ */ __name(function MenuItemImpl2(props, forwardedRef) {
|
|
393
|
+
const { __scopeMenu, disabled = false, textValue, ...itemProps } = props;
|
|
394
|
+
const contentContext = useMenuContentContext(ITEM_NAME, __scopeMenu);
|
|
395
|
+
const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeMenu);
|
|
396
|
+
const ref = React$1.useRef(null);
|
|
397
|
+
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
398
|
+
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
399
|
+
const [textContent, setTextContent] = React$1.useState("");
|
|
400
|
+
React$1.useEffect(() => {
|
|
401
|
+
const menuItem = ref.current;
|
|
402
|
+
if (menuItem) setTextContent((menuItem.textContent ?? "").trim());
|
|
403
|
+
}, [itemProps.children]);
|
|
404
|
+
return /* @__PURE__ */ jsx(Collection.ItemSlot, {
|
|
405
|
+
scope: __scopeMenu,
|
|
406
|
+
disabled,
|
|
407
|
+
textValue: textValue ?? textContent,
|
|
408
|
+
children: /* @__PURE__ */ jsx(Item, {
|
|
409
|
+
asChild: true,
|
|
410
|
+
...rovingFocusGroupScope,
|
|
411
|
+
focusable: !disabled,
|
|
412
|
+
children: /* @__PURE__ */ jsx(Primitive.div, {
|
|
292
413
|
role: "menuitem",
|
|
293
|
-
"data-highlighted":
|
|
294
|
-
"aria-disabled":
|
|
295
|
-
"data-disabled":
|
|
296
|
-
...
|
|
297
|
-
ref:
|
|
298
|
-
onPointerMove:
|
|
299
|
-
|
|
414
|
+
"data-highlighted": isFocused ? "" : void 0,
|
|
415
|
+
"aria-disabled": disabled || void 0,
|
|
416
|
+
"data-disabled": disabled ? "" : void 0,
|
|
417
|
+
...itemProps,
|
|
418
|
+
ref: composedRefs,
|
|
419
|
+
onPointerMove: composeEventHandlers(props.onPointerMove, whenMouse((event) => {
|
|
420
|
+
if (disabled) contentContext.onItemLeave(event);
|
|
421
|
+
else {
|
|
422
|
+
contentContext.onItemEnter(event);
|
|
423
|
+
if (!event.defaultPrevented) event.currentTarget.focus({ preventScroll: true });
|
|
424
|
+
}
|
|
300
425
|
})),
|
|
301
|
-
onPointerLeave:
|
|
302
|
-
onFocus:
|
|
303
|
-
onBlur:
|
|
426
|
+
onPointerLeave: composeEventHandlers(props.onPointerLeave, whenMouse((event) => contentContext.onItemLeave(event))),
|
|
427
|
+
onFocus: composeEventHandlers(props.onFocus, () => setIsFocused(true)),
|
|
428
|
+
onBlur: composeEventHandlers(props.onBlur, () => setIsFocused(false))
|
|
304
429
|
})
|
|
305
430
|
})
|
|
306
431
|
});
|
|
307
|
-
}, "MenuItemImpl"))
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
432
|
+
}, "MenuItemImpl"));
|
|
433
|
+
var MenuCheckboxItem = /* @__PURE__ */ React$1.forwardRef(/* @__PURE__ */ __name(function MenuCheckboxItem2(props, forwardedRef) {
|
|
434
|
+
const { checked = false, onCheckedChange, ...checkboxItemProps } = props;
|
|
435
|
+
return /* @__PURE__ */ jsx(ItemIndicatorProvider, {
|
|
436
|
+
scope: props.__scopeMenu,
|
|
437
|
+
checked,
|
|
438
|
+
children: /* @__PURE__ */ jsx(MenuItem, {
|
|
313
439
|
role: "menuitemcheckbox",
|
|
314
|
-
"aria-checked":
|
|
315
|
-
...
|
|
316
|
-
ref:
|
|
317
|
-
"data-state":
|
|
318
|
-
onSelect:
|
|
440
|
+
"aria-checked": isIndeterminate(checked) ? "mixed" : checked,
|
|
441
|
+
...checkboxItemProps,
|
|
442
|
+
ref: forwardedRef,
|
|
443
|
+
"data-state": getCheckedState(checked),
|
|
444
|
+
onSelect: composeEventHandlers(checkboxItemProps.onSelect, () => onCheckedChange?.(isIndeterminate(checked) ? true : !checked), { checkForDefaultPrevented: false })
|
|
319
445
|
})
|
|
320
446
|
});
|
|
321
|
-
}, "MenuCheckboxItem"))
|
|
447
|
+
}, "MenuCheckboxItem"));
|
|
448
|
+
var [RadioGroupProvider, useRadioGroupContext] = createMenuContext("MenuRadioGroup", {
|
|
322
449
|
value: void 0,
|
|
323
|
-
onValueChange: /* @__PURE__ */
|
|
324
|
-
})
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
450
|
+
onValueChange: /* @__PURE__ */ __name(() => {}, "onValueChange")
|
|
451
|
+
});
|
|
452
|
+
var MenuRadioGroup = /* @__PURE__ */ React$1.forwardRef(/* @__PURE__ */ __name(function MenuRadioGroup2(props, forwardedRef) {
|
|
453
|
+
const { value, onValueChange, ...groupProps } = props;
|
|
454
|
+
const handleValueChange = useCallbackRef(onValueChange);
|
|
455
|
+
return /* @__PURE__ */ jsx(RadioGroupProvider, {
|
|
456
|
+
scope: props.__scopeMenu,
|
|
457
|
+
value,
|
|
458
|
+
onValueChange: handleValueChange,
|
|
459
|
+
children: /* @__PURE__ */ jsx(MenuGroup, {
|
|
460
|
+
...groupProps,
|
|
461
|
+
ref: forwardedRef
|
|
333
462
|
})
|
|
334
463
|
});
|
|
335
|
-
}, "MenuRadioGroup"))
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
464
|
+
}, "MenuRadioGroup"));
|
|
465
|
+
var RADIO_ITEM_NAME = "MenuRadioItem";
|
|
466
|
+
var MenuRadioItem = /* @__PURE__ */ React$1.forwardRef(/* @__PURE__ */ __name(function MenuRadioItem2(props, forwardedRef) {
|
|
467
|
+
const { value, ...radioItemProps } = props;
|
|
468
|
+
const context = useRadioGroupContext(RADIO_ITEM_NAME, props.__scopeMenu);
|
|
469
|
+
const checked = value === context.value;
|
|
470
|
+
return /* @__PURE__ */ jsx(ItemIndicatorProvider, {
|
|
471
|
+
scope: props.__scopeMenu,
|
|
472
|
+
checked,
|
|
473
|
+
children: /* @__PURE__ */ jsx(MenuItem, {
|
|
341
474
|
role: "menuitemradio",
|
|
342
|
-
"aria-checked":
|
|
343
|
-
...
|
|
344
|
-
ref:
|
|
345
|
-
"data-state":
|
|
346
|
-
onSelect:
|
|
475
|
+
"aria-checked": checked,
|
|
476
|
+
...radioItemProps,
|
|
477
|
+
ref: forwardedRef,
|
|
478
|
+
"data-state": getCheckedState(checked),
|
|
479
|
+
onSelect: composeEventHandlers(radioItemProps.onSelect, () => context.onValueChange?.(value), { checkForDefaultPrevented: false })
|
|
347
480
|
})
|
|
348
481
|
});
|
|
349
|
-
}, "MenuRadioItem"))
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
482
|
+
}, "MenuRadioItem"));
|
|
483
|
+
var ITEM_INDICATOR_NAME = "MenuItemIndicator";
|
|
484
|
+
var [ItemIndicatorProvider, useItemIndicatorContext] = createMenuContext(ITEM_INDICATOR_NAME, { checked: false });
|
|
485
|
+
var MenuItemIndicator = /* @__PURE__ */ React$1.forwardRef(/* @__PURE__ */ __name(function MenuItemIndicator2(props, forwardedRef) {
|
|
486
|
+
const { __scopeMenu, forceMount, ...itemIndicatorProps } = props;
|
|
487
|
+
const indicatorContext = useItemIndicatorContext(ITEM_INDICATOR_NAME, __scopeMenu);
|
|
488
|
+
return /* @__PURE__ */ jsx(Presence, {
|
|
489
|
+
present: forceMount || isIndeterminate(indicatorContext.checked) || indicatorContext.checked === true,
|
|
490
|
+
children: /* @__PURE__ */ jsx(Primitive.span, {
|
|
491
|
+
...itemIndicatorProps,
|
|
492
|
+
ref: forwardedRef,
|
|
493
|
+
"data-state": getCheckedState(indicatorContext.checked)
|
|
357
494
|
})
|
|
358
495
|
});
|
|
359
|
-
}, "MenuItemIndicator"))
|
|
360
|
-
|
|
361
|
-
|
|
496
|
+
}, "MenuItemIndicator"));
|
|
497
|
+
var MenuSeparator = /* @__PURE__ */ React$1.forwardRef(/* @__PURE__ */ __name(function MenuSeparator2(props, forwardedRef) {
|
|
498
|
+
const { __scopeMenu, ...separatorProps } = props;
|
|
499
|
+
return /* @__PURE__ */ jsx(Primitive.div, {
|
|
362
500
|
role: "separator",
|
|
363
501
|
"aria-orientation": "horizontal",
|
|
364
|
-
...
|
|
365
|
-
ref:
|
|
502
|
+
...separatorProps,
|
|
503
|
+
ref: forwardedRef
|
|
366
504
|
});
|
|
367
|
-
}, "MenuSeparator"))
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
505
|
+
}, "MenuSeparator"));
|
|
506
|
+
var SUB_NAME = "MenuSub";
|
|
507
|
+
var [MenuSubProvider, useMenuSubContext] = createMenuContext(SUB_NAME);
|
|
508
|
+
var MenuSub = /* @__PURE__ */ __name((props) => {
|
|
509
|
+
const { __scopeMenu, children, open = false, onOpenChange } = props;
|
|
510
|
+
const parentMenuContext = useMenuContext(SUB_NAME, __scopeMenu);
|
|
511
|
+
const popperScope = usePopperScope(__scopeMenu);
|
|
512
|
+
const [trigger, setTrigger] = React$1.useState(null);
|
|
513
|
+
const [content, setContent] = React$1.useState(null);
|
|
514
|
+
const handleOpenChange = useCallbackRef(onOpenChange);
|
|
515
|
+
React$1.useEffect(() => {
|
|
516
|
+
if (parentMenuContext.open === false) handleOpenChange(false);
|
|
517
|
+
return () => handleOpenChange(false);
|
|
518
|
+
}, [parentMenuContext.open, handleOpenChange]);
|
|
519
|
+
return /* @__PURE__ */ jsx(Root2, {
|
|
520
|
+
...popperScope,
|
|
521
|
+
children: /* @__PURE__ */ jsx(MenuProvider, {
|
|
522
|
+
scope: __scopeMenu,
|
|
523
|
+
open,
|
|
524
|
+
onOpenChange: handleOpenChange,
|
|
525
|
+
content,
|
|
526
|
+
onContentChange: setContent,
|
|
527
|
+
children: /* @__PURE__ */ jsx(MenuSubProvider, {
|
|
528
|
+
scope: __scopeMenu,
|
|
529
|
+
contentId: useId$1(),
|
|
530
|
+
triggerId: useId$1(),
|
|
531
|
+
trigger,
|
|
532
|
+
onTriggerChange: setTrigger,
|
|
533
|
+
children
|
|
384
534
|
})
|
|
385
535
|
})
|
|
386
536
|
});
|
|
387
|
-
}, "MenuSub")
|
|
388
|
-
|
|
389
|
-
|
|
537
|
+
}, "MenuSub");
|
|
538
|
+
var SUB_TRIGGER_NAME = "MenuSubTrigger";
|
|
539
|
+
var MenuSubTrigger = /* @__PURE__ */ React$1.forwardRef(/* @__PURE__ */ __name(function MenuSubTrigger2(props, forwardedRef) {
|
|
540
|
+
const context = useMenuContext(SUB_TRIGGER_NAME, props.__scopeMenu);
|
|
541
|
+
const rootContext = useMenuRootContext(SUB_TRIGGER_NAME, props.__scopeMenu);
|
|
542
|
+
const subContext = useMenuSubContext(SUB_TRIGGER_NAME, props.__scopeMenu);
|
|
543
|
+
const contentContext = useMenuContentContext(SUB_TRIGGER_NAME, props.__scopeMenu);
|
|
544
|
+
const openTimerRef = React$1.useRef(null);
|
|
545
|
+
const { pointerGraceTimerRef, onPointerGraceIntentChange } = contentContext;
|
|
546
|
+
const scope = { __scopeMenu: props.__scopeMenu };
|
|
547
|
+
const clearOpenTimer = React$1.useCallback(() => {
|
|
548
|
+
if (openTimerRef.current) window.clearTimeout(openTimerRef.current);
|
|
549
|
+
openTimerRef.current = null;
|
|
390
550
|
}, []);
|
|
391
|
-
|
|
392
|
-
|
|
551
|
+
React$1.useEffect(() => clearOpenTimer, [clearOpenTimer]);
|
|
552
|
+
React$1.useEffect(() => {
|
|
553
|
+
const pointerGraceTimer = pointerGraceTimerRef.current;
|
|
393
554
|
return () => {
|
|
394
|
-
window.clearTimeout(
|
|
555
|
+
window.clearTimeout(pointerGraceTimer);
|
|
556
|
+
onPointerGraceIntentChange(null);
|
|
395
557
|
};
|
|
396
|
-
}, [
|
|
397
|
-
|
|
398
|
-
return /* @__PURE__ */
|
|
399
|
-
asChild:
|
|
400
|
-
...
|
|
401
|
-
children: /* @__PURE__ */
|
|
402
|
-
id:
|
|
558
|
+
}, [pointerGraceTimerRef, onPointerGraceIntentChange]);
|
|
559
|
+
const composedRefs = useComposedRefs(forwardedRef, subContext.onTriggerChange);
|
|
560
|
+
return /* @__PURE__ */ jsx(MenuAnchor, {
|
|
561
|
+
asChild: true,
|
|
562
|
+
...scope,
|
|
563
|
+
children: /* @__PURE__ */ jsx(MenuItemImpl, {
|
|
564
|
+
id: subContext.triggerId,
|
|
403
565
|
"aria-haspopup": "menu",
|
|
404
|
-
"aria-expanded":
|
|
405
|
-
"aria-controls":
|
|
406
|
-
"data-state":
|
|
407
|
-
...
|
|
408
|
-
ref:
|
|
409
|
-
onClick: (
|
|
410
|
-
|
|
566
|
+
"aria-expanded": context.open,
|
|
567
|
+
"aria-controls": context.open ? subContext.contentId : void 0,
|
|
568
|
+
"data-state": getOpenState(context.open),
|
|
569
|
+
...props,
|
|
570
|
+
ref: composedRefs,
|
|
571
|
+
onClick: (event) => {
|
|
572
|
+
props.onClick?.(event);
|
|
573
|
+
if (props.disabled || event.defaultPrevented) return;
|
|
574
|
+
event.currentTarget.focus();
|
|
575
|
+
if (!context.open) context.onOpenChange(true);
|
|
411
576
|
},
|
|
412
|
-
onPointerMove:
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
577
|
+
onPointerMove: composeEventHandlers(props.onPointerMove, whenMouse((event) => {
|
|
578
|
+
contentContext.onItemEnter(event);
|
|
579
|
+
if (event.defaultPrevented) return;
|
|
580
|
+
if (!props.disabled && !context.open && !openTimerRef.current) {
|
|
581
|
+
contentContext.onPointerGraceIntentChange(null);
|
|
582
|
+
openTimerRef.current = window.setTimeout(() => {
|
|
583
|
+
context.onOpenChange(true);
|
|
584
|
+
clearOpenTimer();
|
|
585
|
+
}, 100);
|
|
586
|
+
}
|
|
416
587
|
})),
|
|
417
|
-
onPointerLeave:
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
if (
|
|
421
|
-
|
|
422
|
-
|
|
588
|
+
onPointerLeave: composeEventHandlers(props.onPointerLeave, whenMouse((event) => {
|
|
589
|
+
clearOpenTimer();
|
|
590
|
+
const contentRect = context.content?.getBoundingClientRect();
|
|
591
|
+
if (contentRect) {
|
|
592
|
+
const side = context.content?.dataset.side;
|
|
593
|
+
const rightSide = side === "right";
|
|
594
|
+
const bleed = rightSide ? -5 : 5;
|
|
595
|
+
const contentNearEdge = contentRect[rightSide ? "left" : "right"];
|
|
596
|
+
const contentFarEdge = contentRect[rightSide ? "right" : "left"];
|
|
597
|
+
contentContext.onPointerGraceIntentChange({
|
|
423
598
|
area: [
|
|
424
599
|
{
|
|
425
|
-
x:
|
|
426
|
-
y:
|
|
600
|
+
x: event.clientX + bleed,
|
|
601
|
+
y: event.clientY
|
|
427
602
|
},
|
|
428
603
|
{
|
|
429
|
-
x:
|
|
430
|
-
y:
|
|
604
|
+
x: contentNearEdge,
|
|
605
|
+
y: contentRect.top
|
|
431
606
|
},
|
|
432
607
|
{
|
|
433
|
-
x:
|
|
434
|
-
y:
|
|
608
|
+
x: contentFarEdge,
|
|
609
|
+
y: contentRect.top
|
|
435
610
|
},
|
|
436
611
|
{
|
|
437
|
-
x:
|
|
438
|
-
y:
|
|
612
|
+
x: contentFarEdge,
|
|
613
|
+
y: contentRect.bottom
|
|
439
614
|
},
|
|
440
615
|
{
|
|
441
|
-
x:
|
|
442
|
-
y:
|
|
616
|
+
x: contentNearEdge,
|
|
617
|
+
y: contentRect.bottom
|
|
443
618
|
}
|
|
444
619
|
],
|
|
445
|
-
side
|
|
446
|
-
})
|
|
620
|
+
side
|
|
621
|
+
});
|
|
622
|
+
window.clearTimeout(pointerGraceTimerRef.current);
|
|
623
|
+
pointerGraceTimerRef.current = window.setTimeout(() => contentContext.onPointerGraceIntentChange(null), 300);
|
|
447
624
|
} else {
|
|
448
|
-
|
|
449
|
-
|
|
625
|
+
contentContext.onTriggerLeave(event);
|
|
626
|
+
if (event.defaultPrevented) return;
|
|
627
|
+
contentContext.onPointerGraceIntentChange(null);
|
|
450
628
|
}
|
|
451
629
|
})),
|
|
452
|
-
onKeyDown:
|
|
453
|
-
|
|
630
|
+
onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {
|
|
631
|
+
if (props.disabled || event.target !== event.currentTarget) return;
|
|
632
|
+
if (contentContext.searchRef.current !== "" && event.key === " ") return;
|
|
633
|
+
if (SUB_OPEN_KEYS[rootContext.dir].includes(event.key)) {
|
|
634
|
+
context.onOpenChange(true);
|
|
635
|
+
context.content?.focus();
|
|
636
|
+
event.preventDefault();
|
|
637
|
+
}
|
|
454
638
|
})
|
|
455
639
|
})
|
|
456
640
|
});
|
|
457
|
-
}, "MenuSubTrigger"))
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
641
|
+
}, "MenuSubTrigger"));
|
|
642
|
+
var SUB_CONTENT_NAME = "MenuSubContent";
|
|
643
|
+
var MenuSubContent = /* @__PURE__ */ React$1.forwardRef(/* @__PURE__ */ __name(function MenuSubContent2(props, forwardedRef) {
|
|
644
|
+
const portalContext = usePortalContext(CONTENT_NAME, props.__scopeMenu);
|
|
645
|
+
const { forceMount = portalContext.forceMount, align = "start", ...subContentProps } = props;
|
|
646
|
+
const context = useMenuContext(CONTENT_NAME, props.__scopeMenu);
|
|
647
|
+
const rootContext = useMenuRootContext(CONTENT_NAME, props.__scopeMenu);
|
|
648
|
+
const subContext = useMenuSubContext(SUB_CONTENT_NAME, props.__scopeMenu);
|
|
649
|
+
const ref = React$1.useRef(null);
|
|
650
|
+
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
651
|
+
return /* @__PURE__ */ jsx(Collection.Provider, {
|
|
652
|
+
scope: props.__scopeMenu,
|
|
653
|
+
children: /* @__PURE__ */ jsx(Presence, {
|
|
654
|
+
present: forceMount || context.open,
|
|
655
|
+
children: /* @__PURE__ */ jsx(Collection.Slot, {
|
|
656
|
+
scope: props.__scopeMenu,
|
|
657
|
+
children: /* @__PURE__ */ jsx(MenuContentImpl, {
|
|
658
|
+
id: subContext.contentId,
|
|
659
|
+
"aria-labelledby": subContext.triggerId,
|
|
660
|
+
...subContentProps,
|
|
661
|
+
ref: composedRefs,
|
|
662
|
+
align,
|
|
663
|
+
side: rootContext.dir === "rtl" ? "left" : "right",
|
|
664
|
+
disableOutsidePointerEvents: false,
|
|
665
|
+
disableOutsideScroll: false,
|
|
666
|
+
trapFocus: false,
|
|
667
|
+
onOpenAutoFocus: (event) => {
|
|
668
|
+
if (rootContext.isUsingKeyboardRef.current) ref.current?.focus();
|
|
669
|
+
event.preventDefault();
|
|
477
670
|
},
|
|
478
|
-
onCloseAutoFocus: (
|
|
479
|
-
onFocusOutside:
|
|
480
|
-
|
|
671
|
+
onCloseAutoFocus: (event) => event.preventDefault(),
|
|
672
|
+
onFocusOutside: composeEventHandlers(props.onFocusOutside, (event) => {
|
|
673
|
+
if (event.target !== subContext.trigger) context.onOpenChange(false);
|
|
481
674
|
}),
|
|
482
|
-
onEscapeKeyDown:
|
|
483
|
-
|
|
675
|
+
onEscapeKeyDown: composeEventHandlers(props.onEscapeKeyDown, (event) => {
|
|
676
|
+
rootContext.onClose();
|
|
677
|
+
event.preventDefault();
|
|
484
678
|
}),
|
|
485
|
-
onKeyDown:
|
|
486
|
-
|
|
487
|
-
|
|
679
|
+
onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {
|
|
680
|
+
const isKeyDownInside = event.currentTarget.contains(event.target);
|
|
681
|
+
const isCloseKey = SUB_CLOSE_KEYS[rootContext.dir].includes(event.key);
|
|
682
|
+
if (isKeyDownInside && isCloseKey) {
|
|
683
|
+
context.onOpenChange(false);
|
|
684
|
+
subContext.trigger?.focus();
|
|
685
|
+
event.preventDefault();
|
|
686
|
+
}
|
|
488
687
|
})
|
|
489
688
|
})
|
|
490
689
|
})
|
|
491
690
|
})
|
|
492
691
|
});
|
|
493
692
|
}, "MenuSubContent"));
|
|
494
|
-
function
|
|
495
|
-
return
|
|
693
|
+
function getOpenState(open) {
|
|
694
|
+
return open ? "open" : "closed";
|
|
496
695
|
}
|
|
497
|
-
|
|
498
|
-
function
|
|
499
|
-
return
|
|
696
|
+
__name(getOpenState, "getOpenState");
|
|
697
|
+
function isIndeterminate(checked) {
|
|
698
|
+
return checked === "indeterminate";
|
|
500
699
|
}
|
|
501
|
-
|
|
502
|
-
function
|
|
503
|
-
return
|
|
700
|
+
__name(isIndeterminate, "isIndeterminate");
|
|
701
|
+
function getCheckedState(checked) {
|
|
702
|
+
return isIndeterminate(checked) ? "indeterminate" : checked ? "checked" : "unchecked";
|
|
504
703
|
}
|
|
505
|
-
|
|
506
|
-
function
|
|
507
|
-
|
|
508
|
-
for (
|
|
704
|
+
__name(getCheckedState, "getCheckedState");
|
|
705
|
+
function focusFirst(candidates) {
|
|
706
|
+
const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;
|
|
707
|
+
for (const candidate of candidates) {
|
|
708
|
+
if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;
|
|
709
|
+
candidate.focus();
|
|
710
|
+
if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;
|
|
711
|
+
}
|
|
509
712
|
}
|
|
510
|
-
|
|
511
|
-
function
|
|
512
|
-
return
|
|
713
|
+
__name(focusFirst, "focusFirst");
|
|
714
|
+
function wrapArray(array, startIndex) {
|
|
715
|
+
return array.map((_, index) => array[(startIndex + index) % array.length]);
|
|
513
716
|
}
|
|
514
|
-
|
|
515
|
-
function
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
let
|
|
519
|
-
|
|
717
|
+
__name(wrapArray, "wrapArray");
|
|
718
|
+
function getNextMatch(values, search, currentMatch) {
|
|
719
|
+
const normalizedSearch = search.length > 1 && Array.from(search).every((char) => char === search[0]) ? search[0] : search;
|
|
720
|
+
const currentMatchIndex = currentMatch ? values.indexOf(currentMatch) : -1;
|
|
721
|
+
let wrappedValues = wrapArray(values, Math.max(currentMatchIndex, 0));
|
|
722
|
+
if (normalizedSearch.length === 1) wrappedValues = wrappedValues.filter((v) => v !== currentMatch);
|
|
723
|
+
const nextMatch = wrappedValues.find((value) => value.toLowerCase().startsWith(normalizedSearch.toLowerCase()));
|
|
724
|
+
return nextMatch !== currentMatch ? nextMatch : void 0;
|
|
520
725
|
}
|
|
521
|
-
|
|
522
|
-
function
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
726
|
+
__name(getNextMatch, "getNextMatch");
|
|
727
|
+
function isPointInPolygon(point, polygon) {
|
|
728
|
+
const { x, y } = point;
|
|
729
|
+
let inside = false;
|
|
730
|
+
for (let i = 0, j = polygon.length - 1; i < polygon.length; j = i++) {
|
|
731
|
+
const ii = polygon[i];
|
|
732
|
+
const jj = polygon[j];
|
|
733
|
+
const xi = ii.x;
|
|
734
|
+
const yi = ii.y;
|
|
735
|
+
const xj = jj.x;
|
|
736
|
+
const yj = jj.y;
|
|
737
|
+
if (yi > y !== yj > y && x < (xj - xi) * (y - yi) / (yj - yi) + xi) inside = !inside;
|
|
527
738
|
}
|
|
528
|
-
return
|
|
739
|
+
return inside;
|
|
529
740
|
}
|
|
530
|
-
|
|
531
|
-
function
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
741
|
+
__name(isPointInPolygon, "isPointInPolygon");
|
|
742
|
+
function isPointerInGraceArea(event, area) {
|
|
743
|
+
if (!area) return false;
|
|
744
|
+
return isPointInPolygon({
|
|
745
|
+
x: event.clientX,
|
|
746
|
+
y: event.clientY
|
|
747
|
+
}, area);
|
|
536
748
|
}
|
|
537
|
-
|
|
538
|
-
function
|
|
539
|
-
return (
|
|
749
|
+
__name(isPointerInGraceArea, "isPointerInGraceArea");
|
|
750
|
+
function whenMouse(handler) {
|
|
751
|
+
return (event) => event.pointerType === "mouse" ? handler(event) : void 0;
|
|
540
752
|
}
|
|
541
|
-
|
|
542
|
-
var
|
|
543
|
-
|
|
753
|
+
__name(whenMouse, "whenMouse");
|
|
754
|
+
var Root3 = Menu;
|
|
755
|
+
var Anchor2 = MenuAnchor;
|
|
756
|
+
var Portal = MenuPortal;
|
|
757
|
+
var Content2 = MenuContent;
|
|
758
|
+
var Group = MenuGroup;
|
|
759
|
+
var Label = MenuLabel;
|
|
760
|
+
var Item2 = MenuItem;
|
|
761
|
+
var CheckboxItem = MenuCheckboxItem;
|
|
762
|
+
var RadioGroup = MenuRadioGroup;
|
|
763
|
+
var RadioItem = MenuRadioItem;
|
|
764
|
+
var ItemIndicator = MenuItemIndicator;
|
|
765
|
+
var Separator = MenuSeparator;
|
|
766
|
+
var Sub = MenuSub;
|
|
767
|
+
var SubTrigger = MenuSubTrigger;
|
|
768
|
+
var SubContent = MenuSubContent;
|
|
769
|
+
export { Anchor2 as Anchor, CheckboxItem, Content2 as Content, Group, Item2 as Item, ItemIndicator, Label, Menu, MenuAnchor, MenuCheckboxItem, MenuContent, MenuGroup, MenuItem, MenuItemIndicator, MenuLabel, MenuPortal, MenuRadioGroup, MenuRadioItem, MenuSeparator, MenuSub, MenuSubContent, MenuSubTrigger, Portal, RadioGroup, RadioItem, Root3 as Root, Separator, Sub, SubContent, SubTrigger, createMenuScope };
|