fiboui 1.0.0 → 1.0.2
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 +144 -73
- package/dist/content/Alert/index.d.ts +29 -29
- package/dist/content/Avatar/index.d.ts +29 -29
- package/dist/content/Badge/index.d.ts +29 -29
- package/dist/content/Image/index.d.ts +29 -29
- package/dist/content/Label/index.d.ts +29 -29
- package/dist/content/Progress/index.d.ts +29 -29
- package/dist/content/Skeleton/index.d.ts +29 -29
- package/dist/content/Spinner/index.d.ts +29 -29
- package/dist/content/Text/index.d.ts +29 -29
- package/dist/core/StateWrapper.d.ts +3 -0
- package/dist/core/builder.d.ts +10 -2
- package/dist/core/effects.d.ts +4 -3
- package/dist/core/hooks.d.ts +5 -0
- package/dist/core/index.d.ts +1 -0
- package/dist/core/state.d.ts +76 -27
- package/dist/effects-D16XdB_d.mjs +10 -0
- package/dist/index.esm.js +1181 -1026
- package/dist/index.umd.js +4 -4
- package/dist/interactive/Button/index.d.ts +29 -29
- package/dist/interactive/Checkbox/index.d.ts +29 -29
- package/dist/interactive/Combobox/index.d.ts +29 -29
- package/dist/interactive/RadioGroup/index.d.ts +29 -29
- package/dist/interactive/Select/index.d.ts +29 -29
- package/dist/interactive/Switch/index.d.ts +29 -29
- package/dist/interactive/TextField/index.d.ts +32 -31
- package/dist/interactive/Textarea/index.d.ts +29 -29
- package/dist/layout/Center/index.d.ts +29 -29
- package/dist/layout/Column/index.d.ts +29 -29
- package/dist/layout/Container/index.d.ts +29 -29
- package/dist/layout/DashboardLayout/index.d.ts +29 -29
- package/dist/layout/Header/index.d.ts +29 -29
- package/dist/layout/Line/index.d.ts +29 -29
- package/dist/layout/Row/index.d.ts +29 -29
- package/dist/layout/Scaffold/index.d.ts +29 -29
- package/dist/layout/ScrollView/index.d.ts +29 -29
- package/dist/layout/Sidebar/index.d.ts +29 -29
- package/dist/layout/Spacer/index.d.ts +29 -29
- package/dist/structure/Banner/index.d.ts +29 -29
- package/dist/structure/Box/index.d.ts +29 -29
- package/dist/structure/Card/index.d.ts +29 -29
- package/dist/structure/Collapse/index.d.ts +29 -29
- package/dist/structure/Grid/index.d.ts +58 -58
- package/dist/structure/List/index.d.ts +29 -29
- package/dist/structure/Table/index.d.ts +29 -29
- package/dist/structure/Tags/index.d.ts +29 -29
- package/dist/structure/cards/AssetCard/index.d.ts +29 -29
- package/dist/structure/cards/CollectionCard/index.d.ts +29 -29
- package/dist/structure/cards/ContentCard/index.d.ts +29 -29
- package/dist/structure/cards/ProfileCard/index.d.ts +29 -29
- package/dist/structure/cards/variants/index.d.ts +116 -116
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/core/StateWrapper.tsx +28 -2
- package/src/core/builder.ts +53 -11
- package/src/core/effects.ts +3 -3
- package/src/core/hooks.ts +48 -0
- package/src/core/index.ts +1 -0
- package/src/core/state.ts +203 -139
- package/src/demo.tsx +5 -0
- package/src/interactive/Button/index.ts +2 -1
- package/src/interactive/TextField/index.ts +29 -6
- package/src/structure/Box/index.ts +3 -2
- package/dist/effects-Co9C_Dyx.mjs +0 -9
- package/dist/examples/ScaffoldExamples.d.ts +0 -3
- package/dist/examples/StateExamples.d.ts +0 -5
- package/src/examples/ScaffoldExamples.tsx +0 -299
- package/src/examples/StateExamples.tsx +0 -149
package/dist/index.esm.js
CHANGED
|
@@ -1,57 +1,291 @@
|
|
|
1
|
-
var
|
|
2
|
-
var oe = (i, t, e) => t in i ?
|
|
3
|
-
var
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
1
|
+
var ne = Object.defineProperty;
|
|
2
|
+
var oe = (i, t, e) => t in i ? ne(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
|
+
var n = (i, t, e) => oe(i, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import s, { createContext as X, useState as $, useRef as U, useEffect as M, useContext as Y } from "react";
|
|
5
|
+
import { jsx as S, Fragment as J, jsxs as O } from "react/jsx-runtime";
|
|
6
|
+
let A = null;
|
|
7
|
+
class le {
|
|
8
|
+
constructor(t) {
|
|
9
|
+
n(this, "dependencies", /* @__PURE__ */ new Set());
|
|
10
|
+
n(this, "_onDispose");
|
|
11
|
+
this.fn = t, this.run();
|
|
12
|
+
}
|
|
13
|
+
run() {
|
|
14
|
+
const t = A;
|
|
15
|
+
A = this;
|
|
16
|
+
try {
|
|
17
|
+
this.cleanup(), this.fn();
|
|
18
|
+
} finally {
|
|
19
|
+
A = t;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
track(t) {
|
|
23
|
+
this.dependencies.add(t), t.subscribeEffect(this);
|
|
24
|
+
}
|
|
25
|
+
trigger() {
|
|
26
|
+
this.run();
|
|
27
|
+
}
|
|
28
|
+
cleanup() {
|
|
29
|
+
this.dependencies.forEach((t) => t.unsubscribeEffect(this)), this.dependencies.clear();
|
|
30
|
+
}
|
|
31
|
+
dispose() {
|
|
32
|
+
var t;
|
|
33
|
+
this.cleanup(), (t = this._onDispose) == null || t.call(this);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
class ae {
|
|
37
|
+
constructor(t) {
|
|
38
|
+
n(this, "dependencies", /* @__PURE__ */ new Set());
|
|
39
|
+
this._onInvalidate = t;
|
|
40
|
+
}
|
|
41
|
+
execute(t) {
|
|
42
|
+
const e = A;
|
|
43
|
+
A = this;
|
|
44
|
+
try {
|
|
45
|
+
return this.cleanup(), t();
|
|
46
|
+
} finally {
|
|
47
|
+
A = e;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
// Called by Signals when they are accessed
|
|
51
|
+
track(t) {
|
|
52
|
+
this.dependencies.add(t), t.subscribeEffect(this);
|
|
53
|
+
}
|
|
54
|
+
// Called by Signals when they change
|
|
55
|
+
trigger() {
|
|
56
|
+
this._onInvalidate();
|
|
57
|
+
}
|
|
58
|
+
cleanup() {
|
|
59
|
+
this.dependencies.forEach((t) => t.unsubscribeEffect(this)), this.dependencies.clear();
|
|
60
|
+
}
|
|
61
|
+
dispose() {
|
|
62
|
+
this.cleanup();
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
class Z {
|
|
66
|
+
constructor(t) {
|
|
67
|
+
n(this, "listeners", /* @__PURE__ */ new Set());
|
|
68
|
+
n(this, "effects", /* @__PURE__ */ new Set());
|
|
69
|
+
this._value = t;
|
|
70
|
+
}
|
|
71
|
+
get value() {
|
|
72
|
+
return A && A.track(this), this._value;
|
|
73
|
+
}
|
|
74
|
+
set value(t) {
|
|
75
|
+
this._value !== t && (this._value = t, this.notify());
|
|
76
|
+
}
|
|
77
|
+
subscribe(t) {
|
|
78
|
+
return this.listeners.add(t), () => this.listeners.delete(t);
|
|
79
|
+
}
|
|
80
|
+
subscribeEffect(t) {
|
|
81
|
+
this.effects.add(t);
|
|
82
|
+
}
|
|
83
|
+
unsubscribeEffect(t) {
|
|
84
|
+
this.effects.delete(t);
|
|
85
|
+
}
|
|
86
|
+
notify() {
|
|
87
|
+
const t = Array.from(this.effects), e = Array.from(this.listeners);
|
|
88
|
+
t.forEach((r) => r.trigger()), e.forEach((r) => r(this._value));
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
function cs(i) {
|
|
92
|
+
return new Z(i);
|
|
93
|
+
}
|
|
94
|
+
class ce {
|
|
95
|
+
constructor(t) {
|
|
96
|
+
n(this, "listeners", /* @__PURE__ */ new Set());
|
|
97
|
+
n(this, "effects", /* @__PURE__ */ new Set());
|
|
98
|
+
n(this, "_value");
|
|
99
|
+
n(this, "_dirty", !0);
|
|
100
|
+
n(this, "internalEffect");
|
|
101
|
+
this.fn = t, this.internalEffect = new le(() => {
|
|
102
|
+
this._dirty || (this._dirty = !0, this.notify());
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
get value() {
|
|
106
|
+
if (A && A.track(this), this._dirty) {
|
|
107
|
+
const t = A;
|
|
108
|
+
A = this.internalEffect;
|
|
109
|
+
try {
|
|
110
|
+
this.internalEffect.cleanup(), this._value = this.fn(), this._dirty = !1;
|
|
111
|
+
} finally {
|
|
112
|
+
A = t;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
return this._value;
|
|
116
|
+
}
|
|
117
|
+
subscribe(t) {
|
|
118
|
+
return this.listeners.add(t), () => this.listeners.delete(t);
|
|
119
|
+
}
|
|
120
|
+
subscribeEffect(t) {
|
|
121
|
+
this.effects.add(t);
|
|
122
|
+
}
|
|
123
|
+
unsubscribeEffect(t) {
|
|
124
|
+
this.effects.delete(t);
|
|
125
|
+
}
|
|
126
|
+
notify() {
|
|
127
|
+
const t = Array.from(this.effects), e = Array.from(this.listeners);
|
|
128
|
+
t.forEach((r) => r.trigger()), e.forEach((r) => r(this._value));
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
function hs(i) {
|
|
132
|
+
return new ce(i);
|
|
133
|
+
}
|
|
134
|
+
class he {
|
|
135
|
+
constructor(t) {
|
|
136
|
+
n(this, "listeners", /* @__PURE__ */ new Set());
|
|
137
|
+
n(this, "effects", /* @__PURE__ */ new Set());
|
|
138
|
+
this._value = t;
|
|
139
|
+
}
|
|
140
|
+
get() {
|
|
141
|
+
return A && A.track(this), this._value;
|
|
142
|
+
}
|
|
143
|
+
set(t) {
|
|
144
|
+
this._value !== t && (this._value = t, this.notify());
|
|
145
|
+
}
|
|
146
|
+
subscribe(t) {
|
|
147
|
+
return this.listeners.add(t), () => this.listeners.delete(t);
|
|
148
|
+
}
|
|
149
|
+
subscribeEffect(t) {
|
|
150
|
+
this.effects.add(t);
|
|
151
|
+
}
|
|
152
|
+
unsubscribeEffect(t) {
|
|
153
|
+
this.effects.delete(t);
|
|
154
|
+
}
|
|
155
|
+
notify() {
|
|
156
|
+
Array.from(this.effects).forEach((t) => t.trigger()), Array.from(this.listeners).forEach((t) => t(this._value));
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
function ds(i) {
|
|
160
|
+
return new he(i);
|
|
161
|
+
}
|
|
162
|
+
class de {
|
|
163
|
+
constructor(t) {
|
|
164
|
+
n(this, "listeners", /* @__PURE__ */ new Set());
|
|
165
|
+
n(this, "effects", /* @__PURE__ */ new Set());
|
|
166
|
+
this.state = t;
|
|
167
|
+
}
|
|
168
|
+
getState() {
|
|
169
|
+
return A && A.track(this), this.state;
|
|
170
|
+
}
|
|
171
|
+
setState(t) {
|
|
172
|
+
const e = typeof t == "function" ? t(this.state) : t, r = { ...this.state, ...e };
|
|
173
|
+
this.state !== r && (this.state = r, this.notify());
|
|
174
|
+
}
|
|
175
|
+
subscribe(t) {
|
|
176
|
+
return this.listeners.add(t), () => this.listeners.delete(t);
|
|
177
|
+
}
|
|
178
|
+
subscribeEffect(t) {
|
|
179
|
+
this.effects.add(t);
|
|
180
|
+
}
|
|
181
|
+
unsubscribeEffect(t) {
|
|
182
|
+
this.effects.delete(t);
|
|
183
|
+
}
|
|
184
|
+
notify() {
|
|
185
|
+
Array.from(this.effects).forEach((t) => t.trigger()), Array.from(this.listeners).forEach((t) => t(this.state));
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
function us(i) {
|
|
189
|
+
return new de(i);
|
|
190
|
+
}
|
|
191
|
+
function ue({ children: i }) {
|
|
192
|
+
const [, t] = $({}), e = U(null);
|
|
193
|
+
e.current || (e.current = new ae(() => {
|
|
194
|
+
t({});
|
|
195
|
+
})), M(() => () => {
|
|
196
|
+
var o;
|
|
197
|
+
(o = e.current) == null || o.dispose();
|
|
198
|
+
}, []);
|
|
199
|
+
let r;
|
|
200
|
+
try {
|
|
201
|
+
r = e.current.execute(i);
|
|
202
|
+
} catch (o) {
|
|
203
|
+
console.error("Observer render error", o), r = null;
|
|
204
|
+
}
|
|
205
|
+
return /* @__PURE__ */ S(J, { children: r });
|
|
206
|
+
}
|
|
207
|
+
const ee = X(/* @__PURE__ */ new Map());
|
|
208
|
+
function ms() {
|
|
209
|
+
return Y(ee);
|
|
210
|
+
}
|
|
211
|
+
function ps({ stateMap: i, children: t }) {
|
|
212
|
+
const [e] = $(() => new Map(i));
|
|
213
|
+
return /* @__PURE__ */ S(ee.Provider, { value: e, children: t });
|
|
214
|
+
}
|
|
215
|
+
function fs({ observables: i, children: t }) {
|
|
216
|
+
const [, e] = $({});
|
|
217
|
+
return M(() => {
|
|
218
|
+
const r = Array.from(i).map(
|
|
219
|
+
(o) => o.subscribe(() => e({}))
|
|
220
|
+
);
|
|
221
|
+
return () => r.forEach((o) => o());
|
|
222
|
+
}, [i]), /* @__PURE__ */ S(J, { children: t });
|
|
223
|
+
}
|
|
224
|
+
function gs({ signals: i, children: t }) {
|
|
225
|
+
const [, e] = $({});
|
|
226
|
+
return M(() => {
|
|
227
|
+
const r = Array.from(i).map(
|
|
228
|
+
(o) => o.subscribe(() => e({}))
|
|
229
|
+
);
|
|
230
|
+
return () => r.forEach((o) => o());
|
|
231
|
+
}, [i]), /* @__PURE__ */ S(J, { children: t });
|
|
232
|
+
}
|
|
233
|
+
const te = X(/* @__PURE__ */ new Map());
|
|
234
|
+
function bs(i) {
|
|
235
|
+
return Y(te).get(i);
|
|
236
|
+
}
|
|
237
|
+
function me({ providers: i, children: t }) {
|
|
238
|
+
return /* @__PURE__ */ S(te.Provider, { value: i, children: t });
|
|
239
|
+
}
|
|
240
|
+
function se(i) {
|
|
7
241
|
var t, e, r = "";
|
|
8
242
|
if (typeof i == "string" || typeof i == "number") r += i;
|
|
9
243
|
else if (typeof i == "object") if (Array.isArray(i)) {
|
|
10
|
-
var
|
|
11
|
-
for (t = 0; t <
|
|
244
|
+
var o = i.length;
|
|
245
|
+
for (t = 0; t < o; t++) i[t] && (e = se(i[t])) && (r && (r += " "), r += e);
|
|
12
246
|
} else for (e in i) i[e] && (r && (r += " "), r += e);
|
|
13
247
|
return r;
|
|
14
248
|
}
|
|
15
|
-
function
|
|
16
|
-
for (var i, t, e = 0, r = "",
|
|
249
|
+
function pe() {
|
|
250
|
+
for (var i, t, e = 0, r = "", o = arguments.length; e < o; e++) (i = arguments[e]) && (t = se(i)) && (r && (r += " "), r += t);
|
|
17
251
|
return r;
|
|
18
252
|
}
|
|
19
|
-
function
|
|
253
|
+
function fe(i) {
|
|
20
254
|
const t = i.match(/oklch\(\s*([\d.]+)\s+([\d.]+)\s+([\d.]+)\s*\)/);
|
|
21
255
|
if (!t)
|
|
22
256
|
return i;
|
|
23
|
-
const [, e, r,
|
|
257
|
+
const [, e, r, o] = t, l = parseFloat(e), a = parseFloat(r), c = parseFloat(o), d = a * Math.cos(c * Math.PI / 180), p = a * Math.sin(c * Math.PI / 180), u = l + 0.3963377774 * d + 0.2158037573 * p, m = l - 0.1055613458 * d - 0.0638541728 * p, h = l - 0.0894841775 * d - 1.291485548 * p, g = u * u * u, N = m * m * m, v = h * h * h, B = 4.0767416621 * g - 3.3077115913 * N + 0.2309699292 * v, I = -1.2684380046 * g + 2.6097574011 * N - 0.3413193965 * v, k = -0.0041960863 * g - 0.7034186147 * N + 1.707614701 * v, C = (W) => W >= 31308e-7 ? 1.055 * W ** (1 / 2.4) - 0.055 : 12.92 * W, b = Math.max(0, Math.min(1, C(B))), f = Math.max(0, Math.min(1, C(I))), F = Math.max(0, Math.min(1, C(k))), j = (W) => {
|
|
24
258
|
var z;
|
|
25
|
-
const _ = (z = Math.round(
|
|
259
|
+
const _ = (z = Math.round(W * 255).toString(16)) == null ? void 0 : z.toUpperCase();
|
|
26
260
|
return _.length === 1 ? `0${_}` : _;
|
|
27
261
|
};
|
|
28
|
-
return `#${
|
|
262
|
+
return `#${j(b)}${j(f)}${j(F)}`;
|
|
29
263
|
}
|
|
30
|
-
function
|
|
264
|
+
function ge(i) {
|
|
31
265
|
const t = {}, e = {}, r = i.split(`
|
|
32
266
|
`);
|
|
33
|
-
for (const
|
|
34
|
-
const l =
|
|
267
|
+
for (const o of r) {
|
|
268
|
+
const l = o.trim();
|
|
35
269
|
if (!l || l.startsWith("//") || l.startsWith("*") || l === "@theme {" || l === "}")
|
|
36
270
|
continue;
|
|
37
271
|
const a = l.match(/^--color-([a-z0-9\-]+): (oklch\([^)]+\));?$/), c = l.match(/^--color-([a-z0-9\-]+): (#[a-fA-F0-9]{3,6});?$/);
|
|
38
272
|
if (a) {
|
|
39
|
-
const [,
|
|
40
|
-
t[u.toLowerCase()] = `bg-${
|
|
273
|
+
const [, d, p] = a, u = fe(p);
|
|
274
|
+
t[u.toLowerCase()] = `bg-${d}`, e[u.toLowerCase()] = `text-${d}`;
|
|
41
275
|
} else if (c) {
|
|
42
|
-
const [,
|
|
43
|
-
t[p.toLowerCase()] = `bg-${
|
|
276
|
+
const [, d, p] = c;
|
|
277
|
+
t[p.toLowerCase()] = `bg-${d}`, e[p.toLowerCase()] = `text-${d}`;
|
|
44
278
|
}
|
|
45
279
|
}
|
|
46
280
|
return { background: t, text: e };
|
|
47
281
|
}
|
|
48
|
-
const
|
|
282
|
+
const be = (i) => {
|
|
49
283
|
if (i !== void 0)
|
|
50
284
|
return typeof i == "number" ? `${i}px` : i.toString();
|
|
51
|
-
},
|
|
52
|
-
const e =
|
|
285
|
+
}, H = (i, t) => {
|
|
286
|
+
const e = be(t);
|
|
53
287
|
return e === void 0 ? "" : `${i}-[${e}]`;
|
|
54
|
-
},
|
|
288
|
+
}, xe = `
|
|
55
289
|
--color-red-50: oklch(0.971 0.013 17.38);
|
|
56
290
|
--color-red-100: oklch(0.936 0.032 17.717);
|
|
57
291
|
--color-red-200: oklch(0.885 0.062 18.334);
|
|
@@ -296,7 +530,7 @@ const ce = (i) => {
|
|
|
296
530
|
--color-stone-950: oklch(0.147 0.004 49.25);
|
|
297
531
|
--color-black: #000;
|
|
298
532
|
--color-white: #fff;
|
|
299
|
-
`,
|
|
533
|
+
`, ye = ge(xe), re = {
|
|
300
534
|
borderRadius: {
|
|
301
535
|
0: "rounded-none",
|
|
302
536
|
"0px": "rounded-none",
|
|
@@ -393,7 +627,7 @@ const ce = (i) => {
|
|
|
393
627
|
fixed: "fixed",
|
|
394
628
|
sticky: "sticky"
|
|
395
629
|
}
|
|
396
|
-
},
|
|
630
|
+
}, _e = (i, t) => ({
|
|
397
631
|
// 背景色
|
|
398
632
|
backgroundColor: (e) => e.backgroundColor ? [i.background[e.backgroundColor.toLowerCase()] || `bg-[${e.backgroundColor}]`] : [],
|
|
399
633
|
// 文字色
|
|
@@ -402,14 +636,14 @@ const ce = (i) => {
|
|
|
402
636
|
borderRadius: (e) => {
|
|
403
637
|
if (!e.borderRadius)
|
|
404
638
|
return [];
|
|
405
|
-
const r =
|
|
639
|
+
const r = re.borderRadius[e.borderRadius] || H("rounded", e.borderRadius);
|
|
406
640
|
return r ? [r] : [];
|
|
407
641
|
},
|
|
408
642
|
// 外边距
|
|
409
643
|
margin: (e) => {
|
|
410
644
|
const r = [];
|
|
411
645
|
if (e.margin !== void 0) {
|
|
412
|
-
const l =
|
|
646
|
+
const l = H("m", e.margin);
|
|
413
647
|
return l ? [l] : [];
|
|
414
648
|
}
|
|
415
649
|
return [
|
|
@@ -421,7 +655,7 @@ const ce = (i) => {
|
|
|
421
655
|
{ prop: e.marginY, dir: "my" }
|
|
422
656
|
].forEach(({ prop: l, dir: a }) => {
|
|
423
657
|
if (l !== void 0) {
|
|
424
|
-
const c =
|
|
658
|
+
const c = H(a, l);
|
|
425
659
|
c && r.push(c);
|
|
426
660
|
}
|
|
427
661
|
}), r;
|
|
@@ -430,7 +664,7 @@ const ce = (i) => {
|
|
|
430
664
|
padding: (e) => {
|
|
431
665
|
const r = [];
|
|
432
666
|
if (e.padding !== void 0) {
|
|
433
|
-
const l =
|
|
667
|
+
const l = H("p", e.padding);
|
|
434
668
|
return l ? [l] : [];
|
|
435
669
|
}
|
|
436
670
|
return [
|
|
@@ -442,7 +676,7 @@ const ce = (i) => {
|
|
|
442
676
|
{ prop: e.paddingY, dir: "py" }
|
|
443
677
|
].forEach(({ prop: l, dir: a }) => {
|
|
444
678
|
if (l !== void 0) {
|
|
445
|
-
const c =
|
|
679
|
+
const c = H(a, l);
|
|
446
680
|
c && r.push(c);
|
|
447
681
|
}
|
|
448
682
|
}), r;
|
|
@@ -451,28 +685,28 @@ const ce = (i) => {
|
|
|
451
685
|
font: (e) => {
|
|
452
686
|
const r = [];
|
|
453
687
|
if (e.fontSize && r.push(t.fontSize[e.fontSize.toString()] || `text-[${e.fontSize}]`), e.fontWeight) {
|
|
454
|
-
const
|
|
455
|
-
|
|
688
|
+
const o = t.fontWeight[e.fontWeight.toString()];
|
|
689
|
+
o && r.push(o);
|
|
456
690
|
}
|
|
457
691
|
if (e.textAlign) {
|
|
458
|
-
const
|
|
459
|
-
|
|
692
|
+
const o = t.textAlign[e.textAlign];
|
|
693
|
+
o && r.push(o);
|
|
460
694
|
}
|
|
461
695
|
if (e.fontFamily) {
|
|
462
|
-
const
|
|
463
|
-
|
|
696
|
+
const o = t.fontFamily[e.fontFamily];
|
|
697
|
+
o && r.push(o);
|
|
464
698
|
}
|
|
465
699
|
if (e.textDecoration) {
|
|
466
|
-
const
|
|
467
|
-
|
|
700
|
+
const o = t.textDecoration[e.textDecoration];
|
|
701
|
+
o && r.push(o);
|
|
468
702
|
}
|
|
469
703
|
if (e.fontVariantNumeric) {
|
|
470
|
-
const
|
|
471
|
-
|
|
704
|
+
const o = t.fontVariantNumeric[e.fontVariantNumeric];
|
|
705
|
+
o && r.push(o);
|
|
472
706
|
}
|
|
473
707
|
if (e.fontStyle) {
|
|
474
|
-
const
|
|
475
|
-
|
|
708
|
+
const o = t.fontStyle[e.fontStyle];
|
|
709
|
+
o && r.push(o);
|
|
476
710
|
}
|
|
477
711
|
return r;
|
|
478
712
|
},
|
|
@@ -480,12 +714,12 @@ const ce = (i) => {
|
|
|
480
714
|
size: (e) => {
|
|
481
715
|
const r = [];
|
|
482
716
|
if (e.width) {
|
|
483
|
-
const
|
|
484
|
-
r.push(`w-[${
|
|
717
|
+
const o = e.width.toString();
|
|
718
|
+
r.push(`w-[${o}]`);
|
|
485
719
|
}
|
|
486
720
|
if (e.height) {
|
|
487
|
-
const
|
|
488
|
-
r.push(`h-[${
|
|
721
|
+
const o = e.height.toString();
|
|
722
|
+
r.push(`h-[${o}]`);
|
|
489
723
|
}
|
|
490
724
|
return r;
|
|
491
725
|
},
|
|
@@ -493,8 +727,8 @@ const ce = (i) => {
|
|
|
493
727
|
layout: (e) => {
|
|
494
728
|
const r = [];
|
|
495
729
|
if (e.display) {
|
|
496
|
-
const
|
|
497
|
-
|
|
730
|
+
const o = t.display[e.display];
|
|
731
|
+
o && r.push(o);
|
|
498
732
|
}
|
|
499
733
|
if (e.flexDirection) {
|
|
500
734
|
const l = {
|
|
@@ -527,8 +761,8 @@ const ce = (i) => {
|
|
|
527
761
|
l && r.push(l);
|
|
528
762
|
}
|
|
529
763
|
if (e.gap) {
|
|
530
|
-
const
|
|
531
|
-
|
|
764
|
+
const o = H("gap", e.gap);
|
|
765
|
+
o && r.push(o);
|
|
532
766
|
}
|
|
533
767
|
return r;
|
|
534
768
|
},
|
|
@@ -549,7 +783,7 @@ const ce = (i) => {
|
|
|
549
783
|
},
|
|
550
784
|
// 自定义类名
|
|
551
785
|
className: (e) => e.className ? [e.className] : []
|
|
552
|
-
}),
|
|
786
|
+
}), ke = {
|
|
553
787
|
backgroundColor: "backgroundColor",
|
|
554
788
|
color: "color",
|
|
555
789
|
borderRadius: "borderRadius",
|
|
@@ -583,36 +817,40 @@ const ce = (i) => {
|
|
|
583
817
|
position: "position",
|
|
584
818
|
opacity: "opacity",
|
|
585
819
|
className: "className"
|
|
586
|
-
},
|
|
587
|
-
const e = (t == null ? void 0 : t.colorMaps) ||
|
|
820
|
+
}, ve = (i, t) => {
|
|
821
|
+
const e = (t == null ? void 0 : t.colorMaps) || ye, r = (t == null ? void 0 : t.styleMaps) || re, o = _e(e, r), l = [], a = /* @__PURE__ */ new Set();
|
|
588
822
|
return Object.keys(i).forEach((c) => {
|
|
589
|
-
const
|
|
590
|
-
if (
|
|
591
|
-
const p =
|
|
823
|
+
const d = ke[c];
|
|
824
|
+
if (d && !a.has(d)) {
|
|
825
|
+
const p = o[d];
|
|
592
826
|
if (p) {
|
|
593
827
|
const u = p(i);
|
|
594
|
-
l.push(...u), a.add(
|
|
828
|
+
l.push(...u), a.add(d);
|
|
595
829
|
}
|
|
596
830
|
}
|
|
597
831
|
}), l.filter(Boolean).join(" ");
|
|
598
832
|
};
|
|
599
|
-
class
|
|
833
|
+
class x {
|
|
600
834
|
constructor() {
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
835
|
+
n(this, "_props", {});
|
|
836
|
+
n(this, "_style", {});
|
|
837
|
+
n(this, "_cssStyles", {});
|
|
838
|
+
n(this, "_classNames", []);
|
|
839
|
+
n(this, "_children", []);
|
|
840
|
+
n(this, "_responsive");
|
|
841
|
+
n(this, "_state", /* @__PURE__ */ new Map());
|
|
842
|
+
n(this, "_providers", /* @__PURE__ */ new Map());
|
|
843
|
+
n(this, "_observers", /* @__PURE__ */ new Set());
|
|
844
|
+
n(this, "_signals", /* @__PURE__ */ new Set());
|
|
845
|
+
n(this, "_isObserver", !1);
|
|
846
|
+
n(this, "_childFunction");
|
|
612
847
|
}
|
|
613
848
|
id(t) {
|
|
614
849
|
return this._props.id = t, this;
|
|
615
850
|
}
|
|
851
|
+
key(t) {
|
|
852
|
+
return this._props.key = t, this;
|
|
853
|
+
}
|
|
616
854
|
paddingHorizontal(t) {
|
|
617
855
|
return typeof t == "number" ? this._classNames.push(`px-[${t}px]`) : this._classNames.push(`px-${t}`), this;
|
|
618
856
|
}
|
|
@@ -680,41 +918,55 @@ class b {
|
|
|
680
918
|
return this._props = { ...this._props, ...t }, this;
|
|
681
919
|
}
|
|
682
920
|
children(t) {
|
|
683
|
-
|
|
684
|
-
|
|
921
|
+
if (typeof t == "function")
|
|
922
|
+
this._childFunction = t, this._children = [];
|
|
923
|
+
else {
|
|
924
|
+
const e = Array.isArray(t) ? t : [t];
|
|
925
|
+
this._children = e.map((r) => r && typeof r == "object" && "build" in r && typeof r.build == "function" ? r.build() : r), this._childFunction = void 0;
|
|
926
|
+
}
|
|
927
|
+
return this;
|
|
685
928
|
}
|
|
686
929
|
getClassName() {
|
|
687
930
|
if (Object.keys(this._cssStyles).length > 0) {
|
|
688
|
-
const t =
|
|
931
|
+
const t = ve(this._cssStyles);
|
|
689
932
|
t && this._classNames.push(t);
|
|
690
933
|
}
|
|
691
|
-
return
|
|
934
|
+
return pe(this._classNames);
|
|
692
935
|
}
|
|
693
936
|
getStyle() {
|
|
694
937
|
let t = { ...this._style, ...this._cssStyles };
|
|
695
938
|
return this._responsive && this._responsive.mobile && (t = { ...t, ...this._responsive.mobile }), t;
|
|
696
939
|
}
|
|
697
940
|
processChildren() {
|
|
941
|
+
if (this._childFunction) {
|
|
942
|
+
const t = this._childFunction();
|
|
943
|
+
return Array.isArray(t) ? t : [t];
|
|
944
|
+
}
|
|
698
945
|
return this._children;
|
|
699
946
|
}
|
|
947
|
+
getChildFunction() {
|
|
948
|
+
return this._childFunction;
|
|
949
|
+
}
|
|
700
950
|
}
|
|
701
|
-
function
|
|
951
|
+
function y(i) {
|
|
702
952
|
return (...t) => {
|
|
703
953
|
const e = new i(...t);
|
|
704
954
|
return new Proxy(e, {
|
|
705
|
-
get(r,
|
|
706
|
-
return
|
|
955
|
+
get(r, o, l) {
|
|
956
|
+
return o === "build" ? () => r._isObserver ? s.createElement(ue, {
|
|
957
|
+
children: () => r.build()
|
|
958
|
+
}) : r.build() : Reflect.has(r, o) ? Reflect.get(r, o, l) : (a) => (r.css({ [o]: a }), l);
|
|
707
959
|
}
|
|
708
960
|
});
|
|
709
961
|
};
|
|
710
962
|
}
|
|
711
|
-
function
|
|
963
|
+
function xs(i) {
|
|
712
964
|
return (Array.isArray(i) ? i : [i]).map((e) => e && typeof e == "object" && "build" in e ? e.build() : e);
|
|
713
965
|
}
|
|
714
|
-
function
|
|
966
|
+
function ys(...i) {
|
|
715
967
|
return i.reduce((t, e) => e ? { ...t, ...e } : t, {});
|
|
716
968
|
}
|
|
717
|
-
function
|
|
969
|
+
function _s(i, t) {
|
|
718
970
|
if (!t) return i;
|
|
719
971
|
let e = { ...i };
|
|
720
972
|
if (typeof window < "u") {
|
|
@@ -723,148 +975,28 @@ function as(i, t) {
|
|
|
723
975
|
}
|
|
724
976
|
return e;
|
|
725
977
|
}
|
|
726
|
-
function
|
|
978
|
+
function ks(i, t = "px") {
|
|
727
979
|
return typeof i == "number" ? `${i}${t}` : i;
|
|
728
980
|
}
|
|
729
|
-
class fe {
|
|
730
|
-
constructor(t) {
|
|
731
|
-
o(this, "_value");
|
|
732
|
-
o(this, "subscribers", /* @__PURE__ */ new Set());
|
|
733
|
-
this._value = t;
|
|
734
|
-
}
|
|
735
|
-
get value() {
|
|
736
|
-
return this._value;
|
|
737
|
-
}
|
|
738
|
-
set value(t) {
|
|
739
|
-
this._value !== t && (this._value = t, this.notify());
|
|
740
|
-
}
|
|
741
|
-
subscribe(t) {
|
|
742
|
-
return this.subscribers.add(t), () => this.subscribers.delete(t);
|
|
743
|
-
}
|
|
744
|
-
notify() {
|
|
745
|
-
this.subscribers.forEach((t) => t(this._value));
|
|
746
|
-
}
|
|
747
|
-
}
|
|
748
|
-
class ge {
|
|
749
|
-
constructor(t) {
|
|
750
|
-
o(this, "_value");
|
|
751
|
-
o(this, "subscribers", /* @__PURE__ */ new Set());
|
|
752
|
-
o(this, "dependencies", /* @__PURE__ */ new Set());
|
|
753
|
-
o(this, "unsubscribers", []);
|
|
754
|
-
this.compute = t, this._value = this.recompute();
|
|
755
|
-
}
|
|
756
|
-
get value() {
|
|
757
|
-
return this._value;
|
|
758
|
-
}
|
|
759
|
-
subscribe(t) {
|
|
760
|
-
return this.subscribers.add(t), () => this.subscribers.delete(t);
|
|
761
|
-
}
|
|
762
|
-
recompute() {
|
|
763
|
-
this.unsubscribers.forEach((e) => e()), this.unsubscribers = [], this.dependencies.clear();
|
|
764
|
-
const t = this.compute();
|
|
765
|
-
return this._value !== t && (this._value = t, this.notify()), t;
|
|
766
|
-
}
|
|
767
|
-
notify() {
|
|
768
|
-
this.subscribers.forEach((t) => t(this._value));
|
|
769
|
-
}
|
|
770
|
-
}
|
|
771
|
-
function hs(i) {
|
|
772
|
-
return new fe(i);
|
|
773
|
-
}
|
|
774
|
-
function ds(i) {
|
|
775
|
-
return new ge(i);
|
|
776
|
-
}
|
|
777
|
-
function us(i) {
|
|
778
|
-
let t;
|
|
779
|
-
return (() => {
|
|
780
|
-
typeof t == "function" && t(), t = i();
|
|
781
|
-
})(), () => {
|
|
782
|
-
typeof t == "function" && t();
|
|
783
|
-
};
|
|
784
|
-
}
|
|
785
|
-
class be {
|
|
786
|
-
constructor(t) {
|
|
787
|
-
o(this, "_value");
|
|
788
|
-
o(this, "listeners", /* @__PURE__ */ new Set());
|
|
789
|
-
this._value = t;
|
|
790
|
-
}
|
|
791
|
-
get() {
|
|
792
|
-
return this._value;
|
|
793
|
-
}
|
|
794
|
-
set(t) {
|
|
795
|
-
this._value !== t && (this._value = t, this.listeners.forEach((e) => e(t)));
|
|
796
|
-
}
|
|
797
|
-
subscribe(t) {
|
|
798
|
-
return this.listeners.add(t), () => this.listeners.delete(t);
|
|
799
|
-
}
|
|
800
|
-
}
|
|
801
|
-
function ms(i) {
|
|
802
|
-
return new be(i);
|
|
803
|
-
}
|
|
804
|
-
class xe {
|
|
805
|
-
constructor(t) {
|
|
806
|
-
o(this, "state");
|
|
807
|
-
o(this, "listeners", /* @__PURE__ */ new Set());
|
|
808
|
-
this.state = t;
|
|
809
|
-
}
|
|
810
|
-
getState() {
|
|
811
|
-
return this.state;
|
|
812
|
-
}
|
|
813
|
-
setState(t) {
|
|
814
|
-
const e = typeof t == "function" ? t(this.state) : t;
|
|
815
|
-
this.state = { ...this.state, ...e }, this.listeners.forEach((r) => r(this.state));
|
|
816
|
-
}
|
|
817
|
-
subscribe(t) {
|
|
818
|
-
return this.listeners.add(t), () => this.listeners.delete(t);
|
|
819
|
-
}
|
|
820
|
-
}
|
|
821
|
-
function ps(i) {
|
|
822
|
-
return new xe(i);
|
|
823
|
-
}
|
|
824
|
-
const Y = /* @__PURE__ */ new Map();
|
|
825
|
-
function fs(i, t) {
|
|
826
|
-
Y.set(i, t);
|
|
827
|
-
}
|
|
828
|
-
function gs(i) {
|
|
829
|
-
return Y.get(i);
|
|
830
|
-
}
|
|
831
|
-
function bs() {
|
|
832
|
-
Y.clear();
|
|
833
|
-
}
|
|
834
|
-
const te = G(/* @__PURE__ */ new Map());
|
|
835
|
-
function xs() {
|
|
836
|
-
return X(te);
|
|
837
|
-
}
|
|
838
|
-
function ys({ stateMap: i, children: t }) {
|
|
839
|
-
const [e] = W(() => new Map(i));
|
|
840
|
-
return /* @__PURE__ */ S(te.Provider, { value: e, children: t });
|
|
841
|
-
}
|
|
842
|
-
function _s({ observables: i, children: t }) {
|
|
843
|
-
const [, e] = W({});
|
|
844
|
-
return H(() => {
|
|
845
|
-
const r = Array.from(i).map(
|
|
846
|
-
(n) => n.subscribe(() => e({}))
|
|
847
|
-
);
|
|
848
|
-
return () => r.forEach((n) => n());
|
|
849
|
-
}, [i]), /* @__PURE__ */ S(K, { children: t });
|
|
850
|
-
}
|
|
851
|
-
function ks({ signals: i, children: t }) {
|
|
852
|
-
const [, e] = W({});
|
|
853
|
-
return H(() => {
|
|
854
|
-
const r = Array.from(i).map(
|
|
855
|
-
(n) => n.subscribe(() => e({}))
|
|
856
|
-
);
|
|
857
|
-
return () => r.forEach((n) => n());
|
|
858
|
-
}, [i]), /* @__PURE__ */ S(K, { children: t });
|
|
859
|
-
}
|
|
860
|
-
const se = G(/* @__PURE__ */ new Map());
|
|
861
981
|
function vs(i) {
|
|
862
|
-
|
|
982
|
+
const [t, e] = $(i.value);
|
|
983
|
+
return M(() => (e(i.value), i.subscribe((o) => {
|
|
984
|
+
e(o);
|
|
985
|
+
})), [i]), t;
|
|
863
986
|
}
|
|
864
|
-
function
|
|
865
|
-
|
|
987
|
+
function ws(i) {
|
|
988
|
+
const [t, e] = $(i.getState());
|
|
989
|
+
return M(() => (e(i.getState()), i.subscribe((o) => {
|
|
990
|
+
e(o);
|
|
991
|
+
})), [i]), t;
|
|
866
992
|
}
|
|
867
|
-
|
|
993
|
+
function Ns(i) {
|
|
994
|
+
const [t, e] = $(i.get());
|
|
995
|
+
return M(() => (e(i.get()), i.subscribe((o) => {
|
|
996
|
+
e(o);
|
|
997
|
+
})), [i]), t;
|
|
998
|
+
}
|
|
999
|
+
const we = {
|
|
868
1000
|
name: "material",
|
|
869
1001
|
colors: {
|
|
870
1002
|
primary: "#6200EE",
|
|
@@ -947,7 +1079,7 @@ const _e = {
|
|
|
947
1079
|
lg: "0 8px 16px rgba(0,0,0,0.14)"
|
|
948
1080
|
},
|
|
949
1081
|
fontFamily: "Roboto, sans-serif"
|
|
950
|
-
},
|
|
1082
|
+
}, Ne = {
|
|
951
1083
|
name: "cupertino",
|
|
952
1084
|
colors: {
|
|
953
1085
|
primary: "#007AFF",
|
|
@@ -1029,7 +1161,7 @@ const _e = {
|
|
|
1029
1161
|
lg: "0 4px 16px rgba(0,0,0,0.12)"
|
|
1030
1162
|
},
|
|
1031
1163
|
fontFamily: '-apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif'
|
|
1032
|
-
},
|
|
1164
|
+
}, Ee = {
|
|
1033
1165
|
name: "web",
|
|
1034
1166
|
colors: {
|
|
1035
1167
|
primary: "#3B82F6",
|
|
@@ -1108,37 +1240,37 @@ const _e = {
|
|
|
1108
1240
|
lg: "0 10px 15px rgba(0,0,0,0.1)"
|
|
1109
1241
|
},
|
|
1110
1242
|
fontFamily: "Inter, system-ui, sans-serif"
|
|
1111
|
-
},
|
|
1112
|
-
material:
|
|
1113
|
-
cupertino:
|
|
1114
|
-
web:
|
|
1243
|
+
}, ie = X(void 0), Q = {
|
|
1244
|
+
material: we,
|
|
1245
|
+
cupertino: Ne,
|
|
1246
|
+
web: Ee
|
|
1115
1247
|
};
|
|
1116
|
-
function
|
|
1248
|
+
function Es({
|
|
1117
1249
|
theme: i = "material",
|
|
1118
1250
|
children: t
|
|
1119
1251
|
}) {
|
|
1120
|
-
const [e, r] =
|
|
1121
|
-
|
|
1122
|
-
const c =
|
|
1252
|
+
const [e, r] = $(i), [o, l] = $(Q[i]);
|
|
1253
|
+
M(() => {
|
|
1254
|
+
const c = Q[e];
|
|
1123
1255
|
if (l(c), typeof document < "u") {
|
|
1124
|
-
const
|
|
1125
|
-
|
|
1256
|
+
const d = document.documentElement;
|
|
1257
|
+
d.classList.remove("fibo-theme-material", "fibo-theme-cupertino", "fibo-theme-web"), d.classList.add(`fibo-theme-${e}`), d.style.setProperty("--fibo-primary", c.colors.primary), d.style.setProperty("--fibo-secondary", c.colors.secondary), d.style.setProperty("--fibo-background", c.colors.background), d.style.setProperty("--fibo-surface", c.colors.surface), d.style.setProperty("--fibo-error", c.colors.error), d.style.setProperty("--fibo-font-family", c.fontFamily);
|
|
1126
1258
|
}
|
|
1127
1259
|
}, [e]);
|
|
1128
1260
|
const a = {
|
|
1129
|
-
theme:
|
|
1261
|
+
theme: o,
|
|
1130
1262
|
themeName: e,
|
|
1131
1263
|
setTheme: r
|
|
1132
1264
|
};
|
|
1133
|
-
return /* @__PURE__ */ S(
|
|
1265
|
+
return /* @__PURE__ */ S(ie.Provider, { value: a, children: t });
|
|
1134
1266
|
}
|
|
1135
|
-
function
|
|
1136
|
-
const i =
|
|
1267
|
+
function Cs() {
|
|
1268
|
+
const i = Y(ie);
|
|
1137
1269
|
if (!i)
|
|
1138
1270
|
throw new Error("useFiboTheme must be used within a FiboThemeProvider");
|
|
1139
1271
|
return i;
|
|
1140
1272
|
}
|
|
1141
|
-
class
|
|
1273
|
+
class Ce extends x {
|
|
1142
1274
|
build() {
|
|
1143
1275
|
const t = this.getClassName(), e = this.getStyle(), r = this.processChildren();
|
|
1144
1276
|
return s.createElement(
|
|
@@ -1152,13 +1284,13 @@ class we extends b {
|
|
|
1152
1284
|
);
|
|
1153
1285
|
}
|
|
1154
1286
|
}
|
|
1155
|
-
const
|
|
1156
|
-
class
|
|
1287
|
+
const Ss = y(Ce);
|
|
1288
|
+
class Se extends x {
|
|
1157
1289
|
constructor() {
|
|
1158
1290
|
super(...arguments);
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1291
|
+
n(this, "_mainAxisAlignment", "start");
|
|
1292
|
+
n(this, "_crossAxisAlignment", "start");
|
|
1293
|
+
n(this, "_spacing");
|
|
1162
1294
|
}
|
|
1163
1295
|
mainAxisAlignment(e) {
|
|
1164
1296
|
return this._mainAxisAlignment = e, this;
|
|
@@ -1185,7 +1317,7 @@ class Ne extends b {
|
|
|
1185
1317
|
center: "items-center",
|
|
1186
1318
|
end: "items-end",
|
|
1187
1319
|
stretch: "items-stretch"
|
|
1188
|
-
},
|
|
1320
|
+
}, o = [
|
|
1189
1321
|
"fibo-row",
|
|
1190
1322
|
"flex",
|
|
1191
1323
|
"flex-row",
|
|
@@ -1194,7 +1326,7 @@ class Ne extends b {
|
|
|
1194
1326
|
...this._classNames
|
|
1195
1327
|
], l = this.getStyle();
|
|
1196
1328
|
this._spacing && (typeof this._spacing == "number" ? l.gap = `${this._spacing}px` : isNaN(Number(this._spacing)) ? l.gap = this._spacing : l.gap = `${Number(this._spacing) * 4}px`);
|
|
1197
|
-
const a =
|
|
1329
|
+
const a = o.filter(Boolean).join(" "), c = this.processChildren();
|
|
1198
1330
|
return s.createElement(
|
|
1199
1331
|
"div",
|
|
1200
1332
|
{
|
|
@@ -1206,14 +1338,14 @@ class Ne extends b {
|
|
|
1206
1338
|
);
|
|
1207
1339
|
}
|
|
1208
1340
|
}
|
|
1209
|
-
const
|
|
1210
|
-
class
|
|
1341
|
+
const R = y(Se);
|
|
1342
|
+
class Fe extends x {
|
|
1211
1343
|
constructor() {
|
|
1212
1344
|
super(...arguments);
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1345
|
+
n(this, "_mainAxisAlignment", "start");
|
|
1346
|
+
n(this, "_crossAxisAlignment", "start");
|
|
1347
|
+
n(this, "_spacing");
|
|
1348
|
+
n(this, "_size");
|
|
1217
1349
|
}
|
|
1218
1350
|
mainAxisAlignment(e) {
|
|
1219
1351
|
return this._mainAxisAlignment = e, this;
|
|
@@ -1240,7 +1372,7 @@ class Ce extends b {
|
|
|
1240
1372
|
center: "items-center",
|
|
1241
1373
|
end: "items-end",
|
|
1242
1374
|
stretch: "items-stretch"
|
|
1243
|
-
},
|
|
1375
|
+
}, o = {
|
|
1244
1376
|
small: "flex-[0.3]",
|
|
1245
1377
|
medium: "flex-1",
|
|
1246
1378
|
large: "flex-[1.5]"
|
|
@@ -1250,11 +1382,11 @@ class Ce extends b {
|
|
|
1250
1382
|
"flex-col",
|
|
1251
1383
|
e[this._mainAxisAlignment],
|
|
1252
1384
|
r[this._crossAxisAlignment],
|
|
1253
|
-
this._size ?
|
|
1385
|
+
this._size ? o[this._size] : "",
|
|
1254
1386
|
...this._classNames
|
|
1255
1387
|
], a = this.getStyle();
|
|
1256
1388
|
this._spacing && (typeof this._spacing == "number" ? a.gap = `${this._spacing}px` : isNaN(Number(this._spacing)) ? a.gap = this._spacing : a.gap = `${Number(this._spacing) * 4}px`);
|
|
1257
|
-
const c = l.filter(Boolean).join(" "),
|
|
1389
|
+
const c = l.filter(Boolean).join(" "), d = this.processChildren();
|
|
1258
1390
|
return s.createElement(
|
|
1259
1391
|
"div",
|
|
1260
1392
|
{
|
|
@@ -1262,16 +1394,16 @@ class Ce extends b {
|
|
|
1262
1394
|
style: a,
|
|
1263
1395
|
...this._props
|
|
1264
1396
|
},
|
|
1265
|
-
...
|
|
1397
|
+
...d
|
|
1266
1398
|
);
|
|
1267
1399
|
}
|
|
1268
1400
|
}
|
|
1269
|
-
const
|
|
1270
|
-
class
|
|
1401
|
+
const P = y(Fe);
|
|
1402
|
+
class ze extends x {
|
|
1271
1403
|
constructor() {
|
|
1272
1404
|
super(...arguments);
|
|
1273
|
-
|
|
1274
|
-
|
|
1405
|
+
n(this, "_height");
|
|
1406
|
+
n(this, "_width");
|
|
1275
1407
|
}
|
|
1276
1408
|
height(e) {
|
|
1277
1409
|
return this._height = e, this;
|
|
@@ -1290,32 +1422,32 @@ class Ee extends b {
|
|
|
1290
1422
|
});
|
|
1291
1423
|
}
|
|
1292
1424
|
}
|
|
1293
|
-
const
|
|
1294
|
-
class
|
|
1425
|
+
const V = y(ze);
|
|
1426
|
+
class Be extends x {
|
|
1295
1427
|
constructor() {
|
|
1296
1428
|
super(...arguments);
|
|
1297
|
-
|
|
1429
|
+
n(this, "_sizeHeight");
|
|
1298
1430
|
}
|
|
1299
1431
|
sizeHeight(e) {
|
|
1300
1432
|
return this._sizeHeight = e, this;
|
|
1301
1433
|
}
|
|
1302
1434
|
build() {
|
|
1303
|
-
const r = ["fibo-line", "flex", "flex-row", ...this._classNames].filter(Boolean).join(" "),
|
|
1304
|
-
this._sizeHeight && (
|
|
1435
|
+
const r = ["fibo-line", "flex", "flex-row", ...this._classNames].filter(Boolean).join(" "), o = this.getStyle();
|
|
1436
|
+
this._sizeHeight && (o.height = this._sizeHeight);
|
|
1305
1437
|
const l = this.processChildren();
|
|
1306
1438
|
return s.createElement(
|
|
1307
1439
|
"div",
|
|
1308
1440
|
{
|
|
1309
1441
|
className: r,
|
|
1310
|
-
style:
|
|
1442
|
+
style: o,
|
|
1311
1443
|
...this._props
|
|
1312
1444
|
},
|
|
1313
1445
|
...l
|
|
1314
1446
|
);
|
|
1315
1447
|
}
|
|
1316
1448
|
}
|
|
1317
|
-
const
|
|
1318
|
-
class
|
|
1449
|
+
const Fs = y(Be);
|
|
1450
|
+
class Ae extends x {
|
|
1319
1451
|
build() {
|
|
1320
1452
|
const e = [
|
|
1321
1453
|
"fibo-center",
|
|
@@ -1323,7 +1455,7 @@ class Fe extends b {
|
|
|
1323
1455
|
"items-center",
|
|
1324
1456
|
"justify-center",
|
|
1325
1457
|
...this._classNames
|
|
1326
|
-
].filter(Boolean).join(" "), r = this.getStyle(),
|
|
1458
|
+
].filter(Boolean).join(" "), r = this.getStyle(), o = this.processChildren();
|
|
1327
1459
|
return s.createElement(
|
|
1328
1460
|
"div",
|
|
1329
1461
|
{
|
|
@@ -1331,16 +1463,16 @@ class Fe extends b {
|
|
|
1331
1463
|
style: r,
|
|
1332
1464
|
...this._props
|
|
1333
1465
|
},
|
|
1334
|
-
...
|
|
1466
|
+
...o
|
|
1335
1467
|
);
|
|
1336
1468
|
}
|
|
1337
1469
|
}
|
|
1338
|
-
const
|
|
1339
|
-
class
|
|
1470
|
+
const zs = y(Ae);
|
|
1471
|
+
class $e extends x {
|
|
1340
1472
|
constructor() {
|
|
1341
1473
|
super(...arguments);
|
|
1342
|
-
|
|
1343
|
-
|
|
1474
|
+
n(this, "_direction", "vertical");
|
|
1475
|
+
n(this, "_scrollbar", "auto");
|
|
1344
1476
|
}
|
|
1345
1477
|
direction(e) {
|
|
1346
1478
|
return this._direction = e, this;
|
|
@@ -1370,23 +1502,23 @@ class ze extends b {
|
|
|
1370
1502
|
}, ...this._children);
|
|
1371
1503
|
}
|
|
1372
1504
|
}
|
|
1373
|
-
const
|
|
1374
|
-
const { height: t = 64, sticky: e, className: r, style:
|
|
1505
|
+
const Bs = y($e), Ie = s.memo((i) => {
|
|
1506
|
+
const { height: t = 64, sticky: e, className: r, style: o, children: l, ...a } = i;
|
|
1375
1507
|
return s.createElement(
|
|
1376
1508
|
"header",
|
|
1377
1509
|
{
|
|
1378
1510
|
className: `flex items-center px-6 border-b border-gray-200 bg-white/80 backdrop-blur-md z-10 w-full ${e ? "sticky top-0" : ""} ${r || ""}`,
|
|
1379
|
-
style: { height: t, minHeight: t, ...
|
|
1511
|
+
style: { height: t, minHeight: t, ...o },
|
|
1380
1512
|
...a
|
|
1381
1513
|
},
|
|
1382
1514
|
l
|
|
1383
1515
|
);
|
|
1384
1516
|
});
|
|
1385
|
-
class
|
|
1517
|
+
class je extends x {
|
|
1386
1518
|
constructor() {
|
|
1387
1519
|
super(...arguments);
|
|
1388
|
-
|
|
1389
|
-
|
|
1520
|
+
n(this, "_height", 64);
|
|
1521
|
+
n(this, "_sticky", !1);
|
|
1390
1522
|
}
|
|
1391
1523
|
height(e) {
|
|
1392
1524
|
return this._height = e, this;
|
|
@@ -1403,26 +1535,26 @@ class $e extends b {
|
|
|
1403
1535
|
children: this.processChildren(),
|
|
1404
1536
|
...this._props
|
|
1405
1537
|
};
|
|
1406
|
-
return s.createElement(
|
|
1538
|
+
return s.createElement(Ie, e);
|
|
1407
1539
|
}
|
|
1408
1540
|
}
|
|
1409
|
-
const
|
|
1410
|
-
const { width: t = 260, collapsed: e, className: r, style:
|
|
1541
|
+
const As = y(je), We = s.memo((i) => {
|
|
1542
|
+
const { width: t = 260, collapsed: e, className: r, style: o, children: l, ...a } = i, c = e ? 80 : t;
|
|
1411
1543
|
return s.createElement(
|
|
1412
1544
|
"aside",
|
|
1413
1545
|
{
|
|
1414
1546
|
className: `flex flex-col border-r border-gray-200 bg-white transition-all duration-300 h-full ${r || ""}`,
|
|
1415
|
-
style: { width: c, minWidth: c, ...
|
|
1547
|
+
style: { width: c, minWidth: c, ...o },
|
|
1416
1548
|
...a
|
|
1417
1549
|
},
|
|
1418
1550
|
l
|
|
1419
1551
|
);
|
|
1420
1552
|
});
|
|
1421
|
-
class
|
|
1553
|
+
class Le extends x {
|
|
1422
1554
|
constructor() {
|
|
1423
1555
|
super(...arguments);
|
|
1424
|
-
|
|
1425
|
-
|
|
1556
|
+
n(this, "_width", 260);
|
|
1557
|
+
n(this, "_collapsed", !1);
|
|
1426
1558
|
}
|
|
1427
1559
|
width(e) {
|
|
1428
1560
|
return this._width = e, this;
|
|
@@ -1439,27 +1571,27 @@ class Ie extends b {
|
|
|
1439
1571
|
children: this.processChildren(),
|
|
1440
1572
|
...this._props
|
|
1441
1573
|
};
|
|
1442
|
-
return s.createElement(
|
|
1574
|
+
return s.createElement(We, e);
|
|
1443
1575
|
}
|
|
1444
1576
|
}
|
|
1445
|
-
const
|
|
1446
|
-
const { sidebar: t, header: e, children: r, className:
|
|
1577
|
+
const $s = y(Le), Me = s.memo((i) => {
|
|
1578
|
+
const { sidebar: t, header: e, children: r, className: o, style: l, ...a } = i, [c, d] = $(!1);
|
|
1447
1579
|
return s.createElement(
|
|
1448
1580
|
"div",
|
|
1449
1581
|
{
|
|
1450
|
-
className: `h-full w-full bg-[#0B0C15] overflow-hidden relative ${
|
|
1582
|
+
className: `h-full w-full bg-[#0B0C15] overflow-hidden relative ${o || ""}`,
|
|
1451
1583
|
style: l,
|
|
1452
1584
|
...a
|
|
1453
1585
|
},
|
|
1454
1586
|
c && s.createElement("div", {
|
|
1455
1587
|
className: "fixed inset-0 z-40 bg-black/50 backdrop-blur-sm transition-opacity lg:hidden",
|
|
1456
|
-
onClick: () =>
|
|
1588
|
+
onClick: () => d(!1)
|
|
1457
1589
|
}),
|
|
1458
1590
|
s.createElement(
|
|
1459
1591
|
"button",
|
|
1460
1592
|
{
|
|
1461
1593
|
className: "lg:hidden fixed top-4 right-4 z-50 p-2 rounded-lg bg-[#1A1B23] border border-white/10 text-white shadow-lg",
|
|
1462
|
-
onClick: () =>
|
|
1594
|
+
onClick: () => d(!c)
|
|
1463
1595
|
},
|
|
1464
1596
|
s.createElement("div", { className: c ? "i-heroicons-x-mark w-6 h-6" : "i-heroicons-bars-3 w-6 h-6" })
|
|
1465
1597
|
),
|
|
@@ -1494,11 +1626,11 @@ const Bs = x(Ie), je = s.memo((i) => {
|
|
|
1494
1626
|
)
|
|
1495
1627
|
);
|
|
1496
1628
|
});
|
|
1497
|
-
class
|
|
1629
|
+
class Re extends x {
|
|
1498
1630
|
constructor() {
|
|
1499
1631
|
super(...arguments);
|
|
1500
|
-
|
|
1501
|
-
|
|
1632
|
+
n(this, "_sidebar");
|
|
1633
|
+
n(this, "_header");
|
|
1502
1634
|
}
|
|
1503
1635
|
sidebar(e) {
|
|
1504
1636
|
return this._sidebar = e, this;
|
|
@@ -1515,28 +1647,28 @@ class We extends b {
|
|
|
1515
1647
|
children: this.processChildren(),
|
|
1516
1648
|
...this._props
|
|
1517
1649
|
};
|
|
1518
|
-
return s.createElement(
|
|
1650
|
+
return s.createElement(Me, e);
|
|
1519
1651
|
}
|
|
1520
1652
|
}
|
|
1521
|
-
const
|
|
1653
|
+
const Is = y(Re), Te = s.memo((i) => {
|
|
1522
1654
|
const {
|
|
1523
1655
|
theme: t,
|
|
1524
1656
|
locale: e,
|
|
1525
1657
|
providers: r = {},
|
|
1526
|
-
className:
|
|
1658
|
+
className: o,
|
|
1527
1659
|
style: l,
|
|
1528
1660
|
children: a
|
|
1529
1661
|
} = i, c = /* @__PURE__ */ new Map();
|
|
1530
|
-
return t && c.set("theme", t), e && c.set("locale", e), Object.entries(r).forEach(([
|
|
1531
|
-
c.set(
|
|
1662
|
+
return t && c.set("theme", t), e && c.set("locale", e), Object.entries(r).forEach(([d, p]) => {
|
|
1663
|
+
c.set(d, p);
|
|
1532
1664
|
}), c.size > 0 ? s.createElement(
|
|
1533
|
-
|
|
1665
|
+
me,
|
|
1534
1666
|
{
|
|
1535
1667
|
providers: c,
|
|
1536
1668
|
children: s.createElement(
|
|
1537
1669
|
"div",
|
|
1538
1670
|
{
|
|
1539
|
-
className: `fibo-scaffold ${
|
|
1671
|
+
className: `fibo-scaffold ${o || ""}`,
|
|
1540
1672
|
style: {
|
|
1541
1673
|
minHeight: "100vh",
|
|
1542
1674
|
display: "flex",
|
|
@@ -1550,7 +1682,7 @@ const $s = x(We), Le = s.memo((i) => {
|
|
|
1550
1682
|
) : s.createElement(
|
|
1551
1683
|
"div",
|
|
1552
1684
|
{
|
|
1553
|
-
className: `fibo-scaffold ${
|
|
1685
|
+
className: `fibo-scaffold ${o || ""}`,
|
|
1554
1686
|
style: {
|
|
1555
1687
|
minHeight: "100vh",
|
|
1556
1688
|
display: "flex",
|
|
@@ -1561,12 +1693,12 @@ const $s = x(We), Le = s.memo((i) => {
|
|
|
1561
1693
|
a
|
|
1562
1694
|
);
|
|
1563
1695
|
});
|
|
1564
|
-
class
|
|
1696
|
+
class Pe extends x {
|
|
1565
1697
|
constructor() {
|
|
1566
1698
|
super(...arguments);
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1699
|
+
n(this, "_theme");
|
|
1700
|
+
n(this, "_locale");
|
|
1701
|
+
n(this, "_customProviders", {});
|
|
1570
1702
|
}
|
|
1571
1703
|
theme(e) {
|
|
1572
1704
|
return this._theme = e, this;
|
|
@@ -1589,37 +1721,37 @@ class Me extends b {
|
|
|
1589
1721
|
style: this.getStyle(),
|
|
1590
1722
|
children: this.processChildren()
|
|
1591
1723
|
};
|
|
1592
|
-
return s.createElement(
|
|
1724
|
+
return s.createElement(Te, e);
|
|
1593
1725
|
}
|
|
1594
1726
|
}
|
|
1595
|
-
const
|
|
1596
|
-
const { className: t, style: e, children: r, ...
|
|
1727
|
+
const js = y(Pe), De = s.memo((i) => {
|
|
1728
|
+
const { className: t, style: e, children: r, ...o } = i;
|
|
1597
1729
|
return s.createElement(
|
|
1598
1730
|
"div",
|
|
1599
1731
|
{
|
|
1600
1732
|
className: t,
|
|
1601
1733
|
style: e,
|
|
1602
|
-
...
|
|
1734
|
+
...o
|
|
1603
1735
|
},
|
|
1604
1736
|
...r
|
|
1605
1737
|
);
|
|
1606
1738
|
});
|
|
1607
|
-
class
|
|
1739
|
+
class Oe extends x {
|
|
1608
1740
|
build() {
|
|
1609
1741
|
const e = [
|
|
1610
1742
|
"fibo-box",
|
|
1611
1743
|
...this._classNames
|
|
1612
|
-
].filter(Boolean).join(" "), r = this.getStyle(),
|
|
1744
|
+
].filter(Boolean).join(" "), r = this.getStyle(), o = this.processChildren(), l = {
|
|
1613
1745
|
className: e,
|
|
1614
1746
|
style: r,
|
|
1615
|
-
children:
|
|
1747
|
+
children: o,
|
|
1616
1748
|
...this._props
|
|
1617
1749
|
};
|
|
1618
|
-
return s.createElement(
|
|
1750
|
+
return s.createElement(De, l);
|
|
1619
1751
|
}
|
|
1620
1752
|
}
|
|
1621
|
-
const w =
|
|
1622
|
-
const { image: t, size: e, border: r, shape:
|
|
1753
|
+
const w = y(Oe), He = s.memo((i) => {
|
|
1754
|
+
const { image: t, size: e, border: r, shape: o, status: l, className: a, style: c } = i, d = typeof e == "number" ? `${e}px` : e, p = {
|
|
1623
1755
|
circle: "50%",
|
|
1624
1756
|
rounded: "24%",
|
|
1625
1757
|
square: "0"
|
|
@@ -1631,9 +1763,9 @@ const w = x(Te), Pe = s.memo((i) => {
|
|
|
1631
1763
|
};
|
|
1632
1764
|
return w().className(a).style({
|
|
1633
1765
|
position: "relative",
|
|
1634
|
-
width:
|
|
1635
|
-
height:
|
|
1636
|
-
borderRadius: p[
|
|
1766
|
+
width: d,
|
|
1767
|
+
height: d,
|
|
1768
|
+
borderRadius: p[o],
|
|
1637
1769
|
backgroundImage: `url(${t})`,
|
|
1638
1770
|
backgroundSize: "cover",
|
|
1639
1771
|
backgroundPosition: "center",
|
|
@@ -1656,14 +1788,14 @@ const w = x(Te), Pe = s.memo((i) => {
|
|
|
1656
1788
|
}).build() : null
|
|
1657
1789
|
).build();
|
|
1658
1790
|
});
|
|
1659
|
-
class
|
|
1791
|
+
class Ve extends x {
|
|
1660
1792
|
constructor() {
|
|
1661
1793
|
super(...arguments);
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1794
|
+
n(this, "_image", "");
|
|
1795
|
+
n(this, "_size", 40);
|
|
1796
|
+
n(this, "_border", "none");
|
|
1797
|
+
n(this, "_shape", "circle");
|
|
1798
|
+
n(this, "_status", "none");
|
|
1667
1799
|
}
|
|
1668
1800
|
image(e) {
|
|
1669
1801
|
return this._image = e, this;
|
|
@@ -1690,11 +1822,11 @@ class De extends b {
|
|
|
1690
1822
|
className: this.getClassName(),
|
|
1691
1823
|
style: this.getStyle()
|
|
1692
1824
|
};
|
|
1693
|
-
return s.createElement(
|
|
1825
|
+
return s.createElement(He, e);
|
|
1694
1826
|
}
|
|
1695
1827
|
}
|
|
1696
|
-
const
|
|
1697
|
-
const { text: t, type: e, className: r, style:
|
|
1828
|
+
const qe = y(Ve), Ge = s.memo((i) => {
|
|
1829
|
+
const { text: t, type: e, className: r, style: o, ...l } = i, a = {
|
|
1698
1830
|
h1: "h1",
|
|
1699
1831
|
h2: "h2",
|
|
1700
1832
|
h3: "h3",
|
|
@@ -1709,17 +1841,17 @@ const Oe = x(De), He = s.memo((i) => {
|
|
|
1709
1841
|
a[e],
|
|
1710
1842
|
{
|
|
1711
1843
|
className: `fibo-text fibo-text-${e} ${r}`,
|
|
1712
|
-
style:
|
|
1844
|
+
style: o,
|
|
1713
1845
|
...l
|
|
1714
1846
|
},
|
|
1715
1847
|
t
|
|
1716
1848
|
);
|
|
1717
1849
|
});
|
|
1718
|
-
class
|
|
1850
|
+
class Xe extends x {
|
|
1719
1851
|
constructor(e = "") {
|
|
1720
1852
|
super();
|
|
1721
|
-
|
|
1722
|
-
|
|
1853
|
+
n(this, "_text", "");
|
|
1854
|
+
n(this, "_type", "body");
|
|
1723
1855
|
this._text = e;
|
|
1724
1856
|
}
|
|
1725
1857
|
text(e) {
|
|
@@ -1739,11 +1871,11 @@ class Ve extends b {
|
|
|
1739
1871
|
style: this.getStyle(),
|
|
1740
1872
|
...this._props
|
|
1741
1873
|
};
|
|
1742
|
-
return s.createElement(
|
|
1874
|
+
return s.createElement(Ge, e);
|
|
1743
1875
|
}
|
|
1744
1876
|
}
|
|
1745
|
-
const
|
|
1746
|
-
const { text: t, icon: e, variant: r, intent:
|
|
1877
|
+
const E = y(Xe), Ue = s.memo((i) => {
|
|
1878
|
+
const { text: t, icon: e, variant: r, intent: o, shape: l, className: a, style: c } = i, d = {
|
|
1747
1879
|
none: { bg: "#F9FAFB", text: "#6B7280", border: "#E5E7EB" },
|
|
1748
1880
|
success: { bg: "#ECFDF5", text: "#059669", border: "transparent" },
|
|
1749
1881
|
warning: { bg: "#FFFBEB", text: "#D97706", border: "transparent" },
|
|
@@ -1763,18 +1895,18 @@ const N = x(Ve), qe = s.memo((i) => {
|
|
|
1763
1895
|
solid: { backgroundColor: "#111827", color: "#FFFFFF", border: "none" },
|
|
1764
1896
|
dot: { backgroundColor: "transparent", color: "#6B7280", border: "1px solid #E5E7EB", padding: "4px 10px" }
|
|
1765
1897
|
}[r] };
|
|
1766
|
-
if (
|
|
1767
|
-
const
|
|
1898
|
+
if (o !== "none") {
|
|
1899
|
+
const h = d[o];
|
|
1768
1900
|
if (r === "solid") {
|
|
1769
|
-
const
|
|
1901
|
+
const g = {
|
|
1770
1902
|
none: "#111827",
|
|
1771
1903
|
success: "#059669",
|
|
1772
1904
|
warning: "#D97706",
|
|
1773
1905
|
error: "#E11D48",
|
|
1774
1906
|
info: "#2563EB"
|
|
1775
1907
|
};
|
|
1776
|
-
u.backgroundColor =
|
|
1777
|
-
} else r === "dot" ? (u.color = "#374151", u.borderColor = "#E5E7EB") : (u.backgroundColor =
|
|
1908
|
+
u.backgroundColor = g[o], u.color = "#FFFFFF";
|
|
1909
|
+
} else r === "dot" ? (u.color = "#374151", u.borderColor = "#E5E7EB") : (u.backgroundColor = h.bg, u.color = h.text, h.border ? u.border = `1px solid ${h.border}` : u.border = "none");
|
|
1778
1910
|
}
|
|
1779
1911
|
const m = {
|
|
1780
1912
|
pill: "9999px",
|
|
@@ -1793,27 +1925,27 @@ const N = x(Ve), qe = s.memo((i) => {
|
|
|
1793
1925
|
fontWeight: 600,
|
|
1794
1926
|
...c
|
|
1795
1927
|
}).children(
|
|
1796
|
-
|
|
1797
|
-
r === "dot" &&
|
|
1928
|
+
R().gap(6).alignItems("center").children([
|
|
1929
|
+
r === "dot" && o !== "none" ? w().style({
|
|
1798
1930
|
width: "6px",
|
|
1799
1931
|
height: "6px",
|
|
1800
1932
|
borderRadius: "50%",
|
|
1801
|
-
backgroundColor:
|
|
1802
|
-
boxShadow: `0 0 6px ${
|
|
1933
|
+
backgroundColor: d[o].text,
|
|
1934
|
+
boxShadow: `0 0 6px ${d[o].text}66`
|
|
1803
1935
|
}).build() : null,
|
|
1804
1936
|
e ? w().classNames(["flex", "items-center"]).children(e).build() : null,
|
|
1805
|
-
|
|
1937
|
+
E(t).fontSize(12).fontWeight(600).style({ color: "inherit" }).build()
|
|
1806
1938
|
]).build()
|
|
1807
1939
|
).build();
|
|
1808
1940
|
});
|
|
1809
|
-
class
|
|
1941
|
+
class Ye extends x {
|
|
1810
1942
|
constructor() {
|
|
1811
1943
|
super(...arguments);
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1944
|
+
n(this, "_text", "");
|
|
1945
|
+
n(this, "_icon");
|
|
1946
|
+
n(this, "_variant", "neutral");
|
|
1947
|
+
n(this, "_intent", "none");
|
|
1948
|
+
n(this, "_shape", "rounded");
|
|
1817
1949
|
}
|
|
1818
1950
|
text(e) {
|
|
1819
1951
|
return this._text = e, this;
|
|
@@ -1840,15 +1972,15 @@ class Ge extends b {
|
|
|
1840
1972
|
className: this.getClassName(),
|
|
1841
1973
|
style: this.getStyle()
|
|
1842
1974
|
};
|
|
1843
|
-
return s.createElement(
|
|
1975
|
+
return s.createElement(Ue, e);
|
|
1844
1976
|
}
|
|
1845
1977
|
}
|
|
1846
|
-
const
|
|
1847
|
-
const { text: t, htmlFor: e, required: r, className:
|
|
1978
|
+
const G = y(Ye), Je = s.memo((i) => {
|
|
1979
|
+
const { text: t, htmlFor: e, required: r, className: o, style: l, ...a } = i;
|
|
1848
1980
|
return s.createElement(
|
|
1849
1981
|
"label",
|
|
1850
1982
|
{
|
|
1851
|
-
className: `fibo-label text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 ${
|
|
1983
|
+
className: `fibo-label text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 ${o}`,
|
|
1852
1984
|
htmlFor: e,
|
|
1853
1985
|
style: l,
|
|
1854
1986
|
...a
|
|
@@ -1857,12 +1989,12 @@ const q = x(Ge), Xe = s.memo((i) => {
|
|
|
1857
1989
|
r && s.createElement("span", { className: "text-red-500 ml-0.5" }, "*")
|
|
1858
1990
|
);
|
|
1859
1991
|
});
|
|
1860
|
-
class
|
|
1992
|
+
class Ke extends x {
|
|
1861
1993
|
constructor(e = "") {
|
|
1862
1994
|
super();
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1995
|
+
n(this, "_text", "");
|
|
1996
|
+
n(this, "_htmlFor");
|
|
1997
|
+
n(this, "_required", !1);
|
|
1866
1998
|
this._text = e;
|
|
1867
1999
|
}
|
|
1868
2000
|
text(e) {
|
|
@@ -1883,40 +2015,40 @@ class Ye extends b {
|
|
|
1883
2015
|
style: this.getStyle(),
|
|
1884
2016
|
...this._props
|
|
1885
2017
|
};
|
|
1886
|
-
return s.createElement(
|
|
2018
|
+
return s.createElement(Je, e);
|
|
1887
2019
|
}
|
|
1888
2020
|
}
|
|
1889
|
-
const
|
|
2021
|
+
const Ws = y(Ke), Qe = s.memo((i) => {
|
|
1890
2022
|
const {
|
|
1891
2023
|
src: t,
|
|
1892
2024
|
alt: e,
|
|
1893
2025
|
fit: r,
|
|
1894
|
-
resizable:
|
|
2026
|
+
resizable: o,
|
|
1895
2027
|
clipShape: l,
|
|
1896
2028
|
frameWidth: a,
|
|
1897
2029
|
frameHeight: c,
|
|
1898
|
-
className:
|
|
2030
|
+
className: d,
|
|
1899
2031
|
style: p,
|
|
1900
2032
|
...u
|
|
1901
2033
|
} = i, m = { ...p };
|
|
1902
|
-
return m.objectFit = r, a && (m.width = `${a}px`), c && (m.height = `${c}px`),
|
|
2034
|
+
return m.objectFit = r, a && (m.width = `${a}px`), c && (m.height = `${c}px`), o && (m.maxWidth = "100%", m.height = "auto"), s.createElement("img", {
|
|
1903
2035
|
src: t,
|
|
1904
2036
|
alt: e,
|
|
1905
|
-
className:
|
|
2037
|
+
className: d,
|
|
1906
2038
|
style: m,
|
|
1907
2039
|
...u
|
|
1908
2040
|
});
|
|
1909
2041
|
});
|
|
1910
|
-
class
|
|
2042
|
+
class Ze extends x {
|
|
1911
2043
|
constructor(e = "") {
|
|
1912
2044
|
super();
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
2045
|
+
n(this, "_src", "");
|
|
2046
|
+
n(this, "_alt", "");
|
|
2047
|
+
n(this, "_fit", "cover");
|
|
2048
|
+
n(this, "_resizable", !1);
|
|
2049
|
+
n(this, "_clipShape");
|
|
2050
|
+
n(this, "_frameWidth");
|
|
2051
|
+
n(this, "_frameHeight");
|
|
1920
2052
|
this._src = e;
|
|
1921
2053
|
}
|
|
1922
2054
|
src(e) {
|
|
@@ -1946,7 +2078,7 @@ class Je extends b {
|
|
|
1946
2078
|
build() {
|
|
1947
2079
|
const e = ["fibo-image", ...this._classNames];
|
|
1948
2080
|
this._clipShape === "circle" ? e.push("rounded-full") : this._clipShape === "rounded" && e.push("rounded-lg");
|
|
1949
|
-
const r = e.filter(Boolean).join(" "),
|
|
2081
|
+
const r = e.filter(Boolean).join(" "), o = {
|
|
1950
2082
|
src: this._src,
|
|
1951
2083
|
alt: this._alt,
|
|
1952
2084
|
fit: this._fit,
|
|
@@ -1958,18 +2090,18 @@ class Je extends b {
|
|
|
1958
2090
|
style: this.getStyle(),
|
|
1959
2091
|
...this._props
|
|
1960
2092
|
};
|
|
1961
|
-
return s.createElement(
|
|
2093
|
+
return s.createElement(Qe, o);
|
|
1962
2094
|
}
|
|
1963
2095
|
}
|
|
1964
|
-
const
|
|
1965
|
-
const { size: t, color: e, variant: r = "circle", className:
|
|
2096
|
+
const et = y(Ze), tt = s.memo((i) => {
|
|
2097
|
+
const { size: t, color: e, variant: r = "circle", className: o, style: l, ...a } = i, d = typeof t == "number" ? t : {
|
|
1966
2098
|
sm: 16,
|
|
1967
2099
|
md: 24,
|
|
1968
2100
|
lg: 32,
|
|
1969
2101
|
xl: 48
|
|
1970
2102
|
}[t] || 24, p = e || "currentColor", u = {
|
|
1971
|
-
className: `fibo-spinner ${
|
|
1972
|
-
style: { width:
|
|
2103
|
+
className: `fibo-spinner ${o}`,
|
|
2104
|
+
style: { width: d, height: d, ...l },
|
|
1973
2105
|
...a
|
|
1974
2106
|
};
|
|
1975
2107
|
return r === "dots" ? s.createElement(
|
|
@@ -2037,12 +2169,12 @@ const Ke = x(Je), Qe = s.memo((i) => {
|
|
|
2037
2169
|
)
|
|
2038
2170
|
);
|
|
2039
2171
|
});
|
|
2040
|
-
class
|
|
2172
|
+
class st extends x {
|
|
2041
2173
|
constructor() {
|
|
2042
2174
|
super(...arguments);
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2175
|
+
n(this, "_size", "md");
|
|
2176
|
+
n(this, "_color");
|
|
2177
|
+
n(this, "_variant", "circle");
|
|
2046
2178
|
}
|
|
2047
2179
|
size(e) {
|
|
2048
2180
|
return this._size = e, this;
|
|
@@ -2062,13 +2194,13 @@ class Ze extends b {
|
|
|
2062
2194
|
style: this.getStyle(),
|
|
2063
2195
|
...this._props
|
|
2064
2196
|
};
|
|
2065
|
-
return s.createElement(
|
|
2197
|
+
return s.createElement(tt, e);
|
|
2066
2198
|
}
|
|
2067
2199
|
}
|
|
2068
|
-
const
|
|
2069
|
-
const { width: t, height: e, shape: r, className:
|
|
2200
|
+
const Ls = y(st), rt = s.memo((i) => {
|
|
2201
|
+
const { width: t, height: e, shape: r, className: o, style: l, ...a } = i, c = ["animate-pulse", "bg-gray-200", "loading-skeleton"];
|
|
2070
2202
|
return r === "circle" ? c.push("rounded-full") : r === "rounded-sm" ? c.push("rounded-sm") : r === "rounded-md" ? c.push("rounded-md") : r === "rounded-lg" ? c.push("rounded-lg") : r === "square" ? c.push("rounded-none") : c.push("rounded"), s.createElement("div", {
|
|
2071
|
-
className: [...c,
|
|
2203
|
+
className: [...c, o].filter(Boolean).join(" "),
|
|
2072
2204
|
style: {
|
|
2073
2205
|
width: t,
|
|
2074
2206
|
height: e,
|
|
@@ -2077,12 +2209,12 @@ const js = x(Ze), et = s.memo((i) => {
|
|
|
2077
2209
|
...a
|
|
2078
2210
|
});
|
|
2079
2211
|
});
|
|
2080
|
-
class
|
|
2212
|
+
class it extends x {
|
|
2081
2213
|
constructor() {
|
|
2082
2214
|
super(...arguments);
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2215
|
+
n(this, "_width", "100%");
|
|
2216
|
+
n(this, "_height", "20px");
|
|
2217
|
+
n(this, "_shape", "rounded");
|
|
2086
2218
|
}
|
|
2087
2219
|
width(e) {
|
|
2088
2220
|
return this._width = e, this;
|
|
@@ -2102,41 +2234,41 @@ class tt extends b {
|
|
|
2102
2234
|
style: this.getStyle(),
|
|
2103
2235
|
...this._props
|
|
2104
2236
|
};
|
|
2105
|
-
return s.createElement(
|
|
2237
|
+
return s.createElement(rt, e);
|
|
2106
2238
|
}
|
|
2107
2239
|
}
|
|
2108
|
-
const
|
|
2240
|
+
const Ms = y(it), L = {
|
|
2109
2241
|
Heart: /* @__PURE__ */ S("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", 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" }) }),
|
|
2110
2242
|
Eth: /* @__PURE__ */ S("svg", { width: "14", height: "24", viewBox: "0 0 32 32", fill: "currentColor", 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" }) }),
|
|
2111
2243
|
Verify: /* @__PURE__ */ S("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "#3B82F6", stroke: "none", 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" }) }),
|
|
2112
|
-
More: /* @__PURE__ */
|
|
2244
|
+
More: /* @__PURE__ */ O("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
|
|
2113
2245
|
/* @__PURE__ */ S("circle", { cx: "12", cy: "12", r: "1" }),
|
|
2114
2246
|
/* @__PURE__ */ S("circle", { cx: "19", cy: "12", r: "1" }),
|
|
2115
2247
|
/* @__PURE__ */ S("circle", { cx: "5", cy: "12", r: "1" })
|
|
2116
2248
|
] }),
|
|
2117
|
-
Clock: /* @__PURE__ */
|
|
2249
|
+
Clock: /* @__PURE__ */ O("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
|
|
2118
2250
|
/* @__PURE__ */ S("circle", { cx: "12", cy: "12", r: "10" }),
|
|
2119
2251
|
/* @__PURE__ */ S("polyline", { points: "12 6 12 12 16 14" })
|
|
2120
2252
|
] }),
|
|
2121
|
-
Info: /* @__PURE__ */
|
|
2253
|
+
Info: /* @__PURE__ */ O("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
2122
2254
|
/* @__PURE__ */ S("circle", { cx: "12", cy: "12", r: "10" }),
|
|
2123
2255
|
/* @__PURE__ */ S("line", { x1: "12", y1: "16", x2: "12", y2: "12" }),
|
|
2124
2256
|
/* @__PURE__ */ S("line", { x1: "12", y1: "8", x2: "12.01", y2: "8" })
|
|
2125
2257
|
] }),
|
|
2126
|
-
Check: /* @__PURE__ */
|
|
2258
|
+
Check: /* @__PURE__ */ O("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
2127
2259
|
/* @__PURE__ */ S("path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }),
|
|
2128
2260
|
/* @__PURE__ */ S("polyline", { points: "22 4 12 14.01 9 11.01" })
|
|
2129
2261
|
] }),
|
|
2130
|
-
Search: /* @__PURE__ */
|
|
2262
|
+
Search: /* @__PURE__ */ O("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
2131
2263
|
/* @__PURE__ */ S("circle", { cx: "11", cy: "11", r: "8" }),
|
|
2132
2264
|
/* @__PURE__ */ S("line", { x1: "21", y1: "21", x2: "16.65", y2: "16.65" })
|
|
2133
2265
|
] }),
|
|
2134
|
-
Close: /* @__PURE__ */
|
|
2266
|
+
Close: /* @__PURE__ */ O("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
2135
2267
|
/* @__PURE__ */ S("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
|
|
2136
2268
|
/* @__PURE__ */ S("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
|
|
2137
2269
|
] })
|
|
2138
|
-
},
|
|
2139
|
-
const { title: t, description: e, intent: r = "info", className:
|
|
2270
|
+
}, nt = s.memo((i) => {
|
|
2271
|
+
const { title: t, description: e, intent: r = "info", className: o, style: l, ...a } = i, c = r, d = {
|
|
2140
2272
|
info: "bg-blue-500 text-white",
|
|
2141
2273
|
success: "bg-emerald-500 text-white",
|
|
2142
2274
|
warning: "bg-orange-400 text-white",
|
|
@@ -2147,13 +2279,13 @@ const Ws = x(tt), j = {
|
|
|
2147
2279
|
warning: "bg-orange-500",
|
|
2148
2280
|
error: "bg-rose-600"
|
|
2149
2281
|
}, u = {
|
|
2150
|
-
info:
|
|
2151
|
-
success:
|
|
2152
|
-
warning:
|
|
2153
|
-
error:
|
|
2154
|
-
}, m = `relative overflow-hidden flex items-start gap-4 p-5 rounded-3xl shadow-lg border-none ${
|
|
2282
|
+
info: L.Info || s.createElement("span", {}, "?"),
|
|
2283
|
+
success: L.Check || s.createElement("span", {}, "✔"),
|
|
2284
|
+
warning: L.Search || s.createElement("span", {}, "!"),
|
|
2285
|
+
error: L.Close || s.createElement("span", {}, "x")
|
|
2286
|
+
}, m = `relative overflow-hidden flex items-start gap-4 p-5 rounded-3xl shadow-lg border-none ${d[c]}`;
|
|
2155
2287
|
return s.createElement("div", {
|
|
2156
|
-
className: `${m} ${
|
|
2288
|
+
className: `${m} ${o}`,
|
|
2157
2289
|
style: l,
|
|
2158
2290
|
...a
|
|
2159
2291
|
}, [
|
|
@@ -2179,12 +2311,12 @@ const Ws = x(tt), j = {
|
|
|
2179
2311
|
])
|
|
2180
2312
|
]);
|
|
2181
2313
|
});
|
|
2182
|
-
class
|
|
2314
|
+
class ot extends x {
|
|
2183
2315
|
constructor() {
|
|
2184
2316
|
super(...arguments);
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2317
|
+
n(this, "_title", "");
|
|
2318
|
+
n(this, "_description");
|
|
2319
|
+
n(this, "_intent", "info");
|
|
2188
2320
|
}
|
|
2189
2321
|
title(e) {
|
|
2190
2322
|
return this._title = e, this;
|
|
@@ -2204,25 +2336,25 @@ class rt extends b {
|
|
|
2204
2336
|
style: this.getStyle(),
|
|
2205
2337
|
...this._props
|
|
2206
2338
|
};
|
|
2207
|
-
return s.createElement(
|
|
2339
|
+
return s.createElement(nt, e);
|
|
2208
2340
|
}
|
|
2209
2341
|
}
|
|
2210
|
-
const
|
|
2342
|
+
const Rs = y(ot), lt = s.memo((i) => {
|
|
2211
2343
|
const {
|
|
2212
2344
|
value: t,
|
|
2213
2345
|
max: e,
|
|
2214
2346
|
color: r,
|
|
2215
|
-
height:
|
|
2347
|
+
height: o,
|
|
2216
2348
|
variant: l = "default",
|
|
2217
2349
|
label: a,
|
|
2218
2350
|
subLabel: c,
|
|
2219
|
-
items:
|
|
2351
|
+
items: d = [],
|
|
2220
2352
|
className: p,
|
|
2221
2353
|
style: u,
|
|
2222
2354
|
...m
|
|
2223
|
-
} = i,
|
|
2355
|
+
} = i, h = Math.min(100, Math.max(0, t / e * 100)), g = r || "#3B82F6";
|
|
2224
2356
|
if (l === "circular") {
|
|
2225
|
-
const k = typeof
|
|
2357
|
+
const k = typeof o == "number" ? o : 64, C = 8, b = (k - C) / 2, f = b * 2 * Math.PI, F = f - h / 100 * f;
|
|
2226
2358
|
return s.createElement("div", {
|
|
2227
2359
|
className: `relative inline-flex items-center justify-center ${p}`,
|
|
2228
2360
|
style: { width: k, height: k, ...u },
|
|
@@ -2238,21 +2370,21 @@ const Ls = x(rt), it = s.memo((i) => {
|
|
|
2238
2370
|
key: "track",
|
|
2239
2371
|
className: "text-gray-100",
|
|
2240
2372
|
stroke: "currentColor",
|
|
2241
|
-
strokeWidth:
|
|
2373
|
+
strokeWidth: C,
|
|
2242
2374
|
fill: "transparent",
|
|
2243
|
-
r:
|
|
2375
|
+
r: b,
|
|
2244
2376
|
cx: k / 2,
|
|
2245
2377
|
cy: k / 2
|
|
2246
2378
|
}),
|
|
2247
2379
|
s.createElement("circle", {
|
|
2248
2380
|
key: "prog",
|
|
2249
|
-
stroke:
|
|
2250
|
-
strokeWidth:
|
|
2251
|
-
strokeDasharray:
|
|
2381
|
+
stroke: g,
|
|
2382
|
+
strokeWidth: C,
|
|
2383
|
+
strokeDasharray: f,
|
|
2252
2384
|
strokeDashoffset: F,
|
|
2253
2385
|
strokeLinecap: "round",
|
|
2254
2386
|
fill: "transparent",
|
|
2255
|
-
r:
|
|
2387
|
+
r: b,
|
|
2256
2388
|
cx: k / 2,
|
|
2257
2389
|
cy: k / 2,
|
|
2258
2390
|
className: "transition-all duration-1000 ease-out"
|
|
@@ -2261,58 +2393,58 @@ const Ls = x(rt), it = s.memo((i) => {
|
|
|
2261
2393
|
s.createElement("span", {
|
|
2262
2394
|
key: "label",
|
|
2263
2395
|
className: "absolute text-sm font-bold text-gray-700"
|
|
2264
|
-
}, a || `${Math.round(
|
|
2396
|
+
}, a || `${Math.round(h)}%`)
|
|
2265
2397
|
]);
|
|
2266
2398
|
}
|
|
2267
2399
|
if (l === "pagination") {
|
|
2268
|
-
const
|
|
2400
|
+
const C = Math.floor(h / 100 * 5);
|
|
2269
2401
|
return s.createElement("div", {
|
|
2270
2402
|
className: `flex items-center gap-2 ${p}`,
|
|
2271
2403
|
style: u,
|
|
2272
2404
|
...m
|
|
2273
|
-
}, Array.from({ length: 5 }).map((
|
|
2274
|
-
const F =
|
|
2405
|
+
}, Array.from({ length: 5 }).map((b, f) => {
|
|
2406
|
+
const F = f === C;
|
|
2275
2407
|
return s.createElement("div", {
|
|
2276
|
-
key:
|
|
2408
|
+
key: f,
|
|
2277
2409
|
className: `h-3 rounded-full transition-all duration-300 ${F ? "w-8" : "w-3"}`,
|
|
2278
|
-
style: { backgroundColor:
|
|
2410
|
+
style: { backgroundColor: f <= C ? g : "#E5E7EB" }
|
|
2279
2411
|
});
|
|
2280
2412
|
}));
|
|
2281
2413
|
}
|
|
2282
2414
|
if (l === "timeline") {
|
|
2283
|
-
const k =
|
|
2415
|
+
const k = d.length ? d : [
|
|
2284
2416
|
{ title: "Order components", date: "Done" },
|
|
2285
2417
|
{ title: "Draft implementation", date: "In Progress" },
|
|
2286
2418
|
{ title: "Verify functionality", date: "Pending" }
|
|
2287
|
-
],
|
|
2419
|
+
], C = Math.floor(h / 100 * k.length);
|
|
2288
2420
|
return s.createElement("div", {
|
|
2289
2421
|
className: `flex flex-col relative ${p}`,
|
|
2290
2422
|
style: u,
|
|
2291
2423
|
...m
|
|
2292
|
-
}, k.map((
|
|
2293
|
-
const F =
|
|
2424
|
+
}, k.map((b, f) => {
|
|
2425
|
+
const F = f < C, j = f === C, W = f === k.length - 1, _ = F || j ? g : "#E5E7EB", z = F ? s.createElement("span", {}, "✓") : f + 1;
|
|
2294
2426
|
return s.createElement("div", {
|
|
2295
|
-
key:
|
|
2427
|
+
key: f,
|
|
2296
2428
|
className: "relative flex items-start gap-4 pb-8 last:pb-0"
|
|
2297
2429
|
}, [
|
|
2298
|
-
!
|
|
2430
|
+
!W && s.createElement("div", {
|
|
2299
2431
|
key: "tail",
|
|
2300
2432
|
className: "absolute left-[19px] top-10 bottom-0 w-0.5 transition-colors duration-500",
|
|
2301
|
-
style: { backgroundColor: F ?
|
|
2433
|
+
style: { backgroundColor: F ? g : "#E5E7EB" }
|
|
2302
2434
|
}),
|
|
2303
2435
|
s.createElement("div", {
|
|
2304
2436
|
key: "dot",
|
|
2305
2437
|
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",
|
|
2306
2438
|
style: {
|
|
2307
2439
|
borderColor: _,
|
|
2308
|
-
color: F ? "#fff" :
|
|
2440
|
+
color: F ? "#fff" : j ? _ : "#9CA3AF",
|
|
2309
2441
|
backgroundColor: F ? _ : "#fff"
|
|
2310
2442
|
}
|
|
2311
2443
|
}, z),
|
|
2312
2444
|
s.createElement("div", { key: "content", className: "pt-2" }, [
|
|
2313
|
-
s.createElement("div", { className: "text-sm font-bold text-gray-900 leading-none" },
|
|
2314
|
-
|
|
2315
|
-
|
|
2445
|
+
s.createElement("div", { className: "text-sm font-bold text-gray-900 leading-none" }, b.title),
|
|
2446
|
+
b.description && s.createElement("div", { className: "text-xs text-gray-500 mt-1.5" }, b.description),
|
|
2447
|
+
b.date && s.createElement("div", { className: "text-xs font-mono text-gray-400 mt-1" }, b.date)
|
|
2316
2448
|
])
|
|
2317
2449
|
]);
|
|
2318
2450
|
}));
|
|
@@ -2327,7 +2459,7 @@ const Ls = x(rt), it = s.memo((i) => {
|
|
|
2327
2459
|
s.createElement(
|
|
2328
2460
|
"span",
|
|
2329
2461
|
{ key: "l", className: "text-sm font-semibold text-gray-700" },
|
|
2330
|
-
a ? s.createElement("span", { className: "text-blue-600 mr-2" }, `${Math.round(
|
|
2462
|
+
a ? s.createElement("span", { className: "text-blue-600 mr-2" }, `${Math.round(h)}%`) : null,
|
|
2331
2463
|
a || "Update in progress..."
|
|
2332
2464
|
),
|
|
2333
2465
|
c && s.createElement("span", { key: "r", className: "text-xs font-medium text-gray-400" }, c)
|
|
@@ -2337,32 +2469,32 @@ const Ls = x(rt), it = s.memo((i) => {
|
|
|
2337
2469
|
className: "w-full bg-blue-50 h-1.5 rounded-full overflow-hidden"
|
|
2338
2470
|
}, s.createElement("div", {
|
|
2339
2471
|
className: "h-full rounded-full transition-all duration-1000 ease-out",
|
|
2340
|
-
style: { width: `${
|
|
2472
|
+
style: { width: `${h}%`, backgroundColor: g }
|
|
2341
2473
|
}))
|
|
2342
2474
|
]);
|
|
2343
2475
|
if (l === "chevron") {
|
|
2344
|
-
const
|
|
2476
|
+
const C = Math.floor(h / 100 * 3);
|
|
2345
2477
|
return s.createElement("div", {
|
|
2346
2478
|
className: `flex w-full rounded-lg overflow-hidden ${p}`,
|
|
2347
2479
|
style: u,
|
|
2348
2480
|
...m
|
|
2349
|
-
}, Array.from({ length: 3 }).map((
|
|
2350
|
-
const F =
|
|
2481
|
+
}, Array.from({ length: 3 }).map((b, f) => {
|
|
2482
|
+
const F = f <= C;
|
|
2351
2483
|
return s.createElement("div", {
|
|
2352
|
-
key:
|
|
2484
|
+
key: f,
|
|
2353
2485
|
className: "flex-1 h-10 flex items-center justify-center text-sm font-bold text-white transition-colors duration-300",
|
|
2354
2486
|
style: {
|
|
2355
|
-
backgroundColor: F ?
|
|
2356
|
-
clipPath:
|
|
2357
|
-
marginLeft:
|
|
2358
|
-
paddingLeft:
|
|
2359
|
-
zIndex: 3 -
|
|
2487
|
+
backgroundColor: F ? f === C ? g : "#60A5FA" : "#E5E7EB",
|
|
2488
|
+
clipPath: f === 0 ? "polygon(0% 0%, 85% 0%, 100% 50%, 85% 100%, 0% 100%)" : f === 2 ? "polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 15% 50%)" : "polygon(0% 0%, 85% 0%, 100% 50%, 85% 100%, 0% 100%, 15% 50%)",
|
|
2489
|
+
marginLeft: f === 0 ? 0 : "-10px",
|
|
2490
|
+
paddingLeft: f === 0 ? 0 : "10px",
|
|
2491
|
+
zIndex: 3 - f
|
|
2360
2492
|
}
|
|
2361
|
-
}, `Step ${
|
|
2493
|
+
}, `Step ${f + 1}`);
|
|
2362
2494
|
}));
|
|
2363
2495
|
}
|
|
2364
2496
|
if (l === "steps") {
|
|
2365
|
-
const
|
|
2497
|
+
const C = Math.ceil(h / 100 * 3);
|
|
2366
2498
|
return s.createElement("div", {
|
|
2367
2499
|
className: `w-full flex items-center justify-between relative ${p}`,
|
|
2368
2500
|
style: {
|
|
@@ -2378,21 +2510,21 @@ const Ls = x(rt), it = s.memo((i) => {
|
|
|
2378
2510
|
s.createElement("div", {
|
|
2379
2511
|
key: "line-active",
|
|
2380
2512
|
className: "absolute top-1/2 left-0 h-1.5 z-0 transform -translate-y-1/2 transition-all duration-500 rounded-full",
|
|
2381
|
-
style: { width: `${
|
|
2513
|
+
style: { width: `${h}%`, backgroundColor: g }
|
|
2382
2514
|
}),
|
|
2383
|
-
...Array.from({ length: 3 }).map((
|
|
2384
|
-
const F =
|
|
2515
|
+
...Array.from({ length: 3 }).map((b, f) => {
|
|
2516
|
+
const F = f + 1, j = F <= C, W = F < C;
|
|
2385
2517
|
return s.createElement("div", {
|
|
2386
|
-
key:
|
|
2387
|
-
className: `relative z-10 w-10 h-10 rounded-full flex items-center justify-center text-sm font-bold transition-all duration-300 border-4 ${
|
|
2388
|
-
style: { backgroundColor:
|
|
2389
|
-
},
|
|
2518
|
+
key: f,
|
|
2519
|
+
className: `relative z-10 w-10 h-10 rounded-full flex items-center justify-center text-sm font-bold transition-all duration-300 border-4 ${j ? "text-white border-white shadow-md" : "bg-gray-100 text-gray-400 border-gray-50"}`,
|
|
2520
|
+
style: { backgroundColor: j ? g : void 0 }
|
|
2521
|
+
}, W ? s.createElement("span", {}, "✔") : F);
|
|
2390
2522
|
})
|
|
2391
2523
|
]);
|
|
2392
2524
|
}
|
|
2393
|
-
const
|
|
2525
|
+
const N = o || 12;
|
|
2394
2526
|
if (l === "segments") {
|
|
2395
|
-
const
|
|
2527
|
+
const C = Math.round(h / 100 * 10);
|
|
2396
2528
|
return s.createElement(
|
|
2397
2529
|
"div",
|
|
2398
2530
|
{
|
|
@@ -2400,12 +2532,12 @@ const Ls = x(rt), it = s.memo((i) => {
|
|
|
2400
2532
|
style: u,
|
|
2401
2533
|
...m
|
|
2402
2534
|
},
|
|
2403
|
-
Array.from({ length: 10 }).map((
|
|
2404
|
-
key:
|
|
2535
|
+
Array.from({ length: 10 }).map((b, f) => s.createElement("div", {
|
|
2536
|
+
key: f,
|
|
2405
2537
|
className: "h-3 flex-1 rounded-sm transition-all duration-300 first:rounded-l-full last:rounded-r-full",
|
|
2406
2538
|
style: {
|
|
2407
|
-
height:
|
|
2408
|
-
backgroundColor:
|
|
2539
|
+
height: o || 12,
|
|
2540
|
+
backgroundColor: f < C ? g : "#E5E7EB"
|
|
2409
2541
|
}
|
|
2410
2542
|
}))
|
|
2411
2543
|
);
|
|
@@ -2420,14 +2552,14 @@ const Ls = x(rt), it = s.memo((i) => {
|
|
|
2420
2552
|
}));
|
|
2421
2553
|
const B = l === "labeled" ? s.createElement("div", {
|
|
2422
2554
|
className: "absolute -top-12 transform -translate-x-1/2 bg-slate-800 text-white text-xs font-bold py-1.5 px-3 rounded-lg shadow-xl whitespace-nowrap",
|
|
2423
|
-
style: { left: `${
|
|
2555
|
+
style: { left: `${h}%` }
|
|
2424
2556
|
}, [
|
|
2425
|
-
a || `${Math.round(
|
|
2557
|
+
a || `${Math.round(h)}%`,
|
|
2426
2558
|
s.createElement("div", { key: "arrow", className: "absolute -bottom-1 left-1/2 transform -translate-x-1/2 w-2 h-2 bg-slate-800 rotate-45" })
|
|
2427
|
-
]) : null,
|
|
2559
|
+
]) : null, I = l === "knob" ? s.createElement("div", {
|
|
2428
2560
|
className: "absolute top-1/2 right-0 w-7 h-7 bg-white rounded-full shadow-lg border-4 transform translate-x-1/2 -translate-y-1/2 flex items-center justify-center",
|
|
2429
|
-
style: { borderColor:
|
|
2430
|
-
}, s.createElement("div", { className: "w-1.5 h-1.5 rounded-full", style: { backgroundColor:
|
|
2561
|
+
style: { borderColor: g }
|
|
2562
|
+
}, s.createElement("div", { className: "w-1.5 h-1.5 rounded-full", style: { backgroundColor: g } })) : null;
|
|
2431
2563
|
return s.createElement("div", {
|
|
2432
2564
|
className: `relative w-full ${l === "labeled" ? "mt-8" : ""}`,
|
|
2433
2565
|
...m
|
|
@@ -2440,31 +2572,31 @@ const Ls = x(rt), it = s.memo((i) => {
|
|
|
2440
2572
|
className: `w-full bg-slate-100 rounded-full ${p}`,
|
|
2441
2573
|
style: {
|
|
2442
2574
|
width: "100%",
|
|
2443
|
-
height:
|
|
2575
|
+
height: N,
|
|
2444
2576
|
...u
|
|
2445
2577
|
}
|
|
2446
2578
|
},
|
|
2447
2579
|
s.createElement("div", {
|
|
2448
2580
|
className: "h-full transition-all duration-1000 ease-out rounded-full flex items-center justify-center relative",
|
|
2449
2581
|
style: {
|
|
2450
|
-
width: `${
|
|
2451
|
-
backgroundColor:
|
|
2582
|
+
width: `${h}%`,
|
|
2583
|
+
backgroundColor: g
|
|
2452
2584
|
}
|
|
2453
|
-
}, [v,
|
|
2585
|
+
}, [v, I])
|
|
2454
2586
|
)
|
|
2455
2587
|
]);
|
|
2456
2588
|
});
|
|
2457
|
-
class
|
|
2589
|
+
class at extends x {
|
|
2458
2590
|
constructor() {
|
|
2459
2591
|
super(...arguments);
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2592
|
+
n(this, "_value", 0);
|
|
2593
|
+
n(this, "_max", 100);
|
|
2594
|
+
n(this, "_color");
|
|
2595
|
+
n(this, "_height");
|
|
2596
|
+
n(this, "_variant", "default");
|
|
2597
|
+
n(this, "_label");
|
|
2598
|
+
n(this, "_subLabel");
|
|
2599
|
+
n(this, "_items");
|
|
2468
2600
|
}
|
|
2469
2601
|
value(e) {
|
|
2470
2602
|
return this._value = e, this;
|
|
@@ -2504,30 +2636,30 @@ class ot extends b {
|
|
|
2504
2636
|
style: this.getStyle(),
|
|
2505
2637
|
...this._props
|
|
2506
2638
|
};
|
|
2507
|
-
return s.createElement(
|
|
2639
|
+
return s.createElement(lt, e);
|
|
2508
2640
|
}
|
|
2509
2641
|
}
|
|
2510
|
-
const
|
|
2642
|
+
const Ts = y(at), ct = s.memo((i) => {
|
|
2511
2643
|
const {
|
|
2512
2644
|
text: t,
|
|
2513
2645
|
variant: e,
|
|
2514
2646
|
size: r,
|
|
2515
|
-
onPress:
|
|
2647
|
+
onPress: o,
|
|
2516
2648
|
disabled: l,
|
|
2517
2649
|
icon: a,
|
|
2518
2650
|
shape: c,
|
|
2519
|
-
shadow:
|
|
2651
|
+
shadow: d,
|
|
2520
2652
|
className: p,
|
|
2521
2653
|
style: u,
|
|
2522
2654
|
...m
|
|
2523
|
-
} = i,
|
|
2524
|
-
Object.assign(
|
|
2655
|
+
} = i, h = { ...u };
|
|
2656
|
+
Object.assign(h, {
|
|
2525
2657
|
sm: { padding: "6px 14px", fontSize: "13px", gap: "6px", height: "32px" },
|
|
2526
2658
|
md: { padding: "10px 22px", fontSize: "15px", gap: "8px", height: "44px" },
|
|
2527
2659
|
lg: { padding: "16px 32px", fontSize: "17px", gap: "10px", height: "56px" }
|
|
2528
|
-
}[r]), c === "pill" ?
|
|
2529
|
-
const
|
|
2530
|
-
return a &&
|
|
2660
|
+
}[r]), c === "pill" ? h.borderRadius = "9999px" : c === "square" ? h.borderRadius = "12px" : h.borderRadius = "14px", d === "soft" && (h.boxShadow = "0 8px 20px -6px rgba(59, 130, 246, 0.4)"), e === "ghost" ? (h.backgroundColor = "transparent", h.color = "#4B5563", h.boxShadow = "none", h.border = "1px solid transparent") : e === "text" ? (h.backgroundColor = "transparent", h.color = "#4B5563", h.boxShadow = "none", h.border = "none", h.paddingLeft = "8px", h.paddingRight = "8px") : e === "soft" ? (h.backgroundColor = "#EEF2FF", h.color = "#4F46E5", h.boxShadow = "none", h.border = "none") : e === "outline" && (h.backgroundColor = "transparent", h.border = "1.5px solid #E5E7EB", h.color = "#374151", h.boxShadow = "none");
|
|
2661
|
+
const N = [];
|
|
2662
|
+
return a && N.push(a), t && N.push(t), s.createElement(
|
|
2531
2663
|
"button",
|
|
2532
2664
|
{
|
|
2533
2665
|
className: p,
|
|
@@ -2539,30 +2671,36 @@ const Ms = x(ot), nt = s.memo((i) => {
|
|
|
2539
2671
|
opacity: l ? 0.6 : 1,
|
|
2540
2672
|
fontWeight: 600,
|
|
2541
2673
|
whiteSpace: "nowrap",
|
|
2542
|
-
...
|
|
2674
|
+
...h
|
|
2543
2675
|
},
|
|
2544
2676
|
onClick: (v) => {
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2677
|
+
if (!l) {
|
|
2678
|
+
if (document.documentElement.classList.contains("fibo-theme-material")) {
|
|
2679
|
+
const B = v.currentTarget;
|
|
2680
|
+
import("./effects-D16XdB_d.mjs").then(({ createRipple: I }) => {
|
|
2681
|
+
I(v, B);
|
|
2682
|
+
});
|
|
2683
|
+
}
|
|
2684
|
+
o == null || o();
|
|
2685
|
+
}
|
|
2548
2686
|
},
|
|
2549
2687
|
disabled: l,
|
|
2550
2688
|
...m
|
|
2551
2689
|
},
|
|
2552
|
-
...
|
|
2690
|
+
...N
|
|
2553
2691
|
);
|
|
2554
2692
|
});
|
|
2555
|
-
class
|
|
2693
|
+
class ht extends x {
|
|
2556
2694
|
constructor(e = "") {
|
|
2557
2695
|
super();
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2696
|
+
n(this, "_text", "");
|
|
2697
|
+
n(this, "_variant", "elevated");
|
|
2698
|
+
n(this, "_size", "md");
|
|
2699
|
+
n(this, "_onPress");
|
|
2700
|
+
n(this, "_disabled", !1);
|
|
2701
|
+
n(this, "_icon");
|
|
2702
|
+
n(this, "_shape", "default");
|
|
2703
|
+
n(this, "_shadow", "none");
|
|
2566
2704
|
this._text = e;
|
|
2567
2705
|
}
|
|
2568
2706
|
text(e) {
|
|
@@ -2612,40 +2750,50 @@ class lt extends b {
|
|
|
2612
2750
|
style: this.getStyle(),
|
|
2613
2751
|
...this._props
|
|
2614
2752
|
};
|
|
2615
|
-
return s.createElement(
|
|
2753
|
+
return s.createElement(ct, r);
|
|
2616
2754
|
}
|
|
2617
2755
|
}
|
|
2618
|
-
const
|
|
2756
|
+
const K = y(ht), dt = (i, t) => {
|
|
2619
2757
|
let e = 0;
|
|
2620
2758
|
const r = i.replace(/\D/g, "").split("");
|
|
2621
|
-
let
|
|
2759
|
+
let o = "";
|
|
2622
2760
|
for (let l = 0; l < t.length && !(e >= r.length); l++)
|
|
2623
|
-
t[l] === "9" ?
|
|
2624
|
-
return
|
|
2625
|
-
},
|
|
2626
|
-
const t = s.useId(), e = i.id || t, [r,
|
|
2761
|
+
t[l] === "9" ? o += r[e++] : o += t[l];
|
|
2762
|
+
return o;
|
|
2763
|
+
}, ut = s.memo((i) => {
|
|
2764
|
+
const t = s.useId(), e = i.id || t, [r, o] = s.useState(!1), {
|
|
2627
2765
|
containerClass: l,
|
|
2628
2766
|
containerStyle: a,
|
|
2629
2767
|
label: c,
|
|
2630
|
-
error:
|
|
2768
|
+
error: d,
|
|
2631
2769
|
mask: p,
|
|
2632
2770
|
type: u,
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2771
|
+
value: m,
|
|
2772
|
+
// Can be string or Signal
|
|
2773
|
+
onChange: h,
|
|
2774
|
+
...g
|
|
2775
|
+
} = i, N = m instanceof Z, [v, B] = $(N ? m.value : m);
|
|
2776
|
+
M(() => {
|
|
2777
|
+
if (N)
|
|
2778
|
+
return m.subscribe((f) => {
|
|
2779
|
+
B(f);
|
|
2780
|
+
});
|
|
2781
|
+
B(m);
|
|
2782
|
+
}, [m, N]);
|
|
2783
|
+
const I = u === "password", k = I && r ? "text" : u, C = (b) => {
|
|
2784
|
+
let f = b.target.value;
|
|
2637
2785
|
if (p) {
|
|
2638
|
-
|
|
2639
|
-
const
|
|
2640
|
-
...
|
|
2786
|
+
f = dt(f, p);
|
|
2787
|
+
const F = {
|
|
2788
|
+
...b,
|
|
2641
2789
|
target: {
|
|
2642
|
-
...
|
|
2643
|
-
value:
|
|
2790
|
+
...b.target,
|
|
2791
|
+
value: f
|
|
2644
2792
|
}
|
|
2645
2793
|
};
|
|
2646
|
-
m == null ||
|
|
2794
|
+
N && (m.value = f), h == null || h(F);
|
|
2647
2795
|
} else
|
|
2648
|
-
m == null ||
|
|
2796
|
+
N && (m.value = f), h == null || h(b);
|
|
2649
2797
|
};
|
|
2650
2798
|
return s.createElement(
|
|
2651
2799
|
"div",
|
|
@@ -2655,9 +2803,10 @@ const U = x(lt), at = (i, t) => {
|
|
|
2655
2803
|
key: "input",
|
|
2656
2804
|
id: e,
|
|
2657
2805
|
className: "fibo-textfield-input",
|
|
2658
|
-
type:
|
|
2659
|
-
onChange:
|
|
2660
|
-
|
|
2806
|
+
type: k,
|
|
2807
|
+
onChange: C,
|
|
2808
|
+
value: v,
|
|
2809
|
+
...g
|
|
2661
2810
|
}),
|
|
2662
2811
|
c && s.createElement(
|
|
2663
2812
|
"label",
|
|
@@ -2668,13 +2817,13 @@ const U = x(lt), at = (i, t) => {
|
|
|
2668
2817
|
},
|
|
2669
2818
|
c
|
|
2670
2819
|
),
|
|
2671
|
-
|
|
2820
|
+
I && s.createElement(
|
|
2672
2821
|
"button",
|
|
2673
2822
|
{
|
|
2674
2823
|
key: "toggle",
|
|
2675
2824
|
type: "button",
|
|
2676
2825
|
className: "absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-400 hover:text-gray-600 focus:outline-none",
|
|
2677
|
-
onClick: () =>
|
|
2826
|
+
onClick: () => o(!r),
|
|
2678
2827
|
tabIndex: -1
|
|
2679
2828
|
},
|
|
2680
2829
|
r ? s.createElement(
|
|
@@ -2690,24 +2839,24 @@ const U = x(lt), at = (i, t) => {
|
|
|
2690
2839
|
)
|
|
2691
2840
|
)
|
|
2692
2841
|
]),
|
|
2693
|
-
|
|
2842
|
+
d && s.createElement(
|
|
2694
2843
|
"span",
|
|
2695
2844
|
{ className: "text-[var(--fibo-error)] text-xs mt-1 ml-1" },
|
|
2696
|
-
|
|
2845
|
+
d
|
|
2697
2846
|
)
|
|
2698
2847
|
);
|
|
2699
2848
|
});
|
|
2700
|
-
class
|
|
2849
|
+
class mt extends x {
|
|
2701
2850
|
constructor(e = "") {
|
|
2702
2851
|
super();
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2852
|
+
n(this, "_value", "");
|
|
2853
|
+
n(this, "_label", "");
|
|
2854
|
+
n(this, "_placeholder", "");
|
|
2855
|
+
n(this, "_type", "text");
|
|
2856
|
+
n(this, "_disabled", !1);
|
|
2857
|
+
n(this, "_error");
|
|
2858
|
+
n(this, "_mask");
|
|
2859
|
+
n(this, "_onChange");
|
|
2711
2860
|
this._value = e;
|
|
2712
2861
|
}
|
|
2713
2862
|
value(e) {
|
|
@@ -2745,21 +2894,21 @@ class ht extends b {
|
|
|
2745
2894
|
type: this._type,
|
|
2746
2895
|
mask: this._mask,
|
|
2747
2896
|
disabled: this._disabled,
|
|
2748
|
-
onChange: (
|
|
2897
|
+
onChange: (o) => {
|
|
2749
2898
|
var l;
|
|
2750
|
-
(l = this._onChange) == null || l.call(this,
|
|
2899
|
+
(l = this._onChange) == null || l.call(this, o.target.value);
|
|
2751
2900
|
},
|
|
2752
2901
|
...this._props
|
|
2753
2902
|
};
|
|
2754
|
-
return s.createElement(
|
|
2903
|
+
return s.createElement(ut, r);
|
|
2755
2904
|
}
|
|
2756
2905
|
}
|
|
2757
|
-
const
|
|
2906
|
+
const pt = y(mt), ft = s.memo((i) => {
|
|
2758
2907
|
const {
|
|
2759
2908
|
checked: t,
|
|
2760
2909
|
onChange: e,
|
|
2761
2910
|
label: r,
|
|
2762
|
-
disabled:
|
|
2911
|
+
disabled: o,
|
|
2763
2912
|
className: l,
|
|
2764
2913
|
style: a
|
|
2765
2914
|
} = i, c = {
|
|
@@ -2768,11 +2917,11 @@ const dt = x(ht), ut = s.memo((i) => {
|
|
|
2768
2917
|
borderRadius: "9999px",
|
|
2769
2918
|
position: "relative",
|
|
2770
2919
|
transition: "background-color 0.2s ease-in-out",
|
|
2771
|
-
cursor:
|
|
2772
|
-
opacity:
|
|
2920
|
+
cursor: o ? "not-allowed" : "pointer",
|
|
2921
|
+
opacity: o ? 0.5 : 1,
|
|
2773
2922
|
backgroundColor: t ? "var(--fibo-primary, #3B82F6)" : "#E5E7EB",
|
|
2774
2923
|
...a
|
|
2775
|
-
},
|
|
2924
|
+
}, d = {
|
|
2776
2925
|
width: "20px",
|
|
2777
2926
|
height: "20px",
|
|
2778
2927
|
borderRadius: "50%",
|
|
@@ -2795,10 +2944,10 @@ const dt = x(ht), ut = s.memo((i) => {
|
|
|
2795
2944
|
className: "fibo-switch-track",
|
|
2796
2945
|
style: c,
|
|
2797
2946
|
onClick: (p) => {
|
|
2798
|
-
p.preventDefault(), !
|
|
2947
|
+
p.preventDefault(), !o && e && e(!t);
|
|
2799
2948
|
}
|
|
2800
2949
|
},
|
|
2801
|
-
s.createElement("div", { style:
|
|
2950
|
+
s.createElement("div", { style: d })
|
|
2802
2951
|
),
|
|
2803
2952
|
r && s.createElement(
|
|
2804
2953
|
"span",
|
|
@@ -2808,19 +2957,19 @@ const dt = x(ht), ut = s.memo((i) => {
|
|
|
2808
2957
|
s.createElement("input", {
|
|
2809
2958
|
type: "checkbox",
|
|
2810
2959
|
checked: t,
|
|
2811
|
-
disabled:
|
|
2960
|
+
disabled: o,
|
|
2812
2961
|
className: "sr-only",
|
|
2813
|
-
onChange: (p) => !
|
|
2962
|
+
onChange: (p) => !o && (e == null ? void 0 : e(p.target.checked))
|
|
2814
2963
|
})
|
|
2815
2964
|
);
|
|
2816
2965
|
});
|
|
2817
|
-
class
|
|
2966
|
+
class gt extends x {
|
|
2818
2967
|
constructor() {
|
|
2819
2968
|
super(...arguments);
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2969
|
+
n(this, "_checked", !1);
|
|
2970
|
+
n(this, "_onChange");
|
|
2971
|
+
n(this, "_label");
|
|
2972
|
+
n(this, "_disabled", !1);
|
|
2824
2973
|
}
|
|
2825
2974
|
checked(e) {
|
|
2826
2975
|
return this._checked = e, this;
|
|
@@ -2843,30 +2992,30 @@ class mt extends b {
|
|
|
2843
2992
|
className: this.getClassName(),
|
|
2844
2993
|
style: this.getStyle()
|
|
2845
2994
|
};
|
|
2846
|
-
return s.createElement(
|
|
2995
|
+
return s.createElement(ft, e);
|
|
2847
2996
|
}
|
|
2848
2997
|
}
|
|
2849
|
-
const
|
|
2998
|
+
const bt = y(gt), xt = s.memo((i) => {
|
|
2850
2999
|
const {
|
|
2851
3000
|
checked: t,
|
|
2852
3001
|
onChange: e,
|
|
2853
3002
|
label: r,
|
|
2854
|
-
disabled:
|
|
3003
|
+
disabled: o,
|
|
2855
3004
|
indeterminate: l,
|
|
2856
3005
|
className: a,
|
|
2857
3006
|
style: c
|
|
2858
|
-
} = i,
|
|
3007
|
+
} = i, d = t || l, p = {
|
|
2859
3008
|
width: "20px",
|
|
2860
3009
|
height: "20px",
|
|
2861
3010
|
borderRadius: "6px",
|
|
2862
|
-
border:
|
|
2863
|
-
backgroundColor:
|
|
3011
|
+
border: d ? "none" : "2px solid #D1D5DB",
|
|
3012
|
+
backgroundColor: d ? "var(--fibo-primary, #3B82F6)" : "transparent",
|
|
2864
3013
|
display: "flex",
|
|
2865
3014
|
alignItems: "center",
|
|
2866
3015
|
justifyContent: "center",
|
|
2867
3016
|
transition: "all 0.2s",
|
|
2868
|
-
cursor:
|
|
2869
|
-
opacity:
|
|
3017
|
+
cursor: o ? "not-allowed" : "pointer",
|
|
3018
|
+
opacity: o ? 0.5 : 1,
|
|
2870
3019
|
...c
|
|
2871
3020
|
};
|
|
2872
3021
|
let u = null;
|
|
@@ -2897,7 +3046,7 @@ const pt = x(mt), ft = s.memo((i) => {
|
|
|
2897
3046
|
className: "fibo-checkbox-box",
|
|
2898
3047
|
style: p,
|
|
2899
3048
|
onClick: (m) => {
|
|
2900
|
-
m.preventDefault(), !
|
|
3049
|
+
m.preventDefault(), !o && e && e(!t);
|
|
2901
3050
|
}
|
|
2902
3051
|
},
|
|
2903
3052
|
u
|
|
@@ -2910,20 +3059,20 @@ const pt = x(mt), ft = s.memo((i) => {
|
|
|
2910
3059
|
s.createElement("input", {
|
|
2911
3060
|
type: "checkbox",
|
|
2912
3061
|
checked: t,
|
|
2913
|
-
disabled:
|
|
3062
|
+
disabled: o,
|
|
2914
3063
|
className: "sr-only",
|
|
2915
|
-
onChange: (m) => !
|
|
3064
|
+
onChange: (m) => !o && (e == null ? void 0 : e(m.target.checked))
|
|
2916
3065
|
})
|
|
2917
3066
|
);
|
|
2918
3067
|
});
|
|
2919
|
-
class
|
|
3068
|
+
class yt extends x {
|
|
2920
3069
|
constructor() {
|
|
2921
3070
|
super(...arguments);
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
3071
|
+
n(this, "_checked", !1);
|
|
3072
|
+
n(this, "_onChange");
|
|
3073
|
+
n(this, "_label");
|
|
3074
|
+
n(this, "_disabled", !1);
|
|
3075
|
+
n(this, "_indeterminate", !1);
|
|
2927
3076
|
}
|
|
2928
3077
|
checked(e) {
|
|
2929
3078
|
return this._checked = e, this;
|
|
@@ -2950,15 +3099,15 @@ class gt extends b {
|
|
|
2950
3099
|
className: this.getClassName(),
|
|
2951
3100
|
style: this.getStyle()
|
|
2952
3101
|
};
|
|
2953
|
-
return s.createElement(
|
|
3102
|
+
return s.createElement(xt, e);
|
|
2954
3103
|
}
|
|
2955
3104
|
}
|
|
2956
|
-
const
|
|
3105
|
+
const Ps = y(yt), _t = s.memo((i) => {
|
|
2957
3106
|
const {
|
|
2958
3107
|
value: t,
|
|
2959
3108
|
options: e,
|
|
2960
3109
|
onChange: r,
|
|
2961
|
-
name:
|
|
3110
|
+
name: o,
|
|
2962
3111
|
direction: l,
|
|
2963
3112
|
className: a,
|
|
2964
3113
|
style: c
|
|
@@ -2969,12 +3118,12 @@ const Rs = x(gt), bt = s.memo((i) => {
|
|
|
2969
3118
|
className: `fibo-radio-group flex ${l === "vertical" ? "flex-col gap-2" : "flex-row gap-4"} ${a}`,
|
|
2970
3119
|
style: c
|
|
2971
3120
|
},
|
|
2972
|
-
e.map((
|
|
2973
|
-
const p = t ===
|
|
3121
|
+
e.map((d) => {
|
|
3122
|
+
const p = t === d.value, u = d.disabled;
|
|
2974
3123
|
return s.createElement(
|
|
2975
3124
|
"label",
|
|
2976
3125
|
{
|
|
2977
|
-
key:
|
|
3126
|
+
key: d.value,
|
|
2978
3127
|
className: `flex items-center gap-2 cursor-pointer ${u ? "opacity-50 cursor-not-allowed" : ""}`
|
|
2979
3128
|
},
|
|
2980
3129
|
s.createElement(
|
|
@@ -2991,31 +3140,31 @@ const Rs = x(gt), bt = s.memo((i) => {
|
|
|
2991
3140
|
},
|
|
2992
3141
|
s.createElement("input", {
|
|
2993
3142
|
type: "radio",
|
|
2994
|
-
name:
|
|
2995
|
-
value:
|
|
3143
|
+
name: o,
|
|
3144
|
+
value: d.value,
|
|
2996
3145
|
checked: p,
|
|
2997
3146
|
disabled: u,
|
|
2998
3147
|
className: "sr-only",
|
|
2999
|
-
onChange: () => !u && (r == null ? void 0 : r(
|
|
3148
|
+
onChange: () => !u && (r == null ? void 0 : r(d.value))
|
|
3000
3149
|
})
|
|
3001
3150
|
),
|
|
3002
3151
|
s.createElement(
|
|
3003
3152
|
"span",
|
|
3004
3153
|
{ className: "text-sm text-gray-700" },
|
|
3005
|
-
|
|
3154
|
+
d.label
|
|
3006
3155
|
)
|
|
3007
3156
|
);
|
|
3008
3157
|
})
|
|
3009
3158
|
);
|
|
3010
3159
|
});
|
|
3011
|
-
class
|
|
3160
|
+
class kt extends x {
|
|
3012
3161
|
constructor() {
|
|
3013
3162
|
super(...arguments);
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3163
|
+
n(this, "_value", "");
|
|
3164
|
+
n(this, "_options", []);
|
|
3165
|
+
n(this, "_onChange");
|
|
3166
|
+
n(this, "_name", `radio-group-${Math.random().toString(36).substr(2, 9)}`);
|
|
3167
|
+
n(this, "_direction", "vertical");
|
|
3019
3168
|
}
|
|
3020
3169
|
value(e) {
|
|
3021
3170
|
return this._value = e, this;
|
|
@@ -3042,20 +3191,20 @@ class xt extends b {
|
|
|
3042
3191
|
className: this.getClassName(),
|
|
3043
3192
|
style: this.getStyle()
|
|
3044
3193
|
};
|
|
3045
|
-
return s.createElement(
|
|
3194
|
+
return s.createElement(_t, e);
|
|
3046
3195
|
}
|
|
3047
3196
|
}
|
|
3048
|
-
const
|
|
3197
|
+
const Ds = y(kt), vt = s.memo((i) => {
|
|
3049
3198
|
const t = s.useId(), e = i.id || t, {
|
|
3050
3199
|
containerClass: r,
|
|
3051
|
-
containerStyle:
|
|
3200
|
+
containerStyle: o,
|
|
3052
3201
|
label: l,
|
|
3053
3202
|
error: a,
|
|
3054
3203
|
...c
|
|
3055
3204
|
} = i;
|
|
3056
3205
|
return s.createElement(
|
|
3057
3206
|
"div",
|
|
3058
|
-
{ className: r, style:
|
|
3207
|
+
{ className: r, style: o },
|
|
3059
3208
|
s.createElement("textarea", {
|
|
3060
3209
|
id: e,
|
|
3061
3210
|
className: "fibo-textarea-input",
|
|
@@ -3076,17 +3225,17 @@ const Ts = x(xt), yt = s.memo((i) => {
|
|
|
3076
3225
|
)
|
|
3077
3226
|
);
|
|
3078
3227
|
});
|
|
3079
|
-
class
|
|
3228
|
+
class wt extends x {
|
|
3080
3229
|
constructor() {
|
|
3081
3230
|
super(...arguments);
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3231
|
+
n(this, "_value", "");
|
|
3232
|
+
n(this, "_label", "");
|
|
3233
|
+
n(this, "_placeholder", "");
|
|
3234
|
+
n(this, "_disabled", !1);
|
|
3235
|
+
n(this, "_rows", 4);
|
|
3236
|
+
n(this, "_error");
|
|
3237
|
+
n(this, "_resize", "vertical");
|
|
3238
|
+
n(this, "_onChange");
|
|
3090
3239
|
}
|
|
3091
3240
|
value(e) {
|
|
3092
3241
|
return this._value = e, this;
|
|
@@ -3123,50 +3272,50 @@ class _t extends b {
|
|
|
3123
3272
|
placeholder: this._placeholder || " ",
|
|
3124
3273
|
disabled: this._disabled,
|
|
3125
3274
|
style: { resize: this._resize },
|
|
3126
|
-
onChange: (
|
|
3275
|
+
onChange: (o) => {
|
|
3127
3276
|
var l;
|
|
3128
|
-
(l = this._onChange) == null || l.call(this,
|
|
3277
|
+
(l = this._onChange) == null || l.call(this, o.target.value);
|
|
3129
3278
|
},
|
|
3130
3279
|
...this._props
|
|
3131
3280
|
};
|
|
3132
|
-
return s.createElement(
|
|
3281
|
+
return s.createElement(vt, r);
|
|
3133
3282
|
}
|
|
3134
3283
|
}
|
|
3135
|
-
const
|
|
3136
|
-
const t = s.useId(), e = i.id || t, [r,
|
|
3284
|
+
const Os = y(wt), Nt = s.memo((i) => {
|
|
3285
|
+
const t = s.useId(), e = i.id || t, [r, o] = $(!1), l = U(null), {
|
|
3137
3286
|
containerClass: a,
|
|
3138
3287
|
containerStyle: c,
|
|
3139
|
-
label:
|
|
3288
|
+
label: d,
|
|
3140
3289
|
error: p,
|
|
3141
3290
|
value: u,
|
|
3142
3291
|
options: m = [],
|
|
3143
|
-
placeholder:
|
|
3144
|
-
onChange:
|
|
3145
|
-
disabled:
|
|
3292
|
+
placeholder: h,
|
|
3293
|
+
onChange: g,
|
|
3294
|
+
disabled: N,
|
|
3146
3295
|
multiple: v,
|
|
3147
3296
|
...B
|
|
3148
3297
|
} = i;
|
|
3149
|
-
|
|
3150
|
-
const
|
|
3151
|
-
l.current && !l.current.contains(
|
|
3298
|
+
M(() => {
|
|
3299
|
+
const b = (f) => {
|
|
3300
|
+
l.current && !l.current.contains(f.target) && o(!1);
|
|
3152
3301
|
};
|
|
3153
|
-
return document.addEventListener("mousedown",
|
|
3302
|
+
return document.addEventListener("mousedown", b), () => document.removeEventListener("mousedown", b);
|
|
3154
3303
|
}, []);
|
|
3155
|
-
const
|
|
3304
|
+
const I = (b) => v ? Array.isArray(u) && u.includes(b) : u === b;
|
|
3156
3305
|
let k = "";
|
|
3157
3306
|
if (v)
|
|
3158
|
-
Array.isArray(u) && u.length > 0 && (k = m.filter((
|
|
3307
|
+
Array.isArray(u) && u.length > 0 && (k = m.filter((b) => u.includes(b.value)).map((b) => b.label).join(", "));
|
|
3159
3308
|
else {
|
|
3160
|
-
const
|
|
3161
|
-
k =
|
|
3309
|
+
const b = m.find((f) => f.value === u);
|
|
3310
|
+
k = b ? b.label : "";
|
|
3162
3311
|
}
|
|
3163
|
-
const
|
|
3164
|
-
if (!
|
|
3312
|
+
const C = (b) => {
|
|
3313
|
+
if (!N)
|
|
3165
3314
|
if (v) {
|
|
3166
|
-
const
|
|
3167
|
-
F > -1 ?
|
|
3315
|
+
const f = Array.isArray(u) ? [...u] : [], F = f.indexOf(b);
|
|
3316
|
+
F > -1 ? f.splice(F, 1) : f.push(b), g == null || g(f);
|
|
3168
3317
|
} else
|
|
3169
|
-
|
|
3318
|
+
g == null || g(b), o(!1);
|
|
3170
3319
|
};
|
|
3171
3320
|
return s.createElement(
|
|
3172
3321
|
"div",
|
|
@@ -3180,12 +3329,12 @@ const Ps = x(_t), kt = s.memo((i) => {
|
|
|
3180
3329
|
key: "trigger",
|
|
3181
3330
|
id: e,
|
|
3182
3331
|
type: "button",
|
|
3183
|
-
disabled:
|
|
3332
|
+
disabled: N,
|
|
3184
3333
|
className: `fibo-textfield-input text-left w-full flex items-center justify-between ${k ? "" : "text-gray-400"}`,
|
|
3185
|
-
onClick: () => !
|
|
3334
|
+
onClick: () => !N && o(!r),
|
|
3186
3335
|
...B
|
|
3187
3336
|
}, [
|
|
3188
|
-
s.createElement("span", { key: "text", className: "truncate" }, k ||
|
|
3337
|
+
s.createElement("span", { key: "text", className: "truncate" }, k || h || " "),
|
|
3189
3338
|
s.createElement("svg", {
|
|
3190
3339
|
key: "icon",
|
|
3191
3340
|
className: `w-4 h-4 transition-transform ${r ? "rotate-180" : ""}`,
|
|
@@ -3194,27 +3343,27 @@ const Ps = x(_t), kt = s.memo((i) => {
|
|
|
3194
3343
|
viewBox: "0 0 24 24"
|
|
3195
3344
|
}, s.createElement("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M19 9l-7 7-7-7" }))
|
|
3196
3345
|
]),
|
|
3197
|
-
|
|
3346
|
+
d && s.createElement(
|
|
3198
3347
|
"label",
|
|
3199
3348
|
{
|
|
3200
3349
|
key: "label",
|
|
3201
3350
|
htmlFor: e,
|
|
3202
3351
|
className: "fibo-textfield-label"
|
|
3203
3352
|
},
|
|
3204
|
-
|
|
3353
|
+
d
|
|
3205
3354
|
),
|
|
3206
3355
|
r && s.createElement("div", {
|
|
3207
3356
|
key: "dropdown",
|
|
3208
3357
|
className: "absolute z-50 w-full mt-1 bg-[var(--fibo-surface)] border border-[var(--fibo-outline)] rounded-md shadow-lg max-h-60 overflow-auto focus:outline-none"
|
|
3209
|
-
}, m.map((
|
|
3210
|
-
const
|
|
3358
|
+
}, m.map((b) => {
|
|
3359
|
+
const f = I(b.value);
|
|
3211
3360
|
return s.createElement("div", {
|
|
3212
|
-
key:
|
|
3213
|
-
className: `px-4 py-2 cursor-pointer text-sm hover:bg-[var(--fibo-primary-container)] hover:text-[var(--fibo-on-primary-container)] flex items-center justify-between ${
|
|
3214
|
-
onClick: () =>
|
|
3361
|
+
key: b.value,
|
|
3362
|
+
className: `px-4 py-2 cursor-pointer text-sm hover:bg-[var(--fibo-primary-container)] hover:text-[var(--fibo-on-primary-container)] flex items-center justify-between ${f ? "bg-[var(--fibo-primary-container)] text-[var(--fibo-on-primary-container)] font-medium" : "text-[var(--fibo-on-surface)]"}`,
|
|
3363
|
+
onClick: () => C(b.value)
|
|
3215
3364
|
}, [
|
|
3216
|
-
s.createElement("span", { key: "label" },
|
|
3217
|
-
|
|
3365
|
+
s.createElement("span", { key: "label" }, b.label),
|
|
3366
|
+
f && s.createElement("svg", {
|
|
3218
3367
|
key: "check",
|
|
3219
3368
|
className: "w-4 h-4 text-[var(--fibo-primary)]",
|
|
3220
3369
|
viewBox: "0 0 20 20",
|
|
@@ -3230,17 +3379,17 @@ const Ps = x(_t), kt = s.memo((i) => {
|
|
|
3230
3379
|
)
|
|
3231
3380
|
);
|
|
3232
3381
|
});
|
|
3233
|
-
class
|
|
3382
|
+
class Et extends x {
|
|
3234
3383
|
constructor() {
|
|
3235
3384
|
super(...arguments);
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3385
|
+
n(this, "_value", "");
|
|
3386
|
+
n(this, "_label", "");
|
|
3387
|
+
n(this, "_placeholder", "");
|
|
3388
|
+
n(this, "_disabled", !1);
|
|
3389
|
+
n(this, "_error");
|
|
3390
|
+
n(this, "_multiple", !1);
|
|
3391
|
+
n(this, "_options", []);
|
|
3392
|
+
n(this, "_onChange");
|
|
3244
3393
|
}
|
|
3245
3394
|
value(e) {
|
|
3246
3395
|
return this._value = e, this;
|
|
@@ -3280,64 +3429,64 @@ class vt extends b {
|
|
|
3280
3429
|
onChange: this._onChange,
|
|
3281
3430
|
...this._props
|
|
3282
3431
|
};
|
|
3283
|
-
return s.createElement(
|
|
3432
|
+
return s.createElement(Nt, r);
|
|
3284
3433
|
}
|
|
3285
3434
|
}
|
|
3286
|
-
const
|
|
3287
|
-
const t = s.useId(), e = i.id || t, [r,
|
|
3288
|
-
containerClass:
|
|
3435
|
+
const Hs = y(Et), Ct = s.memo((i) => {
|
|
3436
|
+
const t = s.useId(), e = i.id || t, [r, o] = $(!1), [l, a] = $(""), c = U(null), {
|
|
3437
|
+
containerClass: d,
|
|
3289
3438
|
containerStyle: p,
|
|
3290
3439
|
label: u,
|
|
3291
3440
|
error: m,
|
|
3292
|
-
value:
|
|
3293
|
-
options:
|
|
3294
|
-
placeholder:
|
|
3441
|
+
value: h,
|
|
3442
|
+
options: g = [],
|
|
3443
|
+
placeholder: N,
|
|
3295
3444
|
onChange: v,
|
|
3296
3445
|
onAdd: B,
|
|
3297
|
-
disabled:
|
|
3446
|
+
disabled: I,
|
|
3298
3447
|
multiple: k,
|
|
3299
|
-
...
|
|
3448
|
+
...C
|
|
3300
3449
|
} = i;
|
|
3301
|
-
|
|
3450
|
+
M(() => {
|
|
3302
3451
|
if (!k) {
|
|
3303
3452
|
const _ = i.options.find((z) => z.value === i.value);
|
|
3304
3453
|
_ && !r && l !== _.label && a(_.label);
|
|
3305
3454
|
}
|
|
3306
3455
|
}, [i.value, i.options, r, k]);
|
|
3307
|
-
const
|
|
3456
|
+
const b = g.filter(
|
|
3308
3457
|
(_) => _.label.toLowerCase().includes(l.toLowerCase())
|
|
3309
3458
|
);
|
|
3310
|
-
|
|
3459
|
+
M(() => {
|
|
3311
3460
|
const _ = (z) => {
|
|
3312
3461
|
if (c.current && !c.current.contains(z.target))
|
|
3313
|
-
if (
|
|
3462
|
+
if (o(!1), k)
|
|
3314
3463
|
a("");
|
|
3315
3464
|
else {
|
|
3316
|
-
const
|
|
3317
|
-
a(
|
|
3465
|
+
const D = g.find((q) => q.value === h);
|
|
3466
|
+
a(D ? D.label : "");
|
|
3318
3467
|
}
|
|
3319
3468
|
};
|
|
3320
3469
|
return document.addEventListener("mousedown", _), () => document.removeEventListener("mousedown", _);
|
|
3321
|
-
}, [
|
|
3322
|
-
const
|
|
3470
|
+
}, [h, g, k]);
|
|
3471
|
+
const f = (_) => {
|
|
3323
3472
|
if (k) {
|
|
3324
|
-
const z = Array.isArray(
|
|
3473
|
+
const z = Array.isArray(h) ? [...h] : [];
|
|
3325
3474
|
z.includes(_.value) || (z.push(_.value), v == null || v(z)), a("");
|
|
3326
3475
|
} else
|
|
3327
|
-
a(_.label), v == null || v(_.value),
|
|
3476
|
+
a(_.label), v == null || v(_.value), o(!1);
|
|
3328
3477
|
}, F = (_) => {
|
|
3329
|
-
if (k && Array.isArray(
|
|
3330
|
-
const z =
|
|
3478
|
+
if (k && Array.isArray(h)) {
|
|
3479
|
+
const z = h.filter((D) => D !== _);
|
|
3331
3480
|
v == null || v(z);
|
|
3332
3481
|
}
|
|
3333
|
-
},
|
|
3334
|
-
B == null || B(l), k ? a("") :
|
|
3335
|
-
},
|
|
3482
|
+
}, j = () => {
|
|
3483
|
+
B == null || B(l), k ? a("") : o(!1);
|
|
3484
|
+
}, W = (_) => k ? Array.isArray(h) && h.includes(_) : h === _;
|
|
3336
3485
|
return s.createElement(
|
|
3337
3486
|
"div",
|
|
3338
3487
|
{
|
|
3339
3488
|
ref: c,
|
|
3340
|
-
className:
|
|
3489
|
+
className: d,
|
|
3341
3490
|
style: p
|
|
3342
3491
|
},
|
|
3343
3492
|
s.createElement("div", { className: "relative w-full" }, [
|
|
@@ -3345,18 +3494,18 @@ const Ds = x(vt), wt = s.memo((i) => {
|
|
|
3345
3494
|
className: `fibo-textfield-input flex flex-wrap items-center gap-1 ${r ? "ring-2 ring-[var(--fibo-primary-container)] border-[var(--fibo-primary)]" : ""}`,
|
|
3346
3495
|
style: { minHeight: "42px", padding: "4px 8px" }
|
|
3347
3496
|
}, [
|
|
3348
|
-
k && Array.isArray(
|
|
3349
|
-
const z =
|
|
3497
|
+
k && Array.isArray(h) && h.map((_) => {
|
|
3498
|
+
const z = g.find((q) => q.value === _), D = z ? z.label : _;
|
|
3350
3499
|
return s.createElement("span", {
|
|
3351
3500
|
key: _,
|
|
3352
3501
|
className: "bg-[var(--fibo-primary-container)] text-[var(--fibo-on-primary-container)] text-xs font-medium px-2 py-1 rounded-md flex items-center"
|
|
3353
3502
|
}, [
|
|
3354
|
-
|
|
3503
|
+
D,
|
|
3355
3504
|
s.createElement("button", {
|
|
3356
3505
|
type: "button",
|
|
3357
3506
|
className: "ml-1 hover:text-[var(--fibo-primary)] focus:outline-none",
|
|
3358
|
-
onClick: (
|
|
3359
|
-
|
|
3507
|
+
onClick: (q) => {
|
|
3508
|
+
q.stopPropagation(), F(_);
|
|
3360
3509
|
}
|
|
3361
3510
|
}, "×")
|
|
3362
3511
|
]);
|
|
@@ -3366,13 +3515,13 @@ const Ds = x(vt), wt = s.memo((i) => {
|
|
|
3366
3515
|
id: e,
|
|
3367
3516
|
className: "bg-transparent outline-none flex-1 min-w-[60px] text-sm h-8",
|
|
3368
3517
|
value: l,
|
|
3369
|
-
placeholder: k && Array.isArray(
|
|
3370
|
-
disabled:
|
|
3518
|
+
placeholder: k && Array.isArray(h) && h.length > 0 ? "" : N || " ",
|
|
3519
|
+
disabled: I,
|
|
3371
3520
|
onChange: (_) => {
|
|
3372
|
-
a(_.target.value), r ||
|
|
3521
|
+
a(_.target.value), r || o(!0);
|
|
3373
3522
|
},
|
|
3374
|
-
onFocus: () =>
|
|
3375
|
-
...
|
|
3523
|
+
onFocus: () => o(!0),
|
|
3524
|
+
...C
|
|
3376
3525
|
})
|
|
3377
3526
|
]),
|
|
3378
3527
|
u && s.createElement(
|
|
@@ -3388,18 +3537,18 @@ const Ds = x(vt), wt = s.memo((i) => {
|
|
|
3388
3537
|
key: "dropdown",
|
|
3389
3538
|
className: "absolute z-50 w-full mt-1 bg-[var(--fibo-surface)] border border-[var(--fibo-outline)] rounded-md shadow-lg max-h-60 overflow-auto focus:outline-none left-0"
|
|
3390
3539
|
}, [
|
|
3391
|
-
|
|
3392
|
-
const z =
|
|
3540
|
+
b.length > 0 ? b.map((_) => {
|
|
3541
|
+
const z = W(_.value);
|
|
3393
3542
|
return s.createElement("div", {
|
|
3394
3543
|
key: _.value,
|
|
3395
3544
|
className: `px-4 py-2 cursor-pointer text-sm hover:bg-[var(--fibo-primary-container)] hover:text-[var(--fibo-on-primary-container)] ${z ? "bg-[var(--fibo-primary-container)] text-[var(--fibo-on-primary-container)] font-medium opacity-50" : "text-[var(--fibo-on-surface)]"}`,
|
|
3396
|
-
onClick: () => !z &&
|
|
3545
|
+
onClick: () => !z && f(_)
|
|
3397
3546
|
}, _.label);
|
|
3398
3547
|
}) : s.createElement("div", { className: "px-4 py-2 text-sm text-gray-500" }, "No results found."),
|
|
3399
|
-
l && !
|
|
3548
|
+
l && !b.some((_) => _.label.toLowerCase() === l.toLowerCase()) && B && s.createElement("div", {
|
|
3400
3549
|
key: "add-new",
|
|
3401
3550
|
className: "border-t border-[var(--fibo-outline)] px-4 py-2 cursor-pointer text-sm text-[var(--fibo-primary)] hover:bg-[var(--fibo-primary-container)] font-medium flex items-center",
|
|
3402
|
-
onClick:
|
|
3551
|
+
onClick: j
|
|
3403
3552
|
}, [
|
|
3404
3553
|
s.createElement("span", { className: "mr-1" }, "+"),
|
|
3405
3554
|
`Add "${l}"`
|
|
@@ -3413,18 +3562,18 @@ const Ds = x(vt), wt = s.memo((i) => {
|
|
|
3413
3562
|
)
|
|
3414
3563
|
);
|
|
3415
3564
|
});
|
|
3416
|
-
class
|
|
3565
|
+
class St extends x {
|
|
3417
3566
|
constructor() {
|
|
3418
3567
|
super(...arguments);
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3568
|
+
n(this, "_value", "");
|
|
3569
|
+
n(this, "_label", "");
|
|
3570
|
+
n(this, "_placeholder", "");
|
|
3571
|
+
n(this, "_disabled", !1);
|
|
3572
|
+
n(this, "_error");
|
|
3573
|
+
n(this, "_multiple", !1);
|
|
3574
|
+
n(this, "_options", []);
|
|
3575
|
+
n(this, "_onChange");
|
|
3576
|
+
n(this, "_onAdd");
|
|
3428
3577
|
}
|
|
3429
3578
|
value(e) {
|
|
3430
3579
|
return this._value = e, this;
|
|
@@ -3468,17 +3617,17 @@ class Nt extends b {
|
|
|
3468
3617
|
onAdd: this._onAdd,
|
|
3469
3618
|
...this._props
|
|
3470
3619
|
};
|
|
3471
|
-
return s.createElement(
|
|
3620
|
+
return s.createElement(Ct, r);
|
|
3472
3621
|
}
|
|
3473
3622
|
}
|
|
3474
|
-
const
|
|
3475
|
-
const { text: t, subtitle: e, number: r, color:
|
|
3623
|
+
const Vs = y(St), Ft = s.memo((i) => {
|
|
3624
|
+
const { text: t, subtitle: e, number: r, color: o, className: l, style: a, children: c, ...d } = i;
|
|
3476
3625
|
return s.createElement(
|
|
3477
3626
|
"div",
|
|
3478
3627
|
{
|
|
3479
3628
|
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 ${l || ""}`,
|
|
3480
3629
|
style: { backgroundColor: "#ffffff", ...a },
|
|
3481
|
-
...
|
|
3630
|
+
...d
|
|
3482
3631
|
},
|
|
3483
3632
|
s.createElement(
|
|
3484
3633
|
"div",
|
|
@@ -3508,13 +3657,13 @@ const Os = x(Nt), Ct = s.memo((i) => {
|
|
|
3508
3657
|
)
|
|
3509
3658
|
);
|
|
3510
3659
|
});
|
|
3511
|
-
class
|
|
3660
|
+
class zt extends x {
|
|
3512
3661
|
constructor() {
|
|
3513
3662
|
super(...arguments);
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3663
|
+
n(this, "_text", "");
|
|
3664
|
+
n(this, "_subtitle");
|
|
3665
|
+
n(this, "_number");
|
|
3666
|
+
n(this, "_color");
|
|
3518
3667
|
}
|
|
3519
3668
|
text(e) {
|
|
3520
3669
|
return this._text = e, this;
|
|
@@ -3539,7 +3688,7 @@ class Et extends b {
|
|
|
3539
3688
|
"fibo-card",
|
|
3540
3689
|
this._color ? `border-l-4 ${e[this._color]}` : "",
|
|
3541
3690
|
...this._classNames
|
|
3542
|
-
].filter(Boolean).join(" "),
|
|
3691
|
+
].filter(Boolean).join(" "), o = {
|
|
3543
3692
|
text: this._text,
|
|
3544
3693
|
subtitle: this._subtitle,
|
|
3545
3694
|
number: this._number,
|
|
@@ -3549,39 +3698,39 @@ class Et extends b {
|
|
|
3549
3698
|
children: this.processChildren(),
|
|
3550
3699
|
...this._props
|
|
3551
3700
|
};
|
|
3552
|
-
return s.createElement(
|
|
3701
|
+
return s.createElement(Ft, o);
|
|
3553
3702
|
}
|
|
3554
3703
|
}
|
|
3555
|
-
const
|
|
3704
|
+
const T = y(zt), Bt = s.memo((i) => {
|
|
3556
3705
|
const {
|
|
3557
3706
|
items: t,
|
|
3558
3707
|
renderItem: e,
|
|
3559
3708
|
variant: r,
|
|
3560
|
-
separator:
|
|
3709
|
+
separator: o,
|
|
3561
3710
|
loading: l,
|
|
3562
3711
|
threshold: a,
|
|
3563
3712
|
onEndReached: c,
|
|
3564
|
-
className:
|
|
3713
|
+
className: d,
|
|
3565
3714
|
style: p
|
|
3566
3715
|
} = i, u = s.useRef(null);
|
|
3567
3716
|
s.useEffect(() => {
|
|
3568
3717
|
if (!c || l) return;
|
|
3569
|
-
const
|
|
3718
|
+
const N = new IntersectionObserver(
|
|
3570
3719
|
(v) => {
|
|
3571
3720
|
v[0].isIntersecting && (c == null || c());
|
|
3572
3721
|
},
|
|
3573
3722
|
{ threshold: a }
|
|
3574
3723
|
);
|
|
3575
|
-
return u.current &&
|
|
3724
|
+
return u.current && N.observe(u.current), () => N.disconnect();
|
|
3576
3725
|
}, [l, t.length, c, a]);
|
|
3577
3726
|
const m = {
|
|
3578
3727
|
default: { gap: "0px" },
|
|
3579
3728
|
card: { gap: "12px" },
|
|
3580
3729
|
floating: { gap: "8px" }
|
|
3581
|
-
},
|
|
3730
|
+
}, h = {
|
|
3582
3731
|
default: {
|
|
3583
3732
|
padding: "12px 16px",
|
|
3584
|
-
borderBottom:
|
|
3733
|
+
borderBottom: o ? "1px solid #F3F4F6" : "none",
|
|
3585
3734
|
backgroundColor: "transparent",
|
|
3586
3735
|
transition: "background-color 0.2s"
|
|
3587
3736
|
},
|
|
@@ -3599,20 +3748,20 @@ const M = x(Et), St = s.memo((i) => {
|
|
|
3599
3748
|
backgroundColor: "transparent",
|
|
3600
3749
|
transition: "background-color 0.2s"
|
|
3601
3750
|
}
|
|
3602
|
-
},
|
|
3751
|
+
}, g = {
|
|
3603
3752
|
default: ["hover:bg-gray-50", "first:rounded-t-xl", "last:rounded-b-xl"],
|
|
3604
3753
|
card: ["hover:-translate-y-0.5", "hover:shadow-md"],
|
|
3605
3754
|
floating: ["hover:bg-white", "hover:shadow-sm"]
|
|
3606
3755
|
};
|
|
3607
|
-
return w().className(
|
|
3756
|
+
return w().className(d).classNames(["flex", "flex-col", "w-full"]).style({
|
|
3608
3757
|
...m[r],
|
|
3609
3758
|
...p
|
|
3610
3759
|
}).children(
|
|
3611
3760
|
s.createElement(s.Fragment, {}, [
|
|
3612
3761
|
...t.map(
|
|
3613
|
-
(
|
|
3614
|
-
w().style(
|
|
3615
|
-
e ? e(
|
|
3762
|
+
(N, v) => s.cloneElement(
|
|
3763
|
+
w().style(h[r]).classNames(g[r]).children(
|
|
3764
|
+
e ? e(N, v) : null
|
|
3616
3765
|
).build(),
|
|
3617
3766
|
{ key: `item-${v}` }
|
|
3618
3767
|
)
|
|
@@ -3624,16 +3773,16 @@ const M = x(Et), St = s.memo((i) => {
|
|
|
3624
3773
|
])
|
|
3625
3774
|
).build();
|
|
3626
3775
|
});
|
|
3627
|
-
class
|
|
3776
|
+
class At extends x {
|
|
3628
3777
|
constructor() {
|
|
3629
3778
|
super(...arguments);
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3779
|
+
n(this, "_items", []);
|
|
3780
|
+
n(this, "_renderItem");
|
|
3781
|
+
n(this, "_variant", "default");
|
|
3782
|
+
n(this, "_separator", !1);
|
|
3783
|
+
n(this, "_onEndReached");
|
|
3784
|
+
n(this, "_loading", !1);
|
|
3785
|
+
n(this, "_threshold", 0.5);
|
|
3637
3786
|
}
|
|
3638
3787
|
items(e) {
|
|
3639
3788
|
return this._items = e, this;
|
|
@@ -3668,31 +3817,31 @@ class Ft extends b {
|
|
|
3668
3817
|
className: this.getClassName(),
|
|
3669
3818
|
style: this.getStyle()
|
|
3670
3819
|
};
|
|
3671
|
-
return s.createElement(
|
|
3820
|
+
return s.createElement(Bt, e);
|
|
3672
3821
|
}
|
|
3673
3822
|
}
|
|
3674
|
-
const
|
|
3823
|
+
const qs = y(At), $t = s.memo((i) => {
|
|
3675
3824
|
const {
|
|
3676
3825
|
data: t,
|
|
3677
3826
|
columns: e,
|
|
3678
3827
|
variant: r,
|
|
3679
|
-
density:
|
|
3828
|
+
density: o,
|
|
3680
3829
|
striped: l,
|
|
3681
3830
|
width: a,
|
|
3682
3831
|
className: c,
|
|
3683
|
-
style:
|
|
3832
|
+
style: d
|
|
3684
3833
|
} = i, p = {
|
|
3685
3834
|
width: "100%",
|
|
3686
3835
|
borderCollapse: "separate",
|
|
3687
3836
|
borderSpacing: "0",
|
|
3688
|
-
...
|
|
3837
|
+
...d
|
|
3689
3838
|
};
|
|
3690
3839
|
a && (p.width = typeof a == "number" ? `${a}px` : a);
|
|
3691
|
-
const u = r === "clean" ? ["bg-white", "rounded-2xl", "border", "border-gray-100", "overflow-hidden", "shadow-sm"] : [],
|
|
3840
|
+
const u = r === "clean" ? ["bg-white", "rounded-2xl", "border", "border-gray-100", "overflow-hidden", "shadow-sm"] : [], h = {
|
|
3692
3841
|
compact: "10px 16px",
|
|
3693
3842
|
standard: "16px 24px",
|
|
3694
3843
|
relaxed: "24px 32px"
|
|
3695
|
-
}[
|
|
3844
|
+
}[o];
|
|
3696
3845
|
return w().className(c).classNames(u).children(
|
|
3697
3846
|
s.createElement("table", { style: p }, [
|
|
3698
3847
|
s.createElement(
|
|
@@ -3702,15 +3851,15 @@ const Hs = x(Ft), zt = s.memo((i) => {
|
|
|
3702
3851
|
"tr",
|
|
3703
3852
|
{},
|
|
3704
3853
|
e.map(
|
|
3705
|
-
(
|
|
3706
|
-
key:
|
|
3854
|
+
(g, N) => s.createElement("th", {
|
|
3855
|
+
key: N,
|
|
3707
3856
|
style: {
|
|
3708
|
-
textAlign:
|
|
3709
|
-
padding:
|
|
3710
|
-
width:
|
|
3857
|
+
textAlign: g.align || "left",
|
|
3858
|
+
padding: h,
|
|
3859
|
+
width: g.width
|
|
3711
3860
|
},
|
|
3712
3861
|
className: "text-xs font-bold text-gray-400 uppercase tracking-widest"
|
|
3713
|
-
},
|
|
3862
|
+
}, g.header)
|
|
3714
3863
|
)
|
|
3715
3864
|
)
|
|
3716
3865
|
),
|
|
@@ -3718,11 +3867,11 @@ const Hs = x(Ft), zt = s.memo((i) => {
|
|
|
3718
3867
|
"tbody",
|
|
3719
3868
|
{ key: "tbody" },
|
|
3720
3869
|
t.map(
|
|
3721
|
-
(
|
|
3870
|
+
(g, N) => s.createElement(
|
|
3722
3871
|
"tr",
|
|
3723
3872
|
{
|
|
3724
|
-
key:
|
|
3725
|
-
className: `group transition-all duration-200 border-b border-gray-50 last:border-b-0 ${l &&
|
|
3873
|
+
key: N,
|
|
3874
|
+
className: `group transition-all duration-200 border-b border-gray-50 last:border-b-0 ${l && N % 2 !== 0 ? "bg-gray-50/30" : "bg-transparent"} ${r === "clean" ? "hover:bg-white hover:shadow-md hover:scale-[1.002] hover:z-10 relative" : "hover:bg-gray-50/50"}`
|
|
3726
3875
|
},
|
|
3727
3876
|
e.map(
|
|
3728
3877
|
(v, B) => s.createElement(
|
|
@@ -3731,12 +3880,12 @@ const Hs = x(Ft), zt = s.memo((i) => {
|
|
|
3731
3880
|
key: B,
|
|
3732
3881
|
style: {
|
|
3733
3882
|
textAlign: v.align || "left",
|
|
3734
|
-
padding:
|
|
3883
|
+
padding: h,
|
|
3735
3884
|
borderTop: r === "default" ? "1px solid #F3F4F6" : "none"
|
|
3736
3885
|
},
|
|
3737
3886
|
className: "text-sm text-gray-900 font-medium"
|
|
3738
3887
|
},
|
|
3739
|
-
v.render ? v.render(
|
|
3888
|
+
v.render ? v.render(g) : v.accessor ? g[v.accessor] : null
|
|
3740
3889
|
)
|
|
3741
3890
|
)
|
|
3742
3891
|
)
|
|
@@ -3745,15 +3894,15 @@ const Hs = x(Ft), zt = s.memo((i) => {
|
|
|
3745
3894
|
])
|
|
3746
3895
|
).build();
|
|
3747
3896
|
});
|
|
3748
|
-
class
|
|
3897
|
+
class It extends x {
|
|
3749
3898
|
constructor() {
|
|
3750
3899
|
super(...arguments);
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3900
|
+
n(this, "_data", []);
|
|
3901
|
+
n(this, "_columns", []);
|
|
3902
|
+
n(this, "_variant", "clean");
|
|
3903
|
+
n(this, "_density", "standard");
|
|
3904
|
+
n(this, "_striped", !1);
|
|
3905
|
+
n(this, "_width");
|
|
3757
3906
|
}
|
|
3758
3907
|
data(e) {
|
|
3759
3908
|
return this._data = e, this;
|
|
@@ -3784,11 +3933,11 @@ class Bt extends b {
|
|
|
3784
3933
|
className: this.getClassName(),
|
|
3785
3934
|
style: this.getStyle()
|
|
3786
3935
|
};
|
|
3787
|
-
return s.createElement(
|
|
3936
|
+
return s.createElement($t, e);
|
|
3788
3937
|
}
|
|
3789
3938
|
}
|
|
3790
|
-
const
|
|
3791
|
-
const { items: t, className: e, style: r, ...
|
|
3939
|
+
const Gs = y(It), jt = s.memo((i) => {
|
|
3940
|
+
const { items: t, className: e, style: r, ...o } = i, l = t.map(
|
|
3792
3941
|
(a, c) => s.createElement(
|
|
3793
3942
|
"span",
|
|
3794
3943
|
{
|
|
@@ -3803,15 +3952,15 @@ const Vs = x(Bt), $t = s.memo((i) => {
|
|
|
3803
3952
|
{
|
|
3804
3953
|
className: e,
|
|
3805
3954
|
style: r,
|
|
3806
|
-
...
|
|
3955
|
+
...o
|
|
3807
3956
|
},
|
|
3808
3957
|
...l
|
|
3809
3958
|
);
|
|
3810
3959
|
});
|
|
3811
|
-
class
|
|
3960
|
+
class Wt extends x {
|
|
3812
3961
|
constructor(e = []) {
|
|
3813
3962
|
super();
|
|
3814
|
-
|
|
3963
|
+
n(this, "_items", []);
|
|
3815
3964
|
this._items = e;
|
|
3816
3965
|
}
|
|
3817
3966
|
items(e) {
|
|
@@ -3824,15 +3973,15 @@ class At extends b {
|
|
|
3824
3973
|
style: this.getStyle(),
|
|
3825
3974
|
...this._props
|
|
3826
3975
|
};
|
|
3827
|
-
return s.createElement(
|
|
3976
|
+
return s.createElement(jt, r);
|
|
3828
3977
|
}
|
|
3829
3978
|
}
|
|
3830
|
-
const
|
|
3831
|
-
const { status: t, title: e, subtitle: r, className:
|
|
3979
|
+
const Xs = y(Wt), Lt = s.memo((i) => {
|
|
3980
|
+
const { status: t, title: e, subtitle: r, className: o, style: l, ...a } = i;
|
|
3832
3981
|
return s.createElement(
|
|
3833
3982
|
"div",
|
|
3834
3983
|
{
|
|
3835
|
-
className:
|
|
3984
|
+
className: o,
|
|
3836
3985
|
style: l,
|
|
3837
3986
|
...a
|
|
3838
3987
|
},
|
|
@@ -3856,12 +4005,12 @@ const qs = x(At), It = s.memo((i) => {
|
|
|
3856
4005
|
)
|
|
3857
4006
|
);
|
|
3858
4007
|
});
|
|
3859
|
-
class
|
|
4008
|
+
class Mt extends x {
|
|
3860
4009
|
constructor(e = "") {
|
|
3861
4010
|
super();
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
4011
|
+
n(this, "_status", "info");
|
|
4012
|
+
n(this, "_title", "");
|
|
4013
|
+
n(this, "_subtitle");
|
|
3865
4014
|
this._title = e;
|
|
3866
4015
|
}
|
|
3867
4016
|
status(e) {
|
|
@@ -3878,7 +4027,7 @@ class jt extends b {
|
|
|
3878
4027
|
"fibo-banner",
|
|
3879
4028
|
`fibo-banner-${this._status}`,
|
|
3880
4029
|
...this._classNames
|
|
3881
|
-
].filter(Boolean).join(" "),
|
|
4030
|
+
].filter(Boolean).join(" "), o = {
|
|
3882
4031
|
status: this._status,
|
|
3883
4032
|
title: this._title,
|
|
3884
4033
|
subtitle: this._subtitle,
|
|
@@ -3886,12 +4035,12 @@ class jt extends b {
|
|
|
3886
4035
|
style: this.getStyle(),
|
|
3887
4036
|
...this._props
|
|
3888
4037
|
};
|
|
3889
|
-
return s.createElement(
|
|
4038
|
+
return s.createElement(Lt, o);
|
|
3890
4039
|
}
|
|
3891
4040
|
}
|
|
3892
|
-
const
|
|
3893
|
-
const { image: t, title: e, price: r, likes:
|
|
3894
|
-
return
|
|
4041
|
+
const Us = y(Mt), Rt = s.memo((i) => {
|
|
4042
|
+
const { image: t, title: e, price: r, likes: o, timeLeft: l, className: a, style: c, ...d } = i;
|
|
4043
|
+
return T().classNames(["group", "transition-all", "duration-300", "hover:-translate-y-1"]).style({
|
|
3895
4044
|
width: "100%",
|
|
3896
4045
|
borderRadius: "24px",
|
|
3897
4046
|
border: "none",
|
|
@@ -3899,31 +4048,31 @@ const Gs = x(jt), Wt = s.memo((i) => {
|
|
|
3899
4048
|
padding: "16px",
|
|
3900
4049
|
background: "#fff",
|
|
3901
4050
|
...c
|
|
3902
|
-
}).className(a).props(
|
|
4051
|
+
}).className(a).props(d).children([
|
|
3903
4052
|
w().classNames(["relative", "aspect-square", "overflow-hidden", "rounded-[20px]"]).children([
|
|
3904
4053
|
w().classNames(["w-full", "h-full", "bg-gray-200", "bg-cover", "bg-center"]).style({ backgroundImage: `url(${t})` }).build(),
|
|
3905
4054
|
w().classNames(["absolute", "top-3", "right-3"]).children(
|
|
3906
|
-
|
|
4055
|
+
G().variant("glass").shape("pill").icon(w().classNames(["text-gray-400", "hover:text-red-500"]).children(L.Heart).build()).text(`${o}`).build()
|
|
3907
4056
|
).build()
|
|
3908
4057
|
]).build(),
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
4058
|
+
V().height(16).build(),
|
|
4059
|
+
R().justifyContent("between").alignItems("start").children([
|
|
4060
|
+
P().gap(4).children([
|
|
4061
|
+
E(e).fontWeight(700).fontSize(18).color("#111827").build(),
|
|
4062
|
+
G().variant("neutral").text("Not for sale x1").build()
|
|
3914
4063
|
]).build(),
|
|
3915
|
-
w().classNames(["text-gray-300"]).children(
|
|
4064
|
+
w().classNames(["text-gray-300"]).children(L.More).build()
|
|
3916
4065
|
]).build(),
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
w().classNames(["text-blue-500"]).children(
|
|
3923
|
-
|
|
4066
|
+
V().height(16).build(),
|
|
4067
|
+
R().justifyContent("between").alignItems("center").children([
|
|
4068
|
+
P().gap(4).children([
|
|
4069
|
+
E("Current Bid").fontSize(11).fontWeight(600).color("#6B7280").build(),
|
|
4070
|
+
R().gap(4).alignItems("center").children([
|
|
4071
|
+
w().classNames(["text-blue-500"]).children(L.Eth).build(),
|
|
4072
|
+
E(`${r} ETH`).fontSize(15).fontWeight(700).color("#111827").build()
|
|
3924
4073
|
]).build()
|
|
3925
4074
|
]).build(),
|
|
3926
|
-
|
|
4075
|
+
K("Place a bid").variant("filled").shape("pill").shadow("soft").style({
|
|
3927
4076
|
backgroundColor: "#111827",
|
|
3928
4077
|
color: "#fff",
|
|
3929
4078
|
padding: "10px 20px",
|
|
@@ -3931,18 +4080,18 @@ const Gs = x(jt), Wt = s.memo((i) => {
|
|
|
3931
4080
|
fontWeight: 600
|
|
3932
4081
|
}).build()
|
|
3933
4082
|
]).build(),
|
|
3934
|
-
|
|
3935
|
-
l ?
|
|
4083
|
+
V().height(12).build(),
|
|
4084
|
+
l ? G().variant("accent").shape("rounded").icon(w().children(L.Clock).build()).text(l).style({ width: "100%" }).build() : null
|
|
3936
4085
|
]).build();
|
|
3937
4086
|
});
|
|
3938
|
-
class
|
|
4087
|
+
class Tt extends x {
|
|
3939
4088
|
constructor() {
|
|
3940
4089
|
super(...arguments);
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
4090
|
+
n(this, "_image", "");
|
|
4091
|
+
n(this, "_title", "");
|
|
4092
|
+
n(this, "_price", "");
|
|
4093
|
+
n(this, "_likes", "");
|
|
4094
|
+
n(this, "_timeLeft");
|
|
3946
4095
|
}
|
|
3947
4096
|
image(e) {
|
|
3948
4097
|
return this._image = e, this;
|
|
@@ -3970,12 +4119,12 @@ class Lt extends b {
|
|
|
3970
4119
|
style: this.getStyle(),
|
|
3971
4120
|
...this._props
|
|
3972
4121
|
};
|
|
3973
|
-
return s.createElement(
|
|
4122
|
+
return s.createElement(Rt, e);
|
|
3974
4123
|
}
|
|
3975
4124
|
}
|
|
3976
|
-
const
|
|
3977
|
-
const { banner: t, avatar: e, name: r, handle:
|
|
3978
|
-
return
|
|
4125
|
+
const Ys = y(Tt), Pt = s.memo((i) => {
|
|
4126
|
+
const { banner: t, avatar: e, name: r, handle: o, stats: l, className: a, style: c, ...d } = i;
|
|
4127
|
+
return T().style({
|
|
3979
4128
|
width: "100%",
|
|
3980
4129
|
borderRadius: "24px",
|
|
3981
4130
|
border: "none",
|
|
@@ -3984,53 +4133,53 @@ const Xs = x(Lt), Mt = s.memo((i) => {
|
|
|
3984
4133
|
overflow: "hidden",
|
|
3985
4134
|
background: "#fff",
|
|
3986
4135
|
...c
|
|
3987
|
-
}).className(a).props(
|
|
4136
|
+
}).className(a).props(d).children([
|
|
3988
4137
|
w().style({ height: "100px", backgroundImage: `url(${t})`, backgroundSize: "cover", backgroundPosition: "center" }).build(),
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
4138
|
+
P().padding(20).alignItems("center").style({ marginTop: "-50px" }).children([
|
|
4139
|
+
qe().image(e).size(80).border("4px solid #fff").build(),
|
|
4140
|
+
V().height(12).build(),
|
|
4141
|
+
R().gap(6).alignItems("center").children([
|
|
4142
|
+
E(r).fontWeight(700).fontSize(18).color("#111827").build(),
|
|
4143
|
+
L.Verify
|
|
3995
4144
|
]).build(),
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
4145
|
+
E(o).fontSize(13).color("#6B7280").style({ marginTop: "4px" }).build(),
|
|
4146
|
+
V().height(16).build(),
|
|
4147
|
+
K("+ Follow").variant("filled").shape("pill").shadow("soft").style({
|
|
3999
4148
|
backgroundColor: "#3B82F6",
|
|
4000
4149
|
color: "#fff",
|
|
4001
4150
|
padding: "8px 24px",
|
|
4002
4151
|
fontSize: "13px",
|
|
4003
4152
|
fontWeight: 600
|
|
4004
4153
|
}).build(),
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4154
|
+
V().height(24).build(),
|
|
4155
|
+
R().classNames(["w-full", "border-t", "border-gray-100", "pt-4"]).justifyContent("between").children([
|
|
4156
|
+
P().alignItems("center").gap(4).children([
|
|
4157
|
+
E(l.items).fontWeight(700).fontSize(14).build(),
|
|
4158
|
+
E("Items").fontSize(11).color("#9CA3AF").build()
|
|
4010
4159
|
]).build(),
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4160
|
+
P().alignItems("center").gap(4).children([
|
|
4161
|
+
E(l.owners).fontWeight(700).fontSize(14).build(),
|
|
4162
|
+
E("Owners").fontSize(11).color("#9CA3AF").build()
|
|
4014
4163
|
]).build(),
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
w().width(8).children(
|
|
4018
|
-
|
|
4164
|
+
P().alignItems("center").gap(4).children([
|
|
4165
|
+
R().alignItems("center").gap(2).children([
|
|
4166
|
+
w().width(8).children(L.Eth).build(),
|
|
4167
|
+
E(l.floor).fontWeight(700).fontSize(14).build()
|
|
4019
4168
|
]).build(),
|
|
4020
|
-
|
|
4169
|
+
E("Floor").fontSize(11).color("#9CA3AF").build()
|
|
4021
4170
|
]).build()
|
|
4022
4171
|
]).build()
|
|
4023
4172
|
]).build()
|
|
4024
4173
|
]).build();
|
|
4025
4174
|
});
|
|
4026
|
-
class
|
|
4175
|
+
class Dt extends x {
|
|
4027
4176
|
constructor() {
|
|
4028
4177
|
super(...arguments);
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4178
|
+
n(this, "_banner", "");
|
|
4179
|
+
n(this, "_avatar", "");
|
|
4180
|
+
n(this, "_name", "");
|
|
4181
|
+
n(this, "_handle", "");
|
|
4182
|
+
n(this, "_stats", { items: "0", owners: "0", floor: "0" });
|
|
4034
4183
|
}
|
|
4035
4184
|
banner(e) {
|
|
4036
4185
|
return this._banner = e, this;
|
|
@@ -4058,12 +4207,12 @@ class Rt extends b {
|
|
|
4058
4207
|
style: this.getStyle(),
|
|
4059
4208
|
...this._props
|
|
4060
4209
|
};
|
|
4061
|
-
return s.createElement(
|
|
4210
|
+
return s.createElement(Pt, e);
|
|
4062
4211
|
}
|
|
4063
4212
|
}
|
|
4064
|
-
const
|
|
4065
|
-
const { image: t, title: e, author: r, items:
|
|
4066
|
-
return
|
|
4213
|
+
const Js = y(Dt), Ot = s.memo((i) => {
|
|
4214
|
+
const { image: t, title: e, author: r, items: o, className: l, style: a, ...c } = i;
|
|
4215
|
+
return T().classNames(["group", "cursor-pointer"]).style({
|
|
4067
4216
|
width: "100%",
|
|
4068
4217
|
borderRadius: "24px",
|
|
4069
4218
|
height: "320px",
|
|
@@ -4074,24 +4223,24 @@ const Ys = x(Rt), Tt = s.memo((i) => {
|
|
|
4074
4223
|
}).className(l).props(c).children([
|
|
4075
4224
|
w().classNames(["absolute", "inset-0", "bg-cover", "bg-center", "transition-transform", "duration-500"]).style({ backgroundImage: `url(${t})` }).build(),
|
|
4076
4225
|
w().classNames(["absolute", "inset-0", "bg-gradient-to-t", "from-black/80", "via-black/20", "to-transparent"]).build(),
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4226
|
+
P().classNames(["absolute", "bottom-0", "left-0", "p-6"]).gap(4).children([
|
|
4227
|
+
E(o).color("white").fontSize(12).classNames(["opacity-90", "mb-1", "uppercase", "tracking-wider"]).fontWeight(600).build(),
|
|
4228
|
+
E(e).color("white").fontSize(22).fontWeight(700).build(),
|
|
4229
|
+
R().gap(6).alignItems("center").children([
|
|
4230
|
+
E("Created by").color("white").fontSize(13).classNames(["opacity-80"]).build(),
|
|
4231
|
+
E(r).color("white").fontSize(13).fontWeight(600).build(),
|
|
4232
|
+
L.Verify
|
|
4084
4233
|
]).build()
|
|
4085
4234
|
]).build()
|
|
4086
4235
|
]).build();
|
|
4087
4236
|
});
|
|
4088
|
-
class
|
|
4237
|
+
class Ht extends x {
|
|
4089
4238
|
constructor() {
|
|
4090
4239
|
super(...arguments);
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4240
|
+
n(this, "_image", "");
|
|
4241
|
+
n(this, "_title", "");
|
|
4242
|
+
n(this, "_author", "");
|
|
4243
|
+
n(this, "_items", "");
|
|
4095
4244
|
}
|
|
4096
4245
|
image(e) {
|
|
4097
4246
|
return this._image = e, this;
|
|
@@ -4115,38 +4264,38 @@ class Pt extends b {
|
|
|
4115
4264
|
style: this.getStyle(),
|
|
4116
4265
|
...this._props
|
|
4117
4266
|
};
|
|
4118
|
-
return s.createElement(
|
|
4267
|
+
return s.createElement(Ot, e);
|
|
4119
4268
|
}
|
|
4120
4269
|
}
|
|
4121
|
-
const
|
|
4270
|
+
const Ks = y(Ht), Vt = s.memo((i) => {
|
|
4122
4271
|
const {
|
|
4123
4272
|
image: t,
|
|
4124
4273
|
title: e,
|
|
4125
4274
|
description: r,
|
|
4126
|
-
date:
|
|
4275
|
+
date: o,
|
|
4127
4276
|
source: l,
|
|
4128
4277
|
className: a,
|
|
4129
4278
|
style: c
|
|
4130
4279
|
} = i;
|
|
4131
|
-
return
|
|
4132
|
-
t ?
|
|
4280
|
+
return T().className(`overflow-hidden hover:shadow-lg transition-shadow duration-300 ${a}`).style(c).children([
|
|
4281
|
+
t ? et().src(t).className("w-full object-cover rounded-[20px] mb-4").style({ height: "200px" }).build() : null,
|
|
4133
4282
|
w().className("flex flex-col gap-2").children([
|
|
4134
|
-
e ?
|
|
4135
|
-
r ?
|
|
4136
|
-
l ||
|
|
4137
|
-
|
|
4283
|
+
e ? E(e).fontSize(18).fontWeight(700).color("#111827").lineHeight(1.25).build() : null,
|
|
4284
|
+
r ? E(r).fontSize(14).color("#4B5563").lineHeight(1.5).className("line-clamp-2").build() : null,
|
|
4285
|
+
l || o ? w().className("flex items-center gap-2 mt-2").children([
|
|
4286
|
+
E(`${l || ""}${l && o ? " • " : ""}${o || ""}`).fontSize(11).fontWeight(600).color("#9CA3AF").textTransform("uppercase").letterSpacing("0.05em").build()
|
|
4138
4287
|
]).build() : null
|
|
4139
4288
|
]).build()
|
|
4140
4289
|
]).build();
|
|
4141
4290
|
});
|
|
4142
|
-
class
|
|
4291
|
+
class qt extends x {
|
|
4143
4292
|
constructor() {
|
|
4144
4293
|
super(...arguments);
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4294
|
+
n(this, "_image");
|
|
4295
|
+
n(this, "_title");
|
|
4296
|
+
n(this, "_description");
|
|
4297
|
+
n(this, "_date");
|
|
4298
|
+
n(this, "_source");
|
|
4150
4299
|
}
|
|
4151
4300
|
image(e) {
|
|
4152
4301
|
return this._image = e, this;
|
|
@@ -4174,29 +4323,29 @@ class Ot extends b {
|
|
|
4174
4323
|
style: this.getStyle(),
|
|
4175
4324
|
...this._props
|
|
4176
4325
|
};
|
|
4177
|
-
return s.createElement(
|
|
4326
|
+
return s.createElement(Vt, e);
|
|
4178
4327
|
}
|
|
4179
4328
|
}
|
|
4180
|
-
const
|
|
4181
|
-
const { title: t, description: e, icon: r, footer:
|
|
4182
|
-
return
|
|
4329
|
+
const Qs = y(qt), Gt = s.memo((i) => {
|
|
4330
|
+
const { title: t, description: e, icon: r, footer: o, className: l, style: a } = i;
|
|
4331
|
+
return T().className(l).style(a).children([
|
|
4183
4332
|
w().className("flex items-start gap-4").children([
|
|
4184
4333
|
r ? w().className("mt-1 text-gray-400").children(r).build() : null,
|
|
4185
4334
|
w().className("flex-1").children([
|
|
4186
|
-
t ?
|
|
4187
|
-
e ?
|
|
4188
|
-
|
|
4335
|
+
t ? E(t).fontSize(16).fontWeight(600).color("#111827").build() : null,
|
|
4336
|
+
e ? E(e).fontSize(14).color("#6B7280").className("mt-1").build() : null,
|
|
4337
|
+
o ? w().className("mt-4").children(o).build() : null
|
|
4189
4338
|
]).build()
|
|
4190
4339
|
]).build()
|
|
4191
4340
|
]).build();
|
|
4192
4341
|
});
|
|
4193
|
-
class
|
|
4342
|
+
class Xt extends x {
|
|
4194
4343
|
constructor() {
|
|
4195
4344
|
super(...arguments);
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4345
|
+
n(this, "_title");
|
|
4346
|
+
n(this, "_description");
|
|
4347
|
+
n(this, "_icon");
|
|
4348
|
+
n(this, "_footer");
|
|
4200
4349
|
}
|
|
4201
4350
|
title(e) {
|
|
4202
4351
|
return this._title = e, this;
|
|
@@ -4220,29 +4369,29 @@ class Vt extends b {
|
|
|
4220
4369
|
style: this.getStyle(),
|
|
4221
4370
|
...this._props
|
|
4222
4371
|
};
|
|
4223
|
-
return s.createElement(
|
|
4372
|
+
return s.createElement(Gt, e);
|
|
4224
4373
|
}
|
|
4225
4374
|
}
|
|
4226
|
-
const
|
|
4227
|
-
const { title: t, description: e, action: r, actionType:
|
|
4375
|
+
const Ut = s.memo((i) => {
|
|
4376
|
+
const { title: t, description: e, action: r, actionType: o, onAction: l, actionLabel: a, className: c, style: d } = i;
|
|
4228
4377
|
let p = r;
|
|
4229
|
-
return p || (
|
|
4378
|
+
return p || (o === "button" ? p = K(a || "Action").variant("soft").size("sm").onPress(l).build() : o === "switch" && (p = bt().onChange(l).build())), T().className(`flex items-center justify-between gap-4 ${c || ""}`).style(d).children([
|
|
4230
4379
|
w().className("flex-1").children([
|
|
4231
|
-
t ?
|
|
4232
|
-
e ?
|
|
4380
|
+
t ? E(t).fontSize(16).fontWeight(600).color("#111827").build() : null,
|
|
4381
|
+
e ? E(e).fontSize(14).color("#6B7280").className("mt-1").build() : null
|
|
4233
4382
|
]).build(),
|
|
4234
4383
|
p ? w().className("flex-shrink-0").children(p).build() : null
|
|
4235
4384
|
]).build();
|
|
4236
4385
|
});
|
|
4237
|
-
class
|
|
4386
|
+
class Yt extends x {
|
|
4238
4387
|
constructor() {
|
|
4239
4388
|
super(...arguments);
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4389
|
+
n(this, "_title");
|
|
4390
|
+
n(this, "_description");
|
|
4391
|
+
n(this, "_action");
|
|
4392
|
+
n(this, "_actionType");
|
|
4393
|
+
n(this, "_actionLabel");
|
|
4394
|
+
n(this, "_onAction");
|
|
4246
4395
|
}
|
|
4247
4396
|
title(e) {
|
|
4248
4397
|
return this._title = e, this;
|
|
@@ -4271,26 +4420,26 @@ class Gt extends b {
|
|
|
4271
4420
|
style: this.getStyle(),
|
|
4272
4421
|
...this._props
|
|
4273
4422
|
};
|
|
4274
|
-
return s.createElement(
|
|
4423
|
+
return s.createElement(Ut, e);
|
|
4275
4424
|
}
|
|
4276
4425
|
}
|
|
4277
|
-
const
|
|
4278
|
-
const { title: t, description: e, placeholder: r, value:
|
|
4279
|
-
return
|
|
4280
|
-
t ?
|
|
4281
|
-
e ?
|
|
4282
|
-
|
|
4426
|
+
const Zs = y(Xt), er = y(Yt), Jt = s.memo((i) => {
|
|
4427
|
+
const { title: t, description: e, placeholder: r, value: o, onChange: l, type: a, className: c, style: d } = i;
|
|
4428
|
+
return T().className(c).style(d).children([
|
|
4429
|
+
t ? E(t).fontSize(14).fontWeight(600).color("#374151").className("mb-1").build() : null,
|
|
4430
|
+
e ? E(e).fontSize(12).color("#6B7280").className("mb-3").build() : null,
|
|
4431
|
+
pt().placeholder(r).value(o).type(a).onChange(l).className("w-full").build()
|
|
4283
4432
|
]).build();
|
|
4284
4433
|
});
|
|
4285
|
-
class
|
|
4434
|
+
class Kt extends x {
|
|
4286
4435
|
constructor() {
|
|
4287
4436
|
super(...arguments);
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4437
|
+
n(this, "_title");
|
|
4438
|
+
n(this, "_description");
|
|
4439
|
+
n(this, "_placeholder");
|
|
4440
|
+
n(this, "_value");
|
|
4441
|
+
n(this, "_type", "text");
|
|
4442
|
+
n(this, "_onChange");
|
|
4294
4443
|
}
|
|
4295
4444
|
title(e) {
|
|
4296
4445
|
return this._title = e, this;
|
|
@@ -4322,26 +4471,26 @@ class Yt extends b {
|
|
|
4322
4471
|
style: this.getStyle(),
|
|
4323
4472
|
...this._props
|
|
4324
4473
|
};
|
|
4325
|
-
return s.createElement(
|
|
4474
|
+
return s.createElement(Jt, e);
|
|
4326
4475
|
}
|
|
4327
4476
|
}
|
|
4328
|
-
const
|
|
4329
|
-
const { title: t, value: e, trend: r, trendDirection:
|
|
4330
|
-
return
|
|
4331
|
-
|
|
4477
|
+
const tr = y(Kt), Qt = s.memo((i) => {
|
|
4478
|
+
const { title: t, value: e, trend: r, trendDirection: o, className: l, style: a } = i, c = o === "up" ? "success" : o === "down" ? "error" : "none", d = o === "up" ? "↑" : o === "down" ? "↓" : "•";
|
|
4479
|
+
return T().className(l).style(a).children([
|
|
4480
|
+
E(t).fontSize(14).fontWeight(600).color("#6B7280").build(),
|
|
4332
4481
|
w().className("flex items-end justify-between mt-2").children([
|
|
4333
|
-
|
|
4334
|
-
r ?
|
|
4482
|
+
E(e).fontSize(32).fontWeight(800).color("#111827").build(),
|
|
4483
|
+
r ? G().text(`${d} ${r}`).intent(c).variant("accent").build() : null
|
|
4335
4484
|
]).build()
|
|
4336
4485
|
]).build();
|
|
4337
4486
|
});
|
|
4338
|
-
class
|
|
4487
|
+
class Zt extends x {
|
|
4339
4488
|
constructor() {
|
|
4340
4489
|
super(...arguments);
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4490
|
+
n(this, "_title", "");
|
|
4491
|
+
n(this, "_value", "");
|
|
4492
|
+
n(this, "_trend");
|
|
4493
|
+
n(this, "_trendDirection", "neutral");
|
|
4345
4494
|
}
|
|
4346
4495
|
title(e) {
|
|
4347
4496
|
return this._title = e, this;
|
|
@@ -4362,18 +4511,18 @@ class Jt extends b {
|
|
|
4362
4511
|
style: this.getStyle(),
|
|
4363
4512
|
...this._props
|
|
4364
4513
|
};
|
|
4365
|
-
return s.createElement(
|
|
4514
|
+
return s.createElement(Qt, e);
|
|
4366
4515
|
}
|
|
4367
4516
|
}
|
|
4368
|
-
const
|
|
4369
|
-
class
|
|
4517
|
+
const sr = y(Zt);
|
|
4518
|
+
class es extends x {
|
|
4370
4519
|
constructor() {
|
|
4371
4520
|
super(...arguments);
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4521
|
+
n(this, "_title", "");
|
|
4522
|
+
n(this, "_content", null);
|
|
4523
|
+
n(this, "_defaultExpanded", !1);
|
|
4524
|
+
n(this, "_expanded");
|
|
4525
|
+
n(this, "_onToggle");
|
|
4377
4526
|
}
|
|
4378
4527
|
title(e) {
|
|
4379
4528
|
return this._title = e, this;
|
|
@@ -4391,19 +4540,19 @@ class Kt extends b {
|
|
|
4391
4540
|
return this._onToggle = e, this;
|
|
4392
4541
|
}
|
|
4393
4542
|
build() {
|
|
4394
|
-
return s.createElement(
|
|
4543
|
+
return s.createElement(ts, {
|
|
4395
4544
|
builder: this,
|
|
4396
4545
|
...this._props
|
|
4397
4546
|
});
|
|
4398
4547
|
}
|
|
4399
4548
|
}
|
|
4400
|
-
const
|
|
4401
|
-
const t = i, e = t._expanded !== void 0, [r,
|
|
4402
|
-
e ||
|
|
4549
|
+
const ts = s.memo(({ builder: i }) => {
|
|
4550
|
+
const t = i, e = t._expanded !== void 0, [r, o] = $(t._defaultExpanded), l = e ? t._expanded : r, a = () => {
|
|
4551
|
+
e || o(!l), t._onToggle && t._onToggle(!l);
|
|
4403
4552
|
};
|
|
4404
4553
|
return w().classNames(["w-full", "border", "border-gray-200", "rounded-xl", "overflow-hidden", "bg-white", "transition-all", "duration-300"]).className(t.getClassName()).style(t.getStyle()).children([
|
|
4405
|
-
|
|
4406
|
-
typeof t._title == "string" ?
|
|
4554
|
+
R().justifyContent("between").alignItems("center").classNames(["p-4", "cursor-pointer", "hover:bg-gray-50", "transition-colors", "select-none"]).props({ onClick: a }).children([
|
|
4555
|
+
typeof t._title == "string" ? E(t._title).fontWeight(600).fontSize(15).color("#1F2937").build() : t._title,
|
|
4407
4556
|
w().classNames(["transition-transform", "duration-300"]).style({ transform: l ? "rotate(180deg)" : "rotate(0deg)" }).children(
|
|
4408
4557
|
s.createElement("svg", {
|
|
4409
4558
|
width: "20",
|
|
@@ -4425,16 +4574,16 @@ const Qt = s.memo(({ builder: i }) => {
|
|
|
4425
4574
|
w().classNames(["p-4", "pt-0", "text-gray-600", "text-sm"]).children(t._content).build()
|
|
4426
4575
|
).build()
|
|
4427
4576
|
]).build();
|
|
4428
|
-
}),
|
|
4577
|
+
}), rr = y(es), ss = s.memo((i) => {
|
|
4429
4578
|
const {
|
|
4430
4579
|
children: t,
|
|
4431
4580
|
variant: e = "standard",
|
|
4432
4581
|
columns: r = 1,
|
|
4433
|
-
gap:
|
|
4582
|
+
gap: o = "md",
|
|
4434
4583
|
className: l,
|
|
4435
4584
|
style: a,
|
|
4436
4585
|
...c
|
|
4437
|
-
} = i,
|
|
4586
|
+
} = i, d = (m) => typeof m == "number" ? "" : {
|
|
4438
4587
|
none: "gap-0",
|
|
4439
4588
|
sm: "gap-2",
|
|
4440
4589
|
md: "gap-4",
|
|
@@ -4444,53 +4593,53 @@ const Qt = s.memo(({ builder: i }) => {
|
|
|
4444
4593
|
if (typeof m == "number") return m + "px";
|
|
4445
4594
|
}, u = (m) => {
|
|
4446
4595
|
if (typeof m == "number") return `grid-cols-${m}`;
|
|
4447
|
-
let
|
|
4448
|
-
return m.sm &&
|
|
4596
|
+
let h = [];
|
|
4597
|
+
return m.sm && h.push(`sm:grid-cols-${m.sm}`), m.md && h.push(`md:grid-cols-${m.md}`), m.lg && h.push(`lg:grid-cols-${m.lg}`), m.xl && h.push(`xl:grid-cols-${m.xl}`), h.join(" ") || "grid-cols-1";
|
|
4449
4598
|
};
|
|
4450
4599
|
if (e === "masonry") {
|
|
4451
|
-
const m = (
|
|
4452
|
-
if (typeof
|
|
4453
|
-
let
|
|
4454
|
-
return
|
|
4600
|
+
const m = (h) => {
|
|
4601
|
+
if (typeof h == "number") return `columns-${h}`;
|
|
4602
|
+
let g = [];
|
|
4603
|
+
return h.sm && g.push(`sm:columns-${h.sm}`), h.md && g.push(`md:columns-${h.md}`), h.lg && g.push(`lg:columns-${h.lg}`), h.xl && g.push(`xl:columns-${h.xl}`), g.join(" ") || "columns-1";
|
|
4455
4604
|
};
|
|
4456
4605
|
return s.createElement("div", {
|
|
4457
|
-
className: `${m(r)} ${
|
|
4606
|
+
className: `${m(r)} ${d(o)} space-y-4 ${l}`,
|
|
4458
4607
|
style: {
|
|
4459
|
-
columnGap: p(
|
|
4608
|
+
columnGap: p(o),
|
|
4460
4609
|
...a
|
|
4461
4610
|
},
|
|
4462
4611
|
...c
|
|
4463
4612
|
}, s.Children.map(
|
|
4464
4613
|
t,
|
|
4465
|
-
(
|
|
4614
|
+
(h) => s.createElement("div", { className: "break-inside-avoid mb-4" }, h)
|
|
4466
4615
|
));
|
|
4467
4616
|
}
|
|
4468
4617
|
return s.createElement("div", {
|
|
4469
|
-
className: `grid ${u(r)} ${
|
|
4618
|
+
className: `grid ${u(r)} ${d(o)} ${l}`,
|
|
4470
4619
|
style: {
|
|
4471
|
-
gap: p(
|
|
4620
|
+
gap: p(o),
|
|
4472
4621
|
...a
|
|
4473
4622
|
},
|
|
4474
4623
|
...c
|
|
4475
4624
|
}, t);
|
|
4476
|
-
}),
|
|
4477
|
-
const { children: t, colSpan: e, rowSpan: r, className:
|
|
4478
|
-
let
|
|
4479
|
-
return e &&
|
|
4625
|
+
}), rs = s.memo((i) => {
|
|
4626
|
+
const { children: t, colSpan: e, rowSpan: r, className: o, style: l, ...a } = i, c = () => {
|
|
4627
|
+
let d = [];
|
|
4628
|
+
return e && d.push(`col-span-${e}`), r && d.push(`row-span-${r}`), d.join(" ");
|
|
4480
4629
|
};
|
|
4481
4630
|
return s.createElement("div", {
|
|
4482
|
-
className: `${c()} ${
|
|
4631
|
+
className: `${c()} ${o}`,
|
|
4483
4632
|
style: l,
|
|
4484
4633
|
...a
|
|
4485
4634
|
}, t);
|
|
4486
4635
|
});
|
|
4487
|
-
class
|
|
4636
|
+
class is extends x {
|
|
4488
4637
|
constructor() {
|
|
4489
4638
|
super(...arguments);
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4639
|
+
n(this, "_variant", "standard");
|
|
4640
|
+
n(this, "_columns", 1);
|
|
4641
|
+
n(this, "_gap", "md");
|
|
4642
|
+
n(this, "_children", []);
|
|
4494
4643
|
}
|
|
4495
4644
|
variant(e) {
|
|
4496
4645
|
return this._variant = e, this;
|
|
@@ -4514,15 +4663,15 @@ class ts extends b {
|
|
|
4514
4663
|
style: this.getStyle(),
|
|
4515
4664
|
...this._props
|
|
4516
4665
|
};
|
|
4517
|
-
return s.createElement(
|
|
4666
|
+
return s.createElement(ss, e);
|
|
4518
4667
|
}
|
|
4519
4668
|
}
|
|
4520
|
-
class
|
|
4669
|
+
class ns extends x {
|
|
4521
4670
|
constructor() {
|
|
4522
4671
|
super(...arguments);
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4672
|
+
n(this, "_colSpan");
|
|
4673
|
+
n(this, "_rowSpan");
|
|
4674
|
+
n(this, "_children", []);
|
|
4526
4675
|
}
|
|
4527
4676
|
colSpan(e) {
|
|
4528
4677
|
return this._colSpan = e, this;
|
|
@@ -4542,81 +4691,87 @@ class ss extends b {
|
|
|
4542
4691
|
style: this.getStyle(),
|
|
4543
4692
|
...this._props
|
|
4544
4693
|
};
|
|
4545
|
-
return s.createElement(
|
|
4694
|
+
return s.createElement(rs, e);
|
|
4546
4695
|
}
|
|
4547
4696
|
}
|
|
4548
|
-
const
|
|
4697
|
+
const ir = y(is), nr = y(ns);
|
|
4549
4698
|
export {
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4699
|
+
er as ActionCard,
|
|
4700
|
+
Rs as Alert,
|
|
4701
|
+
Ys as AssetCard,
|
|
4702
|
+
qe as Avatar,
|
|
4703
|
+
G as Badge,
|
|
4704
|
+
Us as Banner,
|
|
4556
4705
|
w as Box,
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
Ds as
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4706
|
+
K as Button,
|
|
4707
|
+
T as Card,
|
|
4708
|
+
zs as Center,
|
|
4709
|
+
Ps as Checkbox,
|
|
4710
|
+
rr as Collapse,
|
|
4711
|
+
Ks as CollectionCard,
|
|
4712
|
+
P as Column,
|
|
4713
|
+
Vs as Combobox,
|
|
4714
|
+
ce as ComputedSignal,
|
|
4715
|
+
Ss as Container,
|
|
4716
|
+
Qs as ContentCard,
|
|
4717
|
+
Is as DashboardLayout,
|
|
4718
|
+
le as Effect,
|
|
4719
|
+
x as FiboBuilder,
|
|
4720
|
+
Es as FiboThemeProvider,
|
|
4721
|
+
ir as Grid,
|
|
4722
|
+
nr as GridItem,
|
|
4723
|
+
As as Header,
|
|
4724
|
+
et as Image,
|
|
4725
|
+
Zs as InfoCard,
|
|
4726
|
+
tr as InputCard,
|
|
4727
|
+
Ws as Label,
|
|
4728
|
+
Fs as Line,
|
|
4729
|
+
qs as List,
|
|
4730
|
+
sr as MetricCard,
|
|
4731
|
+
he as Observable,
|
|
4732
|
+
ue as Observer,
|
|
4733
|
+
fs as ObserverWrapper,
|
|
4734
|
+
Js as ProfileCard,
|
|
4735
|
+
Ts as Progress,
|
|
4736
|
+
te as ProviderContext,
|
|
4737
|
+
me as ProviderWrapper,
|
|
4738
|
+
Ds as RadioGroup,
|
|
4739
|
+
R as Row,
|
|
4740
|
+
js as Scaffold,
|
|
4741
|
+
Bs as ScrollView,
|
|
4742
|
+
Hs as Select,
|
|
4743
|
+
$s as Sidebar,
|
|
4744
|
+
Z as Signal,
|
|
4745
|
+
gs as SignalWrapper,
|
|
4746
|
+
Ms as Skeleton,
|
|
4747
|
+
V as Spacer,
|
|
4748
|
+
Ls as Spinner,
|
|
4749
|
+
ee as StateContext,
|
|
4750
|
+
ps as StateWrapper,
|
|
4751
|
+
de as StoreImpl,
|
|
4752
|
+
bt as Switch,
|
|
4753
|
+
Gs as Table,
|
|
4754
|
+
Xs as Tags,
|
|
4755
|
+
E as Text,
|
|
4756
|
+
pt as TextField,
|
|
4757
|
+
Os as Textarea,
|
|
4758
|
+
ae as Tracker,
|
|
4759
|
+
_s as applyResponsiveStyles,
|
|
4760
|
+
hs as computed,
|
|
4761
|
+
y as createBuilder,
|
|
4762
|
+
us as createStore,
|
|
4763
|
+
Ne as cupertinoTheme,
|
|
4764
|
+
we as materialTheme,
|
|
4765
|
+
ys as mergeStyles,
|
|
4766
|
+
ks as normalizeValue,
|
|
4767
|
+
ds as observable,
|
|
4768
|
+
xs as processChildren,
|
|
4769
|
+
cs as signal,
|
|
4770
|
+
Cs as useFiboTheme,
|
|
4771
|
+
Ns as useObservable,
|
|
4772
|
+
bs as useProvider,
|
|
4773
|
+
vs as useSignal,
|
|
4774
|
+
ms as useStateContext,
|
|
4775
|
+
ws as useStore,
|
|
4776
|
+
Ee as webTheme
|
|
4622
4777
|
};
|