@scalar/components 0.13.3 → 0.13.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarTooltip.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarTooltip/ScalarTooltip.vue"],"names":[],"mappings":"AA0EA,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,MAAM,IAAI,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAA;IAClC,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAA;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AA4BJ,iBAAS,cAAc;WAkGT,OAAO,IAA6B;;yBATpB,GAAG;yBACH,GAAG;;;;EAahC;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;cApJN,OAAO;WAPV,OAAO,GAAG,QAAQ,GAAG,KAAK;UAC3B,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM;eAF9B,MAAM;6EAqKpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ScalarTooltip.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarTooltip/ScalarTooltip.vue"],"names":[],"mappings":"AA4EA,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,MAAM,IAAI,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAA;IAClC,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAA;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AA4BJ,iBAAS,cAAc;WAkGT,OAAO,IAA6B;;yBATpB,GAAG;yBACH,GAAG;;;;EAahC;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;cApJN,OAAO;WAPV,OAAO,GAAG,QAAQ,GAAG,KAAK;UAC3B,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM;eAF9B,MAAM;6EAqKpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,6 +1,7 @@
1
- import { defineComponent as c, openBlock as o, createBlock as i, unref as t, withCtx as l, createVNode as a, normalizeClass as r, renderSlot as n, createCommentVNode as f } from "vue";
2
- import { TooltipProvider as p, TooltipRoot as u, TooltipTrigger as g, TooltipPortal as k, TooltipContent as m } from "radix-vue";
3
- const D = /* @__PURE__ */ c({
1
+ import { defineComponent as d, openBlock as o, createBlock as i, unref as t, withCtx as l, createVNode as s, normalizeClass as r, renderSlot as n, createCommentVNode as f } from "vue";
2
+ import { TooltipProvider as p, TooltipRoot as u, TooltipTrigger as m, TooltipContent as g } from "radix-vue";
3
+ import k from "../ScalarTeleport/ScalarTeleport.vue.js";
4
+ const T = /* @__PURE__ */ d({
4
5
  __name: "ScalarTooltip",
5
6
  props: {
6
7
  click: {},
@@ -16,28 +17,28 @@ const D = /* @__PURE__ */ c({
16
17
  disabled: { type: Boolean, default: !1 }
17
18
  },
18
19
  emits: ["click"],
19
- setup(d) {
20
- const e = d;
21
- return (s, y) => (o(), i(t(p), {
20
+ setup(c) {
21
+ const e = c;
22
+ return (a, y) => (o(), i(t(p), {
22
23
  delayDuration: e.delay,
23
24
  skipDelayDuration: e.skipDelay
24
25
  }, {
25
26
  default: l(() => [
26
- a(t(u), null, {
27
+ s(t(u), null, {
27
28
  default: l(() => [
28
- a(t(g), {
29
+ s(t(m), {
29
30
  as: e.as || "button",
30
31
  class: r(["flex items-center justify-center", [e.resize ? "w-full" : "", e.triggerClass]]),
31
32
  onClick: e.click
32
33
  }, {
33
34
  default: l(() => [
34
- n(s.$slots, "trigger")
35
+ n(a.$slots, "trigger")
35
36
  ]),
36
37
  _: 3
37
38
  }, 8, ["as", "class", "onClick"]),
38
- a(t(k), null, {
39
+ s(t(k), null, {
39
40
  default: l(() => [
40
- e.disabled ? f("", !0) : (o(), i(t(m), {
41
+ e.disabled ? f("", !0) : (o(), i(t(g), {
41
42
  key: 0,
42
43
  align: e.align,
43
44
  class: r(["scalar-app z-context", e.class]),
@@ -45,7 +46,7 @@ const D = /* @__PURE__ */ c({
45
46
  sideOffset: e.sideOffset
46
47
  }, {
47
48
  default: l(() => [
48
- n(s.$slots, "content")
49
+ n(a.$slots, "content")
49
50
  ]),
50
51
  _: 3
51
52
  }, 8, ["align", "class", "side", "sideOffset"]))
@@ -61,5 +62,5 @@ const D = /* @__PURE__ */ c({
61
62
  }
62
63
  });
63
64
  export {
64
- D as default
65
+ T as default
65
66
  };
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "url": "https://github.com/scalar/scalar.git",
11
11
  "directory": "packages/components"
12
12
  },
13
- "version": "0.13.3",
13
+ "version": "0.13.5",
14
14
  "engines": {
15
15
  "node": ">=18"
16
16
  },
@@ -39,9 +39,9 @@
39
39
  "tailwind-merge": "^2.5.5",
40
40
  "vue": "^3.5.12",
41
41
  "@scalar/code-highlight": "0.0.18",
42
- "@scalar/themes": "0.9.54",
43
- "@scalar/use-toasts": "0.7.7",
44
- "@scalar/use-hooks": "0.1.7"
42
+ "@scalar/themes": "0.9.55",
43
+ "@scalar/use-hooks": "0.1.8",
44
+ "@scalar/use-toasts": "0.7.7"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@headlessui/tailwindcss": "^0.2.0",