@react-spectrum/meter 3.5.5 → 3.5.6
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 +3 -7
- package/dist/Meter.main.js.map +1 -1
- package/dist/Meter.mjs +3 -7
- package/dist/Meter.module.js +3 -7
- package/dist/Meter.module.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/{vars.a118c25a.css → vars.c1062b60.css} +2 -2
- package/dist/{vars.a118c25a.css.map → vars.c1062b60.css.map} +1 -1
- package/package.json +9 -8
- package/src/Meter.tsx +6 -9
package/dist/Meter.main.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
require("./vars.
|
|
1
|
+
require("./vars.c1062b60.css");
|
|
2
2
|
var $9f78a6c009f32d0a$exports = require("./barloader_vars_css.main.js");
|
|
3
3
|
var $9BUL5$reactspectrumutils = require("@react-spectrum/utils");
|
|
4
4
|
var $9BUL5$reactspectrumprogress = require("@react-spectrum/progress");
|
|
@@ -30,7 +30,7 @@ $parcel$export(module.exports, "Meter", () => $fc7fd823390a6f61$export$62e3ae2a4
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
const $fc7fd823390a6f61$export$62e3ae2a4090b879 = /*#__PURE__*/ (0, ($parcel$interopDefault($9BUL5$react))).forwardRef(function Meter(props, ref) {
|
|
34
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), {
|
|
@@ -44,11 +44,7 @@ function $fc7fd823390a6f61$var$Meter(props, ref) {
|
|
|
44
44
|
'is-critical': variant === 'critical'
|
|
45
45
|
})
|
|
46
46
|
});
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Meters are visual representations of a quantity or an achievement.
|
|
50
|
-
* Their progress is determined by user actions, rather than system actions.
|
|
51
|
-
*/ let $fc7fd823390a6f61$export$62e3ae2a4090b879 = /*#__PURE__*/ (0, ($parcel$interopDefault($9BUL5$react))).forwardRef($fc7fd823390a6f61$var$Meter);
|
|
47
|
+
});
|
|
52
48
|
|
|
53
49
|
|
|
54
50
|
//# sourceMappingURL=Meter.main.js.map
|
package/dist/Meter.main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;AAcM,MAAM,0DAAQ,CAAA,GAAA,sCAAI,EAAE,UAAU,CAAC,SAAS,MAAM,KAAyB,EAAE,GAA2B;IACzG,IAAI,WAAC,UAAU,eAAe,GAAG,YAAW,GAAG;IAC/C,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,mDAAK,GACL;YACE,eAAe,YAAY;YAC3B,cAAc,YAAY;YAC1B,eAAe,YAAY;QAC7B;;AAIV","sources":["packages/@react-spectrum/meter/src/Meter.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 {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\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 */\nexport const Meter = React.forwardRef(function Meter(props: SpectrumMeterProps, ref: DOMRef<HTMLDivElement>) {\n let {variant = 'informative', ...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"],"names":[],"version":3,"file":"Meter.main.js.map"}
|
package/dist/Meter.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./vars.
|
|
1
|
+
import "./vars.c1062b60.css";
|
|
2
2
|
import $gnWwJ$barloader_vars_cssmodulejs from "./barloader_vars_css.mjs";
|
|
3
3
|
import {classNames as $gnWwJ$classNames} from "@react-spectrum/utils";
|
|
4
4
|
import {ProgressBarBase as $gnWwJ$ProgressBarBase} from "@react-spectrum/progress";
|
|
@@ -24,7 +24,7 @@ function $parcel$interopDefault(a) {
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
const $559585cb28581b56$export$62e3ae2a4090b879 = /*#__PURE__*/ (0, $gnWwJ$react).forwardRef(function Meter(props, ref) {
|
|
28
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), {
|
|
@@ -38,11 +38,7 @@ function $559585cb28581b56$var$Meter(props, ref) {
|
|
|
38
38
|
'is-critical': variant === 'critical'
|
|
39
39
|
})
|
|
40
40
|
});
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Meters are visual representations of a quantity or an achievement.
|
|
44
|
-
* Their progress is determined by user actions, rather than system actions.
|
|
45
|
-
*/ let $559585cb28581b56$export$62e3ae2a4090b879 = /*#__PURE__*/ (0, $gnWwJ$react).forwardRef($559585cb28581b56$var$Meter);
|
|
41
|
+
});
|
|
46
42
|
|
|
47
43
|
|
|
48
44
|
export {$559585cb28581b56$export$62e3ae2a4090b879 as Meter};
|
package/dist/Meter.module.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./vars.
|
|
1
|
+
import "./vars.c1062b60.css";
|
|
2
2
|
import $gnWwJ$barloader_vars_cssmodulejs from "./barloader_vars_css.module.js";
|
|
3
3
|
import {classNames as $gnWwJ$classNames} from "@react-spectrum/utils";
|
|
4
4
|
import {ProgressBarBase as $gnWwJ$ProgressBarBase} from "@react-spectrum/progress";
|
|
@@ -24,7 +24,7 @@ function $parcel$interopDefault(a) {
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
const $559585cb28581b56$export$62e3ae2a4090b879 = /*#__PURE__*/ (0, $gnWwJ$react).forwardRef(function Meter(props, ref) {
|
|
28
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), {
|
|
@@ -38,11 +38,7 @@ function $559585cb28581b56$var$Meter(props, ref) {
|
|
|
38
38
|
'is-critical': variant === 'critical'
|
|
39
39
|
})
|
|
40
40
|
});
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Meters are visual representations of a quantity or an achievement.
|
|
44
|
-
* Their progress is determined by user actions, rather than system actions.
|
|
45
|
-
*/ let $559585cb28581b56$export$62e3ae2a4090b879 = /*#__PURE__*/ (0, $gnWwJ$react).forwardRef($559585cb28581b56$var$Meter);
|
|
41
|
+
});
|
|
46
42
|
|
|
47
43
|
|
|
48
44
|
export {$559585cb28581b56$export$62e3ae2a4090b879 as Meter};
|
package/dist/Meter.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;
|
|
1
|
+
{"mappings":";;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;AAcM,MAAM,0DAAQ,CAAA,GAAA,YAAI,EAAE,UAAU,CAAC,SAAS,MAAM,KAAyB,EAAE,GAA2B;IACzG,IAAI,WAAC,UAAU,eAAe,GAAG,YAAW,GAAG;IAC/C,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,2DAAK,GACL;YACE,eAAe,YAAY;YAC3B,cAAc,YAAY;YAC1B,eAAe,YAAY;QAC7B;;AAIV","sources":["packages/@react-spectrum/meter/src/Meter.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 {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\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 */\nexport const Meter = React.forwardRef(function Meter(props: SpectrumMeterProps, ref: DOMRef<HTMLDivElement>) {\n let {variant = 'informative', ...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"],"names":[],"version":3,"file":"Meter.module.js.map"}
|
package/dist/types.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { DOMRefValue } from "@react-types/shared";
|
|
|
5
5
|
* Meters are visual representations of a quantity or an achievement.
|
|
6
6
|
* Their progress is determined by user actions, rather than system actions.
|
|
7
7
|
*/
|
|
8
|
-
export
|
|
8
|
+
export const Meter: React.ForwardRefExoticComponent<SpectrumMeterProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>>;
|
|
9
9
|
export type { SpectrumMeterProps } from '@react-types/meter';
|
|
10
10
|
|
|
11
11
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;
|
|
1
|
+
{"mappings":";;;AAoBA;;;GAGG;AACH,OAAO,MAAM,6GAwBX,CAAC;ACjCH,YAAY,EAAC,kBAAkB,EAAC,MAAM,oBAAoB,CAAC","sources":["packages/@react-spectrum/meter/src/packages/@react-spectrum/meter/src/Meter.tsx","packages/@react-spectrum/meter/src/packages/@react-spectrum/meter/src/index.ts","packages/@react-spectrum/meter/src/index.ts"],"sourcesContent":[null,null,"/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {Meter} from './Meter';\nexport type {SpectrumMeterProps} from '@react-types/meter';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
|
|
@@ -101,10 +101,10 @@
|
|
|
101
101
|
|
|
102
102
|
.yaf-qa_spectrum-BarLoader-track {
|
|
103
103
|
min-inline-size: var(--spectrum-global-dimension-static-size-600, 48px);
|
|
104
|
+
inline-size: 100%;
|
|
104
105
|
height: var(--spectrum-barloader-large-height, var(--spectrum-global-dimension-size-75));
|
|
105
106
|
border-radius: var(--spectrum-barloader-large-border-radius);
|
|
106
107
|
z-index: 1;
|
|
107
|
-
inline-size: 100%;
|
|
108
108
|
overflow: hidden;
|
|
109
109
|
}
|
|
110
110
|
|
|
@@ -285,4 +285,4 @@
|
|
|
285
285
|
border: 1px solid buttontext;
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
|
-
/*# sourceMappingURL=vars.
|
|
288
|
+
/*# sourceMappingURL=vars.c1062b60.css.map */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AA4DA;;;;;AAIE;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAQA;;;;AAIA;;;;AAKF;;;;;;;;AAOE;;;;;;;;;;;AAqBE;;;;;AAQF;;;;AAKE;;;;;AAOJ;EACE;;;;EAIE;;;;;AAMJ;;;;;;;;;;;;AAWE;;;;AAKE;;;;;AAOJ;;;;;;;;;AAUA;;;;;;AAOA;;;;;;;;AASA;;;;AAIA;;;;;AAKA;;;;;;;AAME;;;;AAIA;;;;;AAIA;;;;;;;AAQF;;;;AAGE;;;;AAIA;;;;;AAMF;;;;;;;;;AAQE;;;;AAGA;;;;AAKF;;;;;;;;;;AASA;;;;;;;;;;AAqBA;;;;;;AAKE;;;;AAIA;;;;AAME;;;;AAIA;;;;AAKA;;;;AATA;;;;AAIA;;;;AAKA;;;;AAMA;;;;AAIA;;;;AAKA;;;;AAKA;;;;AAKA;;;;AAKA;;;;AAMJ;;;;AAeA;EACE","sources":["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@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"vars.
|
|
1
|
+
{"mappings":"AA4DA;;;;;AAIE;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAQA;;;;AAIA;;;;AAKF;;;;;;;;AAOE;;;;;;;;;;;AAqBE;;;;;AAQF;;;;AAKE;;;;;AAOJ;EACE;;;;EAIE;;;;;AAMJ;;;;;;;;;;;;AAWE;;;;AAKE;;;;;AAOJ;;;;;;;;;AAUA;;;;;;AAOA;;;;;;;;AASA;;;;AAIA;;;;;AAKA;;;;;;;AAME;;;;AAIA;;;;;AAIA;;;;;;;AAQF;;;;AAGE;;;;AAIA;;;;;AAMF;;;;;;;;;AAQE;;;;AAGA;;;;AAKF;;;;;;;;;;AASA;;;;;;;;;;AAqBA;;;;;;AAKE;;;;AAIA;;;;AAME;;;;AAIA;;;;AAKA;;;;AATA;;;;AAIA;;;;AAKA;;;;AAMA;;;;AAIA;;;;AAKA;;;;AAKA;;;;AAKA;;;;AAKA;;;;AAMJ;;;;AAeA;EACE","sources":["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@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"vars.c1062b60.css.map"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-spectrum/meter",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.6",
|
|
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.12.
|
|
42
|
-
"@react-types/meter": "^3.4.
|
|
43
|
-
"@react-types/shared": "^3.
|
|
39
|
+
"@react-aria/meter": "^3.4.19",
|
|
40
|
+
"@react-spectrum/progress": "^3.7.12",
|
|
41
|
+
"@react-spectrum/utils": "^3.12.1",
|
|
42
|
+
"@react-types/meter": "^3.4.6",
|
|
43
|
+
"@react-types/shared": "^3.27.0",
|
|
44
44
|
"@swc/helpers": "^0.5.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
@@ -48,10 +48,11 @@
|
|
|
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 || ^19.0.0-rc.1"
|
|
51
|
+
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
|
|
52
|
+
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
|
|
52
53
|
},
|
|
53
54
|
"publishConfig": {
|
|
54
55
|
"access": "public"
|
|
55
56
|
},
|
|
56
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "09e7f44bebdc9d89122926b2b439a0a38a2814ea"
|
|
57
58
|
}
|
package/src/Meter.tsx
CHANGED
|
@@ -18,7 +18,11 @@ import {SpectrumMeterProps} from '@react-types/meter';
|
|
|
18
18
|
import styles from '@adobe/spectrum-css-temp/components/barloader/vars.css';
|
|
19
19
|
import {useMeter} from '@react-aria/meter';
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Meters are visual representations of a quantity or an achievement.
|
|
23
|
+
* Their progress is determined by user actions, rather than system actions.
|
|
24
|
+
*/
|
|
25
|
+
export const Meter = React.forwardRef(function Meter(props: SpectrumMeterProps, ref: DOMRef<HTMLDivElement>) {
|
|
22
26
|
let {variant = 'informative', ...otherProps} = props;
|
|
23
27
|
const {
|
|
24
28
|
meterProps,
|
|
@@ -42,11 +46,4 @@ function Meter(props: SpectrumMeterProps, ref: DOMRef<HTMLDivElement>) {
|
|
|
42
46
|
)
|
|
43
47
|
} />
|
|
44
48
|
);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Meters are visual representations of a quantity or an achievement.
|
|
49
|
-
* Their progress is determined by user actions, rather than system actions.
|
|
50
|
-
*/
|
|
51
|
-
let _Meter = React.forwardRef(Meter);
|
|
52
|
-
export {_Meter as Meter};
|
|
49
|
+
});
|