@monospaced/set-react 0.24.0 → 0.26.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/page/page.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +132 -140
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/dist/components/panel/panel.d.ts +0 -8
- package/dist/components/panel/panel.d.ts.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SET_ALERT_EVENT_BEFORE_DISMISS as e, SET_ALERT_EVENT_DISMISS as t, SET_BANNER_EVENT_BEFORE_DISMISS as n, SET_BANNER_EVENT_DISMISS as r, SET_LIGHTSWITCH_EVENT_CHANGE as i, SET_MENU_EVENT_CHOOSE as a, buildSetAlert as o, buildSetAvatar as s, buildSetBadge as c, buildSetBanner as l, buildSetBlockquote as u, buildSetBox as d, buildSetButton as f, buildSetCard as p, buildSetCheckbox as m, buildSetContainer as h, buildSetDetails as g, buildSetDither as _, buildSetDivider as v, buildSetExpander as ee, buildSetFieldset as te, buildSetFigure as ne, buildSetGrid as re, buildSetGridItem as ie, buildSetHeading as ae, buildSetIcon as oe, buildSetImage as se, buildSetInline as ce, buildSetInput as le, buildSetLightswitch as ue, buildSetLink as de, buildSetLogo as fe, buildSetMenu as pe, buildSetNav as me, buildSetPage as he,
|
|
1
|
+
import { SET_ALERT_EVENT_BEFORE_DISMISS as e, SET_ALERT_EVENT_DISMISS as t, SET_BANNER_EVENT_BEFORE_DISMISS as n, SET_BANNER_EVENT_DISMISS as r, SET_LIGHTSWITCH_EVENT_CHANGE as i, SET_MENU_EVENT_CHOOSE as a, buildSetAlert as o, buildSetAvatar as s, buildSetBadge as c, buildSetBanner as l, buildSetBlockquote as u, buildSetBox as d, buildSetButton as f, buildSetCard as p, buildSetCheckbox as m, buildSetContainer as h, buildSetDetails as g, buildSetDither as _, buildSetDivider as v, buildSetExpander as ee, buildSetFieldset as te, buildSetFigure as ne, buildSetGrid as re, buildSetGridItem as ie, buildSetHeading as ae, buildSetIcon as oe, buildSetImage as se, buildSetInline as ce, buildSetInput as le, buildSetLightswitch as ue, buildSetLink as de, buildSetLogo as fe, buildSetMenu as pe, buildSetNav as me, buildSetPage as he, buildSetPattern as ge, buildSetPoster as _e, buildSetProse as ve, buildSetRadios as ye, buildSetRange as be, buildSetRoot as xe, buildSetSidebar as Se, buildSetSpinner as Ce, buildSetStack as we, buildSetSurface as Te, buildSetSwitch as Ee, buildSetText as De, buildSetTextarea as Oe, buildSetVideo as ke, defineSetAlert as Ae, defineSetBanner as je, defineSetComponents as Me, defineSetImage as Ne, defineSetLightswitch as Pe, defineSetMenu as Fe, defineSetNav as Ie, defineSetRange as Le, defineSetSidebar as Re, defineSetVideo as ze, serializeSetNode as Be } from "@monospaced/set-core";
|
|
2
2
|
import { Fragment as y, createElement as b, useCallback as x, useEffect as S, useRef as C } from "react";
|
|
3
3
|
// src/reactify.tsx
|
|
4
|
-
var
|
|
4
|
+
var Ve = {
|
|
5
5
|
autocomplete: "autoComplete",
|
|
6
6
|
class: "className",
|
|
7
7
|
for: "htmlFor",
|
|
@@ -12,30 +12,30 @@ var He = {
|
|
|
12
12
|
"stroke-linejoin": "strokeLinejoin",
|
|
13
13
|
"stroke-width": "strokeWidth",
|
|
14
14
|
tabindex: "tabIndex"
|
|
15
|
-
},
|
|
15
|
+
}, He = /* @__PURE__ */ new Set([
|
|
16
16
|
"input",
|
|
17
17
|
"textarea",
|
|
18
18
|
"select"
|
|
19
19
|
]);
|
|
20
|
-
function
|
|
20
|
+
function Ue(e) {
|
|
21
21
|
let t = {};
|
|
22
22
|
for (let [n, r] of Object.entries(e)) {
|
|
23
23
|
if (r == null || r === !1 && (n.startsWith("data-") || n.startsWith("aria-"))) continue;
|
|
24
|
-
let e =
|
|
24
|
+
let e = Ve[n] ?? n;
|
|
25
25
|
t[e] = r === !0 && n.startsWith("data-") ? "" : r;
|
|
26
26
|
}
|
|
27
27
|
return t;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function We(e) {
|
|
30
30
|
let t = [], n = (e) => {
|
|
31
31
|
if (e.kind === "element") {
|
|
32
|
-
|
|
32
|
+
He.has(e.tag) && t.push(e);
|
|
33
33
|
for (let t of e.children) n(t);
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
return n(e), t;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function Ge(e) {
|
|
39
39
|
let t = {}, n = {}, r;
|
|
40
40
|
for (let [i, a] of Object.entries(e)) a !== void 0 && (i === "ref" ? t[i] = a : i === "autoFocus" ? r = a : n[i] = a);
|
|
41
41
|
return {
|
|
@@ -47,14 +47,14 @@ function Ke(e) {
|
|
|
47
47
|
primaryRestExtras: n
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Ke(e, t) {
|
|
51
51
|
if (t.primaries.length === 0) return {};
|
|
52
52
|
let n = t.primaries.indexOf(e);
|
|
53
53
|
return n === 0 ? t.primaryFirstExtras : n > 0 ? t.primaryRestExtras : {};
|
|
54
54
|
}
|
|
55
55
|
function w(e, t, n) {
|
|
56
56
|
let r = {
|
|
57
|
-
...
|
|
57
|
+
...Ue(e.attrs),
|
|
58
58
|
...t
|
|
59
59
|
};
|
|
60
60
|
if (e.tag === "textarea" && e.children.length > 0) {
|
|
@@ -64,7 +64,7 @@ function w(e, t, n) {
|
|
|
64
64
|
children: null
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
return e.children.some((e) => e.kind === "raw" && !(e.html in n.slots)) ? (r.dangerouslySetInnerHTML = { __html: e.children.map(
|
|
67
|
+
return e.children.some((e) => e.kind === "raw" && !(e.html in n.slots)) ? (r.dangerouslySetInnerHTML = { __html: e.children.map(Be).join("") }, {
|
|
68
68
|
props: r,
|
|
69
69
|
children: null
|
|
70
70
|
}) : {
|
|
@@ -78,7 +78,7 @@ function T(e, t, n) {
|
|
|
78
78
|
key: t,
|
|
79
79
|
dangerouslySetInnerHTML: { __html: e.html }
|
|
80
80
|
});
|
|
81
|
-
let { props: r, children: i } = w(e,
|
|
81
|
+
let { props: r, children: i } = w(e, Ke(e, n), n);
|
|
82
82
|
return t !== void 0 && (r.key = t), i === null ? b(e.tag, r) : b(e.tag, r, ...i);
|
|
83
83
|
}
|
|
84
84
|
function E(e, t = {}, n = {}) {
|
|
@@ -88,7 +88,7 @@ function E(e, t = {}, n = {}) {
|
|
|
88
88
|
primaryFirstExtras: {},
|
|
89
89
|
primaryRestExtras: {}
|
|
90
90
|
}));
|
|
91
|
-
let r =
|
|
91
|
+
let r = We(e), i = r.length > 0 ? Ge(t) : {
|
|
92
92
|
rootExtras: t,
|
|
93
93
|
primaryFirstExtras: {},
|
|
94
94
|
primaryRestExtras: {}
|
|
@@ -106,13 +106,13 @@ function D(e) {
|
|
|
106
106
|
return t;
|
|
107
107
|
}
|
|
108
108
|
// src/components/alert/alert.tsx
|
|
109
|
-
function
|
|
109
|
+
function qe(e, t) {
|
|
110
110
|
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function Je(n) {
|
|
113
113
|
let { onBeforeDismiss: r, onDismiss: i, ref: a, ...s } = n;
|
|
114
114
|
S(() => {
|
|
115
|
-
|
|
115
|
+
Ae();
|
|
116
116
|
}, []);
|
|
117
117
|
let c = C(null);
|
|
118
118
|
S(() => {
|
|
@@ -123,7 +123,7 @@ function Ye(n) {
|
|
|
123
123
|
if (e && i) return e.addEventListener(t, i), () => e.removeEventListener(t, i);
|
|
124
124
|
}, [i]);
|
|
125
125
|
let l = x((e) => {
|
|
126
|
-
c.current = e,
|
|
126
|
+
c.current = e, qe(a, e);
|
|
127
127
|
}, [a]);
|
|
128
128
|
return E(o(n), {
|
|
129
129
|
...D(s),
|
|
@@ -131,21 +131,21 @@ function Ye(n) {
|
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
// src/components/avatar/avatar.tsx
|
|
134
|
-
function
|
|
134
|
+
function Ye(e) {
|
|
135
135
|
return E(s(e), D(e));
|
|
136
136
|
}
|
|
137
137
|
// src/components/badge/badge.tsx
|
|
138
|
-
function
|
|
138
|
+
function Xe(e) {
|
|
139
139
|
return E(c(e), D(e));
|
|
140
140
|
}
|
|
141
141
|
// src/components/banner/banner.tsx
|
|
142
|
-
function
|
|
142
|
+
function Ze(e, t) {
|
|
143
143
|
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function Qe(e) {
|
|
146
146
|
let { onBeforeDismiss: t, onDismiss: i, ref: a, ...o } = e;
|
|
147
147
|
S(() => {
|
|
148
|
-
|
|
148
|
+
je();
|
|
149
149
|
}, []);
|
|
150
150
|
let s = C(null);
|
|
151
151
|
S(() => {
|
|
@@ -156,7 +156,7 @@ function $e(e) {
|
|
|
156
156
|
if (e && i) return e.addEventListener(r, i), () => e.removeEventListener(r, i);
|
|
157
157
|
}, [i]);
|
|
158
158
|
let c = x((e) => {
|
|
159
|
-
s.current = e,
|
|
159
|
+
s.current = e, Ze(a, e);
|
|
160
160
|
}, [a]);
|
|
161
161
|
return E(l(e), {
|
|
162
162
|
...D(o),
|
|
@@ -165,7 +165,7 @@ function $e(e) {
|
|
|
165
165
|
}
|
|
166
166
|
// src/components/blockquote/blockquote.tsx
|
|
167
167
|
var O = "__SET_SLOT_BLOCKQUOTE_QUOTE__", k = "__SET_SLOT_BLOCKQUOTE_ATTRIBUTION__";
|
|
168
|
-
function
|
|
168
|
+
function $e(e) {
|
|
169
169
|
let { align: t, attribution: n, id: r, measured: i, quote: a, responsive: o, size: s, ...c } = e;
|
|
170
170
|
return E(u({
|
|
171
171
|
align: t,
|
|
@@ -182,7 +182,7 @@ function et(e) {
|
|
|
182
182
|
}
|
|
183
183
|
// src/components/box/box.tsx
|
|
184
184
|
var A = "__SET_SLOT_BOX_CHILDREN__";
|
|
185
|
-
function
|
|
185
|
+
function et(e) {
|
|
186
186
|
let { background: t, border: n, children: r, id: i, paddingBlock: a, paddingInline: o, radius: s, responsive: c, surface: l, ...u } = e, f = r != null && r !== !1;
|
|
187
187
|
return E(d({
|
|
188
188
|
background: t,
|
|
@@ -197,12 +197,12 @@ function tt(e) {
|
|
|
197
197
|
}), D(u), { ...f ? { [A]: r } : {} });
|
|
198
198
|
}
|
|
199
199
|
// src/components/button/button.tsx
|
|
200
|
-
function
|
|
200
|
+
function tt(e) {
|
|
201
201
|
return E(f(e), D(e));
|
|
202
202
|
}
|
|
203
203
|
// src/components/card/card.tsx
|
|
204
204
|
var j = "__SET_SLOT_CARD_DESCRIPTION__", M = "__SET_SLOT_CARD_NOTE__";
|
|
205
|
-
function
|
|
205
|
+
function nt(e) {
|
|
206
206
|
let { description: t, headingLevel: n, href: r, id: i, note: a, surface: o, title: s, ...c } = e, l = a != null && a !== !1;
|
|
207
207
|
return E(p({
|
|
208
208
|
description: j,
|
|
@@ -218,12 +218,12 @@ function rt(e) {
|
|
|
218
218
|
});
|
|
219
219
|
}
|
|
220
220
|
// src/components/checkbox/checkbox.tsx
|
|
221
|
-
function
|
|
221
|
+
function rt(e) {
|
|
222
222
|
return E(m(e), D(e));
|
|
223
223
|
}
|
|
224
224
|
// src/components/container/container.tsx
|
|
225
225
|
var N = "__SET_SLOT_CONTAINER_CHILDREN__";
|
|
226
|
-
function
|
|
226
|
+
function it(e) {
|
|
227
227
|
let { children: t, gutter: n, id: r, maxInlineSize: i, ...a } = e, o = t != null && t !== !1;
|
|
228
228
|
return E(h({
|
|
229
229
|
children: o ? N : void 0,
|
|
@@ -234,7 +234,7 @@ function at(e) {
|
|
|
234
234
|
}
|
|
235
235
|
// src/components/details/details.tsx
|
|
236
236
|
var P = "__SET_SLOT_DETAILS_CHILDREN__";
|
|
237
|
-
function
|
|
237
|
+
function at(e) {
|
|
238
238
|
let { children: t, id: n, inlineSize: r, open: i, summary: a, ...o } = e, s = t != null && t !== !1;
|
|
239
239
|
return E(g({
|
|
240
240
|
children: s ? P : void 0,
|
|
@@ -246,7 +246,7 @@ function ot(e) {
|
|
|
246
246
|
}
|
|
247
247
|
// src/components/dither/dither.tsx
|
|
248
248
|
var F = "__SET_SLOT_DITHER_CHILDREN__";
|
|
249
|
-
function
|
|
249
|
+
function ot(e) {
|
|
250
250
|
let { aspectRatio: t, blockSize: n, children: r, density: i, id: a, inlineSize: o, ramp: s, cell: c, tone: l, ...u } = e, d = r != null && r !== !1;
|
|
251
251
|
return E(_({
|
|
252
252
|
aspectRatio: t,
|
|
@@ -261,16 +261,16 @@ function st(e) {
|
|
|
261
261
|
}), D(u), { ...d ? { [F]: r } : {} });
|
|
262
262
|
}
|
|
263
263
|
// src/components/divider/divider.tsx
|
|
264
|
-
function
|
|
264
|
+
function st(e) {
|
|
265
265
|
return E(v(e), D(e));
|
|
266
266
|
}
|
|
267
267
|
// src/components/expander/expander.tsx
|
|
268
|
-
function
|
|
268
|
+
function ct(e) {
|
|
269
269
|
return E(ee(e), D(e));
|
|
270
270
|
}
|
|
271
271
|
// src/components/fieldset/fieldset.tsx
|
|
272
272
|
var I = "__SET_SLOT_FIELDSET_CHILDREN__";
|
|
273
|
-
function
|
|
273
|
+
function lt(e) {
|
|
274
274
|
let { children: t, description: n, disabled: r, id: i, invalid: a, legend: o, inlineSize: s, ...c } = e, l = t != null && t !== !1;
|
|
275
275
|
return E(te({
|
|
276
276
|
children: l ? I : void 0,
|
|
@@ -284,7 +284,7 @@ function ut(e) {
|
|
|
284
284
|
}
|
|
285
285
|
// src/components/figure/figure.tsx
|
|
286
286
|
var L = "__SET_SLOT_FIGURE_CHILDREN__", R = "__SET_SLOT_FIGURE_CAPTION__";
|
|
287
|
-
function
|
|
287
|
+
function ut(e) {
|
|
288
288
|
let { align: t, caption: n, children: r, id: i, inlineSize: a, responsive: o, ...s } = e;
|
|
289
289
|
return E(ne({
|
|
290
290
|
align: t,
|
|
@@ -300,7 +300,7 @@ function dt(e) {
|
|
|
300
300
|
}
|
|
301
301
|
// src/components/grid/grid.tsx
|
|
302
302
|
var z = "__SET_SLOT_GRID_CHILDREN__";
|
|
303
|
-
function
|
|
303
|
+
function dt(e) {
|
|
304
304
|
let { children: t, gap: n, id: r, responsiveRowGap: i, ...a } = e, o = t != null && t !== !1;
|
|
305
305
|
return E(re({
|
|
306
306
|
children: o ? z : void 0,
|
|
@@ -310,11 +310,11 @@ function ft(e) {
|
|
|
310
310
|
}), D(a), { ...o ? { [z]: t } : {} });
|
|
311
311
|
}
|
|
312
312
|
// src/components/grid-item/grid-item.tsx
|
|
313
|
-
var
|
|
314
|
-
function
|
|
313
|
+
var ft = "__SET_SLOT_GRID_ITEM_CHILDREN__";
|
|
314
|
+
function pt(e) {
|
|
315
315
|
let { children: t, align: n, justify: r, colSpan: i, colStart: a, id: o, rowSpan: s, rowSpanNarrow: c, rowSpanWide: l, rowStart: u, rowStartNarrow: d, rowStartWide: f, colSpanNarrow: p, colStartNarrow: m, colSpanWide: h, colStartWide: g, ..._ } = e, v = t != null && t !== !1;
|
|
316
316
|
return E(ie({
|
|
317
|
-
children: v ?
|
|
317
|
+
children: v ? ft : void 0,
|
|
318
318
|
align: n,
|
|
319
319
|
justify: r,
|
|
320
320
|
colSpan: i,
|
|
@@ -330,11 +330,11 @@ function mt(e) {
|
|
|
330
330
|
colStartNarrow: m,
|
|
331
331
|
colSpanWide: h,
|
|
332
332
|
colStartWide: g
|
|
333
|
-
}), D(_), { ...v ? { [
|
|
333
|
+
}), D(_), { ...v ? { [ft]: t } : {} });
|
|
334
334
|
}
|
|
335
335
|
// src/components/heading/heading.tsx
|
|
336
336
|
var B = "__SET_SLOT_HEADING_CHILDREN__";
|
|
337
|
-
function
|
|
337
|
+
function mt(e) {
|
|
338
338
|
let { align: t, children: n, id: r, level: i, linkVisited: a, opticalAlign: o, responsive: s, size: c, ...l } = e;
|
|
339
339
|
return E(ae({
|
|
340
340
|
align: t,
|
|
@@ -348,18 +348,18 @@ function ht(e) {
|
|
|
348
348
|
}), D(l), { [B]: n });
|
|
349
349
|
}
|
|
350
350
|
// src/components/icon/icon.tsx
|
|
351
|
-
function
|
|
351
|
+
function ht(e) {
|
|
352
352
|
return E(oe(e), D(e));
|
|
353
353
|
}
|
|
354
354
|
// src/components/image/image.tsx
|
|
355
|
-
function
|
|
355
|
+
function gt(e) {
|
|
356
356
|
return S(() => {
|
|
357
|
-
|
|
357
|
+
Ne();
|
|
358
358
|
}, []), E(se(e), D(e));
|
|
359
359
|
}
|
|
360
360
|
// src/components/inline/inline.tsx
|
|
361
361
|
var V = "__SET_SLOT_INLINE_CHILDREN__";
|
|
362
|
-
function
|
|
362
|
+
function _t(e) {
|
|
363
363
|
let { as: t, align: n, children: r, gap: i, id: a, justify: o, nowrap: s, ...c } = e, l = r != null && r !== !1;
|
|
364
364
|
return E(ce({
|
|
365
365
|
as: t,
|
|
@@ -372,17 +372,17 @@ function vt(e) {
|
|
|
372
372
|
}), D(c), { ...l ? { [V]: r } : {} });
|
|
373
373
|
}
|
|
374
374
|
// src/components/input/input.tsx
|
|
375
|
-
function
|
|
375
|
+
function vt(e) {
|
|
376
376
|
return E(le(e), D(e));
|
|
377
377
|
}
|
|
378
378
|
// src/components/lightswitch/lightswitch.tsx
|
|
379
|
-
function
|
|
379
|
+
function yt(e, t) {
|
|
380
380
|
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function bt(e) {
|
|
383
383
|
let { onChange: t, ref: n, ...r } = e;
|
|
384
384
|
S(() => {
|
|
385
|
-
|
|
385
|
+
Pe();
|
|
386
386
|
}, []);
|
|
387
387
|
let a = C(null);
|
|
388
388
|
S(() => {
|
|
@@ -390,7 +390,7 @@ function xt(e) {
|
|
|
390
390
|
if (e && t) return e.addEventListener(i, t), () => e.removeEventListener(i, t);
|
|
391
391
|
}, [t]);
|
|
392
392
|
let o = x((e) => {
|
|
393
|
-
a.current = e,
|
|
393
|
+
a.current = e, yt(n, e);
|
|
394
394
|
}, [n]);
|
|
395
395
|
return E(ue(e), {
|
|
396
396
|
...D(r),
|
|
@@ -399,7 +399,7 @@ function xt(e) {
|
|
|
399
399
|
}
|
|
400
400
|
// src/components/link/link.tsx
|
|
401
401
|
var H = "__SET_SLOT_LINK_ICON__";
|
|
402
|
-
function
|
|
402
|
+
function xt(e) {
|
|
403
403
|
let { appearance: t, current: n, download: r, href: i, id: a, icon: o, iconPlacement: s, label: c, labelVisibility: l, rel: u, size: d, target: f, tone: p, underline: m, ...h } = e, g = o != null && o !== !1;
|
|
404
404
|
return E(de({
|
|
405
405
|
appearance: t,
|
|
@@ -419,17 +419,17 @@ function St(e) {
|
|
|
419
419
|
}), D(h), { ...g ? { [H]: o } : {} });
|
|
420
420
|
}
|
|
421
421
|
// src/components/logo/logo.tsx
|
|
422
|
-
function
|
|
422
|
+
function St(e) {
|
|
423
423
|
return E(fe(e), D(e));
|
|
424
424
|
}
|
|
425
425
|
// src/components/menu/menu.tsx
|
|
426
|
-
function
|
|
426
|
+
function Ct(e, t) {
|
|
427
427
|
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
428
428
|
}
|
|
429
|
-
function
|
|
429
|
+
function wt(e) {
|
|
430
430
|
let { onChoose: t, ref: n, ...r } = e;
|
|
431
431
|
S(() => {
|
|
432
|
-
|
|
432
|
+
Fe();
|
|
433
433
|
}, []);
|
|
434
434
|
let i = C(null);
|
|
435
435
|
S(() => {
|
|
@@ -437,7 +437,7 @@ function Tt(e) {
|
|
|
437
437
|
if (e && t) return e.addEventListener(a, t), () => e.removeEventListener(a, t);
|
|
438
438
|
}, [t]);
|
|
439
439
|
let o = x((e) => {
|
|
440
|
-
i.current = e,
|
|
440
|
+
i.current = e, Ct(n, e);
|
|
441
441
|
}, [n]);
|
|
442
442
|
return E(pe(e), {
|
|
443
443
|
...D(r),
|
|
@@ -445,79 +445,71 @@ function Tt(e) {
|
|
|
445
445
|
});
|
|
446
446
|
}
|
|
447
447
|
// src/components/nav/nav.tsx
|
|
448
|
-
function
|
|
448
|
+
function Tt(e) {
|
|
449
449
|
return S(() => {
|
|
450
|
-
|
|
450
|
+
Ie();
|
|
451
451
|
}, []), E(me(e), D(e));
|
|
452
452
|
}
|
|
453
453
|
// src/components/page/page.tsx
|
|
454
454
|
var U = "__SET_SLOT_PAGE_BANNER__", W = "__SET_SLOT_PAGE_HEADER__", G = "__SET_SLOT_PAGE_CHILDREN__", K = "__SET_SLOT_PAGE_FOOTER__";
|
|
455
|
-
function
|
|
456
|
-
let { banner: t, children: n, centerMain: r, header: i,
|
|
455
|
+
function Et(e) {
|
|
456
|
+
let { banner: t, children: n, centerMain: r, header: i, headerBackground: a, headerBorder: o, headerContentTheme: s, headerSize: c, headerSticky: l, headerSurface: u, id: d, footer: f, ...p } = e, m = t != null && t !== !1, h = n != null && n !== !1;
|
|
457
457
|
return E(he({
|
|
458
|
-
banner:
|
|
459
|
-
children:
|
|
458
|
+
banner: m ? U : void 0,
|
|
459
|
+
children: h ? G : void 0,
|
|
460
460
|
centerMain: r,
|
|
461
461
|
header: W,
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
462
|
+
headerBackground: a,
|
|
463
|
+
headerBorder: o,
|
|
464
|
+
headerContentTheme: s,
|
|
465
|
+
headerSize: c,
|
|
466
|
+
headerSticky: l,
|
|
467
|
+
headerSurface: u,
|
|
468
|
+
id: d,
|
|
466
469
|
footer: K
|
|
467
|
-
}), D(
|
|
468
|
-
...
|
|
470
|
+
}), D(p), {
|
|
471
|
+
...m ? { [U]: t } : {},
|
|
469
472
|
[W]: i,
|
|
470
|
-
...
|
|
471
|
-
[K]:
|
|
473
|
+
...h ? { [G]: n } : {},
|
|
474
|
+
[K]: f
|
|
472
475
|
});
|
|
473
476
|
}
|
|
474
|
-
// src/components/panel/panel.tsx
|
|
475
|
-
var q = "__SET_SLOT_PANEL_CHILDREN__";
|
|
476
|
-
function Ot(e) {
|
|
477
|
-
let { children: t, id: n, padding: r, surface: i, ...a } = e, o = t != null && t !== !1;
|
|
478
|
-
return E(ge({
|
|
479
|
-
children: o ? q : void 0,
|
|
480
|
-
id: n,
|
|
481
|
-
padding: r,
|
|
482
|
-
surface: i
|
|
483
|
-
}), D(a), { ...o ? { [q]: t } : {} });
|
|
484
|
-
}
|
|
485
477
|
// src/components/pattern/pattern.tsx
|
|
486
|
-
var
|
|
487
|
-
function
|
|
478
|
+
var q = "__SET_SLOT_PATTERN_CHILDREN__";
|
|
479
|
+
function Dt(e) {
|
|
488
480
|
let { aspectRatio: t, blockSize: n, children: r, id: i, inlineSize: a, tone: o, cell: s, variant: c, ...l } = e, u = r != null && r !== !1;
|
|
489
|
-
return E(
|
|
481
|
+
return E(ge({
|
|
490
482
|
aspectRatio: t,
|
|
491
483
|
blockSize: n,
|
|
492
|
-
children: u ?
|
|
484
|
+
children: u ? q : void 0,
|
|
493
485
|
id: i,
|
|
494
486
|
inlineSize: a,
|
|
495
487
|
tone: o,
|
|
496
488
|
cell: s,
|
|
497
489
|
variant: c
|
|
498
|
-
}), D(l), { ...u ? { [
|
|
490
|
+
}), D(l), { ...u ? { [q]: r } : {} });
|
|
499
491
|
}
|
|
500
492
|
// src/components/poster/poster.tsx
|
|
501
|
-
var
|
|
502
|
-
function
|
|
493
|
+
var J = "__SET_SLOT_POSTER_MEDIA__", Y = "__SET_SLOT_POSTER_CHILDREN__";
|
|
494
|
+
function Ot(e) {
|
|
503
495
|
let { children: t, contentTheme: n, id: r, media: i, surface: a, ...o } = e, s = t != null && t !== !1;
|
|
504
|
-
return E(
|
|
505
|
-
children: s ?
|
|
496
|
+
return E(_e({
|
|
497
|
+
children: s ? Y : void 0,
|
|
506
498
|
contentTheme: n,
|
|
507
499
|
id: r,
|
|
508
|
-
media:
|
|
500
|
+
media: J,
|
|
509
501
|
surface: a
|
|
510
502
|
}), D(o), {
|
|
511
|
-
[
|
|
512
|
-
...s ? { [
|
|
503
|
+
[J]: i,
|
|
504
|
+
...s ? { [Y]: t } : {}
|
|
513
505
|
});
|
|
514
506
|
}
|
|
515
507
|
// src/components/prose/prose.tsx
|
|
516
|
-
var
|
|
517
|
-
function
|
|
508
|
+
var X = "__SET_SLOT_PROSE_CHILDREN__";
|
|
509
|
+
function kt(e) {
|
|
518
510
|
let { children: t, align: n, hangingPunctuation: r, id: i, linkVisited: a, measured: o, monospaced: s, responsive: c, ...l } = e;
|
|
519
|
-
return E(
|
|
520
|
-
children:
|
|
511
|
+
return E(ve({
|
|
512
|
+
children: X,
|
|
521
513
|
align: n,
|
|
522
514
|
hangingPunctuation: r,
|
|
523
515
|
id: i,
|
|
@@ -525,92 +517,92 @@ function jt(e) {
|
|
|
525
517
|
measured: o,
|
|
526
518
|
monospaced: s,
|
|
527
519
|
responsive: c
|
|
528
|
-
}), D(l), { [
|
|
520
|
+
}), D(l), { [X]: t });
|
|
529
521
|
}
|
|
530
522
|
// src/components/radios/radios.tsx
|
|
531
|
-
function
|
|
532
|
-
return E(
|
|
523
|
+
function At(e) {
|
|
524
|
+
return E(ye(e), D(e));
|
|
533
525
|
}
|
|
534
526
|
// src/components/range/range.tsx
|
|
535
|
-
function
|
|
527
|
+
function jt(e) {
|
|
536
528
|
return S(() => {
|
|
537
|
-
|
|
538
|
-
}, []), E(
|
|
529
|
+
Le();
|
|
530
|
+
}, []), E(be(e), D(e));
|
|
539
531
|
}
|
|
540
532
|
// src/components/root/root.tsx
|
|
541
|
-
var
|
|
542
|
-
function
|
|
533
|
+
var Z = "__SET_SLOT_ROOT_CHILDREN__";
|
|
534
|
+
function Mt(e) {
|
|
543
535
|
let { appOverscrollBehavior: t, appRoot: n, brand: r, children: i, dir: a, id: o, lang: s, theme: c, ...l } = e;
|
|
544
|
-
return E(
|
|
536
|
+
return E(xe({
|
|
545
537
|
appOverscrollBehavior: t,
|
|
546
538
|
appRoot: n,
|
|
547
539
|
brand: r,
|
|
548
|
-
children:
|
|
540
|
+
children: Z,
|
|
549
541
|
dir: a,
|
|
550
542
|
id: o,
|
|
551
543
|
lang: s,
|
|
552
544
|
theme: c
|
|
553
|
-
}), D(l), { [
|
|
545
|
+
}), D(l), { [Z]: i });
|
|
554
546
|
}
|
|
555
547
|
// src/components/sidebar/sidebar.tsx
|
|
556
|
-
var
|
|
557
|
-
function
|
|
558
|
-
let { aboveNotebook: t, buttonSize: n, children: r, collapseLabel: i, footer: a, header: o, id: s, surface: c, triggerLabel: l, ...u } = e, d = o != null && o !== !1, f = r != null && r !== !1, p = a != null && a !== !1, m =
|
|
548
|
+
var Q = "__SET_SLOT_SIDEBAR_HEADER__", Nt = "__SET_SLOT_SIDEBAR_CHILDREN__", Pt = "__SET_SLOT_SIDEBAR_FOOTER__";
|
|
549
|
+
function Ft(e) {
|
|
550
|
+
let { aboveNotebook: t, buttonSize: n, children: r, collapseLabel: i, footer: a, header: o, id: s, surface: c, triggerLabel: l, ...u } = e, d = o != null && o !== !1, f = r != null && r !== !1, p = a != null && a !== !1, m = Se({
|
|
559
551
|
aboveNotebook: t,
|
|
560
552
|
buttonSize: n,
|
|
561
|
-
children: f ?
|
|
553
|
+
children: f ? Nt : void 0,
|
|
562
554
|
collapseLabel: i,
|
|
563
|
-
footer: p ?
|
|
564
|
-
header: d ?
|
|
555
|
+
footer: p ? Pt : void 0,
|
|
556
|
+
header: d ? Q : void 0,
|
|
565
557
|
id: s,
|
|
566
558
|
surface: c,
|
|
567
559
|
triggerLabel: l
|
|
568
560
|
});
|
|
569
561
|
return S(() => {
|
|
570
|
-
|
|
562
|
+
Re();
|
|
571
563
|
}, []), E(m, D(u), {
|
|
572
|
-
...d ? { [
|
|
573
|
-
...f ? { [
|
|
574
|
-
...p ? { [
|
|
564
|
+
...d ? { [Q]: o } : {},
|
|
565
|
+
...f ? { [Nt]: r } : {},
|
|
566
|
+
...p ? { [Pt]: a } : {}
|
|
575
567
|
});
|
|
576
568
|
}
|
|
577
569
|
// src/components/spinner/spinner.tsx
|
|
578
|
-
function
|
|
579
|
-
return E(
|
|
570
|
+
function It(e) {
|
|
571
|
+
return E(Ce(e), D(e));
|
|
580
572
|
}
|
|
581
573
|
// src/components/stack/stack.tsx
|
|
582
|
-
var
|
|
583
|
-
function
|
|
574
|
+
var Lt = "__SET_SLOT_STACK_CHILDREN__";
|
|
575
|
+
function Rt(e) {
|
|
584
576
|
let { align: t, as: n, children: r, gap: i, id: a, responsive: o, ...s } = e, c = r != null && r !== !1;
|
|
585
|
-
return E(
|
|
577
|
+
return E(we({
|
|
586
578
|
align: t,
|
|
587
579
|
as: n,
|
|
588
|
-
children: c ?
|
|
580
|
+
children: c ? Lt : void 0,
|
|
589
581
|
gap: i,
|
|
590
582
|
id: a,
|
|
591
583
|
responsive: o
|
|
592
|
-
}), D(s), { ...c ? { [
|
|
584
|
+
}), D(s), { ...c ? { [Lt]: r } : {} });
|
|
593
585
|
}
|
|
594
586
|
// src/components/surface/surface.tsx
|
|
595
|
-
var
|
|
596
|
-
function
|
|
587
|
+
var zt = "__SET_SLOT_SURFACE_CHILDREN__";
|
|
588
|
+
function Bt(e) {
|
|
597
589
|
let { children: t, contentTheme: n, id: r, variant: i, ...a } = e;
|
|
598
|
-
return E(
|
|
599
|
-
children:
|
|
590
|
+
return E(Te({
|
|
591
|
+
children: zt,
|
|
600
592
|
contentTheme: n,
|
|
601
593
|
id: r,
|
|
602
594
|
variant: i
|
|
603
|
-
}), D(a), { [
|
|
595
|
+
}), D(a), { [zt]: t });
|
|
604
596
|
}
|
|
605
597
|
// src/components/switch/switch.tsx
|
|
606
|
-
function
|
|
607
|
-
return E(
|
|
598
|
+
function Vt(e) {
|
|
599
|
+
return E(Ee(e), D(e));
|
|
608
600
|
}
|
|
609
601
|
// src/components/text/text.tsx
|
|
610
602
|
var $ = "__SET_SLOT_TEXT_CHILDREN__";
|
|
611
|
-
function
|
|
603
|
+
function Ht(e) {
|
|
612
604
|
let { as: t, children: n, id: r, linkVisited: i, responsive: a, align: o, measured: s, monospaced: c, size: l, tone: u, ...d } = e;
|
|
613
|
-
return E(
|
|
605
|
+
return E(De({
|
|
614
606
|
as: t,
|
|
615
607
|
children: $,
|
|
616
608
|
id: r,
|
|
@@ -624,15 +616,15 @@ function Gt(e) {
|
|
|
624
616
|
}), D(d), { [$]: n });
|
|
625
617
|
}
|
|
626
618
|
// src/components/textarea/textarea.tsx
|
|
627
|
-
function
|
|
628
|
-
return E(
|
|
619
|
+
function Ut(e) {
|
|
620
|
+
return E(Oe(e), D(e));
|
|
629
621
|
}
|
|
630
622
|
// src/components/video/video.tsx
|
|
631
|
-
function
|
|
623
|
+
function Wt(e) {
|
|
632
624
|
return S(() => {
|
|
633
|
-
|
|
634
|
-
}, []), E(
|
|
625
|
+
ze();
|
|
626
|
+
}, []), E(ke(e), D(e));
|
|
635
627
|
}
|
|
636
|
-
export {
|
|
628
|
+
export { Je as Alert, Ye as Avatar, Xe as Badge, Qe as Banner, $e as Blockquote, et as Box, tt as Button, nt as Card, rt as Checkbox, it as Container, at as Details, ot as Dither, st as Divider, ct as Expander, lt as Fieldset, ut as Figure, dt as Grid, pt as GridItem, mt as Heading, ht as Icon, gt as Image, _t as Inline, vt as Input, bt as Lightswitch, xt as Link, St as Logo, wt as Menu, Tt as Nav, Et as Page, Dt as Pattern, Ot as Poster, kt as Prose, At as Radios, jt as Range, Mt as Root, Ft as Sidebar, It as Spinner, Rt as Stack, Bt as Surface, Vt as Switch, Ht as Text, Ut as Textarea, Wt as Video, Me as defineSetAll };
|
|
637
629
|
|
|
638
630
|
//# sourceMappingURL=index.js.map
|