@react-aria/meter 3.4.10 → 3.4.12

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 CHANGED
@@ -1,16 +1,6 @@
1
- import {useProgressBar as $fmhsW$useProgressBar} from "@react-aria/progress";
1
+ import {useMeter as $0002d7e1d16de204$export$e969dbfa146870ff} from "./useMeter.mjs";
2
2
 
3
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
4
  * Copyright 2020 Adobe. All rights reserved.
15
5
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
16
6
  * you may not use this file except in compliance with the License. You may obtain a copy
@@ -21,23 +11,6 @@ import {useProgressBar as $fmhsW$useProgressBar} from "@react-aria/progress";
21
11
  * OF ANY KIND, either express or implied. See the License for the specific language
22
12
  * governing permissions and limitations under the License.
23
13
  */
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
14
 
42
15
 
43
16
  export {$0002d7e1d16de204$export$e969dbfa146870ff as useMeter};
package/dist/main.js CHANGED
@@ -1,22 +1,12 @@
1
- var $aOtmD$reactariaprogress = require("@react-aria/progress");
1
+ var $baeb59afd7f4f53c$exports = require("./useMeter.main.js");
2
2
 
3
3
 
4
4
  function $parcel$export(e, n, v, s) {
5
5
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
6
6
  }
7
7
 
8
- $parcel$export(module.exports, "useMeter", () => $baeb59afd7f4f53c$export$e969dbfa146870ff);
8
+ $parcel$export(module.exports, "useMeter", () => $baeb59afd7f4f53c$exports.useMeter);
9
9
  /*
10
- * Copyright 2020 Adobe. All rights reserved.
11
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
12
- * you may not use this file except in compliance with the License. You may obtain a copy
13
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
14
- *
15
- * Unless required by applicable law or agreed to in writing, software distributed under
16
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
17
- * OF ANY KIND, either express or implied. See the License for the specific language
18
- * governing permissions and limitations under the License.
19
- */ /*
20
10
  * Copyright 2020 Adobe. All rights reserved.
21
11
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
22
12
  * you may not use this file except in compliance with the License. You may obtain a copy
@@ -27,23 +17,6 @@ $parcel$export(module.exports, "useMeter", () => $baeb59afd7f4f53c$export$e969db
27
17
  * OF ANY KIND, either express or implied. See the License for the specific language
28
18
  * governing permissions and limitations under the License.
29
19
  */
30
- function $baeb59afd7f4f53c$export$e969dbfa146870ff(props) {
31
- let { progressBarProps: progressBarProps, labelProps: labelProps } = (0, $aOtmD$reactariaprogress.useProgressBar)(props);
32
- return {
33
- meterProps: {
34
- ...progressBarProps,
35
- // Use the meter role if available, but fall back to progressbar if not
36
- // Chrome currently falls back from meter automatically, and Firefox
37
- // does not support meter at all. Safari 13+ seems to support meter properly.
38
- // https://bugs.chromium.org/p/chromium/issues/detail?id=944542
39
- // https://bugzilla.mozilla.org/show_bug.cgi?id=1460378
40
- role: "meter progressbar"
41
- },
42
- labelProps: labelProps
43
- };
44
- }
45
-
46
-
47
20
 
48
21
 
49
22
  //# sourceMappingURL=main.js.map
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;AAAA;;;;;;;;;;ACAA;;;;;;;;;;CAUC;AAiBM,SAAS,0CAAS,KAAqB;IAC5C,IAAI,oBAAC,gBAAgB,cAAE,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAa,EAAE;IAEpD,OAAO;QACL,YAAY;YACV,GAAG,gBAAgB;YACnB,uEAAuE;YACvE,oEAAoE;YACpE,6EAA6E;YAC7E,+DAA+D;YAC/D,uDAAuD;YACvD,MAAM;QACR;oBACA;IACF;AACF;;CDhCC","sources":["packages/@react-aria/meter/src/index.ts","packages/@react-aria/meter/src/useMeter.ts"],"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 */\nexport {useMeter} from './useMeter';\nexport type {AriaMeterProps} from '@react-types/meter';\nexport type {MeterAria} from './useMeter';\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 {AriaMeterProps} from '@react-types/meter';\nimport {DOMAttributes} from '@react-types/shared';\nimport {useProgressBar} from '@react-aria/progress';\n\nexport interface MeterAria {\n /** Props for the meter container element. */\n meterProps: DOMAttributes,\n /** Props for the meter's visual label (if any). */\n labelProps: DOMAttributes\n}\n\n/**\n * Provides the accessibility implementation for a meter component.\n * Meters represent a quantity within a known range, or a fractional value.\n */\nexport function useMeter(props: AriaMeterProps): MeterAria {\n let {progressBarProps, labelProps} = useProgressBar(props);\n\n return {\n meterProps: {\n ...progressBarProps,\n // Use the meter role if available, but fall back to progressbar if not\n // Chrome currently falls back from meter automatically, and Firefox\n // does not support meter at all. Safari 13+ seems to support meter properly.\n // https://bugs.chromium.org/p/chromium/issues/detail?id=944542\n // https://bugzilla.mozilla.org/show_bug.cgi?id=1460378\n role: 'meter progressbar'\n },\n labelProps\n };\n}\n"],"names":[],"version":3,"file":"main.js.map"}
1
+ {"mappings":";;;;;;;;AAAA;;;;;;;;;;CAUC","sources":["packages/@react-aria/meter/src/index.ts"],"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 */\nexport {useMeter} from './useMeter';\nexport type {AriaMeterProps} from '@react-types/meter';\nexport type {MeterAria} from './useMeter';\n"],"names":[],"version":3,"file":"main.js.map"}
package/dist/module.js CHANGED
@@ -1,16 +1,6 @@
1
- import {useProgressBar as $fmhsW$useProgressBar} from "@react-aria/progress";
1
+ import {useMeter as $0002d7e1d16de204$export$e969dbfa146870ff} from "./useMeter.module.js";
2
2
 
3
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
4
  * Copyright 2020 Adobe. All rights reserved.
15
5
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
16
6
  * you may not use this file except in compliance with the License. You may obtain a copy
@@ -21,23 +11,6 @@ import {useProgressBar as $fmhsW$useProgressBar} from "@react-aria/progress";
21
11
  * OF ANY KIND, either express or implied. See the License for the specific language
22
12
  * governing permissions and limitations under the License.
23
13
  */
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
14
 
42
15
 
43
16
  export {$0002d7e1d16de204$export$e969dbfa146870ff as useMeter};
@@ -1 +1 @@
1
- {"mappings":";;AAAA;;;;;;;;;;ACAA;;;;;;;;;;CAUC;AAiBM,SAAS,0CAAS,KAAqB;IAC5C,IAAI,oBAAC,gBAAgB,cAAE,UAAU,EAAC,GAAG,CAAA,GAAA,qBAAa,EAAE;IAEpD,OAAO;QACL,YAAY;YACV,GAAG,gBAAgB;YACnB,uEAAuE;YACvE,oEAAoE;YACpE,6EAA6E;YAC7E,+DAA+D;YAC/D,uDAAuD;YACvD,MAAM;QACR;oBACA;IACF;AACF;;CDhCC","sources":["packages/@react-aria/meter/src/index.ts","packages/@react-aria/meter/src/useMeter.ts"],"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 */\nexport {useMeter} from './useMeter';\nexport type {AriaMeterProps} from '@react-types/meter';\nexport type {MeterAria} from './useMeter';\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 {AriaMeterProps} from '@react-types/meter';\nimport {DOMAttributes} from '@react-types/shared';\nimport {useProgressBar} from '@react-aria/progress';\n\nexport interface MeterAria {\n /** Props for the meter container element. */\n meterProps: DOMAttributes,\n /** Props for the meter's visual label (if any). */\n labelProps: DOMAttributes\n}\n\n/**\n * Provides the accessibility implementation for a meter component.\n * Meters represent a quantity within a known range, or a fractional value.\n */\nexport function useMeter(props: AriaMeterProps): MeterAria {\n let {progressBarProps, labelProps} = useProgressBar(props);\n\n return {\n meterProps: {\n ...progressBarProps,\n // Use the meter role if available, but fall back to progressbar if not\n // Chrome currently falls back from meter automatically, and Firefox\n // does not support meter at all. Safari 13+ seems to support meter properly.\n // https://bugs.chromium.org/p/chromium/issues/detail?id=944542\n // https://bugzilla.mozilla.org/show_bug.cgi?id=1460378\n role: 'meter progressbar'\n },\n labelProps\n };\n}\n"],"names":[],"version":3,"file":"module.js.map"}
1
+ {"mappings":";;AAAA;;;;;;;;;;CAUC","sources":["packages/@react-aria/meter/src/index.ts"],"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 */\nexport {useMeter} from './useMeter';\nexport type {AriaMeterProps} from '@react-types/meter';\nexport type {MeterAria} from './useMeter';\n"],"names":[],"version":3,"file":"module.js.map"}
@@ -0,0 +1,37 @@
1
+ var $kpZUP$reactariaprogress = require("@react-aria/progress");
2
+
3
+
4
+ function $parcel$export(e, n, v, s) {
5
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
6
+ }
7
+
8
+ $parcel$export(module.exports, "useMeter", () => $baeb59afd7f4f53c$export$e969dbfa146870ff);
9
+ /*
10
+ * Copyright 2020 Adobe. All rights reserved.
11
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
12
+ * you may not use this file except in compliance with the License. You may obtain a copy
13
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
14
+ *
15
+ * Unless required by applicable law or agreed to in writing, software distributed under
16
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
17
+ * OF ANY KIND, either express or implied. See the License for the specific language
18
+ * governing permissions and limitations under the License.
19
+ */
20
+ function $baeb59afd7f4f53c$export$e969dbfa146870ff(props) {
21
+ let { progressBarProps: progressBarProps, labelProps: labelProps } = (0, $kpZUP$reactariaprogress.useProgressBar)(props);
22
+ return {
23
+ meterProps: {
24
+ ...progressBarProps,
25
+ // Use the meter role if available, but fall back to progressbar if not
26
+ // Chrome currently falls back from meter automatically, and Firefox
27
+ // does not support meter at all. Safari 13+ seems to support meter properly.
28
+ // https://bugs.chromium.org/p/chromium/issues/detail?id=944542
29
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=1460378
30
+ role: "meter progressbar"
31
+ },
32
+ labelProps: labelProps
33
+ };
34
+ }
35
+
36
+
37
+ //# sourceMappingURL=useMeter.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;AAAA;;;;;;;;;;CAUC;AAiBM,SAAS,0CAAS,KAAqB;IAC5C,IAAI,oBAAC,gBAAgB,cAAE,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAa,EAAE;IAEpD,OAAO;QACL,YAAY;YACV,GAAG,gBAAgB;YACnB,uEAAuE;YACvE,oEAAoE;YACpE,6EAA6E;YAC7E,+DAA+D;YAC/D,uDAAuD;YACvD,MAAM;QACR;oBACA;IACF;AACF","sources":["packages/@react-aria/meter/src/useMeter.ts"],"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 {AriaMeterProps} from '@react-types/meter';\nimport {DOMAttributes} from '@react-types/shared';\nimport {useProgressBar} from '@react-aria/progress';\n\nexport interface MeterAria {\n /** Props for the meter container element. */\n meterProps: DOMAttributes,\n /** Props for the meter's visual label (if any). */\n labelProps: DOMAttributes\n}\n\n/**\n * Provides the accessibility implementation for a meter component.\n * Meters represent a quantity within a known range, or a fractional value.\n */\nexport function useMeter(props: AriaMeterProps): MeterAria {\n let {progressBarProps, labelProps} = useProgressBar(props);\n\n return {\n meterProps: {\n ...progressBarProps,\n // Use the meter role if available, but fall back to progressbar if not\n // Chrome currently falls back from meter automatically, and Firefox\n // does not support meter at all. Safari 13+ seems to support meter properly.\n // https://bugs.chromium.org/p/chromium/issues/detail?id=944542\n // https://bugzilla.mozilla.org/show_bug.cgi?id=1460378\n role: 'meter progressbar'\n },\n labelProps\n };\n}\n"],"names":[],"version":3,"file":"useMeter.main.js.map"}
@@ -0,0 +1,32 @@
1
+ import {useProgressBar as $jdwOC$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
+ function $0002d7e1d16de204$export$e969dbfa146870ff(props) {
15
+ let { progressBarProps: progressBarProps, labelProps: labelProps } = (0, $jdwOC$useProgressBar)(props);
16
+ return {
17
+ meterProps: {
18
+ ...progressBarProps,
19
+ // Use the meter role if available, but fall back to progressbar if not
20
+ // Chrome currently falls back from meter automatically, and Firefox
21
+ // does not support meter at all. Safari 13+ seems to support meter properly.
22
+ // https://bugs.chromium.org/p/chromium/issues/detail?id=944542
23
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=1460378
24
+ role: "meter progressbar"
25
+ },
26
+ labelProps: labelProps
27
+ };
28
+ }
29
+
30
+
31
+ export {$0002d7e1d16de204$export$e969dbfa146870ff as useMeter};
32
+ //# sourceMappingURL=useMeter.mjs.map
@@ -0,0 +1,32 @@
1
+ import {useProgressBar as $jdwOC$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
+ function $0002d7e1d16de204$export$e969dbfa146870ff(props) {
15
+ let { progressBarProps: progressBarProps, labelProps: labelProps } = (0, $jdwOC$useProgressBar)(props);
16
+ return {
17
+ meterProps: {
18
+ ...progressBarProps,
19
+ // Use the meter role if available, but fall back to progressbar if not
20
+ // Chrome currently falls back from meter automatically, and Firefox
21
+ // does not support meter at all. Safari 13+ seems to support meter properly.
22
+ // https://bugs.chromium.org/p/chromium/issues/detail?id=944542
23
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=1460378
24
+ role: "meter progressbar"
25
+ },
26
+ labelProps: labelProps
27
+ };
28
+ }
29
+
30
+
31
+ export {$0002d7e1d16de204$export$e969dbfa146870ff as useMeter};
32
+ //# sourceMappingURL=useMeter.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;AAAA;;;;;;;;;;CAUC;AAiBM,SAAS,0CAAS,KAAqB;IAC5C,IAAI,oBAAC,gBAAgB,cAAE,UAAU,EAAC,GAAG,CAAA,GAAA,qBAAa,EAAE;IAEpD,OAAO;QACL,YAAY;YACV,GAAG,gBAAgB;YACnB,uEAAuE;YACvE,oEAAoE;YACpE,6EAA6E;YAC7E,+DAA+D;YAC/D,uDAAuD;YACvD,MAAM;QACR;oBACA;IACF;AACF","sources":["packages/@react-aria/meter/src/useMeter.ts"],"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 {AriaMeterProps} from '@react-types/meter';\nimport {DOMAttributes} from '@react-types/shared';\nimport {useProgressBar} from '@react-aria/progress';\n\nexport interface MeterAria {\n /** Props for the meter container element. */\n meterProps: DOMAttributes,\n /** Props for the meter's visual label (if any). */\n labelProps: DOMAttributes\n}\n\n/**\n * Provides the accessibility implementation for a meter component.\n * Meters represent a quantity within a known range, or a fractional value.\n */\nexport function useMeter(props: AriaMeterProps): MeterAria {\n let {progressBarProps, labelProps} = useProgressBar(props);\n\n return {\n meterProps: {\n ...progressBarProps,\n // Use the meter role if available, but fall back to progressbar if not\n // Chrome currently falls back from meter automatically, and Firefox\n // does not support meter at all. Safari 13+ seems to support meter properly.\n // https://bugs.chromium.org/p/chromium/issues/detail?id=944542\n // https://bugzilla.mozilla.org/show_bug.cgi?id=1460378\n role: 'meter progressbar'\n },\n labelProps\n };\n}\n"],"names":[],"version":3,"file":"useMeter.module.js.map"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-aria/meter",
3
- "version": "3.4.10",
3
+ "version": "3.4.12",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
@@ -22,9 +22,9 @@
22
22
  "url": "https://github.com/adobe/react-spectrum"
23
23
  },
24
24
  "dependencies": {
25
- "@react-aria/progress": "^3.4.10",
26
- "@react-types/meter": "^3.3.6",
27
- "@react-types/shared": "^3.22.0",
25
+ "@react-aria/progress": "^3.4.12",
26
+ "@react-types/meter": "^3.4.0",
27
+ "@react-types/shared": "^3.23.0",
28
28
  "@swc/helpers": "^0.5.0"
29
29
  },
30
30
  "peerDependencies": {
@@ -33,5 +33,5 @@
33
33
  "publishConfig": {
34
34
  "access": "public"
35
35
  },
36
- "gitHead": "f040ff62678e6a31375b96c05396df0bae660350"
36
+ "gitHead": "f645f29edc1322153fd60af4640cbcab1d992dbd"
37
37
  }