@scalar/components 0.14.7 → 0.14.8

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 (75) hide show
  1. package/README.md +7 -13
  2. package/dist/components/ScalarButton/ScalarButton.stories.d.ts.map +1 -1
  3. package/dist/components/ScalarCheckbox/ScalarCheckbox.vue.d.ts.map +1 -1
  4. package/dist/components/ScalarCodeBlock/ScalarCodeBlock.vue.d.ts.map +1 -1
  5. package/dist/components/ScalarCodeBlock/ScalarCodeBlock.vue.js +11 -14
  6. package/dist/components/ScalarCombobox/ScalarComboboxOption.vue.d.ts.map +1 -1
  7. package/dist/components/ScalarCombobox/ScalarComboboxOption.vue.js +13 -16
  8. package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.d.ts.map +1 -1
  9. package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.js +34 -38
  10. package/dist/components/ScalarFileUpload/ScalarFileUploadDropTarget.vue.d.ts.map +1 -1
  11. package/dist/components/ScalarFileUpload/ScalarFileUploadDropTarget.vue.js +7 -10
  12. package/dist/components/ScalarFileUpload/ScalarFileUploadError.vue.d.ts.map +1 -1
  13. package/dist/components/ScalarFileUpload/ScalarFileUploadError.vue.js +6 -9
  14. package/dist/components/ScalarFileUpload/ScalarFileUploadInputCompact.vue.d.ts.map +1 -1
  15. package/dist/components/ScalarFileUpload/ScalarFileUploadInputCompact.vue.js +10 -13
  16. package/dist/components/ScalarIcon/ScalarIcon.stories.d.ts +4 -52
  17. package/dist/components/ScalarIcon/ScalarIcon.stories.d.ts.map +1 -1
  18. package/dist/components/ScalarIcon/ScalarIcon.vue.d.ts +5 -69
  19. package/dist/components/ScalarIcon/ScalarIcon.vue.d.ts.map +1 -1
  20. package/dist/components/ScalarIcon/ScalarIcon.vue.js +2 -2
  21. package/dist/components/ScalarIcon/ScalarIcon.vue2.js +18 -32
  22. package/dist/components/ScalarIcon/ScalarIconLegacyAdapter.test.d.ts +2 -0
  23. package/dist/components/ScalarIcon/ScalarIconLegacyAdapter.test.d.ts.map +1 -0
  24. package/dist/components/ScalarIcon/ScalarIconLegacyAdapter.vue.d.ts +18 -0
  25. package/dist/components/ScalarIcon/ScalarIconLegacyAdapter.vue.d.ts.map +1 -0
  26. package/dist/components/ScalarIcon/ScalarIconLegacyAdapter.vue.js +28 -0
  27. package/dist/components/ScalarIcon/ScalarIconLegacyAdapter.vue2.js +4 -0
  28. package/dist/components/ScalarIcon/index.d.ts +1 -0
  29. package/dist/components/ScalarIcon/index.d.ts.map +1 -1
  30. package/dist/components/ScalarIcon/types.d.ts +19 -0
  31. package/dist/components/ScalarIcon/types.d.ts.map +1 -0
  32. package/dist/components/ScalarIcon/variants.d.ts +61 -0
  33. package/dist/components/ScalarIcon/variants.d.ts.map +1 -0
  34. package/dist/components/ScalarIcon/variants.js +21 -0
  35. package/dist/components/ScalarIconButton/ScalarIconButton.stories.d.ts +2 -0
  36. package/dist/components/ScalarIconButton/ScalarIconButton.stories.d.ts.map +1 -1
  37. package/dist/components/ScalarIconButton/ScalarIconButton.vue.d.ts +2 -0
  38. package/dist/components/ScalarIconButton/ScalarIconButton.vue.d.ts.map +1 -1
  39. package/dist/components/ScalarIconButton/ScalarIconButton.vue.js +15 -13
  40. package/dist/components/ScalarListbox/ScalarListbox.stories.d.ts.map +1 -1
  41. package/dist/components/ScalarListbox/ScalarListboxCheckbox.vue.d.ts.map +1 -1
  42. package/dist/components/ScalarListbox/ScalarListboxCheckbox.vue.js +5 -6
  43. package/dist/components/ScalarMenu/ScalarMenu.stories.d.ts.map +1 -1
  44. package/dist/components/ScalarMenu/ScalarMenuButton.vue.d.ts.map +1 -1
  45. package/dist/components/ScalarMenu/ScalarMenuButton.vue.js +17 -17
  46. package/dist/components/ScalarMenu/ScalarMenuLink.vue.d.ts +1 -1
  47. package/dist/components/ScalarMenu/ScalarMenuLink.vue.d.ts.map +1 -1
  48. package/dist/components/ScalarMenu/ScalarMenuLink.vue.js +13 -10
  49. package/dist/components/ScalarMenu/ScalarMenuProduct.vue.d.ts +1 -1
  50. package/dist/components/ScalarMenu/ScalarMenuProduct.vue.d.ts.map +1 -1
  51. package/dist/components/ScalarMenu/ScalarMenuProducts.vue.d.ts.map +1 -1
  52. package/dist/components/ScalarMenu/ScalarMenuProducts.vue.js +27 -26
  53. package/dist/components/ScalarMenu/ScalarMenuResources.vue.d.ts.map +1 -1
  54. package/dist/components/ScalarMenu/ScalarMenuResources.vue.js +18 -17
  55. package/dist/components/ScalarMenu/ScalarMenuTeamPicker.vue.d.ts.map +1 -1
  56. package/dist/components/ScalarMenu/ScalarMenuTeamPicker.vue.js +23 -25
  57. package/dist/components/ScalarMenu/ScalarMenuTeamProfile.vue.d.ts.map +1 -1
  58. package/dist/components/ScalarMenu/ScalarMenuTeamProfile.vue.js +9 -9
  59. package/dist/components/ScalarMenu/types.d.ts +1 -1
  60. package/dist/components/ScalarSearchResults/ScalarSearchResultItem.vue.d.ts +2 -1
  61. package/dist/components/ScalarSearchResults/ScalarSearchResultItem.vue.d.ts.map +1 -1
  62. package/dist/components/ScalarSearchResults/ScalarSearchResultItem.vue.js +16 -15
  63. package/dist/components/ScalarSearchResults/ScalarSearchResults.stories.d.ts +20 -3
  64. package/dist/components/ScalarSearchResults/ScalarSearchResults.stories.d.ts.map +1 -1
  65. package/dist/components/ScalarSidebar/ScalarSidebar.stories.d.ts.map +1 -1
  66. package/dist/components/ScalarSidebar/ScalarSidebarButton.vue.d.ts.map +1 -1
  67. package/dist/components/ScalarSidebar/ScalarSidebarButton.vue.js +24 -20
  68. package/dist/components/ScalarSidebar/ScalarSidebarGroupToggle.vue.d.ts +2 -2
  69. package/dist/components/ScalarSidebar/ScalarSidebarGroupToggle.vue.d.ts.map +1 -1
  70. package/dist/components/ScalarSidebar/ScalarSidebarGroupToggle.vue.js +19 -15
  71. package/dist/components/ScalarSidebar/types.d.ts +1 -1
  72. package/dist/components/ScalarSidebar/types.d.ts.map +1 -1
  73. package/dist/index.js +104 -102
  74. package/dist/style.css +1 -1
  75. package/package.json +6 -6
@@ -3,7 +3,7 @@ import type { Icon } from '../../index.js';
3
3
  type __VLS_Props = {
4
4
  is?: string | Component;
5
5
  selected?: boolean;
6
- icon: Icon;
6
+ icon: Icon | Component;
7
7
  };
8
8
  declare function __VLS_template(): {
9
9
  attrs: Partial<{}>;
@@ -1 +1 @@
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
+ {"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,GAAG,SAAS,CAAA;CACvB,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 +1 @@
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
+ {"version":3,"file":"ScalarMenuProducts.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuProducts.vue"],"names":[],"mappings":"AA8DA,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;;;;;;AA0IF,wBAOG"}
@@ -1,7 +1,8 @@
1
- import { defineComponent as p, createElementBlock as m, openBlock 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 "@scalar/use-hooks/useBindCx";
1
+ import { defineComponent as p, createElementBlock as m, openBlock as u, normalizeProps as h, guardReactiveProps as C, unref as s, createVNode as t, withCtx as n, createTextVNode as l } from "vue";
2
+ import { ScalarIconHouse as k, ScalarIconBook as b, ScalarIconArrowUpRight as B } from "@scalar/icons";
3
+ import { useBindCx as S } from "@scalar/use-hooks/useBindCx";
3
4
  import d from "./ScalarMenuProduct.vue.js";
4
- const g = /* @__PURE__ */ p({
5
+ const w = /* @__PURE__ */ p({
5
6
  inheritAttrs: !1,
6
7
  __name: "ScalarMenuProducts",
7
8
  props: {
@@ -9,48 +10,48 @@ const g = /* @__PURE__ */ p({
9
10
  hrefs: {}
10
11
  },
11
12
  emits: ["open"],
12
- setup(b) {
13
- const { cx: f } = k();
13
+ setup($) {
14
+ const { cx: c } = S();
14
15
  return (o, e) => {
15
- var n, i, a;
16
- return c(), m("div", u(h(C(f)("flex flex-col"))), [
17
- r(d, {
18
- href: ((n = o.hrefs) == null ? void 0 : n.dashboard) ?? "https://dashboard.scalar.com",
19
- icon: "House",
16
+ var i, a, f;
17
+ return u(), m("div", h(C(s(c)("flex flex-col"))), [
18
+ t(d, {
19
+ href: ((i = o.hrefs) == null ? void 0 : i.dashboard) ?? "https://dashboard.scalar.com",
20
+ icon: s(k),
20
21
  selected: o.selected === "dashboard",
21
- onClick: e[0] || (e[0] = (s) => o.$emit("open", s, "dashboard"))
22
+ onClick: e[0] || (e[0] = (r) => o.$emit("open", r, "dashboard"))
22
23
  }, {
23
- default: t(() => e[3] || (e[3] = [
24
+ default: n(() => e[3] || (e[3] = [
24
25
  l(" Dashboard ")
25
26
  ])),
26
27
  _: 1
27
- }, 8, ["href", "selected"]),
28
- r(d, {
29
- href: ((i = o.hrefs) == null ? void 0 : i.docs) ?? "https://docs.scalar.com",
30
- icon: "Page",
28
+ }, 8, ["href", "icon", "selected"]),
29
+ t(d, {
30
+ href: ((a = o.hrefs) == null ? void 0 : a.docs) ?? "https://docs.scalar.com",
31
+ icon: s(b),
31
32
  selected: o.selected === "docs",
32
- onClick: e[1] || (e[1] = (s) => o.$emit("open", s, "docs"))
33
+ onClick: e[1] || (e[1] = (r) => o.$emit("open", r, "docs"))
33
34
  }, {
34
- default: t(() => e[4] || (e[4] = [
35
+ default: n(() => e[4] || (e[4] = [
35
36
  l(" Docs ")
36
37
  ])),
37
38
  _: 1
38
- }, 8, ["href", "selected"]),
39
- r(d, {
40
- href: ((a = o.hrefs) == null ? void 0 : a.client) ?? "https://client.scalar.com",
41
- icon: "ExternalLink",
39
+ }, 8, ["href", "icon", "selected"]),
40
+ t(d, {
41
+ href: ((f = o.hrefs) == null ? void 0 : f.client) ?? "https://client.scalar.com",
42
+ icon: s(B),
42
43
  selected: o.selected === "client",
43
- onClick: e[2] || (e[2] = (s) => o.$emit("open", s, "client"))
44
+ onClick: e[2] || (e[2] = (r) => o.$emit("open", r, "client"))
44
45
  }, {
45
- default: t(() => e[5] || (e[5] = [
46
+ default: n(() => e[5] || (e[5] = [
46
47
  l(" Client ")
47
48
  ])),
48
49
  _: 1
49
- }, 8, ["href", "selected"])
50
+ }, 8, ["href", "icon", "selected"])
50
51
  ], 16);
51
52
  };
52
53
  }
53
54
  });
54
55
  export {
55
- g as default
56
+ w as default
56
57
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarMenuResources.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuResources.vue"],"names":[],"mappings":";AAsHA,wBAMG"}
1
+ {"version":3,"file":"ScalarMenuResources.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuResources.vue"],"names":[],"mappings":";AAuIA,wBAMG"}
@@ -1,49 +1,50 @@
1
- import { defineComponent as n, createBlock as l, openBlock as s, withCtx as o, createVNode as r, createTextVNode as e } from "vue";
1
+ import { defineComponent as i, createBlock as l, openBlock as c, withCtx as t, createVNode as r, unref as n, createTextVNode as e } from "vue";
2
+ import { ScalarIconEnvelopeSimple as s, ScalarIconFileText as p, ScalarIconBookOpenText as m } from "@scalar/icons";
2
3
  import a from "./ScalarMenuLink.vue.js";
3
- import i from "./ScalarMenuSection.vue.js";
4
- const d = /* @__PURE__ */ n({
4
+ import f from "./ScalarMenuSection.vue.js";
5
+ const y = /* @__PURE__ */ i({
5
6
  __name: "ScalarMenuResources",
6
- setup(m) {
7
- return (p, t) => (s(), l(i, null, {
8
- title: o(() => t[0] || (t[0] = [
7
+ setup(u) {
8
+ return (d, o) => (c(), l(f, null, {
9
+ title: t(() => o[0] || (o[0] = [
9
10
  e("Resources")
10
11
  ])),
11
- default: o(() => [
12
+ default: t(() => [
12
13
  r(a, {
13
14
  href: "mailto:support@scalar.com",
14
- icon: "Email",
15
+ icon: n(s),
15
16
  target: "_blank"
16
17
  }, {
17
- default: o(() => t[1] || (t[1] = [
18
+ default: t(() => o[1] || (o[1] = [
18
19
  e(" Sales & Support ")
19
20
  ])),
20
21
  _: 1
21
- }),
22
+ }, 8, ["icon"]),
22
23
  r(a, {
23
24
  href: "https://scalar.com/terms-and-conditions",
24
- icon: "DocsPage",
25
+ icon: n(p),
25
26
  target: "_blank"
26
27
  }, {
27
- default: o(() => t[2] || (t[2] = [
28
+ default: t(() => o[2] || (o[2] = [
28
29
  e(" Terms & Conditions ")
29
30
  ])),
30
31
  _: 1
31
- }),
32
+ }, 8, ["icon"]),
32
33
  r(a, {
33
34
  href: "https://scalar.com/privacy-policy",
34
- icon: "Changelog",
35
+ icon: n(m),
35
36
  target: "_blank"
36
37
  }, {
37
- default: o(() => t[3] || (t[3] = [
38
+ default: t(() => o[3] || (o[3] = [
38
39
  e(" Privacy Policy ")
39
40
  ])),
40
41
  _: 1
41
- })
42
+ }, 8, ["icon"])
42
43
  ]),
43
44
  _: 1
44
45
  }));
45
46
  }
46
47
  });
47
48
  export {
48
- d as default
49
+ y as default
49
50
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarMenuTeamPicker.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuTeamPicker.vue"],"names":[],"mappings":"AAkGA,OAAO,EAAkB,KAAK,oBAAoB,EAAE,MAAM,IAAI,CAAA;AAK9D,KAAK,WAAW,GAAG;IACjB,kCAAkC;IAClC,IAAI,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAA;IACvC,uCAAuC;IACvC,KAAK,EAAE,oBAAoB,EAAE,CAAA;CAC9B,CAAC;;;;;;;;AA0LF,wBAOG"}
1
+ {"version":3,"file":"ScalarMenuTeamPicker.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuTeamPicker.vue"],"names":[],"mappings":"AAwGA,OAAO,EAAkB,KAAK,oBAAoB,EAAE,MAAM,IAAI,CAAA;AAK9D,KAAK,WAAW,GAAG;IACjB,kCAAkC;IAClC,IAAI,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAA;IACvC,uCAAuC;IACvC,KAAK,EAAE,oBAAoB,EAAE,CAAA;CAC9B,CAAC;;;;;;;;AA8LF,wBAOG"}
@@ -1,12 +1,12 @@
1
- import { defineComponent as g, computed as b, createBlock as u, openBlock as n, unref as e, withCtx as r, createVNode as a, mergeProps as v, createElementVNode as x, createElementBlock as k, Fragment as C, renderList as S, createTextVNode as w } from "vue";
1
+ import { defineComponent as g, computed as _, createBlock as u, openBlock as n, unref as e, withCtx as r, createVNode as a, mergeProps as b, createElementVNode as S, createElementBlock as w, Fragment as x, renderList as v, createTextVNode as C } from "vue";
2
+ import { ScalarIconUserSwitch as k, ScalarIconCaretRight as V, ScalarIconPlus as $ } from "@scalar/icons";
2
3
  import { DropdownMenu as s } from "radix-vue/namespaced";
3
- import V from "./ScalarMenuTeamProfile.vue.js";
4
- import $ from "./ScalarMenuLink.vue.js";
5
- import B from "../ScalarDropdown/ScalarDropdownMenu.vue.js";
4
+ import I from "./ScalarMenuTeamProfile.vue.js";
5
+ import B from "./ScalarMenuLink.vue.js";
6
+ import P from "../ScalarDropdown/ScalarDropdownMenu.vue.js";
6
7
  import c from "../ScalarDropdown/ScalarDropdownButton.vue.js";
7
8
  import z from "../ScalarListbox/ScalarListboxCheckbox.vue.js";
8
- import p from "../ScalarIcon/ScalarIcon.vue.js";
9
- const M = /* @__PURE__ */ g({
9
+ const y = /* @__PURE__ */ g({
10
10
  inheritAttrs: !1,
11
11
  __name: "ScalarMenuTeamPicker",
12
12
  props: {
@@ -14,8 +14,8 @@ const M = /* @__PURE__ */ g({
14
14
  teams: {}
15
15
  },
16
16
  emits: ["update:team", "add"],
17
- setup(f, { emit: _ }) {
18
- const i = f, d = _, m = b({
17
+ setup(p, { emit: f }) {
18
+ const i = p, d = f, m = _({
19
19
  get: () => {
20
20
  var o;
21
21
  return (o = i.team) == null ? void 0 : o.id;
@@ -27,24 +27,23 @@ const M = /* @__PURE__ */ g({
27
27
  });
28
28
  return (o, t) => (n(), u(e(s).Sub, null, {
29
29
  default: r(() => [
30
- a(e($), v({
30
+ a(e(B), b({
31
31
  is: e(s).SubTrigger,
32
- icon: "UserSwitch"
32
+ icon: e(k)
33
33
  }, o.$attrs), {
34
34
  default: r(() => [
35
- t[2] || (t[2] = x("div", null, "Change team", -1)),
36
- a(e(p), {
37
- class: "ml-auto text-c-2 -mr-0.25",
38
- icon: "ChevronRight",
39
- size: "sm"
35
+ t[2] || (t[2] = S("div", null, "Change team", -1)),
36
+ a(e(V), {
37
+ class: "ml-auto text-c-2 -mr-0.25 size-3",
38
+ weight: "bold"
40
39
  })
41
40
  ]),
42
41
  _: 1
43
- }, 16, ["is"]),
42
+ }, 16, ["is", "icon"]),
44
43
  a(e(s).Portal, null, {
45
44
  default: r(() => [
46
45
  a(e(s).SubContent, {
47
- as: e(B),
46
+ as: e(P),
48
47
  class: "max-h-radix-popper z-context-plus",
49
48
  sideOffset: 3
50
49
  }, {
@@ -55,14 +54,14 @@ const M = /* @__PURE__ */ g({
55
54
  class: "contents"
56
55
  }, {
57
56
  default: r(() => [
58
- (n(!0), k(C, null, S(o.teams, (l) => (n(), u(e(s).RadioItem, {
57
+ (n(!0), w(x, null, v(o.teams, (l) => (n(), u(e(s).RadioItem, {
59
58
  key: l.id,
60
59
  as: e(c),
61
60
  class: "group/item",
62
61
  value: l.id
63
62
  }, {
64
63
  default: r(() => [
65
- a(V, {
64
+ a(I, {
66
65
  class: "-ml-0.75 flex-1 min-w-0",
67
66
  label: l.label,
68
67
  src: l.src
@@ -82,12 +81,11 @@ const M = /* @__PURE__ */ g({
82
81
  onClick: t[1] || (t[1] = (l) => d("add"))
83
82
  }, {
84
83
  default: r(() => [
85
- a(e(p), {
86
- class: "bg-b-3 -ml-0.75 rounded p-0.75 size-5 text-c-3",
87
- icon: "Add",
88
- thickness: "1.75"
84
+ a(e($), {
85
+ class: "bg-b-3 -ml-0.75 rounded p-1 size-5 text-c-3",
86
+ weight: "bold"
89
87
  }),
90
- t[3] || (t[3] = w(" Create new team "))
88
+ t[3] || (t[3] = C(" Create new team "))
91
89
  ]),
92
90
  _: 1
93
91
  }, 8, ["as"])
@@ -103,5 +101,5 @@ const M = /* @__PURE__ */ g({
103
101
  }
104
102
  });
105
103
  export {
106
- M as default
104
+ y as default
107
105
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarMenuTeamProfile.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuTeamProfile.vue"],"names":[],"mappings":"AA2CA,KAAK,WAAW,GAAG;IACjB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;;AA4FF,wBAMG"}
1
+ {"version":3,"file":"ScalarMenuTeamProfile.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuTeamProfile.vue"],"names":[],"mappings":"AA+CA,KAAK,WAAW,GAAG;IACjB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;;AA6FF,wBAMG"}
@@ -1,5 +1,5 @@
1
- import { defineComponent as n, createElementBlock as t, openBlock as r, normalizeProps as a, guardReactiveProps as i, unref as s, createCommentVNode as c, createBlock as m, Fragment as d, createTextVNode as u, toDisplayString as l } from "vue";
2
- import p from "../ScalarIcon/ScalarIcon.vue.js";
1
+ import { defineComponent as a, createElementBlock as t, openBlock as r, normalizeProps as n, guardReactiveProps as i, unref as s, createCommentVNode as c, createBlock as d, Fragment as m, createTextVNode as u, toDisplayString as l } from "vue";
2
+ import { ScalarIconUsers as p } from "@scalar/icons";
3
3
  import { useBindCx as f } from "@scalar/use-hooks/useBindCx";
4
4
  const b = ["src"], h = {
5
5
  key: 1,
@@ -8,7 +8,7 @@ const b = ["src"], h = {
8
8
  }, g = {
9
9
  key: 2,
10
10
  class: "flex-1 truncate"
11
- }, z = /* @__PURE__ */ n({
11
+ }, B = /* @__PURE__ */ a({
12
12
  inheritAttrs: !1,
13
13
  __name: "ScalarMenuTeamProfile",
14
14
  props: {
@@ -17,19 +17,19 @@ const b = ["src"], h = {
17
17
  },
18
18
  setup(k) {
19
19
  const { cx: o } = f();
20
- return (e, y) => (r(), t("div", a(i(s(o)("flex h-full items-center gap-1"))), [
20
+ return (e, y) => (r(), t("div", n(i(s(o)("flex h-full items-center gap-1"))), [
21
21
  e.src ? (r(), t("img", {
22
22
  key: 0,
23
23
  class: "size-5 rounded",
24
24
  role: "presentation",
25
25
  src: e.src
26
26
  }, null, 8, b)) : (r(), t("div", h, [
27
- e.label && e.label.length > 0 ? (r(), t(d, { key: 0 }, [
27
+ e.label && e.label.length > 0 ? (r(), t(m, { key: 0 }, [
28
28
  u(l(e.label[0]), 1)
29
- ], 64)) : (r(), m(s(p), {
29
+ ], 64)) : (r(), d(s(p), {
30
30
  key: 1,
31
- icon: "Users",
32
- size: "xs"
31
+ class: "size-3",
32
+ weight: "bold"
33
33
  }))
34
34
  ])),
35
35
  e.label && e.label.length > 0 ? (r(), t("div", g, l(e.label), 1)) : c("", !0)
@@ -37,5 +37,5 @@ const b = ["src"], h = {
37
37
  }
38
38
  });
39
39
  export {
40
- z as default
40
+ B as default
41
41
  };
@@ -14,7 +14,7 @@ export type ScalarMenuTeamOption = ScalarListboxOption & {
14
14
  export type ScalarMenuButtonSlots = {
15
15
  /**
16
16
  * Overrides the logo in the menu button
17
- * @default <ScalarIcon icon="Logo" />
17
+ * @default The Scalar logo
18
18
  * @example <img class="h-full aspect-square bg-b-3 rounded" :src="..." />
19
19
  */
20
20
  logo?: () => any;
@@ -1,6 +1,7 @@
1
+ import type { Component } from 'vue';
1
2
  import { type Icon } from '../ScalarIcon';
2
3
  type __VLS_Props = {
3
- icon?: Icon;
4
+ icon?: Icon | Component;
4
5
  selected?: boolean;
5
6
  };
6
7
  declare function __VLS_template(): {
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarSearchResultItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSearchResults/ScalarSearchResultItem.vue"],"names":[],"mappings":"AA6DA,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
+ {"version":3,"file":"ScalarSearchResultItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSearchResults/ScalarSearchResultItem.vue"],"names":[],"mappings":"AA8DA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAEpC,OAAO,EAAE,KAAK,IAAI,EAA2B,MAAM,eAAe,CAAA;AAIlE,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,CAAA;IACvB,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,31 +1,31 @@
1
- import { defineComponent as a, createElementBlock as o, openBlock as t, mergeProps as d, unref as l, createCommentVNode as s, createElementVNode as n, renderSlot as r, createBlock as m } from "vue";
1
+ import { defineComponent as c, createElementBlock as o, openBlock as t, mergeProps as a, unref as l, createCommentVNode as s, createElementVNode as n, renderSlot as r, createBlock as m } from "vue";
2
2
  import { useBindCx as p } from "@scalar/use-hooks/useBindCx";
3
- import u from "../ScalarIcon/ScalarIcon.vue.js";
3
+ import u from "../ScalarIcon/ScalarIconLegacyAdapter.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
- }, x = { class: "flex min-w-0 flex-1 flex-col gap-0.75" }, k = { class: "flex items-center gap-1" }, _ = { class: "flex-1 truncate zoomed:!whitespace-normal break-words text-sm font-medium" }, g = {
7
+ }, _ = { class: "flex min-w-0 flex-1 flex-col gap-0.75" }, x = { class: "flex items-center gap-1" }, g = { class: "flex-1 truncate zoomed:!whitespace-normal break-words text-sm font-medium" }, k = {
8
8
  key: 0,
9
9
  class: "text-sm text-c-2"
10
- }, v = {
10
+ }, b = {
11
11
  key: 0,
12
12
  class: "truncate zoomed:!whitespace-normal break-words text-sm text-c-2"
13
- }, B = /* @__PURE__ */ a({
13
+ }, B = /* @__PURE__ */ c({
14
14
  inheritAttrs: !1,
15
15
  __name: "ScalarSearchResultItem",
16
16
  props: {
17
17
  icon: {},
18
18
  selected: { type: Boolean }
19
19
  },
20
- setup(b) {
21
- const { cx: c } = p();
22
- return (e, i) => (t(), o("a", d(
20
+ setup(v) {
21
+ const { cx: d } = p();
22
+ return (e, i) => (t(), o("a", a(
23
23
  {
24
24
  "aria-selected": e.selected,
25
25
  role: "option",
26
26
  tabindex: "-1"
27
27
  },
28
- l(c)(
28
+ l(d)(
29
29
  "group flex cursor-pointer gap-2.5 rounded px-3 py-1.5 no-underline hover:bg-b-2",
30
30
  { "bg-b-2": e.selected }
31
31
  )
@@ -35,21 +35,22 @@ const f = ["aria-selected"], h = {
35
35
  e.icon ? (t(), m(l(u), {
36
36
  key: 0,
37
37
  icon: e.icon,
38
- size: "sm"
38
+ size: "sm",
39
+ weight: "bold"
39
40
  }, null, 8, ["icon"])) : s("", !0)
40
41
  ]),
41
42
  i[0] || (i[0] = n("span", null, " ", -1))
42
43
  ])) : s("", !0),
43
- n("div", x, [
44
- n("div", k, [
45
- n("div", _, [
44
+ n("div", _, [
45
+ n("div", x, [
46
+ n("div", g, [
46
47
  r(e.$slots, "default")
47
48
  ]),
48
- e.$slots.addon ? (t(), o("div", g, [
49
+ e.$slots.addon ? (t(), o("div", k, [
49
50
  r(e.$slots, "addon")
50
51
  ])) : s("", !0)
51
52
  ]),
52
- e.$slots.description ? (t(), o("div", v, [
53
+ e.$slots.description ? (t(), o("div", b, [
53
54
  r(e.$slots, "description")
54
55
  ])) : s("", !0)
55
56
  ])
@@ -77,7 +77,7 @@ declare const meta: {
77
77
  });
78
78
  ScalarSearchResultItem: {
79
79
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
80
- icon?: import("../ScalarIcon/index.js").Icon;
80
+ icon?: import("../ScalarIcon/index.js").Icon | import("vue").Component;
81
81
  selected?: boolean;
82
82
  }> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
83
83
  P: {};
@@ -87,14 +87,14 @@ declare const meta: {
87
87
  M: {};
88
88
  Defaults: {};
89
89
  }, Readonly<{
90
- icon?: import("../ScalarIcon/index.js").Icon;
90
+ icon?: import("../ScalarIcon/index.js").Icon | import("vue").Component;
91
91
  selected?: boolean;
92
92
  }> & Readonly<{}>, {}, {}, {}, {}, {}>;
93
93
  __isFragment?: never;
94
94
  __isTeleport?: never;
95
95
  __isSuspense?: never;
96
96
  } & import("vue").ComponentOptionsBase<Readonly<{
97
- icon?: import("../ScalarIcon/index.js").Icon;
97
+ icon?: import("../ScalarIcon/index.js").Icon | import("vue").Component;
98
98
  selected?: boolean;
99
99
  }> & 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 () => {
100
100
  $slots: {
@@ -130,6 +130,23 @@ declare const meta: {
130
130
  default?(_: {}): any;
131
131
  };
132
132
  })>;
133
+ ScalarIconMagnifyingGlass: {
134
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("@scalar/icons/types").ScalarIconProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, SVGSVGElement, import("vue").ComponentProvideOptions, {
135
+ P: {};
136
+ B: {};
137
+ D: {};
138
+ C: {};
139
+ M: {};
140
+ Defaults: {};
141
+ }, Readonly<import("@scalar/icons/types").ScalarIconProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
142
+ __isFragment?: never;
143
+ __isTeleport?: never;
144
+ __isSuspense?: never;
145
+ } & import("vue").ComponentOptionsBase<Readonly<import("@scalar/icons/types").ScalarIconProps> & 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 () => {
146
+ $slots: {
147
+ default?(_: {}): any;
148
+ };
149
+ });
133
150
  };
134
151
  template: string;
135
152
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarSearchResults.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSearchResults/ScalarSearchResults.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAKrD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BqC,CAAA;AAE/C,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,IAAI,EAAE,KAAU,CAAA;AAE7B,eAAO,MAAM,SAAS,EAAE,KAQvB,CAAA"}
1
+ {"version":3,"file":"ScalarSearchResults.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSearchResults/ScalarSearchResults.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAMrD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BqC,CAAA;AAE/C,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,IAAI,EAAE,KAAU,CAAA;AAE7B,eAAO,MAAM,SAAS,EAAE,KAQvB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarSidebar.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSidebar/ScalarSidebar.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAUrD,QAAA,MAAM,IAAI,EAAE,IAsBX,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,IAAI,EAAE,KAAU,CAAA;AAE7B,eAAO,MAAM,YAAY,EAAE,KAqC1B,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KAqF9B,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAkBxB,CAAA"}
1
+ {"version":3,"file":"ScalarSidebar.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSidebar/ScalarSidebar.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AASrD,QAAA,MAAM,IAAI,EAAE,IA8BX,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,IAAI,EAAE,KAAU,CAAA;AAE7B,eAAO,MAAM,YAAY,EAAE,KAqC1B,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KAqF9B,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAkBxB,CAAA"}
@@ -1 +1 @@
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
+ {"version":3,"file":"ScalarSidebarButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSidebar/ScalarSidebarButton.vue"],"names":[],"mappings":"AAwFA,OAAO,KAAK,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAI7E;;;;;;;;;;;;;;;;;;;;;GAqBG;;AACH,wBA8HC;AAWD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,12 +1,12 @@
1
- import { defineComponent as r, createBlock as c, openBlock as s, resolveDynamicComponent as u, mergeProps as f, unref as o, withCtx as p, renderSlot as t, createElementVNode as m, createElementBlock as n, createCommentVNode as a, createVNode as l } from "vue";
1
+ import { defineComponent as r, createBlock as a, openBlock as t, resolveDynamicComponent as c, mergeProps as u, unref as o, withCtx as f, renderSlot as s, createElementVNode as m, createElementBlock as l, createCommentVNode as n, createVNode as p } from "vue";
2
2
  import { cva as b, useBindCx as v } from "@scalar/use-hooks/useBindCx";
3
3
  import y from "./ScalarSidebarIndent.vue.js";
4
- import h from "../ScalarIcon/ScalarIcon.vue.js";
5
- const B = { class: "flex items-center gap-1 flex-1 py-2 leading-5" }, g = {
4
+ import h from "../ScalarIcon/ScalarIconLegacyAdapter.vue.js";
5
+ const g = { class: "flex items-center gap-1 flex-1 py-2 leading-5" }, B = {
6
6
  key: 0,
7
7
  class: "size-3.5"
8
- }, S = { key: 0 }, $ = {}, I = /* @__PURE__ */ r({
9
- ...$,
8
+ }, $ = { key: 0 }, k = {}, E = /* @__PURE__ */ r({
9
+ ...k,
10
10
  inheritAttrs: !1,
11
11
  __name: "ScalarSidebarButton",
12
12
  props: {
@@ -16,7 +16,7 @@ const B = { class: "flex items-center gap-1 flex-1 py-2 leading-5" }, g = {
16
16
  disabled: { type: Boolean },
17
17
  indent: { default: 0 }
18
18
  },
19
- setup(k) {
19
+ setup(C) {
20
20
  const d = b({
21
21
  base: ["group/button flex rounded px-1.5 font-medium text-c-2 no-underline"],
22
22
  variants: {
@@ -28,34 +28,38 @@ const B = { class: "flex items-center gap-1 flex-1 py-2 leading-5" }, g = {
28
28
  ],
29
29
  defaultVariants: { selected: !1, disabled: !1 }
30
30
  }), { cx: i } = v();
31
- return (e, C) => (s(), c(u(e.is), f({
31
+ return (e, S) => (t(), a(c(e.is), u({
32
32
  "aria-level": e.indent,
33
33
  "aria-selected": e.selected,
34
34
  type: e.is === "button" ? "button" : void 0
35
35
  }, o(i)(o(d)({ selected: e.selected, disabled: e.disabled }))), {
36
- default: p(() => [
37
- t(e.$slots, "indent", {}, () => [
38
- l(y, {
36
+ default: f(() => [
37
+ s(e.$slots, "indent", {}, () => [
38
+ p(y, {
39
39
  indent: e.indent,
40
40
  selected: e.selected
41
41
  }, null, 8, ["indent", "selected"])
42
42
  ]),
43
- m("div", B, [
44
- e.icon || e.$slots.icon ? (s(), n("div", g, [
45
- t(e.$slots, "icon", {}, () => [
46
- l(o(h), { icon: e.icon }, null, 8, ["icon"])
43
+ m("div", g, [
44
+ e.icon || e.$slots.icon ? (t(), l("div", B, [
45
+ s(e.$slots, "icon", {}, () => [
46
+ e.icon ? (t(), a(o(h), {
47
+ key: 0,
48
+ icon: e.icon,
49
+ weight: "bold"
50
+ }, null, 8, ["icon"])) : n("", !0)
47
51
  ])
48
- ])) : a("", !0),
49
- t(e.$slots, "default")
52
+ ])) : n("", !0),
53
+ s(e.$slots, "default")
50
54
  ]),
51
- e.$slots.aside ? (s(), n("div", S, [
52
- t(e.$slots, "aside")
53
- ])) : a("", !0)
55
+ e.$slots.aside ? (t(), l("div", $, [
56
+ s(e.$slots, "aside")
57
+ ])) : n("", !0)
54
58
  ]),
55
59
  _: 3
56
60
  }, 16, ["aria-level", "aria-selected", "type"]));
57
61
  }
58
62
  });
59
63
  export {
60
- I as default
64
+ E as default
61
65
  };
@@ -14,14 +14,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
14
14
  /** Whether or not the toggle is open */
15
15
  open?: boolean;
16
16
  /** Overrides the icon */
17
- icon?: Icon;
17
+ icon?: Icon | Component;
18
18
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
19
19
  /** Override the element tag */
20
20
  is?: Component | string;
21
21
  /** Whether or not the toggle is open */
22
22
  open?: boolean;
23
23
  /** Overrides the icon */
24
- icon?: Icon;
24
+ icon?: Icon | Component;
25
25
  }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, Readonly<{
26
26
  /** Override the toggle icon */
27
27
  default?: (props: {
@@ -1 +1 @@
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
+ {"version":3,"file":"ScalarSidebarGroupToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSidebar/ScalarSidebarGroupToggle.vue"],"names":[],"mappings":"AAuEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAEpC,OAAO,EAAE,KAAK,IAAI,EAA2B,MAAM,eAAe,CAAA;AAIlE;;;;;;;GAOG;;IAID,+BAA+B;SAC1B,SAAS,GAAG,MAAM;IACvB,wCAAwC;WACjC,OAAO;IACd,yBAAyB;WAClB,IAAI,GAAG,SAAS;;IALvB,+BAA+B;SAC1B,SAAS,GAAG,MAAM;IACvB,wCAAwC;WACjC,OAAO;IACd,yBAAyB;WAClB,IAAI,GAAG,SAAS;;IAUvB,+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"}