@react-spectrum/meter 3.3.4 → 3.4.0

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.
Files changed (2) hide show
  1. package/dist/import.mjs +108 -0
  2. package/package.json +12 -7
@@ -0,0 +1,108 @@
1
+ import "./main.css";
2
+ import {classNames as $dMbnw$classNames} from "@react-spectrum/utils";
3
+ import {ProgressBarBase as $dMbnw$ProgressBarBase} from "@react-spectrum/progress";
4
+ import $dMbnw$react from "react";
5
+ import {useMeter as $dMbnw$useMeter} from "@react-aria/meter";
6
+
7
+ function $parcel$interopDefault(a) {
8
+ return a && a.__esModule ? a.default : a;
9
+ }
10
+ function $parcel$export(e, n, v, s) {
11
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
12
+ }
13
+ /*
14
+ * Copyright 2020 Adobe. All rights reserved.
15
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
16
+ * you may not use this file except in compliance with the License. You may obtain a copy
17
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
18
+ *
19
+ * Unless required by applicable law or agreed to in writing, software distributed under
20
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
21
+ * OF ANY KIND, either express or implied. See the License for the specific language
22
+ * governing permissions and limitations under the License.
23
+ */ /// <reference types="css-module-types" />
24
+ /*
25
+ * Copyright 2020 Adobe. All rights reserved.
26
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
27
+ * you may not use this file except in compliance with the License. You may obtain a copy
28
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
29
+ *
30
+ * Unless required by applicable law or agreed to in writing, software distributed under
31
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
32
+ * OF ANY KIND, either express or implied. See the License for the specific language
33
+ * governing permissions and limitations under the License.
34
+ */
35
+
36
+
37
+ var $a43f840f49ffbe32$exports = {};
38
+
39
+ $parcel$export($a43f840f49ffbe32$exports, "spectrum-BarLoader", () => $a43f840f49ffbe32$export$162ba336fb0c239f, (v) => $a43f840f49ffbe32$export$162ba336fb0c239f = v);
40
+ $parcel$export($a43f840f49ffbe32$exports, "spectrum-BarLoader--indeterminate", () => $a43f840f49ffbe32$export$1249dfbb98223794, (v) => $a43f840f49ffbe32$export$1249dfbb98223794 = v);
41
+ $parcel$export($a43f840f49ffbe32$exports, "spectrum-BarLoader--sideLabel", () => $a43f840f49ffbe32$export$99af8802cc2a10dc, (v) => $a43f840f49ffbe32$export$99af8802cc2a10dc = v);
42
+ $parcel$export($a43f840f49ffbe32$exports, "spectrum-BarLoader-track", () => $a43f840f49ffbe32$export$3e2e13fb57b5c74b, (v) => $a43f840f49ffbe32$export$3e2e13fb57b5c74b = v);
43
+ $parcel$export($a43f840f49ffbe32$exports, "spectrum-BarLoader-fill", () => $a43f840f49ffbe32$export$84c9ee7bc724b71b, (v) => $a43f840f49ffbe32$export$84c9ee7bc724b71b = v);
44
+ $parcel$export($a43f840f49ffbe32$exports, "spectrum-BarLoader-label", () => $a43f840f49ffbe32$export$5379ba198163be86, (v) => $a43f840f49ffbe32$export$5379ba198163be86 = v);
45
+ $parcel$export($a43f840f49ffbe32$exports, "spectrum-BarLoader-percentage", () => $a43f840f49ffbe32$export$ecc9c825de9d1a18, (v) => $a43f840f49ffbe32$export$ecc9c825de9d1a18 = v);
46
+ $parcel$export($a43f840f49ffbe32$exports, "spectrum-BarLoader--small", () => $a43f840f49ffbe32$export$b945305960ad74a7, (v) => $a43f840f49ffbe32$export$b945305960ad74a7 = v);
47
+ $parcel$export($a43f840f49ffbe32$exports, "indeterminate-loop-ltr", () => $a43f840f49ffbe32$export$a889038a25113dd4, (v) => $a43f840f49ffbe32$export$a889038a25113dd4 = v);
48
+ $parcel$export($a43f840f49ffbe32$exports, "indeterminate-loop-rtl", () => $a43f840f49ffbe32$export$aeff243cf3356f00, (v) => $a43f840f49ffbe32$export$aeff243cf3356f00 = v);
49
+ $parcel$export($a43f840f49ffbe32$exports, "spectrum-BarLoader--overBackground", () => $a43f840f49ffbe32$export$55612d0bd9b5d41, (v) => $a43f840f49ffbe32$export$55612d0bd9b5d41 = v);
50
+ $parcel$export($a43f840f49ffbe32$exports, "is-positive", () => $a43f840f49ffbe32$export$aea9fd919467f03a, (v) => $a43f840f49ffbe32$export$aea9fd919467f03a = v);
51
+ $parcel$export($a43f840f49ffbe32$exports, "is-warning", () => $a43f840f49ffbe32$export$d4ebda6218901908, (v) => $a43f840f49ffbe32$export$d4ebda6218901908 = v);
52
+ $parcel$export($a43f840f49ffbe32$exports, "is-critical", () => $a43f840f49ffbe32$export$a1f608a9810da50f, (v) => $a43f840f49ffbe32$export$a1f608a9810da50f = v);
53
+ var $a43f840f49ffbe32$export$162ba336fb0c239f;
54
+ var $a43f840f49ffbe32$export$1249dfbb98223794;
55
+ var $a43f840f49ffbe32$export$99af8802cc2a10dc;
56
+ var $a43f840f49ffbe32$export$3e2e13fb57b5c74b;
57
+ var $a43f840f49ffbe32$export$84c9ee7bc724b71b;
58
+ var $a43f840f49ffbe32$export$5379ba198163be86;
59
+ var $a43f840f49ffbe32$export$ecc9c825de9d1a18;
60
+ var $a43f840f49ffbe32$export$b945305960ad74a7;
61
+ var $a43f840f49ffbe32$export$a889038a25113dd4;
62
+ var $a43f840f49ffbe32$export$aeff243cf3356f00;
63
+ var $a43f840f49ffbe32$export$55612d0bd9b5d41;
64
+ var $a43f840f49ffbe32$export$aea9fd919467f03a;
65
+ var $a43f840f49ffbe32$export$d4ebda6218901908;
66
+ var $a43f840f49ffbe32$export$a1f608a9810da50f;
67
+ $a43f840f49ffbe32$export$162ba336fb0c239f = "spectrum-BarLoader_48541f";
68
+ $a43f840f49ffbe32$export$1249dfbb98223794 = "spectrum-BarLoader--indeterminate_48541f";
69
+ $a43f840f49ffbe32$export$99af8802cc2a10dc = "spectrum-BarLoader--sideLabel_48541f";
70
+ $a43f840f49ffbe32$export$3e2e13fb57b5c74b = "spectrum-BarLoader-track_48541f";
71
+ $a43f840f49ffbe32$export$84c9ee7bc724b71b = "spectrum-BarLoader-fill_48541f";
72
+ $a43f840f49ffbe32$export$5379ba198163be86 = "spectrum-BarLoader-label_48541f";
73
+ $a43f840f49ffbe32$export$ecc9c825de9d1a18 = "spectrum-BarLoader-percentage_48541f";
74
+ $a43f840f49ffbe32$export$b945305960ad74a7 = "spectrum-BarLoader--small_48541f";
75
+ $a43f840f49ffbe32$export$a889038a25113dd4 = "indeterminate-loop-ltr_48541f";
76
+ $a43f840f49ffbe32$export$aeff243cf3356f00 = "indeterminate-loop-rtl_48541f";
77
+ $a43f840f49ffbe32$export$55612d0bd9b5d41 = "spectrum-BarLoader--overBackground_48541f";
78
+ $a43f840f49ffbe32$export$aea9fd919467f03a = "is-positive_48541f";
79
+ $a43f840f49ffbe32$export$d4ebda6218901908 = "is-warning_48541f";
80
+ $a43f840f49ffbe32$export$a1f608a9810da50f = "is-critical_48541f";
81
+
82
+
83
+
84
+ function $559585cb28581b56$var$Meter(props, ref) {
85
+ let { variant: variant , ...otherProps } = props;
86
+ const { meterProps: meterProps , labelProps: labelProps } = (0, $dMbnw$useMeter)(props);
87
+ return /*#__PURE__*/ (0, $dMbnw$react).createElement((0, $dMbnw$ProgressBarBase), {
88
+ ...otherProps,
89
+ ref: ref,
90
+ barProps: meterProps,
91
+ labelProps: labelProps,
92
+ barClassName: (0, $dMbnw$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($a43f840f49ffbe32$exports))), {
93
+ "is-positive": variant === "positive",
94
+ "is-warning": variant === "warning",
95
+ "is-critical": variant === "critical"
96
+ })
97
+ });
98
+ }
99
+ /**
100
+ * Meters are visual representations of a quantity or an achievement.
101
+ * Their progress is determined by user actions, rather than system actions.
102
+ */ let $559585cb28581b56$export$62e3ae2a4090b879 = /*#__PURE__*/ (0, $dMbnw$react).forwardRef($559585cb28581b56$var$Meter);
103
+
104
+
105
+
106
+
107
+ export {$559585cb28581b56$export$62e3ae2a4090b879 as Meter};
108
+ //# sourceMappingURL=module.js.map
package/package.json CHANGED
@@ -1,10 +1,15 @@
1
1
  {
2
2
  "name": "@react-spectrum/meter",
3
- "version": "3.3.4",
3
+ "version": "3.4.0",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
7
7
  "module": "dist/module.js",
8
+ "exports": {
9
+ "types": "./dist/types.d.ts",
10
+ "import": "./dist/import.mjs",
11
+ "require": "./dist/main.js"
12
+ },
8
13
  "types": "dist/types.d.ts",
9
14
  "source": "src/index.ts",
10
15
  "files": [
@@ -31,11 +36,11 @@
31
36
  "url": "https://github.com/adobe/react-spectrum"
32
37
  },
33
38
  "dependencies": {
34
- "@react-aria/meter": "^3.3.4",
35
- "@react-spectrum/progress": "^3.3.4",
36
- "@react-spectrum/utils": "^3.8.1",
37
- "@react-types/meter": "^3.2.5",
38
- "@react-types/shared": "^3.16.0",
39
+ "@react-aria/meter": "^3.4.0",
40
+ "@react-spectrum/progress": "^3.4.0",
41
+ "@react-spectrum/utils": "^3.9.0",
42
+ "@react-types/meter": "^3.3.0",
43
+ "@react-types/shared": "^3.17.0",
39
44
  "@swc/helpers": "^0.4.14"
40
45
  },
41
46
  "devDependencies": {
@@ -48,5 +53,5 @@
48
53
  "publishConfig": {
49
54
  "access": "public"
50
55
  },
51
- "gitHead": "5480d76bd815e239366f92852c76b6831ad2a4fd"
56
+ "gitHead": "a0efee84aa178cb1a202951dfd6d8de02b292307"
52
57
  }