@eightshift/ui-components 6.3.0 → 7.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Button-h6xF_WrP.js +225 -0
- package/dist/Dialog-i5VLQw1o.js +2488 -0
- package/dist/Disclosure-NYWFw9RJ.js +188 -0
- package/dist/FieldError-BWDbP5Db.js +213 -0
- package/dist/FocusScope-CgwbGOBB.js +746 -0
- package/dist/Form-DTMkbrQY.js +5 -0
- package/dist/Heading-Hol-wS_B.js +16 -0
- package/dist/Hidden-8TB37dpK.js +51 -0
- package/dist/Input-BURqyJXW.js +161 -0
- package/dist/Label-DFXXxMKY.js +17 -0
- package/dist/List-CMK5qsNF.js +506 -0
- package/dist/ListBox-B21SgugS.js +601 -0
- package/dist/NumberFormatter-m5VW6MTK.js +122 -0
- package/dist/OverlayArrow-BoloUPQM.js +573 -0
- package/dist/PortalProvider-DinZZCKX.js +14 -0
- package/dist/RSPContexts-C_z0bI8W.js +12 -0
- package/dist/RadioGroup-BwlGtCja.js +329 -0
- package/dist/SearchField-DR_I4_yn.js +765 -0
- package/dist/SelectionIndicator-31L6EI9F.js +13 -0
- package/dist/SelectionManager-B8lLv6Ue.js +2176 -0
- package/dist/Slider-DW1RuMVp.js +827 -0
- package/dist/Text-O6VBBDlP.js +16 -0
- package/dist/VisuallyHidden-CfsnJHZb.js +43 -0
- package/dist/animation-Bd2peown.js +62 -0
- package/dist/assets/style-admin.css +252 -255
- package/dist/assets/style-editor.css +252 -255
- package/dist/assets/style.css +252 -255
- package/dist/assets/wp-overrides/allow-full-width-blocks.css +1 -1
- package/dist/assets/wp-overrides/fix-label-text-case.css +1 -1
- package/dist/assets/wp-overrides/increase-sidebar-width.css +1 -1
- package/dist/assets/wp-overrides/make-block-messages-nicer.css +1 -1
- package/dist/assets/wp-overrides/replace-fonts.css +1 -1
- package/dist/assets/wp-overrides/restyle-tooltips.css +3 -3
- package/dist/assets/wp-overrides/round-corners.css +1 -1
- package/dist/assets/wp-overrides/unify-button-sizes.css +1 -1
- package/dist/build-module-sxK3nxOK.js +855 -0
- package/dist/button-COTeluL8.js +524 -0
- package/dist/checkbox-D0AWkLhp.js +338 -0
- package/dist/clsx-BUU5J41u.js +16 -0
- package/dist/color-swatch-CBYsO_Zs.js +2572 -0
- package/dist/components/animated-visibility/animated-visibility.js +87 -111
- package/dist/components/base-control/base-control.js +73 -86
- package/dist/components/base-control/container.js +199 -227
- package/dist/components/breakpoint-preview/breakpoint-preview.js +162 -158
- package/dist/components/button/button.js +3 -580
- package/dist/components/checkbox/checkbox.js +2 -391
- package/dist/components/color-pickers/color-picker.js +172 -276
- package/dist/components/color-pickers/color-swatch.js +3 -7
- package/dist/components/color-pickers/gradient-editor.js +4 -552
- package/dist/components/color-pickers/solid-color-picker.js +3 -1710
- package/dist/components/component-toggle/component-toggle.js +107 -160
- package/dist/components/container-panel/container-panel.js +94 -151
- package/dist/components/draggable/draggable-context.js +4 -4
- package/dist/components/draggable/draggable-handle.js +27 -43
- package/dist/components/draggable/draggable.js +3 -7638
- package/dist/components/draggable-list/draggable-list-context.js +4 -4
- package/dist/components/draggable-list/draggable-list-item.js +63 -80
- package/dist/components/draggable-list/draggable-list.js +115 -142
- package/dist/components/expandable/expandable.js +105 -407
- package/dist/components/index.js +30 -106
- package/dist/components/input-field/input-field.js +2 -326
- package/dist/components/item-collection/item-collection.js +50 -56
- package/dist/components/layout/hstack.js +27 -29
- package/dist/components/layout/vstack.js +27 -29
- package/dist/components/link-input/link-input.js +3 -1943
- package/dist/components/matrix-align/matrix-align.js +127 -161
- package/dist/components/menu/menu.js +253 -356
- package/dist/components/modal/modal.js +3 -399
- package/dist/components/notice/notice.js +99 -139
- package/dist/components/number-picker/number-picker.js +3 -344
- package/dist/components/option-select/option-select.js +226 -404
- package/dist/components/options-panel/options-panel.js +138 -175
- package/dist/components/placeholders/file-picker-shell.js +91 -141
- package/dist/components/placeholders/file-placeholder.js +41 -53
- package/dist/components/placeholders/image-placeholder.js +65 -96
- package/dist/components/placeholders/media-placeholder.js +65 -68
- package/dist/components/popover/popover.js +147 -221
- package/dist/components/portal-provider/portal-provider.js +23 -21
- package/dist/components/radio/radio.js +246 -294
- package/dist/components/repeater/repeater-context.js +4 -4
- package/dist/components/repeater/repeater-item.js +95 -114
- package/dist/components/repeater/repeater.js +221 -278
- package/dist/components/responsive/mini-responsive.js +403 -495
- package/dist/components/responsive/responsive-legacy.js +271 -336
- package/dist/components/responsive/responsive.js +445 -562
- package/dist/components/responsive-preview/responsive-preview.js +94 -117
- package/dist/components/rich-label/rich-label.js +80 -75
- package/dist/components/select/async-multi-select.js +357 -589
- package/dist/components/select/async-select.js +282 -492
- package/dist/components/select/multi-select.js +338 -552
- package/dist/components/select/shared.js +3 -17
- package/dist/components/select/single-select.js +276 -475
- package/dist/components/select/styles.js +84 -0
- package/dist/components/slider/column-config-slider.js +170 -301
- package/dist/components/slider/slider.js +258 -405
- package/dist/components/slider/utils.js +77 -121
- package/dist/components/smart-image/image-analysis-worker.js +128 -0
- package/dist/components/smart-image/smart-image.js +3 -205
- package/dist/components/smart-image/worker-inline.js +4 -4
- package/dist/components/spacer/spacer.js +80 -94
- package/dist/components/tabs/tabs.js +3 -1051
- package/dist/components/toggle/switch.js +2 -295
- package/dist/components/toggle/toggle.js +54 -64
- package/dist/components/toggle-button/toggle-button.js +2 -451
- package/dist/components/tooltip/tooltip.js +2 -535
- package/dist/context-C-XNeJ_l.js +93 -0
- package/dist/debounce-throttle-DXxSAKpq.js +120 -0
- package/dist/dist-DIK9pFxO.js +55 -0
- package/dist/draggable-CYQyD9gG.js +6961 -0
- package/dist/es-dash-HqXWZZ3_.js +303 -0
- package/dist/filterDOMProps-_2_3GD-K.js +69 -0
- package/dist/general-BKOvs-AO.js +4276 -0
- package/dist/gradient-editor-BAd_Gzx4.js +604 -0
- package/dist/icons/block-icon.js +34 -39
- package/dist/icons/generated-icon-loaders.js +759 -0
- package/dist/icons/generic-color-swatch.js +81 -111
- package/dist/icons/icon.js +67 -0
- package/dist/icons/icons.js +218 -3656
- package/dist/icons/index.js +756 -10
- package/dist/icons/internal.js +758 -0
- package/dist/icons/jsx-svg.js +2 -94
- package/dist/icons/spinner.js +16 -18
- package/dist/icons/ui-icons/a11y-warning.js +34 -0
- package/dist/icons/ui-icons/a11y.js +29 -0
- package/dist/icons/ui-icons/accelerometer.js +51 -0
- package/dist/icons/ui-icons/activity-log.js +53 -0
- package/dist/icons/ui-icons/add.js +20 -0
- package/dist/icons/ui-icons/alert.js +31 -0
- package/dist/icons/ui-icons/align-horizontal-vertical-alt.js +37 -0
- package/dist/icons/ui-icons/align-horizontal-vertical-alt2.js +36 -0
- package/dist/icons/ui-icons/align-horizontal-vertical.js +34 -0
- package/dist/icons/ui-icons/alt-text-generic-alt.js +19 -0
- package/dist/icons/ui-icons/alt-text-generic.js +25 -0
- package/dist/icons/ui-icons/alt-text.js +36 -0
- package/dist/icons/ui-icons/anchor-page.js +44 -0
- package/dist/icons/ui-icons/anchor.js +28 -0
- package/dist/icons/ui-icons/angle.js +24 -0
- package/dist/icons/ui-icons/animation-file.js +66 -0
- package/dist/icons/ui-icons/animation-generic.js +36 -0
- package/dist/icons/ui-icons/animation-list-generic.js +41 -0
- package/dist/icons/ui-icons/animation-settings-generic.js +41 -0
- package/dist/icons/ui-icons/animation.js +55 -0
- package/dist/icons/ui-icons/archive-file.js +24 -0
- package/dist/icons/ui-icons/archive.js +39 -0
- package/dist/icons/ui-icons/aria-label.js +42 -0
- package/dist/icons/ui-icons/arrow-down-circle-alt.js +28 -0
- package/dist/icons/ui-icons/arrow-down-circle.js +28 -0
- package/dist/icons/ui-icons/arrow-down-square-alt.js +28 -0
- package/dist/icons/ui-icons/arrow-down-square.js +28 -0
- package/dist/icons/ui-icons/arrow-down.js +20 -0
- package/dist/icons/ui-icons/arrow-left-circle-alt.js +28 -0
- package/dist/icons/ui-icons/arrow-left-circle.js +28 -0
- package/dist/icons/ui-icons/arrow-left-square-alt.js +28 -0
- package/dist/icons/ui-icons/arrow-left-square.js +28 -0
- package/dist/icons/ui-icons/arrow-left.js +20 -0
- package/dist/icons/ui-icons/arrow-right-circle-alt.js +28 -0
- package/dist/icons/ui-icons/arrow-right-circle.js +28 -0
- package/dist/icons/ui-icons/arrow-right-square-alt.js +28 -0
- package/dist/icons/ui-icons/arrow-right-square.js +28 -0
- package/dist/icons/ui-icons/arrow-right.js +20 -0
- package/dist/icons/ui-icons/arrow-up-circle-alt.js +28 -0
- package/dist/icons/ui-icons/arrow-up-circle.js +28 -0
- package/dist/icons/ui-icons/arrow-up-square-alt.js +28 -0
- package/dist/icons/ui-icons/arrow-up-square.js +28 -0
- package/dist/icons/ui-icons/arrow-up.js +20 -0
- package/dist/icons/ui-icons/arrows-down.js +38 -0
- package/dist/icons/ui-icons/arrows-horizontal.js +20 -0
- package/dist/icons/ui-icons/arrows-left-diagonal.js +20 -0
- package/dist/icons/ui-icons/arrows-left.js +38 -0
- package/dist/icons/ui-icons/arrows-right-diagonal.js +20 -0
- package/dist/icons/ui-icons/arrows-right.js +38 -0
- package/dist/icons/ui-icons/arrows-up.js +38 -0
- package/dist/icons/ui-icons/arrows-vertical.js +20 -0
- package/dist/icons/ui-icons/aspect-ratio-auto.js +38 -0
- package/dist/icons/ui-icons/aspect-ratio-nine-sixteen.js +28 -0
- package/dist/icons/ui-icons/aspect-ratio-sixteen-nine.js +28 -0
- package/dist/icons/ui-icons/aspect-ratio-square.js +28 -0
- package/dist/icons/ui-icons/aspect-ratio-three-two.js +28 -0
- package/dist/icons/ui-icons/aspect-ratio-twenty-one-nine.js +28 -0
- package/dist/icons/ui-icons/aspect-ratio.js +27 -0
- package/dist/icons/ui-icons/attachment.js +19 -0
- package/dist/icons/ui-icons/auto-close.js +26 -0
- package/dist/icons/ui-icons/auto-pause-scroll.js +39 -0
- package/dist/icons/ui-icons/auto-pause.js +26 -0
- package/dist/icons/ui-icons/automatic-alt.js +19 -0
- package/dist/icons/ui-icons/automatic.js +20 -0
- package/dist/icons/ui-icons/autoplay-alt.js +34 -0
- package/dist/icons/ui-icons/autoplay-alt2.js +23 -0
- package/dist/icons/ui-icons/autoplay.js +36 -0
- package/dist/icons/ui-icons/award.js +39 -0
- package/dist/icons/ui-icons/background-blur.js +66 -0
- package/dist/icons/ui-icons/background-color-swatch.js +48 -0
- package/dist/icons/ui-icons/background-image.js +41 -0
- package/dist/icons/ui-icons/background-repeat.js +95 -0
- package/dist/icons/ui-icons/background-type-alt.js +38 -0
- package/dist/icons/ui-icons/background-type-alt2.js +27 -0
- package/dist/icons/ui-icons/background-type.js +27 -0
- package/dist/icons/ui-icons/block-parts.js +54 -0
- package/dist/icons/ui-icons/bold.js +21 -0
- package/dist/icons/ui-icons/book.js +40 -0
- package/dist/icons/ui-icons/bookmark.js +18 -0
- package/dist/icons/ui-icons/boolean-exclude.js +24 -0
- package/dist/icons/ui-icons/boolean-intersect.js +31 -0
- package/dist/icons/ui-icons/boolean-subtract.js +27 -0
- package/dist/icons/ui-icons/boolean-union.js +33 -0
- package/dist/icons/ui-icons/border-color.js +79 -0
- package/dist/icons/ui-icons/border.js +60 -0
- package/dist/icons/ui-icons/bot-deny.js +61 -0
- package/dist/icons/ui-icons/bot.js +47 -0
- package/dist/icons/ui-icons/box.js +35 -0
- package/dist/icons/ui-icons/brain.js +20 -0
- package/dist/icons/ui-icons/branch-fork.js +46 -0
- package/dist/icons/ui-icons/branch.js +46 -0
- package/dist/icons/ui-icons/briefcase.js +26 -0
- package/dist/icons/ui-icons/browser.js +60 -0
- package/dist/icons/ui-icons/button-disabled.js +30 -0
- package/dist/icons/ui-icons/button-filled.js +19 -0
- package/dist/icons/ui-icons/button-ghost.js +28 -0
- package/dist/icons/ui-icons/button-outline.js +27 -0
- package/dist/icons/ui-icons/calculator.js +139 -0
- package/dist/icons/ui-icons/calendar-add.js +51 -0
- package/dist/icons/ui-icons/calendar-download.js +62 -0
- package/dist/icons/ui-icons/calendar-remove.js +51 -0
- package/dist/icons/ui-icons/calendar.js +34 -0
- package/dist/icons/ui-icons/caption-generic.js +25 -0
- package/dist/icons/ui-icons/card-featured.js +28 -0
- package/dist/icons/ui-icons/caret-down-fill.js +19 -0
- package/dist/icons/ui-icons/caret-down.js +19 -0
- package/dist/icons/ui-icons/caret-left-fill.js +19 -0
- package/dist/icons/ui-icons/caret-left.js +19 -0
- package/dist/icons/ui-icons/caret-right-fill.js +19 -0
- package/dist/icons/ui-icons/caret-right.js +19 -0
- package/dist/icons/ui-icons/caret-up-fill.js +19 -0
- package/dist/icons/ui-icons/caret-up.js +19 -0
- package/dist/icons/ui-icons/center-point.js +25 -0
- package/dist/icons/ui-icons/chat-bubble-alt.js +25 -0
- package/dist/icons/ui-icons/chat-bubble.js +19 -0
- package/dist/icons/ui-icons/chat.js +25 -0
- package/dist/icons/ui-icons/check-circle-fill-transparent.js +24 -0
- package/dist/icons/ui-icons/check-circle-fill.js +17 -0
- package/dist/icons/ui-icons/check-circle.js +27 -0
- package/dist/icons/ui-icons/check-square.js +28 -0
- package/dist/icons/ui-icons/check.js +20 -0
- package/dist/icons/ui-icons/checks-circle.js +26 -0
- package/dist/icons/ui-icons/checks.js +26 -0
- package/dist/icons/ui-icons/chevron-down.js +20 -0
- package/dist/icons/ui-icons/chevron-left.js +20 -0
- package/dist/icons/ui-icons/chevron-right.js +20 -0
- package/dist/icons/ui-icons/chevron-up.js +20 -0
- package/dist/icons/ui-icons/clear-alt.js +25 -0
- package/dist/icons/ui-icons/clear.js +20 -0
- package/dist/icons/ui-icons/clipboard-plain.js +35 -0
- package/dist/icons/ui-icons/clipboard.js +43 -0
- package/dist/icons/ui-icons/clock.js +26 -0
- package/dist/icons/ui-icons/closed-captions.js +27 -0
- package/dist/icons/ui-icons/code-variable.js +20 -0
- package/dist/icons/ui-icons/code.js +20 -0
- package/dist/icons/ui-icons/color-alt.js +40 -0
- package/dist/icons/ui-icons/color-fill-swatch.js +61 -0
- package/dist/icons/ui-icons/color-picker-fill.js +42 -0
- package/dist/icons/ui-icons/color-picker-list-marker.js +41 -0
- package/dist/icons/ui-icons/color-picker-text-highlight.js +19 -0
- package/dist/icons/ui-icons/color-picker-text.js +20 -0
- package/dist/icons/ui-icons/color-select.js +33 -0
- package/dist/icons/ui-icons/color.js +22 -0
- package/dist/icons/ui-icons/column-gutters-lr.js +54 -0
- package/dist/icons/ui-icons/columns.js +42 -0
- package/dist/icons/ui-icons/columns3366.js +30 -0
- package/dist/icons/ui-icons/columns6633.js +30 -0
- package/dist/icons/ui-icons/component-generic.js +27 -0
- package/dist/icons/ui-icons/component-options.js +36 -0
- package/dist/icons/ui-icons/condition-h.js +20 -0
- package/dist/icons/ui-icons/condition-v.js +20 -0
- package/dist/icons/ui-icons/conditional-visibility.js +26 -0
- package/dist/icons/ui-icons/container-height.js +68 -0
- package/dist/icons/ui-icons/container-spacing-h.js +41 -0
- package/dist/icons/ui-icons/container-spacing.js +41 -0
- package/dist/icons/ui-icons/container-width.js +68 -0
- package/dist/icons/ui-icons/content-bottom-left.js +31 -0
- package/dist/icons/ui-icons/content-bottom-right.js +31 -0
- package/dist/icons/ui-icons/content-center.js +31 -0
- package/dist/icons/ui-icons/content-top-left.js +31 -0
- package/dist/icons/ui-icons/content-top-right.js +31 -0
- package/dist/icons/ui-icons/contrast-alt.js +27 -0
- package/dist/icons/ui-icons/contrast.js +26 -0
- package/dist/icons/ui-icons/cookie-alt.js +124 -0
- package/dist/icons/ui-icons/cookie.js +76 -0
- package/dist/icons/ui-icons/copy.js +26 -0
- package/dist/icons/ui-icons/currency.js +48 -0
- package/dist/icons/ui-icons/current-page.js +42 -0
- package/dist/icons/ui-icons/cursor-disabled.js +35 -0
- package/dist/icons/ui-icons/cursor-move.js +20 -0
- package/dist/icons/ui-icons/dark-mode.js +20 -0
- package/dist/icons/ui-icons/data.js +33 -0
- package/dist/icons/ui-icons/date-time.js +67 -0
- package/dist/icons/ui-icons/defer.js +26 -0
- package/dist/icons/ui-icons/description-link.js +40 -0
- package/dist/icons/ui-icons/design.js +48 -0
- package/dist/icons/ui-icons/dice.js +59 -0
- package/dist/icons/ui-icons/divider-bottom.js +23 -0
- package/dist/icons/ui-icons/divider-side.js +53 -0
- package/dist/icons/ui-icons/divider-status.js +53 -0
- package/dist/icons/ui-icons/divider-top.js +23 -0
- package/dist/icons/ui-icons/divider.js +23 -0
- package/dist/icons/ui-icons/door-in.js +32 -0
- package/dist/icons/ui-icons/door-out.js +32 -0
- package/dist/icons/ui-icons/door.js +27 -0
- package/dist/icons/ui-icons/download.js +20 -0
- package/dist/icons/ui-icons/dropdown-caret-alt.js +17 -0
- package/dist/icons/ui-icons/dropdown-caret.js +20 -0
- package/dist/icons/ui-icons/dropdown-close.js +52 -0
- package/dist/icons/ui-icons/dropdown-open.js +38 -0
- package/dist/icons/ui-icons/dropdown.js +38 -0
- package/dist/icons/ui-icons/dummy-spacer.js +17 -0
- package/dist/icons/ui-icons/edit-options.js +32 -0
- package/dist/icons/ui-icons/edit.js +22 -0
- package/dist/icons/ui-icons/email-remove.js +42 -0
- package/dist/icons/ui-icons/email.js +28 -0
- package/dist/icons/ui-icons/embed.js +28 -0
- package/dist/icons/ui-icons/empty-circle.js +23 -0
- package/dist/icons/ui-icons/empty-rect.js +25 -0
- package/dist/icons/ui-icons/equal-columns.js +25 -0
- package/dist/icons/ui-icons/equal-rows.js +25 -0
- package/dist/icons/ui-icons/equals.js +20 -0
- package/dist/icons/ui-icons/error-circle-fill-transparent.js +23 -0
- package/dist/icons/ui-icons/error-circle-fill.js +17 -0
- package/dist/icons/ui-icons/error-circle.js +24 -0
- package/dist/icons/ui-icons/exclude-item-alt.js +38 -0
- package/dist/icons/ui-icons/exclude-item.js +42 -0
- package/dist/icons/ui-icons/exclude.js +29 -0
- package/dist/icons/ui-icons/expand-xl.js +20 -0
- package/dist/icons/ui-icons/expand.js +20 -0
- package/dist/icons/ui-icons/experiment.js +33 -0
- package/dist/icons/ui-icons/external-link.js +25 -0
- package/dist/icons/ui-icons/extract-alt.js +25 -0
- package/dist/icons/ui-icons/extract.js +25 -0
- package/dist/icons/ui-icons/eyedropper.js +36 -0
- package/dist/icons/ui-icons/fast-forward.js +26 -0
- package/dist/icons/ui-icons/fast-reverse.js +26 -0
- package/dist/icons/ui-icons/field-after-text.js +54 -0
- package/dist/icons/ui-icons/field-before-text.js +46 -0
- package/dist/icons/ui-icons/field-disabled.js +35 -0
- package/dist/icons/ui-icons/field-help.js +46 -0
- package/dist/icons/ui-icons/field-label.js +38 -0
- package/dist/icons/ui-icons/field-name.js +45 -0
- package/dist/icons/ui-icons/field-placeholder.js +49 -0
- package/dist/icons/ui-icons/field-readonly.js +36 -0
- package/dist/icons/ui-icons/field-required.js +37 -0
- package/dist/icons/ui-icons/field-type.js +36 -0
- package/dist/icons/ui-icons/field-value.js +46 -0
- package/dist/icons/ui-icons/field-width.js +27 -0
- package/dist/icons/ui-icons/file-download.js +33 -0
- package/dist/icons/ui-icons/file-error.js +25 -0
- package/dist/icons/ui-icons/file-metadata.js +41 -0
- package/dist/icons/ui-icons/file-pdf.js +34 -0
- package/dist/icons/ui-icons/file-size-max.js +33 -0
- package/dist/icons/ui-icons/file-size-min.js +33 -0
- package/dist/icons/ui-icons/file-size.js +34 -0
- package/dist/icons/ui-icons/file-type.js +42 -0
- package/dist/icons/ui-icons/file-upload.js +33 -0
- package/dist/icons/ui-icons/file.js +24 -0
- package/dist/icons/ui-icons/files.js +34 -0
- package/dist/icons/ui-icons/fill-color.js +49 -0
- package/dist/icons/ui-icons/filter-alt.js +24 -0
- package/dist/icons/ui-icons/filter.js +20 -0
- package/dist/icons/ui-icons/flag-alt.js +24 -0
- package/dist/icons/ui-icons/flag.js +24 -0
- package/dist/icons/ui-icons/flip-h.js +27 -0
- package/dist/icons/ui-icons/flip-v.js +27 -0
- package/dist/icons/ui-icons/focus.js +21 -0
- package/dist/icons/ui-icons/folder-add.js +22 -0
- package/dist/icons/ui-icons/folder-open-solid.js +17 -0
- package/dist/icons/ui-icons/folder-open.js +19 -0
- package/dist/icons/ui-icons/folder-solid.js +17 -0
- package/dist/icons/ui-icons/folder-top-level.js +22 -0
- package/dist/icons/ui-icons/folder.js +19 -0
- package/dist/icons/ui-icons/font-family.js +24 -0
- package/dist/icons/ui-icons/footer.js +23 -0
- package/dist/icons/ui-icons/form-alt.js +71 -0
- package/dist/icons/ui-icons/form.js +53 -0
- package/dist/icons/ui-icons/four-columns.js +38 -0
- package/dist/icons/ui-icons/frame.js +33 -0
- package/dist/icons/ui-icons/full-max-shield.js +26 -0
- package/dist/icons/ui-icons/full-max-text.js +20 -0
- package/dist/icons/ui-icons/full-width-image.js +35 -0
- package/dist/icons/ui-icons/gears-fill.js +19 -0
- package/dist/icons/ui-icons/gears.js +38 -0
- package/dist/icons/ui-icons/generic-color-swatch.js +6 -0
- package/dist/icons/ui-icons/generic-shapes-alt.js +33 -0
- package/dist/icons/ui-icons/generic-shapes.js +38 -0
- package/dist/icons/ui-icons/globe-anchor.js +55 -0
- package/dist/icons/ui-icons/globe-hash.js +40 -0
- package/dist/icons/ui-icons/globe.js +37 -0
- package/dist/icons/ui-icons/google-tag-manager.js +36 -0
- package/dist/icons/ui-icons/gradient-repeat.js +41 -0
- package/dist/icons/ui-icons/gradient-stop.js +36 -0
- package/dist/icons/ui-icons/gradient.js +54 -0
- package/dist/icons/ui-icons/grid-alt.js +19 -0
- package/dist/icons/ui-icons/grid-auto-cols.js +46 -0
- package/dist/icons/ui-icons/grid-auto-rows.js +41 -0
- package/dist/icons/ui-icons/grid-col.js +22 -0
- package/dist/icons/ui-icons/grid-height.js +22 -0
- package/dist/icons/ui-icons/grid-list-toggle.js +48 -0
- package/dist/icons/ui-icons/grid-manual.js +18 -0
- package/dist/icons/ui-icons/grid-row.js +22 -0
- package/dist/icons/ui-icons/grid-width.js +22 -0
- package/dist/icons/ui-icons/group.js +33 -0
- package/dist/icons/ui-icons/gutter.js +28 -0
- package/dist/icons/ui-icons/gyroscope.js +53 -0
- package/dist/icons/ui-icons/h1.js +28 -0
- package/dist/icons/ui-icons/h2.js +28 -0
- package/dist/icons/ui-icons/h3.js +28 -0
- package/dist/icons/ui-icons/h4.js +28 -0
- package/dist/icons/ui-icons/h5.js +28 -0
- package/dist/icons/ui-icons/h6.js +28 -0
- package/dist/icons/ui-icons/hamburger-menu.js +19 -0
- package/dist/icons/ui-icons/hard-drive.js +35 -0
- package/dist/icons/ui-icons/header.js +23 -0
- package/dist/icons/ui-icons/heading-level-alt.js +28 -0
- package/dist/icons/ui-icons/heading-level.js +28 -0
- package/dist/icons/ui-icons/heading.js +20 -0
- package/dist/icons/ui-icons/heart-fill-transparent.js +19 -0
- package/dist/icons/ui-icons/heart-fill.js +18 -0
- package/dist/icons/ui-icons/heart.js +18 -0
- package/dist/icons/ui-icons/height.js +30 -0
- package/dist/icons/ui-icons/help-fill.js +19 -0
- package/dist/icons/ui-icons/help.js +38 -0
- package/dist/icons/ui-icons/hide.js +29 -0
- package/dist/icons/ui-icons/highlighted-checkmark.js +24 -0
- package/dist/icons/ui-icons/highlighted-exclamation-mark.js +33 -0
- package/dist/icons/ui-icons/history.js +26 -0
- package/dist/icons/ui-icons/horizontal-align-alt.js +27 -0
- package/dist/icons/ui-icons/horizontal-align-around.js +37 -0
- package/dist/icons/ui-icons/horizontal-align-between-alt.js +37 -0
- package/dist/icons/ui-icons/horizontal-align-between.js +46 -0
- package/dist/icons/ui-icons/horizontal-align-center.js +41 -0
- package/dist/icons/ui-icons/horizontal-align-evenly.js +37 -0
- package/dist/icons/ui-icons/horizontal-align-left.js +44 -0
- package/dist/icons/ui-icons/horizontal-align-right.js +48 -0
- package/dist/icons/ui-icons/horizontal-align-stretch.js +37 -0
- package/dist/icons/ui-icons/horizontal-align.js +35 -0
- package/dist/icons/ui-icons/hover-background-glow.js +61 -0
- package/dist/icons/ui-icons/hover-background-type.js +34 -0
- package/dist/icons/ui-icons/hover-invert-object.js +42 -0
- package/dist/icons/ui-icons/hover-invert-text.js +32 -0
- package/dist/icons/ui-icons/hover-rotate.js +20 -0
- package/dist/icons/ui-icons/hover-zoom.js +25 -0
- package/dist/icons/ui-icons/hyphenate-alt.js +20 -0
- package/dist/icons/ui-icons/hyphenate-alt2.js +20 -0
- package/dist/icons/ui-icons/hyphenate.js +25 -0
- package/dist/icons/ui-icons/icon-generic.js +23 -0
- package/dist/icons/ui-icons/id-card.js +45 -0
- package/dist/icons/ui-icons/id.js +28 -0
- package/dist/icons/ui-icons/image-blur.js +50 -0
- package/dist/icons/ui-icons/image-caption.js +36 -0
- package/dist/icons/ui-icons/image-error.js +36 -0
- package/dist/icons/ui-icons/image-file.js +40 -0
- package/dist/icons/ui-icons/image-lazy-load.js +52 -0
- package/dist/icons/ui-icons/image-opacity.js +31 -0
- package/dist/icons/ui-icons/image-overlay-alt.js +93 -0
- package/dist/icons/ui-icons/image-overlay-alt2.js +93 -0
- package/dist/icons/ui-icons/image-overlay.js +92 -0
- package/dist/icons/ui-icons/image-remove.js +46 -0
- package/dist/icons/ui-icons/image.js +25 -0
- package/dist/icons/ui-icons/index.js +753 -0
- package/dist/icons/ui-icons/info-circle-fill-transparent.js +21 -0
- package/dist/icons/ui-icons/info-circle-fill.js +17 -0
- package/dist/icons/ui-icons/info-circle.js +24 -0
- package/dist/icons/ui-icons/info.js +17 -0
- package/dist/icons/ui-icons/inherit.js +41 -0
- package/dist/icons/ui-icons/inline-gradient-format.js +62 -0
- package/dist/icons/ui-icons/input-field.js +27 -0
- package/dist/icons/ui-icons/italic.js +20 -0
- package/dist/icons/ui-icons/item-limit.js +35 -0
- package/dist/icons/ui-icons/item-select.js +33 -0
- package/dist/icons/ui-icons/item-wrap.js +60 -0
- package/dist/icons/ui-icons/items-per-page.js +48 -0
- package/dist/icons/ui-icons/items-per-row.js +45 -0
- package/dist/icons/ui-icons/key.js +25 -0
- package/dist/icons/ui-icons/keyboard.js +19 -0
- package/dist/icons/ui-icons/large.js +24 -0
- package/dist/icons/ui-icons/latest-posts.js +44 -0
- package/dist/icons/ui-icons/layer-off.js +20 -0
- package/dist/icons/ui-icons/layer.js +19 -0
- package/dist/icons/ui-icons/layers.js +33 -0
- package/dist/icons/ui-icons/layout-alt.js +19 -0
- package/dist/icons/ui-icons/layout-alt2.js +23 -0
- package/dist/icons/ui-icons/layout-alt3.js +19 -0
- package/dist/icons/ui-icons/layout-alt4.js +19 -0
- package/dist/icons/ui-icons/layout-bento-box.js +19 -0
- package/dist/icons/ui-icons/layout-masonry.js +79 -0
- package/dist/icons/ui-icons/layout.js +43 -0
- package/dist/icons/ui-icons/left-panel-alt.js +25 -0
- package/dist/icons/ui-icons/left-panel.js +22 -0
- package/dist/icons/ui-icons/light-bulb-alt.js +30 -0
- package/dist/icons/ui-icons/light-bulb.js +33 -0
- package/dist/icons/ui-icons/light-mode.js +26 -0
- package/dist/icons/ui-icons/limit-width.js +26 -0
- package/dist/icons/ui-icons/line-break-alt-off.js +26 -0
- package/dist/icons/ui-icons/line-break-alt.js +25 -0
- package/dist/icons/ui-icons/line-break-off-alt.js +35 -0
- package/dist/icons/ui-icons/line-break-off.js +41 -0
- package/dist/icons/ui-icons/line-break.js +29 -0
- package/dist/icons/ui-icons/line-breaks-hyphenation.js +36 -0
- package/dist/icons/ui-icons/link-add.js +41 -0
- package/dist/icons/ui-icons/link-nav.js +59 -0
- package/dist/icons/ui-icons/link-remove.js +41 -0
- package/dist/icons/ui-icons/link.js +19 -0
- package/dist/icons/ui-icons/list-indent.js +26 -0
- package/dist/icons/ui-icons/list-ordered.js +43 -0
- package/dist/icons/ui-icons/list-outdent.js +26 -0
- package/dist/icons/ui-icons/list-unordered.js +43 -0
- package/dist/icons/ui-icons/loader-alt.js +19 -0
- package/dist/icons/ui-icons/loader.js +19 -0
- package/dist/icons/ui-icons/location-add.js +44 -0
- package/dist/icons/ui-icons/location-allow.js +44 -0
- package/dist/icons/ui-icons/location-deny.js +44 -0
- package/dist/icons/ui-icons/location-settings.js +36 -0
- package/dist/icons/ui-icons/location.js +26 -0
- package/dist/icons/ui-icons/lock.js +44 -0
- package/dist/icons/ui-icons/loop-mode.js +20 -0
- package/dist/icons/ui-icons/magic-alt-fill-transparent.js +20 -0
- package/dist/icons/ui-icons/magic-alt-fill.js +19 -0
- package/dist/icons/ui-icons/magic-alt.js +19 -0
- package/dist/icons/ui-icons/magic-fill-transparent.js +20 -0
- package/dist/icons/ui-icons/magic-fill.js +19 -0
- package/dist/icons/ui-icons/magic.js +19 -0
- package/dist/icons/ui-icons/map-layer-json.js +35 -0
- package/dist/icons/ui-icons/map-layer-raster.js +121 -0
- package/dist/icons/ui-icons/map-layer-vector.js +81 -0
- package/dist/icons/ui-icons/map-layer.js +26 -0
- package/dist/icons/ui-icons/map-pin.js +41 -0
- package/dist/icons/ui-icons/matrix-align-control-dot-active.js +23 -0
- package/dist/icons/ui-icons/matrix-align-control-dot-inactive.js +21 -0
- package/dist/icons/ui-icons/media.js +49 -0
- package/dist/icons/ui-icons/medium.js +24 -0
- package/dist/icons/ui-icons/menu-item-check.js +20 -0
- package/dist/icons/ui-icons/menu-item-circle.js +19 -0
- package/dist/icons/ui-icons/microphone.js +23 -0
- package/dist/icons/ui-icons/migration-alt-v.js +20 -0
- package/dist/icons/ui-icons/migration-alt.js +20 -0
- package/dist/icons/ui-icons/migration.js +26 -0
- package/dist/icons/ui-icons/module.js +24 -0
- package/dist/icons/ui-icons/money-paper.js +58 -0
- package/dist/icons/ui-icons/more-h-circle.js +40 -0
- package/dist/icons/ui-icons/more-h.js +33 -0
- package/dist/icons/ui-icons/more-v-circle.js +44 -0
- package/dist/icons/ui-icons/more-v.js +36 -0
- package/dist/icons/ui-icons/mouse-cursor.js +20 -0
- package/dist/icons/ui-icons/mouse-wheel.js +27 -0
- package/dist/icons/ui-icons/multi-item-left-inset-mobile.js +58 -0
- package/dist/icons/ui-icons/multi-item-left-inset.js +39 -0
- package/dist/icons/ui-icons/multi-item-right-inset-mobile.js +55 -0
- package/dist/icons/ui-icons/multi-item-right-inset.js +36 -0
- package/dist/icons/ui-icons/multiple.js +34 -0
- package/dist/icons/ui-icons/music-note.js +40 -0
- package/dist/icons/ui-icons/mute-centered.js +20 -0
- package/dist/icons/ui-icons/mute.js +20 -0
- package/dist/icons/ui-icons/narrow-bottom.js +49 -0
- package/dist/icons/ui-icons/narrow-left.js +49 -0
- package/dist/icons/ui-icons/narrow-right.js +49 -0
- package/dist/icons/ui-icons/narrow-top.js +49 -0
- package/dist/icons/ui-icons/navigation-buttons.js +39 -0
- package/dist/icons/ui-icons/new-tab.js +27 -0
- package/dist/icons/ui-icons/newspaper.js +45 -0
- package/dist/icons/ui-icons/none.js +25 -0
- package/dist/icons/ui-icons/notebook.js +44 -0
- package/dist/icons/ui-icons/num0-circle-alt.js +24 -0
- package/dist/icons/ui-icons/num0-circle.js +24 -0
- package/dist/icons/ui-icons/num0-square-alt.js +26 -0
- package/dist/icons/ui-icons/num0-square.js +26 -0
- package/dist/icons/ui-icons/num1-circle-alt.js +26 -0
- package/dist/icons/ui-icons/num1-circle.js +26 -0
- package/dist/icons/ui-icons/num1-square-alt.js +28 -0
- package/dist/icons/ui-icons/num1-square.js +28 -0
- package/dist/icons/ui-icons/num2-circle-alt.js +26 -0
- package/dist/icons/ui-icons/num2-circle.js +26 -0
- package/dist/icons/ui-icons/num2-square-alt.js +28 -0
- package/dist/icons/ui-icons/num2-square.js +28 -0
- package/dist/icons/ui-icons/num3-circle-alt.js +26 -0
- package/dist/icons/ui-icons/num3-circle.js +26 -0
- package/dist/icons/ui-icons/num3-square-alt.js +28 -0
- package/dist/icons/ui-icons/num3-square.js +28 -0
- package/dist/icons/ui-icons/num4-circle-alt.js +26 -0
- package/dist/icons/ui-icons/num4-circle.js +26 -0
- package/dist/icons/ui-icons/num4-square-alt.js +28 -0
- package/dist/icons/ui-icons/num4-square.js +28 -0
- package/dist/icons/ui-icons/num5-circle-alt.js +26 -0
- package/dist/icons/ui-icons/num5-circle.js +26 -0
- package/dist/icons/ui-icons/num5-square-alt.js +28 -0
- package/dist/icons/ui-icons/num5-square.js +28 -0
- package/dist/icons/ui-icons/num6-circle-alt.js +26 -0
- package/dist/icons/ui-icons/num6-circle.js +26 -0
- package/dist/icons/ui-icons/num6-square-alt.js +28 -0
- package/dist/icons/ui-icons/num6-square.js +28 -0
- package/dist/icons/ui-icons/num7-circle-alt.js +26 -0
- package/dist/icons/ui-icons/num7-circle.js +26 -0
- package/dist/icons/ui-icons/num7-square-alt.js +28 -0
- package/dist/icons/ui-icons/num7-square.js +28 -0
- package/dist/icons/ui-icons/num8-circle-alt.js +24 -0
- package/dist/icons/ui-icons/num8-circle.js +24 -0
- package/dist/icons/ui-icons/num8-square-alt.js +26 -0
- package/dist/icons/ui-icons/num8-square.js +26 -0
- package/dist/icons/ui-icons/num9-circle-alt.js +26 -0
- package/dist/icons/ui-icons/num9-circle.js +26 -0
- package/dist/icons/ui-icons/num9-square-alt.js +28 -0
- package/dist/icons/ui-icons/num9-square.js +28 -0
- package/dist/icons/ui-icons/office-building.js +203 -0
- package/dist/icons/ui-icons/office-buildings.js +256 -0
- package/dist/icons/ui-icons/offset-auto.js +46 -0
- package/dist/icons/ui-icons/offset.js +39 -0
- package/dist/icons/ui-icons/option-list-alt.js +61 -0
- package/dist/icons/ui-icons/option-list.js +63 -0
- package/dist/icons/ui-icons/options.js +24 -0
- package/dist/icons/ui-icons/order.js +49 -0
- package/dist/icons/ui-icons/padding-bottom.js +35 -0
- package/dist/icons/ui-icons/padding-top.js +35 -0
- package/dist/icons/ui-icons/padding.js +34 -0
- package/dist/icons/ui-icons/pagination.js +49 -0
- package/dist/icons/ui-icons/palette-color.js +111 -0
- package/dist/icons/ui-icons/panel-collapse.js +41 -0
- package/dist/icons/ui-icons/panel-expand.js +41 -0
- package/dist/icons/ui-icons/paragraph.js +24 -0
- package/dist/icons/ui-icons/paste.js +52 -0
- package/dist/icons/ui-icons/pause.js +20 -0
- package/dist/icons/ui-icons/people-group.js +57 -0
- package/dist/icons/ui-icons/people.js +43 -0
- package/dist/icons/ui-icons/person.js +26 -0
- package/dist/icons/ui-icons/photo-camera.js +26 -0
- package/dist/icons/ui-icons/picture-in-picture.js +33 -0
- package/dist/icons/ui-icons/play-reverse.js +20 -0
- package/dist/icons/ui-icons/play.js +20 -0
- package/dist/icons/ui-icons/playback-options.js +24 -0
- package/dist/icons/ui-icons/plus-circle-fill-alt.js +23 -0
- package/dist/icons/ui-icons/plus-circle-fill.js +17 -0
- package/dist/icons/ui-icons/plus-circle.js +26 -0
- package/dist/icons/ui-icons/plus-minus-buttons-h.js +25 -0
- package/dist/icons/ui-icons/plus-minus-buttons-v.js +25 -0
- package/dist/icons/ui-icons/plus-square-fill-transparent.js +27 -0
- package/dist/icons/ui-icons/plus-square-fill.js +17 -0
- package/dist/icons/ui-icons/plus-square.js +27 -0
- package/dist/icons/ui-icons/pointer-hand-disabled.js +34 -0
- package/dist/icons/ui-icons/pointer-hand.js +20 -0
- package/dist/icons/ui-icons/position-arrows-h.js +26 -0
- package/dist/icons/ui-icons/position-arrows-inverted-h.js +26 -0
- package/dist/icons/ui-icons/position-arrows-inverted-v.js +26 -0
- package/dist/icons/ui-icons/position-arrows-inverted.js +26 -0
- package/dist/icons/ui-icons/position-arrows-v.js +26 -0
- package/dist/icons/ui-icons/position-arrows.js +26 -0
- package/dist/icons/ui-icons/position-h-center.js +43 -0
- package/dist/icons/ui-icons/position-h-end.js +43 -0
- package/dist/icons/ui-icons/position-h-start.js +43 -0
- package/dist/icons/ui-icons/position-left.js +31 -0
- package/dist/icons/ui-icons/position-right.js +31 -0
- package/dist/icons/ui-icons/position-v-center.js +43 -0
- package/dist/icons/ui-icons/position-v-end.js +43 -0
- package/dist/icons/ui-icons/position-v-start.js +43 -0
- package/dist/icons/ui-icons/position2x2-bottom-left.js +52 -0
- package/dist/icons/ui-icons/position2x2-bottom-right.js +52 -0
- package/dist/icons/ui-icons/position2x2-empty.js +51 -0
- package/dist/icons/ui-icons/position2x2-top-left.js +52 -0
- package/dist/icons/ui-icons/position2x2-top-right.js +52 -0
- package/dist/icons/ui-icons/position3x3-bottom-center.js +97 -0
- package/dist/icons/ui-icons/position3x3-bottom-left.js +97 -0
- package/dist/icons/ui-icons/position3x3-bottom-right.js +97 -0
- package/dist/icons/ui-icons/position3x3-center-center.js +97 -0
- package/dist/icons/ui-icons/position3x3-center-left.js +97 -0
- package/dist/icons/ui-icons/position3x3-center-right.js +97 -0
- package/dist/icons/ui-icons/position3x3-empty.js +96 -0
- package/dist/icons/ui-icons/position3x3-top-center.js +97 -0
- package/dist/icons/ui-icons/position3x3-top-left.js +97 -0
- package/dist/icons/ui-icons/position3x3-top-right.js +97 -0
- package/dist/icons/ui-icons/positioning-guide-alt.js +30 -0
- package/dist/icons/ui-icons/positioning-guide.js +30 -0
- package/dist/icons/ui-icons/positioning-width-guide.js +40 -0
- package/dist/icons/ui-icons/preload.js +44 -0
- package/dist/icons/ui-icons/preview-responsive.js +48 -0
- package/dist/icons/ui-icons/preview.js +35 -0
- package/dist/icons/ui-icons/progressbar-intermittent.js +26 -0
- package/dist/icons/ui-icons/progressbar.js +30 -0
- package/dist/icons/ui-icons/range-max.js +48 -0
- package/dist/icons/ui-icons/range-mid.js +40 -0
- package/dist/icons/ui-icons/range-min.js +48 -0
- package/dist/icons/ui-icons/range.js +61 -0
- package/dist/icons/ui-icons/read-only.js +25 -0
- package/dist/icons/ui-icons/reduce-height-bottom.js +49 -0
- package/dist/icons/ui-icons/reduce-height-top.js +49 -0
- package/dist/icons/ui-icons/regex.js +39 -0
- package/dist/icons/ui-icons/remove.js +20 -0
- package/dist/icons/ui-icons/rename.js +24 -0
- package/dist/icons/ui-icons/reorder-grabber-h.js +51 -0
- package/dist/icons/ui-icons/reorder-grabber-v.js +57 -0
- package/dist/icons/ui-icons/reorder.js +35 -0
- package/dist/icons/ui-icons/required-alt.js +20 -0
- package/dist/icons/ui-icons/required.js +19 -0
- package/dist/icons/ui-icons/reset-to-zero.js +33 -0
- package/dist/icons/ui-icons/reset.js +25 -0
- package/dist/icons/ui-icons/responsive-overrides-alt-fill.js +26 -0
- package/dist/icons/ui-icons/responsive-overrides-alt.js +49 -0
- package/dist/icons/ui-icons/responsive-overrides-alt2-fill.js +34 -0
- package/dist/icons/ui-icons/responsive-overrides-alt2.js +45 -0
- package/dist/icons/ui-icons/responsive-overrides-alt3-fill.js +33 -0
- package/dist/icons/ui-icons/responsive-overrides.js +39 -0
- package/dist/icons/ui-icons/responsive.js +33 -0
- package/dist/icons/ui-icons/right-panel-alt.js +23 -0
- package/dist/icons/ui-icons/right-panel.js +22 -0
- package/dist/icons/ui-icons/rotate-left.js +20 -0
- package/dist/icons/ui-icons/rotate-right.js +20 -0
- package/dist/icons/ui-icons/rounded-corners.js +19 -0
- package/dist/icons/ui-icons/route.js +27 -0
- package/dist/icons/ui-icons/row-add.js +45 -0
- package/dist/icons/ui-icons/row-empty.js +51 -0
- package/dist/icons/ui-icons/row.js +45 -0
- package/dist/icons/ui-icons/rows.js +42 -0
- package/dist/icons/ui-icons/ruler.js +28 -0
- package/dist/icons/ui-icons/save.js +26 -0
- package/dist/icons/ui-icons/screen-desktop.js +32 -0
- package/dist/icons/ui-icons/screen-large.js +23 -0
- package/dist/icons/ui-icons/screen-mobile.js +39 -0
- package/dist/icons/ui-icons/screen-tablet-large.js +36 -0
- package/dist/icons/ui-icons/screen-tablet.js +36 -0
- package/dist/icons/ui-icons/scrollbar-h.js +40 -0
- package/dist/icons/ui-icons/scrollbar-v.js +41 -0
- package/dist/icons/ui-icons/scrollbars.js +55 -0
- package/dist/icons/ui-icons/search-empty.js +37 -0
- package/dist/icons/ui-icons/search.js +25 -0
- package/dist/icons/ui-icons/separator-h.js +41 -0
- package/dist/icons/ui-icons/separator-v.js +39 -0
- package/dist/icons/ui-icons/shadow.js +61 -0
- package/dist/icons/ui-icons/share.js +26 -0
- package/dist/icons/ui-icons/shield-plus-alt.js +27 -0
- package/dist/icons/ui-icons/shield-plus.js +20 -0
- package/dist/icons/ui-icons/shield.js +20 -0
- package/dist/icons/ui-icons/shrink-diagonal-left-xl.js +20 -0
- package/dist/icons/ui-icons/shrink-diagonal-left.js +20 -0
- package/dist/icons/ui-icons/shrink-diagonal-right-xl.js +20 -0
- package/dist/icons/ui-icons/shrink-diagonal-right.js +20 -0
- package/dist/icons/ui-icons/shrink-xl.js +20 -0
- package/dist/icons/ui-icons/shrink.js +20 -0
- package/dist/icons/ui-icons/shuffle.js +20 -0
- package/dist/icons/ui-icons/sidebar-flip.js +22 -0
- package/dist/icons/ui-icons/sidebar.js +22 -0
- package/dist/icons/ui-icons/single-item-left-inset-mobile.js +48 -0
- package/dist/icons/ui-icons/single-item-left-inset.js +23 -0
- package/dist/icons/ui-icons/single-item-right-inset-mobile.js +50 -0
- package/dist/icons/ui-icons/single-item-right-inset.js +23 -0
- package/dist/icons/ui-icons/size-alt.js +33 -0
- package/dist/icons/ui-icons/size.js +29 -0
- package/dist/icons/ui-icons/slider.js +31 -0
- package/dist/icons/ui-icons/sliders.js +68 -0
- package/dist/icons/ui-icons/small.js +24 -0
- package/dist/icons/ui-icons/solid-circle-fill-transparent.js +22 -0
- package/dist/icons/ui-icons/solid-circle-filled.js +21 -0
- package/dist/icons/ui-icons/solid-circle-gradient.js +31 -0
- package/dist/icons/ui-icons/solid-circle.js +21 -0
- package/dist/icons/ui-icons/solid-color.js +19 -0
- package/dist/icons/ui-icons/solid-rect-fill-transparent.js +24 -0
- package/dist/icons/ui-icons/solid-rect-filled.js +23 -0
- package/dist/icons/ui-icons/solid-rect-gradient.js +33 -0
- package/dist/icons/ui-icons/solid-rect.js +23 -0
- package/dist/icons/ui-icons/sort-asc.js +20 -0
- package/dist/icons/ui-icons/sort-desc.js +20 -0
- package/dist/icons/ui-icons/sort-generic.js +25 -0
- package/dist/icons/ui-icons/spacing-bottom-in.js +23 -0
- package/dist/icons/ui-icons/spacing-bottom.js +23 -0
- package/dist/icons/ui-icons/spacing-left-in.js +23 -0
- package/dist/icons/ui-icons/spacing-left.js +23 -0
- package/dist/icons/ui-icons/spacing-right-in.js +23 -0
- package/dist/icons/ui-icons/spacing-right.js +23 -0
- package/dist/icons/ui-icons/spacing-top-in.js +23 -0
- package/dist/icons/ui-icons/spacing-top.js +23 -0
- package/dist/icons/ui-icons/speed.js +25 -0
- package/dist/icons/ui-icons/stagger.js +53 -0
- package/dist/icons/ui-icons/star.js +18 -0
- package/dist/icons/ui-icons/step.js +27 -0
- package/dist/icons/ui-icons/stop.js +20 -0
- package/dist/icons/ui-icons/swap.js +41 -0
- package/dist/icons/ui-icons/tag-alt.js +24 -0
- package/dist/icons/ui-icons/tag.js +26 -0
- package/dist/icons/ui-icons/text-abc.js +40 -0
- package/dist/icons/ui-icons/text-above.js +25 -0
- package/dist/icons/ui-icons/text-align-center.js +20 -0
- package/dist/icons/ui-icons/text-align-generic.js +20 -0
- package/dist/icons/ui-icons/text-align-justify.js +20 -0
- package/dist/icons/ui-icons/text-align-left.js +20 -0
- package/dist/icons/ui-icons/text-align-right.js +20 -0
- package/dist/icons/ui-icons/text-below.js +25 -0
- package/dist/icons/ui-icons/text-box-edit.js +35 -0
- package/dist/icons/ui-icons/text-color-swatch.js +40 -0
- package/dist/icons/ui-icons/text-highlight-color-swatch-alt.js +49 -0
- package/dist/icons/ui-icons/text-highlight-color-swatch.js +48 -0
- package/dist/icons/ui-icons/text-larger.js +23 -0
- package/dist/icons/ui-icons/text-length.js +20 -0
- package/dist/icons/ui-icons/text-size-alt.js +23 -0
- package/dist/icons/ui-icons/text-size.js +20 -0
- package/dist/icons/ui-icons/text-smaller.js +23 -0
- package/dist/icons/ui-icons/text-strikethrough.js +26 -0
- package/dist/icons/ui-icons/text-uppercase.js +25 -0
- package/dist/icons/ui-icons/text-write.js +39 -0
- package/dist/icons/ui-icons/thumbs-down.js +22 -0
- package/dist/icons/ui-icons/thumbs-up.js +22 -0
- package/dist/icons/ui-icons/title-generic.js +25 -0
- package/dist/icons/ui-icons/toggle-off.js +33 -0
- package/dist/icons/ui-icons/toggle-on-alt.js +19 -0
- package/dist/icons/ui-icons/toggle-on.js +31 -0
- package/dist/icons/ui-icons/tools.js +25 -0
- package/dist/icons/ui-icons/total-items.js +45 -0
- package/dist/icons/ui-icons/trash-alt.js +44 -0
- package/dist/icons/ui-icons/trash.js +33 -0
- package/dist/icons/ui-icons/tree-alt.js +62 -0
- package/dist/icons/ui-icons/tree-alt2.js +79 -0
- package/dist/icons/ui-icons/tree.js +70 -0
- package/dist/icons/ui-icons/troubleshoot-alt.js +39 -0
- package/dist/icons/ui-icons/two-cards-left.js +32 -0
- package/dist/icons/ui-icons/two-cards-right.js +32 -0
- package/dist/icons/ui-icons/two-columns.js +30 -0
- package/dist/icons/ui-icons/typography-options.js +77 -0
- package/dist/icons/ui-icons/typography.js +71 -0
- package/dist/icons/ui-icons/underline.js +19 -0
- package/dist/icons/ui-icons/ungroup.js +39 -0
- package/dist/icons/ui-icons/upload.js +20 -0
- package/dist/icons/ui-icons/venn-diagram-alt.js +34 -0
- package/dist/icons/ui-icons/venn-diagram-alt2.js +34 -0
- package/dist/icons/ui-icons/venn-diagram-alt3.js +34 -0
- package/dist/icons/ui-icons/venn-diagram-alt4.js +34 -0
- package/dist/icons/ui-icons/venn-diagram-alt5.js +34 -0
- package/dist/icons/ui-icons/venn-diagram-alt6.js +34 -0
- package/dist/icons/ui-icons/venn-diagram-alt7.js +39 -0
- package/dist/icons/ui-icons/venn-diagram.js +26 -0
- package/dist/icons/ui-icons/vertical-align-alt.js +27 -0
- package/dist/icons/ui-icons/vertical-align-around.js +39 -0
- package/dist/icons/ui-icons/vertical-align-between-alt.js +39 -0
- package/dist/icons/ui-icons/vertical-align-between.js +48 -0
- package/dist/icons/ui-icons/vertical-align-bottom.js +44 -0
- package/dist/icons/ui-icons/vertical-align-center.js +39 -0
- package/dist/icons/ui-icons/vertical-align-evenly.js +39 -0
- package/dist/icons/ui-icons/vertical-align-stretch.js +39 -0
- package/dist/icons/ui-icons/vertical-align-top.js +46 -0
- package/dist/icons/ui-icons/vertical-align.js +35 -0
- package/dist/icons/ui-icons/vertical-spacing.js +28 -0
- package/dist/icons/ui-icons/video-chapters.js +25 -0
- package/dist/icons/ui-icons/video-controls.js +67 -0
- package/dist/icons/ui-icons/video-file.js +40 -0
- package/dist/icons/ui-icons/video-poster-image.js +40 -0
- package/dist/icons/ui-icons/video-subtitle-alt.js +39 -0
- package/dist/icons/ui-icons/video-subtitle.js +27 -0
- package/dist/icons/ui-icons/video.js +36 -0
- package/dist/icons/ui-icons/visibility-alt.js +40 -0
- package/dist/icons/ui-icons/visibility-alt2.js +41 -0
- package/dist/icons/ui-icons/visibility.js +45 -0
- package/dist/icons/ui-icons/visible.js +28 -0
- package/dist/icons/ui-icons/volume.js +25 -0
- package/dist/icons/ui-icons/warning-circle-fill-transparent.js +30 -0
- package/dist/icons/ui-icons/warning-circle-fill.js +17 -0
- package/dist/icons/ui-icons/warning-circle.js +33 -0
- package/dist/icons/ui-icons/warning-fill-transparent.js +30 -0
- package/dist/icons/ui-icons/warning-fill.js +17 -0
- package/dist/icons/ui-icons/warning.js +30 -0
- package/dist/icons/ui-icons/web-video.js +63 -0
- package/dist/icons/ui-icons/wide-bottom.js +49 -0
- package/dist/icons/ui-icons/wide-left.js +49 -0
- package/dist/icons/ui-icons/wide-right.js +49 -0
- package/dist/icons/ui-icons/wide-top.js +49 -0
- package/dist/icons/ui-icons/width.js +29 -0
- package/dist/icons/ui-icons/wordpress.js +17 -0
- package/dist/icons/ui-icons/wrapper-alt.js +71 -0
- package/dist/icons/ui-icons/wrapper-config.js +41 -0
- package/dist/icons/ui-icons/wrapper-off-alt.js +19 -0
- package/dist/icons/ui-icons/wrapper-overflow.js +31 -0
- package/dist/icons/ui-icons/wrapper-simple-alt.js +58 -0
- package/dist/icons/ui-icons/wrapper-simple.js +32 -0
- package/dist/icons/ui-icons/wrapper.js +42 -0
- package/dist/icons/ui-icons/wrench.js +19 -0
- package/dist/icons/ui-icons/zap-fill.js +20 -0
- package/dist/icons/ui-icons/zap.js +19 -0
- package/dist/index.js +32 -108
- package/dist/input-field-UCZL5bqv.js +290 -0
- package/dist/jsx-svg-OBADs_Qs.js +11123 -0
- package/dist/link-input-D7iDRpOM.js +1821 -0
- package/dist/modal-DbVLYMkH.js +318 -0
- package/dist/number-ZZIxJukn.js +40 -0
- package/dist/number-picker-CkA1iJNZ.js +268 -0
- package/dist/proxy-DjkEpeDL.js +9660 -0
- package/dist/shared-D_OXizRt.js +1038 -0
- package/dist/smart-image-CbSsEASF.js +284 -0
- package/dist/solid-color-picker-DbT-aoVx.js +1415 -0
- package/dist/style-admin.js +1 -1
- package/dist/style-editor.js +1 -1
- package/dist/style.js +1 -1
- package/dist/switch-L8dFSQWQ.js +274 -0
- package/dist/tabs-BrdyBER5.js +975 -0
- package/dist/textSelection-Dv6WPj0Z.js +45 -0
- package/dist/toggle-button-DJ8jNQ-9.js +424 -0
- package/dist/tooltip-BzJzYlcc.js +440 -0
- package/dist/useAsyncList-BNzwKoX4.js +412 -0
- package/dist/useButton-ra1ZSZ4z.js +57 -0
- package/dist/useEvent-DkZVfgsS.js +22 -0
- package/dist/useField-D0WrzR2F.js +32 -0
- package/dist/useFilter-OiMnf6sb.js +44 -0
- package/dist/useFocusRing-DuYL4cdO.js +98 -0
- package/dist/useFormReset-DdkykzAn.js +18 -0
- package/dist/useHover-qaMm3XFO.js +982 -0
- package/dist/useLabel-2EohW5l6.js +27 -0
- package/dist/useLabels-B2p7RXi5.js +16 -0
- package/dist/useListState-CD_5vfyy.js +147 -0
- package/dist/useLocalizedStringFormatter-Dv2diN3k.js +108 -0
- package/dist/useNumberField-2xbi3jRV.js +1318 -0
- package/dist/useNumberFormatter-C2Cm2mNj.js +10 -0
- package/dist/usePress-ZP1TjkFf.js +678 -0
- package/dist/useToggle-ecIirvIM.js +64 -0
- package/dist/useToggleState-IIDbiKPl.js +23 -0
- package/dist/utilities/array-helpers.js +38 -49
- package/dist/utilities/debounce-throttle.js +2 -123
- package/dist/utilities/es-dash.js +2 -400
- package/dist/utilities/general.js +2 -10
- package/dist/utilities/hash.js +31 -35
- package/dist/utilities/index.js +6 -41
- package/dist/utilities/text-helpers.js +96 -129
- package/dist/utilities/web-workers.js +61 -44
- package/dist/utilities-CPFDXC3B.js +7 -0
- package/dist/utils-B_uiqNa4.js +372 -0
- package/dist/workers/image-analysis.worker.js +56 -48
- package/package.json +37 -25
- package/dist/Button-DtRmB6b8.js +0 -243
- package/dist/Dialog-DTIxSDhz.js +0 -2790
- package/dist/FieldError-BPG0hKfB.js +0 -42
- package/dist/FocusScope-CjFQ7cbd.js +0 -832
- package/dist/Form-Cq3fu75_.js +0 -5
- package/dist/Heading-CY-_gt-U.js +0 -16
- package/dist/Hidden-DOH36apC.js +0 -58
- package/dist/Input-BG9DaxYN.js +0 -169
- package/dist/Label-_aSf9-8u.js +0 -18
- package/dist/List-CQFXnN4w.js +0 -590
- package/dist/ListBox-DXFyyj_r.js +0 -695
- package/dist/NumberFormatter-DA8u1Ot7.js +0 -140
- package/dist/OverlayArrow-Fuxj-1QM.js +0 -614
- package/dist/PortalProvider-BQ1X8vGX.js +0 -19
- package/dist/RSPContexts-CJ-HBf0L.js +0 -18
- package/dist/RadioGroup-DCeiLxLK.js +0 -371
- package/dist/SearchField-B_yKFXRk.js +0 -817
- package/dist/SelectionIndicator-D7WMzeAW.js +0 -7
- package/dist/SelectionManager-B02LcxLr.js +0 -2505
- package/dist/SharedElementTransition-CtoWSaF0.js +0 -12
- package/dist/Slider-bR3fAmim.js +0 -897
- package/dist/Text-CjFEHSfr.js +0 -17
- package/dist/VisuallyHidden-DZnWrkn8.js +0 -48
- package/dist/animation-Dfl8uEb3.js +0 -67
- package/dist/clsx-DgYk2OaC.js +0 -16
- package/dist/color-swatch-bUFkK7ox.js +0 -2570
- package/dist/components/smart-image/image-analysis-worker-next.js +0 -144
- package/dist/components/smart-image/smart-image-next.js +0 -294
- package/dist/context-iUFQCK8m.js +0 -95
- package/dist/default-i18n-CnQeC5Pl.js +0 -731
- package/dist/filterDOMProps-eGTqWSTd.js +0 -71
- package/dist/general-BfKmjm56.js +0 -4378
- package/dist/index-BHpUy2Ix.js +0 -44
- package/dist/index-BL5gdWX4.js +0 -28323
- package/dist/number-7sOvrqo0.js +0 -41
- package/dist/proxy-CNEXmkdK.js +0 -7948
- package/dist/react-jsx-parser.min-DAh4myol.js +0 -11736
- package/dist/shared-CNH8QfV9.js +0 -1111
- package/dist/sprintf-DmNrJSYG.js +0 -51
- package/dist/textSelection-DA3VcKpG.js +0 -46
- package/dist/useAsyncList-DsZvQXls.js +0 -453
- package/dist/useButton-DyMX0EVr.js +0 -59
- package/dist/useEvent-Bfy68GHZ.js +0 -22
- package/dist/useFilter-Bg5C34XC.js +0 -50
- package/dist/useFocusRing-B2glEZ25.js +0 -114
- package/dist/useFormReset-BoxsKyJ9.js +0 -20
- package/dist/useFormValidation-BrbMhS2N.js +0 -232
- package/dist/useHover-DkmPQdGE.js +0 -1047
- package/dist/useLabel-DzXzKZZZ.js +0 -27
- package/dist/useLabels-D8O3gOdV.js +0 -23
- package/dist/useListState-BjnzKozj.js +0 -171
- package/dist/useLocalizedStringFormatter-CEDs0LsA.js +0 -121
- package/dist/useNumberField-CsygZKz9.js +0 -1330
- package/dist/useNumberFormatter-CG_IQXp9.js +0 -13
- package/dist/usePress-Ck5xMtDr.js +0 -701
- package/dist/useToggle-Ddc7N8pR.js +0 -72
- package/dist/useToggleState-H_lORSWO.js +0 -23
- package/dist/utils-Cr3pLd9c.js +0 -420
|
@@ -1,1710 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
import { d as $4e85f108e88277b8$export$ebe63fadcdce34ed, e as $4e85f108e88277b8$export$44644b8a16031b5b, f as $4e85f108e88277b8$export$717b2c0a523a0b53 } from "../../RSPContexts-CJ-HBf0L.js";
|
|
5
|
-
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../../filterDOMProps-eGTqWSTd.js";
|
|
6
|
-
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec, a as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../../useFocusRing-B2glEZ25.js";
|
|
7
|
-
import { a as $458b0a5536c1a7cf$export$40bfa8c7b0832715, g as $03deb23ff14920c4$export$4eaf04e54aa8eed6, A as $7215afc6de606d6b$export$de79e2c695e052f3, B as $46d819fcbaf35654$export$8f71654801c2f7cd, o as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, d as $c87311424ea30a05$export$fedb369cb70207f1, s as $c87311424ea30a05$export$a11b0059900ceec8, y as $6179b936705e76d3$export$ae780daf29e6d456 } from "../../useHover-DkmPQdGE.js";
|
|
8
|
-
import { a as $799cddbef784668f$export$4cde5df63f53f473, b as $799cddbef784668f$export$6e865ea70d7724f, c as $3493a52097159720$exports, C as ColorSwatch } from "../../color-swatch-bUFkK7ox.js";
|
|
9
|
-
import { a as $9446cca9a3875146$export$cb6e0bb50bc19463, $ as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "../../number-7sOvrqo0.js";
|
|
10
|
-
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "../../useLabels-D8O3gOdV.js";
|
|
11
|
-
import { $ as $99facab73266f662$export$5add1d006293d136 } from "../../useFormReset-BoxsKyJ9.js";
|
|
12
|
-
import { d as $28f99e3e86e6ec45$export$e5fda3247f5d67f9, e as $e8a7022cf87cba2a$export$36da96379f79f245, f as $bcca50147b47f54d$export$56b2c08e277f365, g as $47b897dc8cdb026b$export$8d15029008292ae, h as $6f909507e6374d18$export$1e7083018727fa60, i as $6f909507e6374d18$export$f1fce0420cc6d8ee, j as $6f909507e6374d18$export$6189c2744041d8f8, a as $6f909507e6374d18$export$105594979f116971 } from "../../Slider-bR3fAmim.js";
|
|
13
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../../context-iUFQCK8m.js";
|
|
14
|
-
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "../../useLocalizedStringFormatter-CEDs0LsA.js";
|
|
15
|
-
import { a as $5c3e21d68f1c4674$export$a966af930f325cab } from "../../VisuallyHidden-DZnWrkn8.js";
|
|
16
|
-
import { $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "../../FieldError-BPG0hKfB.js";
|
|
17
|
-
import { b as $3985021b0ad6602f$export$37fb8590cf2c088c, a as $a049562f99e7db0e$export$f9c6924e160136d1, $ as $3985021b0ad6602f$export$f5b8910cec6cf069 } from "../../Input-BG9DaxYN.js";
|
|
18
|
-
import { a as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "../../Label-_aSf9-8u.js";
|
|
19
|
-
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "../../Text-CjFEHSfr.js";
|
|
20
|
-
import { $ as $de67e98908f0c6ee$export$7f629e9dc1ecf37c, b as $d2e8511e6f209edf$export$e908e06f4b8e3402, c as $7d0a636d7a4dcefd$export$2123ff2b87c81ca, d as $d841c8010a73d545$export$4f384c9210e583c3, a as $81397a9303501bda$export$23f548e970bdf099 } from "../../useNumberField-CsygZKz9.js";
|
|
21
|
-
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, b as $e5be200c675c3b3a$export$a763b9476acd3eb } from "../../useFormValidation-BrbMhS2N.js";
|
|
22
|
-
import { c as clsx } from "../../clsx-DgYk2OaC.js";
|
|
23
|
-
import { BaseControl } from "../base-control/base-control.js";
|
|
24
|
-
import { _ as __ } from "../../default-i18n-CnQeC5Pl.js";
|
|
25
|
-
import { TriggeredPopover } from "../popover/popover.js";
|
|
26
|
-
import { icons } from "../../icons/icons.js";
|
|
27
|
-
const $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, [
|
|
36
|
-
colorValue,
|
|
37
|
-
colorSpace
|
|
38
|
-
]);
|
|
39
|
-
let valueRef = useRef(color);
|
|
40
|
-
let setColor = (color2) => {
|
|
41
|
-
valueRef.current = color2;
|
|
42
|
-
setColorState(color2);
|
|
43
|
-
};
|
|
44
|
-
let channels = useMemo(() => color.getColorSpaceAxes({
|
|
45
|
-
xChannel,
|
|
46
|
-
yChannel
|
|
47
|
-
}), [
|
|
48
|
-
color,
|
|
49
|
-
xChannel,
|
|
50
|
-
yChannel
|
|
51
|
-
]);
|
|
52
|
-
let xChannelRange = color.getChannelRange(channels.xChannel);
|
|
53
|
-
let yChannelRange = color.getChannelRange(channels.yChannel);
|
|
54
|
-
let { minValue: minValueX, maxValue: maxValueX, step: stepX, pageSize: pageSizeX } = xChannelRange;
|
|
55
|
-
let { minValue: minValueY, maxValue: maxValueY, step: stepY, pageSize: pageSizeY } = yChannelRange;
|
|
56
|
-
let [isDragging, setDragging] = useState(false);
|
|
57
|
-
let isDraggingRef = useRef(false);
|
|
58
|
-
let xValue = color.getChannelValue(channels.xChannel);
|
|
59
|
-
let yValue = color.getChannelValue(channels.yChannel);
|
|
60
|
-
let setXValue = (v) => {
|
|
61
|
-
if (v === xValue) return;
|
|
62
|
-
let newColor = color.withChannelValue(channels.xChannel, v);
|
|
63
|
-
setColor(newColor);
|
|
64
|
-
};
|
|
65
|
-
let setYValue = (v) => {
|
|
66
|
-
if (v === yValue) return;
|
|
67
|
-
let newColor = color.withChannelValue(channels.yChannel, v);
|
|
68
|
-
setColor(newColor);
|
|
69
|
-
};
|
|
70
|
-
return {
|
|
71
|
-
channels,
|
|
72
|
-
xChannelStep: stepX,
|
|
73
|
-
yChannelStep: stepY,
|
|
74
|
-
xChannelPageStep: pageSizeX,
|
|
75
|
-
yChannelPageStep: pageSizeY,
|
|
76
|
-
value: color,
|
|
77
|
-
defaultValue: value !== void 0 ? initialValue : defaultValue,
|
|
78
|
-
setValue(value2) {
|
|
79
|
-
setColor($799cddbef784668f$export$4cde5df63f53f473(value2));
|
|
80
|
-
},
|
|
81
|
-
xValue,
|
|
82
|
-
setXValue,
|
|
83
|
-
yValue,
|
|
84
|
-
setYValue,
|
|
85
|
-
setColorFromPoint(x, y) {
|
|
86
|
-
let newXValue = minValueX + $9446cca9a3875146$export$7d15b64cf5a3a4c4(x, 0, 1) * (maxValueX - minValueX);
|
|
87
|
-
let newYValue = minValueY + (1 - $9446cca9a3875146$export$7d15b64cf5a3a4c4(y, 0, 1)) * (maxValueY - minValueY);
|
|
88
|
-
let newColor;
|
|
89
|
-
if (newXValue !== xValue) {
|
|
90
|
-
newXValue = $9446cca9a3875146$export$cb6e0bb50bc19463(newXValue, minValueX, maxValueX, stepX);
|
|
91
|
-
newColor = color.withChannelValue(channels.xChannel, newXValue);
|
|
92
|
-
}
|
|
93
|
-
if (newYValue !== yValue) {
|
|
94
|
-
newYValue = $9446cca9a3875146$export$cb6e0bb50bc19463(newYValue, minValueY, maxValueY, stepY);
|
|
95
|
-
newColor = (newColor || color).withChannelValue(channels.yChannel, newYValue);
|
|
96
|
-
}
|
|
97
|
-
if (newColor) setColor(newColor);
|
|
98
|
-
},
|
|
99
|
-
getThumbPosition() {
|
|
100
|
-
let x = (xValue - minValueX) / (maxValueX - minValueX);
|
|
101
|
-
let y = 1 - (yValue - minValueY) / (maxValueY - minValueY);
|
|
102
|
-
return {
|
|
103
|
-
x,
|
|
104
|
-
y
|
|
105
|
-
};
|
|
106
|
-
},
|
|
107
|
-
incrementX(stepSize = 1) {
|
|
108
|
-
setXValue(xValue + stepSize > maxValueX ? maxValueX : $9446cca9a3875146$export$cb6e0bb50bc19463(xValue + stepSize, minValueX, maxValueX, stepX));
|
|
109
|
-
},
|
|
110
|
-
incrementY(stepSize = 1) {
|
|
111
|
-
setYValue(yValue + stepSize > maxValueY ? maxValueY : $9446cca9a3875146$export$cb6e0bb50bc19463(yValue + stepSize, minValueY, maxValueY, stepY));
|
|
112
|
-
},
|
|
113
|
-
decrementX(stepSize = 1) {
|
|
114
|
-
setXValue($9446cca9a3875146$export$cb6e0bb50bc19463(xValue - stepSize, minValueX, maxValueX, stepX));
|
|
115
|
-
},
|
|
116
|
-
decrementY(stepSize = 1) {
|
|
117
|
-
setYValue($9446cca9a3875146$export$cb6e0bb50bc19463(yValue - stepSize, minValueY, maxValueY, stepY));
|
|
118
|
-
},
|
|
119
|
-
setDragging(isDragging2) {
|
|
120
|
-
let wasDragging = isDraggingRef.current;
|
|
121
|
-
isDraggingRef.current = isDragging2;
|
|
122
|
-
if (onChangeEnd && !isDragging2 && wasDragging) onChangeEnd(valueRef.current);
|
|
123
|
-
setDragging(isDragging2);
|
|
124
|
-
},
|
|
125
|
-
isDragging,
|
|
126
|
-
getDisplayColor() {
|
|
127
|
-
return color.withChannelValue("alpha", 1);
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
function $25a25ac0d1624665$export$57bc203e1c9c6d44(props) {
|
|
132
|
-
let { channel, colorSpace, value, defaultValue, onChange, locale, ...otherProps } = props;
|
|
133
|
-
if (value == null && defaultValue == null) throw new Error("useColorSliderState requires a value or defaultValue");
|
|
134
|
-
if (value) value = $799cddbef784668f$export$4cde5df63f53f473(value);
|
|
135
|
-
if (defaultValue) defaultValue = $799cddbef784668f$export$4cde5df63f53f473(defaultValue);
|
|
136
|
-
let [colorValue, setColor] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(value, defaultValue, onChange);
|
|
137
|
-
let color = useMemo(() => colorSpace && colorValue ? colorValue.toFormat(colorSpace) : colorValue, [
|
|
138
|
-
colorValue,
|
|
139
|
-
colorSpace
|
|
140
|
-
]);
|
|
141
|
-
let [initialValue] = useState(colorValue);
|
|
142
|
-
let defaultColorValue = defaultValue !== null && defaultValue !== void 0 ? defaultValue : initialValue;
|
|
143
|
-
let defaultColor = useMemo(() => colorSpace && defaultColorValue ? defaultColorValue.toFormat(colorSpace) : defaultColorValue, [
|
|
144
|
-
defaultColorValue,
|
|
145
|
-
colorSpace
|
|
146
|
-
]);
|
|
147
|
-
let sliderState = $28f99e3e86e6ec45$export$e5fda3247f5d67f9({
|
|
148
|
-
...color.getChannelRange(channel),
|
|
149
|
-
...otherProps,
|
|
150
|
-
// Unused except in getThumbValueLabel, which is overridden below. null to localize the TypeScript error for ignoring.
|
|
151
|
-
// @ts-ignore
|
|
152
|
-
numberFormatter: null,
|
|
153
|
-
value: color.getChannelValue(channel),
|
|
154
|
-
defaultValue: defaultColor.getChannelValue(channel),
|
|
155
|
-
onChange(v) {
|
|
156
|
-
setColor(color.withChannelValue(channel, v));
|
|
157
|
-
},
|
|
158
|
-
onChangeEnd(v) {
|
|
159
|
-
if (props.onChangeEnd) props.onChangeEnd(color.withChannelValue(channel, v));
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
|
-
let { step, pageSize } = color.getChannelRange(channel);
|
|
163
|
-
return {
|
|
164
|
-
...sliderState,
|
|
165
|
-
value: color,
|
|
166
|
-
setValue(value2) {
|
|
167
|
-
setColor($799cddbef784668f$export$4cde5df63f53f473(value2));
|
|
168
|
-
},
|
|
169
|
-
getDisplayColor() {
|
|
170
|
-
switch (channel) {
|
|
171
|
-
case "hue":
|
|
172
|
-
return $799cddbef784668f$export$6e865ea70d7724f(`hsl(${color.getChannelValue("hue")}, 100%, 50%)`);
|
|
173
|
-
case "lightness":
|
|
174
|
-
case "brightness":
|
|
175
|
-
case "saturation":
|
|
176
|
-
case "red":
|
|
177
|
-
case "green":
|
|
178
|
-
case "blue":
|
|
179
|
-
return color.withChannelValue("alpha", 1);
|
|
180
|
-
case "alpha":
|
|
181
|
-
return color;
|
|
182
|
-
default:
|
|
183
|
-
throw new Error("Unknown color channel: " + channel);
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
|
-
getThumbValueLabel() {
|
|
187
|
-
return color.formatChannelValue(channel, locale);
|
|
188
|
-
},
|
|
189
|
-
step,
|
|
190
|
-
pageSize,
|
|
191
|
-
isDragging: sliderState.isThumbDragging(0)
|
|
192
|
-
};
|
|
193
|
-
}
|
|
194
|
-
function $aa90ad8b2b1d015f$export$5aadd9c0606af5c2(value) {
|
|
195
|
-
return useMemo(() => {
|
|
196
|
-
if (typeof value === "string") try {
|
|
197
|
-
return (0, $799cddbef784668f$export$6e865ea70d7724f)(value);
|
|
198
|
-
} catch {
|
|
199
|
-
return void 0;
|
|
200
|
-
}
|
|
201
|
-
return value;
|
|
202
|
-
}, [
|
|
203
|
-
value
|
|
204
|
-
]);
|
|
205
|
-
}
|
|
206
|
-
const $b335ada08155d9c0$var$MIN_COLOR = $799cddbef784668f$export$6e865ea70d7724f("#000000");
|
|
207
|
-
const $b335ada08155d9c0$var$MAX_COLOR = $799cddbef784668f$export$6e865ea70d7724f("#FFFFFF");
|
|
208
|
-
const $b335ada08155d9c0$var$MIN_COLOR_INT = $b335ada08155d9c0$var$MIN_COLOR.toHexInt();
|
|
209
|
-
const $b335ada08155d9c0$var$MAX_COLOR_INT = $b335ada08155d9c0$var$MAX_COLOR.toHexInt();
|
|
210
|
-
function $b335ada08155d9c0$export$d52a01683abdfcd6(props) {
|
|
211
|
-
let { value, defaultValue, onChange } = props;
|
|
212
|
-
let { step } = $b335ada08155d9c0$var$MIN_COLOR.getChannelRange("red");
|
|
213
|
-
let initialDefaultValue = $aa90ad8b2b1d015f$export$5aadd9c0606af5c2(defaultValue);
|
|
214
|
-
let [colorValue, setColorValue] = $458b0a5536c1a7cf$export$40bfa8c7b0832715($aa90ad8b2b1d015f$export$5aadd9c0606af5c2(value), initialDefaultValue, onChange);
|
|
215
|
-
let [initialValue] = useState(colorValue);
|
|
216
|
-
let [inputValue, setInputValue] = useState(() => (value || defaultValue) && colorValue ? colorValue.toString("hex") : "");
|
|
217
|
-
let validation = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
|
|
218
|
-
...props,
|
|
219
|
-
value: colorValue
|
|
220
|
-
});
|
|
221
|
-
let safelySetColorValue = (newColor) => {
|
|
222
|
-
if (!colorValue || !newColor) {
|
|
223
|
-
setColorValue(newColor);
|
|
224
|
-
return;
|
|
225
|
-
}
|
|
226
|
-
if (newColor.toHexInt() !== colorValue.toHexInt()) {
|
|
227
|
-
setColorValue(newColor);
|
|
228
|
-
return;
|
|
229
|
-
}
|
|
230
|
-
};
|
|
231
|
-
let [prevValue, setPrevValue] = useState(colorValue);
|
|
232
|
-
if (prevValue !== colorValue) {
|
|
233
|
-
setInputValue(colorValue ? colorValue.toString("hex") : "");
|
|
234
|
-
setPrevValue(colorValue);
|
|
235
|
-
}
|
|
236
|
-
let parsedValue = useMemo(() => {
|
|
237
|
-
let color;
|
|
238
|
-
try {
|
|
239
|
-
color = (0, $799cddbef784668f$export$6e865ea70d7724f)(inputValue.startsWith("#") ? inputValue : `#${inputValue}`);
|
|
240
|
-
} catch {
|
|
241
|
-
color = null;
|
|
242
|
-
}
|
|
243
|
-
return color;
|
|
244
|
-
}, [
|
|
245
|
-
inputValue
|
|
246
|
-
]);
|
|
247
|
-
let commit = () => {
|
|
248
|
-
if (!inputValue.length) {
|
|
249
|
-
safelySetColorValue(null);
|
|
250
|
-
if (value === void 0 || colorValue === null) setInputValue("");
|
|
251
|
-
else setInputValue(colorValue.toString("hex"));
|
|
252
|
-
return;
|
|
253
|
-
}
|
|
254
|
-
if (parsedValue == null) {
|
|
255
|
-
setInputValue(colorValue ? colorValue.toString("hex") : "");
|
|
256
|
-
return;
|
|
257
|
-
}
|
|
258
|
-
safelySetColorValue(parsedValue);
|
|
259
|
-
let newColorValue = "";
|
|
260
|
-
if (colorValue) newColorValue = colorValue.toString("hex");
|
|
261
|
-
setInputValue(newColorValue);
|
|
262
|
-
validation.commitValidation();
|
|
263
|
-
};
|
|
264
|
-
let increment = () => {
|
|
265
|
-
let newValue = $b335ada08155d9c0$var$addColorValue(parsedValue, step);
|
|
266
|
-
if (newValue === colorValue) setInputValue(newValue.toString("hex"));
|
|
267
|
-
safelySetColorValue(newValue);
|
|
268
|
-
validation.commitValidation();
|
|
269
|
-
};
|
|
270
|
-
let decrement = () => {
|
|
271
|
-
let newValue = $b335ada08155d9c0$var$addColorValue(parsedValue, -step);
|
|
272
|
-
if (newValue === colorValue) setInputValue(newValue.toString("hex"));
|
|
273
|
-
safelySetColorValue(newValue);
|
|
274
|
-
validation.commitValidation();
|
|
275
|
-
};
|
|
276
|
-
let incrementToMax = () => safelySetColorValue($b335ada08155d9c0$var$MAX_COLOR);
|
|
277
|
-
let decrementToMin = () => safelySetColorValue($b335ada08155d9c0$var$MIN_COLOR);
|
|
278
|
-
let validate = (value2) => {
|
|
279
|
-
var _value_match;
|
|
280
|
-
return value2 === "" || !!((_value_match = value2.match(/^#?[0-9a-f]{0,6}$/i)) === null || _value_match === void 0 ? void 0 : _value_match[0]);
|
|
281
|
-
};
|
|
282
|
-
return {
|
|
283
|
-
...validation,
|
|
284
|
-
validate,
|
|
285
|
-
colorValue,
|
|
286
|
-
defaultColorValue: initialDefaultValue !== null && initialDefaultValue !== void 0 ? initialDefaultValue : initialValue,
|
|
287
|
-
setColorValue,
|
|
288
|
-
inputValue,
|
|
289
|
-
setInputValue,
|
|
290
|
-
commit,
|
|
291
|
-
increment,
|
|
292
|
-
incrementToMax,
|
|
293
|
-
decrement,
|
|
294
|
-
decrementToMin
|
|
295
|
-
};
|
|
296
|
-
}
|
|
297
|
-
function $b335ada08155d9c0$var$addColorValue(color, step) {
|
|
298
|
-
let newColor = color ? color : $b335ada08155d9c0$var$MIN_COLOR;
|
|
299
|
-
let colorInt = newColor.toHexInt();
|
|
300
|
-
let clampInt = Math.min(Math.max(colorInt + step, $b335ada08155d9c0$var$MIN_COLOR_INT), $b335ada08155d9c0$var$MAX_COLOR_INT);
|
|
301
|
-
if (clampInt !== colorInt) {
|
|
302
|
-
let newColorString = `#${clampInt.toString(16).padStart(6, "0").toUpperCase()}`;
|
|
303
|
-
newColor = $799cddbef784668f$export$6e865ea70d7724f(newColorString);
|
|
304
|
-
}
|
|
305
|
-
return newColor;
|
|
306
|
-
}
|
|
307
|
-
function $31a863bb88e75dd6$export$b9fc0d69c9190c4a(props) {
|
|
308
|
-
let { channel, colorSpace, locale } = props;
|
|
309
|
-
let initialValue = $aa90ad8b2b1d015f$export$5aadd9c0606af5c2(props.value);
|
|
310
|
-
let initialDefaultValue = $aa90ad8b2b1d015f$export$5aadd9c0606af5c2(props.defaultValue);
|
|
311
|
-
let [colorValue, setColor] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(initialValue, initialDefaultValue !== null && initialDefaultValue !== void 0 ? initialDefaultValue : null, props.onChange);
|
|
312
|
-
let color = $31a863bb88e75dd6$var$useConvertColor(colorValue, colorSpace);
|
|
313
|
-
let [initialColorValue] = useState(colorValue);
|
|
314
|
-
let defaultColorValue = initialDefaultValue !== null && initialDefaultValue !== void 0 ? initialDefaultValue : initialColorValue;
|
|
315
|
-
let defaultColor = $31a863bb88e75dd6$var$useConvertColor(defaultColorValue, colorSpace);
|
|
316
|
-
let value = color.getChannelValue(channel);
|
|
317
|
-
let range = color.getChannelRange(channel);
|
|
318
|
-
let formatOptions = useMemo(() => color.getChannelFormatOptions(channel), [
|
|
319
|
-
color,
|
|
320
|
-
channel
|
|
321
|
-
]);
|
|
322
|
-
let multiplier = formatOptions.style === "percent" && range.maxValue === 100 ? 100 : 1;
|
|
323
|
-
let numberFieldState = $de67e98908f0c6ee$export$7f629e9dc1ecf37c({
|
|
324
|
-
locale,
|
|
325
|
-
value: colorValue === null ? NaN : value / multiplier,
|
|
326
|
-
defaultValue: defaultColorValue === null ? NaN : defaultColor.getChannelValue(channel) / multiplier,
|
|
327
|
-
onChange: (v) => {
|
|
328
|
-
if (!Number.isNaN(v)) setColor(color.withChannelValue(channel, v * multiplier));
|
|
329
|
-
else setColor(null);
|
|
330
|
-
},
|
|
331
|
-
minValue: range.minValue / multiplier,
|
|
332
|
-
maxValue: range.maxValue / multiplier,
|
|
333
|
-
step: range.step / multiplier,
|
|
334
|
-
formatOptions
|
|
335
|
-
});
|
|
336
|
-
return {
|
|
337
|
-
...numberFieldState,
|
|
338
|
-
colorValue: color,
|
|
339
|
-
defaultColorValue,
|
|
340
|
-
setColorValue: setColor
|
|
341
|
-
};
|
|
342
|
-
}
|
|
343
|
-
function $31a863bb88e75dd6$var$useConvertColor(colorValue, colorSpace) {
|
|
344
|
-
let black = $aa90ad8b2b1d015f$export$5aadd9c0606af5c2("#000");
|
|
345
|
-
return useMemo(() => {
|
|
346
|
-
let nonNullColorValue = colorValue || black;
|
|
347
|
-
return colorSpace && nonNullColorValue ? nonNullColorValue.toFormat(colorSpace) : nonNullColorValue;
|
|
348
|
-
}, [
|
|
349
|
-
black,
|
|
350
|
-
colorValue,
|
|
351
|
-
colorSpace
|
|
352
|
-
]);
|
|
353
|
-
}
|
|
354
|
-
const $40297c24c53588e6$var$hue = (color) => [
|
|
355
|
-
0,
|
|
356
|
-
60,
|
|
357
|
-
120,
|
|
358
|
-
180,
|
|
359
|
-
240,
|
|
360
|
-
300,
|
|
361
|
-
360
|
|
362
|
-
].map((hue) => color.withChannelValue("hue", hue).toString("css")).join(", ");
|
|
363
|
-
const $40297c24c53588e6$var$saturation = (color) => `${color.withChannelValue("saturation", 0)}, transparent`;
|
|
364
|
-
const $40297c24c53588e6$var$hslChannels = {
|
|
365
|
-
hue: $40297c24c53588e6$var$hue,
|
|
366
|
-
saturation: $40297c24c53588e6$var$saturation,
|
|
367
|
-
lightness: () => "black, transparent, white"
|
|
368
|
-
};
|
|
369
|
-
const $40297c24c53588e6$var$hsbChannels = {
|
|
370
|
-
hue: $40297c24c53588e6$var$hue,
|
|
371
|
-
saturation: $40297c24c53588e6$var$saturation,
|
|
372
|
-
brightness: () => "black, transparent"
|
|
373
|
-
};
|
|
374
|
-
function $40297c24c53588e6$export$dd62420467d245ca({ direction, state, zChannel, xChannel, yChannel }) {
|
|
375
|
-
let returnVal = useMemo(() => {
|
|
376
|
-
let end = direction === "rtl" ? "left" : "right";
|
|
377
|
-
let colorAreaStyles = {};
|
|
378
|
-
let zValue = state.value.getChannelValue(zChannel);
|
|
379
|
-
switch (state.value.getColorSpace()) {
|
|
380
|
-
case "rgb": {
|
|
381
|
-
let rgb = $799cddbef784668f$export$6e865ea70d7724f("rgb(0, 0, 0)");
|
|
382
|
-
colorAreaStyles = {
|
|
383
|
-
background: [
|
|
384
|
-
// The screen blend mode multiplies the inverse of each channel, e.g. 1 - (1 - a) * (1 - b).
|
|
385
|
-
// Create a layer for each channel, with the other channels as 0. After blending, this should
|
|
386
|
-
// result in the gradients being combined channel by channel.
|
|
387
|
-
`linear-gradient(to ${end}, ${rgb.withChannelValue(xChannel, 0)}, ${rgb.withChannelValue(xChannel, 255)})`,
|
|
388
|
-
`linear-gradient(to top, ${rgb.withChannelValue(yChannel, 0)}, ${rgb.withChannelValue(yChannel, 255)})`,
|
|
389
|
-
rgb.withChannelValue(zChannel, zValue)
|
|
390
|
-
].join(","),
|
|
391
|
-
backgroundBlendMode: "screen"
|
|
392
|
-
};
|
|
393
|
-
break;
|
|
394
|
-
}
|
|
395
|
-
case "hsl": {
|
|
396
|
-
let channels = state.value.getColorChannels();
|
|
397
|
-
let value = $799cddbef784668f$export$6e865ea70d7724f("hsl(0, 100%, 50%)").withChannelValue(zChannel, zValue);
|
|
398
|
-
let bg = channels.filter((c) => c !== zChannel).map((c) => `linear-gradient(to ${c === xChannel ? end : "top"}, ${$40297c24c53588e6$var$hslChannels[c](value)})`).reverse();
|
|
399
|
-
if (zChannel === "hue") bg.push(value.toString("css"));
|
|
400
|
-
colorAreaStyles = {
|
|
401
|
-
background: bg.join(", ")
|
|
402
|
-
};
|
|
403
|
-
break;
|
|
404
|
-
}
|
|
405
|
-
case "hsb": {
|
|
406
|
-
let channels = state.value.getColorChannels();
|
|
407
|
-
let value = $799cddbef784668f$export$6e865ea70d7724f("hsb(0, 100%, 100%)").withChannelValue(zChannel, zValue);
|
|
408
|
-
let bg = channels.filter((c) => c !== zChannel).map((c) => `linear-gradient(to ${c === xChannel ? end : "top"}, ${$40297c24c53588e6$var$hsbChannels[c](value)})`).reverse();
|
|
409
|
-
if (zChannel === "hue") bg.push(value.toString("css"));
|
|
410
|
-
colorAreaStyles = {
|
|
411
|
-
background: bg.join(", ")
|
|
412
|
-
};
|
|
413
|
-
break;
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
let { x, y } = state.getThumbPosition();
|
|
417
|
-
if (direction === "rtl") x = 1 - x;
|
|
418
|
-
let forcedColorAdjustNoneStyle = {
|
|
419
|
-
forcedColorAdjust: "none"
|
|
420
|
-
};
|
|
421
|
-
return {
|
|
422
|
-
colorAreaStyleProps: {
|
|
423
|
-
style: {
|
|
424
|
-
position: "relative",
|
|
425
|
-
touchAction: "none",
|
|
426
|
-
...forcedColorAdjustNoneStyle,
|
|
427
|
-
...colorAreaStyles
|
|
428
|
-
}
|
|
429
|
-
},
|
|
430
|
-
thumbStyleProps: {
|
|
431
|
-
style: {
|
|
432
|
-
position: "absolute",
|
|
433
|
-
left: `${x * 100}%`,
|
|
434
|
-
top: `${y * 100}%`,
|
|
435
|
-
transform: "translate(-50%, -50%)",
|
|
436
|
-
touchAction: "none",
|
|
437
|
-
...forcedColorAdjustNoneStyle
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
};
|
|
441
|
-
}, [
|
|
442
|
-
direction,
|
|
443
|
-
state,
|
|
444
|
-
zChannel,
|
|
445
|
-
xChannel,
|
|
446
|
-
yChannel
|
|
447
|
-
]);
|
|
448
|
-
return returnVal;
|
|
449
|
-
}
|
|
450
|
-
function $parcel$interopDefault(a) {
|
|
451
|
-
return a && a.__esModule ? a.default : a;
|
|
452
|
-
}
|
|
453
|
-
function $60bd7d6e45dcddfa$export$2f92a7a615a014f6(props, state) {
|
|
454
|
-
let { isDisabled, inputXRef, inputYRef, containerRef, "aria-label": ariaLabel, xName, yName, form } = props;
|
|
455
|
-
let stringFormatter = $fca6afa0e843324b$export$f12b703ca79dfbb1($parcel$interopDefault($3493a52097159720$exports), "@react-aria/color");
|
|
456
|
-
let { addGlobalListener, removeGlobalListener } = $03deb23ff14920c4$export$4eaf04e54aa8eed6();
|
|
457
|
-
let { direction, locale } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
458
|
-
let [focusedInput, setFocusedInput] = useState(null);
|
|
459
|
-
let focusInput = useCallback((inputRef = inputXRef) => {
|
|
460
|
-
if (inputRef.current) $7215afc6de606d6b$export$de79e2c695e052f3(inputRef.current);
|
|
461
|
-
}, [
|
|
462
|
-
inputXRef
|
|
463
|
-
]);
|
|
464
|
-
$99facab73266f662$export$5add1d006293d136(inputXRef, state.defaultValue, state.setValue);
|
|
465
|
-
let [valueChangedViaKeyboard, setValueChangedViaKeyboard] = useState(false);
|
|
466
|
-
let [valueChangedViaInputChangeEvent, setValueChangedViaInputChangeEvent] = useState(false);
|
|
467
|
-
let { xChannel, yChannel, zChannel } = state.channels;
|
|
468
|
-
let xChannelStep = state.xChannelStep;
|
|
469
|
-
let yChannelStep = state.yChannelStep;
|
|
470
|
-
let currentPosition = useRef(null);
|
|
471
|
-
let { keyboardProps } = $46d819fcbaf35654$export$8f71654801c2f7cd({
|
|
472
|
-
onKeyDown(e) {
|
|
473
|
-
if (!/^(PageUp|PageDown|Home|End)$/.test(e.key)) {
|
|
474
|
-
e.continuePropagation();
|
|
475
|
-
return;
|
|
476
|
-
}
|
|
477
|
-
e.preventDefault();
|
|
478
|
-
state.setDragging(true);
|
|
479
|
-
setValueChangedViaKeyboard(true);
|
|
480
|
-
let dir;
|
|
481
|
-
switch (e.key) {
|
|
482
|
-
case "PageUp":
|
|
483
|
-
state.incrementY(state.yChannelPageStep);
|
|
484
|
-
dir = "y";
|
|
485
|
-
break;
|
|
486
|
-
case "PageDown":
|
|
487
|
-
state.decrementY(state.yChannelPageStep);
|
|
488
|
-
dir = "y";
|
|
489
|
-
break;
|
|
490
|
-
case "Home":
|
|
491
|
-
direction === "rtl" ? state.incrementX(state.xChannelPageStep) : state.decrementX(state.xChannelPageStep);
|
|
492
|
-
dir = "x";
|
|
493
|
-
break;
|
|
494
|
-
case "End":
|
|
495
|
-
direction === "rtl" ? state.decrementX(state.xChannelPageStep) : state.incrementX(state.xChannelPageStep);
|
|
496
|
-
dir = "x";
|
|
497
|
-
break;
|
|
498
|
-
}
|
|
499
|
-
state.setDragging(false);
|
|
500
|
-
if (dir) {
|
|
501
|
-
let input = dir === "x" ? inputXRef : inputYRef;
|
|
502
|
-
focusInput(input);
|
|
503
|
-
setFocusedInput(dir);
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
});
|
|
507
|
-
let moveHandler = {
|
|
508
|
-
onMoveStart() {
|
|
509
|
-
currentPosition.current = null;
|
|
510
|
-
state.setDragging(true);
|
|
511
|
-
},
|
|
512
|
-
onMove({ deltaX, deltaY, pointerType, shiftKey }) {
|
|
513
|
-
var _containerRef_current;
|
|
514
|
-
let { incrementX, decrementX, incrementY, decrementY, xChannelPageStep, xChannelStep: xChannelStep2, yChannelPageStep, yChannelStep: yChannelStep2, getThumbPosition, setColorFromPoint } = state;
|
|
515
|
-
if (currentPosition.current == null) currentPosition.current = getThumbPosition();
|
|
516
|
-
let { width, height } = ((_containerRef_current = containerRef.current) === null || _containerRef_current === void 0 ? void 0 : _containerRef_current.getBoundingClientRect()) || {
|
|
517
|
-
width: 0,
|
|
518
|
-
height: 0
|
|
519
|
-
};
|
|
520
|
-
let valueChanged = deltaX !== 0 || deltaY !== 0;
|
|
521
|
-
if (pointerType === "keyboard") {
|
|
522
|
-
let deltaXValue = shiftKey && xChannelPageStep > xChannelStep2 ? xChannelPageStep : xChannelStep2;
|
|
523
|
-
let deltaYValue = shiftKey && yChannelPageStep > yChannelStep2 ? yChannelPageStep : yChannelStep2;
|
|
524
|
-
if (deltaX > 0 && direction === "ltr" || deltaX < 0 && direction === "rtl") incrementX(deltaXValue);
|
|
525
|
-
else if (deltaX < 0 && direction === "ltr" || deltaX > 0 && direction === "rtl") decrementX(deltaXValue);
|
|
526
|
-
else if (deltaY > 0) decrementY(deltaYValue);
|
|
527
|
-
else if (deltaY < 0) incrementY(deltaYValue);
|
|
528
|
-
setValueChangedViaKeyboard(valueChanged);
|
|
529
|
-
focusedInput = valueChanged && Math.abs(deltaY) > Math.abs(deltaX) ? "y" : "x";
|
|
530
|
-
setFocusedInput(focusedInput);
|
|
531
|
-
} else {
|
|
532
|
-
currentPosition.current.x += (direction === "rtl" ? -1 : 1) * deltaX / width;
|
|
533
|
-
currentPosition.current.y += deltaY / height;
|
|
534
|
-
setColorFromPoint(currentPosition.current.x, currentPosition.current.y);
|
|
535
|
-
}
|
|
536
|
-
},
|
|
537
|
-
onMoveEnd() {
|
|
538
|
-
isOnColorArea.current = false;
|
|
539
|
-
state.setDragging(false);
|
|
540
|
-
let input = focusedInput === "x" ? inputXRef : inputYRef;
|
|
541
|
-
focusInput(input);
|
|
542
|
-
}
|
|
543
|
-
};
|
|
544
|
-
let { moveProps: movePropsThumb } = $e8a7022cf87cba2a$export$36da96379f79f245(moveHandler);
|
|
545
|
-
let { focusWithinProps } = $9ab94262bd0047c7$export$420e68273165f4ec({
|
|
546
|
-
onFocusWithinChange: (focusWithin) => {
|
|
547
|
-
if (!focusWithin) {
|
|
548
|
-
setValueChangedViaKeyboard(false);
|
|
549
|
-
setValueChangedViaInputChangeEvent(false);
|
|
550
|
-
}
|
|
551
|
-
}
|
|
552
|
-
});
|
|
553
|
-
let currentPointer = useRef(void 0);
|
|
554
|
-
let isOnColorArea = useRef(false);
|
|
555
|
-
let { moveProps: movePropsContainer } = $e8a7022cf87cba2a$export$36da96379f79f245({
|
|
556
|
-
onMoveStart() {
|
|
557
|
-
if (isOnColorArea.current) moveHandler.onMoveStart();
|
|
558
|
-
},
|
|
559
|
-
onMove(e) {
|
|
560
|
-
if (isOnColorArea.current) moveHandler.onMove(e);
|
|
561
|
-
},
|
|
562
|
-
onMoveEnd() {
|
|
563
|
-
if (isOnColorArea.current) moveHandler.onMoveEnd();
|
|
564
|
-
}
|
|
565
|
-
});
|
|
566
|
-
let onThumbDown = (id) => {
|
|
567
|
-
if (!state.isDragging) {
|
|
568
|
-
currentPointer.current = id;
|
|
569
|
-
setValueChangedViaKeyboard(false);
|
|
570
|
-
focusInput();
|
|
571
|
-
state.setDragging(true);
|
|
572
|
-
if (typeof PointerEvent !== "undefined") addGlobalListener(window, "pointerup", onThumbUp, false);
|
|
573
|
-
else {
|
|
574
|
-
addGlobalListener(window, "mouseup", onThumbUp, false);
|
|
575
|
-
addGlobalListener(window, "touchend", onThumbUp, false);
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
};
|
|
579
|
-
let onThumbUp = (e) => {
|
|
580
|
-
var _e_changedTouches;
|
|
581
|
-
var _e_pointerId;
|
|
582
|
-
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;
|
|
583
|
-
if (id === currentPointer.current) {
|
|
584
|
-
setValueChangedViaKeyboard(false);
|
|
585
|
-
focusInput();
|
|
586
|
-
state.setDragging(false);
|
|
587
|
-
currentPointer.current = void 0;
|
|
588
|
-
isOnColorArea.current = false;
|
|
589
|
-
if (typeof PointerEvent !== "undefined") removeGlobalListener(window, "pointerup", onThumbUp, false);
|
|
590
|
-
else {
|
|
591
|
-
removeGlobalListener(window, "mouseup", onThumbUp, false);
|
|
592
|
-
removeGlobalListener(window, "touchend", onThumbUp, false);
|
|
593
|
-
}
|
|
594
|
-
}
|
|
595
|
-
};
|
|
596
|
-
let onColorAreaDown = (colorArea, id, clientX, clientY) => {
|
|
597
|
-
let rect = colorArea.getBoundingClientRect();
|
|
598
|
-
let { width, height } = rect;
|
|
599
|
-
let x = (clientX - rect.x) / width;
|
|
600
|
-
let y = (clientY - rect.y) / height;
|
|
601
|
-
if (direction === "rtl") x = 1 - x;
|
|
602
|
-
if (x >= 0 && x <= 1 && y >= 0 && y <= 1 && !state.isDragging && currentPointer.current === void 0) {
|
|
603
|
-
isOnColorArea.current = true;
|
|
604
|
-
setValueChangedViaKeyboard(false);
|
|
605
|
-
currentPointer.current = id;
|
|
606
|
-
state.setColorFromPoint(x, y);
|
|
607
|
-
focusInput();
|
|
608
|
-
state.setDragging(true);
|
|
609
|
-
if (typeof PointerEvent !== "undefined") addGlobalListener(window, "pointerup", onColorAreaUp, false);
|
|
610
|
-
else {
|
|
611
|
-
addGlobalListener(window, "mouseup", onColorAreaUp, false);
|
|
612
|
-
addGlobalListener(window, "touchend", onColorAreaUp, false);
|
|
613
|
-
}
|
|
614
|
-
}
|
|
615
|
-
};
|
|
616
|
-
let onColorAreaUp = (e) => {
|
|
617
|
-
var _e_changedTouches;
|
|
618
|
-
var _e_pointerId;
|
|
619
|
-
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;
|
|
620
|
-
if (isOnColorArea.current && id === currentPointer.current) {
|
|
621
|
-
isOnColorArea.current = false;
|
|
622
|
-
setValueChangedViaKeyboard(false);
|
|
623
|
-
currentPointer.current = void 0;
|
|
624
|
-
state.setDragging(false);
|
|
625
|
-
focusInput();
|
|
626
|
-
if (typeof PointerEvent !== "undefined") removeGlobalListener(window, "pointerup", onColorAreaUp, false);
|
|
627
|
-
else {
|
|
628
|
-
removeGlobalListener(window, "mouseup", onColorAreaUp, false);
|
|
629
|
-
removeGlobalListener(window, "touchend", onColorAreaUp, false);
|
|
630
|
-
}
|
|
631
|
-
}
|
|
632
|
-
};
|
|
633
|
-
let colorAreaInteractions = isDisabled ? {} : $3ef42575df84b30b$export$9d1611c77c2fe928({
|
|
634
|
-
...typeof PointerEvent !== "undefined" ? {
|
|
635
|
-
onPointerDown: (e) => {
|
|
636
|
-
if (e.pointerType === "mouse" && (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey)) return;
|
|
637
|
-
onColorAreaDown(e.currentTarget, e.pointerId, e.clientX, e.clientY);
|
|
638
|
-
}
|
|
639
|
-
} : {
|
|
640
|
-
onMouseDown: (e) => {
|
|
641
|
-
if (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey) return;
|
|
642
|
-
onColorAreaDown(e.currentTarget, void 0, e.clientX, e.clientY);
|
|
643
|
-
},
|
|
644
|
-
onTouchStart: (e) => {
|
|
645
|
-
onColorAreaDown(e.currentTarget, e.changedTouches[0].identifier, e.changedTouches[0].clientX, e.changedTouches[0].clientY);
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
}, movePropsContainer);
|
|
649
|
-
let thumbInteractions = isDisabled ? {} : $3ef42575df84b30b$export$9d1611c77c2fe928({
|
|
650
|
-
...typeof PointerEvent !== "undefined" ? {
|
|
651
|
-
onPointerDown: (e) => {
|
|
652
|
-
if (e.pointerType === "mouse" && (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey)) return;
|
|
653
|
-
onThumbDown(e.pointerId);
|
|
654
|
-
}
|
|
655
|
-
} : {
|
|
656
|
-
onMouseDown: (e) => {
|
|
657
|
-
if (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey) return;
|
|
658
|
-
onThumbDown(void 0);
|
|
659
|
-
},
|
|
660
|
-
onTouchStart: (e) => {
|
|
661
|
-
onThumbDown(e.changedTouches[0].identifier);
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
}, focusWithinProps, keyboardProps, movePropsThumb);
|
|
665
|
-
let { focusProps: xInputFocusProps } = $a1ea59d68270f0dd$export$f8168d8dd8fd66e6({
|
|
666
|
-
onFocus: () => {
|
|
667
|
-
setFocusedInput("x");
|
|
668
|
-
}
|
|
669
|
-
});
|
|
670
|
-
let { focusProps: yInputFocusProps } = $a1ea59d68270f0dd$export$f8168d8dd8fd66e6({
|
|
671
|
-
onFocus: () => {
|
|
672
|
-
setFocusedInput("y");
|
|
673
|
-
}
|
|
674
|
-
});
|
|
675
|
-
const onChange = (e) => {
|
|
676
|
-
const { target } = e;
|
|
677
|
-
setValueChangedViaInputChangeEvent(true);
|
|
678
|
-
if (target === inputXRef.current) state.setXValue(parseFloat(target.value));
|
|
679
|
-
else if (target === inputYRef.current) state.setYValue(parseFloat(target.value));
|
|
680
|
-
};
|
|
681
|
-
let isMobile = $c87311424ea30a05$export$fedb369cb70207f1() || $c87311424ea30a05$export$a11b0059900ceec8();
|
|
682
|
-
let value = state.getDisplayColor();
|
|
683
|
-
const getAriaValueTextForChannel = useCallback((channel) => {
|
|
684
|
-
const isAfterInput = valueChangedViaInputChangeEvent || valueChangedViaKeyboard;
|
|
685
|
-
return `${isAfterInput ? stringFormatter.format("colorNameAndValue", {
|
|
686
|
-
name: value.getChannelName(channel, locale),
|
|
687
|
-
value: value.formatChannelValue(channel, locale)
|
|
688
|
-
}) : [
|
|
689
|
-
stringFormatter.format("colorNameAndValue", {
|
|
690
|
-
name: value.getChannelName(channel, locale),
|
|
691
|
-
value: value.formatChannelValue(channel, locale)
|
|
692
|
-
}),
|
|
693
|
-
stringFormatter.format("colorNameAndValue", {
|
|
694
|
-
name: value.getChannelName(channel === yChannel ? xChannel : yChannel, locale),
|
|
695
|
-
value: value.formatChannelValue(channel === yChannel ? xChannel : yChannel, locale)
|
|
696
|
-
}),
|
|
697
|
-
stringFormatter.format("colorNameAndValue", {
|
|
698
|
-
name: value.getChannelName(zChannel, locale),
|
|
699
|
-
value: value.formatChannelValue(zChannel, locale)
|
|
700
|
-
})
|
|
701
|
-
].join(", ")}, ${value.getColorName(locale)}`;
|
|
702
|
-
}, [
|
|
703
|
-
locale,
|
|
704
|
-
value,
|
|
705
|
-
stringFormatter,
|
|
706
|
-
valueChangedViaInputChangeEvent,
|
|
707
|
-
valueChangedViaKeyboard,
|
|
708
|
-
xChannel,
|
|
709
|
-
yChannel,
|
|
710
|
-
zChannel
|
|
711
|
-
]);
|
|
712
|
-
let colorPickerLabel = stringFormatter.format("colorPicker");
|
|
713
|
-
let xInputLabellingProps = $313b98861ee5dd6c$export$d6875122194c7b44({
|
|
714
|
-
...props,
|
|
715
|
-
"aria-label": ariaLabel ? stringFormatter.format("colorInputLabel", {
|
|
716
|
-
label: ariaLabel,
|
|
717
|
-
channelLabel: colorPickerLabel
|
|
718
|
-
}) : colorPickerLabel
|
|
719
|
-
});
|
|
720
|
-
let yInputLabellingProps = $313b98861ee5dd6c$export$d6875122194c7b44({
|
|
721
|
-
...props,
|
|
722
|
-
"aria-label": ariaLabel ? stringFormatter.format("colorInputLabel", {
|
|
723
|
-
label: ariaLabel,
|
|
724
|
-
channelLabel: colorPickerLabel
|
|
725
|
-
}) : colorPickerLabel
|
|
726
|
-
});
|
|
727
|
-
let colorAreaLabellingProps = $313b98861ee5dd6c$export$d6875122194c7b44({
|
|
728
|
-
...props,
|
|
729
|
-
"aria-label": ariaLabel ? `${ariaLabel}, ${colorPickerLabel}` : void 0
|
|
730
|
-
}, isMobile ? colorPickerLabel : void 0);
|
|
731
|
-
let ariaRoleDescription = stringFormatter.format("twoDimensionalSlider");
|
|
732
|
-
let { visuallyHiddenProps } = $5c3e21d68f1c4674$export$a966af930f325cab({
|
|
733
|
-
style: {
|
|
734
|
-
opacity: "0.0001",
|
|
735
|
-
width: "100%",
|
|
736
|
-
height: "100%",
|
|
737
|
-
pointerEvents: "none"
|
|
738
|
-
}
|
|
739
|
-
});
|
|
740
|
-
let { colorAreaStyleProps, thumbStyleProps } = $40297c24c53588e6$export$dd62420467d245ca({
|
|
741
|
-
direction,
|
|
742
|
-
state,
|
|
743
|
-
xChannel,
|
|
744
|
-
yChannel,
|
|
745
|
-
zChannel
|
|
746
|
-
});
|
|
747
|
-
return {
|
|
748
|
-
colorAreaProps: {
|
|
749
|
-
...colorAreaLabellingProps,
|
|
750
|
-
...colorAreaInteractions,
|
|
751
|
-
...colorAreaStyleProps,
|
|
752
|
-
role: "group"
|
|
753
|
-
},
|
|
754
|
-
thumbProps: {
|
|
755
|
-
...thumbInteractions,
|
|
756
|
-
...thumbStyleProps,
|
|
757
|
-
role: "presentation"
|
|
758
|
-
},
|
|
759
|
-
xInputProps: {
|
|
760
|
-
...xInputLabellingProps,
|
|
761
|
-
...visuallyHiddenProps,
|
|
762
|
-
...xInputFocusProps,
|
|
763
|
-
type: "range",
|
|
764
|
-
min: state.value.getChannelRange(xChannel).minValue,
|
|
765
|
-
max: state.value.getChannelRange(xChannel).maxValue,
|
|
766
|
-
step: xChannelStep,
|
|
767
|
-
"aria-roledescription": ariaRoleDescription,
|
|
768
|
-
"aria-valuetext": getAriaValueTextForChannel(xChannel),
|
|
769
|
-
"aria-orientation": "horizontal",
|
|
770
|
-
"aria-describedby": props["aria-describedby"],
|
|
771
|
-
"aria-details": props["aria-details"],
|
|
772
|
-
disabled: isDisabled,
|
|
773
|
-
value: state.value.getChannelValue(xChannel),
|
|
774
|
-
name: xName,
|
|
775
|
-
form,
|
|
776
|
-
tabIndex: isMobile || !focusedInput || focusedInput === "x" ? void 0 : -1,
|
|
777
|
-
/*
|
|
778
|
-
So that only a single "2d slider" control shows up when listing form elements for screen readers,
|
|
779
|
-
add aria-hidden="true" to the unfocused control when the value has not changed via the keyboard,
|
|
780
|
-
but remove aria-hidden to reveal the input for each channel when the value has changed with the keyboard.
|
|
781
|
-
*/
|
|
782
|
-
"aria-hidden": isMobile || !focusedInput || focusedInput === "x" || valueChangedViaKeyboard ? void 0 : "true",
|
|
783
|
-
onChange
|
|
784
|
-
},
|
|
785
|
-
yInputProps: {
|
|
786
|
-
...yInputLabellingProps,
|
|
787
|
-
...visuallyHiddenProps,
|
|
788
|
-
...yInputFocusProps,
|
|
789
|
-
type: "range",
|
|
790
|
-
min: state.value.getChannelRange(yChannel).minValue,
|
|
791
|
-
max: state.value.getChannelRange(yChannel).maxValue,
|
|
792
|
-
step: yChannelStep,
|
|
793
|
-
"aria-roledescription": ariaRoleDescription,
|
|
794
|
-
"aria-valuetext": getAriaValueTextForChannel(yChannel),
|
|
795
|
-
"aria-orientation": "vertical",
|
|
796
|
-
"aria-describedby": props["aria-describedby"],
|
|
797
|
-
"aria-details": props["aria-details"],
|
|
798
|
-
disabled: isDisabled,
|
|
799
|
-
value: state.value.getChannelValue(yChannel),
|
|
800
|
-
name: yName,
|
|
801
|
-
form,
|
|
802
|
-
tabIndex: isMobile || focusedInput === "y" ? void 0 : -1,
|
|
803
|
-
/*
|
|
804
|
-
So that only a single "2d slider" control shows up when listing form elements for screen readers,
|
|
805
|
-
add aria-hidden="true" to the unfocused input when the value has not changed via the keyboard,
|
|
806
|
-
but remove aria-hidden to reveal the input for each channel when the value has changed with the keyboard.
|
|
807
|
-
*/
|
|
808
|
-
"aria-hidden": isMobile || focusedInput === "y" || valueChangedViaKeyboard ? void 0 : "true",
|
|
809
|
-
onChange
|
|
810
|
-
}
|
|
811
|
-
};
|
|
812
|
-
}
|
|
813
|
-
function $40af666d6c251e36$export$106b7a4e66508f66(props, state) {
|
|
814
|
-
let { trackRef, inputRef, orientation, channel, "aria-label": ariaLabel, name, form } = props;
|
|
815
|
-
let { locale, direction } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
816
|
-
if (!props.label && !ariaLabel && !props["aria-labelledby"]) ariaLabel = state.value.getChannelName(channel, locale);
|
|
817
|
-
let { groupProps, trackProps, labelProps, outputProps } = $bcca50147b47f54d$export$56b2c08e277f365({
|
|
818
|
-
...props,
|
|
819
|
-
"aria-label": ariaLabel
|
|
820
|
-
}, state, trackRef);
|
|
821
|
-
let { inputProps, thumbProps } = $47b897dc8cdb026b$export$8d15029008292ae({
|
|
822
|
-
index: 0,
|
|
823
|
-
orientation,
|
|
824
|
-
isDisabled: props.isDisabled,
|
|
825
|
-
name,
|
|
826
|
-
form,
|
|
827
|
-
trackRef,
|
|
828
|
-
inputRef
|
|
829
|
-
}, state);
|
|
830
|
-
let value = state.getDisplayColor();
|
|
831
|
-
let generateBackground = () => {
|
|
832
|
-
let to;
|
|
833
|
-
if (orientation === "vertical") to = "top";
|
|
834
|
-
else if (direction === "ltr") to = "right";
|
|
835
|
-
else to = "left";
|
|
836
|
-
switch (channel) {
|
|
837
|
-
case "hue": {
|
|
838
|
-
let stops = [
|
|
839
|
-
0,
|
|
840
|
-
60,
|
|
841
|
-
120,
|
|
842
|
-
180,
|
|
843
|
-
240,
|
|
844
|
-
300,
|
|
845
|
-
360
|
|
846
|
-
].map((hue) => value.withChannelValue("hue", hue).toString("css")).join(", ");
|
|
847
|
-
return `linear-gradient(to ${to}, ${stops})`;
|
|
848
|
-
}
|
|
849
|
-
case "lightness": {
|
|
850
|
-
let min = state.getThumbMinValue(0);
|
|
851
|
-
let max = state.getThumbMaxValue(0);
|
|
852
|
-
let start = value.withChannelValue(channel, min).toString("css");
|
|
853
|
-
let middle = value.withChannelValue(channel, (max - min) / 2).toString("css");
|
|
854
|
-
let end = value.withChannelValue(channel, max).toString("css");
|
|
855
|
-
return `linear-gradient(to ${to}, ${start}, ${middle}, ${end})`;
|
|
856
|
-
}
|
|
857
|
-
case "saturation":
|
|
858
|
-
case "brightness":
|
|
859
|
-
case "red":
|
|
860
|
-
case "green":
|
|
861
|
-
case "blue":
|
|
862
|
-
case "alpha": {
|
|
863
|
-
let start = value.withChannelValue(channel, state.getThumbMinValue(0)).toString("css");
|
|
864
|
-
let end = value.withChannelValue(channel, state.getThumbMaxValue(0)).toString("css");
|
|
865
|
-
return `linear-gradient(to ${to}, ${start}, ${end})`;
|
|
866
|
-
}
|
|
867
|
-
default:
|
|
868
|
-
throw new Error("Unknown color channel: " + channel);
|
|
869
|
-
}
|
|
870
|
-
};
|
|
871
|
-
let forcedColorAdjustNoneStyle = {
|
|
872
|
-
forcedColorAdjust: "none"
|
|
873
|
-
};
|
|
874
|
-
if (channel === "hue") inputProps["aria-valuetext"] += `, ${value.getHueName(locale)}`;
|
|
875
|
-
else if (channel !== "alpha") inputProps["aria-valuetext"] += `, ${value.getColorName(locale)}`;
|
|
876
|
-
let { visuallyHiddenProps } = $5c3e21d68f1c4674$export$a966af930f325cab({
|
|
877
|
-
style: {
|
|
878
|
-
opacity: "0.0001",
|
|
879
|
-
width: "100%",
|
|
880
|
-
height: "100%",
|
|
881
|
-
pointerEvents: "none"
|
|
882
|
-
}
|
|
883
|
-
});
|
|
884
|
-
return {
|
|
885
|
-
trackProps: {
|
|
886
|
-
...$3ef42575df84b30b$export$9d1611c77c2fe928(groupProps, trackProps),
|
|
887
|
-
style: {
|
|
888
|
-
...trackProps.style,
|
|
889
|
-
...forcedColorAdjustNoneStyle,
|
|
890
|
-
background: generateBackground()
|
|
891
|
-
}
|
|
892
|
-
},
|
|
893
|
-
inputProps: {
|
|
894
|
-
...inputProps,
|
|
895
|
-
style: {
|
|
896
|
-
...inputProps.style,
|
|
897
|
-
...visuallyHiddenProps.style
|
|
898
|
-
}
|
|
899
|
-
},
|
|
900
|
-
thumbProps: {
|
|
901
|
-
...thumbProps,
|
|
902
|
-
style: {
|
|
903
|
-
...thumbProps.style,
|
|
904
|
-
...forcedColorAdjustNoneStyle
|
|
905
|
-
}
|
|
906
|
-
},
|
|
907
|
-
labelProps,
|
|
908
|
-
outputProps
|
|
909
|
-
};
|
|
910
|
-
}
|
|
911
|
-
function $f6896b05b2ecad12$export$77e32ca575a28fdf(props, state, ref) {
|
|
912
|
-
let { isDisabled, isReadOnly, isRequired, isWheelDisabled, validationBehavior = "aria" } = props;
|
|
913
|
-
let { colorValue, inputValue, increment, decrement, incrementToMax, decrementToMin, commit } = state;
|
|
914
|
-
let inputId = $bdb11010cef70236$export$f680877a34711e37();
|
|
915
|
-
let { spinButtonProps } = $d2e8511e6f209edf$export$e908e06f4b8e3402({
|
|
916
|
-
isDisabled,
|
|
917
|
-
isReadOnly,
|
|
918
|
-
isRequired,
|
|
919
|
-
maxValue: 16777215,
|
|
920
|
-
minValue: 0,
|
|
921
|
-
onIncrement: increment,
|
|
922
|
-
onIncrementToMax: incrementToMax,
|
|
923
|
-
onDecrement: decrement,
|
|
924
|
-
onDecrementToMin: decrementToMin,
|
|
925
|
-
value: colorValue ? colorValue.toHexInt() : void 0,
|
|
926
|
-
textValue: colorValue ? colorValue.toString("hex") : void 0
|
|
927
|
-
});
|
|
928
|
-
let [focusWithin, setFocusWithin] = useState(false);
|
|
929
|
-
let { focusWithinProps } = $9ab94262bd0047c7$export$420e68273165f4ec({
|
|
930
|
-
isDisabled,
|
|
931
|
-
onFocusWithinChange: setFocusWithin
|
|
932
|
-
});
|
|
933
|
-
let onWheel = useCallback((e) => {
|
|
934
|
-
if (Math.abs(e.deltaY) <= Math.abs(e.deltaX)) return;
|
|
935
|
-
if (e.deltaY > 0) increment();
|
|
936
|
-
else if (e.deltaY < 0) decrement();
|
|
937
|
-
}, [
|
|
938
|
-
decrement,
|
|
939
|
-
increment
|
|
940
|
-
]);
|
|
941
|
-
let scrollingDisabled = isWheelDisabled || isDisabled || isReadOnly || !focusWithin;
|
|
942
|
-
$7d0a636d7a4dcefd$export$2123ff2b87c81ca({
|
|
943
|
-
onScroll: onWheel,
|
|
944
|
-
isDisabled: scrollingDisabled
|
|
945
|
-
}, ref);
|
|
946
|
-
let onChange = (value) => {
|
|
947
|
-
if (state.validate(value)) state.setInputValue(value);
|
|
948
|
-
};
|
|
949
|
-
let { inputProps, ...otherProps } = $d841c8010a73d545$export$4f384c9210e583c3({
|
|
950
|
-
...props,
|
|
951
|
-
id: inputId,
|
|
952
|
-
value: inputValue,
|
|
953
|
-
// Intentionally invalid value that will be ignored by onChange during form reset
|
|
954
|
-
// This is handled separately below.
|
|
955
|
-
defaultValue: "!",
|
|
956
|
-
validate: void 0,
|
|
957
|
-
[$e5be200c675c3b3a$export$a763b9476acd3eb]: state,
|
|
958
|
-
type: "text",
|
|
959
|
-
autoComplete: "off",
|
|
960
|
-
onChange
|
|
961
|
-
}, state, ref);
|
|
962
|
-
$99facab73266f662$export$5add1d006293d136(ref, state.defaultColorValue, state.setColorValue);
|
|
963
|
-
inputProps = $3ef42575df84b30b$export$9d1611c77c2fe928(inputProps, spinButtonProps, focusWithinProps, {
|
|
964
|
-
role: "textbox",
|
|
965
|
-
"aria-valuemax": null,
|
|
966
|
-
"aria-valuemin": null,
|
|
967
|
-
"aria-valuenow": null,
|
|
968
|
-
"aria-valuetext": null,
|
|
969
|
-
autoCorrect: "off",
|
|
970
|
-
spellCheck: "false",
|
|
971
|
-
onBlur: commit
|
|
972
|
-
});
|
|
973
|
-
if (validationBehavior === "native") inputProps["aria-required"] = void 0;
|
|
974
|
-
return {
|
|
975
|
-
inputProps,
|
|
976
|
-
...otherProps
|
|
977
|
-
};
|
|
978
|
-
}
|
|
979
|
-
function $5e632d1ff0188f00$export$e55dd820142d3131(props, state, inputRef) {
|
|
980
|
-
let { locale } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
981
|
-
return $81397a9303501bda$export$23f548e970bdf099({
|
|
982
|
-
...props,
|
|
983
|
-
value: void 0,
|
|
984
|
-
defaultValue: void 0,
|
|
985
|
-
onChange: void 0,
|
|
986
|
-
validate: void 0,
|
|
987
|
-
// Provide a default aria-label if no other label is provided.
|
|
988
|
-
"aria-label": props["aria-label"] || (props.label || props["aria-labelledby"] ? void 0 : state.colorValue.getChannelName(props.channel, locale))
|
|
989
|
-
}, state, inputRef);
|
|
990
|
-
}
|
|
991
|
-
const $e2b71ec1d6016406$export$c80c0ea2ca5cb846 = /* @__PURE__ */ createContext(null);
|
|
992
|
-
const $e2b71ec1d6016406$export$a3cc47cee1c1ccc = /* @__PURE__ */ forwardRef(function ColorThumb(props, ref) {
|
|
993
|
-
let { state, thumbProps, inputXRef, inputYRef, xInputProps, yInputProps, isDisabled = false } = useContext($e2b71ec1d6016406$export$c80c0ea2ca5cb846);
|
|
994
|
-
let { focusProps, isFocused, isFocusVisible } = $f7dceffc5ad7768b$export$4e328f61c538687f();
|
|
995
|
-
let { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456(props);
|
|
996
|
-
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
997
|
-
...props,
|
|
998
|
-
defaultClassName: "react-aria-ColorThumb",
|
|
999
|
-
defaultStyle: {
|
|
1000
|
-
...thumbProps.style,
|
|
1001
|
-
backgroundColor: state.getDisplayColor().toString()
|
|
1002
|
-
},
|
|
1003
|
-
values: {
|
|
1004
|
-
color: state.getDisplayColor(),
|
|
1005
|
-
isHovered,
|
|
1006
|
-
isDragging: state.isDragging,
|
|
1007
|
-
isFocused,
|
|
1008
|
-
isFocusVisible,
|
|
1009
|
-
isDisabled
|
|
1010
|
-
}
|
|
1011
|
-
});
|
|
1012
|
-
let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
|
|
1013
|
-
global: true
|
|
1014
|
-
});
|
|
1015
|
-
delete DOMProps.id;
|
|
1016
|
-
return /* @__PURE__ */ $dbSRa$react__default.createElement($64fa3d84918910a7$export$df3a06d6289f983e.div, {
|
|
1017
|
-
...$3ef42575df84b30b$export$9d1611c77c2fe928(thumbProps, hoverProps, DOMProps),
|
|
1018
|
-
...renderProps,
|
|
1019
|
-
ref,
|
|
1020
|
-
"data-hovered": isHovered || void 0,
|
|
1021
|
-
"data-dragging": state.isDragging || void 0,
|
|
1022
|
-
"data-focused": isFocused || void 0,
|
|
1023
|
-
"data-focus-visible": isFocusVisible || void 0,
|
|
1024
|
-
"data-disabled": isDisabled || void 0
|
|
1025
|
-
}, /* @__PURE__ */ $dbSRa$react__default.createElement("input", {
|
|
1026
|
-
ref: inputXRef,
|
|
1027
|
-
...xInputProps,
|
|
1028
|
-
...focusProps
|
|
1029
|
-
}), yInputProps && /* @__PURE__ */ $dbSRa$react__default.createElement("input", {
|
|
1030
|
-
ref: inputYRef,
|
|
1031
|
-
...yInputProps,
|
|
1032
|
-
...focusProps
|
|
1033
|
-
}), renderProps.children);
|
|
1034
|
-
});
|
|
1035
|
-
const $0de070065d44825d$export$6b32221de49982e = /* @__PURE__ */ createContext(null);
|
|
1036
|
-
const $0de070065d44825d$export$b2103f68a961418e = /* @__PURE__ */ forwardRef(function ColorArea(props, ref) {
|
|
1037
|
-
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $4e85f108e88277b8$export$ebe63fadcdce34ed);
|
|
1038
|
-
let inputXRef = useRef(null);
|
|
1039
|
-
let inputYRef = useRef(null);
|
|
1040
|
-
let state = $6e14a98a7f67141d$export$6df7f0e2cabc7eef(props);
|
|
1041
|
-
let { colorAreaProps, xInputProps, yInputProps, thumbProps } = $60bd7d6e45dcddfa$export$2f92a7a615a014f6({
|
|
1042
|
-
...props,
|
|
1043
|
-
inputXRef,
|
|
1044
|
-
inputYRef,
|
|
1045
|
-
containerRef: ref
|
|
1046
|
-
}, state);
|
|
1047
|
-
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
1048
|
-
...props,
|
|
1049
|
-
defaultClassName: "react-aria-ColorArea",
|
|
1050
|
-
defaultStyle: colorAreaProps.style,
|
|
1051
|
-
values: {
|
|
1052
|
-
state,
|
|
1053
|
-
isDisabled: props.isDisabled || false
|
|
1054
|
-
}
|
|
1055
|
-
});
|
|
1056
|
-
let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
|
|
1057
|
-
global: true
|
|
1058
|
-
});
|
|
1059
|
-
delete DOMProps.id;
|
|
1060
|
-
return /* @__PURE__ */ $dbSRa$react__default.createElement($64fa3d84918910a7$export$df3a06d6289f983e.div, {
|
|
1061
|
-
ref,
|
|
1062
|
-
...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, colorAreaProps, renderProps),
|
|
1063
|
-
slot: props.slot || void 0,
|
|
1064
|
-
"data-disabled": props.isDisabled || void 0
|
|
1065
|
-
}, /* @__PURE__ */ $dbSRa$react__default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
|
|
1066
|
-
values: [
|
|
1067
|
-
[
|
|
1068
|
-
$0de070065d44825d$export$6b32221de49982e,
|
|
1069
|
-
state
|
|
1070
|
-
],
|
|
1071
|
-
[
|
|
1072
|
-
$e2b71ec1d6016406$export$c80c0ea2ca5cb846,
|
|
1073
|
-
{
|
|
1074
|
-
state,
|
|
1075
|
-
thumbProps,
|
|
1076
|
-
inputXRef,
|
|
1077
|
-
xInputProps,
|
|
1078
|
-
inputYRef,
|
|
1079
|
-
yInputProps,
|
|
1080
|
-
isDisabled: props.isDisabled
|
|
1081
|
-
}
|
|
1082
|
-
]
|
|
1083
|
-
]
|
|
1084
|
-
}, renderProps.children));
|
|
1085
|
-
});
|
|
1086
|
-
const $3ada01a82feafb94$export$96b6d32b05a1a8ed = /* @__PURE__ */ createContext(null);
|
|
1087
|
-
const $3ada01a82feafb94$export$b865d4358897bb17 = /* @__PURE__ */ forwardRef(function ColorField(props, ref) {
|
|
1088
|
-
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $4e85f108e88277b8$export$44644b8a16031b5b);
|
|
1089
|
-
if (props.channel) return /* @__PURE__ */ $dbSRa$react__default.createElement($3ada01a82feafb94$var$ColorChannelField, {
|
|
1090
|
-
...props,
|
|
1091
|
-
channel: props.channel,
|
|
1092
|
-
forwardedRef: ref
|
|
1093
|
-
});
|
|
1094
|
-
else return /* @__PURE__ */ $dbSRa$react__default.createElement($3ada01a82feafb94$var$HexColorField, {
|
|
1095
|
-
...props,
|
|
1096
|
-
forwardedRef: ref
|
|
1097
|
-
});
|
|
1098
|
-
});
|
|
1099
|
-
function $3ada01a82feafb94$var$ColorChannelField(props) {
|
|
1100
|
-
let { locale } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
1101
|
-
let state = $31a863bb88e75dd6$export$b9fc0d69c9190c4a({
|
|
1102
|
-
...props,
|
|
1103
|
-
locale
|
|
1104
|
-
});
|
|
1105
|
-
let inputRef = useRef(null);
|
|
1106
|
-
let [labelRef, label] = $64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!props["aria-label"] && !props["aria-labelledby"]);
|
|
1107
|
-
var _props_validationBehavior;
|
|
1108
|
-
let { labelProps, inputProps, descriptionProps, errorMessageProps, ...validation } = $5e632d1ff0188f00$export$e55dd820142d3131({
|
|
1109
|
-
...$64fa3d84918910a7$export$ef03459518577ad4(props),
|
|
1110
|
-
label,
|
|
1111
|
-
validationBehavior: (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== void 0 ? _props_validationBehavior : "native"
|
|
1112
|
-
}, state, inputRef);
|
|
1113
|
-
return /* @__PURE__ */ $dbSRa$react__default.createElement($dbSRa$react__default.Fragment, null, $3ada01a82feafb94$var$useChildren(props, state, props.forwardedRef, inputProps, inputRef, labelProps, labelRef, descriptionProps, errorMessageProps, validation), props.name && /* @__PURE__ */ $dbSRa$react__default.createElement("input", {
|
|
1114
|
-
type: "hidden",
|
|
1115
|
-
name: props.name,
|
|
1116
|
-
form: props.form,
|
|
1117
|
-
value: isNaN(state.numberValue) ? "" : state.numberValue
|
|
1118
|
-
}));
|
|
1119
|
-
}
|
|
1120
|
-
function $3ada01a82feafb94$var$HexColorField(props) {
|
|
1121
|
-
var _props_validationBehavior;
|
|
1122
|
-
let state = $b335ada08155d9c0$export$d52a01683abdfcd6({
|
|
1123
|
-
...props,
|
|
1124
|
-
validationBehavior: (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== void 0 ? _props_validationBehavior : "native"
|
|
1125
|
-
});
|
|
1126
|
-
let inputRef = useRef(null);
|
|
1127
|
-
let [labelRef, label] = $64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!props["aria-label"] && !props["aria-labelledby"]);
|
|
1128
|
-
var _props_validationBehavior1;
|
|
1129
|
-
let { labelProps, inputProps, descriptionProps, errorMessageProps, ...validation } = $f6896b05b2ecad12$export$77e32ca575a28fdf({
|
|
1130
|
-
...$64fa3d84918910a7$export$ef03459518577ad4(props),
|
|
1131
|
-
label,
|
|
1132
|
-
validationBehavior: (_props_validationBehavior1 = props.validationBehavior) !== null && _props_validationBehavior1 !== void 0 ? _props_validationBehavior1 : "native"
|
|
1133
|
-
}, state, inputRef);
|
|
1134
|
-
return $3ada01a82feafb94$var$useChildren(props, state, props.forwardedRef, inputProps, inputRef, labelProps, labelRef, descriptionProps, errorMessageProps, validation);
|
|
1135
|
-
}
|
|
1136
|
-
function $3ada01a82feafb94$var$useChildren(props, state, ref, inputProps, inputRef, labelProps, labelRef, descriptionProps, errorMessageProps, validation) {
|
|
1137
|
-
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
1138
|
-
...props,
|
|
1139
|
-
values: {
|
|
1140
|
-
state,
|
|
1141
|
-
channel: props.channel || "hex",
|
|
1142
|
-
isDisabled: props.isDisabled || false,
|
|
1143
|
-
isInvalid: validation.isInvalid || false,
|
|
1144
|
-
isReadOnly: props.isReadOnly || false,
|
|
1145
|
-
isRequired: props.isRequired || false
|
|
1146
|
-
},
|
|
1147
|
-
defaultClassName: "react-aria-ColorField"
|
|
1148
|
-
});
|
|
1149
|
-
let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
|
|
1150
|
-
global: true
|
|
1151
|
-
});
|
|
1152
|
-
delete DOMProps.id;
|
|
1153
|
-
return /* @__PURE__ */ $dbSRa$react__default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
|
|
1154
|
-
values: [
|
|
1155
|
-
[
|
|
1156
|
-
$3ada01a82feafb94$export$96b6d32b05a1a8ed,
|
|
1157
|
-
state
|
|
1158
|
-
],
|
|
1159
|
-
[
|
|
1160
|
-
$3985021b0ad6602f$export$37fb8590cf2c088c,
|
|
1161
|
-
{
|
|
1162
|
-
...inputProps,
|
|
1163
|
-
ref: inputRef
|
|
1164
|
-
}
|
|
1165
|
-
],
|
|
1166
|
-
[
|
|
1167
|
-
$01b77f81d0f07f68$export$75b6ee27786ba447,
|
|
1168
|
-
{
|
|
1169
|
-
...labelProps,
|
|
1170
|
-
ref: labelRef
|
|
1171
|
-
}
|
|
1172
|
-
],
|
|
1173
|
-
[
|
|
1174
|
-
$a049562f99e7db0e$export$f9c6924e160136d1,
|
|
1175
|
-
{
|
|
1176
|
-
role: "presentation",
|
|
1177
|
-
isInvalid: validation.isInvalid,
|
|
1178
|
-
isDisabled: props.isDisabled || false
|
|
1179
|
-
}
|
|
1180
|
-
],
|
|
1181
|
-
[
|
|
1182
|
-
$514c0188e459b4c0$export$9afb8bc826b033ea,
|
|
1183
|
-
{
|
|
1184
|
-
slots: {
|
|
1185
|
-
description: descriptionProps,
|
|
1186
|
-
errorMessage: errorMessageProps
|
|
1187
|
-
}
|
|
1188
|
-
}
|
|
1189
|
-
],
|
|
1190
|
-
[
|
|
1191
|
-
$ee014567cb39d3f0$export$ff05c3ac10437e03,
|
|
1192
|
-
validation
|
|
1193
|
-
]
|
|
1194
|
-
]
|
|
1195
|
-
}, /* @__PURE__ */ $dbSRa$react__default.createElement($64fa3d84918910a7$export$df3a06d6289f983e.div, {
|
|
1196
|
-
...DOMProps,
|
|
1197
|
-
...renderProps,
|
|
1198
|
-
ref,
|
|
1199
|
-
slot: props.slot || void 0,
|
|
1200
|
-
"data-channel": props.channel || "hex",
|
|
1201
|
-
"data-disabled": props.isDisabled || void 0,
|
|
1202
|
-
"data-invalid": validation.isInvalid || void 0,
|
|
1203
|
-
"data-readonly": props.isReadOnly || void 0,
|
|
1204
|
-
"data-required": props.isRequired || void 0
|
|
1205
|
-
}));
|
|
1206
|
-
}
|
|
1207
|
-
const $1cca5300a3c2e7f9$export$c7fad7ea00194428 = /* @__PURE__ */ createContext(null);
|
|
1208
|
-
const $1cca5300a3c2e7f9$export$44fd664bcca5b6fb = /* @__PURE__ */ forwardRef(function ColorSlider(props, ref) {
|
|
1209
|
-
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $4e85f108e88277b8$export$717b2c0a523a0b53);
|
|
1210
|
-
let { locale } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
1211
|
-
let state = $25a25ac0d1624665$export$57bc203e1c9c6d44({
|
|
1212
|
-
...props,
|
|
1213
|
-
locale
|
|
1214
|
-
});
|
|
1215
|
-
let trackRef = $dbSRa$react__default.useRef(null);
|
|
1216
|
-
let inputRef = $dbSRa$react__default.useRef(null);
|
|
1217
|
-
let [labelRef, label] = $64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!props["aria-label"] && !props["aria-labelledby"]);
|
|
1218
|
-
let { trackProps, thumbProps, inputProps, labelProps, outputProps } = $40af666d6c251e36$export$106b7a4e66508f66({
|
|
1219
|
-
...props,
|
|
1220
|
-
label,
|
|
1221
|
-
trackRef,
|
|
1222
|
-
inputRef
|
|
1223
|
-
}, state);
|
|
1224
|
-
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
1225
|
-
...props,
|
|
1226
|
-
values: {
|
|
1227
|
-
orientation: state.orientation,
|
|
1228
|
-
isDisabled: state.isDisabled,
|
|
1229
|
-
state
|
|
1230
|
-
},
|
|
1231
|
-
defaultClassName: "react-aria-ColorSlider"
|
|
1232
|
-
});
|
|
1233
|
-
let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
|
|
1234
|
-
global: true
|
|
1235
|
-
});
|
|
1236
|
-
delete DOMProps.id;
|
|
1237
|
-
return /* @__PURE__ */ $dbSRa$react__default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
|
|
1238
|
-
values: [
|
|
1239
|
-
[
|
|
1240
|
-
$1cca5300a3c2e7f9$export$c7fad7ea00194428,
|
|
1241
|
-
state
|
|
1242
|
-
],
|
|
1243
|
-
[
|
|
1244
|
-
$6f909507e6374d18$export$1e7083018727fa60,
|
|
1245
|
-
state
|
|
1246
|
-
],
|
|
1247
|
-
[
|
|
1248
|
-
$6f909507e6374d18$export$f1fce0420cc6d8ee,
|
|
1249
|
-
{
|
|
1250
|
-
...trackProps,
|
|
1251
|
-
ref: trackRef
|
|
1252
|
-
}
|
|
1253
|
-
],
|
|
1254
|
-
[
|
|
1255
|
-
$6f909507e6374d18$export$6189c2744041d8f8,
|
|
1256
|
-
outputProps
|
|
1257
|
-
],
|
|
1258
|
-
[
|
|
1259
|
-
$01b77f81d0f07f68$export$75b6ee27786ba447,
|
|
1260
|
-
{
|
|
1261
|
-
...labelProps,
|
|
1262
|
-
ref: labelRef,
|
|
1263
|
-
children: state.value.getChannelName(props.channel, locale)
|
|
1264
|
-
}
|
|
1265
|
-
],
|
|
1266
|
-
[
|
|
1267
|
-
$e2b71ec1d6016406$export$c80c0ea2ca5cb846,
|
|
1268
|
-
{
|
|
1269
|
-
state,
|
|
1270
|
-
thumbProps,
|
|
1271
|
-
inputXRef: inputRef,
|
|
1272
|
-
xInputProps: inputProps,
|
|
1273
|
-
isDisabled: props.isDisabled
|
|
1274
|
-
}
|
|
1275
|
-
]
|
|
1276
|
-
]
|
|
1277
|
-
}, /* @__PURE__ */ $dbSRa$react__default.createElement($64fa3d84918910a7$export$df3a06d6289f983e.div, {
|
|
1278
|
-
...DOMProps,
|
|
1279
|
-
...renderProps,
|
|
1280
|
-
ref,
|
|
1281
|
-
slot: props.slot || void 0,
|
|
1282
|
-
"data-orientation": state.orientation,
|
|
1283
|
-
"data-disabled": state.isDisabled || void 0
|
|
1284
|
-
}));
|
|
1285
|
-
});
|
|
1286
|
-
/**
|
|
1287
|
-
* A solid color picker.
|
|
1288
|
-
*
|
|
1289
|
-
* @component
|
|
1290
|
-
* @param {Object} props - Component props.
|
|
1291
|
-
* @param {import('react-aria-components').Color} props.value - The color value. Hex format is preferred, but HSL, HSB, and RGB are also supported.
|
|
1292
|
-
* @param {Function} props.onChange - The change handler.
|
|
1293
|
-
* @param {boolean} [props.disabled] - Whether the color picker is disabled.
|
|
1294
|
-
* @param {Function} [props.onChangeEnd] - The change end handler.
|
|
1295
|
-
* @param {boolean} [props.allowTransparency=false] - Whether the color picker allows transparency.
|
|
1296
|
-
* @param {OutputColorFormat} [props.outputFormat] - The output format. Default is 'hex' (or 'hexa' if `allowTransparency` is true).
|
|
1297
|
-
* @param {boolean} [props.noAdvancedOptions] - If `true`, the advanced options are hidden.
|
|
1298
|
-
* @param {boolean} [props.hidden] - If `true`, the component is not rendered.
|
|
1299
|
-
*
|
|
1300
|
-
* @typedef {'hex' | 'hexa' | 'rgb' | 'rgba' | 'hsl' | 'hsla' | 'hsb' | 'hsba'} OutputColorFormat
|
|
1301
|
-
*
|
|
1302
|
-
* @returns {JSX.Element} The ButtonGroup component.
|
|
1303
|
-
*
|
|
1304
|
-
* @example
|
|
1305
|
-
* <ButtonGroup
|
|
1306
|
-
*
|
|
1307
|
-
* @preserve
|
|
1308
|
-
*/
|
|
1309
|
-
const SolidColorPicker = (props) => {
|
|
1310
|
-
const { value: rawValue, onChange, disabled, onChangeEnd, allowTransparency = false, outputFormat, hidden, noAdvancedOptions } = props;
|
|
1311
|
-
const value = rawValue?.replace("transparent", "rgba(0, 0, 0, 0)");
|
|
1312
|
-
const defaultColor = $799cddbef784668f$export$6e865ea70d7724f("#00000000").toFormat(allowTransparency ? "hsla" : "hsl");
|
|
1313
|
-
const modifiedValue = value && value?.length > 1 ? $799cddbef784668f$export$6e865ea70d7724f(value) : defaultColor;
|
|
1314
|
-
const [color, setColor] = useState(modifiedValue.toFormat(allowTransparency ? "hsla" : "hsl"));
|
|
1315
|
-
if (hidden) {
|
|
1316
|
-
return null;
|
|
1317
|
-
}
|
|
1318
|
-
let handleChangeEnd;
|
|
1319
|
-
if (onChangeEnd) {
|
|
1320
|
-
handleChangeEnd = (color2) => {
|
|
1321
|
-
setColor(color2 ?? defaultColor);
|
|
1322
|
-
onChange(color2?.toString(outputFormat ?? (allowTransparency ? "hexa" : "hex")));
|
|
1323
|
-
};
|
|
1324
|
-
}
|
|
1325
|
-
let handleChange = (color2) => {
|
|
1326
|
-
setColor(color2 ?? defaultColor);
|
|
1327
|
-
onChange(color2?.toString(outputFormat ?? (allowTransparency ? "hexa" : "hex")));
|
|
1328
|
-
};
|
|
1329
|
-
const valueInputClassName = clsx(
|
|
1330
|
-
"es:leading-none",
|
|
1331
|
-
"es:border-none!",
|
|
1332
|
-
"es:max-w-14",
|
|
1333
|
-
"es:min-h-9",
|
|
1334
|
-
"es:px-3",
|
|
1335
|
-
"es:font-mono es:text-12",
|
|
1336
|
-
"es:rounded-lg es:focus:rounded-xl es:aria-[controls]:rounded-xl",
|
|
1337
|
-
"es:transition-plus",
|
|
1338
|
-
"es:any-focus:outline-hidden",
|
|
1339
|
-
"es:inset-ring!",
|
|
1340
|
-
"es:focus-visible:ring-2 es:focus-visible:ring-accent-500/30",
|
|
1341
|
-
"es:focus-visible:text-accent-950 es:focus-visible:inset-ring-accent-500",
|
|
1342
|
-
"es:focus:placeholder:text-surface-400",
|
|
1343
|
-
"es:inset-ring-secondary-100",
|
|
1344
|
-
"es:focus:text-accent-950",
|
|
1345
|
-
"es:text-secondary-900",
|
|
1346
|
-
"es:placeholder:text-secondary-500/80",
|
|
1347
|
-
"es:bg-secondary-100 es:focus:bg-surface-50",
|
|
1348
|
-
"es:inset-ring-secondary-200/15 es:hover:inset-ring-secondary-200/65 es:focus:inset-ring-surface-200",
|
|
1349
|
-
"es:selection:bg-surface-100 es:selection:text-accent-800"
|
|
1350
|
-
);
|
|
1351
|
-
return /* @__PURE__ */ jsxs("div", { className: "es:flex es:flex-col es:items-center es:gap-2", children: [
|
|
1352
|
-
/* @__PURE__ */ jsx(
|
|
1353
|
-
$0de070065d44825d$export$b2103f68a961418e,
|
|
1354
|
-
{
|
|
1355
|
-
value: color,
|
|
1356
|
-
xChannel: "saturation",
|
|
1357
|
-
yChannel: "lightness",
|
|
1358
|
-
className: clsx(
|
|
1359
|
-
"es:size-48 es:rounded-xl es:border es:border-secondary-300 es:shadow-sm es:transition",
|
|
1360
|
-
'es:[&:has(>_[data-focus-visible="true"])]:ring-2 es:[&:has(>_[data-focus-visible="true"])]:ring-accent-500/50',
|
|
1361
|
-
"es:disabled:bg-linear-to-r! es:disabled:from-white es:disabled:to-secondary-100"
|
|
1362
|
-
),
|
|
1363
|
-
onChange: handleChange,
|
|
1364
|
-
onChangeEnd: handleChangeEnd,
|
|
1365
|
-
isDisabled: disabled,
|
|
1366
|
-
children: /* @__PURE__ */ 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" })
|
|
1367
|
-
}
|
|
1368
|
-
),
|
|
1369
|
-
/* @__PURE__ */ jsx(
|
|
1370
|
-
$1cca5300a3c2e7f9$export$44fd664bcca5b6fb,
|
|
1371
|
-
{
|
|
1372
|
-
channel: "hue",
|
|
1373
|
-
value: color,
|
|
1374
|
-
onChange: handleChange,
|
|
1375
|
-
isDisabled: disabled,
|
|
1376
|
-
children: /* @__PURE__ */ jsx(
|
|
1377
|
-
$6f909507e6374d18$export$105594979f116971,
|
|
1378
|
-
{
|
|
1379
|
-
className: clsx(
|
|
1380
|
-
"es:h-7 es:w-48 es:rounded-10 es:border es:border-secondary-300 es:shadow-sm",
|
|
1381
|
-
'es:[&:has(>_[data-focus-visible="true"])]:ring-2 es:[&:has(>_[data-focus-visible="true"])]:ring-accent-500/50',
|
|
1382
|
-
"es:disabled:bg-linear-to-r! es:disabled:from-white es:disabled:to-secondary-100"
|
|
1383
|
-
),
|
|
1384
|
-
children: /* @__PURE__ */ 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" })
|
|
1385
|
-
}
|
|
1386
|
-
)
|
|
1387
|
-
}
|
|
1388
|
-
),
|
|
1389
|
-
allowTransparency && /* @__PURE__ */ jsx(
|
|
1390
|
-
$1cca5300a3c2e7f9$export$44fd664bcca5b6fb,
|
|
1391
|
-
{
|
|
1392
|
-
channel: "alpha",
|
|
1393
|
-
value: color,
|
|
1394
|
-
onChange: handleChange,
|
|
1395
|
-
isDisabled: disabled,
|
|
1396
|
-
children: /* @__PURE__ */ jsx(
|
|
1397
|
-
$6f909507e6374d18$export$105594979f116971,
|
|
1398
|
-
{
|
|
1399
|
-
className: clsx(
|
|
1400
|
-
"es:h-7 es:w-48 es:rounded-10 es:border es:border-secondary-300 es:shadow-sm",
|
|
1401
|
-
'es:[&:has(>_[data-focus-visible="true"])]:ring-2 es:[&:has(>_[data-focus-visible="true"])]:ring-accent-500/50',
|
|
1402
|
-
"es:disabled:bg-linear-to-r! es:disabled:from-white es:disabled:to-secondary-100"
|
|
1403
|
-
),
|
|
1404
|
-
style: () => {
|
|
1405
|
-
const startColor = color.clone().withChannelValue("alpha", 0).toString("hsla");
|
|
1406
|
-
const endColor = color.clone().withChannelValue("alpha", 1).toString("hsla");
|
|
1407
|
-
return {
|
|
1408
|
-
background: `linear-gradient(to right, ${startColor}, ${endColor}), repeating-conic-gradient(rgb(204, 204, 204) 0%, rgb(204, 204, 204) 25%, white 0%, white 50%) 50% center / 14px 14px`
|
|
1409
|
-
};
|
|
1410
|
-
},
|
|
1411
|
-
children: /* @__PURE__ */ 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" })
|
|
1412
|
-
}
|
|
1413
|
-
)
|
|
1414
|
-
}
|
|
1415
|
-
),
|
|
1416
|
-
/* @__PURE__ */ jsxs("div", { className: "es:flex es:items-center es:justify-center es:gap-0.75", children: [
|
|
1417
|
-
/* @__PURE__ */ jsx(
|
|
1418
|
-
$3ada01a82feafb94$export$b865d4358897bb17,
|
|
1419
|
-
{
|
|
1420
|
-
value: color,
|
|
1421
|
-
onChange: (color2) => handleChange(color2?.toFormat("hsl")),
|
|
1422
|
-
"aria-label": __("Hex color value", "eightshift-ui-components"),
|
|
1423
|
-
isDisabled: disabled,
|
|
1424
|
-
children: /* @__PURE__ */ jsx(
|
|
1425
|
-
$3985021b0ad6602f$export$f5b8910cec6cf069,
|
|
1426
|
-
{
|
|
1427
|
-
className: clsx(
|
|
1428
|
-
"es:leading-none",
|
|
1429
|
-
"es:w-20",
|
|
1430
|
-
"es:transition-plus",
|
|
1431
|
-
"es:any-focus:outline-hidden",
|
|
1432
|
-
"es:inset-ring",
|
|
1433
|
-
"es:focus-visible:ring-2 es:focus-visible:ring-accent-500/30",
|
|
1434
|
-
"es:focus-visible:text-accent-950 es:focus-visible:inset-ring-accent-500",
|
|
1435
|
-
"es:focus:placeholder:text-surface-400",
|
|
1436
|
-
"es:h-8",
|
|
1437
|
-
"es:px-3",
|
|
1438
|
-
"es:font-mono es:text-12",
|
|
1439
|
-
"es:bg-white",
|
|
1440
|
-
"es:bg-linear-to-b es:from-secondary-100/0 es:to-secondary-100/50 es:from-25%",
|
|
1441
|
-
"es:hover:from-surface-100/0 es:hover:to-surface-100/50",
|
|
1442
|
-
"es:inset-ring-secondary-400/50 es:hover:inset-ring-surface-300 es:focus:inset-ring-surface-400",
|
|
1443
|
-
"es:inset-shadow-sm es:inset-shadow-secondary-100/50",
|
|
1444
|
-
"es:hover:placeholder:text-surface-400",
|
|
1445
|
-
"es:placeholder:text-secondary-400",
|
|
1446
|
-
"es:shadow-xs es:shadow-black/5",
|
|
1447
|
-
"es:rounded-lg! es:focus:rounded-xl!",
|
|
1448
|
-
"es:border-none!"
|
|
1449
|
-
)
|
|
1450
|
-
}
|
|
1451
|
-
)
|
|
1452
|
-
}
|
|
1453
|
-
),
|
|
1454
|
-
/* @__PURE__ */ jsxs(
|
|
1455
|
-
TriggeredPopover,
|
|
1456
|
-
{
|
|
1457
|
-
triggerButtonIcon: icons.dropdownCaretAlt,
|
|
1458
|
-
className: "es:w-52 es:p-3",
|
|
1459
|
-
triggerButtonProps: {
|
|
1460
|
-
disabled,
|
|
1461
|
-
tooltip: __("Advanced color options", "eightshift-ui-components"),
|
|
1462
|
-
className: "es:w-6 es:h-8 es:icon:size-4.5!"
|
|
1463
|
-
},
|
|
1464
|
-
hidden: noAdvancedOptions,
|
|
1465
|
-
children: [
|
|
1466
|
-
/* @__PURE__ */ jsxs(BaseControl, { label: "RGB", children: [
|
|
1467
|
-
/* @__PURE__ */ jsx(
|
|
1468
|
-
$3ada01a82feafb94$export$b865d4358897bb17,
|
|
1469
|
-
{
|
|
1470
|
-
value: color?.toFormat(allowTransparency ? "rgba" : "rgb"),
|
|
1471
|
-
onChange: (color2) => handleChange(color2?.toFormat("hsl")),
|
|
1472
|
-
channel: "red",
|
|
1473
|
-
children: /* @__PURE__ */ jsx(
|
|
1474
|
-
BaseControl,
|
|
1475
|
-
{
|
|
1476
|
-
icon: /* @__PURE__ */ jsx(
|
|
1477
|
-
ColorSwatch,
|
|
1478
|
-
{
|
|
1479
|
-
color: "#ff0000",
|
|
1480
|
-
className: "es:size-5!",
|
|
1481
|
-
flat: true
|
|
1482
|
-
}
|
|
1483
|
-
),
|
|
1484
|
-
label: __("Red", "eightshift-ui-components"),
|
|
1485
|
-
inline: true,
|
|
1486
|
-
children: /* @__PURE__ */ jsx($3985021b0ad6602f$export$f5b8910cec6cf069, { className: valueInputClassName })
|
|
1487
|
-
}
|
|
1488
|
-
)
|
|
1489
|
-
}
|
|
1490
|
-
),
|
|
1491
|
-
/* @__PURE__ */ jsx(
|
|
1492
|
-
$3ada01a82feafb94$export$b865d4358897bb17,
|
|
1493
|
-
{
|
|
1494
|
-
value: color?.toFormat(allowTransparency ? "rgba" : "rgb"),
|
|
1495
|
-
onChange: (color2) => handleChange(color2?.toFormat("hsl")),
|
|
1496
|
-
channel: "green",
|
|
1497
|
-
children: /* @__PURE__ */ jsx(
|
|
1498
|
-
BaseControl,
|
|
1499
|
-
{
|
|
1500
|
-
icon: /* @__PURE__ */ jsx(
|
|
1501
|
-
ColorSwatch,
|
|
1502
|
-
{
|
|
1503
|
-
color: "#00ff00",
|
|
1504
|
-
className: "es:size-5!",
|
|
1505
|
-
flat: true
|
|
1506
|
-
}
|
|
1507
|
-
),
|
|
1508
|
-
label: __("Green", "eightshift-ui-components"),
|
|
1509
|
-
inline: true,
|
|
1510
|
-
children: /* @__PURE__ */ jsx($3985021b0ad6602f$export$f5b8910cec6cf069, { className: valueInputClassName })
|
|
1511
|
-
}
|
|
1512
|
-
)
|
|
1513
|
-
}
|
|
1514
|
-
),
|
|
1515
|
-
/* @__PURE__ */ jsx(
|
|
1516
|
-
$3ada01a82feafb94$export$b865d4358897bb17,
|
|
1517
|
-
{
|
|
1518
|
-
value: color?.toFormat(allowTransparency ? "rgba" : "rgb"),
|
|
1519
|
-
onChange: (color2) => handleChange(color2?.toFormat("hsl")),
|
|
1520
|
-
channel: "blue",
|
|
1521
|
-
children: /* @__PURE__ */ jsx(
|
|
1522
|
-
BaseControl,
|
|
1523
|
-
{
|
|
1524
|
-
icon: /* @__PURE__ */ jsx(
|
|
1525
|
-
ColorSwatch,
|
|
1526
|
-
{
|
|
1527
|
-
color: "#0000ff",
|
|
1528
|
-
className: "es:size-5!",
|
|
1529
|
-
flat: true
|
|
1530
|
-
}
|
|
1531
|
-
),
|
|
1532
|
-
label: __("Blue", "eightshift-ui-components"),
|
|
1533
|
-
inline: true,
|
|
1534
|
-
children: /* @__PURE__ */ jsx($3985021b0ad6602f$export$f5b8910cec6cf069, { className: valueInputClassName })
|
|
1535
|
-
}
|
|
1536
|
-
)
|
|
1537
|
-
}
|
|
1538
|
-
)
|
|
1539
|
-
] }),
|
|
1540
|
-
/* @__PURE__ */ jsxs(
|
|
1541
|
-
BaseControl,
|
|
1542
|
-
{
|
|
1543
|
-
label: "HSL",
|
|
1544
|
-
className: "es:mt-3",
|
|
1545
|
-
children: [
|
|
1546
|
-
/* @__PURE__ */ jsx(
|
|
1547
|
-
$3ada01a82feafb94$export$b865d4358897bb17,
|
|
1548
|
-
{
|
|
1549
|
-
value: color?.toFormat(allowTransparency ? "hsla" : "hsl"),
|
|
1550
|
-
onChange: (color2) => handleChange(color2?.toFormat("hsl")),
|
|
1551
|
-
channel: "hue",
|
|
1552
|
-
children: /* @__PURE__ */ jsx(
|
|
1553
|
-
BaseControl,
|
|
1554
|
-
{
|
|
1555
|
-
icon: /* @__PURE__ */ jsx(
|
|
1556
|
-
ColorSwatch,
|
|
1557
|
-
{
|
|
1558
|
-
gradient: "linear-gradient(to right, red, yellow, lime, cyan, blue, magenta)",
|
|
1559
|
-
className: "es:size-5!",
|
|
1560
|
-
flat: true
|
|
1561
|
-
}
|
|
1562
|
-
),
|
|
1563
|
-
label: __("Hue", "eightshift-ui-components"),
|
|
1564
|
-
inline: true,
|
|
1565
|
-
children: /* @__PURE__ */ jsx($3985021b0ad6602f$export$f5b8910cec6cf069, { className: valueInputClassName })
|
|
1566
|
-
}
|
|
1567
|
-
)
|
|
1568
|
-
}
|
|
1569
|
-
),
|
|
1570
|
-
/* @__PURE__ */ jsx(
|
|
1571
|
-
$3ada01a82feafb94$export$b865d4358897bb17,
|
|
1572
|
-
{
|
|
1573
|
-
value: color?.toFormat(allowTransparency ? "hsla" : "hsl"),
|
|
1574
|
-
onChange: (color2) => handleChange(color2?.toFormat("hsl")),
|
|
1575
|
-
channel: "saturation",
|
|
1576
|
-
children: /* @__PURE__ */ jsx(
|
|
1577
|
-
BaseControl,
|
|
1578
|
-
{
|
|
1579
|
-
icon: /* @__PURE__ */ jsx(
|
|
1580
|
-
ColorSwatch,
|
|
1581
|
-
{
|
|
1582
|
-
gradient: "linear-gradient(to right, var(--es-color-surface-400), var(--es-color-accent-500))",
|
|
1583
|
-
className: "es:size-5!",
|
|
1584
|
-
flat: true
|
|
1585
|
-
}
|
|
1586
|
-
),
|
|
1587
|
-
label: __("Saturation", "eightshift-ui-components"),
|
|
1588
|
-
inline: true,
|
|
1589
|
-
children: /* @__PURE__ */ jsx($3985021b0ad6602f$export$f5b8910cec6cf069, { className: valueInputClassName })
|
|
1590
|
-
}
|
|
1591
|
-
)
|
|
1592
|
-
}
|
|
1593
|
-
),
|
|
1594
|
-
/* @__PURE__ */ jsx(
|
|
1595
|
-
$3ada01a82feafb94$export$b865d4358897bb17,
|
|
1596
|
-
{
|
|
1597
|
-
value: color?.toFormat(allowTransparency ? "hsla" : "hsl"),
|
|
1598
|
-
onChange: (color2) => handleChange(color2?.toFormat("hsl")),
|
|
1599
|
-
channel: "lightness",
|
|
1600
|
-
children: /* @__PURE__ */ jsx(
|
|
1601
|
-
BaseControl,
|
|
1602
|
-
{
|
|
1603
|
-
icon: /* @__PURE__ */ jsx(
|
|
1604
|
-
ColorSwatch,
|
|
1605
|
-
{
|
|
1606
|
-
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))",
|
|
1607
|
-
className: "es:size-5!",
|
|
1608
|
-
flat: true
|
|
1609
|
-
}
|
|
1610
|
-
),
|
|
1611
|
-
label: __("Lightness", "eightshift-ui-components"),
|
|
1612
|
-
inline: true,
|
|
1613
|
-
children: /* @__PURE__ */ jsx($3985021b0ad6602f$export$f5b8910cec6cf069, { className: valueInputClassName })
|
|
1614
|
-
}
|
|
1615
|
-
)
|
|
1616
|
-
}
|
|
1617
|
-
)
|
|
1618
|
-
]
|
|
1619
|
-
}
|
|
1620
|
-
),
|
|
1621
|
-
/* @__PURE__ */ jsxs(
|
|
1622
|
-
BaseControl,
|
|
1623
|
-
{
|
|
1624
|
-
label: "HSB",
|
|
1625
|
-
className: "es:mt-3",
|
|
1626
|
-
children: [
|
|
1627
|
-
/* @__PURE__ */ jsx(
|
|
1628
|
-
$3ada01a82feafb94$export$b865d4358897bb17,
|
|
1629
|
-
{
|
|
1630
|
-
value: color?.toFormat(allowTransparency ? "hsba" : "hsb"),
|
|
1631
|
-
onChange: (color2) => handleChange(color2?.toFormat("hsl")),
|
|
1632
|
-
channel: "hue",
|
|
1633
|
-
children: /* @__PURE__ */ jsx(
|
|
1634
|
-
BaseControl,
|
|
1635
|
-
{
|
|
1636
|
-
icon: /* @__PURE__ */ jsx(
|
|
1637
|
-
ColorSwatch,
|
|
1638
|
-
{
|
|
1639
|
-
gradient: "linear-gradient(to right, red, yellow, lime, cyan, blue, magenta)",
|
|
1640
|
-
className: "es:size-5!",
|
|
1641
|
-
flat: true
|
|
1642
|
-
}
|
|
1643
|
-
),
|
|
1644
|
-
label: __("Hue", "eightshift-ui-components"),
|
|
1645
|
-
inline: true,
|
|
1646
|
-
children: /* @__PURE__ */ jsx($3985021b0ad6602f$export$f5b8910cec6cf069, { className: valueInputClassName })
|
|
1647
|
-
}
|
|
1648
|
-
)
|
|
1649
|
-
}
|
|
1650
|
-
),
|
|
1651
|
-
/* @__PURE__ */ jsx(
|
|
1652
|
-
$3ada01a82feafb94$export$b865d4358897bb17,
|
|
1653
|
-
{
|
|
1654
|
-
value: color?.toFormat(allowTransparency ? "hsba" : "hsb"),
|
|
1655
|
-
onChange: (color2) => handleChange(color2?.toFormat("hsl")),
|
|
1656
|
-
channel: "saturation",
|
|
1657
|
-
children: /* @__PURE__ */ jsx(
|
|
1658
|
-
BaseControl,
|
|
1659
|
-
{
|
|
1660
|
-
icon: /* @__PURE__ */ jsx(
|
|
1661
|
-
ColorSwatch,
|
|
1662
|
-
{
|
|
1663
|
-
gradient: "linear-gradient(to right, var(--es-color-surface-400), var(--es-color-accent-500))",
|
|
1664
|
-
className: "es:size-5!",
|
|
1665
|
-
flat: true
|
|
1666
|
-
}
|
|
1667
|
-
),
|
|
1668
|
-
label: __("Saturation", "eightshift-ui-components"),
|
|
1669
|
-
inline: true,
|
|
1670
|
-
children: /* @__PURE__ */ jsx($3985021b0ad6602f$export$f5b8910cec6cf069, { className: valueInputClassName })
|
|
1671
|
-
}
|
|
1672
|
-
)
|
|
1673
|
-
}
|
|
1674
|
-
),
|
|
1675
|
-
/* @__PURE__ */ jsx(
|
|
1676
|
-
$3ada01a82feafb94$export$b865d4358897bb17,
|
|
1677
|
-
{
|
|
1678
|
-
value: color?.toFormat(allowTransparency ? "hsba" : "hsb"),
|
|
1679
|
-
onChange: (color2) => handleChange(color2?.toFormat("hsl")),
|
|
1680
|
-
channel: "brightness",
|
|
1681
|
-
children: /* @__PURE__ */ jsx(
|
|
1682
|
-
BaseControl,
|
|
1683
|
-
{
|
|
1684
|
-
icon: /* @__PURE__ */ jsx(
|
|
1685
|
-
ColorSwatch,
|
|
1686
|
-
{
|
|
1687
|
-
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))",
|
|
1688
|
-
className: "es:size-5!",
|
|
1689
|
-
flat: true
|
|
1690
|
-
}
|
|
1691
|
-
),
|
|
1692
|
-
label: __("Brightness", "eightshift-ui-components"),
|
|
1693
|
-
inline: true,
|
|
1694
|
-
children: /* @__PURE__ */ jsx($3985021b0ad6602f$export$f5b8910cec6cf069, { className: valueInputClassName })
|
|
1695
|
-
}
|
|
1696
|
-
)
|
|
1697
|
-
}
|
|
1698
|
-
)
|
|
1699
|
-
]
|
|
1700
|
-
}
|
|
1701
|
-
)
|
|
1702
|
-
]
|
|
1703
|
-
}
|
|
1704
|
-
)
|
|
1705
|
-
] })
|
|
1706
|
-
] });
|
|
1707
|
-
};
|
|
1708
|
-
export {
|
|
1709
|
-
SolidColorPicker
|
|
1710
|
-
};
|
|
1
|
+
import { t as SolidColorPicker } from "../../solid-color-picker-DbT-aoVx.js";
|
|
2
|
+
import "../../build-module-sxK3nxOK.js";
|
|
3
|
+
export { SolidColorPicker };
|