@scalar/components 0.12.44 → 0.12.46
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/components/ScalarCodeBlock/ScalarCodeBlock.vue.d.ts.map +1 -1
- package/dist/components/ScalarCodeBlock/ScalarCodeBlock.vue.js +5 -5
- package/dist/components/ScalarCombobox/ScalarCombobox.stories.d.ts +16 -4
- package/dist/components/ScalarCombobox/ScalarCombobox.stories.d.ts.map +1 -1
- package/dist/components/ScalarCombobox/ScalarCombobox.vue.js +2 -1
- package/dist/components/ScalarCombobox/ScalarComboboxMultiselect.vue.d.ts +21 -4
- package/dist/components/ScalarCombobox/ScalarComboboxMultiselect.vue.d.ts.map +1 -1
- package/dist/components/ScalarCombobox/ScalarComboboxMultiselect.vue.js +34 -21
- package/dist/components/ScalarCombobox/ScalarComboboxOption.vue.d.ts +2 -0
- package/dist/components/ScalarCombobox/ScalarComboboxOption.vue.d.ts.map +1 -1
- package/dist/components/ScalarCombobox/ScalarComboboxOption.vue.js +25 -16
- package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.d.ts +4 -0
- package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.d.ts.map +1 -1
- package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.js +47 -44
- package/dist/components/ScalarCombobox/ScalarComboboxPopover.vue.js +1 -0
- package/dist/components/ScalarCombobox/types.d.ts +1 -0
- package/dist/components/ScalarCombobox/types.d.ts.map +1 -1
- package/dist/components/ScalarDropdown/ScalarDropdown.stories.d.ts +140 -16
- package/dist/components/ScalarDropdown/ScalarDropdown.stories.d.ts.map +1 -1
- package/dist/components/ScalarDropdown/ScalarDropdown.vue.d.ts +5 -0
- package/dist/components/ScalarDropdown/ScalarDropdown.vue.d.ts.map +1 -1
- package/dist/components/ScalarDropdown/ScalarDropdown.vue.js +16 -13
- package/dist/components/ScalarFloating/ScalarFloating.vue.d.ts.map +1 -1
- package/dist/components/ScalarFloating/ScalarFloating.vue.js +21 -20
- package/dist/components/ScalarFloating/types.d.ts +5 -0
- package/dist/components/ScalarFloating/types.d.ts.map +1 -1
- package/dist/components/ScalarIcon/ScalarIcon.stories.d.ts +9 -9
- package/dist/components/ScalarIcon/icons/Cloud.svg.js +19 -0
- package/dist/components/ScalarIcon/icons/Cog.svg.js +20 -0
- package/dist/components/ScalarIcon/icons/DarkMode.svg.js +14 -11
- package/dist/components/ScalarIcon/icons/Email.svg.js +9 -17
- package/dist/components/ScalarIcon/icons/House.svg.js +1 -1
- package/dist/components/ScalarIcon/icons/Leave.svg.js +13 -15
- package/dist/components/ScalarIcon/icons/LightMode.svg.js +16 -11
- package/dist/components/ScalarIcon/icons/Users.svg.js +19 -0
- package/dist/components/ScalarIcon/icons/Wallet.svg.js +20 -0
- package/dist/components/ScalarIcon/icons/icons.d.ts +1 -1
- package/dist/components/ScalarIcon/icons/icons.d.ts.map +1 -1
- package/dist/components/ScalarIcon/icons/index.js +152 -150
- package/dist/components/ScalarIconButton/ScalarIconButton.stories.d.ts +3 -3
- package/dist/components/ScalarListbox/ScalarListbox.stories.d.ts +16 -4
- package/dist/components/ScalarListbox/ScalarListbox.stories.d.ts.map +1 -1
- package/dist/components/ScalarListbox/ScalarListbox.vue.d.ts.map +1 -1
- package/dist/components/ScalarListbox/ScalarListbox.vue.js +30 -27
- package/dist/components/ScalarModal/ScalarModal.vue.js +4 -4
- package/dist/components/ScalarModal/ScalarModal.vue2.js +1 -1
- package/dist/components/ScalarPopover/ScalarPopover.stories.d.ts +64 -16
- package/dist/components/ScalarPopover/ScalarPopover.stories.d.ts.map +1 -1
- package/dist/components/ScalarPopover/ScalarPopover.vue.js +5 -4
- package/dist/components/ScalarSearchInput/ScalarSearchInput.vue.js +1 -1
- package/dist/components/ScalarSearchResults/ScalarSearchResults.stories.d.ts +4 -4
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/components/ScalarIcon/icons/Background.svg.js +0 -17
- package/dist/components/ScalarIcon/icons/CallToAction.svg.js +0 -20
- package/dist/components/ScalarIcon/icons/Payment.svg.js +0 -21
|
@@ -6,7 +6,10 @@ declare const meta: {
|
|
|
6
6
|
type: import("vue").PropType<boolean>;
|
|
7
7
|
};
|
|
8
8
|
placement: {
|
|
9
|
-
type: import("vue").PropType<import("@floating-ui/
|
|
9
|
+
type: import("vue").PropType<import("@floating-ui/vue").Placement>;
|
|
10
|
+
};
|
|
11
|
+
targetRef: {
|
|
12
|
+
type: import("vue").PropType<HTMLElement>;
|
|
10
13
|
};
|
|
11
14
|
isOpen: {
|
|
12
15
|
type: import("vue").PropType<boolean>;
|
|
@@ -18,12 +21,19 @@ declare const meta: {
|
|
|
18
21
|
type: import("vue").PropType<boolean>;
|
|
19
22
|
default: boolean;
|
|
20
23
|
};
|
|
24
|
+
staticOpen: {
|
|
25
|
+
type: import("vue").PropType<boolean>;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
21
28
|
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
22
29
|
resize: {
|
|
23
30
|
type: import("vue").PropType<boolean>;
|
|
24
31
|
};
|
|
25
32
|
placement: {
|
|
26
|
-
type: import("vue").PropType<import("@floating-ui/
|
|
33
|
+
type: import("vue").PropType<import("@floating-ui/vue").Placement>;
|
|
34
|
+
};
|
|
35
|
+
targetRef: {
|
|
36
|
+
type: import("vue").PropType<HTMLElement>;
|
|
27
37
|
};
|
|
28
38
|
isOpen: {
|
|
29
39
|
type: import("vue").PropType<boolean>;
|
|
@@ -35,8 +45,13 @@ declare const meta: {
|
|
|
35
45
|
type: import("vue").PropType<boolean>;
|
|
36
46
|
default: boolean;
|
|
37
47
|
};
|
|
48
|
+
staticOpen: {
|
|
49
|
+
type: import("vue").PropType<boolean>;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
38
52
|
}>>, {
|
|
39
53
|
static: boolean;
|
|
54
|
+
staticOpen: boolean;
|
|
40
55
|
}, true, {}, {}, {
|
|
41
56
|
P: {};
|
|
42
57
|
B: {};
|
|
@@ -49,7 +64,10 @@ declare const meta: {
|
|
|
49
64
|
type: import("vue").PropType<boolean>;
|
|
50
65
|
};
|
|
51
66
|
placement: {
|
|
52
|
-
type: import("vue").PropType<import("@floating-ui/
|
|
67
|
+
type: import("vue").PropType<import("@floating-ui/vue").Placement>;
|
|
68
|
+
};
|
|
69
|
+
targetRef: {
|
|
70
|
+
type: import("vue").PropType<HTMLElement>;
|
|
53
71
|
};
|
|
54
72
|
isOpen: {
|
|
55
73
|
type: import("vue").PropType<boolean>;
|
|
@@ -61,8 +79,13 @@ declare const meta: {
|
|
|
61
79
|
type: import("vue").PropType<boolean>;
|
|
62
80
|
default: boolean;
|
|
63
81
|
};
|
|
82
|
+
staticOpen: {
|
|
83
|
+
type: import("vue").PropType<boolean>;
|
|
84
|
+
default: boolean;
|
|
85
|
+
};
|
|
64
86
|
}>>, {}, {}, {}, {}, {
|
|
65
87
|
static: boolean;
|
|
88
|
+
staticOpen: boolean;
|
|
66
89
|
}>;
|
|
67
90
|
__isFragment?: never;
|
|
68
91
|
__isTeleport?: never;
|
|
@@ -72,7 +95,10 @@ declare const meta: {
|
|
|
72
95
|
type: import("vue").PropType<boolean>;
|
|
73
96
|
};
|
|
74
97
|
placement: {
|
|
75
|
-
type: import("vue").PropType<import("@floating-ui/
|
|
98
|
+
type: import("vue").PropType<import("@floating-ui/vue").Placement>;
|
|
99
|
+
};
|
|
100
|
+
targetRef: {
|
|
101
|
+
type: import("vue").PropType<HTMLElement>;
|
|
76
102
|
};
|
|
77
103
|
isOpen: {
|
|
78
104
|
type: import("vue").PropType<boolean>;
|
|
@@ -84,8 +110,13 @@ declare const meta: {
|
|
|
84
110
|
type: import("vue").PropType<boolean>;
|
|
85
111
|
default: boolean;
|
|
86
112
|
};
|
|
113
|
+
staticOpen: {
|
|
114
|
+
type: import("vue").PropType<boolean>;
|
|
115
|
+
default: boolean;
|
|
116
|
+
};
|
|
87
117
|
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
88
118
|
static: boolean;
|
|
119
|
+
staticOpen: boolean;
|
|
89
120
|
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
90
121
|
$slots: {
|
|
91
122
|
default?(_: {}): any;
|
|
@@ -108,7 +139,10 @@ declare const meta: {
|
|
|
108
139
|
type: import("vue").PropType<boolean>;
|
|
109
140
|
};
|
|
110
141
|
placement: {
|
|
111
|
-
type: import("vue").PropType<import("@floating-ui/
|
|
142
|
+
type: import("vue").PropType<import("@floating-ui/vue").Placement>;
|
|
143
|
+
};
|
|
144
|
+
targetRef: {
|
|
145
|
+
type: import("vue").PropType<HTMLElement>;
|
|
112
146
|
};
|
|
113
147
|
isOpen: {
|
|
114
148
|
type: import("vue").PropType<boolean>;
|
|
@@ -120,12 +154,19 @@ declare const meta: {
|
|
|
120
154
|
type: import("vue").PropType<boolean>;
|
|
121
155
|
default: boolean;
|
|
122
156
|
};
|
|
157
|
+
staticOpen: {
|
|
158
|
+
type: import("vue").PropType<boolean>;
|
|
159
|
+
default: boolean;
|
|
160
|
+
};
|
|
123
161
|
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
124
162
|
resize: {
|
|
125
163
|
type: import("vue").PropType<boolean>;
|
|
126
164
|
};
|
|
127
165
|
placement: {
|
|
128
|
-
type: import("vue").PropType<import("@floating-ui/
|
|
166
|
+
type: import("vue").PropType<import("@floating-ui/vue").Placement>;
|
|
167
|
+
};
|
|
168
|
+
targetRef: {
|
|
169
|
+
type: import("vue").PropType<HTMLElement>;
|
|
129
170
|
};
|
|
130
171
|
isOpen: {
|
|
131
172
|
type: import("vue").PropType<boolean>;
|
|
@@ -137,8 +178,13 @@ declare const meta: {
|
|
|
137
178
|
type: import("vue").PropType<boolean>;
|
|
138
179
|
default: boolean;
|
|
139
180
|
};
|
|
181
|
+
staticOpen: {
|
|
182
|
+
type: import("vue").PropType<boolean>;
|
|
183
|
+
default: boolean;
|
|
184
|
+
};
|
|
140
185
|
}>>, {
|
|
141
186
|
static: boolean;
|
|
187
|
+
staticOpen: boolean;
|
|
142
188
|
}, true, {}, {}, {
|
|
143
189
|
P: {};
|
|
144
190
|
B: {};
|
|
@@ -151,7 +197,10 @@ declare const meta: {
|
|
|
151
197
|
type: import("vue").PropType<boolean>;
|
|
152
198
|
};
|
|
153
199
|
placement: {
|
|
154
|
-
type: import("vue").PropType<import("@floating-ui/
|
|
200
|
+
type: import("vue").PropType<import("@floating-ui/vue").Placement>;
|
|
201
|
+
};
|
|
202
|
+
targetRef: {
|
|
203
|
+
type: import("vue").PropType<HTMLElement>;
|
|
155
204
|
};
|
|
156
205
|
isOpen: {
|
|
157
206
|
type: import("vue").PropType<boolean>;
|
|
@@ -163,8 +212,13 @@ declare const meta: {
|
|
|
163
212
|
type: import("vue").PropType<boolean>;
|
|
164
213
|
default: boolean;
|
|
165
214
|
};
|
|
215
|
+
staticOpen: {
|
|
216
|
+
type: import("vue").PropType<boolean>;
|
|
217
|
+
default: boolean;
|
|
218
|
+
};
|
|
166
219
|
}>>, {}, {}, {}, {}, {
|
|
167
220
|
static: boolean;
|
|
221
|
+
staticOpen: boolean;
|
|
168
222
|
}>;
|
|
169
223
|
__isFragment?: never;
|
|
170
224
|
__isTeleport?: never;
|
|
@@ -174,7 +228,10 @@ declare const meta: {
|
|
|
174
228
|
type: import("vue").PropType<boolean>;
|
|
175
229
|
};
|
|
176
230
|
placement: {
|
|
177
|
-
type: import("vue").PropType<import("@floating-ui/
|
|
231
|
+
type: import("vue").PropType<import("@floating-ui/vue").Placement>;
|
|
232
|
+
};
|
|
233
|
+
targetRef: {
|
|
234
|
+
type: import("vue").PropType<HTMLElement>;
|
|
178
235
|
};
|
|
179
236
|
isOpen: {
|
|
180
237
|
type: import("vue").PropType<boolean>;
|
|
@@ -186,8 +243,13 @@ declare const meta: {
|
|
|
186
243
|
type: import("vue").PropType<boolean>;
|
|
187
244
|
default: boolean;
|
|
188
245
|
};
|
|
246
|
+
staticOpen: {
|
|
247
|
+
type: import("vue").PropType<boolean>;
|
|
248
|
+
default: boolean;
|
|
249
|
+
};
|
|
189
250
|
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
190
251
|
static: boolean;
|
|
252
|
+
staticOpen: boolean;
|
|
191
253
|
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
192
254
|
$slots: {
|
|
193
255
|
default?(_: {}): any;
|
|
@@ -201,7 +263,10 @@ declare const meta: {
|
|
|
201
263
|
type: import("vue").PropType<boolean>;
|
|
202
264
|
};
|
|
203
265
|
placement: {
|
|
204
|
-
type: import("vue").PropType<import("@floating-ui/
|
|
266
|
+
type: import("vue").PropType<import("@floating-ui/vue").Placement>;
|
|
267
|
+
};
|
|
268
|
+
targetRef: {
|
|
269
|
+
type: import("vue").PropType<HTMLElement>;
|
|
205
270
|
};
|
|
206
271
|
isOpen: {
|
|
207
272
|
type: import("vue").PropType<boolean>;
|
|
@@ -213,12 +278,19 @@ declare const meta: {
|
|
|
213
278
|
type: import("vue").PropType<boolean>;
|
|
214
279
|
default: boolean;
|
|
215
280
|
};
|
|
281
|
+
staticOpen: {
|
|
282
|
+
type: import("vue").PropType<boolean>;
|
|
283
|
+
default: boolean;
|
|
284
|
+
};
|
|
216
285
|
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
217
286
|
resize: {
|
|
218
287
|
type: import("vue").PropType<boolean>;
|
|
219
288
|
};
|
|
220
289
|
placement: {
|
|
221
|
-
type: import("vue").PropType<import("@floating-ui/
|
|
290
|
+
type: import("vue").PropType<import("@floating-ui/vue").Placement>;
|
|
291
|
+
};
|
|
292
|
+
targetRef: {
|
|
293
|
+
type: import("vue").PropType<HTMLElement>;
|
|
222
294
|
};
|
|
223
295
|
isOpen: {
|
|
224
296
|
type: import("vue").PropType<boolean>;
|
|
@@ -230,8 +302,13 @@ declare const meta: {
|
|
|
230
302
|
type: import("vue").PropType<boolean>;
|
|
231
303
|
default: boolean;
|
|
232
304
|
};
|
|
305
|
+
staticOpen: {
|
|
306
|
+
type: import("vue").PropType<boolean>;
|
|
307
|
+
default: boolean;
|
|
308
|
+
};
|
|
233
309
|
}>>, {
|
|
234
310
|
static: boolean;
|
|
311
|
+
staticOpen: boolean;
|
|
235
312
|
}, true, {}, {}, {
|
|
236
313
|
P: {};
|
|
237
314
|
B: {};
|
|
@@ -244,7 +321,10 @@ declare const meta: {
|
|
|
244
321
|
type: import("vue").PropType<boolean>;
|
|
245
322
|
};
|
|
246
323
|
placement: {
|
|
247
|
-
type: import("vue").PropType<import("@floating-ui/
|
|
324
|
+
type: import("vue").PropType<import("@floating-ui/vue").Placement>;
|
|
325
|
+
};
|
|
326
|
+
targetRef: {
|
|
327
|
+
type: import("vue").PropType<HTMLElement>;
|
|
248
328
|
};
|
|
249
329
|
isOpen: {
|
|
250
330
|
type: import("vue").PropType<boolean>;
|
|
@@ -256,8 +336,13 @@ declare const meta: {
|
|
|
256
336
|
type: import("vue").PropType<boolean>;
|
|
257
337
|
default: boolean;
|
|
258
338
|
};
|
|
339
|
+
staticOpen: {
|
|
340
|
+
type: import("vue").PropType<boolean>;
|
|
341
|
+
default: boolean;
|
|
342
|
+
};
|
|
259
343
|
}>>, {}, {}, {}, {}, {
|
|
260
344
|
static: boolean;
|
|
345
|
+
staticOpen: boolean;
|
|
261
346
|
}>;
|
|
262
347
|
__isFragment?: never;
|
|
263
348
|
__isTeleport?: never;
|
|
@@ -267,7 +352,10 @@ declare const meta: {
|
|
|
267
352
|
type: import("vue").PropType<boolean>;
|
|
268
353
|
};
|
|
269
354
|
placement: {
|
|
270
|
-
type: import("vue").PropType<import("@floating-ui/
|
|
355
|
+
type: import("vue").PropType<import("@floating-ui/vue").Placement>;
|
|
356
|
+
};
|
|
357
|
+
targetRef: {
|
|
358
|
+
type: import("vue").PropType<HTMLElement>;
|
|
271
359
|
};
|
|
272
360
|
isOpen: {
|
|
273
361
|
type: import("vue").PropType<boolean>;
|
|
@@ -279,8 +367,13 @@ declare const meta: {
|
|
|
279
367
|
type: import("vue").PropType<boolean>;
|
|
280
368
|
default: boolean;
|
|
281
369
|
};
|
|
370
|
+
staticOpen: {
|
|
371
|
+
type: import("vue").PropType<boolean>;
|
|
372
|
+
default: boolean;
|
|
373
|
+
};
|
|
282
374
|
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
283
375
|
static: boolean;
|
|
376
|
+
staticOpen: boolean;
|
|
284
377
|
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
285
378
|
$slots: {
|
|
286
379
|
default?(_: {}): any;
|
|
@@ -503,7 +596,10 @@ declare const meta: {
|
|
|
503
596
|
type: import("vue").PropType<boolean>;
|
|
504
597
|
};
|
|
505
598
|
placement: {
|
|
506
|
-
type: import("vue").PropType<import("@floating-ui/
|
|
599
|
+
type: import("vue").PropType<import("@floating-ui/vue").Placement>;
|
|
600
|
+
};
|
|
601
|
+
targetRef: {
|
|
602
|
+
type: import("vue").PropType<HTMLElement>;
|
|
507
603
|
};
|
|
508
604
|
isOpen: {
|
|
509
605
|
type: import("vue").PropType<boolean>;
|
|
@@ -515,12 +611,19 @@ declare const meta: {
|
|
|
515
611
|
type: import("vue").PropType<boolean>;
|
|
516
612
|
default: boolean;
|
|
517
613
|
};
|
|
614
|
+
staticOpen: {
|
|
615
|
+
type: import("vue").PropType<boolean>;
|
|
616
|
+
default: boolean;
|
|
617
|
+
};
|
|
518
618
|
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
519
619
|
resize: {
|
|
520
620
|
type: import("vue").PropType<boolean>;
|
|
521
621
|
};
|
|
522
622
|
placement: {
|
|
523
|
-
type: import("vue").PropType<import("@floating-ui/
|
|
623
|
+
type: import("vue").PropType<import("@floating-ui/vue").Placement>;
|
|
624
|
+
};
|
|
625
|
+
targetRef: {
|
|
626
|
+
type: import("vue").PropType<HTMLElement>;
|
|
524
627
|
};
|
|
525
628
|
isOpen: {
|
|
526
629
|
type: import("vue").PropType<boolean>;
|
|
@@ -532,8 +635,13 @@ declare const meta: {
|
|
|
532
635
|
type: import("vue").PropType<boolean>;
|
|
533
636
|
default: boolean;
|
|
534
637
|
};
|
|
638
|
+
staticOpen: {
|
|
639
|
+
type: import("vue").PropType<boolean>;
|
|
640
|
+
default: boolean;
|
|
641
|
+
};
|
|
535
642
|
}>>, {
|
|
536
643
|
static: boolean;
|
|
644
|
+
staticOpen: boolean;
|
|
537
645
|
}, true, {}, {}, {
|
|
538
646
|
P: {};
|
|
539
647
|
B: {};
|
|
@@ -546,7 +654,10 @@ declare const meta: {
|
|
|
546
654
|
type: import("vue").PropType<boolean>;
|
|
547
655
|
};
|
|
548
656
|
placement: {
|
|
549
|
-
type: import("vue").PropType<import("@floating-ui/
|
|
657
|
+
type: import("vue").PropType<import("@floating-ui/vue").Placement>;
|
|
658
|
+
};
|
|
659
|
+
targetRef: {
|
|
660
|
+
type: import("vue").PropType<HTMLElement>;
|
|
550
661
|
};
|
|
551
662
|
isOpen: {
|
|
552
663
|
type: import("vue").PropType<boolean>;
|
|
@@ -558,8 +669,13 @@ declare const meta: {
|
|
|
558
669
|
type: import("vue").PropType<boolean>;
|
|
559
670
|
default: boolean;
|
|
560
671
|
};
|
|
672
|
+
staticOpen: {
|
|
673
|
+
type: import("vue").PropType<boolean>;
|
|
674
|
+
default: boolean;
|
|
675
|
+
};
|
|
561
676
|
}>>, {}, {}, {}, {}, {
|
|
562
677
|
static: boolean;
|
|
678
|
+
staticOpen: boolean;
|
|
563
679
|
}>;
|
|
564
680
|
__isFragment?: never;
|
|
565
681
|
__isTeleport?: never;
|
|
@@ -569,7 +685,10 @@ declare const meta: {
|
|
|
569
685
|
type: import("vue").PropType<boolean>;
|
|
570
686
|
};
|
|
571
687
|
placement: {
|
|
572
|
-
type: import("vue").PropType<import("@floating-ui/
|
|
688
|
+
type: import("vue").PropType<import("@floating-ui/vue").Placement>;
|
|
689
|
+
};
|
|
690
|
+
targetRef: {
|
|
691
|
+
type: import("vue").PropType<HTMLElement>;
|
|
573
692
|
};
|
|
574
693
|
isOpen: {
|
|
575
694
|
type: import("vue").PropType<boolean>;
|
|
@@ -581,8 +700,13 @@ declare const meta: {
|
|
|
581
700
|
type: import("vue").PropType<boolean>;
|
|
582
701
|
default: boolean;
|
|
583
702
|
};
|
|
703
|
+
staticOpen: {
|
|
704
|
+
type: import("vue").PropType<boolean>;
|
|
705
|
+
default: boolean;
|
|
706
|
+
};
|
|
584
707
|
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
585
708
|
static: boolean;
|
|
709
|
+
staticOpen: boolean;
|
|
586
710
|
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
587
711
|
$slots: {
|
|
588
712
|
default?(_: {}): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarDropdown.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarDropdown/ScalarDropdown.stories.ts"],"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O,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,IAAI,EAAE,KAAU,CAAA"}
|
|
@@ -5,14 +5,19 @@ declare function __VLS_template(): {
|
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Omit<FloatingOptions, "middleware"> & {
|
|
7
7
|
static?: boolean;
|
|
8
|
+
staticOpen?: boolean;
|
|
8
9
|
}>, {
|
|
9
10
|
static: boolean;
|
|
11
|
+
staticOpen: boolean;
|
|
10
12
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Omit<FloatingOptions, "middleware"> & {
|
|
11
13
|
static?: boolean;
|
|
14
|
+
staticOpen?: boolean;
|
|
12
15
|
}>, {
|
|
13
16
|
static: boolean;
|
|
17
|
+
staticOpen: boolean;
|
|
14
18
|
}>>>, {
|
|
15
19
|
static: boolean;
|
|
20
|
+
staticOpen: boolean;
|
|
16
21
|
}, {}>;
|
|
17
22
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
18
23
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarDropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarDropdown/ScalarDropdown.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarDropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarDropdown/ScalarDropdown.vue"],"names":[],"mappings":"AAgDA,OAAO,EAAE,KAAK,eAAe,EAAkB,MAAM,mBAAmB,CAAA;AAuBxE,iBAAS,cAAc;qBAqGO,GAAG;mBACL,GAAG;EAkB9B;AACD,QAAA,MAAM,eAAe;aA3IN,OAAO;iBACH,OAAO;;;;;aADX,OAAO;iBACH,OAAO;;;;;YADX,O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, MenuItems as c, MenuButton as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as p, openBlock as o, createBlock as s, unref as a, withCtx as t, createVNode as l, mergeProps as f, renderSlot as r, createCommentVNode as m, createElementVNode as u } from "vue";
|
|
2
|
+
import { Menu as d, MenuItems as c, MenuButton as g } from "@headlessui/vue";
|
|
3
|
+
import y from "../ScalarFloating/ScalarFloating.vue.js";
|
|
4
|
+
const B = /* @__PURE__ */ u("div", { class: "absolute inset-0 -z-1 rounded bg-b-1 shadow-lg brightness-lifted" }, null, -1), R = /* @__PURE__ */ p({
|
|
5
5
|
inheritAttrs: !1,
|
|
6
6
|
__name: "ScalarDropdown",
|
|
7
7
|
props: {
|
|
8
8
|
placement: {},
|
|
9
9
|
resize: { type: Boolean },
|
|
10
|
+
targetRef: {},
|
|
10
11
|
isOpen: { type: Boolean },
|
|
11
12
|
teleport: { type: [Boolean, String] },
|
|
12
|
-
static: { type: Boolean, default: !1 }
|
|
13
|
+
static: { type: Boolean, default: !1 },
|
|
14
|
+
staticOpen: { type: Boolean, default: !0 }
|
|
13
15
|
},
|
|
14
16
|
setup(h) {
|
|
15
|
-
return (e,
|
|
17
|
+
return (e, O) => (o(), s(a(d), null, {
|
|
16
18
|
default: t(({ open: n }) => [
|
|
17
|
-
a(
|
|
18
|
-
isOpen: e.static ?
|
|
19
|
+
l(a(y), {
|
|
20
|
+
isOpen: e.static ? e.staticOpen : n ?? e.isOpen,
|
|
19
21
|
placement: e.placement ?? "bottom-start",
|
|
20
22
|
resize: e.resize,
|
|
23
|
+
targetRef: e.targetRef,
|
|
21
24
|
teleport: e.teleport
|
|
22
25
|
}, {
|
|
23
26
|
floating: t(({ width: i }) => [
|
|
24
|
-
a(
|
|
27
|
+
l(a(c), f({ class: "relative flex w-56 flex-col p-0.75" }, e.$attrs, {
|
|
25
28
|
static: e.static,
|
|
26
29
|
style: { width: i }
|
|
27
30
|
}), {
|
|
28
31
|
default: t(() => [
|
|
29
32
|
r(e.$slots, "items"),
|
|
30
|
-
|
|
33
|
+
B
|
|
31
34
|
]),
|
|
32
35
|
_: 2
|
|
33
36
|
}, 1040, ["static", "style"])
|
|
34
37
|
]),
|
|
35
38
|
default: t(() => [
|
|
36
|
-
e.static ?
|
|
39
|
+
e.static ? m("", !0) : (o(), s(a(g), {
|
|
37
40
|
key: 0,
|
|
38
41
|
as: "template"
|
|
39
42
|
}, {
|
|
@@ -44,12 +47,12 @@ const g = /* @__PURE__ */ f("div", { class: "absolute inset-0 -z-1 rounded bg-b-
|
|
|
44
47
|
}))
|
|
45
48
|
]),
|
|
46
49
|
_: 2
|
|
47
|
-
}, 1032, ["isOpen", "placement", "resize", "teleport"])
|
|
50
|
+
}, 1032, ["isOpen", "placement", "resize", "targetRef", "teleport"])
|
|
48
51
|
]),
|
|
49
52
|
_: 3
|
|
50
53
|
}));
|
|
51
54
|
}
|
|
52
55
|
});
|
|
53
56
|
export {
|
|
54
|
-
|
|
57
|
+
R as default
|
|
55
58
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarFloating.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarFloating/ScalarFloating.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarFloating.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarFloating/ScalarFloating.vue"],"names":[],"mappings":"AAiGA,OAAO,EACL,KAAK,cAAc,EAMpB,MAAM,kBAAkB,CAAA;AAGzB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAkE9C,iBAAS,cAAc;IAzDrB,kEAAkE;eACvD,GAAG;IACd,2BAA2B;oBACX;QACd,4FAA4F;QAC5F,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,6FAA6F;QAC7F,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,gDAAgD;QAChD,IAAI,CAAC,EAAE,cAAc,CAAA;KACtB,GAAG,GAAG;;IAVP,kEAAkE;eACvD,GAAG;IACd,2BAA2B;oBACX;QACd,4FAA4F;QAC5F,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,6FAA6F;QAC7F,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,gDAAgD;QAChD,IAAI,CAAC,EAAE,cAAc,CAAA;KACtB,GAAG,GAAG;EAiHR;AACD,QAAA,MAAM,eAAe,2SAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as w, ref as d, computed as
|
|
1
|
+
import { defineComponent as w, ref as d, computed as o, openBlock as p, createElementBlock as R, Fragment as z, createElementVNode as r, normalizeClass as S, renderSlot as f, createBlock as b, Teleport as k, normalizeStyle as B, unref as m, createCommentVNode as C } from "vue";
|
|
2
2
|
import { getSideAxis as c } from "@floating-ui/utils";
|
|
3
3
|
import { useFloating as E, autoUpdate as F, offset as _, flip as $, shift as A } from "@floating-ui/vue";
|
|
4
4
|
import { useResizeWithTarget as N } from "./useResizeWithTarget.js";
|
|
@@ -8,41 +8,42 @@ const O = { class: "scalar-app" }, H = /* @__PURE__ */ w({
|
|
|
8
8
|
props: {
|
|
9
9
|
placement: {},
|
|
10
10
|
resize: { type: Boolean },
|
|
11
|
+
targetRef: {},
|
|
11
12
|
middleware: {},
|
|
12
13
|
isOpen: { type: Boolean },
|
|
13
14
|
teleport: { type: [Boolean, String] }
|
|
14
15
|
},
|
|
15
16
|
setup(u) {
|
|
16
|
-
const
|
|
17
|
+
const t = u, n = d(null), a = d(null), i = o(
|
|
17
18
|
() => {
|
|
18
|
-
var e,
|
|
19
|
-
return (((
|
|
19
|
+
var e, l;
|
|
20
|
+
return (t.targetRef || ((l = (e = a.value) == null ? void 0 : e.children) == null ? void 0 : l[0]) || a.value) ?? void 0;
|
|
20
21
|
}
|
|
21
22
|
), s = N(i, {
|
|
22
|
-
enabled:
|
|
23
|
-
}), g =
|
|
24
|
-
() => c(
|
|
25
|
-
), h =
|
|
26
|
-
() => c(
|
|
23
|
+
enabled: o(() => t.resize)
|
|
24
|
+
}), g = o(
|
|
25
|
+
() => c(t.placement || "bottom") === "y" ? s.width.value : void 0
|
|
26
|
+
), h = o(
|
|
27
|
+
() => c(t.placement || "bottom") === "x" ? s.height.value : void 0
|
|
27
28
|
), { floatingStyles: v, middlewareData: y } = E(i, n, {
|
|
28
|
-
placement:
|
|
29
|
+
placement: o(() => t.placement),
|
|
29
30
|
whileElementsMounted: F,
|
|
30
|
-
middleware:
|
|
31
|
+
middleware: o(() => [
|
|
31
32
|
_(5),
|
|
32
33
|
$(),
|
|
33
34
|
A(),
|
|
34
|
-
...
|
|
35
|
+
...t.middleware ?? []
|
|
35
36
|
])
|
|
36
37
|
});
|
|
37
|
-
return (e,
|
|
38
|
+
return (e, l) => (p(), R(z, null, [
|
|
38
39
|
r("div", {
|
|
39
40
|
ref_key: "wrapperRef",
|
|
40
|
-
ref:
|
|
41
|
-
class:
|
|
41
|
+
ref: a,
|
|
42
|
+
class: S({ contents: !!e.$slots.default })
|
|
42
43
|
}, [
|
|
43
|
-
|
|
44
|
+
f(e.$slots, "default")
|
|
44
45
|
], 2),
|
|
45
|
-
e.isOpen ? (p(), k
|
|
46
|
+
e.isOpen ? (p(), b(k, {
|
|
46
47
|
key: 0,
|
|
47
48
|
disabled: !e.teleport,
|
|
48
49
|
to: typeof e.teleport == "string" ? e.teleport : "body"
|
|
@@ -52,10 +53,10 @@ const O = { class: "scalar-app" }, H = /* @__PURE__ */ w({
|
|
|
52
53
|
ref_key: "floatingRef",
|
|
53
54
|
ref: n,
|
|
54
55
|
class: "relative z-overlay",
|
|
55
|
-
style:
|
|
56
|
+
style: B(m(v))
|
|
56
57
|
}, [
|
|
57
|
-
|
|
58
|
-
data:
|
|
58
|
+
f(e.$slots, "floating", {
|
|
59
|
+
data: m(y),
|
|
59
60
|
height: h.value,
|
|
60
61
|
width: g.value
|
|
61
62
|
})
|
|
@@ -10,6 +10,11 @@ export type FloatingOptions = {
|
|
|
10
10
|
* If enabled it will set `width` slot prop of the floating slot
|
|
11
11
|
*/
|
|
12
12
|
resize?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Override the targetRef, useful if we are not passing a button
|
|
15
|
+
* into the slot but is controlled from an external button
|
|
16
|
+
*/
|
|
17
|
+
targetRef?: HTMLElement;
|
|
13
18
|
/**
|
|
14
19
|
* Floating UI Middleware to be passed to Floating UI
|
|
15
20
|
* @see https://floating-ui.com/docs/computePosition#middleware
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarFloating/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarFloating/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAG7D,MAAM,MAAM,eAAe,GAAG;IAC5B;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;;OAGG;IACH,SAAS,CAAC,EAAE,WAAW,CAAA;IACvB;;;OAGG;IACH,UAAU,CAAC,EAAE,UAAU,EAAE,CAAA;IACzB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;CAC5B,CAAA"}
|