@zag-js/tooltip 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 +142 -142
- package/dist/index.js +4 -11
- package/dist/index.mjs +4 -11
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -6,25 +6,25 @@ import { PositioningOptions } from '@zag-js/popper';
|
|
|
6
6
|
declare const anatomy: Omit<{
|
|
7
7
|
parts: <U extends string>(...parts: U[]) => Omit<{
|
|
8
8
|
parts: any;
|
|
9
|
-
|
|
9
|
+
extendWith: <V extends string>(...parts: V[]) => Omit<{
|
|
10
10
|
parts: any;
|
|
11
|
-
|
|
11
|
+
extendWith: <V_1 extends string>(...parts: V_1[]) => Omit<{
|
|
12
12
|
parts: any;
|
|
13
|
-
|
|
13
|
+
extendWith: <V_2 extends string>(...parts: V_2[]) => Omit<{
|
|
14
14
|
parts: any;
|
|
15
|
-
|
|
15
|
+
extendWith: <V_3 extends string>(...parts: V_3[]) => Omit<{
|
|
16
16
|
parts: any;
|
|
17
|
-
|
|
17
|
+
extendWith: <V_4 extends string>(...parts: V_4[]) => Omit<{
|
|
18
18
|
parts: any;
|
|
19
|
-
|
|
19
|
+
extendWith: <V_5 extends string>(...parts: V_5[]) => Omit<{
|
|
20
20
|
parts: any;
|
|
21
|
-
|
|
21
|
+
extendWith: <V_6 extends string>(...parts: V_6[]) => Omit<{
|
|
22
22
|
parts: any;
|
|
23
|
-
|
|
23
|
+
extendWith: <V_7 extends string>(...parts: V_7[]) => Omit<{
|
|
24
24
|
parts: any;
|
|
25
|
-
|
|
25
|
+
extendWith: <V_8 extends string>(...parts: V_8[]) => Omit<{
|
|
26
26
|
parts: any;
|
|
27
|
-
|
|
27
|
+
extendWith: <V_9 extends string>(...parts: V_9[]) => Omit<any, "parts">;
|
|
28
28
|
build: () => Record<U | V | V_1 | V_2 | V_3 | V_4 | V_5 | V_6 | V_7 | V_8, {
|
|
29
29
|
selector: string;
|
|
30
30
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
@@ -75,28 +75,28 @@ declare const anatomy: Omit<{
|
|
|
75
75
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
76
76
|
}>;
|
|
77
77
|
}, "parts">;
|
|
78
|
-
|
|
78
|
+
extendWith: <V_10 extends string>(...parts: V_10[]) => Omit<{
|
|
79
79
|
parts: <U extends string>(...parts: U[]) => Omit<{
|
|
80
80
|
parts: any;
|
|
81
|
-
|
|
81
|
+
extendWith: <V extends string>(...parts: V[]) => Omit<{
|
|
82
82
|
parts: any;
|
|
83
|
-
|
|
83
|
+
extendWith: <V_1 extends string>(...parts: V_1[]) => Omit<{
|
|
84
84
|
parts: any;
|
|
85
|
-
|
|
85
|
+
extendWith: <V_2 extends string>(...parts: V_2[]) => Omit<{
|
|
86
86
|
parts: any;
|
|
87
|
-
|
|
87
|
+
extendWith: <V_3 extends string>(...parts: V_3[]) => Omit<{
|
|
88
88
|
parts: any;
|
|
89
|
-
|
|
89
|
+
extendWith: <V_4 extends string>(...parts: V_4[]) => Omit<{
|
|
90
90
|
parts: any;
|
|
91
|
-
|
|
91
|
+
extendWith: <V_5 extends string>(...parts: V_5[]) => Omit<{
|
|
92
92
|
parts: any;
|
|
93
|
-
|
|
93
|
+
extendWith: <V_6 extends string>(...parts: V_6[]) => Omit<{
|
|
94
94
|
parts: any;
|
|
95
|
-
|
|
95
|
+
extendWith: <V_7 extends string>(...parts: V_7[]) => Omit<{
|
|
96
96
|
parts: any;
|
|
97
|
-
|
|
97
|
+
extendWith: <V_8 extends string>(...parts: V_8[]) => Omit<{
|
|
98
98
|
parts: any;
|
|
99
|
-
|
|
99
|
+
extendWith: <V_9 extends string>(...parts: V_9[]) => Omit<any, "parts">;
|
|
100
100
|
build: () => Record<U | V | V_1 | V_2 | V_3 | V_4 | V_5 | V_6 | V_7 | V_8, {
|
|
101
101
|
selector: string;
|
|
102
102
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
@@ -147,28 +147,28 @@ declare const anatomy: Omit<{
|
|
|
147
147
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
148
148
|
}>;
|
|
149
149
|
}, "parts">;
|
|
150
|
-
|
|
150
|
+
extendWith: <V_11 extends string>(...parts: V_11[]) => Omit<{
|
|
151
151
|
parts: <U extends string>(...parts: U[]) => Omit<{
|
|
152
152
|
parts: any;
|
|
153
|
-
|
|
153
|
+
extendWith: <V extends string>(...parts: V[]) => Omit<{
|
|
154
154
|
parts: any;
|
|
155
|
-
|
|
155
|
+
extendWith: <V_1 extends string>(...parts: V_1[]) => Omit<{
|
|
156
156
|
parts: any;
|
|
157
|
-
|
|
157
|
+
extendWith: <V_2 extends string>(...parts: V_2[]) => Omit<{
|
|
158
158
|
parts: any;
|
|
159
|
-
|
|
159
|
+
extendWith: <V_3 extends string>(...parts: V_3[]) => Omit<{
|
|
160
160
|
parts: any;
|
|
161
|
-
|
|
161
|
+
extendWith: <V_4 extends string>(...parts: V_4[]) => Omit<{
|
|
162
162
|
parts: any;
|
|
163
|
-
|
|
163
|
+
extendWith: <V_5 extends string>(...parts: V_5[]) => Omit<{
|
|
164
164
|
parts: any;
|
|
165
|
-
|
|
165
|
+
extendWith: <V_6 extends string>(...parts: V_6[]) => Omit<{
|
|
166
166
|
parts: any;
|
|
167
|
-
|
|
167
|
+
extendWith: <V_7 extends string>(...parts: V_7[]) => Omit<{
|
|
168
168
|
parts: any;
|
|
169
|
-
|
|
169
|
+
extendWith: <V_8 extends string>(...parts: V_8[]) => Omit<{
|
|
170
170
|
parts: any;
|
|
171
|
-
|
|
171
|
+
extendWith: <V_9 extends string>(...parts: V_9[]) => Omit<any, "parts">;
|
|
172
172
|
build: () => Record<U | V | V_1 | V_2 | V_3 | V_4 | V_5 | V_6 | V_7 | V_8, {
|
|
173
173
|
selector: string;
|
|
174
174
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
@@ -219,28 +219,28 @@ declare const anatomy: Omit<{
|
|
|
219
219
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
220
220
|
}>;
|
|
221
221
|
}, "parts">;
|
|
222
|
-
|
|
222
|
+
extendWith: <V_12 extends string>(...parts: V_12[]) => Omit<{
|
|
223
223
|
parts: <U extends string>(...parts: U[]) => Omit<{
|
|
224
224
|
parts: any;
|
|
225
|
-
|
|
225
|
+
extendWith: <V extends string>(...parts: V[]) => Omit<{
|
|
226
226
|
parts: any;
|
|
227
|
-
|
|
227
|
+
extendWith: <V_1 extends string>(...parts: V_1[]) => Omit<{
|
|
228
228
|
parts: any;
|
|
229
|
-
|
|
229
|
+
extendWith: <V_2 extends string>(...parts: V_2[]) => Omit<{
|
|
230
230
|
parts: any;
|
|
231
|
-
|
|
231
|
+
extendWith: <V_3 extends string>(...parts: V_3[]) => Omit<{
|
|
232
232
|
parts: any;
|
|
233
|
-
|
|
233
|
+
extendWith: <V_4 extends string>(...parts: V_4[]) => Omit<{
|
|
234
234
|
parts: any;
|
|
235
|
-
|
|
235
|
+
extendWith: <V_5 extends string>(...parts: V_5[]) => Omit<{
|
|
236
236
|
parts: any;
|
|
237
|
-
|
|
237
|
+
extendWith: <V_6 extends string>(...parts: V_6[]) => Omit<{
|
|
238
238
|
parts: any;
|
|
239
|
-
|
|
239
|
+
extendWith: <V_7 extends string>(...parts: V_7[]) => Omit<{
|
|
240
240
|
parts: any;
|
|
241
|
-
|
|
241
|
+
extendWith: <V_8 extends string>(...parts: V_8[]) => Omit<{
|
|
242
242
|
parts: any;
|
|
243
|
-
|
|
243
|
+
extendWith: <V_9 extends string>(...parts: V_9[]) => Omit<any, "parts">;
|
|
244
244
|
build: () => Record<U | V | V_1 | V_2 | V_3 | V_4 | V_5 | V_6 | V_7 | V_8, {
|
|
245
245
|
selector: string;
|
|
246
246
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
@@ -291,28 +291,28 @@ declare const anatomy: Omit<{
|
|
|
291
291
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
292
292
|
}>;
|
|
293
293
|
}, "parts">;
|
|
294
|
-
|
|
294
|
+
extendWith: <V_13 extends string>(...parts: V_13[]) => Omit<{
|
|
295
295
|
parts: <U extends string>(...parts: U[]) => Omit<{
|
|
296
296
|
parts: any;
|
|
297
|
-
|
|
297
|
+
extendWith: <V extends string>(...parts: V[]) => Omit<{
|
|
298
298
|
parts: any;
|
|
299
|
-
|
|
299
|
+
extendWith: <V_1 extends string>(...parts: V_1[]) => Omit<{
|
|
300
300
|
parts: any;
|
|
301
|
-
|
|
301
|
+
extendWith: <V_2 extends string>(...parts: V_2[]) => Omit<{
|
|
302
302
|
parts: any;
|
|
303
|
-
|
|
303
|
+
extendWith: <V_3 extends string>(...parts: V_3[]) => Omit<{
|
|
304
304
|
parts: any;
|
|
305
|
-
|
|
305
|
+
extendWith: <V_4 extends string>(...parts: V_4[]) => Omit<{
|
|
306
306
|
parts: any;
|
|
307
|
-
|
|
307
|
+
extendWith: <V_5 extends string>(...parts: V_5[]) => Omit<{
|
|
308
308
|
parts: any;
|
|
309
|
-
|
|
309
|
+
extendWith: <V_6 extends string>(...parts: V_6[]) => Omit<{
|
|
310
310
|
parts: any;
|
|
311
|
-
|
|
311
|
+
extendWith: <V_7 extends string>(...parts: V_7[]) => Omit<{
|
|
312
312
|
parts: any;
|
|
313
|
-
|
|
313
|
+
extendWith: <V_8 extends string>(...parts: V_8[]) => Omit<{
|
|
314
314
|
parts: any;
|
|
315
|
-
|
|
315
|
+
extendWith: <V_9 extends string>(...parts: V_9[]) => Omit<any, "parts">;
|
|
316
316
|
build: () => Record<U | V | V_1 | V_2 | V_3 | V_4 | V_5 | V_6 | V_7 | V_8, {
|
|
317
317
|
selector: string;
|
|
318
318
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
@@ -363,28 +363,28 @@ declare const anatomy: Omit<{
|
|
|
363
363
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
364
364
|
}>;
|
|
365
365
|
}, "parts">;
|
|
366
|
-
|
|
366
|
+
extendWith: <V_14 extends string>(...parts: V_14[]) => Omit<{
|
|
367
367
|
parts: <U extends string>(...parts: U[]) => Omit<{
|
|
368
368
|
parts: any;
|
|
369
|
-
|
|
369
|
+
extendWith: <V extends string>(...parts: V[]) => Omit<{
|
|
370
370
|
parts: any;
|
|
371
|
-
|
|
371
|
+
extendWith: <V_1 extends string>(...parts: V_1[]) => Omit<{
|
|
372
372
|
parts: any;
|
|
373
|
-
|
|
373
|
+
extendWith: <V_2 extends string>(...parts: V_2[]) => Omit<{
|
|
374
374
|
parts: any;
|
|
375
|
-
|
|
375
|
+
extendWith: <V_3 extends string>(...parts: V_3[]) => Omit<{
|
|
376
376
|
parts: any;
|
|
377
|
-
|
|
377
|
+
extendWith: <V_4 extends string>(...parts: V_4[]) => Omit<{
|
|
378
378
|
parts: any;
|
|
379
|
-
|
|
379
|
+
extendWith: <V_5 extends string>(...parts: V_5[]) => Omit<{
|
|
380
380
|
parts: any;
|
|
381
|
-
|
|
381
|
+
extendWith: <V_6 extends string>(...parts: V_6[]) => Omit<{
|
|
382
382
|
parts: any;
|
|
383
|
-
|
|
383
|
+
extendWith: <V_7 extends string>(...parts: V_7[]) => Omit<{
|
|
384
384
|
parts: any;
|
|
385
|
-
|
|
385
|
+
extendWith: <V_8 extends string>(...parts: V_8[]) => Omit<{
|
|
386
386
|
parts: any;
|
|
387
|
-
|
|
387
|
+
extendWith: <V_9 extends string>(...parts: V_9[]) => Omit<any, "parts">;
|
|
388
388
|
build: () => Record<U | V | V_1 | V_2 | V_3 | V_4 | V_5 | V_6 | V_7 | V_8, {
|
|
389
389
|
selector: string;
|
|
390
390
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
@@ -435,28 +435,28 @@ declare const anatomy: Omit<{
|
|
|
435
435
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
436
436
|
}>;
|
|
437
437
|
}, "parts">;
|
|
438
|
-
|
|
438
|
+
extendWith: <V_15 extends string>(...parts: V_15[]) => Omit<{
|
|
439
439
|
parts: <U extends string>(...parts: U[]) => Omit<{
|
|
440
440
|
parts: any;
|
|
441
|
-
|
|
441
|
+
extendWith: <V extends string>(...parts: V[]) => Omit<{
|
|
442
442
|
parts: any;
|
|
443
|
-
|
|
443
|
+
extendWith: <V_1 extends string>(...parts: V_1[]) => Omit<{
|
|
444
444
|
parts: any;
|
|
445
|
-
|
|
445
|
+
extendWith: <V_2 extends string>(...parts: V_2[]) => Omit<{
|
|
446
446
|
parts: any;
|
|
447
|
-
|
|
447
|
+
extendWith: <V_3 extends string>(...parts: V_3[]) => Omit<{
|
|
448
448
|
parts: any;
|
|
449
|
-
|
|
449
|
+
extendWith: <V_4 extends string>(...parts: V_4[]) => Omit<{
|
|
450
450
|
parts: any;
|
|
451
|
-
|
|
451
|
+
extendWith: <V_5 extends string>(...parts: V_5[]) => Omit<{
|
|
452
452
|
parts: any;
|
|
453
|
-
|
|
453
|
+
extendWith: <V_6 extends string>(...parts: V_6[]) => Omit<{
|
|
454
454
|
parts: any;
|
|
455
|
-
|
|
455
|
+
extendWith: <V_7 extends string>(...parts: V_7[]) => Omit<{
|
|
456
456
|
parts: any;
|
|
457
|
-
|
|
457
|
+
extendWith: <V_8 extends string>(...parts: V_8[]) => Omit<{
|
|
458
458
|
parts: any;
|
|
459
|
-
|
|
459
|
+
extendWith: <V_9 extends string>(...parts: V_9[]) => Omit<any, "parts">;
|
|
460
460
|
build: () => Record<U | V | V_1 | V_2 | V_3 | V_4 | V_5 | V_6 | V_7 | V_8, {
|
|
461
461
|
selector: string;
|
|
462
462
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
@@ -507,28 +507,28 @@ declare const anatomy: Omit<{
|
|
|
507
507
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
508
508
|
}>;
|
|
509
509
|
}, "parts">;
|
|
510
|
-
|
|
510
|
+
extendWith: <V_16 extends string>(...parts: V_16[]) => Omit<{
|
|
511
511
|
parts: <U extends string>(...parts: U[]) => Omit<{
|
|
512
512
|
parts: any;
|
|
513
|
-
|
|
513
|
+
extendWith: <V extends string>(...parts: V[]) => Omit<{
|
|
514
514
|
parts: any;
|
|
515
|
-
|
|
515
|
+
extendWith: <V_1 extends string>(...parts: V_1[]) => Omit<{
|
|
516
516
|
parts: any;
|
|
517
|
-
|
|
517
|
+
extendWith: <V_2 extends string>(...parts: V_2[]) => Omit<{
|
|
518
518
|
parts: any;
|
|
519
|
-
|
|
519
|
+
extendWith: <V_3 extends string>(...parts: V_3[]) => Omit<{
|
|
520
520
|
parts: any;
|
|
521
|
-
|
|
521
|
+
extendWith: <V_4 extends string>(...parts: V_4[]) => Omit<{
|
|
522
522
|
parts: any;
|
|
523
|
-
|
|
523
|
+
extendWith: <V_5 extends string>(...parts: V_5[]) => Omit<{
|
|
524
524
|
parts: any;
|
|
525
|
-
|
|
525
|
+
extendWith: <V_6 extends string>(...parts: V_6[]) => Omit<{
|
|
526
526
|
parts: any;
|
|
527
|
-
|
|
527
|
+
extendWith: <V_7 extends string>(...parts: V_7[]) => Omit<{
|
|
528
528
|
parts: any;
|
|
529
|
-
|
|
529
|
+
extendWith: <V_8 extends string>(...parts: V_8[]) => Omit<{
|
|
530
530
|
parts: any;
|
|
531
|
-
|
|
531
|
+
extendWith: <V_9 extends string>(...parts: V_9[]) => Omit<any, "parts">;
|
|
532
532
|
build: () => Record<U | V | V_1 | V_2 | V_3 | V_4 | V_5 | V_6 | V_7 | V_8, {
|
|
533
533
|
selector: string;
|
|
534
534
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
@@ -579,28 +579,28 @@ declare const anatomy: Omit<{
|
|
|
579
579
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
580
580
|
}>;
|
|
581
581
|
}, "parts">;
|
|
582
|
-
|
|
582
|
+
extendWith: <V_17 extends string>(...parts: V_17[]) => Omit<{
|
|
583
583
|
parts: <U extends string>(...parts: U[]) => Omit<{
|
|
584
584
|
parts: any;
|
|
585
|
-
|
|
585
|
+
extendWith: <V extends string>(...parts: V[]) => Omit<{
|
|
586
586
|
parts: any;
|
|
587
|
-
|
|
587
|
+
extendWith: <V_1 extends string>(...parts: V_1[]) => Omit<{
|
|
588
588
|
parts: any;
|
|
589
|
-
|
|
589
|
+
extendWith: <V_2 extends string>(...parts: V_2[]) => Omit<{
|
|
590
590
|
parts: any;
|
|
591
|
-
|
|
591
|
+
extendWith: <V_3 extends string>(...parts: V_3[]) => Omit<{
|
|
592
592
|
parts: any;
|
|
593
|
-
|
|
593
|
+
extendWith: <V_4 extends string>(...parts: V_4[]) => Omit<{
|
|
594
594
|
parts: any;
|
|
595
|
-
|
|
595
|
+
extendWith: <V_5 extends string>(...parts: V_5[]) => Omit<{
|
|
596
596
|
parts: any;
|
|
597
|
-
|
|
597
|
+
extendWith: <V_6 extends string>(...parts: V_6[]) => Omit<{
|
|
598
598
|
parts: any;
|
|
599
|
-
|
|
599
|
+
extendWith: <V_7 extends string>(...parts: V_7[]) => Omit<{
|
|
600
600
|
parts: any;
|
|
601
|
-
|
|
601
|
+
extendWith: <V_8 extends string>(...parts: V_8[]) => Omit<{
|
|
602
602
|
parts: any;
|
|
603
|
-
|
|
603
|
+
extendWith: <V_9 extends string>(...parts: V_9[]) => Omit<any, "parts">;
|
|
604
604
|
build: () => Record<U | V | V_1 | V_2 | V_3 | V_4 | V_5 | V_6 | V_7 | V_8, {
|
|
605
605
|
selector: string;
|
|
606
606
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
@@ -651,28 +651,28 @@ declare const anatomy: Omit<{
|
|
|
651
651
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
652
652
|
}>;
|
|
653
653
|
}, "parts">;
|
|
654
|
-
|
|
654
|
+
extendWith: <V_18 extends string>(...parts: V_18[]) => Omit<{
|
|
655
655
|
parts: <U extends string>(...parts: U[]) => Omit<{
|
|
656
656
|
parts: any;
|
|
657
|
-
|
|
657
|
+
extendWith: <V extends string>(...parts: V[]) => Omit<{
|
|
658
658
|
parts: any;
|
|
659
|
-
|
|
659
|
+
extendWith: <V_1 extends string>(...parts: V_1[]) => Omit<{
|
|
660
660
|
parts: any;
|
|
661
|
-
|
|
661
|
+
extendWith: <V_2 extends string>(...parts: V_2[]) => Omit<{
|
|
662
662
|
parts: any;
|
|
663
|
-
|
|
663
|
+
extendWith: <V_3 extends string>(...parts: V_3[]) => Omit<{
|
|
664
664
|
parts: any;
|
|
665
|
-
|
|
665
|
+
extendWith: <V_4 extends string>(...parts: V_4[]) => Omit<{
|
|
666
666
|
parts: any;
|
|
667
|
-
|
|
667
|
+
extendWith: <V_5 extends string>(...parts: V_5[]) => Omit<{
|
|
668
668
|
parts: any;
|
|
669
|
-
|
|
669
|
+
extendWith: <V_6 extends string>(...parts: V_6[]) => Omit<{
|
|
670
670
|
parts: any;
|
|
671
|
-
|
|
671
|
+
extendWith: <V_7 extends string>(...parts: V_7[]) => Omit<{
|
|
672
672
|
parts: any;
|
|
673
|
-
|
|
673
|
+
extendWith: <V_8 extends string>(...parts: V_8[]) => Omit<{
|
|
674
674
|
parts: any;
|
|
675
|
-
|
|
675
|
+
extendWith: <V_9 extends string>(...parts: V_9[]) => Omit<any, "parts">;
|
|
676
676
|
build: () => Record<U | V | V_1 | V_2 | V_3 | V_4 | V_5 | V_6 | V_7 | V_8, {
|
|
677
677
|
selector: string;
|
|
678
678
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
@@ -723,28 +723,28 @@ declare const anatomy: Omit<{
|
|
|
723
723
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
724
724
|
}>;
|
|
725
725
|
}, "parts">;
|
|
726
|
-
|
|
726
|
+
extendWith: <V_19 extends string>(...parts: V_19[]) => Omit<{
|
|
727
727
|
parts: <U extends string>(...parts: U[]) => Omit<{
|
|
728
728
|
parts: any;
|
|
729
|
-
|
|
729
|
+
extendWith: <V extends string>(...parts: V[]) => Omit<{
|
|
730
730
|
parts: any;
|
|
731
|
-
|
|
731
|
+
extendWith: <V_1 extends string>(...parts: V_1[]) => Omit<{
|
|
732
732
|
parts: any;
|
|
733
|
-
|
|
733
|
+
extendWith: <V_2 extends string>(...parts: V_2[]) => Omit<{
|
|
734
734
|
parts: any;
|
|
735
|
-
|
|
735
|
+
extendWith: <V_3 extends string>(...parts: V_3[]) => Omit<{
|
|
736
736
|
parts: any;
|
|
737
|
-
|
|
737
|
+
extendWith: <V_4 extends string>(...parts: V_4[]) => Omit<{
|
|
738
738
|
parts: any;
|
|
739
|
-
|
|
739
|
+
extendWith: <V_5 extends string>(...parts: V_5[]) => Omit<{
|
|
740
740
|
parts: any;
|
|
741
|
-
|
|
741
|
+
extendWith: <V_6 extends string>(...parts: V_6[]) => Omit<{
|
|
742
742
|
parts: any;
|
|
743
|
-
|
|
743
|
+
extendWith: <V_7 extends string>(...parts: V_7[]) => Omit<{
|
|
744
744
|
parts: any;
|
|
745
|
-
|
|
745
|
+
extendWith: <V_8 extends string>(...parts: V_8[]) => Omit<{
|
|
746
746
|
parts: any;
|
|
747
|
-
|
|
747
|
+
extendWith: <V_9 extends string>(...parts: V_9[]) => Omit<any, "parts">;
|
|
748
748
|
build: () => Record<U | V | V_1 | V_2 | V_3 | V_4 | V_5 | V_6 | V_7 | V_8, {
|
|
749
749
|
selector: string;
|
|
750
750
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
@@ -795,68 +795,68 @@ declare const anatomy: Omit<{
|
|
|
795
795
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
796
796
|
}>;
|
|
797
797
|
}, "parts">;
|
|
798
|
-
|
|
799
|
-
build: () => Record<"trigger" | "arrow" | "
|
|
798
|
+
extendWith: <V_20 extends string>(...parts: V_20[]) => Omit<any, "parts">;
|
|
799
|
+
build: () => Record<"trigger" | "arrow" | "arrowTip" | "positioner" | "content" | "label" | V_10 | V_11 | V_12 | V_13 | V_14 | V_15 | V_16 | V_17 | V_18 | V_19, {
|
|
800
800
|
selector: string;
|
|
801
801
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
802
802
|
}>;
|
|
803
803
|
}, "parts">;
|
|
804
|
-
build: () => Record<"trigger" | "arrow" | "
|
|
804
|
+
build: () => Record<"trigger" | "arrow" | "arrowTip" | "positioner" | "content" | "label" | V_10 | V_11 | V_12 | V_13 | V_14 | V_15 | V_16 | V_17 | V_18, {
|
|
805
805
|
selector: string;
|
|
806
806
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
807
807
|
}>;
|
|
808
808
|
}, "parts">;
|
|
809
|
-
build: () => Record<"trigger" | "arrow" | "
|
|
809
|
+
build: () => Record<"trigger" | "arrow" | "arrowTip" | "positioner" | "content" | "label" | V_10 | V_11 | V_12 | V_13 | V_14 | V_15 | V_16 | V_17, {
|
|
810
810
|
selector: string;
|
|
811
811
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
812
812
|
}>;
|
|
813
813
|
}, "parts">;
|
|
814
|
-
build: () => Record<"trigger" | "arrow" | "
|
|
814
|
+
build: () => Record<"trigger" | "arrow" | "arrowTip" | "positioner" | "content" | "label" | V_10 | V_11 | V_12 | V_13 | V_14 | V_15 | V_16, {
|
|
815
815
|
selector: string;
|
|
816
816
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
817
817
|
}>;
|
|
818
818
|
}, "parts">;
|
|
819
|
-
build: () => Record<"trigger" | "arrow" | "
|
|
819
|
+
build: () => Record<"trigger" | "arrow" | "arrowTip" | "positioner" | "content" | "label" | V_10 | V_11 | V_12 | V_13 | V_14 | V_15, {
|
|
820
820
|
selector: string;
|
|
821
821
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
822
822
|
}>;
|
|
823
823
|
}, "parts">;
|
|
824
|
-
build: () => Record<"trigger" | "arrow" | "
|
|
824
|
+
build: () => Record<"trigger" | "arrow" | "arrowTip" | "positioner" | "content" | "label" | V_10 | V_11 | V_12 | V_13 | V_14, {
|
|
825
825
|
selector: string;
|
|
826
826
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
827
827
|
}>;
|
|
828
828
|
}, "parts">;
|
|
829
|
-
build: () => Record<"trigger" | "arrow" | "
|
|
829
|
+
build: () => Record<"trigger" | "arrow" | "arrowTip" | "positioner" | "content" | "label" | V_10 | V_11 | V_12 | V_13, {
|
|
830
830
|
selector: string;
|
|
831
831
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
832
832
|
}>;
|
|
833
833
|
}, "parts">;
|
|
834
|
-
build: () => Record<"trigger" | "arrow" | "
|
|
834
|
+
build: () => Record<"trigger" | "arrow" | "arrowTip" | "positioner" | "content" | "label" | V_10 | V_11 | V_12, {
|
|
835
835
|
selector: string;
|
|
836
836
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
837
837
|
}>;
|
|
838
838
|
}, "parts">;
|
|
839
|
-
build: () => Record<"trigger" | "arrow" | "
|
|
839
|
+
build: () => Record<"trigger" | "arrow" | "arrowTip" | "positioner" | "content" | "label" | V_10 | V_11, {
|
|
840
840
|
selector: string;
|
|
841
841
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
842
842
|
}>;
|
|
843
843
|
}, "parts">;
|
|
844
|
-
build: () => Record<"trigger" | "arrow" | "
|
|
844
|
+
build: () => Record<"trigger" | "arrow" | "arrowTip" | "positioner" | "content" | "label" | V_10, {
|
|
845
845
|
selector: string;
|
|
846
846
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
847
847
|
}>;
|
|
848
848
|
}, "parts">;
|
|
849
|
-
build: () => Record<"trigger" | "arrow" | "
|
|
849
|
+
build: () => Record<"trigger" | "arrow" | "arrowTip" | "positioner" | "content" | "label", {
|
|
850
850
|
selector: string;
|
|
851
851
|
attrs: Record<"data-scope" | "data-part", string>;
|
|
852
852
|
}>;
|
|
853
853
|
}, "parts">;
|
|
854
854
|
|
|
855
|
-
|
|
855
|
+
type ElementIds = Partial<{
|
|
856
856
|
trigger: string;
|
|
857
857
|
content: string;
|
|
858
858
|
}>;
|
|
859
|
-
|
|
859
|
+
type PublicContext = CommonProperties & {
|
|
860
860
|
/**
|
|
861
861
|
* The ids of the elements in the tooltip. Useful for composition.
|
|
862
862
|
*/
|
|
@@ -908,21 +908,21 @@ declare type PublicContext = CommonProperties & {
|
|
|
908
908
|
*/
|
|
909
909
|
disabled?: boolean;
|
|
910
910
|
};
|
|
911
|
-
|
|
912
|
-
|
|
911
|
+
type UserDefinedContext = RequiredBy<PublicContext, "id">;
|
|
912
|
+
type ComputedContext = Readonly<{
|
|
913
913
|
/**
|
|
914
914
|
* @computed Whether an `aria-label` is set.
|
|
915
915
|
*/
|
|
916
916
|
readonly hasAriaLabel: boolean;
|
|
917
917
|
}>;
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
918
|
+
type PrivateContext = RootProperties & {};
|
|
919
|
+
type MachineContext = PublicContext & ComputedContext & PrivateContext;
|
|
920
|
+
type MachineState = {
|
|
921
921
|
value: "unknown" | "opening" | "open" | "closing" | "closed";
|
|
922
922
|
tags: "open" | "closed";
|
|
923
923
|
};
|
|
924
|
-
|
|
925
|
-
|
|
924
|
+
type State = StateMachine.State<MachineContext, MachineState>;
|
|
925
|
+
type Send = StateMachine.Send<StateMachine.AnyEventObject>;
|
|
926
926
|
|
|
927
927
|
declare function connect<T extends PropTypes>(state: State, send: Send, normalize: NormalizeProps<T>): {
|
|
928
928
|
isOpen: boolean;
|
|
@@ -934,7 +934,7 @@ declare function connect<T extends PropTypes>(state: State, send: Send, normaliz
|
|
|
934
934
|
};
|
|
935
935
|
triggerProps: T["button"];
|
|
936
936
|
arrowProps: T["element"];
|
|
937
|
-
|
|
937
|
+
arrowTipProps: T["element"];
|
|
938
938
|
positionerProps: T["element"];
|
|
939
939
|
contentProps: T["element"];
|
|
940
940
|
labelProps: T["element"];
|
package/dist/index.js
CHANGED
|
@@ -28,14 +28,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
28
28
|
|
|
29
29
|
// src/tooltip.anatomy.ts
|
|
30
30
|
var import_anatomy = require("@zag-js/anatomy");
|
|
31
|
-
var anatomy = (0, import_anatomy.createAnatomy)("tooltip").parts(
|
|
32
|
-
"trigger",
|
|
33
|
-
"arrow",
|
|
34
|
-
"arrowInner",
|
|
35
|
-
"positioner",
|
|
36
|
-
"content",
|
|
37
|
-
"label"
|
|
38
|
-
);
|
|
31
|
+
var anatomy = (0, import_anatomy.createAnatomy)("tooltip").parts("trigger", "arrow", "arrowTip", "positioner", "content", "label");
|
|
39
32
|
var parts = anatomy.build();
|
|
40
33
|
|
|
41
34
|
// ../../utilities/dom/dist/index.mjs
|
|
@@ -368,9 +361,9 @@ function connect(state, send, normalize) {
|
|
|
368
361
|
...parts.arrow.attrs,
|
|
369
362
|
style: popperStyles.arrow
|
|
370
363
|
}),
|
|
371
|
-
|
|
372
|
-
...parts.
|
|
373
|
-
style: popperStyles.
|
|
364
|
+
arrowTipProps: normalize.element({
|
|
365
|
+
...parts.arrowTip.attrs,
|
|
366
|
+
style: popperStyles.arrowTip
|
|
374
367
|
}),
|
|
375
368
|
positionerProps: normalize.element({
|
|
376
369
|
id: dom.getPositionerId(state.context),
|
package/dist/index.mjs
CHANGED
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
// src/tooltip.anatomy.ts
|
|
2
2
|
import { createAnatomy } from "@zag-js/anatomy";
|
|
3
|
-
var anatomy = createAnatomy("tooltip").parts(
|
|
4
|
-
"trigger",
|
|
5
|
-
"arrow",
|
|
6
|
-
"arrowInner",
|
|
7
|
-
"positioner",
|
|
8
|
-
"content",
|
|
9
|
-
"label"
|
|
10
|
-
);
|
|
3
|
+
var anatomy = createAnatomy("tooltip").parts("trigger", "arrow", "arrowTip", "positioner", "content", "label");
|
|
11
4
|
var parts = anatomy.build();
|
|
12
5
|
|
|
13
6
|
// ../../utilities/dom/dist/index.mjs
|
|
@@ -340,9 +333,9 @@ function connect(state, send, normalize) {
|
|
|
340
333
|
...parts.arrow.attrs,
|
|
341
334
|
style: popperStyles.arrow
|
|
342
335
|
}),
|
|
343
|
-
|
|
344
|
-
...parts.
|
|
345
|
-
style: popperStyles.
|
|
336
|
+
arrowTipProps: normalize.element({
|
|
337
|
+
...parts.arrowTip.attrs,
|
|
338
|
+
style: popperStyles.arrowTip
|
|
346
339
|
}),
|
|
347
340
|
positionerProps: normalize.element({
|
|
348
341
|
id: dom.getPositionerId(state.context),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/tooltip",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "Core logic for the tooltip widget implemented as a state machine",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@zag-js/anatomy": "0.1.1",
|
|
33
|
-
"@zag-js/core": "0.2.
|
|
34
|
-
"@zag-js/popper": "0.2.
|
|
33
|
+
"@zag-js/core": "0.2.3",
|
|
34
|
+
"@zag-js/popper": "0.2.1",
|
|
35
35
|
"@zag-js/types": "0.3.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|