@react-aria/numberfield 3.11.8 → 3.11.10
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/ar-AE.main.js.map +1 -1
- package/dist/ar-AE.module.js.map +1 -1
- package/dist/bg-BG.main.js.map +1 -1
- package/dist/bg-BG.module.js.map +1 -1
- package/dist/cs-CZ.main.js.map +1 -1
- package/dist/cs-CZ.module.js.map +1 -1
- package/dist/da-DK.main.js.map +1 -1
- package/dist/da-DK.module.js.map +1 -1
- package/dist/de-DE.main.js.map +1 -1
- package/dist/de-DE.module.js.map +1 -1
- package/dist/el-GR.main.js.map +1 -1
- package/dist/el-GR.module.js.map +1 -1
- package/dist/en-US.main.js.map +1 -1
- package/dist/en-US.module.js.map +1 -1
- package/dist/es-ES.main.js.map +1 -1
- package/dist/es-ES.module.js.map +1 -1
- package/dist/et-EE.main.js.map +1 -1
- package/dist/et-EE.module.js.map +1 -1
- package/dist/fi-FI.main.js.map +1 -1
- package/dist/fi-FI.module.js.map +1 -1
- package/dist/fr-FR.main.js.map +1 -1
- package/dist/fr-FR.module.js.map +1 -1
- package/dist/he-IL.main.js.map +1 -1
- package/dist/he-IL.module.js.map +1 -1
- package/dist/hr-HR.main.js.map +1 -1
- package/dist/hr-HR.module.js.map +1 -1
- package/dist/hu-HU.main.js.map +1 -1
- package/dist/hu-HU.module.js.map +1 -1
- package/dist/it-IT.main.js.map +1 -1
- package/dist/it-IT.module.js.map +1 -1
- package/dist/ja-JP.main.js.map +1 -1
- package/dist/ja-JP.module.js.map +1 -1
- package/dist/ko-KR.main.js.map +1 -1
- package/dist/ko-KR.module.js.map +1 -1
- package/dist/lt-LT.main.js.map +1 -1
- package/dist/lt-LT.module.js.map +1 -1
- package/dist/lv-LV.main.js.map +1 -1
- package/dist/lv-LV.module.js.map +1 -1
- package/dist/nb-NO.main.js.map +1 -1
- package/dist/nb-NO.module.js.map +1 -1
- package/dist/nl-NL.main.js.map +1 -1
- package/dist/nl-NL.module.js.map +1 -1
- package/dist/pl-PL.main.js.map +1 -1
- package/dist/pl-PL.module.js.map +1 -1
- package/dist/pt-BR.main.js.map +1 -1
- package/dist/pt-BR.module.js.map +1 -1
- package/dist/pt-PT.main.js.map +1 -1
- package/dist/pt-PT.module.js.map +1 -1
- package/dist/ro-RO.main.js.map +1 -1
- package/dist/ro-RO.module.js.map +1 -1
- package/dist/ru-RU.main.js.map +1 -1
- package/dist/ru-RU.module.js.map +1 -1
- package/dist/sk-SK.main.js.map +1 -1
- package/dist/sk-SK.module.js.map +1 -1
- package/dist/sl-SI.main.js.map +1 -1
- package/dist/sl-SI.module.js.map +1 -1
- package/dist/sr-SP.main.js.map +1 -1
- package/dist/sr-SP.module.js.map +1 -1
- package/dist/sv-SE.main.js.map +1 -1
- package/dist/sv-SE.module.js.map +1 -1
- package/dist/tr-TR.main.js.map +1 -1
- package/dist/tr-TR.module.js.map +1 -1
- package/dist/uk-UA.main.js.map +1 -1
- package/dist/uk-UA.module.js.map +1 -1
- package/dist/useNumberField.main.js.map +1 -1
- package/dist/useNumberField.module.js.map +1 -1
- package/dist/zh-CN.main.js.map +1 -1
- package/dist/zh-CN.module.js.map +1 -1
- package/dist/zh-TW.main.js.map +1 -1
- package/dist/zh-TW.module.js.map +1 -1
- package/package.json +14 -14
package/dist/ar-AE.main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,sBAAI,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,sBAAI,EAAE,KAAK,UAAU,EAAE;IAChE,YAAY,CAAC,OAAS,CAAC,oCAAM,EAAE,KAAK,UAAU,EAAE;IAChD,eAAe,CAAC,kDAAQ,CAAC;AAC3B","sources":["packages/@react-aria/numberfield/intl/ar-AE.json"],"sourcesContent":["{\n \"decrease\": \"خفض {fieldLabel}\",\n \"increase\": \"زيادة {fieldLabel}\",\n \"numberField\": \"حقل رقمي\"\n}\n"],"names":[],"version":3,"file":"ar-AE.main.js.map"}
|
package/dist/ar-AE.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,sBAAI,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,sBAAI,EAAE,KAAK,UAAU,EAAE;IAChE,YAAY,CAAC,OAAS,CAAC,oCAAM,EAAE,KAAK,UAAU,EAAE;IAChD,eAAe,CAAC,kDAAQ,CAAC;AAC3B","sources":["packages/@react-aria/numberfield/intl/ar-AE.json"],"sourcesContent":["{\n \"decrease\": \"خفض {fieldLabel}\",\n \"increase\": \"زيادة {fieldLabel}\",\n \"numberField\": \"حقل رقمي\"\n}\n"],"names":[],"version":3,"file":"ar-AE.module.js.map"}
|
package/dist/bg-BG.main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,uEAAW,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,uEAAW,EAAE,KAAK,UAAU,EAAE;IACvE,YAAY,CAAC,OAAS,CAAC,yDAAS,EAAE,KAAK,UAAU,EAAE;IACnD,eAAe,CAAC,6FAAe,CAAC;AAClC","sources":["packages/@react-aria/numberfield/intl/bg-BG.json"],"sourcesContent":["{\n \"decrease\": \"Намаляване {fieldLabel}\",\n \"increase\": \"Усилване {fieldLabel}\",\n \"numberField\": \"Номер на полето\"\n}\n"],"names":[],"version":3,"file":"bg-BG.main.js.map"}
|
package/dist/bg-BG.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,uEAAW,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,uEAAW,EAAE,KAAK,UAAU,EAAE;IACvE,YAAY,CAAC,OAAS,CAAC,yDAAS,EAAE,KAAK,UAAU,EAAE;IACnD,eAAe,CAAC,6FAAe,CAAC;AAClC","sources":["packages/@react-aria/numberfield/intl/bg-BG.json"],"sourcesContent":["{\n \"decrease\": \"Намаляване {fieldLabel}\",\n \"increase\": \"Усилване {fieldLabel}\",\n \"numberField\": \"Номер на полето\"\n}\n"],"names":[],"version":3,"file":"bg-BG.module.js.map"}
|
package/dist/cs-CZ.main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,gBAAO,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,gBAAO,EAAE,KAAK,UAAU,EAAE;IACnE,YAAY,CAAC,OAAS,CAAC,gBAAO,EAAE,KAAK,UAAU,EAAE;IACjD,eAAe,CAAC,wBAAY,CAAC;AAC/B","sources":["packages/@react-aria/numberfield/intl/cs-CZ.json"],"sourcesContent":["{\n \"decrease\": \"Snížit {fieldLabel}\",\n \"increase\": \"Zvýšit {fieldLabel}\",\n \"numberField\": \"Číselné pole\"\n}\n"],"names":[],"version":3,"file":"cs-CZ.main.js.map"}
|
package/dist/cs-CZ.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,gBAAO,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,gBAAO,EAAE,KAAK,UAAU,EAAE;IACnE,YAAY,CAAC,OAAS,CAAC,gBAAO,EAAE,KAAK,UAAU,EAAE;IACjD,eAAe,CAAC,wBAAY,CAAC;AAC/B","sources":["packages/@react-aria/numberfield/intl/cs-CZ.json"],"sourcesContent":["{\n \"decrease\": \"Snížit {fieldLabel}\",\n \"increase\": \"Zvýšit {fieldLabel}\",\n \"numberField\": \"Číselné pole\"\n}\n"],"names":[],"version":3,"file":"cs-CZ.module.js.map"}
|
package/dist/da-DK.main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,QAAQ,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,QAAQ,EAAE,KAAK,UAAU,EAAE;IACpE,YAAY,CAAC,OAAS,CAAC,MAAG,EAAE,KAAK,UAAU,EAAE;IAC7C,eAAe,CAAC,OAAO,CAAC;AAC1B","sources":["packages/@react-aria/numberfield/intl/da-DK.json"],"sourcesContent":["{\n \"decrease\": \"Reducer {fieldLabel}\",\n \"increase\": \"Øg {fieldLabel}\",\n \"numberField\": \"Talfelt\"\n}\n"],"names":[],"version":3,"file":"da-DK.main.js.map"}
|
package/dist/da-DK.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,QAAQ,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,QAAQ,EAAE,KAAK,UAAU,EAAE;IACpE,YAAY,CAAC,OAAS,CAAC,MAAG,EAAE,KAAK,UAAU,EAAE;IAC7C,eAAe,CAAC,OAAO,CAAC;AAC1B","sources":["packages/@react-aria/numberfield/intl/da-DK.json"],"sourcesContent":["{\n \"decrease\": \"Reducer {fieldLabel}\",\n \"increase\": \"Øg {fieldLabel}\",\n \"numberField\": \"Talfelt\"\n}\n"],"names":[],"version":3,"file":"da-DK.module.js.map"}
|
package/dist/de-DE.main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,GAAG,KAAK,UAAU,CAAC,WAAW,CAAC;IACvE,YAAY,CAAC,OAAS,GAAG,KAAK,UAAU,CAAC,WAAQ,CAAC;IAClD,eAAe,CAAC,WAAW,CAAC;AAC9B","sources":["packages/@react-aria/numberfield/intl/de-DE.json"],"sourcesContent":["{\n \"decrease\": \"{fieldLabel} verringern\",\n \"increase\": \"{fieldLabel} erhöhen\",\n \"numberField\": \"Nummernfeld\"\n}\n"],"names":[],"version":3,"file":"de-DE.main.js.map"}
|
package/dist/de-DE.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,GAAG,KAAK,UAAU,CAAC,WAAW,CAAC;IACvE,YAAY,CAAC,OAAS,GAAG,KAAK,UAAU,CAAC,WAAQ,CAAC;IAClD,eAAe,CAAC,WAAW,CAAC;AAC9B","sources":["packages/@react-aria/numberfield/intl/de-DE.json"],"sourcesContent":["{\n \"decrease\": \"{fieldLabel} verringern\",\n \"increase\": \"{fieldLabel} erhöhen\",\n \"numberField\": \"Nummernfeld\"\n}\n"],"names":[],"version":3,"file":"de-DE.module.js.map"}
|
package/dist/el-GR.main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,2CAAO,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,2CAAO,EAAE,KAAK,UAAU,EAAE;IACnE,YAAY,CAAC,OAAS,CAAC,2CAAO,EAAE,KAAK,UAAU,EAAE;IACjD,eAAe,CAAC,qFAAa,CAAC;AAChC","sources":["packages/@react-aria/numberfield/intl/el-GR.json"],"sourcesContent":["{\n \"decrease\": \"Μείωση {fieldLabel}\",\n \"increase\": \"Αύξηση {fieldLabel}\",\n \"numberField\": \"Πεδίο αριθμού\"\n}\n"],"names":[],"version":3,"file":"el-GR.main.js.map"}
|
package/dist/el-GR.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,2CAAO,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,2CAAO,EAAE,KAAK,UAAU,EAAE;IACnE,YAAY,CAAC,OAAS,CAAC,2CAAO,EAAE,KAAK,UAAU,EAAE;IACjD,eAAe,CAAC,qFAAa,CAAC;AAChC","sources":["packages/@react-aria/numberfield/intl/el-GR.json"],"sourcesContent":["{\n \"decrease\": \"Μείωση {fieldLabel}\",\n \"increase\": \"Αύξηση {fieldLabel}\",\n \"numberField\": \"Πεδίο αριθμού\"\n}\n"],"names":[],"version":3,"file":"el-GR.module.js.map"}
|
package/dist/en-US.main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,SAAS,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,SAAS,EAAE,KAAK,UAAU,EAAE;IACrE,YAAY,CAAC,OAAS,CAAC,SAAS,EAAE,KAAK,UAAU,EAAE;IACnD,eAAe,CAAC,YAAY,CAAC;AAC/B","sources":["packages/@react-aria/numberfield/intl/en-US.json"],"sourcesContent":["{\n \"decrease\": \"Decrease {fieldLabel}\",\n \"increase\": \"Increase {fieldLabel}\",\n \"numberField\": \"Number field\"\n}\n"],"names":[],"version":3,"file":"en-US.main.js.map"}
|
package/dist/en-US.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,SAAS,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,SAAS,EAAE,KAAK,UAAU,EAAE;IACrE,YAAY,CAAC,OAAS,CAAC,SAAS,EAAE,KAAK,UAAU,EAAE;IACnD,eAAe,CAAC,YAAY,CAAC;AAC/B","sources":["packages/@react-aria/numberfield/intl/en-US.json"],"sourcesContent":["{\n \"decrease\": \"Decrease {fieldLabel}\",\n \"increase\": \"Increase {fieldLabel}\",\n \"numberField\": \"Number field\"\n}\n"],"names":[],"version":3,"file":"en-US.module.js.map"}
|
package/dist/es-ES.main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,QAAQ,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,QAAQ,EAAE,KAAK,UAAU,EAAE;IACpE,YAAY,CAAC,OAAS,CAAC,SAAS,EAAE,KAAK,UAAU,EAAE;IACnD,eAAe,CAAC,kBAAe,CAAC;AAClC","sources":["packages/@react-aria/numberfield/intl/es-ES.json"],"sourcesContent":["{\n \"decrease\": \"Reducir {fieldLabel}\",\n \"increase\": \"Aumentar {fieldLabel}\",\n \"numberField\": \"Campo de número\"\n}\n"],"names":[],"version":3,"file":"es-ES.main.js.map"}
|
package/dist/es-ES.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,QAAQ,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,QAAQ,EAAE,KAAK,UAAU,EAAE;IACpE,YAAY,CAAC,OAAS,CAAC,SAAS,EAAE,KAAK,UAAU,EAAE;IACnD,eAAe,CAAC,kBAAe,CAAC;AAClC","sources":["packages/@react-aria/numberfield/intl/es-ES.json"],"sourcesContent":["{\n \"decrease\": \"Reducir {fieldLabel}\",\n \"increase\": \"Aumentar {fieldLabel}\",\n \"numberField\": \"Campo de número\"\n}\n"],"names":[],"version":3,"file":"es-ES.module.js.map"}
|
package/dist/et-EE.main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,WAAQ,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,WAAQ,EAAE,KAAK,UAAU,EAAE;IACpE,YAAY,CAAC,OAAS,CAAC,SAAS,EAAE,KAAK,UAAU,EAAE;IACnD,eAAe,CAAC,cAAW,CAAC;AAC9B","sources":["packages/@react-aria/numberfield/intl/et-EE.json"],"sourcesContent":["{\n \"decrease\": \"Vähenda {fieldLabel}\",\n \"increase\": \"Suurenda {fieldLabel}\",\n \"numberField\": \"Numbri väli\"\n}\n"],"names":[],"version":3,"file":"et-EE.main.js.map"}
|
package/dist/et-EE.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,WAAQ,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,WAAQ,EAAE,KAAK,UAAU,EAAE;IACpE,YAAY,CAAC,OAAS,CAAC,SAAS,EAAE,KAAK,UAAU,EAAE;IACnD,eAAe,CAAC,cAAW,CAAC;AAC9B","sources":["packages/@react-aria/numberfield/intl/et-EE.json"],"sourcesContent":["{\n \"decrease\": \"Vähenda {fieldLabel}\",\n \"increase\": \"Suurenda {fieldLabel}\",\n \"numberField\": \"Numbri väli\"\n}\n"],"names":[],"version":3,"file":"et-EE.module.js.map"}
|
package/dist/fi-FI.main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,cAAQ,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,cAAQ,EAAE,KAAK,UAAU,EAAE;IACpE,YAAY,CAAC,OAAS,CAAC,YAAM,EAAE,KAAK,UAAU,EAAE;IAChD,eAAe,CAAC,eAAY,CAAC;AAC/B","sources":["packages/@react-aria/numberfield/intl/fi-FI.json"],"sourcesContent":["{\n \"decrease\": \"Vähennä {fieldLabel}\",\n \"increase\": \"Lisää {fieldLabel}\",\n \"numberField\": \"Numerokenttä\"\n}\n"],"names":[],"version":3,"file":"fi-FI.main.js.map"}
|
package/dist/fi-FI.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,cAAQ,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,cAAQ,EAAE,KAAK,UAAU,EAAE;IACpE,YAAY,CAAC,OAAS,CAAC,YAAM,EAAE,KAAK,UAAU,EAAE;IAChD,eAAe,CAAC,eAAY,CAAC;AAC/B","sources":["packages/@react-aria/numberfield/intl/fi-FI.json"],"sourcesContent":["{\n \"decrease\": \"Vähennä {fieldLabel}\",\n \"increase\": \"Lisää {fieldLabel}\",\n \"numberField\": \"Numerokenttä\"\n}\n"],"names":[],"version":3,"file":"fi-FI.module.js.map"}
|
package/dist/fr-FR.main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,SAAS,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,SAAS,EAAE,KAAK,UAAU,EAAE;IACrE,YAAY,CAAC,OAAS,CAAC,UAAU,EAAE,KAAK,UAAU,EAAE;IACpD,eAAe,CAAC,eAAe,CAAC;AAClC","sources":["packages/@react-aria/numberfield/intl/fr-FR.json"],"sourcesContent":["{\n \"decrease\": \"Diminuer {fieldLabel}\",\n \"increase\": \"Augmenter {fieldLabel}\",\n \"numberField\": \"Champ de nombre\"\n}\n"],"names":[],"version":3,"file":"fr-FR.main.js.map"}
|
package/dist/fr-FR.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,SAAS,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,SAAS,EAAE,KAAK,UAAU,EAAE;IACrE,YAAY,CAAC,OAAS,CAAC,UAAU,EAAE,KAAK,UAAU,EAAE;IACpD,eAAe,CAAC,eAAe,CAAC;AAClC","sources":["packages/@react-aria/numberfield/intl/fr-FR.json"],"sourcesContent":["{\n \"decrease\": \"Diminuer {fieldLabel}\",\n \"increase\": \"Augmenter {fieldLabel}\",\n \"numberField\": \"Champ de nombre\"\n}\n"],"names":[],"version":3,"file":"fr-FR.module.js.map"}
|
package/dist/he-IL.main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,6BAAK,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,6BAAK,EAAE,KAAK,UAAU,EAAE;IACjE,YAAY,CAAC,OAAS,CAAC,6BAAK,EAAE,KAAK,UAAU,EAAE;IAC/C,eAAe,CAAC,kDAAQ,CAAC;AAC3B","sources":["packages/@react-aria/numberfield/intl/he-IL.json"],"sourcesContent":["{\n \"decrease\": \"הקטן {fieldLabel}\",\n \"increase\": \"הגדל {fieldLabel}\",\n \"numberField\": \"שדה מספר\"\n}\n"],"names":[],"version":3,"file":"he-IL.main.js.map"}
|
package/dist/he-IL.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,6BAAK,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,6BAAK,EAAE,KAAK,UAAU,EAAE;IACjE,YAAY,CAAC,OAAS,CAAC,6BAAK,EAAE,KAAK,UAAU,EAAE;IAC/C,eAAe,CAAC,kDAAQ,CAAC;AAC3B","sources":["packages/@react-aria/numberfield/intl/he-IL.json"],"sourcesContent":["{\n \"decrease\": \"הקטן {fieldLabel}\",\n \"increase\": \"הגדל {fieldLabel}\",\n \"numberField\": \"שדה מספר\"\n}\n"],"names":[],"version":3,"file":"he-IL.module.js.map"}
|
package/dist/hr-HR.main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,OAAO,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,OAAO,EAAE,KAAK,UAAU,EAAE;IACnE,YAAY,CAAC,OAAS,CAAC,cAAQ,EAAE,KAAK,UAAU,EAAE;IAClD,eAAe,CAAC,WAAW,CAAC;AAC9B","sources":["packages/@react-aria/numberfield/intl/hr-HR.json"],"sourcesContent":["{\n \"decrease\": \"Smanji {fieldLabel}\",\n \"increase\": \"Povećaj {fieldLabel}\",\n \"numberField\": \"Polje broja\"\n}\n"],"names":[],"version":3,"file":"hr-HR.main.js.map"}
|
package/dist/hr-HR.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,OAAO,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,OAAO,EAAE,KAAK,UAAU,EAAE;IACnE,YAAY,CAAC,OAAS,CAAC,cAAQ,EAAE,KAAK,UAAU,EAAE;IAClD,eAAe,CAAC,WAAW,CAAC;AAC9B","sources":["packages/@react-aria/numberfield/intl/hr-HR.json"],"sourcesContent":["{\n \"decrease\": \"Smanji {fieldLabel}\",\n \"increase\": \"Povećaj {fieldLabel}\",\n \"numberField\": \"Polje broja\"\n}\n"],"names":[],"version":3,"file":"hr-HR.module.js.map"}
|
package/dist/hu-HU.main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,GAAG,KAAK,UAAU,CAAC,kBAAY,CAAC;IACxE,YAAY,CAAC,OAAS,GAAG,KAAK,UAAU,CAAC,eAAS,CAAC;IACnD,eAAe,CAAC,iBAAQ,CAAC;AAC3B","sources":["packages/@react-aria/numberfield/intl/hu-HU.json"],"sourcesContent":["{\n \"decrease\": \"{fieldLabel} csökkentése\",\n \"increase\": \"{fieldLabel} növelése\",\n \"numberField\": \"Számmező\"\n}\n"],"names":[],"version":3,"file":"hu-HU.main.js.map"}
|
package/dist/hu-HU.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,GAAG,KAAK,UAAU,CAAC,kBAAY,CAAC;IACxE,YAAY,CAAC,OAAS,GAAG,KAAK,UAAU,CAAC,eAAS,CAAC;IACnD,eAAe,CAAC,iBAAQ,CAAC;AAC3B","sources":["packages/@react-aria/numberfield/intl/hu-HU.json"],"sourcesContent":["{\n \"decrease\": \"{fieldLabel} csökkentése\",\n \"increase\": \"{fieldLabel} növelése\",\n \"numberField\": \"Számmező\"\n}\n"],"names":[],"version":3,"file":"hu-HU.module.js.map"}
|
package/dist/it-IT.main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,OAAO,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,OAAO,EAAE,KAAK,UAAU,EAAE;IACnE,YAAY,CAAC,OAAS,CAAC,QAAQ,EAAE,KAAK,UAAU,EAAE;IAClD,eAAe,CAAC,YAAY,CAAC;AAC/B","sources":["packages/@react-aria/numberfield/intl/it-IT.json"],"sourcesContent":["{\n \"decrease\": \"Riduci {fieldLabel}\",\n \"increase\": \"Aumenta {fieldLabel}\",\n \"numberField\": \"Campo numero\"\n}\n"],"names":[],"version":3,"file":"it-IT.main.js.map"}
|
package/dist/it-IT.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,OAAO,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,OAAO,EAAE,KAAK,UAAU,EAAE;IACnE,YAAY,CAAC,OAAS,CAAC,QAAQ,EAAE,KAAK,UAAU,EAAE;IAClD,eAAe,CAAC,YAAY,CAAC;AAC/B","sources":["packages/@react-aria/numberfield/intl/it-IT.json"],"sourcesContent":["{\n \"decrease\": \"Riduci {fieldLabel}\",\n \"increase\": \"Aumenta {fieldLabel}\",\n \"numberField\": \"Campo numero\"\n}\n"],"names":[],"version":3,"file":"it-IT.module.js.map"}
|
package/dist/ja-JP.main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,GAAG,KAAK,UAAU,CAAC,wBAAG,CAAC;IAC/D,YAAY,CAAC,OAAS,GAAG,KAAK,UAAU,CAAC,wBAAG,CAAC;IAC7C,eAAe,CAAC,wDAAO,CAAC;AAC1B","sources":["packages/@react-aria/numberfield/intl/ja-JP.json"],"sourcesContent":["{\n \"decrease\": \"{fieldLabel}を縮小\",\n \"increase\": \"{fieldLabel}を拡大\",\n \"numberField\": \"数値フィールド\"\n}\n"],"names":[],"version":3,"file":"ja-JP.main.js.map"}
|
package/dist/ja-JP.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,GAAG,KAAK,UAAU,CAAC,wBAAG,CAAC;IAC/D,YAAY,CAAC,OAAS,GAAG,KAAK,UAAU,CAAC,wBAAG,CAAC;IAC7C,eAAe,CAAC,wDAAO,CAAC;AAC1B","sources":["packages/@react-aria/numberfield/intl/ja-JP.json"],"sourcesContent":["{\n \"decrease\": \"{fieldLabel}を縮小\",\n \"increase\": \"{fieldLabel}を拡大\",\n \"numberField\": \"数値フィールド\"\n}\n"],"names":[],"version":3,"file":"ja-JP.module.js.map"}
|
package/dist/ko-KR.main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,GAAG,KAAK,UAAU,CAAC,iBAAG,CAAC;IAC/D,YAAY,CAAC,OAAS,GAAG,KAAK,UAAU,CAAC,iBAAG,CAAC;IAC7C,eAAe,CAAC,iCAAK,CAAC;AACxB","sources":["packages/@react-aria/numberfield/intl/ko-KR.json"],"sourcesContent":["{\n \"decrease\": \"{fieldLabel} 감소\",\n \"increase\": \"{fieldLabel} 증가\",\n \"numberField\": \"번호 필드\"\n}\n"],"names":[],"version":3,"file":"ko-KR.main.js.map"}
|
package/dist/ko-KR.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,GAAG,KAAK,UAAU,CAAC,iBAAG,CAAC;IAC/D,YAAY,CAAC,OAAS,GAAG,KAAK,UAAU,CAAC,iBAAG,CAAC;IAC7C,eAAe,CAAC,iCAAK,CAAC;AACxB","sources":["packages/@react-aria/numberfield/intl/ko-KR.json"],"sourcesContent":["{\n \"decrease\": \"{fieldLabel} 감소\",\n \"increase\": \"{fieldLabel} 증가\",\n \"numberField\": \"번호 필드\"\n}\n"],"names":[],"version":3,"file":"ko-KR.module.js.map"}
|
package/dist/lt-LT.main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,gBAAU,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,gBAAU,EAAE,KAAK,UAAU,EAAE;IACtE,YAAY,CAAC,OAAS,CAAC,UAAU,EAAE,KAAK,UAAU,EAAE;IACpD,eAAe,CAAC,cAAc,CAAC;AACjC","sources":["packages/@react-aria/numberfield/intl/lt-LT.json"],"sourcesContent":["{\n \"decrease\": \"Sumažinti {fieldLabel}\",\n \"increase\": \"Padidinti {fieldLabel}\",\n \"numberField\": \"Numerio laukas\"\n}\n"],"names":[],"version":3,"file":"lt-LT.main.js.map"}
|
package/dist/lt-LT.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,gBAAU,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,gBAAU,EAAE,KAAK,UAAU,EAAE;IACtE,YAAY,CAAC,OAAS,CAAC,UAAU,EAAE,KAAK,UAAU,EAAE;IACpD,eAAe,CAAC,cAAc,CAAC;AACjC","sources":["packages/@react-aria/numberfield/intl/lt-LT.json"],"sourcesContent":["{\n \"decrease\": \"Sumažinti {fieldLabel}\",\n \"increase\": \"Padidinti {fieldLabel}\",\n \"numberField\": \"Numerio laukas\"\n}\n"],"names":[],"version":3,"file":"lt-LT.module.js.map"}
|
package/dist/lv-LV.main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,yBAAa,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,yBAAa,EAAE,KAAK,UAAU,EAAE;IACzE,YAAY,CAAC,OAAS,CAAC,0BAAc,EAAE,KAAK,UAAU,EAAE;IACxD,eAAe,CAAC,mBAAa,CAAC;AAChC","sources":["packages/@react-aria/numberfield/intl/lv-LV.json"],"sourcesContent":["{\n \"decrease\": \"Samazināšana {fieldLabel}\",\n \"increase\": \"Palielināšana {fieldLabel}\",\n \"numberField\": \"Skaitļu lauks\"\n}\n"],"names":[],"version":3,"file":"lv-LV.main.js.map"}
|
package/dist/lv-LV.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,yBAAa,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,yBAAa,EAAE,KAAK,UAAU,EAAE;IACzE,YAAY,CAAC,OAAS,CAAC,0BAAc,EAAE,KAAK,UAAU,EAAE;IACxD,eAAe,CAAC,mBAAa,CAAC;AAChC","sources":["packages/@react-aria/numberfield/intl/lv-LV.json"],"sourcesContent":["{\n \"decrease\": \"Samazināšana {fieldLabel}\",\n \"increase\": \"Palielināšana {fieldLabel}\",\n \"numberField\": \"Skaitļu lauks\"\n}\n"],"names":[],"version":3,"file":"lv-LV.module.js.map"}
|
package/dist/nb-NO.main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,QAAQ,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,QAAQ,EAAE,KAAK,UAAU,EAAE;IACpE,YAAY,CAAC,OAAS,CAAC,MAAG,EAAE,KAAK,UAAU,EAAE;IAC7C,eAAe,CAAC,QAAQ,CAAC;AAC3B","sources":["packages/@react-aria/numberfield/intl/nb-NO.json"],"sourcesContent":["{\n \"decrease\": \"Reduser {fieldLabel}\",\n \"increase\": \"Øk {fieldLabel}\",\n \"numberField\": \"Tallfelt\"\n}\n"],"names":[],"version":3,"file":"nb-NO.main.js.map"}
|
package/dist/nb-NO.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,QAAQ,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,QAAQ,EAAE,KAAK,UAAU,EAAE;IACpE,YAAY,CAAC,OAAS,CAAC,MAAG,EAAE,KAAK,UAAU,EAAE;IAC7C,eAAe,CAAC,QAAQ,CAAC;AAC3B","sources":["packages/@react-aria/numberfield/intl/nb-NO.json"],"sourcesContent":["{\n \"decrease\": \"Reduser {fieldLabel}\",\n \"increase\": \"Øk {fieldLabel}\",\n \"numberField\": \"Tallfelt\"\n}\n"],"names":[],"version":3,"file":"nb-NO.module.js.map"}
|
package/dist/nl-NL.main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,GAAG,KAAK,UAAU,CAAC,SAAS,CAAC;IACrE,YAAY,CAAC,OAAS,GAAG,KAAK,UAAU,CAAC,SAAS,CAAC;IACnD,eAAe,CAAC,SAAS,CAAC;AAC5B","sources":["packages/@react-aria/numberfield/intl/nl-NL.json"],"sourcesContent":["{\n \"decrease\": \"{fieldLabel} verlagen\",\n \"increase\": \"{fieldLabel} verhogen\",\n \"numberField\": \"Getalveld\"\n}\n"],"names":[],"version":3,"file":"nl-NL.main.js.map"}
|
package/dist/nl-NL.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,GAAG,KAAK,UAAU,CAAC,SAAS,CAAC;IACrE,YAAY,CAAC,OAAS,GAAG,KAAK,UAAU,CAAC,SAAS,CAAC;IACnD,eAAe,CAAC,SAAS,CAAC;AAC5B","sources":["packages/@react-aria/numberfield/intl/nl-NL.json"],"sourcesContent":["{\n \"decrease\": \"{fieldLabel} verlagen\",\n \"increase\": \"{fieldLabel} verhogen\",\n \"numberField\": \"Getalveld\"\n}\n"],"names":[],"version":3,"file":"nl-NL.module.js.map"}
|
package/dist/pl-PL.main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,SAAS,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,SAAS,EAAE,KAAK,UAAU,EAAE;IACrE,YAAY,CAAC,OAAS,CAAC,cAAQ,EAAE,KAAK,UAAU,EAAE;IAClD,eAAe,CAAC,WAAW,CAAC;AAC9B","sources":["packages/@react-aria/numberfield/intl/pl-PL.json"],"sourcesContent":["{\n \"decrease\": \"Zmniejsz {fieldLabel}\",\n \"increase\": \"Zwiększ {fieldLabel}\",\n \"numberField\": \"Pole numeru\"\n}\n"],"names":[],"version":3,"file":"pl-PL.main.js.map"}
|
package/dist/pl-PL.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,SAAS,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,SAAS,EAAE,KAAK,UAAU,EAAE;IACrE,YAAY,CAAC,OAAS,CAAC,cAAQ,EAAE,KAAK,UAAU,EAAE;IAClD,eAAe,CAAC,WAAW,CAAC;AAC9B","sources":["packages/@react-aria/numberfield/intl/pl-PL.json"],"sourcesContent":["{\n \"decrease\": \"Zmniejsz {fieldLabel}\",\n \"increase\": \"Zwiększ {fieldLabel}\",\n \"numberField\": \"Pole numeru\"\n}\n"],"names":[],"version":3,"file":"pl-PL.module.js.map"}
|
package/dist/pt-BR.main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,SAAS,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,SAAS,EAAE,KAAK,UAAU,EAAE;IACrE,YAAY,CAAC,OAAS,CAAC,SAAS,EAAE,KAAK,UAAU,EAAE;IACnD,eAAe,CAAC,kBAAe,CAAC;AAClC","sources":["packages/@react-aria/numberfield/intl/pt-BR.json"],"sourcesContent":["{\n \"decrease\": \"Diminuir {fieldLabel}\",\n \"increase\": \"Aumentar {fieldLabel}\",\n \"numberField\": \"Campo de número\"\n}\n"],"names":[],"version":3,"file":"pt-BR.main.js.map"}
|
package/dist/pt-BR.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,SAAS,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,SAAS,EAAE,KAAK,UAAU,EAAE;IACrE,YAAY,CAAC,OAAS,CAAC,SAAS,EAAE,KAAK,UAAU,EAAE;IACnD,eAAe,CAAC,kBAAe,CAAC;AAClC","sources":["packages/@react-aria/numberfield/intl/pt-BR.json"],"sourcesContent":["{\n \"decrease\": \"Diminuir {fieldLabel}\",\n \"increase\": \"Aumentar {fieldLabel}\",\n \"numberField\": \"Campo de número\"\n}\n"],"names":[],"version":3,"file":"pt-BR.module.js.map"}
|
package/dist/pt-PT.main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,SAAS,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,SAAS,EAAE,KAAK,UAAU,EAAE;IACrE,YAAY,CAAC,OAAS,CAAC,SAAS,EAAE,KAAK,UAAU,EAAE;IACnD,eAAe,CAAC,iBAAc,CAAC;AACjC","sources":["packages/@react-aria/numberfield/intl/pt-PT.json"],"sourcesContent":["{\n \"decrease\": \"Diminuir {fieldLabel}\",\n \"increase\": \"Aumentar {fieldLabel}\",\n \"numberField\": \"Campo numérico\"\n}\n"],"names":[],"version":3,"file":"pt-PT.main.js.map"}
|
package/dist/pt-PT.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,SAAS,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,SAAS,EAAE,KAAK,UAAU,EAAE;IACrE,YAAY,CAAC,OAAS,CAAC,SAAS,EAAE,KAAK,UAAU,EAAE;IACnD,eAAe,CAAC,iBAAc,CAAC;AACjC","sources":["packages/@react-aria/numberfield/intl/pt-PT.json"],"sourcesContent":["{\n \"decrease\": \"Diminuir {fieldLabel}\",\n \"increase\": \"Aumentar {fieldLabel}\",\n \"numberField\": \"Campo numérico\"\n}\n"],"names":[],"version":3,"file":"pt-PT.module.js.map"}
|
package/dist/ro-RO.main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,cAAQ,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,cAAQ,EAAE,KAAK,UAAU,EAAE;IACpE,YAAY,CAAC,OAAS,CAAC,eAAS,EAAE,KAAK,UAAU,EAAE;IACnD,eAAe,CAAC,eAAY,CAAC;AAC/B","sources":["packages/@react-aria/numberfield/intl/ro-RO.json"],"sourcesContent":["{\n \"decrease\": \"Scădere {fieldLabel}\",\n \"increase\": \"Creștere {fieldLabel}\",\n \"numberField\": \"Câmp numeric\"\n}\n"],"names":[],"version":3,"file":"ro-RO.main.js.map"}
|
package/dist/ro-RO.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,cAAQ,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,cAAQ,EAAE,KAAK,UAAU,EAAE;IACpE,YAAY,CAAC,OAAS,CAAC,eAAS,EAAE,KAAK,UAAU,EAAE;IACnD,eAAe,CAAC,eAAY,CAAC;AAC/B","sources":["packages/@react-aria/numberfield/intl/ro-RO.json"],"sourcesContent":["{\n \"decrease\": \"Scădere {fieldLabel}\",\n \"increase\": \"Creștere {fieldLabel}\",\n \"numberField\": \"Câmp numeric\"\n}\n"],"names":[],"version":3,"file":"ro-RO.module.js.map"}
|
package/dist/ru-RU.main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,uEAAW,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,uEAAW,EAAE,KAAK,UAAU,EAAE;IACvE,YAAY,CAAC,OAAS,CAAC,uEAAW,EAAE,KAAK,UAAU,EAAE;IACrD,eAAe,CAAC,qFAAa,CAAC;AAChC","sources":["packages/@react-aria/numberfield/intl/ru-RU.json"],"sourcesContent":["{\n \"decrease\": \"Уменьшение {fieldLabel}\",\n \"increase\": \"Увеличение {fieldLabel}\",\n \"numberField\": \"Числовое поле\"\n}\n"],"names":[],"version":3,"file":"ru-RU.main.js.map"}
|
package/dist/ru-RU.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,uEAAW,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,uEAAW,EAAE,KAAK,UAAU,EAAE;IACvE,YAAY,CAAC,OAAS,CAAC,uEAAW,EAAE,KAAK,UAAU,EAAE;IACrD,eAAe,CAAC,qFAAa,CAAC;AAChC","sources":["packages/@react-aria/numberfield/intl/ru-RU.json"],"sourcesContent":["{\n \"decrease\": \"Уменьшение {fieldLabel}\",\n \"increase\": \"Увеличение {fieldLabel}\",\n \"numberField\": \"Числовое поле\"\n}\n"],"names":[],"version":3,"file":"ru-RU.module.js.map"}
|
package/dist/sk-SK.main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,sBAAO,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,sBAAO,EAAE,KAAK,UAAU,EAAE;IACnE,YAAY,CAAC,OAAS,CAAC,sBAAO,EAAE,KAAK,UAAU,EAAE;IACjD,eAAe,CAAC,wBAAY,CAAC;AAC/B","sources":["packages/@react-aria/numberfield/intl/sk-SK.json"],"sourcesContent":["{\n \"decrease\": \"Znížiť {fieldLabel}\",\n \"increase\": \"Zvýšiť {fieldLabel}\",\n \"numberField\": \"Číselné pole\"\n}\n"],"names":[],"version":3,"file":"sk-SK.main.js.map"}
|
package/dist/sk-SK.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,sBAAO,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,sBAAO,EAAE,KAAK,UAAU,EAAE;IACnE,YAAY,CAAC,OAAS,CAAC,sBAAO,EAAE,KAAK,UAAU,EAAE;IACjD,eAAe,CAAC,wBAAY,CAAC;AAC/B","sources":["packages/@react-aria/numberfield/intl/sk-SK.json"],"sourcesContent":["{\n \"decrease\": \"Znížiť {fieldLabel}\",\n \"increase\": \"Zvýšiť {fieldLabel}\",\n \"numberField\": \"Číselné pole\"\n}\n"],"names":[],"version":3,"file":"sk-SK.module.js.map"}
|
package/dist/sl-SI.main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,QAAQ,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,QAAQ,EAAE,KAAK,UAAU,EAAE;IACpE,YAAY,CAAC,OAAS,CAAC,gBAAU,EAAE,KAAK,UAAU,EAAE;IACpD,eAAe,CAAC,2BAAe,CAAC;AAClC","sources":["packages/@react-aria/numberfield/intl/sl-SI.json"],"sourcesContent":["{\n \"decrease\": \"Upadati {fieldLabel}\",\n \"increase\": \"Povečajte {fieldLabel}\",\n \"numberField\": \"Številčno polje\"\n}\n"],"names":[],"version":3,"file":"sl-SI.main.js.map"}
|
package/dist/sl-SI.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,QAAQ,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,QAAQ,EAAE,KAAK,UAAU,EAAE;IACpE,YAAY,CAAC,OAAS,CAAC,gBAAU,EAAE,KAAK,UAAU,EAAE;IACpD,eAAe,CAAC,2BAAe,CAAC;AAClC","sources":["packages/@react-aria/numberfield/intl/sl-SI.json"],"sourcesContent":["{\n \"decrease\": \"Upadati {fieldLabel}\",\n \"increase\": \"Povečajte {fieldLabel}\",\n \"numberField\": \"Številčno polje\"\n}\n"],"names":[],"version":3,"file":"sl-SI.module.js.map"}
|
package/dist/sr-SP.main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,OAAO,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,OAAO,EAAE,KAAK,UAAU,EAAE;IACnE,YAAY,CAAC,OAAS,CAAC,cAAQ,EAAE,KAAK,UAAU,EAAE;IAClD,eAAe,CAAC,WAAW,CAAC;AAC9B","sources":["packages/@react-aria/numberfield/intl/sr-SP.json"],"sourcesContent":["{\n \"decrease\": \"Smanji {fieldLabel}\",\n \"increase\": \"Povećaj {fieldLabel}\",\n \"numberField\": \"Polje broja\"\n}\n"],"names":[],"version":3,"file":"sr-SP.main.js.map"}
|
package/dist/sr-SP.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,OAAO,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,OAAO,EAAE,KAAK,UAAU,EAAE;IACnE,YAAY,CAAC,OAAS,CAAC,cAAQ,EAAE,KAAK,UAAU,EAAE;IAClD,eAAe,CAAC,WAAW,CAAC;AAC9B","sources":["packages/@react-aria/numberfield/intl/sr-SP.json"],"sourcesContent":["{\n \"decrease\": \"Smanji {fieldLabel}\",\n \"increase\": \"Povećaj {fieldLabel}\",\n \"numberField\": \"Polje broja\"\n}\n"],"names":[],"version":3,"file":"sr-SP.module.js.map"}
|
package/dist/sv-SE.main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,OAAO,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,OAAO,EAAE,KAAK,UAAU,EAAE;IACnE,YAAY,CAAC,OAAS,CAAC,OAAI,EAAE,KAAK,UAAU,EAAE;IAC9C,eAAe,CAAC,aAAU,CAAC;AAC7B","sources":["packages/@react-aria/numberfield/intl/sv-SE.json"],"sourcesContent":["{\n \"decrease\": \"Minska {fieldLabel}\",\n \"increase\": \"Öka {fieldLabel}\",\n \"numberField\": \"Nummerfält\"\n}\n"],"names":[],"version":3,"file":"sv-SE.main.js.map"}
|
package/dist/sv-SE.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,OAAO,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,OAAO,EAAE,KAAK,UAAU,EAAE;IACnE,YAAY,CAAC,OAAS,CAAC,OAAI,EAAE,KAAK,UAAU,EAAE;IAC9C,eAAe,CAAC,aAAU,CAAC;AAC7B","sources":["packages/@react-aria/numberfield/intl/sv-SE.json"],"sourcesContent":["{\n \"decrease\": \"Minska {fieldLabel}\",\n \"increase\": \"Öka {fieldLabel}\",\n \"numberField\": \"Nummerfält\"\n}\n"],"names":[],"version":3,"file":"sv-SE.module.js.map"}
|
package/dist/tr-TR.main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,GAAG,KAAK,UAAU,CAAC,MAAM,CAAC;IAClE,YAAY,CAAC,OAAS,GAAG,KAAK,UAAU,CAAC,aAAO,CAAC;IACjD,eAAe,CAAC,sBAAU,CAAC;AAC7B","sources":["packages/@react-aria/numberfield/intl/tr-TR.json"],"sourcesContent":["{\n \"decrease\": \"{fieldLabel} azalt\",\n \"increase\": \"{fieldLabel} arttır\",\n \"numberField\": \"Sayı alanı\"\n}\n"],"names":[],"version":3,"file":"tr-TR.main.js.map"}
|
package/dist/tr-TR.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,GAAG,KAAK,UAAU,CAAC,MAAM,CAAC;IAClE,YAAY,CAAC,OAAS,GAAG,KAAK,UAAU,CAAC,aAAO,CAAC;IACjD,eAAe,CAAC,sBAAU,CAAC;AAC7B","sources":["packages/@react-aria/numberfield/intl/tr-TR.json"],"sourcesContent":["{\n \"decrease\": \"{fieldLabel} azalt\",\n \"increase\": \"{fieldLabel} arttır\",\n \"numberField\": \"Sayı alanı\"\n}\n"],"names":[],"version":3,"file":"tr-TR.module.js.map"}
|
package/dist/uk-UA.main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,yDAAS,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,yDAAS,EAAE,KAAK,UAAU,EAAE;IACrE,YAAY,CAAC,OAAS,CAAC,gEAAU,EAAE,KAAK,UAAU,EAAE;IACpD,eAAe,CAAC,uEAAW,CAAC;AAC9B","sources":["packages/@react-aria/numberfield/intl/uk-UA.json"],"sourcesContent":["{\n \"decrease\": \"Зменшити {fieldLabel}\",\n \"increase\": \"Збільшити {fieldLabel}\",\n \"numberField\": \"Поле номера\"\n}\n"],"names":[],"version":3,"file":"uk-UA.main.js.map"}
|
package/dist/uk-UA.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,yDAAS,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,yDAAS,EAAE,KAAK,UAAU,EAAE;IACrE,YAAY,CAAC,OAAS,CAAC,gEAAU,EAAE,KAAK,UAAU,EAAE;IACpD,eAAe,CAAC,uEAAW,CAAC;AAC9B","sources":["packages/@react-aria/numberfield/intl/uk-UA.json"],"sourcesContent":["{\n \"decrease\": \"Зменшити {fieldLabel}\",\n \"increase\": \"Збільшити {fieldLabel}\",\n \"numberField\": \"Поле номера\"\n}\n"],"names":[],"version":3,"file":"uk-UA.module.js.map"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;AA+CM,SAAS,0CAAe,KAA2B,EAAE,KAAuB,EAAE,QAA4C;IAC/H,IAAI,MACF,EAAE,sBACF,kBAAkB,sBAClB,kBAAkB,cAClB,UAAU,cACV,UAAU,cACV,UAAU,YACV,QAAQ,YACR,QAAQ,aACR,SAAS,SACT,KAAK,iBACL,aAAa,UACb,SAAS,KAAO,YAChB,OAAO,iBACP,aAAa,aACb,SAAS,WACT,OAAO,e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BACA;mBACA;0BACA;2BACA;IACF;AACF","sources":["packages/@react-aria/numberfield/src/useNumberField.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 {AriaButtonProps} from '@react-types/button';\nimport {AriaNumberFieldProps} from '@react-types/numberfield';\nimport {chain, filterDOMProps, isAndroid, isIOS, isIPhone, mergeProps, useFormReset, useId} from '@react-aria/utils';\nimport {DOMAttributes, GroupDOMAttributes, TextInputDOMProps, ValidationResult} from '@react-types/shared';\nimport {\n InputHTMLAttributes,\n LabelHTMLAttributes,\n RefObject,\n useCallback,\n useMemo,\n useState\n} from 'react';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {NumberFieldState} from '@react-stately/numberfield';\nimport {privateValidationStateProp} from '@react-stately/form';\nimport {useFocus, useFocusWithin, useScrollWheel} from '@react-aria/interactions';\nimport {useFormattedTextField} from '@react-aria/textfield';\nimport {\n useLocalizedStringFormatter,\n useNumberFormatter\n} from '@react-aria/i18n';\nimport {useSpinButton} from '@react-aria/spinbutton';\n\nexport interface NumberFieldAria extends ValidationResult {\n /** Props for the label element. */\n labelProps: LabelHTMLAttributes<HTMLLabelElement>,\n /** Props for the group wrapper around the input and stepper buttons. */\n groupProps: GroupDOMAttributes,\n /** Props for the input element. */\n inputProps: InputHTMLAttributes<HTMLInputElement>,\n /** Props for the increment button, to be passed to [useButton](useButton.html). */\n incrementButtonProps: AriaButtonProps,\n /** Props for the decrement button, to be passed to [useButton](useButton.html). */\n decrementButtonProps: AriaButtonProps,\n /** Props for the number field's description element, if any. */\n descriptionProps: DOMAttributes,\n /** Props for the number field's error message element, if any. */\n errorMessageProps: DOMAttributes\n}\n\n/**\n * Provides the behavior and accessibility implementation for a number field component.\n * Number fields allow users to enter a number, and increment or decrement the value using stepper buttons.\n */\nexport function useNumberField(props: AriaNumberFieldProps, state: NumberFieldState, inputRef: RefObject<HTMLInputElement | null>): NumberFieldAria {\n let {\n id,\n decrementAriaLabel,\n incrementAriaLabel,\n isDisabled,\n isReadOnly,\n isRequired,\n minValue,\n maxValue,\n autoFocus,\n label,\n formatOptions,\n onBlur = () => {},\n onFocus,\n onFocusChange,\n onKeyDown,\n onKeyUp,\n description,\n errorMessage,\n isWheelDisabled,\n ...otherProps\n } = props;\n\n let {\n increment,\n incrementToMax,\n decrement,\n decrementToMin,\n numberValue,\n inputValue,\n commit,\n commitValidation\n } = state;\n\n const stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-aria/numberfield');\n\n let inputId = useId(id);\n let {focusProps} = useFocus({\n onBlur() {\n // Set input value to normalized valid value\n commit();\n }\n });\n\n let numberFormatter = useNumberFormatter(formatOptions);\n let intlOptions = useMemo(() => numberFormatter.resolvedOptions(), [numberFormatter]);\n\n // Replace negative textValue formatted using currencySign: 'accounting'\n // with a textValue that can be announced using a minus sign.\n let textValueFormatter = useNumberFormatter({...formatOptions, currencySign: undefined});\n let textValue = useMemo(() => isNaN(numberValue) ? '' : textValueFormatter.format(numberValue), [textValueFormatter, numberValue]);\n\n let {\n spinButtonProps,\n incrementButtonProps: incButtonProps,\n decrementButtonProps: decButtonProps\n } = useSpinButton(\n {\n isDisabled,\n isReadOnly,\n isRequired,\n maxValue,\n minValue,\n onIncrement: increment,\n onIncrementToMax: incrementToMax,\n onDecrement: decrement,\n onDecrementToMin: decrementToMin,\n value: numberValue,\n textValue\n }\n );\n\n let [focusWithin, setFocusWithin] = useState(false);\n let {focusWithinProps} = useFocusWithin({isDisabled, onFocusWithinChange: setFocusWithin});\n\n let onWheel = useCallback((e) => {\n // if on a trackpad, users can scroll in both X and Y at once, check the magnitude of the change\n // if it's mostly in the X direction, then just return, the user probably doesn't mean to inc/dec\n // this isn't perfect, events come in fast with small deltas and a part of the scroll may give a false indication\n // especially if the user is scrolling near 45deg\n if (Math.abs(e.deltaY) <= Math.abs(e.deltaX)) {\n return;\n }\n if (e.deltaY > 0) {\n increment();\n } else if (e.deltaY < 0) {\n decrement();\n }\n }, [decrement, increment]);\n // If the input isn't supposed to receive input, disable scrolling.\n let scrollingDisabled = isWheelDisabled || isDisabled || isReadOnly || !focusWithin;\n useScrollWheel({onScroll: onWheel, isDisabled: scrollingDisabled}, inputRef);\n\n // The inputMode attribute influences the software keyboard that is shown on touch devices.\n // Browsers and operating systems are quite inconsistent about what keys are available, however.\n // We choose between numeric and decimal based on whether we allow negative and fractional numbers,\n // and based on testing on various devices to determine what keys are available in each inputMode.\n let hasDecimals = (intlOptions.maximumFractionDigits ?? 0) > 0;\n let hasNegative = (state.minValue === undefined || isNaN(state.minValue)) || state.minValue < 0;\n let inputMode: TextInputDOMProps['inputMode'] = 'numeric';\n if (isIPhone()) {\n // iPhone doesn't have a minus sign in either numeric or decimal.\n // Note this is only for iPhone, not iPad, which always has both\n // minus and decimal in numeric.\n if (hasNegative) {\n inputMode = 'text';\n } else if (hasDecimals) {\n inputMode = 'decimal';\n }\n } else if (isAndroid()) {\n // Android numeric has both a decimal point and minus key.\n // decimal does not have a minus key.\n if (hasNegative) {\n inputMode = 'numeric';\n } else if (hasDecimals) {\n inputMode = 'decimal';\n }\n }\n\n let onChange = value => {\n if (state.validate(value)) {\n state.setInputValue(value);\n }\n };\n\n let domProps = filterDOMProps(props);\n let onKeyDownEnter = useCallback((e) => {\n if (e.key === 'Enter') {\n commit();\n commitValidation();\n } else {\n e.continuePropagation();\n }\n }, [commit, commitValidation]);\n\n let {isInvalid, validationErrors, validationDetails} = state.displayValidation;\n let {labelProps, inputProps: textFieldProps, descriptionProps, errorMessageProps} = useFormattedTextField({\n ...otherProps,\n ...domProps,\n name: undefined,\n label,\n autoFocus,\n isDisabled,\n isReadOnly,\n isRequired,\n validate: undefined,\n [privateValidationStateProp]: state,\n value: inputValue,\n defaultValue: undefined, // defaultValue already used to populate state.inputValue, unneeded here\n autoComplete: 'off',\n 'aria-label': props['aria-label'] || undefined,\n 'aria-labelledby': props['aria-labelledby'] || undefined,\n id: inputId,\n type: 'text', // Can't use type=\"number\" because then we can't have things like $ in the field.\n inputMode,\n onChange,\n onBlur,\n onFocus,\n onFocusChange,\n onKeyDown: useMemo(() => chain(onKeyDownEnter, onKeyDown), [onKeyDownEnter, onKeyDown]),\n onKeyUp,\n description,\n errorMessage\n }, state, inputRef);\n\n useFormReset(inputRef, state.numberValue, state.setNumberValue);\n\n let inputProps: InputHTMLAttributes<HTMLInputElement> = mergeProps(\n spinButtonProps,\n focusProps,\n textFieldProps,\n {\n // override the spinbutton role, we can't focus a spin button with VO\n role: null,\n // ignore aria-roledescription on iOS so that required state will announce when it is present\n 'aria-roledescription': (!isIOS() ? stringFormatter.format('numberField') : null),\n 'aria-valuemax': null,\n 'aria-valuemin': null,\n 'aria-valuenow': null,\n 'aria-valuetext': null,\n autoCorrect: 'off',\n spellCheck: 'false'\n }\n );\n\n if (props.validationBehavior === 'native') {\n inputProps['aria-required'] = undefined;\n }\n\n let onButtonPressStart = (e) => {\n // If focus is already on the input, keep it there so we don't hide the\n // software keyboard when tapping the increment/decrement buttons.\n if (document.activeElement === inputRef.current) {\n return;\n }\n\n // Otherwise, when using a mouse, move focus to the input.\n // On touch, or with a screen reader, focus the button so that the software\n // keyboard does not appear and the screen reader cursor is not moved off the button.\n if (e.pointerType === 'mouse') {\n inputRef.current?.focus();\n } else {\n e.target.focus();\n }\n };\n\n // Determine the label for the increment and decrement buttons. There are 4 cases:\n //\n // 1. With a visible label that is a string: aria-label: `Increase ${props.label}`\n // 2. With a visible label that is JSX: aria-label: 'Increase', aria-labelledby: '${incrementId} ${labelId}'\n // 3. With an aria-label: aria-label: `Increase ${props['aria-label']}`\n // 4. With an aria-labelledby: aria-label: 'Increase', aria-labelledby: `${incrementId} ${props['aria-labelledby']}`\n //\n // (1) and (2) could possibly be combined and both use aria-labelledby. However, placing the label in\n // the aria-label string rather than using aria-labelledby gives more flexibility to translators to change\n // the order or add additional words around the label if needed.\n let fieldLabel = props['aria-label'] || (typeof props.label === 'string' ? props.label : '');\n let ariaLabelledby: string | undefined;\n if (!fieldLabel) {\n ariaLabelledby = props.label != null ? labelProps.id : props['aria-labelledby'];\n }\n\n let incrementId = useId();\n let decrementId = useId();\n\n let incrementButtonProps: AriaButtonProps = mergeProps(incButtonProps, {\n 'aria-label': incrementAriaLabel || stringFormatter.format('increase', {fieldLabel}).trim(),\n id: ariaLabelledby && !incrementAriaLabel ? incrementId : null,\n 'aria-labelledby': ariaLabelledby && !incrementAriaLabel ? `${incrementId} ${ariaLabelledby}` : null,\n 'aria-controls': inputId,\n excludeFromTabOrder: true,\n preventFocusOnPress: true,\n allowFocusWhenDisabled: true,\n isDisabled: !state.canIncrement,\n onPressStart: onButtonPressStart\n });\n\n let decrementButtonProps: AriaButtonProps = mergeProps(decButtonProps, {\n 'aria-label': decrementAriaLabel || stringFormatter.format('decrease', {fieldLabel}).trim(),\n id: ariaLabelledby && !decrementAriaLabel ? decrementId : null,\n 'aria-labelledby': ariaLabelledby && !decrementAriaLabel ? `${decrementId} ${ariaLabelledby}` : null,\n 'aria-controls': inputId,\n excludeFromTabOrder: true,\n preventFocusOnPress: true,\n allowFocusWhenDisabled: true,\n isDisabled: !state.canDecrement,\n onPressStart: onButtonPressStart\n });\n\n return {\n groupProps: {\n ...focusWithinProps,\n role: 'group',\n 'aria-disabled': isDisabled,\n 'aria-invalid': isInvalid ? 'true' : undefined\n },\n labelProps,\n inputProps,\n incrementButtonProps,\n decrementButtonProps,\n errorMessageProps,\n descriptionProps,\n isInvalid,\n validationErrors,\n validationDetails\n };\n}\n"],"names":[],"version":3,"file":"useNumberField.main.js.map"}
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;;;AAAA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YAAY,CAAC,EAAE,gBAAgB,GAAG;QAChG,iBAAiB;QACjB,qBAAqB;QACrB,qBAAqB;QACrB,wBAAwB;QACxB,YAAY,CAAC,MAAM,YAAY;QAC/B,cAAc;IAChB;IAEA,OAAO;QACL,YAAY;YACV,GAAG,gBAAgB;YACnB,MAAM;YACN,iBAAiB;YACjB,gBAAgB,YAAY,SAAS;QACvC;oBACA;oBACA;8BACA;8BACA;2BACA;0BACA;mBACA;0BACA;2BACA;IACF;AACF","sources":["packages/@react-aria/numberfield/src/useNumberField.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 {AriaButtonProps} from '@react-types/button';\nimport {AriaNumberFieldProps} from '@react-types/numberfield';\nimport {chain, filterDOMProps, isAndroid, isIOS, isIPhone, mergeProps, useFormReset, useId} from '@react-aria/utils';\nimport {DOMAttributes, GroupDOMAttributes, TextInputDOMProps, ValidationResult} from '@react-types/shared';\nimport {\n InputHTMLAttributes,\n LabelHTMLAttributes,\n RefObject,\n useCallback,\n useMemo,\n useState\n} from 'react';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {NumberFieldState} from '@react-stately/numberfield';\nimport {privateValidationStateProp} from '@react-stately/form';\nimport {useFocus, useFocusWithin, useScrollWheel} from '@react-aria/interactions';\nimport {useFormattedTextField} from '@react-aria/textfield';\nimport {\n useLocalizedStringFormatter,\n useNumberFormatter\n} from '@react-aria/i18n';\nimport {useSpinButton} from '@react-aria/spinbutton';\n\nexport interface NumberFieldAria extends ValidationResult {\n /** Props for the label element. */\n labelProps: LabelHTMLAttributes<HTMLLabelElement>,\n /** Props for the group wrapper around the input and stepper buttons. */\n groupProps: GroupDOMAttributes,\n /** Props for the input element. */\n inputProps: InputHTMLAttributes<HTMLInputElement>,\n /** Props for the increment button, to be passed to [useButton](useButton.html). */\n incrementButtonProps: AriaButtonProps,\n /** Props for the decrement button, to be passed to [useButton](useButton.html). */\n decrementButtonProps: AriaButtonProps,\n /** Props for the number field's description element, if any. */\n descriptionProps: DOMAttributes,\n /** Props for the number field's error message element, if any. */\n errorMessageProps: DOMAttributes\n}\n\n/**\n * Provides the behavior and accessibility implementation for a number field component.\n * Number fields allow users to enter a number, and increment or decrement the value using stepper buttons.\n */\nexport function useNumberField(props: AriaNumberFieldProps, state: NumberFieldState, inputRef: RefObject<HTMLInputElement | null>): NumberFieldAria {\n let {\n id,\n decrementAriaLabel,\n incrementAriaLabel,\n isDisabled,\n isReadOnly,\n isRequired,\n minValue,\n maxValue,\n autoFocus,\n label,\n formatOptions,\n onBlur = () => {},\n onFocus,\n onFocusChange,\n onKeyDown,\n onKeyUp,\n description,\n errorMessage,\n isWheelDisabled,\n ...otherProps\n } = props;\n\n let {\n increment,\n incrementToMax,\n decrement,\n decrementToMin,\n numberValue,\n inputValue,\n commit,\n commitValidation\n } = state;\n\n const stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-aria/numberfield');\n\n let inputId = useId(id);\n let {focusProps} = useFocus({\n onBlur() {\n // Set input value to normalized valid value\n commit();\n }\n });\n\n let numberFormatter = useNumberFormatter(formatOptions);\n let intlOptions = useMemo(() => numberFormatter.resolvedOptions(), [numberFormatter]);\n\n // Replace negative textValue formatted using currencySign: 'accounting'\n // with a textValue that can be announced using a minus sign.\n let textValueFormatter = useNumberFormatter({...formatOptions, currencySign: undefined});\n let textValue = useMemo(() => isNaN(numberValue) ? '' : textValueFormatter.format(numberValue), [textValueFormatter, numberValue]);\n\n let {\n spinButtonProps,\n incrementButtonProps: incButtonProps,\n decrementButtonProps: decButtonProps\n } = useSpinButton(\n {\n isDisabled,\n isReadOnly,\n isRequired,\n maxValue,\n minValue,\n onIncrement: increment,\n onIncrementToMax: incrementToMax,\n onDecrement: decrement,\n onDecrementToMin: decrementToMin,\n value: numberValue,\n textValue\n }\n );\n\n let [focusWithin, setFocusWithin] = useState(false);\n let {focusWithinProps} = useFocusWithin({isDisabled, onFocusWithinChange: setFocusWithin});\n\n let onWheel = useCallback((e) => {\n // if on a trackpad, users can scroll in both X and Y at once, check the magnitude of the change\n // if it's mostly in the X direction, then just return, the user probably doesn't mean to inc/dec\n // this isn't perfect, events come in fast with small deltas and a part of the scroll may give a false indication\n // especially if the user is scrolling near 45deg\n if (Math.abs(e.deltaY) <= Math.abs(e.deltaX)) {\n return;\n }\n if (e.deltaY > 0) {\n increment();\n } else if (e.deltaY < 0) {\n decrement();\n }\n }, [decrement, increment]);\n // If the input isn't supposed to receive input, disable scrolling.\n let scrollingDisabled = isWheelDisabled || isDisabled || isReadOnly || !focusWithin;\n useScrollWheel({onScroll: onWheel, isDisabled: scrollingDisabled}, inputRef);\n\n // The inputMode attribute influences the software keyboard that is shown on touch devices.\n // Browsers and operating systems are quite inconsistent about what keys are available, however.\n // We choose between numeric and decimal based on whether we allow negative and fractional numbers,\n // and based on testing on various devices to determine what keys are available in each inputMode.\n let hasDecimals = (intlOptions.maximumFractionDigits ?? 0) > 0;\n let hasNegative = (state.minValue === undefined || isNaN(state.minValue)) || state.minValue < 0;\n let inputMode: TextInputDOMProps['inputMode'] = 'numeric';\n if (isIPhone()) {\n // iPhone doesn't have a minus sign in either numeric or decimal.\n // Note this is only for iPhone, not iPad, which always has both\n // minus and decimal in numeric.\n if (hasNegative) {\n inputMode = 'text';\n } else if (hasDecimals) {\n inputMode = 'decimal';\n }\n } else if (isAndroid()) {\n // Android numeric has both a decimal point and minus key.\n // decimal does not have a minus key.\n if (hasNegative) {\n inputMode = 'numeric';\n } else if (hasDecimals) {\n inputMode = 'decimal';\n }\n }\n\n let onChange = value => {\n if (state.validate(value)) {\n state.setInputValue(value);\n }\n };\n\n let domProps = filterDOMProps(props);\n let onKeyDownEnter = useCallback((e) => {\n if (e.key === 'Enter') {\n commit();\n commitValidation();\n } else {\n e.continuePropagation();\n }\n }, [commit, commitValidation]);\n\n let {isInvalid, validationErrors, validationDetails} = state.displayValidation;\n let {labelProps, inputProps: textFieldProps, descriptionProps, errorMessageProps} = useFormattedTextField({\n ...otherProps,\n ...domProps,\n name: undefined,\n label,\n autoFocus,\n isDisabled,\n isReadOnly,\n isRequired,\n validate: undefined,\n [privateValidationStateProp]: state,\n value: inputValue,\n defaultValue: undefined, // defaultValue already used to populate state.inputValue, unneeded here\n autoComplete: 'off',\n 'aria-label': props['aria-label'] || undefined,\n 'aria-labelledby': props['aria-labelledby'] || undefined,\n id: inputId,\n type: 'text', // Can't use type=\"number\" because then we can't have things like $ in the field.\n inputMode,\n onChange,\n onBlur,\n onFocus,\n onFocusChange,\n onKeyDown: useMemo(() => chain(onKeyDownEnter, onKeyDown), [onKeyDownEnter, onKeyDown]),\n onKeyUp,\n description,\n errorMessage\n }, state, inputRef);\n\n useFormReset(inputRef, state.numberValue, state.setNumberValue);\n\n let inputProps: InputHTMLAttributes<HTMLInputElement> = mergeProps(\n spinButtonProps,\n focusProps,\n textFieldProps,\n {\n // override the spinbutton role, we can't focus a spin button with VO\n role: null,\n // ignore aria-roledescription on iOS so that required state will announce when it is present\n 'aria-roledescription': (!isIOS() ? stringFormatter.format('numberField') : null),\n 'aria-valuemax': null,\n 'aria-valuemin': null,\n 'aria-valuenow': null,\n 'aria-valuetext': null,\n autoCorrect: 'off',\n spellCheck: 'false'\n }\n );\n\n if (props.validationBehavior === 'native') {\n inputProps['aria-required'] = undefined;\n }\n\n let onButtonPressStart = (e) => {\n // If focus is already on the input, keep it there so we don't hide the\n // software keyboard when tapping the increment/decrement buttons.\n if (document.activeElement === inputRef.current) {\n return;\n }\n\n // Otherwise, when using a mouse, move focus to the input.\n // On touch, or with a screen reader, focus the button so that the software\n // keyboard does not appear and the screen reader cursor is not moved off the button.\n if (e.pointerType === 'mouse') {\n inputRef.current?.focus();\n } else {\n e.target.focus();\n }\n };\n\n // Determine the label for the increment and decrement buttons. There are 4 cases:\n //\n // 1. With a visible label that is a string: aria-label: `Increase ${props.label}`\n // 2. With a visible label that is JSX: aria-label: 'Increase', aria-labelledby: '${incrementId} ${labelId}'\n // 3. With an aria-label: aria-label: `Increase ${props['aria-label']}`\n // 4. With an aria-labelledby: aria-label: 'Increase', aria-labelledby: `${incrementId} ${props['aria-labelledby']}`\n //\n // (1) and (2) could possibly be combined and both use aria-labelledby. However, placing the label in\n // the aria-label string rather than using aria-labelledby gives more flexibility to translators to change\n // the order or add additional words around the label if needed.\n let fieldLabel = props['aria-label'] || (typeof props.label === 'string' ? props.label : '');\n let ariaLabelledby: string | undefined;\n if (!fieldLabel) {\n ariaLabelledby = props.label != null ? labelProps.id : props['aria-labelledby'];\n }\n\n let incrementId = useId();\n let decrementId = useId();\n\n let incrementButtonProps: AriaButtonProps = mergeProps(incButtonProps, {\n 'aria-label': incrementAriaLabel || stringFormatter.format('increase', {fieldLabel}).trim(),\n id: ariaLabelledby && !incrementAriaLabel ? incrementId : null,\n 'aria-labelledby': ariaLabelledby && !incrementAriaLabel ? `${incrementId} ${ariaLabelledby}` : null,\n 'aria-controls': inputId,\n excludeFromTabOrder: true,\n preventFocusOnPress: true,\n allowFocusWhenDisabled: true,\n isDisabled: !state.canIncrement,\n onPressStart: onButtonPressStart\n });\n\n let decrementButtonProps: AriaButtonProps = mergeProps(decButtonProps, {\n 'aria-label': decrementAriaLabel || stringFormatter.format('decrease', {fieldLabel}).trim(),\n id: ariaLabelledby && !decrementAriaLabel ? decrementId : null,\n 'aria-labelledby': ariaLabelledby && !decrementAriaLabel ? `${decrementId} ${ariaLabelledby}` : null,\n 'aria-controls': inputId,\n excludeFromTabOrder: true,\n preventFocusOnPress: true,\n allowFocusWhenDisabled: true,\n isDisabled: !state.canDecrement,\n onPressStart: onButtonPressStart\n });\n\n return {\n groupProps: {\n ...focusWithinProps,\n role: 'group',\n 'aria-disabled': isDisabled,\n 'aria-invalid': isInvalid ? 'true' : undefined\n },\n labelProps,\n inputProps,\n incrementButtonProps,\n decrementButtonProps,\n errorMessageProps,\n descriptionProps,\n isInvalid,\n validationErrors,\n validationDetails\n };\n}\n"],"names":[],"version":3,"file":"useNumberField.main.js.map"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;AA+CM,SAAS,0CAAe,KAA2B,EAAE,KAAuB,EAAE,QAA4C;IAC/H,IAAI,MACF,EAAE,sBACF,kBAAkB,sBAClB,kBAAkB,cAClB,UAAU,cACV,UAAU,cACV,UAAU,YACV,QAAQ,YACR,QAAQ,aACR,SAAS,SACT,KAAK,iBACL,aAAa,UACb,SAAS,KAAO,YAChB,OAAO,iBACP,aAAa,aACb,SAAS,WACT,OAAO,eACP,WAAW,gBACX,YAAY,mBACZ,eAAe,EACf,GAAG,YACJ,GAAG;IAEJ,IAAI,aACF,SAAS,kBACT,cAAc,aACd,SAAS,kBACT,cAAc,eACd,WAAW,cACX,UAAU,UACV,MAAM,oBACN,gBAAgB,EACjB,GAAG;IAEJ,MAAM,kBAAkB,CAAA,GAAA,kCAA0B,EAAE,CAAA,GAAA,oDAAW,GAAG;IAElE,IAAI,UAAU,CAAA,GAAA,YAAI,EAAE;IACpB,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,eAAO,EAAE;QAC1B;YACE,4CAA4C;YAC5C;QACF;IACF;IAEA,IAAI,kBAAkB,CAAA,GAAA,yBAAiB,EAAE;IACzC,IAAI,cAAc,CAAA,GAAA,cAAM,EAAE,IAAM,gBAAgB,eAAe,IAAI;QAAC;KAAgB;IAEpF,wEAAwE;IACxE,6DAA6D;IAC7D,IAAI,qBAAqB,CAAA,GAAA,yBAAiB,EAAE;QAAC,GAAG,aAAa;QAAE,cAAc;IAAS;IACtF,IAAI,YAAY,CAAA,G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AAqB;QACrB,wBAAwB;QACxB,YAAY,CAAC,MAAM,YAAY;QAC/B,cAAc;IAChB;IAEA,IAAI,uBAAwC,CAAA,GAAA,iBAAS,EAAE,gBAAgB;QACrE,cAAc,sBAAsB,gBAAgB,MAAM,CAAC,YAAY;wBAAC;QAAU,GAAG,IAAI;QACzF,IAAI,kBAAkB,CAAC,qBAAqB,cAAc;QAC1D,mBAAmB,kBAAkB,CAAC,qBAAqB,CAAC,EAAE,YAAY,CAAC,EAAE,eAAe,CAAC,GAAG;QAChG,iBAAiB;QACjB,qBAAqB;QACrB,qBAAqB;QACrB,wBAAwB;QACxB,YAAY,CAAC,MAAM,YAAY;QAC/B,cAAc;IAChB;IAEA,OAAO;QACL,YAAY;YACV,GAAG,gBAAgB;YACnB,MAAM;YACN,iBAAiB;YACjB,gBAAgB,YAAY,SAAS;QACvC;oBACA;oBACA;8BACA;8BACA;2BACA;0BACA;mBACA;0BACA;2BACA;IACF;AACF","sources":["packages/@react-aria/numberfield/src/useNumberField.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 {AriaButtonProps} from '@react-types/button';\nimport {AriaNumberFieldProps} from '@react-types/numberfield';\nimport {chain, filterDOMProps, isAndroid, isIOS, isIPhone, mergeProps, useFormReset, useId} from '@react-aria/utils';\nimport {DOMAttributes, GroupDOMAttributes, TextInputDOMProps, ValidationResult} from '@react-types/shared';\nimport {\n InputHTMLAttributes,\n LabelHTMLAttributes,\n RefObject,\n useCallback,\n useMemo,\n useState\n} from 'react';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {NumberFieldState} from '@react-stately/numberfield';\nimport {privateValidationStateProp} from '@react-stately/form';\nimport {useFocus, useFocusWithin, useScrollWheel} from '@react-aria/interactions';\nimport {useFormattedTextField} from '@react-aria/textfield';\nimport {\n useLocalizedStringFormatter,\n useNumberFormatter\n} from '@react-aria/i18n';\nimport {useSpinButton} from '@react-aria/spinbutton';\n\nexport interface NumberFieldAria extends ValidationResult {\n /** Props for the label element. */\n labelProps: LabelHTMLAttributes<HTMLLabelElement>,\n /** Props for the group wrapper around the input and stepper buttons. */\n groupProps: GroupDOMAttributes,\n /** Props for the input element. */\n inputProps: InputHTMLAttributes<HTMLInputElement>,\n /** Props for the increment button, to be passed to [useButton](useButton.html). */\n incrementButtonProps: AriaButtonProps,\n /** Props for the decrement button, to be passed to [useButton](useButton.html). */\n decrementButtonProps: AriaButtonProps,\n /** Props for the number field's description element, if any. */\n descriptionProps: DOMAttributes,\n /** Props for the number field's error message element, if any. */\n errorMessageProps: DOMAttributes\n}\n\n/**\n * Provides the behavior and accessibility implementation for a number field component.\n * Number fields allow users to enter a number, and increment or decrement the value using stepper buttons.\n */\nexport function useNumberField(props: AriaNumberFieldProps, state: NumberFieldState, inputRef: RefObject<HTMLInputElement | null>): NumberFieldAria {\n let {\n id,\n decrementAriaLabel,\n incrementAriaLabel,\n isDisabled,\n isReadOnly,\n isRequired,\n minValue,\n maxValue,\n autoFocus,\n label,\n formatOptions,\n onBlur = () => {},\n onFocus,\n onFocusChange,\n onKeyDown,\n onKeyUp,\n description,\n errorMessage,\n isWheelDisabled,\n ...otherProps\n } = props;\n\n let {\n increment,\n incrementToMax,\n decrement,\n decrementToMin,\n numberValue,\n inputValue,\n commit,\n commitValidation\n } = state;\n\n const stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-aria/numberfield');\n\n let inputId = useId(id);\n let {focusProps} = useFocus({\n onBlur() {\n // Set input value to normalized valid value\n commit();\n }\n });\n\n let numberFormatter = useNumberFormatter(formatOptions);\n let intlOptions = useMemo(() => numberFormatter.resolvedOptions(), [numberFormatter]);\n\n // Replace negative textValue formatted using currencySign: 'accounting'\n // with a textValue that can be announced using a minus sign.\n let textValueFormatter = useNumberFormatter({...formatOptions, currencySign: undefined});\n let textValue = useMemo(() => isNaN(numberValue) ? '' : textValueFormatter.format(numberValue), [textValueFormatter, numberValue]);\n\n let {\n spinButtonProps,\n incrementButtonProps: incButtonProps,\n decrementButtonProps: decButtonProps\n } = useSpinButton(\n {\n isDisabled,\n isReadOnly,\n isRequired,\n maxValue,\n minValue,\n onIncrement: increment,\n onIncrementToMax: incrementToMax,\n onDecrement: decrement,\n onDecrementToMin: decrementToMin,\n value: numberValue,\n textValue\n }\n );\n\n let [focusWithin, setFocusWithin] = useState(false);\n let {focusWithinProps} = useFocusWithin({isDisabled, onFocusWithinChange: setFocusWithin});\n\n let onWheel = useCallback((e) => {\n // if on a trackpad, users can scroll in both X and Y at once, check the magnitude of the change\n // if it's mostly in the X direction, then just return, the user probably doesn't mean to inc/dec\n // this isn't perfect, events come in fast with small deltas and a part of the scroll may give a false indication\n // especially if the user is scrolling near 45deg\n if (Math.abs(e.deltaY) <= Math.abs(e.deltaX)) {\n return;\n }\n if (e.deltaY > 0) {\n increment();\n } else if (e.deltaY < 0) {\n decrement();\n }\n }, [decrement, increment]);\n // If the input isn't supposed to receive input, disable scrolling.\n let scrollingDisabled = isWheelDisabled || isDisabled || isReadOnly || !focusWithin;\n useScrollWheel({onScroll: onWheel, isDisabled: scrollingDisabled}, inputRef);\n\n // The inputMode attribute influences the software keyboard that is shown on touch devices.\n // Browsers and operating systems are quite inconsistent about what keys are available, however.\n // We choose between numeric and decimal based on whether we allow negative and fractional numbers,\n // and based on testing on various devices to determine what keys are available in each inputMode.\n let hasDecimals = (intlOptions.maximumFractionDigits ?? 0) > 0;\n let hasNegative = (state.minValue === undefined || isNaN(state.minValue)) || state.minValue < 0;\n let inputMode: TextInputDOMProps['inputMode'] = 'numeric';\n if (isIPhone()) {\n // iPhone doesn't have a minus sign in either numeric or decimal.\n // Note this is only for iPhone, not iPad, which always has both\n // minus and decimal in numeric.\n if (hasNegative) {\n inputMode = 'text';\n } else if (hasDecimals) {\n inputMode = 'decimal';\n }\n } else if (isAndroid()) {\n // Android numeric has both a decimal point and minus key.\n // decimal does not have a minus key.\n if (hasNegative) {\n inputMode = 'numeric';\n } else if (hasDecimals) {\n inputMode = 'decimal';\n }\n }\n\n let onChange = value => {\n if (state.validate(value)) {\n state.setInputValue(value);\n }\n };\n\n let domProps = filterDOMProps(props);\n let onKeyDownEnter = useCallback((e) => {\n if (e.key === 'Enter') {\n commit();\n commitValidation();\n } else {\n e.continuePropagation();\n }\n }, [commit, commitValidation]);\n\n let {isInvalid, validationErrors, validationDetails} = state.displayValidation;\n let {labelProps, inputProps: textFieldProps, descriptionProps, errorMessageProps} = useFormattedTextField({\n ...otherProps,\n ...domProps,\n name: undefined,\n label,\n autoFocus,\n isDisabled,\n isReadOnly,\n isRequired,\n validate: undefined,\n [privateValidationStateProp]: state,\n value: inputValue,\n defaultValue: undefined, // defaultValue already used to populate state.inputValue, unneeded here\n autoComplete: 'off',\n 'aria-label': props['aria-label'] || undefined,\n 'aria-labelledby': props['aria-labelledby'] || undefined,\n id: inputId,\n type: 'text', // Can't use type=\"number\" because then we can't have things like $ in the field.\n inputMode,\n onChange,\n onBlur,\n onFocus,\n onFocusChange,\n onKeyDown: useMemo(() => chain(onKeyDownEnter, onKeyDown), [onKeyDownEnter, onKeyDown]),\n onKeyUp,\n description,\n errorMessage\n }, state, inputRef);\n\n useFormReset(inputRef, state.numberValue, state.setNumberValue);\n\n let inputProps: InputHTMLAttributes<HTMLInputElement> = mergeProps(\n spinButtonProps,\n focusProps,\n textFieldProps,\n {\n // override the spinbutton role, we can't focus a spin button with VO\n role: null,\n // ignore aria-roledescription on iOS so that required state will announce when it is present\n 'aria-roledescription': (!isIOS() ? stringFormatter.format('numberField') : null),\n 'aria-valuemax': null,\n 'aria-valuemin': null,\n 'aria-valuenow': null,\n 'aria-valuetext': null,\n autoCorrect: 'off',\n spellCheck: 'false'\n }\n );\n\n if (props.validationBehavior === 'native') {\n inputProps['aria-required'] = undefined;\n }\n\n let onButtonPressStart = (e) => {\n // If focus is already on the input, keep it there so we don't hide the\n // software keyboard when tapping the increment/decrement buttons.\n if (document.activeElement === inputRef.current) {\n return;\n }\n\n // Otherwise, when using a mouse, move focus to the input.\n // On touch, or with a screen reader, focus the button so that the software\n // keyboard does not appear and the screen reader cursor is not moved off the button.\n if (e.pointerType === 'mouse') {\n inputRef.current?.focus();\n } else {\n e.target.focus();\n }\n };\n\n // Determine the label for the increment and decrement buttons. There are 4 cases:\n //\n // 1. With a visible label that is a string: aria-label: `Increase ${props.label}`\n // 2. With a visible label that is JSX: aria-label: 'Increase', aria-labelledby: '${incrementId} ${labelId}'\n // 3. With an aria-label: aria-label: `Increase ${props['aria-label']}`\n // 4. With an aria-labelledby: aria-label: 'Increase', aria-labelledby: `${incrementId} ${props['aria-labelledby']}`\n //\n // (1) and (2) could possibly be combined and both use aria-labelledby. However, placing the label in\n // the aria-label string rather than using aria-labelledby gives more flexibility to translators to change\n // the order or add additional words around the label if needed.\n let fieldLabel = props['aria-label'] || (typeof props.label === 'string' ? props.label : '');\n let ariaLabelledby: string | undefined;\n if (!fieldLabel) {\n ariaLabelledby = props.label != null ? labelProps.id : props['aria-labelledby'];\n }\n\n let incrementId = useId();\n let decrementId = useId();\n\n let incrementButtonProps: AriaButtonProps = mergeProps(incButtonProps, {\n 'aria-label': incrementAriaLabel || stringFormatter.format('increase', {fieldLabel}).trim(),\n id: ariaLabelledby && !incrementAriaLabel ? incrementId : null,\n 'aria-labelledby': ariaLabelledby && !incrementAriaLabel ? `${incrementId} ${ariaLabelledby}` : null,\n 'aria-controls': inputId,\n excludeFromTabOrder: true,\n preventFocusOnPress: true,\n allowFocusWhenDisabled: true,\n isDisabled: !state.canIncrement,\n onPressStart: onButtonPressStart\n });\n\n let decrementButtonProps: AriaButtonProps = mergeProps(decButtonProps, {\n 'aria-label': decrementAriaLabel || stringFormatter.format('decrease', {fieldLabel}).trim(),\n id: ariaLabelledby && !decrementAriaLabel ? decrementId : null,\n 'aria-labelledby': ariaLabelledby && !decrementAriaLabel ? `${decrementId} ${ariaLabelledby}` : null,\n 'aria-controls': inputId,\n excludeFromTabOrder: true,\n preventFocusOnPress: true,\n allowFocusWhenDisabled: true,\n isDisabled: !state.canDecrement,\n onPressStart: onButtonPressStart\n });\n\n return {\n groupProps: {\n ...focusWithinProps,\n role: 'group',\n 'aria-disabled': isDisabled,\n 'aria-invalid': isInvalid ? 'true' : undefined\n },\n labelProps,\n inputProps,\n incrementButtonProps,\n decrementButtonProps,\n errorMessageProps,\n descriptionProps,\n isInvalid,\n validationErrors,\n validationDetails\n };\n}\n"],"names":[],"version":3,"file":"useNumberField.module.js.map"}
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;AA+CM,SAAS,0CAAe,KAA2B,EAAE,KAAuB,EAAE,QAA4C;IAC/H,IAAI,MACF,EAAE,sBACF,kBAAkB,sBAClB,kBAAkB,cAClB,UAAU,cACV,UAAU,cACV,UAAU,YACV,QAAQ,YACR,QAAQ,aACR,SAAS,SACT,KAAK,iBACL,aAAa,UACb,SAAS,KAAO,YAChB,OAAO,iBACP,aAAa,aACb,SAAS,WACT,OAAO,eACP,WAAW,gBACX,YAAY,mBACZ,eAAe,EACf,GAAG,YACJ,GAAG;IAEJ,IAAI,aACF,SAAS,kBACT,cAAc,aACd,SAAS,kBACT,cAAc,eACd,WAAW,cACX,UAAU,UACV,MAAM,oBACN,gBAAgB,EACjB,GAAG;IAEJ,MAAM,kBAAkB,CAAA,GAAA,kCAA0B,EAAE,CAAA,GAAA,oDAAW,GAAG;IAElE,IAAI,UAAU,CAAA,GAAA,YAAI,EAAE;IACpB,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,eAAO,EAAE;QAC1B;YACE,4CAA4C;YAC5C;QACF;IACF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AAA,GAAA,iBAAS,EAAE,gBAAgB;QACrE,cAAc,sBAAsB,gBAAgB,MAAM,CAAC,YAAY;wBAAC;QAAU,GAAG,IAAI;QACzF,IAAI,kBAAkB,CAAC,qBAAqB,cAAc;QAC1D,mBAAmB,kBAAkB,CAAC,qBAAqB,GAAG,YAAY,CAAC,EAAE,gBAAgB,GAAG;QAChG,iBAAiB;QACjB,qBAAqB;QACrB,qBAAqB;QACrB,wBAAwB;QACxB,YAAY,CAAC,MAAM,YAAY;QAC/B,cAAc;IAChB;IAEA,IAAI,uBAAwC,CAAA,GAAA,iBAAS,EAAE,gBAAgB;QACrE,cAAc,sBAAsB,gBAAgB,MAAM,CAAC,YAAY;wBAAC;QAAU,GAAG,IAAI;QACzF,IAAI,kBAAkB,CAAC,qBAAqB,cAAc;QAC1D,mBAAmB,kBAAkB,CAAC,qBAAqB,GAAG,YAAY,CAAC,EAAE,gBAAgB,GAAG;QAChG,iBAAiB;QACjB,qBAAqB;QACrB,qBAAqB;QACrB,wBAAwB;QACxB,YAAY,CAAC,MAAM,YAAY;QAC/B,cAAc;IAChB;IAEA,OAAO;QACL,YAAY;YACV,GAAG,gBAAgB;YACnB,MAAM;YACN,iBAAiB;YACjB,gBAAgB,YAAY,SAAS;QACvC;oBACA;oBACA;8BACA;8BACA;2BACA;0BACA;mBACA;0BACA;2BACA;IACF;AACF","sources":["packages/@react-aria/numberfield/src/useNumberField.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 {AriaButtonProps} from '@react-types/button';\nimport {AriaNumberFieldProps} from '@react-types/numberfield';\nimport {chain, filterDOMProps, isAndroid, isIOS, isIPhone, mergeProps, useFormReset, useId} from '@react-aria/utils';\nimport {DOMAttributes, GroupDOMAttributes, TextInputDOMProps, ValidationResult} from '@react-types/shared';\nimport {\n InputHTMLAttributes,\n LabelHTMLAttributes,\n RefObject,\n useCallback,\n useMemo,\n useState\n} from 'react';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {NumberFieldState} from '@react-stately/numberfield';\nimport {privateValidationStateProp} from '@react-stately/form';\nimport {useFocus, useFocusWithin, useScrollWheel} from '@react-aria/interactions';\nimport {useFormattedTextField} from '@react-aria/textfield';\nimport {\n useLocalizedStringFormatter,\n useNumberFormatter\n} from '@react-aria/i18n';\nimport {useSpinButton} from '@react-aria/spinbutton';\n\nexport interface NumberFieldAria extends ValidationResult {\n /** Props for the label element. */\n labelProps: LabelHTMLAttributes<HTMLLabelElement>,\n /** Props for the group wrapper around the input and stepper buttons. */\n groupProps: GroupDOMAttributes,\n /** Props for the input element. */\n inputProps: InputHTMLAttributes<HTMLInputElement>,\n /** Props for the increment button, to be passed to [useButton](useButton.html). */\n incrementButtonProps: AriaButtonProps,\n /** Props for the decrement button, to be passed to [useButton](useButton.html). */\n decrementButtonProps: AriaButtonProps,\n /** Props for the number field's description element, if any. */\n descriptionProps: DOMAttributes,\n /** Props for the number field's error message element, if any. */\n errorMessageProps: DOMAttributes\n}\n\n/**\n * Provides the behavior and accessibility implementation for a number field component.\n * Number fields allow users to enter a number, and increment or decrement the value using stepper buttons.\n */\nexport function useNumberField(props: AriaNumberFieldProps, state: NumberFieldState, inputRef: RefObject<HTMLInputElement | null>): NumberFieldAria {\n let {\n id,\n decrementAriaLabel,\n incrementAriaLabel,\n isDisabled,\n isReadOnly,\n isRequired,\n minValue,\n maxValue,\n autoFocus,\n label,\n formatOptions,\n onBlur = () => {},\n onFocus,\n onFocusChange,\n onKeyDown,\n onKeyUp,\n description,\n errorMessage,\n isWheelDisabled,\n ...otherProps\n } = props;\n\n let {\n increment,\n incrementToMax,\n decrement,\n decrementToMin,\n numberValue,\n inputValue,\n commit,\n commitValidation\n } = state;\n\n const stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-aria/numberfield');\n\n let inputId = useId(id);\n let {focusProps} = useFocus({\n onBlur() {\n // Set input value to normalized valid value\n commit();\n }\n });\n\n let numberFormatter = useNumberFormatter(formatOptions);\n let intlOptions = useMemo(() => numberFormatter.resolvedOptions(), [numberFormatter]);\n\n // Replace negative textValue formatted using currencySign: 'accounting'\n // with a textValue that can be announced using a minus sign.\n let textValueFormatter = useNumberFormatter({...formatOptions, currencySign: undefined});\n let textValue = useMemo(() => isNaN(numberValue) ? '' : textValueFormatter.format(numberValue), [textValueFormatter, numberValue]);\n\n let {\n spinButtonProps,\n incrementButtonProps: incButtonProps,\n decrementButtonProps: decButtonProps\n } = useSpinButton(\n {\n isDisabled,\n isReadOnly,\n isRequired,\n maxValue,\n minValue,\n onIncrement: increment,\n onIncrementToMax: incrementToMax,\n onDecrement: decrement,\n onDecrementToMin: decrementToMin,\n value: numberValue,\n textValue\n }\n );\n\n let [focusWithin, setFocusWithin] = useState(false);\n let {focusWithinProps} = useFocusWithin({isDisabled, onFocusWithinChange: setFocusWithin});\n\n let onWheel = useCallback((e) => {\n // if on a trackpad, users can scroll in both X and Y at once, check the magnitude of the change\n // if it's mostly in the X direction, then just return, the user probably doesn't mean to inc/dec\n // this isn't perfect, events come in fast with small deltas and a part of the scroll may give a false indication\n // especially if the user is scrolling near 45deg\n if (Math.abs(e.deltaY) <= Math.abs(e.deltaX)) {\n return;\n }\n if (e.deltaY > 0) {\n increment();\n } else if (e.deltaY < 0) {\n decrement();\n }\n }, [decrement, increment]);\n // If the input isn't supposed to receive input, disable scrolling.\n let scrollingDisabled = isWheelDisabled || isDisabled || isReadOnly || !focusWithin;\n useScrollWheel({onScroll: onWheel, isDisabled: scrollingDisabled}, inputRef);\n\n // The inputMode attribute influences the software keyboard that is shown on touch devices.\n // Browsers and operating systems are quite inconsistent about what keys are available, however.\n // We choose between numeric and decimal based on whether we allow negative and fractional numbers,\n // and based on testing on various devices to determine what keys are available in each inputMode.\n let hasDecimals = (intlOptions.maximumFractionDigits ?? 0) > 0;\n let hasNegative = (state.minValue === undefined || isNaN(state.minValue)) || state.minValue < 0;\n let inputMode: TextInputDOMProps['inputMode'] = 'numeric';\n if (isIPhone()) {\n // iPhone doesn't have a minus sign in either numeric or decimal.\n // Note this is only for iPhone, not iPad, which always has both\n // minus and decimal in numeric.\n if (hasNegative) {\n inputMode = 'text';\n } else if (hasDecimals) {\n inputMode = 'decimal';\n }\n } else if (isAndroid()) {\n // Android numeric has both a decimal point and minus key.\n // decimal does not have a minus key.\n if (hasNegative) {\n inputMode = 'numeric';\n } else if (hasDecimals) {\n inputMode = 'decimal';\n }\n }\n\n let onChange = value => {\n if (state.validate(value)) {\n state.setInputValue(value);\n }\n };\n\n let domProps = filterDOMProps(props);\n let onKeyDownEnter = useCallback((e) => {\n if (e.key === 'Enter') {\n commit();\n commitValidation();\n } else {\n e.continuePropagation();\n }\n }, [commit, commitValidation]);\n\n let {isInvalid, validationErrors, validationDetails} = state.displayValidation;\n let {labelProps, inputProps: textFieldProps, descriptionProps, errorMessageProps} = useFormattedTextField({\n ...otherProps,\n ...domProps,\n name: undefined,\n label,\n autoFocus,\n isDisabled,\n isReadOnly,\n isRequired,\n validate: undefined,\n [privateValidationStateProp]: state,\n value: inputValue,\n defaultValue: undefined, // defaultValue already used to populate state.inputValue, unneeded here\n autoComplete: 'off',\n 'aria-label': props['aria-label'] || undefined,\n 'aria-labelledby': props['aria-labelledby'] || undefined,\n id: inputId,\n type: 'text', // Can't use type=\"number\" because then we can't have things like $ in the field.\n inputMode,\n onChange,\n onBlur,\n onFocus,\n onFocusChange,\n onKeyDown: useMemo(() => chain(onKeyDownEnter, onKeyDown), [onKeyDownEnter, onKeyDown]),\n onKeyUp,\n description,\n errorMessage\n }, state, inputRef);\n\n useFormReset(inputRef, state.numberValue, state.setNumberValue);\n\n let inputProps: InputHTMLAttributes<HTMLInputElement> = mergeProps(\n spinButtonProps,\n focusProps,\n textFieldProps,\n {\n // override the spinbutton role, we can't focus a spin button with VO\n role: null,\n // ignore aria-roledescription on iOS so that required state will announce when it is present\n 'aria-roledescription': (!isIOS() ? stringFormatter.format('numberField') : null),\n 'aria-valuemax': null,\n 'aria-valuemin': null,\n 'aria-valuenow': null,\n 'aria-valuetext': null,\n autoCorrect: 'off',\n spellCheck: 'false'\n }\n );\n\n if (props.validationBehavior === 'native') {\n inputProps['aria-required'] = undefined;\n }\n\n let onButtonPressStart = (e) => {\n // If focus is already on the input, keep it there so we don't hide the\n // software keyboard when tapping the increment/decrement buttons.\n if (document.activeElement === inputRef.current) {\n return;\n }\n\n // Otherwise, when using a mouse, move focus to the input.\n // On touch, or with a screen reader, focus the button so that the software\n // keyboard does not appear and the screen reader cursor is not moved off the button.\n if (e.pointerType === 'mouse') {\n inputRef.current?.focus();\n } else {\n e.target.focus();\n }\n };\n\n // Determine the label for the increment and decrement buttons. There are 4 cases:\n //\n // 1. With a visible label that is a string: aria-label: `Increase ${props.label}`\n // 2. With a visible label that is JSX: aria-label: 'Increase', aria-labelledby: '${incrementId} ${labelId}'\n // 3. With an aria-label: aria-label: `Increase ${props['aria-label']}`\n // 4. With an aria-labelledby: aria-label: 'Increase', aria-labelledby: `${incrementId} ${props['aria-labelledby']}`\n //\n // (1) and (2) could possibly be combined and both use aria-labelledby. However, placing the label in\n // the aria-label string rather than using aria-labelledby gives more flexibility to translators to change\n // the order or add additional words around the label if needed.\n let fieldLabel = props['aria-label'] || (typeof props.label === 'string' ? props.label : '');\n let ariaLabelledby: string | undefined;\n if (!fieldLabel) {\n ariaLabelledby = props.label != null ? labelProps.id : props['aria-labelledby'];\n }\n\n let incrementId = useId();\n let decrementId = useId();\n\n let incrementButtonProps: AriaButtonProps = mergeProps(incButtonProps, {\n 'aria-label': incrementAriaLabel || stringFormatter.format('increase', {fieldLabel}).trim(),\n id: ariaLabelledby && !incrementAriaLabel ? incrementId : null,\n 'aria-labelledby': ariaLabelledby && !incrementAriaLabel ? `${incrementId} ${ariaLabelledby}` : null,\n 'aria-controls': inputId,\n excludeFromTabOrder: true,\n preventFocusOnPress: true,\n allowFocusWhenDisabled: true,\n isDisabled: !state.canIncrement,\n onPressStart: onButtonPressStart\n });\n\n let decrementButtonProps: AriaButtonProps = mergeProps(decButtonProps, {\n 'aria-label': decrementAriaLabel || stringFormatter.format('decrease', {fieldLabel}).trim(),\n id: ariaLabelledby && !decrementAriaLabel ? decrementId : null,\n 'aria-labelledby': ariaLabelledby && !decrementAriaLabel ? `${decrementId} ${ariaLabelledby}` : null,\n 'aria-controls': inputId,\n excludeFromTabOrder: true,\n preventFocusOnPress: true,\n allowFocusWhenDisabled: true,\n isDisabled: !state.canDecrement,\n onPressStart: onButtonPressStart\n });\n\n return {\n groupProps: {\n ...focusWithinProps,\n role: 'group',\n 'aria-disabled': isDisabled,\n 'aria-invalid': isInvalid ? 'true' : undefined\n },\n labelProps,\n inputProps,\n incrementButtonProps,\n decrementButtonProps,\n errorMessageProps,\n descriptionProps,\n isInvalid,\n validationErrors,\n validationDetails\n };\n}\n"],"names":[],"version":3,"file":"useNumberField.module.js.map"}
|
package/dist/zh-CN.main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,iBAAG,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,iBAAG,EAAE,KAAK,UAAU,EAAE;IAC/D,YAAY,CAAC,OAAS,CAAC,iBAAG,EAAE,KAAK,UAAU,EAAE;IAC7C,eAAe,CAAC,gCAAI,CAAC;AACvB","sources":["packages/@react-aria/numberfield/intl/zh-CN.json"],"sourcesContent":["{\n \"decrease\": \"降低 {fieldLabel}\",\n \"increase\": \"提高 {fieldLabel}\",\n \"numberField\": \"数字字段\"\n}\n"],"names":[],"version":3,"file":"zh-CN.main.js.map"}
|
package/dist/zh-CN.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,iBAAG,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,iBAAG,EAAE,KAAK,UAAU,EAAE;IAC/D,YAAY,CAAC,OAAS,CAAC,iBAAG,EAAE,KAAK,UAAU,EAAE;IAC7C,eAAe,CAAC,gCAAI,CAAC;AACvB","sources":["packages/@react-aria/numberfield/intl/zh-CN.json"],"sourcesContent":["{\n \"decrease\": \"降低 {fieldLabel}\",\n \"increase\": \"提高 {fieldLabel}\",\n \"numberField\": \"数字字段\"\n}\n"],"names":[],"version":3,"file":"zh-CN.module.js.map"}
|
package/dist/zh-TW.main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,iBAAG,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,iBAAG,EAAE,KAAK,UAAU,EAAE;IAC/D,YAAY,CAAC,OAAS,CAAC,iBAAG,EAAE,KAAK,UAAU,EAAE;IAC7C,eAAe,CAAC,gCAAI,CAAC;AACvB","sources":["packages/@react-aria/numberfield/intl/zh-TW.json"],"sourcesContent":["{\n \"decrease\": \"縮小 {fieldLabel}\",\n \"increase\": \"放大 {fieldLabel}\",\n \"numberField\": \"數字欄位\"\n}\n"],"names":[],"version":3,"file":"zh-TW.main.js.map"}
|
package/dist/zh-TW.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,iBAAG,EAAE,KAAK,UAAU,
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,YAAY,CAAC,OAAS,CAAC,iBAAG,EAAE,KAAK,UAAU,EAAE;IAC/D,YAAY,CAAC,OAAS,CAAC,iBAAG,EAAE,KAAK,UAAU,EAAE;IAC7C,eAAe,CAAC,gCAAI,CAAC;AACvB","sources":["packages/@react-aria/numberfield/intl/zh-TW.json"],"sourcesContent":["{\n \"decrease\": \"縮小 {fieldLabel}\",\n \"increase\": \"放大 {fieldLabel}\",\n \"numberField\": \"數字欄位\"\n}\n"],"names":[],"version":3,"file":"zh-TW.module.js.map"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-aria/numberfield",
|
|
3
|
-
"version": "3.11.
|
|
3
|
+
"version": "3.11.10",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -22,24 +22,24 @@
|
|
|
22
22
|
"url": "https://github.com/adobe/react-spectrum"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@react-aria/i18n": "^3.12.
|
|
26
|
-
"@react-aria/interactions": "^3.
|
|
27
|
-
"@react-aria/spinbutton": "^3.6.
|
|
28
|
-
"@react-aria/textfield": "^3.
|
|
29
|
-
"@react-aria/utils": "^3.
|
|
30
|
-
"@react-stately/form": "^3.
|
|
31
|
-
"@react-stately/numberfield": "^3.9.
|
|
32
|
-
"@react-types/button": "^3.10.
|
|
33
|
-
"@react-types/numberfield": "^3.8.
|
|
34
|
-
"@react-types/shared": "^3.
|
|
25
|
+
"@react-aria/i18n": "^3.12.5",
|
|
26
|
+
"@react-aria/interactions": "^3.23.0",
|
|
27
|
+
"@react-aria/spinbutton": "^3.6.11",
|
|
28
|
+
"@react-aria/textfield": "^3.16.0",
|
|
29
|
+
"@react-aria/utils": "^3.27.0",
|
|
30
|
+
"@react-stately/form": "^3.1.1",
|
|
31
|
+
"@react-stately/numberfield": "^3.9.9",
|
|
32
|
+
"@react-types/button": "^3.10.2",
|
|
33
|
+
"@react-types/numberfield": "^3.8.8",
|
|
34
|
+
"@react-types/shared": "^3.27.0",
|
|
35
35
|
"@swc/helpers": "^0.5.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0",
|
|
39
|
-
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0"
|
|
38
|
+
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
|
|
39
|
+
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
|
|
40
40
|
},
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "09e7f44bebdc9d89122926b2b439a0a38a2814ea"
|
|
45
45
|
}
|