@yuno-payments/dashboard-design-system 2.3.4 → 2.3.5

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.
Files changed (54) hide show
  1. package/dist/components/atoms/checkbox/checkbox.js +16 -16
  2. package/dist/components/atoms/filter/filter-date-range.d.ts +1 -31
  3. package/dist/components/atoms/filter/filter-date-range.js +144 -140
  4. package/dist/components/atoms/filter/filter-multi-input.d.ts +0 -11
  5. package/dist/components/atoms/filter/filter-multi-input.js +36 -42
  6. package/dist/components/atoms/filter/filter.d.ts +0 -30
  7. package/dist/components/atoms/filter/filter.js +171 -191
  8. package/dist/components/atoms/filter/index.d.ts +2 -2
  9. package/dist/components/atoms/filter-dropdown/filter-dropdown.d.ts +2 -17
  10. package/dist/components/atoms/filter-dropdown/filter-dropdown.js +151 -160
  11. package/dist/components/atoms/icon/icon.d.ts +0 -6
  12. package/dist/components/atoms/icon/icon.js +21 -27
  13. package/dist/components/atoms/icon/index.d.ts +0 -1
  14. package/dist/components/atoms/index.d.ts +1 -1
  15. package/dist/components/atoms/radio-group/radio-group-option.js +2 -2
  16. package/dist/components/atoms/select/select.js +2 -2
  17. package/dist/components/molecules/dialog-header/dialog-header.d.ts +1 -1
  18. package/dist/components/molecules/pagination/index.d.ts +0 -1
  19. package/dist/components/molecules/pagination/page-numbers.d.ts +1 -3
  20. package/dist/components/molecules/pagination/page-numbers.js +9 -10
  21. package/dist/components/molecules/pagination/pagination.d.ts +0 -9
  22. package/dist/components/molecules/pagination/pagination.js +38 -46
  23. package/dist/components/organisms/data-table/components/column-header/data-table-column-header-menu.d.ts +1 -3
  24. package/dist/components/organisms/data-table/components/column-header/data-table-column-header-menu.js +27 -28
  25. package/dist/components/organisms/data-table/components/column-header/data-table-column-header.js +41 -44
  26. package/dist/components/organisms/data-table/components/data-table-header.js +12 -11
  27. package/dist/components/organisms/data-table/components/dialogs/data-table-manage-columns-dialog.d.ts +1 -3
  28. package/dist/components/organisms/data-table/components/dialogs/data-table-manage-columns-dialog.js +44 -45
  29. package/dist/components/organisms/data-table/data-table.d.ts +2 -27
  30. package/dist/components/organisms/data-table/data-table.js +134 -146
  31. package/dist/components/organisms/data-table/data-table.types.d.ts +0 -68
  32. package/dist/components/organisms/data-table/index.d.ts +1 -2
  33. package/dist/components/organisms/data-table/utils/data-table-utils.js +8 -11
  34. package/dist/dashboard-design-system.css +1 -1
  35. package/dist/index.css +1 -1
  36. package/dist/index.d.ts +1 -2
  37. package/dist/index.esm.min.js +8512 -9394
  38. package/dist/index.js +202 -208
  39. package/dist/index.umd.min.js +25 -25
  40. package/dist/lib/utils.d.ts +0 -13
  41. package/dist/lib/utils.js +10 -34
  42. package/dist/vendor/shadcn/pagination.d.ts +3 -19
  43. package/dist/vendor/shadcn/pagination.js +37 -41
  44. package/dist/vendor/shadcn/select.js +33 -33
  45. package/dist/vendor/shadcn/switch.js +1 -1
  46. package/package.json +2 -4
  47. package/registry/components-registry.json +12 -38
  48. package/dist/components/atoms/filter/filter-translations.d.ts +0 -75
  49. package/dist/components/atoms/filter/filter-translations.js +0 -450
  50. package/dist/components/atoms/icon/directional-icons.d.ts +0 -12
  51. package/dist/components/atoms/icon/directional-icons.js +0 -38
  52. package/dist/components/molecules/pagination/pagination-translations.d.ts +0 -33
  53. package/dist/components/molecules/pagination/pagination-translations.js +0 -82
  54. package/dist/components/organisms/data-table/data-table.types.js +0 -252
@@ -16,16 +16,3 @@ 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,41 +1,17 @@
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));
1
+ import { clsx as e } from "../node_modules/clsx/dist/clsx.js";
2
+ import { twMerge as m } from "../node_modules/tailwind-merge/dist/bundle-mjs.js";
3
+ function g(...n) {
4
+ return m(e(n));
5
5
  }
6
- function d(n) {
6
+ function p(n) {
7
7
  if (n !== void 0)
8
8
  return typeof n == "number" ? `${n}px` : n;
9
9
  }
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";
10
+ function u(n, r = 8, t = "...", i = 3, o = 4) {
11
+ return n.length <= r ? n : n.substring(0, i) + t + n.substring(n.length - o);
34
12
  }
35
13
  export {
36
- g as LANGUAGE_STORAGE_KEY,
37
- a as cn,
38
- p as getDefaultLanguage,
39
- d as normalizeDimension,
40
- m as truncate
14
+ g as cn,
15
+ p as normalizeDimension,
16
+ u as truncate
41
17
  };
@@ -15,32 +15,16 @@ 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
- };
24
18
  declare const PaginationPrevious: {
25
- ({ className, size, label, ariaLabel, ...props }: PaginationPreviousProps): import("react/jsx-runtime").JSX.Element;
19
+ ({ className, size, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
26
20
  displayName: string;
27
21
  };
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
- };
34
22
  declare const PaginationNext: {
35
- ({ className, size, label, ariaLabel, ...props }: PaginationNextProps): import("react/jsx-runtime").JSX.Element;
23
+ ({ className, size, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
36
24
  displayName: string;
37
25
  };
38
- type PaginationEllipsisProps = React.ComponentProps<"span"> & {
39
- /** Screen reader text (default: "More pages") */
40
- srLabel?: string;
41
- };
42
26
  declare const PaginationEllipsis: {
43
- ({ className, srLabel, ...props }: PaginationEllipsisProps): import("react/jsx-runtime").JSX.Element;
27
+ ({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
44
28
  displayName: string;
45
29
  };
46
30
  export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, };
@@ -1,9 +1,10 @@
1
1
  import { j as s } from "../../_virtual/jsx-runtime.js";
2
- import * as l from "react";
2
+ import * as o from "react";
3
3
  import { cn as n } from "../../lib/utils.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";
4
+ import { buttonVariants as l } from "./button.js";
5
+ import m from "../../node_modules/lucide-react/dist/esm/icons/ellipsis.js";
6
+ import p from "../../node_modules/lucide-react/dist/esm/icons/chevron-right.js";
7
+ import c from "../../node_modules/lucide-react/dist/esm/icons/chevron-left.js";
7
8
  const g = ({ className: i, ...a }) => /* @__PURE__ */ s.jsx(
8
9
  "nav",
9
10
  {
@@ -14,7 +15,7 @@ const g = ({ className: i, ...a }) => /* @__PURE__ */ s.jsx(
14
15
  }
15
16
  );
16
17
  g.displayName = "Pagination";
17
- const x = l.forwardRef(({ className: i, ...a }, e) => /* @__PURE__ */ s.jsx(
18
+ const x = o.forwardRef(({ className: i, ...a }, e) => /* @__PURE__ */ s.jsx(
18
19
  "ul",
19
20
  {
20
21
  ref: e,
@@ -23,81 +24,76 @@ const x = l.forwardRef(({ className: i, ...a }, e) => /* @__PURE__ */ s.jsx(
23
24
  }
24
25
  ));
25
26
  x.displayName = "PaginationContent";
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 = ({
27
+ const f = o.forwardRef(({ className: i, ...a }, e) => /* @__PURE__ */ s.jsx("li", { ref: e, className: n("", i), ...a }));
28
+ f.displayName = "PaginationItem";
29
+ const t = ({
29
30
  className: i,
30
31
  isActive: a,
31
32
  size: e = "icon",
32
- ...t
33
+ ...r
33
34
  }) => /* @__PURE__ */ s.jsx(
34
35
  "a",
35
36
  {
36
37
  "aria-current": a ? "page" : void 0,
37
38
  className: n(
38
- p({
39
+ l({
39
40
  variant: a ? "outline" : "ghost",
40
41
  size: e
41
42
  }),
42
43
  i
43
44
  ),
44
- ...t
45
+ ...r
45
46
  }
46
47
  );
47
- r.displayName = "PaginationLink";
48
- const f = ({
48
+ t.displayName = "PaginationLink";
49
+ const N = ({
49
50
  className: i,
50
51
  size: a = "default",
51
- label: e = "Previous",
52
- ariaLabel: t = "Go to previous page",
53
- ...o
52
+ ...e
54
53
  }) => /* @__PURE__ */ s.jsxs(
55
- r,
54
+ t,
56
55
  {
57
- "aria-label": t,
56
+ "aria-label": "Go to previous page",
58
57
  size: a,
59
58
  className: n("gap-1 pl-2.5 pr-4", i),
60
- ...o,
59
+ ...e,
61
60
  children: [
62
- /* @__PURE__ */ s.jsx(m, { name: "CaretLeft", size: "sm" }),
63
- /* @__PURE__ */ s.jsx("span", { children: e })
61
+ /* @__PURE__ */ s.jsx(c, { className: "size-4" }),
62
+ /* @__PURE__ */ s.jsx("span", { children: "Previous" })
64
63
  ]
65
64
  }
66
65
  );
67
- f.displayName = "PaginationPrevious";
68
- const N = ({
66
+ N.displayName = "PaginationPrevious";
67
+ const d = ({
69
68
  className: i,
70
69
  size: a = "default",
71
- label: e = "Next",
72
- ariaLabel: t = "Go to next page",
73
- ...o
70
+ ...e
74
71
  }) => /* @__PURE__ */ s.jsxs(
75
- r,
72
+ t,
76
73
  {
77
- "aria-label": t,
74
+ "aria-label": "Go to next page",
78
75
  size: a,
79
76
  className: n("gap-1 pl-4 pr-2.5", i),
80
- ...o,
77
+ ...e,
81
78
  children: [
82
- /* @__PURE__ */ s.jsx("span", { children: e }),
83
- /* @__PURE__ */ s.jsx(m, { name: "CaretRight", size: "sm" })
79
+ /* @__PURE__ */ s.jsx("span", { children: "Next" }),
80
+ /* @__PURE__ */ s.jsx(p, { className: "size-4" })
84
81
  ]
85
82
  }
86
83
  );
87
- N.displayName = "PaginationNext";
84
+ d.displayName = "PaginationNext";
88
85
  const j = ({
89
86
  className: i,
90
- srLabel: a = "More pages",
91
- ...e
87
+ ...a
92
88
  }) => /* @__PURE__ */ s.jsxs(
93
89
  "span",
94
90
  {
95
91
  "aria-hidden": !0,
96
92
  className: n("flex size-9 items-center justify-center", i),
97
- ...e,
93
+ ...a,
98
94
  children: [
99
- /* @__PURE__ */ s.jsx(c, { className: "size-4" }),
100
- /* @__PURE__ */ s.jsx("span", { className: "sr-only", children: a })
95
+ /* @__PURE__ */ s.jsx(m, { className: "size-4" }),
96
+ /* @__PURE__ */ s.jsx("span", { className: "sr-only", children: "More pages" })
101
97
  ]
102
98
  }
103
99
  );
@@ -106,8 +102,8 @@ export {
106
102
  g as Pagination,
107
103
  x as PaginationContent,
108
104
  j as PaginationEllipsis,
109
- d as PaginationItem,
110
- r as PaginationLink,
111
- N as PaginationNext,
112
- f as PaginationPrevious
105
+ f as PaginationItem,
106
+ t as PaginationLink,
107
+ d as PaginationNext,
108
+ N as PaginationPrevious
113
109
  };
@@ -1,71 +1,71 @@
1
1
  import { j as t } from "../../_virtual/jsx-runtime.js";
2
- import * as d from "react";
2
+ import * as l from "react";
3
3
  import * as e from "@radix-ui/react-select";
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(
4
+ import { Icon as n } from "../../components/atoms/icon/icon.js";
5
+ import { cn as o } from "../../lib/utils.js";
6
+ const j = e.Root, N = e.Group, b = e.Value, p = l.forwardRef(({ className: s, children: r, ...a }, d) => /* @__PURE__ */ t.jsxs(
7
7
  e.Trigger,
8
8
  {
9
- ref: n,
10
- className: r(
9
+ ref: d,
10
+ className: o(
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
- o,
17
- /* @__PURE__ */ t.jsx(e.Icon, { asChild: !0, children: /* @__PURE__ */ t.jsx(l, { name: "CaretDown", size: "sm", className: "opacity-50 shrink-0" }) })
16
+ r,
17
+ /* @__PURE__ */ t.jsx(e.Icon, { asChild: !0, children: /* @__PURE__ */ t.jsx(n, { 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 = d.forwardRef(({ className: s, ...o }, a) => /* @__PURE__ */ t.jsx(
22
+ const i = l.forwardRef(({ className: s, ...r }, a) => /* @__PURE__ */ t.jsx(
23
23
  e.ScrollUpButton,
24
24
  {
25
25
  ref: a,
26
- className: r(
26
+ className: o(
27
27
  "flex cursor-default items-center justify-center py-1",
28
28
  s
29
29
  ),
30
- ...o,
31
- children: /* @__PURE__ */ t.jsx(l, { name: "CaretUp", size: "sm" })
30
+ ...r,
31
+ children: /* @__PURE__ */ t.jsx(n, { name: "CaretUp", size: "sm" })
32
32
  }
33
33
  ));
34
34
  i.displayName = e.ScrollUpButton.displayName;
35
- const c = d.forwardRef(({ className: s, ...o }, a) => /* @__PURE__ */ t.jsx(
35
+ const c = l.forwardRef(({ className: s, ...r }, a) => /* @__PURE__ */ t.jsx(
36
36
  e.ScrollDownButton,
37
37
  {
38
38
  ref: a,
39
- className: r(
39
+ className: o(
40
40
  "flex cursor-default items-center justify-center py-1",
41
41
  s
42
42
  ),
43
- ...o,
44
- children: /* @__PURE__ */ t.jsx(l, { name: "CaretDown", size: "sm" })
43
+ ...r,
44
+ children: /* @__PURE__ */ t.jsx(n, { name: "CaretDown", size: "sm" })
45
45
  }
46
46
  ));
47
47
  c.displayName = e.ScrollDownButton.displayName;
48
- const f = d.forwardRef(({ className: s, children: o, position: a = "popper", ...n }, m) => /* @__PURE__ */ t.jsx(e.Portal, { children: /* @__PURE__ */ t.jsxs(
48
+ const f = l.forwardRef(({ className: s, children: r, position: a = "popper", ...d }, m) => /* @__PURE__ */ t.jsx(e.Portal, { children: /* @__PURE__ */ t.jsxs(
49
49
  e.Content,
50
50
  {
51
51
  ref: m,
52
- className: r(
52
+ className: o(
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
- ...n,
58
+ ...d,
59
59
  children: [
60
60
  /* @__PURE__ */ t.jsx(i, {}),
61
61
  /* @__PURE__ */ t.jsx(
62
62
  e.Viewport,
63
63
  {
64
- className: r(
64
+ className: o(
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: o
68
+ children: r
69
69
  }
70
70
  ),
71
71
  /* @__PURE__ */ t.jsx(c, {})
@@ -73,40 +73,40 @@ const f = d.forwardRef(({ className: s, children: o, position: a = "popper", ...
73
73
  }
74
74
  ) }));
75
75
  f.displayName = e.Content.displayName;
76
- const u = d.forwardRef(({ className: s, ...o }, a) => /* @__PURE__ */ t.jsx(
76
+ const u = l.forwardRef(({ className: s, ...r }, a) => /* @__PURE__ */ t.jsx(
77
77
  e.Label,
78
78
  {
79
79
  ref: a,
80
- className: r(
80
+ className: o(
81
81
  "px-2 py-1.5 text-xs font-medium text-muted-foreground",
82
82
  s
83
83
  ),
84
- ...o
84
+ ...r
85
85
  }
86
86
  ));
87
87
  u.displayName = e.Label.displayName;
88
- const x = d.forwardRef(({ className: s, children: o, ...a }, n) => /* @__PURE__ */ t.jsxs(
88
+ const x = l.forwardRef(({ className: s, children: r, ...a }, d) => /* @__PURE__ */ t.jsxs(
89
89
  e.Item,
90
90
  {
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",
91
+ ref: d,
92
+ className: o(
93
+ "relative flex w-full cursor-default select-none items-center rounded-xs py-1.5 pl-2 pr-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 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 })
98
+ /* @__PURE__ */ t.jsx("span", { className: "absolute right-2 flex h-4 w-4 items-center justify-center", children: /* @__PURE__ */ t.jsx(e.ItemIndicator, { children: /* @__PURE__ */ t.jsx(n, { name: "Check", size: "sm" }) }) }),
99
+ /* @__PURE__ */ t.jsx(e.ItemText, { children: r })
100
100
  ]
101
101
  }
102
102
  ));
103
103
  x.displayName = e.Item.displayName;
104
- const g = d.forwardRef(({ className: s, ...o }, a) => /* @__PURE__ */ t.jsx(
104
+ const g = l.forwardRef(({ className: s, ...r }, a) => /* @__PURE__ */ t.jsx(
105
105
  e.Separator,
106
106
  {
107
107
  ref: a,
108
- className: r("-mx-1 my-1 h-px bg-muted", s),
109
- ...o
108
+ className: o("-mx-1 my-1 h-px bg-muted", s),
109
+ ...r
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]:ltr:translate-x-[calc(100%-2px)] data-[state=checked]:rtl:-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]: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.3.4",
3
+ "version": "2.3.5",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -139,8 +139,6 @@
139
139
  "vite": "^7.1.5",
140
140
  "vite-plugin-dts": "^4.5.4",
141
141
  "vite-tsconfig-paths": "^5.1.4",
142
- "vitest": "^3.2.4",
143
- "postcss-rtlcss": "^5.5.0",
144
- "@tailwindcss/postcss": "^4.0.0"
142
+ "vitest": "^3.2.4"
145
143
  }
146
144
  }
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "2.3.4",
3
- "generatedAt": "2026-03-27T13:48:32.537Z",
2
+ "version": "2.3.5",
3
+ "generatedAt": "2026-03-27T17:07:36.293Z",
4
4
  "components": [
5
5
  {
6
6
  "name": "AccessDeniedAlert",
@@ -1261,13 +1261,6 @@
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"
1271
1264
  }
1272
1265
  ],
1273
1266
  "examples": []
@@ -1341,13 +1334,6 @@
1341
1334
  "type": "string",
1342
1335
  "required": true,
1343
1336
  "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)"
1351
1337
  }
1352
1338
  ],
1353
1339
  "examples": [
@@ -3579,40 +3565,28 @@
3579
3565
  "type": "(page: number) => void",
3580
3566
  "required": true,
3581
3567
  "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"
3594
3568
  }
3595
3569
  ],
3596
3570
  "examples": [
3597
3571
  {
3598
- "name": "Arabic",
3599
- "code": "<Pagination currentPage={5} totalPages={10} lang=\"ar\" />"
3572
+ "name": "CustomDisabled",
3573
+ "code": "<Pagination currentPage={5} totalPages={10} disableNext />"
3600
3574
  },
3601
3575
  {
3602
- "name": "Chinese",
3603
- "code": "<Pagination currentPage={5} totalPages={10} lang=\"zh\" />"
3576
+ "name": "Default",
3577
+ "code": "<Pagination currentPage={2} totalPages={10} />"
3604
3578
  },
3605
3579
  {
3606
- "name": "CustomDisabled",
3607
- "code": "<Pagination currentPage={5} totalPages={10} disableNext />"
3580
+ "name": "FewPages",
3581
+ "code": "<Pagination currentPage={2} totalPages={5} />"
3608
3582
  },
3609
3583
  {
3610
- "name": "CustomTranslations",
3611
- "code": "<Pagination currentPage={5} totalPages={10} translations={{\"previous\":\"Back\",\"next\":\"Forward\"}} />"
3584
+ "name": "FirstPage",
3585
+ "code": "<Pagination currentPage={1} totalPages={10} />"
3612
3586
  },
3613
3587
  {
3614
- "name": "Default",
3615
- "code": "<Pagination currentPage={2} totalPages={10} />"
3588
+ "name": "LastPage",
3589
+ "code": "<Pagination currentPage={10} totalPages={10} />"
3616
3590
  }
3617
3591
  ],
3618
3592
  "figmaComponent": "https://www.figma.com/design/fcHm3yuz9KiqdRHM7oWneG/shadcn-ui-kit--Yuno-?node-id=17086-206986&m=dev"
@@ -1,75 +0,0 @@
1
- /**
2
- * Supported languages for filter translations
3
- */
4
- export type FilterLanguage = "en" | "es" | "ja" | "ar" | "fr" | "pt" | "tr" | "ru" | "de" | "zh";
5
- /**
6
- * Translation strings for Filter components
7
- */
8
- export interface FilterTranslations {
9
- addFilter?: string;
10
- clearFilters?: string;
11
- noFiltersApplied?: string;
12
- /** Template: "+{count} more" */
13
- moreFilters?: string;
14
- selectAll?: string;
15
- inverse?: string;
16
- none?: string;
17
- search?: string;
18
- typeAndPressEnter?: string;
19
- onlyNumericAllowed?: string;
20
- clearAll?: string;
21
- custom?: string;
22
- today?: string;
23
- last3Days?: string;
24
- last7Days?: string;
25
- last30Days?: string;
26
- thisMonth?: string;
27
- allTime?: string;
28
- startDate?: string;
29
- endDate?: string;
30
- selectDate?: string;
31
- sunday?: string;
32
- monday?: string;
33
- tuesday?: string;
34
- wednesday?: string;
35
- thursday?: string;
36
- friday?: string;
37
- saturday?: string;
38
- jan?: string;
39
- feb?: string;
40
- mar?: string;
41
- apr?: string;
42
- may?: string;
43
- jun?: string;
44
- jul?: string;
45
- aug?: string;
46
- sep?: string;
47
- oct?: string;
48
- nov?: string;
49
- dec?: string;
50
- }
51
- /**
52
- * All translations by language code
53
- */
54
- export declare const FILTER_TRANSLATIONS: Record<FilterLanguage, Required<FilterTranslations>>;
55
- /**
56
- * Default translations (English)
57
- */
58
- export declare const DEFAULT_FILTER_TRANSLATIONS: Required<FilterTranslations>;
59
- /**
60
- * Get translations for a specific language
61
- * Falls back to localStorage language, then to English if not found
62
- */
63
- export declare function getFilterTranslations(lang?: FilterLanguage): Required<FilterTranslations>;
64
- /**
65
- * Helper to get day names array in order (Sunday = 0)
66
- */
67
- export declare function getDayNames(t: Required<FilterTranslations>): string[];
68
- /**
69
- * Helper to get month abbreviations array in order (January = 0)
70
- */
71
- export declare function getMonthAbbreviations(t: Required<FilterTranslations>): string[];
72
- /**
73
- * Format the "more filters" string with count
74
- */
75
- export declare function formatMoreFilters(t: Required<FilterTranslations>, count: number): string;