fiboui 2.2.1 → 2.2.4

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.
@@ -2,7 +2,7 @@
2
2
  var gt = Object.defineProperty;
3
3
  var bt = (r, t, e) => t in r ? gt(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
4
4
  var c = (r, t, e) => bt(r, typeof t != "symbol" ? t + "" : t, e);
5
- import g, { useRef as w, createContext as j, useContext as O, useCallback as E, useSyncExternalStore as B, useEffect as A, useState as q, cloneElement as yt } from "react";
5
+ import g, { useRef as w, createContext as j, useContext as B, useCallback as E, useSyncExternalStore as O, useEffect as A, useState as Z, cloneElement as yt } from "react";
6
6
  import { jsx as C, Fragment as W } from "react/jsx-runtime";
7
7
  class J {
8
8
  constructor() {
@@ -195,8 +195,8 @@ class St {
195
195
  return t && t.track(this), this.state;
196
196
  }
197
197
  setState(t) {
198
- const e = typeof t == "function" ? t(this.state) : t, s = { ...this.state, ...e }, i = Object.keys(this.state), o = Object.keys(s);
199
- i.length === o.length && o.every((a) => Object.is(s[a], this.state[a])) || (this.state = s, this.notify());
198
+ const e = typeof t == "function" ? t(this.state) : t, s = { ...this.state, ...e }, o = Object.keys(this.state), i = Object.keys(s);
199
+ o.length === i.length && i.every((a) => Object.is(s[a], this.state[a])) || (this.state = s, this.notify());
200
200
  }
201
201
  subscribe(t) {
202
202
  return this.listeners.add(t), () => this.listeners.delete(t);
@@ -216,7 +216,7 @@ function ke(r) {
216
216
  }
217
217
  const vt = tt(), st = j(vt);
218
218
  function Ct() {
219
- return O(st);
219
+ return B(st);
220
220
  }
221
221
  function _e({ children: r, scope: t }) {
222
222
  const e = w(t ?? tt()).current;
@@ -227,10 +227,10 @@ function Nt({ children: r }) {
227
227
  s.current || (s.current = new xt(() => {
228
228
  t.current += 1, e.current.forEach((l) => l());
229
229
  }));
230
- const i = E((l) => (e.current.add(l), () => {
230
+ const o = E((l) => (e.current.add(l), () => {
231
231
  e.current.delete(l);
232
- }), []), o = E(() => t.current, []);
233
- B(i, o, o), A(() => () => {
232
+ }), []), i = E(() => t.current, []);
233
+ O(o, i, i), A(() => () => {
234
234
  var l;
235
235
  (l = s.current) == null || l.dispose();
236
236
  }, []);
@@ -245,51 +245,51 @@ function Nt({ children: r }) {
245
245
  }
246
246
  const Et = j(/* @__PURE__ */ new Map()), rt = j(null);
247
247
  function xe(r) {
248
- const t = O(rt);
248
+ const t = B(rt);
249
249
  if (!t)
250
250
  throw new Error("useBuilderState must be used under a builder that called .state()");
251
251
  return [t.get(r), (e) => t.set(r, e)];
252
252
  }
253
253
  function Mt({ stateMap: r = /* @__PURE__ */ new Map(), children: t }) {
254
- const [e, s] = q(() => new Map(r)), i = {
254
+ const [e, s] = Z(() => new Map(r)), o = {
255
255
  map: e,
256
- get: (o) => e.get(o),
257
- set: (o, n) => {
256
+ get: (i) => e.get(i),
257
+ set: (i, n) => {
258
258
  s((a) => {
259
- if (Object.is(a.get(o), n))
259
+ if (Object.is(a.get(i), n))
260
260
  return a;
261
261
  const l = new Map(a);
262
- return l.set(o, n), l;
262
+ return l.set(i, n), l;
263
263
  });
264
264
  }
265
265
  };
266
- return /* @__PURE__ */ C(rt.Provider, { value: i, children: /* @__PURE__ */ C(Et.Provider, { value: e, children: t }) });
266
+ return /* @__PURE__ */ C(rt.Provider, { value: o, children: /* @__PURE__ */ C(Et.Provider, { value: e, children: t }) });
267
267
  }
268
268
  function Tt({ observables: r, children: t }) {
269
- const e = w(0), s = E((o) => {
269
+ const e = w(0), s = E((i) => {
270
270
  const n = Array.from(r).map(
271
271
  (a) => a.subscribe(() => {
272
- e.current += 1, o();
272
+ e.current += 1, i();
273
273
  })
274
274
  );
275
275
  return () => n.forEach((a) => a());
276
- }, [r]), i = E(() => e.current, []);
277
- return B(s, i, i), /* @__PURE__ */ C(W, { children: typeof t == "function" ? t() : t });
276
+ }, [r]), o = E(() => e.current, []);
277
+ return O(s, o, o), /* @__PURE__ */ C(W, { children: typeof t == "function" ? t() : t });
278
278
  }
279
279
  function It({ signals: r, children: t }) {
280
- const e = w(0), s = E((o) => {
280
+ const e = w(0), s = E((i) => {
281
281
  const n = Array.from(r).map(
282
282
  (a) => a.subscribe(() => {
283
- e.current += 1, o();
283
+ e.current += 1, i();
284
284
  })
285
285
  );
286
286
  return () => n.forEach((a) => a());
287
- }, [r]), i = E(() => e.current, []);
288
- return B(s, i, i), /* @__PURE__ */ C(W, { children: typeof t == "function" ? t() : t });
287
+ }, [r]), o = E(() => e.current, []);
288
+ return O(s, o, o), /* @__PURE__ */ C(W, { children: typeof t == "function" ? t() : t });
289
289
  }
290
290
  const ot = j(/* @__PURE__ */ new Map());
291
291
  function $e(r) {
292
- const t = O(ot);
292
+ const t = B(ot);
293
293
  return t == null ? void 0 : t.get(r);
294
294
  }
295
295
  function Rt({ providers: r = /* @__PURE__ */ new Map(), children: t }) {
@@ -314,7 +314,7 @@ function K(r) {
314
314
  if (r == null)
315
315
  return [];
316
316
  const t = typeof r == "function" ? r() : r;
317
- return (Array.isArray(t) ? t : [t]).map((s, i) => Dt(jt(s), i));
317
+ return (Array.isArray(t) ? t : [t]).map((s, o) => Dt(jt(s), o));
318
318
  }
319
319
  const Y = /* @__PURE__ */ new Map(), Lt = {
320
320
  easeIn: "ease-in",
@@ -324,8 +324,8 @@ const Y = /* @__PURE__ */ new Map(), Lt = {
324
324
  ease: "ease"
325
325
  };
326
326
  function it(r = {}) {
327
- const t = r.stiffness ?? 170, e = r.damping ?? 26, s = r.mass ?? 1, i = `${t}:${e}:${s}`, o = Y.get(i);
328
- if (o) return o;
327
+ const t = r.stiffness ?? 170, e = r.damping ?? 26, s = r.mass ?? 1, o = `${t}:${e}:${s}`, i = Y.get(o);
328
+ if (i) return i;
329
329
  const n = 1 / 60, a = 1;
330
330
  let l = 0, d = 0;
331
331
  const h = [0];
@@ -340,7 +340,7 @@ function it(r = {}) {
340
340
  p.push(b === 0 ? `${S}` : `${S} ${Math.round(x * 1e4) / 100}%`);
341
341
  }
342
342
  const y = `linear(${p.join(", ")})`;
343
- return Y.set(i, y), y;
343
+ return Y.set(o, y), y;
344
344
  }
345
345
  function v(r, t) {
346
346
  return r === "spring" ? it(t) : Lt[r] ?? r;
@@ -374,8 +374,8 @@ function Pt(r) {
374
374
  function G(r) {
375
375
  const t = /* @__PURE__ */ new Set(["opacity", "zIndex", "z-index", "flex", "fontWeight", "lineHeight"]);
376
376
  return Object.entries(r).map(([e, s]) => {
377
- const i = e.replace(/[A-Z]/g, (n) => `-${n.toLowerCase()}`), o = typeof s == "number" && !t.has(e) ? `${s}px` : String(s);
378
- return `${i}: ${o}`;
377
+ const o = e.replace(/[A-Z]/g, (n) => `-${n.toLowerCase()}`), i = typeof s == "number" && !t.has(e) ? `${s}px` : String(s);
378
+ return `${o}: ${i}`;
379
379
  }).join("; ");
380
380
  }
381
381
  function Ft(r) {
@@ -383,7 +383,7 @@ function Ft(r) {
383
383
  for (let e = 0; e < r.length; e += 1) t = (t << 5) + t ^ r.charCodeAt(e);
384
384
  return (t >>> 0).toString(36);
385
385
  }
386
- function Ot(r) {
386
+ function Bt(r) {
387
387
  const t = Vt[r] ?? r;
388
388
  if (!U.includes(t))
389
389
  throw new Error(`Unknown motion preset "${r}". Use: ${U.join(", ")}`);
@@ -463,6 +463,8 @@ const F = `
463
463
  .fibo-stagger-item { display: contents; }
464
464
 
465
465
  .fibo-reveal {
466
+ min-width: 0;
467
+ max-width: 100%;
466
468
  opacity: 0;
467
469
  transform: translate3d(0, 12px, 0);
468
470
  transition-property: opacity, transform, filter;
@@ -529,7 +531,7 @@ const F = `
529
531
  }
530
532
  }
531
533
  `.trim();
532
- function Z(r) {
534
+ function q(r) {
533
535
  let t = 5381;
534
536
  for (let e = 0; e < r.length; e += 1)
535
537
  t = (t << 5) + t ^ r.charCodeAt(e);
@@ -566,11 +568,11 @@ const $ = class $ {
566
568
  * CSS `@media` rule, deduped. Used by `.media()` / `.md()` / `.responsive()` — not JS resize.
567
569
  */
568
570
  registerMedia(t, e, s) {
569
- const i = `@media ${t}|${e}:${s}`;
570
- if (this.cache.has(i))
571
- return this.cache.get(i);
572
- const o = `fibo-mq-${Z(i)}`, n = `@media ${t} { .${o} { ${e}: ${s} !important; } }`;
573
- return this.insert(n), this.cache.set(i, o), o;
571
+ const o = `@media ${t}|${e}:${s}`;
572
+ if (this.cache.has(o))
573
+ return this.cache.get(o);
574
+ const i = `fibo-mq-${q(o)}`, n = `@media ${t} { .${i} { ${e}: ${s} !important; } }`;
575
+ return this.insert(n), this.cache.set(o, i), i;
574
576
  }
575
577
  ensureDefaults() {
576
578
  var t;
@@ -583,10 +585,10 @@ const $ = class $ {
583
585
  `);
584
586
  }
585
587
  registerKeyframes(t, e, s) {
586
- const i = `kf:${e}=>${s}`;
587
- if (this.cache.has(i)) return this.cache.get(i);
588
- const o = `fibo-c-${t}`;
589
- return this.insert(`@keyframes ${o} { from { ${e} } to { ${s} } }`), this.insert(`.${o} { animation-name: ${o}; }`), this.cache.set(i, o), o;
588
+ const o = `kf:${e}=>${s}`;
589
+ if (this.cache.has(o)) return this.cache.get(o);
590
+ const i = `fibo-c-${t}`;
591
+ return this.insert(`@keyframes ${i} { from { ${e} } to { ${s} } }`), this.insert(`.${i} { animation-name: ${i}; }`), this.cache.set(o, i), i;
590
592
  }
591
593
  insert(t, e = !0) {
592
594
  var s;
@@ -613,27 +615,27 @@ const $ = class $ {
613
615
  const s = `${t}:${e}`;
614
616
  if (this.cache.has(s))
615
617
  return this.cache.get(s);
616
- const i = e.replace(/[^a-zA-Z0-9-]/g, "_"), o = `fibo-${t}-${i}`, n = `.${o} { ${t}: ${e} !important; }`;
617
- return this.insert(n), this.cache.set(s, o), o;
618
+ const o = e.replace(/[^a-zA-Z0-9-]/g, "_"), i = `fibo-${t}-${o}`, n = `.${i} { ${t}: ${e} !important; }`;
619
+ return this.insert(n), this.cache.set(s, i), i;
618
620
  }
619
621
  /**
620
622
  * One class per (pseudo, property, value). Same rules → same class on server and client.
621
623
  * Order-independent: each declaration hashes on its own.
622
624
  */
623
- registerPseudo(t, e, s, i = !1) {
624
- const o = `${i ? "group:" : ""}${t}:${e}:${s}`;
625
- if (this.cache.has(o))
626
- return this.cache.get(o);
627
- const n = `fibo-ps-${Z(o)}`, a = i ? `.group:${t} .${n} { ${e}: ${s} !important; }` : `.${n}:${t} { ${e}: ${s} !important; }`;
628
- return this.insert(a), this.cache.set(o, n), n;
625
+ registerPseudo(t, e, s, o = !1) {
626
+ const i = `${o ? "group:" : ""}${t}:${e}:${s}`;
627
+ if (this.cache.has(i))
628
+ return this.cache.get(i);
629
+ const n = `fibo-ps-${q(i)}`, a = o ? `.group:${t} .${n} { ${e}: ${s} !important; }` : `.${n}:${t} { ${e}: ${s} !important; }`;
630
+ return this.insert(a), this.cache.set(i, n), n;
629
631
  }
630
- registerGroupPseudo(t, e, s, i) {
631
- return this.registerPseudo(e, s, i, !0);
632
+ registerGroupPseudo(t, e, s, o) {
633
+ return this.registerPseudo(e, s, o, !0);
632
634
  }
633
635
  };
634
636
  c($, "instance");
635
637
  let T = $;
636
- const f = T.getInstance();
638
+ const u = T.getInstance();
637
639
  function _() {
638
640
  T.getInstance().ensureDefaults();
639
641
  }
@@ -654,7 +656,7 @@ function ve() {
654
656
  dangerouslySetInnerHTML: { __html: nt() }
655
657
  });
656
658
  }
657
- function Bt() {
659
+ function Ot() {
658
660
  return _(), g.createElement("style", {
659
661
  id: "fibo-motion-presets",
660
662
  "data-fibo-motion": "1",
@@ -680,20 +682,20 @@ function ct(r) {
680
682
  var t, e, s = "";
681
683
  if (typeof r == "string" || typeof r == "number") s += r;
682
684
  else if (typeof r == "object") if (Array.isArray(r)) {
683
- var i = r.length;
684
- for (t = 0; t < i; t++) r[t] && (e = ct(r[t])) && (s && (s += " "), s += e);
685
+ var o = r.length;
686
+ for (t = 0; t < o; t++) r[t] && (e = ct(r[t])) && (s && (s += " "), s += e);
685
687
  } else for (e in r) r[e] && (s && (s += " "), s += e);
686
688
  return s;
687
689
  }
688
690
  function Xt() {
689
- for (var r, t, e = 0, s = "", i = arguments.length; e < i; e++) (r = arguments[e]) && (t = ct(r)) && (s && (s += " "), s += t);
691
+ for (var r, t, e = 0, s = "", o = arguments.length; e < o; e++) (r = arguments[e]) && (t = ct(r)) && (s && (s += " "), s += t);
690
692
  return s;
691
693
  }
692
694
  function Kt(r) {
693
695
  const t = r.match(/oklch\(\s*([\d.]+)\s+([\d.]+)\s+([\d.]+)\s*\)/);
694
696
  if (!t)
695
697
  return r;
696
- const [, e, s, i] = t, o = parseFloat(e), n = parseFloat(s), a = parseFloat(i), l = n * Math.cos(a * Math.PI / 180), d = n * Math.sin(a * Math.PI / 180), h = o + 0.3963377774 * l + 0.2158037573 * d, u = o - 0.1055613458 * l - 0.0638541728 * d, m = o - 0.0894841775 * l - 1.291485548 * d, p = h * h * h, y = u * u * u, b = m * m * m, x = 4.0767416621 * p - 3.3077115913 * y + 0.2309699292 * b, S = -1.2684380046 * p + 2.6097574011 * y - 0.3413193965 * b, ut = -0.0041960863 * p - 0.7034186147 * y + 1.707614701 * b, L = (I) => I >= 31308e-7 ? 1.055 * I ** (1 / 2.4) - 0.055 : 12.92 * I, dt = Math.max(0, Math.min(1, L(x))), mt = Math.max(0, Math.min(1, L(S))), pt = Math.max(0, Math.min(1, L(ut))), V = (I) => {
698
+ const [, e, s, o] = t, i = parseFloat(e), n = parseFloat(s), a = parseFloat(o), l = n * Math.cos(a * Math.PI / 180), d = n * Math.sin(a * Math.PI / 180), h = i + 0.3963377774 * l + 0.2158037573 * d, f = i - 0.1055613458 * l - 0.0638541728 * d, m = i - 0.0894841775 * l - 1.291485548 * d, p = h * h * h, y = f * f * f, b = m * m * m, x = 4.0767416621 * p - 3.3077115913 * y + 0.2309699292 * b, S = -1.2684380046 * p + 2.6097574011 * y - 0.3413193965 * b, ft = -0.0041960863 * p - 0.7034186147 * y + 1.707614701 * b, L = (I) => I >= 31308e-7 ? 1.055 * I ** (1 / 2.4) - 0.055 : 12.92 * I, dt = Math.max(0, Math.min(1, L(x))), mt = Math.max(0, Math.min(1, L(S))), pt = Math.max(0, Math.min(1, L(ft))), V = (I) => {
697
699
  var X;
698
700
  const P = (X = Math.round(I * 255).toString(16)) == null ? void 0 : X.toUpperCase();
699
701
  return P.length === 1 ? `0${P}` : P;
@@ -703,11 +705,11 @@ function Kt(r) {
703
705
  function Yt(r) {
704
706
  const t = {}, e = {}, s = r.split(`
705
707
  `);
706
- for (const i of s) {
707
- const o = i.trim();
708
- if (!o || o.startsWith("//") || o.startsWith("*") || o === "@theme {" || o === "}")
708
+ for (const o of s) {
709
+ const i = o.trim();
710
+ if (!i || i.startsWith("//") || i.startsWith("*") || i === "@theme {" || i === "}")
709
711
  continue;
710
- const n = o.match(/^--color-([a-z0-9\-]+): (oklch\([^)]+\));?$/), a = o.match(/^--color-([a-z0-9\-]+): (#[a-fA-F0-9]{3,6});?$/);
712
+ const n = i.match(/^--color-([a-z0-9\-]+): (oklch\([^)]+\));?$/), a = i.match(/^--color-([a-z0-9\-]+): (#[a-fA-F0-9]{3,6});?$/);
711
713
  if (n) {
712
714
  const [, l, d] = n, h = Kt(d);
713
715
  t[h.toLowerCase()] = `bg-${l}`, e[h.toLowerCase()] = `text-${l}`;
@@ -969,7 +971,7 @@ const Ut = (r) => {
969
971
  --color-stone-950: oklch(0.147 0.004 49.25);
970
972
  --color-black: #000;
971
973
  --color-white: #fff;
972
- `, Zt = Yt(Gt), lt = {
974
+ `, qt = Yt(Gt), lt = {
973
975
  borderRadius: {
974
976
  0: "rounded-none",
975
977
  "0px": "rounded-none",
@@ -1066,7 +1068,7 @@ const Ut = (r) => {
1066
1068
  fixed: "fixed",
1067
1069
  sticky: "sticky"
1068
1070
  }
1069
- }, qt = (r, t) => ({
1071
+ }, Zt = (r, t) => ({
1070
1072
  // 背景色
1071
1073
  backgroundColor: (e) => e.backgroundColor ? [r.background[e.backgroundColor.toLowerCase()] || `bg-[${e.backgroundColor}]`] : [],
1072
1074
  // 文字色
@@ -1082,8 +1084,8 @@ const Ut = (r) => {
1082
1084
  margin: (e) => {
1083
1085
  const s = [];
1084
1086
  if (e.margin !== void 0) {
1085
- const o = N("m", e.margin);
1086
- return o ? [o] : [];
1087
+ const i = N("m", e.margin);
1088
+ return i ? [i] : [];
1087
1089
  }
1088
1090
  return [
1089
1091
  { prop: e.marginTop, dir: "mt" },
@@ -1092,9 +1094,9 @@ const Ut = (r) => {
1092
1094
  { prop: e.marginLeft, dir: "ml" },
1093
1095
  { prop: e.marginX, dir: "mx" },
1094
1096
  { prop: e.marginY, dir: "my" }
1095
- ].forEach(({ prop: o, dir: n }) => {
1096
- if (o !== void 0) {
1097
- const a = N(n, o);
1097
+ ].forEach(({ prop: i, dir: n }) => {
1098
+ if (i !== void 0) {
1099
+ const a = N(n, i);
1098
1100
  a && s.push(a);
1099
1101
  }
1100
1102
  }), s;
@@ -1103,8 +1105,8 @@ const Ut = (r) => {
1103
1105
  padding: (e) => {
1104
1106
  const s = [];
1105
1107
  if (e.padding !== void 0) {
1106
- const o = N("p", e.padding);
1107
- return o ? [o] : [];
1108
+ const i = N("p", e.padding);
1109
+ return i ? [i] : [];
1108
1110
  }
1109
1111
  return [
1110
1112
  { prop: e.paddingTop, dir: "pt" },
@@ -1113,9 +1115,9 @@ const Ut = (r) => {
1113
1115
  { prop: e.paddingLeft, dir: "pl" },
1114
1116
  { prop: e.paddingX, dir: "px" },
1115
1117
  { prop: e.paddingY, dir: "py" }
1116
- ].forEach(({ prop: o, dir: n }) => {
1117
- if (o !== void 0) {
1118
- const a = N(n, o);
1118
+ ].forEach(({ prop: i, dir: n }) => {
1119
+ if (i !== void 0) {
1120
+ const a = N(n, i);
1119
1121
  a && s.push(a);
1120
1122
  }
1121
1123
  }), s;
@@ -1124,28 +1126,28 @@ const Ut = (r) => {
1124
1126
  font: (e) => {
1125
1127
  const s = [];
1126
1128
  if (e.fontSize && s.push(t.fontSize[e.fontSize.toString()] || `text-[${e.fontSize}]`), e.fontWeight) {
1127
- const i = t.fontWeight[e.fontWeight.toString()];
1128
- i && s.push(i);
1129
+ const o = t.fontWeight[e.fontWeight.toString()];
1130
+ o && s.push(o);
1129
1131
  }
1130
1132
  if (e.textAlign) {
1131
- const i = t.textAlign[e.textAlign];
1132
- i && s.push(i);
1133
+ const o = t.textAlign[e.textAlign];
1134
+ o && s.push(o);
1133
1135
  }
1134
1136
  if (e.fontFamily) {
1135
- const i = t.fontFamily[e.fontFamily];
1136
- i && s.push(i);
1137
+ const o = t.fontFamily[e.fontFamily];
1138
+ o && s.push(o);
1137
1139
  }
1138
1140
  if (e.textDecoration) {
1139
- const i = t.textDecoration[e.textDecoration];
1140
- i && s.push(i);
1141
+ const o = t.textDecoration[e.textDecoration];
1142
+ o && s.push(o);
1141
1143
  }
1142
1144
  if (e.fontVariantNumeric) {
1143
- const i = t.fontVariantNumeric[e.fontVariantNumeric];
1144
- i && s.push(i);
1145
+ const o = t.fontVariantNumeric[e.fontVariantNumeric];
1146
+ o && s.push(o);
1145
1147
  }
1146
1148
  if (e.fontStyle) {
1147
- const i = t.fontStyle[e.fontStyle];
1148
- i && s.push(i);
1149
+ const o = t.fontStyle[e.fontStyle];
1150
+ o && s.push(o);
1149
1151
  }
1150
1152
  return s;
1151
1153
  },
@@ -1153,12 +1155,12 @@ const Ut = (r) => {
1153
1155
  size: (e) => {
1154
1156
  const s = [];
1155
1157
  if (e.width) {
1156
- const i = e.width.toString();
1157
- s.push(`w-[${i}]`);
1158
+ const o = e.width.toString();
1159
+ s.push(`w-[${o}]`);
1158
1160
  }
1159
1161
  if (e.height) {
1160
- const i = e.height.toString();
1161
- s.push(`h-[${i}]`);
1162
+ const o = e.height.toString();
1163
+ s.push(`h-[${o}]`);
1162
1164
  }
1163
1165
  return s;
1164
1166
  },
@@ -1166,20 +1168,20 @@ const Ut = (r) => {
1166
1168
  layout: (e) => {
1167
1169
  const s = [];
1168
1170
  if (e.display) {
1169
- const i = t.display[e.display];
1170
- i && s.push(i);
1171
+ const o = t.display[e.display];
1172
+ o && s.push(o);
1171
1173
  }
1172
1174
  if (e.flexDirection) {
1173
- const o = {
1175
+ const i = {
1174
1176
  row: "flex-row",
1175
1177
  column: "flex-col",
1176
1178
  "row-reverse": "flex-row-reverse",
1177
1179
  "column-reverse": "flex-col-reverse"
1178
1180
  }[e.flexDirection];
1179
- o && s.push(o);
1181
+ i && s.push(i);
1180
1182
  }
1181
1183
  if (e.justifyContent) {
1182
- const o = {
1184
+ const i = {
1183
1185
  "flex-start": "justify-start",
1184
1186
  "flex-end": "justify-end",
1185
1187
  center: "justify-center",
@@ -1187,21 +1189,21 @@ const Ut = (r) => {
1187
1189
  "space-around": "justify-around",
1188
1190
  "space-evenly": "justify-evenly"
1189
1191
  }[e.justifyContent];
1190
- o && s.push(o);
1192
+ i && s.push(i);
1191
1193
  }
1192
1194
  if (e.alignItems) {
1193
- const o = {
1195
+ const i = {
1194
1196
  "flex-start": "items-start",
1195
1197
  "flex-end": "items-end",
1196
1198
  center: "items-center",
1197
1199
  baseline: "items-baseline",
1198
1200
  stretch: "items-stretch"
1199
1201
  }[e.alignItems];
1200
- o && s.push(o);
1202
+ i && s.push(i);
1201
1203
  }
1202
1204
  if (e.gap) {
1203
- const i = N("gap", e.gap);
1204
- i && s.push(i);
1205
+ const o = N("gap", e.gap);
1206
+ o && s.push(o);
1205
1207
  }
1206
1208
  return s;
1207
1209
  },
@@ -1257,17 +1259,17 @@ const Ut = (r) => {
1257
1259
  opacity: "opacity",
1258
1260
  className: "className"
1259
1261
  }, Qt = (r, t) => {
1260
- const e = (t == null ? void 0 : t.colorMaps) || Zt, s = (t == null ? void 0 : t.styleMaps) || lt, i = qt(e, s), o = [], n = /* @__PURE__ */ new Set();
1262
+ const e = (t == null ? void 0 : t.colorMaps) || qt, s = (t == null ? void 0 : t.styleMaps) || lt, o = Zt(e, s), i = [], n = /* @__PURE__ */ new Set();
1261
1263
  return Object.keys(r).forEach((a) => {
1262
1264
  const l = Jt[a];
1263
1265
  if (l && !n.has(l)) {
1264
- const d = i[l];
1266
+ const d = o[l];
1265
1267
  if (d) {
1266
1268
  const h = d(r);
1267
- o.push(...h), n.add(l);
1269
+ i.push(...h), n.add(l);
1268
1270
  }
1269
1271
  }
1270
- }), o.filter(Boolean).join(" ");
1272
+ }), i.filter(Boolean).join(" ");
1271
1273
  };
1272
1274
  function te(r) {
1273
1275
  const t = {};
@@ -1276,28 +1278,28 @@ function te(r) {
1276
1278
  }), t;
1277
1279
  }
1278
1280
  function ee({ animatedProps: r, animationConfig: t, children: e }) {
1279
- const [s, i] = q(
1281
+ const [s, o] = Z(
1280
1282
  () => te(r)
1281
1283
  );
1282
1284
  A(() => {
1283
1285
  const l = [];
1284
1286
  return r.forEach((d, h) => {
1285
- const u = (m) => {
1286
- i((p) => ({
1287
+ const f = (m) => {
1288
+ o((p) => ({
1287
1289
  ...p,
1288
1290
  [h]: m
1289
1291
  }));
1290
1292
  };
1291
- l.push(d.subscribe(u)), u(d.value);
1293
+ l.push(d.subscribe(f)), f(d.value);
1292
1294
  }), () => {
1293
1295
  l.forEach((d) => d());
1294
1296
  };
1295
1297
  }, [r]);
1296
- const o = [];
1297
- s.translateX !== void 0 && o.push(`translateX(${s.translateX}px)`), s.translateY !== void 0 && o.push(`translateY(${s.translateY}px)`), s.scale !== void 0 && o.push(`scale(${s.scale})`), s.rotate !== void 0 && o.push(`rotate(${s.rotate}deg)`);
1298
+ const i = [];
1299
+ s.translateX !== void 0 && i.push(`translateX(${s.translateX}px)`), s.translateY !== void 0 && i.push(`translateY(${s.translateY}px)`), s.scale !== void 0 && i.push(`scale(${s.scale})`), s.rotate !== void 0 && i.push(`rotate(${s.rotate}deg)`);
1298
1300
  const n = {};
1299
- if (o.length > 0 && (n.transform = o.join(" ")), t) {
1300
- const { duration: l = 300, curve: d = "easeOut", stiffness: h, damping: u } = t, m = v(d, { stiffness: h, damping: u });
1301
+ if (i.length > 0 && (n.transform = i.join(" ")), t) {
1302
+ const { duration: l = 300, curve: d = "easeOut", stiffness: h, damping: f } = t, m = v(d, { stiffness: h, damping: f });
1301
1303
  n.transition = `transform ${l}ms ${m}`;
1302
1304
  }
1303
1305
  const a = {
@@ -1356,11 +1358,11 @@ class k {
1356
1358
  css(t, e) {
1357
1359
  return this.set(t, e);
1358
1360
  }
1359
- transition(t, e, s, i) {
1361
+ transition(t, e, s, o) {
1360
1362
  if (typeof t == "string" && e === void 0)
1361
1363
  return this.set("transition", t);
1362
- const o = Array.isArray(t) ? t.join(", ") : t, n = `${e || this.transitionDuration}ms`, a = v(s || this.transitionEasing), l = i ? `${i}ms` : "0ms";
1363
- return this.set("transition", `${o} ${n} ${a} ${l}`);
1364
+ const i = Array.isArray(t) ? t.join(", ") : t, n = `${e || this.transitionDuration}ms`, a = v(s || this.transitionEasing), l = o ? `${o}ms` : "0ms";
1365
+ return this.set("transition", `${i} ${n} ${a} ${l}`);
1364
1366
  }
1365
1367
  duration(t) {
1366
1368
  return this.transitionDuration = t, this.applyTransition(), this;
@@ -1378,14 +1380,14 @@ class k {
1378
1380
  return this.transitionProperties = t, this.applyTransition(), this;
1379
1381
  }
1380
1382
  applyTransition() {
1381
- const t = this.transitionProperties.join(", "), e = `${this.transitionDuration}ms`, s = this.transitionEasing, i = this.transitionDelay > 0 ? `${this.transitionDelay}ms` : "0ms";
1382
- this.set("transition", `${t} ${e} ${s} ${i}`);
1383
+ const t = this.transitionProperties.join(", "), e = `${this.transitionDuration}ms`, s = this.transitionEasing, o = this.transitionDelay > 0 ? `${this.transitionDelay}ms` : "0ms";
1384
+ this.set("transition", `${t} ${e} ${s} ${o}`);
1383
1385
  }
1384
1386
  flushTransform() {
1385
1387
  return this.set("transform", [...this.transforms.values()].join(" "));
1386
1388
  }
1387
1389
  set(t, e) {
1388
- const s = f.registerPseudo(this.pseudoState, t, e, this.isGroup);
1390
+ const s = u.registerPseudo(this.pseudoState, t, e, this.isGroup);
1389
1391
  return this.parentBuilder.addClassName(s), this;
1390
1392
  }
1391
1393
  end() {
@@ -1394,8 +1396,10 @@ class k {
1394
1396
  }
1395
1397
  function Ce(r, t) {
1396
1398
  if (typeof document > "u") return;
1397
- const e = typeof r == "string" ? document.querySelector(r) : r;
1398
- e && e.scrollIntoView({
1399
+ const e = typeof r == "string" ? r : null, s = (e == null ? void 0 : e.replace(/^#/, "")) ?? null;
1400
+ t != null && t.hash && s && typeof window < "u" && (window.location.hash = s);
1401
+ const o = typeof r == "string" ? document.getElementById(r.replace(/^#/, "")) ?? document.querySelector(r.startsWith("#") ? r : `#${r}`) ?? document.querySelector(r) : r;
1402
+ o && o.scrollIntoView({
1399
1403
  behavior: (t == null ? void 0 : t.behavior) ?? "smooth",
1400
1404
  block: (t == null ? void 0 : t.block) ?? "start"
1401
1405
  });
@@ -1419,8 +1423,8 @@ function oe({
1419
1423
  once: t = !0,
1420
1424
  rootMargin: e = "0px 0px -8% 0px",
1421
1425
  threshold: s = 0.12,
1422
- forceMotion: i = !1,
1423
- preferTimeline: o = !1,
1426
+ forceMotion: o = !1,
1427
+ preferTimeline: i = !1,
1424
1428
  children: n
1425
1429
  }) {
1426
1430
  const a = w(null);
@@ -1428,7 +1432,7 @@ function oe({
1428
1432
  _();
1429
1433
  const d = a.current;
1430
1434
  if (!d) return;
1431
- if (o && se()) {
1435
+ if (i && se()) {
1432
1436
  d.classList.add("fibo-inview");
1433
1437
  return;
1434
1438
  }
@@ -1437,18 +1441,20 @@ function oe({
1437
1441
  return;
1438
1442
  }
1439
1443
  const h = new IntersectionObserver(
1440
- (u) => {
1441
- for (const m of u)
1444
+ (f) => {
1445
+ for (const m of f)
1442
1446
  m.isIntersecting ? (m.target.classList.add("fibo-inview"), t && h.unobserve(m.target)) : t || m.target.classList.remove("fibo-inview");
1443
1447
  },
1444
1448
  { rootMargin: e, threshold: s }
1445
1449
  );
1446
1450
  return h.observe(d), () => h.disconnect();
1447
- }, [t, e, s, o]);
1451
+ }, [t, e, s, i]);
1448
1452
  const l = [
1449
1453
  "fibo-reveal",
1450
1454
  `fibo-reveal-${r}`,
1451
- i ? "fibo-motion-force" : ""
1455
+ // min-w-0 only — do NOT force w-full (breaks horizontal ScrollView / carousel slides)
1456
+ "min-w-0",
1457
+ o ? "fibo-motion-force" : ""
1452
1458
  ].filter(Boolean).join(" ");
1453
1459
  return g.createElement("div", { ref: a, className: l, "data-fibo-reveal": r }, n);
1454
1460
  }
@@ -1457,13 +1463,13 @@ function ie({ children: r }) {
1457
1463
  return A(() => {
1458
1464
  if (_(), re()) return;
1459
1465
  const e = () => {
1460
- var o, n;
1461
- return ((o = t.current) == null ? void 0 : o.querySelector(".fibo-scroll-progress")) ?? ((n = t.current) == null ? void 0 : n.firstElementChild);
1466
+ var i, n;
1467
+ return ((i = t.current) == null ? void 0 : i.querySelector(".fibo-scroll-progress")) ?? ((n = t.current) == null ? void 0 : n.firstElementChild);
1462
1468
  }, s = () => {
1463
- const i = e();
1464
- if (!i) return;
1465
- const o = document.documentElement.scrollHeight - window.innerHeight, n = o > 0 ? Math.min(1, Math.max(0, window.scrollY / o)) : 0;
1466
- i.style.setProperty("--fibo-progress", String(n));
1469
+ const o = e();
1470
+ if (!o) return;
1471
+ const i = document.documentElement.scrollHeight - window.innerHeight, n = i > 0 ? Math.min(1, Math.max(0, window.scrollY / i)) : 0;
1472
+ o.style.setProperty("--fibo-progress", String(n));
1467
1473
  };
1468
1474
  return s(), window.addEventListener("scroll", s, { passive: !0 }), window.addEventListener("resize", s), () => {
1469
1475
  window.removeEventListener("scroll", s), window.removeEventListener("resize", s);
@@ -1528,7 +1534,7 @@ class Ee {
1528
1534
  */
1529
1535
  anchor(t) {
1530
1536
  return this.id(t), this._explicitScrollMargin || this._classNames.push(
1531
- f.register("scroll-margin-top", "var(--fibo-sticky-offset, 0px)")
1537
+ u.register("scroll-margin-top", "var(--fibo-sticky-offset, 0px)")
1532
1538
  ), this;
1533
1539
  }
1534
1540
  /**
@@ -1538,7 +1544,7 @@ class Ee {
1538
1544
  scrollMargin(t) {
1539
1545
  this._explicitScrollMargin = !0;
1540
1546
  const e = typeof t == "number" ? `${t}px` : t;
1541
- return this._classNames.push(f.register("scroll-margin-top", e)), this;
1547
+ return this._classNames.push(u.register("scroll-margin-top", e)), this;
1542
1548
  }
1543
1549
  /** Stamp a class onto the host. Used by PseudoStateBuilder (hashed `:hover` etc.). */
1544
1550
  addClassName(t) {
@@ -1555,20 +1561,20 @@ class Ee {
1555
1561
  return e && typeof e == "object" && (this.__fiboElementProps = { ...e, key: String(t) }), this;
1556
1562
  }
1557
1563
  paddingHorizontal(t) {
1558
- const e = typeof t == "number" ? `${t}px` : t, s = f.register("padding-left", e), i = f.register("padding-right", e);
1559
- return this._classNames.push(s, i), this;
1564
+ const e = typeof t == "number" ? `${t}px` : t, s = u.register("padding-left", e), o = u.register("padding-right", e);
1565
+ return this._classNames.push(s, o), this;
1560
1566
  }
1561
1567
  paddingVertical(t) {
1562
- const e = typeof t == "number" ? `${t}px` : t, s = f.register("padding-top", e), i = f.register("padding-bottom", e);
1563
- return this._classNames.push(s, i), this;
1568
+ const e = typeof t == "number" ? `${t}px` : t, s = u.register("padding-top", e), o = u.register("padding-bottom", e);
1569
+ return this._classNames.push(s, o), this;
1564
1570
  }
1565
1571
  marginHorizontal(t) {
1566
- const e = typeof t == "number" ? `${t}px` : t, s = f.register("margin-left", e), i = f.register("margin-right", e);
1567
- return this._classNames.push(s, i), this;
1572
+ const e = typeof t == "number" ? `${t}px` : t, s = u.register("margin-left", e), o = u.register("margin-right", e);
1573
+ return this._classNames.push(s, o), this;
1568
1574
  }
1569
1575
  marginVertical(t) {
1570
- const e = typeof t == "number" ? `${t}px` : t, s = f.register("margin-top", e), i = f.register("margin-bottom", e);
1571
- return this._classNames.push(s, i), this;
1576
+ const e = typeof t == "number" ? `${t}px` : t, s = u.register("margin-top", e), o = u.register("margin-bottom", e);
1577
+ return this._classNames.push(s, o), this;
1572
1578
  }
1573
1579
  flexDirection(t) {
1574
1580
  return this._classNames.push(`flex-${t}`), this;
@@ -1582,7 +1588,7 @@ class Ee {
1582
1588
  flex(t) {
1583
1589
  if (this._classNames.push("flex"), t !== void 0)
1584
1590
  if (typeof t == "number") {
1585
- const e = f.register("flex", String(t));
1591
+ const e = u.register("flex", String(t));
1586
1592
  this._classNames.push(e);
1587
1593
  } else typeof t == "string" && this._classNames.push(`flex-${t}`);
1588
1594
  return this;
@@ -1633,18 +1639,18 @@ class Ee {
1633
1639
  return this._classNames.push("h-full"), this;
1634
1640
  }
1635
1641
  square(t) {
1636
- const e = typeof t == "number" ? `${t}px` : t, s = f.register("width", e), i = f.register("height", e);
1637
- return this._classNames.push(s, i), this;
1642
+ const e = typeof t == "number" ? `${t}px` : t, s = u.register("width", e), o = u.register("height", e);
1643
+ return this._classNames.push(s, o), this;
1638
1644
  }
1639
1645
  circle() {
1640
1646
  return this._classNames.push("rounded-full"), this;
1641
1647
  }
1642
1648
  opacity(t) {
1643
- const e = f.register("opacity", String(t));
1649
+ const e = u.register("opacity", String(t));
1644
1650
  return this._classNames.push(e), this;
1645
1651
  }
1646
1652
  p(t) {
1647
- const e = typeof t == "number" ? `${t}px` : t, s = f.register("padding", e);
1653
+ const e = typeof t == "number" ? `${t}px` : t, s = u.register("padding", e);
1648
1654
  return this._classNames.push(s), this;
1649
1655
  }
1650
1656
  px(t) {
@@ -1660,7 +1666,7 @@ class Ee {
1660
1666
  return this.paddingVertical(t);
1661
1667
  }
1662
1668
  m(t) {
1663
- const e = typeof t == "number" ? `${t}px` : t, s = f.register("margin", e);
1669
+ const e = typeof t == "number" ? `${t}px` : t, s = u.register("margin", e);
1664
1670
  return this._classNames.push(s), this;
1665
1671
  }
1666
1672
  mx(t) {
@@ -1676,15 +1682,15 @@ class Ee {
1676
1682
  return this.marginVertical(t);
1677
1683
  }
1678
1684
  bg(t) {
1679
- const e = typeof t == "string" && !t.startsWith("#") && !t.startsWith("rgb") ? this.resolveSemanticColor(t) : t, s = f.register("background-color", e);
1685
+ const e = typeof t == "string" && !t.startsWith("#") && !t.startsWith("rgb") ? this.resolveSemanticColor(t) : t, s = u.register("background-color", e);
1680
1686
  return this._classNames.push(s), this;
1681
1687
  }
1682
1688
  text(t) {
1683
- const e = typeof t == "string" && !t.startsWith("#") && !t.startsWith("rgb") ? this.resolveSemanticColor(t) : t, s = f.register("color", e);
1689
+ const e = typeof t == "string" && !t.startsWith("#") && !t.startsWith("rgb") ? this.resolveSemanticColor(t) : t, s = u.register("color", e);
1684
1690
  return this._classNames.push(s), this;
1685
1691
  }
1686
1692
  color(t) {
1687
- const e = typeof t == "string" && !t.startsWith("#") && !t.startsWith("rgb") ? this.resolveSemanticColor(t) : t, s = f.register("color", e);
1693
+ const e = typeof t == "string" && !t.startsWith("#") && !t.startsWith("rgb") ? this.resolveSemanticColor(t) : t, s = u.register("color", e);
1688
1694
  return this._classNames.push(s), this;
1689
1695
  }
1690
1696
  resolveSemanticColor(t) {
@@ -1714,8 +1720,8 @@ class Ee {
1714
1720
  }
1715
1721
  shadow(t) {
1716
1722
  if (t === null || t === "none") {
1717
- const o = f.register("box-shadow", "none");
1718
- return this._classNames.push(o), this;
1723
+ const i = u.register("box-shadow", "none");
1724
+ return this._classNames.push(i), this;
1719
1725
  }
1720
1726
  const e = {
1721
1727
  sm: "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
@@ -1728,11 +1734,11 @@ class Ee {
1728
1734
  modal: "0 10px 40px rgba(0, 0, 0, 0.2)",
1729
1735
  float: "0 8px 16px rgba(0, 0, 0, 0.15)",
1730
1736
  inner: "inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)"
1731
- }, s = (o) => o.startsWith("#") || o.startsWith("rgb") || o.startsWith("hsl") || ["red", "blue", "green", "yellow", "purple", "pink", "orange", "white", "black", "gray"].some((n) => o.includes(n)), i = (o, n, a, l) => {
1732
- let u = a || "rgba(0, 0, 0, " + (l ?? 0.1) + ")";
1737
+ }, s = (i) => i.startsWith("#") || i.startsWith("rgb") || i.startsWith("hsl") || ["red", "blue", "green", "yellow", "purple", "pink", "orange", "white", "black", "gray"].some((n) => i.includes(n)), o = (i, n, a, l) => {
1738
+ let f = a || "rgba(0, 0, 0, " + (l ?? 0.1) + ")";
1733
1739
  if (a && a.startsWith("#") && l !== void 0) {
1734
1740
  const y = parseInt(a.slice(1, 3), 16), b = parseInt(a.slice(3, 5), 16), x = parseInt(a.slice(5, 7), 16);
1735
- u = `rgba(${y}, ${b}, ${x}, ${l})`;
1741
+ f = `rgba(${y}, ${b}, ${x}, ${l})`;
1736
1742
  }
1737
1743
  const p = {
1738
1744
  sm: "2px",
@@ -1741,50 +1747,50 @@ class Ee {
1741
1747
  xl: "12px",
1742
1748
  "2xl": "16px"
1743
1749
  }[n] || "4px";
1744
- switch (o) {
1750
+ switch (i) {
1745
1751
  case "top":
1746
- return `0 -${p} ${p} -1px ${u}`;
1752
+ return `0 -${p} ${p} -1px ${f}`;
1747
1753
  case "bottom":
1748
- return `0 ${p} ${p} -1px ${u}`;
1754
+ return `0 ${p} ${p} -1px ${f}`;
1749
1755
  case "left":
1750
- return `-${p} 0 ${p} -1px ${u}`;
1756
+ return `-${p} 0 ${p} -1px ${f}`;
1751
1757
  case "right":
1752
- return `${p} 0 ${p} -1px ${u}`;
1758
+ return `${p} 0 ${p} -1px ${f}`;
1753
1759
  case "top-bottom":
1754
1760
  case "vertical":
1755
- return `0 -${p} ${p} -1px ${u}, 0 ${p} ${p} -1px ${u}`;
1761
+ return `0 -${p} ${p} -1px ${f}, 0 ${p} ${p} -1px ${f}`;
1756
1762
  case "left-right":
1757
1763
  case "horizontal":
1758
- return `-${p} 0 ${p} -1px ${u}, ${p} 0 ${p} -1px ${u}`;
1764
+ return `-${p} 0 ${p} -1px ${f}, ${p} 0 ${p} -1px ${f}`;
1759
1765
  case "all":
1760
1766
  default:
1761
1767
  return e[n] || e.md;
1762
1768
  }
1763
1769
  };
1764
1770
  if (!t) {
1765
- const o = f.register("box-shadow", e.md);
1766
- return this._classNames.push(o), this;
1771
+ const i = u.register("box-shadow", e.md);
1772
+ return this._classNames.push(i), this;
1767
1773
  }
1768
1774
  if (typeof t == "string") {
1769
1775
  if (s(t)) {
1770
- const a = i("all", "md", t), l = f.register("box-shadow", a);
1776
+ const a = o("all", "md", t), l = u.register("box-shadow", a);
1771
1777
  return this._classNames.push(l), this;
1772
1778
  }
1773
- const o = e[t] || e.md, n = f.register("box-shadow", o);
1779
+ const i = e[t] || e.md, n = u.register("box-shadow", i);
1774
1780
  return this._classNames.push(n), this;
1775
1781
  }
1776
1782
  if (Array.isArray(t)) {
1777
- const [o, n, a, l] = t;
1778
- if (typeof o == "string" && s(o)) {
1779
- const u = i("all", "md", o, n), m = f.register("box-shadow", u);
1783
+ const [i, n, a, l] = t;
1784
+ if (typeof i == "string" && s(i)) {
1785
+ const f = o("all", "md", i, n), m = u.register("box-shadow", f);
1780
1786
  return this._classNames.push(m), this;
1781
1787
  }
1782
- const d = o;
1788
+ const d = i;
1783
1789
  if (typeof n == "string" && s(n)) {
1784
- const u = i(d, "md", n, a), m = f.register("box-shadow", u);
1790
+ const f = o(d, "md", n, a), m = u.register("box-shadow", f);
1785
1791
  return this._classNames.push(m), this;
1786
1792
  } else {
1787
- const m = i(d, n, a, l), p = f.register("box-shadow", m);
1793
+ const m = o(d, n, a, l), p = u.register("box-shadow", m);
1788
1794
  return this._classNames.push(p), this;
1789
1795
  }
1790
1796
  }
@@ -1819,10 +1825,10 @@ class Ee {
1819
1825
  "fontWeight",
1820
1826
  "lineHeight"
1821
1827
  ]);
1822
- for (const [i, o] of Object.entries(e)) {
1823
- if (o == null) continue;
1824
- const n = i.replace(/[A-Z]/g, (l) => `-${l.toLowerCase()}`), a = typeof o == "number" && !s.has(i) && !s.has(n) ? `${o}px` : String(o);
1825
- this._classNames.push(f.registerMedia(t, n, a));
1828
+ for (const [o, i] of Object.entries(e)) {
1829
+ if (i == null) continue;
1830
+ const n = o.replace(/[A-Z]/g, (l) => `-${l.toLowerCase()}`), a = typeof i == "number" && !s.has(o) && !s.has(n) ? `${i}px` : String(i);
1831
+ this._classNames.push(u.registerMedia(t, n, a));
1826
1832
  }
1827
1833
  }
1828
1834
  sm(t) {
@@ -1839,23 +1845,23 @@ class Ee {
1839
1845
  }
1840
1846
  rounded(t) {
1841
1847
  if (typeof t == "number") {
1842
- const e = f.register("border-radius", `${t}px`);
1848
+ const e = u.register("border-radius", `${t}px`);
1843
1849
  this._classNames.push(e);
1844
1850
  } else if (typeof t == "string" && (t.startsWith("rounded-") || ["sm", "md", "lg", "xl", "2xl", "3xl", "full", "none"].includes(t))) {
1845
1851
  const e = t.startsWith("rounded-") ? t : `rounded-${t}`;
1846
1852
  this._classNames.push(e);
1847
1853
  } else {
1848
- const e = f.register("border-radius", t);
1854
+ const e = u.register("border-radius", t);
1849
1855
  this._classNames.push(e);
1850
1856
  }
1851
1857
  return this;
1852
1858
  }
1853
1859
  borderRadius(t) {
1854
1860
  if (typeof t == "number") {
1855
- const e = f.register("border-radius", `${t}px`);
1861
+ const e = u.register("border-radius", `${t}px`);
1856
1862
  this._classNames.push(e);
1857
1863
  } else {
1858
- const e = f.register("border-radius", t);
1864
+ const e = u.register("border-radius", t);
1859
1865
  this._classNames.push(e);
1860
1866
  }
1861
1867
  return this;
@@ -1866,45 +1872,45 @@ class Ee {
1866
1872
  else if (["red", "blue", "green", "gray", "white", "black", "transparent"].some((e) => t.includes(e)))
1867
1873
  this._classNames.push(`border-${t}`);
1868
1874
  else {
1869
- const e = f.register("border-color", t);
1875
+ const e = u.register("border-color", t);
1870
1876
  this._classNames.push(e);
1871
1877
  }
1872
1878
  return this;
1873
1879
  }
1874
1880
  width(t) {
1875
1881
  if (typeof t == "number") {
1876
- const e = f.register("width", `${t}px`);
1882
+ const e = u.register("width", `${t}px`);
1877
1883
  this._classNames.push(e);
1878
1884
  } else if (typeof t == "string" && (t.startsWith("w-") || t === "full" || t === "screen" || t === "min" || t === "max" || t === "fit")) {
1879
1885
  const e = t.startsWith("w-") ? t : `w-${t}`;
1880
1886
  this._classNames.push(e);
1881
1887
  } else {
1882
- const e = f.register("width", t);
1888
+ const e = u.register("width", t);
1883
1889
  this._classNames.push(e);
1884
1890
  }
1885
1891
  return this;
1886
1892
  }
1887
1893
  height(t) {
1888
1894
  if (typeof t == "number") {
1889
- const e = f.register("height", `${t}px`);
1895
+ const e = u.register("height", `${t}px`);
1890
1896
  this._classNames.push(e);
1891
1897
  } else if (typeof t == "string" && (t.startsWith("h-") || t === "full" || t === "screen" || t === "min" || t === "max" || t === "fit")) {
1892
1898
  const e = t.startsWith("h-") ? t : `h-${t}`;
1893
1899
  this._classNames.push(e);
1894
1900
  } else {
1895
- const e = f.register("height", t);
1901
+ const e = u.register("height", t);
1896
1902
  this._classNames.push(e);
1897
1903
  }
1898
1904
  return this;
1899
1905
  }
1900
1906
  gap(t) {
1901
1907
  if (typeof t == "number") {
1902
- const e = f.register("gap", `${t}px`);
1908
+ const e = u.register("gap", `${t}px`);
1903
1909
  this._classNames.push(e);
1904
1910
  } else if (typeof t == "string" && t.startsWith("gap-"))
1905
1911
  this._classNames.push(t);
1906
1912
  else {
1907
- const e = f.register("gap", t);
1913
+ const e = u.register("gap", t);
1908
1914
  this._classNames.push(e);
1909
1915
  }
1910
1916
  return this;
@@ -1955,18 +1961,18 @@ class Ee {
1955
1961
  ), this;
1956
1962
  }
1957
1963
  borderInput(t = "gray-300", e = "blue-500") {
1958
- const s = (n) => ["red", "blue", "green", "yellow", "purple", "pink", "indigo", "gray", "orange", "teal", "cyan", "emerald", "lime", "amber", "fuchsia", "rose", "violet", "sky", "slate", "zinc", "neutral", "stone"].includes(n) ? `${n}-500` : n, i = s(t), o = s(e);
1964
+ const s = (n) => ["red", "blue", "green", "yellow", "purple", "pink", "indigo", "gray", "orange", "teal", "cyan", "emerald", "lime", "amber", "fuchsia", "rose", "violet", "sky", "slate", "zinc", "neutral", "stone"].includes(n) ? `${n}-500` : n, o = s(t), i = s(e);
1959
1965
  return this._classNames.push(
1960
1966
  "border",
1961
- `border-${i}`,
1967
+ `border-${o}`,
1962
1968
  "focus-within:ring-2",
1963
- `focus-within:ring-${o}`,
1964
- `focus-within:border-${o}`
1969
+ `focus-within:ring-${i}`,
1970
+ `focus-within:border-${i}`
1965
1971
  ), this.clean();
1966
1972
  }
1967
1973
  weight(t) {
1968
1974
  if (typeof t == "number") {
1969
- const e = f.register("font-weight", String(t));
1975
+ const e = u.register("font-weight", String(t));
1970
1976
  this._classNames.push(e);
1971
1977
  } else {
1972
1978
  const e = {
@@ -1983,7 +1989,7 @@ class Ee {
1983
1989
  if (e[t])
1984
1990
  this._classNames.push(e[t]);
1985
1991
  else {
1986
- const s = f.register("font-weight", t);
1992
+ const s = u.register("font-weight", t);
1987
1993
  this._classNames.push(s);
1988
1994
  }
1989
1995
  }
@@ -2052,11 +2058,11 @@ class Ee {
2052
2058
  props(t) {
2053
2059
  return this._props = { ...this._props, ...t }, this;
2054
2060
  }
2055
- transition(t, e, s, i) {
2061
+ transition(t, e, s, o) {
2056
2062
  if (typeof t == "string" && e === void 0)
2057
- return this.replaceTransitionClass(f.register("transition", t)), this;
2058
- const o = Array.isArray(t) ? t.join(", ") : t, n = `${e || this._transitionDuration}ms`, a = v(s || this._transitionEasing), l = i ? `${i}ms` : "0ms";
2059
- return this.replaceTransitionClass(f.register("transition", `${o} ${n} ${a} ${l}`)), this;
2063
+ return this.replaceTransitionClass(u.register("transition", t)), this;
2064
+ const i = Array.isArray(t) ? t.join(", ") : t, n = `${e || this._transitionDuration}ms`, a = v(s || this._transitionEasing), l = o ? `${o}ms` : "0ms";
2065
+ return this.replaceTransitionClass(u.register("transition", `${i} ${n} ${a} ${l}`)), this;
2060
2066
  }
2061
2067
  /**
2062
2068
  * Set transition duration in milliseconds
@@ -2094,15 +2100,15 @@ class Ee {
2094
2100
  * Apply the built transition to the element
2095
2101
  */
2096
2102
  _applyTransition() {
2097
- const t = this._transitionProperties.join(", "), e = `${this._transitionDuration}ms`, s = this._transitionEasing, i = this._transitionDelay > 0 ? `${this._transitionDelay}ms` : "0ms";
2098
- this.replaceTransitionClass(f.register("transition", `${t} ${e} ${s} ${i}`));
2103
+ const t = this._transitionProperties.join(", "), e = `${this._transitionDuration}ms`, s = this._transitionEasing, o = this._transitionDelay > 0 ? `${this._transitionDelay}ms` : "0ms";
2104
+ this.replaceTransitionClass(u.register("transition", `${t} ${e} ${s} ${o}`));
2099
2105
  }
2100
2106
  replaceTransitionClass(t) {
2101
2107
  this._transitionClass && (this._classNames = this._classNames.filter((e) => e !== this._transitionClass)), this._transitionClass = t, this._classNames.push(t);
2102
2108
  }
2103
2109
  animate(t, e) {
2104
2110
  _(), this._usesCssMotion = !0, this._motionClass && (this._classNames = this._classNames.filter((h) => h !== this._motionClass));
2105
- const s = Pt(t), i = (s ? t.duration : e == null ? void 0 : e.duration) ?? this._transitionDuration, o = (s ? t.delay : e == null ? void 0 : e.delay) ?? this._transitionDelay;
2111
+ const s = Pt(t), o = (s ? t.duration : e == null ? void 0 : e.duration) ?? this._transitionDuration, i = (s ? t.delay : e == null ? void 0 : e.delay) ?? this._transitionDelay;
2106
2112
  let n = s ? t.ease : e == null ? void 0 : e.ease;
2107
2113
  const a = {
2108
2114
  stiffness: (s ? t.stiffness : e == null ? void 0 : e.stiffness) ?? void 0,
@@ -2110,16 +2116,16 @@ class Ee {
2110
2116
  mass: (s ? t.mass : e == null ? void 0 : e.mass) ?? void 0
2111
2117
  };
2112
2118
  if (s) {
2113
- const h = G(t.from), u = G(t.to), m = f.registerKeyframes(Ft(`${h}=>${u}`), h, u);
2119
+ const h = G(t.from), f = G(t.to), m = u.registerKeyframes(Ft(`${h}=>${f}`), h, f);
2114
2120
  this._motionClass = `fibo-anim ${m}`, this._props["data-fibo-anim"] = "custom";
2115
2121
  } else {
2116
- const h = Ot(t);
2122
+ const h = Bt(t);
2117
2123
  this._motionClass = `fibo-anim fibo-anim-${h}`, this._props["data-fibo-anim"] = h, (e == null ? void 0 : e.from) !== void 0 && (this._style["--fibo-from"] = typeof e.from == "number" ? `${e.from}px` : e.from), !n && h === "pop" && (n = "spring");
2118
2124
  }
2119
2125
  const l = v(n ?? "ease", a);
2120
2126
  this._classNames.push(this._motionClass);
2121
2127
  const d = this._style;
2122
- return d["--fibo-dur"] = `${i}ms`, d["--fibo-ease"] = l, d["--fibo-delay"] = `${o}ms`, this._reducedMotion === "never" && !this._classNames.includes("fibo-motion-force") && this._classNames.push("fibo-motion-force"), this;
2128
+ return d["--fibo-dur"] = `${o}ms`, d["--fibo-ease"] = l, d["--fibo-delay"] = `${i}ms`, this._reducedMotion === "never" && !this._classNames.includes("fibo-motion-force") && this._classNames.push("fibo-motion-force"), this;
2123
2129
  }
2124
2130
  /** CSS `linear()` spring. Works on `.animate()` and `.transition()` / `.hover()`. */
2125
2131
  spring(t) {
@@ -2157,7 +2163,7 @@ class Ee {
2157
2163
  return _(), this._scrollProgress = !0, this._classNames.push("fibo-scroll-progress"), this._usesCssMotion = !0, this;
2158
2164
  }
2159
2165
  smoothScroll() {
2160
- return this._classNames.push(f.register("scroll-behavior", "smooth")), this;
2166
+ return this._classNames.push(u.register("scroll-behavior", "smooth")), this;
2161
2167
  }
2162
2168
  scrollSnap(t = "y") {
2163
2169
  return _(), this._classNames.push(`fibo-snap-${t}`), this;
@@ -2167,9 +2173,9 @@ class Ee {
2167
2173
  }
2168
2174
  sticky(t = 0) {
2169
2175
  if (t === !1) return this;
2170
- this._classNames.push(f.register("position", "sticky"));
2176
+ this._classNames.push(u.register("position", "sticky"));
2171
2177
  const e = t === !0 ? "0px" : typeof t == "number" ? `${t}px` : t;
2172
- this._classNames.push(f.register("top", e));
2178
+ this._classNames.push(u.register("top", e));
2173
2179
  const s = t === !0 || t === 0 ? ne : typeof t == "number" ? `${Math.max(t, ht)}px` : t;
2174
2180
  return this.publishStickyOffset(s), this;
2175
2181
  }
@@ -2179,7 +2185,7 @@ class Ee {
2179
2185
  */
2180
2186
  publishStickyOffset(t) {
2181
2187
  const e = typeof t == "number" ? `${t}px` : t;
2182
- f.registerRoot("--fibo-sticky-offset", e), f.ensureScrollPadding();
2188
+ u.registerRoot("--fibo-sticky-offset", e), u.ensureScrollPadding();
2183
2189
  }
2184
2190
  viewTransition(t) {
2185
2191
  return this._viewTransition = t, this._style.viewTransitionName = t, this;
@@ -2192,7 +2198,7 @@ class Ee {
2192
2198
  }
2193
2199
  ensureInteractiveTransition() {
2194
2200
  this._transitionClass || this._motionClass || this.replaceTransitionClass(
2195
- f.register(
2201
+ u.register(
2196
2202
  "transition",
2197
2203
  `transform ${this._transitionDuration}ms ${this._transitionEasing}, opacity ${this._transitionDuration}ms ${this._transitionEasing}`
2198
2204
  )
@@ -2274,7 +2280,7 @@ class Ee {
2274
2280
  t.transform = e ? `${e} ${this._transforms.join(" ")}` : this._transforms.join(" ");
2275
2281
  }
2276
2282
  if (this._animationConfig && this._animatedProps.size === 0) {
2277
- const { duration: e = 300, curve: s = "easeOut", stiffness: i, damping: o } = this._animationConfig, n = v(s, { stiffness: i, damping: o });
2283
+ const { duration: e = 300, curve: s = "easeOut", stiffness: o, damping: i } = this._animationConfig, n = v(s, { stiffness: o, damping: i });
2278
2284
  t.transition = `all ${e}ms ${n}`;
2279
2285
  }
2280
2286
  return t;
@@ -2317,7 +2323,7 @@ function ce(r) {
2317
2323
  return t;
2318
2324
  }
2319
2325
  function le(r) {
2320
- const t = r._isObserver, e = r._signals, s = r._observers, i = r._state, o = r._providers, n = ce(r), a = () => {
2326
+ const t = r._isObserver, e = r._signals, s = r._observers, o = r._state, i = r._providers, n = ce(r), a = () => {
2321
2327
  var S;
2322
2328
  let m = r.build();
2323
2329
  const p = r._animatedProps, y = r._animationConfig;
@@ -2340,42 +2346,42 @@ function le(r) {
2340
2346
  })), r._scrollProgress && (m = g.createElement(ie, { key: n, children: m })), r._usesCssMotion && (m = g.createElement(
2341
2347
  g.Fragment,
2342
2348
  { key: n },
2343
- g.createElement(Bt),
2349
+ g.createElement(Ot),
2344
2350
  m
2345
2351
  ));
2346
2352
  const x = r._gesture;
2347
2353
  return x && (m = x.wrap(m)), m;
2348
- }, l = typeof r.hasStateManagement == "function" ? r.hasStateManagement() : !!(t || e && e.size || s && s.size || i && i.size || o && o.size), d = t ? g.createElement(Nt, {
2354
+ }, l = typeof r.hasStateManagement == "function" ? r.hasStateManagement() : !!(t || e && e.size || s && s.size || o && o.size || i && i.size), d = t ? g.createElement(Nt, {
2349
2355
  key: n,
2350
2356
  children: a
2351
2357
  }) : null, h = () => d ?? a();
2352
- let u = h();
2353
- return l && e && e.size > 0 ? u = g.createElement(It, {
2358
+ let f = h();
2359
+ return l && e && e.size > 0 ? f = g.createElement(It, {
2354
2360
  key: n,
2355
2361
  signals: e,
2356
2362
  children: h
2357
- }) : l && s && s.size > 0 && (u = g.createElement(Tt, {
2363
+ }) : l && s && s.size > 0 && (f = g.createElement(Tt, {
2358
2364
  key: n,
2359
2365
  observables: s,
2360
2366
  children: h
2361
- })), l && i && i.size > 0 && (u = g.createElement(Mt, {
2367
+ })), l && o && o.size > 0 && (f = g.createElement(Mt, {
2362
2368
  key: n,
2363
- stateMap: i,
2364
- children: u
2365
- })), l && o && o.size > 0 && (u = g.createElement(Rt, {
2369
+ stateMap: o,
2370
+ children: f
2371
+ })), l && i && i.size > 0 && (f = g.createElement(Rt, {
2366
2372
  key: n,
2367
- providers: o,
2368
- children: u
2369
- })), u;
2373
+ providers: i,
2374
+ children: f
2375
+ })), f;
2370
2376
  }
2371
- function ft(r, t, e) {
2377
+ function ut(r, t, e) {
2372
2378
  const s = function() {
2373
2379
  return t();
2374
2380
  };
2375
2381
  s.displayName = e;
2376
- const i = g.createElement(s);
2382
+ const o = g.createElement(s);
2377
2383
  Object.defineProperty(r, "$$typeof", {
2378
- value: i.$$typeof,
2384
+ value: o.$$typeof,
2379
2385
  enumerable: !0,
2380
2386
  configurable: !0
2381
2387
  }), Object.defineProperty(r, "type", {
@@ -2383,36 +2389,36 @@ function ft(r, t, e) {
2383
2389
  enumerable: !0,
2384
2390
  configurable: !0,
2385
2391
  writable: !0
2386
- }), r.ref = i.ref ?? null, r.__fiboElementProps = i.props ?? {}, i._owner !== void 0 && (r._owner = i._owner), r._store = { validated: 1 };
2392
+ }), r.ref = o.ref ?? null, r.__fiboElementProps = o.props ?? {}, o._owner !== void 0 && (r._owner = o._owner), r._store = { validated: 1 };
2387
2393
  }
2388
2394
  function Me(r) {
2389
2395
  return (...t) => {
2390
- const e = new r(...t), s = r.name.replace(/Builder$/, "") || "Fibo", i = () => le(e);
2391
- return ft(e, i, s), new Proxy(e, {
2392
- get(o, n, a) {
2396
+ const e = new r(...t), s = r.name.replace(/Builder$/, "") || "Fibo", o = () => le(e);
2397
+ return ut(e, o, s), new Proxy(e, {
2398
+ get(i, n, a) {
2393
2399
  var l, d;
2394
2400
  if (n === "build")
2395
- return i;
2401
+ return o;
2396
2402
  if (n === "key") {
2397
- const h = (l = o._props) == null ? void 0 : l.key;
2403
+ const h = (l = i._props) == null ? void 0 : l.key;
2398
2404
  if (h != null && h !== "")
2399
2405
  return String(h);
2400
- if (!o.__fiboKeyFn) {
2401
- const u = (m) => (o.key(m), a);
2402
- o.__fiboKeyFn = u;
2406
+ if (!i.__fiboKeyFn) {
2407
+ const f = (m) => (i.key(m), a);
2408
+ i.__fiboKeyFn = f;
2403
2409
  }
2404
- return o.__fiboKeyFn;
2410
+ return i.__fiboKeyFn;
2405
2411
  }
2406
2412
  if (n === "props") {
2407
- const h = (d = o._props) == null ? void 0 : d.key, u = {
2408
- ...o.__fiboElementProps ?? {},
2413
+ const h = (d = i._props) == null ? void 0 : d.key, f = {
2414
+ ...i.__fiboElementProps ?? {},
2409
2415
  ...h != null && h !== "" ? { key: String(h) } : {}
2410
- }, m = Object.getPrototypeOf(o).props;
2411
- return typeof m == "function" ? Object.assign((y) => (m.call(o, y), a), u) : u;
2416
+ }, m = Object.getPrototypeOf(i).props;
2417
+ return typeof m == "function" ? Object.assign((y) => (m.call(i, y), a), f) : f;
2412
2418
  }
2413
- return ae.has(n) || Reflect.has(o, n) ? Reflect.get(o, n, a) : (h) => {
2414
- const u = n.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), p = ["opacity", "z-index", "flex", "flex-grow", "flex-shrink", "order", "font-weight", "line-height"].includes(u), y = typeof h == "number" && !p ? `${h}px` : String(h), b = f.register(u, y);
2415
- return o.className(b), a;
2419
+ return ae.has(n) || Reflect.has(i, n) ? Reflect.get(i, n, a) : (h) => {
2420
+ const f = n.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), p = ["opacity", "z-index", "flex", "flex-grow", "flex-shrink", "order", "font-weight", "line-height"].includes(f), y = typeof h == "number" && !p ? `${h}px` : String(h), b = u.register(f, y);
2421
+ return i.className(b), a;
2416
2422
  };
2417
2423
  }
2418
2424
  });
@@ -2424,19 +2430,19 @@ const he = ({
2424
2430
  loading: e,
2425
2431
  error: s
2426
2432
  }) => {
2427
- const i = g.useSyncExternalStore(
2433
+ const o = g.useSyncExternalStore(
2428
2434
  g.useCallback((a) => r.subscribe ? r.subscribe(a) : () => {
2429
2435
  }, [r]),
2430
2436
  () => r.value
2431
- ), o = i == null ? void 0 : i.error;
2432
- return o && s ? s(o) : ((i == null ? void 0 : i.isLoading) || (i == null ? void 0 : i.loading)) === !0 && e ? e() : t ? t(i) : null;
2433
- }, fe = g.memo(he);
2434
- class ue {
2437
+ ), i = o == null ? void 0 : o.error;
2438
+ return i && s ? s(i) : ((o == null ? void 0 : o.isLoading) || (o == null ? void 0 : o.loading)) === !0 && e ? e() : t ? t(o) : null;
2439
+ }, ue = g.memo(he);
2440
+ class fe {
2435
2441
  constructor(t) {
2436
2442
  c(this, "_loading");
2437
2443
  c(this, "_error");
2438
2444
  c(this, "_builder");
2439
- this._signal = t, ft(this, () => this.build(), "ValueBuilder");
2445
+ this._signal = t, ut(this, () => this.build(), "ValueBuilder");
2440
2446
  }
2441
2447
  loading(t) {
2442
2448
  return this._loading = typeof t == "function" ? t : () => t, this;
@@ -2451,7 +2457,7 @@ class ue {
2451
2457
  return this._builder = t, this;
2452
2458
  }
2453
2459
  build() {
2454
- return g.createElement(fe, {
2460
+ return g.createElement(ue, {
2455
2461
  signal: this._signal,
2456
2462
  builder: this._builder,
2457
2463
  loading: this._loading,
@@ -2460,10 +2466,10 @@ class ue {
2460
2466
  }
2461
2467
  }
2462
2468
  function Te(r) {
2463
- return new ue(r);
2469
+ return new fe(r);
2464
2470
  }
2465
2471
  export {
2466
- Ot as A,
2472
+ Bt as A,
2467
2473
  Mt as B,
2468
2474
  $t as C,
2469
2475
  zt as D,
@@ -2472,7 +2478,7 @@ export {
2472
2478
  jt as G,
2473
2479
  At as H,
2474
2480
  K as I,
2475
- Z as J,
2481
+ q as J,
2476
2482
  F as K,
2477
2483
  at as L,
2478
2484
  U as M,
@@ -2497,7 +2503,7 @@ export {
2497
2503
  it as m,
2498
2504
  v as n,
2499
2505
  ye as o,
2500
- Bt as p,
2506
+ Ot as p,
2501
2507
  we as q,
2502
2508
  kt as r,
2503
2509
  ge as s,