@monospaced/set-react 0.17.0 → 0.19.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/dist/components/heading/heading.d.ts +4 -1
- package/dist/components/heading/heading.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +244 -220
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { serializeSetNode as
|
|
2
|
-
import { defineSetComponents as
|
|
1
|
+
import { serializeSetNode as de, defineSetAlert as Se, SET_ALERT_EVENT_BEFORE_DISMISS as b, SET_ALERT_EVENT_DISMISS as v, buildSetAlert as Ee, buildSetAvatar as fe, buildSetBadge as Te, defineSetBanner as Le, SET_BANNER_EVENT_BEFORE_DISMISS as g, SET_BANNER_EVENT_DISMISS as A, buildSetBanner as he, buildSetBlockquote as Re, buildSetBox as Oe, buildSetButton as Ie, buildSetCard as Ne, buildSetCheckbox as Ce, buildSetContainer as me, buildSetDetails as De, buildSetDivider as be, buildSetExpander as ve, buildSetFieldset as ge, buildSetFigure as Ae, buildSetGrid as He, buildSetGridItem as pe, buildSetHeading as Pe, buildSetIcon as Be, defineSetImage as ke, buildSetImage as Fe, buildSetInline as xe, buildSetInput as ye, defineSetLightswitch as Ge, SET_LIGHTSWITCH_EVENT_CHANGE as H, buildSetLightswitch as we, buildSetLink as Me, buildSetLogo as Ue, defineSetMenu as Ve, SET_MENU_EVENT_CHOOSE as p, buildSetMenu as ze, defineSetNav as We, buildSetNav as je, buildSetPage as Ke, buildSetPanel as Qe, buildSetPattern as qe, buildSetPoster as Xe, buildSetProse as $e, buildSetRadios as Ye, defineSetRange as Je, buildSetRange as Ze, buildSetRoot as en, buildSetSidebar as nn, defineSetSidebar as tn, buildSetSpinner as rn, buildSetStack as on, buildSetSurface as sn, buildSetSwitch as cn, buildSetText as ln, buildSetTextarea as _n, defineSetVideo as an, buildSetVideo as un } from "@monospaced/set-core";
|
|
2
|
+
import { defineSetComponents as ft } from "@monospaced/set-core";
|
|
3
3
|
import { createElement as T, Fragment as O, useEffect as S, useRef as I, useCallback as N } from "react";
|
|
4
|
-
const
|
|
4
|
+
const dn = {
|
|
5
5
|
autocomplete: "autoComplete",
|
|
6
6
|
class: "className",
|
|
7
7
|
for: "htmlFor",
|
|
@@ -12,27 +12,27 @@ const un = {
|
|
|
12
12
|
"stroke-linejoin": "strokeLinejoin",
|
|
13
13
|
"stroke-width": "strokeWidth",
|
|
14
14
|
tabindex: "tabIndex"
|
|
15
|
-
},
|
|
16
|
-
function
|
|
15
|
+
}, Sn = /* @__PURE__ */ new Set(["input", "textarea", "select"]);
|
|
16
|
+
function En(e) {
|
|
17
17
|
const n = {};
|
|
18
18
|
for (const [t, r] of Object.entries(e)) {
|
|
19
19
|
if (r == null || r === !1 && (t.startsWith("data-") || t.startsWith("aria-")))
|
|
20
20
|
continue;
|
|
21
|
-
const c =
|
|
21
|
+
const c = dn[t] ?? t;
|
|
22
22
|
n[c] = r === !0 && t.startsWith("data-") ? "" : r;
|
|
23
23
|
}
|
|
24
24
|
return n;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function fn(e) {
|
|
27
27
|
const n = [], t = (r) => {
|
|
28
28
|
if (r.kind === "element") {
|
|
29
|
-
|
|
29
|
+
Sn.has(r.tag) && n.push(r);
|
|
30
30
|
for (const c of r.children) t(c);
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
return t(e), n;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Tn(e) {
|
|
36
36
|
const n = {}, t = {};
|
|
37
37
|
let r;
|
|
38
38
|
for (const [s, i] of Object.entries(e))
|
|
@@ -40,14 +40,14 @@ function fn(e) {
|
|
|
40
40
|
const c = r !== void 0 ? { autoFocus: r, ...t } : { ...t };
|
|
41
41
|
return { rootExtras: n, primaryFirstExtras: c, primaryRestExtras: t };
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function Ln(e, n) {
|
|
44
44
|
if (n.primaries.length === 0) return {};
|
|
45
45
|
const t = n.primaries.indexOf(e);
|
|
46
46
|
return t === 0 ? n.primaryFirstExtras : t > 0 ? n.primaryRestExtras : {};
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function _e(e, n, t) {
|
|
49
49
|
const r = {
|
|
50
|
-
...
|
|
50
|
+
...En(e.attrs),
|
|
51
51
|
...n
|
|
52
52
|
};
|
|
53
53
|
if (e.tag === "textarea" && e.children.length > 0) {
|
|
@@ -58,12 +58,12 @@ function le(e, n, t) {
|
|
|
58
58
|
(i) => i.kind === "raw" && !(i.html in t.slots)
|
|
59
59
|
))
|
|
60
60
|
return r.dangerouslySetInnerHTML = {
|
|
61
|
-
__html: e.children.map(
|
|
61
|
+
__html: e.children.map(de).join("")
|
|
62
62
|
}, { props: r, children: null };
|
|
63
|
-
const s = e.children.map((i, o) => i.kind === "raw" && i.html in t.slots ? T(O, { key: o }, t.slots[i.html]) :
|
|
63
|
+
const s = e.children.map((i, o) => i.kind === "raw" && i.html in t.slots ? T(O, { key: o }, t.slots[i.html]) : ae(i, o, t));
|
|
64
64
|
return { props: r, children: s };
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function ae(e, n, t) {
|
|
67
67
|
if (e.kind === "text")
|
|
68
68
|
return e.value in t.slots ? T(O, { key: n }, t.slots[e.value]) : e.value;
|
|
69
69
|
if (e.kind === "raw")
|
|
@@ -71,22 +71,22 @@ function _e(e, n, t) {
|
|
|
71
71
|
key: n,
|
|
72
72
|
dangerouslySetInnerHTML: { __html: e.html }
|
|
73
73
|
});
|
|
74
|
-
const { props: r, children: c } =
|
|
74
|
+
const { props: r, children: c } = _e(
|
|
75
75
|
e,
|
|
76
|
-
|
|
76
|
+
Ln(e, t),
|
|
77
77
|
t
|
|
78
78
|
);
|
|
79
79
|
return n !== void 0 && (r.key = n), c === null ? T(e.tag, r) : T(e.tag, r, ...c);
|
|
80
80
|
}
|
|
81
81
|
function l(e, n = {}, t = {}) {
|
|
82
82
|
if (e.kind !== "element")
|
|
83
|
-
return T(O, null,
|
|
83
|
+
return T(O, null, ae(e, void 0, {
|
|
84
84
|
slots: t,
|
|
85
85
|
primaries: [],
|
|
86
86
|
primaryFirstExtras: {},
|
|
87
87
|
primaryRestExtras: {}
|
|
88
88
|
}));
|
|
89
|
-
const r =
|
|
89
|
+
const r = fn(e), c = r.length > 0 ? Tn(n) : {
|
|
90
90
|
rootExtras: n,
|
|
91
91
|
primaryFirstExtras: {},
|
|
92
92
|
primaryRestExtras: {}
|
|
@@ -95,7 +95,7 @@ function l(e, n = {}, t = {}) {
|
|
|
95
95
|
primaries: r,
|
|
96
96
|
primaryFirstExtras: c.primaryFirstExtras,
|
|
97
97
|
primaryRestExtras: c.primaryRestExtras
|
|
98
|
-
}, { props: i, children: o } =
|
|
98
|
+
}, { props: i, children: o } = _e(e, c.rootExtras, s);
|
|
99
99
|
return o === null ? T(e.tag, i) : T(e.tag, i, ...o);
|
|
100
100
|
}
|
|
101
101
|
function _(e) {
|
|
@@ -104,13 +104,13 @@ function _(e) {
|
|
|
104
104
|
r !== void 0 && (t === "ref" || t === "autoFocus" || t === "value" || t.startsWith("on")) && (n[t] = r);
|
|
105
105
|
return n;
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function hn(e, n) {
|
|
108
108
|
typeof e == "function" ? e(n) : e && (e.current = n);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function mn(e) {
|
|
111
111
|
const { onBeforeDismiss: n, onDismiss: t, ref: r, ...c } = e;
|
|
112
112
|
S(() => {
|
|
113
|
-
|
|
113
|
+
Se();
|
|
114
114
|
}, []);
|
|
115
115
|
const s = I(null);
|
|
116
116
|
S(() => {
|
|
@@ -133,34 +133,34 @@ function Cn(e) {
|
|
|
133
133
|
}, [t]);
|
|
134
134
|
const i = N(
|
|
135
135
|
(o) => {
|
|
136
|
-
s.current = o,
|
|
136
|
+
s.current = o, hn(r, o);
|
|
137
137
|
},
|
|
138
138
|
[r]
|
|
139
139
|
);
|
|
140
|
-
return l(
|
|
140
|
+
return l(Ee(e), {
|
|
141
141
|
..._(c),
|
|
142
142
|
ref: i
|
|
143
143
|
});
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function Dn(e) {
|
|
146
146
|
return l(
|
|
147
|
-
|
|
147
|
+
fe(e),
|
|
148
148
|
_(e)
|
|
149
149
|
);
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function bn(e) {
|
|
152
152
|
return l(
|
|
153
|
-
|
|
153
|
+
Te(e),
|
|
154
154
|
_(e)
|
|
155
155
|
);
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function Rn(e, n) {
|
|
158
158
|
typeof e == "function" ? e(n) : e && (e.current = n);
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function vn(e) {
|
|
161
161
|
const { onBeforeDismiss: n, onDismiss: t, ref: r, ...c } = e;
|
|
162
162
|
S(() => {
|
|
163
|
-
|
|
163
|
+
Le();
|
|
164
164
|
}, []);
|
|
165
165
|
const s = I(null);
|
|
166
166
|
S(() => {
|
|
@@ -183,18 +183,18 @@ function bn(e) {
|
|
|
183
183
|
}, [t]);
|
|
184
184
|
const i = N(
|
|
185
185
|
(o) => {
|
|
186
|
-
s.current = o,
|
|
186
|
+
s.current = o, Rn(r, o);
|
|
187
187
|
},
|
|
188
188
|
[r]
|
|
189
189
|
);
|
|
190
|
-
return l(
|
|
190
|
+
return l(he(e), {
|
|
191
191
|
..._(c),
|
|
192
192
|
ref: i
|
|
193
193
|
});
|
|
194
194
|
}
|
|
195
195
|
const P = "__SET_SLOT_BLOCKQUOTE_QUOTE__", B = "__SET_SLOT_BLOCKQUOTE_ATTRIBUTION__";
|
|
196
|
-
function
|
|
197
|
-
const { align: n, attribution: t, id: r, measured: c, quote: s, responsive: i, size: o, ...a } = e, u =
|
|
196
|
+
function gn(e) {
|
|
197
|
+
const { align: n, attribution: t, id: r, measured: c, quote: s, responsive: i, size: o, ...a } = e, u = Re({
|
|
198
198
|
align: n,
|
|
199
199
|
attribution: B,
|
|
200
200
|
id: r,
|
|
@@ -213,7 +213,7 @@ function vn(e) {
|
|
|
213
213
|
);
|
|
214
214
|
}
|
|
215
215
|
const k = "__SET_SLOT_BOX_CHILDREN__";
|
|
216
|
-
function
|
|
216
|
+
function An(e) {
|
|
217
217
|
const {
|
|
218
218
|
background: n,
|
|
219
219
|
border: t,
|
|
@@ -225,7 +225,7 @@ function gn(e) {
|
|
|
225
225
|
responsive: a,
|
|
226
226
|
surface: u,
|
|
227
227
|
...d
|
|
228
|
-
} = e, E = r != null && r !== !1, f =
|
|
228
|
+
} = e, E = r != null && r !== !1, f = Oe({
|
|
229
229
|
background: n,
|
|
230
230
|
border: t,
|
|
231
231
|
children: E ? k : void 0,
|
|
@@ -244,15 +244,15 @@ function gn(e) {
|
|
|
244
244
|
}
|
|
245
245
|
);
|
|
246
246
|
}
|
|
247
|
-
function
|
|
247
|
+
function Hn(e) {
|
|
248
248
|
return l(
|
|
249
|
-
|
|
249
|
+
Ie(e),
|
|
250
250
|
_(e)
|
|
251
251
|
);
|
|
252
252
|
}
|
|
253
253
|
const F = "__SET_SLOT_CARD_DESCRIPTION__", x = "__SET_SLOT_CARD_NOTE__";
|
|
254
|
-
function
|
|
255
|
-
const { description: n, headingLevel: t, href: r, id: c, note: s, surface: i, title: o, ...a } = e, u = s != null && s !== !1, d =
|
|
254
|
+
function pn(e) {
|
|
255
|
+
const { description: n, headingLevel: t, href: r, id: c, note: s, surface: i, title: o, ...a } = e, u = s != null && s !== !1, d = Ne({
|
|
256
256
|
description: F,
|
|
257
257
|
headingLevel: t,
|
|
258
258
|
href: r,
|
|
@@ -270,15 +270,15 @@ function Hn(e) {
|
|
|
270
270
|
}
|
|
271
271
|
);
|
|
272
272
|
}
|
|
273
|
-
function
|
|
273
|
+
function Pn(e) {
|
|
274
274
|
return l(
|
|
275
|
-
|
|
275
|
+
Ce(e),
|
|
276
276
|
_(e)
|
|
277
277
|
);
|
|
278
278
|
}
|
|
279
279
|
const y = "__SET_SLOT_CONTAINER_CHILDREN__";
|
|
280
|
-
function
|
|
281
|
-
const { children: n, gutter: t, id: r, maxInlineSize: c, ...s } = e, i = n != null && n !== !1, o =
|
|
280
|
+
function Bn(e) {
|
|
281
|
+
const { children: n, gutter: t, id: r, maxInlineSize: c, ...s } = e, i = n != null && n !== !1, o = me({
|
|
282
282
|
children: i ? y : void 0,
|
|
283
283
|
gutter: t,
|
|
284
284
|
id: r,
|
|
@@ -292,10 +292,10 @@ function Pn(e) {
|
|
|
292
292
|
}
|
|
293
293
|
);
|
|
294
294
|
}
|
|
295
|
-
const
|
|
296
|
-
function
|
|
297
|
-
const { children: n, id: t, inlineSize: r, open: c, summary: s, ...i } = e, o = n != null && n !== !1, a =
|
|
298
|
-
children: o ?
|
|
295
|
+
const G = "__SET_SLOT_DETAILS_CHILDREN__";
|
|
296
|
+
function kn(e) {
|
|
297
|
+
const { children: n, id: t, inlineSize: r, open: c, summary: s, ...i } = e, o = n != null && n !== !1, a = De({
|
|
298
|
+
children: o ? G : void 0,
|
|
299
299
|
id: t,
|
|
300
300
|
inlineSize: r,
|
|
301
301
|
open: c,
|
|
@@ -305,24 +305,24 @@ function Bn(e) {
|
|
|
305
305
|
a,
|
|
306
306
|
_(i),
|
|
307
307
|
{
|
|
308
|
-
...o ? { [
|
|
308
|
+
...o ? { [G]: n } : {}
|
|
309
309
|
}
|
|
310
310
|
);
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function Fn(e) {
|
|
313
313
|
return l(
|
|
314
|
-
|
|
314
|
+
be(e),
|
|
315
315
|
_(e)
|
|
316
316
|
);
|
|
317
317
|
}
|
|
318
|
-
function
|
|
318
|
+
function xn(e) {
|
|
319
319
|
return l(
|
|
320
|
-
|
|
320
|
+
ve(e),
|
|
321
321
|
_(e)
|
|
322
322
|
);
|
|
323
323
|
}
|
|
324
|
-
const
|
|
325
|
-
function
|
|
324
|
+
const w = "__SET_SLOT_FIELDSET_CHILDREN__";
|
|
325
|
+
function yn(e) {
|
|
326
326
|
const {
|
|
327
327
|
children: n,
|
|
328
328
|
description: t,
|
|
@@ -332,8 +332,8 @@ function xn(e) {
|
|
|
332
332
|
legend: i,
|
|
333
333
|
inlineSize: o,
|
|
334
334
|
...a
|
|
335
|
-
} = e, u = n != null && n !== !1, d =
|
|
336
|
-
children: u ?
|
|
335
|
+
} = e, u = n != null && n !== !1, d = ge({
|
|
336
|
+
children: u ? w : void 0,
|
|
337
337
|
description: t,
|
|
338
338
|
disabled: r,
|
|
339
339
|
id: c,
|
|
@@ -345,13 +345,13 @@ function xn(e) {
|
|
|
345
345
|
d,
|
|
346
346
|
_(a),
|
|
347
347
|
{
|
|
348
|
-
...u ? { [
|
|
348
|
+
...u ? { [w]: n } : {}
|
|
349
349
|
}
|
|
350
350
|
);
|
|
351
351
|
}
|
|
352
352
|
const M = "__SET_SLOT_FIGURE_CHILDREN__", U = "__SET_SLOT_FIGURE_CAPTION__";
|
|
353
|
-
function
|
|
354
|
-
const { align: n, caption: t, children: r, id: c, inlineSize: s, responsive: i, ...o } = e, a =
|
|
353
|
+
function Gn(e) {
|
|
354
|
+
const { align: n, caption: t, children: r, id: c, inlineSize: s, responsive: i, ...o } = e, a = Ae({
|
|
355
355
|
align: n,
|
|
356
356
|
caption: U,
|
|
357
357
|
children: M,
|
|
@@ -370,7 +370,7 @@ function yn(e) {
|
|
|
370
370
|
}
|
|
371
371
|
const V = "__SET_SLOT_GRID_CHILDREN__";
|
|
372
372
|
function wn(e) {
|
|
373
|
-
const { children: n, gap: t, id: r, ...c } = e, s = n != null && n !== !1, i =
|
|
373
|
+
const { children: n, gap: t, id: r, ...c } = e, s = n != null && n !== !1, i = He({
|
|
374
374
|
children: s ? V : void 0,
|
|
375
375
|
gap: t,
|
|
376
376
|
id: r
|
|
@@ -384,7 +384,7 @@ function wn(e) {
|
|
|
384
384
|
);
|
|
385
385
|
}
|
|
386
386
|
const z = "__SET_SLOT_GRID_ITEM_CHILDREN__";
|
|
387
|
-
function
|
|
387
|
+
function Mn(e) {
|
|
388
388
|
const {
|
|
389
389
|
children: n,
|
|
390
390
|
align: t,
|
|
@@ -403,7 +403,7 @@ function Gn(e) {
|
|
|
403
403
|
colSpanWide: C,
|
|
404
404
|
colStartWide: R,
|
|
405
405
|
...m
|
|
406
|
-
} = e, D = n != null && n !== !1,
|
|
406
|
+
} = e, D = n != null && n !== !1, ue = pe({
|
|
407
407
|
children: D ? z : void 0,
|
|
408
408
|
align: t,
|
|
409
409
|
justify: r,
|
|
@@ -422,39 +422,63 @@ function Gn(e) {
|
|
|
422
422
|
colStartWide: R
|
|
423
423
|
});
|
|
424
424
|
return l(
|
|
425
|
-
|
|
425
|
+
ue,
|
|
426
426
|
_(m),
|
|
427
427
|
{
|
|
428
428
|
...D ? { [z]: n } : {}
|
|
429
429
|
}
|
|
430
430
|
);
|
|
431
431
|
}
|
|
432
|
-
|
|
432
|
+
const W = "__SET_SLOT_HEADING_CHILDREN__";
|
|
433
|
+
function Un(e) {
|
|
434
|
+
const {
|
|
435
|
+
align: n,
|
|
436
|
+
children: t,
|
|
437
|
+
id: r,
|
|
438
|
+
level: c,
|
|
439
|
+
linkVisited: s,
|
|
440
|
+
opticalAlign: i,
|
|
441
|
+
responsive: o,
|
|
442
|
+
size: a,
|
|
443
|
+
...u
|
|
444
|
+
} = e, d = Pe({
|
|
445
|
+
align: n,
|
|
446
|
+
children: W,
|
|
447
|
+
id: r,
|
|
448
|
+
level: c,
|
|
449
|
+
linkVisited: s,
|
|
450
|
+
opticalAlign: i,
|
|
451
|
+
responsive: o,
|
|
452
|
+
size: a
|
|
453
|
+
});
|
|
433
454
|
return l(
|
|
434
|
-
|
|
435
|
-
_(
|
|
455
|
+
d,
|
|
456
|
+
_(u),
|
|
457
|
+
{
|
|
458
|
+
[W]: t
|
|
459
|
+
}
|
|
436
460
|
);
|
|
437
461
|
}
|
|
438
|
-
function
|
|
462
|
+
function Vn(e) {
|
|
439
463
|
return l(
|
|
440
|
-
|
|
464
|
+
Be(e),
|
|
441
465
|
_(e)
|
|
442
466
|
);
|
|
443
467
|
}
|
|
444
|
-
function
|
|
468
|
+
function zn(e) {
|
|
445
469
|
return S(() => {
|
|
446
|
-
|
|
470
|
+
ke();
|
|
447
471
|
}, []), l(
|
|
448
|
-
|
|
472
|
+
Fe(e),
|
|
449
473
|
_(e)
|
|
450
474
|
);
|
|
451
475
|
}
|
|
452
|
-
const
|
|
453
|
-
function
|
|
454
|
-
const { as: n, align: t, children: r, gap: c, id: s, justify: i, nowrap: o, ...a } = e, u = r != null && r !== !1, d =
|
|
476
|
+
const j = "__SET_SLOT_INLINE_CHILDREN__";
|
|
477
|
+
function Wn(e) {
|
|
478
|
+
const { as: n, align: t, children: r, gap: c, id: s, justify: i, nowrap: o, ...a } = e, u = r != null && r !== !1, d = xe({
|
|
455
479
|
as: n,
|
|
456
480
|
align: t,
|
|
457
|
-
children: u ?
|
|
481
|
+
children: u ? j : void 0,
|
|
458
482
|
gap: c,
|
|
459
483
|
id: s,
|
|
460
484
|
justify: i,
|
|
@@ -464,23 +488,23 @@ function zn(e) {
|
|
|
464
488
|
d,
|
|
465
489
|
_(a),
|
|
466
490
|
{
|
|
467
|
-
...u ? { [
|
|
491
|
+
...u ? { [j]: r } : {}
|
|
468
492
|
}
|
|
469
493
|
);
|
|
470
494
|
}
|
|
471
|
-
function
|
|
495
|
+
function jn(e) {
|
|
472
496
|
return l(
|
|
473
|
-
|
|
497
|
+
ye(e),
|
|
474
498
|
_(e)
|
|
475
499
|
);
|
|
476
500
|
}
|
|
477
|
-
function
|
|
501
|
+
function On(e, n) {
|
|
478
502
|
typeof e == "function" ? e(n) : e && (e.current = n);
|
|
479
503
|
}
|
|
480
|
-
function
|
|
504
|
+
function Kn(e) {
|
|
481
505
|
const { onChange: n, ref: t, ...r } = e;
|
|
482
506
|
S(() => {
|
|
483
|
-
|
|
507
|
+
Ge();
|
|
484
508
|
}, []);
|
|
485
509
|
const c = I(null);
|
|
486
510
|
S(() => {
|
|
@@ -496,7 +520,7 @@ function jn(e) {
|
|
|
496
520
|
}, [n]);
|
|
497
521
|
const s = N(
|
|
498
522
|
(i) => {
|
|
499
|
-
c.current = i,
|
|
523
|
+
c.current = i, On(t, i);
|
|
500
524
|
},
|
|
501
525
|
[t]
|
|
502
526
|
);
|
|
@@ -505,8 +529,8 @@ function jn(e) {
|
|
|
505
529
|
ref: s
|
|
506
530
|
});
|
|
507
531
|
}
|
|
508
|
-
const
|
|
509
|
-
function
|
|
532
|
+
const K = "__SET_SLOT_LINK_ICON__";
|
|
533
|
+
function Qn(e) {
|
|
510
534
|
const {
|
|
511
535
|
appearance: n,
|
|
512
536
|
current: t,
|
|
@@ -523,13 +547,13 @@ function Kn(e) {
|
|
|
523
547
|
tone: L,
|
|
524
548
|
underline: h,
|
|
525
549
|
...C
|
|
526
|
-
} = e, R = i != null && i !== !1, m =
|
|
550
|
+
} = e, R = i != null && i !== !1, m = Me({
|
|
527
551
|
appearance: n,
|
|
528
552
|
current: t,
|
|
529
553
|
download: r,
|
|
530
554
|
href: c,
|
|
531
555
|
id: s,
|
|
532
|
-
icon: R ?
|
|
556
|
+
icon: R ? K : void 0,
|
|
533
557
|
iconPlacement: o,
|
|
534
558
|
label: a,
|
|
535
559
|
labelVisibility: u,
|
|
@@ -543,23 +567,23 @@ function Kn(e) {
|
|
|
543
567
|
m,
|
|
544
568
|
_(C),
|
|
545
569
|
{
|
|
546
|
-
...R ? { [
|
|
570
|
+
...R ? { [K]: i } : {}
|
|
547
571
|
}
|
|
548
572
|
);
|
|
549
573
|
}
|
|
550
|
-
function
|
|
574
|
+
function qn(e) {
|
|
551
575
|
return l(
|
|
552
|
-
|
|
576
|
+
Ue(e),
|
|
553
577
|
_(e)
|
|
554
578
|
);
|
|
555
579
|
}
|
|
556
|
-
function
|
|
580
|
+
function In(e, n) {
|
|
557
581
|
typeof e == "function" ? e(n) : e && (e.current = n);
|
|
558
582
|
}
|
|
559
|
-
function
|
|
583
|
+
function Xn(e) {
|
|
560
584
|
const { onChoose: n, ref: t, ...r } = e;
|
|
561
585
|
S(() => {
|
|
562
|
-
|
|
586
|
+
Ve();
|
|
563
587
|
}, []);
|
|
564
588
|
const c = I(null);
|
|
565
589
|
S(() => {
|
|
@@ -569,25 +593,25 @@ function qn(e) {
|
|
|
569
593
|
}, [n]);
|
|
570
594
|
const s = N(
|
|
571
595
|
(i) => {
|
|
572
|
-
c.current = i,
|
|
596
|
+
c.current = i, In(t, i);
|
|
573
597
|
},
|
|
574
598
|
[t]
|
|
575
599
|
);
|
|
576
|
-
return l(
|
|
600
|
+
return l(ze(e), {
|
|
577
601
|
..._(r),
|
|
578
602
|
ref: s
|
|
579
603
|
});
|
|
580
604
|
}
|
|
581
|
-
function
|
|
605
|
+
function $n(e) {
|
|
582
606
|
return S(() => {
|
|
583
|
-
|
|
607
|
+
We();
|
|
584
608
|
}, []), l(
|
|
585
|
-
|
|
609
|
+
je(e),
|
|
586
610
|
_(e)
|
|
587
611
|
);
|
|
588
612
|
}
|
|
589
|
-
const
|
|
590
|
-
function
|
|
613
|
+
const Q = "__SET_SLOT_PAGE_BANNER__", q = "__SET_SLOT_PAGE_HEADER__", X = "__SET_SLOT_PAGE_CHILDREN__", $ = "__SET_SLOT_PAGE_FOOTER__";
|
|
614
|
+
function Yn(e) {
|
|
591
615
|
const {
|
|
592
616
|
banner: n,
|
|
593
617
|
children: t,
|
|
@@ -599,32 +623,32 @@ function $n(e) {
|
|
|
599
623
|
stickyHeader: a,
|
|
600
624
|
footer: u,
|
|
601
625
|
...d
|
|
602
|
-
} = e, E = n != null && n !== !1, f = t != null && t !== !1, L =
|
|
603
|
-
banner: E ?
|
|
604
|
-
children: f ?
|
|
626
|
+
} = e, E = n != null && n !== !1, f = t != null && t !== !1, L = Ke({
|
|
627
|
+
banner: E ? Q : void 0,
|
|
628
|
+
children: f ? X : void 0,
|
|
605
629
|
centerMain: r,
|
|
606
|
-
header:
|
|
630
|
+
header: q,
|
|
607
631
|
headerBorder: s,
|
|
608
632
|
headerSize: i,
|
|
609
633
|
id: o,
|
|
610
634
|
stickyHeader: a,
|
|
611
|
-
footer:
|
|
635
|
+
footer: $
|
|
612
636
|
});
|
|
613
637
|
return l(
|
|
614
638
|
L,
|
|
615
639
|
_(d),
|
|
616
640
|
{
|
|
617
|
-
...E ? { [
|
|
618
|
-
[
|
|
619
|
-
...f ? { [
|
|
620
|
-
[
|
|
641
|
+
...E ? { [Q]: n } : {},
|
|
642
|
+
[q]: c,
|
|
643
|
+
...f ? { [X]: t } : {},
|
|
644
|
+
[$]: u
|
|
621
645
|
}
|
|
622
646
|
);
|
|
623
647
|
}
|
|
624
|
-
const
|
|
625
|
-
function
|
|
626
|
-
const { children: n, id: t, padding: r, surface: c, ...s } = e, i = n != null && n !== !1, o =
|
|
627
|
-
children: i ?
|
|
648
|
+
const Y = "__SET_SLOT_PANEL_CHILDREN__";
|
|
649
|
+
function Jn(e) {
|
|
650
|
+
const { children: n, id: t, padding: r, surface: c, ...s } = e, i = n != null && n !== !1, o = Qe({
|
|
651
|
+
children: i ? Y : void 0,
|
|
628
652
|
id: t,
|
|
629
653
|
padding: r,
|
|
630
654
|
surface: c
|
|
@@ -633,14 +657,14 @@ function Yn(e) {
|
|
|
633
657
|
o,
|
|
634
658
|
_(s),
|
|
635
659
|
{
|
|
636
|
-
...i ? { [
|
|
660
|
+
...i ? { [Y]: n } : {}
|
|
637
661
|
}
|
|
638
662
|
);
|
|
639
663
|
}
|
|
640
|
-
const
|
|
641
|
-
function
|
|
642
|
-
const { children: n, id: t, tone: r, size: c, variant: s, ...i } = e, o = n != null && n !== !1, a =
|
|
643
|
-
children: o ?
|
|
664
|
+
const J = "__SET_SLOT_PATTERN_CHILDREN__";
|
|
665
|
+
function Zn(e) {
|
|
666
|
+
const { children: n, id: t, tone: r, size: c, variant: s, ...i } = e, o = n != null && n !== !1, a = qe({
|
|
667
|
+
children: o ? J : void 0,
|
|
644
668
|
id: t,
|
|
645
669
|
tone: r,
|
|
646
670
|
size: c,
|
|
@@ -650,30 +674,30 @@ function Jn(e) {
|
|
|
650
674
|
a,
|
|
651
675
|
_(i),
|
|
652
676
|
{
|
|
653
|
-
...o ? { [
|
|
677
|
+
...o ? { [J]: n } : {}
|
|
654
678
|
}
|
|
655
679
|
);
|
|
656
680
|
}
|
|
657
|
-
const
|
|
658
|
-
function
|
|
659
|
-
const { children: n, contentTheme: t, id: r, media: c, surface: s, ...i } = e, o = n != null && n !== !1, a =
|
|
660
|
-
children: o ?
|
|
681
|
+
const Z = "__SET_SLOT_POSTER_MEDIA__", ee = "__SET_SLOT_POSTER_CHILDREN__";
|
|
682
|
+
function et(e) {
|
|
683
|
+
const { children: n, contentTheme: t, id: r, media: c, surface: s, ...i } = e, o = n != null && n !== !1, a = Xe({
|
|
684
|
+
children: o ? ee : void 0,
|
|
661
685
|
contentTheme: t,
|
|
662
686
|
id: r,
|
|
663
|
-
media:
|
|
687
|
+
media: Z,
|
|
664
688
|
surface: s
|
|
665
689
|
});
|
|
666
690
|
return l(
|
|
667
691
|
a,
|
|
668
692
|
_(i),
|
|
669
693
|
{
|
|
670
|
-
[
|
|
671
|
-
...o ? { [
|
|
694
|
+
[Z]: c,
|
|
695
|
+
...o ? { [ee]: n } : {}
|
|
672
696
|
}
|
|
673
697
|
);
|
|
674
698
|
}
|
|
675
|
-
const
|
|
676
|
-
function
|
|
699
|
+
const ne = "__SET_SLOT_PROSE_CHILDREN__";
|
|
700
|
+
function nt(e) {
|
|
677
701
|
const {
|
|
678
702
|
children: n,
|
|
679
703
|
align: t,
|
|
@@ -684,8 +708,8 @@ function et(e) {
|
|
|
684
708
|
monospaced: o,
|
|
685
709
|
responsive: a,
|
|
686
710
|
...u
|
|
687
|
-
} = e, d =
|
|
688
|
-
children:
|
|
711
|
+
} = e, d = $e({
|
|
712
|
+
children: ne,
|
|
689
713
|
align: t,
|
|
690
714
|
hangingPunctuation: r,
|
|
691
715
|
id: c,
|
|
@@ -698,26 +722,26 @@ function et(e) {
|
|
|
698
722
|
d,
|
|
699
723
|
_(u),
|
|
700
724
|
{
|
|
701
|
-
[
|
|
725
|
+
[ne]: n
|
|
702
726
|
}
|
|
703
727
|
);
|
|
704
728
|
}
|
|
705
|
-
function
|
|
729
|
+
function tt(e) {
|
|
706
730
|
return l(
|
|
707
|
-
|
|
731
|
+
Ye(e),
|
|
708
732
|
_(e)
|
|
709
733
|
);
|
|
710
734
|
}
|
|
711
|
-
function
|
|
735
|
+
function rt(e) {
|
|
712
736
|
return S(() => {
|
|
713
|
-
|
|
737
|
+
Je();
|
|
714
738
|
}, []), l(
|
|
715
|
-
|
|
739
|
+
Ze(e),
|
|
716
740
|
_(e)
|
|
717
741
|
);
|
|
718
742
|
}
|
|
719
|
-
const
|
|
720
|
-
function
|
|
743
|
+
const te = "__SET_SLOT_ROOT_CHILDREN__";
|
|
744
|
+
function it(e) {
|
|
721
745
|
const {
|
|
722
746
|
appOverscrollBehavior: n,
|
|
723
747
|
appRoot: t,
|
|
@@ -728,11 +752,11 @@ function rt(e) {
|
|
|
728
752
|
lang: o,
|
|
729
753
|
theme: a,
|
|
730
754
|
...u
|
|
731
|
-
} = e, d =
|
|
755
|
+
} = e, d = en({
|
|
732
756
|
appOverscrollBehavior: n,
|
|
733
757
|
appRoot: t,
|
|
734
758
|
brand: r,
|
|
735
|
-
children:
|
|
759
|
+
children: te,
|
|
736
760
|
dir: s,
|
|
737
761
|
id: i,
|
|
738
762
|
lang: o,
|
|
@@ -742,12 +766,12 @@ function rt(e) {
|
|
|
742
766
|
d,
|
|
743
767
|
_(u),
|
|
744
768
|
{
|
|
745
|
-
[
|
|
769
|
+
[te]: c
|
|
746
770
|
}
|
|
747
771
|
);
|
|
748
772
|
}
|
|
749
|
-
const
|
|
750
|
-
function
|
|
773
|
+
const re = "__SET_SLOT_SIDEBAR_HEADER__", ie = "__SET_SLOT_SIDEBAR_CHILDREN__", oe = "__SET_SLOT_SIDEBAR_FOOTER__";
|
|
774
|
+
function ot(e) {
|
|
751
775
|
const {
|
|
752
776
|
aboveNotebook: n,
|
|
753
777
|
buttonSize: t,
|
|
@@ -759,41 +783,41 @@ function it(e) {
|
|
|
759
783
|
surface: a,
|
|
760
784
|
triggerLabel: u,
|
|
761
785
|
...d
|
|
762
|
-
} = e, E = i != null && i !== !1, f = r != null && r !== !1, L = s != null && s !== !1, h =
|
|
786
|
+
} = e, E = i != null && i !== !1, f = r != null && r !== !1, L = s != null && s !== !1, h = nn({
|
|
763
787
|
aboveNotebook: n,
|
|
764
788
|
buttonSize: t,
|
|
765
|
-
children: f ?
|
|
789
|
+
children: f ? ie : void 0,
|
|
766
790
|
collapseLabel: c,
|
|
767
|
-
footer: L ?
|
|
768
|
-
header: E ?
|
|
791
|
+
footer: L ? oe : void 0,
|
|
792
|
+
header: E ? re : void 0,
|
|
769
793
|
id: o,
|
|
770
794
|
surface: a,
|
|
771
795
|
triggerLabel: u
|
|
772
796
|
});
|
|
773
797
|
return S(() => {
|
|
774
|
-
|
|
798
|
+
tn();
|
|
775
799
|
}, []), l(
|
|
776
800
|
h,
|
|
777
801
|
_(d),
|
|
778
802
|
{
|
|
779
|
-
...E ? { [
|
|
780
|
-
...f ? { [
|
|
781
|
-
...L ? { [
|
|
803
|
+
...E ? { [re]: i } : {},
|
|
804
|
+
...f ? { [ie]: r } : {},
|
|
805
|
+
...L ? { [oe]: s } : {}
|
|
782
806
|
}
|
|
783
807
|
);
|
|
784
808
|
}
|
|
785
|
-
function
|
|
809
|
+
function st(e) {
|
|
786
810
|
return l(
|
|
787
|
-
|
|
811
|
+
rn(e),
|
|
788
812
|
_(e)
|
|
789
813
|
);
|
|
790
814
|
}
|
|
791
|
-
const
|
|
792
|
-
function
|
|
793
|
-
const { align: n, as: t, children: r, gap: c, id: s, responsive: i, ...o } = e, a = r != null && r !== !1, u =
|
|
815
|
+
const se = "__SET_SLOT_STACK_CHILDREN__";
|
|
816
|
+
function ct(e) {
|
|
817
|
+
const { align: n, as: t, children: r, gap: c, id: s, responsive: i, ...o } = e, a = r != null && r !== !1, u = on({
|
|
794
818
|
align: n,
|
|
795
819
|
as: t,
|
|
796
|
-
children: a ?
|
|
820
|
+
children: a ? se : void 0,
|
|
797
821
|
gap: c,
|
|
798
822
|
id: s,
|
|
799
823
|
responsive: i
|
|
@@ -802,14 +826,14 @@ function st(e) {
|
|
|
802
826
|
u,
|
|
803
827
|
_(o),
|
|
804
828
|
{
|
|
805
|
-
...a ? { [
|
|
829
|
+
...a ? { [se]: r } : {}
|
|
806
830
|
}
|
|
807
831
|
);
|
|
808
832
|
}
|
|
809
|
-
const
|
|
810
|
-
function
|
|
811
|
-
const { children: n, contentTheme: t, id: r, variant: c, ...s } = e, i =
|
|
812
|
-
children:
|
|
833
|
+
const ce = "__SET_SLOT_SURFACE_CHILDREN__";
|
|
834
|
+
function lt(e) {
|
|
835
|
+
const { children: n, contentTheme: t, id: r, variant: c, ...s } = e, i = sn({
|
|
836
|
+
children: ce,
|
|
813
837
|
contentTheme: t,
|
|
814
838
|
id: r,
|
|
815
839
|
variant: c
|
|
@@ -818,18 +842,18 @@ function ct(e) {
|
|
|
818
842
|
i,
|
|
819
843
|
_(s),
|
|
820
844
|
{
|
|
821
|
-
[
|
|
845
|
+
[ce]: n
|
|
822
846
|
}
|
|
823
847
|
);
|
|
824
848
|
}
|
|
825
|
-
function
|
|
849
|
+
function _t(e) {
|
|
826
850
|
return l(
|
|
827
|
-
|
|
851
|
+
cn(e),
|
|
828
852
|
_(e)
|
|
829
853
|
);
|
|
830
854
|
}
|
|
831
|
-
const
|
|
832
|
-
function
|
|
855
|
+
const le = "__SET_SLOT_TEXT_CHILDREN__";
|
|
856
|
+
function at(e) {
|
|
833
857
|
const {
|
|
834
858
|
as: n,
|
|
835
859
|
children: t,
|
|
@@ -842,9 +866,9 @@ function _t(e) {
|
|
|
842
866
|
size: u,
|
|
843
867
|
tone: d,
|
|
844
868
|
...E
|
|
845
|
-
} = e, f =
|
|
869
|
+
} = e, f = ln({
|
|
846
870
|
as: n,
|
|
847
|
-
children:
|
|
871
|
+
children: le,
|
|
848
872
|
id: r,
|
|
849
873
|
linkVisited: c,
|
|
850
874
|
responsive: s,
|
|
@@ -858,68 +882,68 @@ function _t(e) {
|
|
|
858
882
|
f,
|
|
859
883
|
_(E),
|
|
860
884
|
{
|
|
861
|
-
[
|
|
885
|
+
[le]: t
|
|
862
886
|
}
|
|
863
887
|
);
|
|
864
888
|
}
|
|
865
|
-
function
|
|
889
|
+
function ut(e) {
|
|
866
890
|
return l(
|
|
867
|
-
|
|
891
|
+
_n(e),
|
|
868
892
|
_(e)
|
|
869
893
|
);
|
|
870
894
|
}
|
|
871
|
-
function
|
|
895
|
+
function dt(e) {
|
|
872
896
|
return S(() => {
|
|
873
|
-
|
|
897
|
+
an();
|
|
874
898
|
}, []), l(
|
|
875
|
-
|
|
899
|
+
un(e),
|
|
876
900
|
_(e)
|
|
877
901
|
);
|
|
878
902
|
}
|
|
879
903
|
export {
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
904
|
+
mn as Alert,
|
|
905
|
+
Dn as Avatar,
|
|
906
|
+
bn as Badge,
|
|
907
|
+
vn as Banner,
|
|
908
|
+
gn as Blockquote,
|
|
909
|
+
An as Box,
|
|
910
|
+
Hn as Button,
|
|
911
|
+
pn as Card,
|
|
912
|
+
Pn as Checkbox,
|
|
913
|
+
Bn as Container,
|
|
914
|
+
kn as Details,
|
|
915
|
+
Fn as Divider,
|
|
916
|
+
xn as Expander,
|
|
917
|
+
yn as Fieldset,
|
|
918
|
+
Gn as Figure,
|
|
895
919
|
wn as Grid,
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
920
|
+
Mn as GridItem,
|
|
921
|
+
Un as Heading,
|
|
922
|
+
Vn as Icon,
|
|
923
|
+
zn as Image,
|
|
924
|
+
Wn as Inline,
|
|
925
|
+
jn as Input,
|
|
926
|
+
Kn as Lightswitch,
|
|
927
|
+
Qn as Link,
|
|
928
|
+
qn as Logo,
|
|
929
|
+
Xn as Menu,
|
|
930
|
+
$n as Nav,
|
|
931
|
+
Yn as Page,
|
|
932
|
+
Jn as Panel,
|
|
933
|
+
Zn as Pattern,
|
|
934
|
+
et as Poster,
|
|
935
|
+
nt as Prose,
|
|
936
|
+
tt as Radios,
|
|
937
|
+
rt as Range,
|
|
938
|
+
it as Root,
|
|
939
|
+
ot as Sidebar,
|
|
940
|
+
st as Spinner,
|
|
941
|
+
ct as Stack,
|
|
942
|
+
lt as Surface,
|
|
943
|
+
_t as Switch,
|
|
944
|
+
at as Text,
|
|
945
|
+
ut as Textarea,
|
|
946
|
+
dt as Video,
|
|
947
|
+
ft as defineSetAll
|
|
924
948
|
};
|
|
925
949
|
//# sourceMappingURL=index.js.map
|