@yuno-payments/dashboard-design-system 2.2.0 → 2.2.1-beta.2
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/checkbox/checkbox.js +16 -16
- package/dist/components/atoms/filter/filter-date-range.d.ts +31 -1
- package/dist/components/atoms/filter/filter-date-range.js +140 -144
- package/dist/components/atoms/filter/filter-multi-input.d.ts +11 -0
- package/dist/components/atoms/filter/filter-multi-input.js +42 -36
- package/dist/components/atoms/filter/filter-translations.d.ts +75 -0
- package/dist/components/atoms/filter/filter-translations.js +450 -0
- package/dist/components/atoms/filter/filter.d.ts +30 -0
- package/dist/components/atoms/filter/filter.js +191 -171
- package/dist/components/atoms/filter/index.d.ts +2 -2
- package/dist/components/atoms/filter-dropdown/filter-dropdown.d.ts +17 -2
- package/dist/components/atoms/filter-dropdown/filter-dropdown.js +160 -151
- package/dist/components/atoms/icon/directional-icons.d.ts +12 -0
- package/dist/components/atoms/icon/directional-icons.js +38 -0
- package/dist/components/atoms/icon/icon.d.ts +6 -0
- package/dist/components/atoms/icon/icon.js +27 -21
- package/dist/components/atoms/icon/index.d.ts +1 -0
- package/dist/components/atoms/index.d.ts +1 -1
- package/dist/components/atoms/radio-group/radio-group-option.js +2 -2
- package/dist/components/atoms/select/select.js +2 -2
- package/dist/components/molecules/dialog-header/dialog-header.d.ts +1 -1
- package/dist/components/molecules/pagination/index.d.ts +1 -0
- package/dist/components/molecules/pagination/page-numbers.d.ts +3 -1
- package/dist/components/molecules/pagination/page-numbers.js +10 -9
- package/dist/components/molecules/pagination/pagination-translations.d.ts +33 -0
- package/dist/components/molecules/pagination/pagination-translations.js +82 -0
- package/dist/components/molecules/pagination/pagination.d.ts +9 -0
- package/dist/components/molecules/pagination/pagination.js +46 -38
- package/dist/components/organisms/data-table/components/column-header/data-table-column-header-menu.d.ts +3 -1
- package/dist/components/organisms/data-table/components/column-header/data-table-column-header-menu.js +28 -27
- package/dist/components/organisms/data-table/components/column-header/data-table-column-header.js +44 -41
- package/dist/components/organisms/data-table/components/data-table-header.js +11 -12
- package/dist/components/organisms/data-table/components/dialogs/data-table-manage-columns-dialog.d.ts +3 -1
- package/dist/components/organisms/data-table/components/dialogs/data-table-manage-columns-dialog.js +45 -44
- package/dist/components/organisms/data-table/data-table.d.ts +27 -2
- package/dist/components/organisms/data-table/data-table.js +146 -134
- package/dist/components/organisms/data-table/data-table.types.d.ts +68 -0
- package/dist/components/organisms/data-table/data-table.types.js +252 -0
- package/dist/components/organisms/data-table/index.d.ts +2 -1
- package/dist/components/organisms/data-table/utils/data-table-utils.js +11 -8
- package/dist/dashboard-design-system.css +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.esm.min.js +9394 -8512
- package/dist/index.js +208 -202
- package/dist/index.umd.min.js +25 -25
- package/dist/lib/utils.d.ts +13 -0
- package/dist/lib/utils.js +34 -10
- package/dist/vendor/shadcn/pagination.d.ts +19 -3
- package/dist/vendor/shadcn/pagination.js +41 -37
- package/dist/vendor/shadcn/select.js +33 -33
- package/dist/vendor/shadcn/switch.js +1 -1
- package/package.json +4 -2
- package/registry/components-registry.json +38 -12
package/dist/lib/utils.d.ts
CHANGED
|
@@ -16,3 +16,16 @@ export declare function normalizeDimension(value: number | string | undefined):
|
|
|
16
16
|
* @returns The truncated string or the original if it's shorter than strLen
|
|
17
17
|
*/
|
|
18
18
|
export declare function truncate(fullStr: string, strLen?: number, separator?: string, frontChars?: number, backChars?: number): string;
|
|
19
|
+
/**
|
|
20
|
+
* Supported language codes for i18n
|
|
21
|
+
*/
|
|
22
|
+
export type SupportedLanguage = "en" | "es" | "ja" | "ar" | "fr" | "pt" | "tr" | "ru" | "de" | "zh";
|
|
23
|
+
/**
|
|
24
|
+
* localStorage key for storing the user's preferred language
|
|
25
|
+
*/
|
|
26
|
+
export declare const LANGUAGE_STORAGE_KEY = "yuno-lang";
|
|
27
|
+
/**
|
|
28
|
+
* Gets the default language from localStorage, falling back to "en"
|
|
29
|
+
* @returns The language code from localStorage or "en" as default
|
|
30
|
+
*/
|
|
31
|
+
export declare function getDefaultLanguage(): SupportedLanguage;
|
package/dist/lib/utils.js
CHANGED
|
@@ -1,17 +1,41 @@
|
|
|
1
|
-
import { clsx as
|
|
2
|
-
import { twMerge as
|
|
3
|
-
function
|
|
4
|
-
return
|
|
1
|
+
import { clsx as i } from "../node_modules/clsx/dist/clsx.js";
|
|
2
|
+
import { twMerge as u } from "../node_modules/tailwind-merge/dist/bundle-mjs.js";
|
|
3
|
+
function a(...n) {
|
|
4
|
+
return u(i(n));
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function d(n) {
|
|
7
7
|
if (n !== void 0)
|
|
8
8
|
return typeof n == "number" ? `${n}px` : n;
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
return n.length <=
|
|
10
|
+
function m(n, t = 8, e = "...", r = 3, o = 4) {
|
|
11
|
+
return n.length <= t ? n : n.substring(0, r) + e + n.substring(n.length - o);
|
|
12
|
+
}
|
|
13
|
+
const c = [
|
|
14
|
+
"en",
|
|
15
|
+
"es",
|
|
16
|
+
"ja",
|
|
17
|
+
"ar",
|
|
18
|
+
"fr",
|
|
19
|
+
"pt",
|
|
20
|
+
"tr",
|
|
21
|
+
"ru",
|
|
22
|
+
"de",
|
|
23
|
+
"zh"
|
|
24
|
+
], g = "yuno-lang";
|
|
25
|
+
function p() {
|
|
26
|
+
if (typeof window > "u") return "en";
|
|
27
|
+
try {
|
|
28
|
+
const n = localStorage.getItem(g);
|
|
29
|
+
if (n && c.includes(n))
|
|
30
|
+
return n;
|
|
31
|
+
} catch {
|
|
32
|
+
}
|
|
33
|
+
return "en";
|
|
12
34
|
}
|
|
13
35
|
export {
|
|
14
|
-
g as
|
|
15
|
-
|
|
16
|
-
|
|
36
|
+
g as LANGUAGE_STORAGE_KEY,
|
|
37
|
+
a as cn,
|
|
38
|
+
p as getDefaultLanguage,
|
|
39
|
+
d as normalizeDimension,
|
|
40
|
+
m as truncate
|
|
17
41
|
};
|
|
@@ -15,16 +15,32 @@ declare const PaginationLink: {
|
|
|
15
15
|
({ className, isActive, size, ...props }: PaginationLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
displayName: string;
|
|
17
17
|
};
|
|
18
|
+
type PaginationPreviousProps = React.ComponentProps<typeof PaginationLink> & {
|
|
19
|
+
/** Custom label text (default: "Previous") */
|
|
20
|
+
label?: string;
|
|
21
|
+
/** Custom aria-label (default: "Go to previous page") */
|
|
22
|
+
ariaLabel?: string;
|
|
23
|
+
};
|
|
18
24
|
declare const PaginationPrevious: {
|
|
19
|
-
({ className, size, ...props }:
|
|
25
|
+
({ className, size, label, ariaLabel, ...props }: PaginationPreviousProps): import("react/jsx-runtime").JSX.Element;
|
|
20
26
|
displayName: string;
|
|
21
27
|
};
|
|
28
|
+
type PaginationNextProps = React.ComponentProps<typeof PaginationLink> & {
|
|
29
|
+
/** Custom label text (default: "Next") */
|
|
30
|
+
label?: string;
|
|
31
|
+
/** Custom aria-label (default: "Go to next page") */
|
|
32
|
+
ariaLabel?: string;
|
|
33
|
+
};
|
|
22
34
|
declare const PaginationNext: {
|
|
23
|
-
({ className, size, ...props }:
|
|
35
|
+
({ className, size, label, ariaLabel, ...props }: PaginationNextProps): import("react/jsx-runtime").JSX.Element;
|
|
24
36
|
displayName: string;
|
|
25
37
|
};
|
|
38
|
+
type PaginationEllipsisProps = React.ComponentProps<"span"> & {
|
|
39
|
+
/** Screen reader text (default: "More pages") */
|
|
40
|
+
srLabel?: string;
|
|
41
|
+
};
|
|
26
42
|
declare const PaginationEllipsis: {
|
|
27
|
-
({ className, ...props }:
|
|
43
|
+
({ className, srLabel, ...props }: PaginationEllipsisProps): import("react/jsx-runtime").JSX.Element;
|
|
28
44
|
displayName: string;
|
|
29
45
|
};
|
|
30
46
|
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { j as s } from "../../_virtual/jsx-runtime.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as l from "react";
|
|
3
3
|
import { cn as n } from "../../lib/utils.js";
|
|
4
|
-
import { buttonVariants as
|
|
5
|
-
import m from "../../
|
|
6
|
-
import
|
|
7
|
-
import c from "../../node_modules/lucide-react/dist/esm/icons/chevron-left.js";
|
|
4
|
+
import { buttonVariants as p } from "./button.js";
|
|
5
|
+
import { Icon as m } from "../../components/atoms/icon/icon.js";
|
|
6
|
+
import c from "../../node_modules/lucide-react/dist/esm/icons/ellipsis.js";
|
|
8
7
|
const g = ({ className: i, ...a }) => /* @__PURE__ */ s.jsx(
|
|
9
8
|
"nav",
|
|
10
9
|
{
|
|
@@ -15,7 +14,7 @@ const g = ({ className: i, ...a }) => /* @__PURE__ */ s.jsx(
|
|
|
15
14
|
}
|
|
16
15
|
);
|
|
17
16
|
g.displayName = "Pagination";
|
|
18
|
-
const x =
|
|
17
|
+
const x = l.forwardRef(({ className: i, ...a }, e) => /* @__PURE__ */ s.jsx(
|
|
19
18
|
"ul",
|
|
20
19
|
{
|
|
21
20
|
ref: e,
|
|
@@ -24,76 +23,81 @@ const x = o.forwardRef(({ className: i, ...a }, e) => /* @__PURE__ */ s.jsx(
|
|
|
24
23
|
}
|
|
25
24
|
));
|
|
26
25
|
x.displayName = "PaginationContent";
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
const
|
|
26
|
+
const d = l.forwardRef(({ className: i, ...a }, e) => /* @__PURE__ */ s.jsx("li", { ref: e, className: n("", i), ...a }));
|
|
27
|
+
d.displayName = "PaginationItem";
|
|
28
|
+
const r = ({
|
|
30
29
|
className: i,
|
|
31
30
|
isActive: a,
|
|
32
31
|
size: e = "icon",
|
|
33
|
-
...
|
|
32
|
+
...t
|
|
34
33
|
}) => /* @__PURE__ */ s.jsx(
|
|
35
34
|
"a",
|
|
36
35
|
{
|
|
37
36
|
"aria-current": a ? "page" : void 0,
|
|
38
37
|
className: n(
|
|
39
|
-
|
|
38
|
+
p({
|
|
40
39
|
variant: a ? "outline" : "ghost",
|
|
41
40
|
size: e
|
|
42
41
|
}),
|
|
43
42
|
i
|
|
44
43
|
),
|
|
45
|
-
...
|
|
44
|
+
...t
|
|
46
45
|
}
|
|
47
46
|
);
|
|
48
|
-
|
|
49
|
-
const
|
|
47
|
+
r.displayName = "PaginationLink";
|
|
48
|
+
const f = ({
|
|
50
49
|
className: i,
|
|
51
50
|
size: a = "default",
|
|
52
|
-
|
|
51
|
+
label: e = "Previous",
|
|
52
|
+
ariaLabel: t = "Go to previous page",
|
|
53
|
+
...o
|
|
53
54
|
}) => /* @__PURE__ */ s.jsxs(
|
|
54
|
-
|
|
55
|
+
r,
|
|
55
56
|
{
|
|
56
|
-
"aria-label":
|
|
57
|
+
"aria-label": t,
|
|
57
58
|
size: a,
|
|
58
59
|
className: n("gap-1 pl-2.5 pr-4", i),
|
|
59
|
-
...
|
|
60
|
+
...o,
|
|
60
61
|
children: [
|
|
61
|
-
/* @__PURE__ */ s.jsx(
|
|
62
|
-
/* @__PURE__ */ s.jsx("span", { children:
|
|
62
|
+
/* @__PURE__ */ s.jsx(m, { name: "CaretLeft", size: "sm" }),
|
|
63
|
+
/* @__PURE__ */ s.jsx("span", { children: e })
|
|
63
64
|
]
|
|
64
65
|
}
|
|
65
66
|
);
|
|
66
|
-
|
|
67
|
-
const
|
|
67
|
+
f.displayName = "PaginationPrevious";
|
|
68
|
+
const N = ({
|
|
68
69
|
className: i,
|
|
69
70
|
size: a = "default",
|
|
70
|
-
|
|
71
|
+
label: e = "Next",
|
|
72
|
+
ariaLabel: t = "Go to next page",
|
|
73
|
+
...o
|
|
71
74
|
}) => /* @__PURE__ */ s.jsxs(
|
|
72
|
-
|
|
75
|
+
r,
|
|
73
76
|
{
|
|
74
|
-
"aria-label":
|
|
77
|
+
"aria-label": t,
|
|
75
78
|
size: a,
|
|
76
79
|
className: n("gap-1 pl-4 pr-2.5", i),
|
|
77
|
-
...
|
|
80
|
+
...o,
|
|
78
81
|
children: [
|
|
79
|
-
/* @__PURE__ */ s.jsx("span", { children:
|
|
80
|
-
/* @__PURE__ */ s.jsx(
|
|
82
|
+
/* @__PURE__ */ s.jsx("span", { children: e }),
|
|
83
|
+
/* @__PURE__ */ s.jsx(m, { name: "CaretRight", size: "sm" })
|
|
81
84
|
]
|
|
82
85
|
}
|
|
83
86
|
);
|
|
84
|
-
|
|
87
|
+
N.displayName = "PaginationNext";
|
|
85
88
|
const j = ({
|
|
86
89
|
className: i,
|
|
87
|
-
|
|
90
|
+
srLabel: a = "More pages",
|
|
91
|
+
...e
|
|
88
92
|
}) => /* @__PURE__ */ s.jsxs(
|
|
89
93
|
"span",
|
|
90
94
|
{
|
|
91
95
|
"aria-hidden": !0,
|
|
92
96
|
className: n("flex size-9 items-center justify-center", i),
|
|
93
|
-
...
|
|
97
|
+
...e,
|
|
94
98
|
children: [
|
|
95
|
-
/* @__PURE__ */ s.jsx(
|
|
96
|
-
/* @__PURE__ */ s.jsx("span", { className: "sr-only", children:
|
|
99
|
+
/* @__PURE__ */ s.jsx(c, { className: "size-4" }),
|
|
100
|
+
/* @__PURE__ */ s.jsx("span", { className: "sr-only", children: a })
|
|
97
101
|
]
|
|
98
102
|
}
|
|
99
103
|
);
|
|
@@ -102,8 +106,8 @@ export {
|
|
|
102
106
|
g as Pagination,
|
|
103
107
|
x as PaginationContent,
|
|
104
108
|
j as PaginationEllipsis,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
+
d as PaginationItem,
|
|
110
|
+
r as PaginationLink,
|
|
111
|
+
N as PaginationNext,
|
|
112
|
+
f as PaginationPrevious
|
|
109
113
|
};
|
|
@@ -1,71 +1,71 @@
|
|
|
1
1
|
import { j as t } from "../../_virtual/jsx-runtime.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as d from "react";
|
|
3
3
|
import * as e from "@radix-ui/react-select";
|
|
4
|
-
import { Icon as
|
|
5
|
-
import { cn as
|
|
6
|
-
const j = e.Root, N = e.Group, b = e.Value, p =
|
|
4
|
+
import { Icon as l } from "../../components/atoms/icon/icon.js";
|
|
5
|
+
import { cn as r } from "../../lib/utils.js";
|
|
6
|
+
const j = e.Root, N = e.Group, b = e.Value, p = d.forwardRef(({ className: s, children: o, ...a }, n) => /* @__PURE__ */ t.jsxs(
|
|
7
7
|
e.Trigger,
|
|
8
8
|
{
|
|
9
|
-
ref:
|
|
10
|
-
className:
|
|
9
|
+
ref: n,
|
|
10
|
+
className: r(
|
|
11
11
|
"flex h-9 w-full items-center justify-between gap-2 rounded-md border border-input bg-input px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 shadow-xs [&>span]:min-w-0 [&>span]:truncate",
|
|
12
12
|
s
|
|
13
13
|
),
|
|
14
14
|
...a,
|
|
15
15
|
children: [
|
|
16
|
-
|
|
17
|
-
/* @__PURE__ */ t.jsx(e.Icon, { asChild: !0, children: /* @__PURE__ */ t.jsx(
|
|
16
|
+
o,
|
|
17
|
+
/* @__PURE__ */ t.jsx(e.Icon, { asChild: !0, children: /* @__PURE__ */ t.jsx(l, { name: "CaretDown", size: "sm", className: "opacity-50 shrink-0" }) })
|
|
18
18
|
]
|
|
19
19
|
}
|
|
20
20
|
));
|
|
21
21
|
p.displayName = e.Trigger.displayName;
|
|
22
|
-
const i =
|
|
22
|
+
const i = d.forwardRef(({ className: s, ...o }, a) => /* @__PURE__ */ t.jsx(
|
|
23
23
|
e.ScrollUpButton,
|
|
24
24
|
{
|
|
25
25
|
ref: a,
|
|
26
|
-
className:
|
|
26
|
+
className: r(
|
|
27
27
|
"flex cursor-default items-center justify-center py-1",
|
|
28
28
|
s
|
|
29
29
|
),
|
|
30
|
-
...
|
|
31
|
-
children: /* @__PURE__ */ t.jsx(
|
|
30
|
+
...o,
|
|
31
|
+
children: /* @__PURE__ */ t.jsx(l, { name: "CaretUp", size: "sm" })
|
|
32
32
|
}
|
|
33
33
|
));
|
|
34
34
|
i.displayName = e.ScrollUpButton.displayName;
|
|
35
|
-
const c =
|
|
35
|
+
const c = d.forwardRef(({ className: s, ...o }, a) => /* @__PURE__ */ t.jsx(
|
|
36
36
|
e.ScrollDownButton,
|
|
37
37
|
{
|
|
38
38
|
ref: a,
|
|
39
|
-
className:
|
|
39
|
+
className: r(
|
|
40
40
|
"flex cursor-default items-center justify-center py-1",
|
|
41
41
|
s
|
|
42
42
|
),
|
|
43
|
-
...
|
|
44
|
-
children: /* @__PURE__ */ t.jsx(
|
|
43
|
+
...o,
|
|
44
|
+
children: /* @__PURE__ */ t.jsx(l, { name: "CaretDown", size: "sm" })
|
|
45
45
|
}
|
|
46
46
|
));
|
|
47
47
|
c.displayName = e.ScrollDownButton.displayName;
|
|
48
|
-
const f =
|
|
48
|
+
const f = d.forwardRef(({ className: s, children: o, position: a = "popper", ...n }, m) => /* @__PURE__ */ t.jsx(e.Portal, { children: /* @__PURE__ */ t.jsxs(
|
|
49
49
|
e.Content,
|
|
50
50
|
{
|
|
51
51
|
ref: m,
|
|
52
|
-
className:
|
|
52
|
+
className: r(
|
|
53
53
|
"relative z-[1100] max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
54
54
|
a === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
55
55
|
s
|
|
56
56
|
),
|
|
57
57
|
position: a,
|
|
58
|
-
...
|
|
58
|
+
...n,
|
|
59
59
|
children: [
|
|
60
60
|
/* @__PURE__ */ t.jsx(i, {}),
|
|
61
61
|
/* @__PURE__ */ t.jsx(
|
|
62
62
|
e.Viewport,
|
|
63
63
|
{
|
|
64
|
-
className:
|
|
64
|
+
className: r(
|
|
65
65
|
"p-1",
|
|
66
66
|
a === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
|
|
67
67
|
),
|
|
68
|
-
children:
|
|
68
|
+
children: o
|
|
69
69
|
}
|
|
70
70
|
),
|
|
71
71
|
/* @__PURE__ */ t.jsx(c, {})
|
|
@@ -73,40 +73,40 @@ const f = l.forwardRef(({ className: s, children: r, position: a = "popper", ...
|
|
|
73
73
|
}
|
|
74
74
|
) }));
|
|
75
75
|
f.displayName = e.Content.displayName;
|
|
76
|
-
const u =
|
|
76
|
+
const u = d.forwardRef(({ className: s, ...o }, a) => /* @__PURE__ */ t.jsx(
|
|
77
77
|
e.Label,
|
|
78
78
|
{
|
|
79
79
|
ref: a,
|
|
80
|
-
className:
|
|
80
|
+
className: r(
|
|
81
81
|
"px-2 py-1.5 text-xs font-medium text-muted-foreground",
|
|
82
82
|
s
|
|
83
83
|
),
|
|
84
|
-
...
|
|
84
|
+
...o
|
|
85
85
|
}
|
|
86
86
|
));
|
|
87
87
|
u.displayName = e.Label.displayName;
|
|
88
|
-
const x =
|
|
88
|
+
const x = d.forwardRef(({ className: s, children: o, ...a }, n) => /* @__PURE__ */ t.jsxs(
|
|
89
89
|
e.Item,
|
|
90
90
|
{
|
|
91
|
-
ref:
|
|
92
|
-
className:
|
|
93
|
-
"relative flex w-full cursor-default select-none items-center rounded-xs py-1.5
|
|
91
|
+
ref: n,
|
|
92
|
+
className: r(
|
|
93
|
+
"relative flex w-full cursor-default select-none items-center rounded-xs py-1.5 ps-2 pe-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
94
94
|
s
|
|
95
95
|
),
|
|
96
96
|
...a,
|
|
97
97
|
children: [
|
|
98
|
-
/* @__PURE__ */ t.jsx("span", { className: "absolute
|
|
99
|
-
/* @__PURE__ */ t.jsx(e.ItemText, { children:
|
|
98
|
+
/* @__PURE__ */ t.jsx("span", { className: "absolute end-2 flex h-4 w-4 items-center justify-center", children: /* @__PURE__ */ t.jsx(e.ItemIndicator, { children: /* @__PURE__ */ t.jsx(l, { name: "Check", size: "sm" }) }) }),
|
|
99
|
+
/* @__PURE__ */ t.jsx(e.ItemText, { children: o })
|
|
100
100
|
]
|
|
101
101
|
}
|
|
102
102
|
));
|
|
103
103
|
x.displayName = e.Item.displayName;
|
|
104
|
-
const g =
|
|
104
|
+
const g = d.forwardRef(({ className: s, ...o }, a) => /* @__PURE__ */ t.jsx(
|
|
105
105
|
e.Separator,
|
|
106
106
|
{
|
|
107
107
|
ref: a,
|
|
108
|
-
className:
|
|
109
|
-
...
|
|
108
|
+
className: r("-mx-1 my-1 h-px bg-muted", s),
|
|
109
|
+
...o
|
|
110
110
|
}
|
|
111
111
|
));
|
|
112
112
|
g.displayName = e.Separator.displayName;
|
|
@@ -20,7 +20,7 @@ function d({
|
|
|
20
20
|
{
|
|
21
21
|
"data-slot": "switch-thumb",
|
|
22
22
|
className: a(
|
|
23
|
-
"bg-input dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0"
|
|
23
|
+
"bg-input dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:ltr:translate-x-[calc(100%-2px)] data-[state=checked]:rtl:-translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0"
|
|
24
24
|
)
|
|
25
25
|
}
|
|
26
26
|
)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yuno-payments/dashboard-design-system",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1-beta.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -128,6 +128,8 @@
|
|
|
128
128
|
"vite": "^7.1.5",
|
|
129
129
|
"vite-plugin-dts": "^4.5.4",
|
|
130
130
|
"vite-tsconfig-paths": "^5.1.4",
|
|
131
|
-
"vitest": "^3.2.4"
|
|
131
|
+
"vitest": "^3.2.4",
|
|
132
|
+
"postcss-rtlcss": "^5.5.0",
|
|
133
|
+
"@tailwindcss/postcss": "^4.0.0"
|
|
132
134
|
}
|
|
133
135
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.2.
|
|
3
|
-
"generatedAt": "2026-03-
|
|
2
|
+
"version": "2.2.1-beta.2",
|
|
3
|
+
"generatedAt": "2026-03-26T18:26:44.303Z",
|
|
4
4
|
"components": [
|
|
5
5
|
{
|
|
6
6
|
"name": "AccessDeniedAlert",
|
|
@@ -1261,6 +1261,13 @@
|
|
|
1261
1261
|
"type": "unknown",
|
|
1262
1262
|
"required": true,
|
|
1263
1263
|
"description": "Callback when end time changes"
|
|
1264
|
+
},
|
|
1265
|
+
{
|
|
1266
|
+
"name": "labels",
|
|
1267
|
+
"type": "FilterDateRangeLabels",
|
|
1268
|
+
"default": "undefined (uses English defaults)",
|
|
1269
|
+
"required": false,
|
|
1270
|
+
"description": "Labels for i18n/translation support. Keys: custom, today, last3Days, last7Days, last30Days, thisMonth, allTime, startDate, endDate"
|
|
1264
1271
|
}
|
|
1265
1272
|
],
|
|
1266
1273
|
"examples": []
|
|
@@ -1334,6 +1341,13 @@
|
|
|
1334
1341
|
"type": "string",
|
|
1335
1342
|
"required": true,
|
|
1336
1343
|
"description": "Optional tooltip text that appears on hover"
|
|
1344
|
+
},
|
|
1345
|
+
{
|
|
1346
|
+
"name": "autoMirrorRtl",
|
|
1347
|
+
"type": "boolean",
|
|
1348
|
+
"default": "true (for directional icons)",
|
|
1349
|
+
"required": false,
|
|
1350
|
+
"description": "Auto-mirror icon in RTL layouts. Defaults to true for directional icons (arrows, chevrons, carets)"
|
|
1337
1351
|
}
|
|
1338
1352
|
],
|
|
1339
1353
|
"examples": [
|
|
@@ -3565,28 +3579,40 @@
|
|
|
3565
3579
|
"type": "(page: number) => void",
|
|
3566
3580
|
"required": true,
|
|
3567
3581
|
"description": "Callback function when a page number is clicked"
|
|
3582
|
+
},
|
|
3583
|
+
{
|
|
3584
|
+
"name": "lang",
|
|
3585
|
+
"type": "PaginationLanguage",
|
|
3586
|
+
"required": true,
|
|
3587
|
+
"description": "Language for translations. Falls back to localStorage 'yuno-lang', then 'en'."
|
|
3588
|
+
},
|
|
3589
|
+
{
|
|
3590
|
+
"name": "translations",
|
|
3591
|
+
"type": "Partial<PaginationTranslations>",
|
|
3592
|
+
"required": true,
|
|
3593
|
+
"description": "Custom translations to override default language strings"
|
|
3568
3594
|
}
|
|
3569
3595
|
],
|
|
3570
3596
|
"examples": [
|
|
3571
3597
|
{
|
|
3572
|
-
"name": "
|
|
3573
|
-
"code": "<Pagination currentPage={5} totalPages={10}
|
|
3598
|
+
"name": "Arabic",
|
|
3599
|
+
"code": "<Pagination currentPage={5} totalPages={10} lang=\"ar\" />"
|
|
3574
3600
|
},
|
|
3575
3601
|
{
|
|
3576
|
-
"name": "
|
|
3577
|
-
"code": "<Pagination currentPage={
|
|
3602
|
+
"name": "Chinese",
|
|
3603
|
+
"code": "<Pagination currentPage={5} totalPages={10} lang=\"zh\" />"
|
|
3578
3604
|
},
|
|
3579
3605
|
{
|
|
3580
|
-
"name": "
|
|
3581
|
-
"code": "<Pagination currentPage={
|
|
3606
|
+
"name": "CustomDisabled",
|
|
3607
|
+
"code": "<Pagination currentPage={5} totalPages={10} disableNext />"
|
|
3582
3608
|
},
|
|
3583
3609
|
{
|
|
3584
|
-
"name": "
|
|
3585
|
-
"code": "<Pagination currentPage={
|
|
3610
|
+
"name": "CustomTranslations",
|
|
3611
|
+
"code": "<Pagination currentPage={5} totalPages={10} translations={{\"previous\":\"Back\",\"next\":\"Forward\"}} />"
|
|
3586
3612
|
},
|
|
3587
3613
|
{
|
|
3588
|
-
"name": "
|
|
3589
|
-
"code": "<Pagination currentPage={
|
|
3614
|
+
"name": "Default",
|
|
3615
|
+
"code": "<Pagination currentPage={2} totalPages={10} />"
|
|
3590
3616
|
}
|
|
3591
3617
|
],
|
|
3592
3618
|
"figmaComponent": "https://www.figma.com/design/fcHm3yuz9KiqdRHM7oWneG/shadcn-ui-kit--Yuno-?node-id=17086-206986&m=dev"
|