@zag-js/splitter 0.2.3 → 0.2.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/index.d.ts +130 -130
- 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,7 +794,7 @@ declare const anatomy: Omit<{
|
|
|
794
794
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
795
795
|
}>;
|
|
796
796
|
}, "parts">;
|
|
797
|
-
|
|
797
|
+
extendWith: <V_20 extends string>(...parts: V_20[]) => Omit<any, "parts">;
|
|
798
798
|
build: () => Record<"splitter" | "root" | "secondaryPane" | "primaryPane" | "toggleButton" | "label" | 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>;
|
|
@@ -851,7 +851,7 @@ declare const anatomy: Omit<{
|
|
|
851
851
|
}>;
|
|
852
852
|
}, "parts">;
|
|
853
853
|
|
|
854
|
-
|
|
854
|
+
type ElementIds = Partial<{
|
|
855
855
|
root: string;
|
|
856
856
|
splitter: string;
|
|
857
857
|
label: string;
|
|
@@ -859,7 +859,7 @@ declare type ElementIds = Partial<{
|
|
|
859
859
|
primaryPane: string;
|
|
860
860
|
secondaryPane: string;
|
|
861
861
|
}>;
|
|
862
|
-
|
|
862
|
+
type PublicContext = DirectionProperty & CommonProperties & {
|
|
863
863
|
/**
|
|
864
864
|
* The ids of the elements in the splitter. Useful for composition.
|
|
865
865
|
*/
|
|
@@ -916,8 +916,8 @@ declare type PublicContext = DirectionProperty & CommonProperties & {
|
|
|
916
916
|
*/
|
|
917
917
|
snapOffset: number;
|
|
918
918
|
};
|
|
919
|
-
|
|
920
|
-
|
|
919
|
+
type UserDefinedContext = RequiredBy<PublicContext, "id">;
|
|
920
|
+
type ComputedContext = Readonly<{
|
|
921
921
|
/**
|
|
922
922
|
* @computed
|
|
923
923
|
* Whether the primary pane is at its minimum size.
|
|
@@ -934,14 +934,14 @@ declare type ComputedContext = Readonly<{
|
|
|
934
934
|
*/
|
|
935
935
|
isHorizontal: boolean;
|
|
936
936
|
}>;
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
937
|
+
type PrivateContext = Context<{}>;
|
|
938
|
+
type MachineContext = PublicContext & ComputedContext & PrivateContext;
|
|
939
|
+
type MachineState = {
|
|
940
940
|
value: "unknown" | "idle" | "hover:temp" | "hover" | "dragging" | "focused";
|
|
941
941
|
tags: "focus";
|
|
942
942
|
};
|
|
943
|
-
|
|
944
|
-
|
|
943
|
+
type State = StateMachine.State<MachineContext, MachineState>;
|
|
944
|
+
type Send = StateMachine.Send<StateMachine.AnyEventObject>;
|
|
945
945
|
|
|
946
946
|
declare function connect<T extends PropTypes>(state: State, send: Send, normalize: NormalizeProps<T>): {
|
|
947
947
|
isCollapsed: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/splitter",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "Core logic for the splitter widget implemented as a state machine",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@zag-js/anatomy": "0.1.1",
|
|
34
|
-
"@zag-js/core": "0.2.
|
|
34
|
+
"@zag-js/core": "0.2.3",
|
|
35
35
|
"@zag-js/types": "0.3.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|