@monospaced/set-react 0.23.0 → 0.24.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/dither/dither.d.ts +8 -0
- package/dist/components/dither/dither.d.ts.map +1 -0
- package/dist/components/grid/grid.d.ts.map +1 -1
- package/dist/components/pattern/pattern.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +195 -175
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
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,
|
|
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, buildSetPanel as ge, buildSetPattern as _e, buildSetPoster as ve, buildSetProse as ye, buildSetRadios as be, buildSetRange as xe, buildSetRoot as Se, buildSetSidebar as Ce, buildSetSpinner as we, buildSetStack as Te, buildSetSurface as Ee, buildSetSwitch as De, buildSetText as Oe, buildSetTextarea as ke, buildSetVideo as Ae, defineSetAlert as je, defineSetBanner as Me, defineSetComponents as Ne, defineSetImage as Pe, defineSetLightswitch as Fe, defineSetMenu as Ie, defineSetNav as Le, defineSetRange as Re, defineSetSidebar as ze, defineSetVideo as Be, serializeSetNode as Ve } 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 He = {
|
|
5
5
|
autocomplete: "autoComplete",
|
|
6
6
|
class: "className",
|
|
7
7
|
for: "htmlFor",
|
|
@@ -12,30 +12,30 @@ var Ve = {
|
|
|
12
12
|
"stroke-linejoin": "strokeLinejoin",
|
|
13
13
|
"stroke-width": "strokeWidth",
|
|
14
14
|
tabindex: "tabIndex"
|
|
15
|
-
},
|
|
15
|
+
}, Ue = /* @__PURE__ */ new Set([
|
|
16
16
|
"input",
|
|
17
17
|
"textarea",
|
|
18
18
|
"select"
|
|
19
19
|
]);
|
|
20
|
-
function
|
|
20
|
+
function We(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 = He[n] ?? n;
|
|
25
25
|
t[e] = r === !0 && n.startsWith("data-") ? "" : r;
|
|
26
26
|
}
|
|
27
27
|
return t;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function Ge(e) {
|
|
30
30
|
let t = [], n = (e) => {
|
|
31
31
|
if (e.kind === "element") {
|
|
32
|
-
|
|
32
|
+
Ue.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 Ke(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 Ge(e) {
|
|
|
47
47
|
primaryRestExtras: n
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function qe(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
|
+
...We(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(Ve).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, qe(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 = Ge(e), i = r.length > 0 ? Ke(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 Je(e, t) {
|
|
110
110
|
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function Ye(n) {
|
|
113
113
|
let { onBeforeDismiss: r, onDismiss: i, ref: a, ...s } = n;
|
|
114
114
|
S(() => {
|
|
115
|
-
|
|
115
|
+
je();
|
|
116
116
|
}, []);
|
|
117
117
|
let c = C(null);
|
|
118
118
|
S(() => {
|
|
@@ -123,7 +123,7 @@ function Je(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, Je(a, e);
|
|
127
127
|
}, [a]);
|
|
128
128
|
return E(o(n), {
|
|
129
129
|
...D(s),
|
|
@@ -131,21 +131,21 @@ function Je(n) {
|
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
// src/components/avatar/avatar.tsx
|
|
134
|
-
function
|
|
134
|
+
function Xe(e) {
|
|
135
135
|
return E(s(e), D(e));
|
|
136
136
|
}
|
|
137
137
|
// src/components/badge/badge.tsx
|
|
138
|
-
function
|
|
138
|
+
function Ze(e) {
|
|
139
139
|
return E(c(e), D(e));
|
|
140
140
|
}
|
|
141
141
|
// src/components/banner/banner.tsx
|
|
142
|
-
function
|
|
142
|
+
function Qe(e, t) {
|
|
143
143
|
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function $e(e) {
|
|
146
146
|
let { onBeforeDismiss: t, onDismiss: i, ref: a, ...o } = e;
|
|
147
147
|
S(() => {
|
|
148
|
-
|
|
148
|
+
Me();
|
|
149
149
|
}, []);
|
|
150
150
|
let s = C(null);
|
|
151
151
|
S(() => {
|
|
@@ -156,7 +156,7 @@ function Qe(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, Qe(a, e);
|
|
160
160
|
}, [a]);
|
|
161
161
|
return E(l(e), {
|
|
162
162
|
...D(o),
|
|
@@ -165,7 +165,7 @@ function Qe(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 et(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 $e(e) {
|
|
|
182
182
|
}
|
|
183
183
|
// src/components/box/box.tsx
|
|
184
184
|
var A = "__SET_SLOT_BOX_CHILDREN__";
|
|
185
|
-
function
|
|
185
|
+
function tt(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 et(e) {
|
|
|
197
197
|
}), D(u), { ...f ? { [A]: r } : {} });
|
|
198
198
|
}
|
|
199
199
|
// src/components/button/button.tsx
|
|
200
|
-
function
|
|
200
|
+
function nt(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 rt(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 nt(e) {
|
|
|
218
218
|
});
|
|
219
219
|
}
|
|
220
220
|
// src/components/checkbox/checkbox.tsx
|
|
221
|
-
function
|
|
221
|
+
function it(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 at(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 it(e) {
|
|
|
234
234
|
}
|
|
235
235
|
// src/components/details/details.tsx
|
|
236
236
|
var P = "__SET_SLOT_DETAILS_CHILDREN__";
|
|
237
|
-
function
|
|
237
|
+
function ot(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,
|
|
@@ -244,60 +244,77 @@ function at(e) {
|
|
|
244
244
|
summary: a
|
|
245
245
|
}), D(o), { ...s ? { [P]: t } : {} });
|
|
246
246
|
}
|
|
247
|
+
// src/components/dither/dither.tsx
|
|
248
|
+
var F = "__SET_SLOT_DITHER_CHILDREN__";
|
|
249
|
+
function st(e) {
|
|
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
|
+
return E(_({
|
|
252
|
+
aspectRatio: t,
|
|
253
|
+
blockSize: n,
|
|
254
|
+
children: d ? F : void 0,
|
|
255
|
+
density: i,
|
|
256
|
+
id: a,
|
|
257
|
+
inlineSize: o,
|
|
258
|
+
ramp: s,
|
|
259
|
+
cell: c,
|
|
260
|
+
tone: l
|
|
261
|
+
}), D(u), { ...d ? { [F]: r } : {} });
|
|
262
|
+
}
|
|
247
263
|
// src/components/divider/divider.tsx
|
|
248
|
-
function
|
|
249
|
-
return E(
|
|
264
|
+
function ct(e) {
|
|
265
|
+
return E(v(e), D(e));
|
|
250
266
|
}
|
|
251
267
|
// src/components/expander/expander.tsx
|
|
252
|
-
function
|
|
253
|
-
return E(
|
|
268
|
+
function lt(e) {
|
|
269
|
+
return E(ee(e), D(e));
|
|
254
270
|
}
|
|
255
271
|
// src/components/fieldset/fieldset.tsx
|
|
256
|
-
var
|
|
257
|
-
function
|
|
272
|
+
var I = "__SET_SLOT_FIELDSET_CHILDREN__";
|
|
273
|
+
function ut(e) {
|
|
258
274
|
let { children: t, description: n, disabled: r, id: i, invalid: a, legend: o, inlineSize: s, ...c } = e, l = t != null && t !== !1;
|
|
259
|
-
return E(
|
|
260
|
-
children: l ?
|
|
275
|
+
return E(te({
|
|
276
|
+
children: l ? I : void 0,
|
|
261
277
|
description: n,
|
|
262
278
|
disabled: r,
|
|
263
279
|
id: i,
|
|
264
280
|
invalid: a,
|
|
265
281
|
legend: o,
|
|
266
282
|
inlineSize: s
|
|
267
|
-
}), D(c), { ...l ? { [
|
|
283
|
+
}), D(c), { ...l ? { [I]: t } : {} });
|
|
268
284
|
}
|
|
269
285
|
// src/components/figure/figure.tsx
|
|
270
|
-
var
|
|
271
|
-
function
|
|
286
|
+
var L = "__SET_SLOT_FIGURE_CHILDREN__", R = "__SET_SLOT_FIGURE_CAPTION__";
|
|
287
|
+
function dt(e) {
|
|
272
288
|
let { align: t, caption: n, children: r, id: i, inlineSize: a, responsive: o, ...s } = e;
|
|
273
|
-
return E(
|
|
289
|
+
return E(ne({
|
|
274
290
|
align: t,
|
|
275
|
-
caption:
|
|
276
|
-
children:
|
|
291
|
+
caption: R,
|
|
292
|
+
children: L,
|
|
277
293
|
id: i,
|
|
278
294
|
inlineSize: a,
|
|
279
295
|
responsive: o
|
|
280
296
|
}), D(s), {
|
|
281
|
-
[
|
|
282
|
-
[
|
|
297
|
+
[L]: r,
|
|
298
|
+
[R]: n
|
|
283
299
|
});
|
|
284
300
|
}
|
|
285
301
|
// src/components/grid/grid.tsx
|
|
286
|
-
var
|
|
287
|
-
function
|
|
288
|
-
let { children: t, gap: n, id: r,
|
|
289
|
-
return E(
|
|
290
|
-
children:
|
|
302
|
+
var z = "__SET_SLOT_GRID_CHILDREN__";
|
|
303
|
+
function ft(e) {
|
|
304
|
+
let { children: t, gap: n, id: r, responsiveRowGap: i, ...a } = e, o = t != null && t !== !1;
|
|
305
|
+
return E(re({
|
|
306
|
+
children: o ? z : void 0,
|
|
291
307
|
gap: n,
|
|
292
|
-
id: r
|
|
293
|
-
|
|
308
|
+
id: r,
|
|
309
|
+
responsiveRowGap: i
|
|
310
|
+
}), D(a), { ...o ? { [z]: t } : {} });
|
|
294
311
|
}
|
|
295
312
|
// src/components/grid-item/grid-item.tsx
|
|
296
|
-
var
|
|
297
|
-
function
|
|
313
|
+
var pt = "__SET_SLOT_GRID_ITEM_CHILDREN__";
|
|
314
|
+
function mt(e) {
|
|
298
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;
|
|
299
|
-
return E(
|
|
300
|
-
children: v ?
|
|
316
|
+
return E(ie({
|
|
317
|
+
children: v ? pt : void 0,
|
|
301
318
|
align: n,
|
|
302
319
|
justify: r,
|
|
303
320
|
colSpan: i,
|
|
@@ -313,59 +330,59 @@ function dt(e) {
|
|
|
313
330
|
colStartNarrow: m,
|
|
314
331
|
colSpanWide: h,
|
|
315
332
|
colStartWide: g
|
|
316
|
-
}), D(_), { ...v ? { [
|
|
333
|
+
}), D(_), { ...v ? { [pt]: t } : {} });
|
|
317
334
|
}
|
|
318
335
|
// src/components/heading/heading.tsx
|
|
319
|
-
var
|
|
320
|
-
function
|
|
336
|
+
var B = "__SET_SLOT_HEADING_CHILDREN__";
|
|
337
|
+
function ht(e) {
|
|
321
338
|
let { align: t, children: n, id: r, level: i, linkVisited: a, opticalAlign: o, responsive: s, size: c, ...l } = e;
|
|
322
|
-
return E(
|
|
339
|
+
return E(ae({
|
|
323
340
|
align: t,
|
|
324
|
-
children:
|
|
341
|
+
children: B,
|
|
325
342
|
id: r,
|
|
326
343
|
level: i,
|
|
327
344
|
linkVisited: a,
|
|
328
345
|
opticalAlign: o,
|
|
329
346
|
responsive: s,
|
|
330
347
|
size: c
|
|
331
|
-
}), D(l), { [
|
|
348
|
+
}), D(l), { [B]: n });
|
|
332
349
|
}
|
|
333
350
|
// src/components/icon/icon.tsx
|
|
334
|
-
function
|
|
335
|
-
return E(
|
|
351
|
+
function gt(e) {
|
|
352
|
+
return E(oe(e), D(e));
|
|
336
353
|
}
|
|
337
354
|
// src/components/image/image.tsx
|
|
338
|
-
function
|
|
355
|
+
function _t(e) {
|
|
339
356
|
return S(() => {
|
|
340
|
-
|
|
341
|
-
}, []), E(
|
|
357
|
+
Pe();
|
|
358
|
+
}, []), E(se(e), D(e));
|
|
342
359
|
}
|
|
343
360
|
// src/components/inline/inline.tsx
|
|
344
|
-
var
|
|
345
|
-
function
|
|
361
|
+
var V = "__SET_SLOT_INLINE_CHILDREN__";
|
|
362
|
+
function vt(e) {
|
|
346
363
|
let { as: t, align: n, children: r, gap: i, id: a, justify: o, nowrap: s, ...c } = e, l = r != null && r !== !1;
|
|
347
|
-
return E(
|
|
364
|
+
return E(ce({
|
|
348
365
|
as: t,
|
|
349
366
|
align: n,
|
|
350
|
-
children: l ?
|
|
367
|
+
children: l ? V : void 0,
|
|
351
368
|
gap: i,
|
|
352
369
|
id: a,
|
|
353
370
|
justify: o,
|
|
354
371
|
nowrap: s
|
|
355
|
-
}), D(c), { ...l ? { [
|
|
372
|
+
}), D(c), { ...l ? { [V]: r } : {} });
|
|
356
373
|
}
|
|
357
374
|
// src/components/input/input.tsx
|
|
358
|
-
function
|
|
359
|
-
return E(
|
|
375
|
+
function yt(e) {
|
|
376
|
+
return E(le(e), D(e));
|
|
360
377
|
}
|
|
361
378
|
// src/components/lightswitch/lightswitch.tsx
|
|
362
|
-
function
|
|
379
|
+
function bt(e, t) {
|
|
363
380
|
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
364
381
|
}
|
|
365
|
-
function
|
|
382
|
+
function xt(e) {
|
|
366
383
|
let { onChange: t, ref: n, ...r } = e;
|
|
367
384
|
S(() => {
|
|
368
|
-
|
|
385
|
+
Fe();
|
|
369
386
|
}, []);
|
|
370
387
|
let a = C(null);
|
|
371
388
|
S(() => {
|
|
@@ -373,24 +390,24 @@ function yt(e) {
|
|
|
373
390
|
if (e && t) return e.addEventListener(i, t), () => e.removeEventListener(i, t);
|
|
374
391
|
}, [t]);
|
|
375
392
|
let o = x((e) => {
|
|
376
|
-
a.current = e,
|
|
393
|
+
a.current = e, bt(n, e);
|
|
377
394
|
}, [n]);
|
|
378
|
-
return E(
|
|
395
|
+
return E(ue(e), {
|
|
379
396
|
...D(r),
|
|
380
397
|
ref: o
|
|
381
398
|
});
|
|
382
399
|
}
|
|
383
400
|
// src/components/link/link.tsx
|
|
384
|
-
var
|
|
385
|
-
function
|
|
401
|
+
var H = "__SET_SLOT_LINK_ICON__";
|
|
402
|
+
function St(e) {
|
|
386
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;
|
|
387
|
-
return E(
|
|
404
|
+
return E(de({
|
|
388
405
|
appearance: t,
|
|
389
406
|
current: n,
|
|
390
407
|
download: r,
|
|
391
408
|
href: i,
|
|
392
409
|
id: a,
|
|
393
|
-
icon: g ?
|
|
410
|
+
icon: g ? H : void 0,
|
|
394
411
|
iconPlacement: s,
|
|
395
412
|
label: c,
|
|
396
413
|
labelVisibility: l,
|
|
@@ -399,20 +416,20 @@ function bt(e) {
|
|
|
399
416
|
target: f,
|
|
400
417
|
tone: p,
|
|
401
418
|
underline: m
|
|
402
|
-
}), D(h), { ...g ? { [
|
|
419
|
+
}), D(h), { ...g ? { [H]: o } : {} });
|
|
403
420
|
}
|
|
404
421
|
// src/components/logo/logo.tsx
|
|
405
|
-
function
|
|
406
|
-
return E(
|
|
422
|
+
function Ct(e) {
|
|
423
|
+
return E(fe(e), D(e));
|
|
407
424
|
}
|
|
408
425
|
// src/components/menu/menu.tsx
|
|
409
|
-
function
|
|
426
|
+
function wt(e, t) {
|
|
410
427
|
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
411
428
|
}
|
|
412
|
-
function
|
|
429
|
+
function Tt(e) {
|
|
413
430
|
let { onChoose: t, ref: n, ...r } = e;
|
|
414
431
|
S(() => {
|
|
415
|
-
|
|
432
|
+
Ie();
|
|
416
433
|
}, []);
|
|
417
434
|
let i = C(null);
|
|
418
435
|
S(() => {
|
|
@@ -420,84 +437,87 @@ function Ct(e) {
|
|
|
420
437
|
if (e && t) return e.addEventListener(a, t), () => e.removeEventListener(a, t);
|
|
421
438
|
}, [t]);
|
|
422
439
|
let o = x((e) => {
|
|
423
|
-
i.current = e,
|
|
440
|
+
i.current = e, wt(n, e);
|
|
424
441
|
}, [n]);
|
|
425
|
-
return E(
|
|
442
|
+
return E(pe(e), {
|
|
426
443
|
...D(r),
|
|
427
444
|
ref: o
|
|
428
445
|
});
|
|
429
446
|
}
|
|
430
447
|
// src/components/nav/nav.tsx
|
|
431
|
-
function
|
|
448
|
+
function Et(e) {
|
|
432
449
|
return S(() => {
|
|
433
|
-
|
|
434
|
-
}, []), E(
|
|
450
|
+
Le();
|
|
451
|
+
}, []), E(me(e), D(e));
|
|
435
452
|
}
|
|
436
453
|
// src/components/page/page.tsx
|
|
437
|
-
var
|
|
438
|
-
function
|
|
454
|
+
var U = "__SET_SLOT_PAGE_BANNER__", W = "__SET_SLOT_PAGE_HEADER__", G = "__SET_SLOT_PAGE_CHILDREN__", K = "__SET_SLOT_PAGE_FOOTER__";
|
|
455
|
+
function Dt(e) {
|
|
439
456
|
let { banner: t, children: n, centerMain: r, header: i, headerBorder: a, headerSize: o, id: s, stickyHeader: c, footer: l, ...u } = e, d = t != null && t !== !1, f = n != null && n !== !1;
|
|
440
|
-
return E(
|
|
441
|
-
banner: d ?
|
|
442
|
-
children: f ?
|
|
457
|
+
return E(he({
|
|
458
|
+
banner: d ? U : void 0,
|
|
459
|
+
children: f ? G : void 0,
|
|
443
460
|
centerMain: r,
|
|
444
|
-
header:
|
|
461
|
+
header: W,
|
|
445
462
|
headerBorder: a,
|
|
446
463
|
headerSize: o,
|
|
447
464
|
id: s,
|
|
448
465
|
stickyHeader: c,
|
|
449
|
-
footer:
|
|
466
|
+
footer: K
|
|
450
467
|
}), D(u), {
|
|
451
|
-
...d ? { [
|
|
452
|
-
[
|
|
453
|
-
...f ? { [
|
|
454
|
-
[
|
|
468
|
+
...d ? { [U]: t } : {},
|
|
469
|
+
[W]: i,
|
|
470
|
+
...f ? { [G]: n } : {},
|
|
471
|
+
[K]: l
|
|
455
472
|
});
|
|
456
473
|
}
|
|
457
474
|
// src/components/panel/panel.tsx
|
|
458
|
-
var
|
|
459
|
-
function
|
|
475
|
+
var q = "__SET_SLOT_PANEL_CHILDREN__";
|
|
476
|
+
function Ot(e) {
|
|
460
477
|
let { children: t, id: n, padding: r, surface: i, ...a } = e, o = t != null && t !== !1;
|
|
461
|
-
return E(
|
|
462
|
-
children: o ?
|
|
478
|
+
return E(ge({
|
|
479
|
+
children: o ? q : void 0,
|
|
463
480
|
id: n,
|
|
464
481
|
padding: r,
|
|
465
482
|
surface: i
|
|
466
|
-
}), D(a), { ...o ? { [
|
|
483
|
+
}), D(a), { ...o ? { [q]: t } : {} });
|
|
467
484
|
}
|
|
468
485
|
// src/components/pattern/pattern.tsx
|
|
469
|
-
var
|
|
470
|
-
function
|
|
471
|
-
let {
|
|
472
|
-
return E(
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
486
|
+
var J = "__SET_SLOT_PATTERN_CHILDREN__";
|
|
487
|
+
function kt(e) {
|
|
488
|
+
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(_e({
|
|
490
|
+
aspectRatio: t,
|
|
491
|
+
blockSize: n,
|
|
492
|
+
children: u ? J : void 0,
|
|
493
|
+
id: i,
|
|
494
|
+
inlineSize: a,
|
|
495
|
+
tone: o,
|
|
496
|
+
cell: s,
|
|
497
|
+
variant: c
|
|
498
|
+
}), D(l), { ...u ? { [J]: r } : {} });
|
|
479
499
|
}
|
|
480
500
|
// src/components/poster/poster.tsx
|
|
481
|
-
var
|
|
482
|
-
function
|
|
501
|
+
var Y = "__SET_SLOT_POSTER_MEDIA__", X = "__SET_SLOT_POSTER_CHILDREN__";
|
|
502
|
+
function At(e) {
|
|
483
503
|
let { children: t, contentTheme: n, id: r, media: i, surface: a, ...o } = e, s = t != null && t !== !1;
|
|
484
|
-
return E(
|
|
485
|
-
children: s ?
|
|
504
|
+
return E(ve({
|
|
505
|
+
children: s ? X : void 0,
|
|
486
506
|
contentTheme: n,
|
|
487
507
|
id: r,
|
|
488
|
-
media:
|
|
508
|
+
media: Y,
|
|
489
509
|
surface: a
|
|
490
510
|
}), D(o), {
|
|
491
|
-
[
|
|
492
|
-
...s ? { [
|
|
511
|
+
[Y]: i,
|
|
512
|
+
...s ? { [X]: t } : {}
|
|
493
513
|
});
|
|
494
514
|
}
|
|
495
515
|
// src/components/prose/prose.tsx
|
|
496
|
-
var
|
|
497
|
-
function
|
|
516
|
+
var Z = "__SET_SLOT_PROSE_CHILDREN__";
|
|
517
|
+
function jt(e) {
|
|
498
518
|
let { children: t, align: n, hangingPunctuation: r, id: i, linkVisited: a, measured: o, monospaced: s, responsive: c, ...l } = e;
|
|
499
|
-
return E(
|
|
500
|
-
children:
|
|
519
|
+
return E(ye({
|
|
520
|
+
children: Z,
|
|
501
521
|
align: n,
|
|
502
522
|
hangingPunctuation: r,
|
|
503
523
|
id: i,
|
|
@@ -505,92 +525,92 @@ function kt(e) {
|
|
|
505
525
|
measured: o,
|
|
506
526
|
monospaced: s,
|
|
507
527
|
responsive: c
|
|
508
|
-
}), D(l), { [
|
|
528
|
+
}), D(l), { [Z]: t });
|
|
509
529
|
}
|
|
510
530
|
// src/components/radios/radios.tsx
|
|
511
|
-
function
|
|
512
|
-
return E(
|
|
531
|
+
function Mt(e) {
|
|
532
|
+
return E(be(e), D(e));
|
|
513
533
|
}
|
|
514
534
|
// src/components/range/range.tsx
|
|
515
|
-
function
|
|
535
|
+
function Nt(e) {
|
|
516
536
|
return S(() => {
|
|
517
|
-
|
|
518
|
-
}, []), E(
|
|
537
|
+
Re();
|
|
538
|
+
}, []), E(xe(e), D(e));
|
|
519
539
|
}
|
|
520
540
|
// src/components/root/root.tsx
|
|
521
|
-
var
|
|
522
|
-
function
|
|
541
|
+
var Q = "__SET_SLOT_ROOT_CHILDREN__";
|
|
542
|
+
function Pt(e) {
|
|
523
543
|
let { appOverscrollBehavior: t, appRoot: n, brand: r, children: i, dir: a, id: o, lang: s, theme: c, ...l } = e;
|
|
524
|
-
return E(
|
|
544
|
+
return E(Se({
|
|
525
545
|
appOverscrollBehavior: t,
|
|
526
546
|
appRoot: n,
|
|
527
547
|
brand: r,
|
|
528
|
-
children:
|
|
548
|
+
children: Q,
|
|
529
549
|
dir: a,
|
|
530
550
|
id: o,
|
|
531
551
|
lang: s,
|
|
532
552
|
theme: c
|
|
533
|
-
}), D(l), { [
|
|
553
|
+
}), D(l), { [Q]: i });
|
|
534
554
|
}
|
|
535
555
|
// src/components/sidebar/sidebar.tsx
|
|
536
|
-
var
|
|
537
|
-
function
|
|
538
|
-
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 =
|
|
556
|
+
var Ft = "__SET_SLOT_SIDEBAR_HEADER__", It = "__SET_SLOT_SIDEBAR_CHILDREN__", Lt = "__SET_SLOT_SIDEBAR_FOOTER__";
|
|
557
|
+
function Rt(e) {
|
|
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 = Ce({
|
|
539
559
|
aboveNotebook: t,
|
|
540
560
|
buttonSize: n,
|
|
541
|
-
children: f ?
|
|
561
|
+
children: f ? It : void 0,
|
|
542
562
|
collapseLabel: i,
|
|
543
|
-
footer: p ?
|
|
544
|
-
header: d ?
|
|
563
|
+
footer: p ? Lt : void 0,
|
|
564
|
+
header: d ? Ft : void 0,
|
|
545
565
|
id: s,
|
|
546
566
|
surface: c,
|
|
547
567
|
triggerLabel: l
|
|
548
568
|
});
|
|
549
569
|
return S(() => {
|
|
550
|
-
|
|
570
|
+
ze();
|
|
551
571
|
}, []), E(m, D(u), {
|
|
552
|
-
...d ? { [
|
|
553
|
-
...f ? { [
|
|
554
|
-
...p ? { [
|
|
572
|
+
...d ? { [Ft]: o } : {},
|
|
573
|
+
...f ? { [It]: r } : {},
|
|
574
|
+
...p ? { [Lt]: a } : {}
|
|
555
575
|
});
|
|
556
576
|
}
|
|
557
577
|
// src/components/spinner/spinner.tsx
|
|
558
|
-
function
|
|
559
|
-
return E(
|
|
578
|
+
function zt(e) {
|
|
579
|
+
return E(we(e), D(e));
|
|
560
580
|
}
|
|
561
581
|
// src/components/stack/stack.tsx
|
|
562
|
-
var
|
|
563
|
-
function
|
|
582
|
+
var Bt = "__SET_SLOT_STACK_CHILDREN__";
|
|
583
|
+
function Vt(e) {
|
|
564
584
|
let { align: t, as: n, children: r, gap: i, id: a, responsive: o, ...s } = e, c = r != null && r !== !1;
|
|
565
|
-
return E(
|
|
585
|
+
return E(Te({
|
|
566
586
|
align: t,
|
|
567
587
|
as: n,
|
|
568
|
-
children: c ?
|
|
588
|
+
children: c ? Bt : void 0,
|
|
569
589
|
gap: i,
|
|
570
590
|
id: a,
|
|
571
591
|
responsive: o
|
|
572
|
-
}), D(s), { ...c ? { [
|
|
592
|
+
}), D(s), { ...c ? { [Bt]: r } : {} });
|
|
573
593
|
}
|
|
574
594
|
// src/components/surface/surface.tsx
|
|
575
|
-
var
|
|
576
|
-
function
|
|
595
|
+
var Ht = "__SET_SLOT_SURFACE_CHILDREN__";
|
|
596
|
+
function Ut(e) {
|
|
577
597
|
let { children: t, contentTheme: n, id: r, variant: i, ...a } = e;
|
|
578
|
-
return E(
|
|
579
|
-
children:
|
|
598
|
+
return E(Ee({
|
|
599
|
+
children: Ht,
|
|
580
600
|
contentTheme: n,
|
|
581
601
|
id: r,
|
|
582
602
|
variant: i
|
|
583
|
-
}), D(a), { [
|
|
603
|
+
}), D(a), { [Ht]: t });
|
|
584
604
|
}
|
|
585
605
|
// src/components/switch/switch.tsx
|
|
586
|
-
function
|
|
587
|
-
return E(
|
|
606
|
+
function Wt(e) {
|
|
607
|
+
return E(De(e), D(e));
|
|
588
608
|
}
|
|
589
609
|
// src/components/text/text.tsx
|
|
590
610
|
var $ = "__SET_SLOT_TEXT_CHILDREN__";
|
|
591
|
-
function
|
|
611
|
+
function Gt(e) {
|
|
592
612
|
let { as: t, children: n, id: r, linkVisited: i, responsive: a, align: o, measured: s, monospaced: c, size: l, tone: u, ...d } = e;
|
|
593
|
-
return E(
|
|
613
|
+
return E(Oe({
|
|
594
614
|
as: t,
|
|
595
615
|
children: $,
|
|
596
616
|
id: r,
|
|
@@ -604,15 +624,15 @@ function Ht(e) {
|
|
|
604
624
|
}), D(d), { [$]: n });
|
|
605
625
|
}
|
|
606
626
|
// src/components/textarea/textarea.tsx
|
|
607
|
-
function
|
|
608
|
-
return E(
|
|
627
|
+
function Kt(e) {
|
|
628
|
+
return E(ke(e), D(e));
|
|
609
629
|
}
|
|
610
630
|
// src/components/video/video.tsx
|
|
611
|
-
function
|
|
631
|
+
function qt(e) {
|
|
612
632
|
return S(() => {
|
|
613
|
-
|
|
614
|
-
}, []), E(
|
|
633
|
+
Be();
|
|
634
|
+
}, []), E(Ae(e), D(e));
|
|
615
635
|
}
|
|
616
|
-
export {
|
|
636
|
+
export { Ye as Alert, Xe as Avatar, Ze as Badge, $e as Banner, et as Blockquote, tt as Box, nt as Button, rt as Card, it as Checkbox, at as Container, ot as Details, st as Dither, ct as Divider, lt as Expander, ut as Fieldset, dt as Figure, ft as Grid, mt as GridItem, ht as Heading, gt as Icon, _t as Image, vt as Inline, yt as Input, xt as Lightswitch, St as Link, Ct as Logo, Tt as Menu, Et as Nav, Dt as Page, Ot as Panel, kt as Pattern, At as Poster, jt as Prose, Mt as Radios, Nt as Range, Pt as Root, Rt as Sidebar, zt as Spinner, Vt as Stack, Ut as Surface, Wt as Switch, Gt as Text, Kt as Textarea, qt as Video, Ne as defineSetAll };
|
|
617
637
|
|
|
618
638
|
//# sourceMappingURL=index.js.map
|