fiboui 2.4.4 → 2.6.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 +164 -70
- package/dist/Link-dHd4e7BS.js +50 -0
- package/dist/{PluginManager-D5-ApsSN.js → PluginManager-BRjgOLVa.js} +5 -6
- package/dist/client-C9ZVisXx.js +10565 -0
- package/dist/content.js +7 -8
- package/dist/core.js +60 -60
- package/dist/{effects-CnevV566.js → effects-D16XdB_d.js} +0 -1
- package/dist/index-BGRLxUem.js +608 -0
- package/dist/{index-BMIo5j9Y.js → index-BQ1MDC96.js} +1 -2
- package/dist/index-BsGBv5Ep.js +455 -0
- package/dist/{index-DRVdVimz.js → index-bzEYBKyp.js} +40 -43
- package/dist/{index-DGQVwcWx.js → index-eboXR8k_.js} +136 -362
- package/dist/index.d.ts +44224 -42913
- package/dist/index.js +1563 -1110
- package/dist/interactive.js +9 -9
- package/dist/layout.js +13 -13
- package/dist/mount-D2kCLLwq.js +135 -0
- package/dist/navigation.js +9 -10
- package/dist/{builder-B5cebEWZ.js → server.js} +4467 -967
- package/dist/structure.js +12 -13
- package/dist/style.css +1 -1
- package/dist/style.js +1 -1
- package/dist/theme.js +15 -17
- package/package.json +8 -3
- package/dist/FineGrain-CvcJ5OxF.js +0 -29
- package/dist/Link-ElmaMZB8.js +0 -89
- package/dist/Router-BwbaHooU.js +0 -398
- package/dist/bundle-mjs-wppB-TKB.js +0 -2760
- package/dist/index-BxH8dhoT.js +0 -1112
- package/dist/index-DbaNIwWW.js +0 -160
- package/dist/index-MeDbhMEg.js +0 -1031
- package/dist/index-orKQGpHl.js +0 -34
- package/dist/mount-DbMVakA4.js +0 -358
- package/dist/provider-BTNE3N5g.js +0 -44
- package/dist/themeData-Dtm0M_mF.js +0 -441
|
@@ -0,0 +1,455 @@
|
|
|
1
|
+
var v = Object.defineProperty;
|
|
2
|
+
var $ = (i, r, e) => r in i ? v(i, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[r] = e;
|
|
3
|
+
var o = (i, r, e) => $(i, typeof r != "symbol" ? r + "" : r, e);
|
|
4
|
+
import t from "react";
|
|
5
|
+
import { at as b, au as _, a4 as E, az as x } from "./client-C9ZVisXx.js";
|
|
6
|
+
const w = t.memo((i) => {
|
|
7
|
+
const { text: r, subtitle: e, number: n, color: c, className: m, style: d, children: p, ...u } = i;
|
|
8
|
+
return t.createElement(
|
|
9
|
+
"div",
|
|
10
|
+
{
|
|
11
|
+
className: `rounded-[24px] shadow-[0_8px_30px_rgb(0,0,0,0.04)] hover:shadow-[0_8px_30px_rgb(0,0,0,0.08)] transition-shadow duration-300 border-none p-4 ${m || ""}`,
|
|
12
|
+
style: { backgroundColor: "#ffffff", ...d },
|
|
13
|
+
...u
|
|
14
|
+
},
|
|
15
|
+
t.createElement(
|
|
16
|
+
"div",
|
|
17
|
+
{ className: "flex flex-col gap-2" },
|
|
18
|
+
r && t.createElement(
|
|
19
|
+
"h3",
|
|
20
|
+
{
|
|
21
|
+
className: "font-semibold text-[var(--fibo-on-surface-variant)] text-sm uppercase tracking-wide"
|
|
22
|
+
},
|
|
23
|
+
r
|
|
24
|
+
),
|
|
25
|
+
n && t.createElement(
|
|
26
|
+
"p",
|
|
27
|
+
{
|
|
28
|
+
className: "font-bold text-[var(--fibo-on-surface)] text-3xl"
|
|
29
|
+
},
|
|
30
|
+
n
|
|
31
|
+
),
|
|
32
|
+
e && t.createElement(
|
|
33
|
+
"p",
|
|
34
|
+
{
|
|
35
|
+
className: "text-[var(--fibo-on-surface-variant)] text-xs"
|
|
36
|
+
},
|
|
37
|
+
e
|
|
38
|
+
),
|
|
39
|
+
...p
|
|
40
|
+
)
|
|
41
|
+
);
|
|
42
|
+
});
|
|
43
|
+
class C extends _ {
|
|
44
|
+
constructor() {
|
|
45
|
+
super(...arguments);
|
|
46
|
+
o(this, "_text", "");
|
|
47
|
+
o(this, "_subtitle");
|
|
48
|
+
o(this, "_number");
|
|
49
|
+
o(this, "_color");
|
|
50
|
+
}
|
|
51
|
+
text(e) {
|
|
52
|
+
return this._text = e, this;
|
|
53
|
+
}
|
|
54
|
+
subtitle(e) {
|
|
55
|
+
return this._subtitle = e, this;
|
|
56
|
+
}
|
|
57
|
+
number(e) {
|
|
58
|
+
return this._number = e, this;
|
|
59
|
+
}
|
|
60
|
+
color(e) {
|
|
61
|
+
return this._color = e, this;
|
|
62
|
+
}
|
|
63
|
+
build() {
|
|
64
|
+
const e = {
|
|
65
|
+
green: "border-l-green-500",
|
|
66
|
+
orange: "border-l-orange-500",
|
|
67
|
+
red: "border-l-red-500",
|
|
68
|
+
blue: "border-l-blue-500",
|
|
69
|
+
purple: "border-l-purple-500"
|
|
70
|
+
}, n = [
|
|
71
|
+
"fibo-card",
|
|
72
|
+
this._color ? `border-l-4 ${e[this._color]}` : "",
|
|
73
|
+
...this._classNames
|
|
74
|
+
].filter(Boolean).join(" "), c = {
|
|
75
|
+
text: this._text,
|
|
76
|
+
subtitle: this._subtitle,
|
|
77
|
+
number: this._number,
|
|
78
|
+
color: this._color,
|
|
79
|
+
className: n,
|
|
80
|
+
style: this.getStyle(),
|
|
81
|
+
children: this.processChildren(),
|
|
82
|
+
...this._props
|
|
83
|
+
};
|
|
84
|
+
return t.createElement(w, c);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
const L = b(C), S = t.memo((i) => {
|
|
88
|
+
const {
|
|
89
|
+
data: r,
|
|
90
|
+
columns: e,
|
|
91
|
+
variant: n,
|
|
92
|
+
density: c,
|
|
93
|
+
striped: m,
|
|
94
|
+
width: d,
|
|
95
|
+
className: p,
|
|
96
|
+
style: u
|
|
97
|
+
} = i, g = {
|
|
98
|
+
width: "100%",
|
|
99
|
+
borderCollapse: "separate",
|
|
100
|
+
borderSpacing: "0",
|
|
101
|
+
...u
|
|
102
|
+
};
|
|
103
|
+
d && (g.width = typeof d == "number" ? `${d}px` : d);
|
|
104
|
+
const f = n === "clean" ? ["bg-white", "rounded-2xl", "border", "border-gray-100", "overflow-hidden", "shadow-sm"] : [], s = {
|
|
105
|
+
compact: "10px 16px",
|
|
106
|
+
standard: "16px 24px",
|
|
107
|
+
relaxed: "24px 32px"
|
|
108
|
+
}[c];
|
|
109
|
+
return E().className(p).classNames(f).children(
|
|
110
|
+
t.createElement("table", { style: g }, [
|
|
111
|
+
t.createElement(
|
|
112
|
+
"thead",
|
|
113
|
+
{ key: "thead", className: "bg-gray-50/50" },
|
|
114
|
+
t.createElement(
|
|
115
|
+
"tr",
|
|
116
|
+
{},
|
|
117
|
+
e.map(
|
|
118
|
+
(a, h) => t.createElement("th", {
|
|
119
|
+
key: String(a.accessor ?? a.header ?? h),
|
|
120
|
+
scope: "col",
|
|
121
|
+
style: {
|
|
122
|
+
textAlign: a.align || "left",
|
|
123
|
+
padding: s,
|
|
124
|
+
width: a.width
|
|
125
|
+
},
|
|
126
|
+
className: "text-xs font-bold text-gray-400 uppercase tracking-widest"
|
|
127
|
+
}, a.header)
|
|
128
|
+
)
|
|
129
|
+
)
|
|
130
|
+
),
|
|
131
|
+
t.createElement(
|
|
132
|
+
"tbody",
|
|
133
|
+
{ key: "tbody" },
|
|
134
|
+
r.map(
|
|
135
|
+
(a, h) => t.createElement(
|
|
136
|
+
"tr",
|
|
137
|
+
{
|
|
138
|
+
key: (a == null ? void 0 : a.id) ?? (a == null ? void 0 : a.key) ?? h,
|
|
139
|
+
className: `group transition-all duration-200 border-b border-gray-50 last:border-b-0 ${m && h % 2 !== 0 ? "bg-gray-50/30" : "bg-transparent"} ${n === "clean" ? "hover:bg-white hover:shadow-md hover:scale-[1.002] hover:z-10 relative" : "hover:bg-gray-50/50"}`
|
|
140
|
+
},
|
|
141
|
+
e.map(
|
|
142
|
+
(y, N) => t.createElement(
|
|
143
|
+
"td",
|
|
144
|
+
{
|
|
145
|
+
key: N,
|
|
146
|
+
style: {
|
|
147
|
+
textAlign: y.align || "left",
|
|
148
|
+
padding: s,
|
|
149
|
+
borderTop: n === "default" ? "1px solid #F3F4F6" : "none"
|
|
150
|
+
},
|
|
151
|
+
className: "text-sm text-gray-900 font-medium"
|
|
152
|
+
},
|
|
153
|
+
y.render ? y.render(a) : y.accessor ? a[y.accessor] : null
|
|
154
|
+
)
|
|
155
|
+
)
|
|
156
|
+
)
|
|
157
|
+
)
|
|
158
|
+
)
|
|
159
|
+
])
|
|
160
|
+
).build();
|
|
161
|
+
});
|
|
162
|
+
class B extends _ {
|
|
163
|
+
constructor() {
|
|
164
|
+
super(...arguments);
|
|
165
|
+
o(this, "_data", []);
|
|
166
|
+
o(this, "_columns", []);
|
|
167
|
+
o(this, "_variant", "clean");
|
|
168
|
+
o(this, "_density", "standard");
|
|
169
|
+
o(this, "_striped", !1);
|
|
170
|
+
o(this, "_width");
|
|
171
|
+
}
|
|
172
|
+
data(e) {
|
|
173
|
+
return this._data = e, this;
|
|
174
|
+
}
|
|
175
|
+
columns(e) {
|
|
176
|
+
return this._columns = e, this;
|
|
177
|
+
}
|
|
178
|
+
variant(e) {
|
|
179
|
+
return this._variant = e, this;
|
|
180
|
+
}
|
|
181
|
+
density(e) {
|
|
182
|
+
return this._density = e, this;
|
|
183
|
+
}
|
|
184
|
+
striped(e = !0) {
|
|
185
|
+
return this._striped = e, this;
|
|
186
|
+
}
|
|
187
|
+
width(e) {
|
|
188
|
+
return this._width = e, this;
|
|
189
|
+
}
|
|
190
|
+
build() {
|
|
191
|
+
const e = {
|
|
192
|
+
data: this._data,
|
|
193
|
+
columns: this._columns,
|
|
194
|
+
variant: this._variant,
|
|
195
|
+
density: this._density,
|
|
196
|
+
striped: this._striped,
|
|
197
|
+
width: this._width,
|
|
198
|
+
className: this.getClassName(),
|
|
199
|
+
style: this.getStyle()
|
|
200
|
+
};
|
|
201
|
+
return t.createElement(S, e);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
const M = b(B), k = t.memo((i) => {
|
|
205
|
+
const { items: r, className: e, style: n, ...c } = i, m = r.map(
|
|
206
|
+
(d, p) => t.createElement(
|
|
207
|
+
"span",
|
|
208
|
+
{
|
|
209
|
+
key: d.title ? `${d.title}-${p}` : `tag-${p}`,
|
|
210
|
+
className: "fibo-tag"
|
|
211
|
+
},
|
|
212
|
+
d.title
|
|
213
|
+
)
|
|
214
|
+
);
|
|
215
|
+
return t.createElement(
|
|
216
|
+
"div",
|
|
217
|
+
{
|
|
218
|
+
className: e,
|
|
219
|
+
style: n,
|
|
220
|
+
...c
|
|
221
|
+
},
|
|
222
|
+
...m
|
|
223
|
+
);
|
|
224
|
+
});
|
|
225
|
+
class G extends _ {
|
|
226
|
+
constructor(e = []) {
|
|
227
|
+
super();
|
|
228
|
+
o(this, "_items", []);
|
|
229
|
+
this._items = e;
|
|
230
|
+
}
|
|
231
|
+
items(e) {
|
|
232
|
+
return this._items = e, this;
|
|
233
|
+
}
|
|
234
|
+
build() {
|
|
235
|
+
const e = ["fibo-tags", "flex", "gap-2", "flex-wrap", ...this._classNames].filter(Boolean).join(" "), n = {
|
|
236
|
+
items: this._items,
|
|
237
|
+
className: e,
|
|
238
|
+
style: this.getStyle(),
|
|
239
|
+
...this._props
|
|
240
|
+
};
|
|
241
|
+
return t.createElement(k, n);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
const V = b(G), I = t.memo((i) => {
|
|
245
|
+
const { status: r, title: e, subtitle: n, className: c, style: m, ...d } = i;
|
|
246
|
+
return t.createElement(
|
|
247
|
+
"div",
|
|
248
|
+
{
|
|
249
|
+
className: c,
|
|
250
|
+
style: m,
|
|
251
|
+
...d
|
|
252
|
+
},
|
|
253
|
+
t.createElement(
|
|
254
|
+
"div",
|
|
255
|
+
{ className: "flex flex-col gap-1" },
|
|
256
|
+
e && t.createElement(
|
|
257
|
+
"h4",
|
|
258
|
+
{
|
|
259
|
+
className: "font-semibold text-sm uppercase tracking-wide opacity-90"
|
|
260
|
+
},
|
|
261
|
+
e
|
|
262
|
+
),
|
|
263
|
+
n && t.createElement(
|
|
264
|
+
"p",
|
|
265
|
+
{
|
|
266
|
+
className: "opacity-80 text-sm"
|
|
267
|
+
},
|
|
268
|
+
n
|
|
269
|
+
)
|
|
270
|
+
)
|
|
271
|
+
);
|
|
272
|
+
});
|
|
273
|
+
class T extends _ {
|
|
274
|
+
constructor(e = "") {
|
|
275
|
+
super();
|
|
276
|
+
o(this, "_status", "info");
|
|
277
|
+
o(this, "_title", "");
|
|
278
|
+
o(this, "_subtitle");
|
|
279
|
+
this._title = e;
|
|
280
|
+
}
|
|
281
|
+
status(e) {
|
|
282
|
+
return this._status = e, this;
|
|
283
|
+
}
|
|
284
|
+
title(e) {
|
|
285
|
+
return this._title = e, this;
|
|
286
|
+
}
|
|
287
|
+
subtitle(e) {
|
|
288
|
+
return this._subtitle = e, this;
|
|
289
|
+
}
|
|
290
|
+
build() {
|
|
291
|
+
const n = [
|
|
292
|
+
"fibo-banner",
|
|
293
|
+
`fibo-banner-${this._status}`,
|
|
294
|
+
...this._classNames
|
|
295
|
+
].filter(Boolean).join(" "), c = {
|
|
296
|
+
status: this._status,
|
|
297
|
+
title: this._title,
|
|
298
|
+
subtitle: this._subtitle,
|
|
299
|
+
className: n,
|
|
300
|
+
style: this.getStyle(),
|
|
301
|
+
...this._props
|
|
302
|
+
};
|
|
303
|
+
return t.createElement(I, c);
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
const q = b(T), j = t.memo((i) => {
|
|
307
|
+
const {
|
|
308
|
+
children: r,
|
|
309
|
+
variant: e = "standard",
|
|
310
|
+
columns: n = 1,
|
|
311
|
+
gap: c = "md",
|
|
312
|
+
className: m,
|
|
313
|
+
style: d,
|
|
314
|
+
...p
|
|
315
|
+
} = i, u = (l) => typeof l == "number" ? "" : {
|
|
316
|
+
none: "gap-0",
|
|
317
|
+
sm: "gap-2",
|
|
318
|
+
md: "gap-4",
|
|
319
|
+
lg: "gap-6",
|
|
320
|
+
xl: "gap-8"
|
|
321
|
+
}[l] || "gap-4", g = (l) => {
|
|
322
|
+
if (typeof l == "number") return l + "px";
|
|
323
|
+
}, f = (l) => {
|
|
324
|
+
if (typeof l == "number") return `grid-cols-${l}`;
|
|
325
|
+
let s = [];
|
|
326
|
+
return l.sm && s.push(`sm:grid-cols-${l.sm}`), l.md && s.push(`md:grid-cols-${l.md}`), l.lg && s.push(`lg:grid-cols-${l.lg}`), l.xl && s.push(`xl:grid-cols-${l.xl}`), s.join(" ") || "grid-cols-1";
|
|
327
|
+
};
|
|
328
|
+
if (e === "bento") {
|
|
329
|
+
const l = [
|
|
330
|
+
{ col: 2, row: 2 },
|
|
331
|
+
{ col: 1, row: 1 },
|
|
332
|
+
{ col: 1, row: 1 },
|
|
333
|
+
{ col: 1, row: 2 },
|
|
334
|
+
{ col: 2, row: 1 }
|
|
335
|
+
];
|
|
336
|
+
return t.createElement("div", {
|
|
337
|
+
className: `grid ${f(n)} ${u(c)} ${m}`,
|
|
338
|
+
style: {
|
|
339
|
+
gap: g(c),
|
|
340
|
+
gridAutoFlow: "dense",
|
|
341
|
+
...d
|
|
342
|
+
},
|
|
343
|
+
...p
|
|
344
|
+
}, t.Children.map(r, (s, a) => {
|
|
345
|
+
if (t.isValidElement(s) && typeof s.props.className == "string" && s.props.className.includes("col-span"))
|
|
346
|
+
return s;
|
|
347
|
+
const h = l[a % l.length];
|
|
348
|
+
return t.createElement("div", {
|
|
349
|
+
key: x(s, a),
|
|
350
|
+
style: { gridColumn: `span ${h.col}`, gridRow: `span ${h.row}` }
|
|
351
|
+
}, s);
|
|
352
|
+
}));
|
|
353
|
+
}
|
|
354
|
+
if (e === "masonry") {
|
|
355
|
+
const l = (s) => {
|
|
356
|
+
if (typeof s == "number") return `columns-${s}`;
|
|
357
|
+
let a = [];
|
|
358
|
+
return s.sm && a.push(`sm:columns-${s.sm}`), s.md && a.push(`md:columns-${s.md}`), s.lg && a.push(`lg:columns-${s.lg}`), s.xl && a.push(`xl:columns-${s.xl}`), a.join(" ") || "columns-1";
|
|
359
|
+
};
|
|
360
|
+
return t.createElement("div", {
|
|
361
|
+
className: `${l(n)} ${u(c)} space-y-4 ${m}`,
|
|
362
|
+
style: {
|
|
363
|
+
columnGap: g(c),
|
|
364
|
+
...d
|
|
365
|
+
},
|
|
366
|
+
...p
|
|
367
|
+
}, t.Children.map(
|
|
368
|
+
r,
|
|
369
|
+
(s, a) => t.createElement("div", {
|
|
370
|
+
key: x(s, a),
|
|
371
|
+
className: "break-inside-avoid mb-4"
|
|
372
|
+
}, s)
|
|
373
|
+
));
|
|
374
|
+
}
|
|
375
|
+
return t.createElement("div", {
|
|
376
|
+
className: `grid ${f(n)} ${u(c)} ${m}`,
|
|
377
|
+
style: {
|
|
378
|
+
gap: g(c),
|
|
379
|
+
...d
|
|
380
|
+
},
|
|
381
|
+
...p
|
|
382
|
+
}, r);
|
|
383
|
+
}), F = t.memo((i) => {
|
|
384
|
+
const { children: r, colSpan: e, rowSpan: n, className: c, style: m, ...d } = i, p = () => {
|
|
385
|
+
let u = [];
|
|
386
|
+
return e && u.push(`col-span-${e}`), n && u.push(`row-span-${n}`), u.join(" ");
|
|
387
|
+
};
|
|
388
|
+
return t.createElement("div", {
|
|
389
|
+
className: `${p()} ${c}`,
|
|
390
|
+
style: m,
|
|
391
|
+
...d
|
|
392
|
+
}, r);
|
|
393
|
+
});
|
|
394
|
+
class A extends _ {
|
|
395
|
+
constructor() {
|
|
396
|
+
super(...arguments);
|
|
397
|
+
o(this, "_variant", "standard");
|
|
398
|
+
o(this, "_columns", 1);
|
|
399
|
+
o(this, "_gap", "md");
|
|
400
|
+
}
|
|
401
|
+
variant(e) {
|
|
402
|
+
return this._variant = e, this;
|
|
403
|
+
}
|
|
404
|
+
columns(e) {
|
|
405
|
+
return this._columns = e, this;
|
|
406
|
+
}
|
|
407
|
+
gap(e) {
|
|
408
|
+
return this._gap = e, this;
|
|
409
|
+
}
|
|
410
|
+
build() {
|
|
411
|
+
const e = {
|
|
412
|
+
variant: this._variant,
|
|
413
|
+
columns: this._columns,
|
|
414
|
+
gap: this._gap,
|
|
415
|
+
children: this.processChildren(),
|
|
416
|
+
className: this.getClassName(),
|
|
417
|
+
style: this.getStyle(),
|
|
418
|
+
...this._props
|
|
419
|
+
};
|
|
420
|
+
return t.createElement(j, e);
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
class z extends _ {
|
|
424
|
+
constructor() {
|
|
425
|
+
super(...arguments);
|
|
426
|
+
o(this, "_colSpan");
|
|
427
|
+
o(this, "_rowSpan");
|
|
428
|
+
}
|
|
429
|
+
colSpan(e) {
|
|
430
|
+
return this._colSpan = e, this;
|
|
431
|
+
}
|
|
432
|
+
rowSpan(e) {
|
|
433
|
+
return this._rowSpan = e, this;
|
|
434
|
+
}
|
|
435
|
+
build() {
|
|
436
|
+
const e = {
|
|
437
|
+
colSpan: this._colSpan,
|
|
438
|
+
rowSpan: this._rowSpan,
|
|
439
|
+
children: this.processChildren(),
|
|
440
|
+
className: this.getClassName(),
|
|
441
|
+
style: this.getStyle(),
|
|
442
|
+
...this._props
|
|
443
|
+
};
|
|
444
|
+
return t.createElement(F, e);
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
const D = b(A), H = b(z);
|
|
448
|
+
export {
|
|
449
|
+
q as B,
|
|
450
|
+
L as C,
|
|
451
|
+
D as G,
|
|
452
|
+
M as T,
|
|
453
|
+
V as a,
|
|
454
|
+
H as b
|
|
455
|
+
};
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
var U = Object.defineProperty;
|
|
3
2
|
var G = (n, s, e) => s in n ? U(n, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[s] = e;
|
|
4
3
|
var r = (n, s, e) => G(n, typeof s != "symbol" ? s + "" : s, e);
|
|
5
4
|
import t from "react";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { T as O } from "./index-DbaNIwWW.js";
|
|
9
|
-
import { R as J } from "./index-BMIo5j9Y.js";
|
|
5
|
+
import { at as C, au as F, a4 as j, $ as O } from "./client-C9ZVisXx.js";
|
|
6
|
+
import { R as J } from "./index-BQ1MDC96.js";
|
|
10
7
|
import { jsxs as $, jsx as f } from "react/jsx-runtime";
|
|
11
8
|
const K = ({ size: n }) => t.createElement(
|
|
12
9
|
"svg",
|
|
@@ -24,11 +21,11 @@ const K = ({ size: n }) => t.createElement(
|
|
|
24
21
|
fill: "#6a6a6a"
|
|
25
22
|
})
|
|
26
23
|
), Q = t.memo((n) => {
|
|
27
|
-
const { image: s, size: e, border: a, shape: i, status: o, initials: h, icon: d, className: y, style: p } = n, c = typeof e == "number" ? `${e}px` : e, u = typeof e == "number" ? e : 40,
|
|
24
|
+
const { image: s, size: e, border: a, shape: i, status: o, initials: h, icon: d, className: y, style: p } = n, c = typeof e == "number" ? `${e}px` : e, u = typeof e == "number" ? e : 40, S = {
|
|
28
25
|
circle: "50%",
|
|
29
26
|
rounded: "24%",
|
|
30
27
|
square: "0"
|
|
31
|
-
},
|
|
28
|
+
}, z = {
|
|
32
29
|
none: "transparent",
|
|
33
30
|
online: "#10B981",
|
|
34
31
|
offline: "#9CA3AF",
|
|
@@ -41,7 +38,7 @@ const K = ({ size: n }) => t.createElement(
|
|
|
41
38
|
height: "28%",
|
|
42
39
|
minWidth: "10px",
|
|
43
40
|
minHeight: "10px",
|
|
44
|
-
backgroundColor:
|
|
41
|
+
backgroundColor: z[o],
|
|
45
42
|
borderRadius: "50%",
|
|
46
43
|
border: "3px solid #ffffff",
|
|
47
44
|
boxSizing: "content-box"
|
|
@@ -50,7 +47,7 @@ const K = ({ size: n }) => t.createElement(
|
|
|
50
47
|
position: "relative",
|
|
51
48
|
width: c,
|
|
52
49
|
height: c,
|
|
53
|
-
borderRadius:
|
|
50
|
+
borderRadius: S[i],
|
|
54
51
|
backgroundImage: s ? `url(${s})` : void 0,
|
|
55
52
|
backgroundColor: s ? void 0 : (p == null ? void 0 : p.backgroundColor) || (h ? "#ddd" : "transparent"),
|
|
56
53
|
backgroundSize: "cover",
|
|
@@ -115,7 +112,7 @@ class X extends F {
|
|
|
115
112
|
return t.createElement(Q, e);
|
|
116
113
|
}
|
|
117
114
|
}
|
|
118
|
-
const
|
|
115
|
+
const ye = C(X), Y = t.memo((n) => {
|
|
119
116
|
const { text: s, icon: e, variant: a, intent: i, shape: o, className: h, style: d } = n, y = {
|
|
120
117
|
none: { bg: "#F9FAFB", text: "#6B7280", border: "#E5E7EB" },
|
|
121
118
|
success: { bg: "#ECFDF5", text: "#059669", border: "transparent" },
|
|
@@ -137,17 +134,17 @@ const ve = C(X), Y = t.memo((n) => {
|
|
|
137
134
|
dot: { backgroundColor: "transparent", color: "#6B7280", border: "1px solid #E5E7EB", padding: "4px 10px" }
|
|
138
135
|
}[a] };
|
|
139
136
|
if (i !== "none") {
|
|
140
|
-
const
|
|
137
|
+
const S = y[i];
|
|
141
138
|
if (a === "solid") {
|
|
142
|
-
const
|
|
139
|
+
const z = {
|
|
143
140
|
none: "#111827",
|
|
144
141
|
success: "#059669",
|
|
145
142
|
warning: "#D97706",
|
|
146
143
|
error: "#E11D48",
|
|
147
144
|
info: "#2563EB"
|
|
148
145
|
};
|
|
149
|
-
c.backgroundColor =
|
|
150
|
-
} else a === "dot" ? (c.color = "#374151", c.borderColor = "#E5E7EB") : (c.backgroundColor =
|
|
146
|
+
c.backgroundColor = z[i], c.color = "#FFFFFF";
|
|
147
|
+
} else a === "dot" ? (c.color = "#374151", c.borderColor = "#E5E7EB") : (c.backgroundColor = S.bg, c.color = S.text, S.border ? c.border = `1px solid ${S.border}` : c.border = "none");
|
|
151
148
|
}
|
|
152
149
|
const u = {
|
|
153
150
|
pill: "9999px",
|
|
@@ -216,7 +213,7 @@ class Z extends F {
|
|
|
216
213
|
return t.createElement(Y, e);
|
|
217
214
|
}
|
|
218
215
|
}
|
|
219
|
-
const
|
|
216
|
+
const _e = C(Z), ee = t.memo((n) => {
|
|
220
217
|
const { text: s, htmlFor: e, required: a, className: i, style: o, ...h } = n;
|
|
221
218
|
return t.createElement(
|
|
222
219
|
"label",
|
|
@@ -259,7 +256,7 @@ class te extends F {
|
|
|
259
256
|
return t.createElement(ee, e);
|
|
260
257
|
}
|
|
261
258
|
}
|
|
262
|
-
const
|
|
259
|
+
const ve = C(te), re = t.memo((n) => {
|
|
263
260
|
const {
|
|
264
261
|
src: s,
|
|
265
262
|
alt: e,
|
|
@@ -337,7 +334,7 @@ class se extends F {
|
|
|
337
334
|
return t.createElement(re, o);
|
|
338
335
|
}
|
|
339
336
|
}
|
|
340
|
-
const
|
|
337
|
+
const ke = C(se), ne = t.memo((n) => {
|
|
341
338
|
const { size: s, color: e, variant: a = "circle", className: i, style: o, ...h } = n, y = typeof s == "number" ? s : {
|
|
342
339
|
sm: 16,
|
|
343
340
|
md: 24,
|
|
@@ -444,7 +441,7 @@ class ae extends F {
|
|
|
444
441
|
return t.createElement(ne, e);
|
|
445
442
|
}
|
|
446
443
|
}
|
|
447
|
-
const
|
|
444
|
+
const Ee = C(ae), ie = t.memo((n) => {
|
|
448
445
|
const { width: s, height: e, shape: a, className: i, style: o, ...h } = n, d = ["animate-pulse", "bg-gray-200", "loading-skeleton"];
|
|
449
446
|
return a === "circle" ? d.push("rounded-full") : a === "rounded-sm" ? d.push("rounded-sm") : a === "rounded-md" ? d.push("rounded-md") : a === "rounded-lg" ? d.push("rounded-lg") : a === "square" ? d.push("rounded-none") : d.push("rounded"), t.createElement("div", {
|
|
450
447
|
className: [...d, i].filter(Boolean).join(" "),
|
|
@@ -487,7 +484,7 @@ class le extends F {
|
|
|
487
484
|
return t.createElement(ie, e);
|
|
488
485
|
}
|
|
489
486
|
}
|
|
490
|
-
const
|
|
487
|
+
const we = C(le), M = {
|
|
491
488
|
Heart: /* @__PURE__ */ f("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ f("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" }) }),
|
|
492
489
|
Eth: /* @__PURE__ */ f("svg", { width: "14", height: "24", viewBox: "0 0 32 32", fill: "currentColor", children: /* @__PURE__ */ f("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" }) }),
|
|
493
490
|
Verify: /* @__PURE__ */ f("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "#3B82F6", stroke: "none", children: /* @__PURE__ */ f("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" }) }),
|
|
@@ -589,7 +586,7 @@ class ce extends F {
|
|
|
589
586
|
return t.createElement(oe, e);
|
|
590
587
|
}
|
|
591
588
|
}
|
|
592
|
-
const
|
|
589
|
+
const Ne = C(ce), he = t.memo((n) => {
|
|
593
590
|
const {
|
|
594
591
|
value: s,
|
|
595
592
|
max: e,
|
|
@@ -602,23 +599,23 @@ const Fe = C(ce), he = t.memo((n) => {
|
|
|
602
599
|
size: p,
|
|
603
600
|
strokeWidth: c,
|
|
604
601
|
segments: u,
|
|
605
|
-
gap:
|
|
606
|
-
trackColor:
|
|
602
|
+
gap: S,
|
|
603
|
+
trackColor: z,
|
|
607
604
|
children: A,
|
|
608
605
|
className: k,
|
|
609
606
|
style: w,
|
|
610
607
|
...N
|
|
611
608
|
} = n, _ = Math.min(100, Math.max(0, s / e * 100)), v = a || "#3B82F6";
|
|
612
609
|
if (o === "ring") {
|
|
613
|
-
const m = p ?? (typeof i == "number" ? i : 190), g = c ?? 2.4, x = Array.isArray(u) && u.length ? u : [{ value: _, color: v }], l =
|
|
614
|
-
let
|
|
610
|
+
const m = p ?? (typeof i == "number" ? i : 190), g = c ?? 2.4, x = Array.isArray(u) && u.length ? u : [{ value: _, color: v }], l = S ?? (x.length > 1 ? 5e-3 : 0), b = 88, E = 2 * Math.PI * b, I = x.reduce((L, D) => L + D.value, 0) || 1;
|
|
611
|
+
let B = 0;
|
|
615
612
|
const W = [];
|
|
616
|
-
return
|
|
613
|
+
return z && W.push(t.createElement("circle", {
|
|
617
614
|
key: "track",
|
|
618
615
|
cx: 100,
|
|
619
616
|
cy: 100,
|
|
620
617
|
r: b,
|
|
621
|
-
stroke:
|
|
618
|
+
stroke: z,
|
|
622
619
|
strokeWidth: g,
|
|
623
620
|
fill: "none"
|
|
624
621
|
})), x.forEach((L, D) => {
|
|
@@ -632,10 +629,10 @@ const Fe = C(ce), he = t.memo((n) => {
|
|
|
632
629
|
strokeWidth: L.strokeWidth ?? g,
|
|
633
630
|
fill: "none",
|
|
634
631
|
strokeDasharray: `${T} ${E}`,
|
|
635
|
-
strokeDashoffset: -
|
|
632
|
+
strokeDashoffset: -B,
|
|
636
633
|
transform: "rotate(-90 100 100)",
|
|
637
634
|
style: { transition: "all .4s" }
|
|
638
|
-
})),
|
|
635
|
+
})), B += H * E;
|
|
639
636
|
}), t.createElement("div", {
|
|
640
637
|
className: `fibo-progress-ring relative inline-flex items-center justify-center ${k || ""}`,
|
|
641
638
|
style: { width: m, height: m, ...w },
|
|
@@ -733,7 +730,7 @@ const Fe = C(ce), he = t.memo((n) => {
|
|
|
733
730
|
style: w,
|
|
734
731
|
...N
|
|
735
732
|
}, m.map((x, l) => {
|
|
736
|
-
const b = l < g, E = l === g, I = l === m.length - 1,
|
|
733
|
+
const b = l < g, E = l === g, I = l === m.length - 1, B = b || E ? v : "#E5E7EB", W = b ? t.createElement("span", {}, "✓") : l + 1;
|
|
737
734
|
return t.createElement("div", {
|
|
738
735
|
key: l,
|
|
739
736
|
className: "relative flex items-start gap-4 pb-8 last:pb-0"
|
|
@@ -747,9 +744,9 @@ const Fe = C(ce), he = t.memo((n) => {
|
|
|
747
744
|
key: "dot",
|
|
748
745
|
className: "relative z-10 w-10 h-10 rounded-full flex items-center justify-center border-2 bg-white transition-all duration-300 shrink-0 text-sm font-bold shadow-sm",
|
|
749
746
|
style: {
|
|
750
|
-
borderColor:
|
|
751
|
-
color: b ? "#fff" : E ?
|
|
752
|
-
backgroundColor: b ?
|
|
747
|
+
borderColor: B,
|
|
748
|
+
color: b ? "#fff" : E ? B : "#9CA3AF",
|
|
749
|
+
backgroundColor: b ? B : "#fff"
|
|
753
750
|
}
|
|
754
751
|
}, W),
|
|
755
752
|
t.createElement("div", { key: "content", className: "pt-2" }, [
|
|
@@ -981,7 +978,7 @@ class de extends F {
|
|
|
981
978
|
return t.createElement(he, e);
|
|
982
979
|
}
|
|
983
980
|
}
|
|
984
|
-
const
|
|
981
|
+
const Ce = C(de), ue = t.memo((n) => {
|
|
985
982
|
const {
|
|
986
983
|
source: s,
|
|
987
984
|
className: e,
|
|
@@ -1016,16 +1013,16 @@ class me extends F {
|
|
|
1016
1013
|
return t.createElement(ue, i);
|
|
1017
1014
|
}
|
|
1018
1015
|
}
|
|
1019
|
-
const
|
|
1016
|
+
const Fe = C(me);
|
|
1020
1017
|
export {
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1018
|
+
ye as A,
|
|
1019
|
+
_e as B,
|
|
1020
|
+
ke as I,
|
|
1021
|
+
ve as L,
|
|
1022
|
+
Ce as P,
|
|
1023
|
+
Ee as S,
|
|
1024
|
+
we as a,
|
|
1025
|
+
Ne as b,
|
|
1026
|
+
Fe as c,
|
|
1030
1027
|
M as d
|
|
1031
1028
|
};
|