@yuno-payments/dashboard-design-system 0.0.155 → 0.0.156

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,5 +1,5 @@
1
1
  import { j as t } from "../../../_virtual/jsx-runtime.js";
2
- import { forwardRef as c } from "react";
2
+ import { forwardRef as u } from "react";
3
3
  import { cva as r } from "../../../node_modules/class-variance-authority/dist/index.js";
4
4
  import { UserIcon as v } from "../../../node_modules/@phosphor-icons/react/dist/csr/User.es.js";
5
5
  import { cn as s } from "../../../lib/utils.js";
@@ -22,7 +22,7 @@ const j = r(
22
22
  }
23
23
  }
24
24
  ), A = r("aspect-square h-full w-full object-cover"), b = r(
25
- "flex h-full w-full items-center justify-center rounded-full bg-muted text-muted-foreground font-medium uppercase",
25
+ "flex h-full w-full items-center justify-center rounded-full bg-surface text-muted-foreground font-medium uppercase",
26
26
  {
27
27
  variants: {
28
28
  size: {
@@ -37,15 +37,15 @@ const j = r(
37
37
  size: "default"
38
38
  }
39
39
  }
40
- ), h = c(
41
- ({ size: l, src: i, alt: d, name: e, fallback: o, className: f, ...n }, u) => {
42
- const m = e ? x(e) : void 0;
40
+ ), h = u(
41
+ ({ size: l, src: i, alt: m, name: e, fallback: o, className: d, ...n }, c) => {
42
+ const f = e ? x(e) : void 0;
43
43
  let a;
44
- return o ? a = o : m ? a = m : a = /* @__PURE__ */ t.jsx(v, { className: "size-1/2" }), /* @__PURE__ */ t.jsxs(
44
+ return o ? a = o : f ? a = f : a = /* @__PURE__ */ t.jsx(v, { className: "size-1/2" }), /* @__PURE__ */ t.jsxs(
45
45
  p,
46
46
  {
47
- ref: u,
48
- className: s(j({ size: l }), f),
47
+ ref: c,
48
+ className: s(j({ size: l }), d),
49
49
  "data-testid": "avatar",
50
50
  ...n,
51
51
  children: [
@@ -53,7 +53,7 @@ const j = r(
53
53
  g,
54
54
  {
55
55
  src: i,
56
- alt: d || e || "Avatar",
56
+ alt: m || e || "Avatar",
57
57
  className: s(A()),
58
58
  "data-testid": "avatar-image",
59
59
  "data-slot": "avatar-image"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuno-payments/dashboard-design-system",
3
- "version": "0.0.155",
3
+ "version": "0.0.156",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",