@monospaced/set-core 0.10.1 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/figure/figure.d.ts +4 -2
- package/dist/components/figure/figure.d.ts.map +1 -1
- package/dist/core.css +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +174 -161
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -792,21 +792,21 @@ function O({
|
|
|
792
792
|
size: r = "md",
|
|
793
793
|
title: a
|
|
794
794
|
}) {
|
|
795
|
-
const
|
|
796
|
-
if (!
|
|
795
|
+
const o = st[i];
|
|
796
|
+
if (!o)
|
|
797
797
|
throw new Error(`Unknown icon name: ${i}`);
|
|
798
|
-
const
|
|
798
|
+
const d = g(n), s = a?.trim();
|
|
799
799
|
if (!t && !s)
|
|
800
800
|
throw new Error("title must be non-empty when ariaHidden is false.");
|
|
801
|
-
if (!t && !
|
|
801
|
+
if (!t && !d)
|
|
802
802
|
throw new Error("id must be provided when ariaHidden is false.");
|
|
803
|
-
const l = t ? void 0 : `${
|
|
803
|
+
const l = t ? void 0 : `${d}-title`, p = [];
|
|
804
804
|
return t || p.push({
|
|
805
805
|
kind: "element",
|
|
806
806
|
tag: "title",
|
|
807
807
|
attrs: { id: l },
|
|
808
808
|
children: [{ kind: "text", value: s }]
|
|
809
|
-
}), p.push(...lt(
|
|
809
|
+
}), p.push(...lt(o)), {
|
|
810
810
|
kind: "element",
|
|
811
811
|
tag: "svg",
|
|
812
812
|
attrs: {
|
|
@@ -817,7 +817,7 @@ function O({
|
|
|
817
817
|
"data-size": r,
|
|
818
818
|
fill: "none",
|
|
819
819
|
height: "24",
|
|
820
|
-
id:
|
|
820
|
+
id: d,
|
|
821
821
|
role: t ? void 0 : "img",
|
|
822
822
|
stroke: "currentColor",
|
|
823
823
|
"stroke-width": "1.75",
|
|
@@ -951,8 +951,8 @@ function it(t) {
|
|
|
951
951
|
disabled: i,
|
|
952
952
|
disclosure: r,
|
|
953
953
|
form: a,
|
|
954
|
-
haspopup:
|
|
955
|
-
id:
|
|
954
|
+
haspopup: o,
|
|
955
|
+
id: d,
|
|
956
956
|
icon: s,
|
|
957
957
|
iconMirrored: l,
|
|
958
958
|
iconPlacement: p = "start",
|
|
@@ -993,7 +993,7 @@ function it(t) {
|
|
|
993
993
|
attrs: {
|
|
994
994
|
"aria-controls": r && e || void 0,
|
|
995
995
|
"aria-expanded": r ? "false" : void 0,
|
|
996
|
-
"aria-haspopup":
|
|
996
|
+
"aria-haspopup": o || void 0,
|
|
997
997
|
class: "set-button",
|
|
998
998
|
"data-appearance": n,
|
|
999
999
|
"data-label-visibility": u === "visible" ? void 0 : u,
|
|
@@ -1001,7 +1001,7 @@ function it(t) {
|
|
|
1001
1001
|
"data-tone": k === "neutral" ? "neutral" : void 0,
|
|
1002
1002
|
disabled: !!i,
|
|
1003
1003
|
form: a || void 0,
|
|
1004
|
-
id:
|
|
1004
|
+
id: d || void 0,
|
|
1005
1005
|
name: m || void 0,
|
|
1006
1006
|
type: v || "button",
|
|
1007
1007
|
value: C || void 0
|
|
@@ -1231,15 +1231,15 @@ function Lt({
|
|
|
1231
1231
|
inlineSize: i = "full",
|
|
1232
1232
|
message: r,
|
|
1233
1233
|
size: a = "md",
|
|
1234
|
-
tone:
|
|
1235
|
-
title:
|
|
1234
|
+
tone: o,
|
|
1235
|
+
title: d
|
|
1236
1236
|
}) {
|
|
1237
1237
|
const s = g(e), l = n.trim() === "" ? P : n, p = [];
|
|
1238
|
-
return
|
|
1238
|
+
return d && p.push({
|
|
1239
1239
|
kind: "element",
|
|
1240
1240
|
tag: "p",
|
|
1241
1241
|
attrs: { class: "title" },
|
|
1242
|
-
children: [{ kind: "text", value:
|
|
1242
|
+
children: [{ kind: "text", value: d }]
|
|
1243
1243
|
}), p.push({
|
|
1244
1244
|
kind: "element",
|
|
1245
1245
|
tag: "p",
|
|
@@ -1254,9 +1254,9 @@ function Lt({
|
|
|
1254
1254
|
"data-dismissible-label": t ? l : void 0,
|
|
1255
1255
|
"data-inline-size": i === "fit" ? "fit" : void 0,
|
|
1256
1256
|
"data-size": a,
|
|
1257
|
-
"data-tone":
|
|
1257
|
+
"data-tone": o || void 0,
|
|
1258
1258
|
id: s,
|
|
1259
|
-
role: Ct(
|
|
1259
|
+
role: Ct(o)
|
|
1260
1260
|
},
|
|
1261
1261
|
children: [
|
|
1262
1262
|
{
|
|
@@ -1266,7 +1266,7 @@ function Lt({
|
|
|
1266
1266
|
children: [
|
|
1267
1267
|
O({
|
|
1268
1268
|
ariaHidden: !0,
|
|
1269
|
-
name: zt(
|
|
1269
|
+
name: zt(o),
|
|
1270
1270
|
size: a
|
|
1271
1271
|
})
|
|
1272
1272
|
]
|
|
@@ -1479,8 +1479,8 @@ function ut(t) {
|
|
|
1479
1479
|
download: i,
|
|
1480
1480
|
href: r,
|
|
1481
1481
|
id: a,
|
|
1482
|
-
icon:
|
|
1483
|
-
iconPlacement:
|
|
1482
|
+
icon: o,
|
|
1483
|
+
iconPlacement: d = "start",
|
|
1484
1484
|
label: s,
|
|
1485
1485
|
labelVisibility: l = "visible",
|
|
1486
1486
|
rel: p,
|
|
@@ -1488,7 +1488,7 @@ function ut(t) {
|
|
|
1488
1488
|
target: u,
|
|
1489
1489
|
tone: m = "default",
|
|
1490
1490
|
underline: y
|
|
1491
|
-
} = t, k = g(a), v =
|
|
1491
|
+
} = t, k = g(a), v = o?.trim() || void 0;
|
|
1492
1492
|
if (l !== "visible" && !!!v)
|
|
1493
1493
|
throw new Error("labelVisibility requires icon when label is not visible.");
|
|
1494
1494
|
const S = qt(i), b = v ? {
|
|
@@ -1519,7 +1519,7 @@ function ut(t) {
|
|
|
1519
1519
|
rel: S ? void 0 : p || void 0,
|
|
1520
1520
|
target: S ? void 0 : u || void 0
|
|
1521
1521
|
},
|
|
1522
|
-
children: b ?
|
|
1522
|
+
children: b ? d === "end" ? [x, b] : [b, x] : [x]
|
|
1523
1523
|
};
|
|
1524
1524
|
}
|
|
1525
1525
|
function Ke(t) {
|
|
@@ -1731,11 +1731,11 @@ function Tt({
|
|
|
1731
1731
|
dismissibleLabel: i = U,
|
|
1732
1732
|
id: r,
|
|
1733
1733
|
message: a,
|
|
1734
|
-
tone:
|
|
1734
|
+
tone: o
|
|
1735
1735
|
}) {
|
|
1736
1736
|
if (!!t != !!n)
|
|
1737
1737
|
throw new Error("actionHref and actionLabel must be provided together.");
|
|
1738
|
-
const
|
|
1738
|
+
const d = g(r), s = i.trim() === "" ? U : i, l = [{ kind: "text", value: a }];
|
|
1739
1739
|
return t && n && (l.push({ kind: "text", value: " " }), l.push(
|
|
1740
1740
|
ut({
|
|
1741
1741
|
href: t,
|
|
@@ -1751,8 +1751,8 @@ function Tt({
|
|
|
1751
1751
|
"data-set-surface": "default",
|
|
1752
1752
|
"data-dismissible": e,
|
|
1753
1753
|
"data-dismissible-label": e ? s : void 0,
|
|
1754
|
-
"data-tone":
|
|
1755
|
-
id:
|
|
1754
|
+
"data-tone": o || void 0,
|
|
1755
|
+
id: d
|
|
1756
1756
|
},
|
|
1757
1757
|
children: [
|
|
1758
1758
|
{
|
|
@@ -1932,7 +1932,7 @@ function Ht({
|
|
|
1932
1932
|
labelLight: i = J,
|
|
1933
1933
|
size: r = "md"
|
|
1934
1934
|
}) {
|
|
1935
|
-
const a = g(n),
|
|
1935
|
+
const a = g(n), o = e.trim() === "" ? Y : e, d = i.trim() === "" ? J : i;
|
|
1936
1936
|
return {
|
|
1937
1937
|
kind: "element",
|
|
1938
1938
|
tag: $,
|
|
@@ -1951,8 +1951,8 @@ function Ht({
|
|
|
1951
1951
|
type: "button"
|
|
1952
1952
|
},
|
|
1953
1953
|
children: [
|
|
1954
|
-
rt("dark",
|
|
1955
|
-
rt("light",
|
|
1954
|
+
rt("dark", o),
|
|
1955
|
+
rt("light", d)
|
|
1956
1956
|
]
|
|
1957
1957
|
}
|
|
1958
1958
|
]
|
|
@@ -2110,8 +2110,8 @@ function Nt({
|
|
|
2110
2110
|
size: i = "md",
|
|
2111
2111
|
triggerIcon: r,
|
|
2112
2112
|
triggerIconMirrored: a,
|
|
2113
|
-
triggerIconPlacement:
|
|
2114
|
-
triggerLabel:
|
|
2113
|
+
triggerIconPlacement: o,
|
|
2114
|
+
triggerLabel: d,
|
|
2115
2115
|
triggerLabelVisibility: s
|
|
2116
2116
|
}) {
|
|
2117
2117
|
const l = n.trim();
|
|
@@ -2157,9 +2157,9 @@ function Nt({
|
|
|
2157
2157
|
haspopup: "menu",
|
|
2158
2158
|
icon: r,
|
|
2159
2159
|
iconMirrored: a,
|
|
2160
|
-
iconPlacement:
|
|
2160
|
+
iconPlacement: o,
|
|
2161
2161
|
id: p,
|
|
2162
|
-
label:
|
|
2162
|
+
label: d,
|
|
2163
2163
|
labelVisibility: s,
|
|
2164
2164
|
size: i,
|
|
2165
2165
|
tone: "neutral",
|
|
@@ -2273,9 +2273,9 @@ function Ot() {
|
|
|
2273
2273
|
e.preventDefault(), this.#o(!0);
|
|
2274
2274
|
return;
|
|
2275
2275
|
}
|
|
2276
|
-
const a = this.ownerDocument.activeElement,
|
|
2276
|
+
const a = this.ownerDocument.activeElement, o = this.#c(), d = o.indexOf(a);
|
|
2277
2277
|
if (a === i) {
|
|
2278
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), this.#l(0)), e.key === "ArrowDown" && (e.preventDefault(), this.#l(0)), e.key === "ArrowUp" && (e.preventDefault(), this.#l(
|
|
2278
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), this.#l(0)), e.key === "ArrowDown" && (e.preventDefault(), this.#l(0)), e.key === "ArrowUp" && (e.preventDefault(), this.#l(o.length - 1));
|
|
2279
2279
|
return;
|
|
2280
2280
|
}
|
|
2281
2281
|
if (r.contains(a)) {
|
|
@@ -2283,7 +2283,7 @@ function Ot() {
|
|
|
2283
2283
|
e.preventDefault(), this.#s(a) || (this.#h(a), this.#o(!0));
|
|
2284
2284
|
return;
|
|
2285
2285
|
}
|
|
2286
|
-
e.key === "ArrowDown" && (e.preventDefault(), this.#a(
|
|
2286
|
+
e.key === "ArrowDown" && (e.preventDefault(), this.#a(d + 1)), e.key === "ArrowUp" && (e.preventDefault(), this.#a(d - 1)), e.key === "Home" && (e.preventDefault(), this.#a(0)), e.key === "End" && (e.preventDefault(), this.#a(o.length - 1)), e.key === "Tab" && this.#o(!1);
|
|
2287
2287
|
}
|
|
2288
2288
|
}, this.#i = (e) => {
|
|
2289
2289
|
const i = e.relatedTarget;
|
|
@@ -2446,7 +2446,7 @@ function Pt({
|
|
|
2446
2446
|
label: i = tt,
|
|
2447
2447
|
size: r = "md"
|
|
2448
2448
|
} = {}) {
|
|
2449
|
-
const a = g(e),
|
|
2449
|
+
const a = g(e), o = i.trim() === "" ? tt : i;
|
|
2450
2450
|
return {
|
|
2451
2451
|
kind: "element",
|
|
2452
2452
|
tag: "button",
|
|
@@ -2474,7 +2474,7 @@ function Pt({
|
|
|
2474
2474
|
kind: "element",
|
|
2475
2475
|
tag: "span",
|
|
2476
2476
|
attrs: { class: "visually-hidden" },
|
|
2477
|
-
children: [{ kind: "text", value:
|
|
2477
|
+
children: [{ kind: "text", value: o }]
|
|
2478
2478
|
}
|
|
2479
2479
|
]
|
|
2480
2480
|
}
|
|
@@ -2557,8 +2557,8 @@ function Rt({
|
|
|
2557
2557
|
expanderPosition: i = "start",
|
|
2558
2558
|
id: r,
|
|
2559
2559
|
items: a,
|
|
2560
|
-
label:
|
|
2561
|
-
size:
|
|
2560
|
+
label: o,
|
|
2561
|
+
size: d = "md"
|
|
2562
2562
|
}) {
|
|
2563
2563
|
const s = g(r), l = e?.trim() || void 0, p = n?.trim();
|
|
2564
2564
|
if (t && !p)
|
|
@@ -2594,7 +2594,7 @@ function Rt({
|
|
|
2594
2594
|
"data-collapsible": t,
|
|
2595
2595
|
"data-expander-label": t && l ? l : void 0,
|
|
2596
2596
|
"data-expander-position": t ? i : void 0,
|
|
2597
|
-
"data-size":
|
|
2597
|
+
"data-size": d,
|
|
2598
2598
|
id: s
|
|
2599
2599
|
},
|
|
2600
2600
|
children: [
|
|
@@ -2602,7 +2602,7 @@ function Rt({
|
|
|
2602
2602
|
kind: "element",
|
|
2603
2603
|
tag: "nav",
|
|
2604
2604
|
attrs: {
|
|
2605
|
-
"aria-label":
|
|
2605
|
+
"aria-label": o || void 0,
|
|
2606
2606
|
class: "nav"
|
|
2607
2607
|
},
|
|
2608
2608
|
children: [
|
|
@@ -2832,13 +2832,13 @@ function Ut({
|
|
|
2832
2832
|
inlineSize: i = "full",
|
|
2833
2833
|
label: r,
|
|
2834
2834
|
max: a,
|
|
2835
|
-
min:
|
|
2836
|
-
name:
|
|
2835
|
+
min: o,
|
|
2836
|
+
name: d,
|
|
2837
2837
|
size: s = "md",
|
|
2838
2838
|
step: l,
|
|
2839
2839
|
value: p
|
|
2840
2840
|
}) {
|
|
2841
|
-
const c = e.trim(), u = t?.trim(), m =
|
|
2841
|
+
const c = e.trim(), u = t?.trim(), m = d?.trim();
|
|
2842
2842
|
if (!c)
|
|
2843
2843
|
throw new Error("id must be a non-empty string.");
|
|
2844
2844
|
if (!I(c))
|
|
@@ -2874,7 +2874,7 @@ function Ut({
|
|
|
2874
2874
|
disabled: !!n,
|
|
2875
2875
|
id: c,
|
|
2876
2876
|
max: a != null ? String(a) : void 0,
|
|
2877
|
-
min:
|
|
2877
|
+
min: o != null ? String(o) : void 0,
|
|
2878
2878
|
name: m || void 0,
|
|
2879
2879
|
step: l != null ? String(l) : void 0,
|
|
2880
2880
|
type: "range",
|
|
@@ -2941,15 +2941,15 @@ function $t() {
|
|
|
2941
2941
|
"value"
|
|
2942
2942
|
);
|
|
2943
2943
|
if (!i?.get || !i.set) return;
|
|
2944
|
-
const r = i.get, a = i.set,
|
|
2944
|
+
const r = i.get, a = i.set, o = () => this.#i();
|
|
2945
2945
|
Object.defineProperty(e, "value", {
|
|
2946
2946
|
configurable: !0,
|
|
2947
2947
|
enumerable: i.enumerable,
|
|
2948
2948
|
get() {
|
|
2949
2949
|
return r.call(this);
|
|
2950
2950
|
},
|
|
2951
|
-
set(
|
|
2952
|
-
a.call(this,
|
|
2951
|
+
set(d) {
|
|
2952
|
+
a.call(this, d), o();
|
|
2953
2953
|
}
|
|
2954
2954
|
}), this.#t = e;
|
|
2955
2955
|
}
|
|
@@ -3111,11 +3111,11 @@ function Ft({
|
|
|
3111
3111
|
collapseLabel: i = V,
|
|
3112
3112
|
footer: r,
|
|
3113
3113
|
header: a,
|
|
3114
|
-
id:
|
|
3115
|
-
surface:
|
|
3114
|
+
id: o,
|
|
3115
|
+
surface: d,
|
|
3116
3116
|
triggerLabel: s = et
|
|
3117
3117
|
}) {
|
|
3118
|
-
const l =
|
|
3118
|
+
const l = o.trim(), p = i.trim() || V, c = s.trim() || et;
|
|
3119
3119
|
if (!l)
|
|
3120
3120
|
throw new Error("id must be a non-empty string.");
|
|
3121
3121
|
if (!I(l))
|
|
@@ -3178,7 +3178,7 @@ function Ft({
|
|
|
3178
3178
|
tag: "div",
|
|
3179
3179
|
attrs: {
|
|
3180
3180
|
class: "sidebar",
|
|
3181
|
-
"data-set-surface":
|
|
3181
|
+
"data-set-surface": d,
|
|
3182
3182
|
id: m,
|
|
3183
3183
|
tabindex: "-1"
|
|
3184
3184
|
},
|
|
@@ -3480,8 +3480,8 @@ function Kt({
|
|
|
3480
3480
|
height: i,
|
|
3481
3481
|
id: r,
|
|
3482
3482
|
loop: a,
|
|
3483
|
-
muted:
|
|
3484
|
-
playsInline:
|
|
3483
|
+
muted: o,
|
|
3484
|
+
playsInline: d,
|
|
3485
3485
|
poster: s,
|
|
3486
3486
|
preload: l,
|
|
3487
3487
|
src: p,
|
|
@@ -3499,8 +3499,8 @@ function Kt({
|
|
|
3499
3499
|
controls: !!n,
|
|
3500
3500
|
height: i ? String(i) : void 0,
|
|
3501
3501
|
loop: !!a,
|
|
3502
|
-
muted: !!
|
|
3503
|
-
playsinline: !!
|
|
3502
|
+
muted: !!o,
|
|
3503
|
+
playsinline: !!d,
|
|
3504
3504
|
poster: y || void 0,
|
|
3505
3505
|
preload: l,
|
|
3506
3506
|
src: m,
|
|
@@ -3696,13 +3696,13 @@ function te(t) {
|
|
|
3696
3696
|
return r[0];
|
|
3697
3697
|
const a = e.slice(1).find(Jt);
|
|
3698
3698
|
if (a) {
|
|
3699
|
-
const
|
|
3700
|
-
return
|
|
3699
|
+
const d = D(a);
|
|
3700
|
+
return d ? `${r[0]}${d}` : void 0;
|
|
3701
3701
|
}
|
|
3702
3702
|
if (e.length === 2) {
|
|
3703
|
-
const
|
|
3704
|
-
if (!
|
|
3705
|
-
r.push(
|
|
3703
|
+
const d = D(e[1]);
|
|
3704
|
+
if (!d) return;
|
|
3705
|
+
r.push(d);
|
|
3706
3706
|
const s = e[1].split("-").filter(Boolean);
|
|
3707
3707
|
if (s.length === 2) {
|
|
3708
3708
|
const l = D(s[1]);
|
|
@@ -3711,12 +3711,12 @@ function te(t) {
|
|
|
3711
3711
|
return r.slice(0, 3).join("");
|
|
3712
3712
|
}
|
|
3713
3713
|
if (e.length === 3) {
|
|
3714
|
-
const
|
|
3715
|
-
return !
|
|
3714
|
+
const d = D(e[1]), s = D(e[2]);
|
|
3715
|
+
return !d || !s ? void 0 : (r.push(d, s), r.slice(0, 3).join(""));
|
|
3716
3716
|
}
|
|
3717
|
-
const
|
|
3718
|
-
if (
|
|
3719
|
-
return r.push(
|
|
3717
|
+
const o = D(e.at(-1) || "");
|
|
3718
|
+
if (o)
|
|
3719
|
+
return r.push(o), r.slice(0, 3).join("");
|
|
3720
3720
|
}
|
|
3721
3721
|
const ee = {
|
|
3722
3722
|
bot: "robot-1",
|
|
@@ -3777,11 +3777,11 @@ function oe({
|
|
|
3777
3777
|
entity: i = "person",
|
|
3778
3778
|
id: r,
|
|
3779
3779
|
initials: a,
|
|
3780
|
-
name:
|
|
3781
|
-
size:
|
|
3780
|
+
name: o,
|
|
3781
|
+
size: d = "md",
|
|
3782
3782
|
src: s
|
|
3783
3783
|
}) {
|
|
3784
|
-
const l = g(r), p = ne(a), c = N(
|
|
3784
|
+
const l = g(r), p = ne(a), c = N(o), u = N(s), m = re({
|
|
3785
3785
|
alt: t,
|
|
3786
3786
|
ariaHidden: n,
|
|
3787
3787
|
name: c
|
|
@@ -3794,7 +3794,7 @@ function oe({
|
|
|
3794
3794
|
class: "set-avatar",
|
|
3795
3795
|
"data-color": v === "neutral" ? void 0 : v,
|
|
3796
3796
|
"data-entity": i === "person" ? void 0 : i,
|
|
3797
|
-
"data-size":
|
|
3797
|
+
"data-size": d,
|
|
3798
3798
|
id: l,
|
|
3799
3799
|
role: !n && !k ? "img" : void 0
|
|
3800
3800
|
};
|
|
@@ -4041,8 +4041,8 @@ function X({
|
|
|
4041
4041
|
id: i,
|
|
4042
4042
|
linkVisited: r = !0,
|
|
4043
4043
|
measured: a,
|
|
4044
|
-
monospaced:
|
|
4045
|
-
responsive:
|
|
4044
|
+
monospaced: o,
|
|
4045
|
+
responsive: d,
|
|
4046
4046
|
size: s = "md",
|
|
4047
4047
|
tone: l = "default"
|
|
4048
4048
|
}) {
|
|
@@ -4055,8 +4055,8 @@ function X({
|
|
|
4055
4055
|
"data-align": m && m !== "start" ? m : void 0,
|
|
4056
4056
|
"data-link-visited": r ? void 0 : "off",
|
|
4057
4057
|
"data-measured": u ? a ?? !0 : void 0,
|
|
4058
|
-
"data-monospaced":
|
|
4059
|
-
"data-responsive":
|
|
4058
|
+
"data-monospaced": o,
|
|
4059
|
+
"data-responsive": d,
|
|
4060
4060
|
"data-size": s,
|
|
4061
4061
|
"data-tone": l === "muted" ? "muted" : void 0,
|
|
4062
4062
|
id: p
|
|
@@ -4198,16 +4198,16 @@ function se({
|
|
|
4198
4198
|
measured: i = !0,
|
|
4199
4199
|
quote: r,
|
|
4200
4200
|
responsive: a = !1,
|
|
4201
|
-
size:
|
|
4201
|
+
size: o = "md"
|
|
4202
4202
|
}) {
|
|
4203
|
-
const
|
|
4203
|
+
const d = g(e);
|
|
4204
4204
|
return {
|
|
4205
4205
|
kind: "element",
|
|
4206
4206
|
tag: "figure",
|
|
4207
4207
|
attrs: {
|
|
4208
4208
|
class: "set-blockquote",
|
|
4209
4209
|
"data-align": t === "start" ? void 0 : t,
|
|
4210
|
-
id:
|
|
4210
|
+
id: d
|
|
4211
4211
|
},
|
|
4212
4212
|
children: [
|
|
4213
4213
|
{
|
|
@@ -4221,7 +4221,7 @@ function se({
|
|
|
4221
4221
|
children: r,
|
|
4222
4222
|
measured: i,
|
|
4223
4223
|
responsive: a,
|
|
4224
|
-
size:
|
|
4224
|
+
size: o
|
|
4225
4225
|
})
|
|
4226
4226
|
]
|
|
4227
4227
|
},
|
|
@@ -4320,8 +4320,8 @@ function le({
|
|
|
4320
4320
|
id: i,
|
|
4321
4321
|
paddingBlock: r = "md",
|
|
4322
4322
|
paddingInline: a = "md",
|
|
4323
|
-
radius:
|
|
4324
|
-
responsive:
|
|
4323
|
+
radius: o,
|
|
4324
|
+
responsive: d,
|
|
4325
4325
|
surface: s
|
|
4326
4326
|
}) {
|
|
4327
4327
|
const l = g(i);
|
|
@@ -4335,8 +4335,8 @@ function le({
|
|
|
4335
4335
|
"data-set-surface": s,
|
|
4336
4336
|
"data-padding-block": r,
|
|
4337
4337
|
"data-padding-inline": a,
|
|
4338
|
-
"data-radius":
|
|
4339
|
-
"data-responsive":
|
|
4338
|
+
"data-radius": o,
|
|
4339
|
+
"data-responsive": d,
|
|
4340
4340
|
id: l
|
|
4341
4341
|
},
|
|
4342
4342
|
children: e ? [{ kind: "raw", html: e }] : []
|
|
@@ -4465,16 +4465,16 @@ function pe({
|
|
|
4465
4465
|
id: i,
|
|
4466
4466
|
note: r,
|
|
4467
4467
|
surface: a,
|
|
4468
|
-
title:
|
|
4468
|
+
title: o
|
|
4469
4469
|
}) {
|
|
4470
|
-
const
|
|
4470
|
+
const d = g(i), s = n ? `h${n}` : "div", l = e ? [
|
|
4471
4471
|
{
|
|
4472
4472
|
kind: "element",
|
|
4473
4473
|
tag: "a",
|
|
4474
4474
|
attrs: { href: e },
|
|
4475
|
-
children: [{ kind: "text", value:
|
|
4475
|
+
children: [{ kind: "text", value: o }]
|
|
4476
4476
|
}
|
|
4477
|
-
] : [{ kind: "text", value:
|
|
4477
|
+
] : [{ kind: "text", value: o }], p = r ? [{ kind: "raw", html: r }] : [];
|
|
4478
4478
|
r && e && p.push({
|
|
4479
4479
|
kind: "element",
|
|
4480
4480
|
tag: "span",
|
|
@@ -4519,7 +4519,7 @@ function pe({
|
|
|
4519
4519
|
attrs: {
|
|
4520
4520
|
class: "set-card",
|
|
4521
4521
|
"data-set-surface": a,
|
|
4522
|
-
id:
|
|
4522
|
+
id: d
|
|
4523
4523
|
},
|
|
4524
4524
|
children: c
|
|
4525
4525
|
};
|
|
@@ -4602,8 +4602,8 @@ function ce({
|
|
|
4602
4602
|
id: i,
|
|
4603
4603
|
invalid: r,
|
|
4604
4604
|
label: a,
|
|
4605
|
-
name:
|
|
4606
|
-
required:
|
|
4605
|
+
name: o,
|
|
4606
|
+
required: d,
|
|
4607
4607
|
size: s = "md",
|
|
4608
4608
|
value: l
|
|
4609
4609
|
}) {
|
|
@@ -4626,8 +4626,8 @@ function ce({
|
|
|
4626
4626
|
class: "checkbox",
|
|
4627
4627
|
disabled: m,
|
|
4628
4628
|
id: p,
|
|
4629
|
-
name:
|
|
4630
|
-
required: !!
|
|
4629
|
+
name: o || void 0,
|
|
4630
|
+
required: !!d,
|
|
4631
4631
|
type: "checkbox",
|
|
4632
4632
|
value: l || void 0
|
|
4633
4633
|
},
|
|
@@ -5071,16 +5071,16 @@ function bt({
|
|
|
5071
5071
|
id: i,
|
|
5072
5072
|
invalid: r,
|
|
5073
5073
|
legend: a,
|
|
5074
|
-
inlineSize:
|
|
5074
|
+
inlineSize: o = "full"
|
|
5075
5075
|
}) {
|
|
5076
|
-
const
|
|
5076
|
+
const d = n?.trim(), s = i.trim();
|
|
5077
5077
|
if (!s)
|
|
5078
5078
|
throw new Error("id must be a non-empty string.");
|
|
5079
5079
|
if (!I(s))
|
|
5080
5080
|
throw new Error(
|
|
5081
5081
|
"id must start with a letter and contain only letters, numbers, '_', '-', or ':'."
|
|
5082
5082
|
);
|
|
5083
|
-
const l =
|
|
5083
|
+
const l = d ? `${s}-description` : void 0, p = !!e, c = !p && !!r, u = [
|
|
5084
5084
|
{
|
|
5085
5085
|
kind: "element",
|
|
5086
5086
|
tag: "legend",
|
|
@@ -5088,19 +5088,19 @@ function bt({
|
|
|
5088
5088
|
children: [{ kind: "text", value: a }]
|
|
5089
5089
|
}
|
|
5090
5090
|
];
|
|
5091
|
-
return
|
|
5091
|
+
return d && u.push({
|
|
5092
5092
|
kind: "element",
|
|
5093
5093
|
tag: "p",
|
|
5094
5094
|
attrs: { class: "description", id: l },
|
|
5095
|
-
children: [{ kind: "text", value:
|
|
5095
|
+
children: [{ kind: "text", value: d }]
|
|
5096
5096
|
}), t && u.push({ kind: "raw", html: t }), {
|
|
5097
5097
|
kind: "element",
|
|
5098
5098
|
tag: "fieldset",
|
|
5099
5099
|
attrs: {
|
|
5100
|
-
"aria-describedby":
|
|
5100
|
+
"aria-describedby": d ? l : void 0,
|
|
5101
5101
|
"aria-invalid": c ? "true" : void 0,
|
|
5102
5102
|
class: "set-fieldset",
|
|
5103
|
-
"data-inline-size":
|
|
5103
|
+
"data-inline-size": o === "fit" ? "fit" : void 0,
|
|
5104
5104
|
disabled: p,
|
|
5105
5105
|
id: s
|
|
5106
5106
|
},
|
|
@@ -5203,16 +5203,18 @@ function ke({
|
|
|
5203
5203
|
caption: n,
|
|
5204
5204
|
children: e,
|
|
5205
5205
|
id: i,
|
|
5206
|
-
|
|
5206
|
+
inlineSize: r = "full",
|
|
5207
|
+
responsive: a = !1
|
|
5207
5208
|
}) {
|
|
5208
|
-
const
|
|
5209
|
+
const o = g(i);
|
|
5209
5210
|
return {
|
|
5210
5211
|
kind: "element",
|
|
5211
5212
|
tag: "figure",
|
|
5212
5213
|
attrs: {
|
|
5213
5214
|
class: "set-figure",
|
|
5214
5215
|
"data-align": t === "start" ? void 0 : t,
|
|
5215
|
-
|
|
5216
|
+
"data-inline-size": r === "full" ? void 0 : r,
|
|
5217
|
+
id: o
|
|
5216
5218
|
},
|
|
5217
5219
|
children: [
|
|
5218
5220
|
{ kind: "raw", html: e },
|
|
@@ -5224,7 +5226,7 @@ function ke({
|
|
|
5224
5226
|
X({
|
|
5225
5227
|
as: "span",
|
|
5226
5228
|
children: n,
|
|
5227
|
-
responsive:
|
|
5229
|
+
responsive: a,
|
|
5228
5230
|
size: "sm"
|
|
5229
5231
|
})
|
|
5230
5232
|
]
|
|
@@ -5266,6 +5268,11 @@ const Hi = {
|
|
|
5266
5268
|
description: "DOM id.",
|
|
5267
5269
|
type: { kind: "string" }
|
|
5268
5270
|
},
|
|
5271
|
+
inlineSize: {
|
|
5272
|
+
default: "full",
|
|
5273
|
+
description: "Whether the figure fills its container or shrinks to fit the media.",
|
|
5274
|
+
type: { kind: "enum", values: ["full", "fit"] }
|
|
5275
|
+
},
|
|
5269
5276
|
responsive: {
|
|
5270
5277
|
default: !1,
|
|
5271
5278
|
description: "Scales the caption across breakpoints.",
|
|
@@ -5275,6 +5282,12 @@ const Hi = {
|
|
|
5275
5282
|
events: {},
|
|
5276
5283
|
rules: {
|
|
5277
5284
|
attributes: [
|
|
5285
|
+
{
|
|
5286
|
+
target: { on: "host" },
|
|
5287
|
+
attribute: "data-inline-size",
|
|
5288
|
+
condition: { kind: "when-equals", prop: "inlineSize", to: "fit" },
|
|
5289
|
+
value: { kind: "literal", text: "fit" }
|
|
5290
|
+
},
|
|
5278
5291
|
{
|
|
5279
5292
|
target: { on: "host" },
|
|
5280
5293
|
attribute: "data-align",
|
|
@@ -5331,8 +5344,8 @@ function be({
|
|
|
5331
5344
|
colSpanNarrow: i,
|
|
5332
5345
|
colSpanWide: r,
|
|
5333
5346
|
colStart: a,
|
|
5334
|
-
colStartNarrow:
|
|
5335
|
-
colStartWide:
|
|
5347
|
+
colStartNarrow: o,
|
|
5348
|
+
colStartWide: d,
|
|
5336
5349
|
id: s,
|
|
5337
5350
|
justify: l,
|
|
5338
5351
|
rowSpan: p,
|
|
@@ -5351,11 +5364,11 @@ function be({
|
|
|
5351
5364
|
"data-align": t,
|
|
5352
5365
|
"data-justify": l,
|
|
5353
5366
|
"data-col-span-narrow": L(i),
|
|
5354
|
-
"data-col-start-narrow": L(
|
|
5367
|
+
"data-col-start-narrow": L(o),
|
|
5355
5368
|
"data-col-span": L(e),
|
|
5356
5369
|
"data-col-start": L(a),
|
|
5357
5370
|
"data-col-span-wide": L(r),
|
|
5358
|
-
"data-col-start-wide": L(
|
|
5371
|
+
"data-col-start-wide": L(d),
|
|
5359
5372
|
"data-row-span-narrow": L(c),
|
|
5360
5373
|
"data-row-start-narrow": L(y),
|
|
5361
5374
|
"data-row-span": L(p),
|
|
@@ -5590,9 +5603,9 @@ function ve({
|
|
|
5590
5603
|
opticalAlign: i,
|
|
5591
5604
|
responsive: r,
|
|
5592
5605
|
size: a = "md",
|
|
5593
|
-
text:
|
|
5606
|
+
text: o
|
|
5594
5607
|
}) {
|
|
5595
|
-
const
|
|
5608
|
+
const d = g(n);
|
|
5596
5609
|
return {
|
|
5597
5610
|
kind: "element",
|
|
5598
5611
|
tag: e ? `h${e}` : "span",
|
|
@@ -5602,9 +5615,9 @@ function ve({
|
|
|
5602
5615
|
"data-optical-align": i,
|
|
5603
5616
|
"data-responsive": r,
|
|
5604
5617
|
"data-size": a,
|
|
5605
|
-
id:
|
|
5618
|
+
id: d
|
|
5606
5619
|
},
|
|
5607
|
-
children: [{ kind: "text", value:
|
|
5620
|
+
children: [{ kind: "text", value: o }]
|
|
5608
5621
|
};
|
|
5609
5622
|
}
|
|
5610
5623
|
function Bi(t) {
|
|
@@ -5712,8 +5725,8 @@ function fe({
|
|
|
5712
5725
|
fit: i = "intrinsic",
|
|
5713
5726
|
gravity: r = "C",
|
|
5714
5727
|
height: a,
|
|
5715
|
-
id:
|
|
5716
|
-
lazy:
|
|
5728
|
+
id: o,
|
|
5729
|
+
lazy: d,
|
|
5717
5730
|
priority: s,
|
|
5718
5731
|
radius: l,
|
|
5719
5732
|
shadow: p,
|
|
@@ -5723,7 +5736,7 @@ function fe({
|
|
|
5723
5736
|
srcSet: y,
|
|
5724
5737
|
width: k
|
|
5725
5738
|
}) {
|
|
5726
|
-
const v = i === "cover", C = g(
|
|
5739
|
+
const v = i === "cover", C = g(o), S = m.trim(), b = y?.trim(), x = c?.trim(), w = u?.map((f, q) => {
|
|
5727
5740
|
const _ = f.srcSet.trim(), z = f.media?.trim(), B = f.type?.trim(), yt = f.sizes?.trim();
|
|
5728
5741
|
if (!_)
|
|
5729
5742
|
throw new Error(`sources[${q}].srcSet must be non-empty.`);
|
|
@@ -5761,7 +5774,7 @@ function fe({
|
|
|
5761
5774
|
"data-scheme": f && w.length === 0 ? f : void 0,
|
|
5762
5775
|
fetchpriority: s ? "high" : void 0,
|
|
5763
5776
|
height: v ? void 0 : a ? String(a) : void 0,
|
|
5764
|
-
loading:
|
|
5777
|
+
loading: d && !s ? "lazy" : void 0,
|
|
5765
5778
|
sizes: w.length > 0 ? void 0 : x || void 0,
|
|
5766
5779
|
src: f ? `${S}#${f}` : S,
|
|
5767
5780
|
srcset: b && f ? E(b, f) : b || void 0,
|
|
@@ -6017,9 +6030,9 @@ function we({
|
|
|
6017
6030
|
gap: i = "md",
|
|
6018
6031
|
id: r,
|
|
6019
6032
|
justify: a = "start",
|
|
6020
|
-
nowrap:
|
|
6033
|
+
nowrap: o
|
|
6021
6034
|
}) {
|
|
6022
|
-
const
|
|
6035
|
+
const d = g(r);
|
|
6023
6036
|
return {
|
|
6024
6037
|
kind: "element",
|
|
6025
6038
|
tag: n,
|
|
@@ -6028,8 +6041,8 @@ function we({
|
|
|
6028
6041
|
"data-align": t === "center" ? void 0 : t,
|
|
6029
6042
|
"data-gap": i,
|
|
6030
6043
|
"data-justify": a === "start" ? void 0 : a,
|
|
6031
|
-
"data-nowrap":
|
|
6032
|
-
id:
|
|
6044
|
+
"data-nowrap": o,
|
|
6045
|
+
id: d
|
|
6033
6046
|
},
|
|
6034
6047
|
children: e ? [{ kind: "raw", html: e }] : []
|
|
6035
6048
|
};
|
|
@@ -6129,8 +6142,8 @@ function Se({
|
|
|
6129
6142
|
id: i,
|
|
6130
6143
|
invalid: r,
|
|
6131
6144
|
label: a,
|
|
6132
|
-
name:
|
|
6133
|
-
pattern:
|
|
6145
|
+
name: o,
|
|
6146
|
+
pattern: d,
|
|
6134
6147
|
readOnly: s,
|
|
6135
6148
|
required: l,
|
|
6136
6149
|
size: p = "md",
|
|
@@ -6139,7 +6152,7 @@ function Se({
|
|
|
6139
6152
|
value: m,
|
|
6140
6153
|
inlineSize: y = "full"
|
|
6141
6154
|
}) {
|
|
6142
|
-
const k = i.trim(), v = n?.trim(), C = t === !1 ? !1 : t?.trim(), S =
|
|
6155
|
+
const k = i.trim(), v = n?.trim(), C = t === !1 ? !1 : t?.trim(), S = o?.trim(), b = d?.trim(), x = m;
|
|
6143
6156
|
if (!k)
|
|
6144
6157
|
throw new Error("id must be a non-empty string.");
|
|
6145
6158
|
if (!I(k))
|
|
@@ -6449,7 +6462,7 @@ function Te({
|
|
|
6449
6462
|
tone: r = "default",
|
|
6450
6463
|
variant: a = "primary"
|
|
6451
6464
|
}) {
|
|
6452
|
-
const
|
|
6465
|
+
const o = g(n), d = !!t && (a === "primary" || a === "graphic"), s = [
|
|
6453
6466
|
{
|
|
6454
6467
|
kind: "element",
|
|
6455
6468
|
tag: "span",
|
|
@@ -6457,18 +6470,18 @@ function Te({
|
|
|
6457
6470
|
children: [{ kind: "text", value: e }]
|
|
6458
6471
|
}
|
|
6459
6472
|
];
|
|
6460
|
-
return
|
|
6473
|
+
return d && s.push(
|
|
6461
6474
|
a === "graphic" ? Ie() : qe()
|
|
6462
6475
|
), {
|
|
6463
6476
|
kind: "element",
|
|
6464
6477
|
tag: "div",
|
|
6465
6478
|
attrs: {
|
|
6466
6479
|
class: "set-logo",
|
|
6467
|
-
"data-animated":
|
|
6480
|
+
"data-animated": d,
|
|
6468
6481
|
"data-size": i,
|
|
6469
6482
|
"data-tone": r === "neutral" ? "neutral" : void 0,
|
|
6470
6483
|
"data-variant": a === "primary" ? void 0 : a,
|
|
6471
|
-
id:
|
|
6484
|
+
id: o
|
|
6472
6485
|
},
|
|
6473
6486
|
children: s
|
|
6474
6487
|
};
|
|
@@ -6571,11 +6584,11 @@ function Ae({
|
|
|
6571
6584
|
footer: i,
|
|
6572
6585
|
header: r,
|
|
6573
6586
|
headerBorder: a,
|
|
6574
|
-
headerSize:
|
|
6575
|
-
id:
|
|
6587
|
+
headerSize: o = "md",
|
|
6588
|
+
id: d,
|
|
6576
6589
|
stickyHeader: s
|
|
6577
6590
|
}) {
|
|
6578
|
-
const l = g(
|
|
6591
|
+
const l = g(d), p = [];
|
|
6579
6592
|
return t && p.push({ kind: "raw", html: t }), p.push({
|
|
6580
6593
|
kind: "element",
|
|
6581
6594
|
tag: "header",
|
|
@@ -6598,7 +6611,7 @@ function Ae({
|
|
|
6598
6611
|
class: "set-page",
|
|
6599
6612
|
"data-center-main": n,
|
|
6600
6613
|
"data-header-border": a,
|
|
6601
|
-
"data-header-size":
|
|
6614
|
+
"data-header-size": o,
|
|
6602
6615
|
"data-sticky-header": s,
|
|
6603
6616
|
id: l
|
|
6604
6617
|
},
|
|
@@ -6877,7 +6890,7 @@ function He({
|
|
|
6877
6890
|
media: i,
|
|
6878
6891
|
surface: r
|
|
6879
6892
|
}) {
|
|
6880
|
-
const a = g(e),
|
|
6893
|
+
const a = g(e), o = n ? r ?? "default" : r, d = [
|
|
6881
6894
|
{
|
|
6882
6895
|
kind: "element",
|
|
6883
6896
|
tag: "div",
|
|
@@ -6885,7 +6898,7 @@ function He({
|
|
|
6885
6898
|
children: [{ kind: "raw", html: i }]
|
|
6886
6899
|
}
|
|
6887
6900
|
];
|
|
6888
|
-
return t &&
|
|
6901
|
+
return t && d.push({
|
|
6889
6902
|
kind: "element",
|
|
6890
6903
|
tag: "div",
|
|
6891
6904
|
attrs: { class: "content" },
|
|
@@ -6896,10 +6909,10 @@ function He({
|
|
|
6896
6909
|
attrs: {
|
|
6897
6910
|
class: "set-poster",
|
|
6898
6911
|
"data-set-content-theme": n,
|
|
6899
|
-
"data-set-surface":
|
|
6912
|
+
"data-set-surface": o,
|
|
6900
6913
|
id: a
|
|
6901
6914
|
},
|
|
6902
|
-
children:
|
|
6915
|
+
children: d
|
|
6903
6916
|
};
|
|
6904
6917
|
}
|
|
6905
6918
|
function nn(t) {
|
|
@@ -6983,8 +6996,8 @@ function Ve({
|
|
|
6983
6996
|
id: i,
|
|
6984
6997
|
linkVisited: r = !0,
|
|
6985
6998
|
measured: a = !0,
|
|
6986
|
-
monospaced:
|
|
6987
|
-
responsive:
|
|
6999
|
+
monospaced: o,
|
|
7000
|
+
responsive: d
|
|
6988
7001
|
}) {
|
|
6989
7002
|
const s = g(i);
|
|
6990
7003
|
return {
|
|
@@ -6996,8 +7009,8 @@ function Ve({
|
|
|
6996
7009
|
"data-hanging-punctuation": e,
|
|
6997
7010
|
"data-link-visited": r ? void 0 : "off",
|
|
6998
7011
|
"data-measured": a,
|
|
6999
|
-
"data-monospaced":
|
|
7000
|
-
"data-responsive":
|
|
7012
|
+
"data-monospaced": o,
|
|
7013
|
+
"data-responsive": d,
|
|
7001
7014
|
id: s
|
|
7002
7015
|
},
|
|
7003
7016
|
children: [{ kind: "raw", html: n }]
|
|
@@ -7107,13 +7120,13 @@ function Ne({
|
|
|
7107
7120
|
invalid: i,
|
|
7108
7121
|
radios: r,
|
|
7109
7122
|
legend: a,
|
|
7110
|
-
name:
|
|
7111
|
-
orientation:
|
|
7123
|
+
name: o,
|
|
7124
|
+
orientation: d = "vertical",
|
|
7112
7125
|
required: s,
|
|
7113
7126
|
size: l = "md",
|
|
7114
7127
|
value: p
|
|
7115
7128
|
}) {
|
|
7116
|
-
const c = e.trim(), u =
|
|
7129
|
+
const c = e.trim(), u = o.trim(), m = p?.trim();
|
|
7117
7130
|
if (!c)
|
|
7118
7131
|
throw new Error("id must be a non-empty string.");
|
|
7119
7132
|
if (!I(c))
|
|
@@ -7188,7 +7201,7 @@ function Ne({
|
|
|
7188
7201
|
tag: "div",
|
|
7189
7202
|
attrs: {
|
|
7190
7203
|
class: "set-radios",
|
|
7191
|
-
"data-orientation":
|
|
7204
|
+
"data-orientation": d,
|
|
7192
7205
|
"data-size": l
|
|
7193
7206
|
},
|
|
7194
7207
|
children: C
|
|
@@ -7359,8 +7372,8 @@ function Oe({
|
|
|
7359
7372
|
children: i,
|
|
7360
7373
|
dir: r,
|
|
7361
7374
|
id: a,
|
|
7362
|
-
lang:
|
|
7363
|
-
theme:
|
|
7375
|
+
lang: o,
|
|
7376
|
+
theme: d
|
|
7364
7377
|
}) {
|
|
7365
7378
|
const s = g(a);
|
|
7366
7379
|
return {
|
|
@@ -7371,9 +7384,9 @@ function Oe({
|
|
|
7371
7384
|
"data-app-root": n,
|
|
7372
7385
|
"data-app-overscroll-behavior": t === "none" ? "none" : void 0,
|
|
7373
7386
|
"data-set-brand": e,
|
|
7374
|
-
"data-set-theme":
|
|
7387
|
+
"data-set-theme": d,
|
|
7375
7388
|
id: s,
|
|
7376
|
-
lang:
|
|
7389
|
+
lang: o === "" ? void 0 : o,
|
|
7377
7390
|
dir: r
|
|
7378
7391
|
},
|
|
7379
7392
|
children: i ? [{ kind: "raw", html: i }] : []
|
|
@@ -7481,7 +7494,7 @@ function Pe({
|
|
|
7481
7494
|
size: e = "md",
|
|
7482
7495
|
tone: i = "default"
|
|
7483
7496
|
} = {}) {
|
|
7484
|
-
const r = g(t),
|
|
7497
|
+
const r = g(t), o = [
|
|
7485
7498
|
{
|
|
7486
7499
|
kind: "element",
|
|
7487
7500
|
tag: "svg",
|
|
@@ -7500,12 +7513,12 @@ function Pe({
|
|
|
7500
7513
|
[360, 660],
|
|
7501
7514
|
[360, 360],
|
|
7502
7515
|
[360, 60]
|
|
7503
|
-
].map(([
|
|
7516
|
+
].map(([d, s]) => ({
|
|
7504
7517
|
kind: "element",
|
|
7505
7518
|
tag: "rect",
|
|
7506
7519
|
attrs: {
|
|
7507
7520
|
class: "cell",
|
|
7508
|
-
x: String(
|
|
7521
|
+
x: String(d),
|
|
7509
7522
|
y: String(s),
|
|
7510
7523
|
width: "180",
|
|
7511
7524
|
height: "180"
|
|
@@ -7514,7 +7527,7 @@ function Pe({
|
|
|
7514
7527
|
}))
|
|
7515
7528
|
}
|
|
7516
7529
|
];
|
|
7517
|
-
return n &&
|
|
7530
|
+
return n && o.push({
|
|
7518
7531
|
kind: "element",
|
|
7519
7532
|
tag: "span",
|
|
7520
7533
|
attrs: { class: "visually-hidden" },
|
|
@@ -7529,7 +7542,7 @@ function Pe({
|
|
|
7529
7542
|
id: r,
|
|
7530
7543
|
role: n ? "status" : void 0
|
|
7531
7544
|
},
|
|
7532
|
-
children:
|
|
7545
|
+
children: o
|
|
7533
7546
|
};
|
|
7534
7547
|
}
|
|
7535
7548
|
function cn(t = {}) {
|
|
@@ -7601,7 +7614,7 @@ function Be({
|
|
|
7601
7614
|
id: r,
|
|
7602
7615
|
responsive: a
|
|
7603
7616
|
}) {
|
|
7604
|
-
const
|
|
7617
|
+
const o = g(r);
|
|
7605
7618
|
return {
|
|
7606
7619
|
kind: "element",
|
|
7607
7620
|
tag: n,
|
|
@@ -7610,7 +7623,7 @@ function Be({
|
|
|
7610
7623
|
"data-align": t === "stretch" ? void 0 : t,
|
|
7611
7624
|
"data-gap": i,
|
|
7612
7625
|
"data-responsive": a,
|
|
7613
|
-
id:
|
|
7626
|
+
id: o
|
|
7614
7627
|
},
|
|
7615
7628
|
children: e ? [{ kind: "raw", html: e }] : []
|
|
7616
7629
|
};
|
|
@@ -7770,8 +7783,8 @@ function We({
|
|
|
7770
7783
|
id: i,
|
|
7771
7784
|
label: r,
|
|
7772
7785
|
name: a,
|
|
7773
|
-
size:
|
|
7774
|
-
value:
|
|
7786
|
+
size: o = "md",
|
|
7787
|
+
value: d
|
|
7775
7788
|
}) {
|
|
7776
7789
|
const s = g(i), l = n?.trim();
|
|
7777
7790
|
if (l && !s)
|
|
@@ -7794,7 +7807,7 @@ function We({
|
|
|
7794
7807
|
name: a || void 0,
|
|
7795
7808
|
role: "switch",
|
|
7796
7809
|
type: "checkbox",
|
|
7797
|
-
value:
|
|
7810
|
+
value: d || void 0
|
|
7798
7811
|
},
|
|
7799
7812
|
children: []
|
|
7800
7813
|
},
|
|
@@ -7815,7 +7828,7 @@ function We({
|
|
|
7815
7828
|
}), {
|
|
7816
7829
|
kind: "element",
|
|
7817
7830
|
tag: "div",
|
|
7818
|
-
attrs: { class: "set-switch", "data-size":
|
|
7831
|
+
attrs: { class: "set-switch", "data-size": o },
|
|
7819
7832
|
children: c
|
|
7820
7833
|
};
|
|
7821
7834
|
}
|
|
@@ -7937,8 +7950,8 @@ function Ue({
|
|
|
7937
7950
|
id: i,
|
|
7938
7951
|
invalid: r,
|
|
7939
7952
|
label: a,
|
|
7940
|
-
name:
|
|
7941
|
-
readOnly:
|
|
7953
|
+
name: o,
|
|
7954
|
+
readOnly: d,
|
|
7942
7955
|
required: s,
|
|
7943
7956
|
resize: l = "vertical",
|
|
7944
7957
|
rows: p = 2,
|
|
@@ -7947,7 +7960,7 @@ function Ue({
|
|
|
7947
7960
|
value: m,
|
|
7948
7961
|
inlineSize: y = "full"
|
|
7949
7962
|
}) {
|
|
7950
|
-
const k = i.trim(), v = n?.trim(), C = t === !1 ? !1 : t?.trim(), S =
|
|
7963
|
+
const k = i.trim(), v = n?.trim(), C = t === !1 ? !1 : t?.trim(), S = o?.trim(), b = m;
|
|
7951
7964
|
if (!k)
|
|
7952
7965
|
throw new Error("id must be a non-empty string.");
|
|
7953
7966
|
if (!I(k))
|
|
@@ -7956,7 +7969,7 @@ function Ue({
|
|
|
7956
7969
|
);
|
|
7957
7970
|
if (!Number.isInteger(p) || p < 2)
|
|
7958
7971
|
throw new Error("rows must be an integer greater than or equal to 2.");
|
|
7959
|
-
const x = v ? `${k}-description` : void 0, w = !!e, E = !w && !!
|
|
7972
|
+
const x = v ? `${k}-description` : void 0, w = !!e, E = !w && !!d, H = [
|
|
7960
7973
|
{
|
|
7961
7974
|
kind: "element",
|
|
7962
7975
|
tag: "label",
|