@yuno-payments/dashboard-design-system 0.0.154 → 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"
@@ -1,16 +1,16 @@
1
- import { j as e } from "../../_virtual/jsx-runtime.js";
1
+ import { j as r } from "../../_virtual/jsx-runtime.js";
2
2
  import "react";
3
- import * as r from "@radix-ui/react-avatar";
4
- import { cn as l } from "../../lib/utils.js";
5
- function m({
3
+ import * as e from "@radix-ui/react-avatar";
4
+ import { cn as s } from "../../lib/utils.js";
5
+ function n({
6
6
  className: a,
7
7
  ...t
8
8
  }) {
9
- return /* @__PURE__ */ e.jsx(
10
- r.Root,
9
+ return /* @__PURE__ */ r.jsx(
10
+ e.Root,
11
11
  {
12
12
  "data-slot": "avatar",
13
- className: l(
13
+ className: s(
14
14
  "relative flex size-8 shrink-0 overflow-hidden rounded-full",
15
15
  a
16
16
  ),
@@ -18,29 +18,29 @@ function m({
18
18
  }
19
19
  );
20
20
  }
21
- function n({
21
+ function f({
22
22
  className: a,
23
23
  ...t
24
24
  }) {
25
- return /* @__PURE__ */ e.jsx(
26
- r.Image,
25
+ return /* @__PURE__ */ r.jsx(
26
+ e.Image,
27
27
  {
28
28
  "data-slot": "avatar-image",
29
- className: l("aspect-square size-full", a),
29
+ className: s("aspect-square size-full", a),
30
30
  ...t
31
31
  }
32
32
  );
33
33
  }
34
- function u({
34
+ function m({
35
35
  className: a,
36
36
  ...t
37
37
  }) {
38
- return /* @__PURE__ */ e.jsx(
39
- r.Fallback,
38
+ return /* @__PURE__ */ r.jsx(
39
+ e.Fallback,
40
40
  {
41
41
  "data-slot": "avatar-fallback",
42
- className: l(
43
- "bg-muted flex size-full items-center justify-center rounded-full",
42
+ className: s(
43
+ "bg-surface flex size-full items-center justify-center rounded-full",
44
44
  a
45
45
  ),
46
46
  ...t
@@ -48,7 +48,7 @@ function u({
48
48
  );
49
49
  }
50
50
  export {
51
- m as Avatar,
52
- u as AvatarFallback,
53
- n as AvatarImage
51
+ n as Avatar,
52
+ m as AvatarFallback,
53
+ f as AvatarImage
54
54
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuno-payments/dashboard-design-system",
3
- "version": "0.0.154",
3
+ "version": "0.0.156",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",