@eightshift/ui-components 6.3.0 → 7.1.0
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/dist/Button-h6xF_WrP.js +225 -0
- package/dist/Dialog-i5VLQw1o.js +2488 -0
- package/dist/Disclosure-NYWFw9RJ.js +188 -0
- package/dist/FieldError-BWDbP5Db.js +213 -0
- package/dist/FocusScope-CgwbGOBB.js +746 -0
- package/dist/Form-DTMkbrQY.js +5 -0
- package/dist/Heading-Hol-wS_B.js +16 -0
- package/dist/Hidden-8TB37dpK.js +51 -0
- package/dist/Input-BURqyJXW.js +161 -0
- package/dist/Label-DFXXxMKY.js +17 -0
- package/dist/List-CMK5qsNF.js +506 -0
- package/dist/ListBox-B21SgugS.js +601 -0
- package/dist/NumberFormatter-m5VW6MTK.js +122 -0
- package/dist/OverlayArrow-BoloUPQM.js +573 -0
- package/dist/PortalProvider-DinZZCKX.js +14 -0
- package/dist/RSPContexts-C_z0bI8W.js +12 -0
- package/dist/RadioGroup-BwlGtCja.js +329 -0
- package/dist/SearchField-DR_I4_yn.js +765 -0
- package/dist/SelectionIndicator-31L6EI9F.js +13 -0
- package/dist/SelectionManager-B8lLv6Ue.js +2176 -0
- package/dist/Slider-DW1RuMVp.js +827 -0
- package/dist/Text-O6VBBDlP.js +16 -0
- package/dist/VisuallyHidden-CfsnJHZb.js +43 -0
- package/dist/animation-Bd2peown.js +62 -0
- package/dist/assets/style-admin.css +252 -255
- package/dist/assets/style-editor.css +252 -255
- package/dist/assets/style.css +252 -255
- package/dist/assets/wp-overrides/allow-full-width-blocks.css +1 -1
- package/dist/assets/wp-overrides/fix-label-text-case.css +1 -1
- package/dist/assets/wp-overrides/increase-sidebar-width.css +1 -1
- package/dist/assets/wp-overrides/make-block-messages-nicer.css +1 -1
- package/dist/assets/wp-overrides/replace-fonts.css +1 -1
- package/dist/assets/wp-overrides/restyle-tooltips.css +3 -3
- package/dist/assets/wp-overrides/round-corners.css +1 -1
- package/dist/assets/wp-overrides/unify-button-sizes.css +1 -1
- package/dist/build-module-sxK3nxOK.js +855 -0
- package/dist/button-COTeluL8.js +524 -0
- package/dist/checkbox-D0AWkLhp.js +338 -0
- package/dist/clsx-BUU5J41u.js +16 -0
- package/dist/color-swatch-CBYsO_Zs.js +2572 -0
- package/dist/components/animated-visibility/animated-visibility.js +87 -111
- package/dist/components/base-control/base-control.js +73 -86
- package/dist/components/base-control/container.js +199 -227
- package/dist/components/breakpoint-preview/breakpoint-preview.js +162 -158
- package/dist/components/button/button.js +3 -580
- package/dist/components/checkbox/checkbox.js +2 -391
- package/dist/components/color-pickers/color-picker.js +172 -276
- package/dist/components/color-pickers/color-swatch.js +3 -7
- package/dist/components/color-pickers/gradient-editor.js +4 -552
- package/dist/components/color-pickers/solid-color-picker.js +3 -1710
- package/dist/components/component-toggle/component-toggle.js +107 -160
- package/dist/components/container-panel/container-panel.js +94 -151
- package/dist/components/draggable/draggable-context.js +4 -4
- package/dist/components/draggable/draggable-handle.js +27 -43
- package/dist/components/draggable/draggable.js +3 -7638
- package/dist/components/draggable-list/draggable-list-context.js +4 -4
- package/dist/components/draggable-list/draggable-list-item.js +63 -80
- package/dist/components/draggable-list/draggable-list.js +115 -142
- package/dist/components/expandable/expandable.js +105 -407
- package/dist/components/index.js +30 -106
- package/dist/components/input-field/input-field.js +2 -326
- package/dist/components/item-collection/item-collection.js +50 -56
- package/dist/components/layout/hstack.js +27 -29
- package/dist/components/layout/vstack.js +27 -29
- package/dist/components/link-input/link-input.js +3 -1943
- package/dist/components/matrix-align/matrix-align.js +127 -161
- package/dist/components/menu/menu.js +253 -356
- package/dist/components/modal/modal.js +3 -399
- package/dist/components/notice/notice.js +99 -139
- package/dist/components/number-picker/number-picker.js +3 -344
- package/dist/components/option-select/option-select.js +226 -404
- package/dist/components/options-panel/options-panel.js +138 -175
- package/dist/components/placeholders/file-picker-shell.js +91 -141
- package/dist/components/placeholders/file-placeholder.js +41 -53
- package/dist/components/placeholders/image-placeholder.js +65 -96
- package/dist/components/placeholders/media-placeholder.js +65 -68
- package/dist/components/popover/popover.js +147 -221
- package/dist/components/portal-provider/portal-provider.js +23 -21
- package/dist/components/radio/radio.js +246 -294
- package/dist/components/repeater/repeater-context.js +4 -4
- package/dist/components/repeater/repeater-item.js +95 -114
- package/dist/components/repeater/repeater.js +221 -278
- package/dist/components/responsive/mini-responsive.js +403 -495
- package/dist/components/responsive/responsive-legacy.js +271 -336
- package/dist/components/responsive/responsive.js +445 -562
- package/dist/components/responsive-preview/responsive-preview.js +94 -117
- package/dist/components/rich-label/rich-label.js +80 -75
- package/dist/components/select/async-multi-select.js +357 -589
- package/dist/components/select/async-select.js +282 -492
- package/dist/components/select/multi-select.js +338 -552
- package/dist/components/select/shared.js +3 -17
- package/dist/components/select/single-select.js +276 -475
- package/dist/components/select/styles.js +84 -0
- package/dist/components/slider/column-config-slider.js +170 -301
- package/dist/components/slider/slider.js +258 -405
- package/dist/components/slider/utils.js +77 -121
- package/dist/components/smart-image/image-analysis-worker.js +128 -0
- package/dist/components/smart-image/smart-image.js +3 -205
- package/dist/components/smart-image/worker-inline.js +4 -4
- package/dist/components/spacer/spacer.js +80 -94
- package/dist/components/tabs/tabs.js +3 -1051
- package/dist/components/toggle/switch.js +2 -295
- package/dist/components/toggle/toggle.js +54 -64
- package/dist/components/toggle-button/toggle-button.js +2 -451
- package/dist/components/tooltip/tooltip.js +2 -535
- package/dist/context-C-XNeJ_l.js +93 -0
- package/dist/debounce-throttle-DXxSAKpq.js +120 -0
- package/dist/dist-DIK9pFxO.js +55 -0
- package/dist/draggable-CYQyD9gG.js +6961 -0
- package/dist/es-dash-HqXWZZ3_.js +303 -0
- package/dist/filterDOMProps-_2_3GD-K.js +69 -0
- package/dist/general-BKOvs-AO.js +4276 -0
- package/dist/gradient-editor-BAd_Gzx4.js +604 -0
- package/dist/icons/block-icon.js +34 -39
- package/dist/icons/generated-icon-loaders.js +759 -0
- package/dist/icons/generic-color-swatch.js +81 -111
- package/dist/icons/icon.js +67 -0
- package/dist/icons/icons.js +218 -3656
- package/dist/icons/index.js +756 -10
- package/dist/icons/internal.js +758 -0
- package/dist/icons/jsx-svg.js +2 -94
- package/dist/icons/spinner.js +16 -18
- package/dist/icons/ui-icons/a11y-warning.js +34 -0
- package/dist/icons/ui-icons/a11y.js +29 -0
- package/dist/icons/ui-icons/accelerometer.js +51 -0
- package/dist/icons/ui-icons/activity-log.js +53 -0
- package/dist/icons/ui-icons/add.js +20 -0
- package/dist/icons/ui-icons/alert.js +31 -0
- package/dist/icons/ui-icons/align-horizontal-vertical-alt.js +37 -0
- package/dist/icons/ui-icons/align-horizontal-vertical-alt2.js +36 -0
- package/dist/icons/ui-icons/align-horizontal-vertical.js +34 -0
- package/dist/icons/ui-icons/alt-text-generic-alt.js +19 -0
- package/dist/icons/ui-icons/alt-text-generic.js +25 -0
- package/dist/icons/ui-icons/alt-text.js +36 -0
- package/dist/icons/ui-icons/anchor-page.js +44 -0
- package/dist/icons/ui-icons/anchor.js +28 -0
- package/dist/icons/ui-icons/angle.js +24 -0
- package/dist/icons/ui-icons/animation-file.js +66 -0
- package/dist/icons/ui-icons/animation-generic.js +36 -0
- package/dist/icons/ui-icons/animation-list-generic.js +41 -0
- package/dist/icons/ui-icons/animation-settings-generic.js +41 -0
- package/dist/icons/ui-icons/animation.js +55 -0
- package/dist/icons/ui-icons/archive-file.js +24 -0
- package/dist/icons/ui-icons/archive.js +39 -0
- package/dist/icons/ui-icons/aria-label.js +42 -0
- package/dist/icons/ui-icons/arrow-down-circle-alt.js +28 -0
- package/dist/icons/ui-icons/arrow-down-circle.js +28 -0
- package/dist/icons/ui-icons/arrow-down-square-alt.js +28 -0
- package/dist/icons/ui-icons/arrow-down-square.js +28 -0
- package/dist/icons/ui-icons/arrow-down.js +20 -0
- package/dist/icons/ui-icons/arrow-left-circle-alt.js +28 -0
- package/dist/icons/ui-icons/arrow-left-circle.js +28 -0
- package/dist/icons/ui-icons/arrow-left-square-alt.js +28 -0
- package/dist/icons/ui-icons/arrow-left-square.js +28 -0
- package/dist/icons/ui-icons/arrow-left.js +20 -0
- package/dist/icons/ui-icons/arrow-right-circle-alt.js +28 -0
- package/dist/icons/ui-icons/arrow-right-circle.js +28 -0
- package/dist/icons/ui-icons/arrow-right-square-alt.js +28 -0
- package/dist/icons/ui-icons/arrow-right-square.js +28 -0
- package/dist/icons/ui-icons/arrow-right.js +20 -0
- package/dist/icons/ui-icons/arrow-up-circle-alt.js +28 -0
- package/dist/icons/ui-icons/arrow-up-circle.js +28 -0
- package/dist/icons/ui-icons/arrow-up-square-alt.js +28 -0
- package/dist/icons/ui-icons/arrow-up-square.js +28 -0
- package/dist/icons/ui-icons/arrow-up.js +20 -0
- package/dist/icons/ui-icons/arrows-down.js +38 -0
- package/dist/icons/ui-icons/arrows-horizontal.js +20 -0
- package/dist/icons/ui-icons/arrows-left-diagonal.js +20 -0
- package/dist/icons/ui-icons/arrows-left.js +38 -0
- package/dist/icons/ui-icons/arrows-right-diagonal.js +20 -0
- package/dist/icons/ui-icons/arrows-right.js +38 -0
- package/dist/icons/ui-icons/arrows-up.js +38 -0
- package/dist/icons/ui-icons/arrows-vertical.js +20 -0
- package/dist/icons/ui-icons/aspect-ratio-auto.js +38 -0
- package/dist/icons/ui-icons/aspect-ratio-nine-sixteen.js +28 -0
- package/dist/icons/ui-icons/aspect-ratio-sixteen-nine.js +28 -0
- package/dist/icons/ui-icons/aspect-ratio-square.js +28 -0
- package/dist/icons/ui-icons/aspect-ratio-three-two.js +28 -0
- package/dist/icons/ui-icons/aspect-ratio-twenty-one-nine.js +28 -0
- package/dist/icons/ui-icons/aspect-ratio.js +27 -0
- package/dist/icons/ui-icons/attachment.js +19 -0
- package/dist/icons/ui-icons/auto-close.js +26 -0
- package/dist/icons/ui-icons/auto-pause-scroll.js +39 -0
- package/dist/icons/ui-icons/auto-pause.js +26 -0
- package/dist/icons/ui-icons/automatic-alt.js +19 -0
- package/dist/icons/ui-icons/automatic.js +20 -0
- package/dist/icons/ui-icons/autoplay-alt.js +34 -0
- package/dist/icons/ui-icons/autoplay-alt2.js +23 -0
- package/dist/icons/ui-icons/autoplay.js +36 -0
- package/dist/icons/ui-icons/award.js +39 -0
- package/dist/icons/ui-icons/background-blur.js +66 -0
- package/dist/icons/ui-icons/background-color-swatch.js +48 -0
- package/dist/icons/ui-icons/background-image.js +41 -0
- package/dist/icons/ui-icons/background-repeat.js +95 -0
- package/dist/icons/ui-icons/background-type-alt.js +38 -0
- package/dist/icons/ui-icons/background-type-alt2.js +27 -0
- package/dist/icons/ui-icons/background-type.js +27 -0
- package/dist/icons/ui-icons/block-parts.js +54 -0
- package/dist/icons/ui-icons/bold.js +21 -0
- package/dist/icons/ui-icons/book.js +40 -0
- package/dist/icons/ui-icons/bookmark.js +18 -0
- package/dist/icons/ui-icons/boolean-exclude.js +24 -0
- package/dist/icons/ui-icons/boolean-intersect.js +31 -0
- package/dist/icons/ui-icons/boolean-subtract.js +27 -0
- package/dist/icons/ui-icons/boolean-union.js +33 -0
- package/dist/icons/ui-icons/border-color.js +79 -0
- package/dist/icons/ui-icons/border.js +60 -0
- package/dist/icons/ui-icons/bot-deny.js +61 -0
- package/dist/icons/ui-icons/bot.js +47 -0
- package/dist/icons/ui-icons/box.js +35 -0
- package/dist/icons/ui-icons/brain.js +20 -0
- package/dist/icons/ui-icons/branch-fork.js +46 -0
- package/dist/icons/ui-icons/branch.js +46 -0
- package/dist/icons/ui-icons/briefcase.js +26 -0
- package/dist/icons/ui-icons/browser.js +60 -0
- package/dist/icons/ui-icons/button-disabled.js +30 -0
- package/dist/icons/ui-icons/button-filled.js +19 -0
- package/dist/icons/ui-icons/button-ghost.js +28 -0
- package/dist/icons/ui-icons/button-outline.js +27 -0
- package/dist/icons/ui-icons/calculator.js +139 -0
- package/dist/icons/ui-icons/calendar-add.js +51 -0
- package/dist/icons/ui-icons/calendar-download.js +62 -0
- package/dist/icons/ui-icons/calendar-remove.js +51 -0
- package/dist/icons/ui-icons/calendar.js +34 -0
- package/dist/icons/ui-icons/caption-generic.js +25 -0
- package/dist/icons/ui-icons/card-featured.js +28 -0
- package/dist/icons/ui-icons/caret-down-fill.js +19 -0
- package/dist/icons/ui-icons/caret-down.js +19 -0
- package/dist/icons/ui-icons/caret-left-fill.js +19 -0
- package/dist/icons/ui-icons/caret-left.js +19 -0
- package/dist/icons/ui-icons/caret-right-fill.js +19 -0
- package/dist/icons/ui-icons/caret-right.js +19 -0
- package/dist/icons/ui-icons/caret-up-fill.js +19 -0
- package/dist/icons/ui-icons/caret-up.js +19 -0
- package/dist/icons/ui-icons/center-point.js +25 -0
- package/dist/icons/ui-icons/chat-bubble-alt.js +25 -0
- package/dist/icons/ui-icons/chat-bubble.js +19 -0
- package/dist/icons/ui-icons/chat.js +25 -0
- package/dist/icons/ui-icons/check-circle-fill-transparent.js +24 -0
- package/dist/icons/ui-icons/check-circle-fill.js +17 -0
- package/dist/icons/ui-icons/check-circle.js +27 -0
- package/dist/icons/ui-icons/check-square.js +28 -0
- package/dist/icons/ui-icons/check.js +20 -0
- package/dist/icons/ui-icons/checks-circle.js +26 -0
- package/dist/icons/ui-icons/checks.js +26 -0
- package/dist/icons/ui-icons/chevron-down.js +20 -0
- package/dist/icons/ui-icons/chevron-left.js +20 -0
- package/dist/icons/ui-icons/chevron-right.js +20 -0
- package/dist/icons/ui-icons/chevron-up.js +20 -0
- package/dist/icons/ui-icons/clear-alt.js +25 -0
- package/dist/icons/ui-icons/clear.js +20 -0
- package/dist/icons/ui-icons/clipboard-plain.js +35 -0
- package/dist/icons/ui-icons/clipboard.js +43 -0
- package/dist/icons/ui-icons/clock.js +26 -0
- package/dist/icons/ui-icons/closed-captions.js +27 -0
- package/dist/icons/ui-icons/code-variable.js +20 -0
- package/dist/icons/ui-icons/code.js +20 -0
- package/dist/icons/ui-icons/color-alt.js +40 -0
- package/dist/icons/ui-icons/color-fill-swatch.js +61 -0
- package/dist/icons/ui-icons/color-picker-fill.js +42 -0
- package/dist/icons/ui-icons/color-picker-list-marker.js +41 -0
- package/dist/icons/ui-icons/color-picker-text-highlight.js +19 -0
- package/dist/icons/ui-icons/color-picker-text.js +20 -0
- package/dist/icons/ui-icons/color-select.js +33 -0
- package/dist/icons/ui-icons/color.js +22 -0
- package/dist/icons/ui-icons/column-gutters-lr.js +54 -0
- package/dist/icons/ui-icons/columns.js +42 -0
- package/dist/icons/ui-icons/columns3366.js +30 -0
- package/dist/icons/ui-icons/columns6633.js +30 -0
- package/dist/icons/ui-icons/component-generic.js +27 -0
- package/dist/icons/ui-icons/component-options.js +36 -0
- package/dist/icons/ui-icons/condition-h.js +20 -0
- package/dist/icons/ui-icons/condition-v.js +20 -0
- package/dist/icons/ui-icons/conditional-visibility.js +26 -0
- package/dist/icons/ui-icons/container-height.js +68 -0
- package/dist/icons/ui-icons/container-spacing-h.js +41 -0
- package/dist/icons/ui-icons/container-spacing.js +41 -0
- package/dist/icons/ui-icons/container-width.js +68 -0
- package/dist/icons/ui-icons/content-bottom-left.js +31 -0
- package/dist/icons/ui-icons/content-bottom-right.js +31 -0
- package/dist/icons/ui-icons/content-center.js +31 -0
- package/dist/icons/ui-icons/content-top-left.js +31 -0
- package/dist/icons/ui-icons/content-top-right.js +31 -0
- package/dist/icons/ui-icons/contrast-alt.js +27 -0
- package/dist/icons/ui-icons/contrast.js +26 -0
- package/dist/icons/ui-icons/cookie-alt.js +124 -0
- package/dist/icons/ui-icons/cookie.js +76 -0
- package/dist/icons/ui-icons/copy.js +26 -0
- package/dist/icons/ui-icons/currency.js +48 -0
- package/dist/icons/ui-icons/current-page.js +42 -0
- package/dist/icons/ui-icons/cursor-disabled.js +35 -0
- package/dist/icons/ui-icons/cursor-move.js +20 -0
- package/dist/icons/ui-icons/dark-mode.js +20 -0
- package/dist/icons/ui-icons/data.js +33 -0
- package/dist/icons/ui-icons/date-time.js +67 -0
- package/dist/icons/ui-icons/defer.js +26 -0
- package/dist/icons/ui-icons/description-link.js +40 -0
- package/dist/icons/ui-icons/design.js +48 -0
- package/dist/icons/ui-icons/dice.js +59 -0
- package/dist/icons/ui-icons/divider-bottom.js +23 -0
- package/dist/icons/ui-icons/divider-side.js +53 -0
- package/dist/icons/ui-icons/divider-status.js +53 -0
- package/dist/icons/ui-icons/divider-top.js +23 -0
- package/dist/icons/ui-icons/divider.js +23 -0
- package/dist/icons/ui-icons/door-in.js +32 -0
- package/dist/icons/ui-icons/door-out.js +32 -0
- package/dist/icons/ui-icons/door.js +27 -0
- package/dist/icons/ui-icons/download.js +20 -0
- package/dist/icons/ui-icons/dropdown-caret-alt.js +17 -0
- package/dist/icons/ui-icons/dropdown-caret.js +20 -0
- package/dist/icons/ui-icons/dropdown-close.js +52 -0
- package/dist/icons/ui-icons/dropdown-open.js +38 -0
- package/dist/icons/ui-icons/dropdown.js +38 -0
- package/dist/icons/ui-icons/dummy-spacer.js +17 -0
- package/dist/icons/ui-icons/edit-options.js +32 -0
- package/dist/icons/ui-icons/edit.js +22 -0
- package/dist/icons/ui-icons/email-remove.js +42 -0
- package/dist/icons/ui-icons/email.js +28 -0
- package/dist/icons/ui-icons/embed.js +28 -0
- package/dist/icons/ui-icons/empty-circle.js +23 -0
- package/dist/icons/ui-icons/empty-rect.js +25 -0
- package/dist/icons/ui-icons/equal-columns.js +25 -0
- package/dist/icons/ui-icons/equal-rows.js +25 -0
- package/dist/icons/ui-icons/equals.js +20 -0
- package/dist/icons/ui-icons/error-circle-fill-transparent.js +23 -0
- package/dist/icons/ui-icons/error-circle-fill.js +17 -0
- package/dist/icons/ui-icons/error-circle.js +24 -0
- package/dist/icons/ui-icons/exclude-item-alt.js +38 -0
- package/dist/icons/ui-icons/exclude-item.js +42 -0
- package/dist/icons/ui-icons/exclude.js +29 -0
- package/dist/icons/ui-icons/expand-xl.js +20 -0
- package/dist/icons/ui-icons/expand.js +20 -0
- package/dist/icons/ui-icons/experiment.js +33 -0
- package/dist/icons/ui-icons/external-link.js +25 -0
- package/dist/icons/ui-icons/extract-alt.js +25 -0
- package/dist/icons/ui-icons/extract.js +25 -0
- package/dist/icons/ui-icons/eyedropper.js +36 -0
- package/dist/icons/ui-icons/fast-forward.js +26 -0
- package/dist/icons/ui-icons/fast-reverse.js +26 -0
- package/dist/icons/ui-icons/field-after-text.js +54 -0
- package/dist/icons/ui-icons/field-before-text.js +46 -0
- package/dist/icons/ui-icons/field-disabled.js +35 -0
- package/dist/icons/ui-icons/field-help.js +46 -0
- package/dist/icons/ui-icons/field-label.js +38 -0
- package/dist/icons/ui-icons/field-name.js +45 -0
- package/dist/icons/ui-icons/field-placeholder.js +49 -0
- package/dist/icons/ui-icons/field-readonly.js +36 -0
- package/dist/icons/ui-icons/field-required.js +37 -0
- package/dist/icons/ui-icons/field-type.js +36 -0
- package/dist/icons/ui-icons/field-value.js +46 -0
- package/dist/icons/ui-icons/field-width.js +27 -0
- package/dist/icons/ui-icons/file-download.js +33 -0
- package/dist/icons/ui-icons/file-error.js +25 -0
- package/dist/icons/ui-icons/file-metadata.js +41 -0
- package/dist/icons/ui-icons/file-pdf.js +34 -0
- package/dist/icons/ui-icons/file-size-max.js +33 -0
- package/dist/icons/ui-icons/file-size-min.js +33 -0
- package/dist/icons/ui-icons/file-size.js +34 -0
- package/dist/icons/ui-icons/file-type.js +42 -0
- package/dist/icons/ui-icons/file-upload.js +33 -0
- package/dist/icons/ui-icons/file.js +24 -0
- package/dist/icons/ui-icons/files.js +34 -0
- package/dist/icons/ui-icons/fill-color.js +49 -0
- package/dist/icons/ui-icons/filter-alt.js +24 -0
- package/dist/icons/ui-icons/filter.js +20 -0
- package/dist/icons/ui-icons/flag-alt.js +24 -0
- package/dist/icons/ui-icons/flag.js +24 -0
- package/dist/icons/ui-icons/flip-h.js +27 -0
- package/dist/icons/ui-icons/flip-v.js +27 -0
- package/dist/icons/ui-icons/focus.js +21 -0
- package/dist/icons/ui-icons/folder-add.js +22 -0
- package/dist/icons/ui-icons/folder-open-solid.js +17 -0
- package/dist/icons/ui-icons/folder-open.js +19 -0
- package/dist/icons/ui-icons/folder-solid.js +17 -0
- package/dist/icons/ui-icons/folder-top-level.js +22 -0
- package/dist/icons/ui-icons/folder.js +19 -0
- package/dist/icons/ui-icons/font-family.js +24 -0
- package/dist/icons/ui-icons/footer.js +23 -0
- package/dist/icons/ui-icons/form-alt.js +71 -0
- package/dist/icons/ui-icons/form.js +53 -0
- package/dist/icons/ui-icons/four-columns.js +38 -0
- package/dist/icons/ui-icons/frame.js +33 -0
- package/dist/icons/ui-icons/full-max-shield.js +26 -0
- package/dist/icons/ui-icons/full-max-text.js +20 -0
- package/dist/icons/ui-icons/full-width-image.js +35 -0
- package/dist/icons/ui-icons/gears-fill.js +19 -0
- package/dist/icons/ui-icons/gears.js +38 -0
- package/dist/icons/ui-icons/generic-color-swatch.js +6 -0
- package/dist/icons/ui-icons/generic-shapes-alt.js +33 -0
- package/dist/icons/ui-icons/generic-shapes.js +38 -0
- package/dist/icons/ui-icons/globe-anchor.js +55 -0
- package/dist/icons/ui-icons/globe-hash.js +40 -0
- package/dist/icons/ui-icons/globe.js +37 -0
- package/dist/icons/ui-icons/google-tag-manager.js +36 -0
- package/dist/icons/ui-icons/gradient-repeat.js +41 -0
- package/dist/icons/ui-icons/gradient-stop.js +36 -0
- package/dist/icons/ui-icons/gradient.js +54 -0
- package/dist/icons/ui-icons/grid-alt.js +19 -0
- package/dist/icons/ui-icons/grid-auto-cols.js +46 -0
- package/dist/icons/ui-icons/grid-auto-rows.js +41 -0
- package/dist/icons/ui-icons/grid-col.js +22 -0
- package/dist/icons/ui-icons/grid-height.js +22 -0
- package/dist/icons/ui-icons/grid-list-toggle.js +48 -0
- package/dist/icons/ui-icons/grid-manual.js +18 -0
- package/dist/icons/ui-icons/grid-row.js +22 -0
- package/dist/icons/ui-icons/grid-width.js +22 -0
- package/dist/icons/ui-icons/group.js +33 -0
- package/dist/icons/ui-icons/gutter.js +28 -0
- package/dist/icons/ui-icons/gyroscope.js +53 -0
- package/dist/icons/ui-icons/h1.js +28 -0
- package/dist/icons/ui-icons/h2.js +28 -0
- package/dist/icons/ui-icons/h3.js +28 -0
- package/dist/icons/ui-icons/h4.js +28 -0
- package/dist/icons/ui-icons/h5.js +28 -0
- package/dist/icons/ui-icons/h6.js +28 -0
- package/dist/icons/ui-icons/hamburger-menu.js +19 -0
- package/dist/icons/ui-icons/hard-drive.js +35 -0
- package/dist/icons/ui-icons/header.js +23 -0
- package/dist/icons/ui-icons/heading-level-alt.js +28 -0
- package/dist/icons/ui-icons/heading-level.js +28 -0
- package/dist/icons/ui-icons/heading.js +20 -0
- package/dist/icons/ui-icons/heart-fill-transparent.js +19 -0
- package/dist/icons/ui-icons/heart-fill.js +18 -0
- package/dist/icons/ui-icons/heart.js +18 -0
- package/dist/icons/ui-icons/height.js +30 -0
- package/dist/icons/ui-icons/help-fill.js +19 -0
- package/dist/icons/ui-icons/help.js +38 -0
- package/dist/icons/ui-icons/hide.js +29 -0
- package/dist/icons/ui-icons/highlighted-checkmark.js +24 -0
- package/dist/icons/ui-icons/highlighted-exclamation-mark.js +33 -0
- package/dist/icons/ui-icons/history.js +26 -0
- package/dist/icons/ui-icons/horizontal-align-alt.js +27 -0
- package/dist/icons/ui-icons/horizontal-align-around.js +37 -0
- package/dist/icons/ui-icons/horizontal-align-between-alt.js +37 -0
- package/dist/icons/ui-icons/horizontal-align-between.js +46 -0
- package/dist/icons/ui-icons/horizontal-align-center.js +41 -0
- package/dist/icons/ui-icons/horizontal-align-evenly.js +37 -0
- package/dist/icons/ui-icons/horizontal-align-left.js +44 -0
- package/dist/icons/ui-icons/horizontal-align-right.js +48 -0
- package/dist/icons/ui-icons/horizontal-align-stretch.js +37 -0
- package/dist/icons/ui-icons/horizontal-align.js +35 -0
- package/dist/icons/ui-icons/hover-background-glow.js +61 -0
- package/dist/icons/ui-icons/hover-background-type.js +34 -0
- package/dist/icons/ui-icons/hover-invert-object.js +42 -0
- package/dist/icons/ui-icons/hover-invert-text.js +32 -0
- package/dist/icons/ui-icons/hover-rotate.js +20 -0
- package/dist/icons/ui-icons/hover-zoom.js +25 -0
- package/dist/icons/ui-icons/hyphenate-alt.js +20 -0
- package/dist/icons/ui-icons/hyphenate-alt2.js +20 -0
- package/dist/icons/ui-icons/hyphenate.js +25 -0
- package/dist/icons/ui-icons/icon-generic.js +23 -0
- package/dist/icons/ui-icons/id-card.js +45 -0
- package/dist/icons/ui-icons/id.js +28 -0
- package/dist/icons/ui-icons/image-blur.js +50 -0
- package/dist/icons/ui-icons/image-caption.js +36 -0
- package/dist/icons/ui-icons/image-error.js +36 -0
- package/dist/icons/ui-icons/image-file.js +40 -0
- package/dist/icons/ui-icons/image-lazy-load.js +52 -0
- package/dist/icons/ui-icons/image-opacity.js +31 -0
- package/dist/icons/ui-icons/image-overlay-alt.js +93 -0
- package/dist/icons/ui-icons/image-overlay-alt2.js +93 -0
- package/dist/icons/ui-icons/image-overlay.js +92 -0
- package/dist/icons/ui-icons/image-remove.js +46 -0
- package/dist/icons/ui-icons/image.js +25 -0
- package/dist/icons/ui-icons/index.js +753 -0
- package/dist/icons/ui-icons/info-circle-fill-transparent.js +21 -0
- package/dist/icons/ui-icons/info-circle-fill.js +17 -0
- package/dist/icons/ui-icons/info-circle.js +24 -0
- package/dist/icons/ui-icons/info.js +17 -0
- package/dist/icons/ui-icons/inherit.js +41 -0
- package/dist/icons/ui-icons/inline-gradient-format.js +62 -0
- package/dist/icons/ui-icons/input-field.js +27 -0
- package/dist/icons/ui-icons/italic.js +20 -0
- package/dist/icons/ui-icons/item-limit.js +35 -0
- package/dist/icons/ui-icons/item-select.js +33 -0
- package/dist/icons/ui-icons/item-wrap.js +60 -0
- package/dist/icons/ui-icons/items-per-page.js +48 -0
- package/dist/icons/ui-icons/items-per-row.js +45 -0
- package/dist/icons/ui-icons/key.js +25 -0
- package/dist/icons/ui-icons/keyboard.js +19 -0
- package/dist/icons/ui-icons/large.js +24 -0
- package/dist/icons/ui-icons/latest-posts.js +44 -0
- package/dist/icons/ui-icons/layer-off.js +20 -0
- package/dist/icons/ui-icons/layer.js +19 -0
- package/dist/icons/ui-icons/layers.js +33 -0
- package/dist/icons/ui-icons/layout-alt.js +19 -0
- package/dist/icons/ui-icons/layout-alt2.js +23 -0
- package/dist/icons/ui-icons/layout-alt3.js +19 -0
- package/dist/icons/ui-icons/layout-alt4.js +19 -0
- package/dist/icons/ui-icons/layout-bento-box.js +19 -0
- package/dist/icons/ui-icons/layout-masonry.js +79 -0
- package/dist/icons/ui-icons/layout.js +43 -0
- package/dist/icons/ui-icons/left-panel-alt.js +25 -0
- package/dist/icons/ui-icons/left-panel.js +22 -0
- package/dist/icons/ui-icons/light-bulb-alt.js +30 -0
- package/dist/icons/ui-icons/light-bulb.js +33 -0
- package/dist/icons/ui-icons/light-mode.js +26 -0
- package/dist/icons/ui-icons/limit-width.js +26 -0
- package/dist/icons/ui-icons/line-break-alt-off.js +26 -0
- package/dist/icons/ui-icons/line-break-alt.js +25 -0
- package/dist/icons/ui-icons/line-break-off-alt.js +35 -0
- package/dist/icons/ui-icons/line-break-off.js +41 -0
- package/dist/icons/ui-icons/line-break.js +29 -0
- package/dist/icons/ui-icons/line-breaks-hyphenation.js +36 -0
- package/dist/icons/ui-icons/link-add.js +41 -0
- package/dist/icons/ui-icons/link-nav.js +59 -0
- package/dist/icons/ui-icons/link-remove.js +41 -0
- package/dist/icons/ui-icons/link.js +19 -0
- package/dist/icons/ui-icons/list-indent.js +26 -0
- package/dist/icons/ui-icons/list-ordered.js +43 -0
- package/dist/icons/ui-icons/list-outdent.js +26 -0
- package/dist/icons/ui-icons/list-unordered.js +43 -0
- package/dist/icons/ui-icons/loader-alt.js +19 -0
- package/dist/icons/ui-icons/loader.js +19 -0
- package/dist/icons/ui-icons/location-add.js +44 -0
- package/dist/icons/ui-icons/location-allow.js +44 -0
- package/dist/icons/ui-icons/location-deny.js +44 -0
- package/dist/icons/ui-icons/location-settings.js +36 -0
- package/dist/icons/ui-icons/location.js +26 -0
- package/dist/icons/ui-icons/lock.js +44 -0
- package/dist/icons/ui-icons/loop-mode.js +20 -0
- package/dist/icons/ui-icons/magic-alt-fill-transparent.js +20 -0
- package/dist/icons/ui-icons/magic-alt-fill.js +19 -0
- package/dist/icons/ui-icons/magic-alt.js +19 -0
- package/dist/icons/ui-icons/magic-fill-transparent.js +20 -0
- package/dist/icons/ui-icons/magic-fill.js +19 -0
- package/dist/icons/ui-icons/magic.js +19 -0
- package/dist/icons/ui-icons/map-layer-json.js +35 -0
- package/dist/icons/ui-icons/map-layer-raster.js +121 -0
- package/dist/icons/ui-icons/map-layer-vector.js +81 -0
- package/dist/icons/ui-icons/map-layer.js +26 -0
- package/dist/icons/ui-icons/map-pin.js +41 -0
- package/dist/icons/ui-icons/matrix-align-control-dot-active.js +23 -0
- package/dist/icons/ui-icons/matrix-align-control-dot-inactive.js +21 -0
- package/dist/icons/ui-icons/media.js +49 -0
- package/dist/icons/ui-icons/medium.js +24 -0
- package/dist/icons/ui-icons/menu-item-check.js +20 -0
- package/dist/icons/ui-icons/menu-item-circle.js +19 -0
- package/dist/icons/ui-icons/microphone.js +23 -0
- package/dist/icons/ui-icons/migration-alt-v.js +20 -0
- package/dist/icons/ui-icons/migration-alt.js +20 -0
- package/dist/icons/ui-icons/migration.js +26 -0
- package/dist/icons/ui-icons/module.js +24 -0
- package/dist/icons/ui-icons/money-paper.js +58 -0
- package/dist/icons/ui-icons/more-h-circle.js +40 -0
- package/dist/icons/ui-icons/more-h.js +33 -0
- package/dist/icons/ui-icons/more-v-circle.js +44 -0
- package/dist/icons/ui-icons/more-v.js +36 -0
- package/dist/icons/ui-icons/mouse-cursor.js +20 -0
- package/dist/icons/ui-icons/mouse-wheel.js +27 -0
- package/dist/icons/ui-icons/multi-item-left-inset-mobile.js +58 -0
- package/dist/icons/ui-icons/multi-item-left-inset.js +39 -0
- package/dist/icons/ui-icons/multi-item-right-inset-mobile.js +55 -0
- package/dist/icons/ui-icons/multi-item-right-inset.js +36 -0
- package/dist/icons/ui-icons/multiple.js +34 -0
- package/dist/icons/ui-icons/music-note.js +40 -0
- package/dist/icons/ui-icons/mute-centered.js +20 -0
- package/dist/icons/ui-icons/mute.js +20 -0
- package/dist/icons/ui-icons/narrow-bottom.js +49 -0
- package/dist/icons/ui-icons/narrow-left.js +49 -0
- package/dist/icons/ui-icons/narrow-right.js +49 -0
- package/dist/icons/ui-icons/narrow-top.js +49 -0
- package/dist/icons/ui-icons/navigation-buttons.js +39 -0
- package/dist/icons/ui-icons/new-tab.js +27 -0
- package/dist/icons/ui-icons/newspaper.js +45 -0
- package/dist/icons/ui-icons/none.js +25 -0
- package/dist/icons/ui-icons/notebook.js +44 -0
- package/dist/icons/ui-icons/num0-circle-alt.js +24 -0
- package/dist/icons/ui-icons/num0-circle.js +24 -0
- package/dist/icons/ui-icons/num0-square-alt.js +26 -0
- package/dist/icons/ui-icons/num0-square.js +26 -0
- package/dist/icons/ui-icons/num1-circle-alt.js +26 -0
- package/dist/icons/ui-icons/num1-circle.js +26 -0
- package/dist/icons/ui-icons/num1-square-alt.js +28 -0
- package/dist/icons/ui-icons/num1-square.js +28 -0
- package/dist/icons/ui-icons/num2-circle-alt.js +26 -0
- package/dist/icons/ui-icons/num2-circle.js +26 -0
- package/dist/icons/ui-icons/num2-square-alt.js +28 -0
- package/dist/icons/ui-icons/num2-square.js +28 -0
- package/dist/icons/ui-icons/num3-circle-alt.js +26 -0
- package/dist/icons/ui-icons/num3-circle.js +26 -0
- package/dist/icons/ui-icons/num3-square-alt.js +28 -0
- package/dist/icons/ui-icons/num3-square.js +28 -0
- package/dist/icons/ui-icons/num4-circle-alt.js +26 -0
- package/dist/icons/ui-icons/num4-circle.js +26 -0
- package/dist/icons/ui-icons/num4-square-alt.js +28 -0
- package/dist/icons/ui-icons/num4-square.js +28 -0
- package/dist/icons/ui-icons/num5-circle-alt.js +26 -0
- package/dist/icons/ui-icons/num5-circle.js +26 -0
- package/dist/icons/ui-icons/num5-square-alt.js +28 -0
- package/dist/icons/ui-icons/num5-square.js +28 -0
- package/dist/icons/ui-icons/num6-circle-alt.js +26 -0
- package/dist/icons/ui-icons/num6-circle.js +26 -0
- package/dist/icons/ui-icons/num6-square-alt.js +28 -0
- package/dist/icons/ui-icons/num6-square.js +28 -0
- package/dist/icons/ui-icons/num7-circle-alt.js +26 -0
- package/dist/icons/ui-icons/num7-circle.js +26 -0
- package/dist/icons/ui-icons/num7-square-alt.js +28 -0
- package/dist/icons/ui-icons/num7-square.js +28 -0
- package/dist/icons/ui-icons/num8-circle-alt.js +24 -0
- package/dist/icons/ui-icons/num8-circle.js +24 -0
- package/dist/icons/ui-icons/num8-square-alt.js +26 -0
- package/dist/icons/ui-icons/num8-square.js +26 -0
- package/dist/icons/ui-icons/num9-circle-alt.js +26 -0
- package/dist/icons/ui-icons/num9-circle.js +26 -0
- package/dist/icons/ui-icons/num9-square-alt.js +28 -0
- package/dist/icons/ui-icons/num9-square.js +28 -0
- package/dist/icons/ui-icons/office-building.js +203 -0
- package/dist/icons/ui-icons/office-buildings.js +256 -0
- package/dist/icons/ui-icons/offset-auto.js +46 -0
- package/dist/icons/ui-icons/offset.js +39 -0
- package/dist/icons/ui-icons/option-list-alt.js +61 -0
- package/dist/icons/ui-icons/option-list.js +63 -0
- package/dist/icons/ui-icons/options.js +24 -0
- package/dist/icons/ui-icons/order.js +49 -0
- package/dist/icons/ui-icons/padding-bottom.js +35 -0
- package/dist/icons/ui-icons/padding-top.js +35 -0
- package/dist/icons/ui-icons/padding.js +34 -0
- package/dist/icons/ui-icons/pagination.js +49 -0
- package/dist/icons/ui-icons/palette-color.js +111 -0
- package/dist/icons/ui-icons/panel-collapse.js +41 -0
- package/dist/icons/ui-icons/panel-expand.js +41 -0
- package/dist/icons/ui-icons/paragraph.js +24 -0
- package/dist/icons/ui-icons/paste.js +52 -0
- package/dist/icons/ui-icons/pause.js +20 -0
- package/dist/icons/ui-icons/people-group.js +57 -0
- package/dist/icons/ui-icons/people.js +43 -0
- package/dist/icons/ui-icons/person.js +26 -0
- package/dist/icons/ui-icons/photo-camera.js +26 -0
- package/dist/icons/ui-icons/picture-in-picture.js +33 -0
- package/dist/icons/ui-icons/play-reverse.js +20 -0
- package/dist/icons/ui-icons/play.js +20 -0
- package/dist/icons/ui-icons/playback-options.js +24 -0
- package/dist/icons/ui-icons/plus-circle-fill-alt.js +23 -0
- package/dist/icons/ui-icons/plus-circle-fill.js +17 -0
- package/dist/icons/ui-icons/plus-circle.js +26 -0
- package/dist/icons/ui-icons/plus-minus-buttons-h.js +25 -0
- package/dist/icons/ui-icons/plus-minus-buttons-v.js +25 -0
- package/dist/icons/ui-icons/plus-square-fill-transparent.js +27 -0
- package/dist/icons/ui-icons/plus-square-fill.js +17 -0
- package/dist/icons/ui-icons/plus-square.js +27 -0
- package/dist/icons/ui-icons/pointer-hand-disabled.js +34 -0
- package/dist/icons/ui-icons/pointer-hand.js +20 -0
- package/dist/icons/ui-icons/position-arrows-h.js +26 -0
- package/dist/icons/ui-icons/position-arrows-inverted-h.js +26 -0
- package/dist/icons/ui-icons/position-arrows-inverted-v.js +26 -0
- package/dist/icons/ui-icons/position-arrows-inverted.js +26 -0
- package/dist/icons/ui-icons/position-arrows-v.js +26 -0
- package/dist/icons/ui-icons/position-arrows.js +26 -0
- package/dist/icons/ui-icons/position-h-center.js +43 -0
- package/dist/icons/ui-icons/position-h-end.js +43 -0
- package/dist/icons/ui-icons/position-h-start.js +43 -0
- package/dist/icons/ui-icons/position-left.js +31 -0
- package/dist/icons/ui-icons/position-right.js +31 -0
- package/dist/icons/ui-icons/position-v-center.js +43 -0
- package/dist/icons/ui-icons/position-v-end.js +43 -0
- package/dist/icons/ui-icons/position-v-start.js +43 -0
- package/dist/icons/ui-icons/position2x2-bottom-left.js +52 -0
- package/dist/icons/ui-icons/position2x2-bottom-right.js +52 -0
- package/dist/icons/ui-icons/position2x2-empty.js +51 -0
- package/dist/icons/ui-icons/position2x2-top-left.js +52 -0
- package/dist/icons/ui-icons/position2x2-top-right.js +52 -0
- package/dist/icons/ui-icons/position3x3-bottom-center.js +97 -0
- package/dist/icons/ui-icons/position3x3-bottom-left.js +97 -0
- package/dist/icons/ui-icons/position3x3-bottom-right.js +97 -0
- package/dist/icons/ui-icons/position3x3-center-center.js +97 -0
- package/dist/icons/ui-icons/position3x3-center-left.js +97 -0
- package/dist/icons/ui-icons/position3x3-center-right.js +97 -0
- package/dist/icons/ui-icons/position3x3-empty.js +96 -0
- package/dist/icons/ui-icons/position3x3-top-center.js +97 -0
- package/dist/icons/ui-icons/position3x3-top-left.js +97 -0
- package/dist/icons/ui-icons/position3x3-top-right.js +97 -0
- package/dist/icons/ui-icons/positioning-guide-alt.js +30 -0
- package/dist/icons/ui-icons/positioning-guide.js +30 -0
- package/dist/icons/ui-icons/positioning-width-guide.js +40 -0
- package/dist/icons/ui-icons/preload.js +44 -0
- package/dist/icons/ui-icons/preview-responsive.js +48 -0
- package/dist/icons/ui-icons/preview.js +35 -0
- package/dist/icons/ui-icons/progressbar-intermittent.js +26 -0
- package/dist/icons/ui-icons/progressbar.js +30 -0
- package/dist/icons/ui-icons/range-max.js +48 -0
- package/dist/icons/ui-icons/range-mid.js +40 -0
- package/dist/icons/ui-icons/range-min.js +48 -0
- package/dist/icons/ui-icons/range.js +61 -0
- package/dist/icons/ui-icons/read-only.js +25 -0
- package/dist/icons/ui-icons/reduce-height-bottom.js +49 -0
- package/dist/icons/ui-icons/reduce-height-top.js +49 -0
- package/dist/icons/ui-icons/regex.js +39 -0
- package/dist/icons/ui-icons/remove.js +20 -0
- package/dist/icons/ui-icons/rename.js +24 -0
- package/dist/icons/ui-icons/reorder-grabber-h.js +51 -0
- package/dist/icons/ui-icons/reorder-grabber-v.js +57 -0
- package/dist/icons/ui-icons/reorder.js +35 -0
- package/dist/icons/ui-icons/required-alt.js +20 -0
- package/dist/icons/ui-icons/required.js +19 -0
- package/dist/icons/ui-icons/reset-to-zero.js +33 -0
- package/dist/icons/ui-icons/reset.js +25 -0
- package/dist/icons/ui-icons/responsive-overrides-alt-fill.js +26 -0
- package/dist/icons/ui-icons/responsive-overrides-alt.js +49 -0
- package/dist/icons/ui-icons/responsive-overrides-alt2-fill.js +34 -0
- package/dist/icons/ui-icons/responsive-overrides-alt2.js +45 -0
- package/dist/icons/ui-icons/responsive-overrides-alt3-fill.js +33 -0
- package/dist/icons/ui-icons/responsive-overrides.js +39 -0
- package/dist/icons/ui-icons/responsive.js +33 -0
- package/dist/icons/ui-icons/right-panel-alt.js +23 -0
- package/dist/icons/ui-icons/right-panel.js +22 -0
- package/dist/icons/ui-icons/rotate-left.js +20 -0
- package/dist/icons/ui-icons/rotate-right.js +20 -0
- package/dist/icons/ui-icons/rounded-corners.js +19 -0
- package/dist/icons/ui-icons/route.js +27 -0
- package/dist/icons/ui-icons/row-add.js +45 -0
- package/dist/icons/ui-icons/row-empty.js +51 -0
- package/dist/icons/ui-icons/row.js +45 -0
- package/dist/icons/ui-icons/rows.js +42 -0
- package/dist/icons/ui-icons/ruler.js +28 -0
- package/dist/icons/ui-icons/save.js +26 -0
- package/dist/icons/ui-icons/screen-desktop.js +32 -0
- package/dist/icons/ui-icons/screen-large.js +23 -0
- package/dist/icons/ui-icons/screen-mobile.js +39 -0
- package/dist/icons/ui-icons/screen-tablet-large.js +36 -0
- package/dist/icons/ui-icons/screen-tablet.js +36 -0
- package/dist/icons/ui-icons/scrollbar-h.js +40 -0
- package/dist/icons/ui-icons/scrollbar-v.js +41 -0
- package/dist/icons/ui-icons/scrollbars.js +55 -0
- package/dist/icons/ui-icons/search-empty.js +37 -0
- package/dist/icons/ui-icons/search.js +25 -0
- package/dist/icons/ui-icons/separator-h.js +41 -0
- package/dist/icons/ui-icons/separator-v.js +39 -0
- package/dist/icons/ui-icons/shadow.js +61 -0
- package/dist/icons/ui-icons/share.js +26 -0
- package/dist/icons/ui-icons/shield-plus-alt.js +27 -0
- package/dist/icons/ui-icons/shield-plus.js +20 -0
- package/dist/icons/ui-icons/shield.js +20 -0
- package/dist/icons/ui-icons/shrink-diagonal-left-xl.js +20 -0
- package/dist/icons/ui-icons/shrink-diagonal-left.js +20 -0
- package/dist/icons/ui-icons/shrink-diagonal-right-xl.js +20 -0
- package/dist/icons/ui-icons/shrink-diagonal-right.js +20 -0
- package/dist/icons/ui-icons/shrink-xl.js +20 -0
- package/dist/icons/ui-icons/shrink.js +20 -0
- package/dist/icons/ui-icons/shuffle.js +20 -0
- package/dist/icons/ui-icons/sidebar-flip.js +22 -0
- package/dist/icons/ui-icons/sidebar.js +22 -0
- package/dist/icons/ui-icons/single-item-left-inset-mobile.js +48 -0
- package/dist/icons/ui-icons/single-item-left-inset.js +23 -0
- package/dist/icons/ui-icons/single-item-right-inset-mobile.js +50 -0
- package/dist/icons/ui-icons/single-item-right-inset.js +23 -0
- package/dist/icons/ui-icons/size-alt.js +33 -0
- package/dist/icons/ui-icons/size.js +29 -0
- package/dist/icons/ui-icons/slider.js +31 -0
- package/dist/icons/ui-icons/sliders.js +68 -0
- package/dist/icons/ui-icons/small.js +24 -0
- package/dist/icons/ui-icons/solid-circle-fill-transparent.js +22 -0
- package/dist/icons/ui-icons/solid-circle-filled.js +21 -0
- package/dist/icons/ui-icons/solid-circle-gradient.js +31 -0
- package/dist/icons/ui-icons/solid-circle.js +21 -0
- package/dist/icons/ui-icons/solid-color.js +19 -0
- package/dist/icons/ui-icons/solid-rect-fill-transparent.js +24 -0
- package/dist/icons/ui-icons/solid-rect-filled.js +23 -0
- package/dist/icons/ui-icons/solid-rect-gradient.js +33 -0
- package/dist/icons/ui-icons/solid-rect.js +23 -0
- package/dist/icons/ui-icons/sort-asc.js +20 -0
- package/dist/icons/ui-icons/sort-desc.js +20 -0
- package/dist/icons/ui-icons/sort-generic.js +25 -0
- package/dist/icons/ui-icons/spacing-bottom-in.js +23 -0
- package/dist/icons/ui-icons/spacing-bottom.js +23 -0
- package/dist/icons/ui-icons/spacing-left-in.js +23 -0
- package/dist/icons/ui-icons/spacing-left.js +23 -0
- package/dist/icons/ui-icons/spacing-right-in.js +23 -0
- package/dist/icons/ui-icons/spacing-right.js +23 -0
- package/dist/icons/ui-icons/spacing-top-in.js +23 -0
- package/dist/icons/ui-icons/spacing-top.js +23 -0
- package/dist/icons/ui-icons/speed.js +25 -0
- package/dist/icons/ui-icons/stagger.js +53 -0
- package/dist/icons/ui-icons/star.js +18 -0
- package/dist/icons/ui-icons/step.js +27 -0
- package/dist/icons/ui-icons/stop.js +20 -0
- package/dist/icons/ui-icons/swap.js +41 -0
- package/dist/icons/ui-icons/tag-alt.js +24 -0
- package/dist/icons/ui-icons/tag.js +26 -0
- package/dist/icons/ui-icons/text-abc.js +40 -0
- package/dist/icons/ui-icons/text-above.js +25 -0
- package/dist/icons/ui-icons/text-align-center.js +20 -0
- package/dist/icons/ui-icons/text-align-generic.js +20 -0
- package/dist/icons/ui-icons/text-align-justify.js +20 -0
- package/dist/icons/ui-icons/text-align-left.js +20 -0
- package/dist/icons/ui-icons/text-align-right.js +20 -0
- package/dist/icons/ui-icons/text-below.js +25 -0
- package/dist/icons/ui-icons/text-box-edit.js +35 -0
- package/dist/icons/ui-icons/text-color-swatch.js +40 -0
- package/dist/icons/ui-icons/text-highlight-color-swatch-alt.js +49 -0
- package/dist/icons/ui-icons/text-highlight-color-swatch.js +48 -0
- package/dist/icons/ui-icons/text-larger.js +23 -0
- package/dist/icons/ui-icons/text-length.js +20 -0
- package/dist/icons/ui-icons/text-size-alt.js +23 -0
- package/dist/icons/ui-icons/text-size.js +20 -0
- package/dist/icons/ui-icons/text-smaller.js +23 -0
- package/dist/icons/ui-icons/text-strikethrough.js +26 -0
- package/dist/icons/ui-icons/text-uppercase.js +25 -0
- package/dist/icons/ui-icons/text-write.js +39 -0
- package/dist/icons/ui-icons/thumbs-down.js +22 -0
- package/dist/icons/ui-icons/thumbs-up.js +22 -0
- package/dist/icons/ui-icons/title-generic.js +25 -0
- package/dist/icons/ui-icons/toggle-off.js +33 -0
- package/dist/icons/ui-icons/toggle-on-alt.js +19 -0
- package/dist/icons/ui-icons/toggle-on.js +31 -0
- package/dist/icons/ui-icons/tools.js +25 -0
- package/dist/icons/ui-icons/total-items.js +45 -0
- package/dist/icons/ui-icons/trash-alt.js +44 -0
- package/dist/icons/ui-icons/trash.js +33 -0
- package/dist/icons/ui-icons/tree-alt.js +62 -0
- package/dist/icons/ui-icons/tree-alt2.js +79 -0
- package/dist/icons/ui-icons/tree.js +70 -0
- package/dist/icons/ui-icons/troubleshoot-alt.js +39 -0
- package/dist/icons/ui-icons/two-cards-left.js +32 -0
- package/dist/icons/ui-icons/two-cards-right.js +32 -0
- package/dist/icons/ui-icons/two-columns.js +30 -0
- package/dist/icons/ui-icons/typography-options.js +77 -0
- package/dist/icons/ui-icons/typography.js +71 -0
- package/dist/icons/ui-icons/underline.js +19 -0
- package/dist/icons/ui-icons/ungroup.js +39 -0
- package/dist/icons/ui-icons/upload.js +20 -0
- package/dist/icons/ui-icons/venn-diagram-alt.js +34 -0
- package/dist/icons/ui-icons/venn-diagram-alt2.js +34 -0
- package/dist/icons/ui-icons/venn-diagram-alt3.js +34 -0
- package/dist/icons/ui-icons/venn-diagram-alt4.js +34 -0
- package/dist/icons/ui-icons/venn-diagram-alt5.js +34 -0
- package/dist/icons/ui-icons/venn-diagram-alt6.js +34 -0
- package/dist/icons/ui-icons/venn-diagram-alt7.js +39 -0
- package/dist/icons/ui-icons/venn-diagram.js +26 -0
- package/dist/icons/ui-icons/vertical-align-alt.js +27 -0
- package/dist/icons/ui-icons/vertical-align-around.js +39 -0
- package/dist/icons/ui-icons/vertical-align-between-alt.js +39 -0
- package/dist/icons/ui-icons/vertical-align-between.js +48 -0
- package/dist/icons/ui-icons/vertical-align-bottom.js +44 -0
- package/dist/icons/ui-icons/vertical-align-center.js +39 -0
- package/dist/icons/ui-icons/vertical-align-evenly.js +39 -0
- package/dist/icons/ui-icons/vertical-align-stretch.js +39 -0
- package/dist/icons/ui-icons/vertical-align-top.js +46 -0
- package/dist/icons/ui-icons/vertical-align.js +35 -0
- package/dist/icons/ui-icons/vertical-spacing.js +28 -0
- package/dist/icons/ui-icons/video-chapters.js +25 -0
- package/dist/icons/ui-icons/video-controls.js +67 -0
- package/dist/icons/ui-icons/video-file.js +40 -0
- package/dist/icons/ui-icons/video-poster-image.js +40 -0
- package/dist/icons/ui-icons/video-subtitle-alt.js +39 -0
- package/dist/icons/ui-icons/video-subtitle.js +27 -0
- package/dist/icons/ui-icons/video.js +36 -0
- package/dist/icons/ui-icons/visibility-alt.js +40 -0
- package/dist/icons/ui-icons/visibility-alt2.js +41 -0
- package/dist/icons/ui-icons/visibility.js +45 -0
- package/dist/icons/ui-icons/visible.js +28 -0
- package/dist/icons/ui-icons/volume.js +25 -0
- package/dist/icons/ui-icons/warning-circle-fill-transparent.js +30 -0
- package/dist/icons/ui-icons/warning-circle-fill.js +17 -0
- package/dist/icons/ui-icons/warning-circle.js +33 -0
- package/dist/icons/ui-icons/warning-fill-transparent.js +30 -0
- package/dist/icons/ui-icons/warning-fill.js +17 -0
- package/dist/icons/ui-icons/warning.js +30 -0
- package/dist/icons/ui-icons/web-video.js +63 -0
- package/dist/icons/ui-icons/wide-bottom.js +49 -0
- package/dist/icons/ui-icons/wide-left.js +49 -0
- package/dist/icons/ui-icons/wide-right.js +49 -0
- package/dist/icons/ui-icons/wide-top.js +49 -0
- package/dist/icons/ui-icons/width.js +29 -0
- package/dist/icons/ui-icons/wordpress.js +17 -0
- package/dist/icons/ui-icons/wrapper-alt.js +71 -0
- package/dist/icons/ui-icons/wrapper-config.js +41 -0
- package/dist/icons/ui-icons/wrapper-off-alt.js +19 -0
- package/dist/icons/ui-icons/wrapper-overflow.js +31 -0
- package/dist/icons/ui-icons/wrapper-simple-alt.js +58 -0
- package/dist/icons/ui-icons/wrapper-simple.js +32 -0
- package/dist/icons/ui-icons/wrapper.js +42 -0
- package/dist/icons/ui-icons/wrench.js +19 -0
- package/dist/icons/ui-icons/zap-fill.js +20 -0
- package/dist/icons/ui-icons/zap.js +19 -0
- package/dist/index.js +32 -108
- package/dist/input-field-UCZL5bqv.js +290 -0
- package/dist/jsx-svg-OBADs_Qs.js +11123 -0
- package/dist/link-input-D7iDRpOM.js +1821 -0
- package/dist/modal-DbVLYMkH.js +318 -0
- package/dist/number-ZZIxJukn.js +40 -0
- package/dist/number-picker-CkA1iJNZ.js +268 -0
- package/dist/proxy-DjkEpeDL.js +9660 -0
- package/dist/shared-D_OXizRt.js +1038 -0
- package/dist/smart-image-CbSsEASF.js +284 -0
- package/dist/solid-color-picker-DbT-aoVx.js +1415 -0
- package/dist/style-admin.js +1 -1
- package/dist/style-editor.js +1 -1
- package/dist/style.js +1 -1
- package/dist/switch-L8dFSQWQ.js +274 -0
- package/dist/tabs-BrdyBER5.js +975 -0
- package/dist/textSelection-Dv6WPj0Z.js +45 -0
- package/dist/toggle-button-DJ8jNQ-9.js +424 -0
- package/dist/tooltip-BzJzYlcc.js +440 -0
- package/dist/useAsyncList-BNzwKoX4.js +412 -0
- package/dist/useButton-ra1ZSZ4z.js +57 -0
- package/dist/useEvent-DkZVfgsS.js +22 -0
- package/dist/useField-D0WrzR2F.js +32 -0
- package/dist/useFilter-OiMnf6sb.js +44 -0
- package/dist/useFocusRing-DuYL4cdO.js +98 -0
- package/dist/useFormReset-DdkykzAn.js +18 -0
- package/dist/useHover-qaMm3XFO.js +982 -0
- package/dist/useLabel-2EohW5l6.js +27 -0
- package/dist/useLabels-B2p7RXi5.js +16 -0
- package/dist/useListState-CD_5vfyy.js +147 -0
- package/dist/useLocalizedStringFormatter-Dv2diN3k.js +108 -0
- package/dist/useNumberField-2xbi3jRV.js +1318 -0
- package/dist/useNumberFormatter-C2Cm2mNj.js +10 -0
- package/dist/usePress-ZP1TjkFf.js +678 -0
- package/dist/useToggle-ecIirvIM.js +64 -0
- package/dist/useToggleState-IIDbiKPl.js +23 -0
- package/dist/utilities/array-helpers.js +38 -49
- package/dist/utilities/debounce-throttle.js +2 -123
- package/dist/utilities/es-dash.js +2 -400
- package/dist/utilities/general.js +2 -10
- package/dist/utilities/hash.js +31 -35
- package/dist/utilities/index.js +6 -41
- package/dist/utilities/text-helpers.js +96 -129
- package/dist/utilities/web-workers.js +61 -44
- package/dist/utilities-CPFDXC3B.js +7 -0
- package/dist/utils-B_uiqNa4.js +372 -0
- package/dist/workers/image-analysis.worker.js +56 -48
- package/package.json +37 -25
- package/dist/Button-DtRmB6b8.js +0 -243
- package/dist/Dialog-DTIxSDhz.js +0 -2790
- package/dist/FieldError-BPG0hKfB.js +0 -42
- package/dist/FocusScope-CjFQ7cbd.js +0 -832
- package/dist/Form-Cq3fu75_.js +0 -5
- package/dist/Heading-CY-_gt-U.js +0 -16
- package/dist/Hidden-DOH36apC.js +0 -58
- package/dist/Input-BG9DaxYN.js +0 -169
- package/dist/Label-_aSf9-8u.js +0 -18
- package/dist/List-CQFXnN4w.js +0 -590
- package/dist/ListBox-DXFyyj_r.js +0 -695
- package/dist/NumberFormatter-DA8u1Ot7.js +0 -140
- package/dist/OverlayArrow-Fuxj-1QM.js +0 -614
- package/dist/PortalProvider-BQ1X8vGX.js +0 -19
- package/dist/RSPContexts-CJ-HBf0L.js +0 -18
- package/dist/RadioGroup-DCeiLxLK.js +0 -371
- package/dist/SearchField-B_yKFXRk.js +0 -817
- package/dist/SelectionIndicator-D7WMzeAW.js +0 -7
- package/dist/SelectionManager-B02LcxLr.js +0 -2505
- package/dist/SharedElementTransition-CtoWSaF0.js +0 -12
- package/dist/Slider-bR3fAmim.js +0 -897
- package/dist/Text-CjFEHSfr.js +0 -17
- package/dist/VisuallyHidden-DZnWrkn8.js +0 -48
- package/dist/animation-Dfl8uEb3.js +0 -67
- package/dist/clsx-DgYk2OaC.js +0 -16
- package/dist/color-swatch-bUFkK7ox.js +0 -2570
- package/dist/components/smart-image/image-analysis-worker-next.js +0 -144
- package/dist/components/smart-image/smart-image-next.js +0 -294
- package/dist/context-iUFQCK8m.js +0 -95
- package/dist/default-i18n-CnQeC5Pl.js +0 -731
- package/dist/filterDOMProps-eGTqWSTd.js +0 -71
- package/dist/general-BfKmjm56.js +0 -4378
- package/dist/index-BHpUy2Ix.js +0 -44
- package/dist/index-BL5gdWX4.js +0 -28323
- package/dist/number-7sOvrqo0.js +0 -41
- package/dist/proxy-CNEXmkdK.js +0 -7948
- package/dist/react-jsx-parser.min-DAh4myol.js +0 -11736
- package/dist/shared-CNH8QfV9.js +0 -1111
- package/dist/sprintf-DmNrJSYG.js +0 -51
- package/dist/textSelection-DA3VcKpG.js +0 -46
- package/dist/useAsyncList-DsZvQXls.js +0 -453
- package/dist/useButton-DyMX0EVr.js +0 -59
- package/dist/useEvent-Bfy68GHZ.js +0 -22
- package/dist/useFilter-Bg5C34XC.js +0 -50
- package/dist/useFocusRing-B2glEZ25.js +0 -114
- package/dist/useFormReset-BoxsKyJ9.js +0 -20
- package/dist/useFormValidation-BrbMhS2N.js +0 -232
- package/dist/useHover-DkmPQdGE.js +0 -1047
- package/dist/useLabel-DzXzKZZZ.js +0 -27
- package/dist/useLabels-D8O3gOdV.js +0 -23
- package/dist/useListState-BjnzKozj.js +0 -171
- package/dist/useLocalizedStringFormatter-CEDs0LsA.js +0 -121
- package/dist/useNumberField-CsygZKz9.js +0 -1330
- package/dist/useNumberFormatter-CG_IQXp9.js +0 -13
- package/dist/usePress-Ck5xMtDr.js +0 -701
- package/dist/useToggle-Ddc7N8pR.js +0 -72
- package/dist/useToggleState-H_lORSWO.js +0 -23
- package/dist/utils-Cr3pLd9c.js +0 -420
|
@@ -1,832 +0,0 @@
|
|
|
1
|
-
import { p as $f4e2df6bd15f8569$export$98658e8c59125e6a, h as $d4ee10de306f2510$export$4282f70798064fe0, j as $d4ee10de306f2510$export$cd4e5573fbe2b576, e as $431fbd86ca7dc216$export$b204af158042fbac, q as $b4b717babfbb907b$export$bebd5a1431fec25d, r as $b4b717babfbb907b$export$4c063cf1350e6fed, b as $d4ee10de306f2510$export$e58f029f0fbfdb29, s as $c87311424ea30a05$export$a11b0059900ceec8, t as $c87311424ea30a05$export$6446a186d09e379e, u as $3ad3f6e1647bc98d$export$80f3e147d781571c, v as $507fabe10e71c6fb$export$630ff653c5ada6a9, w as $431fbd86ca7dc216$export$f21a1ffae260145a } from "./useHover-DkmPQdGE.js";
|
|
2
|
-
import { c as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c } from "./utils-Cr3pLd9c.js";
|
|
3
|
-
import $dbSRa$react__default, { useRef, useContext, useMemo, useEffect } from "react";
|
|
4
|
-
class $dfc540311bf7f109$export$63eb3ababa9c55c4 {
|
|
5
|
-
get currentNode() {
|
|
6
|
-
return this._currentNode;
|
|
7
|
-
}
|
|
8
|
-
set currentNode(node) {
|
|
9
|
-
if (!$d4ee10de306f2510$export$4282f70798064fe0(this.root, node)) throw new Error("Cannot set currentNode to a node that is not contained by the root node.");
|
|
10
|
-
const walkers = [];
|
|
11
|
-
let curNode = node;
|
|
12
|
-
let currentWalkerCurrentNode = node;
|
|
13
|
-
this._currentNode = node;
|
|
14
|
-
while (curNode && curNode !== this.root) if (curNode.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
|
|
15
|
-
const shadowRoot = curNode;
|
|
16
|
-
const walker2 = this._doc.createTreeWalker(shadowRoot, this.whatToShow, {
|
|
17
|
-
acceptNode: this._acceptNode
|
|
18
|
-
});
|
|
19
|
-
walkers.push(walker2);
|
|
20
|
-
walker2.currentNode = currentWalkerCurrentNode;
|
|
21
|
-
this._currentSetFor.add(walker2);
|
|
22
|
-
curNode = currentWalkerCurrentNode = shadowRoot.host;
|
|
23
|
-
} else curNode = curNode.parentNode;
|
|
24
|
-
const walker = this._doc.createTreeWalker(this.root, this.whatToShow, {
|
|
25
|
-
acceptNode: this._acceptNode
|
|
26
|
-
});
|
|
27
|
-
walkers.push(walker);
|
|
28
|
-
walker.currentNode = currentWalkerCurrentNode;
|
|
29
|
-
this._currentSetFor.add(walker);
|
|
30
|
-
this._walkerStack = walkers;
|
|
31
|
-
}
|
|
32
|
-
get doc() {
|
|
33
|
-
return this._doc;
|
|
34
|
-
}
|
|
35
|
-
firstChild() {
|
|
36
|
-
let currentNode = this.currentNode;
|
|
37
|
-
let newNode = this.nextNode();
|
|
38
|
-
if (!$d4ee10de306f2510$export$4282f70798064fe0(currentNode, newNode)) {
|
|
39
|
-
this.currentNode = currentNode;
|
|
40
|
-
return null;
|
|
41
|
-
}
|
|
42
|
-
if (newNode) this.currentNode = newNode;
|
|
43
|
-
return newNode;
|
|
44
|
-
}
|
|
45
|
-
lastChild() {
|
|
46
|
-
let walker = this._walkerStack[0];
|
|
47
|
-
let newNode = walker.lastChild();
|
|
48
|
-
if (newNode) this.currentNode = newNode;
|
|
49
|
-
return newNode;
|
|
50
|
-
}
|
|
51
|
-
nextNode() {
|
|
52
|
-
const nextNode = this._walkerStack[0].nextNode();
|
|
53
|
-
if (nextNode) {
|
|
54
|
-
const shadowRoot = nextNode.shadowRoot;
|
|
55
|
-
if (shadowRoot) {
|
|
56
|
-
var _this_filter;
|
|
57
|
-
let nodeResult;
|
|
58
|
-
if (typeof this.filter === "function") nodeResult = this.filter(nextNode);
|
|
59
|
-
else if ((_this_filter = this.filter) === null || _this_filter === void 0 ? void 0 : _this_filter.acceptNode) nodeResult = this.filter.acceptNode(nextNode);
|
|
60
|
-
if (nodeResult === NodeFilter.FILTER_ACCEPT) {
|
|
61
|
-
this.currentNode = nextNode;
|
|
62
|
-
return nextNode;
|
|
63
|
-
}
|
|
64
|
-
let newNode = this.nextNode();
|
|
65
|
-
if (newNode) this.currentNode = newNode;
|
|
66
|
-
return newNode;
|
|
67
|
-
}
|
|
68
|
-
if (nextNode) this.currentNode = nextNode;
|
|
69
|
-
return nextNode;
|
|
70
|
-
} else {
|
|
71
|
-
if (this._walkerStack.length > 1) {
|
|
72
|
-
this._walkerStack.shift();
|
|
73
|
-
let newNode = this.nextNode();
|
|
74
|
-
if (newNode) this.currentNode = newNode;
|
|
75
|
-
return newNode;
|
|
76
|
-
} else return null;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
previousNode() {
|
|
80
|
-
const currentWalker = this._walkerStack[0];
|
|
81
|
-
if (currentWalker.currentNode === currentWalker.root) {
|
|
82
|
-
if (this._currentSetFor.has(currentWalker)) {
|
|
83
|
-
this._currentSetFor.delete(currentWalker);
|
|
84
|
-
if (this._walkerStack.length > 1) {
|
|
85
|
-
this._walkerStack.shift();
|
|
86
|
-
let newNode = this.previousNode();
|
|
87
|
-
if (newNode) this.currentNode = newNode;
|
|
88
|
-
return newNode;
|
|
89
|
-
} else return null;
|
|
90
|
-
}
|
|
91
|
-
return null;
|
|
92
|
-
}
|
|
93
|
-
const previousNode = currentWalker.previousNode();
|
|
94
|
-
if (previousNode) {
|
|
95
|
-
const shadowRoot = previousNode.shadowRoot;
|
|
96
|
-
if (shadowRoot) {
|
|
97
|
-
var _this_filter;
|
|
98
|
-
let nodeResult;
|
|
99
|
-
if (typeof this.filter === "function") nodeResult = this.filter(previousNode);
|
|
100
|
-
else if ((_this_filter = this.filter) === null || _this_filter === void 0 ? void 0 : _this_filter.acceptNode) nodeResult = this.filter.acceptNode(previousNode);
|
|
101
|
-
if (nodeResult === NodeFilter.FILTER_ACCEPT) {
|
|
102
|
-
if (previousNode) this.currentNode = previousNode;
|
|
103
|
-
return previousNode;
|
|
104
|
-
}
|
|
105
|
-
let newNode = this.lastChild();
|
|
106
|
-
if (newNode) this.currentNode = newNode;
|
|
107
|
-
return newNode;
|
|
108
|
-
}
|
|
109
|
-
if (previousNode) this.currentNode = previousNode;
|
|
110
|
-
return previousNode;
|
|
111
|
-
} else {
|
|
112
|
-
if (this._walkerStack.length > 1) {
|
|
113
|
-
this._walkerStack.shift();
|
|
114
|
-
let newNode = this.previousNode();
|
|
115
|
-
if (newNode) this.currentNode = newNode;
|
|
116
|
-
return newNode;
|
|
117
|
-
} else return null;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
* @deprecated
|
|
122
|
-
*/
|
|
123
|
-
nextSibling() {
|
|
124
|
-
return null;
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* @deprecated
|
|
128
|
-
*/
|
|
129
|
-
previousSibling() {
|
|
130
|
-
return null;
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* @deprecated
|
|
134
|
-
*/
|
|
135
|
-
parentNode() {
|
|
136
|
-
return null;
|
|
137
|
-
}
|
|
138
|
-
constructor(doc, root, whatToShow, filter) {
|
|
139
|
-
this._walkerStack = [];
|
|
140
|
-
this._currentSetFor = /* @__PURE__ */ new Set();
|
|
141
|
-
this._acceptNode = (node) => {
|
|
142
|
-
if (node.nodeType === Node.ELEMENT_NODE) {
|
|
143
|
-
const shadowRoot2 = node.shadowRoot;
|
|
144
|
-
if (shadowRoot2) {
|
|
145
|
-
const walker = this._doc.createTreeWalker(shadowRoot2, this.whatToShow, {
|
|
146
|
-
acceptNode: this._acceptNode
|
|
147
|
-
});
|
|
148
|
-
this._walkerStack.unshift(walker);
|
|
149
|
-
return NodeFilter.FILTER_ACCEPT;
|
|
150
|
-
} else {
|
|
151
|
-
var _this_filter;
|
|
152
|
-
if (typeof this.filter === "function") return this.filter(node);
|
|
153
|
-
else if ((_this_filter = this.filter) === null || _this_filter === void 0 ? void 0 : _this_filter.acceptNode) return this.filter.acceptNode(node);
|
|
154
|
-
else if (this.filter === null) return NodeFilter.FILTER_ACCEPT;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
return NodeFilter.FILTER_SKIP;
|
|
158
|
-
};
|
|
159
|
-
this._doc = doc;
|
|
160
|
-
this.root = root;
|
|
161
|
-
this.filter = filter !== null && filter !== void 0 ? filter : null;
|
|
162
|
-
this.whatToShow = whatToShow !== null && whatToShow !== void 0 ? whatToShow : NodeFilter.SHOW_ALL;
|
|
163
|
-
this._currentNode = root;
|
|
164
|
-
this._walkerStack.unshift(doc.createTreeWalker(root, whatToShow, this._acceptNode));
|
|
165
|
-
const shadowRoot = root.shadowRoot;
|
|
166
|
-
if (shadowRoot) {
|
|
167
|
-
const walker = this._doc.createTreeWalker(shadowRoot, this.whatToShow, {
|
|
168
|
-
acceptNode: this._acceptNode
|
|
169
|
-
});
|
|
170
|
-
this._walkerStack.unshift(walker);
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
function $dfc540311bf7f109$export$4d0f8be8b12a7ef6(doc, root, whatToShow, filter) {
|
|
175
|
-
if ($f4e2df6bd15f8569$export$98658e8c59125e6a()) return new $dfc540311bf7f109$export$63eb3ababa9c55c4(doc, root, whatToShow, filter);
|
|
176
|
-
return doc.createTreeWalker(root, whatToShow, filter);
|
|
177
|
-
}
|
|
178
|
-
const $9bf71ea28793e738$var$FocusContext = /* @__PURE__ */ $dbSRa$react__default.createContext(null);
|
|
179
|
-
const $9bf71ea28793e738$var$RESTORE_FOCUS_EVENT = "react-aria-focus-scope-restore";
|
|
180
|
-
let $9bf71ea28793e738$var$activeScope = null;
|
|
181
|
-
function $9bf71ea28793e738$export$20e40289641fbbb6(props) {
|
|
182
|
-
let { children, contain, restoreFocus, autoFocus } = props;
|
|
183
|
-
let startRef = useRef(null);
|
|
184
|
-
let endRef = useRef(null);
|
|
185
|
-
let scopeRef = useRef([]);
|
|
186
|
-
let { parentNode } = useContext($9bf71ea28793e738$var$FocusContext) || {};
|
|
187
|
-
let node = useMemo(() => new $9bf71ea28793e738$var$TreeNode({
|
|
188
|
-
scopeRef
|
|
189
|
-
}), [
|
|
190
|
-
scopeRef
|
|
191
|
-
]);
|
|
192
|
-
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
193
|
-
let parent = parentNode || $9bf71ea28793e738$export$d06fae2ee68b101e.root;
|
|
194
|
-
if ($9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(parent.scopeRef) && $9bf71ea28793e738$var$activeScope && !$9bf71ea28793e738$var$isAncestorScope($9bf71ea28793e738$var$activeScope, parent.scopeRef)) {
|
|
195
|
-
let activeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode($9bf71ea28793e738$var$activeScope);
|
|
196
|
-
if (activeNode) parent = activeNode;
|
|
197
|
-
}
|
|
198
|
-
parent.addChild(node);
|
|
199
|
-
$9bf71ea28793e738$export$d06fae2ee68b101e.addNode(node);
|
|
200
|
-
}, [
|
|
201
|
-
node,
|
|
202
|
-
parentNode
|
|
203
|
-
]);
|
|
204
|
-
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
205
|
-
let node2 = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef);
|
|
206
|
-
if (node2) node2.contain = !!contain;
|
|
207
|
-
}, [
|
|
208
|
-
contain
|
|
209
|
-
]);
|
|
210
|
-
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
211
|
-
var _startRef_current;
|
|
212
|
-
let node2 = (_startRef_current = startRef.current) === null || _startRef_current === void 0 ? void 0 : _startRef_current.nextSibling;
|
|
213
|
-
let nodes = [];
|
|
214
|
-
let stopPropagation = (e) => e.stopPropagation();
|
|
215
|
-
while (node2 && node2 !== endRef.current) {
|
|
216
|
-
nodes.push(node2);
|
|
217
|
-
node2.addEventListener($9bf71ea28793e738$var$RESTORE_FOCUS_EVENT, stopPropagation);
|
|
218
|
-
node2 = node2.nextSibling;
|
|
219
|
-
}
|
|
220
|
-
scopeRef.current = nodes;
|
|
221
|
-
return () => {
|
|
222
|
-
for (let node3 of nodes) node3.removeEventListener($9bf71ea28793e738$var$RESTORE_FOCUS_EVENT, stopPropagation);
|
|
223
|
-
};
|
|
224
|
-
}, [
|
|
225
|
-
children
|
|
226
|
-
]);
|
|
227
|
-
$9bf71ea28793e738$var$useActiveScopeTracker(scopeRef, restoreFocus, contain);
|
|
228
|
-
$9bf71ea28793e738$var$useFocusContainment(scopeRef, contain);
|
|
229
|
-
$9bf71ea28793e738$var$useRestoreFocus(scopeRef, restoreFocus, contain);
|
|
230
|
-
$9bf71ea28793e738$var$useAutoFocus(scopeRef, autoFocus);
|
|
231
|
-
useEffect(() => {
|
|
232
|
-
const activeElement = $d4ee10de306f2510$export$cd4e5573fbe2b576($431fbd86ca7dc216$export$b204af158042fbac(scopeRef.current ? scopeRef.current[0] : void 0));
|
|
233
|
-
let scope = null;
|
|
234
|
-
if ($9bf71ea28793e738$var$isElementInScope(activeElement, scopeRef.current)) {
|
|
235
|
-
for (let node2 of $9bf71ea28793e738$export$d06fae2ee68b101e.traverse()) if (node2.scopeRef && $9bf71ea28793e738$var$isElementInScope(activeElement, node2.scopeRef.current)) scope = node2;
|
|
236
|
-
if (scope === $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef)) $9bf71ea28793e738$var$activeScope = scope.scopeRef;
|
|
237
|
-
}
|
|
238
|
-
}, [
|
|
239
|
-
scopeRef
|
|
240
|
-
]);
|
|
241
|
-
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
242
|
-
return () => {
|
|
243
|
-
var _focusScopeTree_getTreeNode_parent, _focusScopeTree_getTreeNode;
|
|
244
|
-
var _focusScopeTree_getTreeNode_parent_scopeRef;
|
|
245
|
-
let parentScope = (_focusScopeTree_getTreeNode_parent_scopeRef = (_focusScopeTree_getTreeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef)) === null || _focusScopeTree_getTreeNode === void 0 ? void 0 : (_focusScopeTree_getTreeNode_parent = _focusScopeTree_getTreeNode.parent) === null || _focusScopeTree_getTreeNode_parent === void 0 ? void 0 : _focusScopeTree_getTreeNode_parent.scopeRef) !== null && _focusScopeTree_getTreeNode_parent_scopeRef !== void 0 ? _focusScopeTree_getTreeNode_parent_scopeRef : null;
|
|
246
|
-
if ((scopeRef === $9bf71ea28793e738$var$activeScope || $9bf71ea28793e738$var$isAncestorScope(scopeRef, $9bf71ea28793e738$var$activeScope)) && (!parentScope || $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(parentScope))) $9bf71ea28793e738$var$activeScope = parentScope;
|
|
247
|
-
$9bf71ea28793e738$export$d06fae2ee68b101e.removeTreeNode(scopeRef);
|
|
248
|
-
};
|
|
249
|
-
}, [
|
|
250
|
-
scopeRef
|
|
251
|
-
]);
|
|
252
|
-
let focusManager = useMemo(() => $9bf71ea28793e738$var$createFocusManagerForScope(scopeRef), []);
|
|
253
|
-
let value = useMemo(() => ({
|
|
254
|
-
focusManager,
|
|
255
|
-
parentNode: node
|
|
256
|
-
}), [
|
|
257
|
-
node,
|
|
258
|
-
focusManager
|
|
259
|
-
]);
|
|
260
|
-
return /* @__PURE__ */ $dbSRa$react__default.createElement($9bf71ea28793e738$var$FocusContext.Provider, {
|
|
261
|
-
value
|
|
262
|
-
}, /* @__PURE__ */ $dbSRa$react__default.createElement("span", {
|
|
263
|
-
"data-focus-scope-start": true,
|
|
264
|
-
hidden: true,
|
|
265
|
-
ref: startRef
|
|
266
|
-
}), children, /* @__PURE__ */ $dbSRa$react__default.createElement("span", {
|
|
267
|
-
"data-focus-scope-end": true,
|
|
268
|
-
hidden: true,
|
|
269
|
-
ref: endRef
|
|
270
|
-
}));
|
|
271
|
-
}
|
|
272
|
-
function $9bf71ea28793e738$var$createFocusManagerForScope(scopeRef) {
|
|
273
|
-
return {
|
|
274
|
-
focusNext(opts = {}) {
|
|
275
|
-
let scope = scopeRef.current;
|
|
276
|
-
let { from, tabbable, wrap, accept } = opts;
|
|
277
|
-
var _scope_;
|
|
278
|
-
let node = from || $d4ee10de306f2510$export$cd4e5573fbe2b576($431fbd86ca7dc216$export$b204af158042fbac((_scope_ = scope[0]) !== null && _scope_ !== void 0 ? _scope_ : void 0));
|
|
279
|
-
let sentinel = scope[0].previousElementSibling;
|
|
280
|
-
let scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope);
|
|
281
|
-
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, {
|
|
282
|
-
tabbable,
|
|
283
|
-
accept
|
|
284
|
-
}, scope);
|
|
285
|
-
walker.currentNode = $9bf71ea28793e738$var$isElementInScope(node, scope) ? node : sentinel;
|
|
286
|
-
let nextNode = walker.nextNode();
|
|
287
|
-
if (!nextNode && wrap) {
|
|
288
|
-
walker.currentNode = sentinel;
|
|
289
|
-
nextNode = walker.nextNode();
|
|
290
|
-
}
|
|
291
|
-
if (nextNode) $9bf71ea28793e738$var$focusElement(nextNode, true);
|
|
292
|
-
return nextNode;
|
|
293
|
-
},
|
|
294
|
-
focusPrevious(opts = {}) {
|
|
295
|
-
let scope = scopeRef.current;
|
|
296
|
-
let { from, tabbable, wrap, accept } = opts;
|
|
297
|
-
var _scope_;
|
|
298
|
-
let node = from || $d4ee10de306f2510$export$cd4e5573fbe2b576($431fbd86ca7dc216$export$b204af158042fbac((_scope_ = scope[0]) !== null && _scope_ !== void 0 ? _scope_ : void 0));
|
|
299
|
-
let sentinel = scope[scope.length - 1].nextElementSibling;
|
|
300
|
-
let scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope);
|
|
301
|
-
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, {
|
|
302
|
-
tabbable,
|
|
303
|
-
accept
|
|
304
|
-
}, scope);
|
|
305
|
-
walker.currentNode = $9bf71ea28793e738$var$isElementInScope(node, scope) ? node : sentinel;
|
|
306
|
-
let previousNode = walker.previousNode();
|
|
307
|
-
if (!previousNode && wrap) {
|
|
308
|
-
walker.currentNode = sentinel;
|
|
309
|
-
previousNode = walker.previousNode();
|
|
310
|
-
}
|
|
311
|
-
if (previousNode) $9bf71ea28793e738$var$focusElement(previousNode, true);
|
|
312
|
-
return previousNode;
|
|
313
|
-
},
|
|
314
|
-
focusFirst(opts = {}) {
|
|
315
|
-
let scope = scopeRef.current;
|
|
316
|
-
let { tabbable, accept } = opts;
|
|
317
|
-
let scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope);
|
|
318
|
-
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, {
|
|
319
|
-
tabbable,
|
|
320
|
-
accept
|
|
321
|
-
}, scope);
|
|
322
|
-
walker.currentNode = scope[0].previousElementSibling;
|
|
323
|
-
let nextNode = walker.nextNode();
|
|
324
|
-
if (nextNode) $9bf71ea28793e738$var$focusElement(nextNode, true);
|
|
325
|
-
return nextNode;
|
|
326
|
-
},
|
|
327
|
-
focusLast(opts = {}) {
|
|
328
|
-
let scope = scopeRef.current;
|
|
329
|
-
let { tabbable, accept } = opts;
|
|
330
|
-
let scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope);
|
|
331
|
-
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, {
|
|
332
|
-
tabbable,
|
|
333
|
-
accept
|
|
334
|
-
}, scope);
|
|
335
|
-
walker.currentNode = scope[scope.length - 1].nextElementSibling;
|
|
336
|
-
let previousNode = walker.previousNode();
|
|
337
|
-
if (previousNode) $9bf71ea28793e738$var$focusElement(previousNode, true);
|
|
338
|
-
return previousNode;
|
|
339
|
-
}
|
|
340
|
-
};
|
|
341
|
-
}
|
|
342
|
-
function $9bf71ea28793e738$var$getScopeRoot(scope) {
|
|
343
|
-
return scope[0].parentElement;
|
|
344
|
-
}
|
|
345
|
-
function $9bf71ea28793e738$var$shouldContainFocus(scopeRef) {
|
|
346
|
-
let scope = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode($9bf71ea28793e738$var$activeScope);
|
|
347
|
-
while (scope && scope.scopeRef !== scopeRef) {
|
|
348
|
-
if (scope.contain) return false;
|
|
349
|
-
scope = scope.parent;
|
|
350
|
-
}
|
|
351
|
-
return true;
|
|
352
|
-
}
|
|
353
|
-
function $9bf71ea28793e738$var$getRadiosInGroup(element) {
|
|
354
|
-
if (!element.form)
|
|
355
|
-
return Array.from($431fbd86ca7dc216$export$b204af158042fbac(element).querySelectorAll(`input[type="radio"][name="${CSS.escape(element.name)}"]`)).filter((radio) => !radio.form);
|
|
356
|
-
const radioList = element.form.elements.namedItem(element.name);
|
|
357
|
-
let ownerWindow = $431fbd86ca7dc216$export$f21a1ffae260145a(element);
|
|
358
|
-
if (radioList instanceof ownerWindow.RadioNodeList) return Array.from(radioList).filter((el) => el instanceof ownerWindow.HTMLInputElement);
|
|
359
|
-
if (radioList instanceof ownerWindow.HTMLInputElement) return [
|
|
360
|
-
radioList
|
|
361
|
-
];
|
|
362
|
-
return [];
|
|
363
|
-
}
|
|
364
|
-
function $9bf71ea28793e738$var$isTabbableRadio(element) {
|
|
365
|
-
if (element.checked) return true;
|
|
366
|
-
const radios = $9bf71ea28793e738$var$getRadiosInGroup(element);
|
|
367
|
-
return radios.length > 0 && !radios.some((radio) => radio.checked);
|
|
368
|
-
}
|
|
369
|
-
function $9bf71ea28793e738$var$useFocusContainment(scopeRef, contain) {
|
|
370
|
-
let focusedNode = useRef(void 0);
|
|
371
|
-
let raf = useRef(void 0);
|
|
372
|
-
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
373
|
-
let scope = scopeRef.current;
|
|
374
|
-
if (!contain) {
|
|
375
|
-
if (raf.current) {
|
|
376
|
-
cancelAnimationFrame(raf.current);
|
|
377
|
-
raf.current = void 0;
|
|
378
|
-
}
|
|
379
|
-
return;
|
|
380
|
-
}
|
|
381
|
-
const ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(scope ? scope[0] : void 0);
|
|
382
|
-
let onKeyDown = (e) => {
|
|
383
|
-
if (e.key !== "Tab" || e.altKey || e.ctrlKey || e.metaKey || !$9bf71ea28793e738$var$shouldContainFocus(scopeRef) || e.isComposing) return;
|
|
384
|
-
let focusedElement = $d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument);
|
|
385
|
-
let scope2 = scopeRef.current;
|
|
386
|
-
if (!scope2 || !$9bf71ea28793e738$var$isElementInScope(focusedElement, scope2)) return;
|
|
387
|
-
let scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope2);
|
|
388
|
-
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, {
|
|
389
|
-
tabbable: true
|
|
390
|
-
}, scope2);
|
|
391
|
-
if (!focusedElement) return;
|
|
392
|
-
walker.currentNode = focusedElement;
|
|
393
|
-
let nextElement = e.shiftKey ? walker.previousNode() : walker.nextNode();
|
|
394
|
-
if (!nextElement) {
|
|
395
|
-
walker.currentNode = e.shiftKey ? scope2[scope2.length - 1].nextElementSibling : scope2[0].previousElementSibling;
|
|
396
|
-
nextElement = e.shiftKey ? walker.previousNode() : walker.nextNode();
|
|
397
|
-
}
|
|
398
|
-
e.preventDefault();
|
|
399
|
-
if (nextElement) $9bf71ea28793e738$var$focusElement(nextElement, true);
|
|
400
|
-
};
|
|
401
|
-
let onFocus = (e) => {
|
|
402
|
-
if ((!$9bf71ea28793e738$var$activeScope || $9bf71ea28793e738$var$isAncestorScope($9bf71ea28793e738$var$activeScope, scopeRef)) && $9bf71ea28793e738$var$isElementInScope($d4ee10de306f2510$export$e58f029f0fbfdb29(e), scopeRef.current)) {
|
|
403
|
-
$9bf71ea28793e738$var$activeScope = scopeRef;
|
|
404
|
-
focusedNode.current = $d4ee10de306f2510$export$e58f029f0fbfdb29(e);
|
|
405
|
-
} else if ($9bf71ea28793e738$var$shouldContainFocus(scopeRef) && !$9bf71ea28793e738$var$isElementInChildScope($d4ee10de306f2510$export$e58f029f0fbfdb29(e), scopeRef)) {
|
|
406
|
-
if (focusedNode.current) focusedNode.current.focus();
|
|
407
|
-
else if ($9bf71ea28793e738$var$activeScope && $9bf71ea28793e738$var$activeScope.current) $9bf71ea28793e738$var$focusFirstInScope($9bf71ea28793e738$var$activeScope.current);
|
|
408
|
-
} else if ($9bf71ea28793e738$var$shouldContainFocus(scopeRef)) focusedNode.current = $d4ee10de306f2510$export$e58f029f0fbfdb29(e);
|
|
409
|
-
};
|
|
410
|
-
let onBlur = (e) => {
|
|
411
|
-
if (raf.current) cancelAnimationFrame(raf.current);
|
|
412
|
-
raf.current = requestAnimationFrame(() => {
|
|
413
|
-
let modality = $507fabe10e71c6fb$export$630ff653c5ada6a9();
|
|
414
|
-
let shouldSkipFocusRestore = (modality === "virtual" || modality === null) && $c87311424ea30a05$export$a11b0059900ceec8() && $c87311424ea30a05$export$6446a186d09e379e();
|
|
415
|
-
let activeElement = $d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument);
|
|
416
|
-
if (!shouldSkipFocusRestore && activeElement && $9bf71ea28793e738$var$shouldContainFocus(scopeRef) && !$9bf71ea28793e738$var$isElementInChildScope(activeElement, scopeRef)) {
|
|
417
|
-
$9bf71ea28793e738$var$activeScope = scopeRef;
|
|
418
|
-
let target = $d4ee10de306f2510$export$e58f029f0fbfdb29(e);
|
|
419
|
-
if (target && target.isConnected) {
|
|
420
|
-
var _focusedNode_current;
|
|
421
|
-
focusedNode.current = target;
|
|
422
|
-
(_focusedNode_current = focusedNode.current) === null || _focusedNode_current === void 0 ? void 0 : _focusedNode_current.focus();
|
|
423
|
-
} else if ($9bf71ea28793e738$var$activeScope.current) $9bf71ea28793e738$var$focusFirstInScope($9bf71ea28793e738$var$activeScope.current);
|
|
424
|
-
}
|
|
425
|
-
});
|
|
426
|
-
};
|
|
427
|
-
ownerDocument.addEventListener("keydown", onKeyDown, false);
|
|
428
|
-
ownerDocument.addEventListener("focusin", onFocus, false);
|
|
429
|
-
scope === null || scope === void 0 ? void 0 : scope.forEach((element) => element.addEventListener("focusin", onFocus, false));
|
|
430
|
-
scope === null || scope === void 0 ? void 0 : scope.forEach((element) => element.addEventListener("focusout", onBlur, false));
|
|
431
|
-
return () => {
|
|
432
|
-
ownerDocument.removeEventListener("keydown", onKeyDown, false);
|
|
433
|
-
ownerDocument.removeEventListener("focusin", onFocus, false);
|
|
434
|
-
scope === null || scope === void 0 ? void 0 : scope.forEach((element) => element.removeEventListener("focusin", onFocus, false));
|
|
435
|
-
scope === null || scope === void 0 ? void 0 : scope.forEach((element) => element.removeEventListener("focusout", onBlur, false));
|
|
436
|
-
};
|
|
437
|
-
}, [
|
|
438
|
-
scopeRef,
|
|
439
|
-
contain
|
|
440
|
-
]);
|
|
441
|
-
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
442
|
-
return () => {
|
|
443
|
-
if (raf.current) cancelAnimationFrame(raf.current);
|
|
444
|
-
};
|
|
445
|
-
}, [
|
|
446
|
-
raf
|
|
447
|
-
]);
|
|
448
|
-
}
|
|
449
|
-
function $9bf71ea28793e738$var$isElementInAnyScope(element) {
|
|
450
|
-
return $9bf71ea28793e738$var$isElementInChildScope(element);
|
|
451
|
-
}
|
|
452
|
-
function $9bf71ea28793e738$var$isElementInScope(element, scope) {
|
|
453
|
-
if (!element) return false;
|
|
454
|
-
if (!scope) return false;
|
|
455
|
-
return scope.some((node) => $d4ee10de306f2510$export$4282f70798064fe0(node, element));
|
|
456
|
-
}
|
|
457
|
-
function $9bf71ea28793e738$var$isElementInChildScope(element, scope = null) {
|
|
458
|
-
if (element instanceof Element && element.closest("[data-react-aria-top-layer]")) return true;
|
|
459
|
-
for (let { scopeRef: s } of $9bf71ea28793e738$export$d06fae2ee68b101e.traverse($9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scope))) {
|
|
460
|
-
if (s && $9bf71ea28793e738$var$isElementInScope(element, s.current)) return true;
|
|
461
|
-
}
|
|
462
|
-
return false;
|
|
463
|
-
}
|
|
464
|
-
function $9bf71ea28793e738$export$1258395f99bf9cbf(element) {
|
|
465
|
-
return $9bf71ea28793e738$var$isElementInChildScope(element, $9bf71ea28793e738$var$activeScope);
|
|
466
|
-
}
|
|
467
|
-
function $9bf71ea28793e738$var$isAncestorScope(ancestor, scope) {
|
|
468
|
-
var _focusScopeTree_getTreeNode;
|
|
469
|
-
let parent = (_focusScopeTree_getTreeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scope)) === null || _focusScopeTree_getTreeNode === void 0 ? void 0 : _focusScopeTree_getTreeNode.parent;
|
|
470
|
-
while (parent) {
|
|
471
|
-
if (parent.scopeRef === ancestor) return true;
|
|
472
|
-
parent = parent.parent;
|
|
473
|
-
}
|
|
474
|
-
return false;
|
|
475
|
-
}
|
|
476
|
-
function $9bf71ea28793e738$var$focusElement(element, scroll = false) {
|
|
477
|
-
if (element != null && !scroll) try {
|
|
478
|
-
(0, $3ad3f6e1647bc98d$export$80f3e147d781571c)(element);
|
|
479
|
-
} catch {
|
|
480
|
-
}
|
|
481
|
-
else if (element != null) try {
|
|
482
|
-
element.focus();
|
|
483
|
-
} catch {
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
function $9bf71ea28793e738$var$getFirstInScope(scope, tabbable = true) {
|
|
487
|
-
let sentinel = scope[0].previousElementSibling;
|
|
488
|
-
let scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope);
|
|
489
|
-
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, {
|
|
490
|
-
tabbable
|
|
491
|
-
}, scope);
|
|
492
|
-
walker.currentNode = sentinel;
|
|
493
|
-
let nextNode = walker.nextNode();
|
|
494
|
-
if (tabbable && !nextNode) {
|
|
495
|
-
scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope);
|
|
496
|
-
walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, {
|
|
497
|
-
tabbable: false
|
|
498
|
-
}, scope);
|
|
499
|
-
walker.currentNode = sentinel;
|
|
500
|
-
nextNode = walker.nextNode();
|
|
501
|
-
}
|
|
502
|
-
return nextNode;
|
|
503
|
-
}
|
|
504
|
-
function $9bf71ea28793e738$var$focusFirstInScope(scope, tabbable = true) {
|
|
505
|
-
$9bf71ea28793e738$var$focusElement($9bf71ea28793e738$var$getFirstInScope(scope, tabbable));
|
|
506
|
-
}
|
|
507
|
-
function $9bf71ea28793e738$var$useAutoFocus(scopeRef, autoFocus) {
|
|
508
|
-
const autoFocusRef = $dbSRa$react__default.useRef(autoFocus);
|
|
509
|
-
useEffect(() => {
|
|
510
|
-
if (autoFocusRef.current) {
|
|
511
|
-
$9bf71ea28793e738$var$activeScope = scopeRef;
|
|
512
|
-
const ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(scopeRef.current ? scopeRef.current[0] : void 0);
|
|
513
|
-
if (!$9bf71ea28793e738$var$isElementInScope($d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument), $9bf71ea28793e738$var$activeScope.current) && scopeRef.current) $9bf71ea28793e738$var$focusFirstInScope(scopeRef.current);
|
|
514
|
-
}
|
|
515
|
-
autoFocusRef.current = false;
|
|
516
|
-
}, [
|
|
517
|
-
scopeRef
|
|
518
|
-
]);
|
|
519
|
-
}
|
|
520
|
-
function $9bf71ea28793e738$var$useActiveScopeTracker(scopeRef, restore, contain) {
|
|
521
|
-
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
522
|
-
if (restore || contain) return;
|
|
523
|
-
let scope = scopeRef.current;
|
|
524
|
-
const ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(scope ? scope[0] : void 0);
|
|
525
|
-
let onFocus = (e) => {
|
|
526
|
-
let target = $d4ee10de306f2510$export$e58f029f0fbfdb29(e);
|
|
527
|
-
if ($9bf71ea28793e738$var$isElementInScope(target, scopeRef.current)) $9bf71ea28793e738$var$activeScope = scopeRef;
|
|
528
|
-
else if (!$9bf71ea28793e738$var$isElementInAnyScope(target)) $9bf71ea28793e738$var$activeScope = null;
|
|
529
|
-
};
|
|
530
|
-
ownerDocument.addEventListener("focusin", onFocus, false);
|
|
531
|
-
scope === null || scope === void 0 ? void 0 : scope.forEach((element) => element.addEventListener("focusin", onFocus, false));
|
|
532
|
-
return () => {
|
|
533
|
-
ownerDocument.removeEventListener("focusin", onFocus, false);
|
|
534
|
-
scope === null || scope === void 0 ? void 0 : scope.forEach((element) => element.removeEventListener("focusin", onFocus, false));
|
|
535
|
-
};
|
|
536
|
-
}, [
|
|
537
|
-
scopeRef,
|
|
538
|
-
restore,
|
|
539
|
-
contain
|
|
540
|
-
]);
|
|
541
|
-
}
|
|
542
|
-
function $9bf71ea28793e738$var$shouldRestoreFocus(scopeRef) {
|
|
543
|
-
let scope = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode($9bf71ea28793e738$var$activeScope);
|
|
544
|
-
while (scope && scope.scopeRef !== scopeRef) {
|
|
545
|
-
if (scope.nodeToRestore) return false;
|
|
546
|
-
scope = scope.parent;
|
|
547
|
-
}
|
|
548
|
-
return (scope === null || scope === void 0 ? void 0 : scope.scopeRef) === scopeRef;
|
|
549
|
-
}
|
|
550
|
-
function $9bf71ea28793e738$var$useRestoreFocus(scopeRef, restoreFocus, contain) {
|
|
551
|
-
const nodeToRestoreRef = useRef(typeof document !== "undefined" ? $d4ee10de306f2510$export$cd4e5573fbe2b576($431fbd86ca7dc216$export$b204af158042fbac(scopeRef.current ? scopeRef.current[0] : void 0)) : null);
|
|
552
|
-
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
553
|
-
let scope = scopeRef.current;
|
|
554
|
-
const ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(scope ? scope[0] : void 0);
|
|
555
|
-
if (!restoreFocus || contain) return;
|
|
556
|
-
let onFocus = () => {
|
|
557
|
-
if ((!$9bf71ea28793e738$var$activeScope || $9bf71ea28793e738$var$isAncestorScope($9bf71ea28793e738$var$activeScope, scopeRef)) && $9bf71ea28793e738$var$isElementInScope($d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument), scopeRef.current)) $9bf71ea28793e738$var$activeScope = scopeRef;
|
|
558
|
-
};
|
|
559
|
-
ownerDocument.addEventListener("focusin", onFocus, false);
|
|
560
|
-
scope === null || scope === void 0 ? void 0 : scope.forEach((element) => element.addEventListener("focusin", onFocus, false));
|
|
561
|
-
return () => {
|
|
562
|
-
ownerDocument.removeEventListener("focusin", onFocus, false);
|
|
563
|
-
scope === null || scope === void 0 ? void 0 : scope.forEach((element) => element.removeEventListener("focusin", onFocus, false));
|
|
564
|
-
};
|
|
565
|
-
}, [
|
|
566
|
-
scopeRef,
|
|
567
|
-
contain
|
|
568
|
-
]);
|
|
569
|
-
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
570
|
-
const ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(scopeRef.current ? scopeRef.current[0] : void 0);
|
|
571
|
-
if (!restoreFocus) return;
|
|
572
|
-
let onKeyDown = (e) => {
|
|
573
|
-
if (e.key !== "Tab" || e.altKey || e.ctrlKey || e.metaKey || !$9bf71ea28793e738$var$shouldContainFocus(scopeRef) || e.isComposing) return;
|
|
574
|
-
let focusedElement = ownerDocument.activeElement;
|
|
575
|
-
if (!$9bf71ea28793e738$var$isElementInChildScope(focusedElement, scopeRef) || !$9bf71ea28793e738$var$shouldRestoreFocus(scopeRef)) return;
|
|
576
|
-
let treeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef);
|
|
577
|
-
if (!treeNode) return;
|
|
578
|
-
let nodeToRestore = treeNode.nodeToRestore;
|
|
579
|
-
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(ownerDocument.body, {
|
|
580
|
-
tabbable: true
|
|
581
|
-
});
|
|
582
|
-
walker.currentNode = focusedElement;
|
|
583
|
-
let nextElement = e.shiftKey ? walker.previousNode() : walker.nextNode();
|
|
584
|
-
if (!nodeToRestore || !nodeToRestore.isConnected || nodeToRestore === ownerDocument.body) {
|
|
585
|
-
nodeToRestore = void 0;
|
|
586
|
-
treeNode.nodeToRestore = void 0;
|
|
587
|
-
}
|
|
588
|
-
if ((!nextElement || !$9bf71ea28793e738$var$isElementInChildScope(nextElement, scopeRef)) && nodeToRestore) {
|
|
589
|
-
walker.currentNode = nodeToRestore;
|
|
590
|
-
do
|
|
591
|
-
nextElement = e.shiftKey ? walker.previousNode() : walker.nextNode();
|
|
592
|
-
while ($9bf71ea28793e738$var$isElementInChildScope(nextElement, scopeRef));
|
|
593
|
-
e.preventDefault();
|
|
594
|
-
e.stopPropagation();
|
|
595
|
-
if (nextElement) $9bf71ea28793e738$var$focusElement(nextElement, true);
|
|
596
|
-
else if (!$9bf71ea28793e738$var$isElementInAnyScope(nodeToRestore)) focusedElement.blur();
|
|
597
|
-
else $9bf71ea28793e738$var$focusElement(nodeToRestore, true);
|
|
598
|
-
}
|
|
599
|
-
};
|
|
600
|
-
if (!contain) ownerDocument.addEventListener("keydown", onKeyDown, true);
|
|
601
|
-
return () => {
|
|
602
|
-
if (!contain) ownerDocument.removeEventListener("keydown", onKeyDown, true);
|
|
603
|
-
};
|
|
604
|
-
}, [
|
|
605
|
-
scopeRef,
|
|
606
|
-
restoreFocus,
|
|
607
|
-
contain
|
|
608
|
-
]);
|
|
609
|
-
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
610
|
-
const ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(scopeRef.current ? scopeRef.current[0] : void 0);
|
|
611
|
-
if (!restoreFocus) return;
|
|
612
|
-
let treeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef);
|
|
613
|
-
if (!treeNode) return;
|
|
614
|
-
var _nodeToRestoreRef_current;
|
|
615
|
-
treeNode.nodeToRestore = (_nodeToRestoreRef_current = nodeToRestoreRef.current) !== null && _nodeToRestoreRef_current !== void 0 ? _nodeToRestoreRef_current : void 0;
|
|
616
|
-
return () => {
|
|
617
|
-
let treeNode2 = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef);
|
|
618
|
-
if (!treeNode2) return;
|
|
619
|
-
let nodeToRestore = treeNode2.nodeToRestore;
|
|
620
|
-
let activeElement = $d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument);
|
|
621
|
-
if (restoreFocus && nodeToRestore && (activeElement && $9bf71ea28793e738$var$isElementInChildScope(activeElement, scopeRef) || activeElement === ownerDocument.body && $9bf71ea28793e738$var$shouldRestoreFocus(scopeRef))) {
|
|
622
|
-
let clonedTree = $9bf71ea28793e738$export$d06fae2ee68b101e.clone();
|
|
623
|
-
requestAnimationFrame(() => {
|
|
624
|
-
if (ownerDocument.activeElement === ownerDocument.body) {
|
|
625
|
-
let treeNode3 = clonedTree.getTreeNode(scopeRef);
|
|
626
|
-
while (treeNode3) {
|
|
627
|
-
if (treeNode3.nodeToRestore && treeNode3.nodeToRestore.isConnected) {
|
|
628
|
-
$9bf71ea28793e738$var$restoreFocusToElement(treeNode3.nodeToRestore);
|
|
629
|
-
return;
|
|
630
|
-
}
|
|
631
|
-
treeNode3 = treeNode3.parent;
|
|
632
|
-
}
|
|
633
|
-
treeNode3 = clonedTree.getTreeNode(scopeRef);
|
|
634
|
-
while (treeNode3) {
|
|
635
|
-
if (treeNode3.scopeRef && treeNode3.scopeRef.current && $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(treeNode3.scopeRef)) {
|
|
636
|
-
let node = $9bf71ea28793e738$var$getFirstInScope(treeNode3.scopeRef.current, true);
|
|
637
|
-
$9bf71ea28793e738$var$restoreFocusToElement(node);
|
|
638
|
-
return;
|
|
639
|
-
}
|
|
640
|
-
treeNode3 = treeNode3.parent;
|
|
641
|
-
}
|
|
642
|
-
}
|
|
643
|
-
});
|
|
644
|
-
}
|
|
645
|
-
};
|
|
646
|
-
}, [
|
|
647
|
-
scopeRef,
|
|
648
|
-
restoreFocus
|
|
649
|
-
]);
|
|
650
|
-
}
|
|
651
|
-
function $9bf71ea28793e738$var$restoreFocusToElement(node) {
|
|
652
|
-
if (node.dispatchEvent(new CustomEvent($9bf71ea28793e738$var$RESTORE_FOCUS_EVENT, {
|
|
653
|
-
bubbles: true,
|
|
654
|
-
cancelable: true
|
|
655
|
-
}))) $9bf71ea28793e738$var$focusElement(node);
|
|
656
|
-
}
|
|
657
|
-
function $9bf71ea28793e738$export$2d6ec8fc375ceafa(root, opts, scope) {
|
|
658
|
-
let filter = (opts === null || opts === void 0 ? void 0 : opts.tabbable) ? $b4b717babfbb907b$export$bebd5a1431fec25d : $b4b717babfbb907b$export$4c063cf1350e6fed;
|
|
659
|
-
let rootElement = (root === null || root === void 0 ? void 0 : root.nodeType) === Node.ELEMENT_NODE ? root : null;
|
|
660
|
-
let doc = $431fbd86ca7dc216$export$b204af158042fbac(rootElement);
|
|
661
|
-
let walker = $dfc540311bf7f109$export$4d0f8be8b12a7ef6(doc, root || doc, NodeFilter.SHOW_ELEMENT, {
|
|
662
|
-
acceptNode(node) {
|
|
663
|
-
if ($d4ee10de306f2510$export$4282f70798064fe0(opts === null || opts === void 0 ? void 0 : opts.from, node)) return NodeFilter.FILTER_REJECT;
|
|
664
|
-
if ((opts === null || opts === void 0 ? void 0 : opts.tabbable) && node.tagName === "INPUT" && node.getAttribute("type") === "radio") {
|
|
665
|
-
if (!$9bf71ea28793e738$var$isTabbableRadio(node)) return NodeFilter.FILTER_REJECT;
|
|
666
|
-
if (walker.currentNode.tagName === "INPUT" && walker.currentNode.type === "radio" && walker.currentNode.name === node.name) return NodeFilter.FILTER_REJECT;
|
|
667
|
-
}
|
|
668
|
-
if (filter(node) && (!scope || $9bf71ea28793e738$var$isElementInScope(node, scope)) && (!(opts === null || opts === void 0 ? void 0 : opts.accept) || opts.accept(node))) return NodeFilter.FILTER_ACCEPT;
|
|
669
|
-
return NodeFilter.FILTER_SKIP;
|
|
670
|
-
}
|
|
671
|
-
});
|
|
672
|
-
if (opts === null || opts === void 0 ? void 0 : opts.from) walker.currentNode = opts.from;
|
|
673
|
-
return walker;
|
|
674
|
-
}
|
|
675
|
-
function $9bf71ea28793e738$export$c5251b9e124bf29(ref, defaultOptions = {}) {
|
|
676
|
-
return {
|
|
677
|
-
focusNext(opts = {}) {
|
|
678
|
-
let root = ref.current;
|
|
679
|
-
if (!root) return null;
|
|
680
|
-
let { from, tabbable = defaultOptions.tabbable, wrap = defaultOptions.wrap, accept = defaultOptions.accept } = opts;
|
|
681
|
-
let node = from || $d4ee10de306f2510$export$cd4e5573fbe2b576($431fbd86ca7dc216$export$b204af158042fbac(root));
|
|
682
|
-
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(root, {
|
|
683
|
-
tabbable,
|
|
684
|
-
accept
|
|
685
|
-
});
|
|
686
|
-
if ($d4ee10de306f2510$export$4282f70798064fe0(root, node)) walker.currentNode = node;
|
|
687
|
-
let nextNode = walker.nextNode();
|
|
688
|
-
if (!nextNode && wrap) {
|
|
689
|
-
walker.currentNode = root;
|
|
690
|
-
nextNode = walker.nextNode();
|
|
691
|
-
}
|
|
692
|
-
if (nextNode) $9bf71ea28793e738$var$focusElement(nextNode, true);
|
|
693
|
-
return nextNode;
|
|
694
|
-
},
|
|
695
|
-
focusPrevious(opts = defaultOptions) {
|
|
696
|
-
let root = ref.current;
|
|
697
|
-
if (!root) return null;
|
|
698
|
-
let { from, tabbable = defaultOptions.tabbable, wrap = defaultOptions.wrap, accept = defaultOptions.accept } = opts;
|
|
699
|
-
let node = from || $d4ee10de306f2510$export$cd4e5573fbe2b576($431fbd86ca7dc216$export$b204af158042fbac(root));
|
|
700
|
-
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(root, {
|
|
701
|
-
tabbable,
|
|
702
|
-
accept
|
|
703
|
-
});
|
|
704
|
-
if ($d4ee10de306f2510$export$4282f70798064fe0(root, node)) walker.currentNode = node;
|
|
705
|
-
else {
|
|
706
|
-
let next = $9bf71ea28793e738$var$last(walker);
|
|
707
|
-
if (next) $9bf71ea28793e738$var$focusElement(next, true);
|
|
708
|
-
return next !== null && next !== void 0 ? next : null;
|
|
709
|
-
}
|
|
710
|
-
let previousNode = walker.previousNode();
|
|
711
|
-
if (!previousNode && wrap) {
|
|
712
|
-
walker.currentNode = root;
|
|
713
|
-
let lastNode = $9bf71ea28793e738$var$last(walker);
|
|
714
|
-
if (!lastNode)
|
|
715
|
-
return null;
|
|
716
|
-
previousNode = lastNode;
|
|
717
|
-
}
|
|
718
|
-
if (previousNode) $9bf71ea28793e738$var$focusElement(previousNode, true);
|
|
719
|
-
return previousNode !== null && previousNode !== void 0 ? previousNode : null;
|
|
720
|
-
},
|
|
721
|
-
focusFirst(opts = defaultOptions) {
|
|
722
|
-
let root = ref.current;
|
|
723
|
-
if (!root) return null;
|
|
724
|
-
let { tabbable = defaultOptions.tabbable, accept = defaultOptions.accept } = opts;
|
|
725
|
-
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(root, {
|
|
726
|
-
tabbable,
|
|
727
|
-
accept
|
|
728
|
-
});
|
|
729
|
-
let nextNode = walker.nextNode();
|
|
730
|
-
if (nextNode) $9bf71ea28793e738$var$focusElement(nextNode, true);
|
|
731
|
-
return nextNode;
|
|
732
|
-
},
|
|
733
|
-
focusLast(opts = defaultOptions) {
|
|
734
|
-
let root = ref.current;
|
|
735
|
-
if (!root) return null;
|
|
736
|
-
let { tabbable = defaultOptions.tabbable, accept = defaultOptions.accept } = opts;
|
|
737
|
-
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(root, {
|
|
738
|
-
tabbable,
|
|
739
|
-
accept
|
|
740
|
-
});
|
|
741
|
-
let next = $9bf71ea28793e738$var$last(walker);
|
|
742
|
-
if (next) $9bf71ea28793e738$var$focusElement(next, true);
|
|
743
|
-
return next !== null && next !== void 0 ? next : null;
|
|
744
|
-
}
|
|
745
|
-
};
|
|
746
|
-
}
|
|
747
|
-
function $9bf71ea28793e738$var$last(walker) {
|
|
748
|
-
let next = void 0;
|
|
749
|
-
let last;
|
|
750
|
-
do {
|
|
751
|
-
last = walker.lastChild();
|
|
752
|
-
if (last) next = last;
|
|
753
|
-
} while (last);
|
|
754
|
-
return next;
|
|
755
|
-
}
|
|
756
|
-
class $9bf71ea28793e738$var$Tree {
|
|
757
|
-
get size() {
|
|
758
|
-
return this.fastMap.size;
|
|
759
|
-
}
|
|
760
|
-
getTreeNode(data) {
|
|
761
|
-
return this.fastMap.get(data);
|
|
762
|
-
}
|
|
763
|
-
addTreeNode(scopeRef, parent, nodeToRestore) {
|
|
764
|
-
let parentNode = this.fastMap.get(parent !== null && parent !== void 0 ? parent : null);
|
|
765
|
-
if (!parentNode) return;
|
|
766
|
-
let node = new $9bf71ea28793e738$var$TreeNode({
|
|
767
|
-
scopeRef
|
|
768
|
-
});
|
|
769
|
-
parentNode.addChild(node);
|
|
770
|
-
node.parent = parentNode;
|
|
771
|
-
this.fastMap.set(scopeRef, node);
|
|
772
|
-
if (nodeToRestore) node.nodeToRestore = nodeToRestore;
|
|
773
|
-
}
|
|
774
|
-
addNode(node) {
|
|
775
|
-
this.fastMap.set(node.scopeRef, node);
|
|
776
|
-
}
|
|
777
|
-
removeTreeNode(scopeRef) {
|
|
778
|
-
if (scopeRef === null) return;
|
|
779
|
-
let node = this.fastMap.get(scopeRef);
|
|
780
|
-
if (!node) return;
|
|
781
|
-
let parentNode = node.parent;
|
|
782
|
-
for (let current of this.traverse()) if (current !== node && node.nodeToRestore && current.nodeToRestore && node.scopeRef && node.scopeRef.current && $9bf71ea28793e738$var$isElementInScope(current.nodeToRestore, node.scopeRef.current)) current.nodeToRestore = node.nodeToRestore;
|
|
783
|
-
let children = node.children;
|
|
784
|
-
if (parentNode) {
|
|
785
|
-
parentNode.removeChild(node);
|
|
786
|
-
if (children.size > 0) children.forEach((child) => parentNode && parentNode.addChild(child));
|
|
787
|
-
}
|
|
788
|
-
this.fastMap.delete(node.scopeRef);
|
|
789
|
-
}
|
|
790
|
-
// Pre Order Depth First
|
|
791
|
-
*traverse(node = this.root) {
|
|
792
|
-
if (node.scopeRef != null) yield node;
|
|
793
|
-
if (node.children.size > 0) for (let child of node.children) yield* this.traverse(child);
|
|
794
|
-
}
|
|
795
|
-
clone() {
|
|
796
|
-
var _node_parent;
|
|
797
|
-
let newTree = new $9bf71ea28793e738$var$Tree();
|
|
798
|
-
var _node_parent_scopeRef;
|
|
799
|
-
for (let node of this.traverse()) newTree.addTreeNode(node.scopeRef, (_node_parent_scopeRef = (_node_parent = node.parent) === null || _node_parent === void 0 ? void 0 : _node_parent.scopeRef) !== null && _node_parent_scopeRef !== void 0 ? _node_parent_scopeRef : null, node.nodeToRestore);
|
|
800
|
-
return newTree;
|
|
801
|
-
}
|
|
802
|
-
constructor() {
|
|
803
|
-
this.fastMap = /* @__PURE__ */ new Map();
|
|
804
|
-
this.root = new $9bf71ea28793e738$var$TreeNode({
|
|
805
|
-
scopeRef: null
|
|
806
|
-
});
|
|
807
|
-
this.fastMap.set(null, this.root);
|
|
808
|
-
}
|
|
809
|
-
}
|
|
810
|
-
class $9bf71ea28793e738$var$TreeNode {
|
|
811
|
-
addChild(node) {
|
|
812
|
-
this.children.add(node);
|
|
813
|
-
node.parent = this;
|
|
814
|
-
}
|
|
815
|
-
removeChild(node) {
|
|
816
|
-
this.children.delete(node);
|
|
817
|
-
node.parent = void 0;
|
|
818
|
-
}
|
|
819
|
-
constructor(props) {
|
|
820
|
-
this.children = /* @__PURE__ */ new Set();
|
|
821
|
-
this.contain = false;
|
|
822
|
-
this.scopeRef = props.scopeRef;
|
|
823
|
-
}
|
|
824
|
-
}
|
|
825
|
-
let $9bf71ea28793e738$export$d06fae2ee68b101e = new $9bf71ea28793e738$var$Tree();
|
|
826
|
-
export {
|
|
827
|
-
$9bf71ea28793e738$export$c5251b9e124bf29 as $,
|
|
828
|
-
$9bf71ea28793e738$export$2d6ec8fc375ceafa as a,
|
|
829
|
-
$9bf71ea28793e738$export$20e40289641fbbb6 as b,
|
|
830
|
-
$9bf71ea28793e738$export$1258395f99bf9cbf as c,
|
|
831
|
-
$dfc540311bf7f109$export$4d0f8be8b12a7ef6 as d
|
|
832
|
-
};
|