@monospaced/set-core 0.26.0 → 0.28.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/alert/alert.d.ts +3 -3
- package/dist/components/alert/alert.d.ts.map +1 -1
- package/dist/components/avatar/avatar.d.ts +3 -3
- package/dist/components/avatar/avatar.d.ts.map +1 -1
- package/dist/components/badge/badge.d.ts +2 -2
- package/dist/components/badge/badge.d.ts.map +1 -1
- package/dist/components/banner/banner.d.ts +2 -2
- package/dist/components/banner/banner.d.ts.map +1 -1
- package/dist/components/blockquote/blockquote.d.ts +3 -3
- package/dist/components/blockquote/blockquote.d.ts.map +1 -1
- package/dist/components/box/box.d.ts +3 -3
- package/dist/components/box/box.d.ts.map +1 -1
- package/dist/components/button/button.d.ts +3 -3
- package/dist/components/button/button.d.ts.map +1 -1
- package/dist/components/card/card.d.ts +4 -4
- package/dist/components/card/card.d.ts.map +1 -1
- package/dist/components/checkbox/checkbox.d.ts +3 -3
- package/dist/components/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/container/container.d.ts +2 -2
- package/dist/components/container/container.d.ts.map +1 -1
- package/dist/components/details/details.d.ts +3 -3
- package/dist/components/details/details.d.ts.map +1 -1
- package/dist/components/dither/dither.d.ts +3 -3
- package/dist/components/dither/dither.d.ts.map +1 -1
- package/dist/components/divider/divider.d.ts +2 -2
- package/dist/components/divider/divider.d.ts.map +1 -1
- package/dist/components/expander/expander.d.ts +2 -2
- package/dist/components/expander/expander.d.ts.map +1 -1
- package/dist/components/fieldset/fieldset.d.ts +3 -3
- package/dist/components/fieldset/fieldset.d.ts.map +1 -1
- package/dist/components/figure/figure.d.ts +3 -3
- package/dist/components/figure/figure.d.ts.map +1 -1
- package/dist/components/grid/grid.d.ts +3 -3
- package/dist/components/grid/grid.d.ts.map +1 -1
- package/dist/components/heading/heading.d.ts +3 -3
- package/dist/components/heading/heading.d.ts.map +1 -1
- package/dist/components/icon/icon.d.ts +2 -2
- package/dist/components/icon/icon.d.ts.map +1 -1
- package/dist/components/image/image.d.ts +3 -3
- package/dist/components/image/image.d.ts.map +1 -1
- package/dist/components/inline/inline.d.ts +3 -3
- package/dist/components/inline/inline.d.ts.map +1 -1
- package/dist/components/input/input.d.ts +3 -3
- package/dist/components/input/input.d.ts.map +1 -1
- package/dist/components/lightswitch/lightswitch.d.ts +2 -2
- package/dist/components/lightswitch/lightswitch.d.ts.map +1 -1
- package/dist/components/link/link.d.ts +2 -2
- package/dist/components/link/link.d.ts.map +1 -1
- package/dist/components/logo/logo.d.ts +2 -2
- package/dist/components/logo/logo.d.ts.map +1 -1
- package/dist/components/logo/logos-animated.d.ts +1 -1
- package/dist/components/logo/logos-animated.d.ts.map +1 -1
- package/dist/components/menu/menu.d.ts +5 -5
- package/dist/components/menu/menu.d.ts.map +1 -1
- package/dist/components/nav/nav.d.ts +2 -2
- package/dist/components/nav/nav.d.ts.map +1 -1
- package/dist/components/page/page.d.ts +4 -4
- package/dist/components/page/page.d.ts.map +1 -1
- package/dist/components/pattern/pattern.d.ts +3 -3
- package/dist/components/pattern/pattern.d.ts.map +1 -1
- package/dist/components/poster/poster.d.ts +5 -5
- package/dist/components/poster/poster.d.ts.map +1 -1
- package/dist/components/prose/prose.d.ts +3 -3
- package/dist/components/prose/prose.d.ts.map +1 -1
- package/dist/components/radios/radios.d.ts +3 -3
- package/dist/components/radios/radios.d.ts.map +1 -1
- package/dist/components/range/range.d.ts +3 -3
- package/dist/components/range/range.d.ts.map +1 -1
- package/dist/components/root/root.d.ts +2 -2
- package/dist/components/root/root.d.ts.map +1 -1
- package/dist/components/sidebar/sidebar.d.ts +4 -4
- package/dist/components/sidebar/sidebar.d.ts.map +1 -1
- package/dist/components/spinner/spinner.d.ts +2 -2
- package/dist/components/spinner/spinner.d.ts.map +1 -1
- package/dist/components/stack/stack.d.ts +2 -2
- package/dist/components/stack/stack.d.ts.map +1 -1
- package/dist/components/surface/surface.d.ts +3 -3
- package/dist/components/surface/surface.d.ts.map +1 -1
- package/dist/components/switch/switch.d.ts +3 -3
- package/dist/components/switch/switch.d.ts.map +1 -1
- package/dist/components/text/text.d.ts +3 -3
- package/dist/components/text/text.d.ts.map +1 -1
- package/dist/components/textarea/textarea.d.ts +3 -3
- package/dist/components/textarea/textarea.d.ts.map +1 -1
- package/dist/components/video/video.d.ts +2 -2
- package/dist/components/video/video.d.ts.map +1 -1
- package/dist/core-mnsp.css +1 -1
- package/dist/core-wrfr.css +1 -1
- package/dist/core.css +1 -1
- package/dist/helpers/scheme.d.ts +11 -0
- package/dist/helpers/scheme.d.ts.map +1 -0
- package/dist/index.d.ts +51 -47
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +576 -332
- package/dist/index.js.map +1 -1
- package/dist/runtime/canvas.d.ts +41 -0
- package/dist/runtime/canvas.d.ts.map +1 -0
- package/dist/runtime/dither.d.ts +68 -0
- package/dist/runtime/dither.d.ts.map +1 -0
- package/dist/runtime/easing.d.ts +13 -0
- package/dist/runtime/easing.d.ts.map +1 -0
- package/dist/runtime/frames.d.ts +22 -0
- package/dist/runtime/frames.d.ts.map +1 -0
- package/dist/runtime/tokens.d.ts +86 -0
- package/dist/runtime/tokens.d.ts.map +1 -0
- package/package.json +12 -7
- package/dist/index.cjs +0 -2
- package/dist/index.cjs.map +0 -1
- package/dist/test/spec.d.ts +0 -14
- package/dist/test/spec.d.ts.map +0 -1
package/dist/index.js
CHANGED
|
@@ -42,7 +42,7 @@ function o(e) {
|
|
|
42
42
|
if (e != null) return e.trim().replace(/\s+/g, " ") || void 0;
|
|
43
43
|
}
|
|
44
44
|
// ../icons/dist/icons.generated.js
|
|
45
|
-
var s = /* @__PURE__ */ "adjustment.arrow-down.arrow-left.arrow-left-right-1.arrow-right.arrow-up.arrow-up-down-1.check.check-circle.chevron-down.chevron-right.circle.city-6.close.copy.download.enter.error-circle.error-triangle.horizontal.image.info-circle.jump.layers.link.member.moon.panel-left.pantone.play.rectangle.refresh.robot-1.search.setting-1.sticky-note.sunny.swap.user-1.view-list".split("."), c = {
|
|
45
|
+
var s = /* @__PURE__ */ "adjustment.arrow-down.arrow-left.arrow-left-right-1.arrow-right.arrow-up.arrow-up-down-1.check.check-circle.chevron-down.chevron-right.circle.city-6.close.copy.download.enter.error-circle.error-triangle.horizontal.image.info-circle.jump.layers.link.member.moon.panel-left.pantone.pause.play.rectangle.refresh.robot-1.search.setting-1.sticky-note.sunny.swap.user-1.view-list".split("."), c = {
|
|
46
46
|
adjustment: [{
|
|
47
47
|
tag: "g",
|
|
48
48
|
attrs: {},
|
|
@@ -438,6 +438,19 @@ var s = /* @__PURE__ */ "adjustment.arrow-down.arrow-left.arrow-left-right-1.arr
|
|
|
438
438
|
}]
|
|
439
439
|
}]
|
|
440
440
|
}],
|
|
441
|
+
pause: [{
|
|
442
|
+
tag: "path",
|
|
443
|
+
attrs: {
|
|
444
|
+
d: "M7.5 6.5H9.5V17.5H7.5Z",
|
|
445
|
+
fill: "currentColor"
|
|
446
|
+
}
|
|
447
|
+
}, {
|
|
448
|
+
tag: "path",
|
|
449
|
+
attrs: {
|
|
450
|
+
d: "M14.5 6.5H16.5V17.5H14.5Z",
|
|
451
|
+
fill: "currentColor"
|
|
452
|
+
}
|
|
453
|
+
}],
|
|
441
454
|
play: [{
|
|
442
455
|
tag: "path",
|
|
443
456
|
attrs: {
|
|
@@ -1452,7 +1465,7 @@ function M() {
|
|
|
1452
1465
|
}
|
|
1453
1466
|
customElements.define(C, e);
|
|
1454
1467
|
}
|
|
1455
|
-
var
|
|
1468
|
+
var ee = {
|
|
1456
1469
|
name: "alert",
|
|
1457
1470
|
category: "status",
|
|
1458
1471
|
description: "Use `alert` to surface short, important messages.",
|
|
@@ -1661,13 +1674,13 @@ var N = {
|
|
|
1661
1674
|
] }
|
|
1662
1675
|
};
|
|
1663
1676
|
// src/components/link/link.ts
|
|
1664
|
-
function
|
|
1677
|
+
function N(e) {
|
|
1665
1678
|
if (e) return e === !0 || e;
|
|
1666
1679
|
}
|
|
1667
|
-
function
|
|
1680
|
+
function P(e) {
|
|
1668
1681
|
let { appearance: t = "text", current: n, download: r, href: i, id: o, icon: s, iconPlacement: c = "start", label: l, labelVisibility: u = "visible", rel: d, size: f = "md", target: p, tone: m = "default", underline: h } = e, g = a(o), _ = s?.trim() || void 0;
|
|
1669
1682
|
if (u !== "visible" && !_) throw Error("labelVisibility requires icon when label is not visible.");
|
|
1670
|
-
let v =
|
|
1683
|
+
let v = N(r), y = _ ? {
|
|
1671
1684
|
kind: "element",
|
|
1672
1685
|
tag: "span",
|
|
1673
1686
|
attrs: { class: "icon-wrapper" },
|
|
@@ -1704,10 +1717,10 @@ function F(e) {
|
|
|
1704
1717
|
children: y ? c === "end" ? [b, y] : [y, b] : [b]
|
|
1705
1718
|
};
|
|
1706
1719
|
}
|
|
1707
|
-
function
|
|
1708
|
-
return r(
|
|
1720
|
+
function te(e) {
|
|
1721
|
+
return r(P(e));
|
|
1709
1722
|
}
|
|
1710
|
-
var
|
|
1723
|
+
var ne = {
|
|
1711
1724
|
name: "link",
|
|
1712
1725
|
category: "navigation",
|
|
1713
1726
|
description: "Use `link` to navigate to another page or resource.",
|
|
@@ -1990,8 +2003,8 @@ var te = {
|
|
|
1990
2003
|
}
|
|
1991
2004
|
}
|
|
1992
2005
|
] }
|
|
1993
|
-
},
|
|
1994
|
-
function
|
|
2006
|
+
}, F = "set-banner", I = "set-banner-before-dismiss", L = "set-banner-dismiss", R = "Dismiss banner";
|
|
2007
|
+
function re(e, t) {
|
|
1995
2008
|
let n = t.createElement("div");
|
|
1996
2009
|
return n.setAttribute("data-part", "close"), n.innerHTML = b({
|
|
1997
2010
|
appearance: "text",
|
|
@@ -2002,22 +2015,22 @@ function ne(e, t) {
|
|
|
2002
2015
|
tone: "neutral"
|
|
2003
2016
|
}), n;
|
|
2004
2017
|
}
|
|
2005
|
-
function
|
|
2018
|
+
function ie({ actionHref: e, actionLabel: t, dismissible: n = !0, dismissibleLabel: r = R, id: i, message: o, tone: s }) {
|
|
2006
2019
|
if (!!e != !!t) throw Error("actionHref and actionLabel must be provided together.");
|
|
2007
|
-
let c = a(i), l = r.trim() === "" ?
|
|
2020
|
+
let c = a(i), l = r.trim() === "" ? R : r, u = [{
|
|
2008
2021
|
kind: "text",
|
|
2009
2022
|
value: o
|
|
2010
2023
|
}];
|
|
2011
2024
|
return e && t && (u.push({
|
|
2012
2025
|
kind: "text",
|
|
2013
2026
|
value: " "
|
|
2014
|
-
}), u.push(
|
|
2027
|
+
}), u.push(P({
|
|
2015
2028
|
href: e,
|
|
2016
2029
|
label: t,
|
|
2017
2030
|
underline: !0
|
|
2018
2031
|
}))), {
|
|
2019
2032
|
kind: "element",
|
|
2020
|
-
tag:
|
|
2033
|
+
tag: F,
|
|
2021
2034
|
attrs: {
|
|
2022
2035
|
class: "set-banner",
|
|
2023
2036
|
"data-set-content-theme": "dark",
|
|
@@ -2035,20 +2048,20 @@ function re({ actionHref: e, actionLabel: t, dismissible: n = !0, dismissibleLab
|
|
|
2035
2048
|
}]
|
|
2036
2049
|
};
|
|
2037
2050
|
}
|
|
2038
|
-
function
|
|
2039
|
-
return r(
|
|
2051
|
+
function ae(e) {
|
|
2052
|
+
return r(ie(e));
|
|
2040
2053
|
}
|
|
2041
|
-
function
|
|
2054
|
+
function oe() {
|
|
2042
2055
|
if (customElements.get("set-banner")) return;
|
|
2043
2056
|
class e extends HTMLElement {
|
|
2044
2057
|
#e = (e) => {
|
|
2045
2058
|
let t = e.target;
|
|
2046
2059
|
if (!(t instanceof Element) || !t.closest("[data-part=\"close\"]")) return;
|
|
2047
|
-
let n = new CustomEvent(
|
|
2060
|
+
let n = new CustomEvent(I, {
|
|
2048
2061
|
bubbles: !0,
|
|
2049
2062
|
cancelable: !0
|
|
2050
2063
|
});
|
|
2051
|
-
this.dispatchEvent(n) && (this.dispatchEvent(new CustomEvent(
|
|
2064
|
+
this.dispatchEvent(n) && (this.dispatchEvent(new CustomEvent(L, { bubbles: !0 })), this.remove());
|
|
2052
2065
|
};
|
|
2053
2066
|
connectedCallback() {
|
|
2054
2067
|
this.removeEventListener("click", this.#e), this.hasAttribute("data-dismissible") && (this.#t(), this.addEventListener("click", this.#e));
|
|
@@ -2057,17 +2070,17 @@ function ae() {
|
|
|
2057
2070
|
this.removeEventListener("click", this.#e);
|
|
2058
2071
|
}
|
|
2059
2072
|
#t() {
|
|
2060
|
-
this.querySelector("[data-part=\"close\"]") || this.append(
|
|
2073
|
+
this.querySelector("[data-part=\"close\"]") || this.append(re(this.getAttribute("data-dismissible-label") ?? R, this.ownerDocument));
|
|
2061
2074
|
}
|
|
2062
2075
|
}
|
|
2063
|
-
customElements.define(
|
|
2076
|
+
customElements.define(F, e);
|
|
2064
2077
|
}
|
|
2065
|
-
var
|
|
2078
|
+
var se = {
|
|
2066
2079
|
name: "banner",
|
|
2067
2080
|
category: "status",
|
|
2068
2081
|
description: "Use `banner` to display a prominent site-wide message.",
|
|
2069
2082
|
output: {
|
|
2070
|
-
element:
|
|
2083
|
+
element: F,
|
|
2071
2084
|
class: "set-banner"
|
|
2072
2085
|
},
|
|
2073
2086
|
content: {
|
|
@@ -2091,7 +2104,7 @@ var oe = {
|
|
|
2091
2104
|
type: { kind: "boolean" }
|
|
2092
2105
|
},
|
|
2093
2106
|
dismissibleLabel: {
|
|
2094
|
-
default:
|
|
2107
|
+
default: R,
|
|
2095
2108
|
description: "Accessible label for the dismiss control.",
|
|
2096
2109
|
ignoredWhen: "`dismissible` is false",
|
|
2097
2110
|
type: { kind: "string" }
|
|
@@ -2118,12 +2131,12 @@ var oe = {
|
|
|
2118
2131
|
}
|
|
2119
2132
|
},
|
|
2120
2133
|
events: {
|
|
2121
|
-
[
|
|
2134
|
+
[I]: {
|
|
2122
2135
|
bubbles: !0,
|
|
2123
2136
|
cancelable: !0,
|
|
2124
2137
|
description: "Fired before the banner is removed by a dismiss action. Call `preventDefault()` to keep the banner mounted."
|
|
2125
2138
|
},
|
|
2126
|
-
[
|
|
2139
|
+
[L]: {
|
|
2127
2140
|
bubbles: !0,
|
|
2128
2141
|
description: "Fired after the banner has been removed by an allowed dismiss action."
|
|
2129
2142
|
}
|
|
@@ -2180,8 +2193,8 @@ var oe = {
|
|
|
2180
2193
|
}
|
|
2181
2194
|
}
|
|
2182
2195
|
] }
|
|
2183
|
-
},
|
|
2184
|
-
function
|
|
2196
|
+
}, z = "set-image";
|
|
2197
|
+
function ce({ adaptive: e, alt: t = "", aspectRatio: n, fit: r = "intrinsic", gravity: i = "C", height: o, id: s, lazy: c, leadSrc: l, priority: u, radius: d, shadow: f, sizes: p, sources: m, src: h, srcSet: g, stillSrc: _, width: v }) {
|
|
2185
2198
|
let y = r === "cover", b = a(s), x = h.trim(), S = g?.trim(), C = l?.trim(), w = _?.trim(), T = p?.trim(), E = m?.map((e, t) => {
|
|
2186
2199
|
let n = e.srcSet.trim(), r = e.media?.trim(), i = e.type?.trim(), a = e.sizes?.trim(), o = e.leadSrc?.trim(), s = e.stillSrc?.trim();
|
|
2187
2200
|
if (!n) throw Error(`sources[${t}].srcSet must be non-empty.`);
|
|
@@ -2258,14 +2271,22 @@ function se({ adaptive: e, alt: t = "", aspectRatio: n, fit: r = "intrinsic", gr
|
|
|
2258
2271
|
attrs: { "data-scheme": e },
|
|
2259
2272
|
children: [...r, n]
|
|
2260
2273
|
};
|
|
2261
|
-
},
|
|
2274
|
+
}, ee = "(prefers-reduced-motion: reduce)", N = (e, t) => t ? e.replaceAll("{scheme}", t) : e, P = (e, t) => t ? `${e}#${t}` : e, te = (e, t) => {
|
|
2275
|
+
if (!t) return e;
|
|
2276
|
+
let n = [], r = 0, i = 0;
|
|
2277
|
+
for (let e = 0; e < t.length; e += 1) {
|
|
2278
|
+
let a = t[e];
|
|
2279
|
+
a === "(" ? r += 1 : a === ")" ? --r : a === "," && r === 0 && (n.push(t.slice(i, e)), i = e + 1);
|
|
2280
|
+
}
|
|
2281
|
+
return n.push(t.slice(i)), n.map((e) => e.trim()).filter(Boolean).map((t) => `${e} and ${t}`).join(", ");
|
|
2282
|
+
}, ne = (e) => {
|
|
2262
2283
|
let n = E.filter((e) => e.stillSrc).map((t) => ({
|
|
2263
2284
|
kind: "element",
|
|
2264
2285
|
tag: "source",
|
|
2265
2286
|
attrs: {
|
|
2266
2287
|
height: t.height ? String(t.height) : void 0,
|
|
2267
|
-
media:
|
|
2268
|
-
srcset:
|
|
2288
|
+
media: te(ee, t.media),
|
|
2289
|
+
srcset: P(t.stillSrc, e),
|
|
2269
2290
|
width: t.width ? String(t.width) : void 0
|
|
2270
2291
|
},
|
|
2271
2292
|
children: []
|
|
@@ -2274,8 +2295,8 @@ function se({ adaptive: e, alt: t = "", aspectRatio: n, fit: r = "intrinsic", gr
|
|
|
2274
2295
|
kind: "element",
|
|
2275
2296
|
tag: "source",
|
|
2276
2297
|
attrs: {
|
|
2277
|
-
media:
|
|
2278
|
-
srcset:
|
|
2298
|
+
media: ee,
|
|
2299
|
+
srcset: P(w, e)
|
|
2279
2300
|
},
|
|
2280
2301
|
children: []
|
|
2281
2302
|
});
|
|
@@ -2286,7 +2307,7 @@ function se({ adaptive: e, alt: t = "", aspectRatio: n, fit: r = "intrinsic", gr
|
|
|
2286
2307
|
height: t.height ? String(t.height) : void 0,
|
|
2287
2308
|
media: t.media,
|
|
2288
2309
|
sizes: t.sizes,
|
|
2289
|
-
srcset:
|
|
2310
|
+
srcset: N(t.srcSet, e),
|
|
2290
2311
|
type: t.type,
|
|
2291
2312
|
width: t.width ? String(t.width) : void 0
|
|
2292
2313
|
},
|
|
@@ -2301,8 +2322,8 @@ function se({ adaptive: e, alt: t = "", aspectRatio: n, fit: r = "intrinsic", gr
|
|
|
2301
2322
|
height: y ? void 0 : o ? String(o) : void 0,
|
|
2302
2323
|
loading: c && !u ? "lazy" : void 0,
|
|
2303
2324
|
sizes: E.length > 0 ? void 0 : T || void 0,
|
|
2304
|
-
src:
|
|
2305
|
-
srcset: S ?
|
|
2325
|
+
src: N(x, e),
|
|
2326
|
+
srcset: S ? N(S, e) : void 0,
|
|
2306
2327
|
width: y ? void 0 : v ? String(v) : void 0
|
|
2307
2328
|
},
|
|
2308
2329
|
children: []
|
|
@@ -2317,16 +2338,16 @@ function se({ adaptive: e, alt: t = "", aspectRatio: n, fit: r = "intrinsic", gr
|
|
|
2317
2338
|
i
|
|
2318
2339
|
]
|
|
2319
2340
|
};
|
|
2320
|
-
},
|
|
2341
|
+
}, F = (e) => {
|
|
2321
2342
|
let t = "(prefers-reduced-motion: no-preference)", n = E.map((n) => {
|
|
2322
2343
|
if (n.leadSrc) return {
|
|
2323
2344
|
kind: "element",
|
|
2324
2345
|
tag: "source",
|
|
2325
2346
|
attrs: {
|
|
2326
2347
|
height: n.height ? String(n.height) : void 0,
|
|
2327
|
-
media:
|
|
2348
|
+
media: te(t, n.media),
|
|
2328
2349
|
sizes: n.sizes,
|
|
2329
|
-
srcset:
|
|
2350
|
+
srcset: N(n.leadSrc, e),
|
|
2330
2351
|
type: n.type,
|
|
2331
2352
|
width: n.width ? String(n.width) : void 0
|
|
2332
2353
|
},
|
|
@@ -2339,7 +2360,7 @@ function se({ adaptive: e, alt: t = "", aspectRatio: n, fit: r = "intrinsic", gr
|
|
|
2339
2360
|
attrs: {
|
|
2340
2361
|
media: t,
|
|
2341
2362
|
sizes: E.length > 0 ? void 0 : T || void 0,
|
|
2342
|
-
srcset:
|
|
2363
|
+
srcset: N(C, e)
|
|
2343
2364
|
},
|
|
2344
2365
|
children: []
|
|
2345
2366
|
});
|
|
@@ -2350,7 +2371,7 @@ function se({ adaptive: e, alt: t = "", aspectRatio: n, fit: r = "intrinsic", gr
|
|
|
2350
2371
|
alt: "",
|
|
2351
2372
|
class: "img",
|
|
2352
2373
|
height: y ? void 0 : o ? String(o) : void 0,
|
|
2353
|
-
src:
|
|
2374
|
+
src: P(w, e),
|
|
2354
2375
|
width: y ? void 0 : v ? String(v) : void 0
|
|
2355
2376
|
},
|
|
2356
2377
|
children: []
|
|
@@ -2364,10 +2385,10 @@ function se({ adaptive: e, alt: t = "", aspectRatio: n, fit: r = "intrinsic", gr
|
|
|
2364
2385
|
},
|
|
2365
2386
|
children: [...n, r]
|
|
2366
2387
|
};
|
|
2367
|
-
}, I = (e) => k ? [
|
|
2388
|
+
}, I = (e) => k ? [ne(e), F(e)] : [ne(e)], L = D ? O ? [...I("light"), ...I("dark")] : I() : e ? [M("light"), M("dark")] : [M()], R = [];
|
|
2368
2389
|
return o && R.push(`--set-image-block-size: ${o / 16}rem`), v && R.push(`--set-image-inline-size: ${v / 16}rem`), {
|
|
2369
2390
|
kind: "element",
|
|
2370
|
-
tag:
|
|
2391
|
+
tag: z,
|
|
2371
2392
|
attrs: {
|
|
2372
2393
|
class: "set-image",
|
|
2373
2394
|
"data-adaptive": !!e,
|
|
@@ -2385,10 +2406,10 @@ function se({ adaptive: e, alt: t = "", aspectRatio: n, fit: r = "intrinsic", gr
|
|
|
2385
2406
|
children: L
|
|
2386
2407
|
};
|
|
2387
2408
|
}
|
|
2388
|
-
function
|
|
2389
|
-
return r(
|
|
2409
|
+
function le(e) {
|
|
2410
|
+
return r(ce(e));
|
|
2390
2411
|
}
|
|
2391
|
-
function
|
|
2412
|
+
function ue() {
|
|
2392
2413
|
if (customElements.get("set-image")) return;
|
|
2393
2414
|
class e extends HTMLElement {
|
|
2394
2415
|
connectedCallback() {
|
|
@@ -2404,14 +2425,14 @@ function le() {
|
|
|
2404
2425
|
t.complete && t.naturalWidth > 0 ? n() : (t.addEventListener("load", n, { once: !0 }), t.addEventListener("error", n, { once: !0 }));
|
|
2405
2426
|
}
|
|
2406
2427
|
}
|
|
2407
|
-
customElements.define(
|
|
2428
|
+
customElements.define(z, e);
|
|
2408
2429
|
}
|
|
2409
|
-
var
|
|
2430
|
+
var de = {
|
|
2410
2431
|
name: "image",
|
|
2411
2432
|
category: "graphic",
|
|
2412
2433
|
description: "Use `image` to render a responsive image with intrinsic, fluid, or cover fit, and optional art-directed `sources`.",
|
|
2413
2434
|
output: {
|
|
2414
|
-
element:
|
|
2435
|
+
element: z,
|
|
2415
2436
|
class: "set-image"
|
|
2416
2437
|
},
|
|
2417
2438
|
content: { kind: "none" },
|
|
@@ -2734,14 +2755,17 @@ var ue = {
|
|
|
2734
2755
|
}
|
|
2735
2756
|
}
|
|
2736
2757
|
] }
|
|
2737
|
-
},
|
|
2738
|
-
|
|
2758
|
+
}, fe = "(prefers-color-scheme: dark)", pe = (e, t) => {
|
|
2759
|
+
let n = (e.ownerDocument ?? e).defaultView;
|
|
2760
|
+
if (n && typeof n.matchMedia == "function") return n.matchMedia(t);
|
|
2761
|
+
}, me = (e) => pe(e, "(prefers-color-scheme: dark)")?.matches ? "dark" : "light", B = "set-lightswitch", he = "set-lightswitch-change", V = "set-theme", ge = "Switch to dark theme", _e = "Switch to light theme";
|
|
2762
|
+
function ve(e) {
|
|
2739
2763
|
return e === "dark" ? "light" : "dark";
|
|
2740
2764
|
}
|
|
2741
|
-
function
|
|
2765
|
+
function ye(e) {
|
|
2742
2766
|
return e === "dark" ? "moon" : "sunny";
|
|
2743
2767
|
}
|
|
2744
|
-
function
|
|
2768
|
+
function be(e, t) {
|
|
2745
2769
|
return {
|
|
2746
2770
|
kind: "element",
|
|
2747
2771
|
tag: "span",
|
|
@@ -2755,7 +2779,7 @@ function he(e, t) {
|
|
|
2755
2779
|
attrs: { class: "icon-wrapper" },
|
|
2756
2780
|
children: [d({
|
|
2757
2781
|
ariaHidden: !0,
|
|
2758
|
-
name:
|
|
2782
|
+
name: ye(e),
|
|
2759
2783
|
size: "fill"
|
|
2760
2784
|
})]
|
|
2761
2785
|
}, {
|
|
@@ -2769,11 +2793,11 @@ function he(e, t) {
|
|
|
2769
2793
|
}]
|
|
2770
2794
|
};
|
|
2771
2795
|
}
|
|
2772
|
-
function
|
|
2773
|
-
let o = a(t), s = n.trim() === "" ?
|
|
2796
|
+
function xe({ appearance: e = "text", id: t, labelDark: n = ge, labelLight: r = _e, size: i = "md" }) {
|
|
2797
|
+
let o = a(t), s = n.trim() === "" ? ge : n, c = r.trim() === "" ? _e : r;
|
|
2774
2798
|
return {
|
|
2775
2799
|
kind: "element",
|
|
2776
|
-
tag:
|
|
2800
|
+
tag: B,
|
|
2777
2801
|
attrs: {
|
|
2778
2802
|
class: "set-lightswitch",
|
|
2779
2803
|
id: o
|
|
@@ -2787,21 +2811,21 @@ function ge({ appearance: e = "text", id: t, labelDark: n = U, labelLight: r = f
|
|
|
2787
2811
|
"data-size": i,
|
|
2788
2812
|
type: "button"
|
|
2789
2813
|
},
|
|
2790
|
-
children: [
|
|
2814
|
+
children: [be("dark", s), be("light", c)]
|
|
2791
2815
|
}]
|
|
2792
2816
|
};
|
|
2793
2817
|
}
|
|
2794
|
-
function
|
|
2795
|
-
return r(
|
|
2818
|
+
function Se(e) {
|
|
2819
|
+
return r(xe(e));
|
|
2796
2820
|
}
|
|
2797
|
-
function
|
|
2821
|
+
function Ce() {
|
|
2798
2822
|
if (customElements.get("set-lightswitch")) return;
|
|
2799
2823
|
class e extends HTMLElement {
|
|
2800
2824
|
#e = (e) => {
|
|
2801
2825
|
let t = e.target;
|
|
2802
2826
|
if (!(t instanceof Element) || !t.closest("button")) return;
|
|
2803
|
-
let n =
|
|
2804
|
-
n === this.#a() ? this.#i() : this.#r(n), this.#l(), this.dispatchEvent(new CustomEvent(
|
|
2827
|
+
let n = ve(this.#c());
|
|
2828
|
+
n === this.#a() ? this.#i() : this.#r(n), this.#l(), this.dispatchEvent(new CustomEvent(he, {
|
|
2805
2829
|
bubbles: !0,
|
|
2806
2830
|
detail: {
|
|
2807
2831
|
stored: !!this.#n(),
|
|
@@ -2824,7 +2848,7 @@ function ve() {
|
|
|
2824
2848
|
}
|
|
2825
2849
|
#n() {
|
|
2826
2850
|
try {
|
|
2827
|
-
let e = this.#t()?.getItem(
|
|
2851
|
+
let e = this.#t()?.getItem(V);
|
|
2828
2852
|
return e === "light" || e === "dark" ? e : void 0;
|
|
2829
2853
|
} catch {
|
|
2830
2854
|
return;
|
|
@@ -2832,17 +2856,16 @@ function ve() {
|
|
|
2832
2856
|
}
|
|
2833
2857
|
#r(e) {
|
|
2834
2858
|
try {
|
|
2835
|
-
this.#t()?.setItem(
|
|
2859
|
+
this.#t()?.setItem(V, e);
|
|
2836
2860
|
} catch {}
|
|
2837
2861
|
}
|
|
2838
2862
|
#i() {
|
|
2839
2863
|
try {
|
|
2840
|
-
this.#t()?.removeItem(
|
|
2864
|
+
this.#t()?.removeItem(V);
|
|
2841
2865
|
} catch {}
|
|
2842
2866
|
}
|
|
2843
2867
|
#a() {
|
|
2844
|
-
|
|
2845
|
-
return !e || typeof e.matchMedia != "function" ? "light" : e.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
2868
|
+
return me(this);
|
|
2846
2869
|
}
|
|
2847
2870
|
#o() {
|
|
2848
2871
|
return this.closest(".set");
|
|
@@ -2861,14 +2884,14 @@ function ve() {
|
|
|
2861
2884
|
t ? e.setAttribute("data-set-theme", t) : e.removeAttribute("data-set-theme");
|
|
2862
2885
|
}
|
|
2863
2886
|
}
|
|
2864
|
-
customElements.define(
|
|
2887
|
+
customElements.define(B, e);
|
|
2865
2888
|
}
|
|
2866
|
-
var
|
|
2889
|
+
var we = {
|
|
2867
2890
|
name: "lightswitch",
|
|
2868
2891
|
category: "control",
|
|
2869
2892
|
description: "Use `lightswitch` to let users toggle between light and dark themes.",
|
|
2870
2893
|
output: {
|
|
2871
|
-
element:
|
|
2894
|
+
element: B,
|
|
2872
2895
|
class: "set-lightswitch"
|
|
2873
2896
|
},
|
|
2874
2897
|
content: { kind: "none" },
|
|
@@ -2890,12 +2913,12 @@ var ye = {
|
|
|
2890
2913
|
type: { kind: "string" }
|
|
2891
2914
|
},
|
|
2892
2915
|
labelDark: {
|
|
2893
|
-
default:
|
|
2916
|
+
default: ge,
|
|
2894
2917
|
description: "Accessible label of the switch-to-dark action.",
|
|
2895
2918
|
type: { kind: "string" }
|
|
2896
2919
|
},
|
|
2897
2920
|
labelLight: {
|
|
2898
|
-
default:
|
|
2921
|
+
default: _e,
|
|
2899
2922
|
description: "Accessible label of the switch-to-light action.",
|
|
2900
2923
|
type: { kind: "string" }
|
|
2901
2924
|
},
|
|
@@ -2912,7 +2935,7 @@ var ye = {
|
|
|
2912
2935
|
}
|
|
2913
2936
|
}
|
|
2914
2937
|
},
|
|
2915
|
-
events: { [
|
|
2938
|
+
events: { [he]: {
|
|
2916
2939
|
bubbles: !0,
|
|
2917
2940
|
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."
|
|
2918
2941
|
} },
|
|
@@ -2978,8 +3001,8 @@ var ye = {
|
|
|
2978
3001
|
}
|
|
2979
3002
|
}
|
|
2980
3003
|
] }
|
|
2981
|
-
},
|
|
2982
|
-
function
|
|
3004
|
+
}, H = "set-menu", Te = "set-menu-choose";
|
|
3005
|
+
function Ee({ align: e = "start", id: t, items: n, size: r = "md", triggerActivity: a, triggerIcon: o, triggerIconMirrored: s, triggerIconPlacement: c, triggerLabel: l, triggerLabelVisibility: u }) {
|
|
2983
3006
|
let d = t.trim();
|
|
2984
3007
|
if (!d) throw Error("id must be a non-empty string.");
|
|
2985
3008
|
if (!i(d)) throw Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");
|
|
@@ -3001,7 +3024,7 @@ function xe({ align: e = "start", id: t, items: n, size: r = "md", triggerActivi
|
|
|
3001
3024
|
}));
|
|
3002
3025
|
return {
|
|
3003
3026
|
kind: "element",
|
|
3004
|
-
tag:
|
|
3027
|
+
tag: H,
|
|
3005
3028
|
attrs: {
|
|
3006
3029
|
class: "set-menu",
|
|
3007
3030
|
"data-align": e === "start" ? void 0 : e,
|
|
@@ -3042,10 +3065,10 @@ function xe({ align: e = "start", id: t, items: n, size: r = "md", triggerActivi
|
|
|
3042
3065
|
}]
|
|
3043
3066
|
};
|
|
3044
3067
|
}
|
|
3045
|
-
function
|
|
3046
|
-
return r(
|
|
3068
|
+
function De(e) {
|
|
3069
|
+
return r(Ee(e));
|
|
3047
3070
|
}
|
|
3048
|
-
function
|
|
3071
|
+
function Oe() {
|
|
3049
3072
|
if (customElements.get("set-menu")) return;
|
|
3050
3073
|
class e extends HTMLElement {
|
|
3051
3074
|
#e;
|
|
@@ -3094,7 +3117,7 @@ function Ce() {
|
|
|
3094
3117
|
}
|
|
3095
3118
|
#f(e) {
|
|
3096
3119
|
let t = Array.from(this.querySelectorAll("[role=\"menuitem\"]")).indexOf(e);
|
|
3097
|
-
this.dispatchEvent(new CustomEvent(
|
|
3120
|
+
this.dispatchEvent(new CustomEvent(Te, {
|
|
3098
3121
|
bubbles: !0,
|
|
3099
3122
|
detail: {
|
|
3100
3123
|
id: e.getAttribute("data-item-id") || void 0,
|
|
@@ -3138,14 +3161,14 @@ function Ce() {
|
|
|
3138
3161
|
this.#e && this.removeEventListener("click", this.#e), this.#t && this.ownerDocument.removeEventListener("click", this.#t), this.#r && this.removeEventListener("keydown", this.#r), this.#n && this.removeEventListener("focusout", this.#n), this.#e = void 0, this.#t = void 0, this.#n = void 0, this.#r = void 0;
|
|
3139
3162
|
}
|
|
3140
3163
|
}
|
|
3141
|
-
customElements.define(
|
|
3164
|
+
customElements.define(H, e);
|
|
3142
3165
|
}
|
|
3143
|
-
var
|
|
3166
|
+
var ke = {
|
|
3144
3167
|
name: "menu",
|
|
3145
3168
|
category: "control",
|
|
3146
3169
|
description: "Use `menu` to show a list of actions from a trigger button.",
|
|
3147
3170
|
output: {
|
|
3148
|
-
element:
|
|
3171
|
+
element: H,
|
|
3149
3172
|
class: "set-menu"
|
|
3150
3173
|
},
|
|
3151
3174
|
content: {
|
|
@@ -3241,7 +3264,7 @@ var we = {
|
|
|
3241
3264
|
}
|
|
3242
3265
|
}
|
|
3243
3266
|
},
|
|
3244
|
-
events: { [
|
|
3267
|
+
events: { [Te]: {
|
|
3245
3268
|
bubbles: !0,
|
|
3246
3269
|
description: "Fired when a menu item is activated.",
|
|
3247
3270
|
detail: "{ id?: string; index: number; label: string }"
|
|
@@ -3335,9 +3358,9 @@ var we = {
|
|
|
3335
3358
|
condition: { kind: "always" }
|
|
3336
3359
|
}
|
|
3337
3360
|
] }
|
|
3338
|
-
},
|
|
3339
|
-
function
|
|
3340
|
-
let o = a(n), s = r.trim() === "" ?
|
|
3361
|
+
}, Ae = "Menu";
|
|
3362
|
+
function je({ controlsId: e, expanded: t, id: n, label: r = Ae, size: i = "md" } = {}) {
|
|
3363
|
+
let o = a(n), s = r.trim() === "" ? Ae : r;
|
|
3341
3364
|
return {
|
|
3342
3365
|
kind: "element",
|
|
3343
3366
|
tag: "button",
|
|
@@ -3370,10 +3393,10 @@ function Ee({ controlsId: e, expanded: t, id: n, label: r = Te, size: i = "md" }
|
|
|
3370
3393
|
}]
|
|
3371
3394
|
};
|
|
3372
3395
|
}
|
|
3373
|
-
function
|
|
3374
|
-
return r(
|
|
3396
|
+
function Me(e = {}) {
|
|
3397
|
+
return r(je(e));
|
|
3375
3398
|
}
|
|
3376
|
-
var
|
|
3399
|
+
var Ne = {
|
|
3377
3400
|
name: "expander",
|
|
3378
3401
|
category: "control",
|
|
3379
3402
|
description: "Use `expander` as a toggle for disclosure regions such as menus.",
|
|
@@ -3400,7 +3423,7 @@ var Oe = {
|
|
|
3400
3423
|
type: { kind: "string" }
|
|
3401
3424
|
},
|
|
3402
3425
|
label: {
|
|
3403
|
-
default:
|
|
3426
|
+
default: Ae,
|
|
3404
3427
|
description: "Accessible label.",
|
|
3405
3428
|
type: { kind: "text" }
|
|
3406
3429
|
},
|
|
@@ -3471,8 +3494,8 @@ var Oe = {
|
|
|
3471
3494
|
}
|
|
3472
3495
|
}
|
|
3473
3496
|
] }
|
|
3474
|
-
},
|
|
3475
|
-
function
|
|
3497
|
+
}, U = "set-nav", Pe = "data-set-scroll-locked";
|
|
3498
|
+
function Fe({ collapsible: e, contentId: t, expanderLabel: n, expanderPosition: r = "start", id: o, items: s, label: c, size: l = "md" }) {
|
|
3476
3499
|
let u = a(o), d = n?.trim() || void 0, f = t?.trim();
|
|
3477
3500
|
if (e && !f) throw Error("contentId must be a non-empty string when collapsible is set.");
|
|
3478
3501
|
if (f && !i(f)) throw Error("contentId must start with a letter and contain only letters, numbers, '_', '-', or ':'.");
|
|
@@ -3496,7 +3519,7 @@ function Ae({ collapsible: e, contentId: t, expanderLabel: n, expanderPosition:
|
|
|
3496
3519
|
}));
|
|
3497
3520
|
return {
|
|
3498
3521
|
kind: "element",
|
|
3499
|
-
tag:
|
|
3522
|
+
tag: U,
|
|
3500
3523
|
attrs: {
|
|
3501
3524
|
class: "set-nav",
|
|
3502
3525
|
"data-collapsible": e,
|
|
@@ -3529,10 +3552,10 @@ function Ae({ collapsible: e, contentId: t, expanderLabel: n, expanderPosition:
|
|
|
3529
3552
|
}]
|
|
3530
3553
|
};
|
|
3531
3554
|
}
|
|
3532
|
-
function
|
|
3533
|
-
return r(
|
|
3555
|
+
function Ie(e) {
|
|
3556
|
+
return r(Fe(e));
|
|
3534
3557
|
}
|
|
3535
|
-
function
|
|
3558
|
+
function Le() {
|
|
3536
3559
|
if (customElements.get("set-nav")) return;
|
|
3537
3560
|
class e extends HTMLElement {
|
|
3538
3561
|
#e;
|
|
@@ -3555,7 +3578,7 @@ function Me() {
|
|
|
3555
3578
|
let e = this.#i();
|
|
3556
3579
|
if (!e || e.querySelector("[data-part=\"expander\"]")) return;
|
|
3557
3580
|
let t = e.querySelector(".content");
|
|
3558
|
-
t && e.insertAdjacentHTML("afterbegin", `<div data-part="expander">${
|
|
3581
|
+
t && e.insertAdjacentHTML("afterbegin", `<div data-part="expander">${Me({
|
|
3559
3582
|
controlsId: t.id || void 0,
|
|
3560
3583
|
label: this.getAttribute("data-expander-label") || void 0,
|
|
3561
3584
|
size: this.getAttribute("data-size") === "sm" ? "md" : "lg"
|
|
@@ -3585,7 +3608,7 @@ function Me() {
|
|
|
3585
3608
|
}
|
|
3586
3609
|
#u(e) {
|
|
3587
3610
|
let t = this.ownerDocument.documentElement;
|
|
3588
|
-
t && (e ? t.setAttribute(
|
|
3611
|
+
t && (e ? t.setAttribute(Pe, "") : t.removeAttribute(Pe));
|
|
3589
3612
|
}
|
|
3590
3613
|
#d() {
|
|
3591
3614
|
this.#e &&= (this.removeEventListener("click", this.#e), void 0);
|
|
@@ -3595,14 +3618,14 @@ function Me() {
|
|
|
3595
3618
|
this.#n && e && e.removeEventListener("keydown", this.#n), this.#t && this.#r && this.#t.removeEventListener("change", this.#r), this.#n = void 0, this.#r = void 0, this.#t = void 0;
|
|
3596
3619
|
}
|
|
3597
3620
|
}
|
|
3598
|
-
customElements.define(
|
|
3621
|
+
customElements.define(U, e);
|
|
3599
3622
|
}
|
|
3600
|
-
var
|
|
3623
|
+
var Re = {
|
|
3601
3624
|
name: "nav",
|
|
3602
3625
|
category: "navigation",
|
|
3603
3626
|
description: "Use `nav` to render a primary navigation list.",
|
|
3604
3627
|
output: {
|
|
3605
|
-
element:
|
|
3628
|
+
element: U,
|
|
3606
3629
|
class: "set-nav"
|
|
3607
3630
|
},
|
|
3608
3631
|
content: {
|
|
@@ -3773,8 +3796,8 @@ var Ne = {
|
|
|
3773
3796
|
}
|
|
3774
3797
|
}
|
|
3775
3798
|
] }
|
|
3776
|
-
},
|
|
3777
|
-
function
|
|
3799
|
+
}, W = "set-range";
|
|
3800
|
+
function ze({ description: e, disabled: t, id: n, inlineSize: r = "full", label: a, max: o, min: s, name: c, size: l = "md", step: u, value: d }) {
|
|
3778
3801
|
let f = n.trim(), p = e?.trim(), m = c?.trim();
|
|
3779
3802
|
if (!f) throw Error("id must be a non-empty string.");
|
|
3780
3803
|
if (!i(f)) throw Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");
|
|
@@ -3835,7 +3858,7 @@ function Pe({ description: e, disabled: t, id: n, inlineSize: r = "full", label:
|
|
|
3835
3858
|
}]
|
|
3836
3859
|
}), {
|
|
3837
3860
|
kind: "element",
|
|
3838
|
-
tag:
|
|
3861
|
+
tag: W,
|
|
3839
3862
|
attrs: {
|
|
3840
3863
|
class: "set-range",
|
|
3841
3864
|
"data-inline-size": r === "fit" ? "fit" : void 0,
|
|
@@ -3844,10 +3867,10 @@ function Pe({ description: e, disabled: t, id: n, inlineSize: r = "full", label:
|
|
|
3844
3867
|
children: g
|
|
3845
3868
|
};
|
|
3846
3869
|
}
|
|
3847
|
-
function
|
|
3848
|
-
return r(
|
|
3870
|
+
function Be(e) {
|
|
3871
|
+
return r(ze(e));
|
|
3849
3872
|
}
|
|
3850
|
-
function
|
|
3873
|
+
function Ve() {
|
|
3851
3874
|
if (customElements.get("set-range")) return;
|
|
3852
3875
|
class e extends HTMLElement {
|
|
3853
3876
|
#e;
|
|
@@ -3891,14 +3914,14 @@ function Ie() {
|
|
|
3891
3914
|
this.#e &&= (delete this.#e.value, void 0);
|
|
3892
3915
|
}
|
|
3893
3916
|
}
|
|
3894
|
-
customElements.define(
|
|
3917
|
+
customElements.define(W, e);
|
|
3895
3918
|
}
|
|
3896
|
-
var
|
|
3919
|
+
var He = {
|
|
3897
3920
|
name: "range",
|
|
3898
3921
|
category: "control",
|
|
3899
3922
|
description: "Use `range` to let users pick a numeric value along a scale.",
|
|
3900
3923
|
output: {
|
|
3901
|
-
element:
|
|
3924
|
+
element: W,
|
|
3902
3925
|
class: "set-range"
|
|
3903
3926
|
},
|
|
3904
3927
|
content: {
|
|
@@ -4124,8 +4147,8 @@ var Le = {
|
|
|
4124
4147
|
}
|
|
4125
4148
|
}
|
|
4126
4149
|
] }
|
|
4127
|
-
},
|
|
4128
|
-
function
|
|
4150
|
+
}, G = "set-sidebar", Ue = "(min-width: 68em)", K = "Collapse sidebar", q = "Open sidebar";
|
|
4151
|
+
function We(e, t) {
|
|
4129
4152
|
return `<div data-part="close">${b({
|
|
4130
4153
|
appearance: "text",
|
|
4131
4154
|
icon: "panel-left",
|
|
@@ -4137,8 +4160,8 @@ function Be(e, t) {
|
|
|
4137
4160
|
type: "button"
|
|
4138
4161
|
})}</div>`;
|
|
4139
4162
|
}
|
|
4140
|
-
function
|
|
4141
|
-
let u = s.trim(), d = r.trim() ||
|
|
4163
|
+
function Ge({ aboveNotebook: e = "persistent", buttonSize: t = "md", children: n, collapseLabel: r = K, footer: a, header: o, id: s, surface: c, triggerLabel: l = q }) {
|
|
4164
|
+
let u = s.trim(), d = r.trim() || K, f = l.trim() || q;
|
|
4142
4165
|
if (!u) throw Error("id must be a non-empty string.");
|
|
4143
4166
|
if (!i(u)) throw Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");
|
|
4144
4167
|
let p = [{
|
|
@@ -4170,11 +4193,11 @@ function Ve({ aboveNotebook: e = "persistent", buttonSize: t = "md", children: n
|
|
|
4170
4193
|
let m = `${u}-panel`;
|
|
4171
4194
|
return {
|
|
4172
4195
|
kind: "element",
|
|
4173
|
-
tag:
|
|
4196
|
+
tag: G,
|
|
4174
4197
|
attrs: {
|
|
4175
4198
|
class: "set-sidebar",
|
|
4176
4199
|
"data-above-notebook": e,
|
|
4177
|
-
"data-collapse-label": d ===
|
|
4200
|
+
"data-collapse-label": d === K ? void 0 : d,
|
|
4178
4201
|
"data-button-size": t,
|
|
4179
4202
|
id: u
|
|
4180
4203
|
},
|
|
@@ -4216,10 +4239,10 @@ function Ve({ aboveNotebook: e = "persistent", buttonSize: t = "md", children: n
|
|
|
4216
4239
|
]
|
|
4217
4240
|
};
|
|
4218
4241
|
}
|
|
4219
|
-
function
|
|
4220
|
-
return r(
|
|
4242
|
+
function Ke(e) {
|
|
4243
|
+
return r(Ge(e));
|
|
4221
4244
|
}
|
|
4222
|
-
function
|
|
4245
|
+
function qe() {
|
|
4223
4246
|
if (customElements.get("set-sidebar")) return;
|
|
4224
4247
|
class e extends HTMLElement {
|
|
4225
4248
|
#e;
|
|
@@ -4260,8 +4283,8 @@ function Ue() {
|
|
|
4260
4283
|
#u() {
|
|
4261
4284
|
let e = this.#i();
|
|
4262
4285
|
if (!e || e.querySelector("[data-part=\"close\"]")) return;
|
|
4263
|
-
let t = e.querySelector(".header"), n = this.getAttribute("data-collapse-label") ||
|
|
4264
|
-
t?.insertAdjacentHTML("beforeend",
|
|
4286
|
+
let t = e.querySelector(".header"), n = this.getAttribute("data-collapse-label") || K, r = this.getAttribute("data-button-size") ?? "md";
|
|
4287
|
+
t?.insertAdjacentHTML("beforeend", We(n, r));
|
|
4265
4288
|
}
|
|
4266
4289
|
#d() {
|
|
4267
4290
|
this.querySelector("[data-part=\"close\"]")?.remove();
|
|
@@ -4335,7 +4358,7 @@ function Ue() {
|
|
|
4335
4358
|
}
|
|
4336
4359
|
#v() {
|
|
4337
4360
|
let e = this.ownerDocument.defaultView;
|
|
4338
|
-
e && (typeof e.matchMedia == "function" && (this.#e = e.matchMedia(
|
|
4361
|
+
e && (typeof e.matchMedia == "function" && (this.#e = e.matchMedia(Ue), this.#r = () => {
|
|
4339
4362
|
this.#h();
|
|
4340
4363
|
}, this.#e.addEventListener("change", this.#r), this.#h()), this.#t = (e) => {
|
|
4341
4364
|
let t = e.target;
|
|
@@ -4357,14 +4380,14 @@ function Ue() {
|
|
|
4357
4380
|
this.#t && this.removeEventListener("click", this.#t), this.#n && this.removeEventListener("keydown", this.#n), this.#e && this.#r && this.#e.removeEventListener("change", this.#r), this.#t = void 0, this.#n = void 0, this.#e = void 0, this.#r = void 0;
|
|
4358
4381
|
}
|
|
4359
4382
|
}
|
|
4360
|
-
customElements.define(
|
|
4383
|
+
customElements.define(G, e);
|
|
4361
4384
|
}
|
|
4362
|
-
var
|
|
4385
|
+
var Je = {
|
|
4363
4386
|
name: "sidebar",
|
|
4364
4387
|
category: "structure",
|
|
4365
4388
|
description: "Use `sidebar` for a side panel alongside main content.",
|
|
4366
4389
|
output: {
|
|
4367
|
-
element:
|
|
4390
|
+
element: G,
|
|
4368
4391
|
class: "set-sidebar"
|
|
4369
4392
|
},
|
|
4370
4393
|
content: {
|
|
@@ -4414,7 +4437,7 @@ var We = {
|
|
|
4414
4437
|
type: { kind: "html" }
|
|
4415
4438
|
},
|
|
4416
4439
|
collapseLabel: {
|
|
4417
|
-
default:
|
|
4440
|
+
default: K,
|
|
4418
4441
|
description: "Accessible label for the collapse button.",
|
|
4419
4442
|
type: { kind: "string" }
|
|
4420
4443
|
},
|
|
@@ -4439,7 +4462,7 @@ var We = {
|
|
|
4439
4462
|
}
|
|
4440
4463
|
},
|
|
4441
4464
|
triggerLabel: {
|
|
4442
|
-
default:
|
|
4465
|
+
default: q,
|
|
4443
4466
|
description: "Accessible label for the open button.",
|
|
4444
4467
|
type: { kind: "string" }
|
|
4445
4468
|
}
|
|
@@ -4477,7 +4500,7 @@ var We = {
|
|
|
4477
4500
|
of: {
|
|
4478
4501
|
kind: "when-equals",
|
|
4479
4502
|
prop: "collapseLabel",
|
|
4480
|
-
to:
|
|
4503
|
+
to: K
|
|
4481
4504
|
}
|
|
4482
4505
|
}]
|
|
4483
4506
|
},
|
|
@@ -4535,13 +4558,13 @@ var We = {
|
|
|
4535
4558
|
}
|
|
4536
4559
|
}
|
|
4537
4560
|
] }
|
|
4538
|
-
},
|
|
4539
|
-
function
|
|
4561
|
+
}, J = "set-video";
|
|
4562
|
+
function Ye({ autoPlay: e, controls: t, fit: n = "intrinsic", height: r, id: i, loop: o, muted: s, playsInline: c, poster: l, preload: u, src: d, width: f }) {
|
|
4540
4563
|
let p = a(i), m = d.trim(), h = l?.trim();
|
|
4541
4564
|
if (!m) throw Error("src must be a non-empty string.");
|
|
4542
4565
|
return {
|
|
4543
4566
|
kind: "element",
|
|
4544
|
-
tag:
|
|
4567
|
+
tag: J,
|
|
4545
4568
|
attrs: {
|
|
4546
4569
|
class: "set-video",
|
|
4547
4570
|
"data-fluid": n === "fluid",
|
|
@@ -4567,11 +4590,11 @@ function Ge({ autoPlay: e, controls: t, fit: n = "intrinsic", height: r, id: i,
|
|
|
4567
4590
|
}]
|
|
4568
4591
|
};
|
|
4569
4592
|
}
|
|
4570
|
-
function
|
|
4571
|
-
return r(
|
|
4593
|
+
function Xe(e) {
|
|
4594
|
+
return r(Ye(e));
|
|
4572
4595
|
}
|
|
4573
|
-
var
|
|
4574
|
-
function
|
|
4596
|
+
var Ze = "(prefers-reduced-motion: reduce)";
|
|
4597
|
+
function Qe() {
|
|
4575
4598
|
if (customElements.get("set-video")) return;
|
|
4576
4599
|
class e extends HTMLElement {
|
|
4577
4600
|
#e = !1;
|
|
@@ -4581,7 +4604,7 @@ function Je() {
|
|
|
4581
4604
|
let e = this.querySelector("video");
|
|
4582
4605
|
if (!e || (this.#e ||= e.hasAttribute("autoplay"), !this.#e)) return;
|
|
4583
4606
|
let t = this.ownerDocument.defaultView;
|
|
4584
|
-
t && typeof t.matchMedia == "function" && (this.#t = t.matchMedia(
|
|
4607
|
+
t && typeof t.matchMedia == "function" && (this.#t = t.matchMedia(Ze), this.#n = () => {
|
|
4585
4608
|
this.#r();
|
|
4586
4609
|
}, this.#t.addEventListener("change", this.#n), this.#r());
|
|
4587
4610
|
}
|
|
@@ -4593,14 +4616,14 @@ function Je() {
|
|
|
4593
4616
|
e && this.#t && (this.#t.matches ? (e.removeAttribute("autoplay"), e.pause()) : (e.setAttribute("autoplay", ""), e.paused && e.play()?.catch?.(() => {})));
|
|
4594
4617
|
}
|
|
4595
4618
|
}
|
|
4596
|
-
customElements.define(
|
|
4619
|
+
customElements.define(J, e);
|
|
4597
4620
|
}
|
|
4598
|
-
var
|
|
4621
|
+
var $e = {
|
|
4599
4622
|
name: "video",
|
|
4600
4623
|
category: "graphic",
|
|
4601
4624
|
description: "Use `video` to render a video with intrinsic or fluid fit and native playback behavior.",
|
|
4602
4625
|
output: {
|
|
4603
|
-
element:
|
|
4626
|
+
element: J,
|
|
4604
4627
|
class: "set-video"
|
|
4605
4628
|
},
|
|
4606
4629
|
content: { kind: "none" },
|
|
@@ -4806,53 +4829,53 @@ var Ye = {
|
|
|
4806
4829
|
] }
|
|
4807
4830
|
};
|
|
4808
4831
|
// src/components/avatar/get-initials.ts
|
|
4809
|
-
function
|
|
4832
|
+
function et(e) {
|
|
4810
4833
|
return e ? /[A-Za-z]/.test(e) : !1;
|
|
4811
4834
|
}
|
|
4812
|
-
function
|
|
4835
|
+
function tt(e) {
|
|
4813
4836
|
return /^[a-z]/.test(e);
|
|
4814
4837
|
}
|
|
4815
|
-
function
|
|
4838
|
+
function Y(e) {
|
|
4816
4839
|
let t = e.charAt(0);
|
|
4817
|
-
return
|
|
4840
|
+
return et(t) ? t : void 0;
|
|
4818
4841
|
}
|
|
4819
|
-
function
|
|
4842
|
+
function nt(e) {
|
|
4820
4843
|
let t = o(e);
|
|
4821
4844
|
if (!t) return;
|
|
4822
|
-
let n = t.split(" "), r =
|
|
4845
|
+
let n = t.split(" "), r = Y(n[0]);
|
|
4823
4846
|
if (!r) return;
|
|
4824
4847
|
let i = [r.toUpperCase()];
|
|
4825
4848
|
if (n.length === 1) return i[0];
|
|
4826
|
-
let a = n.slice(1).find(
|
|
4849
|
+
let a = n.slice(1).find(tt);
|
|
4827
4850
|
if (a) {
|
|
4828
|
-
let e =
|
|
4851
|
+
let e = Y(a);
|
|
4829
4852
|
return e ? `${i[0]}${e}` : void 0;
|
|
4830
4853
|
}
|
|
4831
4854
|
if (n.length === 2) {
|
|
4832
|
-
let e =
|
|
4855
|
+
let e = Y(n[1]);
|
|
4833
4856
|
if (!e) return;
|
|
4834
4857
|
i.push(e);
|
|
4835
4858
|
let t = n[1].split("-").filter(Boolean);
|
|
4836
4859
|
if (t.length === 2) {
|
|
4837
|
-
let e =
|
|
4860
|
+
let e = Y(t[1]);
|
|
4838
4861
|
e && i.push(e);
|
|
4839
4862
|
}
|
|
4840
4863
|
return i.slice(0, 3).join("");
|
|
4841
4864
|
}
|
|
4842
4865
|
if (n.length === 3) {
|
|
4843
|
-
let e =
|
|
4866
|
+
let e = Y(n[1]), t = Y(n[2]);
|
|
4844
4867
|
return !e || !t ? void 0 : (i.push(e, t), i.slice(0, 3).join(""));
|
|
4845
4868
|
}
|
|
4846
|
-
let s =
|
|
4869
|
+
let s = Y(n.at(-1) || "");
|
|
4847
4870
|
if (s) return i.push(s), i.slice(0, 3).join("");
|
|
4848
4871
|
}
|
|
4849
4872
|
// src/components/avatar/avatar.ts
|
|
4850
|
-
var
|
|
4873
|
+
var rt = {
|
|
4851
4874
|
bot: "robot-1",
|
|
4852
4875
|
organization: "city-6",
|
|
4853
4876
|
person: "user-1",
|
|
4854
4877
|
team: "member"
|
|
4855
|
-
},
|
|
4878
|
+
}, it = [
|
|
4856
4879
|
"01",
|
|
4857
4880
|
"02",
|
|
4858
4881
|
"03",
|
|
@@ -4863,12 +4886,12 @@ var $e = {
|
|
|
4863
4886
|
"08",
|
|
4864
4887
|
"09"
|
|
4865
4888
|
];
|
|
4866
|
-
function
|
|
4889
|
+
function at(e) {
|
|
4867
4890
|
let t = 5381;
|
|
4868
4891
|
for (let n of e) t = t * 33 ^ n.charCodeAt(0);
|
|
4869
4892
|
return t >>> 0;
|
|
4870
4893
|
}
|
|
4871
|
-
function
|
|
4894
|
+
function ot(e) {
|
|
4872
4895
|
if (e == null) return;
|
|
4873
4896
|
let t = o(e);
|
|
4874
4897
|
if (t) {
|
|
@@ -4877,18 +4900,18 @@ function nt(e) {
|
|
|
4877
4900
|
return t;
|
|
4878
4901
|
}
|
|
4879
4902
|
}
|
|
4880
|
-
function
|
|
4903
|
+
function st({ alt: e, ariaHidden: t, name: n }) {
|
|
4881
4904
|
if (!t) return o(e) || o(n) || "Avatar";
|
|
4882
4905
|
}
|
|
4883
|
-
function
|
|
4884
|
-
return e || (t ?
|
|
4906
|
+
function ct({ color: e, name: t }) {
|
|
4907
|
+
return e || (t ? it[at(t) % it.length] : "neutral");
|
|
4885
4908
|
}
|
|
4886
|
-
function
|
|
4887
|
-
let f = a(i), p =
|
|
4909
|
+
function lt({ alt: e, ariaHidden: t, color: n, entity: r = "person", id: i, initials: s, name: c, size: l = "md", src: u }) {
|
|
4910
|
+
let f = a(i), p = ot(s), m = o(c), h = o(u), g = st({
|
|
4888
4911
|
alt: e,
|
|
4889
4912
|
ariaHidden: t,
|
|
4890
4913
|
name: m
|
|
4891
|
-
}), _ = p ||
|
|
4914
|
+
}), _ = p || nt(m), v = !!h, y = ct({
|
|
4892
4915
|
color: n,
|
|
4893
4916
|
name: m
|
|
4894
4917
|
}), b = {
|
|
@@ -4924,7 +4947,7 @@ function at({ alt: e, ariaHidden: t, color: n, entity: r = "person", id: i, init
|
|
|
4924
4947
|
attrs: { class: "icon-wrapper" },
|
|
4925
4948
|
children: [d({
|
|
4926
4949
|
ariaHidden: !0,
|
|
4927
|
-
name:
|
|
4950
|
+
name: rt[r],
|
|
4928
4951
|
size: "fill"
|
|
4929
4952
|
})]
|
|
4930
4953
|
}, {
|
|
@@ -4934,10 +4957,10 @@ function at({ alt: e, ariaHidden: t, color: n, entity: r = "person", id: i, init
|
|
|
4934
4957
|
children: [x]
|
|
4935
4958
|
};
|
|
4936
4959
|
}
|
|
4937
|
-
function
|
|
4938
|
-
return r(
|
|
4960
|
+
function ut(e) {
|
|
4961
|
+
return r(lt(e));
|
|
4939
4962
|
}
|
|
4940
|
-
var
|
|
4963
|
+
var dt = {
|
|
4941
4964
|
name: "avatar",
|
|
4942
4965
|
category: "graphic",
|
|
4943
4966
|
description: "Use `avatar` to visually represent a person, team, or entity.",
|
|
@@ -5096,7 +5119,7 @@ var st = {
|
|
|
5096
5119
|
] }
|
|
5097
5120
|
};
|
|
5098
5121
|
// src/components/badge/badge.ts
|
|
5099
|
-
function
|
|
5122
|
+
function ft({ floating: e, id: t, label: n, size: r = "md", tone: i }) {
|
|
5100
5123
|
let o = a(t);
|
|
5101
5124
|
return {
|
|
5102
5125
|
kind: "element",
|
|
@@ -5114,10 +5137,10 @@ function ct({ floating: e, id: t, label: n, size: r = "md", tone: i }) {
|
|
|
5114
5137
|
}]
|
|
5115
5138
|
};
|
|
5116
5139
|
}
|
|
5117
|
-
function
|
|
5118
|
-
return r(
|
|
5140
|
+
function pt(e) {
|
|
5141
|
+
return r(ft(e));
|
|
5119
5142
|
}
|
|
5120
|
-
var
|
|
5143
|
+
var mt = {
|
|
5121
5144
|
name: "badge",
|
|
5122
5145
|
category: "status",
|
|
5123
5146
|
description: "Use `badge` to annotate content with a short label.",
|
|
@@ -5211,7 +5234,7 @@ var ut = {
|
|
|
5211
5234
|
] }
|
|
5212
5235
|
};
|
|
5213
5236
|
// src/components/text/text.ts
|
|
5214
|
-
function
|
|
5237
|
+
function X({ align: e, as: t, children: n, id: r, linkVisited: i = !0, measured: o, monospaced: s, responsive: c, size: l = "md", tone: u = "default" }) {
|
|
5215
5238
|
let d = a(r), f = t === "p" ? "p" : "span", p = f === "p", m = p ? e ?? "start" : void 0;
|
|
5216
5239
|
return {
|
|
5217
5240
|
kind: "element",
|
|
@@ -5233,10 +5256,10 @@ function Z({ align: e, as: t, children: n, id: r, linkVisited: i = !0, measured:
|
|
|
5233
5256
|
}]
|
|
5234
5257
|
};
|
|
5235
5258
|
}
|
|
5236
|
-
function
|
|
5237
|
-
return r(
|
|
5259
|
+
function ht(e) {
|
|
5260
|
+
return r(X(e));
|
|
5238
5261
|
}
|
|
5239
|
-
var
|
|
5262
|
+
var gt = {
|
|
5240
5263
|
name: "text",
|
|
5241
5264
|
category: "typographic",
|
|
5242
5265
|
description: "Use `text` for inline or paragraph body copy.",
|
|
@@ -5432,7 +5455,7 @@ var ft = {
|
|
|
5432
5455
|
] }
|
|
5433
5456
|
};
|
|
5434
5457
|
// src/components/blockquote/blockquote.ts
|
|
5435
|
-
function
|
|
5458
|
+
function _t({ align: e = "start", attribution: t, id: n, measured: r = !0, quote: i, responsive: o = !1, size: s = "md" }) {
|
|
5436
5459
|
let c = a(n);
|
|
5437
5460
|
return {
|
|
5438
5461
|
kind: "element",
|
|
@@ -5446,7 +5469,7 @@ function pt({ align: e = "start", attribution: t, id: n, measured: r = !0, quote
|
|
|
5446
5469
|
kind: "element",
|
|
5447
5470
|
tag: "blockquote",
|
|
5448
5471
|
attrs: { class: "quote" },
|
|
5449
|
-
children: [
|
|
5472
|
+
children: [X({
|
|
5450
5473
|
align: e,
|
|
5451
5474
|
as: "p",
|
|
5452
5475
|
children: i,
|
|
@@ -5458,7 +5481,7 @@ function pt({ align: e = "start", attribution: t, id: n, measured: r = !0, quote
|
|
|
5458
5481
|
kind: "element",
|
|
5459
5482
|
tag: "figcaption",
|
|
5460
5483
|
attrs: { class: "attribution" },
|
|
5461
|
-
children: [
|
|
5484
|
+
children: [X({
|
|
5462
5485
|
as: "span",
|
|
5463
5486
|
children: t,
|
|
5464
5487
|
responsive: o,
|
|
@@ -5467,10 +5490,10 @@ function pt({ align: e = "start", attribution: t, id: n, measured: r = !0, quote
|
|
|
5467
5490
|
}]
|
|
5468
5491
|
};
|
|
5469
5492
|
}
|
|
5470
|
-
function
|
|
5471
|
-
return r(
|
|
5493
|
+
function vt(e) {
|
|
5494
|
+
return r(_t(e));
|
|
5472
5495
|
}
|
|
5473
|
-
var
|
|
5496
|
+
var yt = {
|
|
5474
5497
|
name: "blockquote",
|
|
5475
5498
|
category: "typographic",
|
|
5476
5499
|
description: "Use `blockquote` to display a quote with attribution.",
|
|
@@ -5561,7 +5584,7 @@ var ht = {
|
|
|
5561
5584
|
}] }
|
|
5562
5585
|
};
|
|
5563
5586
|
// src/components/box/box.ts
|
|
5564
|
-
function
|
|
5587
|
+
function bt({ background: e = "default", border: t, children: n, id: r, paddingBlock: i = "md", paddingInline: o = "md", radius: s, responsive: c, surface: l }) {
|
|
5565
5588
|
let u = a(r);
|
|
5566
5589
|
return {
|
|
5567
5590
|
kind: "element",
|
|
@@ -5583,10 +5606,10 @@ function gt({ background: e = "default", border: t, children: n, id: r, paddingB
|
|
|
5583
5606
|
}] : []
|
|
5584
5607
|
};
|
|
5585
5608
|
}
|
|
5586
|
-
function
|
|
5587
|
-
return r(
|
|
5609
|
+
function xt(e) {
|
|
5610
|
+
return r(bt(e));
|
|
5588
5611
|
}
|
|
5589
|
-
var
|
|
5612
|
+
var St = {
|
|
5590
5613
|
name: "box",
|
|
5591
5614
|
category: "layout",
|
|
5592
5615
|
description: "Use `box` to inset content.",
|
|
@@ -5772,7 +5795,7 @@ var vt = {
|
|
|
5772
5795
|
] }
|
|
5773
5796
|
};
|
|
5774
5797
|
// src/components/card/card.ts
|
|
5775
|
-
function
|
|
5798
|
+
function Ct({ description: e, headingLevel: t, href: n, id: r, note: i, surface: o, title: s }) {
|
|
5776
5799
|
let c = a(r), l = t ? `h${t}` : "div", u = n ? [{
|
|
5777
5800
|
kind: "element",
|
|
5778
5801
|
tag: "a",
|
|
@@ -5843,10 +5866,10 @@ function yt({ description: e, headingLevel: t, href: n, id: r, note: i, surface:
|
|
|
5843
5866
|
children: p
|
|
5844
5867
|
};
|
|
5845
5868
|
}
|
|
5846
|
-
function
|
|
5847
|
-
return r(
|
|
5869
|
+
function wt(e) {
|
|
5870
|
+
return r(Ct(e));
|
|
5848
5871
|
}
|
|
5849
|
-
var
|
|
5872
|
+
var Tt = {
|
|
5850
5873
|
name: "card",
|
|
5851
5874
|
category: "structure",
|
|
5852
5875
|
description: "Use `card` to display a summary for a single topic.",
|
|
@@ -5942,7 +5965,7 @@ var xt = {
|
|
|
5942
5965
|
}] }
|
|
5943
5966
|
};
|
|
5944
5967
|
// src/components/checkbox/checkbox.ts
|
|
5945
|
-
function
|
|
5968
|
+
function Et({ checked: e, description: t, disabled: n, id: r, invalid: i, label: o, name: s, required: c, size: l = "md", value: u }) {
|
|
5946
5969
|
let d = a(r), f = t?.trim();
|
|
5947
5970
|
if (f && !d) throw Error("id must be provided when description is provided.");
|
|
5948
5971
|
let p = f ? `${d}-description` : void 0, m = !!n, h = [{
|
|
@@ -5996,10 +6019,10 @@ function St({ checked: e, description: t, disabled: n, id: r, invalid: i, label:
|
|
|
5996
6019
|
children: h
|
|
5997
6020
|
};
|
|
5998
6021
|
}
|
|
5999
|
-
function
|
|
6000
|
-
return r(
|
|
6022
|
+
function Dt(e) {
|
|
6023
|
+
return r(Et(e));
|
|
6001
6024
|
}
|
|
6002
|
-
var
|
|
6025
|
+
var Ot = {
|
|
6003
6026
|
name: "checkbox",
|
|
6004
6027
|
category: "control",
|
|
6005
6028
|
description: "Use `checkbox` to let users toggle a single option on or off.",
|
|
@@ -6210,7 +6233,7 @@ var wt = {
|
|
|
6210
6233
|
] }
|
|
6211
6234
|
};
|
|
6212
6235
|
// src/components/container/container.ts
|
|
6213
|
-
function
|
|
6236
|
+
function kt({ children: e, gutter: t = "default", id: n, maxInlineSize: r = "default" }) {
|
|
6214
6237
|
let i = a(n);
|
|
6215
6238
|
return {
|
|
6216
6239
|
kind: "element",
|
|
@@ -6227,10 +6250,10 @@ function Tt({ children: e, gutter: t = "default", id: n, maxInlineSize: r = "def
|
|
|
6227
6250
|
}] : []
|
|
6228
6251
|
};
|
|
6229
6252
|
}
|
|
6230
|
-
function
|
|
6231
|
-
return r(
|
|
6253
|
+
function At(e) {
|
|
6254
|
+
return r(kt(e));
|
|
6232
6255
|
}
|
|
6233
|
-
var
|
|
6256
|
+
var jt = {
|
|
6234
6257
|
name: "container",
|
|
6235
6258
|
category: "layout",
|
|
6236
6259
|
description: "Use `container` to wrap page-level content.",
|
|
@@ -6319,7 +6342,7 @@ var Dt = {
|
|
|
6319
6342
|
] }
|
|
6320
6343
|
};
|
|
6321
6344
|
// src/components/details/details.ts
|
|
6322
|
-
function
|
|
6345
|
+
function Mt({ children: e, id: t, open: n, summary: r, inlineSize: i = "full" }) {
|
|
6323
6346
|
let o = a(t);
|
|
6324
6347
|
return {
|
|
6325
6348
|
kind: "element",
|
|
@@ -6363,10 +6386,10 @@ function Ot({ children: e, id: t, open: n, summary: r, inlineSize: i = "full" })
|
|
|
6363
6386
|
}]
|
|
6364
6387
|
};
|
|
6365
6388
|
}
|
|
6366
|
-
function
|
|
6367
|
-
return r(
|
|
6389
|
+
function Nt(e) {
|
|
6390
|
+
return r(Mt(e));
|
|
6368
6391
|
}
|
|
6369
|
-
var
|
|
6392
|
+
var Pt = {
|
|
6370
6393
|
name: "details",
|
|
6371
6394
|
category: "structure",
|
|
6372
6395
|
description: "Use `details` to let users expand and collapse a section of content.",
|
|
@@ -6448,14 +6471,14 @@ var At = {
|
|
|
6448
6471
|
}
|
|
6449
6472
|
}
|
|
6450
6473
|
] }
|
|
6451
|
-
},
|
|
6452
|
-
function
|
|
6453
|
-
return e <= 0 ? 0 : e >= 100 ?
|
|
6474
|
+
}, Ft = 16;
|
|
6475
|
+
function It(e) {
|
|
6476
|
+
return e <= 0 ? 0 : e >= 100 ? Ft : Math.min(15, Math.max(1, Math.round(e / 100 * Ft)));
|
|
6454
6477
|
}
|
|
6455
|
-
function
|
|
6478
|
+
function Lt({ aspectRatio: e, blockSize: t, cell: n = "md", inlineSize: r, children: i, density: o = 50, id: s, ramp: c, tone: l = "default" } = {}) {
|
|
6456
6479
|
let u = a(s), d = [];
|
|
6457
6480
|
t && d.push(`--set-dither-block-size: ${t / 16}rem`), r && d.push(`--set-dither-inline-size: ${r / 16}rem`);
|
|
6458
|
-
let f =
|
|
6481
|
+
let f = It(o), p = c ? Array.from({ length: f + 1 }, (e, t) => {
|
|
6459
6482
|
let n = c === "inline-start" || c === "block-start" ? f - t : t;
|
|
6460
6483
|
return {
|
|
6461
6484
|
kind: "element",
|
|
@@ -6497,10 +6520,10 @@ function Nt({ aspectRatio: e, blockSize: t, cell: n = "md", inlineSize: r, child
|
|
|
6497
6520
|
}] : []]
|
|
6498
6521
|
};
|
|
6499
6522
|
}
|
|
6500
|
-
function
|
|
6501
|
-
return r(
|
|
6523
|
+
function Rt(e = {}) {
|
|
6524
|
+
return r(Lt(e));
|
|
6502
6525
|
}
|
|
6503
|
-
var
|
|
6526
|
+
var zt = {
|
|
6504
6527
|
name: "dither",
|
|
6505
6528
|
category: "graphic",
|
|
6506
6529
|
description: "Use `dither` to render an ordered dither as a graphic or behind content.",
|
|
@@ -6681,7 +6704,7 @@ var Ft = {
|
|
|
6681
6704
|
] }
|
|
6682
6705
|
};
|
|
6683
6706
|
// src/components/divider/divider.ts
|
|
6684
|
-
function
|
|
6707
|
+
function Bt({ id: e, orientation: t = "horizontal", tone: n = "default" } = {}) {
|
|
6685
6708
|
let r = a(e);
|
|
6686
6709
|
return {
|
|
6687
6710
|
kind: "element",
|
|
@@ -6696,10 +6719,10 @@ function It({ id: e, orientation: t = "horizontal", tone: n = "default" } = {})
|
|
|
6696
6719
|
children: []
|
|
6697
6720
|
};
|
|
6698
6721
|
}
|
|
6699
|
-
function
|
|
6700
|
-
return r(
|
|
6722
|
+
function Vt(e = {}) {
|
|
6723
|
+
return r(Bt(e));
|
|
6701
6724
|
}
|
|
6702
|
-
var
|
|
6725
|
+
var Ht = {
|
|
6703
6726
|
name: "divider",
|
|
6704
6727
|
category: "layout",
|
|
6705
6728
|
description: "Use `divider` to separate sections with a rule.",
|
|
@@ -6797,7 +6820,7 @@ var Rt = {
|
|
|
6797
6820
|
] }
|
|
6798
6821
|
};
|
|
6799
6822
|
// src/components/fieldset/fieldset.ts
|
|
6800
|
-
function
|
|
6823
|
+
function Ut({ children: e, description: t, disabled: n, id: r, invalid: a, legend: o, inlineSize: s = "full" }) {
|
|
6801
6824
|
let c = t?.trim(), l = r.trim();
|
|
6802
6825
|
if (!l) throw Error("id must be a non-empty string.");
|
|
6803
6826
|
if (!i(l)) throw Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");
|
|
@@ -6838,10 +6861,10 @@ function zt({ children: e, description: t, disabled: n, id: r, invalid: a, legen
|
|
|
6838
6861
|
children: p
|
|
6839
6862
|
};
|
|
6840
6863
|
}
|
|
6841
|
-
function
|
|
6842
|
-
return r(
|
|
6864
|
+
function Wt(e) {
|
|
6865
|
+
return r(Ut(e));
|
|
6843
6866
|
}
|
|
6844
|
-
var
|
|
6867
|
+
var Gt = {
|
|
6845
6868
|
name: "fieldset",
|
|
6846
6869
|
category: "control",
|
|
6847
6870
|
description: "Use `fieldset` to group related form controls under a legend.",
|
|
@@ -6966,7 +6989,7 @@ var Vt = {
|
|
|
6966
6989
|
] }
|
|
6967
6990
|
};
|
|
6968
6991
|
// src/components/figure/figure.ts
|
|
6969
|
-
function
|
|
6992
|
+
function Kt({ align: e = "start", caption: t, children: n, id: r, inlineSize: i = "full", responsive: o = !1 }) {
|
|
6970
6993
|
let s = a(r);
|
|
6971
6994
|
return {
|
|
6972
6995
|
kind: "element",
|
|
@@ -6984,7 +7007,7 @@ function Ht({ align: e = "start", caption: t, children: n, id: r, inlineSize: i
|
|
|
6984
7007
|
kind: "element",
|
|
6985
7008
|
tag: "figcaption",
|
|
6986
7009
|
attrs: { class: "figcaption" },
|
|
6987
|
-
children: [
|
|
7010
|
+
children: [X({
|
|
6988
7011
|
as: "span",
|
|
6989
7012
|
children: t,
|
|
6990
7013
|
responsive: o,
|
|
@@ -6993,10 +7016,10 @@ function Ht({ align: e = "start", caption: t, children: n, id: r, inlineSize: i
|
|
|
6993
7016
|
}]
|
|
6994
7017
|
};
|
|
6995
7018
|
}
|
|
6996
|
-
function
|
|
6997
|
-
return r(
|
|
7019
|
+
function qt(e) {
|
|
7020
|
+
return r(Kt(e));
|
|
6998
7021
|
}
|
|
6999
|
-
var
|
|
7022
|
+
var Jt = {
|
|
7000
7023
|
name: "figure",
|
|
7001
7024
|
category: "structure",
|
|
7002
7025
|
description: "Use `figure` to present media with a caption.",
|
|
@@ -7096,10 +7119,10 @@ var Wt = {
|
|
|
7096
7119
|
}
|
|
7097
7120
|
}
|
|
7098
7121
|
] }
|
|
7099
|
-
},
|
|
7122
|
+
}, Z = (e) => {
|
|
7100
7123
|
if (e !== void 0) return String(e);
|
|
7101
7124
|
};
|
|
7102
|
-
function
|
|
7125
|
+
function Yt({ children: e, gap: t = "default", id: n, responsiveRowGap: r }) {
|
|
7103
7126
|
let i = a(n);
|
|
7104
7127
|
return {
|
|
7105
7128
|
kind: "element",
|
|
@@ -7121,10 +7144,10 @@ function Gt({ children: e, gap: t = "default", id: n, responsiveRowGap: r }) {
|
|
|
7121
7144
|
}]
|
|
7122
7145
|
};
|
|
7123
7146
|
}
|
|
7124
|
-
function
|
|
7125
|
-
return r(
|
|
7147
|
+
function Xt(e) {
|
|
7148
|
+
return r(Yt(e));
|
|
7126
7149
|
}
|
|
7127
|
-
function
|
|
7150
|
+
function Zt({ align: e, children: t, colSpan: n, colSpanNarrow: r, colSpanWide: i, colStart: o, colStartNarrow: s, colStartWide: c, id: l, justify: u, rowSpan: d, rowSpanNarrow: f, rowSpanWide: p, rowStart: m, rowStartNarrow: h, rowStartWide: g }) {
|
|
7128
7151
|
let _ = a(l);
|
|
7129
7152
|
return {
|
|
7130
7153
|
kind: "element",
|
|
@@ -7133,18 +7156,18 @@ function qt({ align: e, children: t, colSpan: n, colSpanNarrow: r, colSpanWide:
|
|
|
7133
7156
|
class: "set-grid-item",
|
|
7134
7157
|
"data-align": e,
|
|
7135
7158
|
"data-justify": u,
|
|
7136
|
-
"data-col-span-narrow":
|
|
7137
|
-
"data-col-start-narrow":
|
|
7138
|
-
"data-col-span":
|
|
7139
|
-
"data-col-start":
|
|
7140
|
-
"data-col-span-wide":
|
|
7141
|
-
"data-col-start-wide":
|
|
7142
|
-
"data-row-span-narrow":
|
|
7143
|
-
"data-row-start-narrow":
|
|
7144
|
-
"data-row-span":
|
|
7145
|
-
"data-row-start":
|
|
7146
|
-
"data-row-span-wide":
|
|
7147
|
-
"data-row-start-wide":
|
|
7159
|
+
"data-col-span-narrow": Z(r),
|
|
7160
|
+
"data-col-start-narrow": Z(s),
|
|
7161
|
+
"data-col-span": Z(n),
|
|
7162
|
+
"data-col-start": Z(o),
|
|
7163
|
+
"data-col-span-wide": Z(i),
|
|
7164
|
+
"data-col-start-wide": Z(c),
|
|
7165
|
+
"data-row-span-narrow": Z(f),
|
|
7166
|
+
"data-row-start-narrow": Z(h),
|
|
7167
|
+
"data-row-span": Z(d),
|
|
7168
|
+
"data-row-start": Z(m),
|
|
7169
|
+
"data-row-span-wide": Z(p),
|
|
7170
|
+
"data-row-start-wide": Z(g),
|
|
7148
7171
|
id: _
|
|
7149
7172
|
},
|
|
7150
7173
|
children: t ? [{
|
|
@@ -7153,10 +7176,10 @@ function qt({ align: e, children: t, colSpan: n, colSpanNarrow: r, colSpanWide:
|
|
|
7153
7176
|
}] : []
|
|
7154
7177
|
};
|
|
7155
7178
|
}
|
|
7156
|
-
function
|
|
7157
|
-
return r(
|
|
7179
|
+
function Qt(e) {
|
|
7180
|
+
return r(Zt(e));
|
|
7158
7181
|
}
|
|
7159
|
-
var
|
|
7182
|
+
var $t = {
|
|
7160
7183
|
name: "grid",
|
|
7161
7184
|
category: "layout",
|
|
7162
7185
|
description: "Use `grid` to lay out content in a 12-column grid that responds to its container.",
|
|
@@ -7246,12 +7269,12 @@ var Yt = {
|
|
|
7246
7269
|
}
|
|
7247
7270
|
}
|
|
7248
7271
|
] }
|
|
7249
|
-
},
|
|
7272
|
+
}, Q = {
|
|
7250
7273
|
kind: "number",
|
|
7251
7274
|
min: 1,
|
|
7252
7275
|
max: 12,
|
|
7253
7276
|
integer: !0
|
|
7254
|
-
},
|
|
7277
|
+
}, en = {
|
|
7255
7278
|
name: "grid-item",
|
|
7256
7279
|
category: "layout",
|
|
7257
7280
|
description: "Use `grid-item` to place content within a `grid` layout.",
|
|
@@ -7292,11 +7315,11 @@ var Yt = {
|
|
|
7292
7315
|
},
|
|
7293
7316
|
colSpan: {
|
|
7294
7317
|
description: "Columns spanned when the grid's container is at its default width.",
|
|
7295
|
-
type:
|
|
7318
|
+
type: Q
|
|
7296
7319
|
},
|
|
7297
7320
|
colStart: {
|
|
7298
7321
|
description: "Starting column when the grid's container is at its default width.",
|
|
7299
|
-
type:
|
|
7322
|
+
type: Q
|
|
7300
7323
|
},
|
|
7301
7324
|
id: {
|
|
7302
7325
|
description: "DOM id.",
|
|
@@ -7304,43 +7327,43 @@ var Yt = {
|
|
|
7304
7327
|
},
|
|
7305
7328
|
rowSpan: {
|
|
7306
7329
|
description: "Rows spanned when the grid's container is at its default width.",
|
|
7307
|
-
type:
|
|
7330
|
+
type: Q
|
|
7308
7331
|
},
|
|
7309
7332
|
rowSpanNarrow: {
|
|
7310
7333
|
description: "Rows spanned when the grid's container is narrow.",
|
|
7311
|
-
type:
|
|
7334
|
+
type: Q
|
|
7312
7335
|
},
|
|
7313
7336
|
rowSpanWide: {
|
|
7314
7337
|
description: "Rows spanned when the grid's container is wide.",
|
|
7315
|
-
type:
|
|
7338
|
+
type: Q
|
|
7316
7339
|
},
|
|
7317
7340
|
rowStart: {
|
|
7318
7341
|
description: "Starting row when the grid's container is at its default width.",
|
|
7319
|
-
type:
|
|
7342
|
+
type: Q
|
|
7320
7343
|
},
|
|
7321
7344
|
rowStartNarrow: {
|
|
7322
7345
|
description: "Starting row when the grid's container is narrow.",
|
|
7323
|
-
type:
|
|
7346
|
+
type: Q
|
|
7324
7347
|
},
|
|
7325
7348
|
rowStartWide: {
|
|
7326
7349
|
description: "Starting row when the grid's container is wide.",
|
|
7327
|
-
type:
|
|
7350
|
+
type: Q
|
|
7328
7351
|
},
|
|
7329
7352
|
colSpanNarrow: {
|
|
7330
7353
|
description: "Columns spanned when the grid's container is narrow.",
|
|
7331
|
-
type:
|
|
7354
|
+
type: Q
|
|
7332
7355
|
},
|
|
7333
7356
|
colStartNarrow: {
|
|
7334
7357
|
description: "Starting column when the grid's container is narrow.",
|
|
7335
|
-
type:
|
|
7358
|
+
type: Q
|
|
7336
7359
|
},
|
|
7337
7360
|
colSpanWide: {
|
|
7338
7361
|
description: "Columns spanned when the grid's container is wide.",
|
|
7339
|
-
type:
|
|
7362
|
+
type: Q
|
|
7340
7363
|
},
|
|
7341
7364
|
colStartWide: {
|
|
7342
7365
|
description: "Starting column when the grid's container is wide.",
|
|
7343
|
-
type:
|
|
7366
|
+
type: Q
|
|
7344
7367
|
}
|
|
7345
7368
|
},
|
|
7346
7369
|
events: {},
|
|
@@ -7528,7 +7551,7 @@ var Yt = {
|
|
|
7528
7551
|
] }
|
|
7529
7552
|
};
|
|
7530
7553
|
// src/components/heading/heading.ts
|
|
7531
|
-
function
|
|
7554
|
+
function tn({ align: e = "start", children: t, id: n, level: r, linkVisited: i = !0, opticalAlign: o, responsive: s, size: c = "md" }) {
|
|
7532
7555
|
let l = a(n);
|
|
7533
7556
|
return {
|
|
7534
7557
|
kind: "element",
|
|
@@ -7548,10 +7571,10 @@ function Zt({ align: e = "start", children: t, id: n, level: r, linkVisited: i =
|
|
|
7548
7571
|
}]
|
|
7549
7572
|
};
|
|
7550
7573
|
}
|
|
7551
|
-
function
|
|
7552
|
-
return r(
|
|
7574
|
+
function nn(e) {
|
|
7575
|
+
return r(tn(e));
|
|
7553
7576
|
}
|
|
7554
|
-
var
|
|
7577
|
+
var rn = {
|
|
7555
7578
|
name: "heading",
|
|
7556
7579
|
category: "typographic",
|
|
7557
7580
|
description: "Use `heading` to render heading text with consistent type.",
|
|
@@ -7714,7 +7737,7 @@ var $t = {
|
|
|
7714
7737
|
] }
|
|
7715
7738
|
};
|
|
7716
7739
|
// src/components/inline/inline.ts
|
|
7717
|
-
function
|
|
7740
|
+
function an({ align: e = "center", as: t = "div", children: n, gap: r = "md", id: i, justify: o = "start", nowrap: s }) {
|
|
7718
7741
|
let c = a(i);
|
|
7719
7742
|
return {
|
|
7720
7743
|
kind: "element",
|
|
@@ -7733,10 +7756,10 @@ function en({ align: e = "center", as: t = "div", children: n, gap: r = "md", id
|
|
|
7733
7756
|
}] : []
|
|
7734
7757
|
};
|
|
7735
7758
|
}
|
|
7736
|
-
function
|
|
7737
|
-
return r(
|
|
7759
|
+
function on(e) {
|
|
7760
|
+
return r(an(e));
|
|
7738
7761
|
}
|
|
7739
|
-
var
|
|
7762
|
+
var sn = {
|
|
7740
7763
|
name: "inline",
|
|
7741
7764
|
category: "layout",
|
|
7742
7765
|
description: "Use `inline` to lay out content in a horizontal row.",
|
|
@@ -7885,7 +7908,7 @@ var nn = {
|
|
|
7885
7908
|
] }
|
|
7886
7909
|
};
|
|
7887
7910
|
// src/components/input/input.ts
|
|
7888
|
-
function
|
|
7911
|
+
function cn({ autocomplete: e, description: t, disabled: n, id: r, invalid: a, label: o, name: s, pattern: c, readOnly: l, required: u, size: d = "md", spellcheck: f, type: p = "text", value: m, inlineSize: h = "full" }) {
|
|
7889
7912
|
let g = r.trim(), _ = t?.trim(), v = e !== !1 && e?.trim(), y = s?.trim(), b = c?.trim(), x = m;
|
|
7890
7913
|
if (!g) throw Error("id must be a non-empty string.");
|
|
7891
7914
|
if (!i(g)) throw Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");
|
|
@@ -7943,10 +7966,10 @@ function rn({ autocomplete: e, description: t, disabled: n, id: r, invalid: a, l
|
|
|
7943
7966
|
children: k
|
|
7944
7967
|
};
|
|
7945
7968
|
}
|
|
7946
|
-
function
|
|
7947
|
-
return r(
|
|
7969
|
+
function ln(e) {
|
|
7970
|
+
return r(cn(e));
|
|
7948
7971
|
}
|
|
7949
|
-
var
|
|
7972
|
+
var un = {
|
|
7950
7973
|
name: "input",
|
|
7951
7974
|
category: "control",
|
|
7952
7975
|
description: "Use `input` to collect a single line of text from users.",
|
|
@@ -8286,7 +8309,7 @@ var on = {
|
|
|
8286
8309
|
}
|
|
8287
8310
|
}
|
|
8288
8311
|
] }
|
|
8289
|
-
},
|
|
8312
|
+
}, dn = "0 0 6714.6 1200", fn = "0 0 600 1200", pn = [
|
|
8290
8313
|
{
|
|
8291
8314
|
x: 0,
|
|
8292
8315
|
y: 0
|
|
@@ -8319,11 +8342,11 @@ var on = {
|
|
|
8319
8342
|
x: 450,
|
|
8320
8343
|
y: 900
|
|
8321
8344
|
}
|
|
8322
|
-
],
|
|
8345
|
+
], mn = "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", hn = 1163, gn = () => ({
|
|
8323
8346
|
kind: "element",
|
|
8324
8347
|
tag: "g",
|
|
8325
8348
|
attrs: { class: "mark" },
|
|
8326
|
-
children:
|
|
8349
|
+
children: pn.map(({ x: e, y: t }) => ({
|
|
8327
8350
|
kind: "element",
|
|
8328
8351
|
tag: "rect",
|
|
8329
8352
|
attrs: {
|
|
@@ -8334,20 +8357,20 @@ var on = {
|
|
|
8334
8357
|
},
|
|
8335
8358
|
children: []
|
|
8336
8359
|
}))
|
|
8337
|
-
}),
|
|
8360
|
+
}), _n = () => ({
|
|
8338
8361
|
kind: "element",
|
|
8339
8362
|
tag: "g",
|
|
8340
8363
|
attrs: {
|
|
8341
8364
|
class: "word",
|
|
8342
|
-
transform: `translate(${
|
|
8365
|
+
transform: `translate(${hn} 0)`
|
|
8343
8366
|
},
|
|
8344
8367
|
children: [{
|
|
8345
8368
|
kind: "element",
|
|
8346
8369
|
tag: "path",
|
|
8347
|
-
attrs: { d:
|
|
8370
|
+
attrs: { d: mn },
|
|
8348
8371
|
children: []
|
|
8349
8372
|
}]
|
|
8350
|
-
}),
|
|
8373
|
+
}), vn = (e, t) => ({
|
|
8351
8374
|
kind: "element",
|
|
8352
8375
|
tag: "svg",
|
|
8353
8376
|
attrs: {
|
|
@@ -8357,14 +8380,14 @@ var on = {
|
|
|
8357
8380
|
},
|
|
8358
8381
|
children: t
|
|
8359
8382
|
});
|
|
8360
|
-
function
|
|
8361
|
-
return
|
|
8383
|
+
function yn() {
|
|
8384
|
+
return vn(dn, [gn(), _n()]);
|
|
8362
8385
|
}
|
|
8363
|
-
function
|
|
8364
|
-
return
|
|
8386
|
+
function bn() {
|
|
8387
|
+
return vn(fn, [gn()]);
|
|
8365
8388
|
}
|
|
8366
8389
|
// src/components/logo/logo.ts
|
|
8367
|
-
function
|
|
8390
|
+
function xn({ animated: e, id: t, label: n, size: r = "md", tone: i = "default", variant: o = "primary" }) {
|
|
8368
8391
|
let s = a(t), c = !!e && (o === "primary" || o === "graphic"), l = [{
|
|
8369
8392
|
kind: "element",
|
|
8370
8393
|
tag: "span",
|
|
@@ -8374,7 +8397,7 @@ function _n({ animated: e, id: t, label: n, size: r = "md", tone: i = "default",
|
|
|
8374
8397
|
value: n
|
|
8375
8398
|
}]
|
|
8376
8399
|
}];
|
|
8377
|
-
return c && l.push(o === "graphic" ?
|
|
8400
|
+
return c && l.push(o === "graphic" ? bn() : yn()), {
|
|
8378
8401
|
kind: "element",
|
|
8379
8402
|
tag: "div",
|
|
8380
8403
|
attrs: {
|
|
@@ -8388,10 +8411,10 @@ function _n({ animated: e, id: t, label: n, size: r = "md", tone: i = "default",
|
|
|
8388
8411
|
children: l
|
|
8389
8412
|
};
|
|
8390
8413
|
}
|
|
8391
|
-
function
|
|
8392
|
-
return r(
|
|
8414
|
+
function Sn(e) {
|
|
8415
|
+
return r(xn(e));
|
|
8393
8416
|
}
|
|
8394
|
-
var
|
|
8417
|
+
var Cn = {
|
|
8395
8418
|
name: "logo",
|
|
8396
8419
|
category: "graphic",
|
|
8397
8420
|
description: "Use `logo` to display the brand mark.",
|
|
@@ -8525,7 +8548,7 @@ var yn = {
|
|
|
8525
8548
|
] }
|
|
8526
8549
|
};
|
|
8527
8550
|
// src/components/page/page.ts
|
|
8528
|
-
function
|
|
8551
|
+
function wn({ banner: e, centerMain: t, children: n, footer: r, header: i, headerBackground: o = "default", headerBorder: s, headerContentTheme: c, headerSize: l = "md", headerSticky: u, headerSurface: d, id: f }) {
|
|
8529
8552
|
let p = a(f), m = c ? d ?? "default" : d, h = [];
|
|
8530
8553
|
return e && h.push({
|
|
8531
8554
|
kind: "raw",
|
|
@@ -8573,10 +8596,10 @@ function bn({ banner: e, centerMain: t, children: n, footer: r, header: i, heade
|
|
|
8573
8596
|
children: h
|
|
8574
8597
|
};
|
|
8575
8598
|
}
|
|
8576
|
-
function
|
|
8577
|
-
return r(
|
|
8599
|
+
function Tn(e) {
|
|
8600
|
+
return r(wn(e));
|
|
8578
8601
|
}
|
|
8579
|
-
var
|
|
8602
|
+
var En = {
|
|
8580
8603
|
name: "page",
|
|
8581
8604
|
category: "structure",
|
|
8582
8605
|
description: "Use `page` as the primary layout for header, main, and footer regions.",
|
|
@@ -8820,7 +8843,7 @@ var Sn = {
|
|
|
8820
8843
|
] }
|
|
8821
8844
|
};
|
|
8822
8845
|
// src/components/pattern/pattern.ts
|
|
8823
|
-
function
|
|
8846
|
+
function Dn({ aspectRatio: e, blockSize: t, cell: n = "md", children: r, inlineSize: i, id: o, tone: s = "default", variant: c = "tile" } = {}) {
|
|
8824
8847
|
let l = a(o), u = [];
|
|
8825
8848
|
return t && u.push(`--set-pattern-block-size: ${t / 16}rem`), i && u.push(`--set-pattern-inline-size: ${i / 16}rem`), {
|
|
8826
8849
|
kind: "element",
|
|
@@ -8842,10 +8865,10 @@ function Cn({ aspectRatio: e, blockSize: t, cell: n = "md", children: r, inlineS
|
|
|
8842
8865
|
}] : []
|
|
8843
8866
|
};
|
|
8844
8867
|
}
|
|
8845
|
-
function
|
|
8846
|
-
return r(
|
|
8868
|
+
function On(e = {}) {
|
|
8869
|
+
return r(Dn(e));
|
|
8847
8870
|
}
|
|
8848
|
-
var
|
|
8871
|
+
var kn = {
|
|
8849
8872
|
name: "pattern",
|
|
8850
8873
|
category: "graphic",
|
|
8851
8874
|
description: "Use `pattern` to render a repeating brand tile as a graphic or behind content.",
|
|
@@ -9015,15 +9038,15 @@ var Tn = {
|
|
|
9015
9038
|
] }
|
|
9016
9039
|
};
|
|
9017
9040
|
// src/components/poster/poster.ts
|
|
9018
|
-
function
|
|
9019
|
-
return
|
|
9041
|
+
function An(e) {
|
|
9042
|
+
return le({
|
|
9020
9043
|
...e,
|
|
9021
9044
|
alt: "",
|
|
9022
9045
|
fit: "cover",
|
|
9023
9046
|
priority: !0
|
|
9024
9047
|
});
|
|
9025
9048
|
}
|
|
9026
|
-
function
|
|
9049
|
+
function jn({ children: e, contentTheme: t, id: n, media: r, surface: i }) {
|
|
9027
9050
|
let o = a(n), s = t ? i ?? "default" : i, c = [{
|
|
9028
9051
|
kind: "element",
|
|
9029
9052
|
tag: "div",
|
|
@@ -9053,10 +9076,10 @@ function Dn({ children: e, contentTheme: t, id: n, media: r, surface: i }) {
|
|
|
9053
9076
|
children: c
|
|
9054
9077
|
};
|
|
9055
9078
|
}
|
|
9056
|
-
function
|
|
9057
|
-
return r(
|
|
9079
|
+
function Mn(e) {
|
|
9080
|
+
return r(jn(e));
|
|
9058
9081
|
}
|
|
9059
|
-
var
|
|
9082
|
+
var Nn = {
|
|
9060
9083
|
name: "poster",
|
|
9061
9084
|
category: "structure",
|
|
9062
9085
|
description: "Use `poster` to layer content over background media.",
|
|
@@ -9172,7 +9195,7 @@ var kn = {
|
|
|
9172
9195
|
] }
|
|
9173
9196
|
};
|
|
9174
9197
|
// src/components/prose/prose.ts
|
|
9175
|
-
function
|
|
9198
|
+
function Pn({ align: e = "start", children: t, hangingPunctuation: n, id: r, linkVisited: i = !0, measured: o = !0, monospaced: s, responsive: c }) {
|
|
9176
9199
|
let l = a(r);
|
|
9177
9200
|
return {
|
|
9178
9201
|
kind: "element",
|
|
@@ -9193,10 +9216,10 @@ function An({ align: e = "start", children: t, hangingPunctuation: n, id: r, lin
|
|
|
9193
9216
|
}]
|
|
9194
9217
|
};
|
|
9195
9218
|
}
|
|
9196
|
-
function
|
|
9197
|
-
return r(
|
|
9219
|
+
function Fn(e) {
|
|
9220
|
+
return r(Pn(e));
|
|
9198
9221
|
}
|
|
9199
|
-
var
|
|
9222
|
+
var In = {
|
|
9200
9223
|
name: "prose",
|
|
9201
9224
|
category: "typographic",
|
|
9202
9225
|
description: "Use `prose` to style rich-text markup.",
|
|
@@ -9337,7 +9360,7 @@ var Mn = {
|
|
|
9337
9360
|
] }
|
|
9338
9361
|
};
|
|
9339
9362
|
// src/components/radios/radios.ts
|
|
9340
|
-
function
|
|
9363
|
+
function Ln({ description: e, disabled: t, id: n, invalid: a, radios: o, legend: s, name: c, orientation: l = "vertical", required: u, size: d = "md", value: f }) {
|
|
9341
9364
|
let p = n.trim(), m = c.trim(), h = f?.trim();
|
|
9342
9365
|
if (!p) throw Error("id must be a non-empty string.");
|
|
9343
9366
|
if (!i(p)) throw Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");
|
|
@@ -9402,7 +9425,7 @@ function Nn({ description: e, disabled: t, id: n, invalid: a, radios: o, legend:
|
|
|
9402
9425
|
children: r
|
|
9403
9426
|
};
|
|
9404
9427
|
});
|
|
9405
|
-
return
|
|
9428
|
+
return Ut({
|
|
9406
9429
|
children: r({
|
|
9407
9430
|
kind: "element",
|
|
9408
9431
|
tag: "div",
|
|
@@ -9420,10 +9443,10 @@ function Nn({ description: e, disabled: t, id: n, invalid: a, radios: o, legend:
|
|
|
9420
9443
|
legend: s
|
|
9421
9444
|
});
|
|
9422
9445
|
}
|
|
9423
|
-
function
|
|
9424
|
-
return r(
|
|
9446
|
+
function Rn(e) {
|
|
9447
|
+
return r(Ln(e));
|
|
9425
9448
|
}
|
|
9426
|
-
var
|
|
9449
|
+
var zn = {
|
|
9427
9450
|
name: "radios",
|
|
9428
9451
|
category: "control",
|
|
9429
9452
|
description: "Use `radios` to let users select one option from a short list.",
|
|
@@ -9635,7 +9658,7 @@ var Fn = {
|
|
|
9635
9658
|
] }
|
|
9636
9659
|
};
|
|
9637
9660
|
// src/components/root/root.ts
|
|
9638
|
-
function
|
|
9661
|
+
function Bn({ appOverscrollBehavior: e, appRoot: t, brand: n = "mnsp", children: r, dir: i, id: o, lang: s, theme: c }) {
|
|
9639
9662
|
let l = a(o);
|
|
9640
9663
|
return {
|
|
9641
9664
|
kind: "element",
|
|
@@ -9656,10 +9679,10 @@ function In({ appOverscrollBehavior: e, appRoot: t, brand: n = "mnsp", children:
|
|
|
9656
9679
|
}] : []
|
|
9657
9680
|
};
|
|
9658
9681
|
}
|
|
9659
|
-
function
|
|
9660
|
-
return r(
|
|
9682
|
+
function Vn(e) {
|
|
9683
|
+
return r(Bn(e));
|
|
9661
9684
|
}
|
|
9662
|
-
var
|
|
9685
|
+
var Hn = {
|
|
9663
9686
|
name: "root",
|
|
9664
9687
|
category: "environment",
|
|
9665
9688
|
description: "Mandatory top-level `root` wrapper for the Set system.",
|
|
@@ -9803,7 +9826,7 @@ var Rn = {
|
|
|
9803
9826
|
] }
|
|
9804
9827
|
};
|
|
9805
9828
|
// src/components/stack/stack.ts
|
|
9806
|
-
function
|
|
9829
|
+
function Un({ align: e = "stretch", as: t = "div", children: n, gap: r = "md", id: i, responsive: o }) {
|
|
9807
9830
|
let s = a(i);
|
|
9808
9831
|
return {
|
|
9809
9832
|
kind: "element",
|
|
@@ -9821,10 +9844,10 @@ function zn({ align: e = "stretch", as: t = "div", children: n, gap: r = "md", i
|
|
|
9821
9844
|
}] : []
|
|
9822
9845
|
};
|
|
9823
9846
|
}
|
|
9824
|
-
function
|
|
9825
|
-
return r(
|
|
9847
|
+
function Wn(e) {
|
|
9848
|
+
return r(Un(e));
|
|
9826
9849
|
}
|
|
9827
|
-
var
|
|
9850
|
+
var Gn = {
|
|
9828
9851
|
name: "stack",
|
|
9829
9852
|
category: "layout",
|
|
9830
9853
|
description: "Use `stack` to lay out content in a vertical column.",
|
|
@@ -9945,7 +9968,7 @@ var Vn = {
|
|
|
9945
9968
|
] }
|
|
9946
9969
|
};
|
|
9947
9970
|
// src/components/surface/surface.ts
|
|
9948
|
-
function
|
|
9971
|
+
function Kn({ children: e, contentTheme: t, id: n, variant: r = "default" }) {
|
|
9949
9972
|
return {
|
|
9950
9973
|
kind: "element",
|
|
9951
9974
|
tag: "div",
|
|
@@ -9961,10 +9984,10 @@ function Hn({ children: e, contentTheme: t, id: n, variant: r = "default" }) {
|
|
|
9961
9984
|
}]
|
|
9962
9985
|
};
|
|
9963
9986
|
}
|
|
9964
|
-
function
|
|
9965
|
-
return r(
|
|
9987
|
+
function qn(e) {
|
|
9988
|
+
return r(Kn(e));
|
|
9966
9989
|
}
|
|
9967
|
-
var
|
|
9990
|
+
var Jn = {
|
|
9968
9991
|
name: "surface",
|
|
9969
9992
|
category: "environment",
|
|
9970
9993
|
description: "Use `surface` to set a colour context for nested content.",
|
|
@@ -10046,7 +10069,7 @@ var Wn = {
|
|
|
10046
10069
|
] }
|
|
10047
10070
|
};
|
|
10048
10071
|
// src/components/switch/switch.ts
|
|
10049
|
-
function
|
|
10072
|
+
function Yn({ checked: e, description: t, disabled: n, id: r, label: i, name: o, size: s = "md", value: c }) {
|
|
10050
10073
|
let l = a(r), u = t?.trim();
|
|
10051
10074
|
if (u && !l) throw Error("id must be provided when description is provided.");
|
|
10052
10075
|
let d = u ? `${l}-description` : void 0, f = [{
|
|
@@ -10099,10 +10122,10 @@ function Gn({ checked: e, description: t, disabled: n, id: r, label: i, name: o,
|
|
|
10099
10122
|
children: f
|
|
10100
10123
|
};
|
|
10101
10124
|
}
|
|
10102
|
-
function
|
|
10103
|
-
return r(
|
|
10125
|
+
function Xn(e) {
|
|
10126
|
+
return r(Yn(e));
|
|
10104
10127
|
}
|
|
10105
|
-
var
|
|
10128
|
+
var Zn = {
|
|
10106
10129
|
name: "switch",
|
|
10107
10130
|
category: "control",
|
|
10108
10131
|
description: "Use `switch` to let users instantly toggle a setting on or off.",
|
|
@@ -10279,7 +10302,7 @@ var qn = {
|
|
|
10279
10302
|
] }
|
|
10280
10303
|
};
|
|
10281
10304
|
// src/components/textarea/textarea.ts
|
|
10282
|
-
function
|
|
10305
|
+
function Qn({ autocomplete: e, description: t, disabled: n, id: r, invalid: a, label: o, name: s, readOnly: c, required: l, resize: u = "vertical", rows: d = 2, size: f = "md", spellcheck: p, value: m, inlineSize: h = "full" }) {
|
|
10283
10306
|
let g = r.trim(), _ = t?.trim(), v = e !== !1 && e?.trim(), y = s?.trim(), b = m;
|
|
10284
10307
|
if (!g) throw Error("id must be a non-empty string.");
|
|
10285
10308
|
if (!i(g)) throw Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");
|
|
@@ -10339,10 +10362,10 @@ function Jn({ autocomplete: e, description: t, disabled: n, id: r, invalid: a, l
|
|
|
10339
10362
|
children: w
|
|
10340
10363
|
};
|
|
10341
10364
|
}
|
|
10342
|
-
function
|
|
10343
|
-
return r(
|
|
10365
|
+
function $n(e) {
|
|
10366
|
+
return r(Qn(e));
|
|
10344
10367
|
}
|
|
10345
|
-
var
|
|
10368
|
+
var er = {
|
|
10346
10369
|
name: "textarea",
|
|
10347
10370
|
category: "control",
|
|
10348
10371
|
description: "Use `textarea` to collect multiple lines of text from users.",
|
|
@@ -10665,7 +10688,228 @@ var Xn = {
|
|
|
10665
10688
|
}
|
|
10666
10689
|
}
|
|
10667
10690
|
] }
|
|
10668
|
-
}
|
|
10691
|
+
};
|
|
10692
|
+
// src/runtime/canvas.ts
|
|
10693
|
+
function tr(e, { aspectRatio: t, maxWidth: n = 4096, onResize: r }) {
|
|
10694
|
+
let i = e.ownerDocument.defaultView, a = (a) => {
|
|
10695
|
+
let o = e.clientWidth, s = e.clientHeight;
|
|
10696
|
+
if (o === 0) return;
|
|
10697
|
+
let c = i?.devicePixelRatio || 1, l = c;
|
|
10698
|
+
o * l > n && (l = Math.max(1, Math.floor(n / o)));
|
|
10699
|
+
let u = l === c ? a : void 0, d = u?.inlineSize ?? Math.round(o * l), f = t ? Math.round(d / t) : u?.blockSize ?? Math.round(s * l);
|
|
10700
|
+
(d !== e.width || f !== e.height) && (e.width = d, e.height = f, r({
|
|
10701
|
+
height: f,
|
|
10702
|
+
ratio: d / o,
|
|
10703
|
+
width: d
|
|
10704
|
+
}));
|
|
10705
|
+
}, o = new ResizeObserver(([e]) => {
|
|
10706
|
+
a(e?.devicePixelContentBoxSize?.[0]);
|
|
10707
|
+
});
|
|
10708
|
+
return o.observe(e), a(), () => {
|
|
10709
|
+
o.disconnect();
|
|
10710
|
+
};
|
|
10711
|
+
}
|
|
10712
|
+
// src/runtime/dither.ts
|
|
10713
|
+
var nr = [
|
|
10714
|
+
0,
|
|
10715
|
+
2,
|
|
10716
|
+
3,
|
|
10717
|
+
1
|
|
10718
|
+
], rr = /* @__PURE__ */ new Map([[2, nr]]), ir = (e) => {
|
|
10719
|
+
let t = rr.get(e);
|
|
10720
|
+
if (t) return t;
|
|
10721
|
+
let n = e / 2, r = ir(n), i = [];
|
|
10722
|
+
for (let t = 0; t < e; t += 1) for (let a = 0; a < e; a += 1) {
|
|
10723
|
+
let e = r[t % n * n + a % n] ?? 0, o = (t >= n ? 2 : 0) + +(a >= n);
|
|
10724
|
+
i.push(4 * e + (nr[o] ?? 0));
|
|
10725
|
+
}
|
|
10726
|
+
return rr.set(e, i), i;
|
|
10727
|
+
};
|
|
10728
|
+
function ar(e = 4) {
|
|
10729
|
+
let t = e * e;
|
|
10730
|
+
return ir(e).map((e) => (e + .5) / t);
|
|
10731
|
+
}
|
|
10732
|
+
function or(e, t = 4) {
|
|
10733
|
+
return ar(t).flatMap((n, r) => e > n ? [[r % t, Math.floor(r / t)]] : []);
|
|
10734
|
+
}
|
|
10735
|
+
function sr(e, { cell: t = 1, color: n, size: r = 4, tone: i }) {
|
|
10736
|
+
let a = Math.max(1, Math.round(t)), o = new OffscreenCanvas(a * r, a * r), s = o.getContext("2d");
|
|
10737
|
+
if (!s) return null;
|
|
10738
|
+
s.fillStyle = n;
|
|
10739
|
+
for (let [e, t] of or(i, r)) s.fillRect(e * a, t * a, a, a);
|
|
10740
|
+
return e.createPattern(o, "repeat");
|
|
10741
|
+
}
|
|
10742
|
+
function cr(e, t, n, r, i, a) {
|
|
10743
|
+
let o = sr(e, a);
|
|
10744
|
+
if (!o) return;
|
|
10745
|
+
let [s, c] = a.origin ?? [t, n];
|
|
10746
|
+
o.setTransform(new DOMMatrix([
|
|
10747
|
+
1,
|
|
10748
|
+
0,
|
|
10749
|
+
0,
|
|
10750
|
+
1,
|
|
10751
|
+
s,
|
|
10752
|
+
c
|
|
10753
|
+
])), e.save(), e.fillStyle = o, e.fillRect(t, n, r, i), e.restore();
|
|
10754
|
+
}
|
|
10755
|
+
// src/runtime/frames.ts
|
|
10756
|
+
var lr = "(prefers-reduced-motion: reduce)";
|
|
10757
|
+
function ur(e, { onFrame: t, period: n }) {
|
|
10758
|
+
let r = e.ownerDocument, i = r.defaultView, a = pe(e, lr);
|
|
10759
|
+
if (!i || !(n > 0)) return () => {};
|
|
10760
|
+
let o = 0, s = !1, c = 0, l, u = (e) => {
|
|
10761
|
+
l ??= e - o * n;
|
|
10762
|
+
let r = Math.floor((e - l) / n);
|
|
10763
|
+
r !== o && (o = r, t(o)), c = i.requestAnimationFrame(u);
|
|
10764
|
+
}, d = () => {
|
|
10765
|
+
s && !r.hidden && !a?.matches ? c ||= i.requestAnimationFrame(u) : (i.cancelAnimationFrame(c), c = 0, l = void 0, a?.matches && o !== 0 && (o = 0, t(o)));
|
|
10766
|
+
}, f = new IntersectionObserver(([e]) => {
|
|
10767
|
+
s = e?.isIntersecting ?? !1, d();
|
|
10768
|
+
});
|
|
10769
|
+
return f.observe(e), r.addEventListener("visibilitychange", d), a?.addEventListener("change", d), () => {
|
|
10770
|
+
f.disconnect(), r.removeEventListener("visibilitychange", d), a?.removeEventListener("change", d), i.cancelAnimationFrame(c), c = 0;
|
|
10771
|
+
};
|
|
10772
|
+
}
|
|
10773
|
+
// src/runtime/easing.ts
|
|
10774
|
+
var dr = {
|
|
10775
|
+
ease: [
|
|
10776
|
+
.25,
|
|
10777
|
+
.1,
|
|
10778
|
+
.25,
|
|
10779
|
+
1
|
|
10780
|
+
],
|
|
10781
|
+
"ease-in": [
|
|
10782
|
+
.42,
|
|
10783
|
+
0,
|
|
10784
|
+
1,
|
|
10785
|
+
1
|
|
10786
|
+
],
|
|
10787
|
+
"ease-in-out": [
|
|
10788
|
+
.42,
|
|
10789
|
+
0,
|
|
10790
|
+
.58,
|
|
10791
|
+
1
|
|
10792
|
+
],
|
|
10793
|
+
"ease-out": [
|
|
10794
|
+
0,
|
|
10795
|
+
0,
|
|
10796
|
+
.58,
|
|
10797
|
+
1
|
|
10798
|
+
]
|
|
10799
|
+
}, fr = {
|
|
10800
|
+
"step-end": "steps(1, end)",
|
|
10801
|
+
"step-start": "steps(1, start)"
|
|
10802
|
+
}, pr = (e, t, n, r) => {
|
|
10803
|
+
let i = (e, t, n) => 3 * e * (1 - n) * (1 - n) * n + 3 * t * (1 - n) * n * n + n * n * n;
|
|
10804
|
+
return (a) => {
|
|
10805
|
+
if (a <= 0) return 0;
|
|
10806
|
+
if (a >= 1) return 1;
|
|
10807
|
+
let o = 0, s = 1;
|
|
10808
|
+
for (let t = 0; t < 24; t += 1) {
|
|
10809
|
+
let t = (o + s) / 2;
|
|
10810
|
+
i(e, n, t) < a ? o = t : s = t;
|
|
10811
|
+
}
|
|
10812
|
+
return i(t, r, (o + s) / 2);
|
|
10813
|
+
};
|
|
10814
|
+
}, mr = (e, t) => {
|
|
10815
|
+
let n = t === "jump-both" ? e + 1 : t === "jump-none" ? e - 1 : e, r = [
|
|
10816
|
+
"jump-start",
|
|
10817
|
+
"start",
|
|
10818
|
+
"jump-both"
|
|
10819
|
+
].includes(t);
|
|
10820
|
+
return (t) => {
|
|
10821
|
+
if (t <= 0) return r ? 1 / n : 0;
|
|
10822
|
+
if (t >= 1) return 1;
|
|
10823
|
+
let i = Math.floor(t * e) + +!!r;
|
|
10824
|
+
return Math.min(1, i / n);
|
|
10825
|
+
};
|
|
10826
|
+
}, hr = (e) => {
|
|
10827
|
+
let t = fr[e] ?? e;
|
|
10828
|
+
if (t === "linear") return (e) => Math.min(1, Math.max(0, e));
|
|
10829
|
+
let n = dr[t];
|
|
10830
|
+
if (n) return pr(...n);
|
|
10831
|
+
let r = /^cubic-bezier\(([^)]+)\)$/.exec(t);
|
|
10832
|
+
if (r) {
|
|
10833
|
+
let e = (r[1] ?? "").split(",").map(Number), [t = 0, n = 0, i = 1, a = 1] = e;
|
|
10834
|
+
return e.length === 4 && e.every(Number.isFinite) ? pr(t, n, i, a) : void 0;
|
|
10835
|
+
}
|
|
10836
|
+
let i = /^steps\((\d+)(?:,\s*([a-z-]+))?\)$/.exec(t);
|
|
10837
|
+
if (i) {
|
|
10838
|
+
let e = Number(i[1]), t = i[2] ?? "end";
|
|
10839
|
+
return e > +(t === "jump-none") ? mr(e, t) : void 0;
|
|
10840
|
+
}
|
|
10841
|
+
}, gr = [
|
|
10842
|
+
"data-set-brand",
|
|
10843
|
+
"data-set-content-theme",
|
|
10844
|
+
"data-set-surface",
|
|
10845
|
+
"data-set-theme"
|
|
10846
|
+
], _r = [fe, "(forced-colors: active)"], vr = (e, t) => e.ownerDocument.defaultView?.getComputedStyle(e).getPropertyValue(t).trim() || void 0, $ = (e, t, n) => {
|
|
10847
|
+
if (!vr(e, t)) return;
|
|
10848
|
+
let r = e.ownerDocument, i = r.createElement("span");
|
|
10849
|
+
i.hidden = !0, i.style.setProperty(n, `var(${t})`), e.append(i);
|
|
10850
|
+
let a = r.defaultView?.getComputedStyle(i).getPropertyValue(n).trim();
|
|
10851
|
+
return i.remove(), a || void 0;
|
|
10852
|
+
}, yr = /* @__PURE__ */ new WeakMap(), br = (e) => {
|
|
10853
|
+
if (!yr.has(e)) {
|
|
10854
|
+
let t = e.createElement("canvas");
|
|
10855
|
+
t.width = 1, t.height = 1, yr.set(e, t.getContext("2d", { willReadFrequently: !0 }));
|
|
10856
|
+
}
|
|
10857
|
+
return yr.get(e) ?? null;
|
|
10858
|
+
};
|
|
10859
|
+
function xr(e, t) {
|
|
10860
|
+
let n = $(e, t, "color"), r = n ? br(e.ownerDocument) : null;
|
|
10861
|
+
if (!n || !r) return;
|
|
10862
|
+
r.clearRect(0, 0, 1, 1), r.fillStyle = n, r.fillRect(0, 0, 1, 1);
|
|
10863
|
+
let [i = 0, a = 0, o = 0, s = 0] = r.getImageData(0, 0, 1, 1).data, c = s / 255;
|
|
10864
|
+
return {
|
|
10865
|
+
alpha: c,
|
|
10866
|
+
b: o / 255,
|
|
10867
|
+
css: c === 1 ? `rgb(${i} ${a} ${o})` : `rgb(${i} ${a} ${o} / ${c})`,
|
|
10868
|
+
g: a / 255,
|
|
10869
|
+
r: i / 255
|
|
10870
|
+
};
|
|
10871
|
+
}
|
|
10872
|
+
function Sr(e, t) {
|
|
10873
|
+
let n = $(e, t, "transition-timing-function");
|
|
10874
|
+
return n ? hr(n) : void 0;
|
|
10875
|
+
}
|
|
10876
|
+
function Cr(e, t) {
|
|
10877
|
+
let n = $(e, t, "transition-duration"), r = n ? Number.parseFloat(n) : NaN;
|
|
10878
|
+
return Number.isFinite(r) ? r * 1e3 : void 0;
|
|
10879
|
+
}
|
|
10880
|
+
function wr(e, t, n = "px") {
|
|
10881
|
+
let r = $(e, t, "outline-offset"), i = r?.endsWith("px") ? Number.parseFloat(r) : NaN;
|
|
10882
|
+
if (!Number.isFinite(i)) return;
|
|
10883
|
+
if (n === "px") return i;
|
|
10884
|
+
let a = e.ownerDocument.documentElement, o = e.ownerDocument.defaultView;
|
|
10885
|
+
return i / (Number.parseFloat(o?.getComputedStyle(a).fontSize ?? "") || 16);
|
|
10886
|
+
}
|
|
10887
|
+
function Tr(e, t) {
|
|
10888
|
+
return vr(e, t);
|
|
10889
|
+
}
|
|
10890
|
+
function Er(e, t) {
|
|
10891
|
+
let n = e.ownerDocument, r = n.defaultView, i = 0, a = () => {
|
|
10892
|
+
!i && r && (i = r.requestAnimationFrame(() => {
|
|
10893
|
+
i = 0, t();
|
|
10894
|
+
}));
|
|
10895
|
+
}, o = new MutationObserver((t) => {
|
|
10896
|
+
t.some((t) => t.target.contains(e)) && a();
|
|
10897
|
+
});
|
|
10898
|
+
o.observe(n.documentElement, {
|
|
10899
|
+
attributeFilter: gr,
|
|
10900
|
+
attributes: !0,
|
|
10901
|
+
subtree: !0
|
|
10902
|
+
});
|
|
10903
|
+
let s = _r.map((t) => pe(e, t));
|
|
10904
|
+
for (let e of s) e?.addEventListener("change", a);
|
|
10905
|
+
return () => {
|
|
10906
|
+
o.disconnect();
|
|
10907
|
+
for (let e of s) e?.removeEventListener("change", a);
|
|
10908
|
+
i && r?.cancelAnimationFrame(i), i = 0;
|
|
10909
|
+
};
|
|
10910
|
+
}
|
|
10911
|
+
// src/spec.ts
|
|
10912
|
+
var Dr = [
|
|
10669
10913
|
"control",
|
|
10670
10914
|
"environment",
|
|
10671
10915
|
"graphic",
|
|
@@ -10674,11 +10918,11 @@ var Xn = {
|
|
|
10674
10918
|
"status",
|
|
10675
10919
|
"structure",
|
|
10676
10920
|
"typographic"
|
|
10677
|
-
],
|
|
10921
|
+
], Or = (e) => e.charAt(0).toUpperCase() + e.slice(1), kr = (e) => `${Or(e.category)}/${Or(e.name)}`;
|
|
10678
10922
|
// src/index.ts
|
|
10679
|
-
function
|
|
10680
|
-
M(),
|
|
10923
|
+
function Ar() {
|
|
10924
|
+
M(), oe(), ue(), Ce(), Oe(), Le(), Ve(), qe(), Qe();
|
|
10681
10925
|
}
|
|
10682
|
-
export { w as SET_ALERT_EVENT_BEFORE_DISMISS, T as SET_ALERT_EVENT_DISMISS,
|
|
10926
|
+
export { w as SET_ALERT_EVENT_BEFORE_DISMISS, T as SET_ALERT_EVENT_DISMISS, ee as SET_ALERT_SPEC, C as SET_ALERT_TAG_NAME, dt as SET_AVATAR_SPEC, mt as SET_BADGE_SPEC, I as SET_BANNER_EVENT_BEFORE_DISMISS, L as SET_BANNER_EVENT_DISMISS, se as SET_BANNER_SPEC, F as SET_BANNER_TAG_NAME, yt as SET_BLOCKQUOTE_SPEC, St as SET_BOX_SPEC, S as SET_BUTTON_SPEC, Tt as SET_CARD_SPEC, Ot as SET_CHECKBOX_SPEC, Dr as SET_COMPONENT_CATEGORIES, jt as SET_CONTAINER_SPEC, Pt as SET_DETAILS_SPEC, zt as SET_DITHER_SPEC, Ht as SET_DIVIDER_SPEC, Ne as SET_EXPANDER_SPEC, Gt as SET_FIELDSET_SPEC, Jt as SET_FIGURE_SPEC, en as SET_GRID_ITEM_SPEC, $t as SET_GRID_SPEC, rn as SET_HEADING_SPEC, l as SET_ICON_NAMES, p as SET_ICON_SPEC, de as SET_IMAGE_SPEC, z as SET_IMAGE_TAG_NAME, sn as SET_INLINE_SPEC, un as SET_INPUT_SPEC, he as SET_LIGHTSWITCH_EVENT_CHANGE, we as SET_LIGHTSWITCH_SPEC, V as SET_LIGHTSWITCH_STORAGE_KEY, B as SET_LIGHTSWITCH_TAG_NAME, ne as SET_LINK_SPEC, Cn as SET_LOGO_SPEC, Te as SET_MENU_EVENT_CHOOSE, ke as SET_MENU_SPEC, H as SET_MENU_TAG_NAME, Re as SET_NAV_SPEC, U as SET_NAV_TAG_NAME, En as SET_PAGE_SPEC, kn as SET_PATTERN_SPEC, Nn as SET_POSTER_SPEC, In as SET_PROSE_SPEC, zn as SET_RADIOS_SPEC, He as SET_RANGE_SPEC, W as SET_RANGE_TAG_NAME, Hn as SET_ROOT_SPEC, Je as SET_SIDEBAR_SPEC, G as SET_SIDEBAR_TAG_NAME, g as SET_SPINNER_SPEC, Gn as SET_STACK_SPEC, Jn as SET_SURFACE_SPEC, Zn as SET_SWITCH_SPEC, er as SET_TEXTAREA_SPEC, gt as SET_TEXT_SPEC, $e as SET_VIDEO_SPEC, J as SET_VIDEO_TAG_NAME, x as applySetButtonActivity, A as buildSetAlert, lt as buildSetAvatar, ft as buildSetBadge, ie as buildSetBanner, _t as buildSetBlockquote, bt as buildSetBox, y as buildSetButton, Ct as buildSetCard, Et as buildSetCheckbox, kt as buildSetContainer, Mt as buildSetDetails, Lt as buildSetDither, Bt as buildSetDivider, je as buildSetExpander, Ut as buildSetFieldset, Kt as buildSetFigure, Yt as buildSetGrid, Zt as buildSetGridItem, tn as buildSetHeading, d as buildSetIcon, ce as buildSetImage, an as buildSetInline, cn as buildSetInput, xe as buildSetLightswitch, P as buildSetLink, xn as buildSetLogo, Ee as buildSetMenu, Fe as buildSetNav, wn as buildSetPage, Dn as buildSetPattern, jn as buildSetPoster, Pn as buildSetProse, Ln as buildSetRadios, ze as buildSetRange, Bn as buildSetRoot, Ge as buildSetSidebar, m as buildSetSpinner, Un as buildSetStack, Kn as buildSetSurface, Yn as buildSetSwitch, X as buildSetText, Qn as buildSetTextarea, Ye as buildSetVideo, sr as createSetDitherPattern, M as defineSetAlert, oe as defineSetBanner, Ar as defineSetComponents, ue as defineSetImage, Ce as defineSetLightswitch, Oe as defineSetMenu, Le as defineSetNav, Ve as defineSetRange, qe as defineSetSidebar, Qe as defineSetVideo, It as ditherLevel, t as escapeHtml, cr as fillSetDither, ar as getSetBayerMatrix, or as getSetDitherCells, nt as getSetInitials, j as renderSetAlert, ut as renderSetAvatar, pt as renderSetBadge, ae as renderSetBanner, vt as renderSetBlockquote, xt as renderSetBox, b as renderSetButton, wt as renderSetCard, Dt as renderSetCheckbox, At as renderSetContainer, Nt as renderSetDetails, Rt as renderSetDither, Vt as renderSetDivider, Me as renderSetExpander, Wt as renderSetFieldset, qt as renderSetFigure, Xt as renderSetGrid, Qt as renderSetGridItem, nn as renderSetHeading, f as renderSetIcon, le as renderSetImage, on as renderSetInline, ln as renderSetInput, Se as renderSetLightswitch, te as renderSetLink, Sn as renderSetLogo, De as renderSetMenu, Ie as renderSetNav, Tn as renderSetPage, On as renderSetPattern, Mn as renderSetPoster, An as renderSetPosterImage, Fn as renderSetProse, Rn as renderSetRadios, Be as renderSetRange, Vn as renderSetRoot, Ke as renderSetSidebar, h as renderSetSpinner, Wn as renderSetStack, qn as renderSetSurface, Xn as renderSetSwitch, ht as renderSetText, $n as renderSetTextarea, Xe as renderSetVideo, xr as resolveSetColor, Sr as resolveSetEasing, wr as resolveSetLength, Tr as resolveSetString, Cr as resolveSetTime, ur as runSetFrames, r as serializeSetNode, tr as sizeSetCanvas, kr as specToStoryTitle, Er as watchSetTokens };
|
|
10683
10927
|
|
|
10684
10928
|
//# sourceMappingURL=index.js.map
|