@kungal/ui-vue 0.3.3 → 0.3.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.
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"Avatar.vue.d.ts","sourceRoot":"","sources":["../../src/components/Avatar.vue"],"names":[],"mappings":"AAsFA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAgH7C,QAAA,MAAM,YAAY;;;;;6EAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
package/dist/index.js CHANGED
@@ -503,15 +503,7 @@ var Ke = O({
503
503
  case "xl": return "size-12";
504
504
  default: return "size-8";
505
505
  }
506
- }), a = o(() => {
507
- let e = t.user;
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 ?? "");
514
- });
506
+ }), a = o(() => t.user?.avatar || oe(t.user?.name ?? ""));
515
507
  return (n, o) => (T(), l("div", {
516
508
  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)),
517
509
  onClick: o[0] ||= (e) => r(e)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kungal/ui-vue",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
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.3"
51
+ "@kungal/ui-core": "0.3.4"
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.3"
63
+ "@kungal/ui-tokens": "0.3.4"
64
64
  },
65
65
  "scripts": {
66
66
  "build": "vite build && vue-tsc -p tsconfig.build.json",