@scalar/components 0.16.12 → 0.16.13

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 (99) hide show
  1. package/dist/components/ScalarButton/ScalarButton.vue.d.ts +1 -1
  2. package/dist/components/ScalarButton/ScalarButton.vue.d.ts.map +1 -1
  3. package/dist/components/ScalarButton/types.d.ts +1 -1
  4. package/dist/components/ScalarButton/types.d.ts.map +1 -1
  5. package/dist/components/ScalarCard/index.d.ts +1 -1
  6. package/dist/components/ScalarCard/index.d.ts.map +1 -1
  7. package/dist/components/ScalarCard/useCardHeading.d.ts +1 -5
  8. package/dist/components/ScalarCard/useCardHeading.d.ts.map +1 -1
  9. package/dist/components/ScalarCard/useCardHeading.js +0 -1
  10. package/dist/components/ScalarCheckboxInput/ScalarCheckboxGroup.vue.js +5 -5
  11. package/dist/components/ScalarCheckboxInput/ScalarCheckboxInput.vue.js +4 -4
  12. package/dist/components/ScalarCheckboxInput/ScalarCheckboxRadioGroup.vue.js +5 -5
  13. package/dist/components/ScalarCheckboxInput/index.d.ts +2 -2
  14. package/dist/components/ScalarCheckboxInput/index.d.ts.map +1 -1
  15. package/dist/components/ScalarCodeBlock/ScalarCodeBlockCopy.vue.js +2 -2
  16. package/dist/components/ScalarCodeBlock/ScalarCodeBlockCopy.vue2.js +5 -5
  17. package/dist/components/ScalarCombobox/ScalarCombobox.vue.js +4 -4
  18. package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.d.ts.map +1 -1
  19. package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.js +43 -41
  20. package/dist/components/ScalarCombobox/index.d.ts.map +1 -1
  21. package/dist/components/ScalarCombobox/types.d.ts +0 -2
  22. package/dist/components/ScalarCombobox/types.d.ts.map +1 -1
  23. package/dist/components/ScalarCombobox/types.js +0 -1
  24. package/dist/components/ScalarDropdown/ScalarDropdown.vue.d.ts.map +1 -1
  25. package/dist/components/ScalarDropdown/ScalarDropdown.vue.js +15 -15
  26. package/dist/components/ScalarDropdown/ScalarDropdownButton.vue.js +2 -2
  27. package/dist/components/ScalarDropdown/ScalarDropdownButton.vue2.js +1 -1
  28. package/dist/components/ScalarDropdown/ScalarDropdownItem.vue.js +2 -2
  29. package/dist/components/ScalarDropdown/ScalarDropdownItem.vue2.js +9 -9
  30. package/dist/components/ScalarDropdown/index.d.ts +1 -1
  31. package/dist/components/ScalarDropdown/index.d.ts.map +1 -1
  32. package/dist/components/ScalarFileUpload/index.d.ts +3 -3
  33. package/dist/components/ScalarFileUpload/index.d.ts.map +1 -1
  34. package/dist/components/ScalarFileUpload/types.d.ts +2 -1
  35. package/dist/components/ScalarFileUpload/types.d.ts.map +1 -1
  36. package/dist/components/ScalarFloating/index.d.ts.map +1 -1
  37. package/dist/components/ScalarForm/useFormGroups.d.ts +0 -5
  38. package/dist/components/ScalarForm/useFormGroups.d.ts.map +1 -1
  39. package/dist/components/ScalarForm/useFormGroups.js +3 -4
  40. package/dist/components/ScalarHeader/ScalarHeaderButton.vue.d.ts.map +1 -1
  41. package/dist/components/ScalarHotkey/formatHotkey.d.ts +0 -2
  42. package/dist/components/ScalarHotkey/formatHotkey.d.ts.map +1 -1
  43. package/dist/components/ScalarHotkey/formatHotkey.js +1 -2
  44. package/dist/components/ScalarHotkey/index.d.ts +1 -1
  45. package/dist/components/ScalarHotkey/index.d.ts.map +1 -1
  46. package/dist/components/ScalarIcon/types.d.ts +1 -1
  47. package/dist/components/ScalarIcon/types.d.ts.map +1 -1
  48. package/dist/components/ScalarIconButton/types.d.ts +2 -2
  49. package/dist/components/ScalarIconButton/types.d.ts.map +1 -1
  50. package/dist/components/ScalarListbox/ScalarListboxInput.vue.d.ts +2 -2
  51. package/dist/components/ScalarListbox/ScalarListboxInput.vue.js +8 -8
  52. package/dist/components/ScalarListbox/ScalarListboxItem.vue.js +3 -3
  53. package/dist/components/ScalarLoading/ScalarLoading.vue.d.ts.map +1 -1
  54. package/dist/components/ScalarLoading/ScalarLoading.vue.js +2 -2
  55. package/dist/components/ScalarLoading/ScalarLoading.vue2.js +8 -8
  56. package/dist/components/ScalarLoading/types.d.ts +2 -1
  57. package/dist/components/ScalarLoading/types.d.ts.map +1 -1
  58. package/dist/components/ScalarLoading/useLoadingState.d.ts +12 -3
  59. package/dist/components/ScalarLoading/useLoadingState.d.ts.map +1 -1
  60. package/dist/components/ScalarMenu/ScalarMenuButton.vue.d.ts +1 -1
  61. package/dist/components/ScalarMenu/ScalarMenuButton.vue.d.ts.map +1 -1
  62. package/dist/components/ScalarMenu/ScalarMenuProduct.vue.d.ts.map +1 -1
  63. package/dist/components/ScalarMenu/ScalarMenuWorkspacePicker.vue.d.ts +1 -1
  64. package/dist/components/ScalarMenu/ScalarMenuWorkspacePicker.vue.d.ts.map +1 -1
  65. package/dist/components/ScalarPopover/index.d.ts.map +1 -1
  66. package/dist/components/ScalarSearchInput/ScalarSearchInput.vue.js +3 -3
  67. package/dist/components/ScalarSearchResults/index.d.ts +1 -1
  68. package/dist/components/ScalarSidebar/ScalarSidebarButton.vue.d.ts.map +1 -1
  69. package/dist/components/ScalarSidebar/ScalarSidebarButton.vue.js +22 -15
  70. package/dist/components/ScalarSidebar/ScalarSidebarGroup.vue.d.ts.map +1 -1
  71. package/dist/components/ScalarSidebar/ScalarSidebarGroup.vue.js +45 -42
  72. package/dist/components/ScalarSidebar/ScalarSidebarNestedItems.vue.d.ts +2 -0
  73. package/dist/components/ScalarSidebar/ScalarSidebarNestedItems.vue.d.ts.map +1 -1
  74. package/dist/components/ScalarSidebar/ScalarSidebarNestedItems.vue.js +58 -56
  75. package/dist/components/ScalarSidebar/ScalarSidebarSearchButton.vue.d.ts +1 -4
  76. package/dist/components/ScalarSidebar/ScalarSidebarSearchButton.vue.d.ts.map +1 -1
  77. package/dist/components/ScalarSidebar/ScalarSidebarSearchButton.vue.js +5 -8
  78. package/dist/components/ScalarSidebar/ScalarSidebarSearchInput.vue.js +4 -4
  79. package/dist/components/ScalarSidebar/useSidebarNestedItems.d.ts +1 -7
  80. package/dist/components/ScalarSidebar/useSidebarNestedItems.d.ts.map +1 -1
  81. package/dist/components/ScalarSidebar/useSidebarNestedItems.js +0 -1
  82. package/dist/components/ScalarTeleport/index.d.ts +1 -1
  83. package/dist/components/ScalarTeleport/index.d.ts.map +1 -1
  84. package/dist/components/ScalarTextInput/ScalarTextInput.vue.js +3 -3
  85. package/dist/components/ScalarToggle/ScalarToggleGroup.vue.js +2 -2
  86. package/dist/components/ScalarTooltip/index.d.ts +2 -2
  87. package/dist/components/ScalarTooltip/index.d.ts.map +1 -1
  88. package/dist/components/ScalarTooltip/types.d.ts +2 -1
  89. package/dist/components/ScalarTooltip/types.d.ts.map +1 -1
  90. package/dist/components/ScalarTooltip/useTooltip.d.ts +0 -6
  91. package/dist/components/ScalarTooltip/useTooltip.d.ts.map +1 -1
  92. package/dist/components/ScalarTooltip/useTooltip.js +0 -1
  93. package/dist/helpers/index.d.ts +1 -1
  94. package/dist/helpers/index.d.ts.map +1 -1
  95. package/dist/index.d.ts +2 -0
  96. package/dist/index.d.ts.map +1 -1
  97. package/dist/index.js +36 -36
  98. package/dist/style.css +1 -1
  99. package/package.json +13 -19
@@ -1,17 +1,17 @@
1
- import { defineComponent as g, mergeModels as u, useModel as h, createBlock as k, openBlock as i, resolveDynamicComponent as $, normalizeProps as B, guardReactiveProps as C, unref as n, withCtx as t, createElementVNode as S, createElementBlock as r, createCommentVNode as p, renderSlot as l, createVNode as d, createSlots as N, normalizeStyle as V, createTextVNode as x, toDisplayString as z } from "vue";
2
- import { useBindCx as M } from "@scalar/use-hooks/useBindCx";
3
- import D from "./ScalarSidebarButton.vue.js";
1
+ import { defineComponent as g, mergeModels as u, useModel as h, createBlock as k, openBlock as i, resolveDynamicComponent as $, normalizeProps as B, guardReactiveProps as C, unref as n, withCtx as t, createElementVNode as S, createElementBlock as d, createCommentVNode as p, renderSlot as l, createVNode as r, normalizeStyle as x, normalizeClass as z, createTextVNode as N, toDisplayString as V, createSlots as M } from "vue";
2
+ import { useBindCx as D } from "@scalar/use-hooks/useBindCx";
3
+ import E from "./ScalarSidebarButton.vue.js";
4
4
  import v from "./ScalarSidebarGroupToggle.vue.js";
5
- import E from "./ScalarSidebarIndent.vue.js";
6
- import { useSidebarGroups as G } from "./useSidebarGroups.js";
7
- const O = { class: "group/group-button relative flex flex-col" }, P = {
5
+ import G from "./ScalarSidebarIndent.vue.js";
6
+ import { useSidebarGroups as O } from "./useSidebarGroups.js";
7
+ const P = { class: "group/group-button relative flex flex-col leading-5" }, T = ["aria-expanded"], j = {
8
8
  key: 0,
9
9
  class: "size-4"
10
- }, T = ["aria-expanded"], j = {
10
+ }, w = {
11
11
  key: 0,
12
12
  class: "group/items flex flex-col gap-px"
13
- }, w = {}, K = /* @__PURE__ */ g({
14
- ...w,
13
+ }, A = {}, L = /* @__PURE__ */ g({
14
+ ...A,
15
15
  inheritAttrs: !1,
16
16
  __name: "ScalarSidebarGroup",
17
17
  props: /* @__PURE__ */ u({
@@ -29,20 +29,44 @@ const O = { class: "group/group-button relative flex flex-col" }, P = {
29
29
  }),
30
30
  emits: /* @__PURE__ */ u(["click", "toggle"], ["update:open"]),
31
31
  setup(a, { emit: m }) {
32
- const c = m, o = h(a, "open"), { level: s } = G({ increment: !0 }), { cx: f } = M(), b = (e) => {
32
+ const c = m, o = h(a, "open"), { level: s } = O({ increment: !0 }), { cx: f } = D(), b = (e) => {
33
33
  c("click", e), !a.controlled && !a.discrete && (o.value = !o.value);
34
34
  }, y = (e) => {
35
35
  c("toggle", e), !a.controlled && a.discrete && (o.value = !o.value);
36
36
  };
37
- return (e, A) => (i(), k($(e.is), B(C(n(f)("group/item flex flex-col gap-px"))), {
37
+ return (e, F) => (i(), k($(e.is), B(C(n(f)("group/item flex flex-col gap-px"))), {
38
38
  default: t(() => [
39
- S("div", O, [
39
+ S("div", P, [
40
40
  l(e.$slots, "before", { open: o.value }),
41
41
  l(e.$slots, "button", {
42
42
  level: n(s),
43
43
  open: o.value
44
44
  }, () => [
45
- d(D, {
45
+ e.discrete ? (i(), d("button", {
46
+ key: 0,
47
+ type: "button",
48
+ "aria-expanded": o.value,
49
+ class: z([
50
+ "absolute top-[1lh] -translate-y-1/2 p-0.75 rounded left-[calc(4px+var(--scalar-sidebar-indent)*var(--scalar-sidebar-level))]",
51
+ e.selected ? "text-sidebar-c-1 hover:bg-sidebar-b-1 hover:text-sidebar-c-1" : "text-c-3 hover:bg-sidebar-b-hover hover:text-sidebar-c-hover"
52
+ ]),
53
+ style: x({ "--scalar-sidebar-level": n(s) }),
54
+ onClick: y
55
+ }, [
56
+ l(e.$slots, "icon", { open: o.value }, () => [
57
+ r(v, {
58
+ icon: e.icon,
59
+ open: o.value
60
+ }, {
61
+ label: t(() => [
62
+ N(V(o.value ? "Close" : "Open") + " ", 1),
63
+ l(e.$slots, "default", { open: o.value })
64
+ ]),
65
+ _: 3
66
+ }, 8, ["icon", "open"])
67
+ ])
68
+ ], 14, T)) : p("", !0),
69
+ r(E, {
46
70
  is: "button",
47
71
  active: e.active,
48
72
  "aria-expanded": o.value,
@@ -50,22 +74,22 @@ const O = { class: "group/group-button relative flex flex-col" }, P = {
50
74
  indent: n(s),
51
75
  selected: e.selected,
52
76
  onClick: b
53
- }, N({
77
+ }, M({
54
78
  indent: t(() => [
55
- d(E, {
79
+ r(G, {
56
80
  class: "mr-0 -my-2",
57
81
  indent: n(s),
58
82
  selected: e.selected
59
83
  }, null, 8, ["indent", "selected"])
60
84
  ]),
61
85
  icon: t(() => [
62
- e.discrete ? (i(), r("div", P)) : l(e.$slots, "icon", {
86
+ e.discrete ? (i(), d("div", j)) : l(e.$slots, "icon", {
63
87
  key: 1,
64
88
  open: o.value
65
89
  }, () => [
66
- d(v, {
67
- icon: e.icon,
90
+ r(v, {
68
91
  class: "text-c-3",
92
+ icon: e.icon,
69
93
  open: o.value
70
94
  }, null, 8, ["icon", "open"])
71
95
  ])
@@ -82,32 +106,11 @@ const O = { class: "group/group-button relative flex flex-col" }, P = {
82
106
  ]),
83
107
  key: "0"
84
108
  } : void 0
85
- ]), 1032, ["active", "aria-expanded", "disabled", "indent", "selected"]),
86
- e.discrete ? (i(), r("button", {
87
- key: 0,
88
- type: "button",
89
- "aria-expanded": o.value,
90
- class: "absolute top-[1lh] -translate-y-1/2 p-0.75 rounded hover:bg-sidebar-b-hover left-[calc(4px+var(--scalar-sidebar-indent)*var(--scalar-sidebar-level))] text-c-3 hover:text-sidebar-c-1",
91
- style: V({ "--scalar-sidebar-level": n(s) }),
92
- onClick: y
93
- }, [
94
- l(e.$slots, "icon", { open: o.value }, () => [
95
- d(v, {
96
- icon: e.icon,
97
- open: o.value
98
- }, {
99
- label: t(() => [
100
- x(z(o.value ? "Close" : "Open") + " ", 1),
101
- l(e.$slots, "default", { open: o.value })
102
- ]),
103
- _: 3
104
- }, 8, ["icon", "open"])
105
- ])
106
- ], 12, T)) : p("", !0)
109
+ ]), 1032, ["active", "aria-expanded", "disabled", "indent", "selected"])
107
110
  ]),
108
111
  l(e.$slots, "after", { open: o.value })
109
112
  ]),
110
- o.value ? (i(), r("ul", j, [
113
+ o.value ? (i(), d("ul", w, [
111
114
  l(e.$slots, "items", { open: o.value })
112
115
  ])) : p("", !0)
113
116
  ]),
@@ -116,5 +119,5 @@ const O = { class: "group/group-button relative flex flex-col" }, P = {
116
119
  }
117
120
  });
118
121
  export {
119
- K as default
122
+ L as default
120
123
  };
@@ -23,6 +23,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<import("./
23
23
  "update:open": (value: boolean) => any;
24
24
  } & {
25
25
  click: (event: MouseEvent) => any;
26
+ back: (event: MouseEvent) => any;
26
27
  }, string, import("vue").PublicProps, Readonly<import("./types").ScalarSidebarItemProps & {
27
28
  controlled?: boolean;
28
29
  discrete?: boolean;
@@ -31,6 +32,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<import("./
31
32
  }> & Readonly<{
32
33
  onClick?: ((event: MouseEvent) => any) | undefined;
33
34
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
35
+ onBack?: ((event: MouseEvent) => any) | undefined;
34
36
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
35
37
  /** The text content of the button */
36
38
  default?: () => unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarSidebarNestedItems.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSidebar/ScalarSidebarNestedItems.vue"],"names":[],"mappings":"AAyLA;;;;;;;;;;;;;;;GAeG;;;;;WAiFM,OAAO;;;;;;;;;WAAP,OAAO;;;;;IAjEd,qCAAqC;cACzB,MAAM,OAAO;IACzB,iCAAiC;aACtB,MAAM,OAAO;IACxB,wBAAwB;WACf,MAAM,OAAO;IACtB,8BAA8B;YACpB,MAAM,OAAO;IACvB,+BAA+B;WACtB,MAAM,OAAO;IACtB,qCAAqC;mBACtB,MAAM,OAAO;IAC5B,mCAAmC;YACzB,MAAM,OAAO;;AA5BzB,wBAmTC;AAOD,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ScalarSidebarNestedItems.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSidebar/ScalarSidebarNestedItems.vue"],"names":[],"mappings":"AAqMA;;;;;;;;;;;;;;;GAeG;;;;;WA6FM,OAAO;;;;;;;;;;WAAP,OAAO;;;;;;IA3Ed,qCAAqC;cACzB,MAAM,OAAO;IACzB,iCAAiC;aACtB,MAAM,OAAO;IACxB,wBAAwB;WACf,MAAM,OAAO;IACtB,8BAA8B;YACpB,MAAM,OAAO;IACvB,+BAA+B;WACtB,MAAM,OAAO;IACtB,qCAAqC;mBACtB,MAAM,OAAO;IAC5B,mCAAmC;YACzB,MAAM,OAAO;;AA9BzB,wBA6TC;AAOD,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,23 +1,23 @@
1
- import { defineComponent as B, mergeModels as c, useModel as g, useTemplateRef as h, ref as T, createElementBlock as u, openBlock as f, normalizeStyle as _, normalizeClass as z, renderSlot as s, createVNode as t, mergeProps as I, unref as r, withCtx as l, Transition as N, createCommentVNode as A, normalizeProps as w, guardReactiveProps as x, createTextVNode as L, nextTick as m } from "vue";
2
- import { ScalarIconArrowRight as M, ScalarIconCaretLeft as P, ScalarIconListDashes as R } from "@scalar/icons";
3
- import p from "./ScalarSidebarButton.vue.js";
4
- import V from "./ScalarSidebarItems.vue.js";
1
+ import { defineComponent as h, mergeModels as u, useModel as g, useTemplateRef as _, ref as T, createElementBlock as f, openBlock as m, normalizeStyle as z, normalizeClass as I, renderSlot as o, createVNode as t, mergeProps as N, unref as n, withCtx as s, Transition as x, createCommentVNode as A, normalizeProps as w, guardReactiveProps as L, createTextVNode as M, nextTick as p } from "vue";
2
+ import { ScalarIconArrowRight as P, ScalarIconCaretLeft as R, ScalarIconListDashes as V } from "@scalar/icons";
3
+ import b from "./ScalarSidebarButton.vue.js";
4
+ import q from "./ScalarSidebarItems.vue.js";
5
5
  /* empty css */
6
- import q from "./ScalarSidebarSpacer.vue.js";
6
+ import E from "./ScalarSidebarSpacer.vue.js";
7
7
  import { findScrollContainer as v } from "./findScrollContainer.js";
8
- import { useSidebarGroups as E } from "./useSidebarGroups.js";
9
- import { useSidebarNestedItem as O } from "./useSidebarNestedItems.js";
10
- import j from "../ScalarIcon/ScalarIconLegacyAdapter.vue.js";
11
- const D = {
8
+ import { useSidebarGroups as O } from "./useSidebarGroups.js";
9
+ import { useSidebarNestedItem as j } from "./useSidebarNestedItems.js";
10
+ import D from "../ScalarIcon/ScalarIconLegacyAdapter.vue.js";
11
+ const F = {
12
12
  key: 0,
13
13
  class: "absolute inset-0 translate-x-full"
14
- }, F = {}, te = /* @__PURE__ */ B({
15
- ...F,
14
+ }, G = {}, te = /* @__PURE__ */ h({
15
+ ...G,
16
16
  inheritAttrs: !1,
17
17
  __name: "ScalarSidebarNestedItems",
18
- props: /* @__PURE__ */ c({
18
+ props: /* @__PURE__ */ u({
19
19
  is: {},
20
- icon: { type: [Object, Function], default: R },
20
+ icon: { type: [Object, Function], default: V },
21
21
  active: { type: Boolean },
22
22
  selected: { type: Boolean },
23
23
  disabled: { type: Boolean },
@@ -28,88 +28,90 @@ const D = {
28
28
  open: { type: Boolean, default: !1 },
29
29
  openModifiers: {}
30
30
  }),
31
- emits: /* @__PURE__ */ c(["click"], ["update:open"]),
32
- setup(d, { emit: b }) {
33
- const $ = b, o = g(d, "open");
34
- O(o);
35
- const { level: S } = E({ reset: !0 }), a = h("el"), i = T(0);
36
- function k() {
37
- i.value = v(a.value).scrollTop ?? 0, m(
38
- () => a.value?.querySelector('button:not([aria-expanded="true"])')?.focus({ preventScroll: !0 })
31
+ emits: /* @__PURE__ */ u(["click", "back"], ["update:open"]),
32
+ setup(r, { emit: k }) {
33
+ const c = k, a = g(r, "open");
34
+ j(a);
35
+ const { level: S } = O({ reset: !0 }), l = _("el"), i = T(0);
36
+ function $() {
37
+ i.value = v(l.value).scrollTop ?? 0, p(
38
+ () => l.value?.querySelector('button:not([aria-expanded="true"])')?.focus({ preventScroll: !0 })
39
39
  );
40
40
  }
41
41
  function y() {
42
- m(() => {
43
- a.value?.querySelector("button")?.focus({ preventScroll: !0 }), v(a.value).scrollTop = i.value;
42
+ p(() => {
43
+ l.value?.querySelector("button")?.focus({ preventScroll: !0 }), v(l.value).scrollTop = i.value;
44
44
  });
45
45
  }
46
46
  const C = (e) => {
47
- $("click", e), d.controlled || (o.value = !o.value);
47
+ c("click", e), r.controlled || (a.value = !0);
48
+ }, B = (e) => {
49
+ c("back", e), r.controlled || (a.value = !1);
48
50
  };
49
- return (e, n) => (f(), u("li", {
51
+ return (e, d) => (m(), f("li", {
50
52
  ref_key: "el",
51
- ref: a,
52
- class: z(["group/item group/nested-items contents", { "group/nested-items-open": o.value }]),
53
- style: _({ "--nested-items-offset": `${i.value}px` })
53
+ ref: l,
54
+ class: I(["group/item group/nested-items contents", { "group/nested-items-open": a.value }]),
55
+ style: z({ "--nested-items-offset": `${i.value}px` })
54
56
  }, [
55
- s(e.$slots, "button", {}, () => [
56
- t(p, I({
57
+ o(e.$slots, "button", {}, () => [
58
+ t(b, N({
57
59
  is: "button",
58
- "aria-expanded": o.value,
60
+ "aria-expanded": a.value,
59
61
  class: "text-sidebar-c-1 font-sidebar-active hover:text-sidebar-c-1",
60
62
  disabled: e.disabled,
61
- indent: r(S),
63
+ indent: n(S),
62
64
  selected: e.selected
63
65
  }, e.$attrs, { onClick: C }), {
64
- icon: l(() => [
65
- s(e.$slots, "icon", {}, () => [
66
- t(r(j), {
66
+ icon: s(() => [
67
+ o(e.$slots, "icon", {}, () => [
68
+ t(n(D), {
67
69
  icon: e.icon,
68
70
  weight: "bold"
69
71
  }, null, 8, ["icon"])
70
72
  ])
71
73
  ]),
72
- aside: l(() => [
73
- s(e.$slots, "aside", {}, () => [
74
- t(r(M), { class: "size-4 text-sidebar-c-2" })
74
+ aside: s(() => [
75
+ o(e.$slots, "aside", {}, () => [
76
+ t(n(P), { class: "size-4 text-sidebar-c-2" })
75
77
  ])
76
78
  ]),
77
- default: l(() => [
78
- s(e.$slots, "default")
79
+ default: s(() => [
80
+ o(e.$slots, "default")
79
81
  ]),
80
82
  _: 3
81
83
  }, 16, ["aria-expanded", "disabled", "indent", "selected"])
82
84
  ]),
83
- t(N, {
85
+ t(x, {
84
86
  duration: 300,
85
87
  enterActiveClass: "top-(--nested-items-offset)",
86
88
  leaveActiveClass: "top-(--nested-items-offset)",
87
- onEnter: k,
89
+ onEnter: $,
88
90
  onLeave: y
89
91
  }, {
90
- default: l(() => [
91
- o.value ? (f(), u("div", D, [
92
- t(V, w(x(e.$attrs)), {
93
- default: l(() => [
94
- s(e.$slots, "back", {}, () => [
95
- t(p, {
92
+ default: s(() => [
93
+ a.value ? (m(), f("div", F, [
94
+ t(q, w(L(e.$attrs)), {
95
+ default: s(() => [
96
+ o(e.$slots, "back", {}, () => [
97
+ t(b, {
96
98
  is: "button",
97
99
  class: "text-sidebar-c-1 font-sidebar-active",
98
- onClick: n[0] || (n[0] = (G) => !e.controlled && (o.value = !1))
100
+ onClick: B
99
101
  }, {
100
- icon: l(() => [
101
- t(r(P), { class: "size-4 -m-px text-sidebar-c-2" })
102
+ icon: s(() => [
103
+ t(n(R), { class: "size-4 -m-px text-sidebar-c-2" })
102
104
  ]),
103
- default: l(() => [
104
- s(e.$slots, "back-label", {}, () => [
105
- n[1] || (n[1] = L("Back", -1))
105
+ default: s(() => [
106
+ o(e.$slots, "back-label", {}, () => [
107
+ d[0] || (d[0] = M("Back", -1))
106
108
  ])
107
109
  ]),
108
110
  _: 3
109
111
  })
110
112
  ]),
111
- t(q, { class: "h-3" }),
112
- s(e.$slots, "items")
113
+ t(E, { class: "h-3" }),
114
+ o(e.$slots, "items")
113
115
  ]),
114
116
  _: 3
115
117
  }, 16)
@@ -1,13 +1,10 @@
1
- type __VLS_Props = {
2
- hotKey?: string;
3
- };
4
1
  declare var __VLS_5: {}, __VLS_7: {};
5
2
  type __VLS_Slots = {} & {
6
3
  default?: (props: typeof __VLS_5) => any;
7
4
  } & {
8
5
  shortcut?: (props: typeof __VLS_7) => any;
9
6
  };
10
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
11
8
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
12
9
  export default _default;
13
10
  type __VLS_WithSlots<T, S> = T & {
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarSidebarSearchButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSidebar/ScalarSidebarSearchButton.vue"],"names":[],"mappings":"AAwCA,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAC;AA+DF,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC3C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAqBhD,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ScalarSidebarSearchButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSidebar/ScalarSidebarSearchButton.vue"],"names":[],"mappings":"AAgGA,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC3C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAoBhD,QAAA,MAAM,eAAe,+QAKnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAE1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,4 +1,4 @@
1
- import { defineComponent as d, createElementBlock as s, openBlock as o, mergeProps as c, unref as n, createVNode as p, createElementVNode as t, createCommentVNode as i, renderSlot as a, createTextVNode as u } from "vue";
1
+ import { defineComponent as d, createElementBlock as s, openBlock as o, mergeProps as c, unref as n, createVNode as i, createElementVNode as t, createCommentVNode as p, renderSlot as a, createTextVNode as u } from "vue";
2
2
  import { ScalarIconMagnifyingGlass as b } from "@scalar/icons";
3
3
  import { useBindCx as m } from "@scalar/use-hooks/useBindCx";
4
4
  const f = { class: "flex-1 text-left leading-none" }, h = {
@@ -7,22 +7,19 @@ const f = { class: "flex-1 text-left leading-none" }, h = {
7
7
  }, _ = /* @__PURE__ */ d({
8
8
  inheritAttrs: !1,
9
9
  __name: "ScalarSidebarSearchButton",
10
- props: {
11
- hotKey: {}
12
- },
13
10
  setup(x) {
14
11
  const { cx: l } = m();
15
12
  return (r, e) => (o(), s("button", c(
16
13
  {
17
- type: "button",
18
- role: "search"
14
+ role: "search",
15
+ type: "button"
19
16
  },
20
17
  n(l)(
21
18
  "flex items-center rounded border text-base h-8 gap-1 pl-2 pr-1",
22
19
  "bg-sidebar-b-search border-sidebar-border-search text-sidebar-c-search"
23
20
  )
24
21
  ), [
25
- p(n(b), { class: "size-4" }),
22
+ i(n(b), { class: "size-4" }),
26
23
  t("span", f, [
27
24
  a(r.$slots, "default", {}, () => [
28
25
  e[0] || (e[0] = u("Search...", -1))
@@ -33,7 +30,7 @@ const f = { class: "flex-1 text-left leading-none" }, h = {
33
30
  t("kbd", null, [
34
31
  a(r.$slots, "shortcut")
35
32
  ])
36
- ])) : i("", !0)
33
+ ])) : p("", !0)
37
34
  ], 16));
38
35
  }
39
36
  });
@@ -31,7 +31,9 @@ const N = ["aria-label"], G = /* @__PURE__ */ f({
31
31
  y(e(B), { class: "text-sidebar-c-search size-4" }),
32
32
  S(C("input", M({
33
33
  ref_key: "inputRef",
34
- ref: r,
34
+ ref: r
35
+ }, e(d), {
36
+ "onUpdate:modelValue": s[0] || (s[0] = (u) => a.value = u),
35
37
  "aria-label": o.label ?? "Enter search query",
36
38
  autocapitalize: "off",
37
39
  autocomplete: "off",
@@ -40,8 +42,6 @@ const N = ["aria-label"], G = /* @__PURE__ */ f({
40
42
  placeholder: "Search...",
41
43
  spellcheck: "false",
42
44
  type: "search"
43
- }, e(d), {
44
- "onUpdate:modelValue": s[0] || (s[0] = (u) => a.value = u)
45
45
  }), null, 16, N), [
46
46
  [V, a.value]
47
47
  ]),
@@ -54,8 +54,8 @@ const N = ["aria-label"], G = /* @__PURE__ */ f({
54
54
  key: 1,
55
55
  class: "p-0.25 size-4",
56
56
  icon: e(A),
57
- weight: "bold",
58
57
  label: "Clear Search",
58
+ weight: "bold",
59
59
  onClick: z(i, ["stop", "prevent"])
60
60
  }, null, 8, ["icon"])) : x("", !0)
61
61
  ], 16));
@@ -1,10 +1,4 @@
1
- import { type InjectionKey, type Ref } from 'vue';
2
- /**
3
- * Tracks the open state of the nearest nested child items
4
- *
5
- * @default false
6
- */
7
- export declare const SIDEBAR_NESTED_ITEMS_SYMBOL: InjectionKey<Ref<Ref<boolean>[]>>;
1
+ import { type Ref } from 'vue';
8
2
  /**
9
3
  * Get the open / closed model for the nearest nested child items
10
4
  */
@@ -1 +1 @@
1
- {"version":3,"file":"useSidebarNestedItems.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSidebar/useSidebarNestedItems.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmD,KAAK,YAAY,EAAE,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AAElG;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,EAAe,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAA;AAExF;;GAEG;AACH,eAAO,MAAM,oBAAoB;AAC/B,oEAAoE;AACpE,MAAM,GAAG,CAAC,OAAO,CAAC,SAYnB,CAAA;AACD;;GAEG;AACH,eAAO,MAAM,qBAAqB;IAO9B,qDAAqD;;CAGxD,CAAA"}
1
+ {"version":3,"file":"useSidebarNestedItems.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarSidebar/useSidebarNestedItems.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,GAAG,EAAmD,MAAM,KAAK,CAAA;AAOlG;;GAEG;AACH,eAAO,MAAM,oBAAoB;AAC/B,oEAAoE;AACpE,MAAM,GAAG,CAAC,OAAO,CAAC,KACjB,IAWF,CAAA;AACD;;GAEG;AACH,eAAO,MAAM,qBAAqB;IAO9B,qDAAqD;;CAGxD,CAAA"}
@@ -12,7 +12,6 @@ const s = Symbol(), l = (t) => {
12
12
  };
13
13
  };
14
14
  export {
15
- s as SIDEBAR_NESTED_ITEMS_SYMBOL,
16
15
  l as useSidebarNestedItem,
17
16
  m as useSidebarNestedItems
18
17
  };
@@ -1,4 +1,4 @@
1
1
  export { default as ScalarTeleport } from './ScalarTeleport.vue.js';
2
2
  export { default as ScalarTeleportRoot } from './ScalarTeleportRoot.vue.js';
3
- export * from './useTeleport.js';
3
+ export { TELEPORT_SYMBOL, useProvideTeleport, useTeleport } from './useTeleport.js';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarTeleport/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAExE,cAAc,eAAe,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarTeleport/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AACxE,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA"}
@@ -4,7 +4,7 @@ import B from "../ScalarForm/ScalarFormInput.vue.js";
4
4
  const M = { class: "flex flex-1 relative" }, A = {
5
5
  key: 0,
6
6
  class: "select-none whitespace-nowrap text-sm text-transparent"
7
- }, D = ["readonly", "aria-readonly"], S = {
7
+ }, D = ["aria-readonly", "readonly"], S = {
8
8
  key: 1,
9
9
  class: "absolute inset-0 select-none overflow-hidden whitespace-nowrap text-sm"
10
10
  }, E = {
@@ -49,9 +49,9 @@ const M = { class: "flex flex-1 relative" }, A = {
49
49
  ref_key: "input",
50
50
  ref: s,
51
51
  "onUpdate:modelValue": f[0] || (f[0] = (h) => a.value = h),
52
- readonly: e.readonly,
53
52
  "aria-readonly": e.readonly || void 0,
54
- class: "z-1 min-w-0 flex-1 border-none bg-transparent text-sm placeholder:font-[inherit] focus-within:outline-none"
53
+ class: "z-1 min-w-0 flex-1 border-none bg-transparent text-sm placeholder:font-[inherit] focus-within:outline-none",
54
+ readonly: e.readonly
55
55
  }, r(u)), null, 16, D), [
56
56
  [g, a.value]
57
57
  ]),
@@ -16,9 +16,9 @@ const x = {}, C = /* @__PURE__ */ n({
16
16
  return (m, B) => (t(), o(c(k), null, {
17
17
  default: u(() => [
18
18
  (t(!0), _(i, null, p(m.options, (e) => (t(), o(g, {
19
+ key: e.value,
19
20
  modelValue: l.value?.some(({ value: a }) => a === e.value),
20
- "onUpdate:modelValue": (a) => l.value = a ? [...l.value, e] : l.value.filter(({ value: d }) => d !== e.value),
21
- key: e.value
21
+ "onUpdate:modelValue": (a) => l.value = a ? [...l.value, e] : l.value.filter(({ value: d }) => d !== e.value)
22
22
  }, {
23
23
  default: u(() => [
24
24
  V(v(e.label), 1)
@@ -1,5 +1,5 @@
1
- export { default as ScalarTooltip } from './ScalarTooltip.vue.js';
2
1
  export { default as ScalarHotkeyTooltip } from './ScalarHotkeyTooltip.vue.js';
3
- export type { ScalarTooltipPlacement, PublicTooltipConfiguration as TooltipConfiguration, } from './types';
2
+ export { default as ScalarTooltip } from './ScalarTooltip.vue.js';
3
+ export type { PublicTooltipConfiguration as TooltipConfiguration, ScalarTooltipPlacement, } from './types';
4
4
  export { useTooltip } from './useTooltip.js';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarTooltip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAC9D,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAE1E,YAAY,EACV,sBAAsB,EACtB,0BAA0B,IAAI,oBAAoB,GACnD,MAAM,SAAS,CAAA;AAChB,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarTooltip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAC1E,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAC9D,YAAY,EACV,0BAA0B,IAAI,oBAAoB,EAClD,sBAAsB,GACvB,MAAM,SAAS,CAAA;AAChB,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA"}
@@ -3,7 +3,7 @@ import type { MaybeRef } from 'vue';
3
3
  /** Timer Utility Type */
4
4
  export type Timer = ReturnType<typeof setTimeout>;
5
5
  /** Might be an element or undefined */
6
- export type MaybeElement = Element | undefined | null;
6
+ type MaybeElement = Element | undefined | null;
7
7
  export type ScalarTooltipPlacement = FloatingPlacement | undefined;
8
8
  /** The configuration for the active tooltip */
9
9
  export type TooltipConfiguration = {
@@ -48,4 +48,5 @@ export type ScalarTooltipProps = {
48
48
  placement?: ScalarTooltipPlacement;
49
49
  offset?: number;
50
50
  };
51
+ export {};
51
52
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarTooltip/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,IAAI,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AACtE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,yBAAyB;AACzB,MAAM,MAAM,KAAK,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAA;AAEjD,uCAAuC;AACvC,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,SAAS,GAAG,IAAI,CAAA;AAErD,MAAM,MAAM,sBAAsB,GAAG,iBAAiB,GAAG,SAAS,CAAA;AAElE,+CAA+C;AAC/C,MAAM,MAAM,oBAAoB,GAAG;IACjC,uCAAuC;IACvC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAA;IACzB;;;;;;;;;OASG;IACH,aAAa,CAAC,EAAE,QAAQ,CAAC,WAAW,GAAG,aAAa,CAAC,CAAA;IACrD;;;;UAIM;IACN,SAAS,CAAC,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAA;IAC5C;;;;OAIG;IACH,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAA;IACxB;;;;OAIG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAA;IACzB,6BAA6B;IAC7B,SAAS,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAA;CAClC,CAAA;AAED,MAAM,MAAM,0BAA0B,GAAG,IAAI,CAAC,oBAAoB,EAAE,eAAe,CAAC,CAAA;AAEpF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,sBAAsB,CAAA;IAClC,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarTooltip/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,IAAI,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AACtE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,yBAAyB;AACzB,MAAM,MAAM,KAAK,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAA;AAEjD,uCAAuC;AACvC,KAAK,YAAY,GAAG,OAAO,GAAG,SAAS,GAAG,IAAI,CAAA;AAE9C,MAAM,MAAM,sBAAsB,GAAG,iBAAiB,GAAG,SAAS,CAAA;AAElE,+CAA+C;AAC/C,MAAM,MAAM,oBAAoB,GAAG;IACjC,uCAAuC;IACvC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAA;IACzB;;;;;;;;;OASG;IACH,aAAa,CAAC,EAAE,QAAQ,CAAC,WAAW,GAAG,aAAa,CAAC,CAAA;IACrD;;;;UAIM;IACN,SAAS,CAAC,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAA;IAC5C;;;;OAIG;IACH,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAA;IACxB;;;;OAIG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAA;IACzB,6BAA6B;IAC7B,SAAS,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAA;CAClC,CAAA;AAED,MAAM,MAAM,0BAA0B,GAAG,IAAI,CAAC,oBAAoB,EAAE,eAAe,CAAC,CAAA;AAEpF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,sBAAsB,CAAA;IAClC,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA"}
@@ -1,10 +1,4 @@
1
1
  import type { TooltipConfiguration } from './types';
2
- /**
3
- * Initialize the tooltip element
4
- *
5
- * If the tooltip is already initialized it will be ignored
6
- */
7
- export declare function initializeTooltipElement(): void;
8
2
  /**
9
3
  * Cleanup and reset the tooltip element
10
4
  */
@@ -1 +1 @@
1
- {"version":3,"file":"useTooltip.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarTooltip/useTooltip.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAS,oBAAoB,EAAE,MAAM,SAAS,CAAA;AA4F1D;;;;GAIG;AACH,wBAAgB,wBAAwB,SA4BvC;AAED;;GAEG;AACH,wBAAgB,qBAAqB,SAGpC;AA2ED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,oBAAoB,QAqDpD"}
1
+ {"version":3,"file":"useTooltip.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarTooltip/useTooltip.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAS,oBAAoB,EAAE,MAAM,SAAS,CAAA;AA4H1D;;GAEG;AACH,wBAAgB,qBAAqB,SAGpC;AA2ED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,oBAAoB,QAqDpD"}
@@ -75,6 +75,5 @@ function F(e) {
75
75
  );
76
76
  }
77
77
  export {
78
- A as initializeTooltipElement,
79
78
  F as useTooltip
80
79
  };
@@ -1,2 +1,2 @@
1
- export * from './add-scalar-classes.js';
1
+ export { addScalarClassesToHeadless } from './add-scalar-classes.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAA"}
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import './style.css';
2
2
  export { compose, cva, cx, tw, useBindCx } from '@scalar/use-hooks/useBindCx';
3
+ /** biome-ignore-start lint/performance/noReExportAll: re-exports indexes */
3
4
  export * from './components/ScalarButton';
4
5
  export * from './components/ScalarCard';
5
6
  export * from './components/ScalarCheckboxInput';
@@ -34,4 +35,5 @@ export * from './components/ScalarTooltip';
34
35
  export * from './components/ScalarVirtualText';
35
36
  export * from './components/ScalarWrappingText';
36
37
  export * from './helpers';
38
+ /** biome-ignore-end lint/performance/noReExportAll: re-exports indexes */
37
39
  //# sourceMappingURL=index.d.ts.map
@@ -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,kCAAkC,CAAA;AAChD,cAAc,2BAA2B,CAAA;AACzC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,iCAAiC,CAAA;AAC/C,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,4EAA4E;AAC5E,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;AACzB,0EAA0E"}