@monospaced/set-core 0.5.1 → 0.7.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/heading/heading.d.ts +3 -1
- package/dist/components/heading/heading.d.ts.map +1 -1
- package/dist/components/prose/prose.d.ts +5 -1
- package/dist/components/prose/prose.d.ts.map +1 -1
- package/dist/components/text/text.d.ts +3 -1
- package/dist/components/text/text.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 +373 -324
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -30,7 +30,7 @@ function h(t) {
|
|
|
30
30
|
function I(t) {
|
|
31
31
|
return /^[A-Za-z][\w:-]*$/.test(t);
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function g(t) {
|
|
34
34
|
if (t === void 0) return;
|
|
35
35
|
const n = t.trim();
|
|
36
36
|
if (n) {
|
|
@@ -792,21 +792,21 @@ function H({
|
|
|
792
792
|
size: r = "md",
|
|
793
793
|
title: a
|
|
794
794
|
}) {
|
|
795
|
-
const
|
|
796
|
-
if (!
|
|
795
|
+
const d = dt[i];
|
|
796
|
+
if (!d)
|
|
797
797
|
throw new Error(`Unknown icon name: ${i}`);
|
|
798
|
-
const
|
|
799
|
-
if (!t && !
|
|
798
|
+
const o = g(n), l = a?.trim();
|
|
799
|
+
if (!t && !l)
|
|
800
800
|
throw new Error("title must be non-empty when ariaHidden is false.");
|
|
801
|
-
if (!t && !
|
|
801
|
+
if (!t && !o)
|
|
802
802
|
throw new Error("id must be provided when ariaHidden is false.");
|
|
803
|
-
const s = t ? void 0 : `${
|
|
804
|
-
return t ||
|
|
803
|
+
const s = t ? void 0 : `${o}-title`, p = [];
|
|
804
|
+
return t || p.push({
|
|
805
805
|
kind: "element",
|
|
806
806
|
tag: "title",
|
|
807
807
|
attrs: { id: s },
|
|
808
|
-
children: [{ kind: "text", value:
|
|
809
|
-
}),
|
|
808
|
+
children: [{ kind: "text", value: l }]
|
|
809
|
+
}), p.push(...st(d)), {
|
|
810
810
|
kind: "element",
|
|
811
811
|
tag: "svg",
|
|
812
812
|
attrs: {
|
|
@@ -817,14 +817,14 @@ function H({
|
|
|
817
817
|
"data-size": r,
|
|
818
818
|
fill: "none",
|
|
819
819
|
height: "24",
|
|
820
|
-
id:
|
|
820
|
+
id: o,
|
|
821
821
|
role: t ? void 0 : "img",
|
|
822
822
|
stroke: "currentColor",
|
|
823
823
|
"stroke-width": "1.75",
|
|
824
824
|
viewBox: "0 0 24 24",
|
|
825
825
|
xmlns: "http://www.w3.org/2000/svg"
|
|
826
826
|
},
|
|
827
|
-
children:
|
|
827
|
+
children: p
|
|
828
828
|
};
|
|
829
829
|
}
|
|
830
830
|
function ft(t) {
|
|
@@ -951,22 +951,22 @@ function tt(t) {
|
|
|
951
951
|
disabled: i,
|
|
952
952
|
disclosure: r,
|
|
953
953
|
form: a,
|
|
954
|
-
haspopup:
|
|
955
|
-
id:
|
|
956
|
-
icon:
|
|
954
|
+
haspopup: d,
|
|
955
|
+
id: o,
|
|
956
|
+
icon: l,
|
|
957
957
|
iconMirrored: s,
|
|
958
|
-
iconPlacement:
|
|
958
|
+
iconPlacement: p = "start",
|
|
959
959
|
label: c,
|
|
960
960
|
labelVisibility: u = "visible",
|
|
961
|
-
name:
|
|
962
|
-
size:
|
|
961
|
+
name: k,
|
|
962
|
+
size: b = "md",
|
|
963
963
|
tone: m = "default",
|
|
964
964
|
type: f,
|
|
965
965
|
value: E
|
|
966
|
-
} = t, S =
|
|
967
|
-
if (u !== "visible" && !
|
|
966
|
+
} = t, S = l || void 0, v = !!S;
|
|
967
|
+
if (u !== "visible" && !v)
|
|
968
968
|
throw new Error("labelVisibility requires icon when label is not visible.");
|
|
969
|
-
const y =
|
|
969
|
+
const y = v && S ? {
|
|
970
970
|
kind: "element",
|
|
971
971
|
tag: "span",
|
|
972
972
|
attrs: { class: "icon-wrapper" },
|
|
@@ -993,20 +993,20 @@ function tt(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": d || void 0,
|
|
997
997
|
class: "set-button",
|
|
998
998
|
"data-appearance": n,
|
|
999
999
|
"data-label-visibility": u === "visible" ? void 0 : u,
|
|
1000
|
-
"data-size":
|
|
1000
|
+
"data-size": b,
|
|
1001
1001
|
"data-tone": m === "neutral" ? "neutral" : void 0,
|
|
1002
1002
|
disabled: !!i,
|
|
1003
1003
|
form: a || void 0,
|
|
1004
|
-
id:
|
|
1005
|
-
name:
|
|
1004
|
+
id: o || void 0,
|
|
1005
|
+
name: k || void 0,
|
|
1006
1006
|
type: f || "button",
|
|
1007
1007
|
value: E || void 0
|
|
1008
1008
|
},
|
|
1009
|
-
children: y ?
|
|
1009
|
+
children: y ? p === "end" ? [w, y] : [y, w] : [w]
|
|
1010
1010
|
};
|
|
1011
1011
|
}
|
|
1012
1012
|
function et(t) {
|
|
@@ -1231,16 +1231,16 @@ function xt({
|
|
|
1231
1231
|
inlineSize: i = "full",
|
|
1232
1232
|
message: r,
|
|
1233
1233
|
size: a = "md",
|
|
1234
|
-
tone:
|
|
1235
|
-
title:
|
|
1234
|
+
tone: d,
|
|
1235
|
+
title: o
|
|
1236
1236
|
}) {
|
|
1237
|
-
const
|
|
1238
|
-
return
|
|
1237
|
+
const l = g(e), s = n.trim() === "" ? N : n, p = [];
|
|
1238
|
+
return o && p.push({
|
|
1239
1239
|
kind: "element",
|
|
1240
1240
|
tag: "p",
|
|
1241
1241
|
attrs: { class: "title" },
|
|
1242
|
-
children: [{ kind: "text", value:
|
|
1243
|
-
}),
|
|
1242
|
+
children: [{ kind: "text", value: o }]
|
|
1243
|
+
}), p.push({
|
|
1244
1244
|
kind: "element",
|
|
1245
1245
|
tag: "p",
|
|
1246
1246
|
attrs: { class: "message" },
|
|
@@ -1254,9 +1254,9 @@ function xt({
|
|
|
1254
1254
|
"data-dismissible-label": t ? s : void 0,
|
|
1255
1255
|
"data-inline-size": i === "fit" ? "fit" : void 0,
|
|
1256
1256
|
"data-size": a,
|
|
1257
|
-
"data-tone":
|
|
1258
|
-
id:
|
|
1259
|
-
role: St(
|
|
1257
|
+
"data-tone": d || void 0,
|
|
1258
|
+
id: l,
|
|
1259
|
+
role: St(d)
|
|
1260
1260
|
},
|
|
1261
1261
|
children: [
|
|
1262
1262
|
{
|
|
@@ -1266,7 +1266,7 @@ function xt({
|
|
|
1266
1266
|
children: [
|
|
1267
1267
|
H({
|
|
1268
1268
|
ariaHidden: !0,
|
|
1269
|
-
name: wt(
|
|
1269
|
+
name: wt(d),
|
|
1270
1270
|
size: a
|
|
1271
1271
|
})
|
|
1272
1272
|
]
|
|
@@ -1275,7 +1275,7 @@ function xt({
|
|
|
1275
1275
|
kind: "element",
|
|
1276
1276
|
tag: "div",
|
|
1277
1277
|
attrs: { class: "content" },
|
|
1278
|
-
children:
|
|
1278
|
+
children: p
|
|
1279
1279
|
}
|
|
1280
1280
|
]
|
|
1281
1281
|
};
|
|
@@ -1479,19 +1479,19 @@ function ct(t) {
|
|
|
1479
1479
|
download: i,
|
|
1480
1480
|
href: r,
|
|
1481
1481
|
id: a,
|
|
1482
|
-
icon:
|
|
1483
|
-
iconPlacement:
|
|
1484
|
-
label:
|
|
1482
|
+
icon: d,
|
|
1483
|
+
iconPlacement: o = "start",
|
|
1484
|
+
label: l,
|
|
1485
1485
|
labelVisibility: s = "visible",
|
|
1486
|
-
rel:
|
|
1486
|
+
rel: p,
|
|
1487
1487
|
size: c = "md",
|
|
1488
1488
|
target: u,
|
|
1489
|
-
tone:
|
|
1490
|
-
underline:
|
|
1491
|
-
} = t, m =
|
|
1489
|
+
tone: k = "default",
|
|
1490
|
+
underline: b
|
|
1491
|
+
} = t, m = g(a), f = d?.trim() || void 0;
|
|
1492
1492
|
if (s !== "visible" && !!!f)
|
|
1493
1493
|
throw new Error("labelVisibility requires icon when label is not visible.");
|
|
1494
|
-
const S = zt(i),
|
|
1494
|
+
const S = zt(i), v = f ? {
|
|
1495
1495
|
kind: "element",
|
|
1496
1496
|
tag: "span",
|
|
1497
1497
|
attrs: { class: "icon-wrapper" },
|
|
@@ -1500,7 +1500,7 @@ function ct(t) {
|
|
|
1500
1500
|
kind: "element",
|
|
1501
1501
|
tag: "span",
|
|
1502
1502
|
attrs: { class: "label" },
|
|
1503
|
-
children: [{ kind: "text", value:
|
|
1503
|
+
children: [{ kind: "text", value: l }]
|
|
1504
1504
|
};
|
|
1505
1505
|
return {
|
|
1506
1506
|
kind: "element",
|
|
@@ -1511,15 +1511,15 @@ function ct(t) {
|
|
|
1511
1511
|
"data-appearance": n === "text" ? void 0 : n,
|
|
1512
1512
|
"data-label-visibility": s === "visible" ? void 0 : s,
|
|
1513
1513
|
"data-size": c,
|
|
1514
|
-
"data-tone":
|
|
1515
|
-
"data-underline":
|
|
1514
|
+
"data-tone": k === "neutral" ? "neutral" : void 0,
|
|
1515
|
+
"data-underline": b && n === "text" ? !0 : void 0,
|
|
1516
1516
|
download: S,
|
|
1517
1517
|
href: r,
|
|
1518
1518
|
id: m,
|
|
1519
|
-
rel: S ? void 0 :
|
|
1519
|
+
rel: S ? void 0 : p || void 0,
|
|
1520
1520
|
target: S ? void 0 : u || void 0
|
|
1521
1521
|
},
|
|
1522
|
-
children:
|
|
1522
|
+
children: v ? o === "end" ? [y, v] : [v, y] : [y]
|
|
1523
1523
|
};
|
|
1524
1524
|
}
|
|
1525
1525
|
function Ve(t) {
|
|
@@ -1731,11 +1731,11 @@ function Lt({
|
|
|
1731
1731
|
dismissibleLabel: i = R,
|
|
1732
1732
|
id: r,
|
|
1733
1733
|
message: a,
|
|
1734
|
-
tone:
|
|
1734
|
+
tone: d
|
|
1735
1735
|
}) {
|
|
1736
1736
|
if (!!t != !!n)
|
|
1737
1737
|
throw new Error("actionHref and actionLabel must be provided together.");
|
|
1738
|
-
const
|
|
1738
|
+
const o = g(r), l = i.trim() === "" ? R : i, s = [{ kind: "text", value: a }];
|
|
1739
1739
|
return t && n && (s.push({ kind: "text", value: " " }), s.push(
|
|
1740
1740
|
ct({
|
|
1741
1741
|
href: t,
|
|
@@ -1750,9 +1750,9 @@ function Lt({
|
|
|
1750
1750
|
"data-set-content-theme": "dark",
|
|
1751
1751
|
"data-set-surface": "default",
|
|
1752
1752
|
"data-dismissible": e,
|
|
1753
|
-
"data-dismissible-label": e ?
|
|
1754
|
-
"data-tone":
|
|
1755
|
-
id:
|
|
1753
|
+
"data-dismissible-label": e ? l : void 0,
|
|
1754
|
+
"data-tone": d || void 0,
|
|
1755
|
+
id: o
|
|
1756
1756
|
},
|
|
1757
1757
|
children: [
|
|
1758
1758
|
{
|
|
@@ -1932,7 +1932,7 @@ function Tt({
|
|
|
1932
1932
|
labelLight: i = X,
|
|
1933
1933
|
size: r = "md"
|
|
1934
1934
|
}) {
|
|
1935
|
-
const a =
|
|
1935
|
+
const a = g(n), d = e.trim() === "" ? Q : e, o = i.trim() === "" ? X : i;
|
|
1936
1936
|
return {
|
|
1937
1937
|
kind: "element",
|
|
1938
1938
|
tag: W,
|
|
@@ -1951,8 +1951,8 @@ function Tt({
|
|
|
1951
1951
|
type: "button"
|
|
1952
1952
|
},
|
|
1953
1953
|
children: [
|
|
1954
|
-
nt("dark",
|
|
1955
|
-
nt("light",
|
|
1954
|
+
nt("dark", d),
|
|
1955
|
+
nt("light", o)
|
|
1956
1956
|
]
|
|
1957
1957
|
}
|
|
1958
1958
|
]
|
|
@@ -2110,9 +2110,9 @@ function _t({
|
|
|
2110
2110
|
size: i = "md",
|
|
2111
2111
|
triggerIcon: r,
|
|
2112
2112
|
triggerIconMirrored: a,
|
|
2113
|
-
triggerIconPlacement:
|
|
2114
|
-
triggerLabel:
|
|
2115
|
-
triggerLabelVisibility:
|
|
2113
|
+
triggerIconPlacement: d,
|
|
2114
|
+
triggerLabel: o,
|
|
2115
|
+
triggerLabelVisibility: l
|
|
2116
2116
|
}) {
|
|
2117
2117
|
const s = n.trim();
|
|
2118
2118
|
if (!s)
|
|
@@ -2123,17 +2123,17 @@ function _t({
|
|
|
2123
2123
|
);
|
|
2124
2124
|
if (!Array.isArray(e))
|
|
2125
2125
|
throw new Error("items must be an array.");
|
|
2126
|
-
const
|
|
2126
|
+
const p = `${s}-button`, c = `${s}-popup`, u = e.map((k) => ({
|
|
2127
2127
|
kind: "element",
|
|
2128
2128
|
tag: "button",
|
|
2129
2129
|
attrs: {
|
|
2130
|
-
"aria-disabled":
|
|
2131
|
-
"data-item-id":
|
|
2130
|
+
"aria-disabled": k.disabled ? "true" : void 0,
|
|
2131
|
+
"data-item-id": k.id || void 0,
|
|
2132
2132
|
role: "menuitem",
|
|
2133
2133
|
tabindex: "-1",
|
|
2134
2134
|
type: "button"
|
|
2135
2135
|
},
|
|
2136
|
-
children: [{ kind: "text", value:
|
|
2136
|
+
children: [{ kind: "text", value: k.label }]
|
|
2137
2137
|
}));
|
|
2138
2138
|
return {
|
|
2139
2139
|
kind: "element",
|
|
@@ -2157,10 +2157,10 @@ function _t({
|
|
|
2157
2157
|
haspopup: "menu",
|
|
2158
2158
|
icon: r,
|
|
2159
2159
|
iconMirrored: a,
|
|
2160
|
-
iconPlacement:
|
|
2161
|
-
id:
|
|
2162
|
-
label:
|
|
2163
|
-
labelVisibility:
|
|
2160
|
+
iconPlacement: d,
|
|
2161
|
+
id: p,
|
|
2162
|
+
label: o,
|
|
2163
|
+
labelVisibility: l,
|
|
2164
2164
|
size: i,
|
|
2165
2165
|
tone: "neutral",
|
|
2166
2166
|
type: "button"
|
|
@@ -2171,7 +2171,7 @@ function _t({
|
|
|
2171
2171
|
kind: "element",
|
|
2172
2172
|
tag: "div",
|
|
2173
2173
|
attrs: {
|
|
2174
|
-
"aria-labelledby":
|
|
2174
|
+
"aria-labelledby": p,
|
|
2175
2175
|
class: "popup",
|
|
2176
2176
|
hidden: !0,
|
|
2177
2177
|
id: c,
|
|
@@ -2273,9 +2273,9 @@ function Dt() {
|
|
|
2273
2273
|
e.preventDefault(), this.#o(!0);
|
|
2274
2274
|
return;
|
|
2275
2275
|
}
|
|
2276
|
-
const a = this.ownerDocument.activeElement,
|
|
2276
|
+
const a = this.ownerDocument.activeElement, d = this.#c(), o = d.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(d.length - 1));
|
|
2279
2279
|
return;
|
|
2280
2280
|
}
|
|
2281
2281
|
if (r.contains(a)) {
|
|
@@ -2283,7 +2283,7 @@ function Dt() {
|
|
|
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(o + 1)), e.key === "ArrowUp" && (e.preventDefault(), this.#a(o - 1)), e.key === "Home" && (e.preventDefault(), this.#a(0)), e.key === "End" && (e.preventDefault(), this.#a(d.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 Ht({
|
|
|
2446
2446
|
label: i = Y,
|
|
2447
2447
|
size: r = "md"
|
|
2448
2448
|
} = {}) {
|
|
2449
|
-
const a =
|
|
2449
|
+
const a = g(e), d = i.trim() === "" ? Y : i;
|
|
2450
2450
|
return {
|
|
2451
2451
|
kind: "element",
|
|
2452
2452
|
tag: "button",
|
|
@@ -2474,7 +2474,7 @@ function Ht({
|
|
|
2474
2474
|
kind: "element",
|
|
2475
2475
|
tag: "span",
|
|
2476
2476
|
attrs: { class: "visually-hidden" },
|
|
2477
|
-
children: [{ kind: "text", value:
|
|
2477
|
+
children: [{ kind: "text", value: d }]
|
|
2478
2478
|
}
|
|
2479
2479
|
]
|
|
2480
2480
|
}
|
|
@@ -2557,15 +2557,15 @@ function Vt({
|
|
|
2557
2557
|
expanderPosition: i = "start",
|
|
2558
2558
|
id: r,
|
|
2559
2559
|
items: a,
|
|
2560
|
-
label:
|
|
2561
|
-
size:
|
|
2560
|
+
label: d,
|
|
2561
|
+
size: o = "md"
|
|
2562
2562
|
}) {
|
|
2563
|
-
const
|
|
2564
|
-
if (t && !
|
|
2563
|
+
const l = g(r), s = e?.trim() || void 0, p = n?.trim();
|
|
2564
|
+
if (t && !p)
|
|
2565
2565
|
throw new Error(
|
|
2566
2566
|
"contentId must be a non-empty string when collapsible is set."
|
|
2567
2567
|
);
|
|
2568
|
-
if (
|
|
2568
|
+
if (p && !I(p))
|
|
2569
2569
|
throw new Error(
|
|
2570
2570
|
"contentId must start with a letter and contain only letters, numbers, '_', '-', or ':'."
|
|
2571
2571
|
);
|
|
@@ -2594,15 +2594,15 @@ function Vt({
|
|
|
2594
2594
|
"data-collapsible": t,
|
|
2595
2595
|
"data-expander-label": t && s ? s : void 0,
|
|
2596
2596
|
"data-expander-position": t ? i : void 0,
|
|
2597
|
-
"data-size":
|
|
2598
|
-
id:
|
|
2597
|
+
"data-size": o,
|
|
2598
|
+
id: l
|
|
2599
2599
|
},
|
|
2600
2600
|
children: [
|
|
2601
2601
|
{
|
|
2602
2602
|
kind: "element",
|
|
2603
2603
|
tag: "nav",
|
|
2604
2604
|
attrs: {
|
|
2605
|
-
"aria-label":
|
|
2605
|
+
"aria-label": d || void 0,
|
|
2606
2606
|
class: "nav"
|
|
2607
2607
|
},
|
|
2608
2608
|
children: [
|
|
@@ -2611,7 +2611,7 @@ function Vt({
|
|
|
2611
2611
|
tag: "div",
|
|
2612
2612
|
attrs: {
|
|
2613
2613
|
class: "content",
|
|
2614
|
-
id:
|
|
2614
|
+
id: p
|
|
2615
2615
|
},
|
|
2616
2616
|
children: [
|
|
2617
2617
|
{
|
|
@@ -2832,20 +2832,20 @@ function Pt({
|
|
|
2832
2832
|
inlineSize: i = "full",
|
|
2833
2833
|
label: r,
|
|
2834
2834
|
max: a,
|
|
2835
|
-
min:
|
|
2836
|
-
name:
|
|
2837
|
-
size:
|
|
2835
|
+
min: d,
|
|
2836
|
+
name: o,
|
|
2837
|
+
size: l = "md",
|
|
2838
2838
|
step: s,
|
|
2839
|
-
value:
|
|
2839
|
+
value: p
|
|
2840
2840
|
}) {
|
|
2841
|
-
const c = e.trim(), u = t?.trim(),
|
|
2841
|
+
const c = e.trim(), u = t?.trim(), k = o?.trim();
|
|
2842
2842
|
if (!c)
|
|
2843
2843
|
throw new Error("id must be a non-empty string.");
|
|
2844
2844
|
if (!I(c))
|
|
2845
2845
|
throw new Error(
|
|
2846
2846
|
"id must start with a letter and contain only letters, numbers, '_', '-', or ':'."
|
|
2847
2847
|
);
|
|
2848
|
-
const
|
|
2848
|
+
const b = u ? `${c}-description` : void 0, m = [
|
|
2849
2849
|
{
|
|
2850
2850
|
kind: "element",
|
|
2851
2851
|
tag: "div",
|
|
@@ -2861,7 +2861,7 @@ function Pt({
|
|
|
2861
2861
|
kind: "element",
|
|
2862
2862
|
tag: "output",
|
|
2863
2863
|
attrs: { class: "output", for: c },
|
|
2864
|
-
children:
|
|
2864
|
+
children: p != null ? [{ kind: "text", value: String(p) }] : []
|
|
2865
2865
|
}
|
|
2866
2866
|
]
|
|
2867
2867
|
},
|
|
@@ -2869,16 +2869,16 @@ function Pt({
|
|
|
2869
2869
|
kind: "element",
|
|
2870
2870
|
tag: "input",
|
|
2871
2871
|
attrs: {
|
|
2872
|
-
"aria-describedby":
|
|
2872
|
+
"aria-describedby": b,
|
|
2873
2873
|
class: "range",
|
|
2874
2874
|
disabled: !!n,
|
|
2875
2875
|
id: c,
|
|
2876
2876
|
max: a != null ? String(a) : void 0,
|
|
2877
|
-
min:
|
|
2878
|
-
name:
|
|
2877
|
+
min: d != null ? String(d) : void 0,
|
|
2878
|
+
name: k || void 0,
|
|
2879
2879
|
step: s != null ? String(s) : void 0,
|
|
2880
2880
|
type: "range",
|
|
2881
|
-
value:
|
|
2881
|
+
value: p != null ? String(p) : void 0
|
|
2882
2882
|
},
|
|
2883
2883
|
children: []
|
|
2884
2884
|
}
|
|
@@ -2886,7 +2886,7 @@ function Pt({
|
|
|
2886
2886
|
return u && m.push({
|
|
2887
2887
|
kind: "element",
|
|
2888
2888
|
tag: "p",
|
|
2889
|
-
attrs: { class: "description", id:
|
|
2889
|
+
attrs: { class: "description", id: b },
|
|
2890
2890
|
children: [{ kind: "text", value: u }]
|
|
2891
2891
|
}), {
|
|
2892
2892
|
kind: "element",
|
|
@@ -2894,7 +2894,7 @@ function Pt({
|
|
|
2894
2894
|
attrs: {
|
|
2895
2895
|
class: "set-range",
|
|
2896
2896
|
"data-inline-size": i === "fit" ? "fit" : void 0,
|
|
2897
|
-
"data-size":
|
|
2897
|
+
"data-size": l
|
|
2898
2898
|
},
|
|
2899
2899
|
children: m
|
|
2900
2900
|
};
|
|
@@ -2941,15 +2941,15 @@ function Bt() {
|
|
|
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, d = () => 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(o) {
|
|
2952
|
+
a.call(this, o), d();
|
|
2953
2953
|
}
|
|
2954
2954
|
}), this.#t = e;
|
|
2955
2955
|
}
|
|
@@ -3111,11 +3111,11 @@ function Ut({
|
|
|
3111
3111
|
collapseLabel: i = _,
|
|
3112
3112
|
footer: r,
|
|
3113
3113
|
header: a,
|
|
3114
|
-
id:
|
|
3115
|
-
surface:
|
|
3116
|
-
triggerLabel:
|
|
3114
|
+
id: d,
|
|
3115
|
+
surface: o,
|
|
3116
|
+
triggerLabel: l = J
|
|
3117
3117
|
}) {
|
|
3118
|
-
const s =
|
|
3118
|
+
const s = d.trim(), p = i.trim() || _, c = l.trim() || J;
|
|
3119
3119
|
if (!s)
|
|
3120
3120
|
throw new Error("id must be a non-empty string.");
|
|
3121
3121
|
if (!I(s))
|
|
@@ -3142,14 +3142,14 @@ function Ut({
|
|
|
3142
3142
|
attrs: { class: "footer" },
|
|
3143
3143
|
children: [{ kind: "raw", html: r }]
|
|
3144
3144
|
});
|
|
3145
|
-
const
|
|
3145
|
+
const k = `${s}-panel`;
|
|
3146
3146
|
return {
|
|
3147
3147
|
kind: "element",
|
|
3148
3148
|
tag: Z,
|
|
3149
3149
|
attrs: {
|
|
3150
3150
|
class: "set-sidebar",
|
|
3151
3151
|
"data-above-notebook": t,
|
|
3152
|
-
"data-collapse-label":
|
|
3152
|
+
"data-collapse-label": p !== _ ? p : void 0,
|
|
3153
3153
|
"data-button-size": n,
|
|
3154
3154
|
id: s
|
|
3155
3155
|
},
|
|
@@ -3161,7 +3161,7 @@ function Ut({
|
|
|
3161
3161
|
children: [
|
|
3162
3162
|
tt({
|
|
3163
3163
|
appearance: "text",
|
|
3164
|
-
controls:
|
|
3164
|
+
controls: k,
|
|
3165
3165
|
disclosure: !0,
|
|
3166
3166
|
icon: "panel-left",
|
|
3167
3167
|
iconMirrored: "rtl",
|
|
@@ -3178,8 +3178,8 @@ function Ut({
|
|
|
3178
3178
|
tag: "div",
|
|
3179
3179
|
attrs: {
|
|
3180
3180
|
class: "sidebar",
|
|
3181
|
-
"data-set-surface":
|
|
3182
|
-
id:
|
|
3181
|
+
"data-set-surface": o,
|
|
3182
|
+
id: k,
|
|
3183
3183
|
tabindex: "-1"
|
|
3184
3184
|
},
|
|
3185
3185
|
children: u
|
|
@@ -3480,15 +3480,15 @@ function Gt({
|
|
|
3480
3480
|
height: i,
|
|
3481
3481
|
id: r,
|
|
3482
3482
|
loop: a,
|
|
3483
|
-
muted:
|
|
3484
|
-
playsInline:
|
|
3485
|
-
poster:
|
|
3483
|
+
muted: d,
|
|
3484
|
+
playsInline: o,
|
|
3485
|
+
poster: l,
|
|
3486
3486
|
preload: s,
|
|
3487
|
-
src:
|
|
3487
|
+
src: p,
|
|
3488
3488
|
width: c
|
|
3489
3489
|
}) {
|
|
3490
|
-
const u =
|
|
3491
|
-
if (!
|
|
3490
|
+
const u = g(r), k = p.trim(), b = l?.trim();
|
|
3491
|
+
if (!k)
|
|
3492
3492
|
throw new Error("src must be a non-empty string.");
|
|
3493
3493
|
const m = {
|
|
3494
3494
|
kind: "element",
|
|
@@ -3499,11 +3499,11 @@ function Gt({
|
|
|
3499
3499
|
controls: !!n,
|
|
3500
3500
|
height: i ? String(i) : void 0,
|
|
3501
3501
|
loop: !!a,
|
|
3502
|
-
muted: !!
|
|
3503
|
-
playsinline: !!
|
|
3504
|
-
poster:
|
|
3502
|
+
muted: !!d,
|
|
3503
|
+
playsinline: !!o,
|
|
3504
|
+
poster: b || void 0,
|
|
3505
3505
|
preload: s,
|
|
3506
|
-
src:
|
|
3506
|
+
src: k,
|
|
3507
3507
|
width: c ? String(c) : void 0
|
|
3508
3508
|
},
|
|
3509
3509
|
children: []
|
|
@@ -3696,27 +3696,27 @@ function Qt(t) {
|
|
|
3696
3696
|
return r[0];
|
|
3697
3697
|
const a = e.slice(1).find(Kt);
|
|
3698
3698
|
if (a) {
|
|
3699
|
-
const
|
|
3700
|
-
return
|
|
3699
|
+
const o = T(a);
|
|
3700
|
+
return o ? `${r[0]}${o}` : void 0;
|
|
3701
3701
|
}
|
|
3702
3702
|
if (e.length === 2) {
|
|
3703
|
-
const
|
|
3704
|
-
if (!
|
|
3705
|
-
r.push(
|
|
3706
|
-
const
|
|
3707
|
-
if (
|
|
3708
|
-
const s = T(
|
|
3703
|
+
const o = T(e[1]);
|
|
3704
|
+
if (!o) return;
|
|
3705
|
+
r.push(o);
|
|
3706
|
+
const l = e[1].split("-").filter(Boolean);
|
|
3707
|
+
if (l.length === 2) {
|
|
3708
|
+
const s = T(l[1]);
|
|
3709
3709
|
s && r.push(s);
|
|
3710
3710
|
}
|
|
3711
3711
|
return r.slice(0, 3).join("");
|
|
3712
3712
|
}
|
|
3713
3713
|
if (e.length === 3) {
|
|
3714
|
-
const
|
|
3715
|
-
return !
|
|
3714
|
+
const o = T(e[1]), l = T(e[2]);
|
|
3715
|
+
return !o || !l ? void 0 : (r.push(o, l), r.slice(0, 3).join(""));
|
|
3716
3716
|
}
|
|
3717
|
-
const
|
|
3718
|
-
if (
|
|
3719
|
-
return r.push(
|
|
3717
|
+
const d = T(e.at(-1) || "");
|
|
3718
|
+
if (d)
|
|
3719
|
+
return r.push(d), r.slice(0, 3).join("");
|
|
3720
3720
|
}
|
|
3721
3721
|
const Xt = {
|
|
3722
3722
|
bot: "robot-1",
|
|
@@ -3777,24 +3777,24 @@ function ie({
|
|
|
3777
3777
|
entity: i = "person",
|
|
3778
3778
|
id: r,
|
|
3779
3779
|
initials: a,
|
|
3780
|
-
name:
|
|
3781
|
-
size:
|
|
3782
|
-
src:
|
|
3780
|
+
name: d,
|
|
3781
|
+
size: o = "md",
|
|
3782
|
+
src: l
|
|
3783
3783
|
}) {
|
|
3784
|
-
const s =
|
|
3784
|
+
const s = g(r), p = Jt(a), c = D(d), u = D(l), k = te({
|
|
3785
3785
|
alt: t,
|
|
3786
3786
|
ariaHidden: n,
|
|
3787
3787
|
name: c
|
|
3788
|
-
}),
|
|
3788
|
+
}), b = p || Qt(c), m = !!u, f = ee({
|
|
3789
3789
|
color: e,
|
|
3790
3790
|
name: c
|
|
3791
3791
|
}), E = {
|
|
3792
3792
|
"aria-hidden": n ? "true" : void 0,
|
|
3793
|
-
"aria-label": !n && !m ?
|
|
3793
|
+
"aria-label": !n && !m ? k : void 0,
|
|
3794
3794
|
class: "set-avatar",
|
|
3795
3795
|
"data-color": f === "neutral" ? void 0 : f,
|
|
3796
3796
|
"data-entity": i === "person" ? void 0 : i,
|
|
3797
|
-
"data-size":
|
|
3797
|
+
"data-size": o,
|
|
3798
3798
|
id: s,
|
|
3799
3799
|
role: !n && !m ? "img" : void 0
|
|
3800
3800
|
};
|
|
@@ -3803,16 +3803,16 @@ function ie({
|
|
|
3803
3803
|
kind: "element",
|
|
3804
3804
|
tag: "img",
|
|
3805
3805
|
attrs: {
|
|
3806
|
-
alt: n ? "" :
|
|
3806
|
+
alt: n ? "" : k || "",
|
|
3807
3807
|
class: "img",
|
|
3808
3808
|
src: u
|
|
3809
3809
|
},
|
|
3810
3810
|
children: []
|
|
3811
|
-
} :
|
|
3811
|
+
} : b ? S = {
|
|
3812
3812
|
kind: "element",
|
|
3813
3813
|
tag: "span",
|
|
3814
3814
|
attrs: { class: "initials" },
|
|
3815
|
-
children: [{ kind: "text", value:
|
|
3815
|
+
children: [{ kind: "text", value: b }]
|
|
3816
3816
|
} : S = {
|
|
3817
3817
|
kind: "element",
|
|
3818
3818
|
tag: "span",
|
|
@@ -3948,7 +3948,7 @@ function ne({
|
|
|
3948
3948
|
size: i = "md",
|
|
3949
3949
|
tone: r
|
|
3950
3950
|
}) {
|
|
3951
|
-
const a =
|
|
3951
|
+
const a = g(n);
|
|
3952
3952
|
return {
|
|
3953
3953
|
kind: "element",
|
|
3954
3954
|
tag: "span",
|
|
@@ -4041,23 +4041,25 @@ function j({
|
|
|
4041
4041
|
id: i,
|
|
4042
4042
|
linkVisited: r = !0,
|
|
4043
4043
|
measured: a,
|
|
4044
|
+
monospaced: d,
|
|
4044
4045
|
responsive: o,
|
|
4045
|
-
size:
|
|
4046
|
-
tone:
|
|
4046
|
+
size: l = "md",
|
|
4047
|
+
tone: s = "default"
|
|
4047
4048
|
}) {
|
|
4048
|
-
const
|
|
4049
|
+
const p = g(i), c = n === "p" ? "p" : "span", u = c === "p", k = u ? t ?? "start" : void 0;
|
|
4049
4050
|
return {
|
|
4050
4051
|
kind: "element",
|
|
4051
|
-
tag:
|
|
4052
|
+
tag: c,
|
|
4052
4053
|
attrs: {
|
|
4053
4054
|
class: "set-text",
|
|
4054
|
-
"data-align":
|
|
4055
|
+
"data-align": k && k !== "start" ? k : void 0,
|
|
4055
4056
|
"data-link-visited": r ? void 0 : "off",
|
|
4056
|
-
"data-measured":
|
|
4057
|
+
"data-measured": u ? a ?? !0 : void 0,
|
|
4058
|
+
"data-monospaced": d,
|
|
4057
4059
|
"data-responsive": o,
|
|
4058
|
-
"data-size":
|
|
4059
|
-
"data-tone":
|
|
4060
|
-
id:
|
|
4060
|
+
"data-size": l,
|
|
4061
|
+
"data-tone": s === "muted" ? "muted" : void 0,
|
|
4062
|
+
id: p
|
|
4061
4063
|
},
|
|
4062
4064
|
children: [{ kind: "raw", html: e }]
|
|
4063
4065
|
};
|
|
@@ -4110,6 +4112,11 @@ const ai = {
|
|
|
4110
4112
|
ignoredWhen: "`as` is span",
|
|
4111
4113
|
type: { kind: "boolean" }
|
|
4112
4114
|
},
|
|
4115
|
+
monospaced: {
|
|
4116
|
+
default: !1,
|
|
4117
|
+
description: "Applies monospaced word spacing throughout.",
|
|
4118
|
+
type: { kind: "boolean" }
|
|
4119
|
+
},
|
|
4113
4120
|
size: {
|
|
4114
4121
|
default: "md",
|
|
4115
4122
|
description: "Size variant.",
|
|
@@ -4153,6 +4160,11 @@ const ai = {
|
|
|
4153
4160
|
]
|
|
4154
4161
|
}
|
|
4155
4162
|
},
|
|
4163
|
+
{
|
|
4164
|
+
target: { on: "host" },
|
|
4165
|
+
attribute: "data-monospaced",
|
|
4166
|
+
condition: { kind: "when-truthy", prop: "monospaced" }
|
|
4167
|
+
},
|
|
4156
4168
|
{
|
|
4157
4169
|
target: { on: "host" },
|
|
4158
4170
|
attribute: "data-responsive",
|
|
@@ -4186,16 +4198,16 @@ function re({
|
|
|
4186
4198
|
measured: i = !0,
|
|
4187
4199
|
quote: r,
|
|
4188
4200
|
responsive: a = !1,
|
|
4189
|
-
size:
|
|
4201
|
+
size: d = "md"
|
|
4190
4202
|
}) {
|
|
4191
|
-
const
|
|
4203
|
+
const o = g(e);
|
|
4192
4204
|
return {
|
|
4193
4205
|
kind: "element",
|
|
4194
4206
|
tag: "figure",
|
|
4195
4207
|
attrs: {
|
|
4196
4208
|
class: "set-blockquote",
|
|
4197
4209
|
"data-align": t === "start" ? void 0 : t,
|
|
4198
|
-
id:
|
|
4210
|
+
id: o
|
|
4199
4211
|
},
|
|
4200
4212
|
children: [
|
|
4201
4213
|
{
|
|
@@ -4209,7 +4221,7 @@ function re({
|
|
|
4209
4221
|
children: r,
|
|
4210
4222
|
measured: i,
|
|
4211
4223
|
responsive: a,
|
|
4212
|
-
size:
|
|
4224
|
+
size: d
|
|
4213
4225
|
})
|
|
4214
4226
|
]
|
|
4215
4227
|
},
|
|
@@ -4308,11 +4320,11 @@ function ae({
|
|
|
4308
4320
|
id: i,
|
|
4309
4321
|
paddingBlock: r = "md",
|
|
4310
4322
|
paddingInline: a = "md",
|
|
4311
|
-
radius:
|
|
4312
|
-
responsive:
|
|
4313
|
-
surface:
|
|
4323
|
+
radius: d,
|
|
4324
|
+
responsive: o,
|
|
4325
|
+
surface: l
|
|
4314
4326
|
}) {
|
|
4315
|
-
const s =
|
|
4327
|
+
const s = g(i);
|
|
4316
4328
|
return {
|
|
4317
4329
|
kind: "element",
|
|
4318
4330
|
tag: "div",
|
|
@@ -4320,11 +4332,11 @@ function ae({
|
|
|
4320
4332
|
class: "set-box",
|
|
4321
4333
|
"data-background": t === "default" ? void 0 : t,
|
|
4322
4334
|
"data-border": n,
|
|
4323
|
-
"data-set-surface":
|
|
4335
|
+
"data-set-surface": l,
|
|
4324
4336
|
"data-padding-block": r,
|
|
4325
4337
|
"data-padding-inline": a,
|
|
4326
|
-
"data-radius":
|
|
4327
|
-
"data-responsive":
|
|
4338
|
+
"data-radius": d,
|
|
4339
|
+
"data-responsive": o,
|
|
4328
4340
|
id: s
|
|
4329
4341
|
},
|
|
4330
4342
|
children: e ? [{ kind: "raw", html: e }] : []
|
|
@@ -4453,17 +4465,17 @@ function oe({
|
|
|
4453
4465
|
id: i,
|
|
4454
4466
|
note: r,
|
|
4455
4467
|
surface: a,
|
|
4456
|
-
title:
|
|
4468
|
+
title: d
|
|
4457
4469
|
}) {
|
|
4458
|
-
const
|
|
4470
|
+
const o = g(i), l = n ? `h${n}` : "div", s = e ? [
|
|
4459
4471
|
{
|
|
4460
4472
|
kind: "element",
|
|
4461
4473
|
tag: "a",
|
|
4462
4474
|
attrs: { href: e },
|
|
4463
|
-
children: [{ kind: "text", value:
|
|
4475
|
+
children: [{ kind: "text", value: d }]
|
|
4464
4476
|
}
|
|
4465
|
-
] : [{ kind: "text", value:
|
|
4466
|
-
r && e &&
|
|
4477
|
+
] : [{ kind: "text", value: d }], p = r ? [{ kind: "raw", html: r }] : [];
|
|
4478
|
+
r && e && p.push({
|
|
4467
4479
|
kind: "element",
|
|
4468
4480
|
tag: "span",
|
|
4469
4481
|
attrs: { class: "icon-wrapper" },
|
|
@@ -4485,7 +4497,7 @@ function oe({
|
|
|
4485
4497
|
},
|
|
4486
4498
|
{
|
|
4487
4499
|
kind: "element",
|
|
4488
|
-
tag:
|
|
4500
|
+
tag: l,
|
|
4489
4501
|
attrs: { class: "title" },
|
|
4490
4502
|
children: s
|
|
4491
4503
|
},
|
|
@@ -4500,14 +4512,14 @@ function oe({
|
|
|
4500
4512
|
kind: "element",
|
|
4501
4513
|
tag: "p",
|
|
4502
4514
|
attrs: { class: "note" },
|
|
4503
|
-
children:
|
|
4515
|
+
children: p
|
|
4504
4516
|
}), {
|
|
4505
4517
|
kind: "element",
|
|
4506
4518
|
tag: "div",
|
|
4507
4519
|
attrs: {
|
|
4508
4520
|
class: "set-card",
|
|
4509
4521
|
"data-set-surface": a,
|
|
4510
|
-
id:
|
|
4522
|
+
id: o
|
|
4511
4523
|
},
|
|
4512
4524
|
children: c
|
|
4513
4525
|
};
|
|
@@ -4590,15 +4602,15 @@ function de({
|
|
|
4590
4602
|
id: i,
|
|
4591
4603
|
invalid: r,
|
|
4592
4604
|
label: a,
|
|
4593
|
-
name:
|
|
4594
|
-
required:
|
|
4595
|
-
size:
|
|
4605
|
+
name: d,
|
|
4606
|
+
required: o,
|
|
4607
|
+
size: l = "md",
|
|
4596
4608
|
value: s
|
|
4597
4609
|
}) {
|
|
4598
|
-
const
|
|
4599
|
-
if (c && !
|
|
4610
|
+
const p = g(i), c = n?.trim();
|
|
4611
|
+
if (c && !p)
|
|
4600
4612
|
throw new Error("id must be provided when description is provided.");
|
|
4601
|
-
const u = c ? `${
|
|
4613
|
+
const u = c ? `${p}-description` : void 0, k = !!e, m = [
|
|
4602
4614
|
{
|
|
4603
4615
|
kind: "element",
|
|
4604
4616
|
tag: "label",
|
|
@@ -4609,13 +4621,13 @@ function de({
|
|
|
4609
4621
|
tag: "input",
|
|
4610
4622
|
attrs: {
|
|
4611
4623
|
"aria-describedby": u,
|
|
4612
|
-
"aria-invalid": !
|
|
4624
|
+
"aria-invalid": !k && !!r ? "true" : void 0,
|
|
4613
4625
|
checked: !!t,
|
|
4614
4626
|
class: "checkbox",
|
|
4615
|
-
disabled:
|
|
4616
|
-
id:
|
|
4617
|
-
name:
|
|
4618
|
-
required: !!
|
|
4627
|
+
disabled: k,
|
|
4628
|
+
id: p,
|
|
4629
|
+
name: d || void 0,
|
|
4630
|
+
required: !!o,
|
|
4619
4631
|
type: "checkbox",
|
|
4620
4632
|
value: s || void 0
|
|
4621
4633
|
},
|
|
@@ -4638,7 +4650,7 @@ function de({
|
|
|
4638
4650
|
}), {
|
|
4639
4651
|
kind: "element",
|
|
4640
4652
|
tag: "div",
|
|
4641
|
-
attrs: { class: "set-checkbox", "data-size":
|
|
4653
|
+
attrs: { class: "set-checkbox", "data-size": l },
|
|
4642
4654
|
children: m
|
|
4643
4655
|
};
|
|
4644
4656
|
}
|
|
@@ -4781,7 +4793,7 @@ function se({
|
|
|
4781
4793
|
id: e,
|
|
4782
4794
|
maxInlineSize: i = "default"
|
|
4783
4795
|
}) {
|
|
4784
|
-
const r =
|
|
4796
|
+
const r = g(e);
|
|
4785
4797
|
return {
|
|
4786
4798
|
kind: "element",
|
|
4787
4799
|
tag: "div",
|
|
@@ -4861,7 +4873,7 @@ function le({
|
|
|
4861
4873
|
summary: i,
|
|
4862
4874
|
inlineSize: r = "full"
|
|
4863
4875
|
}) {
|
|
4864
|
-
const a =
|
|
4876
|
+
const a = g(n);
|
|
4865
4877
|
return {
|
|
4866
4878
|
kind: "element",
|
|
4867
4879
|
tag: "details",
|
|
@@ -4973,7 +4985,7 @@ function pe({
|
|
|
4973
4985
|
orientation: n = "horizontal",
|
|
4974
4986
|
tone: e = "default"
|
|
4975
4987
|
} = {}) {
|
|
4976
|
-
const i =
|
|
4988
|
+
const i = g(t);
|
|
4977
4989
|
return {
|
|
4978
4990
|
kind: "element",
|
|
4979
4991
|
tag: n === "horizontal" ? "hr" : "span",
|
|
@@ -5059,16 +5071,16 @@ function gt({
|
|
|
5059
5071
|
id: i,
|
|
5060
5072
|
invalid: r,
|
|
5061
5073
|
legend: a,
|
|
5062
|
-
inlineSize:
|
|
5074
|
+
inlineSize: d = "full"
|
|
5063
5075
|
}) {
|
|
5064
|
-
const
|
|
5065
|
-
if (!
|
|
5076
|
+
const o = n?.trim(), l = i.trim();
|
|
5077
|
+
if (!l)
|
|
5066
5078
|
throw new Error("id must be a non-empty string.");
|
|
5067
|
-
if (!I(
|
|
5079
|
+
if (!I(l))
|
|
5068
5080
|
throw new Error(
|
|
5069
5081
|
"id must start with a letter and contain only letters, numbers, '_', '-', or ':'."
|
|
5070
5082
|
);
|
|
5071
|
-
const s =
|
|
5083
|
+
const s = o ? `${l}-description` : void 0, p = !!e, c = !p && !!r, u = [
|
|
5072
5084
|
{
|
|
5073
5085
|
kind: "element",
|
|
5074
5086
|
tag: "legend",
|
|
@@ -5076,21 +5088,21 @@ function gt({
|
|
|
5076
5088
|
children: [{ kind: "text", value: a }]
|
|
5077
5089
|
}
|
|
5078
5090
|
];
|
|
5079
|
-
return
|
|
5091
|
+
return o && u.push({
|
|
5080
5092
|
kind: "element",
|
|
5081
5093
|
tag: "p",
|
|
5082
5094
|
attrs: { class: "description", id: s },
|
|
5083
|
-
children: [{ kind: "text", value:
|
|
5095
|
+
children: [{ kind: "text", value: o }]
|
|
5084
5096
|
}), t && u.push({ kind: "raw", html: t }), {
|
|
5085
5097
|
kind: "element",
|
|
5086
5098
|
tag: "fieldset",
|
|
5087
5099
|
attrs: {
|
|
5088
|
-
"aria-describedby":
|
|
5100
|
+
"aria-describedby": o ? s : void 0,
|
|
5089
5101
|
"aria-invalid": c ? "true" : void 0,
|
|
5090
5102
|
class: "set-fieldset",
|
|
5091
|
-
"data-inline-size":
|
|
5092
|
-
disabled:
|
|
5093
|
-
id:
|
|
5103
|
+
"data-inline-size": d === "fit" ? "fit" : void 0,
|
|
5104
|
+
disabled: p,
|
|
5105
|
+
id: l
|
|
5094
5106
|
},
|
|
5095
5107
|
children: u
|
|
5096
5108
|
};
|
|
@@ -5193,7 +5205,7 @@ function ce({
|
|
|
5193
5205
|
id: i,
|
|
5194
5206
|
responsive: r = !1
|
|
5195
5207
|
}) {
|
|
5196
|
-
const a =
|
|
5208
|
+
const a = g(i);
|
|
5197
5209
|
return {
|
|
5198
5210
|
kind: "element",
|
|
5199
5211
|
tag: "figure",
|
|
@@ -5290,7 +5302,7 @@ function ue({
|
|
|
5290
5302
|
gap: n = "default",
|
|
5291
5303
|
id: e
|
|
5292
5304
|
}) {
|
|
5293
|
-
const i =
|
|
5305
|
+
const i = g(e);
|
|
5294
5306
|
return {
|
|
5295
5307
|
kind: "element",
|
|
5296
5308
|
tag: "div",
|
|
@@ -5319,18 +5331,18 @@ function he({
|
|
|
5319
5331
|
colSpanNarrow: i,
|
|
5320
5332
|
colSpanWide: r,
|
|
5321
5333
|
colStart: a,
|
|
5322
|
-
colStartNarrow:
|
|
5323
|
-
colStartWide:
|
|
5324
|
-
id:
|
|
5334
|
+
colStartNarrow: d,
|
|
5335
|
+
colStartWide: o,
|
|
5336
|
+
id: l,
|
|
5325
5337
|
justify: s,
|
|
5326
|
-
rowSpan:
|
|
5338
|
+
rowSpan: p,
|
|
5327
5339
|
rowSpanNarrow: c,
|
|
5328
5340
|
rowSpanWide: u,
|
|
5329
|
-
rowStart:
|
|
5330
|
-
rowStartNarrow:
|
|
5341
|
+
rowStart: k,
|
|
5342
|
+
rowStartNarrow: b,
|
|
5331
5343
|
rowStartWide: m
|
|
5332
5344
|
}) {
|
|
5333
|
-
const f =
|
|
5345
|
+
const f = g(l);
|
|
5334
5346
|
return {
|
|
5335
5347
|
kind: "element",
|
|
5336
5348
|
tag: "div",
|
|
@@ -5339,15 +5351,15 @@ function he({
|
|
|
5339
5351
|
"data-align": t,
|
|
5340
5352
|
"data-justify": s,
|
|
5341
5353
|
"data-col-span-narrow": L(i),
|
|
5342
|
-
"data-col-start-narrow": L(
|
|
5354
|
+
"data-col-start-narrow": L(d),
|
|
5343
5355
|
"data-col-span": L(e),
|
|
5344
5356
|
"data-col-start": L(a),
|
|
5345
5357
|
"data-col-span-wide": L(r),
|
|
5346
|
-
"data-col-start-wide": L(
|
|
5358
|
+
"data-col-start-wide": L(o),
|
|
5347
5359
|
"data-row-span-narrow": L(c),
|
|
5348
|
-
"data-row-start-narrow": L(
|
|
5349
|
-
"data-row-span": L(
|
|
5350
|
-
"data-row-start": L(
|
|
5360
|
+
"data-row-start-narrow": L(b),
|
|
5361
|
+
"data-row-span": L(p),
|
|
5362
|
+
"data-row-start": L(k),
|
|
5351
5363
|
"data-row-span-wide": L(u),
|
|
5352
5364
|
"data-row-start-wide": L(m),
|
|
5353
5365
|
id: f
|
|
@@ -5575,22 +5587,24 @@ function me({
|
|
|
5575
5587
|
align: t = "start",
|
|
5576
5588
|
id: n,
|
|
5577
5589
|
level: e,
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
|
|
5590
|
+
opticalAlign: i,
|
|
5591
|
+
responsive: r,
|
|
5592
|
+
size: a = "md",
|
|
5593
|
+
text: d
|
|
5581
5594
|
}) {
|
|
5582
|
-
const o =
|
|
5595
|
+
const o = g(n);
|
|
5583
5596
|
return {
|
|
5584
5597
|
kind: "element",
|
|
5585
5598
|
tag: e ? `h${e}` : "span",
|
|
5586
5599
|
attrs: {
|
|
5587
5600
|
class: "set-heading",
|
|
5588
5601
|
"data-align": t === "start" ? void 0 : t,
|
|
5589
|
-
"data-
|
|
5590
|
-
"data-
|
|
5602
|
+
"data-optical-align": i,
|
|
5603
|
+
"data-responsive": r,
|
|
5604
|
+
"data-size": a,
|
|
5591
5605
|
id: o
|
|
5592
5606
|
},
|
|
5593
|
-
children: [{ kind: "text", value:
|
|
5607
|
+
children: [{ kind: "text", value: d }]
|
|
5594
5608
|
};
|
|
5595
5609
|
}
|
|
5596
5610
|
function Mi(t) {
|
|
@@ -5629,6 +5643,11 @@ const qi = {
|
|
|
5629
5643
|
description: "Semantic heading level. Renders a `<span>` when omitted.",
|
|
5630
5644
|
type: { kind: "enum", values: [1, 2, 3, 4, 5, 6] }
|
|
5631
5645
|
},
|
|
5646
|
+
opticalAlign: {
|
|
5647
|
+
default: !1,
|
|
5648
|
+
description: "Optically aligns left sidebearing-heavy glyphs with the content edge.",
|
|
5649
|
+
type: { kind: "boolean" }
|
|
5650
|
+
},
|
|
5632
5651
|
responsive: {
|
|
5633
5652
|
default: !1,
|
|
5634
5653
|
description: "Scales type across breakpoints.",
|
|
@@ -5661,6 +5680,11 @@ const qi = {
|
|
|
5661
5680
|
},
|
|
5662
5681
|
value: { kind: "prop", prop: "align" }
|
|
5663
5682
|
},
|
|
5683
|
+
{
|
|
5684
|
+
target: { on: "host" },
|
|
5685
|
+
attribute: "data-optical-align",
|
|
5686
|
+
condition: { kind: "when-truthy", prop: "opticalAlign" }
|
|
5687
|
+
},
|
|
5664
5688
|
{
|
|
5665
5689
|
target: { on: "host" },
|
|
5666
5690
|
attribute: "data-responsive",
|
|
@@ -5688,17 +5712,17 @@ function ke({
|
|
|
5688
5712
|
gravity: i = "C",
|
|
5689
5713
|
height: r,
|
|
5690
5714
|
id: a,
|
|
5691
|
-
lazy:
|
|
5692
|
-
priority:
|
|
5693
|
-
radius:
|
|
5715
|
+
lazy: d,
|
|
5716
|
+
priority: o,
|
|
5717
|
+
radius: l,
|
|
5694
5718
|
shadow: s,
|
|
5695
|
-
sizes:
|
|
5719
|
+
sizes: p,
|
|
5696
5720
|
sources: c,
|
|
5697
5721
|
src: u,
|
|
5698
|
-
srcSet:
|
|
5699
|
-
width:
|
|
5722
|
+
srcSet: k,
|
|
5723
|
+
width: b
|
|
5700
5724
|
}) {
|
|
5701
|
-
const m = e === "cover", f =
|
|
5725
|
+
const m = e === "cover", f = g(a), E = u.trim(), S = k?.trim(), v = p?.trim(), y = c?.map((z, C) => {
|
|
5702
5726
|
const A = z.srcSet.trim(), V = z.media?.trim(), it = z.type?.trim(), O = z.sizes?.trim();
|
|
5703
5727
|
if (!A)
|
|
5704
5728
|
throw new Error(`sources[${C}].srcSet must be non-empty.`);
|
|
@@ -5719,13 +5743,13 @@ function ke({
|
|
|
5719
5743
|
attrs: {
|
|
5720
5744
|
alt: t,
|
|
5721
5745
|
class: "img",
|
|
5722
|
-
fetchpriority:
|
|
5746
|
+
fetchpriority: o ? "high" : void 0,
|
|
5723
5747
|
height: m ? void 0 : r ? String(r) : void 0,
|
|
5724
|
-
loading:
|
|
5725
|
-
sizes: y.length > 0 ? void 0 :
|
|
5748
|
+
loading: d && !o ? "lazy" : void 0,
|
|
5749
|
+
sizes: y.length > 0 ? void 0 : v || void 0,
|
|
5726
5750
|
src: E,
|
|
5727
5751
|
srcset: S || void 0,
|
|
5728
|
-
width: m ? void 0 :
|
|
5752
|
+
width: m ? void 0 : b ? String(b) : void 0
|
|
5729
5753
|
},
|
|
5730
5754
|
children: []
|
|
5731
5755
|
};
|
|
@@ -5753,7 +5777,7 @@ function ke({
|
|
|
5753
5777
|
} else
|
|
5754
5778
|
x = w;
|
|
5755
5779
|
const q = [];
|
|
5756
|
-
return r && q.push(`--set-image-block-size: ${r / 16}rem`),
|
|
5780
|
+
return r && q.push(`--set-image-block-size: ${r / 16}rem`), b && q.push(`--set-image-inline-size: ${b / 16}rem`), {
|
|
5757
5781
|
kind: "element",
|
|
5758
5782
|
tag: "div",
|
|
5759
5783
|
attrs: {
|
|
@@ -5763,7 +5787,7 @@ function ke({
|
|
|
5763
5787
|
"data-gravity": m && i !== "C" ? i : void 0,
|
|
5764
5788
|
"data-shadow": !!s,
|
|
5765
5789
|
"data-object-fit": m ? "cover" : void 0,
|
|
5766
|
-
"data-radius": !!
|
|
5790
|
+
"data-radius": !!l,
|
|
5767
5791
|
id: f,
|
|
5768
5792
|
style: q.length > 0 ? q.join("; ") : void 0
|
|
5769
5793
|
},
|
|
@@ -5968,9 +5992,9 @@ function be({
|
|
|
5968
5992
|
gap: i = "md",
|
|
5969
5993
|
id: r,
|
|
5970
5994
|
justify: a = "start",
|
|
5971
|
-
nowrap:
|
|
5995
|
+
nowrap: d
|
|
5972
5996
|
}) {
|
|
5973
|
-
const
|
|
5997
|
+
const o = g(r);
|
|
5974
5998
|
return {
|
|
5975
5999
|
kind: "element",
|
|
5976
6000
|
tag: n,
|
|
@@ -5979,8 +6003,8 @@ function be({
|
|
|
5979
6003
|
"data-align": t === "center" ? void 0 : t,
|
|
5980
6004
|
"data-gap": i,
|
|
5981
6005
|
"data-justify": a === "start" ? void 0 : a,
|
|
5982
|
-
"data-nowrap":
|
|
5983
|
-
id:
|
|
6006
|
+
"data-nowrap": d,
|
|
6007
|
+
id: o
|
|
5984
6008
|
},
|
|
5985
6009
|
children: e ? [{ kind: "raw", html: e }] : []
|
|
5986
6010
|
};
|
|
@@ -6080,24 +6104,24 @@ function ve({
|
|
|
6080
6104
|
id: i,
|
|
6081
6105
|
invalid: r,
|
|
6082
6106
|
label: a,
|
|
6083
|
-
name:
|
|
6084
|
-
pattern:
|
|
6085
|
-
readOnly:
|
|
6107
|
+
name: d,
|
|
6108
|
+
pattern: o,
|
|
6109
|
+
readOnly: l,
|
|
6086
6110
|
required: s,
|
|
6087
|
-
size:
|
|
6111
|
+
size: p = "md",
|
|
6088
6112
|
spellcheck: c,
|
|
6089
6113
|
type: u = "text",
|
|
6090
|
-
value:
|
|
6091
|
-
inlineSize:
|
|
6114
|
+
value: k,
|
|
6115
|
+
inlineSize: b = "full"
|
|
6092
6116
|
}) {
|
|
6093
|
-
const m = i.trim(), f = n?.trim(), E = t === !1 ? !1 : t?.trim(), S =
|
|
6117
|
+
const m = i.trim(), f = n?.trim(), E = t === !1 ? !1 : t?.trim(), S = d?.trim(), v = o?.trim(), y = k;
|
|
6094
6118
|
if (!m)
|
|
6095
6119
|
throw new Error("id must be a non-empty string.");
|
|
6096
6120
|
if (!I(m))
|
|
6097
6121
|
throw new Error(
|
|
6098
6122
|
"id must start with a letter and contain only letters, numbers, '_', '-', or ':'."
|
|
6099
6123
|
);
|
|
6100
|
-
const w = f ? `${m}-description` : void 0, x = u === "numeric", q = x ? "text" : u, z =
|
|
6124
|
+
const w = f ? `${m}-description` : void 0, x = u === "numeric", q = x ? "text" : u, z = v || (x ? "^[0-9]*$" : void 0), C = c === void 0 && x ? !1 : c, A = !!e, V = !A && !!l, O = [
|
|
6101
6125
|
{
|
|
6102
6126
|
kind: "element",
|
|
6103
6127
|
tag: "label",
|
|
@@ -6136,8 +6160,8 @@ function ve({
|
|
|
6136
6160
|
tag: "div",
|
|
6137
6161
|
attrs: {
|
|
6138
6162
|
class: "set-input",
|
|
6139
|
-
"data-size":
|
|
6140
|
-
"data-inline-size":
|
|
6163
|
+
"data-size": p,
|
|
6164
|
+
"data-inline-size": b === "fit" ? "fit" : void 0
|
|
6141
6165
|
},
|
|
6142
6166
|
children: O
|
|
6143
6167
|
};
|
|
@@ -6348,7 +6372,7 @@ function fe({
|
|
|
6348
6372
|
tone: i = "default",
|
|
6349
6373
|
variant: r = "primary"
|
|
6350
6374
|
}) {
|
|
6351
|
-
const a =
|
|
6375
|
+
const a = g(t);
|
|
6352
6376
|
return {
|
|
6353
6377
|
kind: "element",
|
|
6354
6378
|
tag: "div",
|
|
@@ -6447,22 +6471,22 @@ function ye({
|
|
|
6447
6471
|
footer: i,
|
|
6448
6472
|
header: r,
|
|
6449
6473
|
headerBorder: a,
|
|
6450
|
-
headerSize:
|
|
6451
|
-
id:
|
|
6452
|
-
stickyHeader:
|
|
6474
|
+
headerSize: d = "md",
|
|
6475
|
+
id: o,
|
|
6476
|
+
stickyHeader: l
|
|
6453
6477
|
}) {
|
|
6454
|
-
const s =
|
|
6455
|
-
return t &&
|
|
6478
|
+
const s = g(o), p = [];
|
|
6479
|
+
return t && p.push({ kind: "raw", html: t }), p.push({
|
|
6456
6480
|
kind: "element",
|
|
6457
6481
|
tag: "header",
|
|
6458
6482
|
attrs: { class: "header" },
|
|
6459
6483
|
children: [{ kind: "raw", html: r }]
|
|
6460
|
-
}),
|
|
6484
|
+
}), p.push({
|
|
6461
6485
|
kind: "element",
|
|
6462
6486
|
tag: "main",
|
|
6463
6487
|
attrs: { class: "main" },
|
|
6464
6488
|
children: e ? [{ kind: "raw", html: e }] : []
|
|
6465
|
-
}),
|
|
6489
|
+
}), p.push({
|
|
6466
6490
|
kind: "element",
|
|
6467
6491
|
tag: "footer",
|
|
6468
6492
|
attrs: { class: "footer" },
|
|
@@ -6474,11 +6498,11 @@ function ye({
|
|
|
6474
6498
|
class: "set-page",
|
|
6475
6499
|
"data-center-main": n,
|
|
6476
6500
|
"data-header-border": a,
|
|
6477
|
-
"data-header-size":
|
|
6478
|
-
"data-sticky-header":
|
|
6501
|
+
"data-header-size": d,
|
|
6502
|
+
"data-sticky-header": l,
|
|
6479
6503
|
id: s
|
|
6480
6504
|
},
|
|
6481
|
-
children:
|
|
6505
|
+
children: p
|
|
6482
6506
|
};
|
|
6483
6507
|
}
|
|
6484
6508
|
function Vi(t) {
|
|
@@ -6580,7 +6604,7 @@ function we({
|
|
|
6580
6604
|
padding: e = "md",
|
|
6581
6605
|
surface: i
|
|
6582
6606
|
}) {
|
|
6583
|
-
const r =
|
|
6607
|
+
const r = g(n);
|
|
6584
6608
|
return {
|
|
6585
6609
|
kind: "element",
|
|
6586
6610
|
tag: "div",
|
|
@@ -6654,7 +6678,7 @@ function Se({
|
|
|
6654
6678
|
tone: i = "default",
|
|
6655
6679
|
variant: r = "tile"
|
|
6656
6680
|
} = {}) {
|
|
6657
|
-
const a =
|
|
6681
|
+
const a = g(n);
|
|
6658
6682
|
return {
|
|
6659
6683
|
kind: "element",
|
|
6660
6684
|
tag: "div",
|
|
@@ -6753,7 +6777,7 @@ function xe({
|
|
|
6753
6777
|
media: i,
|
|
6754
6778
|
surface: r
|
|
6755
6779
|
}) {
|
|
6756
|
-
const a =
|
|
6780
|
+
const a = g(e), d = n ? r ?? "default" : r, o = [
|
|
6757
6781
|
{
|
|
6758
6782
|
kind: "element",
|
|
6759
6783
|
tag: "div",
|
|
@@ -6761,7 +6785,7 @@ function xe({
|
|
|
6761
6785
|
children: [{ kind: "raw", html: i }]
|
|
6762
6786
|
}
|
|
6763
6787
|
];
|
|
6764
|
-
return t &&
|
|
6788
|
+
return t && o.push({
|
|
6765
6789
|
kind: "element",
|
|
6766
6790
|
tag: "div",
|
|
6767
6791
|
attrs: { class: "content" },
|
|
@@ -6772,10 +6796,10 @@ function xe({
|
|
|
6772
6796
|
attrs: {
|
|
6773
6797
|
class: "set-poster",
|
|
6774
6798
|
"data-set-content-theme": n,
|
|
6775
|
-
"data-set-surface":
|
|
6799
|
+
"data-set-surface": d,
|
|
6776
6800
|
id: a
|
|
6777
6801
|
},
|
|
6778
|
-
children:
|
|
6802
|
+
children: o
|
|
6779
6803
|
};
|
|
6780
6804
|
}
|
|
6781
6805
|
function $i(t) {
|
|
@@ -6856,10 +6880,12 @@ function Ee({
|
|
|
6856
6880
|
children: n,
|
|
6857
6881
|
hangingPunctuation: e,
|
|
6858
6882
|
id: i,
|
|
6859
|
-
|
|
6860
|
-
|
|
6883
|
+
linkVisited: r = !0,
|
|
6884
|
+
measured: a = !0,
|
|
6885
|
+
monospaced: d,
|
|
6886
|
+
responsive: o
|
|
6861
6887
|
}) {
|
|
6862
|
-
const
|
|
6888
|
+
const l = g(i);
|
|
6863
6889
|
return {
|
|
6864
6890
|
kind: "element",
|
|
6865
6891
|
tag: "div",
|
|
@@ -6867,9 +6893,11 @@ function Ee({
|
|
|
6867
6893
|
class: "set-prose",
|
|
6868
6894
|
"data-align": t !== "start" ? t : void 0,
|
|
6869
6895
|
"data-hanging-punctuation": e,
|
|
6870
|
-
"data-
|
|
6871
|
-
"data-
|
|
6872
|
-
|
|
6896
|
+
"data-link-visited": r ? void 0 : "off",
|
|
6897
|
+
"data-measured": a,
|
|
6898
|
+
"data-monospaced": d,
|
|
6899
|
+
"data-responsive": o,
|
|
6900
|
+
id: l
|
|
6873
6901
|
},
|
|
6874
6902
|
children: [{ kind: "raw", html: n }]
|
|
6875
6903
|
};
|
|
@@ -6901,11 +6929,21 @@ const Fi = {
|
|
|
6901
6929
|
description: "DOM id.",
|
|
6902
6930
|
type: { kind: "string" }
|
|
6903
6931
|
},
|
|
6932
|
+
linkVisited: {
|
|
6933
|
+
default: !0,
|
|
6934
|
+
description: "Styles visited links inside the prose.",
|
|
6935
|
+
type: { kind: "boolean" }
|
|
6936
|
+
},
|
|
6904
6937
|
measured: {
|
|
6905
6938
|
default: !0,
|
|
6906
6939
|
description: "Caps line length for comfortable reading.",
|
|
6907
6940
|
type: { kind: "boolean" }
|
|
6908
6941
|
},
|
|
6942
|
+
monospaced: {
|
|
6943
|
+
default: !1,
|
|
6944
|
+
description: "Applies monospaced word spacing throughout.",
|
|
6945
|
+
type: { kind: "boolean" }
|
|
6946
|
+
},
|
|
6909
6947
|
responsive: {
|
|
6910
6948
|
default: !1,
|
|
6911
6949
|
description: "Scales body text across breakpoints.",
|
|
@@ -6931,11 +6969,22 @@ const Fi = {
|
|
|
6931
6969
|
condition: { kind: "when-provided", prop: "hangingPunctuation" },
|
|
6932
6970
|
value: { kind: "prop", prop: "hangingPunctuation" }
|
|
6933
6971
|
},
|
|
6972
|
+
{
|
|
6973
|
+
target: { on: "host" },
|
|
6974
|
+
attribute: "data-link-visited",
|
|
6975
|
+
condition: { kind: "when-equals", prop: "linkVisited", to: !1 },
|
|
6976
|
+
value: { kind: "literal", text: "off" }
|
|
6977
|
+
},
|
|
6934
6978
|
{
|
|
6935
6979
|
target: { on: "host" },
|
|
6936
6980
|
attribute: "data-measured",
|
|
6937
6981
|
condition: { kind: "when-truthy", prop: "measured" }
|
|
6938
6982
|
},
|
|
6983
|
+
{
|
|
6984
|
+
target: { on: "host" },
|
|
6985
|
+
attribute: "data-monospaced",
|
|
6986
|
+
condition: { kind: "when-truthy", prop: "monospaced" }
|
|
6987
|
+
},
|
|
6939
6988
|
{
|
|
6940
6989
|
target: { on: "host" },
|
|
6941
6990
|
attribute: "data-responsive",
|
|
@@ -6957,13 +7006,13 @@ function ze({
|
|
|
6957
7006
|
invalid: i,
|
|
6958
7007
|
radios: r,
|
|
6959
7008
|
legend: a,
|
|
6960
|
-
name:
|
|
6961
|
-
orientation:
|
|
6962
|
-
required:
|
|
7009
|
+
name: d,
|
|
7010
|
+
orientation: o = "vertical",
|
|
7011
|
+
required: l,
|
|
6963
7012
|
size: s = "md",
|
|
6964
|
-
value:
|
|
7013
|
+
value: p
|
|
6965
7014
|
}) {
|
|
6966
|
-
const c = e.trim(), u =
|
|
7015
|
+
const c = e.trim(), u = d.trim(), k = p?.trim();
|
|
6967
7016
|
if (!c)
|
|
6968
7017
|
throw new Error("id must be a non-empty string.");
|
|
6969
7018
|
if (!I(c))
|
|
@@ -6974,23 +7023,23 @@ function ze({
|
|
|
6974
7023
|
throw new Error("name must be a non-empty string.");
|
|
6975
7024
|
if (r.length < 2)
|
|
6976
7025
|
throw new Error("radios must include at least 2 options.");
|
|
6977
|
-
const
|
|
6978
|
-
const w =
|
|
7026
|
+
const b = r.map((v, y) => {
|
|
7027
|
+
const w = v.value.trim(), x = v.label.trim(), q = v.description?.trim();
|
|
6979
7028
|
if (!w)
|
|
6980
7029
|
throw new Error(`radios[${y}].value must be non-empty.`);
|
|
6981
7030
|
if (!x)
|
|
6982
7031
|
throw new Error(`radios[${y}].label must be non-empty.`);
|
|
6983
7032
|
return {
|
|
6984
7033
|
description: q,
|
|
6985
|
-
disabled: !!
|
|
7034
|
+
disabled: !!v.disabled,
|
|
6986
7035
|
label: x,
|
|
6987
7036
|
value: w
|
|
6988
7037
|
};
|
|
6989
7038
|
});
|
|
6990
|
-
if (new Set(
|
|
7039
|
+
if (new Set(b.map((v) => v.value)).size !== b.length)
|
|
6991
7040
|
throw new Error("radios values must be unique.");
|
|
6992
|
-
const f = !!n, E =
|
|
6993
|
-
const y = !!
|
|
7041
|
+
const f = !!n, E = b.map((v) => {
|
|
7042
|
+
const y = !!v.disabled, w = v.description ? `${c}-${v.value}-description` : void 0, x = [
|
|
6994
7043
|
{
|
|
6995
7044
|
kind: "element",
|
|
6996
7045
|
tag: "label",
|
|
@@ -7001,13 +7050,13 @@ function ze({
|
|
|
7001
7050
|
tag: "input",
|
|
7002
7051
|
attrs: {
|
|
7003
7052
|
"aria-describedby": w,
|
|
7004
|
-
checked:
|
|
7053
|
+
checked: k === v.value,
|
|
7005
7054
|
class: "radio",
|
|
7006
7055
|
disabled: y,
|
|
7007
7056
|
name: u,
|
|
7008
|
-
required: !!
|
|
7057
|
+
required: !!l && !f && !y,
|
|
7009
7058
|
type: "radio",
|
|
7010
|
-
value:
|
|
7059
|
+
value: v.value
|
|
7011
7060
|
},
|
|
7012
7061
|
children: []
|
|
7013
7062
|
},
|
|
@@ -7015,16 +7064,16 @@ function ze({
|
|
|
7015
7064
|
kind: "element",
|
|
7016
7065
|
tag: "span",
|
|
7017
7066
|
attrs: {},
|
|
7018
|
-
children: [{ kind: "text", value:
|
|
7067
|
+
children: [{ kind: "text", value: v.label }]
|
|
7019
7068
|
}
|
|
7020
7069
|
]
|
|
7021
7070
|
}
|
|
7022
7071
|
];
|
|
7023
|
-
return
|
|
7072
|
+
return v.description && x.push({
|
|
7024
7073
|
kind: "element",
|
|
7025
7074
|
tag: "p",
|
|
7026
7075
|
attrs: { class: "radio-description", id: w },
|
|
7027
|
-
children: [{ kind: "text", value:
|
|
7076
|
+
children: [{ kind: "text", value: v.description }]
|
|
7028
7077
|
}), {
|
|
7029
7078
|
kind: "element",
|
|
7030
7079
|
tag: "div",
|
|
@@ -7038,7 +7087,7 @@ function ze({
|
|
|
7038
7087
|
tag: "div",
|
|
7039
7088
|
attrs: {
|
|
7040
7089
|
class: "set-radios",
|
|
7041
|
-
"data-orientation":
|
|
7090
|
+
"data-orientation": o,
|
|
7042
7091
|
"data-size": s
|
|
7043
7092
|
},
|
|
7044
7093
|
children: E
|
|
@@ -7209,10 +7258,10 @@ function Ce({
|
|
|
7209
7258
|
children: i,
|
|
7210
7259
|
dir: r,
|
|
7211
7260
|
id: a,
|
|
7212
|
-
lang:
|
|
7213
|
-
theme:
|
|
7261
|
+
lang: d,
|
|
7262
|
+
theme: o
|
|
7214
7263
|
}) {
|
|
7215
|
-
const
|
|
7264
|
+
const l = g(a);
|
|
7216
7265
|
return {
|
|
7217
7266
|
kind: "element",
|
|
7218
7267
|
tag: "div",
|
|
@@ -7221,9 +7270,9 @@ function Ce({
|
|
|
7221
7270
|
"data-app-root": n,
|
|
7222
7271
|
"data-app-overscroll-behavior": t === "none" ? "none" : void 0,
|
|
7223
7272
|
"data-set-brand": e,
|
|
7224
|
-
"data-set-theme":
|
|
7225
|
-
id:
|
|
7226
|
-
lang:
|
|
7273
|
+
"data-set-theme": o,
|
|
7274
|
+
id: l,
|
|
7275
|
+
lang: d === "" ? void 0 : d,
|
|
7227
7276
|
dir: r
|
|
7228
7277
|
},
|
|
7229
7278
|
children: i ? [{ kind: "raw", html: i }] : []
|
|
@@ -7331,7 +7380,7 @@ function Le({
|
|
|
7331
7380
|
size: e = "md",
|
|
7332
7381
|
tone: i = "default"
|
|
7333
7382
|
} = {}) {
|
|
7334
|
-
const r =
|
|
7383
|
+
const r = g(t), d = [
|
|
7335
7384
|
{
|
|
7336
7385
|
kind: "element",
|
|
7337
7386
|
tag: "svg",
|
|
@@ -7350,13 +7399,13 @@ function Le({
|
|
|
7350
7399
|
[360, 660],
|
|
7351
7400
|
[360, 360],
|
|
7352
7401
|
[360, 60]
|
|
7353
|
-
].map(([
|
|
7402
|
+
].map(([o, l]) => ({
|
|
7354
7403
|
kind: "element",
|
|
7355
7404
|
tag: "rect",
|
|
7356
7405
|
attrs: {
|
|
7357
7406
|
class: "cell",
|
|
7358
|
-
x: String(
|
|
7359
|
-
y: String(
|
|
7407
|
+
x: String(o),
|
|
7408
|
+
y: String(l),
|
|
7360
7409
|
width: "180",
|
|
7361
7410
|
height: "180"
|
|
7362
7411
|
},
|
|
@@ -7364,7 +7413,7 @@ function Le({
|
|
|
7364
7413
|
}))
|
|
7365
7414
|
}
|
|
7366
7415
|
];
|
|
7367
|
-
return n &&
|
|
7416
|
+
return n && d.push({
|
|
7368
7417
|
kind: "element",
|
|
7369
7418
|
tag: "span",
|
|
7370
7419
|
attrs: { class: "visually-hidden" },
|
|
@@ -7379,7 +7428,7 @@ function Le({
|
|
|
7379
7428
|
id: r,
|
|
7380
7429
|
role: n ? "status" : void 0
|
|
7381
7430
|
},
|
|
7382
|
-
children:
|
|
7431
|
+
children: d
|
|
7383
7432
|
};
|
|
7384
7433
|
}
|
|
7385
7434
|
function Yi(t = {}) {
|
|
@@ -7451,7 +7500,7 @@ function Me({
|
|
|
7451
7500
|
id: r,
|
|
7452
7501
|
responsive: a
|
|
7453
7502
|
}) {
|
|
7454
|
-
const
|
|
7503
|
+
const d = g(r);
|
|
7455
7504
|
return {
|
|
7456
7505
|
kind: "element",
|
|
7457
7506
|
tag: n,
|
|
@@ -7460,7 +7509,7 @@ function Me({
|
|
|
7460
7509
|
"data-align": t === "stretch" ? void 0 : t,
|
|
7461
7510
|
"data-gap": i,
|
|
7462
7511
|
"data-responsive": a,
|
|
7463
|
-
id:
|
|
7512
|
+
id: d
|
|
7464
7513
|
},
|
|
7465
7514
|
children: e ? [{ kind: "raw", html: e }] : []
|
|
7466
7515
|
};
|
|
@@ -7545,7 +7594,7 @@ function qe({
|
|
|
7545
7594
|
id: e,
|
|
7546
7595
|
variant: i = "default"
|
|
7547
7596
|
}) {
|
|
7548
|
-
const r =
|
|
7597
|
+
const r = g(e);
|
|
7549
7598
|
return {
|
|
7550
7599
|
kind: "element",
|
|
7551
7600
|
tag: "div",
|
|
@@ -7620,13 +7669,13 @@ function Ie({
|
|
|
7620
7669
|
id: i,
|
|
7621
7670
|
label: r,
|
|
7622
7671
|
name: a,
|
|
7623
|
-
size:
|
|
7624
|
-
value:
|
|
7672
|
+
size: d = "md",
|
|
7673
|
+
value: o
|
|
7625
7674
|
}) {
|
|
7626
|
-
const
|
|
7627
|
-
if (s && !
|
|
7675
|
+
const l = g(i), s = n?.trim();
|
|
7676
|
+
if (s && !l)
|
|
7628
7677
|
throw new Error("id must be provided when description is provided.");
|
|
7629
|
-
const
|
|
7678
|
+
const p = s ? `${l}-description` : void 0, c = [
|
|
7630
7679
|
{
|
|
7631
7680
|
kind: "element",
|
|
7632
7681
|
tag: "label",
|
|
@@ -7636,15 +7685,15 @@ function Ie({
|
|
|
7636
7685
|
kind: "element",
|
|
7637
7686
|
tag: "input",
|
|
7638
7687
|
attrs: {
|
|
7639
|
-
"aria-describedby":
|
|
7688
|
+
"aria-describedby": p,
|
|
7640
7689
|
checked: !!t,
|
|
7641
7690
|
class: "switch",
|
|
7642
7691
|
disabled: !!e,
|
|
7643
|
-
id:
|
|
7692
|
+
id: l,
|
|
7644
7693
|
name: a || void 0,
|
|
7645
7694
|
role: "switch",
|
|
7646
7695
|
type: "checkbox",
|
|
7647
|
-
value:
|
|
7696
|
+
value: o || void 0
|
|
7648
7697
|
},
|
|
7649
7698
|
children: []
|
|
7650
7699
|
},
|
|
@@ -7660,12 +7709,12 @@ function Ie({
|
|
|
7660
7709
|
return s && c.push({
|
|
7661
7710
|
kind: "element",
|
|
7662
7711
|
tag: "p",
|
|
7663
|
-
attrs: { class: "description", id:
|
|
7712
|
+
attrs: { class: "description", id: p },
|
|
7664
7713
|
children: [{ kind: "text", value: s }]
|
|
7665
7714
|
}), {
|
|
7666
7715
|
kind: "element",
|
|
7667
7716
|
tag: "div",
|
|
7668
|
-
attrs: { class: "set-switch", "data-size":
|
|
7717
|
+
attrs: { class: "set-switch", "data-size": d },
|
|
7669
7718
|
children: c
|
|
7670
7719
|
};
|
|
7671
7720
|
}
|
|
@@ -7787,26 +7836,26 @@ function Te({
|
|
|
7787
7836
|
id: i,
|
|
7788
7837
|
invalid: r,
|
|
7789
7838
|
label: a,
|
|
7790
|
-
name:
|
|
7791
|
-
readOnly:
|
|
7792
|
-
required:
|
|
7839
|
+
name: d,
|
|
7840
|
+
readOnly: o,
|
|
7841
|
+
required: l,
|
|
7793
7842
|
resize: s = "vertical",
|
|
7794
|
-
rows:
|
|
7843
|
+
rows: p = 2,
|
|
7795
7844
|
size: c = "md",
|
|
7796
7845
|
spellcheck: u,
|
|
7797
|
-
value:
|
|
7798
|
-
inlineSize:
|
|
7846
|
+
value: k,
|
|
7847
|
+
inlineSize: b = "full"
|
|
7799
7848
|
}) {
|
|
7800
|
-
const m = i.trim(), f = n?.trim(), E = t === !1 ? !1 : t?.trim(), S =
|
|
7849
|
+
const m = i.trim(), f = n?.trim(), E = t === !1 ? !1 : t?.trim(), S = d?.trim(), v = k;
|
|
7801
7850
|
if (!m)
|
|
7802
7851
|
throw new Error("id must be a non-empty string.");
|
|
7803
7852
|
if (!I(m))
|
|
7804
7853
|
throw new Error(
|
|
7805
7854
|
"id must start with a letter and contain only letters, numbers, '_', '-', or ':'."
|
|
7806
7855
|
);
|
|
7807
|
-
if (!Number.isInteger(
|
|
7856
|
+
if (!Number.isInteger(p) || p < 2)
|
|
7808
7857
|
throw new Error("rows must be an integer greater than or equal to 2.");
|
|
7809
|
-
const y = f ? `${m}-description` : void 0, w = !!e, x = !w && !!
|
|
7858
|
+
const y = f ? `${m}-description` : void 0, w = !!e, x = !w && !!o, z = [
|
|
7810
7859
|
{
|
|
7811
7860
|
kind: "element",
|
|
7812
7861
|
tag: "label",
|
|
@@ -7825,11 +7874,11 @@ function Te({
|
|
|
7825
7874
|
id: m,
|
|
7826
7875
|
name: S || void 0,
|
|
7827
7876
|
readonly: x,
|
|
7828
|
-
required: !!
|
|
7829
|
-
rows: String(
|
|
7877
|
+
required: !!l,
|
|
7878
|
+
rows: String(p),
|
|
7830
7879
|
spellcheck: u === void 0 ? void 0 : String(u)
|
|
7831
7880
|
},
|
|
7832
|
-
children: [{ kind: "text", value:
|
|
7881
|
+
children: [{ kind: "text", value: v || "" }]
|
|
7833
7882
|
}
|
|
7834
7883
|
];
|
|
7835
7884
|
return f && z.push({
|
|
@@ -7844,7 +7893,7 @@ function Te({
|
|
|
7844
7893
|
class: "set-textarea",
|
|
7845
7894
|
"data-resize": s === "none" ? "none" : void 0,
|
|
7846
7895
|
"data-size": c,
|
|
7847
|
-
"data-inline-size":
|
|
7896
|
+
"data-inline-size": b === "fit" ? "fit" : void 0
|
|
7848
7897
|
},
|
|
7849
7898
|
children: z
|
|
7850
7899
|
};
|