@yuno-payments/dashboard-design-system 2.3.9 → 2.3.10-beta.1
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/search-field/search-field.js +10 -10
- package/dist/components/molecules/highlight-banner/highlight-banner.js +8 -11
- package/dist/components/molecules/pagination/pagination.d.ts +1 -1
- package/dist/components/organisms/data-table/components/cells/data-table-resize-handle.js +18 -12
- package/dist/components/organisms/tutorial/tutorial.js +42 -21
- package/dist/dashboard-design-system.css +1 -1
- package/dist/index.css +1 -1
- package/dist/index.esm.min.js +1110 -1086
- package/dist/index.umd.min.js +6 -6
- package/dist/lib/utils.d.ts +1 -1
- package/dist/lib/utils.js +5 -5
- package/dist/tokens.css +1 -0
- package/dist/vendor/shadcn/button.js +11 -11
- package/dist/vendor/shadcn/input-group.js +15 -15
- package/dist/vendor/shadcn/input.js +1 -1
- package/package.json +1 -1
- package/registry/components-registry.json +1 -1
|
@@ -40,16 +40,16 @@ const P = D("flex gap-2 w-full", {
|
|
|
40
40
|
disabled: x,
|
|
41
41
|
layout: j = "vertical",
|
|
42
42
|
className: $,
|
|
43
|
-
inputProps:
|
|
43
|
+
inputProps: v,
|
|
44
44
|
...E
|
|
45
45
|
}, i) => {
|
|
46
|
-
const M = Y(), u = O ||
|
|
46
|
+
const M = Y(), u = O || v?.id || M, b = !!a, [o, d] = n(m), [f, R] = n(() => {
|
|
47
47
|
if (c) {
|
|
48
48
|
const e = localStorage.getItem(`${c}_searchfield`);
|
|
49
49
|
return e ? JSON.parse(e) : [];
|
|
50
50
|
}
|
|
51
51
|
return [];
|
|
52
|
-
}), [C, L] = n([]), [B,
|
|
52
|
+
}), [C, L] = n([]), [B, h] = n(!1), [J, I] = n(!1), g = V(null), _ = V(null), G = (e) => {
|
|
53
53
|
const s = e.target.value;
|
|
54
54
|
d(s), (s === "" || H) && l(s);
|
|
55
55
|
}, W = (e) => {
|
|
@@ -69,11 +69,11 @@ const P = D("flex gap-2 w-full", {
|
|
|
69
69
|
}, X = () => {
|
|
70
70
|
d(""), l(""), g.current?.focus();
|
|
71
71
|
}, q = (e) => {
|
|
72
|
-
d(e), l(e),
|
|
72
|
+
d(e), l(e), h(!1), g.current?.focus();
|
|
73
73
|
}, A = () => {
|
|
74
|
-
|
|
74
|
+
h(!0);
|
|
75
75
|
}, Q = () => {
|
|
76
|
-
J ||
|
|
76
|
+
J || h(!1);
|
|
77
77
|
};
|
|
78
78
|
return z(() => {
|
|
79
79
|
d(m);
|
|
@@ -108,12 +108,12 @@ const P = D("flex gap-2 w-full", {
|
|
|
108
108
|
"aria-invalid": b,
|
|
109
109
|
"aria-describedby": p || a ? `${u}-description` : void 0,
|
|
110
110
|
...E,
|
|
111
|
-
...
|
|
111
|
+
...v,
|
|
112
112
|
id: u,
|
|
113
113
|
className: r(
|
|
114
114
|
b && "border-destructive focus-visible:border-destructive",
|
|
115
115
|
"!px-9",
|
|
116
|
-
|
|
116
|
+
v?.className
|
|
117
117
|
)
|
|
118
118
|
}
|
|
119
119
|
),
|
|
@@ -124,7 +124,7 @@ const P = D("flex gap-2 w-full", {
|
|
|
124
124
|
size: "sm",
|
|
125
125
|
onClick: S,
|
|
126
126
|
className: r(
|
|
127
|
-
"absolute
|
|
127
|
+
"absolute start-3 top-1/2 -translate-y-1/2 text-muted-foreground dark:text-foreground",
|
|
128
128
|
!x && "cursor-pointer hover:text-foreground transition-colors"
|
|
129
129
|
)
|
|
130
130
|
}
|
|
@@ -137,7 +137,7 @@ const P = D("flex gap-2 w-full", {
|
|
|
137
137
|
weight: "fill",
|
|
138
138
|
onClick: X,
|
|
139
139
|
className: r(
|
|
140
|
-
"absolute
|
|
140
|
+
"absolute end-3 top-1/2 -translate-y-1/2 text-muted-foreground",
|
|
141
141
|
!x && "cursor-pointer hover:text-foreground transition-colors"
|
|
142
142
|
)
|
|
143
143
|
}
|
|
@@ -1,23 +1,20 @@
|
|
|
1
1
|
import { j as e } from "../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import { forwardRef as
|
|
2
|
+
import { forwardRef as x } from "react";
|
|
3
3
|
import { cn as i } from "../../../lib/utils.js";
|
|
4
4
|
import { Icon as c } from "../../atoms/icon/icon.js";
|
|
5
|
-
const
|
|
6
|
-
({ className: s, icon: d, title: o, description: a, button: t, variant:
|
|
7
|
-
const r =
|
|
5
|
+
const f = x(
|
|
6
|
+
({ className: s, icon: d, title: o, description: a, button: t, variant: n = "default", ...l }, m) => {
|
|
7
|
+
const r = n === "secondary";
|
|
8
8
|
return /* @__PURE__ */ e.jsxs(
|
|
9
9
|
"div",
|
|
10
10
|
{
|
|
11
|
-
ref:
|
|
11
|
+
ref: m,
|
|
12
12
|
className: i(
|
|
13
13
|
"flex items-center gap-6 rounded-xl border p-6",
|
|
14
14
|
r ? "border-border bg-background" : "border-primary bg-primary",
|
|
15
15
|
s
|
|
16
16
|
),
|
|
17
|
-
|
|
18
|
-
boxShadow: "0 1px 3px 0 rgba(0, 0, 0, 0.10), 0 1px 2px -1px rgba(0, 0, 0, 0.10)"
|
|
19
|
-
},
|
|
20
|
-
...n,
|
|
17
|
+
...l,
|
|
21
18
|
children: [
|
|
22
19
|
/* @__PURE__ */ e.jsx(
|
|
23
20
|
"div",
|
|
@@ -68,7 +65,7 @@ const p = m(
|
|
|
68
65
|
);
|
|
69
66
|
}
|
|
70
67
|
);
|
|
71
|
-
|
|
68
|
+
f.displayName = "HighlightBanner";
|
|
72
69
|
export {
|
|
73
|
-
|
|
70
|
+
f as HighlightBanner
|
|
74
71
|
};
|
|
@@ -45,7 +45,7 @@ interface PaginationProps extends ComponentProps<"nav"> {
|
|
|
45
45
|
*/
|
|
46
46
|
maxVisiblePages?: number;
|
|
47
47
|
/**
|
|
48
|
-
* Language for translations. Falls back to localStorage "
|
|
48
|
+
* Language for translations. Falls back to localStorage "lang", then "en".
|
|
49
49
|
*/
|
|
50
50
|
lang?: PaginationLanguage;
|
|
51
51
|
/**
|
|
@@ -1,24 +1,30 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { RESIZE_HANDLE_CONFIG as
|
|
3
|
-
function
|
|
4
|
-
onMouseDown:
|
|
5
|
-
onTouchStart:
|
|
1
|
+
import { j as e } from "../../../../../_virtual/jsx-runtime.js";
|
|
2
|
+
import { RESIZE_HANDLE_CONFIG as t } from "../../utils/data-table-constants.js";
|
|
3
|
+
function c({
|
|
4
|
+
onMouseDown: n,
|
|
5
|
+
onTouchStart: r
|
|
6
6
|
}) {
|
|
7
|
-
|
|
7
|
+
const s = (o) => {
|
|
8
|
+
o.stopPropagation(), n(o);
|
|
9
|
+
}, a = (o) => {
|
|
10
|
+
o.stopPropagation(), r(o);
|
|
11
|
+
};
|
|
12
|
+
return /* @__PURE__ */ e.jsx(
|
|
8
13
|
"div",
|
|
9
14
|
{
|
|
10
|
-
onMouseDown:
|
|
11
|
-
onTouchStart:
|
|
12
|
-
|
|
13
|
-
|
|
15
|
+
onMouseDown: s,
|
|
16
|
+
onTouchStart: a,
|
|
17
|
+
onPointerDown: (o) => o.stopPropagation(),
|
|
18
|
+
className: `absolute right-0 top-0 h-full ${t.width} cursor-col-resize select-none touch-none flex items-center justify-center hover:bg-neutral-100`,
|
|
19
|
+
children: /* @__PURE__ */ e.jsx(
|
|
14
20
|
"div",
|
|
15
21
|
{
|
|
16
|
-
className: `${
|
|
22
|
+
className: `${t.lineHeight} ${t.lineWidth} bg-neutral-300`
|
|
17
23
|
}
|
|
18
24
|
)
|
|
19
25
|
}
|
|
20
26
|
);
|
|
21
27
|
}
|
|
22
28
|
export {
|
|
23
|
-
|
|
29
|
+
c as DataTableResizeHandle
|
|
24
30
|
};
|
|
@@ -3,28 +3,28 @@ import { forwardRef as C } from "react";
|
|
|
3
3
|
import { cn as j } from "../../../lib/utils.js";
|
|
4
4
|
import { Button as c } from "../../atoms/button/button.js";
|
|
5
5
|
import { Icon as y } from "../../atoms/icon/icon.js";
|
|
6
|
-
import { Typography as
|
|
6
|
+
import { Typography as o } from "../../atoms/typography/typography.js";
|
|
7
7
|
import { Link as b } from "../../atoms/link/link.js";
|
|
8
8
|
import { Badge as w } from "../../atoms/badge/badge.js";
|
|
9
9
|
const B = C(
|
|
10
10
|
({
|
|
11
|
-
continuous:
|
|
11
|
+
continuous: x,
|
|
12
12
|
step: a,
|
|
13
13
|
closeProps: l,
|
|
14
|
-
primaryProps:
|
|
15
|
-
tooltipProps:
|
|
16
|
-
withTag:
|
|
14
|
+
primaryProps: r,
|
|
15
|
+
tooltipProps: v,
|
|
16
|
+
withTag: g = !1,
|
|
17
17
|
tagLabel: f,
|
|
18
|
-
buttonGroup:
|
|
18
|
+
buttonGroup: n = [],
|
|
19
19
|
width: i,
|
|
20
20
|
skipProps: t,
|
|
21
21
|
index: h,
|
|
22
22
|
size: d
|
|
23
23
|
}, N) => {
|
|
24
|
-
const
|
|
24
|
+
const p = (s) => {
|
|
25
25
|
l?.onClick?.(s);
|
|
26
|
-
},
|
|
27
|
-
m(),
|
|
26
|
+
}, u = (s, m) => {
|
|
27
|
+
m(), p(s);
|
|
28
28
|
};
|
|
29
29
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
30
30
|
/* @__PURE__ */ e.jsx("style", { children: `
|
|
@@ -35,17 +35,24 @@ const B = C(
|
|
|
35
35
|
/* @__PURE__ */ e.jsxs(
|
|
36
36
|
"div",
|
|
37
37
|
{
|
|
38
|
-
...
|
|
38
|
+
...v,
|
|
39
39
|
ref: N,
|
|
40
40
|
className: j(
|
|
41
|
-
"bg-
|
|
41
|
+
"bg-popover rounded-md border border-border shadow-md p-4",
|
|
42
42
|
"max-w-[368px]",
|
|
43
43
|
i && `max-w-[${i}px]`
|
|
44
44
|
),
|
|
45
45
|
style: i ? { maxWidth: `${i}px` } : void 0,
|
|
46
46
|
children: [
|
|
47
|
-
/* @__PURE__ */ e.jsxs("div", { className: "flex items-start justify-between gap-4 mb-
|
|
48
|
-
/* @__PURE__ */ e.jsx("div", { className: "flex-1", children: a.title && /* @__PURE__ */ e.jsx(
|
|
47
|
+
/* @__PURE__ */ e.jsxs("div", { className: "flex items-start justify-between gap-4 mb-2", children: [
|
|
48
|
+
/* @__PURE__ */ e.jsx("div", { className: "flex-1", children: a.title && /* @__PURE__ */ e.jsx(
|
|
49
|
+
o,
|
|
50
|
+
{
|
|
51
|
+
variant: "h4",
|
|
52
|
+
className: "text-base font-medium leading-none",
|
|
53
|
+
children: a.title
|
|
54
|
+
}
|
|
55
|
+
) }),
|
|
49
56
|
!a.hideCloseButton && /* @__PURE__ */ e.jsx(
|
|
50
57
|
c,
|
|
51
58
|
{
|
|
@@ -57,7 +64,14 @@ const B = C(
|
|
|
57
64
|
}
|
|
58
65
|
)
|
|
59
66
|
] }),
|
|
60
|
-
/* @__PURE__ */ e.jsx("div", { className: "mb-
|
|
67
|
+
/* @__PURE__ */ e.jsx("div", { className: "mb-6", children: /* @__PURE__ */ e.jsx(
|
|
68
|
+
o,
|
|
69
|
+
{
|
|
70
|
+
variant: "sm",
|
|
71
|
+
className: "text-muted-foreground font-normal",
|
|
72
|
+
children: a.content
|
|
73
|
+
}
|
|
74
|
+
) }),
|
|
61
75
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
62
76
|
t && h !== (d ?? 0) - 1 && /* @__PURE__ */ e.jsx("div", { className: "flex-1", children: /* @__PURE__ */ e.jsx(
|
|
63
77
|
b,
|
|
@@ -69,31 +83,38 @@ const B = C(
|
|
|
69
83
|
children: t.title
|
|
70
84
|
}
|
|
71
85
|
) }),
|
|
72
|
-
(d ?? 0) > 1 && /* @__PURE__ */ e.jsx("div", { className: "flex-shrink-0", children: /* @__PURE__ */ e.jsxs(
|
|
86
|
+
(d ?? 0) > 1 && /* @__PURE__ */ e.jsx("div", { className: "flex-shrink-0", children: /* @__PURE__ */ e.jsxs(o, { variant: "xs", className: "text-muted-foreground mr-6", children: [
|
|
73
87
|
"Step ",
|
|
74
88
|
(h ?? 0) + 1,
|
|
75
89
|
" of ",
|
|
76
90
|
d
|
|
77
91
|
] }) }),
|
|
78
|
-
|
|
92
|
+
x && r && /* @__PURE__ */ e.jsx("div", { className: "flex-shrink-0", children: /* @__PURE__ */ e.jsx(c, { size: "default", ...r, children: r.title }) })
|
|
79
93
|
] }),
|
|
80
|
-
!
|
|
94
|
+
!x && n.length > 0 && /* @__PURE__ */ e.jsxs(
|
|
81
95
|
"div",
|
|
82
96
|
{
|
|
83
97
|
className: j(
|
|
84
98
|
"flex items-center mt-6 gap-3",
|
|
85
|
-
|
|
99
|
+
n.length > 1 ? "justify-between" : "justify-end"
|
|
86
100
|
),
|
|
87
101
|
children: [
|
|
88
|
-
|
|
89
|
-
|
|
102
|
+
g && f && /* @__PURE__ */ e.jsx(
|
|
103
|
+
w,
|
|
104
|
+
{
|
|
105
|
+
variant: "default",
|
|
106
|
+
className: "bg-green-100 text-green-800",
|
|
107
|
+
children: f
|
|
108
|
+
}
|
|
109
|
+
),
|
|
110
|
+
n.map((s, m) => /* @__PURE__ */ e.jsx(
|
|
90
111
|
c,
|
|
91
112
|
{
|
|
92
113
|
variant: s.variant || "default",
|
|
93
114
|
size: s.size || "default",
|
|
94
115
|
loading: s.loading,
|
|
95
116
|
disabled: s.disabled,
|
|
96
|
-
onClick: (
|
|
117
|
+
onClick: (k) => u(k, s.event),
|
|
97
118
|
children: s.label
|
|
98
119
|
},
|
|
99
120
|
m
|