@react-spectrum/meter 3.0.0-nightly.2541 → 3.0.0-nightly.2545
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/import.mjs +48 -85
- package/dist/main.js +47 -84
- package/dist/main.js.map +1 -1
- package/dist/module.js +48 -85
- package/dist/module.js.map +1 -1
- package/package.json +8 -8
package/dist/import.mjs
CHANGED
|
@@ -5,70 +5,60 @@ import $dMbnw$react from "react";
|
|
|
5
5
|
import {useMeter as $dMbnw$useMeter} from "@react-aria/meter";
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
function $parcel$export(e, n, v, s) {
|
|
9
|
-
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
10
|
-
}
|
|
11
|
-
|
|
12
8
|
function $parcel$interopDefault(a) {
|
|
13
9
|
return a && a.__esModule ? a.default : a;
|
|
14
10
|
}
|
|
15
11
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
var $parcel$modules = {};
|
|
19
|
-
var $parcel$inits = {};
|
|
20
|
-
|
|
21
|
-
var parcelRequire = $parcel$global["parcelRequire7f0c"];
|
|
22
|
-
|
|
23
|
-
if (parcelRequire == null) {
|
|
24
|
-
parcelRequire = function(id) {
|
|
25
|
-
if (id in $parcel$modules) {
|
|
26
|
-
return $parcel$modules[id].exports;
|
|
27
|
-
}
|
|
28
|
-
if (id in $parcel$inits) {
|
|
29
|
-
var init = $parcel$inits[id];
|
|
30
|
-
delete $parcel$inits[id];
|
|
31
|
-
var module = {id: id, exports: {}};
|
|
32
|
-
$parcel$modules[id] = module;
|
|
33
|
-
init.call(module.exports, module, module.exports);
|
|
34
|
-
return module.exports;
|
|
35
|
-
}
|
|
36
|
-
var err = new Error("Cannot find module '" + id + "'");
|
|
37
|
-
err.code = 'MODULE_NOT_FOUND';
|
|
38
|
-
throw err;
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
parcelRequire.register = function register(id, init) {
|
|
42
|
-
$parcel$inits[id] = init;
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
$parcel$global["parcelRequire7f0c"] = parcelRequire;
|
|
12
|
+
function $parcel$export(e, n, v, s) {
|
|
13
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
46
14
|
}
|
|
15
|
+
/*
|
|
16
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
17
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
18
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
19
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
20
|
+
*
|
|
21
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
22
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
23
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
24
|
+
* governing permissions and limitations under the License.
|
|
25
|
+
*/ /// <reference types="css-module-types" />
|
|
26
|
+
/*
|
|
27
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
28
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
29
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
30
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
31
|
+
*
|
|
32
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
33
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
34
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
35
|
+
* governing permissions and limitations under the License.
|
|
36
|
+
*/
|
|
47
37
|
|
|
48
|
-
var parcelRegister = parcelRequire.register;
|
|
49
|
-
parcelRegister("e6hUg", function(module, exports) {
|
|
50
38
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
$parcel$export(
|
|
54
|
-
$parcel$export(
|
|
55
|
-
$parcel$export(
|
|
56
|
-
$parcel$export(
|
|
57
|
-
$parcel$export(
|
|
58
|
-
$parcel$export(
|
|
59
|
-
$parcel$export(
|
|
60
|
-
$parcel$export(
|
|
61
|
-
$parcel$export(
|
|
62
|
-
$parcel$export(
|
|
63
|
-
$parcel$export(
|
|
64
|
-
$parcel$export(
|
|
65
|
-
$parcel$export(
|
|
66
|
-
$parcel$export(
|
|
67
|
-
$parcel$export(
|
|
68
|
-
$parcel$export(
|
|
69
|
-
$parcel$export(
|
|
70
|
-
$parcel$export(
|
|
71
|
-
$parcel$export(
|
|
39
|
+
var $a43f840f49ffbe32$exports = {};
|
|
40
|
+
|
|
41
|
+
$parcel$export($a43f840f49ffbe32$exports, "focus-ring", () => $a43f840f49ffbe32$export$f39a09f249340e2a, (v) => $a43f840f49ffbe32$export$f39a09f249340e2a = v);
|
|
42
|
+
$parcel$export($a43f840f49ffbe32$exports, "i18nFontFamily", () => $a43f840f49ffbe32$export$8c4ee2c50c22c514, (v) => $a43f840f49ffbe32$export$8c4ee2c50c22c514 = v);
|
|
43
|
+
$parcel$export($a43f840f49ffbe32$exports, "indeterminate-loop-ltr", () => $a43f840f49ffbe32$export$a889038a25113dd4, (v) => $a43f840f49ffbe32$export$a889038a25113dd4 = v);
|
|
44
|
+
$parcel$export($a43f840f49ffbe32$exports, "indeterminate-loop-rtl", () => $a43f840f49ffbe32$export$aeff243cf3356f00, (v) => $a43f840f49ffbe32$export$aeff243cf3356f00 = v);
|
|
45
|
+
$parcel$export($a43f840f49ffbe32$exports, "is-critical", () => $a43f840f49ffbe32$export$a1f608a9810da50f, (v) => $a43f840f49ffbe32$export$a1f608a9810da50f = v);
|
|
46
|
+
$parcel$export($a43f840f49ffbe32$exports, "is-positive", () => $a43f840f49ffbe32$export$aea9fd919467f03a, (v) => $a43f840f49ffbe32$export$aea9fd919467f03a = v);
|
|
47
|
+
$parcel$export($a43f840f49ffbe32$exports, "is-warning", () => $a43f840f49ffbe32$export$d4ebda6218901908, (v) => $a43f840f49ffbe32$export$d4ebda6218901908 = v);
|
|
48
|
+
$parcel$export($a43f840f49ffbe32$exports, "spectrum-BarLoader", () => $a43f840f49ffbe32$export$162ba336fb0c239f, (v) => $a43f840f49ffbe32$export$162ba336fb0c239f = v);
|
|
49
|
+
$parcel$export($a43f840f49ffbe32$exports, "spectrum-BarLoader--indeterminate", () => $a43f840f49ffbe32$export$1249dfbb98223794, (v) => $a43f840f49ffbe32$export$1249dfbb98223794 = v);
|
|
50
|
+
$parcel$export($a43f840f49ffbe32$exports, "spectrum-BarLoader--overBackground", () => $a43f840f49ffbe32$export$55612d0bd9b5d41, (v) => $a43f840f49ffbe32$export$55612d0bd9b5d41 = v);
|
|
51
|
+
$parcel$export($a43f840f49ffbe32$exports, "spectrum-BarLoader--sideLabel", () => $a43f840f49ffbe32$export$99af8802cc2a10dc, (v) => $a43f840f49ffbe32$export$99af8802cc2a10dc = v);
|
|
52
|
+
$parcel$export($a43f840f49ffbe32$exports, "spectrum-BarLoader--small", () => $a43f840f49ffbe32$export$b945305960ad74a7, (v) => $a43f840f49ffbe32$export$b945305960ad74a7 = v);
|
|
53
|
+
$parcel$export($a43f840f49ffbe32$exports, "spectrum-BarLoader--staticBlack", () => $a43f840f49ffbe32$export$f45257a01e7aabeb, (v) => $a43f840f49ffbe32$export$f45257a01e7aabeb = v);
|
|
54
|
+
$parcel$export($a43f840f49ffbe32$exports, "spectrum-BarLoader--staticWhite", () => $a43f840f49ffbe32$export$734e9273ae1f542e, (v) => $a43f840f49ffbe32$export$734e9273ae1f542e = v);
|
|
55
|
+
$parcel$export($a43f840f49ffbe32$exports, "spectrum-BarLoader-fill", () => $a43f840f49ffbe32$export$84c9ee7bc724b71b, (v) => $a43f840f49ffbe32$export$84c9ee7bc724b71b = v);
|
|
56
|
+
$parcel$export($a43f840f49ffbe32$exports, "spectrum-BarLoader-label", () => $a43f840f49ffbe32$export$5379ba198163be86, (v) => $a43f840f49ffbe32$export$5379ba198163be86 = v);
|
|
57
|
+
$parcel$export($a43f840f49ffbe32$exports, "spectrum-BarLoader-percentage", () => $a43f840f49ffbe32$export$ecc9c825de9d1a18, (v) => $a43f840f49ffbe32$export$ecc9c825de9d1a18 = v);
|
|
58
|
+
$parcel$export($a43f840f49ffbe32$exports, "spectrum-BarLoader-track", () => $a43f840f49ffbe32$export$3e2e13fb57b5c74b, (v) => $a43f840f49ffbe32$export$3e2e13fb57b5c74b = v);
|
|
59
|
+
$parcel$export($a43f840f49ffbe32$exports, "spectrum-FocusRing-ring", () => $a43f840f49ffbe32$export$4109102f950813a6, (v) => $a43f840f49ffbe32$export$4109102f950813a6 = v);
|
|
60
|
+
$parcel$export($a43f840f49ffbe32$exports, "spectrum-FocusRing", () => $a43f840f49ffbe32$export$24c7f46a6e3605dd, (v) => $a43f840f49ffbe32$export$24c7f46a6e3605dd = v);
|
|
61
|
+
$parcel$export($a43f840f49ffbe32$exports, "spectrum-FocusRing--quiet", () => $a43f840f49ffbe32$export$2927016961429360, (v) => $a43f840f49ffbe32$export$2927016961429360 = v);
|
|
72
62
|
var $a43f840f49ffbe32$export$f39a09f249340e2a;
|
|
73
63
|
var $a43f840f49ffbe32$export$8c4ee2c50c22c514;
|
|
74
64
|
var $a43f840f49ffbe32$export$a889038a25113dd4;
|
|
@@ -114,34 +104,7 @@ $a43f840f49ffbe32$export$4109102f950813a6 = `uFrYBa_spectrum-FocusRing-ring`;
|
|
|
114
104
|
$a43f840f49ffbe32$export$24c7f46a6e3605dd = `uFrYBa_spectrum-FocusRing ${$a43f840f49ffbe32$export$4109102f950813a6}`;
|
|
115
105
|
$a43f840f49ffbe32$export$2927016961429360 = `uFrYBa_spectrum-FocusRing--quiet`;
|
|
116
106
|
|
|
117
|
-
});
|
|
118
|
-
|
|
119
|
-
/*
|
|
120
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
121
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
122
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
123
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
124
|
-
*
|
|
125
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
126
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
127
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
128
|
-
* governing permissions and limitations under the License.
|
|
129
|
-
*/ /// <reference types="css-module-types" />
|
|
130
|
-
/*
|
|
131
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
132
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
133
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
134
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
135
|
-
*
|
|
136
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
137
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
138
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
139
|
-
* governing permissions and limitations under the License.
|
|
140
|
-
*/
|
|
141
|
-
|
|
142
|
-
|
|
143
107
|
|
|
144
|
-
var $e6hUg = parcelRequire("e6hUg");
|
|
145
108
|
|
|
146
109
|
function $559585cb28581b56$var$Meter(props, ref) {
|
|
147
110
|
let { variant: variant, ...otherProps } = props;
|
|
@@ -151,7 +114,7 @@ function $559585cb28581b56$var$Meter(props, ref) {
|
|
|
151
114
|
ref: ref,
|
|
152
115
|
barProps: meterProps,
|
|
153
116
|
labelProps: labelProps,
|
|
154
|
-
barClassName: (0, $dMbnw$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($
|
|
117
|
+
barClassName: (0, $dMbnw$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($a43f840f49ffbe32$exports))), {
|
|
155
118
|
"is-positive": variant === "positive",
|
|
156
119
|
"is-warning": variant === "warning",
|
|
157
120
|
"is-critical": variant === "critical"
|
package/dist/main.js
CHANGED
|
@@ -13,62 +13,54 @@ function $parcel$interopDefault(a) {
|
|
|
13
13
|
return a && a.__esModule ? a.default : a;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
parcelRequire.register = function register(id, init) {
|
|
42
|
-
$parcel$inits[id] = init;
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
$parcel$global["parcelRequire7f0c"] = parcelRequire;
|
|
46
|
-
}
|
|
16
|
+
$parcel$export(module.exports, "Meter", () => $fc7fd823390a6f61$export$62e3ae2a4090b879);
|
|
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
|
+
*/ /// <reference types="css-module-types" />
|
|
28
|
+
/*
|
|
29
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
30
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
31
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
32
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
33
|
+
*
|
|
34
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
35
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
36
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
37
|
+
* governing permissions and limitations under the License.
|
|
38
|
+
*/
|
|
47
39
|
|
|
48
|
-
var parcelRegister = parcelRequire.register;
|
|
49
|
-
parcelRegister("dGRrm", function(module, exports) {
|
|
50
40
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
$parcel$export(
|
|
54
|
-
$parcel$export(
|
|
55
|
-
$parcel$export(
|
|
56
|
-
$parcel$export(
|
|
57
|
-
$parcel$export(
|
|
58
|
-
$parcel$export(
|
|
59
|
-
$parcel$export(
|
|
60
|
-
$parcel$export(
|
|
61
|
-
$parcel$export(
|
|
62
|
-
$parcel$export(
|
|
63
|
-
$parcel$export(
|
|
64
|
-
$parcel$export(
|
|
65
|
-
$parcel$export(
|
|
66
|
-
$parcel$export(
|
|
67
|
-
$parcel$export(
|
|
68
|
-
$parcel$export(
|
|
69
|
-
$parcel$export(
|
|
70
|
-
$parcel$export(
|
|
71
|
-
$parcel$export(
|
|
41
|
+
var $9f78a6c009f32d0a$exports = {};
|
|
42
|
+
|
|
43
|
+
$parcel$export($9f78a6c009f32d0a$exports, "focus-ring", () => $9f78a6c009f32d0a$export$f39a09f249340e2a, (v) => $9f78a6c009f32d0a$export$f39a09f249340e2a = v);
|
|
44
|
+
$parcel$export($9f78a6c009f32d0a$exports, "i18nFontFamily", () => $9f78a6c009f32d0a$export$8c4ee2c50c22c514, (v) => $9f78a6c009f32d0a$export$8c4ee2c50c22c514 = v);
|
|
45
|
+
$parcel$export($9f78a6c009f32d0a$exports, "indeterminate-loop-ltr", () => $9f78a6c009f32d0a$export$a889038a25113dd4, (v) => $9f78a6c009f32d0a$export$a889038a25113dd4 = v);
|
|
46
|
+
$parcel$export($9f78a6c009f32d0a$exports, "indeterminate-loop-rtl", () => $9f78a6c009f32d0a$export$aeff243cf3356f00, (v) => $9f78a6c009f32d0a$export$aeff243cf3356f00 = v);
|
|
47
|
+
$parcel$export($9f78a6c009f32d0a$exports, "is-critical", () => $9f78a6c009f32d0a$export$a1f608a9810da50f, (v) => $9f78a6c009f32d0a$export$a1f608a9810da50f = v);
|
|
48
|
+
$parcel$export($9f78a6c009f32d0a$exports, "is-positive", () => $9f78a6c009f32d0a$export$aea9fd919467f03a, (v) => $9f78a6c009f32d0a$export$aea9fd919467f03a = v);
|
|
49
|
+
$parcel$export($9f78a6c009f32d0a$exports, "is-warning", () => $9f78a6c009f32d0a$export$d4ebda6218901908, (v) => $9f78a6c009f32d0a$export$d4ebda6218901908 = v);
|
|
50
|
+
$parcel$export($9f78a6c009f32d0a$exports, "spectrum-BarLoader", () => $9f78a6c009f32d0a$export$162ba336fb0c239f, (v) => $9f78a6c009f32d0a$export$162ba336fb0c239f = v);
|
|
51
|
+
$parcel$export($9f78a6c009f32d0a$exports, "spectrum-BarLoader--indeterminate", () => $9f78a6c009f32d0a$export$1249dfbb98223794, (v) => $9f78a6c009f32d0a$export$1249dfbb98223794 = v);
|
|
52
|
+
$parcel$export($9f78a6c009f32d0a$exports, "spectrum-BarLoader--overBackground", () => $9f78a6c009f32d0a$export$55612d0bd9b5d41, (v) => $9f78a6c009f32d0a$export$55612d0bd9b5d41 = v);
|
|
53
|
+
$parcel$export($9f78a6c009f32d0a$exports, "spectrum-BarLoader--sideLabel", () => $9f78a6c009f32d0a$export$99af8802cc2a10dc, (v) => $9f78a6c009f32d0a$export$99af8802cc2a10dc = v);
|
|
54
|
+
$parcel$export($9f78a6c009f32d0a$exports, "spectrum-BarLoader--small", () => $9f78a6c009f32d0a$export$b945305960ad74a7, (v) => $9f78a6c009f32d0a$export$b945305960ad74a7 = v);
|
|
55
|
+
$parcel$export($9f78a6c009f32d0a$exports, "spectrum-BarLoader--staticBlack", () => $9f78a6c009f32d0a$export$f45257a01e7aabeb, (v) => $9f78a6c009f32d0a$export$f45257a01e7aabeb = v);
|
|
56
|
+
$parcel$export($9f78a6c009f32d0a$exports, "spectrum-BarLoader--staticWhite", () => $9f78a6c009f32d0a$export$734e9273ae1f542e, (v) => $9f78a6c009f32d0a$export$734e9273ae1f542e = v);
|
|
57
|
+
$parcel$export($9f78a6c009f32d0a$exports, "spectrum-BarLoader-fill", () => $9f78a6c009f32d0a$export$84c9ee7bc724b71b, (v) => $9f78a6c009f32d0a$export$84c9ee7bc724b71b = v);
|
|
58
|
+
$parcel$export($9f78a6c009f32d0a$exports, "spectrum-BarLoader-label", () => $9f78a6c009f32d0a$export$5379ba198163be86, (v) => $9f78a6c009f32d0a$export$5379ba198163be86 = v);
|
|
59
|
+
$parcel$export($9f78a6c009f32d0a$exports, "spectrum-BarLoader-percentage", () => $9f78a6c009f32d0a$export$ecc9c825de9d1a18, (v) => $9f78a6c009f32d0a$export$ecc9c825de9d1a18 = v);
|
|
60
|
+
$parcel$export($9f78a6c009f32d0a$exports, "spectrum-BarLoader-track", () => $9f78a6c009f32d0a$export$3e2e13fb57b5c74b, (v) => $9f78a6c009f32d0a$export$3e2e13fb57b5c74b = v);
|
|
61
|
+
$parcel$export($9f78a6c009f32d0a$exports, "spectrum-FocusRing-ring", () => $9f78a6c009f32d0a$export$4109102f950813a6, (v) => $9f78a6c009f32d0a$export$4109102f950813a6 = v);
|
|
62
|
+
$parcel$export($9f78a6c009f32d0a$exports, "spectrum-FocusRing", () => $9f78a6c009f32d0a$export$24c7f46a6e3605dd, (v) => $9f78a6c009f32d0a$export$24c7f46a6e3605dd = v);
|
|
63
|
+
$parcel$export($9f78a6c009f32d0a$exports, "spectrum-FocusRing--quiet", () => $9f78a6c009f32d0a$export$2927016961429360, (v) => $9f78a6c009f32d0a$export$2927016961429360 = v);
|
|
72
64
|
var $9f78a6c009f32d0a$export$f39a09f249340e2a;
|
|
73
65
|
var $9f78a6c009f32d0a$export$8c4ee2c50c22c514;
|
|
74
66
|
var $9f78a6c009f32d0a$export$a889038a25113dd4;
|
|
@@ -114,36 +106,7 @@ $9f78a6c009f32d0a$export$4109102f950813a6 = `uFrYBa_spectrum-FocusRing-ring`;
|
|
|
114
106
|
$9f78a6c009f32d0a$export$24c7f46a6e3605dd = `uFrYBa_spectrum-FocusRing ${$9f78a6c009f32d0a$export$4109102f950813a6}`;
|
|
115
107
|
$9f78a6c009f32d0a$export$2927016961429360 = `uFrYBa_spectrum-FocusRing--quiet`;
|
|
116
108
|
|
|
117
|
-
});
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
$parcel$export(module.exports, "Meter", () => $fc7fd823390a6f61$export$62e3ae2a4090b879);
|
|
121
|
-
/*
|
|
122
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
123
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
124
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
125
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
126
|
-
*
|
|
127
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
128
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
129
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
130
|
-
* governing permissions and limitations under the License.
|
|
131
|
-
*/ /// <reference types="css-module-types" />
|
|
132
|
-
/*
|
|
133
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
134
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
135
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
136
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
137
|
-
*
|
|
138
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
139
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
140
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
141
|
-
* governing permissions and limitations under the License.
|
|
142
|
-
*/
|
|
143
|
-
|
|
144
|
-
|
|
145
109
|
|
|
146
|
-
var $dGRrm = parcelRequire("dGRrm");
|
|
147
110
|
|
|
148
111
|
function $fc7fd823390a6f61$var$Meter(props, ref) {
|
|
149
112
|
let { variant: variant, ...otherProps } = props;
|
|
@@ -153,7 +116,7 @@ function $fc7fd823390a6f61$var$Meter(props, ref) {
|
|
|
153
116
|
ref: ref,
|
|
154
117
|
barProps: meterProps,
|
|
155
118
|
labelProps: labelProps,
|
|
156
|
-
barClassName: (0, $6eMp1$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($
|
|
119
|
+
barClassName: (0, $6eMp1$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($9f78a6c009f32d0a$exports))), {
|
|
157
120
|
"is-positive": variant === "positive",
|
|
158
121
|
"is-warning": variant === "warning",
|
|
159
122
|
"is-critical": variant === "critical"
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C;ACZ1C;;;;;;;;;;CAUC;;;;;;;;;;;;;;;;;;;;;;;;;;ACVD,IAAA;AACA,IAAA;AACA,IAAA;AAEA,IAAA;AAEA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AAtBA,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAmC,CAAC,qBAAqB,CAAC;AAC1D,4CAA2C,CAAC,6BAA6B,CAAC;AAC1E;AACA,4CAA2C,CAAC,6BAA6B,CAAC;AAC1E;AACA,4CAAgC,CAAC,kBAAkB,CAAC;AACpD,4CAAgC,CAAC,kBAAkB,CAAC;AACpD,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAuC,CAAC,yBAAyB,CAAC;AAClE,4CAAsD,CAAC,wCAAwC,CAAC;AAChG,2CAAuD,CAAC,yCAAyC,CAAC;AAClG,4CAAkD,CAAC,oCAAoC,CAAC;AACxF,4CAA8C,CAAC,gCAAgC,CAAC;AAChF,4CAAoD,CAAC,sCAAsC,CAAC;AAC5F,4CAAoD,CAAC,sCAAsC,CAAC;AAC5F,4CAA4C,CAAC,8BAA8B,CAAC;AAC5E,4CAA6C,CAAC,+BAA+B,CAAC;AAC9E,4CAAkD,CAAC,oCAAoC,CAAC;AACxF,4CAA6C,CAAC,+BAA+B,CAAC;AAC9E,4CAA4C,CAAC,8BAA8B,CAAC;AAC5E,4CAAuC,CAAC,0BAA0B,EAAE,0CAA0C,CAAC;AAC/G,4CAA8C,CAAC,gCAAgC,CAAC;;;;ADFhF,SAAS,4BAAM,KAAyB,EAAE,GAA2B;IACnE,IAAI,WAAC,OAAO,EAAE,GAAG,YAAW,GAAG;IAC/B,MAAM,cACJ,UAAU,cACV,UAAU,EACX,GAAG,CAAA,GAAA,8BAAO,EAAE;IAEb,qBACE,0DAAC,CAAA,GAAA,4CAAc;QACZ,GAAG,UAAU;QACd,KAAK;QACL,UAAU;QACV,YAAY;QACZ,cACE,CAAA,GAAA,oCAAS,EACP,CAAA,GAAA,gEAAK,GACL;YACE,eAAe,YAAY;YAC3B,cAAc,YAAY;YAC1B,eAAe,YAAY;QAC7B;;AAIV;AAEA;;;CAGC,GACD,IAAI,0DAAS,CAAA,GAAA,sCAAI,EAAE,UAAU,CAAC;","sources":["packages/@react-spectrum/meter/src/index.ts","packages/@react-spectrum/meter/src/Meter.tsx","packages/@adobe/spectrum-css-temp/components/barloader/vars.css"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {Meter} from './Meter';\nexport type {SpectrumMeterProps} from '@react-types/meter';\n","/*\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 {DOMRef} from '@react-types/shared';\nimport {ProgressBarBase} from '@react-spectrum/progress';\nimport React from 'react';\nimport {SpectrumMeterProps} from '@react-types/meter';\nimport styles from '@adobe/spectrum-css-temp/components/barloader/vars.css';\nimport {useMeter} from '@react-aria/meter';\n\nfunction Meter(props: SpectrumMeterProps, ref: DOMRef<HTMLDivElement>) {\n let {variant, ...otherProps} = props;\n const {\n meterProps,\n labelProps\n } = useMeter(props);\n\n return (\n <ProgressBarBase\n {...otherProps}\n ref={ref}\n barProps={meterProps}\n labelProps={labelProps}\n barClassName={\n classNames(\n styles,\n {\n 'is-positive': variant === 'positive',\n 'is-warning': variant === 'warning',\n 'is-critical': variant === 'critical'\n }\n )\n } />\n );\n}\n\n/**\n * Meters are visual representations of a quantity or an achievement.\n * Their progress is determined by user actions, rather than system actions.\n */\nlet _Meter = React.forwardRef(Meter);\nexport {_Meter as Meter};\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"main.js.map"}
|
package/dist/module.js
CHANGED
|
@@ -5,70 +5,60 @@ import $dMbnw$react from "react";
|
|
|
5
5
|
import {useMeter as $dMbnw$useMeter} from "@react-aria/meter";
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
function $parcel$export(e, n, v, s) {
|
|
9
|
-
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
10
|
-
}
|
|
11
|
-
|
|
12
8
|
function $parcel$interopDefault(a) {
|
|
13
9
|
return a && a.__esModule ? a.default : a;
|
|
14
10
|
}
|
|
15
11
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
var $parcel$modules = {};
|
|
19
|
-
var $parcel$inits = {};
|
|
20
|
-
|
|
21
|
-
var parcelRequire = $parcel$global["parcelRequire7f0c"];
|
|
22
|
-
|
|
23
|
-
if (parcelRequire == null) {
|
|
24
|
-
parcelRequire = function(id) {
|
|
25
|
-
if (id in $parcel$modules) {
|
|
26
|
-
return $parcel$modules[id].exports;
|
|
27
|
-
}
|
|
28
|
-
if (id in $parcel$inits) {
|
|
29
|
-
var init = $parcel$inits[id];
|
|
30
|
-
delete $parcel$inits[id];
|
|
31
|
-
var module = {id: id, exports: {}};
|
|
32
|
-
$parcel$modules[id] = module;
|
|
33
|
-
init.call(module.exports, module, module.exports);
|
|
34
|
-
return module.exports;
|
|
35
|
-
}
|
|
36
|
-
var err = new Error("Cannot find module '" + id + "'");
|
|
37
|
-
err.code = 'MODULE_NOT_FOUND';
|
|
38
|
-
throw err;
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
parcelRequire.register = function register(id, init) {
|
|
42
|
-
$parcel$inits[id] = init;
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
$parcel$global["parcelRequire7f0c"] = parcelRequire;
|
|
12
|
+
function $parcel$export(e, n, v, s) {
|
|
13
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
46
14
|
}
|
|
15
|
+
/*
|
|
16
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
17
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
18
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
19
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
20
|
+
*
|
|
21
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
22
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
23
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
24
|
+
* governing permissions and limitations under the License.
|
|
25
|
+
*/ /// <reference types="css-module-types" />
|
|
26
|
+
/*
|
|
27
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
28
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
29
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
30
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
31
|
+
*
|
|
32
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
33
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
34
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
35
|
+
* governing permissions and limitations under the License.
|
|
36
|
+
*/
|
|
47
37
|
|
|
48
|
-
var parcelRegister = parcelRequire.register;
|
|
49
|
-
parcelRegister("e6hUg", function(module, exports) {
|
|
50
38
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
$parcel$export(
|
|
54
|
-
$parcel$export(
|
|
55
|
-
$parcel$export(
|
|
56
|
-
$parcel$export(
|
|
57
|
-
$parcel$export(
|
|
58
|
-
$parcel$export(
|
|
59
|
-
$parcel$export(
|
|
60
|
-
$parcel$export(
|
|
61
|
-
$parcel$export(
|
|
62
|
-
$parcel$export(
|
|
63
|
-
$parcel$export(
|
|
64
|
-
$parcel$export(
|
|
65
|
-
$parcel$export(
|
|
66
|
-
$parcel$export(
|
|
67
|
-
$parcel$export(
|
|
68
|
-
$parcel$export(
|
|
69
|
-
$parcel$export(
|
|
70
|
-
$parcel$export(
|
|
71
|
-
$parcel$export(
|
|
39
|
+
var $a43f840f49ffbe32$exports = {};
|
|
40
|
+
|
|
41
|
+
$parcel$export($a43f840f49ffbe32$exports, "focus-ring", () => $a43f840f49ffbe32$export$f39a09f249340e2a, (v) => $a43f840f49ffbe32$export$f39a09f249340e2a = v);
|
|
42
|
+
$parcel$export($a43f840f49ffbe32$exports, "i18nFontFamily", () => $a43f840f49ffbe32$export$8c4ee2c50c22c514, (v) => $a43f840f49ffbe32$export$8c4ee2c50c22c514 = v);
|
|
43
|
+
$parcel$export($a43f840f49ffbe32$exports, "indeterminate-loop-ltr", () => $a43f840f49ffbe32$export$a889038a25113dd4, (v) => $a43f840f49ffbe32$export$a889038a25113dd4 = v);
|
|
44
|
+
$parcel$export($a43f840f49ffbe32$exports, "indeterminate-loop-rtl", () => $a43f840f49ffbe32$export$aeff243cf3356f00, (v) => $a43f840f49ffbe32$export$aeff243cf3356f00 = v);
|
|
45
|
+
$parcel$export($a43f840f49ffbe32$exports, "is-critical", () => $a43f840f49ffbe32$export$a1f608a9810da50f, (v) => $a43f840f49ffbe32$export$a1f608a9810da50f = v);
|
|
46
|
+
$parcel$export($a43f840f49ffbe32$exports, "is-positive", () => $a43f840f49ffbe32$export$aea9fd919467f03a, (v) => $a43f840f49ffbe32$export$aea9fd919467f03a = v);
|
|
47
|
+
$parcel$export($a43f840f49ffbe32$exports, "is-warning", () => $a43f840f49ffbe32$export$d4ebda6218901908, (v) => $a43f840f49ffbe32$export$d4ebda6218901908 = v);
|
|
48
|
+
$parcel$export($a43f840f49ffbe32$exports, "spectrum-BarLoader", () => $a43f840f49ffbe32$export$162ba336fb0c239f, (v) => $a43f840f49ffbe32$export$162ba336fb0c239f = v);
|
|
49
|
+
$parcel$export($a43f840f49ffbe32$exports, "spectrum-BarLoader--indeterminate", () => $a43f840f49ffbe32$export$1249dfbb98223794, (v) => $a43f840f49ffbe32$export$1249dfbb98223794 = v);
|
|
50
|
+
$parcel$export($a43f840f49ffbe32$exports, "spectrum-BarLoader--overBackground", () => $a43f840f49ffbe32$export$55612d0bd9b5d41, (v) => $a43f840f49ffbe32$export$55612d0bd9b5d41 = v);
|
|
51
|
+
$parcel$export($a43f840f49ffbe32$exports, "spectrum-BarLoader--sideLabel", () => $a43f840f49ffbe32$export$99af8802cc2a10dc, (v) => $a43f840f49ffbe32$export$99af8802cc2a10dc = v);
|
|
52
|
+
$parcel$export($a43f840f49ffbe32$exports, "spectrum-BarLoader--small", () => $a43f840f49ffbe32$export$b945305960ad74a7, (v) => $a43f840f49ffbe32$export$b945305960ad74a7 = v);
|
|
53
|
+
$parcel$export($a43f840f49ffbe32$exports, "spectrum-BarLoader--staticBlack", () => $a43f840f49ffbe32$export$f45257a01e7aabeb, (v) => $a43f840f49ffbe32$export$f45257a01e7aabeb = v);
|
|
54
|
+
$parcel$export($a43f840f49ffbe32$exports, "spectrum-BarLoader--staticWhite", () => $a43f840f49ffbe32$export$734e9273ae1f542e, (v) => $a43f840f49ffbe32$export$734e9273ae1f542e = v);
|
|
55
|
+
$parcel$export($a43f840f49ffbe32$exports, "spectrum-BarLoader-fill", () => $a43f840f49ffbe32$export$84c9ee7bc724b71b, (v) => $a43f840f49ffbe32$export$84c9ee7bc724b71b = v);
|
|
56
|
+
$parcel$export($a43f840f49ffbe32$exports, "spectrum-BarLoader-label", () => $a43f840f49ffbe32$export$5379ba198163be86, (v) => $a43f840f49ffbe32$export$5379ba198163be86 = v);
|
|
57
|
+
$parcel$export($a43f840f49ffbe32$exports, "spectrum-BarLoader-percentage", () => $a43f840f49ffbe32$export$ecc9c825de9d1a18, (v) => $a43f840f49ffbe32$export$ecc9c825de9d1a18 = v);
|
|
58
|
+
$parcel$export($a43f840f49ffbe32$exports, "spectrum-BarLoader-track", () => $a43f840f49ffbe32$export$3e2e13fb57b5c74b, (v) => $a43f840f49ffbe32$export$3e2e13fb57b5c74b = v);
|
|
59
|
+
$parcel$export($a43f840f49ffbe32$exports, "spectrum-FocusRing-ring", () => $a43f840f49ffbe32$export$4109102f950813a6, (v) => $a43f840f49ffbe32$export$4109102f950813a6 = v);
|
|
60
|
+
$parcel$export($a43f840f49ffbe32$exports, "spectrum-FocusRing", () => $a43f840f49ffbe32$export$24c7f46a6e3605dd, (v) => $a43f840f49ffbe32$export$24c7f46a6e3605dd = v);
|
|
61
|
+
$parcel$export($a43f840f49ffbe32$exports, "spectrum-FocusRing--quiet", () => $a43f840f49ffbe32$export$2927016961429360, (v) => $a43f840f49ffbe32$export$2927016961429360 = v);
|
|
72
62
|
var $a43f840f49ffbe32$export$f39a09f249340e2a;
|
|
73
63
|
var $a43f840f49ffbe32$export$8c4ee2c50c22c514;
|
|
74
64
|
var $a43f840f49ffbe32$export$a889038a25113dd4;
|
|
@@ -114,34 +104,7 @@ $a43f840f49ffbe32$export$4109102f950813a6 = `uFrYBa_spectrum-FocusRing-ring`;
|
|
|
114
104
|
$a43f840f49ffbe32$export$24c7f46a6e3605dd = `uFrYBa_spectrum-FocusRing ${$a43f840f49ffbe32$export$4109102f950813a6}`;
|
|
115
105
|
$a43f840f49ffbe32$export$2927016961429360 = `uFrYBa_spectrum-FocusRing--quiet`;
|
|
116
106
|
|
|
117
|
-
});
|
|
118
|
-
|
|
119
|
-
/*
|
|
120
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
121
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
122
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
123
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
124
|
-
*
|
|
125
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
126
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
127
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
128
|
-
* governing permissions and limitations under the License.
|
|
129
|
-
*/ /// <reference types="css-module-types" />
|
|
130
|
-
/*
|
|
131
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
132
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
133
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
134
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
135
|
-
*
|
|
136
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
137
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
138
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
139
|
-
* governing permissions and limitations under the License.
|
|
140
|
-
*/
|
|
141
|
-
|
|
142
|
-
|
|
143
107
|
|
|
144
|
-
var $e6hUg = parcelRequire("e6hUg");
|
|
145
108
|
|
|
146
109
|
function $559585cb28581b56$var$Meter(props, ref) {
|
|
147
110
|
let { variant: variant, ...otherProps } = props;
|
|
@@ -151,7 +114,7 @@ function $559585cb28581b56$var$Meter(props, ref) {
|
|
|
151
114
|
ref: ref,
|
|
152
115
|
barProps: meterProps,
|
|
153
116
|
labelProps: labelProps,
|
|
154
|
-
barClassName: (0, $dMbnw$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($
|
|
117
|
+
barClassName: (0, $dMbnw$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($a43f840f49ffbe32$exports))), {
|
|
155
118
|
"is-positive": variant === "positive",
|
|
156
119
|
"is-warning": variant === "warning",
|
|
157
120
|
"is-critical": variant === "critical"
|
package/dist/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C;ACZ1C;;;;;;;;;;CAUC;;;;;;;;;;;;;;;;;;;;;;;;;;ACVD,IAAA;AACA,IAAA;AACA,IAAA;AAEA,IAAA;AAEA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AAtBA,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAmC,CAAC,qBAAqB,CAAC;AAC1D,4CAA2C,CAAC,6BAA6B,CAAC;AAC1E;AACA,4CAA2C,CAAC,6BAA6B,CAAC;AAC1E;AACA,4CAAgC,CAAC,kBAAkB,CAAC;AACpD,4CAAgC,CAAC,kBAAkB,CAAC;AACpD,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAuC,CAAC,yBAAyB,CAAC;AAClE,4CAAsD,CAAC,wCAAwC,CAAC;AAChG,2CAAuD,CAAC,yCAAyC,CAAC;AAClG,4CAAkD,CAAC,oCAAoC,CAAC;AACxF,4CAA8C,CAAC,gCAAgC,CAAC;AAChF,4CAAoD,CAAC,sCAAsC,CAAC;AAC5F,4CAAoD,CAAC,sCAAsC,CAAC;AAC5F,4CAA4C,CAAC,8BAA8B,CAAC;AAC5E,4CAA6C,CAAC,+BAA+B,CAAC;AAC9E,4CAAkD,CAAC,oCAAoC,CAAC;AACxF,4CAA6C,CAAC,+BAA+B,CAAC;AAC9E,4CAA4C,CAAC,8BAA8B,CAAC;AAC5E,4CAAuC,CAAC,0BAA0B,EAAE,0CAA0C,CAAC;AAC/G,4CAA8C,CAAC,gCAAgC,CAAC;;;;ADFhF,SAAS,4BAAM,KAAyB,EAAE,GAA2B;IACnE,IAAI,WAAC,OAAO,EAAE,GAAG,YAAW,GAAG;IAC/B,MAAM,cACJ,UAAU,cACV,UAAU,EACX,GAAG,CAAA,GAAA,eAAO,EAAE;IAEb,qBACE,gCAAC,CAAA,GAAA,sBAAc;QACZ,GAAG,UAAU;QACd,KAAK;QACL,UAAU;QACV,YAAY;QACZ,cACE,CAAA,GAAA,iBAAS,EACP,CAAA,GAAA,gEAAK,GACL;YACE,eAAe,YAAY;YAC3B,cAAc,YAAY;YAC1B,eAAe,YAAY;QAC7B;;AAIV;AAEA;;;CAGC,GACD,IAAI,0DAAS,CAAA,GAAA,YAAI,EAAE,UAAU,CAAC;","sources":["packages/@react-spectrum/meter/src/index.ts","packages/@react-spectrum/meter/src/Meter.tsx","packages/@adobe/spectrum-css-temp/components/barloader/vars.css"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {Meter} from './Meter';\nexport type {SpectrumMeterProps} from '@react-types/meter';\n","/*\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 {DOMRef} from '@react-types/shared';\nimport {ProgressBarBase} from '@react-spectrum/progress';\nimport React from 'react';\nimport {SpectrumMeterProps} from '@react-types/meter';\nimport styles from '@adobe/spectrum-css-temp/components/barloader/vars.css';\nimport {useMeter} from '@react-aria/meter';\n\nfunction Meter(props: SpectrumMeterProps, ref: DOMRef<HTMLDivElement>) {\n let {variant, ...otherProps} = props;\n const {\n meterProps,\n labelProps\n } = useMeter(props);\n\n return (\n <ProgressBarBase\n {...otherProps}\n ref={ref}\n barProps={meterProps}\n labelProps={labelProps}\n barClassName={\n classNames(\n styles,\n {\n 'is-positive': variant === 'positive',\n 'is-warning': variant === 'warning',\n 'is-critical': variant === 'critical'\n }\n )\n } />\n );\n}\n\n/**\n * Meters are visual representations of a quantity or an achievement.\n * Their progress is determined by user actions, rather than system actions.\n */\nlet _Meter = React.forwardRef(Meter);\nexport {_Meter as Meter};\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"module.js.map"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-spectrum/meter",
|
|
3
|
-
"version": "3.0.0-nightly.
|
|
3
|
+
"version": "3.0.0-nightly.2545+4dede01e2",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
"url": "https://github.com/adobe/react-spectrum"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@react-aria/meter": "3.0.0-nightly.
|
|
40
|
-
"@react-spectrum/progress": "3.0.0-nightly.
|
|
41
|
-
"@react-spectrum/utils": "3.0.0-nightly.
|
|
42
|
-
"@react-types/meter": "3.3.6-nightly.
|
|
43
|
-
"@react-types/shared": "3.0.0-nightly.
|
|
39
|
+
"@react-aria/meter": "3.0.0-nightly.2545+4dede01e2",
|
|
40
|
+
"@react-spectrum/progress": "3.0.0-nightly.2545+4dede01e2",
|
|
41
|
+
"@react-spectrum/utils": "3.0.0-nightly.2545+4dede01e2",
|
|
42
|
+
"@react-types/meter": "3.3.6-nightly.4256+4dede01e2",
|
|
43
|
+
"@react-types/shared": "3.0.0-nightly.2545+4dede01e2",
|
|
44
44
|
"@swc/helpers": "^0.5.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@adobe/spectrum-css-temp": "3.0.0-nightly.
|
|
47
|
+
"@adobe/spectrum-css-temp": "3.0.0-nightly.2545+4dede01e2"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@react-spectrum/provider": "^3.0.0",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"access": "public"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "4dede01e242937311970bd495319a89bb48e33a5"
|
|
57
57
|
}
|