@react-spectrum/color 3.0.0-nightly.4555 → 3.0.0-nightly.4560
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ColorArea.main.js +97 -0
- package/dist/ColorArea.main.js.map +1 -0
- package/dist/ColorArea.mjs +92 -0
- package/dist/ColorArea.module.js +92 -0
- package/dist/ColorArea.module.js.map +1 -0
- package/dist/ColorField.main.js +61 -0
- package/dist/ColorField.main.js.map +1 -0
- package/dist/ColorField.mjs +56 -0
- package/dist/ColorField.module.js +56 -0
- package/dist/ColorField.module.js.map +1 -0
- package/dist/ColorSlider.main.js +125 -0
- package/dist/ColorSlider.main.js.map +1 -0
- package/dist/ColorSlider.mjs +120 -0
- package/dist/ColorSlider.module.js +120 -0
- package/dist/ColorSlider.module.js.map +1 -0
- package/dist/ColorThumb.main.js +94 -0
- package/dist/ColorThumb.main.js.map +1 -0
- package/dist/ColorThumb.mjs +89 -0
- package/dist/ColorThumb.module.js +89 -0
- package/dist/ColorThumb.module.js.map +1 -0
- package/dist/ColorWheel.main.js +114 -0
- package/dist/ColorWheel.main.js.map +1 -0
- package/dist/ColorWheel.mjs +109 -0
- package/dist/ColorWheel.module.js +109 -0
- package/dist/ColorWheel.module.js.map +1 -0
- package/dist/colorarea_vars_css.main.js +32 -0
- package/dist/colorarea_vars_css.main.js.map +1 -0
- package/dist/colorarea_vars_css.mjs +34 -0
- package/dist/colorarea_vars_css.module.js +34 -0
- package/dist/colorarea_vars_css.module.js.map +1 -0
- package/dist/colorfield.faeff3c2.css +12 -0
- package/dist/colorfield.faeff3c2.css.map +1 -0
- package/dist/colorfield_css.main.js +11 -0
- package/dist/colorfield_css.main.js.map +1 -0
- package/dist/colorfield_css.mjs +13 -0
- package/dist/colorfield_css.module.js +13 -0
- package/dist/colorfield_css.module.js.map +1 -0
- package/dist/colorhandle_vars_css.main.js +26 -0
- package/dist/colorhandle_vars_css.main.js.map +1 -0
- package/dist/colorhandle_vars_css.mjs +28 -0
- package/dist/colorhandle_vars_css.module.js +28 -0
- package/dist/colorhandle_vars_css.module.js.map +1 -0
- package/dist/colorloupe_vars_css.main.js +23 -0
- package/dist/colorloupe_vars_css.main.js.map +1 -0
- package/dist/colorloupe_vars_css.mjs +25 -0
- package/dist/colorloupe_vars_css.module.js +25 -0
- package/dist/colorloupe_vars_css.module.js.map +1 -0
- package/dist/colorslider_vars_css.main.js +53 -0
- package/dist/colorslider_vars_css.main.js.map +1 -0
- package/dist/colorslider_vars_css.mjs +55 -0
- package/dist/colorslider_vars_css.module.js +55 -0
- package/dist/colorslider_vars_css.module.js.map +1 -0
- package/dist/colorwheel_vars_css.main.js +35 -0
- package/dist/colorwheel_vars_css.main.js.map +1 -0
- package/dist/colorwheel_vars_css.mjs +37 -0
- package/dist/colorwheel_vars_css.module.js +37 -0
- package/dist/colorwheel_vars_css.module.js.map +1 -0
- package/dist/import.mjs +4 -550
- package/dist/main.js +8 -550
- package/dist/main.js.map +1 -1
- package/dist/module.js +4 -550
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +3 -3
- package/dist/types.d.ts.map +1 -1
- package/dist/vars.08ba4b4c.css +76 -0
- package/dist/vars.08ba4b4c.css.map +1 -0
- package/dist/vars.571f903e.css +120 -0
- package/dist/vars.571f903e.css.map +1 -0
- package/dist/vars.6f3d3943.css +105 -0
- package/dist/vars.6f3d3943.css.map +1 -0
- package/dist/vars.ac235018.css +93 -0
- package/dist/vars.ac235018.css.map +1 -0
- package/dist/vars.ef2c01b8.css +41 -0
- package/dist/vars.ef2c01b8.css.map +1 -0
- package/package.json +16 -16
- package/dist/main.css +0 -447
- package/dist/main.css.map +0 -1
- package/dist/module.css +0 -447
- package/dist/module.css.map +0 -1
package/dist/main.js
CHANGED
|
@@ -1,30 +1,17 @@
|
|
|
1
|
-
require("./main.
|
|
2
|
-
var $
|
|
3
|
-
var $
|
|
4
|
-
var $
|
|
5
|
-
var $aAzec$reactariacolor = require("@react-aria/color");
|
|
6
|
-
var $aAzec$reactstatelycolor = require("@react-stately/color");
|
|
7
|
-
var $aAzec$reactariafocus = require("@react-aria/focus");
|
|
8
|
-
var $aAzec$reactspectrumprovider = require("@react-spectrum/provider");
|
|
9
|
-
var $aAzec$reactspectrumlabel = require("@react-spectrum/label");
|
|
10
|
-
var $aAzec$reactariainteractions = require("@react-aria/interactions");
|
|
11
|
-
var $aAzec$reactariai18n = require("@react-aria/i18n");
|
|
12
|
-
var $aAzec$reactspectrumtextfield = require("@react-spectrum/textfield");
|
|
13
|
-
var $aAzec$reactspectrumform = require("@react-spectrum/form");
|
|
1
|
+
var $5f016e950c2dc3a6$exports = require("./ColorArea.main.js");
|
|
2
|
+
var $63a2864687444ae1$exports = require("./ColorWheel.main.js");
|
|
3
|
+
var $4537dec0de08c277$exports = require("./ColorSlider.main.js");
|
|
4
|
+
var $8bdb9bc27ff3debb$exports = require("./ColorField.main.js");
|
|
14
5
|
|
|
15
6
|
|
|
16
7
|
function $parcel$export(e, n, v, s) {
|
|
17
8
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
18
9
|
}
|
|
19
10
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
$parcel$export(module.exports, "ColorArea", () => $5f016e950c2dc3a6$export$b2103f68a961418e);
|
|
25
|
-
$parcel$export(module.exports, "ColorWheel", () => $63a2864687444ae1$export$f80663f808113381);
|
|
26
|
-
$parcel$export(module.exports, "ColorSlider", () => $4537dec0de08c277$export$44fd664bcca5b6fb);
|
|
27
|
-
$parcel$export(module.exports, "ColorField", () => $8bdb9bc27ff3debb$export$b865d4358897bb17);
|
|
11
|
+
$parcel$export(module.exports, "ColorArea", () => $5f016e950c2dc3a6$exports.ColorArea);
|
|
12
|
+
$parcel$export(module.exports, "ColorWheel", () => $63a2864687444ae1$exports.ColorWheel);
|
|
13
|
+
$parcel$export(module.exports, "ColorSlider", () => $4537dec0de08c277$exports.ColorSlider);
|
|
14
|
+
$parcel$export(module.exports, "ColorField", () => $8bdb9bc27ff3debb$exports.ColorField);
|
|
28
15
|
/*
|
|
29
16
|
* Copyright 2020 Adobe. All rights reserved.
|
|
30
17
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -36,537 +23,8 @@ $parcel$export(module.exports, "ColorField", () => $8bdb9bc27ff3debb$export$b865
|
|
|
36
23
|
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
37
24
|
* governing permissions and limitations under the License.
|
|
38
25
|
*/ /// <reference types="css-module-types" />
|
|
39
|
-
/*
|
|
40
|
-
* Copyright 2021 Adobe. All rights reserved.
|
|
41
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
42
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
43
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
44
|
-
*
|
|
45
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
46
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
47
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
48
|
-
* governing permissions and limitations under the License.
|
|
49
|
-
*/
|
|
50
|
-
/*
|
|
51
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
52
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
53
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
54
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
55
|
-
*
|
|
56
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
57
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
58
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
59
|
-
* governing permissions and limitations under the License.
|
|
60
|
-
*/
|
|
61
|
-
|
|
62
|
-
var $f61d632765728b2e$exports = {};
|
|
63
|
-
|
|
64
|
-
$parcel$export($f61d632765728b2e$exports, "spectrum-ColorControl-handle--focused", () => $f61d632765728b2e$export$1dd67f16e0d58f73, (v) => $f61d632765728b2e$export$1dd67f16e0d58f73 = v);
|
|
65
|
-
$parcel$export($f61d632765728b2e$exports, "focus-ring", () => $f61d632765728b2e$export$f39a09f249340e2a, (v) => $f61d632765728b2e$export$f39a09f249340e2a = v);
|
|
66
|
-
$parcel$export($f61d632765728b2e$exports, "is-disabled", () => $f61d632765728b2e$export$d35bc1e505d1ebbf, (v) => $f61d632765728b2e$export$d35bc1e505d1ebbf = v);
|
|
67
|
-
$parcel$export($f61d632765728b2e$exports, "is-focused", () => $f61d632765728b2e$export$e7dc768d35940237, (v) => $f61d632765728b2e$export$e7dc768d35940237 = v);
|
|
68
|
-
$parcel$export($f61d632765728b2e$exports, "spectrum-ColorHandle", () => $f61d632765728b2e$export$cd9afaa621b6216f, (v) => $f61d632765728b2e$export$cd9afaa621b6216f = v);
|
|
69
|
-
$parcel$export($f61d632765728b2e$exports, "spectrum-ColorHandle-color", () => $f61d632765728b2e$export$afe4c366ed4e659c, (v) => $f61d632765728b2e$export$afe4c366ed4e659c = v);
|
|
70
|
-
var $f61d632765728b2e$export$1dd67f16e0d58f73;
|
|
71
|
-
var $f61d632765728b2e$export$f39a09f249340e2a;
|
|
72
|
-
var $f61d632765728b2e$export$d35bc1e505d1ebbf;
|
|
73
|
-
var $f61d632765728b2e$export$e7dc768d35940237;
|
|
74
|
-
var $f61d632765728b2e$export$cd9afaa621b6216f;
|
|
75
|
-
var $f61d632765728b2e$export$afe4c366ed4e659c;
|
|
76
|
-
$f61d632765728b2e$export$1dd67f16e0d58f73 = `hoc2UW_spectrum-ColorControl-handle--focused`;
|
|
77
|
-
$f61d632765728b2e$export$f39a09f249340e2a = `hoc2UW_focus-ring ${$f61d632765728b2e$export$1dd67f16e0d58f73}`;
|
|
78
|
-
$f61d632765728b2e$export$d35bc1e505d1ebbf = `hoc2UW_is-disabled`;
|
|
79
|
-
$f61d632765728b2e$export$e7dc768d35940237 = `hoc2UW_is-focused ${$f61d632765728b2e$export$1dd67f16e0d58f73}`;
|
|
80
|
-
$f61d632765728b2e$export$cd9afaa621b6216f = `hoc2UW_spectrum-ColorHandle`;
|
|
81
|
-
$f61d632765728b2e$export$afe4c366ed4e659c = `hoc2UW_spectrum-ColorHandle-color`;
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
var $f65977ae56facfaa$exports = {};
|
|
85
|
-
|
|
86
|
-
$parcel$export($f65977ae56facfaa$exports, "is-open", () => $f65977ae56facfaa$export$a9781837241c946d, (v) => $f65977ae56facfaa$export$a9781837241c946d = v);
|
|
87
|
-
$parcel$export($f65977ae56facfaa$exports, "spectrum-ColorLoupe", () => $f65977ae56facfaa$export$88d6ed2576b21809, (v) => $f65977ae56facfaa$export$88d6ed2576b21809 = v);
|
|
88
|
-
$parcel$export($f65977ae56facfaa$exports, "spectrum-ColorLoupe-inner-background", () => $f65977ae56facfaa$export$397af82b48750fe5, (v) => $f65977ae56facfaa$export$397af82b48750fe5 = v);
|
|
89
|
-
$parcel$export($f65977ae56facfaa$exports, "spectrum-ColorLoupe-inner-checker", () => $f65977ae56facfaa$export$f9a2a02e0b271024, (v) => $f65977ae56facfaa$export$f9a2a02e0b271024 = v);
|
|
90
|
-
$parcel$export($f65977ae56facfaa$exports, "spectrum-ColorLoupe-outer", () => $f65977ae56facfaa$export$d6ad38291e8aca9c, (v) => $f65977ae56facfaa$export$d6ad38291e8aca9c = v);
|
|
91
|
-
var $f65977ae56facfaa$export$a9781837241c946d;
|
|
92
|
-
var $f65977ae56facfaa$export$88d6ed2576b21809;
|
|
93
|
-
var $f65977ae56facfaa$export$397af82b48750fe5;
|
|
94
|
-
var $f65977ae56facfaa$export$f9a2a02e0b271024;
|
|
95
|
-
var $f65977ae56facfaa$export$d6ad38291e8aca9c;
|
|
96
|
-
$f65977ae56facfaa$export$a9781837241c946d = `HpWpfq_is-open`;
|
|
97
|
-
$f65977ae56facfaa$export$88d6ed2576b21809 = `HpWpfq_spectrum-ColorLoupe`;
|
|
98
|
-
$f65977ae56facfaa$export$397af82b48750fe5 = `HpWpfq_spectrum-ColorLoupe-inner-background`;
|
|
99
|
-
$f65977ae56facfaa$export$f9a2a02e0b271024 = `HpWpfq_spectrum-ColorLoupe-inner-checker`;
|
|
100
|
-
$f65977ae56facfaa$export$d6ad38291e8aca9c = `HpWpfq_spectrum-ColorLoupe-outer`;
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
function $2b9adc23f6c7cae1$export$a3cc47cee1c1ccc(props) {
|
|
105
|
-
let { value: value, isDisabled: isDisabled, isDragging: isDragging, isFocused: isFocused, children: children, className: className = "", ...otherProps } = props;
|
|
106
|
-
let patternId = (0, $aAzec$reactariautils.useId)();
|
|
107
|
-
let valueCSS = value.toString("css");
|
|
108
|
-
return /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("div", {
|
|
109
|
-
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($f61d632765728b2e$exports))), "spectrum-ColorHandle", {
|
|
110
|
-
"is-focused": isFocused,
|
|
111
|
-
"is-disabled": isDisabled
|
|
112
|
-
}) + " " + className,
|
|
113
|
-
...otherProps
|
|
114
|
-
}, /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("div", {
|
|
115
|
-
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($f61d632765728b2e$exports))), "spectrum-ColorHandle-color"),
|
|
116
|
-
style: {
|
|
117
|
-
backgroundColor: valueCSS
|
|
118
|
-
}
|
|
119
|
-
}), /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("svg", {
|
|
120
|
-
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($f65977ae56facfaa$exports))), "spectrum-ColorLoupe", {
|
|
121
|
-
"is-open": isDragging
|
|
122
|
-
}),
|
|
123
|
-
"aria-hidden": "true"
|
|
124
|
-
}, /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("pattern", {
|
|
125
|
-
id: patternId,
|
|
126
|
-
x: "0",
|
|
127
|
-
y: "0",
|
|
128
|
-
width: "16",
|
|
129
|
-
height: "16",
|
|
130
|
-
patternUnits: "userSpaceOnUse"
|
|
131
|
-
}, /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("rect", {
|
|
132
|
-
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($f65977ae56facfaa$exports))), "spectrum-ColorLoupe-inner-background"),
|
|
133
|
-
x: "0",
|
|
134
|
-
y: "0",
|
|
135
|
-
width: "16",
|
|
136
|
-
height: "16"
|
|
137
|
-
}), /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("rect", {
|
|
138
|
-
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($f65977ae56facfaa$exports))), "spectrum-ColorLoupe-inner-checker"),
|
|
139
|
-
x: "0",
|
|
140
|
-
y: "0",
|
|
141
|
-
width: "8",
|
|
142
|
-
height: "8"
|
|
143
|
-
}), /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("rect", {
|
|
144
|
-
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($f65977ae56facfaa$exports))), "spectrum-ColorLoupe-inner-checker"),
|
|
145
|
-
x: "8",
|
|
146
|
-
y: "8",
|
|
147
|
-
width: "8",
|
|
148
|
-
height: "8"
|
|
149
|
-
})), /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("path", {
|
|
150
|
-
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($f65977ae56facfaa$exports))), "spectrum-ColorLoupe-inner"),
|
|
151
|
-
d: "M25 1a24 24 0 0124 24c0 16.255-24 40-24 40S1 41.255 1 25A24 24 0 0125 1z",
|
|
152
|
-
fill: `url(#${patternId})`
|
|
153
|
-
}), /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("path", {
|
|
154
|
-
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($f65977ae56facfaa$exports))), "spectrum-ColorLoupe-inner"),
|
|
155
|
-
d: "M25 1a24 24 0 0124 24c0 16.255-24 40-24 40S1 41.255 1 25A24 24 0 0125 1z",
|
|
156
|
-
fill: valueCSS
|
|
157
|
-
}), /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("path", {
|
|
158
|
-
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($f65977ae56facfaa$exports))), "spectrum-ColorLoupe-outer"),
|
|
159
|
-
d: "M25 3A21.98 21.98 0 003 25c0 6.2 4 14.794 11.568 24.853A144.233 144.233 0 0025 62.132a144.085 144.085 0 0010.4-12.239C42.99 39.816 47 31.209 47 25A21.98 21.98 0 0025 3m0-2a24 24 0 0124 24c0 16.255-24 40-24 40S1 41.255 1 25A24 24 0 0125 1z"
|
|
160
|
-
})), children);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
var $d4b4e0a63f9ca8c1$exports = {};
|
|
167
|
-
|
|
168
|
-
$parcel$export($d4b4e0a63f9ca8c1$exports, "focus-ring", () => $d4b4e0a63f9ca8c1$export$f39a09f249340e2a, (v) => $d4b4e0a63f9ca8c1$export$f39a09f249340e2a = v);
|
|
169
|
-
$parcel$export($d4b4e0a63f9ca8c1$exports, "is-disabled", () => $d4b4e0a63f9ca8c1$export$d35bc1e505d1ebbf, (v) => $d4b4e0a63f9ca8c1$export$d35bc1e505d1ebbf = v);
|
|
170
|
-
$parcel$export($d4b4e0a63f9ca8c1$exports, "is-focused", () => $d4b4e0a63f9ca8c1$export$e7dc768d35940237, (v) => $d4b4e0a63f9ca8c1$export$e7dc768d35940237 = v);
|
|
171
|
-
$parcel$export($d4b4e0a63f9ca8c1$exports, "spectrum-ColorArea", () => $d4b4e0a63f9ca8c1$export$bb6257a55a3c1efc, (v) => $d4b4e0a63f9ca8c1$export$bb6257a55a3c1efc = v);
|
|
172
|
-
$parcel$export($d4b4e0a63f9ca8c1$exports, "spectrum-ColorArea-gradient", () => $d4b4e0a63f9ca8c1$export$40686f4fcb8a9916, (v) => $d4b4e0a63f9ca8c1$export$40686f4fcb8a9916 = v);
|
|
173
|
-
$parcel$export($d4b4e0a63f9ca8c1$exports, "spectrum-ColorArea-handle", () => $d4b4e0a63f9ca8c1$export$d8addbd273c4e00, (v) => $d4b4e0a63f9ca8c1$export$d8addbd273c4e00 = v);
|
|
174
|
-
$parcel$export($d4b4e0a63f9ca8c1$exports, "spectrum-ColorArea-slider", () => $d4b4e0a63f9ca8c1$export$7d727cacaa7cea1e, (v) => $d4b4e0a63f9ca8c1$export$7d727cacaa7cea1e = v);
|
|
175
|
-
$parcel$export($d4b4e0a63f9ca8c1$exports, "spectrum-ColorHandle-color", () => $d4b4e0a63f9ca8c1$export$afe4c366ed4e659c, (v) => $d4b4e0a63f9ca8c1$export$afe4c366ed4e659c = v);
|
|
176
|
-
var $d4b4e0a63f9ca8c1$export$f39a09f249340e2a;
|
|
177
|
-
var $d4b4e0a63f9ca8c1$export$d35bc1e505d1ebbf;
|
|
178
|
-
var $d4b4e0a63f9ca8c1$export$e7dc768d35940237;
|
|
179
|
-
var $d4b4e0a63f9ca8c1$export$bb6257a55a3c1efc;
|
|
180
|
-
var $d4b4e0a63f9ca8c1$export$40686f4fcb8a9916;
|
|
181
|
-
var $d4b4e0a63f9ca8c1$export$d8addbd273c4e00;
|
|
182
|
-
var $d4b4e0a63f9ca8c1$export$7d727cacaa7cea1e;
|
|
183
|
-
var $d4b4e0a63f9ca8c1$export$afe4c366ed4e659c;
|
|
184
|
-
$d4b4e0a63f9ca8c1$export$f39a09f249340e2a = `lm1DSq_focus-ring`;
|
|
185
|
-
$d4b4e0a63f9ca8c1$export$d35bc1e505d1ebbf = `lm1DSq_is-disabled`;
|
|
186
|
-
$d4b4e0a63f9ca8c1$export$e7dc768d35940237 = `lm1DSq_is-focused`;
|
|
187
|
-
$d4b4e0a63f9ca8c1$export$bb6257a55a3c1efc = `lm1DSq_spectrum-ColorArea`;
|
|
188
|
-
$d4b4e0a63f9ca8c1$export$40686f4fcb8a9916 = `lm1DSq_spectrum-ColorArea-gradient`;
|
|
189
|
-
$d4b4e0a63f9ca8c1$export$d8addbd273c4e00 = `lm1DSq_spectrum-ColorArea-handle`;
|
|
190
|
-
$d4b4e0a63f9ca8c1$export$7d727cacaa7cea1e = `lm1DSq_spectrum-ColorArea-slider`;
|
|
191
|
-
$d4b4e0a63f9ca8c1$export$afe4c366ed4e659c = `lm1DSq_spectrum-ColorHandle-color`;
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
function $5f016e950c2dc3a6$var$ColorArea(props, ref) {
|
|
199
|
-
props = (0, $aAzec$reactspectrumprovider.useProviderProps)(props);
|
|
200
|
-
let { isDisabled: isDisabled } = props;
|
|
201
|
-
let size = props.size && (0, $aAzec$reactspectrumutils.dimensionValue)(props.size);
|
|
202
|
-
let { styleProps: styleProps } = (0, $aAzec$reactspectrumutils.useStyleProps)(props);
|
|
203
|
-
let inputXRef = (0, $aAzec$react.useRef)(null);
|
|
204
|
-
let inputYRef = (0, $aAzec$react.useRef)(null);
|
|
205
|
-
let containerRef = (0, $aAzec$reactspectrumutils.useFocusableRef)(ref, inputXRef);
|
|
206
|
-
let state = (0, $aAzec$reactstatelycolor.useColorAreaState)(props);
|
|
207
|
-
let { colorAreaProps: colorAreaProps, gradientProps: gradientProps, xInputProps: xInputProps, yInputProps: yInputProps, thumbProps: thumbProps } = (0, $aAzec$reactariacolor.useColorArea)({
|
|
208
|
-
...props,
|
|
209
|
-
inputXRef: inputXRef,
|
|
210
|
-
inputYRef: inputYRef,
|
|
211
|
-
containerRef: containerRef
|
|
212
|
-
}, state);
|
|
213
|
-
let { focusProps: focusProps, isFocusVisible: isFocusVisible } = (0, $aAzec$reactariafocus.useFocusRing)();
|
|
214
|
-
return /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("div", {
|
|
215
|
-
...colorAreaProps,
|
|
216
|
-
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($d4b4e0a63f9ca8c1$exports))), "spectrum-ColorArea", {
|
|
217
|
-
"is-disabled": isDisabled
|
|
218
|
-
}, styleProps.className),
|
|
219
|
-
ref: containerRef,
|
|
220
|
-
style: {
|
|
221
|
-
...colorAreaProps.style,
|
|
222
|
-
...styleProps.style,
|
|
223
|
-
// Workaround around https://github.com/adobe/spectrum-css/issues/1032
|
|
224
|
-
width: size,
|
|
225
|
-
height: size
|
|
226
|
-
}
|
|
227
|
-
}, /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("div", {
|
|
228
|
-
...gradientProps,
|
|
229
|
-
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($d4b4e0a63f9ca8c1$exports))), "spectrum-ColorArea-gradient")
|
|
230
|
-
}), /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement((0, $2b9adc23f6c7cae1$export$a3cc47cee1c1ccc), {
|
|
231
|
-
value: state.getDisplayColor(),
|
|
232
|
-
isFocused: isFocusVisible,
|
|
233
|
-
isDisabled: isDisabled,
|
|
234
|
-
isDragging: state.isDragging,
|
|
235
|
-
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($d4b4e0a63f9ca8c1$exports))), "spectrum-ColorArea-handle"),
|
|
236
|
-
...thumbProps
|
|
237
|
-
}, /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("div", {
|
|
238
|
-
role: "presentation"
|
|
239
|
-
}, /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("input", {
|
|
240
|
-
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($d4b4e0a63f9ca8c1$exports))), "spectrum-ColorArea-slider"),
|
|
241
|
-
...(0, $aAzec$reactariautils.mergeProps)(xInputProps, focusProps),
|
|
242
|
-
ref: inputXRef
|
|
243
|
-
}), /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("input", {
|
|
244
|
-
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($d4b4e0a63f9ca8c1$exports))), "spectrum-ColorArea-slider"),
|
|
245
|
-
...(0, $aAzec$reactariautils.mergeProps)(yInputProps, focusProps),
|
|
246
|
-
ref: inputYRef
|
|
247
|
-
}))));
|
|
248
|
-
}
|
|
249
|
-
/**
|
|
250
|
-
* ColorArea allows users to adjust two channels of an RGB, HSL or HSB color value against a two-dimensional gradient background.
|
|
251
|
-
*/ let $5f016e950c2dc3a6$export$b2103f68a961418e = /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).forwardRef($5f016e950c2dc3a6$var$ColorArea);
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
/*
|
|
255
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
256
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
257
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
258
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
259
|
-
*
|
|
260
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
261
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
262
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
263
|
-
* governing permissions and limitations under the License.
|
|
264
|
-
*/
|
|
265
|
-
|
|
266
26
|
|
|
267
|
-
var $8fc6b1a2f4e7f682$exports = {};
|
|
268
27
|
|
|
269
|
-
$parcel$export($8fc6b1a2f4e7f682$exports, "is-disabled", () => $8fc6b1a2f4e7f682$export$d35bc1e505d1ebbf, (v) => $8fc6b1a2f4e7f682$export$d35bc1e505d1ebbf = v);
|
|
270
|
-
$parcel$export($8fc6b1a2f4e7f682$exports, "is-dragged", () => $8fc6b1a2f4e7f682$export$8778c911bed6c759, (v) => $8fc6b1a2f4e7f682$export$8778c911bed6c759 = v);
|
|
271
|
-
$parcel$export($8fc6b1a2f4e7f682$exports, "is-focused", () => $8fc6b1a2f4e7f682$export$e7dc768d35940237, (v) => $8fc6b1a2f4e7f682$export$e7dc768d35940237 = v);
|
|
272
|
-
$parcel$export($8fc6b1a2f4e7f682$exports, "spectrum-ColorControl-hiddenField", () => $8fc6b1a2f4e7f682$export$41ee4f903fc703f9, (v) => $8fc6b1a2f4e7f682$export$41ee4f903fc703f9 = v);
|
|
273
|
-
$parcel$export($8fc6b1a2f4e7f682$exports, "spectrum-ColorWheel", () => $8fc6b1a2f4e7f682$export$b70a5ca28702fbc6, (v) => $8fc6b1a2f4e7f682$export$b70a5ca28702fbc6 = v);
|
|
274
|
-
$parcel$export($8fc6b1a2f4e7f682$exports, "spectrum-ColorWheel-gradient", () => $8fc6b1a2f4e7f682$export$9afaa791d7500a9b, (v) => $8fc6b1a2f4e7f682$export$9afaa791d7500a9b = v);
|
|
275
|
-
$parcel$export($8fc6b1a2f4e7f682$exports, "spectrum-ColorWheel-handle", () => $8fc6b1a2f4e7f682$export$4cd23920eb8ac056, (v) => $8fc6b1a2f4e7f682$export$4cd23920eb8ac056 = v);
|
|
276
|
-
$parcel$export($8fc6b1a2f4e7f682$exports, "spectrum-ColorWheel-segment", () => $8fc6b1a2f4e7f682$export$ada9fbffdaa4f10, (v) => $8fc6b1a2f4e7f682$export$ada9fbffdaa4f10 = v);
|
|
277
|
-
$parcel$export($8fc6b1a2f4e7f682$exports, "spectrum-ColorWheel-slider", () => $8fc6b1a2f4e7f682$export$f476ddda713d62b, (v) => $8fc6b1a2f4e7f682$export$f476ddda713d62b = v);
|
|
278
|
-
var $8fc6b1a2f4e7f682$export$d35bc1e505d1ebbf;
|
|
279
|
-
var $8fc6b1a2f4e7f682$export$8778c911bed6c759;
|
|
280
|
-
var $8fc6b1a2f4e7f682$export$e7dc768d35940237;
|
|
281
|
-
var $8fc6b1a2f4e7f682$export$41ee4f903fc703f9;
|
|
282
|
-
var $8fc6b1a2f4e7f682$export$b70a5ca28702fbc6;
|
|
283
|
-
var $8fc6b1a2f4e7f682$export$9afaa791d7500a9b;
|
|
284
|
-
var $8fc6b1a2f4e7f682$export$4cd23920eb8ac056;
|
|
285
|
-
var $8fc6b1a2f4e7f682$export$ada9fbffdaa4f10;
|
|
286
|
-
var $8fc6b1a2f4e7f682$export$f476ddda713d62b;
|
|
287
|
-
$8fc6b1a2f4e7f682$export$d35bc1e505d1ebbf = `qPIMxa_is-disabled`;
|
|
288
|
-
$8fc6b1a2f4e7f682$export$8778c911bed6c759 = `qPIMxa_is-dragged`;
|
|
289
|
-
$8fc6b1a2f4e7f682$export$e7dc768d35940237 = `qPIMxa_is-focused`;
|
|
290
|
-
$8fc6b1a2f4e7f682$export$41ee4f903fc703f9 = `qPIMxa_spectrum-ColorControl-hiddenField`;
|
|
291
|
-
$8fc6b1a2f4e7f682$export$b70a5ca28702fbc6 = `qPIMxa_spectrum-ColorWheel`;
|
|
292
|
-
$8fc6b1a2f4e7f682$export$9afaa791d7500a9b = `qPIMxa_spectrum-ColorWheel-gradient`;
|
|
293
|
-
$8fc6b1a2f4e7f682$export$4cd23920eb8ac056 = `qPIMxa_spectrum-ColorWheel-handle`;
|
|
294
|
-
$8fc6b1a2f4e7f682$export$ada9fbffdaa4f10 = `qPIMxa_spectrum-ColorWheel-segment`;
|
|
295
|
-
$8fc6b1a2f4e7f682$export$f476ddda713d62b = `qPIMxa_spectrum-ColorWheel-slider ${$8fc6b1a2f4e7f682$export$41ee4f903fc703f9}`;
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
const $63a2864687444ae1$var$WHEEL_THICKNESS = 24;
|
|
304
|
-
function $63a2864687444ae1$var$ColorWheel(props, ref) {
|
|
305
|
-
props = (0, $aAzec$reactspectrumprovider.useProviderProps)(props);
|
|
306
|
-
let { isDisabled: isDisabled } = props;
|
|
307
|
-
let size = props.size && (0, $aAzec$reactspectrumutils.dimensionValue)(props.size);
|
|
308
|
-
let { styleProps: styleProps } = (0, $aAzec$reactspectrumutils.useStyleProps)(props);
|
|
309
|
-
let inputRef = (0, $aAzec$react.useRef)(null);
|
|
310
|
-
let containerRef = (0, $aAzec$reactspectrumutils.useFocusableRef)(ref, inputRef);
|
|
311
|
-
let [wheelRadius, setWheelRadius] = (0, $aAzec$react.useState)(0);
|
|
312
|
-
let [wheelThickness, setWheelThickness] = (0, $aAzec$react.useState)($63a2864687444ae1$var$WHEEL_THICKNESS);
|
|
313
|
-
let resizeHandler = (0, $aAzec$react.useCallback)(()=>{
|
|
314
|
-
if (containerRef.current) {
|
|
315
|
-
setWheelRadius(containerRef.current.offsetWidth / 2);
|
|
316
|
-
let thickness = window.getComputedStyle(containerRef.current).getPropertyValue("--spectrum-colorwheel-track-thickness");
|
|
317
|
-
if (thickness) setWheelThickness(parseInt(thickness, 10));
|
|
318
|
-
}
|
|
319
|
-
}, [
|
|
320
|
-
containerRef,
|
|
321
|
-
setWheelRadius,
|
|
322
|
-
setWheelThickness
|
|
323
|
-
]);
|
|
324
|
-
(0, $aAzec$react.useEffect)(()=>{
|
|
325
|
-
// the size observer's fallback to the window resize event doesn't fire on mount
|
|
326
|
-
if (wheelRadius === 0) resizeHandler();
|
|
327
|
-
}, [
|
|
328
|
-
wheelRadius,
|
|
329
|
-
resizeHandler
|
|
330
|
-
]);
|
|
331
|
-
(0, $aAzec$reactariautils.useResizeObserver)({
|
|
332
|
-
ref: containerRef,
|
|
333
|
-
onResize: resizeHandler
|
|
334
|
-
});
|
|
335
|
-
let state = (0, $aAzec$reactstatelycolor.useColorWheelState)(props);
|
|
336
|
-
let { trackProps: trackProps, inputProps: inputProps, thumbProps: thumbProps } = (0, $aAzec$reactariacolor.useColorWheel)({
|
|
337
|
-
...props,
|
|
338
|
-
innerRadius: wheelRadius - wheelThickness,
|
|
339
|
-
outerRadius: wheelRadius
|
|
340
|
-
}, state, inputRef);
|
|
341
|
-
let { focusProps: focusProps, isFocusVisible: isFocusVisible } = (0, $aAzec$reactariafocus.useFocusRing)();
|
|
342
|
-
return /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("div", {
|
|
343
|
-
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($8fc6b1a2f4e7f682$exports))), "spectrum-ColorWheel", {
|
|
344
|
-
"is-disabled": isDisabled
|
|
345
|
-
}, styleProps.className),
|
|
346
|
-
ref: containerRef,
|
|
347
|
-
style: {
|
|
348
|
-
...styleProps.style,
|
|
349
|
-
// Workaround around https://github.com/adobe/spectrum-css/issues/1032
|
|
350
|
-
// @ts-ignore
|
|
351
|
-
"width": size,
|
|
352
|
-
"height": size
|
|
353
|
-
}
|
|
354
|
-
}, /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("div", {
|
|
355
|
-
...trackProps,
|
|
356
|
-
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($8fc6b1a2f4e7f682$exports))), "spectrum-ColorWheel-gradient")
|
|
357
|
-
}), /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement((0, $2b9adc23f6c7cae1$export$a3cc47cee1c1ccc), {
|
|
358
|
-
value: state.getDisplayColor(),
|
|
359
|
-
isFocused: isFocusVisible,
|
|
360
|
-
isDisabled: isDisabled,
|
|
361
|
-
isDragging: state.isDragging,
|
|
362
|
-
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($8fc6b1a2f4e7f682$exports))), "spectrum-ColorWheel-handle"),
|
|
363
|
-
...thumbProps
|
|
364
|
-
}, /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("input", {
|
|
365
|
-
...focusProps,
|
|
366
|
-
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($8fc6b1a2f4e7f682$exports))), "spectrum-ColorWheel-slider"),
|
|
367
|
-
...inputProps,
|
|
368
|
-
ref: inputRef
|
|
369
|
-
})));
|
|
370
|
-
}
|
|
371
|
-
/**
|
|
372
|
-
* ColorWheels allow users to adjust the hue of an HSL or HSB color value on a circular track.
|
|
373
|
-
*/ let $63a2864687444ae1$export$f80663f808113381 = /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).forwardRef($63a2864687444ae1$var$ColorWheel);
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
/*
|
|
377
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
378
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
379
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
380
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
381
|
-
*
|
|
382
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
383
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
384
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
385
|
-
* governing permissions and limitations under the License.
|
|
386
|
-
*/
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
var $28060baf29cc5ac7$exports = {};
|
|
391
|
-
|
|
392
|
-
$parcel$export($28060baf29cc5ac7$exports, "contextualHelp", () => $28060baf29cc5ac7$export$4ba534aba1836d, (v) => $28060baf29cc5ac7$export$4ba534aba1836d = v);
|
|
393
|
-
$parcel$export($28060baf29cc5ac7$exports, "is-disabled", () => $28060baf29cc5ac7$export$d35bc1e505d1ebbf, (v) => $28060baf29cc5ac7$export$d35bc1e505d1ebbf = v);
|
|
394
|
-
$parcel$export($28060baf29cc5ac7$exports, "is-focused", () => $28060baf29cc5ac7$export$e7dc768d35940237, (v) => $28060baf29cc5ac7$export$e7dc768d35940237 = v);
|
|
395
|
-
$parcel$export($28060baf29cc5ac7$exports, "label", () => $28060baf29cc5ac7$export$1237798dc640739a, (v) => $28060baf29cc5ac7$export$1237798dc640739a = v);
|
|
396
|
-
$parcel$export($28060baf29cc5ac7$exports, "spectrum-ColorControl-hiddenField", () => $28060baf29cc5ac7$export$41ee4f903fc703f9, (v) => $28060baf29cc5ac7$export$41ee4f903fc703f9 = v);
|
|
397
|
-
$parcel$export($28060baf29cc5ac7$exports, "spectrum-ColorSlider", () => $28060baf29cc5ac7$export$a5f8b0989b27a604, (v) => $28060baf29cc5ac7$export$a5f8b0989b27a604 = v);
|
|
398
|
-
$parcel$export($28060baf29cc5ac7$exports, "spectrum-ColorSlider--vertical", () => $28060baf29cc5ac7$export$83dcf61b398bfaf1, (v) => $28060baf29cc5ac7$export$83dcf61b398bfaf1 = v);
|
|
399
|
-
$parcel$export($28060baf29cc5ac7$exports, "spectrum-ColorSlider-container--horizontal", () => $28060baf29cc5ac7$export$33e97914f6746614, (v) => $28060baf29cc5ac7$export$33e97914f6746614 = v);
|
|
400
|
-
$parcel$export($28060baf29cc5ac7$exports, "spectrum-ColorSlider-container--vertical", () => $28060baf29cc5ac7$export$cd1c093289104c66, (v) => $28060baf29cc5ac7$export$cd1c093289104c66 = v);
|
|
401
|
-
$parcel$export($28060baf29cc5ac7$exports, "spectrum-ColorSlider-contextualHelp", () => $28060baf29cc5ac7$export$26ffe4cf5a5aa53c, (v) => $28060baf29cc5ac7$export$26ffe4cf5a5aa53c = v);
|
|
402
|
-
$parcel$export($28060baf29cc5ac7$exports, "spectrum-ColorSlider-handle", () => $28060baf29cc5ac7$export$8c273ba92fabe1f1, (v) => $28060baf29cc5ac7$export$8c273ba92fabe1f1 = v);
|
|
403
|
-
$parcel$export($28060baf29cc5ac7$exports, "spectrum-ColorSlider-labelContainer", () => $28060baf29cc5ac7$export$65139e62047f0361, (v) => $28060baf29cc5ac7$export$65139e62047f0361 = v);
|
|
404
|
-
$parcel$export($28060baf29cc5ac7$exports, "spectrum-ColorSlider-slider", () => $28060baf29cc5ac7$export$2f08b72944af536, (v) => $28060baf29cc5ac7$export$2f08b72944af536 = v);
|
|
405
|
-
$parcel$export($28060baf29cc5ac7$exports, "spectrum-ColorSlider-valueLabel", () => $28060baf29cc5ac7$export$c2fbec5a538c1f81, (v) => $28060baf29cc5ac7$export$c2fbec5a538c1f81 = v);
|
|
406
|
-
$parcel$export($28060baf29cc5ac7$exports, "value", () => $28060baf29cc5ac7$export$2ab9a8f9f1186f14, (v) => $28060baf29cc5ac7$export$2ab9a8f9f1186f14 = v);
|
|
407
|
-
var $28060baf29cc5ac7$export$4ba534aba1836d;
|
|
408
|
-
var $28060baf29cc5ac7$export$d35bc1e505d1ebbf;
|
|
409
|
-
var $28060baf29cc5ac7$export$e7dc768d35940237;
|
|
410
|
-
var $28060baf29cc5ac7$export$1237798dc640739a;
|
|
411
|
-
var $28060baf29cc5ac7$export$41ee4f903fc703f9;
|
|
412
|
-
var $28060baf29cc5ac7$export$a5f8b0989b27a604;
|
|
413
|
-
var $28060baf29cc5ac7$export$83dcf61b398bfaf1;
|
|
414
|
-
var $28060baf29cc5ac7$export$33e97914f6746614;
|
|
415
|
-
var $28060baf29cc5ac7$export$cd1c093289104c66;
|
|
416
|
-
var $28060baf29cc5ac7$export$26ffe4cf5a5aa53c;
|
|
417
|
-
var $28060baf29cc5ac7$export$8c273ba92fabe1f1;
|
|
418
|
-
var $28060baf29cc5ac7$export$65139e62047f0361;
|
|
419
|
-
var $28060baf29cc5ac7$export$2f08b72944af536;
|
|
420
|
-
var $28060baf29cc5ac7$export$c2fbec5a538c1f81;
|
|
421
|
-
var $28060baf29cc5ac7$export$2ab9a8f9f1186f14;
|
|
422
|
-
$28060baf29cc5ac7$export$4ba534aba1836d = `WJOmgG_contextualHelp`;
|
|
423
|
-
$28060baf29cc5ac7$export$d35bc1e505d1ebbf = `WJOmgG_is-disabled`;
|
|
424
|
-
$28060baf29cc5ac7$export$e7dc768d35940237 = `WJOmgG_is-focused`;
|
|
425
|
-
$28060baf29cc5ac7$export$1237798dc640739a = `WJOmgG_label`;
|
|
426
|
-
$28060baf29cc5ac7$export$41ee4f903fc703f9 = `WJOmgG_spectrum-ColorControl-hiddenField`;
|
|
427
|
-
$28060baf29cc5ac7$export$a5f8b0989b27a604 = `WJOmgG_spectrum-ColorSlider`;
|
|
428
|
-
$28060baf29cc5ac7$export$83dcf61b398bfaf1 = `WJOmgG_spectrum-ColorSlider--vertical`;
|
|
429
|
-
$28060baf29cc5ac7$export$33e97914f6746614 = `WJOmgG_spectrum-ColorSlider-container--horizontal`;
|
|
430
|
-
$28060baf29cc5ac7$export$cd1c093289104c66 = `WJOmgG_spectrum-ColorSlider-container--vertical`;
|
|
431
|
-
$28060baf29cc5ac7$export$26ffe4cf5a5aa53c = `WJOmgG_spectrum-ColorSlider-contextualHelp`;
|
|
432
|
-
$28060baf29cc5ac7$export$8c273ba92fabe1f1 = `WJOmgG_spectrum-ColorSlider-handle`;
|
|
433
|
-
$28060baf29cc5ac7$export$65139e62047f0361 = `WJOmgG_spectrum-ColorSlider-labelContainer`;
|
|
434
|
-
$28060baf29cc5ac7$export$2f08b72944af536 = `WJOmgG_spectrum-ColorSlider-slider ${$28060baf29cc5ac7$export$41ee4f903fc703f9}`;
|
|
435
|
-
$28060baf29cc5ac7$export$c2fbec5a538c1f81 = `WJOmgG_spectrum-ColorSlider-valueLabel`;
|
|
436
|
-
$28060baf29cc5ac7$export$2ab9a8f9f1186f14 = `WJOmgG_value`;
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
function $4537dec0de08c277$var$ColorSlider(props, ref) {
|
|
445
|
-
props = (0, $aAzec$reactspectrumprovider.useProviderProps)(props);
|
|
446
|
-
let { isDisabled: isDisabled, channel: channel, orientation: orientation, label: label, showValueLabel: showValueLabel, "aria-label": ariaLabel } = props;
|
|
447
|
-
let vertical = orientation === "vertical";
|
|
448
|
-
let { styleProps: styleProps } = (0, $aAzec$reactspectrumutils.useStyleProps)(props);
|
|
449
|
-
let { locale: locale } = (0, $aAzec$reactariai18n.useLocale)();
|
|
450
|
-
let inputRef = (0, $aAzec$react.useRef)(null);
|
|
451
|
-
let trackRef = (0, $aAzec$react.useRef)(null);
|
|
452
|
-
let domRef = (0, $aAzec$reactspectrumutils.useFocusableRef)(ref, inputRef);
|
|
453
|
-
let state = (0, $aAzec$reactstatelycolor.useColorSliderState)({
|
|
454
|
-
...props,
|
|
455
|
-
locale: locale
|
|
456
|
-
});
|
|
457
|
-
// If vertical and a label is provided, use it as an aria-label instead.
|
|
458
|
-
if (vertical && label) {
|
|
459
|
-
ariaLabel = ariaLabel || (typeof label === "string" ? label : undefined);
|
|
460
|
-
label = null;
|
|
461
|
-
}
|
|
462
|
-
// If no external label, aria-label or aria-labelledby is provided,
|
|
463
|
-
// default to displaying the localized channel value.
|
|
464
|
-
// Specifically check if label is undefined. If label is `null` then display no visible label.
|
|
465
|
-
// A default aria-label is provided by useColorSlider in that case.
|
|
466
|
-
if (label === undefined && !ariaLabel && !props["aria-labelledby"] && !vertical) label = state.value.getChannelName(channel, locale);
|
|
467
|
-
// Show the value label by default if there is a visible label
|
|
468
|
-
if (showValueLabel == null) showValueLabel = !!label;
|
|
469
|
-
let { inputProps: inputProps, thumbProps: thumbProps, trackProps: trackProps, labelProps: labelProps, outputProps: outputProps } = (0, $aAzec$reactariacolor.useColorSlider)({
|
|
470
|
-
...props,
|
|
471
|
-
label: label,
|
|
472
|
-
"aria-label": ariaLabel,
|
|
473
|
-
trackRef: trackRef,
|
|
474
|
-
inputRef: inputRef
|
|
475
|
-
}, state);
|
|
476
|
-
let { isFocusVisible: isFocusVisible } = (0, $aAzec$reactariainteractions.useFocusVisible)();
|
|
477
|
-
let [isFocused, setIsFocused] = (0, $aAzec$react.useState)(false);
|
|
478
|
-
let { focusProps: focusProps } = (0, $aAzec$reactariainteractions.useFocus)({
|
|
479
|
-
isDisabled: isDisabled,
|
|
480
|
-
onFocusChange: setIsFocused
|
|
481
|
-
});
|
|
482
|
-
return /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("div", {
|
|
483
|
-
ref: domRef,
|
|
484
|
-
...styleProps,
|
|
485
|
-
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($28060baf29cc5ac7$exports))), {
|
|
486
|
-
"spectrum-ColorSlider-container--horizontal": !vertical,
|
|
487
|
-
"spectrum-ColorSlider-container--vertical": vertical
|
|
488
|
-
})
|
|
489
|
-
}, label && /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("div", {
|
|
490
|
-
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($28060baf29cc5ac7$exports))), "spectrum-ColorSlider-labelContainer")
|
|
491
|
-
}, /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement((0, $aAzec$reactspectrumlabel.Label), labelProps, label), props.contextualHelp && /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement((0, $aAzec$reactspectrumutils.SlotProvider), {
|
|
492
|
-
slots: {
|
|
493
|
-
actionButton: {
|
|
494
|
-
UNSAFE_className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($28060baf29cc5ac7$exports))), "spectrum-ColorSlider-contextualHelp")
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
}, props.contextualHelp), showValueLabel && /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement((0, $aAzec$reactspectrumlabel.Label), {
|
|
498
|
-
elementType: "span",
|
|
499
|
-
UNSAFE_className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($28060baf29cc5ac7$exports))), "spectrum-ColorSlider-valueLabel")
|
|
500
|
-
}, /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("output", outputProps, state.value.formatChannelValue(channel, locale)))), /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("div", {
|
|
501
|
-
...trackProps,
|
|
502
|
-
ref: trackRef,
|
|
503
|
-
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($28060baf29cc5ac7$exports))), "spectrum-ColorSlider", {
|
|
504
|
-
"is-disabled": isDisabled,
|
|
505
|
-
"spectrum-ColorSlider--vertical": vertical
|
|
506
|
-
})
|
|
507
|
-
}, /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement((0, $2b9adc23f6c7cae1$export$a3cc47cee1c1ccc), {
|
|
508
|
-
value: state.getDisplayColor(),
|
|
509
|
-
isFocused: isFocused && isFocusVisible,
|
|
510
|
-
isDisabled: isDisabled,
|
|
511
|
-
isDragging: state.isThumbDragging(0),
|
|
512
|
-
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($28060baf29cc5ac7$exports))), "spectrum-ColorSlider-handle"),
|
|
513
|
-
...thumbProps
|
|
514
|
-
}, /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement("input", {
|
|
515
|
-
...inputProps,
|
|
516
|
-
...focusProps,
|
|
517
|
-
ref: inputRef,
|
|
518
|
-
className: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($28060baf29cc5ac7$exports))), "spectrum-ColorSlider-slider")
|
|
519
|
-
}))));
|
|
520
|
-
}
|
|
521
|
-
/**
|
|
522
|
-
* ColorSliders allow users to adjust an individual channel of a color value.
|
|
523
|
-
*/ let $4537dec0de08c277$export$44fd664bcca5b6fb = /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).forwardRef($4537dec0de08c277$var$ColorSlider);
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
/*
|
|
527
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
528
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
529
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
530
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
531
|
-
*
|
|
532
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
533
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
534
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
535
|
-
* governing permissions and limitations under the License.
|
|
536
|
-
*/
|
|
537
|
-
|
|
538
|
-
var $ddec4d6aa21146c4$exports = {};
|
|
539
|
-
|
|
540
|
-
$parcel$export($ddec4d6aa21146c4$exports, "react-spectrum-ColorField-input", () => $ddec4d6aa21146c4$export$7d80c6630a750b1, (v) => $ddec4d6aa21146c4$export$7d80c6630a750b1 = v);
|
|
541
|
-
var $ddec4d6aa21146c4$export$7d80c6630a750b1;
|
|
542
|
-
$ddec4d6aa21146c4$export$7d80c6630a750b1 = `UccskW_react-spectrum-ColorField-input`;
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
function $8bdb9bc27ff3debb$var$ColorField(props, ref) {
|
|
551
|
-
props = (0, $aAzec$reactspectrumprovider.useProviderProps)(props);
|
|
552
|
-
props = (0, $aAzec$reactspectrumform.useFormProps)(props);
|
|
553
|
-
let { value: // These disabled props are handled by the state hook
|
|
554
|
-
value, defaultValue: defaultValue, onChange: onChange, ...otherProps } = props;
|
|
555
|
-
let state = (0, $aAzec$reactstatelycolor.useColorFieldState)(props);
|
|
556
|
-
let inputRef = (0, $aAzec$react.useRef)(null);
|
|
557
|
-
let result = (0, $aAzec$reactariacolor.useColorField)(otherProps, state, inputRef);
|
|
558
|
-
if (props.placeholder) console.warn("Placeholders are deprecated due to accessibility issues. Please use help text instead. See the docs for details: https://react-spectrum.adobe.com/react-spectrum/ColorField.html#help-text");
|
|
559
|
-
return /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).createElement((0, $aAzec$reactspectrumtextfield.TextFieldBase), {
|
|
560
|
-
...otherProps,
|
|
561
|
-
ref: ref,
|
|
562
|
-
inputRef: inputRef,
|
|
563
|
-
...result,
|
|
564
|
-
inputClassName: (0, $aAzec$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($ddec4d6aa21146c4$exports))), "react-spectrum-ColorField-input")
|
|
565
|
-
});
|
|
566
|
-
}
|
|
567
|
-
/**
|
|
568
|
-
* ColorFields allow users to enter a color in #rrggbb hexadecimal format.
|
|
569
|
-
*/ const $8bdb9bc27ff3debb$export$b865d4358897bb17 = /*#__PURE__*/ (0, ($parcel$interopDefault($aAzec$react))).forwardRef($8bdb9bc27ff3debb$var$ColorField);
|
|
570
28
|
|
|
571
29
|
|
|
572
30
|
|