@react-spectrum/color 3.0.0-nightly.4564 → 3.0.0-nightly.4578

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 (96) hide show
  1. package/dist/ColorArea.main.js +11 -10
  2. package/dist/ColorArea.main.js.map +1 -1
  3. package/dist/ColorArea.mjs +12 -11
  4. package/dist/ColorArea.module.js +12 -11
  5. package/dist/ColorArea.module.js.map +1 -1
  6. package/dist/ColorEditor.32e497e8.css +20 -0
  7. package/dist/ColorEditor.32e497e8.css.map +1 -0
  8. package/dist/ColorEditor.main.js +116 -0
  9. package/dist/ColorEditor.main.js.map +1 -0
  10. package/dist/ColorEditor.mjs +111 -0
  11. package/dist/ColorEditor.module.js +111 -0
  12. package/dist/ColorEditor.module.js.map +1 -0
  13. package/dist/ColorField.main.js +44 -6
  14. package/dist/ColorField.main.js.map +1 -1
  15. package/dist/ColorField.mjs +46 -8
  16. package/dist/ColorField.module.js +46 -8
  17. package/dist/ColorField.module.js.map +1 -1
  18. package/dist/ColorPicker.ab9f47c0.css +204 -0
  19. package/dist/ColorPicker.ab9f47c0.css.map +1 -0
  20. package/dist/ColorPicker.main.js +125 -0
  21. package/dist/ColorPicker.main.js.map +1 -0
  22. package/dist/ColorPicker.mjs +116 -0
  23. package/dist/ColorPicker.module.js +116 -0
  24. package/dist/ColorPicker.module.js.map +1 -0
  25. package/dist/ColorSlider.main.js +8 -4
  26. package/dist/ColorSlider.main.js.map +1 -1
  27. package/dist/ColorSlider.mjs +9 -5
  28. package/dist/ColorSlider.module.js +9 -5
  29. package/dist/ColorSlider.module.js.map +1 -1
  30. package/dist/ColorSwatch.f6e6f811.css +260 -0
  31. package/dist/ColorSwatch.f6e6f811.css.map +1 -0
  32. package/dist/ColorSwatch.main.js +94 -0
  33. package/dist/ColorSwatch.main.js.map +1 -0
  34. package/dist/ColorSwatch.mjs +84 -0
  35. package/dist/ColorSwatch.module.js +84 -0
  36. package/dist/ColorSwatch.module.js.map +1 -0
  37. package/dist/ColorSwatchPicker.1575be06.css +356 -0
  38. package/dist/ColorSwatchPicker.1575be06.css.map +1 -0
  39. package/dist/ColorSwatchPicker.main.js +115 -0
  40. package/dist/ColorSwatchPicker.main.js.map +1 -0
  41. package/dist/ColorSwatchPicker.mjs +106 -0
  42. package/dist/ColorSwatchPicker.module.js +106 -0
  43. package/dist/ColorSwatchPicker.module.js.map +1 -0
  44. package/dist/ColorThumb.main.js +57 -7
  45. package/dist/ColorThumb.main.js.map +1 -1
  46. package/dist/ColorThumb.mjs +59 -9
  47. package/dist/ColorThumb.module.js +59 -9
  48. package/dist/ColorThumb.module.js.map +1 -1
  49. package/dist/ColorWheel.main.js +6 -2
  50. package/dist/ColorWheel.main.js.map +1 -1
  51. package/dist/ColorWheel.mjs +7 -3
  52. package/dist/ColorWheel.module.js +7 -3
  53. package/dist/ColorWheel.module.js.map +1 -1
  54. package/dist/colorarea_vars_css.main.js +0 -3
  55. package/dist/colorarea_vars_css.main.js.map +1 -1
  56. package/dist/colorarea_vars_css.mjs +0 -3
  57. package/dist/colorarea_vars_css.module.js +0 -3
  58. package/dist/colorarea_vars_css.module.js.map +1 -1
  59. package/dist/en-US.main.js +10 -0
  60. package/dist/en-US.main.js.map +1 -0
  61. package/dist/en-US.mjs +12 -0
  62. package/dist/en-US.module.js +12 -0
  63. package/dist/en-US.module.js.map +1 -0
  64. package/dist/import.mjs +11 -1
  65. package/dist/intlStrings.main.js +9 -0
  66. package/dist/intlStrings.main.js.map +1 -0
  67. package/dist/intlStrings.mjs +11 -0
  68. package/dist/intlStrings.module.js +11 -0
  69. package/dist/intlStrings.module.js.map +1 -0
  70. package/dist/main.js +16 -0
  71. package/dist/main.js.map +1 -1
  72. package/dist/module.js +11 -1
  73. package/dist/module.js.map +1 -1
  74. package/dist/types.d.ts +75 -4
  75. package/dist/types.d.ts.map +1 -1
  76. package/dist/{vars.08ba4b4c.css → vars.53b417c1.css} +2 -3
  77. package/dist/vars.53b417c1.css.map +1 -0
  78. package/dist/{vars.6f3d3943.css → vars.6fa9fa04.css} +6 -18
  79. package/dist/vars.6fa9fa04.css.map +1 -0
  80. package/dist/{vars.571f903e.css → vars.aa07b6d2.css} +2 -2
  81. package/dist/{vars.571f903e.css.map → vars.aa07b6d2.css.map} +1 -1
  82. package/dist/{vars.ef2c01b8.css → vars.cc682729.css} +4 -4
  83. package/dist/{vars.ef2c01b8.css.map → vars.cc682729.css.map} +1 -1
  84. package/package.json +23 -17
  85. package/src/ColorArea.tsx +7 -6
  86. package/src/ColorEditor.tsx +63 -0
  87. package/src/ColorField.tsx +67 -14
  88. package/src/ColorPicker.tsx +122 -0
  89. package/src/ColorSlider.tsx +6 -4
  90. package/src/ColorSwatch.tsx +102 -0
  91. package/src/ColorSwatchPicker.tsx +118 -0
  92. package/src/ColorThumb.tsx +72 -25
  93. package/src/ColorWheel.tsx +5 -2
  94. package/src/index.ts +10 -0
  95. package/dist/vars.08ba4b4c.css.map +0 -1
  96. package/dist/vars.6f3d3943.css.map +0 -1
@@ -1,7 +1,8 @@
1
1
  import {ColorThumb as $3a90e89d07d7bbd5$export$a3cc47cee1c1ccc} from "./ColorThumb.module.js";
2
2
  import "./vars.ac235018.css";
3
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";
4
+ import {useFocusableRef as $bv4AR$useFocusableRef, dimensionValue as $bv4AR$dimensionValue, useStyleProps as $bv4AR$useStyleProps, classNames as $bv4AR$classNames} from "@react-spectrum/utils";
5
+ import {useContextProps as $bv4AR$useContextProps, ColorWheelContext as $bv4AR$ColorWheelContext} from "react-aria-components";
5
6
  import $bv4AR$react, {useRef as $bv4AR$useRef, useState as $bv4AR$useState, useCallback as $bv4AR$useCallback, useEffect as $bv4AR$useEffect} from "react";
6
7
  import {useColorWheel as $bv4AR$useColorWheel} from "@react-aria/color";
7
8
  import {useColorWheelState as $bv4AR$useColorWheelState} from "@react-stately/color";
@@ -32,14 +33,16 @@ function $parcel$interopDefault(a) {
32
33
 
33
34
 
34
35
 
36
+
35
37
  const $3aac1c27203f04b5$var$WHEEL_THICKNESS = 24;
36
38
  function $3aac1c27203f04b5$var$ColorWheel(props, ref) {
37
39
  props = (0, $bv4AR$useProviderProps)(props);
40
+ let inputRef = (0, $bv4AR$useRef)(null);
41
+ let containerRef = (0, $bv4AR$useFocusableRef)(ref, inputRef);
42
+ [props, containerRef] = (0, $bv4AR$useContextProps)(props, containerRef, (0, $bv4AR$ColorWheelContext));
38
43
  let { isDisabled: isDisabled } = props;
39
44
  let size = props.size && (0, $bv4AR$dimensionValue)(props.size);
40
45
  let { styleProps: styleProps } = (0, $bv4AR$useStyleProps)(props);
41
- let inputRef = (0, $bv4AR$useRef)(null);
42
- let containerRef = (0, $bv4AR$useFocusableRef)(ref, inputRef);
43
46
  let [wheelRadius, setWheelRadius] = (0, $bv4AR$useState)(0);
44
47
  let [wheelThickness, setWheelThickness] = (0, $bv4AR$useState)($3aac1c27203f04b5$var$WHEEL_THICKNESS);
45
48
  let resizeHandler = (0, $bv4AR$useCallback)(()=>{
@@ -91,6 +94,7 @@ function $3aac1c27203f04b5$var$ColorWheel(props, ref) {
91
94
  isFocused: isFocusVisible,
92
95
  isDisabled: isDisabled,
93
96
  isDragging: state.isDragging,
97
+ containerRef: containerRef,
94
98
  className: (0, $bv4AR$classNames)((0, ($parcel$interopDefault($bv4AR$colorwheel_vars_cssmodulejs))), "spectrum-ColorWheel-handle"),
95
99
  ...thumbProps
96
100
  }, /*#__PURE__*/ (0, $bv4AR$react).createElement("input", {
@@ -1 +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"}
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"}
@@ -7,7 +7,6 @@ $parcel$export(module.exports, "focus-ring", () => $d4b4e0a63f9ca8c1$export$f39a
7
7
  $parcel$export(module.exports, "is-disabled", () => $d4b4e0a63f9ca8c1$export$d35bc1e505d1ebbf, (v) => $d4b4e0a63f9ca8c1$export$d35bc1e505d1ebbf = v);
8
8
  $parcel$export(module.exports, "is-focused", () => $d4b4e0a63f9ca8c1$export$e7dc768d35940237, (v) => $d4b4e0a63f9ca8c1$export$e7dc768d35940237 = v);
9
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
10
  $parcel$export(module.exports, "spectrum-ColorArea-handle", () => $d4b4e0a63f9ca8c1$export$d8addbd273c4e00, (v) => $d4b4e0a63f9ca8c1$export$d8addbd273c4e00 = v);
12
11
  $parcel$export(module.exports, "spectrum-ColorArea-slider", () => $d4b4e0a63f9ca8c1$export$7d727cacaa7cea1e, (v) => $d4b4e0a63f9ca8c1$export$7d727cacaa7cea1e = v);
13
12
  $parcel$export(module.exports, "spectrum-ColorHandle-color", () => $d4b4e0a63f9ca8c1$export$afe4c366ed4e659c, (v) => $d4b4e0a63f9ca8c1$export$afe4c366ed4e659c = v);
@@ -15,7 +14,6 @@ var $d4b4e0a63f9ca8c1$export$f39a09f249340e2a;
15
14
  var $d4b4e0a63f9ca8c1$export$d35bc1e505d1ebbf;
16
15
  var $d4b4e0a63f9ca8c1$export$e7dc768d35940237;
17
16
  var $d4b4e0a63f9ca8c1$export$bb6257a55a3c1efc;
18
- var $d4b4e0a63f9ca8c1$export$40686f4fcb8a9916;
19
17
  var $d4b4e0a63f9ca8c1$export$d8addbd273c4e00;
20
18
  var $d4b4e0a63f9ca8c1$export$7d727cacaa7cea1e;
21
19
  var $d4b4e0a63f9ca8c1$export$afe4c366ed4e659c;
@@ -23,7 +21,6 @@ $d4b4e0a63f9ca8c1$export$f39a09f249340e2a = `lm1DSq_focus-ring`;
23
21
  $d4b4e0a63f9ca8c1$export$d35bc1e505d1ebbf = `lm1DSq_is-disabled`;
24
22
  $d4b4e0a63f9ca8c1$export$e7dc768d35940237 = `lm1DSq_is-focused`;
25
23
  $d4b4e0a63f9ca8c1$export$bb6257a55a3c1efc = `lm1DSq_spectrum-ColorArea`;
26
- $d4b4e0a63f9ca8c1$export$40686f4fcb8a9916 = `lm1DSq_spectrum-ColorArea-gradient`;
27
24
  $d4b4e0a63f9ca8c1$export$d8addbd273c4e00 = `lm1DSq_spectrum-ColorArea-handle`;
28
25
  $d4b4e0a63f9ca8c1$export$7d727cacaa7cea1e = `lm1DSq_spectrum-ColorArea-slider`;
29
26
  $d4b4e0a63f9ca8c1$export$afe4c366ed4e659c = `lm1DSq_spectrum-ColorHandle-color`;
@@ -1 +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"}
1
+ {"mappings":";;;;;;;;;;;;AAAA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AANA,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAgC,CAAC,kBAAkB,CAAC;AACpD,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAuC,CAAC,yBAAyB,CAAC;AAClE,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"}
@@ -8,7 +8,6 @@ $parcel$export($7d12200010f0192e$exports, "focus-ring", () => $7d12200010f0192e$
8
8
  $parcel$export($7d12200010f0192e$exports, "is-disabled", () => $7d12200010f0192e$export$d35bc1e505d1ebbf, (v) => $7d12200010f0192e$export$d35bc1e505d1ebbf = v);
9
9
  $parcel$export($7d12200010f0192e$exports, "is-focused", () => $7d12200010f0192e$export$e7dc768d35940237, (v) => $7d12200010f0192e$export$e7dc768d35940237 = v);
10
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
11
  $parcel$export($7d12200010f0192e$exports, "spectrum-ColorArea-handle", () => $7d12200010f0192e$export$d8addbd273c4e00, (v) => $7d12200010f0192e$export$d8addbd273c4e00 = v);
13
12
  $parcel$export($7d12200010f0192e$exports, "spectrum-ColorArea-slider", () => $7d12200010f0192e$export$7d727cacaa7cea1e, (v) => $7d12200010f0192e$export$7d727cacaa7cea1e = v);
14
13
  $parcel$export($7d12200010f0192e$exports, "spectrum-ColorHandle-color", () => $7d12200010f0192e$export$afe4c366ed4e659c, (v) => $7d12200010f0192e$export$afe4c366ed4e659c = v);
@@ -16,7 +15,6 @@ var $7d12200010f0192e$export$f39a09f249340e2a;
16
15
  var $7d12200010f0192e$export$d35bc1e505d1ebbf;
17
16
  var $7d12200010f0192e$export$e7dc768d35940237;
18
17
  var $7d12200010f0192e$export$bb6257a55a3c1efc;
19
- var $7d12200010f0192e$export$40686f4fcb8a9916;
20
18
  var $7d12200010f0192e$export$d8addbd273c4e00;
21
19
  var $7d12200010f0192e$export$7d727cacaa7cea1e;
22
20
  var $7d12200010f0192e$export$afe4c366ed4e659c;
@@ -24,7 +22,6 @@ $7d12200010f0192e$export$f39a09f249340e2a = `lm1DSq_focus-ring`;
24
22
  $7d12200010f0192e$export$d35bc1e505d1ebbf = `lm1DSq_is-disabled`;
25
23
  $7d12200010f0192e$export$e7dc768d35940237 = `lm1DSq_is-focused`;
26
24
  $7d12200010f0192e$export$bb6257a55a3c1efc = `lm1DSq_spectrum-ColorArea`;
27
- $7d12200010f0192e$export$40686f4fcb8a9916 = `lm1DSq_spectrum-ColorArea-gradient`;
28
25
  $7d12200010f0192e$export$d8addbd273c4e00 = `lm1DSq_spectrum-ColorArea-handle`;
29
26
  $7d12200010f0192e$export$7d727cacaa7cea1e = `lm1DSq_spectrum-ColorArea-slider`;
30
27
  $7d12200010f0192e$export$afe4c366ed4e659c = `lm1DSq_spectrum-ColorHandle-color`;
@@ -8,7 +8,6 @@ $parcel$export($7d12200010f0192e$exports, "focus-ring", () => $7d12200010f0192e$
8
8
  $parcel$export($7d12200010f0192e$exports, "is-disabled", () => $7d12200010f0192e$export$d35bc1e505d1ebbf, (v) => $7d12200010f0192e$export$d35bc1e505d1ebbf = v);
9
9
  $parcel$export($7d12200010f0192e$exports, "is-focused", () => $7d12200010f0192e$export$e7dc768d35940237, (v) => $7d12200010f0192e$export$e7dc768d35940237 = v);
10
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
11
  $parcel$export($7d12200010f0192e$exports, "spectrum-ColorArea-handle", () => $7d12200010f0192e$export$d8addbd273c4e00, (v) => $7d12200010f0192e$export$d8addbd273c4e00 = v);
13
12
  $parcel$export($7d12200010f0192e$exports, "spectrum-ColorArea-slider", () => $7d12200010f0192e$export$7d727cacaa7cea1e, (v) => $7d12200010f0192e$export$7d727cacaa7cea1e = v);
14
13
  $parcel$export($7d12200010f0192e$exports, "spectrum-ColorHandle-color", () => $7d12200010f0192e$export$afe4c366ed4e659c, (v) => $7d12200010f0192e$export$afe4c366ed4e659c = v);
@@ -16,7 +15,6 @@ var $7d12200010f0192e$export$f39a09f249340e2a;
16
15
  var $7d12200010f0192e$export$d35bc1e505d1ebbf;
17
16
  var $7d12200010f0192e$export$e7dc768d35940237;
18
17
  var $7d12200010f0192e$export$bb6257a55a3c1efc;
19
- var $7d12200010f0192e$export$40686f4fcb8a9916;
20
18
  var $7d12200010f0192e$export$d8addbd273c4e00;
21
19
  var $7d12200010f0192e$export$7d727cacaa7cea1e;
22
20
  var $7d12200010f0192e$export$afe4c366ed4e659c;
@@ -24,7 +22,6 @@ $7d12200010f0192e$export$f39a09f249340e2a = `lm1DSq_focus-ring`;
24
22
  $7d12200010f0192e$export$d35bc1e505d1ebbf = `lm1DSq_is-disabled`;
25
23
  $7d12200010f0192e$export$e7dc768d35940237 = `lm1DSq_is-focused`;
26
24
  $7d12200010f0192e$export$bb6257a55a3c1efc = `lm1DSq_spectrum-ColorArea`;
27
- $7d12200010f0192e$export$40686f4fcb8a9916 = `lm1DSq_spectrum-ColorArea-gradient`;
28
25
  $7d12200010f0192e$export$d8addbd273c4e00 = `lm1DSq_spectrum-ColorArea-handle`;
29
26
  $7d12200010f0192e$export$7d727cacaa7cea1e = `lm1DSq_spectrum-ColorArea-slider`;
30
27
  $7d12200010f0192e$export$afe4c366ed4e659c = `lm1DSq_spectrum-ColorHandle-color`;
@@ -1 +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"}
1
+ {"mappings":";;;;;;;;;;;;;AAAA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AANA,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAgC,CAAC,kBAAkB,CAAC;AACpD,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAuC,CAAC,yBAAyB,CAAC;AAClE,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,10 @@
1
+ module.exports = {
2
+ "colorFormat": `Color format`,
3
+ "hex": `Hex`,
4
+ "rgb": `RGB`,
5
+ "hsl": `HSL`,
6
+ "hsb": `HSB`
7
+ };
8
+
9
+
10
+ //# sourceMappingURL=en-US.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":"AAAA,iBAAiB;IAAG,eAAe,CAAC,YAAY,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC;IACZ,OAAO,CAAC,GAAG,CAAC;IACZ,OAAO,CAAC,GAAG,CAAC;IACZ,OAAO,CAAC,GAAG,CAAC;AACd","sources":["packages/@react-spectrum/color/intl/en-US.json"],"sourcesContent":["{\n \"colorFormat\": \"Color format\",\n \"hex\": \"Hex\",\n \"rgb\": \"RGB\",\n \"hsl\": \"HSL\",\n \"hsb\": \"HSB\"\n}\n"],"names":[],"version":3,"file":"en-US.main.js.map"}
package/dist/en-US.mjs ADDED
@@ -0,0 +1,12 @@
1
+ var $18286902f239e43e$exports = {};
2
+ $18286902f239e43e$exports = {
3
+ "colorFormat": `Color format`,
4
+ "hex": `Hex`,
5
+ "rgb": `RGB`,
6
+ "hsl": `HSL`,
7
+ "hsb": `HSB`
8
+ };
9
+
10
+
11
+ export {$18286902f239e43e$exports as default};
12
+ //# sourceMappingURL=en-US.mjs.map
@@ -0,0 +1,12 @@
1
+ var $18286902f239e43e$exports = {};
2
+ $18286902f239e43e$exports = {
3
+ "colorFormat": `Color format`,
4
+ "hex": `Hex`,
5
+ "rgb": `RGB`,
6
+ "hsl": `HSL`,
7
+ "hsb": `HSB`
8
+ };
9
+
10
+
11
+ export {$18286902f239e43e$exports as default};
12
+ //# sourceMappingURL=en-US.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";AAAA,4BAAiB;IAAG,eAAe,CAAC,YAAY,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC;IACZ,OAAO,CAAC,GAAG,CAAC;IACZ,OAAO,CAAC,GAAG,CAAC;IACZ,OAAO,CAAC,GAAG,CAAC;AACd","sources":["packages/@react-spectrum/color/intl/en-US.json"],"sourcesContent":["{\n \"colorFormat\": \"Color format\",\n \"hex\": \"Hex\",\n \"rgb\": \"RGB\",\n \"hsl\": \"HSL\",\n \"hsb\": \"HSB\"\n}\n"],"names":[],"version":3,"file":"en-US.module.js.map"}
package/dist/import.mjs CHANGED
@@ -2,6 +2,11 @@ import {ColorArea as $40046aa1a7ccb226$export$b2103f68a961418e} from "./ColorAre
2
2
  import {ColorWheel as $3aac1c27203f04b5$export$f80663f808113381} from "./ColorWheel.mjs";
3
3
  import {ColorSlider as $3870e4ce67ed7ee1$export$44fd664bcca5b6fb} from "./ColorSlider.mjs";
4
4
  import {ColorField as $0077d47e004328f0$export$b865d4358897bb17} from "./ColorField.mjs";
5
+ import {ColorSwatch as $d68786ae409fa722$export$cae13e90592f246a} from "./ColorSwatch.mjs";
6
+ import {ColorPicker as $d9654c66f3a7e70a$export$9feb1bc2e5f1ccb3} from "./ColorPicker.mjs";
7
+ import {ColorEditor as $49352c629f2d8349$export$5aa54fd21eb08d23} from "./ColorEditor.mjs";
8
+ import {ColorSwatchPicker as $4919bc07654f325c$export$b46792416e3d8515} from "./ColorSwatchPicker.mjs";
9
+ import {parseColor as $5cd3f969175c53c5$re_export$parseColor, getColorChannels as $5cd3f969175c53c5$re_export$getColorChannels} from "@react-stately/color";
5
10
 
6
11
  /*
7
12
  * Copyright 2020 Adobe. All rights reserved.
@@ -20,5 +25,10 @@ import {ColorField as $0077d47e004328f0$export$b865d4358897bb17} from "./ColorFi
20
25
 
21
26
 
22
27
 
23
- export {$40046aa1a7ccb226$export$b2103f68a961418e as ColorArea, $3aac1c27203f04b5$export$f80663f808113381 as ColorWheel, $3870e4ce67ed7ee1$export$44fd664bcca5b6fb as ColorSlider, $0077d47e004328f0$export$b865d4358897bb17 as ColorField};
28
+
29
+
30
+
31
+
32
+
33
+ export {$40046aa1a7ccb226$export$b2103f68a961418e as ColorArea, $3aac1c27203f04b5$export$f80663f808113381 as ColorWheel, $3870e4ce67ed7ee1$export$44fd664bcca5b6fb as ColorSlider, $0077d47e004328f0$export$b865d4358897bb17 as ColorField, $d68786ae409fa722$export$cae13e90592f246a as ColorSwatch, $d9654c66f3a7e70a$export$9feb1bc2e5f1ccb3 as ColorPicker, $49352c629f2d8349$export$5aa54fd21eb08d23 as ColorEditor, $4919bc07654f325c$export$b46792416e3d8515 as ColorSwatchPicker, $5cd3f969175c53c5$re_export$parseColor as parseColor, $5cd3f969175c53c5$re_export$getColorChannels as getColorChannels};
24
34
  //# sourceMappingURL=module.js.map
@@ -0,0 +1,9 @@
1
+ var $f8dd0c5b3aac7877$exports = require("./en-US.main.js");
2
+
3
+
4
+ module.exports = {
5
+ "en-US": $f8dd0c5b3aac7877$exports
6
+ };
7
+
8
+
9
+ //# sourceMappingURL=intlStrings.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;AACA,iBAAiB;IACf,SAAS;AACX","sources":["packages/@react-spectrum/color/src/*.js"],"sourcesContent":["const _temp0 = require(\"../intl/en-US.json\");\nmodule.exports = {\n \"en-US\": _temp0\n}"],"names":[],"version":3,"file":"intlStrings.main.js.map"}
@@ -0,0 +1,11 @@
1
+ import $9jGeN$enUSmodulejs from "./en-US.mjs";
2
+
3
+ var $2801e6aca0fbff37$exports = {};
4
+
5
+ $2801e6aca0fbff37$exports = {
6
+ "en-US": $9jGeN$enUSmodulejs
7
+ };
8
+
9
+
10
+ export {$2801e6aca0fbff37$exports as default};
11
+ //# sourceMappingURL=intlStrings.mjs.map
@@ -0,0 +1,11 @@
1
+ import $9jGeN$enUSmodulejs from "./en-US.module.js";
2
+
3
+ var $2801e6aca0fbff37$exports = {};
4
+
5
+ $2801e6aca0fbff37$exports = {
6
+ "en-US": $9jGeN$enUSmodulejs
7
+ };
8
+
9
+
10
+ export {$2801e6aca0fbff37$exports as default};
11
+ //# sourceMappingURL=intlStrings.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;AACA,4BAAiB;IACf,SAAS;AACX","sources":["packages/@react-spectrum/color/src/*.js"],"sourcesContent":["const _temp0 = require(\"../intl/en-US.json\");\nmodule.exports = {\n \"en-US\": _temp0\n}"],"names":[],"version":3,"file":"intlStrings.module.js.map"}
package/dist/main.js CHANGED
@@ -2,6 +2,11 @@ var $5f016e950c2dc3a6$exports = require("./ColorArea.main.js");
2
2
  var $63a2864687444ae1$exports = require("./ColorWheel.main.js");
3
3
  var $4537dec0de08c277$exports = require("./ColorSlider.main.js");
4
4
  var $8bdb9bc27ff3debb$exports = require("./ColorField.main.js");
5
+ var $f076f5c85640192a$exports = require("./ColorSwatch.main.js");
6
+ var $0c330b4a4fe337a6$exports = require("./ColorPicker.main.js");
7
+ var $ecaab91cad36cb44$exports = require("./ColorEditor.main.js");
8
+ var $ba9a184bcae9b225$exports = require("./ColorSwatchPicker.main.js");
9
+ var $aAzec$reactstatelycolor = require("@react-stately/color");
5
10
 
6
11
 
7
12
  function $parcel$export(e, n, v, s) {
@@ -12,6 +17,12 @@ $parcel$export(module.exports, "ColorArea", () => $5f016e950c2dc3a6$exports.Colo
12
17
  $parcel$export(module.exports, "ColorWheel", () => $63a2864687444ae1$exports.ColorWheel);
13
18
  $parcel$export(module.exports, "ColorSlider", () => $4537dec0de08c277$exports.ColorSlider);
14
19
  $parcel$export(module.exports, "ColorField", () => $8bdb9bc27ff3debb$exports.ColorField);
20
+ $parcel$export(module.exports, "ColorSwatch", () => $f076f5c85640192a$exports.ColorSwatch);
21
+ $parcel$export(module.exports, "ColorPicker", () => $0c330b4a4fe337a6$exports.ColorPicker);
22
+ $parcel$export(module.exports, "ColorEditor", () => $ecaab91cad36cb44$exports.ColorEditor);
23
+ $parcel$export(module.exports, "ColorSwatchPicker", () => $ba9a184bcae9b225$exports.ColorSwatchPicker);
24
+ $parcel$export(module.exports, "parseColor", () => $aAzec$reactstatelycolor.parseColor);
25
+ $parcel$export(module.exports, "getColorChannels", () => $aAzec$reactstatelycolor.getColorChannels);
15
26
  /*
16
27
  * Copyright 2020 Adobe. All rights reserved.
17
28
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
@@ -29,4 +40,9 @@ $parcel$export(module.exports, "ColorField", () => $8bdb9bc27ff3debb$exports.Col
29
40
 
30
41
 
31
42
 
43
+
44
+
45
+
46
+
47
+
32
48
  //# sourceMappingURL=main.js.map
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C","sources":["packages/@react-spectrum/color/src/index.ts"],"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/// <reference types=\"css-module-types\" />\nexport {ColorArea} from './ColorArea';\nexport {ColorWheel} from './ColorWheel';\nexport {ColorSlider} from './ColorSlider';\nexport {ColorField} from './ColorField';\nexport type {SpectrumColorAreaProps, SpectrumColorFieldProps, SpectrumColorSliderProps, SpectrumColorWheelProps} from '@react-types/color';\n"],"names":[],"version":3,"file":"main.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C","sources":["packages/@react-spectrum/color/src/index.ts"],"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/// <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":"main.js.map"}
package/dist/module.js CHANGED
@@ -2,6 +2,11 @@ import {ColorArea as $40046aa1a7ccb226$export$b2103f68a961418e} from "./ColorAre
2
2
  import {ColorWheel as $3aac1c27203f04b5$export$f80663f808113381} from "./ColorWheel.module.js";
3
3
  import {ColorSlider as $3870e4ce67ed7ee1$export$44fd664bcca5b6fb} from "./ColorSlider.module.js";
4
4
  import {ColorField as $0077d47e004328f0$export$b865d4358897bb17} from "./ColorField.module.js";
5
+ import {ColorSwatch as $d68786ae409fa722$export$cae13e90592f246a} from "./ColorSwatch.module.js";
6
+ import {ColorPicker as $d9654c66f3a7e70a$export$9feb1bc2e5f1ccb3} from "./ColorPicker.module.js";
7
+ import {ColorEditor as $49352c629f2d8349$export$5aa54fd21eb08d23} from "./ColorEditor.module.js";
8
+ import {ColorSwatchPicker as $4919bc07654f325c$export$b46792416e3d8515} from "./ColorSwatchPicker.module.js";
9
+ import {parseColor as $5cd3f969175c53c5$re_export$parseColor, getColorChannels as $5cd3f969175c53c5$re_export$getColorChannels} from "@react-stately/color";
5
10
 
6
11
  /*
7
12
  * Copyright 2020 Adobe. All rights reserved.
@@ -20,5 +25,10 @@ import {ColorField as $0077d47e004328f0$export$b865d4358897bb17} from "./ColorFi
20
25
 
21
26
 
22
27
 
23
- export {$40046aa1a7ccb226$export$b2103f68a961418e as ColorArea, $3aac1c27203f04b5$export$f80663f808113381 as ColorWheel, $3870e4ce67ed7ee1$export$44fd664bcca5b6fb as ColorSlider, $0077d47e004328f0$export$b865d4358897bb17 as ColorField};
28
+
29
+
30
+
31
+
32
+
33
+ export {$40046aa1a7ccb226$export$b2103f68a961418e as ColorArea, $3aac1c27203f04b5$export$f80663f808113381 as ColorWheel, $3870e4ce67ed7ee1$export$44fd664bcca5b6fb as ColorSlider, $0077d47e004328f0$export$b865d4358897bb17 as ColorField, $d68786ae409fa722$export$cae13e90592f246a as ColorSwatch, $d9654c66f3a7e70a$export$9feb1bc2e5f1ccb3 as ColorPicker, $49352c629f2d8349$export$5aa54fd21eb08d23 as ColorEditor, $4919bc07654f325c$export$b46792416e3d8515 as ColorSwatchPicker, $5cd3f969175c53c5$re_export$parseColor as parseColor, $5cd3f969175c53c5$re_export$getColorChannels as getColorChannels};
24
34
  //# sourceMappingURL=module.js.map
@@ -1 +1 @@
1
- {"mappings":";;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C","sources":["packages/@react-spectrum/color/src/index.ts"],"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/// <reference types=\"css-module-types\" />\nexport {ColorArea} from './ColorArea';\nexport {ColorWheel} from './ColorWheel';\nexport {ColorSlider} from './ColorSlider';\nexport {ColorField} from './ColorField';\nexport type {SpectrumColorAreaProps, SpectrumColorFieldProps, SpectrumColorSliderProps, SpectrumColorWheelProps} from '@react-types/color';\n"],"names":[],"version":3,"file":"module.js.map"}
1
+ {"mappings":";;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C","sources":["packages/@react-spectrum/color/src/index.ts"],"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/// <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":"module.js.map"}
package/dist/types.d.ts CHANGED
@@ -1,7 +1,9 @@
1
- import { FocusableRef, FocusableRefValue } from "@react-types/shared";
2
- import React, { ReactElement } from "react";
3
- import { SpectrumColorAreaProps, SpectrumColorWheelProps, SpectrumColorSliderProps, SpectrumColorFieldProps } from "@react-types/color";
1
+ import { FocusableRef, FocusableRefValue, StyleProps, DOMRefValue, AriaLabelingProps, ValueBase } from "@react-types/shared";
2
+ import React, { ReactElement, ReactNode } from "react";
3
+ import { SpectrumColorAreaProps, SpectrumColorWheelProps, SpectrumColorSliderProps, SpectrumColorFieldProps, Color as _Color1 } from "@react-types/color";
4
4
  import { TextFieldRef } from "@react-types/textfield";
5
+ import { AriaColorSwatchProps } from "@react-aria/color";
6
+ import { Color } from "react-aria-components";
5
7
  /**
6
8
  * ColorArea allows users to adjust two channels of an RGB, HSL or HSB color value against a two-dimensional gradient background.
7
9
  */
@@ -17,9 +19,78 @@ export let ColorWheel: React.ForwardRefExoticComponent<SpectrumColorWheelProps &
17
19
  */
18
20
  export let ColorSlider: React.ForwardRefExoticComponent<SpectrumColorSliderProps & React.RefAttributes<FocusableRefValue<HTMLDivElement, HTMLDivElement>>>;
19
21
  /**
20
- * ColorFields allow users to enter a color in #rrggbb hexadecimal format.
22
+ * A color field allows users to edit a hex color or individual color channel value.
21
23
  */
22
24
  export const ColorField: React.ForwardRefExoticComponent<SpectrumColorFieldProps & React.RefAttributes<TextFieldRef>>;
25
+ export interface SpectrumColorSwatchProps extends AriaColorSwatchProps, StyleProps {
26
+ /**
27
+ * The size of the ColorSwatch.
28
+ * @default "M"
29
+ */
30
+ size?: 'XS' | 'S' | 'M' | 'L';
31
+ /**
32
+ * The corner rounding of the ColorSwatch.
33
+ * @default "default"
34
+ */
35
+ rounding?: 'default' | 'none' | 'full';
36
+ }
37
+ /**
38
+ * A ColorSwatch displays a preview of a selected color.
39
+ */
40
+ export let ColorSwatch: React.ForwardRefExoticComponent<SpectrumColorSwatchProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>>;
41
+ export interface SpectrumColorPickerProps extends ValueBase<string | Color, Color>, AriaLabelingProps {
42
+ /** A visual label for the color picker. */
43
+ label?: ReactNode;
44
+ /** The contents of the color picker popover, e.g. `<ColorEditor />`. */
45
+ children?: ReactNode;
46
+ /**
47
+ * The size of the color swatch.
48
+ * @default "M"
49
+ */
50
+ size?: 'XS' | 'S' | 'M' | 'L';
51
+ /**
52
+ * The corner rounding of the color swatch.
53
+ * @default "default"
54
+ */
55
+ rounding?: 'default' | 'none' | 'full';
56
+ }
57
+ /**
58
+ * A ColorPicker combines a swatch with a customizable popover for editing a color.
59
+ */
60
+ export let ColorPicker: React.ForwardRefExoticComponent<SpectrumColorPickerProps & React.RefAttributes<FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>>;
61
+ export interface SpectrumColorEditorProps {
62
+ /** Whether to hide the alpha channel color slider and color field. */
63
+ hideAlphaChannel?: boolean;
64
+ }
65
+ /**
66
+ * ColorEditor provides a default UI for editing colors within a ColorPicker.
67
+ */
68
+ export let ColorEditor: React.ForwardRefExoticComponent<SpectrumColorEditorProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>>;
69
+ export interface SpectrumColorSwatchPickerProps extends ValueBase<string | _Color1 | null, _Color1>, StyleProps {
70
+ /** The ColorSwatches within the ColorSwatchPicker. */
71
+ children: ReactNode;
72
+ /**
73
+ * The amount of padding between the swatches.
74
+ * @default "regular"
75
+ */
76
+ density?: 'compact' | 'regular' | 'spacious';
77
+ /**
78
+ * The size of the color swatches.
79
+ * @default "M"
80
+ */
81
+ size?: 'XS' | 'S' | 'M' | 'L';
82
+ /**
83
+ * The corner rounding of the color swatches.
84
+ * @default "none"
85
+ */
86
+ rounding?: 'none' | 'default' | 'full';
87
+ }
88
+ /**
89
+ * A ColorSwatchPicker displays a list of color swatches and allows a user to select one of them.
90
+ */
91
+ export let ColorSwatchPicker: React.ForwardRefExoticComponent<SpectrumColorSwatchPickerProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>>;
92
+ export { parseColor, getColorChannels } from '@react-stately/color';
23
93
  export type { SpectrumColorAreaProps, SpectrumColorFieldProps, SpectrumColorSliderProps, SpectrumColorWheelProps } from '@react-types/color';
94
+ export type { Color, ColorSpace, ColorFormat } from '@react-types/color';
24
95
 
25
96
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"mappings":";;;;ACoFA;;GAEG;AACH,OAAA,IAAI,mBAAoD,sBAAsB,GAAG;IAAC,GAAG,CAAC,EAAE,aAAa,cAAc,CAAC,CAAA;CAAC,KAAK,YAAY,CAAC;ACmBvI;;GAEG;AACH,OAAA,IAAI,6IAA0C,CAAC;AC4B/C;;GAEG;AACH,OAAA,IAAI,+IAA4C,CAAC;ACzFjD;;GAEG;AACH,OAAA,MAAM,wGAA0C,CAAC;ACrCjD,YAAY,EAAC,sBAAsB,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,uBAAuB,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/index.ts","packages/@react-spectrum/color/src/index.ts"],"sourcesContent":[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 type {SpectrumColorAreaProps, SpectrumColorFieldProps, SpectrumColorSliderProps, SpectrumColorWheelProps} from '@react-types/color';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
1
+ {"mappings":";;;;;;ACqFA;;GAEG;AACH,OAAA,IAAI,mBAAoD,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,wGAA0C,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;AAgFD;;GAEG;AACH,OAAA,IAAI,qJAA4C,CAAC;AC1GjD;IACE,sEAAsE;IACtE,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B;AAyCD;;GAEG;AACH,OAAA,IAAI,yHAA4C,CAAC;ACzCjD,+CAAgD,SAAQ,UAAU,MAAM,GAAG,OAAK,GAAG,IAAI,EAAE,OAAK,CAAC,EAAE,UAAU;IACzG,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"}
@@ -46,8 +46,7 @@
46
46
  .hoc2UW_spectrum-ColorHandle {
47
47
  border-color: var(--spectrum-colorhandle-inner-border-color, var(--spectrum-global-color-static-white));
48
48
  box-shadow: 0 0 0 var(--spectrum-colorhandle-outer-border-size, var(--spectrum-global-dimension-static-size-10)) #0000006b;
49
- background-color: var(--spectrum-global-color-static-white, #fff);
50
- background-image: linear-gradient(-45deg, transparent 75.5%, var(--spectrum-global-color-static-gray-500, #bcbcbc) 75.5%), linear-gradient(45deg, transparent 75.5%, var(--spectrum-global-color-static-gray-500, #bcbcbc) 75.5%), linear-gradient(-45deg, var(--spectrum-global-color-static-gray-500, #bcbcbc) 25.5%, transparent 25.5%), linear-gradient(45deg, var(--spectrum-global-color-static-gray-500, #bcbcbc) 25.5%, transparent 25.5%);
49
+ background: repeating-conic-gradient(#e6e6e6 0% 25%, #fff 0% 50%) 50% / 16px 16px;
51
50
  }
52
51
 
53
52
  .hoc2UW_spectrum-ColorHandle.hoc2UW_is-disabled {
@@ -73,4 +72,4 @@
73
72
  --spectrum-colorhandle-outer-border-color: ButtonFace;
74
73
  }
75
74
  }
76
- /*# sourceMappingURL=vars.08ba4b4c.css.map */
75
+ /*# sourceMappingURL=vars.53b417c1.css.map */
@@ -0,0 +1 @@
1
+ {"mappings":"AAYA;;;;;;;;;;;;;;;;;AA8BE;;;;;;;;;;;AAeA;;;;AAKF;;;;;;;AAcA;;;;;;AAMA;;;;;;AAKE;;;;;;AAKE;;;;AAMJ;;;;AAIA;EACE","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":"vars.53b417c1.css.map"}
@@ -18,8 +18,6 @@
18
18
  .lm1DSq_spectrum-ColorArea.lm1DSq_is-focused .lm1DSq_spectrum-ColorArea-handle {
19
19
  width: calc(var(--spectrum-colorhandle-size, var(--spectrum-global-dimension-size-200)) * 2);
20
20
  height: calc(var(--spectrum-colorhandle-size, var(--spectrum-global-dimension-size-200)) * 2);
21
- margin-left: calc(-1 * var(--spectrum-colorhandle-size, var(--spectrum-global-dimension-size-200)));
22
- margin-top: calc(-1 * var(--spectrum-colorhandle-size, var(--spectrum-global-dimension-size-200)));
23
21
  }
24
22
 
25
23
  .lm1DSq_spectrum-ColorArea.lm1DSq_focus-ring {
@@ -29,8 +27,6 @@
29
27
  .lm1DSq_spectrum-ColorArea.lm1DSq_focus-ring .lm1DSq_spectrum-ColorArea-handle {
30
28
  width: calc(var(--spectrum-colorhandle-size, var(--spectrum-global-dimension-size-200)) * 2);
31
29
  height: calc(var(--spectrum-colorhandle-size, var(--spectrum-global-dimension-size-200)) * 2);
32
- margin-left: calc(-1 * var(--spectrum-colorhandle-size, var(--spectrum-global-dimension-size-200)));
33
- margin-top: calc(-1 * var(--spectrum-colorhandle-size, var(--spectrum-global-dimension-size-200)));
34
30
  }
35
31
 
36
32
  .lm1DSq_spectrum-ColorArea.lm1DSq_is-disabled {
@@ -45,21 +41,16 @@
45
41
  inset: 0;
46
42
  }
47
43
 
48
- .lm1DSq_spectrum-ColorArea-handle {
44
+ .lm1DSq_spectrum-ColorArea-handle.lm1DSq_spectrum-ColorArea-handle {
45
+ margin: 0;
49
46
  top: 0;
50
47
  left: 0;
51
48
  }
52
49
 
53
- .lm1DSq_spectrum-ColorArea-handle:focus-within {
50
+ .lm1DSq_spectrum-ColorArea-handle.lm1DSq_spectrum-ColorArea-handle:focus-within {
54
51
  z-index: 2;
55
52
  }
56
53
 
57
- .lm1DSq_spectrum-ColorArea-gradient {
58
- border-radius: var(--spectrum-colorarea-border-radius, var(--spectrum-alias-border-radius-regular));
59
- width: 100%;
60
- height: 100%;
61
- }
62
-
63
54
  .lm1DSq_spectrum-ColorArea-slider {
64
55
  opacity: .0001;
65
56
  z-index: 0;
@@ -76,7 +67,7 @@
76
67
  box-shadow: inset 0 0 0 var(--spectrum-colorarea-border-size, var(--spectrum-alias-border-size-thin)) var(--spectrum-colorarea-border-color);
77
68
  }
78
69
 
79
- .lm1DSq_spectrum-ColorArea-gradient, .lm1DSq_spectrum-ColorHandle-color {
70
+ .lm1DSq_spectrum-ColorHandle-color {
80
71
  forced-color-adjust: none;
81
72
  }
82
73
 
@@ -88,13 +79,10 @@
88
79
  box-shadow: inset 0 0 0 var(--spectrum-colorarea-border-size, var(--spectrum-alias-border-size-thin)) var(--spectrum-colorarea-border-color-disabled, var(--spectrum-global-color-gray-300));
89
80
  }
90
81
 
91
- .lm1DSq_spectrum-ColorArea.lm1DSq_is-disabled .lm1DSq_spectrum-ColorArea-gradient {
92
- display: none;
93
- }
94
-
95
82
  @media (forced-colors: active) {
96
83
  .lm1DSq_spectrum-ColorArea {
97
84
  --spectrum-colorarea-fill-color-disabled: GrayText;
85
+ --spectrum-colorarea-border-color: ButtonBorder;
98
86
  forced-color-adjust: none;
99
87
  }
100
88
 
@@ -102,4 +90,4 @@
102
90
  forced-color-adjust: none;
103
91
  }
104
92
  }
105
- /*# sourceMappingURL=vars.6f3d3943.css.map */
93
+ /*# sourceMappingURL=vars.6fa9fa04.css.map */
@@ -0,0 +1 @@
1
+ {"mappings":"AAYA;;;;;;;;;;;;;AAcE;;;;AAIE;;;;;AAJF;;;;AAIE;;;;;AAOF;;;;AAKA;;;;;;;;AAYF;;;;;;AAKE;;;;AAKF;;;;;;;;;;;;AAaI;;;;AAKJ;;;;AAKI;;;;AAGE;;;;AAMN;EACI;;;;;;EAME","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":"vars.6fa9fa04.css.map"}
@@ -100,7 +100,7 @@
100
100
  }
101
101
 
102
102
  .WJOmgG_spectrum-ColorSlider:before {
103
- background-image: linear-gradient(-45deg, transparent 75.5%, var(--spectrum-global-color-static-gray-500, #bcbcbc) 75.5%), linear-gradient(45deg, transparent 75.5%, var(--spectrum-global-color-static-gray-500, #bcbcbc) 75.5%), linear-gradient(-45deg, var(--spectrum-global-color-static-gray-500, #bcbcbc) 25.5%, transparent 25.5%), linear-gradient(45deg, var(--spectrum-global-color-static-gray-500, #bcbcbc) 25.5%, transparent 25.5%);
103
+ background: repeating-conic-gradient(#e6e6e6 0% 25%, #fff 0% 50%) 0% / 16px 16px;
104
104
  }
105
105
 
106
106
  .WJOmgG_spectrum-ColorSlider.WJOmgG_is-disabled {
@@ -117,4 +117,4 @@
117
117
  --spectrum-colorarea-border-color: ButtonText;
118
118
  }
119
119
  }
120
- /*# sourceMappingURL=vars.571f903e.css.map */
120
+ /*# sourceMappingURL=vars.aa07b6d2.css.map */
@@ -1 +1 @@
1
- {"mappings":"AAYA;;;;;;;;;;;;AAYA;;;;AAIA;;;;;;AAMA;;;;;;;;;;;;AAaE;;;;AAKA;;;;;;;;;;AAiBA;;;;AAIA;;;;AAKF;;;;;;AAME;;;;;AAMF;;;;;AAIE;;;;;;AAeF;;;;;;;AAOA;;;;;;AAMA;;;;;AAKA;;;;;AAIE;;;;AASA;;;;;AAMF;EACE","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":"vars.571f903e.css.map"}
1
+ {"mappings":"AAYA;;;;;;;;;;;;AAYA;;;;AAIA;;;;;;AAMA;;;;;;;;;;;;AAaE;;;;AAKA;;;;;;;;;;AAiBA;;;;AAIA;;;;AAKF;;;;;;AAME;;;;;AAMF;;;;;AAIE;;;;;;AAeF;;;;;;;AAOA;;;;;;AAMA;;;;;AAKA;;;;;AAIE;;;;AAIA;;;;;AAMF;EACE","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":"vars.aa07b6d2.css.map"}