@kungal/ui-vue 0.3.2 → 0.3.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":"Avatar.vue.d.ts","sourceRoot":"","sources":["../../src/components/Avatar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Avatar.vue.d.ts","sourceRoot":"","sources":["../../src/components/Avatar.vue"],"names":[],"mappings":"AA+FA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAyH7C,QAAA,MAAM,YAAY;;;;;6EAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
package/dist/index.js
CHANGED
|
@@ -505,7 +505,12 @@ var Ke = O({
|
|
|
505
505
|
}
|
|
506
506
|
}), a = o(() => {
|
|
507
507
|
let e = t.user;
|
|
508
|
-
|
|
508
|
+
if (e?.avatar) {
|
|
509
|
+
if (t.size === "original" || t.size === "original-sm") return e.avatar;
|
|
510
|
+
let n = /\/[0-9a-f]{2}\/[0-9a-f]{2}\/[0-9a-f]+\.webp$/i.test(e.avatar) ? "_" : "-";
|
|
511
|
+
return e.avatar.replace(/\.webp$/, `${n}100.webp`);
|
|
512
|
+
}
|
|
513
|
+
return oe(e?.name ?? "");
|
|
509
514
|
});
|
|
510
515
|
return (n, o) => (T(), l("div", {
|
|
511
516
|
class: b(P(W)("flex shrink-0 cursor-pointer justify-center rounded-full transition duration-150 ease-in-out hover:scale-110", i.value, e.className)),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kungal/ui-vue",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.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.3.
|
|
51
|
+
"@kungal/ui-core": "0.3.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.3.
|
|
63
|
+
"@kungal/ui-tokens": "0.3.3"
|
|
64
64
|
},
|
|
65
65
|
"scripts": {
|
|
66
66
|
"build": "vite build && vue-tsc -p tsconfig.build.json",
|