@react-spectrum/color 3.0.0-nightly.3598 → 3.0.0-nightly.3600
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/main.css +1 -1
- package/dist/main.js +190 -129
- package/dist/main.js.map +1 -1
- package/dist/module.mjs +190 -129
- package/dist/module.mjs.map +1 -1
- package/package.json +21 -21
package/dist/main.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
.spectrum-ColorHandle_5a9f41.is-focused_5a9f41,.spectrum-ColorHandle_5a9f41.focus-ring_5a9f41{width:calc(var(--spectrum-colorhandle-size,var(--spectrum-global-dimension-size-200))*2);height:calc(var(--spectrum-colorhandle-size,var(--spectrum-global-dimension-size-200))*2);margin-left:calc(-1*var(--spectrum-colorhandle-size,var(--spectrum-global-dimension-size-200)));margin-top:calc(-1*var(--spectrum-colorhandle-size,var(--spectrum-global-dimension-size-200)))}.spectrum-ColorHandle_5a9f41{z-index:1;box-sizing:border-box;width:var(--spectrum-colorhandle-size,var(--spectrum-global-dimension-size-200));height:var(--spectrum-colorhandle-size,var(--spectrum-global-dimension-size-200));margin-left:calc(-1*var(--spectrum-colorhandle-size,var(--spectrum-global-dimension-size-200))/2);margin-top:calc(-1*var(--spectrum-colorhandle-size,var(--spectrum-global-dimension-size-200))/2);border-width:var(--spectrum-colorhandle-inner-border-size,var(--spectrum-global-dimension-static-size-25));background-size:var(--spectrum-global-dimension-static-size-200,16px)var(--spectrum-global-dimension-static-size-200,16px);background-position:calc(-1*var(--spectrum-global-dimension-static-size-25,2px))calc(-1*var(--spectrum-global-dimension-static-size-25,2px)),calc(-1*var(--spectrum-global-dimension-static-size-25,2px))calc(var(--spectrum-global-dimension-static-size-100,8px) + -1*var(--spectrum-global-dimension-static-size-25,2px)),calc(var(--spectrum-global-dimension-static-size-100,8px) + -1*var(--spectrum-global-dimension-static-size-25,2px))calc(-1*var(--spectrum-global-dimension-static-size-100,8px) + -1*var(--spectrum-global-dimension-static-size-25,2px)),calc(-1*var(--spectrum-global-dimension-static-size-100,8px) + -1*var(--spectrum-global-dimension-static-size-25,2px))calc(-1*var(--spectrum-global-dimension-static-size-25,2px));transition:width var(--spectrum-global-animation-duration-100,130ms)ease-in-out,height var(--spectrum-global-animation-duration-100,130ms)ease-in-out,border-width var(--spectrum-global-animation-duration-100,130ms)ease-in-out,margin-left var(--spectrum-global-animation-duration-100,130ms)ease-in-out,margin-top var(--spectrum-global-animation-duration-100,130ms)ease-in-out;border-style:solid;display:block;position:absolute}.spectrum-ColorHandle_5a9f41,.spectrum-ColorHandle_5a9f41:after{border-radius:100%}.spectrum-ColorHandle_5a9f41:after{content:"";left:calc(50% - var(--spectrum-global-dimension-size-300)/2);top:calc(50% - var(--spectrum-global-dimension-size-300)/2);width:var(--spectrum-global-dimension-size-300);height:var(--spectrum-global-dimension-size-300);display:block;position:absolute}.spectrum-ColorHandle_5a9f41.is-disabled_5a9f41{pointer-events:none}.spectrum-ColorHandle-color_5a9f41{width:100%;height:100%;border-radius:100%}.spectrum-ColorHandle_5a9f41{border-color:var(--spectrum-colorhandle-inner-border-color,var(--spectrum-global-color-static-white));box-shadow:0 0 0 var(--spectrum-colorhandle-outer-border-size,var(--spectrum-global-dimension-static-size-10))#0000006b;background-color:var(--spectrum-global-color-static-white,#fff);background-image:linear-gradient(-45deg,transparent 75.5%,var(--spectrum-global-color-static-gray-500,#bcbcbc)75.5%),linear-gradient(45deg,transparent 75.5%,var(--spectrum-global-color-static-gray-500,#bcbcbc)75.5%),linear-gradient(-45deg,var(--spectrum-global-color-static-gray-500,#bcbcbc)25.5%,transparent 25.5%),linear-gradient(45deg,var(--spectrum-global-color-static-gray-500,#bcbcbc)25.5%,transparent 25.5%)}.spectrum-ColorHandle_5a9f41.is-disabled_5a9f41{border-color:var(--spectrum-colorhandle-inner-border-color-disabled,var(--spectrum-global-color-gray-400));background:var(--spectrum-colorhandle-fill-color-disabled,var(--spectrum-global-color-gray-300));box-shadow:none}.spectrum-ColorHandle_5a9f41.is-disabled_5a9f41 .spectrum-ColorHandle-color_5a9f41{display:none}.spectrum-ColorHandle-color_5a9f41{box-shadow:inset 0 0 0 var(--spectrum-colorhandle-outer-border-size,var(--spectrum-global-dimension-static-size-10))#0000006b}@media (forced-colors:active){.spectrum-ColorHandle_5a9f41{forced-color-adjust:none;--spectrum-colorhandle-inner-border-color-disabled:GrayText;--spectrum-colorhandle-fill-color-disabled:GrayText;--spectrum-colorhandle-inner-border-color:ButtonText;--spectrum-colorhandle-outer-border-color:ButtonFace}}.spectrum-ColorLoupe_c818a8{width:calc(var(--spectrum-colorloupe-width,var(--spectrum-global-dimension-static-size-600)) + var(--spectrum-colorhandle-inner-border-size,var(--spectrum-global-dimension-static-size-25))*2);height:calc(var(--spectrum-colorloupe-height,var(--spectrum-global-dimension-static-size-800)) + var(--spectrum-colorhandle-inner-border-size,var(--spectrum-global-dimension-static-size-25))*2);transform:translate(0,var(--spectrum-global-dimension-static-size-100,8px));opacity:0;transform-origin:bottom;bottom:calc(50% + var(--spectrum-global-dimension-static-size-200,16px));left:calc(50% - (var(--spectrum-colorloupe-width,var(--spectrum-global-dimension-static-size-600)) + var(--spectrum-colorhandle-inner-border-size,var(--spectrum-global-dimension-static-size-25))*2)/2);pointer-events:none;transition:transform .1s ease-in-out,opacity .125s ease-in-out;position:absolute}.spectrum-ColorLoupe_c818a8.is-open_c818a8{opacity:1;z-index:2;transform:translate(0)}.spectrum-ColorLoupe-outer_c818a8{stroke-width:var(--spectrum-colorloupe-outer-border-size,var(--spectrum-global-dimension-static-size-10));fill:var(--spectrum-colorloupe-inner-border-color,var(--spectrum-global-color-static-white));stroke:var(--spectrum-colorloupe-outer-border-color,#3232321a)}.spectrum-ColorLoupe-inner-background_c818a8{fill:var(--spectrum-global-color-static-white,#fff)}.spectrum-ColorLoupe-inner-checker_c818a8{fill:var(--spectrum-global-color-static-gray-500,#bcbcbc)}@media (forced-colors:active){.spectrum-ColorLoupe_c818a8{forced-color-adjust:none;--spectrum-colorloupe-inner-border-color:ButtonText;--spectrum-colorloupe-outer-border-color:ButtonFace}}.spectrum-ColorArea_35e2c0{width:var(--spectrum-colorarea-default-width,var(--spectrum-global-dimension-size-2400));height:var(--spectrum-colorarea-default-height,var(--spectrum-global-dimension-size-2400));min-width:var(--spectrum-colorarea-min-width,var(--spectrum-global-dimension-size-800));min-height:var(--spectrum-colorarea-min-height,var(--spectrum-global-dimension-size-800));border-radius:var(--spectrum-colorarea-border-radius,var(--spectrum-alias-border-radius-regular));cursor:default;-webkit-user-select:none;user-select:none;display:inline-block;position:relative}.spectrum-ColorArea_35e2c0.is-focused_35e2c0,.spectrum-ColorArea_35e2c0.focus-ring_35e2c0{z-index:2}.spectrum-ColorArea_35e2c0.is-focused_35e2c0 .spectrum-ColorArea-handle_35e2c0,.spectrum-ColorArea_35e2c0.focus-ring_35e2c0 .spectrum-ColorArea-handle_35e2c0{width:calc(var(--spectrum-colorhandle-size,var(--spectrum-global-dimension-size-200))*2);height:calc(var(--spectrum-colorhandle-size,var(--spectrum-global-dimension-size-200))*2);margin-left:calc(-1*var(--spectrum-colorhandle-size,var(--spectrum-global-dimension-size-200)));margin-top:calc(-1*var(--spectrum-colorhandle-size,var(--spectrum-global-dimension-size-200)))}.spectrum-ColorArea_35e2c0.is-disabled_35e2c0{pointer-events:none}.spectrum-ColorArea_35e2c0:before{content:"";z-index:1;border-radius:var(--spectrum-colorarea-border-radius,var(--spectrum-alias-border-radius-regular));position:absolute;top:0;bottom:0;left:0;right:0}.spectrum-ColorArea-handle_35e2c0{top:0;left:0}.spectrum-ColorArea-handle_35e2c0:focus-within{z-index:2}.spectrum-ColorArea-gradient_35e2c0{width:100%;height:100%;border-radius:var(--spectrum-colorarea-border-radius,var(--spectrum-alias-border-radius-regular))}.spectrum-ColorArea-slider_35e2c0{opacity:.0001;width:100%;height:100%;z-index:0;pointer-events:none;margin:0;position:absolute;top:0;left:0}.spectrum-ColorArea_35e2c0:before{box-shadow:inset 0 0 0 var(--spectrum-colorarea-border-size,var(--spectrum-alias-border-size-thin))var(--spectrum-colorarea-border-color)}.spectrum-ColorArea-gradient_35e2c0,.spectrum-ColorHandle-color_35e2c0{forced-color-adjust:none}.spectrum-ColorArea_35e2c0.is-disabled_35e2c0{background:var(--spectrum-colorarea-fill-color-disabled,var(--spectrum-global-color-gray-300))}.spectrum-ColorArea_35e2c0.is-disabled_35e2c0:before{box-shadow:inset 0 0 0 var(--spectrum-colorarea-border-size,var(--spectrum-alias-border-size-thin))var(--spectrum-colorarea-border-color-disabled,var(--spectrum-global-color-gray-300))}.spectrum-ColorArea_35e2c0.is-disabled_35e2c0 .spectrum-ColorArea-gradient_35e2c0{display:none}@media (forced-colors:active){.spectrum-ColorArea_35e2c0{--spectrum-colorarea-fill-color-disabled:GrayText;forced-color-adjust:none}.spectrum-ColorArea_35e2c0.is-disabled_35e2c0{forced-color-adjust:none}}.spectrum-ColorWheel_31462a.spectrum-ColorWheel_31462a.is-focused_31462a .spectrum-ColorWheel-handle_31462a{width:calc(var(--spectrum-colorhandle-size,var(--spectrum-global-dimension-size-200))*2);height:calc(var(--spectrum-colorhandle-size,var(--spectrum-global-dimension-size-200))*2);margin-left:calc(-1*var(--spectrum-colorhandle-size,var(--spectrum-global-dimension-size-200)));margin-top:calc(-1*var(--spectrum-colorhandle-size,var(--spectrum-global-dimension-size-200)))}.spectrum-ColorWheel-slider_31462a{opacity:.0001;width:100%;height:100%;z-index:0;pointer-events:none;margin:0;position:absolute;top:0;left:0}.spectrum-ColorWheel_31462a.spectrum-ColorWheel_31462a{width:calc(var(--spectrum-global-dimension-size-125)*16);height:calc(var(--spectrum-global-dimension-size-125)*16);--spectrum-colorwheel-track-thickness:var(--spectrum-colorwheel-track-width,var(--spectrum-global-dimension-size-300));-webkit-user-select:none;user-select:none;-ms-touch-action:none;touch-action:none;cursor:default;border-radius:100%;display:block;position:relative}.spectrum-ColorWheel_31462a.spectrum-ColorWheel_31462a .spectrum-ColorWheel-handle_31462a{margin:0}.spectrum-ColorWheel_31462a.spectrum-ColorWheel_31462a.is-focused_31462a{z-index:2}.spectrum-ColorWheel_31462a.spectrum-ColorWheel_31462a.is-disabled_31462a{pointer-events:none}.spectrum-ColorWheel_31462a.spectrum-ColorWheel_31462a.is-dragged_31462a{z-index:2}.spectrum-ColorWheel-gradient_31462a{z-index:0;width:calc(var(--spectrum-global-dimension-size-125)*16);height:calc(var(--spectrum-global-dimension-size-125)*16);position:relative}.spectrum-ColorWheel-gradient_31462a:before,.spectrum-ColorWheel-gradient_31462a:after{content:"";border-width:var(--spectrum-colorwheel-border-size,var(--spectrum-alias-border-size-thin));border-radius:100%;border-style:solid;position:absolute}.spectrum-ColorWheel-gradient_31462a:before{top:0;bottom:0;left:0;right:0}.spectrum-ColorWheel-gradient_31462a:after{top:calc(var(--spectrum-colorwheel-track-width,var(--spectrum-global-dimension-size-300)) - var(--spectrum-colorwheel-border-size,var(--spectrum-alias-border-size-thin)));left:calc(var(--spectrum-colorwheel-track-width,var(--spectrum-global-dimension-size-300)) - var(--spectrum-colorwheel-border-size,var(--spectrum-alias-border-size-thin)));bottom:calc(var(--spectrum-colorwheel-track-width,var(--spectrum-global-dimension-size-300)) - var(--spectrum-colorwheel-border-size,var(--spectrum-alias-border-size-thin)));right:calc(var(--spectrum-colorwheel-track-width,var(--spectrum-global-dimension-size-300)) - var(--spectrum-colorwheel-border-size,var(--spectrum-alias-border-size-thin)))}.spectrum-ColorWheel_31462a.is-disabled_31462a .spectrum-ColorWheel-gradient_31462a{background:var(--spectrum-colorwheel-fill-color-disabled,var(--spectrum-global-color-gray-300))!important}.spectrum-ColorWheel_31462a.is-disabled_31462a .spectrum-ColorWheel-gradient_31462a:before,.spectrum-ColorWheel_31462a.is-disabled_31462a .spectrum-ColorWheel-gradient_31462a:after{border-color:var(--spectrum-colorwheel-border-color-disabled,var(--spectrum-global-color-gray-300))}.spectrum-ColorWheel_31462a.is-disabled_31462a .spectrum-ColorWheel-segment_31462a{display:none}.spectrum-ColorWheel-gradient_31462a:before,.spectrum-ColorWheel-gradient_31462a:after{border-color:var(--spectrum-colorarea-border-color)}@media (forced-colors:active){.spectrum-ColorWheel_31462a{forced-color-adjust:none;--spectrum-colorwheel-fill-color-disabled:GrayText;--spectrum-colorwheel-border-color-disabled:GrayText;--spectrum-colorwheel-border-color:ButtonText;--spectrum-colorarea-border-color:ButtonText}}.spectrum-ColorSlider_a5bb06.is-focused_a5bb06 .spectrum-ColorSlider-handle_a5bb06{width:calc(var(--spectrum-colorhandle-size,var(--spectrum-global-dimension-size-200))*2);height:calc(var(--spectrum-colorhandle-size,var(--spectrum-global-dimension-size-200))*2);margin-left:calc(-1*var(--spectrum-colorhandle-size,var(--spectrum-global-dimension-size-200)));margin-top:calc(-1*var(--spectrum-colorhandle-size,var(--spectrum-global-dimension-size-200)))}.spectrum-ColorSlider-slider_a5bb06{opacity:.0001;width:100%;height:100%;z-index:0;pointer-events:none;margin:0;position:absolute;top:0;left:0}.spectrum-ColorSlider-container--horizontal_a5bb06{width:var(--spectrum-colorslider-default-length,var(--spectrum-global-dimension-size-2400))}.spectrum-ColorSlider-container--vertical_a5bb06{height:var(--spectrum-colorslider-default-length,var(--spectrum-global-dimension-size-2400));flex-direction:column;display:flex}.spectrum-ColorSlider_a5bb06{width:100%;height:var(--spectrum-colorslider-height,var(--spectrum-global-dimension-size-300));border-radius:var(--spectrum-colorslider-border-radius,var(--spectrum-alias-border-radius-regular));-webkit-user-select:none;user-select:none;-ms-touch-action:none;touch-action:none;cursor:default;display:block;position:relative}.spectrum-ColorSlider_a5bb06:before{content:"";z-index:-1;border-radius:var(--spectrum-colorslider-border-radius,var(--spectrum-alias-border-radius-regular));background-size:var(--spectrum-global-dimension-static-size-200,16px)var(--spectrum-global-dimension-static-size-200,16px);background-position:0 0,0 var(--spectrum-global-dimension-static-size-100,8px),var(--spectrum-global-dimension-static-size-100,8px)calc(-1*var(--spectrum-global-dimension-static-size-100,8px)),calc(-1*var(--spectrum-global-dimension-static-size-100,8px))0;position:absolute;top:0;bottom:0;left:0;right:0}.spectrum-ColorSlider_a5bb06.is-focused_a5bb06{z-index:2}.spectrum-ColorSlider_a5bb06.is-disabled_a5bb06{pointer-events:none}.spectrum-ColorSlider--vertical_a5bb06{width:var(--spectrum-colorslider-vertical-width,var(--spectrum-global-dimension-size-300));flex:1;display:inline-block}.spectrum-ColorSlider--vertical_a5bb06 .spectrum-ColorSlider-handle_a5bb06{top:0;left:50%}.spectrum-ColorSlider-handle_a5bb06{top:50%;left:0}.spectrum-ColorSlider-handle_a5bb06:after{width:var(--spectrum-global-dimension-size-300);height:var(--spectrum-global-dimension-size-300);border-radius:0%}.spectrum-ColorSlider-labelContainer_a5bb06{display:-ms-grid;-ms-grid-columns:auto 1fr auto;-ms-grid-column-align:start;grid-template-columns:auto 1fr auto;grid-template-areas:"label contextualHelp value";justify-items:start;display:grid}[dir=ltr] .spectrum-ColorSlider-contextualHelp_a5bb06{margin-left:var(--spectrum-global-dimension-size-50)}[dir=rtl] .spectrum-ColorSlider-contextualHelp_a5bb06{margin-right:var(--spectrum-global-dimension-size-50)}.spectrum-ColorSlider-contextualHelp_a5bb06{margin-top:var(--spectrum-global-dimension-size-25);grid-area:contextualHelp}[dir=ltr] .spectrum-ColorSlider-valueLabel_a5bb06{margin-left:var(--spectrum-global-dimension-size-50)}[dir=rtl] .spectrum-ColorSlider-valueLabel_a5bb06{margin-right:var(--spectrum-global-dimension-size-50)}.spectrum-ColorSlider-valueLabel_a5bb06{grid-area:value}.spectrum-ColorSlider_a5bb06{background-color:var(--spectrum-global-color-static-white,#fff);box-shadow:inset 0 0 0 var(--spectrum-colorslider-border-size,var(--spectrum-alias-border-size-thin))var(--spectrum-colorarea-border-color)}.spectrum-ColorSlider_a5bb06:before{background-image:linear-gradient(-45deg,transparent 75.5%,var(--spectrum-global-color-static-gray-500,#bcbcbc)75.5%),linear-gradient(45deg,transparent 75.5%,var(--spectrum-global-color-static-gray-500,#bcbcbc)75.5%),linear-gradient(-45deg,var(--spectrum-global-color-static-gray-500,#bcbcbc)25.5%,transparent 25.5%),linear-gradient(45deg,var(--spectrum-global-color-static-gray-500,#bcbcbc)25.5%,transparent 25.5%)}.spectrum-ColorSlider_a5bb06.is-disabled_a5bb06{box-shadow:inset 0 0 0 var(--spectrum-colorslider-border-size,var(--spectrum-alias-border-size-thin))var(--spectrum-colorslider-border-color-disabled,var(--spectrum-global-color-gray-300));background:var(--spectrum-colorslider-fill-color-disabled,var(--spectrum-global-color-gray-300))!important}.spectrum-ColorSlider_a5bb06 .spectrum-ColorSlider-handle_a5bb06{margin:0}@media (forced-colors:active){.spectrum-ColorSlider_a5bb06{forced-color-adjust:none;--spectrum-colorslider-fill-color-disabled:GrayText;--spectrum-colorslider-border-color-disabled:GrayText;--spectrum-colorslider-border-color:ButtonText;--spectrum-colorarea-border-color:ButtonText}}[dir=ltr] .react-spectrum-ColorField-input_7bde3a{text-align:left}[dir=rtl] .react-spectrum-ColorField-input_7bde3a{text-align:right}.react-spectrum-ColorField-input_7bde3a{direction:ltr}
|
1
|
+
.spectrum-ColorHandle_5a9f41.is-focused_5a9f41,.spectrum-ColorHandle_5a9f41.focus-ring_5a9f41{width:calc(var(--spectrum-colorhandle-size,var(--spectrum-global-dimension-size-200))*2);height:calc(var(--spectrum-colorhandle-size,var(--spectrum-global-dimension-size-200))*2);margin-left:calc(-1*var(--spectrum-colorhandle-size,var(--spectrum-global-dimension-size-200)));margin-top:calc(-1*var(--spectrum-colorhandle-size,var(--spectrum-global-dimension-size-200)))}.spectrum-ColorHandle_5a9f41{z-index:1;box-sizing:border-box;width:var(--spectrum-colorhandle-size,var(--spectrum-global-dimension-size-200));height:var(--spectrum-colorhandle-size,var(--spectrum-global-dimension-size-200));margin-left:calc(-1*var(--spectrum-colorhandle-size,var(--spectrum-global-dimension-size-200))/2);margin-top:calc(-1*var(--spectrum-colorhandle-size,var(--spectrum-global-dimension-size-200))/2);border-width:var(--spectrum-colorhandle-inner-border-size,var(--spectrum-global-dimension-static-size-25));background-size:var(--spectrum-global-dimension-static-size-200,16px)var(--spectrum-global-dimension-static-size-200,16px);background-position:calc(-1*var(--spectrum-global-dimension-static-size-25,2px))calc(-1*var(--spectrum-global-dimension-static-size-25,2px)),calc(-1*var(--spectrum-global-dimension-static-size-25,2px))calc(var(--spectrum-global-dimension-static-size-100,8px) + -1*var(--spectrum-global-dimension-static-size-25,2px)),calc(var(--spectrum-global-dimension-static-size-100,8px) + -1*var(--spectrum-global-dimension-static-size-25,2px))calc(-1*var(--spectrum-global-dimension-static-size-100,8px) + -1*var(--spectrum-global-dimension-static-size-25,2px)),calc(-1*var(--spectrum-global-dimension-static-size-100,8px) + -1*var(--spectrum-global-dimension-static-size-25,2px))calc(-1*var(--spectrum-global-dimension-static-size-25,2px));transition:width var(--spectrum-global-animation-duration-100,.13s)ease-in-out,height var(--spectrum-global-animation-duration-100,.13s)ease-in-out,border-width var(--spectrum-global-animation-duration-100,.13s)ease-in-out,margin-left var(--spectrum-global-animation-duration-100,.13s)ease-in-out,margin-top var(--spectrum-global-animation-duration-100,.13s)ease-in-out;border-style:solid;display:block;position:absolute}.spectrum-ColorHandle_5a9f41,.spectrum-ColorHandle_5a9f41:after{border-radius:100%}.spectrum-ColorHandle_5a9f41:after{content:"";left:calc(50% - var(--spectrum-global-dimension-size-300)/2);top:calc(50% - var(--spectrum-global-dimension-size-300)/2);width:var(--spectrum-global-dimension-size-300);height:var(--spectrum-global-dimension-size-300);display:block;position:absolute}.spectrum-ColorHandle_5a9f41.is-disabled_5a9f41{pointer-events:none}.spectrum-ColorHandle-color_5a9f41{width:100%;height:100%;border-radius:100%}.spectrum-ColorHandle_5a9f41{border-color:var(--spectrum-colorhandle-inner-border-color,var(--spectrum-global-color-static-white));box-shadow:0 0 0 var(--spectrum-colorhandle-outer-border-size,var(--spectrum-global-dimension-static-size-10))#0000006b;background-color:var(--spectrum-global-color-static-white,#fff);background-image:linear-gradient(-45deg,transparent 75.5%,var(--spectrum-global-color-static-gray-500,#bcbcbc)75.5%),linear-gradient(45deg,transparent 75.5%,var(--spectrum-global-color-static-gray-500,#bcbcbc)75.5%),linear-gradient(-45deg,var(--spectrum-global-color-static-gray-500,#bcbcbc)25.5%,transparent 25.5%),linear-gradient(45deg,var(--spectrum-global-color-static-gray-500,#bcbcbc)25.5%,transparent 25.5%)}.spectrum-ColorHandle_5a9f41.is-disabled_5a9f41{border-color:var(--spectrum-colorhandle-inner-border-color-disabled,var(--spectrum-global-color-gray-400));background:var(--spectrum-colorhandle-fill-color-disabled,var(--spectrum-global-color-gray-300));box-shadow:none}.spectrum-ColorHandle_5a9f41.is-disabled_5a9f41 .spectrum-ColorHandle-color_5a9f41{display:none}.spectrum-ColorHandle-color_5a9f41{box-shadow:inset 0 0 0 var(--spectrum-colorhandle-outer-border-size,var(--spectrum-global-dimension-static-size-10))#0000006b}@media (forced-colors:active){.spectrum-ColorHandle_5a9f41{forced-color-adjust:none;--spectrum-colorhandle-inner-border-color-disabled:GrayText;--spectrum-colorhandle-fill-color-disabled:GrayText;--spectrum-colorhandle-inner-border-color:ButtonText;--spectrum-colorhandle-outer-border-color:ButtonFace}}[dir=ltr] .react-spectrum-ColorField-input_7bde3a{text-align:left}[dir=rtl] .react-spectrum-ColorField-input_7bde3a{text-align:right}.react-spectrum-ColorField-input_7bde3a{direction:ltr}.spectrum-ColorSlider_a5bb06.is-focused_a5bb06 .spectrum-ColorSlider-handle_a5bb06{width:calc(var(--spectrum-colorhandle-size,var(--spectrum-global-dimension-size-200))*2);height:calc(var(--spectrum-colorhandle-size,var(--spectrum-global-dimension-size-200))*2);margin-left:calc(-1*var(--spectrum-colorhandle-size,var(--spectrum-global-dimension-size-200)));margin-top:calc(-1*var(--spectrum-colorhandle-size,var(--spectrum-global-dimension-size-200)))}.spectrum-ColorSlider-slider_a5bb06{opacity:.0001;width:100%;height:100%;z-index:0;pointer-events:none;margin:0;position:absolute;top:0;left:0}.spectrum-ColorSlider-container--horizontal_a5bb06{width:var(--spectrum-colorslider-default-length,var(--spectrum-global-dimension-size-2400))}.spectrum-ColorSlider-container--vertical_a5bb06{height:var(--spectrum-colorslider-default-length,var(--spectrum-global-dimension-size-2400));flex-direction:column;display:flex}.spectrum-ColorSlider_a5bb06{width:100%;height:var(--spectrum-colorslider-height,var(--spectrum-global-dimension-size-300));border-radius:var(--spectrum-colorslider-border-radius,var(--spectrum-alias-border-radius-regular));-webkit-user-select:none;user-select:none;-ms-touch-action:none;touch-action:none;cursor:default;display:block;position:relative}.spectrum-ColorSlider_a5bb06:before{content:"";z-index:-1;border-radius:var(--spectrum-colorslider-border-radius,var(--spectrum-alias-border-radius-regular));background-size:var(--spectrum-global-dimension-static-size-200,16px)var(--spectrum-global-dimension-static-size-200,16px);background-position:0 0,0 var(--spectrum-global-dimension-static-size-100,8px),var(--spectrum-global-dimension-static-size-100,8px)calc(-1*var(--spectrum-global-dimension-static-size-100,8px)),calc(-1*var(--spectrum-global-dimension-static-size-100,8px))0;position:absolute;top:0;bottom:0;left:0;right:0}.spectrum-ColorSlider_a5bb06.is-focused_a5bb06{z-index:2}.spectrum-ColorSlider_a5bb06.is-disabled_a5bb06{pointer-events:none}.spectrum-ColorSlider--vertical_a5bb06{width:var(--spectrum-colorslider-vertical-width,var(--spectrum-global-dimension-size-300));flex:1;display:inline-block}.spectrum-ColorSlider--vertical_a5bb06 .spectrum-ColorSlider-handle_a5bb06{top:0;left:50%}.spectrum-ColorSlider-handle_a5bb06{top:50%;left:0}.spectrum-ColorSlider-handle_a5bb06:after{width:var(--spectrum-global-dimension-size-300);height:var(--spectrum-global-dimension-size-300);border-radius:0%}.spectrum-ColorSlider-labelContainer_a5bb06{display:-ms-grid;-ms-grid-columns:auto 1fr auto;-ms-grid-column-align:start;grid-template-columns:auto 1fr auto;grid-template-areas:"label contextualHelp value";justify-items:start;display:grid}[dir=ltr] .spectrum-ColorSlider-contextualHelp_a5bb06.spectrum-ColorSlider-contextualHelp_a5bb06{margin-left:var(--spectrum-global-dimension-size-50)}[dir=rtl] .spectrum-ColorSlider-contextualHelp_a5bb06.spectrum-ColorSlider-contextualHelp_a5bb06{margin-right:var(--spectrum-global-dimension-size-50)}.spectrum-ColorSlider-contextualHelp_a5bb06.spectrum-ColorSlider-contextualHelp_a5bb06{margin-top:var(--spectrum-global-dimension-size-25);grid-area:contextualHelp}[dir=ltr] .spectrum-ColorSlider-valueLabel_a5bb06{margin-left:var(--spectrum-global-dimension-size-50)}[dir=rtl] .spectrum-ColorSlider-valueLabel_a5bb06{margin-right:var(--spectrum-global-dimension-size-50)}.spectrum-ColorSlider-valueLabel_a5bb06{grid-area:value}.spectrum-ColorSlider_a5bb06{background-color:var(--spectrum-global-color-static-white,#fff);box-shadow:inset 0 0 0 var(--spectrum-colorslider-border-size,var(--spectrum-alias-border-size-thin))var(--spectrum-colorarea-border-color)}.spectrum-ColorSlider_a5bb06:before{background-image:linear-gradient(-45deg,transparent 75.5%,var(--spectrum-global-color-static-gray-500,#bcbcbc)75.5%),linear-gradient(45deg,transparent 75.5%,var(--spectrum-global-color-static-gray-500,#bcbcbc)75.5%),linear-gradient(-45deg,var(--spectrum-global-color-static-gray-500,#bcbcbc)25.5%,transparent 25.5%),linear-gradient(45deg,var(--spectrum-global-color-static-gray-500,#bcbcbc)25.5%,transparent 25.5%)}.spectrum-ColorSlider_a5bb06.is-disabled_a5bb06{box-shadow:inset 0 0 0 var(--spectrum-colorslider-border-size,var(--spectrum-alias-border-size-thin))var(--spectrum-colorslider-border-color-disabled,var(--spectrum-global-color-gray-300));background:var(--spectrum-colorslider-fill-color-disabled,var(--spectrum-global-color-gray-300))!important}.spectrum-ColorSlider_a5bb06 .spectrum-ColorSlider-handle_a5bb06{margin:0}@media (forced-colors:active){.spectrum-ColorSlider_a5bb06{forced-color-adjust:none;--spectrum-colorslider-fill-color-disabled:GrayText;--spectrum-colorslider-border-color-disabled:GrayText;--spectrum-colorslider-border-color:ButtonText;--spectrum-colorarea-border-color:ButtonText}}.spectrum-ColorWheel_31462a.spectrum-ColorWheel_31462a.is-focused_31462a .spectrum-ColorWheel-handle_31462a{width:calc(var(--spectrum-colorhandle-size,var(--spectrum-global-dimension-size-200))*2);height:calc(var(--spectrum-colorhandle-size,var(--spectrum-global-dimension-size-200))*2);margin-left:calc(-1*var(--spectrum-colorhandle-size,var(--spectrum-global-dimension-size-200)));margin-top:calc(-1*var(--spectrum-colorhandle-size,var(--spectrum-global-dimension-size-200)))}.spectrum-ColorWheel-slider_31462a{opacity:.0001;width:100%;height:100%;z-index:0;pointer-events:none;margin:0;position:absolute;top:0;left:0}.spectrum-ColorWheel_31462a.spectrum-ColorWheel_31462a{width:calc(var(--spectrum-global-dimension-size-125)*16);height:calc(var(--spectrum-global-dimension-size-125)*16);--spectrum-colorwheel-track-thickness:var(--spectrum-colorwheel-track-width,var(--spectrum-global-dimension-size-300));-webkit-user-select:none;user-select:none;-ms-touch-action:none;touch-action:none;cursor:default;border-radius:100%;display:block;position:relative}.spectrum-ColorWheel_31462a.spectrum-ColorWheel_31462a .spectrum-ColorWheel-handle_31462a{margin:0}.spectrum-ColorWheel_31462a.spectrum-ColorWheel_31462a.is-focused_31462a{z-index:2}.spectrum-ColorWheel_31462a.spectrum-ColorWheel_31462a.is-disabled_31462a{pointer-events:none}.spectrum-ColorWheel_31462a.spectrum-ColorWheel_31462a.is-dragged_31462a{z-index:2}.spectrum-ColorWheel-gradient_31462a{z-index:0;width:calc(var(--spectrum-global-dimension-size-125)*16);height:calc(var(--spectrum-global-dimension-size-125)*16);position:relative}.spectrum-ColorWheel-gradient_31462a:before,.spectrum-ColorWheel-gradient_31462a:after{content:"";border-width:var(--spectrum-colorwheel-border-size,var(--spectrum-alias-border-size-thin));border-style:solid;border-radius:100%;position:absolute}.spectrum-ColorWheel-gradient_31462a:before{top:0;bottom:0;left:0;right:0}.spectrum-ColorWheel-gradient_31462a:after{top:calc(var(--spectrum-colorwheel-track-width,var(--spectrum-global-dimension-size-300)) - var(--spectrum-colorwheel-border-size,var(--spectrum-alias-border-size-thin)));left:calc(var(--spectrum-colorwheel-track-width,var(--spectrum-global-dimension-size-300)) - var(--spectrum-colorwheel-border-size,var(--spectrum-alias-border-size-thin)));bottom:calc(var(--spectrum-colorwheel-track-width,var(--spectrum-global-dimension-size-300)) - var(--spectrum-colorwheel-border-size,var(--spectrum-alias-border-size-thin)));right:calc(var(--spectrum-colorwheel-track-width,var(--spectrum-global-dimension-size-300)) - var(--spectrum-colorwheel-border-size,var(--spectrum-alias-border-size-thin)))}.spectrum-ColorWheel_31462a.is-disabled_31462a .spectrum-ColorWheel-gradient_31462a{background:var(--spectrum-colorwheel-fill-color-disabled,var(--spectrum-global-color-gray-300))!important}.spectrum-ColorWheel_31462a.is-disabled_31462a .spectrum-ColorWheel-gradient_31462a:before,.spectrum-ColorWheel_31462a.is-disabled_31462a .spectrum-ColorWheel-gradient_31462a:after{border-color:var(--spectrum-colorwheel-border-color-disabled,var(--spectrum-global-color-gray-300))}.spectrum-ColorWheel_31462a.is-disabled_31462a .spectrum-ColorWheel-segment_31462a{display:none}.spectrum-ColorWheel-gradient_31462a:before,.spectrum-ColorWheel-gradient_31462a:after{border-color:var(--spectrum-colorarea-border-color)}@media (forced-colors:active){.spectrum-ColorWheel_31462a{forced-color-adjust:none;--spectrum-colorwheel-fill-color-disabled:GrayText;--spectrum-colorwheel-border-color-disabled:GrayText;--spectrum-colorwheel-border-color:ButtonText;--spectrum-colorarea-border-color:ButtonText}}.spectrum-ColorArea_35e2c0{width:var(--spectrum-colorarea-default-width,var(--spectrum-global-dimension-size-2400));height:var(--spectrum-colorarea-default-height,var(--spectrum-global-dimension-size-2400));min-width:var(--spectrum-colorarea-min-width,var(--spectrum-global-dimension-size-800));min-height:var(--spectrum-colorarea-min-height,var(--spectrum-global-dimension-size-800));border-radius:var(--spectrum-colorarea-border-radius,var(--spectrum-alias-border-radius-regular));cursor:default;-webkit-user-select:none;user-select:none;display:inline-block;position:relative}.spectrum-ColorArea_35e2c0.is-focused_35e2c0,.spectrum-ColorArea_35e2c0.focus-ring_35e2c0{z-index:2}.spectrum-ColorArea_35e2c0.is-focused_35e2c0 .spectrum-ColorArea-handle_35e2c0,.spectrum-ColorArea_35e2c0.focus-ring_35e2c0 .spectrum-ColorArea-handle_35e2c0{width:calc(var(--spectrum-colorhandle-size,var(--spectrum-global-dimension-size-200))*2);height:calc(var(--spectrum-colorhandle-size,var(--spectrum-global-dimension-size-200))*2);margin-left:calc(-1*var(--spectrum-colorhandle-size,var(--spectrum-global-dimension-size-200)));margin-top:calc(-1*var(--spectrum-colorhandle-size,var(--spectrum-global-dimension-size-200)))}.spectrum-ColorArea_35e2c0.is-disabled_35e2c0{pointer-events:none}.spectrum-ColorArea_35e2c0:before{content:"";z-index:1;border-radius:var(--spectrum-colorarea-border-radius,var(--spectrum-alias-border-radius-regular));position:absolute;top:0;bottom:0;left:0;right:0}.spectrum-ColorArea-handle_35e2c0{top:0;left:0}.spectrum-ColorArea-handle_35e2c0:focus-within{z-index:2}.spectrum-ColorArea-gradient_35e2c0{width:100%;height:100%;border-radius:var(--spectrum-colorarea-border-radius,var(--spectrum-alias-border-radius-regular))}.spectrum-ColorArea-slider_35e2c0{opacity:.0001;width:100%;height:100%;z-index:0;pointer-events:none;margin:0;position:absolute;top:0;left:0}.spectrum-ColorArea_35e2c0:before{box-shadow:inset 0 0 0 var(--spectrum-colorarea-border-size,var(--spectrum-alias-border-size-thin))var(--spectrum-colorarea-border-color)}.spectrum-ColorArea-gradient_35e2c0,.spectrum-ColorHandle-color_35e2c0{forced-color-adjust:none}.spectrum-ColorArea_35e2c0.is-disabled_35e2c0{background:var(--spectrum-colorarea-fill-color-disabled,var(--spectrum-global-color-gray-300))}.spectrum-ColorArea_35e2c0.is-disabled_35e2c0:before{box-shadow:inset 0 0 0 var(--spectrum-colorarea-border-size,var(--spectrum-alias-border-size-thin))var(--spectrum-colorarea-border-color-disabled,var(--spectrum-global-color-gray-300))}.spectrum-ColorArea_35e2c0.is-disabled_35e2c0 .spectrum-ColorArea-gradient_35e2c0{display:none}@media (forced-colors:active){.spectrum-ColorArea_35e2c0{--spectrum-colorarea-fill-color-disabled:GrayText;forced-color-adjust:none}.spectrum-ColorArea_35e2c0.is-disabled_35e2c0{forced-color-adjust:none}}.spectrum-ColorLoupe_c818a8{width:calc(var(--spectrum-colorloupe-width,var(--spectrum-global-dimension-static-size-600)) + var(--spectrum-colorhandle-inner-border-size,var(--spectrum-global-dimension-static-size-25))*2);height:calc(var(--spectrum-colorloupe-height,var(--spectrum-global-dimension-static-size-800)) + var(--spectrum-colorhandle-inner-border-size,var(--spectrum-global-dimension-static-size-25))*2);transform:translate(0,var(--spectrum-global-dimension-static-size-100,8px));opacity:0;transform-origin:bottom;bottom:calc(50% + var(--spectrum-global-dimension-static-size-200,16px));left:calc(50% - (var(--spectrum-colorloupe-width,var(--spectrum-global-dimension-static-size-600)) + var(--spectrum-colorhandle-inner-border-size,var(--spectrum-global-dimension-static-size-25))*2)/2);pointer-events:none;transition:transform .1s ease-in-out,opacity .125s ease-in-out;position:absolute}.spectrum-ColorLoupe_c818a8.is-open_c818a8{opacity:1;z-index:2;transform:translate(0)}.spectrum-ColorLoupe-outer_c818a8{stroke-width:var(--spectrum-colorloupe-outer-border-size,var(--spectrum-global-dimension-static-size-10));fill:var(--spectrum-colorloupe-inner-border-color,var(--spectrum-global-color-static-white));stroke:var(--spectrum-colorloupe-outer-border-color,#3232321a)}.spectrum-ColorLoupe-inner-background_c818a8{fill:var(--spectrum-global-color-static-white,#fff)}.spectrum-ColorLoupe-inner-checker_c818a8{fill:var(--spectrum-global-color-static-gray-500,#bcbcbc)}@media (forced-colors:active){.spectrum-ColorLoupe_c818a8{forced-color-adjust:none;--spectrum-colorloupe-inner-border-color:ButtonText;--spectrum-colorloupe-outer-border-color:ButtonFace}}
|
package/dist/main.js
CHANGED
@@ -22,8 +22,39 @@ $parcel$export(module.exports, "ColorArea", () => $5f016e950c2dc3a6$export$b2103
|
|
22
22
|
$parcel$export(module.exports, "ColorWheel", () => $63a2864687444ae1$export$f80663f808113381);
|
23
23
|
$parcel$export(module.exports, "ColorSlider", () => $4537dec0de08c277$export$44fd664bcca5b6fb);
|
24
24
|
$parcel$export(module.exports, "ColorField", () => $8bdb9bc27ff3debb$export$b865d4358897bb17);
|
25
|
-
|
26
|
-
|
25
|
+
/*
|
26
|
+
* Copyright 2020 Adobe. All rights reserved.
|
27
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
28
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
29
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
30
|
+
*
|
31
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
32
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
33
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
34
|
+
* governing permissions and limitations under the License.
|
35
|
+
*/ /// <reference types="css-module-types" />
|
36
|
+
/*
|
37
|
+
* Copyright 2021 Adobe. All rights reserved.
|
38
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
39
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
40
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
41
|
+
*
|
42
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
43
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
44
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
45
|
+
* governing permissions and limitations under the License.
|
46
|
+
*/
|
47
|
+
/*
|
48
|
+
* Copyright 2020 Adobe. All rights reserved.
|
49
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
50
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
51
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
52
|
+
*
|
53
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
54
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
55
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
56
|
+
* governing permissions and limitations under the License.
|
57
|
+
*/
|
27
58
|
|
28
59
|
var $f61d632765728b2e$exports = {};
|
29
60
|
|
@@ -65,62 +96,62 @@ $f65977ae56facfaa$export$f9a2a02e0b271024 = "spectrum-ColorLoupe-inner-checker_c
|
|
65
96
|
|
66
97
|
|
67
98
|
function $2b9adc23f6c7cae1$export$a3cc47cee1c1ccc(props) {
|
68
|
-
let { value: value , isDisabled: isDisabled , isDragging: isDragging , isFocused: isFocused , children: children , className: className =
|
69
|
-
let patternId = $aAzec$reactariautils.useId();
|
70
|
-
let valueCSS = value.toString(
|
71
|
-
return
|
72
|
-
className: $aAzec$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($f61d632765728b2e$exports)),
|
73
|
-
|
74
|
-
|
75
|
-
}) +
|
99
|
+
let { value: value , isDisabled: isDisabled , isDragging: isDragging , isFocused: isFocused , children: children , className: className = "" , ...otherProps } = props;
|
100
|
+
let patternId = (0, $aAzec$reactariautils.useId)();
|
101
|
+
let valueCSS = value.toString("css");
|
102
|
+
return /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("div", {
|
103
|
+
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($f61d632765728b2e$exports))), "spectrum-ColorHandle", {
|
104
|
+
"is-focused": isFocused,
|
105
|
+
"is-disabled": isDisabled
|
106
|
+
}) + " " + className,
|
76
107
|
...otherProps
|
77
|
-
}, /*#__PURE__*/ ($parcel$interopDefault($aAzec$react)).createElement("div", {
|
78
|
-
className: $aAzec$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($f61d632765728b2e$exports)),
|
108
|
+
}, /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("div", {
|
109
|
+
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($f61d632765728b2e$exports))), "spectrum-ColorHandle-color"),
|
79
110
|
style: {
|
80
111
|
backgroundColor: valueCSS
|
81
112
|
}
|
82
|
-
}), /*#__PURE__*/ ($parcel$interopDefault($aAzec$react)).createElement("svg", {
|
83
|
-
className: $aAzec$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($f65977ae56facfaa$exports)),
|
84
|
-
|
113
|
+
}), /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("svg", {
|
114
|
+
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($f65977ae56facfaa$exports))), "spectrum-ColorLoupe", {
|
115
|
+
"is-open": isDragging
|
85
116
|
}),
|
86
117
|
"aria-hidden": "true"
|
87
|
-
}, /*#__PURE__*/ ($parcel$interopDefault($aAzec$react)).createElement("pattern", {
|
118
|
+
}, /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("pattern", {
|
88
119
|
id: patternId,
|
89
120
|
x: "0",
|
90
121
|
y: "0",
|
91
122
|
width: "16",
|
92
123
|
height: "16",
|
93
124
|
patternUnits: "userSpaceOnUse"
|
94
|
-
}, /*#__PURE__*/ ($parcel$interopDefault($aAzec$react)).createElement("rect", {
|
95
|
-
className: $aAzec$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($f65977ae56facfaa$exports)),
|
125
|
+
}, /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("rect", {
|
126
|
+
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($f65977ae56facfaa$exports))), "spectrum-ColorLoupe-inner-background"),
|
96
127
|
x: "0",
|
97
128
|
y: "0",
|
98
129
|
width: "16",
|
99
130
|
height: "16"
|
100
|
-
}), /*#__PURE__*/ ($parcel$interopDefault($aAzec$react)).createElement("rect", {
|
101
|
-
className: $aAzec$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($f65977ae56facfaa$exports)),
|
131
|
+
}), /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("rect", {
|
132
|
+
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($f65977ae56facfaa$exports))), "spectrum-ColorLoupe-inner-checker"),
|
102
133
|
x: "0",
|
103
134
|
y: "0",
|
104
135
|
width: "8",
|
105
136
|
height: "8"
|
106
|
-
}), /*#__PURE__*/ ($parcel$interopDefault($aAzec$react)).createElement("rect", {
|
107
|
-
className: $aAzec$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($f65977ae56facfaa$exports)),
|
137
|
+
}), /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("rect", {
|
138
|
+
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($f65977ae56facfaa$exports))), "spectrum-ColorLoupe-inner-checker"),
|
108
139
|
x: "8",
|
109
140
|
y: "8",
|
110
141
|
width: "8",
|
111
142
|
height: "8"
|
112
|
-
})), /*#__PURE__*/ ($parcel$interopDefault($aAzec$react)).createElement("path", {
|
113
|
-
className: $aAzec$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($f65977ae56facfaa$exports)),
|
143
|
+
})), /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("path", {
|
144
|
+
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($f65977ae56facfaa$exports))), "spectrum-ColorLoupe-inner"),
|
114
145
|
d: "M25 1a24 24 0 0124 24c0 16.255-24 40-24 40S1 41.255 1 25A24 24 0 0125 1z",
|
115
146
|
fill: `url(#${patternId})`
|
116
|
-
}), /*#__PURE__*/ ($parcel$interopDefault($aAzec$react)).createElement("path", {
|
117
|
-
className: $aAzec$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($f65977ae56facfaa$exports)),
|
147
|
+
}), /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("path", {
|
148
|
+
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($f65977ae56facfaa$exports))), "spectrum-ColorLoupe-inner"),
|
118
149
|
d: "M25 1a24 24 0 0124 24c0 16.255-24 40-24 40S1 41.255 1 25A24 24 0 0125 1z",
|
119
150
|
fill: valueCSS
|
120
|
-
}), /*#__PURE__*/ ($parcel$interopDefault($aAzec$react)).createElement("path", {
|
121
|
-
className: $aAzec$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($f65977ae56facfaa$exports)),
|
151
|
+
}), /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("path", {
|
152
|
+
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($f65977ae56facfaa$exports))), "spectrum-ColorLoupe-outer"),
|
122
153
|
d: "M25 3A21.98 21.98 0 003 25c0 6.2 4 14.794 11.568 24.853A144.233 144.233 0 0025 62.132a144.085 144.085 0 0010.4-12.239C42.99 39.816 47 31.209 47 25A21.98 21.98 0 0025 3m0-2a24 24 0 0124 24c0 16.255-24 40-24 40S1 41.255 1 25A24 24 0 0125 1z"
|
123
|
-
})), children)
|
154
|
+
})), children);
|
124
155
|
}
|
125
156
|
|
126
157
|
|
@@ -159,25 +190,25 @@ $d4b4e0a63f9ca8c1$export$afe4c366ed4e659c = "spectrum-ColorHandle-color_35e2c0";
|
|
159
190
|
|
160
191
|
|
161
192
|
function $5f016e950c2dc3a6$var$ColorArea(props, ref) {
|
162
|
-
props = $aAzec$reactspectrumprovider.useProviderProps(props);
|
193
|
+
props = (0, $aAzec$reactspectrumprovider.useProviderProps)(props);
|
163
194
|
let { isDisabled: isDisabled } = props;
|
164
|
-
let size = props.size && $aAzec$reactspectrumutils.dimensionValue(props.size);
|
165
|
-
let { styleProps: styleProps } = $aAzec$reactspectrumutils.useStyleProps(props);
|
166
|
-
let inputXRef = $aAzec$react.useRef(null);
|
167
|
-
let inputYRef = $aAzec$react.useRef(null);
|
168
|
-
let containerRef = $aAzec$reactspectrumutils.useFocusableRef(ref, inputXRef);
|
169
|
-
let state = $aAzec$reactstatelycolor.useColorAreaState(props);
|
170
|
-
let { colorAreaProps: colorAreaProps , gradientProps: gradientProps , xInputProps: xInputProps , yInputProps: yInputProps , thumbProps: thumbProps } = $aAzec$reactariacolor.useColorArea({
|
195
|
+
let size = props.size && (0, $aAzec$reactspectrumutils.dimensionValue)(props.size);
|
196
|
+
let { styleProps: styleProps } = (0, $aAzec$reactspectrumutils.useStyleProps)(props);
|
197
|
+
let inputXRef = (0, $aAzec$react.useRef)(null);
|
198
|
+
let inputYRef = (0, $aAzec$react.useRef)(null);
|
199
|
+
let containerRef = (0, $aAzec$reactspectrumutils.useFocusableRef)(ref, inputXRef);
|
200
|
+
let state = (0, $aAzec$reactstatelycolor.useColorAreaState)(props);
|
201
|
+
let { colorAreaProps: colorAreaProps , gradientProps: gradientProps , xInputProps: xInputProps , yInputProps: yInputProps , thumbProps: thumbProps } = (0, $aAzec$reactariacolor.useColorArea)({
|
171
202
|
...props,
|
172
203
|
inputXRef: inputXRef,
|
173
204
|
inputYRef: inputYRef,
|
174
205
|
containerRef: containerRef
|
175
206
|
}, state);
|
176
|
-
let { focusProps: focusProps , isFocusVisible: isFocusVisible } = $aAzec$reactariafocus.useFocusRing();
|
177
|
-
return
|
207
|
+
let { focusProps: focusProps , isFocusVisible: isFocusVisible } = (0, $aAzec$reactariafocus.useFocusRing)();
|
208
|
+
return /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("div", {
|
178
209
|
...colorAreaProps,
|
179
|
-
className: $aAzec$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($d4b4e0a63f9ca8c1$exports)),
|
180
|
-
|
210
|
+
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($d4b4e0a63f9ca8c1$exports))), "spectrum-ColorArea", {
|
211
|
+
"is-disabled": isDisabled
|
181
212
|
}, styleProps.className),
|
182
213
|
ref: containerRef,
|
183
214
|
style: {
|
@@ -187,34 +218,44 @@ function $5f016e950c2dc3a6$var$ColorArea(props, ref) {
|
|
187
218
|
width: size,
|
188
219
|
height: size
|
189
220
|
}
|
190
|
-
}, /*#__PURE__*/ ($parcel$interopDefault($aAzec$react)).createElement("div", {
|
221
|
+
}, /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("div", {
|
191
222
|
...gradientProps,
|
192
|
-
className: $aAzec$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($d4b4e0a63f9ca8c1$exports)),
|
193
|
-
}), /*#__PURE__*/ ($parcel$interopDefault($aAzec$react)).createElement($2b9adc23f6c7cae1$export$a3cc47cee1c1ccc, {
|
223
|
+
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($d4b4e0a63f9ca8c1$exports))), "spectrum-ColorArea-gradient")
|
224
|
+
}), /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement((0, $2b9adc23f6c7cae1$export$a3cc47cee1c1ccc), {
|
194
225
|
value: state.getDisplayColor(),
|
195
226
|
isFocused: isFocusVisible,
|
196
227
|
isDisabled: isDisabled,
|
197
228
|
isDragging: state.isDragging,
|
198
|
-
className: $aAzec$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($d4b4e0a63f9ca8c1$exports)),
|
229
|
+
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($d4b4e0a63f9ca8c1$exports))), "spectrum-ColorArea-handle"),
|
199
230
|
...thumbProps
|
200
|
-
}, /*#__PURE__*/ ($parcel$interopDefault($aAzec$react)).createElement("div", {
|
231
|
+
}, /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("div", {
|
201
232
|
role: "presentation"
|
202
|
-
}, /*#__PURE__*/ ($parcel$interopDefault($aAzec$react)).createElement("input", {
|
203
|
-
className: $aAzec$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($d4b4e0a63f9ca8c1$exports)),
|
204
|
-
|
233
|
+
}, /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("input", {
|
234
|
+
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($d4b4e0a63f9ca8c1$exports))), "spectrum-ColorArea-slider"),
|
235
|
+
...(0, $aAzec$reactariautils.mergeProps)(xInputProps, focusProps),
|
205
236
|
ref: inputXRef
|
206
|
-
}), /*#__PURE__*/ ($parcel$interopDefault($aAzec$react)).createElement("input", {
|
207
|
-
className: $aAzec$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($d4b4e0a63f9ca8c1$exports)),
|
208
|
-
|
237
|
+
}), /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("input", {
|
238
|
+
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($d4b4e0a63f9ca8c1$exports))), "spectrum-ColorArea-slider"),
|
239
|
+
...(0, $aAzec$reactariautils.mergeProps)(yInputProps, focusProps),
|
209
240
|
ref: inputYRef
|
210
|
-
}))))
|
241
|
+
}))));
|
211
242
|
}
|
212
243
|
/**
|
213
244
|
* ColorArea allows users to adjust two channels of an RGB, HSL or HSB color value against a two-dimensional gradient background.
|
214
|
-
*/ let $5f016e950c2dc3a6$export$b2103f68a961418e = /*#__PURE__*/ ($parcel$interopDefault($aAzec$react)).forwardRef($5f016e950c2dc3a6$var$ColorArea);
|
215
|
-
|
245
|
+
*/ let $5f016e950c2dc3a6$export$b2103f68a961418e = /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).forwardRef($5f016e950c2dc3a6$var$ColorArea);
|
216
246
|
|
217
247
|
|
248
|
+
/*
|
249
|
+
* Copyright 2020 Adobe. All rights reserved.
|
250
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
251
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
252
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
253
|
+
*
|
254
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
255
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
256
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
257
|
+
* governing permissions and limitations under the License.
|
258
|
+
*/
|
218
259
|
|
219
260
|
|
220
261
|
var $8fc6b1a2f4e7f682$exports = {};
|
@@ -252,18 +293,18 @@ $8fc6b1a2f4e7f682$export$ada9fbffdaa4f10 = "spectrum-ColorWheel-segment_31462a";
|
|
252
293
|
|
253
294
|
const $63a2864687444ae1$var$WHEEL_THICKNESS = 24;
|
254
295
|
function $63a2864687444ae1$var$ColorWheel(props, ref) {
|
255
|
-
props = $aAzec$reactspectrumprovider.useProviderProps(props);
|
296
|
+
props = (0, $aAzec$reactspectrumprovider.useProviderProps)(props);
|
256
297
|
let { isDisabled: isDisabled } = props;
|
257
|
-
let size = props.size && $aAzec$reactspectrumutils.dimensionValue(props.size);
|
258
|
-
let { styleProps: styleProps } = $aAzec$reactspectrumutils.useStyleProps(props);
|
259
|
-
let inputRef = $aAzec$react.useRef(null);
|
260
|
-
let containerRef = $aAzec$reactspectrumutils.useFocusableRef(ref, inputRef);
|
261
|
-
let [wheelRadius, setWheelRadius] = $aAzec$react.useState(0);
|
262
|
-
let [wheelThickness, setWheelThickness] = $aAzec$react.useState($63a2864687444ae1$var$WHEEL_THICKNESS);
|
263
|
-
let resizeHandler = $aAzec$react.useCallback(()=>{
|
298
|
+
let size = props.size && (0, $aAzec$reactspectrumutils.dimensionValue)(props.size);
|
299
|
+
let { styleProps: styleProps } = (0, $aAzec$reactspectrumutils.useStyleProps)(props);
|
300
|
+
let inputRef = (0, $aAzec$react.useRef)(null);
|
301
|
+
let containerRef = (0, $aAzec$reactspectrumutils.useFocusableRef)(ref, inputRef);
|
302
|
+
let [wheelRadius, setWheelRadius] = (0, $aAzec$react.useState)(0);
|
303
|
+
let [wheelThickness, setWheelThickness] = (0, $aAzec$react.useState)($63a2864687444ae1$var$WHEEL_THICKNESS);
|
304
|
+
let resizeHandler = (0, $aAzec$react.useCallback)(()=>{
|
264
305
|
if (containerRef.current) {
|
265
306
|
setWheelRadius(containerRef.current.offsetWidth / 2);
|
266
|
-
let thickness = window.getComputedStyle(containerRef.current).getPropertyValue(
|
307
|
+
let thickness = window.getComputedStyle(containerRef.current).getPropertyValue("--spectrum-colorwheel-track-thickness");
|
267
308
|
if (thickness) setWheelThickness(parseInt(thickness, 10));
|
268
309
|
}
|
269
310
|
}, [
|
@@ -271,59 +312,69 @@ function $63a2864687444ae1$var$ColorWheel(props, ref) {
|
|
271
312
|
setWheelRadius,
|
272
313
|
setWheelThickness
|
273
314
|
]);
|
274
|
-
$aAzec$react.useEffect(()=>{
|
315
|
+
(0, $aAzec$react.useEffect)(()=>{
|
275
316
|
// the size observer's fallback to the window resize event doesn't fire on mount
|
276
317
|
if (wheelRadius === 0) resizeHandler();
|
277
318
|
}, [
|
278
319
|
wheelRadius,
|
279
320
|
resizeHandler
|
280
321
|
]);
|
281
|
-
$aAzec$reactariautils.useResizeObserver({
|
322
|
+
(0, $aAzec$reactariautils.useResizeObserver)({
|
282
323
|
ref: containerRef,
|
283
324
|
onResize: resizeHandler
|
284
325
|
});
|
285
|
-
let state = $aAzec$reactstatelycolor.useColorWheelState(props);
|
286
|
-
let { trackProps: trackProps , inputProps: inputProps , thumbProps: thumbProps } = $aAzec$reactariacolor.useColorWheel({
|
326
|
+
let state = (0, $aAzec$reactstatelycolor.useColorWheelState)(props);
|
327
|
+
let { trackProps: trackProps , inputProps: inputProps , thumbProps: thumbProps } = (0, $aAzec$reactariacolor.useColorWheel)({
|
287
328
|
...props,
|
288
329
|
innerRadius: wheelRadius - wheelThickness,
|
289
330
|
outerRadius: wheelRadius
|
290
331
|
}, state, inputRef);
|
291
|
-
let { focusProps: focusProps , isFocusVisible: isFocusVisible } = $aAzec$reactariafocus.useFocusRing();
|
292
|
-
return
|
293
|
-
className: $aAzec$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($8fc6b1a2f4e7f682$exports)),
|
294
|
-
|
332
|
+
let { focusProps: focusProps , isFocusVisible: isFocusVisible } = (0, $aAzec$reactariafocus.useFocusRing)();
|
333
|
+
return /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("div", {
|
334
|
+
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($8fc6b1a2f4e7f682$exports))), "spectrum-ColorWheel", {
|
335
|
+
"is-disabled": isDisabled
|
295
336
|
}, styleProps.className),
|
296
337
|
ref: containerRef,
|
297
338
|
style: {
|
298
339
|
...styleProps.style,
|
299
340
|
// Workaround around https://github.com/adobe/spectrum-css/issues/1032
|
300
341
|
// @ts-ignore
|
301
|
-
|
302
|
-
|
342
|
+
"width": size,
|
343
|
+
"height": size
|
303
344
|
}
|
304
|
-
}, /*#__PURE__*/ ($parcel$interopDefault($aAzec$react)).createElement("div", {
|
345
|
+
}, /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("div", {
|
305
346
|
...trackProps,
|
306
|
-
className: $aAzec$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($8fc6b1a2f4e7f682$exports)),
|
307
|
-
}), /*#__PURE__*/ ($parcel$interopDefault($aAzec$react)).createElement($2b9adc23f6c7cae1$export$a3cc47cee1c1ccc, {
|
347
|
+
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($8fc6b1a2f4e7f682$exports))), "spectrum-ColorWheel-gradient")
|
348
|
+
}), /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement((0, $2b9adc23f6c7cae1$export$a3cc47cee1c1ccc), {
|
308
349
|
value: state.getDisplayColor(),
|
309
350
|
isFocused: isFocusVisible,
|
310
351
|
isDisabled: isDisabled,
|
311
352
|
isDragging: state.isDragging,
|
312
|
-
className: $aAzec$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($8fc6b1a2f4e7f682$exports)),
|
353
|
+
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($8fc6b1a2f4e7f682$exports))), "spectrum-ColorWheel-handle"),
|
313
354
|
...thumbProps
|
314
|
-
}, /*#__PURE__*/ ($parcel$interopDefault($aAzec$react)).createElement("input", {
|
355
|
+
}, /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("input", {
|
315
356
|
...focusProps,
|
316
|
-
className: $aAzec$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($8fc6b1a2f4e7f682$exports)),
|
357
|
+
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($8fc6b1a2f4e7f682$exports))), "spectrum-ColorWheel-slider"),
|
317
358
|
...inputProps,
|
318
359
|
ref: inputRef
|
319
|
-
})))
|
360
|
+
})));
|
320
361
|
}
|
321
362
|
/**
|
322
363
|
* ColorWheels allow users to adjust the hue of an HSL or HSB color value on a circular track.
|
323
|
-
*/ let $63a2864687444ae1$export$f80663f808113381 = /*#__PURE__*/ ($parcel$interopDefault($aAzec$react)).forwardRef($63a2864687444ae1$var$ColorWheel);
|
324
|
-
|
364
|
+
*/ let $63a2864687444ae1$export$f80663f808113381 = /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).forwardRef($63a2864687444ae1$var$ColorWheel);
|
325
365
|
|
326
366
|
|
367
|
+
/*
|
368
|
+
* Copyright 2020 Adobe. All rights reserved.
|
369
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
370
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
371
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
372
|
+
*
|
373
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
374
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
375
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
376
|
+
* governing permissions and limitations under the License.
|
377
|
+
*/
|
327
378
|
|
328
379
|
|
329
380
|
|
@@ -370,88 +421,98 @@ $28060baf29cc5ac7$export$c2fbec5a538c1f81 = "spectrum-ColorSlider-valueLabel_a5b
|
|
370
421
|
|
371
422
|
|
372
423
|
function $4537dec0de08c277$var$ColorSlider(props, ref) {
|
373
|
-
props = $aAzec$reactspectrumprovider.useProviderProps(props);
|
374
|
-
let { isDisabled: isDisabled , channel: channel , orientation: orientation , label: label , showValueLabel: showValueLabel ,
|
375
|
-
let vertical = orientation ===
|
376
|
-
let { styleProps: styleProps } = $aAzec$reactspectrumutils.useStyleProps(props);
|
377
|
-
let { locale: locale } = $aAzec$reactariai18n.useLocale();
|
378
|
-
let inputRef = $aAzec$react.useRef(null);
|
379
|
-
let trackRef = $aAzec$react.useRef(null);
|
380
|
-
let domRef = $aAzec$reactspectrumutils.useFocusableRef(ref, inputRef);
|
381
|
-
let state = $aAzec$reactstatelycolor.useColorSliderState({
|
424
|
+
props = (0, $aAzec$reactspectrumprovider.useProviderProps)(props);
|
425
|
+
let { isDisabled: isDisabled , channel: channel , orientation: orientation , label: label , showValueLabel: showValueLabel , "aria-label": ariaLabel } = props;
|
426
|
+
let vertical = orientation === "vertical";
|
427
|
+
let { styleProps: styleProps } = (0, $aAzec$reactspectrumutils.useStyleProps)(props);
|
428
|
+
let { locale: locale } = (0, $aAzec$reactariai18n.useLocale)();
|
429
|
+
let inputRef = (0, $aAzec$react.useRef)(null);
|
430
|
+
let trackRef = (0, $aAzec$react.useRef)(null);
|
431
|
+
let domRef = (0, $aAzec$reactspectrumutils.useFocusableRef)(ref, inputRef);
|
432
|
+
let state = (0, $aAzec$reactstatelycolor.useColorSliderState)({
|
382
433
|
...props,
|
383
434
|
locale: locale
|
384
435
|
});
|
385
436
|
// If vertical and a label is provided, use it as an aria-label instead.
|
386
437
|
if (vertical && label) {
|
387
|
-
ariaLabel = ariaLabel || (typeof label ===
|
438
|
+
ariaLabel = ariaLabel || (typeof label === "string" ? label : undefined);
|
388
439
|
label = null;
|
389
440
|
}
|
390
441
|
// If no external label, aria-label or aria-labelledby is provided,
|
391
442
|
// default to displaying the localized channel value.
|
392
443
|
// Specifically check if label is undefined. If label is `null` then display no visible label.
|
393
444
|
// A default aria-label is provided by useColorSlider in that case.
|
394
|
-
if (label === undefined && !ariaLabel && !props[
|
445
|
+
if (label === undefined && !ariaLabel && !props["aria-labelledby"] && !vertical) label = state.value.getChannelName(channel, locale);
|
395
446
|
// Show the value label by default if there is a visible label
|
396
447
|
if (showValueLabel == null) showValueLabel = !!label;
|
397
|
-
let { inputProps: inputProps , thumbProps: thumbProps , trackProps: trackProps , labelProps: labelProps , outputProps: outputProps } = $aAzec$reactariacolor.useColorSlider({
|
448
|
+
let { inputProps: inputProps , thumbProps: thumbProps , trackProps: trackProps , labelProps: labelProps , outputProps: outputProps } = (0, $aAzec$reactariacolor.useColorSlider)({
|
398
449
|
...props,
|
399
450
|
label: label,
|
400
|
-
|
451
|
+
"aria-label": ariaLabel,
|
401
452
|
trackRef: trackRef,
|
402
453
|
inputRef: inputRef
|
403
454
|
}, state);
|
404
|
-
let { isFocusVisible: isFocusVisible } = $aAzec$reactariainteractions.useFocusVisible();
|
405
|
-
let [isFocused, setIsFocused] = $aAzec$react.useState(false);
|
406
|
-
let { focusProps: focusProps } = $aAzec$reactariainteractions.useFocus({
|
455
|
+
let { isFocusVisible: isFocusVisible } = (0, $aAzec$reactariainteractions.useFocusVisible)();
|
456
|
+
let [isFocused, setIsFocused] = (0, $aAzec$react.useState)(false);
|
457
|
+
let { focusProps: focusProps } = (0, $aAzec$reactariainteractions.useFocus)({
|
407
458
|
isDisabled: isDisabled,
|
408
459
|
onFocusChange: setIsFocused
|
409
460
|
});
|
410
|
-
return
|
461
|
+
return /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("div", {
|
411
462
|
ref: domRef,
|
412
463
|
...styleProps,
|
413
|
-
className: $aAzec$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($28060baf29cc5ac7$exports)), {
|
414
|
-
|
415
|
-
|
464
|
+
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($28060baf29cc5ac7$exports))), {
|
465
|
+
"spectrum-ColorSlider-container--horizontal": !vertical,
|
466
|
+
"spectrum-ColorSlider-container--vertical": vertical
|
416
467
|
})
|
417
|
-
}, label && /*#__PURE__*/ ($parcel$interopDefault($aAzec$react)).createElement("div", {
|
418
|
-
className: $aAzec$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($28060baf29cc5ac7$exports)),
|
419
|
-
}, /*#__PURE__*/ ($parcel$interopDefault($aAzec$react)).createElement($aAzec$reactspectrumlabel.Label, labelProps, label), props.contextualHelp && /*#__PURE__*/ ($parcel$interopDefault($aAzec$react)).createElement($aAzec$reactspectrumutils.SlotProvider, {
|
468
|
+
}, label && /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("div", {
|
469
|
+
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($28060baf29cc5ac7$exports))), "spectrum-ColorSlider-labelContainer")
|
470
|
+
}, /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement((0, $aAzec$reactspectrumlabel.Label), labelProps, label), props.contextualHelp && /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement((0, $aAzec$reactspectrumutils.SlotProvider), {
|
420
471
|
slots: {
|
421
472
|
actionButton: {
|
422
|
-
UNSAFE_className: $aAzec$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($28060baf29cc5ac7$exports)),
|
473
|
+
UNSAFE_className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($28060baf29cc5ac7$exports))), "spectrum-ColorSlider-contextualHelp")
|
423
474
|
}
|
424
475
|
}
|
425
|
-
}, props.contextualHelp), showValueLabel && /*#__PURE__*/ ($parcel$interopDefault($aAzec$react)).createElement($aAzec$reactspectrumlabel.Label, {
|
476
|
+
}, props.contextualHelp), showValueLabel && /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement((0, $aAzec$reactspectrumlabel.Label), {
|
426
477
|
elementType: "span",
|
427
|
-
UNSAFE_className: $aAzec$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($28060baf29cc5ac7$exports)),
|
428
|
-
}, /*#__PURE__*/ ($parcel$interopDefault($aAzec$react)).createElement("output", outputProps, state.value.formatChannelValue(channel, locale)))), /*#__PURE__*/ ($parcel$interopDefault($aAzec$react)).createElement("div", {
|
478
|
+
UNSAFE_className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($28060baf29cc5ac7$exports))), "spectrum-ColorSlider-valueLabel")
|
479
|
+
}, /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("output", outputProps, state.value.formatChannelValue(channel, locale)))), /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("div", {
|
429
480
|
...trackProps,
|
430
481
|
ref: trackRef,
|
431
|
-
className: $aAzec$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($28060baf29cc5ac7$exports)),
|
432
|
-
|
433
|
-
|
482
|
+
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($28060baf29cc5ac7$exports))), "spectrum-ColorSlider", {
|
483
|
+
"is-disabled": isDisabled,
|
484
|
+
"spectrum-ColorSlider--vertical": vertical
|
434
485
|
})
|
435
|
-
}, /*#__PURE__*/ ($parcel$interopDefault($aAzec$react)).createElement($2b9adc23f6c7cae1$export$a3cc47cee1c1ccc, {
|
486
|
+
}, /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement((0, $2b9adc23f6c7cae1$export$a3cc47cee1c1ccc), {
|
436
487
|
value: state.getDisplayColor(),
|
437
488
|
isFocused: isFocused && isFocusVisible,
|
438
489
|
isDisabled: isDisabled,
|
439
490
|
isDragging: state.isThumbDragging(0),
|
440
|
-
className: $aAzec$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($28060baf29cc5ac7$exports)),
|
491
|
+
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($28060baf29cc5ac7$exports))), "spectrum-ColorSlider-handle"),
|
441
492
|
...thumbProps
|
442
|
-
}, /*#__PURE__*/ ($parcel$interopDefault($aAzec$react)).createElement("input", {
|
493
|
+
}, /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("input", {
|
443
494
|
...inputProps,
|
444
495
|
...focusProps,
|
445
496
|
ref: inputRef,
|
446
|
-
className: $aAzec$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($28060baf29cc5ac7$exports)),
|
447
|
-
}))))
|
497
|
+
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($28060baf29cc5ac7$exports))), "spectrum-ColorSlider-slider")
|
498
|
+
}))));
|
448
499
|
}
|
449
500
|
/**
|
450
501
|
* ColorSliders allow users to adjust an individual channel of a color value.
|
451
|
-
*/ let $4537dec0de08c277$export$44fd664bcca5b6fb = /*#__PURE__*/ ($parcel$interopDefault($aAzec$react)).forwardRef($4537dec0de08c277$var$ColorSlider);
|
452
|
-
|
502
|
+
*/ let $4537dec0de08c277$export$44fd664bcca5b6fb = /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).forwardRef($4537dec0de08c277$var$ColorSlider);
|
453
503
|
|
454
504
|
|
505
|
+
/*
|
506
|
+
* Copyright 2020 Adobe. All rights reserved.
|
507
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
508
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
509
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
510
|
+
*
|
511
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
512
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
513
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
514
|
+
* governing permissions and limitations under the License.
|
515
|
+
*/
|
455
516
|
|
456
517
|
var $ddec4d6aa21146c4$exports = {};
|
457
518
|
|
@@ -465,25 +526,25 @@ $ddec4d6aa21146c4$export$7d80c6630a750b1 = "react-spectrum-ColorField-input_7bde
|
|
465
526
|
|
466
527
|
|
467
528
|
function $8bdb9bc27ff3debb$var$ColorField(props, ref) {
|
468
|
-
props = $aAzec$reactspectrumprovider.useProviderProps(props);
|
529
|
+
props = (0, $aAzec$reactspectrumprovider.useProviderProps)(props);
|
469
530
|
let { value: // These disabled props are handled by the state hook
|
470
531
|
value , defaultValue: defaultValue , onChange: onChange , ...otherProps } = props;
|
471
|
-
let state = $aAzec$reactstatelycolor.useColorFieldState(props);
|
472
|
-
let inputRef = $aAzec$react.useRef(null);
|
473
|
-
let { labelProps: labelProps , inputProps: inputProps } = $aAzec$reactariacolor.useColorField(otherProps, state, inputRef);
|
474
|
-
if (props.placeholder) console.warn(
|
475
|
-
return
|
532
|
+
let state = (0, $aAzec$reactstatelycolor.useColorFieldState)(props);
|
533
|
+
let inputRef = (0, $aAzec$react.useRef)(null);
|
534
|
+
let { labelProps: labelProps , inputProps: inputProps } = (0, $aAzec$reactariacolor.useColorField)(otherProps, state, inputRef);
|
535
|
+
if (props.placeholder) console.warn("Placeholders are deprecated due to accessibility issues. Please use help text instead. See the docs for details: https://react-spectrum.adobe.com/react-spectrum/ColorField.html#help-text");
|
536
|
+
return /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement((0, $aAzec$reactspectrumtextfield.TextFieldBase), {
|
476
537
|
...otherProps,
|
477
538
|
ref: ref,
|
478
539
|
inputRef: inputRef,
|
479
540
|
labelProps: labelProps,
|
480
541
|
inputProps: inputProps,
|
481
|
-
inputClassName: $aAzec$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($ddec4d6aa21146c4$exports)),
|
482
|
-
})
|
542
|
+
inputClassName: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($ddec4d6aa21146c4$exports))), "react-spectrum-ColorField-input")
|
543
|
+
});
|
483
544
|
}
|
484
545
|
/**
|
485
546
|
* ColorFields allow users to enter a color in #rrggbb hexadecimal format.
|
486
|
-
*/ const $8bdb9bc27ff3debb$export$b865d4358897bb17 = /*#__PURE__*/ ($parcel$interopDefault($aAzec$react)).forwardRef($8bdb9bc27ff3debb$var$ColorField);
|
547
|
+
*/ const $8bdb9bc27ff3debb$export$b865d4358897bb17 = /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).forwardRef($8bdb9bc27ff3debb$var$ColorField);
|
487
548
|
|
488
549
|
|
489
550
|
|