fiboui 2.2.0 → 2.2.3
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 +1 -1
- package/dist/{FineGrain-6w615KQw.js → FineGrain-BEvB51B2.js} +1 -1
- package/dist/Link-ElmaMZB8.js +89 -0
- package/dist/{Router-i6Nc6qVs.js → Router-BwbaHooU.js} +139 -127
- package/dist/{builder-KLTu7nAI.js → builder-3Bc2PfP9.js} +597 -558
- package/dist/content.js +3 -3
- package/dist/core.js +46 -43
- package/dist/{index-DhPBYTPt.js → index-BObp1JkM.js} +27 -20
- package/dist/{index-CYnY7jAX.js → index-BlciuWzU.js} +5 -4
- package/dist/{index-ijbJR6lD.js → index-CZQ5erLU.js} +7 -6
- package/dist/{index-BN2z9MuJ.js → index-Cae2Rtx1.js} +12 -12
- package/dist/{index-CdJvNseK.js → index-CxbrZGXa.js} +116 -113
- package/dist/{index-DU2MC5u3.js → index-DbjaknWm.js} +117 -93
- package/dist/{index-CbTvwN9K.js → index-DgRpEUs0.js} +4 -4
- package/dist/index.d.ts +51 -8
- package/dist/index.js +556 -493
- package/dist/interactive.js +1 -1
- package/dist/layout.js +2 -2
- package/dist/mount-D59e1COl.js +358 -0
- package/dist/navigation.js +2 -2
- package/dist/{provider-B0eB-Wy7.js → provider-CihtUuRx.js} +48 -32
- package/dist/structure.js +2 -2
- package/dist/style.css +1 -1
- package/dist/theme.js +1 -1
- package/package.json +2 -1
- package/dist/Link-DDzSPY1Q.js +0 -88
- package/dist/mount-D5gt_GWO.js +0 -331
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var
|
|
3
|
-
var le = (n, s, e) => s in n ?
|
|
2
|
+
var oe = Object.defineProperty;
|
|
3
|
+
var le = (n, s, e) => s in n ? oe(n, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[s] = e;
|
|
4
4
|
var i = (n, s, e) => le(n, typeof s != "symbol" ? s + "" : s, e);
|
|
5
|
-
import t, { useState as D, useRef as L, useLayoutEffect as
|
|
6
|
-
import {
|
|
7
|
-
import { B as C } from "./index-
|
|
8
|
-
import { t as
|
|
9
|
-
import { T as
|
|
10
|
-
const
|
|
11
|
-
const { text: s, subtitle: e, number: r, color: d, className: p, style:
|
|
5
|
+
import t, { useState as D, useRef as L, useLayoutEffect as Z, useEffect as ce } from "react";
|
|
6
|
+
import { w, x as I, G as T, H as q } from "./builder-3Bc2PfP9.js";
|
|
7
|
+
import { B as C } from "./index-BlciuWzU.js";
|
|
8
|
+
import { t as de } from "./bundle-mjs-wppB-TKB.js";
|
|
9
|
+
import { T as me } from "./index-BObp1JkM.js";
|
|
10
|
+
const he = t.memo((n) => {
|
|
11
|
+
const { text: s, subtitle: e, number: r, color: d, className: p, style: c, children: u, ...g } = n;
|
|
12
12
|
return t.createElement(
|
|
13
13
|
"div",
|
|
14
14
|
{
|
|
15
15
|
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 ${p || ""}`,
|
|
16
|
-
style: { backgroundColor: "#ffffff", ...
|
|
16
|
+
style: { backgroundColor: "#ffffff", ...c },
|
|
17
17
|
...g
|
|
18
18
|
},
|
|
19
19
|
t.createElement(
|
|
@@ -44,7 +44,7 @@ const me = t.memo((n) => {
|
|
|
44
44
|
)
|
|
45
45
|
);
|
|
46
46
|
});
|
|
47
|
-
class
|
|
47
|
+
class ue extends I {
|
|
48
48
|
constructor() {
|
|
49
49
|
super(...arguments);
|
|
50
50
|
i(this, "_text", "");
|
|
@@ -85,10 +85,10 @@ class he extends I {
|
|
|
85
85
|
children: this.processChildren(),
|
|
86
86
|
...this._props
|
|
87
87
|
};
|
|
88
|
-
return t.createElement(
|
|
88
|
+
return t.createElement(he, d);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
const
|
|
91
|
+
const Ge = w(ue);
|
|
92
92
|
class V {
|
|
93
93
|
constructor() {
|
|
94
94
|
i(this, "styles", /* @__PURE__ */ new Map());
|
|
@@ -132,34 +132,34 @@ class V {
|
|
|
132
132
|
}), s.join("; ") + ";";
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
|
-
const
|
|
135
|
+
const pe = 100, J = 60, Q = 5, fe = t.memo((n) => {
|
|
136
136
|
const {
|
|
137
137
|
items: s,
|
|
138
138
|
renderItem: e,
|
|
139
139
|
variant: r,
|
|
140
140
|
separator: d,
|
|
141
141
|
loading: p,
|
|
142
|
-
threshold:
|
|
142
|
+
threshold: c,
|
|
143
143
|
onEndReached: u,
|
|
144
144
|
className: g,
|
|
145
145
|
style: x,
|
|
146
146
|
containerHeight: v = 500,
|
|
147
147
|
resetItemStyles: m = !1,
|
|
148
148
|
direction: a = "vertical",
|
|
149
|
-
customItemHover:
|
|
149
|
+
customItemHover: o,
|
|
150
150
|
customItemActive: _,
|
|
151
151
|
customItemFocus: y
|
|
152
|
-
} = n, [H,
|
|
152
|
+
} = n, [H, ee] = D(0), [te, se] = D(0), re = L(null), R = L(/* @__PURE__ */ new Map()), O = L(/* @__PURE__ */ new Map()), F = L(null), b = a === "horizontal", $ = s.length, B = $ > pe, A = (h) => O.current.get(h) ?? J, j = (h) => {
|
|
153
153
|
let l = 0;
|
|
154
154
|
for (let f = 0; f < h; f++)
|
|
155
155
|
l += A(f);
|
|
156
156
|
return l;
|
|
157
|
-
},
|
|
157
|
+
}, ie = () => {
|
|
158
158
|
let h = 0;
|
|
159
159
|
for (let l = 0; l < $; l++)
|
|
160
160
|
h += A(l);
|
|
161
161
|
return h;
|
|
162
|
-
},
|
|
162
|
+
}, ne = (h) => {
|
|
163
163
|
let l = 0, f = $ - 1;
|
|
164
164
|
for (; l < f; ) {
|
|
165
165
|
const N = Math.floor((l + f) / 2);
|
|
@@ -169,48 +169,48 @@ const ue = 100, J = 60, K = 5, pe = t.memo((n) => {
|
|
|
169
169
|
};
|
|
170
170
|
let S = 0, X = $, G = 0, M = 0;
|
|
171
171
|
if (B) {
|
|
172
|
-
S = Math.max(0,
|
|
172
|
+
S = Math.max(0, ne(H) - Q);
|
|
173
173
|
let h = j(S), l = S;
|
|
174
|
-
for (; h < H + v +
|
|
174
|
+
for (; h < H + v + Q * J && l < $; )
|
|
175
175
|
h += A(l), l++;
|
|
176
|
-
X = Math.min($, l), G = j(S), M =
|
|
176
|
+
X = Math.min($, l), G = j(S), M = ie();
|
|
177
177
|
}
|
|
178
178
|
const P = s.slice(S, X);
|
|
179
|
-
|
|
179
|
+
Z(() => {
|
|
180
180
|
if (!B) return;
|
|
181
181
|
let h = !1;
|
|
182
182
|
P.forEach((l, f) => {
|
|
183
183
|
const N = S + f, k = R.current.get(N);
|
|
184
184
|
if (k) {
|
|
185
|
-
const
|
|
185
|
+
const K = k.getBoundingClientRect(), z = b ? K.width : K.height;
|
|
186
186
|
z > 0 && O.current.get(N) !== z && (O.current.set(N, z), h = !0);
|
|
187
187
|
}
|
|
188
|
-
}), h &&
|
|
189
|
-
}, [P, S, B, b,
|
|
188
|
+
}), h && se((l) => l + 1);
|
|
189
|
+
}, [P, S, B, b, te]), Z(() => {
|
|
190
190
|
if (!u || p) return;
|
|
191
191
|
const h = new IntersectionObserver(
|
|
192
192
|
(l) => {
|
|
193
193
|
l[0].isIntersecting && (u == null || u());
|
|
194
194
|
},
|
|
195
|
-
{ threshold:
|
|
195
|
+
{ threshold: c }
|
|
196
196
|
);
|
|
197
197
|
return F.current && h.observe(F.current), () => h.disconnect();
|
|
198
|
-
}, [p, s.length, u,
|
|
199
|
-
const
|
|
200
|
-
B &&
|
|
198
|
+
}, [p, s.length, u, c]);
|
|
199
|
+
const ae = (h) => {
|
|
200
|
+
B && ee(b ? h.currentTarget.scrollLeft : h.currentTarget.scrollTop);
|
|
201
201
|
};
|
|
202
|
-
|
|
203
|
-
if (typeof document > "u" || !
|
|
202
|
+
ce(() => {
|
|
203
|
+
if (typeof document > "u" || !o && !_ && !y) return;
|
|
204
204
|
const h = "fibo-list-custom-styles";
|
|
205
205
|
let l = document.getElementById(h);
|
|
206
206
|
l || (l = document.createElement("style"), l.id = h, document.head.appendChild(l));
|
|
207
207
|
let f = "";
|
|
208
|
-
return
|
|
208
|
+
return o && (f += `.fibo-list-item-custom-hover:hover { ${o} }
|
|
209
209
|
`), _ && (f += `.fibo-list-item-custom-active:active { ${_} }
|
|
210
210
|
`), y && (f += `.fibo-list-item-custom-focus:focus { ${y} }
|
|
211
211
|
`), l.textContent = f, () => {
|
|
212
212
|
};
|
|
213
|
-
}, [
|
|
213
|
+
}, [o, _, y]);
|
|
214
214
|
const Y = {
|
|
215
215
|
default: { gap: "0px" },
|
|
216
216
|
card: { gap: "12px" },
|
|
@@ -241,7 +241,7 @@ const ue = 100, J = 60, K = 5, pe = t.memo((n) => {
|
|
|
241
241
|
transition: "background-color 0.2s"
|
|
242
242
|
}
|
|
243
243
|
}, E = [];
|
|
244
|
-
|
|
244
|
+
o && E.push("fibo-list-item-custom-hover"), _ && E.push("fibo-list-item-custom-active"), y && E.push("fibo-list-item-custom-focus");
|
|
245
245
|
const U = m ? {
|
|
246
246
|
default: [...E],
|
|
247
247
|
card: [...E],
|
|
@@ -254,7 +254,7 @@ const ue = 100, J = 60, K = 5, pe = t.memo((n) => {
|
|
|
254
254
|
return B ? t.createElement(
|
|
255
255
|
"div",
|
|
256
256
|
{
|
|
257
|
-
ref:
|
|
257
|
+
ref: re,
|
|
258
258
|
className: `fibo-list fibo-list-virtualized ${g || ""}`,
|
|
259
259
|
style: {
|
|
260
260
|
height: b ? void 0 : `${v}px`,
|
|
@@ -267,7 +267,7 @@ const ue = 100, J = 60, K = 5, pe = t.memo((n) => {
|
|
|
267
267
|
...Y[r],
|
|
268
268
|
...x
|
|
269
269
|
},
|
|
270
|
-
onScroll:
|
|
270
|
+
onScroll: ae
|
|
271
271
|
},
|
|
272
272
|
t.createElement("div", {
|
|
273
273
|
style: {
|
|
@@ -328,7 +328,7 @@ const ue = 100, J = 60, K = 5, pe = t.memo((n) => {
|
|
|
328
328
|
])
|
|
329
329
|
).build();
|
|
330
330
|
});
|
|
331
|
-
class
|
|
331
|
+
class ge extends I {
|
|
332
332
|
constructor() {
|
|
333
333
|
super(...arguments);
|
|
334
334
|
i(this, "_items", []);
|
|
@@ -420,10 +420,10 @@ class fe extends I {
|
|
|
420
420
|
className: this.getClassName(),
|
|
421
421
|
style: this.getStyle()
|
|
422
422
|
};
|
|
423
|
-
return t.createElement(
|
|
423
|
+
return t.createElement(fe, e);
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
|
-
const
|
|
426
|
+
const Me = w(ge), _e = () => t.createElement(
|
|
427
427
|
"svg",
|
|
428
428
|
{
|
|
429
429
|
width: 12,
|
|
@@ -435,20 +435,20 @@ const Ge = w(fe), ge = () => t.createElement(
|
|
|
435
435
|
"aria-hidden": !0
|
|
436
436
|
},
|
|
437
437
|
t.createElement("path", { d: "M9 5l7 7-7 7" })
|
|
438
|
-
),
|
|
438
|
+
), be = t.memo((n) => {
|
|
439
439
|
const {
|
|
440
440
|
leading: s,
|
|
441
441
|
title: e,
|
|
442
442
|
subtitle: r,
|
|
443
443
|
trailing: d,
|
|
444
444
|
chevron: p,
|
|
445
|
-
divider:
|
|
445
|
+
divider: c,
|
|
446
446
|
dividerColor: u,
|
|
447
447
|
onPress: g,
|
|
448
448
|
className: x,
|
|
449
449
|
style: v,
|
|
450
450
|
...m
|
|
451
|
-
} = n, a = v || {},
|
|
451
|
+
} = n, a = v || {}, o = a.padding ?? "14px 0", _ = typeof e == "string" ? t.createElement(
|
|
452
452
|
"span",
|
|
453
453
|
{
|
|
454
454
|
className: "fibo-list-tile-title",
|
|
@@ -472,10 +472,10 @@ const Ge = w(fe), ge = () => t.createElement(
|
|
|
472
472
|
return t.createElement(
|
|
473
473
|
"div",
|
|
474
474
|
{
|
|
475
|
-
className:
|
|
475
|
+
className: de("fibo-list-tile flex flex-row items-center w-full", x),
|
|
476
476
|
style: {
|
|
477
|
-
padding:
|
|
478
|
-
borderBottom:
|
|
477
|
+
padding: o,
|
|
478
|
+
borderBottom: c ? `1px solid ${u || "#3b3b3b"}` : "none",
|
|
479
479
|
cursor: g ? "pointer" : void 0,
|
|
480
480
|
...a
|
|
481
481
|
},
|
|
@@ -517,11 +517,11 @@ const Ge = w(fe), ge = () => t.createElement(
|
|
|
517
517
|
className: "fibo-list-tile-chevron shrink-0 flex items-center",
|
|
518
518
|
style: { color: "#9a9a9a", marginLeft: d ? 8 : 0 }
|
|
519
519
|
},
|
|
520
|
-
t.createElement(
|
|
520
|
+
t.createElement(_e)
|
|
521
521
|
) : null
|
|
522
522
|
);
|
|
523
523
|
});
|
|
524
|
-
class
|
|
524
|
+
class ye extends I {
|
|
525
525
|
constructor() {
|
|
526
526
|
super(...arguments);
|
|
527
527
|
i(this, "_leading");
|
|
@@ -558,7 +558,7 @@ class be extends I {
|
|
|
558
558
|
return this._onPress = e, this;
|
|
559
559
|
}
|
|
560
560
|
build() {
|
|
561
|
-
return t.createElement(
|
|
561
|
+
return t.createElement(be, {
|
|
562
562
|
leading: this._leading,
|
|
563
563
|
title: this._title,
|
|
564
564
|
subtitle: this._subtitle,
|
|
@@ -573,14 +573,14 @@ class be extends I {
|
|
|
573
573
|
});
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
const
|
|
576
|
+
const Pe = w(ye), xe = t.memo((n) => {
|
|
577
577
|
const {
|
|
578
578
|
data: s,
|
|
579
579
|
columns: e,
|
|
580
580
|
variant: r,
|
|
581
581
|
density: d,
|
|
582
582
|
striped: p,
|
|
583
|
-
width:
|
|
583
|
+
width: c,
|
|
584
584
|
className: u,
|
|
585
585
|
style: g
|
|
586
586
|
} = n, x = {
|
|
@@ -589,7 +589,7 @@ const Me = w(be), ye = t.memo((n) => {
|
|
|
589
589
|
borderSpacing: "0",
|
|
590
590
|
...g
|
|
591
591
|
};
|
|
592
|
-
|
|
592
|
+
c && (x.width = typeof c == "number" ? `${c}px` : c);
|
|
593
593
|
const v = r === "clean" ? ["bg-white", "rounded-2xl", "border", "border-gray-100", "overflow-hidden", "shadow-sm"] : [], a = {
|
|
594
594
|
compact: "10px 16px",
|
|
595
595
|
standard: "16px 24px",
|
|
@@ -604,16 +604,16 @@ const Me = w(be), ye = t.memo((n) => {
|
|
|
604
604
|
"tr",
|
|
605
605
|
{},
|
|
606
606
|
e.map(
|
|
607
|
-
(
|
|
608
|
-
key: String(
|
|
607
|
+
(o, _) => t.createElement("th", {
|
|
608
|
+
key: String(o.accessor ?? o.header ?? _),
|
|
609
609
|
scope: "col",
|
|
610
610
|
style: {
|
|
611
|
-
textAlign:
|
|
611
|
+
textAlign: o.align || "left",
|
|
612
612
|
padding: a,
|
|
613
|
-
width:
|
|
613
|
+
width: o.width
|
|
614
614
|
},
|
|
615
615
|
className: "text-xs font-bold text-gray-400 uppercase tracking-widest"
|
|
616
|
-
},
|
|
616
|
+
}, o.header)
|
|
617
617
|
)
|
|
618
618
|
)
|
|
619
619
|
),
|
|
@@ -621,10 +621,10 @@ const Me = w(be), ye = t.memo((n) => {
|
|
|
621
621
|
"tbody",
|
|
622
622
|
{ key: "tbody" },
|
|
623
623
|
s.map(
|
|
624
|
-
(
|
|
624
|
+
(o, _) => t.createElement(
|
|
625
625
|
"tr",
|
|
626
626
|
{
|
|
627
|
-
key: (
|
|
627
|
+
key: (o == null ? void 0 : o.id) ?? (o == null ? void 0 : o.key) ?? _,
|
|
628
628
|
className: `group transition-all duration-200 border-b border-gray-50 last:border-b-0 ${p && _ % 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"}`
|
|
629
629
|
},
|
|
630
630
|
e.map(
|
|
@@ -639,7 +639,7 @@ const Me = w(be), ye = t.memo((n) => {
|
|
|
639
639
|
},
|
|
640
640
|
className: "text-sm text-gray-900 font-medium"
|
|
641
641
|
},
|
|
642
|
-
y.render ? y.render(
|
|
642
|
+
y.render ? y.render(o) : y.accessor ? o[y.accessor] : null
|
|
643
643
|
)
|
|
644
644
|
)
|
|
645
645
|
)
|
|
@@ -648,7 +648,7 @@ const Me = w(be), ye = t.memo((n) => {
|
|
|
648
648
|
])
|
|
649
649
|
).build();
|
|
650
650
|
});
|
|
651
|
-
class
|
|
651
|
+
class ve extends I {
|
|
652
652
|
constructor() {
|
|
653
653
|
super(...arguments);
|
|
654
654
|
i(this, "_data", []);
|
|
@@ -687,18 +687,18 @@ class xe extends I {
|
|
|
687
687
|
className: this.getClassName(),
|
|
688
688
|
style: this.getStyle()
|
|
689
689
|
};
|
|
690
|
-
return t.createElement(
|
|
690
|
+
return t.createElement(xe, e);
|
|
691
691
|
}
|
|
692
692
|
}
|
|
693
|
-
const
|
|
693
|
+
const ze = w(ve), Ee = t.memo((n) => {
|
|
694
694
|
const { items: s, className: e, style: r, ...d } = n, p = s.map(
|
|
695
|
-
(
|
|
695
|
+
(c, u) => t.createElement(
|
|
696
696
|
"span",
|
|
697
697
|
{
|
|
698
|
-
key:
|
|
698
|
+
key: c.title ? `${c.title}-${u}` : `tag-${u}`,
|
|
699
699
|
className: "fibo-tag"
|
|
700
700
|
},
|
|
701
|
-
|
|
701
|
+
c.title
|
|
702
702
|
)
|
|
703
703
|
);
|
|
704
704
|
return t.createElement(
|
|
@@ -711,7 +711,7 @@ const Pe = w(xe), ve = t.memo((n) => {
|
|
|
711
711
|
...p
|
|
712
712
|
);
|
|
713
713
|
});
|
|
714
|
-
class
|
|
714
|
+
class Ne extends I {
|
|
715
715
|
constructor(e = []) {
|
|
716
716
|
super();
|
|
717
717
|
i(this, "_items", []);
|
|
@@ -727,17 +727,17 @@ class Ee extends I {
|
|
|
727
727
|
style: this.getStyle(),
|
|
728
728
|
...this._props
|
|
729
729
|
};
|
|
730
|
-
return t.createElement(
|
|
730
|
+
return t.createElement(Ee, r);
|
|
731
731
|
}
|
|
732
732
|
}
|
|
733
|
-
const
|
|
734
|
-
const { status: s, title: e, subtitle: r, className: d, style: p, ...
|
|
733
|
+
const Ve = w(Ne), we = t.memo((n) => {
|
|
734
|
+
const { status: s, title: e, subtitle: r, className: d, style: p, ...c } = n;
|
|
735
735
|
return t.createElement(
|
|
736
736
|
"div",
|
|
737
737
|
{
|
|
738
738
|
className: d,
|
|
739
739
|
style: p,
|
|
740
|
-
...
|
|
740
|
+
...c
|
|
741
741
|
},
|
|
742
742
|
t.createElement(
|
|
743
743
|
"div",
|
|
@@ -759,7 +759,7 @@ const ze = w(Ee), Ne = t.memo((n) => {
|
|
|
759
759
|
)
|
|
760
760
|
);
|
|
761
761
|
});
|
|
762
|
-
class
|
|
762
|
+
class Ie extends I {
|
|
763
763
|
constructor(e = "") {
|
|
764
764
|
super();
|
|
765
765
|
i(this, "_status", "info");
|
|
@@ -789,11 +789,11 @@ class we extends I {
|
|
|
789
789
|
style: this.getStyle(),
|
|
790
790
|
...this._props
|
|
791
791
|
};
|
|
792
|
-
return t.createElement(
|
|
792
|
+
return t.createElement(we, d);
|
|
793
793
|
}
|
|
794
794
|
}
|
|
795
|
-
const
|
|
796
|
-
class
|
|
795
|
+
const De = w(Ie);
|
|
796
|
+
class Se extends I {
|
|
797
797
|
constructor() {
|
|
798
798
|
super(...arguments);
|
|
799
799
|
i(this, "_title", "");
|
|
@@ -818,22 +818,22 @@ class Ie extends I {
|
|
|
818
818
|
return this._onToggle = e, this;
|
|
819
819
|
}
|
|
820
820
|
build() {
|
|
821
|
-
return t.createElement(
|
|
821
|
+
return t.createElement(Ce, {
|
|
822
822
|
builder: this,
|
|
823
823
|
...this._props
|
|
824
824
|
});
|
|
825
825
|
}
|
|
826
826
|
}
|
|
827
|
-
const
|
|
828
|
-
const s = t.useId(), e = `${s}-content`, r = n._expanded !== void 0, [d, p] = D(n._defaultExpanded),
|
|
829
|
-
r || p(!
|
|
827
|
+
const Ce = t.memo(({ builder: n }) => {
|
|
828
|
+
const s = t.useId(), e = `${s}-content`, r = n._expanded !== void 0, [d, p] = D(n._defaultExpanded), c = r ? n._expanded : d, u = () => {
|
|
829
|
+
r || p(!c), n._onToggle && n._onToggle(!c);
|
|
830
830
|
};
|
|
831
831
|
return C().classNames(["w-full", "border", "border-gray-200", "rounded-xl", "overflow-hidden", "bg-white", "transition-all", "duration-300"]).className(n.getClassName()).style(n.getStyle()).children([
|
|
832
832
|
t.createElement("button", {
|
|
833
833
|
key: "header",
|
|
834
834
|
type: "button",
|
|
835
835
|
id: s,
|
|
836
|
-
"aria-expanded":
|
|
836
|
+
"aria-expanded": c,
|
|
837
837
|
"aria-controls": e,
|
|
838
838
|
className: "w-full flex items-center justify-between p-4 cursor-pointer hover:bg-gray-50 transition-colors select-none text-left bg-transparent border-0",
|
|
839
839
|
onClick: u
|
|
@@ -841,12 +841,12 @@ const Se = t.memo(({ builder: n }) => {
|
|
|
841
841
|
t.createElement(
|
|
842
842
|
t.Fragment,
|
|
843
843
|
{ key: "title" },
|
|
844
|
-
typeof n._title == "string" ?
|
|
844
|
+
typeof n._title == "string" ? me(n._title).fontWeight(600).fontSize(15).color("#1F2937").build() : n._title
|
|
845
845
|
),
|
|
846
846
|
t.createElement("span", {
|
|
847
847
|
key: "chevron",
|
|
848
848
|
className: "transition-transform duration-300",
|
|
849
|
-
style: { transform:
|
|
849
|
+
style: { transform: c ? "rotate(180deg)" : "rotate(0deg)" },
|
|
850
850
|
"aria-hidden": !0
|
|
851
851
|
}, t.createElement("svg", {
|
|
852
852
|
width: "20",
|
|
@@ -864,22 +864,22 @@ const Se = t.memo(({ builder: n }) => {
|
|
|
864
864
|
id: e,
|
|
865
865
|
role: "region",
|
|
866
866
|
"aria-labelledby": s,
|
|
867
|
-
hidden: !
|
|
867
|
+
hidden: !c || void 0
|
|
868
868
|
}).classNames(["transition-all", "duration-300", "ease-in-out", "overflow-hidden"]).style({
|
|
869
|
-
maxHeight:
|
|
870
|
-
opacity:
|
|
869
|
+
maxHeight: c ? "500px" : "0px",
|
|
870
|
+
opacity: c ? 1 : 0
|
|
871
871
|
}).children(
|
|
872
872
|
C().classNames(["p-4", "pt-0", "text-gray-600", "text-sm"]).children(n._content).build()
|
|
873
873
|
).build()
|
|
874
874
|
]).build();
|
|
875
|
-
}),
|
|
875
|
+
}), Xe = w(Se), $e = t.memo((n) => {
|
|
876
876
|
const {
|
|
877
877
|
children: s,
|
|
878
878
|
variant: e = "standard",
|
|
879
879
|
columns: r = 1,
|
|
880
880
|
gap: d = "md",
|
|
881
881
|
className: p,
|
|
882
|
-
style:
|
|
882
|
+
style: c,
|
|
883
883
|
...u
|
|
884
884
|
} = n, g = (m) => typeof m == "number" ? "" : {
|
|
885
885
|
none: "gap-0",
|
|
@@ -907,15 +907,15 @@ const Se = t.memo(({ builder: n }) => {
|
|
|
907
907
|
style: {
|
|
908
908
|
gap: x(d),
|
|
909
909
|
gridAutoFlow: "dense",
|
|
910
|
-
...
|
|
910
|
+
...c
|
|
911
911
|
},
|
|
912
912
|
...u
|
|
913
|
-
}, t.Children.map(s, (a,
|
|
913
|
+
}, t.Children.map(s, (a, o) => {
|
|
914
914
|
if (t.isValidElement(a) && typeof a.props.className == "string" && a.props.className.includes("col-span"))
|
|
915
915
|
return a;
|
|
916
|
-
const _ = m[
|
|
916
|
+
const _ = m[o % m.length];
|
|
917
917
|
return t.createElement("div", {
|
|
918
|
-
key:
|
|
918
|
+
key: q(a, o),
|
|
919
919
|
style: { gridColumn: `span ${_.col}`, gridRow: `span ${_.row}` }
|
|
920
920
|
}, a);
|
|
921
921
|
}));
|
|
@@ -923,41 +923,44 @@ const Se = t.memo(({ builder: n }) => {
|
|
|
923
923
|
if (e === "masonry") {
|
|
924
924
|
const m = (a) => {
|
|
925
925
|
if (typeof a == "number") return `columns-${a}`;
|
|
926
|
-
let
|
|
927
|
-
return a.sm &&
|
|
926
|
+
let o = [];
|
|
927
|
+
return a.sm && o.push(`sm:columns-${a.sm}`), a.md && o.push(`md:columns-${a.md}`), a.lg && o.push(`lg:columns-${a.lg}`), a.xl && o.push(`xl:columns-${a.xl}`), o.join(" ") || "columns-1";
|
|
928
928
|
};
|
|
929
929
|
return t.createElement("div", {
|
|
930
930
|
className: `${m(r)} ${g(d)} space-y-4 ${p}`,
|
|
931
931
|
style: {
|
|
932
932
|
columnGap: x(d),
|
|
933
|
-
...
|
|
933
|
+
...c
|
|
934
934
|
},
|
|
935
935
|
...u
|
|
936
936
|
}, t.Children.map(
|
|
937
937
|
s,
|
|
938
|
-
(a) => t.createElement("div", {
|
|
938
|
+
(a, o) => t.createElement("div", {
|
|
939
|
+
key: q(a, o),
|
|
940
|
+
className: "break-inside-avoid mb-4"
|
|
941
|
+
}, a)
|
|
939
942
|
));
|
|
940
943
|
}
|
|
941
944
|
return t.createElement("div", {
|
|
942
945
|
className: `grid ${v(r)} ${g(d)} ${p}`,
|
|
943
946
|
style: {
|
|
944
947
|
gap: x(d),
|
|
945
|
-
...
|
|
948
|
+
...c
|
|
946
949
|
},
|
|
947
950
|
...u
|
|
948
951
|
}, s);
|
|
949
|
-
}),
|
|
950
|
-
const { children: s, colSpan: e, rowSpan: r, className: d, style: p, ...
|
|
952
|
+
}), ke = t.memo((n) => {
|
|
953
|
+
const { children: s, colSpan: e, rowSpan: r, className: d, style: p, ...c } = n, u = () => {
|
|
951
954
|
let g = [];
|
|
952
955
|
return e && g.push(`col-span-${e}`), r && g.push(`row-span-${r}`), g.join(" ");
|
|
953
956
|
};
|
|
954
957
|
return t.createElement("div", {
|
|
955
958
|
className: `${u()} ${d}`,
|
|
956
959
|
style: p,
|
|
957
|
-
...
|
|
960
|
+
...c
|
|
958
961
|
}, s);
|
|
959
962
|
});
|
|
960
|
-
class
|
|
963
|
+
class Be extends I {
|
|
961
964
|
constructor() {
|
|
962
965
|
super(...arguments);
|
|
963
966
|
i(this, "_variant", "standard");
|
|
@@ -983,10 +986,10 @@ class ke extends I {
|
|
|
983
986
|
style: this.getStyle(),
|
|
984
987
|
...this._props
|
|
985
988
|
};
|
|
986
|
-
return t.createElement(
|
|
989
|
+
return t.createElement($e, e);
|
|
987
990
|
}
|
|
988
991
|
}
|
|
989
|
-
class
|
|
992
|
+
class Te extends I {
|
|
990
993
|
constructor() {
|
|
991
994
|
super(...arguments);
|
|
992
995
|
i(this, "_colSpan");
|
|
@@ -1007,18 +1010,18 @@ class Be extends I {
|
|
|
1007
1010
|
style: this.getStyle(),
|
|
1008
1011
|
...this._props
|
|
1009
1012
|
};
|
|
1010
|
-
return t.createElement(
|
|
1013
|
+
return t.createElement(ke, e);
|
|
1011
1014
|
}
|
|
1012
1015
|
}
|
|
1013
|
-
const
|
|
1016
|
+
const Ye = w(Be), We = w(Te);
|
|
1014
1017
|
export {
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1018
|
+
De as B,
|
|
1019
|
+
Ge as C,
|
|
1020
|
+
Ye as G,
|
|
1021
|
+
Me as L,
|
|
1022
|
+
ze as T,
|
|
1023
|
+
Pe as a,
|
|
1024
|
+
Ve as b,
|
|
1025
|
+
Xe as c,
|
|
1026
|
+
We as d
|
|
1024
1027
|
};
|