fiboui 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -22
- package/dist/{FineGrain-kBxv0WeR.js → FineGrain-BTgNt7fN.js} +1 -1
- package/dist/{builder-DjLYXkXu.js → builder-6GkZlCaz.js} +370 -318
- package/dist/content.js +3 -3
- package/dist/core.js +3 -3
- package/dist/{index-DKFr-sai.js → index-BaX5zy8O.js} +1 -1
- package/dist/{index-BQGRpkzR.js → index-C4xZywsh.js} +3 -3
- package/dist/{index-RbfIZuAo.js → index-C8y7FIYH.js} +1 -1
- package/dist/{index-Dm4j2mMM.js → index-CREALegH.js} +4 -4
- package/dist/{index-yeYkDTAx.js → index-CWz0hYog.js} +3 -3
- package/dist/{index-B1av7e36.js → index-OLW4l8s8.js} +1 -1
- package/dist/{index-CTRZRn9S.js → index-zOfPHD00.js} +2 -2
- package/dist/index.d.ts +42057 -42046
- package/dist/index.js +315 -299
- package/dist/interactive.js +1 -1
- package/dist/layout.js +2 -2
- package/dist/{mount-sAVX_FBU.js → mount-rDUAHuDT.js} +1 -1
- package/dist/structure.js +2 -2
- package/package.json +1 -1
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var a = (o, t, e) =>
|
|
5
|
-
import
|
|
6
|
-
import { jsx as
|
|
7
|
-
class
|
|
2
|
+
var ct = Object.defineProperty;
|
|
3
|
+
var lt = (o, t, e) => t in o ? ct(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
|
|
4
|
+
var a = (o, t, e) => lt(o, typeof t != "symbol" ? t + "" : t, e);
|
|
5
|
+
import g, { useRef as S, createContext as z, useContext as M, useCallback as $, useSyncExternalStore as R, useEffect as L, useState as I, memo as at, cloneElement as O } from "react";
|
|
6
|
+
import { jsx as x, Fragment as B } from "react/jsx-runtime";
|
|
7
|
+
class X {
|
|
8
8
|
constructor() {
|
|
9
9
|
a(this, "activeEffect", null);
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
const
|
|
13
|
-
function
|
|
14
|
-
return new
|
|
12
|
+
const Y = new X(), P = [Y];
|
|
13
|
+
function H() {
|
|
14
|
+
return new X();
|
|
15
15
|
}
|
|
16
16
|
function K() {
|
|
17
|
-
return
|
|
17
|
+
return P[P.length - 1] ?? Y;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function j() {
|
|
20
20
|
return K().activeEffect;
|
|
21
21
|
}
|
|
22
|
-
function
|
|
23
|
-
|
|
22
|
+
function ht(o, t) {
|
|
23
|
+
P.push(o);
|
|
24
24
|
try {
|
|
25
25
|
return t();
|
|
26
26
|
} finally {
|
|
27
|
-
|
|
27
|
+
P.pop();
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function N(o) {
|
|
31
31
|
const t = K(), e = t.activeEffect;
|
|
32
32
|
return t.activeEffect = o, e;
|
|
33
33
|
}
|
|
34
|
-
class
|
|
34
|
+
class ut {
|
|
35
35
|
constructor(t) {
|
|
36
36
|
a(this, "dependencies", /* @__PURE__ */ new Set());
|
|
37
37
|
a(this, "_onDispose");
|
|
38
38
|
this.fn = t, this.run();
|
|
39
39
|
}
|
|
40
40
|
run() {
|
|
41
|
-
const t =
|
|
41
|
+
const t = N(this);
|
|
42
42
|
try {
|
|
43
43
|
this.cleanup(), this.fn();
|
|
44
44
|
} finally {
|
|
45
|
-
|
|
45
|
+
N(t);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
track(t) {
|
|
@@ -59,17 +59,17 @@ class at {
|
|
|
59
59
|
this.cleanup(), (t = this._onDispose) == null || t.call(this);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
class
|
|
62
|
+
class ft {
|
|
63
63
|
constructor(t) {
|
|
64
64
|
a(this, "dependencies", /* @__PURE__ */ new Set());
|
|
65
65
|
this._onInvalidate = t;
|
|
66
66
|
}
|
|
67
67
|
execute(t) {
|
|
68
|
-
const e =
|
|
68
|
+
const e = N(this);
|
|
69
69
|
try {
|
|
70
70
|
return this.cleanup(), t();
|
|
71
71
|
} finally {
|
|
72
|
-
|
|
72
|
+
N(e);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
track(t) {
|
|
@@ -85,14 +85,14 @@ class ht {
|
|
|
85
85
|
this.cleanup();
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
class
|
|
88
|
+
class E {
|
|
89
89
|
constructor(t) {
|
|
90
90
|
a(this, "listeners", /* @__PURE__ */ new Set());
|
|
91
91
|
a(this, "effects", /* @__PURE__ */ new Set());
|
|
92
92
|
this._value = t;
|
|
93
93
|
}
|
|
94
94
|
get value() {
|
|
95
|
-
const t =
|
|
95
|
+
const t = j();
|
|
96
96
|
return t && t.track(this), this._value;
|
|
97
97
|
}
|
|
98
98
|
set value(t) {
|
|
@@ -112,28 +112,28 @@ class R {
|
|
|
112
112
|
t.forEach((s) => s.trigger()), e.forEach((s) => s(this._value));
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
function
|
|
116
|
-
return new
|
|
115
|
+
function Ut(o) {
|
|
116
|
+
return new E(o);
|
|
117
117
|
}
|
|
118
|
-
class
|
|
118
|
+
class dt {
|
|
119
119
|
constructor(t) {
|
|
120
120
|
a(this, "listeners", /* @__PURE__ */ new Set());
|
|
121
121
|
a(this, "effects", /* @__PURE__ */ new Set());
|
|
122
122
|
a(this, "_value");
|
|
123
123
|
a(this, "_dirty", !0);
|
|
124
124
|
a(this, "internalEffect");
|
|
125
|
-
this.fn = t, this.internalEffect = new
|
|
125
|
+
this.fn = t, this.internalEffect = new ut(() => {
|
|
126
126
|
this._dirty || (this._dirty = !0, this.notify());
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
129
|
get value() {
|
|
130
|
-
const t =
|
|
130
|
+
const t = j();
|
|
131
131
|
if (t && t.track(this), this._dirty) {
|
|
132
|
-
const e =
|
|
132
|
+
const e = N(this.internalEffect);
|
|
133
133
|
try {
|
|
134
134
|
this.internalEffect.cleanup(), this._value = this.fn(), this._dirty = !1;
|
|
135
135
|
} finally {
|
|
136
|
-
|
|
136
|
+
N(e);
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
return this._value;
|
|
@@ -152,17 +152,17 @@ class ut {
|
|
|
152
152
|
t.forEach((s) => s.trigger()), e.forEach((s) => s(this._value));
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
function
|
|
156
|
-
return new
|
|
155
|
+
function qt(o) {
|
|
156
|
+
return new dt(o);
|
|
157
157
|
}
|
|
158
|
-
class
|
|
158
|
+
class pt {
|
|
159
159
|
constructor(t) {
|
|
160
160
|
a(this, "listeners", /* @__PURE__ */ new Set());
|
|
161
161
|
a(this, "effects", /* @__PURE__ */ new Set());
|
|
162
162
|
this._value = t;
|
|
163
163
|
}
|
|
164
164
|
get() {
|
|
165
|
-
const t =
|
|
165
|
+
const t = j();
|
|
166
166
|
return t && t.track(this), this._value;
|
|
167
167
|
}
|
|
168
168
|
set(t) {
|
|
@@ -181,17 +181,17 @@ class dt {
|
|
|
181
181
|
Array.from(this.effects).forEach((t) => t.trigger()), Array.from(this.listeners).forEach((t) => t(this._value));
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
function
|
|
185
|
-
return new
|
|
184
|
+
function Zt(o) {
|
|
185
|
+
return new pt(o);
|
|
186
186
|
}
|
|
187
|
-
class
|
|
187
|
+
class mt {
|
|
188
188
|
constructor(t) {
|
|
189
189
|
a(this, "listeners", /* @__PURE__ */ new Set());
|
|
190
190
|
a(this, "effects", /* @__PURE__ */ new Set());
|
|
191
191
|
this.state = t;
|
|
192
192
|
}
|
|
193
193
|
getState() {
|
|
194
|
-
const t =
|
|
194
|
+
const t = j();
|
|
195
195
|
return t && t.track(this), this.state;
|
|
196
196
|
}
|
|
197
197
|
setState(t) {
|
|
@@ -211,103 +211,103 @@ class ft {
|
|
|
211
211
|
Array.from(this.effects).forEach((t) => t.trigger()), Array.from(this.listeners).forEach((t) => t(this.state));
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
|
-
function
|
|
215
|
-
return new
|
|
214
|
+
function Jt(o) {
|
|
215
|
+
return new mt(o);
|
|
216
216
|
}
|
|
217
|
-
const
|
|
218
|
-
function
|
|
219
|
-
return
|
|
217
|
+
const gt = H(), U = z(gt);
|
|
218
|
+
function bt() {
|
|
219
|
+
return M(U);
|
|
220
220
|
}
|
|
221
|
-
function
|
|
222
|
-
const e =
|
|
223
|
-
return /* @__PURE__ */
|
|
221
|
+
function Qt({ children: o, scope: t }) {
|
|
222
|
+
const e = S(t ?? H()).current;
|
|
223
|
+
return /* @__PURE__ */ x(U.Provider, { value: e, children: o });
|
|
224
224
|
}
|
|
225
|
-
function
|
|
226
|
-
const t =
|
|
227
|
-
s.current || (s.current = new
|
|
225
|
+
function kt({ children: o }) {
|
|
226
|
+
const t = S(0), e = S(/* @__PURE__ */ new Set()), s = S(null);
|
|
227
|
+
s.current || (s.current = new ft(() => {
|
|
228
228
|
t.current += 1, e.current.forEach((h) => h());
|
|
229
229
|
}));
|
|
230
|
-
const r =
|
|
230
|
+
const r = $((h) => (e.current.add(h), () => {
|
|
231
231
|
e.current.delete(h);
|
|
232
|
-
}), []), i =
|
|
233
|
-
|
|
232
|
+
}), []), i = $(() => t.current, []);
|
|
233
|
+
R(r, i, i), L(() => () => {
|
|
234
234
|
var h;
|
|
235
235
|
(h = s.current) == null || h.dispose();
|
|
236
236
|
}, []);
|
|
237
|
-
const
|
|
237
|
+
const c = bt();
|
|
238
238
|
let n = null;
|
|
239
239
|
try {
|
|
240
|
-
n =
|
|
240
|
+
n = ht(c, () => s.current.execute(o));
|
|
241
241
|
} catch {
|
|
242
242
|
n = null;
|
|
243
243
|
}
|
|
244
|
-
return /* @__PURE__ */
|
|
244
|
+
return /* @__PURE__ */ x(B, { children: n });
|
|
245
245
|
}
|
|
246
|
-
const
|
|
247
|
-
function
|
|
248
|
-
const t =
|
|
246
|
+
const yt = z(/* @__PURE__ */ new Map()), q = z(null);
|
|
247
|
+
function te(o) {
|
|
248
|
+
const t = M(q);
|
|
249
249
|
if (!t)
|
|
250
250
|
throw new Error("useBuilderState must be used under a builder that called .state()");
|
|
251
251
|
return [t.get(o), (e) => t.set(o, e)];
|
|
252
252
|
}
|
|
253
|
-
function
|
|
254
|
-
const [e, s] =
|
|
253
|
+
function _t({ stateMap: o = /* @__PURE__ */ new Map(), children: t }) {
|
|
254
|
+
const [e, s] = I(() => new Map(o)), r = {
|
|
255
255
|
map: e,
|
|
256
256
|
get: (i) => e.get(i),
|
|
257
|
-
set: (i,
|
|
257
|
+
set: (i, c) => {
|
|
258
258
|
s((n) => {
|
|
259
|
-
if (Object.is(n.get(i),
|
|
259
|
+
if (Object.is(n.get(i), c))
|
|
260
260
|
return n;
|
|
261
261
|
const h = new Map(n);
|
|
262
|
-
return h.set(i,
|
|
262
|
+
return h.set(i, c), h;
|
|
263
263
|
});
|
|
264
264
|
}
|
|
265
265
|
};
|
|
266
|
-
return /* @__PURE__ */
|
|
266
|
+
return /* @__PURE__ */ x(q.Provider, { value: r, children: /* @__PURE__ */ x(yt.Provider, { value: e, children: t }) });
|
|
267
267
|
}
|
|
268
|
-
function
|
|
269
|
-
const e =
|
|
270
|
-
const
|
|
268
|
+
function xt({ observables: o, children: t }) {
|
|
269
|
+
const e = S(0), s = $((i) => {
|
|
270
|
+
const c = Array.from(o).map(
|
|
271
271
|
(n) => n.subscribe(() => {
|
|
272
272
|
e.current += 1, i();
|
|
273
273
|
})
|
|
274
274
|
);
|
|
275
|
-
return () =>
|
|
276
|
-
}, [o]), r =
|
|
277
|
-
return
|
|
275
|
+
return () => c.forEach((n) => n());
|
|
276
|
+
}, [o]), r = $(() => e.current, []);
|
|
277
|
+
return R(s, r, r), /* @__PURE__ */ x(B, { children: typeof t == "function" ? t() : t });
|
|
278
278
|
}
|
|
279
|
-
function
|
|
280
|
-
const e =
|
|
281
|
-
const
|
|
279
|
+
function wt({ signals: o, children: t }) {
|
|
280
|
+
const e = S(0), s = $((i) => {
|
|
281
|
+
const c = Array.from(o).map(
|
|
282
282
|
(n) => n.subscribe(() => {
|
|
283
283
|
e.current += 1, i();
|
|
284
284
|
})
|
|
285
285
|
);
|
|
286
|
-
return () =>
|
|
287
|
-
}, [o]), r =
|
|
288
|
-
return
|
|
286
|
+
return () => c.forEach((n) => n());
|
|
287
|
+
}, [o]), r = $(() => e.current, []);
|
|
288
|
+
return R(s, r, r), /* @__PURE__ */ x(B, { children: typeof t == "function" ? t() : t });
|
|
289
289
|
}
|
|
290
|
-
const
|
|
291
|
-
function
|
|
292
|
-
const t =
|
|
290
|
+
const Z = z(/* @__PURE__ */ new Map());
|
|
291
|
+
function ee(o) {
|
|
292
|
+
const t = M(Z);
|
|
293
293
|
return t == null ? void 0 : t.get(o);
|
|
294
294
|
}
|
|
295
|
-
function
|
|
296
|
-
return /* @__PURE__ */
|
|
295
|
+
function St({ providers: o = /* @__PURE__ */ new Map(), children: t }) {
|
|
296
|
+
return /* @__PURE__ */ x(Z.Provider, { value: o, children: t });
|
|
297
297
|
}
|
|
298
|
-
function
|
|
298
|
+
function $t(o) {
|
|
299
299
|
return !!o && typeof o == "object" && "build" in o && typeof o.build == "function";
|
|
300
300
|
}
|
|
301
|
-
function
|
|
302
|
-
return
|
|
301
|
+
function Nt(o) {
|
|
302
|
+
return g.isValidElement(o) ? o : $t(o) ? o.build() : o;
|
|
303
303
|
}
|
|
304
|
-
function
|
|
304
|
+
function D(o) {
|
|
305
305
|
if (o == null)
|
|
306
306
|
return [];
|
|
307
307
|
const t = typeof o == "function" ? o() : o;
|
|
308
|
-
return (Array.isArray(t) ? t : [t]).map(
|
|
308
|
+
return (Array.isArray(t) ? t : [t]).map(Nt);
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function Ct(o, t, e) {
|
|
311
311
|
if (!t) return o;
|
|
312
312
|
const s = e ?? (typeof window < "u" ? window.innerWidth : void 0);
|
|
313
313
|
if (s === void 0)
|
|
@@ -315,40 +315,40 @@ function $t(o, t, e) {
|
|
|
315
315
|
let r = { ...o };
|
|
316
316
|
return s < 768 && t.mobile ? r = { ...r, ...t.mobile } : s >= 768 && s < 1024 && t.tablet ? r = { ...r, ...t.tablet } : s >= 1024 && t.desktop && (r = { ...r, ...t.desktop }), r;
|
|
317
317
|
}
|
|
318
|
-
function
|
|
319
|
-
const e =
|
|
320
|
-
return (s) =>
|
|
318
|
+
function se(o, t) {
|
|
319
|
+
const e = at(o, t);
|
|
320
|
+
return (s) => g.createElement(e, s);
|
|
321
321
|
}
|
|
322
|
-
function
|
|
322
|
+
function J(o) {
|
|
323
323
|
var t, e, s = "";
|
|
324
324
|
if (typeof o == "string" || typeof o == "number") s += o;
|
|
325
325
|
else if (typeof o == "object") if (Array.isArray(o)) {
|
|
326
326
|
var r = o.length;
|
|
327
|
-
for (t = 0; t < r; t++) o[t] && (e =
|
|
327
|
+
for (t = 0; t < r; t++) o[t] && (e = J(o[t])) && (s && (s += " "), s += e);
|
|
328
328
|
} else for (e in o) o[e] && (s && (s += " "), s += e);
|
|
329
329
|
return s;
|
|
330
330
|
}
|
|
331
|
-
function
|
|
332
|
-
for (var o, t, e = 0, s = "", r = arguments.length; e < r; e++) (o = arguments[e]) && (t =
|
|
331
|
+
function Et() {
|
|
332
|
+
for (var o, t, e = 0, s = "", r = arguments.length; e < r; e++) (o = arguments[e]) && (t = J(o)) && (s && (s += " "), s += t);
|
|
333
333
|
return s;
|
|
334
334
|
}
|
|
335
|
-
const
|
|
335
|
+
const _ = class _ {
|
|
336
336
|
constructor() {
|
|
337
337
|
a(this, "sheet", null);
|
|
338
338
|
a(this, "cache", /* @__PURE__ */ new Map());
|
|
339
339
|
typeof document < "u" && (this.sheet = document.createElement("style"), this.sheet.id = "fibo-dynamic-styles", document.head.appendChild(this.sheet));
|
|
340
340
|
}
|
|
341
341
|
static getInstance() {
|
|
342
|
-
return
|
|
342
|
+
return _.instance || (_.instance = new _()), _.instance;
|
|
343
343
|
}
|
|
344
344
|
register(t, e) {
|
|
345
345
|
const s = `${t}:${e}`;
|
|
346
346
|
if (this.cache.has(s))
|
|
347
347
|
return this.cache.get(s);
|
|
348
|
-
const r = e.replace(/[^a-zA-Z0-9-]/g, "_"), i = `fibo-${t}-${r}`,
|
|
348
|
+
const r = e.replace(/[^a-zA-Z0-9-]/g, "_"), i = `fibo-${t}-${r}`, c = `.${i} { ${t}: ${e} !important; }`;
|
|
349
349
|
if (this.sheet && this.sheet.sheet)
|
|
350
350
|
try {
|
|
351
|
-
this.sheet.sheet.insertRule(
|
|
351
|
+
this.sheet.sheet.insertRule(c, this.sheet.sheet.cssRules.length);
|
|
352
352
|
} catch (n) {
|
|
353
353
|
console.error("FiboUI: Failed to inject dynamic style", n);
|
|
354
354
|
}
|
|
@@ -358,10 +358,10 @@ const x = class x {
|
|
|
358
358
|
const i = `${t}:${e}:${s}:${r}`;
|
|
359
359
|
if (this.cache.has(i))
|
|
360
360
|
return t;
|
|
361
|
-
const
|
|
361
|
+
const c = `.${t}:${e} { ${s}: ${r} !important; }`;
|
|
362
362
|
if (this.sheet && this.sheet.sheet)
|
|
363
363
|
try {
|
|
364
|
-
this.sheet.sheet.insertRule(
|
|
364
|
+
this.sheet.sheet.insertRule(c, this.sheet.sheet.cssRules.length);
|
|
365
365
|
} catch (n) {
|
|
366
366
|
console.error("FiboUI: Failed to inject pseudo-state style", n);
|
|
367
367
|
}
|
|
@@ -371,41 +371,41 @@ const x = class x {
|
|
|
371
371
|
const i = `group:${t}:${e}:${s}:${r}`;
|
|
372
372
|
if (this.cache.has(i))
|
|
373
373
|
return t;
|
|
374
|
-
const
|
|
374
|
+
const c = `.group:${e} .${t} { ${s}: ${r} !important; }`;
|
|
375
375
|
if (this.sheet && this.sheet.sheet)
|
|
376
376
|
try {
|
|
377
|
-
this.sheet.sheet.insertRule(
|
|
377
|
+
this.sheet.sheet.insertRule(c, this.sheet.sheet.cssRules.length);
|
|
378
378
|
} catch (n) {
|
|
379
379
|
console.error("FiboUI: Failed to inject group pseudo-state style", n);
|
|
380
380
|
}
|
|
381
381
|
return this.cache.set(i, t), t;
|
|
382
382
|
}
|
|
383
383
|
};
|
|
384
|
-
a(
|
|
385
|
-
let
|
|
386
|
-
const
|
|
387
|
-
function
|
|
384
|
+
a(_, "instance");
|
|
385
|
+
let W = _;
|
|
386
|
+
const l = W.getInstance();
|
|
387
|
+
function Pt(o) {
|
|
388
388
|
const t = o.match(/oklch\(\s*([\d.]+)\s+([\d.]+)\s+([\d.]+)\s*\)/);
|
|
389
389
|
if (!t)
|
|
390
390
|
return o;
|
|
391
|
-
const [, e, s, r] = t, i = parseFloat(e),
|
|
392
|
-
var
|
|
393
|
-
const
|
|
394
|
-
return
|
|
391
|
+
const [, e, s, r] = t, i = parseFloat(e), c = parseFloat(s), n = parseFloat(r), h = c * Math.cos(n * Math.PI / 180), u = c * Math.sin(n * Math.PI / 180), d = i + 0.3963377774 * h + 0.2158037573 * u, f = i - 0.1055613458 * h - 0.0638541728 * u, m = i - 0.0894841775 * h - 1.291485548 * u, p = d * d * d, k = f * f * f, y = m * m * m, v = 4.0767416621 * p - 3.3077115913 * k + 0.2309699292 * y, st = -1.2684380046 * p + 2.6097574011 * k - 0.3413193965 * y, ot = -0.0041960863 * p - 0.7034186147 * k + 1.707614701 * y, V = (C) => C >= 31308e-7 ? 1.055 * C ** (1 / 2.4) - 0.055 : 12.92 * C, rt = Math.max(0, Math.min(1, V(v))), it = Math.max(0, Math.min(1, V(st))), nt = Math.max(0, Math.min(1, V(ot))), F = (C) => {
|
|
392
|
+
var G;
|
|
393
|
+
const A = (G = Math.round(C * 255).toString(16)) == null ? void 0 : G.toUpperCase();
|
|
394
|
+
return A.length === 1 ? `0${A}` : A;
|
|
395
395
|
};
|
|
396
|
-
return `#${
|
|
396
|
+
return `#${F(rt)}${F(it)}${F(nt)}`;
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function zt(o) {
|
|
399
399
|
const t = {}, e = {}, s = o.split(`
|
|
400
400
|
`);
|
|
401
401
|
for (const r of s) {
|
|
402
402
|
const i = r.trim();
|
|
403
403
|
if (!i || i.startsWith("//") || i.startsWith("*") || i === "@theme {" || i === "}")
|
|
404
404
|
continue;
|
|
405
|
-
const
|
|
406
|
-
if (
|
|
407
|
-
const [, h, u] =
|
|
408
|
-
t[
|
|
405
|
+
const c = i.match(/^--color-([a-z0-9\-]+): (oklch\([^)]+\));?$/), n = i.match(/^--color-([a-z0-9\-]+): (#[a-fA-F0-9]{3,6});?$/);
|
|
406
|
+
if (c) {
|
|
407
|
+
const [, h, u] = c, d = Pt(u);
|
|
408
|
+
t[d.toLowerCase()] = `bg-${h}`, e[d.toLowerCase()] = `text-${h}`;
|
|
409
409
|
} else if (n) {
|
|
410
410
|
const [, h, u] = n;
|
|
411
411
|
t[u.toLowerCase()] = `bg-${h}`, e[u.toLowerCase()] = `text-${h}`;
|
|
@@ -413,13 +413,13 @@ function Et(o) {
|
|
|
413
413
|
}
|
|
414
414
|
return { background: t, text: e };
|
|
415
415
|
}
|
|
416
|
-
const
|
|
416
|
+
const Rt = (o) => {
|
|
417
417
|
if (o !== void 0)
|
|
418
418
|
return typeof o == "number" ? `${o}px` : o.toString();
|
|
419
|
-
},
|
|
420
|
-
const e =
|
|
419
|
+
}, w = (o, t) => {
|
|
420
|
+
const e = Rt(t);
|
|
421
421
|
return e === void 0 ? "" : `${o}-[${e}]`;
|
|
422
|
-
},
|
|
422
|
+
}, jt = `
|
|
423
423
|
--color-red-50: oklch(0.971 0.013 17.38);
|
|
424
424
|
--color-red-100: oklch(0.936 0.032 17.717);
|
|
425
425
|
--color-red-200: oklch(0.885 0.062 18.334);
|
|
@@ -664,7 +664,7 @@ const Pt = (o) => {
|
|
|
664
664
|
--color-stone-950: oklch(0.147 0.004 49.25);
|
|
665
665
|
--color-black: #000;
|
|
666
666
|
--color-white: #fff;
|
|
667
|
-
`,
|
|
667
|
+
`, vt = zt(jt), Q = {
|
|
668
668
|
borderRadius: {
|
|
669
669
|
0: "rounded-none",
|
|
670
670
|
"0px": "rounded-none",
|
|
@@ -761,7 +761,7 @@ const Pt = (o) => {
|
|
|
761
761
|
fixed: "fixed",
|
|
762
762
|
sticky: "sticky"
|
|
763
763
|
}
|
|
764
|
-
},
|
|
764
|
+
}, Vt = (o, t) => ({
|
|
765
765
|
// 背景色
|
|
766
766
|
backgroundColor: (e) => e.backgroundColor ? [o.background[e.backgroundColor.toLowerCase()] || `bg-[${e.backgroundColor}]`] : [],
|
|
767
767
|
// 文字色
|
|
@@ -770,14 +770,14 @@ const Pt = (o) => {
|
|
|
770
770
|
borderRadius: (e) => {
|
|
771
771
|
if (!e.borderRadius)
|
|
772
772
|
return [];
|
|
773
|
-
const s =
|
|
773
|
+
const s = Q.borderRadius[e.borderRadius] || w("rounded", e.borderRadius);
|
|
774
774
|
return s ? [s] : [];
|
|
775
775
|
},
|
|
776
776
|
// 外边距
|
|
777
777
|
margin: (e) => {
|
|
778
778
|
const s = [];
|
|
779
779
|
if (e.margin !== void 0) {
|
|
780
|
-
const i =
|
|
780
|
+
const i = w("m", e.margin);
|
|
781
781
|
return i ? [i] : [];
|
|
782
782
|
}
|
|
783
783
|
return [
|
|
@@ -787,9 +787,9 @@ const Pt = (o) => {
|
|
|
787
787
|
{ prop: e.marginLeft, dir: "ml" },
|
|
788
788
|
{ prop: e.marginX, dir: "mx" },
|
|
789
789
|
{ prop: e.marginY, dir: "my" }
|
|
790
|
-
].forEach(({ prop: i, dir:
|
|
790
|
+
].forEach(({ prop: i, dir: c }) => {
|
|
791
791
|
if (i !== void 0) {
|
|
792
|
-
const n =
|
|
792
|
+
const n = w(c, i);
|
|
793
793
|
n && s.push(n);
|
|
794
794
|
}
|
|
795
795
|
}), s;
|
|
@@ -798,7 +798,7 @@ const Pt = (o) => {
|
|
|
798
798
|
padding: (e) => {
|
|
799
799
|
const s = [];
|
|
800
800
|
if (e.padding !== void 0) {
|
|
801
|
-
const i =
|
|
801
|
+
const i = w("p", e.padding);
|
|
802
802
|
return i ? [i] : [];
|
|
803
803
|
}
|
|
804
804
|
return [
|
|
@@ -808,9 +808,9 @@ const Pt = (o) => {
|
|
|
808
808
|
{ prop: e.paddingLeft, dir: "pl" },
|
|
809
809
|
{ prop: e.paddingX, dir: "px" },
|
|
810
810
|
{ prop: e.paddingY, dir: "py" }
|
|
811
|
-
].forEach(({ prop: i, dir:
|
|
811
|
+
].forEach(({ prop: i, dir: c }) => {
|
|
812
812
|
if (i !== void 0) {
|
|
813
|
-
const n =
|
|
813
|
+
const n = w(c, i);
|
|
814
814
|
n && s.push(n);
|
|
815
815
|
}
|
|
816
816
|
}), s;
|
|
@@ -895,7 +895,7 @@ const Pt = (o) => {
|
|
|
895
895
|
i && s.push(i);
|
|
896
896
|
}
|
|
897
897
|
if (e.gap) {
|
|
898
|
-
const r =
|
|
898
|
+
const r = w("gap", e.gap);
|
|
899
899
|
r && s.push(r);
|
|
900
900
|
}
|
|
901
901
|
return s;
|
|
@@ -917,7 +917,7 @@ const Pt = (o) => {
|
|
|
917
917
|
},
|
|
918
918
|
// 自定义类名
|
|
919
919
|
className: (e) => e.className ? [e.className] : []
|
|
920
|
-
}),
|
|
920
|
+
}), Ft = {
|
|
921
921
|
backgroundColor: "backgroundColor",
|
|
922
922
|
color: "color",
|
|
923
923
|
borderRadius: "borderRadius",
|
|
@@ -951,55 +951,55 @@ const Pt = (o) => {
|
|
|
951
951
|
position: "position",
|
|
952
952
|
opacity: "opacity",
|
|
953
953
|
className: "className"
|
|
954
|
-
},
|
|
955
|
-
const e = (t == null ? void 0 : t.colorMaps) ||
|
|
954
|
+
}, At = (o, t) => {
|
|
955
|
+
const e = (t == null ? void 0 : t.colorMaps) || vt, s = (t == null ? void 0 : t.styleMaps) || Q, r = Vt(e, s), i = [], c = /* @__PURE__ */ new Set();
|
|
956
956
|
return Object.keys(o).forEach((n) => {
|
|
957
|
-
const h =
|
|
958
|
-
if (h && !
|
|
957
|
+
const h = Ft[n];
|
|
958
|
+
if (h && !c.has(h)) {
|
|
959
959
|
const u = r[h];
|
|
960
960
|
if (u) {
|
|
961
|
-
const
|
|
962
|
-
i.push(...
|
|
961
|
+
const d = u(o);
|
|
962
|
+
i.push(...d), c.add(h);
|
|
963
963
|
}
|
|
964
964
|
}
|
|
965
965
|
}), i.filter(Boolean).join(" ");
|
|
966
966
|
};
|
|
967
|
-
function
|
|
967
|
+
function Wt(o) {
|
|
968
968
|
const t = {};
|
|
969
969
|
return o.forEach((e, s) => {
|
|
970
970
|
t[s] = e.value;
|
|
971
971
|
}), t;
|
|
972
972
|
}
|
|
973
|
-
function
|
|
974
|
-
const [s, r] =
|
|
975
|
-
() =>
|
|
973
|
+
function Mt({ animatedProps: o, animationConfig: t, children: e }) {
|
|
974
|
+
const [s, r] = I(
|
|
975
|
+
() => Wt(o)
|
|
976
976
|
);
|
|
977
|
-
|
|
977
|
+
L(() => {
|
|
978
978
|
const h = [];
|
|
979
|
-
return o.forEach((u,
|
|
980
|
-
const
|
|
981
|
-
r((
|
|
982
|
-
...
|
|
983
|
-
[
|
|
979
|
+
return o.forEach((u, d) => {
|
|
980
|
+
const f = (m) => {
|
|
981
|
+
r((p) => ({
|
|
982
|
+
...p,
|
|
983
|
+
[d]: m
|
|
984
984
|
}));
|
|
985
985
|
};
|
|
986
|
-
h.push(u.subscribe(
|
|
986
|
+
h.push(u.subscribe(f)), f(u.value);
|
|
987
987
|
}), () => {
|
|
988
988
|
h.forEach((u) => u());
|
|
989
989
|
};
|
|
990
990
|
}, [o]);
|
|
991
991
|
const i = [];
|
|
992
992
|
s.translateX !== void 0 && i.push(`translateX(${s.translateX}px)`), s.translateY !== void 0 && i.push(`translateY(${s.translateY}px)`), s.scale !== void 0 && i.push(`scale(${s.scale})`), s.rotate !== void 0 && i.push(`rotate(${s.rotate}deg)`);
|
|
993
|
-
const
|
|
994
|
-
if (i.length > 0 && (
|
|
995
|
-
const { duration: h = 300, curve: u = "easeOut" } = t,
|
|
996
|
-
|
|
993
|
+
const c = {};
|
|
994
|
+
if (i.length > 0 && (c.transform = i.join(" ")), t) {
|
|
995
|
+
const { duration: h = 300, curve: u = "easeOut" } = t, d = u === "spring" ? "cubic-bezier(0.68, -0.55, 0.265, 1.55)" : u;
|
|
996
|
+
c.transition = `transform ${h}ms ${d}`;
|
|
997
997
|
}
|
|
998
998
|
const n = {
|
|
999
999
|
...e.props.style,
|
|
1000
|
-
...
|
|
1000
|
+
...c
|
|
1001
1001
|
};
|
|
1002
|
-
return
|
|
1002
|
+
return O(e, { style: n });
|
|
1003
1003
|
}
|
|
1004
1004
|
class b {
|
|
1005
1005
|
constructor(t, e, s, r = !1) {
|
|
@@ -1014,45 +1014,45 @@ class b {
|
|
|
1014
1014
|
this.baseClassName = t, this.pseudoState = e, this.parentBuilder = s, this.isGroup = r;
|
|
1015
1015
|
}
|
|
1016
1016
|
bg(t) {
|
|
1017
|
-
return this.isGroup ?
|
|
1017
|
+
return this.isGroup ? l.registerGroupPseudo(this.baseClassName, this.pseudoState, "background-color", t) : l.registerPseudo(this.baseClassName, this.pseudoState, "background-color", t), this;
|
|
1018
1018
|
}
|
|
1019
1019
|
color(t) {
|
|
1020
|
-
return this.isGroup ?
|
|
1020
|
+
return this.isGroup ? l.registerGroupPseudo(this.baseClassName, this.pseudoState, "color", t) : l.registerPseudo(this.baseClassName, this.pseudoState, "color", t), this;
|
|
1021
1021
|
}
|
|
1022
1022
|
text(t) {
|
|
1023
1023
|
return this.color(t);
|
|
1024
1024
|
}
|
|
1025
1025
|
opacity(t) {
|
|
1026
|
-
return this.isGroup ?
|
|
1026
|
+
return this.isGroup ? l.registerGroupPseudo(this.baseClassName, this.pseudoState, "opacity", String(t)) : l.registerPseudo(this.baseClassName, this.pseudoState, "opacity", String(t)), this;
|
|
1027
1027
|
}
|
|
1028
1028
|
borderColor(t) {
|
|
1029
|
-
return this.isGroup ?
|
|
1029
|
+
return this.isGroup ? l.registerGroupPseudo(this.baseClassName, this.pseudoState, "border-color", t) : l.registerPseudo(this.baseClassName, this.pseudoState, "border-color", t), this;
|
|
1030
1030
|
}
|
|
1031
1031
|
transform(t) {
|
|
1032
|
-
return this.isGroup ?
|
|
1032
|
+
return this.isGroup ? l.registerGroupPseudo(this.baseClassName, this.pseudoState, "transform", t) : l.registerPseudo(this.baseClassName, this.pseudoState, "transform", t), this;
|
|
1033
1033
|
}
|
|
1034
1034
|
scale(t) {
|
|
1035
|
-
return this.isGroup ?
|
|
1035
|
+
return this.isGroup ? l.registerGroupPseudo(this.baseClassName, this.pseudoState, "transform", `scale(${t})`) : l.registerPseudo(this.baseClassName, this.pseudoState, "transform", `scale(${t})`), this;
|
|
1036
1036
|
}
|
|
1037
1037
|
translateX(t) {
|
|
1038
1038
|
const e = typeof t == "number" ? `${t}px` : t;
|
|
1039
|
-
return this.isGroup ?
|
|
1039
|
+
return this.isGroup ? l.registerGroupPseudo(this.baseClassName, this.pseudoState, "transform", `translateX(${e})`) : l.registerPseudo(this.baseClassName, this.pseudoState, "transform", `translateX(${e})`), this;
|
|
1040
1040
|
}
|
|
1041
1041
|
translateY(t) {
|
|
1042
1042
|
const e = typeof t == "number" ? `${t}px` : t;
|
|
1043
|
-
return this.isGroup ?
|
|
1043
|
+
return this.isGroup ? l.registerGroupPseudo(this.baseClassName, this.pseudoState, "transform", `translateY(${e})`) : l.registerPseudo(this.baseClassName, this.pseudoState, "transform", `translateY(${e})`), this;
|
|
1044
1044
|
}
|
|
1045
1045
|
shadow(t) {
|
|
1046
|
-
return this.isGroup ?
|
|
1046
|
+
return this.isGroup ? l.registerGroupPseudo(this.baseClassName, this.pseudoState, "box-shadow", t) : l.registerPseudo(this.baseClassName, this.pseudoState, "box-shadow", t), this;
|
|
1047
1047
|
}
|
|
1048
1048
|
css(t, e) {
|
|
1049
|
-
return this.isGroup ?
|
|
1049
|
+
return this.isGroup ? l.registerGroupPseudo(this.baseClassName, this.pseudoState, t, e) : l.registerPseudo(this.baseClassName, this.pseudoState, t, e), this;
|
|
1050
1050
|
}
|
|
1051
1051
|
transition(t, e, s, r) {
|
|
1052
1052
|
if (typeof t == "string" && e === void 0)
|
|
1053
|
-
return this.isGroup ?
|
|
1054
|
-
const i = Array.isArray(t) ? t.join(", ") : t,
|
|
1055
|
-
return this.isGroup ?
|
|
1053
|
+
return this.isGroup ? l.registerGroupPseudo(this.baseClassName, this.pseudoState, "transition", t) : l.registerPseudo(this.baseClassName, this.pseudoState, "transition", t), this;
|
|
1054
|
+
const i = Array.isArray(t) ? t.join(", ") : t, c = `${e || this.transitionDuration}ms`, n = s || this.transitionEasing, h = r ? `${r}ms` : "0ms", u = `${i} ${c} ${n} ${h}`;
|
|
1055
|
+
return this.isGroup ? l.registerGroupPseudo(this.baseClassName, this.pseudoState, "transition", u) : l.registerPseudo(this.baseClassName, this.pseudoState, "transition", u), this;
|
|
1056
1056
|
}
|
|
1057
1057
|
duration(t) {
|
|
1058
1058
|
return this.transitionDuration = t, this.applyTransition(), this;
|
|
@@ -1068,28 +1068,28 @@ class b {
|
|
|
1068
1068
|
}
|
|
1069
1069
|
applyTransition() {
|
|
1070
1070
|
const t = this.transitionProperties.join(", "), e = `${this.transitionDuration}ms`, s = this.transitionEasing, r = this.transitionDelay > 0 ? `${this.transitionDelay}ms` : "0ms", i = `${t} ${e} ${s} ${r}`;
|
|
1071
|
-
this.isGroup ?
|
|
1071
|
+
this.isGroup ? l.registerGroupPseudo(this.baseClassName, this.pseudoState, "transition", i) : l.registerPseudo(this.baseClassName, this.pseudoState, "transition", i);
|
|
1072
1072
|
}
|
|
1073
1073
|
end() {
|
|
1074
1074
|
return this.parentBuilder;
|
|
1075
1075
|
}
|
|
1076
1076
|
}
|
|
1077
|
-
function
|
|
1077
|
+
function Bt(o) {
|
|
1078
1078
|
return typeof window > "u" ? () => {
|
|
1079
1079
|
} : (window.addEventListener("resize", o), () => window.removeEventListener("resize", o));
|
|
1080
1080
|
}
|
|
1081
|
-
function
|
|
1081
|
+
function Gt() {
|
|
1082
1082
|
return typeof window > "u" ? 1024 : window.innerWidth;
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1085
|
-
const e =
|
|
1086
|
-
return
|
|
1084
|
+
function Dt({ responsive: o, children: t }) {
|
|
1085
|
+
const e = R(Bt, Gt, () => 1024), s = Ct(t.props.style ?? {}, o, e);
|
|
1086
|
+
return O(t, { style: s });
|
|
1087
1087
|
}
|
|
1088
|
-
let
|
|
1089
|
-
function
|
|
1090
|
-
return
|
|
1088
|
+
let T = 0;
|
|
1089
|
+
function tt(o) {
|
|
1090
|
+
return T += 1, `${o}-${T}`;
|
|
1091
1091
|
}
|
|
1092
|
-
class
|
|
1092
|
+
class oe {
|
|
1093
1093
|
constructor() {
|
|
1094
1094
|
/** @internal Extra DOM props forwarded to the host element. */
|
|
1095
1095
|
a(this, "_props", {});
|
|
@@ -1129,23 +1129,27 @@ class te {
|
|
|
1129
1129
|
id(t) {
|
|
1130
1130
|
return this._props.id = t, this;
|
|
1131
1131
|
}
|
|
1132
|
+
/**
|
|
1133
|
+
* React list key. After this is called, React reads the key as a string.
|
|
1134
|
+
* Builders are valid elements — you do not need `.build()`.
|
|
1135
|
+
*/
|
|
1132
1136
|
key(t) {
|
|
1133
1137
|
return this._props.key = t, this;
|
|
1134
1138
|
}
|
|
1135
1139
|
paddingHorizontal(t) {
|
|
1136
|
-
const e = typeof t == "number" ? `${t}px` : t, s =
|
|
1140
|
+
const e = typeof t == "number" ? `${t}px` : t, s = l.register("padding-left", e), r = l.register("padding-right", e);
|
|
1137
1141
|
return this._classNames.push(s, r), this;
|
|
1138
1142
|
}
|
|
1139
1143
|
paddingVertical(t) {
|
|
1140
|
-
const e = typeof t == "number" ? `${t}px` : t, s =
|
|
1144
|
+
const e = typeof t == "number" ? `${t}px` : t, s = l.register("padding-top", e), r = l.register("padding-bottom", e);
|
|
1141
1145
|
return this._classNames.push(s, r), this;
|
|
1142
1146
|
}
|
|
1143
1147
|
marginHorizontal(t) {
|
|
1144
|
-
const e = typeof t == "number" ? `${t}px` : t, s =
|
|
1148
|
+
const e = typeof t == "number" ? `${t}px` : t, s = l.register("margin-left", e), r = l.register("margin-right", e);
|
|
1145
1149
|
return this._classNames.push(s, r), this;
|
|
1146
1150
|
}
|
|
1147
1151
|
marginVertical(t) {
|
|
1148
|
-
const e = typeof t == "number" ? `${t}px` : t, s =
|
|
1152
|
+
const e = typeof t == "number" ? `${t}px` : t, s = l.register("margin-top", e), r = l.register("margin-bottom", e);
|
|
1149
1153
|
return this._classNames.push(s, r), this;
|
|
1150
1154
|
}
|
|
1151
1155
|
flexDirection(t) {
|
|
@@ -1160,7 +1164,7 @@ class te {
|
|
|
1160
1164
|
flex(t) {
|
|
1161
1165
|
if (this._classNames.push("flex"), t !== void 0)
|
|
1162
1166
|
if (typeof t == "number") {
|
|
1163
|
-
const e =
|
|
1167
|
+
const e = l.register("flex", String(t));
|
|
1164
1168
|
this._classNames.push(e);
|
|
1165
1169
|
} else typeof t == "string" && this._classNames.push(`flex-${t}`);
|
|
1166
1170
|
return this;
|
|
@@ -1211,18 +1215,18 @@ class te {
|
|
|
1211
1215
|
return this._classNames.push("h-full"), this;
|
|
1212
1216
|
}
|
|
1213
1217
|
square(t) {
|
|
1214
|
-
const e = typeof t == "number" ? `${t}px` : t, s =
|
|
1218
|
+
const e = typeof t == "number" ? `${t}px` : t, s = l.register("width", e), r = l.register("height", e);
|
|
1215
1219
|
return this._classNames.push(s, r), this;
|
|
1216
1220
|
}
|
|
1217
1221
|
circle() {
|
|
1218
1222
|
return this._classNames.push("rounded-full"), this;
|
|
1219
1223
|
}
|
|
1220
1224
|
opacity(t) {
|
|
1221
|
-
const e =
|
|
1225
|
+
const e = l.register("opacity", String(t));
|
|
1222
1226
|
return this._classNames.push(e), this;
|
|
1223
1227
|
}
|
|
1224
1228
|
p(t) {
|
|
1225
|
-
const e = typeof t == "number" ? `${t}px` : t, s =
|
|
1229
|
+
const e = typeof t == "number" ? `${t}px` : t, s = l.register("padding", e);
|
|
1226
1230
|
return this._classNames.push(s), this;
|
|
1227
1231
|
}
|
|
1228
1232
|
px(t) {
|
|
@@ -1238,7 +1242,7 @@ class te {
|
|
|
1238
1242
|
return this.paddingVertical(t);
|
|
1239
1243
|
}
|
|
1240
1244
|
m(t) {
|
|
1241
|
-
const e = typeof t == "number" ? `${t}px` : t, s =
|
|
1245
|
+
const e = typeof t == "number" ? `${t}px` : t, s = l.register("margin", e);
|
|
1242
1246
|
return this._classNames.push(s), this;
|
|
1243
1247
|
}
|
|
1244
1248
|
mx(t) {
|
|
@@ -1254,15 +1258,15 @@ class te {
|
|
|
1254
1258
|
return this.marginVertical(t);
|
|
1255
1259
|
}
|
|
1256
1260
|
bg(t) {
|
|
1257
|
-
const e = typeof t == "string" && !t.startsWith("#") && !t.startsWith("rgb") ? this.resolveSemanticColor(t) : t, s =
|
|
1261
|
+
const e = typeof t == "string" && !t.startsWith("#") && !t.startsWith("rgb") ? this.resolveSemanticColor(t) : t, s = l.register("background-color", e);
|
|
1258
1262
|
return this._classNames.push(s), this;
|
|
1259
1263
|
}
|
|
1260
1264
|
text(t) {
|
|
1261
|
-
const e = typeof t == "string" && !t.startsWith("#") && !t.startsWith("rgb") ? this.resolveSemanticColor(t) : t, s =
|
|
1265
|
+
const e = typeof t == "string" && !t.startsWith("#") && !t.startsWith("rgb") ? this.resolveSemanticColor(t) : t, s = l.register("color", e);
|
|
1262
1266
|
return this._classNames.push(s), this;
|
|
1263
1267
|
}
|
|
1264
1268
|
color(t) {
|
|
1265
|
-
const e = typeof t == "string" && !t.startsWith("#") && !t.startsWith("rgb") ? this.resolveSemanticColor(t) : t, s =
|
|
1269
|
+
const e = typeof t == "string" && !t.startsWith("#") && !t.startsWith("rgb") ? this.resolveSemanticColor(t) : t, s = l.register("color", e);
|
|
1266
1270
|
return this._classNames.push(s), this;
|
|
1267
1271
|
}
|
|
1268
1272
|
resolveSemanticColor(t) {
|
|
@@ -1292,7 +1296,7 @@ class te {
|
|
|
1292
1296
|
}
|
|
1293
1297
|
shadow(t) {
|
|
1294
1298
|
if (t === null || t === "none") {
|
|
1295
|
-
const i =
|
|
1299
|
+
const i = l.register("box-shadow", "none");
|
|
1296
1300
|
return this._classNames.push(i), this;
|
|
1297
1301
|
}
|
|
1298
1302
|
const e = {
|
|
@@ -1306,64 +1310,64 @@ class te {
|
|
|
1306
1310
|
modal: "0 10px 40px rgba(0, 0, 0, 0.2)",
|
|
1307
1311
|
float: "0 8px 16px rgba(0, 0, 0, 0.15)",
|
|
1308
1312
|
inner: "inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)"
|
|
1309
|
-
}, s = (i) => i.startsWith("#") || i.startsWith("rgb") || i.startsWith("hsl") || ["red", "blue", "green", "yellow", "purple", "pink", "orange", "white", "black", "gray"].some((
|
|
1310
|
-
let
|
|
1313
|
+
}, s = (i) => i.startsWith("#") || i.startsWith("rgb") || i.startsWith("hsl") || ["red", "blue", "green", "yellow", "purple", "pink", "orange", "white", "black", "gray"].some((c) => i.includes(c)), r = (i, c, n, h) => {
|
|
1314
|
+
let f = n || "rgba(0, 0, 0, " + (h ?? 0.1) + ")";
|
|
1311
1315
|
if (n && n.startsWith("#") && h !== void 0) {
|
|
1312
|
-
const
|
|
1313
|
-
|
|
1316
|
+
const k = parseInt(n.slice(1, 3), 16), y = parseInt(n.slice(3, 5), 16), v = parseInt(n.slice(5, 7), 16);
|
|
1317
|
+
f = `rgba(${k}, ${y}, ${v}, ${h})`;
|
|
1314
1318
|
}
|
|
1315
|
-
const
|
|
1319
|
+
const p = {
|
|
1316
1320
|
sm: "2px",
|
|
1317
1321
|
md: "4px",
|
|
1318
1322
|
lg: "8px",
|
|
1319
1323
|
xl: "12px",
|
|
1320
1324
|
"2xl": "16px"
|
|
1321
|
-
}[
|
|
1325
|
+
}[c] || "4px";
|
|
1322
1326
|
switch (i) {
|
|
1323
1327
|
case "top":
|
|
1324
|
-
return `0 -${
|
|
1328
|
+
return `0 -${p} ${p} -1px ${f}`;
|
|
1325
1329
|
case "bottom":
|
|
1326
|
-
return `0 ${
|
|
1330
|
+
return `0 ${p} ${p} -1px ${f}`;
|
|
1327
1331
|
case "left":
|
|
1328
|
-
return `-${
|
|
1332
|
+
return `-${p} 0 ${p} -1px ${f}`;
|
|
1329
1333
|
case "right":
|
|
1330
|
-
return `${
|
|
1334
|
+
return `${p} 0 ${p} -1px ${f}`;
|
|
1331
1335
|
case "top-bottom":
|
|
1332
1336
|
case "vertical":
|
|
1333
|
-
return `0 -${
|
|
1337
|
+
return `0 -${p} ${p} -1px ${f}, 0 ${p} ${p} -1px ${f}`;
|
|
1334
1338
|
case "left-right":
|
|
1335
1339
|
case "horizontal":
|
|
1336
|
-
return `-${
|
|
1340
|
+
return `-${p} 0 ${p} -1px ${f}, ${p} 0 ${p} -1px ${f}`;
|
|
1337
1341
|
case "all":
|
|
1338
1342
|
default:
|
|
1339
|
-
return e[
|
|
1343
|
+
return e[c] || e.md;
|
|
1340
1344
|
}
|
|
1341
1345
|
};
|
|
1342
1346
|
if (!t) {
|
|
1343
|
-
const i =
|
|
1347
|
+
const i = l.register("box-shadow", e.md);
|
|
1344
1348
|
return this._classNames.push(i), this;
|
|
1345
1349
|
}
|
|
1346
1350
|
if (typeof t == "string") {
|
|
1347
1351
|
if (s(t)) {
|
|
1348
|
-
const n = r("all", "md", t), h =
|
|
1352
|
+
const n = r("all", "md", t), h = l.register("box-shadow", n);
|
|
1349
1353
|
return this._classNames.push(h), this;
|
|
1350
1354
|
}
|
|
1351
|
-
const i = e[t] || e.md,
|
|
1352
|
-
return this._classNames.push(
|
|
1355
|
+
const i = e[t] || e.md, c = l.register("box-shadow", i);
|
|
1356
|
+
return this._classNames.push(c), this;
|
|
1353
1357
|
}
|
|
1354
1358
|
if (Array.isArray(t)) {
|
|
1355
|
-
const [i,
|
|
1359
|
+
const [i, c, n, h] = t;
|
|
1356
1360
|
if (typeof i == "string" && s(i)) {
|
|
1357
|
-
const
|
|
1361
|
+
const f = r("all", "md", i, c), m = l.register("box-shadow", f);
|
|
1358
1362
|
return this._classNames.push(m), this;
|
|
1359
1363
|
}
|
|
1360
1364
|
const u = i;
|
|
1361
|
-
if (typeof
|
|
1362
|
-
const
|
|
1365
|
+
if (typeof c == "string" && s(c)) {
|
|
1366
|
+
const f = r(u, "md", c, n), m = l.register("box-shadow", f);
|
|
1363
1367
|
return this._classNames.push(m), this;
|
|
1364
1368
|
} else {
|
|
1365
|
-
const m = r(u,
|
|
1366
|
-
return this._classNames.push(
|
|
1369
|
+
const m = r(u, c, n, h), p = l.register("box-shadow", m);
|
|
1370
|
+
return this._classNames.push(p), this;
|
|
1367
1371
|
}
|
|
1368
1372
|
}
|
|
1369
1373
|
return this;
|
|
@@ -1373,23 +1377,23 @@ class te {
|
|
|
1373
1377
|
}
|
|
1374
1378
|
rounded(t) {
|
|
1375
1379
|
if (typeof t == "number") {
|
|
1376
|
-
const e =
|
|
1380
|
+
const e = l.register("border-radius", `${t}px`);
|
|
1377
1381
|
this._classNames.push(e);
|
|
1378
1382
|
} else if (typeof t == "string" && (t.startsWith("rounded-") || ["sm", "md", "lg", "xl", "2xl", "3xl", "full", "none"].includes(t))) {
|
|
1379
1383
|
const e = t.startsWith("rounded-") ? t : `rounded-${t}`;
|
|
1380
1384
|
this._classNames.push(e);
|
|
1381
1385
|
} else {
|
|
1382
|
-
const e =
|
|
1386
|
+
const e = l.register("border-radius", t);
|
|
1383
1387
|
this._classNames.push(e);
|
|
1384
1388
|
}
|
|
1385
1389
|
return this;
|
|
1386
1390
|
}
|
|
1387
1391
|
borderRadius(t) {
|
|
1388
1392
|
if (typeof t == "number") {
|
|
1389
|
-
const e =
|
|
1393
|
+
const e = l.register("border-radius", `${t}px`);
|
|
1390
1394
|
this._classNames.push(e);
|
|
1391
1395
|
} else {
|
|
1392
|
-
const e =
|
|
1396
|
+
const e = l.register("border-radius", t);
|
|
1393
1397
|
this._classNames.push(e);
|
|
1394
1398
|
}
|
|
1395
1399
|
return this;
|
|
@@ -1400,45 +1404,45 @@ class te {
|
|
|
1400
1404
|
else if (["red", "blue", "green", "gray", "white", "black", "transparent"].some((e) => t.includes(e)))
|
|
1401
1405
|
this._classNames.push(`border-${t}`);
|
|
1402
1406
|
else {
|
|
1403
|
-
const e =
|
|
1407
|
+
const e = l.register("border-color", t);
|
|
1404
1408
|
this._classNames.push(e);
|
|
1405
1409
|
}
|
|
1406
1410
|
return this;
|
|
1407
1411
|
}
|
|
1408
1412
|
width(t) {
|
|
1409
1413
|
if (typeof t == "number") {
|
|
1410
|
-
const e =
|
|
1414
|
+
const e = l.register("width", `${t}px`);
|
|
1411
1415
|
this._classNames.push(e);
|
|
1412
1416
|
} else if (typeof t == "string" && (t.startsWith("w-") || t === "full" || t === "screen" || t === "min" || t === "max" || t === "fit")) {
|
|
1413
1417
|
const e = t.startsWith("w-") ? t : `w-${t}`;
|
|
1414
1418
|
this._classNames.push(e);
|
|
1415
1419
|
} else {
|
|
1416
|
-
const e =
|
|
1420
|
+
const e = l.register("width", t);
|
|
1417
1421
|
this._classNames.push(e);
|
|
1418
1422
|
}
|
|
1419
1423
|
return this;
|
|
1420
1424
|
}
|
|
1421
1425
|
height(t) {
|
|
1422
1426
|
if (typeof t == "number") {
|
|
1423
|
-
const e =
|
|
1427
|
+
const e = l.register("height", `${t}px`);
|
|
1424
1428
|
this._classNames.push(e);
|
|
1425
1429
|
} else if (typeof t == "string" && (t.startsWith("h-") || t === "full" || t === "screen" || t === "min" || t === "max" || t === "fit")) {
|
|
1426
1430
|
const e = t.startsWith("h-") ? t : `h-${t}`;
|
|
1427
1431
|
this._classNames.push(e);
|
|
1428
1432
|
} else {
|
|
1429
|
-
const e =
|
|
1433
|
+
const e = l.register("height", t);
|
|
1430
1434
|
this._classNames.push(e);
|
|
1431
1435
|
}
|
|
1432
1436
|
return this;
|
|
1433
1437
|
}
|
|
1434
1438
|
gap(t) {
|
|
1435
1439
|
if (typeof t == "number") {
|
|
1436
|
-
const e =
|
|
1440
|
+
const e = l.register("gap", `${t}px`);
|
|
1437
1441
|
this._classNames.push(e);
|
|
1438
1442
|
} else if (typeof t == "string" && t.startsWith("gap-"))
|
|
1439
1443
|
this._classNames.push(t);
|
|
1440
1444
|
else {
|
|
1441
|
-
const e =
|
|
1445
|
+
const e = l.register("gap", t);
|
|
1442
1446
|
this._classNames.push(e);
|
|
1443
1447
|
}
|
|
1444
1448
|
return this;
|
|
@@ -1489,7 +1493,7 @@ class te {
|
|
|
1489
1493
|
), this;
|
|
1490
1494
|
}
|
|
1491
1495
|
borderInput(t = "gray-300", e = "blue-500") {
|
|
1492
|
-
const s = (
|
|
1496
|
+
const s = (c) => ["red", "blue", "green", "yellow", "purple", "pink", "indigo", "gray", "orange", "teal", "cyan", "emerald", "lime", "amber", "fuchsia", "rose", "violet", "sky", "slate", "zinc", "neutral", "stone"].includes(c) ? `${c}-500` : c, r = s(t), i = s(e);
|
|
1493
1497
|
return this._classNames.push(
|
|
1494
1498
|
"border",
|
|
1495
1499
|
`border-${r}`,
|
|
@@ -1500,7 +1504,7 @@ class te {
|
|
|
1500
1504
|
}
|
|
1501
1505
|
weight(t) {
|
|
1502
1506
|
if (typeof t == "number") {
|
|
1503
|
-
const e =
|
|
1507
|
+
const e = l.register("font-weight", String(t));
|
|
1504
1508
|
this._classNames.push(e);
|
|
1505
1509
|
} else {
|
|
1506
1510
|
const e = {
|
|
@@ -1517,7 +1521,7 @@ class te {
|
|
|
1517
1521
|
if (e[t])
|
|
1518
1522
|
this._classNames.push(e[t]);
|
|
1519
1523
|
else {
|
|
1520
|
-
const s =
|
|
1524
|
+
const s = l.register("font-weight", t);
|
|
1521
1525
|
this._classNames.push(s);
|
|
1522
1526
|
}
|
|
1523
1527
|
}
|
|
@@ -1551,16 +1555,16 @@ class te {
|
|
|
1551
1555
|
return this._signals.add(t), this;
|
|
1552
1556
|
}
|
|
1553
1557
|
translateX(t) {
|
|
1554
|
-
return t instanceof
|
|
1558
|
+
return t instanceof E ? this._animatedProps.set("translateX", t) : this._transforms.push(`translateX(${t}px)`), this;
|
|
1555
1559
|
}
|
|
1556
1560
|
translateY(t) {
|
|
1557
|
-
return t instanceof
|
|
1561
|
+
return t instanceof E ? this._animatedProps.set("translateY", t) : this._transforms.push(`translateY(${t}px)`), this;
|
|
1558
1562
|
}
|
|
1559
1563
|
scale(t) {
|
|
1560
|
-
return t instanceof
|
|
1564
|
+
return t instanceof E ? this._animatedProps.set("scale", t) : this._transforms.push(`scale(${t})`), this;
|
|
1561
1565
|
}
|
|
1562
1566
|
rotate(t) {
|
|
1563
|
-
return t instanceof
|
|
1567
|
+
return t instanceof E ? this._animatedProps.set("rotate", t) : this._transforms.push(`rotate(${t}deg)`), this;
|
|
1564
1568
|
}
|
|
1565
1569
|
gesture(t) {
|
|
1566
1570
|
return this._gesture = t, this;
|
|
@@ -1588,11 +1592,11 @@ class te {
|
|
|
1588
1592
|
}
|
|
1589
1593
|
transition(t, e, s, r) {
|
|
1590
1594
|
if (typeof t == "string" && e === void 0) {
|
|
1591
|
-
const
|
|
1592
|
-
return this._classNames.push(
|
|
1595
|
+
const f = l.register("transition", t);
|
|
1596
|
+
return this._classNames.push(f), this;
|
|
1593
1597
|
}
|
|
1594
|
-
const i = Array.isArray(t) ? t.join(", ") : t,
|
|
1595
|
-
return this._classNames.push(
|
|
1598
|
+
const i = Array.isArray(t) ? t.join(", ") : t, c = `${e || this._transitionDuration}ms`, n = s || this._transitionEasing, h = r ? `${r}ms` : "0ms", u = `${i} ${c} ${n} ${h}`, d = l.register("transition", u);
|
|
1599
|
+
return this._classNames.push(d), this;
|
|
1596
1600
|
}
|
|
1597
1601
|
/**
|
|
1598
1602
|
* Set transition duration in milliseconds
|
|
@@ -1626,14 +1630,14 @@ class te {
|
|
|
1626
1630
|
* Apply the built transition to the element
|
|
1627
1631
|
*/
|
|
1628
1632
|
_applyTransition() {
|
|
1629
|
-
const t = this._transitionProperties.join(", "), e = `${this._transitionDuration}ms`, s = this._transitionEasing, r = this._transitionDelay > 0 ? `${this._transitionDelay}ms` : "0ms", i = `${t} ${e} ${s} ${r}`,
|
|
1630
|
-
this._classNames.push(
|
|
1633
|
+
const t = this._transitionProperties.join(", "), e = `${this._transitionDuration}ms`, s = this._transitionEasing, r = this._transitionDelay > 0 ? `${this._transitionDelay}ms` : "0ms", i = `${t} ${e} ${s} ${r}`, c = l.register("transition", i);
|
|
1634
|
+
this._classNames.push(c);
|
|
1631
1635
|
}
|
|
1632
1636
|
theme(t) {
|
|
1633
1637
|
return this._theme = t, this;
|
|
1634
1638
|
}
|
|
1635
1639
|
getPseudoStateClassName() {
|
|
1636
|
-
return this._pseudoStateClassName || (this._pseudoStateClassName =
|
|
1640
|
+
return this._pseudoStateClassName || (this._pseudoStateClassName = tt("fibo-pseudo"), this._classNames.push(this._pseudoStateClassName)), this._pseudoStateClassName;
|
|
1637
1641
|
}
|
|
1638
1642
|
hover(t) {
|
|
1639
1643
|
const e = this.getPseudoStateClassName(), s = new b(e, "hover", this);
|
|
@@ -1687,11 +1691,11 @@ class te {
|
|
|
1687
1691
|
return this._classNames.push("group"), this;
|
|
1688
1692
|
}
|
|
1689
1693
|
children(t) {
|
|
1690
|
-
return typeof t == "function" ? (this._childFunction = t, this._children = []) : (this._children =
|
|
1694
|
+
return typeof t == "function" ? (this._childFunction = t, this._children = []) : (this._children = D(t), this._childFunction = void 0), this;
|
|
1691
1695
|
}
|
|
1692
1696
|
getClassName() {
|
|
1693
1697
|
let t;
|
|
1694
|
-
return Object.keys(this._cssStyles).length > 0 && (t =
|
|
1698
|
+
return Object.keys(this._cssStyles).length > 0 && (t = At(this._cssStyles) || void 0), Et(this._classNames, t);
|
|
1695
1699
|
}
|
|
1696
1700
|
getStyle() {
|
|
1697
1701
|
let t = { ...this._style, ...this._cssStyles };
|
|
@@ -1713,79 +1717,127 @@ class te {
|
|
|
1713
1717
|
return t;
|
|
1714
1718
|
}
|
|
1715
1719
|
processChildren() {
|
|
1716
|
-
return this._childFunction ?
|
|
1720
|
+
return this._childFunction ? D(this._childFunction) : this._children;
|
|
1717
1721
|
}
|
|
1718
1722
|
getChildFunction() {
|
|
1719
1723
|
return this._childFunction;
|
|
1720
1724
|
}
|
|
1721
1725
|
}
|
|
1722
|
-
|
|
1726
|
+
const Tt = /* @__PURE__ */ new Set([
|
|
1727
|
+
"$$typeof",
|
|
1728
|
+
"type",
|
|
1729
|
+
"props",
|
|
1730
|
+
"ref",
|
|
1731
|
+
"_owner",
|
|
1732
|
+
"_store",
|
|
1733
|
+
"_self",
|
|
1734
|
+
"_source",
|
|
1735
|
+
"_debugStack",
|
|
1736
|
+
"_debugTask",
|
|
1737
|
+
"_debugInfo"
|
|
1738
|
+
]);
|
|
1739
|
+
function Lt(o) {
|
|
1740
|
+
const t = o._isObserver, e = o._signals, s = o._observers, r = o._state, i = o._providers, c = () => {
|
|
1741
|
+
let f = o.build();
|
|
1742
|
+
const m = o._animatedProps, p = o._animationConfig;
|
|
1743
|
+
m && m.size > 0 && (f = g.createElement(Mt, {
|
|
1744
|
+
animatedProps: m,
|
|
1745
|
+
animationConfig: p,
|
|
1746
|
+
children: f
|
|
1747
|
+
}));
|
|
1748
|
+
const k = o._gesture;
|
|
1749
|
+
k && (f = k.wrap(f));
|
|
1750
|
+
const y = o._responsive;
|
|
1751
|
+
return y && (f = g.createElement(Dt, {
|
|
1752
|
+
responsive: y,
|
|
1753
|
+
children: f
|
|
1754
|
+
})), f;
|
|
1755
|
+
}, n = typeof o.hasStateManagement == "function" ? o.hasStateManagement() : !!(t || e && e.size || s && s.size || r && r.size || i && i.size), h = t ? g.createElement(kt, {
|
|
1756
|
+
key: o._props.key,
|
|
1757
|
+
children: c
|
|
1758
|
+
}) : null, u = () => h ?? c();
|
|
1759
|
+
let d = u();
|
|
1760
|
+
return n && e && e.size > 0 ? d = g.createElement(wt, {
|
|
1761
|
+
key: o._props.key,
|
|
1762
|
+
signals: e,
|
|
1763
|
+
children: u
|
|
1764
|
+
}) : n && s && s.size > 0 && (d = g.createElement(xt, {
|
|
1765
|
+
observables: s,
|
|
1766
|
+
children: u
|
|
1767
|
+
})), n && r && r.size > 0 && (d = g.createElement(_t, {
|
|
1768
|
+
stateMap: r,
|
|
1769
|
+
children: d
|
|
1770
|
+
})), n && i && i.size > 0 && (d = g.createElement(St, {
|
|
1771
|
+
providers: i,
|
|
1772
|
+
children: d
|
|
1773
|
+
})), d;
|
|
1774
|
+
}
|
|
1775
|
+
function et(o, t, e) {
|
|
1776
|
+
const s = function() {
|
|
1777
|
+
return t();
|
|
1778
|
+
};
|
|
1779
|
+
s.displayName = e;
|
|
1780
|
+
const r = g.createElement(s);
|
|
1781
|
+
Object.defineProperty(o, "$$typeof", {
|
|
1782
|
+
value: r.$$typeof,
|
|
1783
|
+
enumerable: !0,
|
|
1784
|
+
configurable: !0
|
|
1785
|
+
}), Object.defineProperty(o, "type", {
|
|
1786
|
+
value: s,
|
|
1787
|
+
enumerable: !0,
|
|
1788
|
+
configurable: !0,
|
|
1789
|
+
writable: !0
|
|
1790
|
+
}), o.ref = r.ref ?? null, o.__fiboElementProps = r.props ?? {}, r._owner !== void 0 && (o._owner = r._owner), o._store = { validated: 1 };
|
|
1791
|
+
}
|
|
1792
|
+
function re(o) {
|
|
1723
1793
|
return (...t) => {
|
|
1724
|
-
const e = new o(...t);
|
|
1725
|
-
return new Proxy(e, {
|
|
1726
|
-
get(
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
let g = _();
|
|
1748
|
-
return m && n && n.size > 0 ? g = k.createElement(_t, {
|
|
1749
|
-
key: s._props.key,
|
|
1750
|
-
signals: n,
|
|
1751
|
-
children: _
|
|
1752
|
-
}) : m && h && h.size > 0 && (g = k.createElement(yt, {
|
|
1753
|
-
observables: h,
|
|
1754
|
-
children: _
|
|
1755
|
-
})), m && u && u.size > 0 && (g = k.createElement(kt, {
|
|
1756
|
-
stateMap: u,
|
|
1757
|
-
children: g
|
|
1758
|
-
})), m && p && p.size > 0 && (g = k.createElement(xt, {
|
|
1759
|
-
providers: p,
|
|
1760
|
-
children: g
|
|
1761
|
-
})), g;
|
|
1762
|
-
} : Reflect.has(s, r) ? Reflect.get(s, r, i) : (l) => {
|
|
1763
|
-
const n = r.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), u = ["opacity", "z-index", "flex", "flex-grow", "flex-shrink", "order", "font-weight", "line-height"].includes(n), p = typeof l == "number" && !u ? `${l}px` : String(l), d = c.register(n, p);
|
|
1764
|
-
return s.className(d), i;
|
|
1794
|
+
const e = new o(...t), s = o.name.replace(/Builder$/, "") || "Fibo", r = () => Lt(e);
|
|
1795
|
+
return et(e, r, s), new Proxy(e, {
|
|
1796
|
+
get(i, c, n) {
|
|
1797
|
+
var h;
|
|
1798
|
+
if (c === "build")
|
|
1799
|
+
return r;
|
|
1800
|
+
if (c === "key") {
|
|
1801
|
+
const u = (h = i._props) == null ? void 0 : h.key;
|
|
1802
|
+
if (u != null && u !== "")
|
|
1803
|
+
return typeof u == "number" ? String(u) : u;
|
|
1804
|
+
if (!i.__fiboKeyFn) {
|
|
1805
|
+
const d = tt("fibo"), f = (m) => (i.key(m), n);
|
|
1806
|
+
f.toString = () => d, f.valueOf = () => d, i.__fiboKeyFn = f, i.__fiboAutoKey = d;
|
|
1807
|
+
}
|
|
1808
|
+
return i.__fiboKeyFn;
|
|
1809
|
+
}
|
|
1810
|
+
if (c === "props") {
|
|
1811
|
+
const u = Object.getPrototypeOf(i).props;
|
|
1812
|
+
return typeof u == "function" ? Object.assign((f) => (u.call(i, f), n), i.__fiboElementProps ?? {}) : i.__fiboElementProps ?? {};
|
|
1813
|
+
}
|
|
1814
|
+
return Tt.has(c) || Reflect.has(i, c) ? Reflect.get(i, c, n) : (u) => {
|
|
1815
|
+
const d = c.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), m = ["opacity", "z-index", "flex", "flex-grow", "flex-shrink", "order", "font-weight", "line-height"].includes(d), p = typeof u == "number" && !m ? `${u}px` : String(u), k = l.register(d, p);
|
|
1816
|
+
return i.className(k), n;
|
|
1765
1817
|
};
|
|
1766
1818
|
}
|
|
1767
1819
|
});
|
|
1768
1820
|
};
|
|
1769
1821
|
}
|
|
1770
|
-
const
|
|
1822
|
+
const It = ({
|
|
1771
1823
|
signal: o,
|
|
1772
1824
|
builder: t,
|
|
1773
1825
|
loading: e,
|
|
1774
1826
|
error: s
|
|
1775
1827
|
}) => {
|
|
1776
|
-
const r =
|
|
1777
|
-
|
|
1828
|
+
const r = g.useSyncExternalStore(
|
|
1829
|
+
g.useCallback((n) => o.subscribe ? o.subscribe(n) : () => {
|
|
1778
1830
|
}, [o]),
|
|
1779
1831
|
() => o.value
|
|
1780
1832
|
), i = r == null ? void 0 : r.error;
|
|
1781
1833
|
return i && s ? s(i) : ((r == null ? void 0 : r.isLoading) || (r == null ? void 0 : r.loading)) === !0 && e ? e() : t ? t(r) : null;
|
|
1782
|
-
},
|
|
1783
|
-
class
|
|
1834
|
+
}, Ot = g.memo(It);
|
|
1835
|
+
class Xt {
|
|
1784
1836
|
constructor(t) {
|
|
1785
1837
|
a(this, "_loading");
|
|
1786
1838
|
a(this, "_error");
|
|
1787
1839
|
a(this, "_builder");
|
|
1788
|
-
this._signal = t;
|
|
1840
|
+
this._signal = t, et(this, () => this.build(), "ValueBuilder");
|
|
1789
1841
|
}
|
|
1790
1842
|
loading(t) {
|
|
1791
1843
|
return this._loading = typeof t == "function" ? t : () => t, this;
|
|
@@ -1800,7 +1852,7 @@ class Lt {
|
|
|
1800
1852
|
return this._builder = t, this;
|
|
1801
1853
|
}
|
|
1802
1854
|
build() {
|
|
1803
|
-
return
|
|
1855
|
+
return g.createElement(Ot, {
|
|
1804
1856
|
signal: this._signal,
|
|
1805
1857
|
builder: this._builder,
|
|
1806
1858
|
loading: this._loading,
|
|
@@ -1808,35 +1860,35 @@ class Lt {
|
|
|
1808
1860
|
});
|
|
1809
1861
|
}
|
|
1810
1862
|
}
|
|
1811
|
-
function
|
|
1812
|
-
return new
|
|
1863
|
+
function ie(o) {
|
|
1864
|
+
return new Xt(o);
|
|
1813
1865
|
}
|
|
1814
1866
|
export {
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1867
|
+
dt as C,
|
|
1868
|
+
ut as E,
|
|
1869
|
+
oe as F,
|
|
1870
|
+
pt as O,
|
|
1871
|
+
St as P,
|
|
1872
|
+
Qt as R,
|
|
1873
|
+
E as S,
|
|
1874
|
+
ie as V,
|
|
1875
|
+
Jt as a,
|
|
1876
|
+
H as b,
|
|
1877
|
+
qt as c,
|
|
1878
|
+
kt as d,
|
|
1879
|
+
ee as e,
|
|
1880
|
+
Ct as f,
|
|
1829
1881
|
K as g,
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1882
|
+
re as h,
|
|
1883
|
+
bt as i,
|
|
1884
|
+
_t as j,
|
|
1885
|
+
$t as k,
|
|
1886
|
+
Nt as l,
|
|
1887
|
+
tt as m,
|
|
1888
|
+
D as n,
|
|
1889
|
+
Zt as o,
|
|
1890
|
+
se as p,
|
|
1891
|
+
ht as r,
|
|
1892
|
+
Ut as s,
|
|
1893
|
+
te as u
|
|
1842
1894
|
};
|