@react-spectrum/meter 3.5.0 → 3.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Meter.main.js +4 -4
- package/dist/Meter.mjs +5 -5
- package/dist/Meter.module.js +4 -4
- package/dist/barloader_vars_css.mjs +1 -1
- package/package.json +8 -8
package/dist/Meter.main.js
CHANGED
|
@@ -31,7 +31,7 @@ $parcel$export(module.exports, "Meter", () => $fc7fd823390a6f61$export$62e3ae2a4
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
function $fc7fd823390a6f61$var$Meter(props, ref) {
|
|
34
|
-
let { variant: variant =
|
|
34
|
+
let { variant: variant = 'informative', ...otherProps } = props;
|
|
35
35
|
const { meterProps: meterProps, labelProps: labelProps } = (0, $9BUL5$reactariameter.useMeter)(props);
|
|
36
36
|
return /*#__PURE__*/ (0, ($parcel$interopDefault($9BUL5$react))).createElement((0, $9BUL5$reactspectrumprogress.ProgressBarBase), {
|
|
37
37
|
...otherProps,
|
|
@@ -39,9 +39,9 @@ function $fc7fd823390a6f61$var$Meter(props, ref) {
|
|
|
39
39
|
barProps: meterProps,
|
|
40
40
|
labelProps: labelProps,
|
|
41
41
|
barClassName: (0, $9BUL5$reactspectrumutils.classNames)((0, ($parcel$interopDefault($9f78a6c009f32d0a$exports))), {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
'is-positive': variant === 'positive',
|
|
43
|
+
'is-warning': variant === 'warning',
|
|
44
|
+
'is-critical': variant === 'critical'
|
|
45
45
|
})
|
|
46
46
|
});
|
|
47
47
|
}
|
package/dist/Meter.mjs
CHANGED
|
@@ -25,7 +25,7 @@ function $parcel$interopDefault(a) {
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
function $559585cb28581b56$var$Meter(props, ref) {
|
|
28
|
-
let { variant: variant =
|
|
28
|
+
let { variant: variant = 'informative', ...otherProps } = props;
|
|
29
29
|
const { meterProps: meterProps, labelProps: labelProps } = (0, $gnWwJ$useMeter)(props);
|
|
30
30
|
return /*#__PURE__*/ (0, $gnWwJ$react).createElement((0, $gnWwJ$ProgressBarBase), {
|
|
31
31
|
...otherProps,
|
|
@@ -33,9 +33,9 @@ function $559585cb28581b56$var$Meter(props, ref) {
|
|
|
33
33
|
barProps: meterProps,
|
|
34
34
|
labelProps: labelProps,
|
|
35
35
|
barClassName: (0, $gnWwJ$classNames)((0, ($parcel$interopDefault($gnWwJ$barloader_vars_cssmodulejs))), {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
'is-positive': variant === 'positive',
|
|
37
|
+
'is-warning': variant === 'warning',
|
|
38
|
+
'is-critical': variant === 'critical'
|
|
39
39
|
})
|
|
40
40
|
});
|
|
41
41
|
}
|
|
@@ -46,4 +46,4 @@ function $559585cb28581b56$var$Meter(props, ref) {
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
export {$559585cb28581b56$export$62e3ae2a4090b879 as Meter};
|
|
49
|
-
//# sourceMappingURL=Meter.
|
|
49
|
+
//# sourceMappingURL=Meter.module.js.map
|
package/dist/Meter.module.js
CHANGED
|
@@ -25,7 +25,7 @@ function $parcel$interopDefault(a) {
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
function $559585cb28581b56$var$Meter(props, ref) {
|
|
28
|
-
let { variant: variant =
|
|
28
|
+
let { variant: variant = 'informative', ...otherProps } = props;
|
|
29
29
|
const { meterProps: meterProps, labelProps: labelProps } = (0, $gnWwJ$useMeter)(props);
|
|
30
30
|
return /*#__PURE__*/ (0, $gnWwJ$react).createElement((0, $gnWwJ$ProgressBarBase), {
|
|
31
31
|
...otherProps,
|
|
@@ -33,9 +33,9 @@ function $559585cb28581b56$var$Meter(props, ref) {
|
|
|
33
33
|
barProps: meterProps,
|
|
34
34
|
labelProps: labelProps,
|
|
35
35
|
barClassName: (0, $gnWwJ$classNames)((0, ($parcel$interopDefault($gnWwJ$barloader_vars_cssmodulejs))), {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
'is-positive': variant === 'positive',
|
|
37
|
+
'is-warning': variant === 'warning',
|
|
38
|
+
'is-critical': variant === 'critical'
|
|
39
39
|
})
|
|
40
40
|
});
|
|
41
41
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-spectrum/meter",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.2",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"url": "https://github.com/adobe/react-spectrum"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@react-aria/meter": "^3.4.
|
|
40
|
-
"@react-spectrum/progress": "^3.7.
|
|
41
|
-
"@react-spectrum/utils": "^3.11.
|
|
42
|
-
"@react-types/meter": "^3.4.
|
|
43
|
-
"@react-types/shared": "^3.
|
|
39
|
+
"@react-aria/meter": "^3.4.14",
|
|
40
|
+
"@react-spectrum/progress": "^3.7.8",
|
|
41
|
+
"@react-spectrum/utils": "^3.11.8",
|
|
42
|
+
"@react-types/meter": "^3.4.2",
|
|
43
|
+
"@react-types/shared": "^3.24.0",
|
|
44
44
|
"@swc/helpers": "^0.5.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@react-spectrum/provider": "^3.0.0",
|
|
51
|
-
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
|
|
51
|
+
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0"
|
|
52
52
|
},
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"access": "public"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "86d80e3216bc32e75108831cf3a5a720bc849206"
|
|
57
57
|
}
|