@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,537 +1,722 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { createContextScope
|
|
3
|
-
import { useComposedRefs
|
|
4
|
-
import { composeEventHandlers
|
|
5
|
-
import { Primitive
|
|
6
|
-
import { useCallbackRef
|
|
7
|
-
import { useLayoutEffect as
|
|
8
|
-
import { useControllableState
|
|
9
|
-
import { Presence
|
|
10
|
-
import { useId as
|
|
11
|
-
import { createCollection
|
|
12
|
-
import { useDirection
|
|
13
|
-
import { DismissableLayer
|
|
14
|
-
import { usePrevious
|
|
15
|
-
import { Root
|
|
16
|
-
import { Fragment
|
|
17
|
-
import * as
|
|
18
|
-
import * as
|
|
2
|
+
import { createContextScope } from "../../../../../@radix-ui_react-context@1.2.2_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-context/dist/index.js";
|
|
3
|
+
import { useComposedRefs } from "../../../../../@radix-ui_react-compose-refs@1.1.5_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-compose-refs/dist/index.js";
|
|
4
|
+
import { composeEventHandlers } from "../../../../../@radix-ui_primitive@1.1.7/node_modules/@radix-ui/primitive/dist/index.js";
|
|
5
|
+
import { Primitive, 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 { useLayoutEffect as useLayoutEffect2 } from "../../../../../@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";
|
|
8
|
+
import { useControllableState } from "../../../../../@radix-ui_react-use-controllable-state@1.2.6_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.js";
|
|
9
|
+
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";
|
|
10
|
+
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";
|
|
11
|
+
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";
|
|
12
|
+
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";
|
|
13
|
+
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";
|
|
14
|
+
import { usePrevious } from "../../../../../@radix-ui_react-use-previous@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-previous/dist/index.js";
|
|
15
|
+
import { Root } from "../../../../../@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";
|
|
16
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
17
|
+
import * as React$1 from "react";
|
|
18
|
+
import * as ReactDOM from "react-dom";
|
|
19
19
|
// ../../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.mjs
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
20
|
+
var __defProp = Object.defineProperty;
|
|
21
|
+
var __name = (target, value) => __defProp(target, "name", {
|
|
22
|
+
value,
|
|
23
|
+
configurable: true
|
|
24
|
+
});
|
|
25
|
+
var NAVIGATION_MENU_NAME = "NavigationMenu";
|
|
26
|
+
var [Collection, useCollection, createCollectionScope] = createCollection(NAVIGATION_MENU_NAME);
|
|
27
|
+
var [FocusGroupCollection, useFocusGroupCollection, createFocusGroupCollectionScope] = createCollection(NAVIGATION_MENU_NAME);
|
|
28
|
+
var [createNavigationMenuContext, createNavigationMenuScope] = createContextScope(NAVIGATION_MENU_NAME, [createCollectionScope, createFocusGroupCollectionScope]);
|
|
29
|
+
var [NavigationMenuProviderImpl, useNavigationMenuContext] = createNavigationMenuContext(NAVIGATION_MENU_NAME);
|
|
30
|
+
var [ViewportContentProvider, useViewportContentContext] = createNavigationMenuContext(NAVIGATION_MENU_NAME);
|
|
31
|
+
var NavigationMenu = /* @__PURE__ */ React$1.forwardRef(/* @__PURE__ */ __name(function NavigationMenu2(props, forwardedRef) {
|
|
32
|
+
const { __scopeNavigationMenu, value: valueProp, onValueChange, defaultValue, delayDuration = 200, skipDelayDuration = 300, orientation = "horizontal", dir, ...NavigationMenuProps } = props;
|
|
33
|
+
const [navigationMenu, setNavigationMenu] = React$1.useState(null);
|
|
34
|
+
const composedRef = useComposedRefs(forwardedRef, setNavigationMenu);
|
|
35
|
+
const direction = useDirection(dir);
|
|
36
|
+
const openTimerRef = React$1.useRef(0);
|
|
37
|
+
const closeTimerRef = React$1.useRef(0);
|
|
38
|
+
const skipDelayTimerRef = React$1.useRef(0);
|
|
39
|
+
const [isOpenDelayed, setIsOpenDelayed] = React$1.useState(true);
|
|
40
|
+
const [value, setValue] = useControllableState({
|
|
41
|
+
prop: valueProp,
|
|
42
|
+
onChange: /* @__PURE__ */ __name((value2) => {
|
|
43
|
+
const isOpen = value2 !== "";
|
|
44
|
+
const hasSkipDelayDuration = skipDelayDuration > 0;
|
|
45
|
+
if (isOpen) {
|
|
46
|
+
window.clearTimeout(skipDelayTimerRef.current);
|
|
47
|
+
if (hasSkipDelayDuration) setIsOpenDelayed(false);
|
|
48
|
+
} else {
|
|
49
|
+
window.clearTimeout(skipDelayTimerRef.current);
|
|
50
|
+
skipDelayTimerRef.current = window.setTimeout(() => setIsOpenDelayed(true), skipDelayDuration);
|
|
51
|
+
}
|
|
52
|
+
onValueChange?.(value2);
|
|
29
53
|
}, "onChange"),
|
|
30
|
-
defaultProp:
|
|
31
|
-
caller:
|
|
32
|
-
})
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
window.
|
|
36
|
-
}, [
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
54
|
+
defaultProp: defaultValue ?? "",
|
|
55
|
+
caller: NAVIGATION_MENU_NAME
|
|
56
|
+
});
|
|
57
|
+
const startCloseTimer = React$1.useCallback(() => {
|
|
58
|
+
window.clearTimeout(closeTimerRef.current);
|
|
59
|
+
closeTimerRef.current = window.setTimeout(() => setValue(""), 150);
|
|
60
|
+
}, [setValue]);
|
|
61
|
+
const handleOpen = React$1.useCallback((itemValue) => {
|
|
62
|
+
window.clearTimeout(closeTimerRef.current);
|
|
63
|
+
setValue(itemValue);
|
|
64
|
+
}, [setValue]);
|
|
65
|
+
const handleDelayedOpen = React$1.useCallback((itemValue) => {
|
|
66
|
+
if (value === itemValue) window.clearTimeout(closeTimerRef.current);
|
|
67
|
+
else openTimerRef.current = window.setTimeout(() => {
|
|
68
|
+
window.clearTimeout(closeTimerRef.current);
|
|
69
|
+
setValue(itemValue);
|
|
70
|
+
}, delayDuration);
|
|
40
71
|
}, [
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
72
|
+
value,
|
|
73
|
+
setValue,
|
|
74
|
+
delayDuration
|
|
44
75
|
]);
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
76
|
+
React$1.useEffect(() => {
|
|
77
|
+
return () => {
|
|
78
|
+
window.clearTimeout(openTimerRef.current);
|
|
79
|
+
window.clearTimeout(closeTimerRef.current);
|
|
80
|
+
window.clearTimeout(skipDelayTimerRef.current);
|
|
81
|
+
};
|
|
82
|
+
}, []);
|
|
83
|
+
return /* @__PURE__ */ jsx(NavigationMenuProvider, {
|
|
84
|
+
scope: __scopeNavigationMenu,
|
|
85
|
+
isRootMenu: true,
|
|
86
|
+
value,
|
|
87
|
+
dir: direction,
|
|
88
|
+
orientation,
|
|
89
|
+
rootNavigationMenu: navigationMenu,
|
|
90
|
+
onTriggerEnter: (itemValue) => {
|
|
91
|
+
window.clearTimeout(openTimerRef.current);
|
|
92
|
+
if (isOpenDelayed) handleDelayedOpen(itemValue);
|
|
93
|
+
else handleOpen(itemValue);
|
|
56
94
|
},
|
|
57
95
|
onTriggerLeave: () => {
|
|
58
|
-
window.clearTimeout(
|
|
96
|
+
window.clearTimeout(openTimerRef.current);
|
|
97
|
+
startCloseTimer();
|
|
59
98
|
},
|
|
60
|
-
onContentEnter: () => window.clearTimeout(
|
|
61
|
-
onContentLeave:
|
|
62
|
-
onItemSelect: (
|
|
63
|
-
|
|
99
|
+
onContentEnter: () => window.clearTimeout(closeTimerRef.current),
|
|
100
|
+
onContentLeave: startCloseTimer,
|
|
101
|
+
onItemSelect: (itemValue) => {
|
|
102
|
+
setValue((prevValue) => prevValue === itemValue ? "" : itemValue);
|
|
64
103
|
},
|
|
65
|
-
onItemDismiss: () =>
|
|
66
|
-
children: /* @__PURE__ */
|
|
104
|
+
onItemDismiss: () => setValue(""),
|
|
105
|
+
children: /* @__PURE__ */ jsx(Primitive.nav, {
|
|
67
106
|
"aria-label": "Main",
|
|
68
|
-
"data-orientation":
|
|
69
|
-
dir:
|
|
70
|
-
...
|
|
71
|
-
ref:
|
|
107
|
+
"data-orientation": orientation,
|
|
108
|
+
dir: direction,
|
|
109
|
+
...NavigationMenuProps,
|
|
110
|
+
ref: composedRef
|
|
72
111
|
})
|
|
73
112
|
});
|
|
74
|
-
}, "NavigationMenu"))
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
113
|
+
}, "NavigationMenu"));
|
|
114
|
+
var NavigationMenuProvider = /* @__PURE__ */ __name((props) => {
|
|
115
|
+
const { scope, isRootMenu, rootNavigationMenu, dir, orientation, children, value, onItemSelect, onItemDismiss, onTriggerEnter, onTriggerLeave, onContentEnter, onContentLeave } = props;
|
|
116
|
+
const [viewport, setViewport] = React$1.useState(null);
|
|
117
|
+
const [viewportContent, setViewportContent] = React$1.useState(/* @__PURE__ */ new Map());
|
|
118
|
+
const [indicatorTrack, setIndicatorTrack] = React$1.useState(null);
|
|
119
|
+
return /* @__PURE__ */ jsx(NavigationMenuProviderImpl, {
|
|
120
|
+
scope,
|
|
121
|
+
isRootMenu,
|
|
122
|
+
rootNavigationMenu,
|
|
123
|
+
value,
|
|
124
|
+
previousValue: usePrevious(value),
|
|
125
|
+
baseId: useId$1(),
|
|
126
|
+
dir,
|
|
127
|
+
orientation,
|
|
128
|
+
viewport,
|
|
129
|
+
onViewportChange: setViewport,
|
|
130
|
+
indicatorTrack,
|
|
131
|
+
onIndicatorTrackChange: setIndicatorTrack,
|
|
132
|
+
onTriggerEnter: useCallbackRef(onTriggerEnter),
|
|
133
|
+
onTriggerLeave: useCallbackRef(onTriggerLeave),
|
|
134
|
+
onContentEnter: useCallbackRef(onContentEnter),
|
|
135
|
+
onContentLeave: useCallbackRef(onContentLeave),
|
|
136
|
+
onItemSelect: useCallbackRef(onItemSelect),
|
|
137
|
+
onItemDismiss: useCallbackRef(onItemDismiss),
|
|
138
|
+
onViewportContentChange: React$1.useCallback((contentValue, contentData) => {
|
|
139
|
+
setViewportContent((prevContent) => {
|
|
140
|
+
prevContent.set(contentValue, contentData);
|
|
141
|
+
return new Map(prevContent);
|
|
142
|
+
});
|
|
97
143
|
}, []),
|
|
98
|
-
onViewportContentRemove:
|
|
99
|
-
|
|
144
|
+
onViewportContentRemove: React$1.useCallback((contentValue) => {
|
|
145
|
+
setViewportContent((prevContent) => {
|
|
146
|
+
if (!prevContent.has(contentValue)) return prevContent;
|
|
147
|
+
prevContent.delete(contentValue);
|
|
148
|
+
return new Map(prevContent);
|
|
149
|
+
});
|
|
100
150
|
}, []),
|
|
101
|
-
children: /* @__PURE__ */
|
|
102
|
-
scope
|
|
103
|
-
children: /* @__PURE__ */
|
|
104
|
-
scope
|
|
105
|
-
items:
|
|
106
|
-
children
|
|
151
|
+
children: /* @__PURE__ */ jsx(Collection.Provider, {
|
|
152
|
+
scope,
|
|
153
|
+
children: /* @__PURE__ */ jsx(ViewportContentProvider, {
|
|
154
|
+
scope,
|
|
155
|
+
items: viewportContent,
|
|
156
|
+
children
|
|
107
157
|
})
|
|
108
158
|
})
|
|
109
159
|
});
|
|
110
|
-
}, "NavigationMenuProvider")
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
160
|
+
}, "NavigationMenuProvider");
|
|
161
|
+
var LIST_NAME = "NavigationMenuList";
|
|
162
|
+
var NavigationMenuList = /* @__PURE__ */ React$1.forwardRef(/* @__PURE__ */ __name(function NavigationMenuList2(props, forwardedRef) {
|
|
163
|
+
const { __scopeNavigationMenu, ...listProps } = props;
|
|
164
|
+
const context = useNavigationMenuContext(LIST_NAME, __scopeNavigationMenu);
|
|
165
|
+
const list = /* @__PURE__ */ jsx(Primitive.ul, {
|
|
166
|
+
"data-orientation": context.orientation,
|
|
167
|
+
...listProps,
|
|
168
|
+
ref: forwardedRef
|
|
115
169
|
});
|
|
116
|
-
return /* @__PURE__ */
|
|
170
|
+
return /* @__PURE__ */ jsx(Primitive.div, {
|
|
117
171
|
style: { position: "relative" },
|
|
118
|
-
ref:
|
|
119
|
-
children: /* @__PURE__ */
|
|
120
|
-
scope:
|
|
121
|
-
children:
|
|
122
|
-
asChild:
|
|
123
|
-
children:
|
|
124
|
-
}) :
|
|
172
|
+
ref: context.onIndicatorTrackChange,
|
|
173
|
+
children: /* @__PURE__ */ jsx(Collection.Slot, {
|
|
174
|
+
scope: __scopeNavigationMenu,
|
|
175
|
+
children: context.isRootMenu ? /* @__PURE__ */ jsx(FocusGroup, {
|
|
176
|
+
asChild: true,
|
|
177
|
+
children: list
|
|
178
|
+
}) : list
|
|
125
179
|
})
|
|
126
180
|
});
|
|
127
|
-
}, "NavigationMenuList"))
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
181
|
+
}, "NavigationMenuList"));
|
|
182
|
+
var [NavigationMenuItemContextProvider, useNavigationMenuItemContext] = createNavigationMenuContext("NavigationMenuItem");
|
|
183
|
+
var NavigationMenuItem = /* @__PURE__ */ React$1.forwardRef(/* @__PURE__ */ __name(function NavigationMenuItem2(props, forwardedRef) {
|
|
184
|
+
const { __scopeNavigationMenu, value: valueProp, ...itemProps } = props;
|
|
185
|
+
const autoValue = useId$1();
|
|
186
|
+
const value = valueProp || autoValue || "LEGACY_REACT_AUTO_VALUE";
|
|
187
|
+
const contentRef = React$1.useRef(null);
|
|
188
|
+
const triggerRef = React$1.useRef(null);
|
|
189
|
+
const focusProxyRef = React$1.useRef(null);
|
|
190
|
+
const restoreContentTabOrderRef = React$1.useRef(() => {});
|
|
191
|
+
const wasEscapeCloseRef = React$1.useRef(false);
|
|
192
|
+
const handleContentEntry = React$1.useCallback((side = "start") => {
|
|
193
|
+
if (contentRef.current) {
|
|
194
|
+
restoreContentTabOrderRef.current();
|
|
195
|
+
const candidates = getTabbableCandidates(contentRef.current);
|
|
196
|
+
if (candidates.length) focusFirst(side === "start" ? candidates : candidates.reverse());
|
|
133
197
|
}
|
|
134
|
-
}, [])
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
198
|
+
}, []);
|
|
199
|
+
const handleContentExit = React$1.useCallback(() => {
|
|
200
|
+
if (contentRef.current) {
|
|
201
|
+
const candidates = getTabbableCandidates(contentRef.current);
|
|
202
|
+
if (candidates.length) restoreContentTabOrderRef.current = removeFromTabOrder(candidates);
|
|
138
203
|
}
|
|
139
204
|
}, []);
|
|
140
|
-
return /* @__PURE__ */
|
|
141
|
-
scope:
|
|
142
|
-
value
|
|
143
|
-
triggerRef
|
|
144
|
-
contentRef
|
|
145
|
-
focusProxyRef
|
|
146
|
-
wasEscapeCloseRef
|
|
147
|
-
onEntryKeyDown:
|
|
148
|
-
onFocusProxyEnter:
|
|
149
|
-
onRootContentClose:
|
|
150
|
-
onContentFocusOutside:
|
|
151
|
-
children: /* @__PURE__ */
|
|
152
|
-
...
|
|
153
|
-
ref:
|
|
205
|
+
return /* @__PURE__ */ jsx(NavigationMenuItemContextProvider, {
|
|
206
|
+
scope: __scopeNavigationMenu,
|
|
207
|
+
value,
|
|
208
|
+
triggerRef,
|
|
209
|
+
contentRef,
|
|
210
|
+
focusProxyRef,
|
|
211
|
+
wasEscapeCloseRef,
|
|
212
|
+
onEntryKeyDown: handleContentEntry,
|
|
213
|
+
onFocusProxyEnter: handleContentEntry,
|
|
214
|
+
onRootContentClose: handleContentExit,
|
|
215
|
+
onContentFocusOutside: handleContentExit,
|
|
216
|
+
children: /* @__PURE__ */ jsx(Primitive.li, {
|
|
217
|
+
...itemProps,
|
|
218
|
+
ref: forwardedRef
|
|
154
219
|
})
|
|
155
220
|
});
|
|
156
|
-
}, "NavigationMenuItem"))
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
221
|
+
}, "NavigationMenuItem"));
|
|
222
|
+
var TRIGGER_NAME = "NavigationMenuTrigger";
|
|
223
|
+
var NavigationMenuTrigger = /* @__PURE__ */ React$1.forwardRef(/* @__PURE__ */ __name(function NavigationMenuTrigger2(props, forwardedRef) {
|
|
224
|
+
const { __scopeNavigationMenu, disabled, ...triggerProps } = props;
|
|
225
|
+
const context = useNavigationMenuContext(TRIGGER_NAME, props.__scopeNavigationMenu);
|
|
226
|
+
const itemContext = useNavigationMenuItemContext(TRIGGER_NAME, props.__scopeNavigationMenu);
|
|
227
|
+
const ref = React$1.useRef(null);
|
|
228
|
+
const composedRefs = useComposedRefs(ref, itemContext.triggerRef, forwardedRef);
|
|
229
|
+
const triggerId = makeTriggerId(context.baseId, itemContext.value);
|
|
230
|
+
const contentId = makeContentId(context.baseId, itemContext.value);
|
|
231
|
+
const hasPointerMoveOpenedRef = React$1.useRef(false);
|
|
232
|
+
const wasClickCloseRef = React$1.useRef(false);
|
|
233
|
+
const open = itemContext.value === context.value;
|
|
234
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Collection.ItemSlot, {
|
|
235
|
+
scope: __scopeNavigationMenu,
|
|
236
|
+
value: itemContext.value,
|
|
237
|
+
children: /* @__PURE__ */ jsx(FocusGroupItem, {
|
|
238
|
+
asChild: true,
|
|
239
|
+
children: /* @__PURE__ */ jsx(Primitive.button, {
|
|
240
|
+
id: triggerId,
|
|
241
|
+
disabled,
|
|
242
|
+
"data-disabled": disabled ? "" : void 0,
|
|
243
|
+
"data-state": getOpenState(open),
|
|
244
|
+
"aria-expanded": open,
|
|
245
|
+
"aria-controls": open ? contentId : void 0,
|
|
246
|
+
...triggerProps,
|
|
247
|
+
ref: composedRefs,
|
|
248
|
+
onPointerEnter: composeEventHandlers(props.onPointerEnter, () => {
|
|
249
|
+
wasClickCloseRef.current = false;
|
|
250
|
+
itemContext.wasEscapeCloseRef.current = false;
|
|
174
251
|
}),
|
|
175
|
-
onPointerMove:
|
|
176
|
-
|
|
252
|
+
onPointerMove: composeEventHandlers(props.onPointerMove, whenMouse(() => {
|
|
253
|
+
if (disabled || wasClickCloseRef.current || itemContext.wasEscapeCloseRef.current || hasPointerMoveOpenedRef.current) return;
|
|
254
|
+
context.onTriggerEnter(itemContext.value);
|
|
255
|
+
hasPointerMoveOpenedRef.current = true;
|
|
177
256
|
})),
|
|
178
|
-
onPointerLeave:
|
|
179
|
-
|
|
257
|
+
onPointerLeave: composeEventHandlers(props.onPointerLeave, whenMouse(() => {
|
|
258
|
+
if (disabled) return;
|
|
259
|
+
context.onTriggerLeave();
|
|
260
|
+
hasPointerMoveOpenedRef.current = false;
|
|
180
261
|
})),
|
|
181
|
-
onClick:
|
|
182
|
-
|
|
262
|
+
onClick: composeEventHandlers(props.onClick, () => {
|
|
263
|
+
context.onItemSelect(itemContext.value);
|
|
264
|
+
wasClickCloseRef.current = open;
|
|
183
265
|
}),
|
|
184
|
-
onKeyDown:
|
|
185
|
-
|
|
266
|
+
onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {
|
|
267
|
+
const entryKey = {
|
|
186
268
|
horizontal: "ArrowDown",
|
|
187
|
-
vertical:
|
|
188
|
-
}[
|
|
189
|
-
|
|
269
|
+
vertical: context.dir === "rtl" ? "ArrowLeft" : "ArrowRight"
|
|
270
|
+
}[context.orientation];
|
|
271
|
+
if (open && event.key === entryKey) {
|
|
272
|
+
itemContext.onEntryKeyDown();
|
|
273
|
+
event.preventDefault();
|
|
274
|
+
}
|
|
190
275
|
})
|
|
191
276
|
})
|
|
192
277
|
})
|
|
193
|
-
}),
|
|
194
|
-
"aria-hidden":
|
|
278
|
+
}), open && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Root, {
|
|
279
|
+
"aria-hidden": true,
|
|
195
280
|
tabIndex: 0,
|
|
196
|
-
ref:
|
|
197
|
-
onFocus: (
|
|
198
|
-
|
|
199
|
-
|
|
281
|
+
ref: itemContext.focusProxyRef,
|
|
282
|
+
onFocus: (event) => {
|
|
283
|
+
const content = itemContext.contentRef.current;
|
|
284
|
+
const prevFocusedElement = event.relatedTarget;
|
|
285
|
+
const wasTriggerFocused = prevFocusedElement === ref.current;
|
|
286
|
+
const wasFocusFromContent = content?.contains(prevFocusedElement);
|
|
287
|
+
if (wasTriggerFocused || !wasFocusFromContent) itemContext.onFocusProxyEnter(wasTriggerFocused ? "start" : "end");
|
|
200
288
|
}
|
|
201
|
-
}),
|
|
202
|
-
}, "NavigationMenuTrigger"))
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
289
|
+
}), context.viewport && /* @__PURE__ */ jsx("span", { "aria-owns": contentId })] })] });
|
|
290
|
+
}, "NavigationMenuTrigger"));
|
|
291
|
+
var LINK_SELECT = "navigationMenu.linkSelect";
|
|
292
|
+
var NavigationMenuLink = /* @__PURE__ */ React$1.forwardRef(/* @__PURE__ */ __name(function NavigationMenuLink2(props, forwardedRef) {
|
|
293
|
+
const { __scopeNavigationMenu, active, onSelect, ...linkProps } = props;
|
|
294
|
+
return /* @__PURE__ */ jsx(FocusGroupItem, {
|
|
295
|
+
asChild: true,
|
|
296
|
+
children: /* @__PURE__ */ jsx(Primitive.a, {
|
|
297
|
+
"data-active": active ? "" : void 0,
|
|
298
|
+
"aria-current": active ? "page" : void 0,
|
|
299
|
+
...linkProps,
|
|
300
|
+
ref: forwardedRef,
|
|
301
|
+
onClick: composeEventHandlers(props.onClick, (event) => {
|
|
302
|
+
const target = event.target;
|
|
303
|
+
const linkSelectEvent = new CustomEvent(LINK_SELECT, {
|
|
304
|
+
bubbles: true,
|
|
305
|
+
cancelable: true
|
|
215
306
|
});
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
307
|
+
target.addEventListener(LINK_SELECT, (event2) => onSelect?.(event2), { once: true });
|
|
308
|
+
dispatchDiscreteCustomEvent(target, linkSelectEvent);
|
|
309
|
+
if (!linkSelectEvent.defaultPrevented && !event.metaKey) {
|
|
310
|
+
const rootContentDismissEvent = new CustomEvent(ROOT_CONTENT_DISMISS, {
|
|
311
|
+
bubbles: true,
|
|
312
|
+
cancelable: true
|
|
220
313
|
});
|
|
221
|
-
|
|
314
|
+
dispatchDiscreteCustomEvent(target, rootContentDismissEvent);
|
|
222
315
|
}
|
|
223
|
-
}, { checkForDefaultPrevented:
|
|
316
|
+
}, { checkForDefaultPrevented: false })
|
|
224
317
|
})
|
|
225
318
|
});
|
|
226
|
-
}, "NavigationMenuLink"))
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
319
|
+
}, "NavigationMenuLink"));
|
|
320
|
+
var INDICATOR_NAME = "NavigationMenuIndicator";
|
|
321
|
+
var NavigationMenuIndicator = /* @__PURE__ */ React$1.forwardRef(/* @__PURE__ */ __name(function NavigationMenuIndicator2(props, forwardedRef) {
|
|
322
|
+
const { forceMount, ...indicatorProps } = props;
|
|
323
|
+
const context = useNavigationMenuContext(INDICATOR_NAME, props.__scopeNavigationMenu);
|
|
324
|
+
const isVisible = Boolean(context.value);
|
|
325
|
+
return context.indicatorTrack ? ReactDOM.createPortal(/* @__PURE__ */ jsx(Presence, {
|
|
326
|
+
present: forceMount || isVisible,
|
|
327
|
+
children: /* @__PURE__ */ jsx(NavigationMenuIndicatorImpl, {
|
|
328
|
+
...indicatorProps,
|
|
329
|
+
ref: forwardedRef
|
|
233
330
|
})
|
|
234
|
-
}),
|
|
235
|
-
}, "NavigationMenuIndicator"))
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
331
|
+
}), context.indicatorTrack) : null;
|
|
332
|
+
}, "NavigationMenuIndicator"));
|
|
333
|
+
var NavigationMenuIndicatorImpl = /* @__PURE__ */ React$1.forwardRef(/* @__PURE__ */ __name(function NavigationMenuIndicatorImpl2(props, forwardedRef) {
|
|
334
|
+
const { __scopeNavigationMenu, ...indicatorProps } = props;
|
|
335
|
+
const context = useNavigationMenuContext(INDICATOR_NAME, __scopeNavigationMenu);
|
|
336
|
+
const getItems = useCollection(__scopeNavigationMenu);
|
|
337
|
+
const [activeTrigger, setActiveTrigger] = React$1.useState(null);
|
|
338
|
+
const [position, setPosition] = React$1.useState(null);
|
|
339
|
+
const isHorizontal = context.orientation === "horizontal";
|
|
340
|
+
const isVisible = Boolean(context.value);
|
|
341
|
+
React$1.useEffect(() => {
|
|
342
|
+
const triggerNode = getItems().find((item) => item.value === context.value)?.ref.current;
|
|
343
|
+
if (triggerNode) setActiveTrigger(triggerNode);
|
|
344
|
+
}, [getItems, context.value]);
|
|
345
|
+
const handlePositionChange = /* @__PURE__ */ __name(() => {
|
|
346
|
+
if (activeTrigger) setPosition({
|
|
347
|
+
size: isHorizontal ? activeTrigger.offsetWidth : activeTrigger.offsetHeight,
|
|
348
|
+
offset: isHorizontal ? activeTrigger.offsetLeft : activeTrigger.offsetTop
|
|
245
349
|
});
|
|
246
350
|
}, "handlePositionChange");
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
"
|
|
251
|
-
|
|
252
|
-
|
|
351
|
+
useResizeObserver(activeTrigger, handlePositionChange);
|
|
352
|
+
useResizeObserver(context.indicatorTrack, handlePositionChange);
|
|
353
|
+
return position ? /* @__PURE__ */ jsx(Primitive.div, {
|
|
354
|
+
"aria-hidden": true,
|
|
355
|
+
"data-state": isVisible ? "visible" : "hidden",
|
|
356
|
+
"data-orientation": context.orientation,
|
|
357
|
+
...indicatorProps,
|
|
358
|
+
ref: forwardedRef,
|
|
253
359
|
style: {
|
|
254
360
|
position: "absolute",
|
|
255
|
-
...
|
|
361
|
+
...isHorizontal ? {
|
|
256
362
|
left: 0,
|
|
257
|
-
width:
|
|
258
|
-
transform: `translateX(${
|
|
259
|
-
"--radix-navigation-menu-indicator-translate-x": `${
|
|
363
|
+
width: position.size + "px",
|
|
364
|
+
transform: `translateX(${position.offset}px)`,
|
|
365
|
+
"--radix-navigation-menu-indicator-translate-x": `${position.offset}px`
|
|
260
366
|
} : {
|
|
261
367
|
top: 0,
|
|
262
|
-
height:
|
|
263
|
-
transform: `translateY(${
|
|
264
|
-
"--radix-navigation-menu-indicator-translate-y": `${
|
|
368
|
+
height: position.size + "px",
|
|
369
|
+
transform: `translateY(${position.offset}px)`,
|
|
370
|
+
"--radix-navigation-menu-indicator-translate-y": `${position.offset}px`
|
|
265
371
|
},
|
|
266
|
-
...
|
|
372
|
+
...indicatorProps.style
|
|
267
373
|
}
|
|
268
374
|
}) : null;
|
|
269
|
-
}, "NavigationMenuIndicatorImpl"))
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
375
|
+
}, "NavigationMenuIndicatorImpl"));
|
|
376
|
+
var CONTENT_NAME = "NavigationMenuContent";
|
|
377
|
+
var NavigationMenuContent = /* @__PURE__ */ React$1.forwardRef(/* @__PURE__ */ __name(function NavigationMenuContent2(props, forwardedRef) {
|
|
378
|
+
const { forceMount, ...contentProps } = props;
|
|
379
|
+
const context = useNavigationMenuContext(CONTENT_NAME, props.__scopeNavigationMenu);
|
|
380
|
+
const itemContext = useNavigationMenuItemContext(CONTENT_NAME, props.__scopeNavigationMenu);
|
|
381
|
+
const composedRefs = useComposedRefs(itemContext.contentRef, forwardedRef);
|
|
382
|
+
const open = itemContext.value === context.value;
|
|
383
|
+
const commonProps = {
|
|
384
|
+
value: itemContext.value,
|
|
385
|
+
triggerRef: itemContext.triggerRef,
|
|
386
|
+
focusProxyRef: itemContext.focusProxyRef,
|
|
387
|
+
wasEscapeCloseRef: itemContext.wasEscapeCloseRef,
|
|
388
|
+
onContentFocusOutside: itemContext.onContentFocusOutside,
|
|
389
|
+
onRootContentClose: itemContext.onRootContentClose,
|
|
390
|
+
...contentProps
|
|
278
391
|
};
|
|
279
|
-
return
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
...d,
|
|
288
|
-
ref: l,
|
|
289
|
-
onPointerEnter: n(e.onPointerEnter, o.onContentEnter),
|
|
290
|
-
onPointerLeave: n(e.onPointerLeave, $(o.onContentLeave)),
|
|
392
|
+
return !context.viewport ? /* @__PURE__ */ jsx(Presence, {
|
|
393
|
+
present: forceMount || open,
|
|
394
|
+
children: /* @__PURE__ */ jsx(NavigationMenuContentImpl, {
|
|
395
|
+
"data-state": getOpenState(open),
|
|
396
|
+
...commonProps,
|
|
397
|
+
ref: composedRefs,
|
|
398
|
+
onPointerEnter: composeEventHandlers(props.onPointerEnter, context.onContentEnter),
|
|
399
|
+
onPointerLeave: composeEventHandlers(props.onPointerLeave, whenMouse(context.onContentLeave)),
|
|
291
400
|
style: {
|
|
292
|
-
pointerEvents: !
|
|
293
|
-
...
|
|
401
|
+
pointerEvents: !open && context.isRootMenu ? "none" : void 0,
|
|
402
|
+
...commonProps.style
|
|
294
403
|
}
|
|
295
404
|
})
|
|
405
|
+
}) : /* @__PURE__ */ jsx(ViewportContentMounter, {
|
|
406
|
+
forceMount,
|
|
407
|
+
...commonProps,
|
|
408
|
+
ref: composedRefs
|
|
296
409
|
});
|
|
297
|
-
}, "NavigationMenuContent"))
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
410
|
+
}, "NavigationMenuContent"));
|
|
411
|
+
var ViewportContentMounter = /* @__PURE__ */ React$1.forwardRef(/* @__PURE__ */ __name(function ViewportContentMounter2(props, forwardedRef) {
|
|
412
|
+
const { onViewportContentChange, onViewportContentRemove } = useNavigationMenuContext(CONTENT_NAME, props.__scopeNavigationMenu);
|
|
413
|
+
useLayoutEffect2(() => {
|
|
414
|
+
onViewportContentChange(props.value, {
|
|
415
|
+
ref: forwardedRef,
|
|
416
|
+
...props
|
|
303
417
|
});
|
|
304
418
|
}, [
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
])
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
419
|
+
props,
|
|
420
|
+
forwardedRef,
|
|
421
|
+
onViewportContentChange
|
|
422
|
+
]);
|
|
423
|
+
useLayoutEffect2(() => {
|
|
424
|
+
return () => onViewportContentRemove(props.value);
|
|
425
|
+
}, [props.value, onViewportContentRemove]);
|
|
426
|
+
return null;
|
|
427
|
+
}, "ViewportContentMounter"));
|
|
428
|
+
var ROOT_CONTENT_DISMISS = "navigationMenu.rootContentDismiss";
|
|
429
|
+
var NavigationMenuContentImpl = /* @__PURE__ */ React$1.forwardRef(/* @__PURE__ */ __name(function NavigationMenuContentImpl2(props, forwardedRef) {
|
|
430
|
+
const { __scopeNavigationMenu, value, triggerRef, focusProxyRef, wasEscapeCloseRef, onRootContentClose, onContentFocusOutside, ...contentProps } = props;
|
|
431
|
+
const context = useNavigationMenuContext(CONTENT_NAME, __scopeNavigationMenu);
|
|
432
|
+
const ref = React$1.useRef(null);
|
|
433
|
+
const composedRefs = useComposedRefs(ref, forwardedRef);
|
|
434
|
+
const triggerId = makeTriggerId(context.baseId, value);
|
|
435
|
+
const contentId = makeContentId(context.baseId, value);
|
|
436
|
+
const getItems = useCollection(__scopeNavigationMenu);
|
|
437
|
+
const prevMotionAttributeRef = React$1.useRef(null);
|
|
438
|
+
const { onItemDismiss } = context;
|
|
439
|
+
React$1.useEffect(() => {
|
|
440
|
+
const content = ref.current;
|
|
441
|
+
if (context.isRootMenu && content) {
|
|
442
|
+
const handleClose = /* @__PURE__ */ __name(() => {
|
|
443
|
+
onItemDismiss();
|
|
444
|
+
onRootContentClose();
|
|
445
|
+
if (content.contains(document.activeElement)) triggerRef.current?.focus();
|
|
316
446
|
}, "handleClose");
|
|
317
|
-
|
|
447
|
+
content.addEventListener(ROOT_CONTENT_DISMISS, handleClose);
|
|
448
|
+
return () => content.removeEventListener(ROOT_CONTENT_DISMISS, handleClose);
|
|
318
449
|
}
|
|
319
450
|
}, [
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
451
|
+
context.isRootMenu,
|
|
452
|
+
props.value,
|
|
453
|
+
triggerRef,
|
|
454
|
+
onItemDismiss,
|
|
455
|
+
onRootContentClose
|
|
325
456
|
]);
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
457
|
+
const motionAttribute = React$1.useMemo(() => {
|
|
458
|
+
const values = getItems().map((item) => item.value);
|
|
459
|
+
if (context.dir === "rtl") values.reverse();
|
|
460
|
+
const index = values.indexOf(context.value);
|
|
461
|
+
const prevIndex = values.indexOf(context.previousValue);
|
|
462
|
+
const isSelected = value === context.value;
|
|
463
|
+
const wasSelected = prevIndex === values.indexOf(value);
|
|
464
|
+
if (!isSelected && !wasSelected) return prevMotionAttributeRef.current;
|
|
465
|
+
const attribute = (() => {
|
|
466
|
+
if (index !== prevIndex) {
|
|
467
|
+
if (isSelected && prevIndex !== -1) return index > prevIndex ? "from-end" : "from-start";
|
|
468
|
+
if (wasSelected && index !== -1) return index > prevIndex ? "to-start" : "to-end";
|
|
335
469
|
}
|
|
336
470
|
return null;
|
|
337
471
|
})();
|
|
338
|
-
|
|
472
|
+
prevMotionAttributeRef.current = attribute;
|
|
473
|
+
return attribute;
|
|
339
474
|
}, [
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
475
|
+
context.previousValue,
|
|
476
|
+
context.value,
|
|
477
|
+
context.dir,
|
|
478
|
+
getItems,
|
|
479
|
+
value
|
|
345
480
|
]);
|
|
346
|
-
return /* @__PURE__ */
|
|
347
|
-
asChild:
|
|
348
|
-
children: /* @__PURE__ */
|
|
349
|
-
id:
|
|
350
|
-
"aria-labelledby":
|
|
351
|
-
"data-motion":
|
|
352
|
-
"data-orientation":
|
|
353
|
-
...
|
|
354
|
-
ref:
|
|
355
|
-
disableOutsidePointerEvents:
|
|
481
|
+
return /* @__PURE__ */ jsx(FocusGroup, {
|
|
482
|
+
asChild: true,
|
|
483
|
+
children: /* @__PURE__ */ jsx(DismissableLayer, {
|
|
484
|
+
id: contentId,
|
|
485
|
+
"aria-labelledby": triggerId,
|
|
486
|
+
"data-motion": motionAttribute,
|
|
487
|
+
"data-orientation": context.orientation,
|
|
488
|
+
...contentProps,
|
|
489
|
+
ref: composedRefs,
|
|
490
|
+
disableOutsidePointerEvents: false,
|
|
356
491
|
onDismiss: () => {
|
|
357
|
-
|
|
358
|
-
bubbles:
|
|
359
|
-
cancelable:
|
|
492
|
+
const rootContentDismissEvent = new Event(ROOT_CONTENT_DISMISS, {
|
|
493
|
+
bubbles: true,
|
|
494
|
+
cancelable: true
|
|
360
495
|
});
|
|
361
|
-
|
|
496
|
+
ref.current?.dispatchEvent(rootContentDismissEvent);
|
|
362
497
|
},
|
|
363
|
-
onFocusOutside:
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
498
|
+
onFocusOutside: composeEventHandlers(props.onFocusOutside, (event) => {
|
|
499
|
+
onContentFocusOutside();
|
|
500
|
+
const target = event.target;
|
|
501
|
+
if (context.rootNavigationMenu?.contains(target)) event.preventDefault();
|
|
367
502
|
}),
|
|
368
|
-
onPointerDownOutside:
|
|
369
|
-
|
|
370
|
-
|
|
503
|
+
onPointerDownOutside: composeEventHandlers(props.onPointerDownOutside, (event) => {
|
|
504
|
+
const target = event.target;
|
|
505
|
+
const isTrigger = getItems().some((item) => item.ref.current?.contains(target));
|
|
506
|
+
const isRootViewport = context.isRootMenu && context.viewport?.contains(target);
|
|
507
|
+
if (isTrigger || isRootViewport || !context.isRootMenu) event.preventDefault();
|
|
371
508
|
}),
|
|
372
|
-
onKeyDown:
|
|
373
|
-
|
|
374
|
-
if (
|
|
375
|
-
|
|
376
|
-
|
|
509
|
+
onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {
|
|
510
|
+
const isMetaKey = event.altKey || event.ctrlKey || event.metaKey;
|
|
511
|
+
if (event.key === "Tab" && !isMetaKey) {
|
|
512
|
+
const candidates = getTabbableCandidates(event.currentTarget);
|
|
513
|
+
const focusedElement = document.activeElement;
|
|
514
|
+
const index = candidates.findIndex((candidate) => candidate === focusedElement);
|
|
515
|
+
if (focusFirst(event.shiftKey ? candidates.slice(0, index).reverse() : candidates.slice(index + 1, candidates.length))) event.preventDefault();
|
|
516
|
+
else focusProxyRef.current?.focus();
|
|
377
517
|
}
|
|
378
518
|
}),
|
|
379
|
-
onEscapeKeyDown:
|
|
380
|
-
|
|
519
|
+
onEscapeKeyDown: composeEventHandlers(props.onEscapeKeyDown, (_event) => {
|
|
520
|
+
wasEscapeCloseRef.current = true;
|
|
381
521
|
})
|
|
382
522
|
})
|
|
383
523
|
});
|
|
384
|
-
}, "NavigationMenuContentImpl"))
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
524
|
+
}, "NavigationMenuContentImpl"));
|
|
525
|
+
var VIEWPORT_NAME = "NavigationMenuViewport";
|
|
526
|
+
var NavigationMenuViewport = /* @__PURE__ */ React$1.forwardRef(/* @__PURE__ */ __name(function NavigationMenuViewport2(props, forwardedRef) {
|
|
527
|
+
const { forceMount, ...viewportProps } = props;
|
|
528
|
+
const context = useNavigationMenuContext(VIEWPORT_NAME, props.__scopeNavigationMenu);
|
|
529
|
+
const open = Boolean(context.value);
|
|
530
|
+
return /* @__PURE__ */ jsx(Presence, {
|
|
531
|
+
present: forceMount || open,
|
|
532
|
+
children: /* @__PURE__ */ jsx(NavigationMenuViewportImpl, {
|
|
533
|
+
...viewportProps,
|
|
534
|
+
ref: forwardedRef
|
|
391
535
|
})
|
|
392
536
|
});
|
|
393
|
-
}, "NavigationMenuViewport"))
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
537
|
+
}, "NavigationMenuViewport"));
|
|
538
|
+
var NavigationMenuViewportImpl = /* @__PURE__ */ React$1.forwardRef(/* @__PURE__ */ __name(function NavigationMenuViewportImpl2(props, forwardedRef) {
|
|
539
|
+
const { __scopeNavigationMenu, children, ...viewportImplProps } = props;
|
|
540
|
+
const context = useNavigationMenuContext(VIEWPORT_NAME, __scopeNavigationMenu);
|
|
541
|
+
const composedRefs = useComposedRefs(forwardedRef, context.onViewportChange);
|
|
542
|
+
const viewportContentContext = useViewportContentContext(CONTENT_NAME, props.__scopeNavigationMenu);
|
|
543
|
+
const [size, setSize] = React$1.useState(null);
|
|
544
|
+
const [content, setContent] = React$1.useState(null);
|
|
545
|
+
const viewportWidth = size ? size?.width + "px" : void 0;
|
|
546
|
+
const viewportHeight = size ? size?.height + "px" : void 0;
|
|
547
|
+
const open = Boolean(context.value);
|
|
548
|
+
const activeContentValue = open ? context.value : context.previousValue;
|
|
549
|
+
useResizeObserver(content, /* @__PURE__ */ __name(() => {
|
|
550
|
+
if (content) setSize({
|
|
551
|
+
width: content.offsetWidth,
|
|
552
|
+
height: content.offsetHeight
|
|
399
553
|
});
|
|
400
|
-
}, "handleSizeChange"))
|
|
401
|
-
|
|
402
|
-
"data-
|
|
403
|
-
|
|
404
|
-
|
|
554
|
+
}, "handleSizeChange"));
|
|
555
|
+
return /* @__PURE__ */ jsx(Primitive.div, {
|
|
556
|
+
"data-state": getOpenState(open),
|
|
557
|
+
"data-orientation": context.orientation,
|
|
558
|
+
...viewportImplProps,
|
|
559
|
+
ref: composedRefs,
|
|
405
560
|
style: {
|
|
406
|
-
pointerEvents: !
|
|
407
|
-
"--radix-navigation-menu-viewport-width":
|
|
408
|
-
"--radix-navigation-menu-viewport-height":
|
|
409
|
-
...
|
|
561
|
+
pointerEvents: !open && context.isRootMenu ? "none" : void 0,
|
|
562
|
+
"--radix-navigation-menu-viewport-width": viewportWidth,
|
|
563
|
+
"--radix-navigation-menu-viewport-height": viewportHeight,
|
|
564
|
+
...viewportImplProps.style
|
|
410
565
|
},
|
|
411
|
-
onPointerEnter:
|
|
412
|
-
onPointerLeave:
|
|
413
|
-
children: Array.from(
|
|
414
|
-
|
|
415
|
-
return /* @__PURE__ */
|
|
416
|
-
present:
|
|
417
|
-
children: /* @__PURE__ */
|
|
418
|
-
...
|
|
419
|
-
contentRef:
|
|
420
|
-
isActive
|
|
421
|
-
onActiveContentChange:
|
|
566
|
+
onPointerEnter: composeEventHandlers(props.onPointerEnter, context.onContentEnter),
|
|
567
|
+
onPointerLeave: composeEventHandlers(props.onPointerLeave, whenMouse(context.onContentLeave)),
|
|
568
|
+
children: Array.from(viewportContentContext.items).map(([value, { ref, forceMount, ...props2 }]) => {
|
|
569
|
+
const isActive = activeContentValue === value;
|
|
570
|
+
return /* @__PURE__ */ jsx(Presence, {
|
|
571
|
+
present: forceMount || isActive,
|
|
572
|
+
children: /* @__PURE__ */ jsx(NavigationMenuViewportItem, {
|
|
573
|
+
...props2,
|
|
574
|
+
contentRef: ref,
|
|
575
|
+
isActive,
|
|
576
|
+
onActiveContentChange: setContent
|
|
422
577
|
})
|
|
423
|
-
},
|
|
578
|
+
}, value);
|
|
424
579
|
})
|
|
425
580
|
});
|
|
426
|
-
}, "NavigationMenuViewportImpl"))
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
581
|
+
}, "NavigationMenuViewportImpl"));
|
|
582
|
+
var NavigationMenuViewportItem = /* @__PURE__ */ __name(({ contentRef, isActive, onActiveContentChange, ...props }) => {
|
|
583
|
+
const handleContentChange = React$1.useCallback((node) => {
|
|
584
|
+
if (isActive && node) onActiveContentChange(node);
|
|
585
|
+
}, [isActive, onActiveContentChange]);
|
|
586
|
+
const composedRefs = useComposedRefs(contentRef, handleContentChange);
|
|
587
|
+
return /* @__PURE__ */ jsx(NavigationMenuContentImpl, {
|
|
588
|
+
...props,
|
|
589
|
+
ref: composedRefs
|
|
433
590
|
});
|
|
434
|
-
}, "NavigationMenuViewportItem")
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
591
|
+
}, "NavigationMenuViewportItem");
|
|
592
|
+
var FOCUS_GROUP_NAME = "FocusGroup";
|
|
593
|
+
var FocusGroup = /* @__PURE__ */ React$1.forwardRef(/* @__PURE__ */ __name(function FocusGroup2(props, forwardedRef) {
|
|
594
|
+
const { __scopeNavigationMenu, ...groupProps } = props;
|
|
595
|
+
const context = useNavigationMenuContext(FOCUS_GROUP_NAME, __scopeNavigationMenu);
|
|
596
|
+
return /* @__PURE__ */ jsx(FocusGroupCollection.Provider, {
|
|
597
|
+
scope: __scopeNavigationMenu,
|
|
598
|
+
children: /* @__PURE__ */ jsx(FocusGroupCollection.Slot, {
|
|
599
|
+
scope: __scopeNavigationMenu,
|
|
600
|
+
children: /* @__PURE__ */ jsx(Primitive.div, {
|
|
601
|
+
dir: context.dir,
|
|
602
|
+
...groupProps,
|
|
603
|
+
ref: forwardedRef
|
|
444
604
|
})
|
|
445
605
|
})
|
|
446
606
|
});
|
|
447
|
-
}, "FocusGroup"))
|
|
607
|
+
}, "FocusGroup"));
|
|
608
|
+
var ARROW_KEYS = [
|
|
448
609
|
"ArrowRight",
|
|
449
610
|
"ArrowLeft",
|
|
450
611
|
"ArrowUp",
|
|
451
612
|
"ArrowDown"
|
|
452
|
-
]
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
613
|
+
];
|
|
614
|
+
var FOCUS_GROUP_ITEM_NAME = "FocusGroupItem";
|
|
615
|
+
var FocusGroupItem = /* @__PURE__ */ React$1.forwardRef(/* @__PURE__ */ __name(function FocusGroupItem2(props, forwardedRef) {
|
|
616
|
+
const { __scopeNavigationMenu, ...groupProps } = props;
|
|
617
|
+
const getItems = useFocusGroupCollection(__scopeNavigationMenu);
|
|
618
|
+
const context = useNavigationMenuContext(FOCUS_GROUP_ITEM_NAME, __scopeNavigationMenu);
|
|
619
|
+
return /* @__PURE__ */ jsx(FocusGroupCollection.ItemSlot, {
|
|
620
|
+
scope: __scopeNavigationMenu,
|
|
621
|
+
children: /* @__PURE__ */ jsx(Primitive.button, {
|
|
622
|
+
...groupProps,
|
|
623
|
+
ref: forwardedRef,
|
|
624
|
+
onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {
|
|
460
625
|
if ([
|
|
461
626
|
"Home",
|
|
462
627
|
"End",
|
|
463
|
-
...
|
|
464
|
-
].includes(
|
|
465
|
-
let
|
|
628
|
+
...ARROW_KEYS
|
|
629
|
+
].includes(event.key)) {
|
|
630
|
+
let candidateNodes = getItems().map((item) => item.ref.current);
|
|
466
631
|
if ([
|
|
467
|
-
|
|
632
|
+
context.dir === "rtl" ? "ArrowRight" : "ArrowLeft",
|
|
468
633
|
"ArrowUp",
|
|
469
634
|
"End"
|
|
470
|
-
].includes(
|
|
471
|
-
|
|
472
|
-
|
|
635
|
+
].includes(event.key)) candidateNodes.reverse();
|
|
636
|
+
if (ARROW_KEYS.includes(event.key)) {
|
|
637
|
+
const currentIndex = candidateNodes.indexOf(event.currentTarget);
|
|
638
|
+
candidateNodes = candidateNodes.slice(currentIndex + 1);
|
|
473
639
|
}
|
|
474
|
-
setTimeout(() =>
|
|
640
|
+
setTimeout(() => focusFirst(candidateNodes));
|
|
641
|
+
event.preventDefault();
|
|
475
642
|
}
|
|
476
643
|
})
|
|
477
644
|
})
|
|
478
645
|
});
|
|
479
646
|
}, "FocusGroupItem"));
|
|
480
|
-
function
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
647
|
+
function getTabbableCandidates(container) {
|
|
648
|
+
const nodes = [];
|
|
649
|
+
const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, { acceptNode: /* @__PURE__ */ __name((node) => {
|
|
650
|
+
const isHiddenInput = node.tagName === "INPUT" && node.type === "hidden";
|
|
651
|
+
if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP;
|
|
652
|
+
return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
484
653
|
}, "acceptNode") });
|
|
485
|
-
|
|
486
|
-
return
|
|
654
|
+
while (walker.nextNode()) nodes.push(walker.currentNode);
|
|
655
|
+
return nodes;
|
|
487
656
|
}
|
|
488
|
-
|
|
489
|
-
function
|
|
490
|
-
|
|
491
|
-
return
|
|
657
|
+
__name(getTabbableCandidates, "getTabbableCandidates");
|
|
658
|
+
function focusFirst(candidates) {
|
|
659
|
+
const previouslyFocusedElement = document.activeElement;
|
|
660
|
+
return candidates.some((candidate) => {
|
|
661
|
+
if (candidate === previouslyFocusedElement) return true;
|
|
662
|
+
candidate.focus();
|
|
663
|
+
return document.activeElement !== previouslyFocusedElement;
|
|
664
|
+
});
|
|
492
665
|
}
|
|
493
|
-
|
|
494
|
-
function
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
666
|
+
__name(focusFirst, "focusFirst");
|
|
667
|
+
function removeFromTabOrder(candidates) {
|
|
668
|
+
candidates.forEach((candidate) => {
|
|
669
|
+
candidate.dataset.tabindex = candidate.getAttribute("tabindex") || "";
|
|
670
|
+
candidate.setAttribute("tabindex", "-1");
|
|
671
|
+
});
|
|
672
|
+
return () => {
|
|
673
|
+
candidates.forEach((candidate) => {
|
|
674
|
+
const prevTabIndex = candidate.dataset.tabindex;
|
|
675
|
+
candidate.setAttribute("tabindex", prevTabIndex);
|
|
501
676
|
});
|
|
502
677
|
};
|
|
503
678
|
}
|
|
504
|
-
|
|
505
|
-
function
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
let
|
|
509
|
-
if (
|
|
510
|
-
|
|
511
|
-
cancelAnimationFrame(
|
|
679
|
+
__name(removeFromTabOrder, "removeFromTabOrder");
|
|
680
|
+
function useResizeObserver(element, onResize) {
|
|
681
|
+
const handleResize = useCallbackRef(onResize);
|
|
682
|
+
useLayoutEffect2(() => {
|
|
683
|
+
let rAF = 0;
|
|
684
|
+
if (element) {
|
|
685
|
+
const resizeObserver = new ResizeObserver(() => {
|
|
686
|
+
cancelAnimationFrame(rAF);
|
|
687
|
+
rAF = window.requestAnimationFrame(handleResize);
|
|
512
688
|
});
|
|
513
|
-
|
|
514
|
-
|
|
689
|
+
resizeObserver.observe(element);
|
|
690
|
+
return () => {
|
|
691
|
+
window.cancelAnimationFrame(rAF);
|
|
692
|
+
resizeObserver.unobserve(element);
|
|
515
693
|
};
|
|
516
694
|
}
|
|
517
|
-
}, [
|
|
695
|
+
}, [element, handleResize]);
|
|
518
696
|
}
|
|
519
|
-
|
|
520
|
-
function
|
|
521
|
-
return
|
|
697
|
+
__name(useResizeObserver, "useResizeObserver");
|
|
698
|
+
function getOpenState(open) {
|
|
699
|
+
return open ? "open" : "closed";
|
|
522
700
|
}
|
|
523
|
-
|
|
524
|
-
function
|
|
525
|
-
return `${
|
|
701
|
+
__name(getOpenState, "getOpenState");
|
|
702
|
+
function makeTriggerId(baseId, value) {
|
|
703
|
+
return `${baseId}-trigger-${value}`;
|
|
526
704
|
}
|
|
527
|
-
|
|
528
|
-
function
|
|
529
|
-
return `${
|
|
705
|
+
__name(makeTriggerId, "makeTriggerId");
|
|
706
|
+
function makeContentId(baseId, value) {
|
|
707
|
+
return `${baseId}-content-${value}`;
|
|
530
708
|
}
|
|
531
|
-
|
|
532
|
-
function
|
|
533
|
-
return (
|
|
709
|
+
__name(makeContentId, "makeContentId");
|
|
710
|
+
function whenMouse(handler) {
|
|
711
|
+
return (event) => event.pointerType === "mouse" ? handler(event) : void 0;
|
|
534
712
|
}
|
|
535
|
-
|
|
536
|
-
var
|
|
537
|
-
|
|
713
|
+
__name(whenMouse, "whenMouse");
|
|
714
|
+
var Root2 = NavigationMenu;
|
|
715
|
+
var List = NavigationMenuList;
|
|
716
|
+
var Item = NavigationMenuItem;
|
|
717
|
+
var Trigger = NavigationMenuTrigger;
|
|
718
|
+
var Link = NavigationMenuLink;
|
|
719
|
+
var Indicator = NavigationMenuIndicator;
|
|
720
|
+
var Content = NavigationMenuContent;
|
|
721
|
+
var Viewport = NavigationMenuViewport;
|
|
722
|
+
export { Content, Indicator, Item, Link, List, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Root2 as Root, Trigger, Viewport };
|