@react-aria/numberfield 3.11.1 → 3.11.2

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 (50) hide show
  1. package/dist/ar-AE.mjs +1 -1
  2. package/dist/bg-BG.mjs +1 -1
  3. package/dist/cs-CZ.mjs +1 -1
  4. package/dist/da-DK.mjs +1 -1
  5. package/dist/de-DE.mjs +1 -1
  6. package/dist/el-GR.mjs +1 -1
  7. package/dist/en-US.mjs +1 -1
  8. package/dist/es-ES.mjs +1 -1
  9. package/dist/et-EE.mjs +1 -1
  10. package/dist/fi-FI.mjs +1 -1
  11. package/dist/fr-FR.mjs +1 -1
  12. package/dist/he-IL.mjs +1 -1
  13. package/dist/hr-HR.mjs +1 -1
  14. package/dist/hu-HU.mjs +1 -1
  15. package/dist/import.mjs +1 -345
  16. package/dist/intlStrings.main.js +108 -0
  17. package/dist/intlStrings.main.js.map +1 -0
  18. package/dist/intlStrings.mjs +110 -0
  19. package/dist/intlStrings.module.js +110 -0
  20. package/dist/intlStrings.module.js.map +1 -0
  21. package/dist/it-IT.mjs +1 -1
  22. package/dist/ja-JP.mjs +1 -1
  23. package/dist/ko-KR.mjs +1 -1
  24. package/dist/lt-LT.mjs +1 -1
  25. package/dist/lv-LV.mjs +1 -1
  26. package/dist/main.js +2 -346
  27. package/dist/main.js.map +1 -1
  28. package/dist/module.js +1 -345
  29. package/dist/module.js.map +1 -1
  30. package/dist/nb-NO.mjs +1 -1
  31. package/dist/nl-NL.mjs +1 -1
  32. package/dist/pl-PL.mjs +1 -1
  33. package/dist/pt-BR.mjs +1 -1
  34. package/dist/pt-PT.mjs +1 -1
  35. package/dist/ro-RO.mjs +1 -1
  36. package/dist/ru-RU.mjs +1 -1
  37. package/dist/sk-SK.mjs +1 -1
  38. package/dist/sl-SI.mjs +1 -1
  39. package/dist/sr-SP.mjs +1 -1
  40. package/dist/sv-SE.mjs +1 -1
  41. package/dist/tr-TR.mjs +1 -1
  42. package/dist/uk-UA.mjs +1 -1
  43. package/dist/useNumberField.main.js +249 -0
  44. package/dist/useNumberField.main.js.map +1 -0
  45. package/dist/useNumberField.mjs +244 -0
  46. package/dist/useNumberField.module.js +244 -0
  47. package/dist/useNumberField.module.js.map +1 -0
  48. package/dist/zh-CN.mjs +1 -1
  49. package/dist/zh-TW.mjs +1 -1
  50. package/package.json +12 -12
@@ -0,0 +1,110 @@
1
+ import $aC4gS$arAEmodulejs from "./ar-AE.mjs";
2
+ import $aC4gS$bgBGmodulejs from "./bg-BG.mjs";
3
+ import $aC4gS$csCZmodulejs from "./cs-CZ.mjs";
4
+ import $aC4gS$daDKmodulejs from "./da-DK.mjs";
5
+ import $aC4gS$deDEmodulejs from "./de-DE.mjs";
6
+ import $aC4gS$elGRmodulejs from "./el-GR.mjs";
7
+ import $aC4gS$enUSmodulejs from "./en-US.mjs";
8
+ import $aC4gS$esESmodulejs from "./es-ES.mjs";
9
+ import $aC4gS$etEEmodulejs from "./et-EE.mjs";
10
+ import $aC4gS$fiFImodulejs from "./fi-FI.mjs";
11
+ import $aC4gS$frFRmodulejs from "./fr-FR.mjs";
12
+ import $aC4gS$heILmodulejs from "./he-IL.mjs";
13
+ import $aC4gS$hrHRmodulejs from "./hr-HR.mjs";
14
+ import $aC4gS$huHUmodulejs from "./hu-HU.mjs";
15
+ import $aC4gS$itITmodulejs from "./it-IT.mjs";
16
+ import $aC4gS$jaJPmodulejs from "./ja-JP.mjs";
17
+ import $aC4gS$koKRmodulejs from "./ko-KR.mjs";
18
+ import $aC4gS$ltLTmodulejs from "./lt-LT.mjs";
19
+ import $aC4gS$lvLVmodulejs from "./lv-LV.mjs";
20
+ import $aC4gS$nbNOmodulejs from "./nb-NO.mjs";
21
+ import $aC4gS$nlNLmodulejs from "./nl-NL.mjs";
22
+ import $aC4gS$plPLmodulejs from "./pl-PL.mjs";
23
+ import $aC4gS$ptBRmodulejs from "./pt-BR.mjs";
24
+ import $aC4gS$ptPTmodulejs from "./pt-PT.mjs";
25
+ import $aC4gS$roROmodulejs from "./ro-RO.mjs";
26
+ import $aC4gS$ruRUmodulejs from "./ru-RU.mjs";
27
+ import $aC4gS$skSKmodulejs from "./sk-SK.mjs";
28
+ import $aC4gS$slSImodulejs from "./sl-SI.mjs";
29
+ import $aC4gS$srSPmodulejs from "./sr-SP.mjs";
30
+ import $aC4gS$svSEmodulejs from "./sv-SE.mjs";
31
+ import $aC4gS$trTRmodulejs from "./tr-TR.mjs";
32
+ import $aC4gS$ukUAmodulejs from "./uk-UA.mjs";
33
+ import $aC4gS$zhCNmodulejs from "./zh-CN.mjs";
34
+ import $aC4gS$zhTWmodulejs from "./zh-TW.mjs";
35
+
36
+ var $280a227d7cb94b92$exports = {};
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+
66
+
67
+
68
+
69
+
70
+
71
+ $280a227d7cb94b92$exports = {
72
+ "ar-AE": $aC4gS$arAEmodulejs,
73
+ "bg-BG": $aC4gS$bgBGmodulejs,
74
+ "cs-CZ": $aC4gS$csCZmodulejs,
75
+ "da-DK": $aC4gS$daDKmodulejs,
76
+ "de-DE": $aC4gS$deDEmodulejs,
77
+ "el-GR": $aC4gS$elGRmodulejs,
78
+ "en-US": $aC4gS$enUSmodulejs,
79
+ "es-ES": $aC4gS$esESmodulejs,
80
+ "et-EE": $aC4gS$etEEmodulejs,
81
+ "fi-FI": $aC4gS$fiFImodulejs,
82
+ "fr-FR": $aC4gS$frFRmodulejs,
83
+ "he-IL": $aC4gS$heILmodulejs,
84
+ "hr-HR": $aC4gS$hrHRmodulejs,
85
+ "hu-HU": $aC4gS$huHUmodulejs,
86
+ "it-IT": $aC4gS$itITmodulejs,
87
+ "ja-JP": $aC4gS$jaJPmodulejs,
88
+ "ko-KR": $aC4gS$koKRmodulejs,
89
+ "lt-LT": $aC4gS$ltLTmodulejs,
90
+ "lv-LV": $aC4gS$lvLVmodulejs,
91
+ "nb-NO": $aC4gS$nbNOmodulejs,
92
+ "nl-NL": $aC4gS$nlNLmodulejs,
93
+ "pl-PL": $aC4gS$plPLmodulejs,
94
+ "pt-BR": $aC4gS$ptBRmodulejs,
95
+ "pt-PT": $aC4gS$ptPTmodulejs,
96
+ "ro-RO": $aC4gS$roROmodulejs,
97
+ "ru-RU": $aC4gS$ruRUmodulejs,
98
+ "sk-SK": $aC4gS$skSKmodulejs,
99
+ "sl-SI": $aC4gS$slSImodulejs,
100
+ "sr-SP": $aC4gS$srSPmodulejs,
101
+ "sv-SE": $aC4gS$svSEmodulejs,
102
+ "tr-TR": $aC4gS$trTRmodulejs,
103
+ "uk-UA": $aC4gS$ukUAmodulejs,
104
+ "zh-CN": $aC4gS$zhCNmodulejs,
105
+ "zh-TW": $aC4gS$zhTWmodulejs
106
+ };
107
+
108
+
109
+ export {$280a227d7cb94b92$exports as default};
110
+ //# sourceMappingURL=intlStrings.mjs.map
@@ -0,0 +1,110 @@
1
+ import $aC4gS$arAEmodulejs from "./ar-AE.module.js";
2
+ import $aC4gS$bgBGmodulejs from "./bg-BG.module.js";
3
+ import $aC4gS$csCZmodulejs from "./cs-CZ.module.js";
4
+ import $aC4gS$daDKmodulejs from "./da-DK.module.js";
5
+ import $aC4gS$deDEmodulejs from "./de-DE.module.js";
6
+ import $aC4gS$elGRmodulejs from "./el-GR.module.js";
7
+ import $aC4gS$enUSmodulejs from "./en-US.module.js";
8
+ import $aC4gS$esESmodulejs from "./es-ES.module.js";
9
+ import $aC4gS$etEEmodulejs from "./et-EE.module.js";
10
+ import $aC4gS$fiFImodulejs from "./fi-FI.module.js";
11
+ import $aC4gS$frFRmodulejs from "./fr-FR.module.js";
12
+ import $aC4gS$heILmodulejs from "./he-IL.module.js";
13
+ import $aC4gS$hrHRmodulejs from "./hr-HR.module.js";
14
+ import $aC4gS$huHUmodulejs from "./hu-HU.module.js";
15
+ import $aC4gS$itITmodulejs from "./it-IT.module.js";
16
+ import $aC4gS$jaJPmodulejs from "./ja-JP.module.js";
17
+ import $aC4gS$koKRmodulejs from "./ko-KR.module.js";
18
+ import $aC4gS$ltLTmodulejs from "./lt-LT.module.js";
19
+ import $aC4gS$lvLVmodulejs from "./lv-LV.module.js";
20
+ import $aC4gS$nbNOmodulejs from "./nb-NO.module.js";
21
+ import $aC4gS$nlNLmodulejs from "./nl-NL.module.js";
22
+ import $aC4gS$plPLmodulejs from "./pl-PL.module.js";
23
+ import $aC4gS$ptBRmodulejs from "./pt-BR.module.js";
24
+ import $aC4gS$ptPTmodulejs from "./pt-PT.module.js";
25
+ import $aC4gS$roROmodulejs from "./ro-RO.module.js";
26
+ import $aC4gS$ruRUmodulejs from "./ru-RU.module.js";
27
+ import $aC4gS$skSKmodulejs from "./sk-SK.module.js";
28
+ import $aC4gS$slSImodulejs from "./sl-SI.module.js";
29
+ import $aC4gS$srSPmodulejs from "./sr-SP.module.js";
30
+ import $aC4gS$svSEmodulejs from "./sv-SE.module.js";
31
+ import $aC4gS$trTRmodulejs from "./tr-TR.module.js";
32
+ import $aC4gS$ukUAmodulejs from "./uk-UA.module.js";
33
+ import $aC4gS$zhCNmodulejs from "./zh-CN.module.js";
34
+ import $aC4gS$zhTWmodulejs from "./zh-TW.module.js";
35
+
36
+ var $280a227d7cb94b92$exports = {};
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+
66
+
67
+
68
+
69
+
70
+
71
+ $280a227d7cb94b92$exports = {
72
+ "ar-AE": $aC4gS$arAEmodulejs,
73
+ "bg-BG": $aC4gS$bgBGmodulejs,
74
+ "cs-CZ": $aC4gS$csCZmodulejs,
75
+ "da-DK": $aC4gS$daDKmodulejs,
76
+ "de-DE": $aC4gS$deDEmodulejs,
77
+ "el-GR": $aC4gS$elGRmodulejs,
78
+ "en-US": $aC4gS$enUSmodulejs,
79
+ "es-ES": $aC4gS$esESmodulejs,
80
+ "et-EE": $aC4gS$etEEmodulejs,
81
+ "fi-FI": $aC4gS$fiFImodulejs,
82
+ "fr-FR": $aC4gS$frFRmodulejs,
83
+ "he-IL": $aC4gS$heILmodulejs,
84
+ "hr-HR": $aC4gS$hrHRmodulejs,
85
+ "hu-HU": $aC4gS$huHUmodulejs,
86
+ "it-IT": $aC4gS$itITmodulejs,
87
+ "ja-JP": $aC4gS$jaJPmodulejs,
88
+ "ko-KR": $aC4gS$koKRmodulejs,
89
+ "lt-LT": $aC4gS$ltLTmodulejs,
90
+ "lv-LV": $aC4gS$lvLVmodulejs,
91
+ "nb-NO": $aC4gS$nbNOmodulejs,
92
+ "nl-NL": $aC4gS$nlNLmodulejs,
93
+ "pl-PL": $aC4gS$plPLmodulejs,
94
+ "pt-BR": $aC4gS$ptBRmodulejs,
95
+ "pt-PT": $aC4gS$ptPTmodulejs,
96
+ "ro-RO": $aC4gS$roROmodulejs,
97
+ "ru-RU": $aC4gS$ruRUmodulejs,
98
+ "sk-SK": $aC4gS$skSKmodulejs,
99
+ "sl-SI": $aC4gS$slSImodulejs,
100
+ "sr-SP": $aC4gS$srSPmodulejs,
101
+ "sv-SE": $aC4gS$svSEmodulejs,
102
+ "tr-TR": $aC4gS$trTRmodulejs,
103
+ "uk-UA": $aC4gS$ukUAmodulejs,
104
+ "zh-CN": $aC4gS$zhCNmodulejs,
105
+ "zh-TW": $aC4gS$zhTWmodulejs
106
+ };
107
+
108
+
109
+ export {$280a227d7cb94b92$exports as default};
110
+ //# sourceMappingURL=intlStrings.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,4BAAiB;IACf,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;AACX","sources":["packages/@react-aria/numberfield/src/*.js"],"sourcesContent":["const _temp0 = require(\"../intl/ar-AE.json\");\nconst _temp1 = require(\"../intl/bg-BG.json\");\nconst _temp2 = require(\"../intl/cs-CZ.json\");\nconst _temp3 = require(\"../intl/da-DK.json\");\nconst _temp4 = require(\"../intl/de-DE.json\");\nconst _temp5 = require(\"../intl/el-GR.json\");\nconst _temp6 = require(\"../intl/en-US.json\");\nconst _temp7 = require(\"../intl/es-ES.json\");\nconst _temp8 = require(\"../intl/et-EE.json\");\nconst _temp9 = require(\"../intl/fi-FI.json\");\nconst _temp10 = require(\"../intl/fr-FR.json\");\nconst _temp11 = require(\"../intl/he-IL.json\");\nconst _temp12 = require(\"../intl/hr-HR.json\");\nconst _temp13 = require(\"../intl/hu-HU.json\");\nconst _temp14 = require(\"../intl/it-IT.json\");\nconst _temp15 = require(\"../intl/ja-JP.json\");\nconst _temp16 = require(\"../intl/ko-KR.json\");\nconst _temp17 = require(\"../intl/lt-LT.json\");\nconst _temp18 = require(\"../intl/lv-LV.json\");\nconst _temp19 = require(\"../intl/nb-NO.json\");\nconst _temp20 = require(\"../intl/nl-NL.json\");\nconst _temp21 = require(\"../intl/pl-PL.json\");\nconst _temp22 = require(\"../intl/pt-BR.json\");\nconst _temp23 = require(\"../intl/pt-PT.json\");\nconst _temp24 = require(\"../intl/ro-RO.json\");\nconst _temp25 = require(\"../intl/ru-RU.json\");\nconst _temp26 = require(\"../intl/sk-SK.json\");\nconst _temp27 = require(\"../intl/sl-SI.json\");\nconst _temp28 = require(\"../intl/sr-SP.json\");\nconst _temp29 = require(\"../intl/sv-SE.json\");\nconst _temp30 = require(\"../intl/tr-TR.json\");\nconst _temp31 = require(\"../intl/uk-UA.json\");\nconst _temp32 = require(\"../intl/zh-CN.json\");\nconst _temp33 = require(\"../intl/zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}"],"names":[],"version":3,"file":"intlStrings.module.js.map"}
package/dist/it-IT.mjs CHANGED
@@ -7,4 +7,4 @@ $866555b31f2d7711$exports = {
7
7
 
8
8
 
9
9
  export {$866555b31f2d7711$exports as default};
10
- //# sourceMappingURL=it-IT.module.js.map
10
+ //# sourceMappingURL=it-IT.mjs.map
package/dist/ja-JP.mjs CHANGED
@@ -7,4 +7,4 @@ $dafcd55d52b9d371$exports = {
7
7
 
8
8
 
9
9
  export {$dafcd55d52b9d371$exports as default};
10
- //# sourceMappingURL=ja-JP.module.js.map
10
+ //# sourceMappingURL=ja-JP.mjs.map
package/dist/ko-KR.mjs CHANGED
@@ -7,4 +7,4 @@ $f090c1f8c5da0145$exports = {
7
7
 
8
8
 
9
9
  export {$f090c1f8c5da0145$exports as default};
10
- //# sourceMappingURL=ko-KR.module.js.map
10
+ //# sourceMappingURL=ko-KR.mjs.map
package/dist/lt-LT.mjs CHANGED
@@ -7,4 +7,4 @@ $6f10f3a13360a75c$exports = {
7
7
 
8
8
 
9
9
  export {$6f10f3a13360a75c$exports as default};
10
- //# sourceMappingURL=lt-LT.module.js.map
10
+ //# sourceMappingURL=lt-LT.mjs.map
package/dist/lv-LV.mjs CHANGED
@@ -7,4 +7,4 @@ $47432cefd4b7bd1b$exports = {
7
7
 
8
8
 
9
9
  export {$47432cefd4b7bd1b$exports as default};
10
- //# sourceMappingURL=lv-LV.module.js.map
10
+ //# sourceMappingURL=lv-LV.mjs.map
package/dist/main.js CHANGED
@@ -1,66 +1,12 @@
1
- var $15c26e9e75543508$exports = require("./ar-AE.main.js");
2
- var $2d346802965e5c25$exports = require("./bg-BG.main.js");
3
- var $09893e85abdd2974$exports = require("./cs-CZ.main.js");
4
- var $413bf45f477fb4e1$exports = require("./da-DK.main.js");
5
- var $2727845e2efab680$exports = require("./de-DE.main.js");
6
- var $11030a3afacdbc2e$exports = require("./el-GR.main.js");
7
- var $1e48617299cb10e8$exports = require("./en-US.main.js");
8
- var $335176f389a02847$exports = require("./es-ES.main.js");
9
- var $b08e7fdc34a812f3$exports = require("./et-EE.main.js");
10
- var $ce4c5a1eb7e6fc96$exports = require("./fi-FI.main.js");
11
- var $341f988ce23c559c$exports = require("./fr-FR.main.js");
12
- var $950fd1a1d57d2f86$exports = require("./he-IL.main.js");
13
- var $7b949fa64cf10a07$exports = require("./hr-HR.main.js");
14
- var $a945ff6d5cb9cf90$exports = require("./hu-HU.main.js");
15
- var $f3393075c1f078d7$exports = require("./it-IT.main.js");
16
- var $a12655e072ef354d$exports = require("./ja-JP.main.js");
17
- var $880dbee0519c1bad$exports = require("./ko-KR.main.js");
18
- var $d4a9630b079105aa$exports = require("./lt-LT.main.js");
19
- var $e358cd3315986eb7$exports = require("./lv-LV.main.js");
20
- var $a8d0ee8ec28363c7$exports = require("./nb-NO.main.js");
21
- var $0073957e0c754983$exports = require("./nl-NL.main.js");
22
- var $51626cc4fccef54e$exports = require("./pl-PL.main.js");
23
- var $60b1cee412b56d27$exports = require("./pt-BR.main.js");
24
- var $df9c7cc4e8072a0f$exports = require("./pt-PT.main.js");
25
- var $aea54857f9df076d$exports = require("./ro-RO.main.js");
26
- var $8337ebc47a7e61a3$exports = require("./ru-RU.main.js");
27
- var $4703837f8f4224f8$exports = require("./sk-SK.main.js");
28
- var $2b9c8b37ab5bbcca$exports = require("./sl-SI.main.js");
29
- var $2c78665a3b81ed56$exports = require("./sr-SP.main.js");
30
- var $8da5dab2105c0d01$exports = require("./sv-SE.main.js");
31
- var $73a2418cb50e8fda$exports = require("./tr-TR.main.js");
32
- var $9c85d1989bb8c41d$exports = require("./uk-UA.main.js");
33
- var $a7db09d81aa41beb$exports = require("./zh-CN.main.js");
34
- var $edd6ee4675b7a1cd$exports = require("./zh-TW.main.js");
35
- var $2wEZH$reactariautils = require("@react-aria/utils");
36
- var $2wEZH$react = require("react");
37
- var $2wEZH$reactstatelyform = require("@react-stately/form");
38
- var $2wEZH$reactariainteractions = require("@react-aria/interactions");
39
- var $2wEZH$reactariatextfield = require("@react-aria/textfield");
40
- var $2wEZH$reactariai18n = require("@react-aria/i18n");
41
- var $2wEZH$reactariaspinbutton = require("@react-aria/spinbutton");
1
+ var $fa863e9b015ae839$exports = require("./useNumberField.main.js");
42
2
 
43
3
 
44
4
  function $parcel$export(e, n, v, s) {
45
5
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
46
6
  }
47
7
 
48
- function $parcel$interopDefault(a) {
49
- return a && a.__esModule ? a.default : a;
50
- }
51
-
52
- $parcel$export(module.exports, "useNumberField", () => $fa863e9b015ae839$export$23f548e970bdf099);
8
+ $parcel$export(module.exports, "useNumberField", () => $fa863e9b015ae839$exports.useNumberField);
53
9
  /*
54
- * Copyright 2020 Adobe. All rights reserved.
55
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
56
- * you may not use this file except in compliance with the License. You may obtain a copy
57
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
58
- *
59
- * Unless required by applicable law or agreed to in writing, software distributed under
60
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
61
- * OF ANY KIND, either express or implied. See the License for the specific language
62
- * governing permissions and limitations under the License.
63
- */ /*
64
10
  * Copyright 2020 Adobe. All rights reserved.
65
11
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
66
12
  * you may not use this file except in compliance with the License. You may obtain a copy
@@ -72,295 +18,5 @@ $parcel$export(module.exports, "useNumberField", () => $fa863e9b015ae839$export$
72
18
  * governing permissions and limitations under the License.
73
19
  */
74
20
 
75
- var $4932e21065cdc2cd$exports = {};
76
-
77
-
78
-
79
-
80
-
81
-
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
- $4932e21065cdc2cd$exports = {
111
- "ar-AE": $15c26e9e75543508$exports,
112
- "bg-BG": $2d346802965e5c25$exports,
113
- "cs-CZ": $09893e85abdd2974$exports,
114
- "da-DK": $413bf45f477fb4e1$exports,
115
- "de-DE": $2727845e2efab680$exports,
116
- "el-GR": $11030a3afacdbc2e$exports,
117
- "en-US": $1e48617299cb10e8$exports,
118
- "es-ES": $335176f389a02847$exports,
119
- "et-EE": $b08e7fdc34a812f3$exports,
120
- "fi-FI": $ce4c5a1eb7e6fc96$exports,
121
- "fr-FR": $341f988ce23c559c$exports,
122
- "he-IL": $950fd1a1d57d2f86$exports,
123
- "hr-HR": $7b949fa64cf10a07$exports,
124
- "hu-HU": $a945ff6d5cb9cf90$exports,
125
- "it-IT": $f3393075c1f078d7$exports,
126
- "ja-JP": $a12655e072ef354d$exports,
127
- "ko-KR": $880dbee0519c1bad$exports,
128
- "lt-LT": $d4a9630b079105aa$exports,
129
- "lv-LV": $e358cd3315986eb7$exports,
130
- "nb-NO": $a8d0ee8ec28363c7$exports,
131
- "nl-NL": $0073957e0c754983$exports,
132
- "pl-PL": $51626cc4fccef54e$exports,
133
- "pt-BR": $60b1cee412b56d27$exports,
134
- "pt-PT": $df9c7cc4e8072a0f$exports,
135
- "ro-RO": $aea54857f9df076d$exports,
136
- "ru-RU": $8337ebc47a7e61a3$exports,
137
- "sk-SK": $4703837f8f4224f8$exports,
138
- "sl-SI": $2b9c8b37ab5bbcca$exports,
139
- "sr-SP": $2c78665a3b81ed56$exports,
140
- "sv-SE": $8da5dab2105c0d01$exports,
141
- "tr-TR": $73a2418cb50e8fda$exports,
142
- "uk-UA": $9c85d1989bb8c41d$exports,
143
- "zh-CN": $a7db09d81aa41beb$exports,
144
- "zh-TW": $edd6ee4675b7a1cd$exports
145
- };
146
-
147
-
148
-
149
-
150
-
151
-
152
-
153
- function $fa863e9b015ae839$export$23f548e970bdf099(props, state, inputRef) {
154
- let { id: id, decrementAriaLabel: decrementAriaLabel, incrementAriaLabel: incrementAriaLabel, isDisabled: isDisabled, isReadOnly: isReadOnly, isRequired: isRequired, minValue: minValue, maxValue: maxValue, autoFocus: autoFocus, label: label, formatOptions: formatOptions, onBlur: onBlur = ()=>{}, onFocus: onFocus, onFocusChange: onFocusChange, onKeyDown: onKeyDown, onKeyUp: onKeyUp, description: description, errorMessage: errorMessage, isWheelDisabled: isWheelDisabled, ...otherProps } = props;
155
- let { increment: increment, incrementToMax: incrementToMax, decrement: decrement, decrementToMin: decrementToMin, numberValue: numberValue, inputValue: inputValue, commit: commit, commitValidation: commitValidation } = state;
156
- const stringFormatter = (0, $2wEZH$reactariai18n.useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($4932e21065cdc2cd$exports))), "@react-aria/numberfield");
157
- let inputId = (0, $2wEZH$reactariautils.useId)(id);
158
- let { focusProps: focusProps } = (0, $2wEZH$reactariainteractions.useFocus)({
159
- onBlur () {
160
- // Set input value to normalized valid value
161
- commit();
162
- }
163
- });
164
- let numberFormatter = (0, $2wEZH$reactariai18n.useNumberFormatter)(formatOptions);
165
- let intlOptions = (0, $2wEZH$react.useMemo)(()=>numberFormatter.resolvedOptions(), [
166
- numberFormatter
167
- ]);
168
- // Replace negative textValue formatted using currencySign: 'accounting'
169
- // with a textValue that can be announced using a minus sign.
170
- let textValueFormatter = (0, $2wEZH$reactariai18n.useNumberFormatter)({
171
- ...formatOptions,
172
- currencySign: undefined
173
- });
174
- let textValue = (0, $2wEZH$react.useMemo)(()=>isNaN(numberValue) ? "" : textValueFormatter.format(numberValue), [
175
- textValueFormatter,
176
- numberValue
177
- ]);
178
- let { spinButtonProps: spinButtonProps, incrementButtonProps: incButtonProps, decrementButtonProps: decButtonProps } = (0, $2wEZH$reactariaspinbutton.useSpinButton)({
179
- isDisabled: isDisabled,
180
- isReadOnly: isReadOnly,
181
- isRequired: isRequired,
182
- maxValue: maxValue,
183
- minValue: minValue,
184
- onIncrement: increment,
185
- onIncrementToMax: incrementToMax,
186
- onDecrement: decrement,
187
- onDecrementToMin: decrementToMin,
188
- value: numberValue,
189
- textValue: textValue
190
- });
191
- let [focusWithin, setFocusWithin] = (0, $2wEZH$react.useState)(false);
192
- let { focusWithinProps: focusWithinProps } = (0, $2wEZH$reactariainteractions.useFocusWithin)({
193
- isDisabled: isDisabled,
194
- onFocusWithinChange: setFocusWithin
195
- });
196
- let onWheel = (0, $2wEZH$react.useCallback)((e)=>{
197
- // if on a trackpad, users can scroll in both X and Y at once, check the magnitude of the change
198
- // if it's mostly in the X direction, then just return, the user probably doesn't mean to inc/dec
199
- // this isn't perfect, events come in fast with small deltas and a part of the scroll may give a false indication
200
- // especially if the user is scrolling near 45deg
201
- if (Math.abs(e.deltaY) <= Math.abs(e.deltaX)) return;
202
- if (e.deltaY > 0) increment();
203
- else if (e.deltaY < 0) decrement();
204
- }, [
205
- decrement,
206
- increment
207
- ]);
208
- // If the input isn't supposed to receive input, disable scrolling.
209
- let scrollingDisabled = isWheelDisabled || isDisabled || isReadOnly || !focusWithin;
210
- (0, $2wEZH$reactariainteractions.useScrollWheel)({
211
- onScroll: onWheel,
212
- isDisabled: scrollingDisabled
213
- }, inputRef);
214
- // The inputMode attribute influences the software keyboard that is shown on touch devices.
215
- // Browsers and operating systems are quite inconsistent about what keys are available, however.
216
- // We choose between numeric and decimal based on whether we allow negative and fractional numbers,
217
- // and based on testing on various devices to determine what keys are available in each inputMode.
218
- let hasDecimals = intlOptions.maximumFractionDigits > 0;
219
- let hasNegative = state.minValue === undefined || isNaN(state.minValue) || state.minValue < 0;
220
- let inputMode = "numeric";
221
- if ((0, $2wEZH$reactariautils.isIPhone)()) {
222
- // iPhone doesn't have a minus sign in either numeric or decimal.
223
- // Note this is only for iPhone, not iPad, which always has both
224
- // minus and decimal in numeric.
225
- if (hasNegative) inputMode = "text";
226
- else if (hasDecimals) inputMode = "decimal";
227
- } else if ((0, $2wEZH$reactariautils.isAndroid)()) {
228
- // Android numeric has both a decimal point and minus key.
229
- // decimal does not have a minus key.
230
- if (hasNegative) inputMode = "numeric";
231
- else if (hasDecimals) inputMode = "decimal";
232
- }
233
- let onChange = (value)=>{
234
- if (state.validate(value)) state.setInputValue(value);
235
- };
236
- let domProps = (0, $2wEZH$reactariautils.filterDOMProps)(props);
237
- let onKeyDownEnter = (0, $2wEZH$react.useCallback)((e)=>{
238
- if (e.key === "Enter") {
239
- commit();
240
- commitValidation();
241
- } else e.continuePropagation();
242
- }, [
243
- commit,
244
- commitValidation
245
- ]);
246
- let { isInvalid: isInvalid, validationErrors: validationErrors, validationDetails: validationDetails } = state.displayValidation;
247
- let { labelProps: labelProps, inputProps: textFieldProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps } = (0, $2wEZH$reactariatextfield.useFormattedTextField)({
248
- ...otherProps,
249
- ...domProps,
250
- name: undefined,
251
- label: label,
252
- autoFocus: autoFocus,
253
- isDisabled: isDisabled,
254
- isReadOnly: isReadOnly,
255
- isRequired: isRequired,
256
- validate: undefined,
257
- [(0, $2wEZH$reactstatelyform.privateValidationStateProp)]: state,
258
- value: inputValue,
259
- defaultValue: undefined,
260
- autoComplete: "off",
261
- "aria-label": props["aria-label"] || undefined,
262
- "aria-labelledby": props["aria-labelledby"] || undefined,
263
- id: inputId,
264
- type: "text",
265
- inputMode: inputMode,
266
- onChange: onChange,
267
- onBlur: onBlur,
268
- onFocus: onFocus,
269
- onFocusChange: onFocusChange,
270
- onKeyDown: (0, $2wEZH$react.useMemo)(()=>(0, $2wEZH$reactariautils.chain)(onKeyDownEnter, onKeyDown), [
271
- onKeyDownEnter,
272
- onKeyDown
273
- ]),
274
- onKeyUp: onKeyUp,
275
- description: description,
276
- errorMessage: errorMessage
277
- }, state, inputRef);
278
- (0, $2wEZH$reactariautils.useFormReset)(inputRef, state.numberValue, state.setNumberValue);
279
- let inputProps = (0, $2wEZH$reactariautils.mergeProps)(spinButtonProps, focusProps, textFieldProps, {
280
- // override the spinbutton role, we can't focus a spin button with VO
281
- role: null,
282
- // ignore aria-roledescription on iOS so that required state will announce when it is present
283
- "aria-roledescription": !(0, $2wEZH$reactariautils.isIOS)() ? stringFormatter.format("numberField") : null,
284
- "aria-valuemax": null,
285
- "aria-valuemin": null,
286
- "aria-valuenow": null,
287
- "aria-valuetext": null,
288
- autoCorrect: "off",
289
- spellCheck: "false"
290
- });
291
- if (props.validationBehavior === "native") inputProps["aria-required"] = undefined;
292
- let onButtonPressStart = (e)=>{
293
- var _inputRef_current;
294
- // If focus is already on the input, keep it there so we don't hide the
295
- // software keyboard when tapping the increment/decrement buttons.
296
- if (document.activeElement === inputRef.current) return;
297
- // Otherwise, when using a mouse, move focus to the input.
298
- // On touch, or with a screen reader, focus the button so that the software
299
- // keyboard does not appear and the screen reader cursor is not moved off the button.
300
- if (e.pointerType === "mouse") (_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 ? void 0 : _inputRef_current.focus();
301
- else e.target.focus();
302
- };
303
- // Determine the label for the increment and decrement buttons. There are 4 cases:
304
- //
305
- // 1. With a visible label that is a string: aria-label: `Increase ${props.label}`
306
- // 2. With a visible label that is JSX: aria-label: 'Increase', aria-labelledby: '${incrementId} ${labelId}'
307
- // 3. With an aria-label: aria-label: `Increase ${props['aria-label']}`
308
- // 4. With an aria-labelledby: aria-label: 'Increase', aria-labelledby: `${incrementId} ${props['aria-labelledby']}`
309
- //
310
- // (1) and (2) could possibly be combined and both use aria-labelledby. However, placing the label in
311
- // the aria-label string rather than using aria-labelledby gives more flexibility to translators to change
312
- // the order or add additional words around the label if needed.
313
- let fieldLabel = props["aria-label"] || (typeof props.label === "string" ? props.label : "");
314
- let ariaLabelledby;
315
- if (!fieldLabel) ariaLabelledby = props.label != null ? labelProps.id : props["aria-labelledby"];
316
- let incrementId = (0, $2wEZH$reactariautils.useId)();
317
- let decrementId = (0, $2wEZH$reactariautils.useId)();
318
- let incrementButtonProps = (0, $2wEZH$reactariautils.mergeProps)(incButtonProps, {
319
- "aria-label": incrementAriaLabel || stringFormatter.format("increase", {
320
- fieldLabel: fieldLabel
321
- }).trim(),
322
- id: ariaLabelledby && !incrementAriaLabel ? incrementId : null,
323
- "aria-labelledby": ariaLabelledby && !incrementAriaLabel ? `${incrementId} ${ariaLabelledby}` : null,
324
- "aria-controls": inputId,
325
- excludeFromTabOrder: true,
326
- preventFocusOnPress: true,
327
- allowFocusWhenDisabled: true,
328
- isDisabled: !state.canIncrement,
329
- onPressStart: onButtonPressStart
330
- });
331
- let decrementButtonProps = (0, $2wEZH$reactariautils.mergeProps)(decButtonProps, {
332
- "aria-label": decrementAriaLabel || stringFormatter.format("decrease", {
333
- fieldLabel: fieldLabel
334
- }).trim(),
335
- id: ariaLabelledby && !decrementAriaLabel ? decrementId : null,
336
- "aria-labelledby": ariaLabelledby && !decrementAriaLabel ? `${decrementId} ${ariaLabelledby}` : null,
337
- "aria-controls": inputId,
338
- excludeFromTabOrder: true,
339
- preventFocusOnPress: true,
340
- allowFocusWhenDisabled: true,
341
- isDisabled: !state.canDecrement,
342
- onPressStart: onButtonPressStart
343
- });
344
- return {
345
- groupProps: {
346
- ...focusWithinProps,
347
- role: "group",
348
- "aria-disabled": isDisabled,
349
- "aria-invalid": isInvalid ? "true" : undefined
350
- },
351
- labelProps: labelProps,
352
- inputProps: inputProps,
353
- incrementButtonProps: incrementButtonProps,
354
- decrementButtonProps: decrementButtonProps,
355
- errorMessageProps: errorMessageProps,
356
- descriptionProps: descriptionProps,
357
- isInvalid: isInvalid,
358
- validationErrors: validationErrors,
359
- validationDetails: validationDetails
360
- };
361
- }
362
-
363
-
364
-
365
21
 
366
22
  //# sourceMappingURL=main.js.map