@scalar/components 0.13.49 → 0.13.50
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/README.md +1 -1
- package/dist/components/ScalarButton/ScalarButton.vue.d.ts.map +1 -1
- package/dist/components/ScalarButton/ScalarButton.vue.js +1 -1
- package/dist/components/ScalarButton/variants.js +1 -1
- package/dist/components/ScalarColorModeToggle/ScalarColorModeToggleButton.vue.d.ts.map +1 -1
- package/dist/components/ScalarColorModeToggle/ScalarColorModeToggleButton.vue.js +1 -1
- package/dist/components/ScalarColorModeToggle/ScalarColorModeToggleIcon.vue.d.ts.map +1 -1
- package/dist/components/ScalarColorModeToggle/ScalarColorModeToggleIcon.vue.js +2 -2
- package/dist/components/ScalarColorModeToggle/ScalarColorModeToggleIcon.vue2.js +1 -1
- package/dist/components/ScalarCombobox/ScalarComboboxOption.vue.d.ts.map +1 -1
- package/dist/components/ScalarCombobox/ScalarComboboxOption.vue.js +1 -1
- package/dist/components/ScalarCombobox/ScalarComboboxPopover.vue.d.ts.map +1 -1
- package/dist/components/ScalarCombobox/ScalarComboboxPopover.vue.js +1 -1
- package/dist/components/ScalarDropdown/ScalarDropdown.vue.js +1 -1
- package/dist/components/ScalarDropdown/ScalarDropdownButton.vue.d.ts.map +1 -1
- package/dist/components/ScalarDropdown/ScalarDropdownButton.vue.js +2 -2
- package/dist/components/ScalarDropdown/ScalarDropdownButton.vue2.js +1 -1
- package/dist/components/ScalarDropdown/ScalarDropdownMenu.vue.d.ts.map +1 -1
- package/dist/components/ScalarDropdown/ScalarDropdownMenu.vue.js +1 -1
- package/dist/components/ScalarFileUpload/ScalarFileUploadDropTarget.vue.d.ts.map +1 -1
- package/dist/components/ScalarFileUpload/ScalarFileUploadError.vue.d.ts.map +1 -1
- package/dist/components/ScalarFileUpload/ScalarFileUploadInput.vue.d.ts.map +1 -1
- package/dist/components/ScalarFileUpload/ScalarFileUploadInputCompact.vue.d.ts.map +1 -1
- package/dist/components/ScalarFileUpload/ScalarFileUploadLoading.vue.d.ts.map +1 -1
- package/dist/components/ScalarFloating/ScalarFloatingBackdrop.vue.js +1 -1
- package/dist/components/ScalarForm/ScalarForm.vue.js +1 -1
- package/dist/components/ScalarForm/ScalarFormField.vue.d.ts.map +1 -1
- package/dist/components/ScalarForm/ScalarFormField.vue.js +1 -1
- package/dist/components/ScalarHeader/ScalarHeader.vue.js +1 -1
- package/dist/components/ScalarHeader/ScalarHeaderButton.vue.d.ts.map +1 -1
- package/dist/components/ScalarHeader/ScalarHeaderButton.vue.js +6 -7
- package/dist/components/ScalarIcon/ScalarIcon.stories.d.ts +8 -8
- package/dist/components/ScalarIcon/ScalarIcon.vue.d.ts +1 -1
- package/dist/components/ScalarIcon/ScalarIcon.vue.d.ts.map +1 -1
- package/dist/components/ScalarIcon/ScalarIcon.vue.js +2 -2
- package/dist/components/ScalarIcon/ScalarIcon.vue2.js +10 -11
- package/dist/components/ScalarIconButton/ScalarIconButton.stories.d.ts +3 -3
- package/dist/components/ScalarIconButton/ScalarIconButton.vue.d.ts +2 -2
- package/dist/components/ScalarIconButton/ScalarIconButton.vue.d.ts.map +1 -1
- package/dist/components/ScalarIconButton/ScalarIconButton.vue.js +7 -8
- package/dist/components/ScalarListbox/ScalarListbox.vue.js +1 -1
- package/dist/components/ScalarListbox/ScalarListboxItem.vue.js +1 -1
- package/dist/components/ScalarLoading/ScalarLoading.stories.d.ts +8 -8
- package/dist/components/ScalarLoading/ScalarLoading.vue.d.ts +2 -2
- package/dist/components/ScalarLoading/ScalarLoading.vue.d.ts.map +1 -1
- package/dist/components/ScalarLoading/ScalarLoading.vue.js +4 -4
- package/dist/components/ScalarLoading/ScalarLoading.vue2.js +22 -23
- package/dist/components/ScalarMenu/ScalarMenuProduct.vue.d.ts.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenuProduct.vue.js +7 -8
- package/dist/components/ScalarMenu/ScalarMenuProducts.vue.d.ts.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenuProducts.vue.js +1 -1
- package/dist/components/ScalarMenu/ScalarMenuTeamProfile.vue.js +4 -4
- package/dist/components/ScalarModal/ScalarModal.stories.d.ts +3 -3
- package/dist/components/ScalarModal/ScalarModal.vue.d.ts +2 -2
- package/dist/components/ScalarModal/ScalarModal.vue.js +5 -5
- package/dist/components/ScalarModal/ScalarModal.vue2.js +1 -1
- package/dist/components/ScalarPopover/ScalarPopover.vue.js +1 -1
- package/dist/components/ScalarSearchInput/ScalarSearchInput.vue.js +4 -4
- package/dist/components/ScalarSearchInput/ScalarSearchInput.vue2.js +1 -1
- package/dist/components/ScalarSearchResults/ScalarSearchResultItem.vue.d.ts.map +1 -1
- package/dist/components/ScalarSearchResults/ScalarSearchResultItem.vue.js +16 -16
- package/dist/components/ScalarSearchResults/ScalarSearchResultList.vue.js +1 -1
- package/dist/components/ScalarSidebar/ScalarSidebar.vue.js +1 -1
- package/dist/components/ScalarSidebar/ScalarSidebarButton.vue.d.ts.map +1 -1
- package/dist/components/ScalarSidebar/ScalarSidebarButton.vue.js +6 -7
- package/dist/components/ScalarSidebar/ScalarSidebarFooter.vue.d.ts.map +1 -1
- package/dist/components/ScalarSidebar/ScalarSidebarFooter.vue.js +1 -1
- package/dist/components/ScalarSidebar/ScalarSidebarGroup.vue.d.ts.map +1 -1
- package/dist/components/ScalarSidebar/ScalarSidebarGroup.vue.js +1 -1
- package/dist/components/ScalarSidebar/ScalarSidebarGroupToggle.vue.d.ts.map +1 -1
- package/dist/components/ScalarSidebar/ScalarSidebarGroupToggle.vue.js +6 -7
- package/dist/components/ScalarSidebar/ScalarSidebarIndent.vue.js +3 -3
- package/dist/components/ScalarSidebar/ScalarSidebarIndent.vue2.js +1 -1
- package/dist/components/ScalarSidebar/ScalarSidebarItems.vue.d.ts.map +1 -1
- package/dist/components/ScalarSidebar/ScalarSidebarItems.vue.js +1 -1
- package/dist/components/ScalarTextArea/ScalarTextArea.vue.d.ts.map +1 -1
- package/dist/components/ScalarTextArea/ScalarTextArea.vue.js +4 -4
- package/dist/components/ScalarTextInput/ScalarTextInput.vue.d.ts.map +1 -1
- package/dist/components/ScalarTextInput/ScalarTextInput.vue.js +1 -1
- package/dist/components/ScalarToggle/ScalarToggle.vue.js +1 -1
- package/dist/docs/ScalarIcons.stories.d.ts +35 -0
- package/dist/docs/ScalarIcons.stories.d.ts.map +1 -0
- package/dist/{hooks → docs}/useBindCx.stories.d.ts.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +130 -131
- package/dist/style.css +1 -1
- package/package.json +5 -5
- package/dist/cva.d.ts +0 -18
- package/dist/cva.d.ts.map +0 -1
- package/dist/cva.js +0 -19
- package/dist/cva.test.d.ts +0 -2
- package/dist/cva.test.d.ts.map +0 -1
- package/dist/hooks/useBindCx.d.ts +0 -64
- package/dist/hooks/useBindCx.d.ts.map +0 -1
- package/dist/hooks/useBindCx.js +0 -45
- package/dist/hooks/useBindCx.test.d.ts +0 -2
- package/dist/hooks/useBindCx.test.d.ts.map +0 -1
- /package/dist/{hooks → docs}/useBindCx.stories.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarLoading.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarLoading/ScalarLoading.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarLoading.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarLoading/ScalarLoading.vue"],"names":[],"mappings":"AAgPA,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAA;AAE7D;;;;GAIG;AACH,wBAAgB,eAAe;;;;;;sCAWE,OAAO;wCAWJ,OAAO;;EAuB1C;;mBAOgB,YAAY;;;mBAAZ,YAAY;;;AAL7B,wBAyIK"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import o from "./ScalarLoading.vue2.js";
|
|
2
|
-
import { useLoadingState as
|
|
2
|
+
import { useLoadingState as c } from "./ScalarLoading.vue2.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const
|
|
5
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-338fc8d9"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
f as default,
|
|
8
|
+
c as useLoadingState
|
|
9
9
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { cva as
|
|
3
|
-
import { useBindCx as f } from "../../hooks/useBindCx.js";
|
|
1
|
+
import { defineComponent as c, openBlock as t, createElementBlock as l, normalizeProps as h, mergeProps as g, unref as r, normalizeClass as o, createStaticVNode as m, createElementVNode as p, createCommentVNode as d, reactive as v } from "vue";
|
|
2
|
+
import { useBindCx as f, cva as u } from "@scalar/use-hooks/useBindCx";
|
|
4
3
|
const z = {
|
|
5
4
|
key: 0,
|
|
6
5
|
class: "circular-loader"
|
|
7
6
|
};
|
|
8
|
-
function
|
|
9
|
-
return
|
|
7
|
+
function x() {
|
|
8
|
+
return v({
|
|
10
9
|
isValid: !1,
|
|
11
10
|
isInvalid: !1,
|
|
12
11
|
isLoading: !1,
|
|
@@ -16,38 +15,38 @@ function S() {
|
|
|
16
15
|
stopLoading() {
|
|
17
16
|
this.isLoading = !1;
|
|
18
17
|
},
|
|
19
|
-
validate(
|
|
18
|
+
validate(e = 800, s) {
|
|
20
19
|
this.isInvalid = !1, this.isValid = !0;
|
|
21
|
-
const i =
|
|
20
|
+
const i = s ? e - 300 : e;
|
|
22
21
|
return new Promise(
|
|
23
|
-
(a) => setTimeout(
|
|
22
|
+
(a) => setTimeout(s ? () => this.clear().then(() => a(!0)) : () => a(!0), i)
|
|
24
23
|
);
|
|
25
24
|
},
|
|
26
|
-
invalidate(
|
|
25
|
+
invalidate(e = 1100, s) {
|
|
27
26
|
this.isValid = !1, this.isInvalid = !0;
|
|
28
|
-
const i =
|
|
27
|
+
const i = s ? e - 300 : e;
|
|
29
28
|
return new Promise(
|
|
30
|
-
(a) => setTimeout(
|
|
29
|
+
(a) => setTimeout(s ? () => this.clear().then(() => a(!0)) : () => a(!0), i)
|
|
31
30
|
);
|
|
32
31
|
},
|
|
33
|
-
clear(
|
|
34
|
-
return this.isValid = !1, this.isInvalid = !1, this.isLoading = !1, new Promise((
|
|
32
|
+
clear(e = 300) {
|
|
33
|
+
return this.isValid = !1, this.isInvalid = !1, this.isLoading = !1, new Promise((s) => {
|
|
35
34
|
setTimeout(() => {
|
|
36
|
-
|
|
37
|
-
},
|
|
35
|
+
s(!0);
|
|
36
|
+
}, e);
|
|
38
37
|
});
|
|
39
38
|
}
|
|
40
39
|
});
|
|
41
40
|
}
|
|
42
|
-
const
|
|
41
|
+
const S = /* @__PURE__ */ c({
|
|
43
42
|
inheritAttrs: !1,
|
|
44
43
|
__name: "ScalarLoading",
|
|
45
44
|
props: {
|
|
46
45
|
loadingState: {},
|
|
47
46
|
size: {}
|
|
48
47
|
},
|
|
49
|
-
setup(
|
|
50
|
-
const { cx:
|
|
48
|
+
setup(e) {
|
|
49
|
+
const { cx: s } = f(), i = u({
|
|
51
50
|
variants: {
|
|
52
51
|
size: {
|
|
53
52
|
xs: "size-3",
|
|
@@ -64,7 +63,7 @@ const V = /* @__PURE__ */ m({
|
|
|
64
63
|
size: "full"
|
|
65
64
|
}
|
|
66
65
|
});
|
|
67
|
-
return (a,
|
|
66
|
+
return (a, n) => a.loadingState ? (t(), l("div", h(g({ key: 0 }, r(s)("loader-wrapper", r(i)({ size: a.size })))), [
|
|
68
67
|
(t(), l("svg", {
|
|
69
68
|
class: o(["svg-loader", {
|
|
70
69
|
"icon-is-valid": a.loadingState.isValid,
|
|
@@ -74,9 +73,9 @@ const V = /* @__PURE__ */ m({
|
|
|
74
73
|
xmlns: "http://www.w3.org/2000/svg",
|
|
75
74
|
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
76
75
|
}, [
|
|
77
|
-
|
|
76
|
+
n[0] || (n[0] = m('<path class="svg-path svg-check-mark" d="m 0 60 l 30 30 l 70 -80" data-v-338fc8d9></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 -40" data-v-338fc8d9></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 40" data-v-338fc8d9></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 -40" data-v-338fc8d9></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 40" data-v-338fc8d9></path>', 5)),
|
|
78
77
|
a.loadingState.isLoading ? (t(), l("g", z, [
|
|
79
|
-
|
|
78
|
+
p("circle", {
|
|
80
79
|
class: o(["loader-path", {
|
|
81
80
|
"loader-path-off": a.loadingState.isValid || a.loadingState.isInvalid
|
|
82
81
|
}]),
|
|
@@ -92,6 +91,6 @@ const V = /* @__PURE__ */ m({
|
|
|
92
91
|
}
|
|
93
92
|
});
|
|
94
93
|
export {
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
S as default,
|
|
95
|
+
x as useLoadingState
|
|
97
96
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarMenuProduct.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuProduct.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarMenuProduct.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuProduct.vue"],"names":[],"mappings":"AAyCA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAEpC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAKlC,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,EAAE,IAAI,CAAA;CACX,CAAC;AAsBF,iBAAS,cAAc;WAyCT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,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"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { defineComponent as n, openBlock as s, createBlock as a, unref as r, mergeProps as i, withCtx as c, renderSlot as l } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { useBindCx as d } from "../../hooks/useBindCx.js";
|
|
2
|
+
import { useBindCx as p, cva as d } from "@scalar/use-hooks/useBindCx";
|
|
4
3
|
import f from "./ScalarMenuLink.vue.js";
|
|
5
|
-
const
|
|
4
|
+
const v = /* @__PURE__ */ n({
|
|
6
5
|
inheritAttrs: !1,
|
|
7
6
|
__name: "ScalarMenuProduct",
|
|
8
7
|
props: {
|
|
@@ -10,8 +9,8 @@ const h = /* @__PURE__ */ n({
|
|
|
10
9
|
selected: { type: Boolean },
|
|
11
10
|
icon: {}
|
|
12
11
|
},
|
|
13
|
-
setup(
|
|
14
|
-
const { cx:
|
|
12
|
+
setup(u) {
|
|
13
|
+
const { cx: t } = p(), o = d({
|
|
15
14
|
base: "gap-1.5",
|
|
16
15
|
variants: {
|
|
17
16
|
selected: {
|
|
@@ -20,12 +19,12 @@ const h = /* @__PURE__ */ n({
|
|
|
20
19
|
}
|
|
21
20
|
}
|
|
22
21
|
});
|
|
23
|
-
return (e,
|
|
22
|
+
return (e, m) => (s(), a(r(f), i({
|
|
24
23
|
is: e.is,
|
|
25
24
|
icon: e.icon,
|
|
26
25
|
strong: "",
|
|
27
26
|
target: "_blank"
|
|
28
|
-
}, r(
|
|
27
|
+
}, r(t)(r(o)({ selected: e.selected }))), {
|
|
29
28
|
default: c(() => [
|
|
30
29
|
l(e.$slots, "default")
|
|
31
30
|
]),
|
|
@@ -34,5 +33,5 @@ const h = /* @__PURE__ */ n({
|
|
|
34
33
|
}
|
|
35
34
|
});
|
|
36
35
|
export {
|
|
37
|
-
|
|
36
|
+
v as default
|
|
38
37
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarMenuProducts.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuProducts.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarMenuProducts.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuProducts.vue"],"names":[],"mappings":"AAoDA,KAAK,OAAO,GAAG,WAAW,GAAG,MAAM,GAAG,QAAQ,CAAA;AAE9C,KAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAA;CAChC,CAAC;;;;;;AAuIF,wBAOG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as p, openBlock as m, createElementBlock as c, normalizeProps as u, guardReactiveProps as h, unref as C, createVNode as r, withCtx as t, createTextVNode as l } from "vue";
|
|
2
|
-
import { useBindCx as k } from "
|
|
2
|
+
import { useBindCx as k } from "@scalar/use-hooks/useBindCx";
|
|
3
3
|
import d from "./ScalarMenuProduct.vue.js";
|
|
4
4
|
const g = /* @__PURE__ */ p({
|
|
5
5
|
inheritAttrs: !1,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as n, openBlock as r, createElementBlock as t, normalizeProps as a, guardReactiveProps as i, unref as s, Fragment as c, createTextVNode as m, toDisplayString as l, createBlock as d, createCommentVNode as u } from "vue";
|
|
2
|
-
import
|
|
3
|
-
import f from "
|
|
2
|
+
import p from "../ScalarIcon/ScalarIcon.vue.js";
|
|
3
|
+
import { useBindCx as f } from "@scalar/use-hooks/useBindCx";
|
|
4
4
|
const b = ["src"], h = {
|
|
5
5
|
key: 1,
|
|
6
6
|
"aria-hidden": "true",
|
|
@@ -16,7 +16,7 @@ const b = ["src"], h = {
|
|
|
16
16
|
label: {}
|
|
17
17
|
},
|
|
18
18
|
setup(k) {
|
|
19
|
-
const { cx: o } =
|
|
19
|
+
const { cx: o } = f();
|
|
20
20
|
return (e, y) => (r(), t("div", a(i(s(o)("flex h-full items-center gap-1"))), [
|
|
21
21
|
e.src ? (r(), t("img", {
|
|
22
22
|
key: 0,
|
|
@@ -26,7 +26,7 @@ const b = ["src"], h = {
|
|
|
26
26
|
}, null, 8, b)) : (r(), t("div", h, [
|
|
27
27
|
e.label && e.label.length > 0 ? (r(), t(c, { key: 0 }, [
|
|
28
28
|
m(l(e.label[0]), 1)
|
|
29
|
-
], 64)) : (r(), d(s(
|
|
29
|
+
], 64)) : (r(), d(s(p), {
|
|
30
30
|
key: 1,
|
|
31
31
|
icon: "Users",
|
|
32
32
|
size: "xs"
|
|
@@ -10,7 +10,7 @@ declare const meta: {
|
|
|
10
10
|
title?: string;
|
|
11
11
|
bodyClass?: string;
|
|
12
12
|
maxWidth?: string;
|
|
13
|
-
size?: "
|
|
13
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "full" | "xxs" | undefined;
|
|
14
14
|
variant?: "form" | "search" | "error" | undefined;
|
|
15
15
|
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
16
16
|
P: {};
|
|
@@ -24,7 +24,7 @@ declare const meta: {
|
|
|
24
24
|
title?: string;
|
|
25
25
|
bodyClass?: string;
|
|
26
26
|
maxWidth?: string;
|
|
27
|
-
size?: "
|
|
27
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "full" | "xxs" | undefined;
|
|
28
28
|
variant?: "form" | "search" | "error" | undefined;
|
|
29
29
|
}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
30
30
|
__isFragment?: never;
|
|
@@ -35,7 +35,7 @@ declare const meta: {
|
|
|
35
35
|
title?: string;
|
|
36
36
|
bodyClass?: string;
|
|
37
37
|
maxWidth?: string;
|
|
38
|
-
size?: "
|
|
38
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "full" | "xxs" | undefined;
|
|
39
39
|
variant?: "form" | "search" | "error" | undefined;
|
|
40
40
|
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
41
41
|
$slots: {
|
|
@@ -9,14 +9,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
9
9
|
title?: string;
|
|
10
10
|
bodyClass?: string;
|
|
11
11
|
maxWidth?: string;
|
|
12
|
-
size?: "
|
|
12
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "full" | "xxs" | undefined;
|
|
13
13
|
variant?: "form" | "search" | "error" | undefined;
|
|
14
14
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
15
15
|
state: ReturnType<typeof useModal>;
|
|
16
16
|
title?: string;
|
|
17
17
|
bodyClass?: string;
|
|
18
18
|
maxWidth?: string;
|
|
19
|
-
size?: "
|
|
19
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "full" | "xxs" | undefined;
|
|
20
20
|
variant?: "form" | "search" | "error" | undefined;
|
|
21
21
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
22
22
|
default?(_: {}): any;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import o from "./ScalarModal.vue2.js";
|
|
2
|
-
import { useModal as
|
|
2
|
+
import { useModal as s } from "./ScalarModal.vue2.js";
|
|
3
3
|
/* empty css */
|
|
4
|
-
import
|
|
5
|
-
const
|
|
4
|
+
import a from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const m = /* @__PURE__ */ a(o, [["__scopeId", "data-v-a99680e7"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
m as default,
|
|
8
|
+
s as useModal
|
|
9
9
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as p, openBlock as l, createBlock as i, unref as a, withCtx as t, createElementVNode as x, normalizeClass as o, createVNode as m, normalizeStyle as w, createTextVNode as b, toDisplayString as y, createCommentVNode as n, createElementBlock as r, renderSlot as d, reactive as g } from "vue";
|
|
2
2
|
import { Dialog as z, DialogPanel as k, DialogTitle as C } from "@headlessui/vue";
|
|
3
|
-
import { cva as f, cx as v } from "
|
|
3
|
+
import { cva as f, cx as v } from "@scalar/use-hooks/useBindCx";
|
|
4
4
|
import S from "../ScalarIconButton/ScalarIconButton.vue.js";
|
|
5
5
|
const $ = {
|
|
6
6
|
key: 0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as m, openBlock as i, createBlock as c, unref as e, withCtx as t, createVNode as r, normalizeProps as u, guardReactiveProps as d, mergeProps as _, renderSlot as s } from "vue";
|
|
2
2
|
import { Popover as P, PopoverPanel as v, PopoverButton as B } from "@headlessui/vue";
|
|
3
|
-
import { useBindCx as $ } from "
|
|
3
|
+
import { useBindCx as $ } from "@scalar/use-hooks/useBindCx";
|
|
4
4
|
import g from "../ScalarFloating/ScalarFloating.vue.js";
|
|
5
5
|
import y from "../ScalarFloating/ScalarFloatingBackdrop.vue.js";
|
|
6
6
|
const b = /* @__PURE__ */ m({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o from "./ScalarSearchInput.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-466c736b"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as h, ref as v, computed as g, useAttrs as k, openBlock as s, createElementBlock as S, normalizeClass as i, unref as a, createBlock as o, createCommentVNode as c, createElementVNode as V, mergeProps as y, withModifiers as C } from "vue";
|
|
2
|
-
import { cva as z, cx as u } from "
|
|
2
|
+
import { cva as z, cx as u } from "@scalar/use-hooks/useBindCx";
|
|
3
3
|
import B from "../ScalarIcon/ScalarIcon.vue.js";
|
|
4
4
|
import I from "../ScalarLoading/ScalarLoading.vue.js";
|
|
5
5
|
import w from "../ScalarIconButton/ScalarIconButton.vue.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarSearchResultItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSearchResults/ScalarSearchResultItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarSearchResultItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSearchResults/ScalarSearchResultItem.vue"],"names":[],"mappings":"AA4DA,OAAO,EAAE,KAAK,IAAI,EAAc,MAAM,eAAe,CAAA;AAIrD,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AAWF,iBAAS,cAAc;WAiGT,OAAO,IAA6B;;sBAXxB,GAAG;yBACA,GAAG;uBACL,GAAG;6BACG,GAAG;;;;EAanC;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,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"}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { defineComponent as d, openBlock as
|
|
2
|
-
import { useBindCx as p } from "
|
|
1
|
+
import { defineComponent as d, openBlock as o, createElementBlock as t, mergeProps as a, unref as l, renderSlot as s, createBlock as m, createCommentVNode as n, createElementVNode as r } from "vue";
|
|
2
|
+
import { useBindCx as p } from "@scalar/use-hooks/useBindCx";
|
|
3
3
|
import u from "../ScalarIcon/ScalarIcon.vue.js";
|
|
4
4
|
const f = ["aria-selected"], h = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "flex h-fit items-center text-sm font-medium text-c-3 group-hover:text-c-1"
|
|
7
|
-
},
|
|
7
|
+
}, k = { class: "flex min-w-0 flex-1 flex-col gap-0.75" }, x = { class: "flex items-center gap-1" }, _ = { class: "flex-1 truncate zoomed:!whitespace-normal break-words text-sm font-medium" }, g = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "text-sm text-c-2"
|
|
10
|
-
},
|
|
10
|
+
}, v = {
|
|
11
11
|
key: 0,
|
|
12
|
-
class: "truncate zoomed:!whitespace-normal text-sm text-c-2"
|
|
13
|
-
},
|
|
12
|
+
class: "truncate zoomed:!whitespace-normal break-words text-sm text-c-2"
|
|
13
|
+
}, B = /* @__PURE__ */ d({
|
|
14
14
|
inheritAttrs: !1,
|
|
15
15
|
__name: "ScalarSearchResultItem",
|
|
16
16
|
props: {
|
|
17
17
|
icon: {},
|
|
18
18
|
selected: { type: Boolean }
|
|
19
19
|
},
|
|
20
|
-
setup(
|
|
20
|
+
setup(b) {
|
|
21
21
|
const { cx: c } = p();
|
|
22
|
-
return (e, i) => (
|
|
22
|
+
return (e, i) => (o(), t("li", a(
|
|
23
23
|
{
|
|
24
24
|
"aria-selected": e.selected,
|
|
25
25
|
role: "option"
|
|
@@ -29,9 +29,9 @@ const f = ["aria-selected"], h = {
|
|
|
29
29
|
{ "bg-b-2": e.selected }
|
|
30
30
|
)
|
|
31
31
|
), [
|
|
32
|
-
e.icon ? (
|
|
32
|
+
e.icon ? (o(), t("div", h, [
|
|
33
33
|
s(e.$slots, "icon", {}, () => [
|
|
34
|
-
e.icon ? (
|
|
34
|
+
e.icon ? (o(), m(l(u), {
|
|
35
35
|
key: 0,
|
|
36
36
|
icon: e.icon,
|
|
37
37
|
size: "sm"
|
|
@@ -39,16 +39,16 @@ const f = ["aria-selected"], h = {
|
|
|
39
39
|
]),
|
|
40
40
|
i[0] || (i[0] = r("span", null, " ", -1))
|
|
41
41
|
])) : n("", !0),
|
|
42
|
-
r("div",
|
|
43
|
-
r("div",
|
|
44
|
-
r("div",
|
|
42
|
+
r("div", k, [
|
|
43
|
+
r("div", x, [
|
|
44
|
+
r("div", _, [
|
|
45
45
|
s(e.$slots, "default")
|
|
46
46
|
]),
|
|
47
|
-
e.$slots.addon ? (
|
|
47
|
+
e.$slots.addon ? (o(), t("div", g, [
|
|
48
48
|
s(e.$slots, "addon")
|
|
49
49
|
])) : n("", !0)
|
|
50
50
|
]),
|
|
51
|
-
e.$slots.description ? (
|
|
51
|
+
e.$slots.description ? (o(), t("div", v, [
|
|
52
52
|
s(e.$slots, "description")
|
|
53
53
|
])) : n("", !0)
|
|
54
54
|
])
|
|
@@ -56,5 +56,5 @@ const f = ["aria-selected"], h = {
|
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
58
|
export {
|
|
59
|
-
|
|
59
|
+
B as default
|
|
60
60
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as r, openBlock as n, createElementBlock as a, mergeProps as m, unref as u, renderSlot as s, createElementVNode as t, createCommentVNode as f } from "vue";
|
|
2
|
-
import { useBindCx as p } from "
|
|
2
|
+
import { useBindCx as p } from "@scalar/use-hooks/useBindCx";
|
|
3
3
|
const x = /* @__PURE__ */ r({
|
|
4
4
|
inheritAttrs: !1,
|
|
5
5
|
__name: "ScalarSearchResultList",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as o, openBlock as t, createElementBlock as a, normalizeProps as n, guardReactiveProps as s, unref as d, renderSlot as l } from "vue";
|
|
2
|
-
import { useBindCx as c } from "
|
|
2
|
+
import { useBindCx as c } from "@scalar/use-hooks/useBindCx";
|
|
3
3
|
const i = {}, u = /* @__PURE__ */ o({
|
|
4
4
|
...i,
|
|
5
5
|
inheritAttrs: !1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarSidebarButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSidebar/ScalarSidebarButton.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarSidebarButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSidebar/ScalarSidebarButton.vue"],"names":[],"mappings":"AAqFA,OAAO,KAAK,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAI7E;;;;;;;;;;;;;;;;;;;;;GAqBG;;AACH,wBA4HC;AAWD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { defineComponent as r, openBlock as s, createBlock as c, resolveDynamicComponent as u, mergeProps as f, unref as o, withCtx as
|
|
2
|
-
import { cva as b } from "
|
|
3
|
-
import { useBindCx as v } from "../../hooks/useBindCx.js";
|
|
1
|
+
import { defineComponent as r, openBlock as s, createBlock as c, resolveDynamicComponent as u, mergeProps as f, unref as o, withCtx as p, renderSlot as t, createVNode as n, createElementVNode as m, createElementBlock as a, createCommentVNode as l } from "vue";
|
|
2
|
+
import { cva as b, useBindCx as v } from "@scalar/use-hooks/useBindCx";
|
|
4
3
|
import y from "./ScalarSidebarIndent.vue.js";
|
|
5
4
|
import h from "../ScalarIcon/ScalarIcon.vue.js";
|
|
6
5
|
const B = { class: "flex items-center gap-1 flex-1 py-2 leading-5" }, g = {
|
|
7
6
|
key: 0,
|
|
8
7
|
class: "size-3.5"
|
|
9
|
-
}, S = { key: 0 }, $ = {},
|
|
8
|
+
}, S = { key: 0 }, $ = {}, I = /* @__PURE__ */ r({
|
|
10
9
|
...$,
|
|
11
10
|
inheritAttrs: !1,
|
|
12
11
|
__name: "ScalarSidebarButton",
|
|
@@ -34,14 +33,14 @@ const B = { class: "flex items-center gap-1 flex-1 py-2 leading-5" }, g = {
|
|
|
34
33
|
"aria-selected": e.selected,
|
|
35
34
|
type: e.is === "button" ? "button" : void 0
|
|
36
35
|
}, o(i)(o(d)({ selected: e.selected, disabled: e.disabled }))), {
|
|
37
|
-
default:
|
|
36
|
+
default: p(() => [
|
|
38
37
|
t(e.$slots, "indent", {}, () => [
|
|
39
38
|
n(y, {
|
|
40
39
|
indent: e.indent,
|
|
41
40
|
selected: e.selected
|
|
42
41
|
}, null, 8, ["indent", "selected"])
|
|
43
42
|
]),
|
|
44
|
-
|
|
43
|
+
m("div", B, [
|
|
45
44
|
e.icon || e.$slots.icon ? (s(), a("div", g, [
|
|
46
45
|
t(e.$slots, "icon", {}, () => [
|
|
47
46
|
n(o(h), { icon: e.icon }, null, 8, ["icon"])
|
|
@@ -58,5 +57,5 @@ const B = { class: "flex items-center gap-1 flex-1 py-2 leading-5" }, g = {
|
|
|
58
57
|
}
|
|
59
58
|
});
|
|
60
59
|
export {
|
|
61
|
-
|
|
60
|
+
I as default
|
|
62
61
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarSidebarFooter.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSidebar/ScalarSidebarFooter.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarSidebarFooter.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSidebar/ScalarSidebarFooter.vue"],"names":[],"mappings":"AAiEA;;;;;;;;;;;;;;;;GAgBG;;IAID,8CAA8C;aACrC,MAAM,GAAG;IAClB,0CAA0C;iBAC7B,MAAM,GAAG;IACtB,qCAAqC;YAC7B,MAAM,GAAG;;IALjB,8CAA8C;aACrC,MAAM,GAAG;IAClB,0CAA0C;iBAC7B,MAAM,GAAG;IACtB,qCAAqC;YAC7B,MAAM,GAAG;;AARnB,wBAgGC;AAKD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as l, openBlock as a, createElementBlock as i, normalizeProps as c, guardReactiveProps as d, unref as s, renderSlot as t, createElementVNode as r, createVNode as m } from "vue";
|
|
2
|
-
import { useBindCx as f } from "
|
|
2
|
+
import { useBindCx as f } from "@scalar/use-hooks/useBindCx";
|
|
3
3
|
import p from "../ScalarColorModeToggle/ScalarColorModeToggle.vue.js";
|
|
4
4
|
const _ = { class: "flex items-center" }, u = { class: "flex-1 min-w-0 flex items-center text-sm text-sidebar-c-2" }, x = {}, w = /* @__PURE__ */ l({
|
|
5
5
|
...x,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarSidebarGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSidebar/ScalarSidebarGroup.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarSidebarGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSidebar/ScalarSidebarGroup.vue"],"names":[],"mappings":"AAsFA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAKpC,OAAO,EAAE,KAAK,iBAAiB,EAAoB,MAAM,oBAAoB,CAAA;AAI7E;;;;;;;;;;;;;;GAcG;;iBAkCU,OAAO;;IA9BlB,+BAA+B;SAC1B,SAAS,GAAG,MAAM;;;;iBA6BZ,OAAO;;IA9BlB,+BAA+B;SAC1B,SAAS,GAAG,MAAM;;;;IAQvB,qCAAqC;cAC3B,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,OAAO,CAAA;KAAE,KAAK,GAAG;IAC3C,wCAAwC;aAC/B,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,OAAO,CAAC;QAAC,KAAK,EAAE,iBAAiB,CAAA;KAAE,KAAK,GAAG;IACpE,mCAAmC;YAC3B,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,OAAO,CAAA;KAAE,KAAK,GAAG;;IALzC,qCAAqC;cAC3B,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,OAAO,CAAA;KAAE,KAAK,GAAG;IAC3C,wCAAwC;aAC/B,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,OAAO,CAAC;QAAC,KAAK,EAAE,iBAAiB,CAAA;KAAE,KAAK,GAAG;IACpE,mCAAmC;YAC3B,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,OAAO,CAAA;KAAE,KAAK,GAAG;;AAjB3C,wBAkKC;AAWD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as d, mergeModels as p, useModel as c, openBlock as i, createElementBlock as f, renderSlot as a, unref as t, createVNode as r, withCtx as n, createBlock as v, resolveDynamicComponent as _, normalizeProps as x, mergeProps as b, createCommentVNode as C } from "vue";
|
|
2
|
-
import { useBindCx as S } from "
|
|
2
|
+
import { useBindCx as S } from "@scalar/use-hooks/useBindCx";
|
|
3
3
|
import $ from "./ScalarSidebarButton.vue.js";
|
|
4
4
|
import g from "./ScalarSidebarGroupToggle.vue.js";
|
|
5
5
|
import k from "./ScalarSidebarIndent.vue.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarSidebarGroupToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSidebar/ScalarSidebarGroupToggle.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarSidebarGroupToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSidebar/ScalarSidebarGroupToggle.vue"],"names":[],"mappings":"AAmEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAEpC,OAAO,EAAE,KAAK,IAAI,EAAc,MAAM,eAAe,CAAA;AAIrD;;;;;;;GAOG;;IAID,+BAA+B;SAC1B,SAAS,GAAG,MAAM;IACvB,wCAAwC;WACjC,OAAO;IACd,yBAAyB;WAClB,IAAI;;IALX,+BAA+B;SAC1B,SAAS,GAAG,MAAM;IACvB,wCAAwC;WACjC,OAAO;IACd,yBAAyB;WAClB,IAAI;;IAUX,+BAA+B;cACrB,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,OAAO,CAAA;KAAE,KAAK,GAAG;IAC3C,uCAAuC;YAC/B,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,OAAO,CAAA;KAAE,KAAK,GAAG;;IAHzC,+BAA+B;cACrB,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,OAAO,CAAA;KAAE,KAAK,GAAG;IAC3C,uCAAuC;YAC/B,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,OAAO,CAAA;KAAE,KAAK,GAAG;;AArB3C,wBAgHC;AAWD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { cva as v } from "
|
|
3
|
-
import { useBindCx as h } from "../../hooks/useBindCx.js";
|
|
1
|
+
import { defineComponent as r, openBlock as s, createBlock as p, resolveDynamicComponent as i, mergeProps as l, unref as o, withCtx as u, renderSlot as n, createVNode as d, createElementVNode as f, createTextVNode as c, toDisplayString as m } from "vue";
|
|
2
|
+
import { cva as v, useBindCx as h } from "@scalar/use-hooks/useBindCx";
|
|
4
3
|
import y from "../ScalarIcon/ScalarIcon.vue.js";
|
|
5
|
-
const C = { class: "sr-only" }, _ = {},
|
|
4
|
+
const C = { class: "sr-only" }, _ = {}, N = /* @__PURE__ */ r({
|
|
6
5
|
..._,
|
|
7
6
|
inheritAttrs: !1,
|
|
8
7
|
__name: "ScalarSidebarGroupToggle",
|
|
@@ -16,10 +15,10 @@ const C = { class: "sr-only" }, _ = {}, k = /* @__PURE__ */ a({
|
|
|
16
15
|
base: "size-4 -m-px transition-transform duration-100",
|
|
17
16
|
variants: { open: { true: "rotate-90" } },
|
|
18
17
|
defaultVariants: { open: !1 }
|
|
19
|
-
}), { cx:
|
|
18
|
+
}), { cx: a } = h();
|
|
20
19
|
return (e, g) => (s(), p(i(e.is), l({
|
|
21
20
|
type: e.is === "button" ? "button" : void 0
|
|
22
|
-
}, o(
|
|
21
|
+
}, o(a)(o(t)({ open: e.open }))), {
|
|
23
22
|
default: u(() => [
|
|
24
23
|
n(e.$slots, "default", { open: e.open }, () => [
|
|
25
24
|
d(o(y), { icon: e.icon }, null, 8, ["icon"])
|
|
@@ -35,5 +34,5 @@ const C = { class: "sr-only" }, _ = {}, k = /* @__PURE__ */ a({
|
|
|
35
34
|
}
|
|
36
35
|
});
|
|
37
36
|
export {
|
|
38
|
-
|
|
37
|
+
N as default
|
|
39
38
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import a from "./ScalarSidebarIndent.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const f = /* @__PURE__ */
|
|
3
|
+
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const f = /* @__PURE__ */ o(a, [["__scopeId", "data-v-11a7f565"]]);
|
|
5
5
|
export {
|
|
6
6
|
f as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as o, computed as c, openBlock as t, createElementBlock as n, normalizeProps as u, guardReactiveProps as b, unref as m, Fragment as f, renderList as p, createElementVNode as v, normalizeClass as g, createCommentVNode as y } from "vue";
|
|
2
|
-
import { useBindCx as _ } from "
|
|
2
|
+
import { useBindCx as _ } from "@scalar/use-hooks/useBindCx";
|
|
3
3
|
const h = {}, C = /* @__PURE__ */ o({
|
|
4
4
|
...h,
|
|
5
5
|
inheritAttrs: !1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarSidebarItems.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSidebar/ScalarSidebarItems.vue"],"names":[],"mappings":"AAqCA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"ScalarSidebarItems.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSidebar/ScalarSidebarItems.vue"],"names":[],"mappings":"AAqCA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAIpC;;;;;;;;;;;;GAYG;;SAII,SAAS,GAAG,MAAM;;SAAlB,SAAS,GAAG,MAAM;;qBA4CI,GAAG;;AA/ChC,wBA+EC;AAWD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as o, openBlock as r, createBlock as a, resolveDynamicComponent as n, normalizeProps as s, guardReactiveProps as l, unref as p, withCtx as i, renderSlot as c } from "vue";
|
|
2
|
-
import { useBindCx as f } from "
|
|
2
|
+
import { useBindCx as f } from "@scalar/use-hooks/useBindCx";
|
|
3
3
|
const u = {}, C = /* @__PURE__ */ o({
|
|
4
4
|
...u,
|
|
5
5
|
inheritAttrs: !1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarTextArea.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarTextArea/ScalarTextArea.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarTextArea.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarTextArea/ScalarTextArea.vue"],"names":[],"mappings":"AAsDA;;;;;;;GAOG;;iBA0BU,MAAM;;;;iBAAN,MAAM;;;;AAzBnB,wBA0GC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as d, useModel as f, onMounted as c, openBlock as p, createElementBlock as x, mergeProps as i, unref as r, withDirectives as v, createElementVNode as b, vModelText as _ } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { useBindCx as g } from "@scalar/use-hooks/useBindCx";
|
|
3
|
+
import { useTextareaAutosize as h } from "@vueuse/core";
|
|
4
4
|
const k = {}, C = /* @__PURE__ */ d({
|
|
5
5
|
...k,
|
|
6
6
|
inheritAttrs: !1,
|
|
@@ -11,10 +11,10 @@ const k = {}, C = /* @__PURE__ */ d({
|
|
|
11
11
|
},
|
|
12
12
|
emits: ["update:modelValue"],
|
|
13
13
|
setup(a) {
|
|
14
|
-
const t = f(a, "modelValue"), { textarea: o } =
|
|
14
|
+
const t = f(a, "modelValue"), { textarea: o } = h({
|
|
15
15
|
input: t,
|
|
16
16
|
styleProp: "minHeight"
|
|
17
|
-
}), { classCx: m, otherAttrs: s } =
|
|
17
|
+
}), { classCx: m, otherAttrs: s } = g();
|
|
18
18
|
return c(() => {
|
|
19
19
|
var n;
|
|
20
20
|
"autofocus" in s.value && ((n = o.value) == null || n.focus());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarTextInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarTextInput/ScalarTextInput.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScalarTextInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarTextInput/ScalarTextInput.vue"],"names":[],"mappings":"AAwEA;;;;;;;GAOG;;iBAuBU,MAAM;;;;iBAAN,MAAM;;;;oBAuFS,GAAG;oBACH,GAAG;oBACH,GAAG;mBACJ,GAAG;;AAhH9B,wBAsJC;AAWD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as h, useModel as v, ref as $, onMounted as b, openBlock as t, createElementBlock as s, mergeProps as f, unref as c, createElementVNode as a, renderSlot as n, createCommentVNode as l, withDirectives as w, vModelDynamic as _, toDisplayString as k } from "vue";
|
|
2
|
-
import { useBindCx as y } from "
|
|
2
|
+
import { useBindCx as y } from "@scalar/use-hooks/useBindCx";
|
|
3
3
|
const g = { class: "flex flex-1 relative" }, V = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "select-none whitespace-nowrap text-sm text-transparent"
|