@react-aria/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 +44 -0
  2. package/package.json +10 -5
@@ -0,0 +1,44 @@
1
+ import {useProgressBar as $fmhsW$useProgressBar} from "@react-aria/progress";
2
+
3
+ /*
4
+ * Copyright 2020 Adobe. All rights reserved.
5
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License. You may obtain a copy
7
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software distributed under
10
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
11
+ * OF ANY KIND, either express or implied. See the License for the specific language
12
+ * governing permissions and limitations under the License.
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
+ */
24
+ function $0002d7e1d16de204$export$e969dbfa146870ff(props) {
25
+ let { progressBarProps: progressBarProps , labelProps: labelProps } = (0, $fmhsW$useProgressBar)(props);
26
+ return {
27
+ meterProps: {
28
+ ...progressBarProps,
29
+ // Use the meter role if available, but fall back to progressbar if not
30
+ // Chrome currently falls back from meter automatically, and Firefox
31
+ // does not support meter at all. Safari 13+ seems to support meter properly.
32
+ // https://bugs.chromium.org/p/chromium/issues/detail?id=944542
33
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=1460378
34
+ role: "meter progressbar"
35
+ },
36
+ labelProps: labelProps
37
+ };
38
+ }
39
+
40
+
41
+
42
+
43
+ export {$0002d7e1d16de204$export$e969dbfa146870ff as useMeter};
44
+ //# sourceMappingURL=module.js.map
package/package.json CHANGED
@@ -1,10 +1,15 @@
1
1
  {
2
2
  "name": "@react-aria/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": [
@@ -17,9 +22,9 @@
17
22
  "url": "https://github.com/adobe/react-spectrum"
18
23
  },
19
24
  "dependencies": {
20
- "@react-aria/progress": "^3.3.4",
21
- "@react-types/meter": "^3.2.5",
22
- "@react-types/shared": "^3.16.0",
25
+ "@react-aria/progress": "^3.4.0",
26
+ "@react-types/meter": "^3.3.0",
27
+ "@react-types/shared": "^3.17.0",
23
28
  "@swc/helpers": "^0.4.14"
24
29
  },
25
30
  "peerDependencies": {
@@ -28,5 +33,5 @@
28
33
  "publishConfig": {
29
34
  "access": "public"
30
35
  },
31
- "gitHead": "5480d76bd815e239366f92852c76b6831ad2a4fd"
36
+ "gitHead": "a0efee84aa178cb1a202951dfd6d8de02b292307"
32
37
  }