sprintify-ui 0.8.69 → 0.8.70

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.
@@ -5546,23 +5546,26 @@ const ZA = ["innerHTML"], Go = /* @__PURE__ */ oe({
5546
5546
  dark: { type: Boolean, default: !1 }
5547
5547
  },
5548
5548
  setup(n) {
5549
- const e = n, t = j(null), r = A(() => Is(t)), i = j(null), { floatingStyles: s, showTooltip: o } = L0(r, i, e.interactive, e.floatingOptions);
5550
- return (l, a) => (T(), $(qe, null, [
5549
+ const e = n, t = j(null), r = A(() => Is(t)), i = j(null), { floatingStyles: s, showTooltip: o } = L0(r, i, e.interactive, e.floatingOptions), l = A(() => [
5550
+ "relative",
5551
+ e.class
5552
+ ]);
5553
+ return (a, u) => (T(), $(qe, null, [
5551
5554
  M("div", {
5552
5555
  ref_key: "targetRef",
5553
5556
  ref: t,
5554
- class: U(e.class)
5557
+ class: U(b(l))
5555
5558
  }, [
5556
- be(l.$slots, "default")
5559
+ be(a.$slots, "default")
5557
5560
  ], 2),
5558
- l.visible ? (T(), ue(ui, {
5561
+ a.visible ? (T(), ue(ui, {
5559
5562
  key: 0,
5560
5563
  to: "body"
5561
5564
  }, [
5562
5565
  M("div", {
5563
5566
  ref_key: "tooltipRef",
5564
5567
  ref: i,
5565
- class: U(["fixed top-0 left-0 z-tooltip", [l.interactive ? "" : "pointer-events-none"]]),
5568
+ class: U(["fixed top-0 left-0 z-tooltip", [a.interactive ? "" : "pointer-events-none"]]),
5566
5569
  style: Je(b(s))
5567
5570
  }, [
5568
5571
  ie(nr, {
@@ -5574,12 +5577,12 @@ const ZA = ["innerHTML"], Go = /* @__PURE__ */ oe({
5574
5577
  "leave-to-class": "transform scale-90 opacity-0"
5575
5578
  }, {
5576
5579
  default: te(() => [
5577
- b(o) ? be(l.$slots, "tooltip", { key: 0 }, () => [
5580
+ b(o) ? be(a.$slots, "tooltip", { key: 0 }, () => [
5578
5581
  M("div", {
5579
5582
  class: U(["text-xs max-w-xs leading-snug rounded-md pt-1.5 pb-2 px-3", [
5580
- l.dark ? "bg-slate-900 text-white" : "bg-white text-slate-900 ring-1 ring-black ring-opacity-10 shadow-md"
5583
+ a.dark ? "bg-slate-900 text-white" : "bg-white text-slate-900 ring-1 ring-black ring-opacity-10 shadow-md"
5581
5584
  ]]),
5582
- innerHTML: l.text
5585
+ innerHTML: a.text
5583
5586
  }, null, 10, ZA)
5584
5587
  ]) : se("", !0)
5585
5588
  ]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.8.69",
3
+ "version": "0.8.70",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "rimraf dist && vue-tsc && vite build",
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div
3
3
  ref="targetRef"
4
- :class="props.class"
4
+ :class="classInternal"
5
5
  >
6
6
  <slot />
7
7
  </div>
@@ -77,4 +77,11 @@ const tooltipRef = ref<HTMLElement | null>(null)
77
77
 
78
78
  const { floatingStyles, showTooltip } = useTooltip(targetInternal, tooltipRef, props.interactive, props.floatingOptions);
79
79
 
80
+ const classInternal = computed(() => {
81
+ return [
82
+ 'relative',
83
+ props.class,
84
+ ];
85
+ });
86
+
80
87
  </script>