@yuno-payments/dashboard-design-system 0.0.58 → 0.0.59
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,10 +1,10 @@
|
|
|
1
1
|
import { j as t } from "../../../_virtual/jsx-runtime.js";
|
|
2
2
|
import { forwardRef as c } from "react";
|
|
3
3
|
import { cva as r } from "../../../node_modules/class-variance-authority/dist/index.js";
|
|
4
|
+
import { UserIcon as v } from "../../../node_modules/@phosphor-icons/react/dist/csr/User.es.js";
|
|
4
5
|
import { cn as s } from "../../../lib/utils.js";
|
|
5
|
-
import { getNameInitials as
|
|
6
|
-
import { Avatar as
|
|
7
|
-
import z from "../../../node_modules/lucide-react/dist/esm/icons/user.js";
|
|
6
|
+
import { getNameInitials as x } from "./avatar.utils.js";
|
|
7
|
+
import { Avatar as p, AvatarImage as g, AvatarFallback as z } from "../../../vendor/shadcn/avatar.js";
|
|
8
8
|
const j = r(
|
|
9
9
|
"relative flex shrink-0 overflow-hidden rounded-full",
|
|
10
10
|
{
|
|
@@ -39,10 +39,10 @@ const j = r(
|
|
|
39
39
|
}
|
|
40
40
|
), h = c(
|
|
41
41
|
({ size: l, src: i, alt: d, name: e, fallback: o, className: f, ...n }, u) => {
|
|
42
|
-
const m = e ?
|
|
42
|
+
const m = e ? x(e) : void 0;
|
|
43
43
|
let a;
|
|
44
|
-
return o ? a = o : m ? a = m : a = /* @__PURE__ */ t.jsx(
|
|
45
|
-
|
|
44
|
+
return o ? a = o : m ? a = m : a = /* @__PURE__ */ t.jsx(v, { className: "size-1/2" }), /* @__PURE__ */ t.jsxs(
|
|
45
|
+
p,
|
|
46
46
|
{
|
|
47
47
|
ref: u,
|
|
48
48
|
className: s(j({ size: l }), f),
|
|
@@ -50,7 +50,7 @@ const j = r(
|
|
|
50
50
|
...n,
|
|
51
51
|
children: [
|
|
52
52
|
i && /* @__PURE__ */ t.jsx(
|
|
53
|
-
|
|
53
|
+
g,
|
|
54
54
|
{
|
|
55
55
|
src: i,
|
|
56
56
|
alt: d || e || "Avatar",
|
|
@@ -60,7 +60,7 @@ const j = r(
|
|
|
60
60
|
}
|
|
61
61
|
),
|
|
62
62
|
/* @__PURE__ */ t.jsx(
|
|
63
|
-
|
|
63
|
+
z,
|
|
64
64
|
{
|
|
65
65
|
className: s(b({ size: l })),
|
|
66
66
|
"data-testid": "avatar-fallback",
|
|
@@ -4,18 +4,18 @@ import { Checkbox as d } from "../../../vendor/shadcn/checkbox.js";
|
|
|
4
4
|
import { cn as m } from "../../../lib/utils.js";
|
|
5
5
|
import { Label as h } from "../../../vendor/shadcn/label.js";
|
|
6
6
|
const u = p(
|
|
7
|
-
({ label:
|
|
8
|
-
const l = f(), s =
|
|
7
|
+
({ label: o, description: t, id: x, name: a, disabled: r, ...n }, i) => {
|
|
8
|
+
const l = f(), s = x || a || l, c = /* @__PURE__ */ e.jsx(
|
|
9
9
|
d,
|
|
10
10
|
{
|
|
11
11
|
ref: i,
|
|
12
12
|
id: s,
|
|
13
|
-
disabled:
|
|
13
|
+
disabled: r,
|
|
14
14
|
...n,
|
|
15
15
|
className: "size-3.5 cursor-pointer"
|
|
16
16
|
}
|
|
17
17
|
);
|
|
18
|
-
return
|
|
18
|
+
return o ? /* @__PURE__ */ e.jsxs("div", { className: "flex items-start gap-2", children: [
|
|
19
19
|
c,
|
|
20
20
|
/* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
21
21
|
/* @__PURE__ */ e.jsx(
|
|
@@ -24,9 +24,9 @@ const u = p(
|
|
|
24
24
|
htmlFor: s,
|
|
25
25
|
className: m(
|
|
26
26
|
"text-sm leading-none cursor-pointer",
|
|
27
|
-
|
|
27
|
+
r && "text-muted-foreground"
|
|
28
28
|
),
|
|
29
|
-
children:
|
|
29
|
+
children: o
|
|
30
30
|
}
|
|
31
31
|
),
|
|
32
32
|
t && /* @__PURE__ */ e.jsx(
|
|
@@ -34,7 +34,7 @@ const u = p(
|
|
|
34
34
|
{
|
|
35
35
|
className: m(
|
|
36
36
|
"text-sm text-neutral-500",
|
|
37
|
-
|
|
37
|
+
r && "opacity-50"
|
|
38
38
|
),
|
|
39
39
|
children: t
|
|
40
40
|
}
|
|
@@ -1,34 +1,55 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { RadioGroupItem as
|
|
1
|
+
import { j as r } from "../../../_virtual/jsx-runtime.js";
|
|
2
|
+
import { RadioGroupItem as d } from "../../../vendor/shadcn/radio-group.js";
|
|
3
|
+
import { cn as l } from "../../../lib/utils.js";
|
|
3
4
|
import { Label as a } from "../../../vendor/shadcn/label.js";
|
|
4
|
-
const
|
|
5
|
-
option:
|
|
6
|
-
radioId:
|
|
7
|
-
isInlineLayout:
|
|
8
|
-
}) => /* @__PURE__ */
|
|
5
|
+
const u = ({
|
|
6
|
+
option: e,
|
|
7
|
+
radioId: s,
|
|
8
|
+
isInlineLayout: t = !1
|
|
9
|
+
}) => /* @__PURE__ */ r.jsxs(
|
|
9
10
|
"div",
|
|
10
11
|
{
|
|
11
|
-
className:
|
|
12
|
+
className: t ? "flex items-center gap-3" : "flex items-start gap-3",
|
|
12
13
|
children: [
|
|
13
|
-
/* @__PURE__ */
|
|
14
|
-
|
|
14
|
+
/* @__PURE__ */ r.jsx(
|
|
15
|
+
d,
|
|
15
16
|
{
|
|
16
|
-
value:
|
|
17
|
-
id:
|
|
18
|
-
disabled:
|
|
17
|
+
value: e.value,
|
|
18
|
+
id: s,
|
|
19
|
+
disabled: e.disabled,
|
|
19
20
|
className: "size-3.5 data-[state=unchecked]:bg-white border-border cursor-pointer"
|
|
20
21
|
}
|
|
21
22
|
),
|
|
22
|
-
|
|
23
|
-
/* @__PURE__ */
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
t ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
24
|
+
/* @__PURE__ */ r.jsx(
|
|
25
|
+
a,
|
|
26
|
+
{
|
|
27
|
+
htmlFor: s,
|
|
28
|
+
className: l(
|
|
29
|
+
"cursor-pointer",
|
|
30
|
+
e.disabled && "text-muted-foreground"
|
|
31
|
+
),
|
|
32
|
+
children: e.label
|
|
33
|
+
}
|
|
34
|
+
),
|
|
35
|
+
e.description && /* @__PURE__ */ r.jsx("p", { className: "text-sm text-neutral-500 ml-auto", children: e.description })
|
|
36
|
+
] }) : /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col gap-1.5 flex-1", children: [
|
|
37
|
+
/* @__PURE__ */ r.jsx(
|
|
38
|
+
a,
|
|
39
|
+
{
|
|
40
|
+
htmlFor: s,
|
|
41
|
+
className: l(
|
|
42
|
+
"cursor-pointer",
|
|
43
|
+
e.disabled && "text-muted-foreground"
|
|
44
|
+
),
|
|
45
|
+
children: e.label
|
|
46
|
+
}
|
|
47
|
+
),
|
|
48
|
+
e.description && /* @__PURE__ */ r.jsx("p", { className: "text-sm text-neutral-500", children: e.description })
|
|
28
49
|
] })
|
|
29
50
|
]
|
|
30
51
|
}
|
|
31
52
|
);
|
|
32
53
|
export {
|
|
33
|
-
|
|
54
|
+
u as RadioGroupOption
|
|
34
55
|
};
|
package/package.json
CHANGED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import e from "../createLucideIcon.js";
|
|
2
|
-
const c = [
|
|
3
|
-
["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
|
|
4
|
-
["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
|
|
5
|
-
], r = e("user", c);
|
|
6
|
-
export {
|
|
7
|
-
c as __iconNode,
|
|
8
|
-
r as default
|
|
9
|
-
};
|