@react-spectrum/color 3.0.0-beta.32 → 3.0.0-beta.33
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 +98 -0
- package/dist/ColorArea.main.js.map +1 -0
- package/dist/ColorArea.mjs +93 -0
- package/dist/ColorArea.module.js +93 -0
- package/dist/ColorArea.module.js.map +1 -0
- package/dist/ColorEditor.32e497e8.css +20 -0
- package/dist/ColorEditor.32e497e8.css.map +1 -0
- package/dist/ColorEditor.main.js +116 -0
- package/dist/ColorEditor.main.js.map +1 -0
- package/dist/ColorEditor.mjs +111 -0
- package/dist/ColorEditor.module.js +111 -0
- package/dist/ColorEditor.module.js.map +1 -0
- package/dist/ColorField.main.js +99 -0
- package/dist/ColorField.main.js.map +1 -0
- package/dist/ColorField.mjs +94 -0
- package/dist/ColorField.module.js +94 -0
- package/dist/ColorField.module.js.map +1 -0
- package/dist/ColorPicker.ab9f47c0.css +204 -0
- package/dist/ColorPicker.ab9f47c0.css.map +1 -0
- package/dist/ColorPicker.main.js +125 -0
- package/dist/ColorPicker.main.js.map +1 -0
- package/dist/ColorPicker.mjs +116 -0
- package/dist/ColorPicker.module.js +116 -0
- package/dist/ColorPicker.module.js.map +1 -0
- package/dist/ColorSlider.main.js +129 -0
- package/dist/ColorSlider.main.js.map +1 -0
- package/dist/ColorSlider.mjs +124 -0
- package/dist/ColorSlider.module.js +124 -0
- package/dist/ColorSlider.module.js.map +1 -0
- package/dist/ColorSwatch.f6e6f811.css +260 -0
- package/dist/ColorSwatch.f6e6f811.css.map +1 -0
- package/dist/ColorSwatch.main.js +94 -0
- package/dist/ColorSwatch.main.js.map +1 -0
- package/dist/ColorSwatch.mjs +84 -0
- package/dist/ColorSwatch.module.js +84 -0
- package/dist/ColorSwatch.module.js.map +1 -0
- package/dist/ColorSwatchPicker.1575be06.css +356 -0
- package/dist/ColorSwatchPicker.1575be06.css.map +1 -0
- package/dist/ColorSwatchPicker.main.js +115 -0
- package/dist/ColorSwatchPicker.main.js.map +1 -0
- package/dist/ColorSwatchPicker.mjs +106 -0
- package/dist/ColorSwatchPicker.module.js +106 -0
- package/dist/ColorSwatchPicker.module.js.map +1 -0
- package/dist/ColorThumb.main.js +144 -0
- package/dist/ColorThumb.main.js.map +1 -0
- package/dist/ColorThumb.mjs +139 -0
- package/dist/ColorThumb.module.js +139 -0
- package/dist/ColorThumb.module.js.map +1 -0
- package/dist/ColorWheel.main.js +118 -0
- package/dist/ColorWheel.main.js.map +1 -0
- package/dist/ColorWheel.mjs +113 -0
- package/dist/ColorWheel.module.js +113 -0
- package/dist/ColorWheel.module.js.map +1 -0
- package/dist/colorarea_vars_css.main.js +29 -0
- package/dist/colorarea_vars_css.main.js.map +1 -0
- package/dist/colorarea_vars_css.mjs +31 -0
- package/dist/colorarea_vars_css.module.js +31 -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/en-US.main.js +10 -0
- package/dist/en-US.main.js.map +1 -0
- package/dist/en-US.mjs +12 -0
- package/dist/en-US.module.js +12 -0
- package/dist/en-US.module.js.map +1 -0
- package/dist/import.mjs +10 -546
- package/dist/intlStrings.main.js +9 -0
- package/dist/intlStrings.main.js.map +1 -0
- package/dist/intlStrings.mjs +11 -0
- package/dist/intlStrings.module.js +11 -0
- package/dist/intlStrings.module.js.map +1 -0
- package/dist/main.js +18 -544
- package/dist/main.js.map +1 -1
- package/dist/module.js +10 -546
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +77 -6
- package/dist/types.d.ts.map +1 -1
- package/dist/vars.53b417c1.css +75 -0
- package/dist/vars.53b417c1.css.map +1 -0
- package/dist/vars.6fa9fa04.css +93 -0
- package/dist/vars.6fa9fa04.css.map +1 -0
- package/dist/vars.aa07b6d2.css +120 -0
- package/dist/vars.aa07b6d2.css.map +1 -0
- package/dist/vars.ac235018.css +93 -0
- package/dist/vars.ac235018.css.map +1 -0
- package/dist/vars.cc682729.css +41 -0
- package/dist/vars.cc682729.css.map +1 -0
- package/package.json +23 -17
- package/src/ColorArea.tsx +7 -6
- package/src/ColorEditor.tsx +63 -0
- package/src/ColorField.tsx +67 -14
- package/src/ColorPicker.tsx +122 -0
- package/src/ColorSlider.tsx +6 -4
- package/src/ColorSwatch.tsx +102 -0
- package/src/ColorSwatchPicker.tsx +118 -0
- package/src/ColorThumb.tsx +72 -25
- package/src/ColorWheel.tsx +5 -2
- package/src/index.ts +10 -0
- package/dist/main.css +0 -491
- package/dist/main.css.map +0 -1
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import "./ColorEditor.32e497e8.css";
|
|
2
|
+
import {ColorArea as $40046aa1a7ccb226$export$b2103f68a961418e} from "./ColorArea.module.js";
|
|
3
|
+
import {ColorField as $0077d47e004328f0$export$b865d4358897bb17} from "./ColorField.module.js";
|
|
4
|
+
import {ColorSlider as $3870e4ce67ed7ee1$export$44fd664bcca5b6fb} from "./ColorSlider.module.js";
|
|
5
|
+
import $3Vio4$intlStringsmodulejs from "./intlStrings.module.js";
|
|
6
|
+
import {getColorChannels as $3Vio4$getColorChannels} from "@react-stately/color";
|
|
7
|
+
import {Picker as $3Vio4$Picker, Item as $3Vio4$Item} from "@react-spectrum/picker";
|
|
8
|
+
import $3Vio4$react, {useState as $3Vio4$useState} from "react";
|
|
9
|
+
import {useDOMRef as $3Vio4$useDOMRef} from "@react-spectrum/utils";
|
|
10
|
+
import {useLocalizedStringFormatter as $3Vio4$useLocalizedStringFormatter} from "@react-aria/i18n";
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
function $parcel$interopDefault(a) {
|
|
14
|
+
return a && a.__esModule ? a.default : a;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
function $49352c629f2d8349$var$ColorEditor(props, ref) {
|
|
26
|
+
let [format, setFormat] = (0, $3Vio4$useState)("hex");
|
|
27
|
+
let domRef = (0, $3Vio4$useDOMRef)(ref);
|
|
28
|
+
let formatter = (0, $3Vio4$useLocalizedStringFormatter)((0, ($parcel$interopDefault($3Vio4$intlStringsmodulejs))), "@react-spectrum/color");
|
|
29
|
+
return /*#__PURE__*/ (0, $3Vio4$react).createElement("div", {
|
|
30
|
+
className: function anonymous(props) {
|
|
31
|
+
let rules = "";
|
|
32
|
+
rules += " _Sd";
|
|
33
|
+
rules += " _Zb";
|
|
34
|
+
rules += " le";
|
|
35
|
+
rules += " me";
|
|
36
|
+
return rules;
|
|
37
|
+
}(),
|
|
38
|
+
ref: domRef
|
|
39
|
+
}, /*#__PURE__*/ (0, $3Vio4$react).createElement("div", {
|
|
40
|
+
className: function anonymous(props) {
|
|
41
|
+
let rules = "";
|
|
42
|
+
rules += " _Sd";
|
|
43
|
+
rules += " le";
|
|
44
|
+
rules += " me";
|
|
45
|
+
return rules;
|
|
46
|
+
}()
|
|
47
|
+
}, /*#__PURE__*/ (0, $3Vio4$react).createElement((0, $40046aa1a7ccb226$export$b2103f68a961418e), {
|
|
48
|
+
colorSpace: "hsb",
|
|
49
|
+
xChannel: "saturation",
|
|
50
|
+
yChannel: "brightness"
|
|
51
|
+
}), /*#__PURE__*/ (0, $3Vio4$react).createElement((0, $3870e4ce67ed7ee1$export$44fd664bcca5b6fb), {
|
|
52
|
+
colorSpace: "hsb",
|
|
53
|
+
channel: "hue",
|
|
54
|
+
orientation: "vertical"
|
|
55
|
+
}), !props.hideAlphaChannel && /*#__PURE__*/ (0, $3Vio4$react).createElement((0, $3870e4ce67ed7ee1$export$44fd664bcca5b6fb), {
|
|
56
|
+
channel: "alpha",
|
|
57
|
+
orientation: "vertical"
|
|
58
|
+
})), /*#__PURE__*/ (0, $3Vio4$react).createElement("div", {
|
|
59
|
+
className: function anonymous(props) {
|
|
60
|
+
let rules = "";
|
|
61
|
+
rules += " _Sd";
|
|
62
|
+
rules += " le";
|
|
63
|
+
rules += " me";
|
|
64
|
+
return rules;
|
|
65
|
+
}()
|
|
66
|
+
}, /*#__PURE__*/ (0, $3Vio4$react).createElement((0, $3Vio4$Picker), {
|
|
67
|
+
"aria-label": formatter.format("colorFormat"),
|
|
68
|
+
isQuiet: true,
|
|
69
|
+
width: "size-700",
|
|
70
|
+
menuWidth: "size-1000",
|
|
71
|
+
selectedKey: format,
|
|
72
|
+
onSelectionChange: (f)=>setFormat(f)
|
|
73
|
+
}, /*#__PURE__*/ (0, $3Vio4$react).createElement((0, $3Vio4$Item), {
|
|
74
|
+
key: "hex"
|
|
75
|
+
}, formatter.format("hex")), /*#__PURE__*/ (0, $3Vio4$react).createElement((0, $3Vio4$Item), {
|
|
76
|
+
key: "rgb"
|
|
77
|
+
}, formatter.format("rgb")), /*#__PURE__*/ (0, $3Vio4$react).createElement((0, $3Vio4$Item), {
|
|
78
|
+
key: "hsl"
|
|
79
|
+
}, formatter.format("hsl")), /*#__PURE__*/ (0, $3Vio4$react).createElement((0, $3Vio4$Item), {
|
|
80
|
+
key: "hsb"
|
|
81
|
+
}, formatter.format("hsb"))), format === "hex" ? /*#__PURE__*/ (0, $3Vio4$react).createElement((0, $0077d47e004328f0$export$b865d4358897bb17), {
|
|
82
|
+
isQuiet: true,
|
|
83
|
+
width: "size-1000",
|
|
84
|
+
"aria-label": formatter.format("hex")
|
|
85
|
+
}) : (0, $3Vio4$getColorChannels)(format).map((channel)=>/*#__PURE__*/ (0, $3Vio4$react).createElement((0, $0077d47e004328f0$export$b865d4358897bb17), {
|
|
86
|
+
key: channel,
|
|
87
|
+
colorSpace: format === "hex" ? "rgb" : format,
|
|
88
|
+
channel: channel,
|
|
89
|
+
isQuiet: true,
|
|
90
|
+
width: "size-400",
|
|
91
|
+
flex: true,
|
|
92
|
+
UNSAFE_style: {
|
|
93
|
+
"--spectrum-textfield-min-width": 0
|
|
94
|
+
}
|
|
95
|
+
})), !props.hideAlphaChannel && /*#__PURE__*/ (0, $3Vio4$react).createElement((0, $0077d47e004328f0$export$b865d4358897bb17), {
|
|
96
|
+
channel: "alpha",
|
|
97
|
+
isQuiet: true,
|
|
98
|
+
width: "size-400",
|
|
99
|
+
flex: true,
|
|
100
|
+
UNSAFE_style: {
|
|
101
|
+
"--spectrum-textfield-min-width": 0
|
|
102
|
+
}
|
|
103
|
+
})));
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* ColorEditor provides a default UI for editing colors within a ColorPicker.
|
|
107
|
+
*/ let $49352c629f2d8349$export$5aa54fd21eb08d23 = /*#__PURE__*/ (0, $3Vio4$react).forwardRef($49352c629f2d8349$var$ColorEditor);
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
export {$49352c629f2d8349$export$5aa54fd21eb08d23 as ColorEditor};
|
|
111
|
+
//# sourceMappingURL=ColorEditor.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAmBA,SAAS,kCAAY,KAA+B,EAAE,GAA2B;IAC/E,IAAI,CAAC,QAAQ,UAAU,GAAG,CAAA,GAAA,eAAO,EAAsB;IACvD,IAAI,SAAS,CAAA,GAAA,gBAAQ,EAAE;IACvB,IAAI,YAAY,CAAA,GAAA,kCAA0B,EAAE,CAAA,GAAA,oDAAW,GAAG;IAE1D,qBACE,gCAAC;QAAI,WAAW;;;;;;;;QAA6D,KAAK;qBAChF,gCAAC;QAAI,WAAW;;;;;;;qBACd,gCAAC,CAAA,GAAA,yCAAQ;QAAE,YAAW;QAAM,UAAS;QAAa,UAAS;sBAC3D,gCAAC,CAAA,GAAA,yCAAU;QAAE,YAAW;QAAM,SAAQ;QAAM,aAAY;QACvD,CAAC,MAAM,gBAAgB,kBACtB,gCAAC,CAAA,GAAA,yCAAU;QAAE,SAAQ;QAAQ,aAAY;uBAG7C,gCAAC;QAAI,WAAW;;;;;;;qBACd,gCAAC,CAAA,GAAA,aAAK;QACJ,cAAY,UAAU,MAAM,CAAC;QAC7B,SAAA;QACA,OAAM;QACN,WAAU;QACV,aAAa;QACb,mBAAmB,CAAA,IAAK,UAAU;qBAClC,gCAAC,CAAA,GAAA,WAAG;QAAE,KAAI;OAAO,UAAU,MAAM,CAAC,uBAClC,gCAAC,CAAA,GAAA,WAAG;QAAE,KAAI;OAAO,UAAU,MAAM,CAAC,uBAClC,gCAAC,CAAA,GAAA,WAAG;QAAE,KAAI;OAAO,UAAU,MAAM,CAAC,uBAClC,gCAAC,CAAA,GAAA,WAAG;QAAE,KAAI;OAAO,UAAU,MAAM,CAAC,UAEnC,WAAW,sBACR,gCAAC,CAAA,GAAA,yCAAS;QAAE,SAAA;QAAQ,OAAM;QAAY,cAAY,UAAU,MAAM,CAAC;SACnE,CAAA,GAAA,uBAAe,EAAE,QAAQ,GAAG,CAAC,CAAA,wBAC7B,gCAAC,CAAA,GAAA,yCAAS;YAAE,KAAK;YAAS,YAAY,WAAW,QAAQ,QAAQ;YAAQ,SAAS;YAAS,SAAA;YAAQ,OAAM;YAAW,MAAA;YAAK,cAAc;gBAAC,kCAAkC;YAAC;aAE9K,CAAC,MAAM,gBAAgB,kBACtB,gCAAC,CAAA,GAAA,yCAAS;QAAE,SAAQ;QAAQ,SAAA;QAAQ,OAAM;QAAW,MAAA;QAAK,cAAc;YAAC,kCAAkC;QAAC;;AAItH;AAEA;;CAEC,GACD,IAAI,0DAAe,CAAA,GAAA,YAAI,EAAE,UAAU,CAAC","sources":["packages/@react-spectrum/color/src/ColorEditor.tsx"],"sourcesContent":["import {ColorArea} from './ColorArea';\nimport {ColorField} from './ColorField';\nimport {ColorSlider} from './ColorSlider';\nimport {ColorSpace} from '@react-types/color';\nimport {DOMRef} from '@react-types/shared';\nimport {getColorChannels} from '@react-stately/color';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {Item, Picker} from '@react-spectrum/picker';\nimport React, {CSSProperties, useState} from 'react';\nimport {style} from '@react-spectrum/style-macro-s1' with {type: 'macro'};\nimport {useDOMRef} from '@react-spectrum/utils';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\n\nexport interface SpectrumColorEditorProps {\n /** Whether to hide the alpha channel color slider and color field. */\n hideAlphaChannel?: boolean\n}\n\nfunction ColorEditor(props: SpectrumColorEditorProps, ref: DOMRef<HTMLDivElement>) {\n let [format, setFormat] = useState<ColorSpace | 'hex'>('hex');\n let domRef = useDOMRef(ref);\n let formatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/color');\n\n return (\n <div className={style({display: 'flex', flexDirection: 'column', gap: 4})()} ref={domRef}>\n <div className={style({display: 'flex', gap: 4})()}>\n <ColorArea colorSpace=\"hsb\" xChannel=\"saturation\" yChannel=\"brightness\" />\n <ColorSlider colorSpace=\"hsb\" channel=\"hue\" orientation=\"vertical\" />\n {!props.hideAlphaChannel &&\n <ColorSlider channel=\"alpha\" orientation=\"vertical\" />\n }\n </div>\n <div className={style({display: 'flex', gap: 4})()}>\n <Picker \n aria-label={formatter.format('colorFormat')}\n isQuiet\n width=\"size-700\"\n menuWidth=\"size-1000\"\n selectedKey={format}\n onSelectionChange={f => setFormat(f as typeof format)}>\n <Item key=\"hex\">{formatter.format('hex')}</Item>\n <Item key=\"rgb\">{formatter.format('rgb')}</Item>\n <Item key=\"hsl\">{formatter.format('hsl')}</Item>\n <Item key=\"hsb\">{formatter.format('hsb')}</Item>\n </Picker>\n {format === 'hex'\n ? <ColorField isQuiet width=\"size-1000\" aria-label={formatter.format('hex')} />\n : getColorChannels(format).map(channel => (\n <ColorField key={channel} colorSpace={format === 'hex' ? 'rgb' : format} channel={channel} isQuiet width=\"size-400\" flex UNSAFE_style={{'--spectrum-textfield-min-width': 0} as CSSProperties} />\n ))}\n {!props.hideAlphaChannel &&\n <ColorField channel=\"alpha\" isQuiet width=\"size-400\" flex UNSAFE_style={{'--spectrum-textfield-min-width': 0} as CSSProperties} />}\n </div>\n </div>\n );\n}\n\n/**\n * ColorEditor provides a default UI for editing colors within a ColorPicker.\n */\nlet _ColorEditor = React.forwardRef(ColorEditor);\nexport {_ColorEditor as ColorEditor};\n"],"names":[],"version":3,"file":"ColorEditor.module.js.map"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
require("./colorfield.faeff3c2.css");
|
|
2
|
+
var $ddec4d6aa21146c4$exports = require("./colorfield_css.main.js");
|
|
3
|
+
var $4ivT8$reactspectrumutils = require("@react-spectrum/utils");
|
|
4
|
+
var $4ivT8$reactariacomponents = require("react-aria-components");
|
|
5
|
+
var $4ivT8$react = require("react");
|
|
6
|
+
var $4ivT8$reactspectrumtextfield = require("@react-spectrum/textfield");
|
|
7
|
+
var $4ivT8$reactariacolor = require("@react-aria/color");
|
|
8
|
+
var $4ivT8$reactstatelycolor = require("@react-stately/color");
|
|
9
|
+
var $4ivT8$reactspectrumform = require("@react-spectrum/form");
|
|
10
|
+
var $4ivT8$reactariai18n = require("@react-aria/i18n");
|
|
11
|
+
var $4ivT8$reactspectrumprovider = require("@react-spectrum/provider");
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
function $parcel$interopDefault(a) {
|
|
15
|
+
return a && a.__esModule ? a.default : a;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function $parcel$export(e, n, v, s) {
|
|
19
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
$parcel$export(module.exports, "ColorField", () => $8bdb9bc27ff3debb$export$b865d4358897bb17);
|
|
23
|
+
/*
|
|
24
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
25
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
26
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
27
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
28
|
+
*
|
|
29
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
30
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
31
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
32
|
+
* governing permissions and limitations under the License.
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
function $8bdb9bc27ff3debb$var$ColorField(props, ref) {
|
|
44
|
+
props = (0, $4ivT8$reactspectrumprovider.useProviderProps)(props);
|
|
45
|
+
props = (0, $4ivT8$reactspectrumform.useFormProps)(props);
|
|
46
|
+
[props] = (0, $4ivT8$reactariacomponents.useContextProps)(props, null, (0, $4ivT8$reactariacomponents.ColorFieldContext));
|
|
47
|
+
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");
|
|
48
|
+
if (props.channel) return /*#__PURE__*/ (0, ($parcel$interopDefault($4ivT8$react))).createElement($8bdb9bc27ff3debb$var$ColorChannelField, {
|
|
49
|
+
...props,
|
|
50
|
+
channel: props.channel,
|
|
51
|
+
forwardedRef: ref
|
|
52
|
+
});
|
|
53
|
+
else return /*#__PURE__*/ (0, ($parcel$interopDefault($4ivT8$react))).createElement($8bdb9bc27ff3debb$var$HexColorField, {
|
|
54
|
+
...props,
|
|
55
|
+
forwardedRef: ref
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* A color field allows users to edit a hex color or individual color channel value.
|
|
60
|
+
*/ const $8bdb9bc27ff3debb$export$b865d4358897bb17 = /*#__PURE__*/ (0, ($parcel$interopDefault($4ivT8$react))).forwardRef($8bdb9bc27ff3debb$var$ColorField);
|
|
61
|
+
function $8bdb9bc27ff3debb$var$ColorChannelField(props) {
|
|
62
|
+
let { value: // These disabled props are handled by the state hook
|
|
63
|
+
value, defaultValue: defaultValue, onChange: onChange, validate: validate, forwardedRef: forwardedRef, ...otherProps } = props;
|
|
64
|
+
let { locale: locale } = (0, $4ivT8$reactariai18n.useLocale)();
|
|
65
|
+
let state = (0, $4ivT8$reactstatelycolor.useColorChannelFieldState)({
|
|
66
|
+
...props,
|
|
67
|
+
locale: locale
|
|
68
|
+
});
|
|
69
|
+
let inputRef = (0, $4ivT8$react.useRef)(null);
|
|
70
|
+
let result = (0, $4ivT8$reactariacolor.useColorChannelField)(otherProps, state, inputRef);
|
|
71
|
+
return /*#__PURE__*/ (0, ($parcel$interopDefault($4ivT8$react))).createElement((0, ($parcel$interopDefault($4ivT8$react))).Fragment, null, /*#__PURE__*/ (0, ($parcel$interopDefault($4ivT8$react))).createElement((0, $4ivT8$reactspectrumtextfield.TextFieldBase), {
|
|
72
|
+
...otherProps,
|
|
73
|
+
ref: forwardedRef,
|
|
74
|
+
inputRef: inputRef,
|
|
75
|
+
...result,
|
|
76
|
+
inputClassName: (0, $4ivT8$reactspectrumutils.classNames)((0, ($parcel$interopDefault($ddec4d6aa21146c4$exports))), "react-spectrum-ColorField-input")
|
|
77
|
+
}), props.name && /*#__PURE__*/ (0, ($parcel$interopDefault($4ivT8$react))).createElement("input", {
|
|
78
|
+
type: "hidden",
|
|
79
|
+
name: props.name,
|
|
80
|
+
value: isNaN(state.numberValue) ? "" : state.numberValue
|
|
81
|
+
}));
|
|
82
|
+
}
|
|
83
|
+
function $8bdb9bc27ff3debb$var$HexColorField(props) {
|
|
84
|
+
let { value: // These disabled props are handled by the state hook
|
|
85
|
+
value, defaultValue: defaultValue, onChange: onChange, forwardedRef: forwardedRef, ...otherProps } = props;
|
|
86
|
+
let state = (0, $4ivT8$reactstatelycolor.useColorFieldState)(props);
|
|
87
|
+
let inputRef = (0, $4ivT8$react.useRef)(null);
|
|
88
|
+
let result = (0, $4ivT8$reactariacolor.useColorField)(otherProps, state, inputRef);
|
|
89
|
+
return /*#__PURE__*/ (0, ($parcel$interopDefault($4ivT8$react))).createElement((0, $4ivT8$reactspectrumtextfield.TextFieldBase), {
|
|
90
|
+
...otherProps,
|
|
91
|
+
ref: forwardedRef,
|
|
92
|
+
inputRef: inputRef,
|
|
93
|
+
...result,
|
|
94
|
+
inputClassName: (0, $4ivT8$reactspectrumutils.classNames)((0, ($parcel$interopDefault($ddec4d6aa21146c4$exports))), "react-spectrum-ColorField-input")
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
//# sourceMappingURL=ColorField.main.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;;AAeD,SAAS,iCAAW,KAA8B,EAAE,GAAsB;IACxE,QAAQ,CAAA,GAAA,6CAAe,EAAE;IACzB,QAAQ,CAAA,GAAA,qCAAW,EAAE;IACrB,CAAC,MAAM,GAAG,CAAA,GAAA,0CAAc,EAAE,OAAO,MAAM,CAAA,GAAA,4CAAgB;IACvD,IAAI,MAAM,WAAW,EACnB,QAAQ,IAAI,CAAC;IAGf,IAAI,MAAM,OAAO,EACf,qBAAO,0DAAC;QAAmB,GAAG,KAAK;QAAE,SAAS,MAAM,OAAO;QAAE,cAAc;;SAE3E,qBAAO,0DAAC;QAAe,GAAG,KAAK;QAAE,cAAc;;AAEnD;AAEA;;CAEC,GACD,MAAM,0DAAc,CAAA,GAAA,sCAAI,EAAE,UAAU,CAAC;AAQrC,SAAS,wCAAkB,KAA6B;IACtD,IAAI,SACF,qDAAqD;IACrD,KAAK,gBACL,YAAY,YACZ,QAAQ,YACR,QAAQ,gBACR,YAAY,EACZ,GAAG,YACJ,GAAG;IACJ,IAAI,UAAC,MAAM,EAAC,GAAG,CAAA,GAAA,8BAAQ;IACvB,IAAI,QAAQ,CAAA,GAAA,kDAAwB,EAAE;QACpC,GAAG,KAAK;gBACR;IACF;IAEA,IAAI,WAAW,CAAA,GAAA,mBAAK,EAA0C;IAC9D,IAAI,SAAS,CAAA,GAAA,0CAAmB,EAAE,YAAY,OAAO;IAErD,qBACE,oIACE,0DAAC,CAAA,GAAA,2CAAY;QACV,GAAG,UAAU;QACd,KAAK;QACL,UAAU;QACT,GAAG,MAAM;QACV,gBAAgB,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,mDAAK,GAAG;QACpC,MAAM,IAAI,kBAAI,0DAAC;QAAM,MAAK;QAAS,MAAM,MAAM,IAAI;QAAE,OAAO,MAAM,MAAM,WAAW,IAAI,KAAK,MAAM,WAAW;;AAGpH;AAMA,SAAS,oCAAc,KAAyB;IAC9C,IAAI,SACF,qDAAqD;IACrD,KAAK,gBACL,YAAY,YACZ,QAAQ,gBACR,YAAY,EACZ,GAAG,YACJ,GAAG;IACJ,IAAI,QAAQ,CAAA,GAAA,2CAAiB,EAAE;IAC/B,IAAI,WAAW,CAAA,GAAA,mBAAK,EAA0C;IAC9D,IAAI,SAAS,CAAA,GAAA,mCAAY,EAAE,YAAY,OAAO;IAE9C,qBACE,0DAAC,CAAA,GAAA,2CAAY;QACV,GAAG,UAAU;QACd,KAAK;QACL,UAAU;QACT,GAAG,MAAM;QACV,gBAAgB,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,mDAAK,GAAG;;AAEzC","sources":["packages/@react-spectrum/color/src/ColorField.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} from '@react-spectrum/utils';\nimport {ColorChannel, SpectrumColorFieldProps} from '@react-types/color';\nimport {ColorFieldContext, useContextProps} from 'react-aria-components';\nimport React, {Ref, useRef} from 'react';\nimport styles from './colorfield.css';\nimport {TextFieldBase} from '@react-spectrum/textfield';\nimport {TextFieldRef} from '@react-types/textfield';\nimport {useColorChannelField, useColorField} from '@react-aria/color';\nimport {useColorChannelFieldState, useColorFieldState} from '@react-stately/color';\nimport {useFormProps} from '@react-spectrum/form';\nimport {useLocale} from '@react-aria/i18n';\nimport {useProviderProps} from '@react-spectrum/provider';\n\nfunction ColorField(props: SpectrumColorFieldProps, ref: Ref<TextFieldRef>) {\n props = useProviderProps(props);\n props = useFormProps(props);\n [props] = useContextProps(props, null, ColorFieldContext);\n if (props.placeholder) {\n 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');\n }\n\n if (props.channel) {\n return <ColorChannelField {...props} channel={props.channel} forwardedRef={ref} />;\n } else {\n return <HexColorField {...props} forwardedRef={ref} />;\n }\n}\n\n/**\n * A color field allows users to edit a hex color or individual color channel value.\n */\nconst _ColorField = React.forwardRef(ColorField);\nexport {_ColorField as ColorField};\n\ninterface ColorChannelFieldProps extends Omit<SpectrumColorFieldProps, 'channel'> {\n channel: ColorChannel,\n forwardedRef: Ref<TextFieldRef>\n}\n\nfunction ColorChannelField(props: ColorChannelFieldProps) {\n let {\n // These disabled props are handled by the state hook\n value, // eslint-disable-line @typescript-eslint/no-unused-vars\n defaultValue, // eslint-disable-line @typescript-eslint/no-unused-vars\n onChange, // eslint-disable-line @typescript-eslint/no-unused-vars\n validate, // eslint-disable-line @typescript-eslint/no-unused-vars\n forwardedRef,\n ...otherProps\n } = props;\n let {locale} = useLocale();\n let state = useColorChannelFieldState({\n ...props,\n locale\n });\n\n let inputRef = useRef<HTMLInputElement & HTMLTextAreaElement>(null);\n let result = useColorChannelField(otherProps, state, inputRef);\n\n return (\n <>\n <TextFieldBase\n {...otherProps}\n ref={forwardedRef}\n inputRef={inputRef}\n {...result}\n inputClassName={classNames(styles, 'react-spectrum-ColorField-input')} />\n {props.name && <input type=\"hidden\" name={props.name} value={isNaN(state.numberValue) ? '' : state.numberValue} />}\n </>\n );\n}\n\ninterface HexColorFieldProps extends SpectrumColorFieldProps {\n forwardedRef: Ref<TextFieldRef>\n}\n\nfunction HexColorField(props: HexColorFieldProps) {\n let {\n // These disabled props are handled by the state hook\n value, // eslint-disable-line @typescript-eslint/no-unused-vars\n defaultValue, // eslint-disable-line @typescript-eslint/no-unused-vars\n onChange, // eslint-disable-line @typescript-eslint/no-unused-vars\n forwardedRef,\n ...otherProps\n } = props;\n let state = useColorFieldState(props);\n let inputRef = useRef<HTMLInputElement & HTMLTextAreaElement>(null);\n let result = useColorField(otherProps, state, inputRef);\n\n return (\n <TextFieldBase\n {...otherProps}\n ref={forwardedRef}\n inputRef={inputRef}\n {...result}\n inputClassName={classNames(styles, 'react-spectrum-ColorField-input')} />\n );\n}\n"],"names":[],"version":3,"file":"ColorField.main.js.map"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import "./colorfield.faeff3c2.css";
|
|
2
|
+
import $b4uus$colorfield_cssmodulejs from "./colorfield_css.mjs";
|
|
3
|
+
import {classNames as $b4uus$classNames} from "@react-spectrum/utils";
|
|
4
|
+
import {useContextProps as $b4uus$useContextProps, ColorFieldContext as $b4uus$ColorFieldContext} from "react-aria-components";
|
|
5
|
+
import $b4uus$react, {useRef as $b4uus$useRef} from "react";
|
|
6
|
+
import {TextFieldBase as $b4uus$TextFieldBase} from "@react-spectrum/textfield";
|
|
7
|
+
import {useColorChannelField as $b4uus$useColorChannelField, useColorField as $b4uus$useColorField} from "@react-aria/color";
|
|
8
|
+
import {useColorChannelFieldState as $b4uus$useColorChannelFieldState, useColorFieldState as $b4uus$useColorFieldState} from "@react-stately/color";
|
|
9
|
+
import {useFormProps as $b4uus$useFormProps} from "@react-spectrum/form";
|
|
10
|
+
import {useLocale as $b4uus$useLocale} from "@react-aria/i18n";
|
|
11
|
+
import {useProviderProps as $b4uus$useProviderProps} from "@react-spectrum/provider";
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
function $parcel$interopDefault(a) {
|
|
15
|
+
return a && a.__esModule ? a.default : a;
|
|
16
|
+
}
|
|
17
|
+
/*
|
|
18
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
19
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
20
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
21
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
22
|
+
*
|
|
23
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
24
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
25
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
26
|
+
* governing permissions and limitations under the License.
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
function $0077d47e004328f0$var$ColorField(props, ref) {
|
|
38
|
+
props = (0, $b4uus$useProviderProps)(props);
|
|
39
|
+
props = (0, $b4uus$useFormProps)(props);
|
|
40
|
+
[props] = (0, $b4uus$useContextProps)(props, null, (0, $b4uus$ColorFieldContext));
|
|
41
|
+
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");
|
|
42
|
+
if (props.channel) return /*#__PURE__*/ (0, $b4uus$react).createElement($0077d47e004328f0$var$ColorChannelField, {
|
|
43
|
+
...props,
|
|
44
|
+
channel: props.channel,
|
|
45
|
+
forwardedRef: ref
|
|
46
|
+
});
|
|
47
|
+
else return /*#__PURE__*/ (0, $b4uus$react).createElement($0077d47e004328f0$var$HexColorField, {
|
|
48
|
+
...props,
|
|
49
|
+
forwardedRef: ref
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* A color field allows users to edit a hex color or individual color channel value.
|
|
54
|
+
*/ const $0077d47e004328f0$export$b865d4358897bb17 = /*#__PURE__*/ (0, $b4uus$react).forwardRef($0077d47e004328f0$var$ColorField);
|
|
55
|
+
function $0077d47e004328f0$var$ColorChannelField(props) {
|
|
56
|
+
let { value: // These disabled props are handled by the state hook
|
|
57
|
+
value, defaultValue: defaultValue, onChange: onChange, validate: validate, forwardedRef: forwardedRef, ...otherProps } = props;
|
|
58
|
+
let { locale: locale } = (0, $b4uus$useLocale)();
|
|
59
|
+
let state = (0, $b4uus$useColorChannelFieldState)({
|
|
60
|
+
...props,
|
|
61
|
+
locale: locale
|
|
62
|
+
});
|
|
63
|
+
let inputRef = (0, $b4uus$useRef)(null);
|
|
64
|
+
let result = (0, $b4uus$useColorChannelField)(otherProps, state, inputRef);
|
|
65
|
+
return /*#__PURE__*/ (0, $b4uus$react).createElement((0, $b4uus$react).Fragment, null, /*#__PURE__*/ (0, $b4uus$react).createElement((0, $b4uus$TextFieldBase), {
|
|
66
|
+
...otherProps,
|
|
67
|
+
ref: forwardedRef,
|
|
68
|
+
inputRef: inputRef,
|
|
69
|
+
...result,
|
|
70
|
+
inputClassName: (0, $b4uus$classNames)((0, ($parcel$interopDefault($b4uus$colorfield_cssmodulejs))), "react-spectrum-ColorField-input")
|
|
71
|
+
}), props.name && /*#__PURE__*/ (0, $b4uus$react).createElement("input", {
|
|
72
|
+
type: "hidden",
|
|
73
|
+
name: props.name,
|
|
74
|
+
value: isNaN(state.numberValue) ? "" : state.numberValue
|
|
75
|
+
}));
|
|
76
|
+
}
|
|
77
|
+
function $0077d47e004328f0$var$HexColorField(props) {
|
|
78
|
+
let { value: // These disabled props are handled by the state hook
|
|
79
|
+
value, defaultValue: defaultValue, onChange: onChange, forwardedRef: forwardedRef, ...otherProps } = props;
|
|
80
|
+
let state = (0, $b4uus$useColorFieldState)(props);
|
|
81
|
+
let inputRef = (0, $b4uus$useRef)(null);
|
|
82
|
+
let result = (0, $b4uus$useColorField)(otherProps, state, inputRef);
|
|
83
|
+
return /*#__PURE__*/ (0, $b4uus$react).createElement((0, $b4uus$TextFieldBase), {
|
|
84
|
+
...otherProps,
|
|
85
|
+
ref: forwardedRef,
|
|
86
|
+
inputRef: inputRef,
|
|
87
|
+
...result,
|
|
88
|
+
inputClassName: (0, $b4uus$classNames)((0, ($parcel$interopDefault($b4uus$colorfield_cssmodulejs))), "react-spectrum-ColorField-input")
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
export {$0077d47e004328f0$export$b865d4358897bb17 as ColorField};
|
|
94
|
+
//# sourceMappingURL=ColorField.mjs.map
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import "./colorfield.faeff3c2.css";
|
|
2
|
+
import $b4uus$colorfield_cssmodulejs from "./colorfield_css.module.js";
|
|
3
|
+
import {classNames as $b4uus$classNames} from "@react-spectrum/utils";
|
|
4
|
+
import {useContextProps as $b4uus$useContextProps, ColorFieldContext as $b4uus$ColorFieldContext} from "react-aria-components";
|
|
5
|
+
import $b4uus$react, {useRef as $b4uus$useRef} from "react";
|
|
6
|
+
import {TextFieldBase as $b4uus$TextFieldBase} from "@react-spectrum/textfield";
|
|
7
|
+
import {useColorChannelField as $b4uus$useColorChannelField, useColorField as $b4uus$useColorField} from "@react-aria/color";
|
|
8
|
+
import {useColorChannelFieldState as $b4uus$useColorChannelFieldState, useColorFieldState as $b4uus$useColorFieldState} from "@react-stately/color";
|
|
9
|
+
import {useFormProps as $b4uus$useFormProps} from "@react-spectrum/form";
|
|
10
|
+
import {useLocale as $b4uus$useLocale} from "@react-aria/i18n";
|
|
11
|
+
import {useProviderProps as $b4uus$useProviderProps} from "@react-spectrum/provider";
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
function $parcel$interopDefault(a) {
|
|
15
|
+
return a && a.__esModule ? a.default : a;
|
|
16
|
+
}
|
|
17
|
+
/*
|
|
18
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
19
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
20
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
21
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
22
|
+
*
|
|
23
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
24
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
25
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
26
|
+
* governing permissions and limitations under the License.
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
function $0077d47e004328f0$var$ColorField(props, ref) {
|
|
38
|
+
props = (0, $b4uus$useProviderProps)(props);
|
|
39
|
+
props = (0, $b4uus$useFormProps)(props);
|
|
40
|
+
[props] = (0, $b4uus$useContextProps)(props, null, (0, $b4uus$ColorFieldContext));
|
|
41
|
+
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");
|
|
42
|
+
if (props.channel) return /*#__PURE__*/ (0, $b4uus$react).createElement($0077d47e004328f0$var$ColorChannelField, {
|
|
43
|
+
...props,
|
|
44
|
+
channel: props.channel,
|
|
45
|
+
forwardedRef: ref
|
|
46
|
+
});
|
|
47
|
+
else return /*#__PURE__*/ (0, $b4uus$react).createElement($0077d47e004328f0$var$HexColorField, {
|
|
48
|
+
...props,
|
|
49
|
+
forwardedRef: ref
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* A color field allows users to edit a hex color or individual color channel value.
|
|
54
|
+
*/ const $0077d47e004328f0$export$b865d4358897bb17 = /*#__PURE__*/ (0, $b4uus$react).forwardRef($0077d47e004328f0$var$ColorField);
|
|
55
|
+
function $0077d47e004328f0$var$ColorChannelField(props) {
|
|
56
|
+
let { value: // These disabled props are handled by the state hook
|
|
57
|
+
value, defaultValue: defaultValue, onChange: onChange, validate: validate, forwardedRef: forwardedRef, ...otherProps } = props;
|
|
58
|
+
let { locale: locale } = (0, $b4uus$useLocale)();
|
|
59
|
+
let state = (0, $b4uus$useColorChannelFieldState)({
|
|
60
|
+
...props,
|
|
61
|
+
locale: locale
|
|
62
|
+
});
|
|
63
|
+
let inputRef = (0, $b4uus$useRef)(null);
|
|
64
|
+
let result = (0, $b4uus$useColorChannelField)(otherProps, state, inputRef);
|
|
65
|
+
return /*#__PURE__*/ (0, $b4uus$react).createElement((0, $b4uus$react).Fragment, null, /*#__PURE__*/ (0, $b4uus$react).createElement((0, $b4uus$TextFieldBase), {
|
|
66
|
+
...otherProps,
|
|
67
|
+
ref: forwardedRef,
|
|
68
|
+
inputRef: inputRef,
|
|
69
|
+
...result,
|
|
70
|
+
inputClassName: (0, $b4uus$classNames)((0, ($parcel$interopDefault($b4uus$colorfield_cssmodulejs))), "react-spectrum-ColorField-input")
|
|
71
|
+
}), props.name && /*#__PURE__*/ (0, $b4uus$react).createElement("input", {
|
|
72
|
+
type: "hidden",
|
|
73
|
+
name: props.name,
|
|
74
|
+
value: isNaN(state.numberValue) ? "" : state.numberValue
|
|
75
|
+
}));
|
|
76
|
+
}
|
|
77
|
+
function $0077d47e004328f0$var$HexColorField(props) {
|
|
78
|
+
let { value: // These disabled props are handled by the state hook
|
|
79
|
+
value, defaultValue: defaultValue, onChange: onChange, forwardedRef: forwardedRef, ...otherProps } = props;
|
|
80
|
+
let state = (0, $b4uus$useColorFieldState)(props);
|
|
81
|
+
let inputRef = (0, $b4uus$useRef)(null);
|
|
82
|
+
let result = (0, $b4uus$useColorField)(otherProps, state, inputRef);
|
|
83
|
+
return /*#__PURE__*/ (0, $b4uus$react).createElement((0, $b4uus$TextFieldBase), {
|
|
84
|
+
...otherProps,
|
|
85
|
+
ref: forwardedRef,
|
|
86
|
+
inputRef: inputRef,
|
|
87
|
+
...result,
|
|
88
|
+
inputClassName: (0, $b4uus$classNames)((0, ($parcel$interopDefault($b4uus$colorfield_cssmodulejs))), "react-spectrum-ColorField-input")
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
export {$0077d47e004328f0$export$b865d4358897bb17 as ColorField};
|
|
94
|
+
//# sourceMappingURL=ColorField.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;;AAeD,SAAS,iCAAW,KAA8B,EAAE,GAAsB;IACxE,QAAQ,CAAA,GAAA,uBAAe,EAAE;IACzB,QAAQ,CAAA,GAAA,mBAAW,EAAE;IACrB,CAAC,MAAM,GAAG,CAAA,GAAA,sBAAc,EAAE,OAAO,MAAM,CAAA,GAAA,wBAAgB;IACvD,IAAI,MAAM,WAAW,EACnB,QAAQ,IAAI,CAAC;IAGf,IAAI,MAAM,OAAO,EACf,qBAAO,gCAAC;QAAmB,GAAG,KAAK;QAAE,SAAS,MAAM,OAAO;QAAE,cAAc;;SAE3E,qBAAO,gCAAC;QAAe,GAAG,KAAK;QAAE,cAAc;;AAEnD;AAEA;;CAEC,GACD,MAAM,0DAAc,CAAA,GAAA,YAAI,EAAE,UAAU,CAAC;AAQrC,SAAS,wCAAkB,KAA6B;IACtD,IAAI,SACF,qDAAqD;IACrD,KAAK,gBACL,YAAY,YACZ,QAAQ,YACR,QAAQ,gBACR,YAAY,EACZ,GAAG,YACJ,GAAG;IACJ,IAAI,UAAC,MAAM,EAAC,GAAG,CAAA,GAAA,gBAAQ;IACvB,IAAI,QAAQ,CAAA,GAAA,gCAAwB,EAAE;QACpC,GAAG,KAAK;gBACR;IACF;IAEA,IAAI,WAAW,CAAA,GAAA,aAAK,EAA0C;IAC9D,IAAI,SAAS,CAAA,GAAA,2BAAmB,EAAE,YAAY,OAAO;IAErD,qBACE,gFACE,gCAAC,CAAA,GAAA,oBAAY;QACV,GAAG,UAAU;QACd,KAAK;QACL,UAAU;QACT,GAAG,MAAM;QACV,gBAAgB,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,uDAAK,GAAG;QACpC,MAAM,IAAI,kBAAI,gCAAC;QAAM,MAAK;QAAS,MAAM,MAAM,IAAI;QAAE,OAAO,MAAM,MAAM,WAAW,IAAI,KAAK,MAAM,WAAW;;AAGpH;AAMA,SAAS,oCAAc,KAAyB;IAC9C,IAAI,SACF,qDAAqD;IACrD,KAAK,gBACL,YAAY,YACZ,QAAQ,gBACR,YAAY,EACZ,GAAG,YACJ,GAAG;IACJ,IAAI,QAAQ,CAAA,GAAA,yBAAiB,EAAE;IAC/B,IAAI,WAAW,CAAA,GAAA,aAAK,EAA0C;IAC9D,IAAI,SAAS,CAAA,GAAA,oBAAY,EAAE,YAAY,OAAO;IAE9C,qBACE,gCAAC,CAAA,GAAA,oBAAY;QACV,GAAG,UAAU;QACd,KAAK;QACL,UAAU;QACT,GAAG,MAAM;QACV,gBAAgB,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,uDAAK,GAAG;;AAEzC","sources":["packages/@react-spectrum/color/src/ColorField.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} from '@react-spectrum/utils';\nimport {ColorChannel, SpectrumColorFieldProps} from '@react-types/color';\nimport {ColorFieldContext, useContextProps} from 'react-aria-components';\nimport React, {Ref, useRef} from 'react';\nimport styles from './colorfield.css';\nimport {TextFieldBase} from '@react-spectrum/textfield';\nimport {TextFieldRef} from '@react-types/textfield';\nimport {useColorChannelField, useColorField} from '@react-aria/color';\nimport {useColorChannelFieldState, useColorFieldState} from '@react-stately/color';\nimport {useFormProps} from '@react-spectrum/form';\nimport {useLocale} from '@react-aria/i18n';\nimport {useProviderProps} from '@react-spectrum/provider';\n\nfunction ColorField(props: SpectrumColorFieldProps, ref: Ref<TextFieldRef>) {\n props = useProviderProps(props);\n props = useFormProps(props);\n [props] = useContextProps(props, null, ColorFieldContext);\n if (props.placeholder) {\n 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');\n }\n\n if (props.channel) {\n return <ColorChannelField {...props} channel={props.channel} forwardedRef={ref} />;\n } else {\n return <HexColorField {...props} forwardedRef={ref} />;\n }\n}\n\n/**\n * A color field allows users to edit a hex color or individual color channel value.\n */\nconst _ColorField = React.forwardRef(ColorField);\nexport {_ColorField as ColorField};\n\ninterface ColorChannelFieldProps extends Omit<SpectrumColorFieldProps, 'channel'> {\n channel: ColorChannel,\n forwardedRef: Ref<TextFieldRef>\n}\n\nfunction ColorChannelField(props: ColorChannelFieldProps) {\n let {\n // These disabled props are handled by the state hook\n value, // eslint-disable-line @typescript-eslint/no-unused-vars\n defaultValue, // eslint-disable-line @typescript-eslint/no-unused-vars\n onChange, // eslint-disable-line @typescript-eslint/no-unused-vars\n validate, // eslint-disable-line @typescript-eslint/no-unused-vars\n forwardedRef,\n ...otherProps\n } = props;\n let {locale} = useLocale();\n let state = useColorChannelFieldState({\n ...props,\n locale\n });\n\n let inputRef = useRef<HTMLInputElement & HTMLTextAreaElement>(null);\n let result = useColorChannelField(otherProps, state, inputRef);\n\n return (\n <>\n <TextFieldBase\n {...otherProps}\n ref={forwardedRef}\n inputRef={inputRef}\n {...result}\n inputClassName={classNames(styles, 'react-spectrum-ColorField-input')} />\n {props.name && <input type=\"hidden\" name={props.name} value={isNaN(state.numberValue) ? '' : state.numberValue} />}\n </>\n );\n}\n\ninterface HexColorFieldProps extends SpectrumColorFieldProps {\n forwardedRef: Ref<TextFieldRef>\n}\n\nfunction HexColorField(props: HexColorFieldProps) {\n let {\n // These disabled props are handled by the state hook\n value, // eslint-disable-line @typescript-eslint/no-unused-vars\n defaultValue, // eslint-disable-line @typescript-eslint/no-unused-vars\n onChange, // eslint-disable-line @typescript-eslint/no-unused-vars\n forwardedRef,\n ...otherProps\n } = props;\n let state = useColorFieldState(props);\n let inputRef = useRef<HTMLInputElement & HTMLTextAreaElement>(null);\n let result = useColorField(otherProps, state, inputRef);\n\n return (\n <TextFieldBase\n {...otherProps}\n ref={forwardedRef}\n inputRef={inputRef}\n {...result}\n inputClassName={classNames(styles, 'react-spectrum-ColorField-input')} />\n );\n}\n"],"names":[],"version":3,"file":"ColorField.module.js.map"}
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
@layer a {
|
|
2
|
+
.ba {
|
|
3
|
+
background-color: #0000;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.Af {
|
|
7
|
+
border-style: none;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.Ia {
|
|
11
|
+
padding-top: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.Ja {
|
|
15
|
+
padding-bottom: 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.Ga {
|
|
19
|
+
padding-inline-start: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.Ha {
|
|
23
|
+
padding-inline-end: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
._Sd {
|
|
27
|
+
display: flex;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
._Uc {
|
|
31
|
+
align-items: center;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.lM {
|
|
35
|
+
row-gap: .714286em;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.mM {
|
|
39
|
+
column-gap: .714286em;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
._5a {
|
|
43
|
+
font-family: adobe-clean, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.a___K {
|
|
47
|
+
color: var(--spectrum-alias-text-color, var(--spectrum-global-color-gray-800));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
._6a {
|
|
51
|
+
font-size: var(--spectrum-global-dimension-font-size-50);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
._6b {
|
|
55
|
+
font-size: var(--spectrum-global-dimension-font-size-75);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
._6c {
|
|
59
|
+
font-size: var(--spectrum-global-dimension-font-size-100);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
._6d {
|
|
63
|
+
font-size: var(--spectrum-global-dimension-font-size-200);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
._Ea {
|
|
67
|
+
outline-style: none;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
._Eb {
|
|
71
|
+
outline-style: solid;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.d___I {
|
|
75
|
+
outline-color: var(--spectrum-alias-focus-color, var(--spectrum-global-color-blue-400));
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
._Gc {
|
|
79
|
+
outline-width: var(--spectrum-alias-border-size-thick, var(--spectrum-global-dimension-static-size-25));
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
._Fc {
|
|
83
|
+
outline-offset: var(--spectrum-alias-border-size-thick, var(--spectrum-global-dimension-static-size-25));
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
._pc:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
|
|
87
|
+
border-top-left-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
._pc:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
|
|
91
|
+
border-top-left-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
._pc:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
|
|
95
|
+
border-top-right-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
._pc:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
|
|
99
|
+
border-top-right-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
._qc:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
|
|
103
|
+
border-top-right-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
._qc:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
|
|
107
|
+
border-top-right-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
._qc:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
|
|
111
|
+
border-top-left-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
._qc:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
|
|
115
|
+
border-top-left-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
._rc:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
|
|
119
|
+
border-bottom-left-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
._rc:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
|
|
123
|
+
border-bottom-left-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
._rc:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
|
|
127
|
+
border-bottom-right-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
._rc:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
|
|
131
|
+
border-bottom-right-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
._sc:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
|
|
135
|
+
border-bottom-right-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
._sc:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
|
|
139
|
+
border-bottom-right-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
._sc:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
|
|
143
|
+
border-bottom-left-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
._sc:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
|
|
147
|
+
border-bottom-left-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
@layer b {
|
|
152
|
+
._5-enzrfpb:lang(ar) {
|
|
153
|
+
font-family: myriad-arabic, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@layer c {
|
|
158
|
+
._5-enzwzjc:lang(he) {
|
|
159
|
+
font-family: myriad-hebrew, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
@layer d {
|
|
164
|
+
._5-enzykdd:lang(ja) {
|
|
165
|
+
font-family: adobe-clean-han-japanese, Hiragino Kaku Gothic ProN, ヒラギノ角ゴ ProN W3, Osaka, YuGothic, Yu Gothic, メイリオ, Meiryo, MS Pゴシック, MS PGothic, sans-serif;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
@layer e {
|
|
170
|
+
._5-enzzrge:lang(ko) {
|
|
171
|
+
font-family: adobe-clean-han-korean, source-han-korean, Malgun Gothic, Apple Gothic, sans-serif;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
@layer f {
|
|
176
|
+
._5-eo0c6sf:lang(zh) {
|
|
177
|
+
font-family: adobe-clean-han-traditional, source-han-traditional, MingLiu, Heiti TC Light, sans-serif;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
@layer g {
|
|
182
|
+
._5-1uotwbwg:lang(zh-hant) {
|
|
183
|
+
font-family: adobe-clean-han-traditional, source-han-traditional, MingLiu, Microsoft JhengHei UI, Microsoft JhengHei, Heiti TC Light, sans-serif;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
@layer h {
|
|
188
|
+
._5-bc1l9oh:-webkit-any(:lang(zh-Hans), :lang(zh-CN), :lang(zh-SG)) {
|
|
189
|
+
font-family: adobe-clean-han-simplified-c, source-han-simplified-c, SimSun, Heiti SC Light, sans-serif;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
._5-bc1l9oh:is(:lang(zh-Hans), :lang(zh-CN), :lang(zh-SG)) {
|
|
193
|
+
font-family: adobe-clean-han-simplified-c, source-han-simplified-c, SimSun, Heiti SC Light, sans-serif;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
@layer b.a {
|
|
198
|
+
@media (forced-colors: active) {
|
|
199
|
+
.da___D {
|
|
200
|
+
outline-color: highlight;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
/*# sourceMappingURL=ColorPicker.ab9f47c0.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"ACAA;EAGE;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAYA;;;;EA8DA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAMA;;;;EAxJA;;;;EAMA;;;;EAMA;;;;EAcA;;;;EAMA;;;;EAMA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAMA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAMA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAMA;;;;EAAA;;;;EAAA;;;;EAAA;;;;;AA3DF;EA4EI;;;;;AA5EJ;EAoFI;;;;;AApFJ;EA4FI;;;;;AA5FJ;EAoGI;;;;;AApGJ;EA4GI;;;;;AA5GJ;EAoHI;;;;;AApHJ;EA4HI;;;;EAAA;;;;;AAxGJ;EACE;IACE","sources":["4265cbe66e3f0344","packages/@react-spectrum/color/src/ColorPicker.tsx"],"sourcesContent":["@import \"01eac0e6ccf8a0b9\";\n@import \"e3400cf9c7231dbc\";\n","@layer a, b, c, d, e, f, g, h;\n\n@layer a {\n .ba {\n background-color: transparent;\n }\n}\n\n@layer a {\n .Af {\n border-style: none;\n }\n}\n\n@layer a {\n .Ia {\n padding-top: 0px;\n }\n}\n\n@layer a {\n .Ja {\n padding-bottom: 0px;\n }\n}\n\n@layer a {\n .Ga {\n padding-inline-start: 0px;\n }\n}\n\n@layer a {\n .Ha {\n padding-inline-end: 0px;\n }\n}\n\n@layer a {\n ._Sd {\n display: flex;\n }\n}\n\n@layer a {\n ._Uc {\n align-items: center;\n }\n}\n\n@layer a {\n .lM {\n row-gap: 0.7142857142857143em;\n }\n}\n\n@layer a {\n .mM {\n column-gap: 0.7142857142857143em;\n }\n}\n\n@layer a {\n ._Ea {\n outline-style: none;\n }\n}\n\n@layer a {\n ._5a {\n font-family: adobe-clean, ui-sans-serif, system-ui, sans-serif;\n }\n}\n\n@layer b {\n ._5-enzrfpb {\n &:lang(ar) {\n font-family: myriad-arabic, ui-sans-serif, system-ui, sans-serif;\n }\n }\n}\n\n@layer c {\n ._5-enzwzjc {\n &:lang(he) {\n font-family: myriad-hebrew, ui-sans-serif, system-ui, sans-serif;\n }\n }\n}\n\n@layer d {\n ._5-enzykdd {\n &:lang(ja) {\n font-family: adobe-clean-han-japanese, 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', Osaka, YuGothic, 'Yu Gothic', 'メイリオ', Meiryo, 'MS Pゴシック', 'MS PGothic', sans-serif;\n }\n }\n}\n\n@layer e {\n ._5-enzzrge {\n &:lang(ko) {\n font-family: adobe-clean-han-korean, source-han-korean, 'Malgun Gothic', 'Apple Gothic', sans-serif;\n }\n }\n}\n\n@layer f {\n ._5-eo0c6sf {\n &:lang(zh) {\n font-family: adobe-clean-han-traditional, source-han-traditional, 'MingLiu', 'Heiti TC Light', sans-serif;\n }\n }\n}\n\n@layer g {\n ._5-1uotwbwg {\n &:lang(zh-hant) {\n font-family: adobe-clean-han-traditional, source-han-traditional, 'MingLiu', 'Microsoft JhengHei UI', 'Microsoft JhengHei', 'Heiti TC Light', sans-serif;\n }\n }\n}\n\n@layer h {\n ._5-bc1l9oh {\n &:lang(zh-Hans, zh-CN, zh-SG) {\n font-family: adobe-clean-han-simplified-c, source-han-simplified-c, 'SimSun', 'Heiti SC Light', sans-serif;\n }\n }\n}\n\n@layer a {\n .a___K {\n color: var(--spectrum-alias-text-color, var(--spectrum-global-color-gray-800));\n }\n}\n\n@layer a {\n ._6a {\n font-size: var(--spectrum-global-dimension-font-size-50);\n }\n}\n\n@layer a {\n ._6b {\n font-size: var(--spectrum-global-dimension-font-size-75);\n }\n}\n\n@layer a {\n ._6c {\n font-size: var(--spectrum-global-dimension-font-size-100);\n }\n}\n\n@layer a {\n ._6d {\n font-size: var(--spectrum-global-dimension-font-size-200);\n }\n}\n\n"],"names":[],"version":3,"file":"ColorPicker.ab9f47c0.css.map"}
|