@eightshift/ui-components 8.5.0 → 9.0.0-beta.2
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 +73 -4
- 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 +17 -24
- 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-CCtgOh0o.js +0 -583
- package/dist/checkbox-d1lNvf65.js +0 -333
- package/dist/clsx-DQoRUQAf.js +0 -16
- package/dist/color-swatch-BstCWUIZ.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-D2zB_7Wi.js +0 -1650
- package/dist/input-field-DVNpRfYE.js +0 -278
- package/dist/jsx-svg-DRwJdRpA.js +0 -11153
- package/dist/keyboard-DwWaJveG.js +0 -205
- package/dist/link-input-XaVrI3wP.js +0 -1865
- package/dist/modal-BXSwfGkf.js +0 -349
- package/dist/number-BeC0ySe4.js +0 -41
- package/dist/number-picker-DLLqEAsq.js +0 -257
- package/dist/react-c-t8odpE.js +0 -10967
- package/dist/shared-CsO_if0Q.js +0 -1030
- package/dist/solid-color-picker-1QabIOpX.js +0 -1423
- package/dist/sprintf-xJRAt4p0.js +0 -129
- package/dist/switch-CfgDFjqQ.js +0 -297
- package/dist/tabs-ORp17BEr.js +0 -1056
- package/dist/text-helpers-QrwKKaOh.js +0 -254
- package/dist/textSelection-BYhA9uWK.js +0 -45
- package/dist/toggle-button-B0nKYFlk.js +0 -463
- package/dist/tooltip-Dxr7aiIX.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
package/README.md
CHANGED
|
@@ -13,6 +13,28 @@ Built using [React Aria components](https://react-spectrum.adobe.com/react-aria/
|
|
|
13
13
|
2. `bun install`
|
|
14
14
|
3. `bun start` to run the example
|
|
15
15
|
|
|
16
|
+
The preview loads its component styles through [`src/preview.css`](./src/preview.css). Use that entry point rather than importing [`lib/index.css`](./lib/index.css) directly: the shared stylesheet needs the Tailwind `es:` prefix configured by the library style entry point.
|
|
17
|
+
|
|
18
|
+
## Component documentation
|
|
19
|
+
|
|
20
|
+
- [Disclosure](./docs/components/disclosure.md) — standalone panels, grouping, and migration from `Expandable`.
|
|
21
|
+
- [Draggable](./docs/components/draggable.md) — sortable custom layouts and wrapper-free items.
|
|
22
|
+
- [FilePickerShell](./docs/components/file-picker-shell.md) — file and image previews.
|
|
23
|
+
- [Input](./docs/components/input.md) — text, search, multiline, numeric, and link inputs.
|
|
24
|
+
- [List](./docs/components/list.md) — editable and reorderable lists.
|
|
25
|
+
- [OptionPicker](./docs/components/option-picker.md) — variants, usage, and migration from `OptionSelect`.
|
|
26
|
+
- [Button](./docs/components/button.md) — variants, tints, and glass overlays.
|
|
27
|
+
- [Popover](./docs/components/popover.md) — built-in triggers and custom anchoring.
|
|
28
|
+
- [Tabs](./docs/components/tabs.md) — six designs with fixed orientations.
|
|
29
|
+
|
|
30
|
+
## Migration prompts
|
|
31
|
+
|
|
32
|
+
- [v8.x → v9](./docs/migrations/v8-to-v9.md) — a copyable prompt for migrating a consumer project, including component APIs, styles, and verification.
|
|
33
|
+
- [Button](./docs/migrations/button.md) — replace legacy types with variants, tints, or `Button.Glass`.
|
|
34
|
+
- [ComponentToggle](./docs/migrations/component-toggle.md) — use a `Toggle` and conditionally render the settings.
|
|
35
|
+
- [ContainerPanel](./docs/migrations/container-panel.md) — migrate layout-only usages and review toggled or collapsible panels.
|
|
36
|
+
- [ResponsiveLegacy](./docs/migrations/responsive-legacy.md) — migrate saved breakpoint values to `Responsive`.
|
|
37
|
+
|
|
16
38
|
## Linting and formatting
|
|
17
39
|
|
|
18
40
|
Formatting requires Bun 1.4.4 or newer. Settings live in `bunfig.toml`; no standalone formatter is needed. `quoteProps = "preserve"` keeps intentional property-key quotes, preserving compatibility with identifier-based lint rules.
|
|
@@ -25,13 +47,60 @@ Bun loads `lib/style.css` to sort classes using the `es:` prefix and project uti
|
|
|
25
47
|
|
|
26
48
|
Non-Tailwind theme and SVG marker classes are explicitly allowed by `better-tailwindcss/no-unknown-classes` in `oxlint.config.ts`. Extend that list only for classes defined or consumed by the project, not for unknown `es:` utilities.
|
|
27
49
|
|
|
28
|
-
##
|
|
50
|
+
## Spacing
|
|
51
|
+
|
|
52
|
+
The `es:` Tailwind utilities use a 1px spacing unit. For example, `es:p-16` sets 16px of padding. When migrating from the old scale, multiply numeric spacing values by four (`es:gap-4` → `es:gap-16`, `es:p-1.5` → `es:p-6`). Leave fractions like `es:w-1/2`, explicit values like `es:p-[1rem]`, and non-spacing utilities unchanged. Use an explicit `rem` value if the size should still scale with the root font size.
|
|
53
|
+
|
|
54
|
+
## Corner radius
|
|
55
|
+
|
|
56
|
+
The `es:rounded-*` scale uses numbers that match pixels at a 16px root font size. Replace the old names as follows: `xs` → `2`, `sm` → `4`, `md` → `6`, `lg` → `8`, `xl` → `12`, `2xl` → `16`, `3xl` → `24`, and `4xl` → `32`. The old `rounded-14` was an 18px alias; use `rounded-18`. The same mapping applies to directional utilities, such as `es:rounded-t-md` → `es:rounded-t-6`. `rounded-none`, `rounded-full`, and arbitrary values still work.
|
|
57
|
+
|
|
58
|
+
## Color themes
|
|
59
|
+
|
|
60
|
+
The two theme scales are `color-100` through `color-1600` and `gray-100` through `gray-1600`, in steps of 100. Use them with Tailwind utilities such as `es:bg-color-100` and `es:text-gray-1200`. Both scales follow the active palette and system color scheme. Add `es-uic-light` or `es-uic-dark` to `<html>` to force a mode for the whole page, or to a container to override it locally. Use neither class to follow the system preference at the page level. Most portaled overlays inherit from their portal container; use `<html>` to cover overlays outside a locally themed subtree. Tooltips are an exception: they pick up the anchor’s color scheme when they open, and primary tooltips also pick up its tint. Secondary tooltips stay neutral.
|
|
61
|
+
|
|
62
|
+
All existing `es-uic-theme-*` presets remain available. The default uses React Aria’s turquoise seed, and Purple uses its indigo seed. Most other colored presets use the corresponding React Aria seeds; Mist, Mauve, Olive, and Slate keep their low-chroma Tailwind seeds. Both scales use all 16 React Aria lightness stops. The first five colored stops scale chroma by the seed’s lightness; the remaining stops use the seed’s chroma directly. The `gray-*` scale and the monochrome preset stay neutral.
|
|
63
|
+
|
|
64
|
+
When migrating, replace `accent-*` with `color-*` and both `secondary-*` and `surface-*` with `gray-*`, using this shade mapping:
|
|
29
65
|
|
|
30
|
-
|
|
66
|
+
| Old shade | 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 950 |
|
|
67
|
+
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
|
|
68
|
+
| New shade | 100 | 200 | 300 | 400 | 500 | 900 | 1000 | 1100 | 1200 | 1400 | 1600 |
|
|
69
|
+
|
|
70
|
+
For a custom palette, apply `es-uic-theme-custom` and set `--es-uic-tint` on the same element. The ramp uses the seed’s hue and chroma, and its lightness moderates the first five stops:
|
|
71
|
+
|
|
72
|
+
```html
|
|
73
|
+
<div class="es-uic-theme-custom" style="--es-uic-tint: oklch(0.6 0.16 125)">
|
|
74
|
+
<!-- Accent utilities use hue 125. -->
|
|
75
|
+
</div>
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Use `es:bg-canvas` and `es:text-ink` for adaptive surfaces and text. Literal utilities such as `es:bg-white` remain the same in both modes.
|
|
79
|
+
|
|
80
|
+
## WordPress style isolation
|
|
81
|
+
|
|
82
|
+
`styles-editor` and `styles-admin` apply the reset only inside elements with the literal `es:css-reset` class. Put it on the Eightshift mount, not on `body` or a wrapper shared with WordPress controls. If overlays render outside the mount, use `PortalProvider` with a dedicated `portalElement` carrying the same class. The admin stylesheet no longer changes the page background when a reset wrapper is present; set a background on your mount in your app stylesheet if needed.
|
|
83
|
+
|
|
84
|
+
The standalone `styles` export still applies a page-wide reset. The shared root color scheme is unchanged.
|
|
85
|
+
|
|
86
|
+
## UI font
|
|
87
|
+
|
|
88
|
+
The library defaults to system fonts. To enable [Allo](https://allo.joshpuckett.me/) for sans-serif text or [DM Mono](https://fontsource.org/fonts/dm-mono) for monospace text, import either stylesheet once in the host app:
|
|
89
|
+
|
|
90
|
+
```ts
|
|
91
|
+
import '@eightshift/ui-components/font-allo';
|
|
92
|
+
import '@eightshift/ui-components/font-dm-mono';
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
The demo enables both by default. Turn off **Use custom fonts** in Demo settings to preview the system font stacks.
|
|
96
|
+
|
|
97
|
+
Allo uses full roundness (`ROND` 100) by default. Use `es:font-roundness-0` to opt out or `es:font-roundness-50` for partial roundness. `es:font-weight-450` sets numeric weight (`wght`, 100–900). These utilities pass integers through without clamping. System fonts honor `font-weight` but may not support roundness.
|
|
98
|
+
|
|
99
|
+
## Shared font assets
|
|
31
100
|
|
|
32
|
-
|
|
101
|
+
`styles`, `styles-editor`, and `styles-admin` no longer include font declarations. When upgrading from an older release, replace `styles-no-fonts`, `styles-editor-no-fonts`, and `styles-admin-no-fonts` imports (including direct asset paths) with `styles`, `styles-editor`, and `styles-admin`, respectively.
|
|
33
102
|
|
|
34
|
-
|
|
103
|
+
For hosts managing shared DM Mono assets, `fonts-manifest` exports `{ version: 1, fonts: [{ hash, file }], css }`. Each hash is a lowercase SHA-256 of the font bytes. Each file path is relative to `dist/assets/`, and the CSS uses matching `./fonts/<filename>` URLs. Validate the manifest, publish the font files at shared URLs, rewrite the URLs in the CSS, and load that CSS once instead of importing `font-dm-mono`. Allo is separate from this manifest.
|
|
35
104
|
|
|
36
105
|
## Who do I talk to?
|
|
37
106
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{d as e,f as t,l as n,n as r,r as i,s as a,u as o}from"./react-BSpnyKxv.js";import*as s from"react";import{Children as c,isValidElement as l,useContext as u,useEffect as d,useId as f,useInsertionEffect as p,useMemo as m,useRef as h,useState as g}from"react";import{Fragment as _,jsx as v}from"react/jsx-runtime";function y(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function b(...e){return t=>{let n=!1,r=e.map(e=>{let r=y(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():y(e[t],null)}}}}function x(...e){return s.useCallback(b(...e),e)}var S=class extends s.Component{getSnapshotBeforeUpdate(e){let t=this.props.getElement();if(a(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=a(e)&&e.offsetWidth||0,r=a(e)&&e.offsetHeight||0,i=getComputedStyle(t),o=this.props.sizeRef.current;o.height=parseFloat(i.height),o.width=parseFloat(i.width),o.top=t.offsetTop,o.left=t.offsetLeft,o.right=n-o.width-o.left,o.bottom=r-o.height-o.top,o.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function C({children:e,isPresent:t,anchorX:n,anchorY:r,root:a,pop:o,popNode:c}){let l=f(),d=h(null),m=h({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:g}=u(i),_=x(d,o===!1?void 0:e.props?.ref??e?.ref),y=()=>d.current||c?.current?.current;return p(()=>{let{width:e,height:i,top:s,left:c,right:u,bottom:d,direction:f}=m.current,p=y();if(t||o===!1||!p||!e||!i)return;let h=f===`rtl`,_=n===`left`?h?`right: ${u}`:`left: ${c}`:h?`left: ${c}`:`right: ${u}`,v=r===`bottom`?`bottom: ${d}`:`top: ${s}`;p.dataset.motionPopId=l;let b=p.ownerDocument,x=b.createElement(`style`);g&&(x.nonce=g);let S=a??b.head;return S.appendChild(x),x.sheet&&x.sheet.insertRule(`
|
|
2
|
+
[data-motion-pop-id="${l}"] {
|
|
3
|
+
position: absolute !important;
|
|
4
|
+
width: ${e}px !important;
|
|
5
|
+
height: ${i}px !important;
|
|
6
|
+
${_}px !important;
|
|
7
|
+
${v}px !important;
|
|
8
|
+
}
|
|
9
|
+
`),()=>{p.removeAttribute(`data-motion-pop-id`),S.contains(x)&&S.removeChild(x)}},[t]),v(S,{isPresent:t,getElement:y,sizeRef:m,pop:o,children:o===!1?e:s.cloneElement(e,{ref:_})})}var w=({children:t,initial:r,isPresent:i,onExitComplete:a,custom:c,presenceAffectsLayout:l,mode:u,anchorX:d,anchorY:p,root:g})=>{let _=e(T),y=f(),b=h(),x=h(i),S=h(a);o(()=>{x.current=i,S.current=a});let w=!0,E=m(()=>(w=!1,{id:y,initial:r,isPresent:i,custom:c,onExitComplete:e=>{_.set(e,!0);for(let e of _.values())if(!e)return;a&&a()},register:(e,t)=>(_.set(e,!1),t&&t.parent?.presenceContext?.id!==y&&(b.current=t),()=>{_.delete(e),!x.current&&!_.size&&S.current?.()})}),[i,_,a]);return l&&w&&(E={...E}),m(()=>{_.forEach((e,t)=>_.set(t,!1))},[i]),s.useEffect(()=>{!i&&!_.size&&a&&a()},[i]),t=v(C,{pop:u===`popLayout`,isPresent:i,anchorX:d,anchorY:p,root:g,popNode:b,children:t}),v(n.Provider,{value:E,children:t})};function T(){return new Map}var E=e=>e.key||``;function D(e){let t=[];return c.forEach(e,e=>{l(e)&&t.push(e)}),t}var O=({children:n,custom:i,initial:a=!0,onExitComplete:s,presenceAffectsLayout:c=!0,mode:l=`sync`,propagate:f=!1,anchorX:p=`left`,anchorY:y=`top`,root:b})=>{let[x,S]=r(f),C=m(()=>D(n),[n]),T=f&&!x?[]:C.map(E),O=h(!0),k=e(()=>new Map),A=h(new Set),[j,M]=g(C),[N,P]=g(C);o(()=>{f&&!x&&!N.length&&S?.()},[x,f,N.length,S]);let F=h();d(()=>()=>{let e=F.current;F.current=void 0,e?.()},[N]),o(()=>{O.current=!1;for(let e=0;e<N.length;e++){let t=E(N[e]);T.includes(t)?(k.delete(t),A.current.delete(t)):k.get(t)!==!0&&k.set(t,!1)}},[N,T.length,T.join(`-`)]);let I=[];if(C!==j){let e=[...C],t=0;for(let n of N){let r=T.indexOf(E(n));r===-1?(e.splice(t++,0,n),I.push(n)):t=r+I.length+1}return I.every(e=>k.get(E(e)))?e=C:l===`wait`&&(e=I),P(D(e)),M(C),null}process.env.NODE_ENV!==`production`&&l===`wait`&&N.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);let{forceRender:L}=u(t);return v(_,{children:N.map(e=>{let t=E(e),n=f&&!x?!1:C===N||T.includes(t);return v(w,{isPresent:n,initial:!O.current||a?void 0:!1,custom:i,presenceAffectsLayout:c,mode:l,root:b,onExitComplete:n?void 0:()=>{if(A.current.has(t))return;if(k.has(t))A.current.add(t),k.set(t,!0);else return;let e=!0;k.forEach(t=>{t||(e=!1)}),e&&(L?.(),M([]),f&&S?.(),F.current=s)},anchorX:p,anchorY:y,children:e},t)})})};export{O as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as e,f as t,l as n,m as r,s as i,t as a,u as o}from"./utils-a89BELgQ.js";import{t as s}from"./useObjectRef-BjjTnUOY.js";import{a as c,c as l,l as ee,o as u,s as d,t as te,u as f}from"./keyboard-BzlG0aH2.js";import{A as ne,H as p,J as m,M as re,W as h,d as ie,f as ae,m as oe}from"./useHover-B7zqOZ-m.js";import{t as se}from"./useEvent-BlCQMrO9.js";import{t as ce}from"./useLabels-BrjiKdsE.js";import{n as le}from"./useLocalizedStringFormatter-B693_Wcz.js";import{t as g}from"./useControlledState-DuIQl7AI.js";import _,{createContext as v,useCallback as y,useEffect as ue,useMemo as de,useRef as b,useState as x}from"react";var S={};S={collectionLabel:`مقترحات`};var C={};C={collectionLabel:`Предложения`};var w={};w={collectionLabel:`Návrhy`};var T={};T={collectionLabel:`Forslag`};var E={};E={collectionLabel:`Empfehlungen`};var D={};D={collectionLabel:`Προτάσεις`};var O={};O={collectionLabel:`Suggestions`};var k={};k={collectionLabel:`Sugerencias`};var A={};A={collectionLabel:`Soovitused`};var j={};j={collectionLabel:`Ehdotukset`};var M={};M={collectionLabel:`Suggestions`};var N={};N={collectionLabel:`הצעות`};var P={};P={collectionLabel:`Prijedlozi`};var F={};F={collectionLabel:`Javaslatok`};var I={};I={collectionLabel:`Suggerimenti`};var L={};L={collectionLabel:`候補`};var R={};R={collectionLabel:`제안`};var z={};z={collectionLabel:`Pasiūlymai`};var B={};B={collectionLabel:`Ieteikumi`};var V={};V={collectionLabel:`Forslag`};var H={};H={collectionLabel:`Suggesties`};var U={};U={collectionLabel:`Sugestie`};var W={};W={collectionLabel:`Sugestões`};var G={};G={collectionLabel:`Sugestões`};var K={};K={collectionLabel:`Sugestii`};var q={};q={collectionLabel:`Предложения`};var J={};J={collectionLabel:`Návrhy`};var Y={};Y={collectionLabel:`Predlogi`};var X={};X={collectionLabel:`Predlozi`};var Z={};Z={collectionLabel:`Förslag`};var Q={};Q={collectionLabel:`Öneriler`};var $={};$={collectionLabel:`Пропозиції`};var fe={};fe={collectionLabel:`建议`};var pe={};pe={collectionLabel:`建議`};var me={};me={"ar-AE":S,"bg-BG":C,"cs-CZ":w,"da-DK":T,"de-DE":E,"el-GR":D,"en-US":O,"es-ES":k,"et-EE":A,"fi-FI":j,"fr-FR":M,"he-IL":N,"hr-HR":P,"hu-HU":F,"it-IT":I,"ja-JP":L,"ko-KR":R,"lt-LT":z,"lv-LV":B,"nb-NO":V,"nl-NL":H,"pl-PL":U,"pt-BR":W,"pt-PT":G,"ro-RO":K,"ru-RU":q,"sk-SK":J,"sl-SI":Y,"sr-SP":X,"sv-SE":Z,"tr-TR":Q,"uk-UA":$,"zh-CN":fe,"zh-TW":pe};function he(e){return e&&e.__esModule?e.default:e}function ge(e,i){let{inputRef:a,collectionRef:g,filter:_,disableAutoFocusFirst:v=!1,disableVirtualFocus:S=!1}=e,C=t(),w=b(void 0),T=b(!1),E=b(null),D=ae()===`virtual`&&(re()||ne()),[O,k]=x(!D&&!S),[A,j]=x(!1),[M,N]=x(!1);ue(()=>()=>clearTimeout(w.current),[]);let P=ie(e=>{!e.isTrusted&&O&&a.current&&p(m(a.current))!==a.current&&oe()!==`touch`&&a.current.focus();let t=h(e);!e.isTrusted&&t&&E.current!==t.id&&(clearTimeout(w.current),t===g.current?E.current&&!document.getElementById(E.current)&&(E.current=null,i.setFocusedNodeId(null)):T.current?(E.current=t.id,w.current=setTimeout(()=>{i.setFocusedNodeId(t.id)},500)):(E.current=t.id,i.setFocusedNodeId(t.id)),T.current=!1)}),[F,I]=x(null),L=y(e=>{I(e),e==null?j(!1):(e.getAttribute(`tabindex`)!=null&&k(!1),j(!0))},[]);r(()=>(F?.addEventListener(`focusin`,P),()=>{F?.removeEventListener(`focusin`,P)}),[F]);let R=s(de(()=>o(g,L),[g,L])),z=y(()=>{g.current?(T.current=!0,g.current?.dispatchEvent(new CustomEvent(f,{cancelable:!0,bubbles:!0,detail:{focusStrategy:`first`}}))):N(!0)},[g]),B=y(e=>{N(!1),l(p()),E.current=null,i.setFocusedNodeId(null);let t=new CustomEvent(ee,{cancelable:!0,bubbles:!0,detail:{clearFocusKey:e}});clearTimeout(w.current),T.current=!1,g.current?.dispatchEvent(t)},[g,i]),V=b(``);se(a,`beforeinput`,e=>{let{inputType:t}=e;V.current=t});let H=e=>{(V.current===`insertText`||V.current===`insertCompositionText`||V.current===`insertFromComposition`)&&!v?z():V.current&&(V.current.includes(`insert`)||V.current.includes(`delete`)||V.current.includes(`history`))&&(B(!0),d(document)===a.current&&c(a.current,null)),i.setInputValue(e)},U=b(null),W=e=>{if(U.current=h(e),e.nativeEvent.isComposing)return;let t=E.current;switch(t!==null&&m(a.current).getElementById(t)==null&&(E.current=null,t=null),e.key){case`a`:if(te(e))return;break;case`Escape`:if(e.isDefaultPrevented())return;break;case` `:return;case`Tab`:`continuePropagation`in e&&e.continuePropagation();return;case`Home`:case`End`:case`PageDown`:case`PageUp`:case`ArrowUp`:case`ArrowDown`:case`ArrowRight`:case`ArrowLeft`:{if((e.key===`Home`||e.key===`End`)&&t==null&&e.shiftKey)return;if(e.key===`ArrowRight`||e.key===`ArrowLeft`){if(t==null){e.isPropagationStopped()||e.stopPropagation();return}break}e.preventDefault();let n=new CustomEvent(f,{cancelable:!0,bubbles:!0});g.current?.dispatchEvent(n);break}}e.isPropagationStopped()||e.stopPropagation();let n=!0;if(g.current!==null){if(t==null)n=g.current?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent))||!1;else{let r=document.getElementById(t);r&&(n=r?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent))||!1)}}if(n)switch(e.key){case`ArrowLeft`:case`ArrowRight`:B();break;case`Enter`:t!=null&&document.getElementById(t)?.dispatchEvent(new PointerEvent(`click`,e.nativeEvent))}else e.preventDefault()},G=ie(e=>{if(h(e)===U.current){e.stopImmediatePropagation();let t=E.current;t==null?g.current?.dispatchEvent(new KeyboardEvent(e.type,e)):document.getElementById(t)?.dispatchEvent(new KeyboardEvent(e.type,e))}});ue(()=>(document.addEventListener(`keyup`,G,!0),()=>{document.removeEventListener(`keyup`,G,!0)}),[]);let K=le(he(me),`@react-aria/autocomplete`),q=ce({id:C,"aria-label":K.format(`collectionLabel`)}),J=y((e,t)=>!_||_(e,i.inputValue,t),[i.inputValue,_]),Y=e=>{if(!e.isTrusted)return;let t=E.current?document.getElementById(E.current):null;t&&u(t,e.relatedTarget)},X=e=>{if(e.isTrusted&&E.current&&document.getElementById(E.current)){let t=h(e);queueMicrotask(()=>{u(t,g.current),c(g.current,t)})}},Z=e=>{e.button===0&&e.pointerType!==`touch`&&E.current!=null&&a.current!=null&&h(e)===a.current&&B()},Q={value:i.inputValue,onChange:H},$={onKeyDown:W,"aria-activedescendant":i.focusedNodeId??void 0,onBlur:Y,onFocus:X,onPointerDown:Z};return Q={...Q,...O&&A&&$,enterKeyHint:`go`,"aria-controls":A?C:void 0,"aria-autocomplete":`list`,autoCorrect:`off`,spellCheck:`false`,autoComplete:`off`},{inputProps:Q,collectionProps:n(q,{shouldUseVirtualFocus:O,disallowTypeAhead:O,autoFocus:M?`first`:!1}),collectionRef:R,filter:_==null?void 0:J}}function _e(e){let{onInputChange:t,inputValue:n,defaultInputValue:r=``}=e,i=e=>{t&&t(e)},[a,o]=x(null),[s,c]=g(n,r,i);return{inputValue:s,setInputValue:c,focusedNodeId:a,setFocusedNodeId:o}}var ve=v(null),ye=v(null),be=v(null),xe=v(null);function Se(t){let r=e(ve,t.slot);t=n(r,t);let{filter:o,disableAutoFocusFirst:s}=t,c=_e(t),l=b(null),ee=b(null),{inputProps:u,collectionProps:d,collectionRef:te,filter:f}=ge({...i(t),filter:o,disableAutoFocusFirst:s,inputRef:l,collectionRef:ee},c);return _.createElement(a,{values:[[ye,c],[xe,{...u,ref:l}],[be,{...d,filter:f,ref:te}]]},t.children)}export{xe as n,be as r,Se as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{f as e,i as t,l as n,n as r,o as i,r as a}from"./utils-a89BELgQ.js";import{t as o}from"./useHover-B7zqOZ-m.js";import{t as s}from"./useFocusRing-iqZqZ3LT.js";import{t as c}from"./useLabels-BrjiKdsE.js";import{t as l}from"./I18nProvider-BEh6VvSv.js";import{t as u}from"./Hidden-BK7EwYvz.js";import{t as d}from"./filterDOMProps-DKemR-4v.js";import{t as f}from"./NumberFormatter-nhsGk7J2.js";import{t as p}from"./number-C1r4kgNV.js";import{t as m}from"./useButton-CUbkFkS6.js";import h,{createContext as g,forwardRef as _,useEffect as v,useMemo as y,useRef as b}from"react";var x=g({}),S=u(function(e,t){[e,t]=r(e,t,x);let{elementType:n=`label`,...a}=e,o=i[n];return h.createElement(o,{className:`react-aria-Label`,...a,ref:t})});function C(t){let{id:n,label:r,"aria-labelledby":i,"aria-label":a,labelElementType:o=`label`}=t;n=e(n);let s=e(),l={};r?(i=i?`${s} ${i}`:s,l={id:s,htmlFor:o===`label`?n:void 0}):!i&&!a&&process.env.NODE_ENV!==`production`&&console.warn(`If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility`);let u=c({id:n,"aria-label":a,"aria-labelledby":i});return{labelProps:l,fieldProps:u}}function w(e={}){let{locale:t}=l();return y(()=>new f(t,e),[t,e])}function T(e){let{value:t=0,minValue:r=0,maxValue:i=100,valueLabel:a,isIndeterminate:o,formatOptions:s={style:`percent`}}=e,c=d(e,{labelable:!0}),{labelProps:l,fieldProps:u}=C({...e,labelElementType:`span`});t=p(t,r,i);let f=i-r,m=f===0?0:(t-r)/f,h=w(s);if(!o&&!a){let e=s.style===`percent`?m:t;a=h.format(e)}return{progressBarProps:n(c,{...u,"aria-valuenow":o?void 0:t,"aria-valuemin":r,"aria-valuemax":i,"aria-valuetext":o?void 0:a,role:`progressbar`}),labelProps:l}}var E=g(null),D=_(function(e,o){[e,o]=r(e,o,E);let{value:s=0,minValue:c=0,maxValue:l=100,isIndeterminate:u=!1}=e;s=p(s,c,l);let[f,m]=t(!e[`aria-label`]&&!e[`aria-labelledby`]),{progressBarProps:g,labelProps:_}=T({...e,label:m}),v=l-c,y;u||(y=v===0?0:(s-c)/v*100);let b=a({...e,defaultClassName:`react-aria-ProgressBar`,values:{percentage:y,valueText:g[`aria-valuetext`],isIndeterminate:u}}),S=d(e,{global:!0});return h.createElement(i.div,{...n(S,b,g),ref:o,slot:e.slot||void 0},h.createElement(x.Provider,{value:{..._,ref:f,elementType:`span`}},b.children))}),O=7e3,k=null;function A(e,t=`assertive`,n=O){k?k.announce(e,t,n):(k=new M,(typeof IS_REACT_ACT_ENVIRONMENT==`boolean`?IS_REACT_ACT_ENVIRONMENT:typeof jest<`u`)?k.announce(e,t,n):setTimeout(()=>{k?.isAttached()&&k?.announce(e,t,n)},100))}function j(e){k&&k.clear(e)}var M=class{constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<`u`&&(this.node=document.createElement(`div`),this.node.dataset.liveAnnouncer=`true`,Object.assign(this.node.style,{border:0,clip:`rect(0 0 0 0)`,clipPath:`inset(50%)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`absolute`,width:`1px`,whiteSpace:`nowrap`}),this.assertiveLog=this.createLog(`assertive`),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog(`polite`),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}isAttached(){return this.node?.isConnected}createLog(e){let t=document.createElement(`div`);return t.setAttribute(`role`,`log`),t.setAttribute(`aria-live`,e),t.setAttribute(`aria-relevant`,`additions`),t}destroy(){this.node&&=(document.body.removeChild(this.node),null)}announce(e,t=`assertive`,n=O){if(!this.node)return;let r=document.createElement(`div`);typeof e==`object`?(r.setAttribute(`role`,`img`),r.setAttribute(`aria-labelledby`,e[`aria-labelledby`])):r.textContent=e,t===`assertive`?this.assertiveLog?.appendChild(r):this.politeLog?.appendChild(r),e!==``&&setTimeout(()=>{r.remove()},n)}clear(e){this.node&&((!e||e===`assertive`)&&this.assertiveLog&&(this.assertiveLog.innerHTML=``),(!e||e===`polite`)&&this.politeLog&&(this.politeLog.innerHTML=``))}},N=g({}),P=u(function(t,c){[t,c]=r(t,c,N);let l=t,{isPending:u}=l,{buttonProps:f,isPressed:p}=m(t,c);f=I(f,u);let{focusProps:g,isFocused:_,isFocusVisible:y}=s(t),{hoverProps:x,isHovered:S}=o({...t,isDisabled:t.isDisabled||u}),C={isHovered:S,isPressed:(l.isPressed||p)&&!u,isFocused:_,isFocusVisible:y,isDisabled:t.isDisabled||!1,isPending:u??!1},w=a({...t,values:C,defaultClassName:`react-aria-Button`}),T=e(f.id),D=e(),O=f[`aria-labelledby`];u&&(O?O=`${O} ${D}`:f[`aria-label`]&&(O=`${T} ${D}`));let k=b(u);v(()=>{let e={"aria-labelledby":O||T};(!k.current&&_&&u||k.current&&_&&!u)&&A(e,`assertive`),k.current=u},[u,_,O,T]);let j=d(t,{global:!0});return delete j.onClick,h.createElement(i.button,{...n(j,w,f,g,x),type:f.type===`submit`&&u?`button`:f.type,id:T,ref:c,"aria-labelledby":O,slot:t.slot||void 0,"aria-disabled":u?`true`:f[`aria-disabled`],"data-disabled":t.isDisabled||void 0,"data-pressed":C.isPressed||void 0,"data-hovered":S||void 0,"data-focused":_||void 0,"data-pending":u||void 0,"data-focus-visible":y||void 0},h.createElement(E.Provider,{value:{id:D}},w.children))}),F=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;function I(e,t){if(t){for(let t in e)t.startsWith(`on`)&&!F.test(t)&&(e[t]=void 0);e.href=void 0,e.target=void 0}return e}export{D as a,x as c,j as i,S as l,P as n,w as o,A as r,C as s,N as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as e,l as t,n,o as r,r as i,s as a,t as o,u as s}from"./utils-a89BELgQ.js";import{t as c}from"./useObjectRef-BjjTnUOY.js";import{t as l}from"./useHover-B7zqOZ-m.js";import{t as u}from"./useFocusRing-iqZqZ3LT.js";import{t as d}from"./filterDOMProps-DKemR-4v.js";import{n as f}from"./Text-CKNC-T46.js";import{t as p}from"./VisuallyHidden-D5n5kSd7.js";import{a as m,c as h,o as g,r as _}from"./useFormValidation-Bh9mXXQp.js";import{t as v}from"./Form-BRnR5K3X.js";import{t as y}from"./useToggle-CFFHpBO3.js";import{t as b}from"./useToggleState-CTvAIp3u.js";import x,{createContext as S,forwardRef as C,useContext as w,useEffect as T,useMemo as E,useRef as D}from"react";var O=new WeakMap;function k(e,n,r){let{labelProps:i,inputProps:a,descriptionProps:o,errorMessageProps:s,isSelected:c,isPressed:l,isDisabled:u,isReadOnly:d,isInvalid:f,validationErrors:p,validationDetails:m}=y(e,n,r),{isIndeterminate:h}=e;return T(()=>{r.current&&(r.current.indeterminate=!!h)}),{labelProps:t(i,E(()=>({onMouseDown:e=>e.preventDefault()}),[])),inputProps:a,descriptionProps:o,errorMessageProps:s,isSelected:c,isPressed:l,isDisabled:u,isReadOnly:d,isInvalid:f,validationErrors:p,validationDetails:m}}function A(e,t,n){let r=b({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),defaultSelected:t.defaultValue.includes(e.value),onChange(n){n?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(n)}}),{name:i,form:a,descriptionId:o,errorMessageId:s,validationBehavior:c}=O.get(t);c=e.validationBehavior??c;let{realtimeValidation:l}=g({...e,value:r.isSelected,name:void 0,validationBehavior:`aria`}),u=D(m),d=()=>{t.setInvalid(e.value,l.isInvalid?l:u.current)};T(d);let f=t.realtimeValidation.isInvalid?t.realtimeValidation:l,p=c===`native`?t.displayValidation:f,h=k({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||i,form:e.form||a,isRequired:e.isRequired??t.isRequired,validationBehavior:c,[_]:{realtimeValidation:f,displayValidation:p,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(e){u.current=e,d()}}},r,n);return{...h,inputProps:{...h.inputProps,"aria-describedby":[h.inputProps[`aria-describedby`],t.isInvalid?s:null,o].filter(Boolean).join(` `)||void 0}}}var j=S(null),M=S(null),N=S(null),P=S(null),F=C(function(e,a){let{inputRef:s=null,...c}=e;[e,a]=n(c,a,M);let l=w(N),[u,p]=I(e,s),{descriptionProps:m,errorMessageProps:g,isSelected:_,isDisabled:v,isReadOnly:y,isInvalid:b,validationDetails:S,validationErrors:C}=u,T=i({...e,defaultClassName:`react-aria-CheckboxField`,values:{isSelected:_,isIndeterminate:e.isIndeterminate||!1,isDisabled:v,isReadOnly:y,isInvalid:b,isRequired:e.isRequired||!1}}),E=d(e,{global:!0});return delete E.id,delete E.onClick,x.createElement(r.div,{...t(E,T),ref:a,slot:e.slot||void 0,"data-selected":_||void 0,"data-indeterminate":e.isIndeterminate||void 0,"data-disabled":v||void 0,"data-readonly":y||void 0,"data-invalid":b||void 0,"data-required":e.isRequired||void 0},x.createElement(o,{values:[[P,{...u,inputRef:p,defaultClassName:`react-aria-CheckboxButton`,isIndeterminate:e.isIndeterminate,isRequired:e.isRequired}],[f,{slots:{description:m,errorMessage:g}}],[h,l?null:{isInvalid:b,validationDetails:S,validationErrors:C}]]},T.children))});function I(t,n){let{validationBehavior:r}=e(v)||{},i=t.validationBehavior??r??`native`,o=w(N),l=c(E(()=>s(n,t.inputRef===void 0?null:t.inputRef),[n,t.inputRef])),u={...a(t),children:typeof t.children==`function`||t.children,value:t.value,validationBehavior:i};return[o?A(u,o,l):k(u,b(t),l),l]}var L=C(function(e,t){let{inputRef:r=null,...i}=e;[e,t]=n(i,t,j);let[a,o]=I(e,r);return x.createElement(P.Provider,{value:{...a,inputRef:o,defaultClassName:`react-aria-Checkbox`,isIndeterminate:e.isIndeterminate,isRequired:e.isRequired}},x.createElement(R,{...e,ref:t}))}),R=C(function(e,n){let{labelProps:a,inputProps:o,isSelected:s,isDisabled:c,isReadOnly:f,isPressed:m,isInvalid:h,inputRef:g,defaultClassName:_,isIndeterminate:v,isRequired:y}=w(P),{isFocused:b,isFocusVisible:S,focusProps:C}=u(),T=c||f,{hoverProps:E,isHovered:D}=l({...e,isDisabled:T}),O=i({...e,defaultClassName:_,values:{isSelected:s,isIndeterminate:v||!1,isPressed:m,isHovered:D,isFocused:b,isFocusVisible:S,isDisabled:c,isReadOnly:f,isInvalid:h,isRequired:y||!1}}),k=d(e,{global:!0});return delete k.id,delete k.onClick,x.createElement(r.label,{...t(k,a,E,O),ref:n,slot:e.slot||void 0,"data-selected":s||void 0,"data-indeterminate":v||void 0,"data-pressed":m||void 0,"data-hovered":D||void 0,"data-focused":b||void 0,"data-focus-visible":S||void 0,"data-disabled":c||void 0,"data-readonly":f||void 0,"data-invalid":h||void 0,"data-required":y||void 0},x.createElement(p,{elementType:`span`},x.createElement(`input`,{...t(o,C),ref:g})),O.children)});export{M as a,j as i,R as n,F as r,L as t};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{a as e,c as t,d as n,f as r,h as i,i as a,l as o,m as s,n as c,o as l,p as u,r as d,t as f}from"./utils-a89BELgQ.js";import{t as p}from"./useObjectRef-BjjTnUOY.js";import{i as m,n as h,r as g}from"./keyboard-BzlG0aH2.js";import{B as _,D as v,G as y,H as b,J as x,K as S,M as C,V as w,W as T,X as E,Y as D,a as ee,d as O,f as te,g as ne,h as k,i as re,k as A,l as j,o as ie,p as ae,q as oe,s as M,t as se,v as ce,x as le,y as ue,z as N}from"./useHover-B7zqOZ-m.js";import{n as de,r as fe}from"./Autocomplete-CQH-8_68.js";import{a as pe,i as P,n as me,r as he}from"./useFocusRing-iqZqZ3LT.js";import{t as ge}from"./useEvent-BlCQMrO9.js";import{t as F}from"./useLabels-BrjiKdsE.js";import{t as _e}from"./I18nProvider-BEh6VvSv.js";import{n as ve}from"./useLocalizedStringFormatter-B693_Wcz.js";import{t as I}from"./useControlledState-DuIQl7AI.js";import{C as ye,E as be,S as xe,T as Se,_ as Ce,a as we,b as Te,c as Ee,h as De,i as Oe,m as ke,n as Ae,o as je,p as L,r as Me,s as Ne,t as Pe,u as Fe,v as Ie,w as Le,x as Re,y as ze}from"./useCollection-BqmrVZIy.js";import{r as Be}from"./Hidden-BK7EwYvz.js";import{t as R}from"./filterDOMProps-DKemR-4v.js";import{t as Ve}from"./Button-DhaWFe8e.js";import{n as He}from"./Heading-DMnq9QZH.js";import{n as Ue}from"./Text-CKNC-T46.js";import{t as We}from"./VisuallyHidden-D5n5kSd7.js";import{n as Ge,r as Ke}from"./SelectionIndicator-Bslc4sCw.js";import{a as qe,n as Je,t as Ye}from"./FocusScope-BoxZvmWP.js";import{a as Xe,i as Ze,n as Qe,r as $e,t as et}from"./useOverlayTriggerState-DKUl8FBy.js";import{n as tt}from"./PortalProvider-CJT9hS6n.js";import{n as nt,t as rt}from"./animation-CmxZG3Hu.js";import z,{createContext as B,forwardRef as it,useCallback as V,useContext as H,useEffect as U,useMemo as W,useRef as G,useState as K}from"react";import at from"react-dom";function ot(e,t){let n=e;for(L(n,t)&&(n=n.parentElement);n&&!L(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}var st=B({}),ct=Ie(ye,function(e,t){return[e,t]=c(e,t,st),z.createElement(l.header,{className:`react-aria-Header`,...e,ref:t},e.children)});function lt(e){let t=R(e,{labelable:!0}),n;return e.orientation===`vertical`&&(n=`vertical`),e.elementType===`hr`?{separatorProps:t}:{separatorProps:{...t,role:`separator`,"aria-orientation":n}}}var ut=B({}),dt=class extends Se{static{this.type=`separator`}filter(e,t){let n=t.getItem(this.prevKey);if(n&&n.type!==`separator`){let n=this.clone();return t.addDescendants(n,e),n}return null}},ft=Ie(dt,function(e,t){[e,t]=c(e,t,ut);let{elementType:n,orientation:r,style:i,className:a,slot:s,...u}=e,d=n||`hr`;d===`hr`&&r===`vertical`&&(d=`div`);let f=l[d],{separatorProps:p}=lt({...u,elementType:n,orientation:r}),m=R(e,{global:!0});return z.createElement(f,{render:e.render,...o(m,p),style:i,className:a??`react-aria-Separator`,ref:t,slot:s||void 0})}),pt=class{constructor(e){this.ref=e}getItemRect(e){let t=this.ref.current;if(!t)return null;let n=e==null?null:Fe(this.ref,e);if(!n)return null;let r=t.getBoundingClientRect(),i=n.getBoundingClientRect();return{x:i.left-r.left-t.clientLeft+t.scrollLeft,y:i.top-r.top-t.clientTop+t.scrollTop,width:i.width,height:i.height}}getContentSize(){let e=this.ref.current;return{width:e?.scrollWidth??0,height:e?.scrollHeight??0}}getVisibleRect(){let e=this.ref.current;return{x:e?.scrollLeft??0,y:e?.scrollTop??0,width:e?.clientWidth??0,height:e?.clientHeight??0}}},mt=class{constructor(...e){if(e.length===1){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||`all`,this.orientation=t.orientation||`vertical`,this.direction=t.direction,this.layout=t.layout||`stack`,this.layoutDelegate=t.layoutDelegate||new pt(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout=`stack`,this.orientation=`vertical`,this.disabledBehavior=`all`,this.layoutDelegate=new pt(this.ref);this.layout===`stack`&&this.orientation===`vertical`&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}isDisabled(e){return this.disabledBehavior===`all`&&(e.props?.isDisabled||this.disabledKeys.has(e.key))&&e.props?.disabledBehavior!==`selection`}findNextNonDisabled(e,t,n=!1){let r=e;for(;r!=null;){let e=this.collection.getItem(r);if(e?.type===`item`&&(n||!this.isDisabled(e)))return r;r=t(r)}return null}getNextKey(e,t){let n=e;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,e=>this.collection.getKeyAfter(e),t?.includeDisabled)}getPreviousKey(e,t){let n=e;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,e=>this.collection.getKeyBefore(e),t?.includeDisabled)}findKey(e,t,n){let r=e,i=this.layoutDelegate.getItemRect(r);if(!i||r==null)return null;let a=i;do{if(r=t(r),r==null)break;i=this.layoutDelegate.getItemRect(r)}while(i&&n(a,i)&&r!=null);return r}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}isReversed(e){let t=this.getNextKey(e),n=Fe(this.ref,e);if(t!=null){let e=Fe(this.ref,t);return!n||!e?!1:n.getBoundingClientRect().top>e.getBoundingClientRect().top}let r=this.getPreviousKey(e);if(r!=null){let e=Fe(this.ref,r);return!n||!e?!1:e.getBoundingClientRect().top>n.getBoundingClientRect().top}return!1}getKeyBelow(e,t){return this.layout===`grid`&&this.orientation===`vertical`?this.findKey(e,e=>this.getNextKey(e,t),this.isSameRow):this.orientation===`vertical`&&this.isReversed(e)?this.getPreviousKey(e,t):this.getNextKey(e,t)}getKeyAbove(e,t){return this.layout===`grid`&&this.orientation===`vertical`?this.findKey(e,e=>this.getPreviousKey(e,t),this.isSameRow):this.orientation===`vertical`&&this.isReversed(e)?this.getNextKey(e,t):this.getPreviousKey(e,t)}getNextColumn(e,t,n){return t?this.getPreviousKey(e,n):this.getNextKey(e,n)}getKeyRightOf(e,t){let n=this.direction===`ltr`?`getKeyRightOf`:`getKeyLeftOf`;return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[n](e),t?.includeDisabled)):this.layout===`grid`?this.orientation===`vertical`?this.getNextColumn(e,this.direction===`rtl`,t):this.findKey(e,e=>this.getNextColumn(e,this.direction===`rtl`,t),this.isSameColumn):this.orientation===`horizontal`?this.getNextColumn(e,this.direction===`rtl`,t):null}getKeyLeftOf(e,t){let n=this.direction===`ltr`?`getKeyLeftOf`:`getKeyRightOf`;return this.layoutDelegate[n]?(e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[n](e),t?.includeDisabled)):this.layout===`grid`?this.orientation===`vertical`?this.getNextColumn(e,this.direction===`ltr`,t):this.findKey(e,e=>this.getNextColumn(e,this.direction===`ltr`,t),this.isSameColumn):this.orientation===`horizontal`?this.getNextColumn(e,this.direction===`ltr`,t):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyAfter(e))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyBefore(e))}getKeyPageAbove(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;let r=this.isReversed(e);if(t&&!L(t))return this.getFirstKey();let i=e;if(this.orientation===`horizontal`){let e=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>e&&i!=null;)i=this.getKeyAbove(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}else{let e=this.layoutDelegate.getVisibleRect(),t=r?n.y-e.height:Math.max(0,n.y+n.height-e.height);for(;n&&n.y>t&&i!=null;)i=this.getKeyAbove(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}return i??(r?this.getLastKey():this.getFirstKey())}getKeyPageBelow(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;let r=this.isReversed(e);if(t&&!L(t))return this.getLastKey();let i=e;if(this.orientation===`horizontal`){let e=Math.min(this.layoutDelegate.getContentSize().width,n.x-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<e&&i!=null;)i=this.getKeyBelow(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}else{let e=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<e&&i!=null;)i=this.getKeyBelow(i),n=i==null?null:this.layoutDelegate.getItemRect(i)}return i??(r?this.getFirstKey():this.getLastKey())}getKeyForSearch(e,t){if(!this.collator)return null;let n=this.collection,r=t||this.getFirstKey();for(;r!=null;){let t=n.getItem(r);if(!t)return null;let i=t.textValue.slice(0,e.length);if(t.textValue&&this.collator.compare(i,e)===0)return r;r=this.getNextKey(r)}return null}},ht=new Map;function gt(e){let{locale:t}=_e(),n=t+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():``);if(ht.has(n))return ht.get(n);let r=new Intl.Collator(t,e);return ht.set(n,r),r}function _t(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:a,layoutDelegate:o,orientation:s}=e,c=gt({usage:`search`,sensitivity:`base`}),l=t.disabledBehavior,u=W(()=>a||new mt({collection:n,disabledKeys:r,disabledBehavior:l,ref:i,collator:c,layoutDelegate:o,orientation:s}),[a,o,n,r,i,c,l,s]),{collectionProps:d}=Ee({...e,ref:i,selectionManager:t,keyboardDelegate:u});return{listProps:d}}var vt=new WeakMap;function yt(e){let t=vt.get(e);if(t!=null)return t;let n=0,r=t=>{for(let i of t)i.type===`section`?r(we(i,e)):i.type===`item`&&n++};return r(e),vt.set(e,n),n}function bt(e,t){let{collection:n,onLoadMore:r,scrollOffset:i=1,direction:a=`end`}=e,o=G(null),c=O(e=>{for(let t of e)t.isIntersecting&&r&&r()});s(()=>{if(t.current){let e=100*i,n=a===`start`?`${e}% 0px 0px 0px`:`0px ${e}% ${e}% ${e}%`;o.current=new IntersectionObserver(c,{root:ot(t?.current),rootMargin:n}),o.current.observe(t.current)}return()=>{o.current&&o.current.disconnect()}},[n,t,i,a])}var xt=typeof HTMLElement<`u`&&`inert`in HTMLElement.prototype;function St(e){return e.dataset.liveAnnouncer===`true`||e.dataset.reactAriaTopLayer!==void 0}var Ct=new WeakMap,q=[];function wt(e,t){let n=D(e?.[0]),r=t instanceof n.Element?{root:t}:t,i=r?.root??document.body,a=r?.shouldUseInert&&xt,o=new Set(e),s=new Set,c=e=>a&&e instanceof n.HTMLElement?e.inert:e.getAttribute(`aria-hidden`)===`true`,l=(e,t)=>{a&&e instanceof n.HTMLElement?e.inert=t:t?e.setAttribute(`aria-hidden`,`true`):(e.removeAttribute(`aria-hidden`),e instanceof n.HTMLElement&&(e.inert=!1))},u=new Set;if(y()){let t=i.getRootNode();for(let n of e){let e=n.getRootNode();for(;oe(e)&&e!==t;)u.add(e),e=e.host.getRootNode()}}let d=e=>{for(let t of e.querySelectorAll(`[data-live-announcer], [data-react-aria-top-layer]`))o.add(t);let t=e=>{if(s.has(e)||o.has(e)||e.parentElement&&s.has(e.parentElement)&&e.parentElement.getAttribute(`role`)!==`row`)return NodeFilter.FILTER_REJECT;for(let t of o)if(_(e,t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},n=qe(x(e),e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),r=t(e);if(r===NodeFilter.FILTER_ACCEPT&&f(e),r!==NodeFilter.FILTER_REJECT){let e=n.nextNode();for(;e!=null;)f(e),e=n.nextNode()}},f=e=>{let t=Ct.get(e)??0;c(e)&&t===0||(t===0&&l(e,!0),s.add(e),Ct.set(e,t+1))};q.length&&q[q.length-1].disconnect(),d(i);let p=new MutationObserver(e=>{for(let t of e)if(t.type===`childList`){if(t.target.isConnected&&![...o,...s].some(e=>_(e,t.target)))for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&St(e)?o.add(e):e instanceof Element&&d(e);if(y()){for(let e of u)if(!e.isConnected){p.disconnect();break}}}});p.observe(i,{childList:!0,subtree:!0});let m=new Set;if(y())for(let e of u){let t=new MutationObserver(e=>{for(let t of e)if(t.type===`childList`){if(t.target.isConnected&&![...o,...s].some(e=>_(e,t.target)))for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&St(e)?o.add(e):e instanceof Element&&d(e);if(y()){for(let e of u)if(!e.isConnected){p.disconnect();break}}}});t.observe(e,{childList:!0,subtree:!0}),m.add(t)}let h={visibleNodes:o,hiddenNodes:s,observe(){p.observe(i,{childList:!0,subtree:!0})},disconnect(){p.disconnect()}};return q.push(h),()=>{if(p.disconnect(),y())for(let e of m)e.disconnect();for(let e of s){let t=Ct.get(e);t!=null&&(t===1?(l(e,!1),Ct.delete(e)):Ct.set(e,t-1))}h===q[q.length-1]?(q.pop(),q.length&&q[q.length-1].observe()):q.splice(q.indexOf(h),1)}}function Tt(e){let t=q[q.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function Et(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,a=G({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),o=O(e=>{n&&Dt(e,t)&&(i&&i(e),a.current.isPointerDown=!0)}),s=O(e=>{n&&n(e)});U(()=>{let e=a.current;if(r)return;let n=t.current,i=x(n);if(typeof PointerEvent<`u`){let n=n=>{e.isPointerDown&&Dt(n,t)&&s(n),e.isPointerDown=!1};return i.addEventListener(`pointerdown`,o,!0),i.addEventListener(`click`,n,!0),()=>{i.removeEventListener(`pointerdown`,o,!0),i.removeEventListener(`click`,n,!0)}}if(process.env.NODE_ENV===`test`){let n=n=>{e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:e.isPointerDown&&Dt(n,t)&&s(n),e.isPointerDown=!1},r=n=>{e.ignoreEmulatedMouseEvents=!0,e.isPointerDown&&Dt(n,t)&&s(n),e.isPointerDown=!1};return i.addEventListener(`mousedown`,o,!0),i.addEventListener(`mouseup`,n,!0),i.addEventListener(`touchstart`,o,!0),i.addEventListener(`touchend`,r,!0),()=>{i.removeEventListener(`mousedown`,o,!0),i.removeEventListener(`mouseup`,n,!0),i.removeEventListener(`touchstart`,o,!0),i.removeEventListener(`touchend`,r,!0)}}},[t,r])}function Dt(e,t){if(e.button>0)return!1;let n=T(e);if(n){let e=n.ownerDocument;if(!e||!_(e.documentElement,n)||n.closest(`[data-react-aria-top-layer]`))return!1}return t.current?!e.composedPath().includes(t.current):!1}var J=[];function Ot(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:a=!1,isKeyboardDismissDisabled:o=!1,shouldCloseOnInteractOutside:s}=e,c=G(void 0);U(()=>{if(i&&!J.includes(t))return J.push(t),()=>{let e=J.indexOf(t);e>=0&&J.splice(e,1)}},[i,t]);let l=()=>{J[J.length-1]===t&&n&&n()},u=e=>{let n=J[J.length-1];c.current=n,(!s||s(T(e)))&&n===t&&e.stopPropagation()},d=e=>{(!s||s(T(e)))&&(J[J.length-1]===t&&e.stopPropagation(),c.current===t&&l()),c.current=void 0},{keyboardProps:f}=M({shortcuts:{Escape:()=>{if(!o)l();else return!1}}});Et({ref:t,onInteractOutside:a&&i?d:void 0,onInteractOutsideStart:u});let{focusWithinProps:p}=me({isDisabled:!r,onBlurWithin:e=>{e.relatedTarget&&!Ye(e.relatedTarget)&&(!s||s(e.relatedTarget))&&n?.()}});return{overlayProps:{...f,...p},underlayProps:{}}}var kt=200,At=50,jt=600,Y=new WeakMap,Mt=new Set,Nt=new Set;function Pt(e,t){let n=g();if(e!==n||t.aborted)for(let e of Nt)e(n),Nt.delete(e);if(!e&&n&&v()&&!t.aborted)window.clearInterval(Y.get(window)),Y.set(window,Ft(kt));else{if(e!==n||t.aborted)for(let e of Mt)e(n),Mt.delete(e);(Nt.size+Mt.size<=0||t.aborted)&&(window.clearInterval(Y.get(window)),Y.delete(window))}}function Ft(e=jt){return window.setInterval(Pt,At,g(),AbortSignal.timeout(e))}function It(e){if(!h())return e(!1),()=>{};let t=window.requestAnimationFrame(()=>{t=window.requestAnimationFrame(()=>{let t=document.hasFocus()?b():null,n=m(t);if(g()===n||g()&&!n)return e(n);Nt.add(e),Y.has(window)||Y.set(window,Ft())})});return()=>{window.cancelAnimationFrame(t),Nt.delete(e)}}function Lt(e){if(!h())return e(!1),()=>{};let t=window.requestAnimationFrame(()=>{t=window.requestAnimationFrame(()=>{let t=document.hasFocus()?b():null,n=m(t);if(g()===n)return e(n);Mt.add(e),Y.has(window)||Y.set(window,Ft())})});return()=>{window.cancelAnimationFrame(t),Mt.delete(e)}}var Rt=typeof document<`u`&&window.visualViewport,zt=0,Bt;function Vt(e={}){let{isDisabled:t,UNSTABLE_overrideFocus:n}=e;s(()=>{if(!t)return zt++,zt===1&&(Bt=C()&&v()?Ut():Ht(n)),()=>{zt--,zt===0&&Bt()}},[t,n])}function Ht(e){let t=window.innerWidth-document.documentElement.clientWidth;return i(t>0&&(`scrollbarGutter`in document.documentElement.style?S(document.documentElement,`scrollbar-gutter`,`stable`):S(document.documentElement,`padding-right`,`${t}px`)),S(document.documentElement,`overflow`,`hidden`),e&&Gt(),e&&h()&&Wt())}function Ut(){let e=S(document.documentElement,`overflow`,`hidden`),t,n=!1,r=e=>{let r=T(e);t=L(r,!0)?r:ot(r,!0),n=!1;let i=r.ownerDocument.defaultView.getSelection();i&&!i.isCollapsed&&i.containsNode(r,!0)&&(n=!0),e.composedPath().some(e=>e instanceof HTMLInputElement&&e.type===`range`)&&(n=!0),`selectionStart`in r&&`selectionEnd`in r&&r.selectionStart<r.selectionEnd&&r.ownerDocument.activeElement===r&&(n=!0)},a=document.createElement(`style`),o=pe();o&&(a.nonce=o),a.textContent=`@layer {
|
|
2
|
+
* {
|
|
3
|
+
overscroll-behavior: contain;
|
|
4
|
+
}
|
|
5
|
+
}`,document.head.prepend(a);let s=e=>{e.touches.length===2||n||(!t||t===document.documentElement||t===document.body||t.scrollHeight===t.clientHeight&&t.scrollWidth===t.clientWidth)&&e.preventDefault()},c=Gt(),l=i(E(document,`touchstart`,r,{passive:!1,capture:!0}),E(document,`touchmove`,s,{passive:!1,capture:!0}),Wt());return()=>{e(),l(),a.remove(),c()}}function Wt(){return E(document,`blur`,e=>{let t=T(e),n=e.relatedTarget;n&&m(n)?n.focus():n||(t.parentElement?.closest(`[tabindex]`))?.focus({preventScroll:!0})},!0)}function Gt(){let e=HTMLElement.prototype.focus;return Reflect.defineProperty(HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(t){if(e.call(this,{...t,preventScroll:!0}),!t||!t.preventScroll){let e=()=>{b()===this&&Kt(this)};It(t=>t?e():Lt(()=>e()))}}}),()=>{Reflect.defineProperty(HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:e})}}function Kt(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t&&n.isConnected;){let e=ot(n);if(e!==document.documentElement&&e!==document.body&&e!==n){let t=e.getBoundingClientRect(),r=n.getBoundingClientRect();if(r.top<t.top||r.bottom>t.top+n.clientHeight){let n=t.bottom;Rt&&(n=Math.min(n,Rt.offsetTop+Rt.height));let i=r.top-t.top-((n-t.top)/2-r.height/2);e.scrollTo({top:Math.max(0,Math.min(e.scrollHeight-e.clientHeight,e.scrollTop+i)),behavior:`smooth`})}}n=e.parentElement}}function qt(e,t){let{triggerRef:n,popoverRef:r,groupRef:i,isNonModal:a,isKeyboardDismissDisabled:s,shouldCloseOnInteractOutside:c,...l}=e,u=l.trigger===`SubmenuTrigger`,{overlayProps:d,underlayProps:f}=Ot({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!a||u,isKeyboardDismissDisabled:s,shouldCloseOnInteractOutside:c},i??r),{overlayProps:p,arrowProps:m,placement:h,triggerAnchorPoint:g}=Qe({...l,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:a&&!u?t.close:null,getTargetRect:l.getTargetRect??(t.point?()=>new DOMRect(t.point.x,t.point.y,0,0):void 0)});Vt({isDisabled:a||!t.isOpen}),U(()=>{if(t.isOpen&&r.current)return a?Tt(i?.current??r.current):wt([i?.current??r.current],{shouldUseInert:!0})},[a,t.isOpen,r,i]);let{focusWithinProps:_}=me(e);return{popoverProps:o(d,p,_),arrowProps:m,underlayProps:f,placement:h,triggerAnchorPoint:g}}var Jt={};Jt={dismiss:`تجاهل`};var Yt={};Yt={dismiss:`Отхвърляне`};var Xt={};Xt={dismiss:`Odstranit`};var Zt={};Zt={dismiss:`Luk`};var Qt={};Qt={dismiss:`Schließen`};var $t={};$t={dismiss:`Απόρριψη`};var en={};en={dismiss:`Dismiss`};var tn={};tn={dismiss:`Descartar`};var nn={};nn={dismiss:`Lõpeta`};var rn={};rn={dismiss:`Hylkää`};var an={};an={dismiss:`Rejeter`};var on={};on={dismiss:`התעלם`};var sn={};sn={dismiss:`Odbaci`};var cn={};cn={dismiss:`Elutasítás`};var ln={};ln={dismiss:`Ignora`};var un={};un={dismiss:`閉じる`};var dn={};dn={dismiss:`무시`};var fn={};fn={dismiss:`Atmesti`};var pn={};pn={dismiss:`Nerādīt`};var mn={};mn={dismiss:`Lukk`};var hn={};hn={dismiss:`Negeren`};var gn={};gn={dismiss:`Zignoruj`};var _n={};_n={dismiss:`Descartar`};var vn={};vn={dismiss:`Dispensar`};var yn={};yn={dismiss:`Revocare`};var bn={};bn={dismiss:`Пропустить`};var xn={};xn={dismiss:`Zrušiť`};var Sn={};Sn={dismiss:`Opusti`};var Cn={};Cn={dismiss:`Odbaci`};var wn={};wn={dismiss:`Avvisa`};var Tn={};Tn={dismiss:`Kapat`};var En={};En={dismiss:`Скасувати`};var Dn={};Dn={dismiss:`取消`};var On={};On={dismiss:`關閉`};var kn={};kn={"ar-AE":Jt,"bg-BG":Yt,"cs-CZ":Xt,"da-DK":Zt,"de-DE":Qt,"el-GR":$t,"en-US":en,"es-ES":tn,"et-EE":nn,"fi-FI":rn,"fr-FR":an,"he-IL":on,"hr-HR":sn,"hu-HU":cn,"it-IT":ln,"ja-JP":un,"ko-KR":dn,"lt-LT":fn,"lv-LV":pn,"nb-NO":mn,"nl-NL":hn,"pl-PL":gn,"pt-BR":_n,"pt-PT":vn,"ro-RO":yn,"ru-RU":bn,"sk-SK":xn,"sl-SI":Sn,"sr-SP":Cn,"sv-SE":wn,"tr-TR":Tn,"uk-UA":En,"zh-CN":Dn,"zh-TW":On};function An(e){return e&&e.__esModule?e.default:e}function jn(e){let{onDismiss:t,...n}=e,r=ve(An(kn),`@react-aria/overlays`),i=F(n,r.format(`dismiss`)),a=()=>{t&&t()};return z.createElement(We,null,z.createElement(`button`,{...i,tabIndex:-1,onClick:a,style:{width:1,height:1}}))}var Mn=z.forwardRef(({children:e,...t},n)=>{let r=G(!1),i=H(P),a=o(i||{},{...t,register(){r.current=!0,i&&i.register()}});return a.ref=p(n||i?.ref),ie(i,a.ref),U(()=>{r.current||=(process.env.NODE_ENV!==`production`&&console.warn(`A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component.`),!0)},[]),z.createElement(P.Provider,{value:a},e)});function Nn({children:e}){let t=W(()=>({register:()=>{}}),[]);return z.createElement(P.Provider,{value:t},e)}var Pn=z.createContext(null);function Fn(e){let t=u(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,a]=K(!1),o=W(()=>({contain:i,setContain:a}),[i,a]),{getContainer:s}=tt();if(!e.portalContainer&&s&&(n=s()),!n)return null;let c=e.children;return e.disableFocusManagement||(c=z.createElement(Je,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!r},c)),c=z.createElement(Pn.Provider,{value:o},z.createElement(Nn,null,z.createElement(ee.Provider,{value:null},c))),at.createPortal(c,n)}function In(){let e=H(Pn)?.setContain;s(()=>{e?.(!0)},[e])}var X=B(null),Ln=B(null),Rn=it(function(e,t){[e,t]=c(e,t,X);let n=H($),r=et(e),i=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,a=rt(t,i.isOpen),o=e.isExiting||!e.shouldSkipAnimation&&a||!1,s=Be(),{direction:l}=_e();if(s){let t=e.children;return typeof t==`function`&&(t=t({trigger:e.trigger||null,placement:`bottom`,isEntering:!1,isExiting:!1,defaultChildren:null})),z.createElement(z.Fragment,null,t)}return i&&!i.isOpen&&!o?null:z.createElement(zn,{...e,triggerRef:e.triggerRef,state:i,popoverRef:t,isExiting:o,dir:l})});function zn({state:e,isExiting:t,UNSTABLE_portalContainer:n,clearContexts:r,...i}){let a=G(null),c=G(null),u=H(Ln),f=u&&i.trigger===`SubmenuTrigger`,[p,m]=K(!1),{popoverProps:h,underlayProps:g,arrowProps:_,placement:v,triggerAnchorPoint:y}=qt({...i,offset:i.offset??8,arrowRef:a,groupRef:f?u:c},e),b=i.popoverRef,x=nt(b,!!v&&p),S=i.isEntering||!i.shouldSkipAnimation&&x||!1,C=d({...i,defaultClassName:`react-aria-Popover`,values:{trigger:i.trigger||null,placement:v,isEntering:S,isExiting:t}}),T=!i.isNonModal||i.trigger===`SubmenuTrigger`||i.trigger===`PreviewTrigger`,[E,D]=K(i.trigger===`PreviewTrigger`);s(()=>{b.current&&D(T&&!b.current.querySelector(`[role=dialog]`))},[b,T]),U(()=>{E&&i.trigger!==`PreviewTrigger`&&(i.trigger!==`SubmenuTrigger`||te()!==`pointer`)&&b.current&&!w(b.current)&&j(b.current)},[E,b,i.trigger]);let ee=W(()=>{let e=C.children;for(let t of[X,...r??[]])e=z.createElement(t.Provider,{value:null},e);return e},[C.children,r]),[O,ne]=K(null),k=V(()=>{i.triggerRef.current&&ne(i.triggerRef.current.getBoundingClientRect().width+`px`)},[i.triggerRef]);s(k,[k]),$e({ref:C.style?.[`--trigger-width`]?void 0:i.triggerRef,onResize:k});let re={...h.style,"--trigger-anchor-point":y?`${y.x}px ${y.y}px`:void 0,...C.style,"--trigger-width":C.style?.[`--trigger-width`]||O};s(()=>It(()=>m(!0)),[]);let A=z.createElement(l.div,{...o(R(i,{global:!0}),h),...C,id:E?i.id:void 0,role:E?`dialog`:void 0,tabIndex:E?-1:void 0,"aria-label":i[`aria-label`],"aria-labelledby":i[`aria-labelledby`],ref:b,slot:i.slot||void 0,style:re,dir:i.dir,"data-trigger":i.trigger,"data-placement":v,"data-entering":S||void 0,"data-exiting":t||void 0},!i.isNonModal&&z.createElement(jn,{onDismiss:e.close}),z.createElement(Xe.Provider,{value:{..._,placement:v,ref:a}},ee),z.createElement(jn,{onDismiss:e.close}));return f?z.createElement(Fn,{...i,shouldContainFocus:E&&i.trigger!==`PreviewTrigger`,isExiting:t,portalContainer:n??u?.current??void 0},A):z.createElement(Fn,{...i,shouldContainFocus:E&&i.trigger!==`PreviewTrigger`,isExiting:t,portalContainer:n},!i.isNonModal&&e.isOpen&&z.createElement(`div`,{"data-testid":`underlay`,...g,style:{position:`fixed`,inset:0}}),z.createElement(`div`,{ref:c,style:{display:`contents`}},z.createElement(Ln.Provider,{value:c},A)))}var Bn=B({}),Vn={};Vn={longPressMessage:`اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة`};var Hn={};Hn={longPressMessage:`Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто`};var Un={};Un={longPressMessage:`Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku`};var Wn={};Wn={longPressMessage:`Langt tryk eller tryk på Alt + pil ned for at åbne menuen`};var Gn={};Gn={longPressMessage:`Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen`};var Kn={};Kn={longPressMessage:`Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού`};var qn={};qn={longPressMessage:`Long press or press Alt + ArrowDown to open menu`};var Jn={};Jn={longPressMessage:`Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú`};var Yn={};Yn={longPressMessage:`Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool`};var Xn={};Xn={longPressMessage:`Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli`};var Zn={};Zn={longPressMessage:`Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu.`};var Qn={};Qn={longPressMessage:`לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט`};var $n={};$n={longPressMessage:`Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika`};var er={};er={longPressMessage:`Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához`};var tr={};tr={longPressMessage:`Premi a lungo o premi Alt + Freccia giù per aprire il menu`};var nr={};nr={longPressMessage:`長押しまたは Alt+下矢印キーでメニューを開く`};var rr={};rr={longPressMessage:`길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기`};var ir={};ir={longPressMessage:`Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“.`};var ar={};ar={longPressMessage:`Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa`};var or={};or={longPressMessage:`Langt trykk eller trykk Alt + PilNed for å åpne menyen`};var sr={};sr={longPressMessage:`Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen`};var cr={};cr={longPressMessage:`Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu`};var lr={};lr={longPressMessage:`Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu`};var ur={};ur={longPressMessage:`Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu`};var dr={};dr={longPressMessage:`Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul`};var fr={};fr={longPressMessage:`Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню`};var pr={};pr={longPressMessage:`Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol`};var mr={};mr={longPressMessage:`Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol`};var hr={};hr={longPressMessage:`Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni`};var gr={};gr={longPressMessage:`Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn`};var _r={};_r={longPressMessage:`Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın`};var vr={};vr={longPressMessage:`Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню`};var yr={};yr={longPressMessage:`长按或按 Alt + 向下方向键以打开菜单`};var br={};br={longPressMessage:`長按或按 Alt+向下鍵以開啟功能表`};var xr={};xr={"ar-AE":Vn,"bg-BG":Hn,"cs-CZ":Un,"da-DK":Wn,"de-DE":Gn,"el-GR":Kn,"en-US":qn,"es-ES":Jn,"et-EE":Yn,"fi-FI":Xn,"fr-FR":Zn,"he-IL":Qn,"hr-HR":$n,"hu-HU":er,"it-IT":tr,"ja-JP":nr,"ko-KR":rr,"lt-LT":ir,"lv-LV":ar,"nb-NO":or,"nl-NL":sr,"pl-PL":cr,"pt-BR":lr,"pt-PT":ur,"ro-RO":dr,"ru-RU":fr,"sk-SK":pr,"sl-SI":mr,"sr-SP":hr,"sv-SE":gr,"tr-TR":_r,"uk-UA":vr,"zh-CN":yr,"zh-TW":br};function Sr(e){let{onContextMenu:t}=e,n=G(!1),{longPressProps:r}=Ne({onLongPressStart(){n.current=!1},onLongPress(e){n.current?n.current=!1:t?.({target:e.target,x:e.x,y:e.y})}});return t?{contextMenuProps:o(C()?r:{},{onContextMenu(e){e.stopPropagation(),e.preventDefault(),n.current=!0;let r=e.currentTarget.getBoundingClientRect();t({target:e.currentTarget,x:e.clientX-r.x,y:e.clientY-r.y})},onKeyDown(e){if(A()&&e.ctrlKey&&e.key===`Enter`){n.current=!1;let r=e.currentTarget;e.stopPropagation(),setTimeout(()=>{if(n.current)n.current=!1;else{let e=r.getBoundingClientRect();t({target:r,x:e.width/2,y:e.height/2})}},10)}}})}:{contextMenuProps:{}}}function Cr(e,t,n){let{type:i}=e,{isOpen:a}=t;U(()=>{n&&n.current&&Ze.set(n.current,t.close)});let o;i===`menu`?o=!0:i===`listbox`&&(o=`listbox`);let s=r();return{triggerProps:{"aria-haspopup":o,"aria-expanded":a,"aria-controls":a?s:void 0,onPress:t.toggle},overlayProps:{id:s}}}function wr(e){return e&&e.__esModule?e.default:e}function Tr(e,t,n){let{type:i=`menu`,isDisabled:a,trigger:o=`press`}=e,s=r(),{triggerProps:c,overlayProps:l}=Cr({type:i},t,n),u=(e,n,r=`first`)=>{if(!e||n.isDefaultPrevented())return!1;t.toggle(r)},{keyboardProps:d}=M({isDisabled:a,shortcuts:{Enter:e=>u(o!==`longPress`,e,`first`)," ":e=>u(o!==`longPress`,e,`first`),ArrowDown:e=>u(o!==`longPress`,e,`first`),ArrowUp:e=>u(o!==`longPress`,e,`last`),"Alt+Enter":e=>u(o===`longPress`,e,`first`),"Alt+ ":e=>u(o===`longPress`,e,`first`),"Alt+ArrowDown":e=>u(!0,e,`first`),"Alt+ArrowUp":e=>u(!0,e,`last`)}}),f=ve(wr(xr),`@react-aria/menu`),{longPressProps:p}=Ne({isDisabled:a||o!==`longPress`,accessibilityDescription:f.format(`longPressMessage`),onLongPressStart(){t.close()},onLongPress(){t.open(`first`)}}),m={preventFocusOnPress:!0,onPressStart(e){e.pointerType!==`touch`&&e.pointerType!==`keyboard`&&!a&&(N(e.target),t.open(e.pointerType===`virtual`?`first`:null))},onPress(e){e.pointerType===`touch`&&!a&&(N(e.target),t.toggle())}};delete c.onPress;let{contextMenuProps:h}=Sr({onContextMenu(e){let n=e.target.getBoundingClientRect();t.setPoint({x:n.x+e.x,y:n.y+e.y}),t.open()}});U(()=>{if(t.isOpen&&o===`contextMenu`){let e=e=>{(e.button===2||e.button===0&&e.ctrlKey===!0)&&T(e)===document.body&&t.close()};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)}},[t,o]);let g;if(o===`press`)g={...m,...d};else if(o===`longPress`)g={...p,...d};else if(o===`contextMenu`){g=h;let{"aria-haspopup":e,"aria-expanded":t,"aria-controls":n,...r}=c;c=r}return{menuTriggerProps:{...c,...g,id:s},menuProps:{...l,"aria-labelledby":s,autoFocus:t.focusStrategy||!0,onClose:t.close}}}var Er=new WeakMap;function Dr(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:i,onKeyUp:a,...s}=e;!e[`aria-label`]&&!e[`aria-labelledby`]&&process.env.NODE_ENV!==`production`&&console.warn(`An aria-label or aria-labelledby prop is required for accessibility.`);let c=R(e,{labelable:!0}),{listProps:l}=_t({...s,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:`override`});return Er.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:o(c,{onKeyDown:i,onKeyUp:a},{role:`menu`,...l,onKeyDown:t=>{(t.key!==`Escape`||e.shouldUseVirtualFocus)&&l.onKeyDown?.(t)}})}}function Or(e,t,r){let{id:i,key:a,closeOnSelect:s,shouldCloseOnSelect:c,isVirtualized:l,"aria-haspopup":u,onPressStart:d,onPressUp:f,onPress:p,onPressChange:m,onPressEnd:h,onClick:g,onHoverStart:_,onHoverChange:v,onHoverEnd:y,onKeyDown:b,onKeyUp:x,onFocus:S,onFocusChange:C,onBlur:w,selectionManager:E=t.selectionManager}=e,D=!!u,ee=D&&e[`aria-expanded`]===`true`,O=e.isDisabled??E.isDisabled(a),te=e.isSelected??E.isSelected(a),k=Er.get(t),A=t.collection.getItem(a),j=e.onClose||k.onClose,ie=le(),oe=()=>{if(!D&&(A?.props?.onAction?A.props.onAction():e.onAction&&e.onAction(a),k.onAction)){let e=k.onAction;e(a,A?.value)}},N=`menuitem`;D||(E.selectionMode===`single`?N=`menuitemradio`:E.selectionMode===`multiple`&&(N=`menuitemcheckbox`));let de=n(),fe=n(),pe=n(),P={id:i,"aria-disabled":O||void 0,role:N,"aria-label":e[`aria-label`],"aria-labelledby":de,"aria-describedby":[e[`aria-describedby`],fe,pe].filter(Boolean).join(` `)||void 0,"aria-controls":e[`aria-controls`],"aria-haspopup":u,"aria-expanded":e[`aria-expanded`]};if(E.selectionMode!==`none`&&!D&&(P[`aria-checked`]=te),l){let e=Number(A?.index);P[`aria-posinset`]=Number.isNaN(e)?void 0:e+1,P[`aria-setsize`]=yt(t.collection)}let me=G(!1),ge=e=>{m?.(e),me.current=e},F=G(null),_e=e=>{e.pointerType!==`keyboard`&&(F.current={pointerType:e.pointerType}),e.pointerType===`mouse`&&(me.current||e.target.click()),f?.(e)},ve=e=>{g?.(e),oe(),ce(e,ie,A.props.href,A?.props.routerOptions);let t=F.current?.pointerType===`keyboard`?F.current?.key===`Enter`||E.selectionMode===`none`||E.isLink(a):E.selectionMode!==`multiple`||E.isLink(a);t=c??s??t,j&&!D&&t&&j(),F.current=null},{itemProps:I,isFocused:ye}=je({id:i,selectionManager:E,key:a,ref:r,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:`none`,shouldUseVirtualFocus:k.shouldUseVirtualFocus}),{pressProps:be,isPressed:xe}=he({onPressStart:d,onPress:p,onPressUp:_e,onPressChange:ge,onPressEnd:h,isDisabled:O}),{hoverProps:Se}=se({isDisabled:O,onHoverStart(e){!ne()&&!(ee&&u)&&(E.setFocused(!0),E.setFocusedKey(a)),_?.(e)},onHoverChange:v,onHoverEnd:y}),{keyboardProps:Ce}=M({shortcuts:{" ":e=>{F.current={pointerType:`keyboard`,key:` `},T(e).click(),ae(`keyboard`)},Enter:e=>{F.current={pointerType:`keyboard`,key:`Enter`};let t=T(e);if(t.tagName!==`A`)t.click(),ae(`keyboard`);else return ae(`keyboard`),{shouldPreventDefault:!1,shouldContinuePropagation:!1}}},onKeyDown:b,onKeyUp:x}),{focusableProps:we}=re({onBlur:w,onFocus:S,onFocusChange:C},r),Te=R(A?.props);delete Te.id;let Ee=ue(A?.props);return{menuItemProps:{...P,...o(Te,Ee,D?{onFocus:I.onFocus,"data-collection":I[`data-collection`],"data-key":I[`data-key`]}:I,be,Se,Ce,we,k.shouldUseVirtualFocus||D?{onMouseDown:e=>e.preventDefault()}:void 0,O?void 0:{onClick:ve}),tabIndex:I.tabIndex!=null&&ee&&!k.shouldUseVirtualFocus?-1:I.tabIndex},labelProps:{id:de},descriptionProps:{id:fe},keyboardShortcutProps:{id:pe},isFocused:ye,isFocusVisible:ye&&E.isFocused&&ne()&&!ee,isSelected:te,isPressed:xe,isDisabled:O}}function kr(e){let{heading:t,"aria-label":n}=e,i=r();return{itemProps:{role:`presentation`},headingProps:t?{id:i,role:`presentation`}:{},groupProps:{role:`group`,"aria-label":n,"aria-labelledby":t?i:void 0}}}var Ar=2,jr=50,Mr=1e3,Nr=Math.PI/12;function Pr(e){let{menuRef:t,submenuRef:n,isOpen:r,isDisabled:i}=e,a=G(void 0),o=G(void 0),c=G(0),l=G(void 0),u=G(void 0),d=G(void 0),f=G(2),[p,m]=K(!1);$e({ref:r?n:void 0,onResize:()=>{n.current&&(o.current=n.current.getBoundingClientRect(),d.current=void 0)}});let h=()=>{m(!1),f.current=Ar,a.current=void 0},g=k(),v=O(e=>{p&&e.preventDefault()});U(()=>{p&&t.current?t.current.style.pointerEvents=`none`:t.current.style.pointerEvents=``},[t,p]),s(()=>{let e=n.current,s=t.current;if(i||!e||!r||g!==`pointer`||!s){h();return}o.current=e.getBoundingClientRect();let p=e=>{if(e.pointerType===`touch`||e.pointerType===`pen`)return;let t=Date.now();if(t-c.current<jr)return;clearTimeout(l.current),clearTimeout(u.current);let{clientX:n,clientY:r}=e;if(!a.current){a.current={x:n,y:r};return}if(!o.current)return;if(d.current||=n>o.current.right?`left`:`right`,n<s.getBoundingClientRect().left||n>s.getBoundingClientRect().right||r<s.getBoundingClientRect().top||r>s.getBoundingClientRect().bottom){h();return}let i=a.current.x,p=a.current.y,g=d.current===`right`?o.current.left-i:i-o.current.right,v=Math.atan2(p-o.current.top,g)+Nr,y=Math.atan2(p-o.current.bottom,g)-Nr,b=Math.atan2(p-r,d.current===`left`?-(n-i):n-i),x=b<v&&b>y;f.current=x?Math.min(f.current+1,Ar):Math.max(f.current-1,0),f.current>=Ar?m(!0):m(!1),c.current=t,a.current={x:n,y:r},x&&(l.current=setTimeout(()=>{h(),u.current=setTimeout(()=>{let e=document.elementFromPoint(n,r);e&&_(s,e)&&e.dispatchEvent(new PointerEvent(`pointerover`,{bubbles:!0,cancelable:!0}))},100)},Mr))};return window.addEventListener(`pointermove`,p),process.env.NODE_ENV!==`test`&&window.addEventListener(`pointerdown`,v,!0),()=>{window.removeEventListener(`pointermove`,p),process.env.NODE_ENV!==`test`&&window.removeEventListener(`pointerdown`,v,!0),clearTimeout(l.current),clearTimeout(u.current),f.current=Ar}},[i,r,t,g,m,n])}function Fr(e,t,n){let{parentMenuRef:i,submenuRef:a,type:o=`menu`,isDisabled:c,delay:l=200,shouldUseVirtualFocus:u}=e,d=r(),f=r(),{direction:p}=_e(),m=G(void 0),h=V(()=>{m.current&&=(clearTimeout(m.current),void 0)},[m]),g=V(e=>{h(),t.open(e)},[t,h]),v=V(()=>{h(),t.close()},[t,h]);s(()=>()=>{h()},[h]);let{keyboardProps:y}=M({shortcuts:{ArrowLeft:e=>{if(!w(e.currentTarget))return!1;if(p===`ltr`&&_(e.currentTarget,T(e)))v(),!u&&n.current&&N(n.current);else return!1},ArrowRight:e=>{if(!w(e.currentTarget))return!1;if(p===`rtl`&&_(e.currentTarget,T(e)))v(),!u&&n.current&&N(n.current);else return!1},Escape:e=>{if(!w(e.currentTarget))return!1;if(_(a.current,T(e)))v(),!u&&n.current&&N(n.current);else return!1}}}),x={id:f,"aria-labelledby":d,submenuLevel:t.submenuLevel,...o===`menu`&&{onClose:t.closeAll,autoFocus:t.focusStrategy??void 0,...y}},{keyboardProps:S}=M({shortcuts:{ArrowRight:()=>{if(!c){if(p===`ltr`){t.isOpen||g(`first`),o===`menu`&&a?.current&&b()===n?.current&&N(a.current);return}if(t.isOpen){v();return}return!1}return!1},ArrowLeft:()=>{if(!c){if(p===`rtl`){t.isOpen||g(`first`),o===`menu`&&a?.current&&b()===n?.current&&N(a.current);return}if(t.isOpen){v();return}return!1}return!1}}});return ge(i,`focusin`,e=>{t.isOpen&&_(i.current,T(e))&&T(e)!==n.current&&v()}),Pr({menuRef:i,submenuRef:a,isOpen:t.isOpen,isDisabled:c}),{submenuTriggerProps:{onKeyDown:S.onKeyDown,onKeyUp:S.onKeyUp,id:d,"aria-controls":t.isOpen?f:void 0,"aria-haspopup":c?void 0:o,"aria-expanded":t.isOpen?`true`:`false`,onPressStart:e=>{!c&&(e.pointerType===`virtual`||e.pointerType===`keyboard`)&&g(`first`)},onPress:e=>{!c&&(e.pointerType===`touch`||e.pointerType===`mouse`)&&g()},onHoverChange:e=>{c||(e&&!t.isOpen?m.current||=setTimeout(()=>{g()},l):e||h())},isOpen:t.isOpen},submenuProps:x,popoverProps:{isNonModal:!0,shouldCloseOnInteractOutside:e=>e!==n.current}}}function Ir(e){let t=et(e),[n,r]=K(null),[i,a]=K([]),o=()=>{a([]),t.close()},s=(e,t)=>{a(n=>t>n.length?n:[...n.slice(0,t),e])},c=(e,t)=>{a(n=>n[t]===e?n.slice(0,t):n)};return{focusStrategy:n,...t,open(e=null){r(e),t.open()},toggle(e=null){r(e),t.toggle()},close(){o()},expandedKeysStack:i,openSubmenu:s,closeSubmenu:c}}function Lr(e,t){let{triggerKey:n}=e,{expandedKeysStack:r,openSubmenu:i,closeSubmenu:a,close:o}=t,[s]=K(r?.length),c=W(()=>r[s]===n,[r,n,s]),[l,u]=K(null),d=V(e=>{u(e??null),i(n,s)},[i,s,n]),f=V(()=>{u(null),a(n,s)},[a,s,n]),p=V(e=>{u(e??null),c?f():d(e)},[f,d,c]);return W(()=>({focusStrategy:l,isOpen:c,open:d,close:f,closeAll:o,submenuLevel:s,setOpen:()=>{},toggle:p,point:null,setPoint:()=>{}}),[c,d,f,o,l,p,s])}var Rr=class{constructor(e,{expandedKeys:t}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,t||=new Set;let n=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&(e.type===`section`||t.has(e.key)))for(let t of e.childNodes)n(t)};for(let t of e)n(t);let r=null,i=0;for(let[e,t]of this.keyMap)r?(r.nextKey=e,t.prevKey=r.key):(this.firstKey=e,t.prevKey=void 0),t.type===`item`&&(t.index=i++),r=t,r.nextKey=void 0;this.lastKey=r?.key??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey??null:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)??null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}};function zr(e){let{onExpandedChange:t}=e,[n,r]=I(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),i=Me(e),a=W(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=Pe(e,V(e=>new Rr(e,{expandedKeys:n}),[n]),null);return U(()=>{i.focusedKey!=null&&!o.getItem(i.focusedKey)&&i.setFocusedKey(null)},[o,i.focusedKey]),{collection:o,expandedKeys:n,disabledKeys:a,toggleKey:e=>{r(Br(n,e))},setExpandedKeys:r,selectionManager:new Ae(o,i)}}function Br(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}var Vr=B(null),Z=B(null),Hr=B(null),Ur=B(null);function Wr(e){let t=Ir(e),n=G(null),{menuTriggerProps:r,menuProps:i}=Tr({...e,type:`menu`},t,n),a=G(null);return Be()?null:z.createElement(f,{values:[[Vr,{...i,ref:a}],[$,t],[Hr,t],[X,{trigger:`MenuTrigger`,triggerRef:n,scrollRef:a,placement:`bottom start`,"aria-labelledby":i[`aria-labelledby`],offset:e.trigger===`contextMenu`?0:void 0}]]},z.createElement(Mn,{...r,ref:n,isPressed:t.isOpen},e.children))}var Gr=B(null),Kr=class extends Se{static{this.type=`submenutrigger`}filter(e,t,n){let r=e.getItem(this.firstChildKey);if(r&&n(r.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}},qr=Te(Kr,(e,t,n)=>{let{CollectionBranch:r}=H(ke),i=H(Z),a=H(Hr),o=Lr({triggerKey:n.key},a),s=G(null),c=p(t),{parentMenuRef:l,shouldUseVirtualFocus:u}=H(Gr),{submenuTriggerProps:d,submenuProps:m,popoverProps:h}=Fr({parentMenuRef:l,submenuRef:s,delay:e.delay,shouldUseVirtualFocus:u},o,c);return z.createElement(f,{values:[[Q,{...d,onAction:void 0,ref:c}],[Vr,{ref:s,...m}],[$,o],[X,{trigger:`SubmenuTrigger`,triggerRef:c,placement:`end top`,"aria-labelledby":m[`aria-labelledby`],...h}]]},z.createElement(r,{collection:i.collection,parent:n}),e.children[1])},e=>e.children[0]),Jr=it(function(e,t){return[e,t]=c(e,t,Vr),z.createElement(ze,{content:z.createElement(Re,e)},n=>z.createElement(Yr,{props:e,collection:n,menuRef:t}))});function Yr({props:e,collection:t,menuRef:n}){[e,n]=c(e,n,fe);let{filter:r,...i}=e,a=W(()=>r?t.filter(r):t,[t,r]),s=zr({...e,collection:a,children:void 0}),u=H(Hr),{isVirtualized:p,CollectionRoot:m}=H(ke),{menuProps:h}=Dr({...e,isVirtualized:p,onClose:e.onClose||u?.close},s,n),g=d({...e,children:void 0,defaultClassName:`react-aria-Menu`,values:{isEmpty:s.collection.size===0}}),_=null;s.collection.size===0&&e.renderEmptyState&&(_=z.createElement(`div`,{role:`menuitem`,style:{display:`contents`}},e.renderEmptyState()));let v=R(e,{global:!0});return z.createElement(Je,null,z.createElement(l.div,{...o(v,g,h),ref:n,slot:e.slot||void 0,"data-empty":s.collection.size===0||void 0,onScroll:e.onScroll},z.createElement(f,{values:[[Z,s],[ut,{elementType:`div`}],[Ce,{name:`MenuSection`,render:Zr}],[Gr,{parentMenuRef:n,shouldUseVirtualFocus:i?.shouldUseVirtualFocus}],[Q,{shouldCloseOnSelect:e.shouldCloseOnSelect}],[fe,null],[de,null],[Ur,s.selectionManager],[Hr,u??Ir({})]]},z.createElement(Ke,null,z.createElement(m,{collection:s.collection,persistedKeys:De(s.selectionManager.focusedKey),scrollRef:n}))),_))}var Xr=class extends Ae{constructor(e,t){super(e.collection,t),this.parent=e}get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,t){return this.parent.setFocusedKey(e,t)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}};function Zr(e,n,r,i=`react-aria-MenuSection`){let s=H(Z),{CollectionBranch:c}=H(ke),[u,p]=a(),{headingProps:m,groupProps:h}=kr({heading:p,"aria-label":r.props[`aria-label`]??void 0}),g=d({...e,id:void 0,children:void 0,defaultClassName:i,className:r.props?.className,style:r.props?.style,values:void 0}),_=H(Ur),v=Me(e),y=e.selectionMode==null?_:new Xr(_,v),b=t(Q)?.shouldCloseOnSelect,x=R(e,{global:!0});return delete x.id,z.createElement(l.section,{...o(x,g,h),ref:n},z.createElement(f,{values:[[st,{...m,ref:u}],[Ur,y],[Q,{shouldCloseOnSelect:e.shouldCloseOnSelect??b}]]},z.createElement(c,{collection:s.collection,parent:r})))}var Qr=Te(xe,Zr),Q=B(null),$r=Ie(be,function(n,r,i){[n,r]=c(n,r,Q);let a=t(Q)?.id,s=H(Z),u=p(r),m=H(Ur),{isVirtualized:h}=H(ke),{menuItemProps:g,labelProps:_,descriptionProps:v,keyboardShortcutProps:y,...b}=Or({...n,id:a,key:i.key,selectionManager:m,isVirtualized:h},s,u),{hoverProps:x,isHovered:S}=se({isDisabled:b.isDisabled}),C=d({...n,id:void 0,children:i.rendered,defaultClassName:`react-aria-MenuItem`,values:{...b,isHovered:S,isFocusVisible:b.isFocusVisible,selectionMode:m.selectionMode,selectionBehavior:m.selectionBehavior,hasSubmenu:!!n[`aria-haspopup`],isOpen:n[`aria-expanded`]===`true`}}),w=n.href?l.a:l.div,T=R(n,{global:!0});return delete T.id,delete T.onClick,z.createElement(w,{...o(T,C,g,x),ref:u,"data-disabled":b.isDisabled||void 0,"data-hovered":S||void 0,"data-focused":b.isFocused||void 0,"data-focus-visible":b.isFocusVisible||void 0,"data-pressed":b.isPressed||void 0,"data-selected":b.isSelected||void 0,"data-selection-mode":m.selectionMode===`none`?void 0:m.selectionMode,"data-has-submenu":!!n[`aria-haspopup`]||void 0,"data-open":n[`aria-expanded`]===`true`||void 0},z.createElement(f,{values:[[Ue,{slots:{[e]:_,label:_,description:v}}],[Bn,y],[Ge,{isSelected:b.isSelected}]]},C.children))});Ie(Le,function(e,t,n){let r=H(Z),{isLoading:i,onLoadMore:a,scrollOffset:s,...c}=e,u=G(null);bt(W(()=>({onLoadMore:a,collection:r?.collection,sentinelRef:u,scrollOffset:s}),[a,s,r?.collection]),u);let f=d({...c,id:void 0,children:n.rendered,defaultClassName:`react-aria-MenuLoadingIndicator`,values:void 0});return z.createElement(z.Fragment,null,z.createElement(`div`,{style:{position:`relative`,width:0,height:0},inert:Oe(!0)},z.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:u,style:{position:`absolute`,height:1,width:1}})),i&&f.children&&z.createElement(z.Fragment,null,z.createElement(l.div,{...o(R(e,{global:!0}),{tabIndex:-1}),...f,role:`menuitem`,ref:t},f.children)))});function ei(e,t){let{role:r=`dialog`,isEntering:i}=e,a=n();a=e[`aria-label`]?void 0:a;let o=n();o=r===`alertdialog`&&!e[`aria-describedby`]?o:void 0;let s=G(!1);U(()=>{if(!i&&t.current&&!w(t.current)){j(t.current);let e=setTimeout(()=>{(b()===t.current||b()===document.body)&&(s.current=!0,t.current&&(t.current.blur(),j(t.current)),s.current=!1)},500);return()=>{clearTimeout(e)}}},[t,i]),In();let c=G(!1);U(()=>{if(process.env.NODE_ENV!==`production`&&!c.current&&t.current){let e=t.current,n=e.hasAttribute(`aria-label`),r=e.hasAttribute(`aria-labelledby`);!n&&!r&&(console.warn(`A dialog must have a title for accessibility. Either provide an aria-label or aria-labelledby prop, or render a heading element inside the dialog.`),c.current=!0)}});let l=e[`aria-describedby`]??o;return{dialogProps:{...R(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e[`aria-labelledby`]??a,"aria-describedby":l,onBlur:e=>{s.current&&e.stopPropagation()}},titleProps:{id:a},contentProps:{id:o}}}var ti=B(null),$=B(null);function ni(e){let t=Ir(e),n=G(null),{triggerProps:i,overlayProps:a}=Cr({type:`dialog`},t,n);return i.id=r(),a[`aria-labelledby`]=i.id,Be()?null:z.createElement(f,{values:[[$,t],[Hr,t],[ti,a],[X,{trigger:`DialogTrigger`,triggerRef:n,id:a.id,"aria-labelledby":a[`aria-labelledby`]}]]},z.createElement(Mn,{...i,ref:n,isPressed:t.isOpen},e.children))}var ri=it(function(t,n){let r=t[`aria-labelledby`];[t,n]=c(t,n,ti);let{dialogProps:i,titleProps:a,contentProps:s}=ei({...t,"aria-labelledby":r},n),u=H($);!i[`aria-label`]&&!i[`aria-labelledby`]&&(t[`aria-labelledby`]?i[`aria-labelledby`]=t[`aria-labelledby`]:process.env.NODE_ENV!==`production`&&console.warn(`If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.`));let p=d({defaultClassName:`react-aria-Dialog`,className:t.className,style:t.style,children:t.children,values:{close:u?.close||(()=>{})}}),m=R(t,{global:!0});return z.createElement(l.section,{...o(m,p,i),render:t.render,ref:n,slot:t.slot||void 0},z.createElement(f,{values:[[He,{slots:{[e]:{},title:{...a,level:2}}}],[Ue,{slots:{[e]:{},description:s}}],[Ve,{slots:{[e]:{},close:{onPress:()=>u?.close()}}}]]},p.children))});export{ot as A,_t as C,ut as D,ft as E,ct as O,yt as S,mt as T,It as _,Wr as a,wt as b,Jr as c,Rn as d,X as f,Vt as g,jn as h,$ as i,st as k,qr as l,Fn as m,ri as n,$r as o,In as p,ti as r,Qr as s,ni as t,Tr as u,Ot as v,gt as w,bt as x,Tt as y};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{m as e}from"./utils-a89BELgQ.js";import{A as t,B as n,E as r,G as i,H as a,J as o,L as s,R as c,W as l,Y as u,f as d,l as f}from"./useHover-B7zqOZ-m.js";import p,{useContext as m,useEffect as h,useMemo as g,useRef as _}from"react";var v=class{constructor(e,t,n,r){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=e=>{if(e.nodeType===Node.ELEMENT_NODE){let t=e.shadowRoot;if(t){let e=this._doc.createTreeWalker(t,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(e),NodeFilter.FILTER_ACCEPT}if(typeof this.filter==`function`)return this.filter(e);if(this.filter?.acceptNode)return this.filter.acceptNode(e);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=t,this.filter=r??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=t,this._walkerStack.unshift(e.createTreeWalker(t,n,this._acceptNode));let i=t.shadowRoot;if(i){let e=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(e)}}get currentNode(){return this._currentNode}set currentNode(e){if(!n(this.root,e))throw Error(`Cannot set currentNode to a node that is not contained by the root node.`);let t=[],r=e,i=e;for(this._currentNode=e;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let e=r,n=this._doc.createTreeWalker(e,this.whatToShow,{acceptNode:this._acceptNode});t.push(n),n.currentNode=i,this._currentSetFor.add(n),r=i=e.host}else r=r.parentNode;let a=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});t.push(a),a.currentNode=i,this._currentSetFor.add(a),this._walkerStack=t}get doc(){return this._doc}firstChild(){let e=this.currentNode,t=this.nextNode();return n(e,t)?(t&&(this.currentNode=t),t):(this.currentNode=e,null)}lastChild(){let e=this._walkerStack[0].lastChild();return e&&(this.currentNode=e),e}nextNode(){let e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){let t;if(typeof this.filter==`function`?t=this.filter(e):this.filter?.acceptNode&&(t=this.filter.acceptNode(e)),t===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let n=this.nextNode();return n&&(this.currentNode=n),n}return e&&(this.currentNode=e),e}if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.nextNode();return e&&(this.currentNode=e),e}return null}previousNode(){let e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e)){if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}return null}return null}let t=e.previousNode();if(t){if(t.shadowRoot){let e;if(typeof this.filter==`function`?e=this.filter(t):this.filter?.acceptNode&&(e=this.filter.acceptNode(t)),e===NodeFilter.FILTER_ACCEPT)return t&&(this.currentNode=t),t;let n=this.lastChild();return n&&(this.currentNode=n),n}return t&&(this.currentNode=t),t}if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}};function y(e,t,n,r){return i()?new v(e,t,n,r):e.createTreeWalker(t,n,r)}var b=p.createContext(null),x=`react-aria-focus-scope-restore`,S=null;function C(t){let{children:n,contain:r,restoreFocus:i,autoFocus:s}=t,c=_(null),l=_(null),u=_([]),{parentNode:d}=m(b)||{},f=g(()=>new q({scopeRef:u}),[u]);e(()=>{let e=d||J.root;if(J.getTreeNode(e.scopeRef)&&S&&!P(S,e.scopeRef)){let t=J.getTreeNode(S);t&&(e=t)}e.addChild(f),J.addNode(f)},[f,d]),e(()=>{let e=J.getTreeNode(u);e&&(e.contain=!!r)},[r]),e(()=>{let e=c.current?.nextSibling,t=[],n=e=>e.stopPropagation();for(;e&&e!==l.current;)t.push(e),e.addEventListener(x,n),e=e.nextSibling;return u.current=t,()=>{for(let e of t)e.removeEventListener(x,n)}},[n]),z(u,i,r),k(u,r),V(u,i,r),R(u,s),h(()=>{let e=a(o(u.current?u.current[0]:void 0)),t=null;if(j(e,u.current)){for(let n of J.traverse())n.scopeRef&&j(e,n.scopeRef.current)&&(t=n);t===J.getTreeNode(u)&&(S=t.scopeRef)}},[u]),e(()=>()=>{let e=J.getTreeNode(u)?.parent?.scopeRef??null;(u===S||P(u,S))&&(!e||J.getTreeNode(e))&&(S=e),J.removeTreeNode(u)},[u]);let v=g(()=>w(u),[]),y=g(()=>({focusManager:v,parentNode:f}),[f,v]);return p.createElement(b.Provider,{value:y},p.createElement(`span`,{"data-focus-scope-start":!0,hidden:!0,ref:c}),n,p.createElement(`span`,{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function w(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:s,accept:c}=t,l=r||a(o(n[0]??void 0)),u=n[0].previousElementSibling,d=U(T(n),{tabbable:i,accept:c},n);d.currentNode=j(l,n)?l:u;let f=d.nextNode();return!f&&s&&(d.currentNode=u,f=d.nextNode()),f&&F(f,!0),f},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:s,accept:c}=t,l=r||a(o(n[0]??void 0)),u=n[n.length-1].nextElementSibling,d=U(T(n),{tabbable:i,accept:c},n);d.currentNode=j(l,n)?l:u;let f=d.previousNode();return!f&&s&&(d.currentNode=u,f=d.previousNode()),f&&F(f,!0),f},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=U(T(n),{tabbable:r,accept:i},n);a.currentNode=n[0].previousElementSibling;let o=a.nextNode();return o&&F(o,!0),o},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=U(T(n),{tabbable:r,accept:i},n);a.currentNode=n[n.length-1].nextElementSibling;let o=a.previousNode();return o&&F(o,!0),o}}}function T(e){return e[0].parentElement}function E(e){let t=J.getTreeNode(S);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function D(e){if(!e.form)return Array.from(o(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter(e=>!e.form);let t=e.form.elements.namedItem(e.name),n=u(e);return t instanceof n.RadioNodeList?Array.from(t).filter(e=>e instanceof n.HTMLInputElement):t instanceof n.HTMLInputElement?[t]:[]}function O(e){if(e.checked)return!0;let t=D(e);return t.length>0&&!t.some(e=>e.checked)}function k(n,i){let s=_(void 0),c=_(void 0);e(()=>{let e=n.current;if(!i){c.current&&=(cancelAnimationFrame(c.current),void 0);return}let f=o(e?e[0]:void 0),p=e=>{if(e.key!==`Tab`||e.altKey||e.ctrlKey||e.metaKey||!E(n)||e.isComposing)return;let t=a(f),r=n.current;if(!r||!j(t,r))return;let i=U(T(r),{tabbable:!0},r);if(!t)return;i.currentNode=t;let o=e.shiftKey?i.previousNode():i.nextNode();o||=(i.currentNode=e.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,e.shiftKey?i.previousNode():i.nextNode()),e.preventDefault(),o&&(F(o,!0),o instanceof u(o).HTMLInputElement&&o.select())},m=e=>{(!S||P(S,n))&&j(l(e),n.current)?(S=n,s.current=l(e)):E(n)&&!M(l(e),n)?s.current?F(s.current):S&&S.current&&L(S.current):E(n)&&(s.current=l(e))},h=e=>{c.current&&cancelAnimationFrame(c.current),c.current=requestAnimationFrame(()=>{let i=d(),o=(i===`virtual`||i===null)&&t()&&r(),c=a(f);if(!o&&c&&E(n)&&!M(c,n)){S=n;let t=l(e);t&&t.isConnected?(s.current=t,F(s.current)):S.current&&L(S.current)}})};return f.addEventListener(`keydown`,p,!1),f.addEventListener(`focusin`,m,!1),e?.forEach(e=>e.addEventListener(`focusin`,m,!1)),e?.forEach(e=>e.addEventListener(`focusout`,h,!1)),()=>{f.removeEventListener(`keydown`,p,!1),f.removeEventListener(`focusin`,m,!1),e?.forEach(e=>e.removeEventListener(`focusin`,m,!1)),e?.forEach(e=>e.removeEventListener(`focusout`,h,!1))}},[n,i]),e(()=>()=>{c.current&&cancelAnimationFrame(c.current)},[c])}function A(e){return M(e)}function j(e,t){return!e||!t?!1:t.some(t=>n(t,e))}function M(e,t=null){if(e instanceof Element&&e.closest(`[data-react-aria-top-layer]`))return!0;for(let{scopeRef:n}of J.traverse(J.getTreeNode(t)))if(n&&j(e,n.current))return!0;return!1}function N(e){return M(e,S)}function P(e,t){let n=J.getTreeNode(t)?.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function F(e,t=!1){if(e!=null&&!t)try{f(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function I(e,t=!0){let n=e[0].previousElementSibling,r=T(e),i=U(r,{tabbable:t},e);i.currentNode=n;let a=i.nextNode();return t&&!a&&(r=T(e),i=U(r,{tabbable:!1},e),i.currentNode=n,a=i.nextNode()),a}function L(e,t=!0){F(I(e,t))}function R(e,t){let n=p.useRef(t);h(()=>{if(n.current){S=e;let t=o(e.current?e.current[0]:void 0);!j(a(t),S.current)&&e.current&&L(e.current)}n.current=!1},[e])}function z(t,n,r){e(()=>{if(n||r)return;let e=t.current,i=o(e?e[0]:void 0),a=e=>{let n=l(e);j(n,t.current)?S=t:A(n)||(S=null)};return i.addEventListener(`focusin`,a,!1),e?.forEach(e=>e.addEventListener(`focusin`,a,!1)),()=>{i.removeEventListener(`focusin`,a,!1),e?.forEach(e=>e.removeEventListener(`focusin`,a,!1))}},[t,n,r])}function B(e){let t=J.getTreeNode(S);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function V(t,n,r){let i=_(typeof document<`u`?a(o(t.current?t.current[0]:void 0)):null);e(()=>{let e=t.current,i=o(e?e[0]:void 0);if(!n||r)return;let s=()=>{(!S||P(S,t))&&j(a(i),t.current)&&(S=t)};return i.addEventListener(`focusin`,s,!1),e?.forEach(e=>e.addEventListener(`focusin`,s,!1)),()=>{i.removeEventListener(`focusin`,s,!1),e?.forEach(e=>e.removeEventListener(`focusin`,s,!1))}},[t,r]),e(()=>{let e=o(t.current?t.current[0]:void 0);if(!n)return;let i=n=>{if(n.key!==`Tab`||n.altKey||n.ctrlKey||n.metaKey||!E(t)||n.isComposing)return;let r=e.activeElement;if(!M(r,t)||!B(t))return;let i=J.getTreeNode(t);if(!i)return;let a=i.nodeToRestore,o=U(e.body,{tabbable:!0});o.currentNode=r;let s=n.shiftKey?o.previousNode():o.nextNode();if((!a||!a.isConnected||a===e.body)&&(a=void 0,i.nodeToRestore=void 0),(!s||!M(s,t))&&a){o.currentNode=a;do s=n.shiftKey?o.previousNode():o.nextNode();while(M(s,t));n.preventDefault(),n.stopPropagation(),s?F(s,!0):A(a)?F(a,!0):r.blur()}};return r||e.addEventListener(`keydown`,i,!0),()=>{r||e.removeEventListener(`keydown`,i,!0)}},[t,n,r]),e(()=>{let e=o(t.current?t.current[0]:void 0);if(!n)return;let r=J.getTreeNode(t);if(r)return r.nodeToRestore=i.current??void 0,()=>{let r=J.getTreeNode(t);if(!r)return;let i=r.nodeToRestore,o=a(e);if(n&&i&&(o&&M(o,t)||o===e.body&&B(t))){let n=J.clone();requestAnimationFrame(()=>{if(e.activeElement===e.body){let e=n.getTreeNode(t);for(;e;){if(e.nodeToRestore&&e.nodeToRestore.isConnected){H(e.nodeToRestore);return}e=e.parent}for(e=n.getTreeNode(t);e;){if(e.scopeRef&&e.scopeRef.current&&J.getTreeNode(e.scopeRef)){let t=I(e.scopeRef.current,!0);if(t){H(t);return}}e=e.parent}}})}}},[t,n])}function H(e){e.dispatchEvent(new CustomEvent(x,{bubbles:!0,cancelable:!0}))&&F(e)}function U(e,t,r){let i=t?.tabbable?c:s,a=e?.nodeType===Node.ELEMENT_NODE?e:null,l=o(a),u=y(l,e||l,NodeFilter.SHOW_ELEMENT,{acceptNode(e){return n(t?.from,e)||t?.tabbable&&e.tagName===`INPUT`&&e.getAttribute(`type`)===`radio`&&(!O(e)||u.currentNode.tagName===`INPUT`&&u.currentNode.type===`radio`&&u.currentNode.name===e.name)?NodeFilter.FILTER_REJECT:i(e)&&(!r||j(e,r))&&(!t?.accept||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(u.currentNode=t.from),u}function W(e,t={}){return{focusNext(r={}){let i=e.current;if(!i)return null;let{from:s,tabbable:c=t.tabbable,wrap:l=t.wrap,accept:u=t.accept}=r,d=s||a(o(i)),f=U(i,{tabbable:c,accept:u});n(i,d)&&(f.currentNode=d);let p=f.nextNode();return!p&&l&&(f.currentNode=i,p=f.nextNode()),p&&F(p,!0),p},focusPrevious(r=t){let i=e.current;if(!i)return null;let{from:s,tabbable:c=t.tabbable,wrap:l=t.wrap,accept:u=t.accept}=r,d=s||a(o(i)),f=U(i,{tabbable:c,accept:u});if(n(i,d))f.currentNode=d;else{let e=G(f);return e&&F(e,!0),e??null}let p=f.previousNode();if(!p&&l){f.currentNode=i;let e=G(f);if(!e)return null;p=e}return p&&F(p,!0),p??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,o=U(r,{tabbable:i,accept:a}).nextNode();return o&&F(o,!0),o},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,o=G(U(r,{tabbable:i,accept:a}));return o&&F(o,!0),o??null}}}function G(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}var K=class e{constructor(){this.fastMap=new Map,this.root=new q({scopeRef:null}),this.fastMap.set(null,this.root)}get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(t??null);if(!r)return;let i=new q({scopeRef:e});r.addChild(i),i.parent=r,this.fastMap.set(e,i),n&&(i.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&j(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>0&&r.forEach(e=>n&&n.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){let t=new e;for(let e of this.traverse())t.addTreeNode(e.scopeRef,e.parent?.scopeRef??null,e.nodeToRestore);return t}},q=class{constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}},J=new K;export{y as a,W as i,C as n,U as r,N as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createContext as e}from"react";var t=e(null);export{t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,o as t}from"./utils-a89BELgQ.js";import n,{createContext as r,forwardRef as i}from"react";var a=r({}),o=i(function(r,i){[r,i]=e(r,i,a);let{children:o,level:s=3,className:c,...l}=r,u=t[`h${s}`];return n.createElement(u,{...l,ref:i,className:c??`react-aria-Heading`},o)});export{a as n,o as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e,{createContext as t,forwardRef as n,useContext as r}from"react";typeof HTMLTemplateElement<`u`&&(Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.content.firstChild}}),Object.defineProperty(HTMLTemplateElement.prototype,"appendChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.appendChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"removeChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.removeChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"insertBefore",{configurable:!0,enumerable:!0,value:function(e,t){return this.content.insertBefore(e,t)}}));var i=t(!1);function a(t){if(r(i))return e.createElement(e.Fragment,null,t.children);let n=e.createElement(i.Provider,{value:!0},t.children);return e.createElement(`template`,null,n)}function o(e){let t=(t,n)=>r(i)?null:e(t,n);return t.displayName=e.displayName||e.name,n(t)}function s(){return r(i)}export{a as n,s as r,o as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as e}from"./utils-a89BELgQ.js";import t,{useContext as n,useEffect as r,useState as i}from"react";var a=new Set([`Arab`,`Syrc`,`Samr`,`Mand`,`Thaa`,`Mend`,`Nkoo`,`Adlm`,`Rohg`,`Hebr`]),o=new Set([`ae`,`ar`,`arc`,`bcc`,`bqi`,`ckb`,`dv`,`fa`,`glk`,`he`,`ku`,`mzn`,`nqo`,`pnb`,`ps`,`sd`,`ug`,`ur`,`yi`]);function s(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),n=typeof t.getTextInfo==`function`?t.getTextInfo():t.textInfo;if(n)return n.direction===`rtl`;if(t.script)return a.has(t.script)}let t=e.split(`-`)[0];return o.has(t)}var c=Symbol.for(`react-aria.i18n.locale`);function l(){let e=typeof window<`u`&&window[c]||typeof navigator<`u`&&(navigator.language||navigator.userLanguage)||`en-US`;try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e=`en-US`}return{locale:e,direction:s(e)?`rtl`:`ltr`}}var u=l(),d=new Set;function f(){u=l();for(let e of d)e(u)}function p(){let t=e(),[n,a]=i(u);return r(()=>(d.size===0&&window.addEventListener(`languagechange`,f),d.add(a),()=>{d.delete(a),d.size===0&&window.removeEventListener(`languagechange`,f)}),[]),t?{locale:typeof window<`u`&&window[c]||`en-US`,direction:`ltr`}:n}var m=t.createContext(null);function h(){let e=p();return n(m)||e}export{h as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as e,n as t,o as n,r}from"./utils-a89BELgQ.js";import{t as i}from"./useHover-B7zqOZ-m.js";import{t as a}from"./useFocusRing-iqZqZ3LT.js";import{t as o}from"./Hidden-BK7EwYvz.js";import s,{createContext as c,forwardRef as l}from"react";var u=c({}),d=l(function(o,c){[o,c]=t(o,c,u);let{isDisabled:l,isInvalid:d,isReadOnly:f,onHoverStart:p,onHoverChange:m,onHoverEnd:h,...g}=o;l??=!!o[`aria-disabled`]&&o[`aria-disabled`]!==`false`,d??=!!o[`aria-invalid`]&&o[`aria-invalid`]!==`false`;let{hoverProps:_,isHovered:v}=i({onHoverStart:p,onHoverChange:m,onHoverEnd:h,isDisabled:l}),{isFocused:y,isFocusVisible:b,focusProps:x}=a({within:!0}),S=r({...o,values:{isHovered:v,isFocusWithin:y,isFocusVisible:b,isDisabled:l,isInvalid:d},defaultClassName:`react-aria-Group`});return s.createElement(n.div,{...e(g,x,_),...S,ref:c,role:o.role??`group`,slot:o.slot??void 0,"data-focus-within":y||void 0,"data-hovered":v||void 0,"data-focus-visible":b||void 0,"data-disabled":l||void 0,"data-invalid":d||void 0,"data-readonly":f||void 0},S.children)}),f=c({}),p=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...i}=e;return i},m=o(function(o,c){[o,c]=t(o,c,f);let{hoverProps:l,isHovered:u}=i({...o,isDisabled:o.disabled}),{isFocused:d,isFocusVisible:m,focusProps:h}=a({isTextInput:!0,autoFocus:o.autoFocus}),g=!!o[`aria-invalid`]&&o[`aria-invalid`]!==`false`,_=r({...o,values:{isHovered:u,isFocused:d,isFocusVisible:m,isDisabled:o.disabled||!1,isInvalid:g},defaultClassName:`react-aria-Input`});return s.createElement(n.input,{...e(p(o),h,l),..._,ref:c,"data-focused":d||void 0,"data-disabled":o.disabled||void 0,"data-hovered":u||void 0,"data-focus-visible":m||void 0,"data-invalid":g||void 0})});export{u as i,m as n,d as r,f as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,d as t,f as n,h as r,i,l as a,n as o,o as s,r as c,t as l}from"./utils-a89BELgQ.js";import{t as u}from"./useObjectRef-BjjTnUOY.js";import{c as d,g as f,s as p,t as m,y as h}from"./useHover-B7zqOZ-m.js";import{r as g}from"./Autocomplete-CQH-8_68.js";import{n as _,t as v}from"./useFocusRing-iqZqZ3LT.js";import{t as y}from"./I18nProvider-BEh6VvSv.js";import{E as b,S as x,_ as S,b as C,i as w,m as T,o as E,v as D,w as O,x as k,y as A}from"./useCollection-BqmrVZIy.js";import{t as j}from"./filterDOMProps-DKemR-4v.js";import{s as M}from"./Button-DhaWFe8e.js";import{n as ee}from"./Text-CKNC-T46.js";import{C as te,D as ne,S as N,T as re,k as P,w as ie,x as F}from"./Dialog-CapEn0UN.js";import{n as I,r as ae}from"./SelectionIndicator-Bslc4sCw.js";import{n as oe}from"./FocusScope-BoxZvmWP.js";import{n as se,t as ce}from"./useListState-CPL-VMhR.js";import L,{createContext as R,forwardRef as z,useCallback as B,useContext as V,useEffect as le,useMemo as H,useRef as U}from"react";var W=R({}),G=R(null),K=z(function(e,t){let{render:n}=V(G);return L.createElement(L.Fragment,null,n(e,t))});function q(e,t){let n=e?.renderDropIndicator,r=e?.isVirtualDragging?.(),i=B(e=>{if(r||t?.isDropTarget(e))return n?n(e):L.createElement(K,{target:e})},[t?.target,r,n]);return e?.useDropIndicator?i:void 0}function ue(e,t,n){let r=e.focusedKey,i=null;if(t?.isVirtualDragging?.()&&n?.target?.type===`item`&&(i=n.target.key,n.target.dropPosition===`after`)){let e=n.collection.getKeyAfter(i),t=null;if(e!=null){let r=n.collection.getItem(i)?.level??0;for(;e!=null;){let i=n.collection.getItem(e);if(!i)break;if(i.type!==`item`)e=n.collection.getKeyAfter(e);else{if((i.level??0)<=r)break;t=e,e=n.collection.getKeyAfter(e)}}}i=e??t??i}return H(()=>new Set([r,i].filter(e=>e!=null)),[r,i])}var J=new WeakMap;function Y(e){return typeof e==`string`?e.replace(/\s*/g,``):``+e}function X(e,t){let n=J.get(e);if(!n)throw Error(`Unknown list`);return`${n.id}-option-${Y(t)}`}function de(e,t,r){let i=j(e,{labelable:!0}),o=e.selectionBehavior||`toggle`,s=e.orientation||`vertical`,c=e.linkBehavior||(o===`replace`?`action`:`override`);o===`toggle`&&c===`action`&&(c=`override`);let{listProps:l}=te({...e,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:c}),{focusWithinProps:u}=_({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),d=n(e.id);J.set(t,{id:d,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:c,UNSTABLE_itemBehavior:e.UNSTABLE_itemBehavior});let{labelProps:f,fieldProps:p}=M({...e,id:d,labelElementType:`span`});return{labelProps:f,listBoxProps:a(i,u,t.selectionManager.selectionMode===`multiple`?{"aria-multiselectable":`true`}:{},{role:`listbox`,"aria-orientation":s,...a(p,l)})}}function Z(e,n,i){let{key:o}=e,s=J.get(n),c=e.isDisabled??n.selectionManager.isDisabled(o),l=e.isSelected??n.selectionManager.isSelected(o),u=e.shouldSelectOnPressUp??s?.shouldSelectOnPressUp,d=e.shouldFocusOnHover??s?.shouldFocusOnHover,p=e.shouldUseVirtualFocus??s?.shouldUseVirtualFocus,g=e.isVirtualized??s?.isVirtualized,_=t(),v=t(),y={role:`option`,"aria-disabled":c||void 0,"aria-selected":n.selectionManager.selectionMode===`none`?void 0:l,"aria-label":e[`aria-label`],"aria-labelledby":_,"aria-describedby":v},b=n.collection.getItem(o);if(g){let e=Number(b?.index);y[`aria-posinset`]=Number.isNaN(e)?void 0:e+1,y[`aria-setsize`]=N(n.collection)}let x=s?.onAction?()=>s?.onAction?.(o):void 0,S=X(n,o),{itemProps:C,isPressed:w,isFocused:T,hasAction:D,allowsSelection:O}=E({selectionManager:n.selectionManager,key:o,ref:i,shouldSelectOnPressUp:u,allowsDifferentPressOrigin:u&&d,isVirtualized:g,shouldUseVirtualFocus:p,isDisabled:c,onAction:x||b?.props?.onAction?r(b?.props?.onAction,x):void 0,linkBehavior:s?.linkBehavior,UNSTABLE_itemBehavior:s?.UNSTABLE_itemBehavior,id:S}),{hoverProps:k}=m({isDisabled:c||!d,onHoverStart(){f()||(n.selectionManager.setFocused(!0),n.selectionManager.setFocusedKey(o))}}),A=j(b?.props);delete A.id;let M=h(b?.props);return{optionProps:{...y,...a(A,C,k,M),id:S},labelProps:{id:_},descriptionProps:{id:v},isFocused:T,isFocusVisible:T&&n.selectionManager.isFocused&&f(),isSelected:l,isDisabled:c,isPressed:w,allowsSelection:O,hasAction:D}}function fe(e){let{heading:t,"aria-label":r}=e,i=n();return{itemProps:{role:`presentation`},headingProps:t?{id:i,role:`presentation`,onMouseDown:e=>{e.preventDefault()}}:{},groupProps:{role:`group`,"aria-label":r,"aria-labelledby":t?i:void 0}}}var Q=R(null),$=R(null),pe=z(function(e,t){[e,t]=o(e,t,Q);let n=V($);return n?L.createElement(he,{state:n,props:e,listBoxRef:t}):L.createElement(A,{content:L.createElement(k,e)},n=>L.createElement(me,{props:e,listBoxRef:t,collection:n}))});function me({props:e,listBoxRef:t,collection:n}){e={...e,collection:n,children:null,items:null};let{layoutDelegate:r}=V(T),i=ce({...e,layoutDelegate:r});return L.createElement(he,{state:i,props:e,listBoxRef:t})}function he({state:e,props:t,listBoxRef:n}){[t,n]=o(t,n,g);let{dragAndDropHooks:r,layout:i=`stack`,orientation:u=`vertical`,filter:d}=t,f=se(e,d),{collection:p,selectionManager:m}=f,h=!!r?.useDraggableCollectionState,_=!!r?.useDroppableCollectionState,{direction:b}=y(),{disabledBehavior:x,disabledKeys:C}=m,w=ie({usage:`search`,sensitivity:`base`}),{isVirtualized:E,layoutDelegate:D,dropTargetDelegate:O,CollectionRoot:k}=V(T),A=H(()=>t.keyboardDelegate||new re({collection:p,collator:w,ref:n,disabledKeys:C,disabledBehavior:x,layout:i,orientation:u,direction:b,layoutDelegate:D}),[p,w,n,x,C,u,b,t.keyboardDelegate,i,D]),{listBoxProps:M}=de({...t,shouldSelectOnPressUp:h||t.shouldSelectOnPressUp,keyboardDelegate:A,isVirtualized:E},f,n),ee=U(h),te=U(_);le(()=>{process.env.NODE_ENV!==`production`&&(ee.current!==h&&console.warn(`Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.`),te.current!==_&&console.warn(`Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.`))},[h,_]);let N,P,F,I=!1,ce=null,R=U(null);if(h&&r){N=r.useDraggableCollectionState({collection:p,selectionManager:m,preview:r.renderDragPreview?R:void 0}),r.useDraggableCollection({},N,n);let e=r.DragPreview;ce=r.renderDragPreview?L.createElement(e,{ref:R},r.renderDragPreview):null}if(_&&r){P=r.useDroppableCollectionState({collection:p,selectionManager:m});let e=r.dropTargetDelegate||O||new r.ListDropTargetDelegate(p,n,{orientation:u,layout:i,direction:b});F=r.useDroppableCollection({keyboardDelegate:A,dropTargetDelegate:e},P,n),I=P.isDropTarget({type:`root`})}let{focusProps:z,isFocused:B,isFocusVisible:K}=v(),J=f.collection.size===0,Y={isDropTarget:I,isEmpty:J,isFocused:B,isFocusVisible:K,layout:t.layout||`stack`,orientation:u,state:f},X=c({...t,children:void 0,defaultClassName:`react-aria-ListBox`,values:Y}),Z=null;J&&t.renderEmptyState&&(Z=L.createElement(`div`,{role:`option`,style:{display:`contents`}},t.renderEmptyState(Y)));let fe=j(t,{global:!0});return L.createElement(oe,null,L.createElement(s.div,{...a(fe,X,M,z,F?.collectionProps),ref:n,slot:t.slot||void 0,onScroll:t.onScroll,"data-drop-target":I||void 0,"data-empty":J||void 0,"data-focused":B||void 0,"data-focus-visible":K||void 0,"data-layout":t.layout||`stack`,"data-orientation":u},L.createElement(l,{values:[[Q,t],[$,f],[W,{dragAndDropHooks:r,dragState:N,dropState:P}],[ne,{elementType:`div`}],[G,{render:ye}],[S,{name:`ListBoxSection`,render:ge}]]},L.createElement(ae,null,L.createElement(k,{collection:p,scrollRef:n,persistedKeys:ue(m,r,P),renderDropIndicator:q(r,P)}))),Z,ce))}function ge(e,t,n,r=`react-aria-ListBoxSection`){let o=V($),{dragAndDropHooks:l,dropState:u}=V(W),{CollectionBranch:d}=V(T),[f,p]=i(),{headingProps:m,groupProps:h}=fe({heading:p,"aria-label":e[`aria-label`]??void 0}),g=c({...e,id:void 0,children:void 0,defaultClassName:r,values:void 0}),_=j(e,{global:!0});return delete _.id,L.createElement(s.section,{...a(_,g,h),ref:t},L.createElement(P.Provider,{value:{...m,ref:f}},L.createElement(d,{collection:o.collection,parent:n,renderDropIndicator:q(l,u)})))}var _e=C(x,ge),ve=D(b,function(t,n,r){let i=u(n),o=V($),{dragAndDropHooks:f,dragState:h,dropState:g}=V(W),_=h&&!(h.isDisabled||h.selectionManager.isDisabled(r.key)),{optionProps:v,labelProps:y,descriptionProps:b,...x}=Z({key:r.key,"aria-label":t?.[`aria-label`]},o,i),{hoverProps:S,isHovered:C}=m({isDisabled:!x.allowsSelection&&!x.hasAction&&!_,onHoverStart:r.props.onHoverStart,onHoverChange:r.props.onHoverChange,onHoverEnd:r.props.onHoverEnd}),{keyboardProps:w}=p(t),{focusProps:T}=d(t),E=null;h&&f&&(E=f.useDraggableItem({key:r.key,hasAction:x.hasAction},h));let D=null;g&&f&&(D=f.useDroppableItem({target:{type:`item`,key:r.key,dropPosition:`on`}},g,i));let O=h&&h.isDragging(r.key),k=c({...t,id:void 0,children:t.children,defaultClassName:`react-aria-ListBoxItem`,values:{...x,isHovered:C,selectionMode:o.selectionManager.selectionMode,selectionBehavior:o.selectionManager.selectionBehavior,allowsDragging:!!h,isDragging:O,isDropTarget:D?.isDropTarget}});le(()=>{!r.textValue&&process.env.NODE_ENV!==`production`&&console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.")},[r.textValue]);let A=t.href?s.a:s.div,M=j(t,{global:!0});return delete M.id,delete M.onClick,t.href&&v.tabIndex==null&&(v.tabIndex=-1),L.createElement(A,{...a(M,k,v,S,w,T,E?.dragProps,D?.dropProps),ref:i,"data-allows-dragging":!!h||void 0,"data-selected":x.isSelected||void 0,"data-disabled":x.isDisabled||void 0,"data-hovered":C||void 0,"data-focused":x.isFocused||void 0,"data-focus-visible":x.isFocusVisible||void 0,"data-pressed":x.isPressed||void 0,"data-dragging":O||void 0,"data-drop-target":D?.isDropTarget||void 0,"data-selection-mode":o.selectionManager.selectionMode===`none`?void 0:o.selectionManager.selectionMode},L.createElement(l,{values:[[ee,{slots:{[e]:y,label:y,description:b}}],[I,{isSelected:x.isSelected}]]},k.children))});function ye(e,t){t=u(t);let{dragAndDropHooks:n,dropState:r}=V(W),{dropIndicatorProps:i,isHidden:a,isDropTarget:o}=n.useDropIndicator(e,r,t);return a?null:L.createElement(xe,{...e,dropIndicatorProps:i,isDropTarget:o,ref:t})}function be(e,t){let{dropIndicatorProps:n,isDropTarget:r,...i}=e,a=c({...i,defaultClassName:`react-aria-DropIndicator`,values:{isDropTarget:r}});return L.createElement(L.Fragment,null,L.createElement(s.div,{...n,...a,role:`option`,ref:t,"data-drop-target":r||void 0}))}var xe=z(be);D(O,function(e,t,n){let r=V($),{isLoading:i,onLoadMore:o,scrollOffset:l,...u}=e,d=U(null),f=H(()=>({onLoadMore:o,collection:r?.collection,sentinelRef:d,scrollOffset:l}),[o,l,r?.collection]);F(f,d);let p=c({...u,id:void 0,children:n.rendered,defaultClassName:`react-aria-ListBoxLoadingIndicator`,values:void 0});return L.createElement(L.Fragment,null,L.createElement(`div`,{style:{position:`relative`,width:0,height:0},inert:w(!0)},L.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:d,style:{position:`absolute`,height:1,width:1}})),i&&p.children&&L.createElement(L.Fragment,null,L.createElement(s.div,{...a(j(e,{global:!0}),{tabIndex:-1}),...p,role:`option`,ref:t},p.children)))});export{_e as a,K as c,ue as d,G as f,ve as i,q as l,$ as n,J as o,Q as r,X as s,pe as t,W as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=new Map,t=!1;try{t=new Intl.NumberFormat(`de-DE`,{signDisplay:`exceptZero`}).resolvedOptions().signDisplay===`exceptZero`}catch{}var n=class{constructor(e,t={}){this.numberFormatter=r(e,t),this.options=t}format(e){let n=``;return n=!t&&this.options.signDisplay!=null?i(this.numberFormatter,this.options.signDisplay,e):this.numberFormatter.format(e),n}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if(typeof this.numberFormatter.formatRange==`function`)return this.numberFormatter.formatRange(e,t);if(t<e)throw RangeError(`End date must be >= start date`);return`${this.format(e)} \u{2013} ${this.format(t)}`}formatRangeToParts(e,t){if(typeof this.numberFormatter.formatRangeToParts==`function`)return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw RangeError(`End date must be >= start date`);let n=this.numberFormatter.formatToParts(e),r=this.numberFormatter.formatToParts(t);return[...n.map(e=>({...e,source:`startRange`})),{type:`literal`,value:` – `,source:`shared`},...r.map(e=>({...e,source:`endRange`}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return!t&&this.options.signDisplay!=null&&(e={...e,signDisplay:this.options.signDisplay}),e}};function r(t,n={}){let{numberingSystem:r}=n;r&&t.includes(`-nu-`)&&(t.includes(`-u-`)||(t+=`-u-`),t+=`-nu-${r}`);let i=t+(n?Object.entries(n).sort((e,t)=>e[0]<t[0]?-1:1).join():``);if(e.has(i))return e.get(i);let a=new Intl.NumberFormat(t,n);return e.set(i,a),a}function i(e,t,n){if(t===`auto`)return e.format(n);if(t===`never`)return e.format(Math.abs(n));{let r=!1;if(t===`always`?r=n>0||Object.is(n,0):t===`exceptZero`&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let t=e.format(-n),r=e.format(n),i=t.replace(r,``).replace(/\u200e|\u061C/,``);return[...i].length!==1&&console.warn(`@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case`),t.replace(r,`!!!`).replace(i,`+`).replace(`!!!`,r)}return e.format(n)}}export{n as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e,{createContext as t,useContext as n}from"react";var r=t({});function i(t){let{getContainer:n}=t,{getContainer:i}=a();return e.createElement(r.Provider,{value:{getContainer:n===null?void 0:n??i}},t.children)}function a(){return n(r)??{}}export{a as n,i as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as e,f as t,i as n,l as r,n as i,o as a,r as o,s,t as c,u as l}from"./utils-a89BELgQ.js";import{t as u}from"./useObjectRef-BjjTnUOY.js";import{W as d,Y as f,i as p,s as m,t as h}from"./useHover-B7zqOZ-m.js";import{n as g,r as _,t as v}from"./useFocusRing-iqZqZ3LT.js";import{t as y}from"./I18nProvider-BEh6VvSv.js";import{t as b}from"./useControlledState-DuIQl7AI.js";import{t as x}from"./filterDOMProps-DKemR-4v.js";import{c as S}from"./Button-DhaWFe8e.js";import{n as C}from"./Text-CKNC-T46.js";import{t as w}from"./VisuallyHidden-D5n5kSd7.js";import{c as T,o as E,t as D}from"./useFormValidation-Bh9mXXQp.js";import{t as O}from"./Form-BRnR5K3X.js";import{t as k}from"./useField-KKAxOCpq.js";import{t as A}from"./useFormReset-BR6FFFlJ.js";import{t as j}from"./useSlot-IUqvn2jp.js";import{n as M,r as N}from"./SelectionIndicator-Bslc4sCw.js";import{r as P}from"./FocusScope-BoxZvmWP.js";import F,{createContext as I,forwardRef as L,useContext as R,useMemo as z,useState as B}from"react";var V=new WeakMap;function H(e,t,n){let{value:i,children:a,"aria-label":o,"aria-labelledby":s,onPressStart:c,onPressEnd:l,onPressChange:u,onPress:d,onPressUp:f,onClick:m}=e,h=e.isDisabled||t.isDisabled;a==null&&o==null&&s==null&&process.env.NODE_ENV!==`production`&&console.warn(`If you do not provide children, you must specify an aria-label for accessibility`);let g=t.selectedValue===i,v=e=>{e.stopPropagation(),t.setSelectedValue(i)},{pressProps:y,isPressed:b}=_({onPressStart:c,onPressEnd:l,onPressChange:u,onPress:d,onPressUp:f,onClick:m,isDisabled:h}),{pressProps:S,isPressed:C}=_({onPressStart:c,onPressEnd:l,onPressChange:u,onPressUp:f,onClick:m,isDisabled:h,onPress(e){d?.(e),t.setSelectedValue(i),n.current?.focus()}}),{focusableProps:w}=p(r(e,{onFocus:()=>t.setLastFocusedValue(i)}),n),T=r(y,w),E=x(e,{labelable:!0}),O=-1;t.selectedValue==null?(t.lastFocusedValue===i||t.lastFocusedValue==null)&&(O=0):t.selectedValue===i&&(O=0),h&&(O=void 0);let{name:k,form:M,descriptionId:N,errorMessageId:P,validationBehavior:F}=V.get(t);A(n,t.defaultSelectedValue,t.setSelectedValue),D({validationBehavior:F},t,n);let I=j();return{labelProps:r(S,z(()=>({onClick:e=>e.preventDefault(),onMouseDown:e=>e.preventDefault()}),[])),inputProps:r(E,{...T,type:`radio`,name:k,form:M,tabIndex:O,disabled:h,required:t.isRequired&&F===`native`,checked:g,value:i,onChange:v,"aria-describedby":[e[`aria-describedby`],I.id,t.isInvalid?P:null,N].filter(Boolean).join(` `)||void 0}),descriptionProps:I,isDisabled:h,isSelected:g,isPressed:b||C}}function U(e,n){let{name:i,form:a,isReadOnly:o,isRequired:s,isDisabled:c,orientation:l=`vertical`,validationBehavior:u=`aria`}=e,{direction:p}=y(),{isInvalid:h,validationErrors:_,validationDetails:v}=n.displayValidation,{labelProps:b,fieldProps:S,descriptionProps:C,errorMessageProps:w}=k({...e,labelElementType:`span`,isInvalid:n.isInvalid,errorMessage:e.errorMessage||_}),T=x(e,{labelable:!0}),{focusWithinProps:E}=g({onBlurWithin(t){e.onBlur?.(t),n.selectedValue||n.setLastFocusedValue(null)},onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});function D(e,t){let r=P(t.currentTarget,{from:d(t),accept:e=>e instanceof f(e).HTMLInputElement&&e.type===`radio`}),i;return e===`next`?(i=r.nextNode(),i||=(r.currentNode=t.currentTarget,r.firstChild())):(i=r.previousNode(),i||=(r.currentNode=t.currentTarget,r.lastChild())),i?(i.focus(),n.setSelectedValue(i.value),!0):!1}let{keyboardProps:O}=m({shortcuts:{ArrowRight:e=>D(p===`rtl`&&l!==`vertical`?`prev`:`next`,e),ArrowLeft:e=>D(p===`rtl`&&l!==`vertical`?`next`:`prev`,e),ArrowDown:e=>D(`next`,e),ArrowUp:e=>D(`prev`,e)},allowRepeats:!0}),A=t(i);return V.set(n,{name:A,form:a,descriptionId:C.id,errorMessageId:w.id,validationBehavior:u}),{radioGroupProps:r(T,{role:`radiogroup`,...O,"aria-invalid":n.isInvalid||void 0,"aria-errormessage":e[`aria-errormessage`],"aria-readonly":o||void 0,"aria-required":s||void 0,"aria-disabled":c||void 0,"aria-orientation":l,...S,...E}),labelProps:b,descriptionProps:C,errorMessageProps:w,isInvalid:h,validationErrors:_,validationDetails:v}}var W=Math.round(Math.random()*1e10),G=0;function K(e){let t=z(()=>e.name||`radio-group-${W}-${++G}`,[e.name]),[n,r]=b(e.value,e.defaultValue??null,e.onChange),[i]=B(n),[a,o]=B(null),s=E({...e,value:n}),c=t=>{!e.isReadOnly&&!e.isDisabled&&(r(t),s.commitValidation())},l=s.displayValidation.isInvalid;return{...s,name:t,selectedValue:n,defaultSelectedValue:e.value===void 0?e.defaultValue??null:i,setSelectedValue:c,lastFocusedValue:a,setLastFocusedValue:o,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,validationState:e.validationState||(l?`invalid`:null),isInvalid:l}}var q=I(null),J=I(null),Y=I(null),X=L(function(t,s){[t,s]=i(t,s,q);let{validationBehavior:l}=e(O)||{},u=t.validationBehavior??l??`native`,d=K({...t,validationBehavior:u}),[f,p]=n(!t[`aria-label`]&&!t[`aria-labelledby`]),{radioGroupProps:m,labelProps:h,descriptionProps:g,errorMessageProps:_,...v}=U({...t,label:p,validationBehavior:u},d),y=o({...t,values:{orientation:t.orientation||`vertical`,isDisabled:d.isDisabled,isReadOnly:d.isReadOnly,isRequired:d.isRequired,isInvalid:d.isInvalid,state:d},defaultClassName:`react-aria-RadioGroup`}),b=x(t,{global:!0});return F.createElement(a.div,{...r(b,y,m),ref:s,slot:t.slot||void 0,"data-orientation":t.orientation||`vertical`,"data-invalid":d.isInvalid||void 0,"data-disabled":d.isDisabled||void 0,"data-readonly":d.isReadOnly||void 0,"data-required":d.isRequired||void 0},F.createElement(c,{values:[[Y,d],[S,{...h,ref:f,elementType:`span`}],[C,{slots:{description:g,errorMessage:_}}],[T,v]]},F.createElement(N,null,y.children)))}),Z=I(null),Q=L(function(e,t){let{inputRef:n=null,...d}=e;[e,t]=i(d,t,J);let f=F.useContext(Y),p=u(z(()=>l(n,e.inputRef===void 0?null:e.inputRef),[n,e.inputRef])),m=H({...s(e),children:typeof e.children==`function`||e.children},f,p),{descriptionProps:h,isSelected:g,isDisabled:_}=m,v=o({...e,defaultClassName:`react-aria-RadioField`,values:{isSelected:g,isDisabled:_,isReadOnly:f.isReadOnly,isInvalid:f.isInvalid,isRequired:f.isRequired}}),y=x(e,{global:!0});return delete y.id,delete y.onClick,F.createElement(a.div,{...r(y,v),ref:t,"data-selected":g||void 0,"data-disabled":_||void 0,"data-readonly":f.isReadOnly||void 0,"data-invalid":f.isInvalid||void 0,"data-required":f.isRequired||void 0},F.createElement(c,{values:[[M,{isSelected:g}],[Z,{...m,inputRef:p,defaultClassName:`react-aria-RadioButton`}],[C,{slots:{description:h}}]]},v.children))}),$=L(function(e,t){let{labelProps:n,inputProps:i,isSelected:s,isDisabled:c,isPressed:l,defaultClassName:u,inputRef:d}=R(Z),f=F.useContext(Y),{isFocused:p,isFocusVisible:m,focusProps:g}=v(),_=c||f.isReadOnly,{hoverProps:y,isHovered:b}=h({...e,isDisabled:_}),S=o({...e,defaultClassName:u,values:{isSelected:s,isPressed:l,isHovered:b,isFocused:p,isFocusVisible:m,isDisabled:c,isReadOnly:f.isReadOnly,isInvalid:f.isInvalid,isRequired:f.isRequired}}),C=x(e,{global:!0});return delete C.id,delete C.onClick,F.createElement(a.label,{...r(C,n,y,S),ref:t,"data-selected":s||void 0,"data-pressed":l||void 0,"data-hovered":b||void 0,"data-focused":p||void 0,"data-focus-visible":m||void 0,"data-disabled":c||void 0,"data-readonly":f.isReadOnly||void 0,"data-invalid":f.isInvalid||void 0,"data-required":f.isRequired||void 0},F.createElement(w,{elementType:`span`},F.createElement(`input`,{...r(i,g),ref:d})),S.children)});export{X as n,$ as r,Q as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as e,i as t,l as n,n as r,o as i,r as a,s as o,t as s}from"./utils-a89BELgQ.js";import{s as c}from"./useHover-B7zqOZ-m.js";import{n as l}from"./Autocomplete-CQH-8_68.js";import{n as u}from"./useLocalizedStringFormatter-B693_Wcz.js";import{t as d}from"./useControlledState-DuIQl7AI.js";import{t as f}from"./Hidden-BK7EwYvz.js";import{t as p}from"./filterDOMProps-DKemR-4v.js";import{c as m,t as h}from"./Button-DhaWFe8e.js";import{n as g}from"./Text-CKNC-T46.js";import{c as _}from"./useFormValidation-Bh9mXXQp.js";import{t as v}from"./Form-BRnR5K3X.js";import{i as y,t as ee}from"./Input-DldfdALf.js";import{t as te}from"./useTextField-CFwJQKgI.js";import b,{createContext as x,useRef as ne}from"react";var S={};S={"Clear search":`مسح البحث`};var C={};C={"Clear search":`Изчистване на търсене`};var w={};w={"Clear search":`Vymazat hledání`};var T={};T={"Clear search":`Ryd søgning`};var E={};E={"Clear search":`Suche zurücksetzen`};var D={};D={"Clear search":`Απαλοιφή αναζήτησης`};var O={};O={"Clear search":`Clear search`};var k={};k={"Clear search":`Borrar búsqueda`};var A={};A={"Clear search":`Tühjenda otsing`};var j={};j={"Clear search":`Tyhjennä haku`};var M={};M={"Clear search":`Effacer la recherche`};var N={};N={"Clear search":`נקה חיפוש`};var P={};P={"Clear search":`Obriši pretragu`};var F={};F={"Clear search":`Keresés törlése`};var I={};I={"Clear search":`Cancella ricerca`};var L={};L={"Clear search":`検索をクリア`};var R={};R={"Clear search":`검색 지우기`};var z={};z={"Clear search":`Išvalyti iešką`};var B={};B={"Clear search":`Notīrīt meklēšanu`};var V={};V={"Clear search":`Tøm søk`};var H={};H={"Clear search":`Zoekactie wissen`};var U={};U={"Clear search":`Wyczyść zawartość wyszukiwania`};var W={};W={"Clear search":`Limpar pesquisa`};var G={};G={"Clear search":`Limpar pesquisa`};var K={};K={"Clear search":`Ştergeţi căutarea`};var q={};q={"Clear search":`Очистить поиск`};var J={};J={"Clear search":`Vymazať vyhľadávanie`};var Y={};Y={"Clear search":`Počisti iskanje`};var X={};X={"Clear search":`Obriši pretragu`};var Z={};Z={"Clear search":`Rensa sökning`};var Q={};Q={"Clear search":`Aramayı temizle`};var $={};$={"Clear search":`Очистити пошук`};var re={};re={"Clear search":`清除搜索`};var ie={};ie={"Clear search":`清除搜尋條件`};var ae={};ae={"ar-AE":S,"bg-BG":C,"cs-CZ":w,"da-DK":T,"de-DE":E,"el-GR":D,"en-US":O,"es-ES":k,"et-EE":A,"fi-FI":j,"fr-FR":M,"he-IL":N,"hr-HR":P,"hu-HU":F,"it-IT":I,"ja-JP":L,"ko-KR":R,"lt-LT":z,"lv-LV":B,"nb-NO":V,"nl-NL":H,"pl-PL":U,"pt-BR":W,"pt-PT":G,"ro-RO":K,"ru-RU":q,"sk-SK":J,"sl-SI":Y,"sr-SP":X,"sv-SE":Z,"tr-TR":Q,"uk-UA":$,"zh-CN":re,"zh-TW":ie};function oe(e){return e&&e.__esModule?e.default:e}function se(e,t,r){let i=u(oe(ae),`@react-aria/searchfield`),{isDisabled:a,isReadOnly:o,onSubmit:s,onClear:l,type:d=`search`}=e,{keyboardProps:f}=c({isDisabled:a||o,shortcuts:{Enter:()=>{if(s)s(t.value);else return!1},Escape:()=>{if(t.value===``&&(!r.current||r.current.value===``))return!1;t.setValue(``),l?.()}}}),p=()=>{t.setValue(``),l&&l()},m=()=>{r.current?.focus()},{labelProps:h,inputProps:g,descriptionProps:_,errorMessageProps:v,...y}=te({...e,value:t.value,onChange:t.setValue,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,type:d},r);return{labelProps:h,inputProps:n(f,{...g,defaultValue:void 0}),clearButtonProps:{"aria-label":i.format(`Clear search`),excludeFromTabOrder:!0,preventFocusOnPress:!0,isDisabled:a||o,onPress:p,onPressStart:m},descriptionProps:_,errorMessageProps:v,...y}}function ce(e){let[t,n]=d(le(e.value),le(e.defaultValue)||``,e.onChange);return{value:t,setValue:n}}function le(e){if(e!=null)return e.toString()}var ue=x(null),de=f(function(n,c){[n,c]=r(n,c,ue);let{validationBehavior:u}=e(v)||{},d=n.validationBehavior??u??`native`,f=ne(null);[n,f]=r(n,f,l);let[te,x]=t(!n[`aria-label`]&&!n[`aria-labelledby`]),S=ce({...n,validationBehavior:d}),{labelProps:C,inputProps:w,clearButtonProps:T,descriptionProps:E,errorMessageProps:D,...O}=se({...o(n),label:x,validationBehavior:d},S,f),k=a({...n,values:{isEmpty:S.value===``,isDisabled:n.isDisabled||!1,isInvalid:O.isInvalid||!1,isReadOnly:n.isReadOnly||!1,isRequired:n.isRequired||!1,state:S},defaultClassName:`react-aria-SearchField`}),A=p(n,{global:!0});return delete A.id,b.createElement(i.div,{...A,...k,ref:c,slot:n.slot||void 0,"data-empty":S.value===``||void 0,"data-disabled":n.isDisabled||void 0,"data-invalid":O.isInvalid||void 0,"data-readonly":n.isReadOnly||void 0,"data-required":n.isRequired||void 0},b.createElement(s,{values:[[m,{...C,ref:te}],[ee,{...w,ref:f}],[h,T],[g,{slots:{description:E,errorMessage:D}}],[y,{isInvalid:O.isInvalid,isDisabled:n.isDisabled||!1}],[_,O]]},k.children))});export{de as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{m as e,n as t,o as n,r}from"./utils-a89BELgQ.js";import{t as i}from"./useObjectRef-BjjTnUOY.js";import a,{createContext as o,forwardRef as s,useContext as c,useRef as l,useState as u}from"react";import{flushSync as d}from"react-dom";var f=o(null);function p(e){let t=l({});return a.createElement(f.Provider,{value:t},e.children)}var m=s(function(t,o){let{name:s,isVisible:l=!0,children:p,className:m,style:h,render:g,..._}=t,[v,y]=u(l?`visible`:`hidden`),b=c(f);if(!b)throw Error(`<SharedElement> must be rendered inside a <SharedElementTransition>`);l&&v===`hidden`&&y(`visible`),o=i(o),e(()=>{let e=o.current,t=b.current,n=t[s],r=null;if(e&&l&&n){y(`visible`);let i=e.getAnimations(),a=n.style.map(([t,r])=>{let i=e.style[t];if(t===`translate`){let t=n.rect,r=e.getBoundingClientRect(),i=t.left-r?.left,a=t.top-r?.top;e.style.translate=`${i}px ${a}px`}else e.style[t]=r;return[t,i]});for(let t of e.getAnimations())i.includes(t)||t.cancel();r=requestAnimationFrame(()=>{r=null;for(let[t,n]of a)e.style[t]=n}),delete t[s]}else e&&l&&!n?(queueMicrotask(()=>d(()=>y(`entering`))),r=requestAnimationFrame(()=>{r=null,y(`visible`)})):e&&!l&&queueMicrotask(()=>{t[s]?(delete t[s],d(()=>y(`exiting`)),Promise.all(e.getAnimations().map(e=>e.finished)).then(()=>y(`hidden`)).catch(()=>{})):y(`hidden`)});return()=>{if(r!=null&&cancelAnimationFrame(r),e&&e.isConnected&&!e.hasAttribute(`data-exiting`)){let n=window.getComputedStyle(e);if(n.transitionProperty!==`none`){let r=n.transitionProperty.split(/\s*,\s*/);t[s]={rect:e.getBoundingClientRect(),style:r.map(e=>[e,n[e]])}}}}},[o,b,s,l]);let x=r({children:p,className:m,style:h,render:g,values:{isEntering:v===`entering`,isExiting:v===`exiting`}});return v===`hidden`?null:a.createElement(n.div,{..._,...x,ref:o,"data-entering":v===`entering`||void 0,"data-exiting":v===`exiting`||void 0})}),h=o({isSelected:!1}),g=s(function(e,n){[e,n]=t(e,n,h);let{isSelected:r,...i}=e;return a.createElement(m,{...i,ref:n,className:e.className||`react-aria-SelectionIndicator`,name:`SelectionIndicator`,isVisible:r})});export{h as n,p as r,g as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as e,i as t,l as n,n as r,o as i,r as a,t as o}from"./utils-a89BELgQ.js";import{W as s,Y as c,d as l,i as u,n as d,p as f,s as p,t as m,z as h}from"./useHover-B7zqOZ-m.js";import{o as g,s as _,t as v}from"./useFocusRing-iqZqZ3LT.js";import{t as y}from"./I18nProvider-BEh6VvSv.js";import{t as b}from"./useControlledState-DuIQl7AI.js";import{t as x}from"./filterDOMProps-DKemR-4v.js";import{c as S,o as C,s as w}from"./Button-DhaWFe8e.js";import{r as T,t as E}from"./number-C1r4kgNV.js";import{t as D}from"./VisuallyHidden-D5n5kSd7.js";import{t as O}from"./useFormReset-BR6FFFlJ.js";import k,{createContext as A,forwardRef as j,useCallback as M,useContext as N,useEffect as P,useMemo as F,useRef as I,useState as L}from"react";function R(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=I({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:a,removeGlobalListener:o}=d(),u=M((e,r,a,o)=>{(a!==0||o!==0)&&(i.current.didMove||(i.current.didMove=!0,t?.({type:`movestart`,pointerType:r,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})),n?.({type:`move`,pointerType:r,deltaX:a,deltaY:o,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey}))},[t,n,i]),f=l(u),p=M((e,t)=>{_(),i.current.didMove&&r?.({type:`moveend`,pointerType:t,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})},[r,i]),m=l(p);return{moveProps:F(()=>{let e={},t=()=>{g(),i.current.didMove=!1};if(typeof PointerEvent>`u`&&process.env.NODE_ENV===`test`){let n=e=>{e.button===0&&(f(e,`mouse`,e.pageX-(i.current.lastPosition?.pageX??0),e.pageY-(i.current.lastPosition?.pageY??0)),i.current.lastPosition={pageX:e.pageX,pageY:e.pageY})},r=e=>{if(e.button===0){m(e,`mouse`);let t=c(s(e));o(t,`mousemove`,n,!1),o(t,`mouseup`,r,!1)}};e.onMouseDown=e=>{if(e.button===0){t(),e.stopPropagation(),e.preventDefault(),i.current.lastPosition={pageX:e.pageX,pageY:e.pageY};let o=c(s(e));a(o,`mousemove`,n,!1),a(o,`mouseup`,r,!1)}};let l=e=>{let t=[...e.changedTouches].findIndex(({identifier:e})=>e===i.current.id);if(t>=0){let{pageX:n,pageY:r}=e.changedTouches[t];f(e,`touch`,n-(i.current.lastPosition?.pageX??0),r-(i.current.lastPosition?.pageY??0)),i.current.lastPosition={pageX:n,pageY:r}}},u=e=>{if([...e.changedTouches].findIndex(({identifier:e})=>e===i.current.id)>=0){m(e,`touch`),i.current.id=null;let t=c(s(e));o(t,`touchmove`,l),o(t,`touchend`,u),o(t,`touchcancel`,u)}};e.onTouchStart=e=>{if(e.changedTouches.length===0||i.current.id!=null)return;let{pageX:n,pageY:r,identifier:o}=e.changedTouches[0];t(),e.stopPropagation(),e.preventDefault(),i.current.lastPosition={pageX:n,pageY:r},i.current.id=o;let d=c(s(e));a(d,`touchmove`,l,!1),a(d,`touchend`,u,!1),a(d,`touchcancel`,u,!1)}}else{let n=e=>{if(e.pointerId===i.current.id){let t=e.pointerType||`mouse`;f(e,t,e.pageX-(i.current.lastPosition?.pageX??0),e.pageY-(i.current.lastPosition?.pageY??0)),i.current.lastPosition={pageX:e.pageX,pageY:e.pageY}}},r=e=>{if(e.pointerId===i.current.id){let t=e.pointerType||`mouse`;m(e,t),i.current.id=null;let a=c(s(e));o(a,`pointermove`,n,!1),o(a,`pointerup`,r,!1),o(a,`pointercancel`,r,!1)}};e.onPointerDown=e=>{if(e.button===0&&i.current.id==null){t(),e.stopPropagation(),e.preventDefault(),i.current.lastPosition={pageX:e.pageX,pageY:e.pageY},i.current.id=e.pointerId;let o=c(s(e));a(o,`pointermove`,n,!1),a(o,`pointerup`,r,!1),a(o,`pointercancel`,r,!1)}}}let n=(e,n,r)=>{t(),f(e,`keyboard`,n,r),m(e,`keyboard`)};return e.onKeyDown=e=>{switch(e.key){case`Left`:case`ArrowLeft`:e.preventDefault(),e.stopPropagation(),n(e,-1,0);break;case`Right`:case`ArrowRight`:e.preventDefault(),e.stopPropagation(),n(e,1,0);break;case`Up`:case`ArrowUp`:e.preventDefault(),e.stopPropagation(),n(e,0,-1);break;case`Down`:case`ArrowDown`:e.preventDefault(),e.stopPropagation(),n(e,0,1)}},e},[a,o,i])}}var z=new WeakMap;function B(e,t){let n=z.get(e);if(!n)throw Error(`Unknown slider state`);return`${n.id}-${t}`}function V(e,t,r){let{labelProps:i,fieldProps:a}=w(e),o=e.orientation===`vertical`;z.set(t,{id:i.id??a.id,"aria-describedby":e[`aria-describedby`],"aria-details":e[`aria-details`]});let{direction:s}=y(),{addGlobalListener:c,removeGlobalListener:l}=d(),u=I(null),p=s===`rtl`,m=I(null),{moveProps:h}=R({onMoveStart(){m.current=null},onMove({deltaX:e,deltaY:n}){if(!r.current)return;let{height:i,width:a}=r.current.getBoundingClientRect(),s=o?i:a;m.current==null&&u.current!=null&&(m.current=t.getThumbPercent(u.current)*s);let c=o?n:e;if((o||p)&&(c=-c),m.current+=c,u.current!=null&&r.current){let e=E(m.current/s,0,1);t.setThumbPercent(u.current,e)}},onMoveEnd(){u.current!=null&&(t.setThumbDragging(u.current,!1),u.current=null)}}),g=I(void 0),_=(n,i,a,l)=>{if(r.current&&!e.isDisabled&&t.values.every((e,n)=>!t.isThumbDragging(n))){let{height:e,width:d,top:f,left:p}=r.current.getBoundingClientRect(),m=o?e:d,h=((o?l:a)-(o?f:p))/m;(s===`rtl`||o)&&(h=1-h);let _=t.getPercentValue(h),y,b=t.values.findIndex(e=>_-e<0);if(b===0)y=b;else if(b===-1)y=t.values.length-1;else{let e=t.values[b-1],n=t.values[b];y=Math.abs(e-_)<Math.abs(n-_)?b-1:b}y>=0&&t.isThumbEditable(y)?(n.preventDefault(),u.current=y,t.setFocusedThumb(y),g.current=i,t.setThumbDragging(u.current,!0),t.setThumbValue(y,_),c(window,`mouseup`,v,!1),c(window,`touchend`,v,!1),c(window,`pointerup`,v,!1)):u.current=null}},v=e=>{(e.pointerId??e.changedTouches?.[0].identifier)===g.current&&(u.current!=null&&(t.setThumbDragging(u.current,!1),u.current=null),l(window,`mouseup`,v,!1),l(window,`touchend`,v,!1),l(window,`pointerup`,v,!1))};return`htmlFor`in i&&i.htmlFor&&(delete i.htmlFor,i.onClick=()=>{document.getElementById(B(t,0))?.focus(),f(`keyboard`)}),{labelProps:i,groupProps:{role:`group`,...a},trackProps:n({onMouseDown(e){e.button!==0||e.altKey||e.ctrlKey||e.metaKey||_(e,void 0,e.clientX,e.clientY)},onPointerDown(e){e.pointerType===`mouse`&&(e.button!==0||e.altKey||e.ctrlKey||e.metaKey)||_(e,e.pointerId,e.clientX,e.clientY)},onTouchStart(e){_(e,e.changedTouches[0].identifier,e.changedTouches[0].clientX,e.changedTouches[0].clientY)},style:{position:`relative`,touchAction:`none`}},h),outputProps:{htmlFor:t.values.map((e,n)=>B(t,n)).join(` `),"aria-live":`off`}}}function H(e,t){let{index:r=0,isRequired:i,validationState:a,isInvalid:o,trackRef:c,inputRef:l,orientation:f=t.orientation,name:m,form:g}=e,_=e.isDisabled||t.isDisabled,v=f===`vertical`,{direction:b}=y(),{addGlobalListener:x,removeGlobalListener:S}=d(),C=z.get(t),{labelProps:T,fieldProps:D}=w({...e,id:B(t,r),"aria-labelledby":`${C.id} ${e[`aria-labelledby`]??``}`.trim()}),k=t.values[r],A=M(()=>{l.current&&h(l.current)},[l]),j=t.focusedThumb===r;P(()=>{j&&A()},[j,A]);let N=b===`rtl`,F=I(null),L=e=>{t.setThumbDragging(r,!0),e(),t.setThumbDragging(r,!1)},{keyboardProps:V}=p({shortcuts:{PageUp:()=>L(()=>{t.incrementThumb(r,t.pageSize)}),PageDown:()=>L(()=>{t.decrementThumb(r,t.pageSize)}),Home:()=>L(()=>{t.setThumbValue(r,t.getThumbMinValue(r))}),End:()=>L(()=>{t.setThumbValue(r,t.getThumbMaxValue(r))})},allowRepeats:!0}),{moveProps:H}=R({onMoveStart(){F.current=null,t.setThumbDragging(r,!0)},onMove({deltaX:e,deltaY:n,pointerType:i,shiftKey:a}){let{getThumbPercent:o,setThumbPercent:s,decrementThumb:l,incrementThumb:u,step:d,pageSize:f}=t;if(!c.current)return;let{width:p,height:m}=c.current.getBoundingClientRect(),h=v?m:p;if(F.current??=o(r)*h,i===`keyboard`)e>0&&N||e<0&&!N||n>0?l(r,a?f:d):u(r,a?f:d);else{let t=v?n:e;(v||N)&&(t=-t),F.current+=t,s(r,E(F.current/h,0,1))}},onMoveEnd(){t.setThumbDragging(r,!1)}});t.setThumbEditable(r,!_);let{focusableProps:U}=u(n(e,{onFocus:()=>t.setFocusedThumb(r),onBlur:()=>t.setFocusedThumb(void 0)}),l),W=I(void 0),G=e=>{A(),W.current=e,t.setThumbDragging(r,!0),x(window,`mouseup`,K,!1),x(window,`touchend`,K,!1),x(window,`pointerup`,K,!1)},K=e=>{(e.pointerId??e.changedTouches?.[0].identifier)===W.current&&(A(),t.setThumbDragging(r,!1),S(window,`mouseup`,K,!1),S(window,`touchend`,K,!1),S(window,`pointerup`,K,!1))},q=t.getThumbPercent(r);(v||b===`rtl`)&&(q=1-q);let J=_?{}:n(V,H,{onMouseDown:e=>{e.button!==0||e.altKey||e.ctrlKey||e.metaKey||G()},onPointerDown:e=>{e.button!==0||e.altKey||e.ctrlKey||e.metaKey||G(e.pointerId)},onTouchStart:e=>{G(e.changedTouches[0].identifier)}});return O(l,t.defaultValues[r],e=>{t.setThumbValue(r,e)}),{inputProps:n(U,D,{type:`range`,tabIndex:_?void 0:0,min:t.getThumbMinValue(r),max:t.getThumbMaxValue(r),step:t.step,value:k,name:m,form:g,disabled:_,"aria-orientation":f,"aria-valuetext":t.getThumbValueLabel(r),"aria-required":i||void 0,"aria-invalid":o||a===`invalid`||void 0,"aria-errormessage":e[`aria-errormessage`],"aria-describedby":[C[`aria-describedby`],e[`aria-describedby`]].filter(Boolean).join(` `),"aria-details":[C[`aria-details`],e[`aria-details`]].filter(Boolean).join(` `),onChange:e=>{t.setThumbValue(r,parseFloat(s(e).value))}}),thumbProps:{...J,style:{position:`absolute`,[v?`top`:`left`]:`${q*100}%`,transform:`translate(-50%, -50%)`,touchAction:`none`}},labelProps:T,isDragging:t.isThumbDragging(r),isDisabled:_,isFocused:j}}var U=0,W=100,G=1;function K(e){let{isDisabled:t=!1,minValue:n=U,maxValue:r=W,numberFormatter:i,step:a=G,orientation:o=`horizontal`}=e,s=F(()=>{let e=(r-n)/10;return e=T(e,0,e+a,a),Math.max(e,a)},[a,r,n]),c=M(e=>e?.map((t,i)=>{let o=i===0?n:e[i-1],s=i===e.length-1?r:e[i+1];return T(t,o,s,a)}),[n,r,a]),l=F(()=>c(J(e.value)),[e.value,c]),u=F(()=>c(J(e.defaultValue)??[n]),[e.defaultValue,n,c]),d=Y(e.value,e.defaultValue,e.onChange),f=Y(e.value,e.defaultValue,e.onChangeEnd),[p,m]=b(l,u,d),[h]=L(p),[g,_]=L(Array(p.length).fill(!1)),v=I(Array(p.length).fill(!0)),[y,x]=L(void 0),S=I(p),C=I(g),w=e=>{S.current=e,m(e)},D=e=>{C.current=e,_(e)};function O(e){return(e-n)/(r-n)}function k(e){return e===0?n:p[e-1]}function A(e){return e===p.length-1?r:p[e+1]}function j(e){return v.current[e]}function N(e,t){v.current[e]=t}function P(e,n){if(t||!j(e))return;let r=k(e),i=A(e);n=T(n,r,i,a);let o=q(S.current,e,n);w(o)}function R(e,n){if(t||!j(e))return;n&&(S.current=p);let r=C.current[e];C.current=q(C.current,e,n),D(C.current),f&&r&&!C.current.some(Boolean)&&f(S.current)}let z=I(null);function B(e=p){switch(typeof e==`number`&&(e=[e]),e.length){case 0:return``;case 1:return i.format(e[0]);case 2:return i.formatRange(e[0],e[1]);default:{let t=e.map(e=>i.format(e)),n=z.current;return(!n||n.resolvedOptions().locale!==i.resolvedOptions().locale)&&(n=z.current=new Intl.ListFormat(i.resolvedOptions().locale,{type:`unit`})),n.format(t)}}}function V(e,t){P(e,K(t))}function H(e){return Math.round((e-n)/a)*a+n}function K(e){let t=e*(r-n)+n;return E(H(t),n,r)}function X(e,t=1){let i=Math.max(t,a);P(e,T(p[e]+i,n,r,a))}function Z(e,t=1){let i=Math.max(t,a);P(e,T(p[e]-i,n,r,a))}return{values:p,defaultValues:e.defaultValue===void 0?h:u,getThumbValue:e=>p[e],setThumbValue:P,setThumbPercent:V,isThumbDragging:e=>g[e],setThumbDragging:R,focusedThumb:y,setFocusedThumb:x,getThumbPercent:e=>O(p[e]),getValuePercent:O,getThumbValueLabel:e=>B(p[e]),getFormattedValue:B,getThumbMinValue:k,getThumbMaxValue:A,getPercentValue:K,isThumbEditable:j,setThumbEditable:N,incrementThumb:X,decrementThumb:Z,step:a,pageSize:s,orientation:o,isDisabled:t}}function q(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function J(e){if(e!=null)return Array.isArray(e)?e:[e]}function Y(e,t,n){return r=>{typeof e==`number`||typeof t==`number`?n?.(r[0]):n?.(r)}}var X=A(null),Z=A(null),Q=A(null),$=A(null),ee=j(function(e,s){[e,s]=r(e,s,X);let c=I(null),l=C(e.formatOptions),u=K({...e,numberFormatter:l}),[d,f]=t(!e[`aria-label`]&&!e[`aria-labelledby`]),{groupProps:p,trackProps:m,labelProps:h,outputProps:g}=V({...e,label:f},u,c),_=a({...e,values:{orientation:u.orientation,isDisabled:u.isDisabled,state:u},defaultClassName:`react-aria-Slider`}),v=x(e,{global:!0});return delete v.id,k.createElement(o,{values:[[Z,u],[Q,{...m,ref:c}],[$,g],[S,{...h,ref:d}]]},k.createElement(i.div,{...n(v,_,p),ref:s,slot:e.slot||void 0,"data-orientation":u.orientation,"data-disabled":u.isDisabled||void 0}))}),te=j(function(e,t){[e,t]=r(e,t,$);let{children:n,style:o,className:s,render:c,...l}=e,u=N(Z),d=a({className:s,style:o,children:n,render:c,defaultChildren:u.getFormattedValue(),defaultClassName:`react-aria-SliderOutput`,values:{orientation:u.orientation,isDisabled:u.isDisabled,state:u}});return k.createElement(i.output,{...l,...d,ref:t,"data-orientation":u.orientation||void 0,"data-disabled":u.isDisabled||void 0})}),ne=j(function(e,t){[e,t]=r(e,t,Q);let o=N(Z),{onHoverStart:s,onHoverEnd:c,onHoverChange:l,...u}=e,{hoverProps:d,isHovered:f}=m({onHoverStart:s,onHoverEnd:c,onHoverChange:l}),p=a({...e,defaultClassName:`react-aria-SliderTrack`,values:{orientation:o.orientation,isDisabled:o.isDisabled,isHovered:f,state:o}});return k.createElement(i.div,{...n(u,d),...p,ref:t,"data-hovered":f||void 0,"data-orientation":o.orientation||void 0,"data-disabled":o.isDisabled||void 0})}),re=j(function(r,s){let{inputRef:c=null}=r,l=N(Z),{ref:u}=e(Q),{index:d=0}=r,f=I(null),p=c||f,[h,g]=t(!r[`aria-label`]&&!r[`aria-labelledby`]),{thumbProps:_,inputProps:y,labelProps:b,isDragging:C,isFocused:w,isDisabled:T}=H({...r,index:d,trackRef:u,inputRef:p,label:g},l),{focusProps:E,isFocusVisible:O}=v(),{hoverProps:A,isHovered:j}=m(r),M=a({...r,defaultClassName:`react-aria-SliderThumb`,values:{state:l,isHovered:j,isDragging:C,isFocused:w,isFocusVisible:O,isDisabled:T}}),P=x(r,{global:!0});return delete P.id,k.createElement(i.div,{...n(P,_,A),...M,ref:s,style:{..._.style,...M.style},"data-hovered":j||void 0,"data-dragging":C||void 0,"data-focused":w||void 0,"data-focus-visible":O||void 0,"data-disabled":T||void 0},k.createElement(D,null,k.createElement(`input`,{ref:p,...n(y,E)})),k.createElement(o,{values:[[S,{...b,ref:h}]]},M.children))});export{$ as a,K as c,R as d,ee as i,H as l,Z as n,te as o,re as r,Q as s,ne as t,V as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,o as t}from"./utils-a89BELgQ.js";import{t as n}from"./Hidden-BK7EwYvz.js";import r,{createContext as i}from"react";var a=i({}),o=n(function(n,i){[n,i]=e(n,i,a);let{elementType:o=`span`,...s}=n,c=t[o];return r.createElement(c,{className:`react-aria-Text`,...s,ref:i})});export{a as n,o as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as e}from"./utils-a89BELgQ.js";import{n as t}from"./useFocusRing-iqZqZ3LT.js";import n,{useMemo as r,useState as i}from"react";var a={border:0,clip:`rect(0 0 0 0)`,clipPath:`inset(50%)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`absolute`,width:`1px`,whiteSpace:`nowrap`};function o(e={}){let{style:n,isFocusable:o}=e,[s,c]=i(!1),{focusWithinProps:l}=t({isDisabled:!o,onFocusWithinChange:e=>c(e)}),u=r(()=>s?n:n?{...a,...n}:a,[s]);return{visuallyHiddenProps:{...l,style:u}}}function s(t){let{children:r,elementType:i=`div`,isFocusable:a,style:s,...c}=t,{visuallyHiddenProps:l}=o(t);return n.createElement(i,e(c,l),r)}export{o as n,s as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as e,m as t}from"./utils-a89BELgQ.js";import{K as n,d as r}from"./useHover-B7zqOZ-m.js";import{useCallback as i,useRef as a,useState as o}from"react";import{flushSync as s}from"react-dom";function c(r,a=!0,s){let[c,l]=o(!0),d=c&&a;return t(()=>{if(!a&&r.current)return e(n(r.current,`opacity`,`0`),n(r.current,`clip`,`rect(0 0 0 0)`),n(r.current,`clip-path`,`inset(50%)`),n(r.current,`mask-image`,`linear-gradient(#0000, #0000)`))},[r,a]),t(()=>{if(d&&r.current&&`getAnimations`in r.current)for(let e of r.current.getAnimations())e instanceof CSSTransition&&e.cancel()},[r,d]),u(r,d,s,i(()=>l(!1),[])),d}function l(e,t,n){let[r,a]=o(t?`open`:`closed`);switch(r){case`open`:t||a(`exiting`);break;case`closed`:case`exiting`:t&&a(`open`)}let s=r===`exiting`;return u(e,s,n,i(()=>{a(e=>e===`exiting`?`closed`:e)},[])),s}function u(e,n,i,o){let c=a(null),l=r(i);t(()=>{if(n&&e.current&&c.current!==n){if(c.current=n,!(`getAnimations`in e.current)){o();return}let t=l?.(e.current),r=e.current.getAnimations().filter(e=>(typeof DocumentTimeline>`u`||e.timeline instanceof DocumentTimeline)&&e.playState===`running`);if(r.length===0&&!t){o();return}Promise.all([t,...r.map(e=>e.finished)]).then(()=>{s(()=>{o()})}).catch(()=>{})}c.current=n},[e,n,o])}export{c as n,l as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@font-face{font-family:DM Mono;font-style:normal;font-display:swap;font-weight:300;src:url(./fonts/dm-mono-latin-ext-300-normal.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:DM Mono;font-style:normal;font-display:swap;font-weight:300;src:url(./fonts/dm-mono-latin-300-normal.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:DM Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./fonts/dm-mono-latin-ext-400-normal.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:DM Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./fonts/dm-mono-latin-400-normal.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:DM Mono;font-style:normal;font-display:swap;font-weight:500;src:url(./fonts/dm-mono-latin-ext-500-normal.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:DM Mono;font-style:normal;font-display:swap;font-weight:500;src:url(./fonts/dm-mono-latin-500-normal.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--es-uic-mono-family:"DM Mono"}
|