@react-aria/numberfield 3.3.3 → 3.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -13,345 +13,297 @@ function $parcel$interopDefault(a) {
13
13
  }
14
14
 
15
15
  $parcel$export(module.exports, "useNumberField", () => $fa863e9b015ae839$export$23f548e970bdf099);
16
-
16
+ /*
17
+ * Copyright 2020 Adobe. All rights reserved.
18
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
19
+ * you may not use this file except in compliance with the License. You may obtain a copy
20
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
21
+ *
22
+ * Unless required by applicable law or agreed to in writing, software distributed under
23
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
24
+ * OF ANY KIND, either express or implied. See the License for the specific language
25
+ * governing permissions and limitations under the License.
26
+ */ /*
27
+ * Copyright 2020 Adobe. All rights reserved.
28
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
29
+ * you may not use this file except in compliance with the License. You may obtain a copy
30
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
31
+ *
32
+ * Unless required by applicable law or agreed to in writing, software distributed under
33
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
34
+ * OF ANY KIND, either express or implied. See the License for the specific language
35
+ * governing permissions and limitations under the License.
36
+ */
17
37
 
18
38
  var $1bcaad54abc442a2$exports = {};
19
39
  var $15c26e9e75543508$exports = {};
20
40
  $15c26e9e75543508$exports = {
21
- "decrease": (args)=>`خفض ${args.fieldLabel}`
22
- ,
23
- "increase": (args)=>`زيادة ${args.fieldLabel}`
24
- ,
41
+ "decrease": (args)=>`خفض ${args.fieldLabel}`,
42
+ "increase": (args)=>`زيادة ${args.fieldLabel}`,
25
43
  "numberField": `حقل رقمي`
26
44
  };
27
45
 
28
46
 
29
47
  var $2d346802965e5c25$exports = {};
30
48
  $2d346802965e5c25$exports = {
31
- "decrease": (args)=>`Намаляване ${args.fieldLabel}`
32
- ,
33
- "increase": (args)=>`Усилване ${args.fieldLabel}`
34
- ,
49
+ "decrease": (args)=>`Намаляване ${args.fieldLabel}`,
50
+ "increase": (args)=>`Усилване ${args.fieldLabel}`,
35
51
  "numberField": `Номер на полето`
36
52
  };
37
53
 
38
54
 
39
55
  var $09893e85abdd2974$exports = {};
40
56
  $09893e85abdd2974$exports = {
41
- "decrease": (args)=>`Snížit ${args.fieldLabel}`
42
- ,
43
- "increase": (args)=>`Zvýšit ${args.fieldLabel}`
44
- ,
57
+ "decrease": (args)=>`Snížit ${args.fieldLabel}`,
58
+ "increase": (args)=>`Zvýšit ${args.fieldLabel}`,
45
59
  "numberField": `Číselné pole`
46
60
  };
47
61
 
48
62
 
49
63
  var $413bf45f477fb4e1$exports = {};
50
64
  $413bf45f477fb4e1$exports = {
51
- "decrease": (args)=>`Reducer ${args.fieldLabel}`
52
- ,
53
- "increase": (args)=>`Øg ${args.fieldLabel}`
54
- ,
65
+ "decrease": (args)=>`Reducer ${args.fieldLabel}`,
66
+ "increase": (args)=>`Øg ${args.fieldLabel}`,
55
67
  "numberField": `Talfelt`
56
68
  };
57
69
 
58
70
 
59
71
  var $2727845e2efab680$exports = {};
60
72
  $2727845e2efab680$exports = {
61
- "decrease": (args)=>`${args.fieldLabel} verringern`
62
- ,
63
- "increase": (args)=>`${args.fieldLabel} erhöhen`
64
- ,
73
+ "decrease": (args)=>`${args.fieldLabel} verringern`,
74
+ "increase": (args)=>`${args.fieldLabel} erhöhen`,
65
75
  "numberField": `Nummernfeld`
66
76
  };
67
77
 
68
78
 
69
79
  var $11030a3afacdbc2e$exports = {};
70
80
  $11030a3afacdbc2e$exports = {
71
- "decrease": (args)=>`Μείωση ${args.fieldLabel}`
72
- ,
73
- "increase": (args)=>`Αύξηση ${args.fieldLabel}`
74
- ,
81
+ "decrease": (args)=>`Μείωση ${args.fieldLabel}`,
82
+ "increase": (args)=>`Αύξηση ${args.fieldLabel}`,
75
83
  "numberField": `Πεδίο αριθμού`
76
84
  };
77
85
 
78
86
 
79
87
  var $1e48617299cb10e8$exports = {};
80
88
  $1e48617299cb10e8$exports = {
81
- "decrease": (args)=>`Decrease ${args.fieldLabel}`
82
- ,
83
- "increase": (args)=>`Increase ${args.fieldLabel}`
84
- ,
89
+ "decrease": (args)=>`Decrease ${args.fieldLabel}`,
90
+ "increase": (args)=>`Increase ${args.fieldLabel}`,
85
91
  "numberField": `Number field`
86
92
  };
87
93
 
88
94
 
89
95
  var $335176f389a02847$exports = {};
90
96
  $335176f389a02847$exports = {
91
- "decrease": (args)=>`Reducir ${args.fieldLabel}`
92
- ,
93
- "increase": (args)=>`Aumentar ${args.fieldLabel}`
94
- ,
97
+ "decrease": (args)=>`Reducir ${args.fieldLabel}`,
98
+ "increase": (args)=>`Aumentar ${args.fieldLabel}`,
95
99
  "numberField": `Campo de número`
96
100
  };
97
101
 
98
102
 
99
103
  var $b08e7fdc34a812f3$exports = {};
100
104
  $b08e7fdc34a812f3$exports = {
101
- "decrease": (args)=>`Vähenda ${args.fieldLabel}`
102
- ,
103
- "increase": (args)=>`Suurenda ${args.fieldLabel}`
104
- ,
105
+ "decrease": (args)=>`Vähenda ${args.fieldLabel}`,
106
+ "increase": (args)=>`Suurenda ${args.fieldLabel}`,
105
107
  "numberField": `Numbri väli`
106
108
  };
107
109
 
108
110
 
109
111
  var $ce4c5a1eb7e6fc96$exports = {};
110
112
  $ce4c5a1eb7e6fc96$exports = {
111
- "decrease": (args)=>`Vähennä ${args.fieldLabel}`
112
- ,
113
- "increase": (args)=>`Lisää ${args.fieldLabel}`
114
- ,
113
+ "decrease": (args)=>`Vähennä ${args.fieldLabel}`,
114
+ "increase": (args)=>`Lisää ${args.fieldLabel}`,
115
115
  "numberField": `Numerokenttä`
116
116
  };
117
117
 
118
118
 
119
119
  var $341f988ce23c559c$exports = {};
120
120
  $341f988ce23c559c$exports = {
121
- "decrease": (args)=>`Diminuer ${args.fieldLabel}`
122
- ,
123
- "increase": (args)=>`Augmenter ${args.fieldLabel}`
124
- ,
121
+ "decrease": (args)=>`Diminuer ${args.fieldLabel}`,
122
+ "increase": (args)=>`Augmenter ${args.fieldLabel}`,
125
123
  "numberField": `Champ de nombre`
126
124
  };
127
125
 
128
126
 
129
127
  var $950fd1a1d57d2f86$exports = {};
130
128
  $950fd1a1d57d2f86$exports = {
131
- "decrease": (args)=>`הקטן ${args.fieldLabel}`
132
- ,
133
- "increase": (args)=>`הגדל ${args.fieldLabel}`
134
- ,
129
+ "decrease": (args)=>`הקטן ${args.fieldLabel}`,
130
+ "increase": (args)=>`הגדל ${args.fieldLabel}`,
135
131
  "numberField": `שדה מספר`
136
132
  };
137
133
 
138
134
 
139
135
  var $7b949fa64cf10a07$exports = {};
140
136
  $7b949fa64cf10a07$exports = {
141
- "decrease": (args)=>`Smanji ${args.fieldLabel}`
142
- ,
143
- "increase": (args)=>`Povećaj ${args.fieldLabel}`
144
- ,
137
+ "decrease": (args)=>`Smanji ${args.fieldLabel}`,
138
+ "increase": (args)=>`Povećaj ${args.fieldLabel}`,
145
139
  "numberField": `Polje broja`
146
140
  };
147
141
 
148
142
 
149
143
  var $a945ff6d5cb9cf90$exports = {};
150
144
  $a945ff6d5cb9cf90$exports = {
151
- "decrease": (args)=>`${args.fieldLabel} csökkentése`
152
- ,
153
- "increase": (args)=>`${args.fieldLabel} növelése`
154
- ,
145
+ "decrease": (args)=>`${args.fieldLabel} csökkentése`,
146
+ "increase": (args)=>`${args.fieldLabel} növelése`,
155
147
  "numberField": `Számmező`
156
148
  };
157
149
 
158
150
 
159
151
  var $f3393075c1f078d7$exports = {};
160
152
  $f3393075c1f078d7$exports = {
161
- "decrease": (args)=>`Riduci ${args.fieldLabel}`
162
- ,
163
- "increase": (args)=>`Aumenta ${args.fieldLabel}`
164
- ,
153
+ "decrease": (args)=>`Riduci ${args.fieldLabel}`,
154
+ "increase": (args)=>`Aumenta ${args.fieldLabel}`,
165
155
  "numberField": `Campo numero`
166
156
  };
167
157
 
168
158
 
169
159
  var $a12655e072ef354d$exports = {};
170
160
  $a12655e072ef354d$exports = {
171
- "decrease": (args)=>`${args.fieldLabel}を縮小`
172
- ,
173
- "increase": (args)=>`${args.fieldLabel}を拡大`
174
- ,
161
+ "decrease": (args)=>`${args.fieldLabel}を縮小`,
162
+ "increase": (args)=>`${args.fieldLabel}を拡大`,
175
163
  "numberField": `数値フィールド`
176
164
  };
177
165
 
178
166
 
179
167
  var $880dbee0519c1bad$exports = {};
180
168
  $880dbee0519c1bad$exports = {
181
- "decrease": (args)=>`${args.fieldLabel} 감소`
182
- ,
183
- "increase": (args)=>`${args.fieldLabel} 증가`
184
- ,
169
+ "decrease": (args)=>`${args.fieldLabel} 감소`,
170
+ "increase": (args)=>`${args.fieldLabel} 증가`,
185
171
  "numberField": `번호 필드`
186
172
  };
187
173
 
188
174
 
189
175
  var $d4a9630b079105aa$exports = {};
190
176
  $d4a9630b079105aa$exports = {
191
- "decrease": (args)=>`Sumažinti ${args.fieldLabel}`
192
- ,
193
- "increase": (args)=>`Padidinti ${args.fieldLabel}`
194
- ,
177
+ "decrease": (args)=>`Sumažinti ${args.fieldLabel}`,
178
+ "increase": (args)=>`Padidinti ${args.fieldLabel}`,
195
179
  "numberField": `Numerio laukas`
196
180
  };
197
181
 
198
182
 
199
183
  var $e358cd3315986eb7$exports = {};
200
184
  $e358cd3315986eb7$exports = {
201
- "decrease": (args)=>`Samazināšana ${args.fieldLabel}`
202
- ,
203
- "increase": (args)=>`Palielināšana ${args.fieldLabel}`
204
- ,
185
+ "decrease": (args)=>`Samazināšana ${args.fieldLabel}`,
186
+ "increase": (args)=>`Palielināšana ${args.fieldLabel}`,
205
187
  "numberField": `Skaitļu lauks`
206
188
  };
207
189
 
208
190
 
209
191
  var $a8d0ee8ec28363c7$exports = {};
210
192
  $a8d0ee8ec28363c7$exports = {
211
- "decrease": (args)=>`Reduser ${args.fieldLabel}`
212
- ,
213
- "increase": (args)=>`Øk ${args.fieldLabel}`
214
- ,
193
+ "decrease": (args)=>`Reduser ${args.fieldLabel}`,
194
+ "increase": (args)=>`Øk ${args.fieldLabel}`,
215
195
  "numberField": `Tallfelt`
216
196
  };
217
197
 
218
198
 
219
199
  var $0073957e0c754983$exports = {};
220
200
  $0073957e0c754983$exports = {
221
- "decrease": (args)=>`${args.fieldLabel} verlagen`
222
- ,
223
- "increase": (args)=>`${args.fieldLabel} verhogen`
224
- ,
201
+ "decrease": (args)=>`${args.fieldLabel} verlagen`,
202
+ "increase": (args)=>`${args.fieldLabel} verhogen`,
225
203
  "numberField": `Getalveld`
226
204
  };
227
205
 
228
206
 
229
207
  var $51626cc4fccef54e$exports = {};
230
208
  $51626cc4fccef54e$exports = {
231
- "decrease": (args)=>`Zmniejsz ${args.fieldLabel}`
232
- ,
233
- "increase": (args)=>`Zwiększ ${args.fieldLabel}`
234
- ,
209
+ "decrease": (args)=>`Zmniejsz ${args.fieldLabel}`,
210
+ "increase": (args)=>`Zwiększ ${args.fieldLabel}`,
235
211
  "numberField": `Pole numeru`
236
212
  };
237
213
 
238
214
 
239
215
  var $60b1cee412b56d27$exports = {};
240
216
  $60b1cee412b56d27$exports = {
241
- "decrease": (args)=>`Diminuir ${args.fieldLabel}`
242
- ,
243
- "increase": (args)=>`Aumentar ${args.fieldLabel}`
244
- ,
217
+ "decrease": (args)=>`Diminuir ${args.fieldLabel}`,
218
+ "increase": (args)=>`Aumentar ${args.fieldLabel}`,
245
219
  "numberField": `Campo de número`
246
220
  };
247
221
 
248
222
 
249
223
  var $df9c7cc4e8072a0f$exports = {};
250
224
  $df9c7cc4e8072a0f$exports = {
251
- "decrease": (args)=>`Diminuir ${args.fieldLabel}`
252
- ,
253
- "increase": (args)=>`Aumentar ${args.fieldLabel}`
254
- ,
225
+ "decrease": (args)=>`Diminuir ${args.fieldLabel}`,
226
+ "increase": (args)=>`Aumentar ${args.fieldLabel}`,
255
227
  "numberField": `Campo numérico`
256
228
  };
257
229
 
258
230
 
259
231
  var $aea54857f9df076d$exports = {};
260
232
  $aea54857f9df076d$exports = {
261
- "decrease": (args)=>`Scădere ${args.fieldLabel}`
262
- ,
263
- "increase": (args)=>`Creștere ${args.fieldLabel}`
264
- ,
233
+ "decrease": (args)=>`Scădere ${args.fieldLabel}`,
234
+ "increase": (args)=>`Creștere ${args.fieldLabel}`,
265
235
  "numberField": `Câmp numeric`
266
236
  };
267
237
 
268
238
 
269
239
  var $8337ebc47a7e61a3$exports = {};
270
240
  $8337ebc47a7e61a3$exports = {
271
- "decrease": (args)=>`Уменьшение ${args.fieldLabel}`
272
- ,
273
- "increase": (args)=>`Увеличение ${args.fieldLabel}`
274
- ,
241
+ "decrease": (args)=>`Уменьшение ${args.fieldLabel}`,
242
+ "increase": (args)=>`Увеличение ${args.fieldLabel}`,
275
243
  "numberField": `Числовое поле`
276
244
  };
277
245
 
278
246
 
279
247
  var $4703837f8f4224f8$exports = {};
280
248
  $4703837f8f4224f8$exports = {
281
- "decrease": (args)=>`Znížiť ${args.fieldLabel}`
282
- ,
283
- "increase": (args)=>`Zvýšiť ${args.fieldLabel}`
284
- ,
249
+ "decrease": (args)=>`Znížiť ${args.fieldLabel}`,
250
+ "increase": (args)=>`Zvýšiť ${args.fieldLabel}`,
285
251
  "numberField": `Číselné pole`
286
252
  };
287
253
 
288
254
 
289
255
  var $2b9c8b37ab5bbcca$exports = {};
290
256
  $2b9c8b37ab5bbcca$exports = {
291
- "decrease": (args)=>`Upadati ${args.fieldLabel}`
292
- ,
293
- "increase": (args)=>`Povečajte ${args.fieldLabel}`
294
- ,
257
+ "decrease": (args)=>`Upadati ${args.fieldLabel}`,
258
+ "increase": (args)=>`Povečajte ${args.fieldLabel}`,
295
259
  "numberField": `Številčno polje`
296
260
  };
297
261
 
298
262
 
299
263
  var $2c78665a3b81ed56$exports = {};
300
264
  $2c78665a3b81ed56$exports = {
301
- "decrease": (args)=>`Decrease ${args.fieldLabel}`
302
- ,
303
- "increase": (args)=>`Increase ${args.fieldLabel}`
304
- ,
265
+ "decrease": (args)=>`Decrease ${args.fieldLabel}`,
266
+ "increase": (args)=>`Increase ${args.fieldLabel}`,
305
267
  "numberField": `Number field`
306
268
  };
307
269
 
308
270
 
309
271
  var $8da5dab2105c0d01$exports = {};
310
272
  $8da5dab2105c0d01$exports = {
311
- "decrease": (args)=>`Minska ${args.fieldLabel}`
312
- ,
313
- "increase": (args)=>`Öka ${args.fieldLabel}`
314
- ,
273
+ "decrease": (args)=>`Minska ${args.fieldLabel}`,
274
+ "increase": (args)=>`Öka ${args.fieldLabel}`,
315
275
  "numberField": `Nummerfält`
316
276
  };
317
277
 
318
278
 
319
279
  var $73a2418cb50e8fda$exports = {};
320
280
  $73a2418cb50e8fda$exports = {
321
- "decrease": (args)=>`${args.fieldLabel} azalt`
322
- ,
323
- "increase": (args)=>`${args.fieldLabel} arttır`
324
- ,
281
+ "decrease": (args)=>`${args.fieldLabel} azalt`,
282
+ "increase": (args)=>`${args.fieldLabel} arttır`,
325
283
  "numberField": `Sayı alanı`
326
284
  };
327
285
 
328
286
 
329
287
  var $9c85d1989bb8c41d$exports = {};
330
288
  $9c85d1989bb8c41d$exports = {
331
- "decrease": (args)=>`Зменшити ${args.fieldLabel}`
332
- ,
333
- "increase": (args)=>`Збільшити ${args.fieldLabel}`
334
- ,
289
+ "decrease": (args)=>`Зменшити ${args.fieldLabel}`,
290
+ "increase": (args)=>`Збільшити ${args.fieldLabel}`,
335
291
  "numberField": `Поле номера`
336
292
  };
337
293
 
338
294
 
339
295
  var $a7db09d81aa41beb$exports = {};
340
296
  $a7db09d81aa41beb$exports = {
341
- "decrease": (args)=>`降低 ${args.fieldLabel}`
342
- ,
343
- "increase": (args)=>`提高 ${args.fieldLabel}`
344
- ,
297
+ "decrease": (args)=>`降低 ${args.fieldLabel}`,
298
+ "increase": (args)=>`提高 ${args.fieldLabel}`,
345
299
  "numberField": `数字字段`
346
300
  };
347
301
 
348
302
 
349
303
  var $edd6ee4675b7a1cd$exports = {};
350
304
  $edd6ee4675b7a1cd$exports = {
351
- "decrease": (args)=>`縮小 ${args.fieldLabel}`
352
- ,
353
- "increase": (args)=>`放大 ${args.fieldLabel}`
354
- ,
305
+ "decrease": (args)=>`縮小 ${args.fieldLabel}`,
306
+ "increase": (args)=>`放大 ${args.fieldLabel}`,
355
307
  "numberField": `數字欄位`
356
308
  };
357
309
 
@@ -400,18 +352,17 @@ $1bcaad54abc442a2$exports = {
400
352
 
401
353
 
402
354
  function $fa863e9b015ae839$export$23f548e970bdf099(props, state, inputRef) {
403
- let { id: id , decrementAriaLabel: decrementAriaLabel , incrementAriaLabel: incrementAriaLabel , isDisabled: isDisabled , isReadOnly: isReadOnly , isRequired: isRequired , minValue: minValue , maxValue: maxValue , autoFocus: autoFocus , validationState: validationState , label: label , formatOptions: formatOptions , onBlur: onBlur = ()=>{
404
- } , onFocus: onFocus , onFocusChange: onFocusChange , onKeyDown: onKeyDown , onKeyUp: onKeyUp , description: description , errorMessage: errorMessage , ...otherProps } = props;
355
+ let { id: id , decrementAriaLabel: decrementAriaLabel , incrementAriaLabel: incrementAriaLabel , isDisabled: isDisabled , isReadOnly: isReadOnly , isRequired: isRequired , minValue: minValue , maxValue: maxValue , autoFocus: autoFocus , validationState: validationState , label: label , formatOptions: formatOptions , onBlur: onBlur = ()=>{} , onFocus: onFocus , onFocusChange: onFocusChange , onKeyDown: onKeyDown , onKeyUp: onKeyUp , description: description , errorMessage: errorMessage , ...otherProps } = props;
405
356
  let { increment: increment , incrementToMax: incrementToMax , decrement: decrement , decrementToMin: decrementToMin , numberValue: numberValue , commit: commit } = state;
406
- const stringFormatter = $2wEZH$reactariai18n.useLocalizedStringFormatter((/*@__PURE__*/$parcel$interopDefault($1bcaad54abc442a2$exports)));
407
- let inputId = $2wEZH$reactariautils.useId(id);
408
- let { focusProps: focusProps } = $2wEZH$reactariainteractions.useFocus({
357
+ const stringFormatter = (0, $2wEZH$reactariai18n.useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($1bcaad54abc442a2$exports))));
358
+ let inputId = (0, $2wEZH$reactariautils.useId)(id);
359
+ let { focusProps: focusProps } = (0, $2wEZH$reactariainteractions.useFocus)({
409
360
  onBlur: ()=>{
410
361
  // Set input value to normalized valid value
411
362
  commit();
412
363
  }
413
364
  });
414
- let { spinButtonProps: spinButtonProps , incrementButtonProps: incButtonProps , decrementButtonProps: decButtonProps } = $2wEZH$reactariaspinbutton.useSpinButton({
365
+ let { spinButtonProps: spinButtonProps , incrementButtonProps: incButtonProps , decrementButtonProps: decButtonProps } = (0, $2wEZH$reactariaspinbutton.useSpinButton)({
415
366
  isDisabled: isDisabled,
416
367
  isReadOnly: isReadOnly,
417
368
  isRequired: isRequired,
@@ -424,12 +375,12 @@ function $fa863e9b015ae839$export$23f548e970bdf099(props, state, inputRef) {
424
375
  value: numberValue,
425
376
  textValue: state.inputValue
426
377
  });
427
- let [focusWithin, setFocusWithin] = $2wEZH$react.useState(false);
428
- let { focusWithinProps: focusWithinProps } = $2wEZH$reactariainteractions.useFocusWithin({
378
+ let [focusWithin, setFocusWithin] = (0, $2wEZH$react.useState)(false);
379
+ let { focusWithinProps: focusWithinProps } = (0, $2wEZH$reactariainteractions.useFocusWithin)({
429
380
  isDisabled: isDisabled,
430
381
  onFocusWithinChange: setFocusWithin
431
382
  });
432
- let onWheel = $2wEZH$react.useCallback((e)=>{
383
+ let onWheel = (0, $2wEZH$react.useCallback)((e)=>{
433
384
  // if on a trackpad, users can scroll in both X and Y at once, check the magnitude of the change
434
385
  // if it's mostly in the X direction, then just return, the user probably doesn't mean to inc/dec
435
386
  // this isn't perfect, events come in fast with small deltas and a part of the scroll may give a false indication
@@ -443,7 +394,7 @@ function $fa863e9b015ae839$export$23f548e970bdf099(props, state, inputRef) {
443
394
  ]);
444
395
  // If the input isn't supposed to receive input, disable scrolling.
445
396
  let scrollingDisabled = isDisabled || isReadOnly || !focusWithin;
446
- $2wEZH$reactariainteractions.useScrollWheel({
397
+ (0, $2wEZH$reactariainteractions.useScrollWheel)({
447
398
  onScroll: onWheel,
448
399
  isDisabled: scrollingDisabled
449
400
  }, inputRef);
@@ -451,31 +402,30 @@ function $fa863e9b015ae839$export$23f548e970bdf099(props, state, inputRef) {
451
402
  // Browsers and operating systems are quite inconsistent about what keys are available, however.
452
403
  // We choose between numeric and decimal based on whether we allow negative and fractional numbers,
453
404
  // and based on testing on various devices to determine what keys are available in each inputMode.
454
- let numberFormatter = $2wEZH$reactariai18n.useNumberFormatter(formatOptions);
455
- let intlOptions = $2wEZH$react.useMemo(()=>numberFormatter.resolvedOptions()
456
- , [
405
+ let numberFormatter = (0, $2wEZH$reactariai18n.useNumberFormatter)(formatOptions);
406
+ let intlOptions = (0, $2wEZH$react.useMemo)(()=>numberFormatter.resolvedOptions(), [
457
407
  numberFormatter
458
408
  ]);
459
409
  let hasDecimals = intlOptions.maximumFractionDigits > 0;
460
410
  let hasNegative = isNaN(state.minValue) || state.minValue < 0;
461
- let inputMode = 'numeric';
462
- if ($2wEZH$reactariautils.isIPhone()) {
411
+ let inputMode = "numeric";
412
+ if ((0, $2wEZH$reactariautils.isIPhone)()) {
463
413
  // iPhone doesn't have a minus sign in either numeric or decimal.
464
414
  // Note this is only for iPhone, not iPad, which always has both
465
415
  // minus and decimal in numeric.
466
- if (hasNegative) inputMode = 'text';
467
- else if (hasDecimals) inputMode = 'decimal';
468
- } else if ($2wEZH$reactariautils.isAndroid()) {
416
+ if (hasNegative) inputMode = "text";
417
+ else if (hasDecimals) inputMode = "decimal";
418
+ } else if ((0, $2wEZH$reactariautils.isAndroid)()) {
469
419
  // Android numeric has both a decimal point and minus key.
470
420
  // decimal does not have a minus key.
471
- if (hasNegative) inputMode = 'numeric';
472
- else if (hasDecimals) inputMode = 'decimal';
421
+ if (hasNegative) inputMode = "numeric";
422
+ else if (hasDecimals) inputMode = "decimal";
473
423
  }
474
424
  let onChange = (value)=>{
475
425
  state.setInputValue(value);
476
426
  };
477
- let domProps = $2wEZH$reactariautils.filterDOMProps(props);
478
- let { labelProps: labelProps , inputProps: textFieldProps , descriptionProps: descriptionProps , errorMessageProps: errorMessageProps } = $2wEZH$reactariatextfield.useFormattedTextField({
427
+ let domProps = (0, $2wEZH$reactariautils.filterDOMProps)(props);
428
+ let { labelProps: labelProps , inputProps: textFieldProps , descriptionProps: descriptionProps , errorMessageProps: errorMessageProps } = (0, $2wEZH$reactariatextfield.useFormattedTextField)({
479
429
  ...otherProps,
480
430
  ...domProps,
481
431
  label: label,
@@ -486,11 +436,11 @@ function $fa863e9b015ae839$export$23f548e970bdf099(props, state, inputRef) {
486
436
  validationState: validationState,
487
437
  value: state.inputValue,
488
438
  defaultValue: undefined,
489
- autoComplete: 'off',
490
- 'aria-label': props['aria-label'] || null,
491
- 'aria-labelledby': props['aria-labelledby'] || null,
439
+ autoComplete: "off",
440
+ "aria-label": props["aria-label"] || null,
441
+ "aria-labelledby": props["aria-labelledby"] || null,
492
442
  id: inputId,
493
- type: 'text',
443
+ type: "text",
494
444
  inputMode: inputMode,
495
445
  onChange: onChange,
496
446
  onBlur: onBlur,
@@ -501,17 +451,17 @@ function $fa863e9b015ae839$export$23f548e970bdf099(props, state, inputRef) {
501
451
  description: description,
502
452
  errorMessage: errorMessage
503
453
  }, state, inputRef);
504
- let inputProps = $2wEZH$reactariautils.mergeProps(spinButtonProps, focusProps, textFieldProps, {
454
+ let inputProps = (0, $2wEZH$reactariautils.mergeProps)(spinButtonProps, focusProps, textFieldProps, {
505
455
  // override the spinbutton role, we can't focus a spin button with VO
506
456
  role: null,
507
457
  // ignore aria-roledescription on iOS so that required state will announce when it is present
508
- 'aria-roledescription': !$2wEZH$reactariautils.isIOS() ? stringFormatter.format('numberField') : null,
509
- 'aria-valuemax': null,
510
- 'aria-valuemin': null,
511
- 'aria-valuenow': null,
512
- 'aria-valuetext': null,
513
- autoCorrect: 'off',
514
- spellCheck: 'false'
458
+ "aria-roledescription": !(0, $2wEZH$reactariautils.isIOS)() ? stringFormatter.format("numberField") : null,
459
+ "aria-valuemax": null,
460
+ "aria-valuemin": null,
461
+ "aria-valuenow": null,
462
+ "aria-valuetext": null,
463
+ autoCorrect: "off",
464
+ spellCheck: "false"
515
465
  });
516
466
  let onButtonPressStart = (e)=>{
517
467
  // If focus is already on the input, keep it there so we don't hide the
@@ -520,7 +470,7 @@ function $fa863e9b015ae839$export$23f548e970bdf099(props, state, inputRef) {
520
470
  // Otherwise, when using a mouse, move focus to the input.
521
471
  // On touch, or with a screen reader, focus the button so that the software
522
472
  // keyboard does not appear and the screen reader cursor is not moved off the button.
523
- if (e.pointerType === 'mouse') inputRef.current.focus();
473
+ if (e.pointerType === "mouse") inputRef.current.focus();
524
474
  else e.target.focus();
525
475
  };
526
476
  // Determine the label for the increment and decrement buttons. There are 4 cases:
@@ -533,31 +483,31 @@ function $fa863e9b015ae839$export$23f548e970bdf099(props, state, inputRef) {
533
483
  // (1) and (2) could possibly be combined and both use aria-labelledby. However, placing the label in
534
484
  // the aria-label string rather than using aria-labelledby gives more flexibility to translators to change
535
485
  // the order or add additional words around the label if needed.
536
- let fieldLabel = props['aria-label'] || (typeof props.label === 'string' ? props.label : '');
486
+ let fieldLabel = props["aria-label"] || (typeof props.label === "string" ? props.label : "");
537
487
  let ariaLabelledby;
538
- if (!fieldLabel) ariaLabelledby = props.label != null ? labelProps.id : props['aria-labelledby'];
539
- let incrementId = $2wEZH$reactariautils.useId();
540
- let decrementId = $2wEZH$reactariautils.useId();
541
- let incrementButtonProps = $2wEZH$reactariautils.mergeProps(incButtonProps, {
542
- 'aria-label': incrementAriaLabel || stringFormatter.format('increase', {
488
+ if (!fieldLabel) ariaLabelledby = props.label != null ? labelProps.id : props["aria-labelledby"];
489
+ let incrementId = (0, $2wEZH$reactariautils.useId)();
490
+ let decrementId = (0, $2wEZH$reactariautils.useId)();
491
+ let incrementButtonProps = (0, $2wEZH$reactariautils.mergeProps)(incButtonProps, {
492
+ "aria-label": incrementAriaLabel || stringFormatter.format("increase", {
543
493
  fieldLabel: fieldLabel
544
494
  }).trim(),
545
495
  id: ariaLabelledby && !incrementAriaLabel ? incrementId : null,
546
- 'aria-labelledby': ariaLabelledby && !incrementAriaLabel ? `${incrementId} ${ariaLabelledby}` : null,
547
- 'aria-controls': inputId,
496
+ "aria-labelledby": ariaLabelledby && !incrementAriaLabel ? `${incrementId} ${ariaLabelledby}` : null,
497
+ "aria-controls": inputId,
548
498
  excludeFromTabOrder: true,
549
499
  preventFocusOnPress: true,
550
500
  allowFocusWhenDisabled: true,
551
501
  isDisabled: !state.canIncrement,
552
502
  onPressStart: onButtonPressStart
553
503
  });
554
- let decrementButtonProps = $2wEZH$reactariautils.mergeProps(decButtonProps, {
555
- 'aria-label': decrementAriaLabel || stringFormatter.format('decrease', {
504
+ let decrementButtonProps = (0, $2wEZH$reactariautils.mergeProps)(decButtonProps, {
505
+ "aria-label": decrementAriaLabel || stringFormatter.format("decrease", {
556
506
  fieldLabel: fieldLabel
557
507
  }).trim(),
558
508
  id: ariaLabelledby && !decrementAriaLabel ? decrementId : null,
559
- 'aria-labelledby': ariaLabelledby && !decrementAriaLabel ? `${decrementId} ${ariaLabelledby}` : null,
560
- 'aria-controls': inputId,
509
+ "aria-labelledby": ariaLabelledby && !decrementAriaLabel ? `${decrementId} ${ariaLabelledby}` : null,
510
+ "aria-controls": inputId,
561
511
  excludeFromTabOrder: true,
562
512
  preventFocusOnPress: true,
563
513
  allowFocusWhenDisabled: true,
@@ -566,9 +516,9 @@ function $fa863e9b015ae839$export$23f548e970bdf099(props, state, inputRef) {
566
516
  });
567
517
  return {
568
518
  groupProps: {
569
- role: 'group',
570
- 'aria-disabled': isDisabled,
571
- 'aria-invalid': validationState === 'invalid' ? 'true' : undefined,
519
+ role: "group",
520
+ "aria-disabled": isDisabled,
521
+ "aria-invalid": validationState === "invalid" ? "true" : undefined,
572
522
  ...focusWithinProps
573
523
  },
574
524
  labelProps: labelProps,