@monospaced/set-react 0.17.0 → 0.19.0

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