@scalar/components 0.12.55 → 0.12.56

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.
Files changed (36) hide show
  1. package/dist/components/ScalarIcon/ScalarIcon.stories.d.ts +1 -1
  2. package/dist/components/ScalarIcon/icons/Unwatch.svg.js +21 -0
  3. package/dist/components/ScalarIcon/icons/Watch.svg.js +21 -0
  4. package/dist/components/ScalarIcon/icons/icons.d.ts +1 -1
  5. package/dist/components/ScalarIcon/icons/icons.d.ts.map +1 -1
  6. package/dist/components/ScalarIcon/icons/index.js +96 -92
  7. package/dist/components/ScalarIconButton/ScalarIconButton.stories.d.ts +1 -1
  8. package/dist/components/ScalarSearchInput/ScalarSearchInput.stories.d.ts +44 -164
  9. package/dist/components/ScalarSearchInput/ScalarSearchInput.stories.d.ts.map +1 -1
  10. package/dist/components/ScalarSearchInput/ScalarSearchInput.vue.d.ts +3 -10
  11. package/dist/components/ScalarSearchInput/ScalarSearchInput.vue.d.ts.map +1 -1
  12. package/dist/components/ScalarSearchInput/ScalarSearchInput.vue.js +34 -36
  13. package/dist/components/ScalarSearchResults/ScalarSearchResultItem.vue.d.ts.map +1 -1
  14. package/dist/components/ScalarSearchResults/ScalarSearchResultItem.vue.js +12 -9
  15. package/dist/components/ScalarSearchResults/ScalarSearchResultList.vue.d.ts.map +1 -1
  16. package/dist/components/ScalarSearchResults/ScalarSearchResultList.vue.js +2 -1
  17. package/dist/components/ScalarToggle/ScalarToggle.spec.d.ts +2 -0
  18. package/dist/components/ScalarToggle/ScalarToggle.spec.d.ts.map +1 -0
  19. package/dist/components/ScalarToggle/ScalarToggle.stories.d.ts +92 -0
  20. package/dist/components/ScalarToggle/ScalarToggle.stories.d.ts.map +1 -0
  21. package/dist/components/ScalarToggle/ScalarToggle.vue.d.ts +19 -0
  22. package/dist/components/ScalarToggle/ScalarToggle.vue.d.ts.map +1 -0
  23. package/dist/components/ScalarToggle/ScalarToggle.vue.js +54 -0
  24. package/dist/components/ScalarToggle/ScalarToggle.vue2.js +4 -0
  25. package/dist/components/ScalarToggle/index.d.ts +2 -0
  26. package/dist/components/ScalarToggle/index.d.ts.map +1 -0
  27. package/dist/components/ScalarTooltip/ScalarTooltip.stories.d.ts +12 -0
  28. package/dist/components/ScalarTooltip/ScalarTooltip.stories.d.ts.map +1 -1
  29. package/dist/components/ScalarTooltip/ScalarTooltip.vue.d.ts +2 -0
  30. package/dist/components/ScalarTooltip/ScalarTooltip.vue.d.ts.map +1 -1
  31. package/dist/components/ScalarTooltip/ScalarTooltip.vue.js +15 -13
  32. package/dist/index.d.ts +2 -1
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/index.js +20 -18
  35. package/dist/style.css +1 -1
  36. package/package.json +2 -2
@@ -1,11 +1,9 @@
1
1
  import { type LoadingState } from '../ScalarLoading';
2
- declare function __VLS_template(): {
3
- label?(_: {}): any;
4
- };
5
- declare const __VLS_component: import("vue").DefineComponent<{
2
+ declare const _default: import("vue").DefineComponent<{
6
3
  loading?: LoadingState;
7
4
  modelValue?: string;
8
5
  sidebar?: boolean;
6
+ label?: string;
9
7
  }, {
10
8
  focus: () => void;
11
9
  blur: () => void;
@@ -15,14 +13,9 @@ declare const __VLS_component: import("vue").DefineComponent<{
15
13
  loading?: LoadingState;
16
14
  modelValue?: string;
17
15
  sidebar?: boolean;
16
+ label?: string;
18
17
  }> & Readonly<{
19
18
  "onUpdate:modelValue"?: ((v: string) => any) | undefined;
20
19
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
22
20
  export default _default;
23
- type __VLS_WithTemplateSlots<T, S> = T & {
24
- new (): {
25
- $slots: S;
26
- };
27
- };
28
21
  //# sourceMappingURL=ScalarSearchInput.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarSearchInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSearchInput/ScalarSearchInput.vue"],"names":[],"mappings":"AA8FA,OAAO,EAAE,KAAK,YAAY,EAAiB,MAAM,kBAAkB,CAAA;AAgEnE,iBAAS,cAAc;mBAsGI,GAAG;EA0B7B;AACD,QAAA,MAAM,eAAe;cA5LT,YAAY;iBACT,MAAM;cACT,OAAO;;;;;;;cAFP,YAAY;iBACT,MAAM;cACT,OAAO;;;kFAoMjB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ScalarSearchInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSearchInput/ScalarSearchInput.vue"],"names":[],"mappings":"AA8FA,OAAO,EAAE,KAAK,YAAY,EAAiB,MAAM,kBAAkB,CAAA;;cAKvD,YAAY;iBACT,MAAM;cACT,OAAO;YACT,MAAM;;;;;;;cAHJ,YAAY;iBACT,MAAM;cACT,OAAO;YACT,MAAM;;;;AAoLhB,wBAUG"}
@@ -1,27 +1,28 @@
1
- import { defineComponent as b, ref as h, computed as g, useAttrs as k, openBlock as l, createElementBlock as v, mergeProps as S, unref as s, createElementVNode as i, renderSlot as V, createTextVNode as y, createBlock as o, createCommentVNode as u, normalizeClass as C } from "vue";
2
- import { cva as N, cx as c } from "../../cva.js";
3
- import z from "../ScalarIcon/ScalarIcon.vue.js";
4
- import B from "../ScalarLoading/ScalarLoading.vue.js";
5
- import I from "../ScalarIconButton/ScalarIconButton.vue.js";
6
- const E = { class: "sr-only" }, $ = ["value"], _ = /* @__PURE__ */ b({
1
+ import { defineComponent as b, ref as h, computed as g, useAttrs as k, openBlock as s, createElementBlock as v, normalizeClass as i, unref as a, createBlock as o, createCommentVNode as u, createElementVNode as S, mergeProps as V } from "vue";
2
+ import { cva as y, cx as c } from "../../cva.js";
3
+ import C from "../ScalarIcon/ScalarIcon.vue.js";
4
+ import N from "../ScalarLoading/ScalarLoading.vue.js";
5
+ import z from "../ScalarIconButton/ScalarIconButton.vue.js";
6
+ const B = ["aria-label", "value"], q = /* @__PURE__ */ b({
7
7
  inheritAttrs: !1,
8
8
  __name: "ScalarSearchInput",
9
9
  props: {
10
10
  loading: {},
11
11
  modelValue: {},
12
- sidebar: { type: Boolean }
12
+ sidebar: { type: Boolean },
13
+ label: {}
13
14
  },
14
15
  emits: ["update:modelValue"],
15
- setup(w, { expose: d, emit: m }) {
16
- const r = m, t = h(null);
16
+ setup(I, { expose: d, emit: m }) {
17
+ const t = m, r = h(null);
17
18
  function p(e) {
18
- r("update:modelValue", e.target.value);
19
+ t("update:modelValue", e.target.value);
19
20
  }
20
21
  const n = g(() => {
21
- const { class: e, ...a } = k();
22
- return { className: e || "", rest: a };
23
- }), f = N({
24
- base: "flex items-center rounded border bg-b-1 text-sm font-medium",
22
+ const { class: e, ...l } = k();
23
+ return { className: e || "", rest: l };
24
+ }), f = y({
25
+ base: "flex items-center rounded border bg-b-1 text-sm font-medium has-[:focus-visible]:outline",
25
26
  variants: {
26
27
  sidebar: {
27
28
  true: "h-8 gap-1.5 px-1.5",
@@ -32,56 +33,53 @@ const E = { class: "sr-only" }, $ = ["value"], _ = /* @__PURE__ */ b({
32
33
  return d({
33
34
  focus: () => {
34
35
  var e;
35
- (e = t.value) == null || e.focus();
36
+ (e = r.value) == null || e.focus();
36
37
  },
37
38
  blur: () => {
38
39
  var e;
39
- (e = t.value) == null || e.blur();
40
+ (e = r.value) == null || e.blur();
40
41
  }
41
- }), (e, a) => (l(), v("label", S(n.value.rest, {
42
- class: s(c)(s(f)({ sidebar: e.sidebar }), n.value.className)
43
- }), [
44
- i("span", E, [
45
- V(e.$slots, "label", {}, () => [
46
- a[1] || (a[1] = y("Enter search"))
47
- ])
48
- ]),
49
- e.sidebar ? (l(), o(s(z), {
42
+ }), (e, l) => (s(), v("label", {
43
+ class: i(a(c)(a(f)({ sidebar: e.sidebar }), n.value.className))
44
+ }, [
45
+ e.sidebar ? (s(), o(a(C), {
50
46
  key: 0,
51
47
  class: "text-c-2",
52
48
  icon: "Search",
53
49
  size: "xs",
54
50
  thickness: "2.5"
55
51
  })) : u("", !0),
56
- i("input", {
52
+ S("input", V({
57
53
  ref_key: "inputRef",
58
- ref: t,
54
+ ref: r
55
+ }, n.value.rest, {
56
+ "aria-label": e.label ?? "Enter search query",
59
57
  autocapitalize: "off",
60
58
  autocomplete: "off",
61
59
  autocorrect: "off",
62
- class: "flex-1 rounded border-none bg-transparent outline-none",
60
+ class: "flex-1 appearance-none rounded border-none bg-transparent outline-none",
63
61
  placeholder: "Search...",
64
62
  spellcheck: "false",
65
- type: "text",
63
+ type: "search",
66
64
  value: e.modelValue,
67
65
  onInput: p
68
- }, null, 40, $),
69
- e.loading && e.loading.isLoading ? (l(), o(s(B), {
66
+ }), null, 16, B),
67
+ e.loading && e.loading.isLoading ? (s(), o(a(N), {
70
68
  key: 1,
71
69
  class: "mr-3 self-center",
72
70
  loadingState: e.loading,
73
71
  size: "md"
74
- }, null, 8, ["loadingState"])) : e.modelValue ? (l(), o(s(I), {
72
+ }, null, 8, ["loadingState"])) : e.modelValue ? (s(), o(a(z), {
75
73
  key: 2,
76
- class: C(s(c)("p-0", e.sidebar ? "h-4 w-4" : "h-5 w-5")),
74
+ class: i(a(c)("p-0", e.sidebar ? "h-4 w-4" : "h-5 w-5")),
77
75
  icon: "Close",
78
76
  label: "Clear Search",
79
77
  thickness: e.sidebar ? "1.75" : "1.5",
80
- onClick: a[0] || (a[0] = (x) => r("update:modelValue", ""))
78
+ onClick: l[0] || (l[0] = (E) => t("update:modelValue", ""))
81
79
  }, null, 8, ["class", "thickness"])) : u("", !0)
82
- ], 16));
80
+ ], 2));
83
81
  }
84
82
  });
85
83
  export {
86
- _ as default
84
+ q as default
87
85
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarSearchResultItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSearchResults/ScalarSearchResultItem.vue"],"names":[],"mappings":"AAsEA,OAAO,EAAE,KAAK,IAAI,EAAc,MAAM,eAAe,CAAA;AAuBrD,iBAAS,cAAc;kBAqGG,GAAG;qBACA,GAAG;mBACL,GAAG;yBACG,GAAG;EAiBnC;AACD,QAAA,MAAM,eAAe;WA5IZ,IAAI;aACF,OAAO;;WADT,IAAI;aACF,OAAO;iGAiJhB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ScalarSearchResultItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSearchResults/ScalarSearchResultItem.vue"],"names":[],"mappings":"AAwEA,OAAO,EAAE,KAAK,IAAI,EAAc,MAAM,eAAe,CAAA;AAuBrD,iBAAS,cAAc;kBAqGG,GAAG;qBACA,GAAG;mBACL,GAAG;yBACG,GAAG;EAiBnC;AACD,QAAA,MAAM,eAAe;WA5IZ,IAAI;aACF,OAAO;;WADT,IAAI;aACF,OAAO;iGAiJhB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,10 @@
1
- import { defineComponent as i, computed as d, useAttrs as m, openBlock as t, createElementBlock as n, createElementVNode as s, mergeProps as u, unref as a, renderSlot as r, createBlock as p, createCommentVNode as c } from "vue";
1
+ import { defineComponent as i, computed as d, useAttrs as m, openBlock as t, createElementBlock as n, createElementVNode as s, mergeProps as u, unref as a, renderSlot as r, createBlock as p, createCommentVNode as l } from "vue";
2
2
  import { cx as f } from "../../cva.js";
3
3
  import v from "../ScalarIcon/ScalarIcon.vue.js";
4
- const h = { class: "contents" }, _ = {
4
+ const h = {
5
+ class: "contents",
6
+ role: "option"
7
+ }, _ = {
5
8
  key: 0,
6
9
  class: "flex h-fit items-center text-sm font-medium text-c-3 group-hover:text-c-1"
7
10
  }, x = { class: "flex min-w-0 flex-1 flex-col gap-0.75" }, g = { class: "flex items-center gap-1" }, k = { class: "flex-1 truncate text-sm font-medium" }, y = {
@@ -18,18 +21,18 @@ const h = { class: "contents" }, _ = {
18
21
  active: { type: Boolean }
19
22
  },
20
23
  setup(N) {
21
- const l = d(() => {
24
+ const c = d(() => {
22
25
  const { class: e, ...o } = m();
23
26
  return { className: e || "", rest: o };
24
27
  });
25
28
  return (e, o) => (t(), n("li", h, [
26
- s("a", u(l.value.rest, {
29
+ s("a", u(c.value.rest, {
27
30
  class: a(f)(
28
31
  "group flex cursor-pointer gap-2.5 rounded px-3 py-1.5 no-underline hover:bg-b-2",
29
32
  {
30
33
  "bg-b-2": e.active
31
34
  },
32
- l.value.className
35
+ c.value.className
33
36
  )
34
37
  }), [
35
38
  e.icon ? (t(), n("div", _, [
@@ -38,10 +41,10 @@ const h = { class: "contents" }, _ = {
38
41
  key: 0,
39
42
  icon: e.icon,
40
43
  size: "sm"
41
- }, null, 8, ["icon"])) : c("", !0)
44
+ }, null, 8, ["icon"])) : l("", !0)
42
45
  ]),
43
46
  o[0] || (o[0] = s("span", null, " ", -1))
44
- ])) : c("", !0),
47
+ ])) : l("", !0),
45
48
  s("div", x, [
46
49
  s("div", g, [
47
50
  s("div", k, [
@@ -49,11 +52,11 @@ const h = { class: "contents" }, _ = {
49
52
  ]),
50
53
  e.$slots.addon ? (t(), n("div", y, [
51
54
  r(e.$slots, "addon")
52
- ])) : c("", !0)
55
+ ])) : l("", !0)
53
56
  ]),
54
57
  e.$slots.description ? (t(), n("div", $, [
55
58
  r(e.$slots, "description")
56
- ])) : c("", !0)
59
+ ])) : l("", !0)
57
60
  ])
58
61
  ], 16)
59
62
  ]));
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarSearchResultList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSearchResults/ScalarSearchResultList.vue"],"names":[],"mappings":"AA0DA,iBAAS,cAAc;uBAuCQ,GAAG;qBACL,GAAG;EAgB/B;AACD,QAAA,MAAM,eAAe;gBA1EP,OAAO;;gBAAP,OAAO;iGAgFnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ScalarSearchResultList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSearchResults/ScalarSearchResultList.vue"],"names":[],"mappings":"AA2DA,iBAAS,cAAc;uBAuCQ,GAAG;qBACL,GAAG;EAgB/B;AACD,QAAA,MAAM,eAAe;gBA1EP,OAAO;;gBAAP,OAAO;iGAgFnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -12,7 +12,8 @@ const v = /* @__PURE__ */ r({
12
12
  return { className: e || "", rest: t };
13
13
  });
14
14
  return (e, t) => (c(), m("ul", u(l.value.rest, {
15
- class: p(d)("flex flex-col", l.value.className)
15
+ class: p(d)("flex flex-col", l.value.className),
16
+ role: "listbox"
16
17
  }), [
17
18
  e.noResults ? o(e.$slots, "noResults", { key: 0 }, () => [
18
19
  t[0] || (t[0] = s("div", { class: "flex flex-col items-center gap-2 px-3 py-4" }, [
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ScalarToggle.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScalarToggle.spec.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarToggle/ScalarToggle.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,92 @@
1
+ import type { StoryObj } from '@storybook/vue3';
2
+ declare const meta: {
3
+ component: import("vue").DefineComponent<{
4
+ modelValue: boolean;
5
+ disabled?: boolean;
6
+ id?: string;
7
+ ariaLabel?: string;
8
+ ariaLabelledBy?: string;
9
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
10
+ "update:modelValue": (value: boolean) => any;
11
+ }, string, import("vue").PublicProps, Readonly<{
12
+ modelValue: boolean;
13
+ disabled?: boolean;
14
+ id?: string;
15
+ ariaLabel?: string;
16
+ ariaLabelledBy?: string;
17
+ }> & Readonly<{
18
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
19
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
+ tags: string[];
21
+ argTypes: {
22
+ modelValue: {
23
+ control: "boolean";
24
+ };
25
+ disabled: {
26
+ control: "boolean";
27
+ };
28
+ };
29
+ render: (args: import("@storybook/vue3").ComponentPropsAndSlots<import("vue").DefineComponent<{
30
+ modelValue: boolean;
31
+ disabled?: boolean;
32
+ id?: string;
33
+ ariaLabel?: string;
34
+ ariaLabelledBy?: string;
35
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
36
+ "update:modelValue": (value: boolean) => any;
37
+ }, string, import("vue").PublicProps, Readonly<{
38
+ modelValue: boolean;
39
+ disabled?: boolean;
40
+ id?: string;
41
+ ariaLabel?: string;
42
+ ariaLabelledBy?: string;
43
+ }> & Readonly<{
44
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
45
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>>) => {
46
+ components: {
47
+ ScalarToggle: import("vue").DefineComponent<{
48
+ modelValue: boolean;
49
+ disabled?: boolean;
50
+ id?: string;
51
+ ariaLabel?: string;
52
+ ariaLabelledBy?: string;
53
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
54
+ "update:modelValue": (value: boolean) => any;
55
+ }, string, import("vue").PublicProps, Readonly<{
56
+ modelValue: boolean;
57
+ disabled?: boolean;
58
+ id?: string;
59
+ ariaLabel?: string;
60
+ ariaLabelledBy?: string;
61
+ }> & Readonly<{
62
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
63
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
64
+ };
65
+ setup(this: void): {
66
+ args: import("@storybook/vue3").ComponentPropsAndSlots<import("vue").DefineComponent<{
67
+ modelValue: boolean;
68
+ disabled?: boolean;
69
+ id?: string;
70
+ ariaLabel?: string;
71
+ ariaLabelledBy?: string;
72
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
73
+ "update:modelValue": (value: boolean) => any;
74
+ }, string, import("vue").PublicProps, Readonly<{
75
+ modelValue: boolean;
76
+ disabled?: boolean;
77
+ id?: string;
78
+ ariaLabel?: string;
79
+ ariaLabelledBy?: string;
80
+ }> & Readonly<{
81
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
82
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>>;
83
+ model: import("vue").Ref<boolean, boolean>;
84
+ };
85
+ template: string;
86
+ };
87
+ };
88
+ export default meta;
89
+ type Story = StoryObj<typeof meta>;
90
+ export declare const Base: Story;
91
+ export declare const Disabled: Story;
92
+ //# sourceMappingURL=ScalarToggle.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScalarToggle.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarToggle/ScalarToggle.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAKrD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAe2B,CAAA;AAErC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,IAAI,EAAE,KAElB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAA"}
@@ -0,0 +1,19 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ modelValue: boolean;
3
+ disabled?: boolean;
4
+ id?: string;
5
+ ariaLabel?: string;
6
+ ariaLabelledBy?: string;
7
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
8
+ "update:modelValue": (value: boolean) => any;
9
+ }, string, import("vue").PublicProps, Readonly<{
10
+ modelValue: boolean;
11
+ disabled?: boolean;
12
+ id?: string;
13
+ ariaLabel?: string;
14
+ ariaLabelledBy?: string;
15
+ }> & Readonly<{
16
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
17
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ export default _default;
19
+ //# sourceMappingURL=ScalarToggle.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScalarToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarToggle/ScalarToggle.vue"],"names":[],"mappings":";gBA2Dc,OAAO;eACR,OAAO;SACb,MAAM;gBACC,MAAM;qBACD,MAAM;;;;gBAJX,OAAO;eACR,OAAO;SACb,MAAM;gBACC,MAAM;qBACD,MAAM;;;;AAuFzB,wBASG"}
@@ -0,0 +1,54 @@
1
+ import { defineComponent as b, openBlock as p, createElementBlock as m, normalizeClass as d, unref as o, withKeys as i, withModifiers as t, createElementVNode as r } from "vue";
2
+ import { cva as h, cx as f } from "../../cva.js";
3
+ const y = ["onKeydown"], g = ["id", "aria-checked", "aria-disabled", "aria-label", "aria-labelledby", "checked", "disabled"], v = /* @__PURE__ */ b({
4
+ __name: "ScalarToggle",
5
+ props: {
6
+ modelValue: { type: Boolean },
7
+ disabled: { type: Boolean },
8
+ id: {},
9
+ ariaLabel: {},
10
+ ariaLabelledBy: {}
11
+ },
12
+ emits: ["update:modelValue"],
13
+ setup(n, { emit: s }) {
14
+ const a = n, c = s;
15
+ function l() {
16
+ a.disabled || c("update:modelValue", !a.modelValue);
17
+ }
18
+ const u = h({
19
+ base: "relative h-3.5 w-6 cursor-pointer rounded-full bg-b-3 transition-colors duration-300",
20
+ variants: {
21
+ checked: { true: "bg-c-accent" },
22
+ disabled: { true: "cursor-not-allowed opacity-40" }
23
+ }
24
+ });
25
+ return (e, k) => (p(), m("div", {
26
+ class: d(o(f)(o(u)({ checked: e.modelValue, disabled: e.disabled }))),
27
+ role: "switch",
28
+ tabindex: "0",
29
+ onKeydown: [
30
+ i(t(l, ["prevent"]), ["enter"]),
31
+ i(t(l, ["prevent"]), ["space"])
32
+ ]
33
+ }, [
34
+ r("input", {
35
+ id: a.id,
36
+ "aria-checked": e.modelValue,
37
+ "aria-disabled": e.disabled,
38
+ "aria-label": a.ariaLabel,
39
+ "aria-labelledby": a.ariaLabelledBy,
40
+ checked: e.modelValue,
41
+ class: "hidden",
42
+ disabled: e.disabled,
43
+ type: "checkbox",
44
+ onChange: l
45
+ }, null, 40, g),
46
+ r("div", {
47
+ class: d(["absolute left-px top-px flex h-3 w-3 items-center justify-center rounded-full bg-white text-c-accent transition-transform duration-300", { "translate-x-2.5": e.modelValue }])
48
+ }, null, 2)
49
+ ], 42, y));
50
+ }
51
+ });
52
+ export {
53
+ v as default
54
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./ScalarToggle.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,2 @@
1
+ export { default as ScalarToggle } from './ScalarToggle.vue.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarToggle/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAA"}
@@ -11,6 +11,7 @@ declare const meta: {
11
11
  class?: string;
12
12
  triggerClass?: string;
13
13
  resize?: boolean;
14
+ as?: string;
14
15
  }> & Readonly<{
15
16
  onClick?: (() => any) | undefined;
16
17
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
@@ -36,6 +37,7 @@ declare const meta: {
36
37
  class?: string;
37
38
  triggerClass?: string;
38
39
  resize?: boolean;
40
+ as?: string;
39
41
  }> & Readonly<{
40
42
  onClick?: (() => any) | undefined;
41
43
  }>, {}, {}, {}, {}, {
@@ -56,6 +58,7 @@ declare const meta: {
56
58
  class?: string;
57
59
  triggerClass?: string;
58
60
  resize?: boolean;
61
+ as?: string;
59
62
  }> & Readonly<{
60
63
  onClick?: (() => any) | undefined;
61
64
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
@@ -100,6 +103,7 @@ declare const meta: {
100
103
  class?: string;
101
104
  triggerClass?: string;
102
105
  resize?: boolean;
106
+ as?: string;
103
107
  }> & Readonly<{
104
108
  onClick?: (() => any) | undefined;
105
109
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
@@ -125,6 +129,7 @@ declare const meta: {
125
129
  class?: string;
126
130
  triggerClass?: string;
127
131
  resize?: boolean;
132
+ as?: string;
128
133
  }> & Readonly<{
129
134
  onClick?: (() => any) | undefined;
130
135
  }>, {}, {}, {}, {}, {
@@ -145,6 +150,7 @@ declare const meta: {
145
150
  class?: string;
146
151
  triggerClass?: string;
147
152
  resize?: boolean;
153
+ as?: string;
148
154
  }> & Readonly<{
149
155
  onClick?: (() => any) | undefined;
150
156
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
@@ -171,6 +177,7 @@ declare const meta: {
171
177
  class?: string;
172
178
  triggerClass?: string;
173
179
  resize?: boolean;
180
+ as?: string;
174
181
  }> & Readonly<{
175
182
  onClick?: (() => any) | undefined;
176
183
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
@@ -196,6 +203,7 @@ declare const meta: {
196
203
  class?: string;
197
204
  triggerClass?: string;
198
205
  resize?: boolean;
206
+ as?: string;
199
207
  }> & Readonly<{
200
208
  onClick?: (() => any) | undefined;
201
209
  }>, {}, {}, {}, {}, {
@@ -216,6 +224,7 @@ declare const meta: {
216
224
  class?: string;
217
225
  triggerClass?: string;
218
226
  resize?: boolean;
227
+ as?: string;
219
228
  }> & Readonly<{
220
229
  onClick?: (() => any) | undefined;
221
230
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
@@ -298,6 +307,7 @@ declare const meta: {
298
307
  class?: string;
299
308
  triggerClass?: string;
300
309
  resize?: boolean;
310
+ as?: string;
301
311
  }> & Readonly<{
302
312
  onClick?: (() => any) | undefined;
303
313
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
@@ -323,6 +333,7 @@ declare const meta: {
323
333
  class?: string;
324
334
  triggerClass?: string;
325
335
  resize?: boolean;
336
+ as?: string;
326
337
  }> & Readonly<{
327
338
  onClick?: (() => any) | undefined;
328
339
  }>, {}, {}, {}, {}, {
@@ -343,6 +354,7 @@ declare const meta: {
343
354
  class?: string;
344
355
  triggerClass?: string;
345
356
  resize?: boolean;
357
+ as?: string;
346
358
  }> & Readonly<{
347
359
  onClick?: (() => any) | undefined;
348
360
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarTooltip.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarTooltip/ScalarTooltip.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAKrD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0C4B,CAAA;AAEtC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,IAAI,EAAE,KAAU,CAAA"}
1
+ {"version":3,"file":"ScalarTooltip.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarTooltip/ScalarTooltip.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAKrD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0C4B,CAAA;AAEtC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,IAAI,EAAE,KAAU,CAAA"}
@@ -12,6 +12,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
12
12
  class?: string;
13
13
  triggerClass?: string;
14
14
  resize?: boolean;
15
+ as?: string;
15
16
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
16
17
  click: () => any;
17
18
  }, string, import("vue").PublicProps, Readonly<{
@@ -24,6 +25,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
24
25
  class?: string;
25
26
  triggerClass?: string;
26
27
  resize?: boolean;
28
+ as?: string;
27
29
  }> & Readonly<{
28
30
  onClick?: (() => any) | undefined;
29
31
  }>, {
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarTooltip.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarTooltip/ScalarTooltip.vue"],"names":[],"mappings":"AA0GA,iBAAS,cAAc;qBA4GO,GAAG;qBACH,GAAG;EAuBhC;AACD,QAAA,MAAM,eAAe;YAzKT,MAAM,IAAI;YACV,MAAM;gBACF,MAAM;YACV,OAAO,GAAG,QAAQ,GAAG,KAAK;WAC3B,KAAK,GAAG,OAAO,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AG,MAAM;eAF9B,MAAM;6EAkLpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAexG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,4 +1,4 @@
1
- import { defineComponent as n, openBlock as c, createBlock as d, unref as l, withCtx as t, createVNode as s, normalizeClass as i, renderSlot as o } from "vue";
1
+ import { defineComponent as n, openBlock as c, createBlock as d, unref as t, withCtx as l, createVNode as s, normalizeClass as i, renderSlot as o } from "vue";
2
2
  import { TooltipProvider as f, TooltipRoot as p, TooltipTrigger as u, TooltipPortal as g, TooltipContent as k } from "radix-vue";
3
3
  const C = /* @__PURE__ */ n({
4
4
  __name: "ScalarTooltip",
@@ -11,36 +11,38 @@ const C = /* @__PURE__ */ n({
11
11
  sideOffset: {},
12
12
  class: {},
13
13
  triggerClass: {},
14
- resize: { type: Boolean }
14
+ resize: { type: Boolean },
15
+ as: {}
15
16
  },
16
17
  emits: ["click"],
17
18
  setup(r) {
18
19
  const e = r;
19
- return (a, m) => (c(), d(l(f), {
20
+ return (a, m) => (c(), d(t(f), {
20
21
  delayDuration: e.delay,
21
22
  skipDelayDuration: e.skipDelay
22
23
  }, {
23
- default: t(() => [
24
- s(l(p), null, {
25
- default: t(() => [
26
- s(l(u), {
24
+ default: l(() => [
25
+ s(t(p), null, {
26
+ default: l(() => [
27
+ s(t(u), {
28
+ as: e.as || "button",
27
29
  class: i(["flex items-center justify-center", [e.resize ? "w-full" : "", e.triggerClass]]),
28
30
  onClick: e.click
29
31
  }, {
30
- default: t(() => [
32
+ default: l(() => [
31
33
  o(a.$slots, "trigger")
32
34
  ]),
33
35
  _: 3
34
- }, 8, ["class", "onClick"]),
35
- s(l(g), { to: ".scalar-client" }, {
36
- default: t(() => [
37
- s(l(k), {
36
+ }, 8, ["as", "class", "onClick"]),
37
+ s(t(g), { to: ".scalar-client" }, {
38
+ default: l(() => [
39
+ s(t(k), {
38
40
  align: e.align,
39
41
  class: i(["scalar-app", e.class]),
40
42
  side: e.side,
41
43
  sideOffset: e.sideOffset
42
44
  }, {
43
- default: t(() => [
45
+ default: l(() => [
44
46
  o(a.$slots, "content")
45
47
  ]),
46
48
  _: 3
package/dist/index.d.ts CHANGED
@@ -14,9 +14,10 @@ import { ScalarPopover } from './components/ScalarPopover';
14
14
  import { ScalarSearchInput } from './components/ScalarSearchInput';
15
15
  import { ScalarSearchResultItem, ScalarSearchResultList } from './components/ScalarSearchResults';
16
16
  import { ScalarTextField } from './components/ScalarTextField';
17
+ import { ScalarToggle } from './components/ScalarToggle';
17
18
  import { ScalarTooltip } from './components/ScalarTooltip';
18
19
  import { ScalarVirtualText } from './components/ScalarVirtualText';
19
20
  import './tailwind/tailwind.css';
20
21
  export * from './helpers';
21
- export { ScalarButton, ScalarCodeBlock, ScalarCombobox, ScalarComboboxMultiselect, ScalarMarkdown, ScalarDropdown, ScalarDropdownDivider, ScalarDropdownItem, ScalarFloating, ScalarIcon, ScalarIconButton, ScalarListbox, ScalarLoading, ScalarContextMenu, ScalarModal, ScalarPopover, ScalarSearchInput, ScalarSearchResultItem, ScalarSearchResultList, ScalarTextField, ScalarTooltip, ScalarVirtualText, type Icon, type ScalarListboxOption, type ScalarComboboxOption, type ModalState, useLoadingState, useModal, };
22
+ export { ScalarButton, ScalarCodeBlock, ScalarCombobox, ScalarComboboxMultiselect, ScalarMarkdown, ScalarDropdown, ScalarDropdownDivider, ScalarDropdownItem, ScalarFloating, ScalarIcon, ScalarIconButton, ScalarListbox, ScalarLoading, ScalarContextMenu, ScalarModal, ScalarPopover, ScalarSearchInput, ScalarSearchResultItem, ScalarSearchResultList, ScalarTextField, ScalarToggle, ScalarTooltip, ScalarVirtualText, type Icon, type ScalarListboxOption, type ScalarComboboxOption, type ModalState, useLoadingState, useModal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