@eightshift/ui-components 6.3.0 → 7.0.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 +197 -200
- package/dist/assets/style-editor.css +197 -200
- package/dist/assets/style.css +197 -200
- 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 +360 -589
- package/dist/components/select/async-select.js +284 -492
- package/dist/components/select/multi-select.js +340 -552
- package/dist/components/select/shared.js +3 -17
- package/dist/components/select/single-select.js +278 -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-D-7dwhuF.js +4277 -0
- package/dist/gradient-editor-DbH8NU2p.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-BG7-_Ou3.js +9638 -0
- package/dist/shared-DFDimxvX.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 +30 -18
- 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
|
@@ -0,0 +1,1415 @@
|
|
|
1
|
+
import { t as clsx } from "./clsx-BUU5J41u.js";
|
|
2
|
+
import { r as $4e85f108e88277b8$export$717b2c0a523a0b53, s as $4e85f108e88277b8$export$ebe63fadcdce34ed, t as $4e85f108e88277b8$export$44644b8a16031b5b } from "./RSPContexts-C_z0bI8W.js";
|
|
3
|
+
import { i as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, m as $bdb11010cef70236$export$f680877a34711e37, n as $64fa3d84918910a7$export$29f1550f4b0d4415, o as $64fa3d84918910a7$export$df3a06d6289f983e, r as $64fa3d84918910a7$export$4d86445c2cf5e3, s as $64fa3d84918910a7$export$ef03459518577ad4, t as $64fa3d84918910a7$export$2881499e37b75b9a, u as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-B_uiqNa4.js";
|
|
4
|
+
import { F as $c87311424ea30a05$export$a11b0059900ceec8, L as $c87311424ea30a05$export$fedb369cb70207f1, R as $7215afc6de606d6b$export$de79e2c695e052f3, T as $03deb23ff14920c4$export$4eaf04e54aa8eed6, a as $46d819fcbaf35654$export$8f71654801c2f7cd, o as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, t as $6179b936705e76d3$export$ae780daf29e6d456, v as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useHover-qaMm3XFO.js";
|
|
5
|
+
import { t as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-_2_3GD-K.js";
|
|
6
|
+
import { t as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-B2p7RXi5.js";
|
|
7
|
+
import { t as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-DdkykzAn.js";
|
|
8
|
+
import { r as $9446cca9a3875146$export$cb6e0bb50bc19463, t as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "./number-ZZIxJukn.js";
|
|
9
|
+
import { t as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-C-XNeJ_l.js";
|
|
10
|
+
import { t as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-Dv2diN3k.js";
|
|
11
|
+
import { a as $7d0a636d7a4dcefd$export$2123ff2b87c81ca, i as $d841c8010a73d545$export$4f384c9210e583c3, n as $d2e8511e6f209edf$export$e908e06f4b8e3402, r as $de67e98908f0c6ee$export$7f629e9dc1ecf37c, t as $81397a9303501bda$export$23f548e970bdf099 } from "./useNumberField-2xbi3jRV.js";
|
|
12
|
+
import { n as $9ab94262bd0047c7$export$420e68273165f4ec, t as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-DuYL4cdO.js";
|
|
13
|
+
import { a as $6f909507e6374d18$export$6189c2744041d8f8, c as $47b897dc8cdb026b$export$8d15029008292ae, d as $e8a7022cf87cba2a$export$36da96379f79f245, l as $bcca50147b47f54d$export$56b2c08e277f365, n as $6f909507e6374d18$export$1e7083018727fa60, s as $6f909507e6374d18$export$f1fce0420cc6d8ee, t as $6f909507e6374d18$export$105594979f116971, u as $28f99e3e86e6ec45$export$e5fda3247f5d67f9 } from "./Slider-DW1RuMVp.js";
|
|
14
|
+
import { n as $5c3e21d68f1c4674$export$a966af930f325cab } from "./VisuallyHidden-CfsnJHZb.js";
|
|
15
|
+
import { a as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, r as $e5be200c675c3b3a$export$a763b9476acd3eb, t as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "./FieldError-BWDbP5Db.js";
|
|
16
|
+
import { i as $a049562f99e7db0e$export$f9c6924e160136d1, n as $3985021b0ad6602f$export$f5b8910cec6cf069, t as $3985021b0ad6602f$export$37fb8590cf2c088c } from "./Input-BURqyJXW.js";
|
|
17
|
+
import { a as $3493a52097159720$exports, i as $799cddbef784668f$export$6e865ea70d7724f, r as $799cddbef784668f$export$4cde5df63f53f473, t as ColorSwatch } from "./color-swatch-CBYsO_Zs.js";
|
|
18
|
+
import { t as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "./Label-DFXXxMKY.js";
|
|
19
|
+
import { n as $514c0188e459b4c0$export$9afb8bc826b033ea } from "./Text-O6VBBDlP.js";
|
|
20
|
+
import { BaseControl } from "./components/base-control/base-control.js";
|
|
21
|
+
import { t as __ } from "./build-module-sxK3nxOK.js";
|
|
22
|
+
import { dropdownCaretAlt } from "./icons/ui-icons/dropdown-caret-alt.js";
|
|
23
|
+
import { TriggeredPopover } from "./components/popover/popover.js";
|
|
24
|
+
import React, { createContext, forwardRef, useCallback, useContext, useMemo, useRef, useState } from "react";
|
|
25
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
26
|
+
//#region node_modules/@react-stately/color/dist/useColorAreaState.mjs
|
|
27
|
+
var $6e14a98a7f67141d$var$DEFAULT_COLOR = $799cddbef784668f$export$6e865ea70d7724f("#ffffff");
|
|
28
|
+
function $6e14a98a7f67141d$export$6df7f0e2cabc7eef(props) {
|
|
29
|
+
let { value, defaultValue, colorSpace, xChannel, yChannel, onChange, onChangeEnd } = props;
|
|
30
|
+
if (!value && !defaultValue) defaultValue = $6e14a98a7f67141d$var$DEFAULT_COLOR;
|
|
31
|
+
if (value) value = $799cddbef784668f$export$4cde5df63f53f473(value);
|
|
32
|
+
if (defaultValue) defaultValue = $799cddbef784668f$export$4cde5df63f53f473(defaultValue);
|
|
33
|
+
let [colorValue, setColorState] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(value, defaultValue, onChange);
|
|
34
|
+
let [initialValue] = useState(colorValue);
|
|
35
|
+
let color = useMemo(() => colorSpace && colorValue ? colorValue.toFormat(colorSpace) : colorValue, [colorValue, colorSpace]);
|
|
36
|
+
let valueRef = useRef(color);
|
|
37
|
+
let setColor = (color) => {
|
|
38
|
+
valueRef.current = color;
|
|
39
|
+
setColorState(color);
|
|
40
|
+
};
|
|
41
|
+
let channels = useMemo(() => color.getColorSpaceAxes({
|
|
42
|
+
xChannel,
|
|
43
|
+
yChannel
|
|
44
|
+
}), [
|
|
45
|
+
color,
|
|
46
|
+
xChannel,
|
|
47
|
+
yChannel
|
|
48
|
+
]);
|
|
49
|
+
let xChannelRange = color.getChannelRange(channels.xChannel);
|
|
50
|
+
let yChannelRange = color.getChannelRange(channels.yChannel);
|
|
51
|
+
let { minValue: minValueX, maxValue: maxValueX, step: stepX, pageSize: pageSizeX } = xChannelRange;
|
|
52
|
+
let { minValue: minValueY, maxValue: maxValueY, step: stepY, pageSize: pageSizeY } = yChannelRange;
|
|
53
|
+
let [isDragging, setDragging] = useState(false);
|
|
54
|
+
let isDraggingRef = useRef(false);
|
|
55
|
+
let xValue = color.getChannelValue(channels.xChannel);
|
|
56
|
+
let yValue = color.getChannelValue(channels.yChannel);
|
|
57
|
+
let setXValue = (v) => {
|
|
58
|
+
if (v === xValue) return;
|
|
59
|
+
setColor(color.withChannelValue(channels.xChannel, v));
|
|
60
|
+
};
|
|
61
|
+
let setYValue = (v) => {
|
|
62
|
+
if (v === yValue) return;
|
|
63
|
+
setColor(color.withChannelValue(channels.yChannel, v));
|
|
64
|
+
};
|
|
65
|
+
return {
|
|
66
|
+
channels,
|
|
67
|
+
xChannelStep: stepX,
|
|
68
|
+
yChannelStep: stepY,
|
|
69
|
+
xChannelPageStep: pageSizeX,
|
|
70
|
+
yChannelPageStep: pageSizeY,
|
|
71
|
+
value: color,
|
|
72
|
+
defaultValue: value !== void 0 ? initialValue : defaultValue,
|
|
73
|
+
setValue(value) {
|
|
74
|
+
setColor($799cddbef784668f$export$4cde5df63f53f473(value));
|
|
75
|
+
},
|
|
76
|
+
xValue,
|
|
77
|
+
setXValue,
|
|
78
|
+
yValue,
|
|
79
|
+
setYValue,
|
|
80
|
+
setColorFromPoint(x, y) {
|
|
81
|
+
let newXValue = minValueX + $9446cca9a3875146$export$7d15b64cf5a3a4c4(x, 0, 1) * (maxValueX - minValueX);
|
|
82
|
+
let newYValue = minValueY + (1 - $9446cca9a3875146$export$7d15b64cf5a3a4c4(y, 0, 1)) * (maxValueY - minValueY);
|
|
83
|
+
let newColor;
|
|
84
|
+
if (newXValue !== xValue) {
|
|
85
|
+
newXValue = $9446cca9a3875146$export$cb6e0bb50bc19463(newXValue, minValueX, maxValueX, stepX);
|
|
86
|
+
newColor = color.withChannelValue(channels.xChannel, newXValue);
|
|
87
|
+
}
|
|
88
|
+
if (newYValue !== yValue) {
|
|
89
|
+
newYValue = $9446cca9a3875146$export$cb6e0bb50bc19463(newYValue, minValueY, maxValueY, stepY);
|
|
90
|
+
newColor = (newColor || color).withChannelValue(channels.yChannel, newYValue);
|
|
91
|
+
}
|
|
92
|
+
if (newColor) setColor(newColor);
|
|
93
|
+
},
|
|
94
|
+
getThumbPosition() {
|
|
95
|
+
return {
|
|
96
|
+
x: (xValue - minValueX) / (maxValueX - minValueX),
|
|
97
|
+
y: 1 - (yValue - minValueY) / (maxValueY - minValueY)
|
|
98
|
+
};
|
|
99
|
+
},
|
|
100
|
+
incrementX(stepSize = 1) {
|
|
101
|
+
setXValue(xValue + stepSize > maxValueX ? maxValueX : $9446cca9a3875146$export$cb6e0bb50bc19463(xValue + stepSize, minValueX, maxValueX, stepX));
|
|
102
|
+
},
|
|
103
|
+
incrementY(stepSize = 1) {
|
|
104
|
+
setYValue(yValue + stepSize > maxValueY ? maxValueY : $9446cca9a3875146$export$cb6e0bb50bc19463(yValue + stepSize, minValueY, maxValueY, stepY));
|
|
105
|
+
},
|
|
106
|
+
decrementX(stepSize = 1) {
|
|
107
|
+
setXValue($9446cca9a3875146$export$cb6e0bb50bc19463(xValue - stepSize, minValueX, maxValueX, stepX));
|
|
108
|
+
},
|
|
109
|
+
decrementY(stepSize = 1) {
|
|
110
|
+
setYValue($9446cca9a3875146$export$cb6e0bb50bc19463(yValue - stepSize, minValueY, maxValueY, stepY));
|
|
111
|
+
},
|
|
112
|
+
setDragging(isDragging) {
|
|
113
|
+
let wasDragging = isDraggingRef.current;
|
|
114
|
+
isDraggingRef.current = isDragging;
|
|
115
|
+
if (onChangeEnd && !isDragging && wasDragging) onChangeEnd(valueRef.current);
|
|
116
|
+
setDragging(isDragging);
|
|
117
|
+
},
|
|
118
|
+
isDragging,
|
|
119
|
+
getDisplayColor() {
|
|
120
|
+
return color.withChannelValue("alpha", 1);
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
//#endregion
|
|
125
|
+
//#region node_modules/@react-stately/color/dist/useColorSliderState.mjs
|
|
126
|
+
function $25a25ac0d1624665$export$57bc203e1c9c6d44(props) {
|
|
127
|
+
let { channel, colorSpace, value, defaultValue, onChange, locale, ...otherProps } = props;
|
|
128
|
+
if (value == null && defaultValue == null) throw new Error("useColorSliderState requires a value or defaultValue");
|
|
129
|
+
if (value) value = $799cddbef784668f$export$4cde5df63f53f473(value);
|
|
130
|
+
if (defaultValue) defaultValue = $799cddbef784668f$export$4cde5df63f53f473(defaultValue);
|
|
131
|
+
let [colorValue, setColor] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(value, defaultValue, onChange);
|
|
132
|
+
let color = useMemo(() => colorSpace && colorValue ? colorValue.toFormat(colorSpace) : colorValue, [colorValue, colorSpace]);
|
|
133
|
+
let [initialValue] = useState(colorValue);
|
|
134
|
+
let defaultColorValue = defaultValue !== null && defaultValue !== void 0 ? defaultValue : initialValue;
|
|
135
|
+
let defaultColor = useMemo(() => colorSpace && defaultColorValue ? defaultColorValue.toFormat(colorSpace) : defaultColorValue, [defaultColorValue, colorSpace]);
|
|
136
|
+
let sliderState = $28f99e3e86e6ec45$export$e5fda3247f5d67f9({
|
|
137
|
+
...color.getChannelRange(channel),
|
|
138
|
+
...otherProps,
|
|
139
|
+
numberFormatter: null,
|
|
140
|
+
value: color.getChannelValue(channel),
|
|
141
|
+
defaultValue: defaultColor.getChannelValue(channel),
|
|
142
|
+
onChange(v) {
|
|
143
|
+
setColor(color.withChannelValue(channel, v));
|
|
144
|
+
},
|
|
145
|
+
onChangeEnd(v) {
|
|
146
|
+
if (props.onChangeEnd) props.onChangeEnd(color.withChannelValue(channel, v));
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
let { step, pageSize } = color.getChannelRange(channel);
|
|
150
|
+
return {
|
|
151
|
+
...sliderState,
|
|
152
|
+
value: color,
|
|
153
|
+
setValue(value) {
|
|
154
|
+
setColor($799cddbef784668f$export$4cde5df63f53f473(value));
|
|
155
|
+
},
|
|
156
|
+
getDisplayColor() {
|
|
157
|
+
switch (channel) {
|
|
158
|
+
case "hue": return $799cddbef784668f$export$6e865ea70d7724f(`hsl(${color.getChannelValue("hue")}, 100%, 50%)`);
|
|
159
|
+
case "lightness":
|
|
160
|
+
case "brightness":
|
|
161
|
+
case "saturation":
|
|
162
|
+
case "red":
|
|
163
|
+
case "green":
|
|
164
|
+
case "blue": return color.withChannelValue("alpha", 1);
|
|
165
|
+
case "alpha": return color;
|
|
166
|
+
default: throw new Error("Unknown color channel: " + channel);
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
getThumbValueLabel() {
|
|
170
|
+
return color.formatChannelValue(channel, locale);
|
|
171
|
+
},
|
|
172
|
+
step,
|
|
173
|
+
pageSize,
|
|
174
|
+
isDragging: sliderState.isThumbDragging(0)
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
//#endregion
|
|
178
|
+
//#region node_modules/@react-stately/color/dist/useColor.mjs
|
|
179
|
+
function $aa90ad8b2b1d015f$export$5aadd9c0606af5c2(value) {
|
|
180
|
+
return useMemo(() => {
|
|
181
|
+
if (typeof value === "string") try {
|
|
182
|
+
return $799cddbef784668f$export$6e865ea70d7724f(value);
|
|
183
|
+
} catch {
|
|
184
|
+
return;
|
|
185
|
+
}
|
|
186
|
+
return value;
|
|
187
|
+
}, [value]);
|
|
188
|
+
}
|
|
189
|
+
//#endregion
|
|
190
|
+
//#region node_modules/@react-stately/color/dist/useColorFieldState.mjs
|
|
191
|
+
var $b335ada08155d9c0$var$MIN_COLOR = $799cddbef784668f$export$6e865ea70d7724f("#000000");
|
|
192
|
+
var $b335ada08155d9c0$var$MAX_COLOR = $799cddbef784668f$export$6e865ea70d7724f("#FFFFFF");
|
|
193
|
+
var $b335ada08155d9c0$var$MIN_COLOR_INT = $b335ada08155d9c0$var$MIN_COLOR.toHexInt();
|
|
194
|
+
var $b335ada08155d9c0$var$MAX_COLOR_INT = $b335ada08155d9c0$var$MAX_COLOR.toHexInt();
|
|
195
|
+
function $b335ada08155d9c0$export$d52a01683abdfcd6(props) {
|
|
196
|
+
let { value, defaultValue, onChange } = props;
|
|
197
|
+
let { step } = $b335ada08155d9c0$var$MIN_COLOR.getChannelRange("red");
|
|
198
|
+
let initialDefaultValue = $aa90ad8b2b1d015f$export$5aadd9c0606af5c2(defaultValue);
|
|
199
|
+
let [colorValue, setColorValue] = $458b0a5536c1a7cf$export$40bfa8c7b0832715($aa90ad8b2b1d015f$export$5aadd9c0606af5c2(value), initialDefaultValue, onChange);
|
|
200
|
+
let [initialValue] = useState(colorValue);
|
|
201
|
+
let [inputValue, setInputValue] = useState(() => (value || defaultValue) && colorValue ? colorValue.toString("hex") : "");
|
|
202
|
+
let validation = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
|
|
203
|
+
...props,
|
|
204
|
+
value: colorValue
|
|
205
|
+
});
|
|
206
|
+
let safelySetColorValue = (newColor) => {
|
|
207
|
+
if (!colorValue || !newColor) {
|
|
208
|
+
setColorValue(newColor);
|
|
209
|
+
return;
|
|
210
|
+
}
|
|
211
|
+
if (newColor.toHexInt() !== colorValue.toHexInt()) {
|
|
212
|
+
setColorValue(newColor);
|
|
213
|
+
return;
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
let [prevValue, setPrevValue] = useState(colorValue);
|
|
217
|
+
if (prevValue !== colorValue) {
|
|
218
|
+
setInputValue(colorValue ? colorValue.toString("hex") : "");
|
|
219
|
+
setPrevValue(colorValue);
|
|
220
|
+
}
|
|
221
|
+
let parsedValue = useMemo(() => {
|
|
222
|
+
let color;
|
|
223
|
+
try {
|
|
224
|
+
color = $799cddbef784668f$export$6e865ea70d7724f(inputValue.startsWith("#") ? inputValue : `#${inputValue}`);
|
|
225
|
+
} catch {
|
|
226
|
+
color = null;
|
|
227
|
+
}
|
|
228
|
+
return color;
|
|
229
|
+
}, [inputValue]);
|
|
230
|
+
let commit = () => {
|
|
231
|
+
if (!inputValue.length) {
|
|
232
|
+
safelySetColorValue(null);
|
|
233
|
+
if (value === void 0 || colorValue === null) setInputValue("");
|
|
234
|
+
else setInputValue(colorValue.toString("hex"));
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
if (parsedValue == null) {
|
|
238
|
+
setInputValue(colorValue ? colorValue.toString("hex") : "");
|
|
239
|
+
return;
|
|
240
|
+
}
|
|
241
|
+
safelySetColorValue(parsedValue);
|
|
242
|
+
let newColorValue = "";
|
|
243
|
+
if (colorValue) newColorValue = colorValue.toString("hex");
|
|
244
|
+
setInputValue(newColorValue);
|
|
245
|
+
validation.commitValidation();
|
|
246
|
+
};
|
|
247
|
+
let increment = () => {
|
|
248
|
+
let newValue = $b335ada08155d9c0$var$addColorValue(parsedValue, step);
|
|
249
|
+
if (newValue === colorValue) setInputValue(newValue.toString("hex"));
|
|
250
|
+
safelySetColorValue(newValue);
|
|
251
|
+
validation.commitValidation();
|
|
252
|
+
};
|
|
253
|
+
let decrement = () => {
|
|
254
|
+
let newValue = $b335ada08155d9c0$var$addColorValue(parsedValue, -step);
|
|
255
|
+
if (newValue === colorValue) setInputValue(newValue.toString("hex"));
|
|
256
|
+
safelySetColorValue(newValue);
|
|
257
|
+
validation.commitValidation();
|
|
258
|
+
};
|
|
259
|
+
let incrementToMax = () => safelySetColorValue($b335ada08155d9c0$var$MAX_COLOR);
|
|
260
|
+
let decrementToMin = () => safelySetColorValue($b335ada08155d9c0$var$MIN_COLOR);
|
|
261
|
+
let validate = (value) => {
|
|
262
|
+
var _value_match;
|
|
263
|
+
return value === "" || !!((_value_match = value.match(/^#?[0-9a-f]{0,6}$/i)) === null || _value_match === void 0 ? void 0 : _value_match[0]);
|
|
264
|
+
};
|
|
265
|
+
return {
|
|
266
|
+
...validation,
|
|
267
|
+
validate,
|
|
268
|
+
colorValue,
|
|
269
|
+
defaultColorValue: initialDefaultValue !== null && initialDefaultValue !== void 0 ? initialDefaultValue : initialValue,
|
|
270
|
+
setColorValue,
|
|
271
|
+
inputValue,
|
|
272
|
+
setInputValue,
|
|
273
|
+
commit,
|
|
274
|
+
increment,
|
|
275
|
+
incrementToMax,
|
|
276
|
+
decrement,
|
|
277
|
+
decrementToMin
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
function $b335ada08155d9c0$var$addColorValue(color, step) {
|
|
281
|
+
let newColor = color ? color : $b335ada08155d9c0$var$MIN_COLOR;
|
|
282
|
+
let colorInt = newColor.toHexInt();
|
|
283
|
+
let clampInt = Math.min(Math.max(colorInt + step, $b335ada08155d9c0$var$MIN_COLOR_INT), $b335ada08155d9c0$var$MAX_COLOR_INT);
|
|
284
|
+
if (clampInt !== colorInt) newColor = $799cddbef784668f$export$6e865ea70d7724f(`#${clampInt.toString(16).padStart(6, "0").toUpperCase()}`);
|
|
285
|
+
return newColor;
|
|
286
|
+
}
|
|
287
|
+
//#endregion
|
|
288
|
+
//#region node_modules/@react-stately/color/dist/useColorChannelFieldState.mjs
|
|
289
|
+
function $31a863bb88e75dd6$export$b9fc0d69c9190c4a(props) {
|
|
290
|
+
let { channel, colorSpace, locale } = props;
|
|
291
|
+
let initialValue = $aa90ad8b2b1d015f$export$5aadd9c0606af5c2(props.value);
|
|
292
|
+
let initialDefaultValue = $aa90ad8b2b1d015f$export$5aadd9c0606af5c2(props.defaultValue);
|
|
293
|
+
let [colorValue, setColor] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(initialValue, initialDefaultValue !== null && initialDefaultValue !== void 0 ? initialDefaultValue : null, props.onChange);
|
|
294
|
+
let color = $31a863bb88e75dd6$var$useConvertColor(colorValue, colorSpace);
|
|
295
|
+
let [initialColorValue] = useState(colorValue);
|
|
296
|
+
let defaultColorValue = initialDefaultValue !== null && initialDefaultValue !== void 0 ? initialDefaultValue : initialColorValue;
|
|
297
|
+
let defaultColor = $31a863bb88e75dd6$var$useConvertColor(defaultColorValue, colorSpace);
|
|
298
|
+
let value = color.getChannelValue(channel);
|
|
299
|
+
let range = color.getChannelRange(channel);
|
|
300
|
+
let formatOptions = useMemo(() => color.getChannelFormatOptions(channel), [color, channel]);
|
|
301
|
+
let multiplier = formatOptions.style === "percent" && range.maxValue === 100 ? 100 : 1;
|
|
302
|
+
return {
|
|
303
|
+
...$de67e98908f0c6ee$export$7f629e9dc1ecf37c({
|
|
304
|
+
locale,
|
|
305
|
+
value: colorValue === null ? NaN : value / multiplier,
|
|
306
|
+
defaultValue: defaultColorValue === null ? NaN : defaultColor.getChannelValue(channel) / multiplier,
|
|
307
|
+
onChange: (v) => {
|
|
308
|
+
if (!Number.isNaN(v)) setColor(color.withChannelValue(channel, v * multiplier));
|
|
309
|
+
else setColor(null);
|
|
310
|
+
},
|
|
311
|
+
minValue: range.minValue / multiplier,
|
|
312
|
+
maxValue: range.maxValue / multiplier,
|
|
313
|
+
step: range.step / multiplier,
|
|
314
|
+
formatOptions
|
|
315
|
+
}),
|
|
316
|
+
colorValue: color,
|
|
317
|
+
defaultColorValue,
|
|
318
|
+
setColorValue: setColor
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
function $31a863bb88e75dd6$var$useConvertColor(colorValue, colorSpace) {
|
|
322
|
+
let black = $aa90ad8b2b1d015f$export$5aadd9c0606af5c2("#000");
|
|
323
|
+
return useMemo(() => {
|
|
324
|
+
let nonNullColorValue = colorValue || black;
|
|
325
|
+
return colorSpace && nonNullColorValue ? nonNullColorValue.toFormat(colorSpace) : nonNullColorValue;
|
|
326
|
+
}, [
|
|
327
|
+
black,
|
|
328
|
+
colorValue,
|
|
329
|
+
colorSpace
|
|
330
|
+
]);
|
|
331
|
+
}
|
|
332
|
+
//#endregion
|
|
333
|
+
//#region node_modules/@react-aria/color/dist/useColorAreaGradient.mjs
|
|
334
|
+
var $40297c24c53588e6$var$hue = (color) => [
|
|
335
|
+
0,
|
|
336
|
+
60,
|
|
337
|
+
120,
|
|
338
|
+
180,
|
|
339
|
+
240,
|
|
340
|
+
300,
|
|
341
|
+
360
|
|
342
|
+
].map((hue) => color.withChannelValue("hue", hue).toString("css")).join(", ");
|
|
343
|
+
var $40297c24c53588e6$var$saturation = (color) => `${color.withChannelValue("saturation", 0)}, transparent`;
|
|
344
|
+
var $40297c24c53588e6$var$hslChannels = {
|
|
345
|
+
hue: $40297c24c53588e6$var$hue,
|
|
346
|
+
saturation: $40297c24c53588e6$var$saturation,
|
|
347
|
+
lightness: () => "black, transparent, white"
|
|
348
|
+
};
|
|
349
|
+
var $40297c24c53588e6$var$hsbChannels = {
|
|
350
|
+
hue: $40297c24c53588e6$var$hue,
|
|
351
|
+
saturation: $40297c24c53588e6$var$saturation,
|
|
352
|
+
brightness: () => "black, transparent"
|
|
353
|
+
};
|
|
354
|
+
function $40297c24c53588e6$export$dd62420467d245ca({ direction, state, zChannel, xChannel, yChannel }) {
|
|
355
|
+
return useMemo(() => {
|
|
356
|
+
let end = direction === "rtl" ? "left" : "right";
|
|
357
|
+
let colorAreaStyles = {};
|
|
358
|
+
let zValue = state.value.getChannelValue(zChannel);
|
|
359
|
+
switch (state.value.getColorSpace()) {
|
|
360
|
+
case "rgb": {
|
|
361
|
+
let rgb = $799cddbef784668f$export$6e865ea70d7724f("rgb(0, 0, 0)");
|
|
362
|
+
colorAreaStyles = {
|
|
363
|
+
background: [
|
|
364
|
+
`linear-gradient(to ${end}, ${rgb.withChannelValue(xChannel, 0)}, ${rgb.withChannelValue(xChannel, 255)})`,
|
|
365
|
+
`linear-gradient(to top, ${rgb.withChannelValue(yChannel, 0)}, ${rgb.withChannelValue(yChannel, 255)})`,
|
|
366
|
+
rgb.withChannelValue(zChannel, zValue)
|
|
367
|
+
].join(","),
|
|
368
|
+
backgroundBlendMode: "screen"
|
|
369
|
+
};
|
|
370
|
+
break;
|
|
371
|
+
}
|
|
372
|
+
case "hsl": {
|
|
373
|
+
let channels = state.value.getColorChannels();
|
|
374
|
+
let value = $799cddbef784668f$export$6e865ea70d7724f("hsl(0, 100%, 50%)").withChannelValue(zChannel, zValue);
|
|
375
|
+
let bg = channels.filter((c) => c !== zChannel).map((c) => `linear-gradient(to ${c === xChannel ? end : "top"}, ${$40297c24c53588e6$var$hslChannels[c](value)})`).reverse();
|
|
376
|
+
if (zChannel === "hue") bg.push(value.toString("css"));
|
|
377
|
+
colorAreaStyles = { background: bg.join(", ") };
|
|
378
|
+
break;
|
|
379
|
+
}
|
|
380
|
+
case "hsb": {
|
|
381
|
+
let channels = state.value.getColorChannels();
|
|
382
|
+
let value = $799cddbef784668f$export$6e865ea70d7724f("hsb(0, 100%, 100%)").withChannelValue(zChannel, zValue);
|
|
383
|
+
let bg = channels.filter((c) => c !== zChannel).map((c) => `linear-gradient(to ${c === xChannel ? end : "top"}, ${$40297c24c53588e6$var$hsbChannels[c](value)})`).reverse();
|
|
384
|
+
if (zChannel === "hue") bg.push(value.toString("css"));
|
|
385
|
+
colorAreaStyles = { background: bg.join(", ") };
|
|
386
|
+
break;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
let { x, y } = state.getThumbPosition();
|
|
390
|
+
if (direction === "rtl") x = 1 - x;
|
|
391
|
+
let forcedColorAdjustNoneStyle = { forcedColorAdjust: "none" };
|
|
392
|
+
return {
|
|
393
|
+
colorAreaStyleProps: { style: {
|
|
394
|
+
position: "relative",
|
|
395
|
+
touchAction: "none",
|
|
396
|
+
...forcedColorAdjustNoneStyle,
|
|
397
|
+
...colorAreaStyles
|
|
398
|
+
} },
|
|
399
|
+
thumbStyleProps: { style: {
|
|
400
|
+
position: "absolute",
|
|
401
|
+
left: `${x * 100}%`,
|
|
402
|
+
top: `${y * 100}%`,
|
|
403
|
+
transform: "translate(-50%, -50%)",
|
|
404
|
+
touchAction: "none",
|
|
405
|
+
...forcedColorAdjustNoneStyle
|
|
406
|
+
} }
|
|
407
|
+
};
|
|
408
|
+
}, [
|
|
409
|
+
direction,
|
|
410
|
+
state,
|
|
411
|
+
zChannel,
|
|
412
|
+
xChannel,
|
|
413
|
+
yChannel
|
|
414
|
+
]);
|
|
415
|
+
}
|
|
416
|
+
//#endregion
|
|
417
|
+
//#region node_modules/@react-aria/color/dist/useColorArea.mjs
|
|
418
|
+
function $parcel$interopDefault(a) {
|
|
419
|
+
return a && a.__esModule ? a.default : a;
|
|
420
|
+
}
|
|
421
|
+
function $60bd7d6e45dcddfa$export$2f92a7a615a014f6(props, state) {
|
|
422
|
+
let { isDisabled, inputXRef, inputYRef, containerRef, "aria-label": ariaLabel, xName, yName, form } = props;
|
|
423
|
+
let stringFormatter = $fca6afa0e843324b$export$f12b703ca79dfbb1($parcel$interopDefault($3493a52097159720$exports), "@react-aria/color");
|
|
424
|
+
let { addGlobalListener, removeGlobalListener } = $03deb23ff14920c4$export$4eaf04e54aa8eed6();
|
|
425
|
+
let { direction, locale } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
426
|
+
let [focusedInput, setFocusedInput] = useState(null);
|
|
427
|
+
let focusInput = useCallback((inputRef = inputXRef) => {
|
|
428
|
+
if (inputRef.current) $7215afc6de606d6b$export$de79e2c695e052f3(inputRef.current);
|
|
429
|
+
}, [inputXRef]);
|
|
430
|
+
$99facab73266f662$export$5add1d006293d136(inputXRef, state.defaultValue, state.setValue);
|
|
431
|
+
let [valueChangedViaKeyboard, setValueChangedViaKeyboard] = useState(false);
|
|
432
|
+
let [valueChangedViaInputChangeEvent, setValueChangedViaInputChangeEvent] = useState(false);
|
|
433
|
+
let { xChannel, yChannel, zChannel } = state.channels;
|
|
434
|
+
let xChannelStep = state.xChannelStep;
|
|
435
|
+
let yChannelStep = state.yChannelStep;
|
|
436
|
+
let currentPosition = useRef(null);
|
|
437
|
+
let { keyboardProps } = $46d819fcbaf35654$export$8f71654801c2f7cd({ onKeyDown(e) {
|
|
438
|
+
if (!/^(PageUp|PageDown|Home|End)$/.test(e.key)) {
|
|
439
|
+
e.continuePropagation();
|
|
440
|
+
return;
|
|
441
|
+
}
|
|
442
|
+
e.preventDefault();
|
|
443
|
+
state.setDragging(true);
|
|
444
|
+
setValueChangedViaKeyboard(true);
|
|
445
|
+
let dir;
|
|
446
|
+
switch (e.key) {
|
|
447
|
+
case "PageUp":
|
|
448
|
+
state.incrementY(state.yChannelPageStep);
|
|
449
|
+
dir = "y";
|
|
450
|
+
break;
|
|
451
|
+
case "PageDown":
|
|
452
|
+
state.decrementY(state.yChannelPageStep);
|
|
453
|
+
dir = "y";
|
|
454
|
+
break;
|
|
455
|
+
case "Home":
|
|
456
|
+
direction === "rtl" ? state.incrementX(state.xChannelPageStep) : state.decrementX(state.xChannelPageStep);
|
|
457
|
+
dir = "x";
|
|
458
|
+
break;
|
|
459
|
+
case "End":
|
|
460
|
+
direction === "rtl" ? state.decrementX(state.xChannelPageStep) : state.incrementX(state.xChannelPageStep);
|
|
461
|
+
dir = "x";
|
|
462
|
+
break;
|
|
463
|
+
}
|
|
464
|
+
state.setDragging(false);
|
|
465
|
+
if (dir) {
|
|
466
|
+
focusInput(dir === "x" ? inputXRef : inputYRef);
|
|
467
|
+
setFocusedInput(dir);
|
|
468
|
+
}
|
|
469
|
+
} });
|
|
470
|
+
let moveHandler = {
|
|
471
|
+
onMoveStart() {
|
|
472
|
+
currentPosition.current = null;
|
|
473
|
+
state.setDragging(true);
|
|
474
|
+
},
|
|
475
|
+
onMove({ deltaX, deltaY, pointerType, shiftKey }) {
|
|
476
|
+
var _containerRef_current;
|
|
477
|
+
let { incrementX, decrementX, incrementY, decrementY, xChannelPageStep, xChannelStep, yChannelPageStep, yChannelStep, getThumbPosition, setColorFromPoint } = state;
|
|
478
|
+
if (currentPosition.current == null) currentPosition.current = getThumbPosition();
|
|
479
|
+
let { width, height } = ((_containerRef_current = containerRef.current) === null || _containerRef_current === void 0 ? void 0 : _containerRef_current.getBoundingClientRect()) || {
|
|
480
|
+
width: 0,
|
|
481
|
+
height: 0
|
|
482
|
+
};
|
|
483
|
+
let valueChanged = deltaX !== 0 || deltaY !== 0;
|
|
484
|
+
if (pointerType === "keyboard") {
|
|
485
|
+
let deltaXValue = shiftKey && xChannelPageStep > xChannelStep ? xChannelPageStep : xChannelStep;
|
|
486
|
+
let deltaYValue = shiftKey && yChannelPageStep > yChannelStep ? yChannelPageStep : yChannelStep;
|
|
487
|
+
if (deltaX > 0 && direction === "ltr" || deltaX < 0 && direction === "rtl") incrementX(deltaXValue);
|
|
488
|
+
else if (deltaX < 0 && direction === "ltr" || deltaX > 0 && direction === "rtl") decrementX(deltaXValue);
|
|
489
|
+
else if (deltaY > 0) decrementY(deltaYValue);
|
|
490
|
+
else if (deltaY < 0) incrementY(deltaYValue);
|
|
491
|
+
setValueChangedViaKeyboard(valueChanged);
|
|
492
|
+
focusedInput = valueChanged && Math.abs(deltaY) > Math.abs(deltaX) ? "y" : "x";
|
|
493
|
+
setFocusedInput(focusedInput);
|
|
494
|
+
} else {
|
|
495
|
+
currentPosition.current.x += (direction === "rtl" ? -1 : 1) * deltaX / width;
|
|
496
|
+
currentPosition.current.y += deltaY / height;
|
|
497
|
+
setColorFromPoint(currentPosition.current.x, currentPosition.current.y);
|
|
498
|
+
}
|
|
499
|
+
},
|
|
500
|
+
onMoveEnd() {
|
|
501
|
+
isOnColorArea.current = false;
|
|
502
|
+
state.setDragging(false);
|
|
503
|
+
focusInput(focusedInput === "x" ? inputXRef : inputYRef);
|
|
504
|
+
}
|
|
505
|
+
};
|
|
506
|
+
let { moveProps: movePropsThumb } = $e8a7022cf87cba2a$export$36da96379f79f245(moveHandler);
|
|
507
|
+
let { focusWithinProps } = $9ab94262bd0047c7$export$420e68273165f4ec({ onFocusWithinChange: (focusWithin) => {
|
|
508
|
+
if (!focusWithin) {
|
|
509
|
+
setValueChangedViaKeyboard(false);
|
|
510
|
+
setValueChangedViaInputChangeEvent(false);
|
|
511
|
+
}
|
|
512
|
+
} });
|
|
513
|
+
let currentPointer = useRef(void 0);
|
|
514
|
+
let isOnColorArea = useRef(false);
|
|
515
|
+
let { moveProps: movePropsContainer } = $e8a7022cf87cba2a$export$36da96379f79f245({
|
|
516
|
+
onMoveStart() {
|
|
517
|
+
if (isOnColorArea.current) moveHandler.onMoveStart();
|
|
518
|
+
},
|
|
519
|
+
onMove(e) {
|
|
520
|
+
if (isOnColorArea.current) moveHandler.onMove(e);
|
|
521
|
+
},
|
|
522
|
+
onMoveEnd() {
|
|
523
|
+
if (isOnColorArea.current) moveHandler.onMoveEnd();
|
|
524
|
+
}
|
|
525
|
+
});
|
|
526
|
+
let onThumbDown = (id) => {
|
|
527
|
+
if (!state.isDragging) {
|
|
528
|
+
currentPointer.current = id;
|
|
529
|
+
setValueChangedViaKeyboard(false);
|
|
530
|
+
focusInput();
|
|
531
|
+
state.setDragging(true);
|
|
532
|
+
if (typeof PointerEvent !== "undefined") addGlobalListener(window, "pointerup", onThumbUp, false);
|
|
533
|
+
else {
|
|
534
|
+
addGlobalListener(window, "mouseup", onThumbUp, false);
|
|
535
|
+
addGlobalListener(window, "touchend", onThumbUp, false);
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
};
|
|
539
|
+
let onThumbUp = (e) => {
|
|
540
|
+
var _e_changedTouches;
|
|
541
|
+
var _e_pointerId;
|
|
542
|
+
if (((_e_pointerId = e.pointerId) !== null && _e_pointerId !== void 0 ? _e_pointerId : (_e_changedTouches = e.changedTouches) === null || _e_changedTouches === void 0 ? void 0 : _e_changedTouches[0].identifier) === currentPointer.current) {
|
|
543
|
+
setValueChangedViaKeyboard(false);
|
|
544
|
+
focusInput();
|
|
545
|
+
state.setDragging(false);
|
|
546
|
+
currentPointer.current = void 0;
|
|
547
|
+
isOnColorArea.current = false;
|
|
548
|
+
if (typeof PointerEvent !== "undefined") removeGlobalListener(window, "pointerup", onThumbUp, false);
|
|
549
|
+
else {
|
|
550
|
+
removeGlobalListener(window, "mouseup", onThumbUp, false);
|
|
551
|
+
removeGlobalListener(window, "touchend", onThumbUp, false);
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
};
|
|
555
|
+
let onColorAreaDown = (colorArea, id, clientX, clientY) => {
|
|
556
|
+
let rect = colorArea.getBoundingClientRect();
|
|
557
|
+
let { width, height } = rect;
|
|
558
|
+
let x = (clientX - rect.x) / width;
|
|
559
|
+
let y = (clientY - rect.y) / height;
|
|
560
|
+
if (direction === "rtl") x = 1 - x;
|
|
561
|
+
if (x >= 0 && x <= 1 && y >= 0 && y <= 1 && !state.isDragging && currentPointer.current === void 0) {
|
|
562
|
+
isOnColorArea.current = true;
|
|
563
|
+
setValueChangedViaKeyboard(false);
|
|
564
|
+
currentPointer.current = id;
|
|
565
|
+
state.setColorFromPoint(x, y);
|
|
566
|
+
focusInput();
|
|
567
|
+
state.setDragging(true);
|
|
568
|
+
if (typeof PointerEvent !== "undefined") addGlobalListener(window, "pointerup", onColorAreaUp, false);
|
|
569
|
+
else {
|
|
570
|
+
addGlobalListener(window, "mouseup", onColorAreaUp, false);
|
|
571
|
+
addGlobalListener(window, "touchend", onColorAreaUp, false);
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
};
|
|
575
|
+
let onColorAreaUp = (e) => {
|
|
576
|
+
var _e_changedTouches;
|
|
577
|
+
var _e_pointerId;
|
|
578
|
+
let id = (_e_pointerId = e.pointerId) !== null && _e_pointerId !== void 0 ? _e_pointerId : (_e_changedTouches = e.changedTouches) === null || _e_changedTouches === void 0 ? void 0 : _e_changedTouches[0].identifier;
|
|
579
|
+
if (isOnColorArea.current && id === currentPointer.current) {
|
|
580
|
+
isOnColorArea.current = false;
|
|
581
|
+
setValueChangedViaKeyboard(false);
|
|
582
|
+
currentPointer.current = void 0;
|
|
583
|
+
state.setDragging(false);
|
|
584
|
+
focusInput();
|
|
585
|
+
if (typeof PointerEvent !== "undefined") removeGlobalListener(window, "pointerup", onColorAreaUp, false);
|
|
586
|
+
else {
|
|
587
|
+
removeGlobalListener(window, "mouseup", onColorAreaUp, false);
|
|
588
|
+
removeGlobalListener(window, "touchend", onColorAreaUp, false);
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
};
|
|
592
|
+
let colorAreaInteractions = isDisabled ? {} : $3ef42575df84b30b$export$9d1611c77c2fe928({ ...typeof PointerEvent !== "undefined" ? { onPointerDown: (e) => {
|
|
593
|
+
if (e.pointerType === "mouse" && (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey)) return;
|
|
594
|
+
onColorAreaDown(e.currentTarget, e.pointerId, e.clientX, e.clientY);
|
|
595
|
+
} } : {
|
|
596
|
+
onMouseDown: (e) => {
|
|
597
|
+
if (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey) return;
|
|
598
|
+
onColorAreaDown(e.currentTarget, void 0, e.clientX, e.clientY);
|
|
599
|
+
},
|
|
600
|
+
onTouchStart: (e) => {
|
|
601
|
+
onColorAreaDown(e.currentTarget, e.changedTouches[0].identifier, e.changedTouches[0].clientX, e.changedTouches[0].clientY);
|
|
602
|
+
}
|
|
603
|
+
} }, movePropsContainer);
|
|
604
|
+
let thumbInteractions = isDisabled ? {} : $3ef42575df84b30b$export$9d1611c77c2fe928({ ...typeof PointerEvent !== "undefined" ? { onPointerDown: (e) => {
|
|
605
|
+
if (e.pointerType === "mouse" && (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey)) return;
|
|
606
|
+
onThumbDown(e.pointerId);
|
|
607
|
+
} } : {
|
|
608
|
+
onMouseDown: (e) => {
|
|
609
|
+
if (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey) return;
|
|
610
|
+
onThumbDown(void 0);
|
|
611
|
+
},
|
|
612
|
+
onTouchStart: (e) => {
|
|
613
|
+
onThumbDown(e.changedTouches[0].identifier);
|
|
614
|
+
}
|
|
615
|
+
} }, focusWithinProps, keyboardProps, movePropsThumb);
|
|
616
|
+
let { focusProps: xInputFocusProps } = $a1ea59d68270f0dd$export$f8168d8dd8fd66e6({ onFocus: () => {
|
|
617
|
+
setFocusedInput("x");
|
|
618
|
+
} });
|
|
619
|
+
let { focusProps: yInputFocusProps } = $a1ea59d68270f0dd$export$f8168d8dd8fd66e6({ onFocus: () => {
|
|
620
|
+
setFocusedInput("y");
|
|
621
|
+
} });
|
|
622
|
+
const onChange = (e) => {
|
|
623
|
+
const { target } = e;
|
|
624
|
+
setValueChangedViaInputChangeEvent(true);
|
|
625
|
+
if (target === inputXRef.current) state.setXValue(parseFloat(target.value));
|
|
626
|
+
else if (target === inputYRef.current) state.setYValue(parseFloat(target.value));
|
|
627
|
+
};
|
|
628
|
+
let isMobile = $c87311424ea30a05$export$fedb369cb70207f1() || $c87311424ea30a05$export$a11b0059900ceec8();
|
|
629
|
+
let value = state.getDisplayColor();
|
|
630
|
+
const getAriaValueTextForChannel = useCallback((channel) => {
|
|
631
|
+
return `${valueChangedViaInputChangeEvent || valueChangedViaKeyboard ? stringFormatter.format("colorNameAndValue", {
|
|
632
|
+
name: value.getChannelName(channel, locale),
|
|
633
|
+
value: value.formatChannelValue(channel, locale)
|
|
634
|
+
}) : [
|
|
635
|
+
stringFormatter.format("colorNameAndValue", {
|
|
636
|
+
name: value.getChannelName(channel, locale),
|
|
637
|
+
value: value.formatChannelValue(channel, locale)
|
|
638
|
+
}),
|
|
639
|
+
stringFormatter.format("colorNameAndValue", {
|
|
640
|
+
name: value.getChannelName(channel === yChannel ? xChannel : yChannel, locale),
|
|
641
|
+
value: value.formatChannelValue(channel === yChannel ? xChannel : yChannel, locale)
|
|
642
|
+
}),
|
|
643
|
+
stringFormatter.format("colorNameAndValue", {
|
|
644
|
+
name: value.getChannelName(zChannel, locale),
|
|
645
|
+
value: value.formatChannelValue(zChannel, locale)
|
|
646
|
+
})
|
|
647
|
+
].join(", ")}, ${value.getColorName(locale)}`;
|
|
648
|
+
}, [
|
|
649
|
+
locale,
|
|
650
|
+
value,
|
|
651
|
+
stringFormatter,
|
|
652
|
+
valueChangedViaInputChangeEvent,
|
|
653
|
+
valueChangedViaKeyboard,
|
|
654
|
+
xChannel,
|
|
655
|
+
yChannel,
|
|
656
|
+
zChannel
|
|
657
|
+
]);
|
|
658
|
+
let colorPickerLabel = stringFormatter.format("colorPicker");
|
|
659
|
+
let xInputLabellingProps = $313b98861ee5dd6c$export$d6875122194c7b44({
|
|
660
|
+
...props,
|
|
661
|
+
"aria-label": ariaLabel ? stringFormatter.format("colorInputLabel", {
|
|
662
|
+
label: ariaLabel,
|
|
663
|
+
channelLabel: colorPickerLabel
|
|
664
|
+
}) : colorPickerLabel
|
|
665
|
+
});
|
|
666
|
+
let yInputLabellingProps = $313b98861ee5dd6c$export$d6875122194c7b44({
|
|
667
|
+
...props,
|
|
668
|
+
"aria-label": ariaLabel ? stringFormatter.format("colorInputLabel", {
|
|
669
|
+
label: ariaLabel,
|
|
670
|
+
channelLabel: colorPickerLabel
|
|
671
|
+
}) : colorPickerLabel
|
|
672
|
+
});
|
|
673
|
+
let colorAreaLabellingProps = $313b98861ee5dd6c$export$d6875122194c7b44({
|
|
674
|
+
...props,
|
|
675
|
+
"aria-label": ariaLabel ? `${ariaLabel}, ${colorPickerLabel}` : void 0
|
|
676
|
+
}, isMobile ? colorPickerLabel : void 0);
|
|
677
|
+
let ariaRoleDescription = stringFormatter.format("twoDimensionalSlider");
|
|
678
|
+
let { visuallyHiddenProps } = $5c3e21d68f1c4674$export$a966af930f325cab({ style: {
|
|
679
|
+
opacity: "0.0001",
|
|
680
|
+
width: "100%",
|
|
681
|
+
height: "100%",
|
|
682
|
+
pointerEvents: "none"
|
|
683
|
+
} });
|
|
684
|
+
let { colorAreaStyleProps, thumbStyleProps } = $40297c24c53588e6$export$dd62420467d245ca({
|
|
685
|
+
direction,
|
|
686
|
+
state,
|
|
687
|
+
xChannel,
|
|
688
|
+
yChannel,
|
|
689
|
+
zChannel
|
|
690
|
+
});
|
|
691
|
+
return {
|
|
692
|
+
colorAreaProps: {
|
|
693
|
+
...colorAreaLabellingProps,
|
|
694
|
+
...colorAreaInteractions,
|
|
695
|
+
...colorAreaStyleProps,
|
|
696
|
+
role: "group"
|
|
697
|
+
},
|
|
698
|
+
thumbProps: {
|
|
699
|
+
...thumbInteractions,
|
|
700
|
+
...thumbStyleProps,
|
|
701
|
+
role: "presentation"
|
|
702
|
+
},
|
|
703
|
+
xInputProps: {
|
|
704
|
+
...xInputLabellingProps,
|
|
705
|
+
...visuallyHiddenProps,
|
|
706
|
+
...xInputFocusProps,
|
|
707
|
+
type: "range",
|
|
708
|
+
min: state.value.getChannelRange(xChannel).minValue,
|
|
709
|
+
max: state.value.getChannelRange(xChannel).maxValue,
|
|
710
|
+
step: xChannelStep,
|
|
711
|
+
"aria-roledescription": ariaRoleDescription,
|
|
712
|
+
"aria-valuetext": getAriaValueTextForChannel(xChannel),
|
|
713
|
+
"aria-orientation": "horizontal",
|
|
714
|
+
"aria-describedby": props["aria-describedby"],
|
|
715
|
+
"aria-details": props["aria-details"],
|
|
716
|
+
disabled: isDisabled,
|
|
717
|
+
value: state.value.getChannelValue(xChannel),
|
|
718
|
+
name: xName,
|
|
719
|
+
form,
|
|
720
|
+
tabIndex: isMobile || !focusedInput || focusedInput === "x" ? void 0 : -1,
|
|
721
|
+
"aria-hidden": isMobile || !focusedInput || focusedInput === "x" || valueChangedViaKeyboard ? void 0 : "true",
|
|
722
|
+
onChange
|
|
723
|
+
},
|
|
724
|
+
yInputProps: {
|
|
725
|
+
...yInputLabellingProps,
|
|
726
|
+
...visuallyHiddenProps,
|
|
727
|
+
...yInputFocusProps,
|
|
728
|
+
type: "range",
|
|
729
|
+
min: state.value.getChannelRange(yChannel).minValue,
|
|
730
|
+
max: state.value.getChannelRange(yChannel).maxValue,
|
|
731
|
+
step: yChannelStep,
|
|
732
|
+
"aria-roledescription": ariaRoleDescription,
|
|
733
|
+
"aria-valuetext": getAriaValueTextForChannel(yChannel),
|
|
734
|
+
"aria-orientation": "vertical",
|
|
735
|
+
"aria-describedby": props["aria-describedby"],
|
|
736
|
+
"aria-details": props["aria-details"],
|
|
737
|
+
disabled: isDisabled,
|
|
738
|
+
value: state.value.getChannelValue(yChannel),
|
|
739
|
+
name: yName,
|
|
740
|
+
form,
|
|
741
|
+
tabIndex: isMobile || focusedInput === "y" ? void 0 : -1,
|
|
742
|
+
"aria-hidden": isMobile || focusedInput === "y" || valueChangedViaKeyboard ? void 0 : "true",
|
|
743
|
+
onChange
|
|
744
|
+
}
|
|
745
|
+
};
|
|
746
|
+
}
|
|
747
|
+
//#endregion
|
|
748
|
+
//#region node_modules/@react-aria/color/dist/useColorSlider.mjs
|
|
749
|
+
function $40af666d6c251e36$export$106b7a4e66508f66(props, state) {
|
|
750
|
+
let { trackRef, inputRef, orientation, channel, "aria-label": ariaLabel, name, form } = props;
|
|
751
|
+
let { locale, direction } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
752
|
+
if (!props.label && !ariaLabel && !props["aria-labelledby"]) ariaLabel = state.value.getChannelName(channel, locale);
|
|
753
|
+
let { groupProps, trackProps, labelProps, outputProps } = $bcca50147b47f54d$export$56b2c08e277f365({
|
|
754
|
+
...props,
|
|
755
|
+
"aria-label": ariaLabel
|
|
756
|
+
}, state, trackRef);
|
|
757
|
+
let { inputProps, thumbProps } = $47b897dc8cdb026b$export$8d15029008292ae({
|
|
758
|
+
index: 0,
|
|
759
|
+
orientation,
|
|
760
|
+
isDisabled: props.isDisabled,
|
|
761
|
+
name,
|
|
762
|
+
form,
|
|
763
|
+
trackRef,
|
|
764
|
+
inputRef
|
|
765
|
+
}, state);
|
|
766
|
+
let value = state.getDisplayColor();
|
|
767
|
+
let generateBackground = () => {
|
|
768
|
+
let to;
|
|
769
|
+
if (orientation === "vertical") to = "top";
|
|
770
|
+
else if (direction === "ltr") to = "right";
|
|
771
|
+
else to = "left";
|
|
772
|
+
switch (channel) {
|
|
773
|
+
case "hue": {
|
|
774
|
+
let stops = [
|
|
775
|
+
0,
|
|
776
|
+
60,
|
|
777
|
+
120,
|
|
778
|
+
180,
|
|
779
|
+
240,
|
|
780
|
+
300,
|
|
781
|
+
360
|
|
782
|
+
].map((hue) => value.withChannelValue("hue", hue).toString("css")).join(", ");
|
|
783
|
+
return `linear-gradient(to ${to}, ${stops})`;
|
|
784
|
+
}
|
|
785
|
+
case "lightness": {
|
|
786
|
+
let min = state.getThumbMinValue(0);
|
|
787
|
+
let max = state.getThumbMaxValue(0);
|
|
788
|
+
let start = value.withChannelValue(channel, min).toString("css");
|
|
789
|
+
let middle = value.withChannelValue(channel, (max - min) / 2).toString("css");
|
|
790
|
+
let end = value.withChannelValue(channel, max).toString("css");
|
|
791
|
+
return `linear-gradient(to ${to}, ${start}, ${middle}, ${end})`;
|
|
792
|
+
}
|
|
793
|
+
case "saturation":
|
|
794
|
+
case "brightness":
|
|
795
|
+
case "red":
|
|
796
|
+
case "green":
|
|
797
|
+
case "blue":
|
|
798
|
+
case "alpha": {
|
|
799
|
+
let start = value.withChannelValue(channel, state.getThumbMinValue(0)).toString("css");
|
|
800
|
+
let end = value.withChannelValue(channel, state.getThumbMaxValue(0)).toString("css");
|
|
801
|
+
return `linear-gradient(to ${to}, ${start}, ${end})`;
|
|
802
|
+
}
|
|
803
|
+
default: throw new Error("Unknown color channel: " + channel);
|
|
804
|
+
}
|
|
805
|
+
};
|
|
806
|
+
let forcedColorAdjustNoneStyle = { forcedColorAdjust: "none" };
|
|
807
|
+
if (channel === "hue") inputProps["aria-valuetext"] += `, ${value.getHueName(locale)}`;
|
|
808
|
+
else if (channel !== "alpha") inputProps["aria-valuetext"] += `, ${value.getColorName(locale)}`;
|
|
809
|
+
let { visuallyHiddenProps } = $5c3e21d68f1c4674$export$a966af930f325cab({ style: {
|
|
810
|
+
opacity: "0.0001",
|
|
811
|
+
width: "100%",
|
|
812
|
+
height: "100%",
|
|
813
|
+
pointerEvents: "none"
|
|
814
|
+
} });
|
|
815
|
+
return {
|
|
816
|
+
trackProps: {
|
|
817
|
+
...$3ef42575df84b30b$export$9d1611c77c2fe928(groupProps, trackProps),
|
|
818
|
+
style: {
|
|
819
|
+
...trackProps.style,
|
|
820
|
+
...forcedColorAdjustNoneStyle,
|
|
821
|
+
background: generateBackground()
|
|
822
|
+
}
|
|
823
|
+
},
|
|
824
|
+
inputProps: {
|
|
825
|
+
...inputProps,
|
|
826
|
+
style: {
|
|
827
|
+
...inputProps.style,
|
|
828
|
+
...visuallyHiddenProps.style
|
|
829
|
+
}
|
|
830
|
+
},
|
|
831
|
+
thumbProps: {
|
|
832
|
+
...thumbProps,
|
|
833
|
+
style: {
|
|
834
|
+
...thumbProps.style,
|
|
835
|
+
...forcedColorAdjustNoneStyle
|
|
836
|
+
}
|
|
837
|
+
},
|
|
838
|
+
labelProps,
|
|
839
|
+
outputProps
|
|
840
|
+
};
|
|
841
|
+
}
|
|
842
|
+
//#endregion
|
|
843
|
+
//#region node_modules/@react-aria/color/dist/useColorField.mjs
|
|
844
|
+
function $f6896b05b2ecad12$export$77e32ca575a28fdf(props, state, ref) {
|
|
845
|
+
let { isDisabled, isReadOnly, isRequired, isWheelDisabled, validationBehavior = "aria" } = props;
|
|
846
|
+
let { colorValue, inputValue, increment, decrement, incrementToMax, decrementToMin, commit } = state;
|
|
847
|
+
let inputId = $bdb11010cef70236$export$f680877a34711e37();
|
|
848
|
+
let { spinButtonProps } = $d2e8511e6f209edf$export$e908e06f4b8e3402({
|
|
849
|
+
isDisabled,
|
|
850
|
+
isReadOnly,
|
|
851
|
+
isRequired,
|
|
852
|
+
maxValue: 16777215,
|
|
853
|
+
minValue: 0,
|
|
854
|
+
onIncrement: increment,
|
|
855
|
+
onIncrementToMax: incrementToMax,
|
|
856
|
+
onDecrement: decrement,
|
|
857
|
+
onDecrementToMin: decrementToMin,
|
|
858
|
+
value: colorValue ? colorValue.toHexInt() : void 0,
|
|
859
|
+
textValue: colorValue ? colorValue.toString("hex") : void 0
|
|
860
|
+
});
|
|
861
|
+
let [focusWithin, setFocusWithin] = useState(false);
|
|
862
|
+
let { focusWithinProps } = $9ab94262bd0047c7$export$420e68273165f4ec({
|
|
863
|
+
isDisabled,
|
|
864
|
+
onFocusWithinChange: setFocusWithin
|
|
865
|
+
});
|
|
866
|
+
$7d0a636d7a4dcefd$export$2123ff2b87c81ca({
|
|
867
|
+
onScroll: useCallback((e) => {
|
|
868
|
+
if (Math.abs(e.deltaY) <= Math.abs(e.deltaX)) return;
|
|
869
|
+
if (e.deltaY > 0) increment();
|
|
870
|
+
else if (e.deltaY < 0) decrement();
|
|
871
|
+
}, [decrement, increment]),
|
|
872
|
+
isDisabled: isWheelDisabled || isDisabled || isReadOnly || !focusWithin
|
|
873
|
+
}, ref);
|
|
874
|
+
let onChange = (value) => {
|
|
875
|
+
if (state.validate(value)) state.setInputValue(value);
|
|
876
|
+
};
|
|
877
|
+
let { inputProps, ...otherProps } = $d841c8010a73d545$export$4f384c9210e583c3({
|
|
878
|
+
...props,
|
|
879
|
+
id: inputId,
|
|
880
|
+
value: inputValue,
|
|
881
|
+
defaultValue: "!",
|
|
882
|
+
validate: void 0,
|
|
883
|
+
[$e5be200c675c3b3a$export$a763b9476acd3eb]: state,
|
|
884
|
+
type: "text",
|
|
885
|
+
autoComplete: "off",
|
|
886
|
+
onChange
|
|
887
|
+
}, state, ref);
|
|
888
|
+
$99facab73266f662$export$5add1d006293d136(ref, state.defaultColorValue, state.setColorValue);
|
|
889
|
+
inputProps = $3ef42575df84b30b$export$9d1611c77c2fe928(inputProps, spinButtonProps, focusWithinProps, {
|
|
890
|
+
role: "textbox",
|
|
891
|
+
"aria-valuemax": null,
|
|
892
|
+
"aria-valuemin": null,
|
|
893
|
+
"aria-valuenow": null,
|
|
894
|
+
"aria-valuetext": null,
|
|
895
|
+
autoCorrect: "off",
|
|
896
|
+
spellCheck: "false",
|
|
897
|
+
onBlur: commit
|
|
898
|
+
});
|
|
899
|
+
if (validationBehavior === "native") inputProps["aria-required"] = void 0;
|
|
900
|
+
return {
|
|
901
|
+
inputProps,
|
|
902
|
+
...otherProps
|
|
903
|
+
};
|
|
904
|
+
}
|
|
905
|
+
//#endregion
|
|
906
|
+
//#region node_modules/@react-aria/color/dist/useColorChannelField.mjs
|
|
907
|
+
function $5e632d1ff0188f00$export$e55dd820142d3131(props, state, inputRef) {
|
|
908
|
+
let { locale } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
909
|
+
return $81397a9303501bda$export$23f548e970bdf099({
|
|
910
|
+
...props,
|
|
911
|
+
value: void 0,
|
|
912
|
+
defaultValue: void 0,
|
|
913
|
+
onChange: void 0,
|
|
914
|
+
validate: void 0,
|
|
915
|
+
"aria-label": props["aria-label"] || (props.label || props["aria-labelledby"] ? void 0 : state.colorValue.getChannelName(props.channel, locale))
|
|
916
|
+
}, state, inputRef);
|
|
917
|
+
}
|
|
918
|
+
//#endregion
|
|
919
|
+
//#region node_modules/react-aria-components/dist/ColorThumb.mjs
|
|
920
|
+
var $e2b71ec1d6016406$export$c80c0ea2ca5cb846 = createContext(null);
|
|
921
|
+
var $e2b71ec1d6016406$export$a3cc47cee1c1ccc = forwardRef(function ColorThumb(props, ref) {
|
|
922
|
+
let { state, thumbProps, inputXRef, inputYRef, xInputProps, yInputProps, isDisabled = false } = useContext($e2b71ec1d6016406$export$c80c0ea2ca5cb846);
|
|
923
|
+
let { focusProps, isFocused, isFocusVisible } = $f7dceffc5ad7768b$export$4e328f61c538687f();
|
|
924
|
+
let { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456(props);
|
|
925
|
+
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
926
|
+
...props,
|
|
927
|
+
defaultClassName: "react-aria-ColorThumb",
|
|
928
|
+
defaultStyle: {
|
|
929
|
+
...thumbProps.style,
|
|
930
|
+
backgroundColor: state.getDisplayColor().toString()
|
|
931
|
+
},
|
|
932
|
+
values: {
|
|
933
|
+
color: state.getDisplayColor(),
|
|
934
|
+
isHovered,
|
|
935
|
+
isDragging: state.isDragging,
|
|
936
|
+
isFocused,
|
|
937
|
+
isFocusVisible,
|
|
938
|
+
isDisabled
|
|
939
|
+
}
|
|
940
|
+
});
|
|
941
|
+
let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, { global: true });
|
|
942
|
+
delete DOMProps.id;
|
|
943
|
+
return React.createElement($64fa3d84918910a7$export$df3a06d6289f983e.div, {
|
|
944
|
+
...$3ef42575df84b30b$export$9d1611c77c2fe928(thumbProps, hoverProps, DOMProps),
|
|
945
|
+
...renderProps,
|
|
946
|
+
ref,
|
|
947
|
+
"data-hovered": isHovered || void 0,
|
|
948
|
+
"data-dragging": state.isDragging || void 0,
|
|
949
|
+
"data-focused": isFocused || void 0,
|
|
950
|
+
"data-focus-visible": isFocusVisible || void 0,
|
|
951
|
+
"data-disabled": isDisabled || void 0
|
|
952
|
+
}, React.createElement("input", {
|
|
953
|
+
ref: inputXRef,
|
|
954
|
+
...xInputProps,
|
|
955
|
+
...focusProps
|
|
956
|
+
}), yInputProps && React.createElement("input", {
|
|
957
|
+
ref: inputYRef,
|
|
958
|
+
...yInputProps,
|
|
959
|
+
...focusProps
|
|
960
|
+
}), renderProps.children);
|
|
961
|
+
});
|
|
962
|
+
//#endregion
|
|
963
|
+
//#region node_modules/react-aria-components/dist/ColorArea.mjs
|
|
964
|
+
var $0de070065d44825d$export$6b32221de49982e = createContext(null);
|
|
965
|
+
var $0de070065d44825d$export$b2103f68a961418e = forwardRef(function ColorArea(props, ref) {
|
|
966
|
+
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $4e85f108e88277b8$export$ebe63fadcdce34ed);
|
|
967
|
+
let inputXRef = useRef(null);
|
|
968
|
+
let inputYRef = useRef(null);
|
|
969
|
+
let state = $6e14a98a7f67141d$export$6df7f0e2cabc7eef(props);
|
|
970
|
+
let { colorAreaProps, xInputProps, yInputProps, thumbProps } = $60bd7d6e45dcddfa$export$2f92a7a615a014f6({
|
|
971
|
+
...props,
|
|
972
|
+
inputXRef,
|
|
973
|
+
inputYRef,
|
|
974
|
+
containerRef: ref
|
|
975
|
+
}, state);
|
|
976
|
+
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
977
|
+
...props,
|
|
978
|
+
defaultClassName: "react-aria-ColorArea",
|
|
979
|
+
defaultStyle: colorAreaProps.style,
|
|
980
|
+
values: {
|
|
981
|
+
state,
|
|
982
|
+
isDisabled: props.isDisabled || false
|
|
983
|
+
}
|
|
984
|
+
});
|
|
985
|
+
let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, { global: true });
|
|
986
|
+
delete DOMProps.id;
|
|
987
|
+
return React.createElement($64fa3d84918910a7$export$df3a06d6289f983e.div, {
|
|
988
|
+
ref,
|
|
989
|
+
...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, colorAreaProps, renderProps),
|
|
990
|
+
slot: props.slot || void 0,
|
|
991
|
+
"data-disabled": props.isDisabled || void 0
|
|
992
|
+
}, React.createElement($64fa3d84918910a7$export$2881499e37b75b9a, { values: [[$0de070065d44825d$export$6b32221de49982e, state], [$e2b71ec1d6016406$export$c80c0ea2ca5cb846, {
|
|
993
|
+
state,
|
|
994
|
+
thumbProps,
|
|
995
|
+
inputXRef,
|
|
996
|
+
xInputProps,
|
|
997
|
+
inputYRef,
|
|
998
|
+
yInputProps,
|
|
999
|
+
isDisabled: props.isDisabled
|
|
1000
|
+
}]] }, renderProps.children));
|
|
1001
|
+
});
|
|
1002
|
+
//#endregion
|
|
1003
|
+
//#region node_modules/react-aria-components/dist/ColorField.mjs
|
|
1004
|
+
var $3ada01a82feafb94$export$96b6d32b05a1a8ed = createContext(null);
|
|
1005
|
+
var $3ada01a82feafb94$export$b865d4358897bb17 = forwardRef(function ColorField(props, ref) {
|
|
1006
|
+
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $4e85f108e88277b8$export$44644b8a16031b5b);
|
|
1007
|
+
if (props.channel) return React.createElement($3ada01a82feafb94$var$ColorChannelField, {
|
|
1008
|
+
...props,
|
|
1009
|
+
channel: props.channel,
|
|
1010
|
+
forwardedRef: ref
|
|
1011
|
+
});
|
|
1012
|
+
else return React.createElement($3ada01a82feafb94$var$HexColorField, {
|
|
1013
|
+
...props,
|
|
1014
|
+
forwardedRef: ref
|
|
1015
|
+
});
|
|
1016
|
+
});
|
|
1017
|
+
function $3ada01a82feafb94$var$ColorChannelField(props) {
|
|
1018
|
+
let { locale } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
1019
|
+
let state = $31a863bb88e75dd6$export$b9fc0d69c9190c4a({
|
|
1020
|
+
...props,
|
|
1021
|
+
locale
|
|
1022
|
+
});
|
|
1023
|
+
let inputRef = useRef(null);
|
|
1024
|
+
let [labelRef, label] = $64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!props["aria-label"] && !props["aria-labelledby"]);
|
|
1025
|
+
var _props_validationBehavior;
|
|
1026
|
+
let { labelProps, inputProps, descriptionProps, errorMessageProps, ...validation } = $5e632d1ff0188f00$export$e55dd820142d3131({
|
|
1027
|
+
...$64fa3d84918910a7$export$ef03459518577ad4(props),
|
|
1028
|
+
label,
|
|
1029
|
+
validationBehavior: (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== void 0 ? _props_validationBehavior : "native"
|
|
1030
|
+
}, state, inputRef);
|
|
1031
|
+
return React.createElement(React.Fragment, null, $3ada01a82feafb94$var$useChildren(props, state, props.forwardedRef, inputProps, inputRef, labelProps, labelRef, descriptionProps, errorMessageProps, validation), props.name && React.createElement("input", {
|
|
1032
|
+
type: "hidden",
|
|
1033
|
+
name: props.name,
|
|
1034
|
+
form: props.form,
|
|
1035
|
+
value: isNaN(state.numberValue) ? "" : state.numberValue
|
|
1036
|
+
}));
|
|
1037
|
+
}
|
|
1038
|
+
function $3ada01a82feafb94$var$HexColorField(props) {
|
|
1039
|
+
var _props_validationBehavior;
|
|
1040
|
+
let state = $b335ada08155d9c0$export$d52a01683abdfcd6({
|
|
1041
|
+
...props,
|
|
1042
|
+
validationBehavior: (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== void 0 ? _props_validationBehavior : "native"
|
|
1043
|
+
});
|
|
1044
|
+
let inputRef = useRef(null);
|
|
1045
|
+
let [labelRef, label] = $64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!props["aria-label"] && !props["aria-labelledby"]);
|
|
1046
|
+
var _props_validationBehavior1;
|
|
1047
|
+
let { labelProps, inputProps, descriptionProps, errorMessageProps, ...validation } = $f6896b05b2ecad12$export$77e32ca575a28fdf({
|
|
1048
|
+
...$64fa3d84918910a7$export$ef03459518577ad4(props),
|
|
1049
|
+
label,
|
|
1050
|
+
validationBehavior: (_props_validationBehavior1 = props.validationBehavior) !== null && _props_validationBehavior1 !== void 0 ? _props_validationBehavior1 : "native"
|
|
1051
|
+
}, state, inputRef);
|
|
1052
|
+
return $3ada01a82feafb94$var$useChildren(props, state, props.forwardedRef, inputProps, inputRef, labelProps, labelRef, descriptionProps, errorMessageProps, validation);
|
|
1053
|
+
}
|
|
1054
|
+
function $3ada01a82feafb94$var$useChildren(props, state, ref, inputProps, inputRef, labelProps, labelRef, descriptionProps, errorMessageProps, validation) {
|
|
1055
|
+
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
1056
|
+
...props,
|
|
1057
|
+
values: {
|
|
1058
|
+
state,
|
|
1059
|
+
channel: props.channel || "hex",
|
|
1060
|
+
isDisabled: props.isDisabled || false,
|
|
1061
|
+
isInvalid: validation.isInvalid || false,
|
|
1062
|
+
isReadOnly: props.isReadOnly || false,
|
|
1063
|
+
isRequired: props.isRequired || false
|
|
1064
|
+
},
|
|
1065
|
+
defaultClassName: "react-aria-ColorField"
|
|
1066
|
+
});
|
|
1067
|
+
let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, { global: true });
|
|
1068
|
+
delete DOMProps.id;
|
|
1069
|
+
return React.createElement($64fa3d84918910a7$export$2881499e37b75b9a, { values: [
|
|
1070
|
+
[$3ada01a82feafb94$export$96b6d32b05a1a8ed, state],
|
|
1071
|
+
[$3985021b0ad6602f$export$37fb8590cf2c088c, {
|
|
1072
|
+
...inputProps,
|
|
1073
|
+
ref: inputRef
|
|
1074
|
+
}],
|
|
1075
|
+
[$01b77f81d0f07f68$export$75b6ee27786ba447, {
|
|
1076
|
+
...labelProps,
|
|
1077
|
+
ref: labelRef
|
|
1078
|
+
}],
|
|
1079
|
+
[$a049562f99e7db0e$export$f9c6924e160136d1, {
|
|
1080
|
+
role: "presentation",
|
|
1081
|
+
isInvalid: validation.isInvalid,
|
|
1082
|
+
isDisabled: props.isDisabled || false
|
|
1083
|
+
}],
|
|
1084
|
+
[$514c0188e459b4c0$export$9afb8bc826b033ea, { slots: {
|
|
1085
|
+
description: descriptionProps,
|
|
1086
|
+
errorMessage: errorMessageProps
|
|
1087
|
+
} }],
|
|
1088
|
+
[$ee014567cb39d3f0$export$ff05c3ac10437e03, validation]
|
|
1089
|
+
] }, React.createElement($64fa3d84918910a7$export$df3a06d6289f983e.div, {
|
|
1090
|
+
...DOMProps,
|
|
1091
|
+
...renderProps,
|
|
1092
|
+
ref,
|
|
1093
|
+
slot: props.slot || void 0,
|
|
1094
|
+
"data-channel": props.channel || "hex",
|
|
1095
|
+
"data-disabled": props.isDisabled || void 0,
|
|
1096
|
+
"data-invalid": validation.isInvalid || void 0,
|
|
1097
|
+
"data-readonly": props.isReadOnly || void 0,
|
|
1098
|
+
"data-required": props.isRequired || void 0
|
|
1099
|
+
}));
|
|
1100
|
+
}
|
|
1101
|
+
//#endregion
|
|
1102
|
+
//#region node_modules/react-aria-components/dist/ColorSlider.mjs
|
|
1103
|
+
var $1cca5300a3c2e7f9$export$c7fad7ea00194428 = createContext(null);
|
|
1104
|
+
var $1cca5300a3c2e7f9$export$44fd664bcca5b6fb = forwardRef(function ColorSlider(props, ref) {
|
|
1105
|
+
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $4e85f108e88277b8$export$717b2c0a523a0b53);
|
|
1106
|
+
let { locale } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
1107
|
+
let state = $25a25ac0d1624665$export$57bc203e1c9c6d44({
|
|
1108
|
+
...props,
|
|
1109
|
+
locale
|
|
1110
|
+
});
|
|
1111
|
+
let trackRef = React.useRef(null);
|
|
1112
|
+
let inputRef = React.useRef(null);
|
|
1113
|
+
let [labelRef, label] = $64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!props["aria-label"] && !props["aria-labelledby"]);
|
|
1114
|
+
let { trackProps, thumbProps, inputProps, labelProps, outputProps } = $40af666d6c251e36$export$106b7a4e66508f66({
|
|
1115
|
+
...props,
|
|
1116
|
+
label,
|
|
1117
|
+
trackRef,
|
|
1118
|
+
inputRef
|
|
1119
|
+
}, state);
|
|
1120
|
+
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
1121
|
+
...props,
|
|
1122
|
+
values: {
|
|
1123
|
+
orientation: state.orientation,
|
|
1124
|
+
isDisabled: state.isDisabled,
|
|
1125
|
+
state
|
|
1126
|
+
},
|
|
1127
|
+
defaultClassName: "react-aria-ColorSlider"
|
|
1128
|
+
});
|
|
1129
|
+
let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, { global: true });
|
|
1130
|
+
delete DOMProps.id;
|
|
1131
|
+
return React.createElement($64fa3d84918910a7$export$2881499e37b75b9a, { values: [
|
|
1132
|
+
[$1cca5300a3c2e7f9$export$c7fad7ea00194428, state],
|
|
1133
|
+
[$6f909507e6374d18$export$1e7083018727fa60, state],
|
|
1134
|
+
[$6f909507e6374d18$export$f1fce0420cc6d8ee, {
|
|
1135
|
+
...trackProps,
|
|
1136
|
+
ref: trackRef
|
|
1137
|
+
}],
|
|
1138
|
+
[$6f909507e6374d18$export$6189c2744041d8f8, outputProps],
|
|
1139
|
+
[$01b77f81d0f07f68$export$75b6ee27786ba447, {
|
|
1140
|
+
...labelProps,
|
|
1141
|
+
ref: labelRef,
|
|
1142
|
+
children: state.value.getChannelName(props.channel, locale)
|
|
1143
|
+
}],
|
|
1144
|
+
[$e2b71ec1d6016406$export$c80c0ea2ca5cb846, {
|
|
1145
|
+
state,
|
|
1146
|
+
thumbProps,
|
|
1147
|
+
inputXRef: inputRef,
|
|
1148
|
+
xInputProps: inputProps,
|
|
1149
|
+
isDisabled: props.isDisabled
|
|
1150
|
+
}]
|
|
1151
|
+
] }, React.createElement($64fa3d84918910a7$export$df3a06d6289f983e.div, {
|
|
1152
|
+
...DOMProps,
|
|
1153
|
+
...renderProps,
|
|
1154
|
+
ref,
|
|
1155
|
+
slot: props.slot || void 0,
|
|
1156
|
+
"data-orientation": state.orientation,
|
|
1157
|
+
"data-disabled": state.isDisabled || void 0
|
|
1158
|
+
}));
|
|
1159
|
+
});
|
|
1160
|
+
//#endregion
|
|
1161
|
+
//#region lib/components/color-pickers/solid-color-picker.jsx
|
|
1162
|
+
/**
|
|
1163
|
+
* A solid color picker.
|
|
1164
|
+
*
|
|
1165
|
+
* @component
|
|
1166
|
+
* @param {Object} props - Component props.
|
|
1167
|
+
* @param {import('react-aria-components').Color} props.value - The color value. Hex format is preferred, but HSL, HSB, and RGB are also supported.
|
|
1168
|
+
* @param {Function} props.onChange - The change handler.
|
|
1169
|
+
* @param {boolean} [props.disabled] - Whether the color picker is disabled.
|
|
1170
|
+
* @param {Function} [props.onChangeEnd] - The change end handler.
|
|
1171
|
+
* @param {boolean} [props.allowTransparency=false] - Whether the color picker allows transparency.
|
|
1172
|
+
* @param {OutputColorFormat} [props.outputFormat] - The output format. Default is 'hex' (or 'hexa' if `allowTransparency` is true).
|
|
1173
|
+
* @param {boolean} [props.noAdvancedOptions] - If `true`, the advanced options are hidden.
|
|
1174
|
+
* @param {boolean} [props.hidden] - If `true`, the component is not rendered.
|
|
1175
|
+
*
|
|
1176
|
+
* @typedef {'hex' | 'hexa' | 'rgb' | 'rgba' | 'hsl' | 'hsla' | 'hsb' | 'hsba'} OutputColorFormat
|
|
1177
|
+
*
|
|
1178
|
+
* @returns {JSX.Element} The ButtonGroup component.
|
|
1179
|
+
*
|
|
1180
|
+
* @example
|
|
1181
|
+
* <SolidColorPicker
|
|
1182
|
+
* value={colorValue}
|
|
1183
|
+
* onChange={(color) => setColorValue(color)}
|
|
1184
|
+
* />
|
|
1185
|
+
*/
|
|
1186
|
+
var SolidColorPicker = (props) => {
|
|
1187
|
+
const { value: rawValue, onChange, disabled, onChangeEnd, allowTransparency = false, outputFormat, hidden, noAdvancedOptions } = props;
|
|
1188
|
+
const value = rawValue?.replace("transparent", "rgba(0, 0, 0, 0)");
|
|
1189
|
+
const defaultColor = $799cddbef784668f$export$6e865ea70d7724f("#00000000").toFormat(allowTransparency ? "hsla" : "hsl");
|
|
1190
|
+
const [color, setColor] = useState((value && value?.length > 1 ? $799cddbef784668f$export$6e865ea70d7724f(value) : defaultColor).toFormat(allowTransparency ? "hsla" : "hsl"));
|
|
1191
|
+
if (hidden) return null;
|
|
1192
|
+
let handleChangeEnd;
|
|
1193
|
+
if (onChangeEnd) handleChangeEnd = (color) => {
|
|
1194
|
+
setColor(color ?? defaultColor);
|
|
1195
|
+
onChange(color?.toString(outputFormat ?? (allowTransparency ? "hexa" : "hex")));
|
|
1196
|
+
};
|
|
1197
|
+
let handleChange = (color) => {
|
|
1198
|
+
setColor(color ?? defaultColor);
|
|
1199
|
+
onChange(color?.toString(outputFormat ?? (allowTransparency ? "hexa" : "hex")));
|
|
1200
|
+
};
|
|
1201
|
+
const valueInputClassName = clsx("es:leading-none", "es:border-none!", "es:max-w-14", "es:min-h-9", "es:px-3", "es:font-mono es:text-12", "es:rounded-lg es:focus:rounded-xl es:aria-[controls]:rounded-xl", "es:transition-plus", "es:any-focus:outline-hidden", "es:inset-ring!", "es:focus-visible:ring-2 es:focus-visible:ring-accent-500/30", "es:focus-visible:text-accent-950 es:focus-visible:inset-ring-accent-500", "es:focus:placeholder:text-surface-400", "es:inset-ring-secondary-100", "es:focus:text-accent-950", "es:text-secondary-900", "es:placeholder:text-secondary-500/80", "es:bg-secondary-100 es:focus:bg-surface-50", "es:inset-ring-secondary-200/15 es:hover:inset-ring-secondary-200/65 es:focus:inset-ring-surface-200", "es:selection:bg-surface-100 es:selection:text-accent-800");
|
|
1202
|
+
return jsxs("div", {
|
|
1203
|
+
className: "es:flex es:flex-col es:items-center es:gap-2",
|
|
1204
|
+
children: [
|
|
1205
|
+
jsx($0de070065d44825d$export$b2103f68a961418e, {
|
|
1206
|
+
value: color,
|
|
1207
|
+
xChannel: "saturation",
|
|
1208
|
+
yChannel: "lightness",
|
|
1209
|
+
className: clsx("es:size-48 es:rounded-xl es:border es:border-secondary-300 es:shadow-sm es:transition", "es:[&:has(>_[data-focus-visible=\"true\"])]:ring-2 es:[&:has(>_[data-focus-visible=\"true\"])]:ring-accent-500/50", "es:disabled:bg-linear-to-r! es:disabled:from-white es:disabled:to-secondary-100"),
|
|
1210
|
+
onChange: handleChange,
|
|
1211
|
+
onChangeEnd: handleChangeEnd,
|
|
1212
|
+
isDisabled: disabled,
|
|
1213
|
+
children: jsx($e2b71ec1d6016406$export$a3cc47cee1c1ccc, { className: "es:size-5 es:rounded-full es:transition es:dragging:scale-110! es:border es:border-white es:shadow-[0_0_0_1px_black] es:disabled:invisible" })
|
|
1214
|
+
}),
|
|
1215
|
+
jsx($1cca5300a3c2e7f9$export$44fd664bcca5b6fb, {
|
|
1216
|
+
channel: "hue",
|
|
1217
|
+
value: color,
|
|
1218
|
+
onChange: handleChange,
|
|
1219
|
+
isDisabled: disabled,
|
|
1220
|
+
children: jsx($6f909507e6374d18$export$105594979f116971, {
|
|
1221
|
+
className: clsx("es:h-7 es:w-48 es:rounded-10 es:border es:border-secondary-300 es:shadow-sm", "es:[&:has(>_[data-focus-visible=\"true\"])]:ring-2 es:[&:has(>_[data-focus-visible=\"true\"])]:ring-accent-500/50", "es:disabled:bg-linear-to-r! es:disabled:from-white es:disabled:to-secondary-100"),
|
|
1222
|
+
children: jsx($e2b71ec1d6016406$export$a3cc47cee1c1ccc, { className: "es:top-3.25 es:size-5 es:rounded-full es:border es:border-white es:shadow-[0_0_0_1px_black] es:transition es:dragging:scale-110! es:disabled:invisible" })
|
|
1223
|
+
})
|
|
1224
|
+
}),
|
|
1225
|
+
allowTransparency && jsx($1cca5300a3c2e7f9$export$44fd664bcca5b6fb, {
|
|
1226
|
+
channel: "alpha",
|
|
1227
|
+
value: color,
|
|
1228
|
+
onChange: handleChange,
|
|
1229
|
+
isDisabled: disabled,
|
|
1230
|
+
children: jsx($6f909507e6374d18$export$105594979f116971, {
|
|
1231
|
+
className: clsx("es:h-7 es:w-48 es:rounded-10 es:border es:border-secondary-300 es:shadow-sm", "es:[&:has(>_[data-focus-visible=\"true\"])]:ring-2 es:[&:has(>_[data-focus-visible=\"true\"])]:ring-accent-500/50", "es:disabled:bg-linear-to-r! es:disabled:from-white es:disabled:to-secondary-100"),
|
|
1232
|
+
style: () => {
|
|
1233
|
+
return { background: `linear-gradient(to right, ${color.clone().withChannelValue("alpha", 0).toString("hsla")}, ${color.clone().withChannelValue("alpha", 1).toString("hsla")}), repeating-conic-gradient(rgb(204, 204, 204) 0%, rgb(204, 204, 204) 25%, white 0%, white 50%) 50% center / 14px 14px` };
|
|
1234
|
+
},
|
|
1235
|
+
children: jsx($e2b71ec1d6016406$export$a3cc47cee1c1ccc, { className: "es:top-3.25 es:size-5 es:rounded-full es:border es:border-white es:shadow-[0_0_0_1px_black] es:transition es:disabled:invisible" })
|
|
1236
|
+
})
|
|
1237
|
+
}),
|
|
1238
|
+
jsxs("div", {
|
|
1239
|
+
className: "es:flex es:items-center es:justify-center es:gap-0.75",
|
|
1240
|
+
children: [jsx($3ada01a82feafb94$export$b865d4358897bb17, {
|
|
1241
|
+
value: color,
|
|
1242
|
+
onChange: (color) => handleChange(color?.toFormat("hsl")),
|
|
1243
|
+
"aria-label": __("Hex color value", "eightshift-ui-components"),
|
|
1244
|
+
isDisabled: disabled,
|
|
1245
|
+
children: jsx($3985021b0ad6602f$export$f5b8910cec6cf069, { className: clsx("es:leading-none", "es:w-20", "es:transition-plus", "es:any-focus:outline-hidden", "es:inset-ring", "es:focus-visible:ring-2 es:focus-visible:ring-accent-500/30", "es:focus-visible:text-accent-950 es:focus-visible:inset-ring-accent-500", "es:focus:placeholder:text-surface-400", "es:h-8", "es:px-3", "es:font-mono es:text-12", "es:bg-white", "es:bg-linear-to-b es:from-secondary-100/0 es:to-secondary-100/50 es:from-25%", "es:hover:from-surface-100/0 es:hover:to-surface-100/50", "es:inset-ring-secondary-400/50 es:hover:inset-ring-surface-300 es:focus:inset-ring-surface-400", "es:inset-shadow-sm es:inset-shadow-secondary-100/50", "es:hover:placeholder:text-surface-400", "es:placeholder:text-secondary-400", "es:shadow-xs es:shadow-black/5", "es:rounded-lg! es:focus:rounded-xl!", "es:border-none!") })
|
|
1246
|
+
}), jsxs(TriggeredPopover, {
|
|
1247
|
+
triggerButtonIcon: dropdownCaretAlt,
|
|
1248
|
+
className: "es:w-52 es:p-3",
|
|
1249
|
+
triggerButtonProps: {
|
|
1250
|
+
disabled,
|
|
1251
|
+
tooltip: __("Advanced color options", "eightshift-ui-components"),
|
|
1252
|
+
className: "es:w-6 es:h-8 es:icon:size-4.5!"
|
|
1253
|
+
},
|
|
1254
|
+
hidden: noAdvancedOptions,
|
|
1255
|
+
children: [
|
|
1256
|
+
jsxs(BaseControl, {
|
|
1257
|
+
label: "RGB",
|
|
1258
|
+
children: [
|
|
1259
|
+
jsx($3ada01a82feafb94$export$b865d4358897bb17, {
|
|
1260
|
+
value: color?.toFormat(allowTransparency ? "rgba" : "rgb"),
|
|
1261
|
+
onChange: (color) => handleChange(color?.toFormat("hsl")),
|
|
1262
|
+
channel: "red",
|
|
1263
|
+
children: jsx(BaseControl, {
|
|
1264
|
+
icon: jsx(ColorSwatch, {
|
|
1265
|
+
color: "#ff0000",
|
|
1266
|
+
className: "es:size-5!",
|
|
1267
|
+
flat: true
|
|
1268
|
+
}),
|
|
1269
|
+
label: __("Red", "eightshift-ui-components"),
|
|
1270
|
+
inline: true,
|
|
1271
|
+
children: jsx($3985021b0ad6602f$export$f5b8910cec6cf069, { className: valueInputClassName })
|
|
1272
|
+
})
|
|
1273
|
+
}),
|
|
1274
|
+
jsx($3ada01a82feafb94$export$b865d4358897bb17, {
|
|
1275
|
+
value: color?.toFormat(allowTransparency ? "rgba" : "rgb"),
|
|
1276
|
+
onChange: (color) => handleChange(color?.toFormat("hsl")),
|
|
1277
|
+
channel: "green",
|
|
1278
|
+
children: jsx(BaseControl, {
|
|
1279
|
+
icon: jsx(ColorSwatch, {
|
|
1280
|
+
color: "#00ff00",
|
|
1281
|
+
className: "es:size-5!",
|
|
1282
|
+
flat: true
|
|
1283
|
+
}),
|
|
1284
|
+
label: __("Green", "eightshift-ui-components"),
|
|
1285
|
+
inline: true,
|
|
1286
|
+
children: jsx($3985021b0ad6602f$export$f5b8910cec6cf069, { className: valueInputClassName })
|
|
1287
|
+
})
|
|
1288
|
+
}),
|
|
1289
|
+
jsx($3ada01a82feafb94$export$b865d4358897bb17, {
|
|
1290
|
+
value: color?.toFormat(allowTransparency ? "rgba" : "rgb"),
|
|
1291
|
+
onChange: (color) => handleChange(color?.toFormat("hsl")),
|
|
1292
|
+
channel: "blue",
|
|
1293
|
+
children: jsx(BaseControl, {
|
|
1294
|
+
icon: jsx(ColorSwatch, {
|
|
1295
|
+
color: "#0000ff",
|
|
1296
|
+
className: "es:size-5!",
|
|
1297
|
+
flat: true
|
|
1298
|
+
}),
|
|
1299
|
+
label: __("Blue", "eightshift-ui-components"),
|
|
1300
|
+
inline: true,
|
|
1301
|
+
children: jsx($3985021b0ad6602f$export$f5b8910cec6cf069, { className: valueInputClassName })
|
|
1302
|
+
})
|
|
1303
|
+
})
|
|
1304
|
+
]
|
|
1305
|
+
}),
|
|
1306
|
+
jsxs(BaseControl, {
|
|
1307
|
+
label: "HSL",
|
|
1308
|
+
className: "es:mt-3",
|
|
1309
|
+
children: [
|
|
1310
|
+
jsx($3ada01a82feafb94$export$b865d4358897bb17, {
|
|
1311
|
+
value: color?.toFormat(allowTransparency ? "hsla" : "hsl"),
|
|
1312
|
+
onChange: (color) => handleChange(color?.toFormat("hsl")),
|
|
1313
|
+
channel: "hue",
|
|
1314
|
+
children: jsx(BaseControl, {
|
|
1315
|
+
icon: jsx(ColorSwatch, {
|
|
1316
|
+
gradient: "linear-gradient(to right, red, yellow, lime, cyan, blue, magenta)",
|
|
1317
|
+
className: "es:size-5!",
|
|
1318
|
+
flat: true
|
|
1319
|
+
}),
|
|
1320
|
+
label: __("Hue", "eightshift-ui-components"),
|
|
1321
|
+
inline: true,
|
|
1322
|
+
children: jsx($3985021b0ad6602f$export$f5b8910cec6cf069, { className: valueInputClassName })
|
|
1323
|
+
})
|
|
1324
|
+
}),
|
|
1325
|
+
jsx($3ada01a82feafb94$export$b865d4358897bb17, {
|
|
1326
|
+
value: color?.toFormat(allowTransparency ? "hsla" : "hsl"),
|
|
1327
|
+
onChange: (color) => handleChange(color?.toFormat("hsl")),
|
|
1328
|
+
channel: "saturation",
|
|
1329
|
+
children: jsx(BaseControl, {
|
|
1330
|
+
icon: jsx(ColorSwatch, {
|
|
1331
|
+
gradient: "linear-gradient(to right, var(--es-color-surface-400), var(--es-color-accent-500))",
|
|
1332
|
+
className: "es:size-5!",
|
|
1333
|
+
flat: true
|
|
1334
|
+
}),
|
|
1335
|
+
label: __("Saturation", "eightshift-ui-components"),
|
|
1336
|
+
inline: true,
|
|
1337
|
+
children: jsx($3985021b0ad6602f$export$f5b8910cec6cf069, { className: valueInputClassName })
|
|
1338
|
+
})
|
|
1339
|
+
}),
|
|
1340
|
+
jsx($3ada01a82feafb94$export$b865d4358897bb17, {
|
|
1341
|
+
value: color?.toFormat(allowTransparency ? "hsla" : "hsl"),
|
|
1342
|
+
onChange: (color) => handleChange(color?.toFormat("hsl")),
|
|
1343
|
+
channel: "lightness",
|
|
1344
|
+
children: jsx(BaseControl, {
|
|
1345
|
+
icon: jsx(ColorSwatch, {
|
|
1346
|
+
gradient: "linear-gradient(to right, var(--es-color-secondary-50), var(--es-color-secondary-100), var(--es-color-secondary-200), var(--es-color-secondary-300), var(--es-color-secondary-400), var(--es-color-secondary-500), var(--es-color-secondary-600), var(--es-color-secondary-700), var(--es-color-secondary-800), var(--es-color-secondary-900))",
|
|
1347
|
+
className: "es:size-5!",
|
|
1348
|
+
flat: true
|
|
1349
|
+
}),
|
|
1350
|
+
label: __("Lightness", "eightshift-ui-components"),
|
|
1351
|
+
inline: true,
|
|
1352
|
+
children: jsx($3985021b0ad6602f$export$f5b8910cec6cf069, { className: valueInputClassName })
|
|
1353
|
+
})
|
|
1354
|
+
})
|
|
1355
|
+
]
|
|
1356
|
+
}),
|
|
1357
|
+
jsxs(BaseControl, {
|
|
1358
|
+
label: "HSB",
|
|
1359
|
+
className: "es:mt-3",
|
|
1360
|
+
children: [
|
|
1361
|
+
jsx($3ada01a82feafb94$export$b865d4358897bb17, {
|
|
1362
|
+
value: color?.toFormat(allowTransparency ? "hsba" : "hsb"),
|
|
1363
|
+
onChange: (color) => handleChange(color?.toFormat("hsl")),
|
|
1364
|
+
channel: "hue",
|
|
1365
|
+
children: jsx(BaseControl, {
|
|
1366
|
+
icon: jsx(ColorSwatch, {
|
|
1367
|
+
gradient: "linear-gradient(to right, red, yellow, lime, cyan, blue, magenta)",
|
|
1368
|
+
className: "es:size-5!",
|
|
1369
|
+
flat: true
|
|
1370
|
+
}),
|
|
1371
|
+
label: __("Hue", "eightshift-ui-components"),
|
|
1372
|
+
inline: true,
|
|
1373
|
+
children: jsx($3985021b0ad6602f$export$f5b8910cec6cf069, { className: valueInputClassName })
|
|
1374
|
+
})
|
|
1375
|
+
}),
|
|
1376
|
+
jsx($3ada01a82feafb94$export$b865d4358897bb17, {
|
|
1377
|
+
value: color?.toFormat(allowTransparency ? "hsba" : "hsb"),
|
|
1378
|
+
onChange: (color) => handleChange(color?.toFormat("hsl")),
|
|
1379
|
+
channel: "saturation",
|
|
1380
|
+
children: jsx(BaseControl, {
|
|
1381
|
+
icon: jsx(ColorSwatch, {
|
|
1382
|
+
gradient: "linear-gradient(to right, var(--es-color-surface-400), var(--es-color-accent-500))",
|
|
1383
|
+
className: "es:size-5!",
|
|
1384
|
+
flat: true
|
|
1385
|
+
}),
|
|
1386
|
+
label: __("Saturation", "eightshift-ui-components"),
|
|
1387
|
+
inline: true,
|
|
1388
|
+
children: jsx($3985021b0ad6602f$export$f5b8910cec6cf069, { className: valueInputClassName })
|
|
1389
|
+
})
|
|
1390
|
+
}),
|
|
1391
|
+
jsx($3ada01a82feafb94$export$b865d4358897bb17, {
|
|
1392
|
+
value: color?.toFormat(allowTransparency ? "hsba" : "hsb"),
|
|
1393
|
+
onChange: (color) => handleChange(color?.toFormat("hsl")),
|
|
1394
|
+
channel: "brightness",
|
|
1395
|
+
children: jsx(BaseControl, {
|
|
1396
|
+
icon: jsx(ColorSwatch, {
|
|
1397
|
+
gradient: "linear-gradient(to right, var(--es-color-secondary-50), var(--es-color-secondary-100), var(--es-color-secondary-200), var(--es-color-secondary-300), var(--es-color-secondary-400), var(--es-color-secondary-500), var(--es-color-secondary-600), var(--es-color-secondary-700), var(--es-color-secondary-800), var(--es-color-secondary-900))",
|
|
1398
|
+
className: "es:size-5!",
|
|
1399
|
+
flat: true
|
|
1400
|
+
}),
|
|
1401
|
+
label: __("Brightness", "eightshift-ui-components"),
|
|
1402
|
+
inline: true,
|
|
1403
|
+
children: jsx($3985021b0ad6602f$export$f5b8910cec6cf069, { className: valueInputClassName })
|
|
1404
|
+
})
|
|
1405
|
+
})
|
|
1406
|
+
]
|
|
1407
|
+
})
|
|
1408
|
+
]
|
|
1409
|
+
})]
|
|
1410
|
+
})
|
|
1411
|
+
]
|
|
1412
|
+
});
|
|
1413
|
+
};
|
|
1414
|
+
//#endregion
|
|
1415
|
+
export { SolidColorPicker as t };
|