@yuno-payments/dashboard-design-system 0.0.58 → 0.0.60
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.
- package/dist/components/atoms/avatar/avatar.js +8 -8
- package/dist/components/atoms/checkbox/checkbox.js +7 -7
- package/dist/components/atoms/radio-group/radio-group-option.js +41 -20
- package/dist/vendor/shadcn/input-group.d.ts +1 -1
- package/dist/vendor/shadcn/input.d.ts +1 -1
- package/dist/vendor/shadcn/input.js +13 -11
- package/package.json +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/user.js +0 -9
|
@@ -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
|
};
|
|
@@ -5,7 +5,7 @@ type InputGroupAddonAlign = "inline-start" | "inline-end" | "block-start" | "blo
|
|
|
5
5
|
declare const InputGroupAddon: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
6
6
|
align?: InputGroupAddonAlign;
|
|
7
7
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
-
declare const InputGroupInput: React.ForwardRefExoticComponent<Omit<React.
|
|
8
|
+
declare const InputGroupInput: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
9
9
|
declare const InputGroupTextarea: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & React.RefAttributes<HTMLTextAreaElement>, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
|
|
10
10
|
declare const InputGroupText: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
|
|
11
11
|
declare const InputGroupButton: React.ForwardRefExoticComponent<Omit<Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<(props?: ({
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare
|
|
2
|
+
declare const Input: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
3
3
|
export { Input };
|
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import "react";
|
|
3
|
-
import { cn as
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { j as o } from "../../_virtual/jsx-runtime.js";
|
|
2
|
+
import * as n from "react";
|
|
3
|
+
import { cn as a } from "../../lib/utils.js";
|
|
4
|
+
const l = n.forwardRef(
|
|
5
|
+
({ className: e, type: r, ...i }, t) => /* @__PURE__ */ o.jsx(
|
|
6
6
|
"input",
|
|
7
7
|
{
|
|
8
|
-
type:
|
|
8
|
+
type: r,
|
|
9
|
+
ref: t,
|
|
9
10
|
"data-slot": "input",
|
|
10
|
-
className:
|
|
11
|
+
className: a(
|
|
11
12
|
"font-normal file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-white px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-normal disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 text-sm",
|
|
12
13
|
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
13
14
|
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
14
15
|
e
|
|
15
16
|
),
|
|
16
|
-
...
|
|
17
|
+
...i
|
|
17
18
|
}
|
|
18
|
-
)
|
|
19
|
-
|
|
19
|
+
)
|
|
20
|
+
);
|
|
21
|
+
l.displayName = "Input";
|
|
20
22
|
export {
|
|
21
|
-
|
|
23
|
+
l as Input
|
|
22
24
|
};
|
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
|
-
};
|