@react-spectrum/color 3.0.0 → 3.0.2

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 (43) hide show
  1. package/LICENSE +201 -0
  2. package/dist/ColorEditor.f85fa1f2.css +20 -0
  3. package/dist/ColorEditor.f85fa1f2.css.map +1 -0
  4. package/dist/ColorEditor.main.js +11 -11
  5. package/dist/ColorEditor.mjs +11 -11
  6. package/dist/ColorEditor.module.js +11 -11
  7. package/dist/ColorPicker.96797a19.css +206 -0
  8. package/dist/ColorPicker.96797a19.css.map +1 -0
  9. package/dist/ColorPicker.main.js +35 -35
  10. package/dist/ColorPicker.mjs +35 -35
  11. package/dist/ColorPicker.module.js +35 -35
  12. package/dist/ColorSwatch.fabed858.css +260 -0
  13. package/dist/ColorSwatch.fabed858.css.map +1 -0
  14. package/dist/ColorSwatch.main.js +29 -29
  15. package/dist/ColorSwatch.mjs +29 -29
  16. package/dist/ColorSwatch.module.js +29 -29
  17. package/dist/ColorSwatchPicker.25f8fb63.css +356 -0
  18. package/dist/ColorSwatchPicker.25f8fb63.css.map +1 -0
  19. package/dist/ColorSwatchPicker.main.js +40 -40
  20. package/dist/ColorSwatchPicker.mjs +40 -40
  21. package/dist/ColorSwatchPicker.module.js +40 -40
  22. package/dist/ColorWheel.main.js +0 -1
  23. package/dist/ColorWheel.main.js.map +1 -1
  24. package/dist/ColorWheel.mjs +0 -1
  25. package/dist/ColorWheel.module.js +0 -1
  26. package/dist/ColorWheel.module.js.map +1 -1
  27. package/dist/colorhandle_vars_css.main.js.map +1 -1
  28. package/dist/colorhandle_vars_css.module.js.map +1 -1
  29. package/dist/colorslider_vars_css.main.js.map +1 -1
  30. package/dist/colorslider_vars_css.module.js.map +1 -1
  31. package/dist/colorwheel_vars_css.main.js.map +1 -1
  32. package/dist/colorwheel_vars_css.module.js.map +1 -1
  33. package/dist/types.d.ts.map +1 -1
  34. package/package.json +25 -24
  35. package/src/ColorWheel.tsx +0 -1
  36. package/dist/ColorEditor.32e497e8.css +0 -20
  37. package/dist/ColorEditor.32e497e8.css.map +0 -1
  38. package/dist/ColorPicker.ab9f47c0.css +0 -204
  39. package/dist/ColorPicker.ab9f47c0.css.map +0 -1
  40. package/dist/ColorSwatch.f6e6f811.css +0 -260
  41. package/dist/ColorSwatch.f6e6f811.css.map +0 -1
  42. package/dist/ColorSwatchPicker.1575be06.css +0 -356
  43. package/dist/ColorSwatchPicker.1575be06.css.map +0 -1
@@ -1,4 +1,4 @@
1
- import "./ColorSwatchPicker.1575be06.css";
1
+ import "./ColorSwatchPicker.25f8fb63.css";
2
2
  import {SpectrumColorSwatchContext as $d68786ae409fa722$export$8529d7908a78c058} from "./ColorSwatch.mjs";
3
3
  import {ColorSwatchPicker as $1TpDU$ColorSwatchPicker, ColorSwatchPickerItem as $1TpDU$ColorSwatchPickerItem} from "react-aria-components";
4
4
  import $1TpDU$react, {forwardRef as $1TpDU$forwardRef} from "react";
@@ -28,14 +28,14 @@ function $4919bc07654f325c$var$ColorSwatchPicker(props, ref) {
28
28
  ref: domRef,
29
29
  className: styleProps.className + function anonymous(props) {
30
30
  let rules = "";
31
- rules += ' _Sd';
32
- rules += ' _0a';
33
- if (props.density === "spacious") rules += ' lc';
34
- else if (props.density === "regular") rules += ' lb';
35
- else if (props.density === "compact") rules += ' lF';
36
- if (props.density === "spacious") rules += ' mc';
37
- else if (props.density === "regular") rules += ' mb';
38
- else if (props.density === "compact") rules += ' mF';
31
+ rules += ' s1-_Ss1-d';
32
+ rules += ' s1-_0s1-a';
33
+ if (props.density === "spacious") rules += ' s1-ls1-c';
34
+ else if (props.density === "regular") rules += ' s1-ls1-b';
35
+ else if (props.density === "compact") rules += ' s1-ls1-F';
36
+ if (props.density === "spacious") rules += ' s1-ms1-c';
37
+ else if (props.density === "regular") rules += ' s1-ms1-b';
38
+ else if (props.density === "compact") rules += ' s1-ms1-F';
39
39
  return rules;
40
40
  }({
41
41
  density: density
@@ -56,25 +56,25 @@ function $4919bc07654f325c$var$useWrapper(swatch, color, rounding) {
56
56
  color: color,
57
57
  className: (renderProps)=>(function anonymous(props) {
58
58
  let rules = "";
59
- if (props.isFocusVisible) rules += ' _Eb';
60
- else rules += ' _Ea';
61
- rules += ' da___D';
62
- rules += ' d___I';
63
- rules += ' _Gc';
64
- rules += ' _Fc';
65
- rules += ' Xc';
66
- if (props.rounding === "full") rules += ' _pf';
67
- else if (props.rounding === "default") rules += ' _pc';
68
- else if (props.rounding === "none") rules += ' _pa';
69
- if (props.rounding === "full") rules += ' _qf';
70
- else if (props.rounding === "default") rules += ' _qc';
71
- else if (props.rounding === "none") rules += ' _qa';
72
- if (props.rounding === "full") rules += ' _rf';
73
- else if (props.rounding === "default") rules += ' _rc';
74
- else if (props.rounding === "none") rules += ' _ra';
75
- if (props.rounding === "full") rules += ' _sf';
76
- else if (props.rounding === "default") rules += ' _sc';
77
- else if (props.rounding === "none") rules += ' _sa';
59
+ if (props.isFocusVisible) rules += ' s1-_Es1-b';
60
+ else rules += ' s1-_Es1-a';
61
+ rules += ' s1-ds1-as1-___D';
62
+ rules += ' s1-ds1-___I';
63
+ rules += ' s1-_Gs1-c';
64
+ rules += ' s1-_Fs1-c';
65
+ rules += ' s1-Xs1-c';
66
+ if (props.rounding === "full") rules += ' s1-_ps1-f';
67
+ else if (props.rounding === "default") rules += ' s1-_ps1-c';
68
+ else if (props.rounding === "none") rules += ' s1-_ps1-a';
69
+ if (props.rounding === "full") rules += ' s1-_qs1-f';
70
+ else if (props.rounding === "default") rules += ' s1-_qs1-c';
71
+ else if (props.rounding === "none") rules += ' s1-_qs1-a';
72
+ if (props.rounding === "full") rules += ' s1-_rs1-f';
73
+ else if (props.rounding === "default") rules += ' s1-_rs1-c';
74
+ else if (props.rounding === "none") rules += ' s1-_rs1-a';
75
+ if (props.rounding === "full") rules += ' s1-_ss1-f';
76
+ else if (props.rounding === "default") rules += ' s1-_ss1-c';
77
+ else if (props.rounding === "none") rules += ' s1-_ss1-a';
78
78
  return rules;
79
79
  })({
80
80
  ...renderProps,
@@ -84,18 +84,18 @@ function $4919bc07654f325c$var$useWrapper(swatch, color, rounding) {
84
84
  "aria-hidden": true,
85
85
  className: function anonymous(props) {
86
86
  let rules = "";
87
- rules += ' Xa';
88
- rules += ' __ya';
89
- rules += ' _0a';
90
- rules += ' _2a';
91
- rules += ' _1a';
92
- rules += ' _3a';
93
- rules += ' _o-1icpv9v';
94
- rules += ' _tb';
95
- rules += ' _p-17zqamw';
96
- rules += ' _q-17zqamw';
97
- rules += ' _r-17zqamw';
98
- rules += ' _s-17zqamw';
87
+ rules += ' s1-Xs1-a';
88
+ rules += ' s1-__ys1-a';
89
+ rules += ' s1-0s1-a';
90
+ rules += ' s1-2s1-a';
91
+ rules += ' s1-1s1-a';
92
+ rules += ' s1-3s1-a';
93
+ rules += ' s1-_o-1icpv9v';
94
+ rules += ' s1-_ts1-b';
95
+ rules += ' s1-_p-17zqamw';
96
+ rules += ' s1-_q-17zqamw';
97
+ rules += ' s1-_r-17zqamw';
98
+ rules += ' s1-_s-17zqamw';
99
99
  return rules;
100
100
  }()
101
101
  })));
@@ -1,4 +1,4 @@
1
- import "./ColorSwatchPicker.1575be06.css";
1
+ import "./ColorSwatchPicker.25f8fb63.css";
2
2
  import {SpectrumColorSwatchContext as $d68786ae409fa722$export$8529d7908a78c058} from "./ColorSwatch.module.js";
3
3
  import {ColorSwatchPicker as $1TpDU$ColorSwatchPicker, ColorSwatchPickerItem as $1TpDU$ColorSwatchPickerItem} from "react-aria-components";
4
4
  import $1TpDU$react, {forwardRef as $1TpDU$forwardRef} from "react";
@@ -28,14 +28,14 @@ function $4919bc07654f325c$var$ColorSwatchPicker(props, ref) {
28
28
  ref: domRef,
29
29
  className: styleProps.className + function anonymous(props) {
30
30
  let rules = "";
31
- rules += ' _Sd';
32
- rules += ' _0a';
33
- if (props.density === "spacious") rules += ' lc';
34
- else if (props.density === "regular") rules += ' lb';
35
- else if (props.density === "compact") rules += ' lF';
36
- if (props.density === "spacious") rules += ' mc';
37
- else if (props.density === "regular") rules += ' mb';
38
- else if (props.density === "compact") rules += ' mF';
31
+ rules += ' s1-_Ss1-d';
32
+ rules += ' s1-_0s1-a';
33
+ if (props.density === "spacious") rules += ' s1-ls1-c';
34
+ else if (props.density === "regular") rules += ' s1-ls1-b';
35
+ else if (props.density === "compact") rules += ' s1-ls1-F';
36
+ if (props.density === "spacious") rules += ' s1-ms1-c';
37
+ else if (props.density === "regular") rules += ' s1-ms1-b';
38
+ else if (props.density === "compact") rules += ' s1-ms1-F';
39
39
  return rules;
40
40
  }({
41
41
  density: density
@@ -56,25 +56,25 @@ function $4919bc07654f325c$var$useWrapper(swatch, color, rounding) {
56
56
  color: color,
57
57
  className: (renderProps)=>(function anonymous(props) {
58
58
  let rules = "";
59
- if (props.isFocusVisible) rules += ' _Eb';
60
- else rules += ' _Ea';
61
- rules += ' da___D';
62
- rules += ' d___I';
63
- rules += ' _Gc';
64
- rules += ' _Fc';
65
- rules += ' Xc';
66
- if (props.rounding === "full") rules += ' _pf';
67
- else if (props.rounding === "default") rules += ' _pc';
68
- else if (props.rounding === "none") rules += ' _pa';
69
- if (props.rounding === "full") rules += ' _qf';
70
- else if (props.rounding === "default") rules += ' _qc';
71
- else if (props.rounding === "none") rules += ' _qa';
72
- if (props.rounding === "full") rules += ' _rf';
73
- else if (props.rounding === "default") rules += ' _rc';
74
- else if (props.rounding === "none") rules += ' _ra';
75
- if (props.rounding === "full") rules += ' _sf';
76
- else if (props.rounding === "default") rules += ' _sc';
77
- else if (props.rounding === "none") rules += ' _sa';
59
+ if (props.isFocusVisible) rules += ' s1-_Es1-b';
60
+ else rules += ' s1-_Es1-a';
61
+ rules += ' s1-ds1-as1-___D';
62
+ rules += ' s1-ds1-___I';
63
+ rules += ' s1-_Gs1-c';
64
+ rules += ' s1-_Fs1-c';
65
+ rules += ' s1-Xs1-c';
66
+ if (props.rounding === "full") rules += ' s1-_ps1-f';
67
+ else if (props.rounding === "default") rules += ' s1-_ps1-c';
68
+ else if (props.rounding === "none") rules += ' s1-_ps1-a';
69
+ if (props.rounding === "full") rules += ' s1-_qs1-f';
70
+ else if (props.rounding === "default") rules += ' s1-_qs1-c';
71
+ else if (props.rounding === "none") rules += ' s1-_qs1-a';
72
+ if (props.rounding === "full") rules += ' s1-_rs1-f';
73
+ else if (props.rounding === "default") rules += ' s1-_rs1-c';
74
+ else if (props.rounding === "none") rules += ' s1-_rs1-a';
75
+ if (props.rounding === "full") rules += ' s1-_ss1-f';
76
+ else if (props.rounding === "default") rules += ' s1-_ss1-c';
77
+ else if (props.rounding === "none") rules += ' s1-_ss1-a';
78
78
  return rules;
79
79
  })({
80
80
  ...renderProps,
@@ -84,18 +84,18 @@ function $4919bc07654f325c$var$useWrapper(swatch, color, rounding) {
84
84
  "aria-hidden": true,
85
85
  className: function anonymous(props) {
86
86
  let rules = "";
87
- rules += ' Xa';
88
- rules += ' __ya';
89
- rules += ' _0a';
90
- rules += ' _2a';
91
- rules += ' _1a';
92
- rules += ' _3a';
93
- rules += ' _o-1icpv9v';
94
- rules += ' _tb';
95
- rules += ' _p-17zqamw';
96
- rules += ' _q-17zqamw';
97
- rules += ' _r-17zqamw';
98
- rules += ' _s-17zqamw';
87
+ rules += ' s1-Xs1-a';
88
+ rules += ' s1-__ys1-a';
89
+ rules += ' s1-0s1-a';
90
+ rules += ' s1-2s1-a';
91
+ rules += ' s1-1s1-a';
92
+ rules += ' s1-3s1-a';
93
+ rules += ' s1-_o-1icpv9v';
94
+ rules += ' s1-_ts1-b';
95
+ rules += ' s1-_p-17zqamw';
96
+ rules += ' s1-_q-17zqamw';
97
+ rules += ' s1-_r-17zqamw';
98
+ rules += ' s1-_s-17zqamw';
99
99
  return rules;
100
100
  }()
101
101
  })));
@@ -88,7 +88,6 @@ function $63a2864687444ae1$var$ColorWheel(props, ref) {
88
88
  style: {
89
89
  ...styleProps.style,
90
90
  // Workaround around https://github.com/adobe/spectrum-css/issues/1032
91
- // @ts-ignore
92
91
  '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,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,cAAc;QACd,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 {ColorWheelContext, useContextProps} from 'react-aria-components';\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 let inputRef = useRef(null);\n let containerRef = useFocusableRef(ref, inputRef);\n [props, containerRef] = useContextProps(props, containerRef, ColorWheelContext);\n\n let {isDisabled} = props;\n let size = props.size && dimensionValue(props.size);\n let {styleProps} = useStyleProps(props);\n\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 containerRef={containerRef}\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"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;;AAeD,MAAM,wCAAkB;AAExB,SAAS,iCAAW,KAA8B,EAAE,GAAiC;IACnF,QAAQ,CAAA,GAAA,6CAAe,EAAE;IACzB,IAAI,WAAW,CAAA,GAAA,mBAAK,EAAE;IACtB,IAAI,eAAe,CAAA,GAAA,yCAAc,EAAE,KAAK;IACxC,CAAC,OAAO,aAAa,GAAG,CAAA,GAAA,0CAAc,EAAE,OAAO,cAAc,CAAA,GAAA,4CAAgB;IAE7E,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;IAGjC,IAAI,CAAC,aAAa,eAAe,GAAG,CAAA,GAAA,qBAAO,EAAU;IACrD,IAAI,CAAC,gBAAgB,kBAAk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G,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 {ColorWheelContext, useContextProps} from 'react-aria-components';\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 let inputRef = useRef(null);\n let containerRef = useFocusableRef(ref, inputRef);\n [props, containerRef] = useContextProps(props, containerRef, ColorWheelContext);\n\n let {isDisabled} = props;\n let size = props.size && dimensionValue(props.size);\n let {styleProps} = useStyleProps(props);\n\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 '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 containerRef={containerRef}\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"}
@@ -82,7 +82,6 @@ function $3aac1c27203f04b5$var$ColorWheel(props, ref) {
82
82
  style: {
83
83
  ...styleProps.style,
84
84
  // Workaround around https://github.com/adobe/spectrum-css/issues/1032
85
- // @ts-ignore
86
85
  'width': size,
87
86
  'height': size
88
87
  }
@@ -82,7 +82,6 @@ function $3aac1c27203f04b5$var$ColorWheel(props, ref) {
82
82
  style: {
83
83
  ...styleProps.style,
84
84
  // Workaround around https://github.com/adobe/spectrum-css/issues/1032
85
- // @ts-ignore
86
85
  'width': size,
87
86
  'height': size
88
87
  }
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;;AAeD,MAAM,wCAAkB;AAExB,SAAS,iCAAW,KAA8B,EAAE,GAAiC;IACnF,QAAQ,CAAA,GAAA,uBAAe,EAAE;IACzB,IAAI,WAAW,CAAA,GAAA,aAAK,EAAE;IACtB,IAAI,eAAe,CAAA,GAAA,sBAAc,EAAE,KAAK;IACxC,CAAC,OAAO,aAAa,GAAG,CAAA,GAAA,sBAAc,EAAE,OAAO,cAAc,CAAA,GAAA,wBAAgB;IAE7E,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;IAGjC,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,cAAc;QACd,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 {ColorWheelContext, useContextProps} from 'react-aria-components';\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 let inputRef = useRef(null);\n let containerRef = useFocusableRef(ref, inputRef);\n [props, containerRef] = useContextProps(props, containerRef, ColorWheelContext);\n\n let {isDisabled} = props;\n let size = props.size && dimensionValue(props.size);\n let {styleProps} = useStyleProps(props);\n\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 containerRef={containerRef}\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"}
1
+ {"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;;AAeD,MAAM,wCAAkB;AAExB,SAAS,iCAAW,KAA8B,EAAE,GAAiC;IACnF,QAAQ,CAAA,GAAA,uBAAe,EAAE;IACzB,IAAI,WAAW,CAAA,GAAA,aAAK,EAAE;IACtB,IAAI,eAAe,CAAA,GAAA,sBAAc,EAAE,KAAK;IACxC,CAAC,OAAO,aAAa,GAAG,CAAA,GAAA,sBAAc,EAAE,OAAO,cAAc,CAAA,GAAA,wBAAgB;IAE7E,IAAI,cAAC,UAAU,EAAC,GAA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,iBAAS,EAAE,CAAA,GAAA,4DAAK,GAAG;sBACnD,gCAAC,CAAA,GAAA,wCAAS;QACR,OAAO,MAAM,eAAe;QAC5B,WAAW;QACX,YAAY;QACZ,YAAY,MAAM,UAAU;QAC5B,cAAc;QACd,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 {ColorWheelContext, useContextProps} from 'react-aria-components';\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 let inputRef = useRef(null);\n let containerRef = useFocusableRef(ref, inputRef);\n [props, containerRef] = useContextProps(props, containerRef, ColorWheelContext);\n\n let {isDisabled} = props;\n let size = props.size && dimensionValue(props.size);\n let {styleProps} = useStyleProps(props);\n\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 '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 containerRef={containerRef}\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"}
@@ -1 +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"}
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,2CAAyD;AAC7G,4CAAgC,CAAC,kBAAkB,CAAC;AACpD,4CAA+B,CAAC,kBAAkB,EAAE,2CAAyD;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"}
@@ -1 +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.module.js.map"}
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,2CAAyD;AAC7G,4CAAgC,CAAC,kBAAkB,CAAC;AACpD,4CAA+B,CAAC,kBAAkB,EAAE,2CAAyD;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.module.js.map"}
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AAdA,0CAAmC,CAAC,qBAAqB,CAAC;AAC1D,4CAAgC,CAAC,kBAAkB,CAAC;AACpD,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAA0B,CAAC,YAAY,CAAC;AACxC,4CAAsD,CAAC,wCAAwC,CAAC;AAChG,4CAAyC,CAAC,2BAA2B,CAAC;AACtE,4CAAmD,CAAC,qCAAqC,CAAC;AAC1F,4CAA+D,CAAC,iDAAiD,CAAC;AAClH,4CAA6D,CAAC,+CAA+C,CAAC;AAC9G,4CAAwD,CAAC,0CAA0C,CAAC;AACpG,4CAAgD,CAAC,kCAAkC,CAAC;AACpF,4CAAwD,CAAC,0CAA0C,CAAC;AACpG,2CAAgD,CAAC,mCAAmC,EAAE,0CAAoD,CAAC;AAC3I,4CAAoD,CAAC,sCAAsC,CAAC;AAC5F,4CAA0B,CAAC,YAAY,CAAC","sources":["packages/@adobe/spectrum-css-temp/components/colorslider/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":"colorslider_vars_css.main.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AAdA,0CAAmC,CAAC,qBAAqB,CAAC;AAC1D,4CAAgC,CAAC,kBAAkB,CAAC;AACpD,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAA0B,CAAC,YAAY,CAAC;AACxC,4CAAsD,CAAC,wCAAwC,CAAC;AAChG,4CAAyC,CAAC,2BAA2B,CAAC;AACtE,4CAAmD,CAAC,qCAAqC,CAAC;AAC1F,4CAA+D,CAAC,iDAAiD,CAAC;AAClH,4CAA6D,CAAC,+CAA+C,CAAC;AAC9G,4CAAwD,CAAC,0CAA0C,CAAC;AACpG,4CAAgD,CAAC,kCAAkC,CAAC;AACpF,4CAAwD,CAAC,0CAA0C,CAAC;AACpG,2CAAgD,CAAC,mCAAmC,EAAE,2CAAqD;AAC3I,4CAAoD,CAAC,sCAAsC,CAAC;AAC5F,4CAA0B,CAAC,YAAY,CAAC","sources":["packages/@adobe/spectrum-css-temp/components/colorslider/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":"colorslider_vars_css.main.js.map"}
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AAdA,0CAAmC,CAAC,qBAAqB,CAAC;AAC1D,4CAAgC,CAAC,kBAAkB,CAAC;AACpD,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAA0B,CAAC,YAAY,CAAC;AACxC,4CAAsD,CAAC,wCAAwC,CAAC;AAChG,4CAAyC,CAAC,2BAA2B,CAAC;AACtE,4CAAmD,CAAC,qCAAqC,CAAC;AAC1F,4CAA+D,CAAC,iDAAiD,CAAC;AAClH,4CAA6D,CAAC,+CAA+C,CAAC;AAC9G,4CAAwD,CAAC,0CAA0C,CAAC;AACpG,4CAAgD,CAAC,kCAAkC,CAAC;AACpF,4CAAwD,CAAC,0CAA0C,CAAC;AACpG,2CAAgD,CAAC,mCAAmC,EAAE,0CAAoD,CAAC;AAC3I,4CAAoD,CAAC,sCAAsC,CAAC;AAC5F,4CAA0B,CAAC,YAAY,CAAC","sources":["packages/@adobe/spectrum-css-temp/components/colorslider/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":"colorslider_vars_css.module.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AAdA,0CAAmC,CAAC,qBAAqB,CAAC;AAC1D,4CAAgC,CAAC,kBAAkB,CAAC;AACpD,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAA0B,CAAC,YAAY,CAAC;AACxC,4CAAsD,CAAC,wCAAwC,CAAC;AAChG,4CAAyC,CAAC,2BAA2B,CAAC;AACtE,4CAAmD,CAAC,qCAAqC,CAAC;AAC1F,4CAA+D,CAAC,iDAAiD,CAAC;AAClH,4CAA6D,CAAC,+CAA+C,CAAC;AAC9G,4CAAwD,CAAC,0CAA0C,CAAC;AACpG,4CAAgD,CAAC,kCAAkC,CAAC;AACpF,4CAAwD,CAAC,0CAA0C,CAAC;AACpG,2CAAgD,CAAC,mCAAmC,EAAE,2CAAqD;AAC3I,4CAAoD,CAAC,sCAAsC,CAAC;AAC5F,4CAA0B,CAAC,YAAY,CAAC","sources":["packages/@adobe/spectrum-css-temp/components/colorslider/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":"colorslider_vars_css.module.js.map"}
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;AAAA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AARA,4CAAgC,CAAC,kBAAkB,CAAC;AACpD,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAsD,CAAC,wCAAwC,CAAC;AAChG,4CAAwC,CAAC,0BAA0B,CAAC;AACpE,4CAAiD,CAAC,mCAAmC,CAAC;AACtF,4CAA+C,CAAC,iCAAiC,CAAC;AAClF,2CAAgD,CAAC,kCAAkC,CAAC;AACpF,2CAA+C,CAAC,kCAAkC,EAAE,0CAAoD,CAAC","sources":["packages/@adobe/spectrum-css-temp/components/colorwheel/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":"colorwheel_vars_css.main.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;AAAA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AARA,4CAAgC,CAAC,kBAAkB,CAAC;AACpD,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAsD,CAAC,wCAAwC,CAAC;AAChG,4CAAwC,CAAC,0BAA0B,CAAC;AACpE,4CAAiD,CAAC,mCAAmC,CAAC;AACtF,4CAA+C,CAAC,iCAAiC,CAAC;AAClF,2CAAgD,CAAC,kCAAkC,CAAC;AACpF,2CAA+C,CAAC,kCAAkC,EAAE,2CAAqD","sources":["packages/@adobe/spectrum-css-temp/components/colorwheel/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":"colorwheel_vars_css.main.js.map"}
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;AAAA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AARA,4CAAgC,CAAC,kBAAkB,CAAC;AACpD,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAsD,CAAC,wCAAwC,CAAC;AAChG,4CAAwC,CAAC,0BAA0B,CAAC;AACpE,4CAAiD,CAAC,mCAAmC,CAAC;AACtF,4CAA+C,CAAC,iCAAiC,CAAC;AAClF,2CAAgD,CAAC,kCAAkC,CAAC;AACpF,2CAA+C,CAAC,kCAAkC,EAAE,0CAAoD,CAAC","sources":["packages/@adobe/spectrum-css-temp/components/colorwheel/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":"colorwheel_vars_css.module.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;AAAA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AARA,4CAAgC,CAAC,kBAAkB,CAAC;AACpD,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAsD,CAAC,wCAAwC,CAAC;AAChG,4CAAwC,CAAC,0BAA0B,CAAC;AACpE,4CAAiD,CAAC,mCAAmC,CAAC;AACtF,4CAA+C,CAAC,iCAAiC,CAAC;AAClF,2CAAgD,CAAC,kCAAkC,CAAC;AACpF,2CAA+C,CAAC,kCAAkC,EAAE,2CAAqD","sources":["packages/@adobe/spectrum-css-temp/components/colorwheel/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":"colorwheel_vars_css.module.js.map"}
@@ -1 +1 @@
1
- {"mappings":";;;;;;ACqFA;;GAEG;AACH,OAAA,IAAI,WAA4C,CAAC,KAAK,EAAE,sBAAsB,GAAG;IAAC,GAAG,CAAC,EAAE,aAAa,cAAc,CAAC,CAAA;CAAC,KAAK,YAAY,CAAC;ACqBvI;;GAEG;AACH,OAAA,IAAI,6IAA0C,CAAC;AC2B/C;;GAEG;AACH,OAAA,IAAI,+IAA4C,CAAC;ACtGjD;;GAEG;AACH,OAAA,MAAM,0HAA0C,CAAC;ACvBjD,yCAA0C,SAAQ,oBAAoB,EAAE,UAAU;IAChF;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;IAC9B;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,MAAM,CAAA;CACvC;AAkED;;GAEG;AACH,OAAA,IAAI,yHAAsC,CAAC;AC9E3C,yCAA0C,SAAQ,UAAU,MAAM,GAAG,KAAK,EAAE,KAAK,CAAC,EAAE,iBAAiB;IACnG,2CAA2C;IAC3C,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,wEAAwE;IACxE,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;IAC9B;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,MAAM,CAAA;CACvC;AAiFD;;GAEG;AACH,OAAA,IAAI,qJAA4C,CAAC;AC3GjD;IACE,sEAAsE;IACtE,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B;AAyCD;;GAEG;AACH,OAAA,IAAI,yHAA4C,CAAC;ACzCjD,+CAAgD,SAAQ,UAAU,MAAM,GAAG,OAAK,EAAE,OAAK,CAAC,EAAE,UAAU;IAClG,sDAAsD;IACtD,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;IAC7C;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;IAC9B;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAAA;CACvC;AAmCD;;GAEG;AACH,OAAA,IAAI,qIAAkD,CAAC;ACvDvD,OAAO,EAAC,UAAU,EAAE,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AAClE,YAAY,EAAC,sBAAsB,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,uBAAuB,EAAC,MAAM,oBAAoB,CAAC;AAK3I,YAAY,EAAC,KAAK,EAAE,UAAU,EAAE,WAAW,EAAC,MAAM,oBAAoB,CAAC","sources":["packages/@react-spectrum/color/src/packages/@react-spectrum/color/src/ColorThumb.tsx","packages/@react-spectrum/color/src/packages/@react-spectrum/color/src/ColorArea.tsx","packages/@react-spectrum/color/src/packages/@react-spectrum/color/src/ColorWheel.tsx","packages/@react-spectrum/color/src/packages/@react-spectrum/color/src/ColorSlider.tsx","packages/@react-spectrum/color/src/packages/@react-spectrum/color/src/ColorField.tsx","packages/@react-spectrum/color/src/packages/@react-spectrum/color/src/ColorSwatch.tsx","packages/@react-spectrum/color/src/packages/@react-spectrum/color/src/ColorPicker.tsx","packages/@react-spectrum/color/src/packages/@react-spectrum/color/src/ColorEditor.tsx","packages/@react-spectrum/color/src/packages/@react-spectrum/color/src/ColorSwatchPicker.tsx","packages/@react-spectrum/color/src/packages/@react-spectrum/color/src/index.ts","packages/@react-spectrum/color/src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,"/*\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/// <reference types=\"css-module-types\" />\nexport {ColorArea} from './ColorArea';\nexport {ColorWheel} from './ColorWheel';\nexport {ColorSlider} from './ColorSlider';\nexport {ColorField} from './ColorField';\nexport {ColorSwatch} from './ColorSwatch';\nexport {ColorPicker} from './ColorPicker';\nexport {ColorEditor} from './ColorEditor';\nexport {ColorSwatchPicker} from './ColorSwatchPicker';\nexport {parseColor, getColorChannels} from '@react-stately/color';\nexport type {SpectrumColorAreaProps, SpectrumColorFieldProps, SpectrumColorSliderProps, SpectrumColorWheelProps} from '@react-types/color';\nexport type {SpectrumColorSwatchProps} from './ColorSwatch';\nexport type {SpectrumColorPickerProps} from './ColorPicker';\nexport type {SpectrumColorEditorProps} from './ColorEditor';\nexport type {SpectrumColorSwatchPickerProps} from './ColorSwatchPicker';\nexport type {Color, ColorSpace, ColorFormat} from '@react-types/color';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
1
+ {"mappings":";;;;;;ACqFA;;GAEG;AACH,OAAA,IAAI,WAA4C,CAAC,KAAK,EAAE,sBAAsB,GAAG;IAAC,GAAG,CAAC,EAAE,aAAa,cAAc,CAAC,CAAA;CAAC,KAAK,YAAY,CAAC;ACoBvI;;GAEG;AACH,OAAA,IAAI,6IAA0C,CAAC;AC4B/C;;GAEG;AACH,OAAA,IAAI,+IAA4C,CAAC;ACtGjD;;GAEG;AACH,OAAA,MAAM,0HAA0C,CAAC;ACvBjD,yCAA0C,SAAQ,oBAAoB,EAAE,UAAU;IAChF;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;IAC9B;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,G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B,CAAC","sources":["packages/@react-spectrum/color/src/packages/@react-spectrum/color/src/ColorThumb.tsx","packages/@react-spectrum/color/src/packages/@react-spectrum/color/src/ColorArea.tsx","packages/@react-spectrum/color/src/packages/@react-spectrum/color/src/ColorWheel.tsx","packages/@react-spectrum/color/src/packages/@react-spectrum/color/src/ColorSlider.tsx","packages/@react-spectrum/color/src/packages/@react-spectrum/color/src/ColorField.tsx","packages/@react-spectrum/color/src/packages/@react-spectrum/color/src/ColorSwatch.tsx","packages/@react-spectrum/color/src/packages/@react-spectrum/color/src/ColorPicker.tsx","packages/@react-spectrum/color/src/packages/@react-spectrum/color/src/ColorEditor.tsx","packages/@react-spectrum/color/src/packages/@react-spectrum/color/src/ColorSwatchPicker.tsx","packages/@react-spectrum/color/src/packages/@react-spectrum/color/src/index.ts","packages/@react-spectrum/color/src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,"/*\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/// <reference types=\"css-module-types\" />\nexport {ColorArea} from './ColorArea';\nexport {ColorWheel} from './ColorWheel';\nexport {ColorSlider} from './ColorSlider';\nexport {ColorField} from './ColorField';\nexport {ColorSwatch} from './ColorSwatch';\nexport {ColorPicker} from './ColorPicker';\nexport {ColorEditor} from './ColorEditor';\nexport {ColorSwatchPicker} from './ColorSwatchPicker';\nexport {parseColor, getColorChannels} from '@react-stately/color';\nexport type {SpectrumColorAreaProps, SpectrumColorFieldProps, SpectrumColorSliderProps, SpectrumColorWheelProps} from '@react-types/color';\nexport type {SpectrumColorSwatchProps} from './ColorSwatch';\nexport type {SpectrumColorPickerProps} from './ColorPicker';\nexport type {SpectrumColorEditorProps} from './ColorEditor';\nexport type {SpectrumColorSwatchPickerProps} from './ColorSwatchPicker';\nexport type {Color, ColorSpace, ColorFormat} from '@react-types/color';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-spectrum/color",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
@@ -36,36 +36,37 @@
36
36
  "url": "https://github.com/adobe/react-spectrum"
37
37
  },
38
38
  "dependencies": {
39
- "@react-aria/color": "^3.0.0",
40
- "@react-aria/focus": "^3.18.3",
41
- "@react-aria/i18n": "^3.12.3",
42
- "@react-aria/interactions": "^3.22.3",
43
- "@react-aria/utils": "^3.25.3",
44
- "@react-spectrum/dialog": "^3.8.14",
45
- "@react-spectrum/form": "^3.7.9",
46
- "@react-spectrum/label": "^3.16.9",
47
- "@react-spectrum/overlays": "^5.6.4",
48
- "@react-spectrum/picker": "^3.15.2",
49
- "@react-spectrum/textfield": "^3.12.5",
50
- "@react-spectrum/utils": "^3.11.11",
51
- "@react-spectrum/view": "^3.6.13",
52
- "@react-stately/color": "^3.8.0",
53
- "@react-types/color": "^3.0.0",
54
- "@react-types/shared": "^3.25.0",
55
- "@react-types/textfield": "^3.9.7",
39
+ "@react-aria/color": "^3.0.2",
40
+ "@react-aria/focus": "^3.19.0",
41
+ "@react-aria/i18n": "^3.12.4",
42
+ "@react-aria/interactions": "^3.22.5",
43
+ "@react-aria/utils": "^3.26.0",
44
+ "@react-spectrum/dialog": "^3.8.16",
45
+ "@react-spectrum/form": "^3.7.10",
46
+ "@react-spectrum/label": "^3.16.10",
47
+ "@react-spectrum/overlays": "^5.7.0",
48
+ "@react-spectrum/picker": "^3.15.4",
49
+ "@react-spectrum/textfield": "^3.12.7",
50
+ "@react-spectrum/utils": "^3.12.0",
51
+ "@react-spectrum/view": "^3.6.14",
52
+ "@react-stately/color": "^3.8.1",
53
+ "@react-types/color": "^3.0.1",
54
+ "@react-types/shared": "^3.26.0",
55
+ "@react-types/textfield": "^3.10.0",
56
56
  "@swc/helpers": "^0.5.0",
57
- "react-aria-components": "^1.4.0"
57
+ "react-aria-components": "^1.5.0"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@adobe/spectrum-css-temp": "3.0.0-alpha.1",
61
- "@react-spectrum/style-macro-s1": "3.0.0-alpha.1"
61
+ "@react-spectrum/style-macro-s1": "3.0.0-alpha.2"
62
62
  },
63
63
  "peerDependencies": {
64
64
  "@react-spectrum/provider": "^3.0.0",
65
- "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0",
66
- "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0"
65
+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
66
+ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
67
67
  },
68
68
  "publishConfig": {
69
69
  "access": "public"
70
- }
71
- }
70
+ },
71
+ "gitHead": "71f0ef23053f9e03ee7e97df736e8b083e006849"
72
+ }
@@ -88,7 +88,6 @@ function ColorWheel(props: SpectrumColorWheelProps, ref: FocusableRef<HTMLDivEle
88
88
  style={{
89
89
  ...styleProps.style,
90
90
  // Workaround around https://github.com/adobe/spectrum-css/issues/1032
91
- // @ts-ignore
92
91
  'width': size,
93
92
  'height': size
94
93
  }}>
@@ -1,20 +0,0 @@
1
- @layer a {
2
- ._Zb {
3
- flex-direction: column;
4
- }
5
-
6
- ._Sd {
7
- display: flex;
8
- }
9
-
10
- .le {
11
- row-gap: 1rem;
12
- }
13
-
14
- .me {
15
- column-gap: 1rem;
16
- }
17
- }
18
-
19
- @layer b;
20
- /*# sourceMappingURL=ColorEditor.32e497e8.css.map */
@@ -1 +0,0 @@
1
- {"mappings":"ACAA;EASE;;;;EANA;;;;EAMA;;;;EAMA;;;;;AAfF","sources":["831a302ce8de66a2","packages/@react-spectrum/color/src/ColorEditor.tsx"],"sourcesContent":["@import \"61db59ad802e5cd4\";\n@import \"4bcaf5321f340d0a\";\n@import \"76e53872e9d29f42\";\n","@layer a, b;\n\n@layer a {\n ._Sd {\n display: flex;\n }\n}\n\n@layer a {\n ._Zb {\n flex-direction: column;\n }\n}\n\n@layer a {\n .le {\n row-gap: 1rem;\n }\n}\n\n@layer a {\n .me {\n column-gap: 1rem;\n }\n}\n\n"],"names":[],"version":3,"file":"ColorEditor.32e497e8.css.map"}