@homlista-devs/ui 1.0.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  import { jsx as s, jsxs as x, Fragment as de } from "react/jsx-runtime";
2
2
  import * as C from "react";
3
- import ke, { useEffect as fe, useState as oe, useMemo as ge, useCallback as Pe, forwardRef as Be, createElement as xe, useContext as fr } from "react";
4
- import { useUnit as gr } from "effector-react";
5
- import { createEvent as Ce, createStore as pr } from "effector";
3
+ import ke, { useEffect as fe, useState as oe, useMemo as pe, useCallback as Pe, forwardRef as Be, createElement as xe, useContext as fr } from "react";
4
+ import { useUnit as pr } from "effector-react";
5
+ import { createEvent as Ce, createStore as gr } from "effector";
6
6
  function Ie(e, r) {
7
7
  if (typeof e == "function")
8
8
  return e(r);
@@ -27,10 +27,10 @@ function hr(...e) {
27
27
  // @__NO_SIDE_EFFECTS__
28
28
  function br(e) {
29
29
  const r = /* @__PURE__ */ yr(e), t = C.forwardRef((o, n) => {
30
- const { children: a, ...i } = o, c = C.Children.toArray(a), l = c.find(wr);
31
- if (l) {
32
- const d = l.props.children, g = c.map((m) => m === l ? C.Children.count(d) > 1 ? C.Children.only(null) : C.isValidElement(d) ? d.props.children : null : m);
33
- return /* @__PURE__ */ s(r, { ...i, ref: n, children: C.isValidElement(d) ? C.cloneElement(d, void 0, g) : null });
30
+ const { children: a, ...i } = o, l = C.Children.toArray(a), c = l.find(wr);
31
+ if (c) {
32
+ const d = c.props.children, p = l.map((m) => m === c ? C.Children.count(d) > 1 ? C.Children.only(null) : C.isValidElement(d) ? d.props.children : null : m);
33
+ return /* @__PURE__ */ s(r, { ...i, ref: n, children: C.isValidElement(d) ? C.cloneElement(d, void 0, p) : null });
34
34
  }
35
35
  return /* @__PURE__ */ s(r, { ...i, ref: n, children: a });
36
36
  });
@@ -42,8 +42,8 @@ function yr(e) {
42
42
  const r = C.forwardRef((t, o) => {
43
43
  const { children: n, ...a } = t;
44
44
  if (C.isValidElement(n)) {
45
- const i = Cr(n), c = kr(a, n.props);
46
- return n.type !== C.Fragment && (c.ref = o ? hr(o, i) : i), C.cloneElement(n, c);
45
+ const i = Cr(n), l = kr(a, n.props);
46
+ return n.type !== C.Fragment && (l.ref = o ? hr(o, i) : i), C.cloneElement(n, l);
47
47
  }
48
48
  return C.Children.count(n) > 1 ? C.Children.only(null) : null;
49
49
  });
@@ -57,9 +57,9 @@ function kr(e, r) {
57
57
  const t = { ...r };
58
58
  for (const o in r) {
59
59
  const n = e[o], a = r[o];
60
- /^on[A-Z]/.test(o) ? n && a ? t[o] = (...c) => {
61
- const l = a(...c);
62
- return n(...c), l;
60
+ /^on[A-Z]/.test(o) ? n && a ? t[o] = (...l) => {
61
+ const c = a(...l);
62
+ return n(...l), c;
63
63
  } : n && (t[o] = n) : o === "style" ? t[o] = { ...n, ...a } : o === "className" && (t[o] = [n, a].filter(Boolean).join(" "));
64
64
  }
65
65
  return { ...e, ...t };
@@ -82,18 +82,18 @@ function He() {
82
82
  return o;
83
83
  }
84
84
  const Ne = "-", Nr = (e) => {
85
- const r = Sr(e), {
85
+ const r = zr(e), {
86
86
  conflictingClassGroups: t,
87
87
  conflictingClassGroupModifiers: o
88
88
  } = e;
89
89
  return {
90
90
  getClassGroupId: (i) => {
91
- const c = i.split(Ne);
92
- return c[0] === "" && c.length !== 1 && c.shift(), Ue(c, r) || zr(i);
91
+ const l = i.split(Ne);
92
+ return l[0] === "" && l.length !== 1 && l.shift(), Ue(l, r) || Sr(i);
93
93
  },
94
- getConflictingClassGroupIds: (i, c) => {
95
- const l = t[i] || [];
96
- return c && o[i] ? [...l, ...o[i]] : l;
94
+ getConflictingClassGroupIds: (i, l) => {
95
+ const c = t[i] || [];
96
+ return l && o[i] ? [...c, ...o[i]] : c;
97
97
  }
98
98
  };
99
99
  }, Ue = (e, r) => {
@@ -108,13 +108,13 @@ const Ne = "-", Nr = (e) => {
108
108
  return r.validators.find(({
109
109
  validator: i
110
110
  }) => i(a))?.classGroupId;
111
- }, je = /^\[(.+)\]$/, zr = (e) => {
111
+ }, je = /^\[(.+)\]$/, Sr = (e) => {
112
112
  if (je.test(e)) {
113
113
  const r = je.exec(e)[1], t = r?.substring(0, r.indexOf(":"));
114
114
  if (t)
115
115
  return "arbitrary.." + t;
116
116
  }
117
- }, Sr = (e) => {
117
+ }, zr = (e) => {
118
118
  const {
119
119
  theme: r,
120
120
  classGroups: t
@@ -186,27 +186,27 @@ const Ne = "-", Nr = (e) => {
186
186
  } = e;
187
187
  let o = (n) => {
188
188
  const a = [];
189
- let i = 0, c = 0, l = 0, d;
189
+ let i = 0, l = 0, c = 0, d;
190
190
  for (let k = 0; k < n.length; k++) {
191
- let S = n[k];
192
- if (i === 0 && c === 0) {
193
- if (S === we) {
194
- a.push(n.slice(l, k)), l = k + Rr;
191
+ let z = n[k];
192
+ if (i === 0 && l === 0) {
193
+ if (z === we) {
194
+ a.push(n.slice(c, k)), c = k + Rr;
195
195
  continue;
196
196
  }
197
- if (S === "/") {
197
+ if (z === "/") {
198
198
  d = k;
199
199
  continue;
200
200
  }
201
201
  }
202
- S === "[" ? i++ : S === "]" ? i-- : S === "(" ? c++ : S === ")" && c--;
202
+ z === "[" ? i++ : z === "]" ? i-- : z === "(" ? l++ : z === ")" && l--;
203
203
  }
204
- const g = a.length === 0 ? n : n.substring(l), m = Lr(g), y = m !== g, z = d && d > l ? d - l : void 0;
204
+ const p = a.length === 0 ? n : n.substring(c), m = Lr(p), y = m !== p, S = d && d > c ? d - c : void 0;
205
205
  return {
206
206
  modifiers: a,
207
207
  hasImportantModifier: y,
208
208
  baseClassName: m,
209
- maybePostfixModifierPosition: z
209
+ maybePostfixModifierPosition: S
210
210
  };
211
211
  };
212
212
  if (r) {
@@ -249,33 +249,33 @@ const Ne = "-", Nr = (e) => {
249
249
  getClassGroupId: o,
250
250
  getConflictingClassGroupIds: n,
251
251
  sortModifiers: a
252
- } = r, i = [], c = e.trim().split(jr);
253
- let l = "";
254
- for (let d = c.length - 1; d >= 0; d -= 1) {
255
- const g = c[d], {
252
+ } = r, i = [], l = e.trim().split(jr);
253
+ let c = "";
254
+ for (let d = l.length - 1; d >= 0; d -= 1) {
255
+ const p = l[d], {
256
256
  isExternal: m,
257
257
  modifiers: y,
258
- hasImportantModifier: z,
258
+ hasImportantModifier: S,
259
259
  baseClassName: k,
260
- maybePostfixModifierPosition: S
261
- } = t(g);
260
+ maybePostfixModifierPosition: z
261
+ } = t(p);
262
262
  if (m) {
263
- l = g + (l.length > 0 ? " " + l : l);
263
+ c = p + (c.length > 0 ? " " + c : c);
264
264
  continue;
265
265
  }
266
- let R = !!S, A = o(R ? k.substring(0, S) : k);
266
+ let R = !!z, A = o(R ? k.substring(0, z) : k);
267
267
  if (!A) {
268
268
  if (!R) {
269
- l = g + (l.length > 0 ? " " + l : l);
269
+ c = p + (c.length > 0 ? " " + c : c);
270
270
  continue;
271
271
  }
272
272
  if (A = o(k), !A) {
273
- l = g + (l.length > 0 ? " " + l : l);
273
+ c = p + (c.length > 0 ? " " + c : c);
274
274
  continue;
275
275
  }
276
276
  R = !1;
277
277
  }
278
- const _ = a(y).join(":"), F = z ? _ + ve : _, I = F + A;
278
+ const _ = a(y).join(":"), F = S ? _ + ve : _, I = F + A;
279
279
  if (i.includes(I))
280
280
  continue;
281
281
  i.push(I);
@@ -284,9 +284,9 @@ const Ne = "-", Nr = (e) => {
284
284
  const G = j[D];
285
285
  i.push(F + G);
286
286
  }
287
- l = g + (l.length > 0 ? " " + l : l);
287
+ c = p + (c.length > 0 ? " " + c : c);
288
288
  }
289
- return l;
289
+ return c;
290
290
  };
291
291
  function Vr() {
292
292
  let e = 0, r, t, o = "";
@@ -304,16 +304,16 @@ const Oe = (e) => {
304
304
  };
305
305
  function _r(e, ...r) {
306
306
  let t, o, n, a = i;
307
- function i(l) {
308
- const d = r.reduce((g, m) => m(g), e());
309
- return t = Ir(d), o = t.cache.get, n = t.cache.set, a = c, c(l);
307
+ function i(c) {
308
+ const d = r.reduce((p, m) => m(p), e());
309
+ return t = Ir(d), o = t.cache.get, n = t.cache.set, a = l, l(c);
310
310
  }
311
- function c(l) {
312
- const d = o(l);
311
+ function l(c) {
312
+ const d = o(c);
313
313
  if (d)
314
314
  return d;
315
- const g = Tr(l, t);
316
- return n(l, g), g;
315
+ const p = Tr(c, t);
316
+ return n(c, p), p;
317
317
  }
318
318
  return function() {
319
319
  return a(Vr.apply(null, arguments));
@@ -322,7 +322,7 @@ function _r(e, ...r) {
322
322
  const E = (e) => {
323
323
  const r = (t) => t[e] || [];
324
324
  return r.isThemeGetter = !0, r;
325
- }, qe = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ze = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Dr = /^\d+\/\d+$/, $r = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Fr = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Gr = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Br = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Wr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Y = (e) => Dr.test(e), v = (e) => !!e && !Number.isNaN(Number(e)), U = (e) => !!e && Number.isInteger(Number(e)), pe = (e) => e.endsWith("%") && v(e.slice(0, -1)), W = (e) => $r.test(e), Hr = () => !0, Ur = (e) => (
325
+ }, qe = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ze = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Dr = /^\d+\/\d+$/, $r = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Fr = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Gr = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Br = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Wr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Y = (e) => Dr.test(e), v = (e) => !!e && !Number.isNaN(Number(e)), U = (e) => !!e && Number.isInteger(Number(e)), ge = (e) => e.endsWith("%") && v(e.slice(0, -1)), W = (e) => $r.test(e), Hr = () => !0, Ur = (e) => (
326
326
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
327
327
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
328
328
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
@@ -334,7 +334,7 @@ const E = (e) => {
334
334
  const o = Ze.exec(e);
335
335
  return o ? o[1] ? r(o[1]) : t : !1;
336
336
  }, Qe = (e) => e === "position" || e === "percentage", Je = (e) => e === "image" || e === "url", Xe = (e) => e === "length" || e === "size" || e === "bg-size", Ye = (e) => e === "length", et = (e) => e === "number", rt = (e) => e === "family-name", er = (e) => e === "shadow", tt = () => {
337
- const e = E("color"), r = E("font"), t = E("text"), o = E("font-weight"), n = E("tracking"), a = E("leading"), i = E("breakpoint"), c = E("container"), l = E("spacing"), d = E("radius"), g = E("shadow"), m = E("inset-shadow"), y = E("text-shadow"), z = E("drop-shadow"), k = E("blur"), S = E("perspective"), R = E("aspect"), A = E("ease"), _ = E("animate"), F = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], I = () => [
337
+ const e = E("color"), r = E("font"), t = E("text"), o = E("font-weight"), n = E("tracking"), a = E("leading"), i = E("breakpoint"), l = E("container"), c = E("spacing"), d = E("radius"), p = E("shadow"), m = E("inset-shadow"), y = E("text-shadow"), S = E("drop-shadow"), k = E("blur"), z = E("perspective"), R = E("aspect"), A = E("ease"), _ = E("animate"), F = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], I = () => [
338
338
  "center",
339
339
  "top",
340
340
  "bottom",
@@ -352,15 +352,15 @@ const E = (e) => {
352
352
  "bottom-left",
353
353
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
354
354
  "left-bottom"
355
- ], j = () => [...I(), f, u], D = () => ["auto", "hidden", "clip", "visible", "scroll"], G = () => ["auto", "contain", "none"], b = () => [f, u, l], T = () => [Y, "full", "auto", ...b()], J = () => [U, "none", "subgrid", f, u], X = () => ["auto", {
355
+ ], j = () => [...I(), f, u], D = () => ["auto", "hidden", "clip", "visible", "scroll"], G = () => ["auto", "contain", "none"], b = () => [f, u, c], T = () => [Y, "full", "auto", ...b()], J = () => [U, "none", "subgrid", f, u], X = () => ["auto", {
356
356
  span: ["full", U, f, u]
357
- }, U, f, u], H = () => [U, "auto", f, u], B = () => ["auto", "min", "max", "fr", f, u], q = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], $ = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], w = () => ["auto", ...b()], N = () => [Y, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...b()], p = () => [e, f, u], Ee = () => [...I(), _e, Ve, {
357
+ }, U, f, u], H = () => [U, "auto", f, u], B = () => ["auto", "min", "max", "fr", f, u], q = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], $ = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], w = () => ["auto", ...b()], N = () => [Y, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...b()], g = () => [e, f, u], Ee = () => [...I(), _e, Ve, {
358
358
  position: [f, u]
359
359
  }], Me = () => ["no-repeat", {
360
360
  repeat: ["", "x", "y", "space", "round"]
361
361
  }], Re = () => ["auto", "cover", "contain", Xr, Kr, {
362
362
  size: [f, u]
363
- }], me = () => [pe, te, Z], L = () => [
363
+ }], me = () => [ge, te, Z], L = () => [
364
364
  // Deprecated since Tailwind CSS v4.0.0
365
365
  "",
366
366
  "none",
@@ -368,7 +368,7 @@ const E = (e) => {
368
368
  d,
369
369
  f,
370
370
  u
371
- ], V = () => ["", v, te, Z], ne = () => ["solid", "dashed", "dotted", "double"], Ae = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], M = () => [v, pe, _e, Ve], Le = () => [
371
+ ], V = () => ["", v, te, Z], ne = () => ["solid", "dashed", "dotted", "double"], Ae = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], M = () => [v, ge, _e, Ve], Le = () => [
372
372
  // Deprecated since Tailwind CSS v4.0.0
373
373
  "",
374
374
  "none",
@@ -421,7 +421,7 @@ const E = (e) => {
421
421
  * @see https://tailwindcss.com/docs/columns
422
422
  */
423
423
  columns: [{
424
- columns: [v, u, f, c]
424
+ columns: [v, u, f, l]
425
425
  }],
426
426
  /**
427
427
  * Break After
@@ -631,7 +631,7 @@ const E = (e) => {
631
631
  * @see https://tailwindcss.com/docs/flex-basis
632
632
  */
633
633
  basis: [{
634
- basis: [Y, "full", "auto", c, ...b()]
634
+ basis: [Y, "full", "auto", l, ...b()]
635
635
  }],
636
636
  /**
637
637
  * Flex Direction
@@ -1006,7 +1006,7 @@ const E = (e) => {
1006
1006
  * @see https://tailwindcss.com/docs/width
1007
1007
  */
1008
1008
  w: [{
1009
- w: [c, "screen", ...N()]
1009
+ w: [l, "screen", ...N()]
1010
1010
  }],
1011
1011
  /**
1012
1012
  * Min-Width
@@ -1014,7 +1014,7 @@ const E = (e) => {
1014
1014
  */
1015
1015
  "min-w": [{
1016
1016
  "min-w": [
1017
- c,
1017
+ l,
1018
1018
  "screen",
1019
1019
  /** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
1020
1020
  "none",
@@ -1027,7 +1027,7 @@ const E = (e) => {
1027
1027
  */
1028
1028
  "max-w": [{
1029
1029
  "max-w": [
1030
- c,
1030
+ l,
1031
1031
  "screen",
1032
1032
  "none",
1033
1033
  /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
@@ -1092,7 +1092,7 @@ const E = (e) => {
1092
1092
  * @see https://tailwindcss.com/docs/font-stretch
1093
1093
  */
1094
1094
  "font-stretch": [{
1095
- "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", pe, u]
1095
+ "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", ge, u]
1096
1096
  }],
1097
1097
  /**
1098
1098
  * Font Family
@@ -1190,14 +1190,14 @@ const E = (e) => {
1190
1190
  * @see https://v3.tailwindcss.com/docs/placeholder-color
1191
1191
  */
1192
1192
  "placeholder-color": [{
1193
- placeholder: p()
1193
+ placeholder: g()
1194
1194
  }],
1195
1195
  /**
1196
1196
  * Text Color
1197
1197
  * @see https://tailwindcss.com/docs/text-color
1198
1198
  */
1199
1199
  "text-color": [{
1200
- text: p()
1200
+ text: g()
1201
1201
  }],
1202
1202
  /**
1203
1203
  * Text Decoration
@@ -1223,7 +1223,7 @@ const E = (e) => {
1223
1223
  * @see https://tailwindcss.com/docs/text-decoration-color
1224
1224
  */
1225
1225
  "text-decoration-color": [{
1226
- decoration: p()
1226
+ decoration: g()
1227
1227
  }],
1228
1228
  /**
1229
1229
  * Text Underline Offset
@@ -1361,7 +1361,7 @@ const E = (e) => {
1361
1361
  * @see https://tailwindcss.com/docs/background-color
1362
1362
  */
1363
1363
  "bg-color": [{
1364
- bg: p()
1364
+ bg: g()
1365
1365
  }],
1366
1366
  /**
1367
1367
  * Gradient Color Stops From Position
@@ -1389,21 +1389,21 @@ const E = (e) => {
1389
1389
  * @see https://tailwindcss.com/docs/gradient-color-stops
1390
1390
  */
1391
1391
  "gradient-from": [{
1392
- from: p()
1392
+ from: g()
1393
1393
  }],
1394
1394
  /**
1395
1395
  * Gradient Color Stops Via
1396
1396
  * @see https://tailwindcss.com/docs/gradient-color-stops
1397
1397
  */
1398
1398
  "gradient-via": [{
1399
- via: p()
1399
+ via: g()
1400
1400
  }],
1401
1401
  /**
1402
1402
  * Gradient Color Stops To
1403
1403
  * @see https://tailwindcss.com/docs/gradient-color-stops
1404
1404
  */
1405
1405
  "gradient-to": [{
1406
- to: p()
1406
+ to: g()
1407
1407
  }],
1408
1408
  // ---------------
1409
1409
  // --- Borders ---
@@ -1619,70 +1619,70 @@ const E = (e) => {
1619
1619
  * @see https://tailwindcss.com/docs/border-color
1620
1620
  */
1621
1621
  "border-color": [{
1622
- border: p()
1622
+ border: g()
1623
1623
  }],
1624
1624
  /**
1625
1625
  * Border Color X
1626
1626
  * @see https://tailwindcss.com/docs/border-color
1627
1627
  */
1628
1628
  "border-color-x": [{
1629
- "border-x": p()
1629
+ "border-x": g()
1630
1630
  }],
1631
1631
  /**
1632
1632
  * Border Color Y
1633
1633
  * @see https://tailwindcss.com/docs/border-color
1634
1634
  */
1635
1635
  "border-color-y": [{
1636
- "border-y": p()
1636
+ "border-y": g()
1637
1637
  }],
1638
1638
  /**
1639
1639
  * Border Color S
1640
1640
  * @see https://tailwindcss.com/docs/border-color
1641
1641
  */
1642
1642
  "border-color-s": [{
1643
- "border-s": p()
1643
+ "border-s": g()
1644
1644
  }],
1645
1645
  /**
1646
1646
  * Border Color E
1647
1647
  * @see https://tailwindcss.com/docs/border-color
1648
1648
  */
1649
1649
  "border-color-e": [{
1650
- "border-e": p()
1650
+ "border-e": g()
1651
1651
  }],
1652
1652
  /**
1653
1653
  * Border Color Top
1654
1654
  * @see https://tailwindcss.com/docs/border-color
1655
1655
  */
1656
1656
  "border-color-t": [{
1657
- "border-t": p()
1657
+ "border-t": g()
1658
1658
  }],
1659
1659
  /**
1660
1660
  * Border Color Right
1661
1661
  * @see https://tailwindcss.com/docs/border-color
1662
1662
  */
1663
1663
  "border-color-r": [{
1664
- "border-r": p()
1664
+ "border-r": g()
1665
1665
  }],
1666
1666
  /**
1667
1667
  * Border Color Bottom
1668
1668
  * @see https://tailwindcss.com/docs/border-color
1669
1669
  */
1670
1670
  "border-color-b": [{
1671
- "border-b": p()
1671
+ "border-b": g()
1672
1672
  }],
1673
1673
  /**
1674
1674
  * Border Color Left
1675
1675
  * @see https://tailwindcss.com/docs/border-color
1676
1676
  */
1677
1677
  "border-color-l": [{
1678
- "border-l": p()
1678
+ "border-l": g()
1679
1679
  }],
1680
1680
  /**
1681
1681
  * Divide Color
1682
1682
  * @see https://tailwindcss.com/docs/divide-color
1683
1683
  */
1684
1684
  "divide-color": [{
1685
- divide: p()
1685
+ divide: g()
1686
1686
  }],
1687
1687
  /**
1688
1688
  * Outline Style
@@ -1710,7 +1710,7 @@ const E = (e) => {
1710
1710
  * @see https://tailwindcss.com/docs/outline-color
1711
1711
  */
1712
1712
  "outline-color": [{
1713
- outline: p()
1713
+ outline: g()
1714
1714
  }],
1715
1715
  // ---------------
1716
1716
  // --- Effects ---
@@ -1724,7 +1724,7 @@ const E = (e) => {
1724
1724
  // Deprecated since Tailwind CSS v4.0.0
1725
1725
  "",
1726
1726
  "none",
1727
- g,
1727
+ p,
1728
1728
  ce,
1729
1729
  le
1730
1730
  ]
@@ -1734,7 +1734,7 @@ const E = (e) => {
1734
1734
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
1735
1735
  */
1736
1736
  "shadow-color": [{
1737
- shadow: p()
1737
+ shadow: g()
1738
1738
  }],
1739
1739
  /**
1740
1740
  * Inset Box Shadow
@@ -1748,7 +1748,7 @@ const E = (e) => {
1748
1748
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
1749
1749
  */
1750
1750
  "inset-shadow-color": [{
1751
- "inset-shadow": p()
1751
+ "inset-shadow": g()
1752
1752
  }],
1753
1753
  /**
1754
1754
  * Ring Width
@@ -1769,7 +1769,7 @@ const E = (e) => {
1769
1769
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
1770
1770
  */
1771
1771
  "ring-color": [{
1772
- ring: p()
1772
+ ring: g()
1773
1773
  }],
1774
1774
  /**
1775
1775
  * Ring Offset Width
@@ -1787,7 +1787,7 @@ const E = (e) => {
1787
1787
  * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
1788
1788
  */
1789
1789
  "ring-offset-color": [{
1790
- "ring-offset": p()
1790
+ "ring-offset": g()
1791
1791
  }],
1792
1792
  /**
1793
1793
  * Inset Ring Width
@@ -1801,7 +1801,7 @@ const E = (e) => {
1801
1801
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
1802
1802
  */
1803
1803
  "inset-ring-color": [{
1804
- "inset-ring": p()
1804
+ "inset-ring": g()
1805
1805
  }],
1806
1806
  /**
1807
1807
  * Text Shadow
@@ -1815,7 +1815,7 @@ const E = (e) => {
1815
1815
  * @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
1816
1816
  */
1817
1817
  "text-shadow-color": [{
1818
- "text-shadow": p()
1818
+ "text-shadow": g()
1819
1819
  }],
1820
1820
  /**
1821
1821
  * Opacity
@@ -1866,10 +1866,10 @@ const E = (e) => {
1866
1866
  "mask-linear-to": M()
1867
1867
  }],
1868
1868
  "mask-image-linear-from-color": [{
1869
- "mask-linear-from": p()
1869
+ "mask-linear-from": g()
1870
1870
  }],
1871
1871
  "mask-image-linear-to-color": [{
1872
- "mask-linear-to": p()
1872
+ "mask-linear-to": g()
1873
1873
  }],
1874
1874
  "mask-image-t-from-pos": [{
1875
1875
  "mask-t-from": M()
@@ -1878,10 +1878,10 @@ const E = (e) => {
1878
1878
  "mask-t-to": M()
1879
1879
  }],
1880
1880
  "mask-image-t-from-color": [{
1881
- "mask-t-from": p()
1881
+ "mask-t-from": g()
1882
1882
  }],
1883
1883
  "mask-image-t-to-color": [{
1884
- "mask-t-to": p()
1884
+ "mask-t-to": g()
1885
1885
  }],
1886
1886
  "mask-image-r-from-pos": [{
1887
1887
  "mask-r-from": M()
@@ -1890,10 +1890,10 @@ const E = (e) => {
1890
1890
  "mask-r-to": M()
1891
1891
  }],
1892
1892
  "mask-image-r-from-color": [{
1893
- "mask-r-from": p()
1893
+ "mask-r-from": g()
1894
1894
  }],
1895
1895
  "mask-image-r-to-color": [{
1896
- "mask-r-to": p()
1896
+ "mask-r-to": g()
1897
1897
  }],
1898
1898
  "mask-image-b-from-pos": [{
1899
1899
  "mask-b-from": M()
@@ -1902,10 +1902,10 @@ const E = (e) => {
1902
1902
  "mask-b-to": M()
1903
1903
  }],
1904
1904
  "mask-image-b-from-color": [{
1905
- "mask-b-from": p()
1905
+ "mask-b-from": g()
1906
1906
  }],
1907
1907
  "mask-image-b-to-color": [{
1908
- "mask-b-to": p()
1908
+ "mask-b-to": g()
1909
1909
  }],
1910
1910
  "mask-image-l-from-pos": [{
1911
1911
  "mask-l-from": M()
@@ -1914,10 +1914,10 @@ const E = (e) => {
1914
1914
  "mask-l-to": M()
1915
1915
  }],
1916
1916
  "mask-image-l-from-color": [{
1917
- "mask-l-from": p()
1917
+ "mask-l-from": g()
1918
1918
  }],
1919
1919
  "mask-image-l-to-color": [{
1920
- "mask-l-to": p()
1920
+ "mask-l-to": g()
1921
1921
  }],
1922
1922
  "mask-image-x-from-pos": [{
1923
1923
  "mask-x-from": M()
@@ -1926,10 +1926,10 @@ const E = (e) => {
1926
1926
  "mask-x-to": M()
1927
1927
  }],
1928
1928
  "mask-image-x-from-color": [{
1929
- "mask-x-from": p()
1929
+ "mask-x-from": g()
1930
1930
  }],
1931
1931
  "mask-image-x-to-color": [{
1932
- "mask-x-to": p()
1932
+ "mask-x-to": g()
1933
1933
  }],
1934
1934
  "mask-image-y-from-pos": [{
1935
1935
  "mask-y-from": M()
@@ -1938,10 +1938,10 @@ const E = (e) => {
1938
1938
  "mask-y-to": M()
1939
1939
  }],
1940
1940
  "mask-image-y-from-color": [{
1941
- "mask-y-from": p()
1941
+ "mask-y-from": g()
1942
1942
  }],
1943
1943
  "mask-image-y-to-color": [{
1944
- "mask-y-to": p()
1944
+ "mask-y-to": g()
1945
1945
  }],
1946
1946
  "mask-image-radial": [{
1947
1947
  "mask-radial": [f, u]
@@ -1953,10 +1953,10 @@ const E = (e) => {
1953
1953
  "mask-radial-to": M()
1954
1954
  }],
1955
1955
  "mask-image-radial-from-color": [{
1956
- "mask-radial-from": p()
1956
+ "mask-radial-from": g()
1957
1957
  }],
1958
1958
  "mask-image-radial-to-color": [{
1959
- "mask-radial-to": p()
1959
+ "mask-radial-to": g()
1960
1960
  }],
1961
1961
  "mask-image-radial-shape": [{
1962
1962
  "mask-radial": ["circle", "ellipse"]
@@ -1980,10 +1980,10 @@ const E = (e) => {
1980
1980
  "mask-conic-to": M()
1981
1981
  }],
1982
1982
  "mask-image-conic-from-color": [{
1983
- "mask-conic-from": p()
1983
+ "mask-conic-from": g()
1984
1984
  }],
1985
1985
  "mask-image-conic-to-color": [{
1986
- "mask-conic-to": p()
1986
+ "mask-conic-to": g()
1987
1987
  }],
1988
1988
  /**
1989
1989
  * Mask Mode
@@ -2080,7 +2080,7 @@ const E = (e) => {
2080
2080
  // Deprecated since Tailwind CSS v4.0.0
2081
2081
  "",
2082
2082
  "none",
2083
- z,
2083
+ S,
2084
2084
  ce,
2085
2085
  le
2086
2086
  ]
@@ -2090,7 +2090,7 @@ const E = (e) => {
2090
2090
  * @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
2091
2091
  */
2092
2092
  "drop-shadow-color": [{
2093
- "drop-shadow": p()
2093
+ "drop-shadow": g()
2094
2094
  }],
2095
2095
  /**
2096
2096
  * Grayscale
@@ -2308,7 +2308,7 @@ const E = (e) => {
2308
2308
  * @see https://tailwindcss.com/docs/perspective
2309
2309
  */
2310
2310
  perspective: [{
2311
- perspective: [S, f, u]
2311
+ perspective: [z, f, u]
2312
2312
  }],
2313
2313
  /**
2314
2314
  * Perspective Origin
@@ -2461,7 +2461,7 @@ const E = (e) => {
2461
2461
  * @see https://tailwindcss.com/docs/accent-color
2462
2462
  */
2463
2463
  accent: [{
2464
- accent: p()
2464
+ accent: g()
2465
2465
  }],
2466
2466
  /**
2467
2467
  * Appearance
@@ -2475,7 +2475,7 @@ const E = (e) => {
2475
2475
  * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
2476
2476
  */
2477
2477
  "caret-color": [{
2478
- caret: p()
2478
+ caret: g()
2479
2479
  }],
2480
2480
  /**
2481
2481
  * Color Scheme
@@ -2721,7 +2721,7 @@ const E = (e) => {
2721
2721
  * @see https://tailwindcss.com/docs/fill
2722
2722
  */
2723
2723
  fill: [{
2724
- fill: ["none", ...p()]
2724
+ fill: ["none", ...g()]
2725
2725
  }],
2726
2726
  /**
2727
2727
  * Stroke Width
@@ -2735,7 +2735,7 @@ const E = (e) => {
2735
2735
  * @see https://tailwindcss.com/docs/stroke
2736
2736
  */
2737
2737
  stroke: [{
2738
- stroke: ["none", ...p()]
2738
+ stroke: ["none", ...g()]
2739
2739
  }],
2740
2740
  // ---------------------
2741
2741
  // --- Accessibility ---
@@ -2811,31 +2811,31 @@ const De = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $e = He, r
2811
2811
  var o;
2812
2812
  if (r?.variants == null) return $e(e, t?.class, t?.className);
2813
2813
  const { variants: n, defaultVariants: a } = r, i = Object.keys(n).map((d) => {
2814
- const g = t?.[d], m = a?.[d];
2815
- if (g === null) return null;
2816
- const y = De(g) || De(m);
2814
+ const p = t?.[d], m = a?.[d];
2815
+ if (p === null) return null;
2816
+ const y = De(p) || De(m);
2817
2817
  return n[d][y];
2818
- }), c = t && Object.entries(t).reduce((d, g) => {
2819
- let [m, y] = g;
2818
+ }), l = t && Object.entries(t).reduce((d, p) => {
2819
+ let [m, y] = p;
2820
2820
  return y === void 0 || (d[m] = y), d;
2821
- }, {}), l = r == null || (o = r.compoundVariants) === null || o === void 0 ? void 0 : o.reduce((d, g) => {
2822
- let { class: m, className: y, ...z } = g;
2823
- return Object.entries(z).every((k) => {
2824
- let [S, R] = k;
2821
+ }, {}), c = r == null || (o = r.compoundVariants) === null || o === void 0 ? void 0 : o.reduce((d, p) => {
2822
+ let { class: m, className: y, ...S } = p;
2823
+ return Object.entries(S).every((k) => {
2824
+ let [z, R] = k;
2825
2825
  return Array.isArray(R) ? R.includes({
2826
2826
  ...a,
2827
- ...c
2828
- }[S]) : {
2827
+ ...l
2828
+ }[z]) : {
2829
2829
  ...a,
2830
- ...c
2831
- }[S] === R;
2830
+ ...l
2831
+ }[z] === R;
2832
2832
  }) ? [
2833
2833
  ...d,
2834
2834
  m,
2835
2835
  y
2836
2836
  ] : d;
2837
2837
  }, []);
2838
- return $e(e, i, l, t?.class, t?.className);
2838
+ return $e(e, i, c, t?.class, t?.className);
2839
2839
  }, nt = rr(
2840
2840
  "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
2841
2841
  {
@@ -2954,10 +2954,10 @@ const st = (e) => {
2954
2954
  truncate: n = !1,
2955
2955
  children: a,
2956
2956
  className: i,
2957
- as: c,
2958
- ...l
2957
+ as: l,
2958
+ ...c
2959
2959
  }) => {
2960
- const d = c || ct(e), g = h(
2960
+ const d = l || ct(e), p = h(
2961
2961
  "m-0",
2962
2962
  st(e),
2963
2963
  at(r),
@@ -2966,7 +2966,7 @@ const st = (e) => {
2966
2966
  n && "truncate",
2967
2967
  i
2968
2968
  );
2969
- return /* @__PURE__ */ s(d, { className: g, ...l, children: a });
2969
+ return /* @__PURE__ */ s(d, { className: p, ...c, children: a });
2970
2970
  };
2971
2971
  function ct(e) {
2972
2972
  switch (e) {
@@ -3027,29 +3027,29 @@ const dt = (e) => {
3027
3027
  padding: n = "md",
3028
3028
  shadow: a = "md",
3029
3029
  borderRadius: i = "md",
3030
- onClick: c
3030
+ onClick: l
3031
3031
  }) => {
3032
- const l = !!c, d = h(
3032
+ const c = !!l, d = h(
3033
3033
  "bg-card",
3034
3034
  dt(n),
3035
3035
  mt(a),
3036
3036
  ut(i),
3037
3037
  "transition-all duration-200 ease-in-out",
3038
- l && "cursor-pointer hover:-translate-y-0.5 hover:shadow-lg active:translate-y-0",
3038
+ c && "cursor-pointer hover:-translate-y-0.5 hover:shadow-lg active:translate-y-0",
3039
3039
  o
3040
3040
  );
3041
- return /* @__PURE__ */ x("div", { className: d, onClick: c, children: [
3041
+ return /* @__PURE__ */ x("div", { className: d, onClick: l, children: [
3042
3042
  (r || t) && /* @__PURE__ */ x("div", { className: "mb-4", children: [
3043
3043
  r && /* @__PURE__ */ s("div", { className: "mb-2", children: /* @__PURE__ */ s(P, { variant: "h3", children: r }) }),
3044
3044
  t && /* @__PURE__ */ s("div", { className: "text-muted-foreground", children: /* @__PURE__ */ s(P, { variant: "body-sm", color: "muted", children: t }) })
3045
3045
  ] }),
3046
3046
  /* @__PURE__ */ s("div", { className: "flex-1", children: e })
3047
3047
  ] });
3048
- }, gt = ({
3048
+ }, pt = ({
3049
3049
  children: e
3050
3050
  }) => /* @__PURE__ */ s("div", { className: "mt-4 pt-4 border-t border-border", children: e }), so = Object.assign(ft, {
3051
- Footer: gt
3052
- }), pt = (e) => {
3051
+ Footer: pt
3052
+ }), gt = (e) => {
3053
3053
  switch (e) {
3054
3054
  case "sm":
3055
3055
  return "max-w-md";
@@ -3070,28 +3070,28 @@ const dt = (e) => {
3070
3070
  size: n = "md",
3071
3071
  showCloseButton: a = !0,
3072
3072
  closeOnOverlayClick: i = !0,
3073
- closeOnEscape: c = !0
3073
+ closeOnEscape: l = !0
3074
3074
  }) => {
3075
- const l = ke.useRef(null);
3075
+ const c = ke.useRef(null);
3076
3076
  if (fe(() => {
3077
- if (!e || !c) return;
3078
- const k = (S) => {
3079
- S.key === "Escape" && r();
3077
+ if (!e || !l) return;
3078
+ const k = (z) => {
3079
+ z.key === "Escape" && r();
3080
3080
  };
3081
3081
  return document.addEventListener("keydown", k), () => document.removeEventListener("keydown", k);
3082
- }, [e, c, r]), fe(() => (e ? document.body.style.overflow = "hidden" : document.body.style.overflow = "unset", () => {
3082
+ }, [e, l, r]), fe(() => (e ? document.body.style.overflow = "hidden" : document.body.style.overflow = "unset", () => {
3083
3083
  document.body.style.overflow = "unset";
3084
3084
  }), [e]), fe(() => {
3085
- e && l.current && l.current.focus();
3085
+ e && c.current && c.current.focus();
3086
3086
  }, [e]), !e) return null;
3087
3087
  const d = h(
3088
3088
  "fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4"
3089
- ), g = h(
3089
+ ), p = h(
3090
3090
  "bg-card rounded-lg shadow-xl w-full max-h-[90vh] overflow-hidden flex flex-col",
3091
- pt(n)
3091
+ gt(n)
3092
3092
  ), m = h(
3093
3093
  "p-6 border-b border-border flex items-center justify-between"
3094
- ), y = h("p-6 overflow-y-auto flex-1"), z = h(
3094
+ ), y = h("p-6 overflow-y-auto flex-1"), S = h(
3095
3095
  "bg-none border-none text-xl cursor-pointer text-muted-foreground p-1 rounded-sm flex items-center justify-center hover:bg-accent hover:text-accent-foreground focus:outline-2 focus:outline-primary focus:outline-offset-2"
3096
3096
  );
3097
3097
  return /* @__PURE__ */ s(
@@ -3102,8 +3102,8 @@ const dt = (e) => {
3102
3102
  children: /* @__PURE__ */ x(
3103
3103
  "div",
3104
3104
  {
3105
- ref: l,
3106
- className: g,
3105
+ ref: c,
3106
+ className: p,
3107
3107
  onClick: (k) => k.stopPropagation(),
3108
3108
  tabIndex: -1,
3109
3109
  role: "dialog",
@@ -3117,7 +3117,7 @@ const dt = (e) => {
3117
3117
  {
3118
3118
  onClick: r,
3119
3119
  "aria-label": "Close modal",
3120
- className: z,
3120
+ className: S,
3121
3121
  children: "×"
3122
3122
  }
3123
3123
  )
@@ -3179,30 +3179,30 @@ function io(e, r, t = {}) {
3179
3179
  initialCategory: o = null,
3180
3180
  initialSort: n = null,
3181
3181
  enableSearch: a = !1
3182
- } = t, [i, c] = oe(
3182
+ } = t, [i, l] = oe(
3183
3183
  o
3184
- ), [l, d] = oe(n), [g, m] = oe(""), y = ge(() => xt(e, i), [e, i]), z = ge(() => {
3185
- if (!a || !g.trim())
3184
+ ), [c, d] = oe(n), [p, m] = oe(""), y = pe(() => xt(e, i), [e, i]), S = pe(() => {
3185
+ if (!a || !p.trim())
3186
3186
  return y;
3187
- const A = g.toLowerCase();
3187
+ const A = p.toLowerCase();
3188
3188
  return y.filter(
3189
3189
  (_) => _.title.toLowerCase().includes(A) || _.subtitle?.toLowerCase().includes(A)
3190
3190
  );
3191
- }, [y, g, a]), k = ge(() => l ? yt(z, l) : z, [z, l]), S = Pe(
3191
+ }, [y, p, a]), k = pe(() => c ? yt(S, c) : S, [S, c]), z = Pe(
3192
3192
  (A) => vt(e, A),
3193
3193
  [e]
3194
3194
  ), R = Pe(() => {
3195
- c(o), d(n), m("");
3195
+ l(o), d(n), m("");
3196
3196
  }, [o, n]);
3197
3197
  return {
3198
3198
  activeCategory: i,
3199
- setActiveCategory: c,
3200
- sort: l,
3199
+ setActiveCategory: l,
3200
+ sort: c,
3201
3201
  setSort: d,
3202
- searchQuery: g,
3202
+ searchQuery: p,
3203
3203
  setSearchQuery: m,
3204
3204
  filteredEntities: k,
3205
- getCategoryCount: S,
3205
+ getCategoryCount: z,
3206
3206
  resetFilters: R
3207
3207
  };
3208
3208
  }
@@ -3228,7 +3228,7 @@ const wt = rr(
3228
3228
  size: "default"
3229
3229
  }
3230
3230
  }
3231
- ), ze = C.forwardRef(
3231
+ ), Se = C.forwardRef(
3232
3232
  ({
3233
3233
  className: e,
3234
3234
  variant: r,
@@ -3237,22 +3237,22 @@ const wt = rr(
3237
3237
  selected: n,
3238
3238
  dismissible: a,
3239
3239
  onDismiss: i,
3240
- children: c,
3241
- disabled: l,
3240
+ children: l,
3241
+ disabled: c,
3242
3242
  ...d
3243
- }, g) => /* @__PURE__ */ x(
3243
+ }, p) => /* @__PURE__ */ x(
3244
3244
  "button",
3245
3245
  {
3246
3246
  type: "button",
3247
3247
  className: h(wt({ variant: n ? "selected" : r, size: t, className: e })),
3248
- ref: g,
3249
- disabled: l,
3250
- "aria-disabled": l ? "true" : void 0,
3248
+ ref: p,
3249
+ disabled: c,
3250
+ "aria-disabled": c ? "true" : void 0,
3251
3251
  "aria-pressed": n ? "true" : "false",
3252
3252
  ...d,
3253
3253
  children: [
3254
3254
  o && /* @__PURE__ */ s("span", { className: "mr-1.5 inline-flex items-center", "aria-hidden": "true", children: o }),
3255
- /* @__PURE__ */ s("span", { children: c }),
3255
+ /* @__PURE__ */ s("span", { children: l }),
3256
3256
  a && i && /* @__PURE__ */ s(
3257
3257
  "button",
3258
3258
  {
@@ -3269,7 +3269,7 @@ const wt = rr(
3269
3269
  }
3270
3270
  )
3271
3271
  );
3272
- ze.displayName = "Chip";
3272
+ Se.displayName = "Chip";
3273
3273
  const tr = C.forwardRef(
3274
3274
  ({
3275
3275
  categories: e,
@@ -3288,20 +3288,20 @@ const tr = C.forwardRef(
3288
3288
  "flex flex-wrap gap-2 overflow-x-auto pb-2",
3289
3289
  a
3290
3290
  ),
3291
- children: e.map((c) => {
3292
- const l = r === c.id, d = o && n ? n(c.id) : void 0;
3291
+ children: e.map((l) => {
3292
+ const c = r === l.id, d = o && n ? n(l.id) : void 0;
3293
3293
  return /* @__PURE__ */ x(
3294
- ze,
3294
+ Se,
3295
3295
  {
3296
3296
  role: "tab",
3297
- "aria-selected": l,
3298
- "aria-controls": `entities-panel-${c.id}`,
3299
- selected: l,
3300
- variant: l ? "selected" : "outline",
3301
- icon: c.icon,
3302
- onClick: () => t(l ? null : c.id),
3297
+ "aria-selected": c,
3298
+ "aria-controls": `entities-panel-${l.id}`,
3299
+ selected: c,
3300
+ variant: c ? "selected" : "outline",
3301
+ icon: typeof l.icon == "string" ? l.icon : l.icon ? C.createElement(l.icon) : void 0,
3302
+ onClick: () => t(c ? null : l.id),
3303
3303
  children: [
3304
- c.label,
3304
+ l.label,
3305
3305
  d !== void 0 && /* @__PURE__ */ x("span", { className: "ml-1.5 opacity-70", children: [
3306
3306
  "(",
3307
3307
  d,
@@ -3309,7 +3309,7 @@ const tr = C.forwardRef(
3309
3309
  ] })
3310
3310
  ]
3311
3311
  },
3312
- c.id
3312
+ l.id
3313
3313
  );
3314
3314
  })
3315
3315
  }
@@ -3339,7 +3339,7 @@ const kt = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Ct = (
3339
3339
  * This source code is licensed under the ISC license.
3340
3340
  * See the LICENSE file in the root directory of this source tree.
3341
3341
  */
3342
- var zt = {
3342
+ var St = {
3343
3343
  xmlns: "http://www.w3.org/2000/svg",
3344
3344
  width: 24,
3345
3345
  height: 24,
@@ -3356,7 +3356,7 @@ var zt = {
3356
3356
  * This source code is licensed under the ISC license.
3357
3357
  * See the LICENSE file in the root directory of this source tree.
3358
3358
  */
3359
- const St = Be(
3359
+ const zt = Be(
3360
3360
  ({
3361
3361
  color: e = "currentColor",
3362
3362
  size: r = 24,
@@ -3365,22 +3365,22 @@ const St = Be(
3365
3365
  className: n = "",
3366
3366
  children: a,
3367
3367
  iconNode: i,
3368
- ...c
3369
- }, l) => xe(
3368
+ ...l
3369
+ }, c) => xe(
3370
3370
  "svg",
3371
3371
  {
3372
- ref: l,
3373
- ...zt,
3372
+ ref: c,
3373
+ ...St,
3374
3374
  width: r,
3375
3375
  height: r,
3376
3376
  stroke: e,
3377
3377
  strokeWidth: o ? Number(t) * 24 / Number(r) : t,
3378
3378
  className: or("lucide", n),
3379
- ...!a && !Nt(c) && { "aria-hidden": "true" },
3380
- ...c
3379
+ ...!a && !Nt(l) && { "aria-hidden": "true" },
3380
+ ...l
3381
3381
  },
3382
3382
  [
3383
- ...i.map(([d, g]) => xe(d, g)),
3383
+ ...i.map(([d, p]) => xe(d, p)),
3384
3384
  ...Array.isArray(a) ? a : [a]
3385
3385
  ]
3386
3386
  )
@@ -3393,7 +3393,7 @@ const St = Be(
3393
3393
  */
3394
3394
  const O = (e, r) => {
3395
3395
  const t = Be(
3396
- ({ className: o, ...n }, a) => xe(St, {
3396
+ ({ className: o, ...n }, a) => xe(zt, {
3397
3397
  ref: a,
3398
3398
  iconNode: r,
3399
3399
  className: or(
@@ -3546,21 +3546,21 @@ const Gt = [
3546
3546
  showLikeButton: n = !0,
3547
3547
  showNavigation: a = !0
3548
3548
  }) => {
3549
- const [i, c] = oe(0), [l, d] = oe(!1), g = () => {
3550
- c(
3549
+ const [i, l] = oe(0), [c, d] = oe(!1), p = () => {
3550
+ l(
3551
3551
  (w) => w === e.images.length - 1 ? 0 : w + 1
3552
3552
  );
3553
3553
  }, m = () => {
3554
- c(
3554
+ l(
3555
3555
  (w) => w === 0 ? e.images.length - 1 : w - 1
3556
3556
  );
3557
3557
  }, y = (w) => {
3558
3558
  w.preventDefault(), w.stopPropagation();
3559
- const N = !l;
3559
+ const N = !c;
3560
3560
  d(N), t?.(e.id, N);
3561
- }, z = (w) => {
3561
+ }, S = (w) => {
3562
3562
  w.preventDefault(), w.stopPropagation(), o?.(i, e.id);
3563
- }, k = (w, N) => !w || !N ? "Price not available" : `$${w.toLocaleString()} ${N}`, S = h(
3563
+ }, k = (w, N) => !w || !N ? "Price not available" : `$${w.toLocaleString()} ${N}`, z = h(
3564
3564
  "relative overflow-hidden bg-card rounded-2xl shadow-md transition-all duration-300 ease-out cursor-pointer hover:-translate-y-1 hover:shadow-xl",
3565
3565
  r
3566
3566
  ), R = h("relative overflow-hidden"), A = h(
@@ -3579,7 +3579,7 @@ const Gt = [
3579
3579
  "text-lg font-bold text-foreground mb-2 line-clamp-2 leading-tight"
3580
3580
  ), J = h("text-xl font-bold text-primary mb-2"), X = h("text-base text-muted-foreground mb-4"), H = h("flex items-center gap-4 mb-4"), B = h(
3581
3581
  "flex items-center gap-1 text-sm text-muted-foreground"
3582
- ), q = h("text-sm text-muted-foreground line-clamp-2"), $ = /* @__PURE__ */ x("div", { className: S, children: [
3582
+ ), q = h("text-sm text-muted-foreground line-clamp-2"), $ = /* @__PURE__ */ x("div", { className: z, children: [
3583
3583
  /* @__PURE__ */ x("div", { className: h(R, "aspect-[4/3] bg-red-500"), children: [
3584
3584
  /* @__PURE__ */ s(
3585
3585
  "img",
@@ -3587,7 +3587,7 @@ const Gt = [
3587
3587
  src: e.images[i],
3588
3588
  alt: e.title,
3589
3589
  className: A,
3590
- onClick: o ? z : void 0
3590
+ onClick: o ? S : void 0
3591
3591
  }
3592
3592
  ),
3593
3593
  /* @__PURE__ */ s("div", { className: _, children: e.transactionTypes.map((w, N) => /* @__PURE__ */ s(
@@ -3606,13 +3606,13 @@ const Gt = [
3606
3606
  {
3607
3607
  onClick: y,
3608
3608
  className: I,
3609
- "aria-label": l ? "Unlike property" : "Like property",
3609
+ "aria-label": c ? "Unlike property" : "Like property",
3610
3610
  children: /* @__PURE__ */ s(
3611
3611
  Ft,
3612
3612
  {
3613
3613
  size: 20,
3614
- fill: l ? "currentColor" : "none",
3615
- className: l ? "text-destructive" : ""
3614
+ fill: c ? "currentColor" : "none",
3615
+ className: c ? "text-destructive" : ""
3616
3616
  }
3617
3617
  )
3618
3618
  }
@@ -3633,7 +3633,7 @@ const Gt = [
3633
3633
  K,
3634
3634
  {
3635
3635
  onClick: (w) => {
3636
- w.preventDefault(), w.stopPropagation(), g();
3636
+ w.preventDefault(), w.stopPropagation(), p();
3637
3637
  },
3638
3638
  className: h(j, "right-4"),
3639
3639
  "aria-label": "Next image",
@@ -3647,8 +3647,8 @@ const Gt = [
3647
3647
  G,
3648
3648
  N === i ? "bg-background" : "bg-background/50"
3649
3649
  ),
3650
- onClick: (p) => {
3651
- p.preventDefault(), p.stopPropagation(), c(N);
3650
+ onClick: (g) => {
3651
+ g.preventDefault(), g.stopPropagation(), l(N);
3652
3652
  },
3653
3653
  "aria-label": `Go to image ${N + 1}`,
3654
3654
  "aria-current": N === i
@@ -3699,7 +3699,7 @@ const Gt = [
3699
3699
  onImageClick: n,
3700
3700
  className: a
3701
3701
  }, i) => {
3702
- const c = e.slice(0, 5), l = (d) => {
3702
+ const l = e.slice(0, 5), c = (d) => {
3703
3703
  n?.(d);
3704
3704
  };
3705
3705
  return /* @__PURE__ */ x(
@@ -3708,53 +3708,53 @@ const Gt = [
3708
3708
  ref: i,
3709
3709
  className: h("w-full h-full grid grid-cols-2 gap-2", a),
3710
3710
  children: [
3711
- /* @__PURE__ */ s("div", { className: "relative col-span-1 row-span-2 rounded-2xl overflow-hidden group cursor-pointer", children: c[0] ? /* @__PURE__ */ x(de, { children: [
3711
+ /* @__PURE__ */ s("div", { className: "relative col-span-1 row-span-2 rounded-2xl overflow-hidden group cursor-pointer", children: l[0] ? /* @__PURE__ */ x(de, { children: [
3712
3712
  /* @__PURE__ */ s(
3713
3713
  "img",
3714
3714
  {
3715
- src: c[0],
3715
+ src: l[0],
3716
3716
  alt: "Property main view",
3717
3717
  className: "w-full h-full object-cover transition-transform duration-300 group-hover:scale-105",
3718
- onClick: () => l(0)
3718
+ onClick: () => c(0)
3719
3719
  }
3720
3720
  ),
3721
3721
  r && /* @__PURE__ */ s("div", { className: "absolute top-4 left-4 bg-white rounded-full px-4 py-2 shadow-md", children: /* @__PURE__ */ s("span", { className: "text-sm font-medium text-foreground", children: r }) })
3722
3722
  ] }) : /* @__PURE__ */ s("div", { className: "w-full h-full bg-muted flex items-center justify-center", children: /* @__PURE__ */ s("span", { className: "text-muted-foreground", children: "No image" }) }) }),
3723
- /* @__PURE__ */ s("div", { className: "relative col-span-1 row-span-1 rounded-2xl overflow-hidden group cursor-pointer", children: c[1] ? /* @__PURE__ */ s(
3723
+ /* @__PURE__ */ s("div", { className: "relative col-span-1 row-span-1 rounded-2xl overflow-hidden group cursor-pointer", children: l[1] ? /* @__PURE__ */ s(
3724
3724
  "img",
3725
3725
  {
3726
- src: c[1],
3726
+ src: l[1],
3727
3727
  alt: "Property view 2",
3728
3728
  className: "w-full h-full object-cover transition-transform duration-300 group-hover:scale-105",
3729
- onClick: () => l(1)
3729
+ onClick: () => c(1)
3730
3730
  }
3731
3731
  ) : /* @__PURE__ */ s("div", { className: "w-full h-full bg-muted" }) }),
3732
- /* @__PURE__ */ s("div", { className: "relative col-span-1 row-span-1 rounded-2xl overflow-hidden group cursor-pointer", children: c[2] ? /* @__PURE__ */ s(
3732
+ /* @__PURE__ */ s("div", { className: "relative col-span-1 row-span-1 rounded-2xl overflow-hidden group cursor-pointer", children: l[2] ? /* @__PURE__ */ s(
3733
3733
  "img",
3734
3734
  {
3735
- src: c[2],
3735
+ src: l[2],
3736
3736
  alt: "Property view 3",
3737
3737
  className: "w-full h-full object-cover transition-transform duration-300 group-hover:scale-105",
3738
- onClick: () => l(2)
3738
+ onClick: () => c(2)
3739
3739
  }
3740
3740
  ) : /* @__PURE__ */ s("div", { className: "w-full h-full bg-muted" }) }),
3741
- /* @__PURE__ */ s("div", { className: "relative col-span-1 row-span-1 rounded-2xl overflow-hidden group cursor-pointer", children: c[3] ? /* @__PURE__ */ s(
3741
+ /* @__PURE__ */ s("div", { className: "relative col-span-1 row-span-1 rounded-2xl overflow-hidden group cursor-pointer", children: l[3] ? /* @__PURE__ */ s(
3742
3742
  "img",
3743
3743
  {
3744
- src: c[3],
3744
+ src: l[3],
3745
3745
  alt: "Property view 4",
3746
3746
  className: "w-full h-full object-cover transition-transform duration-300 group-hover:scale-105",
3747
- onClick: () => l(3)
3747
+ onClick: () => c(3)
3748
3748
  }
3749
3749
  ) : /* @__PURE__ */ s("div", { className: "w-full h-full bg-muted" }) }),
3750
- /* @__PURE__ */ s("div", { className: "relative col-span-1 row-span-1 rounded-2xl overflow-hidden group cursor-pointer", children: c[4] ? /* @__PURE__ */ x(de, { children: [
3750
+ /* @__PURE__ */ s("div", { className: "relative col-span-1 row-span-1 rounded-2xl overflow-hidden group cursor-pointer", children: l[4] ? /* @__PURE__ */ x(de, { children: [
3751
3751
  /* @__PURE__ */ s(
3752
3752
  "img",
3753
3753
  {
3754
- src: c[4],
3754
+ src: l[4],
3755
3755
  alt: "Property view 5",
3756
3756
  className: "w-full h-full object-cover transition-transform duration-300 group-hover:scale-105",
3757
- onClick: () => l(4)
3757
+ onClick: () => c(4)
3758
3758
  }
3759
3759
  ),
3760
3760
  t && t > 5 && /* @__PURE__ */ s("div", { className: "absolute bottom-4 right-4", children: /* @__PURE__ */ x(
@@ -3782,8 +3782,8 @@ const Gt = [
3782
3782
  );
3783
3783
  Ut.displayName = "PropertyGallery";
3784
3784
  const nr = C.forwardRef(({ title: e, description: r, className: t }, o) => /* @__PURE__ */ x("div", { ref: o, className: h("space-y-1.5", t), children: [
3785
- /* @__PURE__ */ s(P, { variant: "heading", size: "2xl", className: "font-bold", children: e }),
3786
- r && /* @__PURE__ */ s(P, { variant: "body", size: "base", className: "text-muted-foreground", children: r })
3785
+ /* @__PURE__ */ s(P, { variant: "h2", className: "font-bold", children: e }),
3786
+ r && /* @__PURE__ */ s(P, { variant: "body", className: "text-muted-foreground", children: r })
3787
3787
  ] }));
3788
3788
  nr.displayName = "EntityDirectoryHeader";
3789
3789
  const sr = C.forwardRef(
@@ -3795,19 +3795,19 @@ const sr = C.forwardRef(
3795
3795
  showMetric: n = !0,
3796
3796
  compact: a = !1,
3797
3797
  className: i
3798
- }, c) => {
3799
- const l = r?.find((y) => y.id === e.categoryId), d = !!e.onClick, g = () => {
3798
+ }, l) => {
3799
+ const c = r?.find((y) => y.id === e.categoryId), d = !!e.onClick, p = () => {
3800
3800
  e.onClick && !e.disabled && e.onClick();
3801
3801
  }, m = (y) => {
3802
- d && (y.key === "Enter" || y.key === " ") && (y.preventDefault(), g());
3802
+ d && (y.key === "Enter" || y.key === " ") && (y.preventDefault(), p());
3803
3803
  };
3804
3804
  return /* @__PURE__ */ x(
3805
3805
  "div",
3806
3806
  {
3807
- ref: c,
3807
+ ref: l,
3808
3808
  role: d ? "button" : "listitem",
3809
3809
  tabIndex: d && !e.disabled ? 0 : void 0,
3810
- onClick: g,
3810
+ onClick: p,
3811
3811
  onKeyDown: m,
3812
3812
  "aria-disabled": e.disabled,
3813
3813
  className: h(
@@ -3826,15 +3826,14 @@ const sr = C.forwardRef(
3826
3826
  a ? "w-8 h-8 text-lg" : "w-10 h-10 text-xl"
3827
3827
  ),
3828
3828
  "aria-hidden": "true",
3829
- children: typeof e.icon == "string" ? /* @__PURE__ */ s("span", { children: e.icon }) : e.icon ? e.icon : /* @__PURE__ */ s("span", { className: "text-muted-foreground", children: "•" })
3829
+ children: typeof e.icon == "string" ? /* @__PURE__ */ s("span", { children: e.icon }) : e.icon ? C.createElement(e.icon) : /* @__PURE__ */ s("span", { className: "text-muted-foreground", children: "•" })
3830
3830
  }
3831
3831
  ),
3832
3832
  /* @__PURE__ */ x("div", { className: "flex-1 min-w-0", children: [
3833
3833
  /* @__PURE__ */ s(
3834
3834
  P,
3835
3835
  {
3836
- variant: "body",
3837
- size: a ? "sm" : "base",
3836
+ variant: a ? "body-sm" : "body",
3838
3837
  className: "font-semibold truncate",
3839
3838
  children: e.title
3840
3839
  }
@@ -3842,34 +3841,32 @@ const sr = C.forwardRef(
3842
3841
  e.subtitle && /* @__PURE__ */ s(
3843
3842
  P,
3844
3843
  {
3845
- variant: "body",
3846
- size: a ? "xs" : "sm",
3844
+ variant: a ? "caption" : "body-sm",
3847
3845
  className: "text-muted-foreground truncate",
3848
3846
  children: e.subtitle
3849
3847
  }
3850
3848
  )
3851
3849
  ] }),
3852
- o && l && /* @__PURE__ */ s(
3853
- ze,
3850
+ o && c && /* @__PURE__ */ s(
3851
+ Se,
3854
3852
  {
3855
3853
  variant: "secondary",
3856
3854
  size: a ? "sm" : "default",
3857
3855
  className: "flex-shrink-0 bg-foreground text-background hover:bg-foreground/90",
3858
- "aria-label": `Category: ${l.label}`,
3859
- children: l.label
3856
+ "aria-label": `Category: ${c.label}`,
3857
+ children: c.label
3860
3858
  }
3861
3859
  ),
3862
3860
  n && e.metricValue && /* @__PURE__ */ x("div", { className: "flex-shrink-0 text-right min-w-[4rem]", children: [
3863
3861
  /* @__PURE__ */ s(
3864
3862
  P,
3865
3863
  {
3866
- variant: "body",
3867
- size: a ? "sm" : "base",
3864
+ variant: a ? "body-sm" : "body",
3868
3865
  className: "font-medium",
3869
3866
  children: e.metricValue
3870
3867
  }
3871
3868
  ),
3872
- e.metricLabel && /* @__PURE__ */ s(P, { variant: "body", size: "xs", className: "text-muted-foreground", children: e.metricLabel })
3869
+ e.metricLabel && /* @__PURE__ */ s(P, { variant: "caption", className: "text-muted-foreground", children: e.metricLabel })
3873
3870
  ] })
3874
3871
  ]
3875
3872
  }
@@ -3878,18 +3875,18 @@ const sr = C.forwardRef(
3878
3875
  );
3879
3876
  sr.displayName = "EntityDirectoryListItem";
3880
3877
  const ar = C.forwardRef(({ columns: e, showIcon: r, sort: t, onSortChange: o, compact: n, className: a }, i) => {
3881
- const c = (m) => {
3878
+ const l = (m) => {
3882
3879
  if (!o) return;
3883
3880
  const y = t?.column === m && t?.direction === "asc" ? "desc" : "asc";
3884
3881
  o({
3885
3882
  column: m,
3886
3883
  direction: y
3887
3884
  });
3888
- }, l = (m) => {
3889
- c(m);
3885
+ }, c = (m) => {
3886
+ l(m);
3890
3887
  }, d = (m, y) => {
3891
- (m.key === "Enter" || m.key === " ") && (m.preventDefault(), c(y));
3892
- }, g = (m) => m !== "title" && m !== "metric" ? null : !t || t.column !== m ? /* @__PURE__ */ s("span", { className: "ml-1 text-muted-foreground opacity-50", "aria-hidden": "true", children: "⇅" }) : /* @__PURE__ */ s("span", { className: "ml-1", "aria-hidden": "true", children: t.direction === "asc" ? "↑" : "↓" });
3888
+ (m.key === "Enter" || m.key === " ") && (m.preventDefault(), l(y));
3889
+ }, p = (m) => m !== "title" && m !== "metric" ? null : !t || t.column !== m ? /* @__PURE__ */ s("span", { className: "ml-1 text-muted-foreground opacity-50", "aria-hidden": "true", children: "⇅" }) : /* @__PURE__ */ s("span", { className: "ml-1", "aria-hidden": "true", children: t.direction === "asc" ? "↑" : "↓" });
3893
3890
  return /* @__PURE__ */ x(
3894
3891
  "div",
3895
3892
  {
@@ -3903,12 +3900,12 @@ const ar = C.forwardRef(({ columns: e, showIcon: r, sort: t, onSortChange: o, co
3903
3900
  children: [
3904
3901
  r && /* @__PURE__ */ s("div", { className: n ? "w-8" : "w-10" }),
3905
3902
  e.map((m) => {
3906
- const y = m.sortable && (m.key === "title" || m.key === "metric"), z = t?.column === m.key;
3903
+ const y = m.sortable && (m.key === "title" || m.key === "metric"), S = t?.column === m.key;
3907
3904
  return /* @__PURE__ */ x(
3908
3905
  "div",
3909
3906
  {
3910
3907
  role: "columnheader",
3911
- "aria-sort": z ? t?.direction === "asc" ? "ascending" : "descending" : void 0,
3908
+ "aria-sort": S ? t?.direction === "asc" ? "ascending" : "descending" : void 0,
3912
3909
  className: h(
3913
3910
  m.key === "title" && "flex-1",
3914
3911
  m.key === "category" && "w-40",
@@ -3916,15 +3913,15 @@ const ar = C.forwardRef(({ columns: e, showIcon: r, sort: t, onSortChange: o, co
3916
3913
  m.align === "center" && "text-center",
3917
3914
  m.align === "right" && "text-right",
3918
3915
  y && "cursor-pointer hover:text-foreground transition-colors select-none",
3919
- z && "text-foreground"
3916
+ S && "text-foreground"
3920
3917
  ),
3921
3918
  style: m.width ? { width: m.width } : void 0,
3922
- onClick: y && (m.key === "title" || m.key === "metric") ? () => l(m.key) : void 0,
3919
+ onClick: y && (m.key === "title" || m.key === "metric") ? () => c(m.key) : void 0,
3923
3920
  tabIndex: y ? 0 : void 0,
3924
3921
  onKeyDown: y && (m.key === "title" || m.key === "metric") ? (k) => d(k, m.key) : void 0,
3925
3922
  children: [
3926
3923
  m.label,
3927
- y && g(m.key)
3924
+ y && p(m.key)
3928
3925
  ]
3929
3926
  },
3930
3927
  m.key
@@ -3944,13 +3941,13 @@ const ir = C.forwardRef(
3944
3941
  showMetric: n = !0,
3945
3942
  metricLabel: a,
3946
3943
  sortable: i = !1,
3947
- sort: c,
3948
- onSortChange: l,
3944
+ sort: l,
3945
+ onSortChange: c,
3949
3946
  compact: d = !1,
3950
- renderItem: g,
3947
+ renderItem: p,
3951
3948
  className: m
3952
3949
  }, y) => {
3953
- const z = [
3950
+ const S = [
3954
3951
  {
3955
3952
  key: "title",
3956
3953
  label: a ? "Nombre" : "Name",
@@ -3977,15 +3974,15 @@ const ir = C.forwardRef(
3977
3974
  /* @__PURE__ */ s(
3978
3975
  ar,
3979
3976
  {
3980
- columns: z,
3977
+ columns: S,
3981
3978
  showIcon: t,
3982
- sort: c,
3983
- onSortChange: l,
3979
+ sort: l,
3980
+ onSortChange: c,
3984
3981
  compact: d
3985
3982
  }
3986
3983
  ),
3987
3984
  /* @__PURE__ */ s("div", { role: "rowgroup", children: e.map(
3988
- (k) => g ? /* @__PURE__ */ s(C.Fragment, { children: g(k) }, k.id) : /* @__PURE__ */ s(
3985
+ (k) => p ? /* @__PURE__ */ s(C.Fragment, { children: p(k) }, k.id) : /* @__PURE__ */ s(
3989
3986
  sr,
3990
3987
  {
3991
3988
  entity: k,
@@ -4016,7 +4013,7 @@ const lr = C.forwardRef(({ message: e = "No entities found", icon: r, action: t,
4016
4013
  ),
4017
4014
  children: [
4018
4015
  r && /* @__PURE__ */ s("div", { className: "mb-4 text-4xl opacity-50", "aria-hidden": "true", children: r }),
4019
- /* @__PURE__ */ s(P, { variant: "body", size: "lg", className: "text-muted-foreground mb-4", children: e }),
4016
+ /* @__PURE__ */ s(P, { variant: "body-lg", className: "text-muted-foreground mb-4", children: e }),
4020
4017
  t && /* @__PURE__ */ s(K, { variant: "outline", onClick: t.onClick, children: t.label })
4021
4018
  ]
4022
4019
  }
@@ -4036,8 +4033,8 @@ const cr = C.forwardRef(({ error: e, onRetry: r, className: t }, o) => {
4036
4033
  ),
4037
4034
  children: [
4038
4035
  /* @__PURE__ */ s("div", { className: "mb-4 text-4xl", "aria-hidden": "true", children: "⚠️" }),
4039
- /* @__PURE__ */ s(P, { variant: "body", size: "lg", className: "text-destructive mb-2 font-semibold", children: "Error" }),
4040
- /* @__PURE__ */ s(P, { variant: "body", size: "base", className: "text-muted-foreground mb-4", children: n }),
4036
+ /* @__PURE__ */ s(P, { variant: "body-lg", className: "text-destructive mb-2 font-semibold", children: "Error" }),
4037
+ /* @__PURE__ */ s(P, { variant: "body", className: "text-muted-foreground mb-4", children: n }),
4041
4038
  r && /* @__PURE__ */ s(K, { variant: "outline", onClick: r, children: "Try Again" })
4042
4039
  ]
4043
4040
  }
@@ -4150,15 +4147,15 @@ const Ot = C.forwardRef(
4150
4147
  activeCategory: n,
4151
4148
  onCategoryChange: a,
4152
4149
  showCategoryCount: i,
4153
- getCategoryCount: c,
4154
- enableSearch: l = !1,
4150
+ getCategoryCount: l,
4151
+ enableSearch: c = !1,
4155
4152
  searchQuery: d = "",
4156
- onSearchChange: g,
4153
+ onSearchChange: p,
4157
4154
  searchPlaceholder: m,
4158
4155
  sortable: y = !1,
4159
- sort: z,
4156
+ sort: S,
4160
4157
  onSortChange: k,
4161
- showIcons: S = !0,
4158
+ showIcons: z = !0,
4162
4159
  showCategoryBadges: R = !0,
4163
4160
  showMetric: A = !0,
4164
4161
  metricLabel: _,
@@ -4190,14 +4187,14 @@ const Ot = C.forwardRef(
4190
4187
  activeCategory: n,
4191
4188
  onCategoryChange: a,
4192
4189
  showCount: i,
4193
- getCategoryCount: c
4190
+ getCategoryCount: l
4194
4191
  }
4195
4192
  ),
4196
- l && g && /* @__PURE__ */ s(
4193
+ c && p && /* @__PURE__ */ s(
4197
4194
  mr,
4198
4195
  {
4199
4196
  value: d,
4200
- onChange: g,
4197
+ onChange: p,
4201
4198
  placeholder: m
4202
4199
  }
4203
4200
  ),
@@ -4209,12 +4206,12 @@ const Ot = C.forwardRef(
4209
4206
  {
4210
4207
  entities: e,
4211
4208
  categories: r,
4212
- showIcons: S,
4209
+ showIcons: z,
4213
4210
  showCategoryBadges: R,
4214
4211
  showMetric: A,
4215
4212
  metricLabel: _,
4216
4213
  sortable: y,
4217
- sort: z,
4214
+ sort: S,
4218
4215
  onSortChange: k,
4219
4216
  compact: F,
4220
4217
  renderItem: X
@@ -4237,32 +4234,32 @@ const qt = (e) => {
4237
4234
  default:
4238
4235
  return "p-0";
4239
4236
  }
4240
- }, Se = ({
4237
+ }, ze = ({
4241
4238
  children: e,
4242
4239
  header: r,
4243
4240
  sidebar: t,
4244
4241
  footer: o,
4245
4242
  padding: n = "md"
4246
4243
  }) => {
4247
- const a = h("min-h-screen flex flex-col"), i = h("bg-card border-b border-border z-10"), c = h("flex flex-1"), l = h("w-70 bg-card border-r border-border p-6"), d = h("flex-1 flex flex-col"), g = h(
4244
+ const a = h("min-h-screen flex flex-col"), i = h("bg-card border-b border-border z-10"), l = h("flex flex-1"), c = h("w-70 bg-card border-r border-border p-6"), d = h("flex-1 flex flex-col"), p = h(
4248
4245
  "flex-1 mx-auto w-full max-w-7xl",
4249
4246
  qt(n)
4250
4247
  );
4251
4248
  return /* @__PURE__ */ x("div", { className: a, children: [
4252
4249
  r && /* @__PURE__ */ s("header", { className: i, children: r }),
4253
- /* @__PURE__ */ x("div", { className: c, children: [
4254
- t && /* @__PURE__ */ s("aside", { className: l, children: t }),
4255
- /* @__PURE__ */ s("div", { className: d, children: /* @__PURE__ */ s("main", { className: g, children: e }) })
4250
+ /* @__PURE__ */ x("div", { className: l, children: [
4251
+ t && /* @__PURE__ */ s("aside", { className: c, children: t }),
4252
+ /* @__PURE__ */ s("div", { className: d, children: /* @__PURE__ */ s("main", { className: p, children: e }) })
4256
4253
  ] }),
4257
4254
  o && /* @__PURE__ */ s("footer", { className: "bg-card border-t border-border mt-auto", children: o })
4258
4255
  ] });
4259
- }, co = ({ children: e, header: r, sidebar: t }) => /* @__PURE__ */ s(Se, { header: r, sidebar: t, padding: "lg", children: /* @__PURE__ */ s("div", { className: "max-w-screen-2xl", children: e }) }), mo = ({ children: e, title: r, subtitle: t }) => /* @__PURE__ */ s(Se, { padding: "lg", children: /* @__PURE__ */ x("div", { className: "max-w-md mx-auto", children: [
4256
+ }, co = ({ children: e, header: r, sidebar: t }) => /* @__PURE__ */ s(ze, { header: r, sidebar: t, padding: "lg", children: /* @__PURE__ */ s("div", { className: "max-w-screen-2xl", children: e }) }), mo = ({ children: e, title: r, subtitle: t }) => /* @__PURE__ */ s(ze, { padding: "lg", children: /* @__PURE__ */ x("div", { className: "max-w-md mx-auto", children: [
4260
4257
  /* @__PURE__ */ x("div", { className: "text-center mb-8", children: [
4261
4258
  r && /* @__PURE__ */ s(P, { variant: "h2", className: "mb-2", children: r }),
4262
4259
  t && /* @__PURE__ */ s(P, { variant: "body", color: "muted", children: t })
4263
4260
  ] }),
4264
4261
  e
4265
- ] }) }), uo = ({ children: e, header: r, footer: t }) => /* @__PURE__ */ s(Se, { header: r, footer: t, padding: "none", children: e }), Zt = {
4262
+ ] }) }), uo = ({ children: e, header: r, footer: t }) => /* @__PURE__ */ s(ze, { header: r, footer: t, padding: "none", children: e }), Zt = {
4266
4263
  name: "light",
4267
4264
  colors: {
4268
4265
  primary: "#007bff",
@@ -4531,19 +4528,19 @@ const qt = (e) => {
4531
4528
  dark: Kt,
4532
4529
  corporate: Qt,
4533
4530
  minimal: Jt
4534
- }, Xt = Ce(), Yt = Ce(), eo = Ce(), Q = pr(be.light).on(Xt, (e, r) => be[r] || e).on(Yt, (e, r) => r).on(eo, () => be.light), fo = Q.map((e) => e.name), go = Q.map((e) => e.colors);
4531
+ }, Xt = Ce(), Yt = Ce(), eo = Ce(), Q = gr(be.light).on(Xt, (e, r) => be[r] || e).on(Yt, (e, r) => r).on(eo, () => be.light), fo = Q.map((e) => e.name), po = Q.map((e) => e.colors);
4535
4532
  Q.map((e) => e.shapes);
4536
4533
  Q.map((e) => e.typography);
4537
4534
  Q.map((e) => e.spacing);
4538
4535
  Q.map((e) => e.shadows);
4539
- const ur = ke.createContext(null), po = () => {
4536
+ const ur = ke.createContext(null), go = () => {
4540
4537
  const e = fr(ur);
4541
4538
  if (!e)
4542
4539
  throw new Error("useTheme must be used within a ThemeProvider");
4543
4540
  return e;
4544
4541
  }, ho = ({ children: e }) => {
4545
4542
  const t = {
4546
- theme: gr(Q)
4543
+ theme: pr(Q)
4547
4544
  };
4548
4545
  return /* @__PURE__ */ s(ur.Provider, { value: t, children: e });
4549
4546
  }, bo = {
@@ -4779,7 +4776,7 @@ const ur = ke.createContext(null), po = () => {
4779
4776
  col: "flex flex-col",
4780
4777
  colCenter: "flex flex-col items-center justify-center"
4781
4778
  }
4782
- }, zo = {
4779
+ }, So = {
4783
4780
  /**
4784
4781
  * Check if dark mode is active
4785
4782
  */
@@ -4796,7 +4793,7 @@ const ur = ke.createContext(null), po = () => {
4796
4793
  set: (e) => {
4797
4794
  typeof window > "u" || document.documentElement.classList.toggle("dark", e === "dark");
4798
4795
  }
4799
- }, So = {
4796
+ }, zo = {
4800
4797
  /**
4801
4798
  * Debounce function for performance optimization
4802
4799
  */
@@ -4825,13 +4822,13 @@ const ur = ke.createContext(null), po = () => {
4825
4822
  );
4826
4823
  export {
4827
4824
  Q as $theme,
4828
- go as $themeColors,
4825
+ po as $themeColors,
4829
4826
  fo as $themeName,
4830
4827
  mo as AuthLayout,
4831
4828
  K as Button,
4832
4829
  ft as Card,
4833
4830
  tr as CategoryChips,
4834
- ze as Chip,
4831
+ Se as Chip,
4835
4832
  so as CompoundCard,
4836
4833
  ao as ConfirmModal,
4837
4834
  co as DashboardLayout,
@@ -4839,7 +4836,7 @@ export {
4839
4836
  uo as MarketingLayout,
4840
4837
  ht as Modal,
4841
4838
  bt as ModalWithActions,
4842
- Se as PageLayout,
4839
+ ze as PageLayout,
4843
4840
  lo as PropertyCard,
4844
4841
  Ut as PropertyGallery,
4845
4842
  Eo as SkipLink,
@@ -4860,18 +4857,18 @@ export {
4860
4857
  xt as filterEntitiesByCategory,
4861
4858
  No as layout,
4862
4859
  No as layoutUtils,
4863
- So as performance,
4864
- So as performanceUtils,
4860
+ zo as performance,
4861
+ zo as performanceUtils,
4865
4862
  eo as resetTheme,
4866
4863
  yo as responsiveBreakpoints,
4867
4864
  Yt as setCustomTheme,
4868
4865
  Xt as setTheme,
4869
4866
  ko as sizes,
4870
4867
  yt as sortEntities,
4871
- zo as theme,
4872
- zo as themeUtils,
4868
+ So as theme,
4869
+ So as themeUtils,
4873
4870
  io as useEntityFilter,
4874
- po as useTheme,
4871
+ go as useTheme,
4875
4872
  xo as variants
4876
4873
  };
4877
4874
  //# sourceMappingURL=design-system.es.js.map