@scalar/components 0.12.28 → 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/ScalarMarkdown/ScalarMarkdown.stories.d.ts +48 -0
- package/dist/components/ScalarMarkdown/ScalarMarkdown.stories.d.ts.map +1 -1
- package/dist/components/ScalarMarkdown/ScalarMarkdown.vue.d.ts +4 -0
- package/dist/components/ScalarMarkdown/ScalarMarkdown.vue.d.ts.map +1 -1
- package/dist/components/ScalarMarkdown/ScalarMarkdown.vue.js +16 -12
- 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
|
};
|
|
@@ -4,6 +4,9 @@ import type { StoryObj } from '@storybook/vue3';
|
|
|
4
4
|
*/
|
|
5
5
|
declare const meta: {
|
|
6
6
|
component: import("vue").DefineComponent<{
|
|
7
|
+
transform: {
|
|
8
|
+
type: import("vue").PropType<(node: Record<string, any>) => Record<string, any>>;
|
|
9
|
+
};
|
|
7
10
|
value: {
|
|
8
11
|
type: import("vue").PropType<string>;
|
|
9
12
|
};
|
|
@@ -11,7 +14,13 @@ declare const meta: {
|
|
|
11
14
|
type: import("vue").PropType<boolean>;
|
|
12
15
|
default: boolean;
|
|
13
16
|
};
|
|
17
|
+
transformType: {
|
|
18
|
+
type: import("vue").PropType<string>;
|
|
19
|
+
};
|
|
14
20
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
+
transform: {
|
|
22
|
+
type: import("vue").PropType<(node: Record<string, any>) => Record<string, any>>;
|
|
23
|
+
};
|
|
15
24
|
value: {
|
|
16
25
|
type: import("vue").PropType<string>;
|
|
17
26
|
};
|
|
@@ -19,11 +28,17 @@ declare const meta: {
|
|
|
19
28
|
type: import("vue").PropType<boolean>;
|
|
20
29
|
default: boolean;
|
|
21
30
|
};
|
|
31
|
+
transformType: {
|
|
32
|
+
type: import("vue").PropType<string>;
|
|
33
|
+
};
|
|
22
34
|
}>>, {
|
|
23
35
|
withImages: boolean;
|
|
24
36
|
}, {}>;
|
|
25
37
|
tags: string[];
|
|
26
38
|
render: (args: import("@storybook/vue3").ComponentPropsAndSlots<import("vue").DefineComponent<{
|
|
39
|
+
transform: {
|
|
40
|
+
type: import("vue").PropType<(node: Record<string, any>) => Record<string, any>>;
|
|
41
|
+
};
|
|
27
42
|
value: {
|
|
28
43
|
type: import("vue").PropType<string>;
|
|
29
44
|
};
|
|
@@ -31,7 +46,13 @@ declare const meta: {
|
|
|
31
46
|
type: import("vue").PropType<boolean>;
|
|
32
47
|
default: boolean;
|
|
33
48
|
};
|
|
49
|
+
transformType: {
|
|
50
|
+
type: import("vue").PropType<string>;
|
|
51
|
+
};
|
|
34
52
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
53
|
+
transform: {
|
|
54
|
+
type: import("vue").PropType<(node: Record<string, any>) => Record<string, any>>;
|
|
55
|
+
};
|
|
35
56
|
value: {
|
|
36
57
|
type: import("vue").PropType<string>;
|
|
37
58
|
};
|
|
@@ -39,11 +60,17 @@ declare const meta: {
|
|
|
39
60
|
type: import("vue").PropType<boolean>;
|
|
40
61
|
default: boolean;
|
|
41
62
|
};
|
|
63
|
+
transformType: {
|
|
64
|
+
type: import("vue").PropType<string>;
|
|
65
|
+
};
|
|
42
66
|
}>>, {
|
|
43
67
|
withImages: boolean;
|
|
44
68
|
}, {}>>) => {
|
|
45
69
|
components: {
|
|
46
70
|
ScalarMarkdown: import("vue").DefineComponent<{
|
|
71
|
+
transform: {
|
|
72
|
+
type: import("vue").PropType<(node: Record<string, any>) => Record<string, any>>;
|
|
73
|
+
};
|
|
47
74
|
value: {
|
|
48
75
|
type: import("vue").PropType<string>;
|
|
49
76
|
};
|
|
@@ -51,7 +78,13 @@ declare const meta: {
|
|
|
51
78
|
type: import("vue").PropType<boolean>;
|
|
52
79
|
default: boolean;
|
|
53
80
|
};
|
|
81
|
+
transformType: {
|
|
82
|
+
type: import("vue").PropType<string>;
|
|
83
|
+
};
|
|
54
84
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
85
|
+
transform: {
|
|
86
|
+
type: import("vue").PropType<(node: Record<string, any>) => Record<string, any>>;
|
|
87
|
+
};
|
|
55
88
|
value: {
|
|
56
89
|
type: import("vue").PropType<string>;
|
|
57
90
|
};
|
|
@@ -59,12 +92,18 @@ declare const meta: {
|
|
|
59
92
|
type: import("vue").PropType<boolean>;
|
|
60
93
|
default: boolean;
|
|
61
94
|
};
|
|
95
|
+
transformType: {
|
|
96
|
+
type: import("vue").PropType<string>;
|
|
97
|
+
};
|
|
62
98
|
}>>, {
|
|
63
99
|
withImages: boolean;
|
|
64
100
|
}, {}>;
|
|
65
101
|
};
|
|
66
102
|
setup(this: void): {
|
|
67
103
|
args: import("@storybook/vue3").ComponentPropsAndSlots<import("vue").DefineComponent<{
|
|
104
|
+
transform: {
|
|
105
|
+
type: import("vue").PropType<(node: Record<string, any>) => Record<string, any>>;
|
|
106
|
+
};
|
|
68
107
|
value: {
|
|
69
108
|
type: import("vue").PropType<string>;
|
|
70
109
|
};
|
|
@@ -72,7 +111,13 @@ declare const meta: {
|
|
|
72
111
|
type: import("vue").PropType<boolean>;
|
|
73
112
|
default: boolean;
|
|
74
113
|
};
|
|
114
|
+
transformType: {
|
|
115
|
+
type: import("vue").PropType<string>;
|
|
116
|
+
};
|
|
75
117
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
118
|
+
transform: {
|
|
119
|
+
type: import("vue").PropType<(node: Record<string, any>) => Record<string, any>>;
|
|
120
|
+
};
|
|
76
121
|
value: {
|
|
77
122
|
type: import("vue").PropType<string>;
|
|
78
123
|
};
|
|
@@ -80,6 +125,9 @@ declare const meta: {
|
|
|
80
125
|
type: import("vue").PropType<boolean>;
|
|
81
126
|
default: boolean;
|
|
82
127
|
};
|
|
128
|
+
transformType: {
|
|
129
|
+
type: import("vue").PropType<string>;
|
|
130
|
+
};
|
|
83
131
|
}>>, {
|
|
84
132
|
withImages: boolean;
|
|
85
133
|
}, {}>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarMarkdown.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMarkdown/ScalarMarkdown.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAKrD;;GAEG;AACH,QAAA,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"ScalarMarkdown.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMarkdown/ScalarMarkdown.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAKrD;;GAEG;AACH,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAU6B,CAAA;AAEvC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,IAAI,EAAE,KAA4C,CAAA"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
2
2
|
value?: string;
|
|
3
3
|
withImages?: boolean;
|
|
4
|
+
transform?: (node: Record<string, any>) => Record<string, any>;
|
|
5
|
+
transformType?: string;
|
|
4
6
|
}>, {
|
|
5
7
|
withImages: boolean;
|
|
6
8
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
7
9
|
value?: string;
|
|
8
10
|
withImages?: boolean;
|
|
11
|
+
transform?: (node: Record<string, any>) => Record<string, any>;
|
|
12
|
+
transformType?: string;
|
|
9
13
|
}>, {
|
|
10
14
|
withImages: boolean;
|
|
11
15
|
}>>>, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarMarkdown.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMarkdown/ScalarMarkdown.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ScalarMarkdown.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMarkdown/ScalarMarkdown.vue"],"names":[],"mappings":";YAiDY,MAAM;iBACD,OAAO;gBACR,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;oBAC9C,MAAM;;;;YAHd,MAAM;iBACD,OAAO;gBACR,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;oBAC9C,MAAM;;;;gBAFT,OAAO;;AAkExB,wBAMG;AAOH,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,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,22 +1,26 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { htmlFromMarkdown as
|
|
3
|
-
import { sleep as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as t, computed as a, onServerPrefetch as n, openBlock as m, createElementBlock as s } from "vue";
|
|
2
|
+
import { htmlFromMarkdown as p } from "@scalar/code-highlight";
|
|
3
|
+
import { sleep as c } from "../../helpers/oas-utils.js";
|
|
4
|
+
const l = ["innerHTML"], h = /* @__PURE__ */ t({
|
|
5
5
|
__name: "ScalarMarkdown",
|
|
6
6
|
props: {
|
|
7
7
|
value: {},
|
|
8
|
-
withImages: { type: Boolean, default: !1 }
|
|
8
|
+
withImages: { type: Boolean, default: !1 },
|
|
9
|
+
transform: {},
|
|
10
|
+
transformType: {}
|
|
9
11
|
},
|
|
10
|
-
setup(
|
|
11
|
-
const e =
|
|
12
|
-
() =>
|
|
13
|
-
removeTags: e.withImages ? [] : ["img", "picture"]
|
|
12
|
+
setup(r) {
|
|
13
|
+
const e = r, o = a(
|
|
14
|
+
() => p(e.value ?? "", {
|
|
15
|
+
removeTags: e.withImages ? [] : ["img", "picture"],
|
|
16
|
+
transform: e.transform,
|
|
17
|
+
transformType: e.transformType
|
|
14
18
|
})
|
|
15
19
|
);
|
|
16
|
-
return n(async () => await
|
|
20
|
+
return n(async () => await c(1)), (f, i) => (m(), s("div", {
|
|
17
21
|
class: "markdown",
|
|
18
|
-
innerHTML:
|
|
19
|
-
}, null, 8,
|
|
22
|
+
innerHTML: o.value
|
|
23
|
+
}, null, 8, l));
|
|
20
24
|
}
|
|
21
25
|
});
|
|
22
26
|
export {
|