@monospaced/set-react 0.13.0 → 0.14.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, buildSetImage as Be, buildSetInline as ke, buildSetInput as Fe, defineSetLightswitch as xe, SET_LIGHTSWITCH_EVENT_CHANGE as H, buildSetLightswitch as ye, buildSetLink as we, buildSetLogo as Ge, defineSetMenu as Me, SET_MENU_EVENT_CHOOSE as p, buildSetMenu as Ue, defineSetNav as Ve, buildSetNav as ze, buildSetPage as We, buildSetPanel as je, buildSetPattern as Ke, buildSetPoster as Qe, buildSetProse as qe, buildSetRadios as Xe, defineSetRange as $e, buildSetRange as Ye, buildSetRoot as Je, buildSetSidebar as Ze, defineSetSidebar as en, buildSetSpinner as nn, buildSetStack as tn, buildSetSurface as rn, buildSetSwitch as on, buildSetText as sn, buildSetTextarea as cn, defineSetVideo as ln, buildSetVideo as _n } from "@monospaced/set-core";
2
- import { defineSetComponents as St } from "@monospaced/set-core";
3
- import { createElement as T, Fragment as O, useEffect as E, useRef as I, useCallback as N } from "react";
4
- const an = {
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";
3
+ import { createElement as T, Fragment as O, useEffect as S, useRef as I, useCallback as N } from "react";
4
+ const un = {
5
5
  autocomplete: "autoComplete",
6
6
  class: "className",
7
7
  for: "htmlFor",
@@ -12,27 +12,27 @@ const an = {
12
12
  "stroke-linejoin": "strokeLinejoin",
13
13
  "stroke-width": "strokeWidth",
14
14
  tabindex: "tabIndex"
15
- }, un = /* @__PURE__ */ new Set(["input", "textarea", "select"]);
16
- function dn(e) {
15
+ }, dn = /* @__PURE__ */ new Set(["input", "textarea", "select"]);
16
+ function Sn(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 = an[t] ?? t;
21
+ const c = un[t] ?? t;
22
22
  n[c] = r === !0 && t.startsWith("data-") ? "" : r;
23
23
  }
24
24
  return n;
25
25
  }
26
- function Sn(e) {
26
+ function En(e) {
27
27
  const n = [], t = (r) => {
28
28
  if (r.kind === "element") {
29
- un.has(r.tag) && n.push(r);
29
+ dn.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 En(e) {
35
+ function fn(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 En(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 fn(e, n) {
43
+ function Tn(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
48
  function le(e, n, t) {
49
49
  const r = {
50
- ...dn(e.attrs),
50
+ ...Sn(e.attrs),
51
51
  ...n
52
52
  };
53
53
  if (e.tag === "textarea" && e.children.length > 0) {
@@ -73,7 +73,7 @@ function _e(e, n, t) {
73
73
  });
74
74
  const { props: r, children: c } = le(
75
75
  e,
76
- fn(e, t),
76
+ Tn(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);
@@ -86,7 +86,7 @@ function l(e, n = {}, t = {}) {
86
86
  primaryFirstExtras: {},
87
87
  primaryRestExtras: {}
88
88
  }));
89
- const r = Sn(e), c = r.length > 0 ? En(n) : {
89
+ const r = En(e), c = r.length > 0 ? fn(n) : {
90
90
  rootExtras: n,
91
91
  primaryFirstExtras: {},
92
92
  primaryRestExtras: {}
@@ -104,16 +104,16 @@ 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 Tn(e, n) {
107
+ function Ln(e, n) {
108
108
  typeof e == "function" ? e(n) : e && (e.current = n);
109
109
  }
110
- function Nn(e) {
110
+ function Cn(e) {
111
111
  const { onBeforeDismiss: n, onDismiss: t, ref: r, ...c } = e;
112
- E(() => {
112
+ S(() => {
113
113
  de();
114
114
  }, []);
115
115
  const s = I(null);
116
- E(() => {
116
+ S(() => {
117
117
  const o = s.current;
118
118
  if (!(!o || !n))
119
119
  return o.addEventListener(
@@ -123,7 +123,7 @@ function Nn(e) {
123
123
  b,
124
124
  n
125
125
  );
126
- }, [n]), E(() => {
126
+ }, [n]), S(() => {
127
127
  const o = s.current;
128
128
  if (!(!o || !t))
129
129
  return o.addEventListener(v, t), () => o.removeEventListener(
@@ -133,7 +133,7 @@ function Nn(e) {
133
133
  }, [t]);
134
134
  const i = N(
135
135
  (o) => {
136
- s.current = o, Tn(r, o);
136
+ s.current = o, Ln(r, o);
137
137
  },
138
138
  [r]
139
139
  );
@@ -142,28 +142,28 @@ function Nn(e) {
142
142
  ref: i
143
143
  });
144
144
  }
145
- function Cn(e) {
145
+ function mn(e) {
146
146
  return l(
147
147
  Ee(e),
148
148
  _(e)
149
149
  );
150
150
  }
151
- function mn(e) {
151
+ function Dn(e) {
152
152
  return l(
153
153
  fe(e),
154
154
  _(e)
155
155
  );
156
156
  }
157
- function Ln(e, n) {
157
+ function hn(e, n) {
158
158
  typeof e == "function" ? e(n) : e && (e.current = n);
159
159
  }
160
- function Dn(e) {
160
+ function bn(e) {
161
161
  const { onBeforeDismiss: n, onDismiss: t, ref: r, ...c } = e;
162
- E(() => {
162
+ S(() => {
163
163
  Te();
164
164
  }, []);
165
165
  const s = I(null);
166
- E(() => {
166
+ S(() => {
167
167
  const o = s.current;
168
168
  if (!(!o || !n))
169
169
  return o.addEventListener(
@@ -173,7 +173,7 @@ function Dn(e) {
173
173
  g,
174
174
  n
175
175
  );
176
- }, [n]), E(() => {
176
+ }, [n]), S(() => {
177
177
  const o = s.current;
178
178
  if (!(!o || !t))
179
179
  return o.addEventListener(A, t), () => o.removeEventListener(
@@ -183,7 +183,7 @@ function Dn(e) {
183
183
  }, [t]);
184
184
  const i = N(
185
185
  (o) => {
186
- s.current = o, Ln(r, o);
186
+ s.current = o, hn(r, o);
187
187
  },
188
188
  [r]
189
189
  );
@@ -193,7 +193,7 @@ function Dn(e) {
193
193
  });
194
194
  }
195
195
  const P = "__SET_SLOT_BLOCKQUOTE_QUOTE__", B = "__SET_SLOT_BLOCKQUOTE_ATTRIBUTION__";
196
- function bn(e) {
196
+ function vn(e) {
197
197
  const { align: n, attribution: t, id: r, measured: c, quote: s, responsive: i, size: o, ...a } = e, u = he({
198
198
  align: n,
199
199
  attribution: B,
@@ -213,7 +213,7 @@ function bn(e) {
213
213
  );
214
214
  }
215
215
  const k = "__SET_SLOT_BOX_CHILDREN__";
216
- function vn(e) {
216
+ function gn(e) {
217
217
  const {
218
218
  background: n,
219
219
  border: t,
@@ -225,10 +225,10 @@ function vn(e) {
225
225
  responsive: a,
226
226
  surface: u,
227
227
  ...d
228
- } = e, S = r != null && r !== !1, f = Re({
228
+ } = e, E = r != null && r !== !1, f = Re({
229
229
  background: n,
230
230
  border: t,
231
- children: S ? k : void 0,
231
+ children: E ? k : void 0,
232
232
  id: c,
233
233
  paddingBlock: s,
234
234
  paddingInline: i,
@@ -240,18 +240,18 @@ function vn(e) {
240
240
  f,
241
241
  _(d),
242
242
  {
243
- ...S ? { [k]: r } : {}
243
+ ...E ? { [k]: r } : {}
244
244
  }
245
245
  );
246
246
  }
247
- function gn(e) {
247
+ function An(e) {
248
248
  return l(
249
249
  Oe(e),
250
250
  _(e)
251
251
  );
252
252
  }
253
253
  const F = "__SET_SLOT_CARD_DESCRIPTION__", x = "__SET_SLOT_CARD_NOTE__";
254
- function An(e) {
254
+ function Hn(e) {
255
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({
256
256
  description: F,
257
257
  headingLevel: t,
@@ -270,14 +270,14 @@ function An(e) {
270
270
  }
271
271
  );
272
272
  }
273
- function Hn(e) {
273
+ function pn(e) {
274
274
  return l(
275
275
  Ne(e),
276
276
  _(e)
277
277
  );
278
278
  }
279
279
  const y = "__SET_SLOT_CONTAINER_CHILDREN__";
280
- function pn(e) {
280
+ function Pn(e) {
281
281
  const { children: n, gutter: t, id: r, maxInlineSize: c, ...s } = e, i = n != null && n !== !1, o = Ce({
282
282
  children: i ? y : void 0,
283
283
  gutter: t,
@@ -293,7 +293,7 @@ function pn(e) {
293
293
  );
294
294
  }
295
295
  const w = "__SET_SLOT_DETAILS_CHILDREN__";
296
- function Pn(e) {
296
+ function Bn(e) {
297
297
  const { children: n, id: t, inlineSize: r, open: c, summary: s, ...i } = e, o = n != null && n !== !1, a = me({
298
298
  children: o ? w : void 0,
299
299
  id: t,
@@ -309,20 +309,20 @@ function Pn(e) {
309
309
  }
310
310
  );
311
311
  }
312
- function Bn(e) {
312
+ function kn(e) {
313
313
  return l(
314
314
  De(e),
315
315
  _(e)
316
316
  );
317
317
  }
318
- function kn(e) {
318
+ function Fn(e) {
319
319
  return l(
320
320
  be(e),
321
321
  _(e)
322
322
  );
323
323
  }
324
324
  const G = "__SET_SLOT_FIELDSET_CHILDREN__";
325
- function Fn(e) {
325
+ function xn(e) {
326
326
  const {
327
327
  children: n,
328
328
  description: t,
@@ -350,7 +350,7 @@ function Fn(e) {
350
350
  );
351
351
  }
352
352
  const M = "__SET_SLOT_FIGURE_CHILDREN__", U = "__SET_SLOT_FIGURE_CAPTION__";
353
- function xn(e) {
353
+ function yn(e) {
354
354
  const { align: n, caption: t, children: r, id: c, inlineSize: s, responsive: i, ...o } = e, a = ge({
355
355
  align: n,
356
356
  caption: U,
@@ -369,7 +369,7 @@ function xn(e) {
369
369
  );
370
370
  }
371
371
  const V = "__SET_SLOT_GRID_CHILDREN__";
372
- function yn(e) {
372
+ function wn(e) {
373
373
  const { children: n, gap: t, id: r, ...c } = e, s = n != null && n !== !1, i = Ae({
374
374
  children: s ? V : void 0,
375
375
  gap: t,
@@ -384,7 +384,7 @@ function yn(e) {
384
384
  );
385
385
  }
386
386
  const z = "__SET_SLOT_GRID_ITEM_CHILDREN__";
387
- function wn(e) {
387
+ function Gn(e) {
388
388
  const {
389
389
  children: n,
390
390
  align: t,
@@ -396,7 +396,7 @@ function wn(e) {
396
396
  rowSpanNarrow: a,
397
397
  rowSpanWide: u,
398
398
  rowStart: d,
399
- rowStartNarrow: S,
399
+ rowStartNarrow: E,
400
400
  rowStartWide: f,
401
401
  colSpanNarrow: L,
402
402
  colStartNarrow: h,
@@ -414,7 +414,7 @@ function wn(e) {
414
414
  rowSpanNarrow: a,
415
415
  rowSpanWide: u,
416
416
  rowStart: d,
417
- rowStartNarrow: S,
417
+ rowStartNarrow: E,
418
418
  rowStartWide: f,
419
419
  colSpanNarrow: L,
420
420
  colStartNarrow: h,
@@ -429,27 +429,29 @@ function wn(e) {
429
429
  }
430
430
  );
431
431
  }
432
- function Gn(e) {
432
+ function Mn(e) {
433
433
  return l(
434
434
  pe(e),
435
435
  _(e)
436
436
  );
437
437
  }
438
- function Mn(e) {
438
+ function Un(e) {
439
439
  return l(
440
440
  Pe(e),
441
441
  _(e)
442
442
  );
443
443
  }
444
- function Un(e) {
445
- return l(
446
- Be(e),
444
+ function Vn(e) {
445
+ return S(() => {
446
+ Be();
447
+ }, []), l(
448
+ ke(e),
447
449
  _(e)
448
450
  );
449
451
  }
450
452
  const W = "__SET_SLOT_INLINE_CHILDREN__";
451
- function Vn(e) {
452
- const { as: n, align: t, children: r, gap: c, id: s, justify: i, nowrap: o, ...a } = e, u = r != null && r !== !1, d = ke({
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({
453
455
  as: n,
454
456
  align: t,
455
457
  children: u ? W : void 0,
@@ -466,22 +468,22 @@ function Vn(e) {
466
468
  }
467
469
  );
468
470
  }
469
- function zn(e) {
471
+ function Wn(e) {
470
472
  return l(
471
- Fe(e),
473
+ xe(e),
472
474
  _(e)
473
475
  );
474
476
  }
475
- function hn(e, n) {
477
+ function Rn(e, n) {
476
478
  typeof e == "function" ? e(n) : e && (e.current = n);
477
479
  }
478
- function Wn(e) {
480
+ function jn(e) {
479
481
  const { onChange: n, ref: t, ...r } = e;
480
- E(() => {
481
- xe();
482
+ S(() => {
483
+ ye();
482
484
  }, []);
483
485
  const c = I(null);
484
- E(() => {
486
+ S(() => {
485
487
  const i = c.current;
486
488
  if (!(!i || !n))
487
489
  return i.addEventListener(
@@ -494,17 +496,17 @@ function Wn(e) {
494
496
  }, [n]);
495
497
  const s = N(
496
498
  (i) => {
497
- c.current = i, hn(t, i);
499
+ c.current = i, Rn(t, i);
498
500
  },
499
501
  [t]
500
502
  );
501
- return l(ye(e), {
503
+ return l(we(e), {
502
504
  ..._(r),
503
505
  ref: s
504
506
  });
505
507
  }
506
508
  const j = "__SET_SLOT_LINK_ICON__";
507
- function jn(e) {
509
+ function Kn(e) {
508
510
  const {
509
511
  appearance: n,
510
512
  current: t,
@@ -516,12 +518,12 @@ function jn(e) {
516
518
  label: a,
517
519
  labelVisibility: u,
518
520
  rel: d,
519
- size: S,
521
+ size: E,
520
522
  target: f,
521
523
  tone: L,
522
524
  underline: h,
523
525
  ...C
524
- } = e, R = i != null && i !== !1, m = we({
526
+ } = e, R = i != null && i !== !1, m = Ge({
525
527
  appearance: n,
526
528
  current: t,
527
529
  download: r,
@@ -532,7 +534,7 @@ function jn(e) {
532
534
  label: a,
533
535
  labelVisibility: u,
534
536
  rel: d,
535
- size: S,
537
+ size: E,
536
538
  target: f,
537
539
  tone: L,
538
540
  underline: h
@@ -545,47 +547,47 @@ function jn(e) {
545
547
  }
546
548
  );
547
549
  }
548
- function Kn(e) {
550
+ function Qn(e) {
549
551
  return l(
550
- Ge(e),
552
+ Me(e),
551
553
  _(e)
552
554
  );
553
555
  }
554
- function Rn(e, n) {
556
+ function On(e, n) {
555
557
  typeof e == "function" ? e(n) : e && (e.current = n);
556
558
  }
557
- function Qn(e) {
559
+ function qn(e) {
558
560
  const { onChoose: n, ref: t, ...r } = e;
559
- E(() => {
560
- Me();
561
+ S(() => {
562
+ Ue();
561
563
  }, []);
562
564
  const c = I(null);
563
- E(() => {
565
+ S(() => {
564
566
  const i = c.current;
565
567
  if (!(!i || !n))
566
568
  return i.addEventListener(p, n), () => i.removeEventListener(p, n);
567
569
  }, [n]);
568
570
  const s = N(
569
571
  (i) => {
570
- c.current = i, Rn(t, i);
572
+ c.current = i, On(t, i);
571
573
  },
572
574
  [t]
573
575
  );
574
- return l(Ue(e), {
576
+ return l(Ve(e), {
575
577
  ..._(r),
576
578
  ref: s
577
579
  });
578
580
  }
579
- function qn(e) {
580
- return E(() => {
581
- Ve();
581
+ function Xn(e) {
582
+ return S(() => {
583
+ ze();
582
584
  }, []), l(
583
- ze(e),
585
+ We(e),
584
586
  _(e)
585
587
  );
586
588
  }
587
589
  const K = "__SET_SLOT_PAGE_BANNER__", Q = "__SET_SLOT_PAGE_HEADER__", q = "__SET_SLOT_PAGE_CHILDREN__", X = "__SET_SLOT_PAGE_FOOTER__";
588
- function Xn(e) {
590
+ function $n(e) {
589
591
  const {
590
592
  banner: n,
591
593
  children: t,
@@ -597,8 +599,8 @@ function Xn(e) {
597
599
  stickyHeader: a,
598
600
  footer: u,
599
601
  ...d
600
- } = e, S = n != null && n !== !1, f = t != null && t !== !1, L = We({
601
- banner: S ? K : void 0,
602
+ } = e, E = n != null && n !== !1, f = t != null && t !== !1, L = je({
603
+ banner: E ? K : void 0,
602
604
  children: f ? q : void 0,
603
605
  centerMain: r,
604
606
  header: Q,
@@ -612,7 +614,7 @@ function Xn(e) {
612
614
  L,
613
615
  _(d),
614
616
  {
615
- ...S ? { [K]: n } : {},
617
+ ...E ? { [K]: n } : {},
616
618
  [Q]: c,
617
619
  ...f ? { [q]: t } : {},
618
620
  [X]: u
@@ -620,8 +622,8 @@ function Xn(e) {
620
622
  );
621
623
  }
622
624
  const $ = "__SET_SLOT_PANEL_CHILDREN__";
623
- function $n(e) {
624
- const { children: n, id: t, padding: r, surface: c, ...s } = e, i = n != null && n !== !1, o = je({
625
+ function Yn(e) {
626
+ const { children: n, id: t, padding: r, surface: c, ...s } = e, i = n != null && n !== !1, o = Ke({
625
627
  children: i ? $ : void 0,
626
628
  id: t,
627
629
  padding: r,
@@ -636,8 +638,8 @@ function $n(e) {
636
638
  );
637
639
  }
638
640
  const Y = "__SET_SLOT_PATTERN_CHILDREN__";
639
- function Yn(e) {
640
- const { children: n, id: t, tone: r, size: c, variant: s, ...i } = e, o = n != null && n !== !1, a = Ke({
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({
641
643
  children: o ? Y : void 0,
642
644
  id: t,
643
645
  tone: r,
@@ -653,8 +655,8 @@ function Yn(e) {
653
655
  );
654
656
  }
655
657
  const J = "__SET_SLOT_POSTER_MEDIA__", Z = "__SET_SLOT_POSTER_CHILDREN__";
656
- function Jn(e) {
657
- const { children: n, contentTheme: t, id: r, media: c, surface: s, ...i } = e, o = n != null && n !== !1, a = Qe({
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({
658
660
  children: o ? Z : void 0,
659
661
  contentTheme: t,
660
662
  id: r,
@@ -671,7 +673,7 @@ function Jn(e) {
671
673
  );
672
674
  }
673
675
  const ee = "__SET_SLOT_PROSE_CHILDREN__";
674
- function Zn(e) {
676
+ function et(e) {
675
677
  const {
676
678
  children: n,
677
679
  align: t,
@@ -682,7 +684,7 @@ function Zn(e) {
682
684
  monospaced: o,
683
685
  responsive: a,
684
686
  ...u
685
- } = e, d = qe({
687
+ } = e, d = Xe({
686
688
  children: ee,
687
689
  align: t,
688
690
  hangingPunctuation: r,
@@ -700,22 +702,22 @@ function Zn(e) {
700
702
  }
701
703
  );
702
704
  }
703
- function et(e) {
705
+ function nt(e) {
704
706
  return l(
705
- Xe(e),
707
+ $e(e),
706
708
  _(e)
707
709
  );
708
710
  }
709
- function nt(e) {
710
- return E(() => {
711
- $e();
711
+ function tt(e) {
712
+ return S(() => {
713
+ Ye();
712
714
  }, []), l(
713
- Ye(e),
715
+ Je(e),
714
716
  _(e)
715
717
  );
716
718
  }
717
719
  const ne = "__SET_SLOT_ROOT_CHILDREN__";
718
- function tt(e) {
720
+ function rt(e) {
719
721
  const {
720
722
  appOverscrollBehavior: n,
721
723
  appRoot: t,
@@ -726,7 +728,7 @@ function tt(e) {
726
728
  lang: o,
727
729
  theme: a,
728
730
  ...u
729
- } = e, d = Je({
731
+ } = e, d = Ze({
730
732
  appOverscrollBehavior: n,
731
733
  appRoot: t,
732
734
  brand: r,
@@ -745,7 +747,7 @@ function tt(e) {
745
747
  );
746
748
  }
747
749
  const te = "__SET_SLOT_SIDEBAR_HEADER__", re = "__SET_SLOT_SIDEBAR_CHILDREN__", ie = "__SET_SLOT_SIDEBAR_FOOTER__";
748
- function rt(e) {
750
+ function it(e) {
749
751
  const {
750
752
  aboveNotebook: n,
751
753
  buttonSize: t,
@@ -757,38 +759,38 @@ function rt(e) {
757
759
  surface: a,
758
760
  triggerLabel: u,
759
761
  ...d
760
- } = e, S = i != null && i !== !1, f = r != null && r !== !1, L = s != null && s !== !1, h = Ze({
762
+ } = e, E = i != null && i !== !1, f = r != null && r !== !1, L = s != null && s !== !1, h = en({
761
763
  aboveNotebook: n,
762
764
  buttonSize: t,
763
765
  children: f ? re : void 0,
764
766
  collapseLabel: c,
765
767
  footer: L ? ie : void 0,
766
- header: S ? te : void 0,
768
+ header: E ? te : void 0,
767
769
  id: o,
768
770
  surface: a,
769
771
  triggerLabel: u
770
772
  });
771
- return E(() => {
772
- en();
773
+ return S(() => {
774
+ nn();
773
775
  }, []), l(
774
776
  h,
775
777
  _(d),
776
778
  {
777
- ...S ? { [te]: i } : {},
779
+ ...E ? { [te]: i } : {},
778
780
  ...f ? { [re]: r } : {},
779
781
  ...L ? { [ie]: s } : {}
780
782
  }
781
783
  );
782
784
  }
783
- function it(e) {
785
+ function ot(e) {
784
786
  return l(
785
- nn(e),
787
+ tn(e),
786
788
  _(e)
787
789
  );
788
790
  }
789
791
  const oe = "__SET_SLOT_STACK_CHILDREN__";
790
- function ot(e) {
791
- const { align: n, as: t, children: r, gap: c, id: s, responsive: i, ...o } = e, a = r != null && r !== !1, u = tn({
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({
792
794
  align: n,
793
795
  as: t,
794
796
  children: a ? oe : void 0,
@@ -805,8 +807,8 @@ function ot(e) {
805
807
  );
806
808
  }
807
809
  const se = "__SET_SLOT_SURFACE_CHILDREN__";
808
- function st(e) {
809
- const { children: n, contentTheme: t, id: r, variant: c, ...s } = e, i = rn({
810
+ function ct(e) {
811
+ const { children: n, contentTheme: t, id: r, variant: c, ...s } = e, i = on({
810
812
  children: se,
811
813
  contentTheme: t,
812
814
  id: r,
@@ -820,14 +822,14 @@ function st(e) {
820
822
  }
821
823
  );
822
824
  }
823
- function ct(e) {
825
+ function lt(e) {
824
826
  return l(
825
- on(e),
827
+ sn(e),
826
828
  _(e)
827
829
  );
828
830
  }
829
831
  const ce = "__SET_SLOT_TEXT_CHILDREN__";
830
- function lt(e) {
832
+ function _t(e) {
831
833
  const {
832
834
  as: n,
833
835
  children: t,
@@ -839,8 +841,8 @@ function lt(e) {
839
841
  monospaced: a,
840
842
  size: u,
841
843
  tone: d,
842
- ...S
843
- } = e, f = sn({
844
+ ...E
845
+ } = e, f = cn({
844
846
  as: n,
845
847
  children: ce,
846
848
  id: r,
@@ -854,70 +856,70 @@ function lt(e) {
854
856
  });
855
857
  return l(
856
858
  f,
857
- _(S),
859
+ _(E),
858
860
  {
859
861
  [ce]: t
860
862
  }
861
863
  );
862
864
  }
863
- function _t(e) {
865
+ function at(e) {
864
866
  return l(
865
- cn(e),
867
+ ln(e),
866
868
  _(e)
867
869
  );
868
870
  }
869
- function at(e) {
870
- return E(() => {
871
- ln();
871
+ function ut(e) {
872
+ return S(() => {
873
+ _n();
872
874
  }, []), l(
873
- _n(e),
875
+ an(e),
874
876
  _(e)
875
877
  );
876
878
  }
877
879
  export {
878
- Nn as Alert,
879
- Cn as Avatar,
880
- mn as Badge,
881
- Dn as Banner,
882
- bn as Blockquote,
883
- vn as Box,
884
- gn as Button,
885
- An as Card,
886
- Hn as Checkbox,
887
- pn as Container,
888
- Pn as Details,
889
- Bn as Divider,
890
- kn as Expander,
891
- Fn as Fieldset,
892
- xn as Figure,
893
- yn as Grid,
894
- wn as GridItem,
895
- Gn as Heading,
896
- Mn as Icon,
897
- Un as Image,
898
- Vn as Inline,
899
- zn as Input,
900
- Wn as Lightswitch,
901
- jn as Link,
902
- Kn as Logo,
903
- Qn as Menu,
904
- qn as Nav,
905
- Xn as Page,
906
- $n as Panel,
907
- Yn as Pattern,
908
- Jn as Poster,
909
- Zn as Prose,
910
- et as Radios,
911
- nt as Range,
912
- tt as Root,
913
- rt as Sidebar,
914
- it as Spinner,
915
- ot as Stack,
916
- st as Surface,
917
- ct as Switch,
918
- lt as Text,
919
- _t as Textarea,
920
- at as Video,
921
- St as defineSetAll
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,
895
+ 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
922
924
  };
923
925
  //# sourceMappingURL=index.js.map