fiboui 2.4.2 → 2.4.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.
@@ -1,39 +1,39 @@
1
1
  "use client";
2
- var oe = Object.defineProperty;
3
- var le = (n, s, e) => s in n ? oe(n, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[s] = e;
4
- var i = (n, s, e) => le(n, typeof s != "symbol" ? s + "" : s, e);
5
- import t, { useState as D, useRef as L, useLayoutEffect as Q, useEffect as ce } from "react";
6
- import { B as w, D as I, N as T, Q as Z } from "./builder-CCVmfPD1.js";
7
- import { B as C } from "./index-Bdphg-MS.js";
8
- import { t as de } from "./bundle-mjs-wppB-TKB.js";
9
- import { T as me } from "./index-BVpNTDKn.js";
10
- const he = t.memo((n) => {
11
- const { text: s, subtitle: e, number: r, color: d, className: p, style: c, children: u, ...g } = n;
12
- return t.createElement(
2
+ var le = Object.defineProperty;
3
+ var ce = (n, t, e) => t in n ? le(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
4
+ var i = (n, t, e) => ce(n, typeof t != "symbol" ? t + "" : t, e);
5
+ import s, { useState as X, useRef as L, useLayoutEffect as Z, useEffect as de } from "react";
6
+ import { D as w, E as I, Q as T, T as q } from "./builder-B5cebEWZ.js";
7
+ import { B as $ } from "./index-orKQGpHl.js";
8
+ import { t as me } from "./bundle-mjs-wppB-TKB.js";
9
+ import { T as he } from "./index-DbaNIwWW.js";
10
+ const ue = s.memo((n) => {
11
+ const { text: t, subtitle: e, number: r, color: d, className: p, style: c, children: u, ...g } = n;
12
+ return s.createElement(
13
13
  "div",
14
14
  {
15
15
  className: `rounded-[24px] shadow-[0_8px_30px_rgb(0,0,0,0.04)] hover:shadow-[0_8px_30px_rgb(0,0,0,0.08)] transition-shadow duration-300 border-none p-4 ${p || ""}`,
16
16
  style: { backgroundColor: "#ffffff", ...c },
17
17
  ...g
18
18
  },
19
- t.createElement(
19
+ s.createElement(
20
20
  "div",
21
21
  { className: "flex flex-col gap-2" },
22
- s && t.createElement(
22
+ t && s.createElement(
23
23
  "h3",
24
24
  {
25
25
  className: "font-semibold text-[var(--fibo-on-surface-variant)] text-sm uppercase tracking-wide"
26
26
  },
27
- s
27
+ t
28
28
  ),
29
- r && t.createElement(
29
+ r && s.createElement(
30
30
  "p",
31
31
  {
32
32
  className: "font-bold text-[var(--fibo-on-surface)] text-3xl"
33
33
  },
34
34
  r
35
35
  ),
36
- e && t.createElement(
36
+ e && s.createElement(
37
37
  "p",
38
38
  {
39
39
  className: "text-[var(--fibo-on-surface-variant)] text-xs"
@@ -44,7 +44,7 @@ const he = t.memo((n) => {
44
44
  )
45
45
  );
46
46
  });
47
- class ue extends I {
47
+ class pe extends I {
48
48
  constructor() {
49
49
  super(...arguments);
50
50
  i(this, "_text", "");
@@ -85,56 +85,60 @@ class ue extends I {
85
85
  children: this.processChildren(),
86
86
  ...this._props
87
87
  };
88
- return t.createElement(he, d);
88
+ return s.createElement(ue, d);
89
89
  }
90
90
  }
91
- const Ge = w(ue);
91
+ const Me = w(pe);
92
92
  class V {
93
93
  constructor() {
94
94
  i(this, "styles", /* @__PURE__ */ new Map());
95
95
  }
96
- bg(s) {
97
- return this.styles.set("background-color", s), this;
96
+ bg(t) {
97
+ return this.styles.set("background-color", t), this;
98
98
  }
99
- color(s) {
100
- return this.styles.set("color", s), this;
99
+ color(t) {
100
+ return this.styles.set("color", t), this;
101
101
  }
102
- opacity(s) {
103
- return this.styles.set("opacity", String(s)), this;
102
+ opacity(t) {
103
+ return this.styles.set("opacity", String(t)), this;
104
104
  }
105
- borderColor(s) {
106
- return this.styles.set("border-color", s), this;
105
+ borderColor(t) {
106
+ return this.styles.set("border-color", t), this;
107
107
  }
108
- transform(s) {
109
- return this.styles.set("transform", s), this;
108
+ transform(t) {
109
+ return this.styles.set("transform", t), this;
110
110
  }
111
- scale(s) {
112
- return this.styles.set("transform", `scale(${s})`), this;
111
+ scale(t) {
112
+ return this.styles.set("transform", `scale(${t})`), this;
113
113
  }
114
- translateX(s) {
115
- const e = typeof s == "number" ? `${s}px` : s;
114
+ translateX(t) {
115
+ const e = typeof t == "number" ? `${t}px` : t;
116
116
  return this.styles.set("transform", `translateX(${e})`), this;
117
117
  }
118
- translateY(s) {
119
- const e = typeof s == "number" ? `${s}px` : s;
118
+ translateY(t) {
119
+ const e = typeof t == "number" ? `${t}px` : t;
120
120
  return this.styles.set("transform", `translateY(${e})`), this;
121
121
  }
122
- shadow(s) {
123
- return this.styles.set("box-shadow", s), this;
122
+ shadow(t) {
123
+ return this.styles.set("box-shadow", t), this;
124
124
  }
125
- css(s, e) {
126
- return this.styles.set(s, e), this;
125
+ css(t, e) {
126
+ return this.styles.set(t, e), this;
127
127
  }
128
128
  toCSSString() {
129
- const s = [];
129
+ const t = [];
130
130
  return this.styles.forEach((e, r) => {
131
- s.push(`${r}: ${e}`);
132
- }), s.join("; ") + ";";
131
+ t.push(`${r}: ${e}`);
132
+ }), t.join("; ") + ";";
133
133
  }
134
134
  }
135
- const pe = 100, q = 60, J = 5, fe = t.memo((n) => {
135
+ const fe = 100, J = 60, ee = 5;
136
+ function D(n) {
137
+ return n.split(";").map((t) => t.trim()).filter(Boolean).map((t) => /\s!important\s*$/i.test(t) ? t : `${t} !important`).join("; ");
138
+ }
139
+ const ge = s.memo((n) => {
136
140
  const {
137
- items: s,
141
+ items: t,
138
142
  renderItem: e,
139
143
  variant: r,
140
144
  separator: d,
@@ -149,44 +153,44 @@ const pe = 100, q = 60, J = 5, fe = t.memo((n) => {
149
153
  customItemHover: o,
150
154
  customItemActive: _,
151
155
  customItemFocus: y
152
- } = n, [H, ee] = D(0), [te, se] = D(0), re = L(null), R = L(/* @__PURE__ */ new Map()), O = L(/* @__PURE__ */ new Map()), F = L(null), b = a === "horizontal", $ = s.length, B = $ > pe, A = (h) => O.current.get(h) ?? q, j = (h) => {
156
+ } = n, [H, te] = X(0), [se, re] = X(0), ie = L(null), R = L(/* @__PURE__ */ new Map()), O = L(/* @__PURE__ */ new Map()), F = L(null), b = a === "horizontal", C = t.length, B = C > fe, A = (h) => O.current.get(h) ?? J, j = (h) => {
153
157
  let l = 0;
154
158
  for (let f = 0; f < h; f++)
155
159
  l += A(f);
156
160
  return l;
157
- }, ie = () => {
161
+ }, ne = () => {
158
162
  let h = 0;
159
- for (let l = 0; l < $; l++)
163
+ for (let l = 0; l < C; l++)
160
164
  h += A(l);
161
165
  return h;
162
- }, ne = (h) => {
163
- let l = 0, f = $ - 1;
166
+ }, ae = (h) => {
167
+ let l = 0, f = C - 1;
164
168
  for (; l < f; ) {
165
169
  const N = Math.floor((l + f) / 2);
166
170
  j(N) < h ? l = N + 1 : f = N;
167
171
  }
168
172
  return Math.max(0, l - 1);
169
173
  };
170
- let S = 0, X = $, G = 0, M = 0;
174
+ let S = 0, Y = C, G = 0, M = 0;
171
175
  if (B) {
172
- S = Math.max(0, ne(H) - J);
176
+ S = Math.max(0, ae(H) - ee);
173
177
  let h = j(S), l = S;
174
- for (; h < H + v + J * q && l < $; )
178
+ for (; h < H + v + ee * J && l < C; )
175
179
  h += A(l), l++;
176
- X = Math.min($, l), G = j(S), M = ie();
180
+ Y = Math.min(C, l), G = j(S), M = ne();
177
181
  }
178
- const P = s.slice(S, X);
179
- Q(() => {
182
+ const P = t.slice(S, Y);
183
+ Z(() => {
180
184
  if (!B) return;
181
185
  let h = !1;
182
186
  P.forEach((l, f) => {
183
187
  const N = S + f, k = R.current.get(N);
184
188
  if (k) {
185
- const K = k.getBoundingClientRect(), z = b ? K.width : K.height;
189
+ const Q = k.getBoundingClientRect(), z = b ? Q.width : Q.height;
186
190
  z > 0 && O.current.get(N) !== z && (O.current.set(N, z), h = !0);
187
191
  }
188
- }), h && se((l) => l + 1);
189
- }, [P, S, B, b, te]), Q(() => {
192
+ }), h && re((l) => l + 1);
193
+ }, [P, S, B, b, se]), Z(() => {
190
194
  if (!u || p) return;
191
195
  const h = new IntersectionObserver(
192
196
  (l) => {
@@ -195,27 +199,27 @@ const pe = 100, q = 60, J = 5, fe = t.memo((n) => {
195
199
  { threshold: c }
196
200
  );
197
201
  return F.current && h.observe(F.current), () => h.disconnect();
198
- }, [p, s.length, u, c]);
199
- const ae = (h) => {
200
- B && ee(b ? h.currentTarget.scrollLeft : h.currentTarget.scrollTop);
202
+ }, [p, t.length, u, c]);
203
+ const oe = (h) => {
204
+ B && te(b ? h.currentTarget.scrollLeft : h.currentTarget.scrollTop);
201
205
  };
202
- ce(() => {
206
+ de(() => {
203
207
  if (typeof document > "u" || !o && !_ && !y) return;
204
208
  const h = "fibo-list-custom-styles";
205
209
  let l = document.getElementById(h);
206
210
  l || (l = document.createElement("style"), l.id = h, document.head.appendChild(l));
207
211
  let f = "";
208
- return o && (f += `.fibo-list-item-custom-hover:hover { ${o} }
209
- `), _ && (f += `.fibo-list-item-custom-active:active { ${_} }
210
- `), y && (f += `.fibo-list-item-custom-focus:focus { ${y} }
212
+ return o && (f += `.fibo-list-item-custom-hover:hover { ${D(o)} }
213
+ `), _ && (f += `.fibo-list-item-custom-active:active { ${D(_)} }
214
+ `), y && (f += `.fibo-list-item-custom-focus:focus { ${D(y)} }
211
215
  `), l.textContent = f, () => {
212
216
  };
213
217
  }, [o, _, y]);
214
- const Y = {
218
+ const W = {
215
219
  default: { gap: "0px" },
216
220
  card: { gap: "12px" },
217
221
  floating: { gap: "8px" }
218
- }, W = m ? {
222
+ }, U = m ? {
219
223
  default: {},
220
224
  card: {},
221
225
  floating: {}
@@ -223,8 +227,8 @@ const pe = 100, q = 60, J = 5, fe = t.memo((n) => {
223
227
  default: {
224
228
  padding: "12px 16px",
225
229
  borderBottom: d ? "1px solid #F3F4F6" : "none",
226
- backgroundColor: "transparent",
227
- transition: "background-color 0.2s"
230
+ // Transparent via class, not inline — so Tailwind / itemHover bg can win.
231
+ transition: "background-color 0.2s ease-out"
228
232
  },
229
233
  card: {
230
234
  padding: "16px",
@@ -232,17 +236,17 @@ const pe = 100, q = 60, J = 5, fe = t.memo((n) => {
232
236
  borderRadius: "16px",
233
237
  boxShadow: "0 2px 8px -2px rgba(0,0,0,0.05)",
234
238
  border: "1px solid #F3F4F6",
235
- transition: "transform 0.2s, box-shadow 0.2s"
239
+ transform: "translate3d(0, 0, 0)",
240
+ transition: "transform 0.2s ease-out, box-shadow 0.2s ease-out"
236
241
  },
237
242
  floating: {
238
243
  padding: "8px 12px",
239
244
  borderRadius: "12px",
240
- backgroundColor: "transparent",
241
- transition: "background-color 0.2s"
245
+ transition: "background-color 0.2s ease-out, box-shadow 0.2s ease-out"
242
246
  }
243
247
  }, E = [];
244
248
  o && E.push("fibo-list-item-custom-hover"), _ && E.push("fibo-list-item-custom-active"), y && E.push("fibo-list-item-custom-focus");
245
- const U = m ? {
249
+ const K = m ? {
246
250
  default: [...E],
247
251
  card: [...E],
248
252
  floating: [...E]
@@ -251,10 +255,10 @@ const pe = 100, q = 60, J = 5, fe = t.memo((n) => {
251
255
  card: ["hover:-translate-y-0.5", "hover:shadow-md", ...E],
252
256
  floating: ["hover:bg-white", "hover:shadow-sm", ...E]
253
257
  };
254
- return B ? t.createElement(
258
+ return B ? s.createElement(
255
259
  "div",
256
260
  {
257
- ref: re,
261
+ ref: ie,
258
262
  className: `fibo-list fibo-list-virtualized ${g || ""}`,
259
263
  style: {
260
264
  height: b ? void 0 : `${v}px`,
@@ -264,12 +268,12 @@ const pe = 100, q = 60, J = 5, fe = t.memo((n) => {
264
268
  position: "relative",
265
269
  display: "flex",
266
270
  flexDirection: b ? "row" : "column",
267
- ...Y[r],
271
+ ...W[r],
268
272
  ...x
269
273
  },
270
- onScroll: ae
274
+ onScroll: oe
271
275
  },
272
- t.createElement("div", {
276
+ s.createElement("div", {
273
277
  style: {
274
278
  height: b ? "1px" : `${M}px`,
275
279
  width: b ? `${M}px` : "1px",
@@ -280,7 +284,7 @@ const pe = 100, q = 60, J = 5, fe = t.memo((n) => {
280
284
  pointerEvents: "none"
281
285
  }
282
286
  }),
283
- t.createElement(
287
+ s.createElement(
284
288
  "div",
285
289
  {
286
290
  style: {
@@ -293,8 +297,8 @@ const pe = 100, q = 60, J = 5, fe = t.memo((n) => {
293
297
  },
294
298
  P.map((h, l) => {
295
299
  const f = S + l, N = e ? e(h, f) : null;
296
- return t.cloneElement(
297
- C().style(W[r]).classNames(U[r]).children(N).build(),
300
+ return s.cloneElement(
301
+ $().style(U[r]).classNames(K[r]).children(N).build(),
298
302
  {
299
303
  key: `item-${f}`,
300
304
  ref: (k) => {
@@ -304,31 +308,31 @@ const pe = 100, q = 60, J = 5, fe = t.memo((n) => {
304
308
  );
305
309
  })
306
310
  ),
307
- u && t.createElement("div", {
311
+ u && s.createElement("div", {
308
312
  ref: F,
309
313
  className: "py-4 flex justify-center w-full"
310
- }, p ? t.createElement("div", { className: "animate-spin rounded-full h-5 w-5 border-2 border-gray-300 border-b-blue-600" }) : t.createElement("div", { style: { height: "20px" } }))
311
- ) : C().className(g).classNames(["flex", a === "horizontal" ? "flex-row" : "flex-col", "w-full"]).style({
312
- ...Y[r],
314
+ }, p ? s.createElement("div", { className: "animate-spin rounded-full h-5 w-5 border-2 border-gray-300 border-b-blue-600" }) : s.createElement("div", { style: { height: "20px" } }))
315
+ ) : $().className(g).classNames(["flex", a === "horizontal" ? "flex-row" : "flex-col", "w-full"]).style({
316
+ ...W[r],
313
317
  ...x
314
318
  }).children(
315
- t.createElement(t.Fragment, {}, [
316
- ...s.map(
317
- (h, l) => t.cloneElement(
318
- C().style(W[r]).classNames(U[r]).children(
319
+ s.createElement(s.Fragment, {}, [
320
+ ...t.map(
321
+ (h, l) => s.cloneElement(
322
+ $().style(U[r]).classNames(K[r]).children(
319
323
  e ? e(h, l) : null
320
324
  ).build(),
321
325
  { key: `item-${l}` }
322
326
  )
323
327
  ),
324
- u && t.createElement("div", {
328
+ u && s.createElement("div", {
325
329
  ref: F,
326
330
  className: "py-4 flex justify-center w-full"
327
- }, p ? t.createElement("div", { className: "animate-spin rounded-full h-5 w-5 border-2 border-gray-300 border-b-blue-600" }) : t.createElement("div", { style: { height: "20px" } }))
331
+ }, p ? s.createElement("div", { className: "animate-spin rounded-full h-5 w-5 border-2 border-gray-300 border-b-blue-600" }) : s.createElement("div", { style: { height: "20px" } }))
328
332
  ])
329
333
  ).build();
330
334
  });
331
- class ge extends I {
335
+ class _e extends I {
332
336
  constructor() {
333
337
  super(...arguments);
334
338
  i(this, "_items", []);
@@ -420,10 +424,10 @@ class ge extends I {
420
424
  className: this.getClassName(),
421
425
  style: this.getStyle()
422
426
  };
423
- return t.createElement(fe, e);
427
+ return s.createElement(ge, e);
424
428
  }
425
429
  }
426
- const Me = w(ge), _e = () => t.createElement(
430
+ const Pe = w(_e), be = () => s.createElement(
427
431
  "svg",
428
432
  {
429
433
  width: 12,
@@ -434,10 +438,10 @@ const Me = w(ge), _e = () => t.createElement(
434
438
  strokeWidth: 2,
435
439
  "aria-hidden": !0
436
440
  },
437
- t.createElement("path", { d: "M9 5l7 7-7 7" })
438
- ), be = t.memo((n) => {
441
+ s.createElement("path", { d: "M9 5l7 7-7 7" })
442
+ ), ye = s.memo((n) => {
439
443
  const {
440
- leading: s,
444
+ leading: t,
441
445
  title: e,
442
446
  subtitle: r,
443
447
  trailing: d,
@@ -448,14 +452,14 @@ const Me = w(ge), _e = () => t.createElement(
448
452
  className: x,
449
453
  style: v,
450
454
  ...m
451
- } = n, a = v || {}, o = a.padding ?? "14px 0", _ = typeof e == "string" ? t.createElement(
455
+ } = n, a = v || {}, o = a.padding ?? "14px 0", _ = typeof e == "string" ? s.createElement(
452
456
  "span",
453
457
  {
454
458
  className: "fibo-list-tile-title",
455
459
  style: { fontSize: 11, letterSpacing: "0.06em", lineHeight: 1.3, margin: 0 }
456
460
  },
457
461
  e
458
- ) : e, y = typeof r == "string" ? t.createElement(
462
+ ) : e, y = typeof r == "string" ? s.createElement(
459
463
  "span",
460
464
  {
461
465
  className: "fibo-list-tile-subtitle",
@@ -469,10 +473,10 @@ const Me = w(ge), _e = () => t.createElement(
469
473
  },
470
474
  r
471
475
  ) : r;
472
- return t.createElement(
476
+ return s.createElement(
473
477
  "div",
474
478
  {
475
- className: de("fibo-list-tile flex flex-row items-center w-full", x),
479
+ className: me("fibo-list-tile flex flex-row items-center w-full", x),
476
480
  style: {
477
481
  padding: o,
478
482
  borderBottom: c ? `1px solid ${u || "#3b3b3b"}` : "none",
@@ -483,16 +487,16 @@ const Me = w(ge), _e = () => t.createElement(
483
487
  role: g ? "button" : void 0,
484
488
  ...m
485
489
  },
486
- s ? t.createElement(
490
+ t ? s.createElement(
487
491
  "div",
488
492
  {
489
493
  key: "leading",
490
494
  className: "fibo-list-tile-leading shrink-0 flex items-center",
491
495
  style: { color: "#9a9a9a", marginRight: 12 }
492
496
  },
493
- s
497
+ t
494
498
  ) : null,
495
- t.createElement(
499
+ s.createElement(
496
500
  "div",
497
501
  {
498
502
  key: "body",
@@ -501,7 +505,7 @@ const Me = w(ge), _e = () => t.createElement(
501
505
  _,
502
506
  y
503
507
  ),
504
- d ? t.createElement(
508
+ d ? s.createElement(
505
509
  "div",
506
510
  {
507
511
  key: "trailing",
@@ -510,18 +514,18 @@ const Me = w(ge), _e = () => t.createElement(
510
514
  },
511
515
  d
512
516
  ) : null,
513
- p ? t.createElement(
517
+ p ? s.createElement(
514
518
  "div",
515
519
  {
516
520
  key: "chevron",
517
521
  className: "fibo-list-tile-chevron shrink-0 flex items-center",
518
522
  style: { color: "#9a9a9a", marginLeft: d ? 8 : 0 }
519
523
  },
520
- t.createElement(_e)
524
+ s.createElement(be)
521
525
  ) : null
522
526
  );
523
527
  });
524
- class ye extends I {
528
+ class xe extends I {
525
529
  constructor() {
526
530
  super(...arguments);
527
531
  i(this, "_leading");
@@ -558,7 +562,7 @@ class ye extends I {
558
562
  return this._onPress = e, this;
559
563
  }
560
564
  build() {
561
- return t.createElement(be, {
565
+ return s.createElement(ye, {
562
566
  leading: this._leading,
563
567
  title: this._title,
564
568
  subtitle: this._subtitle,
@@ -573,9 +577,9 @@ class ye extends I {
573
577
  });
574
578
  }
575
579
  }
576
- const Pe = w(ye), xe = t.memo((n) => {
580
+ const ze = w(xe), ve = s.memo((n) => {
577
581
  const {
578
- data: s,
582
+ data: t,
579
583
  columns: e,
580
584
  variant: r,
581
585
  density: d,
@@ -595,16 +599,16 @@ const Pe = w(ye), xe = t.memo((n) => {
595
599
  standard: "16px 24px",
596
600
  relaxed: "24px 32px"
597
601
  }[d];
598
- return C().className(u).classNames(v).children(
599
- t.createElement("table", { style: x }, [
600
- t.createElement(
602
+ return $().className(u).classNames(v).children(
603
+ s.createElement("table", { style: x }, [
604
+ s.createElement(
601
605
  "thead",
602
606
  { key: "thead", className: "bg-gray-50/50" },
603
- t.createElement(
607
+ s.createElement(
604
608
  "tr",
605
609
  {},
606
610
  e.map(
607
- (o, _) => t.createElement("th", {
611
+ (o, _) => s.createElement("th", {
608
612
  key: String(o.accessor ?? o.header ?? _),
609
613
  scope: "col",
610
614
  style: {
@@ -617,18 +621,18 @@ const Pe = w(ye), xe = t.memo((n) => {
617
621
  )
618
622
  )
619
623
  ),
620
- t.createElement(
624
+ s.createElement(
621
625
  "tbody",
622
626
  { key: "tbody" },
623
- s.map(
624
- (o, _) => t.createElement(
627
+ t.map(
628
+ (o, _) => s.createElement(
625
629
  "tr",
626
630
  {
627
631
  key: (o == null ? void 0 : o.id) ?? (o == null ? void 0 : o.key) ?? _,
628
632
  className: `group transition-all duration-200 border-b border-gray-50 last:border-b-0 ${p && _ % 2 !== 0 ? "bg-gray-50/30" : "bg-transparent"} ${r === "clean" ? "hover:bg-white hover:shadow-md hover:scale-[1.002] hover:z-10 relative" : "hover:bg-gray-50/50"}`
629
633
  },
630
634
  e.map(
631
- (y, H) => t.createElement(
635
+ (y, H) => s.createElement(
632
636
  "td",
633
637
  {
634
638
  key: H,
@@ -648,7 +652,7 @@ const Pe = w(ye), xe = t.memo((n) => {
648
652
  ])
649
653
  ).build();
650
654
  });
651
- class ve extends I {
655
+ class Ee extends I {
652
656
  constructor() {
653
657
  super(...arguments);
654
658
  i(this, "_data", []);
@@ -687,12 +691,12 @@ class ve extends I {
687
691
  className: this.getClassName(),
688
692
  style: this.getStyle()
689
693
  };
690
- return t.createElement(xe, e);
694
+ return s.createElement(ve, e);
691
695
  }
692
696
  }
693
- const ze = w(ve), Ee = t.memo((n) => {
694
- const { items: s, className: e, style: r, ...d } = n, p = s.map(
695
- (c, u) => t.createElement(
697
+ const Ve = w(Ee), Ne = s.memo((n) => {
698
+ const { items: t, className: e, style: r, ...d } = n, p = t.map(
699
+ (c, u) => s.createElement(
696
700
  "span",
697
701
  {
698
702
  key: c.title ? `${c.title}-${u}` : `tag-${u}`,
@@ -701,7 +705,7 @@ const ze = w(ve), Ee = t.memo((n) => {
701
705
  c.title
702
706
  )
703
707
  );
704
- return t.createElement(
708
+ return s.createElement(
705
709
  "div",
706
710
  {
707
711
  className: e,
@@ -711,7 +715,7 @@ const ze = w(ve), Ee = t.memo((n) => {
711
715
  ...p
712
716
  );
713
717
  });
714
- class Ne extends I {
718
+ class we extends I {
715
719
  constructor(e = []) {
716
720
  super();
717
721
  i(this, "_items", []);
@@ -727,29 +731,29 @@ class Ne extends I {
727
731
  style: this.getStyle(),
728
732
  ...this._props
729
733
  };
730
- return t.createElement(Ee, r);
734
+ return s.createElement(Ne, r);
731
735
  }
732
736
  }
733
- const Ve = w(Ne), we = t.memo((n) => {
734
- const { status: s, title: e, subtitle: r, className: d, style: p, ...c } = n;
735
- return t.createElement(
737
+ const De = w(we), Ie = s.memo((n) => {
738
+ const { status: t, title: e, subtitle: r, className: d, style: p, ...c } = n;
739
+ return s.createElement(
736
740
  "div",
737
741
  {
738
742
  className: d,
739
743
  style: p,
740
744
  ...c
741
745
  },
742
- t.createElement(
746
+ s.createElement(
743
747
  "div",
744
748
  { className: "flex flex-col gap-1" },
745
- e && t.createElement(
749
+ e && s.createElement(
746
750
  "h4",
747
751
  {
748
752
  className: "font-semibold text-sm uppercase tracking-wide opacity-90"
749
753
  },
750
754
  e
751
755
  ),
752
- r && t.createElement(
756
+ r && s.createElement(
753
757
  "p",
754
758
  {
755
759
  className: "opacity-80 text-sm"
@@ -759,7 +763,7 @@ const Ve = w(Ne), we = t.memo((n) => {
759
763
  )
760
764
  );
761
765
  });
762
- class Ie extends I {
766
+ class Se extends I {
763
767
  constructor(e = "") {
764
768
  super();
765
769
  i(this, "_status", "info");
@@ -789,11 +793,11 @@ class Ie extends I {
789
793
  style: this.getStyle(),
790
794
  ...this._props
791
795
  };
792
- return t.createElement(we, d);
796
+ return s.createElement(Ie, d);
793
797
  }
794
798
  }
795
- const De = w(Ie);
796
- class Se extends I {
799
+ const Xe = w(Se);
800
+ class $e extends I {
797
801
  constructor() {
798
802
  super(...arguments);
799
803
  i(this, "_title", "");
@@ -818,37 +822,37 @@ class Se extends I {
818
822
  return this._onToggle = e, this;
819
823
  }
820
824
  build() {
821
- return t.createElement(Ce, {
825
+ return s.createElement(Ce, {
822
826
  builder: this,
823
827
  ...this._props
824
828
  });
825
829
  }
826
830
  }
827
- const Ce = t.memo(({ builder: n }) => {
828
- const s = t.useId(), e = `${s}-content`, r = n._expanded !== void 0, [d, p] = D(n._defaultExpanded), c = r ? n._expanded : d, u = () => {
831
+ const Ce = s.memo(({ builder: n }) => {
832
+ const t = s.useId(), e = `${t}-content`, r = n._expanded !== void 0, [d, p] = X(n._defaultExpanded), c = r ? n._expanded : d, u = () => {
829
833
  r || p(!c), n._onToggle && n._onToggle(!c);
830
834
  };
831
- return C().classNames(["w-full", "border", "border-gray-200", "rounded-xl", "overflow-hidden", "bg-white", "transition-all", "duration-300"]).className(n.getClassName()).style(n.getStyle()).children([
832
- t.createElement("button", {
835
+ return $().classNames(["w-full", "border", "border-gray-200", "rounded-xl", "overflow-hidden", "bg-white", "transition-all", "duration-300"]).className(n.getClassName()).style(n.getStyle()).children([
836
+ s.createElement("button", {
833
837
  key: "header",
834
838
  type: "button",
835
- id: s,
839
+ id: t,
836
840
  "aria-expanded": c,
837
841
  "aria-controls": e,
838
842
  className: "w-full flex items-center justify-between p-4 cursor-pointer hover:bg-gray-50 transition-colors select-none text-left bg-transparent border-0",
839
843
  onClick: u
840
844
  }, [
841
- t.createElement(
842
- t.Fragment,
845
+ s.createElement(
846
+ s.Fragment,
843
847
  { key: "title" },
844
- typeof n._title == "string" ? me(n._title).fontWeight(600).fontSize(15).color("#1F2937").build() : n._title
848
+ typeof n._title == "string" ? he(n._title).fontWeight(600).fontSize(15).color("#1F2937").build() : n._title
845
849
  ),
846
- t.createElement("span", {
850
+ s.createElement("span", {
847
851
  key: "chevron",
848
852
  className: "transition-transform duration-300",
849
853
  style: { transform: c ? "rotate(180deg)" : "rotate(0deg)" },
850
854
  "aria-hidden": !0
851
- }, t.createElement("svg", {
855
+ }, s.createElement("svg", {
852
856
  width: "20",
853
857
  height: "20",
854
858
  viewBox: "0 0 24 24",
@@ -858,23 +862,23 @@ const Ce = t.memo(({ builder: n }) => {
858
862
  strokeLinecap: "round",
859
863
  strokeLinejoin: "round",
860
864
  className: "text-gray-400"
861
- }, t.createElement("polyline", { points: "6 9 12 15 18 9" })))
865
+ }, s.createElement("polyline", { points: "6 9 12 15 18 9" })))
862
866
  ]),
863
- C().props({
867
+ $().props({
864
868
  id: e,
865
869
  role: "region",
866
- "aria-labelledby": s,
870
+ "aria-labelledby": t,
867
871
  hidden: !c || void 0
868
872
  }).classNames(["transition-all", "duration-300", "ease-in-out", "overflow-hidden"]).style({
869
873
  maxHeight: c ? "500px" : "0px",
870
874
  opacity: c ? 1 : 0
871
875
  }).children(
872
- C().classNames(["p-4", "pt-0", "text-gray-600", "text-sm"]).children(n._content).build()
876
+ $().classNames(["p-4", "pt-0", "text-gray-600", "text-sm"]).children(n._content).build()
873
877
  ).build()
874
878
  ]).build();
875
- }), Xe = w(Se), $e = t.memo((n) => {
879
+ }), Ye = w($e), ke = s.memo((n) => {
876
880
  const {
877
- children: s,
881
+ children: t,
878
882
  variant: e = "standard",
879
883
  columns: r = 1,
880
884
  gap: d = "md",
@@ -902,7 +906,7 @@ const Ce = t.memo(({ builder: n }) => {
902
906
  { col: 1, row: 2 },
903
907
  { col: 2, row: 1 }
904
908
  ];
905
- return t.createElement("div", {
909
+ return s.createElement("div", {
906
910
  className: `grid ${v(r)} ${g(d)} ${p}`,
907
911
  style: {
908
912
  gap: x(d),
@@ -910,12 +914,12 @@ const Ce = t.memo(({ builder: n }) => {
910
914
  ...c
911
915
  },
912
916
  ...u
913
- }, t.Children.map(s, (a, o) => {
914
- if (t.isValidElement(a) && typeof a.props.className == "string" && a.props.className.includes("col-span"))
917
+ }, s.Children.map(t, (a, o) => {
918
+ if (s.isValidElement(a) && typeof a.props.className == "string" && a.props.className.includes("col-span"))
915
919
  return a;
916
920
  const _ = m[o % m.length];
917
- return t.createElement("div", {
918
- key: Z(a, o),
921
+ return s.createElement("div", {
922
+ key: q(a, o),
919
923
  style: { gridColumn: `span ${_.col}`, gridRow: `span ${_.row}` }
920
924
  }, a);
921
925
  }));
@@ -926,41 +930,41 @@ const Ce = t.memo(({ builder: n }) => {
926
930
  let o = [];
927
931
  return a.sm && o.push(`sm:columns-${a.sm}`), a.md && o.push(`md:columns-${a.md}`), a.lg && o.push(`lg:columns-${a.lg}`), a.xl && o.push(`xl:columns-${a.xl}`), o.join(" ") || "columns-1";
928
932
  };
929
- return t.createElement("div", {
933
+ return s.createElement("div", {
930
934
  className: `${m(r)} ${g(d)} space-y-4 ${p}`,
931
935
  style: {
932
936
  columnGap: x(d),
933
937
  ...c
934
938
  },
935
939
  ...u
936
- }, t.Children.map(
937
- s,
938
- (a, o) => t.createElement("div", {
939
- key: Z(a, o),
940
+ }, s.Children.map(
941
+ t,
942
+ (a, o) => s.createElement("div", {
943
+ key: q(a, o),
940
944
  className: "break-inside-avoid mb-4"
941
945
  }, a)
942
946
  ));
943
947
  }
944
- return t.createElement("div", {
948
+ return s.createElement("div", {
945
949
  className: `grid ${v(r)} ${g(d)} ${p}`,
946
950
  style: {
947
951
  gap: x(d),
948
952
  ...c
949
953
  },
950
954
  ...u
951
- }, s);
952
- }), ke = t.memo((n) => {
953
- const { children: s, colSpan: e, rowSpan: r, className: d, style: p, ...c } = n, u = () => {
955
+ }, t);
956
+ }), Be = s.memo((n) => {
957
+ const { children: t, colSpan: e, rowSpan: r, className: d, style: p, ...c } = n, u = () => {
954
958
  let g = [];
955
959
  return e && g.push(`col-span-${e}`), r && g.push(`row-span-${r}`), g.join(" ");
956
960
  };
957
- return t.createElement("div", {
961
+ return s.createElement("div", {
958
962
  className: `${u()} ${d}`,
959
963
  style: p,
960
964
  ...c
961
- }, s);
965
+ }, t);
962
966
  });
963
- class Be extends I {
967
+ class Te extends I {
964
968
  constructor() {
965
969
  super(...arguments);
966
970
  i(this, "_variant", "standard");
@@ -986,10 +990,10 @@ class Be extends I {
986
990
  style: this.getStyle(),
987
991
  ...this._props
988
992
  };
989
- return t.createElement($e, e);
993
+ return s.createElement(ke, e);
990
994
  }
991
995
  }
992
- class Te extends I {
996
+ class He extends I {
993
997
  constructor() {
994
998
  super(...arguments);
995
999
  i(this, "_colSpan");
@@ -1010,18 +1014,18 @@ class Te extends I {
1010
1014
  style: this.getStyle(),
1011
1015
  ...this._props
1012
1016
  };
1013
- return t.createElement(ke, e);
1017
+ return s.createElement(Be, e);
1014
1018
  }
1015
1019
  }
1016
- const Ye = w(Be), We = w(Te);
1020
+ const We = w(Te), Ue = w(He);
1017
1021
  export {
1018
- De as B,
1019
- Ge as C,
1020
- Ye as G,
1021
- Me as L,
1022
- ze as T,
1023
- Pe as a,
1024
- Ve as b,
1025
- Xe as c,
1026
- We as d
1022
+ Xe as B,
1023
+ Me as C,
1024
+ We as G,
1025
+ Pe as L,
1026
+ Ve as T,
1027
+ ze as a,
1028
+ De as b,
1029
+ Ye as c,
1030
+ Ue as d
1027
1031
  };