@monospaced/set-core 0.12.0 → 0.13.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/image/image.d.ts +15 -1
- package/dist/components/image/image.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 +1060 -895
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const Nt = /* @__PURE__ */ new Set([
|
|
2
2
|
"area",
|
|
3
3
|
"base",
|
|
4
4
|
"br",
|
|
@@ -13,38 +13,38 @@ const wt = /* @__PURE__ */ new Set([
|
|
|
13
13
|
"track",
|
|
14
14
|
"wbr"
|
|
15
15
|
]);
|
|
16
|
-
function
|
|
16
|
+
function ft(t) {
|
|
17
17
|
return t.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll('"', """).replaceAll("'", "'");
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
return Object.entries(t).flatMap(([n, e]) => e === !1 || e == null ? [] : e === !0 ? [n] : [`${n}="${
|
|
19
|
+
function Bt(t) {
|
|
20
|
+
return Object.entries(t).flatMap(([n, e]) => e === !1 || e == null ? [] : e === !0 ? [n] : [`${n}="${ft(String(e))}"`]).join(" ");
|
|
21
21
|
}
|
|
22
|
-
function
|
|
23
|
-
if (t.kind === "text") return
|
|
22
|
+
function m(t) {
|
|
23
|
+
if (t.kind === "text") return ft(t.value);
|
|
24
24
|
if (t.kind === "raw") return t.html;
|
|
25
|
-
const n =
|
|
26
|
-
if (
|
|
27
|
-
const i = t.children.map(
|
|
25
|
+
const n = Bt(t.attrs), e = n ? `<${t.tag} ${n}>` : `<${t.tag}>`;
|
|
26
|
+
if (Nt.has(t.tag)) return e;
|
|
27
|
+
const i = t.children.map(m).join("");
|
|
28
28
|
return `${e}${i}</${t.tag}>`;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function V(t) {
|
|
31
31
|
return /^[A-Za-z][\w:-]*$/.test(t);
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function v(t) {
|
|
34
34
|
if (t === void 0) return;
|
|
35
35
|
const n = t.trim();
|
|
36
36
|
if (n) {
|
|
37
|
-
if (!
|
|
37
|
+
if (!V(n))
|
|
38
38
|
throw new Error(
|
|
39
39
|
"id must start with a letter and contain only letters, numbers, '_', '-', or ':'."
|
|
40
40
|
);
|
|
41
41
|
return n;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function O(t) {
|
|
45
45
|
return t == null ? void 0 : t.trim().replace(/\s+/g, " ") || void 0;
|
|
46
46
|
}
|
|
47
|
-
const
|
|
47
|
+
const yt = {
|
|
48
48
|
adjustment: [
|
|
49
49
|
{
|
|
50
50
|
tag: "g",
|
|
@@ -775,16 +775,16 @@ const st = {
|
|
|
775
775
|
]
|
|
776
776
|
}
|
|
777
777
|
]
|
|
778
|
-
},
|
|
779
|
-
function
|
|
778
|
+
}, oi = Object.keys(yt);
|
|
779
|
+
function wt(t) {
|
|
780
780
|
return t.map((n) => ({
|
|
781
781
|
kind: "element",
|
|
782
782
|
tag: n.tag,
|
|
783
783
|
attrs: n.attrs,
|
|
784
|
-
children: n.children ?
|
|
784
|
+
children: n.children ? wt(n.children) : []
|
|
785
785
|
}));
|
|
786
786
|
}
|
|
787
|
-
function
|
|
787
|
+
function P({
|
|
788
788
|
ariaHidden: t = !0,
|
|
789
789
|
id: n,
|
|
790
790
|
mirrored: e,
|
|
@@ -792,26 +792,26 @@ function O({
|
|
|
792
792
|
size: r = "md",
|
|
793
793
|
title: a
|
|
794
794
|
}) {
|
|
795
|
-
const o =
|
|
795
|
+
const o = yt[i];
|
|
796
796
|
if (!o)
|
|
797
797
|
throw new Error(`Unknown icon name: ${i}`);
|
|
798
|
-
const d =
|
|
798
|
+
const d = v(n), s = a?.trim();
|
|
799
799
|
if (!t && !s)
|
|
800
800
|
throw new Error("title must be non-empty when ariaHidden is false.");
|
|
801
801
|
if (!t && !d)
|
|
802
802
|
throw new Error("id must be provided when ariaHidden is false.");
|
|
803
|
-
const
|
|
804
|
-
return t ||
|
|
803
|
+
const p = t ? void 0 : `${d}-title`, l = [];
|
|
804
|
+
return t || l.push({
|
|
805
805
|
kind: "element",
|
|
806
806
|
tag: "title",
|
|
807
|
-
attrs: { id:
|
|
807
|
+
attrs: { id: p },
|
|
808
808
|
children: [{ kind: "text", value: s }]
|
|
809
|
-
}),
|
|
809
|
+
}), l.push(...wt(o)), {
|
|
810
810
|
kind: "element",
|
|
811
811
|
tag: "svg",
|
|
812
812
|
attrs: {
|
|
813
813
|
"aria-hidden": t ? "true" : void 0,
|
|
814
|
-
"aria-labelledby":
|
|
814
|
+
"aria-labelledby": p,
|
|
815
815
|
class: "set-icon",
|
|
816
816
|
"data-mirrored": e,
|
|
817
817
|
"data-size": r,
|
|
@@ -824,13 +824,13 @@ function O({
|
|
|
824
824
|
viewBox: "0 0 24 24",
|
|
825
825
|
xmlns: "http://www.w3.org/2000/svg"
|
|
826
826
|
},
|
|
827
|
-
children:
|
|
827
|
+
children: l
|
|
828
828
|
};
|
|
829
829
|
}
|
|
830
|
-
function
|
|
831
|
-
return
|
|
830
|
+
function Ot(t) {
|
|
831
|
+
return m(P(t));
|
|
832
832
|
}
|
|
833
|
-
const
|
|
833
|
+
const di = {
|
|
834
834
|
name: "icon",
|
|
835
835
|
description: "Use `icon` to render a Set icon.",
|
|
836
836
|
output: { element: "svg", class: "set-icon" },
|
|
@@ -944,7 +944,7 @@ const Ge = {
|
|
|
944
944
|
]
|
|
945
945
|
}
|
|
946
946
|
};
|
|
947
|
-
function
|
|
947
|
+
function ut(t) {
|
|
948
948
|
const {
|
|
949
949
|
appearance: n = "outline",
|
|
950
950
|
controls: e,
|
|
@@ -954,34 +954,34 @@ function it(t) {
|
|
|
954
954
|
haspopup: o,
|
|
955
955
|
id: d,
|
|
956
956
|
icon: s,
|
|
957
|
-
iconMirrored:
|
|
958
|
-
iconPlacement:
|
|
957
|
+
iconMirrored: p,
|
|
958
|
+
iconPlacement: l = "start",
|
|
959
959
|
label: c,
|
|
960
|
-
labelVisibility:
|
|
961
|
-
name:
|
|
962
|
-
size:
|
|
963
|
-
tone:
|
|
964
|
-
type:
|
|
965
|
-
value:
|
|
966
|
-
} = t,
|
|
967
|
-
if (
|
|
960
|
+
labelVisibility: h = "visible",
|
|
961
|
+
name: b,
|
|
962
|
+
size: S = "md",
|
|
963
|
+
tone: f = "default",
|
|
964
|
+
type: E,
|
|
965
|
+
value: q
|
|
966
|
+
} = t, w = s || void 0, k = !!w;
|
|
967
|
+
if (h !== "visible" && !k)
|
|
968
968
|
throw new Error("labelVisibility requires icon when label is not visible.");
|
|
969
|
-
const
|
|
969
|
+
const L = k && w ? {
|
|
970
970
|
kind: "element",
|
|
971
971
|
tag: "span",
|
|
972
972
|
attrs: { class: "icon-wrapper" },
|
|
973
973
|
children: [
|
|
974
974
|
{
|
|
975
975
|
kind: "raw",
|
|
976
|
-
html:
|
|
976
|
+
html: Ot({
|
|
977
977
|
ariaHidden: !0,
|
|
978
|
-
mirrored:
|
|
979
|
-
name:
|
|
978
|
+
mirrored: p,
|
|
979
|
+
name: w,
|
|
980
980
|
size: "fill"
|
|
981
981
|
})
|
|
982
982
|
}
|
|
983
983
|
]
|
|
984
|
-
} : null,
|
|
984
|
+
} : null, x = {
|
|
985
985
|
kind: "element",
|
|
986
986
|
tag: "span",
|
|
987
987
|
attrs: { class: "label" },
|
|
@@ -996,23 +996,23 @@ function it(t) {
|
|
|
996
996
|
"aria-haspopup": o || void 0,
|
|
997
997
|
class: "set-button",
|
|
998
998
|
"data-appearance": n,
|
|
999
|
-
"data-label-visibility":
|
|
1000
|
-
"data-size":
|
|
1001
|
-
"data-tone":
|
|
999
|
+
"data-label-visibility": h === "visible" ? void 0 : h,
|
|
1000
|
+
"data-size": S,
|
|
1001
|
+
"data-tone": f === "neutral" ? "neutral" : void 0,
|
|
1002
1002
|
disabled: !!i,
|
|
1003
1003
|
form: a || void 0,
|
|
1004
1004
|
id: d || void 0,
|
|
1005
|
-
name:
|
|
1006
|
-
type:
|
|
1007
|
-
value:
|
|
1005
|
+
name: b || void 0,
|
|
1006
|
+
type: E || "button",
|
|
1007
|
+
value: q || void 0
|
|
1008
1008
|
},
|
|
1009
|
-
children:
|
|
1009
|
+
children: L ? l === "end" ? [x, L] : [L, x] : [x]
|
|
1010
1010
|
};
|
|
1011
1011
|
}
|
|
1012
|
-
function
|
|
1013
|
-
return
|
|
1012
|
+
function ht(t) {
|
|
1013
|
+
return m(ut(t));
|
|
1014
1014
|
}
|
|
1015
|
-
const
|
|
1015
|
+
const si = {
|
|
1016
1016
|
name: "button",
|
|
1017
1017
|
description: "Use `button` to let users trigger actions.",
|
|
1018
1018
|
output: { element: "button", class: "set-button" },
|
|
@@ -1195,10 +1195,10 @@ const Ze = {
|
|
|
1195
1195
|
}
|
|
1196
1196
|
]
|
|
1197
1197
|
}
|
|
1198
|
-
},
|
|
1199
|
-
function
|
|
1198
|
+
}, Z = "set-alert", St = "set-alert-before-dismiss", xt = "set-alert-dismiss", W = "Dismiss alert";
|
|
1199
|
+
function Pt(t, n) {
|
|
1200
1200
|
const e = n.createElement("div");
|
|
1201
|
-
return e.setAttribute("data-part", "close"), e.innerHTML =
|
|
1201
|
+
return e.setAttribute("data-part", "close"), e.innerHTML = ht({
|
|
1202
1202
|
appearance: "text",
|
|
1203
1203
|
icon: "close",
|
|
1204
1204
|
label: t,
|
|
@@ -1207,7 +1207,7 @@ function Et(t, n) {
|
|
|
1207
1207
|
tone: "neutral"
|
|
1208
1208
|
}), e;
|
|
1209
1209
|
}
|
|
1210
|
-
function
|
|
1210
|
+
function Rt(t) {
|
|
1211
1211
|
switch (t) {
|
|
1212
1212
|
case "success":
|
|
1213
1213
|
return "check-circle";
|
|
@@ -1221,12 +1221,12 @@ function zt(t) {
|
|
|
1221
1221
|
return "sticky-note";
|
|
1222
1222
|
}
|
|
1223
1223
|
}
|
|
1224
|
-
function
|
|
1224
|
+
function Wt(t) {
|
|
1225
1225
|
return t === "warning" || t === "error" ? "alert" : "status";
|
|
1226
1226
|
}
|
|
1227
|
-
function
|
|
1227
|
+
function Ut({
|
|
1228
1228
|
dismissible: t,
|
|
1229
|
-
dismissibleLabel: n =
|
|
1229
|
+
dismissibleLabel: n = W,
|
|
1230
1230
|
id: e,
|
|
1231
1231
|
inlineSize: i = "full",
|
|
1232
1232
|
message: r,
|
|
@@ -1234,29 +1234,29 @@ function Lt({
|
|
|
1234
1234
|
tone: o,
|
|
1235
1235
|
title: d
|
|
1236
1236
|
}) {
|
|
1237
|
-
const s =
|
|
1238
|
-
return d &&
|
|
1237
|
+
const s = v(e), p = n.trim() === "" ? W : n, l = [];
|
|
1238
|
+
return d && l.push({
|
|
1239
1239
|
kind: "element",
|
|
1240
1240
|
tag: "p",
|
|
1241
1241
|
attrs: { class: "title" },
|
|
1242
1242
|
children: [{ kind: "text", value: d }]
|
|
1243
|
-
}),
|
|
1243
|
+
}), l.push({
|
|
1244
1244
|
kind: "element",
|
|
1245
1245
|
tag: "p",
|
|
1246
1246
|
attrs: { class: "message" },
|
|
1247
1247
|
children: [{ kind: "text", value: r }]
|
|
1248
1248
|
}), {
|
|
1249
1249
|
kind: "element",
|
|
1250
|
-
tag:
|
|
1250
|
+
tag: Z,
|
|
1251
1251
|
attrs: {
|
|
1252
1252
|
class: "set-alert",
|
|
1253
1253
|
"data-dismissible": t,
|
|
1254
|
-
"data-dismissible-label": t ?
|
|
1254
|
+
"data-dismissible-label": t ? p : void 0,
|
|
1255
1255
|
"data-inline-size": i === "fit" ? "fit" : void 0,
|
|
1256
1256
|
"data-size": a,
|
|
1257
1257
|
"data-tone": o || void 0,
|
|
1258
1258
|
id: s,
|
|
1259
|
-
role:
|
|
1259
|
+
role: Wt(o)
|
|
1260
1260
|
},
|
|
1261
1261
|
children: [
|
|
1262
1262
|
{
|
|
@@ -1264,9 +1264,9 @@ function Lt({
|
|
|
1264
1264
|
tag: "div",
|
|
1265
1265
|
attrs: { class: "icon-wrapper" },
|
|
1266
1266
|
children: [
|
|
1267
|
-
|
|
1267
|
+
P({
|
|
1268
1268
|
ariaHidden: !0,
|
|
1269
|
-
name:
|
|
1269
|
+
name: Rt(o),
|
|
1270
1270
|
size: a
|
|
1271
1271
|
})
|
|
1272
1272
|
]
|
|
@@ -1275,29 +1275,29 @@ function Lt({
|
|
|
1275
1275
|
kind: "element",
|
|
1276
1276
|
tag: "div",
|
|
1277
1277
|
attrs: { class: "content" },
|
|
1278
|
-
children:
|
|
1278
|
+
children: l
|
|
1279
1279
|
}
|
|
1280
1280
|
]
|
|
1281
1281
|
};
|
|
1282
1282
|
}
|
|
1283
|
-
function
|
|
1284
|
-
return
|
|
1283
|
+
function li(t) {
|
|
1284
|
+
return m(Ut(t));
|
|
1285
1285
|
}
|
|
1286
|
-
function
|
|
1287
|
-
if (customElements.get(
|
|
1286
|
+
function $t() {
|
|
1287
|
+
if (customElements.get(Z)) return;
|
|
1288
1288
|
class t extends HTMLElement {
|
|
1289
1289
|
#t = (e) => {
|
|
1290
1290
|
const i = e.target;
|
|
1291
1291
|
if (!(i instanceof Element) || !i.closest('[data-part="close"]')) return;
|
|
1292
1292
|
const r = new CustomEvent(
|
|
1293
|
-
|
|
1293
|
+
St,
|
|
1294
1294
|
{
|
|
1295
1295
|
bubbles: !0,
|
|
1296
1296
|
cancelable: !0
|
|
1297
1297
|
}
|
|
1298
1298
|
);
|
|
1299
1299
|
this.dispatchEvent(r) && (this.dispatchEvent(
|
|
1300
|
-
new CustomEvent(
|
|
1300
|
+
new CustomEvent(xt, {
|
|
1301
1301
|
bubbles: !0
|
|
1302
1302
|
})
|
|
1303
1303
|
), this.remove());
|
|
@@ -1310,20 +1310,20 @@ function Mt() {
|
|
|
1310
1310
|
}
|
|
1311
1311
|
#e() {
|
|
1312
1312
|
this.querySelector('[data-part="close"]') || this.append(
|
|
1313
|
-
|
|
1314
|
-
this.getAttribute("data-dismissible-label") ??
|
|
1313
|
+
Pt(
|
|
1314
|
+
this.getAttribute("data-dismissible-label") ?? W,
|
|
1315
1315
|
this.ownerDocument
|
|
1316
1316
|
)
|
|
1317
1317
|
);
|
|
1318
1318
|
}
|
|
1319
1319
|
}
|
|
1320
|
-
customElements.define(
|
|
1320
|
+
customElements.define(Z, t);
|
|
1321
1321
|
}
|
|
1322
|
-
const
|
|
1322
|
+
const pi = {
|
|
1323
1323
|
name: "alert",
|
|
1324
1324
|
description: "Use `alert` to surface short, important messages.",
|
|
1325
1325
|
output: {
|
|
1326
|
-
element:
|
|
1326
|
+
element: Z,
|
|
1327
1327
|
class: "set-alert"
|
|
1328
1328
|
},
|
|
1329
1329
|
content: {
|
|
@@ -1340,7 +1340,7 @@ const je = {
|
|
|
1340
1340
|
type: { kind: "boolean" }
|
|
1341
1341
|
},
|
|
1342
1342
|
dismissibleLabel: {
|
|
1343
|
-
default:
|
|
1343
|
+
default: W,
|
|
1344
1344
|
description: "Accessible label for the dismiss control.",
|
|
1345
1345
|
ignoredWhen: "`dismissible` is false",
|
|
1346
1346
|
type: { kind: "string" }
|
|
@@ -1374,12 +1374,12 @@ const je = {
|
|
|
1374
1374
|
}
|
|
1375
1375
|
},
|
|
1376
1376
|
events: {
|
|
1377
|
-
[
|
|
1377
|
+
[St]: {
|
|
1378
1378
|
bubbles: !0,
|
|
1379
1379
|
cancelable: !0,
|
|
1380
1380
|
description: "Fired before the alert is removed by a dismiss action. Call `preventDefault()` to keep the alert mounted."
|
|
1381
1381
|
},
|
|
1382
|
-
[
|
|
1382
|
+
[xt]: {
|
|
1383
1383
|
bubbles: !0,
|
|
1384
1384
|
description: "Fired after the alert has been removed by an allowed dismiss action."
|
|
1385
1385
|
}
|
|
@@ -1445,7 +1445,7 @@ const je = {
|
|
|
1445
1445
|
}
|
|
1446
1446
|
]
|
|
1447
1447
|
},
|
|
1448
|
-
value: { kind: "literal", text:
|
|
1448
|
+
value: { kind: "literal", text: W }
|
|
1449
1449
|
},
|
|
1450
1450
|
{
|
|
1451
1451
|
target: { on: "host" },
|
|
@@ -1468,11 +1468,11 @@ const je = {
|
|
|
1468
1468
|
]
|
|
1469
1469
|
}
|
|
1470
1470
|
};
|
|
1471
|
-
function
|
|
1471
|
+
function Gt(t) {
|
|
1472
1472
|
if (t)
|
|
1473
1473
|
return t === !0 ? !0 : t;
|
|
1474
1474
|
}
|
|
1475
|
-
function
|
|
1475
|
+
function Et(t) {
|
|
1476
1476
|
const {
|
|
1477
1477
|
appearance: n = "text",
|
|
1478
1478
|
current: e,
|
|
@@ -1482,21 +1482,21 @@ function ut(t) {
|
|
|
1482
1482
|
icon: o,
|
|
1483
1483
|
iconPlacement: d = "start",
|
|
1484
1484
|
label: s,
|
|
1485
|
-
labelVisibility:
|
|
1486
|
-
rel:
|
|
1485
|
+
labelVisibility: p = "visible",
|
|
1486
|
+
rel: l,
|
|
1487
1487
|
size: c = "md",
|
|
1488
|
-
target:
|
|
1489
|
-
tone:
|
|
1490
|
-
underline:
|
|
1491
|
-
} = t,
|
|
1492
|
-
if (
|
|
1488
|
+
target: h,
|
|
1489
|
+
tone: b = "default",
|
|
1490
|
+
underline: S
|
|
1491
|
+
} = t, f = v(a), E = o?.trim() || void 0;
|
|
1492
|
+
if (p !== "visible" && !!!E)
|
|
1493
1493
|
throw new Error("labelVisibility requires icon when label is not visible.");
|
|
1494
|
-
const
|
|
1494
|
+
const w = Gt(i), k = E ? {
|
|
1495
1495
|
kind: "element",
|
|
1496
1496
|
tag: "span",
|
|
1497
1497
|
attrs: { class: "icon-wrapper" },
|
|
1498
|
-
children: [{ kind: "raw", html:
|
|
1499
|
-
} : null,
|
|
1498
|
+
children: [{ kind: "raw", html: E }]
|
|
1499
|
+
} : null, L = {
|
|
1500
1500
|
kind: "element",
|
|
1501
1501
|
tag: "span",
|
|
1502
1502
|
attrs: { class: "label" },
|
|
@@ -1509,23 +1509,23 @@ function ut(t) {
|
|
|
1509
1509
|
"aria-current": e,
|
|
1510
1510
|
class: "set-link",
|
|
1511
1511
|
"data-appearance": n === "text" ? void 0 : n,
|
|
1512
|
-
"data-label-visibility":
|
|
1512
|
+
"data-label-visibility": p === "visible" ? void 0 : p,
|
|
1513
1513
|
"data-size": c,
|
|
1514
|
-
"data-tone":
|
|
1515
|
-
"data-underline":
|
|
1516
|
-
download:
|
|
1514
|
+
"data-tone": b === "neutral" ? "neutral" : void 0,
|
|
1515
|
+
"data-underline": S && n === "text" ? !0 : void 0,
|
|
1516
|
+
download: w,
|
|
1517
1517
|
href: r,
|
|
1518
|
-
id:
|
|
1519
|
-
rel:
|
|
1520
|
-
target:
|
|
1518
|
+
id: f,
|
|
1519
|
+
rel: w ? void 0 : l || void 0,
|
|
1520
|
+
target: w ? void 0 : h || void 0
|
|
1521
1521
|
},
|
|
1522
|
-
children:
|
|
1522
|
+
children: k ? d === "end" ? [L, k] : [k, L] : [L]
|
|
1523
1523
|
};
|
|
1524
1524
|
}
|
|
1525
|
-
function
|
|
1526
|
-
return
|
|
1525
|
+
function ci(t) {
|
|
1526
|
+
return m(Et(t));
|
|
1527
1527
|
}
|
|
1528
|
-
const
|
|
1528
|
+
const ui = {
|
|
1529
1529
|
name: "link",
|
|
1530
1530
|
description: "Use `link` to navigate to another page or resource.",
|
|
1531
1531
|
output: { element: "a", class: "set-link" },
|
|
@@ -1712,10 +1712,10 @@ const Xe = {
|
|
|
1712
1712
|
}
|
|
1713
1713
|
]
|
|
1714
1714
|
}
|
|
1715
|
-
},
|
|
1716
|
-
function
|
|
1715
|
+
}, F = "set-banner", zt = "set-banner-before-dismiss", Ct = "set-banner-dismiss", j = "Dismiss banner";
|
|
1716
|
+
function Zt(t, n) {
|
|
1717
1717
|
const e = n.createElement("div");
|
|
1718
|
-
return e.setAttribute("data-part", "close"), e.innerHTML =
|
|
1718
|
+
return e.setAttribute("data-part", "close"), e.innerHTML = ht({
|
|
1719
1719
|
appearance: "text",
|
|
1720
1720
|
icon: "close",
|
|
1721
1721
|
label: t,
|
|
@@ -1724,27 +1724,27 @@ function It(t, n) {
|
|
|
1724
1724
|
tone: "neutral"
|
|
1725
1725
|
}), e;
|
|
1726
1726
|
}
|
|
1727
|
-
function
|
|
1727
|
+
function Ft({
|
|
1728
1728
|
actionHref: t,
|
|
1729
1729
|
actionLabel: n,
|
|
1730
1730
|
dismissible: e = !0,
|
|
1731
|
-
dismissibleLabel: i =
|
|
1731
|
+
dismissibleLabel: i = j,
|
|
1732
1732
|
id: r,
|
|
1733
1733
|
message: a,
|
|
1734
1734
|
tone: o
|
|
1735
1735
|
}) {
|
|
1736
1736
|
if (!!t != !!n)
|
|
1737
1737
|
throw new Error("actionHref and actionLabel must be provided together.");
|
|
1738
|
-
const d =
|
|
1739
|
-
return t && n && (
|
|
1740
|
-
|
|
1738
|
+
const d = v(r), s = i.trim() === "" ? j : i, p = [{ kind: "text", value: a }];
|
|
1739
|
+
return t && n && (p.push({ kind: "text", value: " " }), p.push(
|
|
1740
|
+
Et({
|
|
1741
1741
|
href: t,
|
|
1742
1742
|
label: n,
|
|
1743
1743
|
underline: !0
|
|
1744
1744
|
})
|
|
1745
1745
|
)), {
|
|
1746
1746
|
kind: "element",
|
|
1747
|
-
tag:
|
|
1747
|
+
tag: F,
|
|
1748
1748
|
attrs: {
|
|
1749
1749
|
class: "set-banner",
|
|
1750
1750
|
"data-set-content-theme": "dark",
|
|
@@ -1759,29 +1759,29 @@ function Tt({
|
|
|
1759
1759
|
kind: "element",
|
|
1760
1760
|
tag: "p",
|
|
1761
1761
|
attrs: { class: "message" },
|
|
1762
|
-
children:
|
|
1762
|
+
children: p
|
|
1763
1763
|
}
|
|
1764
1764
|
]
|
|
1765
1765
|
};
|
|
1766
1766
|
}
|
|
1767
|
-
function
|
|
1768
|
-
return
|
|
1767
|
+
function hi(t) {
|
|
1768
|
+
return m(Ft(t));
|
|
1769
1769
|
}
|
|
1770
|
-
function
|
|
1771
|
-
if (customElements.get(
|
|
1770
|
+
function jt() {
|
|
1771
|
+
if (customElements.get(F)) return;
|
|
1772
1772
|
class t extends HTMLElement {
|
|
1773
1773
|
#t = (e) => {
|
|
1774
1774
|
const i = e.target;
|
|
1775
1775
|
if (!(i instanceof Element) || !i.closest('[data-part="close"]')) return;
|
|
1776
1776
|
const r = new CustomEvent(
|
|
1777
|
-
|
|
1777
|
+
zt,
|
|
1778
1778
|
{
|
|
1779
1779
|
bubbles: !0,
|
|
1780
1780
|
cancelable: !0
|
|
1781
1781
|
}
|
|
1782
1782
|
);
|
|
1783
1783
|
this.dispatchEvent(r) && (this.dispatchEvent(
|
|
1784
|
-
new CustomEvent(
|
|
1784
|
+
new CustomEvent(Ct, {
|
|
1785
1785
|
bubbles: !0
|
|
1786
1786
|
})
|
|
1787
1787
|
), this.remove());
|
|
@@ -1794,19 +1794,19 @@ function At() {
|
|
|
1794
1794
|
}
|
|
1795
1795
|
#e() {
|
|
1796
1796
|
this.querySelector('[data-part="close"]') || this.append(
|
|
1797
|
-
|
|
1798
|
-
this.getAttribute("data-dismissible-label") ??
|
|
1797
|
+
Zt(
|
|
1798
|
+
this.getAttribute("data-dismissible-label") ?? j,
|
|
1799
1799
|
this.ownerDocument
|
|
1800
1800
|
)
|
|
1801
1801
|
);
|
|
1802
1802
|
}
|
|
1803
1803
|
}
|
|
1804
|
-
customElements.define(
|
|
1804
|
+
customElements.define(F, t);
|
|
1805
1805
|
}
|
|
1806
|
-
const
|
|
1806
|
+
const mi = {
|
|
1807
1807
|
name: "banner",
|
|
1808
1808
|
description: "Use `banner` to display a prominent site-wide message.",
|
|
1809
|
-
output: { element:
|
|
1809
|
+
output: { element: F, class: "set-banner" },
|
|
1810
1810
|
content: { kind: "text", prop: "message" },
|
|
1811
1811
|
props: {
|
|
1812
1812
|
actionHref: {
|
|
@@ -1825,7 +1825,7 @@ const Ye = {
|
|
|
1825
1825
|
type: { kind: "boolean" }
|
|
1826
1826
|
},
|
|
1827
1827
|
dismissibleLabel: {
|
|
1828
|
-
default:
|
|
1828
|
+
default: j,
|
|
1829
1829
|
description: "Accessible label for the dismiss control.",
|
|
1830
1830
|
ignoredWhen: "`dismissible` is false",
|
|
1831
1831
|
type: { kind: "string" }
|
|
@@ -1848,12 +1848,12 @@ const Ye = {
|
|
|
1848
1848
|
}
|
|
1849
1849
|
},
|
|
1850
1850
|
events: {
|
|
1851
|
-
[
|
|
1851
|
+
[zt]: {
|
|
1852
1852
|
bubbles: !0,
|
|
1853
1853
|
cancelable: !0,
|
|
1854
1854
|
description: "Fired before the banner is removed by a dismiss action. Call `preventDefault()` to keep the banner mounted."
|
|
1855
1855
|
},
|
|
1856
|
-
[
|
|
1856
|
+
[Ct]: {
|
|
1857
1857
|
bubbles: !0,
|
|
1858
1858
|
description: "Fired after the banner has been removed by an allowed dismiss action."
|
|
1859
1859
|
}
|
|
@@ -1891,14 +1891,14 @@ const Ye = {
|
|
|
1891
1891
|
}
|
|
1892
1892
|
]
|
|
1893
1893
|
}
|
|
1894
|
-
},
|
|
1895
|
-
function
|
|
1894
|
+
}, K = "set-lightswitch", Lt = "set-lightswitch-change", dt = "set-theme", st = "Switch to dark theme", lt = "Switch to light theme";
|
|
1895
|
+
function Kt(t) {
|
|
1896
1896
|
return t === "dark" ? "light" : "dark";
|
|
1897
1897
|
}
|
|
1898
|
-
function
|
|
1898
|
+
function Xt(t) {
|
|
1899
1899
|
return t === "dark" ? "moon" : "sunny";
|
|
1900
1900
|
}
|
|
1901
|
-
function
|
|
1901
|
+
function gt(t, n) {
|
|
1902
1902
|
return {
|
|
1903
1903
|
kind: "element",
|
|
1904
1904
|
tag: "span",
|
|
@@ -1909,9 +1909,9 @@ function rt(t, n) {
|
|
|
1909
1909
|
tag: "span",
|
|
1910
1910
|
attrs: { class: "icon-wrapper" },
|
|
1911
1911
|
children: [
|
|
1912
|
-
|
|
1912
|
+
P({
|
|
1913
1913
|
ariaHidden: !0,
|
|
1914
|
-
name:
|
|
1914
|
+
name: Xt(t),
|
|
1915
1915
|
size: "fill"
|
|
1916
1916
|
})
|
|
1917
1917
|
]
|
|
@@ -1925,17 +1925,17 @@ function rt(t, n) {
|
|
|
1925
1925
|
]
|
|
1926
1926
|
};
|
|
1927
1927
|
}
|
|
1928
|
-
function
|
|
1928
|
+
function Qt({
|
|
1929
1929
|
appearance: t = "text",
|
|
1930
1930
|
id: n,
|
|
1931
|
-
labelDark: e =
|
|
1932
|
-
labelLight: i =
|
|
1931
|
+
labelDark: e = st,
|
|
1932
|
+
labelLight: i = lt,
|
|
1933
1933
|
size: r = "md"
|
|
1934
1934
|
}) {
|
|
1935
|
-
const a =
|
|
1935
|
+
const a = v(n), o = e.trim() === "" ? st : e, d = i.trim() === "" ? lt : i;
|
|
1936
1936
|
return {
|
|
1937
1937
|
kind: "element",
|
|
1938
|
-
tag:
|
|
1938
|
+
tag: K,
|
|
1939
1939
|
attrs: {
|
|
1940
1940
|
class: "set-lightswitch",
|
|
1941
1941
|
id: a
|
|
@@ -1951,25 +1951,25 @@ function Ht({
|
|
|
1951
1951
|
type: "button"
|
|
1952
1952
|
},
|
|
1953
1953
|
children: [
|
|
1954
|
-
|
|
1955
|
-
|
|
1954
|
+
gt("dark", o),
|
|
1955
|
+
gt("light", d)
|
|
1956
1956
|
]
|
|
1957
1957
|
}
|
|
1958
1958
|
]
|
|
1959
1959
|
};
|
|
1960
1960
|
}
|
|
1961
|
-
function
|
|
1962
|
-
return
|
|
1961
|
+
function ki(t) {
|
|
1962
|
+
return m(Qt(t));
|
|
1963
1963
|
}
|
|
1964
|
-
function
|
|
1965
|
-
if (customElements.get(
|
|
1964
|
+
function Yt() {
|
|
1965
|
+
if (customElements.get(K)) return;
|
|
1966
1966
|
class t extends HTMLElement {
|
|
1967
1967
|
#t = (e) => {
|
|
1968
1968
|
const i = e.target;
|
|
1969
1969
|
if (!(i instanceof Element) || !i.closest("button")) return;
|
|
1970
|
-
const r =
|
|
1970
|
+
const r = Kt(this.#u());
|
|
1971
1971
|
r === this.#r() ? this.#d() : this.#n(r), this.#a(), this.dispatchEvent(
|
|
1972
|
-
new CustomEvent(
|
|
1972
|
+
new CustomEvent(Lt, {
|
|
1973
1973
|
bubbles: !0,
|
|
1974
1974
|
detail: { stored: !!this.#i(), theme: r }
|
|
1975
1975
|
})
|
|
@@ -1990,7 +1990,7 @@ function Vt() {
|
|
|
1990
1990
|
}
|
|
1991
1991
|
#i() {
|
|
1992
1992
|
try {
|
|
1993
|
-
const e = this.#e()?.getItem(
|
|
1993
|
+
const e = this.#e()?.getItem(dt);
|
|
1994
1994
|
return e === "light" || e === "dark" ? e : void 0;
|
|
1995
1995
|
} catch {
|
|
1996
1996
|
return;
|
|
@@ -1998,13 +1998,13 @@ function Vt() {
|
|
|
1998
1998
|
}
|
|
1999
1999
|
#n(e) {
|
|
2000
2000
|
try {
|
|
2001
|
-
this.#e()?.setItem(
|
|
2001
|
+
this.#e()?.setItem(dt, e);
|
|
2002
2002
|
} catch {
|
|
2003
2003
|
}
|
|
2004
2004
|
}
|
|
2005
2005
|
#d() {
|
|
2006
2006
|
try {
|
|
2007
|
-
this.#e()?.removeItem(
|
|
2007
|
+
this.#e()?.removeItem(dt);
|
|
2008
2008
|
} catch {
|
|
2009
2009
|
}
|
|
2010
2010
|
}
|
|
@@ -2029,12 +2029,12 @@ function Vt() {
|
|
|
2029
2029
|
i ? e.setAttribute("data-set-theme", i) : e.removeAttribute("data-set-theme");
|
|
2030
2030
|
}
|
|
2031
2031
|
}
|
|
2032
|
-
customElements.define(
|
|
2032
|
+
customElements.define(K, t);
|
|
2033
2033
|
}
|
|
2034
|
-
const
|
|
2034
|
+
const gi = {
|
|
2035
2035
|
name: "lightswitch",
|
|
2036
2036
|
description: "Use `lightswitch` to let users toggle between light and dark themes.",
|
|
2037
|
-
output: { element:
|
|
2037
|
+
output: { element: K, class: "set-lightswitch" },
|
|
2038
2038
|
content: { kind: "none" },
|
|
2039
2039
|
props: {
|
|
2040
2040
|
appearance: {
|
|
@@ -2047,12 +2047,12 @@ const ti = {
|
|
|
2047
2047
|
type: { kind: "string" }
|
|
2048
2048
|
},
|
|
2049
2049
|
labelDark: {
|
|
2050
|
-
default:
|
|
2050
|
+
default: st,
|
|
2051
2051
|
description: "Accessible label of the switch-to-dark action.",
|
|
2052
2052
|
type: { kind: "string" }
|
|
2053
2053
|
},
|
|
2054
2054
|
labelLight: {
|
|
2055
|
-
default:
|
|
2055
|
+
default: lt,
|
|
2056
2056
|
description: "Accessible label of the switch-to-light action.",
|
|
2057
2057
|
type: { kind: "string" }
|
|
2058
2058
|
},
|
|
@@ -2063,7 +2063,7 @@ const ti = {
|
|
|
2063
2063
|
}
|
|
2064
2064
|
},
|
|
2065
2065
|
events: {
|
|
2066
|
-
[
|
|
2066
|
+
[Lt]: {
|
|
2067
2067
|
bubbles: !0,
|
|
2068
2068
|
description: "Fired after activation applies a theme. `detail.theme` is the theme switched to; `detail.stored` is false when the change cleared the override to follow the system preference again."
|
|
2069
2069
|
}
|
|
@@ -2102,8 +2102,8 @@ const ti = {
|
|
|
2102
2102
|
}
|
|
2103
2103
|
]
|
|
2104
2104
|
}
|
|
2105
|
-
},
|
|
2106
|
-
function
|
|
2105
|
+
}, X = "set-menu", Mt = "set-menu-choose";
|
|
2106
|
+
function Jt({
|
|
2107
2107
|
align: t = "start",
|
|
2108
2108
|
id: n,
|
|
2109
2109
|
items: e,
|
|
@@ -2114,35 +2114,35 @@ function Nt({
|
|
|
2114
2114
|
triggerLabel: d,
|
|
2115
2115
|
triggerLabelVisibility: s
|
|
2116
2116
|
}) {
|
|
2117
|
-
const
|
|
2118
|
-
if (!
|
|
2117
|
+
const p = n.trim();
|
|
2118
|
+
if (!p)
|
|
2119
2119
|
throw new Error("id must be a non-empty string.");
|
|
2120
|
-
if (!
|
|
2120
|
+
if (!V(p))
|
|
2121
2121
|
throw new Error(
|
|
2122
2122
|
"id must start with a letter and contain only letters, numbers, '_', '-', or ':'."
|
|
2123
2123
|
);
|
|
2124
2124
|
if (!Array.isArray(e))
|
|
2125
2125
|
throw new Error("items must be an array.");
|
|
2126
|
-
const
|
|
2126
|
+
const l = `${p}-button`, c = `${p}-popup`, h = e.map((b) => ({
|
|
2127
2127
|
kind: "element",
|
|
2128
2128
|
tag: "button",
|
|
2129
2129
|
attrs: {
|
|
2130
|
-
"aria-disabled":
|
|
2131
|
-
"data-item-id":
|
|
2130
|
+
"aria-disabled": b.disabled ? "true" : void 0,
|
|
2131
|
+
"data-item-id": b.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: b.label }]
|
|
2137
2137
|
}));
|
|
2138
2138
|
return {
|
|
2139
2139
|
kind: "element",
|
|
2140
|
-
tag:
|
|
2140
|
+
tag: X,
|
|
2141
2141
|
attrs: {
|
|
2142
2142
|
class: "set-menu",
|
|
2143
2143
|
"data-align": t === "start" ? void 0 : t,
|
|
2144
2144
|
"data-size": i,
|
|
2145
|
-
id:
|
|
2145
|
+
id: p
|
|
2146
2146
|
},
|
|
2147
2147
|
children: [
|
|
2148
2148
|
{
|
|
@@ -2150,7 +2150,7 @@ function Nt({
|
|
|
2150
2150
|
tag: "div",
|
|
2151
2151
|
attrs: { "data-part": "trigger" },
|
|
2152
2152
|
children: [
|
|
2153
|
-
|
|
2153
|
+
ut({
|
|
2154
2154
|
appearance: "outline",
|
|
2155
2155
|
controls: c,
|
|
2156
2156
|
disclosure: !0,
|
|
@@ -2158,7 +2158,7 @@ function Nt({
|
|
|
2158
2158
|
icon: r,
|
|
2159
2159
|
iconMirrored: a,
|
|
2160
2160
|
iconPlacement: o,
|
|
2161
|
-
id:
|
|
2161
|
+
id: l,
|
|
2162
2162
|
label: d,
|
|
2163
2163
|
labelVisibility: s,
|
|
2164
2164
|
size: i,
|
|
@@ -2171,22 +2171,22 @@ function Nt({
|
|
|
2171
2171
|
kind: "element",
|
|
2172
2172
|
tag: "div",
|
|
2173
2173
|
attrs: {
|
|
2174
|
-
"aria-labelledby":
|
|
2174
|
+
"aria-labelledby": l,
|
|
2175
2175
|
class: "popup",
|
|
2176
2176
|
hidden: !0,
|
|
2177
2177
|
id: c,
|
|
2178
2178
|
role: "menu"
|
|
2179
2179
|
},
|
|
2180
|
-
children:
|
|
2180
|
+
children: h
|
|
2181
2181
|
}
|
|
2182
2182
|
]
|
|
2183
2183
|
};
|
|
2184
2184
|
}
|
|
2185
|
-
function
|
|
2186
|
-
return
|
|
2185
|
+
function bi(t) {
|
|
2186
|
+
return m(Jt(t));
|
|
2187
2187
|
}
|
|
2188
|
-
function
|
|
2189
|
-
if (customElements.get(
|
|
2188
|
+
function te() {
|
|
2189
|
+
if (customElements.get(X)) return;
|
|
2190
2190
|
class t extends HTMLElement {
|
|
2191
2191
|
#t;
|
|
2192
2192
|
#e;
|
|
@@ -2236,7 +2236,7 @@ function Ot() {
|
|
|
2236
2236
|
this.querySelectorAll('[role="menuitem"]')
|
|
2237
2237
|
).indexOf(e);
|
|
2238
2238
|
this.dispatchEvent(
|
|
2239
|
-
new CustomEvent(
|
|
2239
|
+
new CustomEvent(Mt, {
|
|
2240
2240
|
bubbles: !0,
|
|
2241
2241
|
detail: {
|
|
2242
2242
|
id: e.getAttribute("data-item-id") || void 0,
|
|
@@ -2298,13 +2298,13 @@ function Ot() {
|
|
|
2298
2298
|
this.#t && this.removeEventListener("click", this.#t), this.#e && this.ownerDocument.removeEventListener("click", this.#e), this.#n && this.removeEventListener("keydown", this.#n), this.#i && this.removeEventListener("focusout", this.#i), this.#t = void 0, this.#e = void 0, this.#i = void 0, this.#n = void 0;
|
|
2299
2299
|
}
|
|
2300
2300
|
}
|
|
2301
|
-
customElements.define(
|
|
2301
|
+
customElements.define(X, t);
|
|
2302
2302
|
}
|
|
2303
|
-
const
|
|
2303
|
+
const vi = {
|
|
2304
2304
|
name: "menu",
|
|
2305
2305
|
description: "Use `menu` to show a list of actions from a trigger button.",
|
|
2306
2306
|
output: {
|
|
2307
|
-
element:
|
|
2307
|
+
element: X,
|
|
2308
2308
|
class: "set-menu"
|
|
2309
2309
|
},
|
|
2310
2310
|
content: {
|
|
@@ -2378,7 +2378,7 @@ const ii = {
|
|
|
2378
2378
|
}
|
|
2379
2379
|
},
|
|
2380
2380
|
events: {
|
|
2381
|
-
[
|
|
2381
|
+
[Mt]: {
|
|
2382
2382
|
bubbles: !0,
|
|
2383
2383
|
description: "Fired when a menu item is activated.",
|
|
2384
2384
|
detail: "{ id?: string; index: number; label: string }"
|
|
@@ -2438,15 +2438,15 @@ const ii = {
|
|
|
2438
2438
|
}
|
|
2439
2439
|
]
|
|
2440
2440
|
}
|
|
2441
|
-
},
|
|
2442
|
-
function
|
|
2441
|
+
}, pt = "Menu";
|
|
2442
|
+
function ee({
|
|
2443
2443
|
controlsId: t,
|
|
2444
2444
|
expanded: n,
|
|
2445
2445
|
id: e,
|
|
2446
|
-
label: i =
|
|
2446
|
+
label: i = pt,
|
|
2447
2447
|
size: r = "md"
|
|
2448
2448
|
} = {}) {
|
|
2449
|
-
const a =
|
|
2449
|
+
const a = v(e), o = i.trim() === "" ? pt : i;
|
|
2450
2450
|
return {
|
|
2451
2451
|
kind: "element",
|
|
2452
2452
|
tag: "button",
|
|
@@ -2481,10 +2481,10 @@ function Pt({
|
|
|
2481
2481
|
]
|
|
2482
2482
|
};
|
|
2483
2483
|
}
|
|
2484
|
-
function
|
|
2485
|
-
return
|
|
2484
|
+
function ie(t = {}) {
|
|
2485
|
+
return m(ee(t));
|
|
2486
2486
|
}
|
|
2487
|
-
const
|
|
2487
|
+
const fi = {
|
|
2488
2488
|
name: "expander",
|
|
2489
2489
|
description: "Use `expander` as a toggle for disclosure regions such as menus.",
|
|
2490
2490
|
output: { element: "button", class: "set-expander" },
|
|
@@ -2504,7 +2504,7 @@ const ni = {
|
|
|
2504
2504
|
type: { kind: "string" }
|
|
2505
2505
|
},
|
|
2506
2506
|
label: {
|
|
2507
|
-
default:
|
|
2507
|
+
default: pt,
|
|
2508
2508
|
description: "Accessible label.",
|
|
2509
2509
|
type: { kind: "text" }
|
|
2510
2510
|
},
|
|
@@ -2549,8 +2549,8 @@ const ni = {
|
|
|
2549
2549
|
}
|
|
2550
2550
|
]
|
|
2551
2551
|
}
|
|
2552
|
-
},
|
|
2553
|
-
function
|
|
2552
|
+
}, Q = "set-nav", bt = "data-set-scroll-locked";
|
|
2553
|
+
function ne({
|
|
2554
2554
|
collapsible: t,
|
|
2555
2555
|
contentId: n,
|
|
2556
2556
|
expanderLabel: e,
|
|
@@ -2560,16 +2560,16 @@ function Rt({
|
|
|
2560
2560
|
label: o,
|
|
2561
2561
|
size: d = "md"
|
|
2562
2562
|
}) {
|
|
2563
|
-
const s =
|
|
2564
|
-
if (t && !
|
|
2563
|
+
const s = v(r), p = e?.trim() || void 0, l = n?.trim();
|
|
2564
|
+
if (t && !l)
|
|
2565
2565
|
throw new Error(
|
|
2566
2566
|
"contentId must be a non-empty string when collapsible is set."
|
|
2567
2567
|
);
|
|
2568
|
-
if (
|
|
2568
|
+
if (l && !V(l))
|
|
2569
2569
|
throw new Error(
|
|
2570
2570
|
"contentId must start with a letter and contain only letters, numbers, '_', '-', or ':'."
|
|
2571
2571
|
);
|
|
2572
|
-
const c = a.map((
|
|
2572
|
+
const c = a.map((h) => ({
|
|
2573
2573
|
kind: "element",
|
|
2574
2574
|
tag: "li",
|
|
2575
2575
|
attrs: {},
|
|
@@ -2578,21 +2578,21 @@ function Rt({
|
|
|
2578
2578
|
kind: "element",
|
|
2579
2579
|
tag: "a",
|
|
2580
2580
|
attrs: {
|
|
2581
|
-
"aria-current":
|
|
2581
|
+
"aria-current": h.current ? "page" : void 0,
|
|
2582
2582
|
class: "item",
|
|
2583
|
-
href:
|
|
2583
|
+
href: h.href
|
|
2584
2584
|
},
|
|
2585
|
-
children: [{ kind: "text", value:
|
|
2585
|
+
children: [{ kind: "text", value: h.label }]
|
|
2586
2586
|
}
|
|
2587
2587
|
]
|
|
2588
2588
|
}));
|
|
2589
2589
|
return {
|
|
2590
2590
|
kind: "element",
|
|
2591
|
-
tag:
|
|
2591
|
+
tag: Q,
|
|
2592
2592
|
attrs: {
|
|
2593
2593
|
class: "set-nav",
|
|
2594
2594
|
"data-collapsible": t,
|
|
2595
|
-
"data-expander-label": t &&
|
|
2595
|
+
"data-expander-label": t && p ? p : void 0,
|
|
2596
2596
|
"data-expander-position": t ? i : void 0,
|
|
2597
2597
|
"data-size": d,
|
|
2598
2598
|
id: s
|
|
@@ -2611,7 +2611,7 @@ function Rt({
|
|
|
2611
2611
|
tag: "div",
|
|
2612
2612
|
attrs: {
|
|
2613
2613
|
class: "content",
|
|
2614
|
-
id:
|
|
2614
|
+
id: l
|
|
2615
2615
|
},
|
|
2616
2616
|
children: [
|
|
2617
2617
|
{
|
|
@@ -2627,11 +2627,11 @@ function Rt({
|
|
|
2627
2627
|
]
|
|
2628
2628
|
};
|
|
2629
2629
|
}
|
|
2630
|
-
function
|
|
2631
|
-
return
|
|
2630
|
+
function yi(t) {
|
|
2631
|
+
return m(ne(t));
|
|
2632
2632
|
}
|
|
2633
|
-
function
|
|
2634
|
-
if (customElements.get(
|
|
2633
|
+
function re() {
|
|
2634
|
+
if (customElements.get(Q)) return;
|
|
2635
2635
|
class t extends HTMLElement {
|
|
2636
2636
|
#t;
|
|
2637
2637
|
#e;
|
|
@@ -2657,7 +2657,7 @@ function Wt() {
|
|
|
2657
2657
|
const i = e.querySelector(".content");
|
|
2658
2658
|
i && e.insertAdjacentHTML(
|
|
2659
2659
|
"afterbegin",
|
|
2660
|
-
`<div data-part="expander">${
|
|
2660
|
+
`<div data-part="expander">${ie({
|
|
2661
2661
|
controlsId: i.id || void 0,
|
|
2662
2662
|
label: this.getAttribute("data-expander-label") || void 0,
|
|
2663
2663
|
size: this.getAttribute("data-size") === "sm" ? "md" : "lg"
|
|
@@ -2690,10 +2690,10 @@ function Wt() {
|
|
|
2690
2690
|
const i = this.ownerDocument.documentElement;
|
|
2691
2691
|
if (i) {
|
|
2692
2692
|
if (e) {
|
|
2693
|
-
i.setAttribute(
|
|
2693
|
+
i.setAttribute(bt, "");
|
|
2694
2694
|
return;
|
|
2695
2695
|
}
|
|
2696
|
-
i.removeAttribute(
|
|
2696
|
+
i.removeAttribute(bt);
|
|
2697
2697
|
}
|
|
2698
2698
|
}
|
|
2699
2699
|
#o() {
|
|
@@ -2707,12 +2707,12 @@ function Wt() {
|
|
|
2707
2707
|
), this.#i = void 0, this.#n = void 0, this.#e = void 0;
|
|
2708
2708
|
}
|
|
2709
2709
|
}
|
|
2710
|
-
customElements.define(
|
|
2710
|
+
customElements.define(Q, t);
|
|
2711
2711
|
}
|
|
2712
|
-
const
|
|
2712
|
+
const wi = {
|
|
2713
2713
|
name: "nav",
|
|
2714
2714
|
description: "Use `nav` to render a primary navigation list.",
|
|
2715
|
-
output: { element:
|
|
2715
|
+
output: { element: Q, class: "set-nav" },
|
|
2716
2716
|
content: { kind: "structured", prop: "items" },
|
|
2717
2717
|
props: {
|
|
2718
2718
|
items: {
|
|
@@ -2824,8 +2824,8 @@ const ai = {
|
|
|
2824
2824
|
}
|
|
2825
2825
|
]
|
|
2826
2826
|
}
|
|
2827
|
-
},
|
|
2828
|
-
function
|
|
2827
|
+
}, Y = "set-range";
|
|
2828
|
+
function ae({
|
|
2829
2829
|
description: t,
|
|
2830
2830
|
disabled: n,
|
|
2831
2831
|
id: e,
|
|
@@ -2835,17 +2835,17 @@ function Ut({
|
|
|
2835
2835
|
min: o,
|
|
2836
2836
|
name: d,
|
|
2837
2837
|
size: s = "md",
|
|
2838
|
-
step:
|
|
2839
|
-
value:
|
|
2838
|
+
step: p,
|
|
2839
|
+
value: l
|
|
2840
2840
|
}) {
|
|
2841
|
-
const c = e.trim(),
|
|
2841
|
+
const c = e.trim(), h = t?.trim(), b = d?.trim();
|
|
2842
2842
|
if (!c)
|
|
2843
2843
|
throw new Error("id must be a non-empty string.");
|
|
2844
|
-
if (!
|
|
2844
|
+
if (!V(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 S = h ? `${c}-description` : void 0, f = [
|
|
2849
2849
|
{
|
|
2850
2850
|
kind: "element",
|
|
2851
2851
|
tag: "div",
|
|
@@ -2861,7 +2861,7 @@ function Ut({
|
|
|
2861
2861
|
kind: "element",
|
|
2862
2862
|
tag: "output",
|
|
2863
2863
|
attrs: { class: "output", for: c },
|
|
2864
|
-
children:
|
|
2864
|
+
children: l != null ? [{ kind: "text", value: String(l) }] : []
|
|
2865
2865
|
}
|
|
2866
2866
|
]
|
|
2867
2867
|
},
|
|
@@ -2869,41 +2869,41 @@ function Ut({
|
|
|
2869
2869
|
kind: "element",
|
|
2870
2870
|
tag: "input",
|
|
2871
2871
|
attrs: {
|
|
2872
|
-
"aria-describedby":
|
|
2872
|
+
"aria-describedby": S,
|
|
2873
2873
|
class: "range",
|
|
2874
2874
|
disabled: !!n,
|
|
2875
2875
|
id: c,
|
|
2876
2876
|
max: a != null ? String(a) : void 0,
|
|
2877
2877
|
min: o != null ? String(o) : void 0,
|
|
2878
|
-
name:
|
|
2879
|
-
step:
|
|
2878
|
+
name: b || void 0,
|
|
2879
|
+
step: p != null ? String(p) : void 0,
|
|
2880
2880
|
type: "range",
|
|
2881
|
-
value:
|
|
2881
|
+
value: l != null ? String(l) : void 0
|
|
2882
2882
|
},
|
|
2883
2883
|
children: []
|
|
2884
2884
|
}
|
|
2885
2885
|
];
|
|
2886
|
-
return
|
|
2886
|
+
return h && f.push({
|
|
2887
2887
|
kind: "element",
|
|
2888
2888
|
tag: "p",
|
|
2889
|
-
attrs: { class: "description", id:
|
|
2890
|
-
children: [{ kind: "text", value:
|
|
2889
|
+
attrs: { class: "description", id: S },
|
|
2890
|
+
children: [{ kind: "text", value: h }]
|
|
2891
2891
|
}), {
|
|
2892
2892
|
kind: "element",
|
|
2893
|
-
tag:
|
|
2893
|
+
tag: Y,
|
|
2894
2894
|
attrs: {
|
|
2895
2895
|
class: "set-range",
|
|
2896
2896
|
"data-inline-size": i === "fit" ? "fit" : void 0,
|
|
2897
2897
|
"data-size": s
|
|
2898
2898
|
},
|
|
2899
|
-
children:
|
|
2899
|
+
children: f
|
|
2900
2900
|
};
|
|
2901
2901
|
}
|
|
2902
|
-
function
|
|
2903
|
-
return
|
|
2902
|
+
function Si(t) {
|
|
2903
|
+
return m(ae(t));
|
|
2904
2904
|
}
|
|
2905
|
-
function
|
|
2906
|
-
if (customElements.get(
|
|
2905
|
+
function oe() {
|
|
2906
|
+
if (customElements.get(Y)) return;
|
|
2907
2907
|
class t extends HTMLElement {
|
|
2908
2908
|
#t;
|
|
2909
2909
|
#e = (e) => {
|
|
@@ -2957,12 +2957,12 @@ function $t() {
|
|
|
2957
2957
|
this.#t && (delete this.#t.value, this.#t = void 0);
|
|
2958
2958
|
}
|
|
2959
2959
|
}
|
|
2960
|
-
customElements.define(
|
|
2960
|
+
customElements.define(Y, t);
|
|
2961
2961
|
}
|
|
2962
|
-
const
|
|
2962
|
+
const xi = {
|
|
2963
2963
|
name: "range",
|
|
2964
2964
|
description: "Use `range` to let users pick a numeric value along a scale.",
|
|
2965
|
-
output: { element:
|
|
2965
|
+
output: { element: Y, class: "set-range" },
|
|
2966
2966
|
content: { kind: "text", prop: "label" },
|
|
2967
2967
|
props: {
|
|
2968
2968
|
description: {
|
|
@@ -3091,9 +3091,9 @@ const di = {
|
|
|
3091
3091
|
}
|
|
3092
3092
|
]
|
|
3093
3093
|
}
|
|
3094
|
-
},
|
|
3095
|
-
function
|
|
3096
|
-
return `<div data-part="close">${
|
|
3094
|
+
}, J = "set-sidebar", de = "(min-width: 68em)", B = "Collapse sidebar", ct = "Open sidebar";
|
|
3095
|
+
function se(t, n) {
|
|
3096
|
+
return `<div data-part="close">${ht({
|
|
3097
3097
|
appearance: "text",
|
|
3098
3098
|
icon: "panel-left",
|
|
3099
3099
|
iconMirrored: "rtl",
|
|
@@ -3104,25 +3104,25 @@ function Zt(t, n) {
|
|
|
3104
3104
|
type: "button"
|
|
3105
3105
|
})}</div>`;
|
|
3106
3106
|
}
|
|
3107
|
-
function
|
|
3107
|
+
function le({
|
|
3108
3108
|
aboveNotebook: t = "persistent",
|
|
3109
3109
|
buttonSize: n = "md",
|
|
3110
3110
|
children: e,
|
|
3111
|
-
collapseLabel: i =
|
|
3111
|
+
collapseLabel: i = B,
|
|
3112
3112
|
footer: r,
|
|
3113
3113
|
header: a,
|
|
3114
3114
|
id: o,
|
|
3115
3115
|
surface: d,
|
|
3116
|
-
triggerLabel: s =
|
|
3116
|
+
triggerLabel: s = ct
|
|
3117
3117
|
}) {
|
|
3118
|
-
const
|
|
3119
|
-
if (!
|
|
3118
|
+
const p = o.trim(), l = i.trim() || B, c = s.trim() || ct;
|
|
3119
|
+
if (!p)
|
|
3120
3120
|
throw new Error("id must be a non-empty string.");
|
|
3121
|
-
if (!
|
|
3121
|
+
if (!V(p))
|
|
3122
3122
|
throw new Error(
|
|
3123
3123
|
"id must start with a letter and contain only letters, numbers, '_', '-', or ':'."
|
|
3124
3124
|
);
|
|
3125
|
-
const
|
|
3125
|
+
const h = [
|
|
3126
3126
|
{
|
|
3127
3127
|
kind: "element",
|
|
3128
3128
|
tag: "div",
|
|
@@ -3136,22 +3136,22 @@ function Ft({
|
|
|
3136
3136
|
children: e ? [{ kind: "raw", html: e }] : []
|
|
3137
3137
|
}
|
|
3138
3138
|
];
|
|
3139
|
-
r &&
|
|
3139
|
+
r && h.push({
|
|
3140
3140
|
kind: "element",
|
|
3141
3141
|
tag: "div",
|
|
3142
3142
|
attrs: { class: "footer" },
|
|
3143
3143
|
children: [{ kind: "raw", html: r }]
|
|
3144
3144
|
});
|
|
3145
|
-
const
|
|
3145
|
+
const b = `${p}-panel`;
|
|
3146
3146
|
return {
|
|
3147
3147
|
kind: "element",
|
|
3148
|
-
tag:
|
|
3148
|
+
tag: J,
|
|
3149
3149
|
attrs: {
|
|
3150
3150
|
class: "set-sidebar",
|
|
3151
3151
|
"data-above-notebook": t,
|
|
3152
|
-
"data-collapse-label":
|
|
3152
|
+
"data-collapse-label": l !== B ? l : void 0,
|
|
3153
3153
|
"data-button-size": n,
|
|
3154
|
-
id:
|
|
3154
|
+
id: p
|
|
3155
3155
|
},
|
|
3156
3156
|
children: [
|
|
3157
3157
|
{
|
|
@@ -3159,9 +3159,9 @@ function Ft({
|
|
|
3159
3159
|
tag: "div",
|
|
3160
3160
|
attrs: { "data-part": "trigger" },
|
|
3161
3161
|
children: [
|
|
3162
|
-
|
|
3162
|
+
ut({
|
|
3163
3163
|
appearance: "text",
|
|
3164
|
-
controls:
|
|
3164
|
+
controls: b,
|
|
3165
3165
|
disclosure: !0,
|
|
3166
3166
|
icon: "panel-left",
|
|
3167
3167
|
iconMirrored: "rtl",
|
|
@@ -3179,10 +3179,10 @@ function Ft({
|
|
|
3179
3179
|
attrs: {
|
|
3180
3180
|
class: "sidebar",
|
|
3181
3181
|
"data-set-surface": d,
|
|
3182
|
-
id:
|
|
3182
|
+
id: b,
|
|
3183
3183
|
tabindex: "-1"
|
|
3184
3184
|
},
|
|
3185
|
-
children:
|
|
3185
|
+
children: h
|
|
3186
3186
|
},
|
|
3187
3187
|
{
|
|
3188
3188
|
kind: "element",
|
|
@@ -3193,11 +3193,11 @@ function Ft({
|
|
|
3193
3193
|
]
|
|
3194
3194
|
};
|
|
3195
3195
|
}
|
|
3196
|
-
function
|
|
3197
|
-
return
|
|
3196
|
+
function Ei(t) {
|
|
3197
|
+
return m(le(t));
|
|
3198
3198
|
}
|
|
3199
|
-
function
|
|
3200
|
-
if (customElements.get(
|
|
3199
|
+
function pe() {
|
|
3200
|
+
if (customElements.get(J)) return;
|
|
3201
3201
|
class t extends HTMLElement {
|
|
3202
3202
|
#t;
|
|
3203
3203
|
#e;
|
|
@@ -3241,10 +3241,10 @@ function jt() {
|
|
|
3241
3241
|
#l() {
|
|
3242
3242
|
const e = this.#d();
|
|
3243
3243
|
if (!e || e.querySelector('[data-part="close"]')) return;
|
|
3244
|
-
const i = e.querySelector(".header"), r = this.getAttribute("data-collapse-label") ||
|
|
3244
|
+
const i = e.querySelector(".header"), r = this.getAttribute("data-collapse-label") || B, a = this.getAttribute("data-button-size") ?? "md";
|
|
3245
3245
|
i?.insertAdjacentHTML(
|
|
3246
3246
|
"beforeend",
|
|
3247
|
-
|
|
3247
|
+
se(r, a)
|
|
3248
3248
|
);
|
|
3249
3249
|
}
|
|
3250
3250
|
#o() {
|
|
@@ -3319,7 +3319,7 @@ function jt() {
|
|
|
3319
3319
|
}
|
|
3320
3320
|
#f() {
|
|
3321
3321
|
const e = this.ownerDocument.defaultView;
|
|
3322
|
-
e && (typeof e.matchMedia == "function" && (this.#t = e.matchMedia(
|
|
3322
|
+
e && (typeof e.matchMedia == "function" && (this.#t = e.matchMedia(de), this.#n = () => {
|
|
3323
3323
|
this.#g();
|
|
3324
3324
|
}, this.#t.addEventListener("change", this.#n), this.#g()), this.#e = (i) => {
|
|
3325
3325
|
const r = i.target;
|
|
@@ -3346,13 +3346,13 @@ function jt() {
|
|
|
3346
3346
|
this.#e && this.removeEventListener("click", this.#e), this.#i && this.removeEventListener("keydown", this.#i), this.#t && this.#n && this.#t.removeEventListener("change", this.#n), this.#e = void 0, this.#i = void 0, this.#t = void 0, this.#n = void 0;
|
|
3347
3347
|
}
|
|
3348
3348
|
}
|
|
3349
|
-
customElements.define(
|
|
3349
|
+
customElements.define(J, t);
|
|
3350
3350
|
}
|
|
3351
|
-
const
|
|
3351
|
+
const zi = {
|
|
3352
3352
|
name: "sidebar",
|
|
3353
3353
|
description: "Use `sidebar` for a side panel alongside main content.",
|
|
3354
3354
|
output: {
|
|
3355
|
-
element:
|
|
3355
|
+
element: J,
|
|
3356
3356
|
class: "set-sidebar"
|
|
3357
3357
|
},
|
|
3358
3358
|
content: {
|
|
@@ -3382,7 +3382,7 @@ const li = {
|
|
|
3382
3382
|
type: { kind: "html" }
|
|
3383
3383
|
},
|
|
3384
3384
|
collapseLabel: {
|
|
3385
|
-
default:
|
|
3385
|
+
default: B,
|
|
3386
3386
|
description: "Accessible label for the collapse button.",
|
|
3387
3387
|
type: { kind: "string" }
|
|
3388
3388
|
},
|
|
@@ -3407,7 +3407,7 @@ const li = {
|
|
|
3407
3407
|
}
|
|
3408
3408
|
},
|
|
3409
3409
|
triggerLabel: {
|
|
3410
|
-
default:
|
|
3410
|
+
default: ct,
|
|
3411
3411
|
description: "Accessible label for the open button.",
|
|
3412
3412
|
type: { kind: "string" }
|
|
3413
3413
|
}
|
|
@@ -3439,7 +3439,7 @@ const li = {
|
|
|
3439
3439
|
of: {
|
|
3440
3440
|
kind: "when-equals",
|
|
3441
3441
|
prop: "collapseLabel",
|
|
3442
|
-
to:
|
|
3442
|
+
to: B
|
|
3443
3443
|
}
|
|
3444
3444
|
}
|
|
3445
3445
|
]
|
|
@@ -3472,8 +3472,8 @@ const li = {
|
|
|
3472
3472
|
}
|
|
3473
3473
|
]
|
|
3474
3474
|
}
|
|
3475
|
-
},
|
|
3476
|
-
function
|
|
3475
|
+
}, tt = "set-video";
|
|
3476
|
+
function ce({
|
|
3477
3477
|
autoPlay: t,
|
|
3478
3478
|
controls: n,
|
|
3479
3479
|
fit: e = "intrinsic",
|
|
@@ -3483,14 +3483,14 @@ function Kt({
|
|
|
3483
3483
|
muted: o,
|
|
3484
3484
|
playsInline: d,
|
|
3485
3485
|
poster: s,
|
|
3486
|
-
preload:
|
|
3487
|
-
src:
|
|
3486
|
+
preload: p,
|
|
3487
|
+
src: l,
|
|
3488
3488
|
width: c
|
|
3489
3489
|
}) {
|
|
3490
|
-
const
|
|
3491
|
-
if (!
|
|
3490
|
+
const h = v(r), b = l.trim(), S = s?.trim();
|
|
3491
|
+
if (!b)
|
|
3492
3492
|
throw new Error("src must be a non-empty string.");
|
|
3493
|
-
const
|
|
3493
|
+
const f = {
|
|
3494
3494
|
kind: "element",
|
|
3495
3495
|
tag: "video",
|
|
3496
3496
|
attrs: {
|
|
@@ -3501,30 +3501,30 @@ function Kt({
|
|
|
3501
3501
|
loop: !!a,
|
|
3502
3502
|
muted: !!o,
|
|
3503
3503
|
playsinline: !!d,
|
|
3504
|
-
poster:
|
|
3505
|
-
preload:
|
|
3506
|
-
src:
|
|
3504
|
+
poster: S || void 0,
|
|
3505
|
+
preload: p,
|
|
3506
|
+
src: b,
|
|
3507
3507
|
width: c ? String(c) : void 0
|
|
3508
3508
|
},
|
|
3509
3509
|
children: []
|
|
3510
3510
|
};
|
|
3511
3511
|
return {
|
|
3512
3512
|
kind: "element",
|
|
3513
|
-
tag:
|
|
3513
|
+
tag: tt,
|
|
3514
3514
|
attrs: {
|
|
3515
3515
|
class: "set-video",
|
|
3516
3516
|
"data-fluid": e === "fluid",
|
|
3517
|
-
id:
|
|
3517
|
+
id: h
|
|
3518
3518
|
},
|
|
3519
|
-
children: [
|
|
3519
|
+
children: [f]
|
|
3520
3520
|
};
|
|
3521
3521
|
}
|
|
3522
|
-
function
|
|
3523
|
-
return
|
|
3522
|
+
function Ci(t) {
|
|
3523
|
+
return m(ce(t));
|
|
3524
3524
|
}
|
|
3525
|
-
const
|
|
3526
|
-
function
|
|
3527
|
-
if (customElements.get(
|
|
3525
|
+
const ue = "(prefers-reduced-motion: reduce)";
|
|
3526
|
+
function he() {
|
|
3527
|
+
if (customElements.get(tt)) return;
|
|
3528
3528
|
class t extends HTMLElement {
|
|
3529
3529
|
#t = !1;
|
|
3530
3530
|
#e;
|
|
@@ -3533,7 +3533,7 @@ function Qt() {
|
|
|
3533
3533
|
const e = this.querySelector("video");
|
|
3534
3534
|
if (!e || (this.#t ||= e.hasAttribute("autoplay"), !this.#t)) return;
|
|
3535
3535
|
const i = this.ownerDocument.defaultView;
|
|
3536
|
-
!i || typeof i.matchMedia != "function" || (this.#e = i.matchMedia(
|
|
3536
|
+
!i || typeof i.matchMedia != "function" || (this.#e = i.matchMedia(ue), this.#i = () => {
|
|
3537
3537
|
this.#n();
|
|
3538
3538
|
}, this.#e.addEventListener("change", this.#i), this.#n());
|
|
3539
3539
|
}
|
|
@@ -3546,12 +3546,12 @@ function Qt() {
|
|
|
3546
3546
|
})));
|
|
3547
3547
|
}
|
|
3548
3548
|
}
|
|
3549
|
-
customElements.define(
|
|
3549
|
+
customElements.define(tt, t);
|
|
3550
3550
|
}
|
|
3551
|
-
const
|
|
3551
|
+
const Li = {
|
|
3552
3552
|
name: "video",
|
|
3553
3553
|
description: "Use `video` to render a video with intrinsic or fluid fit and native playback behavior.",
|
|
3554
|
-
output: { element:
|
|
3554
|
+
output: { element: tt, class: "set-video" },
|
|
3555
3555
|
content: { kind: "none" },
|
|
3556
3556
|
props: {
|
|
3557
3557
|
autoPlay: {
|
|
@@ -3676,54 +3676,54 @@ const ci = {
|
|
|
3676
3676
|
]
|
|
3677
3677
|
}
|
|
3678
3678
|
};
|
|
3679
|
-
function
|
|
3679
|
+
function me(t) {
|
|
3680
3680
|
return t ? /[A-Za-z]/.test(t) : !1;
|
|
3681
3681
|
}
|
|
3682
|
-
function
|
|
3682
|
+
function ke(t) {
|
|
3683
3683
|
return /^[a-z]/.test(t);
|
|
3684
3684
|
}
|
|
3685
|
-
function
|
|
3685
|
+
function H(t) {
|
|
3686
3686
|
const n = t.charAt(0);
|
|
3687
|
-
return
|
|
3687
|
+
return me(n) ? n : void 0;
|
|
3688
3688
|
}
|
|
3689
|
-
function
|
|
3690
|
-
const n =
|
|
3689
|
+
function ge(t) {
|
|
3690
|
+
const n = O(t);
|
|
3691
3691
|
if (!n) return;
|
|
3692
|
-
const e = n.split(" "), i =
|
|
3692
|
+
const e = n.split(" "), i = H(e[0]);
|
|
3693
3693
|
if (!i) return;
|
|
3694
3694
|
const r = [i.toUpperCase()];
|
|
3695
3695
|
if (e.length === 1)
|
|
3696
3696
|
return r[0];
|
|
3697
|
-
const a = e.slice(1).find(
|
|
3697
|
+
const a = e.slice(1).find(ke);
|
|
3698
3698
|
if (a) {
|
|
3699
|
-
const d =
|
|
3699
|
+
const d = H(a);
|
|
3700
3700
|
return d ? `${r[0]}${d}` : void 0;
|
|
3701
3701
|
}
|
|
3702
3702
|
if (e.length === 2) {
|
|
3703
|
-
const d =
|
|
3703
|
+
const d = H(e[1]);
|
|
3704
3704
|
if (!d) return;
|
|
3705
3705
|
r.push(d);
|
|
3706
3706
|
const s = e[1].split("-").filter(Boolean);
|
|
3707
3707
|
if (s.length === 2) {
|
|
3708
|
-
const
|
|
3709
|
-
|
|
3708
|
+
const p = H(s[1]);
|
|
3709
|
+
p && r.push(p);
|
|
3710
3710
|
}
|
|
3711
3711
|
return r.slice(0, 3).join("");
|
|
3712
3712
|
}
|
|
3713
3713
|
if (e.length === 3) {
|
|
3714
|
-
const d =
|
|
3714
|
+
const d = H(e[1]), s = H(e[2]);
|
|
3715
3715
|
return !d || !s ? void 0 : (r.push(d, s), r.slice(0, 3).join(""));
|
|
3716
3716
|
}
|
|
3717
|
-
const o =
|
|
3717
|
+
const o = H(e.at(-1) || "");
|
|
3718
3718
|
if (o)
|
|
3719
3719
|
return r.push(o), r.slice(0, 3).join("");
|
|
3720
3720
|
}
|
|
3721
|
-
const
|
|
3721
|
+
const be = {
|
|
3722
3722
|
bot: "robot-1",
|
|
3723
3723
|
organization: "city-6",
|
|
3724
3724
|
person: "user-1",
|
|
3725
3725
|
team: "member"
|
|
3726
|
-
},
|
|
3726
|
+
}, vt = [
|
|
3727
3727
|
"01",
|
|
3728
3728
|
"02",
|
|
3729
3729
|
"03",
|
|
@@ -3734,15 +3734,15 @@ const ee = {
|
|
|
3734
3734
|
"08",
|
|
3735
3735
|
"09"
|
|
3736
3736
|
];
|
|
3737
|
-
function
|
|
3737
|
+
function ve(t) {
|
|
3738
3738
|
let n = 5381;
|
|
3739
3739
|
for (const e of t)
|
|
3740
3740
|
n = n * 33 ^ e.charCodeAt(0);
|
|
3741
3741
|
return n >>> 0;
|
|
3742
3742
|
}
|
|
3743
|
-
function
|
|
3743
|
+
function fe(t) {
|
|
3744
3744
|
if (t == null) return;
|
|
3745
|
-
const n =
|
|
3745
|
+
const n = O(t);
|
|
3746
3746
|
if (n) {
|
|
3747
3747
|
if (n.length > 3)
|
|
3748
3748
|
throw new Error("initials must normalize to 3 characters or fewer.");
|
|
@@ -3751,26 +3751,26 @@ function ne(t) {
|
|
|
3751
3751
|
return n;
|
|
3752
3752
|
}
|
|
3753
3753
|
}
|
|
3754
|
-
function
|
|
3754
|
+
function ye({
|
|
3755
3755
|
alt: t,
|
|
3756
3756
|
ariaHidden: n,
|
|
3757
3757
|
name: e
|
|
3758
3758
|
}) {
|
|
3759
3759
|
if (!n)
|
|
3760
|
-
return
|
|
3760
|
+
return O(t) || O(e) || "Avatar";
|
|
3761
3761
|
}
|
|
3762
|
-
function
|
|
3762
|
+
function we({
|
|
3763
3763
|
color: t,
|
|
3764
3764
|
name: n
|
|
3765
3765
|
}) {
|
|
3766
3766
|
if (t) return t;
|
|
3767
3767
|
if (n) {
|
|
3768
|
-
const e =
|
|
3769
|
-
return
|
|
3768
|
+
const e = ve(n) % vt.length;
|
|
3769
|
+
return vt[e];
|
|
3770
3770
|
}
|
|
3771
3771
|
return "neutral";
|
|
3772
3772
|
}
|
|
3773
|
-
function
|
|
3773
|
+
function Se({
|
|
3774
3774
|
alt: t,
|
|
3775
3775
|
ariaHidden: n,
|
|
3776
3776
|
color: e,
|
|
@@ -3781,60 +3781,60 @@ function oe({
|
|
|
3781
3781
|
size: d = "md",
|
|
3782
3782
|
src: s
|
|
3783
3783
|
}) {
|
|
3784
|
-
const
|
|
3784
|
+
const p = v(r), l = fe(a), c = O(o), h = O(s), b = ye({
|
|
3785
3785
|
alt: t,
|
|
3786
3786
|
ariaHidden: n,
|
|
3787
3787
|
name: c
|
|
3788
|
-
}),
|
|
3788
|
+
}), S = l || ge(c), f = !!h, E = we({
|
|
3789
3789
|
color: e,
|
|
3790
3790
|
name: c
|
|
3791
|
-
}),
|
|
3791
|
+
}), q = {
|
|
3792
3792
|
"aria-hidden": n ? "true" : void 0,
|
|
3793
|
-
"aria-label": !n && !
|
|
3793
|
+
"aria-label": !n && !f ? b : void 0,
|
|
3794
3794
|
class: "set-avatar",
|
|
3795
|
-
"data-color":
|
|
3795
|
+
"data-color": E === "neutral" ? void 0 : E,
|
|
3796
3796
|
"data-entity": i === "person" ? void 0 : i,
|
|
3797
3797
|
"data-size": d,
|
|
3798
|
-
id:
|
|
3799
|
-
role: !n && !
|
|
3798
|
+
id: p,
|
|
3799
|
+
role: !n && !f ? "img" : void 0
|
|
3800
3800
|
};
|
|
3801
|
-
let
|
|
3802
|
-
return
|
|
3801
|
+
let w;
|
|
3802
|
+
return f ? w = {
|
|
3803
3803
|
kind: "element",
|
|
3804
3804
|
tag: "img",
|
|
3805
3805
|
attrs: {
|
|
3806
|
-
alt: n ? "" :
|
|
3806
|
+
alt: n ? "" : b || "",
|
|
3807
3807
|
class: "img",
|
|
3808
|
-
src:
|
|
3808
|
+
src: h
|
|
3809
3809
|
},
|
|
3810
3810
|
children: []
|
|
3811
|
-
} :
|
|
3811
|
+
} : S ? w = {
|
|
3812
3812
|
kind: "element",
|
|
3813
3813
|
tag: "span",
|
|
3814
3814
|
attrs: { class: "initials" },
|
|
3815
|
-
children: [{ kind: "text", value:
|
|
3816
|
-
} :
|
|
3815
|
+
children: [{ kind: "text", value: S }]
|
|
3816
|
+
} : w = {
|
|
3817
3817
|
kind: "element",
|
|
3818
3818
|
tag: "span",
|
|
3819
3819
|
attrs: { class: "icon-wrapper" },
|
|
3820
3820
|
children: [
|
|
3821
|
-
|
|
3821
|
+
P({
|
|
3822
3822
|
ariaHidden: !0,
|
|
3823
|
-
name:
|
|
3823
|
+
name: be[i],
|
|
3824
3824
|
size: "fill"
|
|
3825
3825
|
})
|
|
3826
3826
|
]
|
|
3827
3827
|
}, {
|
|
3828
3828
|
kind: "element",
|
|
3829
3829
|
tag: "span",
|
|
3830
|
-
attrs:
|
|
3831
|
-
children: [
|
|
3830
|
+
attrs: q,
|
|
3831
|
+
children: [w]
|
|
3832
3832
|
};
|
|
3833
3833
|
}
|
|
3834
|
-
function
|
|
3835
|
-
return
|
|
3834
|
+
function Mi(t) {
|
|
3835
|
+
return m(Se(t));
|
|
3836
3836
|
}
|
|
3837
|
-
const
|
|
3837
|
+
const qi = {
|
|
3838
3838
|
name: "avatar",
|
|
3839
3839
|
description: "Use `avatar` to visually represent a person, team, or entity.",
|
|
3840
3840
|
output: { element: "span", class: "set-avatar" },
|
|
@@ -3941,14 +3941,14 @@ const hi = {
|
|
|
3941
3941
|
]
|
|
3942
3942
|
}
|
|
3943
3943
|
};
|
|
3944
|
-
function
|
|
3944
|
+
function xe({
|
|
3945
3945
|
floating: t,
|
|
3946
3946
|
id: n,
|
|
3947
3947
|
label: e,
|
|
3948
3948
|
size: i = "md",
|
|
3949
3949
|
tone: r
|
|
3950
3950
|
}) {
|
|
3951
|
-
const a =
|
|
3951
|
+
const a = v(n);
|
|
3952
3952
|
return {
|
|
3953
3953
|
kind: "element",
|
|
3954
3954
|
tag: "span",
|
|
@@ -3962,10 +3962,10 @@ function de({
|
|
|
3962
3962
|
children: [{ kind: "text", value: e }]
|
|
3963
3963
|
};
|
|
3964
3964
|
}
|
|
3965
|
-
function
|
|
3966
|
-
return
|
|
3965
|
+
function Ii(t) {
|
|
3966
|
+
return m(xe(t));
|
|
3967
3967
|
}
|
|
3968
|
-
const
|
|
3968
|
+
const Ti = {
|
|
3969
3969
|
name: "badge",
|
|
3970
3970
|
description: "Use `badge` to annotate content with a short label.",
|
|
3971
3971
|
output: { element: "span", class: "set-badge" },
|
|
@@ -4034,7 +4034,7 @@ const ki = {
|
|
|
4034
4034
|
]
|
|
4035
4035
|
}
|
|
4036
4036
|
};
|
|
4037
|
-
function
|
|
4037
|
+
function et({
|
|
4038
4038
|
align: t,
|
|
4039
4039
|
as: n,
|
|
4040
4040
|
children: e,
|
|
@@ -4044,30 +4044,30 @@ function X({
|
|
|
4044
4044
|
monospaced: o,
|
|
4045
4045
|
responsive: d,
|
|
4046
4046
|
size: s = "md",
|
|
4047
|
-
tone:
|
|
4047
|
+
tone: p = "default"
|
|
4048
4048
|
}) {
|
|
4049
|
-
const
|
|
4049
|
+
const l = v(i), c = n === "p" ? "p" : "span", h = c === "p", b = h ? t ?? "start" : void 0;
|
|
4050
4050
|
return {
|
|
4051
4051
|
kind: "element",
|
|
4052
4052
|
tag: c,
|
|
4053
4053
|
attrs: {
|
|
4054
4054
|
class: "set-text",
|
|
4055
|
-
"data-align":
|
|
4055
|
+
"data-align": b && b !== "start" ? b : void 0,
|
|
4056
4056
|
"data-link-visited": r ? void 0 : "off",
|
|
4057
|
-
"data-measured":
|
|
4057
|
+
"data-measured": h ? a ?? !0 : void 0,
|
|
4058
4058
|
"data-monospaced": o,
|
|
4059
4059
|
"data-responsive": d,
|
|
4060
4060
|
"data-size": s,
|
|
4061
|
-
"data-tone":
|
|
4062
|
-
id:
|
|
4061
|
+
"data-tone": p === "muted" ? "muted" : void 0,
|
|
4062
|
+
id: l
|
|
4063
4063
|
},
|
|
4064
4064
|
children: [{ kind: "raw", html: e }]
|
|
4065
4065
|
};
|
|
4066
4066
|
}
|
|
4067
|
-
function
|
|
4068
|
-
return
|
|
4067
|
+
function Ai(t) {
|
|
4068
|
+
return m(et(t));
|
|
4069
4069
|
}
|
|
4070
|
-
const
|
|
4070
|
+
const _i = {
|
|
4071
4071
|
name: "text",
|
|
4072
4072
|
description: "Use `text` for inline or paragraph body copy.",
|
|
4073
4073
|
output: {
|
|
@@ -4191,7 +4191,7 @@ const bi = {
|
|
|
4191
4191
|
]
|
|
4192
4192
|
}
|
|
4193
4193
|
};
|
|
4194
|
-
function
|
|
4194
|
+
function Ee({
|
|
4195
4195
|
align: t = "start",
|
|
4196
4196
|
attribution: n,
|
|
4197
4197
|
id: e,
|
|
@@ -4200,7 +4200,7 @@ function se({
|
|
|
4200
4200
|
responsive: a = !1,
|
|
4201
4201
|
size: o = "md"
|
|
4202
4202
|
}) {
|
|
4203
|
-
const d =
|
|
4203
|
+
const d = v(e);
|
|
4204
4204
|
return {
|
|
4205
4205
|
kind: "element",
|
|
4206
4206
|
tag: "figure",
|
|
@@ -4215,7 +4215,7 @@ function se({
|
|
|
4215
4215
|
tag: "blockquote",
|
|
4216
4216
|
attrs: { class: "quote" },
|
|
4217
4217
|
children: [
|
|
4218
|
-
|
|
4218
|
+
et({
|
|
4219
4219
|
align: t,
|
|
4220
4220
|
as: "p",
|
|
4221
4221
|
children: r,
|
|
@@ -4230,7 +4230,7 @@ function se({
|
|
|
4230
4230
|
tag: "figcaption",
|
|
4231
4231
|
attrs: { class: "attribution" },
|
|
4232
4232
|
children: [
|
|
4233
|
-
|
|
4233
|
+
et({
|
|
4234
4234
|
as: "span",
|
|
4235
4235
|
children: n,
|
|
4236
4236
|
responsive: a,
|
|
@@ -4241,10 +4241,10 @@ function se({
|
|
|
4241
4241
|
]
|
|
4242
4242
|
};
|
|
4243
4243
|
}
|
|
4244
|
-
function
|
|
4245
|
-
return
|
|
4244
|
+
function Di(t) {
|
|
4245
|
+
return m(Ee(t));
|
|
4246
4246
|
}
|
|
4247
|
-
const
|
|
4247
|
+
const Vi = {
|
|
4248
4248
|
name: "blockquote",
|
|
4249
4249
|
description: "Use `blockquote` to display a quote with attribution.",
|
|
4250
4250
|
output: { element: "figure", class: "set-blockquote" },
|
|
@@ -4313,7 +4313,7 @@ const fi = {
|
|
|
4313
4313
|
]
|
|
4314
4314
|
}
|
|
4315
4315
|
};
|
|
4316
|
-
function
|
|
4316
|
+
function ze({
|
|
4317
4317
|
background: t = "default",
|
|
4318
4318
|
border: n,
|
|
4319
4319
|
children: e,
|
|
@@ -4324,7 +4324,7 @@ function le({
|
|
|
4324
4324
|
responsive: d,
|
|
4325
4325
|
surface: s
|
|
4326
4326
|
}) {
|
|
4327
|
-
const
|
|
4327
|
+
const p = v(i);
|
|
4328
4328
|
return {
|
|
4329
4329
|
kind: "element",
|
|
4330
4330
|
tag: "div",
|
|
@@ -4337,15 +4337,15 @@ function le({
|
|
|
4337
4337
|
"data-padding-inline": a,
|
|
4338
4338
|
"data-radius": o,
|
|
4339
4339
|
"data-responsive": d,
|
|
4340
|
-
id:
|
|
4340
|
+
id: p
|
|
4341
4341
|
},
|
|
4342
4342
|
children: e ? [{ kind: "raw", html: e }] : []
|
|
4343
4343
|
};
|
|
4344
4344
|
}
|
|
4345
|
-
function
|
|
4346
|
-
return
|
|
4345
|
+
function Hi(t) {
|
|
4346
|
+
return m(ze(t));
|
|
4347
4347
|
}
|
|
4348
|
-
const
|
|
4348
|
+
const Ni = {
|
|
4349
4349
|
name: "box",
|
|
4350
4350
|
description: "Use `box` to inset content.",
|
|
4351
4351
|
output: { element: "div", class: "set-box" },
|
|
@@ -4458,7 +4458,7 @@ const wi = {
|
|
|
4458
4458
|
]
|
|
4459
4459
|
}
|
|
4460
4460
|
};
|
|
4461
|
-
function
|
|
4461
|
+
function Ce({
|
|
4462
4462
|
description: t,
|
|
4463
4463
|
headingLevel: n,
|
|
4464
4464
|
href: e,
|
|
@@ -4467,20 +4467,20 @@ function pe({
|
|
|
4467
4467
|
surface: a,
|
|
4468
4468
|
title: o
|
|
4469
4469
|
}) {
|
|
4470
|
-
const d =
|
|
4470
|
+
const d = v(i), s = n ? `h${n}` : "div", p = e ? [
|
|
4471
4471
|
{
|
|
4472
4472
|
kind: "element",
|
|
4473
4473
|
tag: "a",
|
|
4474
4474
|
attrs: { href: e },
|
|
4475
4475
|
children: [{ kind: "text", value: o }]
|
|
4476
4476
|
}
|
|
4477
|
-
] : [{ kind: "text", value: o }],
|
|
4478
|
-
r && e &&
|
|
4477
|
+
] : [{ kind: "text", value: o }], l = r ? [{ kind: "raw", html: r }] : [];
|
|
4478
|
+
r && e && l.push({
|
|
4479
4479
|
kind: "element",
|
|
4480
4480
|
tag: "span",
|
|
4481
4481
|
attrs: { class: "icon-wrapper" },
|
|
4482
4482
|
children: [
|
|
4483
|
-
|
|
4483
|
+
P({
|
|
4484
4484
|
ariaHidden: !0,
|
|
4485
4485
|
mirrored: "rtl",
|
|
4486
4486
|
name: "arrow-right",
|
|
@@ -4499,7 +4499,7 @@ function pe({
|
|
|
4499
4499
|
kind: "element",
|
|
4500
4500
|
tag: s,
|
|
4501
4501
|
attrs: { class: "title" },
|
|
4502
|
-
children:
|
|
4502
|
+
children: p
|
|
4503
4503
|
},
|
|
4504
4504
|
{
|
|
4505
4505
|
kind: "element",
|
|
@@ -4512,7 +4512,7 @@ function pe({
|
|
|
4512
4512
|
kind: "element",
|
|
4513
4513
|
tag: "p",
|
|
4514
4514
|
attrs: { class: "note" },
|
|
4515
|
-
children:
|
|
4515
|
+
children: l
|
|
4516
4516
|
}), {
|
|
4517
4517
|
kind: "element",
|
|
4518
4518
|
tag: "div",
|
|
@@ -4524,10 +4524,10 @@ function pe({
|
|
|
4524
4524
|
children: c
|
|
4525
4525
|
};
|
|
4526
4526
|
}
|
|
4527
|
-
function
|
|
4528
|
-
return
|
|
4527
|
+
function Bi(t) {
|
|
4528
|
+
return m(Ce(t));
|
|
4529
4529
|
}
|
|
4530
|
-
const
|
|
4530
|
+
const Oi = {
|
|
4531
4531
|
name: "card",
|
|
4532
4532
|
description: "Use `card` to display a summary for a single topic.",
|
|
4533
4533
|
output: {
|
|
@@ -4595,7 +4595,7 @@ const xi = {
|
|
|
4595
4595
|
]
|
|
4596
4596
|
}
|
|
4597
4597
|
};
|
|
4598
|
-
function
|
|
4598
|
+
function Le({
|
|
4599
4599
|
checked: t,
|
|
4600
4600
|
description: n,
|
|
4601
4601
|
disabled: e,
|
|
@@ -4605,12 +4605,12 @@ function ce({
|
|
|
4605
4605
|
name: o,
|
|
4606
4606
|
required: d,
|
|
4607
4607
|
size: s = "md",
|
|
4608
|
-
value:
|
|
4608
|
+
value: p
|
|
4609
4609
|
}) {
|
|
4610
|
-
const
|
|
4611
|
-
if (c && !
|
|
4610
|
+
const l = v(i), c = n?.trim();
|
|
4611
|
+
if (c && !l)
|
|
4612
4612
|
throw new Error("id must be provided when description is provided.");
|
|
4613
|
-
const
|
|
4613
|
+
const h = c ? `${l}-description` : void 0, b = !!e, f = [
|
|
4614
4614
|
{
|
|
4615
4615
|
kind: "element",
|
|
4616
4616
|
tag: "label",
|
|
@@ -4620,16 +4620,16 @@ function ce({
|
|
|
4620
4620
|
kind: "element",
|
|
4621
4621
|
tag: "input",
|
|
4622
4622
|
attrs: {
|
|
4623
|
-
"aria-describedby":
|
|
4624
|
-
"aria-invalid": !
|
|
4623
|
+
"aria-describedby": h,
|
|
4624
|
+
"aria-invalid": !b && !!r ? "true" : void 0,
|
|
4625
4625
|
checked: !!t,
|
|
4626
4626
|
class: "checkbox",
|
|
4627
|
-
disabled:
|
|
4628
|
-
id:
|
|
4627
|
+
disabled: b,
|
|
4628
|
+
id: l,
|
|
4629
4629
|
name: o || void 0,
|
|
4630
4630
|
required: !!d,
|
|
4631
4631
|
type: "checkbox",
|
|
4632
|
-
value:
|
|
4632
|
+
value: p || void 0
|
|
4633
4633
|
},
|
|
4634
4634
|
children: []
|
|
4635
4635
|
},
|
|
@@ -4642,22 +4642,22 @@ function ce({
|
|
|
4642
4642
|
]
|
|
4643
4643
|
}
|
|
4644
4644
|
];
|
|
4645
|
-
return c &&
|
|
4645
|
+
return c && f.push({
|
|
4646
4646
|
kind: "element",
|
|
4647
4647
|
tag: "p",
|
|
4648
|
-
attrs: { class: "description", id:
|
|
4648
|
+
attrs: { class: "description", id: h },
|
|
4649
4649
|
children: [{ kind: "text", value: c }]
|
|
4650
4650
|
}), {
|
|
4651
4651
|
kind: "element",
|
|
4652
4652
|
tag: "div",
|
|
4653
4653
|
attrs: { class: "set-checkbox", "data-size": s },
|
|
4654
|
-
children:
|
|
4654
|
+
children: f
|
|
4655
4655
|
};
|
|
4656
4656
|
}
|
|
4657
|
-
function
|
|
4658
|
-
return
|
|
4657
|
+
function Pi(t) {
|
|
4658
|
+
return m(Le(t));
|
|
4659
4659
|
}
|
|
4660
|
-
const
|
|
4660
|
+
const Ri = {
|
|
4661
4661
|
name: "checkbox",
|
|
4662
4662
|
description: "Use `checkbox` to let users toggle a single option on or off.",
|
|
4663
4663
|
output: { element: "div", class: "set-checkbox" },
|
|
@@ -4787,13 +4787,13 @@ const zi = {
|
|
|
4787
4787
|
]
|
|
4788
4788
|
}
|
|
4789
4789
|
};
|
|
4790
|
-
function
|
|
4790
|
+
function Me({
|
|
4791
4791
|
children: t,
|
|
4792
4792
|
gutter: n = "default",
|
|
4793
4793
|
id: e,
|
|
4794
4794
|
maxInlineSize: i = "default"
|
|
4795
4795
|
}) {
|
|
4796
|
-
const r =
|
|
4796
|
+
const r = v(e);
|
|
4797
4797
|
return {
|
|
4798
4798
|
kind: "element",
|
|
4799
4799
|
tag: "div",
|
|
@@ -4806,10 +4806,10 @@ function ue({
|
|
|
4806
4806
|
children: t ? [{ kind: "raw", html: t }] : []
|
|
4807
4807
|
};
|
|
4808
4808
|
}
|
|
4809
|
-
function
|
|
4810
|
-
return
|
|
4809
|
+
function Wi(t) {
|
|
4810
|
+
return m(Me(t));
|
|
4811
4811
|
}
|
|
4812
|
-
const
|
|
4812
|
+
const Ui = {
|
|
4813
4813
|
name: "container",
|
|
4814
4814
|
description: "Use `container` to wrap page-level content.",
|
|
4815
4815
|
output: { element: "div", class: "set-container" },
|
|
@@ -4866,14 +4866,14 @@ const Li = {
|
|
|
4866
4866
|
]
|
|
4867
4867
|
}
|
|
4868
4868
|
};
|
|
4869
|
-
function
|
|
4869
|
+
function qe({
|
|
4870
4870
|
children: t,
|
|
4871
4871
|
id: n,
|
|
4872
4872
|
open: e,
|
|
4873
4873
|
summary: i,
|
|
4874
4874
|
inlineSize: r = "full"
|
|
4875
4875
|
}) {
|
|
4876
|
-
const a =
|
|
4876
|
+
const a = v(n);
|
|
4877
4877
|
return {
|
|
4878
4878
|
kind: "element",
|
|
4879
4879
|
tag: "details",
|
|
@@ -4894,7 +4894,7 @@ function he({
|
|
|
4894
4894
|
tag: "span",
|
|
4895
4895
|
attrs: { class: "marker" },
|
|
4896
4896
|
children: [
|
|
4897
|
-
|
|
4897
|
+
P({
|
|
4898
4898
|
ariaHidden: !0,
|
|
4899
4899
|
name: "chevron-right",
|
|
4900
4900
|
size: "sm"
|
|
@@ -4918,10 +4918,10 @@ function he({
|
|
|
4918
4918
|
]
|
|
4919
4919
|
};
|
|
4920
4920
|
}
|
|
4921
|
-
function
|
|
4922
|
-
return
|
|
4921
|
+
function $i(t) {
|
|
4922
|
+
return m(qe(t));
|
|
4923
4923
|
}
|
|
4924
|
-
const
|
|
4924
|
+
const Gi = {
|
|
4925
4925
|
name: "details",
|
|
4926
4926
|
description: "Use `details` to let users expand and collapse a section of content.",
|
|
4927
4927
|
output: { element: "details", class: "set-details" },
|
|
@@ -4980,12 +4980,12 @@ const qi = {
|
|
|
4980
4980
|
]
|
|
4981
4981
|
}
|
|
4982
4982
|
};
|
|
4983
|
-
function
|
|
4983
|
+
function Ie({
|
|
4984
4984
|
id: t,
|
|
4985
4985
|
orientation: n = "horizontal",
|
|
4986
4986
|
tone: e = "default"
|
|
4987
4987
|
} = {}) {
|
|
4988
|
-
const i =
|
|
4988
|
+
const i = v(t);
|
|
4989
4989
|
return {
|
|
4990
4990
|
kind: "element",
|
|
4991
4991
|
tag: n === "horizontal" ? "hr" : "span",
|
|
@@ -4999,10 +4999,10 @@ function me({
|
|
|
4999
4999
|
children: []
|
|
5000
5000
|
};
|
|
5001
5001
|
}
|
|
5002
|
-
function
|
|
5003
|
-
return
|
|
5002
|
+
function Zi(t = {}) {
|
|
5003
|
+
return m(Ie(t));
|
|
5004
5004
|
}
|
|
5005
|
-
const
|
|
5005
|
+
const Fi = {
|
|
5006
5006
|
name: "divider",
|
|
5007
5007
|
description: "Use `divider` to separate sections with a rule.",
|
|
5008
5008
|
output: {
|
|
@@ -5064,7 +5064,7 @@ const Ti = {
|
|
|
5064
5064
|
]
|
|
5065
5065
|
}
|
|
5066
5066
|
};
|
|
5067
|
-
function
|
|
5067
|
+
function qt({
|
|
5068
5068
|
children: t,
|
|
5069
5069
|
description: n,
|
|
5070
5070
|
disabled: e,
|
|
@@ -5076,11 +5076,11 @@ function bt({
|
|
|
5076
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
|
-
if (!
|
|
5079
|
+
if (!V(s))
|
|
5080
5080
|
throw new Error(
|
|
5081
5081
|
"id must start with a letter and contain only letters, numbers, '_', '-', or ':'."
|
|
5082
5082
|
);
|
|
5083
|
-
const
|
|
5083
|
+
const p = d ? `${s}-description` : void 0, l = !!e, c = !l && !!r, h = [
|
|
5084
5084
|
{
|
|
5085
5085
|
kind: "element",
|
|
5086
5086
|
tag: "legend",
|
|
@@ -5088,29 +5088,29 @@ function bt({
|
|
|
5088
5088
|
children: [{ kind: "text", value: a }]
|
|
5089
5089
|
}
|
|
5090
5090
|
];
|
|
5091
|
-
return d &&
|
|
5091
|
+
return d && h.push({
|
|
5092
5092
|
kind: "element",
|
|
5093
5093
|
tag: "p",
|
|
5094
|
-
attrs: { class: "description", id:
|
|
5094
|
+
attrs: { class: "description", id: p },
|
|
5095
5095
|
children: [{ kind: "text", value: d }]
|
|
5096
|
-
}), t &&
|
|
5096
|
+
}), t && h.push({ kind: "raw", html: t }), {
|
|
5097
5097
|
kind: "element",
|
|
5098
5098
|
tag: "fieldset",
|
|
5099
5099
|
attrs: {
|
|
5100
|
-
"aria-describedby": d ?
|
|
5100
|
+
"aria-describedby": d ? p : void 0,
|
|
5101
5101
|
"aria-invalid": c ? "true" : void 0,
|
|
5102
5102
|
class: "set-fieldset",
|
|
5103
5103
|
"data-inline-size": o === "fit" ? "fit" : void 0,
|
|
5104
|
-
disabled:
|
|
5104
|
+
disabled: l,
|
|
5105
5105
|
id: s
|
|
5106
5106
|
},
|
|
5107
|
-
children:
|
|
5107
|
+
children: h
|
|
5108
5108
|
};
|
|
5109
5109
|
}
|
|
5110
|
-
function
|
|
5111
|
-
return
|
|
5110
|
+
function ji(t) {
|
|
5111
|
+
return m(qt(t));
|
|
5112
5112
|
}
|
|
5113
|
-
const
|
|
5113
|
+
const Ki = {
|
|
5114
5114
|
name: "fieldset",
|
|
5115
5115
|
description: "Use `fieldset` to group related form controls under a legend.",
|
|
5116
5116
|
output: { element: "fieldset", class: "set-fieldset" },
|
|
@@ -5198,7 +5198,7 @@ const _i = {
|
|
|
5198
5198
|
]
|
|
5199
5199
|
}
|
|
5200
5200
|
};
|
|
5201
|
-
function
|
|
5201
|
+
function Te({
|
|
5202
5202
|
align: t = "start",
|
|
5203
5203
|
caption: n,
|
|
5204
5204
|
children: e,
|
|
@@ -5206,7 +5206,7 @@ function ke({
|
|
|
5206
5206
|
inlineSize: r = "full",
|
|
5207
5207
|
responsive: a = !1
|
|
5208
5208
|
}) {
|
|
5209
|
-
const o =
|
|
5209
|
+
const o = v(i);
|
|
5210
5210
|
return {
|
|
5211
5211
|
kind: "element",
|
|
5212
5212
|
tag: "figure",
|
|
@@ -5223,7 +5223,7 @@ function ke({
|
|
|
5223
5223
|
tag: "figcaption",
|
|
5224
5224
|
attrs: { class: "figcaption" },
|
|
5225
5225
|
children: [
|
|
5226
|
-
|
|
5226
|
+
et({
|
|
5227
5227
|
as: "span",
|
|
5228
5228
|
children: n,
|
|
5229
5229
|
responsive: a,
|
|
@@ -5234,10 +5234,10 @@ function ke({
|
|
|
5234
5234
|
]
|
|
5235
5235
|
};
|
|
5236
5236
|
}
|
|
5237
|
-
function
|
|
5238
|
-
return
|
|
5237
|
+
function Xi(t) {
|
|
5238
|
+
return m(Te(t));
|
|
5239
5239
|
}
|
|
5240
|
-
const
|
|
5240
|
+
const Qi = {
|
|
5241
5241
|
name: "figure",
|
|
5242
5242
|
description: "Use `figure` to present media with a caption.",
|
|
5243
5243
|
output: { element: "figure", class: "set-figure" },
|
|
@@ -5306,16 +5306,16 @@ const Hi = {
|
|
|
5306
5306
|
}
|
|
5307
5307
|
]
|
|
5308
5308
|
}
|
|
5309
|
-
},
|
|
5309
|
+
}, T = (t) => {
|
|
5310
5310
|
if (t !== void 0)
|
|
5311
5311
|
return String(t);
|
|
5312
5312
|
};
|
|
5313
|
-
function
|
|
5313
|
+
function Ae({
|
|
5314
5314
|
children: t,
|
|
5315
5315
|
gap: n = "default",
|
|
5316
5316
|
id: e
|
|
5317
5317
|
}) {
|
|
5318
|
-
const i =
|
|
5318
|
+
const i = v(e);
|
|
5319
5319
|
return {
|
|
5320
5320
|
kind: "element",
|
|
5321
5321
|
tag: "div",
|
|
@@ -5334,10 +5334,10 @@ function ge({
|
|
|
5334
5334
|
]
|
|
5335
5335
|
};
|
|
5336
5336
|
}
|
|
5337
|
-
function
|
|
5338
|
-
return
|
|
5337
|
+
function Yi(t) {
|
|
5338
|
+
return m(Ae(t));
|
|
5339
5339
|
}
|
|
5340
|
-
function
|
|
5340
|
+
function _e({
|
|
5341
5341
|
align: t,
|
|
5342
5342
|
children: n,
|
|
5343
5343
|
colSpan: e,
|
|
@@ -5347,43 +5347,43 @@ function be({
|
|
|
5347
5347
|
colStartNarrow: o,
|
|
5348
5348
|
colStartWide: d,
|
|
5349
5349
|
id: s,
|
|
5350
|
-
justify:
|
|
5351
|
-
rowSpan:
|
|
5350
|
+
justify: p,
|
|
5351
|
+
rowSpan: l,
|
|
5352
5352
|
rowSpanNarrow: c,
|
|
5353
|
-
rowSpanWide:
|
|
5354
|
-
rowStart:
|
|
5355
|
-
rowStartNarrow:
|
|
5356
|
-
rowStartWide:
|
|
5353
|
+
rowSpanWide: h,
|
|
5354
|
+
rowStart: b,
|
|
5355
|
+
rowStartNarrow: S,
|
|
5356
|
+
rowStartWide: f
|
|
5357
5357
|
}) {
|
|
5358
|
-
const
|
|
5358
|
+
const E = v(s);
|
|
5359
5359
|
return {
|
|
5360
5360
|
kind: "element",
|
|
5361
5361
|
tag: "div",
|
|
5362
5362
|
attrs: {
|
|
5363
5363
|
class: "set-grid-item",
|
|
5364
5364
|
"data-align": t,
|
|
5365
|
-
"data-justify":
|
|
5366
|
-
"data-col-span-narrow":
|
|
5367
|
-
"data-col-start-narrow":
|
|
5368
|
-
"data-col-span":
|
|
5369
|
-
"data-col-start":
|
|
5370
|
-
"data-col-span-wide":
|
|
5371
|
-
"data-col-start-wide":
|
|
5372
|
-
"data-row-span-narrow":
|
|
5373
|
-
"data-row-start-narrow":
|
|
5374
|
-
"data-row-span":
|
|
5375
|
-
"data-row-start":
|
|
5376
|
-
"data-row-span-wide":
|
|
5377
|
-
"data-row-start-wide":
|
|
5378
|
-
id:
|
|
5365
|
+
"data-justify": p,
|
|
5366
|
+
"data-col-span-narrow": T(i),
|
|
5367
|
+
"data-col-start-narrow": T(o),
|
|
5368
|
+
"data-col-span": T(e),
|
|
5369
|
+
"data-col-start": T(a),
|
|
5370
|
+
"data-col-span-wide": T(r),
|
|
5371
|
+
"data-col-start-wide": T(d),
|
|
5372
|
+
"data-row-span-narrow": T(c),
|
|
5373
|
+
"data-row-start-narrow": T(S),
|
|
5374
|
+
"data-row-span": T(l),
|
|
5375
|
+
"data-row-start": T(b),
|
|
5376
|
+
"data-row-span-wide": T(h),
|
|
5377
|
+
"data-row-start-wide": T(f),
|
|
5378
|
+
id: E
|
|
5379
5379
|
},
|
|
5380
5380
|
children: n ? [{ kind: "raw", html: n }] : []
|
|
5381
5381
|
};
|
|
5382
5382
|
}
|
|
5383
|
-
function
|
|
5384
|
-
return
|
|
5383
|
+
function Ji(t) {
|
|
5384
|
+
return m(_e(t));
|
|
5385
5385
|
}
|
|
5386
|
-
const
|
|
5386
|
+
const tn = {
|
|
5387
5387
|
name: "grid",
|
|
5388
5388
|
description: "Use `grid` to lay out content in a 12-column responsive grid.",
|
|
5389
5389
|
output: { element: "div", class: "set-grid" },
|
|
@@ -5424,12 +5424,12 @@ const Oi = {
|
|
|
5424
5424
|
}
|
|
5425
5425
|
]
|
|
5426
5426
|
}
|
|
5427
|
-
},
|
|
5427
|
+
}, A = {
|
|
5428
5428
|
kind: "number",
|
|
5429
5429
|
min: 1,
|
|
5430
5430
|
max: 12,
|
|
5431
5431
|
integer: !0
|
|
5432
|
-
},
|
|
5432
|
+
}, en = {
|
|
5433
5433
|
name: "grid-item",
|
|
5434
5434
|
description: "Use `grid-item` to place content within a `grid` layout.",
|
|
5435
5435
|
output: { element: "div", class: "set-grid-item" },
|
|
@@ -5449,11 +5449,11 @@ const Oi = {
|
|
|
5449
5449
|
},
|
|
5450
5450
|
colSpan: {
|
|
5451
5451
|
description: "Columns spanned at the default breakpoint.",
|
|
5452
|
-
type:
|
|
5452
|
+
type: A
|
|
5453
5453
|
},
|
|
5454
5454
|
colStart: {
|
|
5455
5455
|
description: "Starting column at the default breakpoint.",
|
|
5456
|
-
type:
|
|
5456
|
+
type: A
|
|
5457
5457
|
},
|
|
5458
5458
|
id: {
|
|
5459
5459
|
description: "DOM id.",
|
|
@@ -5461,43 +5461,43 @@ const Oi = {
|
|
|
5461
5461
|
},
|
|
5462
5462
|
rowSpan: {
|
|
5463
5463
|
description: "Rows spanned at the default breakpoint.",
|
|
5464
|
-
type:
|
|
5464
|
+
type: A
|
|
5465
5465
|
},
|
|
5466
5466
|
rowSpanNarrow: {
|
|
5467
5467
|
description: "Rows spanned at the narrow breakpoint.",
|
|
5468
|
-
type:
|
|
5468
|
+
type: A
|
|
5469
5469
|
},
|
|
5470
5470
|
rowSpanWide: {
|
|
5471
5471
|
description: "Rows spanned at the wide breakpoint. Effect is only visible above the wide breakpoint.",
|
|
5472
|
-
type:
|
|
5472
|
+
type: A
|
|
5473
5473
|
},
|
|
5474
5474
|
rowStart: {
|
|
5475
5475
|
description: "Starting row at the default breakpoint.",
|
|
5476
|
-
type:
|
|
5476
|
+
type: A
|
|
5477
5477
|
},
|
|
5478
5478
|
rowStartNarrow: {
|
|
5479
5479
|
description: "Starting row at the narrow breakpoint.",
|
|
5480
|
-
type:
|
|
5480
|
+
type: A
|
|
5481
5481
|
},
|
|
5482
5482
|
rowStartWide: {
|
|
5483
5483
|
description: "Starting row at the wide breakpoint. Effect is only visible above the wide breakpoint.",
|
|
5484
|
-
type:
|
|
5484
|
+
type: A
|
|
5485
5485
|
},
|
|
5486
5486
|
colSpanNarrow: {
|
|
5487
5487
|
description: "Columns spanned at the narrow breakpoint.",
|
|
5488
|
-
type:
|
|
5488
|
+
type: A
|
|
5489
5489
|
},
|
|
5490
5490
|
colStartNarrow: {
|
|
5491
5491
|
description: "Starting column at the narrow breakpoint.",
|
|
5492
|
-
type:
|
|
5492
|
+
type: A
|
|
5493
5493
|
},
|
|
5494
5494
|
colSpanWide: {
|
|
5495
5495
|
description: "Columns spanned at the wide breakpoint. Effect is only visible above the wide breakpoint.",
|
|
5496
|
-
type:
|
|
5496
|
+
type: A
|
|
5497
5497
|
},
|
|
5498
5498
|
colStartWide: {
|
|
5499
5499
|
description: "Starting column at the wide breakpoint. Effect is only visible above the wide breakpoint.",
|
|
5500
|
-
type:
|
|
5500
|
+
type: A
|
|
5501
5501
|
}
|
|
5502
5502
|
},
|
|
5503
5503
|
events: {},
|
|
@@ -5596,7 +5596,7 @@ const Oi = {
|
|
|
5596
5596
|
]
|
|
5597
5597
|
}
|
|
5598
5598
|
};
|
|
5599
|
-
function
|
|
5599
|
+
function De({
|
|
5600
5600
|
align: t = "start",
|
|
5601
5601
|
id: n,
|
|
5602
5602
|
level: e,
|
|
@@ -5605,7 +5605,7 @@ function ve({
|
|
|
5605
5605
|
size: a = "md",
|
|
5606
5606
|
text: o
|
|
5607
5607
|
}) {
|
|
5608
|
-
const d =
|
|
5608
|
+
const d = v(n);
|
|
5609
5609
|
return {
|
|
5610
5610
|
kind: "element",
|
|
5611
5611
|
tag: e ? `h${e}` : "span",
|
|
@@ -5620,10 +5620,10 @@ function ve({
|
|
|
5620
5620
|
children: [{ kind: "text", value: o }]
|
|
5621
5621
|
};
|
|
5622
5622
|
}
|
|
5623
|
-
function
|
|
5624
|
-
return
|
|
5623
|
+
function nn(t) {
|
|
5624
|
+
return m(De(t));
|
|
5625
5625
|
}
|
|
5626
|
-
const
|
|
5626
|
+
const rn = {
|
|
5627
5627
|
name: "heading",
|
|
5628
5628
|
description: "Use `heading` to render heading text with consistent type.",
|
|
5629
5629
|
output: {
|
|
@@ -5718,114 +5718,247 @@ const Ri = {
|
|
|
5718
5718
|
]
|
|
5719
5719
|
}
|
|
5720
5720
|
};
|
|
5721
|
-
function
|
|
5721
|
+
function Ve({
|
|
5722
5722
|
adaptive: t,
|
|
5723
|
-
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
|
|
5736
|
-
|
|
5737
|
-
|
|
5723
|
+
animated: n,
|
|
5724
|
+
alt: e = "",
|
|
5725
|
+
aspectRatio: i,
|
|
5726
|
+
fit: r = "intrinsic",
|
|
5727
|
+
gravity: a = "C",
|
|
5728
|
+
height: o,
|
|
5729
|
+
id: d,
|
|
5730
|
+
lazy: s,
|
|
5731
|
+
leadSrc: p,
|
|
5732
|
+
priority: l,
|
|
5733
|
+
radius: c,
|
|
5734
|
+
shadow: h,
|
|
5735
|
+
sizes: b,
|
|
5736
|
+
sources: S,
|
|
5737
|
+
src: f,
|
|
5738
|
+
srcSet: E,
|
|
5739
|
+
still: q,
|
|
5740
|
+
width: w
|
|
5738
5741
|
}) {
|
|
5739
|
-
const
|
|
5740
|
-
const
|
|
5741
|
-
if (!
|
|
5742
|
-
throw new Error(`sources[${
|
|
5742
|
+
const k = r === "cover", L = v(d), x = f.trim(), z = E?.trim(), _ = p?.trim(), D = q?.trim(), N = b?.trim(), M = S?.map((u, C) => {
|
|
5743
|
+
const I = u.srcSet.trim(), y = u.media?.trim(), g = u.type?.trim(), Dt = u.sizes?.trim(), Vt = u.leadSrc?.trim(), Ht = u.still?.trim();
|
|
5744
|
+
if (!I)
|
|
5745
|
+
throw new Error(`sources[${C}].srcSet must be non-empty.`);
|
|
5743
5746
|
return {
|
|
5744
|
-
height:
|
|
5745
|
-
|
|
5746
|
-
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
|
|
5747
|
+
height: u.height,
|
|
5748
|
+
leadSrc: Vt || void 0,
|
|
5749
|
+
media: y || void 0,
|
|
5750
|
+
sizes: Dt || void 0,
|
|
5751
|
+
srcSet: I,
|
|
5752
|
+
still: Ht || void 0,
|
|
5753
|
+
type: g || void 0,
|
|
5754
|
+
width: u.width
|
|
5750
5755
|
};
|
|
5751
5756
|
}) || [];
|
|
5752
|
-
if (!
|
|
5757
|
+
if (!x)
|
|
5753
5758
|
throw new Error("src must be a non-empty string.");
|
|
5754
5759
|
if (t && [
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
...
|
|
5758
|
-
].some((
|
|
5760
|
+
x,
|
|
5761
|
+
z,
|
|
5762
|
+
...M.map((u) => u.srcSet)
|
|
5763
|
+
].some((u) => u?.includes("#")))
|
|
5759
5764
|
throw new Error("adaptive sources must not contain URL fragments.");
|
|
5760
|
-
const
|
|
5761
|
-
|
|
5762
|
-
|
|
5765
|
+
const U = !!(n && t), it = !!(n && _), $ = !!_ || M.some((u) => u.leadSrc);
|
|
5766
|
+
if (!n && $)
|
|
5767
|
+
throw new Error("leadSrc requires animated.");
|
|
5768
|
+
if (n) {
|
|
5769
|
+
const u = [
|
|
5770
|
+
x,
|
|
5771
|
+
z,
|
|
5772
|
+
_,
|
|
5773
|
+
...M.flatMap((y) => [y.srcSet, y.leadSrc])
|
|
5774
|
+
].filter((y) => !!y), C = u.filter((y) => y.includes("{scheme}"));
|
|
5775
|
+
if (t && C.length !== u.length)
|
|
5776
|
+
throw new Error(
|
|
5777
|
+
"adaptive animated sources must contain a {scheme} placeholder."
|
|
5778
|
+
);
|
|
5779
|
+
if (!t && C.length > 0)
|
|
5780
|
+
throw new Error(
|
|
5781
|
+
"the {scheme} placeholder requires adaptive to enable light/dark."
|
|
5782
|
+
);
|
|
5783
|
+
if (!D)
|
|
5784
|
+
throw new Error("animated requires a still.");
|
|
5785
|
+
if ([
|
|
5786
|
+
D,
|
|
5787
|
+
...M.map((y) => y.still)
|
|
5788
|
+
].filter((y) => !!y).some((y) => y.includes("#")))
|
|
5789
|
+
throw new Error("animated still must not contain URL fragments.");
|
|
5790
|
+
}
|
|
5791
|
+
const mt = (u, C) => u.split(/,\s+/).map((I) => {
|
|
5792
|
+
const [y, ...g] = I.trim().split(/\s+/);
|
|
5793
|
+
if (!y || g.length > 1)
|
|
5763
5794
|
throw new Error(
|
|
5764
5795
|
"adaptive srcSet candidates must be a URL plus at most one descriptor, separated by a comma and whitespace."
|
|
5765
5796
|
);
|
|
5766
|
-
return [`${
|
|
5767
|
-
}).join(", "),
|
|
5768
|
-
const
|
|
5797
|
+
return [`${y}#${C}`, ...g].join(" ");
|
|
5798
|
+
}).join(", "), nt = (u) => {
|
|
5799
|
+
const C = {
|
|
5769
5800
|
kind: "element",
|
|
5770
5801
|
tag: "img",
|
|
5771
5802
|
attrs: {
|
|
5772
|
-
alt:
|
|
5803
|
+
alt: e,
|
|
5773
5804
|
class: "img",
|
|
5774
|
-
"data-scheme":
|
|
5775
|
-
fetchpriority:
|
|
5776
|
-
height:
|
|
5777
|
-
loading:
|
|
5778
|
-
sizes:
|
|
5779
|
-
src:
|
|
5780
|
-
srcset:
|
|
5781
|
-
width:
|
|
5805
|
+
"data-scheme": u && M.length === 0 ? u : void 0,
|
|
5806
|
+
fetchpriority: l ? "high" : void 0,
|
|
5807
|
+
height: k ? void 0 : o ? String(o) : void 0,
|
|
5808
|
+
loading: s && !l ? "lazy" : void 0,
|
|
5809
|
+
sizes: M.length > 0 ? void 0 : N || void 0,
|
|
5810
|
+
src: u ? `${x}#${u}` : x,
|
|
5811
|
+
srcset: z && u ? mt(z, u) : z || void 0,
|
|
5812
|
+
width: k ? void 0 : w ? String(w) : void 0
|
|
5782
5813
|
},
|
|
5783
5814
|
children: []
|
|
5784
5815
|
};
|
|
5785
|
-
if (
|
|
5786
|
-
return
|
|
5787
|
-
const
|
|
5816
|
+
if (M.length === 0)
|
|
5817
|
+
return C;
|
|
5818
|
+
const I = M.map((y) => ({
|
|
5788
5819
|
kind: "element",
|
|
5789
5820
|
tag: "source",
|
|
5790
5821
|
attrs: {
|
|
5791
|
-
height:
|
|
5792
|
-
media:
|
|
5793
|
-
sizes:
|
|
5794
|
-
srcset:
|
|
5795
|
-
type:
|
|
5796
|
-
width:
|
|
5822
|
+
height: y.height ? String(y.height) : void 0,
|
|
5823
|
+
media: y.media,
|
|
5824
|
+
sizes: y.sizes,
|
|
5825
|
+
srcset: u ? mt(y.srcSet, u) : y.srcSet,
|
|
5826
|
+
type: y.type,
|
|
5827
|
+
width: y.width ? String(y.width) : void 0
|
|
5797
5828
|
},
|
|
5798
5829
|
children: []
|
|
5799
5830
|
}));
|
|
5800
5831
|
return {
|
|
5801
5832
|
kind: "element",
|
|
5802
5833
|
tag: "picture",
|
|
5803
|
-
attrs: { "data-scheme":
|
|
5804
|
-
children: [...
|
|
5834
|
+
attrs: { "data-scheme": u },
|
|
5835
|
+
children: [...I, C]
|
|
5805
5836
|
};
|
|
5806
|
-
},
|
|
5807
|
-
|
|
5837
|
+
}, rt = "(prefers-reduced-motion: reduce)", R = (u, C) => C ? u.replaceAll("{scheme}", C) : u, at = (u, C) => C ? `${u}#${C}` : u, kt = (u) => {
|
|
5838
|
+
const C = M.filter((g) => g.still).map((g) => ({
|
|
5839
|
+
kind: "element",
|
|
5840
|
+
tag: "source",
|
|
5841
|
+
attrs: {
|
|
5842
|
+
height: g.height ? String(g.height) : void 0,
|
|
5843
|
+
media: g.media ? `${rt} and ${g.media}` : rt,
|
|
5844
|
+
srcset: at(g.still, u),
|
|
5845
|
+
width: g.width ? String(g.width) : void 0
|
|
5846
|
+
},
|
|
5847
|
+
children: []
|
|
5848
|
+
}));
|
|
5849
|
+
C.push({
|
|
5850
|
+
kind: "element",
|
|
5851
|
+
tag: "source",
|
|
5852
|
+
attrs: {
|
|
5853
|
+
media: rt,
|
|
5854
|
+
srcset: at(D, u)
|
|
5855
|
+
},
|
|
5856
|
+
children: []
|
|
5857
|
+
});
|
|
5858
|
+
const I = M.map((g) => ({
|
|
5859
|
+
kind: "element",
|
|
5860
|
+
tag: "source",
|
|
5861
|
+
attrs: {
|
|
5862
|
+
height: g.height ? String(g.height) : void 0,
|
|
5863
|
+
media: g.media,
|
|
5864
|
+
sizes: g.sizes,
|
|
5865
|
+
srcset: R(g.srcSet, u),
|
|
5866
|
+
type: g.type,
|
|
5867
|
+
width: g.width ? String(g.width) : void 0
|
|
5868
|
+
},
|
|
5869
|
+
children: []
|
|
5870
|
+
})), y = {
|
|
5871
|
+
kind: "element",
|
|
5872
|
+
tag: "img",
|
|
5873
|
+
attrs: {
|
|
5874
|
+
alt: e,
|
|
5875
|
+
class: "img",
|
|
5876
|
+
fetchpriority: l ? "high" : void 0,
|
|
5877
|
+
height: k ? void 0 : o ? String(o) : void 0,
|
|
5878
|
+
loading: s && !l ? "lazy" : void 0,
|
|
5879
|
+
sizes: M.length > 0 ? void 0 : N || void 0,
|
|
5880
|
+
src: R(x, u),
|
|
5881
|
+
srcset: z ? R(z, u) : void 0,
|
|
5882
|
+
width: k ? void 0 : w ? String(w) : void 0
|
|
5883
|
+
},
|
|
5884
|
+
children: []
|
|
5885
|
+
};
|
|
5886
|
+
return {
|
|
5887
|
+
kind: "element",
|
|
5888
|
+
tag: "picture",
|
|
5889
|
+
attrs: { "data-scheme": u },
|
|
5890
|
+
children: [...C, ...I, y]
|
|
5891
|
+
};
|
|
5892
|
+
}, At = (u) => {
|
|
5893
|
+
const C = "(prefers-reduced-motion: no-preference)", I = M.map((g) => {
|
|
5894
|
+
if (g.leadSrc)
|
|
5895
|
+
return {
|
|
5896
|
+
kind: "element",
|
|
5897
|
+
tag: "source",
|
|
5898
|
+
attrs: {
|
|
5899
|
+
height: g.height ? String(g.height) : void 0,
|
|
5900
|
+
media: g.media ? `${C} and ${g.media}` : C,
|
|
5901
|
+
sizes: g.sizes,
|
|
5902
|
+
srcset: R(g.leadSrc, u),
|
|
5903
|
+
type: g.type,
|
|
5904
|
+
width: g.width ? String(g.width) : void 0
|
|
5905
|
+
},
|
|
5906
|
+
children: []
|
|
5907
|
+
};
|
|
5908
|
+
}).filter((g) => !!g);
|
|
5909
|
+
I.push({
|
|
5910
|
+
kind: "element",
|
|
5911
|
+
tag: "source",
|
|
5912
|
+
attrs: {
|
|
5913
|
+
media: C,
|
|
5914
|
+
sizes: M.length > 0 ? void 0 : N || void 0,
|
|
5915
|
+
srcset: R(_, u)
|
|
5916
|
+
},
|
|
5917
|
+
children: []
|
|
5918
|
+
});
|
|
5919
|
+
const y = {
|
|
5920
|
+
kind: "element",
|
|
5921
|
+
tag: "img",
|
|
5922
|
+
attrs: {
|
|
5923
|
+
alt: "",
|
|
5924
|
+
class: "img",
|
|
5925
|
+
height: k ? void 0 : o ? String(o) : void 0,
|
|
5926
|
+
src: at(D, u),
|
|
5927
|
+
width: k ? void 0 : w ? String(w) : void 0
|
|
5928
|
+
},
|
|
5929
|
+
children: []
|
|
5930
|
+
};
|
|
5931
|
+
return {
|
|
5932
|
+
kind: "element",
|
|
5933
|
+
tag: "picture",
|
|
5934
|
+
attrs: { "data-scheme": u, "data-layer": "lead" },
|
|
5935
|
+
children: [...I, y]
|
|
5936
|
+
};
|
|
5937
|
+
}, ot = (u) => it ? [kt(u), At(u)] : [kt(u)], _t = n ? U ? [...ot("light"), ...ot("dark")] : ot() : t ? [nt("light"), nt("dark")] : [nt()], G = [];
|
|
5938
|
+
return o && G.push(`--set-image-block-size: ${o / 16}rem`), w && G.push(`--set-image-inline-size: ${w / 16}rem`), {
|
|
5808
5939
|
kind: "element",
|
|
5809
5940
|
tag: "div",
|
|
5810
5941
|
attrs: {
|
|
5811
5942
|
class: "set-image",
|
|
5812
5943
|
"data-adaptive": !!t,
|
|
5813
|
-
"data-
|
|
5814
|
-
"data-
|
|
5815
|
-
"data-
|
|
5816
|
-
"data-
|
|
5817
|
-
"data-
|
|
5818
|
-
"data-
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
|
|
5944
|
+
"data-animated": !!n,
|
|
5945
|
+
"data-sequenced": it,
|
|
5946
|
+
"data-aspect-ratio": k && !o ? i : void 0,
|
|
5947
|
+
"data-fluid": r === "fluid",
|
|
5948
|
+
"data-gravity": k && a !== "C" ? a : void 0,
|
|
5949
|
+
"data-shadow": !!h,
|
|
5950
|
+
"data-object-fit": k ? "cover" : void 0,
|
|
5951
|
+
"data-radius": !!c,
|
|
5952
|
+
id: L,
|
|
5953
|
+
style: G.length > 0 ? G.join("; ") : void 0
|
|
5954
|
+
},
|
|
5955
|
+
children: _t
|
|
5823
5956
|
};
|
|
5824
5957
|
}
|
|
5825
|
-
function
|
|
5826
|
-
return
|
|
5958
|
+
function He(t) {
|
|
5959
|
+
return m(Ve(t));
|
|
5827
5960
|
}
|
|
5828
|
-
const
|
|
5961
|
+
const an = {
|
|
5829
5962
|
name: "image",
|
|
5830
5963
|
description: "Use `image` to render a responsive image with intrinsic, fluid, or cover fit, and optional art-directed `sources`.",
|
|
5831
5964
|
output: { element: "div", class: "set-image" },
|
|
@@ -5833,7 +5966,12 @@ const Wi = {
|
|
|
5833
5966
|
props: {
|
|
5834
5967
|
adaptive: {
|
|
5835
5968
|
default: !1,
|
|
5836
|
-
description: "Shows the image's light or dark variant to match the surrounding color scheme. Use with adaptive assets exported from Screen, which carry both variants in one file; the component selects one by adding `#light`/`#dark` to the URL.",
|
|
5969
|
+
description: "Shows the image's light or dark variant to match the surrounding color scheme. Use with adaptive assets exported from Screen, which carry both variants in one file; the component selects one by adding `#light`/`#dark` to the URL. With `animated`, it pairs light/dark webp instead, via a `{scheme}` placeholder in the URLs.",
|
|
5970
|
+
type: { kind: "boolean" }
|
|
5971
|
+
},
|
|
5972
|
+
animated: {
|
|
5973
|
+
default: !1,
|
|
5974
|
+
description: "Renders an animated image (e.g. `webp`) with a required `still` shown when the user prefers reduced motion. Combine with `adaptive` for light/dark theming: the `src`/`srcSet`/`sources` URLs then carry no Cloudinary version and a `{scheme}` placeholder — matching Screen's animated exports — which the component substitutes across a light/dark pair. The `still` gets `#light`/`#dark` appended. Without `adaptive`, renders a single, unthemed animated asset. Add a `leadSrc` to sequence: it plays once as an overlay, then reveals `src` after a fixed hold.",
|
|
5837
5975
|
type: { kind: "boolean" }
|
|
5838
5976
|
},
|
|
5839
5977
|
alt: {
|
|
@@ -5918,6 +6056,14 @@ const Wi = {
|
|
|
5918
6056
|
required: !0,
|
|
5919
6057
|
type: { kind: "string" }
|
|
5920
6058
|
},
|
|
6059
|
+
leadSrc: {
|
|
6060
|
+
description: "Intro overlay for this source in an `animated` sequence.",
|
|
6061
|
+
type: { kind: "string" }
|
|
6062
|
+
},
|
|
6063
|
+
still: {
|
|
6064
|
+
description: "Reduced-motion still for this source, used when `animated`. For a light/dark still, use an adaptive SVG.",
|
|
6065
|
+
type: { kind: "string" }
|
|
6066
|
+
},
|
|
5921
6067
|
type: {
|
|
5922
6068
|
description: "MIME type for the source resources.",
|
|
5923
6069
|
type: { kind: "string" }
|
|
@@ -5933,6 +6079,15 @@ const Wi = {
|
|
|
5933
6079
|
description: "Candidate sources for the fallback image.",
|
|
5934
6080
|
type: { kind: "string" }
|
|
5935
6081
|
},
|
|
6082
|
+
leadSrc: {
|
|
6083
|
+
description: "An intro overlay that sequences an `animated` image: `leadSrc` plays once, then the component reveals `src` after a fixed hold. Follows the same `{scheme}` rules as `animated` sources.",
|
|
6084
|
+
type: { kind: "string" }
|
|
6085
|
+
},
|
|
6086
|
+
still: {
|
|
6087
|
+
description: "Reduced-motion still shown when `animated` and the user prefers reduced motion. Any image works; for a light/dark still use an adaptive SVG exported from Screen, which the component selects with `#light`/`#dark` when combined with `adaptive`.",
|
|
6088
|
+
requiredWhen: "`animated` is set",
|
|
6089
|
+
type: { kind: "string" }
|
|
6090
|
+
},
|
|
5936
6091
|
src: {
|
|
5937
6092
|
description: "Image source URL.",
|
|
5938
6093
|
required: !0,
|
|
@@ -5951,6 +6106,16 @@ const Wi = {
|
|
|
5951
6106
|
attribute: "data-adaptive",
|
|
5952
6107
|
condition: { kind: "when-truthy", prop: "adaptive" }
|
|
5953
6108
|
},
|
|
6109
|
+
{
|
|
6110
|
+
target: { on: "host" },
|
|
6111
|
+
attribute: "data-animated",
|
|
6112
|
+
condition: { kind: "when-truthy", prop: "animated" }
|
|
6113
|
+
},
|
|
6114
|
+
{
|
|
6115
|
+
target: { on: "host" },
|
|
6116
|
+
attribute: "data-sequenced",
|
|
6117
|
+
condition: { kind: "when-non-empty", prop: "leadSrc" }
|
|
6118
|
+
},
|
|
5954
6119
|
{
|
|
5955
6120
|
target: { on: "host" },
|
|
5956
6121
|
attribute: "data-object-fit",
|
|
@@ -6023,7 +6188,7 @@ const Wi = {
|
|
|
6023
6188
|
]
|
|
6024
6189
|
}
|
|
6025
6190
|
};
|
|
6026
|
-
function
|
|
6191
|
+
function Ne({
|
|
6027
6192
|
align: t = "center",
|
|
6028
6193
|
as: n = "div",
|
|
6029
6194
|
children: e,
|
|
@@ -6032,7 +6197,7 @@ function we({
|
|
|
6032
6197
|
justify: a = "start",
|
|
6033
6198
|
nowrap: o
|
|
6034
6199
|
}) {
|
|
6035
|
-
const d =
|
|
6200
|
+
const d = v(r);
|
|
6036
6201
|
return {
|
|
6037
6202
|
kind: "element",
|
|
6038
6203
|
tag: n,
|
|
@@ -6047,10 +6212,10 @@ function we({
|
|
|
6047
6212
|
children: e ? [{ kind: "raw", html: e }] : []
|
|
6048
6213
|
};
|
|
6049
6214
|
}
|
|
6050
|
-
function
|
|
6051
|
-
return
|
|
6215
|
+
function on(t) {
|
|
6216
|
+
return m(Ne(t));
|
|
6052
6217
|
}
|
|
6053
|
-
const
|
|
6218
|
+
const dn = {
|
|
6054
6219
|
name: "inline",
|
|
6055
6220
|
description: "Use `inline` to lay out content in a horizontal row.",
|
|
6056
6221
|
output: {
|
|
@@ -6135,7 +6300,7 @@ const $i = {
|
|
|
6135
6300
|
]
|
|
6136
6301
|
}
|
|
6137
6302
|
};
|
|
6138
|
-
function
|
|
6303
|
+
function Be({
|
|
6139
6304
|
autocomplete: t,
|
|
6140
6305
|
description: n,
|
|
6141
6306
|
disabled: e,
|
|
@@ -6145,69 +6310,69 @@ function Se({
|
|
|
6145
6310
|
name: o,
|
|
6146
6311
|
pattern: d,
|
|
6147
6312
|
readOnly: s,
|
|
6148
|
-
required:
|
|
6149
|
-
size:
|
|
6313
|
+
required: p,
|
|
6314
|
+
size: l = "md",
|
|
6150
6315
|
spellcheck: c,
|
|
6151
|
-
type:
|
|
6152
|
-
value:
|
|
6153
|
-
inlineSize:
|
|
6316
|
+
type: h = "text",
|
|
6317
|
+
value: b,
|
|
6318
|
+
inlineSize: S = "full"
|
|
6154
6319
|
}) {
|
|
6155
|
-
const
|
|
6156
|
-
if (!
|
|
6320
|
+
const f = i.trim(), E = n?.trim(), q = t === !1 ? !1 : t?.trim(), w = o?.trim(), k = d?.trim(), L = b;
|
|
6321
|
+
if (!f)
|
|
6157
6322
|
throw new Error("id must be a non-empty string.");
|
|
6158
|
-
if (!
|
|
6323
|
+
if (!V(f))
|
|
6159
6324
|
throw new Error(
|
|
6160
6325
|
"id must start with a letter and contain only letters, numbers, '_', '-', or ':'."
|
|
6161
6326
|
);
|
|
6162
|
-
const
|
|
6327
|
+
const x = E ? `${f}-description` : void 0, z = h === "numeric", _ = z ? "text" : h, D = k || (z ? "^[0-9]*$" : void 0), N = c === void 0 && z ? !1 : c, M = !!e, U = !M && !!s, $ = [
|
|
6163
6328
|
{
|
|
6164
6329
|
kind: "element",
|
|
6165
6330
|
tag: "label",
|
|
6166
|
-
attrs: { class: "label", for:
|
|
6331
|
+
attrs: { class: "label", for: f },
|
|
6167
6332
|
children: [{ kind: "text", value: a }]
|
|
6168
6333
|
},
|
|
6169
6334
|
{
|
|
6170
6335
|
kind: "element",
|
|
6171
6336
|
tag: "input",
|
|
6172
6337
|
attrs: {
|
|
6173
|
-
"aria-describedby":
|
|
6174
|
-
"aria-invalid": !
|
|
6175
|
-
autocomplete:
|
|
6338
|
+
"aria-describedby": x,
|
|
6339
|
+
"aria-invalid": !M && !U && !!r ? "true" : void 0,
|
|
6340
|
+
autocomplete: q === !1 ? "off" : q || void 0,
|
|
6176
6341
|
class: "input",
|
|
6177
|
-
disabled:
|
|
6178
|
-
id:
|
|
6179
|
-
inputmode:
|
|
6180
|
-
name:
|
|
6181
|
-
pattern:
|
|
6182
|
-
readonly:
|
|
6183
|
-
required: !!
|
|
6184
|
-
spellcheck:
|
|
6185
|
-
type:
|
|
6186
|
-
value:
|
|
6342
|
+
disabled: M,
|
|
6343
|
+
id: f,
|
|
6344
|
+
inputmode: z ? "numeric" : void 0,
|
|
6345
|
+
name: w || void 0,
|
|
6346
|
+
pattern: D,
|
|
6347
|
+
readonly: U,
|
|
6348
|
+
required: !!p,
|
|
6349
|
+
spellcheck: N === void 0 ? void 0 : String(N),
|
|
6350
|
+
type: _,
|
|
6351
|
+
value: L
|
|
6187
6352
|
},
|
|
6188
6353
|
children: []
|
|
6189
6354
|
}
|
|
6190
6355
|
];
|
|
6191
|
-
return
|
|
6356
|
+
return E && $.push({
|
|
6192
6357
|
kind: "element",
|
|
6193
6358
|
tag: "p",
|
|
6194
|
-
attrs: { class: "description", id:
|
|
6195
|
-
children: [{ kind: "text", value:
|
|
6359
|
+
attrs: { class: "description", id: x },
|
|
6360
|
+
children: [{ kind: "text", value: E }]
|
|
6196
6361
|
}), {
|
|
6197
6362
|
kind: "element",
|
|
6198
6363
|
tag: "div",
|
|
6199
6364
|
attrs: {
|
|
6200
6365
|
class: "set-input",
|
|
6201
|
-
"data-size":
|
|
6202
|
-
"data-inline-size":
|
|
6366
|
+
"data-size": l,
|
|
6367
|
+
"data-inline-size": S === "fit" ? "fit" : void 0
|
|
6203
6368
|
},
|
|
6204
|
-
children:
|
|
6369
|
+
children: $
|
|
6205
6370
|
};
|
|
6206
6371
|
}
|
|
6207
|
-
function
|
|
6208
|
-
return
|
|
6372
|
+
function sn(t) {
|
|
6373
|
+
return m(Be(t));
|
|
6209
6374
|
}
|
|
6210
|
-
const
|
|
6375
|
+
const ln = {
|
|
6211
6376
|
name: "input",
|
|
6212
6377
|
description: "Use `input` to collect a single line of text from users.",
|
|
6213
6378
|
output: { element: "div", class: "set-input" },
|
|
@@ -6402,7 +6567,7 @@ const Zi = {
|
|
|
6402
6567
|
}
|
|
6403
6568
|
]
|
|
6404
6569
|
}
|
|
6405
|
-
},
|
|
6570
|
+
}, Oe = "0 0 6714.6 1200", Pe = "0 0 600 1200", Re = [
|
|
6406
6571
|
{ x: 0, y: 0 },
|
|
6407
6572
|
{ x: 300, y: 0 },
|
|
6408
6573
|
{ x: 150, y: 300 },
|
|
@@ -6411,11 +6576,11 @@ const Zi = {
|
|
|
6411
6576
|
{ x: 300, y: 600 },
|
|
6412
6577
|
{ x: 150, y: 900 },
|
|
6413
6578
|
{ x: 450, y: 900 }
|
|
6414
|
-
],
|
|
6579
|
+
], We = "M0 956h98V571L87 391h2l124 320h89l123-320h3l-11 180v385h98V276H384L260 608h-5L131 276H0zm879.94 10c184 0 223-46 223-272 0-225-39-271-223-271-186 0-224 46-224 271 0 226 38 272 224 272m0-93c-102 0-123-30-123-179 0-147 21-177 123-177 100 0 121 30 121 177 0 149-21 179-121 179m361.44 83h103V686c0-141 20-169 112-169 73 0 88 18 88 107v332h103V624c0-167-28-202-163-202-95 0-120 16-147 92h-5v-82h-91zm769.16 10c184 0 223-46 223-272 0-225-39-271-223-271-186 0-224 46-224 271 0 226 38 272 224 272m0-93c-102 0-123-30-123-179 0-147 21-177 123-177 100 0 121 30 121 177 0 149-21 179-121 179m363.25-65c-4 132 30 158 202 158 173 0 208-25 208-150 0-118-33-146-191-170-94-14-114-26-114-74 0-50 18-60 103-60 76 0 92 9 96 52h97c-3-118-36-142-194-142-166 0-201 25-201 146 0 114 31 141 182 162 101 13 122 28 122 82 0 53-18 64-103 64-88 0-107-11-110-68zm558.97 363h102V902h5c20 54 41 64 123 64 160 0 193-45 193-270 0-227-34-274-198-274-83 0-105 11-123 65h-4v-55h-98zm209-298c-93 0-112-30-112-179 0-148 19-178 112-178s113 30 113 179c0 148-20 178-113 178m656.46 83h88V610c0-156-34-187-197-187-150 0-181 27-179 157h97c1-61 15-74 85-74 82 0 99 18 99 105v24h-72c-187 0-226 30-226 179 0 126 28 152 162 152 92 0 116-13 138-74h5zm-8-243c-1 135-22 163-119 163-65 0-79-13-79-75 0-74 18-88 107-88zm551.75 95c-10 56-26 67-89 67-100 0-121-31-121-181s20-181 117-181c65 0 81 14 91 79h101c-4-141-37-170-188-170-185 0-224 46-224 272s39 272 226 272c147 0 179-26 186-158zm547.03 9c-15 48-31 58-96 58-96 0-117-23-123-136h324c5-263-32-317-214-317-172 0-207 46-207 271 0 227 38 273 223 273 139 0 172-25 190-149zm-218-160c4-122 24-146 114-146 88 0 108 24 112 146zm787.56 299h93l-1-734h-102l1 266h-5c-19-54-40-65-120-65-162 0-196 46-196 272s35 271 200 271c84 0 105-11 125-65h5zm-115-82c-94 0-114-30-114-180s20-180 114-180c93 0 112 30 112 180s-19 180-112 180", Ue = 1163, It = () => ({
|
|
6415
6580
|
kind: "element",
|
|
6416
6581
|
tag: "g",
|
|
6417
6582
|
attrs: { class: "mark" },
|
|
6418
|
-
children:
|
|
6583
|
+
children: Re.map(({ x: t, y: n }) => ({
|
|
6419
6584
|
kind: "element",
|
|
6420
6585
|
tag: "rect",
|
|
6421
6586
|
attrs: {
|
|
@@ -6426,19 +6591,19 @@ const Zi = {
|
|
|
6426
6591
|
},
|
|
6427
6592
|
children: []
|
|
6428
6593
|
}))
|
|
6429
|
-
}),
|
|
6594
|
+
}), $e = () => ({
|
|
6430
6595
|
kind: "element",
|
|
6431
6596
|
tag: "g",
|
|
6432
|
-
attrs: { class: "word", transform: `translate(${
|
|
6597
|
+
attrs: { class: "word", transform: `translate(${Ue} 0)` },
|
|
6433
6598
|
children: [
|
|
6434
6599
|
{
|
|
6435
6600
|
kind: "element",
|
|
6436
6601
|
tag: "path",
|
|
6437
|
-
attrs: { d:
|
|
6602
|
+
attrs: { d: We },
|
|
6438
6603
|
children: []
|
|
6439
6604
|
}
|
|
6440
6605
|
]
|
|
6441
|
-
}),
|
|
6606
|
+
}), Tt = (t, n) => ({
|
|
6442
6607
|
kind: "element",
|
|
6443
6608
|
tag: "svg",
|
|
6444
6609
|
attrs: {
|
|
@@ -6448,13 +6613,13 @@ const Zi = {
|
|
|
6448
6613
|
},
|
|
6449
6614
|
children: n
|
|
6450
6615
|
});
|
|
6451
|
-
function
|
|
6452
|
-
return
|
|
6616
|
+
function Ge() {
|
|
6617
|
+
return Tt(Oe, [It(), $e()]);
|
|
6453
6618
|
}
|
|
6454
|
-
function
|
|
6455
|
-
return
|
|
6619
|
+
function Ze() {
|
|
6620
|
+
return Tt(Pe, [It()]);
|
|
6456
6621
|
}
|
|
6457
|
-
function
|
|
6622
|
+
function Fe({
|
|
6458
6623
|
animated: t,
|
|
6459
6624
|
id: n,
|
|
6460
6625
|
label: e,
|
|
@@ -6462,7 +6627,7 @@ function Te({
|
|
|
6462
6627
|
tone: r = "default",
|
|
6463
6628
|
variant: a = "primary"
|
|
6464
6629
|
}) {
|
|
6465
|
-
const o =
|
|
6630
|
+
const o = v(n), d = !!t && (a === "primary" || a === "graphic"), s = [
|
|
6466
6631
|
{
|
|
6467
6632
|
kind: "element",
|
|
6468
6633
|
tag: "span",
|
|
@@ -6471,7 +6636,7 @@ function Te({
|
|
|
6471
6636
|
}
|
|
6472
6637
|
];
|
|
6473
6638
|
return d && s.push(
|
|
6474
|
-
a === "graphic" ?
|
|
6639
|
+
a === "graphic" ? Ze() : Ge()
|
|
6475
6640
|
), {
|
|
6476
6641
|
kind: "element",
|
|
6477
6642
|
tag: "div",
|
|
@@ -6486,10 +6651,10 @@ function Te({
|
|
|
6486
6651
|
children: s
|
|
6487
6652
|
};
|
|
6488
6653
|
}
|
|
6489
|
-
function
|
|
6490
|
-
return
|
|
6654
|
+
function pn(t) {
|
|
6655
|
+
return m(Fe(t));
|
|
6491
6656
|
}
|
|
6492
|
-
const
|
|
6657
|
+
const cn = {
|
|
6493
6658
|
name: "logo",
|
|
6494
6659
|
description: "Use `logo` to display the brand mark.",
|
|
6495
6660
|
output: { element: "div", class: "set-logo" },
|
|
@@ -6577,7 +6742,7 @@ const ji = {
|
|
|
6577
6742
|
]
|
|
6578
6743
|
}
|
|
6579
6744
|
};
|
|
6580
|
-
function
|
|
6745
|
+
function je({
|
|
6581
6746
|
banner: t,
|
|
6582
6747
|
centerMain: n,
|
|
6583
6748
|
children: e,
|
|
@@ -6588,18 +6753,18 @@ function Ae({
|
|
|
6588
6753
|
id: d,
|
|
6589
6754
|
stickyHeader: s
|
|
6590
6755
|
}) {
|
|
6591
|
-
const
|
|
6592
|
-
return t &&
|
|
6756
|
+
const p = v(d), l = [];
|
|
6757
|
+
return t && l.push({ kind: "raw", html: t }), l.push({
|
|
6593
6758
|
kind: "element",
|
|
6594
6759
|
tag: "header",
|
|
6595
6760
|
attrs: { class: "header" },
|
|
6596
6761
|
children: [{ kind: "raw", html: r }]
|
|
6597
|
-
}),
|
|
6762
|
+
}), l.push({
|
|
6598
6763
|
kind: "element",
|
|
6599
6764
|
tag: "main",
|
|
6600
6765
|
attrs: { class: "main" },
|
|
6601
6766
|
children: e ? [{ kind: "raw", html: e }] : []
|
|
6602
|
-
}),
|
|
6767
|
+
}), l.push({
|
|
6603
6768
|
kind: "element",
|
|
6604
6769
|
tag: "footer",
|
|
6605
6770
|
attrs: { class: "footer" },
|
|
@@ -6613,15 +6778,15 @@ function Ae({
|
|
|
6613
6778
|
"data-header-border": a,
|
|
6614
6779
|
"data-header-size": o,
|
|
6615
6780
|
"data-sticky-header": s,
|
|
6616
|
-
id:
|
|
6781
|
+
id: p
|
|
6617
6782
|
},
|
|
6618
|
-
children:
|
|
6783
|
+
children: l
|
|
6619
6784
|
};
|
|
6620
6785
|
}
|
|
6621
|
-
function
|
|
6622
|
-
return
|
|
6786
|
+
function un(t) {
|
|
6787
|
+
return m(je(t));
|
|
6623
6788
|
}
|
|
6624
|
-
const
|
|
6789
|
+
const hn = {
|
|
6625
6790
|
name: "page",
|
|
6626
6791
|
description: "Use `page` as the primary layout for header, main, and footer regions.",
|
|
6627
6792
|
output: { element: "div", class: "set-page" },
|
|
@@ -6711,13 +6876,13 @@ const Xi = {
|
|
|
6711
6876
|
]
|
|
6712
6877
|
}
|
|
6713
6878
|
};
|
|
6714
|
-
function
|
|
6879
|
+
function Ke({
|
|
6715
6880
|
children: t,
|
|
6716
6881
|
id: n,
|
|
6717
6882
|
padding: e = "md",
|
|
6718
6883
|
surface: i
|
|
6719
6884
|
}) {
|
|
6720
|
-
const r =
|
|
6885
|
+
const r = v(n);
|
|
6721
6886
|
return {
|
|
6722
6887
|
kind: "element",
|
|
6723
6888
|
tag: "div",
|
|
@@ -6730,10 +6895,10 @@ function _e({
|
|
|
6730
6895
|
children: t ? [{ kind: "raw", html: t }] : []
|
|
6731
6896
|
};
|
|
6732
6897
|
}
|
|
6733
|
-
function
|
|
6734
|
-
return
|
|
6898
|
+
function mn(t) {
|
|
6899
|
+
return m(Ke(t));
|
|
6735
6900
|
}
|
|
6736
|
-
const
|
|
6901
|
+
const kn = {
|
|
6737
6902
|
name: "panel",
|
|
6738
6903
|
description: "Use `panel` to group related content in a contained region.",
|
|
6739
6904
|
output: { element: "div", class: "set-panel" },
|
|
@@ -6784,14 +6949,14 @@ const Yi = {
|
|
|
6784
6949
|
]
|
|
6785
6950
|
}
|
|
6786
6951
|
};
|
|
6787
|
-
function
|
|
6952
|
+
function Xe({
|
|
6788
6953
|
children: t,
|
|
6789
6954
|
id: n,
|
|
6790
6955
|
size: e = "md",
|
|
6791
6956
|
tone: i = "default",
|
|
6792
6957
|
variant: r = "tile"
|
|
6793
6958
|
} = {}) {
|
|
6794
|
-
const a =
|
|
6959
|
+
const a = v(n);
|
|
6795
6960
|
return {
|
|
6796
6961
|
kind: "element",
|
|
6797
6962
|
tag: "div",
|
|
@@ -6805,10 +6970,10 @@ function De({
|
|
|
6805
6970
|
children: t ? [{ kind: "raw", html: t }] : []
|
|
6806
6971
|
};
|
|
6807
6972
|
}
|
|
6808
|
-
function
|
|
6809
|
-
return
|
|
6973
|
+
function gn(t = {}) {
|
|
6974
|
+
return m(Xe(t));
|
|
6810
6975
|
}
|
|
6811
|
-
const
|
|
6976
|
+
const bn = {
|
|
6812
6977
|
name: "pattern",
|
|
6813
6978
|
description: "Use `pattern` to render repeated visual language components behind content.",
|
|
6814
6979
|
output: { element: "div", class: "set-pattern" },
|
|
@@ -6875,22 +7040,22 @@ const tn = {
|
|
|
6875
7040
|
]
|
|
6876
7041
|
}
|
|
6877
7042
|
};
|
|
6878
|
-
function
|
|
6879
|
-
return
|
|
7043
|
+
function vn(t) {
|
|
7044
|
+
return He({
|
|
6880
7045
|
...t,
|
|
6881
7046
|
alt: "",
|
|
6882
7047
|
fit: "cover",
|
|
6883
7048
|
priority: !0
|
|
6884
7049
|
});
|
|
6885
7050
|
}
|
|
6886
|
-
function
|
|
7051
|
+
function Qe({
|
|
6887
7052
|
children: t,
|
|
6888
7053
|
contentTheme: n,
|
|
6889
7054
|
id: e,
|
|
6890
7055
|
media: i,
|
|
6891
7056
|
surface: r
|
|
6892
7057
|
}) {
|
|
6893
|
-
const a =
|
|
7058
|
+
const a = v(e), o = n ? r ?? "default" : r, d = [
|
|
6894
7059
|
{
|
|
6895
7060
|
kind: "element",
|
|
6896
7061
|
tag: "div",
|
|
@@ -6915,10 +7080,10 @@ function He({
|
|
|
6915
7080
|
children: d
|
|
6916
7081
|
};
|
|
6917
7082
|
}
|
|
6918
|
-
function
|
|
6919
|
-
return
|
|
7083
|
+
function fn(t) {
|
|
7084
|
+
return m(Qe(t));
|
|
6920
7085
|
}
|
|
6921
|
-
const
|
|
7086
|
+
const yn = {
|
|
6922
7087
|
name: "poster",
|
|
6923
7088
|
description: "Use `poster` to layer content over background media.",
|
|
6924
7089
|
output: { element: "div", class: "set-poster" },
|
|
@@ -6989,7 +7154,7 @@ const rn = {
|
|
|
6989
7154
|
]
|
|
6990
7155
|
}
|
|
6991
7156
|
};
|
|
6992
|
-
function
|
|
7157
|
+
function Ye({
|
|
6993
7158
|
align: t = "start",
|
|
6994
7159
|
children: n,
|
|
6995
7160
|
hangingPunctuation: e,
|
|
@@ -6999,7 +7164,7 @@ function Ve({
|
|
|
6999
7164
|
monospaced: o,
|
|
7000
7165
|
responsive: d
|
|
7001
7166
|
}) {
|
|
7002
|
-
const s =
|
|
7167
|
+
const s = v(i);
|
|
7003
7168
|
return {
|
|
7004
7169
|
kind: "element",
|
|
7005
7170
|
tag: "div",
|
|
@@ -7016,10 +7181,10 @@ function Ve({
|
|
|
7016
7181
|
children: [{ kind: "raw", html: n }]
|
|
7017
7182
|
};
|
|
7018
7183
|
}
|
|
7019
|
-
function
|
|
7020
|
-
return
|
|
7184
|
+
function wn(t) {
|
|
7185
|
+
return m(Ye(t));
|
|
7021
7186
|
}
|
|
7022
|
-
const
|
|
7187
|
+
const Sn = {
|
|
7023
7188
|
name: "prose",
|
|
7024
7189
|
description: "Use `prose` to style rich-text markup.",
|
|
7025
7190
|
output: { element: "div", class: "set-prose" },
|
|
@@ -7113,7 +7278,7 @@ const on = {
|
|
|
7113
7278
|
]
|
|
7114
7279
|
}
|
|
7115
7280
|
};
|
|
7116
|
-
function
|
|
7281
|
+
function Je({
|
|
7117
7282
|
description: t,
|
|
7118
7283
|
disabled: n,
|
|
7119
7284
|
id: e,
|
|
@@ -7123,37 +7288,37 @@ function Ne({
|
|
|
7123
7288
|
name: o,
|
|
7124
7289
|
orientation: d = "vertical",
|
|
7125
7290
|
required: s,
|
|
7126
|
-
size:
|
|
7127
|
-
value:
|
|
7291
|
+
size: p = "md",
|
|
7292
|
+
value: l
|
|
7128
7293
|
}) {
|
|
7129
|
-
const c = e.trim(),
|
|
7294
|
+
const c = e.trim(), h = o.trim(), b = l?.trim();
|
|
7130
7295
|
if (!c)
|
|
7131
7296
|
throw new Error("id must be a non-empty string.");
|
|
7132
|
-
if (!
|
|
7297
|
+
if (!V(c))
|
|
7133
7298
|
throw new Error(
|
|
7134
7299
|
"id must start with a letter and contain only letters, numbers, '_', '-', or ':'."
|
|
7135
7300
|
);
|
|
7136
|
-
if (!
|
|
7301
|
+
if (!h)
|
|
7137
7302
|
throw new Error("name must be a non-empty string.");
|
|
7138
7303
|
if (r.length < 2)
|
|
7139
7304
|
throw new Error("radios must include at least 2 options.");
|
|
7140
|
-
const
|
|
7141
|
-
const
|
|
7142
|
-
if (!
|
|
7143
|
-
throw new Error(`radios[${
|
|
7144
|
-
if (!
|
|
7145
|
-
throw new Error(`radios[${
|
|
7305
|
+
const S = r.map((k, L) => {
|
|
7306
|
+
const x = k.value.trim(), z = k.label.trim(), _ = k.description?.trim();
|
|
7307
|
+
if (!x)
|
|
7308
|
+
throw new Error(`radios[${L}].value must be non-empty.`);
|
|
7309
|
+
if (!z)
|
|
7310
|
+
throw new Error(`radios[${L}].label must be non-empty.`);
|
|
7146
7311
|
return {
|
|
7147
|
-
description:
|
|
7148
|
-
disabled: !!
|
|
7149
|
-
label:
|
|
7150
|
-
value:
|
|
7312
|
+
description: _,
|
|
7313
|
+
disabled: !!k.disabled,
|
|
7314
|
+
label: z,
|
|
7315
|
+
value: x
|
|
7151
7316
|
};
|
|
7152
7317
|
});
|
|
7153
|
-
if (new Set(
|
|
7318
|
+
if (new Set(S.map((k) => k.value)).size !== S.length)
|
|
7154
7319
|
throw new Error("radios values must be unique.");
|
|
7155
|
-
const
|
|
7156
|
-
const
|
|
7320
|
+
const E = !!n, q = S.map((k) => {
|
|
7321
|
+
const L = !!k.disabled, x = k.description ? `${c}-${k.value}-description` : void 0, z = [
|
|
7157
7322
|
{
|
|
7158
7323
|
kind: "element",
|
|
7159
7324
|
tag: "label",
|
|
@@ -7163,14 +7328,14 @@ function Ne({
|
|
|
7163
7328
|
kind: "element",
|
|
7164
7329
|
tag: "input",
|
|
7165
7330
|
attrs: {
|
|
7166
|
-
"aria-describedby":
|
|
7167
|
-
checked:
|
|
7331
|
+
"aria-describedby": x,
|
|
7332
|
+
checked: b === k.value,
|
|
7168
7333
|
class: "radio",
|
|
7169
|
-
disabled:
|
|
7170
|
-
name:
|
|
7171
|
-
required: !!s && !
|
|
7334
|
+
disabled: L,
|
|
7335
|
+
name: h,
|
|
7336
|
+
required: !!s && !E && !L,
|
|
7172
7337
|
type: "radio",
|
|
7173
|
-
value:
|
|
7338
|
+
value: k.value
|
|
7174
7339
|
},
|
|
7175
7340
|
children: []
|
|
7176
7341
|
},
|
|
@@ -7178,45 +7343,45 @@ function Ne({
|
|
|
7178
7343
|
kind: "element",
|
|
7179
7344
|
tag: "span",
|
|
7180
7345
|
attrs: {},
|
|
7181
|
-
children: [{ kind: "text", value:
|
|
7346
|
+
children: [{ kind: "text", value: k.label }]
|
|
7182
7347
|
}
|
|
7183
7348
|
]
|
|
7184
7349
|
}
|
|
7185
7350
|
];
|
|
7186
|
-
return
|
|
7351
|
+
return k.description && z.push({
|
|
7187
7352
|
kind: "element",
|
|
7188
7353
|
tag: "p",
|
|
7189
|
-
attrs: { class: "radio-description", id:
|
|
7190
|
-
children: [{ kind: "text", value:
|
|
7354
|
+
attrs: { class: "radio-description", id: x },
|
|
7355
|
+
children: [{ kind: "text", value: k.description }]
|
|
7191
7356
|
}), {
|
|
7192
7357
|
kind: "element",
|
|
7193
7358
|
tag: "div",
|
|
7194
7359
|
attrs: { class: "radio-field" },
|
|
7195
|
-
children:
|
|
7360
|
+
children: z
|
|
7196
7361
|
};
|
|
7197
7362
|
});
|
|
7198
|
-
return
|
|
7199
|
-
children:
|
|
7363
|
+
return qt({
|
|
7364
|
+
children: m({
|
|
7200
7365
|
kind: "element",
|
|
7201
7366
|
tag: "div",
|
|
7202
7367
|
attrs: {
|
|
7203
7368
|
class: "set-radios",
|
|
7204
7369
|
"data-orientation": d,
|
|
7205
|
-
"data-size":
|
|
7370
|
+
"data-size": p
|
|
7206
7371
|
},
|
|
7207
|
-
children:
|
|
7372
|
+
children: q
|
|
7208
7373
|
}),
|
|
7209
7374
|
description: t,
|
|
7210
|
-
disabled:
|
|
7375
|
+
disabled: E,
|
|
7211
7376
|
id: c,
|
|
7212
7377
|
invalid: i,
|
|
7213
7378
|
legend: a
|
|
7214
7379
|
});
|
|
7215
7380
|
}
|
|
7216
|
-
function
|
|
7217
|
-
return
|
|
7381
|
+
function xn(t) {
|
|
7382
|
+
return m(Je(t));
|
|
7218
7383
|
}
|
|
7219
|
-
const
|
|
7384
|
+
const En = {
|
|
7220
7385
|
name: "radios",
|
|
7221
7386
|
description: "Use `radios` to let users select one option from a short list.",
|
|
7222
7387
|
output: { element: "fieldset", class: "set-fieldset" },
|
|
@@ -7365,7 +7530,7 @@ const sn = {
|
|
|
7365
7530
|
]
|
|
7366
7531
|
}
|
|
7367
7532
|
};
|
|
7368
|
-
function
|
|
7533
|
+
function ti({
|
|
7369
7534
|
appOverscrollBehavior: t,
|
|
7370
7535
|
appRoot: n,
|
|
7371
7536
|
brand: e = "mnsp",
|
|
@@ -7375,7 +7540,7 @@ function Oe({
|
|
|
7375
7540
|
lang: o,
|
|
7376
7541
|
theme: d
|
|
7377
7542
|
}) {
|
|
7378
|
-
const s =
|
|
7543
|
+
const s = v(a);
|
|
7379
7544
|
return {
|
|
7380
7545
|
kind: "element",
|
|
7381
7546
|
tag: "div",
|
|
@@ -7392,10 +7557,10 @@ function Oe({
|
|
|
7392
7557
|
children: i ? [{ kind: "raw", html: i }] : []
|
|
7393
7558
|
};
|
|
7394
7559
|
}
|
|
7395
|
-
function
|
|
7396
|
-
return
|
|
7560
|
+
function zn(t) {
|
|
7561
|
+
return m(ti(t));
|
|
7397
7562
|
}
|
|
7398
|
-
const
|
|
7563
|
+
const Cn = {
|
|
7399
7564
|
name: "root",
|
|
7400
7565
|
description: "Mandatory top-level `root` wrapper for the Set system.",
|
|
7401
7566
|
output: { element: "div", class: "set" },
|
|
@@ -7488,13 +7653,13 @@ const pn = {
|
|
|
7488
7653
|
]
|
|
7489
7654
|
}
|
|
7490
7655
|
};
|
|
7491
|
-
function
|
|
7656
|
+
function ei({
|
|
7492
7657
|
id: t,
|
|
7493
7658
|
label: n,
|
|
7494
7659
|
size: e = "md",
|
|
7495
7660
|
tone: i = "default"
|
|
7496
7661
|
} = {}) {
|
|
7497
|
-
const r =
|
|
7662
|
+
const r = v(t), o = [
|
|
7498
7663
|
{
|
|
7499
7664
|
kind: "element",
|
|
7500
7665
|
tag: "svg",
|
|
@@ -7545,10 +7710,10 @@ function Pe({
|
|
|
7545
7710
|
children: o
|
|
7546
7711
|
};
|
|
7547
7712
|
}
|
|
7548
|
-
function
|
|
7549
|
-
return
|
|
7713
|
+
function Ln(t = {}) {
|
|
7714
|
+
return m(ei(t));
|
|
7550
7715
|
}
|
|
7551
|
-
const
|
|
7716
|
+
const Mn = {
|
|
7552
7717
|
name: "spinner",
|
|
7553
7718
|
description: "Use `spinner` to indicate loading or in-progress state.",
|
|
7554
7719
|
output: { element: "span", class: "set-spinner" },
|
|
@@ -7606,7 +7771,7 @@ const un = {
|
|
|
7606
7771
|
]
|
|
7607
7772
|
}
|
|
7608
7773
|
};
|
|
7609
|
-
function
|
|
7774
|
+
function ii({
|
|
7610
7775
|
align: t = "stretch",
|
|
7611
7776
|
as: n = "div",
|
|
7612
7777
|
children: e,
|
|
@@ -7614,7 +7779,7 @@ function Be({
|
|
|
7614
7779
|
id: r,
|
|
7615
7780
|
responsive: a
|
|
7616
7781
|
}) {
|
|
7617
|
-
const o =
|
|
7782
|
+
const o = v(r);
|
|
7618
7783
|
return {
|
|
7619
7784
|
kind: "element",
|
|
7620
7785
|
tag: n,
|
|
@@ -7628,10 +7793,10 @@ function Be({
|
|
|
7628
7793
|
children: e ? [{ kind: "raw", html: e }] : []
|
|
7629
7794
|
};
|
|
7630
7795
|
}
|
|
7631
|
-
function
|
|
7632
|
-
return
|
|
7796
|
+
function qn(t) {
|
|
7797
|
+
return m(ii(t));
|
|
7633
7798
|
}
|
|
7634
|
-
const
|
|
7799
|
+
const In = {
|
|
7635
7800
|
name: "stack",
|
|
7636
7801
|
description: "Use `stack` to lay out content in a vertical column.",
|
|
7637
7802
|
output: {
|
|
@@ -7702,13 +7867,13 @@ const mn = {
|
|
|
7702
7867
|
]
|
|
7703
7868
|
}
|
|
7704
7869
|
};
|
|
7705
|
-
function
|
|
7870
|
+
function ni({
|
|
7706
7871
|
children: t,
|
|
7707
7872
|
contentTheme: n,
|
|
7708
7873
|
id: e,
|
|
7709
7874
|
variant: i = "default"
|
|
7710
7875
|
}) {
|
|
7711
|
-
const r =
|
|
7876
|
+
const r = v(e);
|
|
7712
7877
|
return {
|
|
7713
7878
|
kind: "element",
|
|
7714
7879
|
tag: "div",
|
|
@@ -7721,10 +7886,10 @@ function Re({
|
|
|
7721
7886
|
children: [{ kind: "raw", html: t }]
|
|
7722
7887
|
};
|
|
7723
7888
|
}
|
|
7724
|
-
function
|
|
7725
|
-
return
|
|
7889
|
+
function Tn(t) {
|
|
7890
|
+
return m(ni(t));
|
|
7726
7891
|
}
|
|
7727
|
-
const
|
|
7892
|
+
const An = {
|
|
7728
7893
|
name: "surface",
|
|
7729
7894
|
description: "Use `surface` to set a colour context for nested content.",
|
|
7730
7895
|
output: { element: "div", class: "set-surface" },
|
|
@@ -7776,7 +7941,7 @@ const gn = {
|
|
|
7776
7941
|
]
|
|
7777
7942
|
}
|
|
7778
7943
|
};
|
|
7779
|
-
function
|
|
7944
|
+
function ri({
|
|
7780
7945
|
checked: t,
|
|
7781
7946
|
description: n,
|
|
7782
7947
|
disabled: e,
|
|
@@ -7786,10 +7951,10 @@ function We({
|
|
|
7786
7951
|
size: o = "md",
|
|
7787
7952
|
value: d
|
|
7788
7953
|
}) {
|
|
7789
|
-
const s =
|
|
7790
|
-
if (
|
|
7954
|
+
const s = v(i), p = n?.trim();
|
|
7955
|
+
if (p && !s)
|
|
7791
7956
|
throw new Error("id must be provided when description is provided.");
|
|
7792
|
-
const
|
|
7957
|
+
const l = p ? `${s}-description` : void 0, c = [
|
|
7793
7958
|
{
|
|
7794
7959
|
kind: "element",
|
|
7795
7960
|
tag: "label",
|
|
@@ -7799,7 +7964,7 @@ function We({
|
|
|
7799
7964
|
kind: "element",
|
|
7800
7965
|
tag: "input",
|
|
7801
7966
|
attrs: {
|
|
7802
|
-
"aria-describedby":
|
|
7967
|
+
"aria-describedby": l,
|
|
7803
7968
|
checked: !!t,
|
|
7804
7969
|
class: "switch",
|
|
7805
7970
|
disabled: !!e,
|
|
@@ -7820,11 +7985,11 @@ function We({
|
|
|
7820
7985
|
]
|
|
7821
7986
|
}
|
|
7822
7987
|
];
|
|
7823
|
-
return
|
|
7988
|
+
return p && c.push({
|
|
7824
7989
|
kind: "element",
|
|
7825
7990
|
tag: "p",
|
|
7826
|
-
attrs: { class: "description", id:
|
|
7827
|
-
children: [{ kind: "text", value:
|
|
7991
|
+
attrs: { class: "description", id: l },
|
|
7992
|
+
children: [{ kind: "text", value: p }]
|
|
7828
7993
|
}), {
|
|
7829
7994
|
kind: "element",
|
|
7830
7995
|
tag: "div",
|
|
@@ -7832,10 +7997,10 @@ function We({
|
|
|
7832
7997
|
children: c
|
|
7833
7998
|
};
|
|
7834
7999
|
}
|
|
7835
|
-
function
|
|
7836
|
-
return
|
|
8000
|
+
function _n(t) {
|
|
8001
|
+
return m(ri(t));
|
|
7837
8002
|
}
|
|
7838
|
-
const
|
|
8003
|
+
const Dn = {
|
|
7839
8004
|
name: "switch",
|
|
7840
8005
|
description: "Use `switch` to let users instantly toggle a setting on or off.",
|
|
7841
8006
|
output: { element: "div", class: "set-switch" },
|
|
@@ -7943,7 +8108,7 @@ const vn = {
|
|
|
7943
8108
|
]
|
|
7944
8109
|
}
|
|
7945
8110
|
};
|
|
7946
|
-
function
|
|
8111
|
+
function ai({
|
|
7947
8112
|
autocomplete: t,
|
|
7948
8113
|
description: n,
|
|
7949
8114
|
disabled: e,
|
|
@@ -7953,69 +8118,69 @@ function Ue({
|
|
|
7953
8118
|
name: o,
|
|
7954
8119
|
readOnly: d,
|
|
7955
8120
|
required: s,
|
|
7956
|
-
resize:
|
|
7957
|
-
rows:
|
|
8121
|
+
resize: p = "vertical",
|
|
8122
|
+
rows: l = 2,
|
|
7958
8123
|
size: c = "md",
|
|
7959
|
-
spellcheck:
|
|
7960
|
-
value:
|
|
7961
|
-
inlineSize:
|
|
8124
|
+
spellcheck: h,
|
|
8125
|
+
value: b,
|
|
8126
|
+
inlineSize: S = "full"
|
|
7962
8127
|
}) {
|
|
7963
|
-
const
|
|
7964
|
-
if (!
|
|
8128
|
+
const f = i.trim(), E = n?.trim(), q = t === !1 ? !1 : t?.trim(), w = o?.trim(), k = b;
|
|
8129
|
+
if (!f)
|
|
7965
8130
|
throw new Error("id must be a non-empty string.");
|
|
7966
|
-
if (!
|
|
8131
|
+
if (!V(f))
|
|
7967
8132
|
throw new Error(
|
|
7968
8133
|
"id must start with a letter and contain only letters, numbers, '_', '-', or ':'."
|
|
7969
8134
|
);
|
|
7970
|
-
if (!Number.isInteger(
|
|
8135
|
+
if (!Number.isInteger(l) || l < 2)
|
|
7971
8136
|
throw new Error("rows must be an integer greater than or equal to 2.");
|
|
7972
|
-
const
|
|
8137
|
+
const L = E ? `${f}-description` : void 0, x = !!e, z = !x && !!d, D = [
|
|
7973
8138
|
{
|
|
7974
8139
|
kind: "element",
|
|
7975
8140
|
tag: "label",
|
|
7976
|
-
attrs: { class: "label", for:
|
|
8141
|
+
attrs: { class: "label", for: f },
|
|
7977
8142
|
children: [{ kind: "text", value: a }]
|
|
7978
8143
|
},
|
|
7979
8144
|
{
|
|
7980
8145
|
kind: "element",
|
|
7981
8146
|
tag: "textarea",
|
|
7982
8147
|
attrs: {
|
|
7983
|
-
"aria-describedby":
|
|
7984
|
-
"aria-invalid": !
|
|
7985
|
-
autocomplete:
|
|
8148
|
+
"aria-describedby": L,
|
|
8149
|
+
"aria-invalid": !x && !z && !!r ? "true" : void 0,
|
|
8150
|
+
autocomplete: q === !1 ? "off" : q || void 0,
|
|
7986
8151
|
class: "textarea",
|
|
7987
|
-
disabled:
|
|
7988
|
-
id:
|
|
7989
|
-
name:
|
|
7990
|
-
readonly:
|
|
8152
|
+
disabled: x,
|
|
8153
|
+
id: f,
|
|
8154
|
+
name: w || void 0,
|
|
8155
|
+
readonly: z,
|
|
7991
8156
|
required: !!s,
|
|
7992
|
-
rows: String(
|
|
7993
|
-
spellcheck:
|
|
8157
|
+
rows: String(l),
|
|
8158
|
+
spellcheck: h === void 0 ? void 0 : String(h)
|
|
7994
8159
|
},
|
|
7995
|
-
children: [{ kind: "text", value:
|
|
8160
|
+
children: [{ kind: "text", value: k || "" }]
|
|
7996
8161
|
}
|
|
7997
8162
|
];
|
|
7998
|
-
return
|
|
8163
|
+
return E && D.push({
|
|
7999
8164
|
kind: "element",
|
|
8000
8165
|
tag: "p",
|
|
8001
|
-
attrs: { class: "description", id:
|
|
8002
|
-
children: [{ kind: "text", value:
|
|
8166
|
+
attrs: { class: "description", id: L },
|
|
8167
|
+
children: [{ kind: "text", value: E }]
|
|
8003
8168
|
}), {
|
|
8004
8169
|
kind: "element",
|
|
8005
8170
|
tag: "div",
|
|
8006
8171
|
attrs: {
|
|
8007
8172
|
class: "set-textarea",
|
|
8008
|
-
"data-resize":
|
|
8173
|
+
"data-resize": p === "none" ? "none" : void 0,
|
|
8009
8174
|
"data-size": c,
|
|
8010
|
-
"data-inline-size":
|
|
8175
|
+
"data-inline-size": S === "fit" ? "fit" : void 0
|
|
8011
8176
|
},
|
|
8012
|
-
children:
|
|
8177
|
+
children: D
|
|
8013
8178
|
};
|
|
8014
8179
|
}
|
|
8015
|
-
function
|
|
8016
|
-
return
|
|
8180
|
+
function Vn(t) {
|
|
8181
|
+
return m(ai(t));
|
|
8017
8182
|
}
|
|
8018
|
-
const
|
|
8183
|
+
const Hn = {
|
|
8019
8184
|
name: "textarea",
|
|
8020
8185
|
description: "Use `textarea` to collect multiple lines of text from users.",
|
|
8021
8186
|
output: { element: "div", class: "set-textarea" },
|
|
@@ -8204,166 +8369,166 @@ const yn = {
|
|
|
8204
8369
|
]
|
|
8205
8370
|
}
|
|
8206
8371
|
};
|
|
8207
|
-
function
|
|
8208
|
-
|
|
8372
|
+
function Nn() {
|
|
8373
|
+
$t(), jt(), Yt(), te(), re(), oe(), pe(), he();
|
|
8209
8374
|
}
|
|
8210
8375
|
export {
|
|
8211
|
-
|
|
8212
|
-
|
|
8213
|
-
|
|
8214
|
-
|
|
8215
|
-
|
|
8216
|
-
|
|
8217
|
-
|
|
8218
|
-
|
|
8219
|
-
|
|
8220
|
-
|
|
8221
|
-
|
|
8222
|
-
|
|
8223
|
-
|
|
8224
|
-
|
|
8225
|
-
|
|
8226
|
-
|
|
8227
|
-
|
|
8228
|
-
|
|
8229
|
-
|
|
8230
|
-
|
|
8231
|
-
|
|
8232
|
-
|
|
8233
|
-
|
|
8234
|
-
|
|
8235
|
-
|
|
8236
|
-
|
|
8237
|
-
|
|
8238
|
-
|
|
8239
|
-
|
|
8240
|
-
|
|
8241
|
-
|
|
8242
|
-
|
|
8243
|
-
|
|
8244
|
-
|
|
8245
|
-
|
|
8246
|
-
|
|
8247
|
-
|
|
8248
|
-
|
|
8249
|
-
|
|
8250
|
-
|
|
8251
|
-
|
|
8252
|
-
|
|
8253
|
-
|
|
8254
|
-
|
|
8255
|
-
|
|
8256
|
-
|
|
8257
|
-
|
|
8258
|
-
|
|
8259
|
-
|
|
8260
|
-
|
|
8261
|
-
|
|
8262
|
-
|
|
8263
|
-
|
|
8264
|
-
|
|
8265
|
-
|
|
8266
|
-
|
|
8267
|
-
|
|
8268
|
-
|
|
8269
|
-
|
|
8270
|
-
|
|
8271
|
-
|
|
8272
|
-
|
|
8273
|
-
|
|
8274
|
-
|
|
8275
|
-
|
|
8276
|
-
|
|
8277
|
-
|
|
8278
|
-
|
|
8279
|
-
|
|
8280
|
-
|
|
8281
|
-
|
|
8282
|
-
|
|
8283
|
-
|
|
8284
|
-
|
|
8285
|
-
|
|
8286
|
-
|
|
8287
|
-
|
|
8288
|
-
|
|
8289
|
-
|
|
8290
|
-
|
|
8291
|
-
|
|
8292
|
-
|
|
8293
|
-
|
|
8294
|
-
|
|
8295
|
-
|
|
8296
|
-
|
|
8297
|
-
|
|
8298
|
-
|
|
8299
|
-
|
|
8300
|
-
|
|
8301
|
-
|
|
8302
|
-
|
|
8303
|
-
|
|
8304
|
-
|
|
8305
|
-
|
|
8306
|
-
|
|
8307
|
-
|
|
8308
|
-
|
|
8309
|
-
|
|
8310
|
-
|
|
8311
|
-
|
|
8312
|
-
|
|
8313
|
-
|
|
8314
|
-
|
|
8315
|
-
|
|
8316
|
-
|
|
8317
|
-
|
|
8318
|
-
|
|
8319
|
-
|
|
8320
|
-
|
|
8321
|
-
|
|
8322
|
-
|
|
8323
|
-
|
|
8324
|
-
|
|
8325
|
-
|
|
8326
|
-
|
|
8327
|
-
|
|
8328
|
-
|
|
8329
|
-
|
|
8330
|
-
|
|
8331
|
-
|
|
8332
|
-
|
|
8333
|
-
|
|
8334
|
-
|
|
8335
|
-
|
|
8336
|
-
|
|
8337
|
-
|
|
8338
|
-
|
|
8339
|
-
|
|
8340
|
-
|
|
8341
|
-
|
|
8342
|
-
|
|
8343
|
-
|
|
8344
|
-
|
|
8345
|
-
|
|
8346
|
-
|
|
8347
|
-
|
|
8348
|
-
|
|
8349
|
-
|
|
8350
|
-
|
|
8351
|
-
|
|
8352
|
-
|
|
8353
|
-
|
|
8354
|
-
|
|
8355
|
-
|
|
8356
|
-
|
|
8357
|
-
|
|
8358
|
-
|
|
8359
|
-
|
|
8360
|
-
|
|
8361
|
-
|
|
8362
|
-
|
|
8363
|
-
|
|
8364
|
-
|
|
8365
|
-
|
|
8366
|
-
|
|
8367
|
-
|
|
8376
|
+
St as SET_ALERT_EVENT_BEFORE_DISMISS,
|
|
8377
|
+
xt as SET_ALERT_EVENT_DISMISS,
|
|
8378
|
+
pi as SET_ALERT_SPEC,
|
|
8379
|
+
Z as SET_ALERT_TAG_NAME,
|
|
8380
|
+
qi as SET_AVATAR_SPEC,
|
|
8381
|
+
Ti as SET_BADGE_SPEC,
|
|
8382
|
+
zt as SET_BANNER_EVENT_BEFORE_DISMISS,
|
|
8383
|
+
Ct as SET_BANNER_EVENT_DISMISS,
|
|
8384
|
+
mi as SET_BANNER_SPEC,
|
|
8385
|
+
F as SET_BANNER_TAG_NAME,
|
|
8386
|
+
Vi as SET_BLOCKQUOTE_SPEC,
|
|
8387
|
+
Ni as SET_BOX_SPEC,
|
|
8388
|
+
si as SET_BUTTON_SPEC,
|
|
8389
|
+
Oi as SET_CARD_SPEC,
|
|
8390
|
+
Ri as SET_CHECKBOX_SPEC,
|
|
8391
|
+
Ui as SET_CONTAINER_SPEC,
|
|
8392
|
+
Gi as SET_DETAILS_SPEC,
|
|
8393
|
+
Fi as SET_DIVIDER_SPEC,
|
|
8394
|
+
fi as SET_EXPANDER_SPEC,
|
|
8395
|
+
Ki as SET_FIELDSET_SPEC,
|
|
8396
|
+
Qi as SET_FIGURE_SPEC,
|
|
8397
|
+
en as SET_GRID_ITEM_SPEC,
|
|
8398
|
+
tn as SET_GRID_SPEC,
|
|
8399
|
+
rn as SET_HEADING_SPEC,
|
|
8400
|
+
oi as SET_ICON_NAMES,
|
|
8401
|
+
di as SET_ICON_SPEC,
|
|
8402
|
+
an as SET_IMAGE_SPEC,
|
|
8403
|
+
dn as SET_INLINE_SPEC,
|
|
8404
|
+
ln as SET_INPUT_SPEC,
|
|
8405
|
+
Lt as SET_LIGHTSWITCH_EVENT_CHANGE,
|
|
8406
|
+
gi as SET_LIGHTSWITCH_SPEC,
|
|
8407
|
+
dt as SET_LIGHTSWITCH_STORAGE_KEY,
|
|
8408
|
+
K as SET_LIGHTSWITCH_TAG_NAME,
|
|
8409
|
+
ui as SET_LINK_SPEC,
|
|
8410
|
+
cn as SET_LOGO_SPEC,
|
|
8411
|
+
Mt as SET_MENU_EVENT_CHOOSE,
|
|
8412
|
+
vi as SET_MENU_SPEC,
|
|
8413
|
+
X as SET_MENU_TAG_NAME,
|
|
8414
|
+
wi as SET_NAV_SPEC,
|
|
8415
|
+
Q as SET_NAV_TAG_NAME,
|
|
8416
|
+
hn as SET_PAGE_SPEC,
|
|
8417
|
+
kn as SET_PANEL_SPEC,
|
|
8418
|
+
bn as SET_PATTERN_SPEC,
|
|
8419
|
+
yn as SET_POSTER_SPEC,
|
|
8420
|
+
Sn as SET_PROSE_SPEC,
|
|
8421
|
+
En as SET_RADIOS_SPEC,
|
|
8422
|
+
xi as SET_RANGE_SPEC,
|
|
8423
|
+
Y as SET_RANGE_TAG_NAME,
|
|
8424
|
+
Cn as SET_ROOT_SPEC,
|
|
8425
|
+
zi as SET_SIDEBAR_SPEC,
|
|
8426
|
+
J as SET_SIDEBAR_TAG_NAME,
|
|
8427
|
+
Mn as SET_SPINNER_SPEC,
|
|
8428
|
+
In as SET_STACK_SPEC,
|
|
8429
|
+
An as SET_SURFACE_SPEC,
|
|
8430
|
+
Dn as SET_SWITCH_SPEC,
|
|
8431
|
+
Hn as SET_TEXTAREA_SPEC,
|
|
8432
|
+
_i as SET_TEXT_SPEC,
|
|
8433
|
+
Li as SET_VIDEO_SPEC,
|
|
8434
|
+
tt as SET_VIDEO_TAG_NAME,
|
|
8435
|
+
Ut as buildSetAlert,
|
|
8436
|
+
Se as buildSetAvatar,
|
|
8437
|
+
xe as buildSetBadge,
|
|
8438
|
+
Ft as buildSetBanner,
|
|
8439
|
+
Ee as buildSetBlockquote,
|
|
8440
|
+
ze as buildSetBox,
|
|
8441
|
+
ut as buildSetButton,
|
|
8442
|
+
Ce as buildSetCard,
|
|
8443
|
+
Le as buildSetCheckbox,
|
|
8444
|
+
Me as buildSetContainer,
|
|
8445
|
+
qe as buildSetDetails,
|
|
8446
|
+
Ie as buildSetDivider,
|
|
8447
|
+
ee as buildSetExpander,
|
|
8448
|
+
qt as buildSetFieldset,
|
|
8449
|
+
Te as buildSetFigure,
|
|
8450
|
+
Ae as buildSetGrid,
|
|
8451
|
+
_e as buildSetGridItem,
|
|
8452
|
+
De as buildSetHeading,
|
|
8453
|
+
P as buildSetIcon,
|
|
8454
|
+
Ve as buildSetImage,
|
|
8455
|
+
Ne as buildSetInline,
|
|
8456
|
+
Be as buildSetInput,
|
|
8457
|
+
Qt as buildSetLightswitch,
|
|
8458
|
+
Et as buildSetLink,
|
|
8459
|
+
Fe as buildSetLogo,
|
|
8460
|
+
Jt as buildSetMenu,
|
|
8461
|
+
ne as buildSetNav,
|
|
8462
|
+
je as buildSetPage,
|
|
8463
|
+
Ke as buildSetPanel,
|
|
8464
|
+
Xe as buildSetPattern,
|
|
8465
|
+
Qe as buildSetPoster,
|
|
8466
|
+
Ye as buildSetProse,
|
|
8467
|
+
Je as buildSetRadios,
|
|
8468
|
+
ae as buildSetRange,
|
|
8469
|
+
ti as buildSetRoot,
|
|
8470
|
+
le as buildSetSidebar,
|
|
8471
|
+
ei as buildSetSpinner,
|
|
8472
|
+
ii as buildSetStack,
|
|
8473
|
+
ni as buildSetSurface,
|
|
8474
|
+
ri as buildSetSwitch,
|
|
8475
|
+
et as buildSetText,
|
|
8476
|
+
ai as buildSetTextarea,
|
|
8477
|
+
ce as buildSetVideo,
|
|
8478
|
+
$t as defineSetAlert,
|
|
8479
|
+
jt as defineSetBanner,
|
|
8480
|
+
Nn as defineSetComponents,
|
|
8481
|
+
Yt as defineSetLightswitch,
|
|
8482
|
+
te as defineSetMenu,
|
|
8483
|
+
re as defineSetNav,
|
|
8484
|
+
oe as defineSetRange,
|
|
8485
|
+
pe as defineSetSidebar,
|
|
8486
|
+
he as defineSetVideo,
|
|
8487
|
+
ge as getSetInitials,
|
|
8488
|
+
li as renderSetAlert,
|
|
8489
|
+
Mi as renderSetAvatar,
|
|
8490
|
+
Ii as renderSetBadge,
|
|
8491
|
+
hi as renderSetBanner,
|
|
8492
|
+
Di as renderSetBlockquote,
|
|
8493
|
+
Hi as renderSetBox,
|
|
8494
|
+
ht as renderSetButton,
|
|
8495
|
+
Bi as renderSetCard,
|
|
8496
|
+
Pi as renderSetCheckbox,
|
|
8497
|
+
Wi as renderSetContainer,
|
|
8498
|
+
$i as renderSetDetails,
|
|
8499
|
+
Zi as renderSetDivider,
|
|
8500
|
+
ie as renderSetExpander,
|
|
8501
|
+
ji as renderSetFieldset,
|
|
8502
|
+
Xi as renderSetFigure,
|
|
8503
|
+
Yi as renderSetGrid,
|
|
8504
|
+
Ji as renderSetGridItem,
|
|
8505
|
+
nn as renderSetHeading,
|
|
8506
|
+
Ot as renderSetIcon,
|
|
8507
|
+
He as renderSetImage,
|
|
8508
|
+
on as renderSetInline,
|
|
8509
|
+
sn as renderSetInput,
|
|
8510
|
+
ki as renderSetLightswitch,
|
|
8511
|
+
ci as renderSetLink,
|
|
8512
|
+
pn as renderSetLogo,
|
|
8513
|
+
bi as renderSetMenu,
|
|
8514
|
+
yi as renderSetNav,
|
|
8515
|
+
un as renderSetPage,
|
|
8516
|
+
mn as renderSetPanel,
|
|
8517
|
+
gn as renderSetPattern,
|
|
8518
|
+
fn as renderSetPoster,
|
|
8519
|
+
vn as renderSetPosterImage,
|
|
8520
|
+
wn as renderSetProse,
|
|
8521
|
+
xn as renderSetRadios,
|
|
8522
|
+
Si as renderSetRange,
|
|
8523
|
+
zn as renderSetRoot,
|
|
8524
|
+
Ei as renderSetSidebar,
|
|
8525
|
+
Ln as renderSetSpinner,
|
|
8526
|
+
qn as renderSetStack,
|
|
8527
|
+
Tn as renderSetSurface,
|
|
8528
|
+
_n as renderSetSwitch,
|
|
8529
|
+
Ai as renderSetText,
|
|
8530
|
+
Vn as renderSetTextarea,
|
|
8531
|
+
Ci as renderSetVideo,
|
|
8532
|
+
m as serializeSetNode
|
|
8368
8533
|
};
|
|
8369
8534
|
//# sourceMappingURL=index.js.map
|