@moondreamsdev/dreamer-ui 1.7.18 → 1.7.19-test.0

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.
@@ -2,11 +2,11 @@ var et = Object.defineProperty;
2
2
  var tt = (r, o, t) => o in r ? et(r, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[o] = t;
3
3
  var Re = (r, o, t) => tt(r, typeof o != "symbol" ? o + "" : o, t);
4
4
  import { jsxs as w, jsx as e, Fragment as te } from "react/jsx-runtime";
5
- import Y, { useId as J, useState as R, createElement as rt, useEffect as V, useCallback as $, useMemo as ne, useRef as q, Component as nt, isValidElement as at, cloneElement as ot } from "react";
5
+ import Z, { useId as J, useState as R, createElement as rt, useEffect as V, useCallback as $, useMemo as ne, useRef as q, Component as nt, isValidElement as at, cloneElement as ot } from "react";
6
6
  import { j as k } from "./join-BmgR_f4v.js";
7
- import { f as Ne, g as ye, h as he, k as st, c as Ye, D as Qe, b as ze, W as lt, l as it, j as ct, C as dt, a as ut, G as ft, i as Ue, T as mt, P as pt, Q as ht, m as bt, E as gt, I as xt, d as yt, e as vt } from "./Window-bavT8vOT.js";
8
- import { u as Me, D as wt, n as Z, a as kt, b as Te } from "./Toast-D2GJgSZ2.js";
9
- import { A as Ma, T as Ta } from "./Toast-D2GJgSZ2.js";
7
+ import { f as Ne, g as ye, h as he, k as st, c as Ze, D as Qe, b as ze, W as lt, l as it, j as ct, C as dt, a as ut, G as ft, i as Ue, T as mt, P as pt, Q as ht, m as bt, E as gt, I as xt, d as yt, e as vt } from "./Window-bavT8vOT.js";
8
+ import { u as Me, D as wt, n as Y, a as kt, b as Te } from "./Toast-DQFXejhh.js";
9
+ import { A as Ma, T as Ta } from "./Toast-DQFXejhh.js";
10
10
  import { X as be, E as ve, C as Nt, I as Be } from "./X-CIoyLewf.js";
11
11
  import "./useTheme-CYIEopvl.js";
12
12
  import { u as Dt } from "./useScreenSize-DiuQZBHb.js";
@@ -113,8 +113,8 @@ function ea({
113
113
  h
114
114
  );
115
115
  }),
116
- o.length === 0 && t && Y.Children.map(t, (b, D) => {
117
- if (Y.isValidElement(b) && b.type === Ce) {
116
+ o.length === 0 && t && Z.Children.map(t, (b, D) => {
117
+ if (Z.isValidElement(b) && b.type === Ce) {
118
118
  const h = b.props.id || x(D);
119
119
  return /* @__PURE__ */ rt(
120
120
  Ce,
@@ -537,11 +537,11 @@ const Ht = {
537
537
  base: "",
538
538
  primary: "bg-primary text-primary-foreground hover:bg-primary/85 disabled:bg-muted disabled:text-muted-foreground",
539
539
  secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/85 disabled:bg-muted/80 disabled:text-muted-foreground/80",
540
- tertiary: "text-primary hover:text-primary-foreground disabled:text-muted",
540
+ tertiary: "text-primary hover:text-primary-foreground disabled:text-muted-foreground",
541
541
  outline: "border border-primary text-primary hover:border-primary-foreground hover:text-primary-foreground disabled:border-muted disabled:text-muted",
542
- link: "underline-offset-4 hover:underline disabled:underline disabled:text-muted",
542
+ link: "underline-offset-4 hover:underline disabled:underline disabled:text-muted-foreground",
543
543
  destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/85 disabled:bg-muted disabled:text-muted-foreground"
544
- }, Zt = {
544
+ }, Yt = {
545
545
  stripped: "",
546
546
  fitted: "size-fit leading-0",
547
547
  sm: "px-2 py-1 text-sm",
@@ -549,7 +549,7 @@ const Ht = {
549
549
  lg: "px-6 py-3 text-lg",
550
550
  icon: "p-1 w-fit aspect-square",
551
551
  full: "p-2 w-full"
552
- }, Yt = {
552
+ }, Zt = {
553
553
  none: "rounded-none",
554
554
  sm: "rounded-sm",
555
555
  md: "rounded-md",
@@ -573,8 +573,8 @@ function Qt({
573
573
  const i = k(
574
574
  "appearance-none focus:outline-none focus:ring not-disabled:hover:cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed transition-all",
575
575
  Ht[r],
576
- Zt[l],
577
- Yt[t],
576
+ Yt[l],
577
+ Zt[t],
578
578
  s && "relative pointer-events-none",
579
579
  n
580
580
  );
@@ -591,10 +591,10 @@ function Qt({
591
591
  children: a.children
592
592
  }
593
593
  );
594
- const f = a, u = () => f.children ? typeof f.children == "string" || typeof f.children == "number" || typeof f.children == "boolean" ? /* @__PURE__ */ e("span", { className: k(s && "invisible"), children: f.children }) : Y.Children.map(f.children, (m, p) => {
595
- if (Y.isValidElement(m)) {
594
+ const f = a, u = () => f.children ? typeof f.children == "string" || typeof f.children == "number" || typeof f.children == "boolean" ? /* @__PURE__ */ e("span", { className: k(s && "invisible"), children: f.children }) : Z.Children.map(f.children, (m, p) => {
595
+ if (Z.isValidElement(m)) {
596
596
  const x = m.props;
597
- return Y.cloneElement(m, {
597
+ return Z.cloneElement(m, {
598
598
  key: p,
599
599
  className: k(s && "invisible", x.className)
600
600
  });
@@ -1068,7 +1068,7 @@ const er = {
1068
1068
  }, tr = {
1069
1069
  info: /* @__PURE__ */ e(Be, { size: 22 }),
1070
1070
  destructive: /* @__PURE__ */ e(Nt, { size: 22 }),
1071
- success: /* @__PURE__ */ e(Ye, { size: 22 }),
1071
+ success: /* @__PURE__ */ e(Ze, { size: 22 }),
1072
1072
  warning: /* @__PURE__ */ e(ve, { size: 20 }),
1073
1073
  base: /* @__PURE__ */ e(st, { size: 22 })
1074
1074
  };
@@ -1305,7 +1305,7 @@ function sa({
1305
1305
  gap: F = 8
1306
1306
  }) {
1307
1307
  var j, X;
1308
- const B = q(null), N = Y.Children.toArray(r).filter(Y.isValidElement), A = N.length, { screenSize: E } = Dt(), C = ne(() => {
1308
+ const B = q(null), N = Z.Children.toArray(r).filter(Z.isValidElement), A = N.length, { screenSize: E } = Dt(), C = ne(() => {
1309
1309
  if (typeof c == "number")
1310
1310
  return c;
1311
1311
  if (typeof c == "object" && c && E) {
@@ -1347,7 +1347,7 @@ function sa({
1347
1347
  x === "aligned" ? "disabled:opacity-90" : "disabled:opacity-50"
1348
1348
  );
1349
1349
  return /* @__PURE__ */ w("div", { className: k("relative", s), "data-carousel-wrapper": "true", children: [
1350
- !f && /* @__PURE__ */ e(te, { children: b ? Y.cloneElement(
1350
+ !f && /* @__PURE__ */ e(te, { children: b ? Z.cloneElement(
1351
1351
  b,
1352
1352
  {
1353
1353
  onClick: L,
@@ -1439,7 +1439,7 @@ function sa({
1439
1439
  ]
1440
1440
  }
1441
1441
  ),
1442
- !f && /* @__PURE__ */ e(te, { children: D ? Y.cloneElement(
1442
+ !f && /* @__PURE__ */ e(te, { children: D ? Z.cloneElement(
1443
1443
  D,
1444
1444
  {
1445
1445
  onClick: K,
@@ -2458,11 +2458,11 @@ function ua({
2458
2458
  enabled: c
2459
2459
  });
2460
2460
  if (Ir(v, h), $r(h, s), !h) return null;
2461
- const B = () => n ? Y.isValidElement(n) ? /* @__PURE__ */ e("div", { children: n }) : /* @__PURE__ */ e("h2", { className: "text-2xl font-semibold", id: b, children: n }) : null, N = () => {
2461
+ const B = () => n ? Z.isValidElement(n) ? /* @__PURE__ */ e("div", { children: n }) : /* @__PURE__ */ e("h2", { className: "text-2xl font-semibold", id: b, children: n }) : null, N = () => {
2462
2462
  if (!l) return null;
2463
- if (Y.isValidElement(l)) {
2463
+ if (Z.isValidElement(l)) {
2464
2464
  const A = l, E = A.props.className || "";
2465
- return Y.cloneElement(A, { className: k("px-6 py-4", E) });
2465
+ return Z.cloneElement(A, { className: k("px-6 py-4", E) });
2466
2466
  }
2467
2467
  return /* @__PURE__ */ e("div", { className: "px-6 py-4", children: l });
2468
2468
  };
@@ -2692,7 +2692,7 @@ function Rr({
2692
2692
  var T, M;
2693
2693
  x ? (h.current = document.activeElement, (T = b.current) == null || T.focus()) : ((M = h.current) == null || M.focus(), h.current = null);
2694
2694
  }, [x]);
2695
- const C = d.props, z = Y.cloneElement(d, {
2695
+ const C = d.props, z = Z.cloneElement(d, {
2696
2696
  "aria-expanded": x,
2697
2697
  "aria-haspopup": "dialog",
2698
2698
  "aria-controls": g,
@@ -3004,7 +3004,7 @@ function fa({
3004
3004
  isOpen: D,
3005
3005
  onClose: h
3006
3006
  });
3007
- const B = ne(() => Y.cloneElement(s, {
3007
+ const B = ne(() => Z.cloneElement(s, {
3008
3008
  onClick: (N) => {
3009
3009
  b && v((E) => !E);
3010
3010
  const A = s.props;
@@ -3049,7 +3049,7 @@ const Kr = (r) => ({
3049
3049
  separator: qr,
3050
3050
  custom: Hr
3051
3051
  };
3052
- function Zr(r = []) {
3052
+ function Yr(r = []) {
3053
3053
  const [o, t] = R(r), [s, n] = R(null), [a, l] = R(null), d = q(null), i = $((h, g) => {
3054
3054
  const y = {
3055
3055
  ...g,
@@ -3105,7 +3105,7 @@ function Zr(r = []) {
3105
3105
  handleDrop: b
3106
3106
  };
3107
3107
  }
3108
- const Yr = {
3108
+ const Zr = {
3109
3109
  sm: "text-sm",
3110
3110
  md: "text-base",
3111
3111
  lg: "text-lg"
@@ -3174,7 +3174,7 @@ function pa({
3174
3174
  handleDragOver: K,
3175
3175
  handleDragEnd: ae,
3176
3176
  handleDrop: le
3177
- } = Zr(r), ie = m || u;
3177
+ } = Yr(r), ie = m || u;
3178
3178
  V(() => {
3179
3179
  if (!N.current) {
3180
3180
  N.current = !0;
@@ -3217,14 +3217,14 @@ function pa({
3217
3217
  }
3218
3218
  }, O = () => {
3219
3219
  if (!v) return null;
3220
- const _ = k("font-medium opacity-60", Yr[o]);
3220
+ const _ = k("font-medium opacity-60", Zr[o]);
3221
3221
  if (typeof v == "string")
3222
3222
  return /* @__PURE__ */ e("h4", { id: C, className: _, children: v });
3223
3223
  const ee = v.props;
3224
- return Y.cloneElement(v, { id: C, className: k(_, ee.className) });
3224
+ return Z.cloneElement(v, { id: C, className: k(_, ee.className) });
3225
3225
  }, H = (_) => {
3226
3226
  if (!c) return null;
3227
- if (Y.isValidElement(c))
3227
+ if (Z.isValidElement(c))
3228
3228
  return c;
3229
3229
  switch (c) {
3230
3230
  case "disc":
@@ -3682,7 +3682,7 @@ function ke({ elementId: r, type: o, message: t }) {
3682
3682
  ),
3683
3683
  role: "status",
3684
3684
  children: [
3685
- o === "error" ? /* @__PURE__ */ e(ve, {}) : /* @__PURE__ */ e(Ye, {}),
3685
+ o === "error" ? /* @__PURE__ */ e(ve, {}) : /* @__PURE__ */ e(Ze, {}),
3686
3686
  /* @__PURE__ */ e("span", { id: `${r}-${o}-message`, children: t })
3687
3687
  ]
3688
3688
  }
@@ -3717,7 +3717,7 @@ function dn({
3717
3717
  let c = o;
3718
3718
  r === "outline" && !o && (c = "md"), c = c || _e.rounded;
3719
3719
  const x = k(
3720
- "appearance-none w-full focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed placeholder:text-muted/70 hide-number-input-arrows transition-all",
3720
+ "appearance-none w-full focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed placeholder:text-muted-foreground/70 hide-number-input-arrows transition-all",
3721
3721
  "file:mr-2 file:border-0 file:rounded-md file:px-1.5 file:py-1 file:bg-primary hover:file:bg-primary/85 file:text-sm file:font-medium file:text-foreground file:transition-colors",
3722
3722
  !t && ln[r],
3723
3723
  !t && cn[c],
@@ -3840,7 +3840,7 @@ function hn({
3840
3840
  let m = a;
3841
3841
  (t || r === "left-line" && !a) && (m = !0);
3842
3842
  const x = k(
3843
- "appearance-none w-full focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed placeholder:text-muted/70 hide-number-input-arrows transition-all",
3843
+ "appearance-none w-full focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed placeholder:text-muted-foreground/70 hide-number-input-arrows transition-all",
3844
3844
  !t && mn[r],
3845
3845
  !t && pn[c],
3846
3846
  !t && "px-2 py-1",
@@ -4049,16 +4049,16 @@ function vn({
4049
4049
  ref: d,
4050
4050
  ...i
4051
4051
  }) {
4052
- const { viewportRef: f, verticalThumbRef: u, horizontalThumbRef: c, isScrolling: m, isFadingOut: p, scrollbarVisible: x, handleScroll: v } = yn(n), b = Z(
4052
+ const { viewportRef: f, verticalThumbRef: u, horizontalThumbRef: c, isScrolling: m, isFadingOut: p, scrollbarVisible: x, handleScroll: v } = yn(n), b = Y(
4053
4053
  "relative flex-1 rounded-full bg-slate-400/60 hover:bg-slate-400/80 active:bg-slate-400",
4054
4054
  o
4055
4055
  );
4056
- return /* @__PURE__ */ w("div", { ref: d, id: l, className: Z("relative overflow-hidden", r), "data-scroll-area-root": "", ...i, children: [
4056
+ return /* @__PURE__ */ w("div", { ref: d, id: l, className: Y("relative overflow-hidden", r), "data-scroll-area-root": "", ...i, children: [
4057
4057
  /* @__PURE__ */ e(
4058
4058
  "div",
4059
4059
  {
4060
4060
  ref: f,
4061
- className: Z(
4061
+ className: Y(
4062
4062
  "h-full w-full overflow-auto rounded-[inherit] [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden",
4063
4063
  t
4064
4064
  ),
@@ -4070,7 +4070,7 @@ function vn({
4070
4070
  x.vertical && (m || p) && /* @__PURE__ */ e(
4071
4071
  "div",
4072
4072
  {
4073
- className: Z(
4073
+ className: Y(
4074
4074
  "touch-none select-none transition-all duration-300",
4075
4075
  "p-[1px]",
4076
4076
  "absolute right-0 top-0",
@@ -4087,7 +4087,7 @@ function vn({
4087
4087
  "div",
4088
4088
  {
4089
4089
  ref: u,
4090
- className: Z("absolute rounded-full", b),
4090
+ className: Y("absolute rounded-full", b),
4091
4091
  "data-scroll-area-thumb": "",
4092
4092
  style: { height: "20%", top: "0%", width: "100%" }
4093
4093
  }
@@ -4097,7 +4097,7 @@ function vn({
4097
4097
  x.horizontal && (m || p) && /* @__PURE__ */ e(
4098
4098
  "div",
4099
4099
  {
4100
- className: Z(
4100
+ className: Y(
4101
4101
  "touch-none select-none transition-all duration-300",
4102
4102
  "p-[1px]",
4103
4103
  "absolute bottom-0 left-0",
@@ -4114,7 +4114,7 @@ function vn({
4114
4114
  "div",
4115
4115
  {
4116
4116
  ref: c,
4117
- className: Z("absolute rounded-full", b),
4117
+ className: Y("absolute rounded-full", b),
4118
4118
  "data-scroll-area-thumb": "",
4119
4119
  style: { width: "20%", left: "0%", height: "100%" }
4120
4120
  }
@@ -4124,7 +4124,7 @@ function vn({
4124
4124
  x.vertical && x.horizontal && /* @__PURE__ */ e(
4125
4125
  "div",
4126
4126
  {
4127
- className: Z("bg-transparent", "absolute bottom-0 right-0"),
4127
+ className: Y("bg-transparent", "absolute bottom-0 right-0"),
4128
4128
  "data-scroll-area-corner": "",
4129
4129
  style: {
4130
4130
  height: `${n}px`,
@@ -4528,7 +4528,7 @@ function Dn({
4528
4528
  },
4529
4529
  `${c.value}-${m}`
4530
4530
  )),
4531
- u.length === 0 && n && Y.Children.map(n, (c) => Y.isValidElement(c) && c.type === Ie ? /* @__PURE__ */ e(
4531
+ u.length === 0 && n && Z.Children.map(n, (c) => Z.isValidElement(c) && c.type === Ie ? /* @__PURE__ */ e(
4532
4532
  Ie,
4533
4533
  {
4534
4534
  ...c.props,
@@ -4782,7 +4782,7 @@ function Cn({
4782
4782
  left: "left-full top-1/2 -translate-y-1/2 border-t-[6px] border-b-[6px] border-l-[6px] border-t-transparent border-b-transparent border-l-tooltip",
4783
4783
  right: "right-full top-1/2 -translate-y-1/2 border-t-[6px] border-b-[6px] border-r-[6px] border-t-transparent border-b-transparent border-r-tooltip"
4784
4784
  }[s]) : "", N = o.props;
4785
- return /* @__PURE__ */ e(te, { children: Y.cloneElement(o, {
4785
+ return /* @__PURE__ */ e(te, { children: Z.cloneElement(o, {
4786
4786
  style: {
4787
4787
  ...N.style,
4788
4788
  position: "relative"
@@ -4907,7 +4907,7 @@ function ya({
4907
4907
  }) {
4908
4908
  const x = J(), v = r || `modal-${x}`, b = r ? `${r}-title` : `modal-title-${x}`, { show: D, shouldRender: h } = En(o);
4909
4909
  if (Sn(v, h), Fn(h, t), !h) return null;
4910
- const g = () => s ? Y.isValidElement(s) ? /* @__PURE__ */ e("div", { className: "mb-4", children: s }) : /* @__PURE__ */ e("h2", { className: "mb-4 text-xl font-semibold", id: b, children: s }) : null, y = () => u.length === 0 ? null : /* @__PURE__ */ e("div", { className: "mt-6 not-sm:grid gap-y-2 sm:flex sm:justify-start sm:flex-row-reverse sm:gap-x-3", children: u.map((F, B) => {
4910
+ const g = () => s ? Z.isValidElement(s) ? /* @__PURE__ */ e("div", { className: "mb-4", children: s }) : /* @__PURE__ */ e("h2", { className: "mb-4 text-xl font-semibold", id: b, children: s }) : null, y = () => u.length === 0 ? null : /* @__PURE__ */ e("div", { className: "mt-6 not-sm:grid gap-y-2 sm:flex sm:justify-start sm:flex-row-reverse sm:gap-x-3", children: u.map((F, B) => {
4911
4911
  const { label: N, ...A } = F;
4912
4912
  return /* @__PURE__ */ e(Qt, { ...A, "data-modal-action": "true", children: N }, B);
4913
4913
  }) });
@@ -4920,23 +4920,23 @@ function ya({
4920
4920
  role: "dialog",
4921
4921
  "aria-modal": "true",
4922
4922
  className: "fixed inset-0 z-[100] overflow-y-auto",
4923
- children: /* @__PURE__ */ w("div", { className: Z("flex min-h-screen items-center justify-center p-4", i), children: [
4923
+ children: /* @__PURE__ */ w("div", { className: Y("flex min-h-screen items-center justify-center p-4", i), children: [
4924
4924
  /* @__PURE__ */ e(
4925
4925
  "div",
4926
4926
  {
4927
- className: Z("fixed inset-0 bg-black/20 transition-all", d),
4927
+ className: Y("fixed inset-0 bg-black/20 transition-all", d),
4928
4928
  onClick: () => {
4929
4929
  c || t();
4930
4930
  }
4931
4931
  }
4932
4932
  ),
4933
- a && /* @__PURE__ */ e("div", { className: Z("relative w-fit", l), children: n }),
4933
+ a && /* @__PURE__ */ e("div", { className: Y("relative w-fit", l), children: n }),
4934
4934
  !a && /* @__PURE__ */ w(
4935
4935
  "div",
4936
4936
  {
4937
4937
  id: v,
4938
4938
  tabIndex: -1,
4939
- className: Z(
4939
+ className: Y(
4940
4940
  "relative w-full max-w-xl transform rounded-lg shadow-xl bg-popover text-popover-foreground transition-all p-6 focus:ring ease-in duration-75",
4941
4941
  D ? "opacity-100 scale-100" : "opacity-0 scale-90",
4942
4942
  l
@@ -4996,19 +4996,19 @@ function va({
4996
4996
  }, [c, t, r, o])(), x = r > 1, v = c || r < o, b = s && !c, D = s && !c, h = (y) => {
4997
4997
  y >= 1 && (c || y <= o) && n(y);
4998
4998
  }, g = $(() => {
4999
- const y = Z(
4999
+ const y = Y(
5000
5000
  "flex items-center justify-center min-w-fit",
5001
5001
  "disabled:opacity-50 disabled:cursor-not-allowed",
5002
5002
  In[a],
5003
5003
  "rounded-md"
5004
5004
  );
5005
- return Z(y, An[l], f);
5005
+ return Y(y, An[l], f);
5006
5006
  }, [l, a, f]);
5007
5007
  return /* @__PURE__ */ w(
5008
5008
  "nav",
5009
5009
  {
5010
5010
  ref: i,
5011
- className: Z("flex items-center justify-center gap-1", d),
5011
+ className: Y("flex items-center justify-center gap-1", d),
5012
5012
  role: "navigation",
5013
5013
  "aria-label": "Pagination",
5014
5014
  "data-page": r,
@@ -5045,7 +5045,7 @@ function va({
5045
5045
  "button",
5046
5046
  {
5047
5047
  onClick: () => h(y),
5048
- className: Z(g(), "aspect-square"),
5048
+ className: Y(g(), "aspect-square"),
5049
5049
  "aria-label": `Go to page ${y}`,
5050
5050
  "aria-current": y === r ? !0 : void 0,
5051
5051
  children: y
@@ -5142,11 +5142,11 @@ function wa({
5142
5142
  }) {
5143
5143
  const p = J(), x = o || `panel-${p}`, v = o ? `${o}-title` : `panel-title-${p}`, { show: b, shouldRender: D } = $n(t);
5144
5144
  if (Mn(x, D), zn(D, s), !D) return null;
5145
- const h = () => n ? Y.isValidElement(n) ? /* @__PURE__ */ e("div", { children: n }) : /* @__PURE__ */ e("h2", { className: "text-2xl font-semibold", id: v, children: n }) : null, g = () => {
5145
+ const h = () => n ? Z.isValidElement(n) ? /* @__PURE__ */ e("div", { children: n }) : /* @__PURE__ */ e("h2", { className: "text-2xl font-semibold", id: v, children: n }) : null, g = () => {
5146
5146
  if (!l) return null;
5147
- if (Y.isValidElement(l)) {
5147
+ if (Z.isValidElement(l)) {
5148
5148
  const y = l, F = y.props.className || "";
5149
- return Y.cloneElement(y, { className: Z("px-6 py-4", F) });
5149
+ return Z.cloneElement(y, { className: Y("px-6 py-4", F) });
5150
5150
  }
5151
5151
  return /* @__PURE__ */ e("div", { className: "px-6 py-4", children: l });
5152
5152
  };
@@ -5164,7 +5164,7 @@ function wa({
5164
5164
  /* @__PURE__ */ e(
5165
5165
  "div",
5166
5166
  {
5167
- className: Z(
5167
+ className: Y(
5168
5168
  "fixed inset-0 bg-black/40 transition-opacity duration-300",
5169
5169
  b ? "opacity-100" : "opacity-0",
5170
5170
  i
@@ -5180,7 +5180,7 @@ function wa({
5180
5180
  id: x,
5181
5181
  ref: r,
5182
5182
  tabIndex: -1,
5183
- className: Z(
5183
+ className: Y(
5184
5184
  "relative h-full max-w-md transform shadow-xl bg-popover text-popover-foreground transition-transform duration-300 ease-in-out border-l border-border",
5185
5185
  b ? "translate-x-0" : "translate-x-full",
5186
5186
  d
@@ -5198,7 +5198,7 @@ function wa({
5198
5198
  children: /* @__PURE__ */ e(be, { size: 18 })
5199
5199
  }
5200
5200
  ),
5201
- /* @__PURE__ */ e("div", { className: Z("flex-1 overflow-y-auto px-6 pb-6", n ? "pt-6" : "pt-10"), children: a }),
5201
+ /* @__PURE__ */ e("div", { className: Y("flex-1 overflow-y-auto px-6 pb-6", n ? "pt-6" : "pt-10"), children: a }),
5202
5202
  g()
5203
5203
  ] })
5204
5204
  }
@@ -5429,7 +5429,7 @@ function Da({
5429
5429
  {
5430
5430
  id: r,
5431
5431
  ref: m,
5432
- className: Z(
5432
+ className: Y(
5433
5433
  "relative flex items-center w-full touch-none select-none",
5434
5434
  d && "opacity-50 cursor-not-allowed",
5435
5435
  c
@@ -5444,7 +5444,7 @@ function Da({
5444
5444
  "div",
5445
5445
  {
5446
5446
  ref: y,
5447
- className: Z(
5447
+ className: Y(
5448
5448
  "relative h-1.5 w-full rounded-full bg-muted cursor-pointer",
5449
5449
  d && "cursor-not-allowed",
5450
5450
  i
@@ -5454,7 +5454,7 @@ function Da({
5454
5454
  /* @__PURE__ */ e(
5455
5455
  "div",
5456
5456
  {
5457
- className: Z(
5457
+ className: Y(
5458
5458
  "absolute h-full rounded-full pointer-events-none",
5459
5459
  // pointer-events are disabled so that user interactions are handled by the track element, enabling correct slider behavior
5460
5460
  !F.current && "transition-all",
@@ -5466,7 +5466,7 @@ function Da({
5466
5466
  /* @__PURE__ */ e(
5467
5467
  "div",
5468
5468
  {
5469
- className: Z(
5469
+ className: Y(
5470
5470
  "absolute size-5 -top-2 rounded-full shadow-md cursor-grab",
5471
5471
  d && "cursor-not-allowed",
5472
5472
  !d && "cursor-grab focus:outline-none focus:ring-2",
@@ -5611,7 +5611,7 @@ function Ca({
5611
5611
  isAllSelected: T,
5612
5612
  isPartiallySelected: M
5613
5613
  } = Ln({ initialSelected: i }), I = n.map((L, K) => d(L, K));
5614
- Y.useEffect(() => {
5614
+ Z.useEffect(() => {
5615
5615
  f && f(Array.from(B));
5616
5616
  }, [B, f]);
5617
5617
  const G = () => {
@@ -5902,15 +5902,15 @@ const Wn = {
5902
5902
  unchecked: "bg-muted",
5903
5903
  checked: "bg-destructive"
5904
5904
  }
5905
- }, Ze = {
5905
+ }, Ye = {
5906
5906
  variant: "default",
5907
5907
  size: "md"
5908
5908
  };
5909
5909
  function Ia({
5910
5910
  ref: r,
5911
5911
  id: o,
5912
- size: t = Ze.size,
5913
- variant: s = Ze.variant,
5912
+ size: t = Ye.size,
5913
+ variant: s = Ye.variant,
5914
5914
  checked: n,
5915
5915
  onCheckedChange: a,
5916
5916
  disabled: l = !1,