@kungal/ui-vue 0.22.1 → 0.22.3
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.vue.d.ts","sourceRoot":"","sources":["../../src/components/Button.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Button.vue.d.ts","sourceRoot":"","sources":["../../src/components/Button.vue"],"names":[],"mappings":"AA0MA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAoR7C,QAAA,IAAI,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AACpE,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAK7C,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;6EAId,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -128,10 +128,10 @@ var Xe = D({
|
|
|
128
128
|
}
|
|
129
129
|
}), [["__scopeId", "data-v-c00f084d"]]), ft = {
|
|
130
130
|
key: 1,
|
|
131
|
-
class: "mr-2"
|
|
131
|
+
class: "mr-2 shrink-0"
|
|
132
132
|
}, pt = {
|
|
133
133
|
key: 2,
|
|
134
|
-
class: "ml-2"
|
|
134
|
+
class: "ml-2 shrink-0"
|
|
135
135
|
}, $ = /* @__PURE__ */ p({
|
|
136
136
|
name: "KunButton",
|
|
137
137
|
__name: "Button",
|
|
@@ -198,7 +198,7 @@ var Xe = D({
|
|
|
198
198
|
y(e), r("click", e);
|
|
199
199
|
};
|
|
200
200
|
return (t, n) => (w(), s(A(x.value), _(S.value, {
|
|
201
|
-
class: P(q)("relative inline-flex cursor-pointer items-center justify-center gap-1 overflow-hidden font-medium transition-all hover:opacity-80 active:scale-[0.97]", P(q)(P(X)[e.color], "focus-visible:ring-offset-2 focus-visible:ring-offset-background"), d.value, p.value, h.value, e.fullWidth ? "w-full" : "", g.value, b.value && "pointer-events-none cursor-not-allowed opacity-50 hover:bg-none", e.className),
|
|
201
|
+
class: P(q)("relative inline-flex cursor-pointer items-center justify-center gap-1 overflow-hidden font-medium whitespace-nowrap transition-all hover:opacity-80 active:scale-[0.97] [&_svg]:shrink-0", P(q)(P(X)[e.color], "focus-visible:ring-offset-2 focus-visible:ring-offset-background"), d.value, p.value, h.value, e.fullWidth ? "w-full" : "", g.value, b.value && "pointer-events-none cursor-not-allowed opacity-50 hover:bg-none", e.className),
|
|
202
202
|
onClick: C
|
|
203
203
|
}), {
|
|
204
204
|
default: U(() => [
|
|
@@ -914,7 +914,7 @@ var Xe = D({
|
|
|
914
914
|
"top-left": "-top-1 -left-1",
|
|
915
915
|
"bottom-right": "-bottom-1 -right-1",
|
|
916
916
|
"bottom-left": "-bottom-1 -left-1"
|
|
917
|
-
}, u = R(), d = o(() => !u.default), f = o(() => q("inline-flex items-center justify-center rounded-full font-medium text-white", ie[t.color], t.variant === "dot" ? i[t.size] : a[t.size], d.value ? "" : q("absolute z-10 ring-2 ring-background", s[t.placement]), t.className));
|
|
917
|
+
}, u = R(), d = o(() => !u.default), f = o(() => q("inline-flex items-center justify-center rounded-full font-medium whitespace-nowrap text-white", ie[t.color], t.variant === "dot" ? i[t.size] : a[t.size], d.value ? "" : q("absolute z-10 ring-2 ring-background", s[t.placement]), t.className));
|
|
918
918
|
return (t, i) => d.value ? (w(), l("span", sn, [n.value ? (w(), l("span", {
|
|
919
919
|
key: 0,
|
|
920
920
|
class: y(f.value),
|
|
@@ -947,7 +947,7 @@ var Xe = D({
|
|
|
947
947
|
emits: ["close"],
|
|
948
948
|
setup(e, { emit: t }) {
|
|
949
949
|
let n = e, r = t;
|
|
950
|
-
return (t, i) => (w(), l("span", { class: y(P(q)("inline-flex cursor-default items-center justify-center gap-1 rounded-full font-medium", P(oe)[n.size], P(fe)(n.variant, n.color), e.disabled && "pointer-events-none opacity-50", e.className)) }, [
|
|
950
|
+
return (t, i) => (w(), l("span", { class: y(P(q)("inline-flex cursor-default items-center justify-center gap-1 rounded-full font-medium whitespace-nowrap", P(oe)[n.size], P(fe)(n.variant, n.color), e.disabled && "pointer-events-none opacity-50", e.className)) }, [
|
|
951
951
|
k(t.$slots, "start"),
|
|
952
952
|
k(t.$slots, "default"),
|
|
953
953
|
e.closable ? (w(), l("button", {
|
|
@@ -5618,7 +5618,7 @@ var Xe = D({
|
|
|
5618
5618
|
md: "text-sm",
|
|
5619
5619
|
lg: "text-base",
|
|
5620
5620
|
xl: "text-lg"
|
|
5621
|
-
}, te = o(() => q("flex flex-wrap items-center transition-shadow", a.value, G[r.size], ee[r.size], J[r.size], r.variant === "bordered" && q("border", !r.error && "border-kun"), r.variant === "flat" && "bg-content2", r.error ? ce.danger : ce[r.color], r.error && "border-danger", r.disabled && "opacity-50 cursor-not-allowed bg-default-100", r.readonly && "cursor-default", r.className)), Y = o(() => q("inline-flex items-center gap-1 rounded-full font-medium select-none", fe("flat", r.color), oe[r.size], X[r.color])), ne = o(() => d.value.length >= r.maxTags);
|
|
5621
|
+
}, te = o(() => q("flex flex-wrap items-center transition-shadow", a.value, G[r.size], ee[r.size], J[r.size], r.variant === "bordered" && q("border", !r.error && "border-kun"), r.variant === "flat" && "bg-content2", r.error ? ce.danger : ce[r.color], r.error && "border-danger", r.disabled && "opacity-50 cursor-not-allowed bg-default-100", r.readonly && "cursor-default", r.className)), Y = o(() => q("inline-flex items-center gap-1 rounded-full font-medium whitespace-nowrap select-none", fe("flat", r.color), oe[r.size], X[r.color])), ne = o(() => d.value.length >= r.maxTags);
|
|
5622
5622
|
return (n, r) => (w(), l("div", zo, [
|
|
5623
5623
|
e.label ? (w(), l("label", {
|
|
5624
5624
|
key: 0,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kungal/ui-vue",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.3",
|
|
4
4
|
"description": "KunUI Vue 3 component layer — Nuxt-decoupled. Works in any Vue app; pairs with @kungal/ui-nuxt for Nuxt sugar.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"date-fns": "^4.1.0",
|
|
49
49
|
"focus-trap": "^8.2.1",
|
|
50
50
|
"vue-advanced-cropper": "^2.8.9",
|
|
51
|
-
"@kungal/ui-core": "0.22.
|
|
51
|
+
"@kungal/ui-core": "0.22.3"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"vue": "^3.5.0"
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"vite": "^8.0.16",
|
|
61
61
|
"vue": "^3.5.35",
|
|
62
62
|
"vue-tsc": "^3.3.3",
|
|
63
|
-
"@kungal/ui-tokens": "0.22.
|
|
63
|
+
"@kungal/ui-tokens": "0.22.3"
|
|
64
64
|
},
|
|
65
65
|
"scripts": {
|
|
66
66
|
"build": "vite build && vue-tsc -p tsconfig.build.json",
|