fiboui 2.8.4 → 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.
- package/README.md +89 -0
- package/dist/{client-DOrZXJAN.js → client-3NdKI2xE.js} +9527 -6843
- package/dist/content.d.ts +1535 -1
- package/dist/content.js +3 -3
- package/dist/core.d.ts +1897 -2
- package/dist/core.js +52 -46
- package/dist/{icons-DujcjAOD.js → icons-DS8J4SFk.js} +83 -75
- package/dist/{index-rNMzRy8Y.js → index-B6F3yf3H.js} +8 -8
- package/dist/{index-C0qI47Zw.js → index-BLEG6Nql.js} +5 -5
- package/dist/{index-uks8jtfK.js → index-BaTO66yA.js} +561 -492
- package/dist/index-FuD1J3Qo.js +785 -0
- package/dist/{index-19mPjg_D.js → index-I-MXiId0.js} +10 -10
- package/dist/index.d.ts +2218 -117983
- package/dist/index.js +1155 -1070
- package/dist/interactive.d.ts +1702 -2
- package/dist/interactive.js +15 -15
- package/dist/layout.d.ts +1680 -1
- package/dist/layout.js +20 -16
- package/dist/{metadata-9Bpw89m2.js → metadata-B2MRlDTz.js} +19 -19
- package/dist/navigation.d.ts +88 -1
- package/dist/navigation.js +6 -6
- package/dist/page-xwU8SnoZ.js +263 -0
- package/dist/server.d.ts +1729 -2
- package/dist/server.js +3795 -2401
- package/dist/structure.d.ts +1697 -1
- package/dist/structure.js +8 -8
- package/dist/style.css +1 -1
- package/dist/theme.d.ts +149 -2
- package/dist/theme.js +3 -3
- package/package.json +5 -3
- package/dist/index-CYMoWJMX.js +0 -839
- package/dist/page-BOQJIKa5.js +0 -184
|
@@ -1,99 +1,99 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var n = (e, r, t) =>
|
|
4
|
-
import s from "react";
|
|
5
|
-
import {
|
|
6
|
-
import { S as
|
|
7
|
-
import { B as
|
|
8
|
-
import { B as
|
|
9
|
-
function
|
|
1
|
+
var Bt = Object.defineProperty;
|
|
2
|
+
var Tt = (e, r, t) => r in e ? Bt(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;
|
|
3
|
+
var n = (e, r, t) => Tt(e, typeof r != "symbol" ? r + "" : r, t);
|
|
4
|
+
import s, { useSyncExternalStore as X } from "react";
|
|
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
|
+
function $(e, r) {
|
|
10
10
|
if (!(typeof r != "string" || !C(r)))
|
|
11
11
|
for (const t of M(r))
|
|
12
12
|
e.bindSignal(t);
|
|
13
13
|
}
|
|
14
|
-
function
|
|
15
|
-
return typeof e != "string" ? e : C(e) ?
|
|
14
|
+
function J(e) {
|
|
15
|
+
return typeof e != "string" ? e : C(e) ? R(e) : e;
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function j(e, r) {
|
|
18
18
|
if (typeof r == "function") {
|
|
19
19
|
try {
|
|
20
|
-
|
|
20
|
+
j(e, r());
|
|
21
21
|
} catch {
|
|
22
22
|
}
|
|
23
23
|
return;
|
|
24
24
|
}
|
|
25
25
|
if (typeof r == "string") {
|
|
26
|
-
|
|
26
|
+
$(e, r);
|
|
27
27
|
return;
|
|
28
28
|
}
|
|
29
29
|
if (Array.isArray(r))
|
|
30
|
-
for (const t of r)
|
|
30
|
+
for (const t of r) j(e, t);
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
return typeof e == "string" && C(e) ?
|
|
32
|
+
function jt(e) {
|
|
33
|
+
return typeof e == "string" && C(e) ? R(e) : e;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
return e == null || e === !1 ? null : typeof e == "string" ?
|
|
35
|
+
function Q(e) {
|
|
36
|
+
return e == null || e === !1 ? null : typeof e == "string" ? J(e) ?? e : ot(e);
|
|
37
37
|
}
|
|
38
|
-
const
|
|
38
|
+
const zt = {
|
|
39
39
|
green: "var(--fibo-success, #22c55e)",
|
|
40
40
|
orange: "var(--fibo-warning, #f97316)",
|
|
41
41
|
red: "var(--fibo-error, #ef4444)",
|
|
42
42
|
blue: "var(--fibo-info, #3b82f6)",
|
|
43
43
|
purple: "var(--fibo-tertiary, #a855f7)"
|
|
44
|
-
},
|
|
45
|
-
function
|
|
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) ||
|
|
48
|
+
return !r || !/^[a-z][a-z0-9]*$/.test(r) || Ft.has(r) ? "article" : r;
|
|
49
49
|
}
|
|
50
|
-
const
|
|
50
|
+
const Wt = s.memo((e) => {
|
|
51
51
|
const {
|
|
52
52
|
text: r,
|
|
53
53
|
subtitle: t,
|
|
54
54
|
number: i,
|
|
55
55
|
accentColor: o,
|
|
56
56
|
className: l,
|
|
57
|
-
style:
|
|
58
|
-
children:
|
|
59
|
-
header:
|
|
60
|
-
footer:
|
|
61
|
-
as:
|
|
62
|
-
...
|
|
57
|
+
style: c,
|
|
58
|
+
children: a,
|
|
59
|
+
header: u,
|
|
60
|
+
footer: p,
|
|
61
|
+
as: h,
|
|
62
|
+
...g
|
|
63
63
|
} = e;
|
|
64
|
-
delete
|
|
65
|
-
const
|
|
64
|
+
delete g.color;
|
|
65
|
+
const _ = Array.isArray(a) ? a : a == null ? [] : [a], m = g.onClick, b = g.onKeyDown, y = typeof m == "function", I = [
|
|
66
66
|
"fibo-card",
|
|
67
67
|
"rounded-[24px]",
|
|
68
68
|
"transition-shadow",
|
|
69
69
|
"duration-300",
|
|
70
70
|
"p-4",
|
|
71
|
-
|
|
71
|
+
y ? "fibo-clickable" : "",
|
|
72
72
|
l
|
|
73
|
-
].filter(Boolean).join(" "),
|
|
73
|
+
].filter(Boolean).join(" "), A = {
|
|
74
74
|
...o ? {
|
|
75
75
|
borderLeftWidth: 4,
|
|
76
76
|
borderLeftStyle: "solid",
|
|
77
77
|
borderLeftColor: o
|
|
78
78
|
} : {},
|
|
79
|
-
...
|
|
80
|
-
},
|
|
79
|
+
...c
|
|
80
|
+
}, w = Q(u), E = Q(p);
|
|
81
81
|
return s.createElement(
|
|
82
|
-
|
|
82
|
+
Gt(h),
|
|
83
83
|
{
|
|
84
|
-
...
|
|
85
|
-
className:
|
|
86
|
-
style:
|
|
87
|
-
onClick:
|
|
88
|
-
...
|
|
84
|
+
...g,
|
|
85
|
+
className: I,
|
|
86
|
+
style: A,
|
|
87
|
+
onClick: m,
|
|
88
|
+
...y ? {
|
|
89
89
|
role: "button",
|
|
90
|
-
tabIndex:
|
|
91
|
-
onKeyDown: (
|
|
92
|
-
|
|
90
|
+
tabIndex: g.tabIndex ?? 0,
|
|
91
|
+
onKeyDown: (f) => {
|
|
92
|
+
b == null || b(f), !f.defaultPrevented && f.target === f.currentTarget && (f.key === "Enter" || f.key === " ") && (f.preventDefault(), f.currentTarget.click());
|
|
93
93
|
}
|
|
94
94
|
} : null
|
|
95
95
|
},
|
|
96
|
-
|
|
96
|
+
w ? s.createElement("header", { className: "fibo-card-header" }, w) : null,
|
|
97
97
|
s.createElement(
|
|
98
98
|
"div",
|
|
99
99
|
{ className: "flex flex-col gap-2" },
|
|
@@ -118,12 +118,12 @@ const zt = s.memo((e) => {
|
|
|
118
118
|
},
|
|
119
119
|
t
|
|
120
120
|
),
|
|
121
|
-
...
|
|
121
|
+
..._
|
|
122
122
|
),
|
|
123
123
|
E ? s.createElement("footer", { className: "fibo-card-footer" }, E) : null
|
|
124
124
|
);
|
|
125
125
|
});
|
|
126
|
-
class
|
|
126
|
+
class Dt extends P {
|
|
127
127
|
constructor() {
|
|
128
128
|
super(...arguments);
|
|
129
129
|
n(this, "_text", "");
|
|
@@ -135,84 +135,84 @@ class Gt extends T {
|
|
|
135
135
|
n(this, "_as");
|
|
136
136
|
}
|
|
137
137
|
text(t) {
|
|
138
|
-
return this._text = t,
|
|
138
|
+
return this._text = t, $(this, t), this;
|
|
139
139
|
}
|
|
140
140
|
/** Alias of `.text()` — same slot as Banner/ListTile/Alert `.title()`. */
|
|
141
141
|
title(t) {
|
|
142
142
|
return this.text(t);
|
|
143
143
|
}
|
|
144
144
|
subtitle(t) {
|
|
145
|
-
return this._subtitle = t,
|
|
145
|
+
return this._subtitle = t, $(this, t), this;
|
|
146
146
|
}
|
|
147
147
|
number(t) {
|
|
148
|
-
return this._number = t,
|
|
148
|
+
return this._number = t, $(this, t), this;
|
|
149
149
|
}
|
|
150
150
|
children(t) {
|
|
151
|
-
return
|
|
151
|
+
return j(this, t), super.children(t);
|
|
152
152
|
}
|
|
153
153
|
header(t) {
|
|
154
|
-
return this._header = t,
|
|
154
|
+
return this._header = t, j(this, t), this;
|
|
155
155
|
}
|
|
156
156
|
footer(t) {
|
|
157
|
-
return this._footer = t,
|
|
157
|
+
return this._footer = t, j(this, t), this;
|
|
158
158
|
}
|
|
159
159
|
as(t) {
|
|
160
160
|
return this._as = String(t), this;
|
|
161
161
|
}
|
|
162
162
|
props(t) {
|
|
163
|
-
return t && (
|
|
163
|
+
return t && ($(this, t.text), $(this, t.title), $(this, t.subtitle), $(this, t.number), j(this, t.header), j(this, t.footer), "children" in t && j(this, t.children)), super.props(t);
|
|
164
164
|
}
|
|
165
165
|
color(t) {
|
|
166
166
|
return this._color = t, this;
|
|
167
167
|
}
|
|
168
168
|
build() {
|
|
169
|
-
const t = this._color ?
|
|
169
|
+
const t = this._color ? zt[this._color] : void 0, {
|
|
170
170
|
className: i,
|
|
171
171
|
text: o,
|
|
172
172
|
title: l,
|
|
173
|
-
subtitle:
|
|
174
|
-
number:
|
|
175
|
-
header:
|
|
176
|
-
footer:
|
|
177
|
-
as:
|
|
178
|
-
...
|
|
179
|
-
} = this._props,
|
|
180
|
-
text:
|
|
181
|
-
subtitle:
|
|
182
|
-
number:
|
|
183
|
-
header:
|
|
184
|
-
footer:
|
|
185
|
-
as: this._as ??
|
|
173
|
+
subtitle: c,
|
|
174
|
+
number: a,
|
|
175
|
+
header: u,
|
|
176
|
+
footer: p,
|
|
177
|
+
as: h,
|
|
178
|
+
...g
|
|
179
|
+
} = this._props, _ = [...this._classNames, i].filter(Boolean).join(" "), m = {
|
|
180
|
+
text: J(o ?? l ?? this._text),
|
|
181
|
+
subtitle: J(c ?? this._subtitle),
|
|
182
|
+
number: J(a ?? this._number),
|
|
183
|
+
header: Q(this._header ?? u),
|
|
184
|
+
footer: Q(this._footer ?? p),
|
|
185
|
+
as: this._as ?? h,
|
|
186
186
|
accentColor: t,
|
|
187
187
|
style: this.getStyle(),
|
|
188
|
-
children: this.processChildren().map(
|
|
189
|
-
...
|
|
190
|
-
className:
|
|
188
|
+
children: this.processChildren().map(jt),
|
|
189
|
+
...g,
|
|
190
|
+
className: _
|
|
191
191
|
};
|
|
192
|
-
return s.createElement(
|
|
192
|
+
return s.createElement(Wt, m);
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
const
|
|
195
|
+
const Z = L(Dt);
|
|
196
196
|
function H(e, r) {
|
|
197
197
|
if (!(typeof r != "string" || !C(r)))
|
|
198
198
|
for (const t of M(r))
|
|
199
199
|
e.bindSignal(t);
|
|
200
200
|
}
|
|
201
201
|
function q(e) {
|
|
202
|
-
return typeof e != "string" ? e : C(e) ?
|
|
202
|
+
return typeof e != "string" ? e : C(e) ? R(e) : e;
|
|
203
203
|
}
|
|
204
|
-
function
|
|
205
|
-
return typeof e == "string" && C(e) ?
|
|
204
|
+
function U(e) {
|
|
205
|
+
return typeof e == "string" && C(e) ? R(e) : e;
|
|
206
206
|
}
|
|
207
207
|
function Y(e, r) {
|
|
208
|
-
return typeof r == "string" ? (H(e, r), r) :
|
|
208
|
+
return typeof r == "string" ? (H(e, r), r) : ot(r);
|
|
209
209
|
}
|
|
210
|
-
const
|
|
211
|
-
function
|
|
210
|
+
const Vt = 'a, button, input, textarea, select, [role="button"], [role="switch"], [role="checkbox"], [role="menuitem"]';
|
|
211
|
+
function dt(e) {
|
|
212
212
|
const r = e.target;
|
|
213
|
-
r != null && r.closest(
|
|
213
|
+
r != null && r.closest(Vt) && e.stopPropagation();
|
|
214
214
|
}
|
|
215
|
-
const
|
|
215
|
+
const Ht = () => s.createElement(
|
|
216
216
|
"svg",
|
|
217
217
|
{
|
|
218
218
|
width: 12,
|
|
@@ -224,31 +224,31 @@ const Lt = () => s.createElement(
|
|
|
224
224
|
"aria-hidden": !0
|
|
225
225
|
},
|
|
226
226
|
s.createElement("path", { d: "M9 5l7 7-7 7" })
|
|
227
|
-
),
|
|
227
|
+
), Kt = s.memo((e) => {
|
|
228
228
|
const {
|
|
229
229
|
leading: r,
|
|
230
230
|
title: t,
|
|
231
231
|
subtitle: i,
|
|
232
232
|
trailing: o,
|
|
233
233
|
chevron: l,
|
|
234
|
-
divider:
|
|
235
|
-
dividerColor:
|
|
236
|
-
onPress:
|
|
237
|
-
href:
|
|
238
|
-
disabled:
|
|
239
|
-
dense:
|
|
240
|
-
onTap:
|
|
241
|
-
className:
|
|
242
|
-
style:
|
|
243
|
-
...
|
|
244
|
-
} = e,
|
|
234
|
+
divider: c,
|
|
235
|
+
dividerColor: a,
|
|
236
|
+
onPress: u,
|
|
237
|
+
href: p,
|
|
238
|
+
disabled: h,
|
|
239
|
+
dense: g,
|
|
240
|
+
onTap: _,
|
|
241
|
+
className: m,
|
|
242
|
+
style: b,
|
|
243
|
+
...y
|
|
244
|
+
} = e, I = b || {}, A = I.padding ?? (g ? "8px 0" : "14px 0"), w = y.onClick, E = y.onKeyDown, f = typeof u == "function" ? u : typeof _ == "function" ? _ : void 0, x = !!h, d = typeof p == "string" ? p.trim() : "", S = d && !_t(d) ? d : void 0, v = !!S && !x, k = typeof f == "function" || typeof w == "function" || v, D = k && !x, xt = typeof t == "string" ? s.createElement(
|
|
245
245
|
"span",
|
|
246
246
|
{
|
|
247
247
|
className: "fibo-list-tile-title",
|
|
248
248
|
style: { fontSize: 11, letterSpacing: "0.06em", lineHeight: 1.3, margin: 0 }
|
|
249
249
|
},
|
|
250
|
-
|
|
251
|
-
) : t,
|
|
250
|
+
U(t)
|
|
251
|
+
) : t, Et = typeof i == "string" ? s.createElement(
|
|
252
252
|
"span",
|
|
253
253
|
{
|
|
254
254
|
className: "fibo-list-tile-subtitle",
|
|
@@ -260,41 +260,41 @@ const Lt = () => s.createElement(
|
|
|
260
260
|
color: "#9a9a9a"
|
|
261
261
|
}
|
|
262
262
|
},
|
|
263
|
-
|
|
264
|
-
) : i,
|
|
265
|
-
if (
|
|
266
|
-
|
|
263
|
+
U(i)
|
|
264
|
+
) : i, tt = U(r), O = U(o), ct = y.target, kt = v && ct && String(ct).toLowerCase() === "_blank" ? At(y.rel, "noopener noreferrer") : y.rel, It = (B) => {
|
|
265
|
+
if (x) {
|
|
266
|
+
B.preventDefault(), B.stopPropagation();
|
|
267
267
|
return;
|
|
268
268
|
}
|
|
269
|
-
|
|
270
|
-
},
|
|
271
|
-
className:
|
|
269
|
+
f == null || f(), w == null || w(B);
|
|
270
|
+
}, z = {
|
|
271
|
+
className: Lt("fibo-list-tile flex flex-row items-center w-full", m),
|
|
272
272
|
style: {
|
|
273
|
-
padding:
|
|
274
|
-
borderBottom:
|
|
275
|
-
cursor:
|
|
276
|
-
opacity:
|
|
277
|
-
pointerEvents:
|
|
278
|
-
...
|
|
273
|
+
padding: A,
|
|
274
|
+
borderBottom: c ? `1px solid ${a || "#3b3b3b"}` : "none",
|
|
275
|
+
cursor: x ? "not-allowed" : D ? "pointer" : void 0,
|
|
276
|
+
opacity: x ? 0.6 : void 0,
|
|
277
|
+
pointerEvents: x ? "none" : void 0,
|
|
278
|
+
...I
|
|
279
279
|
},
|
|
280
|
-
...
|
|
281
|
-
rel:
|
|
282
|
-
onClick:
|
|
280
|
+
...y,
|
|
281
|
+
rel: kt,
|
|
282
|
+
onClick: k || x ? It : w
|
|
283
283
|
};
|
|
284
|
-
return
|
|
285
|
-
E == null || E(
|
|
284
|
+
return v && (z.href = S), x && (z["aria-disabled"] = !0, z.tabIndex = y.tabIndex ?? -1), !v && k && (z.role = "button", x || (z.tabIndex = y.tabIndex ?? 0, z.onKeyDown = (B) => {
|
|
285
|
+
E == null || E(B), !B.defaultPrevented && B.target === B.currentTarget && (B.key === "Enter" || B.key === " ") && (B.preventDefault(), B.currentTarget.click());
|
|
286
286
|
})), s.createElement(
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
287
|
+
v ? "a" : "div",
|
|
288
|
+
z,
|
|
289
|
+
tt != null && tt !== !1 ? s.createElement(
|
|
290
290
|
"div",
|
|
291
291
|
{
|
|
292
292
|
key: "leading",
|
|
293
293
|
className: "fibo-list-tile-leading shrink-0 flex items-center",
|
|
294
294
|
style: { color: "#9a9a9a", marginRight: 12 },
|
|
295
|
-
onClick:
|
|
295
|
+
onClick: dt
|
|
296
296
|
},
|
|
297
|
-
|
|
297
|
+
tt
|
|
298
298
|
) : null,
|
|
299
299
|
s.createElement(
|
|
300
300
|
"div",
|
|
@@ -302,8 +302,8 @@ const Lt = () => s.createElement(
|
|
|
302
302
|
key: "body",
|
|
303
303
|
className: "fibo-list-tile-body flex-1 min-w-0 flex flex-col justify-center"
|
|
304
304
|
},
|
|
305
|
-
|
|
306
|
-
|
|
305
|
+
xt,
|
|
306
|
+
Et
|
|
307
307
|
),
|
|
308
308
|
O != null && O !== !1 ? s.createElement(
|
|
309
309
|
"div",
|
|
@@ -311,7 +311,7 @@ const Lt = () => s.createElement(
|
|
|
311
311
|
key: "trailing",
|
|
312
312
|
className: "fibo-list-tile-trailing shrink-0 flex items-center",
|
|
313
313
|
style: { color: "#9a9a9a", marginLeft: 12 },
|
|
314
|
-
onClick:
|
|
314
|
+
onClick: dt
|
|
315
315
|
},
|
|
316
316
|
O
|
|
317
317
|
) : null,
|
|
@@ -322,11 +322,11 @@ const Lt = () => s.createElement(
|
|
|
322
322
|
className: "fibo-list-tile-chevron shrink-0 flex items-center",
|
|
323
323
|
style: { color: "#9a9a9a", marginLeft: O ? 8 : 0 }
|
|
324
324
|
},
|
|
325
|
-
s.createElement(
|
|
325
|
+
s.createElement(Ht)
|
|
326
326
|
) : null
|
|
327
327
|
);
|
|
328
328
|
});
|
|
329
|
-
class
|
|
329
|
+
class Mt extends P {
|
|
330
330
|
constructor() {
|
|
331
331
|
super(...arguments);
|
|
332
332
|
n(this, "_leading");
|
|
@@ -384,44 +384,44 @@ class Dt extends T {
|
|
|
384
384
|
trailing: i,
|
|
385
385
|
title: o,
|
|
386
386
|
subtitle: l,
|
|
387
|
-
onPress:
|
|
388
|
-
onTap:
|
|
389
|
-
href:
|
|
390
|
-
disabled:
|
|
391
|
-
dense:
|
|
392
|
-
...
|
|
393
|
-
} = this._props,
|
|
394
|
-
return typeof
|
|
395
|
-
...
|
|
396
|
-
leading: typeof
|
|
397
|
-
title: typeof
|
|
398
|
-
subtitle: typeof
|
|
399
|
-
trailing: typeof
|
|
387
|
+
onPress: c,
|
|
388
|
+
onTap: a,
|
|
389
|
+
href: u,
|
|
390
|
+
disabled: p,
|
|
391
|
+
dense: h,
|
|
392
|
+
...g
|
|
393
|
+
} = this._props, _ = this._title !== void 0 ? this._title : o, m = this._subtitle !== void 0 ? this._subtitle : l, b = this._leading !== void 0 ? this._leading : t, y = this._trailing !== void 0 ? this._trailing : i;
|
|
394
|
+
return typeof _ == "string" && H(this, _), typeof m == "string" && H(this, m), typeof b == "string" && H(this, b), typeof y == "string" && H(this, y), s.createElement(Kt, {
|
|
395
|
+
...g,
|
|
396
|
+
leading: typeof b == "string" ? q(b) : b,
|
|
397
|
+
title: typeof _ == "string" ? q(_) : _,
|
|
398
|
+
subtitle: typeof m == "string" ? q(m) : m,
|
|
399
|
+
trailing: typeof y == "string" ? q(y) : y,
|
|
400
400
|
chevron: this._chevron,
|
|
401
401
|
divider: this._divider,
|
|
402
402
|
dividerColor: this._dividerColor,
|
|
403
|
-
onPress: this._onPress ??
|
|
404
|
-
href: this._href ??
|
|
405
|
-
disabled: this._disabled || !!
|
|
406
|
-
dense: this._dense || !!
|
|
403
|
+
onPress: this._onPress ?? c ?? a,
|
|
404
|
+
href: this._href ?? u,
|
|
405
|
+
disabled: this._disabled || !!p,
|
|
406
|
+
dense: this._dense || !!h,
|
|
407
407
|
className: this.getClassName(),
|
|
408
408
|
style: this.getStyle()
|
|
409
409
|
});
|
|
410
410
|
}
|
|
411
411
|
}
|
|
412
|
-
const
|
|
413
|
-
function
|
|
412
|
+
const Ve = L(Mt);
|
|
413
|
+
function Ot(e, r) {
|
|
414
414
|
if (!(typeof r != "string" || !C(r)))
|
|
415
415
|
for (const t of M(r))
|
|
416
416
|
e.bindSignal(t);
|
|
417
417
|
}
|
|
418
|
-
function
|
|
419
|
-
return typeof e != "string" ? e : C(e) ?
|
|
418
|
+
function qt(e) {
|
|
419
|
+
return typeof e != "string" ? e : C(e) ? R(e) : e;
|
|
420
420
|
}
|
|
421
|
-
function
|
|
421
|
+
function Ut(e) {
|
|
422
422
|
return e != null && typeof e == "object" && !Array.isArray(e) && typeof e.subscribe == "function" && "value" in e;
|
|
423
423
|
}
|
|
424
|
-
function
|
|
424
|
+
function Yt(e, r) {
|
|
425
425
|
if (e != null && typeof e == "object") {
|
|
426
426
|
const t = e;
|
|
427
427
|
if (t._id != null && t._id !== "") return t._id;
|
|
@@ -430,19 +430,19 @@ function Ot(e, r) {
|
|
|
430
430
|
}
|
|
431
431
|
return r;
|
|
432
432
|
}
|
|
433
|
-
function
|
|
433
|
+
function Jt(e, r) {
|
|
434
434
|
return typeof r.render == "function" ? r.render(e) : e == null || typeof e != "object" || r.accessor == null || r.accessor === "" ? null : e[r.accessor];
|
|
435
435
|
}
|
|
436
|
-
function
|
|
437
|
-
return typeof e == "string" && C(e) ? s.createElement(
|
|
436
|
+
function Qt(e) {
|
|
437
|
+
return typeof e == "string" && C(e) ? s.createElement(lt, {
|
|
438
438
|
as: "span",
|
|
439
|
-
compute: () =>
|
|
440
|
-
}) :
|
|
439
|
+
compute: () => R(e)
|
|
440
|
+
}) : ot(e);
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function ht(e, r) {
|
|
443
443
|
return e.sortable === !1 ? !1 : e.sortable === !0 ? !0 : r;
|
|
444
444
|
}
|
|
445
|
-
function
|
|
445
|
+
function ft(e, r) {
|
|
446
446
|
if (e != null && typeof e == "object" && r.accessor != null && r.accessor !== "") {
|
|
447
447
|
const i = e[r.accessor];
|
|
448
448
|
if (i == null || typeof i == "string" || typeof i == "number" || typeof i == "boolean")
|
|
@@ -452,50 +452,100 @@ function dt(e, r) {
|
|
|
452
452
|
const t = r.render(e);
|
|
453
453
|
return t == null || typeof t == "string" || typeof t == "number" || typeof t == "boolean" ? t ?? null : null;
|
|
454
454
|
}
|
|
455
|
-
function
|
|
455
|
+
function Xt(e, r) {
|
|
456
456
|
return e == null && r == null ? 0 : e == null ? 1 : r == null ? -1 : typeof e == "number" && typeof r == "number" ? e - r : typeof e == "boolean" && typeof r == "boolean" ? Number(e) - Number(r) : String(e).localeCompare(String(r), void 0, { numeric: !0, sensitivity: "base" });
|
|
457
457
|
}
|
|
458
|
-
function
|
|
458
|
+
function mt(e, r) {
|
|
459
459
|
return !e || e.index !== r ? { index: r, dir: "ascending" } : { index: r, dir: e.dir === "ascending" ? "descending" : "ascending" };
|
|
460
460
|
}
|
|
461
|
-
|
|
461
|
+
function Zt(e, r, t) {
|
|
462
|
+
return `group transition-all duration-200 border-b border-gray-50 last:border-b-0 ${r && t % 2 !== 0 ? "bg-gray-50/30" : "bg-transparent"} ${e === "clean" ? "hover:bg-white hover:shadow-md hover:scale-[1.002] hover:z-10 relative" : "hover:bg-gray-50/50"}`;
|
|
463
|
+
}
|
|
464
|
+
function St(e, r, t, i, o, l) {
|
|
465
|
+
return s.createElement(
|
|
466
|
+
"tr",
|
|
467
|
+
{
|
|
468
|
+
key: Yt(e, r),
|
|
469
|
+
className: Zt(i, o, r)
|
|
470
|
+
},
|
|
471
|
+
t.map(
|
|
472
|
+
(c, a) => s.createElement(
|
|
473
|
+
"td",
|
|
474
|
+
{
|
|
475
|
+
key: a,
|
|
476
|
+
style: {
|
|
477
|
+
textAlign: c.align || "left",
|
|
478
|
+
padding: l,
|
|
479
|
+
borderTop: i === "default" ? "1px solid #F3F4F6" : "none"
|
|
480
|
+
},
|
|
481
|
+
className: "text-sm text-gray-900 font-medium"
|
|
482
|
+
},
|
|
483
|
+
Qt(Jt(e, c))
|
|
484
|
+
)
|
|
485
|
+
)
|
|
486
|
+
);
|
|
487
|
+
}
|
|
488
|
+
const te = s.memo(function(r) {
|
|
489
|
+
X(
|
|
490
|
+
(i) => r.list.subscribeItem(r.id, i),
|
|
491
|
+
() => r.list.itemVersion(r.id),
|
|
492
|
+
() => r.list.itemVersion(r.id)
|
|
493
|
+
);
|
|
494
|
+
const t = r.list.find(r.id);
|
|
495
|
+
return t == null ? null : St(
|
|
496
|
+
t,
|
|
497
|
+
r.index,
|
|
498
|
+
r.columns,
|
|
499
|
+
r.variant,
|
|
500
|
+
r.striped,
|
|
501
|
+
r.padding
|
|
502
|
+
);
|
|
503
|
+
}, (e, r) => e.list === r.list && e.id === r.id && e.columns === r.columns && e.variant === r.variant && e.striped === r.striped && e.padding === r.padding), ee = s.memo((e) => {
|
|
462
504
|
const {
|
|
463
505
|
data: r,
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
506
|
+
liveList: t,
|
|
507
|
+
columns: i,
|
|
508
|
+
variant: o,
|
|
509
|
+
density: l,
|
|
510
|
+
striped: c,
|
|
468
511
|
width: a,
|
|
469
|
-
sortable:
|
|
470
|
-
className:
|
|
471
|
-
style:
|
|
472
|
-
children:
|
|
473
|
-
...
|
|
474
|
-
} = e,
|
|
512
|
+
sortable: u,
|
|
513
|
+
className: p,
|
|
514
|
+
style: h,
|
|
515
|
+
children: g,
|
|
516
|
+
..._
|
|
517
|
+
} = e, m = !!u, [b, y] = s.useState(null);
|
|
518
|
+
X(
|
|
519
|
+
(d) => t ? t.subscribeStructure(d) : () => {
|
|
520
|
+
},
|
|
521
|
+
() => t ? t.structureVersion() : 0,
|
|
522
|
+
() => t ? t.structureVersion() : 0
|
|
523
|
+
);
|
|
524
|
+
const I = {
|
|
475
525
|
width: "100%",
|
|
476
526
|
borderCollapse: "separate",
|
|
477
527
|
borderSpacing: "0",
|
|
478
|
-
...
|
|
528
|
+
...h
|
|
479
529
|
};
|
|
480
|
-
a && (
|
|
481
|
-
const
|
|
530
|
+
a && (I.width = typeof a == "number" ? `${a}px` : a);
|
|
531
|
+
const A = o === "clean" ? ["bg-white", "rounded-2xl", "border", "border-gray-100", "overflow-hidden", "shadow-sm"] : [], E = {
|
|
482
532
|
compact: "10px 16px",
|
|
483
533
|
standard: "16px 24px",
|
|
484
534
|
relaxed: "24px 32px"
|
|
485
|
-
}[
|
|
486
|
-
if (!
|
|
487
|
-
const
|
|
488
|
-
if (!
|
|
489
|
-
const
|
|
490
|
-
return
|
|
491
|
-
const
|
|
492
|
-
return
|
|
493
|
-
}).map((
|
|
494
|
-
}, [
|
|
495
|
-
return
|
|
535
|
+
}[l], f = t ? t.value : Array.isArray(r) ? r : [], x = s.useMemo(() => {
|
|
536
|
+
if (!b) return f;
|
|
537
|
+
const d = i == null ? void 0 : i[b.index];
|
|
538
|
+
if (!d || !ht(d, m)) return f;
|
|
539
|
+
const S = b.dir === "ascending" ? 1 : -1;
|
|
540
|
+
return f.map((v, k) => ({ row: v, index: k })).sort((v, k) => {
|
|
541
|
+
const D = Xt(ft(v.row, d), ft(k.row, d));
|
|
542
|
+
return D === 0 ? v.index - k.index : S * D;
|
|
543
|
+
}).map((v) => v.row);
|
|
544
|
+
}, [f, i, b, m]);
|
|
545
|
+
return T().className(p).classNames(A).props(_).children(
|
|
496
546
|
s.createElement("table", {
|
|
497
|
-
style:
|
|
498
|
-
className: ["fibo-table",
|
|
547
|
+
style: I,
|
|
548
|
+
className: ["fibo-table", p].filter(Boolean).join(" ")
|
|
499
549
|
}, [
|
|
500
550
|
s.createElement(
|
|
501
551
|
"thead",
|
|
@@ -503,65 +553,53 @@ const Ut = s.memo((e) => {
|
|
|
503
553
|
s.createElement(
|
|
504
554
|
"tr",
|
|
505
555
|
{},
|
|
506
|
-
|
|
507
|
-
const
|
|
556
|
+
i.map((d, S) => {
|
|
557
|
+
const v = ht(d, m);
|
|
508
558
|
return s.createElement("th", {
|
|
509
|
-
key: String(
|
|
559
|
+
key: String(d.accessor ?? S),
|
|
510
560
|
scope: "col",
|
|
511
561
|
style: {
|
|
512
|
-
textAlign:
|
|
513
|
-
padding:
|
|
514
|
-
width:
|
|
515
|
-
cursor:
|
|
562
|
+
textAlign: d.align || "left",
|
|
563
|
+
padding: E,
|
|
564
|
+
width: d.width,
|
|
565
|
+
cursor: v ? "pointer" : void 0
|
|
516
566
|
},
|
|
517
567
|
className: "text-xs font-bold text-gray-400 uppercase tracking-widest",
|
|
518
|
-
"aria-sort":
|
|
519
|
-
tabIndex:
|
|
520
|
-
onClick:
|
|
521
|
-
onKeyDown:
|
|
522
|
-
|
|
568
|
+
"aria-sort": v ? (b == null ? void 0 : b.index) === S ? b.dir : "none" : void 0,
|
|
569
|
+
tabIndex: v ? 0 : void 0,
|
|
570
|
+
onClick: v ? () => y((k) => mt(k, S)) : void 0,
|
|
571
|
+
onKeyDown: v ? (k) => {
|
|
572
|
+
k.key !== "Enter" && k.key !== " " || (k.preventDefault(), y((D) => mt(D, S)));
|
|
523
573
|
} : void 0
|
|
524
|
-
},
|
|
574
|
+
}, qt(d.header) ?? d.header);
|
|
525
575
|
})
|
|
526
576
|
)
|
|
527
577
|
),
|
|
528
578
|
s.createElement(
|
|
529
579
|
"tbody",
|
|
530
580
|
{ key: "tbody" },
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
{
|
|
542
|
-
key: w,
|
|
543
|
-
style: {
|
|
544
|
-
textAlign: y.align || "left",
|
|
545
|
-
padding: v,
|
|
546
|
-
borderTop: i === "default" ? "1px solid #F3F4F6" : "none"
|
|
547
|
-
},
|
|
548
|
-
className: "text-sm text-gray-900 font-medium"
|
|
549
|
-
},
|
|
550
|
-
Vt(qt(m, y))
|
|
551
|
-
)
|
|
552
|
-
)
|
|
553
|
-
)
|
|
554
|
-
)
|
|
581
|
+
x.map((d, S) => t && d && typeof d._id == "string" && d._id.length > 0 ? s.createElement(te, {
|
|
582
|
+
key: d._id,
|
|
583
|
+
list: t,
|
|
584
|
+
id: d._id,
|
|
585
|
+
index: S,
|
|
586
|
+
columns: i,
|
|
587
|
+
variant: o,
|
|
588
|
+
striped: !!c,
|
|
589
|
+
padding: E
|
|
590
|
+
}) : St(d, S, i, o, !!c, E))
|
|
555
591
|
)
|
|
556
592
|
])
|
|
557
593
|
).build();
|
|
558
594
|
});
|
|
559
|
-
class
|
|
595
|
+
class re extends P {
|
|
560
596
|
constructor() {
|
|
561
597
|
super(...arguments);
|
|
562
598
|
n(this, "_data", []);
|
|
563
|
-
/**
|
|
599
|
+
/** Plain `signal(array)`. Read on each rebuild. */
|
|
564
600
|
n(this, "_source");
|
|
601
|
+
/** `listSignal`. Rows subscribe by `_id`. */
|
|
602
|
+
n(this, "_liveList");
|
|
565
603
|
n(this, "_columns", []);
|
|
566
604
|
n(this, "_variant", "clean");
|
|
567
605
|
n(this, "_density", "standard");
|
|
@@ -570,11 +608,11 @@ class Xt extends T {
|
|
|
570
608
|
n(this, "_sortable", !1);
|
|
571
609
|
}
|
|
572
610
|
data(t) {
|
|
573
|
-
return
|
|
611
|
+
return t instanceof vt ? (this._liveList = t, this._source = void 0, this) : (this._liveList = void 0, Ut(t) ? (this._source = t, this.bindSignal(t), this) : (this._source = void 0, this._data = t, this));
|
|
574
612
|
}
|
|
575
613
|
columns(t) {
|
|
576
614
|
this._columns = t;
|
|
577
|
-
for (const i of t)
|
|
615
|
+
for (const i of t) Ot(this, i.header);
|
|
578
616
|
return this;
|
|
579
617
|
}
|
|
580
618
|
variant(t) {
|
|
@@ -594,8 +632,9 @@ class Xt extends T {
|
|
|
594
632
|
return this._sortable = t, this;
|
|
595
633
|
}
|
|
596
634
|
build() {
|
|
597
|
-
const t = {
|
|
598
|
-
data: this._source ? this._source.value : this._data,
|
|
635
|
+
const t = this._liveList, i = {
|
|
636
|
+
data: t ? [] : this._source ? this._source.value : this._data,
|
|
637
|
+
liveList: t,
|
|
599
638
|
columns: this._columns,
|
|
600
639
|
variant: this._variant,
|
|
601
640
|
density: this._density,
|
|
@@ -606,22 +645,22 @@ class Xt extends T {
|
|
|
606
645
|
style: this.getStyle(),
|
|
607
646
|
...this._props
|
|
608
647
|
};
|
|
609
|
-
return s.createElement(
|
|
648
|
+
return s.createElement(ee, i);
|
|
610
649
|
}
|
|
611
650
|
}
|
|
612
|
-
const
|
|
613
|
-
function
|
|
651
|
+
const He = L(re);
|
|
652
|
+
function pt(e, r) {
|
|
614
653
|
if (!(typeof r != "string" || !C(r)))
|
|
615
654
|
for (const t of M(r))
|
|
616
655
|
e.bindSignal(t);
|
|
617
656
|
}
|
|
618
|
-
function
|
|
619
|
-
return typeof e != "string" ? e : C(e) ?
|
|
657
|
+
function ie(e) {
|
|
658
|
+
return typeof e != "string" ? e : C(e) ? R(e) : e;
|
|
620
659
|
}
|
|
621
|
-
function
|
|
660
|
+
function se(e) {
|
|
622
661
|
return e != null && typeof e == "object" && !Array.isArray(e) && typeof e.subscribe == "function" && "value" in e;
|
|
623
662
|
}
|
|
624
|
-
function
|
|
663
|
+
function ne(e, r) {
|
|
625
664
|
if (e != null && typeof e == "object") {
|
|
626
665
|
const t = e;
|
|
627
666
|
if (t._id != null && t._id !== "") return t._id;
|
|
@@ -630,16 +669,16 @@ function Zt(e, r) {
|
|
|
630
669
|
}
|
|
631
670
|
return r;
|
|
632
671
|
}
|
|
633
|
-
function
|
|
672
|
+
function oe(e) {
|
|
634
673
|
const r = e.title;
|
|
635
674
|
return typeof r == "string" ? r : "";
|
|
636
675
|
}
|
|
637
|
-
function
|
|
638
|
-
let i =
|
|
676
|
+
function le(e, r, t) {
|
|
677
|
+
let i = ne(e, r);
|
|
639
678
|
const o = String(i);
|
|
640
679
|
return t.has(o) && (i = `${o}::${r}`), t.add(String(i)), i;
|
|
641
680
|
}
|
|
642
|
-
const
|
|
681
|
+
const ae = {
|
|
643
682
|
position: "absolute",
|
|
644
683
|
width: 1,
|
|
645
684
|
height: 1,
|
|
@@ -650,7 +689,7 @@ const re = {
|
|
|
650
689
|
whiteSpace: "nowrap",
|
|
651
690
|
border: 0
|
|
652
691
|
};
|
|
653
|
-
function
|
|
692
|
+
function ce(e, r) {
|
|
654
693
|
if (C(e))
|
|
655
694
|
return s.createElement(
|
|
656
695
|
"button",
|
|
@@ -660,11 +699,11 @@ function se(e, r) {
|
|
|
660
699
|
className: "relative shrink-0 opacity-80 text-sm leading-none",
|
|
661
700
|
onClick: r
|
|
662
701
|
},
|
|
663
|
-
s.createElement(
|
|
702
|
+
s.createElement(lt, {
|
|
664
703
|
key: "lbl",
|
|
665
704
|
as: "span",
|
|
666
|
-
style:
|
|
667
|
-
compute: () => `Remove ${
|
|
705
|
+
style: ae,
|
|
706
|
+
compute: () => `Remove ${R(e) || "tag"}`
|
|
668
707
|
}),
|
|
669
708
|
s.createElement("span", { key: "x", "aria-hidden": !0 }, "×")
|
|
670
709
|
);
|
|
@@ -681,57 +720,86 @@ function se(e, r) {
|
|
|
681
720
|
"×"
|
|
682
721
|
);
|
|
683
722
|
}
|
|
684
|
-
|
|
685
|
-
const
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
723
|
+
function Nt(e, r, t, i) {
|
|
724
|
+
const o = oe(e), l = typeof i == "function", c = l ? ce(o, (u) => {
|
|
725
|
+
u.stopPropagation(), i(e, r);
|
|
726
|
+
}) : null;
|
|
727
|
+
if (C(o)) {
|
|
728
|
+
const u = s.createElement(lt, {
|
|
729
|
+
key: l ? "t" : t,
|
|
730
|
+
as: "span",
|
|
731
|
+
className: l ? void 0 : "fibo-tag",
|
|
732
|
+
compute: () => R(o)
|
|
733
|
+
});
|
|
734
|
+
return l ? s.createElement("span", { key: t, className: "fibo-tag" }, u, c) : u;
|
|
735
|
+
}
|
|
736
|
+
const a = ie(o) ?? o;
|
|
737
|
+
return l ? s.createElement("span", { key: t, className: "fibo-tag" }, a, c) : s.createElement("span", { key: t, className: "fibo-tag" }, a);
|
|
738
|
+
}
|
|
739
|
+
const ue = s.memo(function(r) {
|
|
740
|
+
X(
|
|
741
|
+
(i) => r.list.subscribeItem(r.id, i),
|
|
742
|
+
() => r.list.itemVersion(r.id),
|
|
743
|
+
() => r.list.itemVersion(r.id)
|
|
744
|
+
);
|
|
745
|
+
const t = r.list.find(r.id);
|
|
746
|
+
return t == null || typeof t != "object" ? null : Nt(t, r.index, r.id, r.onRemove);
|
|
747
|
+
}, (e, r) => e.list === r.list && e.id === r.id && e.onRemove === r.onRemove), de = s.memo((e) => {
|
|
748
|
+
const { items: r, liveList: t, className: i, style: o, onRemove: l, ...c } = e, a = /* @__PURE__ */ new Set();
|
|
749
|
+
X(
|
|
750
|
+
(h) => t ? t.subscribeStructure(h) : () => {
|
|
751
|
+
},
|
|
752
|
+
() => t ? t.structureVersion() : 0,
|
|
753
|
+
() => t ? t.structureVersion() : 0
|
|
754
|
+
);
|
|
755
|
+
const p = (t ? t.value : Array.isArray(r) ? r : []).flatMap((h, g) => {
|
|
756
|
+
if (h == null || typeof h != "object") return [];
|
|
757
|
+
if (t && typeof h._id == "string" && h._id.length > 0) {
|
|
758
|
+
const m = h._id;
|
|
759
|
+
return [
|
|
760
|
+
s.createElement(ue, {
|
|
761
|
+
key: m,
|
|
762
|
+
list: t,
|
|
763
|
+
id: m,
|
|
764
|
+
index: g,
|
|
765
|
+
onRemove: l
|
|
766
|
+
})
|
|
767
|
+
];
|
|
700
768
|
}
|
|
701
|
-
const _ =
|
|
702
|
-
return
|
|
703
|
-
s.createElement("span", { key: h, className: "fibo-tag" }, _, u)
|
|
704
|
-
] : [
|
|
705
|
-
s.createElement("span", { key: h, className: "fibo-tag" }, _)
|
|
706
|
-
];
|
|
769
|
+
const _ = le(h, g, a);
|
|
770
|
+
return [Nt(h, g, _, l)];
|
|
707
771
|
});
|
|
708
772
|
return s.createElement(
|
|
709
773
|
"div",
|
|
710
774
|
{
|
|
711
|
-
className:
|
|
712
|
-
style:
|
|
713
|
-
...
|
|
775
|
+
className: i,
|
|
776
|
+
style: o,
|
|
777
|
+
...c
|
|
714
778
|
},
|
|
715
|
-
...
|
|
779
|
+
...p
|
|
716
780
|
);
|
|
717
781
|
});
|
|
718
|
-
class
|
|
782
|
+
class he extends P {
|
|
719
783
|
constructor(t = []) {
|
|
720
784
|
super();
|
|
721
785
|
n(this, "_items", []);
|
|
722
|
-
/**
|
|
786
|
+
/** Plain `signal(array)`. Read on each rebuild. */
|
|
723
787
|
n(this, "_source");
|
|
788
|
+
/** `listSignal`. Tags subscribe by `_id`. */
|
|
789
|
+
n(this, "_liveList");
|
|
724
790
|
this.items(t);
|
|
725
791
|
}
|
|
726
792
|
items(t) {
|
|
727
|
-
if (
|
|
793
|
+
if (t instanceof vt)
|
|
794
|
+
return this._liveList = t, this._source = void 0, this;
|
|
795
|
+
if (this._liveList = void 0, se(t)) {
|
|
728
796
|
this._source = t, this.bindSignal(t);
|
|
729
797
|
for (const i of Array.isArray(t.value) ? t.value : [])
|
|
730
|
-
|
|
798
|
+
pt(this, i == null ? void 0 : i.title);
|
|
731
799
|
return this;
|
|
732
800
|
}
|
|
733
801
|
this._source = void 0, this._items = Array.isArray(t) ? t : [];
|
|
734
|
-
for (const i of this._items)
|
|
802
|
+
for (const i of this._items) pt(this, i == null ? void 0 : i.title);
|
|
735
803
|
return this;
|
|
736
804
|
}
|
|
737
805
|
build() {
|
|
@@ -739,11 +807,12 @@ class ne extends T {
|
|
|
739
807
|
className: i,
|
|
740
808
|
style: o,
|
|
741
809
|
items: l,
|
|
742
|
-
...
|
|
743
|
-
} = this._props ?? {},
|
|
744
|
-
...
|
|
745
|
-
items: this._source ? this._source.value : this._items,
|
|
746
|
-
|
|
810
|
+
...c
|
|
811
|
+
} = this._props ?? {}, a = typeof i == "string" ? i : "", u = this._liveList, p = {
|
|
812
|
+
...c,
|
|
813
|
+
items: u ? [] : this._source ? this._source.value : this._items,
|
|
814
|
+
liveList: u,
|
|
815
|
+
className: [t, a].filter(Boolean).join(" "),
|
|
747
816
|
style: {
|
|
748
817
|
display: "flex",
|
|
749
818
|
flexWrap: "wrap",
|
|
@@ -753,58 +822,58 @@ class ne extends T {
|
|
|
753
822
|
...o && typeof o == "object" ? o : null
|
|
754
823
|
}
|
|
755
824
|
};
|
|
756
|
-
return s.createElement(
|
|
825
|
+
return s.createElement(de, p);
|
|
757
826
|
}
|
|
758
827
|
}
|
|
759
|
-
const
|
|
760
|
-
function
|
|
828
|
+
const Ke = L(he);
|
|
829
|
+
function it(e, r) {
|
|
761
830
|
if (!(typeof r != "string" || !C(r)))
|
|
762
831
|
for (const t of M(r))
|
|
763
832
|
e.bindSignal(t);
|
|
764
833
|
}
|
|
765
|
-
function
|
|
766
|
-
return typeof e != "string" ? e : C(e) ?
|
|
834
|
+
function gt(e) {
|
|
835
|
+
return typeof e != "string" ? e : C(e) ? R(e) : e;
|
|
767
836
|
}
|
|
768
|
-
function
|
|
837
|
+
function st(e, r) {
|
|
769
838
|
if (typeof r == "function") {
|
|
770
839
|
try {
|
|
771
|
-
|
|
840
|
+
st(e, r());
|
|
772
841
|
} catch {
|
|
773
842
|
}
|
|
774
843
|
return;
|
|
775
844
|
}
|
|
776
845
|
if (typeof r == "string") {
|
|
777
|
-
|
|
846
|
+
it(e, r);
|
|
778
847
|
return;
|
|
779
848
|
}
|
|
780
849
|
if (Array.isArray(r))
|
|
781
|
-
for (const t of r)
|
|
850
|
+
for (const t of r) st(e, t);
|
|
782
851
|
}
|
|
783
|
-
function
|
|
784
|
-
return typeof e == "string" && C(e) ?
|
|
852
|
+
function fe(e) {
|
|
853
|
+
return typeof e == "string" && C(e) ? R(e) : e;
|
|
785
854
|
}
|
|
786
|
-
function
|
|
855
|
+
function bt(e) {
|
|
787
856
|
return e === "success" || e === "warning" || e === "error" || e === "info";
|
|
788
857
|
}
|
|
789
|
-
function
|
|
790
|
-
return
|
|
858
|
+
function me(e, r) {
|
|
859
|
+
return bt(r) ? r : bt(e) ? e : "info";
|
|
791
860
|
}
|
|
792
|
-
function
|
|
861
|
+
function yt(e) {
|
|
793
862
|
return e == null || e === !1 ? [] : Array.isArray(e) ? e : [e];
|
|
794
863
|
}
|
|
795
|
-
const
|
|
864
|
+
const pe = s.memo((e) => {
|
|
796
865
|
const {
|
|
797
866
|
status: r,
|
|
798
867
|
intent: t,
|
|
799
868
|
title: i,
|
|
800
869
|
subtitle: o,
|
|
801
870
|
className: l,
|
|
802
|
-
style:
|
|
803
|
-
onClose:
|
|
804
|
-
action:
|
|
805
|
-
children:
|
|
806
|
-
...
|
|
807
|
-
} = e,
|
|
871
|
+
style: c,
|
|
872
|
+
onClose: a,
|
|
873
|
+
action: u,
|
|
874
|
+
children: p,
|
|
875
|
+
...h
|
|
876
|
+
} = e, g = me(r, t), _ = g === "error" || g === "warning", m = typeof a == "function", b = [i, o].filter(Boolean).join(". "), y = ["fibo-banner", `fibo-banner-${g}`, l].filter(Boolean).join(" ").replace(/\s+/g, " ").trim(), I = s.createElement(
|
|
808
877
|
"div",
|
|
809
878
|
{ key: "copy", className: "flex flex-col gap-1 min-w-0 flex-1" },
|
|
810
879
|
i && s.createElement(
|
|
@@ -821,16 +890,16 @@ const le = s.memo((e) => {
|
|
|
821
890
|
},
|
|
822
891
|
o
|
|
823
892
|
)
|
|
824
|
-
),
|
|
825
|
-
(
|
|
826
|
-
),
|
|
827
|
-
|
|
893
|
+
), A = [...yt(u), ...yt(p)].filter(
|
|
894
|
+
(f) => f != null && f !== !1
|
|
895
|
+
), w = [];
|
|
896
|
+
A.length > 0 && w.push(
|
|
828
897
|
s.createElement(
|
|
829
898
|
"div",
|
|
830
899
|
{ key: "actions", className: "flex items-center gap-2 shrink-0" },
|
|
831
|
-
|
|
900
|
+
A
|
|
832
901
|
)
|
|
833
|
-
),
|
|
902
|
+
), m && w.push(
|
|
834
903
|
s.createElement(
|
|
835
904
|
"button",
|
|
836
905
|
{
|
|
@@ -838,29 +907,29 @@ const le = s.memo((e) => {
|
|
|
838
907
|
type: "button",
|
|
839
908
|
className: "shrink-0 opacity-80 text-sm leading-none",
|
|
840
909
|
"aria-label": "Dismiss",
|
|
841
|
-
onClick: (
|
|
842
|
-
|
|
910
|
+
onClick: (f) => {
|
|
911
|
+
f.stopPropagation(), a();
|
|
843
912
|
}
|
|
844
913
|
},
|
|
845
914
|
"×"
|
|
846
915
|
)
|
|
847
916
|
);
|
|
848
|
-
const E =
|
|
917
|
+
const E = w.length > 0 ? s.createElement("div", { className: "flex items-start gap-2" }, [I, ...w]) : I;
|
|
849
918
|
return s.createElement(
|
|
850
919
|
"div",
|
|
851
920
|
{
|
|
852
|
-
...
|
|
853
|
-
className:
|
|
854
|
-
style:
|
|
855
|
-
role:
|
|
856
|
-
"aria-live":
|
|
921
|
+
...h,
|
|
922
|
+
className: y,
|
|
923
|
+
style: c,
|
|
924
|
+
role: _ ? "alert" : "status",
|
|
925
|
+
"aria-live": _ ? "assertive" : "polite",
|
|
857
926
|
"aria-atomic": !0,
|
|
858
|
-
"aria-label":
|
|
927
|
+
"aria-label": h["aria-label"] || b || void 0
|
|
859
928
|
},
|
|
860
929
|
E
|
|
861
930
|
);
|
|
862
931
|
});
|
|
863
|
-
class
|
|
932
|
+
class ge extends P {
|
|
864
933
|
constructor(t = "") {
|
|
865
934
|
super();
|
|
866
935
|
n(this, "_status", "info");
|
|
@@ -876,182 +945,182 @@ class ce extends T {
|
|
|
876
945
|
return this.status(t);
|
|
877
946
|
}
|
|
878
947
|
title(t) {
|
|
879
|
-
return this._title = t,
|
|
948
|
+
return this._title = t, it(this, t), this;
|
|
880
949
|
}
|
|
881
950
|
subtitle(t) {
|
|
882
|
-
return this._subtitle = t,
|
|
951
|
+
return this._subtitle = t, it(this, t), this;
|
|
883
952
|
}
|
|
884
953
|
children(t) {
|
|
885
|
-
return
|
|
954
|
+
return st(this, t), super.children(t);
|
|
886
955
|
}
|
|
887
956
|
build() {
|
|
888
957
|
const t = {
|
|
889
958
|
status: this._status,
|
|
890
|
-
title:
|
|
891
|
-
subtitle:
|
|
959
|
+
title: gt(this._title),
|
|
960
|
+
subtitle: gt(this._subtitle),
|
|
892
961
|
className: this.getClassName(),
|
|
893
962
|
style: this.getStyle(),
|
|
894
|
-
children: this.processChildren().map(
|
|
963
|
+
children: this.processChildren().map(fe),
|
|
895
964
|
...this._props
|
|
896
965
|
};
|
|
897
|
-
return s.createElement(
|
|
966
|
+
return s.createElement(pe, t);
|
|
898
967
|
}
|
|
899
968
|
}
|
|
900
|
-
const
|
|
969
|
+
const Me = L(ge), be = {
|
|
901
970
|
none: "0px",
|
|
902
971
|
sm: "8px",
|
|
903
972
|
md: "16px",
|
|
904
973
|
lg: "24px",
|
|
905
974
|
xl: "32px"
|
|
906
975
|
};
|
|
907
|
-
function
|
|
976
|
+
function nt(e) {
|
|
908
977
|
return `repeat(${e}, minmax(0, 1fr))`;
|
|
909
978
|
}
|
|
910
|
-
function
|
|
979
|
+
function ye(e) {
|
|
911
980
|
return `repeat(${e}, minmax(0, auto))`;
|
|
912
981
|
}
|
|
913
|
-
function
|
|
914
|
-
return r ||
|
|
982
|
+
function _e(e, r) {
|
|
983
|
+
return r || nt(typeof e == "number" ? e : 1);
|
|
915
984
|
}
|
|
916
|
-
function
|
|
985
|
+
function ve(e, r) {
|
|
917
986
|
if (r) return r;
|
|
918
|
-
if (typeof e == "number") return
|
|
987
|
+
if (typeof e == "number") return ye(e);
|
|
919
988
|
}
|
|
920
989
|
function K(e) {
|
|
921
|
-
return typeof e == "number" ? `${e}px` :
|
|
990
|
+
return typeof e == "number" ? `${e}px` : be[e] ?? (e || "16px");
|
|
922
991
|
}
|
|
923
|
-
function
|
|
992
|
+
function we(e, r, t) {
|
|
924
993
|
return r == null && t == null ? { gap: e } : {
|
|
925
994
|
...r != null ? { rowGap: K(r) } : { rowGap: e },
|
|
926
995
|
...t != null ? { columnGap: K(t) } : { columnGap: e }
|
|
927
996
|
};
|
|
928
997
|
}
|
|
929
|
-
function
|
|
998
|
+
function Ct(e) {
|
|
930
999
|
return e == null || e === !1 ? [] : Array.isArray(e) ? e : [e];
|
|
931
1000
|
}
|
|
932
|
-
function
|
|
1001
|
+
function rt(e, r) {
|
|
933
1002
|
if (typeof e == "number") return [];
|
|
934
|
-
const t =
|
|
1003
|
+
const t = Pt.getInstance(), i = ["sm", "md", "lg", "xl"], o = [];
|
|
935
1004
|
for (const l of i) {
|
|
936
|
-
const
|
|
937
|
-
if (!
|
|
938
|
-
const
|
|
939
|
-
r === "masonry" ? o.push(t.registerMedia(
|
|
1005
|
+
const c = e[l];
|
|
1006
|
+
if (!c) continue;
|
|
1007
|
+
const a = Rt(l);
|
|
1008
|
+
r === "masonry" ? o.push(t.registerMedia(a, "column-count", String(c))) : o.push(t.registerMedia(a, "grid-template-columns", nt(c)));
|
|
940
1009
|
}
|
|
941
1010
|
return o;
|
|
942
1011
|
}
|
|
943
|
-
function
|
|
1012
|
+
function Se(e) {
|
|
944
1013
|
if (!s.isValidElement(e)) return !1;
|
|
945
1014
|
const r = e.props;
|
|
946
1015
|
return !!(r && typeof r == "object" && (r.colSpan || r.rowSpan || r.colStart != null || r.colEnd != null || r.rowStart != null || r.rowEnd != null || typeof r.className == "string" && /(col|row)-span/.test(r.className)));
|
|
947
1016
|
}
|
|
948
|
-
const
|
|
1017
|
+
const Ne = s.memo((e) => {
|
|
949
1018
|
const {
|
|
950
1019
|
children: r,
|
|
951
1020
|
variant: t = "standard",
|
|
952
1021
|
columns: i = 1,
|
|
953
1022
|
gap: o = "md",
|
|
954
1023
|
rows: l,
|
|
955
|
-
templateColumns:
|
|
956
|
-
templateRows:
|
|
957
|
-
autoFlow:
|
|
958
|
-
rowGap:
|
|
959
|
-
columnGap:
|
|
960
|
-
className:
|
|
961
|
-
style:
|
|
962
|
-
...
|
|
963
|
-
} = e,
|
|
1024
|
+
templateColumns: c,
|
|
1025
|
+
templateRows: a,
|
|
1026
|
+
autoFlow: u,
|
|
1027
|
+
rowGap: p,
|
|
1028
|
+
columnGap: h,
|
|
1029
|
+
className: g,
|
|
1030
|
+
style: _,
|
|
1031
|
+
...m
|
|
1032
|
+
} = e, b = Ct(r), y = K(o), I = we(y, p, h), A = _e(i, c), w = ve(l, a);
|
|
964
1033
|
if (t === "bento") {
|
|
965
|
-
const
|
|
1034
|
+
const f = [
|
|
966
1035
|
{ col: 2, row: 2 },
|
|
967
1036
|
{ col: 1, row: 1 },
|
|
968
1037
|
{ col: 1, row: 1 },
|
|
969
1038
|
{ col: 1, row: 2 },
|
|
970
1039
|
{ col: 2, row: 1 }
|
|
971
|
-
],
|
|
1040
|
+
], x = {
|
|
972
1041
|
display: "grid",
|
|
973
|
-
gridTemplateColumns:
|
|
974
|
-
...
|
|
975
|
-
...
|
|
976
|
-
gridAutoFlow:
|
|
977
|
-
...
|
|
1042
|
+
gridTemplateColumns: A,
|
|
1043
|
+
...w ? { gridTemplateRows: w } : {},
|
|
1044
|
+
...I,
|
|
1045
|
+
gridAutoFlow: u ?? "dense",
|
|
1046
|
+
..._
|
|
978
1047
|
};
|
|
979
1048
|
return s.createElement("div", {
|
|
980
|
-
className: ["fibo-grid", "grid", ...
|
|
981
|
-
style:
|
|
982
|
-
...
|
|
983
|
-
}, s.Children.map(
|
|
984
|
-
if (
|
|
985
|
-
return
|
|
986
|
-
const
|
|
1049
|
+
className: ["fibo-grid", "grid", ...rt(i, "grid"), g].filter(Boolean).join(" "),
|
|
1050
|
+
style: x,
|
|
1051
|
+
...m
|
|
1052
|
+
}, s.Children.map(b, (d, S) => {
|
|
1053
|
+
if (Se(d))
|
|
1054
|
+
return d;
|
|
1055
|
+
const v = f[S % f.length];
|
|
987
1056
|
return s.createElement("div", {
|
|
988
|
-
key:
|
|
989
|
-
style: { gridColumn: `span ${
|
|
990
|
-
},
|
|
1057
|
+
key: ut(d, S),
|
|
1058
|
+
style: { gridColumn: `span ${v.col}`, gridRow: `span ${v.row}` }
|
|
1059
|
+
}, d);
|
|
991
1060
|
}));
|
|
992
1061
|
}
|
|
993
1062
|
if (t === "masonry") {
|
|
994
|
-
const
|
|
1063
|
+
const f = h != null ? K(h) : y, x = p != null ? K(p) : y, d = {
|
|
995
1064
|
columnCount: typeof i == "number" ? i : 1,
|
|
996
|
-
columnGap:
|
|
997
|
-
...
|
|
1065
|
+
columnGap: f,
|
|
1066
|
+
..._
|
|
998
1067
|
};
|
|
999
1068
|
return s.createElement("div", {
|
|
1000
|
-
className: ["fibo-grid", ...
|
|
1001
|
-
style:
|
|
1002
|
-
...
|
|
1069
|
+
className: ["fibo-grid", ...rt(i, "masonry"), g].filter(Boolean).join(" "),
|
|
1070
|
+
style: d,
|
|
1071
|
+
...m
|
|
1003
1072
|
}, s.Children.map(
|
|
1004
|
-
|
|
1005
|
-
(
|
|
1006
|
-
key:
|
|
1007
|
-
style: { breakInside: "avoid", marginBottom:
|
|
1008
|
-
},
|
|
1073
|
+
b,
|
|
1074
|
+
(S, v) => s.createElement("div", {
|
|
1075
|
+
key: ut(S, v),
|
|
1076
|
+
style: { breakInside: "avoid", marginBottom: x }
|
|
1077
|
+
}, S)
|
|
1009
1078
|
));
|
|
1010
1079
|
}
|
|
1011
1080
|
const E = {
|
|
1012
1081
|
display: "grid",
|
|
1013
|
-
gridTemplateColumns:
|
|
1014
|
-
...
|
|
1015
|
-
...
|
|
1016
|
-
...
|
|
1017
|
-
...
|
|
1082
|
+
gridTemplateColumns: A,
|
|
1083
|
+
...w ? { gridTemplateRows: w } : {},
|
|
1084
|
+
...u ? { gridAutoFlow: u } : {},
|
|
1085
|
+
...I,
|
|
1086
|
+
..._
|
|
1018
1087
|
};
|
|
1019
1088
|
return s.createElement("div", {
|
|
1020
|
-
className: ["fibo-grid", "grid", ...
|
|
1089
|
+
className: ["fibo-grid", "grid", ...rt(i, "grid"), g].filter(Boolean).join(" "),
|
|
1021
1090
|
style: E,
|
|
1022
|
-
...
|
|
1023
|
-
}, ...
|
|
1024
|
-
}),
|
|
1091
|
+
...m
|
|
1092
|
+
}, ...b);
|
|
1093
|
+
}), Ce = s.memo((e) => {
|
|
1025
1094
|
const {
|
|
1026
1095
|
children: r,
|
|
1027
1096
|
colSpan: t,
|
|
1028
1097
|
rowSpan: i,
|
|
1029
1098
|
colStart: o,
|
|
1030
1099
|
colEnd: l,
|
|
1031
|
-
rowStart:
|
|
1032
|
-
rowEnd:
|
|
1033
|
-
className:
|
|
1034
|
-
style:
|
|
1035
|
-
...
|
|
1036
|
-
} = e,
|
|
1100
|
+
rowStart: c,
|
|
1101
|
+
rowEnd: a,
|
|
1102
|
+
className: u,
|
|
1103
|
+
style: p,
|
|
1104
|
+
...h
|
|
1105
|
+
} = e, g = Ct(r), _ = [
|
|
1037
1106
|
t ? `col-span-${t}` : "",
|
|
1038
1107
|
i ? `row-span-${i}` : ""
|
|
1039
|
-
].filter(Boolean).join(" "),
|
|
1108
|
+
].filter(Boolean).join(" "), m = {
|
|
1040
1109
|
...t ? { gridColumn: `span ${t}` } : {},
|
|
1041
1110
|
...i ? { gridRow: `span ${i}` } : {},
|
|
1042
1111
|
...o != null ? { gridColumnStart: o } : {},
|
|
1043
1112
|
...l != null ? { gridColumnEnd: l } : {},
|
|
1044
|
-
...
|
|
1045
|
-
...
|
|
1046
|
-
...
|
|
1113
|
+
...c != null ? { gridRowStart: c } : {},
|
|
1114
|
+
...a != null ? { gridRowEnd: a } : {},
|
|
1115
|
+
...p
|
|
1047
1116
|
};
|
|
1048
1117
|
return s.createElement("div", {
|
|
1049
|
-
className: ["fibo-grid-item",
|
|
1050
|
-
style:
|
|
1051
|
-
...
|
|
1052
|
-
}, ...
|
|
1118
|
+
className: ["fibo-grid-item", _, u].filter(Boolean).join(" "),
|
|
1119
|
+
style: m,
|
|
1120
|
+
...h
|
|
1121
|
+
}, ...g);
|
|
1053
1122
|
});
|
|
1054
|
-
class
|
|
1123
|
+
class xe extends P {
|
|
1055
1124
|
constructor() {
|
|
1056
1125
|
super(...arguments);
|
|
1057
1126
|
n(this, "_variant", "standard");
|
|
@@ -1111,10 +1180,10 @@ class ye extends T {
|
|
|
1111
1180
|
style: this.getStyle(),
|
|
1112
1181
|
...this._props
|
|
1113
1182
|
};
|
|
1114
|
-
return s.createElement(
|
|
1183
|
+
return s.createElement(Ne, t);
|
|
1115
1184
|
}
|
|
1116
1185
|
}
|
|
1117
|
-
class
|
|
1186
|
+
class Ee extends P {
|
|
1118
1187
|
constructor() {
|
|
1119
1188
|
super(...arguments);
|
|
1120
1189
|
n(this, "_colSpan");
|
|
@@ -1155,44 +1224,44 @@ class _e extends T {
|
|
|
1155
1224
|
style: this.getStyle(),
|
|
1156
1225
|
...this._props
|
|
1157
1226
|
};
|
|
1158
|
-
return s.createElement(
|
|
1227
|
+
return s.createElement(Ce, t);
|
|
1159
1228
|
}
|
|
1160
1229
|
}
|
|
1161
|
-
const
|
|
1162
|
-
const { image: r, title: t, price: i, likes: o, timeLeft: l, className:
|
|
1163
|
-
return
|
|
1230
|
+
const Oe = L(xe), qe = L(Ee), ke = s.memo((e) => {
|
|
1231
|
+
const { image: r, title: t, price: i, likes: o, timeLeft: l, className: c, style: a, ...u } = e;
|
|
1232
|
+
return Z().classNames(["group", "transition-all", "duration-300", "hover:-translate-y-1"]).style({
|
|
1164
1233
|
width: "100%",
|
|
1165
1234
|
borderRadius: "24px",
|
|
1166
1235
|
border: "none",
|
|
1167
1236
|
boxShadow: "0 10px 40px -10px rgba(0,0,0,0.05)",
|
|
1168
1237
|
padding: "16px",
|
|
1169
1238
|
background: "#fff",
|
|
1170
|
-
...
|
|
1171
|
-
}).className(
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1239
|
+
...a
|
|
1240
|
+
}).className(c).props(u).children([
|
|
1241
|
+
T().classNames(["relative", "aspect-square", "overflow-hidden", "rounded-[20px]"]).children([
|
|
1242
|
+
at().src(r).alt(t || "").classNames(["w-full", "h-full", "object-cover", "bg-gray-200"]).build(),
|
|
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(G.Heart).build()).text(`${o}`).build()
|
|
1176
1245
|
).build()
|
|
1177
1246
|
]).build(),
|
|
1178
|
-
|
|
1247
|
+
V().height(16).build(),
|
|
1179
1248
|
W().justifyContent("between").alignItems("start").children([
|
|
1180
1249
|
F().gap(4).children([
|
|
1181
|
-
|
|
1182
|
-
|
|
1250
|
+
N(t).fontWeight(700).fontSize(18).color("#111827").build(),
|
|
1251
|
+
et().variant("neutral").text("Not for sale x1").build()
|
|
1183
1252
|
]).build(),
|
|
1184
|
-
|
|
1253
|
+
T().classNames(["text-gray-300"]).children(G.More).build()
|
|
1185
1254
|
]).build(),
|
|
1186
|
-
|
|
1255
|
+
V().height(16).build(),
|
|
1187
1256
|
W().justifyContent("between").alignItems("center").children([
|
|
1188
1257
|
F().gap(4).children([
|
|
1189
|
-
|
|
1258
|
+
N("Current Bid").fontSize(11).fontWeight(600).color("#6B7280").build(),
|
|
1190
1259
|
W().gap(4).alignItems("center").children([
|
|
1191
|
-
|
|
1192
|
-
|
|
1260
|
+
T().classNames(["text-blue-500"]).children(G.Eth).build(),
|
|
1261
|
+
N(`${i} ETH`).fontSize(15).fontWeight(700).color("#111827").build()
|
|
1193
1262
|
]).build()
|
|
1194
1263
|
]).build(),
|
|
1195
|
-
|
|
1264
|
+
wt("Place a bid").variant("filled").shape("pill").shadow("soft").style({
|
|
1196
1265
|
backgroundColor: "#111827",
|
|
1197
1266
|
color: "#fff",
|
|
1198
1267
|
padding: "10px 20px",
|
|
@@ -1200,11 +1269,11 @@ const Le = A(ye), We = A(_e), we = s.memo((e) => {
|
|
|
1200
1269
|
fontWeight: 600
|
|
1201
1270
|
}).build()
|
|
1202
1271
|
]).build(),
|
|
1203
|
-
|
|
1204
|
-
l ?
|
|
1272
|
+
V().height(12).build(),
|
|
1273
|
+
l ? et().variant("accent").shape("rounded").icon(T().children(G.Clock).build()).text(l).style({ width: "100%" }).build() : null
|
|
1205
1274
|
]).build();
|
|
1206
1275
|
});
|
|
1207
|
-
class
|
|
1276
|
+
class Ie extends P {
|
|
1208
1277
|
constructor() {
|
|
1209
1278
|
super(...arguments);
|
|
1210
1279
|
n(this, "_image", "");
|
|
@@ -1239,18 +1308,18 @@ class ve extends T {
|
|
|
1239
1308
|
className: this.getClassName(),
|
|
1240
1309
|
style: this.getStyle()
|
|
1241
1310
|
};
|
|
1242
|
-
return s.createElement(
|
|
1311
|
+
return s.createElement(ke, t);
|
|
1243
1312
|
}
|
|
1244
1313
|
}
|
|
1245
|
-
const
|
|
1246
|
-
function
|
|
1314
|
+
const Ue = L(Ie);
|
|
1315
|
+
function Be(e) {
|
|
1247
1316
|
if (typeof e != "string") return "";
|
|
1248
1317
|
const r = e.trim();
|
|
1249
|
-
return !r ||
|
|
1318
|
+
return !r || _t(r) ? "" : r;
|
|
1250
1319
|
}
|
|
1251
|
-
const
|
|
1252
|
-
const { banner: r, avatar: t, name: i, handle: o, stats: l, className:
|
|
1253
|
-
return
|
|
1320
|
+
const Te = s.memo((e) => {
|
|
1321
|
+
const { banner: r, avatar: t, name: i, handle: o, stats: l, className: c, style: a, ...u } = e, p = Be(r);
|
|
1322
|
+
return Z().style({
|
|
1254
1323
|
width: "100%",
|
|
1255
1324
|
borderRadius: "24px",
|
|
1256
1325
|
border: "none",
|
|
@@ -1258,52 +1327,52 @@ const Ne = s.memo((e) => {
|
|
|
1258
1327
|
padding: "0",
|
|
1259
1328
|
overflow: "hidden",
|
|
1260
1329
|
background: "#fff",
|
|
1261
|
-
...
|
|
1262
|
-
}).className(
|
|
1263
|
-
|
|
1330
|
+
...a
|
|
1331
|
+
}).className(c).props(u).children([
|
|
1332
|
+
T().style({
|
|
1264
1333
|
height: "100px",
|
|
1265
|
-
backgroundImage:
|
|
1334
|
+
backgroundImage: p ? `url(${JSON.stringify(p)})` : void 0,
|
|
1266
1335
|
backgroundSize: "cover",
|
|
1267
1336
|
backgroundPosition: "center"
|
|
1268
1337
|
}).build(),
|
|
1269
1338
|
F().padding(20).alignItems("center").style({ marginTop: "-50px" }).children([
|
|
1270
|
-
|
|
1271
|
-
|
|
1339
|
+
$t().image(t).size(80).border("4px solid #fff").build(),
|
|
1340
|
+
V().height(12).build(),
|
|
1272
1341
|
W().gap(6).alignItems("center").children([
|
|
1273
|
-
|
|
1274
|
-
|
|
1342
|
+
N(i).fontWeight(700).fontSize(18).color("#111827").build(),
|
|
1343
|
+
G.Verify
|
|
1275
1344
|
]).build(),
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1345
|
+
N(o).fontSize(13).color("#6B7280").style({ marginTop: "4px" }).build(),
|
|
1346
|
+
V().height(16).build(),
|
|
1347
|
+
wt("+ Follow").variant("filled").shape("pill").shadow("soft").style({
|
|
1279
1348
|
backgroundColor: "#3B82F6",
|
|
1280
1349
|
color: "#fff",
|
|
1281
1350
|
padding: "8px 24px",
|
|
1282
1351
|
fontSize: "13px",
|
|
1283
1352
|
fontWeight: 600
|
|
1284
1353
|
}).build(),
|
|
1285
|
-
|
|
1354
|
+
V().height(24).build(),
|
|
1286
1355
|
W().classNames(["w-full", "border-t", "border-gray-100", "pt-4"]).justifyContent("between").children([
|
|
1287
1356
|
F().alignItems("center").gap(4).children([
|
|
1288
|
-
|
|
1289
|
-
|
|
1357
|
+
N(l.items).fontWeight(700).fontSize(14).build(),
|
|
1358
|
+
N("Items").fontSize(11).color("#9CA3AF").build()
|
|
1290
1359
|
]).build(),
|
|
1291
1360
|
F().alignItems("center").gap(4).children([
|
|
1292
|
-
|
|
1293
|
-
|
|
1361
|
+
N(l.owners).fontWeight(700).fontSize(14).build(),
|
|
1362
|
+
N("Owners").fontSize(11).color("#9CA3AF").build()
|
|
1294
1363
|
]).build(),
|
|
1295
1364
|
F().alignItems("center").gap(4).children([
|
|
1296
1365
|
W().alignItems("center").gap(2).children([
|
|
1297
|
-
|
|
1298
|
-
|
|
1366
|
+
T().width(8).children(G.Eth).build(),
|
|
1367
|
+
N(l.floor).fontWeight(700).fontSize(14).build()
|
|
1299
1368
|
]).build(),
|
|
1300
|
-
|
|
1369
|
+
N("Floor").fontSize(11).color("#9CA3AF").build()
|
|
1301
1370
|
]).build()
|
|
1302
1371
|
]).build()
|
|
1303
1372
|
]).build()
|
|
1304
1373
|
]).build();
|
|
1305
1374
|
});
|
|
1306
|
-
class
|
|
1375
|
+
class Ae extends P {
|
|
1307
1376
|
constructor() {
|
|
1308
1377
|
super(...arguments);
|
|
1309
1378
|
n(this, "_banner", "");
|
|
@@ -1338,34 +1407,34 @@ class xe extends T {
|
|
|
1338
1407
|
className: this.getClassName(),
|
|
1339
1408
|
style: this.getStyle()
|
|
1340
1409
|
};
|
|
1341
|
-
return s.createElement(
|
|
1410
|
+
return s.createElement(Te, t);
|
|
1342
1411
|
}
|
|
1343
1412
|
}
|
|
1344
|
-
const
|
|
1345
|
-
const { image: r, title: t, author: i, items: o, className: l, style:
|
|
1346
|
-
return
|
|
1413
|
+
const Ye = L(Ae), Le = s.memo((e) => {
|
|
1414
|
+
const { image: r, title: t, author: i, items: o, className: l, style: c, ...a } = e;
|
|
1415
|
+
return Z().classNames(["group", "cursor-pointer"]).style({
|
|
1347
1416
|
width: "100%",
|
|
1348
1417
|
borderRadius: "24px",
|
|
1349
1418
|
height: "320px",
|
|
1350
1419
|
position: "relative",
|
|
1351
1420
|
overflow: "hidden",
|
|
1352
1421
|
border: "none",
|
|
1353
|
-
...
|
|
1354
|
-
}).className(l).props(
|
|
1355
|
-
|
|
1356
|
-
|
|
1422
|
+
...c
|
|
1423
|
+
}).className(l).props(a).children([
|
|
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
|
+
T().classNames(["absolute", "inset-0", "bg-gradient-to-t", "from-black/80", "via-black/20", "to-transparent"]).build(),
|
|
1357
1426
|
F().classNames(["absolute", "bottom-0", "left-0", "p-6"]).gap(4).children([
|
|
1358
|
-
|
|
1359
|
-
|
|
1427
|
+
N(o).color("white").fontSize(12).classNames(["opacity-90", "mb-1", "uppercase", "tracking-wider"]).fontWeight(600).build(),
|
|
1428
|
+
N(t).color("white").fontSize(22).fontWeight(700).build(),
|
|
1360
1429
|
W().gap(6).alignItems("center").children([
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1430
|
+
N("Created by").color("white").fontSize(13).classNames(["opacity-80"]).build(),
|
|
1431
|
+
N(i).color("white").fontSize(13).fontWeight(600).build(),
|
|
1432
|
+
G.Verify
|
|
1364
1433
|
]).build()
|
|
1365
1434
|
]).build()
|
|
1366
1435
|
]).build();
|
|
1367
1436
|
});
|
|
1368
|
-
class
|
|
1437
|
+
class Pe extends P {
|
|
1369
1438
|
constructor() {
|
|
1370
1439
|
super(...arguments);
|
|
1371
1440
|
n(this, "_image", "");
|
|
@@ -1395,32 +1464,32 @@ class Ee extends T {
|
|
|
1395
1464
|
className: this.getClassName(),
|
|
1396
1465
|
style: this.getStyle()
|
|
1397
1466
|
};
|
|
1398
|
-
return s.createElement(
|
|
1467
|
+
return s.createElement(Le, t);
|
|
1399
1468
|
}
|
|
1400
1469
|
}
|
|
1401
|
-
const
|
|
1470
|
+
const Je = L(Pe), Re = s.memo((e) => {
|
|
1402
1471
|
const {
|
|
1403
1472
|
image: r,
|
|
1404
1473
|
title: t,
|
|
1405
1474
|
description: i,
|
|
1406
1475
|
date: o,
|
|
1407
1476
|
source: l,
|
|
1408
|
-
className:
|
|
1409
|
-
style:
|
|
1410
|
-
...
|
|
1477
|
+
className: c,
|
|
1478
|
+
style: a,
|
|
1479
|
+
...u
|
|
1411
1480
|
} = e;
|
|
1412
|
-
return
|
|
1413
|
-
r ?
|
|
1414
|
-
|
|
1415
|
-
t ?
|
|
1416
|
-
i ?
|
|
1417
|
-
l || o ?
|
|
1418
|
-
|
|
1481
|
+
return Z().className(`overflow-hidden hover:shadow-lg transition-shadow duration-300 ${c || ""}`).style(a).props(u).children([
|
|
1482
|
+
r ? at().src(r).alt(t || "").className("w-full object-cover rounded-[20px] mb-4").style({ height: "200px" }).build() : null,
|
|
1483
|
+
T().className("flex flex-col gap-2").children([
|
|
1484
|
+
t ? N(t).fontSize(18).fontWeight(700).color("#111827").lineHeight(1.25).build() : null,
|
|
1485
|
+
i ? N(i).fontSize(14).color("#4B5563").lineHeight(1.5).className("line-clamp-2").build() : null,
|
|
1486
|
+
l || o ? T().className("flex items-center gap-2 mt-2").children([
|
|
1487
|
+
N(`${l || ""}${l && o ? " • " : ""}${o || ""}`).fontSize(11).fontWeight(600).color("#9CA3AF").textTransform("uppercase").letterSpacing("0.05em").build()
|
|
1419
1488
|
]).build() : null
|
|
1420
1489
|
]).build()
|
|
1421
1490
|
]).build();
|
|
1422
1491
|
});
|
|
1423
|
-
class
|
|
1492
|
+
class $e extends P {
|
|
1424
1493
|
constructor() {
|
|
1425
1494
|
super(...arguments);
|
|
1426
1495
|
n(this, "_image");
|
|
@@ -1455,20 +1524,20 @@ class Ie extends T {
|
|
|
1455
1524
|
className: this.getClassName(),
|
|
1456
1525
|
style: this.getStyle()
|
|
1457
1526
|
};
|
|
1458
|
-
return s.createElement(
|
|
1527
|
+
return s.createElement(Re, t);
|
|
1459
1528
|
}
|
|
1460
1529
|
}
|
|
1461
|
-
const
|
|
1530
|
+
const Qe = L($e);
|
|
1462
1531
|
export {
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1532
|
+
Ue as A,
|
|
1533
|
+
Me as B,
|
|
1534
|
+
Z as C,
|
|
1535
|
+
Oe as G,
|
|
1536
|
+
Ve as L,
|
|
1537
|
+
Ye as P,
|
|
1538
|
+
He as T,
|
|
1539
|
+
Ke as a,
|
|
1540
|
+
qe as b,
|
|
1541
|
+
Je as c,
|
|
1542
|
+
Qe as d
|
|
1474
1543
|
};
|