@zag-js/number-input 0.2.4 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +149 -149
- package/dist/index.js +28 -22
- package/dist/index.mjs +28 -22
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -5,25 +5,25 @@ import { StateMachine } from '@zag-js/core';
|
|
|
5
5
|
declare const anatomy: Omit<{
|
|
6
6
|
parts: <U extends string>(...parts: U[]) => Omit<{
|
|
7
7
|
parts: any;
|
|
8
|
-
|
|
8
|
+
extendWith: <V extends string>(...parts: V[]) => Omit<{
|
|
9
9
|
parts: any;
|
|
10
|
-
|
|
10
|
+
extendWith: <V_1 extends string>(...parts: V_1[]) => Omit<{
|
|
11
11
|
parts: any;
|
|
12
|
-
|
|
12
|
+
extendWith: <V_2 extends string>(...parts: V_2[]) => Omit<{
|
|
13
13
|
parts: any;
|
|
14
|
-
|
|
14
|
+
extendWith: <V_3 extends string>(...parts: V_3[]) => Omit<{
|
|
15
15
|
parts: any;
|
|
16
|
-
|
|
16
|
+
extendWith: <V_4 extends string>(...parts: V_4[]) => Omit<{
|
|
17
17
|
parts: any;
|
|
18
|
-
|
|
18
|
+
extendWith: <V_5 extends string>(...parts: V_5[]) => Omit<{
|
|
19
19
|
parts: any;
|
|
20
|
-
|
|
20
|
+
extendWith: <V_6 extends string>(...parts: V_6[]) => Omit<{
|
|
21
21
|
parts: any;
|
|
22
|
-
|
|
22
|
+
extendWith: <V_7 extends string>(...parts: V_7[]) => Omit<{
|
|
23
23
|
parts: any;
|
|
24
|
-
|
|
24
|
+
extendWith: <V_8 extends string>(...parts: V_8[]) => Omit<{
|
|
25
25
|
parts: any;
|
|
26
|
-
|
|
26
|
+
extendWith: <V_9 extends string>(...parts: V_9[]) => Omit<any, "parts">;
|
|
27
27
|
build: () => Record<U | V | V_1 | V_2 | V_3 | V_4 | V_5 | V_6 | V_7 | V_8, {
|
|
28
28
|
selector: string;
|
|
29
29
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
@@ -74,28 +74,28 @@ declare const anatomy: Omit<{
|
|
|
74
74
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
75
75
|
}>;
|
|
76
76
|
}, "parts">;
|
|
77
|
-
|
|
77
|
+
extendWith: <V_10 extends string>(...parts: V_10[]) => Omit<{
|
|
78
78
|
parts: <U extends string>(...parts: U[]) => Omit<{
|
|
79
79
|
parts: any;
|
|
80
|
-
|
|
80
|
+
extendWith: <V extends string>(...parts: V[]) => Omit<{
|
|
81
81
|
parts: any;
|
|
82
|
-
|
|
82
|
+
extendWith: <V_1 extends string>(...parts: V_1[]) => Omit<{
|
|
83
83
|
parts: any;
|
|
84
|
-
|
|
84
|
+
extendWith: <V_2 extends string>(...parts: V_2[]) => Omit<{
|
|
85
85
|
parts: any;
|
|
86
|
-
|
|
86
|
+
extendWith: <V_3 extends string>(...parts: V_3[]) => Omit<{
|
|
87
87
|
parts: any;
|
|
88
|
-
|
|
88
|
+
extendWith: <V_4 extends string>(...parts: V_4[]) => Omit<{
|
|
89
89
|
parts: any;
|
|
90
|
-
|
|
90
|
+
extendWith: <V_5 extends string>(...parts: V_5[]) => Omit<{
|
|
91
91
|
parts: any;
|
|
92
|
-
|
|
92
|
+
extendWith: <V_6 extends string>(...parts: V_6[]) => Omit<{
|
|
93
93
|
parts: any;
|
|
94
|
-
|
|
94
|
+
extendWith: <V_7 extends string>(...parts: V_7[]) => Omit<{
|
|
95
95
|
parts: any;
|
|
96
|
-
|
|
96
|
+
extendWith: <V_8 extends string>(...parts: V_8[]) => Omit<{
|
|
97
97
|
parts: any;
|
|
98
|
-
|
|
98
|
+
extendWith: <V_9 extends string>(...parts: V_9[]) => Omit<any, "parts">;
|
|
99
99
|
build: () => Record<U | V | V_1 | V_2 | V_3 | V_4 | V_5 | V_6 | V_7 | V_8, {
|
|
100
100
|
selector: string;
|
|
101
101
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
@@ -146,28 +146,28 @@ declare const anatomy: Omit<{
|
|
|
146
146
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
147
147
|
}>;
|
|
148
148
|
}, "parts">;
|
|
149
|
-
|
|
149
|
+
extendWith: <V_11 extends string>(...parts: V_11[]) => Omit<{
|
|
150
150
|
parts: <U extends string>(...parts: U[]) => Omit<{
|
|
151
151
|
parts: any;
|
|
152
|
-
|
|
152
|
+
extendWith: <V extends string>(...parts: V[]) => Omit<{
|
|
153
153
|
parts: any;
|
|
154
|
-
|
|
154
|
+
extendWith: <V_1 extends string>(...parts: V_1[]) => Omit<{
|
|
155
155
|
parts: any;
|
|
156
|
-
|
|
156
|
+
extendWith: <V_2 extends string>(...parts: V_2[]) => Omit<{
|
|
157
157
|
parts: any;
|
|
158
|
-
|
|
158
|
+
extendWith: <V_3 extends string>(...parts: V_3[]) => Omit<{
|
|
159
159
|
parts: any;
|
|
160
|
-
|
|
160
|
+
extendWith: <V_4 extends string>(...parts: V_4[]) => Omit<{
|
|
161
161
|
parts: any;
|
|
162
|
-
|
|
162
|
+
extendWith: <V_5 extends string>(...parts: V_5[]) => Omit<{
|
|
163
163
|
parts: any;
|
|
164
|
-
|
|
164
|
+
extendWith: <V_6 extends string>(...parts: V_6[]) => Omit<{
|
|
165
165
|
parts: any;
|
|
166
|
-
|
|
166
|
+
extendWith: <V_7 extends string>(...parts: V_7[]) => Omit<{
|
|
167
167
|
parts: any;
|
|
168
|
-
|
|
168
|
+
extendWith: <V_8 extends string>(...parts: V_8[]) => Omit<{
|
|
169
169
|
parts: any;
|
|
170
|
-
|
|
170
|
+
extendWith: <V_9 extends string>(...parts: V_9[]) => Omit<any, "parts">;
|
|
171
171
|
build: () => Record<U | V | V_1 | V_2 | V_3 | V_4 | V_5 | V_6 | V_7 | V_8, {
|
|
172
172
|
selector: string;
|
|
173
173
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
@@ -218,28 +218,28 @@ declare const anatomy: Omit<{
|
|
|
218
218
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
219
219
|
}>;
|
|
220
220
|
}, "parts">;
|
|
221
|
-
|
|
221
|
+
extendWith: <V_12 extends string>(...parts: V_12[]) => Omit<{
|
|
222
222
|
parts: <U extends string>(...parts: U[]) => Omit<{
|
|
223
223
|
parts: any;
|
|
224
|
-
|
|
224
|
+
extendWith: <V extends string>(...parts: V[]) => Omit<{
|
|
225
225
|
parts: any;
|
|
226
|
-
|
|
226
|
+
extendWith: <V_1 extends string>(...parts: V_1[]) => Omit<{
|
|
227
227
|
parts: any;
|
|
228
|
-
|
|
228
|
+
extendWith: <V_2 extends string>(...parts: V_2[]) => Omit<{
|
|
229
229
|
parts: any;
|
|
230
|
-
|
|
230
|
+
extendWith: <V_3 extends string>(...parts: V_3[]) => Omit<{
|
|
231
231
|
parts: any;
|
|
232
|
-
|
|
232
|
+
extendWith: <V_4 extends string>(...parts: V_4[]) => Omit<{
|
|
233
233
|
parts: any;
|
|
234
|
-
|
|
234
|
+
extendWith: <V_5 extends string>(...parts: V_5[]) => Omit<{
|
|
235
235
|
parts: any;
|
|
236
|
-
|
|
236
|
+
extendWith: <V_6 extends string>(...parts: V_6[]) => Omit<{
|
|
237
237
|
parts: any;
|
|
238
|
-
|
|
238
|
+
extendWith: <V_7 extends string>(...parts: V_7[]) => Omit<{
|
|
239
239
|
parts: any;
|
|
240
|
-
|
|
240
|
+
extendWith: <V_8 extends string>(...parts: V_8[]) => Omit<{
|
|
241
241
|
parts: any;
|
|
242
|
-
|
|
242
|
+
extendWith: <V_9 extends string>(...parts: V_9[]) => Omit<any, "parts">;
|
|
243
243
|
build: () => Record<U | V | V_1 | V_2 | V_3 | V_4 | V_5 | V_6 | V_7 | V_8, {
|
|
244
244
|
selector: string;
|
|
245
245
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
@@ -290,28 +290,28 @@ declare const anatomy: Omit<{
|
|
|
290
290
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
291
291
|
}>;
|
|
292
292
|
}, "parts">;
|
|
293
|
-
|
|
293
|
+
extendWith: <V_13 extends string>(...parts: V_13[]) => Omit<{
|
|
294
294
|
parts: <U extends string>(...parts: U[]) => Omit<{
|
|
295
295
|
parts: any;
|
|
296
|
-
|
|
296
|
+
extendWith: <V extends string>(...parts: V[]) => Omit<{
|
|
297
297
|
parts: any;
|
|
298
|
-
|
|
298
|
+
extendWith: <V_1 extends string>(...parts: V_1[]) => Omit<{
|
|
299
299
|
parts: any;
|
|
300
|
-
|
|
300
|
+
extendWith: <V_2 extends string>(...parts: V_2[]) => Omit<{
|
|
301
301
|
parts: any;
|
|
302
|
-
|
|
302
|
+
extendWith: <V_3 extends string>(...parts: V_3[]) => Omit<{
|
|
303
303
|
parts: any;
|
|
304
|
-
|
|
304
|
+
extendWith: <V_4 extends string>(...parts: V_4[]) => Omit<{
|
|
305
305
|
parts: any;
|
|
306
|
-
|
|
306
|
+
extendWith: <V_5 extends string>(...parts: V_5[]) => Omit<{
|
|
307
307
|
parts: any;
|
|
308
|
-
|
|
308
|
+
extendWith: <V_6 extends string>(...parts: V_6[]) => Omit<{
|
|
309
309
|
parts: any;
|
|
310
|
-
|
|
310
|
+
extendWith: <V_7 extends string>(...parts: V_7[]) => Omit<{
|
|
311
311
|
parts: any;
|
|
312
|
-
|
|
312
|
+
extendWith: <V_8 extends string>(...parts: V_8[]) => Omit<{
|
|
313
313
|
parts: any;
|
|
314
|
-
|
|
314
|
+
extendWith: <V_9 extends string>(...parts: V_9[]) => Omit<any, "parts">;
|
|
315
315
|
build: () => Record<U | V | V_1 | V_2 | V_3 | V_4 | V_5 | V_6 | V_7 | V_8, {
|
|
316
316
|
selector: string;
|
|
317
317
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
@@ -362,28 +362,28 @@ declare const anatomy: Omit<{
|
|
|
362
362
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
363
363
|
}>;
|
|
364
364
|
}, "parts">;
|
|
365
|
-
|
|
365
|
+
extendWith: <V_14 extends string>(...parts: V_14[]) => Omit<{
|
|
366
366
|
parts: <U extends string>(...parts: U[]) => Omit<{
|
|
367
367
|
parts: any;
|
|
368
|
-
|
|
368
|
+
extendWith: <V extends string>(...parts: V[]) => Omit<{
|
|
369
369
|
parts: any;
|
|
370
|
-
|
|
370
|
+
extendWith: <V_1 extends string>(...parts: V_1[]) => Omit<{
|
|
371
371
|
parts: any;
|
|
372
|
-
|
|
372
|
+
extendWith: <V_2 extends string>(...parts: V_2[]) => Omit<{
|
|
373
373
|
parts: any;
|
|
374
|
-
|
|
374
|
+
extendWith: <V_3 extends string>(...parts: V_3[]) => Omit<{
|
|
375
375
|
parts: any;
|
|
376
|
-
|
|
376
|
+
extendWith: <V_4 extends string>(...parts: V_4[]) => Omit<{
|
|
377
377
|
parts: any;
|
|
378
|
-
|
|
378
|
+
extendWith: <V_5 extends string>(...parts: V_5[]) => Omit<{
|
|
379
379
|
parts: any;
|
|
380
|
-
|
|
380
|
+
extendWith: <V_6 extends string>(...parts: V_6[]) => Omit<{
|
|
381
381
|
parts: any;
|
|
382
|
-
|
|
382
|
+
extendWith: <V_7 extends string>(...parts: V_7[]) => Omit<{
|
|
383
383
|
parts: any;
|
|
384
|
-
|
|
384
|
+
extendWith: <V_8 extends string>(...parts: V_8[]) => Omit<{
|
|
385
385
|
parts: any;
|
|
386
|
-
|
|
386
|
+
extendWith: <V_9 extends string>(...parts: V_9[]) => Omit<any, "parts">;
|
|
387
387
|
build: () => Record<U | V | V_1 | V_2 | V_3 | V_4 | V_5 | V_6 | V_7 | V_8, {
|
|
388
388
|
selector: string;
|
|
389
389
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
@@ -434,28 +434,28 @@ declare const anatomy: Omit<{
|
|
|
434
434
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
435
435
|
}>;
|
|
436
436
|
}, "parts">;
|
|
437
|
-
|
|
437
|
+
extendWith: <V_15 extends string>(...parts: V_15[]) => Omit<{
|
|
438
438
|
parts: <U extends string>(...parts: U[]) => Omit<{
|
|
439
439
|
parts: any;
|
|
440
|
-
|
|
440
|
+
extendWith: <V extends string>(...parts: V[]) => Omit<{
|
|
441
441
|
parts: any;
|
|
442
|
-
|
|
442
|
+
extendWith: <V_1 extends string>(...parts: V_1[]) => Omit<{
|
|
443
443
|
parts: any;
|
|
444
|
-
|
|
444
|
+
extendWith: <V_2 extends string>(...parts: V_2[]) => Omit<{
|
|
445
445
|
parts: any;
|
|
446
|
-
|
|
446
|
+
extendWith: <V_3 extends string>(...parts: V_3[]) => Omit<{
|
|
447
447
|
parts: any;
|
|
448
|
-
|
|
448
|
+
extendWith: <V_4 extends string>(...parts: V_4[]) => Omit<{
|
|
449
449
|
parts: any;
|
|
450
|
-
|
|
450
|
+
extendWith: <V_5 extends string>(...parts: V_5[]) => Omit<{
|
|
451
451
|
parts: any;
|
|
452
|
-
|
|
452
|
+
extendWith: <V_6 extends string>(...parts: V_6[]) => Omit<{
|
|
453
453
|
parts: any;
|
|
454
|
-
|
|
454
|
+
extendWith: <V_7 extends string>(...parts: V_7[]) => Omit<{
|
|
455
455
|
parts: any;
|
|
456
|
-
|
|
456
|
+
extendWith: <V_8 extends string>(...parts: V_8[]) => Omit<{
|
|
457
457
|
parts: any;
|
|
458
|
-
|
|
458
|
+
extendWith: <V_9 extends string>(...parts: V_9[]) => Omit<any, "parts">;
|
|
459
459
|
build: () => Record<U | V | V_1 | V_2 | V_3 | V_4 | V_5 | V_6 | V_7 | V_8, {
|
|
460
460
|
selector: string;
|
|
461
461
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
@@ -506,28 +506,28 @@ declare const anatomy: Omit<{
|
|
|
506
506
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
507
507
|
}>;
|
|
508
508
|
}, "parts">;
|
|
509
|
-
|
|
509
|
+
extendWith: <V_16 extends string>(...parts: V_16[]) => Omit<{
|
|
510
510
|
parts: <U extends string>(...parts: U[]) => Omit<{
|
|
511
511
|
parts: any;
|
|
512
|
-
|
|
512
|
+
extendWith: <V extends string>(...parts: V[]) => Omit<{
|
|
513
513
|
parts: any;
|
|
514
|
-
|
|
514
|
+
extendWith: <V_1 extends string>(...parts: V_1[]) => Omit<{
|
|
515
515
|
parts: any;
|
|
516
|
-
|
|
516
|
+
extendWith: <V_2 extends string>(...parts: V_2[]) => Omit<{
|
|
517
517
|
parts: any;
|
|
518
|
-
|
|
518
|
+
extendWith: <V_3 extends string>(...parts: V_3[]) => Omit<{
|
|
519
519
|
parts: any;
|
|
520
|
-
|
|
520
|
+
extendWith: <V_4 extends string>(...parts: V_4[]) => Omit<{
|
|
521
521
|
parts: any;
|
|
522
|
-
|
|
522
|
+
extendWith: <V_5 extends string>(...parts: V_5[]) => Omit<{
|
|
523
523
|
parts: any;
|
|
524
|
-
|
|
524
|
+
extendWith: <V_6 extends string>(...parts: V_6[]) => Omit<{
|
|
525
525
|
parts: any;
|
|
526
|
-
|
|
526
|
+
extendWith: <V_7 extends string>(...parts: V_7[]) => Omit<{
|
|
527
527
|
parts: any;
|
|
528
|
-
|
|
528
|
+
extendWith: <V_8 extends string>(...parts: V_8[]) => Omit<{
|
|
529
529
|
parts: any;
|
|
530
|
-
|
|
530
|
+
extendWith: <V_9 extends string>(...parts: V_9[]) => Omit<any, "parts">;
|
|
531
531
|
build: () => Record<U | V | V_1 | V_2 | V_3 | V_4 | V_5 | V_6 | V_7 | V_8, {
|
|
532
532
|
selector: string;
|
|
533
533
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
@@ -578,28 +578,28 @@ declare const anatomy: Omit<{
|
|
|
578
578
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
579
579
|
}>;
|
|
580
580
|
}, "parts">;
|
|
581
|
-
|
|
581
|
+
extendWith: <V_17 extends string>(...parts: V_17[]) => Omit<{
|
|
582
582
|
parts: <U extends string>(...parts: U[]) => Omit<{
|
|
583
583
|
parts: any;
|
|
584
|
-
|
|
584
|
+
extendWith: <V extends string>(...parts: V[]) => Omit<{
|
|
585
585
|
parts: any;
|
|
586
|
-
|
|
586
|
+
extendWith: <V_1 extends string>(...parts: V_1[]) => Omit<{
|
|
587
587
|
parts: any;
|
|
588
|
-
|
|
588
|
+
extendWith: <V_2 extends string>(...parts: V_2[]) => Omit<{
|
|
589
589
|
parts: any;
|
|
590
|
-
|
|
590
|
+
extendWith: <V_3 extends string>(...parts: V_3[]) => Omit<{
|
|
591
591
|
parts: any;
|
|
592
|
-
|
|
592
|
+
extendWith: <V_4 extends string>(...parts: V_4[]) => Omit<{
|
|
593
593
|
parts: any;
|
|
594
|
-
|
|
594
|
+
extendWith: <V_5 extends string>(...parts: V_5[]) => Omit<{
|
|
595
595
|
parts: any;
|
|
596
|
-
|
|
596
|
+
extendWith: <V_6 extends string>(...parts: V_6[]) => Omit<{
|
|
597
597
|
parts: any;
|
|
598
|
-
|
|
598
|
+
extendWith: <V_7 extends string>(...parts: V_7[]) => Omit<{
|
|
599
599
|
parts: any;
|
|
600
|
-
|
|
600
|
+
extendWith: <V_8 extends string>(...parts: V_8[]) => Omit<{
|
|
601
601
|
parts: any;
|
|
602
|
-
|
|
602
|
+
extendWith: <V_9 extends string>(...parts: V_9[]) => Omit<any, "parts">;
|
|
603
603
|
build: () => Record<U | V | V_1 | V_2 | V_3 | V_4 | V_5 | V_6 | V_7 | V_8, {
|
|
604
604
|
selector: string;
|
|
605
605
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
@@ -650,28 +650,28 @@ declare const anatomy: Omit<{
|
|
|
650
650
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
651
651
|
}>;
|
|
652
652
|
}, "parts">;
|
|
653
|
-
|
|
653
|
+
extendWith: <V_18 extends string>(...parts: V_18[]) => Omit<{
|
|
654
654
|
parts: <U extends string>(...parts: U[]) => Omit<{
|
|
655
655
|
parts: any;
|
|
656
|
-
|
|
656
|
+
extendWith: <V extends string>(...parts: V[]) => Omit<{
|
|
657
657
|
parts: any;
|
|
658
|
-
|
|
658
|
+
extendWith: <V_1 extends string>(...parts: V_1[]) => Omit<{
|
|
659
659
|
parts: any;
|
|
660
|
-
|
|
660
|
+
extendWith: <V_2 extends string>(...parts: V_2[]) => Omit<{
|
|
661
661
|
parts: any;
|
|
662
|
-
|
|
662
|
+
extendWith: <V_3 extends string>(...parts: V_3[]) => Omit<{
|
|
663
663
|
parts: any;
|
|
664
|
-
|
|
664
|
+
extendWith: <V_4 extends string>(...parts: V_4[]) => Omit<{
|
|
665
665
|
parts: any;
|
|
666
|
-
|
|
666
|
+
extendWith: <V_5 extends string>(...parts: V_5[]) => Omit<{
|
|
667
667
|
parts: any;
|
|
668
|
-
|
|
668
|
+
extendWith: <V_6 extends string>(...parts: V_6[]) => Omit<{
|
|
669
669
|
parts: any;
|
|
670
|
-
|
|
670
|
+
extendWith: <V_7 extends string>(...parts: V_7[]) => Omit<{
|
|
671
671
|
parts: any;
|
|
672
|
-
|
|
672
|
+
extendWith: <V_8 extends string>(...parts: V_8[]) => Omit<{
|
|
673
673
|
parts: any;
|
|
674
|
-
|
|
674
|
+
extendWith: <V_9 extends string>(...parts: V_9[]) => Omit<any, "parts">;
|
|
675
675
|
build: () => Record<U | V | V_1 | V_2 | V_3 | V_4 | V_5 | V_6 | V_7 | V_8, {
|
|
676
676
|
selector: string;
|
|
677
677
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
@@ -722,28 +722,28 @@ declare const anatomy: Omit<{
|
|
|
722
722
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
723
723
|
}>;
|
|
724
724
|
}, "parts">;
|
|
725
|
-
|
|
725
|
+
extendWith: <V_19 extends string>(...parts: V_19[]) => Omit<{
|
|
726
726
|
parts: <U extends string>(...parts: U[]) => Omit<{
|
|
727
727
|
parts: any;
|
|
728
|
-
|
|
728
|
+
extendWith: <V extends string>(...parts: V[]) => Omit<{
|
|
729
729
|
parts: any;
|
|
730
|
-
|
|
730
|
+
extendWith: <V_1 extends string>(...parts: V_1[]) => Omit<{
|
|
731
731
|
parts: any;
|
|
732
|
-
|
|
732
|
+
extendWith: <V_2 extends string>(...parts: V_2[]) => Omit<{
|
|
733
733
|
parts: any;
|
|
734
|
-
|
|
734
|
+
extendWith: <V_3 extends string>(...parts: V_3[]) => Omit<{
|
|
735
735
|
parts: any;
|
|
736
|
-
|
|
736
|
+
extendWith: <V_4 extends string>(...parts: V_4[]) => Omit<{
|
|
737
737
|
parts: any;
|
|
738
|
-
|
|
738
|
+
extendWith: <V_5 extends string>(...parts: V_5[]) => Omit<{
|
|
739
739
|
parts: any;
|
|
740
|
-
|
|
740
|
+
extendWith: <V_6 extends string>(...parts: V_6[]) => Omit<{
|
|
741
741
|
parts: any;
|
|
742
|
-
|
|
742
|
+
extendWith: <V_7 extends string>(...parts: V_7[]) => Omit<{
|
|
743
743
|
parts: any;
|
|
744
|
-
|
|
744
|
+
extendWith: <V_8 extends string>(...parts: V_8[]) => Omit<{
|
|
745
745
|
parts: any;
|
|
746
|
-
|
|
746
|
+
extendWith: <V_9 extends string>(...parts: V_9[]) => Omit<any, "parts">;
|
|
747
747
|
build: () => Record<U | V | V_1 | V_2 | V_3 | V_4 | V_5 | V_6 | V_7 | V_8, {
|
|
748
748
|
selector: string;
|
|
749
749
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
@@ -794,73 +794,73 @@ declare const anatomy: Omit<{
|
|
|
794
794
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
795
795
|
}>;
|
|
796
796
|
}, "parts">;
|
|
797
|
-
|
|
798
|
-
build: () => Record<"root" | "label" | "
|
|
797
|
+
extendWith: <V_20 extends string>(...parts: V_20[]) => Omit<any, "parts">;
|
|
798
|
+
build: () => Record<"root" | "label" | "input" | "control" | "incrementTrigger" | "decrementTrigger" | "scrubber" | V_10 | V_11 | V_12 | V_13 | V_14 | V_15 | V_16 | V_17 | V_18 | V_19, {
|
|
799
799
|
selector: string;
|
|
800
800
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
801
801
|
}>;
|
|
802
802
|
}, "parts">;
|
|
803
|
-
build: () => Record<"root" | "label" | "
|
|
803
|
+
build: () => Record<"root" | "label" | "input" | "control" | "incrementTrigger" | "decrementTrigger" | "scrubber" | V_10 | V_11 | V_12 | V_13 | V_14 | V_15 | V_16 | V_17 | V_18, {
|
|
804
804
|
selector: string;
|
|
805
805
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
806
806
|
}>;
|
|
807
807
|
}, "parts">;
|
|
808
|
-
build: () => Record<"root" | "label" | "
|
|
808
|
+
build: () => Record<"root" | "label" | "input" | "control" | "incrementTrigger" | "decrementTrigger" | "scrubber" | V_10 | V_11 | V_12 | V_13 | V_14 | V_15 | V_16 | V_17, {
|
|
809
809
|
selector: string;
|
|
810
810
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
811
811
|
}>;
|
|
812
812
|
}, "parts">;
|
|
813
|
-
build: () => Record<"root" | "label" | "
|
|
813
|
+
build: () => Record<"root" | "label" | "input" | "control" | "incrementTrigger" | "decrementTrigger" | "scrubber" | V_10 | V_11 | V_12 | V_13 | V_14 | V_15 | V_16, {
|
|
814
814
|
selector: string;
|
|
815
815
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
816
816
|
}>;
|
|
817
817
|
}, "parts">;
|
|
818
|
-
build: () => Record<"root" | "label" | "
|
|
818
|
+
build: () => Record<"root" | "label" | "input" | "control" | "incrementTrigger" | "decrementTrigger" | "scrubber" | V_10 | V_11 | V_12 | V_13 | V_14 | V_15, {
|
|
819
819
|
selector: string;
|
|
820
820
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
821
821
|
}>;
|
|
822
822
|
}, "parts">;
|
|
823
|
-
build: () => Record<"root" | "label" | "
|
|
823
|
+
build: () => Record<"root" | "label" | "input" | "control" | "incrementTrigger" | "decrementTrigger" | "scrubber" | V_10 | V_11 | V_12 | V_13 | V_14, {
|
|
824
824
|
selector: string;
|
|
825
825
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
826
826
|
}>;
|
|
827
827
|
}, "parts">;
|
|
828
|
-
build: () => Record<"root" | "label" | "
|
|
828
|
+
build: () => Record<"root" | "label" | "input" | "control" | "incrementTrigger" | "decrementTrigger" | "scrubber" | V_10 | V_11 | V_12 | V_13, {
|
|
829
829
|
selector: string;
|
|
830
830
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
831
831
|
}>;
|
|
832
832
|
}, "parts">;
|
|
833
|
-
build: () => Record<"root" | "label" | "
|
|
833
|
+
build: () => Record<"root" | "label" | "input" | "control" | "incrementTrigger" | "decrementTrigger" | "scrubber" | V_10 | V_11 | V_12, {
|
|
834
834
|
selector: string;
|
|
835
835
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
836
836
|
}>;
|
|
837
837
|
}, "parts">;
|
|
838
|
-
build: () => Record<"root" | "label" | "
|
|
838
|
+
build: () => Record<"root" | "label" | "input" | "control" | "incrementTrigger" | "decrementTrigger" | "scrubber" | V_10 | V_11, {
|
|
839
839
|
selector: string;
|
|
840
840
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
841
841
|
}>;
|
|
842
842
|
}, "parts">;
|
|
843
|
-
build: () => Record<"root" | "label" | "
|
|
843
|
+
build: () => Record<"root" | "label" | "input" | "control" | "incrementTrigger" | "decrementTrigger" | "scrubber" | V_10, {
|
|
844
844
|
selector: string;
|
|
845
845
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
846
846
|
}>;
|
|
847
847
|
}, "parts">;
|
|
848
|
-
build: () => Record<"root" | "label" | "
|
|
848
|
+
build: () => Record<"root" | "label" | "input" | "control" | "incrementTrigger" | "decrementTrigger" | "scrubber", {
|
|
849
849
|
selector: string;
|
|
850
850
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
851
851
|
}>;
|
|
852
852
|
}, "parts">;
|
|
853
853
|
|
|
854
|
-
|
|
855
|
-
|
|
854
|
+
type ValidityState = "rangeUnderflow" | "rangeOverflow";
|
|
855
|
+
type ElementIds = Partial<{
|
|
856
856
|
root: string;
|
|
857
857
|
label: string;
|
|
858
858
|
input: string;
|
|
859
|
-
|
|
860
|
-
|
|
859
|
+
incrementTrigger: string;
|
|
860
|
+
decrementTrigger: string;
|
|
861
861
|
scrubber: string;
|
|
862
862
|
}>;
|
|
863
|
-
|
|
863
|
+
type IntlTranslations = {
|
|
864
864
|
/**
|
|
865
865
|
* Function that returns the human-readable value.
|
|
866
866
|
* It is used to set the `aria-valuetext` property of the input
|
|
@@ -875,11 +875,11 @@ declare type IntlTranslations = {
|
|
|
875
875
|
*/
|
|
876
876
|
decrementLabel: string;
|
|
877
877
|
};
|
|
878
|
-
|
|
878
|
+
type Value = {
|
|
879
879
|
value: string;
|
|
880
880
|
valueAsNumber: number;
|
|
881
881
|
};
|
|
882
|
-
|
|
882
|
+
type PublicContext = DirectionProperty & CommonProperties & {
|
|
883
883
|
/**
|
|
884
884
|
* The ids of the elements in the number input. Useful for composition.
|
|
885
885
|
*/
|
|
@@ -1002,8 +1002,8 @@ declare type PublicContext = DirectionProperty & CommonProperties & {
|
|
|
1002
1002
|
*/
|
|
1003
1003
|
spinOnPress?: boolean;
|
|
1004
1004
|
};
|
|
1005
|
-
|
|
1006
|
-
|
|
1005
|
+
type UserDefinedContext = RequiredBy<PublicContext, "id">;
|
|
1006
|
+
type ComputedContext = Readonly<{
|
|
1007
1007
|
/**
|
|
1008
1008
|
* @computed
|
|
1009
1009
|
* The value of the input as a number
|
|
@@ -1055,14 +1055,14 @@ declare type ComputedContext = Readonly<{
|
|
|
1055
1055
|
*/
|
|
1056
1056
|
isRtl: boolean;
|
|
1057
1057
|
}>;
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1058
|
+
type PrivateContext = Context<{}>;
|
|
1059
|
+
type MachineContext = PublicContext & PrivateContext & ComputedContext;
|
|
1060
|
+
type MachineState = {
|
|
1061
1061
|
value: "unknown" | "idle" | "focused" | "spinning" | "before:spin" | "scrubbing";
|
|
1062
1062
|
tags: "focus";
|
|
1063
1063
|
};
|
|
1064
|
-
|
|
1065
|
-
|
|
1064
|
+
type State = StateMachine.State<MachineContext, MachineState>;
|
|
1065
|
+
type Send = StateMachine.Send<StateMachine.AnyEventObject>;
|
|
1066
1066
|
|
|
1067
1067
|
declare function connect<T extends PropTypes>(state: State, send: Send, normalize: NormalizeProps<T>): {
|
|
1068
1068
|
isFocused: boolean;
|
|
@@ -1080,10 +1080,10 @@ declare function connect<T extends PropTypes>(state: State, send: Send, normaliz
|
|
|
1080
1080
|
blur(): void;
|
|
1081
1081
|
rootProps: T["element"];
|
|
1082
1082
|
labelProps: T["label"];
|
|
1083
|
-
|
|
1083
|
+
controlProps: T["element"];
|
|
1084
1084
|
inputProps: T["input"];
|
|
1085
|
-
|
|
1086
|
-
|
|
1085
|
+
decrementTriggerProps: T["button"];
|
|
1086
|
+
incrementTriggerProps: T["button"];
|
|
1087
1087
|
scrubberProps: T["element"];
|
|
1088
1088
|
};
|
|
1089
1089
|
|
package/dist/index.js
CHANGED
|
@@ -28,7 +28,15 @@ module.exports = __toCommonJS(src_exports);
|
|
|
28
28
|
|
|
29
29
|
// src/number-input.anatomy.ts
|
|
30
30
|
var import_anatomy = require("@zag-js/anatomy");
|
|
31
|
-
var anatomy = (0, import_anatomy.createAnatomy)("numberInput").parts(
|
|
31
|
+
var anatomy = (0, import_anatomy.createAnatomy)("numberInput").parts(
|
|
32
|
+
"root",
|
|
33
|
+
"label",
|
|
34
|
+
"input",
|
|
35
|
+
"control",
|
|
36
|
+
"incrementTrigger",
|
|
37
|
+
"decrementTrigger",
|
|
38
|
+
"scrubber"
|
|
39
|
+
);
|
|
32
40
|
var parts = anatomy.build();
|
|
33
41
|
|
|
34
42
|
// ../../utilities/dom/dist/index.mjs
|
|
@@ -289,13 +297,13 @@ var dom = defineDomHelpers({
|
|
|
289
297
|
var _a, _b;
|
|
290
298
|
return (_b = (_a = ctx.ids) == null ? void 0 : _a.input) != null ? _b : `number-input:${ctx.id}:input`;
|
|
291
299
|
},
|
|
292
|
-
|
|
300
|
+
getIncrementTriggerId: (ctx) => {
|
|
293
301
|
var _a, _b;
|
|
294
|
-
return (_b = (_a = ctx.ids) == null ? void 0 : _a.
|
|
302
|
+
return (_b = (_a = ctx.ids) == null ? void 0 : _a.incrementTrigger) != null ? _b : `number-input:${ctx.id}:inc`;
|
|
295
303
|
},
|
|
296
|
-
|
|
304
|
+
getDecrementTriggerId: (ctx) => {
|
|
297
305
|
var _a, _b;
|
|
298
|
-
return (_b = (_a = ctx.ids) == null ? void 0 : _a.
|
|
306
|
+
return (_b = (_a = ctx.ids) == null ? void 0 : _a.decrementTrigger) != null ? _b : `number-input:${ctx.id}:dec`;
|
|
299
307
|
},
|
|
300
308
|
getScrubberId: (ctx) => {
|
|
301
309
|
var _a, _b;
|
|
@@ -307,17 +315,17 @@ var dom = defineDomHelpers({
|
|
|
307
315
|
return (_b = (_a = ctx.ids) == null ? void 0 : _a.label) != null ? _b : `number-input:${ctx.id}:label`;
|
|
308
316
|
},
|
|
309
317
|
getInputEl: (ctx) => dom.getById(ctx, dom.getInputId(ctx)),
|
|
310
|
-
|
|
311
|
-
|
|
318
|
+
getIncrementTriggerEl: (ctx) => dom.getById(ctx, dom.getIncrementTriggerId(ctx)),
|
|
319
|
+
getDecrementTriggerEl: (ctx) => dom.getById(ctx, dom.getDecrementTriggerId(ctx)),
|
|
312
320
|
getScrubberEl: (ctx) => dom.getById(ctx, dom.getScrubberId(ctx)),
|
|
313
321
|
getCursorEl: (ctx) => dom.getDoc(ctx).getElementById(dom.getCursorId(ctx)),
|
|
314
|
-
|
|
322
|
+
getPressedTriggerEl: (ctx, hint = ctx.hint) => {
|
|
315
323
|
let btnEl = null;
|
|
316
324
|
if (hint === "increment") {
|
|
317
|
-
btnEl = dom.
|
|
325
|
+
btnEl = dom.getIncrementTriggerEl(ctx);
|
|
318
326
|
}
|
|
319
327
|
if (hint === "decrement") {
|
|
320
|
-
btnEl = dom.
|
|
328
|
+
btnEl = dom.getDecrementTriggerEl(ctx);
|
|
321
329
|
}
|
|
322
330
|
return btnEl;
|
|
323
331
|
},
|
|
@@ -489,8 +497,8 @@ function connect(state, send, normalize) {
|
|
|
489
497
|
id: dom.getLabelId(state.context),
|
|
490
498
|
htmlFor: dom.getInputId(state.context)
|
|
491
499
|
}),
|
|
492
|
-
|
|
493
|
-
...parts.
|
|
500
|
+
controlProps: normalize.element({
|
|
501
|
+
...parts.control.attrs,
|
|
494
502
|
role: "group",
|
|
495
503
|
"aria-disabled": isDisabled,
|
|
496
504
|
"data-disabled": dataAttr(isDisabled),
|
|
@@ -561,10 +569,9 @@ function connect(state, send, normalize) {
|
|
|
561
569
|
}
|
|
562
570
|
}
|
|
563
571
|
}),
|
|
564
|
-
|
|
565
|
-
...parts.
|
|
566
|
-
|
|
567
|
-
id: dom.getDecButtonId(state.context),
|
|
572
|
+
decrementTriggerProps: normalize.button({
|
|
573
|
+
...parts.decrementTrigger.attrs,
|
|
574
|
+
id: dom.getDecrementTriggerId(state.context),
|
|
568
575
|
disabled: isDecrementDisabled,
|
|
569
576
|
"data-disabled": dataAttr(isDecrementDisabled),
|
|
570
577
|
"aria-label": translations.decrementLabel,
|
|
@@ -586,10 +593,9 @@ function connect(state, send, normalize) {
|
|
|
586
593
|
send({ type: "PRESS_UP", hint: "decrement" });
|
|
587
594
|
}
|
|
588
595
|
}),
|
|
589
|
-
|
|
590
|
-
...parts.
|
|
591
|
-
|
|
592
|
-
id: dom.getIncButtonId(state.context),
|
|
596
|
+
incrementTriggerProps: normalize.button({
|
|
597
|
+
...parts.incrementTrigger.attrs,
|
|
598
|
+
id: dom.getIncrementTriggerId(state.context),
|
|
593
599
|
disabled: isIncrementDisabled,
|
|
594
600
|
"data-disabled": dataAttr(isIncrementDisabled),
|
|
595
601
|
"aria-label": translations.incrementLabel,
|
|
@@ -908,7 +914,7 @@ function machine(userContext) {
|
|
|
908
914
|
return dom.preventTextSelection(ctx2);
|
|
909
915
|
},
|
|
910
916
|
trackButtonDisabled(ctx2, _evt, { send }) {
|
|
911
|
-
const btn = dom.
|
|
917
|
+
const btn = dom.getPressedTriggerEl(ctx2, ctx2.hint);
|
|
912
918
|
return observeAttributes(btn, "disabled", () => send("PRESS_UP"));
|
|
913
919
|
},
|
|
914
920
|
attachWheelListener(ctx2, _evt, { send }) {
|
|
@@ -1012,7 +1018,7 @@ function machine(userContext) {
|
|
|
1012
1018
|
var _a;
|
|
1013
1019
|
let srcElement = null;
|
|
1014
1020
|
if (evt.type === "PRESS_DOWN") {
|
|
1015
|
-
srcElement = dom.
|
|
1021
|
+
srcElement = dom.getPressedTriggerEl(ctx2, evt.hint);
|
|
1016
1022
|
} else if (evt.type === "FOCUS") {
|
|
1017
1023
|
srcElement = dom.getInputEl(ctx2);
|
|
1018
1024
|
} else if (evt.type === "PRESS_DOWN_SCRUBBER") {
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
// src/number-input.anatomy.ts
|
|
2
2
|
import { createAnatomy } from "@zag-js/anatomy";
|
|
3
|
-
var anatomy = createAnatomy("numberInput").parts(
|
|
3
|
+
var anatomy = createAnatomy("numberInput").parts(
|
|
4
|
+
"root",
|
|
5
|
+
"label",
|
|
6
|
+
"input",
|
|
7
|
+
"control",
|
|
8
|
+
"incrementTrigger",
|
|
9
|
+
"decrementTrigger",
|
|
10
|
+
"scrubber"
|
|
11
|
+
);
|
|
4
12
|
var parts = anatomy.build();
|
|
5
13
|
|
|
6
14
|
// ../../utilities/dom/dist/index.mjs
|
|
@@ -261,13 +269,13 @@ var dom = defineDomHelpers({
|
|
|
261
269
|
var _a, _b;
|
|
262
270
|
return (_b = (_a = ctx.ids) == null ? void 0 : _a.input) != null ? _b : `number-input:${ctx.id}:input`;
|
|
263
271
|
},
|
|
264
|
-
|
|
272
|
+
getIncrementTriggerId: (ctx) => {
|
|
265
273
|
var _a, _b;
|
|
266
|
-
return (_b = (_a = ctx.ids) == null ? void 0 : _a.
|
|
274
|
+
return (_b = (_a = ctx.ids) == null ? void 0 : _a.incrementTrigger) != null ? _b : `number-input:${ctx.id}:inc`;
|
|
267
275
|
},
|
|
268
|
-
|
|
276
|
+
getDecrementTriggerId: (ctx) => {
|
|
269
277
|
var _a, _b;
|
|
270
|
-
return (_b = (_a = ctx.ids) == null ? void 0 : _a.
|
|
278
|
+
return (_b = (_a = ctx.ids) == null ? void 0 : _a.decrementTrigger) != null ? _b : `number-input:${ctx.id}:dec`;
|
|
271
279
|
},
|
|
272
280
|
getScrubberId: (ctx) => {
|
|
273
281
|
var _a, _b;
|
|
@@ -279,17 +287,17 @@ var dom = defineDomHelpers({
|
|
|
279
287
|
return (_b = (_a = ctx.ids) == null ? void 0 : _a.label) != null ? _b : `number-input:${ctx.id}:label`;
|
|
280
288
|
},
|
|
281
289
|
getInputEl: (ctx) => dom.getById(ctx, dom.getInputId(ctx)),
|
|
282
|
-
|
|
283
|
-
|
|
290
|
+
getIncrementTriggerEl: (ctx) => dom.getById(ctx, dom.getIncrementTriggerId(ctx)),
|
|
291
|
+
getDecrementTriggerEl: (ctx) => dom.getById(ctx, dom.getDecrementTriggerId(ctx)),
|
|
284
292
|
getScrubberEl: (ctx) => dom.getById(ctx, dom.getScrubberId(ctx)),
|
|
285
293
|
getCursorEl: (ctx) => dom.getDoc(ctx).getElementById(dom.getCursorId(ctx)),
|
|
286
|
-
|
|
294
|
+
getPressedTriggerEl: (ctx, hint = ctx.hint) => {
|
|
287
295
|
let btnEl = null;
|
|
288
296
|
if (hint === "increment") {
|
|
289
|
-
btnEl = dom.
|
|
297
|
+
btnEl = dom.getIncrementTriggerEl(ctx);
|
|
290
298
|
}
|
|
291
299
|
if (hint === "decrement") {
|
|
292
|
-
btnEl = dom.
|
|
300
|
+
btnEl = dom.getDecrementTriggerEl(ctx);
|
|
293
301
|
}
|
|
294
302
|
return btnEl;
|
|
295
303
|
},
|
|
@@ -461,8 +469,8 @@ function connect(state, send, normalize) {
|
|
|
461
469
|
id: dom.getLabelId(state.context),
|
|
462
470
|
htmlFor: dom.getInputId(state.context)
|
|
463
471
|
}),
|
|
464
|
-
|
|
465
|
-
...parts.
|
|
472
|
+
controlProps: normalize.element({
|
|
473
|
+
...parts.control.attrs,
|
|
466
474
|
role: "group",
|
|
467
475
|
"aria-disabled": isDisabled,
|
|
468
476
|
"data-disabled": dataAttr(isDisabled),
|
|
@@ -533,10 +541,9 @@ function connect(state, send, normalize) {
|
|
|
533
541
|
}
|
|
534
542
|
}
|
|
535
543
|
}),
|
|
536
|
-
|
|
537
|
-
...parts.
|
|
538
|
-
|
|
539
|
-
id: dom.getDecButtonId(state.context),
|
|
544
|
+
decrementTriggerProps: normalize.button({
|
|
545
|
+
...parts.decrementTrigger.attrs,
|
|
546
|
+
id: dom.getDecrementTriggerId(state.context),
|
|
540
547
|
disabled: isDecrementDisabled,
|
|
541
548
|
"data-disabled": dataAttr(isDecrementDisabled),
|
|
542
549
|
"aria-label": translations.decrementLabel,
|
|
@@ -558,10 +565,9 @@ function connect(state, send, normalize) {
|
|
|
558
565
|
send({ type: "PRESS_UP", hint: "decrement" });
|
|
559
566
|
}
|
|
560
567
|
}),
|
|
561
|
-
|
|
562
|
-
...parts.
|
|
563
|
-
|
|
564
|
-
id: dom.getIncButtonId(state.context),
|
|
568
|
+
incrementTriggerProps: normalize.button({
|
|
569
|
+
...parts.incrementTrigger.attrs,
|
|
570
|
+
id: dom.getIncrementTriggerId(state.context),
|
|
565
571
|
disabled: isIncrementDisabled,
|
|
566
572
|
"data-disabled": dataAttr(isIncrementDisabled),
|
|
567
573
|
"aria-label": translations.incrementLabel,
|
|
@@ -880,7 +886,7 @@ function machine(userContext) {
|
|
|
880
886
|
return dom.preventTextSelection(ctx2);
|
|
881
887
|
},
|
|
882
888
|
trackButtonDisabled(ctx2, _evt, { send }) {
|
|
883
|
-
const btn = dom.
|
|
889
|
+
const btn = dom.getPressedTriggerEl(ctx2, ctx2.hint);
|
|
884
890
|
return observeAttributes(btn, "disabled", () => send("PRESS_UP"));
|
|
885
891
|
},
|
|
886
892
|
attachWheelListener(ctx2, _evt, { send }) {
|
|
@@ -984,7 +990,7 @@ function machine(userContext) {
|
|
|
984
990
|
var _a;
|
|
985
991
|
let srcElement = null;
|
|
986
992
|
if (evt.type === "PRESS_DOWN") {
|
|
987
|
-
srcElement = dom.
|
|
993
|
+
srcElement = dom.getPressedTriggerEl(ctx2, evt.hint);
|
|
988
994
|
} else if (evt.type === "FOCUS") {
|
|
989
995
|
srcElement = dom.getInputEl(ctx2);
|
|
990
996
|
} else if (evt.type === "PRESS_DOWN_SCRUBBER") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/number-input",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"description": "Core logic for the number-input widget implemented as a state machine",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@zag-js/anatomy": "0.1.1",
|
|
33
|
-
"@zag-js/core": "0.2.
|
|
33
|
+
"@zag-js/core": "0.2.3",
|
|
34
34
|
"@zag-js/types": "0.3.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|