@firecms/ui 3.0.0-beta.1 → 3.0.0-beta.2-pre.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -18,17 +18,17 @@ import * as Wn from "react-dom";
18
18
  import * as Q from "@radix-ui/react-tooltip";
19
19
  import * as un from "@radix-ui/react-tabs";
20
20
  import * as J from "@radix-ui/react-popover";
21
- const A = "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-opacity-75 focus-visible:ring-offset-2 focus-visible:ring-offset-transparent", yn = "focus:bg-opacity-70 focus:bg-slate-100 focus:dark:bg-gray-800 focus:dark:bg-opacity-60", pn = "z-30 outline-none ring-2 ring-primary ring-opacity-75 ring-offset-2 ring-offset-transparent ", z = "bg-opacity-50 bg-slate-200 dark:bg-gray-800 dark:bg-opacity-60 transition duration-150 ease-in-out", hn = "bg-opacity-0 bg-slate-100 dark:bg-gray-800 dark:bg-opacity-0 transition duration-150 ease-in-out", V = "bg-opacity-80 dark:bg-opacity-90", W = "hover:bg-opacity-70 dark:hover:bg-opacity-90", X = "border-gray-100 dark:border-gray-800 dark:border-opacity-80", j = "bg-white rounded-md dark:bg-gray-950 border dark:border-gray-800 dark:border-opacity-90 border-gray-100", zn = "bg-white rounded-md dark:bg-gray-950 dark:border-gray-800 dark:border-opacity-50 transition duration-200 ease-in-out m-1 -p-1 border border-transparent", qn = "hover:bg-blue-100 dark:hover:bg-blue-900 hover:bg-opacity-20 dark:hover:bg-opacity-20 hover:ring-2 cursor-pointer", qe = "bg-blue-100 dark:bg-blue-900 bg-opacity-30 dark:bg-opacity-10 ring-1 ring-primary ring-opacity-75";
21
+ const A = "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-opacity-75 focus-visible:ring-offset-2 focus-visible:ring-offset-transparent", yn = "focus:bg-opacity-70 focus:bg-slate-100 focus:dark:bg-gray-800 focus:dark:bg-opacity-60", pn = "z-30 outline-none ring-2 ring-primary ring-opacity-75 ring-offset-2 ring-offset-transparent ", z = "bg-opacity-50 bg-slate-200 dark:bg-gray-800 dark:bg-opacity-60 transition duration-150 ease-in-out", hn = "bg-opacity-0 bg-slate-100 dark:bg-gray-800 dark:bg-opacity-0 transition duration-150 ease-in-out", V = "bg-opacity-80 dark:bg-opacity-90", W = "hover:bg-opacity-70 dark:hover:bg-opacity-90", X = "border-gray-100 dark:border-gray-800 dark:border-opacity-80", j = "bg-white rounded-md dark:bg-gray-950 border dark:border-gray-800 dark:border-opacity-90 border-gray-100", zn = "bg-white rounded-md dark:bg-gray-950 dark:border-gray-800 dark:border-opacity-50 transition duration-200 ease-in-out m-1 -p-1 border border-transparent", qn = "hover:bg-primary-bg dark:hover:bg-primary-bg hover:bg-opacity-20 dark:hover:bg-opacity-20 hover:ring-2 hover:ring-primary cursor-pointer", qe = "bg-primary-bg dark:bg-primary-bg bg-opacity-30 dark:bg-opacity-10 ring-1 ring-primary ring-opacity-75";
22
22
  function _(...n) {
23
23
  return Rn(Mn(n));
24
24
  }
25
25
  function Vn(n, t = 166) {
26
26
  let r;
27
- function c(...i) {
28
- const a = () => {
29
- n.apply(this, i);
27
+ function c(...a) {
28
+ const i = () => {
29
+ n.apply(this, a);
30
30
  };
31
- clearTimeout(r), r = setTimeout(a, t);
31
+ clearTimeout(r), r = setTimeout(i, t);
32
32
  }
33
33
  return c.clear = () => {
34
34
  clearTimeout(r);
@@ -104,8 +104,8 @@ function Kn(n, t, r = !0) {
104
104
  M(() => {
105
105
  if (!r)
106
106
  return;
107
- function c(i) {
108
- gn(i.target) || n.current && !n.current.contains(i.target) && t();
107
+ function c(a) {
108
+ gn(a.target) || n.current && !n.current.contains(a.target) && t();
109
109
  }
110
110
  return document.addEventListener("mousedown", c), () => {
111
111
  document.removeEventListener("mousedown", c);
@@ -165,12 +165,12 @@ function Un({
165
165
  );
166
166
  }
167
167
  const je = ({ ref: n }) => {
168
- const [t, r] = x.useState(!1), [c, i] = x.useState(!1);
168
+ const [t, r] = x.useState(!1), [c, a] = x.useState(!1);
169
169
  return x.useEffect(() => {
170
170
  n.current && (n.current.onfocus = () => {
171
- r(!0), i(!0);
171
+ r(!0), a(!0);
172
172
  }, n.current.onblur = () => {
173
- i(!1);
173
+ a(!1);
174
174
  });
175
175
  }, [n]), {
176
176
  inputFocused: c,
@@ -252,8 +252,8 @@ const Qn = (n) => {
252
252
  onDismiss: t,
253
253
  color: r = "info",
254
254
  size: c = "medium",
255
- action: i,
256
- className: a,
255
+ action: a,
256
+ className: i,
257
257
  style: u
258
258
  }) => {
259
259
  const l = Jn(r);
@@ -266,10 +266,10 @@ const Qn = (n) => {
266
266
  "w-full",
267
267
  "rounded-md flex items-center gap-2",
268
268
  l,
269
- a
269
+ i
270
270
  ),
271
271
  children: [
272
- /* @__PURE__ */ e("span", { className: "flex-grow", children: n }),
272
+ /* @__PURE__ */ e("div", { className: "flex-grow", children: n }),
273
273
  t && /* @__PURE__ */ e(
274
274
  "button",
275
275
  {
@@ -278,7 +278,7 @@ const Qn = (n) => {
278
278
  children: "×"
279
279
  }
280
280
  ),
281
- i
281
+ a
282
282
  ]
283
283
  }
284
284
  );
@@ -287,14 +287,14 @@ const Qn = (n) => {
287
287
  alt: t,
288
288
  children: r,
289
289
  className: c,
290
- style: i,
291
- ...a
290
+ style: a,
291
+ ...i
292
292
  }, u) => /* @__PURE__ */ e(
293
293
  "button",
294
294
  {
295
295
  ref: u,
296
- style: i,
297
- ...a,
296
+ style: a,
297
+ ...i,
298
298
  className: _(
299
299
  "rounded-full flex items-center justify-center overflow-hidden",
300
300
  A,
@@ -329,8 +329,8 @@ const Qn = (n) => {
329
329
  value: t,
330
330
  allowIndeterminate: r,
331
331
  className: c,
332
- onValueChange: i,
333
- disabled: a = !1,
332
+ onValueChange: a,
333
+ disabled: i = !1,
334
334
  size: u = "medium",
335
335
  ...l
336
336
  }, s) {
@@ -338,14 +338,14 @@ const Qn = (n) => {
338
338
  "button",
339
339
  {
340
340
  ref: s,
341
- tabIndex: a ? -1 : void 0,
342
- onClick: a ? (f) => f.preventDefault() : (f) => {
343
- f.preventDefault(), r ? t == null ? i?.(!0) : i?.(t ? !1 : null) : i?.(!t);
341
+ tabIndex: i ? -1 : void 0,
342
+ onClick: i ? (f) => f.preventDefault() : (f) => {
343
+ f.preventDefault(), r ? t == null ? a?.(!0) : a?.(t ? !1 : null) : a?.(!t);
344
344
  },
345
345
  className: _(
346
346
  u === "small" ? "w-[38px] h-[22px] min-w-[38px] min-h-[22px]" : "w-[42px] h-[26px] min-w-[42px] min-h-[26px]",
347
347
  "outline-none rounded-full relative shadow-sm",
348
- t ? a ? "bg-white bg-opacity-54 dark:bg-slate-950 border-slate-100 dark:border-slate-700 ring-1 ring-slate-100 dark:ring-slate-700" : "ring-secondary ring-1 bg-secondary dark:bg-secondary" : "bg-white bg-opacity-54 dark:bg-slate-900 ring-1 ring-slate-100 dark:ring-slate-700",
348
+ t ? i ? "bg-white bg-opacity-54 dark:bg-slate-950 border-slate-100 dark:border-slate-700 ring-1 ring-slate-100 dark:ring-slate-700" : "ring-secondary ring-1 bg-secondary dark:bg-secondary" : "bg-white bg-opacity-54 dark:bg-slate-900 ring-1 ring-slate-100 dark:ring-slate-700",
349
349
  c
350
350
  ),
351
351
  ...l,
@@ -371,7 +371,7 @@ const Qn = (n) => {
371
371
  {
372
372
  className: _(
373
373
  "block rounded-full transition-transform duration-100 transform will-change-auto",
374
- a ? "bg-slate-300 dark:bg-slate-700" : t ? "bg-white" : "bg-slate-600 dark:bg-slate-400",
374
+ i ? "bg-slate-300 dark:bg-slate-700" : t ? "bg-white" : "bg-slate-600 dark:bg-slate-400",
375
375
  {
376
376
  "w-[21px] h-[21px]": u === "medium",
377
377
  "w-[19px] h-[19px]": u === "small",
@@ -390,8 +390,8 @@ const Qn = (n) => {
390
390
  value: t,
391
391
  position: r = "end",
392
392
  invisible: c,
393
- onValueChange: i,
394
- error: a,
393
+ onValueChange: a,
394
+ error: i,
395
395
  label: u,
396
396
  autoFocus: l,
397
397
  disabled: s,
@@ -415,14 +415,14 @@ const Qn = (n) => {
415
415
  s ? "cursor-default" : "cursor-pointer",
416
416
  "rounded-md relative max-w-full justify-between w-full box-border relative inline-flex items-center",
417
417
  !c && k && !s ? pn : "",
418
- a ? "text-red-500 dark:text-red-600" : k && !s ? "text-primary" : s ? "text-text-secondary dark:text-text-secondary-dark" : "text-text-primary dark:text-text-primary-dark",
418
+ i ? "text-red-500 dark:text-red-600" : k && !s ? "text-primary" : s ? "text-text-secondary dark:text-text-secondary-dark" : "text-text-primary dark:text-text-primary-dark",
419
419
  f === "small" ? "min-h-[40px]" : "min-h-[64px]",
420
420
  f === "small" ? "pl-2" : "pl-4",
421
421
  f === "small" ? "pr-4" : "pr-6",
422
422
  r === "end" ? "flex-row-reverse" : "flex-row"
423
423
  ),
424
424
  onClick: s ? void 0 : (P) => {
425
- p.allowIndeterminate ? t == null ? i?.(!0) : i?.(t ? !1 : null) : i?.(!t);
425
+ p.allowIndeterminate ? t == null ? a?.(!0) : a?.(t ? !1 : null) : a?.(!t);
426
426
  },
427
427
  children: [
428
428
  /* @__PURE__ */ e(
@@ -450,8 +450,8 @@ function Yn({
450
450
  className: t,
451
451
  variant: r = "filled",
452
452
  disabled: c = !1,
453
- size: i = "medium",
454
- startIcon: a = null,
453
+ size: a = "medium",
454
+ startIcon: i = null,
455
455
  fullWidth: u = !1,
456
456
  component: l,
457
457
  ...s
@@ -463,24 +463,24 @@ function Yn({
463
463
  "border-transparent bg-primary hover:bg-primary-dark focus:ring-primary !text-white shadow hover:ring-1 hover:ring-primary": r === "filled" && !c,
464
464
  "border-transparent !text-primary !hover:text-primary-dark hover:bg-primary hover:bg-primary-bg": r === "text" && !c,
465
465
  "border-primary !text-primary hover:bg-primary-bg hover:border-primary-dark !hover:text-primary-dark focus:ring-primary hover:ring-1 hover:ring-primary": r === "outlined" && !c,
466
- "border-primary-dark border-opacity-50 dark:border-blue-500 dark:border-opacity-50 opacity-50 !text-primary-dark !dark:text-blue-500 text-opacity-50 dark:text-opacity-50": r === "outlined" && c,
466
+ "border-primary-dark border-opacity-50 dark:border-primary dark:border-opacity-50 opacity-50 !text-primary-dark !dark:text-primary text-opacity-50 dark:text-opacity-50": r === "outlined" && c,
467
467
  "border-transparent outline-none opacity-50 !text-slate-600 !dark:text-slate-500": (r === "filled" || r === "text") && c
468
468
  }
469
469
  ), h = _(
470
470
  {
471
- "py-1 px-2": i === "small",
472
- "py-2 px-4": i === "medium",
473
- "py-2.5 px-5": i === "large"
471
+ "py-1 px-2": a === "small",
472
+ "py-2 px-4": a === "medium",
473
+ "py-2.5 px-5": a === "large"
474
474
  }
475
475
  );
476
476
  return l ? /* @__PURE__ */ y(
477
477
  l,
478
478
  {
479
479
  onClick: s.onClick,
480
- className: _(A, a ? "pl-3" : "", f, p, h, t),
480
+ className: _(A, i ? "pl-3" : "", f, p, h, t),
481
481
  ...s,
482
482
  children: [
483
- a,
483
+ i,
484
484
  n
485
485
  ]
486
486
  }
@@ -489,11 +489,11 @@ function Yn({
489
489
  {
490
490
  type: s.type ?? "button",
491
491
  onClick: s.onClick,
492
- className: _(A, a ? "pl-3" : "", f, p, h, t),
492
+ className: _(A, i ? "pl-3" : "", f, p, h, t),
493
493
  disabled: c,
494
494
  ...s,
495
495
  children: [
496
- a,
496
+ i,
497
497
  n
498
498
  ]
499
499
  }
@@ -505,13 +505,13 @@ function Ye({
505
505
  onClick: r,
506
506
  className: c
507
507
  }) {
508
- const i = cn((a) => {
509
- (a.key === "Enter" || a.key === " ") && r?.();
508
+ const a = cn((i) => {
509
+ (i.key === "Enter" || i.key === " ") && r?.();
510
510
  }, [r]);
511
511
  return /* @__PURE__ */ e(
512
512
  "div",
513
513
  {
514
- onKeyPress: i,
514
+ onKeyPress: a,
515
515
  role: r ? "button" : void 0,
516
516
  tabIndex: r ? 0 : void 0,
517
517
  onClick: r,
@@ -538,15 +538,15 @@ const Xn = {
538
538
  className: t,
539
539
  style: r,
540
540
  maxWidth: c = "7xl"
541
- }, i) => {
542
- const a = c ? Xn[c] : "";
541
+ }, a) => {
542
+ const i = c ? Xn[c] : "";
543
543
  return /* @__PURE__ */ e(
544
544
  "div",
545
545
  {
546
- ref: i,
546
+ ref: a,
547
547
  className: _(
548
548
  "mx-auto px-3 md:px-4 lg-px-6",
549
- a,
549
+ i,
550
550
  t
551
551
  ),
552
552
  style: r,
@@ -4123,8 +4123,8 @@ function o({
4123
4123
  size: t = "medium",
4124
4124
  color: r,
4125
4125
  className: c,
4126
- onClick: i,
4127
- style: a
4126
+ onClick: a,
4127
+ style: i
4128
4128
  }) {
4129
4129
  let u;
4130
4130
  switch (t) {
@@ -4149,7 +4149,7 @@ function o({
4149
4149
  style: {
4150
4150
  fontSize: `${u}px`,
4151
4151
  display: "block",
4152
- ...a
4152
+ ...i
4153
4153
  },
4154
4154
  className: _(
4155
4155
  "material-icons",
@@ -4157,7 +4157,7 @@ function o({
4157
4157
  "select-none",
4158
4158
  c
4159
4159
  ),
4160
- onClick: i,
4160
+ onClick: a,
4161
4161
  children: n
4162
4162
  }
4163
4163
  );
@@ -14583,29 +14583,29 @@ const ae = {
14583
14583
  indeterminate: t = !1,
14584
14584
  disabled: r,
14585
14585
  size: c = "medium",
14586
- onCheckedChange: i,
14587
- color: a = "primary"
14586
+ onCheckedChange: a,
14587
+ color: i = "primary"
14588
14588
  }) => {
14589
14589
  const u = t ? !1 : n, l = c === "medium" ? 20 : c === "small" ? 16 : 24;
14590
14590
  return /* @__PURE__ */ e("div", { className: _(
14591
14591
  ue[c],
14592
14592
  "inline-flex items-center justify-center p-2 text-sm font-medium focus:outline-none transition-colors ease-in-out duration-150",
14593
- i ? "rounded-full hover:bg-slate-200 hover:bg-opacity-75 dark:hover:bg-slate-700 dark:hover:bg-opacity-75" : "",
14594
- i ? "cursor-pointer" : "cursor-default"
14593
+ a ? "rounded-full hover:bg-slate-200 hover:bg-opacity-75 dark:hover:bg-slate-700 dark:hover:bg-opacity-75" : "",
14594
+ a ? "cursor-pointer" : "cursor-default"
14595
14595
  ), children: /* @__PURE__ */ e(
14596
14596
  dn.Root,
14597
14597
  {
14598
14598
  asChild: !0,
14599
14599
  checked: t || u,
14600
14600
  disabled: r,
14601
- onCheckedChange: r ? void 0 : i,
14601
+ onCheckedChange: r ? void 0 : a,
14602
14602
  children: /* @__PURE__ */ e(
14603
14603
  "div",
14604
14604
  {
14605
14605
  className: _(
14606
14606
  "border-2 relative transition-colors ease-in-out duration-150",
14607
14607
  ae[c],
14608
- r ? "bg-slate-400 dark:bg-slate-600" : t || u ? _e[a] : "bg-white dark:bg-slate-900",
14608
+ r ? "bg-slate-400 dark:bg-slate-600" : t || u ? _e[i] : "bg-white dark:bg-slate-900",
14609
14609
  t || u ? "text-slate-100 dark:text-slate-900" : "",
14610
14610
  r || t || u ? "border-transparent" : "border-slate-800 dark:border-slate-200"
14611
14611
  ),
@@ -14624,8 +14624,8 @@ function ion({
14624
14624
  colorScheme: t,
14625
14625
  error: r,
14626
14626
  outlined: c,
14627
- onClick: i,
14628
- icon: a,
14627
+ onClick: a,
14628
+ icon: i,
14629
14629
  size: u = "medium",
14630
14630
  className: l
14631
14631
  }) {
@@ -14636,13 +14636,13 @@ function ion({
14636
14636
  className: _(
14637
14637
  "rounded-lg w-fit h-fit font-regular inline-flex gap-1",
14638
14638
  "text-ellipsis",
14639
- i ? "cursor-pointer hover:bg-slate-300 hover:dark:bg-slate-700" : "",
14639
+ a ? "cursor-pointer hover:bg-slate-300 hover:dark:bg-slate-700" : "",
14640
14640
  le[u],
14641
14641
  r || !s ? "bg-slate-200 dark:bg-slate-800 text-slate-800 dark:text-slate-200" : "",
14642
14642
  r ? "text-red-500 dark:text-red-400" : "",
14643
14643
  l
14644
14644
  ),
14645
- onClick: i,
14645
+ onClick: a,
14646
14646
  style: {
14647
14647
  backgroundColor: r || !s ? void 0 : s.color,
14648
14648
  color: r || !s ? void 0 : s.text,
@@ -14653,7 +14653,7 @@ function ion({
14653
14653
  },
14654
14654
  children: [
14655
14655
  n,
14656
- a
14656
+ i
14657
14657
  ]
14658
14658
  }
14659
14659
  );
@@ -14670,8 +14670,8 @@ const se = "hover:bg-slate-200 hover:bg-opacity-75 dark:hover:bg-slate-700 dark:
14670
14670
  className: t,
14671
14671
  size: r = "medium",
14672
14672
  variant: c = "ghost",
14673
- shape: i = "circular",
14674
- disabled: a,
14673
+ shape: a = "circular",
14674
+ disabled: i,
14675
14675
  toggled: u,
14676
14676
  component: l,
14677
14677
  ...s
@@ -14683,13 +14683,13 @@ const se = "hover:bg-slate-200 hover:bg-opacity-75 dark:hover:bg-slate-700 dark:
14683
14683
  ...s,
14684
14684
  className: _(
14685
14685
  A,
14686
- a ? "opacity-50 pointer-events-none" : "cursor-pointer",
14686
+ i ? "opacity-50 pointer-events-none" : "cursor-pointer",
14687
14687
  u ? "outline outline-2 outline-primary" : "",
14688
14688
  de,
14689
14689
  c === "ghost" ? "bg-transparent" : "bg-slate-50 dark:bg-slate-900",
14690
14690
  fe,
14691
14691
  se,
14692
- pe[i],
14692
+ pe[a],
14693
14693
  ye[r],
14694
14694
  t
14695
14695
  ),
@@ -14698,8 +14698,8 @@ const se = "hover:bg-slate-200 hover:bg-opacity-75 dark:hover:bg-slate-700 dark:
14698
14698
  ), ln = x.forwardRef(me), wn = b.forwardRef(function(t, r) {
14699
14699
  const {
14700
14700
  shrink: c,
14701
- className: i,
14702
- ...a
14701
+ className: a,
14702
+ ...i
14703
14703
  } = t, u = {
14704
14704
  root: "origin-left transition-transform block whitespace-nowrap overflow-hidden text-overflow-ellipsis max-w-full",
14705
14705
  shrink: "transform translate-y-[2px] scale-75 translate-x-[12px]",
@@ -14710,7 +14710,7 @@ const se = "hover:bg-slate-200 hover:bg-opacity-75 dark:hover:bg-slate-700 dark:
14710
14710
  [u.shrink]: c,
14711
14711
  [u.expanded]: !c
14712
14712
  },
14713
- i
14713
+ a
14714
14714
  );
14715
14715
  return /* @__PURE__ */ e(
14716
14716
  "label",
@@ -14718,7 +14718,7 @@ const se = "hover:bg-slate-200 hover:bg-opacity-75 dark:hover:bg-slate-700 dark:
14718
14718
  "data-shrink": c,
14719
14719
  ref: r,
14720
14720
  className: l,
14721
- ...a
14721
+ ...i
14722
14722
  }
14723
14723
  );
14724
14724
  }), mn = {
@@ -14764,8 +14764,8 @@ function rn({
14764
14764
  color: t = "primary",
14765
14765
  children: r,
14766
14766
  className: c,
14767
- component: i,
14768
- gutterBottom: a = !1,
14767
+ component: a,
14768
+ gutterBottom: i = !1,
14769
14769
  noWrap: u = !1,
14770
14770
  paragraph: l = !1,
14771
14771
  variant: s = "body1",
@@ -14774,12 +14774,12 @@ function rn({
14774
14774
  onClick: h,
14775
14775
  ...d
14776
14776
  }) {
14777
- const g = i || (l ? "p" : f[s] || mn[s]) || "span", K = _(
14777
+ const g = a || (l ? "p" : f[s] || mn[s]) || "span", K = _(
14778
14778
  A,
14779
14779
  he[s],
14780
14780
  t ? Ie[t] : "",
14781
14781
  n !== "inherit" && `text-${n}`,
14782
- a && "mb-[0.35em]",
14782
+ i && "mb-[0.35em]",
14783
14783
  u && "truncate",
14784
14784
  l && "mb-4",
14785
14785
  c
@@ -14800,8 +14800,8 @@ const aon = ({
14800
14800
  label: t,
14801
14801
  onChange: r,
14802
14802
  disabled: c,
14803
- clearable: i,
14804
- mode: a = "date",
14803
+ clearable: a,
14804
+ mode: i = "date",
14805
14805
  error: u,
14806
14806
  size: l,
14807
14807
  className: s,
@@ -14856,15 +14856,15 @@ const aon = ({
14856
14856
  onClick: (F) => F.stopPropagation(),
14857
14857
  onFocus: () => k(!0),
14858
14858
  onBlur: () => k(!1),
14859
- showTimeSelect: a === "date_time",
14859
+ showTimeSelect: i === "date_time",
14860
14860
  timeFormat: "HH:mm",
14861
14861
  timeIntervals: 15,
14862
14862
  timeCaption: "time",
14863
- dateFormat: a === "date_time" ? "Pp" : "P",
14863
+ dateFormat: i === "date_time" ? "Pp" : "P",
14864
14864
  preventOpenOnFocus: !0,
14865
14865
  className: _(
14866
14866
  "w-full outline-none bg-transparent leading-normal text-base px-3",
14867
- i ? "pr-14" : "pr-12",
14867
+ a ? "pr-14" : "pr-12",
14868
14868
  "rounded-md",
14869
14869
  !d && A,
14870
14870
  l === "small" ? "min-h-[48px]" : "min-h-[64px]",
@@ -14882,7 +14882,7 @@ const aon = ({
14882
14882
  children: /* @__PURE__ */ e(te, { color: "disabled" })
14883
14883
  }
14884
14884
  ),
14885
- i && n && /* @__PURE__ */ e(
14885
+ a && n && /* @__PURE__ */ e(
14886
14886
  ln,
14887
14887
  {
14888
14888
  onClick: D,
@@ -15766,8 +15766,8 @@ const aon = ({
15766
15766
  onOpenChange: t,
15767
15767
  children: r,
15768
15768
  className: c,
15769
- fullWidth: i = !0,
15770
- fullHeight: a,
15769
+ fullWidth: a = !0,
15770
+ fullHeight: i,
15771
15771
  fullScreen: u,
15772
15772
  scrollable: l = !0,
15773
15773
  maxWidth: s = "lg",
@@ -15816,8 +15816,8 @@ const aon = ({
15816
15816
  "z-30",
15817
15817
  "relative",
15818
15818
  "outline-none focus:outline-none",
15819
- i && !u ? "w-11/12" : void 0,
15820
- a && !u ? "h-full" : void 0,
15819
+ a && !u ? "w-11/12" : void 0,
15820
+ i && !u ? "h-full" : void 0,
15821
15821
  "text-slate-900 dark:text-white",
15822
15822
  "justify-center items-center",
15823
15823
  u ? "h-screen w-screen" : "max-h-[90vh] shadow-xl",
@@ -15875,8 +15875,8 @@ function son({
15875
15875
  children: t,
15876
15876
  invisible: r = !1,
15877
15877
  expanded: c,
15878
- onExpandedChange: i,
15879
- initiallyExpanded: a = !0,
15878
+ onExpandedChange: a,
15879
+ initiallyExpanded: i = !0,
15880
15880
  titleClassName: u,
15881
15881
  asField: l,
15882
15882
  className: s
@@ -15909,7 +15909,7 @@ function son({
15909
15909
  height: 0;
15910
15910
  }
15911
15911
  }`);
15912
- const [f, p] = q(c !== void 0 ? c : a), [h, d] = q(f);
15912
+ const [f, p] = q(c !== void 0 ? c : i), [h, d] = q(f);
15913
15913
  return M(() => {
15914
15914
  f ? setTimeout(() => {
15915
15915
  d(!0);
@@ -15925,7 +15925,7 @@ function son({
15925
15925
  ),
15926
15926
  open: f,
15927
15927
  onOpenChange: (g) => {
15928
- i?.(g), p(g);
15928
+ a?.(g), p(g);
15929
15929
  },
15930
15930
  children: [
15931
15931
  /* @__PURE__ */ y(
@@ -15964,8 +15964,8 @@ function fon({
15964
15964
  onFilesAdded: t,
15965
15965
  onFilesRejected: r,
15966
15966
  maxSize: c,
15967
- disabled: i,
15968
- maxFiles: a,
15967
+ disabled: a,
15968
+ maxFiles: i,
15969
15969
  title: u,
15970
15970
  uploadDescription: l = "Drag and drop a file here or click",
15971
15971
  children: s,
@@ -15985,8 +15985,8 @@ function fon({
15985
15985
  maxSize: c,
15986
15986
  onDrop: t,
15987
15987
  onDropRejected: r,
15988
- disabled: i,
15989
- maxFiles: a,
15988
+ disabled: a,
15989
+ maxFiles: i,
15990
15990
  preventDropOnDocument: f
15991
15991
  }
15992
15992
  );
@@ -16003,7 +16003,7 @@ function fon({
16003
16003
  {
16004
16004
  "h-44": p === "medium",
16005
16005
  "h-28": p === "small",
16006
- "cursor-pointer": !i,
16006
+ "cursor-pointer": !a,
16007
16007
  "hover:bg-field-hover dark:hover:bg-field-hover-dark": !g,
16008
16008
  "transition-colors duration-200 ease-[cubic-bezier(0,0,0.2,1)] border-red-500": w,
16009
16009
  "transition-colors duration-200 ease-[cubic-bezier(0,0,0.2,1)] border-green-500": K
@@ -16057,19 +16057,19 @@ function yon({
16057
16057
  loading: t,
16058
16058
  disabled: r,
16059
16059
  onClick: c,
16060
- startIcon: i,
16061
- ...a
16060
+ startIcon: a,
16061
+ ...i
16062
16062
  }) {
16063
16063
  return /* @__PURE__ */ y(
16064
16064
  Yn,
16065
16065
  {
16066
16066
  disabled: t || r,
16067
16067
  onClick: c,
16068
- component: a.component,
16069
- ...a,
16068
+ component: i.component,
16069
+ ...i,
16070
16070
  children: [
16071
16071
  t && /* @__PURE__ */ e(bn, { size: "small" }),
16072
- !t && i,
16072
+ !t && a,
16073
16073
  n
16074
16074
  ]
16075
16075
  }
@@ -16096,14 +16096,14 @@ function mon({
16096
16096
  trigger: t,
16097
16097
  open: r,
16098
16098
  defaultOpen: c,
16099
- onOpenChange: i
16099
+ onOpenChange: a
16100
16100
  }) {
16101
16101
  return /* @__PURE__ */ y(
16102
16102
  $.Root,
16103
16103
  {
16104
16104
  open: r,
16105
16105
  defaultOpen: c,
16106
- onOpenChange: i,
16106
+ onOpenChange: a,
16107
16107
  children: [
16108
16108
  /* @__PURE__ */ e($.Trigger, { asChild: !0, children: t }),
16109
16109
  /* @__PURE__ */ e($.Portal, { children: /* @__PURE__ */ e($.Content, { className: _(j, "shadow py-2 z-30"), children: n }) })
@@ -16141,8 +16141,8 @@ function hon({
16141
16141
  open: t,
16142
16142
  onMultiValueChange: r,
16143
16143
  size: c = "medium",
16144
- label: i,
16145
- disabled: a,
16144
+ label: a,
16145
+ disabled: i,
16146
16146
  renderValue: u,
16147
16147
  renderValues: l,
16148
16148
  includeFocusOutline: s = !0,
@@ -16172,7 +16172,7 @@ function hon({
16172
16172
  L(g.current?.getBoundingClientRect() ?? null), k(!0);
16173
16173
  }, []), B = F ?? g.current?.getBoundingClientRect(), U = window.innerHeight - (B?.top ?? 0) - (B?.height ?? 0) - 16;
16174
16174
  return /* @__PURE__ */ y(G, { children: [
16175
- typeof i == "string" ? /* @__PURE__ */ e(vn, { error: d, children: i }) : i,
16175
+ typeof a == "string" ? /* @__PURE__ */ e(vn, { error: d, children: a }) : a,
16176
16176
  /* @__PURE__ */ y(
16177
16177
  on,
16178
16178
  {
@@ -16191,7 +16191,7 @@ function hon({
16191
16191
  c === "small" ? "min-h-[42px]" : "min-h-[64px]",
16192
16192
  "select-none rounded-md text-sm",
16193
16193
  z,
16194
- a ? V : W,
16194
+ i ? V : W,
16195
16195
  "relative flex items-center",
16196
16196
  "p-4",
16197
16197
  d ? "text-red-500 dark:text-red-600" : "focus:text-text-primary dark:focus:text-text-primary-dark",
@@ -16265,7 +16265,7 @@ function Kon({ children: n, value: t, className: r }) {
16265
16265
  const c = b.useContext(xn);
16266
16266
  if (!c)
16267
16267
  throw new Error("MultiSelectItem must be used inside a MultiSelect");
16268
- const { fieldValue: i, setInputValue: a, onValueChangeInternal: u } = c;
16268
+ const { fieldValue: a, setInputValue: i, onValueChangeInternal: u } = c;
16269
16269
  return /* @__PURE__ */ e(
16270
16270
  on.Item,
16271
16271
  {
@@ -16273,10 +16273,10 @@ function Kon({ children: n, value: t, className: r }) {
16273
16273
  l.preventDefault(), l.stopPropagation();
16274
16274
  },
16275
16275
  onSelect: (l) => {
16276
- a(""), u(t);
16276
+ i(""), u(t);
16277
16277
  },
16278
16278
  className: _(
16279
- (i ?? []).includes(t) ? "bg-slate-200 dark:bg-slate-950" : "",
16279
+ (a ?? []).includes(t) ? "bg-slate-200 dark:bg-slate-950" : "",
16280
16280
  "cursor-pointer",
16281
16281
  "m-1",
16282
16282
  "ring-offset-transparent",
@@ -16308,8 +16308,8 @@ function bon({
16308
16308
  open: t,
16309
16309
  name: r,
16310
16310
  id: c,
16311
- onOpenChange: i,
16312
- value: a,
16311
+ onOpenChange: a,
16312
+ value: i,
16313
16313
  onChange: u,
16314
16314
  onValueChange: l,
16315
16315
  onMultiValueChange: s,
@@ -16336,24 +16336,24 @@ function bon({
16336
16336
  m(t ?? !1);
16337
16337
  }, [t]);
16338
16338
  const v = x.useCallback((I) => {
16339
- L ? Array.isArray(a) && a.includes(I) ? s?.(a.filter((T) => T !== I)) : s?.([...a ?? [], I]) : l?.(I), !L && u && u({
16339
+ L ? Array.isArray(i) && i.includes(I) ? s?.(i.filter((T) => T !== I)) : s?.([...i ?? [], I]) : l?.(I), !L && u && u({
16340
16340
  target: {
16341
16341
  name: r,
16342
16342
  value: I
16343
16343
  }
16344
16344
  });
16345
- }, [L, u, a, s, l]);
16345
+ }, [L, u, i, s, l]);
16346
16346
  return /* @__PURE__ */ y(
16347
16347
  R.Root,
16348
16348
  {
16349
16349
  name: r,
16350
- value: Array.isArray(a) ? void 0 : a,
16350
+ value: Array.isArray(i) ? void 0 : i,
16351
16351
  defaultOpen: t,
16352
16352
  open: U,
16353
16353
  disabled: P,
16354
16354
  onValueChange: v,
16355
16355
  onOpenChange: (I) => {
16356
- i?.(I), m(I);
16356
+ a?.(I), m(I);
16357
16357
  },
16358
16358
  ...B,
16359
16359
  children: [
@@ -16394,9 +16394,9 @@ function bon({
16394
16394
  "overflow-visible",
16395
16395
  w === "small" ? "h-[42px]" : "h-[64px]"
16396
16396
  ), children: [
16397
- d && (a && Array.isArray(a) ? a.map((I, T) => /* @__PURE__ */ e("div", { className: "flex items-center gap-1 max-w-full", children: d ? d(I, T) : I }, I)) : typeof a == "string" ? d ? d(a, 0) : a : h),
16398
- g && (!a || Array.isArray(a)) ? g(a ?? []) : null,
16399
- !d && !g && a
16397
+ d && (i && Array.isArray(i) ? i.map((I, T) => /* @__PURE__ */ e("div", { className: "flex items-center gap-1 max-w-full", children: d ? d(I, T) : I }, I)) : typeof i == "string" ? d ? d(i, 0) : i : h),
16398
+ g && (!i || Array.isArray(i)) ? g(i ?? []) : null,
16399
+ !d && !g && i
16400
16400
  ] }) }),
16401
16401
  /* @__PURE__ */ e(R.Icon, { className: _(
16402
16402
  "px-2 h-full flex items-center"
@@ -16456,8 +16456,8 @@ function kon({
16456
16456
  {
16457
16457
  value: n,
16458
16458
  disabled: r,
16459
- onClick: (i) => {
16460
- i.preventDefault(), i.stopPropagation();
16459
+ onClick: (a) => {
16460
+ a.preventDefault(), a.stopPropagation();
16461
16461
  },
16462
16462
  className: _(
16463
16463
  "w-full",
@@ -16509,11 +16509,11 @@ function we(n, t = 300) {
16509
16509
  const [r, c] = q(n);
16510
16510
  return M(
16511
16511
  () => {
16512
- const i = setTimeout(() => {
16512
+ const a = setTimeout(() => {
16513
16513
  c(n);
16514
16514
  }, t);
16515
16515
  return () => {
16516
- clearTimeout(i);
16516
+ clearTimeout(a);
16517
16517
  };
16518
16518
  },
16519
16519
  [n, t]
@@ -16525,8 +16525,8 @@ function von({
16525
16525
  onTextSearch: t,
16526
16526
  placeholder: r = "Search",
16527
16527
  expandable: c = !1,
16528
- large: i = !1,
16529
- innerClassName: a,
16528
+ large: a = !1,
16529
+ innerClassName: i,
16530
16530
  className: u,
16531
16531
  autoFocus: l,
16532
16532
  disabled: s,
@@ -16546,7 +16546,7 @@ function von({
16546
16546
  onClick: n,
16547
16547
  className: _(
16548
16548
  "relative",
16549
- i ? "h-14" : "h-[42px]",
16549
+ a ? "h-14" : "h-[42px]",
16550
16550
  "bg-slate-50 dark:bg-gray-800 transition duration-150 ease-in-out border",
16551
16551
  X,
16552
16552
  "rounded",
@@ -16580,14 +16580,14 @@ function von({
16580
16580
  "pl-12 h-full text-current ",
16581
16581
  c ? g ? "w-[220px]" : "w-[180px]" : "",
16582
16582
  A,
16583
- a
16583
+ i
16584
16584
  )
16585
16585
  }
16586
16586
  ),
16587
16587
  h ? /* @__PURE__ */ e(
16588
16588
  ln,
16589
16589
  {
16590
- className: `${i ? "mr-2 top-1" : "mr-1 top-0"} absolute right-0 z-10`,
16590
+ className: `${a ? "mr-2 top-1" : "mr-1 top-0"} absolute right-0 z-10`,
16591
16591
  onClick: S,
16592
16592
  children: /* @__PURE__ */ e(kn, { size: "small" })
16593
16593
  }
@@ -16601,8 +16601,8 @@ const xon = ({
16601
16601
  side: t = "right",
16602
16602
  open: r,
16603
16603
  onOpenChange: c,
16604
- transparent: i,
16605
- ...a
16604
+ transparent: a,
16605
+ ...i
16606
16606
  }) => {
16607
16607
  const [u, l] = x.useState(!1);
16608
16608
  M(() => {
@@ -16633,7 +16633,7 @@ const xon = ({
16633
16633
  {
16634
16634
  className: _(
16635
16635
  "fixed inset-0 transition-opacity z-20 ease-in-out duration-200 backdrop-blur-sm",
16636
- i ? "bg-white bg-opacity-80" : "bg-black bg-opacity-50",
16636
+ a ? "bg-white bg-opacity-80" : "bg-black bg-opacity-50",
16637
16637
  "dark:bg-black dark:bg-opacity-60",
16638
16638
  u && r ? "opacity-100" : "opacity-0"
16639
16639
  ),
@@ -16645,14 +16645,14 @@ const xon = ({
16645
16645
  /* @__PURE__ */ e(
16646
16646
  N.Content,
16647
16647
  {
16648
- ...a,
16648
+ ...i,
16649
16649
  className: _(
16650
16650
  // "transform-gpu",
16651
16651
  "will-change-transform",
16652
16652
  "text-slate-900 dark:text-white",
16653
16653
  "fixed transform z-20 transition-all duration-[240ms] ease-in-out",
16654
16654
  "outline-none focus:outline-none",
16655
- i ? "" : "shadow-md",
16655
+ a ? "" : "shadow-md",
16656
16656
  t === "top" || t === "bottom" ? "w-full" : "h-full",
16657
16657
  t === "left" || t === "top" ? "left-0 top-0" : "right-0 bottom-0",
16658
16658
  u && r ? "opacity-100" : "opacity-0",
@@ -16720,8 +16720,8 @@ function In(n) {
16720
16720
  const xe = b.forwardRef(function(t, r) {
16721
16721
  const {
16722
16722
  onChange: c,
16723
- onScroll: i,
16724
- onResize: a,
16723
+ onScroll: a,
16724
+ onResize: i,
16725
16725
  maxRows: u,
16726
16726
  minRows: l = 1,
16727
16727
  style: s,
@@ -16774,8 +16774,8 @@ const xe = b.forwardRef(function(t, r) {
16774
16774
  ), m);
16775
16775
  }, O = b.useCallback(() => {
16776
16776
  const m = L();
16777
- In(m) || (a && a(m), F((v) => E(v, m)));
16778
- }, [L, a]), B = () => {
16777
+ In(m) || (i && i(m), F((v) => E(v, m)));
16778
+ }, [L, i]), B = () => {
16779
16779
  const m = L();
16780
16780
  In(m) || Wn.flushSync(() => {
16781
16781
  F((v) => E(v, m));
@@ -16817,7 +16817,7 @@ const xe = b.forwardRef(function(t, r) {
16817
16817
  overflow: D.overflow ? "hidden" : void 0,
16818
16818
  ...s
16819
16819
  },
16820
- onScroll: i,
16820
+ onScroll: a,
16821
16821
  ...K
16822
16822
  }
16823
16823
  ),
@@ -16853,8 +16853,8 @@ function Ae({
16853
16853
  onChange: t,
16854
16854
  label: r,
16855
16855
  type: c = "text",
16856
- multiline: i = !1,
16857
- invisible: a,
16856
+ multiline: a = !1,
16857
+ invisible: i,
16858
16858
  rows: u,
16859
16859
  disabled: l,
16860
16860
  error: s,
@@ -16873,7 +16873,7 @@ function Ae({
16873
16873
  B.target.blur(), B.stopPropagation(), setTimeout(() => {
16874
16874
  B.target.focus();
16875
16875
  }, 0);
16876
- }, []), O = i ? /* @__PURE__ */ e(
16876
+ }, []), O = a ? /* @__PURE__ */ e(
16877
16877
  xe,
16878
16878
  {
16879
16879
  ...P,
@@ -16885,7 +16885,7 @@ function Ae({
16885
16885
  onChange: t,
16886
16886
  style: S,
16887
16887
  className: _(
16888
- a ? yn : A,
16888
+ i ? yn : A,
16889
16889
  "rounded-md resize-none w-full outline-none p-[32px] text-base bg-transparent min-h-[64px] px-3 pt-[28px]",
16890
16890
  l && "border border-transparent outline-none opacity-50 text-slate-600 dark:text-slate-500"
16891
16891
  )
@@ -16901,7 +16901,7 @@ function Ae({
16901
16901
  className: _(
16902
16902
  "w-full outline-none bg-transparent leading-normal px-3",
16903
16903
  "rounded-md",
16904
- a ? yn : A,
16904
+ i ? yn : A,
16905
16905
  l ? V : W,
16906
16906
  d === "small" ? "min-h-[48px]" : "min-h-[64px]",
16907
16907
  r ? d === "medium" ? "pt-[28px] pb-2" : "pt-4 pb-2" : "py-2",
@@ -16924,12 +16924,12 @@ function Ae({
16924
16924
  {
16925
16925
  className: _(
16926
16926
  "rounded-md relative max-w-full",
16927
- a ? hn : z,
16927
+ i ? hn : z,
16928
16928
  l ? V : W,
16929
16929
  s ? "border border-red-500 dark:border-red-600" : "",
16930
16930
  {
16931
- "min-h-[48px]": !a && d === "small",
16932
- "min-h-[64px]": !a && d === "medium"
16931
+ "min-h-[48px]": !i && d === "small",
16932
+ "min-h-[64px]": !i && d === "medium"
16933
16933
  },
16934
16934
  g
16935
16935
  ),
@@ -16949,7 +16949,7 @@ function Ae({
16949
16949
  }
16950
16950
  ),
16951
16951
  O,
16952
- f && /* @__PURE__ */ e("div", { className: "flex absolute right-0 top-3 mr-3 ", children: f })
16952
+ f && /* @__PURE__ */ e("div", { className: "flex flex-row justify-center items-center absolute h-full right-0 top-0 mr-4 ", children: f })
16953
16953
  ]
16954
16954
  }
16955
16955
  );
@@ -16957,15 +16957,16 @@ function Ae({
16957
16957
  const Con = ({
16958
16958
  open: n,
16959
16959
  side: t = "bottom",
16960
- sideOffset: r,
16961
- onOpenChange: c,
16960
+ delayDuration: r = 250,
16961
+ sideOffset: c,
16962
+ onOpenChange: a,
16962
16963
  title: i,
16963
- className: a,
16964
- style: u,
16965
- tooltipClassName: l,
16966
- children: s
16967
- }) => (nn("Tooltip", Pe), i ? /* @__PURE__ */ e(Q.Provider, { delayDuration: 250, children: /* @__PURE__ */ y(Q.Root, { open: n, onOpenChange: c, children: [
16968
- /* @__PURE__ */ e(Q.Trigger, { asChild: !0, children: /* @__PURE__ */ e("div", { className: a, style: u, children: s }) }),
16964
+ className: u,
16965
+ style: l,
16966
+ tooltipClassName: s,
16967
+ children: f
16968
+ }) => (nn("Tooltip", Pe), i ? /* @__PURE__ */ e(Q.Provider, { delayDuration: r, children: /* @__PURE__ */ y(Q.Root, { open: n, onOpenChange: a, children: [
16969
+ /* @__PURE__ */ e(Q.Trigger, { asChild: !0, children: /* @__PURE__ */ e("div", { className: u, style: l, children: f }) }),
16969
16970
  /* @__PURE__ */ e(Q.Portal, { children: /* @__PURE__ */ e(
16970
16971
  Q.Content,
16971
16972
  {
@@ -16973,14 +16974,14 @@ const Con = ({
16973
16974
  "TooltipContent",
16974
16975
  "max-w-lg leading-relaxed",
16975
16976
  "z-50 rounded px-3 py-2 text-xs leading-none bg-slate-700 dark:bg-slate-800 bg-opacity-90 font-medium text-slate-50 shadow-2xl select-none duration-400 ease-in transform opacity-100",
16976
- l
16977
+ s
16977
16978
  ),
16978
- sideOffset: r === void 0 ? 4 : r,
16979
+ sideOffset: c === void 0 ? 4 : c,
16979
16980
  side: t,
16980
16981
  children: i
16981
16982
  }
16982
16983
  ) })
16983
- ] }) }) : /* @__PURE__ */ e(G, { children: s })), Pe = `
16984
+ ] }) }) : /* @__PURE__ */ e(G, { children: f })), Pe = `
16984
16985
 
16985
16986
  .TooltipContent {
16986
16987
  animation-duration: 220ms;
@@ -17141,8 +17142,8 @@ const Don = ({
17141
17142
  header: t = !1,
17142
17143
  scope: r = "",
17143
17144
  align: c,
17144
- className: i,
17145
- style: a,
17145
+ className: a,
17146
+ style: i,
17146
17147
  colspan: u
17147
17148
  }) => {
17148
17149
  const l = tn(null), s = t || De(l.current) === "TableHeader" ? "th" : "td";
@@ -17152,11 +17153,11 @@ const Don = ({
17152
17153
  scope: r,
17153
17154
  colSpan: u,
17154
17155
  ref: l,
17155
- style: a,
17156
+ style: i,
17156
17157
  className: _(
17157
17158
  "px-4 py-3 text-clip ",
17158
17159
  c === "center" ? "text-center" : c === "right" ? "text-right" : "text-left",
17159
- i
17160
+ a
17160
17161
  ),
17161
17162
  children: n
17162
17163
  }
@@ -17164,14 +17165,14 @@ const Don = ({
17164
17165
  };
17165
17166
  function De(n) {
17166
17167
  if (n) {
17167
- const t = Object.keys(n).find((a) => a.startsWith("__reactFiber$") || a.startsWith("__reactInternalInstance$")), r = n[t], c = (a) => {
17168
- let u = a.return;
17168
+ const t = Object.keys(n).find((i) => i.startsWith("__reactFiber$") || i.startsWith("__reactInternalInstance$")), r = n[t], c = (i) => {
17169
+ let u = i.return;
17169
17170
  for (; typeof u.type == "string"; )
17170
17171
  u = u.return;
17171
17172
  return u;
17172
17173
  };
17173
- let i = c(r);
17174
- return i = c(i), i?.elementType?.name;
17174
+ let a = c(r);
17175
+ return a = c(a), a?.elementType?.name;
17175
17176
  }
17176
17177
  }
17177
17178
  function Mon({
@@ -17179,8 +17180,8 @@ function Mon({
17179
17180
  children: t,
17180
17181
  open: r,
17181
17182
  onOpenChange: c,
17182
- side: i,
17183
- sideOffset: a = 5,
17183
+ side: a,
17184
+ sideOffset: i = 5,
17184
17185
  align: u,
17185
17186
  alignOffset: l,
17186
17187
  arrowPadding: s,
@@ -17203,8 +17204,8 @@ function Mon({
17203
17204
  J.Content,
17204
17205
  {
17205
17206
  className: _(j, "PopoverContent shadow z-40", K),
17206
- side: i,
17207
- sideOffset: a,
17207
+ side: a,
17208
+ sideOffset: i,
17208
17209
  align: u,
17209
17210
  alignOffset: l,
17210
17211
  arrowPadding: s,
@@ -17313,20 +17314,20 @@ const Fe = `
17313
17314
  )
17314
17315
  ] });
17315
17316
  function Non(n) {
17316
- const t = x.useRef(), [r, c] = x.useState(n.value), i = Ln(r);
17317
+ const t = x.useRef(), [r, c] = x.useState(n.value), a = Ln(r);
17317
17318
  M(() => {
17318
17319
  c(n.value);
17319
17320
  }, [n.value]), M(() => {
17320
- !n.value && !i || i !== n.value && t.current && n.onChange && n.onChange(t.current);
17321
- }, [i, n.value, n.onChange]);
17322
- const a = cn((u) => {
17321
+ !n.value && !a || a !== n.value && t.current && n.onChange && n.onChange(t.current);
17322
+ }, [a, n.value, n.onChange]);
17323
+ const i = cn((u) => {
17323
17324
  t.current = u, c(u.target.value);
17324
17325
  }, []);
17325
17326
  return /* @__PURE__ */ e(
17326
17327
  Ae,
17327
17328
  {
17328
17329
  ...n,
17329
- onChange: a,
17330
+ onChange: i,
17330
17331
  value: r
17331
17332
  }
17332
17333
  );