@scalar/components 0.12.29 → 0.12.30
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/ScalarContextMenu/ScalarContextMenu.spec.d.ts +2 -0
- package/dist/components/ScalarContextMenu/ScalarContextMenu.spec.d.ts.map +1 -0
- package/dist/components/ScalarContextMenu/ScalarContextMenu.stories.d.ts +564 -0
- package/dist/components/ScalarContextMenu/ScalarContextMenu.stories.d.ts.map +1 -0
- package/dist/components/ScalarContextMenu/ScalarContextMenu.vue.d.ts +52 -0
- package/dist/components/ScalarContextMenu/ScalarContextMenu.vue.d.ts.map +1 -0
- package/dist/components/ScalarContextMenu/ScalarContextMenu.vue.js +50 -0
- package/dist/components/ScalarContextMenu/ScalarContextMenu.vue2.js +4 -0
- package/dist/components/ScalarContextMenu/index.d.ts +2 -0
- package/dist/components/ScalarContextMenu/index.d.ts.map +1 -0
- package/dist/components/ScalarDropdown/ScalarDropdown.stories.d.ts +100 -12
- package/dist/components/ScalarDropdown/ScalarDropdown.stories.d.ts.map +1 -1
- package/dist/components/ScalarDropdown/ScalarDropdown.vue.d.ts +19 -1
- package/dist/components/ScalarDropdown/ScalarDropdown.vue.d.ts.map +1 -1
- package/dist/components/ScalarDropdown/ScalarDropdown.vue.js +24 -20
- package/dist/components/ScalarDropdown/ScalarDropdownItem.vue.js +1 -1
- package/dist/components/ScalarIcon/icons/User.svg.js +18 -10
- package/dist/components/ScalarTooltip/ScalarTooltip.stories.d.ts +76 -76
- package/dist/components/ScalarTooltip/ScalarTooltip.vue.d.ts +1 -1
- package/dist/components/ScalarTooltip/ScalarTooltip.vue.d.ts.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +30 -28
- package/dist/style.css +1 -1
- package/package.json +5 -5
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { defineComponent as s, openBlock as f, createBlock as i, unref as e, withCtx as t, createVNode as o, renderSlot as a } from "vue";
|
|
2
|
+
import { ContextMenuRoot as r, ContextMenuTrigger as u, ContextMenuPortal as c, ContextMenuContent as p, ContextMenuItem as m } from "radix-vue";
|
|
3
|
+
const x = /* @__PURE__ */ s({
|
|
4
|
+
__name: "ScalarContextMenu",
|
|
5
|
+
props: {
|
|
6
|
+
align: { default: "center" },
|
|
7
|
+
side: { default: "bottom" },
|
|
8
|
+
sideOffset: {},
|
|
9
|
+
disabled: { type: Boolean, default: !1 }
|
|
10
|
+
},
|
|
11
|
+
setup(d) {
|
|
12
|
+
const n = d;
|
|
13
|
+
return (l, C) => (f(), i(e(r), null, {
|
|
14
|
+
default: t(() => [
|
|
15
|
+
o(e(u), {
|
|
16
|
+
disabled: n.disabled
|
|
17
|
+
}, {
|
|
18
|
+
default: t(() => [
|
|
19
|
+
a(l.$slots, "trigger")
|
|
20
|
+
]),
|
|
21
|
+
_: 3
|
|
22
|
+
}, 8, ["disabled"]),
|
|
23
|
+
o(e(c), null, {
|
|
24
|
+
default: t(() => [
|
|
25
|
+
o(e(p), {
|
|
26
|
+
align: n.align,
|
|
27
|
+
side: n.side,
|
|
28
|
+
sideOffset: n.sideOffset
|
|
29
|
+
}, {
|
|
30
|
+
default: t(() => [
|
|
31
|
+
o(e(m), null, {
|
|
32
|
+
default: t(() => [
|
|
33
|
+
a(l.$slots, "content")
|
|
34
|
+
]),
|
|
35
|
+
_: 3
|
|
36
|
+
})
|
|
37
|
+
]),
|
|
38
|
+
_: 3
|
|
39
|
+
}, 8, ["align", "side", "sideOffset"])
|
|
40
|
+
]),
|
|
41
|
+
_: 3
|
|
42
|
+
})
|
|
43
|
+
]),
|
|
44
|
+
_: 3
|
|
45
|
+
}));
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
export {
|
|
49
|
+
x as default
|
|
50
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarContextMenu/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA"}
|
|
@@ -14,6 +14,10 @@ declare const meta: {
|
|
|
14
14
|
teleport: {
|
|
15
15
|
type: import("vue").PropType<string | boolean>;
|
|
16
16
|
};
|
|
17
|
+
static: {
|
|
18
|
+
type: import("vue").PropType<boolean>;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
17
21
|
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
18
22
|
resize: {
|
|
19
23
|
type: import("vue").PropType<boolean>;
|
|
@@ -27,7 +31,13 @@ declare const meta: {
|
|
|
27
31
|
teleport: {
|
|
28
32
|
type: import("vue").PropType<string | boolean>;
|
|
29
33
|
};
|
|
30
|
-
|
|
34
|
+
static: {
|
|
35
|
+
type: import("vue").PropType<boolean>;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
}>>, {
|
|
39
|
+
static: boolean;
|
|
40
|
+
}, true, {}, {}, {
|
|
31
41
|
P: {};
|
|
32
42
|
B: {};
|
|
33
43
|
D: {};
|
|
@@ -47,7 +57,13 @@ declare const meta: {
|
|
|
47
57
|
teleport: {
|
|
48
58
|
type: import("vue").PropType<string | boolean>;
|
|
49
59
|
};
|
|
50
|
-
|
|
60
|
+
static: {
|
|
61
|
+
type: import("vue").PropType<boolean>;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
}>>, {}, {}, {}, {}, {
|
|
65
|
+
static: boolean;
|
|
66
|
+
}>;
|
|
51
67
|
__isFragment?: never;
|
|
52
68
|
__isTeleport?: never;
|
|
53
69
|
__isSuspense?: never;
|
|
@@ -64,7 +80,13 @@ declare const meta: {
|
|
|
64
80
|
teleport: {
|
|
65
81
|
type: import("vue").PropType<string | boolean>;
|
|
66
82
|
};
|
|
67
|
-
|
|
83
|
+
static: {
|
|
84
|
+
type: import("vue").PropType<boolean>;
|
|
85
|
+
default: boolean;
|
|
86
|
+
};
|
|
87
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
88
|
+
static: boolean;
|
|
89
|
+
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
68
90
|
$slots: {
|
|
69
91
|
default?(_: {}): any;
|
|
70
92
|
items?(_: {}): any;
|
|
@@ -94,6 +116,10 @@ declare const meta: {
|
|
|
94
116
|
teleport: {
|
|
95
117
|
type: import("vue").PropType<string | boolean>;
|
|
96
118
|
};
|
|
119
|
+
static: {
|
|
120
|
+
type: import("vue").PropType<boolean>;
|
|
121
|
+
default: boolean;
|
|
122
|
+
};
|
|
97
123
|
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
98
124
|
resize: {
|
|
99
125
|
type: import("vue").PropType<boolean>;
|
|
@@ -107,7 +133,13 @@ declare const meta: {
|
|
|
107
133
|
teleport: {
|
|
108
134
|
type: import("vue").PropType<string | boolean>;
|
|
109
135
|
};
|
|
110
|
-
|
|
136
|
+
static: {
|
|
137
|
+
type: import("vue").PropType<boolean>;
|
|
138
|
+
default: boolean;
|
|
139
|
+
};
|
|
140
|
+
}>>, {
|
|
141
|
+
static: boolean;
|
|
142
|
+
}, true, {}, {}, {
|
|
111
143
|
P: {};
|
|
112
144
|
B: {};
|
|
113
145
|
D: {};
|
|
@@ -127,7 +159,13 @@ declare const meta: {
|
|
|
127
159
|
teleport: {
|
|
128
160
|
type: import("vue").PropType<string | boolean>;
|
|
129
161
|
};
|
|
130
|
-
|
|
162
|
+
static: {
|
|
163
|
+
type: import("vue").PropType<boolean>;
|
|
164
|
+
default: boolean;
|
|
165
|
+
};
|
|
166
|
+
}>>, {}, {}, {}, {}, {
|
|
167
|
+
static: boolean;
|
|
168
|
+
}>;
|
|
131
169
|
__isFragment?: never;
|
|
132
170
|
__isTeleport?: never;
|
|
133
171
|
__isSuspense?: never;
|
|
@@ -144,7 +182,13 @@ declare const meta: {
|
|
|
144
182
|
teleport: {
|
|
145
183
|
type: import("vue").PropType<string | boolean>;
|
|
146
184
|
};
|
|
147
|
-
|
|
185
|
+
static: {
|
|
186
|
+
type: import("vue").PropType<boolean>;
|
|
187
|
+
default: boolean;
|
|
188
|
+
};
|
|
189
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
190
|
+
static: boolean;
|
|
191
|
+
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
148
192
|
$slots: {
|
|
149
193
|
default?(_: {}): any;
|
|
150
194
|
items?(_: {}): any;
|
|
@@ -165,6 +209,10 @@ declare const meta: {
|
|
|
165
209
|
teleport: {
|
|
166
210
|
type: import("vue").PropType<string | boolean>;
|
|
167
211
|
};
|
|
212
|
+
static: {
|
|
213
|
+
type: import("vue").PropType<boolean>;
|
|
214
|
+
default: boolean;
|
|
215
|
+
};
|
|
168
216
|
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
169
217
|
resize: {
|
|
170
218
|
type: import("vue").PropType<boolean>;
|
|
@@ -178,7 +226,13 @@ declare const meta: {
|
|
|
178
226
|
teleport: {
|
|
179
227
|
type: import("vue").PropType<string | boolean>;
|
|
180
228
|
};
|
|
181
|
-
|
|
229
|
+
static: {
|
|
230
|
+
type: import("vue").PropType<boolean>;
|
|
231
|
+
default: boolean;
|
|
232
|
+
};
|
|
233
|
+
}>>, {
|
|
234
|
+
static: boolean;
|
|
235
|
+
}, true, {}, {}, {
|
|
182
236
|
P: {};
|
|
183
237
|
B: {};
|
|
184
238
|
D: {};
|
|
@@ -198,7 +252,13 @@ declare const meta: {
|
|
|
198
252
|
teleport: {
|
|
199
253
|
type: import("vue").PropType<string | boolean>;
|
|
200
254
|
};
|
|
201
|
-
|
|
255
|
+
static: {
|
|
256
|
+
type: import("vue").PropType<boolean>;
|
|
257
|
+
default: boolean;
|
|
258
|
+
};
|
|
259
|
+
}>>, {}, {}, {}, {}, {
|
|
260
|
+
static: boolean;
|
|
261
|
+
}>;
|
|
202
262
|
__isFragment?: never;
|
|
203
263
|
__isTeleport?: never;
|
|
204
264
|
__isSuspense?: never;
|
|
@@ -215,7 +275,13 @@ declare const meta: {
|
|
|
215
275
|
teleport: {
|
|
216
276
|
type: import("vue").PropType<string | boolean>;
|
|
217
277
|
};
|
|
218
|
-
|
|
278
|
+
static: {
|
|
279
|
+
type: import("vue").PropType<boolean>;
|
|
280
|
+
default: boolean;
|
|
281
|
+
};
|
|
282
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
283
|
+
static: boolean;
|
|
284
|
+
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
219
285
|
$slots: {
|
|
220
286
|
default?(_: {}): any;
|
|
221
287
|
items?(_: {}): any;
|
|
@@ -445,6 +511,10 @@ declare const meta: {
|
|
|
445
511
|
teleport: {
|
|
446
512
|
type: import("vue").PropType<string | boolean>;
|
|
447
513
|
};
|
|
514
|
+
static: {
|
|
515
|
+
type: import("vue").PropType<boolean>;
|
|
516
|
+
default: boolean;
|
|
517
|
+
};
|
|
448
518
|
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
449
519
|
resize: {
|
|
450
520
|
type: import("vue").PropType<boolean>;
|
|
@@ -458,7 +528,13 @@ declare const meta: {
|
|
|
458
528
|
teleport: {
|
|
459
529
|
type: import("vue").PropType<string | boolean>;
|
|
460
530
|
};
|
|
461
|
-
|
|
531
|
+
static: {
|
|
532
|
+
type: import("vue").PropType<boolean>;
|
|
533
|
+
default: boolean;
|
|
534
|
+
};
|
|
535
|
+
}>>, {
|
|
536
|
+
static: boolean;
|
|
537
|
+
}, true, {}, {}, {
|
|
462
538
|
P: {};
|
|
463
539
|
B: {};
|
|
464
540
|
D: {};
|
|
@@ -478,7 +554,13 @@ declare const meta: {
|
|
|
478
554
|
teleport: {
|
|
479
555
|
type: import("vue").PropType<string | boolean>;
|
|
480
556
|
};
|
|
481
|
-
|
|
557
|
+
static: {
|
|
558
|
+
type: import("vue").PropType<boolean>;
|
|
559
|
+
default: boolean;
|
|
560
|
+
};
|
|
561
|
+
}>>, {}, {}, {}, {}, {
|
|
562
|
+
static: boolean;
|
|
563
|
+
}>;
|
|
482
564
|
__isFragment?: never;
|
|
483
565
|
__isTeleport?: never;
|
|
484
566
|
__isSuspense?: never;
|
|
@@ -495,7 +577,13 @@ declare const meta: {
|
|
|
495
577
|
teleport: {
|
|
496
578
|
type: import("vue").PropType<string | boolean>;
|
|
497
579
|
};
|
|
498
|
-
|
|
580
|
+
static: {
|
|
581
|
+
type: import("vue").PropType<boolean>;
|
|
582
|
+
default: boolean;
|
|
583
|
+
};
|
|
584
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
585
|
+
static: boolean;
|
|
586
|
+
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
499
587
|
$slots: {
|
|
500
588
|
default?(_: {}): any;
|
|
501
589
|
items?(_: {}): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarDropdown.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarDropdown/ScalarDropdown.stories.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAOrD,QAAA,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"ScalarDropdown.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarDropdown/ScalarDropdown.stories.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAOrD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqC6B,CAAA;AAEvC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,IAAI,EAAE,KAAU,CAAA"}
|
|
@@ -3,9 +3,27 @@ declare function __VLS_template(): {
|
|
|
3
3
|
default?(_: {}): any;
|
|
4
4
|
items?(_: {}): any;
|
|
5
5
|
};
|
|
6
|
-
declare const __VLS_component: import("vue").DefineComponent<
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Omit<FloatingOptions, "middleware"> & {
|
|
7
|
+
static?: boolean;
|
|
8
|
+
}>, {
|
|
9
|
+
static: boolean;
|
|
10
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Omit<FloatingOptions, "middleware"> & {
|
|
11
|
+
static?: boolean;
|
|
12
|
+
}>, {
|
|
13
|
+
static: boolean;
|
|
14
|
+
}>>>, {
|
|
15
|
+
static: boolean;
|
|
16
|
+
}, {}>;
|
|
7
17
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
8
18
|
export default _default;
|
|
19
|
+
type __VLS_WithDefaults<P, D> = {
|
|
20
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
21
|
+
default: D[K];
|
|
22
|
+
}> : P[K];
|
|
23
|
+
};
|
|
24
|
+
type __VLS_Prettify<T> = {
|
|
25
|
+
[K in keyof T]: T[K];
|
|
26
|
+
} & {};
|
|
9
27
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
10
28
|
new (): {
|
|
11
29
|
$slots: S;
|
|
@@ -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":"AA0CA,OAAO,EAAE,KAAK,eAAe,EAAkB,MAAM,mBAAmB,CAAA;AAkBxE,iBAAS,cAAc;qBAqGO,GAAG;mBACL,GAAG;EAkB9B;AACD,QAAA,MAAM,eAAe;aAvIkD,OAAO;;;;aAAP,OAAO;;;;YAAP,OAAO;MA6I5E,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,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,43 +1,47 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Menu as
|
|
3
|
-
import
|
|
4
|
-
const g = /* @__PURE__ */ f("div", { class: "absolute inset-0 -z-1 rounded bg-b-1 shadow-lg brightness-lifted" }, null, -1),
|
|
1
|
+
import { defineComponent as p, openBlock as s, createBlock as l, unref as o, withCtx as t, createVNode as a, mergeProps as m, renderSlot as r, createCommentVNode as u, createElementVNode as f } from "vue";
|
|
2
|
+
import { Menu as d, MenuItems as c, MenuButton as y } from "@headlessui/vue";
|
|
3
|
+
import B from "../ScalarFloating/ScalarFloating.vue.js";
|
|
4
|
+
const g = /* @__PURE__ */ f("div", { class: "absolute inset-0 -z-1 rounded bg-b-1 shadow-lg brightness-lifted" }, null, -1), O = /* @__PURE__ */ p({
|
|
5
5
|
inheritAttrs: !1,
|
|
6
6
|
__name: "ScalarDropdown",
|
|
7
7
|
props: {
|
|
8
8
|
placement: {},
|
|
9
9
|
resize: { type: Boolean },
|
|
10
10
|
isOpen: { type: Boolean },
|
|
11
|
-
teleport: { type: [Boolean, String] }
|
|
11
|
+
teleport: { type: [Boolean, String] },
|
|
12
|
+
static: { type: Boolean, default: !1 }
|
|
12
13
|
},
|
|
13
14
|
setup(h) {
|
|
14
|
-
return (e,
|
|
15
|
-
default: t(({ open:
|
|
16
|
-
|
|
17
|
-
isOpen:
|
|
15
|
+
return (e, _) => (s(), l(o(d), null, {
|
|
16
|
+
default: t(({ open: n }) => [
|
|
17
|
+
a(o(B), {
|
|
18
|
+
isOpen: e.static ? !0 : n ?? e.isOpen,
|
|
18
19
|
placement: e.placement ?? "bottom-start",
|
|
19
20
|
resize: e.resize,
|
|
20
21
|
teleport: e.teleport
|
|
21
22
|
}, {
|
|
22
|
-
floating: t(({ width:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
style: { width:
|
|
26
|
-
}
|
|
23
|
+
floating: t(({ width: i }) => [
|
|
24
|
+
a(o(c), m({ class: "relative flex w-56 flex-col p-0.75" }, e.$attrs, {
|
|
25
|
+
static: e.static,
|
|
26
|
+
style: { width: i }
|
|
27
|
+
}), {
|
|
27
28
|
default: t(() => [
|
|
28
|
-
|
|
29
|
+
r(e.$slots, "items"),
|
|
29
30
|
g
|
|
30
31
|
]),
|
|
31
32
|
_: 2
|
|
32
|
-
}, 1040, ["style"])
|
|
33
|
+
}, 1040, ["static", "style"])
|
|
33
34
|
]),
|
|
34
35
|
default: t(() => [
|
|
35
|
-
|
|
36
|
+
e.static ? u("", !0) : (s(), l(o(y), {
|
|
37
|
+
key: 0,
|
|
38
|
+
as: "template"
|
|
39
|
+
}, {
|
|
36
40
|
default: t(() => [
|
|
37
|
-
|
|
41
|
+
r(e.$slots, "default")
|
|
38
42
|
]),
|
|
39
43
|
_: 3
|
|
40
|
-
})
|
|
44
|
+
}))
|
|
41
45
|
]),
|
|
42
46
|
_: 2
|
|
43
47
|
}, 1032, ["isOpen", "placement", "resize", "teleport"])
|
|
@@ -47,5 +51,5 @@ const g = /* @__PURE__ */ f("div", { class: "absolute inset-0 -z-1 rounded bg-b-
|
|
|
47
51
|
}
|
|
48
52
|
});
|
|
49
53
|
export {
|
|
50
|
-
|
|
54
|
+
O as default
|
|
51
55
|
};
|
|
@@ -11,7 +11,7 @@ const C = /* @__PURE__ */ s({
|
|
|
11
11
|
const r = b({
|
|
12
12
|
base: [
|
|
13
13
|
// Layout
|
|
14
|
-
"min-w-0 items-center gap-1.5 rounded px-2.5 py-1.5 text-left",
|
|
14
|
+
"h-8 min-w-0 items-center gap-1.5 rounded px-2.5 py-1.5 text-left",
|
|
15
15
|
// Text / background style
|
|
16
16
|
"truncate text-sm text-c-1",
|
|
17
17
|
// Interaction
|
|
@@ -1,16 +1,24 @@
|
|
|
1
|
-
import { openBlock as
|
|
2
|
-
const
|
|
1
|
+
import { openBlock as o, createElementBlock as t, createElementVNode as e } from "vue";
|
|
2
|
+
const n = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
-
fill: "
|
|
4
|
+
fill: "none",
|
|
5
|
+
stroke: "currentColor",
|
|
6
|
+
"stroke-linecap": "round",
|
|
7
|
+
"stroke-linejoin": "round",
|
|
5
8
|
viewBox: "0 0 24 24"
|
|
6
|
-
},
|
|
7
|
-
|
|
9
|
+
}, r = /* @__PURE__ */ e("path", { d: "M3.5 22.2c.3-4.5 4-8 8.5-8s8.2 3.5 8.5 8z" }, null, -1), c = /* @__PURE__ */ e("circle", {
|
|
10
|
+
cx: "12",
|
|
11
|
+
cy: "6.2",
|
|
12
|
+
r: "4.5"
|
|
13
|
+
}, null, -1), s = [
|
|
14
|
+
r,
|
|
15
|
+
c
|
|
8
16
|
];
|
|
9
|
-
function
|
|
10
|
-
return
|
|
17
|
+
function l(i, d) {
|
|
18
|
+
return o(), t("svg", n, [...s]);
|
|
11
19
|
}
|
|
12
|
-
const
|
|
20
|
+
const u = { render: l };
|
|
13
21
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
22
|
+
u as default,
|
|
23
|
+
l as render
|
|
16
24
|
};
|