@yuno-payments/dashboard-design-system 2.0.2 → 2.0.4-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.
@@ -15878,6 +15878,7 @@ function X6({
15878
15878
  showOutsideDays: n = !0,
15879
15879
  ...r
15880
15880
  }) {
15881
+ const l = r.captionLayout === "dropdown" || r.captionLayout === "dropdown-buttons";
15881
15882
  return /* @__PURE__ */ c.jsx(
15882
15883
  tS,
15883
15884
  {
@@ -15887,7 +15888,12 @@ function X6({
15887
15888
  months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
15888
15889
  month: "space-y-4",
15889
15890
  caption: "flex justify-center pt-1 relative items-center",
15890
- caption_label: "text-sm font-medium",
15891
+ caption_label: w("text-sm font-medium", l && "hidden"),
15892
+ caption_dropdowns: "flex gap-1 items-center",
15893
+ dropdown: "appearance-none bg-transparent border border-input rounded-md px-2 py-1 text-sm cursor-pointer focus:outline-none focus:ring-2 focus:ring-ring",
15894
+ dropdown_month: "",
15895
+ dropdown_year: "",
15896
+ vhidden: "sr-only",
15891
15897
  nav: "space-x-1 flex items-center",
15892
15898
  nav_button: w(
15893
15899
  Cr({ variant: "outline" }),
@@ -16989,30 +16995,35 @@ function AF({
16989
16995
  requiredIndicator: p,
16990
16996
  required: g = !1,
16991
16997
  orientation: v = "vertical",
16992
- id: A
16998
+ id: A,
16999
+ captionLayout: M,
17000
+ fromYear: x,
17001
+ toYear: E,
17002
+ fromMonth: H,
17003
+ toMonth: Z
16993
17004
  }) {
16994
- const M = T1(), x = A || M, E = !!f, H = o === "start", Z = o === "end", y = /* @__PURE__ */ c.jsxs(w8, { children: [
17005
+ const y = T1(), b = A || y, L = !!f, R = o === "start", I = o === "end", T = /* @__PURE__ */ c.jsxs(w8, { children: [
16995
17006
  /* @__PURE__ */ c.jsx(b8, { asChild: !0, children: /* @__PURE__ */ c.jsxs(
16996
17007
  ue,
16997
17008
  {
16998
17009
  variant: "outline",
16999
17010
  className: w(
17000
17011
  "w-full text-left font-normal h-9",
17001
- Z ? "justify-between" : "justify-start",
17012
+ I ? "justify-between" : "justify-start",
17002
17013
  !e && "text-muted-foreground",
17003
- E && "border-destructive focus-visible:border-destructive",
17014
+ L && "border-destructive focus-visible:border-destructive",
17004
17015
  l
17005
17016
  ),
17006
17017
  disabled: r,
17007
- "aria-invalid": E ? !0 : void 0,
17008
- "aria-describedby": u || f ? `${x}-description` : void 0,
17009
- id: x,
17018
+ "aria-invalid": L ? !0 : void 0,
17019
+ "aria-describedby": u || f ? `${b}-description` : void 0,
17020
+ id: b,
17010
17021
  children: [
17011
17022
  /* @__PURE__ */ c.jsxs("div", { className: "flex items-center gap-2", children: [
17012
- H && /* @__PURE__ */ c.jsx(A7, { className: "h-4 w-4" }),
17023
+ R && /* @__PURE__ */ c.jsx(A7, { className: "h-4 w-4" }),
17013
17024
  e ? e1(e, d) : /* @__PURE__ */ c.jsx("span", { children: n })
17014
17025
  ] }),
17015
- Z && /* @__PURE__ */ c.jsx(aV, { className: "h-4 w-4 opacity-50" })
17026
+ I && /* @__PURE__ */ c.jsx(aV, { className: "h-4 w-4 opacity-50" })
17016
17027
  ]
17017
17028
  }
17018
17029
  ) }),
@@ -17024,7 +17035,16 @@ function AF({
17024
17035
  onSelect: a,
17025
17036
  initialFocus: !0,
17026
17037
  fromDate: s,
17027
- toDate: i
17038
+ toDate: i,
17039
+ disabled: [
17040
+ ...s ? [{ before: s }] : [],
17041
+ ...i ? [{ after: i }] : []
17042
+ ],
17043
+ captionLayout: M,
17044
+ fromYear: x,
17045
+ toYear: E,
17046
+ fromMonth: H,
17047
+ toMonth: Z
17028
17048
  }
17029
17049
  ) })
17030
17050
  ] });
@@ -17032,13 +17052,13 @@ function AF({
17032
17052
  zt,
17033
17053
  {
17034
17054
  orientation: v,
17035
- "data-invalid": E,
17055
+ "data-invalid": L,
17036
17056
  className: w("w-full", l),
17037
17057
  children: [
17038
17058
  (m || h || p) && /* @__PURE__ */ c.jsx(
17039
17059
  Ne,
17040
17060
  {
17041
- htmlFor: x,
17061
+ htmlFor: b,
17042
17062
  info: h,
17043
17063
  requiredIndicator: p,
17044
17064
  required: g,
@@ -17047,13 +17067,13 @@ function AF({
17047
17067
  }
17048
17068
  ),
17049
17069
  /* @__PURE__ */ c.jsxs("div", { className: "flex flex-col gap-2 flex-1", children: [
17050
- y,
17051
- u && !f && /* @__PURE__ */ c.jsx(Oa, { id: `${x}-description`, children: u }),
17052
- f && /* @__PURE__ */ c.jsx(ut, { id: `${x}-description`, children: f })
17070
+ T,
17071
+ u && !f && /* @__PURE__ */ c.jsx(Oa, { id: `${b}-description`, children: u }),
17072
+ f && /* @__PURE__ */ c.jsx(ut, { id: `${b}-description`, children: f })
17053
17073
  ] })
17054
17074
  ]
17055
17075
  }
17056
- ) : y;
17076
+ ) : T;
17057
17077
  }
17058
17078
  const hl = AF;
17059
17079
  function MF({
@@ -17097,7 +17117,7 @@ function MF({
17097
17117
  ) })
17098
17118
  ] });
17099
17119
  }
17100
- const vz = MF, M2 = t.forwardRef(
17120
+ const Az = MF, M2 = t.forwardRef(
17101
17121
  ({ className: e, type: a, ...n }, r) => /* @__PURE__ */ c.jsx(
17102
17122
  "input",
17103
17123
  {
@@ -22059,7 +22079,7 @@ Ej.displayName = W9;
22059
22079
  function H4(e) {
22060
22080
  return e ? "open" : "closed";
22061
22081
  }
22062
- var B9 = "DialogTitleWarning", [Az, G9] = MZ(B9, {
22082
+ var B9 = "DialogTitleWarning", [Mz, G9] = MZ(B9, {
22063
22083
  contentName: It,
22064
22084
  titleName: E4,
22065
22085
  docsSlug: "dialog"
@@ -24057,7 +24077,7 @@ Nk.displayName = "PasswordField";
24057
24077
  const $i = (e, a) => {
24058
24078
  const n = pM(e, 30, "...", 19, 10);
24059
24079
  return a ? n.split("").map(() => "*").join("") : n;
24060
- }, Mz = ({
24080
+ }, xz = ({
24061
24081
  protect: e = !0,
24062
24082
  text: a = "Default Text",
24063
24083
  className: n
@@ -24913,7 +24933,7 @@ const fP = /* @__PURE__ */ W.forwardRef(function(a, n) {
24913
24933
  });
24914
24934
  })) : null;
24915
24935
  }));
24916
- }), Ez = ({ position: e = "bottom-center", ...a }) => /* @__PURE__ */ c.jsx(
24936
+ }), Hz = ({ position: e = "bottom-center", ...a }) => /* @__PURE__ */ c.jsx(
24917
24937
  fP,
24918
24938
  {
24919
24939
  className: "toaster group",
@@ -25478,7 +25498,7 @@ const bP = "https://dashboard-assets.y.uno/common/empty_illustration.svg", _p =
25478
25498
  }
25479
25499
  );
25480
25500
  _p.displayName = "Empty";
25481
- function Hz({
25501
+ function Zz({
25482
25502
  name: e,
25483
25503
  size: a = "xl",
25484
25504
  className: n,
@@ -32798,21 +32818,18 @@ const mn = {
32798
32818
  header: "hsl(var(--sidebar))",
32799
32819
  body: "hsl(var(--background))"
32800
32820
  }, cO = 66, dO = 50, uO = "shadow-[-4px_0_4px_-2px_rgba(0,0,0,0.1)]";
32821
+ function mO(e, a, n) {
32822
+ return e ? { width: "auto", minWidth: 0 } : a ? {
32823
+ width: `${n}px`,
32824
+ minWidth: `${n}px`,
32825
+ maxWidth: `${n}px`
32826
+ } : { width: `${n}px` };
32827
+ }
32801
32828
  function _s(e, a, n) {
32802
32829
  const r = e.getIsPinned(), l = e.getSize(), o = e.id === "_spacer", s = e.columnDef.enableResizing === !1 && !o;
32803
32830
  return {
32804
32831
  style: {
32805
- // Spacer column should not have a fixed width, let it absorb remaining space
32806
- ...o ? {
32807
- width: "auto",
32808
- minWidth: 0
32809
- } : s ? {
32810
- width: `${l}px`,
32811
- minWidth: `${l}px`,
32812
- maxWidth: `${l}px`
32813
- } : {
32814
- width: `${l}px`
32815
- },
32832
+ ...mO(o, s, l),
32816
32833
  ...iO(
32817
32834
  r,
32818
32835
  (i) => e.getStart(i),
@@ -32869,7 +32886,7 @@ function Ec({
32869
32886
  )
32870
32887
  ] }, e.id);
32871
32888
  }
32872
- var mO = Object.create, hA = Object.defineProperty, fO = Object.defineProperties, hO = Object.getOwnPropertyDescriptor, pO = Object.getOwnPropertyDescriptors, e8 = Object.getOwnPropertySymbols, pA = Object.prototype.hasOwnProperty, gA = Object.prototype.propertyIsEnumerable, gO = (e, a) => (a = Symbol[e]) ? a : Symbol.for("Symbol." + e), j2 = (e) => {
32889
+ var fO = Object.create, hA = Object.defineProperty, hO = Object.defineProperties, pO = Object.getOwnPropertyDescriptor, gO = Object.getOwnPropertyDescriptors, e8 = Object.getOwnPropertySymbols, pA = Object.prototype.hasOwnProperty, gA = Object.prototype.propertyIsEnumerable, vO = (e, a) => (a = Symbol[e]) ? a : Symbol.for("Symbol." + e), j2 = (e) => {
32873
32890
  throw TypeError(e);
32874
32891
  }, m6 = (e, a, n) => a in e ? hA(e, a, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[a] = n, Hc = (e, a) => {
32875
32892
  for (var n in a || (a = {}))
@@ -32878,7 +32895,7 @@ var mO = Object.create, hA = Object.defineProperty, fO = Object.defineProperties
32878
32895
  for (var n of e8(a))
32879
32896
  gA.call(a, n) && m6(e, n, a[n]);
32880
32897
  return e;
32881
- }, Zc = (e, a) => fO(e, pO(a)), vO = (e, a) => {
32898
+ }, Zc = (e, a) => hO(e, gO(a)), AO = (e, a) => {
32882
32899
  var n = {};
32883
32900
  for (var r in e)
32884
32901
  pA.call(e, r) && a.indexOf(r) < 0 && (n[r] = e[r]);
@@ -32886,25 +32903,25 @@ var mO = Object.create, hA = Object.defineProperty, fO = Object.defineProperties
32886
32903
  for (var r of e8(e))
32887
32904
  a.indexOf(r) < 0 && gA.call(e, r) && (n[r] = e[r]);
32888
32905
  return n;
32889
- }, AO = (e) => {
32906
+ }, MO = (e) => {
32890
32907
  var a;
32891
- return [, , , mO((a = void 0) != null ? a : null)];
32892
- }, vA = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Cn = (e) => e !== void 0 && typeof e != "function" ? j2("Function expected") : e, MO = (e, a, n, r, l) => ({ kind: vA[e], name: a, metadata: r, addInitializer: (o) => n._ ? j2("Already initialized") : l.push(Cn(o || null)) }), xO = (e, a) => m6(a, gO("metadata"), e[3]), er = (e, a, n, r) => {
32908
+ return [, , , fO((a = void 0) != null ? a : null)];
32909
+ }, vA = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Cn = (e) => e !== void 0 && typeof e != "function" ? j2("Function expected") : e, xO = (e, a, n, r, l) => ({ kind: vA[e], name: a, metadata: r, addInitializer: (o) => n._ ? j2("Already initialized") : l.push(Cn(o || null)) }), EO = (e, a) => m6(a, vO("metadata"), e[3]), er = (e, a, n, r) => {
32893
32910
  for (var l = 0, o = e[a >> 1], s = o && o.length; l < s; l++) a & 1 ? o[l].call(n) : r = o[l].call(n, r);
32894
32911
  return r;
32895
32912
  }, AA = (e, a, n, r, l, o) => {
32896
- for (var s, i, d, m, f, u = a & 7, h = !1, p = !1, g = e.length + 1, v = vA[u + 5], A = e[g - 1] = [], M = e[g] || (e[g] = []), x = (l = l.prototype, hO({ get [n]() {
32913
+ for (var s, i, d, m, f, u = a & 7, h = !1, p = !1, g = e.length + 1, v = vA[u + 5], A = e[g - 1] = [], M = e[g] || (e[g] = []), x = (l = l.prototype, pO({ get [n]() {
32897
32914
  return Ln(this, o);
32898
32915
  }, set [n](H) {
32899
32916
  return St(this, o, H);
32900
32917
  } }, n)), E = r.length - 1; E >= 0; E--)
32901
- m = MO(u, n, d = {}, e[3], M), m.static = h, m.private = p, f = m.access = { has: (H) => n in H }, f.get = (H) => H[n], f.set = (H, Z) => H[n] = Z, i = (0, r[E])({ get: x.get, set: x.set }, m), d._ = 1, i === void 0 ? Cn(i) && (x[v] = i) : typeof i != "object" || i === null ? j2("Object expected") : (Cn(s = i.get) && (x.get = s), Cn(s = i.set) && (x.set = s), Cn(s = i.init) && A.unshift(s));
32918
+ m = xO(u, n, d = {}, e[3], M), m.static = h, m.private = p, f = m.access = { has: (H) => n in H }, f.get = (H) => H[n], f.set = (H, Z) => H[n] = Z, i = (0, r[E])({ get: x.get, set: x.set }, m), d._ = 1, i === void 0 ? Cn(i) && (x[v] = i) : typeof i != "object" || i === null ? j2("Object expected") : (Cn(s = i.get) && (x.get = s), Cn(s = i.set) && (x.set = s), Cn(s = i.init) && A.unshift(s));
32902
32919
  return x && hA(l, n, x), l;
32903
32920
  }, MA = (e, a, n) => a.has(e) || j2("Cannot " + n), Ln = (e, a, n) => (MA(e, a, "read from private field"), a.get(e)), fn = (e, a, n) => a.has(e) ? j2("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(e) : a.set(e, n), St = (e, a, n, r) => (MA(e, a, "write to private field"), a.set(e, n), n);
32904
32921
  function _t(e) {
32905
32922
  return e instanceof js || e instanceof ZA;
32906
32923
  }
32907
- var tr = 10, EO = class extends me {
32924
+ var tr = 10, HO = class extends me {
32908
32925
  constructor(e) {
32909
32926
  super(e);
32910
32927
  const a = Ce(() => {
@@ -32926,7 +32943,7 @@ var tr = 10, EO = class extends me {
32926
32943
  const { actions: s, collisionObserver: i, registry: d } = l, { by: m } = r;
32927
32944
  if (!m)
32928
32945
  return;
32929
- const f = HO(m), { source: u, target: h } = o, { center: p } = o.shape.current, g = [], v = [];
32946
+ const f = ZO(m), { source: u, target: h } = o, { center: p } = o.shape.current, g = [], v = [];
32930
32947
  $0(() => {
32931
32948
  for (const Z of d.droppables) {
32932
32949
  const { id: y } = Z;
@@ -32979,7 +32996,7 @@ var tr = 10, EO = class extends me {
32979
32996
  };
32980
32997
  }
32981
32998
  };
32982
- function HO(e) {
32999
+ function ZO(e) {
32983
33000
  const { x: a, y: n } = e;
32984
33001
  if (a > 0)
32985
33002
  return "right";
@@ -32990,15 +33007,15 @@ function HO(e) {
32990
33007
  if (n < 0)
32991
33008
  return "up";
32992
33009
  }
32993
- var ZO = Object.defineProperty, yO = Object.defineProperties, wO = Object.getOwnPropertyDescriptors, yc = Object.getOwnPropertySymbols, bO = Object.prototype.hasOwnProperty, VO = Object.prototype.propertyIsEnumerable, wc = (e, a, n) => a in e ? ZO(e, a, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[a] = n, sa = (e, a) => {
33010
+ var yO = Object.defineProperty, wO = Object.defineProperties, bO = Object.getOwnPropertyDescriptors, yc = Object.getOwnPropertySymbols, VO = Object.prototype.hasOwnProperty, CO = Object.prototype.propertyIsEnumerable, wc = (e, a, n) => a in e ? yO(e, a, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[a] = n, sa = (e, a) => {
32994
33011
  for (var n in a || (a = {}))
32995
- bO.call(a, n) && wc(e, n, a[n]);
33012
+ VO.call(a, n) && wc(e, n, a[n]);
32996
33013
  if (yc)
32997
33014
  for (var n of yc(a))
32998
- VO.call(a, n) && wc(e, n, a[n]);
33015
+ CO.call(a, n) && wc(e, n, a[n]);
32999
33016
  return e;
33000
- }, ia = (e, a) => yO(e, wO(a));
33001
- function CO(e, a, n) {
33017
+ }, ia = (e, a) => wO(e, bO(a));
33018
+ function LO(e, a, n) {
33002
33019
  if (a === n)
33003
33020
  return e;
33004
33021
  const r = e.slice();
@@ -33007,7 +33024,7 @@ function CO(e, a, n) {
33007
33024
  function $l(e) {
33008
33025
  return "initialIndex" in e && typeof e.initialIndex == "number" && "index" in e && typeof e.index == "number";
33009
33026
  }
33010
- function LO(e, a, n) {
33027
+ function SO(e, a, n) {
33011
33028
  var r, l, o;
33012
33029
  const { source: s, target: i, canceled: d } = a.operation;
33013
33030
  if (!s || !i || d)
@@ -33109,10 +33126,10 @@ function LO(e, a, n) {
33109
33126
  ]
33110
33127
  });
33111
33128
  }
33112
- function SO(e, a) {
33113
- return LO(e, a, CO);
33129
+ function FO(e, a) {
33130
+ return SO(e, a, LO);
33114
33131
  }
33115
- var bc = "__default__", FO = class extends me {
33132
+ var bc = "__default__", _O = class extends me {
33116
33133
  constructor(e) {
33117
33134
  super(e);
33118
33135
  const a = () => {
@@ -33150,7 +33167,7 @@ var bc = "__default__", FO = class extends me {
33150
33167
  const x = ar(f), E = m ? x : ar(u), H = (p = s.sortable.group) != null ? p : bc, Z = (g = i.sortable.group) != null ? g : bc, y = {
33151
33168
  [H]: x,
33152
33169
  [Z]: E
33153
- }, b = SO(y, r);
33170
+ }, b = FO(y, r);
33154
33171
  if (y === b) return;
33155
33172
  const L = b[Z].indexOf(s.sortable), R = b[Z].indexOf(i.sortable);
33156
33173
  l.collisionObserver.disable(), Vc(A, L, M, R), $0(() => {
@@ -33200,15 +33217,15 @@ function Vc(e, a, n, r) {
33200
33217
  const l = r < a ? "afterend" : "beforebegin";
33201
33218
  n.insertAdjacentElement(l, e);
33202
33219
  }
33203
- function _O(e, a) {
33220
+ function NO(e, a) {
33204
33221
  return e.index - a.index;
33205
33222
  }
33206
33223
  function ar(e) {
33207
- return Array.from(e).sort(_O);
33224
+ return Array.from(e).sort(NO);
33208
33225
  }
33209
- var NO = [
33210
- EO,
33211
- FO
33226
+ var RO = [
33227
+ HO,
33228
+ _O
33212
33229
  ], xA = {
33213
33230
  duration: 250,
33214
33231
  easing: "cubic-bezier(0.25, 1, 0.5, 1)",
@@ -33237,8 +33254,8 @@ var B8 = class {
33237
33254
  sensors: s,
33238
33255
  type: i,
33239
33256
  transition: d = xA,
33240
- plugins: m = NO
33241
- } = n, f = vO(n, [
33257
+ plugins: m = RO
33258
+ } = n, f = AO(n, [
33242
33259
  "effects",
33243
33260
  "group",
33244
33261
  "index",
@@ -33448,7 +33465,7 @@ var B8 = class {
33448
33465
  return this.droppable.accepts(e);
33449
33466
  }
33450
33467
  };
33451
- et = AO();
33468
+ et = MO();
33452
33469
  Ns = /* @__PURE__ */ new WeakMap();
33453
33470
  Sn = /* @__PURE__ */ new WeakMap();
33454
33471
  Fn = /* @__PURE__ */ new WeakMap();
@@ -33456,7 +33473,7 @@ Rs = /* @__PURE__ */ new WeakMap();
33456
33473
  va = /* @__PURE__ */ new WeakMap();
33457
33474
  AA(et, 4, "index", HA, B8, Ns);
33458
33475
  AA(et, 4, "group", EA, B8, Rs);
33459
- xO(et, B8);
33476
+ EO(et, B8);
33460
33477
  var ZA = class extends N2 {
33461
33478
  constructor(e, a, n) {
33462
33479
  super(e, a), this.sortable = n;
@@ -33483,14 +33500,14 @@ var ZA = class extends N2 {
33483
33500
  get group() {
33484
33501
  return this.sortable.group;
33485
33502
  }
33486
- }, RO = Object.defineProperty, jO = Object.defineProperties, kO = Object.getOwnPropertyDescriptors, Cc = Object.getOwnPropertySymbols, PO = Object.prototype.hasOwnProperty, IO = Object.prototype.propertyIsEnumerable, Lc = (e, a, n) => a in e ? RO(e, a, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[a] = n, Tl = (e, a) => {
33503
+ }, jO = Object.defineProperty, kO = Object.defineProperties, PO = Object.getOwnPropertyDescriptors, Cc = Object.getOwnPropertySymbols, IO = Object.prototype.hasOwnProperty, DO = Object.prototype.propertyIsEnumerable, Lc = (e, a, n) => a in e ? jO(e, a, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[a] = n, Tl = (e, a) => {
33487
33504
  for (var n in a || (a = {}))
33488
- PO.call(a, n) && Lc(e, n, a[n]);
33505
+ IO.call(a, n) && Lc(e, n, a[n]);
33489
33506
  if (Cc)
33490
33507
  for (var n of Cc(a))
33491
- IO.call(a, n) && Lc(e, n, a[n]);
33508
+ DO.call(a, n) && Lc(e, n, a[n]);
33492
33509
  return e;
33493
- }, DO = (e, a) => jO(e, kO(a));
33510
+ }, $O = (e, a) => kO(e, PO(a));
33494
33511
  function yA(e) {
33495
33512
  const {
33496
33513
  accept: a,
@@ -33509,7 +33526,7 @@ function yA(e) {
33509
33526
  target: g,
33510
33527
  type: v
33511
33528
  } = e, A = Tl(Tl({}, xA), e.transition), M = aA((E) => new B8(
33512
- DO(Tl({}, e), {
33529
+ $O(Tl({}, e), {
33513
33530
  transition: A,
33514
33531
  register: !1,
33515
33532
  handle: Za(i),
@@ -33518,7 +33535,7 @@ function yA(e) {
33518
33535
  feedback: u
33519
33536
  }),
33520
33537
  E
33521
- )), x = Cs(M, $O);
33538
+ )), x = Cs(M, TO);
33522
33539
  return k0(l, () => M.id = l), Xt(() => {
33523
33540
  $0(() => {
33524
33541
  M.group = m, M.index = d;
@@ -33597,10 +33614,10 @@ function yA(e) {
33597
33614
  )
33598
33615
  };
33599
33616
  }
33600
- function $O(e, a, n) {
33617
+ function TO(e, a, n) {
33601
33618
  return !!(e === "isDragSource" && !n && a);
33602
33619
  }
33603
- function TO({
33620
+ function OO({
33604
33621
  header: e,
33605
33622
  index: a,
33606
33623
  enableColumnResizing: n
@@ -33640,7 +33657,7 @@ function TO({
33640
33657
  e.id
33641
33658
  );
33642
33659
  }
33643
- function OO({
33660
+ function zO({
33644
33661
  table: e,
33645
33662
  enableColumnResizing: a,
33646
33663
  enableColumnDragDrop: n = !1
@@ -33653,7 +33670,7 @@ function OO({
33653
33670
  },
33654
33671
  l.id
33655
33672
  ) : /* @__PURE__ */ c.jsx(
33656
- TO,
33673
+ OO,
33657
33674
  {
33658
33675
  header: l,
33659
33676
  index: o,
@@ -33669,7 +33686,7 @@ function OO({
33669
33686
  l.id
33670
33687
  )) }, r.id)) });
33671
33688
  }
33672
- function zO({
33689
+ function WO({
33673
33690
  cell: e,
33674
33691
  enableColumnResizing: a
33675
33692
  }) {
@@ -33680,7 +33697,7 @@ function zO({
33680
33697
  );
33681
33698
  return /* @__PURE__ */ c.jsx(qn, { style: n, className: r, children: Un(e.column.columnDef.cell, e.getContext()) }, e.id);
33682
33699
  }
33683
- function WO({
33700
+ function BO({
33684
33701
  table: e,
33685
33702
  enableColumnResizing: a,
33686
33703
  onRowClick: n,
@@ -33698,7 +33715,7 @@ function WO({
33698
33715
  ),
33699
33716
  style: { height: r ? `${r}px` : void 0 },
33700
33717
  children: s.getVisibleCells().map((d) => /* @__PURE__ */ c.jsx(
33701
- zO,
33718
+ WO,
33702
33719
  {
33703
33720
  cell: d,
33704
33721
  enableColumnResizing: a ?? !1
@@ -33709,7 +33726,7 @@ function WO({
33709
33726
  s.id
33710
33727
  )) });
33711
33728
  }
33712
- function BO(e, a) {
33729
+ function GO(e, a) {
33713
33730
  const [n, r] = h0(!1), [l, o] = h0(!1), [s, i] = h0(!1), d = e.getIsPinned(), m = e.getCanPin(), f = e.getCanSort(), u = e.getIsSorted(), h = a.getAllColumns().filter(
33714
33731
  (A) => typeof A.accessorFn < "u" && A.getCanHide()
33715
33732
  ), p = h.filter(
@@ -33734,7 +33751,7 @@ function BO(e, a) {
33734
33751
  }
33735
33752
  };
33736
33753
  }
33737
- function GO({
33754
+ function UO({
33738
33755
  column: e,
33739
33756
  isLastVisibleColumn: a,
33740
33757
  onManageColumnsClick: n
@@ -33829,7 +33846,7 @@ function bA(e, a) {
33829
33846
  };
33830
33847
  }, [e, a]);
33831
33848
  }
33832
- const UO = R0(
33849
+ const YO = R0(
33833
33850
  "fixed inset-0 z-dialog flex items-center justify-center p-4",
33834
33851
  {
33835
33852
  variants: {
@@ -33843,7 +33860,7 @@ const UO = R0(
33843
33860
  verticalAlign: "center"
33844
33861
  }
33845
33862
  }
33846
- ), YO = R0(
33863
+ ), qO = R0(
33847
33864
  "relative bg-background rounded-lg shadow-lg border border-border max-h-[90vh] overflow-hidden flex flex-col",
33848
33865
  {
33849
33866
  variants: {
@@ -33908,13 +33925,13 @@ const UO = R0(
33908
33925
  "aria-hidden": "true"
33909
33926
  }
33910
33927
  ),
33911
- /* @__PURE__ */ c.jsx("div", { className: w(UO({ verticalAlign: a })), children: /* @__PURE__ */ c.jsxs(
33928
+ /* @__PURE__ */ c.jsx("div", { className: w(YO({ verticalAlign: a })), children: /* @__PURE__ */ c.jsxs(
33912
33929
  "div",
33913
33930
  {
33914
33931
  ref: M,
33915
33932
  className: w(
33916
33933
  "yuno-dialog",
33917
- YO({
33934
+ qO({
33918
33935
  size: x ? "fullscreen" : "default"
33919
33936
  }),
33920
33937
  "transition-all duration-600 ease-out",
@@ -33947,7 +33964,7 @@ const UO = R0(
33947
33964
  }
33948
33965
  );
33949
33966
  VA.displayName = "Dialog";
33950
- function qO({
33967
+ function KO({
33951
33968
  isOpen: e,
33952
33969
  onOpenChange: a,
33953
33970
  toggleableColumns: n,
@@ -34014,7 +34031,7 @@ function qO({
34014
34031
  }
34015
34032
  );
34016
34033
  }
34017
- function KO({
34034
+ function XO({
34018
34035
  canSort: e,
34019
34036
  sortDirection: a
34020
34037
  }) {
@@ -34032,7 +34049,7 @@ function KO({
34032
34049
  }[a];
34033
34050
  return /* @__PURE__ */ c.jsx(n0, { name: r.name, size: "sm", tooltip: r.tooltip });
34034
34051
  }
34035
- function XO({
34052
+ function QO({
34036
34053
  title: e,
34037
34054
  info: a,
34038
34055
  isPinned: n,
@@ -34063,7 +34080,7 @@ function XO({
34063
34080
  }
34064
34081
  ),
34065
34082
  n && /* @__PURE__ */ c.jsx(n0, { name: "PushPinSimple", size: "sm", tooltip: "Pinned column" }),
34066
- /* @__PURE__ */ c.jsx(KO, { canSort: r, sortDirection: l }),
34083
+ /* @__PURE__ */ c.jsx(XO, { canSort: r, sortDirection: l }),
34067
34084
  /* @__PURE__ */ c.jsx("span", { className: "flex-1 text-left", children: e }),
34068
34085
  (o || s) && /* @__PURE__ */ c.jsx(h4, { asChild: !0, children: /* @__PURE__ */ c.jsx(
34069
34086
  n0,
@@ -34100,7 +34117,7 @@ function _c({
34100
34117
  visibleColumnsCount: A,
34101
34118
  isLastVisibleColumn: M,
34102
34119
  handleManageColumnsClick: x
34103
- } = BO(e, a);
34120
+ } = GO(e, a);
34104
34121
  return !p && !h ? /* @__PURE__ */ c.jsxs("div", { className: w("flex items-center gap-2", r), children: [
34105
34122
  l && /* @__PURE__ */ c.jsx(
34106
34123
  n0,
@@ -34115,7 +34132,7 @@ function _c({
34115
34132
  ] }) : /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
34116
34133
  /* @__PURE__ */ c.jsx("div", { className: w("flex items-center gap-2", r), children: /* @__PURE__ */ c.jsxs(f4, { open: i, onOpenChange: d, children: [
34117
34134
  /* @__PURE__ */ c.jsx(
34118
- XO,
34135
+ QO,
34119
34136
  {
34120
34137
  title: n,
34121
34138
  info: l,
@@ -34129,7 +34146,7 @@ function _c({
34129
34146
  }
34130
34147
  ),
34131
34148
  /* @__PURE__ */ c.jsx(
34132
- GO,
34149
+ UO,
34133
34150
  {
34134
34151
  column: e,
34135
34152
  isLastVisibleColumn: M,
@@ -34138,7 +34155,7 @@ function _c({
34138
34155
  )
34139
34156
  ] }) }),
34140
34157
  /* @__PURE__ */ c.jsx(
34141
- qO,
34158
+ KO,
34142
34159
  {
34143
34160
  isOpen: m,
34144
34161
  onOpenChange: f,
@@ -34148,7 +34165,7 @@ function _c({
34148
34165
  )
34149
34166
  ] });
34150
34167
  }
34151
- function QO({
34168
+ function JO({
34152
34169
  columns: e,
34153
34170
  checkboxSelection: a = !1,
34154
34171
  actions: n
@@ -34248,7 +34265,7 @@ function QO({
34248
34265
  return r = [...r, l], r;
34249
34266
  }, [a, n, e]);
34250
34267
  }
34251
- function JO({
34268
+ function ez({
34252
34269
  persistKey: e,
34253
34270
  hasActions: a = !1,
34254
34271
  externalSorting: n,
@@ -34376,7 +34393,7 @@ function JO({
34376
34393
  setColumnOrder: E
34377
34394
  };
34378
34395
  }
34379
- function _z({
34396
+ function Nz({
34380
34397
  columns: e,
34381
34398
  data: a,
34382
34399
  isLoading: n = !1,
@@ -34402,7 +34419,7 @@ function _z({
34402
34419
  onUpdate: y,
34403
34420
  enableColumnDragDrop: b = !1
34404
34421
  }) {
34405
- const L = QO({
34422
+ const L = JO({
34406
34423
  columns: e,
34407
34424
  checkboxSelection: l,
34408
34425
  actions: A
@@ -34419,7 +34436,7 @@ function _z({
34419
34436
  handleColumnPinningChange: F,
34420
34437
  columnOrder: z,
34421
34438
  setColumnOrder: X
34422
- } = JO({
34439
+ } = ez({
34423
34440
  persistKey: H,
34424
34441
  hasActions: !!A,
34425
34442
  externalSorting: m,
@@ -34539,7 +34556,7 @@ function _z({
34539
34556
  );
34540
34557
  }) }),
34541
34558
  /* @__PURE__ */ c.jsx(
34542
- OO,
34559
+ zO,
34543
34560
  {
34544
34561
  table: e0,
34545
34562
  enableColumnResizing: h,
@@ -34547,7 +34564,7 @@ function _z({
34547
34564
  }
34548
34565
  ),
34549
34566
  /* @__PURE__ */ c.jsx(
34550
- WO,
34567
+ BO,
34551
34568
  {
34552
34569
  table: e0,
34553
34570
  enableColumnResizing: h,
@@ -34568,7 +34585,7 @@ function _z({
34568
34585
  }
34569
34586
  ) : J;
34570
34587
  }
34571
- const ez = s0(
34588
+ const tz = s0(
34572
34589
  ({ items: e, maxLength: a = 7, showRemainingCount: n = !0, className: r }, l) => {
34573
34590
  if (!e || e.length === 0) return null;
34574
34591
  const o = e[0], s = e.slice(1), i = o.name.length > a && a > 0, d = i ? `${o.name.slice(0, a)}...` : o.name;
@@ -34626,8 +34643,8 @@ const ez = s0(
34626
34643
  );
34627
34644
  }
34628
34645
  );
34629
- ez.displayName = "DataTableListCell";
34630
- const tz = R0(
34646
+ tz.displayName = "DataTableListCell";
34647
+ const az = R0(
34631
34648
  "fixed z-sheet bg-background shadow-lg transition-transform duration-300 ease-in-out",
34632
34649
  {
34633
34650
  variants: {
@@ -34657,7 +34674,7 @@ const tz = R0(
34657
34674
  isOpen: !1
34658
34675
  }
34659
34676
  }
34660
- ), az = R0(
34677
+ ), nz = R0(
34661
34678
  "fixed inset-0 z-sheet bg-black/50 transition-opacity duration-300",
34662
34679
  {
34663
34680
  variants: {
@@ -34670,7 +34687,7 @@ const tz = R0(
34670
34687
  isOpen: !1
34671
34688
  }
34672
34689
  }
34673
- ), nz = t.forwardRef(
34690
+ ), rz = t.forwardRef(
34674
34691
  ({
34675
34692
  className: e,
34676
34693
  side: a = "right",
@@ -34709,7 +34726,7 @@ const tz = R0(
34709
34726
  /* @__PURE__ */ c.jsx(
34710
34727
  "div",
34711
34728
  {
34712
- className: az({ isOpen: H }),
34729
+ className: nz({ isOpen: H }),
34713
34730
  onClick: o,
34714
34731
  "aria-hidden": "true"
34715
34732
  }
@@ -34718,7 +34735,7 @@ const tz = R0(
34718
34735
  "div",
34719
34736
  {
34720
34737
  ref: M,
34721
- className: w(tz({ side: a, isOpen: H }), e),
34738
+ className: w(az({ side: a, isOpen: H }), e),
34722
34739
  style: L,
34723
34740
  role: "dialog",
34724
34741
  "aria-modal": "true",
@@ -34794,8 +34811,8 @@ const tz = R0(
34794
34811
  return kc(R, document.body);
34795
34812
  }
34796
34813
  );
34797
- nz.displayName = "Sheet";
34798
- const rz = s0(
34814
+ rz.displayName = "Sheet";
34815
+ const lz = s0(
34799
34816
  ({
34800
34817
  continuous: e,
34801
34818
  step: a,
@@ -34896,8 +34913,8 @@ const rz = s0(
34896
34913
  ] });
34897
34914
  }
34898
34915
  );
34899
- rz.displayName = "Tutorial";
34900
- const lz = ({
34916
+ lz.displayName = "Tutorial";
34917
+ const oz = ({
34901
34918
  item: e,
34902
34919
  onMove: a,
34903
34920
  moveIconName: n = "PlusCircle",
@@ -34919,7 +34936,7 @@ const lz = ({
34919
34936
  a && /* @__PURE__ */ c.jsx(be, { variant: "ghost", size: "icon", onClick: (l) => l.stopPropagation(), children: /* @__PURE__ */ c.jsx(n0, { name: n, className: "text-muted-foreground" }) })
34920
34937
  ]
34921
34938
  }
34922
- ), oz = ({
34939
+ ), sz = ({
34923
34940
  item: e,
34924
34941
  index: a,
34925
34942
  group: n,
@@ -34963,7 +34980,7 @@ const lz = ({
34963
34980
  ]
34964
34981
  }
34965
34982
  );
34966
- }, sz = ({
34983
+ }, iz = ({
34967
34984
  title: e = "No items",
34968
34985
  description: a = "No items available",
34969
34986
  iconName: n = "TextColumns"
@@ -34971,7 +34988,7 @@ const lz = ({
34971
34988
  /* @__PURE__ */ c.jsx(n0, { name: n, className: "text-muted-foreground", size: "xl" }),
34972
34989
  /* @__PURE__ */ c.jsx("p", { className: "text-base text-center text-foreground font-bold", children: e }),
34973
34990
  /* @__PURE__ */ c.jsx("p", { className: "text-xs text-center text-muted-foreground", children: a })
34974
- ] }), iz = 1, Nc = ({
34991
+ ] }), cz = 1, Nc = ({
34975
34992
  id: e,
34976
34993
  title: a,
34977
34994
  items: n,
@@ -34985,7 +35002,7 @@ const lz = ({
34985
35002
  emptyState: f,
34986
35003
  isSelected: u = !1
34987
35004
  }) => {
34988
- const h = `${e}-title`, p = n.length === 0, { ref: g } = KT({ id: e, collisionPriority: iz }), v = f ?? /* @__PURE__ */ c.jsx(sz, {});
35005
+ const h = `${e}-title`, p = n.length === 0, { ref: g } = KT({ id: e, collisionPriority: cz }), v = f ?? /* @__PURE__ */ c.jsx(iz, {});
34989
35006
  return /* @__PURE__ */ c.jsxs(
34990
35007
  "div",
34991
35008
  {
@@ -35011,7 +35028,7 @@ const lz = ({
35011
35028
  "aria-labelledby": h,
35012
35029
  "aria-multiselectable": !0,
35013
35030
  children: p ? v : n.map((A, M) => /* @__PURE__ */ c.jsx(
35014
- oz,
35031
+ sz,
35015
35032
  {
35016
35033
  item: A,
35017
35034
  index: M,
@@ -35027,7 +35044,7 @@ const lz = ({
35027
35044
  ]
35028
35045
  }
35029
35046
  );
35030
- }, cz = s0(
35047
+ }, dz = s0(
35031
35048
  ({
35032
35049
  left: e,
35033
35050
  right: a,
@@ -35132,15 +35149,15 @@ const lz = ({
35132
35149
  ),
35133
35150
  /* @__PURE__ */ c.jsx(RT, { children: (j) => {
35134
35151
  const B = E.current.left.concat(E.current.right).find((q) => q.id === j.id);
35135
- return B ? /* @__PURE__ */ c.jsx(lz, { item: B }) : null;
35152
+ return B ? /* @__PURE__ */ c.jsx(oz, { item: B }) : null;
35136
35153
  } })
35137
35154
  ]
35138
35155
  }
35139
35156
  );
35140
35157
  }
35141
35158
  );
35142
- cz.displayName = "TransferList";
35143
- function Nz(e, a = !1) {
35159
+ dz.displayName = "TransferList";
35160
+ function Rz(e, a = !1) {
35144
35161
  const [n, r] = h0(() => typeof window > "u" ? a : window.matchMedia(e).matches);
35145
35162
  return W0(() => {
35146
35163
  if (typeof window > "u")
@@ -35157,22 +35174,22 @@ function Nz(e, a = !1) {
35157
35174
  });
35158
35175
  }, [e]), n;
35159
35176
  }
35160
- const dz = {
35177
+ const uz = {
35161
35178
  success: "CheckCircle",
35162
35179
  error: "WarningCircle",
35163
35180
  warning: "Warning",
35164
35181
  info: "Info"
35165
- }, uz = {
35182
+ }, mz = {
35166
35183
  success: "var(--color-success)",
35167
35184
  error: "var(--color-destructive)",
35168
35185
  warning: "var(--color-warning)",
35169
35186
  info: "var(--color-info)"
35170
- }, mz = {
35187
+ }, fz = {
35171
35188
  success: "default",
35172
35189
  error: "destructive",
35173
35190
  warning: "default",
35174
35191
  info: "default"
35175
- }, fz = () => /* @__PURE__ */ c.jsx("div", { className: "w-full h-1 bg-border rounded-full overflow-hidden mt-3", children: /* @__PURE__ */ c.jsx("div", { className: "h-full bg-primary animate-progress-indeterminate" }) }), Rz = ({
35192
+ }, hz = () => /* @__PURE__ */ c.jsx("div", { className: "w-full h-1 bg-border rounded-full overflow-hidden mt-3", children: /* @__PURE__ */ c.jsx("div", { className: "h-full bg-primary animate-progress-indeterminate" }) }), jz = ({
35176
35193
  mode: e,
35177
35194
  title: a,
35178
35195
  message: n,
@@ -35182,22 +35199,22 @@ const dz = {
35182
35199
  withCloseButton: s = !0,
35183
35200
  withProgress: i = !1
35184
35201
  }) => {
35185
- const d = dz[e], m = !!a, f = !!(r && l), u = /* @__PURE__ */ c.jsx(
35202
+ const d = uz[e], m = !!a, f = !!(r && l), u = /* @__PURE__ */ c.jsx(
35186
35203
  n0,
35187
35204
  {
35188
35205
  name: d,
35189
35206
  className: "size-4",
35190
35207
  weight: "fill",
35191
- style: { color: uz[e] }
35208
+ style: { color: mz[e] }
35192
35209
  }
35193
35210
  ), h = /* @__PURE__ */ c.jsxs("div", { className: "flex flex-col gap-0 w-full", children: [
35194
35211
  /* @__PURE__ */ c.jsx("div", { className: "flex items-start gap-2", children: /* @__PURE__ */ c.jsx("div", { className: "flex-1 min-w-0", children: /* @__PURE__ */ c.jsx("p", { className: m ? "text-sm font-semibold" : "text-sm", children: m ? a : n }) }) }),
35195
35212
  m && /* @__PURE__ */ c.jsx("div", { className: "mt-1", children: /* @__PURE__ */ c.jsx("p", { className: "text-sm text-muted-foreground", children: n }) }),
35196
- i && /* @__PURE__ */ c.jsx(fz, {}),
35213
+ i && /* @__PURE__ */ c.jsx(hz, {}),
35197
35214
  f && /* @__PURE__ */ c.jsx("div", { className: "mt-3", children: /* @__PURE__ */ c.jsx(
35198
35215
  be,
35199
35216
  {
35200
- variant: mz[e],
35217
+ variant: fz[e],
35201
35218
  size: "sm",
35202
35219
  onClick: () => {
35203
35220
  l(), cn.dismiss();
@@ -35247,12 +35264,12 @@ export {
35247
35264
  Lr as Checkbox,
35248
35265
  Gj as Combobox,
35249
35266
  pV as CurrencyField,
35250
- _z as DataTable,
35267
+ Nz as DataTable,
35251
35268
  _c as DataTableColumnHeader,
35252
- ez as DataTableListCell,
35253
- KO as DataTableSortIndicator,
35269
+ tz as DataTableListCell,
35270
+ XO as DataTableSortIndicator,
35254
35271
  hl as DatePicker,
35255
- vz as DateRangePicker,
35272
+ Az as DateRangePicker,
35256
35273
  VA as Dialog,
35257
35274
  Sp as DialogContent,
35258
35275
  Fp as DialogFooter,
@@ -35274,7 +35291,7 @@ export {
35274
35291
  JN as DropdownMenuSubTrigger,
35275
35292
  h4 as DropdownMenuTrigger,
35276
35293
  _p as Empty,
35277
- Hz as EmptyIcon,
35294
+ Zz as EmptyIcon,
35278
35295
  Ca as Field,
35279
35296
  jP as FileUpload,
35280
35297
  n_ as FilterButton,
@@ -35314,7 +35331,7 @@ export {
35314
35331
  Kj as PopoverContent,
35315
35332
  qj as PopoverTrigger,
35316
35333
  Zp as Progress,
35317
- Mz as ProtectedField,
35334
+ xz as ProtectedField,
35318
35335
  VP as ProviderCard,
35319
35336
  Qj as RadioGroup,
35320
35337
  a4 as RadioGroupBase,
@@ -35324,32 +35341,32 @@ export {
35324
35341
  Wj as SearchSelect,
35325
35342
  KR as Select,
35326
35343
  ak as Separator,
35327
- nz as Sheet,
35344
+ rz as Sheet,
35328
35345
  Ii as Skeleton,
35329
35346
  DP as Stepper,
35330
35347
  up as Switch,
35331
35348
  DI as TOTALS_ROW_ID,
35332
35349
  mk as Textarea,
35333
35350
  so as TimePicker,
35334
- Ez as Toaster,
35351
+ Hz as Toaster,
35335
35352
  iR as ToggleGroup,
35336
35353
  cR as ToggleGroupItem,
35337
35354
  lt as Tooltip,
35338
35355
  Jl as TooltipProvider,
35339
- cz as TransferList,
35340
- sz as TransferListEmptyState,
35341
- rz as Tutorial,
35356
+ dz as TransferList,
35357
+ iz as TransferListEmptyState,
35358
+ lz as Tutorial,
35342
35359
  ee as Typography,
35343
35360
  jI as avgAggregation,
35344
35361
  w as cn,
35345
35362
  II as maxAggregation,
35346
35363
  PI as minAggregation,
35347
35364
  xr as normalizeDimension,
35348
- Rz as showNotificationAlert,
35365
+ jz as showNotificationAlert,
35349
35366
  kI as sizeAggregation,
35350
35367
  RI as sumAggregation,
35351
35368
  cn as toast,
35352
35369
  wA as useBodyScrollLock,
35353
35370
  bA as useEscapeKey,
35354
- Nz as useMediaQuery
35371
+ Rz as useMediaQuery
35355
35372
  };