sprintify-ui 0.12.6 → 0.12.7
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
|
@@ -22159,6 +22159,10 @@ const pI = /* @__PURE__ */ Pu(hI), mI = { class: "text-xs text-slate-600" }, Q0
|
|
|
22159
22159
|
twButton: {
|
|
22160
22160
|
default: "outline-none",
|
|
22161
22161
|
type: String
|
|
22162
|
+
},
|
|
22163
|
+
disabled: {
|
|
22164
|
+
default: !1,
|
|
22165
|
+
type: Boolean
|
|
22162
22166
|
}
|
|
22163
22167
|
},
|
|
22164
22168
|
setup(n) {
|
|
@@ -22173,7 +22177,8 @@ const pI = /* @__PURE__ */ Pu(hI), mI = { class: "text-xs text-slate-600" }, Q0
|
|
|
22173
22177
|
return (l, a) => (k(), ne(g(wv), null, {
|
|
22174
22178
|
default: X(({ open: u }) => [
|
|
22175
22179
|
ee(g(tk), {
|
|
22176
|
-
class: j(g(s))
|
|
22180
|
+
class: j(g(s)),
|
|
22181
|
+
disabled: n.disabled
|
|
22177
22182
|
}, {
|
|
22178
22183
|
default: X(() => [
|
|
22179
22184
|
A("div", {
|
|
@@ -22184,7 +22189,7 @@ const pI = /* @__PURE__ */ Pu(hI), mI = { class: "text-xs text-slate-600" }, Q0
|
|
|
22184
22189
|
], 512)
|
|
22185
22190
|
]),
|
|
22186
22191
|
_: 3
|
|
22187
|
-
}, 8, ["class"]),
|
|
22192
|
+
}, 8, ["class", "disabled"]),
|
|
22188
22193
|
(k(), ne(rr, { to: "body" }, [
|
|
22189
22194
|
A("div", {
|
|
22190
22195
|
ref_key: "dropdownRef",
|
|
@@ -44530,11 +44535,12 @@ const zz = { class: "px-1 py-1 border-b flex flex-wrap items-center" }, Pz = { c
|
|
|
44530
44535
|
M.name === "highlight" ? (k(), ne(Qs, {
|
|
44531
44536
|
key: 0,
|
|
44532
44537
|
placement: "bottom",
|
|
44533
|
-
"tw-button": "block"
|
|
44538
|
+
"tw-button": "block",
|
|
44539
|
+
disabled: n.disabled
|
|
44534
44540
|
}, {
|
|
44535
44541
|
button: X(() => [
|
|
44536
44542
|
A("div", {
|
|
44537
|
-
class: j([g(C), g(o).isActive("highlight") ? "bg-slate-200" : ""])
|
|
44543
|
+
class: j([g(C), g(o).isActive("highlight") ? "bg-slate-200" : "", n.disabled ? "opacity-50 cursor-not-allowed" : ""])
|
|
44538
44544
|
}, [
|
|
44539
44545
|
ee(x, {
|
|
44540
44546
|
class: "h-4 w-4 text-slate-600",
|
|
@@ -44569,14 +44575,15 @@ const zz = { class: "px-1 py-1 border-b flex flex-wrap items-center" }, Pz = { c
|
|
|
44569
44575
|
])
|
|
44570
44576
|
]),
|
|
44571
44577
|
_: 2
|
|
44572
|
-
},
|
|
44578
|
+
}, 1032, ["disabled"])) : M.name === "link" ? (k(), ne(Qs, {
|
|
44573
44579
|
key: 1,
|
|
44574
44580
|
placement: "bottom",
|
|
44575
|
-
"tw-button": "block"
|
|
44581
|
+
"tw-button": "block",
|
|
44582
|
+
disabled: n.disabled
|
|
44576
44583
|
}, {
|
|
44577
44584
|
button: X(() => [
|
|
44578
44585
|
A("div", {
|
|
44579
|
-
class: j([g(C), g(o).isActive("link") ? "bg-slate-200" : ""]),
|
|
44586
|
+
class: j([g(C), g(o).isActive("link") ? "bg-slate-200" : "", n.disabled ? "opacity-50 cursor-not-allowed" : ""]),
|
|
44580
44587
|
onClick: h
|
|
44581
44588
|
}, [
|
|
44582
44589
|
ee(x, {
|
|
@@ -44639,7 +44646,7 @@ const zz = { class: "px-1 py-1 border-b flex flex-wrap items-center" }, Pz = { c
|
|
|
44639
44646
|
])
|
|
44640
44647
|
]),
|
|
44641
44648
|
_: 2
|
|
44642
|
-
},
|
|
44649
|
+
}, 1032, ["disabled"])) : (k(), $("button", {
|
|
44643
44650
|
key: 2,
|
|
44644
44651
|
class: j([g(C), g(o).isActive(M.name) ? "bg-slate-200" : ""]),
|
|
44645
44652
|
type: "button",
|
|
@@ -26,6 +26,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
26
26
|
default: string;
|
|
27
27
|
type: StringConstructor;
|
|
28
28
|
};
|
|
29
|
+
disabled: {
|
|
30
|
+
default: boolean;
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
};
|
|
29
33
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
34
|
animated: {
|
|
31
35
|
default: boolean;
|
|
@@ -43,7 +47,12 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
43
47
|
default: string;
|
|
44
48
|
type: StringConstructor;
|
|
45
49
|
};
|
|
50
|
+
disabled: {
|
|
51
|
+
default: boolean;
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
};
|
|
46
54
|
}>> & Readonly<{}>, {
|
|
55
|
+
disabled: boolean;
|
|
47
56
|
placement: Placement;
|
|
48
57
|
twButton: string;
|
|
49
58
|
animated: boolean;
|
package/package.json
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
<Popover v-slot="{ open }">
|
|
3
3
|
<PopoverButton
|
|
4
4
|
:class="twButtonInternal"
|
|
5
|
+
:disabled="disabled"
|
|
5
6
|
>
|
|
6
7
|
<div ref="buttonRef">
|
|
7
8
|
<slot name="button" />
|
|
@@ -70,6 +71,10 @@ const props = defineProps({
|
|
|
70
71
|
default: 'outline-none',
|
|
71
72
|
type: String,
|
|
72
73
|
},
|
|
74
|
+
disabled: {
|
|
75
|
+
default: false,
|
|
76
|
+
type: Boolean,
|
|
77
|
+
},
|
|
73
78
|
});
|
|
74
79
|
|
|
75
80
|
const { floatingStyles } = useFloating(buttonRefEl, dropdownRef, {
|
|
@@ -15,9 +15,10 @@
|
|
|
15
15
|
v-if="action.name === 'highlight'"
|
|
16
16
|
placement="bottom"
|
|
17
17
|
tw-button="block"
|
|
18
|
+
:disabled="disabled"
|
|
18
19
|
>
|
|
19
20
|
<template #button>
|
|
20
|
-
<div :class="[buttonClass, editor.isActive('highlight') ? 'bg-slate-200' : '']">
|
|
21
|
+
<div :class="[buttonClass, editor.isActive('highlight') ? 'bg-slate-200' : '', disabled ? 'opacity-50 cursor-not-allowed' : '']">
|
|
21
22
|
<BaseIcon
|
|
22
23
|
class="h-4 w-4 text-slate-600"
|
|
23
24
|
:icon="action.icon"
|
|
@@ -52,10 +53,11 @@
|
|
|
52
53
|
v-else-if="action.name === 'link'"
|
|
53
54
|
placement="bottom"
|
|
54
55
|
tw-button="block"
|
|
56
|
+
:disabled="disabled"
|
|
55
57
|
>
|
|
56
58
|
<template #button>
|
|
57
59
|
<div
|
|
58
|
-
:class="[buttonClass, editor.isActive('link') ? 'bg-slate-200' : '']"
|
|
60
|
+
:class="[buttonClass, editor.isActive('link') ? 'bg-slate-200' : '', disabled ? 'opacity-50 cursor-not-allowed' : '']"
|
|
59
61
|
@click="openLinkDropdown"
|
|
60
62
|
>
|
|
61
63
|
<BaseIcon
|