@yuno-payments/dashboard-design-system 1.0.7 → 1.0.9

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.
@@ -98,7 +98,7 @@ const te = ({ message: n = "No results" }) => /* @__PURE__ */ t.jsx("div", { cla
98
98
  "aria-haspopup": "listbox",
99
99
  "aria-controls": c ? `${i}-listbox` : void 0,
100
100
  className: f(
101
- "flex h-auto min-h-[38px] w-full items-center justify-between gap-2 rounded-md border border-input bg-input px-3 py-2 text-sm shadow-xs 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 h-[38px]",
101
+ "flex h-auto min-h-[38px] w-full items-center justify-between gap-2 rounded-md border border-input bg-input px-3 py-1.5 text-sm shadow-xs 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",
102
102
  u && "border-destructive",
103
103
  v && "w-full"
104
104
  ),
@@ -1,6 +1,6 @@
1
1
  import { j as o } from "../../../_virtual/jsx-runtime.js";
2
- import { forwardRef as I, useState as N, useRef as S, useCallback as j, useEffect as $ } from "react";
3
- import { Button as k } from "../../../vendor/shadcn/button.js";
2
+ import { forwardRef as I, useState as N, useRef as S, useCallback as k, useEffect as $ } from "react";
3
+ import { Button as j } from "../../../vendor/shadcn/button.js";
4
4
  import { Separator as q } from "../../../vendor/shadcn/separator.js";
5
5
  import { Icon as F } from "../icon/icon.js";
6
6
  import { FilterSection as G } from "../filter/filter.js";
@@ -12,8 +12,7 @@ const J = I(
12
12
  {
13
13
  ref: V,
14
14
  className: h(
15
- "flex items-center gap-2 h-8 px-2 rounded-md w-full transition-colors",
16
- "hover:bg-secondary",
15
+ "flex items-center gap-2 h-8 px-2 rounded-md w-full transition-colors shrink-0 hover:bg-secondary",
17
16
  b
18
17
  ),
19
18
  ...u,
@@ -59,7 +58,7 @@ const Q = I(
59
58
  {
60
59
  ref: b,
61
60
  className: h(
62
- "flex flex-col gap-2 w-64 h-full p-2 bg-surface border border-border rounded-md overflow-y-auto",
61
+ "flex flex-col gap-2 w-64 h-full p-2 bg-muted border border-border rounded-md overflow-y-auto",
63
62
  g
64
63
  ),
65
64
  children: d.map((u) => /* @__PURE__ */ o.jsx(
@@ -77,7 +76,7 @@ const Q = I(
77
76
  )
78
77
  );
79
78
  Q.displayName = "FilterMenu";
80
- const je = I(
79
+ const ke = I(
81
80
  ({
82
81
  filters: d,
83
82
  buttonText: C = "Add filter",
@@ -89,12 +88,12 @@ const je = I(
89
88
  className: Z,
90
89
  disabled: O = !1,
91
90
  applyOnClose: s = !1
92
- }, D) => {
93
- const [f, ee] = N(!1), [m, te] = N({}), p = S({}), y = S(d), c = j(
91
+ }, p) => {
92
+ const [f, ee] = N(!1), [m, te] = N({}), D = S({}), y = S(d), c = k(
94
93
  (e) => {
95
94
  te((r) => {
96
95
  const a = typeof e == "function" ? e(r) : e;
97
- return p.current = a, a;
96
+ return D.current = a, a;
98
97
  });
99
98
  },
100
99
  []
@@ -102,12 +101,12 @@ const je = I(
102
101
  $(() => {
103
102
  y.current = d;
104
103
  }, [d]);
105
- const B = j(() => {
104
+ const B = k(() => {
106
105
  if (console.log("[FilterDropdown] applyBufferedChanges called", {
107
106
  applyOnClose: s,
108
- bufferedChanges: p.current
107
+ bufferedChanges: D.current
109
108
  }), !s) return;
110
- const e = p.current, r = y.current;
109
+ const e = D.current, r = y.current;
111
110
  console.log("[FilterDropdown] Processing buffered changes", {
112
111
  changesCount: Object.keys(e).length,
113
112
  changes: e,
@@ -130,23 +129,23 @@ const je = I(
130
129
  break;
131
130
  }
132
131
  }), c({});
133
- }, [s, c]), w = j(
132
+ }, [s, c]), w = k(
134
133
  (e) => {
135
134
  console.log("[FilterDropdown] setIsOpen called", {
136
135
  open: e,
137
136
  isOpen: f,
138
137
  applyOnClose: s,
139
- bufferedChanges: p.current
140
- }), !e && f && s && (console.log("[FilterDropdown] Applying buffered changes on close", p.current), B()), e && !f && s && (console.log("[FilterDropdown] Clearing buffered changes on open"), c({})), ee(e), u?.(e);
138
+ bufferedChanges: D.current
139
+ }), !e && f && s && (console.log("[FilterDropdown] Applying buffered changes on close", D.current), B()), e && !f && s && (console.log("[FilterDropdown] Clearing buffered changes on open"), c({})), ee(e), u?.(e);
141
140
  },
142
141
  [u, f, s, B, c]
143
142
  ), [M, A] = N(
144
143
  d.length > 0 && d[0]?.id || ""
145
- ), R = S(null), ne = j(
144
+ ), R = S(null), ne = k(
146
145
  (e) => {
147
- R.current = e, typeof D == "function" ? D(e) : D && (D.current = e);
146
+ R.current = e, typeof p == "function" ? p(e) : p && (p.current = e);
148
147
  },
149
- [D]
148
+ [p]
150
149
  );
151
150
  $(() => {
152
151
  if (!f) return;
@@ -226,7 +225,7 @@ const je = I(
226
225
  dateInit: a
227
226
  }
228
227
  })) : r?.(a);
229
- }, De = (e, r) => (a) => {
228
+ }, pe = (e, r) => (a) => {
230
229
  s ? c((n) => ({
231
230
  ...n,
232
231
  [e]: {
@@ -235,7 +234,7 @@ const je = I(
235
234
  dateEnd: a
236
235
  }
237
236
  })) : r?.(a);
238
- }, pe = (e, r) => (a) => {
237
+ }, De = (e, r) => (a) => {
239
238
  s ? c((n) => ({
240
239
  ...n,
241
240
  [e]: {
@@ -309,10 +308,10 @@ const je = I(
309
308
  ), E = Ce(
310
309
  t.id,
311
310
  t.onDateInitChange
312
- ), L = De(
311
+ ), L = pe(
313
312
  t.id,
314
313
  t.onDateEndChange
315
- ), U = pe(
314
+ ), U = De(
316
315
  t.id,
317
316
  t.onStartTimeChange
318
317
  ), _ = we(
@@ -379,7 +378,7 @@ const je = I(
379
378
  children: [
380
379
  /* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-4", children: [
381
380
  /* @__PURE__ */ o.jsxs(
382
- k,
381
+ j,
383
382
  {
384
383
  variant: "outline",
385
384
  size: "sm",
@@ -398,7 +397,7 @@ const je = I(
398
397
  ae.map((e) => {
399
398
  const r = z(e.id);
400
399
  return /* @__PURE__ */ o.jsxs(
401
- k,
400
+ j,
402
401
  {
403
402
  variant: "secondary",
404
403
  onClick: () => oe(e.id),
@@ -422,13 +421,13 @@ const je = I(
422
421
  e.id
423
422
  );
424
423
  }),
425
- H > 0 && /* @__PURE__ */ o.jsxs(k, { children: [
424
+ H > 0 && /* @__PURE__ */ o.jsxs(j, { children: [
426
425
  "+",
427
426
  H,
428
427
  " more"
429
428
  ] }),
430
429
  b && se && /* @__PURE__ */ o.jsx(
431
- k,
430
+ j,
432
431
  {
433
432
  variant: "ghost",
434
433
  size: "sm",
@@ -447,7 +446,7 @@ const je = I(
447
446
  "div",
448
447
  {
449
448
  className: h(
450
- "z-50 shadow-lg",
449
+ "z-popover shadow-lg",
451
450
  "absolute top-full left-0 mt-1",
452
451
  "flex flex-row gap-2",
453
452
  "w-[728px] h-[448px]",
@@ -471,9 +470,9 @@ const je = I(
471
470
  );
472
471
  }
473
472
  );
474
- je.displayName = "FilterDropdown";
473
+ ke.displayName = "FilterDropdown";
475
474
  export {
476
- je as FilterDropdown,
475
+ ke as FilterDropdown,
477
476
  Q as FilterMenu,
478
477
  J as FilterMenuItem
479
478
  };
@@ -150,7 +150,7 @@ const P = D("flex gap-2 w-full", {
150
150
  onMouseEnter: () => I(!0),
151
151
  onMouseLeave: () => I(!1),
152
152
  className: r(
153
- "absolute z-50 w-full mt-1 rounded-md border bg-popover text-popover-foreground shadow-md",
153
+ "absolute z-popover w-full mt-1 rounded-md border bg-popover text-popover-foreground shadow-md",
154
154
  "max-h-[300px] overflow-y-auto"
155
155
  ),
156
156
  children: /* @__PURE__ */ t.jsx("div", { className: "py-1", children: C.map((e, s) => /* @__PURE__ */ t.jsx(
@@ -1,22 +1,22 @@
1
- import { j as n } from "../../../_virtual/jsx-runtime.js";
1
+ import { j as r } from "../../../_virtual/jsx-runtime.js";
2
2
  import * as G from "react";
3
3
  import { useId as J, useState as $, useRef as C, useEffect as E } from "react";
4
4
  import { cn as c } from "../../../lib/utils.js";
5
5
  import { Icon as K } from "../icon/icon.js";
6
6
  import { TimePicker as Q } from "../../../vendor/shadcn/time-picker.js";
7
7
  import { Field as R, FieldLabel as T, FieldDescription as O, FieldError as _ } from "../../../vendor/shadcn/field.js";
8
- const X = Array.from({ length: 12 }, (e, r) => r + 1), Y = Array.from({ length: 24 }, (e, r) => r), Z = ["AM", "PM"], H = (e) => {
8
+ const X = Array.from({ length: 12 }, (e, n) => n + 1), Y = Array.from({ length: 24 }, (e, n) => n), Z = ["AM", "PM"], H = (e) => {
9
9
  if (e === 0)
10
10
  return Array.from({ length: 60 }, (o, i) => i);
11
- const r = 60 / e;
12
- return Array.from({ length: r }, (o, i) => i * e);
11
+ const n = 60 / e;
12
+ return Array.from({ length: n }, (o, i) => i * e);
13
13
  }, d = (e) => e.toString().padStart(2, "0"), ee = (e) => {
14
- const r = e >= 12 ? "PM" : "AM";
15
- return { hour: e === 0 ? 12 : e > 12 ? e - 12 : e, meridiem: r };
16
- }, te = (e, r) => e === 12 ? r === "AM" ? 0 : 12 : r === "PM" ? e + 12 : e, ne = G.forwardRef(
14
+ const n = e >= 12 ? "PM" : "AM";
15
+ return { hour: e === 0 ? 12 : e > 12 ? e - 12 : e, meridiem: n };
16
+ }, te = (e, n) => e === 12 ? n === "AM" ? 0 : 12 : n === "PM" ? e + 12 : e, re = G.forwardRef(
17
17
  ({
18
18
  className: e,
19
- label: r,
19
+ label: n,
20
20
  error: o,
21
21
  description: i,
22
22
  orientation: x = "vertical",
@@ -32,7 +32,7 @@ const X = Array.from({ length: 12 }, (e, r) => r + 1), Y = Array.from({ length:
32
32
  }, P) => {
33
33
  const S = J(), u = m || S, v = !!o;
34
34
  if (y === "native") {
35
- const k = /* @__PURE__ */ n.jsx(
35
+ const k = /* @__PURE__ */ r.jsx(
36
36
  Q,
37
37
  {
38
38
  ref: P,
@@ -41,7 +41,7 @@ const X = Array.from({ length: 12 }, (e, r) => r + 1), Y = Array.from({ length:
41
41
  disabled: p,
42
42
  className: c(
43
43
  v && "border-destructive focus-visible:border-destructive",
44
- !(r || o || i) && e
44
+ !(n || o || i) && e
45
45
  ),
46
46
  "aria-invalid": v ? !0 : void 0,
47
47
  "aria-describedby": i || o ? `${u}-description` : void 0,
@@ -51,31 +51,31 @@ const X = Array.from({ length: 12 }, (e, r) => r + 1), Y = Array.from({ length:
51
51
  }
52
52
  }
53
53
  );
54
- return r || o || i ? /* @__PURE__ */ n.jsxs(
54
+ return n || o || i ? /* @__PURE__ */ r.jsxs(
55
55
  R,
56
56
  {
57
57
  orientation: x,
58
58
  "data-invalid": v,
59
59
  className: c("w-full", e),
60
60
  children: [
61
- r && /* @__PURE__ */ n.jsx(T, { htmlFor: u, children: r }),
62
- /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2 flex-1", children: [
61
+ n && /* @__PURE__ */ r.jsx(T, { htmlFor: u, children: n }),
62
+ /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col gap-2 flex-1", children: [
63
63
  k,
64
- i && !o && /* @__PURE__ */ n.jsx(O, { id: `${u}-description`, children: i }),
65
- o && /* @__PURE__ */ n.jsx(_, { id: `${u}-description`, children: o })
64
+ i && !o && /* @__PURE__ */ r.jsx(O, { id: `${u}-description`, children: i }),
65
+ o && /* @__PURE__ */ r.jsx(_, { id: `${u}-description`, children: o })
66
66
  ] })
67
67
  ]
68
68
  }
69
69
  ) : k;
70
70
  }
71
- return /* @__PURE__ */ n.jsx(
72
- re,
71
+ return /* @__PURE__ */ r.jsx(
72
+ ne,
73
73
  {
74
74
  value: l || (w ? "00:00" : "12:00"),
75
75
  onChange: f,
76
76
  divisorMinutes: j,
77
77
  width: s,
78
- label: r,
78
+ label: n,
79
79
  error: o,
80
80
  description: i,
81
81
  disabled: p,
@@ -85,10 +85,10 @@ const X = Array.from({ length: 12 }, (e, r) => r + 1), Y = Array.from({ length:
85
85
  );
86
86
  }
87
87
  );
88
- ne.displayName = "TimePicker";
89
- const re = ({
88
+ re.displayName = "TimePicker";
89
+ const ne = ({
90
90
  value: e,
91
- onChange: r,
91
+ onChange: n,
92
92
  divisorMinutes: o,
93
93
  width: i,
94
94
  label: x,
@@ -109,22 +109,22 @@ const re = ({
109
109
  let t;
110
110
  s ? t = a : t = te(a, M);
111
111
  const g = `${d(t)}:${d(b)}`;
112
- r?.(g);
113
- }, [a, b, M, r, s]), E(() => {
112
+ n?.(g);
113
+ }, [a, b, M, n, s]), E(() => {
114
114
  const t = (g) => {
115
115
  h.current && !h.current.contains(g.target) && p(!1);
116
116
  };
117
117
  if (l)
118
118
  return document.addEventListener("mousedown", t), () => document.removeEventListener("mousedown", t);
119
119
  }, [l]);
120
- const V = s ? `${d(a)}:${d(b)}` : `${d(a)}:${d(b)} ${M}`, z = s ? Y : X, I = /* @__PURE__ */ n.jsxs(
120
+ const V = s ? `${d(a)}:${d(b)}` : `${d(a)}:${d(b)} ${M}`, z = s ? Y : X, I = /* @__PURE__ */ r.jsxs(
121
121
  "div",
122
122
  {
123
123
  ref: h,
124
124
  className: c("relative inline-block", j),
125
125
  style: { width: typeof i == "number" ? `${i}px` : i },
126
126
  children: [
127
- /* @__PURE__ */ n.jsxs(
127
+ /* @__PURE__ */ r.jsxs(
128
128
  "button",
129
129
  {
130
130
  type: "button",
@@ -139,8 +139,8 @@ const re = ({
139
139
  m && "border-destructive"
140
140
  ),
141
141
  children: [
142
- /* @__PURE__ */ n.jsx("span", { children: V }),
143
- /* @__PURE__ */ n.jsx(
142
+ /* @__PURE__ */ r.jsx("span", { children: V }),
143
+ /* @__PURE__ */ r.jsx(
144
144
  K,
145
145
  {
146
146
  name: l ? "CaretUp" : "CaretDown",
@@ -151,17 +151,17 @@ const re = ({
151
151
  ]
152
152
  }
153
153
  ),
154
- l && /* @__PURE__ */ n.jsxs(
154
+ l && /* @__PURE__ */ r.jsxs(
155
155
  "div",
156
156
  {
157
157
  ref: w,
158
158
  className: c(
159
- "absolute z-50 mt-1 bg-popover border border-border rounded-md shadow-lg",
159
+ "absolute z-popover mt-1 bg-popover border border-border rounded-md shadow-lg",
160
160
  "flex divide-x divide-border"
161
161
  ),
162
162
  style: { width: "fit-content", minWidth: s ? "140px" : "200px" },
163
163
  children: [
164
- /* @__PURE__ */ n.jsx("div", { className: "flex flex-col overflow-y-auto max-h-[200px] min-w-[60px]", children: z.map((t) => /* @__PURE__ */ n.jsx(
164
+ /* @__PURE__ */ r.jsx("div", { className: "flex flex-col overflow-y-auto max-h-[200px] min-w-[60px]", children: z.map((t) => /* @__PURE__ */ r.jsx(
165
165
  "button",
166
166
  {
167
167
  type: "button",
@@ -174,7 +174,7 @@ const re = ({
174
174
  },
175
175
  t
176
176
  )) }),
177
- /* @__PURE__ */ n.jsx("div", { className: "flex flex-col overflow-y-auto max-h-[200px] min-w-[60px]", children: U.map((t) => /* @__PURE__ */ n.jsx(
177
+ /* @__PURE__ */ r.jsx("div", { className: "flex flex-col overflow-y-auto max-h-[200px] min-w-[60px]", children: U.map((t) => /* @__PURE__ */ r.jsx(
178
178
  "button",
179
179
  {
180
180
  type: "button",
@@ -187,7 +187,7 @@ const re = ({
187
187
  },
188
188
  t
189
189
  )) }),
190
- !s && /* @__PURE__ */ n.jsx("div", { className: "flex flex-col min-w-[60px]", children: Z.map((t) => /* @__PURE__ */ n.jsx(
190
+ !s && /* @__PURE__ */ r.jsx("div", { className: "flex flex-col min-w-[60px]", children: Z.map((t) => /* @__PURE__ */ r.jsx(
191
191
  "button",
192
192
  {
193
193
  type: "button",
@@ -206,15 +206,15 @@ const re = ({
206
206
  ]
207
207
  }
208
208
  );
209
- return x || m || f ? /* @__PURE__ */ n.jsxs(R, { orientation: "vertical", className: c("w-full", j), children: [
210
- x && /* @__PURE__ */ n.jsx(T, { children: x }),
211
- /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2 flex-1", children: [
209
+ return x || m || f ? /* @__PURE__ */ r.jsxs(R, { orientation: "vertical", className: c("w-full", j), children: [
210
+ x && /* @__PURE__ */ r.jsx(T, { children: x }),
211
+ /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col gap-2 flex-1", children: [
212
212
  I,
213
- f && !m && /* @__PURE__ */ n.jsx(O, { children: f }),
214
- m && /* @__PURE__ */ n.jsx(_, { children: m })
213
+ f && !m && /* @__PURE__ */ r.jsx(O, { children: f }),
214
+ m && /* @__PURE__ */ r.jsx(_, { children: m })
215
215
  ] })
216
216
  ] }) : I;
217
217
  };
218
218
  export {
219
- ne as TimePicker
219
+ re as TimePicker
220
220
  };
@@ -31,36 +31,5 @@ interface TooltipProps extends ShadcnTooltipRootProps {
31
31
  */
32
32
  show?: boolean;
33
33
  }
34
- /**
35
- * Tooltip component for displaying helpful content on hover or focus.
36
- *
37
- * @example
38
- * ```tsx
39
- * // Simple text tooltip
40
- * <Tooltip content="Click to edit">
41
- * <Button>Edit</Button>
42
- * </Tooltip>
43
- *
44
- * // Conditional tooltip
45
- * <Tooltip content="Info" show={showTooltip}>
46
- * <Icon name="Info" />
47
- * </Tooltip>
48
- *
49
- * // ReactNode content with formatting
50
- * <Tooltip content={<div><strong>Bold</strong> and <em>italic</em> text</div>}>
51
- * <Button>Rich Content</Button>
52
- * </Tooltip>
53
- *
54
- * // Complex JSX content
55
- * <Tooltip content={
56
- * <div className="space-y-1">
57
- * <Typography variant="sm" weight="semibold">Title</Typography>
58
- * <Typography variant="sm">Description here</Typography>
59
- * </div>
60
- * }>
61
- * <Icon name="Info" />
62
- * </Tooltip>
63
- * ```
64
- */
65
34
  declare const Tooltip: import('react').ForwardRefExoticComponent<TooltipProps & import('react').RefAttributes<HTMLDivElement>>;
66
35
  export { Tooltip, TooltipProvider, type TooltipProps, type TooltipProviderProps, };
@@ -1,22 +1,22 @@
1
- import { j as o } from "../../../_virtual/jsx-runtime.js";
2
- import { forwardRef as m } from "react";
3
- import { TooltipProvider as x, Tooltip as d, TooltipTrigger as j, TooltipContent as T } from "../../../vendor/shadcn/tooltip.js";
4
- const a = m(
1
+ import { j as i } from "../../../_virtual/jsx-runtime.js";
2
+ import { forwardRef as a } from "react";
3
+ import { TooltipProvider as f, Tooltip as m, TooltipTrigger as d, TooltipContent as n } from "../../../vendor/shadcn/tooltip.js";
4
+ const x = (r) => !!(r == null || typeof r == "string" && r.trim() === "" || Array.isArray(r) && r.length === 0), j = a(
5
5
  ({
6
- content: t,
7
- children: r,
8
- contentProps: i,
6
+ content: r,
7
+ children: o,
8
+ contentProps: t,
9
9
  providerProps: e,
10
10
  triggerProps: s,
11
- show: p = !0,
12
- ...l
13
- }, n) => p ? /* @__PURE__ */ o.jsx(x, { ...e, children: /* @__PURE__ */ o.jsxs(d, { ...l, children: [
14
- /* @__PURE__ */ o.jsx(j, { asChild: !0, ...s, children: /* @__PURE__ */ o.jsx("div", { children: r }) }),
15
- /* @__PURE__ */ o.jsx(T, { ref: n, ...i, children: t })
16
- ] }) }) : /* @__PURE__ */ o.jsx(o.Fragment, { children: r })
11
+ show: l = !0,
12
+ ...p
13
+ }, u) => !l || x(r) ? /* @__PURE__ */ i.jsx(i.Fragment, { children: o }) : /* @__PURE__ */ i.jsx(f, { delayDuration: 0, ...e, children: /* @__PURE__ */ i.jsxs(m, { ...p, children: [
14
+ /* @__PURE__ */ i.jsx(d, { asChild: !0, ...s, children: /* @__PURE__ */ i.jsx("div", { children: o }) }),
15
+ /* @__PURE__ */ i.jsx(n, { ref: u, ...t, children: r })
16
+ ] }) })
17
17
  );
18
- a.displayName = "Tooltip";
18
+ j.displayName = "Tooltip";
19
19
  export {
20
- a as Tooltip,
21
- x as TooltipProvider
20
+ j as Tooltip,
21
+ f as TooltipProvider
22
22
  };
@@ -3,17 +3,17 @@ import { forwardRef as o } from "react";
3
3
  import { cn as d } from "../../../lib/utils.js";
4
4
  import { Typography as r } from "../../atoms/typography/typography.js";
5
5
  const x = "https://dashboard-assets.y.uno/common/empty_illustration.svg", f = o(
6
- ({ className: c, media: s, title: i, description: t, actions: l, ...n }, m) => {
6
+ ({ className: n, media: s, title: c, description: t, actions: l, ...i }, m) => {
7
7
  const a = s === void 0 ? /* @__PURE__ */ e.jsx("img", { src: x, alt: "" }) : s;
8
8
  return /* @__PURE__ */ e.jsxs(
9
9
  "div",
10
10
  {
11
11
  ref: m,
12
12
  className: d(
13
- "flex flex-col items-center gap-6 bg-surface px-6 py-12 rounded-lg",
14
- c
13
+ "flex flex-col items-center gap-6 bg-secondary px-6 py-12 rounded-lg",
14
+ n
15
15
  ),
16
- ...n,
16
+ ...i,
17
17
  children: [
18
18
  a && /* @__PURE__ */ e.jsx("div", { className: "flex-shrink-0", children: a }),
19
19
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-6 items-center w-full", children: [
@@ -23,7 +23,7 @@ const x = "https://dashboard-assets.y.uno/common/empty_illustration.svg", f = o(
23
23
  {
24
24
  as: "h3",
25
25
  className: "text-base font-semibold text-center leading-none",
26
- children: i
26
+ children: c
27
27
  }
28
28
  ),
29
29
  t && /* @__PURE__ */ e.jsx(r, { variant: "muted", className: "text-center", children: t })
@@ -3,7 +3,7 @@ import { forwardRef as m } from "react";
3
3
  import { cn as i } from "../../../lib/utils.js";
4
4
  import { Icon as c } from "../../atoms/icon/icon.js";
5
5
  const p = m(
6
- ({ className: t, icon: d, title: a, description: o, button: s, variant: l = "default", ...n }, x) => {
6
+ ({ className: s, icon: d, title: o, description: a, button: t, variant: l = "default", ...n }, x) => {
7
7
  const r = l === "secondary";
8
8
  return /* @__PURE__ */ e.jsxs(
9
9
  "div",
@@ -12,7 +12,7 @@ const p = 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
- t
15
+ s
16
16
  ),
17
17
  style: {
18
18
  boxShadow: "0 1px 3px 0 rgba(0, 0, 0, 0.10), 0 1px 2px -1px rgba(0, 0, 0, 0.10)"
@@ -24,7 +24,7 @@ const p = m(
24
24
  {
25
25
  className: i(
26
26
  "flex size-16 shrink-0 items-center justify-center rounded-full border-2",
27
- r ? "border-primary" : "border-[#FAFAFA]"
27
+ r ? "border-primary" : "border-muted"
28
28
  ),
29
29
  children: /* @__PURE__ */ e.jsx(
30
30
  c,
@@ -33,7 +33,7 @@ const p = m(
33
33
  size: "xl",
34
34
  className: i(
35
35
  "text-muted-foreground",
36
- r ? "text-primary" : "text-[#FAFAFA]"
36
+ r ? "text-primary" : "text-primary-foreground"
37
37
  ),
38
38
  weight: "fill"
39
39
  }
@@ -48,7 +48,7 @@ const p = m(
48
48
  "text-lg font-semibold leading-7",
49
49
  r ? "text-foreground" : "text-[#FAFAFA]"
50
50
  ),
51
- children: a
51
+ children: o
52
52
  }
53
53
  ),
54
54
  /* @__PURE__ */ e.jsx(
@@ -58,11 +58,11 @@ const p = m(
58
58
  "text-sm leading-5 opacity-80",
59
59
  r ? "text-muted-foreground" : "text-[#FAFAFA]"
60
60
  ),
61
- children: o
61
+ children: a
62
62
  }
63
63
  )
64
64
  ] }),
65
- s && /* @__PURE__ */ e.jsx("div", { className: "shrink-0", children: s })
65
+ t && /* @__PURE__ */ e.jsx("div", { className: "shrink-0", children: t })
66
66
  ]
67
67
  }
68
68
  );
@@ -1,15 +1,15 @@
1
1
  import { j as e } from "../../../../_virtual/jsx-runtime.js";
2
- import { TableHeader as i, TableRow as m } from "../../../../vendor/shadcn/table.js";
3
- import { DataTableHeaderCell as o } from "./cells/data-table-header-cell.js";
2
+ import { TableHeader as s, TableRow as t } from "../../../../vendor/shadcn/table.js";
3
+ import { DataTableHeaderCell as i } from "./cells/data-table-header-cell.js";
4
4
  function p({
5
- table: s,
6
- enableColumnResizing: l
5
+ table: l,
6
+ enableColumnResizing: m
7
7
  }) {
8
- return /* @__PURE__ */ e.jsx(i, { children: s.getHeaderGroups().map((a) => /* @__PURE__ */ e.jsx(m, { className: "bg-surface", children: a.headers.map((r) => /* @__PURE__ */ e.jsx(
9
- o,
8
+ return /* @__PURE__ */ e.jsx(s, { children: l.getHeaderGroups().map((a) => /* @__PURE__ */ e.jsx(t, { className: "bg-muted", children: a.headers.map((r) => /* @__PURE__ */ e.jsx(
9
+ i,
10
10
  {
11
11
  header: r,
12
- enableColumnResizing: l ?? !1
12
+ enableColumnResizing: m ?? !1
13
13
  },
14
14
  r.id
15
15
  )) }, a.id)) });
@@ -1,5 +1,5 @@
1
1
  import { j as e } from "../../../../../_virtual/jsx-runtime.js";
2
- import { Table as u, TableHeader as f, TableRow as a, TableHead as x, TableBody as p, TableCell as h } from "../../../../../vendor/shadcn/table.js";
2
+ import { Table as u, TableHeader as x, TableRow as a, TableHead as f, TableBody as p, TableCell as h } from "../../../../../vendor/shadcn/table.js";
3
3
  import { Skeleton as o } from "../../../../../vendor/shadcn/skeleton.js";
4
4
  function j(s) {
5
5
  return typeof s == "object" && s !== null && "title" in s && typeof s.title == "string";
@@ -13,20 +13,20 @@ function v({
13
13
  rowsCount: l = 5,
14
14
  checkboxSelection: c = !1,
15
15
  actions: d,
16
- rowHeight: t
16
+ rowHeight: i
17
17
  }) {
18
18
  const n = [];
19
19
  return c && n.push(null), s.forEach((r) => {
20
20
  n.push(b(r));
21
21
  }), d && n.push("Actions"), /* @__PURE__ */ e.jsx("div", { className: "space-y-4", children: /* @__PURE__ */ e.jsx("div", { className: "rounded-md border", children: /* @__PURE__ */ e.jsxs(u, { children: [
22
- /* @__PURE__ */ e.jsx(f, { children: /* @__PURE__ */ e.jsx(a, { className: "bg-surface", children: n.map((r, i) => /* @__PURE__ */ e.jsx(x, { children: r ? /* @__PURE__ */ e.jsx("div", { className: "text-xs font-medium", children: r }) : /* @__PURE__ */ e.jsx(o, { className: "h-4 w-4" }) }, i)) }) }),
23
- /* @__PURE__ */ e.jsx(p, { children: Array.from({ length: l }).map((r, i) => /* @__PURE__ */ e.jsx(
22
+ /* @__PURE__ */ e.jsx(x, { children: /* @__PURE__ */ e.jsx(a, { className: "bg-muted", children: n.map((r, t) => /* @__PURE__ */ e.jsx(f, { children: r ? /* @__PURE__ */ e.jsx("div", { className: "text-xs font-medium", children: r }) : /* @__PURE__ */ e.jsx(o, { className: "h-4 w-4" }) }, t)) }) }),
23
+ /* @__PURE__ */ e.jsx(p, { children: Array.from({ length: l }).map((r, t) => /* @__PURE__ */ e.jsx(
24
24
  a,
25
25
  {
26
- style: { height: t ? `${t}px` : void 0 },
26
+ style: { height: i ? `${i}px` : void 0 },
27
27
  children: n.map((T, m) => /* @__PURE__ */ e.jsx(h, { children: /* @__PURE__ */ e.jsx(o, { className: "h-4 w-[80px]" }) }, m))
28
28
  },
29
- i
29
+ t
30
30
  )) })
31
31
  ] }) }) });
32
32
  }