@noxickon/onyx 0.0.3 → 0.0.4-dev.3

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.
Files changed (40) hide show
  1. package/dist/chunks/Button-D-v4l8ZE.js +20 -0
  2. package/dist/chunks/{Button-BV4_pmoH.js → Button-bARrxYyo.js} +120 -121
  3. package/dist/chunks/Input-CLi1H63d.js +1 -0
  4. package/dist/chunks/{Input-BraK4lDE.js → Input-dfvmdIHi.js} +38 -38
  5. package/dist/chunks/errorHelper--G-SWQzN.js +18 -0
  6. package/dist/chunks/errorHelper-DaP_XxEx.js +1 -0
  7. package/dist/chunks/formatTimestamp-CMxOnPo1.js +12 -0
  8. package/dist/chunks/formatTimestamp-TTsNcy7u.js +1 -0
  9. package/dist/chunks/{index-DnVdNmco.js → useAuth-DDRXztKj.js} +240 -178
  10. package/dist/chunks/{index-DGjVEo0G.js → useAuth-DPnpY3XC.js} +18 -9
  11. package/dist/chunks/{useForm-BAbY8X4X.js → useForm-D4co95Vn.js} +785 -801
  12. package/dist/chunks/useForm-DUviJ7xS.js +18 -0
  13. package/dist/chunks/useQuery-BvCyJMae.js +2065 -0
  14. package/dist/chunks/useQuery-DTNHO7so.js +3 -0
  15. package/dist/context/context.cjs.js +1 -1
  16. package/dist/context/context.es.js +1 -1
  17. package/dist/context.d.ts +1 -0
  18. package/dist/hooks/hooks.cjs.js +6 -6
  19. package/dist/hooks/hooks.es.js +117 -118
  20. package/dist/index.css +1 -1
  21. package/dist/index.d.ts +18 -0
  22. package/dist/layout/layout.cjs.js +1 -1
  23. package/dist/layout/layout.es.js +1 -1
  24. package/dist/onyx.cjs.js +1 -1
  25. package/dist/onyx.es.js +425 -386
  26. package/dist/pages/pages.cjs.js +9 -3
  27. package/dist/pages/pages.es.js +35 -25
  28. package/dist/utils/utils.cjs.js +1 -0
  29. package/dist/utils/utils.es.js +8 -0
  30. package/dist/utils.d.ts +29 -0
  31. package/package.json +31 -26
  32. package/dist/chunks/Button-CU-zvMVL.js +0 -20
  33. package/dist/chunks/Input-C5dK8VSu.js +0 -1
  34. package/dist/chunks/index-Dgwp7JKP.js +0 -601
  35. package/dist/chunks/index-rUH_mzKt.js +0 -2
  36. package/dist/chunks/useAuth-BwjRd05B.js +0 -10
  37. package/dist/chunks/useAuth-CR3bAGqp.js +0 -61
  38. package/dist/chunks/useForm-cxgyAiOs.js +0 -26
  39. package/dist/chunks/useQuery--6GP2-dN.js +0 -2
  40. package/dist/chunks/useQuery-mFRa2XuW.js +0 -1481
package/dist/onyx.es.js CHANGED
@@ -1,73 +1,74 @@
1
1
  import { j as e } from "./chunks/jsx-runtime--oOP9f8K.js";
2
- import _, { useState as S, useEffect as H, useId as J, useRef as ee, useCallback as ne, createContext as le, useContext as ae } from "react";
3
- import { t as b, b as $, a as T, O as oe } from "./chunks/Button-BV4_pmoH.js";
4
- import { c as te, d as se, b as re } from "./chunks/Input-BraK4lDE.js";
5
- import { O as pt, a as gt } from "./chunks/Input-BraK4lDE.js";
6
- import { createPortal as ie } from "react-dom";
2
+ import U, { useState as S, useEffect as V, useId as G, useRef as ee, useCallback as oe, createContext as ae, useContext as ie } from "react";
3
+ import { t as b, b as $, a as B, O as le } from "./chunks/Button-bARrxYyo.js";
4
+ import { c as te, d as se, b as re } from "./chunks/Input-dfvmdIHi.js";
5
+ import { O as wt, a as jt } from "./chunks/Input-dfvmdIHi.js";
6
+ import { createPortal as ce } from "react-dom";
7
7
  import { M as pe } from "./chunks/constants-CDXq37n6.js";
8
- import { u as ce } from "./chunks/useAuth-CR3bAGqp.js";
9
- import './index.css';const Re = ({ children: t, className: s }) => /* @__PURE__ */ e.jsx("div", { className: b("flex items-center gap-3", s), children: t }), X = {
8
+ import { f as ge } from "./chunks/formatTimestamp-CMxOnPo1.js";
9
+ import { u as de } from "./chunks/useAuth-DDRXztKj.js";
10
+ import './index.css';const tt = ({ children: t, className: s }) => /* @__PURE__ */ e.jsx("div", { className: b("flex items-center gap-3", s), children: t }), Q = {
10
11
  rounded: "rounded-full",
11
12
  square: "rounded-lg"
12
- }, Z = {
13
+ }, X = {
13
14
  sm: "h-6 w-6",
14
15
  md: "h-8 w-8",
15
16
  lg: "h-10 w-10",
16
17
  xl: "h-12 w-12",
17
18
  "2xl": "h-16 w-16"
18
- }, ge = {
19
+ }, ve = {
19
20
  sm: "h-2 w-2",
20
21
  md: "h-2.5 w-2.5",
21
22
  lg: "h-3 w-3",
22
23
  xl: "h-3.5 w-3.5",
23
24
  "2xl": "h-4 w-4"
24
- }, ve = {
25
+ }, we = {
25
26
  online: "bg-green-500",
26
27
  offline: "bg-neutral-500",
27
28
  away: "bg-yellow-500",
28
29
  busy: "bg-red-500"
29
- }, we = {
30
+ }, je = {
30
31
  sm: "text-xs",
31
32
  md: "text-sm",
32
33
  lg: "text-base",
33
34
  xl: "text-base",
34
35
  "2xl": "text-lg"
35
- }, je = ({
36
+ }, ye = ({
36
37
  alt: t,
37
38
  className: s,
38
39
  fallback: n,
39
40
  showStatus: o = !1,
40
41
  size: r = "md",
41
42
  skeleton: i = !1,
42
- src: l,
43
- status: a,
43
+ src: a,
44
+ status: l,
44
45
  type: u = "square"
45
46
  }) => {
46
- const [v, x] = S(!1), [m, h] = S(!1), [f, p] = S(!0);
47
- H(() => {
48
- if (!l) {
49
- x(!1), h(!0), p(!1);
47
+ const [h, d] = S(!1), [m, p] = S(!1), [f, g] = S(!0);
48
+ V(() => {
49
+ if (!a) {
50
+ d(!1), p(!0), g(!1);
50
51
  return;
51
52
  }
52
- p(!0);
53
+ g(!0);
53
54
  const y = new Image();
54
- y.src = l;
55
+ y.src = a;
55
56
  const k = () => {
56
- x(!0), h(!1), p(!1);
57
+ d(!0), p(!1), g(!1);
57
58
  }, c = () => {
58
- x(!1), h(!0), p(!1);
59
+ d(!1), p(!0), g(!1);
59
60
  };
60
61
  return y.addEventListener("load", k), y.addEventListener("error", c), () => {
61
62
  y.removeEventListener("load", k), y.removeEventListener("error", c);
62
63
  };
63
- }, [l]);
64
- const j = () => f && i ? /* @__PURE__ */ e.jsx("div", { className: $("animate-pulse bg-zinc-800", X[u], Z[r]) }) : v && !m ? /* @__PURE__ */ e.jsx(
64
+ }, [a]);
65
+ const j = () => f && i ? /* @__PURE__ */ e.jsx("div", { className: $("animate-pulse bg-zinc-800", Q[u], X[r]) }) : h && !m ? /* @__PURE__ */ e.jsx(
65
66
  "img",
66
67
  {
67
68
  alt: t,
68
- className: b(X[u], Z[r], "object-cover", s),
69
+ className: b(Q[u], X[r], "object-cover", s),
69
70
  loading: "lazy",
70
- src: l
71
+ src: a
71
72
  }
72
73
  ) : /* @__PURE__ */ e.jsx(
73
74
  "div",
@@ -75,9 +76,9 @@ import './index.css';const Re = ({ children: t, className: s }) => /* @__PURE__
75
76
  "aria-label": t,
76
77
  className: b(
77
78
  "flex items-center justify-center bg-zinc-800 font-medium text-white",
78
- X[u],
79
- Z[r],
80
- we[r],
79
+ Q[u],
80
+ X[r],
81
+ je[r],
81
82
  s
82
83
  ),
83
84
  role: "img",
@@ -86,20 +87,20 @@ import './index.css';const Re = ({ children: t, className: s }) => /* @__PURE__
86
87
  );
87
88
  return /* @__PURE__ */ e.jsxs("div", { className: "relative shrink-0", children: [
88
89
  j(),
89
- o && a && /* @__PURE__ */ e.jsx(
90
+ o && l && /* @__PURE__ */ e.jsx(
90
91
  "span",
91
92
  {
92
- "aria-label": `Status: ${a}`,
93
+ "aria-label": `Status: ${l}`,
93
94
  className: $(
94
95
  "absolute right-0 bottom-0 rounded-full border-2 border-zinc-900",
95
- ge[r],
96
- ve[a]
96
+ ve[r],
97
+ we[l]
97
98
  ),
98
99
  role: "status"
99
100
  }
100
101
  )
101
102
  ] });
102
- }, et = ({
103
+ }, st = ({
103
104
  className: t,
104
105
  size: s = "md",
105
106
  subtext: n,
@@ -122,11 +123,11 @@ import './index.css';const Re = ({ children: t, className: s }) => /* @__PURE__
122
123
  /* @__PURE__ */ e.jsx("span", { className: $("block truncate font-medium text-white", r[s]), children: o }),
123
124
  n && /* @__PURE__ */ e.jsx("span", { className: $("block truncate text-neutral-400", i[s]), children: n })
124
125
  ] });
125
- }, ye = {
126
+ }, Ne = {
126
127
  sm: "px-1 py-0.5 text-xs",
127
128
  md: "px-1.5 py-0.5 text-sm",
128
129
  lg: "px-2 py-1 text-base"
129
- }, Ne = {
130
+ }, ke = {
130
131
  purple: "bg-purple-500/25 text-purple-400",
131
132
  lime: "bg-lime-400/10 text-lime-300",
132
133
  red: "bg-red-500/25 text-red-400",
@@ -144,13 +145,13 @@ import './index.css';const Re = ({ children: t, className: s }) => /* @__PURE__
144
145
  fuchsia: "bg-fuchsia-500/25 text-fuchsia-400",
145
146
  gray: "bg-gray-500/25 text-gray-400"
146
147
  };
147
- function ke(t) {
148
+ function Ce(t) {
148
149
  const s = t.startsWith("#") ? t.substring(1) : t;
149
150
  if (!/^[0-9A-Fa-f]{3,6}$/.test(s)) return "#FFFFFF";
150
151
  const o = parseInt(s.length === 3 ? s[0] + s[0] : s.substr(0, 2), 16), r = parseInt(s.length === 3 ? s[1] + s[1] : s.substr(2, 2), 16), i = parseInt(s.length === 3 ? s[2] + s[2] : s.substr(4, 2), 16);
151
152
  return (0.299 * o + 0.587 * r + 0.114 * i) / 255 > 0.5 ? "#000000" : "#FFFFFF";
152
153
  }
153
- const G = ({
154
+ const q = ({
154
155
  bgColor: t,
155
156
  children: s,
156
157
  className: n,
@@ -158,30 +159,30 @@ const G = ({
158
159
  size: r = "md",
159
160
  textColor: i
160
161
  }) => {
161
- const l = !t && !i ? Ne[o] : "", a = {};
162
- return t && (a.backgroundColor = t, i || (a.color = ke(t))), i && (a.color = i), /* @__PURE__ */ e.jsx(
162
+ const a = !t && !i ? ke[o] : "", l = {};
163
+ return t && (l.backgroundColor = t, i || (l.color = Ce(t))), i && (l.color = i), /* @__PURE__ */ e.jsx(
163
164
  "span",
164
165
  {
165
166
  className: b(
166
167
  "inline-flex items-center rounded-md font-medium",
167
- ye[r],
168
- l,
168
+ Ne[r],
169
+ a,
169
170
  n
170
171
  ),
171
- style: Object.keys(a).length ? a : void 0,
172
+ style: Object.keys(l).length ? l : void 0,
172
173
  children: s
173
174
  }
174
175
  );
175
- }, Ce = {
176
+ }, Oe = {
176
177
  default: "bg-zinc-900/90 border border-zinc-800",
177
178
  outline: "bg-transparent border border-zinc-700",
178
179
  gradient: "bg-gradient-to-br from-zinc-900 via-purple-900/20 to-zinc-900 border border-purple-800/30"
179
- }, Oe = {
180
+ }, ze = {
180
181
  none: "p-0",
181
182
  sm: "p-3",
182
183
  md: "p-4",
183
184
  lg: "p-6"
184
- }, ze = {
185
+ }, Ee = {
185
186
  none: "",
186
187
  lift: "hover:scale-[1.01] hover:-translate-y-1",
187
188
  glow: "hover:shadow-lg hover:shadow-purple-500/10",
@@ -195,7 +196,7 @@ const G = ({
195
196
  amber: "hover:border-amber-500/50",
196
197
  cyan: "hover:border-cyan-500/50",
197
198
  indigo: "hover:border-indigo-500/50"
198
- }, Ee = {
199
+ }, Le = {
199
200
  purple: "from-purple-500/5 to-pink-500/5",
200
201
  blue: "from-blue-500/5 to-cyan-500/5",
201
202
  emerald: "from-emerald-500/5 to-teal-500/5",
@@ -204,41 +205,41 @@ const G = ({
204
205
  amber: "from-amber-500/5 to-orange-500/5",
205
206
  cyan: "from-cyan-500/5 to-blue-500/5",
206
207
  indigo: "from-indigo-500/5 to-purple-500/5"
207
- }, tt = ({
208
+ }, rt = ({
208
209
  backdropBlur: t = !1,
209
210
  children: s,
210
211
  className: n,
211
212
  color: o = "purple",
212
213
  equalHeight: r = !1,
213
214
  hoverVariant: i = "lift",
214
- hoverable: l = !1,
215
- padding: a = "md",
215
+ hoverable: a = !1,
216
+ padding: l = "md",
216
217
  variant: u = "default",
217
- ...v
218
+ ...h
218
219
  }) => {
219
- const x = l ? i : "none", m = l && x !== "none";
220
+ const d = a ? i : "none", m = a && d !== "none";
220
221
  return /* @__PURE__ */ e.jsxs(
221
222
  "div",
222
223
  {
223
224
  className: b(
224
225
  "relative overflow-hidden rounded-lg transition-all duration-300",
225
- Ce[u],
226
- Oe[a],
226
+ Oe[u],
227
+ ze[l],
227
228
  r && "flex flex-col",
228
229
  t && "backdrop-blur-sm",
229
- m && ze[x],
230
+ m && Ee[d],
230
231
  m && "group hover:bg-white/5",
231
232
  m && Ie[o],
232
233
  n
233
234
  ),
234
- ...v,
235
+ ...h,
235
236
  children: [
236
237
  m && /* @__PURE__ */ e.jsx(
237
238
  "div",
238
239
  {
239
240
  className: b(
240
241
  "absolute inset-0 bg-gradient-to-br opacity-0 transition-opacity duration-300 group-hover:opacity-100",
241
- Ee[o]
242
+ Le[o]
242
243
  )
243
244
  }
244
245
  ),
@@ -246,7 +247,7 @@ const G = ({
246
247
  ]
247
248
  }
248
249
  );
249
- }, Le = {
250
+ }, Fe = {
250
251
  purple: {
251
252
  border: "border-purple-500/20",
252
253
  bg: "bg-purple-500/10",
@@ -287,36 +288,36 @@ const G = ({
287
288
  bg: "bg-indigo-500/10",
288
289
  text: "text-indigo-400"
289
290
  }
290
- }, st = ({
291
+ }, nt = ({
291
292
  action: t,
292
293
  children: s,
293
294
  className: n,
294
295
  color: o = "purple",
295
296
  icon: r,
296
297
  iconColor: i,
297
- subtitle: l,
298
- title: a,
298
+ subtitle: a,
299
+ title: l,
299
300
  ...u
300
301
  }) => {
301
302
  if (s)
302
303
  return /* @__PURE__ */ e.jsx("div", { className: b("mb-4", n), ...u, children: s });
303
- const x = Le[i || o];
304
+ const d = Fe[i || o];
304
305
  return /* @__PURE__ */ e.jsxs("div", { className: b("mb-4 flex items-start justify-between gap-3", n), ...u, children: [
305
306
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-3", children: [
306
- r && /* @__PURE__ */ e.jsx("div", { className: b("rounded-lg border p-2", x.border, x.bg), children: /* @__PURE__ */ e.jsx(T, { className: x.text, icon: r }) }),
307
+ r && /* @__PURE__ */ e.jsx("div", { className: b("rounded-lg border p-2", d.border, d.bg), children: /* @__PURE__ */ e.jsx(B, { className: d.text, icon: r }) }),
307
308
  /* @__PURE__ */ e.jsxs("div", { children: [
308
- a && /* @__PURE__ */ e.jsx("h3", { className: "text-base font-semibold text-white", children: a }),
309
- l && /* @__PURE__ */ e.jsx("p", { className: "text-sm text-neutral-400", children: l })
309
+ l && /* @__PURE__ */ e.jsx("h3", { className: "text-base font-semibold text-white", children: l }),
310
+ a && /* @__PURE__ */ e.jsx("p", { className: "text-sm text-neutral-400", children: a })
310
311
  ] })
311
312
  ] }),
312
313
  t && /* @__PURE__ */ e.jsx("div", { children: t })
313
314
  ] });
314
- }, rt = ({
315
+ }, ot = ({
315
316
  children: t,
316
317
  className: s,
317
318
  flexGrow: n = !0,
318
319
  ...o
319
- }) => /* @__PURE__ */ e.jsx("div", { className: b("py-2", n && "flex-grow", s), ...o, children: t }), nt = ({ children: t, className: s, ...n }) => /* @__PURE__ */ e.jsx(
320
+ }) => /* @__PURE__ */ e.jsx("div", { className: b("py-2", n && "flex-grow", s), ...o, children: t }), lt = ({ children: t, className: s, ...n }) => /* @__PURE__ */ e.jsx(
320
321
  "div",
321
322
  {
322
323
  className: b(
@@ -326,37 +327,37 @@ const G = ({
326
327
  ...n,
327
328
  children: t
328
329
  }
329
- ), Fe = {
330
+ ), Se = {
330
331
  sm: "h-4 w-4",
331
332
  md: "h-5 w-5",
332
333
  lg: "h-6 w-6"
333
- }, Se = {
334
+ }, $e = {
334
335
  sm: 0.5,
335
336
  md: 0.7,
336
337
  lg: 0.9
337
- }, ot = ({
338
+ }, at = ({
338
339
  checked: t,
339
340
  className: s,
340
341
  defaultChecked: n,
341
342
  description: o,
342
343
  disabled: r = !1,
343
344
  error: i = !1,
344
- errorMessage: l,
345
- id: a,
345
+ errorMessage: a,
346
+ id: l,
346
347
  label: u,
347
- name: v,
348
- onChange: x,
348
+ name: h,
349
+ onChange: d,
349
350
  required: m = !1,
350
- size: h = "md",
351
+ size: p = "md",
351
352
  value: f,
352
- ...p
353
+ ...g
353
354
  }) => {
354
- const j = J(), y = a || j, k = `${y}-checkbox`, c = `${y}-description`, w = `${y}-error`, N = i && l, E = /* @__PURE__ */ e.jsxs("div", { className: "relative inline-flex shrink-0", children: [
355
+ const j = G(), y = l || j, k = `${y}-checkbox`, c = `${y}-description`, v = `${y}-error`, N = i && a, E = /* @__PURE__ */ e.jsxs("div", { className: "relative inline-flex shrink-0", children: [
355
356
  /* @__PURE__ */ e.jsx(
356
357
  "input",
357
358
  {
358
359
  id: k,
359
- "aria-describedby": [o ? c : "", N ? w : ""].filter(Boolean).join(" ") || void 0,
360
+ "aria-describedby": [o ? c : "", N ? v : ""].filter(Boolean).join(" ") || void 0,
360
361
  "aria-invalid": i,
361
362
  "aria-required": m,
362
363
  checked: t,
@@ -366,24 +367,24 @@ const G = ({
366
367
  "default-outset-focus",
367
368
  "disabled:cursor-not-allowed disabled:opacity-50",
368
369
  i ? "default-error-border" : "default-border",
369
- Fe[h],
370
+ Se[p],
370
371
  s
371
372
  ),
372
373
  defaultChecked: n,
373
374
  disabled: r,
374
- name: v,
375
+ name: h,
375
376
  type: "checkbox",
376
377
  value: f,
377
- onChange: x,
378
- ...p
378
+ onChange: d,
379
+ ...g
379
380
  }
380
381
  ),
381
382
  /* @__PURE__ */ e.jsx(
382
- T,
383
+ B,
383
384
  {
384
385
  className: "pointer-events-none absolute inset-0 m-auto opacity-0 peer-checked:opacity-80",
385
386
  icon: "mdiCheck",
386
- size: Se[h] || 0.7
387
+ size: $e[p] || 0.7
387
388
  }
388
389
  )
389
390
  ] });
@@ -395,108 +396,108 @@ const G = ({
395
396
  o ? /* @__PURE__ */ e.jsx(se, { id: c, disabled: r, children: o }) : null
396
397
  ] })
397
398
  ] }),
398
- N ? /* @__PURE__ */ e.jsx(re, { id: w, children: l }) : null
399
+ N ? /* @__PURE__ */ e.jsx(re, { id: v, children: a }) : null
399
400
  ] });
400
- }, de = ({
401
+ }, ne = ({
401
402
  align: t = "center",
402
403
  ariaHaspopup: s,
403
404
  children: n,
404
405
  className: o,
405
406
  content: r,
406
407
  contentClassName: i,
407
- contentRole: l,
408
- contentStyle: a,
408
+ contentRole: a,
409
+ contentStyle: l,
409
410
  disabled: u = !1,
410
- id: v,
411
- offset: x = 8,
411
+ id: h,
412
+ offset: d = 8,
412
413
  onOpenChange: m,
413
- open: h,
414
+ open: p,
414
415
  portal: f = !0,
415
- position: p = "top",
416
+ position: g = "top",
416
417
  trigger: j = "hover",
417
418
  useAriaControls: y = !1
418
419
  }) => {
419
- const k = J(), [c, w] = S(!1), N = ee(null), E = ee(null), F = h !== void 0, C = u ? !1 : F ? h : c, D = v || k, L = ne(
420
- (d) => {
421
- u || (m == null || m(d), F || w(d));
420
+ const k = G(), [c, v] = S(!1), N = ee(null), E = ee(null), F = p !== void 0, C = u ? !1 : F ? p : c, D = h || k, I = oe(
421
+ (x) => {
422
+ u || (m?.(x), F || v(x));
422
423
  },
423
424
  [u, F, m]
424
- ), W = ne(() => {
425
+ ), W = oe(() => {
425
426
  if (!N.current || !E.current || !C) return;
426
- const d = N.current.getBoundingClientRect(), g = E.current.getBoundingClientRect(), O = {
427
+ const x = N.current.getBoundingClientRect(), w = E.current.getBoundingClientRect(), z = {
427
428
  width: window.innerWidth,
428
429
  height: window.innerHeight
429
430
  };
430
- let z = p;
431
- p === "top" && d.top < g.height + x ? z = "bottom" : p === "bottom" && d.bottom + g.height + x > O.height ? z = "top" : p === "left" && d.left < g.width + x ? z = "right" : p === "right" && d.right + g.width + x > O.width && (z = "left");
432
- const I = P(d, g, z, t, x);
433
- E.current && (E.current.style.left = `${I.x}px`, E.current.style.top = `${I.y}px`);
434
- }, [C, p, t, x]);
435
- H(() => {
431
+ let L = g;
432
+ g === "top" && x.top < w.height + d ? L = "bottom" : g === "bottom" && x.bottom + w.height + d > z.height ? L = "top" : g === "left" && x.left < w.width + d ? L = "right" : g === "right" && x.right + w.width + d > z.width && (L = "left");
433
+ const M = H(x, w, L, t, d);
434
+ E.current && (E.current.style.left = `${M.x}px`, E.current.style.top = `${M.y}px`);
435
+ }, [C, g, t, d]);
436
+ V(() => {
436
437
  if (!C || j !== "click") return;
437
- const d = (g) => {
438
- N.current && !N.current.contains(g.target) && E.current && !E.current.contains(g.target) && L(!1);
438
+ const x = (w) => {
439
+ N.current && !N.current.contains(w.target) && E.current && !E.current.contains(w.target) && I(!1);
439
440
  };
440
- return document.addEventListener("mousedown", d), () => document.removeEventListener("mousedown", d);
441
- }, [C, L, j]), H(() => {
441
+ return document.addEventListener("mousedown", x), () => document.removeEventListener("mousedown", x);
442
+ }, [C, I, j]), V(() => {
442
443
  if (C) {
443
444
  W();
444
- const d = () => W(), g = () => W();
445
- return window.addEventListener("resize", d), window.addEventListener("scroll", g, !0), () => {
446
- window.removeEventListener("resize", d), window.removeEventListener("scroll", g, !0);
445
+ const x = () => W(), w = () => W();
446
+ return window.addEventListener("resize", x), window.addEventListener("scroll", w, !0), () => {
447
+ window.removeEventListener("resize", x), window.removeEventListener("scroll", w, !0);
447
448
  };
448
449
  }
449
- }, [C, p, t, x, W]);
450
- const P = (d, g, O, z, I) => {
451
- let B = 0, M = 0;
452
- switch (O) {
450
+ }, [C, g, t, d, W]);
451
+ const H = (x, w, z, L, M) => {
452
+ let P = 0, T = 0;
453
+ switch (z) {
453
454
  case "top":
454
- B = d.left, M = d.top - g.height - I;
455
+ P = x.left, T = x.top - w.height - M;
455
456
  break;
456
457
  case "bottom":
457
- B = d.left, M = d.bottom + I;
458
+ P = x.left, T = x.bottom + M;
458
459
  break;
459
460
  case "left":
460
- B = d.left - g.width - I, M = d.top;
461
+ P = x.left - w.width - M, T = x.top;
461
462
  break;
462
463
  case "right":
463
- B = d.right + I, M = d.top;
464
+ P = x.right + M, T = x.top;
464
465
  break;
465
466
  }
466
- if (O === "top" || O === "bottom")
467
- switch (z) {
467
+ if (z === "top" || z === "bottom")
468
+ switch (L) {
468
469
  case "start":
469
470
  break;
470
471
  case "center":
471
- B = d.left + (d.width - g.width) / 2;
472
+ P = x.left + (x.width - w.width) / 2;
472
473
  break;
473
474
  case "end":
474
- B = d.right - g.width;
475
+ P = x.right - w.width;
475
476
  break;
476
477
  }
477
- else if (O === "left" || O === "right")
478
- switch (z) {
478
+ else if (z === "left" || z === "right")
479
+ switch (L) {
479
480
  case "start":
480
481
  break;
481
482
  case "center":
482
- M = d.top + (d.height - g.height) / 2;
483
+ T = x.top + (x.height - w.height) / 2;
483
484
  break;
484
485
  case "end":
485
- M = d.bottom - g.height;
486
+ T = x.bottom - w.height;
486
487
  break;
487
488
  }
488
- return { x: B, y: M };
489
- }, V = () => {
490
- j === "hover" && L(!0);
491
- }, Y = () => {
492
- j === "hover" && L(!1);
489
+ return { x: P, y: T };
490
+ }, A = () => {
491
+ j === "hover" && I(!0);
492
+ }, J = () => {
493
+ j === "hover" && I(!1);
493
494
  }, K = () => {
494
- j === "click" && L(!C);
495
- }, q = () => {
496
- j === "focus" && L(!0);
497
- }, Q = () => {
498
- j === "focus" && L(!1);
499
- }, U = C ? /* @__PURE__ */ e.jsx(
495
+ j === "click" && I(!C);
496
+ }, _ = () => {
497
+ j === "focus" && I(!0);
498
+ }, Y = () => {
499
+ j === "focus" && I(!1);
500
+ }, O = C ? /* @__PURE__ */ e.jsx(
500
501
  "div",
501
502
  {
502
503
  id: D,
@@ -507,8 +508,8 @@ const G = ({
507
508
  i
508
509
  ),
509
510
  ref: E,
510
- role: l,
511
- style: { left: -9999, top: -9999, ...a },
511
+ role: a,
512
+ style: { left: -9999, top: -9999, ...l },
512
513
  children: /* @__PURE__ */ e.jsx("div", { className: "relative", children: r })
513
514
  }
514
515
  ) : null;
@@ -522,17 +523,17 @@ const G = ({
522
523
  "aria-haspopup": s,
523
524
  className: b("w-full", o),
524
525
  ref: N,
525
- onBlur: Q,
526
+ onBlur: Y,
526
527
  onClick: K,
527
- onFocus: q,
528
- onMouseEnter: V,
529
- onMouseLeave: Y,
528
+ onFocus: _,
529
+ onMouseEnter: A,
530
+ onMouseLeave: J,
530
531
  children: n
531
532
  }
532
533
  ),
533
- f && typeof document < "u" ? ie(U, document.body) : U
534
+ f && typeof document < "u" ? ce(O, document.body) : O
534
535
  ] });
535
- }, ue = ({ children: t }) => /* @__PURE__ */ e.jsx(e.Fragment, { children: t }), $e = ({ children: t }) => /* @__PURE__ */ e.jsx(e.Fragment, { children: t }), xe = ({ children: t, className: s }) => /* @__PURE__ */ e.jsx(
536
+ }, ue = ({ children: t }) => /* @__PURE__ */ e.jsx(e.Fragment, { children: t }), De = ({ children: t }) => /* @__PURE__ */ e.jsx(e.Fragment, { children: t }), xe = ({ children: t, className: s }) => /* @__PURE__ */ e.jsx(
536
537
  "div",
537
538
  {
538
539
  className: b(
@@ -541,14 +542,14 @@ const G = ({
541
542
  ),
542
543
  children: t
543
544
  }
544
- ), me = le({
545
+ ), me = ae({
545
546
  open: !1,
546
547
  setOpen: () => {
547
548
  },
548
549
  disabled: !1
549
550
  });
550
551
  function fe() {
551
- const t = ae(me);
552
+ const t = ie(me);
552
553
  if (t === void 0)
553
554
  throw new Error("useDropdownContext must be used within a DropdownProvider");
554
555
  return t;
@@ -560,17 +561,17 @@ const be = ({
560
561
  disabled: o = !1,
561
562
  icon: r,
562
563
  outline: i = !1,
563
- unstyled: l = !1,
564
- ...a
564
+ unstyled: a = !1,
565
+ ...l
565
566
  }) => {
566
- const { disabled: u, open: v } = fe(), x = o || u;
567
+ const { disabled: u, open: h } = fe(), d = o || u;
567
568
  return /* @__PURE__ */ e.jsxs(
568
569
  "button",
569
570
  {
570
- "aria-expanded": v,
571
+ "aria-expanded": h,
571
572
  "aria-haspopup": "menu",
572
573
  className: b(
573
- !l && [
574
+ !a && [
574
575
  "flex h-10 items-center justify-between rounded-lg px-3 py-2 text-sm enabled:cursor-pointer enabled:text-white enabled:hover:bg-white/6",
575
576
  "default-outset-focus",
576
577
  i ? "default-border" : "bg-transparent",
@@ -578,18 +579,18 @@ const be = ({
578
579
  ],
579
580
  n
580
581
  ),
581
- disabled: x,
582
+ disabled: d,
582
583
  type: "button",
583
- ...a,
584
+ ...l,
584
585
  children: [
585
- l ? s : /* @__PURE__ */ e.jsx("span", { className: "flex items-center gap-2", children: s }),
586
+ a ? s : /* @__PURE__ */ e.jsx("span", { className: "flex items-center gap-2", children: s }),
586
587
  r && /* @__PURE__ */ e.jsx(
587
- T,
588
+ B,
588
589
  {
589
590
  className: $(
590
- !l && "ml-2",
591
- x && "text-neutral-500",
592
- t && ["transition-transform duration-200", v && "rotate-180"]
591
+ !a && "ml-2",
592
+ d && "text-neutral-500",
593
+ t && ["transition-transform duration-200", h && "rotate-180"]
593
594
  ),
594
595
  icon: r,
595
596
  size: 0.8
@@ -598,7 +599,7 @@ const be = ({
598
599
  ]
599
600
  }
600
601
  );
601
- }, De = ({
602
+ }, We = ({
602
603
  children: t,
603
604
  className: s,
604
605
  defaultOpen: n = !1,
@@ -606,11 +607,11 @@ const be = ({
606
607
  onOpenChange: r,
607
608
  open: i
608
609
  }) => {
609
- const [l, a] = S(n), u = i !== void 0, v = u ? i : l, x = (c) => {
610
- o || (u || a(c), r == null || r(c));
611
- }, m = { open: v, setOpen: x, disabled: o };
612
- let h = null, f = null;
613
- const p = {
610
+ const [a, l] = S(n), u = i !== void 0, h = u ? i : a, d = (c) => {
611
+ o || (u || l(c), r?.(c));
612
+ }, m = { open: h, setOpen: d, disabled: o };
613
+ let p = null, f = null;
614
+ const g = {
614
615
  children: null,
615
616
  className: ""
616
617
  }, j = {
@@ -622,22 +623,22 @@ const be = ({
622
623
  align: "start",
623
624
  className: ""
624
625
  };
625
- _.Children.forEach(t, (c) => {
626
- if (_.isValidElement(c)) {
626
+ U.Children.forEach(t, (c) => {
627
+ if (U.isValidElement(c)) {
627
628
  if (c.type === be)
628
- h = c;
629
+ p = c;
629
630
  else if (c.type === xe) {
630
- const w = c.props;
631
- p.className = w.className, p.children = w.children;
632
- } else if (c.type === $e) {
633
- const w = c.props;
634
- j.className = w.className, j.children = w.children;
631
+ const v = c.props;
632
+ g.className = v.className, g.children = v.children;
633
+ } else if (c.type === De) {
634
+ const v = c.props;
635
+ j.className = v.className, j.children = v.children;
635
636
  } else if (c.type === ue) {
636
- const w = c.props;
637
- f = w.children, y = {
638
- side: w.side || "bottom",
639
- align: w.align || "start",
640
- className: w.className || ""
637
+ const v = c.props;
638
+ f = v.children, y = {
639
+ side: v.side || "bottom",
640
+ align: v.align || "start",
641
+ className: v.className || ""
641
642
  };
642
643
  }
643
644
  }
@@ -652,14 +653,14 @@ const be = ({
652
653
  y.className
653
654
  ),
654
655
  children: [
655
- p.children ? /* @__PURE__ */ e.jsx(
656
+ g.children ? /* @__PURE__ */ e.jsx(
656
657
  "div",
657
658
  {
658
659
  className: b(
659
660
  "flex-shrink-0 border-b border-neutral-700 bg-zinc-1000/95 px-3 py-2 backdrop-blur-sm",
660
- p.className
661
+ g.className
661
662
  ),
662
- children: p.children
663
+ children: g.children
663
664
  }
664
665
  ) : null,
665
666
  /* @__PURE__ */ e.jsx("ul", { className: b("min-h-0 flex-1 overflow-y-auto"), children: f }),
@@ -677,21 +678,21 @@ const be = ({
677
678
  }
678
679
  );
679
680
  return /* @__PURE__ */ e.jsx(me.Provider, { value: m, children: /* @__PURE__ */ e.jsx("div", { className: b("inline-block", s), children: /* @__PURE__ */ e.jsx(
680
- de,
681
+ ne,
681
682
  {
682
683
  align: y.align,
683
684
  content: k,
684
685
  contentRole: "menu",
685
686
  disabled: o,
686
- open: v,
687
+ open: h,
687
688
  portal: !0,
688
689
  position: y.side,
689
690
  trigger: "click",
690
- onOpenChange: x,
691
- children: h
691
+ onOpenChange: d,
692
+ children: p
692
693
  }
693
694
  ) }) });
694
- }, We = ({
695
+ }, Be = ({
695
696
  children: t,
696
697
  className: s,
697
698
  disabled: n = !1,
@@ -699,8 +700,8 @@ const be = ({
699
700
  onClick: r,
700
701
  unstyled: i = !1
701
702
  }) => {
702
- const { setOpen: l } = fe(), a = (u) => {
703
- n || (r && r(u), l(!1));
703
+ const { setOpen: a } = fe(), l = (u) => {
704
+ n || (r && r(u), a(!1));
704
705
  };
705
706
  return /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsxs(
706
707
  "button",
@@ -716,10 +717,10 @@ const be = ({
716
717
  ),
717
718
  disabled: n,
718
719
  role: "menuitem",
719
- onClick: a,
720
+ onClick: l,
720
721
  children: [
721
722
  o && /* @__PURE__ */ e.jsx(
722
- T,
723
+ B,
723
724
  {
724
725
  className: $("mr-2", n && "text-neutral-500"),
725
726
  icon: o,
@@ -730,22 +731,14 @@ const be = ({
730
731
  ]
731
732
  }
732
733
  ) });
733
- }, lt = ({ className: t }) => /* @__PURE__ */ e.jsx("li", { className: "px-1 py-1", children: /* @__PURE__ */ e.jsx("hr", { className: b("border-t-neutral-700", t) }) }), at = ({ children: t, className: s }) => /* @__PURE__ */ e.jsx(
734
+ }, it = ({ className: t }) => /* @__PURE__ */ e.jsx("li", { className: "px-1 py-1", children: /* @__PURE__ */ e.jsx("hr", { className: b("border-t-neutral-700", t) }) }), ct = ({ children: t, className: s }) => /* @__PURE__ */ e.jsx(
734
735
  "span",
735
736
  {
736
737
  className: b("ml-auto text-xs tracking-widest text-neutral-500", s),
737
738
  "data-part": "dropdown-shortcut",
738
739
  children: t
739
740
  }
740
- ), Te = (t) => {
741
- const n = Math.floor(((/* @__PURE__ */ new Date()).getTime() - t.getTime()) / (1e3 * 60));
742
- if (n < 1) return "just now";
743
- if (n < 60) return `${n}m ago`;
744
- const o = Math.floor(n / 60);
745
- if (o < 24) return `${o}h ago`;
746
- const r = Math.floor(o / 24);
747
- return r < 7 ? `${r}d ago` : t.toLocaleDateString();
748
- }, Be = {
741
+ ), Me = {
749
742
  error: {
750
743
  background: "bg-rose-500/20",
751
744
  iconClass: "text-rose-400",
@@ -771,39 +764,39 @@ const be = ({
771
764
  iconClass: "text-neutral-400",
772
765
  icon: "mdiBellOutline"
773
766
  }
774
- }, it = ({
767
+ }, dt = ({
775
768
  className: t,
776
769
  disabled: s = !1,
777
770
  emptyMessage: n = "No notifications",
778
771
  maxHeight: o = "max-h-96",
779
772
  notifications: r,
780
773
  onMarkAllRead: i,
781
- onNotificationClick: l,
782
- unreadCount: a = 0
774
+ onNotificationClick: a,
775
+ unreadCount: l = 0
783
776
  }) => {
784
- const [u, v] = S(!1), [x, m] = S(!1), h = a > 99 ? "99+" : a.toString(), f = a > 0, p = r.length > 0;
785
- H(() => {
777
+ const [u, h] = S(!1), [d, m] = S(!1), p = l > 99 ? "99+" : l.toString(), f = l > 0, g = r.length > 0;
778
+ V(() => {
786
779
  const c = () => {
787
- const w = window.innerWidth < pe;
788
- m(w), w && u ? document.body.classList.add("overflow-hidden") : document.body.classList.remove("overflow-hidden");
780
+ const v = window.innerWidth < pe;
781
+ m(v), v && u ? document.body.classList.add("overflow-hidden") : document.body.classList.remove("overflow-hidden");
789
782
  };
790
783
  return c(), window.addEventListener("resize", c), () => {
791
784
  document.body.classList.remove("overflow-hidden"), window.removeEventListener("resize", c);
792
785
  };
793
786
  }, [u]);
794
787
  const j = (c) => {
795
- l == null || l(c), x && v(!1);
788
+ a?.(c), d && h(!1);
796
789
  }, y = () => {
797
- i == null || i(), x && v(!1);
798
- }, k = () => /* @__PURE__ */ e.jsx(e.Fragment, { children: p ? /* @__PURE__ */ e.jsx("div", { className: "divide-y divide-neutral-800/50", children: r.map((c, w) => {
799
- const N = Be[c.type || "default"];
790
+ i?.(), d && h(!1);
791
+ }, k = () => /* @__PURE__ */ e.jsx(e.Fragment, { children: g ? /* @__PURE__ */ e.jsx("div", { className: "divide-y divide-neutral-800/50", children: r.map((c, v) => {
792
+ const N = Me[c.type || "default"];
800
793
  return /* @__PURE__ */ e.jsxs(
801
- We,
794
+ Be,
802
795
  {
803
796
  className: b(
804
797
  "secondary-inset-focus flex w-full items-start gap-3 px-3 py-3 text-left hover:bg-white/6",
805
798
  !c.read && "bg-white/3",
806
- w === r.length - 1 && "pb-4"
799
+ v === r.length - 1 && "pb-4"
807
800
  ),
808
801
  unstyled: !0,
809
802
  onClick: () => j(c),
@@ -816,7 +809,7 @@ const be = ({
816
809
  N.background
817
810
  ),
818
811
  children: c.img ? /* @__PURE__ */ e.jsx(
819
- je,
812
+ ye,
820
813
  {
821
814
  alt: "User avatar",
822
815
  fallback: "NA",
@@ -824,7 +817,7 @@ const be = ({
824
817
  src: c.img
825
818
  }
826
819
  ) : /* @__PURE__ */ e.jsx(
827
- T,
820
+ B,
828
821
  {
829
822
  className: N.iconClass,
830
823
  icon: c.icon ?? N.icon,
@@ -836,7 +829,7 @@ const be = ({
836
829
  /* @__PURE__ */ e.jsxs("div", { className: "min-w-0 flex-1", children: [
837
830
  /* @__PURE__ */ e.jsx("p", { className: "mb-1 text-sm leading-5 text-white", children: c.title }),
838
831
  c.message && /* @__PURE__ */ e.jsx("p", { className: "mb-1 text-xs leading-4 text-neutral-400", children: c.message }),
839
- /* @__PURE__ */ e.jsx("p", { className: "text-xs text-neutral-500", children: Te(c.timestamp) })
832
+ /* @__PURE__ */ e.jsx("p", { className: "text-xs text-neutral-500", children: ge(c.timestamp) })
840
833
  ] }),
841
834
  !c.read && /* @__PURE__ */ e.jsx("div", { className: "mt-1.5 h-2 w-2 flex-shrink-0 rounded-full bg-rose-500" })
842
835
  ]
@@ -850,27 +843,27 @@ const be = ({
850
843
  className: "px-3 py-8 text-center",
851
844
  role: "status",
852
845
  children: [
853
- /* @__PURE__ */ e.jsx(T, { className: "mx-auto mb-2 text-neutral-500", icon: "mdiBellOffOutline", size: 2 }),
846
+ /* @__PURE__ */ e.jsx(B, { className: "mx-auto mb-2 text-neutral-500", icon: "mdiBellOffOutline", size: 2 }),
854
847
  /* @__PURE__ */ e.jsx("p", { className: "text-sm text-neutral-400", children: n })
855
848
  ]
856
849
  }
857
850
  ) });
858
- return /* @__PURE__ */ e.jsx(e.Fragment, { children: x ? /* @__PURE__ */ e.jsxs("div", { children: [
851
+ return /* @__PURE__ */ e.jsx(e.Fragment, { children: d ? /* @__PURE__ */ e.jsxs("div", { children: [
859
852
  /* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
860
853
  /* @__PURE__ */ e.jsx(
861
- oe,
854
+ le,
862
855
  {
863
856
  "aria-expanded": u,
864
- "aria-label": `Notifications${f ? ` (${a} unread)` : ""}`,
857
+ "aria-label": `Notifications${f ? ` (${l} unread)` : ""}`,
865
858
  disabled: s,
866
859
  icon: "mdiBellOutline",
867
860
  variant: "ghost",
868
- onClick: () => v(!u)
861
+ onClick: () => h(!u)
869
862
  }
870
863
  ),
871
- f ? /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsx("div", { className: "absolute -top-2 -right-2", children: /* @__PURE__ */ e.jsx(G, { className: "min-w-[1.25rem] justify-center px-1", color: "violet", size: "sm", children: h }) }) }) : null
864
+ f ? /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsx("div", { className: "absolute -top-2 -right-2", children: /* @__PURE__ */ e.jsx(q, { className: "min-w-[1.25rem] justify-center px-1", color: "violet", size: "sm", children: p }) }) }) : null
872
865
  ] }),
873
- ie(
866
+ ce(
874
867
  /* @__PURE__ */ e.jsxs(
875
868
  "div",
876
869
  {
@@ -883,13 +876,13 @@ const be = ({
883
876
  role: "dialog",
884
877
  children: [
885
878
  /* @__PURE__ */ e.jsxs("div", { className: "flex h-15 items-center justify-between border-b border-neutral-800 px-4", children: [
886
- x ? /* @__PURE__ */ e.jsx(
887
- oe,
879
+ d ? /* @__PURE__ */ e.jsx(
880
+ le,
888
881
  {
889
882
  "aria-label": "Close sidebar",
890
883
  icon: "mdiClose",
891
884
  variant: "ghost",
892
- onClick: () => v(!1)
885
+ onClick: () => h(!1)
893
886
  }
894
887
  ) : null,
895
888
  /* @__PURE__ */ e.jsx("h3", { id: "notifications-title-mobile", className: "text-sm font-semibold text-white", children: "Notifications" }),
@@ -908,11 +901,11 @@ const be = ({
908
901
  ),
909
902
  document.body
910
903
  )
911
- ] }) : /* @__PURE__ */ e.jsxs(De, { className: t, disabled: s, children: [
904
+ ] }) : /* @__PURE__ */ e.jsxs(We, { className: t, disabled: s, children: [
912
905
  /* @__PURE__ */ e.jsx(
913
906
  be,
914
907
  {
915
- "aria-label": `Notifications${f ? ` (${a} unread)` : ""}`,
908
+ "aria-label": `Notifications${f ? ` (${l} unread)` : ""}`,
916
909
  className: $(
917
910
  "relative flex h-10 w-10 items-center justify-center px-2 text-sm",
918
911
  "secondary-outset-focus group rounded-lg border border-transparent bg-transparent text-white enabled:cursor-pointer enabled:hover:bg-white/6"
@@ -920,7 +913,7 @@ const be = ({
920
913
  disabled: s,
921
914
  icon: "mdiBellOutline",
922
915
  unstyled: !0,
923
- children: f ? /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsx("div", { className: "absolute -top-2 -right-2", children: /* @__PURE__ */ e.jsx(G, { className: "min-w-[1.25rem] justify-center px-1", color: "violet", size: "sm", children: h }) }) }) : null
916
+ children: f ? /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsx("div", { className: "absolute -top-2 -right-2", children: /* @__PURE__ */ e.jsx(q, { className: "min-w-[1.25rem] justify-center px-1", color: "violet", size: "sm", children: p }) }) }) : null
924
917
  }
925
918
  ),
926
919
  /* @__PURE__ */ e.jsx(xe, { children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-between", children: [
@@ -945,112 +938,110 @@ const be = ({
945
938
  }
946
939
  )
947
940
  ] }) });
948
- }, he = le(void 0), Me = () => {
949
- const t = ae(he);
941
+ }, he = ae(void 0), Pe = () => {
942
+ const t = ie(he);
950
943
  if (!t)
951
944
  throw new Error("Select components must be used within an OxSelect");
952
945
  return t;
953
- }, Pe = ({
946
+ }, Te = ({
954
947
  children: t,
955
948
  className: s,
956
949
  disabled: n = !1,
957
950
  id: o,
958
951
  value: r
959
952
  }) => {
960
- const { closeDropdown: i, onSelect: l, selectedValue: a } = Me(), u = () => {
961
- l({ value: r, label: t });
962
- }, v = (m) => {
963
- (m.key === "Enter" || m.key === " ") && (m.preventDefault(), l({ value: r, label: t })), m.key === "Escape" && i();
964
- }, x = a.includes(r);
953
+ const { closeDropdown: i, onSelect: a, selectedValue: l } = Pe(), u = () => {
954
+ a({ value: r, label: t });
955
+ }, h = (m) => {
956
+ (m.key === "Enter" || m.key === " ") && (m.preventDefault(), a({ value: r, label: t })), m.key === "Escape" && i();
957
+ }, d = l.includes(r);
965
958
  return /* @__PURE__ */ e.jsx("li", { role: "none", children: /* @__PURE__ */ e.jsxs(
966
959
  "button",
967
960
  {
968
961
  id: o,
969
- "aria-selected": x,
962
+ "aria-selected": d,
970
963
  className: b(
971
964
  "group flex w-full items-center justify-between rounded-sm px-2 py-1.5 text-left text-sm enabled:text-white",
972
965
  "enabled:cursor-pointer enabled:hover:bg-white/6",
973
966
  "default-inset-focus",
974
967
  "default-disabled",
975
- x && "bg-white/5",
968
+ d && "bg-white/5",
976
969
  s
977
970
  ),
978
971
  disabled: n,
979
972
  role: "option",
980
973
  tabIndex: n ? -1 : 0,
981
974
  onClick: u,
982
- onKeyDown: v,
975
+ onKeyDown: h,
983
976
  children: [
984
977
  t,
985
- x && !n && /* @__PURE__ */ e.jsx(T, { className: "text-violet-700", icon: "mdiCheck", size: 0.8 })
978
+ d && !n && /* @__PURE__ */ e.jsx(B, { className: "text-violet-700", icon: "mdiCheck", size: 0.8 })
986
979
  ]
987
980
  }
988
981
  ) });
989
982
  };
990
- let A = null, R = null;
991
- const He = () => (A || (A = document.createElement("canvas"), R = A.getContext("2d"), R.font = "0.875rem system-ui, sans-serif"), R), Ve = (t, s, n) => {
983
+ let Z = null, R = null;
984
+ const He = () => (Z || (Z = document.createElement("canvas"), R = Z.getContext("2d"), R.font = "0.875rem system-ui, sans-serif"), R), Ve = (t, s, n) => {
992
985
  if (t.length === 0) return [];
993
986
  if (!s.current) return t.slice(0, 1);
994
- const o = s.current.offsetWidth || 0, r = 12, i = 32, l = 32;
995
- let a = o - r - i;
996
- t.length > 1 && (a -= l);
987
+ const o = s.current.offsetWidth || 0, r = 12, i = 32, a = 32;
988
+ let l = o - r - i;
989
+ t.length > 1 && (l -= a);
997
990
  const u = He();
998
991
  if (!u) return t.slice(0, 2);
999
- const v = n ? 4 : 8, x = n ? 12 : 0;
1000
- let m = 0, h = 0;
992
+ const h = n ? 4 : 8, d = n ? 12 : 0;
993
+ let m = 0, p = 0;
1001
994
  for (let f = 0; f < t.length; f++) {
1002
- const p = t[f], j = String(p.label), k = u.measureText(j).width + (n ? x : 0), c = f > 0 ? m + k + v : m + k;
1003
- if (c <= a)
1004
- m = c, h++;
995
+ const g = t[f], j = String(g.label), k = u.measureText(j).width + (n ? d : 0), c = f > 0 ? m + k + h : m + k;
996
+ if (c <= l)
997
+ m = c, p++;
1005
998
  else
1006
999
  break;
1007
1000
  }
1008
- return h = Math.max(1, h), t.slice(0, h);
1009
- }, Ke = (t) => t == null ? [] : Array.isArray(t) ? t : [t], ct = ({
1001
+ return p = Math.max(1, p), t.slice(0, p);
1002
+ }, Ae = (t) => t == null ? [] : Array.isArray(t) ? t : [t], ut = ({
1010
1003
  badgeColor: t = "purple",
1011
1004
  children: s,
1012
1005
  className: n,
1013
1006
  defaultValue: o = null,
1014
1007
  description: r,
1015
1008
  disabled: i = !1,
1016
- displayAsBadges: l = !1,
1017
- error: a = !1,
1009
+ displayAsBadges: a = !1,
1010
+ error: l = !1,
1018
1011
  errorMessage: u,
1019
- id: v,
1020
- label: x,
1012
+ id: h,
1013
+ label: d,
1021
1014
  multiple: m = !1,
1022
- name: h,
1015
+ name: p,
1023
1016
  onChange: f,
1024
- placeholder: p = "Select an option",
1017
+ placeholder: g = "Select an option",
1025
1018
  required: j = !1
1026
1019
  }) => {
1027
- var U;
1028
- const y = J(), k = ee(null), [c, w] = S(!1), [N, E] = S([]), F = v || y, C = `${F}-select`, D = `${F}-description`, L = `${F}-error`, W = a && u, P = (d, g) => {
1029
- let O = null;
1030
- return _.Children.forEach(d, (z) => {
1031
- if (_.isValidElement(z) && z.type === Pe) {
1032
- const I = z.props;
1033
- I.value === g && (O = { value: I.value, label: I.children });
1020
+ const y = G(), k = ee(null), [c, v] = S(!1), [N, E] = S([]), F = h || y, C = `${F}-select`, D = `${F}-description`, I = `${F}-error`, W = l && u, H = (O, x) => {
1021
+ let w = null;
1022
+ return U.Children.forEach(O, (z) => {
1023
+ if (U.isValidElement(z) && z.type === Te) {
1024
+ const L = z.props;
1025
+ L.value === x && (w = { value: L.value, label: L.children });
1034
1026
  }
1035
- }), O;
1036
- }, V = (d) => {
1037
- var O;
1038
- let g;
1039
- if (m ? N.some((I) => I.value === d.value) ? g = N.filter((I) => I.value !== d.value) : g = [...N, d] : (g = [d], w(!1)), E(g), f) {
1040
- const z = m ? g.map((I) => I.value) : ((O = g[0]) == null ? void 0 : O.value) ?? null;
1041
- f(z);
1027
+ }), w;
1028
+ }, A = (O) => {
1029
+ let x;
1030
+ if (m ? N.some((z) => z.value === O.value) ? x = N.filter((z) => z.value !== O.value) : x = [...N, O] : (x = [O], v(!1)), E(x), f) {
1031
+ const w = m ? x.map((z) => z.value) : x[0]?.value ?? null;
1032
+ f(w);
1042
1033
  }
1043
1034
  };
1044
- H(() => {
1035
+ V(() => {
1045
1036
  if (o !== void 0) {
1046
- const d = Ke(o), g = [];
1047
- d.forEach((O) => {
1048
- const z = P(s, O);
1049
- z && g.push(z);
1050
- }), E(m ? g : g.slice(0, 1));
1037
+ const O = Ae(o), x = [];
1038
+ O.forEach((w) => {
1039
+ const z = H(s, w);
1040
+ z && x.push(z);
1041
+ }), E(m ? x : x.slice(0, 1));
1051
1042
  }
1052
1043
  }, [o, s, m]);
1053
- const Y = /* @__PURE__ */ e.jsx(
1044
+ const J = /* @__PURE__ */ e.jsx(
1054
1045
  "ul",
1055
1046
  {
1056
1047
  id: `${C}-listbox`,
@@ -1059,45 +1050,45 @@ const He = () => (A || (A = document.createElement("canvas"), R = A.getContext("
1059
1050
  role: "listbox",
1060
1051
  children: s
1061
1052
  }
1062
- ), K = Ve(N, k, l), q = N.length - K.length, Q = q > 0;
1053
+ ), K = Ve(N, k, a), _ = N.length - K.length, Y = _ > 0;
1063
1054
  return /* @__PURE__ */ e.jsx(
1064
1055
  he.Provider,
1065
1056
  {
1066
1057
  value: {
1067
- selectedValue: N.map((d) => d.value),
1058
+ selectedValue: N.map((O) => O.value),
1068
1059
  multiple: m,
1069
- onSelect: V,
1070
- closeDropdown: () => w(!1)
1060
+ onSelect: A,
1061
+ closeDropdown: () => v(!1)
1071
1062
  },
1072
1063
  children: /* @__PURE__ */ e.jsxs("div", { className: b("flex w-full flex-col gap-1", n), children: [
1073
- x && /* @__PURE__ */ e.jsx(te, { htmlFor: C, required: j, children: x }),
1064
+ d && /* @__PURE__ */ e.jsx(te, { htmlFor: C, required: j, children: d }),
1074
1065
  /* @__PURE__ */ e.jsx(
1075
- de,
1066
+ ne,
1076
1067
  {
1077
1068
  align: "start",
1078
- content: Y,
1069
+ content: J,
1079
1070
  contentClassName: "default-border bg-zinc-1000/70 rounded-lg p-1 backdrop-blur-xl animate-dropdown-in-bottom",
1080
- contentStyle: { minWidth: `${((U = k.current) == null ? void 0 : U.offsetWidth) || 200}px` },
1071
+ contentStyle: { minWidth: `${k.current?.offsetWidth || 200}px` },
1081
1072
  disabled: i,
1082
1073
  open: c,
1083
1074
  position: "bottom",
1084
1075
  trigger: "click",
1085
- onOpenChange: w,
1076
+ onOpenChange: v,
1086
1077
  children: /* @__PURE__ */ e.jsxs(
1087
1078
  "button",
1088
1079
  {
1089
1080
  id: C,
1090
1081
  "aria-controls": `${C}-listbox`,
1091
- "aria-describedby": [r ? D : "", W ? L : ""].filter(Boolean).join(" ") || void 0,
1082
+ "aria-describedby": [r ? D : "", W ? I : ""].filter(Boolean).join(" ") || void 0,
1092
1083
  "aria-disabled": i,
1093
1084
  "aria-expanded": c,
1094
1085
  "aria-haspopup": "listbox",
1095
- "aria-invalid": a,
1086
+ "aria-invalid": l,
1096
1087
  "aria-required": j,
1097
1088
  className: $(
1098
1089
  "relative flex h-10 w-full gap-x-2 rounded-lg py-2 ps-3 pe-8 text-start text-sm enabled:cursor-pointer enabled:text-white",
1099
1090
  "default-outset-focus default-disabled",
1100
- a ? "default-error-border" : "default-border",
1091
+ l ? "default-error-border" : "default-border",
1101
1092
  c && "default-active-border"
1102
1093
  ),
1103
1094
  disabled: i,
@@ -1110,26 +1101,26 @@ const He = () => (A || (A = document.createElement("canvas"), R = A.getContext("
1110
1101
  {
1111
1102
  className: $(
1112
1103
  "w-full overflow-hidden text-ellipsis",
1113
- l ? m && "flex flex-wrap gap-1" : "whitespace-nowrap",
1114
- i && l && "opacity-50"
1104
+ a ? m && "flex flex-wrap gap-1" : "whitespace-nowrap",
1105
+ i && a && "opacity-50"
1115
1106
  ),
1116
1107
  children: N.length > 0 ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1117
- l && m ? K.map((d) => /* @__PURE__ */ e.jsx(G, { color: t, size: "sm", children: d.label }, String(d.value))) : K.map((d, g, O) => /* @__PURE__ */ e.jsxs(_.Fragment, { children: [
1118
- d.label,
1119
- g < O.length - 1 && ", "
1120
- ] }, String(d.value))),
1121
- Q && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1122
- !(l && m) && " ",
1123
- /* @__PURE__ */ e.jsxs(G, { color: t, size: "sm", children: [
1108
+ a && m ? K.map((O) => /* @__PURE__ */ e.jsx(q, { color: t, size: "sm", children: O.label }, String(O.value))) : K.map((O, x, w) => /* @__PURE__ */ e.jsxs(U.Fragment, { children: [
1109
+ O.label,
1110
+ x < w.length - 1 && ", "
1111
+ ] }, String(O.value))),
1112
+ Y && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1113
+ !(a && m) && " ",
1114
+ /* @__PURE__ */ e.jsxs(q, { color: t, size: "sm", children: [
1124
1115
  "+",
1125
- q
1116
+ _
1126
1117
  ] })
1127
1118
  ] })
1128
- ] }) : p
1119
+ ] }) : g
1129
1120
  }
1130
1121
  ),
1131
1122
  /* @__PURE__ */ e.jsx("div", { className: "absolute end-3 top-1/2 -translate-y-1/2", children: /* @__PURE__ */ e.jsx(
1132
- T,
1123
+ B,
1133
1124
  {
1134
1125
  className: $(
1135
1126
  "transition-transform duration-300 ease-in-out",
@@ -1145,40 +1136,40 @@ const He = () => (A || (A = document.createElement("canvas"), R = A.getContext("
1145
1136
  )
1146
1137
  }
1147
1138
  ),
1148
- h && /* @__PURE__ */ e.jsx(
1139
+ p && /* @__PURE__ */ e.jsx(
1149
1140
  "input",
1150
1141
  {
1151
- name: h,
1142
+ name: p,
1152
1143
  type: "hidden",
1153
- value: N.map((d) => d.value).join(",")
1144
+ value: N.map((O) => O.value).join(",")
1154
1145
  }
1155
1146
  ),
1156
1147
  r && /* @__PURE__ */ e.jsx(se, { id: D, disabled: i, children: r }),
1157
- W && /* @__PURE__ */ e.jsx(re, { id: L, children: u })
1148
+ W && /* @__PURE__ */ e.jsx(re, { id: I, children: u })
1158
1149
  ] })
1159
1150
  }
1160
1151
  );
1161
- }, dt = ({ children: t, className: s }) => /* @__PURE__ */ e.jsx("div", { className: b("px-2 py-1 text-xs font-medium text-neutral-400", s), children: t }), Ue = {
1152
+ }, xt = ({ children: t, className: s }) => /* @__PURE__ */ e.jsx("div", { className: b("px-2 py-1 text-xs font-medium text-neutral-400", s), children: t }), Ke = {
1162
1153
  default: "bg-zinc-800/80",
1163
1154
  purple: "bg-purple-950/50",
1164
1155
  blue: "bg-blue-950/50",
1165
1156
  gray: "bg-gray-800/50"
1166
- }, _e = {
1157
+ }, Ue = {
1167
1158
  rectangle: "rounded-md",
1168
1159
  circle: "rounded-full"
1169
- }, qe = ({
1160
+ }, _e = ({
1170
1161
  animate: t = !0,
1171
1162
  className: s,
1172
1163
  color: n = "default",
1173
1164
  fullWidth: o = !1,
1174
1165
  height: r,
1175
1166
  shape: i = "rectangle",
1176
- width: l,
1177
- ...a
1167
+ width: a,
1168
+ ...l
1178
1169
  }) => {
1179
1170
  const u = {
1180
1171
  height: typeof r == "number" ? `${r}px` : r,
1181
- width: typeof l == "number" ? `${l}px` : l
1172
+ width: typeof a == "number" ? `${a}px` : a
1182
1173
  };
1183
1174
  return /* @__PURE__ */ e.jsx(
1184
1175
  "div",
@@ -1187,40 +1178,40 @@ const He = () => (A || (A = document.createElement("canvas"), R = A.getContext("
1187
1178
  "aria-label": "Loading...",
1188
1179
  className: b(
1189
1180
  "relative overflow-hidden",
1190
- Ue[n],
1191
- _e[i],
1181
+ Ke[n],
1182
+ Ue[i],
1192
1183
  t && "animate-pulse",
1193
1184
  o && "w-full",
1194
1185
  s
1195
1186
  ),
1196
1187
  role: "status",
1197
1188
  style: u,
1198
- ...a
1189
+ ...l
1199
1190
  }
1200
1191
  );
1201
- }, ut = ({
1192
+ }, mt = ({
1202
1193
  animate: t = !0,
1203
1194
  className: s,
1204
1195
  color: n = "default",
1205
1196
  fullWidth: o = !1,
1206
1197
  gap: r = 8,
1207
1198
  height: i = 20,
1208
- lines: l = 1,
1209
- width: a,
1199
+ lines: a = 1,
1200
+ width: l,
1210
1201
  ...u
1211
1202
  }) => {
1212
- const v = (h) => h <= 1 ? `${h * 100}%` : `${h}px`, x = (h) => {
1203
+ const h = (p) => p <= 1 ? `${p * 100}%` : `${p}px`, d = (p) => {
1213
1204
  if (!o) {
1214
- if (Array.isArray(a)) {
1215
- const f = a[h % a.length];
1216
- return f == null ? void 0 : typeof f == "number" ? v(f) : f;
1205
+ if (Array.isArray(l)) {
1206
+ const f = l[p % l.length];
1207
+ return f == null ? void 0 : typeof f == "number" ? h(f) : f;
1217
1208
  }
1218
- if (typeof a == "number") {
1219
- if (l > 1 && h === l - 1) {
1220
- const f = a <= 1 ? a * 0.6 : Math.max(100, a * 0.6);
1221
- return v(f);
1209
+ if (typeof l == "number") {
1210
+ if (a > 1 && p === a - 1) {
1211
+ const f = l <= 1 ? l * 0.6 : Math.max(100, l * 0.6);
1212
+ return h(f);
1222
1213
  }
1223
- return v(a);
1214
+ return h(l);
1224
1215
  }
1225
1216
  return "200px";
1226
1217
  }
@@ -1231,44 +1222,44 @@ const He = () => (A || (A = document.createElement("canvas"), R = A.getContext("
1231
1222
  16: "space-y-4",
1232
1223
  20: "space-y-5"
1233
1224
  }[r] || "space-y-2";
1234
- return /* @__PURE__ */ e.jsx("div", { className: b("flex flex-col", m, s), ...u, children: Array.from({ length: l }).map((h, f) => /* @__PURE__ */ e.jsx(
1235
- qe,
1225
+ return /* @__PURE__ */ e.jsx("div", { className: b("flex flex-col", m, s), ...u, children: Array.from({ length: a }).map((p, f) => /* @__PURE__ */ e.jsx(
1226
+ _e,
1236
1227
  {
1237
1228
  animate: t,
1238
1229
  color: n,
1239
1230
  fullWidth: o,
1240
1231
  height: i,
1241
- width: x(f)
1232
+ width: d(f)
1242
1233
  },
1243
1234
  f
1244
1235
  )) });
1245
- }, xt = ({
1236
+ }, ft = ({
1246
1237
  className: t,
1247
1238
  description: s,
1248
1239
  disabled: n = !1,
1249
1240
  error: o = !1,
1250
1241
  errorMessage: r,
1251
1242
  id: i,
1252
- label: l,
1253
- name: a,
1243
+ label: a,
1244
+ name: l,
1254
1245
  onChange: u,
1255
- placeholder: v = "Enter text...",
1256
- readOnly: x = !1,
1246
+ placeholder: h = "Enter text...",
1247
+ readOnly: d = !1,
1257
1248
  required: m = !1,
1258
- rows: h = 3,
1249
+ rows: p = 3,
1259
1250
  showMaxLength: f = !1,
1260
- value: p,
1251
+ value: g,
1261
1252
  ...j
1262
1253
  }) => {
1263
- const y = J(), [k, c] = S(
1264
- typeof p == "string" ? p.length : 0
1265
- ), w = i || y, N = `${w}-textarea`, E = `${w}-description`, F = `${w}-error`, C = j.maxLength, D = o && r;
1266
- H(() => {
1267
- typeof p == "string" && c(p.length);
1268
- }, [p]);
1269
- const L = (P) => {
1270
- const V = P.target.value.length;
1271
- c(V), u == null || u(P);
1254
+ const y = G(), [k, c] = S(
1255
+ typeof g == "string" ? g.length : 0
1256
+ ), v = i || y, N = `${v}-textarea`, E = `${v}-description`, F = `${v}-error`, C = j.maxLength, D = o && r;
1257
+ V(() => {
1258
+ typeof g == "string" && c(g.length);
1259
+ }, [g]);
1260
+ const I = (H) => {
1261
+ const A = H.target.value.length;
1262
+ c(A), u?.(H);
1272
1263
  }, W = /* @__PURE__ */ e.jsx(
1273
1264
  "textarea",
1274
1265
  {
@@ -1285,17 +1276,17 @@ const He = () => (A || (A = document.createElement("canvas"), R = A.getContext("
1285
1276
  t
1286
1277
  ),
1287
1278
  disabled: n,
1288
- name: a,
1289
- placeholder: v,
1290
- readOnly: x,
1291
- rows: h,
1292
- value: p,
1293
- onChange: L,
1279
+ name: l,
1280
+ placeholder: h,
1281
+ readOnly: d,
1282
+ rows: p,
1283
+ value: g,
1284
+ onChange: I,
1294
1285
  ...j
1295
1286
  }
1296
1287
  );
1297
1288
  return /* @__PURE__ */ e.jsxs("div", { className: "flex w-full flex-col gap-1", children: [
1298
- l ? /* @__PURE__ */ e.jsx(te, { htmlFor: N, required: m, children: l }) : null,
1289
+ a ? /* @__PURE__ */ e.jsx(te, { htmlFor: N, required: m, children: a }) : null,
1299
1290
  W,
1300
1291
  f && typeof C == "number" ? /* @__PURE__ */ e.jsxs("div", { className: "pointer-events-none mt-1 text-right text-xs text-neutral-400", children: [
1301
1292
  k,
@@ -1305,53 +1296,101 @@ const He = () => (A || (A = document.createElement("canvas"), R = A.getContext("
1305
1296
  s ? /* @__PURE__ */ e.jsx(se, { id: E, disabled: n, children: s }) : null,
1306
1297
  D ? /* @__PURE__ */ e.jsx(re, { id: F, children: r }) : null
1307
1298
  ] });
1308
- }, mt = ({
1299
+ }, qe = {
1300
+ default: "default-border backdrop-blur-xl text-white bg-zinc-1000/70",
1301
+ error: "bg-red-900/70 text-red-200 border-red-700",
1302
+ warning: "bg-amber-900/70 text-amber-200 border-amber-700",
1303
+ info: "bg-blue-900/70 text-blue-200 border-blue-700",
1304
+ success: "bg-green-900/70 text-green-200 border-green-700"
1305
+ }, bt = ({
1306
+ align: t = "center",
1307
+ children: s,
1308
+ className: n,
1309
+ content: o,
1310
+ disabled: r = !1,
1311
+ id: i,
1312
+ onOpenChange: a,
1313
+ open: l,
1314
+ position: u = "top",
1315
+ trigger: h = "hover",
1316
+ variant: d = "default"
1317
+ }) => {
1318
+ const m = /* @__PURE__ */ e.jsx(
1319
+ "div",
1320
+ {
1321
+ className: b(
1322
+ "max-w-xs rounded-md border px-2 py-1 text-xs break-words backdrop-blur-sm",
1323
+ qe[d],
1324
+ n
1325
+ ),
1326
+ children: o
1327
+ }
1328
+ );
1329
+ return /* @__PURE__ */ e.jsx(
1330
+ ne,
1331
+ {
1332
+ id: i,
1333
+ align: t,
1334
+ content: m,
1335
+ contentRole: "tooltip",
1336
+ disabled: r,
1337
+ offset: 8,
1338
+ open: l,
1339
+ position: u,
1340
+ trigger: h,
1341
+ useAriaControls: !1,
1342
+ onOpenChange: a,
1343
+ children: s
1344
+ }
1345
+ );
1346
+ }, ht = ({
1309
1347
  children: t,
1310
1348
  onAuthenticated: s = null,
1311
1349
  onLoading: n = null
1312
1350
  }) => {
1313
- const { isLoggedIn: o, loading: r } = ce();
1351
+ const { isLoggedIn: o, loading: r } = de();
1314
1352
  return r ? n : o ? s : t;
1315
- }, ft = ({
1353
+ }, pt = ({
1316
1354
  children: t,
1317
1355
  onLoading: s = null,
1318
1356
  onUnauthenticated: n = null
1319
1357
  }) => {
1320
- const { isLoggedIn: o, loading: r } = ce();
1358
+ const { isLoggedIn: o, loading: r } = de();
1321
1359
  return r ? s : o ? t : n;
1322
1360
  };
1323
1361
  export {
1324
- Re as OxAvatar,
1325
- je as OxAvatarImage,
1326
- et as OxAvatarText,
1327
- G as OxBadge,
1328
- oe as OxButton,
1329
- tt as OxCard,
1330
- rt as OxCardContent,
1331
- nt as OxCardFooter,
1332
- st as OxCardHeader,
1333
- ot as OxCheckbox,
1362
+ tt as OxAvatar,
1363
+ ye as OxAvatarImage,
1364
+ st as OxAvatarText,
1365
+ q as OxBadge,
1366
+ le as OxButton,
1367
+ rt as OxCard,
1368
+ ot as OxCardContent,
1369
+ lt as OxCardFooter,
1370
+ nt as OxCardHeader,
1371
+ at as OxCheckbox,
1334
1372
  se as OxDescription,
1335
- De as OxDropdown,
1373
+ We as OxDropdown,
1336
1374
  ue as OxDropdownContent,
1337
- $e as OxDropdownFooter,
1375
+ De as OxDropdownFooter,
1338
1376
  xe as OxDropdownHeader,
1339
- We as OxDropdownItem,
1340
- lt as OxDropdownSeparator,
1341
- at as OxDropdownShortcut,
1377
+ Be as OxDropdownItem,
1378
+ it as OxDropdownSeparator,
1379
+ ct as OxDropdownShortcut,
1342
1380
  be as OxDropdownTrigger,
1343
1381
  re as OxErrorMessage,
1344
- pt as OxForm,
1345
- mt as OxGuestRoute,
1346
- T as OxIcon,
1347
- gt as OxInput,
1382
+ wt as OxForm,
1383
+ ht as OxGuestRoute,
1384
+ B as OxIcon,
1385
+ jt as OxInput,
1348
1386
  te as OxLabel,
1349
- it as OxNotificationDropdown,
1350
- ft as OxProtectedRoute,
1351
- ct as OxSelect,
1352
- dt as OxSelectLabel,
1353
- Pe as OxSelectOption,
1354
- qe as OxSkeleton,
1355
- ut as OxSkeletonText,
1356
- xt as OxTextarea
1387
+ dt as OxNotificationDropdown,
1388
+ pt as OxProtectedRoute,
1389
+ ut as OxSelect,
1390
+ xt as OxSelectLabel,
1391
+ Te as OxSelectOption,
1392
+ _e as OxSkeleton,
1393
+ mt as OxSkeletonText,
1394
+ ft as OxTextarea,
1395
+ bt as OxTooltip
1357
1396
  };