@scalar/components 0.14.1 → 0.14.3
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/ScalarButton/ScalarButton.vue.d.ts.map +1 -1
- package/dist/components/ScalarButton/ScalarButton.vue.js +4 -4
- package/dist/components/ScalarButton/variants.js +5 -5
- package/dist/components/ScalarFileUpload/ScalarFileUpload.stories.d.ts +12 -12
- package/dist/components/ScalarFileUpload/ScalarFileUpload.vue.d.ts +1 -1
- package/dist/components/ScalarFileUpload/ScalarFileUpload.vue.js +129 -0
- package/dist/components/ScalarFileUpload/ScalarFileUpload.vue2.js +4 -0
- package/dist/components/ScalarFileUpload/ScalarFileUploadDropTarget.vue.js +31 -0
- package/dist/components/ScalarFileUpload/ScalarFileUploadDropTarget.vue2.js +4 -0
- package/dist/components/ScalarFileUpload/ScalarFileUploadError.vue.js +21 -0
- package/dist/components/ScalarFileUpload/ScalarFileUploadError.vue2.js +4 -0
- package/dist/components/ScalarFileUpload/ScalarFileUploadFileList.vue.js +55 -0
- package/dist/components/ScalarFileUpload/ScalarFileUploadFileList.vue2.js +4 -0
- package/dist/components/ScalarFileUpload/ScalarFileUploadInput.vue.d.ts +1 -1
- package/dist/components/ScalarFileUpload/ScalarFileUploadInput.vue.js +49 -0
- package/dist/components/ScalarFileUpload/ScalarFileUploadInput.vue2.js +4 -0
- package/dist/components/ScalarFileUpload/ScalarFileUploadInputCompact.vue.d.ts +1 -1
- package/dist/components/ScalarFileUpload/ScalarFileUploadInputCompact.vue.js +44 -0
- package/dist/components/ScalarFileUpload/ScalarFileUploadInputCompact.vue2.js +4 -0
- package/dist/components/ScalarFileUpload/ScalarFileUploadLoading.vue.js +27 -0
- package/dist/components/ScalarFileUpload/ScalarFileUploadLoading.vue2.js +4 -0
- package/dist/components/ScalarFileUpload/index.d.ts +7 -7
- package/dist/components/ScalarFileUpload/types.js +6 -0
- package/dist/components/ScalarMarkdown/ScalarMarkdown.stories.d.ts +20 -0
- package/dist/components/ScalarMarkdown/ScalarMarkdown.stories.d.ts.map +1 -1
- package/dist/components/ScalarMarkdown/ScalarMarkdown.test.d.ts +2 -0
- package/dist/components/ScalarMarkdown/ScalarMarkdown.test.d.ts.map +1 -0
- package/dist/components/ScalarMarkdown/ScalarMarkdown.vue.d.ts +3 -0
- package/dist/components/ScalarMarkdown/ScalarMarkdown.vue.d.ts.map +1 -1
- package/dist/components/ScalarMarkdown/ScalarMarkdown.vue.js +30 -20
- package/dist/components/ScalarModal/ScalarModal.vue.d.ts.map +1 -1
- package/dist/components/ScalarModal/ScalarModal.vue.js +2 -2
- package/dist/components/ScalarModal/ScalarModal.vue2.js +17 -17
- package/dist/components/ScalarSidebar/ScalarSidebarIndent.vue.d.ts.map +1 -1
- package/dist/components/ScalarSidebar/ScalarSidebarIndent.vue.js +2 -2
- 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 +137 -123
- package/dist/style.css +1 -1
- package/package.json +10 -13
|
@@ -10,6 +10,8 @@ declare const meta: {
|
|
|
10
10
|
transformType?: string;
|
|
11
11
|
clamp?: string | boolean;
|
|
12
12
|
class?: string;
|
|
13
|
+
withAnchors?: boolean;
|
|
14
|
+
anchorPrefix?: string;
|
|
13
15
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
14
16
|
value?: string;
|
|
15
17
|
withImages?: boolean;
|
|
@@ -17,8 +19,11 @@ declare const meta: {
|
|
|
17
19
|
transformType?: string;
|
|
18
20
|
clamp?: string | boolean;
|
|
19
21
|
class?: string;
|
|
22
|
+
withAnchors?: boolean;
|
|
23
|
+
anchorPrefix?: string;
|
|
20
24
|
}> & Readonly<{}>, {
|
|
21
25
|
withImages: boolean;
|
|
26
|
+
withAnchors: boolean;
|
|
22
27
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
23
28
|
tags: string[];
|
|
24
29
|
render: (args: import("@storybook/vue3").ComponentPropsAndSlots<import("vue").DefineComponent<{
|
|
@@ -28,6 +33,8 @@ declare const meta: {
|
|
|
28
33
|
transformType?: string;
|
|
29
34
|
clamp?: string | boolean;
|
|
30
35
|
class?: string;
|
|
36
|
+
withAnchors?: boolean;
|
|
37
|
+
anchorPrefix?: string;
|
|
31
38
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
32
39
|
value?: string;
|
|
33
40
|
withImages?: boolean;
|
|
@@ -35,8 +42,11 @@ declare const meta: {
|
|
|
35
42
|
transformType?: string;
|
|
36
43
|
clamp?: string | boolean;
|
|
37
44
|
class?: string;
|
|
45
|
+
withAnchors?: boolean;
|
|
46
|
+
anchorPrefix?: string;
|
|
38
47
|
}> & Readonly<{}>, {
|
|
39
48
|
withImages: boolean;
|
|
49
|
+
withAnchors: boolean;
|
|
40
50
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>>) => {
|
|
41
51
|
components: {
|
|
42
52
|
ScalarMarkdown: import("vue").DefineComponent<{
|
|
@@ -46,6 +56,8 @@ declare const meta: {
|
|
|
46
56
|
transformType?: string;
|
|
47
57
|
clamp?: string | boolean;
|
|
48
58
|
class?: string;
|
|
59
|
+
withAnchors?: boolean;
|
|
60
|
+
anchorPrefix?: string;
|
|
49
61
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
50
62
|
value?: string;
|
|
51
63
|
withImages?: boolean;
|
|
@@ -53,8 +65,11 @@ declare const meta: {
|
|
|
53
65
|
transformType?: string;
|
|
54
66
|
clamp?: string | boolean;
|
|
55
67
|
class?: string;
|
|
68
|
+
withAnchors?: boolean;
|
|
69
|
+
anchorPrefix?: string;
|
|
56
70
|
}> & Readonly<{}>, {
|
|
57
71
|
withImages: boolean;
|
|
72
|
+
withAnchors: boolean;
|
|
58
73
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
59
74
|
};
|
|
60
75
|
setup(this: void): {
|
|
@@ -65,6 +80,8 @@ declare const meta: {
|
|
|
65
80
|
transformType?: string;
|
|
66
81
|
clamp?: string | boolean;
|
|
67
82
|
class?: string;
|
|
83
|
+
withAnchors?: boolean;
|
|
84
|
+
anchorPrefix?: string;
|
|
68
85
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
69
86
|
value?: string;
|
|
70
87
|
withImages?: boolean;
|
|
@@ -72,8 +89,11 @@ declare const meta: {
|
|
|
72
89
|
transformType?: string;
|
|
73
90
|
clamp?: string | boolean;
|
|
74
91
|
class?: string;
|
|
92
|
+
withAnchors?: boolean;
|
|
93
|
+
anchorPrefix?: string;
|
|
75
94
|
}> & Readonly<{}>, {
|
|
76
95
|
withImages: boolean;
|
|
96
|
+
withAnchors: boolean;
|
|
77
97
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>>;
|
|
78
98
|
};
|
|
79
99
|
template: string;
|
|
@@ -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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScalarMarkdown.test.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMarkdown/ScalarMarkdown.test.ts"],"names":[],"mappings":""}
|
|
@@ -5,9 +5,12 @@ type __VLS_Props = {
|
|
|
5
5
|
transformType?: string;
|
|
6
6
|
clamp?: string | boolean;
|
|
7
7
|
class?: string;
|
|
8
|
+
withAnchors?: boolean;
|
|
9
|
+
anchorPrefix?: string;
|
|
8
10
|
};
|
|
9
11
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
10
12
|
withImages: boolean;
|
|
13
|
+
withAnchors: boolean;
|
|
11
14
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
12
15
|
export default _default;
|
|
13
16
|
//# sourceMappingURL=ScalarMarkdown.vue.d.ts.map
|
|
@@ -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":"AAsFA,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC9D,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAC;;gBAPa,OAAO;iBAKN,OAAO;;AAsHzB,wBAQG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { htmlFromMarkdown as
|
|
3
|
-
import { cx as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as f, computed as p, onServerPrefetch as h, createElementBlock as u, openBlock as d, normalizeStyle as g, normalizeClass as w, unref as y } from "vue";
|
|
2
|
+
import { htmlFromMarkdown as T } from "@scalar/code-highlight";
|
|
3
|
+
import { cx as v } from "@scalar/use-hooks/useBindCx";
|
|
4
|
+
const k = ["innerHTML"], _ = /* @__PURE__ */ f({
|
|
5
5
|
__name: "ScalarMarkdown",
|
|
6
6
|
props: {
|
|
7
7
|
value: {},
|
|
@@ -9,27 +9,37 @@ const d = ["innerHTML"], T = /* @__PURE__ */ t({
|
|
|
9
9
|
transform: {},
|
|
10
10
|
transformType: {},
|
|
11
11
|
clamp: { type: [String, Boolean] },
|
|
12
|
-
class: {}
|
|
12
|
+
class: {},
|
|
13
|
+
withAnchors: { type: Boolean, default: !1 },
|
|
14
|
+
anchorPrefix: {}
|
|
13
15
|
},
|
|
14
|
-
setup(
|
|
15
|
-
const e =
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
transform: e
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
setup(s) {
|
|
17
|
+
const e = s, i = (r) => {
|
|
18
|
+
var a, n, o;
|
|
19
|
+
if (!e.withAnchors)
|
|
20
|
+
return ((a = e.transform) == null ? void 0 : a.call(e, r)) || r;
|
|
21
|
+
const t = (((o = (n = r.children) == null ? void 0 : n[0]) == null ? void 0 : o.value) || "").toLowerCase().replace(/\s+/g, "-"), c = e.anchorPrefix ? `${e.anchorPrefix}/description/${t}` : t;
|
|
22
|
+
return r.data = {
|
|
23
|
+
hProperties: {
|
|
24
|
+
id: c
|
|
25
|
+
}
|
|
26
|
+
}, e.transform ? e.transform(r) : r;
|
|
27
|
+
}, l = p(() => T(e.value ?? "", {
|
|
28
|
+
removeTags: e.withImages ? [] : ["img", "picture"],
|
|
29
|
+
transform: e.withAnchors && e.transformType === "heading" ? i : e.transform,
|
|
30
|
+
transformType: e.transformType
|
|
31
|
+
}));
|
|
32
|
+
return h(async () => await new Promise((r) => setTimeout(r, 1))), (r, m) => (d(), u("div", {
|
|
33
|
+
class: w(
|
|
34
|
+
y(v)("markdown text-ellipsis", { "line-clamp-4": r.clamp }, e.class)
|
|
25
35
|
),
|
|
26
|
-
style:
|
|
36
|
+
style: g({
|
|
27
37
|
"-webkit-line-clamp": typeof r.clamp == "string" ? r.clamp : void 0
|
|
28
38
|
}),
|
|
29
|
-
innerHTML:
|
|
30
|
-
}, null, 14,
|
|
39
|
+
innerHTML: l.value
|
|
40
|
+
}, null, 14, k));
|
|
31
41
|
}
|
|
32
42
|
});
|
|
33
43
|
export {
|
|
34
|
-
|
|
44
|
+
_ as default
|
|
35
45
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarModal.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarModal/ScalarModal.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarModal.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarModal/ScalarModal.vue"],"names":[],"mappings":"AAiNA,+CAA+C;AAC/C,wBAAgB,QAAQ;;;;EAUvB;;WAOQ,UAAU,CAAC,OAAO,QAAQ,CAAC;YAC1B,MAAM;gBACF,MAAM;eACP,MAAM;;;;WAHV,UAAU,CAAC,OAAO,QAAQ,CAAC;YAC1B,MAAM;gBACF,MAAM;eACP,MAAM;;;;qBAoMW,GAAG;qBACH,GAAG;;AA7MjC,wBAmPK;AAWL,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import o from "./ScalarModal.vue2.js";
|
|
2
2
|
import { useModal as s } from "./ScalarModal.vue2.js";
|
|
3
3
|
/* empty css */
|
|
4
|
-
import
|
|
5
|
-
const m = /* @__PURE__ */
|
|
4
|
+
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-48f67704"]]);
|
|
6
6
|
export {
|
|
7
7
|
m as default,
|
|
8
8
|
s as useModal
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as x, createBlock as i, openBlock as l, unref as a, withCtx as t, createElementVNode as c, normalizeClass as o, createVNode as m, createElementBlock as r, createCommentVNode as d, normalizeStyle as w, createTextVNode as b, toDisplayString as y, renderSlot as n, reactive as g } from "vue";
|
|
2
2
|
import { Dialog as z, DialogPanel as k, DialogTitle as C } from "@headlessui/vue";
|
|
3
3
|
import { cva as f, cx as v } from "@scalar/use-hooks/useBindCx";
|
|
4
4
|
import S from "../ScalarIconButton/ScalarIconButton.vue.js";
|
|
@@ -17,7 +17,7 @@ function W() {
|
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
const E = /* @__PURE__ */
|
|
20
|
+
const E = /* @__PURE__ */ x({
|
|
21
21
|
__name: "ScalarModal",
|
|
22
22
|
props: {
|
|
23
23
|
state: {},
|
|
@@ -28,19 +28,19 @@ const E = /* @__PURE__ */ p({
|
|
|
28
28
|
variant: {}
|
|
29
29
|
},
|
|
30
30
|
setup(D) {
|
|
31
|
-
const
|
|
31
|
+
const p = f({
|
|
32
32
|
base: [
|
|
33
33
|
"scalar-modal",
|
|
34
34
|
"flex flex-col relative mb-0 rounded-lg bg-b-1 p-0 text-left leading-snug text-c-1 opacity-0 w-[calc(100vw-12px)] md:w-[calc(100vw-16px)] lg:w-[calc(100vw-32px)]"
|
|
35
35
|
].join(" "),
|
|
36
36
|
variants: {
|
|
37
37
|
size: {
|
|
38
|
-
xxs: "mt-[20svh] max-h-[60svh] max-w-
|
|
39
|
-
xs: "mt-[20svh] max-h-[60svh] max-w-
|
|
40
|
-
sm: "mt-[20svh] max-h-[60svh] max-w-
|
|
41
|
-
md: "mt-[20svh] max-h-[60svh] max-w-
|
|
42
|
-
lg: "m-auto max-h-[80svh] max-w-
|
|
43
|
-
xl: "m-auto max-h-[90svh] max-w-
|
|
38
|
+
xxs: "mt-[20svh] max-h-[60svh] max-w-[360px]",
|
|
39
|
+
xs: "mt-[20svh] max-h-[60svh] max-w-[480px]",
|
|
40
|
+
sm: "mt-[20svh] max-h-[60svh] max-w-[540px]",
|
|
41
|
+
md: "mt-[20svh] max-h-[60svh] max-w-[640px]",
|
|
42
|
+
lg: "m-auto max-h-[80svh] max-w-[800px]",
|
|
43
|
+
xl: "m-auto max-h-[90svh] max-w-[1000px]",
|
|
44
44
|
full: "full-size-styles max-h-dvh mt-0 lg:w-full"
|
|
45
45
|
},
|
|
46
46
|
variant: {
|
|
@@ -54,7 +54,7 @@ const E = /* @__PURE__ */ p({
|
|
|
54
54
|
variants: {
|
|
55
55
|
variant: {
|
|
56
56
|
form: "overflow-visible",
|
|
57
|
-
search: "col !m-0 overflow-hidden p-0",
|
|
57
|
+
search: "flex flex-col !m-0 overflow-hidden p-0",
|
|
58
58
|
error: "overflow-y-scroll"
|
|
59
59
|
},
|
|
60
60
|
size: {
|
|
@@ -73,19 +73,19 @@ const E = /* @__PURE__ */ p({
|
|
|
73
73
|
onClose: s[1] || (s[1] = (h) => e.state.hide())
|
|
74
74
|
}, {
|
|
75
75
|
default: t(() => [
|
|
76
|
-
|
|
76
|
+
c("div", {
|
|
77
77
|
class: o(
|
|
78
78
|
a(v)(
|
|
79
79
|
e.size === "full" ? "scalar-modal-layout-full" : "scalar-modal-layout",
|
|
80
80
|
"fixed left-0 top-0 flex items-start justify-center",
|
|
81
81
|
"z-[1001] h-[100dvh] w-[100dvw]",
|
|
82
|
-
"bg-backdrop opacity-0 dark:bg-
|
|
82
|
+
"bg-backdrop opacity-0 dark:bg-backdrop-dark",
|
|
83
83
|
e.size === "full" && "flex"
|
|
84
84
|
)
|
|
85
85
|
)
|
|
86
86
|
}, [
|
|
87
87
|
m(a(k), {
|
|
88
|
-
class: o(a(
|
|
88
|
+
class: o(a(p)({ size: e.size, variant: e.variant })),
|
|
89
89
|
style: w({ maxWidth: e.maxWidth })
|
|
90
90
|
}, {
|
|
91
91
|
default: t(() => [
|
|
@@ -97,17 +97,17 @@ const E = /* @__PURE__ */ p({
|
|
|
97
97
|
b(y(e.title), 1)
|
|
98
98
|
]),
|
|
99
99
|
_: 1
|
|
100
|
-
})) :
|
|
100
|
+
})) : d("", !0),
|
|
101
101
|
e.size === "full" ? (l(), r("div", {
|
|
102
102
|
key: 1,
|
|
103
103
|
class: o(e.bodyClass)
|
|
104
104
|
}, [
|
|
105
|
-
|
|
105
|
+
n(e.$slots, "default", {}, void 0, !0)
|
|
106
106
|
], 2)) : (l(), r("div", {
|
|
107
107
|
key: 2,
|
|
108
108
|
class: o(a(v)(a(u)({ size: e.size, variant: e.variant }), e.bodyClass))
|
|
109
109
|
}, [
|
|
110
|
-
|
|
110
|
+
n(e.$slots, "default", {}, void 0, !0)
|
|
111
111
|
], 2))
|
|
112
112
|
]),
|
|
113
113
|
_: 3
|
|
@@ -119,7 +119,7 @@ const E = /* @__PURE__ */ p({
|
|
|
119
119
|
label: "Clear Search",
|
|
120
120
|
onClose: s[0] || (s[0] = (h) => e.state.hide())
|
|
121
121
|
})
|
|
122
|
-
])) :
|
|
122
|
+
])) : d("", !0)
|
|
123
123
|
], 2)
|
|
124
124
|
]),
|
|
125
125
|
_: 3
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarSidebarIndent.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSidebar/ScalarSidebarIndent.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarSidebarIndent.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSidebar/ScalarSidebarIndent.vue"],"names":[],"mappings":"AAmFA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAI3D;;;;;GAKG;;IAID,iDAAiD;aACxC,iBAAiB;IAC1B,oDAAoD;eACzC,OAAO;;IAHlB,iDAAiD;aACxC,iBAAiB;IAC1B,oDAAoD;eACzC,OAAO;;AANpB,wBAkHC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import a from "./ScalarSidebarIndent.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ o(a, [["__scopeId", "data-v-88b1a676"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarTooltip.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarTooltip/ScalarTooltip.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarTooltip.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarTooltip/ScalarTooltip.vue"],"names":[],"mappings":"AAwDA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAOjD,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAC;AA0BF,iBAAS,cAAc;WAwCT,OAAO,IAA6B;;yBATrB,GAAG;;;;;;EAc/B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './
|
|
1
|
+
import './style.css';
|
|
2
2
|
export * from './components/ScalarButton';
|
|
3
3
|
export * from './components/ScalarCodeBlock';
|
|
4
4
|
export * from './components/ScalarColorModeToggle';
|
|
@@ -6,6 +6,7 @@ export * from './components/ScalarCombobox';
|
|
|
6
6
|
export * from './components/ScalarContextMenu';
|
|
7
7
|
export * from './components/ScalarDropdown';
|
|
8
8
|
export * from './components/ScalarErrorBoundary';
|
|
9
|
+
export * from './components/ScalarFileUpload';
|
|
9
10
|
export * from './components/ScalarFloating';
|
|
10
11
|
export * from './components/ScalarForm';
|
|
11
12
|
export * from './components/ScalarHeader';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAA;AAEpB,cAAc,2BAA2B,CAAA;AACzC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,oCAAoC,CAAA;AAClD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,kCAAkC,CAAA;AAChD,cAAc,+BAA+B,CAAA;AAC7C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,yBAAyB,CAAA;AACvC,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AACvC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,yBAAyB,CAAA;AACvC,cAAc,0BAA0B,CAAA;AACxC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,kCAAkC,CAAA;AAChD,cAAc,4BAA4B,CAAA;AAC1C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,8BAA8B,CAAA;AAC5C,cAAc,2BAA2B,CAAA;AACzC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,gCAAgC,CAAA;AAE9C,OAAO,EAAE,SAAS,EAAE,GAAG,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,6BAA6B,CAAA;AAC7E,cAAc,WAAW,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,136 +1,150 @@
|
|
|
1
|
-
/* empty css
|
|
2
|
-
import { compose as f, cva as
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { compose as f, cva as d, cx as p, tw as u, useBindCx as s } from "@scalar/use-hooks/useBindCx";
|
|
3
3
|
import { default as c } from "./components/ScalarButton/ScalarButton.vue.js";
|
|
4
4
|
import { default as S } from "./components/ScalarCodeBlock/ScalarCodeBlock.vue.js";
|
|
5
5
|
/* empty css */
|
|
6
|
-
import { default as
|
|
6
|
+
import { default as n } from "./components/ScalarColorModeToggle/ScalarColorModeToggle.vue.js";
|
|
7
7
|
import { default as T } from "./components/ScalarColorModeToggle/ScalarColorModeToggleButton.vue.js";
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
12
|
-
import { default as
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as
|
|
22
|
-
import { default as
|
|
23
|
-
import { default as W } from "./components/
|
|
24
|
-
import { default as Z } from "./components/
|
|
8
|
+
import { default as b } from "./components/ScalarCombobox/ScalarCombobox.vue.js";
|
|
9
|
+
import { default as B } from "./components/ScalarCombobox/ScalarComboboxMultiselect.vue.js";
|
|
10
|
+
import { default as C } from "./components/ScalarContextMenu/ScalarContextMenu.vue.js";
|
|
11
|
+
import { default as w } from "./components/ScalarDropdown/ScalarDropdown.vue.js";
|
|
12
|
+
import { default as P } from "./components/ScalarDropdown/ScalarDropdownMenu.vue.js";
|
|
13
|
+
import { default as k } from "./components/ScalarErrorBoundary/ScalarErrorBoundary.vue.js";
|
|
14
|
+
import { default as h } from "./components/ScalarFileUpload/ScalarFileUpload.vue.js";
|
|
15
|
+
import { default as E } from "./components/ScalarFileUpload/ScalarFileUploadInput.vue.js";
|
|
16
|
+
import { default as y } from "./components/ScalarFileUpload/ScalarFileUploadInputCompact.vue.js";
|
|
17
|
+
import { default as O } from "./components/ScalarFileUpload/ScalarFileUploadDropTarget.vue.js";
|
|
18
|
+
import { default as V } from "./components/ScalarFileUpload/ScalarFileUploadLoading.vue.js";
|
|
19
|
+
import { default as _ } from "./components/ScalarFileUpload/ScalarFileUploadError.vue.js";
|
|
20
|
+
import { default as q } from "./components/ScalarFileUpload/ScalarFileUploadFileList.vue.js";
|
|
21
|
+
import { default as J } from "./components/ScalarFloating/ScalarFloating.vue.js";
|
|
22
|
+
import { default as N } from "./components/ScalarFloating/ScalarFloatingBackdrop.vue.js";
|
|
23
|
+
import { default as W } from "./components/ScalarForm/ScalarForm.vue.js";
|
|
24
|
+
import { default as Z } from "./components/ScalarForm/ScalarFormField.vue.js";
|
|
25
|
+
import { default as aa } from "./components/ScalarHeader/ScalarHeader.vue.js";
|
|
26
|
+
import { default as oa } from "./components/ScalarHeader/ScalarHeaderButton.vue.js";
|
|
27
|
+
import { default as ta } from "./components/ScalarIconButton/ScalarIconButton.vue.js";
|
|
28
|
+
import { default as fa } from "./components/ScalarListbox/ScalarListbox.vue.js";
|
|
29
|
+
import { default as pa } from "./components/ScalarListbox/ScalarListboxItem.vue.js";
|
|
30
|
+
import { default as sa } from "./components/ScalarListbox/ScalarListboxCheckbox.vue.js";
|
|
31
|
+
import { default as ca } from "./components/ScalarMarkdown/ScalarMarkdown.vue.js";
|
|
25
32
|
/* empty css */
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import { default as
|
|
31
|
-
import { default as
|
|
32
|
-
import { default as
|
|
33
|
-
import { default as
|
|
34
|
-
import { default as
|
|
35
|
-
import { default as
|
|
36
|
-
import { default as
|
|
37
|
-
import { default as
|
|
38
|
-
import { default as
|
|
39
|
-
import { default as
|
|
40
|
-
import { default as
|
|
41
|
-
import { default as
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as
|
|
45
|
-
import { default as
|
|
46
|
-
import { default as
|
|
47
|
-
import { default as
|
|
48
|
-
import { default as
|
|
49
|
-
import { default as
|
|
50
|
-
import { default as
|
|
33
|
+
import { default as Sa } from "./components/ScalarMenu/ScalarMenu.vue.js";
|
|
34
|
+
import { default as na } from "./components/ScalarMenu/ScalarMenuButton.vue.js";
|
|
35
|
+
import { default as Ta } from "./components/ScalarMenu/ScalarMenuSection.vue.js";
|
|
36
|
+
import { default as ba } from "./components/ScalarMenu/ScalarMenuLink.vue.js";
|
|
37
|
+
import { default as Ba } from "./components/ScalarMenu/ScalarMenuProduct.vue.js";
|
|
38
|
+
import { default as Ca } from "./components/ScalarMenu/ScalarMenuProducts.vue.js";
|
|
39
|
+
import { default as wa } from "./components/ScalarMenu/ScalarMenuTeamPicker.vue.js";
|
|
40
|
+
import { default as Pa } from "./components/ScalarMenu/ScalarMenuTeamProfile.vue.js";
|
|
41
|
+
import { default as ka } from "./components/ScalarMenu/ScalarMenuResources.vue.js";
|
|
42
|
+
import { default as ha } from "./components/ScalarPopover/ScalarPopover.vue.js";
|
|
43
|
+
import { default as Ea } from "./components/ScalarSearchResults/ScalarSearchResultList.vue.js";
|
|
44
|
+
import { default as ya } from "./components/ScalarSearchResults/ScalarSearchResultItem.vue.js";
|
|
45
|
+
import { default as Oa } from "./components/ScalarSidebar/ScalarSidebar.vue.js";
|
|
46
|
+
import { default as Va } from "./components/ScalarSidebar/ScalarSidebarFooter.vue.js";
|
|
47
|
+
import { default as _a } from "./components/ScalarSidebar/ScalarSidebarButton.vue.js";
|
|
48
|
+
import { default as qa } from "./components/ScalarSidebar/ScalarSidebarGroup.vue.js";
|
|
49
|
+
import { default as Ja } from "./components/ScalarSidebar/ScalarSidebarGroupToggle.vue.js";
|
|
50
|
+
import { default as Na } from "./components/ScalarSidebar/ScalarSidebarItem.vue.js";
|
|
51
|
+
import { default as Wa } from "./components/ScalarSidebar/ScalarSidebarItems.vue.js";
|
|
52
|
+
import { default as Za } from "./components/ScalarTeleport/ScalarTeleport.vue.js";
|
|
53
|
+
import { default as ar } from "./components/ScalarTeleport/ScalarTeleportRoot.vue.js";
|
|
54
|
+
import { default as or } from "./components/ScalarTextArea/ScalarTextArea.vue.js";
|
|
55
|
+
import { default as tr } from "./components/ScalarTextInput/ScalarTextInput.vue.js";
|
|
56
|
+
import { default as fr } from "./components/ScalarToggle/ScalarToggle.vue.js";
|
|
57
|
+
import { default as pr } from "./components/ScalarTooltip/ScalarTooltip.vue.js";
|
|
51
58
|
/* empty css */
|
|
52
|
-
import { default as
|
|
53
|
-
import { styles as
|
|
54
|
-
import { default as
|
|
55
|
-
import { default as
|
|
56
|
-
import { default as
|
|
57
|
-
import { default as
|
|
58
|
-
import { default as
|
|
59
|
-
import { default as
|
|
60
|
-
import { default as
|
|
61
|
-
import { useLoadingState as
|
|
62
|
-
import { default as
|
|
63
|
-
import { useModal as
|
|
64
|
-
import { default as
|
|
65
|
-
import { TELEPORT_SYMBOL as
|
|
66
|
-
import { addScalarClassesToHeadless as
|
|
59
|
+
import { default as sr } from "./components/ScalarVirtualText/ScalarVirtualText.vue.js";
|
|
60
|
+
import { styles as cr } from "./components/ScalarButton/variants.js";
|
|
61
|
+
import { default as Sr } from "./components/ScalarColorModeToggle/ScalarColorModeToggleIcon.vue.js";
|
|
62
|
+
import { default as nr } from "./components/ScalarDropdown/ScalarDropdownDivider.vue.js";
|
|
63
|
+
import { default as Tr } from "./components/ScalarDropdown/ScalarDropdownButton.vue.js";
|
|
64
|
+
import { default as br } from "./components/ScalarDropdown/ScalarDropdownItem.vue.js";
|
|
65
|
+
import { default as Br } from "./components/ScalarForm/ScalarFormSection.vue.js";
|
|
66
|
+
import { default as Cr } from "./components/ScalarIcon/ScalarIcon.vue.js";
|
|
67
|
+
import { default as wr } from "./components/ScalarLoading/ScalarLoading.vue.js";
|
|
68
|
+
import { useLoadingState as Pr } from "./components/ScalarLoading/ScalarLoading.vue2.js";
|
|
69
|
+
import { default as kr } from "./components/ScalarModal/ScalarModal.vue.js";
|
|
70
|
+
import { useModal as hr } from "./components/ScalarModal/ScalarModal.vue2.js";
|
|
71
|
+
import { default as Er } from "./components/ScalarSearchInput/ScalarSearchInput.vue.js";
|
|
72
|
+
import { TELEPORT_SYMBOL as yr, useProvideTeleport as Gr, useTeleport as Or } from "./components/ScalarTeleport/useTeleport.js";
|
|
73
|
+
import { addScalarClassesToHeadless as Vr } from "./helpers/add-scalar-classes.js";
|
|
67
74
|
export {
|
|
68
75
|
c as ScalarButton,
|
|
69
76
|
S as ScalarCodeBlock,
|
|
70
|
-
|
|
77
|
+
n as ScalarColorModeToggle,
|
|
71
78
|
T as ScalarColorModeToggleButton,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
fa as
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
Wa as
|
|
124
|
-
|
|
125
|
-
|
|
79
|
+
Sr as ScalarColorModeToggleIcon,
|
|
80
|
+
b as ScalarCombobox,
|
|
81
|
+
B as ScalarComboboxMultiselect,
|
|
82
|
+
C as ScalarContextMenu,
|
|
83
|
+
w as ScalarDropdown,
|
|
84
|
+
Tr as ScalarDropdownButton,
|
|
85
|
+
nr as ScalarDropdownDivider,
|
|
86
|
+
br as ScalarDropdownItem,
|
|
87
|
+
P as ScalarDropdownMenu,
|
|
88
|
+
k as ScalarErrorBoundary,
|
|
89
|
+
h as ScalarFileUpload,
|
|
90
|
+
O as ScalarFileUploadDropTarget,
|
|
91
|
+
_ as ScalarFileUploadError,
|
|
92
|
+
q as ScalarFileUploadFileList,
|
|
93
|
+
E as ScalarFileUploadInput,
|
|
94
|
+
y as ScalarFileUploadInputCompact,
|
|
95
|
+
V as ScalarFileUploadLoading,
|
|
96
|
+
J as ScalarFloating,
|
|
97
|
+
N as ScalarFloatingBackdrop,
|
|
98
|
+
W as ScalarForm,
|
|
99
|
+
Z as ScalarFormField,
|
|
100
|
+
Br as ScalarFormSection,
|
|
101
|
+
aa as ScalarHeader,
|
|
102
|
+
oa as ScalarHeaderButton,
|
|
103
|
+
Cr as ScalarIcon,
|
|
104
|
+
ta as ScalarIconButton,
|
|
105
|
+
fa as ScalarListbox,
|
|
106
|
+
sa as ScalarListboxCheckbox,
|
|
107
|
+
pa as ScalarListboxItem,
|
|
108
|
+
wr as ScalarLoading,
|
|
109
|
+
ca as ScalarMarkdown,
|
|
110
|
+
Sa as ScalarMenu,
|
|
111
|
+
na as ScalarMenuButton,
|
|
112
|
+
ba as ScalarMenuLink,
|
|
113
|
+
Ba as ScalarMenuProduct,
|
|
114
|
+
Ca as ScalarMenuProducts,
|
|
115
|
+
ka as ScalarMenuResources,
|
|
116
|
+
Ta as ScalarMenuSection,
|
|
117
|
+
wa as ScalarMenuTeamPicker,
|
|
118
|
+
Pa as ScalarMenuTeamProfile,
|
|
119
|
+
kr as ScalarModal,
|
|
120
|
+
ha as ScalarPopover,
|
|
121
|
+
Er as ScalarSearchInput,
|
|
122
|
+
ya as ScalarSearchResultItem,
|
|
123
|
+
Ea as ScalarSearchResultList,
|
|
124
|
+
Oa as ScalarSidebar,
|
|
125
|
+
_a as ScalarSidebarButton,
|
|
126
|
+
Va as ScalarSidebarFooter,
|
|
127
|
+
qa as ScalarSidebarGroup,
|
|
128
|
+
Ja as ScalarSidebarGroupToggle,
|
|
129
|
+
Na as ScalarSidebarItem,
|
|
130
|
+
Wa as ScalarSidebarItems,
|
|
131
|
+
Za as ScalarTeleport,
|
|
132
|
+
ar as ScalarTeleportRoot,
|
|
133
|
+
or as ScalarTextArea,
|
|
134
|
+
tr as ScalarTextInput,
|
|
135
|
+
fr as ScalarToggle,
|
|
136
|
+
pr as ScalarTooltip,
|
|
137
|
+
sr as ScalarVirtualText,
|
|
138
|
+
yr as TELEPORT_SYMBOL,
|
|
139
|
+
Vr as addScalarClassesToHeadless,
|
|
126
140
|
f as compose,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
141
|
+
d as cva,
|
|
142
|
+
p as cx,
|
|
143
|
+
cr as styles,
|
|
144
|
+
u as tw,
|
|
131
145
|
s as useBindCx,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
146
|
+
Pr as useLoadingState,
|
|
147
|
+
hr as useModal,
|
|
148
|
+
Gr as useProvideTeleport,
|
|
149
|
+
Or as useTeleport
|
|
136
150
|
};
|