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