@bedrock-layout/solid 1.1.2 → 1.1.3
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.cjs.js +1 -1
- package/lib/index.m.js +342 -305
- package/lib/index.umd.js +1 -1
- package/lib/typeUtils.d.ts +1 -1
- package/package.json +3 -3
package/lib/index.m.js
CHANGED
|
@@ -1,17 +1,39 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { createRenderEffect as
|
|
3
|
-
import { init as
|
|
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
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), {
|
|
5
5
|
className: "class",
|
|
6
6
|
htmlFor: "for"
|
|
7
|
-
}),
|
|
7
|
+
}), me = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
8
8
|
class: "className",
|
|
9
|
-
formnovalidate:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
formnovalidate: {
|
|
10
|
+
$: "formNoValidate",
|
|
11
|
+
BUTTON: 1,
|
|
12
|
+
INPUT: 1
|
|
13
|
+
},
|
|
14
|
+
ismap: {
|
|
15
|
+
$: "isMap",
|
|
16
|
+
IMG: 1
|
|
17
|
+
},
|
|
18
|
+
nomodule: {
|
|
19
|
+
$: "noModule",
|
|
20
|
+
SCRIPT: 1
|
|
21
|
+
},
|
|
22
|
+
playsinline: {
|
|
23
|
+
$: "playsInline",
|
|
24
|
+
VIDEO: 1
|
|
25
|
+
},
|
|
26
|
+
readonly: {
|
|
27
|
+
$: "readOnly",
|
|
28
|
+
INPUT: 1,
|
|
29
|
+
TEXTAREA: 1
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
function he(e, t) {
|
|
33
|
+
const n = me[e];
|
|
34
|
+
return typeof n == "object" ? n[t] ? n.$ : void 0 : n;
|
|
35
|
+
}
|
|
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([
|
|
15
37
|
"altGlyph",
|
|
16
38
|
"altGlyphDef",
|
|
17
39
|
"altGlyphItem",
|
|
@@ -88,11 +110,11 @@ const ae = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "con
|
|
|
88
110
|
"use",
|
|
89
111
|
"view",
|
|
90
112
|
"vkern"
|
|
91
|
-
]),
|
|
113
|
+
]), $e = {
|
|
92
114
|
xlink: "http://www.w3.org/1999/xlink",
|
|
93
115
|
xml: "http://www.w3.org/XML/1998/namespace"
|
|
94
116
|
};
|
|
95
|
-
function
|
|
117
|
+
function xe(e, t, n) {
|
|
96
118
|
let i = n.length, s = t.length, r = i, c = 0, o = 0, l = t[s - 1].nextSibling, f = null;
|
|
97
119
|
for (; c < s || o < r; ) {
|
|
98
120
|
if (t[c] === n[o]) {
|
|
@@ -114,20 +136,20 @@ function be(e, t, n) {
|
|
|
114
136
|
} else {
|
|
115
137
|
if (!f) {
|
|
116
138
|
f = /* @__PURE__ */ new Map();
|
|
117
|
-
let
|
|
118
|
-
for (;
|
|
119
|
-
f.set(n[
|
|
139
|
+
let u = o;
|
|
140
|
+
for (; u < r; )
|
|
141
|
+
f.set(n[u], u++);
|
|
120
142
|
}
|
|
121
143
|
const a = f.get(t[c]);
|
|
122
144
|
if (a != null)
|
|
123
145
|
if (o < a && a < r) {
|
|
124
|
-
let
|
|
125
|
-
for (; ++
|
|
126
|
-
|
|
127
|
-
if (
|
|
128
|
-
const
|
|
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];
|
|
129
151
|
for (; o < a; )
|
|
130
|
-
e.insertBefore(n[o++],
|
|
152
|
+
e.insertBefore(n[o++], M);
|
|
131
153
|
} else
|
|
132
154
|
e.replaceChild(n[o++], t[c++]);
|
|
133
155
|
} else
|
|
@@ -137,30 +159,32 @@ function be(e, t, n) {
|
|
|
137
159
|
}
|
|
138
160
|
}
|
|
139
161
|
}
|
|
140
|
-
const
|
|
162
|
+
const R = "_$DX_DELEGATE";
|
|
141
163
|
function Z(e, t, n) {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
|
|
164
|
+
let i;
|
|
165
|
+
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;
|
|
170
|
+
}
|
|
171
|
+
function Se(e, t = window.document) {
|
|
172
|
+
const n = t[R] || (t[R] = /* @__PURE__ */ new Set());
|
|
149
173
|
for (let i = 0, s = e.length; i < s; i++) {
|
|
150
174
|
const r = e[i];
|
|
151
175
|
n.has(r) || (n.add(r), t.addEventListener(r, Me));
|
|
152
176
|
}
|
|
153
177
|
}
|
|
154
|
-
function
|
|
178
|
+
function N(e, t, n) {
|
|
155
179
|
n == null ? e.removeAttribute(t) : e.setAttribute(t, n);
|
|
156
180
|
}
|
|
157
|
-
function
|
|
181
|
+
function Ae(e, t, n, i) {
|
|
158
182
|
i == null ? e.removeAttributeNS(t, n) : e.setAttributeNS(t, n, i);
|
|
159
183
|
}
|
|
160
|
-
function
|
|
184
|
+
function we(e, t) {
|
|
161
185
|
t == null ? e.removeAttribute("class") : e.className = t;
|
|
162
186
|
}
|
|
163
|
-
function
|
|
187
|
+
function je(e, t, n, i) {
|
|
164
188
|
if (i)
|
|
165
189
|
Array.isArray(n) ? (e[`$$${t}`] = n[0], e[`$$${t}Data`] = n[1]) : e[`$$${t}`] = n;
|
|
166
190
|
else if (Array.isArray(n)) {
|
|
@@ -169,22 +193,22 @@ function Ae(e, t, n, i) {
|
|
|
169
193
|
} else
|
|
170
194
|
e.addEventListener(t, n);
|
|
171
195
|
}
|
|
172
|
-
function
|
|
196
|
+
function Ce(e, t, n = {}) {
|
|
173
197
|
const i = Object.keys(t || {}), s = Object.keys(n);
|
|
174
198
|
let r, c;
|
|
175
199
|
for (r = 0, c = s.length; r < c; r++) {
|
|
176
200
|
const o = s[r];
|
|
177
|
-
!o || o === "undefined" || t[o] || (
|
|
201
|
+
!o || o === "undefined" || t[o] || (H(e, o, !1), delete n[o]);
|
|
178
202
|
}
|
|
179
203
|
for (r = 0, c = i.length; r < c; r++) {
|
|
180
204
|
const o = i[r], l = !!t[o];
|
|
181
|
-
!o || o === "undefined" || n[o] === l || !l || (
|
|
205
|
+
!o || o === "undefined" || n[o] === l || !l || (H(e, o, !0), n[o] = l);
|
|
182
206
|
}
|
|
183
207
|
return n;
|
|
184
208
|
}
|
|
185
|
-
function
|
|
209
|
+
function K(e, t, n) {
|
|
186
210
|
if (!t)
|
|
187
|
-
return n ?
|
|
211
|
+
return n ? N(e, "style") : t;
|
|
188
212
|
const i = e.style;
|
|
189
213
|
if (typeof t == "string")
|
|
190
214
|
return i.cssText = t;
|
|
@@ -196,19 +220,19 @@ function p(e, t, n) {
|
|
|
196
220
|
s = t[r], s !== n[r] && (i.setProperty(r, s), n[r] = s);
|
|
197
221
|
return n;
|
|
198
222
|
}
|
|
199
|
-
function
|
|
223
|
+
function Ee(e, t = {}, n, i) {
|
|
200
224
|
const s = {};
|
|
201
|
-
return i ||
|
|
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;
|
|
202
226
|
}
|
|
203
|
-
function
|
|
204
|
-
return
|
|
227
|
+
function Ie(e, t, n) {
|
|
228
|
+
return v(() => e(t, n));
|
|
205
229
|
}
|
|
206
|
-
function
|
|
230
|
+
function p(e, t, n, i) {
|
|
207
231
|
if (n !== void 0 && !i && (i = []), typeof t != "function")
|
|
208
232
|
return j(e, t, i, n);
|
|
209
|
-
|
|
233
|
+
A((s) => j(e, t(), s, n), i);
|
|
210
234
|
}
|
|
211
|
-
function
|
|
235
|
+
function Te(e, t, n, i, s = {}, r = !1) {
|
|
212
236
|
t || (t = {});
|
|
213
237
|
for (const c in s)
|
|
214
238
|
if (!(c in t)) {
|
|
@@ -225,46 +249,53 @@ function Ee(e, t, n, i, s = {}, r = !1) {
|
|
|
225
249
|
s[c] = G(e, c, o, s[c], n, r);
|
|
226
250
|
}
|
|
227
251
|
}
|
|
228
|
-
function
|
|
252
|
+
function Pe(e) {
|
|
229
253
|
let t, n;
|
|
230
|
-
|
|
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;
|
|
231
260
|
}
|
|
232
|
-
function
|
|
261
|
+
function Oe(e) {
|
|
233
262
|
return e.toLowerCase().replace(/-([a-z])/g, (t, n) => n.toUpperCase());
|
|
234
263
|
}
|
|
235
|
-
function
|
|
264
|
+
function H(e, t, n) {
|
|
236
265
|
const i = t.trim().split(/\s+/);
|
|
237
266
|
for (let s = 0, r = i.length; s < r; s++)
|
|
238
267
|
e.classList.toggle(i[s], n);
|
|
239
268
|
}
|
|
240
269
|
function G(e, t, n, i, s, r) {
|
|
241
|
-
let c, o, l;
|
|
270
|
+
let c, o, l, f, a;
|
|
242
271
|
if (t === "style")
|
|
243
|
-
return
|
|
272
|
+
return K(e, n, i);
|
|
244
273
|
if (t === "classList")
|
|
245
|
-
return
|
|
274
|
+
return Ce(e, n, i);
|
|
246
275
|
if (n === i)
|
|
247
276
|
return i;
|
|
248
277
|
if (t === "ref")
|
|
249
278
|
r || n(e);
|
|
250
279
|
else if (t.slice(0, 3) === "on:") {
|
|
251
|
-
const
|
|
252
|
-
i && e.removeEventListener(
|
|
280
|
+
const u = t.slice(3);
|
|
281
|
+
i && e.removeEventListener(u, i), n && e.addEventListener(u, n);
|
|
253
282
|
} else if (t.slice(0, 10) === "oncapture:") {
|
|
254
|
-
const
|
|
255
|
-
i && e.removeEventListener(
|
|
283
|
+
const u = t.slice(10);
|
|
284
|
+
i && e.removeEventListener(u, i, !0), n && e.addEventListener(u, n, !0);
|
|
256
285
|
} else if (t.slice(0, 2) === "on") {
|
|
257
|
-
const
|
|
258
|
-
if (!
|
|
259
|
-
const
|
|
260
|
-
e.removeEventListener(
|
|
286
|
+
const u = t.slice(2).toLowerCase(), b = ge.has(u);
|
|
287
|
+
if (!b && i) {
|
|
288
|
+
const S = Array.isArray(i) ? i[0] : i;
|
|
289
|
+
e.removeEventListener(u, S);
|
|
261
290
|
}
|
|
262
|
-
(
|
|
263
|
-
} else if (
|
|
264
|
-
|
|
291
|
+
(b || n) && (je(e, u, n, b), b && Se([u]));
|
|
292
|
+
} else if (t.slice(0, 5) === "attr:")
|
|
293
|
+
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;
|
|
265
296
|
else {
|
|
266
|
-
const
|
|
267
|
-
|
|
297
|
+
const u = s && t.indexOf(":") > -1 && $e[t.split(":")[0]];
|
|
298
|
+
u ? Ae(e, u, t, n) : N(e, ye[t] || t, n);
|
|
268
299
|
}
|
|
269
300
|
return n;
|
|
270
301
|
}
|
|
@@ -279,13 +310,7 @@ function Me(e) {
|
|
|
279
310
|
get() {
|
|
280
311
|
return n || document;
|
|
281
312
|
}
|
|
282
|
-
}), d.registry && !d.done && (d.done = !0
|
|
283
|
-
for (; i && i.nodeType !== 8 && i.nodeValue !== "pl-" + e; ) {
|
|
284
|
-
let s = i.nextSibling;
|
|
285
|
-
i.remove(), i = s;
|
|
286
|
-
}
|
|
287
|
-
i && i.remove();
|
|
288
|
-
})); n; ) {
|
|
313
|
+
}), d.registry && !d.done && (d.done = _$HY.done = !0); n; ) {
|
|
289
314
|
const i = n[t];
|
|
290
315
|
if (i && !n.disabled) {
|
|
291
316
|
const s = n[`${t}Data`];
|
|
@@ -296,7 +321,16 @@ function Me(e) {
|
|
|
296
321
|
}
|
|
297
322
|
}
|
|
298
323
|
function j(e, t, n, i, s) {
|
|
299
|
-
|
|
324
|
+
if (d.context) {
|
|
325
|
+
!n && (n = [...e.childNodes]);
|
|
326
|
+
let o = [];
|
|
327
|
+
for (let l = 0; l < n.length; l++) {
|
|
328
|
+
const f = n[l];
|
|
329
|
+
f.nodeType === 8 && f.data.slice(0, 2) === "!$" ? f.remove() : o.push(f);
|
|
330
|
+
}
|
|
331
|
+
n = o;
|
|
332
|
+
}
|
|
333
|
+
for (; typeof n == "function"; )
|
|
300
334
|
n = n();
|
|
301
335
|
if (t === n)
|
|
302
336
|
return n;
|
|
@@ -315,7 +349,7 @@ function j(e, t, n, i, s) {
|
|
|
315
349
|
n = w(e, n, i);
|
|
316
350
|
} else {
|
|
317
351
|
if (r === "function")
|
|
318
|
-
return
|
|
352
|
+
return A(() => {
|
|
319
353
|
let o = t();
|
|
320
354
|
for (; typeof o == "function"; )
|
|
321
355
|
o = o();
|
|
@@ -323,8 +357,8 @@ function j(e, t, n, i, s) {
|
|
|
323
357
|
}), () => n;
|
|
324
358
|
if (Array.isArray(t)) {
|
|
325
359
|
const o = [], l = n && Array.isArray(n);
|
|
326
|
-
if (
|
|
327
|
-
return
|
|
360
|
+
if (L(o, t, n, s))
|
|
361
|
+
return A(() => n = j(e, o, n, i, !0)), () => n;
|
|
328
362
|
if (d.context) {
|
|
329
363
|
if (!o.length)
|
|
330
364
|
return n;
|
|
@@ -336,9 +370,9 @@ function j(e, t, n, i, s) {
|
|
|
336
370
|
if (n = w(e, n, i), c)
|
|
337
371
|
return n;
|
|
338
372
|
} else
|
|
339
|
-
l ? n.length === 0 ?
|
|
373
|
+
l ? n.length === 0 ? _(e, o, i) : xe(e, n, o) : (n && w(e), _(e, o));
|
|
340
374
|
n = o;
|
|
341
|
-
} else if (t
|
|
375
|
+
} else if (t.nodeType) {
|
|
342
376
|
if (d.context && t.parentNode)
|
|
343
377
|
return n = c ? [t] : t;
|
|
344
378
|
if (Array.isArray(n)) {
|
|
@@ -348,34 +382,35 @@ function j(e, t, n, i, s) {
|
|
|
348
382
|
} else
|
|
349
383
|
n == null || n === "" || !e.firstChild ? e.appendChild(t) : e.replaceChild(t, e.firstChild);
|
|
350
384
|
n = t;
|
|
351
|
-
}
|
|
385
|
+
} else
|
|
386
|
+
console.warn("Unrecognized value. Skipped inserting", t);
|
|
352
387
|
}
|
|
353
388
|
return n;
|
|
354
389
|
}
|
|
355
|
-
function
|
|
390
|
+
function L(e, t, n, i) {
|
|
356
391
|
let s = !1;
|
|
357
392
|
for (let r = 0, c = t.length; r < c; r++) {
|
|
358
|
-
let o = t[r], l = n && n[r];
|
|
359
|
-
if (o
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
if (Array.isArray(o))
|
|
363
|
-
s =
|
|
364
|
-
else if (
|
|
393
|
+
let o = t[r], l = n && n[r], f;
|
|
394
|
+
if (!(o == null || o === !0 || o === !1))
|
|
395
|
+
if ((f = typeof o) == "object" && o.nodeType)
|
|
396
|
+
e.push(o);
|
|
397
|
+
else if (Array.isArray(o))
|
|
398
|
+
s = L(e, o, l) || s;
|
|
399
|
+
else if (f === "function")
|
|
365
400
|
if (i) {
|
|
366
401
|
for (; typeof o == "function"; )
|
|
367
402
|
o = o();
|
|
368
|
-
s =
|
|
403
|
+
s = L(e, Array.isArray(o) ? o : [o], Array.isArray(l) ? l : [l]) || s;
|
|
369
404
|
} else
|
|
370
405
|
e.push(o), s = !0;
|
|
371
406
|
else {
|
|
372
|
-
const
|
|
373
|
-
l && l.nodeType === 3 && l.data ===
|
|
407
|
+
const a = String(o);
|
|
408
|
+
l && l.nodeType === 3 && l.data === a ? e.push(l) : e.push(document.createTextNode(a));
|
|
374
409
|
}
|
|
375
410
|
}
|
|
376
411
|
return s;
|
|
377
412
|
}
|
|
378
|
-
function
|
|
413
|
+
function _(e, t, n = null) {
|
|
379
414
|
for (let i = 0, s = t.length; i < s; i++)
|
|
380
415
|
e.insertBefore(t[i], n);
|
|
381
416
|
}
|
|
@@ -397,28 +432,30 @@ function w(e, t, n, i) {
|
|
|
397
432
|
e.insertBefore(s, n);
|
|
398
433
|
return [s];
|
|
399
434
|
}
|
|
400
|
-
function
|
|
435
|
+
function ze() {
|
|
401
436
|
const e = d.context;
|
|
402
437
|
return `${e.id}${e.count++}`;
|
|
403
438
|
}
|
|
404
|
-
const
|
|
405
|
-
function
|
|
406
|
-
return t ? document.createElementNS(
|
|
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);
|
|
407
442
|
}
|
|
408
|
-
function
|
|
409
|
-
const [t, n] =
|
|
443
|
+
function Le(e) {
|
|
444
|
+
const [t, n] = X(e, ["component"]), i = I(() => t.component);
|
|
410
445
|
return I(() => {
|
|
411
446
|
const s = i();
|
|
412
447
|
switch (typeof s) {
|
|
413
448
|
case "function":
|
|
414
|
-
return
|
|
449
|
+
return Object.assign(s, {
|
|
450
|
+
[re]: !0
|
|
451
|
+
}), v(() => s(n));
|
|
415
452
|
case "string":
|
|
416
|
-
const r =
|
|
417
|
-
return
|
|
453
|
+
const r = be.has(s), c = d.context ? Pe() : Ne(s, r);
|
|
454
|
+
return Ee(c, n, r), c;
|
|
418
455
|
}
|
|
419
456
|
});
|
|
420
457
|
}
|
|
421
|
-
function
|
|
458
|
+
function P(e) {
|
|
422
459
|
return e ?? void 0;
|
|
423
460
|
}
|
|
424
461
|
function m(e, t) {
|
|
@@ -431,7 +468,7 @@ function m(e, t) {
|
|
|
431
468
|
}), n), {});
|
|
432
469
|
}
|
|
433
470
|
function h(e, t) {
|
|
434
|
-
return E(
|
|
471
|
+
return E(Le, y({
|
|
435
472
|
get component() {
|
|
436
473
|
return e();
|
|
437
474
|
}
|
|
@@ -451,114 +488,114 @@ function g(e) {
|
|
|
451
488
|
}), t;
|
|
452
489
|
}, {});
|
|
453
490
|
}
|
|
454
|
-
const
|
|
455
|
-
function
|
|
456
|
-
return
|
|
491
|
+
const ee = /^--\D{1}.{0,100}$/;
|
|
492
|
+
function te(e) {
|
|
493
|
+
return ee.test(e);
|
|
457
494
|
}
|
|
458
|
-
function
|
|
459
|
-
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}\)$/,
|
|
495
|
+
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));
|
|
460
497
|
}
|
|
461
498
|
const {
|
|
462
|
-
sizeXxs:
|
|
463
|
-
sizeXs:
|
|
464
|
-
sizeSm:
|
|
465
|
-
sizeMd:
|
|
466
|
-
sizeLg:
|
|
467
|
-
sizeXl:
|
|
468
|
-
sizeXxl:
|
|
469
|
-
sizeContent1:
|
|
470
|
-
sizeContent2:
|
|
471
|
-
sizeContent3:
|
|
472
|
-
sizeHeader1:
|
|
473
|
-
sizeHeader2:
|
|
474
|
-
sizeHeader3:
|
|
475
|
-
size000:
|
|
476
|
-
size00:
|
|
477
|
-
size1:
|
|
478
|
-
size2:
|
|
479
|
-
size3:
|
|
480
|
-
size4:
|
|
481
|
-
size5:
|
|
482
|
-
size6:
|
|
483
|
-
size7:
|
|
484
|
-
size8:
|
|
485
|
-
size9:
|
|
486
|
-
size10:
|
|
487
|
-
size11:
|
|
488
|
-
size12:
|
|
489
|
-
size13:
|
|
490
|
-
size14:
|
|
491
|
-
size15:
|
|
492
|
-
} =
|
|
493
|
-
size000:
|
|
494
|
-
size00:
|
|
495
|
-
size1:
|
|
496
|
-
size2:
|
|
497
|
-
size3:
|
|
498
|
-
size4:
|
|
499
|
-
size5:
|
|
500
|
-
size6:
|
|
501
|
-
size7:
|
|
502
|
-
size8:
|
|
503
|
-
size9:
|
|
504
|
-
size10:
|
|
505
|
-
size11:
|
|
506
|
-
size12:
|
|
507
|
-
size13:
|
|
508
|
-
size14:
|
|
509
|
-
size15:
|
|
510
|
-
},
|
|
511
|
-
sizeXxs:
|
|
512
|
-
sizeXs:
|
|
513
|
-
sizeSm:
|
|
514
|
-
sizeMd:
|
|
515
|
-
sizeLg:
|
|
516
|
-
sizeXl:
|
|
517
|
-
sizeXxl:
|
|
518
|
-
sizeContent1:
|
|
519
|
-
sizeContent2:
|
|
520
|
-
sizeContent3:
|
|
521
|
-
sizeHeader1:
|
|
522
|
-
sizeHeader2:
|
|
523
|
-
sizeHeader3:
|
|
524
|
-
},
|
|
525
|
-
function
|
|
499
|
+
sizeXxs: We,
|
|
500
|
+
sizeXs: ve,
|
|
501
|
+
sizeSm: Be,
|
|
502
|
+
sizeMd: De,
|
|
503
|
+
sizeLg: Re,
|
|
504
|
+
sizeXl: He,
|
|
505
|
+
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,
|
|
552
|
+
sizeLg: Re,
|
|
553
|
+
sizeXl: He,
|
|
554
|
+
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) {
|
|
526
563
|
return e.reduce((t, [n, i]) => ({
|
|
527
564
|
...t,
|
|
528
565
|
[n]: i
|
|
529
566
|
}), {});
|
|
530
567
|
}
|
|
531
|
-
function
|
|
568
|
+
function V(e, t) {
|
|
532
569
|
if (t !== void 0)
|
|
533
|
-
return typeof t == "number" && t >= 0 ? `${t}px` : typeof t == "string" &&
|
|
570
|
+
return typeof t == "number" && t >= 0 ? `${t}px` : typeof t == "string" && B(t) ? te(t) ? `var(${t})` : t : P($(e, t));
|
|
534
571
|
}
|
|
535
|
-
function
|
|
536
|
-
const n = e.space ??
|
|
537
|
-
return
|
|
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]);
|
|
538
575
|
}
|
|
539
576
|
function O(e, t) {
|
|
540
577
|
if (t === void 0)
|
|
541
578
|
return;
|
|
542
579
|
if (typeof t == "number" && t >= 0)
|
|
543
580
|
return `${t}px`;
|
|
544
|
-
if (typeof t == "string" &&
|
|
545
|
-
return
|
|
546
|
-
const n = e.sizes ??
|
|
547
|
-
return
|
|
581
|
+
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]);
|
|
548
585
|
}
|
|
549
|
-
function
|
|
586
|
+
function ht(e) {
|
|
550
587
|
return e === void 0 ? "100%" : typeof e == "number" ? `${e}px` : e;
|
|
551
588
|
}
|
|
552
|
-
function
|
|
553
|
-
const t = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((o, [l, f]) => o + `${l}:${f};`, ""), n = () => `--maxWidth: ${
|
|
554
|
-
return h(() => e.as ?? "div",
|
|
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("; ");
|
|
591
|
+
return h(() => e.as ?? "div", y(m(e, ["as", "maxWidth", "centerText", "centerChildren"]), g({
|
|
555
592
|
style: c,
|
|
556
593
|
"data-bedrock-center": r
|
|
557
594
|
})));
|
|
558
595
|
}
|
|
559
|
-
const
|
|
560
|
-
function
|
|
561
|
-
return E(
|
|
596
|
+
const ie = ce({});
|
|
597
|
+
function Ht(e) {
|
|
598
|
+
return E(ie.Provider, {
|
|
562
599
|
get value() {
|
|
563
600
|
return e.theme;
|
|
564
601
|
},
|
|
@@ -567,39 +604,39 @@ function Dt(e) {
|
|
|
567
604
|
}
|
|
568
605
|
});
|
|
569
606
|
}
|
|
570
|
-
function
|
|
607
|
+
function x() {
|
|
571
608
|
try {
|
|
572
|
-
return le(
|
|
609
|
+
return le(ie);
|
|
573
610
|
} catch {
|
|
574
611
|
return {};
|
|
575
612
|
}
|
|
576
613
|
}
|
|
577
|
-
function
|
|
614
|
+
function gt(e, t) {
|
|
578
615
|
return O(e, t);
|
|
579
616
|
}
|
|
580
|
-
function
|
|
581
|
-
const t =
|
|
582
|
-
return h(() => e.as ?? "div",
|
|
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("; ");
|
|
619
|
+
return h(() => e.as ?? "div", y(m(e, ["as", "gutter", "minItemWidth", "noStretchedColumns"]), g({
|
|
583
620
|
style: c,
|
|
584
621
|
"data-bedrock-column-drop": r
|
|
585
622
|
})));
|
|
586
623
|
}
|
|
587
|
-
function
|
|
624
|
+
function z(e) {
|
|
588
625
|
throw new Error(e);
|
|
589
626
|
}
|
|
590
|
-
function
|
|
591
|
-
typeof e != "number" && !Array.isArray(e) &&
|
|
592
|
-
}
|
|
593
|
-
function
|
|
594
|
-
|
|
595
|
-
const [n, i] =
|
|
596
|
-
return
|
|
597
|
-
|
|
598
|
-
}),
|
|
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(() => {
|
|
599
636
|
if (s() === void 0 || s() === null)
|
|
600
637
|
return;
|
|
601
638
|
t && t(s());
|
|
602
|
-
const c =
|
|
639
|
+
const c = J(s(), (o) => {
|
|
603
640
|
var f;
|
|
604
641
|
const l = ((f = o.borderBoxSize) == null ? void 0 : f.inlineSize) ?? o.contentRect.width;
|
|
605
642
|
if (l > 0) {
|
|
@@ -610,36 +647,36 @@ function Gt(e, t) {
|
|
|
610
647
|
Q(c);
|
|
611
648
|
}), [n, r];
|
|
612
649
|
}
|
|
613
|
-
function
|
|
650
|
+
function $t(e) {
|
|
614
651
|
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);
|
|
615
652
|
}
|
|
616
|
-
function
|
|
653
|
+
function xt(e) {
|
|
617
654
|
return Array.isArray(e) ? e.join("/") : e;
|
|
618
655
|
}
|
|
619
|
-
function
|
|
620
|
-
return
|
|
656
|
+
function St(e) {
|
|
657
|
+
return $t(e) ? xt(e) : void 0;
|
|
621
658
|
}
|
|
622
|
-
function
|
|
623
|
-
const t = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((c, [o, l]) => c + `${o}:${l};`, ""), n = () =>
|
|
624
|
-
return h(() => e.as ?? "div",
|
|
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("; ");
|
|
661
|
+
return h(() => e.as ?? "div", y(m(e, ["as", "ratio", "position"]), g({
|
|
625
662
|
style: r,
|
|
626
663
|
"data-bedrock-frame": () => ""
|
|
627
664
|
})));
|
|
628
665
|
}
|
|
629
|
-
function
|
|
630
|
-
const t =
|
|
631
|
-
return h(() => e.as ?? "div",
|
|
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("; ");
|
|
668
|
+
return h(() => e.as ?? "div", y(m(e, ["as", "gutter", "minItemWidth"]), g({
|
|
632
669
|
style: r,
|
|
633
670
|
"data-bedrock-grid": () => ""
|
|
634
671
|
})));
|
|
635
672
|
}
|
|
636
673
|
const C = 96;
|
|
637
|
-
function
|
|
674
|
+
function se(e) {
|
|
638
675
|
e = String(e);
|
|
639
676
|
const t = parseFloat(e), [, n] = e.match(/[\d.\-+]*\s*(.*)/) ?? ["", ""];
|
|
640
677
|
return [t, n];
|
|
641
678
|
}
|
|
642
|
-
function
|
|
679
|
+
function D(e, t) {
|
|
643
680
|
if (!e)
|
|
644
681
|
return;
|
|
645
682
|
const n = t ?? document.body, i = (e ?? "px").trim().toLowerCase();
|
|
@@ -652,11 +689,11 @@ function v(e, t) {
|
|
|
652
689
|
return;
|
|
653
690
|
case "ch":
|
|
654
691
|
case "ex":
|
|
655
|
-
return
|
|
692
|
+
return wt(i, n);
|
|
656
693
|
case "em":
|
|
657
|
-
return
|
|
694
|
+
return W(n, "font-size");
|
|
658
695
|
case "rem":
|
|
659
|
-
return
|
|
696
|
+
return W(document.body, "font-size");
|
|
660
697
|
case "in":
|
|
661
698
|
return C;
|
|
662
699
|
case "cm":
|
|
@@ -670,90 +707,90 @@ function v(e, t) {
|
|
|
670
707
|
case "px":
|
|
671
708
|
return 1;
|
|
672
709
|
default: {
|
|
673
|
-
const [s, r] =
|
|
710
|
+
const [s, r] = se(i);
|
|
674
711
|
if (isNaN(s))
|
|
675
712
|
return;
|
|
676
713
|
if (!r)
|
|
677
714
|
return s;
|
|
678
|
-
const c =
|
|
715
|
+
const c = D(r, t);
|
|
679
716
|
return typeof c == "number" ? s * c : void 0;
|
|
680
717
|
}
|
|
681
718
|
}
|
|
682
719
|
}
|
|
683
|
-
function
|
|
684
|
-
const [n, i] =
|
|
720
|
+
function W(e, t) {
|
|
721
|
+
const [n, i] = se(
|
|
685
722
|
getComputedStyle(e).getPropertyValue(t)
|
|
686
723
|
);
|
|
687
|
-
return n * (
|
|
724
|
+
return n * (D(i, e) ?? 1);
|
|
688
725
|
}
|
|
689
|
-
function
|
|
726
|
+
function wt(e, t) {
|
|
690
727
|
const n = document.createElement("div");
|
|
691
728
|
n.style.height = "128" + e, t.appendChild(n);
|
|
692
|
-
const i =
|
|
729
|
+
const i = W(n, "height") / 128;
|
|
693
730
|
return t.removeChild(n), i;
|
|
694
731
|
}
|
|
695
|
-
const
|
|
696
|
-
const [t, n] =
|
|
697
|
-
return
|
|
698
|
-
|
|
699
|
-
}),
|
|
700
|
-
const c =
|
|
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());
|
|
701
738
|
if (c === void 0)
|
|
702
739
|
return;
|
|
703
|
-
const o =
|
|
740
|
+
const o = J(c, ({
|
|
704
741
|
target: l
|
|
705
742
|
}) => {
|
|
706
743
|
n(1);
|
|
707
|
-
const f = e.gutter ?
|
|
708
|
-
n(
|
|
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);
|
|
709
746
|
});
|
|
710
747
|
Q(o);
|
|
711
748
|
}), (() => {
|
|
712
|
-
const c =
|
|
713
|
-
return
|
|
749
|
+
const c = jt();
|
|
750
|
+
return Ie(s, c), p(c, () => e.children), A((o) => K(c, `grid-row: span ${t()};`, o)), c;
|
|
714
751
|
})();
|
|
715
|
-
},
|
|
716
|
-
const t = fe(() => e.children), i = [].concat(t()).filter(Boolean).map((s) => E(
|
|
752
|
+
}, Ft = (e) => {
|
|
753
|
+
const t = fe(() => e.children), i = [].concat(t()).filter(Boolean).map((s) => E(Et, {
|
|
717
754
|
get gutter() {
|
|
718
755
|
return e.gutter;
|
|
719
756
|
},
|
|
720
757
|
children: s
|
|
721
758
|
}));
|
|
722
|
-
return E(
|
|
759
|
+
return E(At, y({
|
|
723
760
|
style: "grid-template-rows: 1px;"
|
|
724
761
|
}, e, {
|
|
725
762
|
children: i
|
|
726
763
|
}));
|
|
727
|
-
},
|
|
764
|
+
}, It = {
|
|
728
765
|
start: "justify:start",
|
|
729
766
|
end: "justify:end",
|
|
730
767
|
center: "justify:center"
|
|
731
|
-
},
|
|
768
|
+
}, Tt = {
|
|
732
769
|
start: "align:start",
|
|
733
770
|
end: "align:end",
|
|
734
771
|
center: "align:center",
|
|
735
772
|
stretch: "align:stretch"
|
|
736
773
|
};
|
|
737
|
-
function
|
|
738
|
-
const t =
|
|
739
|
-
return h(() => e.as ?? "div",
|
|
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(" ");
|
|
776
|
+
return h(() => e.as ?? "div", y(m(e, ["as", "gutter", "justify", "align"]), g({
|
|
740
777
|
style: c,
|
|
741
778
|
"data-bedrock-inline-cluster": o
|
|
742
779
|
})));
|
|
743
780
|
}
|
|
744
|
-
const
|
|
781
|
+
const Pt = {
|
|
745
782
|
start: "justify:start",
|
|
746
783
|
end: "justify:end",
|
|
747
784
|
center: "justify:center"
|
|
748
|
-
},
|
|
785
|
+
}, Ot = {
|
|
749
786
|
start: "align:start",
|
|
750
787
|
end: "align:end",
|
|
751
788
|
center: "align:center",
|
|
752
789
|
stretch: "align:stretch"
|
|
753
790
|
};
|
|
754
|
-
function
|
|
755
|
-
const t =
|
|
756
|
-
return h(() => e.as ?? "div",
|
|
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(" ");
|
|
793
|
+
return h(() => e.as ?? "div", y(m(e, ["as", "gutter", "justify", "align", "stretch", "switchAt"]), g({
|
|
757
794
|
style: f,
|
|
758
795
|
"data-bedrock-inline": a
|
|
759
796
|
})));
|
|
@@ -767,28 +804,28 @@ const Mt = (e) => ({
|
|
|
767
804
|
inlineEnd: "padding-inline-end",
|
|
768
805
|
blockStart: "padding-block-start",
|
|
769
806
|
blockEnd: "padding-block-end"
|
|
770
|
-
})[e],
|
|
807
|
+
})[e], zt = (e, t) => {
|
|
771
808
|
if (!t)
|
|
772
809
|
return "";
|
|
773
810
|
if (Array.isArray(t) && t.length > 4)
|
|
774
811
|
throw new Error("padding arrays can only be 4 or less in length");
|
|
775
812
|
const n = typeof t == "object" && !Array.isArray(t) ? Object.entries(t).reduce((i, [s, r]) => ({
|
|
776
813
|
...i,
|
|
777
|
-
[Mt(s)]:
|
|
814
|
+
[Mt(s)]: V(e, r) ?? "0px"
|
|
778
815
|
}), {}) : {
|
|
779
|
-
padding: Array.from(Array.isArray(t) ? t : [t]).map((i) =>
|
|
816
|
+
padding: Array.from(Array.isArray(t) ? t : [t]).map((i) => V(e, i) ?? "0px").join(" ")
|
|
780
817
|
};
|
|
781
818
|
return Object.entries(n).reduce((i, [s, r]) => i + `${s}:${r};`, "");
|
|
782
819
|
};
|
|
783
|
-
function
|
|
784
|
-
const t =
|
|
785
|
-
return h(() => e.as ?? "div",
|
|
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("; ");
|
|
822
|
+
return h(() => e.as ?? "div", y(m(e, ["as", "padding"]), g({
|
|
786
823
|
style: s,
|
|
787
824
|
"data-bedrock-padbox": () => ""
|
|
788
825
|
})));
|
|
789
826
|
}
|
|
790
|
-
function
|
|
791
|
-
const t =
|
|
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 = () => {
|
|
792
829
|
switch (e.snapType) {
|
|
793
830
|
case "none":
|
|
794
831
|
return "snapType:none";
|
|
@@ -800,7 +837,7 @@ function qt(e) {
|
|
|
800
837
|
return "snapType:none";
|
|
801
838
|
}
|
|
802
839
|
}, r = () => [n(), i()].join("; ");
|
|
803
|
-
return h(() => e.as ?? "div",
|
|
840
|
+
return h(() => e.as ?? "div", y(m(e, ["as", "gutter"]), g({
|
|
804
841
|
style: r,
|
|
805
842
|
"data-bedrock-reel": s
|
|
806
843
|
})));
|
|
@@ -814,79 +851,79 @@ const F = {
|
|
|
814
851
|
"auto-start": "fraction:auto-start",
|
|
815
852
|
"auto-end": "fraction:auto-end"
|
|
816
853
|
};
|
|
817
|
-
function
|
|
818
|
-
const t =
|
|
819
|
-
return h(() => e.as ?? "div",
|
|
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("; ");
|
|
856
|
+
return h(() => e.as ?? "div", y(m(e, ["as", "gutter", "fraction"]), g({
|
|
820
857
|
style: o,
|
|
821
858
|
"data-bedrock-split": r
|
|
822
859
|
})));
|
|
823
860
|
}
|
|
824
|
-
function
|
|
825
|
-
const t =
|
|
826
|
-
return h(() => e.as ?? "div",
|
|
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("; ");
|
|
863
|
+
return h(() => e.as ?? "div", y(m(e, ["as", "gutter"]), g({
|
|
827
864
|
style: s,
|
|
828
865
|
"data-bedrock-stack": () => ""
|
|
829
866
|
})));
|
|
830
867
|
}
|
|
831
|
-
const
|
|
832
|
-
function
|
|
833
|
-
return typeof e == "number" ? `${e}px` : e &&
|
|
868
|
+
const kt = /* @__PURE__ */ Z("<div data-bedrock-cover-centered>");
|
|
869
|
+
function Nt(e) {
|
|
870
|
+
return typeof e == "number" ? `${e}px` : e && B(e) ? e : "100vh";
|
|
834
871
|
}
|
|
835
|
-
function
|
|
836
|
-
const t =
|
|
837
|
-
return h(() => e.as ?? "div",
|
|
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("; ");
|
|
874
|
+
return h(() => e.as ?? "div", y(m(e, ["as", "minHeight", "stretchContent"]), g({
|
|
838
875
|
style: c,
|
|
839
876
|
"data-bedrock-cover": r
|
|
840
877
|
})));
|
|
841
878
|
}
|
|
842
|
-
function
|
|
843
|
-
const [t, n] =
|
|
844
|
-
return E(
|
|
879
|
+
function Zt(e) {
|
|
880
|
+
const [t, n] = X(e, ["children", "top", "bottom"]);
|
|
881
|
+
return E(Lt, y(n, {
|
|
845
882
|
get children() {
|
|
846
883
|
return [I(() => t.top), (() => {
|
|
847
|
-
const i =
|
|
848
|
-
return
|
|
884
|
+
const i = kt();
|
|
885
|
+
return p(i, () => t.children), i;
|
|
849
886
|
})(), I(() => t.bottom)];
|
|
850
887
|
}
|
|
851
888
|
}));
|
|
852
889
|
}
|
|
853
|
-
function
|
|
854
|
-
const t =
|
|
855
|
-
return h(() => e.as ?? "div",
|
|
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("; ");
|
|
892
|
+
return h(() => e.as ?? "div", y(m(e, ["as", "gutter", "columns", "switchAt"]), g({
|
|
856
893
|
style: c,
|
|
857
894
|
"data-bedrock-columns": () => ""
|
|
858
895
|
})));
|
|
859
896
|
}
|
|
860
|
-
const
|
|
861
|
-
function
|
|
862
|
-
const t = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((c, [o, l]) => c + `${o}:${l};`, ""), n = () => `--span: ${
|
|
863
|
-
return h(() => e.as ?? "div",
|
|
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("; ");
|
|
900
|
+
return h(() => e.as ?? "div", y(m(e, ["as", "span", "offsetStart", "offsetEnd"]), g({
|
|
864
901
|
style: r,
|
|
865
902
|
"data-bedrock-column": () => ""
|
|
866
903
|
})));
|
|
867
904
|
}
|
|
868
905
|
export {
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
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,
|
|
921
|
+
B as checkIsCSSLength,
|
|
922
|
+
_t as createContainerQuery,
|
|
923
|
+
V as getSafeGutter,
|
|
887
924
|
O as getSizeValue,
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
925
|
+
$ as getSpacingValue,
|
|
926
|
+
mt as sizes,
|
|
927
|
+
yt as spacing,
|
|
928
|
+
x as useTheme
|
|
892
929
|
};
|