fiboui 2.8.5 → 2.9.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,15 +1,15 @@
1
1
  var L = Object.defineProperty;
2
- var R = (t, r, e) => r in t ? L(t, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[r] = e;
3
- var i = (t, r, e) => R(t, typeof r != "symbol" ? r + "" : r, e);
2
+ var j = (t, r, e) => r in t ? L(t, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[r] = e;
3
+ var i = (t, r, e) => j(t, typeof r != "symbol" ? r + "" : r, e);
4
4
  import h from "react";
5
- import { aZ as C, a_ as E, aA as y, b7 as I, a9 as j, ae as H, b1 as W, b4 as M, b2 as D } from "./client-BzMPiV64.js";
5
+ import { b2 as w, b3 as E, aF as y, bc as I, a9 as R, aj as H, bd as M, b6 as N, b9 as D, b7 as $ } from "./client-3NdKI2xE.js";
6
6
  import { jsx as s, jsxs as v } from "react/jsx-runtime";
7
- function $(t) {
7
+ function V(t) {
8
8
  if (typeof t != "string") return "";
9
9
  const r = t.trim();
10
10
  return !r || I(r) ? "" : r;
11
11
  }
12
- const V = ({ size: t }) => h.createElement(
12
+ const q = ({ size: t }) => h.createElement(
13
13
  "svg",
14
14
  {
15
15
  width: t,
@@ -25,16 +25,16 @@ const V = ({ size: t }) => h.createElement(
25
25
  fill: "#6a6a6a"
26
26
  })
27
27
  ), U = h.memo((t) => {
28
- const { image: r, size: e, border: u, shape: g, status: d, initials: b, icon: p, alt: x, className: n, style: o, ...l } = t, c = $(r), _ = typeof e == "number" ? `${e}px` : e, a = typeof e == "number" ? e : 40, F = {
28
+ const { image: r, size: e, border: u, shape: f, status: d, initials: b, icon: p, alt: x, className: a, style: o, ...n } = t, c = V(r), _ = typeof e == "number" ? `${e}px` : e, l = typeof e == "number" ? e : 40, F = {
29
29
  circle: "50%",
30
30
  rounded: "24%",
31
31
  square: "0"
32
- }, k = {
32
+ }, C = {
33
33
  none: "transparent",
34
34
  online: "#10B981",
35
35
  offline: "#9CA3AF",
36
36
  busy: "#EF4444"
37
- }, B = d !== "none" ? y().style({
37
+ }, S = d !== "none" ? y().style({
38
38
  position: "absolute",
39
39
  bottom: "-2%",
40
40
  right: "-2%",
@@ -42,16 +42,16 @@ const V = ({ size: t }) => h.createElement(
42
42
  height: "28%",
43
43
  minWidth: "10px",
44
44
  minHeight: "10px",
45
- backgroundColor: k[d],
45
+ backgroundColor: C[d],
46
46
  borderRadius: "50%",
47
47
  border: "3px solid #ffffff",
48
48
  boxSizing: "content-box"
49
- }).build() : null, f = typeof b == "string" ? b.trim().slice(0, 2).toUpperCase() : "", w = c ? null : f || (p === "user" ? h.createElement(V, { size: _ }) : p || null), N = typeof x == "string" && x.trim() || f || "Avatar", A = y().style({
49
+ }).build() : null, g = typeof b == "string" ? b.trim().slice(0, 2).toUpperCase() : "", B = c ? null : g || (p === "user" ? h.createElement(q, { size: _ }) : p || null), W = typeof x == "string" && x.trim() || g || "Avatar", A = y().style({
50
50
  width: "100%",
51
51
  height: "100%",
52
- borderRadius: F[g],
52
+ borderRadius: F[f],
53
53
  backgroundImage: c ? `url(${JSON.stringify(c)})` : void 0,
54
- backgroundColor: c ? void 0 : (o == null ? void 0 : o.backgroundColor) || (f ? "#ddd" : "transparent"),
54
+ backgroundColor: c ? void 0 : (o == null ? void 0 : o.backgroundColor) || (g ? "#ddd" : "transparent"),
55
55
  backgroundSize: "cover",
56
56
  backgroundPosition: "center",
57
57
  border: u,
@@ -61,23 +61,23 @@ const V = ({ size: t }) => h.createElement(
61
61
  justifyContent: "center",
62
62
  overflow: "hidden",
63
63
  color: (o == null ? void 0 : o.color) || "#555",
64
- fontSize: a * 0.42,
64
+ fontSize: l * 0.42,
65
65
  fontWeight: 500,
66
66
  lineHeight: 1
67
- }).children([w]).build();
68
- return y().className(`fibo-avatar ${n || ""}`).props({
69
- ...l,
67
+ }).children([B]).build();
68
+ return y().className(`fibo-avatar ${a || ""}`).props({
69
+ ...n,
70
70
  role: "img",
71
- "aria-label": N
71
+ "aria-label": W
72
72
  }).style({
73
73
  position: "relative",
74
74
  width: _,
75
75
  height: _,
76
76
  ...o,
77
77
  overflow: "visible"
78
- }).children([A, B]).build();
78
+ }).children([A, S]).build();
79
79
  });
80
- class q extends E {
80
+ class T extends E {
81
81
  constructor() {
82
82
  super(...arguments);
83
83
  i(this, "_image", "");
@@ -134,25 +134,25 @@ class q extends E {
134
134
  return h.createElement(U, e);
135
135
  }
136
136
  }
137
- const re = C(q);
138
- function T(t) {
137
+ const ie = w(T);
138
+ function P(t) {
139
139
  return t === "success" || t === "warning" || t === "error" || t === "info" ? t : "none";
140
140
  }
141
- function P(t) {
141
+ function G(t) {
142
142
  return t === "accent" || t === "outline" || t === "glass" || t === "solid" || t === "dot" || t === "neutral" ? t : "neutral";
143
143
  }
144
- function G(t) {
144
+ function J(t) {
145
145
  return t === "pill" ? "pill" : "rounded";
146
146
  }
147
- const J = h.memo((t) => {
148
- const { text: r, icon: e, variant: u, intent: g, shape: d, className: b, style: p, ...x } = t, n = T(g), o = P(u), l = G(d), c = {
147
+ const O = h.memo((t) => {
148
+ const { text: r, icon: e, variant: u, intent: f, shape: d, className: b, style: p, ...x } = t, a = P(f), o = G(u), n = J(d), c = {
149
149
  none: { bg: "#F9FAFB", text: "#6B7280", border: "#E5E7EB" },
150
150
  success: { bg: "#ECFDF5", text: "#059669", border: "transparent" },
151
151
  warning: { bg: "#FFFBEB", text: "#D97706", border: "transparent" },
152
152
  error: { bg: "#FFF1F2", text: "#E11D48", border: "transparent" },
153
153
  info: { bg: "#EFF6FF", text: "#2563EB", border: "transparent" }
154
154
  };
155
- let a = { ...{
155
+ let l = { ...{
156
156
  neutral: { backgroundColor: "#F9FAFB", color: "#6B7280", border: "1px solid #E5E7EB" },
157
157
  accent: { backgroundColor: "#EFF6FF", color: "#3B82F6", border: "none" },
158
158
  outline: { backgroundColor: "transparent", color: "#FFFFFF", border: "1px solid rgba(255,255,255,0.3)" },
@@ -165,29 +165,29 @@ const J = h.memo((t) => {
165
165
  solid: { backgroundColor: "#111827", color: "#FFFFFF", border: "none" },
166
166
  dot: { backgroundColor: "transparent", color: "#6B7280", border: "1px solid #E5E7EB", padding: "4px 10px" }
167
167
  }[o] };
168
- if (n !== "none") {
169
- const f = c[n];
168
+ if (a !== "none") {
169
+ const g = c[a];
170
170
  if (o === "solid") {
171
- const w = {
171
+ const B = {
172
172
  none: "#111827",
173
173
  success: "#059669",
174
174
  warning: "#D97706",
175
175
  error: "#E11D48",
176
176
  info: "#2563EB"
177
177
  };
178
- a.backgroundColor = w[n], a.color = "#FFFFFF";
179
- } else o === "dot" ? (a.color = "#374151", a.borderColor = "#E5E7EB") : (a.backgroundColor = f.bg, a.color = f.text, f.border ? a.border = `1px solid ${f.border}` : a.border = "none");
178
+ l.backgroundColor = B[a], l.color = "#FFFFFF";
179
+ } else o === "dot" ? (l.color = "#374151", l.borderColor = "#E5E7EB") : (l.backgroundColor = g.bg, l.color = g.text, g.border ? l.border = `1px solid ${g.border}` : l.border = "none");
180
180
  }
181
181
  const F = {
182
182
  pill: "9999px",
183
183
  rounded: "8px"
184
- }, k = n === "error" || n === "warning", B = n === "none" ? {} : {
185
- role: k ? "alert" : "status",
186
- "aria-live": k ? "assertive" : "polite"
184
+ }, C = a === "error" || a === "warning", S = a === "none" ? {} : {
185
+ role: C ? "alert" : "status",
186
+ "aria-live": C ? "assertive" : "polite"
187
187
  };
188
188
  return y().className(b).style({
189
- ...a,
190
- borderRadius: F[l],
189
+ ...l,
190
+ borderRadius: F[n],
191
191
  padding: o === "dot" ? "4px 8px" : "4px 10px",
192
192
  display: "inline-flex",
193
193
  alignItems: "center",
@@ -199,22 +199,22 @@ const J = h.memo((t) => {
199
199
  ...p
200
200
  }).props({
201
201
  ...x,
202
- ...B
202
+ ...S
203
203
  }).children(
204
- j().gap(6).alignItems("center").children([
205
- o === "dot" && n !== "none" ? y().style({
204
+ R().gap(6).alignItems("center").children([
205
+ o === "dot" && a !== "none" ? y().style({
206
206
  width: "6px",
207
207
  height: "6px",
208
208
  borderRadius: "50%",
209
- backgroundColor: c[n].text,
210
- boxShadow: `0 0 6px ${c[n].text}66`
209
+ backgroundColor: c[a].text,
210
+ boxShadow: `0 0 6px ${c[a].text}66`
211
211
  }).props({ "aria-hidden": !0 }).build() : null,
212
212
  e ? y().classNames(["flex", "items-center"]).children(e).build() : null,
213
213
  H(r).fontSize(12).fontWeight(600).style({ color: "inherit" }).build()
214
214
  ]).build()
215
215
  ).build();
216
216
  });
217
- class O extends E {
217
+ class K extends E {
218
218
  constructor() {
219
219
  super(...arguments);
220
220
  i(this, "_text", "");
@@ -249,56 +249,58 @@ class O extends E {
249
249
  style: this.getStyle(),
250
250
  ...this._props
251
251
  };
252
- return h.createElement(J, e);
252
+ return h.createElement(O, e);
253
253
  }
254
254
  }
255
- const ie = C(O);
255
+ const se = w(K);
256
256
  function z(t, r) {
257
- if (!(typeof r != "string" || !W(r)))
258
- for (const e of M(r))
257
+ if (!(typeof r != "string" || !N(r)))
258
+ for (const e of D(r))
259
259
  t.bindSignal(e);
260
260
  }
261
- function S(t) {
262
- return typeof t != "string" ? "" : W(t) ? D(t) : t;
261
+ function k(t) {
262
+ return typeof t != "string" ? "" : N(t) ? $(t) : t;
263
263
  }
264
- const Z = {
264
+ const Q = {
265
265
  circle: "50%",
266
266
  rounded: "8px",
267
267
  square: "0px"
268
- }, K = h.memo((t) => {
268
+ }, X = h.memo((t) => {
269
269
  const {
270
270
  src: r,
271
271
  alt: e,
272
272
  fit: u,
273
- resizable: g,
273
+ resizable: f,
274
274
  clipShape: d,
275
275
  frameWidth: b,
276
276
  frameHeight: p,
277
277
  className: x,
278
- style: n,
278
+ style: a,
279
279
  ...o
280
- } = t, l = { ...n };
281
- if (u && (l.objectFit = u), b && (l.width = `${b}px`), p && (l.height = `${p}px`), g && (l.maxWidth = "100%", p || (l.height = "auto")), d === "circle" || d === "rounded" || d === "square") {
280
+ } = t, n = { ...a };
281
+ if (n.display = n.display ?? "block", u && (n.objectFit = u), b && (n.width = `${b}px`), p && (n.height = `${p}px`), f && (n.maxWidth = "100%", p || (n.height = "auto")), d === "circle" || d === "rounded" || d === "square") {
282
282
  const F = d;
283
- l.overflow = "hidden", l.borderRadius = Z[F];
283
+ n.overflow = "hidden", n.borderRadius = Q[F];
284
284
  }
285
- const c = S(typeof r == "string" ? r : ""), _ = c && !I(c) ? c : void 0, a = S(typeof e == "string" ? e : "");
285
+ const c = k(typeof r == "string" ? r : ""), _ = c && !I(c) ? c : void 0, l = k(typeof e == "string" ? e : "");
286
286
  return h.createElement("img", {
287
287
  ...o,
288
288
  src: _,
289
- alt: a,
289
+ alt: l,
290
290
  className: x,
291
- style: l
291
+ style: n
292
292
  });
293
293
  });
294
- class Q extends E {
294
+ class Y extends E {
295
295
  constructor(e = "") {
296
296
  super();
297
297
  i(this, "_src", "");
298
298
  i(this, "_alt", "");
299
299
  i(this, "_fit", "cover");
300
300
  i(this, "_resizable", !1);
301
- i(this, "_clipShape");
301
+ /** Image-native clip (Tailwind / borderRadius on `<img>`). Distinct from
302
+ * {@link FiboBuilder.clipShape} chrome wrapper. */
303
+ i(this, "_imageClipShape");
302
304
  i(this, "_frameWidth");
303
305
  i(this, "_frameHeight");
304
306
  i(this, "_foregroundStyle");
@@ -319,36 +321,42 @@ class Q extends E {
319
321
  scaledToFill() {
320
322
  return this._fit = "cover", this;
321
323
  }
324
+ /**
325
+ * Fixed numeric `{ width, height }` still paints on the `<img>` (tests +
326
+ * object-fit). Any flexible SwiftUI frame (`maxWidth: Size.infinity`, …)
327
+ * goes through {@link FiboBuilder.frame} (wrapper).
328
+ */
322
329
  frame(e) {
323
- return this._frameWidth = e.width, this._frameHeight = e.height, this;
330
+ return M(e) ? (this._frameWidth = e.width, this._frameHeight = e.height, this) : super.frame(e);
324
331
  }
332
+ /** Named shapes paint on `<img>`; other radii use base chrome wrapper. */
325
333
  clipShape(e) {
326
- return this._clipShape = e, this;
334
+ return e === "circle" || e === "rounded" || e === "square" ? (this._imageClipShape = e, this) : super.clipShape(e);
327
335
  }
328
336
  foregroundStyle(e) {
329
337
  return this._foregroundStyle = e, this;
330
338
  }
331
339
  build() {
332
340
  const e = ["fibo-image", ...this._classNames];
333
- this._clipShape === "circle" ? e.push("rounded-full") : this._clipShape === "rounded" && e.push("rounded-lg");
334
- const u = e.filter(Boolean).join(" "), g = this.getStyle();
335
- this._foregroundStyle && (g.color = this._foregroundStyle);
341
+ this._imageClipShape === "circle" ? e.push("rounded-full") : this._imageClipShape === "rounded" && e.push("rounded-lg");
342
+ const u = e.filter(Boolean).join(" "), f = this.getStyle();
343
+ this._foregroundStyle && (f.color = this._foregroundStyle);
336
344
  const d = {
337
345
  ...this._props,
338
- src: S(this._src),
339
- alt: S(this._alt),
346
+ src: k(this._src),
347
+ alt: k(this._alt),
340
348
  fit: this._fit,
341
349
  resizable: this._resizable,
342
- clipShape: this._clipShape,
350
+ clipShape: this._imageClipShape,
343
351
  frameWidth: this._frameWidth,
344
352
  frameHeight: this._frameHeight,
345
353
  className: u,
346
- style: g
354
+ style: f
347
355
  };
348
- return h.createElement(K, d);
356
+ return h.createElement(X, d);
349
357
  }
350
358
  }
351
- const se = C(Q), m = { "aria-hidden": !0, focusable: "false" }, oe = {
359
+ const oe = w(Y), m = { "aria-hidden": !0, focusable: "false" }, ne = {
352
360
  Heart: /* @__PURE__ */ s("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", ...m, children: /* @__PURE__ */ s("path", { d: "M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z" }) }),
353
361
  Eth: /* @__PURE__ */ s("svg", { width: "14", height: "24", viewBox: "0 0 32 32", fill: "currentColor", ...m, children: /* @__PURE__ */ s("path", { d: "M15.925 23.96l-9.815-5.8 9.815 13.84 9.825-13.84-9.825 5.8zm0-23.96l-9.815 16.275 9.815 5.675 9.825-5.675-9.825-16.275zm0 20.3l-8.915-5.265 8.915-12.42 8.925 12.42-8.925 5.265z" }) }),
354
362
  Verify: /* @__PURE__ */ s("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "#3B82F6", stroke: "none", role: "img", "aria-label": "Verified", "aria-hidden": !1, focusable: "false", children: /* @__PURE__ */ s("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" }) }),
@@ -376,8 +384,8 @@ const se = C(Q), m = { "aria-hidden": !0, focusable: "false" }, oe = {
376
384
  ] })
377
385
  };
378
386
  export {
379
- re as A,
380
- ie as B,
381
- se as I,
382
- oe as a
387
+ ie as A,
388
+ se as B,
389
+ oe as I,
390
+ ne as a
383
391
  };
@@ -2,8 +2,8 @@ var ae = Object.defineProperty;
2
2
  var ie = (s, r, e) => r in s ? ae(s, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[r] = e;
3
3
  var i = (s, r, e) => ie(s, typeof r != "symbol" ? r + "" : r, e);
4
4
  import t from "react";
5
- import { aZ as I, a_ as $, b1 as z, b4 as R, b2 as q, z as le, b7 as Q, bo as oe } from "./client-BzMPiV64.js";
6
- import { a as F } from "./icons-aP7ZHyqh.js";
5
+ import { b2 as I, b3 as $, b6 as z, b9 as R, b7 as q, z as le, bc as Z, bA as oe } from "./client-3NdKI2xE.js";
6
+ import { a as F } from "./icons-DS8J4SFk.js";
7
7
  function ce(s, r) {
8
8
  if (!(typeof r != "string" || !z(r)))
9
9
  for (const e of R(r))
@@ -448,7 +448,7 @@ function X(s, r) {
448
448
  for (const e of R(r))
449
449
  s.bindSignal(e);
450
450
  }
451
- function Z(s) {
451
+ function J(s) {
452
452
  return typeof s != "string" ? s : z(s) ? q(s) : s;
453
453
  }
454
454
  const ze = t.memo((s) => {
@@ -819,8 +819,8 @@ class Le extends $ {
819
819
  color: this._color,
820
820
  height: this._height,
821
821
  variant: this._variant,
822
- label: Z(this._label),
823
- subLabel: Z(this._subLabel),
822
+ label: J(this._label),
823
+ subLabel: J(this._subLabel),
824
824
  items: this._items,
825
825
  size: this._size,
826
826
  strokeWidth: this._strokeWidth,
@@ -841,14 +841,14 @@ function T(s) {
841
841
  }
842
842
  function Be(s) {
843
843
  const r = s.trim();
844
- return !r || T(r) ? !1 : Q(r) || /^(https?:)?\/\//i.test(r) || r.startsWith("/") || r.startsWith("./") || r.startsWith("../") ? !0 : /^[a-z][a-z0-9+.-]*:/i.test(r);
844
+ return !r || T(r) ? !1 : Z(r) || /^(https?:)?\/\//i.test(r) || r.startsWith("/") || r.startsWith("./") || r.startsWith("../") ? !0 : /^[a-z][a-z0-9+.-]*:/i.test(r);
845
845
  }
846
846
  function Me(s) {
847
847
  if (typeof s != "string") return "";
848
848
  const r = s.trim();
849
- return !r || Q(r) || !oe(r) ? "" : r;
849
+ return !r || Z(r) || !oe(r) ? "" : r;
850
850
  }
851
- function J(s, r = {}) {
851
+ function Q(s, r = {}) {
852
852
  const e = s.sandbox ?? r.sandbox;
853
853
  return {
854
854
  ...r,
@@ -872,7 +872,7 @@ const je = t.memo((s) => {
872
872
  const c = o == null || Array.isArray(o) && o.length === 0 ? void 0 : o, v = (m) => t.createElement(
873
873
  "iframe",
874
874
  {
875
- ...J(m !== void 0 ? { ...n, src: m } : n),
875
+ ...Q(m !== void 0 ? { ...n, src: m } : n),
876
876
  className: e,
877
877
  style: l
878
878
  },
@@ -885,7 +885,7 @@ const je = t.memo((s) => {
885
885
  if (typeof r == "string")
886
886
  return null;
887
887
  if (t.isValidElement(r)) {
888
- const m = r, p = m.props || {}, y = [e, p.className].filter(Boolean).join(" ") || void 0, d = { ...p.style, ...l }, u = T(m.type) ? { ...J(n, p), className: y, style: d } : { ...n, className: y, style: d };
888
+ const m = r, p = m.props || {}, y = [e, p.className].filter(Boolean).join(" ") || void 0, d = { ...p.style, ...l }, u = T(m.type) ? { ...Q(n, p), className: y, style: d } : { ...n, className: y, style: d };
889
889
  return c !== void 0 ? t.cloneElement(m, u, c) : t.cloneElement(m, u);
890
890
  }
891
891
  return typeof r != "function" && !(typeof r == "object" && r !== null && "$$typeof" in r) ? null : t.createElement(
@@ -2,7 +2,7 @@ var w = Object.defineProperty;
2
2
  var S = (s, e, t) => e in s ? w(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
3
3
  var n = (s, e, t) => S(s, typeof e != "symbol" ? e + "" : e, t);
4
4
  import m from "react";
5
- import { aZ as g, a_ as d, b5 as N, b6 as C, b2 as j, b1 as _, b4 as z } from "./client-BzMPiV64.js";
5
+ import { b2 as g, b3 as d, ba as N, bb as C, b7 as j, b6 as _, b9 as z } from "./client-3NdKI2xE.js";
6
6
  function B(s, e) {
7
7
  if (!(typeof e != "string" || !_(e)))
8
8
  for (const t of z(e))
@@ -2,10 +2,10 @@ var Bt = Object.defineProperty;
2
2
  var Tt = (e, r, t) => r in e ? Bt(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;
3
3
  var n = (e, r, t) => Tt(e, typeof r != "symbol" ? r + "" : r, t);
4
4
  import s, { useSyncExternalStore as X } from "react";
5
- import { aZ as L, a_ as P, b1 as C, b4 as M, b2 as R, bk as ot, b7 as _t, ba as At, bt as Lt, L as vt, aA as T, F as lt, bu as ut, bv as Pt, bw as Rt, a9 as W, ae as N } from "./client-BzMPiV64.js";
6
- import { S as V, C as G } from "./index-DU4n9axe.js";
7
- import { B as wt } from "./index-DWBoYvko.js";
8
- import { B as et, I as at, a as F, A as $t } from "./icons-aP7ZHyqh.js";
5
+ import { b2 as L, b3 as P, b6 as C, b9 as M, b7 as R, bq as ot, bc as _t, bg as At, bB as Lt, L as vt, aF as T, F as lt, bC as ut, bD as Pt, bE as Rt, a9 as W, aj as N } from "./client-3NdKI2xE.js";
6
+ import { S as V, C as F } from "./index-BLEG6Nql.js";
7
+ import { B as wt } from "./index-I-MXiId0.js";
8
+ import { B as et, I as at, a as G, A as $t } from "./icons-DS8J4SFk.js";
9
9
  function $(e, r) {
10
10
  if (!(typeof r != "string" || !C(r)))
11
11
  for (const t of M(r))
@@ -41,11 +41,11 @@ const zt = {
41
41
  red: "var(--fibo-error, #ef4444)",
42
42
  blue: "var(--fibo-info, #3b82f6)",
43
43
  purple: "var(--fibo-tertiary, #a855f7)"
44
- }, Gt = /* @__PURE__ */ new Set(["script", "iframe", "object", "embed", "link", "style"]);
45
- function Ft(e) {
44
+ }, Ft = /* @__PURE__ */ new Set(["script", "iframe", "object", "embed", "link", "style"]);
45
+ function Gt(e) {
46
46
  if (typeof e != "string") return "article";
47
47
  const r = e.trim().toLowerCase();
48
- return !r || !/^[a-z][a-z0-9]*$/.test(r) || Gt.has(r) ? "article" : r;
48
+ return !r || !/^[a-z][a-z0-9]*$/.test(r) || Ft.has(r) ? "article" : r;
49
49
  }
50
50
  const Wt = s.memo((e) => {
51
51
  const {
@@ -79,7 +79,7 @@ const Wt = s.memo((e) => {
79
79
  ...c
80
80
  }, w = Q(u), E = Q(p);
81
81
  return s.createElement(
82
- Ft(h),
82
+ Gt(h),
83
83
  {
84
84
  ...g,
85
85
  className: I,
@@ -1241,23 +1241,23 @@ const Oe = L(xe), qe = L(Ee), ke = s.memo((e) => {
1241
1241
  T().classNames(["relative", "aspect-square", "overflow-hidden", "rounded-[20px]"]).children([
1242
1242
  at().src(r).alt(t || "").classNames(["w-full", "h-full", "object-cover", "bg-gray-200"]).build(),
1243
1243
  T().classNames(["absolute", "top-3", "right-3"]).children(
1244
- et().variant("glass").shape("pill").icon(T().classNames(["text-gray-400", "hover:text-red-500"]).children(F.Heart).build()).text(`${o}`).build()
1244
+ et().variant("glass").shape("pill").icon(T().classNames(["text-gray-400", "hover:text-red-500"]).children(G.Heart).build()).text(`${o}`).build()
1245
1245
  ).build()
1246
1246
  ]).build(),
1247
1247
  V().height(16).build(),
1248
1248
  W().justifyContent("between").alignItems("start").children([
1249
- G().gap(4).children([
1249
+ F().gap(4).children([
1250
1250
  N(t).fontWeight(700).fontSize(18).color("#111827").build(),
1251
1251
  et().variant("neutral").text("Not for sale x1").build()
1252
1252
  ]).build(),
1253
- T().classNames(["text-gray-300"]).children(F.More).build()
1253
+ T().classNames(["text-gray-300"]).children(G.More).build()
1254
1254
  ]).build(),
1255
1255
  V().height(16).build(),
1256
1256
  W().justifyContent("between").alignItems("center").children([
1257
- G().gap(4).children([
1257
+ F().gap(4).children([
1258
1258
  N("Current Bid").fontSize(11).fontWeight(600).color("#6B7280").build(),
1259
1259
  W().gap(4).alignItems("center").children([
1260
- T().classNames(["text-blue-500"]).children(F.Eth).build(),
1260
+ T().classNames(["text-blue-500"]).children(G.Eth).build(),
1261
1261
  N(`${i} ETH`).fontSize(15).fontWeight(700).color("#111827").build()
1262
1262
  ]).build()
1263
1263
  ]).build(),
@@ -1270,7 +1270,7 @@ const Oe = L(xe), qe = L(Ee), ke = s.memo((e) => {
1270
1270
  }).build()
1271
1271
  ]).build(),
1272
1272
  V().height(12).build(),
1273
- l ? et().variant("accent").shape("rounded").icon(T().children(F.Clock).build()).text(l).style({ width: "100%" }).build() : null
1273
+ l ? et().variant("accent").shape("rounded").icon(T().children(G.Clock).build()).text(l).style({ width: "100%" }).build() : null
1274
1274
  ]).build();
1275
1275
  });
1276
1276
  class Ie extends P {
@@ -1335,12 +1335,12 @@ const Te = s.memo((e) => {
1335
1335
  backgroundSize: "cover",
1336
1336
  backgroundPosition: "center"
1337
1337
  }).build(),
1338
- G().padding(20).alignItems("center").style({ marginTop: "-50px" }).children([
1338
+ F().padding(20).alignItems("center").style({ marginTop: "-50px" }).children([
1339
1339
  $t().image(t).size(80).border("4px solid #fff").build(),
1340
1340
  V().height(12).build(),
1341
1341
  W().gap(6).alignItems("center").children([
1342
1342
  N(i).fontWeight(700).fontSize(18).color("#111827").build(),
1343
- F.Verify
1343
+ G.Verify
1344
1344
  ]).build(),
1345
1345
  N(o).fontSize(13).color("#6B7280").style({ marginTop: "4px" }).build(),
1346
1346
  V().height(16).build(),
@@ -1353,17 +1353,17 @@ const Te = s.memo((e) => {
1353
1353
  }).build(),
1354
1354
  V().height(24).build(),
1355
1355
  W().classNames(["w-full", "border-t", "border-gray-100", "pt-4"]).justifyContent("between").children([
1356
- G().alignItems("center").gap(4).children([
1356
+ F().alignItems("center").gap(4).children([
1357
1357
  N(l.items).fontWeight(700).fontSize(14).build(),
1358
1358
  N("Items").fontSize(11).color("#9CA3AF").build()
1359
1359
  ]).build(),
1360
- G().alignItems("center").gap(4).children([
1360
+ F().alignItems("center").gap(4).children([
1361
1361
  N(l.owners).fontWeight(700).fontSize(14).build(),
1362
1362
  N("Owners").fontSize(11).color("#9CA3AF").build()
1363
1363
  ]).build(),
1364
- G().alignItems("center").gap(4).children([
1364
+ F().alignItems("center").gap(4).children([
1365
1365
  W().alignItems("center").gap(2).children([
1366
- T().width(8).children(F.Eth).build(),
1366
+ T().width(8).children(G.Eth).build(),
1367
1367
  N(l.floor).fontWeight(700).fontSize(14).build()
1368
1368
  ]).build(),
1369
1369
  N("Floor").fontSize(11).color("#9CA3AF").build()
@@ -1423,13 +1423,13 @@ const Ye = L(Ae), Le = s.memo((e) => {
1423
1423
  }).className(l).props(a).children([
1424
1424
  at().src(r).alt(t || "").classNames(["absolute", "inset-0", "w-full", "h-full", "object-cover", "transition-transform", "duration-500"]).style({ position: "absolute", inset: 0, width: "100%", height: "100%" }).build(),
1425
1425
  T().classNames(["absolute", "inset-0", "bg-gradient-to-t", "from-black/80", "via-black/20", "to-transparent"]).build(),
1426
- G().classNames(["absolute", "bottom-0", "left-0", "p-6"]).gap(4).children([
1426
+ F().classNames(["absolute", "bottom-0", "left-0", "p-6"]).gap(4).children([
1427
1427
  N(o).color("white").fontSize(12).classNames(["opacity-90", "mb-1", "uppercase", "tracking-wider"]).fontWeight(600).build(),
1428
1428
  N(t).color("white").fontSize(22).fontWeight(700).build(),
1429
1429
  W().gap(6).alignItems("center").children([
1430
1430
  N("Created by").color("white").fontSize(13).classNames(["opacity-80"]).build(),
1431
1431
  N(i).color("white").fontSize(13).fontWeight(600).build(),
1432
- F.Verify
1432
+ G.Verify
1433
1433
  ]).build()
1434
1434
  ]).build()
1435
1435
  ]).build();