sprintify-ui 0.9.2 → 0.9.4
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
|
@@ -7062,8 +7062,8 @@ const VT = {
|
|
|
7062
7062
|
}
|
|
7063
7063
|
return {};
|
|
7064
7064
|
}), u = A(() => {
|
|
7065
|
-
const p = ["flex items-center
|
|
7066
|
-
return i.loading && p.push("opacity-0"), i.icon && (s.value == "xs" || s.value == "sm" ? p.push("gap-0.5") : (s.value == "md" || s.value == "lg" || s.value == "xl") && p.push("gap-1")), p;
|
|
7065
|
+
const p = ["flex items-center w-full"];
|
|
7066
|
+
return i.loading && p.push("opacity-0"), i.icon && (s.value == "xs" || s.value == "sm" ? p.push("gap-0.5") : (s.value == "md" || s.value == "lg" || s.value == "xl") && p.push("gap-1")), o.value ? p.push("justify-center") : p.push("justify-between"), p;
|
|
7067
7067
|
}), d = A(() => {
|
|
7068
7068
|
const p = ["shrink-0"];
|
|
7069
7069
|
return o.value || (i.iconPosition === "start" ? p.push("-translate-x-[20%]") : i.iconPosition === "end" && p.push("translate-x-[20%]")), s.value === "xs" ? p.push("h-3 w-3") : s.value === "sm" ? p.push("h-3.5 w-3.5") : s.value === "md" ? p.push("h-4 w-4") : s.value === "lg" ? p.push("h-5 w-5") : s.value === "xl" && p.push("h-6 w-6"), p;
|
package/package.json
CHANGED
|
@@ -170,7 +170,7 @@ const styles = computed(() => {
|
|
|
170
170
|
});
|
|
171
171
|
|
|
172
172
|
const containerClass = computed(() => {
|
|
173
|
-
const classes = ['flex items-center
|
|
173
|
+
const classes = ['flex items-center w-full'];
|
|
174
174
|
|
|
175
175
|
if (props.loading) {
|
|
176
176
|
classes.push('opacity-0');
|
|
@@ -190,6 +190,12 @@ const containerClass = computed(() => {
|
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
|
|
193
|
+
if (iconOnly.value) {
|
|
194
|
+
classes.push('justify-center');
|
|
195
|
+
} else {
|
|
196
|
+
classes.push('justify-between');
|
|
197
|
+
}
|
|
198
|
+
|
|
193
199
|
return classes;
|
|
194
200
|
});
|
|
195
201
|
|