@matthiaskrijgsman/mat-ui 0.0.36 → 0.0.38

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.js CHANGED
@@ -3,7 +3,7 @@ import { jsx as e, jsxs as d, Fragment as te } from "react/jsx-runtime";
3
3
  import * as C from "react";
4
4
  import { createContext as Qe, useContext as Ze, useEffect as _, useState as W, useRef as Ce, useCallback as Le, useLayoutEffect as Rt, useMemo as ie } from "react";
5
5
  import { AnimatePresence as De, motion as J, animate as Xt } from "motion/react";
6
- import { IconExclamationCircleFilled as et, IconEyeOff as Vt, IconEye as Kt, IconPaperclip as Gt, IconCircleCheckFilled as tt, IconX as de, IconCloudUpload as Jt, IconCheck as St, IconChevronDown as ve, IconBold as Yt, IconItalic as qt, IconUnderline as Qt, IconList as Ye, IconListNumbers as Zt, IconLink as en, IconArrowBackUp as tn, IconArrowForwardUp as nn, IconDots as rn, IconSearch as Me, IconSearchOff as nt, IconInfoCircleFilled as ln, IconAlertTriangleFilled as on, IconChevronRight as sn, IconChevronUp as an, IconSettings as ft, IconPlus as ht, IconTrash as cn, IconMailFilled as dn } from "@tabler/icons-react";
6
+ import { IconExclamationCircleFilled as et, IconEyeOff as Vt, IconEye as Kt, IconPaperclip as Gt, IconCircleCheckFilled as tt, IconX as ue, IconCloudUpload as Jt, IconCheck as St, IconChevronDown as ve, IconBold as Yt, IconItalic as qt, IconUnderline as Qt, IconList as Ye, IconListNumbers as Zt, IconLink as en, IconArrowBackUp as tn, IconArrowForwardUp as nn, IconDots as rn, IconSearch as Me, IconSearchOff as nt, IconInfoCircleFilled as ln, IconAlertTriangleFilled as on, IconChevronRight as sn, IconChevronUp as an, IconSettings as ft, IconPlus as ht, IconTrash as cn, IconMailFilled as dn } from "@tabler/icons-react";
7
7
  import { FloatingPortal as Fe, FloatingOverlay as rt, flip as lt, shift as ot, size as st, useFloating as at, autoUpdate as it, offset as un, useListNavigation as mn, useInteractions as fn } from "@floating-ui/react";
8
8
  import { mergeRefs as hn } from "react-merge-refs";
9
9
  import { useDropzone as Dt } from "react-dropzone";
@@ -19,7 +19,7 @@ import { LexicalErrorBoundary as yn } from "@lexical/react/LexicalErrorBoundary"
19
19
  import { HeadingNode as Cn, QuoteNode as In, $isHeadingNode as Rn, $createHeadingNode as Sn } from "@lexical/rich-text";
20
20
  import { ListNode as Ot, ListItemNode as Dn, $isListNode as On, REMOVE_LIST_COMMAND as pt, INSERT_UNORDERED_LIST_COMMAND as zn, INSERT_ORDERED_LIST_COMMAND as Tn } from "@lexical/list";
21
21
  import { LinkNode as Ln, $isLinkNode as gt, TOGGLE_LINK_COMMAND as bt } from "@lexical/link";
22
- import { useLexicalComposerContext as ue } from "@lexical/react/LexicalComposerContext";
22
+ import { useLexicalComposerContext as me } from "@lexical/react/LexicalComposerContext";
23
23
  import { CAN_UNDO_COMMAND as Pn, COMMAND_PRIORITY_LOW as Pe, CAN_REDO_COMMAND as En, $getSelection as zt, $isRangeSelection as Tt, $createParagraphNode as Mn, FORMAT_TEXT_COMMAND as je, UNDO_COMMAND as Fn, REDO_COMMAND as Bn, FOCUS_COMMAND as An, BLUR_COMMAND as Un } from "lexical";
24
24
  import { mergeRegister as Lt, $getNearestNodeOfType as Wn } from "@lexical/utils";
25
25
  import { $setBlocksType as vt } from "@lexical/selection";
@@ -32,15 +32,15 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
32
32
  ], Se = (t) => {
33
33
  const {
34
34
  speed: n = 1,
35
- className: o
36
- } = t, s = 1 / n, r = 2 / n;
35
+ className: s
36
+ } = t, o = 1 / n, r = 2 / n;
37
37
  return /* @__PURE__ */ e(De, { children: /* @__PURE__ */ e(
38
38
  J.div,
39
39
  {
40
40
  role: "status",
41
- className: f("relative rounded-full", o),
41
+ className: f("relative rounded-full", s),
42
42
  animate: { rotate: 360 },
43
- transition: { repeat: 1 / 0, ease: "linear", duration: s },
43
+ transition: { repeat: 1 / 0, ease: "linear", duration: o },
44
44
  children: /* @__PURE__ */ e(
45
45
  J.div,
46
46
  {
@@ -81,7 +81,7 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
81
81
  sm: "px-[var(--control-size-sm-px)]",
82
82
  md: "px-[var(--control-size-md-px)]",
83
83
  lg: "px-[var(--control-size-lg-px)]"
84
- }, me = {
84
+ }, fe = {
85
85
  sm: "pl-[var(--control-size-sm-px)]",
86
86
  md: "pl-[var(--control-size-md-px)]",
87
87
  lg: "pl-[var(--control-size-lg-px)]"
@@ -89,7 +89,7 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
89
89
  sm: "pr-[var(--control-size-sm-px)]",
90
90
  md: "pr-[var(--control-size-md-px)]",
91
91
  lg: "pr-[var(--control-size-lg-px)]"
92
- }, fe = {
92
+ }, he = {
93
93
  sm: "pr-[calc(var(--control-size-sm-px)+2rem)]",
94
94
  md: "pr-[calc(var(--control-size-md-px)+2rem)]",
95
95
  lg: "pr-[calc(var(--control-size-lg-px)+2rem)]"
@@ -109,7 +109,7 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
109
109
  sm: "right-[var(--control-size-sm-px)]",
110
110
  md: "right-[var(--control-size-md-px)]",
111
111
  lg: "right-[var(--control-size-lg-px)]"
112
- }, be = {
112
+ }, ce = {
113
113
  sm: "h-[var(--control-size-sm-icon)] w-[var(--control-size-sm-icon)]",
114
114
  md: "h-[var(--control-size-md-icon)] w-[var(--control-size-md-icon)]",
115
115
  lg: "h-[var(--control-size-lg-icon)] w-[var(--control-size-lg-icon)]"
@@ -132,13 +132,14 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
132
132
  transparent: "border button-transparent"
133
133
  }, Kn = C.forwardRef((t, n) => {
134
134
  const {
135
- variant: o = "white",
136
- size: s = "md",
135
+ variant: s = "white",
136
+ size: o = "md",
137
137
  className: r,
138
138
  children: l,
139
139
  loading: a = !1,
140
140
  Icon: i,
141
- ...c
141
+ IconRight: c,
142
+ ...g
142
143
  } = t;
143
144
  return /* @__PURE__ */ d(
144
145
  "button",
@@ -146,19 +147,20 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
146
147
  ref: n,
147
148
  className: f(
148
149
  Xn,
149
- Vn[o],
150
- ne[s],
151
- _n[s],
152
- Y[s],
153
- $n[s],
150
+ Vn[s],
151
+ ne[o],
152
+ _n[o],
153
+ Y[o],
154
+ $n[o],
154
155
  r
155
156
  ),
156
- ...c,
157
+ ...g,
157
158
  children: [
158
- a && /* @__PURE__ */ e(Se, { className: f(be[s]) }),
159
+ a && /* @__PURE__ */ e(Se, { className: f(ce[o]) }),
159
160
  !a && /* @__PURE__ */ d(te, { children: [
160
- i && /* @__PURE__ */ e(i, { className: f(be[s], "-ml-1") }),
161
- l
161
+ i && /* @__PURE__ */ e(i, { className: f(ce[o], "-ml-1") }),
162
+ l,
163
+ c && /* @__PURE__ */ e(c, { className: f(ce[o], "-mr-1") })
162
164
  ] })
163
165
  ]
164
166
  }
@@ -178,8 +180,8 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
178
180
  transparent: "border button-transparent"
179
181
  }, qe = C.forwardRef((t, n) => {
180
182
  const {
181
- variant: o = "white",
182
- size: s = "md",
183
+ variant: s = "white",
184
+ size: o = "md",
183
185
  className: r,
184
186
  Icon: l,
185
187
  ...a
@@ -190,12 +192,12 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
190
192
  ref: n,
191
193
  className: f(
192
194
  Gn,
193
- Jn[o],
194
- Ft[s],
195
+ Jn[s],
196
+ Ft[o],
195
197
  r
196
198
  ),
197
199
  ...a,
198
- children: /* @__PURE__ */ e(l, { className: be[s] })
200
+ children: /* @__PURE__ */ e(l, { className: ce[o] })
199
201
  }
200
202
  );
201
203
  }), Yn = `
@@ -211,8 +213,8 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
211
213
  transparent: "border button-transparent"
212
214
  }, Bt = C.forwardRef((t, n) => {
213
215
  const {
214
- variant: o = "white",
215
- size: s = "md",
216
+ variant: s = "white",
217
+ size: o = "md",
216
218
  className: r,
217
219
  Icon: l,
218
220
  ...a
@@ -223,12 +225,12 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
223
225
  ref: n,
224
226
  className: f(
225
227
  Yn,
226
- qn[o],
227
- Ft[s],
228
+ qn[s],
229
+ Ft[o],
228
230
  r
229
231
  ),
230
232
  ...a,
231
- children: /* @__PURE__ */ e(l, { className: be[s] })
233
+ children: /* @__PURE__ */ e(l, { className: ce[o] })
232
234
  }
233
235
  );
234
236
  }), q = (t) => {
@@ -236,10 +238,10 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
236
238
  children: n
237
239
  } = t;
238
240
  return n ? /* @__PURE__ */ e("label", { className: "input-label font-medium mb-1", children: n }) : null;
239
- }, re = () => /* @__PURE__ */ e("div", { className: "h-5 w-5", children: /* @__PURE__ */ e(et, { className: "h-5 w-5 input-error-icon" }) }), Q = Qe("md"), Qn = () => Ze(Q), he = C.forwardRef((t, n) => {
241
+ }, re = () => /* @__PURE__ */ e("div", { className: "h-5 w-5", children: /* @__PURE__ */ e(et, { className: "h-5 w-5 input-error-icon" }) }), Q = Qe("md"), Qn = () => Ze(Q), pe = C.forwardRef((t, n) => {
240
242
  const {
241
- children: o,
242
- className: s
243
+ children: s,
244
+ className: o
243
245
  } = t, r = Qn();
244
246
  return /* @__PURE__ */ e(
245
247
  "div",
@@ -248,9 +250,9 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
248
250
  className: f(
249
251
  "absolute top-1/2 -translate-y-1/2 flex flex-row items-center gap-1 pointer-events-none",
250
252
  jn[r],
251
- s
253
+ o
252
254
  ),
253
- children: o
255
+ children: s
254
256
  }
255
257
  );
256
258
  }), V = (t) => {
@@ -266,8 +268,8 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
266
268
  }, At = (t) => {
267
269
  const {
268
270
  className: n,
269
- label: o,
270
- description: s,
271
+ label: s,
272
+ description: o,
271
273
  Icon: r,
272
274
  error: l,
273
275
  buttonTray: a,
@@ -282,11 +284,11 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
282
284
  n
283
285
  ),
284
286
  children: [
285
- /* @__PURE__ */ e(q, { children: o }),
287
+ /* @__PURE__ */ e(q, { children: s }),
286
288
  /* @__PURE__ */ d("div", { className: "flex flex-col relative", children: [
287
289
  r && /* @__PURE__ */ e(r, { className: f(
288
290
  "input-icon absolute top-1/2 -translate-y-1/2",
289
- be[i],
291
+ ce[i],
290
292
  Mt[i]
291
293
  ) }),
292
294
  /* @__PURE__ */ e(
@@ -296,19 +298,19 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
296
298
  "border input-base transition-all duration-150 rounded-xl shadow-sm ring-0 focus:ring-4 focus:outline-none",
297
299
  ne[i],
298
300
  Y[i],
299
- r ? Et[i] : me[i],
300
- g ? fe[i] : ct[i],
301
+ r ? Et[i] : fe[i],
302
+ g ? he[i] : ct[i],
301
303
  l && "input-error"
302
304
  ),
303
305
  ...c
304
306
  }
305
307
  ),
306
- /* @__PURE__ */ d(he, { children: [
308
+ /* @__PURE__ */ d(pe, { children: [
307
309
  l && /* @__PURE__ */ e(re, {}),
308
310
  a
309
311
  ] })
310
312
  ] }),
311
- /* @__PURE__ */ e(V, { children: s }),
313
+ /* @__PURE__ */ e(V, { children: o }),
312
314
  /* @__PURE__ */ e(K, { children: l })
313
315
  ]
314
316
  }
@@ -316,53 +318,53 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
316
318
  }, Zn = (t) => {
317
319
  const n = t.match(/^#?([0-9a-fA-F]{6})$/);
318
320
  if (!n) return null;
319
- const o = parseInt(n[1], 16);
320
- return [(o >> 16 & 255) / 255, (o >> 8 & 255) / 255, (o & 255) / 255];
321
- }, er = (t, n, o) => {
322
- const s = (r) => Math.round(r * 255).toString(16).padStart(2, "0").toUpperCase();
323
- return "#" + s(t) + s(n) + s(o);
324
- }, tr = (t, n, o) => {
325
- const s = Math.max(t, n, o), r = Math.min(t, n, o), l = s - r;
321
+ const s = parseInt(n[1], 16);
322
+ return [(s >> 16 & 255) / 255, (s >> 8 & 255) / 255, (s & 255) / 255];
323
+ }, er = (t, n, s) => {
324
+ const o = (r) => Math.round(r * 255).toString(16).padStart(2, "0").toUpperCase();
325
+ return "#" + o(t) + o(n) + o(s);
326
+ }, tr = (t, n, s) => {
327
+ const o = Math.max(t, n, s), r = Math.min(t, n, s), l = o - r;
326
328
  let a = 0;
327
- return l !== 0 && (s === t ? a = ((n - o) / l + 6) % 6 : s === n ? a = (o - t) / l + 2 : a = (t - n) / l + 4, a *= 60), [a, s === 0 ? 0 : l / s, s];
328
- }, nr = (t, n, o) => {
329
- const s = o * n, r = t / 60, l = s * (1 - Math.abs(r % 2 - 1));
329
+ return l !== 0 && (o === t ? a = ((n - s) / l + 6) % 6 : o === n ? a = (s - t) / l + 2 : a = (t - n) / l + 4, a *= 60), [a, o === 0 ? 0 : l / o, o];
330
+ }, nr = (t, n, s) => {
331
+ const o = s * n, r = t / 60, l = o * (1 - Math.abs(r % 2 - 1));
330
332
  let a = 0, i = 0, c = 0;
331
- r < 1 ? (a = s, i = l) : r < 2 ? (a = l, i = s) : r < 3 ? (i = s, c = l) : r < 4 ? (i = l, c = s) : r < 5 ? (a = l, c = s) : (a = s, c = l);
332
- const g = o - s;
333
+ r < 1 ? (a = o, i = l) : r < 2 ? (a = l, i = o) : r < 3 ? (i = o, c = l) : r < 4 ? (i = l, c = o) : r < 5 ? (a = l, c = o) : (a = o, c = l);
334
+ const g = s - o;
333
335
  return [a + g, i + g, c + g];
334
- }, Re = (t, n, o) => {
335
- const [s, r, l] = nr(t, n, o);
336
- return er(s, r, l);
336
+ }, Re = (t, n, s) => {
337
+ const [o, r, l] = nr(t, n, s);
338
+ return er(o, r, l);
337
339
  }, xt = (t) => {
338
340
  const n = Zn(t);
339
341
  return n ? tr(n[0], n[1], n[2]) : null;
340
342
  }, rr = (t) => {
341
343
  const n = t.trim();
342
344
  if (!n) return null;
343
- const o = n.match(/^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/);
344
- if (o) {
345
- let a = o[1];
345
+ const s = n.match(/^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/);
346
+ if (s) {
347
+ let a = s[1];
346
348
  return a.length === 3 && (a = a.split("").map((i) => i + i).join("")), "#" + a.toUpperCase();
347
349
  }
348
350
  if (typeof document > "u") return null;
349
- const s = document.createElement("div");
350
- if (s.style.color = n, !s.style.color) return null;
351
- document.body.appendChild(s);
352
- const r = getComputedStyle(s).color;
353
- document.body.removeChild(s);
351
+ const o = document.createElement("div");
352
+ if (o.style.color = n, !o.style.color) return null;
353
+ document.body.appendChild(o);
354
+ const r = getComputedStyle(o).color;
355
+ document.body.removeChild(o);
354
356
  const l = r.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);
355
357
  return l ? "#" + [l[1], l[2], l[3]].map((a) => parseInt(a, 10).toString(16).padStart(2, "0")).join("").toUpperCase() : null;
356
358
  }, Xe = (t) => {
357
- const n = C.useRef(null), [o, s] = C.useState(!1), r = (l) => {
358
- n.current = null, s(!1), l.currentTarget.releasePointerCapture?.(l.pointerId);
359
+ const n = C.useRef(null), [s, o] = C.useState(!1), r = (l) => {
360
+ n.current = null, o(!1), l.currentTarget.releasePointerCapture?.(l.pointerId);
359
361
  };
360
362
  return {
361
- isDragging: o,
363
+ isDragging: s,
362
364
  bind: {
363
365
  onPointerDown: (l) => {
364
366
  const a = l.currentTarget;
365
- n.current = a.getBoundingClientRect(), a.setPointerCapture?.(l.pointerId), s(!0), t(l.clientX, l.clientY, n.current);
367
+ n.current = a.getBoundingClientRect(), a.setPointerCapture?.(l.pointerId), o(!0), t(l.clientX, l.clientY, n.current);
366
368
  },
367
369
  onPointerMove: (l) => {
368
370
  n.current && t(l.clientX, l.clientY, n.current);
@@ -378,16 +380,16 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
378
380
  }, xe = (t) => {
379
381
  const {
380
382
  className: n,
381
- children: o,
382
- padding: s = "md",
383
+ children: s,
384
+ padding: o = "md",
383
385
  ...r
384
386
  } = t;
385
387
  return /* @__PURE__ */ e(
386
388
  "div",
387
389
  {
388
- className: f(lr, or[s], n),
390
+ className: f(lr, or[o], n),
389
391
  ...r,
390
- children: o
392
+ children: s
391
393
  }
392
394
  );
393
395
  }, sr = {
@@ -404,12 +406,12 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
404
406
  "left-start": "top right",
405
407
  "left-end": "bottom right"
406
408
  }, Ut = C.memo(
407
- ({ open: t, children: n, className: o, onOutsideClick: s, floatingStyles: r, setFloating: l, placement: a, floatingProps: i }) => /* @__PURE__ */ e(Fe, { children: /* @__PURE__ */ e(De, { children: t && /* @__PURE__ */ d(te, { children: [
408
- s && /* @__PURE__ */ e(rt, { onClick: s }),
409
+ ({ open: t, children: n, className: s, onOutsideClick: o, floatingStyles: r, setFloating: l, placement: a, floatingProps: i }) => /* @__PURE__ */ e(Fe, { children: /* @__PURE__ */ e(De, { children: t && /* @__PURE__ */ d(te, { children: [
410
+ o && /* @__PURE__ */ e(rt, { onClick: o }),
409
411
  /* @__PURE__ */ e("div", { ref: l, style: r, className: "z-50", ...i, children: /* @__PURE__ */ e(
410
412
  J.div,
411
413
  {
412
- className: o,
414
+ className: s,
413
415
  style: { transformOrigin: sr[a] },
414
416
  initial: { opacity: 0, scale: 0.95 },
415
417
  animate: { opacity: 1, scale: 1 },
@@ -420,26 +422,26 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
420
422
  ) })
421
423
  ] }) }) })
422
424
  ), dt = (t) => {
423
- const { placement: n = "bottom", onOutsideClick: o, fullWidth: s, minWidth: r, maxWidth: l } = t, a = C.useMemo(() => [
425
+ const { placement: n = "bottom", onOutsideClick: s, fullWidth: o, minWidth: r, maxWidth: l } = t, a = C.useMemo(() => [
424
426
  lt({ padding: 8 }),
425
427
  ot({ padding: 8 }),
426
428
  st({
427
429
  apply({ rects: h, elements: b }) {
428
- s && (b.floating.style.width = `${h.reference.width}px`), r && (b.floating.style.minWidth = `${r}px`), l && (b.floating.style.maxWidth = `${l}px`);
430
+ o && (b.floating.style.width = `${h.reference.width}px`), r && (b.floating.style.minWidth = `${r}px`), l && (b.floating.style.maxWidth = `${l}px`);
429
431
  }
430
432
  })
431
- ], [s, l, r]), { refs: i, floatingStyles: c, placement: g } = at({
433
+ ], [o, l, r]), { refs: i, floatingStyles: c, placement: g } = at({
432
434
  placement: n,
433
435
  middleware: a,
434
436
  whileElementsMounted: it
435
437
  }), x = C.useRef({
436
- onOutsideClick: o,
438
+ onOutsideClick: s,
437
439
  floatingStyles: c,
438
440
  setFloating: i.setFloating,
439
441
  placement: n
440
442
  });
441
443
  x.current = {
442
- onOutsideClick: o,
444
+ onOutsideClick: s,
443
445
  floatingStyles: c,
444
446
  setFloating: i.setFloating,
445
447
  placement: g
@@ -469,36 +471,36 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
469
471
  }, we = (t, n) => {
470
472
  _(() => {
471
473
  if (!t) return;
472
- const o = (s) => {
473
- s.key === "Escape" && n();
474
+ const s = (o) => {
475
+ o.key === "Escape" && n();
474
476
  };
475
- return document.addEventListener("keydown", o), () => {
476
- document.removeEventListener("keydown", o);
477
+ return document.addEventListener("keydown", s), () => {
478
+ document.removeEventListener("keydown", s);
477
479
  };
478
480
  }, [t, n]);
479
481
  }, ar = "linear-gradient(to right, #f00 0%, #ff0 16.66%, #0f0 33.33%, #0ff 50%, #00f 66.66%, #f0f 83.33%, #f00 100%)", ir = "linear-gradient(to right, #fff, rgba(255,255,255,0))", cr = "linear-gradient(to top, #000, rgba(0,0,0,0))", Ve = "0 0 0 1px rgba(0,0,0,0.15)", dr = 14, ur = 28, mr = 6, fr = 8, Ke = { type: "spring", stiffness: 500, damping: 18, mass: 0.6 }, ke = (t) => {
480
- const n = t ? ur : dr, o = n / 2;
482
+ const n = t ? ur : dr, s = n / 2;
481
483
  return {
482
484
  width: n,
483
485
  height: n,
484
- marginLeft: -o,
485
- marginTop: -o,
486
+ marginLeft: -s,
487
+ marginTop: -s,
486
488
  borderRadius: t ? fr : mr
487
489
  };
488
490
  }, Te = (t) => Math.max(0, Math.min(1, t)), wt = (t, n) => {
489
491
  Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value")?.set?.call(t, n), t.dispatchEvent(new Event("input", { bubbles: !0 }));
490
492
  }, hr = ({ value: t, onChange: n }) => {
491
- const [o, s] = W(() => xt(t) ?? [0, 0, 1]), r = Ce(Re(o[0], o[1], o[2]));
493
+ const [s, o] = W(() => xt(t) ?? [0, 0, 1]), r = Ce(Re(s[0], s[1], s[2]));
492
494
  _(() => {
493
495
  if ((t || "").toUpperCase() === r.current) return;
494
496
  const m = xt(t);
495
- m && s(m);
497
+ m && o(m);
496
498
  }, [t]);
497
499
  const l = (m) => {
498
- s(m);
500
+ o(m);
499
501
  const v = Re(m[0], m[1], m[2]);
500
502
  r.current = v, n(v);
501
- }, [a, i, c] = o, g = Re(a, 1, 1), x = Re(a, i, 1), w = Re(a, i, c), h = Xe((m, v, u) => {
503
+ }, [a, i, c] = s, g = Re(a, 1, 1), x = Re(a, i, 1), w = Re(a, i, c), h = Xe((m, v, u) => {
502
504
  l([a, Te((m - u.left) / u.width), 1 - Te((v - u.top) / u.height)]);
503
505
  }), b = Xe((m, v, u) => {
504
506
  l([Te((m - u.left) / u.width) * 360, i, c]);
@@ -626,8 +628,8 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
626
628
  }, vl = (t) => {
627
629
  const {
628
630
  className: n,
629
- label: o,
630
- description: s,
631
+ label: s,
632
+ description: o,
631
633
  error: r,
632
634
  buttonTray: l,
633
635
  size: a = "md",
@@ -662,14 +664,14 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
662
664
  n
663
665
  ),
664
666
  children: [
665
- /* @__PURE__ */ e(q, { children: o }),
667
+ /* @__PURE__ */ e(q, { children: s }),
666
668
  /* @__PURE__ */ d("div", { className: "flex flex-col relative", ref: y, children: [
667
669
  /* @__PURE__ */ e(
668
670
  "div",
669
671
  {
670
672
  className: f(
671
673
  "absolute top-1/2 -translate-y-1/2 rounded-md border color-swatch",
672
- be[a],
674
+ ce[a],
673
675
  Mt[a]
674
676
  ),
675
677
  style: { backgroundColor: R }
@@ -684,7 +686,7 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
684
686
  ne[a],
685
687
  Y[a],
686
688
  Et[a],
687
- N ? fe[a] : ct[a],
689
+ N ? he[a] : ct[a],
688
690
  r && "input-error"
689
691
  ),
690
692
  value: i ?? b,
@@ -695,13 +697,13 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
695
697
  ...h
696
698
  }
697
699
  ),
698
- /* @__PURE__ */ d(he, { children: [
700
+ /* @__PURE__ */ d(pe, { children: [
699
701
  r && /* @__PURE__ */ e(re, {}),
700
702
  l
701
703
  ] }),
702
704
  /* @__PURE__ */ e(D, { open: m, children: /* @__PURE__ */ e(xe, { padding: "md", children: /* @__PURE__ */ e(hr, { value: I, onChange: z }) }) })
703
705
  ] }),
704
- /* @__PURE__ */ e(V, { children: s }),
706
+ /* @__PURE__ */ e(V, { children: o }),
705
707
  /* @__PURE__ */ e(K, { children: r })
706
708
  ]
707
709
  }
@@ -709,7 +711,7 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
709
711
  }, Z = (t) => {
710
712
  const {
711
713
  onClick: n,
712
- Icon: o
714
+ Icon: s
713
715
  } = t;
714
716
  return /* @__PURE__ */ e(
715
717
  "div",
@@ -719,30 +721,30 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
719
721
  "h-6 w-6 select-none rounded-full p-0.5",
720
722
  n && "ring-0 transition-all duration-150 input-icon-button-interactive active:ring-2 cursor-pointer hover:ring-4 group pointer-events-auto"
721
723
  ),
722
- children: /* @__PURE__ */ e(o, { className: f("h-5 w-5 input-icon-button-icon", n && "group-active:scale-[0.8] transition-transform origin-center") })
724
+ children: /* @__PURE__ */ e(s, { className: f("h-5 w-5 input-icon-button-icon", n && "group-active:scale-[0.8] transition-transform origin-center") })
723
725
  }
724
726
  );
725
727
  }, xl = (t) => {
726
728
  const {
727
729
  type: n = "password",
728
- enableShowPasswordToggle: o = !0,
729
- ...s
730
+ enableShowPasswordToggle: s = !0,
731
+ ...o
730
732
  } = t, [r, l] = W(!1);
731
733
  return /* @__PURE__ */ e(
732
734
  At,
733
735
  {
734
736
  type: r ? "text" : n,
735
- buttonTray: o ? /* @__PURE__ */ e(Z, { Icon: r ? Vt : Kt, onClick: () => {
737
+ buttonTray: s ? /* @__PURE__ */ e(Z, { Icon: r ? Vt : Kt, onClick: () => {
736
738
  l(!r);
737
739
  } }) : void 0,
738
- ...s
740
+ ...o
739
741
  }
740
742
  );
741
743
  }, wl = (t) => {
742
744
  const {
743
745
  className: n,
744
- label: o,
745
- description: s,
746
+ label: s,
747
+ description: o,
746
748
  error: r,
747
749
  size: l = "md",
748
750
  autogrow: a = !1,
@@ -779,7 +781,7 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
779
781
  n
780
782
  ),
781
783
  children: [
782
- /* @__PURE__ */ e(q, { children: o }),
784
+ /* @__PURE__ */ e(q, { children: s }),
783
785
  /* @__PURE__ */ d("div", { className: "flex flex-col relative", children: [
784
786
  /* @__PURE__ */ e(
785
787
  "textarea",
@@ -790,17 +792,17 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
790
792
  "py-2.5 border input-base transition-all duration-150 rounded-xl shadow-sm ring-0 focus:ring-4 focus:outline-none",
791
793
  Pt[l],
792
794
  Y[l],
793
- me[l],
794
- r ? fe[l] : ct[l],
795
+ fe[l],
796
+ r ? he[l] : ct[l],
795
797
  r && "input-error",
796
798
  a && (i ? "resize-none overflow-y-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden" : "resize-none overflow-hidden")
797
799
  ),
798
800
  ...x
799
801
  }
800
802
  ),
801
- /* @__PURE__ */ e(he, { className: "top-3.5 translate-y-0", children: r && /* @__PURE__ */ e(re, {}) })
803
+ /* @__PURE__ */ e(pe, { className: "top-3.5 translate-y-0", children: r && /* @__PURE__ */ e(re, {}) })
802
804
  ] }),
803
- /* @__PURE__ */ e(V, { children: s }),
805
+ /* @__PURE__ */ e(V, { children: o }),
804
806
  /* @__PURE__ */ e(K, { children: r })
805
807
  ]
806
808
  }
@@ -808,8 +810,8 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
808
810
  }, Nl = (t) => {
809
811
  const {
810
812
  className: n,
811
- label: o,
812
- description: s,
813
+ label: s,
814
+ description: o,
813
815
  error: r,
814
816
  ...l
815
817
  } = t;
@@ -830,12 +832,12 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
830
832
  ...l
831
833
  }
832
834
  ),
833
- o && /* @__PURE__ */ e("label", { htmlFor: t.id, className: f(
835
+ s && /* @__PURE__ */ e("label", { htmlFor: t.id, className: f(
834
836
  "input-label font-medium mb-1",
835
837
  t.id && "cursor-pointer"
836
- ), children: o })
838
+ ), children: s })
837
839
  ] }),
838
- /* @__PURE__ */ e(V, { children: s }),
840
+ /* @__PURE__ */ e(V, { children: o }),
839
841
  /* @__PURE__ */ e(K, { children: r })
840
842
  ]
841
843
  }
@@ -843,8 +845,8 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
843
845
  }, kl = (t) => {
844
846
  const {
845
847
  className: n,
846
- label: o,
847
- description: s,
848
+ label: s,
849
+ description: o,
848
850
  error: r,
849
851
  ...l
850
852
  } = t;
@@ -862,24 +864,24 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
862
864
  "input",
863
865
  {
864
866
  type: "checkbox",
865
- className: "appearance-none h-6 w-10 rounded-full checked:bg-transparent border toggle-input ring-0 hover:ring-4 focus:ring-4 ring-offset-0 focus:outline-0 transition-all duration-150",
867
+ className: "appearance-none absolute inset-0 h-6 w-10 rounded-full checked:bg-transparent border-0 toggle-input ring-0 hover:ring-4 focus:ring-4 ring-offset-0 focus:outline-0 transition-all duration-150",
866
868
  ...l
867
869
  }
868
870
  ),
869
871
  /* @__PURE__ */ e("div", { className: f(
870
- "rounded-full absolute border inset-0 mt-[2px] pointer-events-none transition-colors duration-150 ",
872
+ "rounded-full absolute border inset-0 pointer-events-none transition-colors duration-150 ",
871
873
  t.checked ? "toggle-track-on" : "toggle-track-off"
872
874
  ), children: /* @__PURE__ */ e("div", { className: f(
873
875
  "absolute top-1/2 -translate-y-1/2 left-1 h-4 w-4 rounded-full toggle-thumb shadow-md transition-all duration-150",
874
876
  t.checked && "translate-x-3.5 "
875
877
  ) }) })
876
878
  ] }),
877
- o && /* @__PURE__ */ e("label", { htmlFor: t.id, className: f(
879
+ s && /* @__PURE__ */ e("label", { htmlFor: t.id, className: f(
878
880
  "input-label font-medium mb-1",
879
881
  t.id && "cursor-pointer"
880
- ), children: o })
882
+ ), children: s })
881
883
  ] }),
882
- /* @__PURE__ */ e(V, { children: s }),
884
+ /* @__PURE__ */ e(V, { children: o }),
883
885
  /* @__PURE__ */ e(K, { children: r })
884
886
  ]
885
887
  }
@@ -887,8 +889,8 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
887
889
  }, yl = (t) => {
888
890
  const {
889
891
  className: n,
890
- label: o,
891
- description: s,
892
+ label: s,
893
+ description: o,
892
894
  error: r,
893
895
  ...l
894
896
  } = t;
@@ -909,12 +911,12 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
909
911
  ...l
910
912
  }
911
913
  ),
912
- o && /* @__PURE__ */ e("label", { htmlFor: t.id, className: f(
914
+ s && /* @__PURE__ */ e("label", { htmlFor: t.id, className: f(
913
915
  "input-label font-medium mb-1",
914
916
  t.id && "cursor-pointer"
915
- ), children: o })
917
+ ), children: s })
916
918
  ] }),
917
- /* @__PURE__ */ e(V, { children: s }),
919
+ /* @__PURE__ */ e(V, { children: o }),
918
920
  /* @__PURE__ */ e(K, { children: r })
919
921
  ]
920
922
  }
@@ -934,8 +936,8 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
934
936
  }, Cl = (t) => {
935
937
  const {
936
938
  label: n,
937
- description: o,
938
- error: s,
939
+ description: s,
940
+ error: o,
939
941
  placeholder: r = "No file chosen",
940
942
  buttonText: l = "Choose",
941
943
  Icon: a = Gt,
@@ -979,16 +981,16 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
979
981
  "border input-base rounded-xl shadow-sm transition-all duration-150",
980
982
  "ring-0 focus:outline-none",
981
983
  (B || T) && "ring-4",
982
- s && "input-error",
984
+ o && "input-error",
983
985
  v && "opacity-60 cursor-not-allowed",
984
986
  ne[i],
985
- me[i],
987
+ fe[i],
986
988
  "gap-3"
987
989
  )
988
990
  }),
989
991
  children: [
990
992
  /* @__PURE__ */ e("input", { ...y() }),
991
- /* @__PURE__ */ e(a, { className: f("input-icon shrink-0", be[i]) }),
993
+ /* @__PURE__ */ e(a, { className: f("input-icon shrink-0", ce[i]) }),
992
994
  /* @__PURE__ */ e(
993
995
  "span",
994
996
  {
@@ -1000,9 +1002,9 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
1000
1002
  children: P ?? r
1001
1003
  }
1002
1004
  ),
1003
- s && /* @__PURE__ */ e(re, {}),
1004
- x && !s && /* @__PURE__ */ e("div", { className: "h-5 w-5 flex items-center justify-center", children: /* @__PURE__ */ e(Se, { className: "h-4 w-4 text-[var(--color-input-icon)]" }) }),
1005
- g && !x && !s && /* @__PURE__ */ e("div", { className: "h-5 w-5", children: /* @__PURE__ */ e(tt, { className: "h-5 w-5 text-[var(--color-status-success)]" }) }),
1005
+ o && /* @__PURE__ */ e(re, {}),
1006
+ x && !o && /* @__PURE__ */ e("div", { className: "h-5 w-5 flex items-center justify-center", children: /* @__PURE__ */ e(Se, { className: "h-4 w-4 text-[var(--color-input-icon)]" }) }),
1007
+ g && !x && !o && /* @__PURE__ */ e("div", { className: "h-5 w-5", children: /* @__PURE__ */ e(tt, { className: "h-5 w-5 text-[var(--color-status-success)]" }) }),
1006
1008
  /* @__PURE__ */ e(
1007
1009
  "button",
1008
1010
  {
@@ -1028,18 +1030,18 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
1028
1030
  ]
1029
1031
  }
1030
1032
  ),
1031
- /* @__PURE__ */ e(V, { children: o }),
1032
- /* @__PURE__ */ e(K, { children: s })
1033
+ /* @__PURE__ */ e(V, { children: s }),
1034
+ /* @__PURE__ */ e(K, { children: o })
1033
1035
  ] }) });
1034
1036
  }, vr = (t) => t < 1024 ? `${t} B` : t < 1024 * 1024 ? `${(t / 1024).toFixed(1)} KB` : t < 1024 * 1024 * 1024 ? `${(t / (1024 * 1024)).toFixed(1)} MB` : `${(t / (1024 * 1024 * 1024)).toFixed(1)} GB`, xr = (t) => {
1035
1037
  const {
1036
1038
  file: n,
1037
- isUploaded: o = !1,
1038
- isUploading: s = !1,
1039
+ isUploaded: s = !1,
1040
+ isUploading: o = !1,
1039
1041
  error: r,
1040
1042
  onRemove: l,
1041
1043
  className: a
1042
- } = t, i = s || o || !!r;
1044
+ } = t, i = o || s || !!r;
1043
1045
  return /* @__PURE__ */ d(
1044
1046
  "div",
1045
1047
  {
@@ -1051,7 +1053,7 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
1051
1053
  a
1052
1054
  ),
1053
1055
  children: [
1054
- i && /* @__PURE__ */ e("div", { className: "shrink-0 h-5 w-5 flex items-center justify-center", children: r ? /* @__PURE__ */ e(et, { className: "h-5 w-5 input-error-icon" }) : s ? /* @__PURE__ */ e(Se, { className: "h-4 w-4 text-[var(--color-input-icon)]" }) : /* @__PURE__ */ e(tt, { className: "h-5 w-5 text-[var(--color-status-success)]" }) }),
1056
+ i && /* @__PURE__ */ e("div", { className: "shrink-0 h-5 w-5 flex items-center justify-center", children: r ? /* @__PURE__ */ e(et, { className: "h-5 w-5 input-error-icon" }) : o ? /* @__PURE__ */ e(Se, { className: "h-4 w-4 text-[var(--color-input-icon)]" }) : /* @__PURE__ */ e(tt, { className: "h-5 w-5 text-[var(--color-status-success)]" }) }),
1055
1057
  /* @__PURE__ */ e("div", { className: "flex-1 min-w-0 font-medium truncate", children: n.name }),
1056
1058
  /* @__PURE__ */ e("div", { className: "shrink-0 text-sm text-[var(--color-input-description-text)]", children: vr(n.size) }),
1057
1059
  l && /* @__PURE__ */ e(
@@ -1059,7 +1061,7 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
1059
1061
  {
1060
1062
  variant: "transparent",
1061
1063
  size: "sm",
1062
- Icon: de,
1064
+ Icon: ue,
1063
1065
  onClick: l,
1064
1066
  "aria-label": "Remove file",
1065
1067
  className: "shrink-0"
@@ -1071,8 +1073,8 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
1071
1073
  }, Il = (t) => {
1072
1074
  const {
1073
1075
  label: n,
1074
- description: o,
1075
- error: s,
1076
+ description: s,
1077
+ error: o,
1076
1078
  title: r = "Drop files here",
1077
1079
  hint: l,
1078
1080
  Icon: a = Jt,
@@ -1133,7 +1135,7 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
1133
1135
  "py-10 px-6 cursor-pointer transition-all duration-150",
1134
1136
  "ring-0 focus:outline-none",
1135
1137
  (N || z) && "ring-4",
1136
- s && "input-error",
1138
+ o && "input-error",
1137
1139
  m && "opacity-60 cursor-not-allowed"
1138
1140
  )
1139
1141
  }),
@@ -1155,8 +1157,8 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
1155
1157
  };
1156
1158
  return /* @__PURE__ */ e(C.Fragment, { children: x ? x(k.file, A) : /* @__PURE__ */ e(xr, { ...A }) }, k.id);
1157
1159
  }) }),
1158
- /* @__PURE__ */ e(V, { children: o }),
1159
- /* @__PURE__ */ e(K, { children: s })
1160
+ /* @__PURE__ */ e(V, { children: s }),
1161
+ /* @__PURE__ */ e(K, { children: o })
1160
1162
  ] });
1161
1163
  }, wr = [
1162
1164
  Cn,
@@ -1202,9 +1204,9 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
1202
1204
  tone: "light",
1203
1205
  orientation: "horizontal"
1204
1206
  }), Ne = () => Ze(Ae), Ht = () => {
1205
- const [t] = ue(), [n, o] = W(Wt);
1207
+ const [t] = me(), [n, s] = W(Wt);
1206
1208
  return _(() => {
1207
- const s = () => {
1209
+ const o = () => {
1208
1210
  t.getEditorState().read(() => {
1209
1211
  const r = zt();
1210
1212
  if (!Tt(r))
@@ -1216,7 +1218,7 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
1216
1218
  Rn(b) && (c = b.getTag());
1217
1219
  }
1218
1220
  const g = r.hasFormat("bold"), x = r.hasFormat("italic"), w = r.hasFormat("underline"), h = gt(l.getParent()) || gt(l);
1219
- o((b) => ({
1221
+ s((b) => ({
1220
1222
  ...b,
1221
1223
  isBold: g,
1222
1224
  isItalic: x,
@@ -1229,15 +1231,15 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
1229
1231
  });
1230
1232
  };
1231
1233
  return Lt(
1232
- t.registerUpdateListener(() => s()),
1234
+ t.registerUpdateListener(() => o()),
1233
1235
  t.registerCommand(
1234
1236
  Pn,
1235
- (r) => (o((l) => ({ ...l, canUndo: r })), !1),
1237
+ (r) => (s((l) => ({ ...l, canUndo: r })), !1),
1236
1238
  Pe
1237
1239
  ),
1238
1240
  t.registerCommand(
1239
1241
  En,
1240
- (r) => (o((l) => ({ ...l, canRedo: r })), !1),
1242
+ (r) => (s((l) => ({ ...l, canRedo: r })), !1),
1241
1243
  Pe
1242
1244
  )
1243
1245
  );
@@ -1246,19 +1248,19 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
1246
1248
  dismiss: Ze($t) || (() => {
1247
1249
  })
1248
1250
  }), Ue = (t) => {
1249
- const { trigger: n, children: o, placement: s = "bottom-end", minWidth: r = 200, className: l } = t, [a, i] = W(!1), { Popover: c, anchorRef: g } = dt({
1250
- placement: s,
1251
+ const { trigger: n, children: s, placement: o = "bottom-end", minWidth: r = 200, className: l } = t, [a, i] = W(!1), { Popover: c, anchorRef: g } = dt({
1252
+ placement: o,
1251
1253
  onOutsideClick: () => i(!1),
1252
1254
  minWidth: r
1253
1255
  });
1254
1256
  return /* @__PURE__ */ d(te, { children: [
1255
1257
  /* @__PURE__ */ e("div", { ref: g, className: l, onClick: () => i(!a), children: n }),
1256
- /* @__PURE__ */ e(c, { open: a, children: /* @__PURE__ */ e(xe, { padding: "sm", children: /* @__PURE__ */ e($t.Provider, { value: () => i(!1), children: o }) }) })
1258
+ /* @__PURE__ */ e(c, { open: a, children: /* @__PURE__ */ e(xe, { padding: "sm", children: /* @__PURE__ */ e($t.Provider, { value: () => i(!1), children: s }) }) })
1257
1259
  ] });
1258
1260
  }, kr = "inline-flex flex-row items-center gap-3 h-10 px-3 font-semibold ring-0 dropdown-item rounded-lg cursor-pointer transition-all duration-150 select-none focus:outline-none focus:ring-0 border border-transparent bg-transparent", X = C.forwardRef((t, n) => {
1259
1261
  const {
1260
- className: o,
1261
- children: s,
1262
+ className: s,
1263
+ children: o,
1262
1264
  Icon: r,
1263
1265
  onClick: l,
1264
1266
  dismissOnClick: a = !0,
@@ -1272,13 +1274,13 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
1272
1274
  ref: n,
1273
1275
  className: f(
1274
1276
  kr,
1275
- o
1277
+ s
1276
1278
  ),
1277
1279
  onClick: g,
1278
1280
  ...i,
1279
1281
  children: [
1280
1282
  r && /* @__PURE__ */ e(r, { className: "h-5 w-5" }),
1281
- s
1283
+ o
1282
1284
  ]
1283
1285
  }
1284
1286
  );
@@ -1289,7 +1291,7 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
1289
1291
  { value: "h3", label: "Heading 3" },
1290
1292
  { value: "h4", label: "Heading 4" }
1291
1293
  ], yr = () => {
1292
- const [t] = ue(), { state: n, tone: o } = Ne(), s = (l) => {
1294
+ const [t] = me(), { state: n, tone: s } = Ne(), o = (l) => {
1293
1295
  t.update(() => {
1294
1296
  const a = zt();
1295
1297
  Tt(a) && (l === "paragraph" ? vt(a, () => Mn()) : vt(a, () => Sn(l)));
@@ -1307,7 +1309,7 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
1307
1309
  onMouseDown: (l) => l.preventDefault(),
1308
1310
  className: f(
1309
1311
  "lexical-tb-btn h-8 px-2 gap-1 text-sm font-medium",
1310
- o === "dark" ? "lexical-tb-btn-dark" : "lexical-tb-btn-light"
1312
+ s === "dark" ? "lexical-tb-btn-dark" : "lexical-tb-btn-light"
1311
1313
  ),
1312
1314
  children: [
1313
1315
  r.label,
@@ -1319,7 +1321,7 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
1319
1321
  X,
1320
1322
  {
1321
1323
  Icon: l.value === n.blockType ? St : void 0,
1322
- onClick: () => s(l.value),
1324
+ onClick: () => o(l.value),
1323
1325
  className: l.value === n.blockType ? void 0 : "pl-11",
1324
1326
  children: l.label
1325
1327
  },
@@ -1330,9 +1332,9 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
1330
1332
  }, Cr = {
1331
1333
  light: "lexical-tb-btn-light",
1332
1334
  dark: "lexical-tb-btn-dark"
1333
- }, ce = C.forwardRef(
1335
+ }, de = C.forwardRef(
1334
1336
  (t, n) => {
1335
- const { Icon: o, active: s = !1, tone: r = "light", className: l, onMouseDown: a, ...i } = t;
1337
+ const { Icon: s, active: o = !1, tone: r = "light", className: l, onMouseDown: a, ...i } = t;
1336
1338
  return /* @__PURE__ */ e(
1337
1339
  "button",
1338
1340
  {
@@ -1344,42 +1346,42 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
1344
1346
  className: f(
1345
1347
  "lexical-tb-btn h-8 w-8",
1346
1348
  Cr[r],
1347
- s && "lexical-tb-btn-active",
1349
+ o && "lexical-tb-btn-active",
1348
1350
  l
1349
1351
  ),
1350
1352
  ...i,
1351
- children: /* @__PURE__ */ e(o, { className: "h-[18px] w-[18px]" })
1353
+ children: /* @__PURE__ */ e(s, { className: "h-[18px] w-[18px]" })
1352
1354
  }
1353
1355
  );
1354
1356
  }
1355
1357
  ), Ir = () => {
1356
- const [t] = ue(), { state: n, tone: o } = Ne();
1358
+ const [t] = me(), { state: n, tone: s } = Ne();
1357
1359
  return /* @__PURE__ */ d(te, { children: [
1358
1360
  /* @__PURE__ */ e(
1359
- ce,
1361
+ de,
1360
1362
  {
1361
1363
  Icon: Yt,
1362
- tone: o,
1364
+ tone: s,
1363
1365
  active: n.isBold,
1364
1366
  "aria-label": "Bold",
1365
1367
  onClick: () => t.dispatchCommand(je, "bold")
1366
1368
  }
1367
1369
  ),
1368
1370
  /* @__PURE__ */ e(
1369
- ce,
1371
+ de,
1370
1372
  {
1371
1373
  Icon: qt,
1372
- tone: o,
1374
+ tone: s,
1373
1375
  active: n.isItalic,
1374
1376
  "aria-label": "Italic",
1375
1377
  onClick: () => t.dispatchCommand(je, "italic")
1376
1378
  }
1377
1379
  ),
1378
1380
  /* @__PURE__ */ e(
1379
- ce,
1381
+ de,
1380
1382
  {
1381
1383
  Icon: Qt,
1382
- tone: o,
1384
+ tone: s,
1383
1385
  active: n.isUnderline,
1384
1386
  "aria-label": "Underline",
1385
1387
  onClick: () => t.dispatchCommand(je, "underline")
@@ -1387,7 +1389,7 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
1387
1389
  )
1388
1390
  ] });
1389
1391
  }, Rr = () => {
1390
- const [t] = ue(), { state: n, tone: o } = Ne(), s = () => {
1392
+ const [t] = me(), { state: n, tone: s } = Ne(), o = () => {
1391
1393
  t.dispatchCommand(
1392
1394
  n.isUnorderedList ? pt : zn,
1393
1395
  void 0
@@ -1400,20 +1402,20 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
1400
1402
  };
1401
1403
  return /* @__PURE__ */ d(te, { children: [
1402
1404
  /* @__PURE__ */ e(
1403
- ce,
1405
+ de,
1404
1406
  {
1405
1407
  Icon: Ye,
1406
- tone: o,
1408
+ tone: s,
1407
1409
  active: n.isUnorderedList,
1408
1410
  "aria-label": "Bullet list",
1409
- onClick: s
1411
+ onClick: o
1410
1412
  }
1411
1413
  ),
1412
1414
  /* @__PURE__ */ e(
1413
- ce,
1415
+ de,
1414
1416
  {
1415
1417
  Icon: Zt,
1416
- tone: o,
1418
+ tone: s,
1417
1419
  active: n.isOrderedList,
1418
1420
  "aria-label": "Numbered list",
1419
1421
  onClick: r
@@ -1421,7 +1423,7 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
1421
1423
  )
1422
1424
  ] });
1423
1425
  }, Sr = () => {
1424
- const [t] = ue(), { state: n, tone: o } = Ne(), s = () => {
1426
+ const [t] = me(), { state: n, tone: s } = Ne(), o = () => {
1425
1427
  if (n.isLink) {
1426
1428
  t.dispatchCommand(bt, null);
1427
1429
  return;
@@ -1430,33 +1432,33 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
1430
1432
  r && t.dispatchCommand(bt, r);
1431
1433
  };
1432
1434
  return /* @__PURE__ */ e(
1433
- ce,
1435
+ de,
1434
1436
  {
1435
1437
  Icon: en,
1436
- tone: o,
1438
+ tone: s,
1437
1439
  active: n.isLink,
1438
1440
  "aria-label": "Link",
1439
- onClick: s
1441
+ onClick: o
1440
1442
  }
1441
1443
  );
1442
1444
  }, Dr = () => {
1443
- const [t] = ue(), { state: n, tone: o } = Ne();
1445
+ const [t] = me(), { state: n, tone: s } = Ne();
1444
1446
  return /* @__PURE__ */ d(te, { children: [
1445
1447
  /* @__PURE__ */ e(
1446
- ce,
1448
+ de,
1447
1449
  {
1448
1450
  Icon: tn,
1449
- tone: o,
1451
+ tone: s,
1450
1452
  disabled: !n.canUndo,
1451
1453
  "aria-label": "Undo",
1452
1454
  onClick: () => t.dispatchCommand(Fn, void 0)
1453
1455
  }
1454
1456
  ),
1455
1457
  /* @__PURE__ */ e(
1456
- ce,
1458
+ de,
1457
1459
  {
1458
1460
  Icon: nn,
1459
- tone: o,
1461
+ tone: s,
1460
1462
  disabled: !n.canRedo,
1461
1463
  "aria-label": "Redo",
1462
1464
  onClick: () => t.dispatchCommand(Bn, void 0)
@@ -1467,25 +1469,25 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
1467
1469
  light: "lexical-tb-divider-light",
1468
1470
  dark: "lexical-tb-divider-dark"
1469
1471
  }, Je = (t) => {
1470
- const { tone: n, className: o } = t, { tone: s, orientation: r } = Ne();
1472
+ const { tone: n, className: s } = t, { tone: o, orientation: r } = Ne();
1471
1473
  return /* @__PURE__ */ e(
1472
1474
  "div",
1473
1475
  {
1474
1476
  className: f(
1475
1477
  r === "vertical" ? "h-px w-full my-1" : "w-px h-5 my-auto mx-1",
1476
1478
  "shrink-0",
1477
- Or[n ?? s],
1478
- o
1479
+ Or[n ?? o],
1480
+ s
1479
1481
  )
1480
1482
  }
1481
1483
  );
1482
1484
  }, kt = 4, zr = 36, _t = (t) => {
1483
1485
  const n = [];
1484
- return C.Children.forEach(t, (o) => {
1485
- C.isValidElement(o) && o.type === C.Fragment ? n.push(..._t(o.props.children)) : n.push(o);
1486
+ return C.Children.forEach(t, (s) => {
1487
+ C.isValidElement(s) && s.type === C.Fragment ? n.push(..._t(s.props.children)) : n.push(s);
1486
1488
  }), n;
1487
1489
  }, jt = (t) => {
1488
- const { children: n } = t, { state: o, tone: s } = Ne(), r = _t(n), l = Ce(null), a = Ce(null), [i, c] = W(r.length), g = Le(() => {
1490
+ const { children: n } = t, { state: s, tone: o } = Ne(), r = _t(n), l = Ce(null), a = Ce(null), [i, c] = W(r.length), g = Le(() => {
1489
1491
  const h = l.current, b = a.current;
1490
1492
  if (!h || !b) return;
1491
1493
  const p = h.clientWidth, m = Array.from(b.children).map((R) => R.offsetWidth);
@@ -1539,12 +1541,12 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
1539
1541
  onMouseDown: (h) => h.preventDefault(),
1540
1542
  className: f(
1541
1543
  "lexical-tb-btn h-8 w-8 shrink-0",
1542
- s === "dark" ? "lexical-tb-btn-dark" : "lexical-tb-btn-light"
1544
+ o === "dark" ? "lexical-tb-btn-dark" : "lexical-tb-btn-light"
1543
1545
  ),
1544
1546
  children: /* @__PURE__ */ e(rn, { className: "h-[18px] w-[18px]" })
1545
1547
  }
1546
1548
  ),
1547
- children: /* @__PURE__ */ e(Ae.Provider, { value: { state: o, tone: "light", orientation: "vertical" }, children: /* @__PURE__ */ e(
1549
+ children: /* @__PURE__ */ e(Ae.Provider, { value: { state: s, tone: "light", orientation: "vertical" }, children: /* @__PURE__ */ e(
1548
1550
  "div",
1549
1551
  {
1550
1552
  className: "flex flex-col items-stretch gap-1",
@@ -1567,19 +1569,19 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
1567
1569
  /* @__PURE__ */ e(Je, {}),
1568
1570
  /* @__PURE__ */ e(Dr, {})
1569
1571
  ] }), Rl = () => ut(), Tr = (t) => {
1570
- const { render: n, className: o } = t, [s] = ue(), r = Ht();
1572
+ const { render: n, className: s } = t, [o] = me(), r = Ht();
1571
1573
  return /* @__PURE__ */ e(Ae.Provider, { value: { state: r, tone: "light" }, children: /* @__PURE__ */ e(
1572
1574
  "div",
1573
1575
  {
1574
1576
  className: f(
1575
1577
  "lexical-toolbar flex flex-row items-center p-1.5",
1576
- o
1578
+ s
1577
1579
  ),
1578
- children: /* @__PURE__ */ e(jt, { children: n ? n({ editor: s, state: r, tone: "light" }) : ut() })
1580
+ children: /* @__PURE__ */ e(jt, { children: n ? n({ editor: o, state: r, tone: "light" }) : ut() })
1579
1581
  }
1580
1582
  ) });
1581
1583
  }, Lr = (t) => {
1582
- const { render: n } = t, [o] = ue(), s = Ht(), [r, l] = W(!1), { refs: a, floatingStyles: i } = at({
1584
+ const { render: n } = t, [s] = me(), o = Ht(), [r, l] = W(!1), { refs: a, floatingStyles: i } = at({
1583
1585
  placement: "top-start",
1584
1586
  strategy: "fixed",
1585
1587
  middleware: [
@@ -1594,18 +1596,18 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
1594
1596
  ],
1595
1597
  whileElementsMounted: it
1596
1598
  });
1597
- return _(() => o.registerRootListener((c) => a.setReference(c ?? null)), [o, a]), _(() => Lt(
1598
- o.registerCommand(
1599
+ return _(() => s.registerRootListener((c) => a.setReference(c ?? null)), [s, a]), _(() => Lt(
1600
+ s.registerCommand(
1599
1601
  An,
1600
1602
  () => (l(!0), !1),
1601
1603
  Pe
1602
1604
  ),
1603
- o.registerCommand(
1605
+ s.registerCommand(
1604
1606
  Un,
1605
1607
  () => (l(!1), !1),
1606
1608
  Pe
1607
1609
  )
1608
- ), [o]), /* @__PURE__ */ e(Ae.Provider, { value: { state: s, tone: "dark" }, children: /* @__PURE__ */ e(Fe, { children: /* @__PURE__ */ e(De, { children: r && /* @__PURE__ */ e("div", { ref: a.setFloating, style: i, className: "z-50", children: /* @__PURE__ */ e(
1610
+ ), [s]), /* @__PURE__ */ e(Ae.Provider, { value: { state: o, tone: "dark" }, children: /* @__PURE__ */ e(Fe, { children: /* @__PURE__ */ e(De, { children: r && /* @__PURE__ */ e("div", { ref: a.setFloating, style: i, className: "z-50", children: /* @__PURE__ */ e(
1609
1611
  J.div,
1610
1612
  {
1611
1613
  className: "lexical-floating-toolbar flex w-full flex-row items-center p-1 rounded-xl",
@@ -1613,14 +1615,14 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
1613
1615
  animate: { opacity: 1, y: 0 },
1614
1616
  exit: { opacity: 0, y: 4 },
1615
1617
  transition: { duration: 0.1, ease: "easeInOut" },
1616
- children: /* @__PURE__ */ e(jt, { children: n ? n({ editor: o, state: s, tone: "dark" }) : ut() })
1618
+ children: /* @__PURE__ */ e(jt, { children: n ? n({ editor: s, state: o, tone: "dark" }) : ut() })
1617
1619
  }
1618
1620
  ) }) }) }) });
1619
1621
  }, Sl = (t) => {
1620
1622
  const {
1621
1623
  label: n,
1622
- description: o,
1623
- error: s,
1624
+ description: s,
1625
+ error: o,
1624
1626
  placeholder: r,
1625
1627
  value: l,
1626
1628
  onChange: a,
@@ -1654,7 +1656,7 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
1654
1656
  a?.(JSON.stringify(z.toJSON()));
1655
1657
  },
1656
1658
  [a]
1657
- ), D = Y[i], T = !!s, B = (z) => `calc(${z} * 1lh + 1.5rem)`, P = h ? { minHeight: B(x), maxHeight: w ? B(w) : void 0 } : { height: B(x) };
1659
+ ), D = Y[i], T = !!o, B = (z) => `calc(${z} * 1lh + 1.5rem)`, P = h ? { minHeight: B(x), maxHeight: w ? B(w) : void 0 } : { height: B(x) };
1658
1660
  return /* @__PURE__ */ e(Q.Provider, { value: i, children: /* @__PURE__ */ d("div", { className: f("flex flex-col", I), children: [
1659
1661
  /* @__PURE__ */ e(q, { children: n }),
1660
1662
  /* @__PURE__ */ e(pn, { initialConfig: R, children: /* @__PURE__ */ d(
@@ -1703,14 +1705,14 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
1703
1705
  ]
1704
1706
  }
1705
1707
  ) }),
1706
- /* @__PURE__ */ e(V, { children: o }),
1707
- /* @__PURE__ */ e(K, { children: s })
1708
+ /* @__PURE__ */ e(V, { children: s }),
1709
+ /* @__PURE__ */ e(K, { children: o })
1708
1710
  ] }) });
1709
1711
  }, Dl = (t) => {
1710
1712
  const {
1711
1713
  className: n,
1712
- label: o,
1713
- description: s,
1714
+ label: s,
1715
+ description: o,
1714
1716
  options: r,
1715
1717
  error: l,
1716
1718
  size: a = "md",
@@ -1724,7 +1726,7 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
1724
1726
  n
1725
1727
  ),
1726
1728
  children: [
1727
- /* @__PURE__ */ e(q, { children: o }),
1729
+ /* @__PURE__ */ e(q, { children: s }),
1728
1730
  /* @__PURE__ */ d("div", { className: "relative flex w-full flex-col", children: [
1729
1731
  /* @__PURE__ */ e(
1730
1732
  "select",
@@ -1733,8 +1735,8 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
1733
1735
  "appearance-none border input-base bg-none transition-all duration-150 rounded-xl shadow-sm ring-0 focus:ring-4 focus:outline-none",
1734
1736
  ne[a],
1735
1737
  Y[a],
1736
- me[a],
1737
- fe[a]
1738
+ fe[a],
1739
+ he[a]
1738
1740
  ),
1739
1741
  ...i,
1740
1742
  children: r && r.map((c, g) => /* @__PURE__ */ e(
@@ -1748,20 +1750,20 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
1748
1750
  ))
1749
1751
  }
1750
1752
  ),
1751
- /* @__PURE__ */ d(he, { children: [
1753
+ /* @__PURE__ */ d(pe, { children: [
1752
1754
  l && /* @__PURE__ */ e(re, {}),
1753
1755
  /* @__PURE__ */ e(Z, { Icon: ve })
1754
1756
  ] })
1755
1757
  ] }),
1756
- /* @__PURE__ */ e(V, { children: s }),
1758
+ /* @__PURE__ */ e(V, { children: o }),
1757
1759
  /* @__PURE__ */ e(K, { children: l })
1758
1760
  ]
1759
1761
  }
1760
1762
  ) });
1761
1763
  }, We = C.forwardRef((t, n) => {
1762
1764
  const {
1763
- children: o,
1764
- onClick: s,
1765
+ children: s,
1766
+ onClick: o,
1765
1767
  selected: r,
1766
1768
  disabled: l = !1,
1767
1769
  active: a = !1,
@@ -1773,7 +1775,7 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
1773
1775
  {
1774
1776
  ref: n,
1775
1777
  ...c,
1776
- onClick: () => !l && s && s(),
1778
+ onClick: () => !l && o && o(),
1777
1779
  className: f(
1778
1780
  "option-base px-4 py-2 rounded-xl cursor-pointer transition-all duration-150 select-none flex flex-row gap-3 items-center",
1779
1781
  r && !l && "option-selected",
@@ -1782,13 +1784,13 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
1782
1784
  i
1783
1785
  ),
1784
1786
  children: [
1785
- /* @__PURE__ */ e("div", { className: "flex-1 min-w-0 break-all line-clamp-1", children: o }),
1787
+ /* @__PURE__ */ e("div", { className: "flex-1 min-w-0 break-all line-clamp-1", children: s }),
1786
1788
  r && !l && /* @__PURE__ */ e("div", { className: "shrink-0", children: /* @__PURE__ */ e(St, { className: "h-5 w-5" }) })
1787
1789
  ]
1788
1790
  }
1789
1791
  );
1790
1792
  }), He = C.forwardRef((t, n) => {
1791
- const { children: o, className: s, ...r } = t;
1793
+ const { children: s, className: o, ...r } = t;
1792
1794
  return /* @__PURE__ */ e(
1793
1795
  "div",
1794
1796
  {
@@ -1796,29 +1798,29 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
1796
1798
  ...r,
1797
1799
  className: f(
1798
1800
  "option-group-header px-4 pt-3 pb-1 text-xs font-semibold uppercase tracking-wide select-none",
1799
- s
1801
+ o
1800
1802
  ),
1801
- children: o
1803
+ children: s
1802
1804
  }
1803
1805
  );
1804
1806
  }), $e = C.forwardRef((t, n) => {
1805
- const { className: o, ...s } = t;
1807
+ const { className: s, ...o } = t;
1806
1808
  return /* @__PURE__ */ e(
1807
1809
  "div",
1808
1810
  {
1809
1811
  ref: n,
1810
- ...s,
1812
+ ...o,
1811
1813
  className: f(
1812
1814
  "option-divider my-1 h-px",
1813
- o
1815
+ s
1814
1816
  )
1815
1817
  }
1816
1818
  );
1817
1819
  }), H = (t) => !("kind" in t), G = (t, n) => t === n ? !0 : t == null || n == null || typeof t != "object" || typeof n != "object" ? !1 : JSON.stringify(t) === JSON.stringify(n), _e = (t) => {
1818
1820
  const {
1819
1821
  placement: n = "bottom",
1820
- onOutsideClick: o,
1821
- fullWidth: s,
1822
+ onOutsideClick: s,
1823
+ fullWidth: o,
1822
1824
  minWidth: r,
1823
1825
  maxWidth: l,
1824
1826
  open: a,
@@ -1833,10 +1835,10 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
1833
1835
  ot({ padding: 8 }),
1834
1836
  st({
1835
1837
  apply({ rects: P, elements: z }) {
1836
- s && (z.floating.style.width = `${P.reference.width}px`), r && (z.floating.style.minWidth = `${r}px`), l && (z.floating.style.maxWidth = `${l}px`);
1838
+ o && (z.floating.style.width = `${P.reference.width}px`), r && (z.floating.style.minWidth = `${r}px`), l && (z.floating.style.maxWidth = `${l}px`);
1837
1839
  }
1838
1840
  })
1839
- ], [s, l, r]), { refs: p, floatingStyles: m, context: v, placement: u } = at({
1841
+ ], [o, l, r]), { refs: p, floatingStyles: m, context: v, placement: u } = at({
1840
1842
  placement: n,
1841
1843
  open: a,
1842
1844
  onOpenChange: i,
@@ -1851,14 +1853,14 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
1851
1853
  focusItemOnOpen: !1,
1852
1854
  disabledIndices: h
1853
1855
  }), { getReferenceProps: R, getFloatingProps: y, getItemProps: D } = fn([I]), T = C.useRef({
1854
- onOutsideClick: o,
1856
+ onOutsideClick: s,
1855
1857
  floatingStyles: m,
1856
1858
  setFloating: p.setFloating,
1857
1859
  placement: n,
1858
1860
  getFloatingProps: y
1859
1861
  });
1860
1862
  T.current = {
1861
- onOutsideClick: o,
1863
+ onOutsideClick: s,
1862
1864
  floatingStyles: m,
1863
1865
  setFloating: p.setFloating,
1864
1866
  placement: u,
@@ -1892,8 +1894,8 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
1892
1894
  }, Pr = (t) => {
1893
1895
  const {
1894
1896
  className: n,
1895
- label: o,
1896
- description: s,
1897
+ label: s,
1898
+ description: o,
1897
1899
  options: r,
1898
1900
  onChange: l,
1899
1901
  value: a,
@@ -1943,7 +1945,7 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
1943
1945
  n
1944
1946
  ),
1945
1947
  children: [
1946
- /* @__PURE__ */ e(q, { children: o }),
1948
+ /* @__PURE__ */ e(q, { children: s }),
1947
1949
  /* @__PURE__ */ d("div", { className: "relative flex w-full flex-col", ref: D, children: [
1948
1950
  /* @__PURE__ */ d(
1949
1951
  "div",
@@ -1964,8 +1966,8 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
1964
1966
  "flex flex-row items-center border select-trigger transition-all duration-150 rounded-xl shadow-sm ring-0 focus:ring-4 focus:outline-none select-none",
1965
1967
  ne[x],
1966
1968
  Y[x],
1967
- me[x],
1968
- h && a ? Be[x] : fe[x],
1969
+ fe[x],
1970
+ h && a ? Be[x] : he[x],
1969
1971
  w ? "select-trigger-disabled" : g && "select-trigger-error",
1970
1972
  !w && b && "ring-4"
1971
1973
  ),
@@ -1975,9 +1977,9 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
1975
1977
  ]
1976
1978
  }
1977
1979
  ),
1978
- /* @__PURE__ */ d(he, { children: [
1980
+ /* @__PURE__ */ d(pe, { children: [
1979
1981
  !w && g && /* @__PURE__ */ e(re, {}),
1980
- h && !!a && !w && /* @__PURE__ */ e(Z, { Icon: de, onClick: () => l(null) }),
1982
+ h && !!a && !w && /* @__PURE__ */ e(Z, { Icon: ue, onClick: () => l(null) }),
1981
1983
  /* @__PURE__ */ e(Z, { Icon: ve })
1982
1984
  ] }),
1983
1985
  /* @__PURE__ */ e(T, { open: b, children: /* @__PURE__ */ e(xe, { className: "!p-0", style: { maxHeight: c }, children: /* @__PURE__ */ e("div", { className: "flex flex-col p-2 gap-1", children: r.map((N, k) => {
@@ -2019,7 +2021,7 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
2019
2021
  );
2020
2022
  }) }) }) })
2021
2023
  ] }),
2022
- /* @__PURE__ */ e(V, { children: s }),
2024
+ /* @__PURE__ */ e(V, { children: o }),
2023
2025
  /* @__PURE__ */ e(K, { children: g })
2024
2026
  ]
2025
2027
  }
@@ -2027,8 +2029,8 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
2027
2029
  }, Ol = (t) => {
2028
2030
  const {
2029
2031
  className: n,
2030
- label: o,
2031
- description: s,
2032
+ label: s,
2033
+ description: o,
2032
2034
  options: r,
2033
2035
  onChange: l,
2034
2036
  onSearch: a,
@@ -2085,7 +2087,7 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
2085
2087
  n
2086
2088
  ),
2087
2089
  children: [
2088
- /* @__PURE__ */ e(q, { children: o }),
2090
+ /* @__PURE__ */ e(q, { children: s }),
2089
2091
  /* @__PURE__ */ d("div", { className: "relative flex w-full flex-col", ref: A, children: [
2090
2092
  /* @__PURE__ */ d(
2091
2093
  "div",
@@ -2106,8 +2108,8 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
2106
2108
  "flex flex-row items-center border select-trigger transition-all duration-150 rounded-xl shadow-sm ring-0 focus:ring-4 focus:outline-none select-none",
2107
2109
  ne[w],
2108
2110
  Y[w],
2109
- me[w],
2110
- b && i ? Be[w] : fe[w],
2111
+ fe[w],
2112
+ b && i ? Be[w] : he[w],
2111
2113
  h ? "select-trigger-disabled" : x && "select-trigger-error",
2112
2114
  !h && p && "ring-4"
2113
2115
  ),
@@ -2117,9 +2119,9 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
2117
2119
  ]
2118
2120
  }
2119
2121
  ),
2120
- /* @__PURE__ */ d(he, { children: [
2122
+ /* @__PURE__ */ d(pe, { children: [
2121
2123
  !h && x && /* @__PURE__ */ e(re, {}),
2122
- b && !!i && !h && /* @__PURE__ */ e(Z, { Icon: de, onClick: () => l(null) }),
2124
+ b && !!i && !h && /* @__PURE__ */ e(Z, { Icon: ue, onClick: () => l(null) }),
2123
2125
  /* @__PURE__ */ e(Z, { Icon: ve })
2124
2126
  ] }),
2125
2127
  /* @__PURE__ */ e(O, { open: p, children: /* @__PURE__ */ d(xe, { className: "gap-0 !p-0", style: { maxHeight: g }, children: [
@@ -2183,26 +2185,26 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
2183
2185
  ] })
2184
2186
  ] }) })
2185
2187
  ] }),
2186
- /* @__PURE__ */ e(V, { children: s }),
2188
+ /* @__PURE__ */ e(V, { children: o }),
2187
2189
  /* @__PURE__ */ e(K, { children: x })
2188
2190
  ]
2189
2191
  }
2190
2192
  ) });
2191
2193
  }, Er = (t, n) => {
2192
- const [o, s] = W(t);
2194
+ const [s, o] = W(t);
2193
2195
  return _(() => {
2194
2196
  const r = setTimeout(() => {
2195
- s(t);
2197
+ o(t);
2196
2198
  }, n);
2197
2199
  return () => {
2198
2200
  clearTimeout(r);
2199
2201
  };
2200
- }, [t, n]), o;
2202
+ }, [t, n]), s;
2201
2203
  }, zl = (t) => {
2202
2204
  const {
2203
2205
  className: n,
2204
- label: o,
2205
- description: s,
2206
+ label: s,
2207
+ description: o,
2206
2208
  onChange: r,
2207
2209
  fetchOptionsByQuery: l,
2208
2210
  fetchOptionByValue: a,
@@ -2267,7 +2269,7 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
2267
2269
  n
2268
2270
  ),
2269
2271
  children: [
2270
- /* @__PURE__ */ e(q, { children: o }),
2272
+ /* @__PURE__ */ e(q, { children: s }),
2271
2273
  /* @__PURE__ */ d("div", { className: "relative flex w-full flex-col", ref: L, children: [
2272
2274
  /* @__PURE__ */ d(
2273
2275
  "div",
@@ -2288,8 +2290,8 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
2288
2290
  "flex flex-row items-center border select-trigger transition-all duration-150 rounded-xl shadow-sm ring-0 focus:ring-4 focus:outline-none select-none",
2289
2291
  ne[h],
2290
2292
  Y[h],
2291
- me[h],
2292
- p && c ? Be[h] : fe[h],
2293
+ fe[h],
2294
+ p && c ? Be[h] : he[h],
2293
2295
  b ? "select-trigger-disabled" : w && "select-trigger-error",
2294
2296
  !b && m && "ring-4"
2295
2297
  ),
@@ -2300,9 +2302,9 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
2300
2302
  ]
2301
2303
  }
2302
2304
  ),
2303
- /* @__PURE__ */ d(he, { children: [
2305
+ /* @__PURE__ */ d(pe, { children: [
2304
2306
  !b && w && /* @__PURE__ */ e(re, {}),
2305
- p && !!c && !b && /* @__PURE__ */ e(Z, { Icon: de, onClick: () => r(null) }),
2307
+ p && !!c && !b && /* @__PURE__ */ e(Z, { Icon: ue, onClick: () => r(null) }),
2306
2308
  /* @__PURE__ */ e(Z, { Icon: ve })
2307
2309
  ] }),
2308
2310
  /* @__PURE__ */ e(U, { open: m, children: /* @__PURE__ */ d(xe, { className: "gap-0 !p-0", style: { maxHeight: x }, children: [
@@ -2331,8 +2333,8 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
2331
2333
  return M.kind === "header" ? /* @__PURE__ */ e(
2332
2334
  He,
2333
2335
  {
2334
- ref: (pe) => {
2335
- j.current[F] = pe;
2336
+ ref: (ge) => {
2337
+ j.current[F] = ge;
2336
2338
  },
2337
2339
  children: M.label
2338
2340
  },
@@ -2340,8 +2342,8 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
2340
2342
  ) : /* @__PURE__ */ e(
2341
2343
  $e,
2342
2344
  {
2343
- ref: (pe) => {
2344
- j.current[F] = pe;
2345
+ ref: (ge) => {
2346
+ j.current[F] = ge;
2345
2347
  }
2346
2348
  },
2347
2349
  `divider-${F}`
@@ -2351,8 +2353,8 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
2351
2353
  We,
2352
2354
  {
2353
2355
  ...ee({
2354
- ref(pe) {
2355
- j.current[F] = pe;
2356
+ ref(ge) {
2357
+ j.current[F] = ge;
2356
2358
  }
2357
2359
  }),
2358
2360
  onClick: () => Oe(F),
@@ -2367,7 +2369,7 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
2367
2369
  ] })
2368
2370
  ] }) })
2369
2371
  ] }),
2370
- /* @__PURE__ */ e(V, { children: s }),
2372
+ /* @__PURE__ */ e(V, { children: o }),
2371
2373
  /* @__PURE__ */ e(K, { children: w })
2372
2374
  ]
2373
2375
  }
@@ -2399,8 +2401,8 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
2399
2401
  black: "bg-[var(--color-badge-black-bg)] text-[var(--color-badge-black-text)] ring-[var(--color-badge-black-ring)]"
2400
2402
  }, Ee = C.forwardRef((t, n) => {
2401
2403
  const {
2402
- className: o,
2403
- children: s,
2404
+ className: s,
2405
+ children: o,
2404
2406
  onClick: r,
2405
2407
  showCloseIcon: l,
2406
2408
  Icon: a,
@@ -2408,7 +2410,7 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
2408
2410
  } = t, c = f(
2409
2411
  "inline-flex align-top items-center gap-2 px-3 h-7 rounded-lg font-semibold",
2410
2412
  Mr[i],
2411
- o
2413
+ s
2412
2414
  );
2413
2415
  return r ? /* @__PURE__ */ e("div", { ref: n, children: /* @__PURE__ */ d(
2414
2416
  "button",
@@ -2417,9 +2419,9 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
2417
2419
  onClick: r,
2418
2420
  children: [
2419
2421
  a && /* @__PURE__ */ e(a, { className: "h-4 w-4 shrink-0" }),
2420
- /* @__PURE__ */ e("div", { className: "break-all line-clamp-1 text-left", children: s }),
2422
+ /* @__PURE__ */ e("div", { className: "break-all line-clamp-1 text-left", children: o }),
2421
2423
  l && /* @__PURE__ */ e(
2422
- de,
2424
+ ue,
2423
2425
  {
2424
2426
  className: "h-4 w-4 shrink-0"
2425
2427
  }
@@ -2428,14 +2430,14 @@ const f = (...t) => t.filter(Boolean).join(" "), Hn = [
2428
2430
  }
2429
2431
  ) }) : /* @__PURE__ */ d("div", { className: c, ref: n, children: [
2430
2432
  a && /* @__PURE__ */ e(a, { className: "h-4 w-4 shrink-0" }),
2431
- /* @__PURE__ */ e("div", { className: "break-all line-clamp-1 text-left", children: s })
2433
+ /* @__PURE__ */ e("div", { className: "break-all line-clamp-1 text-left", children: o })
2432
2434
  ] });
2433
2435
  });
2434
2436
  function Fr(t) {
2435
2437
  const {
2436
2438
  enabled: n,
2437
- triggerRef: o,
2438
- measureRef: s,
2439
+ triggerRef: s,
2440
+ measureRef: o,
2439
2441
  trayRef: r,
2440
2442
  itemCount: l,
2441
2443
  deps: a = [],
@@ -2443,7 +2445,7 @@ function Fr(t) {
2443
2445
  } = t, [c, g] = W(0);
2444
2446
  return Rt(() => {
2445
2447
  if (!n) return;
2446
- const x = o.current, w = s.current;
2448
+ const x = s.current, w = o.current;
2447
2449
  if (!x || !w) return;
2448
2450
  const h = () => {
2449
2451
  if (l === 0) {
@@ -2485,8 +2487,8 @@ function Fr(t) {
2485
2487
  const Tl = (t) => {
2486
2488
  const {
2487
2489
  className: n,
2488
- label: o,
2489
- description: s,
2490
+ label: s,
2491
+ description: o,
2490
2492
  options: r,
2491
2493
  onChange: l,
2492
2494
  onSearch: a,
@@ -2550,7 +2552,7 @@ const Tl = (t) => {
2550
2552
  }, ze = (S) => {
2551
2553
  const E = j[S];
2552
2554
  E && H(E) && !E.disabled && Oe(E.value);
2553
- }, M = j.some((S) => H(S)), F = i.length > 0, ae = h ? oe : O.length, pe = O.slice(0, ae), mt = O.length - ae;
2555
+ }, M = j.some((S) => H(S)), F = i.length > 0, ae = h ? oe : O.length, ge = O.slice(0, ae), mt = O.length - ae;
2554
2556
  return /* @__PURE__ */ e(Q.Provider, { value: w, children: /* @__PURE__ */ d(
2555
2557
  "div",
2556
2558
  {
@@ -2559,7 +2561,7 @@ const Tl = (t) => {
2559
2561
  n
2560
2562
  ),
2561
2563
  children: [
2562
- /* @__PURE__ */ e(q, { children: o }),
2564
+ /* @__PURE__ */ e(q, { children: s }),
2563
2565
  /* @__PURE__ */ d("div", { className: "relative flex w-full flex-col", ref: L, children: [
2564
2566
  /* @__PURE__ */ d(
2565
2567
  "div",
@@ -2581,13 +2583,13 @@ const Tl = (t) => {
2581
2583
  h && f("flex-nowrap overflow-hidden", ne[w]),
2582
2584
  !h && f("flex-wrap py-1.5", Pt[w]),
2583
2585
  Y[w],
2584
- me[w],
2585
- m && F ? Be[w] : fe[w],
2586
+ fe[w],
2587
+ m && F ? Be[w] : he[w],
2586
2588
  p ? "select-trigger-disabled" : x && "select-trigger-error",
2587
2589
  !p && v && "ring-4"
2588
2590
  ),
2589
2591
  children: [
2590
- F && pe.map((S, E) => /* @__PURE__ */ e(
2592
+ F && ge.map((S, E) => /* @__PURE__ */ e(
2591
2593
  Ee,
2592
2594
  {
2593
2595
  color: b,
@@ -2624,9 +2626,9 @@ const Tl = (t) => {
2624
2626
  ]
2625
2627
  }
2626
2628
  ),
2627
- /* @__PURE__ */ d(he, { ref: A, children: [
2629
+ /* @__PURE__ */ d(pe, { ref: A, children: [
2628
2630
  !p && x && /* @__PURE__ */ e(re, {}),
2629
- m && F && !p && /* @__PURE__ */ e(Z, { Icon: de, onClick: () => l([]) }),
2631
+ m && F && !p && /* @__PURE__ */ e(Z, { Icon: ue, onClick: () => l([]) }),
2630
2632
  /* @__PURE__ */ e(Z, { Icon: ve })
2631
2633
  ] }),
2632
2634
  /* @__PURE__ */ e(U, { open: v, children: /* @__PURE__ */ d(xe, { className: "gap-0 !p-0", style: { maxHeight: g }, children: [
@@ -2654,8 +2656,8 @@ const Tl = (t) => {
2654
2656
  return S.kind === "header" ? /* @__PURE__ */ e(
2655
2657
  He,
2656
2658
  {
2657
- ref: (ge) => {
2658
- N.current[E] = ge;
2659
+ ref: (be) => {
2660
+ N.current[E] = be;
2659
2661
  },
2660
2662
  children: S.label
2661
2663
  },
@@ -2663,19 +2665,19 @@ const Tl = (t) => {
2663
2665
  ) : /* @__PURE__ */ e(
2664
2666
  $e,
2665
2667
  {
2666
- ref: (ge) => {
2667
- N.current[E] = ge;
2668
+ ref: (be) => {
2669
+ N.current[E] = be;
2668
2670
  }
2669
2671
  },
2670
2672
  `divider-${E}`
2671
2673
  );
2672
- const Ie = i.some((ge) => G(ge, S.value));
2674
+ const Ie = i.some((be) => G(be, S.value));
2673
2675
  return /* @__PURE__ */ e(
2674
2676
  We,
2675
2677
  {
2676
2678
  ...ee({
2677
- ref(ge) {
2678
- N.current[E] = ge;
2679
+ ref(be) {
2680
+ N.current[E] = be;
2679
2681
  }
2680
2682
  }),
2681
2683
  onClick: () => ze(E),
@@ -2690,15 +2692,15 @@ const Tl = (t) => {
2690
2692
  ] })
2691
2693
  ] }) })
2692
2694
  ] }),
2693
- /* @__PURE__ */ e(V, { children: s }),
2695
+ /* @__PURE__ */ e(V, { children: o }),
2694
2696
  /* @__PURE__ */ e(K, { children: x })
2695
2697
  ]
2696
2698
  }
2697
2699
  ) });
2698
2700
  }, Ll = C.forwardRef((t, n) => {
2699
2701
  const {
2700
- className: o,
2701
- children: s,
2702
+ className: s,
2703
+ children: o,
2702
2704
  ...r
2703
2705
  } = t;
2704
2706
  return /* @__PURE__ */ e(
@@ -2707,16 +2709,16 @@ const Tl = (t) => {
2707
2709
  ref: n,
2708
2710
  className: f(
2709
2711
  "flex flex-col gap-6 border panel-base rounded-2xl shadow-sm px-6 py-6",
2710
- o
2712
+ s
2711
2713
  ),
2712
2714
  ...r,
2713
- children: s
2715
+ children: o
2714
2716
  }
2715
2717
  );
2716
2718
  }), Pl = C.forwardRef((t, n) => {
2717
2719
  const {
2718
- className: o,
2719
- children: s,
2720
+ className: s,
2721
+ children: o,
2720
2722
  ...r
2721
2723
  } = t;
2722
2724
  return /* @__PURE__ */ e(
@@ -2725,17 +2727,17 @@ const Tl = (t) => {
2725
2727
  ref: n,
2726
2728
  className: f(
2727
2729
  "flex flex-col gap-1 border panel-base rounded-2xl shadow-sm p-2",
2728
- o
2730
+ s
2729
2731
  ),
2730
2732
  ...r,
2731
- children: s
2733
+ children: o
2732
2734
  }
2733
2735
  );
2734
2736
  }), yt = "input-description text-sm font-medium", El = (t) => {
2735
2737
  const {
2736
2738
  className: n,
2737
- label: o,
2738
- children: s,
2739
+ label: s,
2740
+ children: o,
2739
2741
  orientation: r = "vertical",
2740
2742
  ...l
2741
2743
  } = t;
@@ -2748,8 +2750,8 @@ const Tl = (t) => {
2748
2750
  ),
2749
2751
  ...l,
2750
2752
  children: [
2751
- /* @__PURE__ */ e("div", { className: f(yt, "w-1/2 line-clamp-1 break-all"), children: o }),
2752
- /* @__PURE__ */ e("div", { className: "w-1/2 line-clamp-1 break-all", children: s })
2753
+ /* @__PURE__ */ e("div", { className: f(yt, "w-1/2 line-clamp-1 break-all"), children: s }),
2754
+ /* @__PURE__ */ e("div", { className: "w-1/2 line-clamp-1 break-all", children: o })
2753
2755
  ]
2754
2756
  }
2755
2757
  ) : /* @__PURE__ */ d(
@@ -2761,8 +2763,8 @@ const Tl = (t) => {
2761
2763
  ),
2762
2764
  ...l,
2763
2765
  children: [
2764
- o && /* @__PURE__ */ e("div", { className: yt, children: o }),
2765
- /* @__PURE__ */ e("div", { children: s })
2766
+ s && /* @__PURE__ */ e("div", { className: yt, children: s }),
2767
+ /* @__PURE__ */ e("div", { children: o })
2766
2768
  ]
2767
2769
  }
2768
2770
  );
@@ -2779,14 +2781,14 @@ const Tl = (t) => {
2779
2781
  }, Ct = "inline-flex flex-row gap-3 items-center justify-between h-10 px-3 font-semibold ring-0 dropdown-item rounded-lg cursor-pointer transition-all duration-150 select-none focus:outline-none focus:ring-0 border border-transparent bg-transparent", Ml = (t) => {
2780
2782
  const {
2781
2783
  className: n,
2782
- children: o,
2783
- Icon: s,
2784
+ children: s,
2785
+ Icon: o,
2784
2786
  status: r,
2785
2787
  ...l
2786
2788
  } = t, a = r ? Br[r] : null, i = /* @__PURE__ */ d(te, { children: [
2787
2789
  /* @__PURE__ */ d("span", { className: "inline-flex flex-row items-center gap-3 min-w-0", children: [
2788
- s && /* @__PURE__ */ e(s, { className: "h-5 w-5 shrink-0" }),
2789
- /* @__PURE__ */ e("span", { className: "truncate", children: o })
2790
+ o && /* @__PURE__ */ e(o, { className: "h-5 w-5 shrink-0" }),
2791
+ /* @__PURE__ */ e("span", { className: "truncate", children: s })
2790
2792
  ] }),
2791
2793
  /* @__PURE__ */ d("span", { className: "inline-flex flex-row items-center gap-2 shrink-0", children: [
2792
2794
  a && r && /* @__PURE__ */ e(a, { className: f("h-5 w-5", Ar[r]) }),
@@ -2816,24 +2818,24 @@ const Tl = (t) => {
2816
2818
  }, Fl = (t) => {
2817
2819
  const {
2818
2820
  className: n,
2819
- vertical: o = !1,
2820
- ...s
2821
+ vertical: s = !1,
2822
+ ...o
2821
2823
  } = t;
2822
2824
  return /* @__PURE__ */ e(
2823
2825
  "div",
2824
2826
  {
2825
2827
  className: f(
2826
- o ? "w-px h-full bg-[var(--color-divider)]" : "w-full h-px bg-[var(--color-divider)]",
2828
+ s ? "w-px h-full bg-[var(--color-divider)]" : "w-full h-px bg-[var(--color-divider)]",
2827
2829
  n
2828
2830
  ),
2829
- ...s
2831
+ ...o
2830
2832
  }
2831
2833
  );
2832
2834
  }, Bl = (t) => {
2833
2835
  const {
2834
2836
  children: n,
2835
- content: o,
2836
- className: s,
2837
+ content: s,
2838
+ className: o,
2837
2839
  placement: r = "top",
2838
2840
  minWidth: l = 100,
2839
2841
  maxWidth: a = 200
@@ -2846,27 +2848,27 @@ const Tl = (t) => {
2846
2848
  "span",
2847
2849
  {
2848
2850
  ref: g,
2849
- className: s,
2851
+ className: o,
2850
2852
  onMouseEnter: () => c(!0),
2851
2853
  onMouseLeave: () => c(!1),
2852
2854
  children: [
2853
2855
  n,
2854
- /* @__PURE__ */ e(x, { open: i, children: /* @__PURE__ */ e(xe, { children: o }) })
2856
+ /* @__PURE__ */ e(x, { open: i, children: /* @__PURE__ */ e(xe, { children: s }) })
2855
2857
  ]
2856
2858
  }
2857
2859
  );
2858
2860
  }, Al = (t) => {
2859
2861
  const {
2860
2862
  open: n,
2861
- onDismiss: o,
2862
- enableDismissOnOutsideClick: s,
2863
+ onDismiss: s,
2864
+ enableDismissOnOutsideClick: o,
2863
2865
  enableDismissOnEscKey: r,
2864
2866
  enableDismissButton: l,
2865
2867
  className: a,
2866
2868
  children: i,
2867
2869
  maxWidth: c = 600
2868
2870
  } = t;
2869
- return we(!!r && n, o || (() => {
2871
+ return we(!!r && n, s || (() => {
2870
2872
  })), /* @__PURE__ */ e(De, { children: n && /* @__PURE__ */ d(Fe, { children: [
2871
2873
  /* @__PURE__ */ e(
2872
2874
  J.div,
@@ -2881,7 +2883,7 @@ const Tl = (t) => {
2881
2883
  rt,
2882
2884
  {
2883
2885
  className: "modal-overlay backdrop-blur-[1px]",
2884
- onClick: s ? o : void 0,
2886
+ onClick: o ? s : void 0,
2885
2887
  lockScroll: !0
2886
2888
  }
2887
2889
  )
@@ -2903,11 +2905,11 @@ const Tl = (t) => {
2903
2905
  l && /* @__PURE__ */ e(
2904
2906
  Bt,
2905
2907
  {
2906
- Icon: de,
2908
+ Icon: ue,
2907
2909
  className: "absolute top-4 right-4",
2908
2910
  variant: "transparent",
2909
2911
  size: "sm",
2910
- onClick: o
2912
+ onClick: s
2911
2913
  }
2912
2914
  ),
2913
2915
  i
@@ -2918,15 +2920,15 @@ const Tl = (t) => {
2918
2920
  }, Ul = (t) => {
2919
2921
  const {
2920
2922
  open: n,
2921
- onDismiss: o,
2922
- enableDismissOnOutsideClick: s,
2923
+ onDismiss: s,
2924
+ enableDismissOnOutsideClick: o,
2923
2925
  enableDismissOnEscKey: r,
2924
2926
  enableDismissButton: l,
2925
2927
  className: a,
2926
2928
  children: i,
2927
2929
  maxWidth: c = 480
2928
2930
  } = t;
2929
- return we(!!r && n, o || (() => {
2931
+ return we(!!r && n, s || (() => {
2930
2932
  })), /* @__PURE__ */ e(De, { children: n && /* @__PURE__ */ d(Fe, { children: [
2931
2933
  /* @__PURE__ */ e(
2932
2934
  J.div,
@@ -2941,7 +2943,7 @@ const Tl = (t) => {
2941
2943
  rt,
2942
2944
  {
2943
2945
  className: "modal-overlay backdrop-blur-[1px]",
2944
- onClick: s ? o : void 0,
2946
+ onClick: o ? s : void 0,
2945
2947
  lockScroll: !0
2946
2948
  }
2947
2949
  )
@@ -2963,11 +2965,11 @@ const Tl = (t) => {
2963
2965
  l && /* @__PURE__ */ e(
2964
2966
  Bt,
2965
2967
  {
2966
- Icon: de,
2968
+ Icon: ue,
2967
2969
  className: "absolute top-4 right-4",
2968
2970
  variant: "transparent",
2969
2971
  size: "sm",
2970
- onClick: o
2972
+ onClick: s
2971
2973
  }
2972
2974
  ),
2973
2975
  i
@@ -2978,24 +2980,24 @@ const Tl = (t) => {
2978
2980
  }, Ur = (t) => {
2979
2981
  const {
2980
2982
  className: n,
2981
- tabs: o
2983
+ tabs: s
2982
2984
  } = t;
2983
2985
  return /* @__PURE__ */ e("div", { className: f(
2984
2986
  "h-12 tab-container p-1 rounded-xl inline-flex flex-row space-x-1 overflow-x-auto mat-ui-hide-scrollbars",
2985
2987
  n
2986
- ), children: o.map((s, r) => {
2988
+ ), children: s.map((o, r) => {
2987
2989
  const l = f(
2988
2990
  "shrink-0 px-4 h-full inline-flex flex-row items-center font-semibold rounded-xl cursor-pointer border border-transparent ing-0 tab-button transition-all duration-150 select-none focus:outline-none focus:ring-0",
2989
- s.active && "tab-button-active shadow-sm"
2991
+ o.active && "tab-button-active shadow-sm"
2990
2992
  );
2991
- return s.href ? /* @__PURE__ */ d(
2993
+ return o.href ? /* @__PURE__ */ d(
2992
2994
  "a",
2993
2995
  {
2994
- href: s.href,
2996
+ href: o.href,
2995
2997
  className: l,
2996
2998
  children: [
2997
- s.Icon && /* @__PURE__ */ e(s.Icon, { className: "h-5 w-5 shrink-0 mr-2 -ml-1" }),
2998
- s.label
2999
+ o.Icon && /* @__PURE__ */ e(o.Icon, { className: "h-5 w-5 shrink-0 mr-2 -ml-1" }),
3000
+ o.label
2999
3001
  ]
3000
3002
  },
3001
3003
  r
@@ -3003,10 +3005,10 @@ const Tl = (t) => {
3003
3005
  "button",
3004
3006
  {
3005
3007
  className: l,
3006
- onClick: s.onClick,
3008
+ onClick: o.onClick,
3007
3009
  children: [
3008
- s.Icon && /* @__PURE__ */ e(s.Icon, { className: "h-5 w-5 shrink-0 mr-2 -ml-1" }),
3009
- s.label
3010
+ o.Icon && /* @__PURE__ */ e(o.Icon, { className: "h-5 w-5 shrink-0 mr-2 -ml-1" }),
3011
+ o.label
3010
3012
  ]
3011
3013
  },
3012
3014
  r
@@ -3015,8 +3017,8 @@ const Tl = (t) => {
3015
3017
  }, Wl = (t) => {
3016
3018
  const {
3017
3019
  duration: n = 0.3,
3018
- ease: o = "easeInOut",
3019
- horizontal: s = !1,
3020
+ ease: s = "easeInOut",
3021
+ horizontal: o = !1,
3020
3022
  children: r,
3021
3023
  className: l,
3022
3024
  ...a
@@ -3026,17 +3028,17 @@ const Tl = (t) => {
3026
3028
  if (!x || !w) return;
3027
3029
  let h = !0;
3028
3030
  const b = () => {
3029
- const m = s ? x.scrollWidth - x.clientWidth : x.scrollHeight - x.clientHeight, v = s ? x.scrollLeft : x.scrollTop;
3031
+ const m = o ? x.scrollWidth - x.clientWidth : x.scrollHeight - x.clientHeight, v = o ? x.scrollLeft : x.scrollTop;
3030
3032
  if (!(m <= 0 || Math.abs(m - v) < 1)) {
3031
3033
  if (h) {
3032
- h = !1, s ? x.scrollLeft = m : x.scrollTop = m;
3034
+ h = !1, o ? x.scrollLeft = m : x.scrollTop = m;
3033
3035
  return;
3034
3036
  }
3035
3037
  g.current?.stop(), g.current = Xt(v, m, {
3036
3038
  duration: n,
3037
- ease: o,
3039
+ ease: s,
3038
3040
  onUpdate: (u) => {
3039
- s ? x.scrollLeft = u : x.scrollTop = u;
3041
+ o ? x.scrollLeft = u : x.scrollTop = u;
3040
3042
  }
3041
3043
  });
3042
3044
  }
@@ -3044,13 +3046,13 @@ const Tl = (t) => {
3044
3046
  return p.observe(w), () => {
3045
3047
  p.disconnect(), g.current?.stop();
3046
3048
  };
3047
- }, [n, o, s]), /* @__PURE__ */ e(
3049
+ }, [n, s, o]), /* @__PURE__ */ e(
3048
3050
  "div",
3049
3051
  {
3050
3052
  ref: i,
3051
3053
  className: f(
3052
3054
  "min-h-0 min-w-0",
3053
- s ? "overflow-x-auto" : "overflow-y-auto",
3055
+ o ? "overflow-x-auto" : "overflow-y-auto",
3054
3056
  l
3055
3057
  ),
3056
3058
  ...a,
@@ -3061,14 +3063,14 @@ const Tl = (t) => {
3061
3063
  function Wr(t) {
3062
3064
  const {
3063
3065
  onDelta: n,
3064
- onDragStart: o,
3065
- onDragEnd: s,
3066
+ onDragStart: s,
3067
+ onDragEnd: o,
3066
3068
  disabled: r = !1,
3067
3069
  primaryButtonOnly: l = !0,
3068
3070
  preventScrollOnMove: a = !0
3069
- } = t, [i, c] = C.useState(!1), g = C.useRef(!1), x = C.useRef(0), w = C.useRef(0), h = C.useRef(0), b = C.useRef(null), p = C.useRef(null), m = C.useRef({ onDelta: n, onDragStart: o, onDragEnd: s, preventScrollOnMove: a });
3071
+ } = t, [i, c] = C.useState(!1), g = C.useRef(!1), x = C.useRef(0), w = C.useRef(0), h = C.useRef(0), b = C.useRef(null), p = C.useRef(null), m = C.useRef({ onDelta: n, onDragStart: s, onDragEnd: o, preventScrollOnMove: a });
3070
3072
  C.useEffect(() => {
3071
- m.current = { onDelta: n, onDragStart: o, onDragEnd: s, preventScrollOnMove: a };
3073
+ m.current = { onDelta: n, onDragStart: s, onDragEnd: o, preventScrollOnMove: a };
3072
3074
  });
3073
3075
  const v = C.useRef({}), u = C.useCallback((R) => {
3074
3076
  if (!g.current) return;
@@ -3129,8 +3131,8 @@ function Wr(t) {
3129
3131
  const Hr = (t) => {
3130
3132
  const {
3131
3133
  column: n,
3132
- width: o,
3133
- height: s,
3134
+ width: s,
3135
+ height: o,
3134
3136
  onResize: r,
3135
3137
  sortDirection: l,
3136
3138
  onSortClick: a
@@ -3140,7 +3142,7 @@ const Hr = (t) => {
3140
3142
  return /* @__PURE__ */ d(
3141
3143
  "div",
3142
3144
  {
3143
- style: { width: o, height: s },
3145
+ style: { width: s, height: o },
3144
3146
  className: "flex flex-row items-stretch select-none shrink-0",
3145
3147
  children: [
3146
3148
  /* @__PURE__ */ d(
@@ -3176,14 +3178,14 @@ const Hr = (t) => {
3176
3178
  );
3177
3179
  }, ye = 200, $r = 60, _r = (t) => {
3178
3180
  const n = {};
3179
- for (const o of t)
3180
- n[o.id] = o.defaultWidth ?? ye;
3181
+ for (const s of t)
3182
+ n[s.id] = s.defaultWidth ?? ye;
3181
3183
  return n;
3182
3184
  }, jr = (t) => {
3183
3185
  const {
3184
3186
  columns: n,
3185
- rows: o,
3186
- getRowId: s,
3187
+ rows: s,
3188
+ getRowId: o,
3187
3189
  onRowClick: r,
3188
3190
  sort: l,
3189
3191
  onSortChange: a,
@@ -3261,7 +3263,7 @@ const Hr = (t) => {
3261
3263
  {
3262
3264
  className: "flex flex-col",
3263
3265
  style: { width: p, minWidth: "100%" },
3264
- children: o.map((u, I) => /* @__PURE__ */ e(
3266
+ children: s.map((u, I) => /* @__PURE__ */ e(
3265
3267
  "div",
3266
3268
  {
3267
3269
  className: f(
@@ -3282,7 +3284,7 @@ const Hr = (t) => {
3282
3284
  R.id
3283
3285
  ))
3284
3286
  },
3285
- s(u, I)
3287
+ o(u, I)
3286
3288
  ))
3287
3289
  }
3288
3290
  )
@@ -3290,10 +3292,10 @@ const Hr = (t) => {
3290
3292
  )
3291
3293
  ] });
3292
3294
  }, It = (t) => {
3293
- const { label: n, children: o, className: s } = t;
3294
- return /* @__PURE__ */ d("div", { className: f("flex flex-col dropdown-button-group", s), children: [
3295
+ const { label: n, children: s, className: o } = t;
3296
+ return /* @__PURE__ */ d("div", { className: f("flex flex-col dropdown-button-group", o), children: [
3295
3297
  n && /* @__PURE__ */ e("div", { className: "mb-2 text-sm dropdown-group-label font-semibold px-3", children: n }),
3296
- o
3298
+ s
3297
3299
  ] });
3298
3300
  }, Xr = () => /* @__PURE__ */ e("div", {}), Vr = [
3299
3301
  { id: 1, email: "sarah.jennings@example.com", firstname: "Sarah", lastname: "Jennings", status: "active" },
@@ -3424,7 +3426,7 @@ export {
3424
3426
  Il as InputFileMultiple,
3425
3427
  Cl as InputFileSingle,
3426
3428
  Z as InputIconButton,
3427
- he as InputIconButtonTray,
3429
+ pe as InputIconButtonTray,
3428
3430
  q as InputLabel,
3429
3431
  Sl as InputLexical,
3430
3432
  xl as InputPassword,
@@ -3448,7 +3450,7 @@ export {
3448
3450
  Sr as LexicalLinkButton,
3449
3451
  Rr as LexicalListButtons,
3450
3452
  Tr as LexicalToolbar,
3451
- ce as LexicalToolbarButton,
3453
+ de as LexicalToolbarButton,
3452
3454
  Je as LexicalToolbarDivider,
3453
3455
  jt as LexicalToolbarItems,
3454
3456
  Al as Modal,