@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/center.d.ts +1 -1
- package/lib/column-drop.d.ts +1 -1
- package/lib/columns.d.ts +2 -2
- package/lib/cover.d.ts +1 -1
- package/lib/create-container-query.d.ts +1 -1
- package/lib/frame.d.ts +1 -1
- package/lib/grid.d.ts +1 -1
- package/lib/index.cjs.js +1 -1
- package/lib/index.m.js +439 -381
- package/lib/index.umd.js +1 -1
- package/lib/inline-cluster.d.ts +1 -1
- package/lib/inline.d.ts +1 -1
- package/lib/reel.d.ts +1 -1
- package/lib/spacing-constants.d.ts +4 -4
- package/lib/split.d.ts +1 -1
- package/lib/stack.d.ts +1 -1
- package/lib/theme-provider.d.ts +1 -1
- package/lib/toPx.d.ts +1 -1
- package/lib/typeUtils.d.ts +2 -2
- package/package.json +4 -3
package/lib/index.m.js
CHANGED
|
@@ -1,10 +1,49 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { createRenderEffect as
|
|
3
|
-
import { init as
|
|
4
|
-
const
|
|
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
|
-
}),
|
|
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
|
|
33
|
-
const n =
|
|
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
|
|
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
|
-
]),
|
|
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
|
|
118
|
-
let i = n.length, s = t.length,
|
|
119
|
-
for (;
|
|
120
|
-
if (t[
|
|
121
|
-
|
|
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[
|
|
125
|
-
s--,
|
|
126
|
-
if (s ===
|
|
127
|
-
const a =
|
|
128
|
-
for (; o <
|
|
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 (
|
|
131
|
-
for (;
|
|
132
|
-
(!f || !f.has(t[
|
|
133
|
-
else if (t[
|
|
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[
|
|
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 <
|
|
202
|
+
for (; u < c; )
|
|
141
203
|
f.set(n[u], u++);
|
|
142
204
|
}
|
|
143
|
-
const a = f.get(t[
|
|
205
|
+
const a = f.get(t[r]);
|
|
144
206
|
if (a != null)
|
|
145
|
-
if (o < a && a <
|
|
146
|
-
let u =
|
|
147
|
-
for (; ++u < s && u <
|
|
148
|
-
|
|
149
|
-
if (
|
|
150
|
-
const
|
|
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++],
|
|
214
|
+
e.insertBefore(n[o++], z);
|
|
153
215
|
} else
|
|
154
|
-
e.replaceChild(n[o++], t[
|
|
216
|
+
e.replaceChild(n[o++], t[r++]);
|
|
155
217
|
} else
|
|
156
|
-
|
|
218
|
+
r++;
|
|
157
219
|
else
|
|
158
|
-
t[
|
|
220
|
+
t[r++].remove();
|
|
159
221
|
}
|
|
160
222
|
}
|
|
161
223
|
}
|
|
162
|
-
const
|
|
163
|
-
function
|
|
224
|
+
const D = "_$DX_DELEGATE";
|
|
225
|
+
function J(e, t, n) {
|
|
164
226
|
let i;
|
|
165
227
|
const s = () => {
|
|
166
|
-
const
|
|
167
|
-
return
|
|
168
|
-
},
|
|
169
|
-
return
|
|
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
|
|
172
|
-
const n = t[
|
|
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
|
|
175
|
-
n.has(
|
|
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
|
|
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
|
|
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
|
|
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] = (
|
|
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
|
|
258
|
+
function je(e, t, n = {}) {
|
|
197
259
|
const i = Object.keys(t || {}), s = Object.keys(n);
|
|
198
|
-
let
|
|
199
|
-
for (
|
|
200
|
-
const o = s[
|
|
201
|
-
!o || o === "undefined" || t[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 (
|
|
204
|
-
const o = i[
|
|
205
|
-
!o || o === "undefined" || n[o] === l || !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
|
|
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,
|
|
217
|
-
for (
|
|
218
|
-
t[
|
|
219
|
-
for (
|
|
220
|
-
s = t[
|
|
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
|
|
285
|
+
function Ae(e, t = {}, n, i) {
|
|
224
286
|
const s = {};
|
|
225
|
-
return i ||
|
|
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
|
|
228
|
-
return
|
|
291
|
+
function Ce(e, t, n) {
|
|
292
|
+
return W(() => e(t, n));
|
|
229
293
|
}
|
|
230
|
-
function
|
|
294
|
+
function K(e, t, n, i) {
|
|
231
295
|
if (n !== void 0 && !i && (i = []), typeof t != "function")
|
|
232
|
-
return
|
|
233
|
-
|
|
296
|
+
return A(e, t, i, n);
|
|
297
|
+
w((s) => A(e, t(), s, n), i);
|
|
234
298
|
}
|
|
235
|
-
function
|
|
299
|
+
function Ee(e, t, n, i, s = {}, c = !1) {
|
|
236
300
|
t || (t = {});
|
|
237
|
-
for (const
|
|
238
|
-
if (!(
|
|
239
|
-
if (
|
|
301
|
+
for (const r in s)
|
|
302
|
+
if (!(r in t)) {
|
|
303
|
+
if (r === "children")
|
|
240
304
|
continue;
|
|
241
|
-
s[
|
|
305
|
+
s[r] = H(e, r, null, s[r], n, c);
|
|
242
306
|
}
|
|
243
|
-
for (const
|
|
244
|
-
if (
|
|
245
|
-
i ||
|
|
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[
|
|
249
|
-
s[
|
|
312
|
+
const o = t[r];
|
|
313
|
+
s[r] = H(e, r, o, s[r], n, c);
|
|
250
314
|
}
|
|
251
315
|
}
|
|
252
|
-
function
|
|
316
|
+
function Ie(e) {
|
|
253
317
|
let t, n;
|
|
254
|
-
|
|
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
|
|
320
|
+
function Te(e) {
|
|
262
321
|
return e.toLowerCase().replace(/-([a-z])/g, (t, n) => n.toUpperCase());
|
|
263
322
|
}
|
|
264
|
-
function
|
|
323
|
+
function G(e, t, n) {
|
|
265
324
|
const i = t.trim().split(/\s+/);
|
|
266
|
-
for (let s = 0,
|
|
325
|
+
for (let s = 0, c = i.length; s < c; s++)
|
|
267
326
|
e.classList.toggle(i[s], n);
|
|
268
327
|
}
|
|
269
|
-
function
|
|
270
|
-
let
|
|
328
|
+
function H(e, t, n, i, s, c) {
|
|
329
|
+
let r, o, l, f, a;
|
|
271
330
|
if (t === "style")
|
|
272
|
-
return
|
|
331
|
+
return Z(e, n, i);
|
|
273
332
|
if (t === "classList")
|
|
274
|
-
return
|
|
333
|
+
return je(e, n, i);
|
|
275
334
|
if (n === i)
|
|
276
335
|
return i;
|
|
277
336
|
if (t === "ref")
|
|
278
|
-
|
|
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(),
|
|
287
|
-
if (
|
|
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
|
-
(
|
|
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 =
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
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
|
|
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
|
|
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
|
|
338
|
-
if (e =
|
|
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 (
|
|
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 =
|
|
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 ||
|
|
409
|
+
} else if (t == null || c === "boolean") {
|
|
347
410
|
if (d.context)
|
|
348
411
|
return n;
|
|
349
|
-
n =
|
|
412
|
+
n = j(e, n, i);
|
|
350
413
|
} else {
|
|
351
|
-
if (
|
|
352
|
-
return
|
|
414
|
+
if (c === "function")
|
|
415
|
+
return w(() => {
|
|
353
416
|
let o = t();
|
|
354
417
|
for (; typeof o == "function"; )
|
|
355
418
|
o = o();
|
|
356
|
-
n =
|
|
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 (
|
|
361
|
-
return
|
|
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
|
-
|
|
366
|
-
|
|
367
|
-
|
|
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 =
|
|
436
|
+
if (n = j(e, n, i), r)
|
|
371
437
|
return n;
|
|
372
438
|
} else
|
|
373
|
-
l ? n.length === 0 ?
|
|
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 =
|
|
443
|
+
return n = r ? [t] : t;
|
|
378
444
|
if (Array.isArray(n)) {
|
|
379
|
-
if (
|
|
380
|
-
return n =
|
|
381
|
-
|
|
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
|
-
}
|
|
386
|
-
console.warn("Unrecognized value. Skipped inserting", t);
|
|
451
|
+
}
|
|
387
452
|
}
|
|
388
453
|
return n;
|
|
389
454
|
}
|
|
390
|
-
function
|
|
455
|
+
function k(e, t, n, i) {
|
|
391
456
|
let s = !1;
|
|
392
|
-
for (let
|
|
393
|
-
let o = t[
|
|
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 =
|
|
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 =
|
|
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
|
|
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
|
|
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
|
|
423
|
-
for (let
|
|
424
|
-
const o = t[
|
|
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
|
-
!
|
|
496
|
+
!c && !r ? l ? e.replaceChild(s, o) : e.insertBefore(s, n) : l && o.remove();
|
|
428
497
|
} else
|
|
429
|
-
|
|
498
|
+
c = !0;
|
|
430
499
|
}
|
|
431
500
|
} else
|
|
432
501
|
e.insertBefore(s, n);
|
|
433
502
|
return [s];
|
|
434
503
|
}
|
|
435
|
-
function
|
|
504
|
+
function Pe() {
|
|
436
505
|
const e = d.context;
|
|
437
506
|
return `${e.id}${e.count++}`;
|
|
438
507
|
}
|
|
439
|
-
const
|
|
440
|
-
function
|
|
441
|
-
return t ? document.createElementNS(
|
|
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
|
|
444
|
-
const [t, n] =
|
|
445
|
-
return
|
|
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
|
|
450
|
-
[re]: !0
|
|
451
|
-
}), v(() => s(n));
|
|
518
|
+
return W(() => s(n));
|
|
452
519
|
case "string":
|
|
453
|
-
const
|
|
454
|
-
return
|
|
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
|
|
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) =>
|
|
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
|
-
}),
|
|
537
|
+
}), {});
|
|
469
538
|
}
|
|
470
539
|
function h(e, t) {
|
|
471
|
-
return E(
|
|
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
|
-
|
|
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(
|
|
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
|
-
})
|
|
489
|
-
}, {});
|
|
557
|
+
});
|
|
558
|
+
}, {}) : new Error("Please provide an object with accessor values only.");
|
|
490
559
|
}
|
|
491
|
-
const
|
|
492
|
-
function
|
|
493
|
-
return
|
|
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}\)$/,
|
|
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:
|
|
500
|
-
sizeXs:
|
|
501
|
-
sizeSm:
|
|
502
|
-
sizeMd:
|
|
568
|
+
sizeXxs: ke,
|
|
569
|
+
sizeXs: Le,
|
|
570
|
+
sizeSm: We,
|
|
571
|
+
sizeMd: Be,
|
|
503
572
|
sizeLg: Re,
|
|
504
|
-
sizeXl:
|
|
573
|
+
sizeXl: De,
|
|
505
574
|
sizeXxl: Ge,
|
|
506
|
-
sizeContent1:
|
|
507
|
-
sizeContent2:
|
|
508
|
-
sizeContent3:
|
|
509
|
-
sizeHeader1:
|
|
510
|
-
sizeHeader2:
|
|
511
|
-
sizeHeader3:
|
|
512
|
-
size000:
|
|
513
|
-
size00:
|
|
514
|
-
size1:
|
|
515
|
-
size2:
|
|
516
|
-
size3:
|
|
517
|
-
size4:
|
|
518
|
-
size5:
|
|
519
|
-
size6:
|
|
520
|
-
size7:
|
|
521
|
-
size8:
|
|
522
|
-
size9:
|
|
523
|
-
size10:
|
|
524
|
-
size11:
|
|
525
|
-
size12:
|
|
526
|
-
size13:
|
|
527
|
-
size14:
|
|
528
|
-
size15:
|
|
529
|
-
} =
|
|
530
|
-
size000:
|
|
531
|
-
size00:
|
|
532
|
-
size1:
|
|
533
|
-
size2:
|
|
534
|
-
size3:
|
|
535
|
-
size4:
|
|
536
|
-
size5:
|
|
537
|
-
size6:
|
|
538
|
-
size7:
|
|
539
|
-
size8:
|
|
540
|
-
size9:
|
|
541
|
-
size10:
|
|
542
|
-
size11:
|
|
543
|
-
size12:
|
|
544
|
-
size13:
|
|
545
|
-
size14:
|
|
546
|
-
size15:
|
|
547
|
-
},
|
|
548
|
-
sizeXxs:
|
|
549
|
-
sizeXs:
|
|
550
|
-
sizeSm:
|
|
551
|
-
sizeMd:
|
|
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:
|
|
622
|
+
sizeXl: De,
|
|
554
623
|
sizeXxl: Ge,
|
|
555
|
-
sizeContent1:
|
|
556
|
-
sizeContent2:
|
|
557
|
-
sizeContent3:
|
|
558
|
-
sizeHeader1:
|
|
559
|
-
sizeHeader2:
|
|
560
|
-
sizeHeader3:
|
|
561
|
-
},
|
|
562
|
-
function
|
|
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
|
|
637
|
+
function _(e, t) {
|
|
569
638
|
if (t !== void 0)
|
|
570
|
-
return typeof t == "number" && t >= 0 ? `${t}px` : typeof t == "string" && B(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
|
|
573
|
-
const n = e.space ??
|
|
574
|
-
return
|
|
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
|
|
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
|
|
583
|
-
const n = e.sizes ??
|
|
584
|
-
return
|
|
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
|
|
655
|
+
function yt(e) {
|
|
587
656
|
return e === void 0 ? "100%" : typeof e == "number" ? `${e}px` : e;
|
|
588
657
|
}
|
|
589
|
-
function
|
|
590
|
-
const t = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((o, [l, f]) => o + `${l}:${f};`, ""), n = () => `--maxWidth: ${
|
|
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:
|
|
593
|
-
"data-bedrock-center":
|
|
661
|
+
style: r,
|
|
662
|
+
"data-bedrock-center": c
|
|
594
663
|
})));
|
|
595
664
|
}
|
|
596
|
-
const
|
|
597
|
-
function
|
|
598
|
-
return E(
|
|
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
|
|
678
|
+
return ce(ne);
|
|
610
679
|
} catch {
|
|
611
680
|
return {};
|
|
612
681
|
}
|
|
613
682
|
}
|
|
614
|
-
function
|
|
615
|
-
return
|
|
683
|
+
function mt(e, t) {
|
|
684
|
+
return P(e, t);
|
|
616
685
|
}
|
|
617
|
-
function
|
|
618
|
-
const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((o, [l, f]) => o + `${l}:${f};`, ""), i = () => `--gutter: ${
|
|
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:
|
|
621
|
-
"data-bedrock-column-drop":
|
|
689
|
+
style: r,
|
|
690
|
+
"data-bedrock-column-drop": c
|
|
622
691
|
})));
|
|
623
692
|
}
|
|
624
|
-
function
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
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
|
|
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 =
|
|
703
|
+
const a = l <= e;
|
|
644
704
|
i(a);
|
|
645
705
|
}
|
|
706
|
+
return 0;
|
|
646
707
|
});
|
|
647
|
-
|
|
648
|
-
}), [n,
|
|
708
|
+
return q(r), 0;
|
|
709
|
+
}), [n, c];
|
|
649
710
|
}
|
|
650
|
-
function
|
|
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
|
|
714
|
+
function gt(e) {
|
|
654
715
|
return Array.isArray(e) ? e.join("/") : e;
|
|
655
716
|
}
|
|
656
|
-
function
|
|
657
|
-
return
|
|
717
|
+
function $t(e) {
|
|
718
|
+
return ht(e) ? gt(e) : void 0;
|
|
658
719
|
}
|
|
659
|
-
function
|
|
660
|
-
const t = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((
|
|
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:
|
|
723
|
+
style: c,
|
|
663
724
|
"data-bedrock-frame": () => ""
|
|
664
725
|
})));
|
|
665
726
|
}
|
|
666
|
-
function
|
|
667
|
-
const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((
|
|
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:
|
|
730
|
+
style: c,
|
|
670
731
|
"data-bedrock-grid": () => ""
|
|
671
732
|
})));
|
|
672
733
|
}
|
|
673
734
|
const C = 96;
|
|
674
|
-
function
|
|
675
|
-
|
|
676
|
-
|
|
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
|
|
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
|
|
752
|
+
return xt(i, n);
|
|
693
753
|
case "em":
|
|
694
|
-
return
|
|
754
|
+
return L(n, "font-size");
|
|
695
755
|
case "rem":
|
|
696
|
-
return
|
|
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,
|
|
770
|
+
const [s, c] = ie(i);
|
|
711
771
|
if (isNaN(s))
|
|
712
772
|
return;
|
|
713
|
-
if (!
|
|
773
|
+
if (!c)
|
|
714
774
|
return s;
|
|
715
|
-
const
|
|
716
|
-
return typeof
|
|
775
|
+
const r = R(c, t);
|
|
776
|
+
return typeof r == "number" ? s * r : void 0;
|
|
717
777
|
}
|
|
718
778
|
}
|
|
719
779
|
}
|
|
720
|
-
function
|
|
721
|
-
const [n, i] =
|
|
780
|
+
function L(e, t) {
|
|
781
|
+
const [n, i] = ie(
|
|
722
782
|
getComputedStyle(e).getPropertyValue(t)
|
|
723
783
|
);
|
|
724
|
-
return n * (
|
|
784
|
+
return n * (R(i, e) ?? 1);
|
|
725
785
|
}
|
|
726
|
-
function
|
|
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 =
|
|
789
|
+
const i = L(n, "height") / 128;
|
|
730
790
|
return t.removeChild(n), i;
|
|
731
791
|
}
|
|
732
|
-
const
|
|
733
|
-
const [t, n] =
|
|
734
|
-
return U(() => {
|
|
735
|
-
|
|
736
|
-
|
|
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 =
|
|
798
|
+
const o = Y(r, ({
|
|
741
799
|
target: l
|
|
742
800
|
}) => {
|
|
743
801
|
n(1);
|
|
744
|
-
const f = e.gutter ?
|
|
745
|
-
n(
|
|
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
|
-
|
|
805
|
+
return q(o), 0;
|
|
748
806
|
}), (() => {
|
|
749
|
-
const
|
|
750
|
-
return
|
|
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
|
-
},
|
|
753
|
-
const t =
|
|
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(
|
|
817
|
+
return E(bt, y({
|
|
760
818
|
style: "grid-template-rows: 1px;"
|
|
761
819
|
}, e, {
|
|
762
820
|
children: i
|
|
763
821
|
}));
|
|
764
|
-
},
|
|
822
|
+
}, At = {
|
|
765
823
|
start: "justify:start",
|
|
766
824
|
end: "justify:end",
|
|
767
825
|
center: "justify:center"
|
|
768
|
-
},
|
|
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
|
|
775
|
-
const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((l, [f, a]) => l + `${f}:${a};`, ""), i = () => `--gutter: ${
|
|
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:
|
|
835
|
+
style: r,
|
|
778
836
|
"data-bedrock-inline-cluster": o
|
|
779
837
|
})));
|
|
780
838
|
}
|
|
781
|
-
const
|
|
839
|
+
const Et = {
|
|
782
840
|
start: "justify:start",
|
|
783
841
|
end: "justify:end",
|
|
784
842
|
center: "justify:center"
|
|
785
|
-
},
|
|
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
|
|
792
|
-
const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((u, [
|
|
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
|
|
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],
|
|
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,
|
|
870
|
+
const n = typeof t == "object" && !Array.isArray(t) ? Object.entries(t).reduce((i, [s, c]) => ({
|
|
813
871
|
...i,
|
|
814
|
-
[
|
|
872
|
+
[Tt(s)]: _(e, c) ?? "0px"
|
|
815
873
|
}), {}) : {
|
|
816
|
-
padding: Array.from(Array.isArray(t) ? t : [t]).map((i) =>
|
|
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,
|
|
876
|
+
return Object.entries(n).reduce((i, [s, c]) => i + `${s}:${c};`, "");
|
|
819
877
|
};
|
|
820
|
-
function
|
|
821
|
-
const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((
|
|
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
|
|
828
|
-
const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((
|
|
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
|
-
},
|
|
897
|
+
}, c = () => [n(), i()].join("; ");
|
|
840
898
|
return h(() => e.as ?? "div", y(m(e, ["as", "gutter"]), g({
|
|
841
|
-
style:
|
|
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
|
|
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: ${
|
|
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":
|
|
916
|
+
"data-bedrock-split": c
|
|
859
917
|
})));
|
|
860
918
|
}
|
|
861
|
-
function
|
|
862
|
-
const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((
|
|
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
|
|
869
|
-
function
|
|
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
|
|
873
|
-
const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((o, [l, f]) => o + `${l}:${f};`, ""), i = () => `--gutter: ${
|
|
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:
|
|
876
|
-
"data-bedrock-cover":
|
|
933
|
+
style: r,
|
|
934
|
+
"data-bedrock-cover": c
|
|
877
935
|
})));
|
|
878
936
|
}
|
|
879
|
-
function
|
|
880
|
-
const [t, n] =
|
|
881
|
-
return E(
|
|
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 [
|
|
884
|
-
const i =
|
|
885
|
-
return
|
|
886
|
-
})(),
|
|
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
|
|
891
|
-
const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((o, [l, f]) => o + `${l}:${f};`, ""), i = () => `--gutter: ${
|
|
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:
|
|
951
|
+
style: r,
|
|
894
952
|
"data-bedrock-columns": () => ""
|
|
895
953
|
})));
|
|
896
954
|
}
|
|
897
|
-
const
|
|
898
|
-
function
|
|
899
|
-
const t = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((
|
|
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:
|
|
959
|
+
style: c,
|
|
902
960
|
"data-bedrock-column": () => ""
|
|
903
961
|
})));
|
|
904
962
|
}
|
|
905
963
|
export {
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
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
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
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
|
};
|