sprintify-ui 0.8.67 → 0.8.68
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.
package/dist/sprintify-ui.es.js
CHANGED
|
@@ -5537,8 +5537,13 @@ const ZA = ["innerHTML"], Go = /* @__PURE__ */ oe({
|
|
|
5537
5537
|
visible: { type: Boolean, default: !0 },
|
|
5538
5538
|
text: { default: null },
|
|
5539
5539
|
class: { default: null },
|
|
5540
|
-
floatingOptions: { default
|
|
5541
|
-
|
|
5540
|
+
floatingOptions: { default() {
|
|
5541
|
+
return {
|
|
5542
|
+
placement: "top-start"
|
|
5543
|
+
};
|
|
5544
|
+
} },
|
|
5545
|
+
interactive: { type: Boolean, default: !1 },
|
|
5546
|
+
dark: { type: Boolean, default: !1 }
|
|
5542
5547
|
},
|
|
5543
5548
|
setup(n) {
|
|
5544
5549
|
const e = n, t = j(null), r = T(() => Is(t)), i = j(null), { floatingStyles: s, showTooltip: o } = L0(r, i, e.interactive, e.floatingOptions);
|
|
@@ -5571,9 +5576,11 @@ const ZA = ["innerHTML"], Go = /* @__PURE__ */ oe({
|
|
|
5571
5576
|
default: te(() => [
|
|
5572
5577
|
b(o) ? ve(l.$slots, "tooltip", { key: 0 }, () => [
|
|
5573
5578
|
M("div", {
|
|
5574
|
-
class: "
|
|
5579
|
+
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"
|
|
5581
|
+
]]),
|
|
5575
5582
|
innerHTML: l.text
|
|
5576
|
-
}, null,
|
|
5583
|
+
}, null, 10, ZA)
|
|
5577
5584
|
]) : se("", !0)
|
|
5578
5585
|
]),
|
|
5579
5586
|
_: 3
|
|
@@ -8914,7 +8921,7 @@ const T_ = {
|
|
|
8914
8921
|
}
|
|
8915
8922
|
const E = Rn(() => {
|
|
8916
8923
|
c();
|
|
8917
|
-
},
|
|
8924
|
+
}, 400);
|
|
8918
8925
|
function _(S) {
|
|
8919
8926
|
return r.showEmptyOption ? !(S.value == null && !S.label.toLowerCase().includes(a.value.toLowerCase())) : !0;
|
|
8920
8927
|
}
|
|
@@ -17,13 +17,16 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
|
17
17
|
class?: string[] | string | null | undefined;
|
|
18
18
|
floatingOptions?: UseFloatingOptions;
|
|
19
19
|
interactive?: boolean;
|
|
20
|
+
dark?: boolean;
|
|
20
21
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
21
22
|
visible?: boolean;
|
|
22
23
|
text?: string | null | undefined;
|
|
23
24
|
class?: string[] | string | null | undefined;
|
|
24
25
|
floatingOptions?: UseFloatingOptions;
|
|
25
26
|
interactive?: boolean;
|
|
27
|
+
dark?: boolean;
|
|
26
28
|
}> & Readonly<{}>, {
|
|
29
|
+
dark: boolean;
|
|
27
30
|
class: string | string[] | null;
|
|
28
31
|
text: string | null;
|
|
29
32
|
visible: boolean;
|
package/package.json
CHANGED
|
@@ -28,7 +28,10 @@
|
|
|
28
28
|
name="tooltip"
|
|
29
29
|
>
|
|
30
30
|
<div
|
|
31
|
-
class="
|
|
31
|
+
class="text-xs max-w-xs leading-snug rounded-md pt-1.5 pb-2 px-3"
|
|
32
|
+
:class="[
|
|
33
|
+
dark ? 'bg-slate-900 text-white' : 'bg-white text-slate-900 ring-1 ring-black ring-opacity-10 shadow-md',
|
|
34
|
+
]"
|
|
32
35
|
v-html="text"
|
|
33
36
|
/>
|
|
34
37
|
</slot>
|
|
@@ -52,12 +55,18 @@ const props = withDefaults(defineProps<{
|
|
|
52
55
|
class?: string[] | string | null | undefined;
|
|
53
56
|
floatingOptions?: UseFloatingOptions,
|
|
54
57
|
interactive?: boolean,
|
|
58
|
+
dark?: boolean,
|
|
55
59
|
}>(), {
|
|
56
60
|
visible: true,
|
|
57
61
|
text: null,
|
|
58
62
|
class: null,
|
|
59
|
-
floatingOptions
|
|
63
|
+
floatingOptions() {
|
|
64
|
+
return {
|
|
65
|
+
placement: 'top-start',
|
|
66
|
+
};
|
|
67
|
+
},
|
|
60
68
|
interactive: false,
|
|
69
|
+
dark: false,
|
|
61
70
|
});
|
|
62
71
|
|
|
63
72
|
const targetRef = ref<HTMLElement | null>(null);
|