@scalar/components 0.16.3 → 0.16.5
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.js +27 -27
- package/dist/components/ScalarButton/types.d.ts +6 -6
- package/dist/components/ScalarButton/types.d.ts.map +1 -1
- package/dist/components/ScalarFileUpload/ScalarFileUpload.vue.js +25 -25
- package/dist/components/ScalarFileUpload/ScalarFileUploadLoading.vue.js +7 -7
- package/dist/components/ScalarLoading/ScalarLoading.vue.d.ts +14 -16
- package/dist/components/ScalarLoading/ScalarLoading.vue.d.ts.map +1 -1
- package/dist/components/ScalarLoading/ScalarLoading.vue.js +3 -5
- package/dist/components/ScalarLoading/ScalarLoading.vue2.js +20 -58
- package/dist/components/ScalarLoading/index.d.ts +3 -1
- package/dist/components/ScalarLoading/index.d.ts.map +1 -1
- package/dist/components/ScalarLoading/types.d.ts +61 -0
- package/dist/components/ScalarLoading/types.d.ts.map +1 -0
- package/dist/components/ScalarLoading/useLoadingState.d.ts +16 -0
- package/dist/components/ScalarLoading/useLoadingState.d.ts.map +1 -0
- package/dist/components/ScalarLoading/useLoadingState.js +39 -0
- package/dist/components/ScalarSearchInput/ScalarSearchInput.vue.d.ts +2 -2
- package/dist/components/ScalarSearchInput/ScalarSearchInput.vue.d.ts.map +1 -1
- package/dist/components/ScalarSearchInput/ScalarSearchInput.vue.js +17 -17
- package/dist/components/ScalarSidebar/ScalarSidebarGroup.vue.d.ts +3 -0
- package/dist/components/ScalarSidebar/ScalarSidebarGroup.vue.d.ts.map +1 -1
- package/dist/components/ScalarSidebar/ScalarSidebarGroup.vue.js +66 -62
- package/dist/components/ScalarSidebar/ScalarSidebarNestedItems.vue.d.ts +3 -0
- package/dist/components/ScalarSidebar/ScalarSidebarNestedItems.vue.d.ts.map +1 -1
- package/dist/components/ScalarSidebar/ScalarSidebarNestedItems.vue.js +63 -62
- package/dist/components/ScalarSidebar/ScalarSidebarSearchInput.vue.d.ts +1 -1
- package/dist/components/ScalarSidebar/ScalarSidebarSearchInput.vue.d.ts.map +1 -1
- package/dist/components/ScalarSidebar/ScalarSidebarSearchInput.vue.js +16 -16
- package/dist/components/ScalarSidebar/ScalarSidebarSection.vue.d.ts.map +1 -1
- package/dist/components/ScalarSidebar/ScalarSidebarSection.vue.js +35 -35
- package/dist/components/ScalarThemeSwatches/ScalarThemeSwatches.vue.d.ts +15 -0
- package/dist/components/ScalarThemeSwatches/ScalarThemeSwatches.vue.d.ts.map +1 -0
- package/dist/components/ScalarThemeSwatches/ScalarThemeSwatches.vue.js +35 -0
- package/dist/components/ScalarThemeSwatches/ScalarThemeSwatches.vue2.js +4 -0
- package/dist/components/ScalarThemeSwatches/index.d.ts +3 -0
- package/dist/components/ScalarThemeSwatches/index.d.ts.map +1 -0
- package/dist/components/ScalarThemeSwatches/useThemeSwatches.d.ts +28 -0
- package/dist/components/ScalarThemeSwatches/useThemeSwatches.d.ts.map +1 -0
- package/dist/components/ScalarThemeSwatches/useThemeSwatches.js +33 -0
- package/dist/components/ScalarWrappingText/ScalarWrappingText.vue.d.ts +14 -0
- package/dist/components/ScalarWrappingText/ScalarWrappingText.vue.d.ts.map +1 -0
- package/dist/components/ScalarWrappingText/ScalarWrappingText.vue.js +25 -0
- package/dist/components/ScalarWrappingText/ScalarWrappingText.vue2.js +4 -0
- package/dist/components/ScalarWrappingText/constants.d.ts +13 -0
- package/dist/components/ScalarWrappingText/constants.d.ts.map +1 -0
- package/dist/components/ScalarWrappingText/constants.js +12 -0
- package/dist/components/ScalarWrappingText/index.d.ts +2 -0
- package/dist/components/ScalarWrappingText/index.d.ts.map +1 -0
- package/dist/components/ScalarWrappingText/types.d.ts +18 -0
- package/dist/components/ScalarWrappingText/types.d.ts.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +76 -70
- package/dist/style.css +1 -1
- package/package.json +10 -10
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as l, createBlock as c, openBlock as d, resolveDynamicComponent as p, normalizeProps as f, guardReactiveProps as m, unref as t, withCtx as s, createVNode as n, createElementVNode as u, renderSlot as i } from "vue";
|
|
2
2
|
import { useBindCx as _ } from "@scalar/use-hooks/useBindCx";
|
|
3
3
|
import b from "./ScalarSidebarButton.vue.js";
|
|
4
|
-
import
|
|
5
|
-
import { useSidebarGroups as
|
|
6
|
-
const
|
|
7
|
-
...
|
|
4
|
+
import r from "./ScalarSidebarSpacer.vue.js";
|
|
5
|
+
import { useSidebarGroups as g } from "./useSidebarGroups.js";
|
|
6
|
+
const h = { class: "flex flex-col gap-px" }, B = {}, N = /* @__PURE__ */ l({
|
|
7
|
+
...B,
|
|
8
8
|
inheritAttrs: !1,
|
|
9
9
|
__name: "ScalarSidebarSection",
|
|
10
10
|
props: {
|
|
11
|
-
is: { default: "
|
|
11
|
+
is: { default: "li" },
|
|
12
12
|
icon: { type: [Object, Function] },
|
|
13
13
|
active: { type: Boolean },
|
|
14
14
|
selected: { type: Boolean },
|
|
@@ -16,37 +16,37 @@ const g = { class: "group/item group/sidebar-section contents" }, h = {}, P = /*
|
|
|
16
16
|
indent: {}
|
|
17
17
|
},
|
|
18
18
|
setup(v) {
|
|
19
|
-
const { level: o } =
|
|
20
|
-
return (e, x) => (
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
19
|
+
const { level: o } = g({ increment: !1 }), { cx: a } = _();
|
|
20
|
+
return (e, x) => (d(), c(p(e.is), f(m(t(a)("group/item group/sidebar-section contents"))), {
|
|
21
|
+
default: s(() => [
|
|
22
|
+
n(r, {
|
|
23
|
+
class: "group/spacer-before h-3",
|
|
24
|
+
indent: t(o)
|
|
25
|
+
}, null, 8, ["indent"]),
|
|
26
|
+
n(b, {
|
|
27
|
+
is: "div",
|
|
28
|
+
class: "text-sm font-bold",
|
|
29
|
+
disabled: "",
|
|
30
|
+
icon: e.icon,
|
|
31
|
+
indent: t(o)
|
|
32
|
+
}, {
|
|
33
|
+
default: s(() => [
|
|
34
|
+
i(e.$slots, "default")
|
|
35
|
+
]),
|
|
36
|
+
_: 3
|
|
37
|
+
}, 8, ["icon", "indent"]),
|
|
38
|
+
u("ul", h, [
|
|
39
|
+
i(e.$slots, "items")
|
|
34
40
|
]),
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}, 16)),
|
|
43
|
-
n(a, {
|
|
44
|
-
class: "group/spacer-after h-3",
|
|
45
|
-
indent: t(o)
|
|
46
|
-
}, null, 8, ["indent"])
|
|
47
|
-
]));
|
|
41
|
+
n(r, {
|
|
42
|
+
class: "group/spacer-after h-3",
|
|
43
|
+
indent: t(o)
|
|
44
|
+
}, null, 8, ["indent"])
|
|
45
|
+
]),
|
|
46
|
+
_: 3
|
|
47
|
+
}, 16));
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
export {
|
|
51
|
-
|
|
51
|
+
N as default
|
|
52
52
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Scalar Theme Swatches component
|
|
3
|
+
*
|
|
4
|
+
* Displays the light and dark mode swatches for a given theme CSS string
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* <ScalarThemeSwatches :css="theme" />
|
|
8
|
+
*/
|
|
9
|
+
declare const _default: import("vue").DefineComponent<{
|
|
10
|
+
css: string;
|
|
11
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
12
|
+
css: string;
|
|
13
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
export default _default;
|
|
15
|
+
//# sourceMappingURL=ScalarThemeSwatches.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScalarThemeSwatches.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarThemeSwatches/ScalarThemeSwatches.vue"],"names":[],"mappings":"AAmDA;;;;;;;GAOG;;SAGI,MAAM;;SAAN,MAAM;;AAFb,wBAsEC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { defineComponent as o, createElementBlock as a, openBlock as s, mergeProps as c, unref as e, Fragment as g, renderList as d, normalizeStyle as i } from "vue";
|
|
2
|
+
import { useBindCx as m } from "@scalar/use-hooks/useBindCx";
|
|
3
|
+
import { useThemeSwatches as u, THEME_CSS_VARS as b } from "./useThemeSwatches.js";
|
|
4
|
+
const h = {}, x = /* @__PURE__ */ o({
|
|
5
|
+
...h,
|
|
6
|
+
inheritAttrs: !1,
|
|
7
|
+
__name: "ScalarThemeSwatches",
|
|
8
|
+
props: {
|
|
9
|
+
css: {}
|
|
10
|
+
},
|
|
11
|
+
setup(l) {
|
|
12
|
+
const { colors: r } = u(() => l.css), { cx: n } = m();
|
|
13
|
+
return (k, _) => (s(), a("div", c(
|
|
14
|
+
{
|
|
15
|
+
style: {
|
|
16
|
+
"--bg-light": e(r).light["--scalar-background-1"],
|
|
17
|
+
"--bg-dark": e(r).dark["--scalar-background-1"]
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
e(n)(
|
|
21
|
+
"flex *:size-3 overflow-hidden rounded",
|
|
22
|
+
"bg-(--bg-light) dark:bg-(--bg-dark)"
|
|
23
|
+
)
|
|
24
|
+
), [
|
|
25
|
+
(s(!0), a(g, null, d(e(b), (t) => (s(), a("div", {
|
|
26
|
+
key: t,
|
|
27
|
+
class: "bg-(--bg-light) dark:bg-(--bg-dark)",
|
|
28
|
+
style: i({ "--bg-light": e(r).light[t], "--bg-dark": e(r).dark[t] })
|
|
29
|
+
}, null, 4))), 128))
|
|
30
|
+
], 16));
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
export {
|
|
34
|
+
x as default
|
|
35
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarThemeSwatches/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type MaybeRefOrGetter } from 'vue';
|
|
2
|
+
/** Numbers 1 to 3 */
|
|
3
|
+
type OneToThree = 1 | 2 | 3;
|
|
4
|
+
/**
|
|
5
|
+
* CSS variable names that can be extracted from theme CSS
|
|
6
|
+
*/
|
|
7
|
+
type ThemeCssVar = `--scalar-color-${OneToThree}` | `--scalar-background-${OneToThree}` | '--scalar-color-accent';
|
|
8
|
+
/**
|
|
9
|
+
* Theme colors for light and dark modes
|
|
10
|
+
*/
|
|
11
|
+
type ThemeColors = {
|
|
12
|
+
light: ThemeCssVars;
|
|
13
|
+
dark: ThemeCssVars;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Record of theme CSS variables to their values (partial)
|
|
17
|
+
*/
|
|
18
|
+
type ThemeCssVars = Partial<Record<ThemeCssVar, string>>;
|
|
19
|
+
/** Theme CSS variables */
|
|
20
|
+
export declare const THEME_CSS_VARS: ["--scalar-color-1", "--scalar-color-2", "--scalar-color-3", "--scalar-background-1", "--scalar-background-2", "--scalar-background-3", "--scalar-color-accent"];
|
|
21
|
+
/**
|
|
22
|
+
* Returns the light and dark colors for a given css string
|
|
23
|
+
*/
|
|
24
|
+
export declare function useThemeSwatches(css: MaybeRefOrGetter<string>): {
|
|
25
|
+
colors: import("vue").ComputedRef<ThemeColors>;
|
|
26
|
+
};
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=useThemeSwatches.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useThemeSwatches.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarThemeSwatches/useThemeSwatches.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAAqB,MAAM,KAAK,CAAA;AAE9D,qBAAqB;AACrB,KAAK,UAAU,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;AAE3B;;GAEG;AACH,KAAK,WAAW,GAAG,kBAAkB,UAAU,EAAE,GAAG,uBAAuB,UAAU,EAAE,GAAG,uBAAuB,CAAA;AAEjH;;GAEG;AACH,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,YAAY,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB,CAAA;AAED;;GAEG;AACH,KAAK,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,CAAA;AAExD,0BAA0B;AAC1B,eAAO,MAAM,cAAc,kKAQO,CAAA;AA2BlC;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,gBAAgB,CAAC,MAAM,CAAC;;EAO7D"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { computed as n, toValue as t } from "vue";
|
|
2
|
+
const m = [
|
|
3
|
+
"--scalar-color-1",
|
|
4
|
+
"--scalar-color-2",
|
|
5
|
+
"--scalar-color-3",
|
|
6
|
+
"--scalar-background-1",
|
|
7
|
+
"--scalar-background-2",
|
|
8
|
+
"--scalar-background-3",
|
|
9
|
+
"--scalar-color-accent"
|
|
10
|
+
];
|
|
11
|
+
function a(r, l) {
|
|
12
|
+
const c = [...l.matchAll(new RegExp(`(${r}): ([^;]+);`, "gm"))];
|
|
13
|
+
return c.length === 0 ? {} : Object.fromEntries(c.map((o) => [o[1], o[2]]));
|
|
14
|
+
}
|
|
15
|
+
function e(r) {
|
|
16
|
+
return r ? {
|
|
17
|
+
...a("--scalar-color-[1-3]", r),
|
|
18
|
+
...a("--scalar-background-[1-3]", r),
|
|
19
|
+
...a("--scalar-color-accent", r)
|
|
20
|
+
} : {};
|
|
21
|
+
}
|
|
22
|
+
function s(r) {
|
|
23
|
+
return {
|
|
24
|
+
colors: n(() => ({
|
|
25
|
+
light: e(t(r).match(/\.light-mode[^{]*{[^}]*}/m)?.[0]),
|
|
26
|
+
dark: e(t(r).match(/\.dark-mode[^{]*{[^}]*}/m)?.[0])
|
|
27
|
+
}))
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
m as THEME_CSS_VARS,
|
|
32
|
+
s as useThemeSwatches
|
|
33
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ScalarWrappingTextProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Scalar Text Wrapping component
|
|
4
|
+
*
|
|
5
|
+
* Adds word breaks to the text to allow improved line wrapping
|
|
6
|
+
*
|
|
7
|
+
* Does not inherit any attributes because it returns a set of html nodes
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* <ScalarWrappingText text="/this/is/a/long/path/that/needs/to/be/wrapped" />
|
|
11
|
+
*/
|
|
12
|
+
declare const _default: import("vue").DefineComponent<ScalarWrappingTextProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ScalarWrappingTextProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
export default _default;
|
|
14
|
+
//# sourceMappingURL=ScalarWrappingText.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScalarWrappingText.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarWrappingText/ScalarWrappingText.vue"],"names":[],"mappings":"AAuDA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAA;AAGtD;;;;;;;;;GASG;;AACH,wBAmEC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { defineComponent as u, computed as c, createElementBlock as n, openBlock as a, Fragment as l, renderList as m, createElementVNode as d, createTextVNode as i, toDisplayString as f } from "vue";
|
|
2
|
+
import { PRESETS as x } from "./constants.js";
|
|
3
|
+
const g = {}, w = /* @__PURE__ */ u({
|
|
4
|
+
...g,
|
|
5
|
+
inheritAttrs: !1,
|
|
6
|
+
__name: "ScalarWrappingText",
|
|
7
|
+
props: {
|
|
8
|
+
text: { default: "" },
|
|
9
|
+
preset: { default: "path" },
|
|
10
|
+
regex: {}
|
|
11
|
+
},
|
|
12
|
+
setup(e) {
|
|
13
|
+
const o = c(() => {
|
|
14
|
+
const r = new RegExp(e.regex ?? x[e.preset], "g");
|
|
15
|
+
return e.text.replace(r, "$&").split("").filter(Boolean);
|
|
16
|
+
});
|
|
17
|
+
return (r, t) => (a(!0), n(l, null, m(o.value, (s, p) => (a(), n(l, { key: p }, [
|
|
18
|
+
t[0] || (t[0] = d("wbr", null, null, -1)),
|
|
19
|
+
i(f(s), 1)
|
|
20
|
+
], 64))), 128));
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
export {
|
|
24
|
+
w as default
|
|
25
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A list of preset regexes for word breaks
|
|
3
|
+
*/
|
|
4
|
+
export declare const PRESETS: {
|
|
5
|
+
/** Breaks on `/`, '.' and `-` for urls or file paths */
|
|
6
|
+
readonly path: RegExp;
|
|
7
|
+
/**
|
|
8
|
+
* Breaks on capitals, `_` and `.` for properties written in
|
|
9
|
+
* camel, pascal or snake case
|
|
10
|
+
*/
|
|
11
|
+
readonly property: RegExp;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarWrappingText/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,OAAO;IAClB,wDAAwD;;IAExD;;;OAGG;;CAEsC,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const p = {
|
|
2
|
+
/** Breaks on `/`, '.' and `-` for urls or file paths */
|
|
3
|
+
path: /[\/\.-]/,
|
|
4
|
+
/**
|
|
5
|
+
* Breaks on capitals, `_` and `.` for properties written in
|
|
6
|
+
* camel, pascal or snake case
|
|
7
|
+
*/
|
|
8
|
+
property: /[A-Z\_\.-]/
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
p as PRESETS
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarWrappingText/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,0BAA0B,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { PRESETS } from './constants.js';
|
|
2
|
+
type Preset = keyof typeof PRESETS;
|
|
3
|
+
/** Props for the ScalarWrappingText component */
|
|
4
|
+
export type ScalarWrappingTextProps = {
|
|
5
|
+
/** The text to wrap */
|
|
6
|
+
text?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Presets for word wrapping
|
|
9
|
+
*
|
|
10
|
+
* @see {@link PRESETS}
|
|
11
|
+
* @default 'path'
|
|
12
|
+
*/
|
|
13
|
+
preset?: Preset;
|
|
14
|
+
/** Explicit regex to allow wrapping on, overrides any `preset` */
|
|
15
|
+
regex?: RegExp;
|
|
16
|
+
};
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarWrappingText/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAE1C,KAAK,MAAM,GAAG,MAAM,OAAO,OAAO,CAAA;AAElC,iDAAiD;AACjD,MAAM,MAAM,uBAAuB,GAAG;IACpC,uBAAuB;IACvB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -28,8 +28,10 @@ export * from './components/ScalarSidebar';
|
|
|
28
28
|
export * from './components/ScalarTeleport';
|
|
29
29
|
export * from './components/ScalarTextArea';
|
|
30
30
|
export * from './components/ScalarTextInput';
|
|
31
|
+
export * from './components/ScalarThemeSwatches';
|
|
31
32
|
export * from './components/ScalarToggle';
|
|
32
33
|
export * from './components/ScalarTooltip';
|
|
33
34
|
export * from './components/ScalarVirtualText';
|
|
35
|
+
export * from './components/ScalarWrappingText';
|
|
34
36
|
export * from './helpers';
|
|
35
37
|
//# sourceMappingURL=index.d.ts.map
|
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,aAAa,CAAA;AAEpB,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AAE7E,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AACvC,cAAc,kCAAkC,CAAA;AAChD,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,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;AAC9C,cAAc,WAAW,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAA;AAEpB,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AAE7E,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AACvC,cAAc,kCAAkC,CAAA;AAChD,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,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,kCAAkC,CAAA;AAChD,cAAc,2BAA2B,CAAA;AACzC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,WAAW,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { compose as u, cva as m, cx as c, tw as s, useBindCx as S } from "@scalar/use-hooks/useBindCx";
|
|
3
3
|
import { default as i } from "./components/ScalarButton/ScalarButton.vue.js";
|
|
4
4
|
import { default as b } from "./components/ScalarCard/ScalarCard.vue.js";
|
|
5
|
-
import { default as
|
|
5
|
+
import { default as g } from "./components/ScalarCard/ScalarCardHeader.vue.js";
|
|
6
6
|
import { default as C } from "./components/ScalarCard/ScalarCardSection.vue.js";
|
|
7
7
|
import { default as F } from "./components/ScalarCard/ScalarCardFooter.vue.js";
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as
|
|
8
|
+
import { default as h } from "./components/ScalarCheckboxInput/ScalarCheckboxInput.vue.js";
|
|
9
|
+
import { default as L } from "./components/ScalarCheckboxInput/ScalarCheckboxGroup.vue.js";
|
|
10
10
|
import { default as y } from "./components/ScalarCheckboxInput/ScalarCheckboxRadioGroup.vue.js";
|
|
11
11
|
import { default as D } from "./components/ScalarCheckboxInput/ScalarCheckbox.vue.js";
|
|
12
12
|
import { default as U } from "./components/ScalarCodeBlock/ScalarCodeBlock.vue.js";
|
|
@@ -14,7 +14,7 @@ import { default as U } from "./components/ScalarCodeBlock/ScalarCodeBlock.vue.j
|
|
|
14
14
|
import { default as R } from "./components/ScalarColorModeToggle/ScalarColorModeToggle.vue.js";
|
|
15
15
|
import { default as v } from "./components/ScalarColorModeToggle/ScalarColorModeToggleButton.vue.js";
|
|
16
16
|
import { default as O } from "./components/ScalarCombobox/ScalarCombobox.vue.js";
|
|
17
|
-
import { default as
|
|
17
|
+
import { default as N } from "./components/ScalarCombobox/ScalarComboboxMultiselect.vue.js";
|
|
18
18
|
import { default as Y } from "./components/ScalarContextMenu/ScalarContextMenu.vue.js";
|
|
19
19
|
import { default as j } from "./components/ScalarDropdown/ScalarDropdown.vue.js";
|
|
20
20
|
import { default as z } from "./components/ScalarDropdown/ScalarDropdownMenu.vue.js";
|
|
@@ -30,18 +30,18 @@ import { default as ca } from "./components/ScalarFloating/ScalarFloating.vue.js
|
|
|
30
30
|
import { default as Sa } from "./components/ScalarFloating/ScalarFloatingBackdrop.vue.js";
|
|
31
31
|
import { default as ia } from "./components/ScalarForm/ScalarForm.vue.js";
|
|
32
32
|
import { default as ba } from "./components/ScalarForm/ScalarFormError.vue.js";
|
|
33
|
-
import { default as
|
|
33
|
+
import { default as ga } from "./components/ScalarForm/ScalarFormField.vue.js";
|
|
34
34
|
import { default as Ca } from "./components/ScalarForm/ScalarFormInput.vue.js";
|
|
35
35
|
import { default as Fa } from "./components/ScalarForm/ScalarFormInputGroup.vue.js";
|
|
36
|
-
import { default as
|
|
37
|
-
import { default as
|
|
36
|
+
import { default as ha } from "./components/ScalarHeader/ScalarHeader.vue.js";
|
|
37
|
+
import { default as La } from "./components/ScalarHeader/ScalarHeaderButton.vue.js";
|
|
38
38
|
import { default as ya } from "./components/ScalarHotkey/ScalarHotkey.vue.js";
|
|
39
39
|
import { default as Da } from "./components/ScalarIcon/ScalarIconLegacyAdapter.vue.js";
|
|
40
40
|
import { default as Ua } from "./components/ScalarIconButton/ScalarIconButton.vue.js";
|
|
41
41
|
import { default as Ra } from "./components/ScalarListbox/ScalarListbox.vue.js";
|
|
42
42
|
import { default as va } from "./components/ScalarListbox/ScalarListboxCheckbox.vue.js";
|
|
43
43
|
import { default as Oa } from "./components/ScalarListbox/ScalarListboxInput.vue.js";
|
|
44
|
-
import { default as
|
|
44
|
+
import { default as Na } from "./components/ScalarListbox/ScalarListboxItem.vue.js";
|
|
45
45
|
import { default as Ya } from "./components/ScalarMarkdown/ScalarMarkdown.vue.js";
|
|
46
46
|
/* empty css */
|
|
47
47
|
import { default as ja } from "./components/ScalarMarkdown/ScalarMarkdownSummary.vue.js";
|
|
@@ -59,11 +59,11 @@ import { default as cr } from "./components/ScalarMenu/ScalarMenuTeamProfile.vue
|
|
|
59
59
|
import { default as Sr } from "./components/ScalarMenu/ScalarMenuWorkspacePicker.vue.js";
|
|
60
60
|
import { default as ir } from "./components/ScalarPopover/ScalarPopover.vue.js";
|
|
61
61
|
import { default as br } from "./components/ScalarSearchInput/ScalarSearchInput.vue.js";
|
|
62
|
-
import { default as
|
|
62
|
+
import { default as gr } from "./components/ScalarSearchResults/ScalarSearchResultList.vue.js";
|
|
63
63
|
import { default as Cr } from "./components/ScalarSearchResults/ScalarSearchResultItem.vue.js";
|
|
64
64
|
import { default as Fr } from "./components/ScalarSidebar/ScalarSidebar.vue.js";
|
|
65
|
-
import { default as
|
|
66
|
-
import { default as
|
|
65
|
+
import { default as hr } from "./components/ScalarSidebar/ScalarSidebarButton.vue.js";
|
|
66
|
+
import { default as Lr } from "./components/ScalarSidebar/ScalarSidebarFooter.vue.js";
|
|
67
67
|
import { default as yr } from "./components/ScalarSidebar/ScalarSidebarGroup.vue.js";
|
|
68
68
|
import { default as Dr } from "./components/ScalarSidebar/ScalarSidebarGroupToggle.vue.js";
|
|
69
69
|
import { default as Ur } from "./components/ScalarSidebar/ScalarSidebarItem.vue.js";
|
|
@@ -71,7 +71,7 @@ import { default as Rr } from "./components/ScalarSidebar/ScalarSidebarItems.vue
|
|
|
71
71
|
/* empty css */
|
|
72
72
|
import { default as vr } from "./components/ScalarSidebar/ScalarSidebarNestedItems.vue.js";
|
|
73
73
|
import { default as Or } from "./components/ScalarSidebar/ScalarSidebarSearchButton.vue.js";
|
|
74
|
-
import { default as
|
|
74
|
+
import { default as Nr } from "./components/ScalarSidebar/ScalarSidebarSearchInput.vue.js";
|
|
75
75
|
import { default as Yr } from "./components/ScalarSidebar/ScalarSidebarSection.vue.js";
|
|
76
76
|
/* empty css */
|
|
77
77
|
import { default as jr } from "./components/ScalarSidebar/ScalarSidebarSpacer.vue.js";
|
|
@@ -79,51 +79,54 @@ import { default as zr } from "./components/ScalarTeleport/ScalarTeleport.vue.js
|
|
|
79
79
|
import { default as Kr } from "./components/ScalarTeleport/ScalarTeleportRoot.vue.js";
|
|
80
80
|
import { default as Xr } from "./components/ScalarTextArea/ScalarTextArea.vue.js";
|
|
81
81
|
import { default as $r } from "./components/ScalarTextInput/ScalarTextInput.vue.js";
|
|
82
|
-
import { default as ro } from "./components/
|
|
83
|
-
import { default as eo } from "./components/ScalarToggle/
|
|
84
|
-
import { default as lo } from "./components/ScalarToggle/
|
|
85
|
-
import { default as po } from "./components/
|
|
82
|
+
import { default as ro } from "./components/ScalarThemeSwatches/ScalarThemeSwatches.vue.js";
|
|
83
|
+
import { default as eo } from "./components/ScalarToggle/ScalarToggle.vue.js";
|
|
84
|
+
import { default as lo } from "./components/ScalarToggle/ScalarToggleGroup.vue.js";
|
|
85
|
+
import { default as po } from "./components/ScalarToggle/ScalarToggleInput.vue.js";
|
|
86
|
+
import { default as mo } from "./components/ScalarTooltip/ScalarTooltip.vue.js";
|
|
86
87
|
/* empty css */
|
|
87
|
-
import { default as
|
|
88
|
-
import { default as
|
|
89
|
-
import { default as
|
|
90
|
-
import { default as
|
|
91
|
-
import { default as
|
|
92
|
-
import { default as
|
|
93
|
-
import { default as
|
|
94
|
-
import { default as
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import { default as
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
88
|
+
import { default as so } from "./components/ScalarTooltip/ScalarHotkeyTooltip.vue.js";
|
|
89
|
+
import { default as xo } from "./components/ScalarVirtualText/ScalarVirtualText.vue.js";
|
|
90
|
+
import { default as no } from "./components/ScalarWrappingText/ScalarWrappingText.vue.js";
|
|
91
|
+
import { default as To } from "./components/ScalarCodeBlock/ScalarCodeBlockCopy.vue.js";
|
|
92
|
+
import { default as Mo } from "./components/ScalarColorModeToggle/ScalarColorModeToggleIcon.vue.js";
|
|
93
|
+
import { default as Io } from "./components/ScalarDropdown/ScalarDropdownDivider.vue.js";
|
|
94
|
+
import { default as ko } from "./components/ScalarDropdown/ScalarDropdownButton.vue.js";
|
|
95
|
+
import { default as Bo } from "./components/ScalarDropdown/ScalarDropdownItem.vue.js";
|
|
96
|
+
import { default as wo } from "./components/ScalarForm/ScalarFormSection.vue.js";
|
|
97
|
+
import { formatHotkeySymbols as Po } from "./components/ScalarHotkey/formatHotkey.js";
|
|
98
|
+
import { default as Ho } from "./components/ScalarIcon/ScalarIcon.vue.js";
|
|
99
|
+
import { default as Go } from "./components/ScalarLoading/ScalarLoading.vue.js";
|
|
100
|
+
import { useLoadingState as Eo } from "./components/ScalarLoading/useLoadingState.js";
|
|
101
|
+
import { default as Ao } from "./components/ScalarModal/ScalarModal.vue.js";
|
|
102
|
+
import { useModal as Wo } from "./components/ScalarModal/ScalarModal.vue2.js";
|
|
103
|
+
import { default as Vo } from "./components/ScalarSidebar/ScalarSidebarIndent.vue.js";
|
|
104
|
+
import { TELEPORT_SYMBOL as _o, useProvideTeleport as jo, useTeleport as qo } from "./components/ScalarTeleport/useTeleport.js";
|
|
105
|
+
import { useThemeSwatches as Jo } from "./components/ScalarThemeSwatches/useThemeSwatches.js";
|
|
106
|
+
import { useTooltip as Qo } from "./components/ScalarTooltip/useTooltip.js";
|
|
107
|
+
import { addScalarClassesToHeadless as Zo } from "./helpers/add-scalar-classes.js";
|
|
105
108
|
export {
|
|
106
109
|
i as ScalarButton,
|
|
107
110
|
b as ScalarCard,
|
|
108
111
|
F as ScalarCardFooter,
|
|
109
|
-
|
|
112
|
+
g as ScalarCardHeader,
|
|
110
113
|
C as ScalarCardSection,
|
|
111
114
|
D as ScalarCheckbox,
|
|
112
|
-
|
|
113
|
-
|
|
115
|
+
L as ScalarCheckboxGroup,
|
|
116
|
+
h as ScalarCheckboxInput,
|
|
114
117
|
y as ScalarCheckboxRadioGroup,
|
|
115
118
|
U as ScalarCodeBlock,
|
|
116
|
-
|
|
119
|
+
To as ScalarCodeBlockCopy,
|
|
117
120
|
R as ScalarColorModeToggle,
|
|
118
121
|
v as ScalarColorModeToggleButton,
|
|
119
|
-
|
|
122
|
+
Mo as ScalarColorModeToggleIcon,
|
|
120
123
|
O as ScalarCombobox,
|
|
121
|
-
|
|
124
|
+
N as ScalarComboboxMultiselect,
|
|
122
125
|
Y as ScalarContextMenu,
|
|
123
126
|
j as ScalarDropdown,
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
+
ko as ScalarDropdownButton,
|
|
128
|
+
Io as ScalarDropdownDivider,
|
|
129
|
+
Bo as ScalarDropdownItem,
|
|
127
130
|
z as ScalarDropdownMenu,
|
|
128
131
|
K as ScalarErrorBoundary,
|
|
129
132
|
X as ScalarFileUpload,
|
|
@@ -137,22 +140,22 @@ export {
|
|
|
137
140
|
Sa as ScalarFloatingBackdrop,
|
|
138
141
|
ia as ScalarForm,
|
|
139
142
|
ba as ScalarFormError,
|
|
140
|
-
|
|
143
|
+
ga as ScalarFormField,
|
|
141
144
|
Ca as ScalarFormInput,
|
|
142
145
|
Fa as ScalarFormInputGroup,
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
+
wo as ScalarFormSection,
|
|
147
|
+
ha as ScalarHeader,
|
|
148
|
+
La as ScalarHeaderButton,
|
|
146
149
|
ya as ScalarHotkey,
|
|
147
|
-
|
|
148
|
-
|
|
150
|
+
so as ScalarHotkeyTooltip,
|
|
151
|
+
Ho as ScalarIcon,
|
|
149
152
|
Ua as ScalarIconButton,
|
|
150
153
|
Da as ScalarIconLegacyAdapter,
|
|
151
154
|
Ra as ScalarListbox,
|
|
152
155
|
va as ScalarListboxCheckbox,
|
|
153
156
|
Oa as ScalarListboxInput,
|
|
154
|
-
|
|
155
|
-
|
|
157
|
+
Na as ScalarListboxItem,
|
|
158
|
+
Go as ScalarLoading,
|
|
156
159
|
Ya as ScalarMarkdown,
|
|
157
160
|
ja as ScalarMarkdownSummary,
|
|
158
161
|
za as ScalarMenu,
|
|
@@ -166,44 +169,47 @@ export {
|
|
|
166
169
|
ur as ScalarMenuTeamPicker,
|
|
167
170
|
cr as ScalarMenuTeamProfile,
|
|
168
171
|
Sr as ScalarMenuWorkspacePicker,
|
|
169
|
-
|
|
172
|
+
Ao as ScalarModal,
|
|
170
173
|
ir as ScalarPopover,
|
|
171
174
|
br as ScalarSearchInput,
|
|
172
175
|
Cr as ScalarSearchResultItem,
|
|
173
|
-
|
|
176
|
+
gr as ScalarSearchResultList,
|
|
174
177
|
Fr as ScalarSidebar,
|
|
175
|
-
|
|
176
|
-
|
|
178
|
+
hr as ScalarSidebarButton,
|
|
179
|
+
Lr as ScalarSidebarFooter,
|
|
177
180
|
yr as ScalarSidebarGroup,
|
|
178
181
|
Dr as ScalarSidebarGroupToggle,
|
|
179
|
-
|
|
182
|
+
Vo as ScalarSidebarIndent,
|
|
180
183
|
Ur as ScalarSidebarItem,
|
|
181
184
|
Rr as ScalarSidebarItems,
|
|
182
185
|
vr as ScalarSidebarNestedItems,
|
|
183
186
|
Or as ScalarSidebarSearchButton,
|
|
184
|
-
|
|
187
|
+
Nr as ScalarSidebarSearchInput,
|
|
185
188
|
Yr as ScalarSidebarSection,
|
|
186
189
|
jr as ScalarSidebarSpacer,
|
|
187
190
|
zr as ScalarTeleport,
|
|
188
191
|
Kr as ScalarTeleportRoot,
|
|
189
192
|
Xr as ScalarTextArea,
|
|
190
193
|
$r as ScalarTextInput,
|
|
191
|
-
ro as
|
|
192
|
-
eo as
|
|
193
|
-
lo as
|
|
194
|
-
po as
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
194
|
+
ro as ScalarThemeSwatches,
|
|
195
|
+
eo as ScalarToggle,
|
|
196
|
+
lo as ScalarToggleGroup,
|
|
197
|
+
po as ScalarToggleInput,
|
|
198
|
+
mo as ScalarTooltip,
|
|
199
|
+
xo as ScalarVirtualText,
|
|
200
|
+
no as ScalarWrappingText,
|
|
201
|
+
_o as TELEPORT_SYMBOL,
|
|
202
|
+
Zo as addScalarClassesToHeadless,
|
|
198
203
|
u as compose,
|
|
199
204
|
m as cva,
|
|
200
205
|
c as cx,
|
|
201
|
-
|
|
206
|
+
Po as formatHotkeySymbols,
|
|
202
207
|
s as tw,
|
|
203
208
|
S as useBindCx,
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
+
Eo as useLoadingState,
|
|
210
|
+
Wo as useModal,
|
|
211
|
+
jo as useProvideTeleport,
|
|
212
|
+
qo as useTeleport,
|
|
213
|
+
Jo as useThemeSwatches,
|
|
214
|
+
Qo as useTooltip
|
|
209
215
|
};
|