@react-aria/meter 3.1.1 → 3.1.5

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/main.js CHANGED
@@ -1,34 +1,46 @@
1
- var {
2
- useProgressBar
3
- } = require("@react-aria/progress");
1
+ var $chpm9$reactariaprogress = require("@react-aria/progress");
4
2
 
5
- var _babelRuntimeHelpersExtends = $parcel$interopDefault(require("@babel/runtime/helpers/extends"));
3
+ function $parcel$exportWildcard(dest, source) {
4
+ Object.keys(source).forEach(function(key) {
5
+ if (key === 'default' || key === '__esModule' || dest.hasOwnProperty(key)) {
6
+ return;
7
+ }
6
8
 
7
- function $parcel$interopDefault(a) {
8
- return a && a.__esModule ? a.default : a;
9
+ Object.defineProperty(dest, key, {
10
+ enumerable: true,
11
+ get: function get() {
12
+ return source[key];
13
+ }
14
+ });
15
+ });
16
+
17
+ return dest;
18
+ }
19
+ function $parcel$export(e, n, v, s) {
20
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
9
21
  }
22
+ var $ed3a35e52c535185$exports = {};
23
+
24
+ $parcel$export($ed3a35e52c535185$exports, "useMeter", () => $ed3a35e52c535185$export$e969dbfa146870ff);
10
25
 
11
- /**
12
- * Provides the accessibility implementation for a meter component.
13
- * Meters represent a quantity within a known range, or a fractional value.
14
- */
15
- function useMeter(props) {
16
- let {
17
- progressBarProps,
18
- labelProps
19
- } = useProgressBar(props);
20
- return {
21
- meterProps: _babelRuntimeHelpersExtends({}, progressBarProps, {
22
- // Use the meter role if available, but fall back to progressbar if not
23
- // Chrome currently falls back from meter automatically, and Firefox
24
- // does not support meter at all. Safari 13+ seems to support meter properly.
25
- // https://bugs.chromium.org/p/chromium/issues/detail?id=944542
26
- // https://bugzilla.mozilla.org/show_bug.cgi?id=1460378
27
- role: 'meter progressbar'
28
- }),
29
- labelProps
30
- };
26
+ function $ed3a35e52c535185$export$e969dbfa146870ff(props) {
27
+ let { progressBarProps: progressBarProps , labelProps: labelProps } = $chpm9$reactariaprogress.useProgressBar(props);
28
+ return {
29
+ meterProps: {
30
+ ...progressBarProps,
31
+ // Use the meter role if available, but fall back to progressbar if not
32
+ // Chrome currently falls back from meter automatically, and Firefox
33
+ // does not support meter at all. Safari 13+ seems to support meter properly.
34
+ // https://bugs.chromium.org/p/chromium/issues/detail?id=944542
35
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=1460378
36
+ role: 'meter progressbar'
37
+ },
38
+ labelProps: labelProps
39
+ };
31
40
  }
32
41
 
33
- exports.useMeter = useMeter;
42
+
43
+ $parcel$exportWildcard(module.exports, $ed3a35e52c535185$exports);
44
+
45
+
34
46
  //# sourceMappingURL=main.js.map
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"mappings":";;;;;;AAAA,SAASA,sBAAT,CAAgCC,CAAhC,EAAmC;AACjC,SAAOA,CAAC,IAAIA,CAAC,CAACC,UAAP,GAAoBD,CAAC,CAACE,OAAtB,GAAgCF,CAAvC;AACD;;ACqBD;;;;AAIO,SAASG,QAAT,CAAkBC,KAAlB,EAAoD;AACzD,MAAI;AAACC,IAAAA,gBAAD;AAAmBC,IAAAA;AAAnB,MAAiCC,cAAc,CAACH,KAAD,CAAnD;AAEA,SAAO;AACLI,IAAAA,UAAU,kCACLH,gBADK;AAER;AACA;AACA;AACA;AACA;AACAI,MAAAA,IAAI,EAAE;AAPE,MADL;AAULH,IAAAA;AAVK,GAAP;AAYD","sources":["./node_modules/@parcel/scope-hoisting/lib/helpers.js","./packages/@react-aria/meter/src/useMeter.ts"],"sourcesContent":["function $parcel$interopDefault(a) {\n return a && a.__esModule ? a.default : a;\n}\n\nfunction $parcel$defineInteropFlag(a) {\n Object.defineProperty(a, '__esModule', {value: true});\n}\n\nfunction $parcel$exportWildcard(dest, source) {\n Object.keys(source).forEach(function(key) {\n if (key === 'default' || key === '__esModule') {\n return;\n }\n\n Object.defineProperty(dest, key, {\n enumerable: true,\n get: function get() {\n return source[key];\n },\n });\n });\n\n return dest;\n}\n\nfunction $parcel$missingModule(name) {\n var err = new Error(\"Cannot find module '\" + name + \"'\");\n err.code = 'MODULE_NOT_FOUND';\n throw err;\n}\n\nvar $parcel$global =\n typeof globalThis !== 'undefined'\n ? globalThis\n : typeof self !== 'undefined'\n ? self\n : typeof window !== 'undefined'\n ? window\n : typeof global !== 'undefined'\n ? global\n : {};\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 {HTMLAttributes} from 'react';\nimport {useProgressBar} from '@react-aria/progress';\n\ninterface MeterAria {\n /** Props for the meter container element. */\n meterProps: HTMLAttributes<HTMLElement>,\n /** Props for the meter's visual label (if any). */\n labelProps: HTMLAttributes<HTMLElement>\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":["$parcel$interopDefault","a","__esModule","default","useMeter","props","progressBarProps","labelProps","useProgressBar","meterProps","role"],"version":3,"file":"main.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;SC2BgB,yCAAQ,CAAC,KAAqB,EAAa,CAAC;IAC1D,GAAG,CAAC,CAAC,mBAAA,gBAAgB,eAAE,UAAU,EAAA,CAAC,GAAG,uCAAc,CAAC,KAAK;IAEzD,MAAM,CAAC,CAAC;QACN,UAAU,EAAE,CAAC;eACR,gBAAgB;YACnB,EAAuE,AAAvE,qEAAuE;YACvE,EAAoE,AAApE,kEAAoE;YACpE,EAA6E,AAA7E,2EAA6E;YAC7E,EAA+D,AAA/D,6DAA+D;YAC/D,EAAuD,AAAvD,qDAAuD;YACvD,IAAI,EAAE,CAAmB;QAC3B,CAAC;oBACD,UAAU;IACZ,CAAC;AACH,CAAC","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 */\n\nexport * 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 {HTMLAttributes} from 'react';\nimport {useProgressBar} from '@react-aria/progress';\n\ninterface MeterAria {\n /** Props for the meter container element. */\n meterProps: HTMLAttributes<HTMLElement>,\n /** Props for the meter's visual label (if any). */\n labelProps: HTMLAttributes<HTMLElement>\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"}
package/dist/module.js CHANGED
@@ -1,25 +1,30 @@
1
- import { useProgressBar } from "@react-aria/progress";
2
- import _babelRuntimeHelpersEsmExtends from "@babel/runtime/helpers/esm/extends";
1
+ import {useProgressBar as $g95MJ$useProgressBar} from "@react-aria/progress";
3
2
 
4
- /**
5
- * Provides the accessibility implementation for a meter component.
6
- * Meters represent a quantity within a known range, or a fractional value.
7
- */
8
- export function useMeter(props) {
9
- let {
10
- progressBarProps,
11
- labelProps
12
- } = useProgressBar(props);
13
- return {
14
- meterProps: _babelRuntimeHelpersEsmExtends({}, progressBarProps, {
15
- // Use the meter role if available, but fall back to progressbar if not
16
- // Chrome currently falls back from meter automatically, and Firefox
17
- // does not support meter at all. Safari 13+ seems to support meter properly.
18
- // https://bugs.chromium.org/p/chromium/issues/detail?id=944542
19
- // https://bugzilla.mozilla.org/show_bug.cgi?id=1460378
20
- role: 'meter progressbar'
21
- }),
22
- labelProps
23
- };
3
+ function $parcel$export(e, n, v, s) {
4
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
24
5
  }
6
+ var $43332da67150931c$exports = {};
7
+
8
+ $parcel$export($43332da67150931c$exports, "useMeter", () => $43332da67150931c$export$e969dbfa146870ff);
9
+
10
+ function $43332da67150931c$export$e969dbfa146870ff(props) {
11
+ let { progressBarProps: progressBarProps , labelProps: labelProps } = $g95MJ$useProgressBar(props);
12
+ return {
13
+ meterProps: {
14
+ ...progressBarProps,
15
+ // Use the meter role if available, but fall back to progressbar if not
16
+ // Chrome currently falls back from meter automatically, and Firefox
17
+ // does not support meter at all. Safari 13+ seems to support meter properly.
18
+ // https://bugs.chromium.org/p/chromium/issues/detail?id=944542
19
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=1460378
20
+ role: 'meter progressbar'
21
+ },
22
+ labelProps: labelProps
23
+ };
24
+ }
25
+
26
+
27
+
28
+
29
+ export {$43332da67150931c$export$e969dbfa146870ff as useMeter};
25
30
  //# sourceMappingURL=module.js.map
@@ -1 +1 @@
1
- {"mappings":";;;AAuBA;;;;OAIO,SAASA,QAAT,CAAkBC,KAAlB,EAAoD;AACzD,MAAI;AAACC,IAAAA,gBAAD;AAAmBC,IAAAA;AAAnB,MAAiCC,cAAc,CAACH,KAAD,CAAnD;AAEA,SAAO;AACLI,IAAAA,UAAU,qCACLH,gBADK;AAER;AACA;AACA;AACA;AACA;AACAI,MAAAA,IAAI,EAAE;AAPE,MADL;AAULH,IAAAA;AAVK,GAAP;AAYD","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 {HTMLAttributes} from 'react';\nimport {useProgressBar} from '@react-aria/progress';\n\ninterface MeterAria {\n /** Props for the meter container element. */\n meterProps: HTMLAttributes<HTMLElement>,\n /** Props for the meter's visual label (if any). */\n labelProps: HTMLAttributes<HTMLElement>\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":["useMeter","props","progressBarProps","labelProps","useProgressBar","meterProps","role"],"version":3,"file":"module.js.map"}
1
+ {"mappings":";;;;;;;;;SC2BgB,yCAAQ,CAAC,KAAqB,EAAa,CAAC;IAC1D,GAAG,CAAC,CAAC,mBAAA,gBAAgB,eAAE,UAAU,EAAA,CAAC,GAAG,qBAAc,CAAC,KAAK;IAEzD,MAAM,CAAC,CAAC;QACN,UAAU,EAAE,CAAC;eACR,gBAAgB;YACnB,EAAuE,AAAvE,qEAAuE;YACvE,EAAoE,AAApE,kEAAoE;YACpE,EAA6E,AAA7E,2EAA6E;YAC7E,EAA+D,AAA/D,6DAA+D;YAC/D,EAAuD,AAAvD,qDAAuD;YACvD,IAAI,EAAE,CAAmB;QAC3B,CAAC;oBACD,UAAU;IACZ,CAAC;AACH,CAAC","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 */\n\nexport * 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 {HTMLAttributes} from 'react';\nimport {useProgressBar} from '@react-aria/progress';\n\ninterface MeterAria {\n /** Props for the meter container element. */\n meterProps: HTMLAttributes<HTMLElement>,\n /** Props for the meter's visual label (if any). */\n labelProps: HTMLAttributes<HTMLElement>\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 +1 @@
1
- {"mappings":"A;A;AAgBA;IACE,6CAA6C;IAC7C,UAAU,EAAE,eAAe,WAAW,CAAC,CAAC;IACxC,mDAAmD;IACnD,UAAU,EAAE,eAAe,WAAW,CAAC,CAAA;CACxC;AAED;A;A;GAGG;AACH,yBAAyB,KAAK,EAAE,cAAc,GAAG,SAAS,CAezD","sources":["./packages/@react-aria/meter/src/packages/@react-aria/meter/src/useMeter.ts","./packages/@react-aria/meter/src/packages/@react-aria/meter/src/index.ts"],"sourcesContent":[null,null],"names":[],"version":3,"file":"types.d.ts.map"}
1
+ {"mappings":";;AAgBA;IACE,6CAA6C;IAC7C,UAAU,EAAE,eAAe,WAAW,CAAC,CAAC;IACxC,mDAAmD;IACnD,UAAU,EAAE,eAAe,WAAW,CAAC,CAAA;CACxC;AAED;;;GAGG;AACH,yBAAyB,KAAK,EAAE,cAAc,GAAG,SAAS,CAezD","sources":["packages/@react-aria/meter/src/packages/@react-aria/meter/src/useMeter.ts","packages/@react-aria/meter/src/packages/@react-aria/meter/src/index.ts","packages/@react-aria/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\nexport * from './useMeter';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-aria/meter",
3
- "version": "3.1.1",
3
+ "version": "3.1.5",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
@@ -18,9 +18,9 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@babel/runtime": "^7.6.2",
21
- "@react-aria/progress": "^3.1.1",
22
- "@react-types/meter": "^3.1.1",
23
- "@react-types/shared": "^3.2.1"
21
+ "@react-aria/progress": "^3.1.5",
22
+ "@react-types/meter": "^3.1.4",
23
+ "@react-types/shared": "^3.11.1"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "react": "^16.8.0 || ^17.0.0-rc.1"
@@ -28,5 +28,5 @@
28
28
  "publishConfig": {
29
29
  "access": "public"
30
30
  },
31
- "gitHead": "0778f71a3c13e1e24388a23b6d525e3b9f5b98f1"
31
+ "gitHead": "404d41859b7d6f56201d7fc01bd9f22ae3512937"
32
32
  }