@monospaced/set-react 0.25.0 → 0.26.0

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