@bedrock-layout/solid 1.1.3 → 1.1.5

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/lib/index.m.js CHANGED
@@ -1,10 +1,49 @@
1
- import oe from "open-props";
2
- import { createRenderEffect as A, sharedConfig as d, splitProps as X, createMemo as I, $DEVCOMP as re, untrack as v, createComponent as E, mergeProps as y, createContext as ce, useContext as le, createSignal as T, onMount as U, createEffect as q, onCleanup as Q, children as fe } from "solid-js";
3
- import { init as Y, registerCallback as J } from "@bedrock-layout/register-resize-callback";
4
- const ae = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"], ue = /* @__PURE__ */ new Set(["className", "value", "readOnly", "formNoValidate", "isMap", "noModule", "playsInline", ...ae]), de = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), ye = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
1
+ import se from "open-props";
2
+ import { createRenderEffect as w, sharedConfig as d, splitProps as V, createMemo as T, untrack as W, createComponent as E, mergeProps as y, createContext as oe, useContext as ce, createSignal as O, onMount as X, createEffect as U, onCleanup as q, children as re } from "solid-js";
3
+ import { init as Q, registerCallback as Y } from "@bedrock-layout/register-resize-callback";
4
+ const le = [
5
+ "allowfullscreen",
6
+ "async",
7
+ "autofocus",
8
+ "autoplay",
9
+ "checked",
10
+ "controls",
11
+ "default",
12
+ "disabled",
13
+ "formnovalidate",
14
+ "hidden",
15
+ "indeterminate",
16
+ "ismap",
17
+ "loop",
18
+ "multiple",
19
+ "muted",
20
+ "nomodule",
21
+ "novalidate",
22
+ "open",
23
+ "playsinline",
24
+ "readonly",
25
+ "required",
26
+ "reversed",
27
+ "seamless",
28
+ "selected"
29
+ ], fe = /* @__PURE__ */ new Set([
30
+ "className",
31
+ "value",
32
+ "readOnly",
33
+ "formNoValidate",
34
+ "isMap",
35
+ "noModule",
36
+ "playsInline",
37
+ ...le
38
+ ]), ae = /* @__PURE__ */ new Set([
39
+ "innerHTML",
40
+ "textContent",
41
+ "innerText",
42
+ "children"
43
+ ]), ue = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
5
44
  className: "class",
6
45
  htmlFor: "for"
7
- }), me = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
46
+ }), de = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
8
47
  class: "className",
9
48
  formnovalidate: {
10
49
  $: "formNoValidate",
@@ -29,11 +68,34 @@ const ae = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "con
29
68
  TEXTAREA: 1
30
69
  }
31
70
  });
32
- function he(e, t) {
33
- const n = me[e];
71
+ function ye(e, t) {
72
+ const n = de[e];
34
73
  return typeof n == "object" ? n[t] ? n.$ : void 0 : n;
35
74
  }
36
- const ge = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]), be = /* @__PURE__ */ new Set([
75
+ const me = /* @__PURE__ */ new Set([
76
+ "beforeinput",
77
+ "click",
78
+ "dblclick",
79
+ "contextmenu",
80
+ "focusin",
81
+ "focusout",
82
+ "input",
83
+ "keydown",
84
+ "keyup",
85
+ "mousedown",
86
+ "mousemove",
87
+ "mouseout",
88
+ "mouseover",
89
+ "mouseup",
90
+ "pointerdown",
91
+ "pointermove",
92
+ "pointerout",
93
+ "pointerover",
94
+ "pointerup",
95
+ "touchend",
96
+ "touchmove",
97
+ "touchstart"
98
+ ]), he = /* @__PURE__ */ new Set([
37
99
  "altGlyph",
38
100
  "altGlyphDef",
39
101
  "altGlyphItem",
@@ -110,172 +172,169 @@ const ge = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "context
110
172
  "use",
111
173
  "view",
112
174
  "vkern"
113
- ]), $e = {
175
+ ]), ge = {
114
176
  xlink: "http://www.w3.org/1999/xlink",
115
177
  xml: "http://www.w3.org/XML/1998/namespace"
116
178
  };
117
- function xe(e, t, n) {
118
- let i = n.length, s = t.length, r = i, c = 0, o = 0, l = t[s - 1].nextSibling, f = null;
119
- for (; c < s || o < r; ) {
120
- if (t[c] === n[o]) {
121
- c++, o++;
179
+ function $e(e, t, n) {
180
+ let i = n.length, s = t.length, c = i, r = 0, o = 0, l = t[s - 1].nextSibling, f = null;
181
+ for (; r < s || o < c; ) {
182
+ if (t[r] === n[o]) {
183
+ r++, o++;
122
184
  continue;
123
185
  }
124
- for (; t[s - 1] === n[r - 1]; )
125
- s--, r--;
126
- if (s === c) {
127
- const a = r < i ? o ? n[o - 1].nextSibling : n[r - o] : l;
128
- for (; o < r; )
186
+ for (; t[s - 1] === n[c - 1]; )
187
+ s--, c--;
188
+ if (s === r) {
189
+ const a = c < i ? o ? n[o - 1].nextSibling : n[c - o] : l;
190
+ for (; o < c; )
129
191
  e.insertBefore(n[o++], a);
130
- } else if (r === o)
131
- for (; c < s; )
132
- (!f || !f.has(t[c])) && t[c].remove(), c++;
133
- else if (t[c] === n[r - 1] && n[o] === t[s - 1]) {
192
+ } else if (c === o)
193
+ for (; r < s; )
194
+ (!f || !f.has(t[r])) && t[r].remove(), r++;
195
+ else if (t[r] === n[c - 1] && n[o] === t[s - 1]) {
134
196
  const a = t[--s].nextSibling;
135
- e.insertBefore(n[o++], t[c++].nextSibling), e.insertBefore(n[--r], a), t[s] = n[r];
197
+ e.insertBefore(n[o++], t[r++].nextSibling), e.insertBefore(n[--c], a), t[s] = n[c];
136
198
  } else {
137
199
  if (!f) {
138
200
  f = /* @__PURE__ */ new Map();
139
201
  let u = o;
140
- for (; u < r; )
202
+ for (; u < c; )
141
203
  f.set(n[u], u++);
142
204
  }
143
- const a = f.get(t[c]);
205
+ const a = f.get(t[r]);
144
206
  if (a != null)
145
- if (o < a && a < r) {
146
- let u = c, b = 1, S;
147
- for (; ++u < s && u < r && !((S = f.get(t[u])) == null || S !== a + b); )
148
- b++;
149
- if (b > a - o) {
150
- const M = t[c];
207
+ if (o < a && a < c) {
208
+ let u = r, $ = 1, S;
209
+ for (; ++u < s && u < c && !((S = f.get(t[u])) == null || S !== a + $); )
210
+ $++;
211
+ if ($ > a - o) {
212
+ const z = t[r];
151
213
  for (; o < a; )
152
- e.insertBefore(n[o++], M);
214
+ e.insertBefore(n[o++], z);
153
215
  } else
154
- e.replaceChild(n[o++], t[c++]);
216
+ e.replaceChild(n[o++], t[r++]);
155
217
  } else
156
- c++;
218
+ r++;
157
219
  else
158
- t[c++].remove();
220
+ t[r++].remove();
159
221
  }
160
222
  }
161
223
  }
162
- const R = "_$DX_DELEGATE";
163
- function Z(e, t, n) {
224
+ const D = "_$DX_DELEGATE";
225
+ function J(e, t, n) {
164
226
  let i;
165
227
  const s = () => {
166
- const c = document.createElement("template");
167
- return c.innerHTML = e, n ? c.content.firstChild.firstChild : c.content.firstChild;
168
- }, r = t ? () => v(() => document.importNode(i || (i = s()), !0)) : () => (i || (i = s())).cloneNode(!0);
169
- return r.cloneNode = r, r;
228
+ const r = document.createElement("template");
229
+ return r.innerHTML = e, n ? r.content.firstChild.firstChild : r.content.firstChild;
230
+ }, c = t ? () => W(() => document.importNode(i || (i = s()), !0)) : () => (i || (i = s())).cloneNode(!0);
231
+ return c.cloneNode = c, c;
170
232
  }
171
- function Se(e, t = window.document) {
172
- const n = t[R] || (t[R] = /* @__PURE__ */ new Set());
233
+ function be(e, t = window.document) {
234
+ const n = t[D] || (t[D] = /* @__PURE__ */ new Set());
173
235
  for (let i = 0, s = e.length; i < s; i++) {
174
- const r = e[i];
175
- n.has(r) || (n.add(r), t.addEventListener(r, Me));
236
+ const c = e[i];
237
+ n.has(c) || (n.add(c), t.addEventListener(c, Oe));
176
238
  }
177
239
  }
178
240
  function N(e, t, n) {
179
- n == null ? e.removeAttribute(t) : e.setAttribute(t, n);
241
+ d.context || (n == null ? e.removeAttribute(t) : e.setAttribute(t, n));
180
242
  }
181
- function Ae(e, t, n, i) {
182
- i == null ? e.removeAttributeNS(t, n) : e.setAttributeNS(t, n, i);
243
+ function xe(e, t, n, i) {
244
+ d.context || (i == null ? e.removeAttributeNS(t, n) : e.setAttributeNS(t, n, i));
183
245
  }
184
- function we(e, t) {
185
- t == null ? e.removeAttribute("class") : e.className = t;
246
+ function Se(e, t) {
247
+ d.context || (t == null ? e.removeAttribute("class") : e.className = t);
186
248
  }
187
- function je(e, t, n, i) {
249
+ function we(e, t, n, i) {
188
250
  if (i)
189
251
  Array.isArray(n) ? (e[`$$${t}`] = n[0], e[`$$${t}Data`] = n[1]) : e[`$$${t}`] = n;
190
252
  else if (Array.isArray(n)) {
191
253
  const s = n[0];
192
- e.addEventListener(t, n[0] = (r) => s.call(e, n[1], r));
254
+ e.addEventListener(t, n[0] = (c) => s.call(e, n[1], c));
193
255
  } else
194
256
  e.addEventListener(t, n);
195
257
  }
196
- function Ce(e, t, n = {}) {
258
+ function je(e, t, n = {}) {
197
259
  const i = Object.keys(t || {}), s = Object.keys(n);
198
- let r, c;
199
- for (r = 0, c = s.length; r < c; r++) {
200
- const o = s[r];
201
- !o || o === "undefined" || t[o] || (H(e, o, !1), delete n[o]);
260
+ let c, r;
261
+ for (c = 0, r = s.length; c < r; c++) {
262
+ const o = s[c];
263
+ !o || o === "undefined" || t[o] || (G(e, o, !1), delete n[o]);
202
264
  }
203
- for (r = 0, c = i.length; r < c; r++) {
204
- const o = i[r], l = !!t[o];
205
- !o || o === "undefined" || n[o] === l || !l || (H(e, o, !0), n[o] = l);
265
+ for (c = 0, r = i.length; c < r; c++) {
266
+ const o = i[c], l = !!t[o];
267
+ !o || o === "undefined" || n[o] === l || !l || (G(e, o, !0), n[o] = l);
206
268
  }
207
269
  return n;
208
270
  }
209
- function K(e, t, n) {
271
+ function Z(e, t, n) {
210
272
  if (!t)
211
273
  return n ? N(e, "style") : t;
212
274
  const i = e.style;
213
275
  if (typeof t == "string")
214
276
  return i.cssText = t;
215
277
  typeof n == "string" && (i.cssText = n = void 0), n || (n = {}), t || (t = {});
216
- let s, r;
217
- for (r in n)
218
- t[r] == null && i.removeProperty(r), delete n[r];
219
- for (r in t)
220
- s = t[r], s !== n[r] && (i.setProperty(r, s), n[r] = s);
278
+ let s, c;
279
+ for (c in n)
280
+ t[c] == null && i.removeProperty(c), delete n[c];
281
+ for (c in t)
282
+ s = t[c], s !== n[c] && (i.setProperty(c, s), n[c] = s);
221
283
  return n;
222
284
  }
223
- function Ee(e, t = {}, n, i) {
285
+ function Ae(e, t = {}, n, i) {
224
286
  const s = {};
225
- return i || A(() => s.children = j(e, t.children, s.children)), A(() => t.ref && t.ref(e)), A(() => Te(e, t, n, !0, s, !0)), s;
287
+ return i || w(
288
+ () => s.children = A(e, t.children, s.children)
289
+ ), w(() => t.ref && t.ref(e)), w(() => Ee(e, t, n, !0, s, !0)), s;
226
290
  }
227
- function Ie(e, t, n) {
228
- return v(() => e(t, n));
291
+ function Ce(e, t, n) {
292
+ return W(() => e(t, n));
229
293
  }
230
- function p(e, t, n, i) {
294
+ function K(e, t, n, i) {
231
295
  if (n !== void 0 && !i && (i = []), typeof t != "function")
232
- return j(e, t, i, n);
233
- A((s) => j(e, t(), s, n), i);
296
+ return A(e, t, i, n);
297
+ w((s) => A(e, t(), s, n), i);
234
298
  }
235
- function Te(e, t, n, i, s = {}, r = !1) {
299
+ function Ee(e, t, n, i, s = {}, c = !1) {
236
300
  t || (t = {});
237
- for (const c in s)
238
- if (!(c in t)) {
239
- if (c === "children")
301
+ for (const r in s)
302
+ if (!(r in t)) {
303
+ if (r === "children")
240
304
  continue;
241
- s[c] = G(e, c, null, s[c], n, r);
305
+ s[r] = H(e, r, null, s[r], n, c);
242
306
  }
243
- for (const c in t) {
244
- if (c === "children") {
245
- i || j(e, t.children);
307
+ for (const r in t) {
308
+ if (r === "children") {
309
+ i || A(e, t.children);
246
310
  continue;
247
311
  }
248
- const o = t[c];
249
- s[c] = G(e, c, o, s[c], n, r);
312
+ const o = t[r];
313
+ s[r] = H(e, r, o, s[r], n, c);
250
314
  }
251
315
  }
252
- function Pe(e) {
316
+ function Ie(e) {
253
317
  let t, n;
254
- if (!d.context || !(t = d.registry.get(n = ze()))) {
255
- if (d.context && console.warn("Unable to find DOM nodes for hydration key:", n), !e)
256
- throw new Error("Unrecoverable Hydration Mismatch. No template for key: " + n);
257
- return e();
258
- }
259
- return d.completed && d.completed.add(t), d.registry.delete(n), t;
318
+ return !d.context || !(t = d.registry.get(n = Pe())) ? e() : (d.completed && d.completed.add(t), d.registry.delete(n), t);
260
319
  }
261
- function Oe(e) {
320
+ function Te(e) {
262
321
  return e.toLowerCase().replace(/-([a-z])/g, (t, n) => n.toUpperCase());
263
322
  }
264
- function H(e, t, n) {
323
+ function G(e, t, n) {
265
324
  const i = t.trim().split(/\s+/);
266
- for (let s = 0, r = i.length; s < r; s++)
325
+ for (let s = 0, c = i.length; s < c; s++)
267
326
  e.classList.toggle(i[s], n);
268
327
  }
269
- function G(e, t, n, i, s, r) {
270
- let c, o, l, f, a;
328
+ function H(e, t, n, i, s, c) {
329
+ let r, o, l, f, a;
271
330
  if (t === "style")
272
- return K(e, n, i);
331
+ return Z(e, n, i);
273
332
  if (t === "classList")
274
- return Ce(e, n, i);
333
+ return je(e, n, i);
275
334
  if (n === i)
276
335
  return i;
277
336
  if (t === "ref")
278
- r || n(e);
337
+ c || n(e);
279
338
  else if (t.slice(0, 3) === "on:") {
280
339
  const u = t.slice(3);
281
340
  i && e.removeEventListener(u, i), n && e.addEventListener(u, n);
@@ -283,23 +342,27 @@ function G(e, t, n, i, s, r) {
283
342
  const u = t.slice(10);
284
343
  i && e.removeEventListener(u, i, !0), n && e.addEventListener(u, n, !0);
285
344
  } else if (t.slice(0, 2) === "on") {
286
- const u = t.slice(2).toLowerCase(), b = ge.has(u);
287
- if (!b && i) {
345
+ const u = t.slice(2).toLowerCase(), $ = me.has(u);
346
+ if (!$ && i) {
288
347
  const S = Array.isArray(i) ? i[0] : i;
289
348
  e.removeEventListener(u, S);
290
349
  }
291
- (b || n) && (je(e, u, n, b), b && Se([u]));
350
+ ($ || n) && (we(e, u, n, $), $ && be([u]));
292
351
  } else if (t.slice(0, 5) === "attr:")
293
352
  N(e, t.slice(5), n);
294
- else if ((a = t.slice(0, 5) === "prop:") || (l = de.has(t)) || !s && ((f = he(t, e.tagName)) || (o = ue.has(t))) || (c = e.nodeName.includes("-")))
295
- a && (t = t.slice(5), o = !0), t === "class" || t === "className" ? we(e, n) : c && !o && !l ? e[Oe(t)] = n : e[f || t] = n;
296
- else {
297
- const u = s && t.indexOf(":") > -1 && $e[t.split(":")[0]];
298
- u ? Ae(e, u, t, n) : N(e, ye[t] || t, n);
353
+ else if ((a = t.slice(0, 5) === "prop:") || (l = ae.has(t)) || !s && ((f = ye(t, e.tagName)) || (o = fe.has(t))) || (r = e.nodeName.includes("-"))) {
354
+ if (a)
355
+ t = t.slice(5), o = !0;
356
+ else if (d.context)
357
+ return n;
358
+ t === "class" || t === "className" ? Se(e, n) : r && !o && !l ? e[Te(t)] = n : e[f || t] = n;
359
+ } else {
360
+ const u = s && t.indexOf(":") > -1 && ge[t.split(":")[0]];
361
+ u ? xe(e, u, t, n) : N(e, ue[t] || t, n);
299
362
  }
300
363
  return n;
301
364
  }
302
- function Me(e) {
365
+ function Oe(e) {
303
366
  const t = `$$${e.type}`;
304
367
  let n = e.composedPath && e.composedPath()[0] || e.target;
305
368
  for (e.target !== n && Object.defineProperty(e, "target", {
@@ -320,7 +383,7 @@ function Me(e) {
320
383
  n = n._$host || n.parentNode || n.host;
321
384
  }
322
385
  }
323
- function j(e, t, n, i, s) {
386
+ function A(e, t, n, i, s) {
324
387
  if (d.context) {
325
388
  !n && (n = [...e.childNodes]);
326
389
  let o = [];
@@ -334,73 +397,79 @@ function j(e, t, n, i, s) {
334
397
  n = n();
335
398
  if (t === n)
336
399
  return n;
337
- const r = typeof t, c = i !== void 0;
338
- if (e = c && n[0] && n[0].parentNode || e, r === "string" || r === "number") {
400
+ const c = typeof t, r = i !== void 0;
401
+ if (e = r && n[0] && n[0].parentNode || e, c === "string" || c === "number") {
339
402
  if (d.context)
340
403
  return n;
341
- if (r === "number" && (t = t.toString()), c) {
404
+ if (c === "number" && (t = t.toString()), r) {
342
405
  let o = n[0];
343
- o && o.nodeType === 3 ? o.data = t : o = document.createTextNode(t), n = w(e, n, i, o);
406
+ o && o.nodeType === 3 ? o.data = t : o = document.createTextNode(t), n = j(e, n, i, o);
344
407
  } else
345
408
  n !== "" && typeof n == "string" ? n = e.firstChild.data = t : n = e.textContent = t;
346
- } else if (t == null || r === "boolean") {
409
+ } else if (t == null || c === "boolean") {
347
410
  if (d.context)
348
411
  return n;
349
- n = w(e, n, i);
412
+ n = j(e, n, i);
350
413
  } else {
351
- if (r === "function")
352
- return A(() => {
414
+ if (c === "function")
415
+ return w(() => {
353
416
  let o = t();
354
417
  for (; typeof o == "function"; )
355
418
  o = o();
356
- n = j(e, o, n, i);
419
+ n = A(e, o, n, i);
357
420
  }), () => n;
358
421
  if (Array.isArray(t)) {
359
422
  const o = [], l = n && Array.isArray(n);
360
- if (L(o, t, n, s))
361
- return A(() => n = j(e, o, n, i, !0)), () => n;
423
+ if (k(o, t, n, s))
424
+ return w(() => n = A(e, o, n, i, !0)), () => n;
362
425
  if (d.context) {
363
426
  if (!o.length)
364
427
  return n;
365
- for (let f = 0; f < o.length; f++)
366
- if (o[f].parentNode)
367
- return n = o;
428
+ if (i === void 0)
429
+ return [...e.childNodes];
430
+ let f = o[0], a = [f];
431
+ for (; (f = f.nextSibling) !== i; )
432
+ a.push(f);
433
+ return n = a;
368
434
  }
369
435
  if (o.length === 0) {
370
- if (n = w(e, n, i), c)
436
+ if (n = j(e, n, i), r)
371
437
  return n;
372
438
  } else
373
- l ? n.length === 0 ? _(e, o, i) : xe(e, n, o) : (n && w(e), _(e, o));
439
+ l ? n.length === 0 ? v(e, o, i) : $e(e, n, o) : (n && j(e), v(e, o));
374
440
  n = o;
375
441
  } else if (t.nodeType) {
376
442
  if (d.context && t.parentNode)
377
- return n = c ? [t] : t;
443
+ return n = r ? [t] : t;
378
444
  if (Array.isArray(n)) {
379
- if (c)
380
- return n = w(e, n, i, t);
381
- w(e, n, null, t);
445
+ if (r)
446
+ return n = j(e, n, i, t);
447
+ j(e, n, null, t);
382
448
  } else
383
449
  n == null || n === "" || !e.firstChild ? e.appendChild(t) : e.replaceChild(t, e.firstChild);
384
450
  n = t;
385
- } else
386
- console.warn("Unrecognized value. Skipped inserting", t);
451
+ }
387
452
  }
388
453
  return n;
389
454
  }
390
- function L(e, t, n, i) {
455
+ function k(e, t, n, i) {
391
456
  let s = !1;
392
- for (let r = 0, c = t.length; r < c; r++) {
393
- let o = t[r], l = n && n[r], f;
457
+ for (let c = 0, r = t.length; c < r; c++) {
458
+ let o = t[c], l = n && n[c], f;
394
459
  if (!(o == null || o === !0 || o === !1))
395
460
  if ((f = typeof o) == "object" && o.nodeType)
396
461
  e.push(o);
397
462
  else if (Array.isArray(o))
398
- s = L(e, o, l) || s;
463
+ s = k(e, o, l) || s;
399
464
  else if (f === "function")
400
465
  if (i) {
401
466
  for (; typeof o == "function"; )
402
467
  o = o();
403
- s = L(e, Array.isArray(o) ? o : [o], Array.isArray(l) ? l : [l]) || s;
468
+ s = k(
469
+ e,
470
+ Array.isArray(o) ? o : [o],
471
+ Array.isArray(l) ? l : [l]
472
+ ) || s;
404
473
  } else
405
474
  e.push(o), s = !0;
406
475
  else {
@@ -410,192 +479,192 @@ function L(e, t, n, i) {
410
479
  }
411
480
  return s;
412
481
  }
413
- function _(e, t, n = null) {
482
+ function v(e, t, n = null) {
414
483
  for (let i = 0, s = t.length; i < s; i++)
415
484
  e.insertBefore(t[i], n);
416
485
  }
417
- function w(e, t, n, i) {
486
+ function j(e, t, n, i) {
418
487
  if (n === void 0)
419
488
  return e.textContent = "";
420
489
  const s = i || document.createTextNode("");
421
490
  if (t.length) {
422
- let r = !1;
423
- for (let c = t.length - 1; c >= 0; c--) {
424
- const o = t[c];
491
+ let c = !1;
492
+ for (let r = t.length - 1; r >= 0; r--) {
493
+ const o = t[r];
425
494
  if (s !== o) {
426
495
  const l = o.parentNode === e;
427
- !r && !c ? l ? e.replaceChild(s, o) : e.insertBefore(s, n) : l && o.remove();
496
+ !c && !r ? l ? e.replaceChild(s, o) : e.insertBefore(s, n) : l && o.remove();
428
497
  } else
429
- r = !0;
498
+ c = !0;
430
499
  }
431
500
  } else
432
501
  e.insertBefore(s, n);
433
502
  return [s];
434
503
  }
435
- function ze() {
504
+ function Pe() {
436
505
  const e = d.context;
437
506
  return `${e.id}${e.count++}`;
438
507
  }
439
- const ke = "http://www.w3.org/2000/svg";
440
- function Ne(e, t = !1) {
441
- return t ? document.createElementNS(ke, e) : document.createElement(e);
508
+ const ze = "http://www.w3.org/2000/svg";
509
+ function Me(e, t = !1) {
510
+ return t ? document.createElementNS(ze, e) : document.createElement(e);
442
511
  }
443
- function Le(e) {
444
- const [t, n] = X(e, ["component"]), i = I(() => t.component);
445
- return I(() => {
512
+ function Ne(e) {
513
+ const [t, n] = V(e, ["component"]), i = T(() => t.component);
514
+ return T(() => {
446
515
  const s = i();
447
516
  switch (typeof s) {
448
517
  case "function":
449
- return Object.assign(s, {
450
- [re]: !0
451
- }), v(() => s(n));
518
+ return W(() => s(n));
452
519
  case "string":
453
- const r = be.has(s), c = d.context ? Pe() : Ne(s, r);
454
- return Ee(c, n, r), c;
520
+ const c = he.has(s), r = d.context ? Ie() : Me(s, c);
521
+ return Ae(r, n, c), r;
455
522
  }
456
523
  });
457
524
  }
458
- function P(e) {
525
+ function I(e) {
459
526
  return e ?? void 0;
460
527
  }
461
528
  function m(e, t) {
462
- return Object.keys(e).filter((n) => !t.includes(n)).reduce((n, i) => (Object.defineProperty(n, i, {
529
+ return Object.keys(e).filter((n) => !t.includes(n)).reduce((n, i) => Object.defineProperty({
530
+ ...n
531
+ }, i, {
463
532
  get() {
464
533
  return e[i];
465
534
  },
466
535
  configurable: !0,
467
536
  enumerable: !0
468
- }), n), {});
537
+ }), {});
469
538
  }
470
539
  function h(e, t) {
471
- return E(Le, y({
540
+ return E(Ne, y({
472
541
  get component() {
473
542
  return e();
474
543
  }
475
544
  }, t));
476
545
  }
477
546
  function g(e) {
478
- if (!Object.values(e).every((t) => typeof t == "function"))
479
- throw new Error("Please provide an object with accessor values only.");
480
- return Object.keys(e).reduce((t, n) => {
547
+ return Object.values(e).every((t) => typeof t == "function") ? Object.keys(e).reduce((t, n) => {
481
548
  const i = e[n];
482
- return Object.defineProperty(t, n, {
549
+ return Object.defineProperty({
550
+ ...t
551
+ }, n, {
483
552
  get() {
484
553
  return i();
485
554
  },
486
555
  configurable: !0,
487
556
  enumerable: !0
488
- }), t;
489
- }, {});
557
+ });
558
+ }, {}) : new Error("Please provide an object with accessor values only.");
490
559
  }
491
- const ee = /^--\D{1}.{0,100}$/;
492
- function te(e) {
493
- return ee.test(e);
560
+ const p = /^--\D{1}.{0,100}$/;
561
+ function ee(e) {
562
+ return p.test(e);
494
563
  }
495
564
  function B(e) {
496
- return typeof e != "string" ? !1 : [/^[0-9]{0,10000}\.?[0-9]{1,10000}(vmin|vmax|vh|vw|%|ch|ex|em|rem|in|cm|mm|pt|pc|px)$/, /^var\(--\D{1}.{0,100}\)$/, ee].some((t) => t.test(e));
565
+ return typeof e != "string" ? !1 : [/^[0-9]{0,10000}\.?[0-9]{1,10000}(vmin|vmax|vh|vw|%|ch|ex|em|rem|in|cm|mm|pt|pc|px)$/, /^var\(--\D{1}.{0,100}\)$/, p].some((t) => t.test(e));
497
566
  }
498
567
  const {
499
- sizeXxs: We,
500
- sizeXs: ve,
501
- sizeSm: Be,
502
- sizeMd: De,
568
+ sizeXxs: ke,
569
+ sizeXs: Le,
570
+ sizeSm: We,
571
+ sizeMd: Be,
503
572
  sizeLg: Re,
504
- sizeXl: He,
573
+ sizeXl: De,
505
574
  sizeXxl: Ge,
506
- sizeContent1: _e,
507
- sizeContent2: Ve,
508
- sizeContent3: Fe,
509
- sizeHeader1: Xe,
510
- sizeHeader2: Ue,
511
- sizeHeader3: qe,
512
- size000: Qe,
513
- size00: Ye,
514
- size1: Je,
515
- size2: Ze,
516
- size3: Ke,
517
- size4: pe,
518
- size5: et,
519
- size6: tt,
520
- size7: nt,
521
- size8: it,
522
- size9: st,
523
- size10: ot,
524
- size11: rt,
525
- size12: ct,
526
- size13: lt,
527
- size14: ft,
528
- size15: at
529
- } = oe, ut = {
530
- size000: Qe,
531
- size00: Ye,
532
- size1: Je,
533
- size2: Ze,
534
- size3: Ke,
535
- size4: pe,
536
- size5: et,
537
- size6: tt,
538
- size7: nt,
539
- size8: it,
540
- size9: st,
541
- size10: ot,
542
- size11: rt,
543
- size12: ct,
544
- size13: lt,
545
- size14: ft,
546
- size15: at
547
- }, dt = {
548
- sizeXxs: We,
549
- sizeXs: ve,
550
- sizeSm: Be,
551
- sizeMd: De,
575
+ sizeContent1: He,
576
+ sizeContent2: ve,
577
+ sizeContent3: _e,
578
+ sizeHeader1: Fe,
579
+ sizeHeader2: Ve,
580
+ sizeHeader3: Xe,
581
+ size000: Ue,
582
+ size00: qe,
583
+ size1: Qe,
584
+ size2: Ye,
585
+ size3: Je,
586
+ size4: Ze,
587
+ size5: Ke,
588
+ size6: pe,
589
+ size7: et,
590
+ size8: tt,
591
+ size9: nt,
592
+ size10: it,
593
+ size11: st,
594
+ size12: ot,
595
+ size13: ct,
596
+ size14: rt,
597
+ size15: lt
598
+ } = se, ft = {
599
+ size000: Ue,
600
+ size00: qe,
601
+ size1: Qe,
602
+ size2: Ye,
603
+ size3: Je,
604
+ size4: Ze,
605
+ size5: Ke,
606
+ size6: pe,
607
+ size7: et,
608
+ size8: tt,
609
+ size9: nt,
610
+ size10: it,
611
+ size11: st,
612
+ size12: ot,
613
+ size13: ct,
614
+ size14: rt,
615
+ size15: lt
616
+ }, at = {
617
+ sizeXxs: ke,
618
+ sizeXs: Le,
619
+ sizeSm: We,
620
+ sizeMd: Be,
552
621
  sizeLg: Re,
553
- sizeXl: He,
622
+ sizeXl: De,
554
623
  sizeXxl: Ge,
555
- sizeContent1: _e,
556
- sizeContent2: Ve,
557
- sizeContent3: Fe,
558
- sizeHeader1: Xe,
559
- sizeHeader2: Ue,
560
- sizeHeader3: qe
561
- }, yt = ut, mt = dt;
562
- function ne(e) {
624
+ sizeContent1: He,
625
+ sizeContent2: ve,
626
+ sizeContent3: _e,
627
+ sizeHeader1: Fe,
628
+ sizeHeader2: Ve,
629
+ sizeHeader3: Xe
630
+ }, ut = ft, dt = at;
631
+ function te(e) {
563
632
  return e.reduce((t, [n, i]) => ({
564
633
  ...t,
565
634
  [n]: i
566
635
  }), {});
567
636
  }
568
- function V(e, t) {
637
+ function _(e, t) {
569
638
  if (t !== void 0)
570
- return typeof t == "number" && t >= 0 ? `${t}px` : typeof t == "string" && B(t) ? te(t) ? `var(${t})` : t : P($(e, t));
639
+ return typeof t == "number" && t >= 0 ? `${t}px` : typeof t == "string" && B(t) ? ee(t) ? `var(${t})` : t : I(b(e, t));
571
640
  }
572
- function $(e, t) {
573
- const n = e.space ?? yt, i = ne(Object.entries(n).map(([s, r]) => [s, typeof r == "number" ? `${r}px` : r]));
574
- return P(i[t]);
641
+ function b(e, t) {
642
+ const n = e.space ?? ut, i = te(Object.entries(n).map(([s, c]) => [s, typeof c == "number" ? `${c}px` : c]));
643
+ return I(i[t]);
575
644
  }
576
- function O(e, t) {
645
+ function P(e, t) {
577
646
  if (t === void 0)
578
647
  return;
579
648
  if (typeof t == "number" && t >= 0)
580
649
  return `${t}px`;
581
650
  if (typeof t == "string" && B(t))
582
- return te(t) ? `var(${t})` : t;
583
- const n = e.sizes ?? mt, i = ne(Object.entries(n).map(([s, r]) => [s, typeof r == "number" ? `${r}px` : r]));
584
- return P(i[t]);
651
+ return ee(t) ? `var(${t})` : t;
652
+ const n = e.sizes ?? dt, i = te(Object.entries(n).map(([s, c]) => [s, typeof c == "number" ? `${c}px` : c]));
653
+ return I(i[t]);
585
654
  }
586
- function ht(e) {
655
+ function yt(e) {
587
656
  return e === void 0 ? "100%" : typeof e == "number" ? `${e}px` : e;
588
657
  }
589
- function Rt(e) {
590
- const t = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((o, [l, f]) => o + `${l}:${f};`, ""), n = () => `--maxWidth: ${ht(e.maxWidth)};`, i = () => e.centerText ? "center-text" : "", s = () => e.centerChildren ? "center-children" : "", r = () => [i(), s()].filter(Boolean).join(" "), c = () => [t(), n()].join("; ");
658
+ function Bt(e) {
659
+ const t = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((o, [l, f]) => o + `${l}:${f};`, ""), n = () => `--maxWidth: ${yt(e.maxWidth)};`, i = () => e.centerText ? "center-text" : "", s = () => e.centerChildren ? "center-children" : "", c = () => [i(), s()].filter(Boolean).join(" "), r = () => [t(), n()].join("; ");
591
660
  return h(() => e.as ?? "div", y(m(e, ["as", "maxWidth", "centerText", "centerChildren"]), g({
592
- style: c,
593
- "data-bedrock-center": r
661
+ style: r,
662
+ "data-bedrock-center": c
594
663
  })));
595
664
  }
596
- const ie = ce({});
597
- function Ht(e) {
598
- return E(ie.Provider, {
665
+ const ne = oe({});
666
+ function Rt(e) {
667
+ return E(ne.Provider, {
599
668
  get value() {
600
669
  return e.theme;
601
670
  },
@@ -606,77 +675,68 @@ function Ht(e) {
606
675
  }
607
676
  function x() {
608
677
  try {
609
- return le(ie);
678
+ return ce(ne);
610
679
  } catch {
611
680
  return {};
612
681
  }
613
682
  }
614
- function gt(e, t) {
615
- return O(e, t);
683
+ function mt(e, t) {
684
+ return P(e, t);
616
685
  }
617
- function Gt(e) {
618
- const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((o, [l, f]) => o + `${l}:${f};`, ""), i = () => `--gutter: ${$(t, e.gutter ?? "size00") ?? "0px"}`, s = () => `--minItemWidth: ${gt(t, e.minItemWidth)}`, r = () => e.noStretchedColumns === !0 ? "no-stretched-columns" : "", c = () => [n(), i(), s()].join("; ");
686
+ function Dt(e) {
687
+ const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((o, [l, f]) => o + `${l}:${f};`, ""), i = () => `--gutter: ${b(t, e.gutter ?? "size00") ?? "0px"}`, s = () => `--minItemWidth: ${mt(t, e.minItemWidth)}`, c = () => e.noStretchedColumns === !0 ? "no-stretched-columns" : "", r = () => [n(), i(), s()].join("; ");
619
688
  return h(() => e.as ?? "div", y(m(e, ["as", "gutter", "minItemWidth", "noStretchedColumns"]), g({
620
- style: c,
621
- "data-bedrock-column-drop": r
689
+ style: r,
690
+ "data-bedrock-column-drop": c
622
691
  })));
623
692
  }
624
- function z(e) {
625
- throw new Error(e);
626
- }
627
- function bt(e) {
628
- typeof e != "number" && !Array.isArray(e) && z("width must be a number or an array of two numbers"), Array().concat(e).some((n) => n < 0) && z("width value(s) must be 0 or greater"), Array.isArray(e) && (e.length !== 2 || e[0] > e[1]) && z(`The second width value, ${e[1]}, is not larger than ${e[0]}. Please provide a value greater than first width value`);
629
- }
630
- function _t(e, t) {
631
- bt(e);
632
- const [n, i] = T(!1), [s, r] = T();
633
- return U(() => {
634
- Y();
635
- }), q(() => {
636
- if (s() === void 0 || s() === null)
637
- return;
693
+ function Gt(e, t) {
694
+ const [n, i] = O(!1), [s, c] = O();
695
+ return X(() => (Q(), 0)), U(() => {
696
+ if (I(s()) === void 0)
697
+ return 0;
638
698
  t && t(s());
639
- const c = J(s(), (o) => {
699
+ const r = Y(s(), (o) => {
640
700
  var f;
641
701
  const l = ((f = o.borderBoxSize) == null ? void 0 : f.inlineSize) ?? o.contentRect.width;
642
702
  if (l > 0) {
643
- const a = Array.isArray(e) ? l >= e[0] && l <= e[1] : l <= e;
703
+ const a = l <= e;
644
704
  i(a);
645
705
  }
706
+ return 0;
646
707
  });
647
- Q(c);
648
- }), [n, r];
708
+ return q(r), 0;
709
+ }), [n, c];
649
710
  }
650
- function $t(e) {
711
+ function ht(e) {
651
712
  return Array.isArray(e) && e.length === 2 && e.every(Number.isFinite) || typeof e == "string" && /^\d{1,1000} {0,1}\/ {0,1}\d{1,1000}$/.test(e);
652
713
  }
653
- function xt(e) {
714
+ function gt(e) {
654
715
  return Array.isArray(e) ? e.join("/") : e;
655
716
  }
656
- function St(e) {
657
- return $t(e) ? xt(e) : void 0;
717
+ function $t(e) {
718
+ return ht(e) ? gt(e) : void 0;
658
719
  }
659
- function Vt(e) {
660
- const t = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((c, [o, l]) => c + `${o}:${l};`, ""), n = () => St(e.ratio), i = () => n() ? `--ratio: ${n()}` : "", s = () => typeof e.position == "string" ? `--position: ${e.position}` : "50%", r = () => [t(), i(), s()].join("; ");
720
+ function Ht(e) {
721
+ const t = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((r, [o, l]) => r + `${o}:${l};`, ""), n = () => $t(e.ratio), i = () => n() ? `--ratio: ${n()}` : "", s = () => typeof e.position == "string" ? `--position: ${e.position}` : "50%", c = () => [t(), i(), s()].join("; ");
661
722
  return h(() => e.as ?? "div", y(m(e, ["as", "ratio", "position"]), g({
662
- style: r,
723
+ style: c,
663
724
  "data-bedrock-frame": () => ""
664
725
  })));
665
726
  }
666
- function At(e) {
667
- const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((c, [o, l]) => c + `${o}:${l};`, ""), i = () => `--gutter: ${$(t, e.gutter ?? "size00") ?? "0px"};`, s = () => `--minItemWidth: ${typeof e.minItemWidth == "string" ? e.minItemWidth : `${e.minItemWidth ?? 0}px`};`, r = () => [n(), i(), s()].join("; ");
727
+ function bt(e) {
728
+ const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((r, [o, l]) => r + `${o}:${l};`, ""), i = () => `--gutter: ${b(t, e.gutter ?? "size00") ?? "0px"};`, s = () => `--minItemWidth: ${typeof e.minItemWidth == "string" ? e.minItemWidth : `${e.minItemWidth ?? 0}px`};`, c = () => [n(), i(), s()].join("; ");
668
729
  return h(() => e.as ?? "div", y(m(e, ["as", "gutter", "minItemWidth"]), g({
669
- style: r,
730
+ style: c,
670
731
  "data-bedrock-grid": () => ""
671
732
  })));
672
733
  }
673
734
  const C = 96;
674
- function se(e) {
675
- e = String(e);
676
- const t = parseFloat(e), [, n] = e.match(/[\d.\-+]*\s*(.*)/) ?? ["", ""];
677
- return [t, n];
735
+ function ie(e) {
736
+ const t = String(e), n = parseFloat(t), [, i] = t.match(/[\d.\-+]*\s*(.*)/) ?? ["", ""];
737
+ return [n, i];
678
738
  }
679
- function D(e, t) {
739
+ function R(e, t) {
680
740
  if (!e)
681
741
  return;
682
742
  const n = t ?? document.body, i = (e ?? "px").trim().toLowerCase();
@@ -689,11 +749,11 @@ function D(e, t) {
689
749
  return;
690
750
  case "ch":
691
751
  case "ex":
692
- return wt(i, n);
752
+ return xt(i, n);
693
753
  case "em":
694
- return W(n, "font-size");
754
+ return L(n, "font-size");
695
755
  case "rem":
696
- return W(document.body, "font-size");
756
+ return L(document.body, "font-size");
697
757
  case "in":
698
758
  return C;
699
759
  case "cm":
@@ -707,95 +767,93 @@ function D(e, t) {
707
767
  case "px":
708
768
  return 1;
709
769
  default: {
710
- const [s, r] = se(i);
770
+ const [s, c] = ie(i);
711
771
  if (isNaN(s))
712
772
  return;
713
- if (!r)
773
+ if (!c)
714
774
  return s;
715
- const c = D(r, t);
716
- return typeof c == "number" ? s * c : void 0;
775
+ const r = R(c, t);
776
+ return typeof r == "number" ? s * r : void 0;
717
777
  }
718
778
  }
719
779
  }
720
- function W(e, t) {
721
- const [n, i] = se(
780
+ function L(e, t) {
781
+ const [n, i] = ie(
722
782
  getComputedStyle(e).getPropertyValue(t)
723
783
  );
724
- return n * (D(i, e) ?? 1);
784
+ return n * (R(i, e) ?? 1);
725
785
  }
726
- function wt(e, t) {
786
+ function xt(e, t) {
727
787
  const n = document.createElement("div");
728
788
  n.style.height = "128" + e, t.appendChild(n);
729
- const i = W(n, "height") / 128;
789
+ const i = L(n, "height") / 128;
730
790
  return t.removeChild(n), i;
731
791
  }
732
- const jt = /* @__PURE__ */ Z("<div>"), k = 1, Ct = typeof window == "object" && typeof document == "object" && document.nodeType === 9, Et = (e) => {
733
- const [t, n] = T(1), [i, s] = T(), r = x();
734
- return U(() => {
735
- Y();
736
- }), q(() => {
737
- const c = P(i());
738
- if (c === void 0)
792
+ const St = /* @__PURE__ */ J("<div>"), M = 1, wt = typeof window == "object" && typeof document == "object" && document.nodeType === 9, jt = (e) => {
793
+ const [t, n] = O(1), [i, s] = O(), c = x();
794
+ return X(() => (Q(), 0)), U(() => {
795
+ const r = I(i());
796
+ if (r === void 0)
739
797
  return;
740
- const o = J(c, ({
798
+ const o = Y(r, ({
741
799
  target: l
742
800
  }) => {
743
801
  n(1);
744
- const f = e.gutter ? $(r, e.gutter) ?? "1px" : "1px", a = Ct ? D(f, l) : void 0, u = Math.max(a ?? k, k), [b] = Array.from(l.children), S = 1 + Math.min(l.scrollHeight, b.scrollHeight), M = Math.max(Math.ceil(S / u), k);
745
- n(M);
802
+ const f = e.gutter ? b(c, e.gutter) ?? "1px" : "1px", a = wt ? R(f, l) : void 0, u = Math.max(a ?? M, M), [$] = Array.from(l.children), S = 1 + Math.min(l.scrollHeight, $.scrollHeight), z = Math.max(Math.ceil(S / u), M);
803
+ return n(z), 0;
746
804
  });
747
- Q(o);
805
+ return q(o), 0;
748
806
  }), (() => {
749
- const c = jt();
750
- return Ie(s, c), p(c, () => e.children), A((o) => K(c, `grid-row: span ${t()};`, o)), c;
807
+ const r = St();
808
+ return Ce(s, r), K(r, () => e.children), w((o) => Z(r, `grid-row: span ${t()};`, o)), r;
751
809
  })();
752
- }, Ft = (e) => {
753
- const t = fe(() => e.children), i = [].concat(t()).filter(Boolean).map((s) => E(Et, {
810
+ }, vt = (e) => {
811
+ const t = re(() => e.children), i = [].concat(t()).filter(Boolean).map((s) => E(jt, {
754
812
  get gutter() {
755
813
  return e.gutter;
756
814
  },
757
815
  children: s
758
816
  }));
759
- return E(At, y({
817
+ return E(bt, y({
760
818
  style: "grid-template-rows: 1px;"
761
819
  }, e, {
762
820
  children: i
763
821
  }));
764
- }, It = {
822
+ }, At = {
765
823
  start: "justify:start",
766
824
  end: "justify:end",
767
825
  center: "justify:center"
768
- }, Tt = {
826
+ }, Ct = {
769
827
  start: "align:start",
770
828
  end: "align:end",
771
829
  center: "align:center",
772
830
  stretch: "align:stretch"
773
831
  };
774
- function Xt(e) {
775
- const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((l, [f, a]) => l + `${f}:${a};`, ""), i = () => `--gutter: ${$(t, e.gutter ?? "size00") ?? "0px"};`, s = () => e.justify !== void 0 ? It[e.justify] : void 0, r = () => e.align !== void 0 ? Tt[e.align] : void 0, c = () => [n(), i()].join("; "), o = () => [s(), r()].filter(Boolean).join(" ");
832
+ function _t(e) {
833
+ const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((l, [f, a]) => l + `${f}:${a};`, ""), i = () => `--gutter: ${b(t, e.gutter ?? "size00") ?? "0px"};`, s = () => e.justify !== void 0 ? At[e.justify] : void 0, c = () => e.align !== void 0 ? Ct[e.align] : void 0, r = () => [n(), i()].join("; "), o = () => [s(), c()].filter(Boolean).join(" ");
776
834
  return h(() => e.as ?? "div", y(m(e, ["as", "gutter", "justify", "align"]), g({
777
- style: c,
835
+ style: r,
778
836
  "data-bedrock-inline-cluster": o
779
837
  })));
780
838
  }
781
- const Pt = {
839
+ const Et = {
782
840
  start: "justify:start",
783
841
  end: "justify:end",
784
842
  center: "justify:center"
785
- }, Ot = {
843
+ }, It = {
786
844
  start: "align:start",
787
845
  end: "align:end",
788
846
  center: "align:center",
789
847
  stretch: "align:stretch"
790
848
  };
791
- function Ut(e) {
792
- const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((u, [b, S]) => u + `${b}:${S};`, ""), i = () => `--gutter: ${$(t, e.gutter ?? "size00") ?? "0px"};`, s = () => e.minItemWidth ? `--minItemWidth: ${typeof e.minItemWidth == "string" ? e.minItemWidth : `${e.minItemWidth}px`};` : void 0, r = () => e.switchAt ? `--switchAt: ${O(t, e.switchAt) ?? "0px"};` : "", c = () => e.justify !== void 0 ? Pt[e.justify] : void 0, o = () => e.align !== void 0 ? Ot[e.align] : void 0, l = () => e.stretch ? `stretch:${e.stretch}` : void 0, f = () => [n(), i(), r(), s()].join("; "), a = () => [c(), o(), l()].filter(Boolean).join(" ");
849
+ function Ft(e) {
850
+ const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((u, [$, S]) => u + `${$}:${S};`, ""), i = () => `--gutter: ${b(t, e.gutter ?? "size00") ?? "0px"};`, s = () => e.minItemWidth ? `--minItemWidth: ${typeof e.minItemWidth == "string" ? e.minItemWidth : `${e.minItemWidth}px`};` : void 0, c = () => e.switchAt ? `--switchAt: ${P(t, e.switchAt) ?? "0px"};` : "", r = () => e.justify !== void 0 ? Et[e.justify] : void 0, o = () => e.align !== void 0 ? It[e.align] : void 0, l = () => e.stretch ? `stretch:${e.stretch}` : void 0, f = () => [n(), i(), c(), s()].join("; "), a = () => [r(), o(), l()].filter(Boolean).join(" ");
793
851
  return h(() => e.as ?? "div", y(m(e, ["as", "gutter", "justify", "align", "stretch", "switchAt"]), g({
794
852
  style: f,
795
853
  "data-bedrock-inline": a
796
854
  })));
797
855
  }
798
- const Mt = (e) => ({
856
+ const Tt = (e) => ({
799
857
  left: "padding-inline-start",
800
858
  right: "padding-inline-end",
801
859
  top: "padding-block-start",
@@ -804,28 +862,28 @@ const Mt = (e) => ({
804
862
  inlineEnd: "padding-inline-end",
805
863
  blockStart: "padding-block-start",
806
864
  blockEnd: "padding-block-end"
807
- })[e], zt = (e, t) => {
865
+ })[e], Ot = (e, t) => {
808
866
  if (!t)
809
867
  return "";
810
868
  if (Array.isArray(t) && t.length > 4)
811
869
  throw new Error("padding arrays can only be 4 or less in length");
812
- const n = typeof t == "object" && !Array.isArray(t) ? Object.entries(t).reduce((i, [s, r]) => ({
870
+ const n = typeof t == "object" && !Array.isArray(t) ? Object.entries(t).reduce((i, [s, c]) => ({
813
871
  ...i,
814
- [Mt(s)]: V(e, r) ?? "0px"
872
+ [Tt(s)]: _(e, c) ?? "0px"
815
873
  }), {}) : {
816
- padding: Array.from(Array.isArray(t) ? t : [t]).map((i) => V(e, i) ?? "0px").join(" ")
874
+ padding: Array.from(Array.isArray(t) ? t : [t]).map((i) => _(e, i) ?? "0px").join(" ")
817
875
  };
818
- return Object.entries(n).reduce((i, [s, r]) => i + `${s}:${r};`, "");
876
+ return Object.entries(n).reduce((i, [s, c]) => i + `${s}:${c};`, "");
819
877
  };
820
- function qt(e) {
821
- const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((r, [c, o]) => r + `${c}:${o};`, ""), i = () => zt(t, e.padding), s = () => [n(), i()].join("; ");
878
+ function Vt(e) {
879
+ const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((c, [r, o]) => c + `${r}:${o};`, ""), i = () => Ot(t, e.padding), s = () => [n(), i()].join("; ");
822
880
  return h(() => e.as ?? "div", y(m(e, ["as", "padding"]), g({
823
881
  style: s,
824
882
  "data-bedrock-padbox": () => ""
825
883
  })));
826
884
  }
827
- function Qt(e) {
828
- const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((c, [o, l]) => c + `${o}:${l};`, ""), i = () => `--gutter: ${$(t, e.gutter ?? "size00") ?? "0px"};`, s = () => {
885
+ function Xt(e) {
886
+ const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((r, [o, l]) => r + `${o}:${l};`, ""), i = () => `--gutter: ${b(t, e.gutter ?? "size00") ?? "0px"};`, s = () => {
829
887
  switch (e.snapType) {
830
888
  case "none":
831
889
  return "snapType:none";
@@ -836,9 +894,9 @@ function Qt(e) {
836
894
  default:
837
895
  return "snapType:none";
838
896
  }
839
- }, r = () => [n(), i()].join("; ");
897
+ }, c = () => [n(), i()].join("; ");
840
898
  return h(() => e.as ?? "div", y(m(e, ["as", "gutter"]), g({
841
- style: r,
899
+ style: c,
842
900
  "data-bedrock-reel": s
843
901
  })));
844
902
  }
@@ -851,79 +909,79 @@ const F = {
851
909
  "auto-start": "fraction:auto-start",
852
910
  "auto-end": "fraction:auto-end"
853
911
  };
854
- function Yt(e) {
855
- const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((l, [f, a]) => l + `${f}:${a};`, ""), i = () => e.switchAt ? `--switchAt: ${O(t, e.switchAt) ?? "0px"};` : "", s = () => `--gutter: ${$(t, e.gutter ?? "size00") ?? "0px"};`, r = () => F[e.fraction ?? "1/2"] ?? F["1/2"], c = () => e.minItemWidth ? `--minItemWidth: ${typeof e.minItemWidth == "string" ? e.minItemWidth : `${e.minItemWidth}px`};` : void 0, o = () => [n(), s(), i(), c()].join("; ");
912
+ function Ut(e) {
913
+ const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((l, [f, a]) => l + `${f}:${a};`, ""), i = () => e.switchAt ? `--switchAt: ${P(t, e.switchAt) ?? "0px"};` : "", s = () => `--gutter: ${b(t, e.gutter ?? "size00") ?? "0px"};`, c = () => F[e.fraction ?? "1/2"] ?? F["1/2"], r = () => e.minItemWidth ? `--minItemWidth: ${typeof e.minItemWidth == "string" ? e.minItemWidth : `${e.minItemWidth}px`};` : void 0, o = () => [n(), s(), i(), r()].join("; ");
856
914
  return h(() => e.as ?? "div", y(m(e, ["as", "gutter", "fraction"]), g({
857
915
  style: o,
858
- "data-bedrock-split": r
916
+ "data-bedrock-split": c
859
917
  })));
860
918
  }
861
- function Jt(e) {
862
- const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((r, [c, o]) => r + `${c}:${o};`, ""), i = () => `--gutter: ${$(t, e.gutter ?? "size00") ?? "0px"};`, s = () => [n(), i()].join("; ");
919
+ function qt(e) {
920
+ const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((c, [r, o]) => c + `${r}:${o};`, ""), i = () => `--gutter: ${b(t, e.gutter ?? "size00") ?? "0px"};`, s = () => [n(), i()].join("; ");
863
921
  return h(() => e.as ?? "div", y(m(e, ["as", "gutter"]), g({
864
922
  style: s,
865
923
  "data-bedrock-stack": () => ""
866
924
  })));
867
925
  }
868
- const kt = /* @__PURE__ */ Z("<div data-bedrock-cover-centered>");
869
- function Nt(e) {
926
+ const Pt = /* @__PURE__ */ J("<div data-bedrock-cover-centered>");
927
+ function zt(e) {
870
928
  return typeof e == "number" ? `${e}px` : e && B(e) ? e : "100vh";
871
929
  }
872
- function Lt(e) {
873
- const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((o, [l, f]) => o + `${l}:${f};`, ""), i = () => `--gutter: ${$(t, e.gutter ?? "size00") ?? "0px"};`, s = () => `--minHeight: ${Nt(e.minHeight)};`, r = () => e.stretchContent === !0 ? "stretch-content" : "", c = () => [n(), i(), s()].join("; ");
930
+ function Mt(e) {
931
+ const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((o, [l, f]) => o + `${l}:${f};`, ""), i = () => `--gutter: ${b(t, e.gutter ?? "size00") ?? "0px"};`, s = () => `--minHeight: ${zt(e.minHeight)};`, c = () => e.stretchContent === !0 ? "stretch-content" : "", r = () => [n(), i(), s()].join("; ");
874
932
  return h(() => e.as ?? "div", y(m(e, ["as", "minHeight", "stretchContent"]), g({
875
- style: c,
876
- "data-bedrock-cover": r
933
+ style: r,
934
+ "data-bedrock-cover": c
877
935
  })));
878
936
  }
879
- function Zt(e) {
880
- const [t, n] = X(e, ["children", "top", "bottom"]);
881
- return E(Lt, y(n, {
937
+ function Qt(e) {
938
+ const [t, n] = V(e, ["children", "top", "bottom"]);
939
+ return E(Mt, y(n, {
882
940
  get children() {
883
- return [I(() => t.top), (() => {
884
- const i = kt();
885
- return p(i, () => t.children), i;
886
- })(), I(() => t.bottom)];
941
+ return [T(() => t.top), (() => {
942
+ const i = Pt();
943
+ return K(i, () => t.children), i;
944
+ })(), T(() => t.bottom)];
887
945
  }
888
946
  }));
889
947
  }
890
- function Kt(e) {
891
- const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((o, [l, f]) => o + `${l}:${f};`, ""), i = () => `--gutter: ${$(t, e.gutter ?? "size00") ?? "0px"};`, s = () => `--columns: ${e.columns && e.columns > 0 ? e.columns : 1};`, r = () => e.switchAt ? `--switchAt: ${O(t, e.switchAt) ?? "0px"};` : "", c = () => [n(), i(), s(), r()].join("; ");
948
+ function Yt(e) {
949
+ const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((o, [l, f]) => o + `${l}:${f};`, ""), i = () => `--gutter: ${b(t, e.gutter ?? "size00") ?? "0px"};`, s = () => `--columns: ${e.columns && e.columns > 0 ? e.columns : 1};`, c = () => e.switchAt ? `--switchAt: ${P(t, e.switchAt) ?? "0px"};` : "", r = () => [n(), i(), s(), c()].join("; ");
892
950
  return h(() => e.as ?? "div", y(m(e, ["as", "gutter", "columns", "switchAt"]), g({
893
- style: c,
951
+ style: r,
894
952
  "data-bedrock-columns": () => ""
895
953
  })));
896
954
  }
897
- const Wt = (e) => typeof e == "number" ? e : 1;
898
- function pt(e) {
899
- const t = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((c, [o, l]) => c + `${o}:${l};`, ""), n = () => `--span: ${Wt(e.span)};`, i = () => e.offsetStart && e.offsetStart > 0 ? `--offsetStart: ${e.offsetStart};` : "", s = () => e.offsetEnd && e.offsetEnd > 0 ? `--offsetEnd: ${e.offsetEnd};` : "", r = () => [t(), n(), i(), s()].join("; ");
955
+ const Nt = (e) => typeof e == "number" ? e : 1;
956
+ function Jt(e) {
957
+ const t = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((r, [o, l]) => r + `${o}:${l};`, ""), n = () => `--span: ${Nt(e.span)};`, i = () => e.offsetStart && e.offsetStart > 0 ? `--offsetStart: ${e.offsetStart};` : "", s = () => e.offsetEnd && e.offsetEnd > 0 ? `--offsetEnd: ${e.offsetEnd};` : "", c = () => [t(), n(), i(), s()].join("; ");
900
958
  return h(() => e.as ?? "div", y(m(e, ["as", "span", "offsetStart", "offsetEnd"]), g({
901
- style: r,
959
+ style: c,
902
960
  "data-bedrock-column": () => ""
903
961
  })));
904
962
  }
905
963
  export {
906
- Rt as Center,
907
- pt as Column,
908
- Gt as ColumnDrop,
909
- Kt as Columns,
910
- Zt as Cover,
911
- Vt as Frame,
912
- At as Grid,
913
- Ut as Inline,
914
- Xt as InlineCluster,
915
- Ft as MasonryGrid,
916
- qt as PadBox,
917
- Qt as Reel,
918
- Yt as Split,
919
- Jt as Stack,
920
- Ht as ThemeProvider,
964
+ Bt as Center,
965
+ Jt as Column,
966
+ Dt as ColumnDrop,
967
+ Yt as Columns,
968
+ Qt as Cover,
969
+ Ht as Frame,
970
+ bt as Grid,
971
+ Ft as Inline,
972
+ _t as InlineCluster,
973
+ vt as MasonryGrid,
974
+ Vt as PadBox,
975
+ Xt as Reel,
976
+ Ut as Split,
977
+ qt as Stack,
978
+ Rt as ThemeProvider,
921
979
  B as checkIsCSSLength,
922
- _t as createContainerQuery,
923
- V as getSafeGutter,
924
- O as getSizeValue,
925
- $ as getSpacingValue,
926
- mt as sizes,
927
- yt as spacing,
980
+ Gt as createContainerQuery,
981
+ _ as getSafeGutter,
982
+ P as getSizeValue,
983
+ b as getSpacingValue,
984
+ dt as sizes,
985
+ ut as spacing,
928
986
  x as useTheme
929
987
  };