@povio/ui 3.4.0-rc.2 → 3.4.0-rc.22
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/README.md +31 -2
- package/dist/Accordion-CgNQw-pZ.d.ts +58 -0
- package/dist/Accordion-DT1wcBFP.js +552 -0
- package/dist/ActionModal-DLeVinly.d.ts +26 -0
- package/dist/Alert-1gjUqXaO.js +240 -0
- package/dist/Alert-C0GAvkdO.d.ts +33 -0
- package/dist/Autocomplete-CYT1Vk1F.d.ts +15 -0
- package/dist/BottomSheet-BWKej2PR.d.ts +34 -0
- package/dist/BottomSheet-Cwci3M8j.js +448 -0
- package/dist/Breadcrumbs-DrmLNtmQ.js +534 -0
- package/dist/Breadcrumbs-pSLRyeOe.d.ts +19 -0
- package/dist/Button-C_FOjIn-.d.ts +30 -0
- package/dist/Button-Cq7t4Xxl.js +160 -0
- package/dist/Button-Dlm1NyTJ.js +690 -0
- package/dist/ButtonContent-17xvQXod.js +122 -0
- package/dist/Calendar-C9Dbdkkl.js +654 -0
- package/dist/CheckContent-DzWpxKGq.js +19 -0
- package/dist/Checkbox-DyEipBjR.js +403 -0
- package/dist/Checkbox-Ee9K3u2J.d.ts +24 -0
- package/dist/CheckboxCheckmark-C7Oq15ms.js +195 -0
- package/dist/CheckboxGroup-D-sNgUMN.d.ts +28 -0
- package/dist/DatePicker-DM_tCN-6.js +426 -0
- package/dist/DatePicker-DclmenVd.d.ts +43 -0
- package/dist/DatePickerInput-BC-q8HcY.d.ts +18 -0
- package/dist/DatePickerInput-C2z1kgaC.js +598 -0
- package/dist/DateRangePicker-BmScgvEH.js +1322 -0
- package/dist/DateRangePicker-DjkIlnMl.d.ts +47 -0
- package/dist/DateTimePicker-CAFB33ih.js +380 -0
- package/dist/DateTimePicker-aDvcYnVk.d.ts +42 -0
- package/dist/Dialog-BQN4Z3bO.js +4505 -0
- package/dist/Drawer-DnSLe85M.d.ts +18 -0
- package/dist/FileTrigger-eHfAkdXd.js +2186 -0
- package/dist/FileUpload-CHgnF4Nm.d.ts +7 -0
- package/dist/FileUpload-Cb--_Mbk.js +766 -0
- package/dist/FileUploadContainer-Co33mh7x.d.ts +5 -0
- package/dist/Form-B4Sbjn__.d.ts +49 -0
- package/dist/Form-CKUcoaMX.js +8 -0
- package/dist/FormField-DoGaUqFm.js +235 -0
- package/dist/FormField-FvutosEE.d.ts +80 -0
- package/dist/FormFieldError-BT4uxbKY.d.ts +10 -0
- package/dist/FormFieldError-CFg0Wn3i.js +26 -0
- package/dist/HeaderText-BrZaEuIn.d.ts +19 -0
- package/dist/Hidden-BtagiSrf.js +32 -0
- package/dist/IconButton-uO0Mjcqw.d.ts +14 -0
- package/dist/InlineIconButton-CLiZzTVJ.d.ts +16 -0
- package/dist/Input-TO1R-KsB.js +45 -0
- package/dist/InputItem-DYNprOmw.js +63 -0
- package/dist/InputUpload-BqKQcew0.d.ts +66 -0
- package/dist/InputUpload-k_RRfoeF.js +233 -0
- package/dist/Inputs-BapBcBa7.js +17 -0
- package/dist/Inputs-DncFwdP2.d.ts +13 -0
- package/dist/Label-C0MdchIz.js +17 -0
- package/dist/Link-BBMgG7TX.js +82 -0
- package/dist/Link-BvAKCJcB.js +42 -0
- package/dist/Link-DwUGkr9s.d.ts +23 -0
- package/dist/ListBox-HE5uFtiS.js +739 -0
- package/dist/Loader-C6YkWZOO.js +113 -0
- package/dist/Loader-Sbr1b0iU.d.ts +29 -0
- package/dist/Menu-CLA3gTYc.d.ts +58 -0
- package/dist/Menu-Db_stvqw.js +178 -0
- package/dist/MenuDesktop-BjK3K8gs.js +248 -0
- package/dist/MenuItem-ChgmtbQw.d.ts +6 -0
- package/dist/Modal-BVL1P0ls.d.ts +53 -0
- package/dist/Modal-CYvIKx5Z.js +204 -0
- package/dist/Modal-CkSO1C1n.js +58 -0
- package/dist/NumberFormatter-KUrW7GbE.js +122 -0
- package/dist/NumberInput-mTYSZkqH.d.ts +26 -0
- package/dist/NumberRangeInput-BsATw2M1.js +403 -0
- package/dist/NumberRangeInput-DS6_DIEc.d.ts +44 -0
- package/dist/OverlayArrow-BrSp26z2.js +654 -0
- package/dist/Pagination-YrWwwM_f.d.ts +12 -0
- package/dist/PaginationList-71pjqcQ0.d.ts +18 -0
- package/dist/PaginationList-DJfUpGY9.js +218 -0
- package/dist/PasswordInput-BUZPRoOL.js +63 -0
- package/dist/PasswordInput-XI0n5I1s.d.ts +10 -0
- package/dist/Pill-DSt6f4Eq.d.ts +18 -0
- package/dist/PillButton-NdrR6uVR.d.ts +15 -0
- package/dist/PressResponder-q8UTUsf0.js +63 -0
- package/dist/ProgressBar-C8dtVA-1.js +58 -0
- package/dist/ProgressBar-DG-ClG9v.d.ts +44 -0
- package/dist/QuerySelect-W0euIrkL.d.ts +23 -0
- package/dist/RSPContexts-DHQi1l7F.js +12 -0
- package/dist/RadioGroup-CNSTNHYN.js +569 -0
- package/dist/RadioGroup-D6-jU_Hb.d.ts +73 -0
- package/dist/ResponsivePopover-CokwzUr4.d.ts +19 -0
- package/dist/Segment-Cndlojxv.js +348 -0
- package/dist/Segment-IpdajE4h.d.ts +7 -0
- package/dist/Select-CCNQ4Bso.js +155 -0
- package/dist/Select-CNTaUjfL.d.ts +15 -0
- package/dist/SelectBase-C4lPY7Hc.d.ts +97 -0
- package/dist/SelectionIndicator-qJF4qfyY.js +758 -0
- package/dist/Slider-C2VnHdQq.js +818 -0
- package/dist/Slider-HF31GF1t.d.ts +22 -0
- package/dist/SplitButton-CnyLnCrQ.d.ts +15 -0
- package/dist/Stepper-JUO4MbZx.d.ts +113 -0
- package/dist/Stepper-yN3fNyGt.js +336 -0
- package/dist/Tag-CXfTBg6q.d.ts +34 -0
- package/dist/Tag-DCo_fVLl.js +95 -0
- package/dist/Text-BTtw_Syz.js +5 -0
- package/dist/TextArea-8_TYSixS.d.ts +20 -0
- package/dist/TextArea-CS-2txl7.js +175 -0
- package/dist/TextButton-BdefN7SL.d.ts +15 -0
- package/dist/TextEditor-CXDFpX_q.d.ts +26 -0
- package/dist/TextEditor-p0CqH_71.js +3439 -0
- package/dist/TimePicker-Bspfhoo_.d.ts +32 -0
- package/dist/TimePicker-DLzbOPrC.js +375 -0
- package/dist/Toast-4Q3O7cKx.js +957 -0
- package/dist/Toast-DDkev3SZ.d.ts +75 -0
- package/dist/Toggle-CgD4ykP4.js +177 -0
- package/dist/Toggle-TDp5YtaQ.d.ts +32 -0
- package/dist/ToggleButton-BuEhb8eu.d.ts +12 -0
- package/dist/ToggleButton-D94yRla8.js +216 -0
- package/dist/Tooltip-KfGHmXdx.js +539 -0
- package/dist/Tooltip-zaZ0d1jz.d.ts +56 -0
- package/dist/TooltipEllipsis-Di9Dvd4x.d.ts +11 -0
- package/dist/TooltipWrapper-CLMp_zj4.js +71 -0
- package/dist/Typography-AcUd9df8.js +31 -0
- package/dist/Typography-BiHrVFpz.d.ts +12 -0
- package/dist/VisuallyHidden-DjaDVPQT.js +43 -0
- package/dist/autocomplete-B2Ol8qjV.d.ts +16 -0
- package/dist/button.cva-zMNkoZH8.d.ts +92 -0
- package/dist/buttonContent.cva-CIOaLH0a.d.ts +6 -0
- package/dist/check-M2G7r3oH.js +13 -0
- package/dist/checkbox-CGea408G.d.ts +9 -0
- package/dist/checkbox-group-BdjjQ24I.d.ts +9 -0
- package/dist/checkbox.cva-Caaf2Ysq.d.ts +77 -0
- package/dist/chevron-down-Ciz9yP9R.js +13 -0
- package/dist/chevron-left-VO8YZrXZ.js +13 -0
- package/dist/chevron-right-C_M98bh3.js +13 -0
- package/dist/chevron-up-CHRnDSA3.js +13 -0
- package/dist/chevrons-right-BXdmZ2TS.js +29 -0
- package/dist/clsx-CnD0nOiA.js +16 -0
- package/dist/common-UBFya8WY.d.ts +11 -0
- package/dist/components/accordion.d.ts +2 -0
- package/dist/components/accordion.js +2 -0
- package/dist/components/action-modal.d.ts +2 -0
- package/dist/components/action-modal.js +188 -0
- package/dist/components/alert.d.ts +2 -0
- package/dist/components/alert.js +2 -0
- package/dist/components/autocomplete/react-aria.d.ts +1 -0
- package/dist/components/autocomplete/react-aria.js +1 -0
- package/dist/components/autocomplete.d.ts +2 -0
- package/dist/components/autocomplete.js +131 -0
- package/dist/components/bottom-sheet.d.ts +2 -0
- package/dist/components/bottom-sheet.js +2 -0
- package/dist/components/breadcrumb/react-aria.d.ts +1 -0
- package/dist/components/breadcrumb/react-aria.js +11 -0
- package/dist/components/breadcrumbs/react-aria.d.ts +1 -0
- package/dist/components/breadcrumbs/react-aria.js +11 -0
- package/dist/components/breadcrumbs.d.ts +2 -0
- package/dist/components/breadcrumbs.js +2 -0
- package/dist/components/button/react-aria.d.ts +1 -0
- package/dist/components/button/react-aria.js +1 -0
- package/dist/components/button.d.ts +3 -0
- package/dist/components/button.js +2 -0
- package/dist/components/calendar/react-aria.d.ts +1 -0
- package/dist/components/calendar/react-aria.js +1 -0
- package/dist/components/calendar-cell/react-aria.d.ts +1 -0
- package/dist/components/calendar-cell/react-aria.js +1 -0
- package/dist/components/calendar-grid/react-aria.d.ts +1 -0
- package/dist/components/calendar-grid/react-aria.js +1 -0
- package/dist/components/calendar-grid-body/react-aria.d.ts +1 -0
- package/dist/components/calendar-grid-body/react-aria.js +1 -0
- package/dist/components/calendar-grid-header/react-aria.d.ts +1 -0
- package/dist/components/calendar-grid-header/react-aria.js +1 -0
- package/dist/components/calendar-header-cell/react-aria.d.ts +1 -0
- package/dist/components/calendar-header-cell/react-aria.js +1 -0
- package/dist/components/cell/react-aria.d.ts +1 -0
- package/dist/components/cell/react-aria.js +11 -0
- package/dist/components/checkbox/react-aria.d.ts +1 -0
- package/dist/components/checkbox/react-aria.js +1 -0
- package/dist/components/checkbox-group/react-aria.d.ts +1 -0
- package/dist/components/checkbox-group/react-aria.js +1 -0
- package/dist/components/checkbox-group.d.ts +2 -0
- package/dist/components/checkbox-group.js +161 -0
- package/dist/components/checkbox.d.ts +2 -0
- package/dist/components/checkbox.js +2 -0
- package/dist/components/collection/react-aria.d.ts +1 -0
- package/dist/components/collection/react-aria.js +11 -0
- package/dist/components/color-area/react-aria.d.ts +1 -0
- package/dist/components/color-area/react-aria.js +1 -0
- package/dist/components/color-field/react-aria.d.ts +1 -0
- package/dist/components/color-field/react-aria.js +1 -0
- package/dist/components/color-picker/react-aria.d.ts +1 -0
- package/dist/components/color-picker/react-aria.js +1 -0
- package/dist/components/color-slider/react-aria.d.ts +1 -0
- package/dist/components/color-slider/react-aria.js +1 -0
- package/dist/components/color-swatch/react-aria.d.ts +1 -0
- package/dist/components/color-swatch/react-aria.js +1 -0
- package/dist/components/color-swatch-picker/react-aria.d.ts +5 -0
- package/dist/components/color-swatch-picker/react-aria.js +11 -0
- package/dist/components/color-swatch-picker-item/react-aria.d.ts +5 -0
- package/dist/components/color-swatch-picker-item/react-aria.js +11 -0
- package/dist/components/color-thumb/react-aria.d.ts +1 -0
- package/dist/components/color-thumb/react-aria.js +1 -0
- package/dist/components/color-wheel/react-aria.d.ts +1 -0
- package/dist/components/color-wheel/react-aria.js +1 -0
- package/dist/components/color-wheel-track/react-aria.d.ts +1 -0
- package/dist/components/color-wheel-track/react-aria.js +1 -0
- package/dist/components/column/react-aria.d.ts +1 -0
- package/dist/components/column/react-aria.js +11 -0
- package/dist/components/column-resizer/react-aria.d.ts +1 -0
- package/dist/components/column-resizer/react-aria.js +11 -0
- package/dist/components/combo-box/react-aria.d.ts +1 -0
- package/dist/components/combo-box/react-aria.js +11 -0
- package/dist/components/date-field/react-aria.d.ts +1 -0
- package/dist/components/date-field/react-aria.js +1 -0
- package/dist/components/date-input/react-aria.d.ts +1 -0
- package/dist/components/date-input/react-aria.js +1 -0
- package/dist/components/date-picker/react-aria.d.ts +1 -0
- package/dist/components/date-picker/react-aria.js +1 -0
- package/dist/components/date-picker.d.ts +2 -0
- package/dist/components/date-picker.js +2 -0
- package/dist/components/date-range-picker/react-aria.d.ts +1 -0
- package/dist/components/date-range-picker/react-aria.js +1 -0
- package/dist/components/date-range-picker.d.ts +2 -0
- package/dist/components/date-range-picker.js +2 -0
- package/dist/components/date-segment/react-aria.d.ts +1 -0
- package/dist/components/date-segment/react-aria.js +1 -0
- package/dist/components/date-time-picker.d.ts +2 -0
- package/dist/components/date-time-picker.js +2 -0
- package/dist/components/default-collection-renderer/react-aria.d.ts +1 -0
- package/dist/components/default-collection-renderer/react-aria.js +1 -0
- package/dist/components/dialog/react-aria.d.ts +1 -0
- package/dist/components/dialog/react-aria.js +1 -0
- package/dist/components/dialog-trigger/react-aria.d.ts +1 -0
- package/dist/components/dialog-trigger/react-aria.js +1 -0
- package/dist/components/disclosure/react-aria.d.ts +1 -0
- package/dist/components/disclosure/react-aria.js +1 -0
- package/dist/components/disclosure-group/react-aria.d.ts +1 -0
- package/dist/components/disclosure-group/react-aria.js +1 -0
- package/dist/components/disclosure-panel/react-aria.d.ts +1 -0
- package/dist/components/disclosure-panel/react-aria.js +1 -0
- package/dist/components/drawer.d.ts +2 -0
- package/dist/components/drawer.js +96 -0
- package/dist/components/drop-indicator/react-aria.d.ts +1 -0
- package/dist/components/drop-indicator/react-aria.js +1 -0
- package/dist/components/drop-zone/react-aria.d.ts +1 -0
- package/dist/components/drop-zone/react-aria.js +1 -0
- package/dist/components/field-error/react-aria.d.ts +1 -0
- package/dist/components/field-error/react-aria.js +1 -0
- package/dist/components/file-trigger/react-aria.d.ts +1 -0
- package/dist/components/file-trigger/react-aria.js +1 -0
- package/dist/components/file-upload-container.d.ts +3 -0
- package/dist/components/file-upload-container.js +15 -0
- package/dist/components/file-upload.d.ts +3 -0
- package/dist/components/file-upload.js +2 -0
- package/dist/components/focusable/react-aria.d.ts +1 -0
- package/dist/components/focusable/react-aria.js +1 -0
- package/dist/components/form/react-aria.d.ts +1 -0
- package/dist/components/form/react-aria.js +1 -0
- package/dist/components/form-field.d.ts +2 -0
- package/dist/components/form-field.js +2 -0
- package/dist/components/grid-list/react-aria.d.ts +1 -0
- package/dist/components/grid-list/react-aria.js +11 -0
- package/dist/components/grid-list-header/react-aria.d.ts +1 -0
- package/dist/components/grid-list-header/react-aria.js +11 -0
- package/dist/components/grid-list-item/react-aria.d.ts +1 -0
- package/dist/components/grid-list-item/react-aria.js +11 -0
- package/dist/components/grid-list-load-more-item/react-aria.d.ts +1 -0
- package/dist/components/grid-list-load-more-item/react-aria.js +11 -0
- package/dist/components/grid-list-section/react-aria.d.ts +1 -0
- package/dist/components/grid-list-section/react-aria.js +11 -0
- package/dist/components/group/react-aria.d.ts +1 -0
- package/dist/components/group/react-aria.js +1 -0
- package/dist/components/header/react-aria.d.ts +1 -0
- package/dist/components/header/react-aria.js +11 -0
- package/dist/components/heading/react-aria.d.ts +1 -0
- package/dist/components/heading/react-aria.js +1 -0
- package/dist/components/i18n-provider/react-aria.d.ts +1 -0
- package/dist/components/i18n-provider/react-aria.js +1 -0
- package/dist/components/icon-button.d.ts +2 -0
- package/dist/components/icon-button.js +51 -0
- package/dist/components/inline-icon-button.d.ts +2 -0
- package/dist/components/inline-icon-button.js +40 -0
- package/dist/components/input/react-aria.d.ts +1 -0
- package/dist/components/input/react-aria.js +1 -0
- package/dist/components/input-upload.d.ts +2 -0
- package/dist/components/input-upload.js +2 -0
- package/dist/components/keyboard/react-aria.d.ts +1 -0
- package/dist/components/keyboard/react-aria.js +1 -0
- package/dist/components/label/react-aria.d.ts +1 -0
- package/dist/components/label/react-aria.js +1 -0
- package/dist/components/link/react-aria.d.ts +1 -0
- package/dist/components/link/react-aria.js +1 -0
- package/dist/components/link.d.ts +2 -0
- package/dist/components/link.js +2 -0
- package/dist/components/list-box/react-aria.d.ts +1 -0
- package/dist/components/list-box/react-aria.js +11 -0
- package/dist/components/list-box-item/react-aria.d.ts +1 -0
- package/dist/components/list-box-item/react-aria.js +11 -0
- package/dist/components/list-box-load-more-item/react-aria.d.ts +1 -0
- package/dist/components/list-box-load-more-item/react-aria.js +11 -0
- package/dist/components/list-box-section/react-aria.d.ts +1 -0
- package/dist/components/list-box-section/react-aria.js +11 -0
- package/dist/components/loader.d.ts +2 -0
- package/dist/components/loader.js +2 -0
- package/dist/components/menu/react-aria.d.ts +1 -0
- package/dist/components/menu/react-aria.js +11 -0
- package/dist/components/menu-item/react-aria.d.ts +1 -0
- package/dist/components/menu-item/react-aria.js +11 -0
- package/dist/components/menu-section/react-aria.d.ts +1 -0
- package/dist/components/menu-section/react-aria.js +11 -0
- package/dist/components/menu-trigger/react-aria.d.ts +1 -0
- package/dist/components/menu-trigger/react-aria.js +1 -0
- package/dist/components/menu.d.ts +3 -0
- package/dist/components/menu.js +3 -0
- package/dist/components/meter/react-aria.d.ts +1 -0
- package/dist/components/meter/react-aria.js +1 -0
- package/dist/components/modal/react-aria.d.ts +1 -0
- package/dist/components/modal/react-aria.js +1 -0
- package/dist/components/modal-overlay/react-aria.d.ts +1 -0
- package/dist/components/modal-overlay/react-aria.js +1 -0
- package/dist/components/modal.d.ts +2 -0
- package/dist/components/modal.js +2 -0
- package/dist/components/number-field/react-aria.d.ts +1 -0
- package/dist/components/number-field/react-aria.js +1 -0
- package/dist/components/number-input.d.ts +2 -0
- package/dist/components/number-input.js +242 -0
- package/dist/components/number-range-input.d.ts +2 -0
- package/dist/components/number-range-input.js +2 -0
- package/dist/components/overlay-arrow/react-aria.d.ts +1 -0
- package/dist/components/overlay-arrow/react-aria.js +1 -0
- package/dist/components/pagination-list.d.ts +2 -0
- package/dist/components/pagination-list.js +2 -0
- package/dist/components/pagination.d.ts +2 -0
- package/dist/components/pagination.js +131 -0
- package/dist/components/password-input.d.ts +2 -0
- package/dist/components/password-input.js +2 -0
- package/dist/components/pill-button.d.ts +2 -0
- package/dist/components/pill-button.js +73 -0
- package/dist/components/pill.d.ts +2 -0
- package/dist/components/pill.js +44 -0
- package/dist/components/popover/react-aria.d.ts +1 -0
- package/dist/components/popover/react-aria.js +1 -0
- package/dist/components/pressable/react-aria.d.ts +1 -0
- package/dist/components/pressable/react-aria.js +1 -0
- package/dist/components/progress-bar/react-aria.d.ts +1 -0
- package/dist/components/progress-bar/react-aria.js +1 -0
- package/dist/components/progress-bar.d.ts +2 -0
- package/dist/components/progress-bar.js +2 -0
- package/dist/components/provider/react-aria.d.ts +1 -0
- package/dist/components/provider/react-aria.js +1 -0
- package/dist/components/query-autocomplete.d.ts +8 -0
- package/dist/components/query-autocomplete.js +104 -0
- package/dist/components/query-select.d.ts +2 -0
- package/dist/components/query-select.js +114 -0
- package/dist/components/radio/react-aria.d.ts +1 -0
- package/dist/components/radio/react-aria.js +1 -0
- package/dist/components/radio-group/react-aria.d.ts +1 -0
- package/dist/components/radio-group/react-aria.js +1 -0
- package/dist/components/radio-group.d.ts +2 -0
- package/dist/components/radio-group.js +2 -0
- package/dist/components/range-calendar/react-aria.d.ts +1 -0
- package/dist/components/range-calendar/react-aria.js +1 -0
- package/dist/components/resizable-table-container/react-aria.d.ts +1 -0
- package/dist/components/resizable-table-container/react-aria.js +11 -0
- package/dist/components/responsive-popover.d.ts +2 -0
- package/dist/components/responsive-popover.js +126 -0
- package/dist/components/router-provider/react-aria.d.ts +1 -0
- package/dist/components/router-provider/react-aria.js +1 -0
- package/dist/components/row/react-aria.d.ts +1 -0
- package/dist/components/row/react-aria.js +11 -0
- package/dist/components/search-field/react-aria.d.ts +1 -0
- package/dist/components/search-field/react-aria.js +1 -0
- package/dist/components/section/react-aria.d.ts +1 -0
- package/dist/components/section/react-aria.js +11 -0
- package/dist/components/segment.d.ts +3 -0
- package/dist/components/segment.js +2 -0
- package/dist/components/select/react-aria.d.ts +1 -0
- package/dist/components/select/react-aria.js +11 -0
- package/dist/components/select-value/react-aria.d.ts +1 -0
- package/dist/components/select-value/react-aria.js +1 -0
- package/dist/components/select.d.ts +3 -0
- package/dist/components/select.js +2 -0
- package/dist/components/selection-indicator/react-aria.d.ts +1 -0
- package/dist/components/selection-indicator/react-aria.js +1 -0
- package/dist/components/separator/react-aria.d.ts +1 -0
- package/dist/components/separator/react-aria.js +11 -0
- package/dist/components/shared-element/react-aria.d.ts +1 -0
- package/dist/components/shared-element/react-aria.js +1 -0
- package/dist/components/shared-element-transition/react-aria.d.ts +1 -0
- package/dist/components/shared-element-transition/react-aria.js +1 -0
- package/dist/components/slider/react-aria.d.ts +1 -0
- package/dist/components/slider/react-aria.js +1 -0
- package/dist/components/slider-output/react-aria.d.ts +1 -0
- package/dist/components/slider-output/react-aria.js +1 -0
- package/dist/components/slider-thumb/react-aria.d.ts +1 -0
- package/dist/components/slider-thumb/react-aria.js +1 -0
- package/dist/components/slider-track/react-aria.d.ts +1 -0
- package/dist/components/slider-track/react-aria.js +1 -0
- package/dist/components/slider.d.ts +2 -0
- package/dist/components/slider.js +2 -0
- package/dist/components/split-button.d.ts +2 -0
- package/dist/components/split-button.js +123 -0
- package/dist/components/ssr-provider/react-aria.d.ts +1 -0
- package/dist/components/ssr-provider/react-aria.js +1 -0
- package/dist/components/stepper.d.ts +2 -0
- package/dist/components/stepper.js +2 -0
- package/dist/components/submenu-trigger/react-aria.d.ts +1 -0
- package/dist/components/submenu-trigger/react-aria.js +11 -0
- package/dist/components/switch/react-aria.d.ts +1 -0
- package/dist/components/switch/react-aria.js +1 -0
- package/dist/components/tab/react-aria.d.ts +1 -0
- package/dist/components/tab/react-aria.js +11 -0
- package/dist/components/tab-list/react-aria.d.ts +1 -0
- package/dist/components/tab-list/react-aria.js +11 -0
- package/dist/components/tab-panel/react-aria.d.ts +1 -0
- package/dist/components/tab-panel/react-aria.js +1 -0
- package/dist/components/tab-panels/react-aria.d.ts +1 -0
- package/dist/components/tab-panels/react-aria.js +11 -0
- package/dist/components/table/react-aria.d.ts +1 -0
- package/dist/components/table/react-aria.js +11 -0
- package/dist/components/table-body/react-aria.d.ts +1 -0
- package/dist/components/table-body/react-aria.js +11 -0
- package/dist/components/table-header/react-aria.d.ts +1 -0
- package/dist/components/table-header/react-aria.js +11 -0
- package/dist/components/table-load-more-item/react-aria.d.ts +1 -0
- package/dist/components/table-load-more-item/react-aria.js +11 -0
- package/dist/components/tabs/react-aria.d.ts +1 -0
- package/dist/components/tabs/react-aria.js +11 -0
- package/dist/components/tag/react-aria.d.ts +1 -0
- package/dist/components/tag/react-aria.js +11 -0
- package/dist/components/tag-group/react-aria.d.ts +1 -0
- package/dist/components/tag-group/react-aria.js +11 -0
- package/dist/components/tag-list/react-aria.d.ts +1 -0
- package/dist/components/tag-list/react-aria.js +11 -0
- package/dist/components/tag.d.ts +2 -0
- package/dist/components/tag.js +2 -0
- package/dist/components/text/react-aria.d.ts +1 -0
- package/dist/components/text/react-aria.js +1 -0
- package/dist/components/text-area/react-aria.d.ts +1 -0
- package/dist/components/text-area/react-aria.js +1 -0
- package/dist/components/text-area.d.ts +2 -0
- package/dist/components/text-area.js +2 -0
- package/dist/components/text-button.d.ts +2 -0
- package/dist/components/text-button.js +36 -0
- package/dist/components/text-field/react-aria.d.ts +1 -0
- package/dist/components/text-field/react-aria.js +1 -0
- package/dist/components/text-input.d.ts +2 -0
- package/dist/components/text-input.js +239 -0
- package/dist/components/time-field/react-aria.d.ts +1 -0
- package/dist/components/time-field/react-aria.js +1 -0
- package/dist/components/time-picker.d.ts +2 -0
- package/dist/components/time-picker.js +2 -0
- package/dist/components/toast/react-aria.d.ts +1 -0
- package/dist/components/toast/react-aria.js +1 -0
- package/dist/components/toast-content/react-aria.d.ts +1 -0
- package/dist/components/toast-content/react-aria.js +1 -0
- package/dist/components/toast-list/react-aria.d.ts +1 -0
- package/dist/components/toast-list/react-aria.js +1 -0
- package/dist/components/toast-region/react-aria.d.ts +1 -0
- package/dist/components/toast-region/react-aria.js +1 -0
- package/dist/components/toast.d.ts +2 -0
- package/dist/components/toast.js +2 -0
- package/dist/components/toggle-button/react-aria.d.ts +1 -0
- package/dist/components/toggle-button/react-aria.js +1 -0
- package/dist/components/toggle-button-group/react-aria.d.ts +5 -0
- package/dist/components/toggle-button-group/react-aria.js +1 -0
- package/dist/components/toggle-button.d.ts +2 -0
- package/dist/components/toggle-button.js +34 -0
- package/dist/components/toggle.d.ts +2 -0
- package/dist/components/toggle.js +2 -0
- package/dist/components/toolbar/react-aria.d.ts +1 -0
- package/dist/components/toolbar/react-aria.js +1 -0
- package/dist/components/tooltip/react-aria.d.ts +1 -0
- package/dist/components/tooltip/react-aria.js +1 -0
- package/dist/components/tooltip-ellipsis.d.ts +2 -0
- package/dist/components/tooltip-ellipsis.js +46 -0
- package/dist/components/tooltip-trigger/react-aria.d.ts +1 -0
- package/dist/components/tooltip-trigger/react-aria.js +1 -0
- package/dist/components/tooltip.d.ts +2 -0
- package/dist/components/tooltip.js +2 -0
- package/dist/components/tree/react-aria.d.ts +1 -0
- package/dist/components/tree/react-aria.js +11 -0
- package/dist/components/tree-item/react-aria.d.ts +1 -0
- package/dist/components/tree-item/react-aria.js +11 -0
- package/dist/components/tree-item-content/react-aria.d.ts +1 -0
- package/dist/components/tree-item-content/react-aria.js +11 -0
- package/dist/components/tree-load-more-item/react-aria.d.ts +1 -0
- package/dist/components/tree-load-more-item/react-aria.js +11 -0
- package/dist/components/typography.d.ts +3 -0
- package/dist/components/typography.js +2 -0
- package/dist/components/use-toast.d.ts +2 -0
- package/dist/components/use-toast.js +69 -0
- package/dist/components/virtualizer/react-aria.d.ts +1 -0
- package/dist/components/virtualizer/react-aria.js +1 -0
- package/dist/components/visually-hidden/react-aria.d.ts +1 -0
- package/dist/components/visually-hidden/react-aria.js +1 -0
- package/dist/compoundMapper-CMoX98D2.d.ts +17 -0
- package/dist/compoundMapper-Di3SKZnS.js +13 -0
- package/dist/config/confirmation.d.ts +2 -0
- package/dist/config/confirmation.js +2 -0
- package/dist/config/link-context.d.ts +3 -0
- package/dist/config/link-context.js +2 -0
- package/dist/config/resources.d.ts +2 -0
- package/dist/config/resources.js +2 -0
- package/dist/config/theme-context.d.ts +2 -0
- package/dist/config/theme-context.js +2 -0
- package/dist/config/ui-config.d.ts +2 -0
- package/dist/config/ui-config.js +2 -0
- package/dist/config/ui-overrides.d.ts +2 -0
- package/dist/config/ui-overrides.js +2 -0
- package/dist/config/ui-router.d.ts +2 -0
- package/dist/config/ui-router.js +2 -0
- package/dist/confirmation.context-BJ8gTx7U.d.ts +23 -0
- package/dist/confirmation.context-C1-ZF9CW.js +80 -0
- package/dist/context-CLFkoJMP.js +93 -0
- package/dist/createLucideIcon-CskCrR9z.js +125 -0
- package/dist/date-picker-BpSowet-.d.ts +9 -0
- package/dist/date-range-picker-aO65H4wV.d.ts +9 -0
- package/dist/date-time-picker-DWo2GFg7.d.ts +9 -0
- package/dist/date-time.utils-0F9qduim.js +190 -0
- package/dist/date-time.utils-Cu9TVj46.d.ts +45 -0
- package/dist/date.transforms-DLg-eFcE.js +15 -0
- package/dist/date.utils-B8_QF9y6.js +42 -0
- package/dist/date.utils-BoQnMRlF.d.ts +7 -0
- package/dist/datePickerValue.utils-Dh-nA1Yv.js +223 -0
- package/dist/dynamicInputs-4JB41qRW.js +214 -0
- package/dist/dynamicInputs-BekIlDGf.d.ts +753 -0
- package/dist/dynamicInputs-D8j0ko24.js +194 -0
- package/dist/fieldAdapter-C4sDFC8f.d.ts +9 -0
- package/dist/fieldAdapter-C_3uizcT.js +61 -0
- package/dist/file-upload-DDIJKLW8.d.ts +10 -0
- package/dist/file.utils-Crb-mIHs.d.ts +21 -0
- package/dist/file.utils-DqQxnuAm.js +61 -0
- package/dist/fileUpload.types-CQkPqELk.d.ts +106 -0
- package/dist/form.binding-DWlFTecs.d.ts +47 -0
- package/dist/form.binding-DyZ4fH8l.js +34 -0
- package/dist/form.types-B9Vp8q2g.d.ts +13 -0
- package/dist/form.types-ZNGbcqJS.d.ts +13 -0
- package/dist/hooks/use-filters.d.ts +2 -0
- package/dist/hooks/use-filters.js +2 -0
- package/dist/hooks/use-local-storage.d.ts +2 -0
- package/dist/hooks/use-local-storage.js +2 -0
- package/dist/hooks/use-translation-memo.d.ts +2 -0
- package/dist/hooks/use-translation-memo.js +2 -0
- package/dist/i18n-C2TBJvnh.js +300 -0
- package/dist/i18n-DjqhCCJq.d.ts +316 -0
- package/dist/icons.d.ts +2 -0
- package/dist/icons.js +2 -0
- package/dist/index-B8r_kiw4.d.ts +193 -0
- package/dist/index.d.ts +101 -263
- package/dist/index.js +99 -180
- package/dist/input-upload-Apyx1Mvy.d.ts +9 -0
- package/dist/input.cva-CfgCOIQW.d.ts +80 -0
- package/dist/input.cva-KYGD4Bdz.js +324 -0
- package/dist/intl.utils-NaOZUD2G.d.ts +9 -0
- package/dist/intl.utils-zwAFoZ0U.js +38 -0
- package/dist/intlStrings-DrQB127v.js +346 -0
- package/dist/link.context-BFXwgVLP.d.ts +12 -0
- package/dist/link.context-J7aQtMOr.js +35 -0
- package/dist/logger-BPhG2izn.js +309 -0
- package/dist/logger-N35Xhi14.d.ts +10 -0
- package/dist/lucide-react-BJRvqSeV.d.ts +23 -0
- package/dist/modal.cva-CbziPHSN.js +43 -0
- package/dist/number-input-D0YwMCGh.d.ts +8 -0
- package/dist/number-range-input-BtPXUX0k.d.ts +8 -0
- package/dist/numberStatic.utils-C9_kWMXJ.js +723 -0
- package/dist/openLink-BFEMFlhB.js +187 -0
- package/dist/outline.clsx-50W_vNDl.js +6 -0
- package/dist/outline.clsx-B1hjrX9t.d.ts +4 -0
- package/dist/password-input-euv4tHdl.d.ts +8 -0
- package/dist/pillButton.cva-Da0WFN39.d.ts +34 -0
- package/dist/pillButton.cva-DbwzixcK.js +263 -0
- package/dist/popover.cva-CXha_UMQ.js +5 -0
- package/dist/queries.utils-CmbhAoHU.js +18 -0
- package/dist/query-autocomplete-BwU-94pi.d.ts +14 -0
- package/dist/query-select-CBgR2Tua.d.ts +15 -0
- package/dist/queryAutocomplete.types-3ezR8y7k.d.ts +26 -0
- package/dist/radio-group-DVGKZRnt.d.ts +9 -0
- package/dist/rhf/autocomplete.d.ts +3 -0
- package/dist/rhf/autocomplete.js +8 -0
- package/dist/rhf/checkbox-group.d.ts +3 -0
- package/dist/rhf/checkbox-group.js +8 -0
- package/dist/rhf/checkbox.d.ts +3 -0
- package/dist/rhf/checkbox.js +8 -0
- package/dist/rhf/date-picker.d.ts +3 -0
- package/dist/rhf/date-picker.js +9 -0
- package/dist/rhf/date-range-picker.d.ts +3 -0
- package/dist/rhf/date-range-picker.js +9 -0
- package/dist/rhf/date-time-picker.d.ts +3 -0
- package/dist/rhf/date-time-picker.js +9 -0
- package/dist/rhf/file-upload.d.ts +3 -0
- package/dist/rhf/file-upload.js +6 -0
- package/dist/rhf/input-upload.d.ts +3 -0
- package/dist/rhf/input-upload.js +6 -0
- package/dist/rhf/inputs.d.ts +4 -0
- package/dist/rhf/inputs.js +2 -0
- package/dist/rhf/number-input.d.ts +3 -0
- package/dist/rhf/number-input.js +6 -0
- package/dist/rhf/number-range-input.d.ts +3 -0
- package/dist/rhf/number-range-input.js +6 -0
- package/dist/rhf/password-input.d.ts +3 -0
- package/dist/rhf/password-input.js +6 -0
- package/dist/rhf/query-autocomplete.d.ts +2 -0
- package/dist/rhf/query-autocomplete.js +8 -0
- package/dist/rhf/query-select.d.ts +2 -0
- package/dist/rhf/query-select.js +8 -0
- package/dist/rhf/radio-group.d.ts +3 -0
- package/dist/rhf/radio-group.js +8 -0
- package/dist/rhf/segment.d.ts +3 -0
- package/dist/rhf/segment.js +6 -0
- package/dist/rhf/select.d.ts +3 -0
- package/dist/rhf/select.js +8 -0
- package/dist/rhf/slider.d.ts +3 -0
- package/dist/rhf/slider.js +6 -0
- package/dist/rhf/text-area.d.ts +3 -0
- package/dist/rhf/text-area.js +6 -0
- package/dist/rhf/text-editor.d.ts +3 -0
- package/dist/rhf/text-editor.js +6 -0
- package/dist/rhf/text-input.d.ts +3 -0
- package/dist/rhf/text-input.js +6 -0
- package/dist/rhf/time-picker.d.ts +3 -0
- package/dist/rhf/time-picker.js +9 -0
- package/dist/rhf/toggle.d.ts +3 -0
- package/dist/rhf/toggle.js +8 -0
- package/dist/rhf-Ca72CryM.js +256 -0
- package/dist/rhf.d.ts +101 -0
- package/dist/rhf.js +99 -0
- package/dist/rolldown-runtime-DUp30N8C.js +28 -0
- package/dist/router.context-BOYRh2p9.d.ts +16 -0
- package/dist/router.context-DSE1y7gW.js +63 -0
- package/dist/routing.utils-UTQonIhB.js +25 -0
- package/dist/schemas-BkfyFvBp.js +4004 -0
- package/dist/schemas-CAtYiHoz.d.ts +2127 -0
- package/dist/segment-CSZWTNMz.d.ts +9 -0
- package/dist/segment.types-POFeFf4n.d.ts +58 -0
- package/dist/select-ZL6iOiG0.d.ts +16 -0
- package/dist/slider--ZPodYa6.d.ts +8 -0
- package/dist/staticDateTimeSegments-CKL9PuGV.js +1501 -0
- package/dist/staticSelect.utils-DkiDwfGr.js +4041 -0
- package/dist/string.utils-BPgv6QwA.js +12 -0
- package/dist/string.utils-Cj6AB7uZ.d.ts +7 -0
- package/dist/styles/input.d.ts +2 -0
- package/dist/styles/input.js +0 -0
- package/dist/styles/outline.d.ts +2 -0
- package/dist/styles/outline.js +2 -0
- package/dist/tanstack/autocomplete.d.ts +2 -0
- package/dist/tanstack/autocomplete.js +2 -0
- package/dist/tanstack/checkbox-group.d.ts +2 -0
- package/dist/tanstack/checkbox-group.js +2 -0
- package/dist/tanstack/checkbox.d.ts +2 -0
- package/dist/tanstack/checkbox.js +2 -0
- package/dist/tanstack/date-picker.d.ts +2 -0
- package/dist/tanstack/date-picker.js +2 -0
- package/dist/tanstack/date-range-picker.d.ts +2 -0
- package/dist/tanstack/date-range-picker.js +2 -0
- package/dist/tanstack/date-time-picker.d.ts +2 -0
- package/dist/tanstack/date-time-picker.js +2 -0
- package/dist/tanstack/file-upload.d.ts +3 -0
- package/dist/tanstack/file-upload.js +2 -0
- package/dist/tanstack/form.d.ts +3 -0
- package/dist/tanstack/form.js +2 -0
- package/dist/tanstack/input-upload.d.ts +2 -0
- package/dist/tanstack/input-upload.js +2 -0
- package/dist/tanstack/inputs.d.ts +5 -0
- package/dist/tanstack/inputs.js +3 -0
- package/dist/tanstack/number-input.d.ts +2 -0
- package/dist/tanstack/number-input.js +2 -0
- package/dist/tanstack/number-range-input.d.ts +2 -0
- package/dist/tanstack/number-range-input.js +2 -0
- package/dist/tanstack/password-input.d.ts +2 -0
- package/dist/tanstack/password-input.js +2 -0
- package/dist/tanstack/query-autocomplete.d.ts +2 -0
- package/dist/tanstack/query-autocomplete.js +2 -0
- package/dist/tanstack/query-select.d.ts +2 -0
- package/dist/tanstack/query-select.js +2 -0
- package/dist/tanstack/radio-group.d.ts +2 -0
- package/dist/tanstack/radio-group.js +2 -0
- package/dist/tanstack/segment.d.ts +3 -0
- package/dist/tanstack/segment.js +2 -0
- package/dist/tanstack/select.d.ts +2 -0
- package/dist/tanstack/select.js +2 -0
- package/dist/tanstack/slider.d.ts +2 -0
- package/dist/tanstack/slider.js +2 -0
- package/dist/tanstack/table.d.ts +3 -0
- package/dist/tanstack/table.js +2 -0
- package/dist/tanstack/text-area.d.ts +2 -0
- package/dist/tanstack/text-area.js +2 -0
- package/dist/tanstack/text-editor.d.ts +2 -0
- package/dist/tanstack/text-editor.js +2 -0
- package/dist/tanstack/text-input.d.ts +2 -0
- package/dist/tanstack/text-input.js +2 -0
- package/dist/tanstack/time-picker.d.ts +2 -0
- package/dist/tanstack/time-picker.js +2 -0
- package/dist/tanstack/toggle.d.ts +2 -0
- package/dist/tanstack/toggle.js +2 -0
- package/dist/tanstack.d.ts +87 -0
- package/dist/tanstack.js +94 -0
- package/dist/text-area-BhZAEqfI.d.ts +8 -0
- package/dist/text-editor-Dq-YYIuF.d.ts +8 -0
- package/dist/text-editor.d.ts +2 -2
- package/dist/text-editor.js +1 -1
- package/dist/text-input-F-mBSHby.d.ts +8 -0
- package/dist/theme.context-CCXz56lV.js +120 -0
- package/dist/theme.context-rPpAYJZo.d.ts +20 -0
- package/dist/time-picker-5w_eDDNn.d.ts +9 -0
- package/dist/toggle-D-Dg5YGf.d.ts +9 -0
- package/dist/tw-ui-plugin.d.ts +4 -2
- package/dist/tw-ui-plugin.js +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +0 -0
- package/dist/types-BV15_DBT.d.ts +1150 -0
- package/dist/typography.cva-7RYwLrA7.d.ts +51 -0
- package/dist/typography.cva-BI0FyIqm.js +129 -0
- package/dist/uiConfig.context-SBtRegKv.js +359 -0
- package/dist/uiConfig.context-pJj1iUnQ.d.ts +84 -0
- package/dist/uiOverrides.context-BdokYcGO.d.ts +243 -0
- package/dist/uiOverrides.context-Bfm2n-n8.js +399 -0
- package/dist/useBreakpoint-D0s71F97.js +70 -0
- package/dist/useButton-iUReggbG.js +55 -0
- package/dist/useControlledState-Bk39gTui.js +31 -0
- package/dist/useEvent-BROAXUSg.js +22 -0
- package/dist/useFieldAccessibility-CmbhtqBy.js +96 -0
- package/dist/useFilter-BOG2VldJ.js +44 -0
- package/dist/useFilters-6IOuvBTm.d.ts +11 -0
- package/dist/useFilters-AA70NuXo.js +190 -0
- package/dist/useFocusRing-DuXtCnJj.js +141 -0
- package/dist/useFormAutosave-BXqu0xAQ.js +296 -0
- package/dist/useFormReset-BhJH8XnS.js +18 -0
- package/dist/useFormValidation-DLZqyNVp.js +115 -0
- package/dist/useFormValidationState-Bpry7Uk5.js +142 -0
- package/dist/useHover-DwfnacVy.js +1210 -0
- package/dist/useIntersectionObserver-DYfHnGGU.js +98 -0
- package/dist/useLabel-BFvzYK5u.js +27 -0
- package/dist/useLabels-B3G1H2cw.js +16 -0
- package/dist/useLocalStorage-PlcaJ1tP.js +70 -0
- package/dist/useLocalStorage-kcEdRxqC.d.ts +13 -0
- package/dist/useLocalizedStringFormatter-C2M9mXF2.js +108 -0
- package/dist/useNumberFormatter-CTdFIKV_.js +10 -0
- package/dist/usePress-CANxCO5-.js +491 -0
- package/dist/useQueryAutocomplete-CraXvRm_.js +152 -0
- package/dist/useSpinButton-C3wyKHU7.js +577 -0
- package/dist/useStaticInputHandoff-COJdSrME.js +321 -0
- package/dist/useTableColumnConfig-_XJr8Cor.js +1638 -0
- package/dist/useTableNav-BoQOVqZF.d.ts +274 -0
- package/dist/useTextField-De01RThI.js +77 -0
- package/dist/useToast-gQ9gzrbt.d.ts +16 -0
- package/dist/useToggle-DDay--cY.js +62 -0
- package/dist/useToggleState-Dyx-sAjp.js +23 -0
- package/dist/useTranslationMemo-CrZbeyBv.js +32 -0
- package/dist/useTranslationMemo-Dy3p6m1g.d.ts +6 -0
- package/dist/utils/compound-mapper.d.ts +2 -0
- package/dist/utils/compound-mapper.js +2 -0
- package/dist/utils/date-time.d.ts +2 -0
- package/dist/utils/date-time.js +2 -0
- package/dist/utils/date.d.ts +2 -0
- package/dist/utils/date.js +2 -0
- package/dist/utils/file.d.ts +2 -0
- package/dist/utils/file.js +2 -0
- package/dist/utils/intl.d.ts +2 -0
- package/dist/utils/intl.js +2 -0
- package/dist/utils/logger.d.ts +2 -7
- package/dist/utils/logger.js +1 -18
- package/dist/utils/string.d.ts +2 -0
- package/dist/utils/string.js +2 -0
- package/dist/x-BYOEO0gW.js +16 -0
- package/dist/zod.utils-Nz_Tbo_v.js +24 -0
- package/package.json +1314 -17
- package/dist/assets/icons/Account.d.ts +0 -2
- package/dist/assets/icons/AlignCenter.d.ts +0 -2
- package/dist/assets/icons/AlignCenter.js +0 -30
- package/dist/assets/icons/AlignLeft.d.ts +0 -2
- package/dist/assets/icons/AlignLeft.js +0 -30
- package/dist/assets/icons/AlignLeftRight.d.ts +0 -2
- package/dist/assets/icons/AlignLeftRight.js +0 -30
- package/dist/assets/icons/AlignRight.d.ts +0 -2
- package/dist/assets/icons/AlignRight.js +0 -30
- package/dist/assets/icons/ArrowDropDown.d.ts +0 -2
- package/dist/assets/icons/ArrowDropDown.js +0 -30
- package/dist/assets/icons/ArrowDropUp.d.ts +0 -2
- package/dist/assets/icons/ArrowDropUp.js +0 -30
- package/dist/assets/icons/ArrowLeft.d.ts +0 -2
- package/dist/assets/icons/ArrowLeft.js +0 -30
- package/dist/assets/icons/ArrowRight.d.ts +0 -2
- package/dist/assets/icons/ArrowRight.js +0 -30
- package/dist/assets/icons/Board.d.ts +0 -2
- package/dist/assets/icons/Bold.d.ts +0 -2
- package/dist/assets/icons/Bold.js +0 -30
- package/dist/assets/icons/BulletedList.d.ts +0 -2
- package/dist/assets/icons/BulletedList.js +0 -30
- package/dist/assets/icons/Calendar.d.ts +0 -2
- package/dist/assets/icons/Calendar.js +0 -32
- package/dist/assets/icons/Check.d.ts +0 -2
- package/dist/assets/icons/Check.js +0 -32
- package/dist/assets/icons/CheckCircle.d.ts +0 -2
- package/dist/assets/icons/CheckCircle.js +0 -30
- package/dist/assets/icons/CheckboxCheckmark.d.ts +0 -2
- package/dist/assets/icons/CheckboxCheckmark.js +0 -33
- package/dist/assets/icons/CheckboxIndeterminate.d.ts +0 -2
- package/dist/assets/icons/CheckboxIndeterminate.js +0 -33
- package/dist/assets/icons/ChevronDown.d.ts +0 -2
- package/dist/assets/icons/ChevronDown.js +0 -32
- package/dist/assets/icons/ChevronLeft.d.ts +0 -2
- package/dist/assets/icons/ChevronLeft.js +0 -32
- package/dist/assets/icons/ChevronRight.d.ts +0 -2
- package/dist/assets/icons/ChevronRight.js +0 -32
- package/dist/assets/icons/ChevronUp.d.ts +0 -2
- package/dist/assets/icons/ChevronUp.js +0 -32
- package/dist/assets/icons/ChevronsLeft.d.ts +0 -2
- package/dist/assets/icons/ChevronsLeft.js +0 -32
- package/dist/assets/icons/ChevronsRight.d.ts +0 -2
- package/dist/assets/icons/ChevronsRight.js +0 -32
- package/dist/assets/icons/Clock.d.ts +0 -2
- package/dist/assets/icons/Clock.js +0 -30
- package/dist/assets/icons/Close.d.ts +0 -2
- package/dist/assets/icons/Close.js +0 -30
- package/dist/assets/icons/DateTime.d.ts +0 -2
- package/dist/assets/icons/DateTime.js +0 -39
- package/dist/assets/icons/DragIndicator.d.ts +0 -2
- package/dist/assets/icons/DragIndicator.js +0 -30
- package/dist/assets/icons/Edit.d.ts +0 -2
- package/dist/assets/icons/Emoji.d.ts +0 -2
- package/dist/assets/icons/File.d.ts +0 -2
- package/dist/assets/icons/File.js +0 -32
- package/dist/assets/icons/Grid.d.ts +0 -2
- package/dist/assets/icons/Highlight.d.ts +0 -2
- package/dist/assets/icons/Highlight.js +0 -30
- package/dist/assets/icons/HighlightOn.d.ts +0 -6
- package/dist/assets/icons/HighlightOn.js +0 -55
- package/dist/assets/icons/Home.d.ts +0 -2
- package/dist/assets/icons/Home.js +0 -30
- package/dist/assets/icons/Image.d.ts +0 -2
- package/dist/assets/icons/ImageError.d.ts +0 -2
- package/dist/assets/icons/Info.d.ts +0 -2
- package/dist/assets/icons/Info.js +0 -41
- package/dist/assets/icons/Italic.d.ts +0 -2
- package/dist/assets/icons/Italic.js +0 -30
- package/dist/assets/icons/Link.d.ts +0 -2
- package/dist/assets/icons/Link.js +0 -30
- package/dist/assets/icons/Loader.d.ts +0 -2
- package/dist/assets/icons/MapPin.d.ts +0 -2
- package/dist/assets/icons/Menu.d.ts +0 -2
- package/dist/assets/icons/Menu.js +0 -30
- package/dist/assets/icons/Minus.d.ts +0 -2
- package/dist/assets/icons/MoreHoriz.d.ts +0 -2
- package/dist/assets/icons/NumberedList.d.ts +0 -2
- package/dist/assets/icons/NumberedList.js +0 -30
- package/dist/assets/icons/Pause.d.ts +0 -2
- package/dist/assets/icons/Plus.d.ts +0 -2
- package/dist/assets/icons/PointerHorizontal.d.ts +0 -2
- package/dist/assets/icons/PointerHorizontal.js +0 -30
- package/dist/assets/icons/PointerVertical.d.ts +0 -2
- package/dist/assets/icons/PointerVertical.js +0 -30
- package/dist/assets/icons/Retry.d.ts +0 -2
- package/dist/assets/icons/Search.d.ts +0 -2
- package/dist/assets/icons/Search.js +0 -30
- package/dist/assets/icons/Send.d.ts +0 -2
- package/dist/assets/icons/Send.js +0 -32
- package/dist/assets/icons/Share.d.ts +0 -2
- package/dist/assets/icons/Slash.d.ts +0 -2
- package/dist/assets/icons/Strikethrough.d.ts +0 -2
- package/dist/assets/icons/Strikethrough.js +0 -30
- package/dist/assets/icons/TextColor.d.ts +0 -6
- package/dist/assets/icons/TextColor.js +0 -52
- package/dist/assets/icons/Today.d.ts +0 -2
- package/dist/assets/icons/Today.js +0 -30
- package/dist/assets/icons/Trash.d.ts +0 -2
- package/dist/assets/icons/Underlined.d.ts +0 -2
- package/dist/assets/icons/Underlined.js +0 -32
- package/dist/assets/icons/Upload.d.ts +0 -2
- package/dist/assets/icons/Upload.js +0 -39
- package/dist/assets/icons/User.d.ts +0 -2
- package/dist/assets/icons/Visibility.d.ts +0 -2
- package/dist/assets/icons/Visibility.js +0 -30
- package/dist/assets/icons/VisibilityOff.d.ts +0 -2
- package/dist/assets/icons/VisibilityOff.js +0 -30
- package/dist/assets/icons/WarningFilled.d.ts +0 -2
- package/dist/assets/icons/WarningFilled.js +0 -32
- package/dist/assets/icons/WarningOutlined.d.ts +0 -2
- package/dist/assets/locales/en/translation.json.js +0 -147
- package/dist/assets/locales/sl/translation.json.js +0 -145
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +0 -16
- package/dist/components/Breadcrumbs/Breadcrumbs.js +0 -112
- package/dist/components/Breadcrumbs/breadcrumbs.cva.d.ts +0 -45
- package/dist/components/Breadcrumbs/breadcrumbs.cva.js +0 -27
- package/dist/components/Menu/Menu.d.ts +0 -21
- package/dist/components/Menu/Menu.js +0 -27
- package/dist/components/Menu/MenuDesktop.d.ts +0 -2
- package/dist/components/Menu/MenuDesktop.js +0 -48
- package/dist/components/Menu/MenuItem.d.ts +0 -3
- package/dist/components/Menu/MenuItem.js +0 -46
- package/dist/components/Menu/MenuMobile.d.ts +0 -2
- package/dist/components/Menu/MenuMobile.js +0 -142
- package/dist/components/Menu/MenuPopover.d.ts +0 -5
- package/dist/components/Menu/MenuPopover.js +0 -121
- package/dist/components/Menu/menu.cva.d.ts +0 -39
- package/dist/components/Menu/menu.cva.js +0 -34
- package/dist/components/buttons/Button/Button.d.ts +0 -28
- package/dist/components/buttons/Button/Button.js +0 -66
- package/dist/components/buttons/Button/button.cva.d.ts +0 -99
- package/dist/components/buttons/Button/button.cva.js +0 -661
- package/dist/components/buttons/IconButton/IconButton.d.ts +0 -11
- package/dist/components/buttons/IconButton/IconButton.js +0 -51
- package/dist/components/buttons/InlineIconButton/InlineIconButton.d.ts +0 -13
- package/dist/components/buttons/InlineIconButton/InlineIconButton.js +0 -15
- package/dist/components/buttons/PillButton/PillButton.d.ts +0 -12
- package/dist/components/buttons/PillButton/PillButton.js +0 -72
- package/dist/components/buttons/PillButton/pillButton.cva.d.ts +0 -40
- package/dist/components/buttons/PillButton/pillButton.cva.js +0 -264
- package/dist/components/buttons/SplitButton/SplitButton.d.ts +0 -12
- package/dist/components/buttons/SplitButton/SplitButton.js +0 -123
- package/dist/components/buttons/TextButton/TextButton.d.ts +0 -12
- package/dist/components/buttons/TextButton/TextButton.js +0 -36
- package/dist/components/buttons/ToggleButton/ToggleButton.d.ts +0 -9
- package/dist/components/buttons/ToggleButton/ToggleButton.js +0 -34
- package/dist/components/buttons/shared/ButtonContent.d.ts +0 -14
- package/dist/components/buttons/shared/ButtonContent.js +0 -37
- package/dist/components/buttons/shared/buttonContent.cva.d.ts +0 -8
- package/dist/components/buttons/shared/buttonContent.cva.js +0 -30
- package/dist/components/inputs/Checkbox/Checkbox.d.ts +0 -20
- package/dist/components/inputs/Checkbox/Checkbox.js +0 -236
- package/dist/components/inputs/Checkbox/CheckboxCheckmark.d.ts +0 -9
- package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +0 -26
- package/dist/components/inputs/Checkbox/CheckboxGroup.d.ts +0 -26
- package/dist/components/inputs/Checkbox/CheckboxGroup.js +0 -392
- package/dist/components/inputs/Checkbox/checkbox.cva.d.ts +0 -94
- package/dist/components/inputs/Checkbox/checkbox.cva.js +0 -161
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.d.ts +0 -40
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +0 -422
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +0 -45
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +0 -883
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts +0 -40
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +0 -382
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.d.ts +0 -28
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +0 -644
- package/dist/components/inputs/DateTime/shared/Calendar.d.ts +0 -29
- package/dist/components/inputs/DateTime/shared/Calendar.js +0 -177
- package/dist/components/inputs/DateTime/shared/CalendarCell.d.ts +0 -22
- package/dist/components/inputs/DateTime/shared/CalendarCell.js +0 -145
- package/dist/components/inputs/DateTime/shared/CalendarGrid.d.ts +0 -27
- package/dist/components/inputs/DateTime/shared/CalendarGrid.js +0 -54
- package/dist/components/inputs/DateTime/shared/CalendarHeader.d.ts +0 -18
- package/dist/components/inputs/DateTime/shared/CalendarHeader.js +0 -121
- package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.d.ts +0 -17
- package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +0 -177
- package/dist/components/inputs/DateTime/shared/DateField.d.ts +0 -21
- package/dist/components/inputs/DateTime/shared/DateField.js +0 -156
- package/dist/components/inputs/DateTime/shared/DatePickerInput.d.ts +0 -45
- package/dist/components/inputs/DateTime/shared/DatePickerInput.js +0 -197
- package/dist/components/inputs/DateTime/shared/DateSegmentItem.d.ts +0 -28
- package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +0 -124
- package/dist/components/inputs/DateTime/shared/DateTimeDialog.d.ts +0 -18
- package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +0 -101
- package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.d.ts +0 -8
- package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +0 -27
- package/dist/components/inputs/DateTime/shared/MonthPicker.d.ts +0 -11
- package/dist/components/inputs/DateTime/shared/MonthPicker.js +0 -135
- package/dist/components/inputs/DateTime/shared/RangeCalendar.d.ts +0 -26
- package/dist/components/inputs/DateTime/shared/RangeCalendar.js +0 -209
- package/dist/components/inputs/DateTime/shared/TimeField.d.ts +0 -12
- package/dist/components/inputs/DateTime/shared/TimeField.js +0 -38
- package/dist/components/inputs/DateTime/shared/TimePickerForm.d.ts +0 -10
- package/dist/components/inputs/DateTime/shared/TimePickerForm.js +0 -329
- package/dist/components/inputs/DateTime/shared/TimePickerInput.d.ts +0 -24
- package/dist/components/inputs/DateTime/shared/TimePickerInput.js +0 -242
- package/dist/components/inputs/DateTime/shared/YearPicker.d.ts +0 -12
- package/dist/components/inputs/DateTime/shared/YearPicker.js +0 -151
- package/dist/components/inputs/DateTime/shared/datePicker.types.d.ts +0 -5
- package/dist/components/inputs/DateTime/shared/datePickerInput.cva.d.ts +0 -16
- package/dist/components/inputs/DateTime/shared/datePickerInput.cva.js +0 -16
- package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.d.ts +0 -15
- package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.js +0 -32
- package/dist/components/inputs/DateTime/shared/dateSegment.utils.d.ts +0 -2
- package/dist/components/inputs/DateTime/shared/dateSegment.utils.spec.d.ts +0 -1
- package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.d.ts +0 -41
- package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.js +0 -99
- package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.spec.d.ts +0 -1
- package/dist/components/inputs/DateTime/shared/useFirefoxDateSegmentSelectionGuard.d.ts +0 -2
- package/dist/components/inputs/DateTime/shared/useFirefoxDateSegmentSelectionGuard.js +0 -33
- package/dist/components/inputs/File/FileUpload.d.ts +0 -4
- package/dist/components/inputs/File/FileUpload.js +0 -253
- package/dist/components/inputs/File/FileUploadContainer.d.ts +0 -3
- package/dist/components/inputs/File/FileUploadContainer.js +0 -22
- package/dist/components/inputs/File/InputUpload.d.ts +0 -4
- package/dist/components/inputs/File/InputUpload.js +0 -157
- package/dist/components/inputs/File/fileUpload.types.d.ts +0 -96
- package/dist/components/inputs/File/index.d.ts +0 -9
- package/dist/components/inputs/File/inputUpload.types.d.ts +0 -37
- package/dist/components/inputs/File/inputUpload.types.js +0 -9
- package/dist/components/inputs/File/shared/FileCard.d.ts +0 -9
- package/dist/components/inputs/File/shared/FileCard.js +0 -121
- package/dist/components/inputs/File/shared/FileCardList.d.ts +0 -9
- package/dist/components/inputs/File/shared/FileCardList.js +0 -60
- package/dist/components/inputs/File/shared/FileUploadContent.d.ts +0 -10
- package/dist/components/inputs/File/shared/FileUploadContent.js +0 -208
- package/dist/components/inputs/File/shared/FileUploadContentEmpty.d.ts +0 -9
- package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +0 -58
- package/dist/components/inputs/File/shared/FileUploadContentError.d.ts +0 -11
- package/dist/components/inputs/File/shared/FileUploadContentError.js +0 -113
- package/dist/components/inputs/File/shared/FileUploadContentFilled.d.ts +0 -11
- package/dist/components/inputs/File/shared/FileUploadContentFilled.js +0 -118
- package/dist/components/inputs/File/shared/FileUploadContentLoading.d.ts +0 -9
- package/dist/components/inputs/File/shared/FileUploadContentLoading.js +0 -80
- package/dist/components/inputs/File/shared/InputUploadContent.d.ts +0 -9
- package/dist/components/inputs/File/shared/InputUploadContent.js +0 -169
- package/dist/components/inputs/File/shared/InputUploadFilled.d.ts +0 -8
- package/dist/components/inputs/File/shared/InputUploadFilled.js +0 -69
- package/dist/components/inputs/File/shared/ProgressBar.d.ts +0 -6
- package/dist/components/inputs/File/shared/ProgressBar.js +0 -33
- package/dist/components/inputs/File/shared/fileUpload.cva.d.ts +0 -17
- package/dist/components/inputs/File/shared/fileUpload.cva.js +0 -42
- package/dist/components/inputs/File/shared/inputUploadButton.cva.d.ts +0 -27
- package/dist/components/inputs/File/shared/inputUploadButton.cva.js +0 -39
- package/dist/components/inputs/File/shared/progressBar.cva.d.ts +0 -38
- package/dist/components/inputs/File/shared/progressBar.cva.js +0 -28
- package/dist/components/inputs/FormField/FormField.d.ts +0 -20
- package/dist/components/inputs/FormField/FormField.js +0 -127
- package/dist/components/inputs/FormField/FormFieldError.d.ts +0 -7
- package/dist/components/inputs/FormField/FormFieldError.js +0 -33
- package/dist/components/inputs/FormField/FormFieldHeader.d.ts +0 -14
- package/dist/components/inputs/FormField/FormFieldHeader.js +0 -97
- package/dist/components/inputs/FormField/FormFieldHeaderClose.d.ts +0 -5
- package/dist/components/inputs/FormField/FormFieldHeaderClose.js +0 -41
- package/dist/components/inputs/FormField/FormFieldHelper.d.ts +0 -8
- package/dist/components/inputs/FormField/FormFieldHelper.js +0 -34
- package/dist/components/inputs/FormField/FormFieldLabel.d.ts +0 -13
- package/dist/components/inputs/FormField/FormFieldLabel.js +0 -59
- package/dist/components/inputs/FormField/formFieldError.cva.d.ts +0 -13
- package/dist/components/inputs/FormField/formFieldError.cva.js +0 -14
- package/dist/components/inputs/FormField/formFieldHeader.cva.d.ts +0 -13
- package/dist/components/inputs/FormField/formFieldHeader.cva.js +0 -14
- package/dist/components/inputs/FormField/formFieldHelper.cva.d.ts +0 -13
- package/dist/components/inputs/FormField/formFieldHelper.cva.js +0 -14
- package/dist/components/inputs/Input/NumberInput/NumberInput.d.ts +0 -23
- package/dist/components/inputs/Input/NumberInput/NumberInput.js +0 -492
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.d.ts +0 -45
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.js +0 -571
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.d.ts +0 -35
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.js +0 -337
- package/dist/components/inputs/Input/PasswordInput/PasswordInput.d.ts +0 -7
- package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +0 -62
- package/dist/components/inputs/Input/TextArea/TextArea.cva.d.ts +0 -8
- package/dist/components/inputs/Input/TextArea/TextArea.cva.js +0 -5
- package/dist/components/inputs/Input/TextArea/TextArea.d.ts +0 -18
- package/dist/components/inputs/Input/TextArea/TextArea.js +0 -345
- package/dist/components/inputs/Input/TextInput/TextInput.d.ts +0 -23
- package/dist/components/inputs/Input/TextInput/TextInput.js +0 -468
- package/dist/components/inputs/Input/shared/InputContent.d.ts +0 -28
- package/dist/components/inputs/Input/shared/InputContent.js +0 -211
- package/dist/components/inputs/Input/shared/numberStatic.utils.d.ts +0 -1
- package/dist/components/inputs/Input/shared/numberStatic.utils.js +0 -7
- package/dist/components/inputs/Inputs/Form.d.ts +0 -26
- package/dist/components/inputs/Inputs/Form.js +0 -73
- package/dist/components/inputs/Inputs/InputItem.d.ts +0 -67
- package/dist/components/inputs/Inputs/InputItem.js +0 -112
- package/dist/components/inputs/Inputs/Inputs.d.ts +0 -10
- package/dist/components/inputs/Inputs/Inputs.js +0 -43
- package/dist/components/inputs/RadioGroup/RadioGroup.d.ts +0 -22
- package/dist/components/inputs/RadioGroup/RadioGroup.js +0 -371
- package/dist/components/inputs/RadioGroup/radio.cva.d.ts +0 -62
- package/dist/components/inputs/RadioGroup/radio.cva.js +0 -85
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.d.ts +0 -12
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +0 -165
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.d.ts +0 -4
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +0 -176
- package/dist/components/inputs/Selection/Autocomplete/queryAutocomplete.types.d.ts +0 -39
- package/dist/components/inputs/Selection/Select/QuerySelect.d.ts +0 -15
- package/dist/components/inputs/Selection/Select/QuerySelect.js +0 -172
- package/dist/components/inputs/Selection/Select/Select.d.ts +0 -12
- package/dist/components/inputs/Selection/Select/Select.js +0 -235
- package/dist/components/inputs/Selection/shared/SelectBase.d.ts +0 -37
- package/dist/components/inputs/Selection/shared/SelectBase.js +0 -82
- package/dist/components/inputs/Selection/shared/SelectDesktop.d.ts +0 -5
- package/dist/components/inputs/Selection/shared/SelectDesktop.js +0 -419
- package/dist/components/inputs/Selection/shared/SelectInput.d.ts +0 -15
- package/dist/components/inputs/Selection/shared/SelectInput.js +0 -469
- package/dist/components/inputs/Selection/shared/SelectInputTags.d.ts +0 -12
- package/dist/components/inputs/Selection/shared/SelectInputTags.js +0 -105
- package/dist/components/inputs/Selection/shared/SelectListBox.d.ts +0 -9
- package/dist/components/inputs/Selection/shared/SelectListBox.js +0 -75
- package/dist/components/inputs/Selection/shared/SelectListBoxItem.d.ts +0 -7
- package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +0 -104
- package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.d.ts +0 -4
- package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +0 -88
- package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.d.ts +0 -6
- package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +0 -89
- package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.d.ts +0 -5
- package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.js +0 -76
- package/dist/components/inputs/Selection/shared/SelectMobile.d.ts +0 -5
- package/dist/components/inputs/Selection/shared/SelectMobile.js +0 -127
- package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.d.ts +0 -9
- package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.js +0 -47
- package/dist/components/inputs/Selection/shared/querySelect.utils.d.ts +0 -15
- package/dist/components/inputs/Selection/shared/querySelect.utils.js +0 -44
- package/dist/components/inputs/Selection/shared/select.context.d.ts +0 -32
- package/dist/components/inputs/Selection/shared/select.context.js +0 -231
- package/dist/components/inputs/Selection/shared/select.types.d.ts +0 -64
- package/dist/components/inputs/Selection/shared/selectDesktop.cva.d.ts +0 -6
- package/dist/components/inputs/Selection/shared/selectDesktop.cva.js +0 -5
- package/dist/components/inputs/Selection/shared/selectInput.cva.d.ts +0 -12
- package/dist/components/inputs/Selection/shared/selectInput.cva.js +0 -8
- package/dist/components/inputs/Selection/shared/selectItem.cva.d.ts +0 -16
- package/dist/components/inputs/Selection/shared/selectItem.cva.js +0 -24
- package/dist/components/inputs/Selection/shared/staticSelect.utils.d.ts +0 -23
- package/dist/components/inputs/Selection/shared/staticSelect.utils.js +0 -54
- package/dist/components/inputs/Selection/shared/staticSelect.utils.spec.d.ts +0 -1
- package/dist/components/inputs/Selection/shared/useSelectItems.d.ts +0 -23
- package/dist/components/inputs/Selection/shared/useSelectItems.js +0 -84
- package/dist/components/inputs/Skeleton/InputFrame.d.ts +0 -83
- package/dist/components/inputs/Skeleton/InputFrame.js +0 -242
- package/dist/components/inputs/Slider/Slider.d.ts +0 -19
- package/dist/components/inputs/Slider/Slider.js +0 -285
- package/dist/components/inputs/TextEditor/TextEditor.d.ts +0 -22
- package/dist/components/inputs/TextEditor/TextEditor.js +0 -199
- package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.d.ts +0 -7
- package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +0 -44
- package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.d.ts +0 -10
- package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +0 -128
- package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.d.ts +0 -2
- package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +0 -221
- package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.d.ts +0 -2
- package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +0 -106
- package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.d.ts +0 -2
- package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +0 -58
- package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.d.ts +0 -6
- package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.js +0 -79
- package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.d.ts +0 -2
- package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +0 -60
- package/dist/components/inputs/TextEditor/Toolbar/TextListActions.d.ts +0 -2
- package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +0 -104
- package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.d.ts +0 -2
- package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +0 -141
- package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.d.ts +0 -2
- package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.js +0 -157
- package/dist/components/inputs/TextEditor/textEditor.types.d.ts +0 -5
- package/dist/components/inputs/TextEditor/textEditor.types.js +0 -40
- package/dist/components/inputs/Toggle/Toggle.d.ts +0 -16
- package/dist/components/inputs/Toggle/Toggle.js +0 -234
- package/dist/components/inputs/Toggle/toggle.cva.d.ts +0 -19
- package/dist/components/inputs/Toggle/toggle.cva.js +0 -35
- package/dist/components/inputs/shared/CheckContent.d.ts +0 -9
- package/dist/components/inputs/shared/CheckContent.js +0 -29
- package/dist/components/inputs/shared/InputClear.d.ts +0 -10
- package/dist/components/inputs/shared/InputClear.js +0 -115
- package/dist/components/inputs/shared/TooltipWrapper.d.ts +0 -10
- package/dist/components/inputs/shared/TooltipWrapper.js +0 -60
- package/dist/components/inputs/shared/form.binding.d.ts +0 -27
- package/dist/components/inputs/shared/form.binding.js +0 -57
- package/dist/components/inputs/shared/form.types.d.ts +0 -13
- package/dist/components/inputs/shared/form.types.js +0 -8
- package/dist/components/inputs/shared/input.cva.d.ts +0 -90
- package/dist/components/inputs/shared/input.cva.js +0 -334
- package/dist/components/inputs/shared/label.cva.d.ts +0 -19
- package/dist/components/inputs/shared/label.cva.js +0 -74
- package/dist/components/inputs/shared/tooltipWrapper.cva.d.ts +0 -8
- package/dist/components/inputs/shared/tooltipWrapper.cva.js +0 -5
- package/dist/components/inputs/shared/useStaticInputHandoff.d.ts +0 -15
- package/dist/components/inputs/shared/useStaticInputHandoff.js +0 -112
- package/dist/components/navigation/Accordion/Accordion.d.ts +0 -3
- package/dist/components/navigation/Accordion/Accordion.js +0 -34
- package/dist/components/navigation/Accordion/AccordionItem.d.ts +0 -2
- package/dist/components/navigation/Accordion/AccordionItem.js +0 -63
- package/dist/components/navigation/Accordion/accordion.cva.d.ts +0 -110
- package/dist/components/navigation/Accordion/accordion.cva.js +0 -129
- package/dist/components/navigation/Accordion/accordion.types.d.ts +0 -52
- package/dist/components/navigation/Stepper/Stepper.d.ts +0 -2
- package/dist/components/navigation/Stepper/Stepper.js +0 -34
- package/dist/components/navigation/Stepper/StepperItem.d.ts +0 -2
- package/dist/components/navigation/Stepper/StepperItem.js +0 -126
- package/dist/components/navigation/Stepper/StepperSeparator.d.ts +0 -5
- package/dist/components/navigation/Stepper/StepperSeparator.js +0 -30
- package/dist/components/navigation/Stepper/stepper.cva.d.ts +0 -93
- package/dist/components/navigation/Stepper/stepper.cva.js +0 -116
- package/dist/components/navigation/Stepper/stepper.types.d.ts +0 -41
- package/dist/components/outline.clsx.d.ts +0 -2
- package/dist/components/outline.clsx.js +0 -6
- package/dist/components/overlays/ActionModal/ActionModal.d.ts +0 -24
- package/dist/components/overlays/ActionModal/ActionModal.js +0 -54
- package/dist/components/overlays/BottomSheet/BottomSheet.d.ts +0 -32
- package/dist/components/overlays/BottomSheet/BottomSheet.js +0 -328
- package/dist/components/overlays/BottomSheet/BottomSheetHeader.d.ts +0 -13
- package/dist/components/overlays/BottomSheet/BottomSheetHeader.js +0 -78
- package/dist/components/overlays/Drawer/Drawer.d.ts +0 -15
- package/dist/components/overlays/Drawer/Drawer.js +0 -95
- package/dist/components/overlays/Modal/Modal.d.ts +0 -15
- package/dist/components/overlays/Modal/Modal.js +0 -55
- package/dist/components/overlays/Modal/modal.cva.d.ts +0 -37
- package/dist/components/overlays/Modal/modal.cva.js +0 -44
- package/dist/components/overlays/ResponsivePopover/ResponsivePopover.d.ts +0 -17
- package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +0 -45
- package/dist/components/overlays/Tooltip/Tooltip.d.ts +0 -13
- package/dist/components/overlays/Tooltip/Tooltip.js +0 -163
- package/dist/components/overlays/Tooltip/TooltipEllipsis.d.ts +0 -8
- package/dist/components/overlays/Tooltip/TooltipEllipsis.js +0 -46
- package/dist/components/overlays/Tooltip/tooltip.cva.d.ts +0 -49
- package/dist/components/overlays/Tooltip/tooltip.cva.js +0 -44
- package/dist/components/segment/Segment.d.ts +0 -4
- package/dist/components/segment/Segment.js +0 -245
- package/dist/components/segment/SegmentItem.d.ts +0 -2
- package/dist/components/segment/SegmentItem.js +0 -85
- package/dist/components/segment/segment.cva.d.ts +0 -20
- package/dist/components/segment/segment.cva.js +0 -30
- package/dist/components/segment/segment.types.d.ts +0 -36
- package/dist/components/shared/pagination/Pagination.d.ts +0 -9
- package/dist/components/shared/pagination/Pagination.js +0 -45
- package/dist/components/shared/pagination/PaginationList.d.ts +0 -15
- package/dist/components/shared/pagination/PaginationList.js +0 -210
- package/dist/components/shared/pagination/minWidth.cva.d.ts +0 -3
- package/dist/components/shared/pagination/minWidth.cva.js +0 -11
- package/dist/components/shared/popover.cva.d.ts +0 -8
- package/dist/components/shared/popover.cva.js +0 -5
- package/dist/components/status/Alert/Alert.d.ts +0 -11
- package/dist/components/status/Alert/Alert.js +0 -47
- package/dist/components/status/Alert/alert.cva.d.ts +0 -19
- package/dist/components/status/Alert/alert.cva.js +0 -67
- package/dist/components/status/Loader/Loader.d.ts +0 -5
- package/dist/components/status/Loader/Loader.js +0 -89
- package/dist/components/status/Loader/loader.cva.d.ts +0 -28
- package/dist/components/status/Loader/loader.cva.js +0 -27
- package/dist/components/status/Toast/Toast.d.ts +0 -14
- package/dist/components/status/Toast/Toast.js +0 -82
- package/dist/components/status/Toast/toast.cva.d.ts +0 -80
- package/dist/components/status/Toast/toast.cva.js +0 -211
- package/dist/components/status/Toast/useToast.d.ts +0 -13
- package/dist/components/status/Toast/useToast.js +0 -70
- package/dist/components/status/shared/status.cva.d.ts +0 -30
- package/dist/components/status/shared/status.cva.js +0 -65
- package/dist/components/table/CellText.d.ts +0 -8
- package/dist/components/table/CellText.js +0 -21
- package/dist/components/table/ColumnConfig.d.ts +0 -10
- package/dist/components/table/ColumnConfig.js +0 -187
- package/dist/components/table/HeaderText.d.ts +0 -8
- package/dist/components/table/HeaderText.js +0 -20
- package/dist/components/table/InfiniteTable.d.ts +0 -9
- package/dist/components/table/InfiniteTable.js +0 -28
- package/dist/components/table/PaginatedTable.d.ts +0 -11
- package/dist/components/table/PaginatedTable.js +0 -94
- package/dist/components/table/Table.d.ts +0 -37
- package/dist/components/table/Table.js +0 -267
- package/dist/components/table/table.cva.d.ts +0 -65
- package/dist/components/table/table.cva.js +0 -49
- package/dist/components/text/Link/Link.d.ts +0 -9
- package/dist/components/text/Link/Link.js +0 -33
- package/dist/components/text/Link/link.cva.d.ts +0 -12
- package/dist/components/text/Link/link.cva.js +0 -12
- package/dist/components/text/Pill/Pill.d.ts +0 -15
- package/dist/components/text/Pill/Pill.js +0 -44
- package/dist/components/text/Tag/Tag.d.ts +0 -15
- package/dist/components/text/Tag/Tag.js +0 -43
- package/dist/components/text/Tag/tag.cva.d.ts +0 -16
- package/dist/components/text/Tag/tag.cva.js +0 -55
- package/dist/components/text/Typography/Typography.d.ts +0 -11
- package/dist/components/text/Typography/Typography.js +0 -16
- package/dist/components/text/Typography/typography.cva.d.ts +0 -49
- package/dist/components/text/Typography/typography.cva.js +0 -129
- package/dist/config/confirmation.context.d.ts +0 -20
- package/dist/config/confirmation.context.js +0 -80
- package/dist/config/i18n.d.ts +0 -313
- package/dist/config/i18n.js +0 -10
- package/dist/config/link.context.d.ts +0 -10
- package/dist/config/link.context.js +0 -35
- package/dist/config/router.context.d.ts +0 -14
- package/dist/config/router.context.js +0 -63
- package/dist/config/theme.context.d.ts +0 -17
- package/dist/config/theme.context.js +0 -67
- package/dist/config/uiConfig.context.d.ts +0 -68
- package/dist/config/uiConfig.context.js +0 -125
- package/dist/config/uiOverrides.context.d.ts +0 -205
- package/dist/config/uiOverrides.context.js +0 -113
- package/dist/helpers/dynamicColumns.d.ts +0 -44
- package/dist/helpers/dynamicColumns.js +0 -275
- package/dist/helpers/dynamicInputs.d.ts +0 -86
- package/dist/helpers/dynamicInputs.js +0 -193
- package/dist/hooks/useAutosave.d.ts +0 -10
- package/dist/hooks/useAutosave.js +0 -87
- package/dist/hooks/useBreakpoint.d.ts +0 -3
- package/dist/hooks/useBreakpoint.js +0 -43
- package/dist/hooks/useDebounceCallback.d.ts +0 -6
- package/dist/hooks/useDebounceCallback.js +0 -25
- package/dist/hooks/useDeepCompare.d.ts +0 -4
- package/dist/hooks/useDeepCompare.js +0 -23
- package/dist/hooks/useFilters.d.ts +0 -8
- package/dist/hooks/useFilters.js +0 -188
- package/dist/hooks/useForm.d.ts +0 -42
- package/dist/hooks/useForm.js +0 -101
- package/dist/hooks/useFormAutosave.d.ts +0 -14
- package/dist/hooks/useFormAutosave.js +0 -73
- package/dist/hooks/useFormAutosave.spec.d.ts +0 -1
- package/dist/hooks/useIntersectionObserver.d.ts +0 -8
- package/dist/hooks/useIntersectionObserver.js +0 -98
- package/dist/hooks/useKeyInteractions.d.ts +0 -20
- package/dist/hooks/useKeyInteractions.js +0 -54
- package/dist/hooks/useKeyInteractions.spec.d.ts +0 -1
- package/dist/hooks/useLocalStorage.d.ts +0 -11
- package/dist/hooks/useLocalStorage.js +0 -70
- package/dist/hooks/useLongPressRepeat.d.ts +0 -9
- package/dist/hooks/useLongPressRepeat.js +0 -29
- package/dist/hooks/usePagination.d.ts +0 -7
- package/dist/hooks/usePagination.js +0 -62
- package/dist/hooks/useQueryAutocomplete.d.ts +0 -13
- package/dist/hooks/useQueryAutocomplete.js +0 -103
- package/dist/hooks/useScrollableListBox.d.ts +0 -3
- package/dist/hooks/useScrollableListBox.js +0 -47
- package/dist/hooks/useSorting.d.ts +0 -6
- package/dist/hooks/useSorting.js +0 -80
- package/dist/hooks/useStateAndRef.d.ts +0 -4
- package/dist/hooks/useStateAndRef.js +0 -31
- package/dist/hooks/useTableColumnConfig.d.ts +0 -16
- package/dist/hooks/useTableColumnConfig.js +0 -133
- package/dist/hooks/useTableNav.d.ts +0 -84
- package/dist/hooks/useTableNav.js +0 -383
- package/dist/hooks/useTranslationMemo.d.ts +0 -4
- package/dist/hooks/useTranslationMemo.js +0 -32
- package/dist/types/common.d.ts +0 -12
- package/dist/types/error-handling.d.ts +0 -6
- package/dist/types/react-query.d.ts +0 -6
- package/dist/utils/array.utils.d.ts +0 -3
- package/dist/utils/array.utils.js +0 -10
- package/dist/utils/array.utils.spec.d.ts +0 -1
- package/dist/utils/compoundMapper.d.ts +0 -19
- package/dist/utils/compoundMapper.js +0 -13
- package/dist/utils/compoundMapper.spec.d.ts +0 -1
- package/dist/utils/date-time.utils.d.ts +0 -42
- package/dist/utils/date-time.utils.js +0 -192
- package/dist/utils/date-time.utils.spec.d.ts +0 -1
- package/dist/utils/date.utils.d.ts +0 -5
- package/dist/utils/date.utils.js +0 -19
- package/dist/utils/date.utils.spec.d.ts +0 -1
- package/dist/utils/dom.utils.d.ts +0 -5
- package/dist/utils/dom.utils.js +0 -19
- package/dist/utils/file.utils.d.ts +0 -13
- package/dist/utils/file.utils.js +0 -50
- package/dist/utils/intl.utils.d.ts +0 -7
- package/dist/utils/intl.utils.js +0 -38
- package/dist/utils/intl.utils.spec.d.ts +0 -1
- package/dist/utils/isEqual.d.ts +0 -1
- package/dist/utils/isEqual.js +0 -59
- package/dist/utils/object.utils.d.ts +0 -10
- package/dist/utils/object.utils.js +0 -38
- package/dist/utils/queries.utils.d.ts +0 -4
- package/dist/utils/queries.utils.js +0 -9
- package/dist/utils/query.utils.d.ts +0 -4
- package/dist/utils/query.utils.js +0 -8
- package/dist/utils/rest.utils.d.ts +0 -10
- package/dist/utils/rest.utils.js +0 -33
- package/dist/utils/routing.utils.d.ts +0 -4
- package/dist/utils/routing.utils.js +0 -25
- package/dist/utils/string.utils.d.ts +0 -4
- package/dist/utils/string.utils.js +0 -12
- package/dist/utils/style-merge.util.d.ts +0 -43
- package/dist/utils/style-merge.util.js +0 -233
- package/dist/utils/style-merge.util.spec.d.ts +0 -1
- package/dist/utils/zod.utils.d.ts +0 -20
- package/dist/utils/zod.utils.js +0 -24
- /package/dist/styles/{editor.css → styles/editor.css} +0 -0
|
@@ -0,0 +1,4505 @@
|
|
|
1
|
+
import { n as __require, t as __commonJSMin } from "./rolldown-runtime-DUp30N8C.js";
|
|
2
|
+
import { i as $4e85f108e88277b8$export$d688439359537581, r as $4e85f108e88277b8$export$b0d3ecf7112093a7, t as $4e85f108e88277b8$export$698f465ec27e93df } from "./RSPContexts-DHQi1l7F.js";
|
|
3
|
+
import { B as $d4ee10de306f2510$export$4282f70798064fe0, D as $64fa3d84918910a7$export$fabf2dc03a41866e, F as $03deb23ff14920c4$export$4eaf04e54aa8eed6, G as $431fbd86ca7dc216$export$f21a1ffae260145a, J as $bdb11010cef70236$export$f680877a34711e37, K as $ff5963eb1fccf552$export$e08e3b67e392101e, L as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, N as $8ae05eaa5c114e9c$export$7f54fc3180508a52, P as $df56164dff5785e2$export$4338b53315abf666, R as $3ef42575df84b30b$export$9d1611c77c2fe928, S as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, T as $64fa3d84918910a7$export$df3a06d6289f983e, V as $d4ee10de306f2510$export$cd4e5573fbe2b576, W as $431fbd86ca7dc216$export$b204af158042fbac, X as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, Y as $b5e257d569688ac6$export$535bd6ca7f90a273, a as $f645667febf57a63$export$f9762fab77588ecb, b as $64fa3d84918910a7$export$29f1550f4b0d4415, c as $3ad3f6e1647bc98d$export$80f3e147d781571c, d as $507fabe10e71c6fb$export$98e20ec92f614cfe, f as $507fabe10e71c6fb$export$b9b3dfddab17db27, i as $f645667febf57a63$export$4c014de7c8940b4c, k as $b4b717babfbb907b$export$bebd5a1431fec25d, l as $507fabe10e71c6fb$export$630ff653c5ada6a9, o as $46d819fcbaf35654$export$8f71654801c2f7cd, q as $bdb11010cef70236$export$b4cc09c592e8fdb8, t as $6179b936705e76d3$export$ae780daf29e6d456, w as $64fa3d84918910a7$export$c62b8e45d58ddad9, x as $64fa3d84918910a7$export$4d86445c2cf5e3, y as $64fa3d84918910a7$export$2881499e37b75b9a } from "./useHover-DwfnacVy.js";
|
|
4
|
+
import { a as $9bf71ea28793e738$export$2d6ec8fc375ceafa, i as $9bf71ea28793e738$export$20e40289641fbbb6, n as $c8a5a149f625efcf$export$758399f318e6385a, r as $9bf71ea28793e738$export$1258395f99bf9cbf, t as $1d5b8b8664671ef2$export$c9549807523555e0 } from "./SelectionIndicator-qJF4qfyY.js";
|
|
5
|
+
import { a as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, h as $7215afc6de606d6b$export$de79e2c695e052f3, i as $ea8dcbcb9ea1b556$export$95185d699e05d4d7, m as $c87311424ea30a05$export$fedb369cb70207f1, p as $c87311424ea30a05$export$e1865c3bedcd822b, r as $ea8dcbcb9ea1b556$export$7e924b3091a3bd18, t as $ea8dcbcb9ea1b556$export$13aea1a3cb5e3f1f, u as $c87311424ea30a05$export$9ac100e40613ea10 } from "./openLink-BFEMFlhB.js";
|
|
6
|
+
import { t as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-B3G1H2cw.js";
|
|
7
|
+
import { a as $2a41e45df1593e64$export$d39e1813b3bdd0e1, d as $d3f049242431219c$export$6d3443f2c48bfc20, f as $9daab02d461809db$export$683480f191c0e3ea, i as $96b38030c423d352$export$9fc1347d4195ccb3, o as $dd149f63282afbbf$export$f6211563215e3b37, r as $fc909762b330b746$export$61c6a8c84e605fb6, t as $44f671af83e7d9e0$export$2de4954e8ae13b9f, u as $d3f049242431219c$export$45fda7c47f93fd48 } from "./OverlayArrow-BrSp26z2.js";
|
|
8
|
+
import { n as $f1ab8c75478c6f73$export$cf75428e0b9ed1ea, r as $ef06256079686ba0$export$f8aeda7b10753fa1, t as $f1ab8c75478c6f73$export$3351871ee4b288b8 } from "./PressResponder-q8UTUsf0.js";
|
|
9
|
+
import { t as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-BROAXUSg.js";
|
|
10
|
+
import { t as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useControlledState-Bk39gTui.js";
|
|
11
|
+
import { t as $d2b4bc8c273e7be6$export$24d547caef80ccd1 } from "./Button-Cq7t4Xxl.js";
|
|
12
|
+
import { t as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-CLFkoJMP.js";
|
|
13
|
+
import { n as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-C2M9mXF2.js";
|
|
14
|
+
import { n as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusRing-DuXtCnJj.js";
|
|
15
|
+
import { t as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-CANxCO5-.js";
|
|
16
|
+
import { t as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "./VisuallyHidden-DjaDVPQT.js";
|
|
17
|
+
import { n as $f39a9eba43920ace$export$8dc98ba7eadeaa56, r as $f39a9eba43920ace$export$b5d7cc18bb8d2b59 } from "./Hidden-BtagiSrf.js";
|
|
18
|
+
import { t as $514c0188e459b4c0$export$9afb8bc826b033ea } from "./Text-BTtw_Syz.js";
|
|
19
|
+
import $HgANd$react, { cloneElement, createContext, forwardRef, isValidElement, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
20
|
+
import $4AOtR$reactdom, { createPortal, flushSync } from "react-dom";
|
|
21
|
+
//#region ../../node_modules/.bun/@react-aria+utils@3.33.0+67f6792bdf102c28/node_modules/@react-aria/utils/dist/useUpdateLayoutEffect.mjs
|
|
22
|
+
function $ca9b37712f007381$export$72ef708ab07251f1(effect, dependencies) {
|
|
23
|
+
const isInitialMount = useRef(true);
|
|
24
|
+
const lastDeps = useRef(null);
|
|
25
|
+
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
26
|
+
isInitialMount.current = true;
|
|
27
|
+
return () => {
|
|
28
|
+
isInitialMount.current = false;
|
|
29
|
+
};
|
|
30
|
+
}, []);
|
|
31
|
+
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
32
|
+
if (isInitialMount.current) isInitialMount.current = false;
|
|
33
|
+
else if (!lastDeps.current || dependencies.some((dep, i) => !Object.is(dep, lastDeps[i]))) effect();
|
|
34
|
+
lastDeps.current = dependencies;
|
|
35
|
+
}, dependencies);
|
|
36
|
+
}
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region ../../node_modules/.bun/@react-aria+utils@3.33.0+67f6792bdf102c28/node_modules/@react-aria/utils/dist/isScrollable.mjs
|
|
39
|
+
function $cc38e7bd3fc7b213$export$2bb74740c4e19def(node, checkForOverflow) {
|
|
40
|
+
if (!node) return false;
|
|
41
|
+
let style = window.getComputedStyle(node);
|
|
42
|
+
let isScrollable = /(auto|scroll)/.test(style.overflow + style.overflowX + style.overflowY);
|
|
43
|
+
if (isScrollable && checkForOverflow) isScrollable = node.scrollHeight !== node.clientHeight || node.scrollWidth !== node.clientWidth;
|
|
44
|
+
return isScrollable;
|
|
45
|
+
}
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region ../../node_modules/.bun/@react-aria+utils@3.33.0+67f6792bdf102c28/node_modules/@react-aria/utils/dist/getScrollParent.mjs
|
|
48
|
+
function $62d8ded9296f3872$export$cfa2225e87938781(node, checkForOverflow) {
|
|
49
|
+
let scrollableNode = node;
|
|
50
|
+
if ($cc38e7bd3fc7b213$export$2bb74740c4e19def(scrollableNode, checkForOverflow)) scrollableNode = scrollableNode.parentElement;
|
|
51
|
+
while (scrollableNode && !$cc38e7bd3fc7b213$export$2bb74740c4e19def(scrollableNode, checkForOverflow)) scrollableNode = scrollableNode.parentElement;
|
|
52
|
+
return scrollableNode || document.scrollingElement || document.documentElement;
|
|
53
|
+
}
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region ../../node_modules/.bun/@react-aria+utils@3.33.0+67f6792bdf102c28/node_modules/@react-aria/utils/dist/getScrollParents.mjs
|
|
56
|
+
function $a40c673dc9f6d9c7$export$94ed1c92c7beeb22(node, checkForOverflow) {
|
|
57
|
+
const scrollParents = [];
|
|
58
|
+
while (node && node !== document.documentElement) {
|
|
59
|
+
if ($cc38e7bd3fc7b213$export$2bb74740c4e19def(node, checkForOverflow)) scrollParents.push(node);
|
|
60
|
+
node = node.parentElement;
|
|
61
|
+
}
|
|
62
|
+
return scrollParents;
|
|
63
|
+
}
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region ../../node_modules/.bun/@react-aria+utils@3.33.0+67f6792bdf102c28/node_modules/@react-aria/utils/dist/keyboard.mjs
|
|
66
|
+
function $21f1aa98acb08317$export$16792effe837dba3(e) {
|
|
67
|
+
if ($c87311424ea30a05$export$9ac100e40613ea10()) return e.metaKey;
|
|
68
|
+
return e.ctrlKey;
|
|
69
|
+
}
|
|
70
|
+
const $21f1aa98acb08317$var$nonTextInputTypes = /* @__PURE__ */ new Set([
|
|
71
|
+
"checkbox",
|
|
72
|
+
"radio",
|
|
73
|
+
"range",
|
|
74
|
+
"color",
|
|
75
|
+
"file",
|
|
76
|
+
"image",
|
|
77
|
+
"button",
|
|
78
|
+
"submit",
|
|
79
|
+
"reset"
|
|
80
|
+
]);
|
|
81
|
+
function $21f1aa98acb08317$export$c57958e35f31ed73(target) {
|
|
82
|
+
return target instanceof HTMLInputElement && !$21f1aa98acb08317$var$nonTextInputTypes.has(target.type) || target instanceof HTMLTextAreaElement || target instanceof HTMLElement && target.isContentEditable;
|
|
83
|
+
}
|
|
84
|
+
//#endregion
|
|
85
|
+
//#region ../../node_modules/.bun/@react-aria+utils@3.33.0+67f6792bdf102c28/node_modules/@react-aria/utils/dist/scrollIntoView.mjs
|
|
86
|
+
function $2f04cbc44ee30ce0$export$53a0910f038337bd(scrollView, element) {
|
|
87
|
+
let offsetX = $2f04cbc44ee30ce0$var$relativeOffset(scrollView, element, "left");
|
|
88
|
+
let offsetY = $2f04cbc44ee30ce0$var$relativeOffset(scrollView, element, "top");
|
|
89
|
+
let width = element.offsetWidth;
|
|
90
|
+
let height = element.offsetHeight;
|
|
91
|
+
let x = scrollView.scrollLeft;
|
|
92
|
+
let y = scrollView.scrollTop;
|
|
93
|
+
let { borderTopWidth, borderLeftWidth, scrollPaddingTop, scrollPaddingRight, scrollPaddingBottom, scrollPaddingLeft } = getComputedStyle(scrollView);
|
|
94
|
+
let borderAdjustedX = x + parseInt(borderLeftWidth, 10);
|
|
95
|
+
let borderAdjustedY = y + parseInt(borderTopWidth, 10);
|
|
96
|
+
let maxX = borderAdjustedX + scrollView.clientWidth;
|
|
97
|
+
let maxY = borderAdjustedY + scrollView.clientHeight;
|
|
98
|
+
let scrollPaddingTopNumber = parseInt(scrollPaddingTop, 10) || 0;
|
|
99
|
+
let scrollPaddingBottomNumber = parseInt(scrollPaddingBottom, 10) || 0;
|
|
100
|
+
let scrollPaddingRightNumber = parseInt(scrollPaddingRight, 10) || 0;
|
|
101
|
+
let scrollPaddingLeftNumber = parseInt(scrollPaddingLeft, 10) || 0;
|
|
102
|
+
if (offsetX <= x + scrollPaddingLeftNumber) x = offsetX - parseInt(borderLeftWidth, 10) - scrollPaddingLeftNumber;
|
|
103
|
+
else if (offsetX + width > maxX - scrollPaddingRightNumber) x += offsetX + width - maxX + scrollPaddingRightNumber;
|
|
104
|
+
if (offsetY <= borderAdjustedY + scrollPaddingTopNumber) y = offsetY - parseInt(borderTopWidth, 10) - scrollPaddingTopNumber;
|
|
105
|
+
else if (offsetY + height > maxY - scrollPaddingBottomNumber) y += offsetY + height - maxY + scrollPaddingBottomNumber;
|
|
106
|
+
scrollView.scrollLeft = x;
|
|
107
|
+
scrollView.scrollTop = y;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Computes the offset left or top from child to ancestor by accumulating
|
|
111
|
+
* offsetLeft or offsetTop through intervening offsetParents.
|
|
112
|
+
*/ function $2f04cbc44ee30ce0$var$relativeOffset(ancestor, child, axis) {
|
|
113
|
+
const prop = axis === "left" ? "offsetLeft" : "offsetTop";
|
|
114
|
+
let sum = 0;
|
|
115
|
+
while (child.offsetParent) {
|
|
116
|
+
sum += child[prop];
|
|
117
|
+
if (child.offsetParent === ancestor) break;
|
|
118
|
+
else if ($d4ee10de306f2510$export$4282f70798064fe0(child.offsetParent, ancestor)) {
|
|
119
|
+
sum -= ancestor[prop];
|
|
120
|
+
break;
|
|
121
|
+
}
|
|
122
|
+
child = child.offsetParent;
|
|
123
|
+
}
|
|
124
|
+
return sum;
|
|
125
|
+
}
|
|
126
|
+
function $2f04cbc44ee30ce0$export$c826860796309d1b(targetElement, opts) {
|
|
127
|
+
if (targetElement && $d4ee10de306f2510$export$4282f70798064fe0(document, targetElement)) {
|
|
128
|
+
let root = document.scrollingElement || document.documentElement;
|
|
129
|
+
let isScrollPrevented = window.getComputedStyle(root).overflow === "hidden";
|
|
130
|
+
if (!isScrollPrevented) {
|
|
131
|
+
var _targetElement_scrollIntoView;
|
|
132
|
+
let { left: originalLeft, top: originalTop } = targetElement.getBoundingClientRect();
|
|
133
|
+
targetElement === null || targetElement === void 0 || (_targetElement_scrollIntoView = targetElement.scrollIntoView) == null || _targetElement_scrollIntoView.call(targetElement, { block: "nearest" });
|
|
134
|
+
let { left: newLeft, top: newTop } = targetElement.getBoundingClientRect();
|
|
135
|
+
if (Math.abs(originalLeft - newLeft) > 1 || Math.abs(originalTop - newTop) > 1) {
|
|
136
|
+
var _opts_containingElement_scrollIntoView, _opts_containingElement, _targetElement_scrollIntoView1;
|
|
137
|
+
opts === null || opts === void 0 || (_opts_containingElement = opts.containingElement) == null || (_opts_containingElement_scrollIntoView = _opts_containingElement.scrollIntoView) == null || _opts_containingElement_scrollIntoView.call(_opts_containingElement, {
|
|
138
|
+
block: "center",
|
|
139
|
+
inline: "center"
|
|
140
|
+
});
|
|
141
|
+
(_targetElement_scrollIntoView1 = targetElement.scrollIntoView) === null || _targetElement_scrollIntoView1 === void 0 || _targetElement_scrollIntoView1.call(targetElement, { block: "nearest" });
|
|
142
|
+
}
|
|
143
|
+
} else {
|
|
144
|
+
let scrollParents = $a40c673dc9f6d9c7$export$94ed1c92c7beeb22(targetElement);
|
|
145
|
+
if (!isScrollPrevented) scrollParents.push(root);
|
|
146
|
+
for (let scrollParent of scrollParents) $2f04cbc44ee30ce0$export$53a0910f038337bd(scrollParent, targetElement);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
//#endregion
|
|
151
|
+
//#region ../../node_modules/.bun/@react-aria+utils@3.33.0+67f6792bdf102c28/node_modules/@react-aria/utils/dist/constants.mjs
|
|
152
|
+
const $5671b20cf9b562b2$export$447a38995de2c711 = "react-aria-clear-focus";
|
|
153
|
+
const $5671b20cf9b562b2$export$831c820ad60f9d12 = "react-aria-focus";
|
|
154
|
+
//#endregion
|
|
155
|
+
//#region ../../node_modules/.bun/@react-aria+i18n@3.12.15+67f6792bdf102c28/node_modules/@react-aria/i18n/dist/useCollator.mjs
|
|
156
|
+
let $325a3faab7a68acd$var$cache = /* @__PURE__ */ new Map();
|
|
157
|
+
function $325a3faab7a68acd$export$a16aca283550c30d(options) {
|
|
158
|
+
let { locale } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
159
|
+
let cacheKey = locale + (options ? Object.entries(options).sort((a, b) => a[0] < b[0] ? -1 : 1).join() : "");
|
|
160
|
+
if ($325a3faab7a68acd$var$cache.has(cacheKey)) return $325a3faab7a68acd$var$cache.get(cacheKey);
|
|
161
|
+
let formatter = new Intl.Collator(locale, options);
|
|
162
|
+
$325a3faab7a68acd$var$cache.set(cacheKey, formatter);
|
|
163
|
+
return formatter;
|
|
164
|
+
}
|
|
165
|
+
//#endregion
|
|
166
|
+
//#region ../../node_modules/.bun/@react-aria+interactions@3.27.0+67f6792bdf102c28/node_modules/@react-aria/interactions/dist/useInteractOutside.mjs
|
|
167
|
+
function $e0b6e0b68ec7f50f$export$872b660ac5a1ff98(props) {
|
|
168
|
+
let { ref, onInteractOutside, isDisabled, onInteractOutsideStart } = props;
|
|
169
|
+
let stateRef = useRef({
|
|
170
|
+
isPointerDown: false,
|
|
171
|
+
ignoreEmulatedMouseEvents: false
|
|
172
|
+
});
|
|
173
|
+
let onPointerDown = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e) => {
|
|
174
|
+
if (onInteractOutside && $e0b6e0b68ec7f50f$var$isValidEvent(e, ref)) {
|
|
175
|
+
if (onInteractOutsideStart) onInteractOutsideStart(e);
|
|
176
|
+
stateRef.current.isPointerDown = true;
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
let triggerInteractOutside = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e) => {
|
|
180
|
+
if (onInteractOutside) onInteractOutside(e);
|
|
181
|
+
});
|
|
182
|
+
useEffect(() => {
|
|
183
|
+
let state = stateRef.current;
|
|
184
|
+
if (isDisabled) return;
|
|
185
|
+
const element = ref.current;
|
|
186
|
+
const documentObject = $431fbd86ca7dc216$export$b204af158042fbac(element);
|
|
187
|
+
if (typeof PointerEvent !== "undefined") {
|
|
188
|
+
let onClick = (e) => {
|
|
189
|
+
if (state.isPointerDown && $e0b6e0b68ec7f50f$var$isValidEvent(e, ref)) triggerInteractOutside(e);
|
|
190
|
+
state.isPointerDown = false;
|
|
191
|
+
};
|
|
192
|
+
documentObject.addEventListener("pointerdown", onPointerDown, true);
|
|
193
|
+
documentObject.addEventListener("click", onClick, true);
|
|
194
|
+
return () => {
|
|
195
|
+
documentObject.removeEventListener("pointerdown", onPointerDown, true);
|
|
196
|
+
documentObject.removeEventListener("click", onClick, true);
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
}, [ref, isDisabled]);
|
|
200
|
+
}
|
|
201
|
+
function $e0b6e0b68ec7f50f$var$isValidEvent(event, ref) {
|
|
202
|
+
if (event.button > 0) return false;
|
|
203
|
+
if (event.target) {
|
|
204
|
+
const ownerDocument = event.target.ownerDocument;
|
|
205
|
+
if (!ownerDocument || !$d4ee10de306f2510$export$4282f70798064fe0(ownerDocument.documentElement, event.target)) return false;
|
|
206
|
+
if (event.target.closest("[data-react-aria-top-layer]")) return false;
|
|
207
|
+
}
|
|
208
|
+
if (!ref.current) return false;
|
|
209
|
+
return !event.composedPath().includes(ref.current);
|
|
210
|
+
}
|
|
211
|
+
//#endregion
|
|
212
|
+
//#region ../../node_modules/.bun/@react-aria+interactions@3.27.0+67f6792bdf102c28/node_modules/@react-aria/interactions/dist/useLongPress.mjs
|
|
213
|
+
const $8a26561d2877236e$var$DEFAULT_THRESHOLD = 500;
|
|
214
|
+
function $8a26561d2877236e$export$c24ed0104d07eab9(props) {
|
|
215
|
+
let { isDisabled, onLongPressStart, onLongPressEnd, onLongPress, threshold = $8a26561d2877236e$var$DEFAULT_THRESHOLD, accessibilityDescription } = props;
|
|
216
|
+
const timeRef = useRef(void 0);
|
|
217
|
+
let { addGlobalListener, removeGlobalListener } = $03deb23ff14920c4$export$4eaf04e54aa8eed6();
|
|
218
|
+
let { pressProps } = $f6c31cce2adf654f$export$45712eceda6fad21({
|
|
219
|
+
isDisabled,
|
|
220
|
+
onPressStart(e) {
|
|
221
|
+
e.continuePropagation();
|
|
222
|
+
if (e.pointerType === "mouse" || e.pointerType === "touch") {
|
|
223
|
+
if (onLongPressStart) onLongPressStart({
|
|
224
|
+
...e,
|
|
225
|
+
type: "longpressstart"
|
|
226
|
+
});
|
|
227
|
+
timeRef.current = setTimeout(() => {
|
|
228
|
+
e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: true }));
|
|
229
|
+
if ($431fbd86ca7dc216$export$b204af158042fbac(e.target).activeElement !== e.target) $7215afc6de606d6b$export$de79e2c695e052f3(e.target);
|
|
230
|
+
if (onLongPress) onLongPress({
|
|
231
|
+
...e,
|
|
232
|
+
type: "longpress"
|
|
233
|
+
});
|
|
234
|
+
timeRef.current = void 0;
|
|
235
|
+
}, threshold);
|
|
236
|
+
if (e.pointerType === "touch") {
|
|
237
|
+
let onContextMenu = (e) => {
|
|
238
|
+
e.preventDefault();
|
|
239
|
+
};
|
|
240
|
+
addGlobalListener(e.target, "contextmenu", onContextMenu, { once: true });
|
|
241
|
+
addGlobalListener(window, "pointerup", () => {
|
|
242
|
+
setTimeout(() => {
|
|
243
|
+
removeGlobalListener(e.target, "contextmenu", onContextMenu);
|
|
244
|
+
}, 30);
|
|
245
|
+
}, { once: true });
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
onPressEnd(e) {
|
|
250
|
+
if (timeRef.current) clearTimeout(timeRef.current);
|
|
251
|
+
if (onLongPressEnd && (e.pointerType === "mouse" || e.pointerType === "touch")) onLongPressEnd({
|
|
252
|
+
...e,
|
|
253
|
+
type: "longpressend"
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
let descriptionProps = $ef06256079686ba0$export$f8aeda7b10753fa1(onLongPress && !isDisabled ? accessibilityDescription : void 0);
|
|
258
|
+
return { longPressProps: $3ef42575df84b30b$export$9d1611c77c2fe928(pressProps, descriptionProps) };
|
|
259
|
+
}
|
|
260
|
+
//#endregion
|
|
261
|
+
//#region ../../node_modules/.bun/@react-aria+focus@3.21.4+67f6792bdf102c28/node_modules/@react-aria/focus/dist/virtualFocus.mjs
|
|
262
|
+
function $55f9b1ae81f22853$export$76e4e37e5339496d(to) {
|
|
263
|
+
let from = $55f9b1ae81f22853$export$759df0d867455a91($431fbd86ca7dc216$export$b204af158042fbac(to));
|
|
264
|
+
if (from !== to) {
|
|
265
|
+
if (from) $55f9b1ae81f22853$export$6c5dc7e81d2cc29a(from, to);
|
|
266
|
+
if (to) $55f9b1ae81f22853$export$2b35b76d2e30e129(to, from);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
function $55f9b1ae81f22853$export$6c5dc7e81d2cc29a(from, to) {
|
|
270
|
+
from.dispatchEvent(new FocusEvent("blur", { relatedTarget: to }));
|
|
271
|
+
from.dispatchEvent(new FocusEvent("focusout", {
|
|
272
|
+
bubbles: true,
|
|
273
|
+
relatedTarget: to
|
|
274
|
+
}));
|
|
275
|
+
}
|
|
276
|
+
function $55f9b1ae81f22853$export$2b35b76d2e30e129(to, from) {
|
|
277
|
+
to.dispatchEvent(new FocusEvent("focus", { relatedTarget: from }));
|
|
278
|
+
to.dispatchEvent(new FocusEvent("focusin", {
|
|
279
|
+
bubbles: true,
|
|
280
|
+
relatedTarget: from
|
|
281
|
+
}));
|
|
282
|
+
}
|
|
283
|
+
function $55f9b1ae81f22853$export$759df0d867455a91(document) {
|
|
284
|
+
let activeElement = $d4ee10de306f2510$export$cd4e5573fbe2b576(document);
|
|
285
|
+
let activeDescendant = activeElement === null || activeElement === void 0 ? void 0 : activeElement.getAttribute("aria-activedescendant");
|
|
286
|
+
if (activeDescendant) return document.getElementById(activeDescendant) || activeElement;
|
|
287
|
+
return activeElement;
|
|
288
|
+
}
|
|
289
|
+
//#endregion
|
|
290
|
+
//#region ../../node_modules/.bun/@react-aria+overlays@3.31.1+67f6792bdf102c28/node_modules/@react-aria/overlays/dist/useOverlay.mjs
|
|
291
|
+
const $a11501f3d1d39e6c$var$visibleOverlays = [];
|
|
292
|
+
function $a11501f3d1d39e6c$export$ea8f71083e90600f(props, ref) {
|
|
293
|
+
let { onClose, shouldCloseOnBlur, isOpen, isDismissable = false, isKeyboardDismissDisabled = false, shouldCloseOnInteractOutside } = props;
|
|
294
|
+
let lastVisibleOverlay = useRef(void 0);
|
|
295
|
+
useEffect(() => {
|
|
296
|
+
if (isOpen && !$a11501f3d1d39e6c$var$visibleOverlays.includes(ref)) {
|
|
297
|
+
$a11501f3d1d39e6c$var$visibleOverlays.push(ref);
|
|
298
|
+
return () => {
|
|
299
|
+
let index = $a11501f3d1d39e6c$var$visibleOverlays.indexOf(ref);
|
|
300
|
+
if (index >= 0) $a11501f3d1d39e6c$var$visibleOverlays.splice(index, 1);
|
|
301
|
+
};
|
|
302
|
+
}
|
|
303
|
+
}, [isOpen, ref]);
|
|
304
|
+
let onHide = () => {
|
|
305
|
+
if ($a11501f3d1d39e6c$var$visibleOverlays[$a11501f3d1d39e6c$var$visibleOverlays.length - 1] === ref && onClose) onClose();
|
|
306
|
+
};
|
|
307
|
+
let onInteractOutsideStart = (e) => {
|
|
308
|
+
const topMostOverlay = $a11501f3d1d39e6c$var$visibleOverlays[$a11501f3d1d39e6c$var$visibleOverlays.length - 1];
|
|
309
|
+
lastVisibleOverlay.current = topMostOverlay;
|
|
310
|
+
if (!shouldCloseOnInteractOutside || shouldCloseOnInteractOutside(e.target)) {
|
|
311
|
+
if (topMostOverlay === ref) {
|
|
312
|
+
e.stopPropagation();
|
|
313
|
+
e.preventDefault();
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
};
|
|
317
|
+
let onInteractOutside = (e) => {
|
|
318
|
+
if (!shouldCloseOnInteractOutside || shouldCloseOnInteractOutside(e.target)) {
|
|
319
|
+
if ($a11501f3d1d39e6c$var$visibleOverlays[$a11501f3d1d39e6c$var$visibleOverlays.length - 1] === ref) {
|
|
320
|
+
e.stopPropagation();
|
|
321
|
+
e.preventDefault();
|
|
322
|
+
}
|
|
323
|
+
if (lastVisibleOverlay.current === ref) onHide();
|
|
324
|
+
}
|
|
325
|
+
lastVisibleOverlay.current = void 0;
|
|
326
|
+
};
|
|
327
|
+
let onKeyDown = (e) => {
|
|
328
|
+
if (e.key === "Escape" && !isKeyboardDismissDisabled && !e.nativeEvent.isComposing) {
|
|
329
|
+
e.stopPropagation();
|
|
330
|
+
e.preventDefault();
|
|
331
|
+
onHide();
|
|
332
|
+
}
|
|
333
|
+
};
|
|
334
|
+
$e0b6e0b68ec7f50f$export$872b660ac5a1ff98({
|
|
335
|
+
ref,
|
|
336
|
+
onInteractOutside: isDismissable && isOpen ? onInteractOutside : void 0,
|
|
337
|
+
onInteractOutsideStart
|
|
338
|
+
});
|
|
339
|
+
let { focusWithinProps } = $9ab94262bd0047c7$export$420e68273165f4ec({
|
|
340
|
+
isDisabled: !shouldCloseOnBlur,
|
|
341
|
+
onBlurWithin: (e) => {
|
|
342
|
+
if (!e.relatedTarget || $9bf71ea28793e738$export$1258395f99bf9cbf(e.relatedTarget)) return;
|
|
343
|
+
if (!shouldCloseOnInteractOutside || shouldCloseOnInteractOutside(e.relatedTarget)) onClose === null || onClose === void 0 || onClose();
|
|
344
|
+
}
|
|
345
|
+
});
|
|
346
|
+
let onPointerDownUnderlay = (e) => {
|
|
347
|
+
if (e.target === e.currentTarget) e.preventDefault();
|
|
348
|
+
};
|
|
349
|
+
return {
|
|
350
|
+
overlayProps: {
|
|
351
|
+
onKeyDown,
|
|
352
|
+
...focusWithinProps
|
|
353
|
+
},
|
|
354
|
+
underlayProps: { onPointerDown: onPointerDownUnderlay }
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
//#endregion
|
|
358
|
+
//#region ../../node_modules/.bun/@react-aria+overlays@3.31.1+67f6792bdf102c28/node_modules/@react-aria/overlays/dist/useOverlayTrigger.mjs
|
|
359
|
+
function $628037886ba31236$export$f9d5c8beee7d008d(props, state, ref) {
|
|
360
|
+
let { type } = props;
|
|
361
|
+
let { isOpen } = state;
|
|
362
|
+
useEffect(() => {
|
|
363
|
+
if (ref && ref.current) $dd149f63282afbbf$export$f6211563215e3b37.set(ref.current, state.close);
|
|
364
|
+
});
|
|
365
|
+
let ariaHasPopup = void 0;
|
|
366
|
+
if (type === "menu") ariaHasPopup = true;
|
|
367
|
+
else if (type === "listbox") ariaHasPopup = "listbox";
|
|
368
|
+
let overlayId = $bdb11010cef70236$export$f680877a34711e37();
|
|
369
|
+
return {
|
|
370
|
+
triggerProps: {
|
|
371
|
+
"aria-haspopup": ariaHasPopup,
|
|
372
|
+
"aria-expanded": isOpen,
|
|
373
|
+
"aria-controls": isOpen ? overlayId : void 0,
|
|
374
|
+
onPress: state.toggle
|
|
375
|
+
},
|
|
376
|
+
overlayProps: { id: overlayId }
|
|
377
|
+
};
|
|
378
|
+
}
|
|
379
|
+
//#endregion
|
|
380
|
+
//#region ../../node_modules/.bun/@react-aria+overlays@3.31.1+67f6792bdf102c28/node_modules/@react-aria/overlays/dist/usePreventScroll.mjs
|
|
381
|
+
const $49c51c25361d4cd2$var$visualViewport = typeof document !== "undefined" && window.visualViewport;
|
|
382
|
+
let $49c51c25361d4cd2$var$preventScrollCount = 0;
|
|
383
|
+
let $49c51c25361d4cd2$var$restore;
|
|
384
|
+
function $49c51c25361d4cd2$export$ee0f7cc6afcd1c18(options = {}) {
|
|
385
|
+
let { isDisabled } = options;
|
|
386
|
+
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
387
|
+
if (isDisabled) return;
|
|
388
|
+
$49c51c25361d4cd2$var$preventScrollCount++;
|
|
389
|
+
if ($49c51c25361d4cd2$var$preventScrollCount === 1) if ($c87311424ea30a05$export$fedb369cb70207f1()) $49c51c25361d4cd2$var$restore = $49c51c25361d4cd2$var$preventScrollMobileSafari();
|
|
390
|
+
else $49c51c25361d4cd2$var$restore = $49c51c25361d4cd2$var$preventScrollStandard();
|
|
391
|
+
return () => {
|
|
392
|
+
$49c51c25361d4cd2$var$preventScrollCount--;
|
|
393
|
+
if ($49c51c25361d4cd2$var$preventScrollCount === 0) $49c51c25361d4cd2$var$restore();
|
|
394
|
+
};
|
|
395
|
+
}, [isDisabled]);
|
|
396
|
+
}
|
|
397
|
+
function $49c51c25361d4cd2$var$preventScrollStandard() {
|
|
398
|
+
let scrollbarWidth = window.innerWidth - document.documentElement.clientWidth;
|
|
399
|
+
return $ff5963eb1fccf552$export$e08e3b67e392101e(scrollbarWidth > 0 && ("scrollbarGutter" in document.documentElement.style ? $49c51c25361d4cd2$var$setStyle(document.documentElement, "scrollbarGutter", "stable") : $49c51c25361d4cd2$var$setStyle(document.documentElement, "paddingRight", `${scrollbarWidth}px`)), $49c51c25361d4cd2$var$setStyle(document.documentElement, "overflow", "hidden"));
|
|
400
|
+
}
|
|
401
|
+
function $49c51c25361d4cd2$var$preventScrollMobileSafari() {
|
|
402
|
+
let scrollable;
|
|
403
|
+
let allowTouchMove = false;
|
|
404
|
+
let onTouchStart = (e) => {
|
|
405
|
+
let target = e.target;
|
|
406
|
+
scrollable = $cc38e7bd3fc7b213$export$2bb74740c4e19def(target) ? target : $62d8ded9296f3872$export$cfa2225e87938781(target, true);
|
|
407
|
+
allowTouchMove = false;
|
|
408
|
+
let selection = target.ownerDocument.defaultView.getSelection();
|
|
409
|
+
if (selection && !selection.isCollapsed && selection.containsNode(target, true)) allowTouchMove = true;
|
|
410
|
+
if (e.composedPath().some((el) => el instanceof HTMLInputElement && el.type === "range")) allowTouchMove = true;
|
|
411
|
+
if ("selectionStart" in target && "selectionEnd" in target && target.selectionStart < target.selectionEnd && target.ownerDocument.activeElement === target) allowTouchMove = true;
|
|
412
|
+
};
|
|
413
|
+
let style = document.createElement("style");
|
|
414
|
+
style.textContent = `
|
|
415
|
+
@layer {
|
|
416
|
+
* {
|
|
417
|
+
overscroll-behavior: contain;
|
|
418
|
+
}
|
|
419
|
+
}`.trim();
|
|
420
|
+
document.head.prepend(style);
|
|
421
|
+
let onTouchMove = (e) => {
|
|
422
|
+
if (e.touches.length === 2 || allowTouchMove) return;
|
|
423
|
+
if (!scrollable || scrollable === document.documentElement || scrollable === document.body) {
|
|
424
|
+
e.preventDefault();
|
|
425
|
+
return;
|
|
426
|
+
}
|
|
427
|
+
if (scrollable.scrollHeight === scrollable.clientHeight && scrollable.scrollWidth === scrollable.clientWidth) e.preventDefault();
|
|
428
|
+
};
|
|
429
|
+
let onBlur = (e) => {
|
|
430
|
+
let target = e.target;
|
|
431
|
+
let relatedTarget = e.relatedTarget;
|
|
432
|
+
if (relatedTarget && $21f1aa98acb08317$export$c57958e35f31ed73(relatedTarget)) {
|
|
433
|
+
relatedTarget.focus({ preventScroll: true });
|
|
434
|
+
$49c51c25361d4cd2$var$scrollIntoViewWhenReady(relatedTarget, $21f1aa98acb08317$export$c57958e35f31ed73(target));
|
|
435
|
+
} else if (!relatedTarget) {
|
|
436
|
+
var _target_parentElement;
|
|
437
|
+
let focusable = (_target_parentElement = target.parentElement) === null || _target_parentElement === void 0 ? void 0 : _target_parentElement.closest("[tabindex]");
|
|
438
|
+
focusable === null || focusable === void 0 || focusable.focus({ preventScroll: true });
|
|
439
|
+
}
|
|
440
|
+
};
|
|
441
|
+
let focus = HTMLElement.prototype.focus;
|
|
442
|
+
HTMLElement.prototype.focus = function(opts) {
|
|
443
|
+
let wasKeyboardVisible = document.activeElement != null && $21f1aa98acb08317$export$c57958e35f31ed73(document.activeElement);
|
|
444
|
+
focus.call(this, {
|
|
445
|
+
...opts,
|
|
446
|
+
preventScroll: true
|
|
447
|
+
});
|
|
448
|
+
if (!opts || !opts.preventScroll) $49c51c25361d4cd2$var$scrollIntoViewWhenReady(this, wasKeyboardVisible);
|
|
449
|
+
};
|
|
450
|
+
let removeEvents = $ff5963eb1fccf552$export$e08e3b67e392101e($49c51c25361d4cd2$var$addEvent(document, "touchstart", onTouchStart, {
|
|
451
|
+
passive: false,
|
|
452
|
+
capture: true
|
|
453
|
+
}), $49c51c25361d4cd2$var$addEvent(document, "touchmove", onTouchMove, {
|
|
454
|
+
passive: false,
|
|
455
|
+
capture: true
|
|
456
|
+
}), $49c51c25361d4cd2$var$addEvent(document, "blur", onBlur, true));
|
|
457
|
+
return () => {
|
|
458
|
+
removeEvents();
|
|
459
|
+
style.remove();
|
|
460
|
+
HTMLElement.prototype.focus = focus;
|
|
461
|
+
};
|
|
462
|
+
}
|
|
463
|
+
function $49c51c25361d4cd2$var$setStyle(element, style, value) {
|
|
464
|
+
let cur = element.style[style];
|
|
465
|
+
element.style[style] = value;
|
|
466
|
+
return () => {
|
|
467
|
+
element.style[style] = cur;
|
|
468
|
+
};
|
|
469
|
+
}
|
|
470
|
+
function $49c51c25361d4cd2$var$addEvent(target, event, handler, options) {
|
|
471
|
+
target.addEventListener(event, handler, options);
|
|
472
|
+
return () => {
|
|
473
|
+
target.removeEventListener(event, handler, options);
|
|
474
|
+
};
|
|
475
|
+
}
|
|
476
|
+
function $49c51c25361d4cd2$var$scrollIntoViewWhenReady(target, wasKeyboardVisible) {
|
|
477
|
+
if (wasKeyboardVisible || !$49c51c25361d4cd2$var$visualViewport) $49c51c25361d4cd2$var$scrollIntoView(target);
|
|
478
|
+
else $49c51c25361d4cd2$var$visualViewport.addEventListener("resize", () => $49c51c25361d4cd2$var$scrollIntoView(target), { once: true });
|
|
479
|
+
}
|
|
480
|
+
function $49c51c25361d4cd2$var$scrollIntoView(target) {
|
|
481
|
+
let root = document.scrollingElement || document.documentElement;
|
|
482
|
+
let nextTarget = target;
|
|
483
|
+
while (nextTarget && nextTarget !== root) {
|
|
484
|
+
let scrollable = $62d8ded9296f3872$export$cfa2225e87938781(nextTarget);
|
|
485
|
+
if (scrollable !== document.documentElement && scrollable !== document.body && scrollable !== nextTarget) {
|
|
486
|
+
let scrollableRect = scrollable.getBoundingClientRect();
|
|
487
|
+
let targetRect = nextTarget.getBoundingClientRect();
|
|
488
|
+
if (targetRect.top < scrollableRect.top || targetRect.bottom > scrollableRect.top + nextTarget.clientHeight) {
|
|
489
|
+
let bottom = scrollableRect.bottom;
|
|
490
|
+
if ($49c51c25361d4cd2$var$visualViewport) bottom = Math.min(bottom, $49c51c25361d4cd2$var$visualViewport.offsetTop + $49c51c25361d4cd2$var$visualViewport.height);
|
|
491
|
+
let adjustment = targetRect.top - scrollableRect.top - ((bottom - scrollableRect.top) / 2 - targetRect.height / 2);
|
|
492
|
+
scrollable.scrollTo({
|
|
493
|
+
top: Math.max(0, Math.min(scrollable.scrollHeight - scrollable.clientHeight, scrollable.scrollTop + adjustment)),
|
|
494
|
+
behavior: "smooth"
|
|
495
|
+
});
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
nextTarget = scrollable.parentElement;
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
//#endregion
|
|
502
|
+
//#region ../../node_modules/.bun/@react-aria+overlays@3.31.1+67f6792bdf102c28/node_modules/@react-aria/overlays/dist/ar-AE.mjs
|
|
503
|
+
var $773d5888b972f1cf$exports = {};
|
|
504
|
+
$773d5888b972f1cf$exports = { "dismiss": `\u{62A}\u{62C}\u{627}\u{647}\u{644}` };
|
|
505
|
+
//#endregion
|
|
506
|
+
//#region ../../node_modules/.bun/@react-aria+overlays@3.31.1+67f6792bdf102c28/node_modules/@react-aria/overlays/dist/bg-BG.mjs
|
|
507
|
+
var $d11f19852b941573$exports = {};
|
|
508
|
+
$d11f19852b941573$exports = { "dismiss": `\u{41E}\u{442}\u{445}\u{432}\u{44A}\u{440}\u{43B}\u{44F}\u{43D}\u{435}` };
|
|
509
|
+
//#endregion
|
|
510
|
+
//#region ../../node_modules/.bun/@react-aria+overlays@3.31.1+67f6792bdf102c28/node_modules/@react-aria/overlays/dist/cs-CZ.mjs
|
|
511
|
+
var $b983974c2ee1efb3$exports = {};
|
|
512
|
+
$b983974c2ee1efb3$exports = { "dismiss": `Odstranit` };
|
|
513
|
+
//#endregion
|
|
514
|
+
//#region ../../node_modules/.bun/@react-aria+overlays@3.31.1+67f6792bdf102c28/node_modules/@react-aria/overlays/dist/da-DK.mjs
|
|
515
|
+
var $5809cc9d4e92de73$exports = {};
|
|
516
|
+
$5809cc9d4e92de73$exports = { "dismiss": `Luk` };
|
|
517
|
+
//#endregion
|
|
518
|
+
//#region ../../node_modules/.bun/@react-aria+overlays@3.31.1+67f6792bdf102c28/node_modules/@react-aria/overlays/dist/de-DE.mjs
|
|
519
|
+
var $c68c2e4fc74398d1$exports = {};
|
|
520
|
+
$c68c2e4fc74398d1$exports = { "dismiss": `Schlie\xdfen` };
|
|
521
|
+
//#endregion
|
|
522
|
+
//#region ../../node_modules/.bun/@react-aria+overlays@3.31.1+67f6792bdf102c28/node_modules/@react-aria/overlays/dist/el-GR.mjs
|
|
523
|
+
var $0898b4c153db2b77$exports = {};
|
|
524
|
+
$0898b4c153db2b77$exports = { "dismiss": `\u{391}\u{3C0}\u{3CC}\u{3C1}\u{3C1}\u{3B9}\u{3C8}\u{3B7}` };
|
|
525
|
+
//#endregion
|
|
526
|
+
//#region ../../node_modules/.bun/@react-aria+overlays@3.31.1+67f6792bdf102c28/node_modules/@react-aria/overlays/dist/en-US.mjs
|
|
527
|
+
var $6d74810286a15183$exports = {};
|
|
528
|
+
$6d74810286a15183$exports = { "dismiss": `Dismiss` };
|
|
529
|
+
//#endregion
|
|
530
|
+
//#region ../../node_modules/.bun/@react-aria+overlays@3.31.1+67f6792bdf102c28/node_modules/@react-aria/overlays/dist/es-ES.mjs
|
|
531
|
+
var $309d73dc65f78055$exports = {};
|
|
532
|
+
$309d73dc65f78055$exports = { "dismiss": `Descartar` };
|
|
533
|
+
//#endregion
|
|
534
|
+
//#region ../../node_modules/.bun/@react-aria+overlays@3.31.1+67f6792bdf102c28/node_modules/@react-aria/overlays/dist/et-EE.mjs
|
|
535
|
+
var $44ad94f7205cf593$exports = {};
|
|
536
|
+
$44ad94f7205cf593$exports = { "dismiss": `L\xf5peta` };
|
|
537
|
+
//#endregion
|
|
538
|
+
//#region ../../node_modules/.bun/@react-aria+overlays@3.31.1+67f6792bdf102c28/node_modules/@react-aria/overlays/dist/fi-FI.mjs
|
|
539
|
+
var $7c28f5687f0779a9$exports = {};
|
|
540
|
+
$7c28f5687f0779a9$exports = { "dismiss": `Hylk\xe4\xe4` };
|
|
541
|
+
//#endregion
|
|
542
|
+
//#region ../../node_modules/.bun/@react-aria+overlays@3.31.1+67f6792bdf102c28/node_modules/@react-aria/overlays/dist/fr-FR.mjs
|
|
543
|
+
var $e6d75df4b68bd73a$exports = {};
|
|
544
|
+
$e6d75df4b68bd73a$exports = { "dismiss": `Rejeter` };
|
|
545
|
+
//#endregion
|
|
546
|
+
//#region ../../node_modules/.bun/@react-aria+overlays@3.31.1+67f6792bdf102c28/node_modules/@react-aria/overlays/dist/he-IL.mjs
|
|
547
|
+
var $87505c9dab186d0f$exports = {};
|
|
548
|
+
$87505c9dab186d0f$exports = { "dismiss": `\u{5D4}\u{5EA}\u{5E2}\u{5DC}\u{5DD}` };
|
|
549
|
+
//#endregion
|
|
550
|
+
//#region ../../node_modules/.bun/@react-aria+overlays@3.31.1+67f6792bdf102c28/node_modules/@react-aria/overlays/dist/hr-HR.mjs
|
|
551
|
+
var $553439c3ffb3e492$exports = {};
|
|
552
|
+
$553439c3ffb3e492$exports = { "dismiss": `Odbaci` };
|
|
553
|
+
//#endregion
|
|
554
|
+
//#region ../../node_modules/.bun/@react-aria+overlays@3.31.1+67f6792bdf102c28/node_modules/@react-aria/overlays/dist/hu-HU.mjs
|
|
555
|
+
var $74cf411061b983a2$exports = {};
|
|
556
|
+
$74cf411061b983a2$exports = { "dismiss": `Elutas\xedt\xe1s` };
|
|
557
|
+
//#endregion
|
|
558
|
+
//#region ../../node_modules/.bun/@react-aria+overlays@3.31.1+67f6792bdf102c28/node_modules/@react-aria/overlays/dist/it-IT.mjs
|
|
559
|
+
var $e933f298574dc435$exports = {};
|
|
560
|
+
$e933f298574dc435$exports = { "dismiss": `Ignora` };
|
|
561
|
+
//#endregion
|
|
562
|
+
//#region ../../node_modules/.bun/@react-aria+overlays@3.31.1+67f6792bdf102c28/node_modules/@react-aria/overlays/dist/ja-JP.mjs
|
|
563
|
+
var $ac91fc9fe02f71f6$exports = {};
|
|
564
|
+
$ac91fc9fe02f71f6$exports = { "dismiss": `\u{9589}\u{3058}\u{308B}` };
|
|
565
|
+
//#endregion
|
|
566
|
+
//#region ../../node_modules/.bun/@react-aria+overlays@3.31.1+67f6792bdf102c28/node_modules/@react-aria/overlays/dist/ko-KR.mjs
|
|
567
|
+
var $52b96f86422025af$exports = {};
|
|
568
|
+
$52b96f86422025af$exports = { "dismiss": `\u{BB34}\u{C2DC}` };
|
|
569
|
+
//#endregion
|
|
570
|
+
//#region ../../node_modules/.bun/@react-aria+overlays@3.31.1+67f6792bdf102c28/node_modules/@react-aria/overlays/dist/lt-LT.mjs
|
|
571
|
+
var $c0d724c3e51dafa6$exports = {};
|
|
572
|
+
$c0d724c3e51dafa6$exports = { "dismiss": `Atmesti` };
|
|
573
|
+
//#endregion
|
|
574
|
+
//#region ../../node_modules/.bun/@react-aria+overlays@3.31.1+67f6792bdf102c28/node_modules/@react-aria/overlays/dist/lv-LV.mjs
|
|
575
|
+
var $c92899672a3fe72e$exports = {};
|
|
576
|
+
$c92899672a3fe72e$exports = { "dismiss": `Ner\u{101}d\u{12B}t` };
|
|
577
|
+
//#endregion
|
|
578
|
+
//#region ../../node_modules/.bun/@react-aria+overlays@3.31.1+67f6792bdf102c28/node_modules/@react-aria/overlays/dist/nb-NO.mjs
|
|
579
|
+
var $9f576b39d8e7a9d6$exports = {};
|
|
580
|
+
$9f576b39d8e7a9d6$exports = { "dismiss": `Lukk` };
|
|
581
|
+
//#endregion
|
|
582
|
+
//#region ../../node_modules/.bun/@react-aria+overlays@3.31.1+67f6792bdf102c28/node_modules/@react-aria/overlays/dist/nl-NL.mjs
|
|
583
|
+
var $9d025808aeec81a7$exports = {};
|
|
584
|
+
$9d025808aeec81a7$exports = { "dismiss": `Negeren` };
|
|
585
|
+
//#endregion
|
|
586
|
+
//#region ../../node_modules/.bun/@react-aria+overlays@3.31.1+67f6792bdf102c28/node_modules/@react-aria/overlays/dist/pl-PL.mjs
|
|
587
|
+
var $fce709921e2c0fa6$exports = {};
|
|
588
|
+
$fce709921e2c0fa6$exports = { "dismiss": `Zignoruj` };
|
|
589
|
+
//#endregion
|
|
590
|
+
//#region ../../node_modules/.bun/@react-aria+overlays@3.31.1+67f6792bdf102c28/node_modules/@react-aria/overlays/dist/pt-BR.mjs
|
|
591
|
+
var $2599cf0c4ab37f59$exports = {};
|
|
592
|
+
$2599cf0c4ab37f59$exports = { "dismiss": `Descartar` };
|
|
593
|
+
//#endregion
|
|
594
|
+
//#region ../../node_modules/.bun/@react-aria+overlays@3.31.1+67f6792bdf102c28/node_modules/@react-aria/overlays/dist/pt-PT.mjs
|
|
595
|
+
var $3c220ae7ef8a35fd$exports = {};
|
|
596
|
+
$3c220ae7ef8a35fd$exports = { "dismiss": `Dispensar` };
|
|
597
|
+
//#endregion
|
|
598
|
+
//#region ../../node_modules/.bun/@react-aria+overlays@3.31.1+67f6792bdf102c28/node_modules/@react-aria/overlays/dist/ro-RO.mjs
|
|
599
|
+
var $93562b5094072f54$exports = {};
|
|
600
|
+
$93562b5094072f54$exports = { "dismiss": `Revocare` };
|
|
601
|
+
//#endregion
|
|
602
|
+
//#region ../../node_modules/.bun/@react-aria+overlays@3.31.1+67f6792bdf102c28/node_modules/@react-aria/overlays/dist/ru-RU.mjs
|
|
603
|
+
var $cd9e2abd0d06c7b4$exports = {};
|
|
604
|
+
$cd9e2abd0d06c7b4$exports = { "dismiss": `\u{41F}\u{440}\u{43E}\u{43F}\u{443}\u{441}\u{442}\u{438}\u{442}\u{44C}` };
|
|
605
|
+
//#endregion
|
|
606
|
+
//#region ../../node_modules/.bun/@react-aria+overlays@3.31.1+67f6792bdf102c28/node_modules/@react-aria/overlays/dist/sk-SK.mjs
|
|
607
|
+
var $45375701f409adf1$exports = {};
|
|
608
|
+
$45375701f409adf1$exports = { "dismiss": `Zru\u{161}i\u{165}` };
|
|
609
|
+
//#endregion
|
|
610
|
+
//#region ../../node_modules/.bun/@react-aria+overlays@3.31.1+67f6792bdf102c28/node_modules/@react-aria/overlays/dist/sl-SI.mjs
|
|
611
|
+
var $27fab53a576de9dd$exports = {};
|
|
612
|
+
$27fab53a576de9dd$exports = { "dismiss": `Opusti` };
|
|
613
|
+
//#endregion
|
|
614
|
+
//#region ../../node_modules/.bun/@react-aria+overlays@3.31.1+67f6792bdf102c28/node_modules/@react-aria/overlays/dist/sr-SP.mjs
|
|
615
|
+
var $4438748d9952e7c7$exports = {};
|
|
616
|
+
$4438748d9952e7c7$exports = { "dismiss": `Odbaci` };
|
|
617
|
+
//#endregion
|
|
618
|
+
//#region ../../node_modules/.bun/@react-aria+overlays@3.31.1+67f6792bdf102c28/node_modules/@react-aria/overlays/dist/sv-SE.mjs
|
|
619
|
+
var $0936d7347ef4da4c$exports = {};
|
|
620
|
+
$0936d7347ef4da4c$exports = { "dismiss": `Avvisa` };
|
|
621
|
+
//#endregion
|
|
622
|
+
//#region ../../node_modules/.bun/@react-aria+overlays@3.31.1+67f6792bdf102c28/node_modules/@react-aria/overlays/dist/tr-TR.mjs
|
|
623
|
+
var $29700c92185d38f8$exports = {};
|
|
624
|
+
$29700c92185d38f8$exports = { "dismiss": `Kapat` };
|
|
625
|
+
//#endregion
|
|
626
|
+
//#region ../../node_modules/.bun/@react-aria+overlays@3.31.1+67f6792bdf102c28/node_modules/@react-aria/overlays/dist/uk-UA.mjs
|
|
627
|
+
var $662ccaf2be4c25b3$exports = {};
|
|
628
|
+
$662ccaf2be4c25b3$exports = { "dismiss": `\u{421}\u{43A}\u{430}\u{441}\u{443}\u{432}\u{430}\u{442}\u{438}` };
|
|
629
|
+
//#endregion
|
|
630
|
+
//#region ../../node_modules/.bun/@react-aria+overlays@3.31.1+67f6792bdf102c28/node_modules/@react-aria/overlays/dist/zh-CN.mjs
|
|
631
|
+
var $d80a27deda7cdb3c$exports = {};
|
|
632
|
+
$d80a27deda7cdb3c$exports = { "dismiss": `\u{53D6}\u{6D88}` };
|
|
633
|
+
//#endregion
|
|
634
|
+
//#region ../../node_modules/.bun/@react-aria+overlays@3.31.1+67f6792bdf102c28/node_modules/@react-aria/overlays/dist/zh-TW.mjs
|
|
635
|
+
var $2b2734393847c884$exports = {};
|
|
636
|
+
$2b2734393847c884$exports = { "dismiss": `\u{95DC}\u{9589}` };
|
|
637
|
+
//#endregion
|
|
638
|
+
//#region ../../node_modules/.bun/@react-aria+overlays@3.31.1+67f6792bdf102c28/node_modules/@react-aria/overlays/dist/intlStrings.mjs
|
|
639
|
+
var $a2f21f5f14f60553$exports = {};
|
|
640
|
+
$a2f21f5f14f60553$exports = {
|
|
641
|
+
"ar-AE": $773d5888b972f1cf$exports,
|
|
642
|
+
"bg-BG": $d11f19852b941573$exports,
|
|
643
|
+
"cs-CZ": $b983974c2ee1efb3$exports,
|
|
644
|
+
"da-DK": $5809cc9d4e92de73$exports,
|
|
645
|
+
"de-DE": $c68c2e4fc74398d1$exports,
|
|
646
|
+
"el-GR": $0898b4c153db2b77$exports,
|
|
647
|
+
"en-US": $6d74810286a15183$exports,
|
|
648
|
+
"es-ES": $309d73dc65f78055$exports,
|
|
649
|
+
"et-EE": $44ad94f7205cf593$exports,
|
|
650
|
+
"fi-FI": $7c28f5687f0779a9$exports,
|
|
651
|
+
"fr-FR": $e6d75df4b68bd73a$exports,
|
|
652
|
+
"he-IL": $87505c9dab186d0f$exports,
|
|
653
|
+
"hr-HR": $553439c3ffb3e492$exports,
|
|
654
|
+
"hu-HU": $74cf411061b983a2$exports,
|
|
655
|
+
"it-IT": $e933f298574dc435$exports,
|
|
656
|
+
"ja-JP": $ac91fc9fe02f71f6$exports,
|
|
657
|
+
"ko-KR": $52b96f86422025af$exports,
|
|
658
|
+
"lt-LT": $c0d724c3e51dafa6$exports,
|
|
659
|
+
"lv-LV": $c92899672a3fe72e$exports,
|
|
660
|
+
"nb-NO": $9f576b39d8e7a9d6$exports,
|
|
661
|
+
"nl-NL": $9d025808aeec81a7$exports,
|
|
662
|
+
"pl-PL": $fce709921e2c0fa6$exports,
|
|
663
|
+
"pt-BR": $2599cf0c4ab37f59$exports,
|
|
664
|
+
"pt-PT": $3c220ae7ef8a35fd$exports,
|
|
665
|
+
"ro-RO": $93562b5094072f54$exports,
|
|
666
|
+
"ru-RU": $cd9e2abd0d06c7b4$exports,
|
|
667
|
+
"sk-SK": $45375701f409adf1$exports,
|
|
668
|
+
"sl-SI": $27fab53a576de9dd$exports,
|
|
669
|
+
"sr-SP": $4438748d9952e7c7$exports,
|
|
670
|
+
"sv-SE": $0936d7347ef4da4c$exports,
|
|
671
|
+
"tr-TR": $29700c92185d38f8$exports,
|
|
672
|
+
"uk-UA": $662ccaf2be4c25b3$exports,
|
|
673
|
+
"zh-CN": $d80a27deda7cdb3c$exports,
|
|
674
|
+
"zh-TW": $2b2734393847c884$exports
|
|
675
|
+
};
|
|
676
|
+
//#endregion
|
|
677
|
+
//#region ../../node_modules/.bun/@react-aria+overlays@3.31.1+67f6792bdf102c28/node_modules/@react-aria/overlays/dist/DismissButton.mjs
|
|
678
|
+
function $parcel$interopDefault$1(a) {
|
|
679
|
+
return a && a.__esModule ? a.default : a;
|
|
680
|
+
}
|
|
681
|
+
function $86ea4cb521eb2e37$export$2317d149ed6f78c4(props) {
|
|
682
|
+
let { onDismiss, ...otherProps } = props;
|
|
683
|
+
let stringFormatter = $fca6afa0e843324b$export$f12b703ca79dfbb1($parcel$interopDefault$1($a2f21f5f14f60553$exports), "@react-aria/overlays");
|
|
684
|
+
let labels = $313b98861ee5dd6c$export$d6875122194c7b44(otherProps, stringFormatter.format("dismiss"));
|
|
685
|
+
let onClick = () => {
|
|
686
|
+
if (onDismiss) onDismiss();
|
|
687
|
+
};
|
|
688
|
+
return /*#__PURE__*/ $HgANd$react.createElement($5c3e21d68f1c4674$export$439d29a4e110a164, null, /*#__PURE__*/ $HgANd$react.createElement("button", {
|
|
689
|
+
...labels,
|
|
690
|
+
tabIndex: -1,
|
|
691
|
+
onClick,
|
|
692
|
+
style: {
|
|
693
|
+
width: 1,
|
|
694
|
+
height: 1
|
|
695
|
+
}
|
|
696
|
+
}));
|
|
697
|
+
}
|
|
698
|
+
//#endregion
|
|
699
|
+
//#region ../../node_modules/.bun/@react-aria+overlays@3.31.1+67f6792bdf102c28/node_modules/@react-aria/overlays/dist/ariaHideOutside.mjs
|
|
700
|
+
const $5e3802645cc19319$var$supportsInert = typeof HTMLElement !== "undefined" && "inert" in HTMLElement.prototype;
|
|
701
|
+
let $5e3802645cc19319$var$refCountMap = /* @__PURE__ */ new WeakMap();
|
|
702
|
+
let $5e3802645cc19319$var$observerStack = [];
|
|
703
|
+
function $5e3802645cc19319$export$1c3ebcada18427bf(targets, options) {
|
|
704
|
+
let windowObj = $431fbd86ca7dc216$export$f21a1ffae260145a(targets === null || targets === void 0 ? void 0 : targets[0]);
|
|
705
|
+
let opts = options instanceof windowObj.Element ? { root: options } : options;
|
|
706
|
+
var _opts_root;
|
|
707
|
+
let root = (_opts_root = opts === null || opts === void 0 ? void 0 : opts.root) !== null && _opts_root !== void 0 ? _opts_root : document.body;
|
|
708
|
+
let shouldUseInert = (opts === null || opts === void 0 ? void 0 : opts.shouldUseInert) && $5e3802645cc19319$var$supportsInert;
|
|
709
|
+
let visibleNodes = new Set(targets);
|
|
710
|
+
let hiddenNodes = /* @__PURE__ */ new Set();
|
|
711
|
+
let getHidden = (element) => {
|
|
712
|
+
return shouldUseInert && element instanceof windowObj.HTMLElement ? element.inert : element.getAttribute("aria-hidden") === "true";
|
|
713
|
+
};
|
|
714
|
+
let setHidden = (element, hidden) => {
|
|
715
|
+
if (shouldUseInert && element instanceof windowObj.HTMLElement) element.inert = hidden;
|
|
716
|
+
else if (hidden) element.setAttribute("aria-hidden", "true");
|
|
717
|
+
else {
|
|
718
|
+
element.removeAttribute("aria-hidden");
|
|
719
|
+
if (element instanceof windowObj.HTMLElement) element.inert = false;
|
|
720
|
+
}
|
|
721
|
+
};
|
|
722
|
+
let walk = (root) => {
|
|
723
|
+
for (let element of root.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) visibleNodes.add(element);
|
|
724
|
+
let acceptNode = (node) => {
|
|
725
|
+
if (hiddenNodes.has(node) || visibleNodes.has(node) || node.parentElement && hiddenNodes.has(node.parentElement) && node.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
|
|
726
|
+
for (let target of visibleNodes) if ($d4ee10de306f2510$export$4282f70798064fe0(node, target)) return NodeFilter.FILTER_SKIP;
|
|
727
|
+
return NodeFilter.FILTER_ACCEPT;
|
|
728
|
+
};
|
|
729
|
+
let walker = document.createTreeWalker(root, NodeFilter.SHOW_ELEMENT, { acceptNode });
|
|
730
|
+
let acceptRoot = acceptNode(root);
|
|
731
|
+
if (acceptRoot === NodeFilter.FILTER_ACCEPT) hide(root);
|
|
732
|
+
if (acceptRoot !== NodeFilter.FILTER_REJECT) {
|
|
733
|
+
let node = walker.nextNode();
|
|
734
|
+
while (node != null) {
|
|
735
|
+
hide(node);
|
|
736
|
+
node = walker.nextNode();
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
};
|
|
740
|
+
let hide = (node) => {
|
|
741
|
+
var _refCountMap_get;
|
|
742
|
+
let refCount = (_refCountMap_get = $5e3802645cc19319$var$refCountMap.get(node)) !== null && _refCountMap_get !== void 0 ? _refCountMap_get : 0;
|
|
743
|
+
if (getHidden(node) && refCount === 0) return;
|
|
744
|
+
if (refCount === 0) setHidden(node, true);
|
|
745
|
+
hiddenNodes.add(node);
|
|
746
|
+
$5e3802645cc19319$var$refCountMap.set(node, refCount + 1);
|
|
747
|
+
};
|
|
748
|
+
if ($5e3802645cc19319$var$observerStack.length) $5e3802645cc19319$var$observerStack[$5e3802645cc19319$var$observerStack.length - 1].disconnect();
|
|
749
|
+
walk(root);
|
|
750
|
+
let observer = new MutationObserver((changes) => {
|
|
751
|
+
for (let change of changes) {
|
|
752
|
+
if (change.type !== "childList") continue;
|
|
753
|
+
if (change.target.isConnected && ![...visibleNodes, ...hiddenNodes].some((node) => $d4ee10de306f2510$export$4282f70798064fe0(node, change.target))) {
|
|
754
|
+
for (let node of change.addedNodes) if ((node instanceof HTMLElement || node instanceof SVGElement) && (node.dataset.liveAnnouncer === "true" || node.dataset.reactAriaTopLayer === "true")) visibleNodes.add(node);
|
|
755
|
+
else if (node instanceof Element) walk(node);
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
});
|
|
759
|
+
observer.observe(root, {
|
|
760
|
+
childList: true,
|
|
761
|
+
subtree: true
|
|
762
|
+
});
|
|
763
|
+
let observerWrapper = {
|
|
764
|
+
visibleNodes,
|
|
765
|
+
hiddenNodes,
|
|
766
|
+
observe() {
|
|
767
|
+
observer.observe(root, {
|
|
768
|
+
childList: true,
|
|
769
|
+
subtree: true
|
|
770
|
+
});
|
|
771
|
+
},
|
|
772
|
+
disconnect() {
|
|
773
|
+
observer.disconnect();
|
|
774
|
+
}
|
|
775
|
+
};
|
|
776
|
+
$5e3802645cc19319$var$observerStack.push(observerWrapper);
|
|
777
|
+
return () => {
|
|
778
|
+
observer.disconnect();
|
|
779
|
+
for (let node of hiddenNodes) {
|
|
780
|
+
let count = $5e3802645cc19319$var$refCountMap.get(node);
|
|
781
|
+
if (count == null) continue;
|
|
782
|
+
if (count === 1) {
|
|
783
|
+
setHidden(node, false);
|
|
784
|
+
$5e3802645cc19319$var$refCountMap.delete(node);
|
|
785
|
+
} else $5e3802645cc19319$var$refCountMap.set(node, count - 1);
|
|
786
|
+
}
|
|
787
|
+
if (observerWrapper === $5e3802645cc19319$var$observerStack[$5e3802645cc19319$var$observerStack.length - 1]) {
|
|
788
|
+
$5e3802645cc19319$var$observerStack.pop();
|
|
789
|
+
if ($5e3802645cc19319$var$observerStack.length) $5e3802645cc19319$var$observerStack[$5e3802645cc19319$var$observerStack.length - 1].observe();
|
|
790
|
+
} else $5e3802645cc19319$var$observerStack.splice($5e3802645cc19319$var$observerStack.indexOf(observerWrapper), 1);
|
|
791
|
+
};
|
|
792
|
+
}
|
|
793
|
+
function $5e3802645cc19319$export$1020fa7f77e17884(element) {
|
|
794
|
+
let observer = $5e3802645cc19319$var$observerStack[$5e3802645cc19319$var$observerStack.length - 1];
|
|
795
|
+
if (observer && !observer.visibleNodes.has(element)) {
|
|
796
|
+
observer.visibleNodes.add(element);
|
|
797
|
+
return () => {
|
|
798
|
+
observer.visibleNodes.delete(element);
|
|
799
|
+
};
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
//#endregion
|
|
803
|
+
//#region ../../node_modules/.bun/@react-aria+overlays@3.31.1+67f6792bdf102c28/node_modules/@react-aria/overlays/dist/usePopover.mjs
|
|
804
|
+
function $f2f8a6077418541e$export$542a6fd13ac93354(props, state) {
|
|
805
|
+
let { triggerRef, popoverRef, groupRef, isNonModal, isKeyboardDismissDisabled, shouldCloseOnInteractOutside, ...otherProps } = props;
|
|
806
|
+
let isSubmenu = otherProps["trigger"] === "SubmenuTrigger";
|
|
807
|
+
let { overlayProps, underlayProps } = $a11501f3d1d39e6c$export$ea8f71083e90600f({
|
|
808
|
+
isOpen: state.isOpen,
|
|
809
|
+
onClose: state.close,
|
|
810
|
+
shouldCloseOnBlur: true,
|
|
811
|
+
isDismissable: !isNonModal || isSubmenu,
|
|
812
|
+
isKeyboardDismissDisabled,
|
|
813
|
+
shouldCloseOnInteractOutside
|
|
814
|
+
}, groupRef !== null && groupRef !== void 0 ? groupRef : popoverRef);
|
|
815
|
+
let { overlayProps: positionProps, arrowProps, placement, triggerAnchorPoint: origin } = $2a41e45df1593e64$export$d39e1813b3bdd0e1({
|
|
816
|
+
...otherProps,
|
|
817
|
+
targetRef: triggerRef,
|
|
818
|
+
overlayRef: popoverRef,
|
|
819
|
+
isOpen: state.isOpen,
|
|
820
|
+
onClose: isNonModal && !isSubmenu ? state.close : null
|
|
821
|
+
});
|
|
822
|
+
$49c51c25361d4cd2$export$ee0f7cc6afcd1c18({ isDisabled: isNonModal || !state.isOpen });
|
|
823
|
+
useEffect(() => {
|
|
824
|
+
if (state.isOpen && popoverRef.current) {
|
|
825
|
+
var _groupRef_current, _groupRef_current1;
|
|
826
|
+
if (isNonModal) return $5e3802645cc19319$export$1020fa7f77e17884((_groupRef_current = groupRef === null || groupRef === void 0 ? void 0 : groupRef.current) !== null && _groupRef_current !== void 0 ? _groupRef_current : popoverRef.current);
|
|
827
|
+
else return $5e3802645cc19319$export$1c3ebcada18427bf([(_groupRef_current1 = groupRef === null || groupRef === void 0 ? void 0 : groupRef.current) !== null && _groupRef_current1 !== void 0 ? _groupRef_current1 : popoverRef.current], { shouldUseInert: true });
|
|
828
|
+
}
|
|
829
|
+
}, [
|
|
830
|
+
isNonModal,
|
|
831
|
+
state.isOpen,
|
|
832
|
+
popoverRef,
|
|
833
|
+
groupRef
|
|
834
|
+
]);
|
|
835
|
+
return {
|
|
836
|
+
popoverProps: $3ef42575df84b30b$export$9d1611c77c2fe928(overlayProps, positionProps),
|
|
837
|
+
arrowProps,
|
|
838
|
+
underlayProps,
|
|
839
|
+
placement,
|
|
840
|
+
triggerAnchorPoint: origin
|
|
841
|
+
};
|
|
842
|
+
}
|
|
843
|
+
//#endregion
|
|
844
|
+
//#region ../../node_modules/.bun/@react-aria+overlays@3.31.1+67f6792bdf102c28/node_modules/@react-aria/overlays/dist/Overlay.mjs
|
|
845
|
+
const $337b884510726a0d$export$a2200b96afd16271 = /*#__PURE__*/ $HgANd$react.createContext(null);
|
|
846
|
+
function $337b884510726a0d$export$c6fdb837b070b4ff(props) {
|
|
847
|
+
let isSSR = $b5e257d569688ac6$export$535bd6ca7f90a273();
|
|
848
|
+
let { portalContainer = isSSR ? null : document.body, isExiting } = props;
|
|
849
|
+
let [contain, setContain] = useState(false);
|
|
850
|
+
let contextValue = useMemo(() => ({
|
|
851
|
+
contain,
|
|
852
|
+
setContain
|
|
853
|
+
}), [contain, setContain]);
|
|
854
|
+
let { getContainer } = $96b38030c423d352$export$9fc1347d4195ccb3();
|
|
855
|
+
if (!props.portalContainer && getContainer) portalContainer = getContainer();
|
|
856
|
+
if (!portalContainer) return null;
|
|
857
|
+
let contents = props.children;
|
|
858
|
+
if (!props.disableFocusManagement) contents = /*#__PURE__*/ $HgANd$react.createElement($9bf71ea28793e738$export$20e40289641fbbb6, {
|
|
859
|
+
restoreFocus: true,
|
|
860
|
+
contain: (props.shouldContainFocus || contain) && !isExiting
|
|
861
|
+
}, contents);
|
|
862
|
+
contents = /*#__PURE__*/ $HgANd$react.createElement($337b884510726a0d$export$a2200b96afd16271.Provider, { value: contextValue }, /*#__PURE__*/ $HgANd$react.createElement($f1ab8c75478c6f73$export$cf75428e0b9ed1ea, null, contents));
|
|
863
|
+
return /*#__PURE__*/ $4AOtR$reactdom.createPortal(contents, portalContainer);
|
|
864
|
+
}
|
|
865
|
+
function $337b884510726a0d$export$14c98a7594375490() {
|
|
866
|
+
let ctx = useContext($337b884510726a0d$export$a2200b96afd16271);
|
|
867
|
+
let setContain = ctx === null || ctx === void 0 ? void 0 : ctx.setContain;
|
|
868
|
+
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
869
|
+
setContain === null || setContain === void 0 || setContain(true);
|
|
870
|
+
}, [setContain]);
|
|
871
|
+
}
|
|
872
|
+
//#endregion
|
|
873
|
+
//#region ../../node_modules/.bun/@react-aria+selection@3.27.1+67f6792bdf102c28/node_modules/@react-aria/selection/dist/utils.mjs
|
|
874
|
+
function $feb5ffebff200149$export$d3e3bd3e26688c04(e) {
|
|
875
|
+
return $c87311424ea30a05$export$e1865c3bedcd822b() ? e.altKey : e.ctrlKey;
|
|
876
|
+
}
|
|
877
|
+
function $feb5ffebff200149$export$c3d8340acf92597f(collectionRef, key) {
|
|
878
|
+
var _collectionRef_current, _collectionRef_current1;
|
|
879
|
+
let selector = `[data-key="${CSS.escape(String(key))}"]`;
|
|
880
|
+
let collection = (_collectionRef_current = collectionRef.current) === null || _collectionRef_current === void 0 ? void 0 : _collectionRef_current.dataset.collection;
|
|
881
|
+
if (collection) selector = `[data-collection="${CSS.escape(collection)}"]${selector}`;
|
|
882
|
+
return (_collectionRef_current1 = collectionRef.current) === null || _collectionRef_current1 === void 0 ? void 0 : _collectionRef_current1.querySelector(selector);
|
|
883
|
+
}
|
|
884
|
+
const $feb5ffebff200149$var$collectionMap = /* @__PURE__ */ new WeakMap();
|
|
885
|
+
function $feb5ffebff200149$export$881eb0d9f3605d9d(collection) {
|
|
886
|
+
let id = $bdb11010cef70236$export$f680877a34711e37();
|
|
887
|
+
$feb5ffebff200149$var$collectionMap.set(collection, id);
|
|
888
|
+
return id;
|
|
889
|
+
}
|
|
890
|
+
function $feb5ffebff200149$export$6aeb1680a0ae8741(collection) {
|
|
891
|
+
return $feb5ffebff200149$var$collectionMap.get(collection);
|
|
892
|
+
}
|
|
893
|
+
//#endregion
|
|
894
|
+
//#region ../../node_modules/.bun/@react-aria+selection@3.27.1+67f6792bdf102c28/node_modules/@react-aria/selection/dist/useTypeSelect.mjs
|
|
895
|
+
/**
|
|
896
|
+
* Controls how long to wait before clearing the typeahead buffer.
|
|
897
|
+
*/ const $fb3050f43d946246$var$TYPEAHEAD_DEBOUNCE_WAIT_MS = 1e3;
|
|
898
|
+
function $fb3050f43d946246$export$e32c88dfddc6e1d8(options) {
|
|
899
|
+
let { keyboardDelegate, selectionManager, onTypeSelect } = options;
|
|
900
|
+
let state = useRef({
|
|
901
|
+
search: "",
|
|
902
|
+
timeout: void 0
|
|
903
|
+
}).current;
|
|
904
|
+
let onKeyDown = (e) => {
|
|
905
|
+
let character = $fb3050f43d946246$var$getStringForKey(e.key);
|
|
906
|
+
if (!character || e.ctrlKey || e.metaKey || !$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, e.target) || state.search.length === 0 && character === " ") return;
|
|
907
|
+
if (character === " " && state.search.trim().length > 0) {
|
|
908
|
+
e.preventDefault();
|
|
909
|
+
if (!("continuePropagation" in e)) e.stopPropagation();
|
|
910
|
+
}
|
|
911
|
+
state.search += character;
|
|
912
|
+
if (keyboardDelegate.getKeyForSearch != null) {
|
|
913
|
+
let key = keyboardDelegate.getKeyForSearch(state.search, selectionManager.focusedKey);
|
|
914
|
+
if (key == null) key = keyboardDelegate.getKeyForSearch(state.search);
|
|
915
|
+
if (key != null) {
|
|
916
|
+
selectionManager.setFocusedKey(key);
|
|
917
|
+
if (onTypeSelect) onTypeSelect(key);
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
clearTimeout(state.timeout);
|
|
921
|
+
state.timeout = setTimeout(() => {
|
|
922
|
+
state.search = "";
|
|
923
|
+
}, $fb3050f43d946246$var$TYPEAHEAD_DEBOUNCE_WAIT_MS);
|
|
924
|
+
};
|
|
925
|
+
return { typeSelectProps: { onKeyDownCapture: keyboardDelegate.getKeyForSearch ? onKeyDown : void 0 } };
|
|
926
|
+
}
|
|
927
|
+
function $fb3050f43d946246$var$getStringForKey(key) {
|
|
928
|
+
if (key.length === 1 || !/^[A-Z]/i.test(key)) return key;
|
|
929
|
+
return "";
|
|
930
|
+
}
|
|
931
|
+
//#endregion
|
|
932
|
+
//#region ../../node_modules/.bun/@react-aria+selection@3.27.1+67f6792bdf102c28/node_modules/@react-aria/selection/dist/useSelectableCollection.mjs
|
|
933
|
+
function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
934
|
+
let { selectionManager: manager, keyboardDelegate: delegate, ref, autoFocus = false, shouldFocusWrap = false, disallowEmptySelection = false, disallowSelectAll = false, escapeKeyBehavior = "clearSelection", selectOnFocus = manager.selectionBehavior === "replace", disallowTypeAhead = false, shouldUseVirtualFocus, allowsTabNavigation = false, scrollRef = ref, linkBehavior = "action" } = options;
|
|
935
|
+
let { direction } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
936
|
+
let router = $ea8dcbcb9ea1b556$export$9a302a45f65d0572();
|
|
937
|
+
let onKeyDown = (e) => {
|
|
938
|
+
if (e.altKey && e.key === "Tab") e.preventDefault();
|
|
939
|
+
if (!ref.current || !$d4ee10de306f2510$export$4282f70798064fe0(ref.current, e.target)) return;
|
|
940
|
+
const navigateToKey = (key, childFocus) => {
|
|
941
|
+
if (key != null) {
|
|
942
|
+
if (manager.isLink(key) && linkBehavior === "selection" && selectOnFocus && !$feb5ffebff200149$export$d3e3bd3e26688c04(e)) {
|
|
943
|
+
flushSync(() => {
|
|
944
|
+
manager.setFocusedKey(key, childFocus);
|
|
945
|
+
});
|
|
946
|
+
let item = $feb5ffebff200149$export$c3d8340acf92597f(ref, key);
|
|
947
|
+
let itemProps = manager.getItemProps(key);
|
|
948
|
+
if (item) router.open(item, e, itemProps.href, itemProps.routerOptions);
|
|
949
|
+
return;
|
|
950
|
+
}
|
|
951
|
+
manager.setFocusedKey(key, childFocus);
|
|
952
|
+
if (manager.isLink(key) && linkBehavior === "override") return;
|
|
953
|
+
if (e.shiftKey && manager.selectionMode === "multiple") manager.extendSelection(key);
|
|
954
|
+
else if (selectOnFocus && !$feb5ffebff200149$export$d3e3bd3e26688c04(e)) manager.replaceSelection(key);
|
|
955
|
+
}
|
|
956
|
+
};
|
|
957
|
+
switch (e.key) {
|
|
958
|
+
case "ArrowDown":
|
|
959
|
+
if (delegate.getKeyBelow) {
|
|
960
|
+
var _delegate_getKeyBelow, _delegate_getFirstKey, _delegate_getFirstKey1;
|
|
961
|
+
let nextKey = manager.focusedKey != null ? (_delegate_getKeyBelow = delegate.getKeyBelow) === null || _delegate_getKeyBelow === void 0 ? void 0 : _delegate_getKeyBelow.call(delegate, manager.focusedKey) : (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate);
|
|
962
|
+
if (nextKey == null && shouldFocusWrap) nextKey = (_delegate_getFirstKey1 = delegate.getFirstKey) === null || _delegate_getFirstKey1 === void 0 ? void 0 : _delegate_getFirstKey1.call(delegate, manager.focusedKey);
|
|
963
|
+
if (nextKey != null) {
|
|
964
|
+
e.preventDefault();
|
|
965
|
+
navigateToKey(nextKey);
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
break;
|
|
969
|
+
case "ArrowUp":
|
|
970
|
+
if (delegate.getKeyAbove) {
|
|
971
|
+
var _delegate_getKeyAbove, _delegate_getLastKey, _delegate_getLastKey1;
|
|
972
|
+
let nextKey = manager.focusedKey != null ? (_delegate_getKeyAbove = delegate.getKeyAbove) === null || _delegate_getKeyAbove === void 0 ? void 0 : _delegate_getKeyAbove.call(delegate, manager.focusedKey) : (_delegate_getLastKey = delegate.getLastKey) === null || _delegate_getLastKey === void 0 ? void 0 : _delegate_getLastKey.call(delegate);
|
|
973
|
+
if (nextKey == null && shouldFocusWrap) nextKey = (_delegate_getLastKey1 = delegate.getLastKey) === null || _delegate_getLastKey1 === void 0 ? void 0 : _delegate_getLastKey1.call(delegate, manager.focusedKey);
|
|
974
|
+
if (nextKey != null) {
|
|
975
|
+
e.preventDefault();
|
|
976
|
+
navigateToKey(nextKey);
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
break;
|
|
980
|
+
case "ArrowLeft":
|
|
981
|
+
if (delegate.getKeyLeftOf) {
|
|
982
|
+
var _delegate_getKeyLeftOf, _delegate_getFirstKey2, _delegate_getLastKey2;
|
|
983
|
+
let nextKey = manager.focusedKey != null ? (_delegate_getKeyLeftOf = delegate.getKeyLeftOf) === null || _delegate_getKeyLeftOf === void 0 ? void 0 : _delegate_getKeyLeftOf.call(delegate, manager.focusedKey) : null;
|
|
984
|
+
if (nextKey == null && shouldFocusWrap) nextKey = direction === "rtl" ? (_delegate_getFirstKey2 = delegate.getFirstKey) === null || _delegate_getFirstKey2 === void 0 ? void 0 : _delegate_getFirstKey2.call(delegate, manager.focusedKey) : (_delegate_getLastKey2 = delegate.getLastKey) === null || _delegate_getLastKey2 === void 0 ? void 0 : _delegate_getLastKey2.call(delegate, manager.focusedKey);
|
|
985
|
+
if (nextKey != null) {
|
|
986
|
+
e.preventDefault();
|
|
987
|
+
navigateToKey(nextKey, direction === "rtl" ? "first" : "last");
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
break;
|
|
991
|
+
case "ArrowRight":
|
|
992
|
+
if (delegate.getKeyRightOf) {
|
|
993
|
+
var _delegate_getKeyRightOf, _delegate_getLastKey3, _delegate_getFirstKey3;
|
|
994
|
+
let nextKey = manager.focusedKey != null ? (_delegate_getKeyRightOf = delegate.getKeyRightOf) === null || _delegate_getKeyRightOf === void 0 ? void 0 : _delegate_getKeyRightOf.call(delegate, manager.focusedKey) : null;
|
|
995
|
+
if (nextKey == null && shouldFocusWrap) nextKey = direction === "rtl" ? (_delegate_getLastKey3 = delegate.getLastKey) === null || _delegate_getLastKey3 === void 0 ? void 0 : _delegate_getLastKey3.call(delegate, manager.focusedKey) : (_delegate_getFirstKey3 = delegate.getFirstKey) === null || _delegate_getFirstKey3 === void 0 ? void 0 : _delegate_getFirstKey3.call(delegate, manager.focusedKey);
|
|
996
|
+
if (nextKey != null) {
|
|
997
|
+
e.preventDefault();
|
|
998
|
+
navigateToKey(nextKey, direction === "rtl" ? "last" : "first");
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
break;
|
|
1002
|
+
case "Home":
|
|
1003
|
+
if (delegate.getFirstKey) {
|
|
1004
|
+
if (manager.focusedKey === null && e.shiftKey) return;
|
|
1005
|
+
e.preventDefault();
|
|
1006
|
+
let firstKey = delegate.getFirstKey(manager.focusedKey, $21f1aa98acb08317$export$16792effe837dba3(e));
|
|
1007
|
+
manager.setFocusedKey(firstKey);
|
|
1008
|
+
if (firstKey != null) {
|
|
1009
|
+
if ($21f1aa98acb08317$export$16792effe837dba3(e) && e.shiftKey && manager.selectionMode === "multiple") manager.extendSelection(firstKey);
|
|
1010
|
+
else if (selectOnFocus) manager.replaceSelection(firstKey);
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
break;
|
|
1014
|
+
case "End":
|
|
1015
|
+
if (delegate.getLastKey) {
|
|
1016
|
+
if (manager.focusedKey === null && e.shiftKey) return;
|
|
1017
|
+
e.preventDefault();
|
|
1018
|
+
let lastKey = delegate.getLastKey(manager.focusedKey, $21f1aa98acb08317$export$16792effe837dba3(e));
|
|
1019
|
+
manager.setFocusedKey(lastKey);
|
|
1020
|
+
if (lastKey != null) {
|
|
1021
|
+
if ($21f1aa98acb08317$export$16792effe837dba3(e) && e.shiftKey && manager.selectionMode === "multiple") manager.extendSelection(lastKey);
|
|
1022
|
+
else if (selectOnFocus) manager.replaceSelection(lastKey);
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1025
|
+
break;
|
|
1026
|
+
case "PageDown":
|
|
1027
|
+
if (delegate.getKeyPageBelow && manager.focusedKey != null) {
|
|
1028
|
+
let nextKey = delegate.getKeyPageBelow(manager.focusedKey);
|
|
1029
|
+
if (nextKey != null) {
|
|
1030
|
+
e.preventDefault();
|
|
1031
|
+
navigateToKey(nextKey);
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
break;
|
|
1035
|
+
case "PageUp":
|
|
1036
|
+
if (delegate.getKeyPageAbove && manager.focusedKey != null) {
|
|
1037
|
+
let nextKey = delegate.getKeyPageAbove(manager.focusedKey);
|
|
1038
|
+
if (nextKey != null) {
|
|
1039
|
+
e.preventDefault();
|
|
1040
|
+
navigateToKey(nextKey);
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
break;
|
|
1044
|
+
case "a":
|
|
1045
|
+
if ($21f1aa98acb08317$export$16792effe837dba3(e) && manager.selectionMode === "multiple" && disallowSelectAll !== true) {
|
|
1046
|
+
e.preventDefault();
|
|
1047
|
+
manager.selectAll();
|
|
1048
|
+
}
|
|
1049
|
+
break;
|
|
1050
|
+
case "Escape":
|
|
1051
|
+
if (escapeKeyBehavior === "clearSelection" && !disallowEmptySelection && manager.selectedKeys.size !== 0) {
|
|
1052
|
+
e.stopPropagation();
|
|
1053
|
+
e.preventDefault();
|
|
1054
|
+
manager.clearSelection();
|
|
1055
|
+
}
|
|
1056
|
+
break;
|
|
1057
|
+
case "Tab": if (!allowsTabNavigation) {
|
|
1058
|
+
if (e.shiftKey) ref.current.focus();
|
|
1059
|
+
else {
|
|
1060
|
+
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(ref.current, { tabbable: true });
|
|
1061
|
+
let next = void 0;
|
|
1062
|
+
let last;
|
|
1063
|
+
do {
|
|
1064
|
+
last = walker.lastChild();
|
|
1065
|
+
if (last) next = last;
|
|
1066
|
+
} while (last);
|
|
1067
|
+
if (next && (!$d4ee10de306f2510$export$4282f70798064fe0(next, document.activeElement) || document.activeElement && !$b4b717babfbb907b$export$bebd5a1431fec25d(document.activeElement))) $7215afc6de606d6b$export$de79e2c695e052f3(next);
|
|
1068
|
+
}
|
|
1069
|
+
break;
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1072
|
+
};
|
|
1073
|
+
let scrollPos = useRef({
|
|
1074
|
+
top: 0,
|
|
1075
|
+
left: 0
|
|
1076
|
+
});
|
|
1077
|
+
$e9faafb641e167db$export$90fc3a17d93f704c(scrollRef, "scroll", () => {
|
|
1078
|
+
var _scrollRef_current, _scrollRef_current1;
|
|
1079
|
+
var _scrollRef_current_scrollTop, _scrollRef_current_scrollLeft;
|
|
1080
|
+
scrollPos.current = {
|
|
1081
|
+
top: (_scrollRef_current_scrollTop = (_scrollRef_current = scrollRef.current) === null || _scrollRef_current === void 0 ? void 0 : _scrollRef_current.scrollTop) !== null && _scrollRef_current_scrollTop !== void 0 ? _scrollRef_current_scrollTop : 0,
|
|
1082
|
+
left: (_scrollRef_current_scrollLeft = (_scrollRef_current1 = scrollRef.current) === null || _scrollRef_current1 === void 0 ? void 0 : _scrollRef_current1.scrollLeft) !== null && _scrollRef_current_scrollLeft !== void 0 ? _scrollRef_current_scrollLeft : 0
|
|
1083
|
+
};
|
|
1084
|
+
});
|
|
1085
|
+
let onFocus = (e) => {
|
|
1086
|
+
if (manager.isFocused) {
|
|
1087
|
+
if (!$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, e.target)) manager.setFocused(false);
|
|
1088
|
+
return;
|
|
1089
|
+
}
|
|
1090
|
+
if (!$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, e.target)) return;
|
|
1091
|
+
manager.setFocused(true);
|
|
1092
|
+
if (manager.focusedKey == null) {
|
|
1093
|
+
var _delegate_getLastKey, _delegate_getFirstKey;
|
|
1094
|
+
let navigateToKey = (key) => {
|
|
1095
|
+
if (key != null) {
|
|
1096
|
+
manager.setFocusedKey(key);
|
|
1097
|
+
if (selectOnFocus && !manager.isSelected(key)) manager.replaceSelection(key);
|
|
1098
|
+
}
|
|
1099
|
+
};
|
|
1100
|
+
let relatedTarget = e.relatedTarget;
|
|
1101
|
+
var _manager_lastSelectedKey, _manager_firstSelectedKey;
|
|
1102
|
+
if (relatedTarget && e.currentTarget.compareDocumentPosition(relatedTarget) & Node.DOCUMENT_POSITION_FOLLOWING) navigateToKey((_manager_lastSelectedKey = manager.lastSelectedKey) !== null && _manager_lastSelectedKey !== void 0 ? _manager_lastSelectedKey : (_delegate_getLastKey = delegate.getLastKey) === null || _delegate_getLastKey === void 0 ? void 0 : _delegate_getLastKey.call(delegate));
|
|
1103
|
+
else navigateToKey((_manager_firstSelectedKey = manager.firstSelectedKey) !== null && _manager_firstSelectedKey !== void 0 ? _manager_firstSelectedKey : (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate));
|
|
1104
|
+
} else if (scrollRef.current) {
|
|
1105
|
+
scrollRef.current.scrollTop = scrollPos.current.top;
|
|
1106
|
+
scrollRef.current.scrollLeft = scrollPos.current.left;
|
|
1107
|
+
}
|
|
1108
|
+
if (manager.focusedKey != null && scrollRef.current) {
|
|
1109
|
+
let element = $feb5ffebff200149$export$c3d8340acf92597f(ref, manager.focusedKey);
|
|
1110
|
+
if (element instanceof HTMLElement) {
|
|
1111
|
+
if (!$d4ee10de306f2510$export$4282f70798064fe0(element, document.activeElement) && !shouldUseVirtualFocus) $7215afc6de606d6b$export$de79e2c695e052f3(element);
|
|
1112
|
+
if ($507fabe10e71c6fb$export$630ff653c5ada6a9() === "keyboard") $2f04cbc44ee30ce0$export$c826860796309d1b(element, { containingElement: ref.current });
|
|
1113
|
+
}
|
|
1114
|
+
}
|
|
1115
|
+
};
|
|
1116
|
+
let onBlur = (e) => {
|
|
1117
|
+
if (!$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, e.relatedTarget)) manager.setFocused(false);
|
|
1118
|
+
};
|
|
1119
|
+
let shouldVirtualFocusFirst = useRef(false);
|
|
1120
|
+
$e9faafb641e167db$export$90fc3a17d93f704c(ref, $5671b20cf9b562b2$export$831c820ad60f9d12, !shouldUseVirtualFocus ? void 0 : (e) => {
|
|
1121
|
+
let { detail } = e;
|
|
1122
|
+
e.stopPropagation();
|
|
1123
|
+
manager.setFocused(true);
|
|
1124
|
+
if ((detail === null || detail === void 0 ? void 0 : detail.focusStrategy) === "first") shouldVirtualFocusFirst.current = true;
|
|
1125
|
+
});
|
|
1126
|
+
$ca9b37712f007381$export$72ef708ab07251f1(() => {
|
|
1127
|
+
if (shouldVirtualFocusFirst.current) {
|
|
1128
|
+
var _delegate_getFirstKey;
|
|
1129
|
+
var _delegate_getFirstKey1;
|
|
1130
|
+
let keyToFocus = (_delegate_getFirstKey1 = (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate)) !== null && _delegate_getFirstKey1 !== void 0 ? _delegate_getFirstKey1 : null;
|
|
1131
|
+
if (keyToFocus == null) {
|
|
1132
|
+
let previousActiveElement = $d4ee10de306f2510$export$cd4e5573fbe2b576();
|
|
1133
|
+
$55f9b1ae81f22853$export$76e4e37e5339496d(ref.current);
|
|
1134
|
+
$55f9b1ae81f22853$export$2b35b76d2e30e129(previousActiveElement, null);
|
|
1135
|
+
if (manager.collection.size > 0) shouldVirtualFocusFirst.current = false;
|
|
1136
|
+
} else {
|
|
1137
|
+
manager.setFocusedKey(keyToFocus);
|
|
1138
|
+
shouldVirtualFocusFirst.current = false;
|
|
1139
|
+
}
|
|
1140
|
+
}
|
|
1141
|
+
}, [manager.collection]);
|
|
1142
|
+
$ca9b37712f007381$export$72ef708ab07251f1(() => {
|
|
1143
|
+
if (manager.collection.size > 0) shouldVirtualFocusFirst.current = false;
|
|
1144
|
+
}, [manager.focusedKey]);
|
|
1145
|
+
$e9faafb641e167db$export$90fc3a17d93f704c(ref, $5671b20cf9b562b2$export$447a38995de2c711, !shouldUseVirtualFocus ? void 0 : (e) => {
|
|
1146
|
+
var _e_detail;
|
|
1147
|
+
e.stopPropagation();
|
|
1148
|
+
manager.setFocused(false);
|
|
1149
|
+
if ((_e_detail = e.detail) === null || _e_detail === void 0 ? void 0 : _e_detail.clearFocusKey) manager.setFocusedKey(null);
|
|
1150
|
+
});
|
|
1151
|
+
const autoFocusRef = useRef(autoFocus);
|
|
1152
|
+
const didAutoFocusRef = useRef(false);
|
|
1153
|
+
useEffect(() => {
|
|
1154
|
+
if (autoFocusRef.current) {
|
|
1155
|
+
var _delegate_getFirstKey, _delegate_getLastKey;
|
|
1156
|
+
let focusedKey = null;
|
|
1157
|
+
var _delegate_getFirstKey1;
|
|
1158
|
+
if (autoFocus === "first") focusedKey = (_delegate_getFirstKey1 = (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate)) !== null && _delegate_getFirstKey1 !== void 0 ? _delegate_getFirstKey1 : null;
|
|
1159
|
+
var _delegate_getLastKey1;
|
|
1160
|
+
if (autoFocus === "last") focusedKey = (_delegate_getLastKey1 = (_delegate_getLastKey = delegate.getLastKey) === null || _delegate_getLastKey === void 0 ? void 0 : _delegate_getLastKey.call(delegate)) !== null && _delegate_getLastKey1 !== void 0 ? _delegate_getLastKey1 : null;
|
|
1161
|
+
let selectedKeys = manager.selectedKeys;
|
|
1162
|
+
if (selectedKeys.size) {
|
|
1163
|
+
for (let key of selectedKeys) if (manager.canSelectItem(key)) {
|
|
1164
|
+
focusedKey = key;
|
|
1165
|
+
break;
|
|
1166
|
+
}
|
|
1167
|
+
}
|
|
1168
|
+
manager.setFocused(true);
|
|
1169
|
+
manager.setFocusedKey(focusedKey);
|
|
1170
|
+
if (focusedKey == null && !shouldUseVirtualFocus && ref.current) $3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current);
|
|
1171
|
+
if (manager.collection.size > 0) {
|
|
1172
|
+
autoFocusRef.current = false;
|
|
1173
|
+
didAutoFocusRef.current = true;
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
1176
|
+
});
|
|
1177
|
+
let lastFocusedKey = useRef(manager.focusedKey);
|
|
1178
|
+
let raf = useRef(null);
|
|
1179
|
+
useEffect(() => {
|
|
1180
|
+
if (manager.isFocused && manager.focusedKey != null && (manager.focusedKey !== lastFocusedKey.current || didAutoFocusRef.current) && scrollRef.current && ref.current) {
|
|
1181
|
+
let modality = $507fabe10e71c6fb$export$630ff653c5ada6a9();
|
|
1182
|
+
let element = $feb5ffebff200149$export$c3d8340acf92597f(ref, manager.focusedKey);
|
|
1183
|
+
if (!(element instanceof HTMLElement)) return;
|
|
1184
|
+
if (modality === "keyboard" || didAutoFocusRef.current) {
|
|
1185
|
+
if (raf.current) cancelAnimationFrame(raf.current);
|
|
1186
|
+
raf.current = requestAnimationFrame(() => {
|
|
1187
|
+
if (scrollRef.current) {
|
|
1188
|
+
$2f04cbc44ee30ce0$export$53a0910f038337bd(scrollRef.current, element);
|
|
1189
|
+
if (modality !== "virtual") $2f04cbc44ee30ce0$export$c826860796309d1b(element, { containingElement: ref.current });
|
|
1190
|
+
}
|
|
1191
|
+
});
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
if (!shouldUseVirtualFocus && manager.isFocused && manager.focusedKey == null && lastFocusedKey.current != null && ref.current) $3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current);
|
|
1195
|
+
lastFocusedKey.current = manager.focusedKey;
|
|
1196
|
+
didAutoFocusRef.current = false;
|
|
1197
|
+
});
|
|
1198
|
+
useEffect(() => {
|
|
1199
|
+
return () => {
|
|
1200
|
+
if (raf.current) cancelAnimationFrame(raf.current);
|
|
1201
|
+
};
|
|
1202
|
+
}, []);
|
|
1203
|
+
$e9faafb641e167db$export$90fc3a17d93f704c(ref, "react-aria-focus-scope-restore", (e) => {
|
|
1204
|
+
e.preventDefault();
|
|
1205
|
+
manager.setFocused(true);
|
|
1206
|
+
});
|
|
1207
|
+
let handlers = {
|
|
1208
|
+
onKeyDown,
|
|
1209
|
+
onFocus,
|
|
1210
|
+
onBlur,
|
|
1211
|
+
onMouseDown(e) {
|
|
1212
|
+
if (scrollRef.current === e.target) e.preventDefault();
|
|
1213
|
+
}
|
|
1214
|
+
};
|
|
1215
|
+
let { typeSelectProps } = $fb3050f43d946246$export$e32c88dfddc6e1d8({
|
|
1216
|
+
keyboardDelegate: delegate,
|
|
1217
|
+
selectionManager: manager
|
|
1218
|
+
});
|
|
1219
|
+
if (!disallowTypeAhead) handlers = $3ef42575df84b30b$export$9d1611c77c2fe928(typeSelectProps, handlers);
|
|
1220
|
+
let tabIndex = void 0;
|
|
1221
|
+
if (!shouldUseVirtualFocus) tabIndex = manager.focusedKey == null ? 0 : -1;
|
|
1222
|
+
let collectionId = $feb5ffebff200149$export$881eb0d9f3605d9d(manager.collection);
|
|
1223
|
+
return { collectionProps: $3ef42575df84b30b$export$9d1611c77c2fe928(handlers, {
|
|
1224
|
+
tabIndex,
|
|
1225
|
+
"data-collection": collectionId
|
|
1226
|
+
}) };
|
|
1227
|
+
}
|
|
1228
|
+
//#endregion
|
|
1229
|
+
//#region ../../node_modules/.bun/@react-aria+selection@3.27.1+67f6792bdf102c28/node_modules/@react-aria/selection/dist/useSelectableItem.mjs
|
|
1230
|
+
function $880e95eb8b93ba9a$export$ecf600387e221c37(options) {
|
|
1231
|
+
let { id, selectionManager: manager, key, ref, shouldSelectOnPressUp, shouldUseVirtualFocus, focus, isDisabled, onAction, allowsDifferentPressOrigin, linkBehavior = "action" } = options;
|
|
1232
|
+
let router = $ea8dcbcb9ea1b556$export$9a302a45f65d0572();
|
|
1233
|
+
id = $bdb11010cef70236$export$f680877a34711e37(id);
|
|
1234
|
+
let onSelect = (e) => {
|
|
1235
|
+
if (e.pointerType === "keyboard" && $feb5ffebff200149$export$d3e3bd3e26688c04(e)) manager.toggleSelection(key);
|
|
1236
|
+
else {
|
|
1237
|
+
if (manager.selectionMode === "none") return;
|
|
1238
|
+
if (manager.isLink(key)) {
|
|
1239
|
+
if (linkBehavior === "selection" && ref.current) {
|
|
1240
|
+
let itemProps = manager.getItemProps(key);
|
|
1241
|
+
router.open(ref.current, e, itemProps.href, itemProps.routerOptions);
|
|
1242
|
+
manager.setSelectedKeys(manager.selectedKeys);
|
|
1243
|
+
return;
|
|
1244
|
+
} else if (linkBehavior === "override" || linkBehavior === "none") return;
|
|
1245
|
+
}
|
|
1246
|
+
if (manager.selectionMode === "single") if (manager.isSelected(key) && !manager.disallowEmptySelection) manager.toggleSelection(key);
|
|
1247
|
+
else manager.replaceSelection(key);
|
|
1248
|
+
else if (e && e.shiftKey) manager.extendSelection(key);
|
|
1249
|
+
else if (manager.selectionBehavior === "toggle" || e && ($21f1aa98acb08317$export$16792effe837dba3(e) || e.pointerType === "touch" || e.pointerType === "virtual")) manager.toggleSelection(key);
|
|
1250
|
+
else manager.replaceSelection(key);
|
|
1251
|
+
}
|
|
1252
|
+
};
|
|
1253
|
+
useEffect(() => {
|
|
1254
|
+
if (key === manager.focusedKey && manager.isFocused) if (!shouldUseVirtualFocus) {
|
|
1255
|
+
if (focus) focus();
|
|
1256
|
+
else if (document.activeElement !== ref.current && ref.current) $3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current);
|
|
1257
|
+
} else $55f9b1ae81f22853$export$76e4e37e5339496d(ref.current);
|
|
1258
|
+
}, [
|
|
1259
|
+
ref,
|
|
1260
|
+
key,
|
|
1261
|
+
manager.focusedKey,
|
|
1262
|
+
manager.childFocusStrategy,
|
|
1263
|
+
manager.isFocused,
|
|
1264
|
+
shouldUseVirtualFocus
|
|
1265
|
+
]);
|
|
1266
|
+
isDisabled = isDisabled || manager.isDisabled(key);
|
|
1267
|
+
let itemProps = {};
|
|
1268
|
+
if (!shouldUseVirtualFocus && !isDisabled) itemProps = {
|
|
1269
|
+
tabIndex: key === manager.focusedKey ? 0 : -1,
|
|
1270
|
+
onFocus(e) {
|
|
1271
|
+
if (e.target === ref.current) manager.setFocusedKey(key);
|
|
1272
|
+
}
|
|
1273
|
+
};
|
|
1274
|
+
else if (isDisabled) itemProps.onMouseDown = (e) => {
|
|
1275
|
+
e.preventDefault();
|
|
1276
|
+
};
|
|
1277
|
+
useEffect(() => {
|
|
1278
|
+
if (isDisabled && manager.focusedKey === key) manager.setFocusedKey(null);
|
|
1279
|
+
}, [
|
|
1280
|
+
manager,
|
|
1281
|
+
isDisabled,
|
|
1282
|
+
key
|
|
1283
|
+
]);
|
|
1284
|
+
let isLinkOverride = manager.isLink(key) && linkBehavior === "override";
|
|
1285
|
+
let isActionOverride = onAction && options["UNSTABLE_itemBehavior"] === "action";
|
|
1286
|
+
let hasLinkAction = manager.isLink(key) && linkBehavior !== "selection" && linkBehavior !== "none";
|
|
1287
|
+
let allowsSelection = !isDisabled && manager.canSelectItem(key) && !isLinkOverride && !isActionOverride;
|
|
1288
|
+
let allowsActions = (onAction || hasLinkAction) && !isDisabled;
|
|
1289
|
+
let hasPrimaryAction = allowsActions && (manager.selectionBehavior === "replace" ? !allowsSelection : !allowsSelection || manager.isEmpty);
|
|
1290
|
+
let hasSecondaryAction = allowsActions && allowsSelection && manager.selectionBehavior === "replace";
|
|
1291
|
+
let hasAction = hasPrimaryAction || hasSecondaryAction;
|
|
1292
|
+
let modality = useRef(null);
|
|
1293
|
+
let longPressEnabled = hasAction && allowsSelection;
|
|
1294
|
+
let longPressEnabledOnPressStart = useRef(false);
|
|
1295
|
+
let hadPrimaryActionOnPressStart = useRef(false);
|
|
1296
|
+
let collectionItemProps = manager.getItemProps(key);
|
|
1297
|
+
let performAction = (e) => {
|
|
1298
|
+
if (onAction) {
|
|
1299
|
+
var _ref_current;
|
|
1300
|
+
onAction();
|
|
1301
|
+
(_ref_current = ref.current) === null || _ref_current === void 0 || _ref_current.dispatchEvent(new CustomEvent("react-aria-item-action", { bubbles: true }));
|
|
1302
|
+
}
|
|
1303
|
+
if (hasLinkAction && ref.current) router.open(ref.current, e, collectionItemProps.href, collectionItemProps.routerOptions);
|
|
1304
|
+
};
|
|
1305
|
+
let itemPressProps = { ref };
|
|
1306
|
+
if (shouldSelectOnPressUp) {
|
|
1307
|
+
itemPressProps.onPressStart = (e) => {
|
|
1308
|
+
modality.current = e.pointerType;
|
|
1309
|
+
longPressEnabledOnPressStart.current = longPressEnabled;
|
|
1310
|
+
if (e.pointerType === "keyboard" && (!hasAction || $880e95eb8b93ba9a$var$isSelectionKey(e.key))) onSelect(e);
|
|
1311
|
+
};
|
|
1312
|
+
if (!allowsDifferentPressOrigin) itemPressProps.onPress = (e) => {
|
|
1313
|
+
if (hasPrimaryAction || hasSecondaryAction && e.pointerType !== "mouse") {
|
|
1314
|
+
if (e.pointerType === "keyboard" && !$880e95eb8b93ba9a$var$isActionKey(e.key)) return;
|
|
1315
|
+
performAction(e);
|
|
1316
|
+
} else if (e.pointerType !== "keyboard" && allowsSelection) onSelect(e);
|
|
1317
|
+
};
|
|
1318
|
+
else {
|
|
1319
|
+
itemPressProps.onPressUp = hasPrimaryAction ? void 0 : (e) => {
|
|
1320
|
+
if (e.pointerType === "mouse" && allowsSelection) onSelect(e);
|
|
1321
|
+
};
|
|
1322
|
+
itemPressProps.onPress = hasPrimaryAction ? performAction : (e) => {
|
|
1323
|
+
if (e.pointerType !== "keyboard" && e.pointerType !== "mouse" && allowsSelection) onSelect(e);
|
|
1324
|
+
};
|
|
1325
|
+
}
|
|
1326
|
+
} else {
|
|
1327
|
+
itemPressProps.onPressStart = (e) => {
|
|
1328
|
+
modality.current = e.pointerType;
|
|
1329
|
+
longPressEnabledOnPressStart.current = longPressEnabled;
|
|
1330
|
+
hadPrimaryActionOnPressStart.current = hasPrimaryAction;
|
|
1331
|
+
if (allowsSelection && (e.pointerType === "mouse" && !hasPrimaryAction || e.pointerType === "keyboard" && (!allowsActions || $880e95eb8b93ba9a$var$isSelectionKey(e.key)))) onSelect(e);
|
|
1332
|
+
};
|
|
1333
|
+
itemPressProps.onPress = (e) => {
|
|
1334
|
+
if (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && hasAction && $880e95eb8b93ba9a$var$isActionKey(e.key) || e.pointerType === "mouse" && hadPrimaryActionOnPressStart.current) {
|
|
1335
|
+
if (hasAction) performAction(e);
|
|
1336
|
+
else if (allowsSelection) onSelect(e);
|
|
1337
|
+
}
|
|
1338
|
+
};
|
|
1339
|
+
}
|
|
1340
|
+
itemProps["data-collection"] = $feb5ffebff200149$export$6aeb1680a0ae8741(manager.collection);
|
|
1341
|
+
itemProps["data-key"] = key;
|
|
1342
|
+
itemPressProps.preventFocusOnPress = shouldUseVirtualFocus;
|
|
1343
|
+
if (shouldUseVirtualFocus) itemPressProps = $3ef42575df84b30b$export$9d1611c77c2fe928(itemPressProps, {
|
|
1344
|
+
onPressStart(e) {
|
|
1345
|
+
if (e.pointerType !== "touch") {
|
|
1346
|
+
manager.setFocused(true);
|
|
1347
|
+
manager.setFocusedKey(key);
|
|
1348
|
+
}
|
|
1349
|
+
},
|
|
1350
|
+
onPress(e) {
|
|
1351
|
+
if (e.pointerType === "touch") {
|
|
1352
|
+
manager.setFocused(true);
|
|
1353
|
+
manager.setFocusedKey(key);
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1356
|
+
});
|
|
1357
|
+
if (collectionItemProps) {
|
|
1358
|
+
for (let key of [
|
|
1359
|
+
"onPressStart",
|
|
1360
|
+
"onPressEnd",
|
|
1361
|
+
"onPressChange",
|
|
1362
|
+
"onPress",
|
|
1363
|
+
"onPressUp",
|
|
1364
|
+
"onClick"
|
|
1365
|
+
]) if (collectionItemProps[key]) itemPressProps[key] = $ff5963eb1fccf552$export$e08e3b67e392101e(itemPressProps[key], collectionItemProps[key]);
|
|
1366
|
+
}
|
|
1367
|
+
let { pressProps, isPressed } = $f6c31cce2adf654f$export$45712eceda6fad21(itemPressProps);
|
|
1368
|
+
let onDoubleClick = hasSecondaryAction ? (e) => {
|
|
1369
|
+
if (modality.current === "mouse") {
|
|
1370
|
+
e.stopPropagation();
|
|
1371
|
+
e.preventDefault();
|
|
1372
|
+
performAction(e);
|
|
1373
|
+
}
|
|
1374
|
+
} : void 0;
|
|
1375
|
+
let { longPressProps } = $8a26561d2877236e$export$c24ed0104d07eab9({
|
|
1376
|
+
isDisabled: !longPressEnabled,
|
|
1377
|
+
onLongPress(e) {
|
|
1378
|
+
if (e.pointerType === "touch") {
|
|
1379
|
+
onSelect(e);
|
|
1380
|
+
manager.setSelectionBehavior("toggle");
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
|
+
});
|
|
1384
|
+
let onDragStartCapture = (e) => {
|
|
1385
|
+
if (modality.current === "touch" && longPressEnabledOnPressStart.current) e.preventDefault();
|
|
1386
|
+
};
|
|
1387
|
+
let onClick = linkBehavior !== "none" && manager.isLink(key) ? (e) => {
|
|
1388
|
+
if (!$ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening) e.preventDefault();
|
|
1389
|
+
} : void 0;
|
|
1390
|
+
return {
|
|
1391
|
+
itemProps: $3ef42575df84b30b$export$9d1611c77c2fe928(itemProps, allowsSelection || hasPrimaryAction || shouldUseVirtualFocus && !isDisabled ? pressProps : {}, longPressEnabled ? longPressProps : {}, {
|
|
1392
|
+
onDoubleClick,
|
|
1393
|
+
onDragStartCapture,
|
|
1394
|
+
onClick,
|
|
1395
|
+
id
|
|
1396
|
+
}, shouldUseVirtualFocus ? { onMouseDown: (e) => e.preventDefault() } : void 0),
|
|
1397
|
+
isPressed,
|
|
1398
|
+
isSelected: manager.isSelected(key),
|
|
1399
|
+
isFocused: manager.isFocused && manager.focusedKey === key,
|
|
1400
|
+
isDisabled,
|
|
1401
|
+
allowsSelection,
|
|
1402
|
+
hasAction
|
|
1403
|
+
};
|
|
1404
|
+
}
|
|
1405
|
+
function $880e95eb8b93ba9a$var$isActionKey(key) {
|
|
1406
|
+
return key === "Enter";
|
|
1407
|
+
}
|
|
1408
|
+
function $880e95eb8b93ba9a$var$isSelectionKey(key) {
|
|
1409
|
+
return key === " ";
|
|
1410
|
+
}
|
|
1411
|
+
//#endregion
|
|
1412
|
+
//#region ../../node_modules/.bun/@react-aria+selection@3.27.1+67f6792bdf102c28/node_modules/@react-aria/selection/dist/DOMLayoutDelegate.mjs
|
|
1413
|
+
var $657e4dc4a6e88df0$export$8f5ed9ff9f511381 = class {
|
|
1414
|
+
getItemRect(key) {
|
|
1415
|
+
let container = this.ref.current;
|
|
1416
|
+
if (!container) return null;
|
|
1417
|
+
let item = key != null ? $feb5ffebff200149$export$c3d8340acf92597f(this.ref, key) : null;
|
|
1418
|
+
if (!item) return null;
|
|
1419
|
+
let containerRect = container.getBoundingClientRect();
|
|
1420
|
+
let itemRect = item.getBoundingClientRect();
|
|
1421
|
+
return {
|
|
1422
|
+
x: itemRect.left - containerRect.left - container.clientLeft + container.scrollLeft,
|
|
1423
|
+
y: itemRect.top - containerRect.top - container.clientTop + container.scrollTop,
|
|
1424
|
+
width: itemRect.width,
|
|
1425
|
+
height: itemRect.height
|
|
1426
|
+
};
|
|
1427
|
+
}
|
|
1428
|
+
getContentSize() {
|
|
1429
|
+
let container = this.ref.current;
|
|
1430
|
+
var _container_scrollWidth, _container_scrollHeight;
|
|
1431
|
+
return {
|
|
1432
|
+
width: (_container_scrollWidth = container === null || container === void 0 ? void 0 : container.scrollWidth) !== null && _container_scrollWidth !== void 0 ? _container_scrollWidth : 0,
|
|
1433
|
+
height: (_container_scrollHeight = container === null || container === void 0 ? void 0 : container.scrollHeight) !== null && _container_scrollHeight !== void 0 ? _container_scrollHeight : 0
|
|
1434
|
+
};
|
|
1435
|
+
}
|
|
1436
|
+
getVisibleRect() {
|
|
1437
|
+
let container = this.ref.current;
|
|
1438
|
+
var _container_scrollLeft, _container_scrollTop, _container_clientWidth, _container_clientHeight;
|
|
1439
|
+
return {
|
|
1440
|
+
x: (_container_scrollLeft = container === null || container === void 0 ? void 0 : container.scrollLeft) !== null && _container_scrollLeft !== void 0 ? _container_scrollLeft : 0,
|
|
1441
|
+
y: (_container_scrollTop = container === null || container === void 0 ? void 0 : container.scrollTop) !== null && _container_scrollTop !== void 0 ? _container_scrollTop : 0,
|
|
1442
|
+
width: (_container_clientWidth = container === null || container === void 0 ? void 0 : container.clientWidth) !== null && _container_clientWidth !== void 0 ? _container_clientWidth : 0,
|
|
1443
|
+
height: (_container_clientHeight = container === null || container === void 0 ? void 0 : container.clientHeight) !== null && _container_clientHeight !== void 0 ? _container_clientHeight : 0
|
|
1444
|
+
};
|
|
1445
|
+
}
|
|
1446
|
+
constructor(ref) {
|
|
1447
|
+
this.ref = ref;
|
|
1448
|
+
}
|
|
1449
|
+
};
|
|
1450
|
+
//#endregion
|
|
1451
|
+
//#region ../../node_modules/.bun/@react-aria+selection@3.27.1+67f6792bdf102c28/node_modules/@react-aria/selection/dist/ListKeyboardDelegate.mjs
|
|
1452
|
+
var $2a25aae57d74318e$export$a05409b8bb224a5a = class {
|
|
1453
|
+
isDisabled(item) {
|
|
1454
|
+
var _item_props;
|
|
1455
|
+
return this.disabledBehavior === "all" && (((_item_props = item.props) === null || _item_props === void 0 ? void 0 : _item_props.isDisabled) || this.disabledKeys.has(item.key));
|
|
1456
|
+
}
|
|
1457
|
+
findNextNonDisabled(key, getNext) {
|
|
1458
|
+
let nextKey = key;
|
|
1459
|
+
while (nextKey != null) {
|
|
1460
|
+
let item = this.collection.getItem(nextKey);
|
|
1461
|
+
if ((item === null || item === void 0 ? void 0 : item.type) === "item" && !this.isDisabled(item)) return nextKey;
|
|
1462
|
+
nextKey = getNext(nextKey);
|
|
1463
|
+
}
|
|
1464
|
+
return null;
|
|
1465
|
+
}
|
|
1466
|
+
getNextKey(key) {
|
|
1467
|
+
let nextKey = key;
|
|
1468
|
+
nextKey = this.collection.getKeyAfter(nextKey);
|
|
1469
|
+
return this.findNextNonDisabled(nextKey, (key) => this.collection.getKeyAfter(key));
|
|
1470
|
+
}
|
|
1471
|
+
getPreviousKey(key) {
|
|
1472
|
+
let nextKey = key;
|
|
1473
|
+
nextKey = this.collection.getKeyBefore(nextKey);
|
|
1474
|
+
return this.findNextNonDisabled(nextKey, (key) => this.collection.getKeyBefore(key));
|
|
1475
|
+
}
|
|
1476
|
+
findKey(key, nextKey, shouldSkip) {
|
|
1477
|
+
let tempKey = key;
|
|
1478
|
+
let itemRect = this.layoutDelegate.getItemRect(tempKey);
|
|
1479
|
+
if (!itemRect || tempKey == null) return null;
|
|
1480
|
+
let prevRect = itemRect;
|
|
1481
|
+
do {
|
|
1482
|
+
tempKey = nextKey(tempKey);
|
|
1483
|
+
if (tempKey == null) break;
|
|
1484
|
+
itemRect = this.layoutDelegate.getItemRect(tempKey);
|
|
1485
|
+
} while (itemRect && shouldSkip(prevRect, itemRect) && tempKey != null);
|
|
1486
|
+
return tempKey;
|
|
1487
|
+
}
|
|
1488
|
+
isSameRow(prevRect, itemRect) {
|
|
1489
|
+
return prevRect.y === itemRect.y || prevRect.x !== itemRect.x;
|
|
1490
|
+
}
|
|
1491
|
+
isSameColumn(prevRect, itemRect) {
|
|
1492
|
+
return prevRect.x === itemRect.x || prevRect.y !== itemRect.y;
|
|
1493
|
+
}
|
|
1494
|
+
getKeyBelow(key) {
|
|
1495
|
+
if (this.layout === "grid" && this.orientation === "vertical") return this.findKey(key, (key) => this.getNextKey(key), this.isSameRow);
|
|
1496
|
+
else return this.getNextKey(key);
|
|
1497
|
+
}
|
|
1498
|
+
getKeyAbove(key) {
|
|
1499
|
+
if (this.layout === "grid" && this.orientation === "vertical") return this.findKey(key, (key) => this.getPreviousKey(key), this.isSameRow);
|
|
1500
|
+
else return this.getPreviousKey(key);
|
|
1501
|
+
}
|
|
1502
|
+
getNextColumn(key, right) {
|
|
1503
|
+
return right ? this.getPreviousKey(key) : this.getNextKey(key);
|
|
1504
|
+
}
|
|
1505
|
+
getKeyRightOf(key) {
|
|
1506
|
+
let layoutDelegateMethod = this.direction === "ltr" ? "getKeyRightOf" : "getKeyLeftOf";
|
|
1507
|
+
if (this.layoutDelegate[layoutDelegateMethod]) {
|
|
1508
|
+
key = this.layoutDelegate[layoutDelegateMethod](key);
|
|
1509
|
+
return this.findNextNonDisabled(key, (key) => this.layoutDelegate[layoutDelegateMethod](key));
|
|
1510
|
+
}
|
|
1511
|
+
if (this.layout === "grid") if (this.orientation === "vertical") return this.getNextColumn(key, this.direction === "rtl");
|
|
1512
|
+
else return this.findKey(key, (key) => this.getNextColumn(key, this.direction === "rtl"), this.isSameColumn);
|
|
1513
|
+
else if (this.orientation === "horizontal") return this.getNextColumn(key, this.direction === "rtl");
|
|
1514
|
+
return null;
|
|
1515
|
+
}
|
|
1516
|
+
getKeyLeftOf(key) {
|
|
1517
|
+
let layoutDelegateMethod = this.direction === "ltr" ? "getKeyLeftOf" : "getKeyRightOf";
|
|
1518
|
+
if (this.layoutDelegate[layoutDelegateMethod]) {
|
|
1519
|
+
key = this.layoutDelegate[layoutDelegateMethod](key);
|
|
1520
|
+
return this.findNextNonDisabled(key, (key) => this.layoutDelegate[layoutDelegateMethod](key));
|
|
1521
|
+
}
|
|
1522
|
+
if (this.layout === "grid") if (this.orientation === "vertical") return this.getNextColumn(key, this.direction === "ltr");
|
|
1523
|
+
else return this.findKey(key, (key) => this.getNextColumn(key, this.direction === "ltr"), this.isSameColumn);
|
|
1524
|
+
else if (this.orientation === "horizontal") return this.getNextColumn(key, this.direction === "ltr");
|
|
1525
|
+
return null;
|
|
1526
|
+
}
|
|
1527
|
+
getFirstKey() {
|
|
1528
|
+
let key = this.collection.getFirstKey();
|
|
1529
|
+
return this.findNextNonDisabled(key, (key) => this.collection.getKeyAfter(key));
|
|
1530
|
+
}
|
|
1531
|
+
getLastKey() {
|
|
1532
|
+
let key = this.collection.getLastKey();
|
|
1533
|
+
return this.findNextNonDisabled(key, (key) => this.collection.getKeyBefore(key));
|
|
1534
|
+
}
|
|
1535
|
+
getKeyPageAbove(key) {
|
|
1536
|
+
let menu = this.ref.current;
|
|
1537
|
+
let itemRect = this.layoutDelegate.getItemRect(key);
|
|
1538
|
+
if (!itemRect) return null;
|
|
1539
|
+
if (menu && !$cc38e7bd3fc7b213$export$2bb74740c4e19def(menu)) return this.getFirstKey();
|
|
1540
|
+
let nextKey = key;
|
|
1541
|
+
if (this.orientation === "horizontal") {
|
|
1542
|
+
let pageX = Math.max(0, itemRect.x + itemRect.width - this.layoutDelegate.getVisibleRect().width);
|
|
1543
|
+
while (itemRect && itemRect.x > pageX && nextKey != null) {
|
|
1544
|
+
nextKey = this.getKeyAbove(nextKey);
|
|
1545
|
+
itemRect = nextKey == null ? null : this.layoutDelegate.getItemRect(nextKey);
|
|
1546
|
+
}
|
|
1547
|
+
} else {
|
|
1548
|
+
let pageY = Math.max(0, itemRect.y + itemRect.height - this.layoutDelegate.getVisibleRect().height);
|
|
1549
|
+
while (itemRect && itemRect.y > pageY && nextKey != null) {
|
|
1550
|
+
nextKey = this.getKeyAbove(nextKey);
|
|
1551
|
+
itemRect = nextKey == null ? null : this.layoutDelegate.getItemRect(nextKey);
|
|
1552
|
+
}
|
|
1553
|
+
}
|
|
1554
|
+
return nextKey !== null && nextKey !== void 0 ? nextKey : this.getFirstKey();
|
|
1555
|
+
}
|
|
1556
|
+
getKeyPageBelow(key) {
|
|
1557
|
+
let menu = this.ref.current;
|
|
1558
|
+
let itemRect = this.layoutDelegate.getItemRect(key);
|
|
1559
|
+
if (!itemRect) return null;
|
|
1560
|
+
if (menu && !$cc38e7bd3fc7b213$export$2bb74740c4e19def(menu)) return this.getLastKey();
|
|
1561
|
+
let nextKey = key;
|
|
1562
|
+
if (this.orientation === "horizontal") {
|
|
1563
|
+
let pageX = Math.min(this.layoutDelegate.getContentSize().width, itemRect.y - itemRect.width + this.layoutDelegate.getVisibleRect().width);
|
|
1564
|
+
while (itemRect && itemRect.x < pageX && nextKey != null) {
|
|
1565
|
+
nextKey = this.getKeyBelow(nextKey);
|
|
1566
|
+
itemRect = nextKey == null ? null : this.layoutDelegate.getItemRect(nextKey);
|
|
1567
|
+
}
|
|
1568
|
+
} else {
|
|
1569
|
+
let pageY = Math.min(this.layoutDelegate.getContentSize().height, itemRect.y - itemRect.height + this.layoutDelegate.getVisibleRect().height);
|
|
1570
|
+
while (itemRect && itemRect.y < pageY && nextKey != null) {
|
|
1571
|
+
nextKey = this.getKeyBelow(nextKey);
|
|
1572
|
+
itemRect = nextKey == null ? null : this.layoutDelegate.getItemRect(nextKey);
|
|
1573
|
+
}
|
|
1574
|
+
}
|
|
1575
|
+
return nextKey !== null && nextKey !== void 0 ? nextKey : this.getLastKey();
|
|
1576
|
+
}
|
|
1577
|
+
getKeyForSearch(search, fromKey) {
|
|
1578
|
+
if (!this.collator) return null;
|
|
1579
|
+
let collection = this.collection;
|
|
1580
|
+
let key = fromKey || this.getFirstKey();
|
|
1581
|
+
while (key != null) {
|
|
1582
|
+
let item = collection.getItem(key);
|
|
1583
|
+
if (!item) return null;
|
|
1584
|
+
let substring = item.textValue.slice(0, search.length);
|
|
1585
|
+
if (item.textValue && this.collator.compare(substring, search) === 0) return key;
|
|
1586
|
+
key = this.getNextKey(key);
|
|
1587
|
+
}
|
|
1588
|
+
return null;
|
|
1589
|
+
}
|
|
1590
|
+
constructor(...args) {
|
|
1591
|
+
if (args.length === 1) {
|
|
1592
|
+
let opts = args[0];
|
|
1593
|
+
this.collection = opts.collection;
|
|
1594
|
+
this.ref = opts.ref;
|
|
1595
|
+
this.collator = opts.collator;
|
|
1596
|
+
this.disabledKeys = opts.disabledKeys || /* @__PURE__ */ new Set();
|
|
1597
|
+
this.disabledBehavior = opts.disabledBehavior || "all";
|
|
1598
|
+
this.orientation = opts.orientation || "vertical";
|
|
1599
|
+
this.direction = opts.direction;
|
|
1600
|
+
this.layout = opts.layout || "stack";
|
|
1601
|
+
this.layoutDelegate = opts.layoutDelegate || new $657e4dc4a6e88df0$export$8f5ed9ff9f511381(opts.ref);
|
|
1602
|
+
} else {
|
|
1603
|
+
this.collection = args[0];
|
|
1604
|
+
this.disabledKeys = args[1];
|
|
1605
|
+
this.ref = args[2];
|
|
1606
|
+
this.collator = args[3];
|
|
1607
|
+
this.layout = "stack";
|
|
1608
|
+
this.orientation = "vertical";
|
|
1609
|
+
this.disabledBehavior = "all";
|
|
1610
|
+
this.layoutDelegate = new $657e4dc4a6e88df0$export$8f5ed9ff9f511381(this.ref);
|
|
1611
|
+
}
|
|
1612
|
+
if (this.layout === "stack" && this.orientation === "vertical") {
|
|
1613
|
+
this.getKeyLeftOf = void 0;
|
|
1614
|
+
this.getKeyRightOf = void 0;
|
|
1615
|
+
}
|
|
1616
|
+
}
|
|
1617
|
+
};
|
|
1618
|
+
//#endregion
|
|
1619
|
+
//#region ../../node_modules/.bun/@react-aria+selection@3.27.1+67f6792bdf102c28/node_modules/@react-aria/selection/dist/useSelectableList.mjs
|
|
1620
|
+
function $982254629710d113$export$b95089534ab7c1fd(props) {
|
|
1621
|
+
let { selectionManager, collection, disabledKeys, ref, keyboardDelegate, layoutDelegate } = props;
|
|
1622
|
+
let collator = $325a3faab7a68acd$export$a16aca283550c30d({
|
|
1623
|
+
usage: "search",
|
|
1624
|
+
sensitivity: "base"
|
|
1625
|
+
});
|
|
1626
|
+
let disabledBehavior = selectionManager.disabledBehavior;
|
|
1627
|
+
let delegate = useMemo(() => keyboardDelegate || new $2a25aae57d74318e$export$a05409b8bb224a5a({
|
|
1628
|
+
collection,
|
|
1629
|
+
disabledKeys,
|
|
1630
|
+
disabledBehavior,
|
|
1631
|
+
ref,
|
|
1632
|
+
collator,
|
|
1633
|
+
layoutDelegate
|
|
1634
|
+
}), [
|
|
1635
|
+
keyboardDelegate,
|
|
1636
|
+
layoutDelegate,
|
|
1637
|
+
collection,
|
|
1638
|
+
disabledKeys,
|
|
1639
|
+
ref,
|
|
1640
|
+
collator,
|
|
1641
|
+
disabledBehavior
|
|
1642
|
+
]);
|
|
1643
|
+
let { collectionProps } = $ae20dd8cbca75726$export$d6daf82dcd84e87c({
|
|
1644
|
+
...props,
|
|
1645
|
+
ref,
|
|
1646
|
+
selectionManager,
|
|
1647
|
+
keyboardDelegate: delegate
|
|
1648
|
+
});
|
|
1649
|
+
return { listProps: collectionProps };
|
|
1650
|
+
}
|
|
1651
|
+
//#endregion
|
|
1652
|
+
//#region ../../node_modules/.bun/@react-stately+collections@3.12.9+83d5fd7b249dbeef/node_modules/@react-stately/collections/dist/CollectionBuilder.mjs
|
|
1653
|
+
var $eb2240fc39a57fa5$export$bf788dd355e3a401 = class {
|
|
1654
|
+
build(props, context) {
|
|
1655
|
+
this.context = context;
|
|
1656
|
+
return $eb2240fc39a57fa5$var$iterable(() => this.iterateCollection(props));
|
|
1657
|
+
}
|
|
1658
|
+
*iterateCollection(props) {
|
|
1659
|
+
let { children, items } = props;
|
|
1660
|
+
if ($HgANd$react.isValidElement(children) && children.type === $HgANd$react.Fragment) yield* this.iterateCollection({
|
|
1661
|
+
children: children.props.children,
|
|
1662
|
+
items
|
|
1663
|
+
});
|
|
1664
|
+
else if (typeof children === "function") {
|
|
1665
|
+
if (!items) throw new Error("props.children was a function but props.items is missing");
|
|
1666
|
+
let index = 0;
|
|
1667
|
+
for (let item of items) {
|
|
1668
|
+
yield* this.getFullNode({
|
|
1669
|
+
value: item,
|
|
1670
|
+
index
|
|
1671
|
+
}, { renderer: children });
|
|
1672
|
+
index++;
|
|
1673
|
+
}
|
|
1674
|
+
} else {
|
|
1675
|
+
let items = [];
|
|
1676
|
+
$HgANd$react.Children.forEach(children, (child) => {
|
|
1677
|
+
if (child) items.push(child);
|
|
1678
|
+
});
|
|
1679
|
+
let index = 0;
|
|
1680
|
+
for (let item of items) {
|
|
1681
|
+
let nodes = this.getFullNode({
|
|
1682
|
+
element: item,
|
|
1683
|
+
index
|
|
1684
|
+
}, {});
|
|
1685
|
+
for (let node of nodes) {
|
|
1686
|
+
index++;
|
|
1687
|
+
yield node;
|
|
1688
|
+
}
|
|
1689
|
+
}
|
|
1690
|
+
}
|
|
1691
|
+
}
|
|
1692
|
+
getKey(item, partialNode, state, parentKey) {
|
|
1693
|
+
if (item.key != null) return item.key;
|
|
1694
|
+
if (partialNode.type === "cell" && partialNode.key != null) return `${parentKey}${partialNode.key}`;
|
|
1695
|
+
let v = partialNode.value;
|
|
1696
|
+
if (v != null) {
|
|
1697
|
+
var _v_key;
|
|
1698
|
+
let key = (_v_key = v.key) !== null && _v_key !== void 0 ? _v_key : v.id;
|
|
1699
|
+
if (key == null) throw new Error("No key found for item");
|
|
1700
|
+
return key;
|
|
1701
|
+
}
|
|
1702
|
+
return parentKey ? `${parentKey}.${partialNode.index}` : `$.${partialNode.index}`;
|
|
1703
|
+
}
|
|
1704
|
+
getChildState(state, partialNode) {
|
|
1705
|
+
return { renderer: partialNode.renderer || state.renderer };
|
|
1706
|
+
}
|
|
1707
|
+
*getFullNode(partialNode, state, parentKey, parentNode) {
|
|
1708
|
+
if ($HgANd$react.isValidElement(partialNode.element) && partialNode.element.type === $HgANd$react.Fragment) {
|
|
1709
|
+
let children = [];
|
|
1710
|
+
$HgANd$react.Children.forEach(partialNode.element.props.children, (child) => {
|
|
1711
|
+
children.push(child);
|
|
1712
|
+
});
|
|
1713
|
+
var _partialNode_index;
|
|
1714
|
+
let index = (_partialNode_index = partialNode.index) !== null && _partialNode_index !== void 0 ? _partialNode_index : 0;
|
|
1715
|
+
for (const child of children) yield* this.getFullNode({
|
|
1716
|
+
element: child,
|
|
1717
|
+
index: index++
|
|
1718
|
+
}, state, parentKey, parentNode);
|
|
1719
|
+
return;
|
|
1720
|
+
}
|
|
1721
|
+
let element = partialNode.element;
|
|
1722
|
+
if (!element && partialNode.value && state && state.renderer) {
|
|
1723
|
+
let cached = this.cache.get(partialNode.value);
|
|
1724
|
+
if (cached && (!cached.shouldInvalidate || !cached.shouldInvalidate(this.context))) {
|
|
1725
|
+
cached.index = partialNode.index;
|
|
1726
|
+
cached.parentKey = parentNode ? parentNode.key : null;
|
|
1727
|
+
yield cached;
|
|
1728
|
+
return;
|
|
1729
|
+
}
|
|
1730
|
+
element = state.renderer(partialNode.value);
|
|
1731
|
+
}
|
|
1732
|
+
if ($HgANd$react.isValidElement(element)) {
|
|
1733
|
+
let type = element.type;
|
|
1734
|
+
if (typeof type !== "function" && typeof type.getCollectionNode !== "function") {
|
|
1735
|
+
let name = element.type;
|
|
1736
|
+
throw new Error(`Unknown element <${name}> in collection.`);
|
|
1737
|
+
}
|
|
1738
|
+
let childNodes = type.getCollectionNode(element.props, this.context);
|
|
1739
|
+
var _partialNode_index1;
|
|
1740
|
+
let index = (_partialNode_index1 = partialNode.index) !== null && _partialNode_index1 !== void 0 ? _partialNode_index1 : 0;
|
|
1741
|
+
let result = childNodes.next();
|
|
1742
|
+
while (!result.done && result.value) {
|
|
1743
|
+
let childNode = result.value;
|
|
1744
|
+
partialNode.index = index;
|
|
1745
|
+
var _childNode_key;
|
|
1746
|
+
let nodeKey = (_childNode_key = childNode.key) !== null && _childNode_key !== void 0 ? _childNode_key : null;
|
|
1747
|
+
if (nodeKey == null) nodeKey = childNode.element ? null : this.getKey(element, partialNode, state, parentKey);
|
|
1748
|
+
let children = [...this.getFullNode({
|
|
1749
|
+
...childNode,
|
|
1750
|
+
key: nodeKey,
|
|
1751
|
+
index,
|
|
1752
|
+
wrapper: $eb2240fc39a57fa5$var$compose(partialNode.wrapper, childNode.wrapper)
|
|
1753
|
+
}, this.getChildState(state, childNode), parentKey ? `${parentKey}${element.key}` : element.key, parentNode)];
|
|
1754
|
+
for (let node of children) {
|
|
1755
|
+
var _childNode_value, _ref;
|
|
1756
|
+
node.value = (_ref = (_childNode_value = childNode.value) !== null && _childNode_value !== void 0 ? _childNode_value : partialNode.value) !== null && _ref !== void 0 ? _ref : null;
|
|
1757
|
+
if (node.value) this.cache.set(node.value, node);
|
|
1758
|
+
var _parentNode_type;
|
|
1759
|
+
if (partialNode.type && node.type !== partialNode.type) throw new Error(`Unsupported type <${$eb2240fc39a57fa5$var$capitalize(node.type)}> in <${$eb2240fc39a57fa5$var$capitalize((_parentNode_type = parentNode === null || parentNode === void 0 ? void 0 : parentNode.type) !== null && _parentNode_type !== void 0 ? _parentNode_type : "unknown parent type")}>. Only <${$eb2240fc39a57fa5$var$capitalize(partialNode.type)}> is supported.`);
|
|
1760
|
+
index++;
|
|
1761
|
+
yield node;
|
|
1762
|
+
}
|
|
1763
|
+
result = childNodes.next(children);
|
|
1764
|
+
}
|
|
1765
|
+
return;
|
|
1766
|
+
}
|
|
1767
|
+
if (partialNode.key == null || partialNode.type == null) return;
|
|
1768
|
+
let builder = this;
|
|
1769
|
+
var _partialNode_value, _partialNode_textValue;
|
|
1770
|
+
let node = {
|
|
1771
|
+
type: partialNode.type,
|
|
1772
|
+
props: partialNode.props,
|
|
1773
|
+
key: partialNode.key,
|
|
1774
|
+
parentKey: parentNode ? parentNode.key : null,
|
|
1775
|
+
value: (_partialNode_value = partialNode.value) !== null && _partialNode_value !== void 0 ? _partialNode_value : null,
|
|
1776
|
+
level: parentNode ? parentNode.level + 1 : 0,
|
|
1777
|
+
index: partialNode.index,
|
|
1778
|
+
rendered: partialNode.rendered,
|
|
1779
|
+
textValue: (_partialNode_textValue = partialNode.textValue) !== null && _partialNode_textValue !== void 0 ? _partialNode_textValue : "",
|
|
1780
|
+
"aria-label": partialNode["aria-label"],
|
|
1781
|
+
wrapper: partialNode.wrapper,
|
|
1782
|
+
shouldInvalidate: partialNode.shouldInvalidate,
|
|
1783
|
+
hasChildNodes: partialNode.hasChildNodes || false,
|
|
1784
|
+
childNodes: $eb2240fc39a57fa5$var$iterable(function* () {
|
|
1785
|
+
if (!partialNode.hasChildNodes || !partialNode.childNodes) return;
|
|
1786
|
+
let index = 0;
|
|
1787
|
+
for (let child of partialNode.childNodes()) {
|
|
1788
|
+
if (child.key != null) child.key = `${node.key}${child.key}`;
|
|
1789
|
+
let nodes = builder.getFullNode({
|
|
1790
|
+
...child,
|
|
1791
|
+
index
|
|
1792
|
+
}, builder.getChildState(state, child), node.key, node);
|
|
1793
|
+
for (let node of nodes) {
|
|
1794
|
+
index++;
|
|
1795
|
+
yield node;
|
|
1796
|
+
}
|
|
1797
|
+
}
|
|
1798
|
+
})
|
|
1799
|
+
};
|
|
1800
|
+
yield node;
|
|
1801
|
+
}
|
|
1802
|
+
constructor() {
|
|
1803
|
+
this.cache = /* @__PURE__ */ new WeakMap();
|
|
1804
|
+
}
|
|
1805
|
+
};
|
|
1806
|
+
function $eb2240fc39a57fa5$var$iterable(iterator) {
|
|
1807
|
+
let cache = [];
|
|
1808
|
+
let iterable = null;
|
|
1809
|
+
return { *[Symbol.iterator]() {
|
|
1810
|
+
for (let item of cache) yield item;
|
|
1811
|
+
if (!iterable) iterable = iterator();
|
|
1812
|
+
for (let item of iterable) {
|
|
1813
|
+
cache.push(item);
|
|
1814
|
+
yield item;
|
|
1815
|
+
}
|
|
1816
|
+
} };
|
|
1817
|
+
}
|
|
1818
|
+
function $eb2240fc39a57fa5$var$compose(outer, inner) {
|
|
1819
|
+
if (outer && inner) return (element) => outer(inner(element));
|
|
1820
|
+
if (outer) return outer;
|
|
1821
|
+
if (inner) return inner;
|
|
1822
|
+
}
|
|
1823
|
+
function $eb2240fc39a57fa5$var$capitalize(str) {
|
|
1824
|
+
return str[0].toUpperCase() + str.slice(1);
|
|
1825
|
+
}
|
|
1826
|
+
//#endregion
|
|
1827
|
+
//#region ../../node_modules/.bun/@react-stately+collections@3.12.9+83d5fd7b249dbeef/node_modules/@react-stately/collections/dist/useCollection.mjs
|
|
1828
|
+
function $7613b1592d41b092$export$6cd28814d92fa9c9(props, factory, context) {
|
|
1829
|
+
let builder = useMemo(() => new $eb2240fc39a57fa5$export$bf788dd355e3a401(), []);
|
|
1830
|
+
let { children, items, collection } = props;
|
|
1831
|
+
return useMemo(() => {
|
|
1832
|
+
if (collection) return collection;
|
|
1833
|
+
return factory(builder.build({
|
|
1834
|
+
children,
|
|
1835
|
+
items
|
|
1836
|
+
}, context));
|
|
1837
|
+
}, [
|
|
1838
|
+
builder,
|
|
1839
|
+
children,
|
|
1840
|
+
items,
|
|
1841
|
+
collection,
|
|
1842
|
+
context,
|
|
1843
|
+
factory
|
|
1844
|
+
]);
|
|
1845
|
+
}
|
|
1846
|
+
//#endregion
|
|
1847
|
+
//#region ../../node_modules/.bun/@react-stately+collections@3.12.9+83d5fd7b249dbeef/node_modules/@react-stately/collections/dist/getChildNodes.mjs
|
|
1848
|
+
function $c5a24bc478652b5f$export$1005530eda016c13(node, collection) {
|
|
1849
|
+
if (typeof collection.getChildren === "function") return collection.getChildren(node.key);
|
|
1850
|
+
return node.childNodes;
|
|
1851
|
+
}
|
|
1852
|
+
function $c5a24bc478652b5f$export$fbdeaa6a76694f71(iterable) {
|
|
1853
|
+
return $c5a24bc478652b5f$export$5f3398f8733f90e2(iterable, 0);
|
|
1854
|
+
}
|
|
1855
|
+
function $c5a24bc478652b5f$export$5f3398f8733f90e2(iterable, index) {
|
|
1856
|
+
if (index < 0) return void 0;
|
|
1857
|
+
let i = 0;
|
|
1858
|
+
for (let item of iterable) {
|
|
1859
|
+
if (i === index) return item;
|
|
1860
|
+
i++;
|
|
1861
|
+
}
|
|
1862
|
+
}
|
|
1863
|
+
function $c5a24bc478652b5f$export$8c434b3a7a4dad6(collection, a, b) {
|
|
1864
|
+
if (a.parentKey === b.parentKey) return a.index - b.index;
|
|
1865
|
+
let aAncestors = [...$c5a24bc478652b5f$var$getAncestors(collection, a), a];
|
|
1866
|
+
let bAncestors = [...$c5a24bc478652b5f$var$getAncestors(collection, b), b];
|
|
1867
|
+
let firstNonMatchingAncestor = aAncestors.slice(0, bAncestors.length).findIndex((a, i) => a !== bAncestors[i]);
|
|
1868
|
+
if (firstNonMatchingAncestor !== -1) {
|
|
1869
|
+
a = aAncestors[firstNonMatchingAncestor];
|
|
1870
|
+
b = bAncestors[firstNonMatchingAncestor];
|
|
1871
|
+
return a.index - b.index;
|
|
1872
|
+
}
|
|
1873
|
+
if (aAncestors.findIndex((node) => node === b) >= 0) return 1;
|
|
1874
|
+
else if (bAncestors.findIndex((node) => node === a) >= 0) return -1;
|
|
1875
|
+
return -1;
|
|
1876
|
+
}
|
|
1877
|
+
function $c5a24bc478652b5f$var$getAncestors(collection, node) {
|
|
1878
|
+
let parents = [];
|
|
1879
|
+
let currNode = node;
|
|
1880
|
+
while ((currNode === null || currNode === void 0 ? void 0 : currNode.parentKey) != null) {
|
|
1881
|
+
currNode = collection.getItem(currNode.parentKey);
|
|
1882
|
+
if (currNode) parents.unshift(currNode);
|
|
1883
|
+
}
|
|
1884
|
+
return parents;
|
|
1885
|
+
}
|
|
1886
|
+
//#endregion
|
|
1887
|
+
//#region ../../node_modules/.bun/@react-stately+collections@3.12.9+83d5fd7b249dbeef/node_modules/@react-stately/collections/dist/getItemCount.mjs
|
|
1888
|
+
const $453cc9f0df89c0a5$var$cache = /* @__PURE__ */ new WeakMap();
|
|
1889
|
+
function $453cc9f0df89c0a5$export$77d5aafae4e095b2(collection) {
|
|
1890
|
+
let count = $453cc9f0df89c0a5$var$cache.get(collection);
|
|
1891
|
+
if (count != null) return count;
|
|
1892
|
+
let counter = 0;
|
|
1893
|
+
let countItems = (items) => {
|
|
1894
|
+
for (let item of items) if (item.type === "section") countItems($c5a24bc478652b5f$export$1005530eda016c13(item, collection));
|
|
1895
|
+
else if (item.type === "item") counter++;
|
|
1896
|
+
};
|
|
1897
|
+
countItems(collection);
|
|
1898
|
+
$453cc9f0df89c0a5$var$cache.set(collection, counter);
|
|
1899
|
+
return counter;
|
|
1900
|
+
}
|
|
1901
|
+
//#endregion
|
|
1902
|
+
//#region ../../node_modules/.bun/@react-aria+menu@3.20.0+67f6792bdf102c28/node_modules/@react-aria/menu/dist/ar-AE.mjs
|
|
1903
|
+
var $c0398ad35c3639b7$exports = {};
|
|
1904
|
+
$c0398ad35c3639b7$exports = { "longPressMessage": `\u{627}\u{636}\u{63A}\u{637} \u{645}\u{637}\u{648}\u{644}\u{627}\u{64B} \u{623}\u{648} \u{627}\u{636}\u{63A}\u{637} \u{639}\u{644}\u{649} Alt + \u{627}\u{644}\u{633}\u{647}\u{645} \u{644}\u{623}\u{633}\u{641}\u{644} \u{644}\u{641}\u{62A}\u{62D} \u{627}\u{644}\u{642}\u{627}\u{626}\u{645}\u{629}` };
|
|
1905
|
+
//#endregion
|
|
1906
|
+
//#region ../../node_modules/.bun/@react-aria+menu@3.20.0+67f6792bdf102c28/node_modules/@react-aria/menu/dist/bg-BG.mjs
|
|
1907
|
+
var $7af657c4165927c3$exports = {};
|
|
1908
|
+
$7af657c4165927c3$exports = { "longPressMessage": `\u{41D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{435}\u{442}\u{435} \u{43F}\u{440}\u{43E}\u{434}\u{44A}\u{43B}\u{436}\u{438}\u{442}\u{435}\u{43B}\u{43D}\u{43E} \u{438}\u{43B}\u{438} \u{43D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{435}\u{442}\u{435} Alt+ \u{441}\u{442}\u{440}\u{435}\u{43B}\u{43A}\u{430} \u{43D}\u{430}\u{434}\u{43E}\u{43B}\u{443}, \u{437}\u{430} \u{434}\u{430} \u{43E}\u{442}\u{432}\u{43E}\u{440}\u{438}\u{442}\u{435} \u{43C}\u{435}\u{43D}\u{44E}\u{442}\u{43E}` };
|
|
1909
|
+
//#endregion
|
|
1910
|
+
//#region ../../node_modules/.bun/@react-aria+menu@3.20.0+67f6792bdf102c28/node_modules/@react-aria/menu/dist/cs-CZ.mjs
|
|
1911
|
+
var $d95d4da6d531ab81$exports = {};
|
|
1912
|
+
$d95d4da6d531ab81$exports = { "longPressMessage": `Dlouh\xfdm stiskem nebo stisknut\xedm kl\xe1ves Alt + \u{161}ipka dol\u{16F} otev\u{159}ete nab\xeddku` };
|
|
1913
|
+
//#endregion
|
|
1914
|
+
//#region ../../node_modules/.bun/@react-aria+menu@3.20.0+67f6792bdf102c28/node_modules/@react-aria/menu/dist/da-DK.mjs
|
|
1915
|
+
var $24ebda9c775dca17$exports = {};
|
|
1916
|
+
$24ebda9c775dca17$exports = { "longPressMessage": `Langt tryk eller tryk p\xe5 Alt + pil ned for at \xe5bne menuen` };
|
|
1917
|
+
//#endregion
|
|
1918
|
+
//#region ../../node_modules/.bun/@react-aria+menu@3.20.0+67f6792bdf102c28/node_modules/@react-aria/menu/dist/de-DE.mjs
|
|
1919
|
+
var $743e0dfca6cab1e9$exports = {};
|
|
1920
|
+
$743e0dfca6cab1e9$exports = { "longPressMessage": `Dr\xfccken Sie lange oder dr\xfccken Sie Alt + Nach-unten, um das Men\xfc zu \xf6ffnen` };
|
|
1921
|
+
//#endregion
|
|
1922
|
+
//#region ../../node_modules/.bun/@react-aria+menu@3.20.0+67f6792bdf102c28/node_modules/@react-aria/menu/dist/el-GR.mjs
|
|
1923
|
+
var $a2f41026e05f1c84$exports = {};
|
|
1924
|
+
$a2f41026e05f1c84$exports = { "longPressMessage": `\u{3A0}\u{3B9}\u{3AD}\u{3C3}\u{3C4}\u{3B5} \u{3C0}\u{3B1}\u{3C1}\u{3B1}\u{3C4}\u{3B5}\u{3C4}\u{3B1}\u{3BC}\u{3AD}\u{3BD}\u{3B1} \u{3AE} \u{3C0}\u{3B1}\u{3C4}\u{3AE}\u{3C3}\u{3C4}\u{3B5} Alt + \u{3BA}\u{3AC}\u{3C4}\u{3C9} \u{3B2}\u{3AD}\u{3BB}\u{3BF}\u{3C2} \u{3B3}\u{3B9}\u{3B1} \u{3BD}\u{3B1} \u{3B1}\u{3BD}\u{3BF}\u{3AF}\u{3BE}\u{3B5}\u{3C4}\u{3B5} \u{3C4}\u{3BF} \u{3BC}\u{3B5}\u{3BD}\u{3BF}\u{3CD}` };
|
|
1925
|
+
//#endregion
|
|
1926
|
+
//#region ../../node_modules/.bun/@react-aria+menu@3.20.0+67f6792bdf102c28/node_modules/@react-aria/menu/dist/en-US.mjs
|
|
1927
|
+
var $43b800e97c901737$exports = {};
|
|
1928
|
+
$43b800e97c901737$exports = { "longPressMessage": `Long press or press Alt + ArrowDown to open menu` };
|
|
1929
|
+
//#endregion
|
|
1930
|
+
//#region ../../node_modules/.bun/@react-aria+menu@3.20.0+67f6792bdf102c28/node_modules/@react-aria/menu/dist/es-ES.mjs
|
|
1931
|
+
var $442f5f6ac211e29f$exports = {};
|
|
1932
|
+
$442f5f6ac211e29f$exports = { "longPressMessage": `Mantenga pulsado o pulse Alt + flecha abajo para abrir el men\xfa` };
|
|
1933
|
+
//#endregion
|
|
1934
|
+
//#region ../../node_modules/.bun/@react-aria+menu@3.20.0+67f6792bdf102c28/node_modules/@react-aria/menu/dist/et-EE.mjs
|
|
1935
|
+
var $dff280acfeb2d8ac$exports = {};
|
|
1936
|
+
$dff280acfeb2d8ac$exports = { "longPressMessage": `Men\xfc\xfc avamiseks vajutage pikalt v\xf5i vajutage klahve Alt + allanool` };
|
|
1937
|
+
//#endregion
|
|
1938
|
+
//#region ../../node_modules/.bun/@react-aria+menu@3.20.0+67f6792bdf102c28/node_modules/@react-aria/menu/dist/fi-FI.mjs
|
|
1939
|
+
var $51608325613944d7$exports = {};
|
|
1940
|
+
$51608325613944d7$exports = { "longPressMessage": `Avaa valikko painamalla pohjassa tai n\xe4pp\xe4inyhdistelm\xe4ll\xe4 Alt + Alanuoli` };
|
|
1941
|
+
//#endregion
|
|
1942
|
+
//#region ../../node_modules/.bun/@react-aria+menu@3.20.0+67f6792bdf102c28/node_modules/@react-aria/menu/dist/fr-FR.mjs
|
|
1943
|
+
var $c4a1b1eabeaa87be$exports = {};
|
|
1944
|
+
$c4a1b1eabeaa87be$exports = { "longPressMessage": `Appuyez de mani\xe8re prolong\xe9e ou appuyez sur Alt\xa0+\xa0Fl\xe8che vers le bas pour ouvrir le menu.` };
|
|
1945
|
+
//#endregion
|
|
1946
|
+
//#region ../../node_modules/.bun/@react-aria+menu@3.20.0+67f6792bdf102c28/node_modules/@react-aria/menu/dist/he-IL.mjs
|
|
1947
|
+
var $8c74815cdee18d1b$exports = {};
|
|
1948
|
+
$8c74815cdee18d1b$exports = { "longPressMessage": `\u{5DC}\u{5D7}\u{5E5} \u{5DC}\u{5D7}\u{5D9}\u{5E6}\u{5D4} \u{5D0}\u{5E8}\u{5D5}\u{5DB}\u{5D4} \u{5D0}\u{5D5} \u{5D4}\u{5E7}\u{5E9} Alt + ArrowDown \u{5DB}\u{5D3}\u{5D9} \u{5DC}\u{5E4}\u{5EA}\u{5D5}\u{5D7} \u{5D0}\u{5EA} \u{5D4}\u{5EA}\u{5E4}\u{5E8}\u{5D9}\u{5D8}` };
|
|
1949
|
+
//#endregion
|
|
1950
|
+
//#region ../../node_modules/.bun/@react-aria+menu@3.20.0+67f6792bdf102c28/node_modules/@react-aria/menu/dist/hr-HR.mjs
|
|
1951
|
+
var $fd0e9ef6a7fe0ec9$exports = {};
|
|
1952
|
+
$fd0e9ef6a7fe0ec9$exports = { "longPressMessage": `Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika` };
|
|
1953
|
+
//#endregion
|
|
1954
|
+
//#region ../../node_modules/.bun/@react-aria+menu@3.20.0+67f6792bdf102c28/node_modules/@react-aria/menu/dist/hu-HU.mjs
|
|
1955
|
+
var $a89a74a39eba465a$exports = {};
|
|
1956
|
+
$a89a74a39eba465a$exports = { "longPressMessage": `Nyomja meg hosszan, vagy nyomja meg az Alt + lefele ny\xedl gombot a men\xfc megnyit\xe1s\xe1hoz` };
|
|
1957
|
+
//#endregion
|
|
1958
|
+
//#region ../../node_modules/.bun/@react-aria+menu@3.20.0+67f6792bdf102c28/node_modules/@react-aria/menu/dist/it-IT.mjs
|
|
1959
|
+
var $edc7c66594a0ae8a$exports = {};
|
|
1960
|
+
$edc7c66594a0ae8a$exports = { "longPressMessage": `Premi a lungo o premi Alt + Freccia gi\xf9 per aprire il menu` };
|
|
1961
|
+
//#endregion
|
|
1962
|
+
//#region ../../node_modules/.bun/@react-aria+menu@3.20.0+67f6792bdf102c28/node_modules/@react-aria/menu/dist/ja-JP.mjs
|
|
1963
|
+
var $f1ab51510712db52$exports = {};
|
|
1964
|
+
$f1ab51510712db52$exports = { "longPressMessage": `\u{9577}\u{62BC}\u{3057}\u{307E}\u{305F}\u{306F} Alt+\u{4E0B}\u{77E2}\u{5370}\u{30AD}\u{30FC}\u{3067}\u{30E1}\u{30CB}\u{30E5}\u{30FC}\u{3092}\u{958B}\u{304F}` };
|
|
1965
|
+
//#endregion
|
|
1966
|
+
//#region ../../node_modules/.bun/@react-aria+menu@3.20.0+67f6792bdf102c28/node_modules/@react-aria/menu/dist/ko-KR.mjs
|
|
1967
|
+
var $f9b672d9b82fa3d6$exports = {};
|
|
1968
|
+
$f9b672d9b82fa3d6$exports = { "longPressMessage": `\u{AE38}\u{AC8C} \u{B204}\u{B974}\u{AC70}\u{B098} Alt + \u{C544}\u{B798}\u{CABD} \u{D654}\u{C0B4}\u{D45C}\u{B97C} \u{B20C}\u{B7EC} \u{BA54}\u{B274} \u{C5F4}\u{AE30}` };
|
|
1969
|
+
//#endregion
|
|
1970
|
+
//#region ../../node_modules/.bun/@react-aria+menu@3.20.0+67f6792bdf102c28/node_modules/@react-aria/menu/dist/lt-LT.mjs
|
|
1971
|
+
var $a385f3910feda499$exports = {};
|
|
1972
|
+
$a385f3910feda499$exports = { "longPressMessage": `Nor\u{117}dami atidaryti meniu, nuspaud\u{119} palaikykite arba paspauskite \u{201E}Alt + ArrowDown\u{201C}.` };
|
|
1973
|
+
//#endregion
|
|
1974
|
+
//#region ../../node_modules/.bun/@react-aria+menu@3.20.0+67f6792bdf102c28/node_modules/@react-aria/menu/dist/lv-LV.mjs
|
|
1975
|
+
var $4f1bde932c441789$exports = {};
|
|
1976
|
+
$4f1bde932c441789$exports = { "longPressMessage": `Lai atv\u{113}rtu izv\u{113}lni, turiet nospiestu vai nospiediet tausti\u{146}u kombin\u{101}ciju Alt + lejupv\u{113}rst\u{101} bulti\u{146}a` };
|
|
1977
|
+
//#endregion
|
|
1978
|
+
//#region ../../node_modules/.bun/@react-aria+menu@3.20.0+67f6792bdf102c28/node_modules/@react-aria/menu/dist/nb-NO.mjs
|
|
1979
|
+
var $914a51a8a594d5be$exports = {};
|
|
1980
|
+
$914a51a8a594d5be$exports = { "longPressMessage": `Langt trykk eller trykk Alt + PilNed for \xe5 \xe5pne menyen` };
|
|
1981
|
+
//#endregion
|
|
1982
|
+
//#region ../../node_modules/.bun/@react-aria+menu@3.20.0+67f6792bdf102c28/node_modules/@react-aria/menu/dist/nl-NL.mjs
|
|
1983
|
+
var $89aaf803103bb500$exports = {};
|
|
1984
|
+
$89aaf803103bb500$exports = { "longPressMessage": `Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen` };
|
|
1985
|
+
//#endregion
|
|
1986
|
+
//#region ../../node_modules/.bun/@react-aria+menu@3.20.0+67f6792bdf102c28/node_modules/@react-aria/menu/dist/pl-PL.mjs
|
|
1987
|
+
var $c685891476dbaaca$exports = {};
|
|
1988
|
+
$c685891476dbaaca$exports = { "longPressMessage": `Naci\u{15B}nij i przytrzymaj lub naci\u{15B}nij klawisze Alt + Strza\u{142}ka w d\xf3\u{142}, aby otworzy\u{107} menu` };
|
|
1989
|
+
//#endregion
|
|
1990
|
+
//#region ../../node_modules/.bun/@react-aria+menu@3.20.0+67f6792bdf102c28/node_modules/@react-aria/menu/dist/pt-BR.mjs
|
|
1991
|
+
var $885879b9b10c2959$exports = {};
|
|
1992
|
+
$885879b9b10c2959$exports = { "longPressMessage": `Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu` };
|
|
1993
|
+
//#endregion
|
|
1994
|
+
//#region ../../node_modules/.bun/@react-aria+menu@3.20.0+67f6792bdf102c28/node_modules/@react-aria/menu/dist/pt-PT.mjs
|
|
1995
|
+
var $6b39616688a51692$exports = {};
|
|
1996
|
+
$6b39616688a51692$exports = { "longPressMessage": `Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu` };
|
|
1997
|
+
//#endregion
|
|
1998
|
+
//#region ../../node_modules/.bun/@react-aria+menu@3.20.0+67f6792bdf102c28/node_modules/@react-aria/menu/dist/ro-RO.mjs
|
|
1999
|
+
var $f26362aed63f47e2$exports = {};
|
|
2000
|
+
$f26362aed63f47e2$exports = { "longPressMessage": `Ap\u{103}sa\u{21B}i lung sau ap\u{103}sa\u{21B}i pe Alt + s\u{103}geat\u{103} \xeen jos pentru a deschide meniul` };
|
|
2001
|
+
//#endregion
|
|
2002
|
+
//#region ../../node_modules/.bun/@react-aria+menu@3.20.0+67f6792bdf102c28/node_modules/@react-aria/menu/dist/ru-RU.mjs
|
|
2003
|
+
var $06cbade644558bf0$exports = {};
|
|
2004
|
+
$06cbade644558bf0$exports = { "longPressMessage": `\u{41D}\u{430}\u{436}\u{43C}\u{438}\u{442}\u{435} \u{438} \u{443}\u{434}\u{435}\u{440}\u{436}\u{438}\u{432}\u{430}\u{439}\u{442}\u{435} \u{438}\u{43B}\u{438} \u{43D}\u{430}\u{436}\u{43C}\u{438}\u{442}\u{435} Alt + \u{421}\u{442}\u{440}\u{435}\u{43B}\u{43A}\u{430} \u{432}\u{43D}\u{438}\u{437}, \u{447}\u{442}\u{43E}\u{431}\u{44B} \u{43E}\u{442}\u{43A}\u{440}\u{44B}\u{442}\u{44C} \u{43C}\u{435}\u{43D}\u{44E}` };
|
|
2005
|
+
//#endregion
|
|
2006
|
+
//#region ../../node_modules/.bun/@react-aria+menu@3.20.0+67f6792bdf102c28/node_modules/@react-aria/menu/dist/sk-SK.mjs
|
|
2007
|
+
var $0a391ff68f9d59b1$exports = {};
|
|
2008
|
+
$0a391ff68f9d59b1$exports = { "longPressMessage": `Ponuku otvor\xedte dlh\xfdm stla\u{10D}en\xedm alebo stla\u{10D}en\xedm kl\xe1vesu Alt + kl\xe1vesu so \u{161}\xedpkou nadol` };
|
|
2009
|
+
//#endregion
|
|
2010
|
+
//#region ../../node_modules/.bun/@react-aria+menu@3.20.0+67f6792bdf102c28/node_modules/@react-aria/menu/dist/sl-SI.mjs
|
|
2011
|
+
var $8193cf0e649c7928$exports = {};
|
|
2012
|
+
$8193cf0e649c7928$exports = { "longPressMessage": `Za odprtje menija pritisnite in dr\u{17E}ite gumb ali pritisnite Alt+pu\u{161}\u{10D}ica navzdol` };
|
|
2013
|
+
//#endregion
|
|
2014
|
+
//#region ../../node_modules/.bun/@react-aria+menu@3.20.0+67f6792bdf102c28/node_modules/@react-aria/menu/dist/sr-SP.mjs
|
|
2015
|
+
var $f398debcce5a5c55$exports = {};
|
|
2016
|
+
$f398debcce5a5c55$exports = { "longPressMessage": `Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni` };
|
|
2017
|
+
//#endregion
|
|
2018
|
+
//#region ../../node_modules/.bun/@react-aria+menu@3.20.0+67f6792bdf102c28/node_modules/@react-aria/menu/dist/sv-SE.mjs
|
|
2019
|
+
var $9e9fef000aa4c013$exports = {};
|
|
2020
|
+
$9e9fef000aa4c013$exports = { "longPressMessage": `H\xe5ll nedtryckt eller tryck p\xe5 Alt + pil ned\xe5t f\xf6r att \xf6ppna menyn` };
|
|
2021
|
+
//#endregion
|
|
2022
|
+
//#region ../../node_modules/.bun/@react-aria+menu@3.20.0+67f6792bdf102c28/node_modules/@react-aria/menu/dist/tr-TR.mjs
|
|
2023
|
+
var $c016c8183bbe3d68$exports = {};
|
|
2024
|
+
$c016c8183bbe3d68$exports = { "longPressMessage": `Men\xfcy\xfc a\xe7mak i\xe7in uzun bas\u{131}n veya Alt + A\u{15F}a\u{11F}\u{131} Ok tu\u{15F}una bas\u{131}n` };
|
|
2025
|
+
//#endregion
|
|
2026
|
+
//#region ../../node_modules/.bun/@react-aria+menu@3.20.0+67f6792bdf102c28/node_modules/@react-aria/menu/dist/uk-UA.mjs
|
|
2027
|
+
var $ca4f6c8462244e62$exports = {};
|
|
2028
|
+
$ca4f6c8462244e62$exports = { "longPressMessage": `\u{414}\u{43E}\u{432}\u{433}\u{43E} \u{430}\u{431}\u{43E} \u{437}\u{432}\u{438}\u{447}\u{430}\u{439}\u{43D}\u{43E} \u{43D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{456}\u{442}\u{44C} \u{43A}\u{43E}\u{43C}\u{431}\u{456}\u{43D}\u{430}\u{446}\u{456}\u{44E} \u{43A}\u{43B}\u{430}\u{432}\u{456}\u{448} Alt \u{456} \u{441}\u{442}\u{440}\u{456}\u{43B}\u{43A}\u{430} \u{432}\u{43D}\u{438}\u{437}, \u{449}\u{43E}\u{431} \u{432}\u{456}\u{434}\u{43A}\u{440}\u{438}\u{442}\u{438} \u{43C}\u{435}\u{43D}\u{44E}` };
|
|
2029
|
+
//#endregion
|
|
2030
|
+
//#region ../../node_modules/.bun/@react-aria+menu@3.20.0+67f6792bdf102c28/node_modules/@react-aria/menu/dist/zh-CN.mjs
|
|
2031
|
+
var $2d9960c02ccac927$exports = {};
|
|
2032
|
+
$2d9960c02ccac927$exports = { "longPressMessage": `\u{957F}\u{6309}\u{6216}\u{6309} Alt + \u{5411}\u{4E0B}\u{65B9}\u{5411}\u{952E}\u{4EE5}\u{6253}\u{5F00}\u{83DC}\u{5355}` };
|
|
2033
|
+
//#endregion
|
|
2034
|
+
//#region ../../node_modules/.bun/@react-aria+menu@3.20.0+67f6792bdf102c28/node_modules/@react-aria/menu/dist/zh-TW.mjs
|
|
2035
|
+
var $f1b682a4c8c5631c$exports = {};
|
|
2036
|
+
$f1b682a4c8c5631c$exports = { "longPressMessage": `\u{9577}\u{6309}\u{6216}\u{6309} Alt+\u{5411}\u{4E0B}\u{9375}\u{4EE5}\u{958B}\u{555F}\u{529F}\u{80FD}\u{8868}` };
|
|
2037
|
+
//#endregion
|
|
2038
|
+
//#region ../../node_modules/.bun/@react-aria+menu@3.20.0+67f6792bdf102c28/node_modules/@react-aria/menu/dist/intlStrings.mjs
|
|
2039
|
+
var $2cbb7ca666678a14$exports = {};
|
|
2040
|
+
$2cbb7ca666678a14$exports = {
|
|
2041
|
+
"ar-AE": $c0398ad35c3639b7$exports,
|
|
2042
|
+
"bg-BG": $7af657c4165927c3$exports,
|
|
2043
|
+
"cs-CZ": $d95d4da6d531ab81$exports,
|
|
2044
|
+
"da-DK": $24ebda9c775dca17$exports,
|
|
2045
|
+
"de-DE": $743e0dfca6cab1e9$exports,
|
|
2046
|
+
"el-GR": $a2f41026e05f1c84$exports,
|
|
2047
|
+
"en-US": $43b800e97c901737$exports,
|
|
2048
|
+
"es-ES": $442f5f6ac211e29f$exports,
|
|
2049
|
+
"et-EE": $dff280acfeb2d8ac$exports,
|
|
2050
|
+
"fi-FI": $51608325613944d7$exports,
|
|
2051
|
+
"fr-FR": $c4a1b1eabeaa87be$exports,
|
|
2052
|
+
"he-IL": $8c74815cdee18d1b$exports,
|
|
2053
|
+
"hr-HR": $fd0e9ef6a7fe0ec9$exports,
|
|
2054
|
+
"hu-HU": $a89a74a39eba465a$exports,
|
|
2055
|
+
"it-IT": $edc7c66594a0ae8a$exports,
|
|
2056
|
+
"ja-JP": $f1ab51510712db52$exports,
|
|
2057
|
+
"ko-KR": $f9b672d9b82fa3d6$exports,
|
|
2058
|
+
"lt-LT": $a385f3910feda499$exports,
|
|
2059
|
+
"lv-LV": $4f1bde932c441789$exports,
|
|
2060
|
+
"nb-NO": $914a51a8a594d5be$exports,
|
|
2061
|
+
"nl-NL": $89aaf803103bb500$exports,
|
|
2062
|
+
"pl-PL": $c685891476dbaaca$exports,
|
|
2063
|
+
"pt-BR": $885879b9b10c2959$exports,
|
|
2064
|
+
"pt-PT": $6b39616688a51692$exports,
|
|
2065
|
+
"ro-RO": $f26362aed63f47e2$exports,
|
|
2066
|
+
"ru-RU": $06cbade644558bf0$exports,
|
|
2067
|
+
"sk-SK": $0a391ff68f9d59b1$exports,
|
|
2068
|
+
"sl-SI": $8193cf0e649c7928$exports,
|
|
2069
|
+
"sr-SP": $f398debcce5a5c55$exports,
|
|
2070
|
+
"sv-SE": $9e9fef000aa4c013$exports,
|
|
2071
|
+
"tr-TR": $c016c8183bbe3d68$exports,
|
|
2072
|
+
"uk-UA": $ca4f6c8462244e62$exports,
|
|
2073
|
+
"zh-CN": $2d9960c02ccac927$exports,
|
|
2074
|
+
"zh-TW": $f1b682a4c8c5631c$exports
|
|
2075
|
+
};
|
|
2076
|
+
//#endregion
|
|
2077
|
+
//#region ../../node_modules/.bun/@react-aria+menu@3.20.0+67f6792bdf102c28/node_modules/@react-aria/menu/dist/useMenuTrigger.mjs
|
|
2078
|
+
function $parcel$interopDefault(a) {
|
|
2079
|
+
return a && a.__esModule ? a.default : a;
|
|
2080
|
+
}
|
|
2081
|
+
function $168583247155ddda$export$dc9c12ed27dd1b49(props, state, ref) {
|
|
2082
|
+
let { type = "menu", isDisabled, trigger = "press" } = props;
|
|
2083
|
+
let menuTriggerId = $bdb11010cef70236$export$f680877a34711e37();
|
|
2084
|
+
let { triggerProps, overlayProps } = $628037886ba31236$export$f9d5c8beee7d008d({ type }, state, ref);
|
|
2085
|
+
let onKeyDown = (e) => {
|
|
2086
|
+
if (isDisabled) return;
|
|
2087
|
+
if (trigger === "longPress" && !e.altKey) return;
|
|
2088
|
+
if (ref && ref.current) switch (e.key) {
|
|
2089
|
+
case "Enter":
|
|
2090
|
+
case " ": if (trigger === "longPress" || e.isDefaultPrevented()) return;
|
|
2091
|
+
case "ArrowDown":
|
|
2092
|
+
if (!("continuePropagation" in e)) e.stopPropagation();
|
|
2093
|
+
e.preventDefault();
|
|
2094
|
+
state.toggle("first");
|
|
2095
|
+
break;
|
|
2096
|
+
case "ArrowUp":
|
|
2097
|
+
if (!("continuePropagation" in e)) e.stopPropagation();
|
|
2098
|
+
e.preventDefault();
|
|
2099
|
+
state.toggle("last");
|
|
2100
|
+
break;
|
|
2101
|
+
default: if ("continuePropagation" in e) e.continuePropagation();
|
|
2102
|
+
}
|
|
2103
|
+
};
|
|
2104
|
+
let stringFormatter = $fca6afa0e843324b$export$f12b703ca79dfbb1($parcel$interopDefault($2cbb7ca666678a14$exports), "@react-aria/menu");
|
|
2105
|
+
let { longPressProps } = $8a26561d2877236e$export$c24ed0104d07eab9({
|
|
2106
|
+
isDisabled: isDisabled || trigger !== "longPress",
|
|
2107
|
+
accessibilityDescription: stringFormatter.format("longPressMessage"),
|
|
2108
|
+
onLongPressStart() {
|
|
2109
|
+
state.close();
|
|
2110
|
+
},
|
|
2111
|
+
onLongPress() {
|
|
2112
|
+
state.open("first");
|
|
2113
|
+
}
|
|
2114
|
+
});
|
|
2115
|
+
let pressProps = {
|
|
2116
|
+
preventFocusOnPress: true,
|
|
2117
|
+
onPressStart(e) {
|
|
2118
|
+
if (e.pointerType !== "touch" && e.pointerType !== "keyboard" && !isDisabled) {
|
|
2119
|
+
$7215afc6de606d6b$export$de79e2c695e052f3(e.target);
|
|
2120
|
+
state.open(e.pointerType === "virtual" ? "first" : null);
|
|
2121
|
+
}
|
|
2122
|
+
},
|
|
2123
|
+
onPress(e) {
|
|
2124
|
+
if (e.pointerType === "touch" && !isDisabled) {
|
|
2125
|
+
$7215afc6de606d6b$export$de79e2c695e052f3(e.target);
|
|
2126
|
+
state.toggle();
|
|
2127
|
+
}
|
|
2128
|
+
}
|
|
2129
|
+
};
|
|
2130
|
+
delete triggerProps.onPress;
|
|
2131
|
+
return {
|
|
2132
|
+
menuTriggerProps: {
|
|
2133
|
+
...triggerProps,
|
|
2134
|
+
...trigger === "press" ? pressProps : longPressProps,
|
|
2135
|
+
id: menuTriggerId,
|
|
2136
|
+
onKeyDown
|
|
2137
|
+
},
|
|
2138
|
+
menuProps: {
|
|
2139
|
+
...overlayProps,
|
|
2140
|
+
"aria-labelledby": menuTriggerId,
|
|
2141
|
+
autoFocus: state.focusStrategy || true,
|
|
2142
|
+
onClose: state.close
|
|
2143
|
+
}
|
|
2144
|
+
};
|
|
2145
|
+
}
|
|
2146
|
+
//#endregion
|
|
2147
|
+
//#region ../../node_modules/.bun/@react-aria+menu@3.20.0+67f6792bdf102c28/node_modules/@react-aria/menu/dist/utils.mjs
|
|
2148
|
+
const $fc79756100351201$export$6f49b4016bfc8d56 = /* @__PURE__ */ new WeakMap();
|
|
2149
|
+
//#endregion
|
|
2150
|
+
//#region ../../node_modules/.bun/@react-aria+menu@3.20.0+67f6792bdf102c28/node_modules/@react-aria/menu/dist/useMenu.mjs
|
|
2151
|
+
function $d5336fe17ce95402$export$38eaa17faae8f579(props, state, ref) {
|
|
2152
|
+
let { shouldFocusWrap = true, onKeyDown, onKeyUp, ...otherProps } = props;
|
|
2153
|
+
if (!props["aria-label"] && !props["aria-labelledby"] && true) console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
|
|
2154
|
+
let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, { labelable: true });
|
|
2155
|
+
let { listProps } = $982254629710d113$export$b95089534ab7c1fd({
|
|
2156
|
+
...otherProps,
|
|
2157
|
+
ref,
|
|
2158
|
+
selectionManager: state.selectionManager,
|
|
2159
|
+
collection: state.collection,
|
|
2160
|
+
disabledKeys: state.disabledKeys,
|
|
2161
|
+
shouldFocusWrap,
|
|
2162
|
+
linkBehavior: "override"
|
|
2163
|
+
});
|
|
2164
|
+
$fc79756100351201$export$6f49b4016bfc8d56.set(state, {
|
|
2165
|
+
onClose: props.onClose,
|
|
2166
|
+
onAction: props.onAction,
|
|
2167
|
+
shouldUseVirtualFocus: props.shouldUseVirtualFocus
|
|
2168
|
+
});
|
|
2169
|
+
return { menuProps: $3ef42575df84b30b$export$9d1611c77c2fe928(domProps, {
|
|
2170
|
+
onKeyDown,
|
|
2171
|
+
onKeyUp
|
|
2172
|
+
}, {
|
|
2173
|
+
role: "menu",
|
|
2174
|
+
...listProps,
|
|
2175
|
+
onKeyDown: (e) => {
|
|
2176
|
+
var _listProps_onKeyDown;
|
|
2177
|
+
if (e.key !== "Escape" || props.shouldUseVirtualFocus) (_listProps_onKeyDown = listProps.onKeyDown) === null || _listProps_onKeyDown === void 0 || _listProps_onKeyDown.call(listProps, e);
|
|
2178
|
+
}
|
|
2179
|
+
}) };
|
|
2180
|
+
}
|
|
2181
|
+
//#endregion
|
|
2182
|
+
//#region ../../node_modules/.bun/@react-aria+menu@3.20.0+67f6792bdf102c28/node_modules/@react-aria/menu/dist/useMenuItem.mjs
|
|
2183
|
+
function $a2e5df62f93c7633$export$9d32628fc2aea7da(props, state, ref) {
|
|
2184
|
+
let { id, key, closeOnSelect, shouldCloseOnSelect, isVirtualized, "aria-haspopup": hasPopup, onPressStart, onPressUp: pressUpProp, onPress, onPressChange: pressChangeProp, onPressEnd, onClick: onClickProp, onHoverStart: hoverStartProp, onHoverChange, onHoverEnd, onKeyDown, onKeyUp, onFocus, onFocusChange, onBlur, selectionManager = state.selectionManager } = props;
|
|
2185
|
+
let isTrigger = !!hasPopup;
|
|
2186
|
+
let isTriggerExpanded = isTrigger && props["aria-expanded"] === "true";
|
|
2187
|
+
var _props_isDisabled;
|
|
2188
|
+
let isDisabled = (_props_isDisabled = props.isDisabled) !== null && _props_isDisabled !== void 0 ? _props_isDisabled : selectionManager.isDisabled(key);
|
|
2189
|
+
var _props_isSelected;
|
|
2190
|
+
let isSelected = (_props_isSelected = props.isSelected) !== null && _props_isSelected !== void 0 ? _props_isSelected : selectionManager.isSelected(key);
|
|
2191
|
+
let data = $fc79756100351201$export$6f49b4016bfc8d56.get(state);
|
|
2192
|
+
let item = state.collection.getItem(key);
|
|
2193
|
+
let onClose = props.onClose || data.onClose;
|
|
2194
|
+
let router = $ea8dcbcb9ea1b556$export$9a302a45f65d0572();
|
|
2195
|
+
let performAction = () => {
|
|
2196
|
+
var _item_props;
|
|
2197
|
+
if (isTrigger) return;
|
|
2198
|
+
if (item === null || item === void 0 ? void 0 : (_item_props = item.props) === null || _item_props === void 0 ? void 0 : _item_props.onAction) item.props.onAction();
|
|
2199
|
+
else if (props.onAction) props.onAction(key);
|
|
2200
|
+
if (data.onAction) {
|
|
2201
|
+
let onAction = data.onAction;
|
|
2202
|
+
onAction(key);
|
|
2203
|
+
}
|
|
2204
|
+
};
|
|
2205
|
+
let role = "menuitem";
|
|
2206
|
+
if (!isTrigger) {
|
|
2207
|
+
if (selectionManager.selectionMode === "single") role = "menuitemradio";
|
|
2208
|
+
else if (selectionManager.selectionMode === "multiple") role = "menuitemcheckbox";
|
|
2209
|
+
}
|
|
2210
|
+
let labelId = $bdb11010cef70236$export$b4cc09c592e8fdb8();
|
|
2211
|
+
let descriptionId = $bdb11010cef70236$export$b4cc09c592e8fdb8();
|
|
2212
|
+
let keyboardId = $bdb11010cef70236$export$b4cc09c592e8fdb8();
|
|
2213
|
+
let ariaProps = {
|
|
2214
|
+
id,
|
|
2215
|
+
"aria-disabled": isDisabled || void 0,
|
|
2216
|
+
role,
|
|
2217
|
+
"aria-label": props["aria-label"],
|
|
2218
|
+
"aria-labelledby": labelId,
|
|
2219
|
+
"aria-describedby": [descriptionId, keyboardId].filter(Boolean).join(" ") || void 0,
|
|
2220
|
+
"aria-controls": props["aria-controls"],
|
|
2221
|
+
"aria-haspopup": hasPopup,
|
|
2222
|
+
"aria-expanded": props["aria-expanded"]
|
|
2223
|
+
};
|
|
2224
|
+
if (selectionManager.selectionMode !== "none" && !isTrigger) ariaProps["aria-checked"] = isSelected;
|
|
2225
|
+
if (isVirtualized) {
|
|
2226
|
+
ariaProps["aria-posinset"] = item === null || item === void 0 ? void 0 : item.index;
|
|
2227
|
+
ariaProps["aria-setsize"] = $453cc9f0df89c0a5$export$77d5aafae4e095b2(state.collection);
|
|
2228
|
+
}
|
|
2229
|
+
let isPressedRef = useRef(false);
|
|
2230
|
+
let onPressChange = (isPressed) => {
|
|
2231
|
+
pressChangeProp === null || pressChangeProp === void 0 || pressChangeProp(isPressed);
|
|
2232
|
+
isPressedRef.current = isPressed;
|
|
2233
|
+
};
|
|
2234
|
+
let interaction = useRef(null);
|
|
2235
|
+
let onPressUp = (e) => {
|
|
2236
|
+
if (e.pointerType !== "keyboard") interaction.current = { pointerType: e.pointerType };
|
|
2237
|
+
if (e.pointerType === "mouse") {
|
|
2238
|
+
if (!isPressedRef.current) e.target.click();
|
|
2239
|
+
}
|
|
2240
|
+
pressUpProp === null || pressUpProp === void 0 || pressUpProp(e);
|
|
2241
|
+
};
|
|
2242
|
+
let onClick = (e) => {
|
|
2243
|
+
var _interaction_current, _interaction_current1;
|
|
2244
|
+
onClickProp === null || onClickProp === void 0 || onClickProp(e);
|
|
2245
|
+
performAction();
|
|
2246
|
+
$ea8dcbcb9ea1b556$export$13aea1a3cb5e3f1f(e, router, item.props.href, item === null || item === void 0 ? void 0 : item.props.routerOptions);
|
|
2247
|
+
let shouldClose = ((_interaction_current = interaction.current) === null || _interaction_current === void 0 ? void 0 : _interaction_current.pointerType) === "keyboard" ? ((_interaction_current1 = interaction.current) === null || _interaction_current1 === void 0 ? void 0 : _interaction_current1.key) === "Enter" || selectionManager.selectionMode === "none" || selectionManager.isLink(key) : selectionManager.selectionMode !== "multiple" || selectionManager.isLink(key);
|
|
2248
|
+
var _ref;
|
|
2249
|
+
shouldClose = (_ref = shouldCloseOnSelect !== null && shouldCloseOnSelect !== void 0 ? shouldCloseOnSelect : closeOnSelect) !== null && _ref !== void 0 ? _ref : shouldClose;
|
|
2250
|
+
if (onClose && !isTrigger && shouldClose) onClose();
|
|
2251
|
+
interaction.current = null;
|
|
2252
|
+
};
|
|
2253
|
+
let { itemProps, isFocused } = $880e95eb8b93ba9a$export$ecf600387e221c37({
|
|
2254
|
+
id,
|
|
2255
|
+
selectionManager,
|
|
2256
|
+
key,
|
|
2257
|
+
ref,
|
|
2258
|
+
shouldSelectOnPressUp: true,
|
|
2259
|
+
allowsDifferentPressOrigin: true,
|
|
2260
|
+
linkBehavior: "none",
|
|
2261
|
+
shouldUseVirtualFocus: data.shouldUseVirtualFocus
|
|
2262
|
+
});
|
|
2263
|
+
let { pressProps, isPressed } = $f6c31cce2adf654f$export$45712eceda6fad21({
|
|
2264
|
+
onPressStart,
|
|
2265
|
+
onPress,
|
|
2266
|
+
onPressUp,
|
|
2267
|
+
onPressChange,
|
|
2268
|
+
onPressEnd,
|
|
2269
|
+
isDisabled
|
|
2270
|
+
});
|
|
2271
|
+
let { hoverProps } = $6179b936705e76d3$export$ae780daf29e6d456({
|
|
2272
|
+
isDisabled,
|
|
2273
|
+
onHoverStart(e) {
|
|
2274
|
+
if (!$507fabe10e71c6fb$export$b9b3dfddab17db27() && !(isTriggerExpanded && hasPopup)) {
|
|
2275
|
+
selectionManager.setFocused(true);
|
|
2276
|
+
selectionManager.setFocusedKey(key);
|
|
2277
|
+
}
|
|
2278
|
+
hoverStartProp === null || hoverStartProp === void 0 || hoverStartProp(e);
|
|
2279
|
+
},
|
|
2280
|
+
onHoverChange,
|
|
2281
|
+
onHoverEnd
|
|
2282
|
+
});
|
|
2283
|
+
let { keyboardProps } = $46d819fcbaf35654$export$8f71654801c2f7cd({
|
|
2284
|
+
onKeyDown: (e) => {
|
|
2285
|
+
if (e.repeat) {
|
|
2286
|
+
e.continuePropagation();
|
|
2287
|
+
return;
|
|
2288
|
+
}
|
|
2289
|
+
switch (e.key) {
|
|
2290
|
+
case " ":
|
|
2291
|
+
interaction.current = {
|
|
2292
|
+
pointerType: "keyboard",
|
|
2293
|
+
key: " "
|
|
2294
|
+
};
|
|
2295
|
+
e.target.click();
|
|
2296
|
+
break;
|
|
2297
|
+
case "Enter":
|
|
2298
|
+
interaction.current = {
|
|
2299
|
+
pointerType: "keyboard",
|
|
2300
|
+
key: "Enter"
|
|
2301
|
+
};
|
|
2302
|
+
if (e.target.tagName !== "A") e.target.click();
|
|
2303
|
+
break;
|
|
2304
|
+
default:
|
|
2305
|
+
if (!isTrigger) e.continuePropagation();
|
|
2306
|
+
onKeyDown === null || onKeyDown === void 0 || onKeyDown(e);
|
|
2307
|
+
}
|
|
2308
|
+
},
|
|
2309
|
+
onKeyUp
|
|
2310
|
+
});
|
|
2311
|
+
let { focusableProps } = $f645667febf57a63$export$4c014de7c8940b4c({
|
|
2312
|
+
onBlur,
|
|
2313
|
+
onFocus,
|
|
2314
|
+
onFocusChange
|
|
2315
|
+
}, ref);
|
|
2316
|
+
let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(item === null || item === void 0 ? void 0 : item.props);
|
|
2317
|
+
delete domProps.id;
|
|
2318
|
+
let linkProps = $ea8dcbcb9ea1b556$export$7e924b3091a3bd18(item === null || item === void 0 ? void 0 : item.props);
|
|
2319
|
+
return {
|
|
2320
|
+
menuItemProps: {
|
|
2321
|
+
...ariaProps,
|
|
2322
|
+
...$3ef42575df84b30b$export$9d1611c77c2fe928(domProps, linkProps, isTrigger ? {
|
|
2323
|
+
onFocus: itemProps.onFocus,
|
|
2324
|
+
"data-collection": itemProps["data-collection"],
|
|
2325
|
+
"data-key": itemProps["data-key"]
|
|
2326
|
+
} : itemProps, pressProps, hoverProps, keyboardProps, focusableProps, data.shouldUseVirtualFocus || isTrigger ? { onMouseDown: (e) => e.preventDefault() } : void 0, isDisabled ? void 0 : { onClick }),
|
|
2327
|
+
tabIndex: itemProps.tabIndex != null && isTriggerExpanded && !data.shouldUseVirtualFocus ? -1 : itemProps.tabIndex
|
|
2328
|
+
},
|
|
2329
|
+
labelProps: { id: labelId },
|
|
2330
|
+
descriptionProps: { id: descriptionId },
|
|
2331
|
+
keyboardShortcutProps: { id: keyboardId },
|
|
2332
|
+
isFocused,
|
|
2333
|
+
isFocusVisible: isFocused && selectionManager.isFocused && $507fabe10e71c6fb$export$b9b3dfddab17db27() && !isTriggerExpanded,
|
|
2334
|
+
isSelected,
|
|
2335
|
+
isPressed,
|
|
2336
|
+
isDisabled
|
|
2337
|
+
};
|
|
2338
|
+
}
|
|
2339
|
+
//#endregion
|
|
2340
|
+
//#region ../../node_modules/.bun/@react-aria+menu@3.20.0+67f6792bdf102c28/node_modules/@react-aria/menu/dist/useMenuSection.mjs
|
|
2341
|
+
function $3e5eb2498db5b506$export$73f7a44322579622(props) {
|
|
2342
|
+
let { heading, "aria-label": ariaLabel } = props;
|
|
2343
|
+
let headingId = $bdb11010cef70236$export$f680877a34711e37();
|
|
2344
|
+
return {
|
|
2345
|
+
itemProps: { role: "presentation" },
|
|
2346
|
+
headingProps: heading ? {
|
|
2347
|
+
id: headingId,
|
|
2348
|
+
role: "presentation"
|
|
2349
|
+
} : {},
|
|
2350
|
+
groupProps: {
|
|
2351
|
+
role: "group",
|
|
2352
|
+
"aria-label": ariaLabel,
|
|
2353
|
+
"aria-labelledby": heading ? headingId : void 0
|
|
2354
|
+
}
|
|
2355
|
+
};
|
|
2356
|
+
}
|
|
2357
|
+
//#endregion
|
|
2358
|
+
//#region ../../node_modules/.bun/@react-aria+menu@3.20.0+67f6792bdf102c28/node_modules/@react-aria/menu/dist/useSafelyMouseToSubmenu.mjs
|
|
2359
|
+
const $d275435c250248f8$var$ALLOWED_INVALID_MOVEMENTS = 2;
|
|
2360
|
+
const $d275435c250248f8$var$THROTTLE_TIME = 50;
|
|
2361
|
+
const $d275435c250248f8$var$TIMEOUT_TIME = 1e3;
|
|
2362
|
+
const $d275435c250248f8$var$ANGLE_PADDING = Math.PI / 12;
|
|
2363
|
+
function $d275435c250248f8$export$85ec83e04c95f50a(options) {
|
|
2364
|
+
let { menuRef, submenuRef, isOpen, isDisabled } = options;
|
|
2365
|
+
let prevPointerPos = useRef(void 0);
|
|
2366
|
+
let submenuRect = useRef(void 0);
|
|
2367
|
+
let lastProcessedTime = useRef(0);
|
|
2368
|
+
let timeout = useRef(void 0);
|
|
2369
|
+
let autoCloseTimeout = useRef(void 0);
|
|
2370
|
+
let submenuSide = useRef(void 0);
|
|
2371
|
+
let movementsTowardsSubmenuCount = useRef(2);
|
|
2372
|
+
let [preventPointerEvents, setPreventPointerEvents] = useState(false);
|
|
2373
|
+
let updateSubmenuRect = () => {
|
|
2374
|
+
if (submenuRef.current) {
|
|
2375
|
+
submenuRect.current = submenuRef.current.getBoundingClientRect();
|
|
2376
|
+
submenuSide.current = void 0;
|
|
2377
|
+
}
|
|
2378
|
+
};
|
|
2379
|
+
$9daab02d461809db$export$683480f191c0e3ea({
|
|
2380
|
+
ref: submenuRef,
|
|
2381
|
+
onResize: updateSubmenuRect
|
|
2382
|
+
});
|
|
2383
|
+
let reset = () => {
|
|
2384
|
+
setPreventPointerEvents(false);
|
|
2385
|
+
movementsTowardsSubmenuCount.current = $d275435c250248f8$var$ALLOWED_INVALID_MOVEMENTS;
|
|
2386
|
+
prevPointerPos.current = void 0;
|
|
2387
|
+
};
|
|
2388
|
+
let modality = $507fabe10e71c6fb$export$98e20ec92f614cfe();
|
|
2389
|
+
let onPointerDown = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e) => {
|
|
2390
|
+
if (preventPointerEvents) e.preventDefault();
|
|
2391
|
+
});
|
|
2392
|
+
useEffect(() => {
|
|
2393
|
+
if (preventPointerEvents && menuRef.current) menuRef.current.style.pointerEvents = "none";
|
|
2394
|
+
else menuRef.current.style.pointerEvents = "";
|
|
2395
|
+
}, [menuRef, preventPointerEvents]);
|
|
2396
|
+
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
2397
|
+
let submenu = submenuRef.current;
|
|
2398
|
+
let menu = menuRef.current;
|
|
2399
|
+
if (isDisabled || !submenu || !isOpen || modality !== "pointer" || !menu) {
|
|
2400
|
+
reset();
|
|
2401
|
+
return;
|
|
2402
|
+
}
|
|
2403
|
+
submenuRect.current = submenu.getBoundingClientRect();
|
|
2404
|
+
let onPointerMove = (e) => {
|
|
2405
|
+
if (e.pointerType === "touch" || e.pointerType === "pen") return;
|
|
2406
|
+
let currentTime = Date.now();
|
|
2407
|
+
if (currentTime - lastProcessedTime.current < $d275435c250248f8$var$THROTTLE_TIME) return;
|
|
2408
|
+
clearTimeout(timeout.current);
|
|
2409
|
+
clearTimeout(autoCloseTimeout.current);
|
|
2410
|
+
let { clientX: mouseX, clientY: mouseY } = e;
|
|
2411
|
+
if (!prevPointerPos.current) {
|
|
2412
|
+
prevPointerPos.current = {
|
|
2413
|
+
x: mouseX,
|
|
2414
|
+
y: mouseY
|
|
2415
|
+
};
|
|
2416
|
+
return;
|
|
2417
|
+
}
|
|
2418
|
+
if (!submenuRect.current) return;
|
|
2419
|
+
if (!submenuSide.current) submenuSide.current = mouseX > submenuRect.current.right ? "left" : "right";
|
|
2420
|
+
if (mouseX < menu.getBoundingClientRect().left || mouseX > menu.getBoundingClientRect().right || mouseY < menu.getBoundingClientRect().top || mouseY > menu.getBoundingClientRect().bottom) {
|
|
2421
|
+
reset();
|
|
2422
|
+
return;
|
|
2423
|
+
}
|
|
2424
|
+
let prevMouseX = prevPointerPos.current.x;
|
|
2425
|
+
let prevMouseY = prevPointerPos.current.y;
|
|
2426
|
+
let toSubmenuX = submenuSide.current === "right" ? submenuRect.current.left - prevMouseX : prevMouseX - submenuRect.current.right;
|
|
2427
|
+
let angleTop = Math.atan2(prevMouseY - submenuRect.current.top, toSubmenuX) + $d275435c250248f8$var$ANGLE_PADDING;
|
|
2428
|
+
let angleBottom = Math.atan2(prevMouseY - submenuRect.current.bottom, toSubmenuX) - $d275435c250248f8$var$ANGLE_PADDING;
|
|
2429
|
+
let anglePointer = Math.atan2(prevMouseY - mouseY, submenuSide.current === "left" ? -(mouseX - prevMouseX) : mouseX - prevMouseX);
|
|
2430
|
+
let isMovingTowardsSubmenu = anglePointer < angleTop && anglePointer > angleBottom;
|
|
2431
|
+
movementsTowardsSubmenuCount.current = isMovingTowardsSubmenu ? Math.min(movementsTowardsSubmenuCount.current + 1, $d275435c250248f8$var$ALLOWED_INVALID_MOVEMENTS) : Math.max(movementsTowardsSubmenuCount.current - 1, 0);
|
|
2432
|
+
if (movementsTowardsSubmenuCount.current >= $d275435c250248f8$var$ALLOWED_INVALID_MOVEMENTS) setPreventPointerEvents(true);
|
|
2433
|
+
else setPreventPointerEvents(false);
|
|
2434
|
+
lastProcessedTime.current = currentTime;
|
|
2435
|
+
prevPointerPos.current = {
|
|
2436
|
+
x: mouseX,
|
|
2437
|
+
y: mouseY
|
|
2438
|
+
};
|
|
2439
|
+
if (isMovingTowardsSubmenu) timeout.current = setTimeout(() => {
|
|
2440
|
+
reset();
|
|
2441
|
+
autoCloseTimeout.current = setTimeout(() => {
|
|
2442
|
+
let target = document.elementFromPoint(mouseX, mouseY);
|
|
2443
|
+
if (target && $d4ee10de306f2510$export$4282f70798064fe0(menu, target)) target.dispatchEvent(new PointerEvent("pointerover", {
|
|
2444
|
+
bubbles: true,
|
|
2445
|
+
cancelable: true
|
|
2446
|
+
}));
|
|
2447
|
+
}, 100);
|
|
2448
|
+
}, $d275435c250248f8$var$TIMEOUT_TIME);
|
|
2449
|
+
};
|
|
2450
|
+
window.addEventListener("pointermove", onPointerMove);
|
|
2451
|
+
window.addEventListener("pointerdown", onPointerDown, true);
|
|
2452
|
+
return () => {
|
|
2453
|
+
window.removeEventListener("pointermove", onPointerMove);
|
|
2454
|
+
window.removeEventListener("pointerdown", onPointerDown, true);
|
|
2455
|
+
clearTimeout(timeout.current);
|
|
2456
|
+
clearTimeout(autoCloseTimeout.current);
|
|
2457
|
+
movementsTowardsSubmenuCount.current = $d275435c250248f8$var$ALLOWED_INVALID_MOVEMENTS;
|
|
2458
|
+
};
|
|
2459
|
+
}, [
|
|
2460
|
+
isDisabled,
|
|
2461
|
+
isOpen,
|
|
2462
|
+
menuRef,
|
|
2463
|
+
modality,
|
|
2464
|
+
setPreventPointerEvents,
|
|
2465
|
+
submenuRef
|
|
2466
|
+
]);
|
|
2467
|
+
}
|
|
2468
|
+
//#endregion
|
|
2469
|
+
//#region ../../node_modules/.bun/@react-aria+menu@3.20.0+67f6792bdf102c28/node_modules/@react-aria/menu/dist/useSubmenuTrigger.mjs
|
|
2470
|
+
function $0065b146e7192841$export$7138b0d059a6e743(props, state, ref) {
|
|
2471
|
+
let { parentMenuRef, submenuRef, type = "menu", isDisabled, delay = 200, shouldUseVirtualFocus } = props;
|
|
2472
|
+
let submenuTriggerId = $bdb11010cef70236$export$f680877a34711e37();
|
|
2473
|
+
let overlayId = $bdb11010cef70236$export$f680877a34711e37();
|
|
2474
|
+
let { direction } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
2475
|
+
let openTimeout = useRef(void 0);
|
|
2476
|
+
let cancelOpenTimeout = useCallback(() => {
|
|
2477
|
+
if (openTimeout.current) {
|
|
2478
|
+
clearTimeout(openTimeout.current);
|
|
2479
|
+
openTimeout.current = void 0;
|
|
2480
|
+
}
|
|
2481
|
+
}, [openTimeout]);
|
|
2482
|
+
let onSubmenuOpen = useCallback((focusStrategy) => {
|
|
2483
|
+
cancelOpenTimeout();
|
|
2484
|
+
state.open(focusStrategy);
|
|
2485
|
+
}, [state, cancelOpenTimeout]);
|
|
2486
|
+
let onSubmenuClose = useCallback(() => {
|
|
2487
|
+
cancelOpenTimeout();
|
|
2488
|
+
state.close();
|
|
2489
|
+
}, [state, cancelOpenTimeout]);
|
|
2490
|
+
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
2491
|
+
return () => {
|
|
2492
|
+
cancelOpenTimeout();
|
|
2493
|
+
};
|
|
2494
|
+
}, [cancelOpenTimeout]);
|
|
2495
|
+
let submenuKeyDown = (e) => {
|
|
2496
|
+
if (!$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, document.activeElement)) return;
|
|
2497
|
+
switch (e.key) {
|
|
2498
|
+
case "ArrowLeft":
|
|
2499
|
+
if (direction === "ltr" && $d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, e.target)) {
|
|
2500
|
+
e.preventDefault();
|
|
2501
|
+
e.stopPropagation();
|
|
2502
|
+
onSubmenuClose();
|
|
2503
|
+
if (!shouldUseVirtualFocus && ref.current) $7215afc6de606d6b$export$de79e2c695e052f3(ref.current);
|
|
2504
|
+
}
|
|
2505
|
+
break;
|
|
2506
|
+
case "ArrowRight":
|
|
2507
|
+
if (direction === "rtl" && $d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, e.target)) {
|
|
2508
|
+
e.preventDefault();
|
|
2509
|
+
e.stopPropagation();
|
|
2510
|
+
onSubmenuClose();
|
|
2511
|
+
if (!shouldUseVirtualFocus && ref.current) $7215afc6de606d6b$export$de79e2c695e052f3(ref.current);
|
|
2512
|
+
}
|
|
2513
|
+
break;
|
|
2514
|
+
case "Escape": if ($d4ee10de306f2510$export$4282f70798064fe0(submenuRef.current, e.target)) {
|
|
2515
|
+
e.stopPropagation();
|
|
2516
|
+
onSubmenuClose();
|
|
2517
|
+
if (!shouldUseVirtualFocus && ref.current) $7215afc6de606d6b$export$de79e2c695e052f3(ref.current);
|
|
2518
|
+
}
|
|
2519
|
+
}
|
|
2520
|
+
};
|
|
2521
|
+
var _state_focusStrategy;
|
|
2522
|
+
let submenuProps = {
|
|
2523
|
+
id: overlayId,
|
|
2524
|
+
"aria-labelledby": submenuTriggerId,
|
|
2525
|
+
submenuLevel: state.submenuLevel,
|
|
2526
|
+
...type === "menu" && {
|
|
2527
|
+
onClose: state.closeAll,
|
|
2528
|
+
autoFocus: (_state_focusStrategy = state.focusStrategy) !== null && _state_focusStrategy !== void 0 ? _state_focusStrategy : void 0,
|
|
2529
|
+
onKeyDown: submenuKeyDown
|
|
2530
|
+
}
|
|
2531
|
+
};
|
|
2532
|
+
let submenuTriggerKeyDown = (e) => {
|
|
2533
|
+
switch (e.key) {
|
|
2534
|
+
case "ArrowRight":
|
|
2535
|
+
if (!isDisabled) if (direction === "ltr") {
|
|
2536
|
+
e.preventDefault();
|
|
2537
|
+
if (!state.isOpen) onSubmenuOpen("first");
|
|
2538
|
+
if (type === "menu" && !!(submenuRef === null || submenuRef === void 0 ? void 0 : submenuRef.current) && document.activeElement === (ref === null || ref === void 0 ? void 0 : ref.current)) $7215afc6de606d6b$export$de79e2c695e052f3(submenuRef.current);
|
|
2539
|
+
} else if (state.isOpen) onSubmenuClose();
|
|
2540
|
+
else e.continuePropagation();
|
|
2541
|
+
break;
|
|
2542
|
+
case "ArrowLeft":
|
|
2543
|
+
if (!isDisabled) if (direction === "rtl") {
|
|
2544
|
+
e.preventDefault();
|
|
2545
|
+
if (!state.isOpen) onSubmenuOpen("first");
|
|
2546
|
+
if (type === "menu" && !!(submenuRef === null || submenuRef === void 0 ? void 0 : submenuRef.current) && document.activeElement === (ref === null || ref === void 0 ? void 0 : ref.current)) $7215afc6de606d6b$export$de79e2c695e052f3(submenuRef.current);
|
|
2547
|
+
} else if (state.isOpen) onSubmenuClose();
|
|
2548
|
+
else e.continuePropagation();
|
|
2549
|
+
break;
|
|
2550
|
+
default: e.continuePropagation();
|
|
2551
|
+
}
|
|
2552
|
+
};
|
|
2553
|
+
let onPressStart = (e) => {
|
|
2554
|
+
if (!isDisabled && (e.pointerType === "virtual" || e.pointerType === "keyboard")) onSubmenuOpen("first");
|
|
2555
|
+
};
|
|
2556
|
+
let onPress = (e) => {
|
|
2557
|
+
if (!isDisabled && (e.pointerType === "touch" || e.pointerType === "mouse")) onSubmenuOpen();
|
|
2558
|
+
};
|
|
2559
|
+
let onHoverChange = (isHovered) => {
|
|
2560
|
+
if (!isDisabled) {
|
|
2561
|
+
if (isHovered && !state.isOpen) {
|
|
2562
|
+
if (!openTimeout.current) openTimeout.current = setTimeout(() => {
|
|
2563
|
+
onSubmenuOpen();
|
|
2564
|
+
}, delay);
|
|
2565
|
+
} else if (!isHovered) cancelOpenTimeout();
|
|
2566
|
+
}
|
|
2567
|
+
};
|
|
2568
|
+
$e9faafb641e167db$export$90fc3a17d93f704c(parentMenuRef, "focusin", (e) => {
|
|
2569
|
+
if (state.isOpen && $d4ee10de306f2510$export$4282f70798064fe0(parentMenuRef.current, e.target) && e.target !== ref.current) onSubmenuClose();
|
|
2570
|
+
});
|
|
2571
|
+
let shouldCloseOnInteractOutside = (target) => {
|
|
2572
|
+
if (target !== ref.current) return true;
|
|
2573
|
+
return false;
|
|
2574
|
+
};
|
|
2575
|
+
$d275435c250248f8$export$85ec83e04c95f50a({
|
|
2576
|
+
menuRef: parentMenuRef,
|
|
2577
|
+
submenuRef,
|
|
2578
|
+
isOpen: state.isOpen,
|
|
2579
|
+
isDisabled
|
|
2580
|
+
});
|
|
2581
|
+
return {
|
|
2582
|
+
submenuTriggerProps: {
|
|
2583
|
+
id: submenuTriggerId,
|
|
2584
|
+
"aria-controls": state.isOpen ? overlayId : void 0,
|
|
2585
|
+
"aria-haspopup": !isDisabled ? type : void 0,
|
|
2586
|
+
"aria-expanded": state.isOpen ? "true" : "false",
|
|
2587
|
+
onPressStart,
|
|
2588
|
+
onPress,
|
|
2589
|
+
onHoverChange,
|
|
2590
|
+
onKeyDown: submenuTriggerKeyDown,
|
|
2591
|
+
isOpen: state.isOpen
|
|
2592
|
+
},
|
|
2593
|
+
submenuProps,
|
|
2594
|
+
popoverProps: {
|
|
2595
|
+
isNonModal: true,
|
|
2596
|
+
shouldCloseOnInteractOutside
|
|
2597
|
+
}
|
|
2598
|
+
};
|
|
2599
|
+
}
|
|
2600
|
+
//#endregion
|
|
2601
|
+
//#region ../../node_modules/.bun/@react-aria+collections@3.0.2+67f6792bdf102c28/node_modules/@react-aria/collections/dist/BaseCollection.mjs
|
|
2602
|
+
var $23b9f4fcf0fe224b$export$d68d59712b04d9d1 = class {
|
|
2603
|
+
get childNodes() {
|
|
2604
|
+
throw new Error("childNodes is not supported");
|
|
2605
|
+
}
|
|
2606
|
+
clone() {
|
|
2607
|
+
let node = new this.constructor(this.key);
|
|
2608
|
+
node.value = this.value;
|
|
2609
|
+
node.level = this.level;
|
|
2610
|
+
node.hasChildNodes = this.hasChildNodes;
|
|
2611
|
+
node.rendered = this.rendered;
|
|
2612
|
+
node.textValue = this.textValue;
|
|
2613
|
+
node["aria-label"] = this["aria-label"];
|
|
2614
|
+
node.index = this.index;
|
|
2615
|
+
node.parentKey = this.parentKey;
|
|
2616
|
+
node.prevKey = this.prevKey;
|
|
2617
|
+
node.nextKey = this.nextKey;
|
|
2618
|
+
node.firstChildKey = this.firstChildKey;
|
|
2619
|
+
node.lastChildKey = this.lastChildKey;
|
|
2620
|
+
node.props = this.props;
|
|
2621
|
+
node.render = this.render;
|
|
2622
|
+
node.colSpan = this.colSpan;
|
|
2623
|
+
node.colIndex = this.colIndex;
|
|
2624
|
+
return node;
|
|
2625
|
+
}
|
|
2626
|
+
filter(collection, newCollection, filterFn) {
|
|
2627
|
+
let clone = this.clone();
|
|
2628
|
+
newCollection.addDescendants(clone, collection);
|
|
2629
|
+
return clone;
|
|
2630
|
+
}
|
|
2631
|
+
constructor(key) {
|
|
2632
|
+
this.value = null;
|
|
2633
|
+
this.level = 0;
|
|
2634
|
+
this.hasChildNodes = false;
|
|
2635
|
+
this.rendered = null;
|
|
2636
|
+
this.textValue = "";
|
|
2637
|
+
this["aria-label"] = void 0;
|
|
2638
|
+
this.index = 0;
|
|
2639
|
+
this.parentKey = null;
|
|
2640
|
+
this.prevKey = null;
|
|
2641
|
+
this.nextKey = null;
|
|
2642
|
+
this.firstChildKey = null;
|
|
2643
|
+
this.lastChildKey = null;
|
|
2644
|
+
this.props = {};
|
|
2645
|
+
this.colSpan = null;
|
|
2646
|
+
this.colIndex = null;
|
|
2647
|
+
this.type = this.constructor.type;
|
|
2648
|
+
this.key = key;
|
|
2649
|
+
}
|
|
2650
|
+
};
|
|
2651
|
+
var $23b9f4fcf0fe224b$export$b1918e978f1ee46f = class extends $23b9f4fcf0fe224b$export$d68d59712b04d9d1 {
|
|
2652
|
+
filter(collection, newCollection, filterFn) {
|
|
2653
|
+
let [firstKey, lastKey] = $23b9f4fcf0fe224b$var$filterChildren(collection, newCollection, this.firstChildKey, filterFn);
|
|
2654
|
+
let newNode = this.clone();
|
|
2655
|
+
newNode.firstChildKey = firstKey;
|
|
2656
|
+
newNode.lastChildKey = lastKey;
|
|
2657
|
+
return newNode;
|
|
2658
|
+
}
|
|
2659
|
+
};
|
|
2660
|
+
var $23b9f4fcf0fe224b$export$5ae2504e948afce5 = class extends $23b9f4fcf0fe224b$export$d68d59712b04d9d1 {};
|
|
2661
|
+
$23b9f4fcf0fe224b$export$5ae2504e948afce5.type = "header";
|
|
2662
|
+
var $23b9f4fcf0fe224b$export$8258a0665a675899 = class extends $23b9f4fcf0fe224b$export$d68d59712b04d9d1 {};
|
|
2663
|
+
$23b9f4fcf0fe224b$export$8258a0665a675899.type = "loader";
|
|
2664
|
+
var $23b9f4fcf0fe224b$export$fd11f34e1d07f134 = class extends $23b9f4fcf0fe224b$export$b1918e978f1ee46f {
|
|
2665
|
+
filter(collection, newCollection, filterFn) {
|
|
2666
|
+
if (filterFn(this.textValue, this)) {
|
|
2667
|
+
let clone = this.clone();
|
|
2668
|
+
newCollection.addDescendants(clone, collection);
|
|
2669
|
+
return clone;
|
|
2670
|
+
}
|
|
2671
|
+
return null;
|
|
2672
|
+
}
|
|
2673
|
+
};
|
|
2674
|
+
$23b9f4fcf0fe224b$export$fd11f34e1d07f134.type = "item";
|
|
2675
|
+
var $23b9f4fcf0fe224b$export$437f11dc9b403b78 = class extends $23b9f4fcf0fe224b$export$b1918e978f1ee46f {
|
|
2676
|
+
filter(collection, newCollection, filterFn) {
|
|
2677
|
+
let filteredSection = super.filter(collection, newCollection, filterFn);
|
|
2678
|
+
if (filteredSection) {
|
|
2679
|
+
if (filteredSection.lastChildKey !== null) {
|
|
2680
|
+
let lastChild = collection.getItem(filteredSection.lastChildKey);
|
|
2681
|
+
if (lastChild && lastChild.type !== "header") return filteredSection;
|
|
2682
|
+
}
|
|
2683
|
+
}
|
|
2684
|
+
return null;
|
|
2685
|
+
}
|
|
2686
|
+
};
|
|
2687
|
+
$23b9f4fcf0fe224b$export$437f11dc9b403b78.type = "section";
|
|
2688
|
+
var $23b9f4fcf0fe224b$export$408d25a4e12db025 = class {
|
|
2689
|
+
get size() {
|
|
2690
|
+
return this.itemCount;
|
|
2691
|
+
}
|
|
2692
|
+
getKeys() {
|
|
2693
|
+
return this.keyMap.keys();
|
|
2694
|
+
}
|
|
2695
|
+
*[Symbol.iterator]() {
|
|
2696
|
+
let node = this.firstKey != null ? this.keyMap.get(this.firstKey) : void 0;
|
|
2697
|
+
while (node) {
|
|
2698
|
+
yield node;
|
|
2699
|
+
node = node.nextKey != null ? this.keyMap.get(node.nextKey) : void 0;
|
|
2700
|
+
}
|
|
2701
|
+
}
|
|
2702
|
+
getChildren(key) {
|
|
2703
|
+
let keyMap = this.keyMap;
|
|
2704
|
+
return { *[Symbol.iterator]() {
|
|
2705
|
+
let parent = keyMap.get(key);
|
|
2706
|
+
let node = (parent === null || parent === void 0 ? void 0 : parent.firstChildKey) != null ? keyMap.get(parent.firstChildKey) : null;
|
|
2707
|
+
while (node) {
|
|
2708
|
+
yield node;
|
|
2709
|
+
node = node.nextKey != null ? keyMap.get(node.nextKey) : void 0;
|
|
2710
|
+
}
|
|
2711
|
+
} };
|
|
2712
|
+
}
|
|
2713
|
+
getKeyBefore(key) {
|
|
2714
|
+
let node = this.keyMap.get(key);
|
|
2715
|
+
if (!node) return null;
|
|
2716
|
+
if (node.prevKey != null) {
|
|
2717
|
+
node = this.keyMap.get(node.prevKey);
|
|
2718
|
+
while (node && node.type !== "item" && node.lastChildKey != null) node = this.keyMap.get(node.lastChildKey);
|
|
2719
|
+
var _node_key;
|
|
2720
|
+
return (_node_key = node === null || node === void 0 ? void 0 : node.key) !== null && _node_key !== void 0 ? _node_key : null;
|
|
2721
|
+
}
|
|
2722
|
+
return node.parentKey;
|
|
2723
|
+
}
|
|
2724
|
+
getKeyAfter(key) {
|
|
2725
|
+
let node = this.keyMap.get(key);
|
|
2726
|
+
if (!node) return null;
|
|
2727
|
+
if (node.type !== "item" && node.firstChildKey != null) return node.firstChildKey;
|
|
2728
|
+
while (node) {
|
|
2729
|
+
if (node.nextKey != null) return node.nextKey;
|
|
2730
|
+
if (node.parentKey != null) node = this.keyMap.get(node.parentKey);
|
|
2731
|
+
else return null;
|
|
2732
|
+
}
|
|
2733
|
+
return null;
|
|
2734
|
+
}
|
|
2735
|
+
getFirstKey() {
|
|
2736
|
+
return this.firstKey;
|
|
2737
|
+
}
|
|
2738
|
+
getLastKey() {
|
|
2739
|
+
let node = this.lastKey != null ? this.keyMap.get(this.lastKey) : null;
|
|
2740
|
+
while ((node === null || node === void 0 ? void 0 : node.lastChildKey) != null) node = this.keyMap.get(node.lastChildKey);
|
|
2741
|
+
var _node_key;
|
|
2742
|
+
return (_node_key = node === null || node === void 0 ? void 0 : node.key) !== null && _node_key !== void 0 ? _node_key : null;
|
|
2743
|
+
}
|
|
2744
|
+
getItem(key) {
|
|
2745
|
+
var _this_keyMap_get;
|
|
2746
|
+
return (_this_keyMap_get = this.keyMap.get(key)) !== null && _this_keyMap_get !== void 0 ? _this_keyMap_get : null;
|
|
2747
|
+
}
|
|
2748
|
+
at() {
|
|
2749
|
+
throw new Error("Not implemented");
|
|
2750
|
+
}
|
|
2751
|
+
clone() {
|
|
2752
|
+
let Constructor = this.constructor;
|
|
2753
|
+
let collection = new Constructor();
|
|
2754
|
+
collection.keyMap = new Map(this.keyMap);
|
|
2755
|
+
collection.firstKey = this.firstKey;
|
|
2756
|
+
collection.lastKey = this.lastKey;
|
|
2757
|
+
collection.itemCount = this.itemCount;
|
|
2758
|
+
return collection;
|
|
2759
|
+
}
|
|
2760
|
+
addNode(node) {
|
|
2761
|
+
if (this.frozen) throw new Error("Cannot add a node to a frozen collection");
|
|
2762
|
+
if (node.type === "item" && this.keyMap.get(node.key) == null) this.itemCount++;
|
|
2763
|
+
this.keyMap.set(node.key, node);
|
|
2764
|
+
}
|
|
2765
|
+
addDescendants(node, oldCollection) {
|
|
2766
|
+
this.addNode(node);
|
|
2767
|
+
let children = oldCollection.getChildren(node.key);
|
|
2768
|
+
for (let child of children) this.addDescendants(child, oldCollection);
|
|
2769
|
+
}
|
|
2770
|
+
removeNode(key) {
|
|
2771
|
+
if (this.frozen) throw new Error("Cannot remove a node to a frozen collection");
|
|
2772
|
+
let node = this.keyMap.get(key);
|
|
2773
|
+
if (node != null && node.type === "item") this.itemCount--;
|
|
2774
|
+
this.keyMap.delete(key);
|
|
2775
|
+
}
|
|
2776
|
+
commit(firstKey, lastKey, isSSR = false) {
|
|
2777
|
+
if (this.frozen) throw new Error("Cannot commit a frozen collection");
|
|
2778
|
+
this.firstKey = firstKey;
|
|
2779
|
+
this.lastKey = lastKey;
|
|
2780
|
+
this.frozen = !isSSR;
|
|
2781
|
+
}
|
|
2782
|
+
filter(filterFn) {
|
|
2783
|
+
let newCollection = new this.constructor();
|
|
2784
|
+
let [firstKey, lastKey] = $23b9f4fcf0fe224b$var$filterChildren(this, newCollection, this.firstKey, filterFn);
|
|
2785
|
+
newCollection === null || newCollection === void 0 || newCollection.commit(firstKey, lastKey);
|
|
2786
|
+
return newCollection;
|
|
2787
|
+
}
|
|
2788
|
+
constructor() {
|
|
2789
|
+
this.keyMap = /* @__PURE__ */ new Map();
|
|
2790
|
+
this.firstKey = null;
|
|
2791
|
+
this.lastKey = null;
|
|
2792
|
+
this.frozen = false;
|
|
2793
|
+
this.itemCount = 0;
|
|
2794
|
+
}
|
|
2795
|
+
};
|
|
2796
|
+
function $23b9f4fcf0fe224b$var$filterChildren(collection, newCollection, firstChildKey, filterFn) {
|
|
2797
|
+
if (firstChildKey == null) return [null, null];
|
|
2798
|
+
let firstNode = null;
|
|
2799
|
+
let lastNode = null;
|
|
2800
|
+
let currentNode = collection.getItem(firstChildKey);
|
|
2801
|
+
while (currentNode != null) {
|
|
2802
|
+
let newNode = currentNode.filter(collection, newCollection, filterFn);
|
|
2803
|
+
if (newNode != null) {
|
|
2804
|
+
newNode.nextKey = null;
|
|
2805
|
+
if (lastNode) {
|
|
2806
|
+
newNode.prevKey = lastNode.key;
|
|
2807
|
+
lastNode.nextKey = newNode.key;
|
|
2808
|
+
}
|
|
2809
|
+
if (firstNode == null) firstNode = newNode;
|
|
2810
|
+
newCollection.addNode(newNode);
|
|
2811
|
+
lastNode = newNode;
|
|
2812
|
+
}
|
|
2813
|
+
currentNode = currentNode.nextKey ? collection.getItem(currentNode.nextKey) : null;
|
|
2814
|
+
}
|
|
2815
|
+
if (lastNode && lastNode.type === "separator") {
|
|
2816
|
+
let prevKey = lastNode.prevKey;
|
|
2817
|
+
newCollection.removeNode(lastNode.key);
|
|
2818
|
+
if (prevKey) {
|
|
2819
|
+
lastNode = newCollection.getItem(prevKey);
|
|
2820
|
+
lastNode.nextKey = null;
|
|
2821
|
+
} else lastNode = null;
|
|
2822
|
+
}
|
|
2823
|
+
var _firstNode_key, _lastNode_key;
|
|
2824
|
+
return [(_firstNode_key = firstNode === null || firstNode === void 0 ? void 0 : firstNode.key) !== null && _firstNode_key !== void 0 ? _firstNode_key : null, (_lastNode_key = lastNode === null || lastNode === void 0 ? void 0 : lastNode.key) !== null && _lastNode_key !== void 0 ? _lastNode_key : null];
|
|
2825
|
+
}
|
|
2826
|
+
//#endregion
|
|
2827
|
+
//#region ../../node_modules/.bun/@react-aria+collections@3.0.2+67f6792bdf102c28/node_modules/@react-aria/collections/dist/Document.mjs
|
|
2828
|
+
var $681cc3c98f569e39$export$410b0c854570d131 = class {
|
|
2829
|
+
*[Symbol.iterator]() {
|
|
2830
|
+
let node = this.firstChild;
|
|
2831
|
+
while (node) {
|
|
2832
|
+
yield node;
|
|
2833
|
+
node = node.nextSibling;
|
|
2834
|
+
}
|
|
2835
|
+
}
|
|
2836
|
+
get firstChild() {
|
|
2837
|
+
return this._firstChild;
|
|
2838
|
+
}
|
|
2839
|
+
set firstChild(firstChild) {
|
|
2840
|
+
this._firstChild = firstChild;
|
|
2841
|
+
this.ownerDocument.markDirty(this);
|
|
2842
|
+
}
|
|
2843
|
+
get lastChild() {
|
|
2844
|
+
return this._lastChild;
|
|
2845
|
+
}
|
|
2846
|
+
set lastChild(lastChild) {
|
|
2847
|
+
this._lastChild = lastChild;
|
|
2848
|
+
this.ownerDocument.markDirty(this);
|
|
2849
|
+
}
|
|
2850
|
+
get previousSibling() {
|
|
2851
|
+
return this._previousSibling;
|
|
2852
|
+
}
|
|
2853
|
+
set previousSibling(previousSibling) {
|
|
2854
|
+
this._previousSibling = previousSibling;
|
|
2855
|
+
this.ownerDocument.markDirty(this);
|
|
2856
|
+
}
|
|
2857
|
+
get nextSibling() {
|
|
2858
|
+
return this._nextSibling;
|
|
2859
|
+
}
|
|
2860
|
+
set nextSibling(nextSibling) {
|
|
2861
|
+
this._nextSibling = nextSibling;
|
|
2862
|
+
this.ownerDocument.markDirty(this);
|
|
2863
|
+
}
|
|
2864
|
+
get parentNode() {
|
|
2865
|
+
return this._parentNode;
|
|
2866
|
+
}
|
|
2867
|
+
set parentNode(parentNode) {
|
|
2868
|
+
this._parentNode = parentNode;
|
|
2869
|
+
this.ownerDocument.markDirty(this);
|
|
2870
|
+
}
|
|
2871
|
+
get isConnected() {
|
|
2872
|
+
var _this_parentNode;
|
|
2873
|
+
return ((_this_parentNode = this.parentNode) === null || _this_parentNode === void 0 ? void 0 : _this_parentNode.isConnected) || false;
|
|
2874
|
+
}
|
|
2875
|
+
invalidateChildIndices(child) {
|
|
2876
|
+
if (this._minInvalidChildIndex == null || !this._minInvalidChildIndex.isConnected || child.index < this._minInvalidChildIndex.index) {
|
|
2877
|
+
this._minInvalidChildIndex = child;
|
|
2878
|
+
this.ownerDocument.markDirty(this);
|
|
2879
|
+
}
|
|
2880
|
+
}
|
|
2881
|
+
updateChildIndices() {
|
|
2882
|
+
let node = this._minInvalidChildIndex;
|
|
2883
|
+
while (node) {
|
|
2884
|
+
node.index = node.previousSibling ? node.previousSibling.index + 1 : 0;
|
|
2885
|
+
node = node.nextSibling;
|
|
2886
|
+
}
|
|
2887
|
+
this._minInvalidChildIndex = null;
|
|
2888
|
+
}
|
|
2889
|
+
appendChild(child) {
|
|
2890
|
+
if (child.parentNode) child.parentNode.removeChild(child);
|
|
2891
|
+
if (this.firstChild == null) this.firstChild = child;
|
|
2892
|
+
if (this.lastChild) {
|
|
2893
|
+
this.lastChild.nextSibling = child;
|
|
2894
|
+
child.index = this.lastChild.index + 1;
|
|
2895
|
+
child.previousSibling = this.lastChild;
|
|
2896
|
+
} else {
|
|
2897
|
+
child.previousSibling = null;
|
|
2898
|
+
child.index = 0;
|
|
2899
|
+
}
|
|
2900
|
+
child.parentNode = this;
|
|
2901
|
+
child.nextSibling = null;
|
|
2902
|
+
this.lastChild = child;
|
|
2903
|
+
this.ownerDocument.markDirty(this);
|
|
2904
|
+
if (this.isConnected) this.ownerDocument.queueUpdate();
|
|
2905
|
+
}
|
|
2906
|
+
insertBefore(newNode, referenceNode) {
|
|
2907
|
+
if (referenceNode == null) return this.appendChild(newNode);
|
|
2908
|
+
if (newNode.parentNode) newNode.parentNode.removeChild(newNode);
|
|
2909
|
+
newNode.nextSibling = referenceNode;
|
|
2910
|
+
newNode.previousSibling = referenceNode.previousSibling;
|
|
2911
|
+
newNode.index = referenceNode.index - 1;
|
|
2912
|
+
if (this.firstChild === referenceNode) this.firstChild = newNode;
|
|
2913
|
+
else if (referenceNode.previousSibling) referenceNode.previousSibling.nextSibling = newNode;
|
|
2914
|
+
referenceNode.previousSibling = newNode;
|
|
2915
|
+
newNode.parentNode = referenceNode.parentNode;
|
|
2916
|
+
this.invalidateChildIndices(newNode);
|
|
2917
|
+
if (this.isConnected) this.ownerDocument.queueUpdate();
|
|
2918
|
+
}
|
|
2919
|
+
removeChild(child) {
|
|
2920
|
+
if (child.parentNode !== this) return;
|
|
2921
|
+
if (this._minInvalidChildIndex === child) this._minInvalidChildIndex = null;
|
|
2922
|
+
if (child.nextSibling) {
|
|
2923
|
+
this.invalidateChildIndices(child.nextSibling);
|
|
2924
|
+
child.nextSibling.previousSibling = child.previousSibling;
|
|
2925
|
+
}
|
|
2926
|
+
if (child.previousSibling) child.previousSibling.nextSibling = child.nextSibling;
|
|
2927
|
+
if (this.firstChild === child) this.firstChild = child.nextSibling;
|
|
2928
|
+
if (this.lastChild === child) this.lastChild = child.previousSibling;
|
|
2929
|
+
child.parentNode = null;
|
|
2930
|
+
child.nextSibling = null;
|
|
2931
|
+
child.previousSibling = null;
|
|
2932
|
+
child.index = 0;
|
|
2933
|
+
this.ownerDocument.markDirty(child);
|
|
2934
|
+
if (this.isConnected) this.ownerDocument.queueUpdate();
|
|
2935
|
+
}
|
|
2936
|
+
addEventListener() {}
|
|
2937
|
+
removeEventListener() {}
|
|
2938
|
+
get previousVisibleSibling() {
|
|
2939
|
+
let node = this.previousSibling;
|
|
2940
|
+
while (node && node.isHidden) node = node.previousSibling;
|
|
2941
|
+
return node;
|
|
2942
|
+
}
|
|
2943
|
+
get nextVisibleSibling() {
|
|
2944
|
+
let node = this.nextSibling;
|
|
2945
|
+
while (node && node.isHidden) node = node.nextSibling;
|
|
2946
|
+
return node;
|
|
2947
|
+
}
|
|
2948
|
+
get firstVisibleChild() {
|
|
2949
|
+
let node = this.firstChild;
|
|
2950
|
+
while (node && node.isHidden) node = node.nextSibling;
|
|
2951
|
+
return node;
|
|
2952
|
+
}
|
|
2953
|
+
get lastVisibleChild() {
|
|
2954
|
+
let node = this.lastChild;
|
|
2955
|
+
while (node && node.isHidden) node = node.previousSibling;
|
|
2956
|
+
return node;
|
|
2957
|
+
}
|
|
2958
|
+
constructor(ownerDocument) {
|
|
2959
|
+
this._firstChild = null;
|
|
2960
|
+
this._lastChild = null;
|
|
2961
|
+
this._previousSibling = null;
|
|
2962
|
+
this._nextSibling = null;
|
|
2963
|
+
this._parentNode = null;
|
|
2964
|
+
this._minInvalidChildIndex = null;
|
|
2965
|
+
this.ownerDocument = ownerDocument;
|
|
2966
|
+
}
|
|
2967
|
+
};
|
|
2968
|
+
var $681cc3c98f569e39$export$dc064fe9e59310fd = class $681cc3c98f569e39$export$dc064fe9e59310fd extends $681cc3c98f569e39$export$410b0c854570d131 {
|
|
2969
|
+
get index() {
|
|
2970
|
+
return this._index;
|
|
2971
|
+
}
|
|
2972
|
+
set index(index) {
|
|
2973
|
+
this._index = index;
|
|
2974
|
+
this.ownerDocument.markDirty(this);
|
|
2975
|
+
}
|
|
2976
|
+
get level() {
|
|
2977
|
+
var _this_node;
|
|
2978
|
+
if (this.parentNode instanceof $681cc3c98f569e39$export$dc064fe9e59310fd) return this.parentNode.level + (((_this_node = this.node) === null || _this_node === void 0 ? void 0 : _this_node.type) === "item" ? 1 : 0);
|
|
2979
|
+
return 0;
|
|
2980
|
+
}
|
|
2981
|
+
/**
|
|
2982
|
+
* Lazily gets a mutable instance of a Node. If the node has already
|
|
2983
|
+
* been cloned during this update cycle, it just returns the existing one.
|
|
2984
|
+
*/ getMutableNode() {
|
|
2985
|
+
if (this.node == null) return null;
|
|
2986
|
+
if (!this.isMutated) {
|
|
2987
|
+
this.node = this.node.clone();
|
|
2988
|
+
this.isMutated = true;
|
|
2989
|
+
}
|
|
2990
|
+
this.ownerDocument.markDirty(this);
|
|
2991
|
+
return this.node;
|
|
2992
|
+
}
|
|
2993
|
+
updateNode() {
|
|
2994
|
+
var _this_parentNode_node, _this_previousVisibleSibling_node, _this_previousVisibleSibling, _nextSibling_node, _this_firstVisibleChild_node, _this_firstVisibleChild, _this_lastVisibleChild_node, _this_lastVisibleChild;
|
|
2995
|
+
let nextSibling = this.nextVisibleSibling;
|
|
2996
|
+
let node = this.getMutableNode();
|
|
2997
|
+
if (node == null) return;
|
|
2998
|
+
node.index = this.index;
|
|
2999
|
+
node.level = this.level;
|
|
3000
|
+
var _this_parentNode_node_key;
|
|
3001
|
+
node.parentKey = this.parentNode instanceof $681cc3c98f569e39$export$dc064fe9e59310fd ? (_this_parentNode_node_key = (_this_parentNode_node = this.parentNode.node) === null || _this_parentNode_node === void 0 ? void 0 : _this_parentNode_node.key) !== null && _this_parentNode_node_key !== void 0 ? _this_parentNode_node_key : null : null;
|
|
3002
|
+
var _this_previousVisibleSibling_node_key;
|
|
3003
|
+
node.prevKey = (_this_previousVisibleSibling_node_key = (_this_previousVisibleSibling = this.previousVisibleSibling) === null || _this_previousVisibleSibling === void 0 ? void 0 : (_this_previousVisibleSibling_node = _this_previousVisibleSibling.node) === null || _this_previousVisibleSibling_node === void 0 ? void 0 : _this_previousVisibleSibling_node.key) !== null && _this_previousVisibleSibling_node_key !== void 0 ? _this_previousVisibleSibling_node_key : null;
|
|
3004
|
+
var _nextSibling_node_key;
|
|
3005
|
+
node.nextKey = (_nextSibling_node_key = nextSibling === null || nextSibling === void 0 ? void 0 : (_nextSibling_node = nextSibling.node) === null || _nextSibling_node === void 0 ? void 0 : _nextSibling_node.key) !== null && _nextSibling_node_key !== void 0 ? _nextSibling_node_key : null;
|
|
3006
|
+
node.hasChildNodes = !!this.firstChild;
|
|
3007
|
+
var _this_firstVisibleChild_node_key;
|
|
3008
|
+
node.firstChildKey = (_this_firstVisibleChild_node_key = (_this_firstVisibleChild = this.firstVisibleChild) === null || _this_firstVisibleChild === void 0 ? void 0 : (_this_firstVisibleChild_node = _this_firstVisibleChild.node) === null || _this_firstVisibleChild_node === void 0 ? void 0 : _this_firstVisibleChild_node.key) !== null && _this_firstVisibleChild_node_key !== void 0 ? _this_firstVisibleChild_node_key : null;
|
|
3009
|
+
var _this_lastVisibleChild_node_key;
|
|
3010
|
+
node.lastChildKey = (_this_lastVisibleChild_node_key = (_this_lastVisibleChild = this.lastVisibleChild) === null || _this_lastVisibleChild === void 0 ? void 0 : (_this_lastVisibleChild_node = _this_lastVisibleChild.node) === null || _this_lastVisibleChild_node === void 0 ? void 0 : _this_lastVisibleChild_node.key) !== null && _this_lastVisibleChild_node_key !== void 0 ? _this_lastVisibleChild_node_key : null;
|
|
3011
|
+
if ((node.colSpan != null || node.colIndex != null) && nextSibling) {
|
|
3012
|
+
var _node_colIndex, _node_colSpan;
|
|
3013
|
+
let nextColIndex = ((_node_colIndex = node.colIndex) !== null && _node_colIndex !== void 0 ? _node_colIndex : node.index) + ((_node_colSpan = node.colSpan) !== null && _node_colSpan !== void 0 ? _node_colSpan : 1);
|
|
3014
|
+
if (nextSibling.node != null && nextColIndex !== nextSibling.node.colIndex) {
|
|
3015
|
+
let siblingNode = nextSibling.getMutableNode();
|
|
3016
|
+
siblingNode.colIndex = nextColIndex;
|
|
3017
|
+
}
|
|
3018
|
+
}
|
|
3019
|
+
}
|
|
3020
|
+
setProps(obj, ref, CollectionNodeClass, rendered, render) {
|
|
3021
|
+
let node;
|
|
3022
|
+
let { value: value1, textValue, id, ...props } = obj;
|
|
3023
|
+
if (this.node == null) {
|
|
3024
|
+
node = new CollectionNodeClass(id !== null && id !== void 0 ? id : `react-aria-${++this.ownerDocument.nodeId}`);
|
|
3025
|
+
this.node = node;
|
|
3026
|
+
} else node = this.getMutableNode();
|
|
3027
|
+
props.ref = ref;
|
|
3028
|
+
node.props = props;
|
|
3029
|
+
node.rendered = rendered;
|
|
3030
|
+
node.render = render;
|
|
3031
|
+
node.value = value1;
|
|
3032
|
+
if (obj["aria-label"]) node["aria-label"] = obj["aria-label"];
|
|
3033
|
+
node.textValue = textValue || (typeof props.children === "string" ? props.children : "") || obj["aria-label"] || "";
|
|
3034
|
+
if (id != null && id !== node.key) throw new Error("Cannot change the id of an item");
|
|
3035
|
+
if (props.colSpan != null) node.colSpan = props.colSpan;
|
|
3036
|
+
if (this.isConnected) this.ownerDocument.queueUpdate();
|
|
3037
|
+
}
|
|
3038
|
+
get style() {
|
|
3039
|
+
let element = this;
|
|
3040
|
+
return {
|
|
3041
|
+
get display() {
|
|
3042
|
+
return element.isHidden ? "none" : "";
|
|
3043
|
+
},
|
|
3044
|
+
set display(value) {
|
|
3045
|
+
let isHidden = value === "none";
|
|
3046
|
+
if (element.isHidden !== isHidden) {
|
|
3047
|
+
var _element_parentNode, _element_parentNode1;
|
|
3048
|
+
if (((_element_parentNode = element.parentNode) === null || _element_parentNode === void 0 ? void 0 : _element_parentNode.firstVisibleChild) === element || ((_element_parentNode1 = element.parentNode) === null || _element_parentNode1 === void 0 ? void 0 : _element_parentNode1.lastVisibleChild) === element) element.ownerDocument.markDirty(element.parentNode);
|
|
3049
|
+
let prev = element.previousVisibleSibling;
|
|
3050
|
+
let next = element.nextVisibleSibling;
|
|
3051
|
+
if (prev) element.ownerDocument.markDirty(prev);
|
|
3052
|
+
if (next) element.ownerDocument.markDirty(next);
|
|
3053
|
+
element.isHidden = isHidden;
|
|
3054
|
+
element.ownerDocument.markDirty(element);
|
|
3055
|
+
}
|
|
3056
|
+
}
|
|
3057
|
+
};
|
|
3058
|
+
}
|
|
3059
|
+
hasAttribute() {}
|
|
3060
|
+
setAttribute() {}
|
|
3061
|
+
setAttributeNS() {}
|
|
3062
|
+
removeAttribute() {}
|
|
3063
|
+
constructor(type, ownerDocument) {
|
|
3064
|
+
super(ownerDocument), this.nodeType = 8, this.isMutated = true, this._index = 0, this.isHidden = false;
|
|
3065
|
+
this.node = null;
|
|
3066
|
+
}
|
|
3067
|
+
};
|
|
3068
|
+
var $681cc3c98f569e39$export$b34a105447964f9f = class extends $681cc3c98f569e39$export$410b0c854570d131 {
|
|
3069
|
+
get isConnected() {
|
|
3070
|
+
return true;
|
|
3071
|
+
}
|
|
3072
|
+
createElement(type) {
|
|
3073
|
+
return new $681cc3c98f569e39$export$dc064fe9e59310fd(type, this);
|
|
3074
|
+
}
|
|
3075
|
+
getMutableCollection() {
|
|
3076
|
+
if (!this.nextCollection) this.nextCollection = this.collection.clone();
|
|
3077
|
+
return this.nextCollection;
|
|
3078
|
+
}
|
|
3079
|
+
markDirty(node) {
|
|
3080
|
+
this.dirtyNodes.add(node);
|
|
3081
|
+
}
|
|
3082
|
+
addNode(element) {
|
|
3083
|
+
if (element.isHidden || element.node == null) return;
|
|
3084
|
+
let collection = this.getMutableCollection();
|
|
3085
|
+
if (!collection.getItem(element.node.key)) for (let child of element) this.addNode(child);
|
|
3086
|
+
collection.addNode(element.node);
|
|
3087
|
+
}
|
|
3088
|
+
removeNode(node) {
|
|
3089
|
+
for (let child of node) this.removeNode(child);
|
|
3090
|
+
if (node.node) this.getMutableCollection().removeNode(node.node.key);
|
|
3091
|
+
}
|
|
3092
|
+
/** Finalizes the collection update, updating all nodes and freezing the collection. */ getCollection() {
|
|
3093
|
+
if (this.inSubscription) return this.collection.clone();
|
|
3094
|
+
this.queuedRender = false;
|
|
3095
|
+
this.updateCollection();
|
|
3096
|
+
return this.collection;
|
|
3097
|
+
}
|
|
3098
|
+
updateCollection() {
|
|
3099
|
+
for (let element of this.dirtyNodes) if (element instanceof $681cc3c98f569e39$export$dc064fe9e59310fd && (!element.isConnected || element.isHidden)) this.removeNode(element);
|
|
3100
|
+
else element.updateChildIndices();
|
|
3101
|
+
for (let element of this.dirtyNodes) if (element instanceof $681cc3c98f569e39$export$dc064fe9e59310fd) {
|
|
3102
|
+
if (element.isConnected && !element.isHidden) {
|
|
3103
|
+
element.updateNode();
|
|
3104
|
+
this.addNode(element);
|
|
3105
|
+
}
|
|
3106
|
+
if (element.node) this.dirtyNodes.delete(element);
|
|
3107
|
+
element.isMutated = false;
|
|
3108
|
+
} else this.dirtyNodes.delete(element);
|
|
3109
|
+
if (this.nextCollection) {
|
|
3110
|
+
var _this_firstVisibleChild_node, _this_firstVisibleChild, _this_lastVisibleChild_node, _this_lastVisibleChild;
|
|
3111
|
+
var _this_firstVisibleChild_node_key, _this_lastVisibleChild_node_key;
|
|
3112
|
+
this.nextCollection.commit((_this_firstVisibleChild_node_key = (_this_firstVisibleChild = this.firstVisibleChild) === null || _this_firstVisibleChild === void 0 ? void 0 : (_this_firstVisibleChild_node = _this_firstVisibleChild.node) === null || _this_firstVisibleChild_node === void 0 ? void 0 : _this_firstVisibleChild_node.key) !== null && _this_firstVisibleChild_node_key !== void 0 ? _this_firstVisibleChild_node_key : null, (_this_lastVisibleChild_node_key = (_this_lastVisibleChild = this.lastVisibleChild) === null || _this_lastVisibleChild === void 0 ? void 0 : (_this_lastVisibleChild_node = _this_lastVisibleChild.node) === null || _this_lastVisibleChild_node === void 0 ? void 0 : _this_lastVisibleChild_node.key) !== null && _this_lastVisibleChild_node_key !== void 0 ? _this_lastVisibleChild_node_key : null, this.isSSR);
|
|
3113
|
+
if (!this.isSSR) {
|
|
3114
|
+
this.collection = this.nextCollection;
|
|
3115
|
+
this.nextCollection = null;
|
|
3116
|
+
}
|
|
3117
|
+
}
|
|
3118
|
+
}
|
|
3119
|
+
queueUpdate() {
|
|
3120
|
+
if (this.dirtyNodes.size === 0 || this.queuedRender) return;
|
|
3121
|
+
this.queuedRender = true;
|
|
3122
|
+
this.inSubscription = true;
|
|
3123
|
+
for (let fn of this.subscriptions) fn();
|
|
3124
|
+
this.inSubscription = false;
|
|
3125
|
+
}
|
|
3126
|
+
subscribe(fn) {
|
|
3127
|
+
this.subscriptions.add(fn);
|
|
3128
|
+
return () => this.subscriptions.delete(fn);
|
|
3129
|
+
}
|
|
3130
|
+
resetAfterSSR() {
|
|
3131
|
+
if (this.isSSR) {
|
|
3132
|
+
this.isSSR = false;
|
|
3133
|
+
this.firstChild = null;
|
|
3134
|
+
this.lastChild = null;
|
|
3135
|
+
this.nodeId = 0;
|
|
3136
|
+
}
|
|
3137
|
+
}
|
|
3138
|
+
constructor(collection) {
|
|
3139
|
+
super(null), this.nodeType = 11, this.ownerDocument = this, this.dirtyNodes = /* @__PURE__ */ new Set(), this.isSSR = false, this.nodeId = 0, this.nodesByProps = /* @__PURE__ */ new WeakMap(), this.nextCollection = null, this.subscriptions = /* @__PURE__ */ new Set(), this.queuedRender = false, this.inSubscription = false;
|
|
3140
|
+
this.collection = collection;
|
|
3141
|
+
this.nextCollection = collection;
|
|
3142
|
+
}
|
|
3143
|
+
};
|
|
3144
|
+
//#endregion
|
|
3145
|
+
//#region ../../node_modules/.bun/@react-aria+collections@3.0.2+67f6792bdf102c28/node_modules/@react-aria/collections/dist/useCachedChildren.mjs
|
|
3146
|
+
function $e948873055cbafe4$export$727c8fc270210f13(props) {
|
|
3147
|
+
let { children, items, idScope, addIdAndValue, dependencies = [] } = props;
|
|
3148
|
+
let cache = useMemo(() => /* @__PURE__ */ new WeakMap(), dependencies);
|
|
3149
|
+
return useMemo(() => {
|
|
3150
|
+
if (items && typeof children === "function") {
|
|
3151
|
+
let res = [];
|
|
3152
|
+
for (let item of items) {
|
|
3153
|
+
let rendered = cache.get(item);
|
|
3154
|
+
if (!rendered) {
|
|
3155
|
+
rendered = children(item);
|
|
3156
|
+
var _rendered_props_id, _ref;
|
|
3157
|
+
let key = (_ref = (_rendered_props_id = rendered.props.id) !== null && _rendered_props_id !== void 0 ? _rendered_props_id : item.key) !== null && _ref !== void 0 ? _ref : item.id;
|
|
3158
|
+
if (key == null) throw new Error("Could not determine key for item");
|
|
3159
|
+
if (idScope != null) key = idScope + ":" + key;
|
|
3160
|
+
rendered = cloneElement(rendered, addIdAndValue ? {
|
|
3161
|
+
key,
|
|
3162
|
+
id: key,
|
|
3163
|
+
value: item
|
|
3164
|
+
} : { key });
|
|
3165
|
+
cache.set(item, rendered);
|
|
3166
|
+
}
|
|
3167
|
+
res.push(rendered);
|
|
3168
|
+
}
|
|
3169
|
+
return res;
|
|
3170
|
+
} else if (typeof children !== "function") return children;
|
|
3171
|
+
}, [
|
|
3172
|
+
children,
|
|
3173
|
+
items,
|
|
3174
|
+
cache,
|
|
3175
|
+
idScope,
|
|
3176
|
+
addIdAndValue
|
|
3177
|
+
]);
|
|
3178
|
+
}
|
|
3179
|
+
//#endregion
|
|
3180
|
+
//#region ../../node_modules/.bun/use-sync-external-store@1.6.0+83d5fd7b249dbeef/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js
|
|
3181
|
+
/**
|
|
3182
|
+
* @license React
|
|
3183
|
+
* use-sync-external-store-shim.development.js
|
|
3184
|
+
*
|
|
3185
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3186
|
+
*
|
|
3187
|
+
* This source code is licensed under the MIT license found in the
|
|
3188
|
+
* LICENSE file in the root directory of this source tree.
|
|
3189
|
+
*/
|
|
3190
|
+
var require_use_sync_external_store_shim_development = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3191
|
+
(function() {
|
|
3192
|
+
function is(x, y) {
|
|
3193
|
+
return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
|
|
3194
|
+
}
|
|
3195
|
+
function useSyncExternalStore$2(subscribe, getSnapshot) {
|
|
3196
|
+
didWarnOld18Alpha || void 0 === React.startTransition || (didWarnOld18Alpha = !0, console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
|
|
3197
|
+
var value = getSnapshot();
|
|
3198
|
+
if (!didWarnUncachedGetSnapshot) {
|
|
3199
|
+
var cachedValue = getSnapshot();
|
|
3200
|
+
objectIs(value, cachedValue) || (console.error("The result of getSnapshot should be cached to avoid an infinite loop"), didWarnUncachedGetSnapshot = !0);
|
|
3201
|
+
}
|
|
3202
|
+
cachedValue = useState({ inst: {
|
|
3203
|
+
value,
|
|
3204
|
+
getSnapshot
|
|
3205
|
+
} });
|
|
3206
|
+
var inst = cachedValue[0].inst, forceUpdate = cachedValue[1];
|
|
3207
|
+
useLayoutEffect(function() {
|
|
3208
|
+
inst.value = value;
|
|
3209
|
+
inst.getSnapshot = getSnapshot;
|
|
3210
|
+
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
|
|
3211
|
+
}, [
|
|
3212
|
+
subscribe,
|
|
3213
|
+
value,
|
|
3214
|
+
getSnapshot
|
|
3215
|
+
]);
|
|
3216
|
+
useEffect(function() {
|
|
3217
|
+
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
|
|
3218
|
+
return subscribe(function() {
|
|
3219
|
+
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
|
|
3220
|
+
});
|
|
3221
|
+
}, [subscribe]);
|
|
3222
|
+
useDebugValue(value);
|
|
3223
|
+
return value;
|
|
3224
|
+
}
|
|
3225
|
+
function checkIfSnapshotChanged(inst) {
|
|
3226
|
+
var latestGetSnapshot = inst.getSnapshot;
|
|
3227
|
+
inst = inst.value;
|
|
3228
|
+
try {
|
|
3229
|
+
var nextValue = latestGetSnapshot();
|
|
3230
|
+
return !objectIs(inst, nextValue);
|
|
3231
|
+
} catch (error) {
|
|
3232
|
+
return !0;
|
|
3233
|
+
}
|
|
3234
|
+
}
|
|
3235
|
+
function useSyncExternalStore$1(subscribe, getSnapshot) {
|
|
3236
|
+
return getSnapshot();
|
|
3237
|
+
}
|
|
3238
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
3239
|
+
var React = __require("react"), objectIs = "function" === typeof Object.is ? Object.is : is, useState = React.useState, useEffect = React.useEffect, useLayoutEffect = React.useLayoutEffect, useDebugValue = React.useDebugValue, didWarnOld18Alpha = !1, didWarnUncachedGetSnapshot = !1, shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
|
|
3240
|
+
exports.useSyncExternalStore = void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;
|
|
3241
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
3242
|
+
})();
|
|
3243
|
+
}));
|
|
3244
|
+
//#endregion
|
|
3245
|
+
//#region ../../node_modules/.bun/@react-aria+collections@3.0.2+67f6792bdf102c28/node_modules/@react-aria/collections/dist/CollectionBuilder.mjs
|
|
3246
|
+
var import_shim = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3247
|
+
module.exports = require_use_sync_external_store_shim_development();
|
|
3248
|
+
})))();
|
|
3249
|
+
const $e1995378a142960e$var$ShallowRenderContext = /*#__PURE__*/ createContext(false);
|
|
3250
|
+
const $e1995378a142960e$var$CollectionDocumentContext = /*#__PURE__*/ createContext(null);
|
|
3251
|
+
function $e1995378a142960e$export$bf788dd355e3a401(props) {
|
|
3252
|
+
if (useContext($e1995378a142960e$var$CollectionDocumentContext)) return props.content;
|
|
3253
|
+
let { collection, document } = $e1995378a142960e$var$useCollectionDocument(props.createCollection);
|
|
3254
|
+
return /*#__PURE__*/ $HgANd$react.createElement($HgANd$react.Fragment, null, /*#__PURE__*/ $HgANd$react.createElement($f39a9eba43920ace$export$8dc98ba7eadeaa56, null, /*#__PURE__*/ $HgANd$react.createElement($e1995378a142960e$var$CollectionDocumentContext.Provider, { value: document }, props.content)), /*#__PURE__*/ $HgANd$react.createElement($e1995378a142960e$var$CollectionInner, {
|
|
3255
|
+
render: props.children,
|
|
3256
|
+
collection
|
|
3257
|
+
}));
|
|
3258
|
+
}
|
|
3259
|
+
function $e1995378a142960e$var$CollectionInner({ collection, render }) {
|
|
3260
|
+
return render(collection);
|
|
3261
|
+
}
|
|
3262
|
+
function $e1995378a142960e$var$useSyncExternalStoreFallback(subscribe, getSnapshot, getServerSnapshot) {
|
|
3263
|
+
let isSSR = $b5e257d569688ac6$export$535bd6ca7f90a273();
|
|
3264
|
+
let isSSRRef = useRef(isSSR);
|
|
3265
|
+
isSSRRef.current = isSSR;
|
|
3266
|
+
let getSnapshotWrapper = useCallback(() => {
|
|
3267
|
+
return isSSRRef.current ? getServerSnapshot() : getSnapshot();
|
|
3268
|
+
}, [getSnapshot, getServerSnapshot]);
|
|
3269
|
+
return (0, import_shim.useSyncExternalStore)(subscribe, getSnapshotWrapper);
|
|
3270
|
+
}
|
|
3271
|
+
const $e1995378a142960e$var$useSyncExternalStore = typeof $HgANd$react["useSyncExternalStore"] === "function" ? $HgANd$react["useSyncExternalStore"] : $e1995378a142960e$var$useSyncExternalStoreFallback;
|
|
3272
|
+
function $e1995378a142960e$var$useCollectionDocument(createCollection) {
|
|
3273
|
+
let [document] = useState(() => new $681cc3c98f569e39$export$b34a105447964f9f((createCollection === null || createCollection === void 0 ? void 0 : createCollection()) || new $23b9f4fcf0fe224b$export$408d25a4e12db025()));
|
|
3274
|
+
let subscribe = useCallback((fn) => document.subscribe(fn), [document]);
|
|
3275
|
+
let getSnapshot = useCallback(() => {
|
|
3276
|
+
let collection = document.getCollection();
|
|
3277
|
+
if (document.isSSR) document.resetAfterSSR();
|
|
3278
|
+
return collection;
|
|
3279
|
+
}, [document]);
|
|
3280
|
+
let getServerSnapshot = useCallback(() => {
|
|
3281
|
+
document.isSSR = true;
|
|
3282
|
+
return document.getCollection();
|
|
3283
|
+
}, [document]);
|
|
3284
|
+
return {
|
|
3285
|
+
collection: $e1995378a142960e$var$useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot),
|
|
3286
|
+
document
|
|
3287
|
+
};
|
|
3288
|
+
}
|
|
3289
|
+
const $e1995378a142960e$var$SSRContext = /*#__PURE__*/ createContext(null);
|
|
3290
|
+
function $e1995378a142960e$var$createCollectionNodeClass(type) {
|
|
3291
|
+
var _class;
|
|
3292
|
+
return _class = class extends $23b9f4fcf0fe224b$export$d68d59712b04d9d1 {}, _class.type = type, _class;
|
|
3293
|
+
}
|
|
3294
|
+
function $e1995378a142960e$var$useSSRCollectionNode(CollectionNodeClass, props, ref, rendered, children, render) {
|
|
3295
|
+
if (typeof CollectionNodeClass === "string") CollectionNodeClass = $e1995378a142960e$var$createCollectionNodeClass(CollectionNodeClass);
|
|
3296
|
+
let itemRef = useCallback((element) => {
|
|
3297
|
+
element === null || element === void 0 || element.setProps(props, ref, CollectionNodeClass, rendered, render);
|
|
3298
|
+
}, [
|
|
3299
|
+
props,
|
|
3300
|
+
ref,
|
|
3301
|
+
rendered,
|
|
3302
|
+
render,
|
|
3303
|
+
CollectionNodeClass
|
|
3304
|
+
]);
|
|
3305
|
+
let parentNode = useContext($e1995378a142960e$var$SSRContext);
|
|
3306
|
+
if (parentNode) {
|
|
3307
|
+
let element = parentNode.ownerDocument.nodesByProps.get(props);
|
|
3308
|
+
if (!element) {
|
|
3309
|
+
element = parentNode.ownerDocument.createElement(CollectionNodeClass.type);
|
|
3310
|
+
element.setProps(props, ref, CollectionNodeClass, rendered, render);
|
|
3311
|
+
parentNode.appendChild(element);
|
|
3312
|
+
parentNode.ownerDocument.updateCollection();
|
|
3313
|
+
parentNode.ownerDocument.nodesByProps.set(props, element);
|
|
3314
|
+
}
|
|
3315
|
+
return children ? /*#__PURE__*/ $HgANd$react.createElement($e1995378a142960e$var$SSRContext.Provider, { value: element }, children) : null;
|
|
3316
|
+
}
|
|
3317
|
+
return /*#__PURE__*/ $HgANd$react.createElement(CollectionNodeClass.type, { ref: itemRef }, children);
|
|
3318
|
+
}
|
|
3319
|
+
function $e1995378a142960e$export$18af5c7a9e9b3664(CollectionNodeClass, render) {
|
|
3320
|
+
let Component = ({ node }) => render(node.props, node.props.ref, node);
|
|
3321
|
+
let Result = forwardRef((props, ref) => {
|
|
3322
|
+
let focusableProps = useContext($f645667febf57a63$export$f9762fab77588ecb);
|
|
3323
|
+
if (!useContext($e1995378a142960e$var$ShallowRenderContext)) {
|
|
3324
|
+
if (render.length >= 3) throw new Error(render.name + " cannot be rendered outside a collection.");
|
|
3325
|
+
return render(props, ref);
|
|
3326
|
+
}
|
|
3327
|
+
return $e1995378a142960e$var$useSSRCollectionNode(CollectionNodeClass, props, ref, "children" in props ? props.children : null, null, (node) => /*#__PURE__*/ $HgANd$react.createElement($f645667febf57a63$export$f9762fab77588ecb.Provider, { value: focusableProps }, /*#__PURE__*/ $HgANd$react.createElement(Component, { node })));
|
|
3328
|
+
});
|
|
3329
|
+
Result.displayName = render.name;
|
|
3330
|
+
return Result;
|
|
3331
|
+
}
|
|
3332
|
+
function $e1995378a142960e$export$e953bb1cd0f19726(CollectionNodeClass, render, useChildren = $e1995378a142960e$var$useCollectionChildren) {
|
|
3333
|
+
let Component = ({ node }) => render(node.props, node.props.ref, node);
|
|
3334
|
+
let Result = forwardRef((props, ref) => {
|
|
3335
|
+
let children = useChildren(props);
|
|
3336
|
+
var _useSSRCollectionNode;
|
|
3337
|
+
return (_useSSRCollectionNode = $e1995378a142960e$var$useSSRCollectionNode(CollectionNodeClass, props, ref, null, children, (node) => /*#__PURE__*/ $HgANd$react.createElement(Component, { node }))) !== null && _useSSRCollectionNode !== void 0 ? _useSSRCollectionNode : /*#__PURE__*/ $HgANd$react.createElement($HgANd$react.Fragment, null);
|
|
3338
|
+
});
|
|
3339
|
+
Result.displayName = render.name;
|
|
3340
|
+
return Result;
|
|
3341
|
+
}
|
|
3342
|
+
function $e1995378a142960e$var$useCollectionChildren(options) {
|
|
3343
|
+
return $e948873055cbafe4$export$727c8fc270210f13({
|
|
3344
|
+
...options,
|
|
3345
|
+
addIdAndValue: true
|
|
3346
|
+
});
|
|
3347
|
+
}
|
|
3348
|
+
const $e1995378a142960e$var$CollectionContext = /*#__PURE__*/ createContext(null);
|
|
3349
|
+
function $e1995378a142960e$export$fb8073518f34e6ec(props) {
|
|
3350
|
+
let ctx = useContext($e1995378a142960e$var$CollectionContext);
|
|
3351
|
+
let dependencies = ((ctx === null || ctx === void 0 ? void 0 : ctx.dependencies) || []).concat(props.dependencies);
|
|
3352
|
+
var _props_idScope;
|
|
3353
|
+
let idScope = (_props_idScope = props.idScope) !== null && _props_idScope !== void 0 ? _props_idScope : ctx === null || ctx === void 0 ? void 0 : ctx.idScope;
|
|
3354
|
+
let children = $e1995378a142960e$var$useCollectionChildren({
|
|
3355
|
+
...props,
|
|
3356
|
+
idScope,
|
|
3357
|
+
dependencies
|
|
3358
|
+
});
|
|
3359
|
+
if (useContext($e1995378a142960e$var$CollectionDocumentContext)) children = /*#__PURE__*/ $HgANd$react.createElement($e1995378a142960e$var$CollectionRoot, null, children);
|
|
3360
|
+
ctx = useMemo(() => ({
|
|
3361
|
+
dependencies,
|
|
3362
|
+
idScope
|
|
3363
|
+
}), [idScope, ...dependencies]);
|
|
3364
|
+
return /*#__PURE__*/ $HgANd$react.createElement($e1995378a142960e$var$CollectionContext.Provider, { value: ctx }, children);
|
|
3365
|
+
}
|
|
3366
|
+
function $e1995378a142960e$var$CollectionRoot({ children }) {
|
|
3367
|
+
let doc = useContext($e1995378a142960e$var$CollectionDocumentContext);
|
|
3368
|
+
let wrappedChildren = useMemo(() => /*#__PURE__*/ $HgANd$react.createElement($e1995378a142960e$var$CollectionDocumentContext.Provider, { value: null }, /*#__PURE__*/ $HgANd$react.createElement($e1995378a142960e$var$ShallowRenderContext.Provider, { value: true }, children)), [children]);
|
|
3369
|
+
return $b5e257d569688ac6$export$535bd6ca7f90a273() ? /*#__PURE__*/ $HgANd$react.createElement($e1995378a142960e$var$SSRContext.Provider, { value: doc }, wrappedChildren) : /*#__PURE__*/ createPortal(wrappedChildren, doc);
|
|
3370
|
+
}
|
|
3371
|
+
//#endregion
|
|
3372
|
+
//#region ../../node_modules/.bun/react-aria-components@1.15.1+67f6792bdf102c28/node_modules/react-aria-components/dist/Collection.mjs
|
|
3373
|
+
const $7135fc7d473fd974$export$d40e14dec8b060a8 = /*#__PURE__*/ createContext(null);
|
|
3374
|
+
const $7135fc7d473fd974$export$a164736487e3f0ae = {
|
|
3375
|
+
CollectionRoot({ collection, renderDropIndicator }) {
|
|
3376
|
+
return $7135fc7d473fd974$var$useCollectionRender(collection, null, renderDropIndicator);
|
|
3377
|
+
},
|
|
3378
|
+
CollectionBranch({ collection, parent, renderDropIndicator }) {
|
|
3379
|
+
return $7135fc7d473fd974$var$useCollectionRender(collection, parent, renderDropIndicator);
|
|
3380
|
+
}
|
|
3381
|
+
};
|
|
3382
|
+
function $7135fc7d473fd974$var$useCollectionRender(collection, parent, renderDropIndicator) {
|
|
3383
|
+
return $e948873055cbafe4$export$727c8fc270210f13({
|
|
3384
|
+
items: parent ? collection.getChildren(parent.key) : collection,
|
|
3385
|
+
dependencies: [renderDropIndicator],
|
|
3386
|
+
children(node) {
|
|
3387
|
+
let rendered = node.render(node);
|
|
3388
|
+
if (!renderDropIndicator || node.type !== "item") return rendered;
|
|
3389
|
+
return /*#__PURE__*/ $HgANd$react.createElement($HgANd$react.Fragment, null, renderDropIndicator({
|
|
3390
|
+
type: "item",
|
|
3391
|
+
key: node.key,
|
|
3392
|
+
dropPosition: "before"
|
|
3393
|
+
}), rendered, $7135fc7d473fd974$export$2dbbd341daed716d(collection, node, renderDropIndicator));
|
|
3394
|
+
}
|
|
3395
|
+
});
|
|
3396
|
+
}
|
|
3397
|
+
function $7135fc7d473fd974$export$2dbbd341daed716d(collection, node, renderDropIndicator) {
|
|
3398
|
+
let key = node.key;
|
|
3399
|
+
let keyAfter = collection.getKeyAfter(key);
|
|
3400
|
+
let nextItemInFlattenedCollection = keyAfter != null ? collection.getItem(keyAfter) : null;
|
|
3401
|
+
while (nextItemInFlattenedCollection != null && nextItemInFlattenedCollection.type !== "item") {
|
|
3402
|
+
keyAfter = collection.getKeyAfter(nextItemInFlattenedCollection.key);
|
|
3403
|
+
nextItemInFlattenedCollection = keyAfter != null ? collection.getItem(keyAfter) : null;
|
|
3404
|
+
}
|
|
3405
|
+
let nextItemInSameLevel = node.nextKey != null ? collection.getItem(node.nextKey) : null;
|
|
3406
|
+
while (nextItemInSameLevel != null && nextItemInSameLevel.type !== "item") nextItemInSameLevel = nextItemInSameLevel.nextKey != null ? collection.getItem(nextItemInSameLevel.nextKey) : null;
|
|
3407
|
+
let afterIndicators = [];
|
|
3408
|
+
if (nextItemInSameLevel == null) {
|
|
3409
|
+
let current = node;
|
|
3410
|
+
while ((current === null || current === void 0 ? void 0 : current.type) === "item" && (!nextItemInFlattenedCollection || current.parentKey !== nextItemInFlattenedCollection.parentKey && nextItemInFlattenedCollection.level < current.level)) {
|
|
3411
|
+
let indicator = renderDropIndicator({
|
|
3412
|
+
type: "item",
|
|
3413
|
+
key: current.key,
|
|
3414
|
+
dropPosition: "after"
|
|
3415
|
+
});
|
|
3416
|
+
if (/*#__PURE__*/ isValidElement(indicator)) afterIndicators.push(/*#__PURE__*/ cloneElement(indicator, { key: `${current.key}-after` }));
|
|
3417
|
+
current = current.parentKey != null ? collection.getItem(current.parentKey) : null;
|
|
3418
|
+
}
|
|
3419
|
+
}
|
|
3420
|
+
return afterIndicators;
|
|
3421
|
+
}
|
|
3422
|
+
const $7135fc7d473fd974$export$4feb769f8ddf26c5 = /*#__PURE__*/ createContext($7135fc7d473fd974$export$a164736487e3f0ae);
|
|
3423
|
+
function $7135fc7d473fd974$export$90e00781bc59d8f9(focusedKey) {
|
|
3424
|
+
return useMemo(() => focusedKey != null ? /* @__PURE__ */ new Set([focusedKey]) : null, [focusedKey]);
|
|
3425
|
+
}
|
|
3426
|
+
//#endregion
|
|
3427
|
+
//#region ../../node_modules/.bun/@react-aria+dialog@3.5.33+67f6792bdf102c28/node_modules/@react-aria/dialog/dist/useDialog.mjs
|
|
3428
|
+
function $40df3f8667284809$export$d55e7ee900f34e93(props, ref) {
|
|
3429
|
+
let { role = "dialog" } = props;
|
|
3430
|
+
let titleId = $bdb11010cef70236$export$b4cc09c592e8fdb8();
|
|
3431
|
+
titleId = props["aria-label"] ? void 0 : titleId;
|
|
3432
|
+
let isRefocusing = useRef(false);
|
|
3433
|
+
useEffect(() => {
|
|
3434
|
+
if (ref.current && !$d4ee10de306f2510$export$4282f70798064fe0(ref.current, document.activeElement)) {
|
|
3435
|
+
$3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current);
|
|
3436
|
+
let timeout = setTimeout(() => {
|
|
3437
|
+
if (document.activeElement === ref.current || document.activeElement === document.body) {
|
|
3438
|
+
isRefocusing.current = true;
|
|
3439
|
+
if (ref.current) {
|
|
3440
|
+
ref.current.blur();
|
|
3441
|
+
$3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current);
|
|
3442
|
+
}
|
|
3443
|
+
isRefocusing.current = false;
|
|
3444
|
+
}
|
|
3445
|
+
}, 500);
|
|
3446
|
+
return () => {
|
|
3447
|
+
clearTimeout(timeout);
|
|
3448
|
+
};
|
|
3449
|
+
}
|
|
3450
|
+
}, [ref]);
|
|
3451
|
+
$337b884510726a0d$export$14c98a7594375490();
|
|
3452
|
+
return {
|
|
3453
|
+
dialogProps: {
|
|
3454
|
+
...$65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, { labelable: true }),
|
|
3455
|
+
role,
|
|
3456
|
+
tabIndex: -1,
|
|
3457
|
+
"aria-labelledby": props["aria-labelledby"] || titleId,
|
|
3458
|
+
onBlur: (e) => {
|
|
3459
|
+
if (isRefocusing.current) e.stopPropagation();
|
|
3460
|
+
}
|
|
3461
|
+
},
|
|
3462
|
+
titleProps: { id: titleId }
|
|
3463
|
+
};
|
|
3464
|
+
}
|
|
3465
|
+
//#endregion
|
|
3466
|
+
//#region ../../node_modules/.bun/@react-stately+selection@3.20.8+83d5fd7b249dbeef/node_modules/@react-stately/selection/dist/Selection.mjs
|
|
3467
|
+
var $e40ea825a81a3709$export$52baac22726c72bf = class $e40ea825a81a3709$export$52baac22726c72bf extends Set {
|
|
3468
|
+
constructor(keys, anchorKey, currentKey) {
|
|
3469
|
+
super(keys);
|
|
3470
|
+
if (keys instanceof $e40ea825a81a3709$export$52baac22726c72bf) {
|
|
3471
|
+
this.anchorKey = anchorKey !== null && anchorKey !== void 0 ? anchorKey : keys.anchorKey;
|
|
3472
|
+
this.currentKey = currentKey !== null && currentKey !== void 0 ? currentKey : keys.currentKey;
|
|
3473
|
+
} else {
|
|
3474
|
+
this.anchorKey = anchorKey !== null && anchorKey !== void 0 ? anchorKey : null;
|
|
3475
|
+
this.currentKey = currentKey !== null && currentKey !== void 0 ? currentKey : null;
|
|
3476
|
+
}
|
|
3477
|
+
}
|
|
3478
|
+
};
|
|
3479
|
+
//#endregion
|
|
3480
|
+
//#region ../../node_modules/.bun/@react-stately+selection@3.20.8+83d5fd7b249dbeef/node_modules/@react-stately/selection/dist/useMultipleSelectionState.mjs
|
|
3481
|
+
function $7af3f5b51489e0b5$var$equalSets(setA, setB) {
|
|
3482
|
+
if (setA.size !== setB.size) return false;
|
|
3483
|
+
for (let item of setA) if (!setB.has(item)) return false;
|
|
3484
|
+
return true;
|
|
3485
|
+
}
|
|
3486
|
+
function $7af3f5b51489e0b5$export$253fe78d46329472(props) {
|
|
3487
|
+
let { selectionMode = "none", disallowEmptySelection = false, allowDuplicateSelectionEvents, selectionBehavior: selectionBehaviorProp = "toggle", disabledBehavior = "all" } = props;
|
|
3488
|
+
let isFocusedRef = useRef(false);
|
|
3489
|
+
let [, setFocused] = useState(false);
|
|
3490
|
+
let focusedKeyRef = useRef(null);
|
|
3491
|
+
let childFocusStrategyRef = useRef(null);
|
|
3492
|
+
let [, setFocusedKey] = useState(null);
|
|
3493
|
+
let selectedKeysProp = useMemo(() => $7af3f5b51489e0b5$var$convertSelection(props.selectedKeys), [props.selectedKeys]);
|
|
3494
|
+
let defaultSelectedKeys = useMemo(() => $7af3f5b51489e0b5$var$convertSelection(props.defaultSelectedKeys, new $e40ea825a81a3709$export$52baac22726c72bf()), [props.defaultSelectedKeys]);
|
|
3495
|
+
let [selectedKeys, setSelectedKeys] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(selectedKeysProp, defaultSelectedKeys, props.onSelectionChange);
|
|
3496
|
+
let disabledKeysProp = useMemo(() => props.disabledKeys ? new Set(props.disabledKeys) : /* @__PURE__ */ new Set(), [props.disabledKeys]);
|
|
3497
|
+
let [selectionBehavior, setSelectionBehavior] = useState(selectionBehaviorProp);
|
|
3498
|
+
if (selectionBehaviorProp === "replace" && selectionBehavior === "toggle" && typeof selectedKeys === "object" && selectedKeys.size === 0) setSelectionBehavior("replace");
|
|
3499
|
+
let lastSelectionBehavior = useRef(selectionBehaviorProp);
|
|
3500
|
+
useEffect(() => {
|
|
3501
|
+
if (selectionBehaviorProp !== lastSelectionBehavior.current) {
|
|
3502
|
+
setSelectionBehavior(selectionBehaviorProp);
|
|
3503
|
+
lastSelectionBehavior.current = selectionBehaviorProp;
|
|
3504
|
+
}
|
|
3505
|
+
}, [selectionBehaviorProp]);
|
|
3506
|
+
return {
|
|
3507
|
+
selectionMode,
|
|
3508
|
+
disallowEmptySelection,
|
|
3509
|
+
selectionBehavior,
|
|
3510
|
+
setSelectionBehavior,
|
|
3511
|
+
get isFocused() {
|
|
3512
|
+
return isFocusedRef.current;
|
|
3513
|
+
},
|
|
3514
|
+
setFocused(f) {
|
|
3515
|
+
isFocusedRef.current = f;
|
|
3516
|
+
setFocused(f);
|
|
3517
|
+
},
|
|
3518
|
+
get focusedKey() {
|
|
3519
|
+
return focusedKeyRef.current;
|
|
3520
|
+
},
|
|
3521
|
+
get childFocusStrategy() {
|
|
3522
|
+
return childFocusStrategyRef.current;
|
|
3523
|
+
},
|
|
3524
|
+
setFocusedKey(k, childFocusStrategy = "first") {
|
|
3525
|
+
focusedKeyRef.current = k;
|
|
3526
|
+
childFocusStrategyRef.current = childFocusStrategy;
|
|
3527
|
+
setFocusedKey(k);
|
|
3528
|
+
},
|
|
3529
|
+
selectedKeys,
|
|
3530
|
+
setSelectedKeys(keys) {
|
|
3531
|
+
if (allowDuplicateSelectionEvents || !$7af3f5b51489e0b5$var$equalSets(keys, selectedKeys)) setSelectedKeys(keys);
|
|
3532
|
+
},
|
|
3533
|
+
disabledKeys: disabledKeysProp,
|
|
3534
|
+
disabledBehavior
|
|
3535
|
+
};
|
|
3536
|
+
}
|
|
3537
|
+
function $7af3f5b51489e0b5$var$convertSelection(selection, defaultValue) {
|
|
3538
|
+
if (!selection) return defaultValue;
|
|
3539
|
+
return selection === "all" ? "all" : new $e40ea825a81a3709$export$52baac22726c72bf(selection);
|
|
3540
|
+
}
|
|
3541
|
+
//#endregion
|
|
3542
|
+
//#region ../../node_modules/.bun/@react-stately+selection@3.20.8+83d5fd7b249dbeef/node_modules/@react-stately/selection/dist/SelectionManager.mjs
|
|
3543
|
+
var $d496c0a20b6e58ec$export$6c8a5aaad13c9852 = class $d496c0a20b6e58ec$export$6c8a5aaad13c9852 {
|
|
3544
|
+
/**
|
|
3545
|
+
* The type of selection that is allowed in the collection.
|
|
3546
|
+
*/ get selectionMode() {
|
|
3547
|
+
return this.state.selectionMode;
|
|
3548
|
+
}
|
|
3549
|
+
/**
|
|
3550
|
+
* Whether the collection allows empty selection.
|
|
3551
|
+
*/ get disallowEmptySelection() {
|
|
3552
|
+
return this.state.disallowEmptySelection;
|
|
3553
|
+
}
|
|
3554
|
+
/**
|
|
3555
|
+
* The selection behavior for the collection.
|
|
3556
|
+
*/ get selectionBehavior() {
|
|
3557
|
+
return this.state.selectionBehavior;
|
|
3558
|
+
}
|
|
3559
|
+
/**
|
|
3560
|
+
* Sets the selection behavior for the collection.
|
|
3561
|
+
*/ setSelectionBehavior(selectionBehavior) {
|
|
3562
|
+
this.state.setSelectionBehavior(selectionBehavior);
|
|
3563
|
+
}
|
|
3564
|
+
/**
|
|
3565
|
+
* Whether the collection is currently focused.
|
|
3566
|
+
*/ get isFocused() {
|
|
3567
|
+
return this.state.isFocused;
|
|
3568
|
+
}
|
|
3569
|
+
/**
|
|
3570
|
+
* Sets whether the collection is focused.
|
|
3571
|
+
*/ setFocused(isFocused) {
|
|
3572
|
+
this.state.setFocused(isFocused);
|
|
3573
|
+
}
|
|
3574
|
+
/**
|
|
3575
|
+
* The current focused key in the collection.
|
|
3576
|
+
*/ get focusedKey() {
|
|
3577
|
+
return this.state.focusedKey;
|
|
3578
|
+
}
|
|
3579
|
+
/** Whether the first or last child of the focused key should receive focus. */ get childFocusStrategy() {
|
|
3580
|
+
return this.state.childFocusStrategy;
|
|
3581
|
+
}
|
|
3582
|
+
/**
|
|
3583
|
+
* Sets the focused key.
|
|
3584
|
+
*/ setFocusedKey(key, childFocusStrategy) {
|
|
3585
|
+
if (key == null || this.collection.getItem(key)) this.state.setFocusedKey(key, childFocusStrategy);
|
|
3586
|
+
}
|
|
3587
|
+
/**
|
|
3588
|
+
* The currently selected keys in the collection.
|
|
3589
|
+
*/ get selectedKeys() {
|
|
3590
|
+
return this.state.selectedKeys === "all" ? new Set(this.getSelectAllKeys()) : this.state.selectedKeys;
|
|
3591
|
+
}
|
|
3592
|
+
/**
|
|
3593
|
+
* The raw selection value for the collection.
|
|
3594
|
+
* Either 'all' for select all, or a set of keys.
|
|
3595
|
+
*/ get rawSelection() {
|
|
3596
|
+
return this.state.selectedKeys;
|
|
3597
|
+
}
|
|
3598
|
+
/**
|
|
3599
|
+
* Returns whether a key is selected.
|
|
3600
|
+
*/ isSelected(key) {
|
|
3601
|
+
if (this.state.selectionMode === "none") return false;
|
|
3602
|
+
let mappedKey = this.getKey(key);
|
|
3603
|
+
if (mappedKey == null) return false;
|
|
3604
|
+
return this.state.selectedKeys === "all" ? this.canSelectItem(mappedKey) : this.state.selectedKeys.has(mappedKey);
|
|
3605
|
+
}
|
|
3606
|
+
/**
|
|
3607
|
+
* Whether the selection is empty.
|
|
3608
|
+
*/ get isEmpty() {
|
|
3609
|
+
return this.state.selectedKeys !== "all" && this.state.selectedKeys.size === 0;
|
|
3610
|
+
}
|
|
3611
|
+
/**
|
|
3612
|
+
* Whether all items in the collection are selected.
|
|
3613
|
+
*/ get isSelectAll() {
|
|
3614
|
+
if (this.isEmpty) return false;
|
|
3615
|
+
if (this.state.selectedKeys === "all") return true;
|
|
3616
|
+
if (this._isSelectAll != null) return this._isSelectAll;
|
|
3617
|
+
let allKeys = this.getSelectAllKeys();
|
|
3618
|
+
let selectedKeys = this.state.selectedKeys;
|
|
3619
|
+
this._isSelectAll = allKeys.every((k) => selectedKeys.has(k));
|
|
3620
|
+
return this._isSelectAll;
|
|
3621
|
+
}
|
|
3622
|
+
get firstSelectedKey() {
|
|
3623
|
+
let first = null;
|
|
3624
|
+
for (let key of this.state.selectedKeys) {
|
|
3625
|
+
let item = this.collection.getItem(key);
|
|
3626
|
+
if (!first || item && $c5a24bc478652b5f$export$8c434b3a7a4dad6(this.collection, item, first) < 0) first = item;
|
|
3627
|
+
}
|
|
3628
|
+
var _first_key;
|
|
3629
|
+
return (_first_key = first === null || first === void 0 ? void 0 : first.key) !== null && _first_key !== void 0 ? _first_key : null;
|
|
3630
|
+
}
|
|
3631
|
+
get lastSelectedKey() {
|
|
3632
|
+
let last = null;
|
|
3633
|
+
for (let key of this.state.selectedKeys) {
|
|
3634
|
+
let item = this.collection.getItem(key);
|
|
3635
|
+
if (!last || item && $c5a24bc478652b5f$export$8c434b3a7a4dad6(this.collection, item, last) > 0) last = item;
|
|
3636
|
+
}
|
|
3637
|
+
var _last_key;
|
|
3638
|
+
return (_last_key = last === null || last === void 0 ? void 0 : last.key) !== null && _last_key !== void 0 ? _last_key : null;
|
|
3639
|
+
}
|
|
3640
|
+
get disabledKeys() {
|
|
3641
|
+
return this.state.disabledKeys;
|
|
3642
|
+
}
|
|
3643
|
+
get disabledBehavior() {
|
|
3644
|
+
return this.state.disabledBehavior;
|
|
3645
|
+
}
|
|
3646
|
+
/**
|
|
3647
|
+
* Extends the selection to the given key.
|
|
3648
|
+
*/ extendSelection(toKey) {
|
|
3649
|
+
if (this.selectionMode === "none") return;
|
|
3650
|
+
if (this.selectionMode === "single") {
|
|
3651
|
+
this.replaceSelection(toKey);
|
|
3652
|
+
return;
|
|
3653
|
+
}
|
|
3654
|
+
let mappedToKey = this.getKey(toKey);
|
|
3655
|
+
if (mappedToKey == null) return;
|
|
3656
|
+
let selection;
|
|
3657
|
+
if (this.state.selectedKeys === "all") selection = new $e40ea825a81a3709$export$52baac22726c72bf([mappedToKey], mappedToKey, mappedToKey);
|
|
3658
|
+
else {
|
|
3659
|
+
let selectedKeys = this.state.selectedKeys;
|
|
3660
|
+
var _selectedKeys_anchorKey;
|
|
3661
|
+
let anchorKey = (_selectedKeys_anchorKey = selectedKeys.anchorKey) !== null && _selectedKeys_anchorKey !== void 0 ? _selectedKeys_anchorKey : mappedToKey;
|
|
3662
|
+
selection = new $e40ea825a81a3709$export$52baac22726c72bf(selectedKeys, anchorKey, mappedToKey);
|
|
3663
|
+
var _selectedKeys_currentKey;
|
|
3664
|
+
for (let key of this.getKeyRange(anchorKey, (_selectedKeys_currentKey = selectedKeys.currentKey) !== null && _selectedKeys_currentKey !== void 0 ? _selectedKeys_currentKey : mappedToKey)) selection.delete(key);
|
|
3665
|
+
for (let key of this.getKeyRange(mappedToKey, anchorKey)) if (this.canSelectItem(key)) selection.add(key);
|
|
3666
|
+
}
|
|
3667
|
+
this.state.setSelectedKeys(selection);
|
|
3668
|
+
}
|
|
3669
|
+
getKeyRange(from, to) {
|
|
3670
|
+
let fromItem = this.collection.getItem(from);
|
|
3671
|
+
let toItem = this.collection.getItem(to);
|
|
3672
|
+
if (fromItem && toItem) {
|
|
3673
|
+
if ($c5a24bc478652b5f$export$8c434b3a7a4dad6(this.collection, fromItem, toItem) <= 0) return this.getKeyRangeInternal(from, to);
|
|
3674
|
+
return this.getKeyRangeInternal(to, from);
|
|
3675
|
+
}
|
|
3676
|
+
return [];
|
|
3677
|
+
}
|
|
3678
|
+
getKeyRangeInternal(from, to) {
|
|
3679
|
+
var _this_layoutDelegate;
|
|
3680
|
+
if ((_this_layoutDelegate = this.layoutDelegate) === null || _this_layoutDelegate === void 0 ? void 0 : _this_layoutDelegate.getKeyRange) return this.layoutDelegate.getKeyRange(from, to);
|
|
3681
|
+
let keys = [];
|
|
3682
|
+
let key = from;
|
|
3683
|
+
while (key != null) {
|
|
3684
|
+
let item = this.collection.getItem(key);
|
|
3685
|
+
if (item && (item.type === "item" || item.type === "cell" && this.allowsCellSelection)) keys.push(key);
|
|
3686
|
+
if (key === to) return keys;
|
|
3687
|
+
key = this.collection.getKeyAfter(key);
|
|
3688
|
+
}
|
|
3689
|
+
return [];
|
|
3690
|
+
}
|
|
3691
|
+
getKey(key) {
|
|
3692
|
+
let item = this.collection.getItem(key);
|
|
3693
|
+
if (!item) return key;
|
|
3694
|
+
if (item.type === "cell" && this.allowsCellSelection) return key;
|
|
3695
|
+
while (item && item.type !== "item" && item.parentKey != null) item = this.collection.getItem(item.parentKey);
|
|
3696
|
+
if (!item || item.type !== "item") return null;
|
|
3697
|
+
return item.key;
|
|
3698
|
+
}
|
|
3699
|
+
/**
|
|
3700
|
+
* Toggles whether the given key is selected.
|
|
3701
|
+
*/ toggleSelection(key) {
|
|
3702
|
+
if (this.selectionMode === "none") return;
|
|
3703
|
+
if (this.selectionMode === "single" && !this.isSelected(key)) {
|
|
3704
|
+
this.replaceSelection(key);
|
|
3705
|
+
return;
|
|
3706
|
+
}
|
|
3707
|
+
let mappedKey = this.getKey(key);
|
|
3708
|
+
if (mappedKey == null) return;
|
|
3709
|
+
let keys = new $e40ea825a81a3709$export$52baac22726c72bf(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
|
|
3710
|
+
if (keys.has(mappedKey)) keys.delete(mappedKey);
|
|
3711
|
+
else if (this.canSelectItem(mappedKey)) {
|
|
3712
|
+
keys.add(mappedKey);
|
|
3713
|
+
keys.anchorKey = mappedKey;
|
|
3714
|
+
keys.currentKey = mappedKey;
|
|
3715
|
+
}
|
|
3716
|
+
if (this.disallowEmptySelection && keys.size === 0) return;
|
|
3717
|
+
this.state.setSelectedKeys(keys);
|
|
3718
|
+
}
|
|
3719
|
+
/**
|
|
3720
|
+
* Replaces the selection with only the given key.
|
|
3721
|
+
*/ replaceSelection(key) {
|
|
3722
|
+
if (this.selectionMode === "none") return;
|
|
3723
|
+
let mappedKey = this.getKey(key);
|
|
3724
|
+
if (mappedKey == null) return;
|
|
3725
|
+
let selection = this.canSelectItem(mappedKey) ? new $e40ea825a81a3709$export$52baac22726c72bf([mappedKey], mappedKey, mappedKey) : new $e40ea825a81a3709$export$52baac22726c72bf();
|
|
3726
|
+
this.state.setSelectedKeys(selection);
|
|
3727
|
+
}
|
|
3728
|
+
/**
|
|
3729
|
+
* Replaces the selection with the given keys.
|
|
3730
|
+
*/ setSelectedKeys(keys) {
|
|
3731
|
+
if (this.selectionMode === "none") return;
|
|
3732
|
+
let selection = new $e40ea825a81a3709$export$52baac22726c72bf();
|
|
3733
|
+
for (let key of keys) {
|
|
3734
|
+
let mappedKey = this.getKey(key);
|
|
3735
|
+
if (mappedKey != null) {
|
|
3736
|
+
selection.add(mappedKey);
|
|
3737
|
+
if (this.selectionMode === "single") break;
|
|
3738
|
+
}
|
|
3739
|
+
}
|
|
3740
|
+
this.state.setSelectedKeys(selection);
|
|
3741
|
+
}
|
|
3742
|
+
getSelectAllKeys() {
|
|
3743
|
+
let keys = [];
|
|
3744
|
+
let addKeys = (key) => {
|
|
3745
|
+
while (key != null) {
|
|
3746
|
+
if (this.canSelectItem(key)) {
|
|
3747
|
+
var _getFirstItem;
|
|
3748
|
+
let item = this.collection.getItem(key);
|
|
3749
|
+
if ((item === null || item === void 0 ? void 0 : item.type) === "item") keys.push(key);
|
|
3750
|
+
var _getFirstItem_key;
|
|
3751
|
+
if ((item === null || item === void 0 ? void 0 : item.hasChildNodes) && (this.allowsCellSelection || item.type !== "item")) addKeys((_getFirstItem_key = (_getFirstItem = $c5a24bc478652b5f$export$fbdeaa6a76694f71($c5a24bc478652b5f$export$1005530eda016c13(item, this.collection))) === null || _getFirstItem === void 0 ? void 0 : _getFirstItem.key) !== null && _getFirstItem_key !== void 0 ? _getFirstItem_key : null);
|
|
3752
|
+
}
|
|
3753
|
+
key = this.collection.getKeyAfter(key);
|
|
3754
|
+
}
|
|
3755
|
+
};
|
|
3756
|
+
addKeys(this.collection.getFirstKey());
|
|
3757
|
+
return keys;
|
|
3758
|
+
}
|
|
3759
|
+
/**
|
|
3760
|
+
* Selects all items in the collection.
|
|
3761
|
+
*/ selectAll() {
|
|
3762
|
+
if (!this.isSelectAll && this.selectionMode === "multiple") this.state.setSelectedKeys("all");
|
|
3763
|
+
}
|
|
3764
|
+
/**
|
|
3765
|
+
* Removes all keys from the selection.
|
|
3766
|
+
*/ clearSelection() {
|
|
3767
|
+
if (!this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0)) this.state.setSelectedKeys(new $e40ea825a81a3709$export$52baac22726c72bf());
|
|
3768
|
+
}
|
|
3769
|
+
/**
|
|
3770
|
+
* Toggles between select all and an empty selection.
|
|
3771
|
+
*/ toggleSelectAll() {
|
|
3772
|
+
if (this.isSelectAll) this.clearSelection();
|
|
3773
|
+
else this.selectAll();
|
|
3774
|
+
}
|
|
3775
|
+
select(key, e) {
|
|
3776
|
+
if (this.selectionMode === "none") return;
|
|
3777
|
+
if (this.selectionMode === "single") if (this.isSelected(key) && !this.disallowEmptySelection) this.toggleSelection(key);
|
|
3778
|
+
else this.replaceSelection(key);
|
|
3779
|
+
else if (this.selectionBehavior === "toggle" || e && (e.pointerType === "touch" || e.pointerType === "virtual")) this.toggleSelection(key);
|
|
3780
|
+
else this.replaceSelection(key);
|
|
3781
|
+
}
|
|
3782
|
+
/**
|
|
3783
|
+
* Returns whether the current selection is equal to the given selection.
|
|
3784
|
+
*/ isSelectionEqual(selection) {
|
|
3785
|
+
if (selection === this.state.selectedKeys) return true;
|
|
3786
|
+
let selectedKeys = this.selectedKeys;
|
|
3787
|
+
if (selection.size !== selectedKeys.size) return false;
|
|
3788
|
+
for (let key of selection) if (!selectedKeys.has(key)) return false;
|
|
3789
|
+
for (let key of selectedKeys) if (!selection.has(key)) return false;
|
|
3790
|
+
return true;
|
|
3791
|
+
}
|
|
3792
|
+
canSelectItem(key) {
|
|
3793
|
+
var _item_props;
|
|
3794
|
+
if (this.state.selectionMode === "none" || this.state.disabledKeys.has(key)) return false;
|
|
3795
|
+
let item = this.collection.getItem(key);
|
|
3796
|
+
if (!item || (item === null || item === void 0 ? void 0 : (_item_props = item.props) === null || _item_props === void 0 ? void 0 : _item_props.isDisabled) || item.type === "cell" && !this.allowsCellSelection) return false;
|
|
3797
|
+
return true;
|
|
3798
|
+
}
|
|
3799
|
+
isDisabled(key) {
|
|
3800
|
+
var _this_collection_getItem_props, _this_collection_getItem;
|
|
3801
|
+
return this.state.disabledBehavior === "all" && (this.state.disabledKeys.has(key) || !!((_this_collection_getItem = this.collection.getItem(key)) === null || _this_collection_getItem === void 0 ? void 0 : (_this_collection_getItem_props = _this_collection_getItem.props) === null || _this_collection_getItem_props === void 0 ? void 0 : _this_collection_getItem_props.isDisabled));
|
|
3802
|
+
}
|
|
3803
|
+
isLink(key) {
|
|
3804
|
+
var _this_collection_getItem_props, _this_collection_getItem;
|
|
3805
|
+
return !!((_this_collection_getItem = this.collection.getItem(key)) === null || _this_collection_getItem === void 0 ? void 0 : (_this_collection_getItem_props = _this_collection_getItem.props) === null || _this_collection_getItem_props === void 0 ? void 0 : _this_collection_getItem_props.href);
|
|
3806
|
+
}
|
|
3807
|
+
getItemProps(key) {
|
|
3808
|
+
var _this_collection_getItem;
|
|
3809
|
+
return (_this_collection_getItem = this.collection.getItem(key)) === null || _this_collection_getItem === void 0 ? void 0 : _this_collection_getItem.props;
|
|
3810
|
+
}
|
|
3811
|
+
withCollection(collection) {
|
|
3812
|
+
return new $d496c0a20b6e58ec$export$6c8a5aaad13c9852(collection, this.state, {
|
|
3813
|
+
allowsCellSelection: this.allowsCellSelection,
|
|
3814
|
+
layoutDelegate: this.layoutDelegate || void 0
|
|
3815
|
+
});
|
|
3816
|
+
}
|
|
3817
|
+
constructor(collection, state, options) {
|
|
3818
|
+
this.collection = collection;
|
|
3819
|
+
this.state = state;
|
|
3820
|
+
var _options_allowsCellSelection;
|
|
3821
|
+
this.allowsCellSelection = (_options_allowsCellSelection = options === null || options === void 0 ? void 0 : options.allowsCellSelection) !== null && _options_allowsCellSelection !== void 0 ? _options_allowsCellSelection : false;
|
|
3822
|
+
this._isSelectAll = null;
|
|
3823
|
+
this.layoutDelegate = (options === null || options === void 0 ? void 0 : options.layoutDelegate) || null;
|
|
3824
|
+
}
|
|
3825
|
+
};
|
|
3826
|
+
//#endregion
|
|
3827
|
+
//#region ../../node_modules/.bun/@react-stately+menu@3.9.10+83d5fd7b249dbeef/node_modules/@react-stately/menu/dist/useMenuTriggerState.mjs
|
|
3828
|
+
function $a28c903ee9ad8dc5$export$79fefeb1c2091ac3(props) {
|
|
3829
|
+
let overlayTriggerState = $fc909762b330b746$export$61c6a8c84e605fb6(props);
|
|
3830
|
+
let [focusStrategy, setFocusStrategy] = useState(null);
|
|
3831
|
+
let [expandedKeysStack, setExpandedKeysStack] = useState([]);
|
|
3832
|
+
let closeAll = () => {
|
|
3833
|
+
setExpandedKeysStack([]);
|
|
3834
|
+
overlayTriggerState.close();
|
|
3835
|
+
};
|
|
3836
|
+
let openSubmenu = (triggerKey, level) => {
|
|
3837
|
+
setExpandedKeysStack((oldStack) => {
|
|
3838
|
+
if (level > oldStack.length) return oldStack;
|
|
3839
|
+
return [...oldStack.slice(0, level), triggerKey];
|
|
3840
|
+
});
|
|
3841
|
+
};
|
|
3842
|
+
let closeSubmenu = (triggerKey, level) => {
|
|
3843
|
+
setExpandedKeysStack((oldStack) => {
|
|
3844
|
+
if (oldStack[level] === triggerKey) return oldStack.slice(0, level);
|
|
3845
|
+
else return oldStack;
|
|
3846
|
+
});
|
|
3847
|
+
};
|
|
3848
|
+
return {
|
|
3849
|
+
focusStrategy,
|
|
3850
|
+
...overlayTriggerState,
|
|
3851
|
+
open(focusStrategy = null) {
|
|
3852
|
+
setFocusStrategy(focusStrategy);
|
|
3853
|
+
overlayTriggerState.open();
|
|
3854
|
+
},
|
|
3855
|
+
toggle(focusStrategy = null) {
|
|
3856
|
+
setFocusStrategy(focusStrategy);
|
|
3857
|
+
overlayTriggerState.toggle();
|
|
3858
|
+
},
|
|
3859
|
+
close() {
|
|
3860
|
+
closeAll();
|
|
3861
|
+
},
|
|
3862
|
+
expandedKeysStack,
|
|
3863
|
+
openSubmenu,
|
|
3864
|
+
closeSubmenu
|
|
3865
|
+
};
|
|
3866
|
+
}
|
|
3867
|
+
//#endregion
|
|
3868
|
+
//#region ../../node_modules/.bun/@react-stately+menu@3.9.10+83d5fd7b249dbeef/node_modules/@react-stately/menu/dist/useSubmenuTriggerState.mjs
|
|
3869
|
+
function $e5614764aa47eb35$export$cfc51cf86138bf98(props, state) {
|
|
3870
|
+
let { triggerKey } = props;
|
|
3871
|
+
let { expandedKeysStack, openSubmenu, closeSubmenu, close: closeAll } = state;
|
|
3872
|
+
let [submenuLevel] = useState(expandedKeysStack === null || expandedKeysStack === void 0 ? void 0 : expandedKeysStack.length);
|
|
3873
|
+
let isOpen = useMemo(() => expandedKeysStack[submenuLevel] === triggerKey, [
|
|
3874
|
+
expandedKeysStack,
|
|
3875
|
+
triggerKey,
|
|
3876
|
+
submenuLevel
|
|
3877
|
+
]);
|
|
3878
|
+
let [focusStrategy, setFocusStrategy] = useState(null);
|
|
3879
|
+
let open = useCallback((focusStrategy) => {
|
|
3880
|
+
setFocusStrategy(focusStrategy !== null && focusStrategy !== void 0 ? focusStrategy : null);
|
|
3881
|
+
openSubmenu(triggerKey, submenuLevel);
|
|
3882
|
+
}, [
|
|
3883
|
+
openSubmenu,
|
|
3884
|
+
submenuLevel,
|
|
3885
|
+
triggerKey
|
|
3886
|
+
]);
|
|
3887
|
+
let close = useCallback(() => {
|
|
3888
|
+
setFocusStrategy(null);
|
|
3889
|
+
closeSubmenu(triggerKey, submenuLevel);
|
|
3890
|
+
}, [
|
|
3891
|
+
closeSubmenu,
|
|
3892
|
+
submenuLevel,
|
|
3893
|
+
triggerKey
|
|
3894
|
+
]);
|
|
3895
|
+
let toggle = useCallback((focusStrategy) => {
|
|
3896
|
+
setFocusStrategy(focusStrategy !== null && focusStrategy !== void 0 ? focusStrategy : null);
|
|
3897
|
+
if (isOpen) close();
|
|
3898
|
+
else open(focusStrategy);
|
|
3899
|
+
}, [
|
|
3900
|
+
close,
|
|
3901
|
+
open,
|
|
3902
|
+
isOpen
|
|
3903
|
+
]);
|
|
3904
|
+
return useMemo(() => ({
|
|
3905
|
+
focusStrategy,
|
|
3906
|
+
isOpen,
|
|
3907
|
+
open,
|
|
3908
|
+
close,
|
|
3909
|
+
closeAll,
|
|
3910
|
+
submenuLevel,
|
|
3911
|
+
setOpen: () => {},
|
|
3912
|
+
toggle
|
|
3913
|
+
}), [
|
|
3914
|
+
isOpen,
|
|
3915
|
+
open,
|
|
3916
|
+
close,
|
|
3917
|
+
closeAll,
|
|
3918
|
+
focusStrategy,
|
|
3919
|
+
toggle,
|
|
3920
|
+
submenuLevel
|
|
3921
|
+
]);
|
|
3922
|
+
}
|
|
3923
|
+
//#endregion
|
|
3924
|
+
//#region ../../node_modules/.bun/@react-stately+tree@3.9.5+83d5fd7b249dbeef/node_modules/@react-stately/tree/dist/TreeCollection.mjs
|
|
3925
|
+
var $05ca4cd7c4a5a999$export$863faf230ee2118a = class {
|
|
3926
|
+
*[Symbol.iterator]() {
|
|
3927
|
+
yield* this.iterable;
|
|
3928
|
+
}
|
|
3929
|
+
get size() {
|
|
3930
|
+
return this.keyMap.size;
|
|
3931
|
+
}
|
|
3932
|
+
getKeys() {
|
|
3933
|
+
return this.keyMap.keys();
|
|
3934
|
+
}
|
|
3935
|
+
getKeyBefore(key) {
|
|
3936
|
+
let node = this.keyMap.get(key);
|
|
3937
|
+
var _node_prevKey;
|
|
3938
|
+
return node ? (_node_prevKey = node.prevKey) !== null && _node_prevKey !== void 0 ? _node_prevKey : null : null;
|
|
3939
|
+
}
|
|
3940
|
+
getKeyAfter(key) {
|
|
3941
|
+
let node = this.keyMap.get(key);
|
|
3942
|
+
var _node_nextKey;
|
|
3943
|
+
return node ? (_node_nextKey = node.nextKey) !== null && _node_nextKey !== void 0 ? _node_nextKey : null : null;
|
|
3944
|
+
}
|
|
3945
|
+
getFirstKey() {
|
|
3946
|
+
return this.firstKey;
|
|
3947
|
+
}
|
|
3948
|
+
getLastKey() {
|
|
3949
|
+
return this.lastKey;
|
|
3950
|
+
}
|
|
3951
|
+
getItem(key) {
|
|
3952
|
+
var _this_keyMap_get;
|
|
3953
|
+
return (_this_keyMap_get = this.keyMap.get(key)) !== null && _this_keyMap_get !== void 0 ? _this_keyMap_get : null;
|
|
3954
|
+
}
|
|
3955
|
+
at(idx) {
|
|
3956
|
+
const keys = [...this.getKeys()];
|
|
3957
|
+
return this.getItem(keys[idx]);
|
|
3958
|
+
}
|
|
3959
|
+
constructor(nodes, { expandedKeys } = {}) {
|
|
3960
|
+
this.keyMap = /* @__PURE__ */ new Map();
|
|
3961
|
+
this.firstKey = null;
|
|
3962
|
+
this.lastKey = null;
|
|
3963
|
+
this.iterable = nodes;
|
|
3964
|
+
expandedKeys = expandedKeys || /* @__PURE__ */ new Set();
|
|
3965
|
+
let visit = (node) => {
|
|
3966
|
+
this.keyMap.set(node.key, node);
|
|
3967
|
+
if (node.childNodes && (node.type === "section" || expandedKeys.has(node.key))) for (let child of node.childNodes) visit(child);
|
|
3968
|
+
};
|
|
3969
|
+
for (let node of nodes) visit(node);
|
|
3970
|
+
let last = null;
|
|
3971
|
+
let index = 0;
|
|
3972
|
+
for (let [key, node] of this.keyMap) {
|
|
3973
|
+
if (last) {
|
|
3974
|
+
last.nextKey = key;
|
|
3975
|
+
node.prevKey = last.key;
|
|
3976
|
+
} else {
|
|
3977
|
+
this.firstKey = key;
|
|
3978
|
+
node.prevKey = void 0;
|
|
3979
|
+
}
|
|
3980
|
+
if (node.type === "item") node.index = index++;
|
|
3981
|
+
last = node;
|
|
3982
|
+
last.nextKey = void 0;
|
|
3983
|
+
}
|
|
3984
|
+
var _last_key;
|
|
3985
|
+
this.lastKey = (_last_key = last === null || last === void 0 ? void 0 : last.key) !== null && _last_key !== void 0 ? _last_key : null;
|
|
3986
|
+
}
|
|
3987
|
+
};
|
|
3988
|
+
//#endregion
|
|
3989
|
+
//#region ../../node_modules/.bun/@react-stately+tree@3.9.5+83d5fd7b249dbeef/node_modules/@react-stately/tree/dist/useTreeState.mjs
|
|
3990
|
+
function $875d6693e12af071$export$728d6ba534403756(props) {
|
|
3991
|
+
let { onExpandedChange } = props;
|
|
3992
|
+
let [expandedKeys, setExpandedKeys] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(props.expandedKeys ? new Set(props.expandedKeys) : void 0, props.defaultExpandedKeys ? new Set(props.defaultExpandedKeys) : /* @__PURE__ */ new Set(), onExpandedChange);
|
|
3993
|
+
let selectionState = $7af3f5b51489e0b5$export$253fe78d46329472(props);
|
|
3994
|
+
let disabledKeys = useMemo(() => props.disabledKeys ? new Set(props.disabledKeys) : /* @__PURE__ */ new Set(), [props.disabledKeys]);
|
|
3995
|
+
let tree = $7613b1592d41b092$export$6cd28814d92fa9c9(props, useCallback((nodes) => new $05ca4cd7c4a5a999$export$863faf230ee2118a(nodes, { expandedKeys }), [expandedKeys]), null);
|
|
3996
|
+
useEffect(() => {
|
|
3997
|
+
if (selectionState.focusedKey != null && !tree.getItem(selectionState.focusedKey)) selectionState.setFocusedKey(null);
|
|
3998
|
+
}, [tree, selectionState.focusedKey]);
|
|
3999
|
+
let onToggle = (key) => {
|
|
4000
|
+
setExpandedKeys($875d6693e12af071$var$toggleKey(expandedKeys, key));
|
|
4001
|
+
};
|
|
4002
|
+
return {
|
|
4003
|
+
collection: tree,
|
|
4004
|
+
expandedKeys,
|
|
4005
|
+
disabledKeys,
|
|
4006
|
+
toggleKey: onToggle,
|
|
4007
|
+
setExpandedKeys,
|
|
4008
|
+
selectionManager: new $d496c0a20b6e58ec$export$6c8a5aaad13c9852(tree, selectionState)
|
|
4009
|
+
};
|
|
4010
|
+
}
|
|
4011
|
+
function $875d6693e12af071$var$toggleKey(set, key) {
|
|
4012
|
+
let res = new Set(set);
|
|
4013
|
+
if (res.has(key)) res.delete(key);
|
|
4014
|
+
else res.add(key);
|
|
4015
|
+
return res;
|
|
4016
|
+
}
|
|
4017
|
+
//#endregion
|
|
4018
|
+
//#region ../../node_modules/.bun/react-aria-components@1.15.1+67f6792bdf102c28/node_modules/react-aria-components/dist/Header.mjs
|
|
4019
|
+
const $72a5793c14baf454$export$e0e4026c12a8bdbb = /*#__PURE__*/ createContext({});
|
|
4020
|
+
//#endregion
|
|
4021
|
+
//#region ../../node_modules/.bun/react-aria-components@1.15.1+67f6792bdf102c28/node_modules/react-aria-components/dist/Separator.mjs
|
|
4022
|
+
const $431f98aba6844401$export$6615d83f6de245ce = /*#__PURE__*/ createContext({});
|
|
4023
|
+
var $431f98aba6844401$export$7750289ca694c0b5 = class extends $23b9f4fcf0fe224b$export$d68d59712b04d9d1 {
|
|
4024
|
+
filter(collection, newCollection) {
|
|
4025
|
+
let prevItem = newCollection.getItem(this.prevKey);
|
|
4026
|
+
if (prevItem && prevItem.type !== "separator") {
|
|
4027
|
+
let clone = this.clone();
|
|
4028
|
+
newCollection.addDescendants(clone, collection);
|
|
4029
|
+
return clone;
|
|
4030
|
+
}
|
|
4031
|
+
return null;
|
|
4032
|
+
}
|
|
4033
|
+
};
|
|
4034
|
+
$431f98aba6844401$export$7750289ca694c0b5.type = "separator";
|
|
4035
|
+
//#endregion
|
|
4036
|
+
//#region ../../node_modules/.bun/react-aria-components@1.15.1+67f6792bdf102c28/node_modules/react-aria-components/dist/Popover.mjs
|
|
4037
|
+
const $07b14b47974efb58$export$9b9a0cd73afb7ca4 = /*#__PURE__*/ createContext(null);
|
|
4038
|
+
const $07b14b47974efb58$var$PopoverGroupContext = /*#__PURE__*/ createContext(null);
|
|
4039
|
+
const $07b14b47974efb58$export$5b6b19405a83ff9d = /*#__PURE__*/ forwardRef(function Popover(props, ref) {
|
|
4040
|
+
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $07b14b47974efb58$export$9b9a0cd73afb7ca4);
|
|
4041
|
+
let contextState = useContext($de32f1b87079253c$export$d2f961adcb0afbe);
|
|
4042
|
+
let localState = $fc909762b330b746$export$61c6a8c84e605fb6(props);
|
|
4043
|
+
let state = props.isOpen != null || props.defaultOpen != null || !contextState ? localState : contextState;
|
|
4044
|
+
let isExiting = $d3f049242431219c$export$45fda7c47f93fd48(ref, state.isOpen) || props.isExiting || false;
|
|
4045
|
+
let isHidden = $f39a9eba43920ace$export$b5d7cc18bb8d2b59();
|
|
4046
|
+
let { direction } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
4047
|
+
if (isHidden) {
|
|
4048
|
+
let children = props.children;
|
|
4049
|
+
if (typeof children === "function") children = children({
|
|
4050
|
+
trigger: props.trigger || null,
|
|
4051
|
+
placement: "bottom",
|
|
4052
|
+
isEntering: false,
|
|
4053
|
+
isExiting: false,
|
|
4054
|
+
defaultChildren: null
|
|
4055
|
+
});
|
|
4056
|
+
return /*#__PURE__*/ $HgANd$react.createElement($HgANd$react.Fragment, null, children);
|
|
4057
|
+
}
|
|
4058
|
+
if (state && !state.isOpen && !isExiting) return null;
|
|
4059
|
+
return /*#__PURE__*/ $HgANd$react.createElement($07b14b47974efb58$var$PopoverInner, {
|
|
4060
|
+
...props,
|
|
4061
|
+
triggerRef: props.triggerRef,
|
|
4062
|
+
state,
|
|
4063
|
+
popoverRef: ref,
|
|
4064
|
+
isExiting,
|
|
4065
|
+
dir: direction
|
|
4066
|
+
});
|
|
4067
|
+
});
|
|
4068
|
+
function $07b14b47974efb58$var$PopoverInner({ state, isExiting, UNSTABLE_portalContainer, clearContexts, ...props }) {
|
|
4069
|
+
let arrowRef = useRef(null);
|
|
4070
|
+
let containerRef = useRef(null);
|
|
4071
|
+
let groupCtx = useContext($07b14b47974efb58$var$PopoverGroupContext);
|
|
4072
|
+
let isSubPopover = groupCtx && props.trigger === "SubmenuTrigger";
|
|
4073
|
+
var _props_offset;
|
|
4074
|
+
let { popoverProps, underlayProps, arrowProps, placement, triggerAnchorPoint } = $f2f8a6077418541e$export$542a6fd13ac93354({
|
|
4075
|
+
...props,
|
|
4076
|
+
offset: (_props_offset = props.offset) !== null && _props_offset !== void 0 ? _props_offset : 8,
|
|
4077
|
+
arrowRef,
|
|
4078
|
+
groupRef: isSubPopover ? groupCtx : containerRef
|
|
4079
|
+
}, state);
|
|
4080
|
+
let ref = props.popoverRef;
|
|
4081
|
+
let isEntering = $d3f049242431219c$export$6d3443f2c48bfc20(ref, !!placement) || props.isEntering || false;
|
|
4082
|
+
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
4083
|
+
...props,
|
|
4084
|
+
defaultClassName: "react-aria-Popover",
|
|
4085
|
+
values: {
|
|
4086
|
+
trigger: props.trigger || null,
|
|
4087
|
+
placement,
|
|
4088
|
+
isEntering,
|
|
4089
|
+
isExiting
|
|
4090
|
+
}
|
|
4091
|
+
});
|
|
4092
|
+
let shouldBeDialog = !props.isNonModal || props.trigger === "SubmenuTrigger";
|
|
4093
|
+
let [isDialog, setDialog] = useState(false);
|
|
4094
|
+
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
4095
|
+
if (ref.current) setDialog(shouldBeDialog && !ref.current.querySelector("[role=dialog]"));
|
|
4096
|
+
}, [ref, shouldBeDialog]);
|
|
4097
|
+
useEffect(() => {
|
|
4098
|
+
if (isDialog && props.trigger !== "SubmenuTrigger" && ref.current && !$d4ee10de306f2510$export$4282f70798064fe0(ref.current, document.activeElement)) $3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current);
|
|
4099
|
+
}, [
|
|
4100
|
+
isDialog,
|
|
4101
|
+
ref,
|
|
4102
|
+
props.trigger
|
|
4103
|
+
]);
|
|
4104
|
+
let children = useMemo(() => {
|
|
4105
|
+
let children = renderProps.children;
|
|
4106
|
+
if (clearContexts) for (let Context of clearContexts) children = /*#__PURE__*/ $HgANd$react.createElement(Context.Provider, { value: null }, children);
|
|
4107
|
+
return children;
|
|
4108
|
+
}, [renderProps.children, clearContexts]);
|
|
4109
|
+
let style = {
|
|
4110
|
+
...popoverProps.style,
|
|
4111
|
+
"--trigger-anchor-point": triggerAnchorPoint ? `${triggerAnchorPoint.x}px ${triggerAnchorPoint.y}px` : void 0,
|
|
4112
|
+
...renderProps.style
|
|
4113
|
+
};
|
|
4114
|
+
let overlay = /*#__PURE__*/ $HgANd$react.createElement($64fa3d84918910a7$export$df3a06d6289f983e.div, {
|
|
4115
|
+
...$3ef42575df84b30b$export$9d1611c77c2fe928($65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, { global: true }), popoverProps),
|
|
4116
|
+
...renderProps,
|
|
4117
|
+
role: isDialog ? "dialog" : void 0,
|
|
4118
|
+
tabIndex: isDialog ? -1 : void 0,
|
|
4119
|
+
"aria-label": props["aria-label"],
|
|
4120
|
+
"aria-labelledby": props["aria-labelledby"],
|
|
4121
|
+
ref,
|
|
4122
|
+
slot: props.slot || void 0,
|
|
4123
|
+
style,
|
|
4124
|
+
dir: props.dir,
|
|
4125
|
+
"data-trigger": props.trigger,
|
|
4126
|
+
"data-placement": placement,
|
|
4127
|
+
"data-entering": isEntering || void 0,
|
|
4128
|
+
"data-exiting": isExiting || void 0
|
|
4129
|
+
}, !props.isNonModal && /*#__PURE__*/ $HgANd$react.createElement($86ea4cb521eb2e37$export$2317d149ed6f78c4, { onDismiss: state.close }), /*#__PURE__*/ $HgANd$react.createElement($44f671af83e7d9e0$export$2de4954e8ae13b9f.Provider, { value: {
|
|
4130
|
+
...arrowProps,
|
|
4131
|
+
placement,
|
|
4132
|
+
ref: arrowRef
|
|
4133
|
+
} }, children), /*#__PURE__*/ $HgANd$react.createElement($86ea4cb521eb2e37$export$2317d149ed6f78c4, { onDismiss: state.close }));
|
|
4134
|
+
if (!isSubPopover) return /*#__PURE__*/ $HgANd$react.createElement($337b884510726a0d$export$c6fdb837b070b4ff, {
|
|
4135
|
+
...props,
|
|
4136
|
+
shouldContainFocus: isDialog,
|
|
4137
|
+
isExiting,
|
|
4138
|
+
portalContainer: UNSTABLE_portalContainer
|
|
4139
|
+
}, !props.isNonModal && state.isOpen && /*#__PURE__*/ $HgANd$react.createElement("div", {
|
|
4140
|
+
"data-testid": "underlay",
|
|
4141
|
+
...underlayProps,
|
|
4142
|
+
style: {
|
|
4143
|
+
position: "fixed",
|
|
4144
|
+
inset: 0
|
|
4145
|
+
}
|
|
4146
|
+
}), /*#__PURE__*/ $HgANd$react.createElement("div", {
|
|
4147
|
+
ref: containerRef,
|
|
4148
|
+
style: { display: "contents" }
|
|
4149
|
+
}, /*#__PURE__*/ $HgANd$react.createElement($07b14b47974efb58$var$PopoverGroupContext.Provider, { value: containerRef }, overlay)));
|
|
4150
|
+
var _ref;
|
|
4151
|
+
return /*#__PURE__*/ $HgANd$react.createElement($337b884510726a0d$export$c6fdb837b070b4ff, {
|
|
4152
|
+
...props,
|
|
4153
|
+
shouldContainFocus: isDialog,
|
|
4154
|
+
isExiting,
|
|
4155
|
+
portalContainer: (_ref = UNSTABLE_portalContainer !== null && UNSTABLE_portalContainer !== void 0 ? UNSTABLE_portalContainer : groupCtx === null || groupCtx === void 0 ? void 0 : groupCtx.current) !== null && _ref !== void 0 ? _ref : void 0
|
|
4156
|
+
}, overlay);
|
|
4157
|
+
}
|
|
4158
|
+
//#endregion
|
|
4159
|
+
//#region ../../node_modules/.bun/react-aria-components@1.15.1+67f6792bdf102c28/node_modules/react-aria-components/dist/Keyboard.mjs
|
|
4160
|
+
const $63df2425e2108aa8$export$744d98a3b8a94e1c = /*#__PURE__*/ createContext({});
|
|
4161
|
+
//#endregion
|
|
4162
|
+
//#region ../../node_modules/.bun/react-aria-components@1.15.1+67f6792bdf102c28/node_modules/react-aria-components/dist/Menu.mjs
|
|
4163
|
+
const $3674c52c6b3c5bce$export$c7e742effb1c51e2 = /*#__PURE__*/ createContext(null);
|
|
4164
|
+
const $3674c52c6b3c5bce$export$24aad8519b95b41b = /*#__PURE__*/ createContext(null);
|
|
4165
|
+
const $3674c52c6b3c5bce$export$795aec4671cbae19 = /*#__PURE__*/ createContext(null);
|
|
4166
|
+
const $3674c52c6b3c5bce$var$SelectionManagerContext = /*#__PURE__*/ createContext(null);
|
|
4167
|
+
function $3674c52c6b3c5bce$export$27d2ad3c5815583e(props) {
|
|
4168
|
+
let state = $a28c903ee9ad8dc5$export$79fefeb1c2091ac3(props);
|
|
4169
|
+
let ref = useRef(null);
|
|
4170
|
+
let { menuTriggerProps, menuProps } = $168583247155ddda$export$dc9c12ed27dd1b49({
|
|
4171
|
+
...props,
|
|
4172
|
+
type: "menu"
|
|
4173
|
+
}, state, ref);
|
|
4174
|
+
let [buttonWidth, setButtonWidth] = useState(null);
|
|
4175
|
+
let onResize = useCallback(() => {
|
|
4176
|
+
if (ref.current) setButtonWidth(ref.current.offsetWidth + "px");
|
|
4177
|
+
}, [ref]);
|
|
4178
|
+
$9daab02d461809db$export$683480f191c0e3ea({
|
|
4179
|
+
ref,
|
|
4180
|
+
onResize
|
|
4181
|
+
});
|
|
4182
|
+
let scrollRef = useRef(null);
|
|
4183
|
+
return /*#__PURE__*/ $HgANd$react.createElement($64fa3d84918910a7$export$2881499e37b75b9a, { values: [
|
|
4184
|
+
[$3674c52c6b3c5bce$export$c7e742effb1c51e2, {
|
|
4185
|
+
...menuProps,
|
|
4186
|
+
ref: scrollRef
|
|
4187
|
+
}],
|
|
4188
|
+
[$de32f1b87079253c$export$d2f961adcb0afbe, state],
|
|
4189
|
+
[$3674c52c6b3c5bce$export$795aec4671cbae19, state],
|
|
4190
|
+
[$07b14b47974efb58$export$9b9a0cd73afb7ca4, {
|
|
4191
|
+
trigger: "MenuTrigger",
|
|
4192
|
+
triggerRef: ref,
|
|
4193
|
+
scrollRef,
|
|
4194
|
+
placement: "bottom start",
|
|
4195
|
+
style: { "--trigger-width": buttonWidth },
|
|
4196
|
+
"aria-labelledby": menuProps["aria-labelledby"]
|
|
4197
|
+
}]
|
|
4198
|
+
] }, /*#__PURE__*/ $HgANd$react.createElement($f1ab8c75478c6f73$export$3351871ee4b288b8, {
|
|
4199
|
+
...menuTriggerProps,
|
|
4200
|
+
ref,
|
|
4201
|
+
isPressed: state.isOpen
|
|
4202
|
+
}, props.children));
|
|
4203
|
+
}
|
|
4204
|
+
const $3674c52c6b3c5bce$var$SubmenuTriggerContext = /*#__PURE__*/ createContext(null);
|
|
4205
|
+
var $3674c52c6b3c5bce$var$SubmenuTriggerNode = class extends $23b9f4fcf0fe224b$export$d68d59712b04d9d1 {
|
|
4206
|
+
filter(collection, newCollection, filterFn) {
|
|
4207
|
+
let triggerNode = collection.getItem(this.firstChildKey);
|
|
4208
|
+
if (triggerNode && filterFn(triggerNode.textValue, this)) {
|
|
4209
|
+
let clone = this.clone();
|
|
4210
|
+
newCollection.addDescendants(clone, collection);
|
|
4211
|
+
return clone;
|
|
4212
|
+
}
|
|
4213
|
+
return null;
|
|
4214
|
+
}
|
|
4215
|
+
};
|
|
4216
|
+
$3674c52c6b3c5bce$var$SubmenuTriggerNode.type = "submenutrigger";
|
|
4217
|
+
const $3674c52c6b3c5bce$export$ecabc99eeffab7ca = /*#__PURE__*/ $e1995378a142960e$export$e953bb1cd0f19726($3674c52c6b3c5bce$var$SubmenuTriggerNode, (props, ref, item) => {
|
|
4218
|
+
let { CollectionBranch } = useContext($7135fc7d473fd974$export$4feb769f8ddf26c5);
|
|
4219
|
+
let state = useContext($3674c52c6b3c5bce$export$24aad8519b95b41b);
|
|
4220
|
+
let rootMenuTriggerState = useContext($3674c52c6b3c5bce$export$795aec4671cbae19);
|
|
4221
|
+
let submenuTriggerState = $e5614764aa47eb35$export$cfc51cf86138bf98({ triggerKey: item.key }, rootMenuTriggerState);
|
|
4222
|
+
let submenuRef = useRef(null);
|
|
4223
|
+
let itemRef = $df56164dff5785e2$export$4338b53315abf666(ref);
|
|
4224
|
+
let { parentMenuRef, shouldUseVirtualFocus } = useContext($3674c52c6b3c5bce$var$SubmenuTriggerContext);
|
|
4225
|
+
let { submenuTriggerProps, submenuProps, popoverProps } = $0065b146e7192841$export$7138b0d059a6e743({
|
|
4226
|
+
parentMenuRef,
|
|
4227
|
+
submenuRef,
|
|
4228
|
+
delay: props.delay,
|
|
4229
|
+
shouldUseVirtualFocus
|
|
4230
|
+
}, submenuTriggerState, itemRef);
|
|
4231
|
+
return /*#__PURE__*/ $HgANd$react.createElement($64fa3d84918910a7$export$2881499e37b75b9a, { values: [
|
|
4232
|
+
[$3674c52c6b3c5bce$var$MenuItemContext, {
|
|
4233
|
+
...submenuTriggerProps,
|
|
4234
|
+
onAction: void 0,
|
|
4235
|
+
ref: itemRef
|
|
4236
|
+
}],
|
|
4237
|
+
[$3674c52c6b3c5bce$export$c7e742effb1c51e2, {
|
|
4238
|
+
ref: submenuRef,
|
|
4239
|
+
...submenuProps
|
|
4240
|
+
}],
|
|
4241
|
+
[$de32f1b87079253c$export$d2f961adcb0afbe, submenuTriggerState],
|
|
4242
|
+
[$07b14b47974efb58$export$9b9a0cd73afb7ca4, {
|
|
4243
|
+
trigger: "SubmenuTrigger",
|
|
4244
|
+
triggerRef: itemRef,
|
|
4245
|
+
placement: "end top",
|
|
4246
|
+
"aria-labelledby": submenuProps["aria-labelledby"],
|
|
4247
|
+
...popoverProps
|
|
4248
|
+
}]
|
|
4249
|
+
] }, /*#__PURE__*/ $HgANd$react.createElement(CollectionBranch, {
|
|
4250
|
+
collection: state.collection,
|
|
4251
|
+
parent: item
|
|
4252
|
+
}), props.children[1]);
|
|
4253
|
+
}, (props) => props.children[0]);
|
|
4254
|
+
const $3674c52c6b3c5bce$export$d9b273488cd8ce6f = /*#__PURE__*/ forwardRef(function Menu(props, ref) {
|
|
4255
|
+
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $3674c52c6b3c5bce$export$c7e742effb1c51e2);
|
|
4256
|
+
return /*#__PURE__*/ $HgANd$react.createElement($e1995378a142960e$export$bf788dd355e3a401, { content: /*#__PURE__*/ $HgANd$react.createElement($e1995378a142960e$export$fb8073518f34e6ec, props) }, (collection) => /*#__PURE__*/ $HgANd$react.createElement($3674c52c6b3c5bce$var$MenuInner, {
|
|
4257
|
+
props,
|
|
4258
|
+
collection,
|
|
4259
|
+
menuRef: ref
|
|
4260
|
+
}));
|
|
4261
|
+
});
|
|
4262
|
+
function $3674c52c6b3c5bce$var$MenuInner({ props, collection, menuRef: ref }) {
|
|
4263
|
+
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $4e85f108e88277b8$export$b0d3ecf7112093a7);
|
|
4264
|
+
let { filter, ...autocompleteMenuProps } = props;
|
|
4265
|
+
let filteredCollection = useMemo(() => filter ? collection.filter(filter) : collection, [collection, filter]);
|
|
4266
|
+
let state = $875d6693e12af071$export$728d6ba534403756({
|
|
4267
|
+
...props,
|
|
4268
|
+
collection: filteredCollection,
|
|
4269
|
+
children: void 0
|
|
4270
|
+
});
|
|
4271
|
+
let triggerState = useContext($3674c52c6b3c5bce$export$795aec4671cbae19);
|
|
4272
|
+
let { isVirtualized, CollectionRoot } = useContext($7135fc7d473fd974$export$4feb769f8ddf26c5);
|
|
4273
|
+
let { menuProps } = $d5336fe17ce95402$export$38eaa17faae8f579({
|
|
4274
|
+
...props,
|
|
4275
|
+
isVirtualized,
|
|
4276
|
+
onClose: props.onClose || (triggerState === null || triggerState === void 0 ? void 0 : triggerState.close)
|
|
4277
|
+
}, state, ref);
|
|
4278
|
+
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
4279
|
+
...props,
|
|
4280
|
+
children: void 0,
|
|
4281
|
+
defaultClassName: "react-aria-Menu",
|
|
4282
|
+
values: { isEmpty: state.collection.size === 0 }
|
|
4283
|
+
});
|
|
4284
|
+
let emptyState = null;
|
|
4285
|
+
if (state.collection.size === 0 && props.renderEmptyState) emptyState = /*#__PURE__*/ $HgANd$react.createElement("div", {
|
|
4286
|
+
role: "menuitem",
|
|
4287
|
+
style: { display: "contents" }
|
|
4288
|
+
}, props.renderEmptyState());
|
|
4289
|
+
let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, { global: true });
|
|
4290
|
+
return /*#__PURE__*/ $HgANd$react.createElement($9bf71ea28793e738$export$20e40289641fbbb6, null, /*#__PURE__*/ $HgANd$react.createElement($64fa3d84918910a7$export$df3a06d6289f983e.div, {
|
|
4291
|
+
...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, menuProps),
|
|
4292
|
+
ref,
|
|
4293
|
+
slot: props.slot || void 0,
|
|
4294
|
+
"data-empty": state.collection.size === 0 || void 0,
|
|
4295
|
+
onScroll: props.onScroll
|
|
4296
|
+
}, /*#__PURE__*/ $HgANd$react.createElement($64fa3d84918910a7$export$2881499e37b75b9a, { values: [
|
|
4297
|
+
[$3674c52c6b3c5bce$export$24aad8519b95b41b, state],
|
|
4298
|
+
[$431f98aba6844401$export$6615d83f6de245ce, { elementType: "div" }],
|
|
4299
|
+
[$7135fc7d473fd974$export$d40e14dec8b060a8, {
|
|
4300
|
+
name: "MenuSection",
|
|
4301
|
+
render: $3674c52c6b3c5bce$var$MenuSectionInner
|
|
4302
|
+
}],
|
|
4303
|
+
[$3674c52c6b3c5bce$var$SubmenuTriggerContext, {
|
|
4304
|
+
parentMenuRef: ref,
|
|
4305
|
+
shouldUseVirtualFocus: autocompleteMenuProps === null || autocompleteMenuProps === void 0 ? void 0 : autocompleteMenuProps.shouldUseVirtualFocus
|
|
4306
|
+
}],
|
|
4307
|
+
[$3674c52c6b3c5bce$var$MenuItemContext, { shouldCloseOnSelect: props.shouldCloseOnSelect }],
|
|
4308
|
+
[$4e85f108e88277b8$export$b0d3ecf7112093a7, null],
|
|
4309
|
+
[$4e85f108e88277b8$export$698f465ec27e93df, null],
|
|
4310
|
+
[$3674c52c6b3c5bce$var$SelectionManagerContext, state.selectionManager],
|
|
4311
|
+
[$3674c52c6b3c5bce$export$795aec4671cbae19, triggerState !== null && triggerState !== void 0 ? triggerState : $a28c903ee9ad8dc5$export$79fefeb1c2091ac3({})]
|
|
4312
|
+
] }, /*#__PURE__*/ $HgANd$react.createElement($c8a5a149f625efcf$export$758399f318e6385a, null, /*#__PURE__*/ $HgANd$react.createElement(CollectionRoot, {
|
|
4313
|
+
collection: state.collection,
|
|
4314
|
+
persistedKeys: $7135fc7d473fd974$export$90e00781bc59d8f9(state.selectionManager.focusedKey),
|
|
4315
|
+
scrollRef: ref
|
|
4316
|
+
}))), emptyState));
|
|
4317
|
+
}
|
|
4318
|
+
var $3674c52c6b3c5bce$var$GroupSelectionManager = class extends $d496c0a20b6e58ec$export$6c8a5aaad13c9852 {
|
|
4319
|
+
get focusedKey() {
|
|
4320
|
+
return this.parent.focusedKey;
|
|
4321
|
+
}
|
|
4322
|
+
get isFocused() {
|
|
4323
|
+
return this.parent.isFocused;
|
|
4324
|
+
}
|
|
4325
|
+
setFocusedKey(key, childFocusStrategy) {
|
|
4326
|
+
return this.parent.setFocusedKey(key, childFocusStrategy);
|
|
4327
|
+
}
|
|
4328
|
+
setFocused(isFocused) {
|
|
4329
|
+
this.parent.setFocused(isFocused);
|
|
4330
|
+
}
|
|
4331
|
+
get childFocusStrategy() {
|
|
4332
|
+
return this.parent.childFocusStrategy;
|
|
4333
|
+
}
|
|
4334
|
+
constructor(parent, state) {
|
|
4335
|
+
super(parent.collection, state);
|
|
4336
|
+
this.parent = parent;
|
|
4337
|
+
}
|
|
4338
|
+
};
|
|
4339
|
+
function $3674c52c6b3c5bce$var$MenuSectionInner(props, ref, section, className = "react-aria-MenuSection") {
|
|
4340
|
+
var _section_props, _section_props1, _useSlottedContext;
|
|
4341
|
+
let state = useContext($3674c52c6b3c5bce$export$24aad8519b95b41b);
|
|
4342
|
+
let { CollectionBranch } = useContext($7135fc7d473fd974$export$4feb769f8ddf26c5);
|
|
4343
|
+
let [headingRef, heading] = $64fa3d84918910a7$export$9d4c57ee4c6ffdd8();
|
|
4344
|
+
var _section_props_arialabel;
|
|
4345
|
+
let { headingProps, groupProps } = $3e5eb2498db5b506$export$73f7a44322579622({
|
|
4346
|
+
heading,
|
|
4347
|
+
"aria-label": (_section_props_arialabel = section.props["aria-label"]) !== null && _section_props_arialabel !== void 0 ? _section_props_arialabel : void 0
|
|
4348
|
+
});
|
|
4349
|
+
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
4350
|
+
...props,
|
|
4351
|
+
id: void 0,
|
|
4352
|
+
children: void 0,
|
|
4353
|
+
defaultClassName: className,
|
|
4354
|
+
className: (_section_props = section.props) === null || _section_props === void 0 ? void 0 : _section_props.className,
|
|
4355
|
+
style: (_section_props1 = section.props) === null || _section_props1 === void 0 ? void 0 : _section_props1.style,
|
|
4356
|
+
values: void 0
|
|
4357
|
+
});
|
|
4358
|
+
let parent = useContext($3674c52c6b3c5bce$var$SelectionManagerContext);
|
|
4359
|
+
let selectionState = $7af3f5b51489e0b5$export$253fe78d46329472(props);
|
|
4360
|
+
let manager = props.selectionMode != null ? new $3674c52c6b3c5bce$var$GroupSelectionManager(parent, selectionState) : parent;
|
|
4361
|
+
let closeOnSelect = (_useSlottedContext = $64fa3d84918910a7$export$fabf2dc03a41866e($3674c52c6b3c5bce$var$MenuItemContext)) === null || _useSlottedContext === void 0 ? void 0 : _useSlottedContext.shouldCloseOnSelect;
|
|
4362
|
+
let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, { global: true });
|
|
4363
|
+
delete DOMProps.id;
|
|
4364
|
+
var _props_shouldCloseOnSelect;
|
|
4365
|
+
return /*#__PURE__*/ $HgANd$react.createElement($64fa3d84918910a7$export$df3a06d6289f983e.section, {
|
|
4366
|
+
...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, groupProps),
|
|
4367
|
+
ref
|
|
4368
|
+
}, /*#__PURE__*/ $HgANd$react.createElement($64fa3d84918910a7$export$2881499e37b75b9a, { values: [
|
|
4369
|
+
[$72a5793c14baf454$export$e0e4026c12a8bdbb, {
|
|
4370
|
+
...headingProps,
|
|
4371
|
+
ref: headingRef
|
|
4372
|
+
}],
|
|
4373
|
+
[$3674c52c6b3c5bce$var$SelectionManagerContext, manager],
|
|
4374
|
+
[$3674c52c6b3c5bce$var$MenuItemContext, { shouldCloseOnSelect: (_props_shouldCloseOnSelect = props.shouldCloseOnSelect) !== null && _props_shouldCloseOnSelect !== void 0 ? _props_shouldCloseOnSelect : closeOnSelect }]
|
|
4375
|
+
] }, /*#__PURE__*/ $HgANd$react.createElement(CollectionBranch, {
|
|
4376
|
+
collection: state.collection,
|
|
4377
|
+
parent: section
|
|
4378
|
+
})));
|
|
4379
|
+
}
|
|
4380
|
+
const $3674c52c6b3c5bce$var$MenuItemContext = /*#__PURE__*/ createContext(null);
|
|
4381
|
+
const $3674c52c6b3c5bce$export$2ce376c2cc3355c8 = /*#__PURE__*/ $e1995378a142960e$export$18af5c7a9e9b3664($23b9f4fcf0fe224b$export$fd11f34e1d07f134, function MenuItem(props, forwardedRef, item) {
|
|
4382
|
+
var _useSlottedContext;
|
|
4383
|
+
[props, forwardedRef] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, forwardedRef, $3674c52c6b3c5bce$var$MenuItemContext);
|
|
4384
|
+
let id = (_useSlottedContext = $64fa3d84918910a7$export$fabf2dc03a41866e($3674c52c6b3c5bce$var$MenuItemContext)) === null || _useSlottedContext === void 0 ? void 0 : _useSlottedContext.id;
|
|
4385
|
+
let state = useContext($3674c52c6b3c5bce$export$24aad8519b95b41b);
|
|
4386
|
+
let ref = $df56164dff5785e2$export$4338b53315abf666(forwardedRef);
|
|
4387
|
+
let selectionManager = useContext($3674c52c6b3c5bce$var$SelectionManagerContext);
|
|
4388
|
+
let { menuItemProps, labelProps, descriptionProps, keyboardShortcutProps, ...states } = $a2e5df62f93c7633$export$9d32628fc2aea7da({
|
|
4389
|
+
...props,
|
|
4390
|
+
id,
|
|
4391
|
+
key: item.key,
|
|
4392
|
+
selectionManager
|
|
4393
|
+
}, state, ref);
|
|
4394
|
+
let { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456({ isDisabled: states.isDisabled });
|
|
4395
|
+
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
4396
|
+
...props,
|
|
4397
|
+
id: void 0,
|
|
4398
|
+
children: item.rendered,
|
|
4399
|
+
defaultClassName: "react-aria-MenuItem",
|
|
4400
|
+
values: {
|
|
4401
|
+
...states,
|
|
4402
|
+
isHovered,
|
|
4403
|
+
isFocusVisible: states.isFocusVisible,
|
|
4404
|
+
selectionMode: selectionManager.selectionMode,
|
|
4405
|
+
selectionBehavior: selectionManager.selectionBehavior,
|
|
4406
|
+
hasSubmenu: !!props["aria-haspopup"],
|
|
4407
|
+
isOpen: props["aria-expanded"] === "true"
|
|
4408
|
+
}
|
|
4409
|
+
});
|
|
4410
|
+
let ElementType = props.href ? $64fa3d84918910a7$export$df3a06d6289f983e.a : $64fa3d84918910a7$export$df3a06d6289f983e.div;
|
|
4411
|
+
let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, { global: true });
|
|
4412
|
+
delete DOMProps.id;
|
|
4413
|
+
delete DOMProps.onClick;
|
|
4414
|
+
return /*#__PURE__*/ $HgANd$react.createElement(ElementType, {
|
|
4415
|
+
...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, menuItemProps, hoverProps),
|
|
4416
|
+
ref,
|
|
4417
|
+
"data-disabled": states.isDisabled || void 0,
|
|
4418
|
+
"data-hovered": isHovered || void 0,
|
|
4419
|
+
"data-focused": states.isFocused || void 0,
|
|
4420
|
+
"data-focus-visible": states.isFocusVisible || void 0,
|
|
4421
|
+
"data-pressed": states.isPressed || void 0,
|
|
4422
|
+
"data-selected": states.isSelected || void 0,
|
|
4423
|
+
"data-selection-mode": selectionManager.selectionMode === "none" ? void 0 : selectionManager.selectionMode,
|
|
4424
|
+
"data-has-submenu": !!props["aria-haspopup"] || void 0,
|
|
4425
|
+
"data-open": props["aria-expanded"] === "true" || void 0
|
|
4426
|
+
}, /*#__PURE__*/ $HgANd$react.createElement($64fa3d84918910a7$export$2881499e37b75b9a, { values: [
|
|
4427
|
+
[$514c0188e459b4c0$export$9afb8bc826b033ea, { slots: {
|
|
4428
|
+
[$64fa3d84918910a7$export$c62b8e45d58ddad9]: labelProps,
|
|
4429
|
+
label: labelProps,
|
|
4430
|
+
description: descriptionProps
|
|
4431
|
+
} }],
|
|
4432
|
+
[$63df2425e2108aa8$export$744d98a3b8a94e1c, keyboardShortcutProps],
|
|
4433
|
+
[$1d5b8b8664671ef2$export$c9549807523555e0, { isSelected: states.isSelected }]
|
|
4434
|
+
] }, renderProps.children));
|
|
4435
|
+
});
|
|
4436
|
+
//#endregion
|
|
4437
|
+
//#region ../../node_modules/.bun/react-aria-components@1.15.1+67f6792bdf102c28/node_modules/react-aria-components/dist/Dialog.mjs
|
|
4438
|
+
const $de32f1b87079253c$export$8b93a07348a7730c = /*#__PURE__*/ createContext(null);
|
|
4439
|
+
const $de32f1b87079253c$export$d2f961adcb0afbe = /*#__PURE__*/ createContext(null);
|
|
4440
|
+
function $de32f1b87079253c$export$2e1e1122cf0cba88(props) {
|
|
4441
|
+
let state = $a28c903ee9ad8dc5$export$79fefeb1c2091ac3(props);
|
|
4442
|
+
let buttonRef = useRef(null);
|
|
4443
|
+
let { triggerProps, overlayProps } = $628037886ba31236$export$f9d5c8beee7d008d({ type: "dialog" }, state, buttonRef);
|
|
4444
|
+
let [buttonWidth, setButtonWidth] = useState(null);
|
|
4445
|
+
let onResize = useCallback(() => {
|
|
4446
|
+
if (buttonRef.current) setButtonWidth(buttonRef.current.offsetWidth + "px");
|
|
4447
|
+
}, [buttonRef]);
|
|
4448
|
+
$9daab02d461809db$export$683480f191c0e3ea({
|
|
4449
|
+
ref: buttonRef,
|
|
4450
|
+
onResize
|
|
4451
|
+
});
|
|
4452
|
+
triggerProps.id = $bdb11010cef70236$export$f680877a34711e37();
|
|
4453
|
+
overlayProps["aria-labelledby"] = triggerProps.id;
|
|
4454
|
+
return /*#__PURE__*/ $HgANd$react.createElement($64fa3d84918910a7$export$2881499e37b75b9a, { values: [
|
|
4455
|
+
[$de32f1b87079253c$export$d2f961adcb0afbe, state],
|
|
4456
|
+
[$3674c52c6b3c5bce$export$795aec4671cbae19, state],
|
|
4457
|
+
[$de32f1b87079253c$export$8b93a07348a7730c, overlayProps],
|
|
4458
|
+
[$07b14b47974efb58$export$9b9a0cd73afb7ca4, {
|
|
4459
|
+
trigger: "DialogTrigger",
|
|
4460
|
+
triggerRef: buttonRef,
|
|
4461
|
+
"aria-labelledby": overlayProps["aria-labelledby"],
|
|
4462
|
+
style: { "--trigger-width": buttonWidth }
|
|
4463
|
+
}]
|
|
4464
|
+
] }, /*#__PURE__*/ $HgANd$react.createElement($f1ab8c75478c6f73$export$3351871ee4b288b8, {
|
|
4465
|
+
...triggerProps,
|
|
4466
|
+
ref: buttonRef,
|
|
4467
|
+
isPressed: state.isOpen
|
|
4468
|
+
}, props.children));
|
|
4469
|
+
}
|
|
4470
|
+
const $de32f1b87079253c$export$3ddf2d174ce01153 = /*#__PURE__*/ forwardRef(function Dialog(props, ref) {
|
|
4471
|
+
let originalAriaLabelledby = props["aria-labelledby"];
|
|
4472
|
+
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $de32f1b87079253c$export$8b93a07348a7730c);
|
|
4473
|
+
let { dialogProps, titleProps } = $40df3f8667284809$export$d55e7ee900f34e93({
|
|
4474
|
+
...props,
|
|
4475
|
+
"aria-labelledby": originalAriaLabelledby
|
|
4476
|
+
}, ref);
|
|
4477
|
+
let state = useContext($de32f1b87079253c$export$d2f961adcb0afbe);
|
|
4478
|
+
if (!dialogProps["aria-label"] && !dialogProps["aria-labelledby"]) if (props["aria-labelledby"]) dialogProps["aria-labelledby"] = props["aria-labelledby"];
|
|
4479
|
+
else console.warn("If a Dialog does not contain a <Heading slot=\"title\">, it must have an aria-label or aria-labelledby attribute for accessibility.");
|
|
4480
|
+
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
4481
|
+
defaultClassName: "react-aria-Dialog",
|
|
4482
|
+
className: props.className,
|
|
4483
|
+
style: props.style,
|
|
4484
|
+
children: props.children,
|
|
4485
|
+
values: { close: (state === null || state === void 0 ? void 0 : state.close) || (() => {}) }
|
|
4486
|
+
});
|
|
4487
|
+
let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, { global: true });
|
|
4488
|
+
return /*#__PURE__*/ $HgANd$react.createElement($64fa3d84918910a7$export$df3a06d6289f983e.section, {
|
|
4489
|
+
...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, dialogProps),
|
|
4490
|
+
render: props.render,
|
|
4491
|
+
ref,
|
|
4492
|
+
slot: props.slot || void 0
|
|
4493
|
+
}, /*#__PURE__*/ $HgANd$react.createElement($64fa3d84918910a7$export$2881499e37b75b9a, { values: [[$4e85f108e88277b8$export$d688439359537581, { slots: {
|
|
4494
|
+
[$64fa3d84918910a7$export$c62b8e45d58ddad9]: {},
|
|
4495
|
+
title: {
|
|
4496
|
+
...titleProps,
|
|
4497
|
+
level: 2
|
|
4498
|
+
}
|
|
4499
|
+
} }], [$d2b4bc8c273e7be6$export$24d547caef80ccd1, { slots: {
|
|
4500
|
+
[$64fa3d84918910a7$export$c62b8e45d58ddad9]: {},
|
|
4501
|
+
close: { onPress: () => state === null || state === void 0 ? void 0 : state.close() }
|
|
4502
|
+
} }]] }, renderProps.children));
|
|
4503
|
+
});
|
|
4504
|
+
//#endregion
|
|
4505
|
+
export { $ae20dd8cbca75726$export$d6daf82dcd84e87c as A, $21f1aa98acb08317$export$c57958e35f31ed73 as B, $168583247155ddda$export$dc9c12ed27dd1b49 as C, $982254629710d113$export$b95089534ab7c1fd as D, $7613b1592d41b092$export$6cd28814d92fa9c9 as E, $49c51c25361d4cd2$export$ee0f7cc6afcd1c18 as F, $cc38e7bd3fc7b213$export$2bb74740c4e19def as H, $a11501f3d1d39e6c$export$ea8f71083e90600f as I, $55f9b1ae81f22853$export$2b35b76d2e30e129 as L, $337b884510726a0d$export$c6fdb837b070b4ff as M, $5e3802645cc19319$export$1c3ebcada18427bf as N, $2a25aae57d74318e$export$a05409b8bb224a5a as O, $86ea4cb521eb2e37$export$2317d149ed6f78c4 as P, $325a3faab7a68acd$export$a16aca283550c30d as R, $23b9f4fcf0fe224b$export$fd11f34e1d07f134 as S, $c5a24bc478652b5f$export$1005530eda016c13 as T, $62d8ded9296f3872$export$cfa2225e87938781 as V, $e1995378a142960e$export$18af5c7a9e9b3664 as _, $3674c52c6b3c5bce$export$2ce376c2cc3355c8 as a, $23b9f4fcf0fe224b$export$8258a0665a675899 as b, $07b14b47974efb58$export$5b6b19405a83ff9d as c, $72a5793c14baf454$export$e0e4026c12a8bdbb as d, $d496c0a20b6e58ec$export$6c8a5aaad13c9852 as f, $7135fc7d473fd974$export$d40e14dec8b060a8 as g, $7135fc7d473fd974$export$4feb769f8ddf26c5 as h, $3674c52c6b3c5bce$export$27d2ad3c5815583e as i, $337b884510726a0d$export$14c98a7594375490 as j, $880e95eb8b93ba9a$export$ecf600387e221c37 as k, $07b14b47974efb58$export$9b9a0cd73afb7ca4 as l, $7135fc7d473fd974$export$2dbbd341daed716d as m, $de32f1b87079253c$export$3ddf2d174ce01153 as n, $3674c52c6b3c5bce$export$d9b273488cd8ce6f as o, $7af3f5b51489e0b5$export$253fe78d46329472 as p, $de32f1b87079253c$export$d2f961adcb0afbe as r, $3674c52c6b3c5bce$export$ecabc99eeffab7ca as s, $de32f1b87079253c$export$2e1e1122cf0cba88 as t, $431f98aba6844401$export$6615d83f6de245ce as u, $e1995378a142960e$export$bf788dd355e3a401 as v, $453cc9f0df89c0a5$export$77d5aafae4e095b2 as w, $23b9f4fcf0fe224b$export$d68d59712b04d9d1 as x, $e1995378a142960e$export$fb8073518f34e6ec as y, $2f04cbc44ee30ce0$export$c826860796309d1b as z };
|