@monospaced/set-react 0.22.0 → 0.23.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/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +605 -936
- package/dist/index.js.map +1 -1
- package/package.json +13 -13
package/dist/index.js
CHANGED
|
@@ -1,949 +1,618 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
function
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
}
|
|
145
|
-
function
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
(o) => {
|
|
186
|
-
s.current = o, Rn(r, o);
|
|
187
|
-
},
|
|
188
|
-
[r]
|
|
189
|
-
);
|
|
190
|
-
return l(he(e), {
|
|
191
|
-
..._(c),
|
|
192
|
-
ref: i
|
|
193
|
-
});
|
|
194
|
-
}
|
|
195
|
-
const P = "__SET_SLOT_BLOCKQUOTE_QUOTE__", B = "__SET_SLOT_BLOCKQUOTE_ATTRIBUTION__";
|
|
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
|
-
align: n,
|
|
199
|
-
attribution: B,
|
|
200
|
-
id: r,
|
|
201
|
-
measured: c,
|
|
202
|
-
quote: P,
|
|
203
|
-
responsive: i,
|
|
204
|
-
size: o
|
|
205
|
-
});
|
|
206
|
-
return l(
|
|
207
|
-
u,
|
|
208
|
-
_(a),
|
|
209
|
-
{
|
|
210
|
-
[P]: s,
|
|
211
|
-
[B]: t
|
|
212
|
-
}
|
|
213
|
-
);
|
|
214
|
-
}
|
|
215
|
-
const k = "__SET_SLOT_BOX_CHILDREN__";
|
|
216
|
-
function An(e) {
|
|
217
|
-
const {
|
|
218
|
-
background: n,
|
|
219
|
-
border: t,
|
|
220
|
-
children: r,
|
|
221
|
-
id: c,
|
|
222
|
-
paddingBlock: s,
|
|
223
|
-
paddingInline: i,
|
|
224
|
-
radius: o,
|
|
225
|
-
responsive: a,
|
|
226
|
-
surface: u,
|
|
227
|
-
...d
|
|
228
|
-
} = e, E = r != null && r !== !1, f = Oe({
|
|
229
|
-
background: n,
|
|
230
|
-
border: t,
|
|
231
|
-
children: E ? k : void 0,
|
|
232
|
-
id: c,
|
|
233
|
-
paddingBlock: s,
|
|
234
|
-
paddingInline: i,
|
|
235
|
-
radius: o,
|
|
236
|
-
responsive: a,
|
|
237
|
-
surface: u
|
|
238
|
-
});
|
|
239
|
-
return l(
|
|
240
|
-
f,
|
|
241
|
-
_(d),
|
|
242
|
-
{
|
|
243
|
-
...E ? { [k]: r } : {}
|
|
244
|
-
}
|
|
245
|
-
);
|
|
246
|
-
}
|
|
247
|
-
function Hn(e) {
|
|
248
|
-
return l(
|
|
249
|
-
Ie(e),
|
|
250
|
-
_(e)
|
|
251
|
-
);
|
|
252
|
-
}
|
|
253
|
-
const F = "__SET_SLOT_CARD_DESCRIPTION__", x = "__SET_SLOT_CARD_NOTE__";
|
|
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
|
-
description: F,
|
|
257
|
-
headingLevel: t,
|
|
258
|
-
href: r,
|
|
259
|
-
id: c,
|
|
260
|
-
note: u ? x : void 0,
|
|
261
|
-
surface: i,
|
|
262
|
-
title: o
|
|
263
|
-
});
|
|
264
|
-
return l(
|
|
265
|
-
d,
|
|
266
|
-
_(a),
|
|
267
|
-
{
|
|
268
|
-
[F]: n,
|
|
269
|
-
...u ? { [x]: s } : {}
|
|
270
|
-
}
|
|
271
|
-
);
|
|
272
|
-
}
|
|
273
|
-
function Pn(e) {
|
|
274
|
-
return l(
|
|
275
|
-
Ce(e),
|
|
276
|
-
_(e)
|
|
277
|
-
);
|
|
278
|
-
}
|
|
279
|
-
const y = "__SET_SLOT_CONTAINER_CHILDREN__";
|
|
280
|
-
function Bn(e) {
|
|
281
|
-
const { children: n, gutter: t, id: r, maxInlineSize: c, ...s } = e, i = n != null && n !== !1, o = me({
|
|
282
|
-
children: i ? y : void 0,
|
|
283
|
-
gutter: t,
|
|
284
|
-
id: r,
|
|
285
|
-
maxInlineSize: c
|
|
286
|
-
});
|
|
287
|
-
return l(
|
|
288
|
-
o,
|
|
289
|
-
_(s),
|
|
290
|
-
{
|
|
291
|
-
...i ? { [y]: n } : {}
|
|
292
|
-
}
|
|
293
|
-
);
|
|
294
|
-
}
|
|
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
|
-
id: t,
|
|
300
|
-
inlineSize: r,
|
|
301
|
-
open: c,
|
|
302
|
-
summary: s
|
|
303
|
-
});
|
|
304
|
-
return l(
|
|
305
|
-
a,
|
|
306
|
-
_(i),
|
|
307
|
-
{
|
|
308
|
-
...o ? { [G]: n } : {}
|
|
309
|
-
}
|
|
310
|
-
);
|
|
311
|
-
}
|
|
312
|
-
function Fn(e) {
|
|
313
|
-
return l(
|
|
314
|
-
be(e),
|
|
315
|
-
_(e)
|
|
316
|
-
);
|
|
317
|
-
}
|
|
318
|
-
function xn(e) {
|
|
319
|
-
return l(
|
|
320
|
-
ve(e),
|
|
321
|
-
_(e)
|
|
322
|
-
);
|
|
323
|
-
}
|
|
324
|
-
const w = "__SET_SLOT_FIELDSET_CHILDREN__";
|
|
325
|
-
function yn(e) {
|
|
326
|
-
const {
|
|
327
|
-
children: n,
|
|
328
|
-
description: t,
|
|
329
|
-
disabled: r,
|
|
330
|
-
id: c,
|
|
331
|
-
invalid: s,
|
|
332
|
-
legend: i,
|
|
333
|
-
inlineSize: o,
|
|
334
|
-
...a
|
|
335
|
-
} = e, u = n != null && n !== !1, d = ge({
|
|
336
|
-
children: u ? w : void 0,
|
|
337
|
-
description: t,
|
|
338
|
-
disabled: r,
|
|
339
|
-
id: c,
|
|
340
|
-
invalid: s,
|
|
341
|
-
legend: i,
|
|
342
|
-
inlineSize: o
|
|
343
|
-
});
|
|
344
|
-
return l(
|
|
345
|
-
d,
|
|
346
|
-
_(a),
|
|
347
|
-
{
|
|
348
|
-
...u ? { [w]: n } : {}
|
|
349
|
-
}
|
|
350
|
-
);
|
|
351
|
-
}
|
|
352
|
-
const M = "__SET_SLOT_FIGURE_CHILDREN__", U = "__SET_SLOT_FIGURE_CAPTION__";
|
|
353
|
-
function Gn(e) {
|
|
354
|
-
const { align: n, caption: t, children: r, id: c, inlineSize: s, responsive: i, ...o } = e, a = Ae({
|
|
355
|
-
align: n,
|
|
356
|
-
caption: U,
|
|
357
|
-
children: M,
|
|
358
|
-
id: c,
|
|
359
|
-
inlineSize: s,
|
|
360
|
-
responsive: i
|
|
361
|
-
});
|
|
362
|
-
return l(
|
|
363
|
-
a,
|
|
364
|
-
_(o),
|
|
365
|
-
{
|
|
366
|
-
[M]: r,
|
|
367
|
-
[U]: t
|
|
368
|
-
}
|
|
369
|
-
);
|
|
370
|
-
}
|
|
371
|
-
const V = "__SET_SLOT_GRID_CHILDREN__";
|
|
372
|
-
function wn(e) {
|
|
373
|
-
const { children: n, gap: t, id: r, ...c } = e, s = n != null && n !== !1, i = He({
|
|
374
|
-
children: s ? V : void 0,
|
|
375
|
-
gap: t,
|
|
376
|
-
id: r
|
|
377
|
-
});
|
|
378
|
-
return l(
|
|
379
|
-
i,
|
|
380
|
-
_(c),
|
|
381
|
-
{
|
|
382
|
-
...s ? { [V]: n } : {}
|
|
383
|
-
}
|
|
384
|
-
);
|
|
385
|
-
}
|
|
386
|
-
const z = "__SET_SLOT_GRID_ITEM_CHILDREN__";
|
|
387
|
-
function Mn(e) {
|
|
388
|
-
const {
|
|
389
|
-
children: n,
|
|
390
|
-
align: t,
|
|
391
|
-
justify: r,
|
|
392
|
-
colSpan: c,
|
|
393
|
-
colStart: s,
|
|
394
|
-
id: i,
|
|
395
|
-
rowSpan: o,
|
|
396
|
-
rowSpanNarrow: a,
|
|
397
|
-
rowSpanWide: u,
|
|
398
|
-
rowStart: d,
|
|
399
|
-
rowStartNarrow: E,
|
|
400
|
-
rowStartWide: f,
|
|
401
|
-
colSpanNarrow: L,
|
|
402
|
-
colStartNarrow: h,
|
|
403
|
-
colSpanWide: C,
|
|
404
|
-
colStartWide: R,
|
|
405
|
-
...m
|
|
406
|
-
} = e, D = n != null && n !== !1, ue = pe({
|
|
407
|
-
children: D ? z : void 0,
|
|
408
|
-
align: t,
|
|
409
|
-
justify: r,
|
|
410
|
-
colSpan: c,
|
|
411
|
-
colStart: s,
|
|
412
|
-
id: i,
|
|
413
|
-
rowSpan: o,
|
|
414
|
-
rowSpanNarrow: a,
|
|
415
|
-
rowSpanWide: u,
|
|
416
|
-
rowStart: d,
|
|
417
|
-
rowStartNarrow: E,
|
|
418
|
-
rowStartWide: f,
|
|
419
|
-
colSpanNarrow: L,
|
|
420
|
-
colStartNarrow: h,
|
|
421
|
-
colSpanWide: C,
|
|
422
|
-
colStartWide: R
|
|
423
|
-
});
|
|
424
|
-
return l(
|
|
425
|
-
ue,
|
|
426
|
-
_(m),
|
|
427
|
-
{
|
|
428
|
-
...D ? { [z]: n } : {}
|
|
429
|
-
}
|
|
430
|
-
);
|
|
431
|
-
}
|
|
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
|
-
});
|
|
454
|
-
return l(
|
|
455
|
-
d,
|
|
456
|
-
_(u),
|
|
457
|
-
{
|
|
458
|
-
[W]: t
|
|
459
|
-
}
|
|
460
|
-
);
|
|
461
|
-
}
|
|
462
|
-
function Vn(e) {
|
|
463
|
-
return l(
|
|
464
|
-
Be(e),
|
|
465
|
-
_(e)
|
|
466
|
-
);
|
|
467
|
-
}
|
|
468
|
-
function zn(e) {
|
|
469
|
-
return S(() => {
|
|
470
|
-
ke();
|
|
471
|
-
}, []), l(
|
|
472
|
-
Fe(e),
|
|
473
|
-
_(e)
|
|
474
|
-
);
|
|
475
|
-
}
|
|
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({
|
|
479
|
-
as: n,
|
|
480
|
-
align: t,
|
|
481
|
-
children: u ? j : void 0,
|
|
482
|
-
gap: c,
|
|
483
|
-
id: s,
|
|
484
|
-
justify: i,
|
|
485
|
-
nowrap: o
|
|
486
|
-
});
|
|
487
|
-
return l(
|
|
488
|
-
d,
|
|
489
|
-
_(a),
|
|
490
|
-
{
|
|
491
|
-
...u ? { [j]: r } : {}
|
|
492
|
-
}
|
|
493
|
-
);
|
|
494
|
-
}
|
|
495
|
-
function jn(e) {
|
|
496
|
-
return l(
|
|
497
|
-
ye(e),
|
|
498
|
-
_(e)
|
|
499
|
-
);
|
|
500
|
-
}
|
|
501
|
-
function On(e, n) {
|
|
502
|
-
typeof e == "function" ? e(n) : e && (e.current = n);
|
|
503
|
-
}
|
|
504
|
-
function Kn(e) {
|
|
505
|
-
const { onChange: n, ref: t, ...r } = e;
|
|
506
|
-
S(() => {
|
|
507
|
-
Ge();
|
|
508
|
-
}, []);
|
|
509
|
-
const c = I(null);
|
|
510
|
-
S(() => {
|
|
511
|
-
const i = c.current;
|
|
512
|
-
if (!(!i || !n))
|
|
513
|
-
return i.addEventListener(
|
|
514
|
-
H,
|
|
515
|
-
n
|
|
516
|
-
), () => i.removeEventListener(
|
|
517
|
-
H,
|
|
518
|
-
n
|
|
519
|
-
);
|
|
520
|
-
}, [n]);
|
|
521
|
-
const s = N(
|
|
522
|
-
(i) => {
|
|
523
|
-
c.current = i, On(t, i);
|
|
524
|
-
},
|
|
525
|
-
[t]
|
|
526
|
-
);
|
|
527
|
-
return l(we(e), {
|
|
528
|
-
..._(r),
|
|
529
|
-
ref: s
|
|
530
|
-
});
|
|
531
|
-
}
|
|
532
|
-
const K = "__SET_SLOT_LINK_ICON__";
|
|
533
|
-
function Qn(e) {
|
|
534
|
-
const {
|
|
535
|
-
appearance: n,
|
|
536
|
-
current: t,
|
|
537
|
-
download: r,
|
|
538
|
-
href: c,
|
|
539
|
-
id: s,
|
|
540
|
-
icon: i,
|
|
541
|
-
iconPlacement: o,
|
|
542
|
-
label: a,
|
|
543
|
-
labelVisibility: u,
|
|
544
|
-
rel: d,
|
|
545
|
-
size: E,
|
|
546
|
-
target: f,
|
|
547
|
-
tone: L,
|
|
548
|
-
underline: h,
|
|
549
|
-
...C
|
|
550
|
-
} = e, R = i != null && i !== !1, m = Me({
|
|
551
|
-
appearance: n,
|
|
552
|
-
current: t,
|
|
553
|
-
download: r,
|
|
554
|
-
href: c,
|
|
555
|
-
id: s,
|
|
556
|
-
icon: R ? K : void 0,
|
|
557
|
-
iconPlacement: o,
|
|
558
|
-
label: a,
|
|
559
|
-
labelVisibility: u,
|
|
560
|
-
rel: d,
|
|
561
|
-
size: E,
|
|
562
|
-
target: f,
|
|
563
|
-
tone: L,
|
|
564
|
-
underline: h
|
|
565
|
-
});
|
|
566
|
-
return l(
|
|
567
|
-
m,
|
|
568
|
-
_(C),
|
|
569
|
-
{
|
|
570
|
-
...R ? { [K]: i } : {}
|
|
571
|
-
}
|
|
572
|
-
);
|
|
573
|
-
}
|
|
574
|
-
function qn(e) {
|
|
575
|
-
return l(
|
|
576
|
-
Ue(e),
|
|
577
|
-
_(e)
|
|
578
|
-
);
|
|
579
|
-
}
|
|
580
|
-
function In(e, n) {
|
|
581
|
-
typeof e == "function" ? e(n) : e && (e.current = n);
|
|
582
|
-
}
|
|
583
|
-
function Xn(e) {
|
|
584
|
-
const { onChoose: n, ref: t, ...r } = e;
|
|
585
|
-
S(() => {
|
|
586
|
-
Ve();
|
|
587
|
-
}, []);
|
|
588
|
-
const c = I(null);
|
|
589
|
-
S(() => {
|
|
590
|
-
const i = c.current;
|
|
591
|
-
if (!(!i || !n))
|
|
592
|
-
return i.addEventListener(p, n), () => i.removeEventListener(p, n);
|
|
593
|
-
}, [n]);
|
|
594
|
-
const s = N(
|
|
595
|
-
(i) => {
|
|
596
|
-
c.current = i, In(t, i);
|
|
597
|
-
},
|
|
598
|
-
[t]
|
|
599
|
-
);
|
|
600
|
-
return l(ze(e), {
|
|
601
|
-
..._(r),
|
|
602
|
-
ref: s
|
|
603
|
-
});
|
|
604
|
-
}
|
|
605
|
-
function $n(e) {
|
|
606
|
-
return S(() => {
|
|
607
|
-
We();
|
|
608
|
-
}, []), l(
|
|
609
|
-
je(e),
|
|
610
|
-
_(e)
|
|
611
|
-
);
|
|
612
|
-
}
|
|
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) {
|
|
615
|
-
const {
|
|
616
|
-
banner: n,
|
|
617
|
-
children: t,
|
|
618
|
-
centerMain: r,
|
|
619
|
-
header: c,
|
|
620
|
-
headerBorder: s,
|
|
621
|
-
headerSize: i,
|
|
622
|
-
id: o,
|
|
623
|
-
stickyHeader: a,
|
|
624
|
-
footer: u,
|
|
625
|
-
...d
|
|
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,
|
|
629
|
-
centerMain: r,
|
|
630
|
-
header: q,
|
|
631
|
-
headerBorder: s,
|
|
632
|
-
headerSize: i,
|
|
633
|
-
id: o,
|
|
634
|
-
stickyHeader: a,
|
|
635
|
-
footer: $
|
|
636
|
-
});
|
|
637
|
-
return l(
|
|
638
|
-
L,
|
|
639
|
-
_(d),
|
|
640
|
-
{
|
|
641
|
-
...E ? { [Q]: n } : {},
|
|
642
|
-
[q]: c,
|
|
643
|
-
...f ? { [X]: t } : {},
|
|
644
|
-
[$]: u
|
|
645
|
-
}
|
|
646
|
-
);
|
|
647
|
-
}
|
|
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,
|
|
652
|
-
id: t,
|
|
653
|
-
padding: r,
|
|
654
|
-
surface: c
|
|
655
|
-
});
|
|
656
|
-
return l(
|
|
657
|
-
o,
|
|
658
|
-
_(s),
|
|
659
|
-
{
|
|
660
|
-
...i ? { [Y]: n } : {}
|
|
661
|
-
}
|
|
662
|
-
);
|
|
663
|
-
}
|
|
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,
|
|
668
|
-
id: t,
|
|
669
|
-
tone: r,
|
|
670
|
-
size: c,
|
|
671
|
-
variant: s
|
|
672
|
-
});
|
|
673
|
-
return l(
|
|
674
|
-
a,
|
|
675
|
-
_(i),
|
|
676
|
-
{
|
|
677
|
-
...o ? { [J]: n } : {}
|
|
678
|
-
}
|
|
679
|
-
);
|
|
680
|
-
}
|
|
681
|
-
const Z = "__SET_SLOT_POSTER_MEDIA__", ee = "__SET_SLOT_POSTER_CHILDREN__";
|
|
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, buildSetDivider as _, buildSetExpander as v, buildSetFieldset as ee, buildSetFigure as te, buildSetGrid as ne, buildSetGridItem as re, buildSetHeading as ie, buildSetIcon as ae, buildSetImage as oe, buildSetInline as se, buildSetInput as ce, buildSetLightswitch as le, buildSetLink as ue, buildSetLogo as de, buildSetMenu as fe, buildSetNav as pe, buildSetPage as me, buildSetPanel 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
|
+
import { Fragment as y, createElement as b, useCallback as x, useEffect as S, useRef as C } from "react";
|
|
3
|
+
// src/reactify.tsx
|
|
4
|
+
var Ve = {
|
|
5
|
+
autocomplete: "autoComplete",
|
|
6
|
+
class: "className",
|
|
7
|
+
for: "htmlFor",
|
|
8
|
+
readonly: "readOnly",
|
|
9
|
+
spellcheck: "spellCheck",
|
|
10
|
+
srcset: "srcSet",
|
|
11
|
+
"stroke-linecap": "strokeLinecap",
|
|
12
|
+
"stroke-linejoin": "strokeLinejoin",
|
|
13
|
+
"stroke-width": "strokeWidth",
|
|
14
|
+
tabindex: "tabIndex"
|
|
15
|
+
}, He = /* @__PURE__ */ new Set([
|
|
16
|
+
"input",
|
|
17
|
+
"textarea",
|
|
18
|
+
"select"
|
|
19
|
+
]);
|
|
20
|
+
function Ue(e) {
|
|
21
|
+
let t = {};
|
|
22
|
+
for (let [n, r] of Object.entries(e)) {
|
|
23
|
+
if (r == null || r === !1 && (n.startsWith("data-") || n.startsWith("aria-"))) continue;
|
|
24
|
+
let e = Ve[n] ?? n;
|
|
25
|
+
t[e] = r === !0 && n.startsWith("data-") ? "" : r;
|
|
26
|
+
}
|
|
27
|
+
return t;
|
|
28
|
+
}
|
|
29
|
+
function We(e) {
|
|
30
|
+
let t = [], n = (e) => {
|
|
31
|
+
if (e.kind === "element") {
|
|
32
|
+
He.has(e.tag) && t.push(e);
|
|
33
|
+
for (let t of e.children) n(t);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
return n(e), t;
|
|
37
|
+
}
|
|
38
|
+
function Ge(e) {
|
|
39
|
+
let t = {}, n = {}, r;
|
|
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
|
+
return {
|
|
42
|
+
rootExtras: t,
|
|
43
|
+
primaryFirstExtras: r === void 0 ? { ...n } : {
|
|
44
|
+
autoFocus: r,
|
|
45
|
+
...n
|
|
46
|
+
},
|
|
47
|
+
primaryRestExtras: n
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function Ke(e, t) {
|
|
51
|
+
if (t.primaries.length === 0) return {};
|
|
52
|
+
let n = t.primaries.indexOf(e);
|
|
53
|
+
return n === 0 ? t.primaryFirstExtras : n > 0 ? t.primaryRestExtras : {};
|
|
54
|
+
}
|
|
55
|
+
function w(e, t, n) {
|
|
56
|
+
let r = {
|
|
57
|
+
...Ue(e.attrs),
|
|
58
|
+
...t
|
|
59
|
+
};
|
|
60
|
+
if (e.tag === "textarea" && e.children.length > 0) {
|
|
61
|
+
let t = e.children.map((e) => e.kind === "text" ? e.value : "").join("");
|
|
62
|
+
return !("value" in r) && t.length > 0 && (r.defaultValue = t), {
|
|
63
|
+
props: r,
|
|
64
|
+
children: null
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
return e.children.some((e) => e.kind === "raw" && !(e.html in n.slots)) ? (r.dangerouslySetInnerHTML = { __html: e.children.map(Be).join("") }, {
|
|
68
|
+
props: r,
|
|
69
|
+
children: null
|
|
70
|
+
}) : {
|
|
71
|
+
props: r,
|
|
72
|
+
children: e.children.map((e, t) => e.kind === "raw" && e.html in n.slots ? b(y, { key: t }, n.slots[e.html]) : T(e, t, n))
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
function T(e, t, n) {
|
|
76
|
+
if (e.kind === "text") return e.value in n.slots ? b(y, { key: t }, n.slots[e.value]) : e.value;
|
|
77
|
+
if (e.kind === "raw") return e.html in n.slots ? b(y, { key: t }, n.slots[e.html]) : b("span", {
|
|
78
|
+
key: t,
|
|
79
|
+
dangerouslySetInnerHTML: { __html: e.html }
|
|
80
|
+
});
|
|
81
|
+
let { props: r, children: i } = w(e, Ke(e, n), n);
|
|
82
|
+
return t !== void 0 && (r.key = t), i === null ? b(e.tag, r) : b(e.tag, r, ...i);
|
|
83
|
+
}
|
|
84
|
+
function E(e, t = {}, n = {}) {
|
|
85
|
+
if (e.kind !== "element") return b(y, null, T(e, void 0, {
|
|
86
|
+
slots: n,
|
|
87
|
+
primaries: [],
|
|
88
|
+
primaryFirstExtras: {},
|
|
89
|
+
primaryRestExtras: {}
|
|
90
|
+
}));
|
|
91
|
+
let r = We(e), i = r.length > 0 ? Ge(t) : {
|
|
92
|
+
rootExtras: t,
|
|
93
|
+
primaryFirstExtras: {},
|
|
94
|
+
primaryRestExtras: {}
|
|
95
|
+
}, a = {
|
|
96
|
+
slots: n,
|
|
97
|
+
primaries: r,
|
|
98
|
+
primaryFirstExtras: i.primaryFirstExtras,
|
|
99
|
+
primaryRestExtras: i.primaryRestExtras
|
|
100
|
+
}, { props: o, children: s } = w(e, i.rootExtras, a);
|
|
101
|
+
return s === null ? b(e.tag, o) : b(e.tag, o, ...s);
|
|
102
|
+
}
|
|
103
|
+
function D(e) {
|
|
104
|
+
let t = {};
|
|
105
|
+
for (let [n, r] of Object.entries(e)) r !== void 0 && (n === "ref" || n === "autoFocus" || n === "value" || n.startsWith("on")) && (t[n] = r);
|
|
106
|
+
return t;
|
|
107
|
+
}
|
|
108
|
+
// src/components/alert/alert.tsx
|
|
109
|
+
function qe(e, t) {
|
|
110
|
+
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
111
|
+
}
|
|
112
|
+
function Je(n) {
|
|
113
|
+
let { onBeforeDismiss: r, onDismiss: i, ref: a, ...s } = n;
|
|
114
|
+
S(() => {
|
|
115
|
+
Ae();
|
|
116
|
+
}, []);
|
|
117
|
+
let c = C(null);
|
|
118
|
+
S(() => {
|
|
119
|
+
let t = c.current;
|
|
120
|
+
if (t && r) return t.addEventListener(e, r), () => t.removeEventListener(e, r);
|
|
121
|
+
}, [r]), S(() => {
|
|
122
|
+
let e = c.current;
|
|
123
|
+
if (e && i) return e.addEventListener(t, i), () => e.removeEventListener(t, i);
|
|
124
|
+
}, [i]);
|
|
125
|
+
let l = x((e) => {
|
|
126
|
+
c.current = e, qe(a, e);
|
|
127
|
+
}, [a]);
|
|
128
|
+
return E(o(n), {
|
|
129
|
+
...D(s),
|
|
130
|
+
ref: l
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
// src/components/avatar/avatar.tsx
|
|
134
|
+
function Ye(e) {
|
|
135
|
+
return E(s(e), D(e));
|
|
136
|
+
}
|
|
137
|
+
// src/components/badge/badge.tsx
|
|
138
|
+
function Xe(e) {
|
|
139
|
+
return E(c(e), D(e));
|
|
140
|
+
}
|
|
141
|
+
// src/components/banner/banner.tsx
|
|
142
|
+
function Ze(e, t) {
|
|
143
|
+
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
144
|
+
}
|
|
145
|
+
function Qe(e) {
|
|
146
|
+
let { onBeforeDismiss: t, onDismiss: i, ref: a, ...o } = e;
|
|
147
|
+
S(() => {
|
|
148
|
+
je();
|
|
149
|
+
}, []);
|
|
150
|
+
let s = C(null);
|
|
151
|
+
S(() => {
|
|
152
|
+
let e = s.current;
|
|
153
|
+
if (e && t) return e.addEventListener(n, t), () => e.removeEventListener(n, t);
|
|
154
|
+
}, [t]), S(() => {
|
|
155
|
+
let e = s.current;
|
|
156
|
+
if (e && i) return e.addEventListener(r, i), () => e.removeEventListener(r, i);
|
|
157
|
+
}, [i]);
|
|
158
|
+
let c = x((e) => {
|
|
159
|
+
s.current = e, Ze(a, e);
|
|
160
|
+
}, [a]);
|
|
161
|
+
return E(l(e), {
|
|
162
|
+
...D(o),
|
|
163
|
+
ref: c
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
// src/components/blockquote/blockquote.tsx
|
|
167
|
+
var O = "__SET_SLOT_BLOCKQUOTE_QUOTE__", k = "__SET_SLOT_BLOCKQUOTE_ATTRIBUTION__";
|
|
168
|
+
function $e(e) {
|
|
169
|
+
let { align: t, attribution: n, id: r, measured: i, quote: a, responsive: o, size: s, ...c } = e;
|
|
170
|
+
return E(u({
|
|
171
|
+
align: t,
|
|
172
|
+
attribution: k,
|
|
173
|
+
id: r,
|
|
174
|
+
measured: i,
|
|
175
|
+
quote: O,
|
|
176
|
+
responsive: o,
|
|
177
|
+
size: s
|
|
178
|
+
}), D(c), {
|
|
179
|
+
[O]: a,
|
|
180
|
+
[k]: n
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
// src/components/box/box.tsx
|
|
184
|
+
var A = "__SET_SLOT_BOX_CHILDREN__";
|
|
682
185
|
function et(e) {
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
);
|
|
698
|
-
}
|
|
699
|
-
const ne = "__SET_SLOT_PROSE_CHILDREN__";
|
|
700
|
-
function nt(e) {
|
|
701
|
-
const {
|
|
702
|
-
children: n,
|
|
703
|
-
align: t,
|
|
704
|
-
hangingPunctuation: r,
|
|
705
|
-
id: c,
|
|
706
|
-
linkVisited: s,
|
|
707
|
-
measured: i,
|
|
708
|
-
monospaced: o,
|
|
709
|
-
responsive: a,
|
|
710
|
-
...u
|
|
711
|
-
} = e, d = $e({
|
|
712
|
-
children: ne,
|
|
713
|
-
align: t,
|
|
714
|
-
hangingPunctuation: r,
|
|
715
|
-
id: c,
|
|
716
|
-
linkVisited: s,
|
|
717
|
-
measured: i,
|
|
718
|
-
monospaced: o,
|
|
719
|
-
responsive: a
|
|
720
|
-
});
|
|
721
|
-
return l(
|
|
722
|
-
d,
|
|
723
|
-
_(u),
|
|
724
|
-
{
|
|
725
|
-
[ne]: n
|
|
726
|
-
}
|
|
727
|
-
);
|
|
728
|
-
}
|
|
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
|
+
return E(d({
|
|
188
|
+
background: t,
|
|
189
|
+
border: n,
|
|
190
|
+
children: f ? A : void 0,
|
|
191
|
+
id: i,
|
|
192
|
+
paddingBlock: a,
|
|
193
|
+
paddingInline: o,
|
|
194
|
+
radius: s,
|
|
195
|
+
responsive: c,
|
|
196
|
+
surface: l
|
|
197
|
+
}), D(u), { ...f ? { [A]: r } : {} });
|
|
198
|
+
}
|
|
199
|
+
// src/components/button/button.tsx
|
|
729
200
|
function tt(e) {
|
|
730
|
-
|
|
731
|
-
Ye(e),
|
|
732
|
-
_(e)
|
|
733
|
-
);
|
|
201
|
+
return E(f(e), D(e));
|
|
734
202
|
}
|
|
203
|
+
// src/components/card/card.tsx
|
|
204
|
+
var j = "__SET_SLOT_CARD_DESCRIPTION__", M = "__SET_SLOT_CARD_NOTE__";
|
|
205
|
+
function nt(e) {
|
|
206
|
+
let { description: t, headingLevel: n, href: r, id: i, note: a, surface: o, title: s, ...c } = e, l = a != null && a !== !1;
|
|
207
|
+
return E(p({
|
|
208
|
+
description: j,
|
|
209
|
+
headingLevel: n,
|
|
210
|
+
href: r,
|
|
211
|
+
id: i,
|
|
212
|
+
note: l ? M : void 0,
|
|
213
|
+
surface: o,
|
|
214
|
+
title: s
|
|
215
|
+
}), D(c), {
|
|
216
|
+
[j]: t,
|
|
217
|
+
...l ? { [M]: a } : {}
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
// src/components/checkbox/checkbox.tsx
|
|
735
221
|
function rt(e) {
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
_(e)
|
|
741
|
-
);
|
|
742
|
-
}
|
|
743
|
-
const te = "__SET_SLOT_ROOT_CHILDREN__";
|
|
222
|
+
return E(m(e), D(e));
|
|
223
|
+
}
|
|
224
|
+
// src/components/container/container.tsx
|
|
225
|
+
var N = "__SET_SLOT_CONTAINER_CHILDREN__";
|
|
744
226
|
function it(e) {
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
d,
|
|
767
|
-
_(u),
|
|
768
|
-
{
|
|
769
|
-
[te]: c
|
|
770
|
-
}
|
|
771
|
-
);
|
|
772
|
-
}
|
|
773
|
-
const re = "__SET_SLOT_SIDEBAR_HEADER__", ie = "__SET_SLOT_SIDEBAR_CHILDREN__", oe = "__SET_SLOT_SIDEBAR_FOOTER__";
|
|
227
|
+
let { children: t, gutter: n, id: r, maxInlineSize: i, ...a } = e, o = t != null && t !== !1;
|
|
228
|
+
return E(h({
|
|
229
|
+
children: o ? N : void 0,
|
|
230
|
+
gutter: n,
|
|
231
|
+
id: r,
|
|
232
|
+
maxInlineSize: i
|
|
233
|
+
}), D(a), { ...o ? { [N]: t } : {} });
|
|
234
|
+
}
|
|
235
|
+
// src/components/details/details.tsx
|
|
236
|
+
var P = "__SET_SLOT_DETAILS_CHILDREN__";
|
|
237
|
+
function at(e) {
|
|
238
|
+
let { children: t, id: n, inlineSize: r, open: i, summary: a, ...o } = e, s = t != null && t !== !1;
|
|
239
|
+
return E(g({
|
|
240
|
+
children: s ? P : void 0,
|
|
241
|
+
id: n,
|
|
242
|
+
inlineSize: r,
|
|
243
|
+
open: i,
|
|
244
|
+
summary: a
|
|
245
|
+
}), D(o), { ...s ? { [P]: t } : {} });
|
|
246
|
+
}
|
|
247
|
+
// src/components/divider/divider.tsx
|
|
774
248
|
function ot(e) {
|
|
775
|
-
|
|
776
|
-
aboveNotebook: n,
|
|
777
|
-
buttonSize: t,
|
|
778
|
-
children: r,
|
|
779
|
-
collapseLabel: c,
|
|
780
|
-
footer: s,
|
|
781
|
-
header: i,
|
|
782
|
-
id: o,
|
|
783
|
-
surface: a,
|
|
784
|
-
triggerLabel: u,
|
|
785
|
-
...d
|
|
786
|
-
} = e, E = i != null && i !== !1, f = r != null && r !== !1, L = s != null && s !== !1, h = nn({
|
|
787
|
-
aboveNotebook: n,
|
|
788
|
-
buttonSize: t,
|
|
789
|
-
children: f ? ie : void 0,
|
|
790
|
-
collapseLabel: c,
|
|
791
|
-
footer: L ? oe : void 0,
|
|
792
|
-
header: E ? re : void 0,
|
|
793
|
-
id: o,
|
|
794
|
-
surface: a,
|
|
795
|
-
triggerLabel: u
|
|
796
|
-
});
|
|
797
|
-
return S(() => {
|
|
798
|
-
tn();
|
|
799
|
-
}, []), l(
|
|
800
|
-
h,
|
|
801
|
-
_(d),
|
|
802
|
-
{
|
|
803
|
-
...E ? { [re]: i } : {},
|
|
804
|
-
...f ? { [ie]: r } : {},
|
|
805
|
-
...L ? { [oe]: s } : {}
|
|
806
|
-
}
|
|
807
|
-
);
|
|
249
|
+
return E(_(e), D(e));
|
|
808
250
|
}
|
|
251
|
+
// src/components/expander/expander.tsx
|
|
809
252
|
function st(e) {
|
|
810
|
-
|
|
811
|
-
rn(e),
|
|
812
|
-
_(e)
|
|
813
|
-
);
|
|
253
|
+
return E(v(e), D(e));
|
|
814
254
|
}
|
|
815
|
-
|
|
255
|
+
// src/components/fieldset/fieldset.tsx
|
|
256
|
+
var F = "__SET_SLOT_FIELDSET_CHILDREN__";
|
|
816
257
|
function ct(e) {
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
}
|
|
831
|
-
);
|
|
832
|
-
}
|
|
833
|
-
const ce = "__SET_SLOT_SURFACE_CHILDREN__";
|
|
258
|
+
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(ee({
|
|
260
|
+
children: l ? F : void 0,
|
|
261
|
+
description: n,
|
|
262
|
+
disabled: r,
|
|
263
|
+
id: i,
|
|
264
|
+
invalid: a,
|
|
265
|
+
legend: o,
|
|
266
|
+
inlineSize: s
|
|
267
|
+
}), D(c), { ...l ? { [F]: t } : {} });
|
|
268
|
+
}
|
|
269
|
+
// src/components/figure/figure.tsx
|
|
270
|
+
var I = "__SET_SLOT_FIGURE_CHILDREN__", L = "__SET_SLOT_FIGURE_CAPTION__";
|
|
834
271
|
function lt(e) {
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
return l(
|
|
851
|
-
cn(e),
|
|
852
|
-
_(e)
|
|
853
|
-
);
|
|
854
|
-
}
|
|
855
|
-
const le = "__SET_SLOT_TEXT_CHILDREN__";
|
|
856
|
-
function at(e) {
|
|
857
|
-
const {
|
|
858
|
-
as: n,
|
|
859
|
-
children: t,
|
|
860
|
-
id: r,
|
|
861
|
-
linkVisited: c,
|
|
862
|
-
responsive: s,
|
|
863
|
-
align: i,
|
|
864
|
-
measured: o,
|
|
865
|
-
monospaced: a,
|
|
866
|
-
size: u,
|
|
867
|
-
tone: d,
|
|
868
|
-
...E
|
|
869
|
-
} = e, f = ln({
|
|
870
|
-
as: n,
|
|
871
|
-
children: le,
|
|
872
|
-
id: r,
|
|
873
|
-
linkVisited: c,
|
|
874
|
-
responsive: s,
|
|
875
|
-
align: i,
|
|
876
|
-
measured: o,
|
|
877
|
-
monospaced: a,
|
|
878
|
-
size: u,
|
|
879
|
-
tone: d
|
|
880
|
-
});
|
|
881
|
-
return l(
|
|
882
|
-
f,
|
|
883
|
-
_(E),
|
|
884
|
-
{
|
|
885
|
-
[le]: t
|
|
886
|
-
}
|
|
887
|
-
);
|
|
888
|
-
}
|
|
272
|
+
let { align: t, caption: n, children: r, id: i, inlineSize: a, responsive: o, ...s } = e;
|
|
273
|
+
return E(te({
|
|
274
|
+
align: t,
|
|
275
|
+
caption: L,
|
|
276
|
+
children: I,
|
|
277
|
+
id: i,
|
|
278
|
+
inlineSize: a,
|
|
279
|
+
responsive: o
|
|
280
|
+
}), D(s), {
|
|
281
|
+
[I]: r,
|
|
282
|
+
[L]: n
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
// src/components/grid/grid.tsx
|
|
286
|
+
var R = "__SET_SLOT_GRID_CHILDREN__";
|
|
889
287
|
function ut(e) {
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
288
|
+
let { children: t, gap: n, id: r, ...i } = e, a = t != null && t !== !1;
|
|
289
|
+
return E(ne({
|
|
290
|
+
children: a ? R : void 0,
|
|
291
|
+
gap: n,
|
|
292
|
+
id: r
|
|
293
|
+
}), D(i), { ...a ? { [R]: t } : {} });
|
|
294
|
+
}
|
|
295
|
+
// src/components/grid-item/grid-item.tsx
|
|
296
|
+
var z = "__SET_SLOT_GRID_ITEM_CHILDREN__";
|
|
895
297
|
function dt(e) {
|
|
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
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
298
|
+
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(re({
|
|
300
|
+
children: v ? z : void 0,
|
|
301
|
+
align: n,
|
|
302
|
+
justify: r,
|
|
303
|
+
colSpan: i,
|
|
304
|
+
colStart: a,
|
|
305
|
+
id: o,
|
|
306
|
+
rowSpan: s,
|
|
307
|
+
rowSpanNarrow: c,
|
|
308
|
+
rowSpanWide: l,
|
|
309
|
+
rowStart: u,
|
|
310
|
+
rowStartNarrow: d,
|
|
311
|
+
rowStartWide: f,
|
|
312
|
+
colSpanNarrow: p,
|
|
313
|
+
colStartNarrow: m,
|
|
314
|
+
colSpanWide: h,
|
|
315
|
+
colStartWide: g
|
|
316
|
+
}), D(_), { ...v ? { [z]: t } : {} });
|
|
317
|
+
}
|
|
318
|
+
// src/components/heading/heading.tsx
|
|
319
|
+
var ft = "__SET_SLOT_HEADING_CHILDREN__";
|
|
320
|
+
function pt(e) {
|
|
321
|
+
let { align: t, children: n, id: r, level: i, linkVisited: a, opticalAlign: o, responsive: s, size: c, ...l } = e;
|
|
322
|
+
return E(ie({
|
|
323
|
+
align: t,
|
|
324
|
+
children: ft,
|
|
325
|
+
id: r,
|
|
326
|
+
level: i,
|
|
327
|
+
linkVisited: a,
|
|
328
|
+
opticalAlign: o,
|
|
329
|
+
responsive: s,
|
|
330
|
+
size: c
|
|
331
|
+
}), D(l), { [ft]: n });
|
|
332
|
+
}
|
|
333
|
+
// src/components/icon/icon.tsx
|
|
334
|
+
function mt(e) {
|
|
335
|
+
return E(ae(e), D(e));
|
|
336
|
+
}
|
|
337
|
+
// src/components/image/image.tsx
|
|
338
|
+
function ht(e) {
|
|
339
|
+
return S(() => {
|
|
340
|
+
Ne();
|
|
341
|
+
}, []), E(oe(e), D(e));
|
|
342
|
+
}
|
|
343
|
+
// src/components/inline/inline.tsx
|
|
344
|
+
var B = "__SET_SLOT_INLINE_CHILDREN__";
|
|
345
|
+
function gt(e) {
|
|
346
|
+
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(se({
|
|
348
|
+
as: t,
|
|
349
|
+
align: n,
|
|
350
|
+
children: l ? B : void 0,
|
|
351
|
+
gap: i,
|
|
352
|
+
id: a,
|
|
353
|
+
justify: o,
|
|
354
|
+
nowrap: s
|
|
355
|
+
}), D(c), { ...l ? { [B]: r } : {} });
|
|
356
|
+
}
|
|
357
|
+
// src/components/input/input.tsx
|
|
358
|
+
function _t(e) {
|
|
359
|
+
return E(ce(e), D(e));
|
|
360
|
+
}
|
|
361
|
+
// src/components/lightswitch/lightswitch.tsx
|
|
362
|
+
function vt(e, t) {
|
|
363
|
+
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
364
|
+
}
|
|
365
|
+
function yt(e) {
|
|
366
|
+
let { onChange: t, ref: n, ...r } = e;
|
|
367
|
+
S(() => {
|
|
368
|
+
Pe();
|
|
369
|
+
}, []);
|
|
370
|
+
let a = C(null);
|
|
371
|
+
S(() => {
|
|
372
|
+
let e = a.current;
|
|
373
|
+
if (e && t) return e.addEventListener(i, t), () => e.removeEventListener(i, t);
|
|
374
|
+
}, [t]);
|
|
375
|
+
let o = x((e) => {
|
|
376
|
+
a.current = e, vt(n, e);
|
|
377
|
+
}, [n]);
|
|
378
|
+
return E(le(e), {
|
|
379
|
+
...D(r),
|
|
380
|
+
ref: o
|
|
381
|
+
});
|
|
382
|
+
}
|
|
383
|
+
// src/components/link/link.tsx
|
|
384
|
+
var V = "__SET_SLOT_LINK_ICON__";
|
|
385
|
+
function bt(e) {
|
|
386
|
+
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(ue({
|
|
388
|
+
appearance: t,
|
|
389
|
+
current: n,
|
|
390
|
+
download: r,
|
|
391
|
+
href: i,
|
|
392
|
+
id: a,
|
|
393
|
+
icon: g ? V : void 0,
|
|
394
|
+
iconPlacement: s,
|
|
395
|
+
label: c,
|
|
396
|
+
labelVisibility: l,
|
|
397
|
+
rel: u,
|
|
398
|
+
size: d,
|
|
399
|
+
target: f,
|
|
400
|
+
tone: p,
|
|
401
|
+
underline: m
|
|
402
|
+
}), D(h), { ...g ? { [V]: o } : {} });
|
|
403
|
+
}
|
|
404
|
+
// src/components/logo/logo.tsx
|
|
405
|
+
function xt(e) {
|
|
406
|
+
return E(de(e), D(e));
|
|
407
|
+
}
|
|
408
|
+
// src/components/menu/menu.tsx
|
|
409
|
+
function St(e, t) {
|
|
410
|
+
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
411
|
+
}
|
|
412
|
+
function Ct(e) {
|
|
413
|
+
let { onChoose: t, ref: n, ...r } = e;
|
|
414
|
+
S(() => {
|
|
415
|
+
Fe();
|
|
416
|
+
}, []);
|
|
417
|
+
let i = C(null);
|
|
418
|
+
S(() => {
|
|
419
|
+
let e = i.current;
|
|
420
|
+
if (e && t) return e.addEventListener(a, t), () => e.removeEventListener(a, t);
|
|
421
|
+
}, [t]);
|
|
422
|
+
let o = x((e) => {
|
|
423
|
+
i.current = e, St(n, e);
|
|
424
|
+
}, [n]);
|
|
425
|
+
return E(fe(e), {
|
|
426
|
+
...D(r),
|
|
427
|
+
ref: o
|
|
428
|
+
});
|
|
429
|
+
}
|
|
430
|
+
// src/components/nav/nav.tsx
|
|
431
|
+
function wt(e) {
|
|
432
|
+
return S(() => {
|
|
433
|
+
Ie();
|
|
434
|
+
}, []), E(pe(e), D(e));
|
|
435
|
+
}
|
|
436
|
+
// src/components/page/page.tsx
|
|
437
|
+
var H = "__SET_SLOT_PAGE_BANNER__", U = "__SET_SLOT_PAGE_HEADER__", W = "__SET_SLOT_PAGE_CHILDREN__", G = "__SET_SLOT_PAGE_FOOTER__";
|
|
438
|
+
function Tt(e) {
|
|
439
|
+
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(me({
|
|
441
|
+
banner: d ? H : void 0,
|
|
442
|
+
children: f ? W : void 0,
|
|
443
|
+
centerMain: r,
|
|
444
|
+
header: U,
|
|
445
|
+
headerBorder: a,
|
|
446
|
+
headerSize: o,
|
|
447
|
+
id: s,
|
|
448
|
+
stickyHeader: c,
|
|
449
|
+
footer: G
|
|
450
|
+
}), D(u), {
|
|
451
|
+
...d ? { [H]: t } : {},
|
|
452
|
+
[U]: i,
|
|
453
|
+
...f ? { [W]: n } : {},
|
|
454
|
+
[G]: l
|
|
455
|
+
});
|
|
456
|
+
}
|
|
457
|
+
// src/components/panel/panel.tsx
|
|
458
|
+
var K = "__SET_SLOT_PANEL_CHILDREN__";
|
|
459
|
+
function Et(e) {
|
|
460
|
+
let { children: t, id: n, padding: r, surface: i, ...a } = e, o = t != null && t !== !1;
|
|
461
|
+
return E(he({
|
|
462
|
+
children: o ? K : void 0,
|
|
463
|
+
id: n,
|
|
464
|
+
padding: r,
|
|
465
|
+
surface: i
|
|
466
|
+
}), D(a), { ...o ? { [K]: t } : {} });
|
|
467
|
+
}
|
|
468
|
+
// src/components/pattern/pattern.tsx
|
|
469
|
+
var q = "__SET_SLOT_PATTERN_CHILDREN__";
|
|
470
|
+
function Dt(e) {
|
|
471
|
+
let { children: t, id: n, tone: r, size: i, variant: a, ...o } = e, s = t != null && t !== !1;
|
|
472
|
+
return E(ge({
|
|
473
|
+
children: s ? q : void 0,
|
|
474
|
+
id: n,
|
|
475
|
+
tone: r,
|
|
476
|
+
size: i,
|
|
477
|
+
variant: a
|
|
478
|
+
}), D(o), { ...s ? { [q]: t } : {} });
|
|
479
|
+
}
|
|
480
|
+
// src/components/poster/poster.tsx
|
|
481
|
+
var J = "__SET_SLOT_POSTER_MEDIA__", Y = "__SET_SLOT_POSTER_CHILDREN__";
|
|
482
|
+
function Ot(e) {
|
|
483
|
+
let { children: t, contentTheme: n, id: r, media: i, surface: a, ...o } = e, s = t != null && t !== !1;
|
|
484
|
+
return E(_e({
|
|
485
|
+
children: s ? Y : void 0,
|
|
486
|
+
contentTheme: n,
|
|
487
|
+
id: r,
|
|
488
|
+
media: J,
|
|
489
|
+
surface: a
|
|
490
|
+
}), D(o), {
|
|
491
|
+
[J]: i,
|
|
492
|
+
...s ? { [Y]: t } : {}
|
|
493
|
+
});
|
|
494
|
+
}
|
|
495
|
+
// src/components/prose/prose.tsx
|
|
496
|
+
var X = "__SET_SLOT_PROSE_CHILDREN__";
|
|
497
|
+
function kt(e) {
|
|
498
|
+
let { children: t, align: n, hangingPunctuation: r, id: i, linkVisited: a, measured: o, monospaced: s, responsive: c, ...l } = e;
|
|
499
|
+
return E(ve({
|
|
500
|
+
children: X,
|
|
501
|
+
align: n,
|
|
502
|
+
hangingPunctuation: r,
|
|
503
|
+
id: i,
|
|
504
|
+
linkVisited: a,
|
|
505
|
+
measured: o,
|
|
506
|
+
monospaced: s,
|
|
507
|
+
responsive: c
|
|
508
|
+
}), D(l), { [X]: t });
|
|
509
|
+
}
|
|
510
|
+
// src/components/radios/radios.tsx
|
|
511
|
+
function At(e) {
|
|
512
|
+
return E(ye(e), D(e));
|
|
513
|
+
}
|
|
514
|
+
// src/components/range/range.tsx
|
|
515
|
+
function jt(e) {
|
|
516
|
+
return S(() => {
|
|
517
|
+
Le();
|
|
518
|
+
}, []), E(be(e), D(e));
|
|
519
|
+
}
|
|
520
|
+
// src/components/root/root.tsx
|
|
521
|
+
var Z = "__SET_SLOT_ROOT_CHILDREN__";
|
|
522
|
+
function Mt(e) {
|
|
523
|
+
let { appOverscrollBehavior: t, appRoot: n, brand: r, children: i, dir: a, id: o, lang: s, theme: c, ...l } = e;
|
|
524
|
+
return E(xe({
|
|
525
|
+
appOverscrollBehavior: t,
|
|
526
|
+
appRoot: n,
|
|
527
|
+
brand: r,
|
|
528
|
+
children: Z,
|
|
529
|
+
dir: a,
|
|
530
|
+
id: o,
|
|
531
|
+
lang: s,
|
|
532
|
+
theme: c
|
|
533
|
+
}), D(l), { [Z]: i });
|
|
534
|
+
}
|
|
535
|
+
// src/components/sidebar/sidebar.tsx
|
|
536
|
+
var Q = "__SET_SLOT_SIDEBAR_HEADER__", Nt = "__SET_SLOT_SIDEBAR_CHILDREN__", Pt = "__SET_SLOT_SIDEBAR_FOOTER__";
|
|
537
|
+
function Ft(e) {
|
|
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 = Se({
|
|
539
|
+
aboveNotebook: t,
|
|
540
|
+
buttonSize: n,
|
|
541
|
+
children: f ? Nt : void 0,
|
|
542
|
+
collapseLabel: i,
|
|
543
|
+
footer: p ? Pt : void 0,
|
|
544
|
+
header: d ? Q : void 0,
|
|
545
|
+
id: s,
|
|
546
|
+
surface: c,
|
|
547
|
+
triggerLabel: l
|
|
548
|
+
});
|
|
549
|
+
return S(() => {
|
|
550
|
+
Re();
|
|
551
|
+
}, []), E(m, D(u), {
|
|
552
|
+
...d ? { [Q]: o } : {},
|
|
553
|
+
...f ? { [Nt]: r } : {},
|
|
554
|
+
...p ? { [Pt]: a } : {}
|
|
555
|
+
});
|
|
556
|
+
}
|
|
557
|
+
// src/components/spinner/spinner.tsx
|
|
558
|
+
function It(e) {
|
|
559
|
+
return E(Ce(e), D(e));
|
|
560
|
+
}
|
|
561
|
+
// src/components/stack/stack.tsx
|
|
562
|
+
var Lt = "__SET_SLOT_STACK_CHILDREN__";
|
|
563
|
+
function Rt(e) {
|
|
564
|
+
let { align: t, as: n, children: r, gap: i, id: a, responsive: o, ...s } = e, c = r != null && r !== !1;
|
|
565
|
+
return E(we({
|
|
566
|
+
align: t,
|
|
567
|
+
as: n,
|
|
568
|
+
children: c ? Lt : void 0,
|
|
569
|
+
gap: i,
|
|
570
|
+
id: a,
|
|
571
|
+
responsive: o
|
|
572
|
+
}), D(s), { ...c ? { [Lt]: r } : {} });
|
|
573
|
+
}
|
|
574
|
+
// src/components/surface/surface.tsx
|
|
575
|
+
var zt = "__SET_SLOT_SURFACE_CHILDREN__";
|
|
576
|
+
function Bt(e) {
|
|
577
|
+
let { children: t, contentTheme: n, id: r, variant: i, ...a } = e;
|
|
578
|
+
return E(Te({
|
|
579
|
+
children: zt,
|
|
580
|
+
contentTheme: n,
|
|
581
|
+
id: r,
|
|
582
|
+
variant: i
|
|
583
|
+
}), D(a), { [zt]: t });
|
|
584
|
+
}
|
|
585
|
+
// src/components/switch/switch.tsx
|
|
586
|
+
function Vt(e) {
|
|
587
|
+
return E(Ee(e), D(e));
|
|
588
|
+
}
|
|
589
|
+
// src/components/text/text.tsx
|
|
590
|
+
var $ = "__SET_SLOT_TEXT_CHILDREN__";
|
|
591
|
+
function Ht(e) {
|
|
592
|
+
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(De({
|
|
594
|
+
as: t,
|
|
595
|
+
children: $,
|
|
596
|
+
id: r,
|
|
597
|
+
linkVisited: i,
|
|
598
|
+
responsive: a,
|
|
599
|
+
align: o,
|
|
600
|
+
measured: s,
|
|
601
|
+
monospaced: c,
|
|
602
|
+
size: l,
|
|
603
|
+
tone: u
|
|
604
|
+
}), D(d), { [$]: n });
|
|
605
|
+
}
|
|
606
|
+
// src/components/textarea/textarea.tsx
|
|
607
|
+
function Ut(e) {
|
|
608
|
+
return E(Oe(e), D(e));
|
|
609
|
+
}
|
|
610
|
+
// src/components/video/video.tsx
|
|
611
|
+
function Wt(e) {
|
|
612
|
+
return S(() => {
|
|
613
|
+
ze();
|
|
614
|
+
}, []), E(ke(e), D(e));
|
|
615
|
+
}
|
|
616
|
+
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 Divider, st as Expander, ct as Fieldset, lt as Figure, ut as Grid, dt as GridItem, pt as Heading, mt as Icon, ht as Image, gt as Inline, _t as Input, yt as Lightswitch, bt as Link, xt as Logo, Ct as Menu, wt as Nav, Tt as Page, Et as Panel, 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 };
|
|
617
|
+
|
|
618
|
+
//# sourceMappingURL=index.js.map
|