sprintify-ui 0.12.6 → 0.12.8
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",
|
|
@@ -26204,8 +26209,8 @@ const qI = ["onClick"], UI = ["onClick"], KI = { class: "px-1 py-1 h-full flex i
|
|
|
26204
26209
|
},
|
|
26205
26210
|
setup(n) {
|
|
26206
26211
|
const t = n, e = S(() => {
|
|
26207
|
-
const o = ["text-left flex w-full"];
|
|
26208
|
-
return t.collapsed || o.push("rounded-md"), t.active ? t.dark ? o.push("bg-slate-700 text-white") : o.push("bg-slate-100 text-primary-700") : t.dark ? o.push("hover:bg-slate-800 hover:text-white text-slate-300") : o.push("hover:bg-slate-50 hover:text-slate-900 text-slate-800"), t.size == "xs" && o.push("text-[13px] px-2.5 py-1 font-medium"), t.size == "sm" && o.push("text-sm px-3 py-1.5 font-medium"), t.size == "md" && o.push("text-base px-3 py-2 font-medium"), o;
|
|
26212
|
+
const o = ["text-left flex w-full navbar-side-item-content"];
|
|
26213
|
+
return t.collapsed || o.push("rounded-md"), t.active ? t.dark ? o.push("bg-slate-700 text-white active") : o.push("bg-slate-100 text-primary-700 active") : t.dark ? o.push("hover:bg-slate-800 hover:text-white text-slate-300") : o.push("hover:bg-slate-50 hover:text-slate-900 text-slate-800"), t.size == "xs" && o.push("text-[13px] px-2.5 py-1 font-medium"), t.size == "sm" && o.push("text-sm px-3 py-1.5 font-medium"), t.size == "md" && o.push("text-base px-3 py-2 font-medium"), o;
|
|
26209
26214
|
}), r = S(() => {
|
|
26210
26215
|
const o = ["shrink-0 leading-none inline-block"];
|
|
26211
26216
|
return t.active ? o.push("opacity-100") : o.push("opacity-70 group-hover:opacity-100"), t.size == "xs" && o.push("w-3.5 h-3.5"), t.size == "sm" && o.push("w-4 h-4"), t.size == "md" && o.push("w-5 h-5"), t.collapsed || o.push("mr-2"), o;
|
|
@@ -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, {
|
|
@@ -62,7 +62,7 @@ const props = defineProps({
|
|
|
62
62
|
});
|
|
63
63
|
|
|
64
64
|
const classes = computed(() => {
|
|
65
|
-
const classList = ['text-left flex w-full'];
|
|
65
|
+
const classList = ['text-left flex w-full navbar-side-item-content'];
|
|
66
66
|
|
|
67
67
|
if (!props.collapsed) {
|
|
68
68
|
classList.push('rounded-md');
|
|
@@ -70,9 +70,9 @@ const classes = computed(() => {
|
|
|
70
70
|
|
|
71
71
|
if (props.active) {
|
|
72
72
|
if (props.dark) {
|
|
73
|
-
classList.push('bg-slate-700 text-white');
|
|
73
|
+
classList.push('bg-slate-700 text-white active');
|
|
74
74
|
} else {
|
|
75
|
-
classList.push('bg-slate-100 text-primary-700');
|
|
75
|
+
classList.push('bg-slate-100 text-primary-700 active');
|
|
76
76
|
}
|
|
77
77
|
} else {
|
|
78
78
|
if (props.dark) {
|
|
@@ -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
|