@react-spectrum/color 3.0.0-nightly.4555 → 3.0.0-nightly.4558

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.
Files changed (79) hide show
  1. package/dist/ColorArea.main.js +97 -0
  2. package/dist/ColorArea.main.js.map +1 -0
  3. package/dist/ColorArea.mjs +92 -0
  4. package/dist/ColorArea.module.js +92 -0
  5. package/dist/ColorArea.module.js.map +1 -0
  6. package/dist/ColorField.main.js +61 -0
  7. package/dist/ColorField.main.js.map +1 -0
  8. package/dist/ColorField.mjs +56 -0
  9. package/dist/ColorField.module.js +56 -0
  10. package/dist/ColorField.module.js.map +1 -0
  11. package/dist/ColorSlider.main.js +125 -0
  12. package/dist/ColorSlider.main.js.map +1 -0
  13. package/dist/ColorSlider.mjs +120 -0
  14. package/dist/ColorSlider.module.js +120 -0
  15. package/dist/ColorSlider.module.js.map +1 -0
  16. package/dist/ColorThumb.main.js +94 -0
  17. package/dist/ColorThumb.main.js.map +1 -0
  18. package/dist/ColorThumb.mjs +89 -0
  19. package/dist/ColorThumb.module.js +89 -0
  20. package/dist/ColorThumb.module.js.map +1 -0
  21. package/dist/ColorWheel.main.js +114 -0
  22. package/dist/ColorWheel.main.js.map +1 -0
  23. package/dist/ColorWheel.mjs +109 -0
  24. package/dist/ColorWheel.module.js +109 -0
  25. package/dist/ColorWheel.module.js.map +1 -0
  26. package/dist/colorarea_vars_css.main.js +32 -0
  27. package/dist/colorarea_vars_css.main.js.map +1 -0
  28. package/dist/colorarea_vars_css.mjs +34 -0
  29. package/dist/colorarea_vars_css.module.js +34 -0
  30. package/dist/colorarea_vars_css.module.js.map +1 -0
  31. package/dist/colorfield.faeff3c2.css +12 -0
  32. package/dist/colorfield.faeff3c2.css.map +1 -0
  33. package/dist/colorfield_css.main.js +11 -0
  34. package/dist/colorfield_css.main.js.map +1 -0
  35. package/dist/colorfield_css.mjs +13 -0
  36. package/dist/colorfield_css.module.js +13 -0
  37. package/dist/colorfield_css.module.js.map +1 -0
  38. package/dist/colorhandle_vars_css.main.js +26 -0
  39. package/dist/colorhandle_vars_css.main.js.map +1 -0
  40. package/dist/colorhandle_vars_css.mjs +28 -0
  41. package/dist/colorhandle_vars_css.module.js +28 -0
  42. package/dist/colorhandle_vars_css.module.js.map +1 -0
  43. package/dist/colorloupe_vars_css.main.js +23 -0
  44. package/dist/colorloupe_vars_css.main.js.map +1 -0
  45. package/dist/colorloupe_vars_css.mjs +25 -0
  46. package/dist/colorloupe_vars_css.module.js +25 -0
  47. package/dist/colorloupe_vars_css.module.js.map +1 -0
  48. package/dist/colorslider_vars_css.main.js +53 -0
  49. package/dist/colorslider_vars_css.main.js.map +1 -0
  50. package/dist/colorslider_vars_css.mjs +55 -0
  51. package/dist/colorslider_vars_css.module.js +55 -0
  52. package/dist/colorslider_vars_css.module.js.map +1 -0
  53. package/dist/colorwheel_vars_css.main.js +35 -0
  54. package/dist/colorwheel_vars_css.main.js.map +1 -0
  55. package/dist/colorwheel_vars_css.mjs +37 -0
  56. package/dist/colorwheel_vars_css.module.js +37 -0
  57. package/dist/colorwheel_vars_css.module.js.map +1 -0
  58. package/dist/import.mjs +4 -550
  59. package/dist/main.js +8 -550
  60. package/dist/main.js.map +1 -1
  61. package/dist/module.js +4 -550
  62. package/dist/module.js.map +1 -1
  63. package/dist/types.d.ts +3 -3
  64. package/dist/types.d.ts.map +1 -1
  65. package/dist/vars.08ba4b4c.css +76 -0
  66. package/dist/vars.08ba4b4c.css.map +1 -0
  67. package/dist/vars.571f903e.css +120 -0
  68. package/dist/vars.571f903e.css.map +1 -0
  69. package/dist/vars.6f3d3943.css +105 -0
  70. package/dist/vars.6f3d3943.css.map +1 -0
  71. package/dist/vars.ac235018.css +93 -0
  72. package/dist/vars.ac235018.css.map +1 -0
  73. package/dist/vars.ef2c01b8.css +41 -0
  74. package/dist/vars.ef2c01b8.css.map +1 -0
  75. package/package.json +16 -16
  76. package/dist/main.css +0 -447
  77. package/dist/main.css.map +0 -1
  78. package/dist/module.css +0 -447
  79. package/dist/module.css.map +0 -1
@@ -0,0 +1,114 @@
1
+ var $2b9adc23f6c7cae1$exports = require("./ColorThumb.main.js");
2
+ require("./vars.ac235018.css");
3
+ var $8fc6b1a2f4e7f682$exports = require("./colorwheel_vars_css.main.js");
4
+ var $gEgjt$reactspectrumutils = require("@react-spectrum/utils");
5
+ var $gEgjt$react = require("react");
6
+ var $gEgjt$reactariacolor = require("@react-aria/color");
7
+ var $gEgjt$reactstatelycolor = require("@react-stately/color");
8
+ var $gEgjt$reactariafocus = require("@react-aria/focus");
9
+ var $gEgjt$reactspectrumprovider = require("@react-spectrum/provider");
10
+ var $gEgjt$reactariautils = require("@react-aria/utils");
11
+
12
+
13
+ function $parcel$interopDefault(a) {
14
+ return a && a.__esModule ? a.default : a;
15
+ }
16
+
17
+ function $parcel$export(e, n, v, s) {
18
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
19
+ }
20
+
21
+ $parcel$export(module.exports, "ColorWheel", () => $63a2864687444ae1$export$f80663f808113381);
22
+ /*
23
+ * Copyright 2020 Adobe. All rights reserved.
24
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
25
+ * you may not use this file except in compliance with the License. You may obtain a copy
26
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
27
+ *
28
+ * Unless required by applicable law or agreed to in writing, software distributed under
29
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
30
+ * OF ANY KIND, either express or implied. See the License for the specific language
31
+ * governing permissions and limitations under the License.
32
+ */
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+ const $63a2864687444ae1$var$WHEEL_THICKNESS = 24;
42
+ function $63a2864687444ae1$var$ColorWheel(props, ref) {
43
+ props = (0, $gEgjt$reactspectrumprovider.useProviderProps)(props);
44
+ let { isDisabled: isDisabled } = props;
45
+ let size = props.size && (0, $gEgjt$reactspectrumutils.dimensionValue)(props.size);
46
+ let { styleProps: styleProps } = (0, $gEgjt$reactspectrumutils.useStyleProps)(props);
47
+ let inputRef = (0, $gEgjt$react.useRef)(null);
48
+ let containerRef = (0, $gEgjt$reactspectrumutils.useFocusableRef)(ref, inputRef);
49
+ let [wheelRadius, setWheelRadius] = (0, $gEgjt$react.useState)(0);
50
+ let [wheelThickness, setWheelThickness] = (0, $gEgjt$react.useState)($63a2864687444ae1$var$WHEEL_THICKNESS);
51
+ let resizeHandler = (0, $gEgjt$react.useCallback)(()=>{
52
+ if (containerRef.current) {
53
+ setWheelRadius(containerRef.current.offsetWidth / 2);
54
+ let thickness = window.getComputedStyle(containerRef.current).getPropertyValue("--spectrum-colorwheel-track-thickness");
55
+ if (thickness) setWheelThickness(parseInt(thickness, 10));
56
+ }
57
+ }, [
58
+ containerRef,
59
+ setWheelRadius,
60
+ setWheelThickness
61
+ ]);
62
+ (0, $gEgjt$react.useEffect)(()=>{
63
+ // the size observer's fallback to the window resize event doesn't fire on mount
64
+ if (wheelRadius === 0) resizeHandler();
65
+ }, [
66
+ wheelRadius,
67
+ resizeHandler
68
+ ]);
69
+ (0, $gEgjt$reactariautils.useResizeObserver)({
70
+ ref: containerRef,
71
+ onResize: resizeHandler
72
+ });
73
+ let state = (0, $gEgjt$reactstatelycolor.useColorWheelState)(props);
74
+ let { trackProps: trackProps, inputProps: inputProps, thumbProps: thumbProps } = (0, $gEgjt$reactariacolor.useColorWheel)({
75
+ ...props,
76
+ innerRadius: wheelRadius - wheelThickness,
77
+ outerRadius: wheelRadius
78
+ }, state, inputRef);
79
+ let { focusProps: focusProps, isFocusVisible: isFocusVisible } = (0, $gEgjt$reactariafocus.useFocusRing)();
80
+ return /*#__PURE__*/ (0, ($parcel$interopDefault($gEgjt$react))).createElement("div", {
81
+ className: (0, $gEgjt$reactspectrumutils.classNames)((0, ($parcel$interopDefault($8fc6b1a2f4e7f682$exports))), "spectrum-ColorWheel", {
82
+ "is-disabled": isDisabled
83
+ }, styleProps.className),
84
+ ref: containerRef,
85
+ style: {
86
+ ...styleProps.style,
87
+ // Workaround around https://github.com/adobe/spectrum-css/issues/1032
88
+ // @ts-ignore
89
+ "width": size,
90
+ "height": size
91
+ }
92
+ }, /*#__PURE__*/ (0, ($parcel$interopDefault($gEgjt$react))).createElement("div", {
93
+ ...trackProps,
94
+ className: (0, $gEgjt$reactspectrumutils.classNames)((0, ($parcel$interopDefault($8fc6b1a2f4e7f682$exports))), "spectrum-ColorWheel-gradient")
95
+ }), /*#__PURE__*/ (0, ($parcel$interopDefault($gEgjt$react))).createElement((0, $2b9adc23f6c7cae1$exports.ColorThumb), {
96
+ value: state.getDisplayColor(),
97
+ isFocused: isFocusVisible,
98
+ isDisabled: isDisabled,
99
+ isDragging: state.isDragging,
100
+ className: (0, $gEgjt$reactspectrumutils.classNames)((0, ($parcel$interopDefault($8fc6b1a2f4e7f682$exports))), "spectrum-ColorWheel-handle"),
101
+ ...thumbProps
102
+ }, /*#__PURE__*/ (0, ($parcel$interopDefault($gEgjt$react))).createElement("input", {
103
+ ...focusProps,
104
+ className: (0, $gEgjt$reactspectrumutils.classNames)((0, ($parcel$interopDefault($8fc6b1a2f4e7f682$exports))), "spectrum-ColorWheel-slider"),
105
+ ...inputProps,
106
+ ref: inputRef
107
+ })));
108
+ }
109
+ /**
110
+ * ColorWheels allow users to adjust the hue of an HSL or HSB color value on a circular track.
111
+ */ let $63a2864687444ae1$export$f80663f808113381 = /*#__PURE__*/ (0, ($parcel$interopDefault($gEgjt$react))).forwardRef($63a2864687444ae1$var$ColorWheel);
112
+
113
+
114
+ //# sourceMappingURL=ColorWheel.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;AAcD,MAAM,wCAAkB;AAExB,SAAS,iCAAW,KAA8B,EAAE,GAAiC;IACnF,QAAQ,CAAA,GAAA,6CAAe,EAAE;IAEzB,IAAI,cAAC,UAAU,EAAC,GAAG;IACnB,IAAI,OAAO,MAAM,IAAI,IAAI,CAAA,GAAA,wCAAa,EAAE,MAAM,IAAI;IAClD,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE;IAEjC,IAAI,WAAW,CAAA,GAAA,mBAAK,EAAE;IACtB,IAAI,eAAe,CAAA,GAAA,yCAAc,EAAE,KAAK;IAExC,IAAI,CAAC,aAAa,eAAe,GAAG,CAAA,GAAA,qBAAO,EAAU;IACrD,IAAI,CAAC,gBAAgB,kBAAkB,GAAG,CAAA,GAAA,qBAAO,EAAE;IAEnD,IAAI,gBAAgB,CAAA,GAAA,wBAAU,EAAE;QAC9B,IAAI,aAAa,OAAO,EAAE;YACxB,eAAe,aAAa,OAAO,CAAC,WAAW,GAAG;YAClD,IAAI,YAAY,OAAO,gBAAgB,CAAC,aAAa,OAAO,EACzD,gBAAgB,CAAC;YACpB,IAAI,WACF,kBAAkB,SAAS,WAAW;QAE1C;IACF,GAAG;QAAC;QAAc;QAAgB;KAAkB;IAEpD,CAAA,GAAA,sBAAQ,EAAE;QACR,gFAAgF;QAChF,IAAI,gBAAgB,GAClB;IAEJ,GAAG;QAAC;QAAa;KAAc;IAE/B,CAAA,GAAA,uCAAgB,EAAE;QAChB,KAAK;QACL,UAAU;IACZ;IAEA,IAAI,QAAQ,CAAA,GAAA,2CAAiB,EAAE;IAE/B,IAAI,cAAC,UAAU,cAAE,UAAU,cAAE,UAAU,EAAC,GAAG,CAAA,GAAA,mCAAY,EAAE;QACvD,GAAG,KAAK;QACR,aAAa,cAAc;QAC3B,aAAa;IACf,GAAG,OAAO;IAEV,IAAI,cAAC,UAAU,kBAAE,cAAc,EAAC,GAAG,CAAA,GAAA,kCAAW;IAE9C,qBACE,0DAAC;QACC,WACE,CAAA,GAAA,oCAAS,EACP,CAAA,GAAA,mDAAK,GACL,uBACA;YACE,eAAe;QACjB,GACA,WAAW,SAAS;QAGxB,KAAK;QACL,OAAO;YACL,GAAG,WAAW,KAAK;YACnB,sEAAsE;YACtE,aAAa;YACb,SAAS;YACT,UAAU;QACZ;qBACA,0DAAC;QAAK,GAAG,UAAU;QAAE,WAAW,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,mDAAK,GAAG;sBACnD,0DAAC,CAAA,GAAA,oCAAS;QACR,OAAO,MAAM,eAAe;QAC5B,WAAW;QACX,YAAY;QACZ,YAAY,MAAM,UAAU;QAC5B,WAAW,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,mDAAK,GAAG;QAC7B,GAAG,UAAU;qBACd,0DAAC;QAAO,GAAG,UAAU;QAAE,WAAW,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,mDAAK,GAAG;QAAgC,GAAG,UAAU;QAAE,KAAK;;AAIjH;AAEA;;CAEC,GACD,IAAI,0DAAc,CAAA,GAAA,sCAAI,EAAE,UAAU,CAAC","sources":["packages/@react-spectrum/color/src/ColorWheel.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {classNames, dimensionValue, useFocusableRef, useStyleProps} from '@react-spectrum/utils';\nimport {ColorThumb} from './ColorThumb';\nimport {FocusableRef} from '@react-types/shared';\nimport React, {useCallback, useEffect, useRef, useState} from 'react';\nimport {SpectrumColorWheelProps} from '@react-types/color';\nimport styles from '@adobe/spectrum-css-temp/components/colorwheel/vars.css';\nimport {useColorWheel} from '@react-aria/color';\nimport {useColorWheelState} from '@react-stately/color';\nimport {useFocusRing} from '@react-aria/focus';\nimport {useProviderProps} from '@react-spectrum/provider';\nimport {useResizeObserver} from '@react-aria/utils';\n\nconst WHEEL_THICKNESS = 24;\n\nfunction ColorWheel(props: SpectrumColorWheelProps, ref: FocusableRef<HTMLDivElement>) {\n props = useProviderProps(props);\n\n let {isDisabled} = props;\n let size = props.size && dimensionValue(props.size);\n let {styleProps} = useStyleProps(props);\n\n let inputRef = useRef(null);\n let containerRef = useFocusableRef(ref, inputRef);\n\n let [wheelRadius, setWheelRadius] = useState<number>(0);\n let [wheelThickness, setWheelThickness] = useState(WHEEL_THICKNESS);\n\n let resizeHandler = useCallback(() => {\n if (containerRef.current) {\n setWheelRadius(containerRef.current.offsetWidth / 2);\n let thickness = window.getComputedStyle(containerRef.current)\n .getPropertyValue('--spectrum-colorwheel-track-thickness');\n if (thickness) {\n setWheelThickness(parseInt(thickness, 10));\n }\n }\n }, [containerRef, setWheelRadius, setWheelThickness]);\n\n useEffect(() => {\n // the size observer's fallback to the window resize event doesn't fire on mount\n if (wheelRadius === 0) {\n resizeHandler();\n }\n }, [wheelRadius, resizeHandler]);\n\n useResizeObserver({\n ref: containerRef,\n onResize: resizeHandler\n });\n\n let state = useColorWheelState(props);\n\n let {trackProps, inputProps, thumbProps} = useColorWheel({\n ...props,\n innerRadius: wheelRadius - wheelThickness,\n outerRadius: wheelRadius\n }, state, inputRef);\n\n let {focusProps, isFocusVisible} = useFocusRing();\n\n return (\n <div\n className={\n classNames(\n styles,\n 'spectrum-ColorWheel',\n {\n 'is-disabled': isDisabled\n },\n styleProps.className\n )\n }\n ref={containerRef}\n style={{\n ...styleProps.style,\n // Workaround around https://github.com/adobe/spectrum-css/issues/1032\n // @ts-ignore\n 'width': size,\n 'height': size\n }}>\n <div {...trackProps} className={classNames(styles, 'spectrum-ColorWheel-gradient')} />\n <ColorThumb\n value={state.getDisplayColor()}\n isFocused={isFocusVisible}\n isDisabled={isDisabled}\n isDragging={state.isDragging}\n className={classNames(styles, 'spectrum-ColorWheel-handle')}\n {...thumbProps}>\n <input {...focusProps} className={classNames(styles, 'spectrum-ColorWheel-slider')} {...inputProps} ref={inputRef} />\n </ColorThumb>\n </div>\n );\n}\n\n/**\n * ColorWheels allow users to adjust the hue of an HSL or HSB color value on a circular track.\n */\nlet _ColorWheel = React.forwardRef(ColorWheel);\nexport {_ColorWheel as ColorWheel};\n"],"names":[],"version":3,"file":"ColorWheel.main.js.map"}
@@ -0,0 +1,109 @@
1
+ import {ColorThumb as $3a90e89d07d7bbd5$export$a3cc47cee1c1ccc} from "./ColorThumb.mjs";
2
+ import "./vars.ac235018.css";
3
+ import $bv4AR$colorwheel_vars_cssmodulejs from "./colorwheel_vars_css.mjs";
4
+ import {dimensionValue as $bv4AR$dimensionValue, useStyleProps as $bv4AR$useStyleProps, useFocusableRef as $bv4AR$useFocusableRef, classNames as $bv4AR$classNames} from "@react-spectrum/utils";
5
+ import $bv4AR$react, {useRef as $bv4AR$useRef, useState as $bv4AR$useState, useCallback as $bv4AR$useCallback, useEffect as $bv4AR$useEffect} from "react";
6
+ import {useColorWheel as $bv4AR$useColorWheel} from "@react-aria/color";
7
+ import {useColorWheelState as $bv4AR$useColorWheelState} from "@react-stately/color";
8
+ import {useFocusRing as $bv4AR$useFocusRing} from "@react-aria/focus";
9
+ import {useProviderProps as $bv4AR$useProviderProps} from "@react-spectrum/provider";
10
+ import {useResizeObserver as $bv4AR$useResizeObserver} from "@react-aria/utils";
11
+
12
+
13
+ function $parcel$interopDefault(a) {
14
+ return a && a.__esModule ? a.default : a;
15
+ }
16
+ /*
17
+ * Copyright 2020 Adobe. All rights reserved.
18
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
19
+ * you may not use this file except in compliance with the License. You may obtain a copy
20
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
21
+ *
22
+ * Unless required by applicable law or agreed to in writing, software distributed under
23
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
24
+ * OF ANY KIND, either express or implied. See the License for the specific language
25
+ * governing permissions and limitations under the License.
26
+ */
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+ const $3aac1c27203f04b5$var$WHEEL_THICKNESS = 24;
36
+ function $3aac1c27203f04b5$var$ColorWheel(props, ref) {
37
+ props = (0, $bv4AR$useProviderProps)(props);
38
+ let { isDisabled: isDisabled } = props;
39
+ let size = props.size && (0, $bv4AR$dimensionValue)(props.size);
40
+ let { styleProps: styleProps } = (0, $bv4AR$useStyleProps)(props);
41
+ let inputRef = (0, $bv4AR$useRef)(null);
42
+ let containerRef = (0, $bv4AR$useFocusableRef)(ref, inputRef);
43
+ let [wheelRadius, setWheelRadius] = (0, $bv4AR$useState)(0);
44
+ let [wheelThickness, setWheelThickness] = (0, $bv4AR$useState)($3aac1c27203f04b5$var$WHEEL_THICKNESS);
45
+ let resizeHandler = (0, $bv4AR$useCallback)(()=>{
46
+ if (containerRef.current) {
47
+ setWheelRadius(containerRef.current.offsetWidth / 2);
48
+ let thickness = window.getComputedStyle(containerRef.current).getPropertyValue("--spectrum-colorwheel-track-thickness");
49
+ if (thickness) setWheelThickness(parseInt(thickness, 10));
50
+ }
51
+ }, [
52
+ containerRef,
53
+ setWheelRadius,
54
+ setWheelThickness
55
+ ]);
56
+ (0, $bv4AR$useEffect)(()=>{
57
+ // the size observer's fallback to the window resize event doesn't fire on mount
58
+ if (wheelRadius === 0) resizeHandler();
59
+ }, [
60
+ wheelRadius,
61
+ resizeHandler
62
+ ]);
63
+ (0, $bv4AR$useResizeObserver)({
64
+ ref: containerRef,
65
+ onResize: resizeHandler
66
+ });
67
+ let state = (0, $bv4AR$useColorWheelState)(props);
68
+ let { trackProps: trackProps, inputProps: inputProps, thumbProps: thumbProps } = (0, $bv4AR$useColorWheel)({
69
+ ...props,
70
+ innerRadius: wheelRadius - wheelThickness,
71
+ outerRadius: wheelRadius
72
+ }, state, inputRef);
73
+ let { focusProps: focusProps, isFocusVisible: isFocusVisible } = (0, $bv4AR$useFocusRing)();
74
+ return /*#__PURE__*/ (0, $bv4AR$react).createElement("div", {
75
+ className: (0, $bv4AR$classNames)((0, ($parcel$interopDefault($bv4AR$colorwheel_vars_cssmodulejs))), "spectrum-ColorWheel", {
76
+ "is-disabled": isDisabled
77
+ }, styleProps.className),
78
+ ref: containerRef,
79
+ style: {
80
+ ...styleProps.style,
81
+ // Workaround around https://github.com/adobe/spectrum-css/issues/1032
82
+ // @ts-ignore
83
+ "width": size,
84
+ "height": size
85
+ }
86
+ }, /*#__PURE__*/ (0, $bv4AR$react).createElement("div", {
87
+ ...trackProps,
88
+ className: (0, $bv4AR$classNames)((0, ($parcel$interopDefault($bv4AR$colorwheel_vars_cssmodulejs))), "spectrum-ColorWheel-gradient")
89
+ }), /*#__PURE__*/ (0, $bv4AR$react).createElement((0, $3a90e89d07d7bbd5$export$a3cc47cee1c1ccc), {
90
+ value: state.getDisplayColor(),
91
+ isFocused: isFocusVisible,
92
+ isDisabled: isDisabled,
93
+ isDragging: state.isDragging,
94
+ className: (0, $bv4AR$classNames)((0, ($parcel$interopDefault($bv4AR$colorwheel_vars_cssmodulejs))), "spectrum-ColorWheel-handle"),
95
+ ...thumbProps
96
+ }, /*#__PURE__*/ (0, $bv4AR$react).createElement("input", {
97
+ ...focusProps,
98
+ className: (0, $bv4AR$classNames)((0, ($parcel$interopDefault($bv4AR$colorwheel_vars_cssmodulejs))), "spectrum-ColorWheel-slider"),
99
+ ...inputProps,
100
+ ref: inputRef
101
+ })));
102
+ }
103
+ /**
104
+ * ColorWheels allow users to adjust the hue of an HSL or HSB color value on a circular track.
105
+ */ let $3aac1c27203f04b5$export$f80663f808113381 = /*#__PURE__*/ (0, $bv4AR$react).forwardRef($3aac1c27203f04b5$var$ColorWheel);
106
+
107
+
108
+ export {$3aac1c27203f04b5$export$f80663f808113381 as ColorWheel};
109
+ //# sourceMappingURL=ColorWheel.mjs.map
@@ -0,0 +1,109 @@
1
+ import {ColorThumb as $3a90e89d07d7bbd5$export$a3cc47cee1c1ccc} from "./ColorThumb.module.js";
2
+ import "./vars.ac235018.css";
3
+ import $bv4AR$colorwheel_vars_cssmodulejs from "./colorwheel_vars_css.module.js";
4
+ import {dimensionValue as $bv4AR$dimensionValue, useStyleProps as $bv4AR$useStyleProps, useFocusableRef as $bv4AR$useFocusableRef, classNames as $bv4AR$classNames} from "@react-spectrum/utils";
5
+ import $bv4AR$react, {useRef as $bv4AR$useRef, useState as $bv4AR$useState, useCallback as $bv4AR$useCallback, useEffect as $bv4AR$useEffect} from "react";
6
+ import {useColorWheel as $bv4AR$useColorWheel} from "@react-aria/color";
7
+ import {useColorWheelState as $bv4AR$useColorWheelState} from "@react-stately/color";
8
+ import {useFocusRing as $bv4AR$useFocusRing} from "@react-aria/focus";
9
+ import {useProviderProps as $bv4AR$useProviderProps} from "@react-spectrum/provider";
10
+ import {useResizeObserver as $bv4AR$useResizeObserver} from "@react-aria/utils";
11
+
12
+
13
+ function $parcel$interopDefault(a) {
14
+ return a && a.__esModule ? a.default : a;
15
+ }
16
+ /*
17
+ * Copyright 2020 Adobe. All rights reserved.
18
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
19
+ * you may not use this file except in compliance with the License. You may obtain a copy
20
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
21
+ *
22
+ * Unless required by applicable law or agreed to in writing, software distributed under
23
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
24
+ * OF ANY KIND, either express or implied. See the License for the specific language
25
+ * governing permissions and limitations under the License.
26
+ */
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+ const $3aac1c27203f04b5$var$WHEEL_THICKNESS = 24;
36
+ function $3aac1c27203f04b5$var$ColorWheel(props, ref) {
37
+ props = (0, $bv4AR$useProviderProps)(props);
38
+ let { isDisabled: isDisabled } = props;
39
+ let size = props.size && (0, $bv4AR$dimensionValue)(props.size);
40
+ let { styleProps: styleProps } = (0, $bv4AR$useStyleProps)(props);
41
+ let inputRef = (0, $bv4AR$useRef)(null);
42
+ let containerRef = (0, $bv4AR$useFocusableRef)(ref, inputRef);
43
+ let [wheelRadius, setWheelRadius] = (0, $bv4AR$useState)(0);
44
+ let [wheelThickness, setWheelThickness] = (0, $bv4AR$useState)($3aac1c27203f04b5$var$WHEEL_THICKNESS);
45
+ let resizeHandler = (0, $bv4AR$useCallback)(()=>{
46
+ if (containerRef.current) {
47
+ setWheelRadius(containerRef.current.offsetWidth / 2);
48
+ let thickness = window.getComputedStyle(containerRef.current).getPropertyValue("--spectrum-colorwheel-track-thickness");
49
+ if (thickness) setWheelThickness(parseInt(thickness, 10));
50
+ }
51
+ }, [
52
+ containerRef,
53
+ setWheelRadius,
54
+ setWheelThickness
55
+ ]);
56
+ (0, $bv4AR$useEffect)(()=>{
57
+ // the size observer's fallback to the window resize event doesn't fire on mount
58
+ if (wheelRadius === 0) resizeHandler();
59
+ }, [
60
+ wheelRadius,
61
+ resizeHandler
62
+ ]);
63
+ (0, $bv4AR$useResizeObserver)({
64
+ ref: containerRef,
65
+ onResize: resizeHandler
66
+ });
67
+ let state = (0, $bv4AR$useColorWheelState)(props);
68
+ let { trackProps: trackProps, inputProps: inputProps, thumbProps: thumbProps } = (0, $bv4AR$useColorWheel)({
69
+ ...props,
70
+ innerRadius: wheelRadius - wheelThickness,
71
+ outerRadius: wheelRadius
72
+ }, state, inputRef);
73
+ let { focusProps: focusProps, isFocusVisible: isFocusVisible } = (0, $bv4AR$useFocusRing)();
74
+ return /*#__PURE__*/ (0, $bv4AR$react).createElement("div", {
75
+ className: (0, $bv4AR$classNames)((0, ($parcel$interopDefault($bv4AR$colorwheel_vars_cssmodulejs))), "spectrum-ColorWheel", {
76
+ "is-disabled": isDisabled
77
+ }, styleProps.className),
78
+ ref: containerRef,
79
+ style: {
80
+ ...styleProps.style,
81
+ // Workaround around https://github.com/adobe/spectrum-css/issues/1032
82
+ // @ts-ignore
83
+ "width": size,
84
+ "height": size
85
+ }
86
+ }, /*#__PURE__*/ (0, $bv4AR$react).createElement("div", {
87
+ ...trackProps,
88
+ className: (0, $bv4AR$classNames)((0, ($parcel$interopDefault($bv4AR$colorwheel_vars_cssmodulejs))), "spectrum-ColorWheel-gradient")
89
+ }), /*#__PURE__*/ (0, $bv4AR$react).createElement((0, $3a90e89d07d7bbd5$export$a3cc47cee1c1ccc), {
90
+ value: state.getDisplayColor(),
91
+ isFocused: isFocusVisible,
92
+ isDisabled: isDisabled,
93
+ isDragging: state.isDragging,
94
+ className: (0, $bv4AR$classNames)((0, ($parcel$interopDefault($bv4AR$colorwheel_vars_cssmodulejs))), "spectrum-ColorWheel-handle"),
95
+ ...thumbProps
96
+ }, /*#__PURE__*/ (0, $bv4AR$react).createElement("input", {
97
+ ...focusProps,
98
+ className: (0, $bv4AR$classNames)((0, ($parcel$interopDefault($bv4AR$colorwheel_vars_cssmodulejs))), "spectrum-ColorWheel-slider"),
99
+ ...inputProps,
100
+ ref: inputRef
101
+ })));
102
+ }
103
+ /**
104
+ * ColorWheels allow users to adjust the hue of an HSL or HSB color value on a circular track.
105
+ */ let $3aac1c27203f04b5$export$f80663f808113381 = /*#__PURE__*/ (0, $bv4AR$react).forwardRef($3aac1c27203f04b5$var$ColorWheel);
106
+
107
+
108
+ export {$3aac1c27203f04b5$export$f80663f808113381 as ColorWheel};
109
+ //# sourceMappingURL=ColorWheel.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;AAcD,MAAM,wCAAkB;AAExB,SAAS,iCAAW,KAA8B,EAAE,GAAiC;IACnF,QAAQ,CAAA,GAAA,uBAAe,EAAE;IAEzB,IAAI,cAAC,UAAU,EAAC,GAAG;IACnB,IAAI,OAAO,MAAM,IAAI,IAAI,CAAA,GAAA,qBAAa,EAAE,MAAM,IAAI;IAClD,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,oBAAY,EAAE;IAEjC,IAAI,WAAW,CAAA,GAAA,aAAK,EAAE;IACtB,IAAI,eAAe,CAAA,GAAA,sBAAc,EAAE,KAAK;IAExC,IAAI,CAAC,aAAa,eAAe,GAAG,CAAA,GAAA,eAAO,EAAU;IACrD,IAAI,CAAC,gBAAgB,kBAAkB,GAAG,CAAA,GAAA,eAAO,EAAE;IAEnD,IAAI,gBAAgB,CAAA,GAAA,kBAAU,EAAE;QAC9B,IAAI,aAAa,OAAO,EAAE;YACxB,eAAe,aAAa,OAAO,CAAC,WAAW,GAAG;YAClD,IAAI,YAAY,OAAO,gBAAgB,CAAC,aAAa,OAAO,EACzD,gBAAgB,CAAC;YACpB,IAAI,WACF,kBAAkB,SAAS,WAAW;QAE1C;IACF,GAAG;QAAC;QAAc;QAAgB;KAAkB;IAEpD,CAAA,GAAA,gBAAQ,EAAE;QACR,gFAAgF;QAChF,IAAI,gBAAgB,GAClB;IAEJ,GAAG;QAAC;QAAa;KAAc;IAE/B,CAAA,GAAA,wBAAgB,EAAE;QAChB,KAAK;QACL,UAAU;IACZ;IAEA,IAAI,QAAQ,CAAA,GAAA,yBAAiB,EAAE;IAE/B,IAAI,cAAC,UAAU,cAAE,UAAU,cAAE,UAAU,EAAC,GAAG,CAAA,GAAA,oBAAY,EAAE;QACvD,GAAG,KAAK;QACR,aAAa,cAAc;QAC3B,aAAa;IACf,GAAG,OAAO;IAEV,IAAI,cAAC,UAAU,kBAAE,cAAc,EAAC,GAAG,CAAA,GAAA,mBAAW;IAE9C,qBACE,gCAAC;QACC,WACE,CAAA,GAAA,iBAAS,EACP,CAAA,GAAA,4DAAK,GACL,uBACA;YACE,eAAe;QACjB,GACA,WAAW,SAAS;QAGxB,KAAK;QACL,OAAO;YACL,GAAG,WAAW,KAAK;YACnB,sEAAsE;YACtE,aAAa;YACb,SAAS;YACT,UAAU;QACZ;qBACA,gCAAC;QAAK,GAAG,UAAU;QAAE,WAAW,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,4DAAK,GAAG;sBACnD,gCAAC,CAAA,GAAA,wCAAS;QACR,OAAO,MAAM,eAAe;QAC5B,WAAW;QACX,YAAY;QACZ,YAAY,MAAM,UAAU;QAC5B,WAAW,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,4DAAK,GAAG;QAC7B,GAAG,UAAU;qBACd,gCAAC;QAAO,GAAG,UAAU;QAAE,WAAW,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,4DAAK,GAAG;QAAgC,GAAG,UAAU;QAAE,KAAK;;AAIjH;AAEA;;CAEC,GACD,IAAI,0DAAc,CAAA,GAAA,YAAI,EAAE,UAAU,CAAC","sources":["packages/@react-spectrum/color/src/ColorWheel.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {classNames, dimensionValue, useFocusableRef, useStyleProps} from '@react-spectrum/utils';\nimport {ColorThumb} from './ColorThumb';\nimport {FocusableRef} from '@react-types/shared';\nimport React, {useCallback, useEffect, useRef, useState} from 'react';\nimport {SpectrumColorWheelProps} from '@react-types/color';\nimport styles from '@adobe/spectrum-css-temp/components/colorwheel/vars.css';\nimport {useColorWheel} from '@react-aria/color';\nimport {useColorWheelState} from '@react-stately/color';\nimport {useFocusRing} from '@react-aria/focus';\nimport {useProviderProps} from '@react-spectrum/provider';\nimport {useResizeObserver} from '@react-aria/utils';\n\nconst WHEEL_THICKNESS = 24;\n\nfunction ColorWheel(props: SpectrumColorWheelProps, ref: FocusableRef<HTMLDivElement>) {\n props = useProviderProps(props);\n\n let {isDisabled} = props;\n let size = props.size && dimensionValue(props.size);\n let {styleProps} = useStyleProps(props);\n\n let inputRef = useRef(null);\n let containerRef = useFocusableRef(ref, inputRef);\n\n let [wheelRadius, setWheelRadius] = useState<number>(0);\n let [wheelThickness, setWheelThickness] = useState(WHEEL_THICKNESS);\n\n let resizeHandler = useCallback(() => {\n if (containerRef.current) {\n setWheelRadius(containerRef.current.offsetWidth / 2);\n let thickness = window.getComputedStyle(containerRef.current)\n .getPropertyValue('--spectrum-colorwheel-track-thickness');\n if (thickness) {\n setWheelThickness(parseInt(thickness, 10));\n }\n }\n }, [containerRef, setWheelRadius, setWheelThickness]);\n\n useEffect(() => {\n // the size observer's fallback to the window resize event doesn't fire on mount\n if (wheelRadius === 0) {\n resizeHandler();\n }\n }, [wheelRadius, resizeHandler]);\n\n useResizeObserver({\n ref: containerRef,\n onResize: resizeHandler\n });\n\n let state = useColorWheelState(props);\n\n let {trackProps, inputProps, thumbProps} = useColorWheel({\n ...props,\n innerRadius: wheelRadius - wheelThickness,\n outerRadius: wheelRadius\n }, state, inputRef);\n\n let {focusProps, isFocusVisible} = useFocusRing();\n\n return (\n <div\n className={\n classNames(\n styles,\n 'spectrum-ColorWheel',\n {\n 'is-disabled': isDisabled\n },\n styleProps.className\n )\n }\n ref={containerRef}\n style={{\n ...styleProps.style,\n // Workaround around https://github.com/adobe/spectrum-css/issues/1032\n // @ts-ignore\n 'width': size,\n 'height': size\n }}>\n <div {...trackProps} className={classNames(styles, 'spectrum-ColorWheel-gradient')} />\n <ColorThumb\n value={state.getDisplayColor()}\n isFocused={isFocusVisible}\n isDisabled={isDisabled}\n isDragging={state.isDragging}\n className={classNames(styles, 'spectrum-ColorWheel-handle')}\n {...thumbProps}>\n <input {...focusProps} className={classNames(styles, 'spectrum-ColorWheel-slider')} {...inputProps} ref={inputRef} />\n </ColorThumb>\n </div>\n );\n}\n\n/**\n * ColorWheels allow users to adjust the hue of an HSL or HSB color value on a circular track.\n */\nlet _ColorWheel = React.forwardRef(ColorWheel);\nexport {_ColorWheel as ColorWheel};\n"],"names":[],"version":3,"file":"ColorWheel.module.js.map"}
@@ -0,0 +1,32 @@
1
+
2
+ function $parcel$export(e, n, v, s) {
3
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
4
+ }
5
+
6
+ $parcel$export(module.exports, "focus-ring", () => $d4b4e0a63f9ca8c1$export$f39a09f249340e2a, (v) => $d4b4e0a63f9ca8c1$export$f39a09f249340e2a = v);
7
+ $parcel$export(module.exports, "is-disabled", () => $d4b4e0a63f9ca8c1$export$d35bc1e505d1ebbf, (v) => $d4b4e0a63f9ca8c1$export$d35bc1e505d1ebbf = v);
8
+ $parcel$export(module.exports, "is-focused", () => $d4b4e0a63f9ca8c1$export$e7dc768d35940237, (v) => $d4b4e0a63f9ca8c1$export$e7dc768d35940237 = v);
9
+ $parcel$export(module.exports, "spectrum-ColorArea", () => $d4b4e0a63f9ca8c1$export$bb6257a55a3c1efc, (v) => $d4b4e0a63f9ca8c1$export$bb6257a55a3c1efc = v);
10
+ $parcel$export(module.exports, "spectrum-ColorArea-gradient", () => $d4b4e0a63f9ca8c1$export$40686f4fcb8a9916, (v) => $d4b4e0a63f9ca8c1$export$40686f4fcb8a9916 = v);
11
+ $parcel$export(module.exports, "spectrum-ColorArea-handle", () => $d4b4e0a63f9ca8c1$export$d8addbd273c4e00, (v) => $d4b4e0a63f9ca8c1$export$d8addbd273c4e00 = v);
12
+ $parcel$export(module.exports, "spectrum-ColorArea-slider", () => $d4b4e0a63f9ca8c1$export$7d727cacaa7cea1e, (v) => $d4b4e0a63f9ca8c1$export$7d727cacaa7cea1e = v);
13
+ $parcel$export(module.exports, "spectrum-ColorHandle-color", () => $d4b4e0a63f9ca8c1$export$afe4c366ed4e659c, (v) => $d4b4e0a63f9ca8c1$export$afe4c366ed4e659c = v);
14
+ var $d4b4e0a63f9ca8c1$export$f39a09f249340e2a;
15
+ var $d4b4e0a63f9ca8c1$export$d35bc1e505d1ebbf;
16
+ var $d4b4e0a63f9ca8c1$export$e7dc768d35940237;
17
+ var $d4b4e0a63f9ca8c1$export$bb6257a55a3c1efc;
18
+ var $d4b4e0a63f9ca8c1$export$40686f4fcb8a9916;
19
+ var $d4b4e0a63f9ca8c1$export$d8addbd273c4e00;
20
+ var $d4b4e0a63f9ca8c1$export$7d727cacaa7cea1e;
21
+ var $d4b4e0a63f9ca8c1$export$afe4c366ed4e659c;
22
+ $d4b4e0a63f9ca8c1$export$f39a09f249340e2a = `lm1DSq_focus-ring`;
23
+ $d4b4e0a63f9ca8c1$export$d35bc1e505d1ebbf = `lm1DSq_is-disabled`;
24
+ $d4b4e0a63f9ca8c1$export$e7dc768d35940237 = `lm1DSq_is-focused`;
25
+ $d4b4e0a63f9ca8c1$export$bb6257a55a3c1efc = `lm1DSq_spectrum-ColorArea`;
26
+ $d4b4e0a63f9ca8c1$export$40686f4fcb8a9916 = `lm1DSq_spectrum-ColorArea-gradient`;
27
+ $d4b4e0a63f9ca8c1$export$d8addbd273c4e00 = `lm1DSq_spectrum-ColorArea-handle`;
28
+ $d4b4e0a63f9ca8c1$export$7d727cacaa7cea1e = `lm1DSq_spectrum-ColorArea-slider`;
29
+ $d4b4e0a63f9ca8c1$export$afe4c366ed4e659c = `lm1DSq_spectrum-ColorHandle-color`;
30
+
31
+
32
+ //# sourceMappingURL=colorarea_vars_css.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;;;;AAAA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AAPA,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAgC,CAAC,kBAAkB,CAAC;AACpD,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAuC,CAAC,yBAAyB,CAAC;AAClE,4CAAgD,CAAC,kCAAkC,CAAC;AACpF,2CAA8C,CAAC,gCAAgC,CAAC;AAChF,4CAA8C,CAAC,gCAAgC,CAAC;AAChF,4CAA+C,CAAC,iCAAiC,CAAC","sources":["packages/@adobe/spectrum-css-temp/components/colorarea/vars.css"],"sourcesContent":["/*\n * Copyright 2021 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"colorarea_vars_css.main.js.map"}
@@ -0,0 +1,34 @@
1
+
2
+ function $parcel$export(e, n, v, s) {
3
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
4
+ }
5
+ var $7d12200010f0192e$exports = {};
6
+
7
+ $parcel$export($7d12200010f0192e$exports, "focus-ring", () => $7d12200010f0192e$export$f39a09f249340e2a, (v) => $7d12200010f0192e$export$f39a09f249340e2a = v);
8
+ $parcel$export($7d12200010f0192e$exports, "is-disabled", () => $7d12200010f0192e$export$d35bc1e505d1ebbf, (v) => $7d12200010f0192e$export$d35bc1e505d1ebbf = v);
9
+ $parcel$export($7d12200010f0192e$exports, "is-focused", () => $7d12200010f0192e$export$e7dc768d35940237, (v) => $7d12200010f0192e$export$e7dc768d35940237 = v);
10
+ $parcel$export($7d12200010f0192e$exports, "spectrum-ColorArea", () => $7d12200010f0192e$export$bb6257a55a3c1efc, (v) => $7d12200010f0192e$export$bb6257a55a3c1efc = v);
11
+ $parcel$export($7d12200010f0192e$exports, "spectrum-ColorArea-gradient", () => $7d12200010f0192e$export$40686f4fcb8a9916, (v) => $7d12200010f0192e$export$40686f4fcb8a9916 = v);
12
+ $parcel$export($7d12200010f0192e$exports, "spectrum-ColorArea-handle", () => $7d12200010f0192e$export$d8addbd273c4e00, (v) => $7d12200010f0192e$export$d8addbd273c4e00 = v);
13
+ $parcel$export($7d12200010f0192e$exports, "spectrum-ColorArea-slider", () => $7d12200010f0192e$export$7d727cacaa7cea1e, (v) => $7d12200010f0192e$export$7d727cacaa7cea1e = v);
14
+ $parcel$export($7d12200010f0192e$exports, "spectrum-ColorHandle-color", () => $7d12200010f0192e$export$afe4c366ed4e659c, (v) => $7d12200010f0192e$export$afe4c366ed4e659c = v);
15
+ var $7d12200010f0192e$export$f39a09f249340e2a;
16
+ var $7d12200010f0192e$export$d35bc1e505d1ebbf;
17
+ var $7d12200010f0192e$export$e7dc768d35940237;
18
+ var $7d12200010f0192e$export$bb6257a55a3c1efc;
19
+ var $7d12200010f0192e$export$40686f4fcb8a9916;
20
+ var $7d12200010f0192e$export$d8addbd273c4e00;
21
+ var $7d12200010f0192e$export$7d727cacaa7cea1e;
22
+ var $7d12200010f0192e$export$afe4c366ed4e659c;
23
+ $7d12200010f0192e$export$f39a09f249340e2a = `lm1DSq_focus-ring`;
24
+ $7d12200010f0192e$export$d35bc1e505d1ebbf = `lm1DSq_is-disabled`;
25
+ $7d12200010f0192e$export$e7dc768d35940237 = `lm1DSq_is-focused`;
26
+ $7d12200010f0192e$export$bb6257a55a3c1efc = `lm1DSq_spectrum-ColorArea`;
27
+ $7d12200010f0192e$export$40686f4fcb8a9916 = `lm1DSq_spectrum-ColorArea-gradient`;
28
+ $7d12200010f0192e$export$d8addbd273c4e00 = `lm1DSq_spectrum-ColorArea-handle`;
29
+ $7d12200010f0192e$export$7d727cacaa7cea1e = `lm1DSq_spectrum-ColorArea-slider`;
30
+ $7d12200010f0192e$export$afe4c366ed4e659c = `lm1DSq_spectrum-ColorHandle-color`;
31
+
32
+
33
+ export {$7d12200010f0192e$exports as default};
34
+ //# sourceMappingURL=colorarea_vars_css.mjs.map
@@ -0,0 +1,34 @@
1
+
2
+ function $parcel$export(e, n, v, s) {
3
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
4
+ }
5
+ var $7d12200010f0192e$exports = {};
6
+
7
+ $parcel$export($7d12200010f0192e$exports, "focus-ring", () => $7d12200010f0192e$export$f39a09f249340e2a, (v) => $7d12200010f0192e$export$f39a09f249340e2a = v);
8
+ $parcel$export($7d12200010f0192e$exports, "is-disabled", () => $7d12200010f0192e$export$d35bc1e505d1ebbf, (v) => $7d12200010f0192e$export$d35bc1e505d1ebbf = v);
9
+ $parcel$export($7d12200010f0192e$exports, "is-focused", () => $7d12200010f0192e$export$e7dc768d35940237, (v) => $7d12200010f0192e$export$e7dc768d35940237 = v);
10
+ $parcel$export($7d12200010f0192e$exports, "spectrum-ColorArea", () => $7d12200010f0192e$export$bb6257a55a3c1efc, (v) => $7d12200010f0192e$export$bb6257a55a3c1efc = v);
11
+ $parcel$export($7d12200010f0192e$exports, "spectrum-ColorArea-gradient", () => $7d12200010f0192e$export$40686f4fcb8a9916, (v) => $7d12200010f0192e$export$40686f4fcb8a9916 = v);
12
+ $parcel$export($7d12200010f0192e$exports, "spectrum-ColorArea-handle", () => $7d12200010f0192e$export$d8addbd273c4e00, (v) => $7d12200010f0192e$export$d8addbd273c4e00 = v);
13
+ $parcel$export($7d12200010f0192e$exports, "spectrum-ColorArea-slider", () => $7d12200010f0192e$export$7d727cacaa7cea1e, (v) => $7d12200010f0192e$export$7d727cacaa7cea1e = v);
14
+ $parcel$export($7d12200010f0192e$exports, "spectrum-ColorHandle-color", () => $7d12200010f0192e$export$afe4c366ed4e659c, (v) => $7d12200010f0192e$export$afe4c366ed4e659c = v);
15
+ var $7d12200010f0192e$export$f39a09f249340e2a;
16
+ var $7d12200010f0192e$export$d35bc1e505d1ebbf;
17
+ var $7d12200010f0192e$export$e7dc768d35940237;
18
+ var $7d12200010f0192e$export$bb6257a55a3c1efc;
19
+ var $7d12200010f0192e$export$40686f4fcb8a9916;
20
+ var $7d12200010f0192e$export$d8addbd273c4e00;
21
+ var $7d12200010f0192e$export$7d727cacaa7cea1e;
22
+ var $7d12200010f0192e$export$afe4c366ed4e659c;
23
+ $7d12200010f0192e$export$f39a09f249340e2a = `lm1DSq_focus-ring`;
24
+ $7d12200010f0192e$export$d35bc1e505d1ebbf = `lm1DSq_is-disabled`;
25
+ $7d12200010f0192e$export$e7dc768d35940237 = `lm1DSq_is-focused`;
26
+ $7d12200010f0192e$export$bb6257a55a3c1efc = `lm1DSq_spectrum-ColorArea`;
27
+ $7d12200010f0192e$export$40686f4fcb8a9916 = `lm1DSq_spectrum-ColorArea-gradient`;
28
+ $7d12200010f0192e$export$d8addbd273c4e00 = `lm1DSq_spectrum-ColorArea-handle`;
29
+ $7d12200010f0192e$export$7d727cacaa7cea1e = `lm1DSq_spectrum-ColorArea-slider`;
30
+ $7d12200010f0192e$export$afe4c366ed4e659c = `lm1DSq_spectrum-ColorHandle-color`;
31
+
32
+
33
+ export {$7d12200010f0192e$exports as default};
34
+ //# sourceMappingURL=colorarea_vars_css.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;;;;;AAAA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AAPA,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAgC,CAAC,kBAAkB,CAAC;AACpD,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAuC,CAAC,yBAAyB,CAAC;AAClE,4CAAgD,CAAC,kCAAkC,CAAC;AACpF,2CAA8C,CAAC,gCAAgC,CAAC;AAChF,4CAA8C,CAAC,gCAAgC,CAAC;AAChF,4CAA+C,CAAC,iCAAiC,CAAC","sources":["packages/@adobe/spectrum-css-temp/components/colorarea/vars.css"],"sourcesContent":["/*\n * Copyright 2021 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"colorarea_vars_css.module.js.map"}
@@ -0,0 +1,12 @@
1
+ .UccskW_react-spectrum-ColorField-input:not(:placeholder-shown) {
2
+ unicode-bidi: plaintext;
3
+ }
4
+
5
+ .UccskW_react-spectrum-ColorField-input:not(:placeholder-shown):-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
6
+ text-align: end;
7
+ }
8
+
9
+ .UccskW_react-spectrum-ColorField-input:not(:placeholder-shown):is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
10
+ text-align: end;
11
+ }
12
+ /*# sourceMappingURL=colorfield.faeff3c2.css.map */
@@ -0,0 +1 @@
1
+ {"mappings":"AAYA;;;;AAEE;;;;AAAA","sources":["packages/@react-spectrum/color/src/colorfield.css"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n.react-spectrum-ColorField-input:not(:placeholder-shown) {\n unicode-bidi: plaintext;\n &:dir(rtl) {\n text-align: end;\n }\n}\n"],"names":[],"version":3,"file":"colorfield.faeff3c2.css.map"}
@@ -0,0 +1,11 @@
1
+
2
+ function $parcel$export(e, n, v, s) {
3
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
4
+ }
5
+
6
+ $parcel$export(module.exports, "react-spectrum-ColorField-input", () => $ddec4d6aa21146c4$export$7d80c6630a750b1, (v) => $ddec4d6aa21146c4$export$7d80c6630a750b1 = v);
7
+ var $ddec4d6aa21146c4$export$7d80c6630a750b1;
8
+ $ddec4d6aa21146c4$export$7d80c6630a750b1 = `UccskW_react-spectrum-ColorField-input`;
9
+
10
+
11
+ //# sourceMappingURL=colorfield_css.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;AAAA,IAAA;AAAA,2CAAoD,CAAC,sCAAsC,CAAC","sources":["packages/@react-spectrum/color/src/colorfield.css"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n.react-spectrum-ColorField-input:not(:placeholder-shown) {\n unicode-bidi: plaintext;\n &:dir(rtl) {\n text-align: end;\n }\n}\n"],"names":[],"version":3,"file":"colorfield_css.main.js.map"}
@@ -0,0 +1,13 @@
1
+
2
+ function $parcel$export(e, n, v, s) {
3
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
4
+ }
5
+ var $9d47b39540b9e48a$exports = {};
6
+
7
+ $parcel$export($9d47b39540b9e48a$exports, "react-spectrum-ColorField-input", () => $9d47b39540b9e48a$export$7d80c6630a750b1, (v) => $9d47b39540b9e48a$export$7d80c6630a750b1 = v);
8
+ var $9d47b39540b9e48a$export$7d80c6630a750b1;
9
+ $9d47b39540b9e48a$export$7d80c6630a750b1 = `UccskW_react-spectrum-ColorField-input`;
10
+
11
+
12
+ export {$9d47b39540b9e48a$exports as default};
13
+ //# sourceMappingURL=colorfield_css.mjs.map
@@ -0,0 +1,13 @@
1
+
2
+ function $parcel$export(e, n, v, s) {
3
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
4
+ }
5
+ var $9d47b39540b9e48a$exports = {};
6
+
7
+ $parcel$export($9d47b39540b9e48a$exports, "react-spectrum-ColorField-input", () => $9d47b39540b9e48a$export$7d80c6630a750b1, (v) => $9d47b39540b9e48a$export$7d80c6630a750b1 = v);
8
+ var $9d47b39540b9e48a$export$7d80c6630a750b1;
9
+ $9d47b39540b9e48a$export$7d80c6630a750b1 = `UccskW_react-spectrum-ColorField-input`;
10
+
11
+
12
+ export {$9d47b39540b9e48a$exports as default};
13
+ //# sourceMappingURL=colorfield_css.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;AAAA,IAAA;AAAA,2CAAoD,CAAC,sCAAsC,CAAC","sources":["packages/@react-spectrum/color/src/colorfield.css"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n.react-spectrum-ColorField-input:not(:placeholder-shown) {\n unicode-bidi: plaintext;\n &:dir(rtl) {\n text-align: end;\n }\n}\n"],"names":[],"version":3,"file":"colorfield_css.module.js.map"}
@@ -0,0 +1,26 @@
1
+
2
+ function $parcel$export(e, n, v, s) {
3
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
4
+ }
5
+
6
+ $parcel$export(module.exports, "spectrum-ColorControl-handle--focused", () => $f61d632765728b2e$export$1dd67f16e0d58f73, (v) => $f61d632765728b2e$export$1dd67f16e0d58f73 = v);
7
+ $parcel$export(module.exports, "focus-ring", () => $f61d632765728b2e$export$f39a09f249340e2a, (v) => $f61d632765728b2e$export$f39a09f249340e2a = v);
8
+ $parcel$export(module.exports, "is-disabled", () => $f61d632765728b2e$export$d35bc1e505d1ebbf, (v) => $f61d632765728b2e$export$d35bc1e505d1ebbf = v);
9
+ $parcel$export(module.exports, "is-focused", () => $f61d632765728b2e$export$e7dc768d35940237, (v) => $f61d632765728b2e$export$e7dc768d35940237 = v);
10
+ $parcel$export(module.exports, "spectrum-ColorHandle", () => $f61d632765728b2e$export$cd9afaa621b6216f, (v) => $f61d632765728b2e$export$cd9afaa621b6216f = v);
11
+ $parcel$export(module.exports, "spectrum-ColorHandle-color", () => $f61d632765728b2e$export$afe4c366ed4e659c, (v) => $f61d632765728b2e$export$afe4c366ed4e659c = v);
12
+ var $f61d632765728b2e$export$1dd67f16e0d58f73;
13
+ var $f61d632765728b2e$export$f39a09f249340e2a;
14
+ var $f61d632765728b2e$export$d35bc1e505d1ebbf;
15
+ var $f61d632765728b2e$export$e7dc768d35940237;
16
+ var $f61d632765728b2e$export$cd9afaa621b6216f;
17
+ var $f61d632765728b2e$export$afe4c366ed4e659c;
18
+ $f61d632765728b2e$export$1dd67f16e0d58f73 = `hoc2UW_spectrum-ColorControl-handle--focused`;
19
+ $f61d632765728b2e$export$f39a09f249340e2a = `hoc2UW_focus-ring ${$f61d632765728b2e$export$1dd67f16e0d58f73}`;
20
+ $f61d632765728b2e$export$d35bc1e505d1ebbf = `hoc2UW_is-disabled`;
21
+ $f61d632765728b2e$export$e7dc768d35940237 = `hoc2UW_is-focused ${$f61d632765728b2e$export$1dd67f16e0d58f73}`;
22
+ $f61d632765728b2e$export$cd9afaa621b6216f = `hoc2UW_spectrum-ColorHandle`;
23
+ $f61d632765728b2e$export$afe4c366ed4e659c = `hoc2UW_spectrum-ColorHandle-color`;
24
+
25
+
26
+ //# sourceMappingURL=colorhandle_vars_css.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;;AAAA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AALA,4CAA0D,CAAC,4CAA4C,CAAC;AACxG,4CAA+B,CAAC,kBAAkB,EAAE,0CAAwD,CAAC;AAC7G,4CAAgC,CAAC,kBAAkB,CAAC;AACpD,4CAA+B,CAAC,kBAAkB,EAAE,0CAAwD,CAAC;AAC7G,4CAAyC,CAAC,2BAA2B,CAAC;AACtE,4CAA+C,CAAC,iCAAiC,CAAC","sources":["packages/@adobe/spectrum-css-temp/components/colorhandle/vars.css"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"colorhandle_vars_css.main.js.map"}
@@ -0,0 +1,28 @@
1
+
2
+ function $parcel$export(e, n, v, s) {
3
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
4
+ }
5
+ var $9d103974e3e19727$exports = {};
6
+
7
+ $parcel$export($9d103974e3e19727$exports, "spectrum-ColorControl-handle--focused", () => $9d103974e3e19727$export$1dd67f16e0d58f73, (v) => $9d103974e3e19727$export$1dd67f16e0d58f73 = v);
8
+ $parcel$export($9d103974e3e19727$exports, "focus-ring", () => $9d103974e3e19727$export$f39a09f249340e2a, (v) => $9d103974e3e19727$export$f39a09f249340e2a = v);
9
+ $parcel$export($9d103974e3e19727$exports, "is-disabled", () => $9d103974e3e19727$export$d35bc1e505d1ebbf, (v) => $9d103974e3e19727$export$d35bc1e505d1ebbf = v);
10
+ $parcel$export($9d103974e3e19727$exports, "is-focused", () => $9d103974e3e19727$export$e7dc768d35940237, (v) => $9d103974e3e19727$export$e7dc768d35940237 = v);
11
+ $parcel$export($9d103974e3e19727$exports, "spectrum-ColorHandle", () => $9d103974e3e19727$export$cd9afaa621b6216f, (v) => $9d103974e3e19727$export$cd9afaa621b6216f = v);
12
+ $parcel$export($9d103974e3e19727$exports, "spectrum-ColorHandle-color", () => $9d103974e3e19727$export$afe4c366ed4e659c, (v) => $9d103974e3e19727$export$afe4c366ed4e659c = v);
13
+ var $9d103974e3e19727$export$1dd67f16e0d58f73;
14
+ var $9d103974e3e19727$export$f39a09f249340e2a;
15
+ var $9d103974e3e19727$export$d35bc1e505d1ebbf;
16
+ var $9d103974e3e19727$export$e7dc768d35940237;
17
+ var $9d103974e3e19727$export$cd9afaa621b6216f;
18
+ var $9d103974e3e19727$export$afe4c366ed4e659c;
19
+ $9d103974e3e19727$export$1dd67f16e0d58f73 = `hoc2UW_spectrum-ColorControl-handle--focused`;
20
+ $9d103974e3e19727$export$f39a09f249340e2a = `hoc2UW_focus-ring ${$9d103974e3e19727$export$1dd67f16e0d58f73}`;
21
+ $9d103974e3e19727$export$d35bc1e505d1ebbf = `hoc2UW_is-disabled`;
22
+ $9d103974e3e19727$export$e7dc768d35940237 = `hoc2UW_is-focused ${$9d103974e3e19727$export$1dd67f16e0d58f73}`;
23
+ $9d103974e3e19727$export$cd9afaa621b6216f = `hoc2UW_spectrum-ColorHandle`;
24
+ $9d103974e3e19727$export$afe4c366ed4e659c = `hoc2UW_spectrum-ColorHandle-color`;
25
+
26
+
27
+ export {$9d103974e3e19727$exports as default};
28
+ //# sourceMappingURL=colorhandle_vars_css.mjs.map