@eightshift/ui-components 8.5.0-beta.1 → 9.0.0-beta.1
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 +76 -5
- package/dist/AnimatePresence-d1_liqRo.js +9 -0
- package/dist/Autocomplete-CQH-8_68.js +1 -0
- package/dist/Button-DhaWFe8e.js +1 -0
- package/dist/Checkbox-CrF0YJpD.js +1 -0
- package/dist/Dialog-CapEn0UN.js +5 -0
- package/dist/FocusScope-BoxZvmWP.js +1 -0
- package/dist/Form-BRnR5K3X.js +1 -0
- package/dist/Heading-DMnq9QZH.js +1 -0
- package/dist/Hidden-BK7EwYvz.js +1 -0
- package/dist/I18nProvider-BEh6VvSv.js +1 -0
- package/dist/Input-DldfdALf.js +1 -0
- package/dist/ListBox-fe9bhB2y.js +1 -0
- package/dist/NumberFormatter-nhsGk7J2.js +1 -0
- package/dist/PortalProvider-CJT9hS6n.js +1 -0
- package/dist/RadioGroup-yAsG5Pon.js +1 -0
- package/dist/SearchField-BtcWW7kv.js +1 -0
- package/dist/SelectionIndicator-Bslc4sCw.js +1 -0
- package/dist/Slider-B_pPPuRp.js +1 -0
- package/dist/Text-CKNC-T46.js +1 -0
- package/dist/VisuallyHidden-D5n5kSd7.js +1 -0
- package/dist/animation-CmxZG3Hu.js +1 -0
- package/dist/assets/font-allo.css +11 -0
- package/dist/assets/font-dm-mono.css +1 -0
- package/dist/assets/fonts/Allo-OFL.txt +93 -0
- package/dist/assets/fonts/AlloVariable.woff2 +0 -0
- package/dist/assets/fonts/dm-mono-latin-300-normal.woff2 +0 -0
- package/dist/assets/fonts/dm-mono-latin-400-normal.woff2 +0 -0
- package/dist/assets/fonts/dm-mono-latin-500-normal.woff2 +0 -0
- package/dist/assets/fonts/dm-mono-latin-ext-300-normal.woff2 +0 -0
- package/dist/assets/fonts/dm-mono-latin-ext-400-normal.woff2 +0 -0
- package/dist/assets/fonts/dm-mono-latin-ext-500-normal.woff2 +0 -0
- package/dist/assets/fonts-manifest.json +13 -49
- package/dist/assets/style-admin.css +2 -4
- package/dist/assets/style-editor.css +2 -4
- package/dist/assets/style.css +2 -4
- package/dist/assets/wp-overrides/allow-full-width-blocks.css +1 -1
- package/dist/assets/wp-overrides/fix-label-text-case.css +2 -2
- package/dist/assets/wp-overrides/increase-sidebar-width.css +2 -2
- package/dist/assets/wp-overrides/make-block-messages-nicer.css +2 -2
- package/dist/assets/wp-overrides/replace-fonts.css +2 -2
- package/dist/assets/wp-overrides/restyle-tooltips.css +2 -2
- package/dist/assets/wp-overrides/round-corners.css +2 -2
- package/dist/assets/wp-overrides/unify-button-sizes.css +2 -2
- package/dist/build-module-CslE_kF6.js +1 -0
- package/dist/button-C_B2CkrL.js +1 -0
- package/dist/clsx-DB0hHKMi.js +1 -0
- package/dist/color-swatch-DUJ3Q4oy.js +1 -0
- package/dist/components/animated-visibility/animated-visibility.js +1 -82
- package/dist/components/base-control/base-control.d.ts +3 -1
- package/dist/components/base-control/base-control.js +1 -69
- package/dist/components/base-control/{container.d.ts → control-group.d.ts} +19 -26
- package/dist/components/base-control/control-group.js +1 -0
- package/dist/components/breakpoint-preview/breakpoint-preview.js +1 -151
- package/dist/components/button/button.d.ts +16 -22
- package/dist/components/button/button.js +1 -2
- package/dist/components/button/styles.d.ts +15 -0
- package/dist/components/button/styles.js +1 -0
- package/dist/components/checkbox/checkbox.d.ts +2 -4
- package/dist/components/checkbox/checkbox.js +1 -2
- package/dist/components/color-pickers/color-picker.js +1 -158
- package/dist/components/color-pickers/color-swatch.d.ts +0 -2
- package/dist/components/color-pickers/color-swatch.js +1 -2
- package/dist/components/color-pickers/gradient-editor.js +1 -2
- package/dist/components/color-pickers/solid-color-picker.js +1 -2
- package/dist/components/contextual-help/contextual-help.d.ts +2 -1
- package/dist/components/contextual-help/contextual-help.js +1 -82
- package/dist/components/{expandable/expandable.d.ts → disclosure/disclosure.d.ts} +15 -10
- package/dist/components/disclosure/disclosure.js +1 -0
- package/dist/components/draggable/draggable-context.js +1 -9
- package/dist/components/draggable/draggable-handle.js +1 -29
- package/dist/components/draggable/draggable.d.ts +9 -4
- package/dist/components/draggable/draggable.js +1 -2
- package/dist/components/draggable-list/draggable-list-context.js +1 -5
- package/dist/components/draggable-list/draggable-list-item.js +1 -61
- package/dist/components/draggable-list/draggable-list.d.ts +9 -2
- package/dist/components/draggable-list/draggable-list.js +1 -109
- package/dist/components/empty-state/empty-state.d.ts +19 -0
- package/dist/components/empty-state/empty-state.js +1 -0
- package/dist/components/index.d.ts +10 -19
- package/dist/components/index.js +1 -60
- package/dist/components/input-field/date-controls.d.ts +28 -0
- package/dist/components/input-field/date-controls.js +1 -0
- package/dist/components/input-field/input-clear-button.d.ts +8 -0
- package/dist/components/input-field/input-clear-button.js +1 -0
- package/dist/components/input-field/input-field.d.ts +12 -23
- package/dist/components/input-field/input-field.js +1 -2
- package/dist/components/input-field/input.d.ts +17 -0
- package/dist/components/input-field/input.js +1 -0
- package/dist/components/input-field/styles.d.ts +7 -0
- package/dist/components/input-field/styles.js +1 -0
- package/dist/components/intro-card/intro-card.d.ts +29 -0
- package/dist/components/intro-card/intro-card.js +1 -0
- package/dist/components/item-collection/item-collection.js +1 -52
- package/dist/components/layout/hstack.js +1 -25
- package/dist/components/layout/vstack.js +1 -25
- package/dist/components/link-input/link-input.d.ts +3 -3
- package/dist/components/link-input/link-input.js +1 -2
- package/dist/components/list/list.d.ts +7 -0
- package/dist/components/list/list.js +1 -0
- package/dist/components/list/reorderable-grid.d.ts +36 -0
- package/dist/components/list/reorderable-grid.js +1 -0
- package/dist/components/list/use-reorderable-rows.d.ts +4 -0
- package/dist/components/list/use-reorderable-rows.js +1 -0
- package/dist/components/matrix-align/matrix-align.js +1 -123
- package/dist/components/menu/menu.js +1 -239
- package/dist/components/modal/modal.js +1 -2
- package/dist/components/notice/notice.d.ts +0 -2
- package/dist/components/notice/notice.js +1 -92
- package/dist/components/number-picker/number-picker.d.ts +2 -4
- package/dist/components/number-picker/number-picker.js +1 -2
- package/dist/components/option-checkmark.d.ts +3 -0
- package/dist/components/option-checkmark.js +1 -0
- package/dist/components/option-picker/buttons.d.ts +20 -0
- package/dist/components/option-picker/buttons.js +1 -0
- package/dist/components/option-picker/checkboxes.d.ts +17 -0
- package/dist/components/option-picker/checkboxes.js +1 -0
- package/dist/components/option-picker/menu.d.ts +41 -0
- package/dist/components/option-picker/menu.js +1 -0
- package/dist/components/option-picker/option-picker.d.ts +26 -0
- package/dist/components/option-picker/option-picker.js +1 -0
- package/dist/components/option-picker/point.d.ts +18 -0
- package/dist/components/option-picker/point.js +1 -0
- package/dist/components/option-picker/radios.d.ts +16 -0
- package/dist/components/option-picker/radios.js +1 -0
- package/dist/components/option-picker/shared.d.ts +30 -0
- package/dist/components/option-picker/shared.js +1 -0
- package/dist/components/page-header/page-header.d.ts +32 -0
- package/dist/components/page-header/page-header.js +1 -0
- package/dist/components/panel/panel.d.ts +2 -0
- package/dist/components/panel/panel.js +1 -0
- package/dist/components/placeholders/file-picker-shell.d.ts +24 -55
- package/dist/components/placeholders/file-picker-shell.js +1 -87
- package/dist/components/placeholders/file-placeholder.d.ts +4 -2
- package/dist/components/placeholders/file-placeholder.js +1 -42
- package/dist/components/placeholders/image-placeholder.d.ts +0 -9
- package/dist/components/placeholders/image-placeholder.js +1 -53
- package/dist/components/popover/popover.d.ts +12 -7
- package/dist/components/popover/popover.js +1 -125
- package/dist/components/popover/resizing-popover.d.ts +14 -0
- package/dist/components/popover/resizing-popover.js +1 -0
- package/dist/components/popover/styles.d.ts +1 -0
- package/dist/components/popover/styles.js +1 -0
- package/dist/components/popover/suggestion-empty-state.d.ts +1 -0
- package/dist/components/popover/suggestion-empty-state.js +1 -0
- package/dist/components/portal-provider/portal-provider.js +1 -26
- package/dist/components/prompt-popover/prompt-popover.d.ts +4 -4
- package/dist/components/prompt-popover/prompt-popover.js +1 -83
- package/dist/components/radio/radio.d.ts +3 -14
- package/dist/components/radio/radio.js +1 -254
- package/dist/components/repeater/repeater-context.d.ts +4 -5
- package/dist/components/repeater/repeater-context.js +1 -5
- package/dist/components/repeater/repeater-item.d.ts +2 -2
- package/dist/components/repeater/repeater-item.js +1 -92
- package/dist/components/repeater/repeater.d.ts +5 -2
- package/dist/components/repeater/repeater.js +1 -198
- package/dist/components/responsive/mini-responsive.js +1 -409
- package/dist/components/responsive/responsive-legacy.d.ts +1 -1
- package/dist/components/responsive/responsive-legacy.js +1 -272
- package/dist/components/responsive/responsive.js +1 -449
- package/dist/components/responsive-preview/responsive-preview.js +1 -93
- package/dist/components/rich-label/rich-label.d.ts +2 -0
- package/dist/components/rich-label/rich-label.js +1 -70
- package/dist/components/select/async-multi-select.d.ts +8 -21
- package/dist/components/select/async-multi-select.js +1 -371
- package/dist/components/select/async-select-loader.d.ts +38 -0
- package/dist/components/select/async-select-loader.js +1 -0
- package/dist/components/select/async-select.d.ts +8 -21
- package/dist/components/select/async-select.js +1 -288
- package/dist/components/select/multi-select.d.ts +5 -3
- package/dist/components/select/multi-select.js +1 -341
- package/dist/components/select/selected-items-popover.d.ts +15 -0
- package/dist/components/select/selected-items-popover.js +1 -0
- package/dist/components/select/shared.d.ts +12 -3
- package/dist/components/select/shared.js +1 -2
- package/dist/components/select/single-select.d.ts +5 -3
- package/dist/components/select/single-select.js +1 -269
- package/dist/components/select/styles.d.ts +5 -3
- package/dist/components/select/styles.js +1 -108
- package/dist/components/selection-indicator.d.ts +8 -0
- package/dist/components/selection-indicator.js +1 -0
- package/dist/components/slider/column-config-slider.d.ts +0 -2
- package/dist/components/slider/column-config-slider.js +1 -175
- package/dist/components/slider/slider.d.ts +0 -2
- package/dist/components/slider/slider.js +1 -235
- package/dist/components/slider/styles.d.ts +2 -0
- package/dist/components/slider/styles.js +1 -0
- package/dist/components/slider/utils.js +1 -73
- package/dist/components/smart-image/smart-image.js +1 -288
- package/dist/components/spacer/spacer.js +1 -76
- package/dist/components/tabs/tabs.d.ts +33 -22
- package/dist/components/tabs/tabs.js +1 -2
- package/dist/components/toggle/switch.d.ts +2 -4
- package/dist/components/toggle/switch.js +1 -2
- package/dist/components/toggle/toggle.d.ts +0 -2
- package/dist/components/toggle/toggle.js +1 -47
- package/dist/components/toggle-button/toggle-button.d.ts +4 -17
- package/dist/components/toggle-button/toggle-button.js +1 -2
- package/dist/components/tooltip/tooltip.d.ts +4 -4
- package/dist/components/tooltip/tooltip.js +1 -2
- package/dist/date-controls-CX5bNUtF.js +1 -0
- package/dist/debounce-throttle-BlCrtRhZ.js +1 -0
- package/dist/disclosure-DYBM7fJk.js +1 -0
- package/dist/dist-BogNzeK9.js +1 -0
- package/dist/dist-C7IRUxSh.js +1 -0
- package/dist/draggable-9cdMY-oW.js +67 -0
- package/dist/es-dash-Fi4--j2S.js +1 -0
- package/dist/filterDOMProps-DKemR-4v.js +1 -0
- package/dist/gradient-editor-DB-RPeth.js +1 -0
- package/dist/icons/block-icon.js +1 -33
- package/dist/icons/generated-icon-loaders.js +1 -760
- package/dist/icons/generic-color-swatch.js +1 -83
- package/dist/icons/icon.js +1 -79
- package/dist/icons/icons.js +1 -219
- package/dist/icons/index.js +1 -759
- package/dist/icons/internal.js +1 -758
- package/dist/icons/jsx-svg.js +1 -2
- package/dist/icons/spinner.d.ts +1 -1
- package/dist/icons/spinner.js +1 -17
- package/dist/icons/ui-icons/a11y-warning.js +1 -34
- package/dist/icons/ui-icons/a11y.js +1 -29
- package/dist/icons/ui-icons/accelerometer.js +1 -51
- package/dist/icons/ui-icons/activity-log.js +1 -53
- package/dist/icons/ui-icons/add.js +1 -20
- package/dist/icons/ui-icons/alert.js +1 -31
- package/dist/icons/ui-icons/align-horizontal-vertical-alt.js +1 -37
- package/dist/icons/ui-icons/align-horizontal-vertical-alt2.js +1 -36
- package/dist/icons/ui-icons/align-horizontal-vertical.js +1 -34
- package/dist/icons/ui-icons/alt-text-generic-alt.js +1 -19
- package/dist/icons/ui-icons/alt-text-generic.js +1 -25
- package/dist/icons/ui-icons/alt-text.js +1 -36
- package/dist/icons/ui-icons/anchor-page.js +1 -44
- package/dist/icons/ui-icons/anchor.js +1 -28
- package/dist/icons/ui-icons/angle.js +1 -24
- package/dist/icons/ui-icons/animation-file.js +1 -66
- package/dist/icons/ui-icons/animation-generic.js +1 -36
- package/dist/icons/ui-icons/animation-list-generic.js +1 -41
- package/dist/icons/ui-icons/animation-settings-generic.js +1 -41
- package/dist/icons/ui-icons/animation.js +1 -55
- package/dist/icons/ui-icons/archive-file.js +1 -24
- package/dist/icons/ui-icons/archive.js +1 -39
- package/dist/icons/ui-icons/aria-label.js +1 -42
- package/dist/icons/ui-icons/arrow-down-circle-alt.js +1 -28
- package/dist/icons/ui-icons/arrow-down-circle.js +1 -28
- package/dist/icons/ui-icons/arrow-down-square-alt.js +1 -28
- package/dist/icons/ui-icons/arrow-down-square.js +1 -28
- package/dist/icons/ui-icons/arrow-down.js +1 -20
- package/dist/icons/ui-icons/arrow-left-circle-alt.js +1 -28
- package/dist/icons/ui-icons/arrow-left-circle.js +1 -28
- package/dist/icons/ui-icons/arrow-left-square-alt.js +1 -28
- package/dist/icons/ui-icons/arrow-left-square.js +1 -28
- package/dist/icons/ui-icons/arrow-left.js +1 -20
- package/dist/icons/ui-icons/arrow-right-circle-alt.js +1 -28
- package/dist/icons/ui-icons/arrow-right-circle.js +1 -28
- package/dist/icons/ui-icons/arrow-right-square-alt.js +1 -28
- package/dist/icons/ui-icons/arrow-right-square.js +1 -28
- package/dist/icons/ui-icons/arrow-right.js +1 -20
- package/dist/icons/ui-icons/arrow-up-circle-alt.js +1 -28
- package/dist/icons/ui-icons/arrow-up-circle.js +1 -28
- package/dist/icons/ui-icons/arrow-up-square-alt.js +1 -28
- package/dist/icons/ui-icons/arrow-up-square.js +1 -28
- package/dist/icons/ui-icons/arrow-up.js +1 -20
- package/dist/icons/ui-icons/arrows-down.js +1 -38
- package/dist/icons/ui-icons/arrows-horizontal.js +1 -20
- package/dist/icons/ui-icons/arrows-left-diagonal.js +1 -20
- package/dist/icons/ui-icons/arrows-left.js +1 -38
- package/dist/icons/ui-icons/arrows-right-diagonal.js +1 -20
- package/dist/icons/ui-icons/arrows-right.js +1 -38
- package/dist/icons/ui-icons/arrows-up.js +1 -38
- package/dist/icons/ui-icons/arrows-vertical.js +1 -20
- package/dist/icons/ui-icons/aspect-ratio-auto.js +1 -38
- package/dist/icons/ui-icons/aspect-ratio-nine-sixteen.js +1 -28
- package/dist/icons/ui-icons/aspect-ratio-sixteen-nine.js +1 -28
- package/dist/icons/ui-icons/aspect-ratio-square.js +1 -28
- package/dist/icons/ui-icons/aspect-ratio-three-two.js +1 -28
- package/dist/icons/ui-icons/aspect-ratio-twenty-one-nine.js +1 -28
- package/dist/icons/ui-icons/aspect-ratio.js +1 -27
- package/dist/icons/ui-icons/attachment.js +1 -19
- package/dist/icons/ui-icons/auto-close.js +1 -26
- package/dist/icons/ui-icons/auto-pause-scroll.js +1 -39
- package/dist/icons/ui-icons/auto-pause.js +1 -26
- package/dist/icons/ui-icons/automatic-alt.js +1 -19
- package/dist/icons/ui-icons/automatic.js +1 -20
- package/dist/icons/ui-icons/autoplay-alt.js +1 -34
- package/dist/icons/ui-icons/autoplay-alt2.js +1 -23
- package/dist/icons/ui-icons/autoplay.js +1 -36
- package/dist/icons/ui-icons/award.js +1 -39
- package/dist/icons/ui-icons/background-blur.js +1 -66
- package/dist/icons/ui-icons/background-color-swatch.js +1 -48
- package/dist/icons/ui-icons/background-image.js +1 -41
- package/dist/icons/ui-icons/background-repeat.js +1 -95
- package/dist/icons/ui-icons/background-type-alt.js +1 -38
- package/dist/icons/ui-icons/background-type-alt2.js +1 -27
- package/dist/icons/ui-icons/background-type.js +1 -27
- package/dist/icons/ui-icons/block-parts.js +1 -54
- package/dist/icons/ui-icons/bold.js +1 -21
- package/dist/icons/ui-icons/book.js +1 -40
- package/dist/icons/ui-icons/bookmark.js +1 -18
- package/dist/icons/ui-icons/boolean-exclude.js +1 -24
- package/dist/icons/ui-icons/boolean-intersect.js +1 -31
- package/dist/icons/ui-icons/boolean-subtract.js +1 -27
- package/dist/icons/ui-icons/boolean-union.js +1 -33
- package/dist/icons/ui-icons/border-color.js +1 -79
- package/dist/icons/ui-icons/border.js +1 -60
- package/dist/icons/ui-icons/bot-deny.js +1 -61
- package/dist/icons/ui-icons/bot.js +1 -47
- package/dist/icons/ui-icons/box.js +1 -35
- package/dist/icons/ui-icons/brain.js +1 -20
- package/dist/icons/ui-icons/branch-fork.js +1 -46
- package/dist/icons/ui-icons/branch.js +1 -46
- package/dist/icons/ui-icons/briefcase.js +1 -26
- package/dist/icons/ui-icons/browser.js +1 -60
- package/dist/icons/ui-icons/button-disabled.js +1 -30
- package/dist/icons/ui-icons/button-filled.js +1 -19
- package/dist/icons/ui-icons/button-ghost.js +1 -28
- package/dist/icons/ui-icons/button-outline.js +1 -27
- package/dist/icons/ui-icons/calculator.js +1 -139
- package/dist/icons/ui-icons/calendar-add.js +1 -51
- package/dist/icons/ui-icons/calendar-download.js +1 -62
- package/dist/icons/ui-icons/calendar-remove.js +1 -51
- package/dist/icons/ui-icons/calendar.js +1 -34
- package/dist/icons/ui-icons/caption-generic.js +1 -25
- package/dist/icons/ui-icons/card-featured.js +1 -28
- package/dist/icons/ui-icons/caret-down-fill.js +1 -19
- package/dist/icons/ui-icons/caret-down.js +1 -19
- package/dist/icons/ui-icons/caret-left-fill.js +1 -19
- package/dist/icons/ui-icons/caret-left.js +1 -19
- package/dist/icons/ui-icons/caret-right-fill.js +1 -19
- package/dist/icons/ui-icons/caret-right.js +1 -19
- package/dist/icons/ui-icons/caret-up-fill.js +1 -19
- package/dist/icons/ui-icons/caret-up.js +1 -19
- package/dist/icons/ui-icons/center-point.js +1 -25
- package/dist/icons/ui-icons/chat-bubble-alt.js +1 -25
- package/dist/icons/ui-icons/chat-bubble.js +1 -19
- package/dist/icons/ui-icons/chat.js +1 -25
- package/dist/icons/ui-icons/check-circle-fill-transparent.js +1 -24
- package/dist/icons/ui-icons/check-circle-fill.js +1 -17
- package/dist/icons/ui-icons/check-circle.js +1 -27
- package/dist/icons/ui-icons/check-square.js +1 -28
- package/dist/icons/ui-icons/check.js +1 -20
- package/dist/icons/ui-icons/checks-circle.js +1 -26
- package/dist/icons/ui-icons/checks.js +1 -26
- package/dist/icons/ui-icons/chevron-down.js +1 -20
- package/dist/icons/ui-icons/chevron-left.js +1 -20
- package/dist/icons/ui-icons/chevron-right.js +1 -20
- package/dist/icons/ui-icons/chevron-up.js +1 -20
- package/dist/icons/ui-icons/clear-alt.js +1 -25
- package/dist/icons/ui-icons/clear.js +1 -20
- package/dist/icons/ui-icons/clipboard-plain.js +1 -35
- package/dist/icons/ui-icons/clipboard.js +1 -43
- package/dist/icons/ui-icons/clock.js +1 -26
- package/dist/icons/ui-icons/closed-captions.js +1 -27
- package/dist/icons/ui-icons/code-variable.js +1 -20
- package/dist/icons/ui-icons/code.js +1 -20
- package/dist/icons/ui-icons/color-alt.js +1 -40
- package/dist/icons/ui-icons/color-fill-swatch.js +1 -61
- package/dist/icons/ui-icons/color-picker-fill.js +1 -42
- package/dist/icons/ui-icons/color-picker-list-marker.js +1 -41
- package/dist/icons/ui-icons/color-picker-text-highlight.js +1 -19
- package/dist/icons/ui-icons/color-picker-text.js +1 -20
- package/dist/icons/ui-icons/color-select.js +1 -33
- package/dist/icons/ui-icons/color.js +1 -22
- package/dist/icons/ui-icons/column-gutters-lr.js +1 -54
- package/dist/icons/ui-icons/columns.js +1 -42
- package/dist/icons/ui-icons/columns3366.js +1 -30
- package/dist/icons/ui-icons/columns6633.js +1 -30
- package/dist/icons/ui-icons/component-generic.js +1 -27
- package/dist/icons/ui-icons/component-options.js +1 -36
- package/dist/icons/ui-icons/condition-h.js +1 -20
- package/dist/icons/ui-icons/condition-v.js +1 -20
- package/dist/icons/ui-icons/conditional-visibility.js +1 -26
- package/dist/icons/ui-icons/container-height.js +1 -68
- package/dist/icons/ui-icons/container-spacing-h.js +1 -41
- package/dist/icons/ui-icons/container-spacing.js +1 -41
- package/dist/icons/ui-icons/container-width.js +1 -68
- package/dist/icons/ui-icons/content-bottom-left.js +1 -31
- package/dist/icons/ui-icons/content-bottom-right.js +1 -31
- package/dist/icons/ui-icons/content-center.js +1 -31
- package/dist/icons/ui-icons/content-top-left.js +1 -31
- package/dist/icons/ui-icons/content-top-right.js +1 -31
- package/dist/icons/ui-icons/contrast-alt.js +1 -27
- package/dist/icons/ui-icons/contrast.js +1 -26
- package/dist/icons/ui-icons/cookie-alt.js +1 -124
- package/dist/icons/ui-icons/cookie.js +1 -76
- package/dist/icons/ui-icons/copy.js +1 -26
- package/dist/icons/ui-icons/currency.js +1 -48
- package/dist/icons/ui-icons/current-page.js +1 -42
- package/dist/icons/ui-icons/cursor-disabled.js +1 -35
- package/dist/icons/ui-icons/cursor-move.js +1 -20
- package/dist/icons/ui-icons/dark-mode.js +1 -20
- package/dist/icons/ui-icons/data.js +1 -33
- package/dist/icons/ui-icons/date-time.js +1 -67
- package/dist/icons/ui-icons/defer.js +1 -26
- package/dist/icons/ui-icons/description-link.js +1 -40
- package/dist/icons/ui-icons/design.js +1 -48
- package/dist/icons/ui-icons/dice.js +1 -59
- package/dist/icons/ui-icons/divider-bottom.js +1 -23
- package/dist/icons/ui-icons/divider-side.js +1 -53
- package/dist/icons/ui-icons/divider-status.js +1 -53
- package/dist/icons/ui-icons/divider-top.js +1 -23
- package/dist/icons/ui-icons/divider.js +1 -23
- package/dist/icons/ui-icons/door-in.js +1 -32
- package/dist/icons/ui-icons/door-out.js +1 -32
- package/dist/icons/ui-icons/door.js +1 -27
- package/dist/icons/ui-icons/download.js +1 -20
- package/dist/icons/ui-icons/dropdown-caret-alt.js +1 -17
- package/dist/icons/ui-icons/dropdown-caret.js +1 -20
- package/dist/icons/ui-icons/dropdown-close.js +1 -52
- package/dist/icons/ui-icons/dropdown-open.js +1 -38
- package/dist/icons/ui-icons/dropdown.js +1 -38
- package/dist/icons/ui-icons/dummy-spacer.js +1 -17
- package/dist/icons/ui-icons/edit-options.js +1 -32
- package/dist/icons/ui-icons/edit.js +1 -22
- package/dist/icons/ui-icons/email-remove.js +1 -42
- package/dist/icons/ui-icons/email.js +1 -28
- package/dist/icons/ui-icons/embed.js +1 -28
- package/dist/icons/ui-icons/empty-circle.js +1 -23
- package/dist/icons/ui-icons/empty-rect.js +1 -25
- package/dist/icons/ui-icons/equal-columns.js +1 -25
- package/dist/icons/ui-icons/equal-rows.js +1 -25
- package/dist/icons/ui-icons/equals.js +1 -20
- package/dist/icons/ui-icons/error-circle-fill-transparent.js +1 -23
- package/dist/icons/ui-icons/error-circle-fill.js +1 -17
- package/dist/icons/ui-icons/error-circle.js +1 -24
- package/dist/icons/ui-icons/exclude-item-alt.js +1 -38
- package/dist/icons/ui-icons/exclude-item.js +1 -42
- package/dist/icons/ui-icons/exclude.js +1 -29
- package/dist/icons/ui-icons/expand-xl.js +1 -20
- package/dist/icons/ui-icons/expand.js +1 -20
- package/dist/icons/ui-icons/experiment.js +1 -33
- package/dist/icons/ui-icons/external-link.js +1 -25
- package/dist/icons/ui-icons/extract-alt.js +1 -25
- package/dist/icons/ui-icons/extract.js +1 -25
- package/dist/icons/ui-icons/eyedropper.js +1 -36
- package/dist/icons/ui-icons/fast-forward.js +1 -26
- package/dist/icons/ui-icons/fast-reverse.js +1 -26
- package/dist/icons/ui-icons/field-after-text.js +1 -54
- package/dist/icons/ui-icons/field-before-text.js +1 -46
- package/dist/icons/ui-icons/field-disabled.js +1 -35
- package/dist/icons/ui-icons/field-help.js +1 -46
- package/dist/icons/ui-icons/field-label.js +1 -38
- package/dist/icons/ui-icons/field-name.js +1 -45
- package/dist/icons/ui-icons/field-placeholder.js +1 -49
- package/dist/icons/ui-icons/field-readonly.js +1 -36
- package/dist/icons/ui-icons/field-required.js +1 -37
- package/dist/icons/ui-icons/field-type.js +1 -36
- package/dist/icons/ui-icons/field-value.js +1 -46
- package/dist/icons/ui-icons/field-width.js +1 -27
- package/dist/icons/ui-icons/file-download.js +1 -33
- package/dist/icons/ui-icons/file-error.js +1 -25
- package/dist/icons/ui-icons/file-metadata.js +1 -41
- package/dist/icons/ui-icons/file-pdf.js +1 -34
- package/dist/icons/ui-icons/file-size-max.js +1 -33
- package/dist/icons/ui-icons/file-size-min.js +1 -33
- package/dist/icons/ui-icons/file-size.js +1 -34
- package/dist/icons/ui-icons/file-type.js +1 -42
- package/dist/icons/ui-icons/file-upload.js +1 -33
- package/dist/icons/ui-icons/file.js +1 -24
- package/dist/icons/ui-icons/files.js +1 -34
- package/dist/icons/ui-icons/fill-color.js +1 -49
- package/dist/icons/ui-icons/filter-alt.js +1 -24
- package/dist/icons/ui-icons/filter.js +1 -20
- package/dist/icons/ui-icons/flag-alt.js +1 -24
- package/dist/icons/ui-icons/flag.js +1 -24
- package/dist/icons/ui-icons/flip-h.js +1 -27
- package/dist/icons/ui-icons/flip-v.js +1 -27
- package/dist/icons/ui-icons/focus.js +1 -21
- package/dist/icons/ui-icons/folder-add.js +1 -22
- package/dist/icons/ui-icons/folder-open-solid.js +1 -17
- package/dist/icons/ui-icons/folder-open.js +1 -19
- package/dist/icons/ui-icons/folder-solid.js +1 -17
- package/dist/icons/ui-icons/folder-top-level.js +1 -22
- package/dist/icons/ui-icons/folder.js +1 -19
- package/dist/icons/ui-icons/font-family.js +1 -24
- package/dist/icons/ui-icons/footer.js +1 -23
- package/dist/icons/ui-icons/form-alt.js +1 -71
- package/dist/icons/ui-icons/form.js +1 -53
- package/dist/icons/ui-icons/four-columns.js +1 -38
- package/dist/icons/ui-icons/frame.js +1 -33
- package/dist/icons/ui-icons/full-max-shield.js +1 -26
- package/dist/icons/ui-icons/full-max-text.js +1 -20
- package/dist/icons/ui-icons/full-width-image.js +1 -35
- package/dist/icons/ui-icons/gears-fill.js +1 -19
- package/dist/icons/ui-icons/gears.js +1 -38
- package/dist/icons/ui-icons/generic-color-swatch.js +1 -6
- package/dist/icons/ui-icons/generic-shapes-alt.js +1 -33
- package/dist/icons/ui-icons/generic-shapes.js +1 -38
- package/dist/icons/ui-icons/globe-anchor.js +1 -55
- package/dist/icons/ui-icons/globe-hash.js +1 -40
- package/dist/icons/ui-icons/globe.js +1 -37
- package/dist/icons/ui-icons/google-tag-manager.js +1 -36
- package/dist/icons/ui-icons/gradient-repeat.js +1 -41
- package/dist/icons/ui-icons/gradient-stop.js +1 -36
- package/dist/icons/ui-icons/gradient.js +1 -54
- package/dist/icons/ui-icons/grid-alt.js +1 -19
- package/dist/icons/ui-icons/grid-auto-cols.js +1 -46
- package/dist/icons/ui-icons/grid-auto-rows.js +1 -41
- package/dist/icons/ui-icons/grid-col.js +1 -22
- package/dist/icons/ui-icons/grid-height.js +1 -22
- package/dist/icons/ui-icons/grid-list-toggle.js +1 -48
- package/dist/icons/ui-icons/grid-manual.js +1 -18
- package/dist/icons/ui-icons/grid-row.js +1 -22
- package/dist/icons/ui-icons/grid-width.js +1 -22
- package/dist/icons/ui-icons/group.js +1 -33
- package/dist/icons/ui-icons/gutter.js +1 -28
- package/dist/icons/ui-icons/gyroscope.js +1 -53
- package/dist/icons/ui-icons/h1.js +1 -28
- package/dist/icons/ui-icons/h2.js +1 -28
- package/dist/icons/ui-icons/h3.js +1 -28
- package/dist/icons/ui-icons/h4.js +1 -28
- package/dist/icons/ui-icons/h5.js +1 -28
- package/dist/icons/ui-icons/h6.js +1 -28
- package/dist/icons/ui-icons/hamburger-menu.js +1 -19
- package/dist/icons/ui-icons/hard-drive.js +1 -35
- package/dist/icons/ui-icons/header.js +1 -23
- package/dist/icons/ui-icons/heading-level-alt.js +1 -28
- package/dist/icons/ui-icons/heading-level.js +1 -28
- package/dist/icons/ui-icons/heading.js +1 -20
- package/dist/icons/ui-icons/heart-fill-transparent.js +1 -19
- package/dist/icons/ui-icons/heart-fill.js +1 -18
- package/dist/icons/ui-icons/heart.js +1 -18
- package/dist/icons/ui-icons/height.js +1 -30
- package/dist/icons/ui-icons/help-alt.js +1 -25
- package/dist/icons/ui-icons/help-fill.js +1 -17
- package/dist/icons/ui-icons/help.js +1 -35
- package/dist/icons/ui-icons/hide.js +1 -29
- package/dist/icons/ui-icons/highlighted-checkmark.js +1 -24
- package/dist/icons/ui-icons/highlighted-exclamation-mark.js +1 -33
- package/dist/icons/ui-icons/history.js +1 -26
- package/dist/icons/ui-icons/horizontal-align-alt.js +1 -27
- package/dist/icons/ui-icons/horizontal-align-around.js +1 -37
- package/dist/icons/ui-icons/horizontal-align-between-alt.js +1 -37
- package/dist/icons/ui-icons/horizontal-align-between.js +1 -46
- package/dist/icons/ui-icons/horizontal-align-center.js +1 -41
- package/dist/icons/ui-icons/horizontal-align-evenly.js +1 -37
- package/dist/icons/ui-icons/horizontal-align-left.js +1 -44
- package/dist/icons/ui-icons/horizontal-align-right.js +1 -48
- package/dist/icons/ui-icons/horizontal-align-stretch.js +1 -37
- package/dist/icons/ui-icons/horizontal-align.js +1 -35
- package/dist/icons/ui-icons/hover-background-glow.js +1 -61
- package/dist/icons/ui-icons/hover-background-type.js +1 -34
- package/dist/icons/ui-icons/hover-invert-object.js +1 -42
- package/dist/icons/ui-icons/hover-invert-text.js +1 -32
- package/dist/icons/ui-icons/hover-rotate.js +1 -20
- package/dist/icons/ui-icons/hover-zoom.js +1 -25
- package/dist/icons/ui-icons/hyphenate-alt.js +1 -20
- package/dist/icons/ui-icons/hyphenate-alt2.js +1 -20
- package/dist/icons/ui-icons/hyphenate.js +1 -25
- package/dist/icons/ui-icons/icon-generic.js +1 -23
- package/dist/icons/ui-icons/id-card.js +1 -45
- package/dist/icons/ui-icons/id.js +1 -28
- package/dist/icons/ui-icons/image-blur.js +1 -50
- package/dist/icons/ui-icons/image-caption.js +1 -36
- package/dist/icons/ui-icons/image-error.js +1 -36
- package/dist/icons/ui-icons/image-file.js +1 -40
- package/dist/icons/ui-icons/image-lazy-load.js +1 -52
- package/dist/icons/ui-icons/image-opacity.js +1 -31
- package/dist/icons/ui-icons/image-overlay-alt.js +1 -93
- package/dist/icons/ui-icons/image-overlay-alt2.js +1 -93
- package/dist/icons/ui-icons/image-overlay.js +1 -92
- package/dist/icons/ui-icons/image-remove.js +1 -46
- package/dist/icons/ui-icons/image.js +1 -25
- package/dist/icons/ui-icons/index.js +1 -753
- package/dist/icons/ui-icons/info-circle-fill-transparent.js +1 -21
- package/dist/icons/ui-icons/info-circle-fill.js +1 -17
- package/dist/icons/ui-icons/info-circle.js +1 -24
- package/dist/icons/ui-icons/info.js +1 -17
- package/dist/icons/ui-icons/inherit.js +1 -41
- package/dist/icons/ui-icons/inline-gradient-format.js +1 -62
- package/dist/icons/ui-icons/input-field.js +1 -27
- package/dist/icons/ui-icons/italic.js +1 -20
- package/dist/icons/ui-icons/item-limit.js +1 -35
- package/dist/icons/ui-icons/item-select.js +1 -33
- package/dist/icons/ui-icons/item-wrap.js +1 -60
- package/dist/icons/ui-icons/items-per-page.js +1 -48
- package/dist/icons/ui-icons/items-per-row.js +1 -45
- package/dist/icons/ui-icons/key.js +1 -25
- package/dist/icons/ui-icons/keyboard.js +1 -19
- package/dist/icons/ui-icons/large.js +1 -24
- package/dist/icons/ui-icons/latest-posts.js +1 -44
- package/dist/icons/ui-icons/layer-off.js +1 -20
- package/dist/icons/ui-icons/layer.js +1 -19
- package/dist/icons/ui-icons/layers.js +1 -33
- package/dist/icons/ui-icons/layout-alt.js +1 -19
- package/dist/icons/ui-icons/layout-alt2.js +1 -23
- package/dist/icons/ui-icons/layout-alt3.js +1 -19
- package/dist/icons/ui-icons/layout-alt4.js +1 -19
- package/dist/icons/ui-icons/layout-bento-box.js +1 -19
- package/dist/icons/ui-icons/layout-masonry.js +1 -79
- package/dist/icons/ui-icons/layout.js +1 -43
- package/dist/icons/ui-icons/left-panel-alt.js +1 -25
- package/dist/icons/ui-icons/left-panel.js +1 -22
- package/dist/icons/ui-icons/light-bulb-alt.js +1 -30
- package/dist/icons/ui-icons/light-bulb.js +1 -33
- package/dist/icons/ui-icons/light-mode.js +1 -26
- package/dist/icons/ui-icons/limit-width.js +1 -26
- package/dist/icons/ui-icons/line-break-alt-off.js +1 -26
- package/dist/icons/ui-icons/line-break-alt.js +1 -25
- package/dist/icons/ui-icons/line-break-off-alt.js +1 -35
- package/dist/icons/ui-icons/line-break-off.js +1 -41
- package/dist/icons/ui-icons/line-break.js +1 -29
- package/dist/icons/ui-icons/line-breaks-hyphenation.js +1 -36
- package/dist/icons/ui-icons/link-add.js +1 -41
- package/dist/icons/ui-icons/link-nav.js +1 -59
- package/dist/icons/ui-icons/link-remove.js +1 -41
- package/dist/icons/ui-icons/link.js +1 -19
- package/dist/icons/ui-icons/list-indent.js +1 -26
- package/dist/icons/ui-icons/list-ordered.js +1 -43
- package/dist/icons/ui-icons/list-outdent.js +1 -26
- package/dist/icons/ui-icons/list-unordered.js +1 -43
- package/dist/icons/ui-icons/loader-alt.js +1 -19
- package/dist/icons/ui-icons/loader.js +1 -19
- package/dist/icons/ui-icons/location-add.js +1 -44
- package/dist/icons/ui-icons/location-allow.js +1 -44
- package/dist/icons/ui-icons/location-deny.js +1 -44
- package/dist/icons/ui-icons/location-settings.js +1 -36
- package/dist/icons/ui-icons/location.js +1 -26
- package/dist/icons/ui-icons/lock.js +1 -44
- package/dist/icons/ui-icons/loop-mode.js +1 -20
- package/dist/icons/ui-icons/magic-alt-fill-transparent.js +1 -20
- package/dist/icons/ui-icons/magic-alt-fill.js +1 -19
- package/dist/icons/ui-icons/magic-alt.js +1 -19
- package/dist/icons/ui-icons/magic-fill-transparent.js +1 -20
- package/dist/icons/ui-icons/magic-fill.js +1 -19
- package/dist/icons/ui-icons/magic.js +1 -19
- package/dist/icons/ui-icons/map-layer-json.js +1 -35
- package/dist/icons/ui-icons/map-layer-raster.js +1 -121
- package/dist/icons/ui-icons/map-layer-vector.js +1 -81
- package/dist/icons/ui-icons/map-layer.js +1 -26
- package/dist/icons/ui-icons/map-pin.js +1 -41
- package/dist/icons/ui-icons/matrix-align-control-dot-active.js +1 -23
- package/dist/icons/ui-icons/matrix-align-control-dot-inactive.js +1 -21
- package/dist/icons/ui-icons/media.js +1 -49
- package/dist/icons/ui-icons/medium.js +1 -24
- package/dist/icons/ui-icons/menu-item-check.js +1 -20
- package/dist/icons/ui-icons/menu-item-circle.js +1 -19
- package/dist/icons/ui-icons/microphone.js +1 -23
- package/dist/icons/ui-icons/migration-alt-v.js +1 -20
- package/dist/icons/ui-icons/migration-alt.js +1 -20
- package/dist/icons/ui-icons/migration.js +1 -26
- package/dist/icons/ui-icons/module.js +1 -24
- package/dist/icons/ui-icons/money-paper.js +1 -58
- package/dist/icons/ui-icons/more-h-circle.js +1 -40
- package/dist/icons/ui-icons/more-h.js +1 -33
- package/dist/icons/ui-icons/more-v-circle.js +1 -44
- package/dist/icons/ui-icons/more-v.js +1 -36
- package/dist/icons/ui-icons/mouse-cursor.js +1 -20
- package/dist/icons/ui-icons/mouse-wheel.js +1 -27
- package/dist/icons/ui-icons/multi-item-left-inset-mobile.js +1 -58
- package/dist/icons/ui-icons/multi-item-left-inset.js +1 -39
- package/dist/icons/ui-icons/multi-item-right-inset-mobile.js +1 -55
- package/dist/icons/ui-icons/multi-item-right-inset.js +1 -36
- package/dist/icons/ui-icons/multiple.js +1 -34
- package/dist/icons/ui-icons/music-note.js +1 -40
- package/dist/icons/ui-icons/mute-centered.js +1 -20
- package/dist/icons/ui-icons/mute.js +1 -20
- package/dist/icons/ui-icons/narrow-bottom.js +1 -49
- package/dist/icons/ui-icons/narrow-left.js +1 -49
- package/dist/icons/ui-icons/narrow-right.js +1 -49
- package/dist/icons/ui-icons/narrow-top.js +1 -49
- package/dist/icons/ui-icons/navigation-buttons.js +1 -39
- package/dist/icons/ui-icons/new-tab.js +1 -27
- package/dist/icons/ui-icons/newspaper.js +1 -45
- package/dist/icons/ui-icons/none.js +1 -25
- package/dist/icons/ui-icons/notebook.js +1 -44
- package/dist/icons/ui-icons/num0-circle-alt.js +1 -24
- package/dist/icons/ui-icons/num0-circle.js +1 -24
- package/dist/icons/ui-icons/num0-square-alt.js +1 -26
- package/dist/icons/ui-icons/num0-square.js +1 -26
- package/dist/icons/ui-icons/num1-circle-alt.js +1 -26
- package/dist/icons/ui-icons/num1-circle.js +1 -26
- package/dist/icons/ui-icons/num1-square-alt.js +1 -28
- package/dist/icons/ui-icons/num1-square.js +1 -28
- package/dist/icons/ui-icons/num2-circle-alt.js +1 -26
- package/dist/icons/ui-icons/num2-circle.js +1 -26
- package/dist/icons/ui-icons/num2-square-alt.js +1 -28
- package/dist/icons/ui-icons/num2-square.js +1 -28
- package/dist/icons/ui-icons/num3-circle-alt.js +1 -26
- package/dist/icons/ui-icons/num3-circle.js +1 -26
- package/dist/icons/ui-icons/num3-square-alt.js +1 -28
- package/dist/icons/ui-icons/num3-square.js +1 -28
- package/dist/icons/ui-icons/num4-circle-alt.js +1 -26
- package/dist/icons/ui-icons/num4-circle.js +1 -26
- package/dist/icons/ui-icons/num4-square-alt.js +1 -28
- package/dist/icons/ui-icons/num4-square.js +1 -28
- package/dist/icons/ui-icons/num5-circle-alt.js +1 -26
- package/dist/icons/ui-icons/num5-circle.js +1 -26
- package/dist/icons/ui-icons/num5-square-alt.js +1 -28
- package/dist/icons/ui-icons/num5-square.js +1 -28
- package/dist/icons/ui-icons/num6-circle-alt.js +1 -26
- package/dist/icons/ui-icons/num6-circle.js +1 -26
- package/dist/icons/ui-icons/num6-square-alt.js +1 -28
- package/dist/icons/ui-icons/num6-square.js +1 -28
- package/dist/icons/ui-icons/num7-circle-alt.js +1 -26
- package/dist/icons/ui-icons/num7-circle.js +1 -26
- package/dist/icons/ui-icons/num7-square-alt.js +1 -28
- package/dist/icons/ui-icons/num7-square.js +1 -28
- package/dist/icons/ui-icons/num8-circle-alt.js +1 -24
- package/dist/icons/ui-icons/num8-circle.js +1 -24
- package/dist/icons/ui-icons/num8-square-alt.js +1 -26
- package/dist/icons/ui-icons/num8-square.js +1 -26
- package/dist/icons/ui-icons/num9-circle-alt.js +1 -26
- package/dist/icons/ui-icons/num9-circle.js +1 -26
- package/dist/icons/ui-icons/num9-square-alt.js +1 -28
- package/dist/icons/ui-icons/num9-square.js +1 -28
- package/dist/icons/ui-icons/office-building.js +1 -203
- package/dist/icons/ui-icons/office-buildings.js +1 -256
- package/dist/icons/ui-icons/offset-auto.js +1 -46
- package/dist/icons/ui-icons/offset.js +1 -39
- package/dist/icons/ui-icons/option-list-alt.js +1 -61
- package/dist/icons/ui-icons/option-list.js +1 -63
- package/dist/icons/ui-icons/options.js +1 -24
- package/dist/icons/ui-icons/order.js +1 -49
- package/dist/icons/ui-icons/padding-bottom.js +1 -35
- package/dist/icons/ui-icons/padding-top.js +1 -35
- package/dist/icons/ui-icons/padding.js +1 -34
- package/dist/icons/ui-icons/pagination.js +1 -49
- package/dist/icons/ui-icons/palette-color.js +1 -111
- package/dist/icons/ui-icons/panel-collapse.js +1 -41
- package/dist/icons/ui-icons/panel-expand.js +1 -41
- package/dist/icons/ui-icons/paragraph.js +1 -24
- package/dist/icons/ui-icons/paste.js +1 -52
- package/dist/icons/ui-icons/pause.js +1 -20
- package/dist/icons/ui-icons/people-group.js +1 -57
- package/dist/icons/ui-icons/people.js +1 -43
- package/dist/icons/ui-icons/person.js +1 -26
- package/dist/icons/ui-icons/photo-camera.js +1 -26
- package/dist/icons/ui-icons/picture-in-picture.js +1 -33
- package/dist/icons/ui-icons/play-reverse.js +1 -20
- package/dist/icons/ui-icons/play.js +1 -20
- package/dist/icons/ui-icons/playback-options.js +1 -24
- package/dist/icons/ui-icons/plus-circle-fill-alt.js +1 -23
- package/dist/icons/ui-icons/plus-circle-fill.js +1 -17
- package/dist/icons/ui-icons/plus-circle.js +1 -26
- package/dist/icons/ui-icons/plus-minus-buttons-h.js +1 -25
- package/dist/icons/ui-icons/plus-minus-buttons-v.js +1 -25
- package/dist/icons/ui-icons/plus-square-fill-transparent.js +1 -27
- package/dist/icons/ui-icons/plus-square-fill.js +1 -17
- package/dist/icons/ui-icons/plus-square.js +1 -27
- package/dist/icons/ui-icons/pointer-hand-disabled.js +1 -34
- package/dist/icons/ui-icons/pointer-hand.js +1 -20
- package/dist/icons/ui-icons/position-arrows-h.js +1 -26
- package/dist/icons/ui-icons/position-arrows-inverted-h.js +1 -26
- package/dist/icons/ui-icons/position-arrows-inverted-v.js +1 -26
- package/dist/icons/ui-icons/position-arrows-inverted.js +1 -26
- package/dist/icons/ui-icons/position-arrows-v.js +1 -26
- package/dist/icons/ui-icons/position-arrows.js +1 -26
- package/dist/icons/ui-icons/position-h-center.js +1 -43
- package/dist/icons/ui-icons/position-h-end.js +1 -43
- package/dist/icons/ui-icons/position-h-start.js +1 -43
- package/dist/icons/ui-icons/position-left.js +1 -31
- package/dist/icons/ui-icons/position-right.js +1 -31
- package/dist/icons/ui-icons/position-v-center.js +1 -43
- package/dist/icons/ui-icons/position-v-end.js +1 -43
- package/dist/icons/ui-icons/position-v-start.js +1 -43
- package/dist/icons/ui-icons/position2x2-bottom-left.js +1 -52
- package/dist/icons/ui-icons/position2x2-bottom-right.js +1 -52
- package/dist/icons/ui-icons/position2x2-empty.js +1 -51
- package/dist/icons/ui-icons/position2x2-top-left.js +1 -52
- package/dist/icons/ui-icons/position2x2-top-right.js +1 -52
- package/dist/icons/ui-icons/position3x3-bottom-center.js +1 -97
- package/dist/icons/ui-icons/position3x3-bottom-left.js +1 -97
- package/dist/icons/ui-icons/position3x3-bottom-right.js +1 -97
- package/dist/icons/ui-icons/position3x3-center-center.js +1 -97
- package/dist/icons/ui-icons/position3x3-center-left.js +1 -97
- package/dist/icons/ui-icons/position3x3-center-right.js +1 -97
- package/dist/icons/ui-icons/position3x3-empty.js +1 -96
- package/dist/icons/ui-icons/position3x3-top-center.js +1 -97
- package/dist/icons/ui-icons/position3x3-top-left.js +1 -97
- package/dist/icons/ui-icons/position3x3-top-right.js +1 -97
- package/dist/icons/ui-icons/positioning-guide-alt.js +1 -30
- package/dist/icons/ui-icons/positioning-guide.js +1 -30
- package/dist/icons/ui-icons/positioning-width-guide.js +1 -40
- package/dist/icons/ui-icons/preload.js +1 -44
- package/dist/icons/ui-icons/preview-responsive.js +1 -48
- package/dist/icons/ui-icons/preview.js +1 -35
- package/dist/icons/ui-icons/progressbar-intermittent.js +1 -26
- package/dist/icons/ui-icons/progressbar.js +1 -30
- package/dist/icons/ui-icons/range-max.js +1 -48
- package/dist/icons/ui-icons/range-mid.js +1 -40
- package/dist/icons/ui-icons/range-min.js +1 -48
- package/dist/icons/ui-icons/range.js +1 -61
- package/dist/icons/ui-icons/read-only.js +1 -25
- package/dist/icons/ui-icons/reduce-height-bottom.js +1 -49
- package/dist/icons/ui-icons/reduce-height-top.js +1 -49
- package/dist/icons/ui-icons/regex.js +1 -39
- package/dist/icons/ui-icons/remove.js +1 -20
- package/dist/icons/ui-icons/rename.js +1 -24
- package/dist/icons/ui-icons/reorder-grabber-h.js +1 -51
- package/dist/icons/ui-icons/reorder-grabber-v.js +1 -57
- package/dist/icons/ui-icons/reorder.js +1 -35
- package/dist/icons/ui-icons/required-alt.js +1 -20
- package/dist/icons/ui-icons/required.js +1 -19
- package/dist/icons/ui-icons/reset-to-zero.js +1 -33
- package/dist/icons/ui-icons/reset.js +1 -25
- package/dist/icons/ui-icons/responsive-overrides-alt-fill.js +1 -26
- package/dist/icons/ui-icons/responsive-overrides-alt.js +1 -49
- package/dist/icons/ui-icons/responsive-overrides-alt2-fill.js +1 -34
- package/dist/icons/ui-icons/responsive-overrides-alt2.js +1 -45
- package/dist/icons/ui-icons/responsive-overrides-alt3-fill.js +1 -33
- package/dist/icons/ui-icons/responsive-overrides.js +1 -39
- package/dist/icons/ui-icons/responsive.js +1 -33
- package/dist/icons/ui-icons/right-panel-alt.js +1 -23
- package/dist/icons/ui-icons/right-panel.js +1 -22
- package/dist/icons/ui-icons/rotate-left.js +1 -20
- package/dist/icons/ui-icons/rotate-right.js +1 -20
- package/dist/icons/ui-icons/rounded-corners.js +1 -19
- package/dist/icons/ui-icons/route.js +1 -27
- package/dist/icons/ui-icons/row-add.js +1 -45
- package/dist/icons/ui-icons/row-empty.js +1 -51
- package/dist/icons/ui-icons/row.js +1 -45
- package/dist/icons/ui-icons/rows.js +1 -42
- package/dist/icons/ui-icons/ruler.js +1 -28
- package/dist/icons/ui-icons/save.js +1 -26
- package/dist/icons/ui-icons/screen-desktop.js +1 -32
- package/dist/icons/ui-icons/screen-large.js +1 -23
- package/dist/icons/ui-icons/screen-mobile.js +1 -39
- package/dist/icons/ui-icons/screen-tablet-large.js +1 -36
- package/dist/icons/ui-icons/screen-tablet.js +1 -36
- package/dist/icons/ui-icons/scrollbar-h.js +1 -40
- package/dist/icons/ui-icons/scrollbar-v.js +1 -41
- package/dist/icons/ui-icons/scrollbars.js +1 -55
- package/dist/icons/ui-icons/search-empty.js +1 -37
- package/dist/icons/ui-icons/search.js +1 -25
- package/dist/icons/ui-icons/separator-h.js +1 -41
- package/dist/icons/ui-icons/separator-v.js +1 -39
- package/dist/icons/ui-icons/shadow.js +1 -61
- package/dist/icons/ui-icons/share.js +1 -26
- package/dist/icons/ui-icons/shield-plus-alt.js +1 -27
- package/dist/icons/ui-icons/shield-plus.js +1 -20
- package/dist/icons/ui-icons/shield.js +1 -20
- package/dist/icons/ui-icons/shrink-diagonal-left-xl.js +1 -20
- package/dist/icons/ui-icons/shrink-diagonal-left.js +1 -20
- package/dist/icons/ui-icons/shrink-diagonal-right-xl.js +1 -20
- package/dist/icons/ui-icons/shrink-diagonal-right.js +1 -20
- package/dist/icons/ui-icons/shrink-xl.js +1 -20
- package/dist/icons/ui-icons/shrink.js +1 -20
- package/dist/icons/ui-icons/shuffle.js +1 -20
- package/dist/icons/ui-icons/sidebar-flip.js +1 -22
- package/dist/icons/ui-icons/sidebar.js +1 -22
- package/dist/icons/ui-icons/single-item-left-inset-mobile.js +1 -48
- package/dist/icons/ui-icons/single-item-left-inset.js +1 -23
- package/dist/icons/ui-icons/single-item-right-inset-mobile.js +1 -50
- package/dist/icons/ui-icons/single-item-right-inset.js +1 -23
- package/dist/icons/ui-icons/size-alt.js +1 -33
- package/dist/icons/ui-icons/size.js +1 -29
- package/dist/icons/ui-icons/slider.js +1 -31
- package/dist/icons/ui-icons/sliders.js +1 -68
- package/dist/icons/ui-icons/small.js +1 -24
- package/dist/icons/ui-icons/solid-circle-fill-transparent.js +1 -22
- package/dist/icons/ui-icons/solid-circle-filled.js +1 -21
- package/dist/icons/ui-icons/solid-circle-gradient.js +1 -31
- package/dist/icons/ui-icons/solid-circle.js +1 -21
- package/dist/icons/ui-icons/solid-color.js +1 -19
- package/dist/icons/ui-icons/solid-rect-fill-transparent.js +1 -24
- package/dist/icons/ui-icons/solid-rect-filled.js +1 -23
- package/dist/icons/ui-icons/solid-rect-gradient.js +1 -33
- package/dist/icons/ui-icons/solid-rect.js +1 -23
- package/dist/icons/ui-icons/sort-asc.js +1 -20
- package/dist/icons/ui-icons/sort-desc.js +1 -20
- package/dist/icons/ui-icons/sort-generic.js +1 -25
- package/dist/icons/ui-icons/spacing-bottom-in.js +1 -23
- package/dist/icons/ui-icons/spacing-bottom.js +1 -23
- package/dist/icons/ui-icons/spacing-left-in.js +1 -23
- package/dist/icons/ui-icons/spacing-left.js +1 -23
- package/dist/icons/ui-icons/spacing-right-in.js +1 -23
- package/dist/icons/ui-icons/spacing-right.js +1 -23
- package/dist/icons/ui-icons/spacing-top-in.js +1 -23
- package/dist/icons/ui-icons/spacing-top.js +1 -23
- package/dist/icons/ui-icons/speed.js +1 -25
- package/dist/icons/ui-icons/stagger.js +1 -53
- package/dist/icons/ui-icons/star.js +1 -18
- package/dist/icons/ui-icons/step.js +1 -27
- package/dist/icons/ui-icons/stop.js +1 -20
- package/dist/icons/ui-icons/swap.js +1 -41
- package/dist/icons/ui-icons/tag-alt.js +1 -24
- package/dist/icons/ui-icons/tag.js +1 -26
- package/dist/icons/ui-icons/text-abc.js +1 -40
- package/dist/icons/ui-icons/text-above.js +1 -25
- package/dist/icons/ui-icons/text-align-center.js +1 -20
- package/dist/icons/ui-icons/text-align-generic.js +1 -20
- package/dist/icons/ui-icons/text-align-justify.js +1 -20
- package/dist/icons/ui-icons/text-align-left.js +1 -20
- package/dist/icons/ui-icons/text-align-right.js +1 -20
- package/dist/icons/ui-icons/text-below.js +1 -25
- package/dist/icons/ui-icons/text-box-edit.js +1 -35
- package/dist/icons/ui-icons/text-color-swatch.js +1 -40
- package/dist/icons/ui-icons/text-highlight-color-swatch-alt.js +1 -49
- package/dist/icons/ui-icons/text-highlight-color-swatch.js +1 -48
- package/dist/icons/ui-icons/text-larger.js +1 -23
- package/dist/icons/ui-icons/text-length.js +1 -20
- package/dist/icons/ui-icons/text-size-alt.js +1 -23
- package/dist/icons/ui-icons/text-size.js +1 -20
- package/dist/icons/ui-icons/text-smaller.js +1 -23
- package/dist/icons/ui-icons/text-strikethrough.js +1 -26
- package/dist/icons/ui-icons/text-uppercase.js +1 -25
- package/dist/icons/ui-icons/text-write.js +1 -39
- package/dist/icons/ui-icons/thumbs-down.js +1 -22
- package/dist/icons/ui-icons/thumbs-up.js +1 -22
- package/dist/icons/ui-icons/title-generic.js +1 -25
- package/dist/icons/ui-icons/toggle-off.js +1 -33
- package/dist/icons/ui-icons/toggle-on-alt.js +1 -19
- package/dist/icons/ui-icons/toggle-on.js +1 -31
- package/dist/icons/ui-icons/tools.js +1 -25
- package/dist/icons/ui-icons/total-items.js +1 -45
- package/dist/icons/ui-icons/trash-alt.js +1 -44
- package/dist/icons/ui-icons/trash.js +1 -33
- package/dist/icons/ui-icons/tree-alt.js +1 -62
- package/dist/icons/ui-icons/tree-alt2.js +1 -79
- package/dist/icons/ui-icons/tree.js +1 -70
- package/dist/icons/ui-icons/troubleshoot-alt.js +1 -39
- package/dist/icons/ui-icons/two-cards-left.js +1 -32
- package/dist/icons/ui-icons/two-cards-right.js +1 -32
- package/dist/icons/ui-icons/two-columns.js +1 -30
- package/dist/icons/ui-icons/typography-options.js +1 -77
- package/dist/icons/ui-icons/typography.js +1 -71
- package/dist/icons/ui-icons/underline.js +1 -19
- package/dist/icons/ui-icons/ungroup.js +1 -39
- package/dist/icons/ui-icons/upload.js +1 -20
- package/dist/icons/ui-icons/venn-diagram-alt.js +1 -34
- package/dist/icons/ui-icons/venn-diagram-alt2.js +1 -34
- package/dist/icons/ui-icons/venn-diagram-alt3.js +1 -34
- package/dist/icons/ui-icons/venn-diagram-alt4.js +1 -34
- package/dist/icons/ui-icons/venn-diagram-alt5.js +1 -34
- package/dist/icons/ui-icons/venn-diagram-alt6.js +1 -34
- package/dist/icons/ui-icons/venn-diagram-alt7.js +1 -39
- package/dist/icons/ui-icons/venn-diagram.js +1 -26
- package/dist/icons/ui-icons/vertical-align-alt.js +1 -27
- package/dist/icons/ui-icons/vertical-align-around.js +1 -39
- package/dist/icons/ui-icons/vertical-align-between-alt.js +1 -39
- package/dist/icons/ui-icons/vertical-align-between.js +1 -48
- package/dist/icons/ui-icons/vertical-align-bottom.js +1 -44
- package/dist/icons/ui-icons/vertical-align-center.js +1 -39
- package/dist/icons/ui-icons/vertical-align-evenly.js +1 -39
- package/dist/icons/ui-icons/vertical-align-stretch.js +1 -39
- package/dist/icons/ui-icons/vertical-align-top.js +1 -46
- package/dist/icons/ui-icons/vertical-align.js +1 -35
- package/dist/icons/ui-icons/vertical-spacing.js +1 -28
- package/dist/icons/ui-icons/video-chapters.js +1 -25
- package/dist/icons/ui-icons/video-controls.js +1 -67
- package/dist/icons/ui-icons/video-file.js +1 -40
- package/dist/icons/ui-icons/video-poster-image.js +1 -40
- package/dist/icons/ui-icons/video-subtitle-alt.js +1 -39
- package/dist/icons/ui-icons/video-subtitle.js +1 -27
- package/dist/icons/ui-icons/video.js +1 -36
- package/dist/icons/ui-icons/visibility-alt.js +1 -40
- package/dist/icons/ui-icons/visibility-alt2.js +1 -41
- package/dist/icons/ui-icons/visibility.js +1 -45
- package/dist/icons/ui-icons/visible.js +1 -28
- package/dist/icons/ui-icons/volume.js +1 -25
- package/dist/icons/ui-icons/warning-circle-fill-transparent.js +1 -30
- package/dist/icons/ui-icons/warning-circle-fill.js +1 -17
- package/dist/icons/ui-icons/warning-circle.js +1 -33
- package/dist/icons/ui-icons/warning-fill-transparent.js +1 -30
- package/dist/icons/ui-icons/warning-fill.js +1 -17
- package/dist/icons/ui-icons/warning.js +1 -30
- package/dist/icons/ui-icons/web-video.js +1 -63
- package/dist/icons/ui-icons/wide-bottom.js +1 -49
- package/dist/icons/ui-icons/wide-left.js +1 -49
- package/dist/icons/ui-icons/wide-right.js +1 -49
- package/dist/icons/ui-icons/wide-top.js +1 -49
- package/dist/icons/ui-icons/width.js +1 -29
- package/dist/icons/ui-icons/wordpress.js +1 -17
- package/dist/icons/ui-icons/wrapper-alt.js +1 -71
- package/dist/icons/ui-icons/wrapper-config.js +1 -41
- package/dist/icons/ui-icons/wrapper-off-alt.js +1 -19
- package/dist/icons/ui-icons/wrapper-overflow.js +1 -31
- package/dist/icons/ui-icons/wrapper-simple-alt.js +1 -58
- package/dist/icons/ui-icons/wrapper-simple.js +1 -32
- package/dist/icons/ui-icons/wrapper.js +1 -42
- package/dist/icons/ui-icons/wrench.js +1 -19
- package/dist/icons/ui-icons/zap-fill.js +1 -20
- package/dist/icons/ui-icons/zap.js +1 -19
- package/dist/index.js +1 -62
- package/dist/input-field-fSivrDer.js +1 -0
- package/dist/jsx-svg-zli3d0qY.js +68 -0
- package/dist/keyboard-BzlG0aH2.js +1 -0
- package/dist/link-input-D9t6cjWZ.js +1 -0
- package/dist/modal-DBnLSJmx.js +1 -0
- package/dist/number-C1r4kgNV.js +1 -0
- package/dist/number-picker-BIXieDJ6.js +1 -0
- package/dist/react-BSpnyKxv.js +1 -0
- package/dist/reorderable-grid-BAYa6mTs.js +2 -0
- package/dist/shared-CVfujbDV.js +1 -0
- package/dist/solid-color-picker-BYZhRF7V.js +1 -0
- package/dist/sprintf-jxGppDDY.js +1 -0
- package/dist/switch-35fHzULo.js +1 -0
- package/dist/tabs-eEqiNYD8.js +1 -0
- package/dist/text-helpers-Bs5upvzH.js +1 -0
- package/dist/toggle-button-BroScPLM.js +1 -0
- package/dist/tooltip-Cpzgu8xY.js +1 -0
- package/dist/useAsyncList-cN2_5xNF.js +1 -0
- package/dist/useButton-CUbkFkS6.js +1 -0
- package/dist/useCollection-BqmrVZIy.js +1 -0
- package/dist/useControlledState-DuIQl7AI.js +1 -0
- package/dist/useEvent-BlCQMrO9.js +1 -0
- package/dist/useField-KKAxOCpq.js +1 -0
- package/dist/useFilter-c6g6MH-o.js +1 -0
- package/dist/useFocusRing-iqZqZ3LT.js +7 -0
- package/dist/useFormReset-BR6FFFlJ.js +1 -0
- package/dist/useFormValidation-Bh9mXXQp.js +1 -0
- package/dist/useHasTabbableChild-B5OQsxku.js +1 -0
- package/dist/useHover-B7zqOZ-m.js +1 -0
- package/dist/useLabels-BrjiKdsE.js +1 -0
- package/dist/useListState-CPL-VMhR.js +1 -0
- package/dist/useLocalizedStringFormatter-B693_Wcz.js +1 -0
- package/dist/useNumberFieldState-Cz03G3Lt.js +1 -0
- package/dist/useObjectRef-BjjTnUOY.js +1 -0
- package/dist/useOverlayTriggerState-DKUl8FBy.js +1 -0
- package/dist/useSlot-IUqvn2jp.js +1 -0
- package/dist/useSpinButton-B4eYBjz0.js +1 -0
- package/dist/useTextField-CFwJQKgI.js +1 -0
- package/dist/useToggle-CFFHpBO3.js +1 -0
- package/dist/useToggleState-CTvAIp3u.js +1 -0
- package/dist/useUpdateEffect-ydebgl8a.js +1 -0
- package/dist/utilities/array-helpers.js +1 -46
- package/dist/utilities/debounce-throttle.js +1 -2
- package/dist/utilities/es-dash.js +1 -2
- package/dist/utilities/general.js +1 -36
- package/dist/utilities/hash.js +1 -35
- package/dist/utilities/index.js +1 -9
- package/dist/utilities/text-helpers.js +1 -2
- package/dist/utilities/web-workers.js +1 -78
- package/dist/utilities-CQP2zvrh.js +1 -0
- package/dist/utils-a89BELgQ.js +1 -0
- package/package.json +22 -29
- package/dist/Autocomplete-DWofaS1k.js +0 -462
- package/dist/Button-DcI8gSfH.js +0 -229
- package/dist/Dialog-CSqjSLlO.js +0 -2764
- package/dist/Disclosure-CkaUMe7J.js +0 -191
- package/dist/FocusScope-DLpr7Rq0.js +0 -739
- package/dist/Form-BWMVEpwR.js +0 -5
- package/dist/Heading-BQje2nS2.js +0 -16
- package/dist/Hidden-C4Saxkx9.js +0 -51
- package/dist/I18nProvider-R_4IDnf9.js +0 -93
- package/dist/Label-C4bJkVti.js +0 -17
- package/dist/List-BKcyZ8tT.js +0 -506
- package/dist/ListBox-D8_U8eBS.js +0 -562
- package/dist/NumberFormatter-BbOYa3Kg.js +0 -91
- package/dist/PortalProvider-Dbcc7pHq.js +0 -13
- package/dist/RadioGroup-BZkgf6tl.js +0 -341
- package/dist/SearchField-N1nXzeWK.js +0 -325
- package/dist/SelectionIndicator-CyOcB5ps.js +0 -5
- package/dist/SharedElementTransition-D1LPCrSc.js +0 -10
- package/dist/Slider-Dryu0gH7.js +0 -811
- package/dist/Text-CA2_mHEB.js +0 -17
- package/dist/VisuallyHidden-2DfCzdKo.js +0 -43
- package/dist/animation-COu1iBGW.js +0 -65
- package/dist/assets/fonts/geist-latin-400-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-latin-500-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-latin-700-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-latin-ext-400-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-latin-ext-500-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-latin-ext-700-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-mono-latin-400-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-mono-latin-500-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-mono-latin-700-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-mono-latin-ext-400-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-mono-latin-ext-500-normal.woff2 +0 -0
- package/dist/assets/fonts/geist-mono-latin-ext-700-normal.woff2 +0 -0
- package/dist/assets/fonts/google-sans-flex-latin-ext-full-normal.woff2 +0 -0
- package/dist/assets/fonts/google-sans-flex-latin-full-normal.woff2 +0 -0
- package/dist/assets/fonts/google-sans-flex-symbols-full-normal.woff2 +0 -0
- package/dist/assets/style-admin-no-fonts.css +0 -2
- package/dist/assets/style-editor-no-fonts.css +0 -2
- package/dist/assets/style-no-fonts.css +0 -2
- package/dist/build-module-BISCoQjQ.js +0 -730
- package/dist/button-Bp6Gvutm.js +0 -583
- package/dist/checkbox-DfZDR444.js +0 -333
- package/dist/clsx-DQoRUQAf.js +0 -16
- package/dist/color-swatch-CEYPwPsn.js +0 -2579
- package/dist/components/base-control/container.js +0 -168
- package/dist/components/component-toggle/component-toggle.d.ts +0 -57
- package/dist/components/component-toggle/component-toggle.js +0 -100
- package/dist/components/container-panel/container-panel.d.ts +0 -50
- package/dist/components/container-panel/container-panel.js +0 -82
- package/dist/components/expandable/expandable.js +0 -88
- package/dist/components/option-select/option-select.d.ts +0 -96
- package/dist/components/option-select/option-select.js +0 -178
- package/dist/components/options-panel/options-panel.d.ts +0 -97
- package/dist/components/options-panel/options-panel.js +0 -114
- package/dist/components/placeholders/media-placeholder.d.ts +0 -34
- package/dist/components/placeholders/media-placeholder.js +0 -56
- package/dist/debounce-throttle-DklGQQrz.js +0 -120
- package/dist/dist-DpXluZqJ.js +0 -56
- package/dist/draggable-CE4MJU75.js +0 -7496
- package/dist/es-dash-DPtJSRjw.js +0 -298
- package/dist/filterDOMProps-BV6v3Ytq.js +0 -70
- package/dist/getMetaValue-Cpc6U0mQ.js +0 -18
- package/dist/gradient-editor-Cdr-8Rgz.js +0 -1650
- package/dist/input-field-msAE2llt.js +0 -278
- package/dist/jsx-svg-DRwJdRpA.js +0 -11153
- package/dist/keyboard-DwWaJveG.js +0 -205
- package/dist/link-input-wXPvMs_J.js +0 -1865
- package/dist/modal-hRIfHOS5.js +0 -349
- package/dist/number-BeC0ySe4.js +0 -41
- package/dist/number-picker-CBvcBF-r.js +0 -257
- package/dist/react-c-t8odpE.js +0 -10967
- package/dist/shared-s7XUBOVx.js +0 -1030
- package/dist/solid-color-picker-CDrcphjC.js +0 -1423
- package/dist/sprintf-xJRAt4p0.js +0 -129
- package/dist/switch-bqIILR_c.js +0 -297
- package/dist/tabs-oYIgL_0S.js +0 -1056
- package/dist/text-helpers-QrwKKaOh.js +0 -254
- package/dist/textSelection-BYhA9uWK.js +0 -45
- package/dist/toggle-button-BrQCdMsy.js +0 -463
- package/dist/tooltip-C80k6UfC.js +0 -421
- package/dist/useAsyncList-CjKVLGN0.js +0 -396
- package/dist/useButton-BO_4n6_e.js +0 -57
- package/dist/useCollection-BVUc8URe.js +0 -2243
- package/dist/useEvent-5yhOs2HC.js +0 -18
- package/dist/useField-B_ibsWst.js +0 -36
- package/dist/useFilter-Yp-QyW1S.js +0 -44
- package/dist/useFocusRing-DxPoGWMJ.js +0 -99
- package/dist/useFormReset-DFy_BhX1.js +0 -17
- package/dist/useFormValidation-CZPIMeNw.js +0 -207
- package/dist/useHover-DgudzTcf.js +0 -1158
- package/dist/useLabel-gfFDE4bn.js +0 -27
- package/dist/useLabels-Dcg-cEyM.js +0 -16
- package/dist/useListState-DTn91yqB.js +0 -130
- package/dist/useLocalizedStringFormatter-CTCqjYu4.js +0 -113
- package/dist/useNumberFieldState-D-Bsp98Z.js +0 -1393
- package/dist/useNumberFormatter-DNUGdm93.js +0 -10
- package/dist/useOverlayTriggerState-uzs8mam6.js +0 -557
- package/dist/usePress-BpGYwCwy.js +0 -609
- package/dist/useSlot-CnQHcvd4.js +0 -25
- package/dist/useTextField-C9dxy3po.js +0 -159
- package/dist/useToggle-CudcGIyz.js +0 -115
- package/dist/useToggleState-CYfSFy4b.js +0 -22
- package/dist/utilities-COki58KB.js +0 -7
- package/dist/utils-ClM91CuL.js +0 -382
|
@@ -1,2243 +0,0 @@
|
|
|
1
|
-
import { g as $a4e76a5424781910$export$e08e3b67e392101e, h as $c4867b2f328c2698$export$e5c5a5f917a5871c, m as $c7eafbbe1ea5834e$export$535bd6ca7f90a273, p as $390e54f620492c70$export$f680877a34711e37, u as $bbaa08b3cd72f041$export$9d1611c77c2fe928 } from "./utils-ClM91CuL.js";
|
|
2
|
-
import { a as $b72f3f7b3b5f42c6$export$2b35b76d2e30e129, c as $b72f3f7b3b5f42c6$export$76e4e37e5339496d, l as $8b2399d051d06d4c$export$447a38995de2c711, t as $bb39c0fc1c19b34c$export$16792effe837dba3, u as $8b2399d051d06d4c$export$831c820ad60f9d12 } from "./keyboard-DwWaJveG.js";
|
|
3
|
-
import { A as $2add3ce32c6007eb$export$e1865c3bedcd822b, B as $23f2114a1b82827e$export$b4f377a2b6254582, D as $2add3ce32c6007eb$export$78551043582a6a98, J as $d447af545b77c9f1$export$f21a1ffae260145a, L as $3b8b240c1bf84ab9$export$bebd5a1431fec25d, O as $2add3ce32c6007eb$export$9ac100e40613ea10, R as $1969ac565cfec8d0$export$de79e2c695e052f3, S as $caaf0dd3060ed57c$export$9a302a45f65d0572, U as $23f2114a1b82827e$export$e58f029f0fbfdb29, V as $23f2114a1b82827e$export$cd4e5573fbe2b576, a as $d1116acdf220c2da$export$f9762fab77588ecb, d as $3e6197669829fe11$export$40bfa8c7b0832715, j as $2add3ce32c6007eb$export$fedb369cb70207f1, l as $f192c2f16961cbe0$export$80f3e147d781571c, n as $48a7d519b337145d$export$4eaf04e54aa8eed6, p as $8f5a2122b0992be3$export$630ff653c5ada6a9, q as $d447af545b77c9f1$export$b204af158042fbac, s as $8296dad1a4c5e0dc$export$8f71654801c2f7cd, x as $caaf0dd3060ed57c$export$95185d699e05d4d7, z as $23f2114a1b82827e$export$4282f70798064fe0 } from "./useHover-DgudzTcf.js";
|
|
4
|
-
import { t as $600b3cf69ae46262$export$90fc3a17d93f704c } from "./useEvent-5yhOs2HC.js";
|
|
5
|
-
import { t as $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7 } from "./I18nProvider-R_4IDnf9.js";
|
|
6
|
-
import { n as $d7f64c32b702fe2c$export$8dc98ba7eadeaa56 } from "./Hidden-C4Saxkx9.js";
|
|
7
|
-
import { t as $d27d541f9569d26d$export$45712eceda6fad21 } from "./usePress-BpGYwCwy.js";
|
|
8
|
-
import { r as $535772f9d2c1f38d$export$2d6ec8fc375ceafa } from "./FocusScope-DLpr7Rq0.js";
|
|
9
|
-
import $3ARPR$react, { cloneElement, createContext, forwardRef, isValidElement, useCallback, useContext, useEffect, useMemo, useRef, useState, version } from "react";
|
|
10
|
-
import { createPortal, flushSync } from "react-dom";
|
|
11
|
-
import { useSyncExternalStore } from "use-sync-external-store/shim/index.js";
|
|
12
|
-
//#region node_modules/react-aria/dist/private/collections/BaseCollection.mjs
|
|
13
|
-
var $6f0c29017aeec335$export$d68d59712b04d9d1 = class {
|
|
14
|
-
constructor(key) {
|
|
15
|
-
this.value = null;
|
|
16
|
-
this.level = 0;
|
|
17
|
-
this.hasChildNodes = false;
|
|
18
|
-
this.rendered = null;
|
|
19
|
-
this.textValue = "";
|
|
20
|
-
this["aria-label"] = void 0;
|
|
21
|
-
this.index = 0;
|
|
22
|
-
this.parentKey = null;
|
|
23
|
-
this.prevKey = null;
|
|
24
|
-
this.nextKey = null;
|
|
25
|
-
this.firstChildKey = null;
|
|
26
|
-
this.lastChildKey = null;
|
|
27
|
-
this.props = {};
|
|
28
|
-
this.colSpan = null;
|
|
29
|
-
this.colIndex = null;
|
|
30
|
-
this.type = this.constructor.type;
|
|
31
|
-
this.key = key;
|
|
32
|
-
}
|
|
33
|
-
get childNodes() {
|
|
34
|
-
throw new Error("childNodes is not supported");
|
|
35
|
-
}
|
|
36
|
-
clone() {
|
|
37
|
-
let node = new this.constructor(this.key);
|
|
38
|
-
node.value = this.value;
|
|
39
|
-
node.level = this.level;
|
|
40
|
-
node.hasChildNodes = this.hasChildNodes;
|
|
41
|
-
node.rendered = this.rendered;
|
|
42
|
-
node.textValue = this.textValue;
|
|
43
|
-
node["aria-label"] = this["aria-label"];
|
|
44
|
-
node.index = this.index;
|
|
45
|
-
node.parentKey = this.parentKey;
|
|
46
|
-
node.prevKey = this.prevKey;
|
|
47
|
-
node.nextKey = this.nextKey;
|
|
48
|
-
node.firstChildKey = this.firstChildKey;
|
|
49
|
-
node.lastChildKey = this.lastChildKey;
|
|
50
|
-
node.props = this.props;
|
|
51
|
-
node.render = this.render;
|
|
52
|
-
node.colSpan = this.colSpan;
|
|
53
|
-
node.colIndex = this.colIndex;
|
|
54
|
-
return node;
|
|
55
|
-
}
|
|
56
|
-
filter(collection, newCollection, filterFn) {
|
|
57
|
-
let clone = this.clone();
|
|
58
|
-
newCollection.addDescendants(clone, collection);
|
|
59
|
-
return clone;
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
var $6f0c29017aeec335$export$b1918e978f1ee46f = class extends $6f0c29017aeec335$export$d68d59712b04d9d1 {
|
|
63
|
-
filter(collection, newCollection, filterFn) {
|
|
64
|
-
let [firstKey, lastKey] = $6f0c29017aeec335$var$filterChildren(collection, newCollection, this.firstChildKey, filterFn);
|
|
65
|
-
let newNode = this.clone();
|
|
66
|
-
newNode.firstChildKey = firstKey;
|
|
67
|
-
newNode.lastChildKey = lastKey;
|
|
68
|
-
return newNode;
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
var $6f0c29017aeec335$export$5ae2504e948afce5 = class extends $6f0c29017aeec335$export$d68d59712b04d9d1 {
|
|
72
|
-
static {
|
|
73
|
-
this.type = "header";
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
var $6f0c29017aeec335$export$8258a0665a675899 = class extends $6f0c29017aeec335$export$d68d59712b04d9d1 {
|
|
77
|
-
static {
|
|
78
|
-
this.type = "loader";
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
var $6f0c29017aeec335$export$fd11f34e1d07f134 = class extends $6f0c29017aeec335$export$b1918e978f1ee46f {
|
|
82
|
-
static {
|
|
83
|
-
this.type = "item";
|
|
84
|
-
}
|
|
85
|
-
filter(collection, newCollection, filterFn) {
|
|
86
|
-
if (filterFn(this.textValue, this)) {
|
|
87
|
-
let clone = this.clone();
|
|
88
|
-
newCollection.addDescendants(clone, collection);
|
|
89
|
-
return clone;
|
|
90
|
-
}
|
|
91
|
-
return null;
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
var $6f0c29017aeec335$export$437f11dc9b403b78 = class extends $6f0c29017aeec335$export$b1918e978f1ee46f {
|
|
95
|
-
static {
|
|
96
|
-
this.type = "section";
|
|
97
|
-
}
|
|
98
|
-
filter(collection, newCollection, filterFn) {
|
|
99
|
-
let filteredSection = super.filter(collection, newCollection, filterFn);
|
|
100
|
-
if (filteredSection) {
|
|
101
|
-
if (filteredSection.lastChildKey !== null) {
|
|
102
|
-
let lastChild = collection.getItem(filteredSection.lastChildKey);
|
|
103
|
-
if (lastChild && lastChild.type !== "header") return filteredSection;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
return null;
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
var $6f0c29017aeec335$export$408d25a4e12db025 = class {
|
|
110
|
-
get size() {
|
|
111
|
-
return this.itemCount;
|
|
112
|
-
}
|
|
113
|
-
getKeys() {
|
|
114
|
-
return this.keyMap.keys();
|
|
115
|
-
}
|
|
116
|
-
*[Symbol.iterator]() {
|
|
117
|
-
let node = this.firstKey != null ? this.keyMap.get(this.firstKey) : void 0;
|
|
118
|
-
while (node) {
|
|
119
|
-
yield node;
|
|
120
|
-
node = node.nextKey != null ? this.keyMap.get(node.nextKey) : void 0;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
getChildren(key) {
|
|
124
|
-
let keyMap = this.keyMap;
|
|
125
|
-
return { *[Symbol.iterator]() {
|
|
126
|
-
let parent = keyMap.get(key);
|
|
127
|
-
let node = parent?.firstChildKey != null ? keyMap.get(parent.firstChildKey) : null;
|
|
128
|
-
while (node) {
|
|
129
|
-
yield node;
|
|
130
|
-
node = node.nextKey != null ? keyMap.get(node.nextKey) : void 0;
|
|
131
|
-
}
|
|
132
|
-
} };
|
|
133
|
-
}
|
|
134
|
-
getKeyBefore(key) {
|
|
135
|
-
let node = this.keyMap.get(key);
|
|
136
|
-
if (!node) return null;
|
|
137
|
-
if (node.prevKey != null) {
|
|
138
|
-
node = this.keyMap.get(node.prevKey);
|
|
139
|
-
while (node && node.type !== "item" && node.lastChildKey != null) node = this.keyMap.get(node.lastChildKey);
|
|
140
|
-
return node?.key ?? null;
|
|
141
|
-
}
|
|
142
|
-
return node.parentKey;
|
|
143
|
-
}
|
|
144
|
-
getKeyAfter(key) {
|
|
145
|
-
let node = this.keyMap.get(key);
|
|
146
|
-
if (!node) return null;
|
|
147
|
-
if (node.type !== "item" && node.firstChildKey != null) return node.firstChildKey;
|
|
148
|
-
while (node) {
|
|
149
|
-
if (node.nextKey != null) return node.nextKey;
|
|
150
|
-
if (node.parentKey != null) node = this.keyMap.get(node.parentKey);
|
|
151
|
-
else return null;
|
|
152
|
-
}
|
|
153
|
-
return null;
|
|
154
|
-
}
|
|
155
|
-
getFirstKey() {
|
|
156
|
-
return this.firstKey;
|
|
157
|
-
}
|
|
158
|
-
getLastKey() {
|
|
159
|
-
let node = this.lastKey != null ? this.keyMap.get(this.lastKey) : null;
|
|
160
|
-
while (node?.lastChildKey != null) node = this.keyMap.get(node.lastChildKey);
|
|
161
|
-
return node?.key ?? null;
|
|
162
|
-
}
|
|
163
|
-
getItem(key) {
|
|
164
|
-
return this.keyMap.get(key) ?? null;
|
|
165
|
-
}
|
|
166
|
-
at() {
|
|
167
|
-
throw new Error("Not implemented");
|
|
168
|
-
}
|
|
169
|
-
clone() {
|
|
170
|
-
let Constructor = this.constructor;
|
|
171
|
-
let collection = new Constructor();
|
|
172
|
-
collection.keyMap = new Map(this.keyMap);
|
|
173
|
-
collection.firstKey = this.firstKey;
|
|
174
|
-
collection.lastKey = this.lastKey;
|
|
175
|
-
collection.itemCount = this.itemCount;
|
|
176
|
-
return collection;
|
|
177
|
-
}
|
|
178
|
-
addNode(node) {
|
|
179
|
-
if (this.frozen) throw new Error("Cannot add a node to a frozen collection");
|
|
180
|
-
if (node.type === "item" && this.keyMap.get(node.key) == null) this.itemCount++;
|
|
181
|
-
this.keyMap.set(node.key, node);
|
|
182
|
-
}
|
|
183
|
-
addDescendants(node, oldCollection) {
|
|
184
|
-
this.addNode(node);
|
|
185
|
-
let children = oldCollection.getChildren(node.key);
|
|
186
|
-
for (let child of children) this.addDescendants(child, oldCollection);
|
|
187
|
-
}
|
|
188
|
-
removeNode(key) {
|
|
189
|
-
if (this.frozen) throw new Error("Cannot remove a node to a frozen collection");
|
|
190
|
-
let node = this.keyMap.get(key);
|
|
191
|
-
if (node != null && node.type === "item") this.itemCount--;
|
|
192
|
-
this.keyMap.delete(key);
|
|
193
|
-
}
|
|
194
|
-
commit(firstKey, lastKey, isSSR = false) {
|
|
195
|
-
if (this.frozen) throw new Error("Cannot commit a frozen collection");
|
|
196
|
-
this.firstKey = firstKey;
|
|
197
|
-
this.lastKey = lastKey;
|
|
198
|
-
this.frozen = !isSSR;
|
|
199
|
-
}
|
|
200
|
-
filter(filterFn) {
|
|
201
|
-
let newCollection = new this.constructor();
|
|
202
|
-
let [firstKey, lastKey] = $6f0c29017aeec335$var$filterChildren(this, newCollection, this.firstKey, filterFn);
|
|
203
|
-
newCollection?.commit(firstKey, lastKey);
|
|
204
|
-
return newCollection;
|
|
205
|
-
}
|
|
206
|
-
constructor() {
|
|
207
|
-
this.keyMap = new Map();
|
|
208
|
-
this.firstKey = null;
|
|
209
|
-
this.lastKey = null;
|
|
210
|
-
this.frozen = false;
|
|
211
|
-
this.itemCount = 0;
|
|
212
|
-
}
|
|
213
|
-
};
|
|
214
|
-
function $6f0c29017aeec335$var$filterChildren(collection, newCollection, firstChildKey, filterFn) {
|
|
215
|
-
if (firstChildKey == null) return [null, null];
|
|
216
|
-
let firstNode = null;
|
|
217
|
-
let lastNode = null;
|
|
218
|
-
let currentNode = collection.getItem(firstChildKey);
|
|
219
|
-
while (currentNode != null) {
|
|
220
|
-
let newNode = currentNode.filter(collection, newCollection, filterFn);
|
|
221
|
-
if (newNode != null) {
|
|
222
|
-
newNode.nextKey = null;
|
|
223
|
-
if (lastNode) {
|
|
224
|
-
newNode.prevKey = lastNode.key;
|
|
225
|
-
lastNode.nextKey = newNode.key;
|
|
226
|
-
}
|
|
227
|
-
if (firstNode == null) firstNode = newNode;
|
|
228
|
-
newCollection.addNode(newNode);
|
|
229
|
-
lastNode = newNode;
|
|
230
|
-
}
|
|
231
|
-
currentNode = currentNode.nextKey != null ? collection.getItem(currentNode.nextKey) : null;
|
|
232
|
-
}
|
|
233
|
-
if (lastNode && lastNode.type === "separator") {
|
|
234
|
-
let prevKey = lastNode.prevKey;
|
|
235
|
-
newCollection.removeNode(lastNode.key);
|
|
236
|
-
if (prevKey != null) {
|
|
237
|
-
lastNode = newCollection.getItem(prevKey);
|
|
238
|
-
lastNode.nextKey = null;
|
|
239
|
-
} else lastNode = null;
|
|
240
|
-
}
|
|
241
|
-
return [firstNode?.key ?? null, lastNode?.key ?? null];
|
|
242
|
-
}
|
|
243
|
-
//#endregion
|
|
244
|
-
//#region node_modules/react-aria/dist/private/collections/Document.mjs
|
|
245
|
-
var $96ead35620b8fd36$export$410b0c854570d131 = class {
|
|
246
|
-
constructor(ownerDocument) {
|
|
247
|
-
this._firstChild = null;
|
|
248
|
-
this._lastChild = null;
|
|
249
|
-
this._previousSibling = null;
|
|
250
|
-
this._nextSibling = null;
|
|
251
|
-
this._parentNode = null;
|
|
252
|
-
this._minInvalidChildIndex = null;
|
|
253
|
-
this.ownerDocument = ownerDocument;
|
|
254
|
-
}
|
|
255
|
-
*[Symbol.iterator]() {
|
|
256
|
-
let node = this.firstChild;
|
|
257
|
-
while (node) {
|
|
258
|
-
yield node;
|
|
259
|
-
node = node.nextSibling;
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
get firstChild() {
|
|
263
|
-
return this._firstChild;
|
|
264
|
-
}
|
|
265
|
-
set firstChild(firstChild) {
|
|
266
|
-
this._firstChild = firstChild;
|
|
267
|
-
this.ownerDocument.markDirty(this);
|
|
268
|
-
}
|
|
269
|
-
get lastChild() {
|
|
270
|
-
return this._lastChild;
|
|
271
|
-
}
|
|
272
|
-
set lastChild(lastChild) {
|
|
273
|
-
this._lastChild = lastChild;
|
|
274
|
-
this.ownerDocument.markDirty(this);
|
|
275
|
-
}
|
|
276
|
-
get previousSibling() {
|
|
277
|
-
return this._previousSibling;
|
|
278
|
-
}
|
|
279
|
-
set previousSibling(previousSibling) {
|
|
280
|
-
this._previousSibling = previousSibling;
|
|
281
|
-
this.ownerDocument.markDirty(this);
|
|
282
|
-
}
|
|
283
|
-
get nextSibling() {
|
|
284
|
-
return this._nextSibling;
|
|
285
|
-
}
|
|
286
|
-
set nextSibling(nextSibling) {
|
|
287
|
-
this._nextSibling = nextSibling;
|
|
288
|
-
this.ownerDocument.markDirty(this);
|
|
289
|
-
}
|
|
290
|
-
get parentNode() {
|
|
291
|
-
return this._parentNode;
|
|
292
|
-
}
|
|
293
|
-
set parentNode(parentNode) {
|
|
294
|
-
this._parentNode = parentNode;
|
|
295
|
-
this.ownerDocument.markDirty(this);
|
|
296
|
-
}
|
|
297
|
-
get isConnected() {
|
|
298
|
-
return this.parentNode?.isConnected || false;
|
|
299
|
-
}
|
|
300
|
-
invalidateChildIndices(child) {
|
|
301
|
-
if (this._minInvalidChildIndex == null || !this._minInvalidChildIndex.isConnected || child.index < this._minInvalidChildIndex.index) {
|
|
302
|
-
this._minInvalidChildIndex = child;
|
|
303
|
-
this.ownerDocument.markDirty(this);
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
updateChildIndices() {
|
|
307
|
-
let node = this._minInvalidChildIndex;
|
|
308
|
-
while (node) {
|
|
309
|
-
node.index = node.previousSibling ? node.previousSibling.index + 1 : 0;
|
|
310
|
-
node = node.nextSibling;
|
|
311
|
-
}
|
|
312
|
-
this._minInvalidChildIndex = null;
|
|
313
|
-
}
|
|
314
|
-
appendChild(child) {
|
|
315
|
-
if (child.parentNode) child.parentNode.removeChild(child);
|
|
316
|
-
if (this.firstChild == null) this.firstChild = child;
|
|
317
|
-
if (this.lastChild) {
|
|
318
|
-
this.lastChild.nextSibling = child;
|
|
319
|
-
child.index = this.lastChild.index + 1;
|
|
320
|
-
child.previousSibling = this.lastChild;
|
|
321
|
-
} else {
|
|
322
|
-
child.previousSibling = null;
|
|
323
|
-
child.index = 0;
|
|
324
|
-
}
|
|
325
|
-
child.parentNode = this;
|
|
326
|
-
child.nextSibling = null;
|
|
327
|
-
this.lastChild = child;
|
|
328
|
-
this.ownerDocument.markDirty(this);
|
|
329
|
-
if (this.isConnected) this.ownerDocument.queueUpdate();
|
|
330
|
-
}
|
|
331
|
-
insertBefore(newNode, referenceNode) {
|
|
332
|
-
if (referenceNode == null) return this.appendChild(newNode);
|
|
333
|
-
if (newNode.parentNode) newNode.parentNode.removeChild(newNode);
|
|
334
|
-
newNode.nextSibling = referenceNode;
|
|
335
|
-
newNode.previousSibling = referenceNode.previousSibling;
|
|
336
|
-
newNode.index = referenceNode.index - 1;
|
|
337
|
-
if (this.firstChild === referenceNode) this.firstChild = newNode;
|
|
338
|
-
else if (referenceNode.previousSibling) referenceNode.previousSibling.nextSibling = newNode;
|
|
339
|
-
referenceNode.previousSibling = newNode;
|
|
340
|
-
newNode.parentNode = referenceNode.parentNode;
|
|
341
|
-
this.invalidateChildIndices(newNode);
|
|
342
|
-
if (this.isConnected) this.ownerDocument.queueUpdate();
|
|
343
|
-
}
|
|
344
|
-
removeChild(child) {
|
|
345
|
-
if (child.parentNode !== this) return;
|
|
346
|
-
if (this._minInvalidChildIndex === child) this._minInvalidChildIndex = null;
|
|
347
|
-
if (child.nextSibling) {
|
|
348
|
-
this.invalidateChildIndices(child.nextSibling);
|
|
349
|
-
child.nextSibling.previousSibling = child.previousSibling;
|
|
350
|
-
}
|
|
351
|
-
if (child.previousSibling) child.previousSibling.nextSibling = child.nextSibling;
|
|
352
|
-
if (this.firstChild === child) this.firstChild = child.nextSibling;
|
|
353
|
-
if (this.lastChild === child) this.lastChild = child.previousSibling;
|
|
354
|
-
child.parentNode = null;
|
|
355
|
-
child.nextSibling = null;
|
|
356
|
-
child.previousSibling = null;
|
|
357
|
-
child.index = 0;
|
|
358
|
-
this.ownerDocument.markDirty(child);
|
|
359
|
-
if (this.isConnected) this.ownerDocument.queueUpdate();
|
|
360
|
-
}
|
|
361
|
-
addEventListener() {}
|
|
362
|
-
removeEventListener() {}
|
|
363
|
-
get previousVisibleSibling() {
|
|
364
|
-
let node = this.previousSibling;
|
|
365
|
-
while (node && node.isHidden) node = node.previousSibling;
|
|
366
|
-
return node;
|
|
367
|
-
}
|
|
368
|
-
get nextVisibleSibling() {
|
|
369
|
-
let node = this.nextSibling;
|
|
370
|
-
while (node && node.isHidden) node = node.nextSibling;
|
|
371
|
-
return node;
|
|
372
|
-
}
|
|
373
|
-
get firstVisibleChild() {
|
|
374
|
-
let node = this.firstChild;
|
|
375
|
-
while (node && node.isHidden) node = node.nextSibling;
|
|
376
|
-
return node;
|
|
377
|
-
}
|
|
378
|
-
get lastVisibleChild() {
|
|
379
|
-
let node = this.lastChild;
|
|
380
|
-
while (node && node.isHidden) node = node.previousSibling;
|
|
381
|
-
return node;
|
|
382
|
-
}
|
|
383
|
-
};
|
|
384
|
-
var $96ead35620b8fd36$export$dc064fe9e59310fd = class $96ead35620b8fd36$export$dc064fe9e59310fd extends $96ead35620b8fd36$export$410b0c854570d131 {
|
|
385
|
-
constructor(type, ownerDocument) {
|
|
386
|
-
super(ownerDocument), this.nodeType = 8, this.isMutated = true, this._index = 0, this.isHidden = false;
|
|
387
|
-
this.node = null;
|
|
388
|
-
}
|
|
389
|
-
get index() {
|
|
390
|
-
return this._index;
|
|
391
|
-
}
|
|
392
|
-
set index(index) {
|
|
393
|
-
this._index = index;
|
|
394
|
-
this.ownerDocument.markDirty(this);
|
|
395
|
-
}
|
|
396
|
-
get level() {
|
|
397
|
-
if (this.parentNode instanceof $96ead35620b8fd36$export$dc064fe9e59310fd) return this.parentNode.level + (this.parentNode.node?.type === "item" ? 1 : 0);
|
|
398
|
-
return 0;
|
|
399
|
-
}
|
|
400
|
-
/**
|
|
401
|
-
* Lazily gets a mutable instance of a Node. If the node has already
|
|
402
|
-
* been cloned during this update cycle, it just returns the existing one.
|
|
403
|
-
*/ getMutableNode() {
|
|
404
|
-
if (this.node == null) return null;
|
|
405
|
-
if (!this.isMutated) {
|
|
406
|
-
this.node = this.node.clone();
|
|
407
|
-
this.isMutated = true;
|
|
408
|
-
}
|
|
409
|
-
this.ownerDocument.markDirty(this);
|
|
410
|
-
return this.node;
|
|
411
|
-
}
|
|
412
|
-
updateNode() {
|
|
413
|
-
let nextSibling = this.nextVisibleSibling;
|
|
414
|
-
let node = this.getMutableNode();
|
|
415
|
-
if (node == null) return;
|
|
416
|
-
node.index = this.index;
|
|
417
|
-
node.level = this.level;
|
|
418
|
-
node.parentKey = this.parentNode instanceof $96ead35620b8fd36$export$dc064fe9e59310fd ? this.parentNode.node?.key ?? null : null;
|
|
419
|
-
node.prevKey = this.previousVisibleSibling?.node?.key ?? null;
|
|
420
|
-
node.nextKey = nextSibling?.node?.key ?? null;
|
|
421
|
-
node.hasChildNodes = !!this.firstChild;
|
|
422
|
-
node.firstChildKey = this.firstVisibleChild?.node?.key ?? null;
|
|
423
|
-
node.lastChildKey = this.lastVisibleChild?.node?.key ?? null;
|
|
424
|
-
if ((node.colSpan != null || node.colIndex != null) && nextSibling) {
|
|
425
|
-
let nextColIndex = (node.colIndex ?? node.index) + (node.colSpan ?? 1);
|
|
426
|
-
if (nextSibling.node != null && nextColIndex !== nextSibling.node.colIndex) {
|
|
427
|
-
let siblingNode = nextSibling.getMutableNode();
|
|
428
|
-
siblingNode.colIndex = nextColIndex;
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
setProps(obj, ref, CollectionNodeClass, rendered, render) {
|
|
433
|
-
let node;
|
|
434
|
-
let { value: value1, textValue, id, ...props } = obj;
|
|
435
|
-
if (this.node == null) {
|
|
436
|
-
node = new CollectionNodeClass(id ?? `react-aria-${++this.ownerDocument.nodeId}`);
|
|
437
|
-
this.node = node;
|
|
438
|
-
} else node = this.getMutableNode();
|
|
439
|
-
props.ref = ref;
|
|
440
|
-
node.props = props;
|
|
441
|
-
node.rendered = rendered;
|
|
442
|
-
node.render = render;
|
|
443
|
-
node.value = value1;
|
|
444
|
-
if (obj["aria-label"]) node["aria-label"] = obj["aria-label"];
|
|
445
|
-
node.textValue = textValue || (typeof props.children === "string" ? props.children : "") || obj["aria-label"] || "";
|
|
446
|
-
if (id != null && id !== node.key) throw new Error("Cannot change the id of an item");
|
|
447
|
-
if (props.colSpan != null) node.colSpan = props.colSpan;
|
|
448
|
-
if (this.isConnected) this.ownerDocument.queueUpdate();
|
|
449
|
-
}
|
|
450
|
-
get style() {
|
|
451
|
-
let element = this;
|
|
452
|
-
return {
|
|
453
|
-
get display() {
|
|
454
|
-
return element.isHidden ? "none" : "";
|
|
455
|
-
},
|
|
456
|
-
set display(value) {
|
|
457
|
-
let isHidden = value === "none";
|
|
458
|
-
if (element.isHidden !== isHidden) {
|
|
459
|
-
if (element.parentNode?.firstVisibleChild === element || element.parentNode?.lastVisibleChild === element) element.ownerDocument.markDirty(element.parentNode);
|
|
460
|
-
let prev = element.previousVisibleSibling;
|
|
461
|
-
let next = element.nextVisibleSibling;
|
|
462
|
-
if (prev) element.ownerDocument.markDirty(prev);
|
|
463
|
-
if (next) element.ownerDocument.markDirty(next);
|
|
464
|
-
element.isHidden = isHidden;
|
|
465
|
-
element.ownerDocument.markDirty(element);
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
};
|
|
469
|
-
}
|
|
470
|
-
hasAttribute() {}
|
|
471
|
-
setAttribute() {}
|
|
472
|
-
setAttributeNS() {}
|
|
473
|
-
removeAttribute() {}
|
|
474
|
-
};
|
|
475
|
-
var $96ead35620b8fd36$export$b34a105447964f9f = class extends $96ead35620b8fd36$export$410b0c854570d131 {
|
|
476
|
-
constructor(collection) {
|
|
477
|
-
super(null), this.nodeType = 11, this.ownerDocument = this, this.dirtyNodes = new Set(), this.isSSR = false, this.nodeId = 0, this.nodesByProps = new WeakMap(), this.keyOwners = new Map(), this.nextCollection = null, this.subscriptions = new Set(), this.queuedRender = false, this.inSubscription = false;
|
|
478
|
-
this.collection = collection;
|
|
479
|
-
this.nextCollection = collection;
|
|
480
|
-
}
|
|
481
|
-
get isConnected() {
|
|
482
|
-
return true;
|
|
483
|
-
}
|
|
484
|
-
createElement(type) {
|
|
485
|
-
return new $96ead35620b8fd36$export$dc064fe9e59310fd(type, this);
|
|
486
|
-
}
|
|
487
|
-
getMutableCollection() {
|
|
488
|
-
if (!this.nextCollection) this.nextCollection = this.collection.clone();
|
|
489
|
-
return this.nextCollection;
|
|
490
|
-
}
|
|
491
|
-
markDirty(node) {
|
|
492
|
-
this.dirtyNodes.add(node);
|
|
493
|
-
}
|
|
494
|
-
addNode(element) {
|
|
495
|
-
if (element.isHidden || element.node == null) return;
|
|
496
|
-
if (process.env.NODE_ENV !== "production") {
|
|
497
|
-
let key = element.node.key;
|
|
498
|
-
let owner = this.keyOwners.get(key);
|
|
499
|
-
if (owner && owner !== element) throw new Error(`Duplicate key "${String(key)}" found in collection. Every item in a collection must have a unique key.`);
|
|
500
|
-
this.keyOwners.set(key, element);
|
|
501
|
-
}
|
|
502
|
-
let collection = this.getMutableCollection();
|
|
503
|
-
if (!collection.getItem(element.node.key)) for (let child of element) this.addNode(child);
|
|
504
|
-
collection.addNode(element.node);
|
|
505
|
-
}
|
|
506
|
-
removeNode(node) {
|
|
507
|
-
for (let child of node) this.removeNode(child);
|
|
508
|
-
if (node.node) {
|
|
509
|
-
this.getMutableCollection().removeNode(node.node.key);
|
|
510
|
-
if (process.env.NODE_ENV !== "production" && this.keyOwners.get(node.node.key) === node) this.keyOwners.delete(node.node.key);
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
|
-
/** Finalizes the collection update, updating all nodes and freezing the collection. */ getCollection() {
|
|
514
|
-
if (this.inSubscription) return this.collection;
|
|
515
|
-
this.queuedRender = false;
|
|
516
|
-
this.updateCollection();
|
|
517
|
-
return this.collection;
|
|
518
|
-
}
|
|
519
|
-
updateCollection() {
|
|
520
|
-
for (let element of this.dirtyNodes) if (element instanceof $96ead35620b8fd36$export$dc064fe9e59310fd && (!element.isConnected || element.isHidden)) this.removeNode(element);
|
|
521
|
-
else element.updateChildIndices();
|
|
522
|
-
for (let element of this.dirtyNodes) if (element instanceof $96ead35620b8fd36$export$dc064fe9e59310fd) {
|
|
523
|
-
if (element.isConnected && !element.isHidden) {
|
|
524
|
-
element.updateNode();
|
|
525
|
-
this.addNode(element);
|
|
526
|
-
}
|
|
527
|
-
if (element.node) this.dirtyNodes.delete(element);
|
|
528
|
-
element.isMutated = false;
|
|
529
|
-
} else this.dirtyNodes.delete(element);
|
|
530
|
-
if (this.nextCollection) {
|
|
531
|
-
this.nextCollection.commit(this.firstVisibleChild?.node?.key ?? null, this.lastVisibleChild?.node?.key ?? null, this.isSSR);
|
|
532
|
-
if (!this.isSSR) {
|
|
533
|
-
this.collection = this.nextCollection;
|
|
534
|
-
this.nextCollection = null;
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
queueUpdate() {
|
|
539
|
-
if (this.dirtyNodes.size === 0 || this.queuedRender) return;
|
|
540
|
-
this.queuedRender = true;
|
|
541
|
-
this.inSubscription = true;
|
|
542
|
-
if (!this.isSSR) this.collection = this.collection.clone();
|
|
543
|
-
for (let fn of this.subscriptions) fn();
|
|
544
|
-
this.inSubscription = false;
|
|
545
|
-
}
|
|
546
|
-
subscribe(fn) {
|
|
547
|
-
this.subscriptions.add(fn);
|
|
548
|
-
if (this.queuedRender) fn();
|
|
549
|
-
return () => this.subscriptions.delete(fn);
|
|
550
|
-
}
|
|
551
|
-
resetAfterSSR() {
|
|
552
|
-
if (this.isSSR) {
|
|
553
|
-
this.isSSR = false;
|
|
554
|
-
this.firstChild = null;
|
|
555
|
-
this.lastChild = null;
|
|
556
|
-
this.nodeId = 0;
|
|
557
|
-
this.keyOwners.clear();
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
};
|
|
561
|
-
//#endregion
|
|
562
|
-
//#region node_modules/react-aria/dist/private/collections/useCachedChildren.mjs
|
|
563
|
-
function $a80bd3e9349588e7$export$727c8fc270210f13(props) {
|
|
564
|
-
let { children, items, idScope, addIdAndValue, dependencies = [] } = props;
|
|
565
|
-
let childrenString = useMemo(() => process.env.NODE_ENV !== "production" && typeof children === "function" ? children.toString() : void 0, [children]);
|
|
566
|
-
let cache = useMemo(() => new WeakMap(), [...dependencies, childrenString]);
|
|
567
|
-
return useMemo(() => {
|
|
568
|
-
if (items && typeof children === "function") {
|
|
569
|
-
let res = [];
|
|
570
|
-
for (let item of items) {
|
|
571
|
-
let cacheKey = $a80bd3e9349588e7$var$isWeakKey(item) ? item : null;
|
|
572
|
-
let rendered = cacheKey ? cache.get(cacheKey) : null;
|
|
573
|
-
if (!rendered) {
|
|
574
|
-
rendered = children(item);
|
|
575
|
-
let id = rendered.props.id ?? item?.key ?? item?.id;
|
|
576
|
-
if (idScope != null && rendered.props.id == null && id != null) id = idScope + ":" + id;
|
|
577
|
-
let key = id ?? res.length;
|
|
578
|
-
rendered = cloneElement(rendered, addIdAndValue ? {
|
|
579
|
-
key,
|
|
580
|
-
id,
|
|
581
|
-
value: item
|
|
582
|
-
} : { key });
|
|
583
|
-
if (cacheKey) cache.set(cacheKey, rendered);
|
|
584
|
-
}
|
|
585
|
-
res.push(rendered);
|
|
586
|
-
}
|
|
587
|
-
return res;
|
|
588
|
-
} else if (typeof children !== "function") return children;
|
|
589
|
-
}, [
|
|
590
|
-
children,
|
|
591
|
-
items,
|
|
592
|
-
cache,
|
|
593
|
-
idScope,
|
|
594
|
-
addIdAndValue
|
|
595
|
-
]);
|
|
596
|
-
}
|
|
597
|
-
function $a80bd3e9349588e7$var$isWeakKey(value) {
|
|
598
|
-
switch (typeof value) {
|
|
599
|
-
case "object": return value != null;
|
|
600
|
-
case "function":
|
|
601
|
-
case "symbol": return true;
|
|
602
|
-
default: return false;
|
|
603
|
-
}
|
|
604
|
-
}
|
|
605
|
-
//#endregion
|
|
606
|
-
//#region node_modules/react-aria/dist/private/collections/CollectionBuilder.mjs
|
|
607
|
-
var $42ceafc619f9c3ba$var$ShallowRenderContext = createContext(false);
|
|
608
|
-
var $42ceafc619f9c3ba$var$CollectionDocumentContext = createContext(null);
|
|
609
|
-
function $42ceafc619f9c3ba$export$bf788dd355e3a401(props) {
|
|
610
|
-
if (useContext($42ceafc619f9c3ba$var$CollectionDocumentContext)) return props.content;
|
|
611
|
-
let { collection, document } = $42ceafc619f9c3ba$var$useCollectionDocument(props.createCollection);
|
|
612
|
-
return $3ARPR$react.createElement($3ARPR$react.Fragment, null, $3ARPR$react.createElement($d7f64c32b702fe2c$export$8dc98ba7eadeaa56, null, $3ARPR$react.createElement($42ceafc619f9c3ba$var$CollectionDocumentContext.Provider, { value: document }, props.content)), $3ARPR$react.createElement($42ceafc619f9c3ba$var$CollectionInner, {
|
|
613
|
-
render: props.children,
|
|
614
|
-
collection
|
|
615
|
-
}));
|
|
616
|
-
}
|
|
617
|
-
function $42ceafc619f9c3ba$var$CollectionInner({ collection, render }) {
|
|
618
|
-
return render(collection);
|
|
619
|
-
}
|
|
620
|
-
function $42ceafc619f9c3ba$var$useSyncExternalStoreFallback(subscribe, getSnapshot, getServerSnapshot) {
|
|
621
|
-
let isSSR = $c7eafbbe1ea5834e$export$535bd6ca7f90a273();
|
|
622
|
-
let isSSRRef = useRef(isSSR);
|
|
623
|
-
isSSRRef.current = isSSR;
|
|
624
|
-
let getSnapshotWrapper = useCallback(() => {
|
|
625
|
-
return isSSRRef.current ? getServerSnapshot() : getSnapshot();
|
|
626
|
-
}, [getSnapshot, getServerSnapshot]);
|
|
627
|
-
return useSyncExternalStore(subscribe, getSnapshotWrapper);
|
|
628
|
-
}
|
|
629
|
-
var $42ceafc619f9c3ba$var$useSyncExternalStore = typeof $3ARPR$react["useSyncExternalStore"] === "function" ? $3ARPR$react["useSyncExternalStore"] : $42ceafc619f9c3ba$var$useSyncExternalStoreFallback;
|
|
630
|
-
function $42ceafc619f9c3ba$var$useCollectionDocument(createCollection) {
|
|
631
|
-
let [document] = useState(() => new $96ead35620b8fd36$export$b34a105447964f9f(createCollection?.() || new $6f0c29017aeec335$export$408d25a4e12db025()));
|
|
632
|
-
let subscribe = useCallback((fn) => document.subscribe(fn), [document]);
|
|
633
|
-
let getSnapshot = useCallback(() => {
|
|
634
|
-
let collection = document.getCollection();
|
|
635
|
-
if (document.isSSR) document.resetAfterSSR();
|
|
636
|
-
return collection;
|
|
637
|
-
}, [document]);
|
|
638
|
-
let getServerSnapshot = useCallback(() => {
|
|
639
|
-
document.isSSR = true;
|
|
640
|
-
return document.getCollection();
|
|
641
|
-
}, [document]);
|
|
642
|
-
return {
|
|
643
|
-
collection: $42ceafc619f9c3ba$var$useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot),
|
|
644
|
-
document
|
|
645
|
-
};
|
|
646
|
-
}
|
|
647
|
-
var $42ceafc619f9c3ba$var$SSRContext = createContext(null);
|
|
648
|
-
function $42ceafc619f9c3ba$var$createCollectionNodeClass(type) {
|
|
649
|
-
let NodeClass = class extends $6f0c29017aeec335$export$d68d59712b04d9d1 {
|
|
650
|
-
static {
|
|
651
|
-
this.type = type;
|
|
652
|
-
}
|
|
653
|
-
};
|
|
654
|
-
return NodeClass;
|
|
655
|
-
}
|
|
656
|
-
function $42ceafc619f9c3ba$var$useSSRCollectionNode(CollectionNodeClass, props, ref, rendered, children, render) {
|
|
657
|
-
if (typeof CollectionNodeClass === "string") CollectionNodeClass = $42ceafc619f9c3ba$var$createCollectionNodeClass(CollectionNodeClass);
|
|
658
|
-
let itemRef = useCallback((element) => {
|
|
659
|
-
element?.setProps(props, ref, CollectionNodeClass, rendered, render);
|
|
660
|
-
}, [
|
|
661
|
-
props,
|
|
662
|
-
ref,
|
|
663
|
-
rendered,
|
|
664
|
-
render,
|
|
665
|
-
CollectionNodeClass
|
|
666
|
-
]);
|
|
667
|
-
let parentNode = useContext($42ceafc619f9c3ba$var$SSRContext);
|
|
668
|
-
if (parentNode) {
|
|
669
|
-
let element = parentNode.ownerDocument.nodesByProps.get(props);
|
|
670
|
-
if (!element) {
|
|
671
|
-
element = parentNode.ownerDocument.createElement(CollectionNodeClass.type);
|
|
672
|
-
element.setProps(props, ref, CollectionNodeClass, rendered, render);
|
|
673
|
-
parentNode.appendChild(element);
|
|
674
|
-
parentNode.ownerDocument.updateCollection();
|
|
675
|
-
parentNode.ownerDocument.nodesByProps.set(props, element);
|
|
676
|
-
}
|
|
677
|
-
return children ? $3ARPR$react.createElement($42ceafc619f9c3ba$var$SSRContext.Provider, { value: element }, children) : null;
|
|
678
|
-
}
|
|
679
|
-
return $3ARPR$react.createElement(CollectionNodeClass.type, { ref: itemRef }, children);
|
|
680
|
-
}
|
|
681
|
-
function $42ceafc619f9c3ba$export$18af5c7a9e9b3664(CollectionNodeClass, render) {
|
|
682
|
-
let Component = ({ node }) => render(node.props, node.props.ref, node);
|
|
683
|
-
let Result = forwardRef((props, ref) => {
|
|
684
|
-
let focusableProps = useContext($d1116acdf220c2da$export$f9762fab77588ecb);
|
|
685
|
-
if (!useContext($42ceafc619f9c3ba$var$ShallowRenderContext)) {
|
|
686
|
-
if (render.length >= 3) throw new Error(render.name + " cannot be rendered outside a collection.");
|
|
687
|
-
return render(props, ref);
|
|
688
|
-
}
|
|
689
|
-
return $42ceafc619f9c3ba$var$useSSRCollectionNode(CollectionNodeClass, props, ref, "children" in props ? props.children : null, null, (node) => $3ARPR$react.createElement($d1116acdf220c2da$export$f9762fab77588ecb.Provider, { value: focusableProps }, $3ARPR$react.createElement(Component, { node })));
|
|
690
|
-
});
|
|
691
|
-
Result.displayName = render.name;
|
|
692
|
-
return Result;
|
|
693
|
-
}
|
|
694
|
-
function $42ceafc619f9c3ba$export$e953bb1cd0f19726(CollectionNodeClass, render, useChildren = $42ceafc619f9c3ba$var$useCollectionChildren) {
|
|
695
|
-
let Component = ({ node }) => render(node.props, node.props.ref, node);
|
|
696
|
-
let Result = forwardRef((props, ref) => {
|
|
697
|
-
return $42ceafc619f9c3ba$var$useSSRCollectionNode(CollectionNodeClass, props, ref, null, useChildren(props), (node) => $3ARPR$react.createElement(Component, { node })) ?? $3ARPR$react.createElement($3ARPR$react.Fragment, null);
|
|
698
|
-
});
|
|
699
|
-
Result.displayName = render.name;
|
|
700
|
-
return Result;
|
|
701
|
-
}
|
|
702
|
-
function $42ceafc619f9c3ba$var$useCollectionChildren(options) {
|
|
703
|
-
return $a80bd3e9349588e7$export$727c8fc270210f13({
|
|
704
|
-
...options,
|
|
705
|
-
addIdAndValue: true
|
|
706
|
-
});
|
|
707
|
-
}
|
|
708
|
-
var $42ceafc619f9c3ba$var$CollectionContext = createContext(null);
|
|
709
|
-
function $42ceafc619f9c3ba$export$fb8073518f34e6ec(props) {
|
|
710
|
-
let ctx = useContext($42ceafc619f9c3ba$var$CollectionContext);
|
|
711
|
-
let dependencies = (ctx?.dependencies || []).concat(props.dependencies);
|
|
712
|
-
let idScope = props.idScope ?? ctx?.idScope;
|
|
713
|
-
let children = $42ceafc619f9c3ba$var$useCollectionChildren({
|
|
714
|
-
...props,
|
|
715
|
-
idScope,
|
|
716
|
-
dependencies
|
|
717
|
-
});
|
|
718
|
-
if (useContext($42ceafc619f9c3ba$var$CollectionDocumentContext)) children = $3ARPR$react.createElement($42ceafc619f9c3ba$var$CollectionRoot, null, children);
|
|
719
|
-
ctx = useMemo(() => ({
|
|
720
|
-
dependencies,
|
|
721
|
-
idScope
|
|
722
|
-
}), [idScope, ...dependencies]);
|
|
723
|
-
return $3ARPR$react.createElement($42ceafc619f9c3ba$var$CollectionContext.Provider, { value: ctx }, children);
|
|
724
|
-
}
|
|
725
|
-
function $42ceafc619f9c3ba$var$CollectionRoot({ children }) {
|
|
726
|
-
let doc = useContext($42ceafc619f9c3ba$var$CollectionDocumentContext);
|
|
727
|
-
let wrappedChildren = useMemo(() => $3ARPR$react.createElement($42ceafc619f9c3ba$var$CollectionDocumentContext.Provider, { value: null }, $3ARPR$react.createElement($42ceafc619f9c3ba$var$ShallowRenderContext.Provider, { value: true }, children)), [children]);
|
|
728
|
-
return $c7eafbbe1ea5834e$export$535bd6ca7f90a273() ? $3ARPR$react.createElement($42ceafc619f9c3ba$var$SSRContext.Provider, { value: doc }, wrappedChildren) : createPortal(wrappedChildren, doc);
|
|
729
|
-
}
|
|
730
|
-
//#endregion
|
|
731
|
-
//#region node_modules/react-aria-components/dist/private/Collection.mjs
|
|
732
|
-
var $263ab7fc0f95ccdb$export$d40e14dec8b060a8 = createContext(null);
|
|
733
|
-
var $263ab7fc0f95ccdb$export$a164736487e3f0ae = {
|
|
734
|
-
CollectionRoot({ collection, renderDropIndicator }) {
|
|
735
|
-
return $263ab7fc0f95ccdb$var$useCollectionRender(collection, null, renderDropIndicator);
|
|
736
|
-
},
|
|
737
|
-
CollectionBranch({ collection, parent, renderDropIndicator }) {
|
|
738
|
-
return $263ab7fc0f95ccdb$var$useCollectionRender(collection, parent, renderDropIndicator);
|
|
739
|
-
}
|
|
740
|
-
};
|
|
741
|
-
function $263ab7fc0f95ccdb$var$useCollectionRender(collection, parent, renderDropIndicator) {
|
|
742
|
-
return $a80bd3e9349588e7$export$727c8fc270210f13({
|
|
743
|
-
items: parent ? collection.getChildren(parent.key) : collection,
|
|
744
|
-
dependencies: [renderDropIndicator],
|
|
745
|
-
children(node) {
|
|
746
|
-
if (node.type === "content") return $3ARPR$react.createElement($3ARPR$react.Fragment, null);
|
|
747
|
-
let rendered = node.render(node);
|
|
748
|
-
if (!renderDropIndicator || node.type !== "item") return rendered;
|
|
749
|
-
return $3ARPR$react.createElement($3ARPR$react.Fragment, null, renderDropIndicator({
|
|
750
|
-
type: "item",
|
|
751
|
-
key: node.key,
|
|
752
|
-
dropPosition: "before"
|
|
753
|
-
}), rendered, $263ab7fc0f95ccdb$export$2dbbd341daed716d(collection, node, renderDropIndicator));
|
|
754
|
-
}
|
|
755
|
-
});
|
|
756
|
-
}
|
|
757
|
-
function $263ab7fc0f95ccdb$export$2dbbd341daed716d(collection, node, renderDropIndicator) {
|
|
758
|
-
let key = node.key;
|
|
759
|
-
let keyAfter = collection.getKeyAfter(key);
|
|
760
|
-
let nextItemInFlattenedCollection = keyAfter != null ? collection.getItem(keyAfter) : null;
|
|
761
|
-
while (nextItemInFlattenedCollection != null && nextItemInFlattenedCollection.type !== "item") {
|
|
762
|
-
keyAfter = collection.getKeyAfter(nextItemInFlattenedCollection.key);
|
|
763
|
-
nextItemInFlattenedCollection = keyAfter != null ? collection.getItem(keyAfter) : null;
|
|
764
|
-
}
|
|
765
|
-
let nextItemInSameLevel = node.nextKey != null ? collection.getItem(node.nextKey) : null;
|
|
766
|
-
while (nextItemInSameLevel != null && nextItemInSameLevel.type !== "item") nextItemInSameLevel = nextItemInSameLevel.nextKey != null ? collection.getItem(nextItemInSameLevel.nextKey) : null;
|
|
767
|
-
let afterIndicators = [];
|
|
768
|
-
if (nextItemInSameLevel == null) {
|
|
769
|
-
let current = node;
|
|
770
|
-
while (current?.type === "item" && (!nextItemInFlattenedCollection || current.parentKey !== nextItemInFlattenedCollection.parentKey && nextItemInFlattenedCollection.level < current.level)) {
|
|
771
|
-
let indicator = renderDropIndicator({
|
|
772
|
-
type: "item",
|
|
773
|
-
key: current.key,
|
|
774
|
-
dropPosition: "after"
|
|
775
|
-
});
|
|
776
|
-
if (isValidElement(indicator)) afterIndicators.push(cloneElement(indicator, { key: `${current.key}-after` }));
|
|
777
|
-
current = current.parentKey != null ? collection.getItem(current.parentKey) : null;
|
|
778
|
-
}
|
|
779
|
-
}
|
|
780
|
-
return afterIndicators;
|
|
781
|
-
}
|
|
782
|
-
var $263ab7fc0f95ccdb$export$4feb769f8ddf26c5 = createContext($263ab7fc0f95ccdb$export$a164736487e3f0ae);
|
|
783
|
-
function $263ab7fc0f95ccdb$export$90e00781bc59d8f9(focusedKey) {
|
|
784
|
-
return useMemo(() => focusedKey != null ? new Set([focusedKey]) : null, [focusedKey]);
|
|
785
|
-
}
|
|
786
|
-
//#endregion
|
|
787
|
-
//#region node_modules/react-aria/dist/private/utils/isScrollable.mjs
|
|
788
|
-
function $901761b40e390936$export$2bb74740c4e19def(node, checkForOverflow) {
|
|
789
|
-
if (!node) return false;
|
|
790
|
-
let style = window.getComputedStyle(node);
|
|
791
|
-
let root = document.scrollingElement || document.documentElement;
|
|
792
|
-
let isScrollable = /(auto|scroll)/.test(style.overflow + style.overflowX + style.overflowY);
|
|
793
|
-
if (node === root && style.overflow !== "hidden") isScrollable = true;
|
|
794
|
-
if (isScrollable && checkForOverflow) isScrollable = node.scrollHeight !== node.clientHeight || node.scrollWidth !== node.clientWidth;
|
|
795
|
-
return isScrollable;
|
|
796
|
-
}
|
|
797
|
-
//#endregion
|
|
798
|
-
//#region node_modules/react-aria/dist/private/utils/getScrollParents.mjs
|
|
799
|
-
function $76d97191f0f90600$export$94ed1c92c7beeb22(node, checkForOverflow) {
|
|
800
|
-
let parentElements = [];
|
|
801
|
-
let root = document.scrollingElement || document.documentElement;
|
|
802
|
-
while (node) {
|
|
803
|
-
if ($901761b40e390936$export$2bb74740c4e19def(node, checkForOverflow)) parentElements.push(node);
|
|
804
|
-
if (node === root) break;
|
|
805
|
-
node = node.parentElement;
|
|
806
|
-
}
|
|
807
|
-
return parentElements;
|
|
808
|
-
}
|
|
809
|
-
//#endregion
|
|
810
|
-
//#region node_modules/react-aria/dist/private/utils/scrollIntoView.mjs
|
|
811
|
-
function $51a3e22a5186a962$export$53a0910f038337bd(scrollView, element, opts = {}) {
|
|
812
|
-
if (scrollView === element) return;
|
|
813
|
-
$51a3e22a5186a962$export$f064fd83a2c6e9ca(scrollView, element, element.getBoundingClientRect(), opts);
|
|
814
|
-
}
|
|
815
|
-
function $51a3e22a5186a962$export$f064fd83a2c6e9ca(scrollView, element, target, opts = {}) {
|
|
816
|
-
let { block = "nearest", inline = "nearest" } = opts;
|
|
817
|
-
let y = scrollView.scrollTop;
|
|
818
|
-
let x = scrollView.scrollLeft;
|
|
819
|
-
let view = scrollView.getBoundingClientRect();
|
|
820
|
-
let itemStyle = window.getComputedStyle(element);
|
|
821
|
-
let viewStyle = window.getComputedStyle(scrollView);
|
|
822
|
-
let root = document.scrollingElement || document.documentElement;
|
|
823
|
-
let isRoot = scrollView === root;
|
|
824
|
-
let viewTop = scrollView === root ? 0 : view.top;
|
|
825
|
-
let viewBottom = scrollView === root ? scrollView.clientHeight : view.bottom;
|
|
826
|
-
let viewLeft = scrollView === root ? 0 : view.left;
|
|
827
|
-
let viewRight = scrollView === root ? scrollView.clientWidth : view.right;
|
|
828
|
-
let scrollMarginTop = parseFloat(itemStyle.scrollMarginTop) || 0;
|
|
829
|
-
let scrollMarginBottom = parseFloat(itemStyle.scrollMarginBottom) || 0;
|
|
830
|
-
let scrollMarginLeft = parseFloat(itemStyle.scrollMarginLeft) || 0;
|
|
831
|
-
let scrollMarginRight = parseFloat(itemStyle.scrollMarginRight) || 0;
|
|
832
|
-
let scrollPaddingTop = parseFloat(viewStyle.scrollPaddingTop) || 0;
|
|
833
|
-
let scrollPaddingBottom = parseFloat(viewStyle.scrollPaddingBottom) || 0;
|
|
834
|
-
let scrollPaddingLeft = parseFloat(viewStyle.scrollPaddingLeft) || 0;
|
|
835
|
-
let scrollPaddingRight = parseFloat(viewStyle.scrollPaddingRight) || 0;
|
|
836
|
-
let borderTopWidth = parseFloat(viewStyle.borderTopWidth) || 0;
|
|
837
|
-
let borderBottomWidth = parseFloat(viewStyle.borderBottomWidth) || 0;
|
|
838
|
-
let borderLeftWidth = parseFloat(viewStyle.borderLeftWidth) || 0;
|
|
839
|
-
let borderRightWidth = parseFloat(viewStyle.borderRightWidth) || 0;
|
|
840
|
-
let scrollAreaTop = target.top - scrollMarginTop;
|
|
841
|
-
let scrollAreaBottom = target.bottom + scrollMarginBottom;
|
|
842
|
-
let scrollAreaLeft = target.left - scrollMarginLeft;
|
|
843
|
-
let scrollAreaRight = target.right + scrollMarginRight;
|
|
844
|
-
let scrollBarOffsetX = scrollView === root ? 0 : borderLeftWidth + borderRightWidth;
|
|
845
|
-
let scrollBarOffsetY = scrollView === root ? 0 : borderTopWidth + borderBottomWidth;
|
|
846
|
-
let scrollBarWidth = scrollView === root ? 0 : scrollView.offsetWidth - scrollView.clientWidth - scrollBarOffsetX;
|
|
847
|
-
let scrollBarHeight = scrollView === root ? 0 : scrollView.offsetHeight - scrollView.clientHeight - scrollBarOffsetY;
|
|
848
|
-
let scrollPortTop = viewTop + (isRoot ? 0 : borderTopWidth) + scrollPaddingTop;
|
|
849
|
-
let scrollPortBottom = viewBottom - (isRoot ? 0 : borderBottomWidth) - scrollPaddingBottom - scrollBarHeight;
|
|
850
|
-
let scrollPortLeft = viewLeft + (isRoot ? 0 : borderLeftWidth) + scrollPaddingLeft;
|
|
851
|
-
let scrollPortRight = viewRight - (isRoot ? 0 : borderRightWidth) - scrollPaddingRight;
|
|
852
|
-
if ($2add3ce32c6007eb$export$fedb369cb70207f1() && $2add3ce32c6007eb$export$78551043582a6a98() || viewStyle.direction === "ltr") scrollPortRight -= scrollBarWidth;
|
|
853
|
-
else if (viewStyle.direction === "rtl") scrollPortLeft += scrollBarWidth;
|
|
854
|
-
let shouldScrollBlock = scrollAreaTop < scrollPortTop || scrollAreaBottom > scrollPortBottom;
|
|
855
|
-
let shouldScrollInline = scrollAreaLeft < scrollPortLeft || scrollAreaRight > scrollPortRight;
|
|
856
|
-
if (shouldScrollBlock && block === "start") y += scrollAreaTop - scrollPortTop;
|
|
857
|
-
else if (shouldScrollBlock && block === "center") y += (scrollAreaTop + scrollAreaBottom) / 2 - (scrollPortTop + scrollPortBottom) / 2;
|
|
858
|
-
else if (shouldScrollBlock && block === "end") y += scrollAreaBottom - scrollPortBottom;
|
|
859
|
-
else if (shouldScrollBlock && block === "nearest") {
|
|
860
|
-
let start = scrollAreaTop - scrollPortTop;
|
|
861
|
-
let end = scrollAreaBottom - scrollPortBottom;
|
|
862
|
-
y += Math.abs(start) <= Math.abs(end) ? start : end;
|
|
863
|
-
}
|
|
864
|
-
if (shouldScrollInline && inline === "start") x += scrollAreaLeft - scrollPortLeft;
|
|
865
|
-
else if (shouldScrollInline && inline === "center") x += (scrollAreaLeft + scrollAreaRight) / 2 - (scrollPortLeft + scrollPortRight) / 2;
|
|
866
|
-
else if (shouldScrollInline && inline === "end") x += scrollAreaRight - scrollPortRight;
|
|
867
|
-
else if (shouldScrollInline && inline === "nearest") {
|
|
868
|
-
let start = scrollAreaLeft - scrollPortLeft;
|
|
869
|
-
let end = scrollAreaRight - scrollPortRight;
|
|
870
|
-
x += Math.abs(start) <= Math.abs(end) ? start : end;
|
|
871
|
-
}
|
|
872
|
-
if (process.env.NODE_ENV === "test") {
|
|
873
|
-
scrollView.scrollLeft = x;
|
|
874
|
-
scrollView.scrollTop = y;
|
|
875
|
-
return;
|
|
876
|
-
}
|
|
877
|
-
scrollView.scrollTo({
|
|
878
|
-
left: x,
|
|
879
|
-
top: y
|
|
880
|
-
});
|
|
881
|
-
}
|
|
882
|
-
function $51a3e22a5186a962$export$c826860796309d1b(targetElement, opts = {}) {
|
|
883
|
-
let { containingElement } = opts;
|
|
884
|
-
if (targetElement && targetElement.isConnected) {
|
|
885
|
-
let root = document.scrollingElement || document.documentElement;
|
|
886
|
-
if (!(window.getComputedStyle(root).overflow === "hidden")) {
|
|
887
|
-
let { left: originalLeft, top: originalTop } = targetElement.getBoundingClientRect();
|
|
888
|
-
targetElement?.scrollIntoView?.({ block: "nearest" });
|
|
889
|
-
let { left: newLeft, top: newTop } = targetElement.getBoundingClientRect();
|
|
890
|
-
if (Math.abs(originalLeft - newLeft) > 1 || Math.abs(originalTop - newTop) > 1) {
|
|
891
|
-
containingElement?.scrollIntoView?.({
|
|
892
|
-
block: "center",
|
|
893
|
-
inline: "center"
|
|
894
|
-
});
|
|
895
|
-
targetElement.scrollIntoView?.({ block: "nearest" });
|
|
896
|
-
}
|
|
897
|
-
} else {
|
|
898
|
-
let { left: originalLeft, top: originalTop } = targetElement.getBoundingClientRect();
|
|
899
|
-
let scrollParents = $76d97191f0f90600$export$94ed1c92c7beeb22(targetElement, true);
|
|
900
|
-
for (let scrollParent of scrollParents) $51a3e22a5186a962$export$53a0910f038337bd(scrollParent, targetElement);
|
|
901
|
-
let { left: newLeft, top: newTop } = targetElement.getBoundingClientRect();
|
|
902
|
-
if (Math.abs(originalLeft - newLeft) > 1 || Math.abs(originalTop - newTop) > 1) {
|
|
903
|
-
scrollParents = containingElement ? $76d97191f0f90600$export$94ed1c92c7beeb22(containingElement, true) : [];
|
|
904
|
-
for (let scrollParent of scrollParents) $51a3e22a5186a962$export$53a0910f038337bd(scrollParent, containingElement, {
|
|
905
|
-
block: "center",
|
|
906
|
-
inline: "center"
|
|
907
|
-
});
|
|
908
|
-
for (let scrollParent of $76d97191f0f90600$export$94ed1c92c7beeb22(targetElement, true)) $51a3e22a5186a962$export$53a0910f038337bd(scrollParent, targetElement);
|
|
909
|
-
}
|
|
910
|
-
}
|
|
911
|
-
}
|
|
912
|
-
}
|
|
913
|
-
//#endregion
|
|
914
|
-
//#region node_modules/react-aria/dist/private/utils/useDescription.mjs
|
|
915
|
-
var $121970af65029459$var$descriptionId = 0;
|
|
916
|
-
var $121970af65029459$var$descriptionNodes = new Map();
|
|
917
|
-
function $121970af65029459$export$f8aeda7b10753fa1(description) {
|
|
918
|
-
let [id, setId] = useState();
|
|
919
|
-
$c4867b2f328c2698$export$e5c5a5f917a5871c(() => {
|
|
920
|
-
if (!description) return;
|
|
921
|
-
let desc = $121970af65029459$var$descriptionNodes.get(description);
|
|
922
|
-
if (!desc) {
|
|
923
|
-
let id = `react-aria-description-${$121970af65029459$var$descriptionId++}`;
|
|
924
|
-
setId(id);
|
|
925
|
-
let node = document.createElement("div");
|
|
926
|
-
node.id = id;
|
|
927
|
-
node.style.display = "none";
|
|
928
|
-
node.textContent = description;
|
|
929
|
-
document.body.appendChild(node);
|
|
930
|
-
desc = {
|
|
931
|
-
refCount: 0,
|
|
932
|
-
element: node
|
|
933
|
-
};
|
|
934
|
-
$121970af65029459$var$descriptionNodes.set(description, desc);
|
|
935
|
-
} else setId(desc.element.id);
|
|
936
|
-
desc.refCount++;
|
|
937
|
-
return () => {
|
|
938
|
-
if (desc && --desc.refCount === 0) {
|
|
939
|
-
desc.element.remove();
|
|
940
|
-
$121970af65029459$var$descriptionNodes.delete(description);
|
|
941
|
-
}
|
|
942
|
-
};
|
|
943
|
-
}, [description]);
|
|
944
|
-
return { "aria-describedby": description ? id : void 0 };
|
|
945
|
-
}
|
|
946
|
-
//#endregion
|
|
947
|
-
//#region node_modules/react-aria/dist/private/selection/utils.mjs
|
|
948
|
-
function $22bbea12c2567021$export$d3e3bd3e26688c04(e) {
|
|
949
|
-
return $2add3ce32c6007eb$export$e1865c3bedcd822b() ? e.altKey : e.ctrlKey;
|
|
950
|
-
}
|
|
951
|
-
function $22bbea12c2567021$export$c3d8340acf92597f(collectionRef, key) {
|
|
952
|
-
let selector = `[data-key="${CSS.escape(String(key))}"]`;
|
|
953
|
-
let collection = collectionRef.current?.dataset.collection;
|
|
954
|
-
if (collection) selector = `[data-collection="${CSS.escape(collection)}"]${selector}`;
|
|
955
|
-
return collectionRef.current?.querySelector(selector);
|
|
956
|
-
}
|
|
957
|
-
var $22bbea12c2567021$var$collectionMap = new WeakMap();
|
|
958
|
-
function $22bbea12c2567021$export$881eb0d9f3605d9d(collection) {
|
|
959
|
-
let id = $390e54f620492c70$export$f680877a34711e37();
|
|
960
|
-
$22bbea12c2567021$var$collectionMap.set(collection, id);
|
|
961
|
-
return id;
|
|
962
|
-
}
|
|
963
|
-
function $22bbea12c2567021$export$6aeb1680a0ae8741(collection) {
|
|
964
|
-
return $22bbea12c2567021$var$collectionMap.get(collection);
|
|
965
|
-
}
|
|
966
|
-
//#endregion
|
|
967
|
-
//#region node_modules/react-aria/dist/private/selection/useTypeSelect.mjs
|
|
968
|
-
/**
|
|
969
|
-
* Controls how long to wait before clearing the typeahead buffer.
|
|
970
|
-
*/ var $f5a4a9a3486154da$var$TYPEAHEAD_DEBOUNCE_WAIT_MS = 1e3;
|
|
971
|
-
function $f5a4a9a3486154da$export$e32c88dfddc6e1d8(options) {
|
|
972
|
-
let { keyboardDelegate, selectionManager, onTypeSelect } = options;
|
|
973
|
-
let state = useRef({
|
|
974
|
-
search: "",
|
|
975
|
-
timeout: void 0
|
|
976
|
-
});
|
|
977
|
-
let onKeyDownCapture = (e) => {
|
|
978
|
-
if (state.current.search.length > 0 && e.key === " ") {
|
|
979
|
-
e.preventDefault();
|
|
980
|
-
if (!("continuePropagation" in e) || "continuePropagation" in e && !e.isPropagationStopped()) e.stopPropagation();
|
|
981
|
-
state.current.search += " ";
|
|
982
|
-
if (keyboardDelegate.getKeyForSearch != null) {
|
|
983
|
-
let key = keyboardDelegate.getKeyForSearch(state.current.search, selectionManager.focusedKey);
|
|
984
|
-
if (key == null) key = keyboardDelegate.getKeyForSearch(state.current.search);
|
|
985
|
-
if (key != null) {
|
|
986
|
-
selectionManager.setFocusedKey(key);
|
|
987
|
-
if (onTypeSelect) onTypeSelect(key);
|
|
988
|
-
}
|
|
989
|
-
}
|
|
990
|
-
clearTimeout(state.current.timeout);
|
|
991
|
-
state.current.timeout = setTimeout(() => {
|
|
992
|
-
state.current.search = "";
|
|
993
|
-
}, $f5a4a9a3486154da$var$TYPEAHEAD_DEBOUNCE_WAIT_MS);
|
|
994
|
-
}
|
|
995
|
-
};
|
|
996
|
-
let onKeyDown = (e) => {
|
|
997
|
-
let character = $f5a4a9a3486154da$var$getStringForKey(e.key);
|
|
998
|
-
if (!character || e.ctrlKey || e.metaKey || e.altKey || !$23f2114a1b82827e$export$4282f70798064fe0(e.currentTarget, $23f2114a1b82827e$export$e58f029f0fbfdb29(e)) || state.current.search.length === 0 && character === " ") return;
|
|
999
|
-
state.current.search += character;
|
|
1000
|
-
if (keyboardDelegate.getKeyForSearch != null) {
|
|
1001
|
-
let key = keyboardDelegate.getKeyForSearch(state.current.search, selectionManager.focusedKey);
|
|
1002
|
-
if (key == null) key = keyboardDelegate.getKeyForSearch(state.current.search);
|
|
1003
|
-
if (key != null) {
|
|
1004
|
-
selectionManager.setFocusedKey(key);
|
|
1005
|
-
if (onTypeSelect) onTypeSelect(key);
|
|
1006
|
-
e.preventDefault();
|
|
1007
|
-
if (!("continuePropagation" in e)) e.stopPropagation();
|
|
1008
|
-
} else {
|
|
1009
|
-
state.current.search = "";
|
|
1010
|
-
clearTimeout(state.current.timeout);
|
|
1011
|
-
state.current.timeout = void 0;
|
|
1012
|
-
return;
|
|
1013
|
-
}
|
|
1014
|
-
}
|
|
1015
|
-
clearTimeout(state.current.timeout);
|
|
1016
|
-
state.current.timeout = setTimeout(() => {
|
|
1017
|
-
state.current.search = "";
|
|
1018
|
-
}, $f5a4a9a3486154da$var$TYPEAHEAD_DEBOUNCE_WAIT_MS);
|
|
1019
|
-
};
|
|
1020
|
-
useEffect(() => {
|
|
1021
|
-
let timeout = state.current.timeout;
|
|
1022
|
-
return () => {
|
|
1023
|
-
clearTimeout(timeout);
|
|
1024
|
-
};
|
|
1025
|
-
}, [state]);
|
|
1026
|
-
return { typeSelectProps: {
|
|
1027
|
-
onKeyDownCapture: keyboardDelegate.getKeyForSearch ? onKeyDownCapture : void 0,
|
|
1028
|
-
onKeyDown: keyboardDelegate.getKeyForSearch ? onKeyDown : void 0
|
|
1029
|
-
} };
|
|
1030
|
-
}
|
|
1031
|
-
function $f5a4a9a3486154da$var$getStringForKey(key) {
|
|
1032
|
-
if (key.length === 1 || !/^[A-Z]/i.test(key)) return key;
|
|
1033
|
-
return "";
|
|
1034
|
-
}
|
|
1035
|
-
//#endregion
|
|
1036
|
-
//#region node_modules/react-aria/dist/private/utils/useUpdateLayoutEffect.mjs
|
|
1037
|
-
function $a475cdc2445827b5$export$72ef708ab07251f1(effect, dependencies) {
|
|
1038
|
-
const isInitialMount = useRef(true);
|
|
1039
|
-
const lastDeps = useRef(null);
|
|
1040
|
-
$c4867b2f328c2698$export$e5c5a5f917a5871c(() => {
|
|
1041
|
-
isInitialMount.current = true;
|
|
1042
|
-
return () => {
|
|
1043
|
-
isInitialMount.current = false;
|
|
1044
|
-
};
|
|
1045
|
-
}, []);
|
|
1046
|
-
$c4867b2f328c2698$export$e5c5a5f917a5871c(() => {
|
|
1047
|
-
if (isInitialMount.current) isInitialMount.current = false;
|
|
1048
|
-
else if (!lastDeps.current || dependencies.some((dep, i) => !Object.is(dep, lastDeps[i]))) effect();
|
|
1049
|
-
lastDeps.current = dependencies;
|
|
1050
|
-
}, dependencies);
|
|
1051
|
-
}
|
|
1052
|
-
//#endregion
|
|
1053
|
-
//#region node_modules/react-aria/dist/private/selection/useSelectableCollection.mjs
|
|
1054
|
-
function $d667c2af82d35a98$export$d6daf82dcd84e87c(options) {
|
|
1055
|
-
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", UNSTABLE_focusOnEntry } = options;
|
|
1056
|
-
let { direction } = $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7();
|
|
1057
|
-
let router = $caaf0dd3060ed57c$export$9a302a45f65d0572();
|
|
1058
|
-
const navigateToKey = (e, key, childFocus) => {
|
|
1059
|
-
if (key != null) {
|
|
1060
|
-
if (manager.isLink(key) && linkBehavior === "selection" && selectOnFocus && !$22bbea12c2567021$export$d3e3bd3e26688c04(e)) {
|
|
1061
|
-
flushSync(() => {
|
|
1062
|
-
manager.setFocusedKey(key, childFocus);
|
|
1063
|
-
});
|
|
1064
|
-
let item = $22bbea12c2567021$export$c3d8340acf92597f(ref, key);
|
|
1065
|
-
let itemProps = manager.getItemProps(key);
|
|
1066
|
-
if (item) {
|
|
1067
|
-
router.open(item, e, itemProps.href, itemProps.routerOptions);
|
|
1068
|
-
return;
|
|
1069
|
-
}
|
|
1070
|
-
return false;
|
|
1071
|
-
}
|
|
1072
|
-
manager.setFocusedKey(key, childFocus);
|
|
1073
|
-
if (manager.isLink(key) && linkBehavior === "override") return false;
|
|
1074
|
-
if (e.shiftKey && manager.selectionMode === "multiple") {
|
|
1075
|
-
manager.extendSelection(key);
|
|
1076
|
-
return;
|
|
1077
|
-
} else if (selectOnFocus && !$22bbea12c2567021$export$d3e3bd3e26688c04(e)) {
|
|
1078
|
-
manager.replaceSelection(key);
|
|
1079
|
-
return;
|
|
1080
|
-
}
|
|
1081
|
-
}
|
|
1082
|
-
return false;
|
|
1083
|
-
};
|
|
1084
|
-
let arrowDown = (e) => {
|
|
1085
|
-
if (delegate.getKeyBelow) {
|
|
1086
|
-
let nextKey = manager.focusedKey != null ? delegate.getKeyBelow?.(manager.focusedKey) : delegate.getFirstKey?.();
|
|
1087
|
-
if (nextKey == null && shouldFocusWrap) nextKey = delegate.getFirstKey?.(manager.focusedKey);
|
|
1088
|
-
if (nextKey != null) {
|
|
1089
|
-
navigateToKey(e, nextKey);
|
|
1090
|
-
return;
|
|
1091
|
-
}
|
|
1092
|
-
}
|
|
1093
|
-
return false;
|
|
1094
|
-
};
|
|
1095
|
-
let arrowUp = (e) => {
|
|
1096
|
-
if (delegate.getKeyAbove) {
|
|
1097
|
-
let nextKey = manager.focusedKey != null ? delegate.getKeyAbove?.(manager.focusedKey) : delegate.getLastKey?.();
|
|
1098
|
-
if (nextKey == null && shouldFocusWrap) nextKey = delegate.getLastKey?.(manager.focusedKey);
|
|
1099
|
-
if (nextKey != null) {
|
|
1100
|
-
navigateToKey(e, nextKey);
|
|
1101
|
-
return;
|
|
1102
|
-
}
|
|
1103
|
-
}
|
|
1104
|
-
return false;
|
|
1105
|
-
};
|
|
1106
|
-
let home = (e) => {
|
|
1107
|
-
if (delegate.getFirstKey) {
|
|
1108
|
-
if (manager.focusedKey === null && e.shiftKey) return false;
|
|
1109
|
-
let firstKey = delegate.getFirstKey(manager.focusedKey, $bb39c0fc1c19b34c$export$16792effe837dba3(e));
|
|
1110
|
-
manager.setFocusedKey(firstKey);
|
|
1111
|
-
if (firstKey != null) {
|
|
1112
|
-
if ($bb39c0fc1c19b34c$export$16792effe837dba3(e) && e.shiftKey && manager.selectionMode === "multiple") {
|
|
1113
|
-
manager.extendSelection(firstKey);
|
|
1114
|
-
return;
|
|
1115
|
-
} else if (selectOnFocus) {
|
|
1116
|
-
manager.replaceSelection(firstKey);
|
|
1117
|
-
return;
|
|
1118
|
-
}
|
|
1119
|
-
}
|
|
1120
|
-
}
|
|
1121
|
-
return false;
|
|
1122
|
-
};
|
|
1123
|
-
let arrowLeft = (e) => {
|
|
1124
|
-
if (delegate.getKeyLeftOf) {
|
|
1125
|
-
let nextKey = manager.focusedKey != null ? delegate.getKeyLeftOf?.(manager.focusedKey) : delegate.getFirstKey?.();
|
|
1126
|
-
if (nextKey == null && shouldFocusWrap) nextKey = direction === "rtl" ? delegate.getFirstKey?.(manager.focusedKey) : delegate.getLastKey?.(manager.focusedKey);
|
|
1127
|
-
if (nextKey != null) {
|
|
1128
|
-
navigateToKey(e, nextKey, direction === "rtl" ? "first" : "last");
|
|
1129
|
-
return;
|
|
1130
|
-
}
|
|
1131
|
-
}
|
|
1132
|
-
return false;
|
|
1133
|
-
};
|
|
1134
|
-
let arrowRight = (e) => {
|
|
1135
|
-
if (delegate.getKeyRightOf) {
|
|
1136
|
-
let nextKey = manager.focusedKey != null ? delegate.getKeyRightOf?.(manager.focusedKey) : delegate.getFirstKey?.();
|
|
1137
|
-
if (nextKey == null && shouldFocusWrap) nextKey = direction === "rtl" ? delegate.getLastKey?.(manager.focusedKey) : delegate.getFirstKey?.(manager.focusedKey);
|
|
1138
|
-
if (nextKey != null) {
|
|
1139
|
-
navigateToKey(e, nextKey, direction === "rtl" ? "last" : "first");
|
|
1140
|
-
return;
|
|
1141
|
-
}
|
|
1142
|
-
}
|
|
1143
|
-
return false;
|
|
1144
|
-
};
|
|
1145
|
-
let end = (e) => {
|
|
1146
|
-
if (delegate.getLastKey) {
|
|
1147
|
-
if (manager.focusedKey === null && e.shiftKey) return false;
|
|
1148
|
-
let lastKey = delegate.getLastKey(manager.focusedKey, $bb39c0fc1c19b34c$export$16792effe837dba3(e));
|
|
1149
|
-
manager.setFocusedKey(lastKey);
|
|
1150
|
-
if (lastKey != null) {
|
|
1151
|
-
if ($bb39c0fc1c19b34c$export$16792effe837dba3(e) && e.shiftKey && manager.selectionMode === "multiple") {
|
|
1152
|
-
manager.extendSelection(lastKey);
|
|
1153
|
-
return;
|
|
1154
|
-
} else if (selectOnFocus) {
|
|
1155
|
-
manager.replaceSelection(lastKey);
|
|
1156
|
-
return;
|
|
1157
|
-
}
|
|
1158
|
-
}
|
|
1159
|
-
}
|
|
1160
|
-
return false;
|
|
1161
|
-
};
|
|
1162
|
-
let pageDown = (e) => {
|
|
1163
|
-
if (delegate.getKeyPageBelow && manager.focusedKey != null) {
|
|
1164
|
-
let nextKey = delegate.getKeyPageBelow(manager.focusedKey);
|
|
1165
|
-
if (nextKey != null) return navigateToKey(e, nextKey);
|
|
1166
|
-
}
|
|
1167
|
-
return false;
|
|
1168
|
-
};
|
|
1169
|
-
let pageUp = (e) => {
|
|
1170
|
-
if (delegate.getKeyPageAbove && manager.focusedKey != null) {
|
|
1171
|
-
let nextKey = delegate.getKeyPageAbove(manager.focusedKey);
|
|
1172
|
-
if (nextKey != null) return navigateToKey(e, nextKey);
|
|
1173
|
-
}
|
|
1174
|
-
return false;
|
|
1175
|
-
};
|
|
1176
|
-
let aHandler = () => {
|
|
1177
|
-
if (manager.selectionMode === "multiple" && disallowSelectAll !== true) {
|
|
1178
|
-
manager.selectAll();
|
|
1179
|
-
return;
|
|
1180
|
-
}
|
|
1181
|
-
return false;
|
|
1182
|
-
};
|
|
1183
|
-
let escape = () => {
|
|
1184
|
-
if (escapeKeyBehavior === "clearSelection" && !disallowEmptySelection && manager.selectedKeys.size !== 0) {
|
|
1185
|
-
manager.clearSelection();
|
|
1186
|
-
return;
|
|
1187
|
-
}
|
|
1188
|
-
return false;
|
|
1189
|
-
};
|
|
1190
|
-
let tab = () => {
|
|
1191
|
-
if (!allowsTabNavigation && ref.current) {
|
|
1192
|
-
let walker = $535772f9d2c1f38d$export$2d6ec8fc375ceafa(ref.current, { tabbable: true });
|
|
1193
|
-
let next = void 0;
|
|
1194
|
-
let last;
|
|
1195
|
-
do {
|
|
1196
|
-
last = walker.lastChild();
|
|
1197
|
-
if (last) next = last;
|
|
1198
|
-
} while (last);
|
|
1199
|
-
let activeElement = $23f2114a1b82827e$export$cd4e5573fbe2b576();
|
|
1200
|
-
if (next && (!$23f2114a1b82827e$export$b4f377a2b6254582(next) || activeElement && !$3b8b240c1bf84ab9$export$bebd5a1431fec25d(activeElement))) $1969ac565cfec8d0$export$de79e2c695e052f3(next);
|
|
1201
|
-
}
|
|
1202
|
-
return {
|
|
1203
|
-
shouldContinuePropagation: true,
|
|
1204
|
-
shouldPreventDefault: false
|
|
1205
|
-
};
|
|
1206
|
-
};
|
|
1207
|
-
let shiftTab = () => {
|
|
1208
|
-
if (!allowsTabNavigation && ref.current) ref.current.focus();
|
|
1209
|
-
return {
|
|
1210
|
-
shouldContinuePropagation: true,
|
|
1211
|
-
shouldPreventDefault: false
|
|
1212
|
-
};
|
|
1213
|
-
};
|
|
1214
|
-
let withShiftSel = (key, callback) => {
|
|
1215
|
-
return {
|
|
1216
|
-
[$2add3ce32c6007eb$export$9ac100e40613ea10() ? key + "+Shift+Alt" : key + "+Shift+Control"]: callback,
|
|
1217
|
-
[key + "+Shift"]: callback,
|
|
1218
|
-
[$2add3ce32c6007eb$export$9ac100e40613ea10() ? key + "+Alt" : key + "+Control"]: callback,
|
|
1219
|
-
[key]: callback
|
|
1220
|
-
};
|
|
1221
|
-
};
|
|
1222
|
-
let { keyboardProps: repeatKeyboardProps } = $8296dad1a4c5e0dc$export$8f71654801c2f7cd({
|
|
1223
|
-
shortcuts: {
|
|
1224
|
-
...withShiftSel("ArrowDown", arrowDown),
|
|
1225
|
-
...withShiftSel("ArrowUp", arrowUp),
|
|
1226
|
-
...withShiftSel("ArrowLeft", arrowLeft),
|
|
1227
|
-
...withShiftSel("ArrowRight", arrowRight),
|
|
1228
|
-
...withShiftSel("PageDown", pageDown),
|
|
1229
|
-
...withShiftSel("PageUp", pageUp)
|
|
1230
|
-
},
|
|
1231
|
-
allowRepeats: true
|
|
1232
|
-
});
|
|
1233
|
-
let { keyboardProps } = $8296dad1a4c5e0dc$export$8f71654801c2f7cd({ shortcuts: {
|
|
1234
|
-
...withShiftSel("Home", home),
|
|
1235
|
-
...withShiftSel("End", end),
|
|
1236
|
-
"Mod+A": aHandler,
|
|
1237
|
-
Escape: escape,
|
|
1238
|
-
Tab: tab,
|
|
1239
|
-
"Tab+Shift": shiftTab
|
|
1240
|
-
} });
|
|
1241
|
-
let scrollPos = useRef({
|
|
1242
|
-
top: 0,
|
|
1243
|
-
left: 0
|
|
1244
|
-
});
|
|
1245
|
-
$600b3cf69ae46262$export$90fc3a17d93f704c(scrollRef, "scroll", () => {
|
|
1246
|
-
scrollPos.current = {
|
|
1247
|
-
top: scrollRef.current?.scrollTop ?? 0,
|
|
1248
|
-
left: scrollRef.current?.scrollLeft ?? 0
|
|
1249
|
-
};
|
|
1250
|
-
});
|
|
1251
|
-
let onFocus = (e) => {
|
|
1252
|
-
if (manager.isFocused) {
|
|
1253
|
-
if (!$23f2114a1b82827e$export$4282f70798064fe0(e.currentTarget, $23f2114a1b82827e$export$e58f029f0fbfdb29(e))) manager.setFocused(false);
|
|
1254
|
-
return;
|
|
1255
|
-
}
|
|
1256
|
-
if (!$23f2114a1b82827e$export$4282f70798064fe0(e.currentTarget, $23f2114a1b82827e$export$e58f029f0fbfdb29(e))) return;
|
|
1257
|
-
let modality = $8f5a2122b0992be3$export$630ff653c5ada6a9();
|
|
1258
|
-
manager.setFocused(true);
|
|
1259
|
-
let navigateToKey = (key) => {
|
|
1260
|
-
if (key != null) {
|
|
1261
|
-
manager.setFocusedKey(key);
|
|
1262
|
-
if (selectOnFocus && !manager.isSelected(key)) manager.replaceSelection(key);
|
|
1263
|
-
}
|
|
1264
|
-
};
|
|
1265
|
-
if (UNSTABLE_focusOnEntry && (modality === "keyboard" || modality === "virtual")) navigateToKey(UNSTABLE_focusOnEntry === "first" ? delegate.getFirstKey?.() : delegate.getLastKey?.());
|
|
1266
|
-
else if (manager.focusedKey == null) {
|
|
1267
|
-
let relatedTarget = e.relatedTarget;
|
|
1268
|
-
if (relatedTarget && e.currentTarget.compareDocumentPosition(relatedTarget) & Node.DOCUMENT_POSITION_FOLLOWING) navigateToKey(manager.lastSelectedKey ?? delegate.getLastKey?.());
|
|
1269
|
-
else navigateToKey(manager.firstSelectedKey ?? delegate.getFirstKey?.());
|
|
1270
|
-
} else if (scrollRef.current) {
|
|
1271
|
-
scrollRef.current.scrollTop = scrollPos.current.top;
|
|
1272
|
-
scrollRef.current.scrollLeft = scrollPos.current.left;
|
|
1273
|
-
}
|
|
1274
|
-
if (manager.focusedKey != null && scrollRef.current) {
|
|
1275
|
-
let element = $22bbea12c2567021$export$c3d8340acf92597f(ref, manager.focusedKey);
|
|
1276
|
-
if (element instanceof HTMLElement) {
|
|
1277
|
-
if (!$23f2114a1b82827e$export$b4f377a2b6254582(element) && !shouldUseVirtualFocus) $1969ac565cfec8d0$export$de79e2c695e052f3(element);
|
|
1278
|
-
if (modality === "keyboard" || UNSTABLE_focusOnEntry && modality === "virtual") $51a3e22a5186a962$export$c826860796309d1b(element, { containingElement: ref.current });
|
|
1279
|
-
}
|
|
1280
|
-
}
|
|
1281
|
-
};
|
|
1282
|
-
let onBlur = (e) => {
|
|
1283
|
-
if (!$23f2114a1b82827e$export$4282f70798064fe0(e.currentTarget, e.relatedTarget)) manager.setFocused(false);
|
|
1284
|
-
};
|
|
1285
|
-
let shouldVirtualFocusFirst = useRef(false);
|
|
1286
|
-
$600b3cf69ae46262$export$90fc3a17d93f704c(ref, $8b2399d051d06d4c$export$831c820ad60f9d12, !shouldUseVirtualFocus ? void 0 : (e) => {
|
|
1287
|
-
let { detail } = e;
|
|
1288
|
-
e.stopPropagation();
|
|
1289
|
-
manager.setFocused(true);
|
|
1290
|
-
if (detail?.focusStrategy === "first") shouldVirtualFocusFirst.current = true;
|
|
1291
|
-
});
|
|
1292
|
-
let firstKey = delegate.getFirstKey?.() ?? null;
|
|
1293
|
-
$a475cdc2445827b5$export$72ef708ab07251f1(() => {
|
|
1294
|
-
if (shouldVirtualFocusFirst.current) {
|
|
1295
|
-
if (firstKey == null) {
|
|
1296
|
-
let previousActiveElement = $23f2114a1b82827e$export$cd4e5573fbe2b576();
|
|
1297
|
-
$b72f3f7b3b5f42c6$export$76e4e37e5339496d(ref.current);
|
|
1298
|
-
$b72f3f7b3b5f42c6$export$2b35b76d2e30e129(previousActiveElement, null);
|
|
1299
|
-
if (manager.collection.size > 0) shouldVirtualFocusFirst.current = false;
|
|
1300
|
-
} else {
|
|
1301
|
-
manager.setFocusedKey(firstKey);
|
|
1302
|
-
shouldVirtualFocusFirst.current = false;
|
|
1303
|
-
}
|
|
1304
|
-
}
|
|
1305
|
-
}, [firstKey, manager.collection.size]);
|
|
1306
|
-
$a475cdc2445827b5$export$72ef708ab07251f1(() => {
|
|
1307
|
-
if (manager.collection.size > 0) shouldVirtualFocusFirst.current = false;
|
|
1308
|
-
}, [manager.focusedKey]);
|
|
1309
|
-
$600b3cf69ae46262$export$90fc3a17d93f704c(ref, $8b2399d051d06d4c$export$447a38995de2c711, !shouldUseVirtualFocus ? void 0 : (e) => {
|
|
1310
|
-
e.stopPropagation();
|
|
1311
|
-
manager.setFocused(false);
|
|
1312
|
-
if (e.detail?.clearFocusKey) manager.setFocusedKey(null);
|
|
1313
|
-
});
|
|
1314
|
-
const autoFocusRef = useRef(autoFocus);
|
|
1315
|
-
const didAutoFocusRef = useRef(false);
|
|
1316
|
-
useEffect(() => {
|
|
1317
|
-
if (autoFocusRef.current) {
|
|
1318
|
-
let focusedKey = null;
|
|
1319
|
-
if (autoFocus === "first") focusedKey = delegate.getFirstKey?.() ?? null;
|
|
1320
|
-
if (autoFocus === "last") focusedKey = delegate.getLastKey?.() ?? null;
|
|
1321
|
-
let selectedKeys = manager.selectedKeys;
|
|
1322
|
-
if (selectedKeys.size) {
|
|
1323
|
-
for (let key of selectedKeys) if (manager.canSelectItem(key)) {
|
|
1324
|
-
focusedKey = key;
|
|
1325
|
-
break;
|
|
1326
|
-
}
|
|
1327
|
-
}
|
|
1328
|
-
manager.setFocused(true);
|
|
1329
|
-
manager.setFocusedKey(focusedKey);
|
|
1330
|
-
if (focusedKey != null && selectOnFocus && !selectedKeys.size && manager.canSelectItem(focusedKey)) manager.replaceSelection(focusedKey);
|
|
1331
|
-
if (focusedKey == null && !shouldUseVirtualFocus && ref.current) $f192c2f16961cbe0$export$80f3e147d781571c(ref.current);
|
|
1332
|
-
if (manager.collection.size > 0) {
|
|
1333
|
-
autoFocusRef.current = false;
|
|
1334
|
-
didAutoFocusRef.current = true;
|
|
1335
|
-
}
|
|
1336
|
-
}
|
|
1337
|
-
});
|
|
1338
|
-
let lastFocusedKey = useRef(manager.focusedKey);
|
|
1339
|
-
let raf = useRef(null);
|
|
1340
|
-
useEffect(() => {
|
|
1341
|
-
if (manager.isFocused && manager.focusedKey != null && (manager.focusedKey !== lastFocusedKey.current || didAutoFocusRef.current) && scrollRef.current && ref.current) {
|
|
1342
|
-
let modality = $8f5a2122b0992be3$export$630ff653c5ada6a9();
|
|
1343
|
-
let element = $22bbea12c2567021$export$c3d8340acf92597f(ref, manager.focusedKey);
|
|
1344
|
-
if (!(element instanceof HTMLElement)) return;
|
|
1345
|
-
if (modality === "keyboard" || didAutoFocusRef.current) {
|
|
1346
|
-
if (raf.current) cancelAnimationFrame(raf.current);
|
|
1347
|
-
raf.current = requestAnimationFrame(() => {
|
|
1348
|
-
if (scrollRef.current) {
|
|
1349
|
-
$51a3e22a5186a962$export$53a0910f038337bd(scrollRef.current, element);
|
|
1350
|
-
if (modality !== "virtual") $51a3e22a5186a962$export$c826860796309d1b(element, { containingElement: ref.current });
|
|
1351
|
-
}
|
|
1352
|
-
});
|
|
1353
|
-
}
|
|
1354
|
-
}
|
|
1355
|
-
if (!shouldUseVirtualFocus && manager.isFocused && manager.focusedKey == null && lastFocusedKey.current != null && ref.current) $f192c2f16961cbe0$export$80f3e147d781571c(ref.current);
|
|
1356
|
-
lastFocusedKey.current = manager.focusedKey;
|
|
1357
|
-
didAutoFocusRef.current = false;
|
|
1358
|
-
});
|
|
1359
|
-
useEffect(() => {
|
|
1360
|
-
return () => {
|
|
1361
|
-
if (raf.current) cancelAnimationFrame(raf.current);
|
|
1362
|
-
};
|
|
1363
|
-
}, []);
|
|
1364
|
-
$600b3cf69ae46262$export$90fc3a17d93f704c(ref, "react-aria-focus-scope-restore", (e) => {
|
|
1365
|
-
e.preventDefault();
|
|
1366
|
-
manager.setFocused(true);
|
|
1367
|
-
});
|
|
1368
|
-
let handlers = {
|
|
1369
|
-
...$bbaa08b3cd72f041$export$9d1611c77c2fe928(keyboardProps, repeatKeyboardProps),
|
|
1370
|
-
onFocus,
|
|
1371
|
-
onBlur,
|
|
1372
|
-
onMouseDown(e) {
|
|
1373
|
-
if (scrollRef.current === $23f2114a1b82827e$export$e58f029f0fbfdb29(e)) e.preventDefault();
|
|
1374
|
-
}
|
|
1375
|
-
};
|
|
1376
|
-
let { typeSelectProps } = $f5a4a9a3486154da$export$e32c88dfddc6e1d8({
|
|
1377
|
-
keyboardDelegate: delegate,
|
|
1378
|
-
selectionManager: manager
|
|
1379
|
-
});
|
|
1380
|
-
if (!disallowTypeAhead) handlers = $bbaa08b3cd72f041$export$9d1611c77c2fe928(typeSelectProps, handlers);
|
|
1381
|
-
let tabIndex = void 0;
|
|
1382
|
-
if (!shouldUseVirtualFocus) tabIndex = manager.focusedKey == null ? 0 : -1;
|
|
1383
|
-
let collectionId = $22bbea12c2567021$export$881eb0d9f3605d9d(manager.collection);
|
|
1384
|
-
return { collectionProps: $bbaa08b3cd72f041$export$9d1611c77c2fe928(handlers, {
|
|
1385
|
-
tabIndex,
|
|
1386
|
-
"data-collection": collectionId
|
|
1387
|
-
}) };
|
|
1388
|
-
}
|
|
1389
|
-
//#endregion
|
|
1390
|
-
//#region node_modules/react-aria/dist/private/interactions/useLongPress.mjs
|
|
1391
|
-
var $7b01448eaad0fe7c$var$DEFAULT_THRESHOLD = 500;
|
|
1392
|
-
function $7b01448eaad0fe7c$export$c24ed0104d07eab9(props) {
|
|
1393
|
-
let { isDisabled, pointerType, onLongPressStart, onLongPressEnd, onLongPress, threshold = $7b01448eaad0fe7c$var$DEFAULT_THRESHOLD, accessibilityDescription } = props;
|
|
1394
|
-
const timeRef = useRef(void 0);
|
|
1395
|
-
let { addGlobalListener, removeAllGlobalListeners } = $48a7d519b337145d$export$4eaf04e54aa8eed6();
|
|
1396
|
-
let isAcceptedPointerType = (e) => pointerType ? e.pointerType === pointerType : e.pointerType === "mouse" || e.pointerType === "touch";
|
|
1397
|
-
let { pressProps } = $d27d541f9569d26d$export$45712eceda6fad21({
|
|
1398
|
-
isDisabled,
|
|
1399
|
-
onPressStart(e) {
|
|
1400
|
-
e.continuePropagation();
|
|
1401
|
-
if (isAcceptedPointerType(e)) {
|
|
1402
|
-
if (onLongPressStart) onLongPressStart({
|
|
1403
|
-
...e,
|
|
1404
|
-
type: "longpressstart"
|
|
1405
|
-
});
|
|
1406
|
-
timeRef.current = setTimeout(() => {
|
|
1407
|
-
e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: true }));
|
|
1408
|
-
addGlobalListener(e.target, "click", (e) => e.preventDefault(), { once: true });
|
|
1409
|
-
if ($d447af545b77c9f1$export$b204af158042fbac(e.target).activeElement !== e.target) $1969ac565cfec8d0$export$de79e2c695e052f3(e.target);
|
|
1410
|
-
if (onLongPress) onLongPress({
|
|
1411
|
-
...e,
|
|
1412
|
-
type: "longpress"
|
|
1413
|
-
});
|
|
1414
|
-
timeRef.current = void 0;
|
|
1415
|
-
}, threshold);
|
|
1416
|
-
if (e.pointerType === "touch") addGlobalListener(e.target, "contextmenu", (e) => e.preventDefault(), { once: true });
|
|
1417
|
-
let ownerWindow = $d447af545b77c9f1$export$f21a1ffae260145a(e.target);
|
|
1418
|
-
addGlobalListener(ownerWindow, "pointerup", () => {
|
|
1419
|
-
setTimeout(() => {
|
|
1420
|
-
removeAllGlobalListeners();
|
|
1421
|
-
}, 100);
|
|
1422
|
-
}, { once: true });
|
|
1423
|
-
}
|
|
1424
|
-
},
|
|
1425
|
-
onPressEnd(e) {
|
|
1426
|
-
if (timeRef.current) clearTimeout(timeRef.current);
|
|
1427
|
-
if (onLongPressEnd && isAcceptedPointerType(e)) onLongPressEnd({
|
|
1428
|
-
...e,
|
|
1429
|
-
type: "longpressend"
|
|
1430
|
-
});
|
|
1431
|
-
}
|
|
1432
|
-
});
|
|
1433
|
-
let descriptionProps = $121970af65029459$export$f8aeda7b10753fa1(onLongPress && !isDisabled ? accessibilityDescription : void 0);
|
|
1434
|
-
return { longPressProps: $bbaa08b3cd72f041$export$9d1611c77c2fe928(pressProps, descriptionProps) };
|
|
1435
|
-
}
|
|
1436
|
-
//#endregion
|
|
1437
|
-
//#region node_modules/react-aria/dist/private/selection/useSelectableItem.mjs
|
|
1438
|
-
function $f6ba6936bfd098a0$export$ecf600387e221c37(options) {
|
|
1439
|
-
let { id, selectionManager: manager, key, ref, shouldSelectOnPressUp, shouldUseVirtualFocus, focus, isDisabled, onAction, allowsDifferentPressOrigin, linkBehavior = "action" } = options;
|
|
1440
|
-
let router = $caaf0dd3060ed57c$export$9a302a45f65d0572();
|
|
1441
|
-
id = $390e54f620492c70$export$f680877a34711e37(id);
|
|
1442
|
-
let onSelect = (e) => {
|
|
1443
|
-
if (e.pointerType === "keyboard" && $22bbea12c2567021$export$d3e3bd3e26688c04(e)) manager.toggleSelection(key);
|
|
1444
|
-
else {
|
|
1445
|
-
if (manager.selectionMode === "none") return;
|
|
1446
|
-
if (manager.isLink(key)) {
|
|
1447
|
-
if (linkBehavior === "selection" && ref.current) {
|
|
1448
|
-
let itemProps = manager.getItemProps(key);
|
|
1449
|
-
router.open(ref.current, e, itemProps.href, itemProps.routerOptions);
|
|
1450
|
-
manager.setSelectedKeys(manager.selectedKeys);
|
|
1451
|
-
return;
|
|
1452
|
-
} else if (linkBehavior === "override" || linkBehavior === "none") return;
|
|
1453
|
-
}
|
|
1454
|
-
if (manager.selectionMode === "single") {
|
|
1455
|
-
if (manager.isSelected(key) && !manager.disallowEmptySelection) manager.toggleSelection(key);
|
|
1456
|
-
else manager.replaceSelection(key);
|
|
1457
|
-
} else if (e && e.shiftKey) manager.extendSelection(key);
|
|
1458
|
-
else if (manager.selectionBehavior === "toggle" || e && ($bb39c0fc1c19b34c$export$16792effe837dba3(e) || e.pointerType === "touch" || e.pointerType === "virtual")) manager.toggleSelection(key);
|
|
1459
|
-
else manager.replaceSelection(key);
|
|
1460
|
-
}
|
|
1461
|
-
};
|
|
1462
|
-
useEffect(() => {
|
|
1463
|
-
if (key === manager.focusedKey && manager.isFocused) {
|
|
1464
|
-
if (!shouldUseVirtualFocus) {
|
|
1465
|
-
if (focus) focus();
|
|
1466
|
-
else if ($23f2114a1b82827e$export$cd4e5573fbe2b576() !== ref.current && ref.current) $f192c2f16961cbe0$export$80f3e147d781571c(ref.current);
|
|
1467
|
-
} else $b72f3f7b3b5f42c6$export$76e4e37e5339496d(ref.current);
|
|
1468
|
-
}
|
|
1469
|
-
}, [
|
|
1470
|
-
ref,
|
|
1471
|
-
key,
|
|
1472
|
-
manager.focusedKey,
|
|
1473
|
-
manager.childFocusStrategy,
|
|
1474
|
-
manager.isFocused,
|
|
1475
|
-
shouldUseVirtualFocus
|
|
1476
|
-
]);
|
|
1477
|
-
isDisabled = isDisabled || manager.isDisabled(key);
|
|
1478
|
-
let itemProps = {};
|
|
1479
|
-
if (!shouldUseVirtualFocus && !isDisabled) itemProps = {
|
|
1480
|
-
tabIndex: key === manager.focusedKey ? 0 : -1,
|
|
1481
|
-
onFocus(e) {
|
|
1482
|
-
if ($23f2114a1b82827e$export$e58f029f0fbfdb29(e) === ref.current) manager.setFocusedKey(key);
|
|
1483
|
-
}
|
|
1484
|
-
};
|
|
1485
|
-
else if (isDisabled) itemProps.onMouseDown = (e) => {
|
|
1486
|
-
e.preventDefault();
|
|
1487
|
-
};
|
|
1488
|
-
useEffect(() => {
|
|
1489
|
-
if (isDisabled && manager.focusedKey === key) manager.setFocusedKey(null);
|
|
1490
|
-
}, [
|
|
1491
|
-
manager,
|
|
1492
|
-
isDisabled,
|
|
1493
|
-
key
|
|
1494
|
-
]);
|
|
1495
|
-
let isLinkOverride = manager.isLink(key) && linkBehavior === "override";
|
|
1496
|
-
let isActionOverride = onAction && options["UNSTABLE_itemBehavior"] === "action";
|
|
1497
|
-
let hasLinkAction = manager.isLink(key) && linkBehavior !== "selection" && linkBehavior !== "none";
|
|
1498
|
-
let allowsSelection = !isDisabled && manager.canSelectItem(key) && !isLinkOverride && !isActionOverride;
|
|
1499
|
-
let allowsActions = (onAction || hasLinkAction) && !isDisabled;
|
|
1500
|
-
let hasPrimaryAction = allowsActions && (manager.selectionBehavior === "replace" ? !allowsSelection : !allowsSelection || manager.isEmpty);
|
|
1501
|
-
let hasSecondaryAction = allowsActions && allowsSelection && manager.selectionBehavior === "replace";
|
|
1502
|
-
let hasAction = hasPrimaryAction || hasSecondaryAction;
|
|
1503
|
-
let modality = useRef(null);
|
|
1504
|
-
let longPressEnabled = hasAction && allowsSelection;
|
|
1505
|
-
let longPressEnabledOnPressStart = useRef(false);
|
|
1506
|
-
let hadPrimaryActionOnPressStart = useRef(false);
|
|
1507
|
-
let collectionItemProps = manager.getItemProps(key);
|
|
1508
|
-
let performAction = (e) => {
|
|
1509
|
-
if (onAction) {
|
|
1510
|
-
onAction();
|
|
1511
|
-
ref.current?.dispatchEvent(new CustomEvent("react-aria-item-action", { bubbles: true }));
|
|
1512
|
-
}
|
|
1513
|
-
if (hasLinkAction && ref.current) router.open(ref.current, e, collectionItemProps.href, collectionItemProps.routerOptions);
|
|
1514
|
-
};
|
|
1515
|
-
let itemPressProps = { ref };
|
|
1516
|
-
if (shouldSelectOnPressUp) {
|
|
1517
|
-
itemPressProps.onPressStart = (e) => {
|
|
1518
|
-
modality.current = e.pointerType;
|
|
1519
|
-
longPressEnabledOnPressStart.current = longPressEnabled;
|
|
1520
|
-
if (e.pointerType === "keyboard" && (!hasAction || $f6ba6936bfd098a0$var$isSelectionKey(e.key))) onSelect(e);
|
|
1521
|
-
};
|
|
1522
|
-
if (!allowsDifferentPressOrigin) itemPressProps.onPress = (e) => {
|
|
1523
|
-
if (hasPrimaryAction || hasSecondaryAction && e.pointerType !== "mouse") {
|
|
1524
|
-
if (e.pointerType === "keyboard" && !$f6ba6936bfd098a0$var$isActionKey(e.key)) return;
|
|
1525
|
-
performAction(e);
|
|
1526
|
-
} else if (e.pointerType !== "keyboard" && allowsSelection) onSelect(e);
|
|
1527
|
-
};
|
|
1528
|
-
else {
|
|
1529
|
-
itemPressProps.onPressUp = hasPrimaryAction ? void 0 : (e) => {
|
|
1530
|
-
if (e.pointerType === "mouse" && allowsSelection) onSelect(e);
|
|
1531
|
-
};
|
|
1532
|
-
itemPressProps.onPress = hasPrimaryAction ? performAction : (e) => {
|
|
1533
|
-
if (e.pointerType !== "keyboard" && e.pointerType !== "mouse" && allowsSelection) onSelect(e);
|
|
1534
|
-
};
|
|
1535
|
-
}
|
|
1536
|
-
} else {
|
|
1537
|
-
itemPressProps.onPressStart = (e) => {
|
|
1538
|
-
modality.current = e.pointerType;
|
|
1539
|
-
longPressEnabledOnPressStart.current = longPressEnabled;
|
|
1540
|
-
hadPrimaryActionOnPressStart.current = hasPrimaryAction;
|
|
1541
|
-
if (allowsSelection && (e.pointerType === "mouse" && !hasPrimaryAction || e.pointerType === "keyboard" && (!allowsActions || $f6ba6936bfd098a0$var$isSelectionKey(e.key)))) onSelect(e);
|
|
1542
|
-
};
|
|
1543
|
-
itemPressProps.onPress = (e) => {
|
|
1544
|
-
if (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && hasAction && $f6ba6936bfd098a0$var$isActionKey(e.key) || e.pointerType === "mouse" && hadPrimaryActionOnPressStart.current) {
|
|
1545
|
-
if (hasAction) performAction(e);
|
|
1546
|
-
else if (allowsSelection) onSelect(e);
|
|
1547
|
-
}
|
|
1548
|
-
};
|
|
1549
|
-
}
|
|
1550
|
-
let collectionId = $22bbea12c2567021$export$6aeb1680a0ae8741(manager.collection);
|
|
1551
|
-
itemProps["data-collection"] = collectionId;
|
|
1552
|
-
itemProps["data-key"] = key;
|
|
1553
|
-
itemPressProps.preventFocusOnPress = shouldUseVirtualFocus;
|
|
1554
|
-
if (shouldUseVirtualFocus) itemPressProps = $bbaa08b3cd72f041$export$9d1611c77c2fe928(itemPressProps, {
|
|
1555
|
-
onPressStart(e) {
|
|
1556
|
-
if (e.pointerType !== "touch") {
|
|
1557
|
-
manager.setFocused(true);
|
|
1558
|
-
manager.setFocusedKey(key);
|
|
1559
|
-
}
|
|
1560
|
-
},
|
|
1561
|
-
onPress(e) {
|
|
1562
|
-
if (e.pointerType === "touch") {
|
|
1563
|
-
manager.setFocused(true);
|
|
1564
|
-
manager.setFocusedKey(key);
|
|
1565
|
-
}
|
|
1566
|
-
}
|
|
1567
|
-
});
|
|
1568
|
-
if (collectionItemProps) {
|
|
1569
|
-
for (let key of [
|
|
1570
|
-
"onPressStart",
|
|
1571
|
-
"onPressEnd",
|
|
1572
|
-
"onPressChange",
|
|
1573
|
-
"onPress",
|
|
1574
|
-
"onPressUp",
|
|
1575
|
-
"onClick"
|
|
1576
|
-
]) if (collectionItemProps[key]) itemPressProps[key] = $a4e76a5424781910$export$e08e3b67e392101e(itemPressProps[key], collectionItemProps[key]);
|
|
1577
|
-
}
|
|
1578
|
-
let { pressProps, isPressed } = $d27d541f9569d26d$export$45712eceda6fad21(itemPressProps);
|
|
1579
|
-
let onDoubleClick = hasSecondaryAction ? (e) => {
|
|
1580
|
-
if (modality.current === "mouse") {
|
|
1581
|
-
e.stopPropagation();
|
|
1582
|
-
e.preventDefault();
|
|
1583
|
-
performAction(e);
|
|
1584
|
-
}
|
|
1585
|
-
} : void 0;
|
|
1586
|
-
let { longPressProps } = $7b01448eaad0fe7c$export$c24ed0104d07eab9({
|
|
1587
|
-
isDisabled: !longPressEnabled,
|
|
1588
|
-
onLongPress(e) {
|
|
1589
|
-
if (e.pointerType === "touch") {
|
|
1590
|
-
onSelect(e);
|
|
1591
|
-
manager.setSelectionBehavior("toggle");
|
|
1592
|
-
}
|
|
1593
|
-
}
|
|
1594
|
-
});
|
|
1595
|
-
let onDragStartCapture = (e) => {
|
|
1596
|
-
if (modality.current === "touch" && longPressEnabledOnPressStart.current) e.preventDefault();
|
|
1597
|
-
};
|
|
1598
|
-
let onClick = linkBehavior !== "none" && manager.isLink(key) ? (e) => {
|
|
1599
|
-
if (!$caaf0dd3060ed57c$export$95185d699e05d4d7.isOpening) e.preventDefault();
|
|
1600
|
-
} : void 0;
|
|
1601
|
-
let mergedItemProps = $bbaa08b3cd72f041$export$9d1611c77c2fe928(itemProps, allowsSelection || hasPrimaryAction || shouldUseVirtualFocus && !isDisabled ? pressProps : {}, longPressEnabled ? longPressProps : {}, {
|
|
1602
|
-
onDoubleClick,
|
|
1603
|
-
onDragStartCapture,
|
|
1604
|
-
onClick,
|
|
1605
|
-
id
|
|
1606
|
-
}, shouldUseVirtualFocus ? { onMouseDown: (e) => e.preventDefault() } : void 0);
|
|
1607
|
-
let isChildInteraction = (target) => {
|
|
1608
|
-
let el = target;
|
|
1609
|
-
while (el && el !== ref.current) {
|
|
1610
|
-
let elCollection = el.getAttribute("data-collection");
|
|
1611
|
-
if (elCollection != null) return elCollection !== collectionId;
|
|
1612
|
-
el = el.parentElement;
|
|
1613
|
-
}
|
|
1614
|
-
return $3b8b240c1bf84ab9$export$bebd5a1431fec25d(target);
|
|
1615
|
-
};
|
|
1616
|
-
let baseOnPointerDown = mergedItemProps.onPointerDown;
|
|
1617
|
-
mergedItemProps.onPointerDown = (e) => {
|
|
1618
|
-
let target = $23f2114a1b82827e$export$e58f029f0fbfdb29(e);
|
|
1619
|
-
if (target && target !== ref.current && isChildInteraction(target)) {
|
|
1620
|
-
e.stopPropagation();
|
|
1621
|
-
return;
|
|
1622
|
-
}
|
|
1623
|
-
baseOnPointerDown?.(e);
|
|
1624
|
-
};
|
|
1625
|
-
let baseOnMouseDown = mergedItemProps.onMouseDown;
|
|
1626
|
-
mergedItemProps.onMouseDown = (e) => {
|
|
1627
|
-
let target = $23f2114a1b82827e$export$e58f029f0fbfdb29(e);
|
|
1628
|
-
if (target && target !== ref.current && isChildInteraction(target)) {
|
|
1629
|
-
e.stopPropagation();
|
|
1630
|
-
return;
|
|
1631
|
-
}
|
|
1632
|
-
baseOnMouseDown?.(e);
|
|
1633
|
-
};
|
|
1634
|
-
return {
|
|
1635
|
-
itemProps: mergedItemProps,
|
|
1636
|
-
isPressed,
|
|
1637
|
-
isSelected: manager.isSelected(key),
|
|
1638
|
-
isFocused: manager.isFocused && manager.focusedKey === key,
|
|
1639
|
-
isDisabled,
|
|
1640
|
-
allowsSelection,
|
|
1641
|
-
hasAction
|
|
1642
|
-
};
|
|
1643
|
-
}
|
|
1644
|
-
function $f6ba6936bfd098a0$var$isActionKey(key) {
|
|
1645
|
-
return key === "Enter";
|
|
1646
|
-
}
|
|
1647
|
-
function $f6ba6936bfd098a0$var$isSelectionKey(key) {
|
|
1648
|
-
return key === " ";
|
|
1649
|
-
}
|
|
1650
|
-
//#endregion
|
|
1651
|
-
//#region node_modules/react-stately/dist/private/collections/getChildNodes.mjs
|
|
1652
|
-
function $cd5ea4b915021f1d$export$1005530eda016c13(node, collection) {
|
|
1653
|
-
if (typeof collection.getChildren === "function") return collection.getChildren(node.key);
|
|
1654
|
-
return node.childNodes;
|
|
1655
|
-
}
|
|
1656
|
-
function $cd5ea4b915021f1d$export$fbdeaa6a76694f71(iterable) {
|
|
1657
|
-
return $cd5ea4b915021f1d$export$5f3398f8733f90e2(iterable, 0);
|
|
1658
|
-
}
|
|
1659
|
-
function $cd5ea4b915021f1d$export$5f3398f8733f90e2(iterable, index) {
|
|
1660
|
-
if (index < 0) return void 0;
|
|
1661
|
-
let i = 0;
|
|
1662
|
-
for (let item of iterable) {
|
|
1663
|
-
if (i === index) return item;
|
|
1664
|
-
i++;
|
|
1665
|
-
}
|
|
1666
|
-
}
|
|
1667
|
-
function $cd5ea4b915021f1d$export$8c434b3a7a4dad6(collection, a, b) {
|
|
1668
|
-
if (a.parentKey === b.parentKey) return a.index - b.index;
|
|
1669
|
-
let aAncestors = [...$cd5ea4b915021f1d$var$getAncestors(collection, a), a];
|
|
1670
|
-
let bAncestors = [...$cd5ea4b915021f1d$var$getAncestors(collection, b), b];
|
|
1671
|
-
let firstNonMatchingAncestor = aAncestors.slice(0, bAncestors.length).findIndex((a, i) => a !== bAncestors[i]);
|
|
1672
|
-
if (firstNonMatchingAncestor !== -1) {
|
|
1673
|
-
a = aAncestors[firstNonMatchingAncestor];
|
|
1674
|
-
b = bAncestors[firstNonMatchingAncestor];
|
|
1675
|
-
return a.index - b.index;
|
|
1676
|
-
}
|
|
1677
|
-
if (aAncestors.findIndex((node) => node === b) >= 0) return 1;
|
|
1678
|
-
else if (bAncestors.findIndex((node) => node === a) >= 0) return -1;
|
|
1679
|
-
return -1;
|
|
1680
|
-
}
|
|
1681
|
-
function $cd5ea4b915021f1d$var$getAncestors(collection, node) {
|
|
1682
|
-
let parents = [];
|
|
1683
|
-
let currNode = node;
|
|
1684
|
-
while (currNode?.parentKey != null) {
|
|
1685
|
-
currNode = collection.getItem(currNode.parentKey);
|
|
1686
|
-
if (currNode) parents.unshift(currNode);
|
|
1687
|
-
}
|
|
1688
|
-
return parents;
|
|
1689
|
-
}
|
|
1690
|
-
//#endregion
|
|
1691
|
-
//#region node_modules/react-aria/dist/private/utils/inertValue.mjs
|
|
1692
|
-
function $b24d1bc31a0f941d$export$a9d04c5684123369(value) {
|
|
1693
|
-
const pieces = version.split(".");
|
|
1694
|
-
if (parseInt(pieces[0], 10) >= 19) return value;
|
|
1695
|
-
return value ? "true" : void 0;
|
|
1696
|
-
}
|
|
1697
|
-
//#endregion
|
|
1698
|
-
//#region node_modules/react-stately/dist/private/selection/Selection.mjs
|
|
1699
|
-
var $8b2540e09867b15e$export$52baac22726c72bf = class $8b2540e09867b15e$export$52baac22726c72bf extends Set {
|
|
1700
|
-
constructor(keys, anchorKey, currentKey) {
|
|
1701
|
-
super(keys);
|
|
1702
|
-
if (keys instanceof $8b2540e09867b15e$export$52baac22726c72bf) {
|
|
1703
|
-
this.anchorKey = anchorKey ?? keys.anchorKey;
|
|
1704
|
-
this.currentKey = currentKey ?? keys.currentKey;
|
|
1705
|
-
} else {
|
|
1706
|
-
this.anchorKey = anchorKey ?? null;
|
|
1707
|
-
this.currentKey = currentKey ?? null;
|
|
1708
|
-
}
|
|
1709
|
-
}
|
|
1710
|
-
};
|
|
1711
|
-
//#endregion
|
|
1712
|
-
//#region node_modules/react-stately/dist/private/selection/useMultipleSelectionState.mjs
|
|
1713
|
-
function $60f19cefd567a3e4$var$equalSets(setA, setB) {
|
|
1714
|
-
if (setA.size !== setB.size) return false;
|
|
1715
|
-
for (let item of setA) if (!setB.has(item)) return false;
|
|
1716
|
-
return true;
|
|
1717
|
-
}
|
|
1718
|
-
function $60f19cefd567a3e4$export$253fe78d46329472(props) {
|
|
1719
|
-
let { selectionMode = "none", disallowEmptySelection = false, allowDuplicateSelectionEvents, selectionBehavior: selectionBehaviorProp = "toggle", disabledBehavior = "all" } = props;
|
|
1720
|
-
let isFocusedRef = useRef(false);
|
|
1721
|
-
let [, setFocused] = useState(false);
|
|
1722
|
-
let focusedKeyRef = useRef(null);
|
|
1723
|
-
let childFocusStrategyRef = useRef(null);
|
|
1724
|
-
let [, setFocusedKey] = useState(null);
|
|
1725
|
-
let selectedKeysProp = useMemo(() => $60f19cefd567a3e4$var$convertSelection(props.selectedKeys), [props.selectedKeys]);
|
|
1726
|
-
let defaultSelectedKeys = useMemo(() => $60f19cefd567a3e4$var$convertSelection(props.defaultSelectedKeys, new $8b2540e09867b15e$export$52baac22726c72bf()), [props.defaultSelectedKeys]);
|
|
1727
|
-
let [selectedKeys, setSelectedKeys] = $3e6197669829fe11$export$40bfa8c7b0832715(selectedKeysProp, defaultSelectedKeys, props.onSelectionChange);
|
|
1728
|
-
let disabledKeysProp = useMemo(() => props.disabledKeys ? new Set(props.disabledKeys) : new Set(), [props.disabledKeys]);
|
|
1729
|
-
let [selectionBehavior, setSelectionBehavior] = useState(selectionBehaviorProp);
|
|
1730
|
-
if (selectionBehaviorProp === "replace" && selectionBehavior === "toggle" && typeof selectedKeys === "object" && selectedKeys.size === 0) setSelectionBehavior("replace");
|
|
1731
|
-
let lastSelectionBehavior = useRef(selectionBehaviorProp);
|
|
1732
|
-
useEffect(() => {
|
|
1733
|
-
if (selectionBehaviorProp !== lastSelectionBehavior.current) {
|
|
1734
|
-
setSelectionBehavior(selectionBehaviorProp);
|
|
1735
|
-
lastSelectionBehavior.current = selectionBehaviorProp;
|
|
1736
|
-
}
|
|
1737
|
-
}, [selectionBehaviorProp]);
|
|
1738
|
-
return {
|
|
1739
|
-
selectionMode,
|
|
1740
|
-
disallowEmptySelection,
|
|
1741
|
-
selectionBehavior,
|
|
1742
|
-
setSelectionBehavior,
|
|
1743
|
-
get isFocused() {
|
|
1744
|
-
return isFocusedRef.current;
|
|
1745
|
-
},
|
|
1746
|
-
setFocused(f) {
|
|
1747
|
-
isFocusedRef.current = f;
|
|
1748
|
-
setFocused(f);
|
|
1749
|
-
},
|
|
1750
|
-
get focusedKey() {
|
|
1751
|
-
return focusedKeyRef.current;
|
|
1752
|
-
},
|
|
1753
|
-
get childFocusStrategy() {
|
|
1754
|
-
return childFocusStrategyRef.current;
|
|
1755
|
-
},
|
|
1756
|
-
setFocusedKey(k, childFocusStrategy = "first") {
|
|
1757
|
-
focusedKeyRef.current = k;
|
|
1758
|
-
childFocusStrategyRef.current = childFocusStrategy;
|
|
1759
|
-
setFocusedKey(k);
|
|
1760
|
-
},
|
|
1761
|
-
selectedKeys,
|
|
1762
|
-
setSelectedKeys(keys) {
|
|
1763
|
-
if (allowDuplicateSelectionEvents || !$60f19cefd567a3e4$var$equalSets(keys, selectedKeys)) setSelectedKeys(keys);
|
|
1764
|
-
},
|
|
1765
|
-
disabledKeys: disabledKeysProp,
|
|
1766
|
-
disabledBehavior
|
|
1767
|
-
};
|
|
1768
|
-
}
|
|
1769
|
-
function $60f19cefd567a3e4$var$convertSelection(selection, defaultValue) {
|
|
1770
|
-
if (!selection) return defaultValue;
|
|
1771
|
-
return selection === "all" ? "all" : new $8b2540e09867b15e$export$52baac22726c72bf(selection);
|
|
1772
|
-
}
|
|
1773
|
-
//#endregion
|
|
1774
|
-
//#region node_modules/react-stately/dist/private/selection/SelectionManager.mjs
|
|
1775
|
-
var $4a07ac835f260f78$export$6c8a5aaad13c9852 = class $4a07ac835f260f78$export$6c8a5aaad13c9852 {
|
|
1776
|
-
constructor(collection, state, options) {
|
|
1777
|
-
this.collection = collection;
|
|
1778
|
-
this.state = state;
|
|
1779
|
-
this.allowsCellSelection = options?.allowsCellSelection ?? false;
|
|
1780
|
-
this._isSelectAll = null;
|
|
1781
|
-
this.layoutDelegate = options?.layoutDelegate || null;
|
|
1782
|
-
this.fullCollection = options?.fullCollection || null;
|
|
1783
|
-
}
|
|
1784
|
-
/**
|
|
1785
|
-
* The type of selection that is allowed in the collection.
|
|
1786
|
-
*/ get selectionMode() {
|
|
1787
|
-
return this.state.selectionMode;
|
|
1788
|
-
}
|
|
1789
|
-
/**
|
|
1790
|
-
* Whether the collection allows empty selection.
|
|
1791
|
-
*/ get disallowEmptySelection() {
|
|
1792
|
-
return this.state.disallowEmptySelection;
|
|
1793
|
-
}
|
|
1794
|
-
/**
|
|
1795
|
-
* The selection behavior for the collection.
|
|
1796
|
-
*/ get selectionBehavior() {
|
|
1797
|
-
return this.state.selectionBehavior;
|
|
1798
|
-
}
|
|
1799
|
-
/**
|
|
1800
|
-
* Sets the selection behavior for the collection.
|
|
1801
|
-
*/ setSelectionBehavior(selectionBehavior) {
|
|
1802
|
-
this.state.setSelectionBehavior(selectionBehavior);
|
|
1803
|
-
}
|
|
1804
|
-
/**
|
|
1805
|
-
* Whether the collection is currently focused.
|
|
1806
|
-
*/ get isFocused() {
|
|
1807
|
-
return this.state.isFocused;
|
|
1808
|
-
}
|
|
1809
|
-
/**
|
|
1810
|
-
* Sets whether the collection is focused.
|
|
1811
|
-
*/ setFocused(isFocused) {
|
|
1812
|
-
this.state.setFocused(isFocused);
|
|
1813
|
-
}
|
|
1814
|
-
/**
|
|
1815
|
-
* The current focused key in the collection.
|
|
1816
|
-
*/ get focusedKey() {
|
|
1817
|
-
return this.state.focusedKey;
|
|
1818
|
-
}
|
|
1819
|
-
/** Whether the first or last child of the focused key should receive focus. */ get childFocusStrategy() {
|
|
1820
|
-
return this.state.childFocusStrategy;
|
|
1821
|
-
}
|
|
1822
|
-
/**
|
|
1823
|
-
* Sets the focused key.
|
|
1824
|
-
*/ setFocusedKey(key, childFocusStrategy) {
|
|
1825
|
-
if (key == null || this.collection.getItem(key)) this.state.setFocusedKey(key, childFocusStrategy);
|
|
1826
|
-
}
|
|
1827
|
-
/**
|
|
1828
|
-
* The currently selected keys in the collection.
|
|
1829
|
-
*/ get selectedKeys() {
|
|
1830
|
-
return this.state.selectedKeys === "all" ? new Set(this.getSelectAllKeys()) : this.state.selectedKeys;
|
|
1831
|
-
}
|
|
1832
|
-
/**
|
|
1833
|
-
* The raw selection value for the collection.
|
|
1834
|
-
* Either 'all' for select all, or a set of keys.
|
|
1835
|
-
*/ get rawSelection() {
|
|
1836
|
-
return this.state.selectedKeys;
|
|
1837
|
-
}
|
|
1838
|
-
/**
|
|
1839
|
-
* Returns whether a key is selected.
|
|
1840
|
-
*/ isSelected(key) {
|
|
1841
|
-
if (this.state.selectionMode === "none") return false;
|
|
1842
|
-
let mappedKey = this.getKey(key);
|
|
1843
|
-
if (mappedKey == null) return false;
|
|
1844
|
-
return this.state.selectedKeys === "all" ? this.canSelectItem(mappedKey) : this.state.selectedKeys.has(mappedKey);
|
|
1845
|
-
}
|
|
1846
|
-
/**
|
|
1847
|
-
* Whether the selection is empty.
|
|
1848
|
-
*/ get isEmpty() {
|
|
1849
|
-
return this.state.selectedKeys !== "all" && this.state.selectedKeys.size === 0;
|
|
1850
|
-
}
|
|
1851
|
-
/**
|
|
1852
|
-
* Whether all items in the collection are selected.
|
|
1853
|
-
*/ get isSelectAll() {
|
|
1854
|
-
if (this.isEmpty) return false;
|
|
1855
|
-
if (this.state.selectedKeys === "all") return true;
|
|
1856
|
-
if (this._isSelectAll != null) return this._isSelectAll;
|
|
1857
|
-
let allKeys = this.getSelectAllKeys();
|
|
1858
|
-
let selectedKeys = this.state.selectedKeys;
|
|
1859
|
-
this._isSelectAll = allKeys.every((k) => selectedKeys.has(k));
|
|
1860
|
-
return this._isSelectAll;
|
|
1861
|
-
}
|
|
1862
|
-
get firstSelectedKey() {
|
|
1863
|
-
let first = null;
|
|
1864
|
-
for (let key of this.state.selectedKeys) {
|
|
1865
|
-
let item = this.collection.getItem(key);
|
|
1866
|
-
if (!first || item && $cd5ea4b915021f1d$export$8c434b3a7a4dad6(this.collection, item, first) < 0) first = item;
|
|
1867
|
-
}
|
|
1868
|
-
return first?.key ?? null;
|
|
1869
|
-
}
|
|
1870
|
-
get lastSelectedKey() {
|
|
1871
|
-
let last = null;
|
|
1872
|
-
for (let key of this.state.selectedKeys) {
|
|
1873
|
-
let item = this.collection.getItem(key);
|
|
1874
|
-
if (!last || item && $cd5ea4b915021f1d$export$8c434b3a7a4dad6(this.collection, item, last) > 0) last = item;
|
|
1875
|
-
}
|
|
1876
|
-
return last?.key ?? null;
|
|
1877
|
-
}
|
|
1878
|
-
get disabledKeys() {
|
|
1879
|
-
return this.state.disabledKeys;
|
|
1880
|
-
}
|
|
1881
|
-
get disabledBehavior() {
|
|
1882
|
-
return this.state.disabledBehavior;
|
|
1883
|
-
}
|
|
1884
|
-
/**
|
|
1885
|
-
* Extends the selection to the given key.
|
|
1886
|
-
*/ extendSelection(toKey) {
|
|
1887
|
-
if (this.selectionMode === "none") return;
|
|
1888
|
-
if (this.selectionMode === "single") {
|
|
1889
|
-
this.replaceSelection(toKey);
|
|
1890
|
-
return;
|
|
1891
|
-
}
|
|
1892
|
-
let mappedToKey = this.getKey(toKey);
|
|
1893
|
-
if (mappedToKey == null) return;
|
|
1894
|
-
let selection;
|
|
1895
|
-
if (this.state.selectedKeys === "all") selection = new $8b2540e09867b15e$export$52baac22726c72bf([mappedToKey], mappedToKey, mappedToKey);
|
|
1896
|
-
else {
|
|
1897
|
-
let selectedKeys = this.state.selectedKeys;
|
|
1898
|
-
let anchorKey = selectedKeys.anchorKey ?? mappedToKey;
|
|
1899
|
-
selection = new $8b2540e09867b15e$export$52baac22726c72bf(selectedKeys, anchorKey, mappedToKey);
|
|
1900
|
-
for (let key of this.getKeyRange(anchorKey, selectedKeys.currentKey ?? mappedToKey)) selection.delete(key);
|
|
1901
|
-
for (let key of this.getKeyRange(mappedToKey, anchorKey)) if (this.canSelectItem(key)) selection.add(key);
|
|
1902
|
-
}
|
|
1903
|
-
this.state.setSelectedKeys(selection);
|
|
1904
|
-
}
|
|
1905
|
-
getKeyRange(from, to) {
|
|
1906
|
-
let fromItem = this.collection.getItem(from);
|
|
1907
|
-
let toItem = this.collection.getItem(to);
|
|
1908
|
-
if (fromItem && toItem) {
|
|
1909
|
-
if ($cd5ea4b915021f1d$export$8c434b3a7a4dad6(this.collection, fromItem, toItem) <= 0) return this.getKeyRangeInternal(from, to);
|
|
1910
|
-
return this.getKeyRangeInternal(to, from);
|
|
1911
|
-
}
|
|
1912
|
-
return [];
|
|
1913
|
-
}
|
|
1914
|
-
getKeyRangeInternal(from, to) {
|
|
1915
|
-
if (this.layoutDelegate?.getKeyRange) return this.layoutDelegate.getKeyRange(from, to);
|
|
1916
|
-
let keys = [];
|
|
1917
|
-
let key = from;
|
|
1918
|
-
while (key != null) {
|
|
1919
|
-
let item = this.collection.getItem(key);
|
|
1920
|
-
if (item && (item.type === "item" || item.type === "cell" && this.allowsCellSelection)) keys.push(key);
|
|
1921
|
-
if (key === to) return keys;
|
|
1922
|
-
key = this.collection.getKeyAfter(key);
|
|
1923
|
-
}
|
|
1924
|
-
return [];
|
|
1925
|
-
}
|
|
1926
|
-
getKey(key) {
|
|
1927
|
-
let item = this.collection.getItem(key);
|
|
1928
|
-
if (!item) return key;
|
|
1929
|
-
if (item.type === "cell" && this.allowsCellSelection) return key;
|
|
1930
|
-
while (item && item.type !== "item" && item.parentKey != null) item = this.collection.getItem(item.parentKey);
|
|
1931
|
-
if (!item || item.type !== "item") return null;
|
|
1932
|
-
return item.key;
|
|
1933
|
-
}
|
|
1934
|
-
/**
|
|
1935
|
-
* Toggles whether the given key is selected.
|
|
1936
|
-
*/ toggleSelection(key) {
|
|
1937
|
-
if (this.selectionMode === "none") return;
|
|
1938
|
-
if (this.selectionMode === "single" && !this.isSelected(key)) {
|
|
1939
|
-
this.replaceSelection(key);
|
|
1940
|
-
return;
|
|
1941
|
-
}
|
|
1942
|
-
let mappedKey = this.getKey(key);
|
|
1943
|
-
if (mappedKey == null) return;
|
|
1944
|
-
let keys = new $8b2540e09867b15e$export$52baac22726c72bf(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
|
|
1945
|
-
if (keys.has(mappedKey)) keys.delete(mappedKey);
|
|
1946
|
-
else if (this.canSelectItem(mappedKey)) {
|
|
1947
|
-
keys.add(mappedKey);
|
|
1948
|
-
keys.anchorKey = mappedKey;
|
|
1949
|
-
keys.currentKey = mappedKey;
|
|
1950
|
-
}
|
|
1951
|
-
if (this.disallowEmptySelection && keys.size === 0) return;
|
|
1952
|
-
this.state.setSelectedKeys(keys);
|
|
1953
|
-
}
|
|
1954
|
-
/**
|
|
1955
|
-
* Replaces the selection with only the given key.
|
|
1956
|
-
*/ replaceSelection(key) {
|
|
1957
|
-
if (this.selectionMode === "none") return;
|
|
1958
|
-
let mappedKey = this.getKey(key);
|
|
1959
|
-
if (mappedKey == null) return;
|
|
1960
|
-
let selection = this.canSelectItem(mappedKey) ? new $8b2540e09867b15e$export$52baac22726c72bf([mappedKey], mappedKey, mappedKey) : new $8b2540e09867b15e$export$52baac22726c72bf();
|
|
1961
|
-
this.state.setSelectedKeys(selection);
|
|
1962
|
-
}
|
|
1963
|
-
/**
|
|
1964
|
-
* Replaces the selection with the given keys.
|
|
1965
|
-
*/ setSelectedKeys(keys) {
|
|
1966
|
-
if (this.selectionMode === "none") return;
|
|
1967
|
-
let selection = new $8b2540e09867b15e$export$52baac22726c72bf();
|
|
1968
|
-
for (let key of keys) {
|
|
1969
|
-
let mappedKey = this.getKey(key);
|
|
1970
|
-
if (mappedKey != null) {
|
|
1971
|
-
selection.add(mappedKey);
|
|
1972
|
-
if (this.selectionMode === "single") break;
|
|
1973
|
-
}
|
|
1974
|
-
}
|
|
1975
|
-
this.state.setSelectedKeys(selection);
|
|
1976
|
-
}
|
|
1977
|
-
getSelectAllKeys() {
|
|
1978
|
-
let collection = this.fullCollection ?? this.collection;
|
|
1979
|
-
let keys = [];
|
|
1980
|
-
let addKeys = (key) => {
|
|
1981
|
-
while (key != null) {
|
|
1982
|
-
if (this.canSelectItemIn(key, collection)) {
|
|
1983
|
-
let item = collection.getItem(key);
|
|
1984
|
-
if (item?.type === "item") keys.push(key);
|
|
1985
|
-
if (item?.hasChildNodes && (this.allowsCellSelection || item.type !== "item")) addKeys($cd5ea4b915021f1d$export$fbdeaa6a76694f71($cd5ea4b915021f1d$export$1005530eda016c13(item, collection))?.key ?? null);
|
|
1986
|
-
}
|
|
1987
|
-
key = collection.getKeyAfter(key);
|
|
1988
|
-
}
|
|
1989
|
-
};
|
|
1990
|
-
addKeys(collection.getFirstKey());
|
|
1991
|
-
return keys;
|
|
1992
|
-
}
|
|
1993
|
-
/**
|
|
1994
|
-
* Selects all items in the collection.
|
|
1995
|
-
*/ selectAll() {
|
|
1996
|
-
if (!this.isSelectAll && this.selectionMode === "multiple") this.state.setSelectedKeys("all");
|
|
1997
|
-
}
|
|
1998
|
-
/**
|
|
1999
|
-
* Removes all keys from the selection.
|
|
2000
|
-
*/ clearSelection() {
|
|
2001
|
-
if (!this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0)) this.state.setSelectedKeys(new $8b2540e09867b15e$export$52baac22726c72bf());
|
|
2002
|
-
}
|
|
2003
|
-
/**
|
|
2004
|
-
* Toggles between select all and an empty selection.
|
|
2005
|
-
*/ toggleSelectAll() {
|
|
2006
|
-
if (this.isSelectAll) this.clearSelection();
|
|
2007
|
-
else this.selectAll();
|
|
2008
|
-
}
|
|
2009
|
-
select(key, e) {
|
|
2010
|
-
if (this.selectionMode === "none") return;
|
|
2011
|
-
if (this.selectionMode === "single") {
|
|
2012
|
-
if (this.isSelected(key) && !this.disallowEmptySelection) this.toggleSelection(key);
|
|
2013
|
-
else this.replaceSelection(key);
|
|
2014
|
-
} else if (this.selectionBehavior === "toggle" || e && (e.pointerType === "touch" || e.pointerType === "virtual")) this.toggleSelection(key);
|
|
2015
|
-
else this.replaceSelection(key);
|
|
2016
|
-
}
|
|
2017
|
-
/**
|
|
2018
|
-
* Returns whether the current selection is equal to the given selection.
|
|
2019
|
-
*/ isSelectionEqual(selection) {
|
|
2020
|
-
if (selection === this.state.selectedKeys) return true;
|
|
2021
|
-
let selectedKeys = this.selectedKeys;
|
|
2022
|
-
if (selection.size !== selectedKeys.size) return false;
|
|
2023
|
-
for (let key of selection) if (!selectedKeys.has(key)) return false;
|
|
2024
|
-
for (let key of selectedKeys) if (!selection.has(key)) return false;
|
|
2025
|
-
return true;
|
|
2026
|
-
}
|
|
2027
|
-
canSelectItem(key) {
|
|
2028
|
-
return this.canSelectItemIn(key, this.collection);
|
|
2029
|
-
}
|
|
2030
|
-
canSelectItemIn(key, collection) {
|
|
2031
|
-
if (this.state.selectionMode === "none" || this.state.disabledKeys.has(key)) return false;
|
|
2032
|
-
let item = collection.getItem(key);
|
|
2033
|
-
if (!item || item?.props?.isDisabled || item.type === "cell" && !this.allowsCellSelection) return false;
|
|
2034
|
-
return true;
|
|
2035
|
-
}
|
|
2036
|
-
isDisabled(key) {
|
|
2037
|
-
let item = this.collection.getItem(key);
|
|
2038
|
-
return this.state.disabledBehavior === "all" && (this.state.disabledKeys.has(key) || !!item?.props?.isDisabled) && item?.props?.disabledBehavior !== "selection";
|
|
2039
|
-
}
|
|
2040
|
-
isLink(key) {
|
|
2041
|
-
return !!this.collection.getItem(key)?.props?.href;
|
|
2042
|
-
}
|
|
2043
|
-
getItemProps(key) {
|
|
2044
|
-
return this.collection.getItem(key)?.props;
|
|
2045
|
-
}
|
|
2046
|
-
withCollection(collection) {
|
|
2047
|
-
return new $4a07ac835f260f78$export$6c8a5aaad13c9852(collection, this.state, {
|
|
2048
|
-
allowsCellSelection: this.allowsCellSelection,
|
|
2049
|
-
layoutDelegate: this.layoutDelegate || void 0,
|
|
2050
|
-
fullCollection: this.fullCollection ?? this.collection
|
|
2051
|
-
});
|
|
2052
|
-
}
|
|
2053
|
-
};
|
|
2054
|
-
//#endregion
|
|
2055
|
-
//#region node_modules/react-stately/dist/private/collections/CollectionBuilder.mjs
|
|
2056
|
-
var $bda7a7e55e1ff206$export$bf788dd355e3a401 = class {
|
|
2057
|
-
build(props, context) {
|
|
2058
|
-
this.context = context;
|
|
2059
|
-
return $bda7a7e55e1ff206$var$iterable(() => this.iterateCollection(props));
|
|
2060
|
-
}
|
|
2061
|
-
*iterateCollection(props) {
|
|
2062
|
-
let { children, items } = props;
|
|
2063
|
-
if ($3ARPR$react.isValidElement(children) && children.type === $3ARPR$react.Fragment) yield* this.iterateCollection({
|
|
2064
|
-
children: children.props.children,
|
|
2065
|
-
items
|
|
2066
|
-
});
|
|
2067
|
-
else if (typeof children === "function") {
|
|
2068
|
-
if (!items) throw new Error("props.children was a function but props.items is missing");
|
|
2069
|
-
let index = 0;
|
|
2070
|
-
for (let item of items) {
|
|
2071
|
-
yield* this.getFullNode({
|
|
2072
|
-
value: item,
|
|
2073
|
-
index
|
|
2074
|
-
}, { renderer: children });
|
|
2075
|
-
index++;
|
|
2076
|
-
}
|
|
2077
|
-
} else {
|
|
2078
|
-
let items = [];
|
|
2079
|
-
$3ARPR$react.Children.forEach(children, (child) => {
|
|
2080
|
-
if (child) items.push(child);
|
|
2081
|
-
});
|
|
2082
|
-
let index = 0;
|
|
2083
|
-
for (let item of items) {
|
|
2084
|
-
let nodes = this.getFullNode({
|
|
2085
|
-
element: item,
|
|
2086
|
-
index
|
|
2087
|
-
}, {});
|
|
2088
|
-
for (let node of nodes) {
|
|
2089
|
-
index++;
|
|
2090
|
-
yield node;
|
|
2091
|
-
}
|
|
2092
|
-
}
|
|
2093
|
-
}
|
|
2094
|
-
}
|
|
2095
|
-
getKey(item, partialNode, state, parentKey) {
|
|
2096
|
-
if (item.key != null) return item.key;
|
|
2097
|
-
if (partialNode.type === "cell" && partialNode.key != null) return `${parentKey}${partialNode.key}`;
|
|
2098
|
-
let v = partialNode.value;
|
|
2099
|
-
if (v != null) {
|
|
2100
|
-
let key = v.key ?? v.id;
|
|
2101
|
-
if (key == null) throw new Error("No key found for item");
|
|
2102
|
-
return key;
|
|
2103
|
-
}
|
|
2104
|
-
return parentKey ? `${parentKey}.${partialNode.index}` : `$.${partialNode.index}`;
|
|
2105
|
-
}
|
|
2106
|
-
getChildState(state, partialNode) {
|
|
2107
|
-
return { renderer: partialNode.renderer || state.renderer };
|
|
2108
|
-
}
|
|
2109
|
-
*getFullNode(partialNode, state, parentKey, parentNode) {
|
|
2110
|
-
if ($3ARPR$react.isValidElement(partialNode.element) && partialNode.element.type === $3ARPR$react.Fragment) {
|
|
2111
|
-
let children = [];
|
|
2112
|
-
$3ARPR$react.Children.forEach(partialNode.element.props.children, (child) => {
|
|
2113
|
-
children.push(child);
|
|
2114
|
-
});
|
|
2115
|
-
let index = partialNode.index ?? 0;
|
|
2116
|
-
for (const child of children) yield* this.getFullNode({
|
|
2117
|
-
element: child,
|
|
2118
|
-
index: index++
|
|
2119
|
-
}, state, parentKey, parentNode);
|
|
2120
|
-
return;
|
|
2121
|
-
}
|
|
2122
|
-
let element = partialNode.element;
|
|
2123
|
-
if (!element && partialNode.value && state && state.renderer) {
|
|
2124
|
-
let cached = this.cache.get(partialNode.value);
|
|
2125
|
-
if (cached && (!cached.shouldInvalidate || !cached.shouldInvalidate(this.context))) {
|
|
2126
|
-
cached.index = partialNode.index;
|
|
2127
|
-
cached.parentKey = parentNode ? parentNode.key : null;
|
|
2128
|
-
yield cached;
|
|
2129
|
-
return;
|
|
2130
|
-
}
|
|
2131
|
-
element = state.renderer(partialNode.value);
|
|
2132
|
-
}
|
|
2133
|
-
if ($3ARPR$react.isValidElement(element)) {
|
|
2134
|
-
let type = element.type;
|
|
2135
|
-
if (typeof type !== "function" && typeof type.getCollectionNode !== "function") {
|
|
2136
|
-
let name = element.type;
|
|
2137
|
-
throw new Error(`Unknown element <${name}> in collection.`);
|
|
2138
|
-
}
|
|
2139
|
-
let childNodes = type.getCollectionNode(element.props, this.context);
|
|
2140
|
-
let index = partialNode.index ?? 0;
|
|
2141
|
-
let result = childNodes.next();
|
|
2142
|
-
while (!result.done && result.value) {
|
|
2143
|
-
let childNode = result.value;
|
|
2144
|
-
partialNode.index = index;
|
|
2145
|
-
let nodeKey = childNode.key ?? null;
|
|
2146
|
-
if (nodeKey == null) nodeKey = childNode.element ? null : this.getKey(element, partialNode, state, parentKey);
|
|
2147
|
-
let children = [...this.getFullNode({
|
|
2148
|
-
...childNode,
|
|
2149
|
-
key: nodeKey,
|
|
2150
|
-
index,
|
|
2151
|
-
wrapper: $bda7a7e55e1ff206$var$compose(partialNode.wrapper, childNode.wrapper)
|
|
2152
|
-
}, this.getChildState(state, childNode), parentKey ? `${parentKey}${element.key}` : element.key, parentNode)];
|
|
2153
|
-
for (let node of children) {
|
|
2154
|
-
node.value = childNode.value ?? partialNode.value ?? null;
|
|
2155
|
-
if (node.value) this.cache.set(node.value, node);
|
|
2156
|
-
if (partialNode.type && node.type !== partialNode.type) throw new Error(`Unsupported type <${$bda7a7e55e1ff206$var$capitalize(node.type)}> in <${$bda7a7e55e1ff206$var$capitalize(parentNode?.type ?? "unknown parent type")}>. Only <${$bda7a7e55e1ff206$var$capitalize(partialNode.type)}> is supported.`);
|
|
2157
|
-
index++;
|
|
2158
|
-
yield node;
|
|
2159
|
-
}
|
|
2160
|
-
result = childNodes.next(children);
|
|
2161
|
-
}
|
|
2162
|
-
return;
|
|
2163
|
-
}
|
|
2164
|
-
if (partialNode.key == null || partialNode.type == null) return;
|
|
2165
|
-
let builder = this;
|
|
2166
|
-
let node = {
|
|
2167
|
-
type: partialNode.type,
|
|
2168
|
-
props: partialNode.props,
|
|
2169
|
-
key: partialNode.key,
|
|
2170
|
-
parentKey: parentNode ? parentNode.key : null,
|
|
2171
|
-
value: partialNode.value ?? null,
|
|
2172
|
-
level: (parentNode?.level ?? 0) + (parentNode?.type === "item" ? 1 : 0),
|
|
2173
|
-
index: partialNode.index,
|
|
2174
|
-
rendered: partialNode.rendered,
|
|
2175
|
-
textValue: partialNode.textValue ?? "",
|
|
2176
|
-
"aria-label": partialNode["aria-label"],
|
|
2177
|
-
wrapper: partialNode.wrapper,
|
|
2178
|
-
shouldInvalidate: partialNode.shouldInvalidate,
|
|
2179
|
-
hasChildNodes: partialNode.hasChildNodes || false,
|
|
2180
|
-
childNodes: $bda7a7e55e1ff206$var$iterable(function* () {
|
|
2181
|
-
if (!partialNode.hasChildNodes || !partialNode.childNodes) return;
|
|
2182
|
-
let index = 0;
|
|
2183
|
-
for (let child of partialNode.childNodes()) {
|
|
2184
|
-
if (child.key != null) child.key = `${node.key}${child.key}`;
|
|
2185
|
-
let nodes = builder.getFullNode({
|
|
2186
|
-
...child,
|
|
2187
|
-
index
|
|
2188
|
-
}, builder.getChildState(state, child), node.key, node);
|
|
2189
|
-
for (let node of nodes) {
|
|
2190
|
-
index++;
|
|
2191
|
-
yield node;
|
|
2192
|
-
}
|
|
2193
|
-
}
|
|
2194
|
-
})
|
|
2195
|
-
};
|
|
2196
|
-
yield node;
|
|
2197
|
-
}
|
|
2198
|
-
constructor() {
|
|
2199
|
-
this.cache = new WeakMap();
|
|
2200
|
-
}
|
|
2201
|
-
};
|
|
2202
|
-
function $bda7a7e55e1ff206$var$iterable(iterator) {
|
|
2203
|
-
let cache = [];
|
|
2204
|
-
let iterable = null;
|
|
2205
|
-
return { *[Symbol.iterator]() {
|
|
2206
|
-
for (let item of cache) yield item;
|
|
2207
|
-
if (!iterable) iterable = iterator();
|
|
2208
|
-
for (let item of iterable) {
|
|
2209
|
-
cache.push(item);
|
|
2210
|
-
yield item;
|
|
2211
|
-
}
|
|
2212
|
-
} };
|
|
2213
|
-
}
|
|
2214
|
-
function $bda7a7e55e1ff206$var$compose(outer, inner) {
|
|
2215
|
-
if (outer && inner) return (element) => outer(inner(element));
|
|
2216
|
-
if (outer) return outer;
|
|
2217
|
-
if (inner) return inner;
|
|
2218
|
-
}
|
|
2219
|
-
function $bda7a7e55e1ff206$var$capitalize(str) {
|
|
2220
|
-
return str[0].toUpperCase() + str.slice(1);
|
|
2221
|
-
}
|
|
2222
|
-
//#endregion
|
|
2223
|
-
//#region node_modules/react-stately/dist/private/collections/useCollection.mjs
|
|
2224
|
-
function $d03379b88399b8c5$export$6cd28814d92fa9c9(props, factory, context) {
|
|
2225
|
-
let builder = useMemo(() => new $bda7a7e55e1ff206$export$bf788dd355e3a401(), []);
|
|
2226
|
-
let { children, items, collection } = props;
|
|
2227
|
-
return useMemo(() => {
|
|
2228
|
-
if (collection) return collection;
|
|
2229
|
-
return factory(builder.build({
|
|
2230
|
-
children,
|
|
2231
|
-
items
|
|
2232
|
-
}, context));
|
|
2233
|
-
}, [
|
|
2234
|
-
builder,
|
|
2235
|
-
children,
|
|
2236
|
-
items,
|
|
2237
|
-
collection,
|
|
2238
|
-
context,
|
|
2239
|
-
factory
|
|
2240
|
-
]);
|
|
2241
|
-
}
|
|
2242
|
-
//#endregion
|
|
2243
|
-
export { $6f0c29017aeec335$export$d68d59712b04d9d1 as C, $6f0c29017aeec335$export$8258a0665a675899 as S, $42ceafc619f9c3ba$export$bf788dd355e3a401 as _, $cd5ea4b915021f1d$export$1005530eda016c13 as a, $6f0c29017aeec335$export$437f11dc9b403b78 as b, $d667c2af82d35a98$export$d6daf82dcd84e87c as c, $901761b40e390936$export$2bb74740c4e19def as d, $263ab7fc0f95ccdb$export$4feb769f8ddf26c5 as f, $42ceafc619f9c3ba$export$18af5c7a9e9b3664 as g, $263ab7fc0f95ccdb$export$d40e14dec8b060a8 as h, $b24d1bc31a0f941d$export$a9d04c5684123369 as i, $f5a4a9a3486154da$export$e32c88dfddc6e1d8 as l, $263ab7fc0f95ccdb$export$a164736487e3f0ae as m, $4a07ac835f260f78$export$6c8a5aaad13c9852 as n, $f6ba6936bfd098a0$export$ecf600387e221c37 as o, $263ab7fc0f95ccdb$export$90e00781bc59d8f9 as p, $60f19cefd567a3e4$export$253fe78d46329472 as r, $7b01448eaad0fe7c$export$c24ed0104d07eab9 as s, $d03379b88399b8c5$export$6cd28814d92fa9c9 as t, $22bbea12c2567021$export$c3d8340acf92597f as u, $42ceafc619f9c3ba$export$e953bb1cd0f19726 as v, $6f0c29017aeec335$export$fd11f34e1d07f134 as w, $6f0c29017aeec335$export$5ae2504e948afce5 as x, $42ceafc619f9c3ba$export$fb8073518f34e6ec as y };
|