@react-aria/meter 3.3.2 → 3.3.4

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
@@ -5,9 +5,29 @@ function $parcel$export(e, n, v, s) {
5
5
  }
6
6
 
7
7
  $parcel$export(module.exports, "useMeter", () => $baeb59afd7f4f53c$export$e969dbfa146870ff);
8
-
8
+ /*
9
+ * Copyright 2020 Adobe. All rights reserved.
10
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
11
+ * you may not use this file except in compliance with the License. You may obtain a copy
12
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software distributed under
15
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
16
+ * OF ANY KIND, either express or implied. See the License for the specific language
17
+ * governing permissions and limitations under the License.
18
+ */ /*
19
+ * Copyright 2020 Adobe. All rights reserved.
20
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
21
+ * you may not use this file except in compliance with the License. You may obtain a copy
22
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
23
+ *
24
+ * Unless required by applicable law or agreed to in writing, software distributed under
25
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
26
+ * OF ANY KIND, either express or implied. See the License for the specific language
27
+ * governing permissions and limitations under the License.
28
+ */
9
29
  function $baeb59afd7f4f53c$export$e969dbfa146870ff(props) {
10
- let { progressBarProps: progressBarProps , labelProps: labelProps } = $aOtmD$reactariaprogress.useProgressBar(props);
30
+ let { progressBarProps: progressBarProps , labelProps: labelProps } = (0, $aOtmD$reactariaprogress.useProgressBar)(props);
11
31
  return {
12
32
  meterProps: {
13
33
  ...progressBarProps,
@@ -16,7 +36,7 @@ function $baeb59afd7f4f53c$export$e969dbfa146870ff(props) {
16
36
  // does not support meter at all. Safari 13+ seems to support meter properly.
17
37
  // https://bugs.chromium.org/p/chromium/issues/detail?id=944542
18
38
  // https://bugzilla.mozilla.org/show_bug.cgi?id=1460378
19
- role: 'meter progressbar'
39
+ role: "meter progressbar"
20
40
  },
21
41
  labelProps: labelProps
22
42
  };
package/dist/main.js.map CHANGED
@@ -1 +1 @@
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 */\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;;;;;;;;;;ACAA;;;;;;;;;;CAUC,GAED;AAeO,SAAS,0CAAS,KAAqB,EAAa;IACzD,IAAI,oBAAC,iBAAgB,cAAE,WAAU,EAAC,GAAG,CAAA,GAAA,uCAAc,AAAD,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,GACD","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"}
package/dist/module.js CHANGED
@@ -1,8 +1,28 @@
1
1
  import {useProgressBar as $fmhsW$useProgressBar} from "@react-aria/progress";
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
+ * 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
+ */
4
24
  function $0002d7e1d16de204$export$e969dbfa146870ff(props) {
5
- let { progressBarProps: progressBarProps , labelProps: labelProps } = $fmhsW$useProgressBar(props);
25
+ let { progressBarProps: progressBarProps , labelProps: labelProps } = (0, $fmhsW$useProgressBar)(props);
6
26
  return {
7
27
  meterProps: {
8
28
  ...progressBarProps,
@@ -11,7 +31,7 @@ function $0002d7e1d16de204$export$e969dbfa146870ff(props) {
11
31
  // does not support meter at all. Safari 13+ seems to support meter properly.
12
32
  // https://bugs.chromium.org/p/chromium/issues/detail?id=944542
13
33
  // https://bugzilla.mozilla.org/show_bug.cgi?id=1460378
14
- role: 'meter progressbar'
34
+ role: "meter progressbar"
15
35
  },
16
36
  labelProps: labelProps
17
37
  };
@@ -1 +1 @@
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 */\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;;;;;;;;;;ACAA;;;;;;;;;;CAUC,GAED;AAeO,SAAS,0CAAS,KAAqB,EAAa;IACzD,IAAI,oBAAC,iBAAgB,cAAE,WAAU,EAAC,GAAG,CAAA,GAAA,qBAAc,AAAD,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,GACD","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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-aria/meter",
3
- "version": "3.3.2",
3
+ "version": "3.3.4",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
@@ -17,10 +17,10 @@
17
17
  "url": "https://github.com/adobe/react-spectrum"
18
18
  },
19
19
  "dependencies": {
20
- "@babel/runtime": "^7.6.2",
21
- "@react-aria/progress": "^3.3.2",
22
- "@react-types/meter": "^3.2.4",
23
- "@react-types/shared": "^3.15.0"
20
+ "@react-aria/progress": "^3.3.4",
21
+ "@react-types/meter": "^3.2.5",
22
+ "@react-types/shared": "^3.16.0",
23
+ "@swc/helpers": "^0.4.14"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
@@ -28,5 +28,5 @@
28
28
  "publishConfig": {
29
29
  "access": "public"
30
30
  },
31
- "gitHead": "9202ef59e8c104dd06ffe33148445ef7932a5d1b"
31
+ "gitHead": "5480d76bd815e239366f92852c76b6831ad2a4fd"
32
32
  }