@monospaced/set-core 0.23.0 → 0.24.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/badge/badge.d.ts +1 -1
- package/dist/components/badge/badge.d.ts.map +1 -1
- package/dist/components/box/box.d.ts.map +1 -1
- package/dist/components/card/card.d.ts +2 -2
- package/dist/components/card/card.d.ts.map +1 -1
- package/dist/components/checkbox/checkbox.d.ts +1 -1
- package/dist/components/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/dither/dither.d.ts +49 -0
- package/dist/components/dither/dither.d.ts.map +1 -0
- package/dist/components/fieldset/fieldset.d.ts +1 -1
- package/dist/components/fieldset/fieldset.d.ts.map +1 -1
- package/dist/components/grid/grid.d.ts +4 -1
- 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/image/image.d.ts +2 -1
- package/dist/components/image/image.d.ts.map +1 -1
- package/dist/components/input/input.d.ts +1 -1
- package/dist/components/input/input.d.ts.map +1 -1
- package/dist/components/panel/panel.d.ts +2 -2
- package/dist/components/panel/panel.d.ts.map +1 -1
- package/dist/components/pattern/pattern.d.ts +14 -7
- package/dist/components/pattern/pattern.d.ts.map +1 -1
- package/dist/components/poster/poster.d.ts.map +1 -1
- package/dist/components/sidebar/sidebar.d.ts +2 -2
- package/dist/components/sidebar/sidebar.d.ts.map +1 -1
- package/dist/components/surface/surface.d.ts +3 -1
- package/dist/components/surface/surface.d.ts.map +1 -1
- package/dist/components/textarea/textarea.d.ts +1 -1
- package/dist/components/textarea/textarea.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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +10 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +547 -202
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1700,10 +1700,10 @@ function F(e) {
|
|
|
1700
1700
|
children: y ? c === "end" ? [b, y] : [y, b] : [b]
|
|
1701
1701
|
};
|
|
1702
1702
|
}
|
|
1703
|
-
function
|
|
1703
|
+
function ee(e) {
|
|
1704
1704
|
return r(F(e));
|
|
1705
1705
|
}
|
|
1706
|
-
var
|
|
1706
|
+
var te = {
|
|
1707
1707
|
name: "link",
|
|
1708
1708
|
description: "Use `link` to navigate to another page or resource.",
|
|
1709
1709
|
output: {
|
|
@@ -1985,8 +1985,8 @@ var ee = {
|
|
|
1985
1985
|
}
|
|
1986
1986
|
}
|
|
1987
1987
|
] }
|
|
1988
|
-
},
|
|
1989
|
-
function
|
|
1988
|
+
}, I = "set-banner", L = "set-banner-before-dismiss", R = "set-banner-dismiss", z = "Dismiss banner";
|
|
1989
|
+
function ne(e, t) {
|
|
1990
1990
|
let n = t.createElement("div");
|
|
1991
1991
|
return n.setAttribute("data-part", "close"), n.innerHTML = b({
|
|
1992
1992
|
appearance: "text",
|
|
@@ -1997,9 +1997,9 @@ function te(e, t) {
|
|
|
1997
1997
|
tone: "neutral"
|
|
1998
1998
|
}), n;
|
|
1999
1999
|
}
|
|
2000
|
-
function
|
|
2000
|
+
function re({ actionHref: e, actionLabel: t, dismissible: n = !0, dismissibleLabel: r = z, id: i, message: o, tone: s }) {
|
|
2001
2001
|
if (!!e != !!t) throw Error("actionHref and actionLabel must be provided together.");
|
|
2002
|
-
let c = a(i), l = r.trim() === "" ?
|
|
2002
|
+
let c = a(i), l = r.trim() === "" ? z : r, u = [{
|
|
2003
2003
|
kind: "text",
|
|
2004
2004
|
value: o
|
|
2005
2005
|
}];
|
|
@@ -2012,7 +2012,7 @@ function ne({ actionHref: e, actionLabel: t, dismissible: n = !0, dismissibleLab
|
|
|
2012
2012
|
underline: !0
|
|
2013
2013
|
}))), {
|
|
2014
2014
|
kind: "element",
|
|
2015
|
-
tag:
|
|
2015
|
+
tag: I,
|
|
2016
2016
|
attrs: {
|
|
2017
2017
|
class: "set-banner",
|
|
2018
2018
|
"data-set-content-theme": "dark",
|
|
@@ -2030,20 +2030,20 @@ function ne({ actionHref: e, actionLabel: t, dismissible: n = !0, dismissibleLab
|
|
|
2030
2030
|
}]
|
|
2031
2031
|
};
|
|
2032
2032
|
}
|
|
2033
|
-
function
|
|
2034
|
-
return r(
|
|
2033
|
+
function ie(e) {
|
|
2034
|
+
return r(re(e));
|
|
2035
2035
|
}
|
|
2036
|
-
function
|
|
2036
|
+
function ae() {
|
|
2037
2037
|
if (customElements.get("set-banner")) return;
|
|
2038
2038
|
class e extends HTMLElement {
|
|
2039
2039
|
#e = (e) => {
|
|
2040
2040
|
let t = e.target;
|
|
2041
2041
|
if (!(t instanceof Element) || !t.closest("[data-part=\"close\"]")) return;
|
|
2042
|
-
let n = new CustomEvent(
|
|
2042
|
+
let n = new CustomEvent(L, {
|
|
2043
2043
|
bubbles: !0,
|
|
2044
2044
|
cancelable: !0
|
|
2045
2045
|
});
|
|
2046
|
-
this.dispatchEvent(n) && (this.dispatchEvent(new CustomEvent(
|
|
2046
|
+
this.dispatchEvent(n) && (this.dispatchEvent(new CustomEvent(R, { bubbles: !0 })), this.remove());
|
|
2047
2047
|
};
|
|
2048
2048
|
connectedCallback() {
|
|
2049
2049
|
this.removeEventListener("click", this.#e), this.hasAttribute("data-dismissible") && (this.#t(), this.addEventListener("click", this.#e));
|
|
@@ -2052,16 +2052,16 @@ function ie() {
|
|
|
2052
2052
|
this.removeEventListener("click", this.#e);
|
|
2053
2053
|
}
|
|
2054
2054
|
#t() {
|
|
2055
|
-
this.querySelector("[data-part=\"close\"]") || this.append(
|
|
2055
|
+
this.querySelector("[data-part=\"close\"]") || this.append(ne(this.getAttribute("data-dismissible-label") ?? z, this.ownerDocument));
|
|
2056
2056
|
}
|
|
2057
2057
|
}
|
|
2058
|
-
customElements.define(
|
|
2058
|
+
customElements.define(I, e);
|
|
2059
2059
|
}
|
|
2060
|
-
var
|
|
2060
|
+
var oe = {
|
|
2061
2061
|
name: "banner",
|
|
2062
2062
|
description: "Use `banner` to display a prominent site-wide message.",
|
|
2063
2063
|
output: {
|
|
2064
|
-
element:
|
|
2064
|
+
element: I,
|
|
2065
2065
|
class: "set-banner"
|
|
2066
2066
|
},
|
|
2067
2067
|
content: {
|
|
@@ -2085,7 +2085,7 @@ var ae = {
|
|
|
2085
2085
|
type: { kind: "boolean" }
|
|
2086
2086
|
},
|
|
2087
2087
|
dismissibleLabel: {
|
|
2088
|
-
default:
|
|
2088
|
+
default: z,
|
|
2089
2089
|
description: "Accessible label for the dismiss control.",
|
|
2090
2090
|
ignoredWhen: "`dismissible` is false",
|
|
2091
2091
|
type: { kind: "string" }
|
|
@@ -2112,12 +2112,12 @@ var ae = {
|
|
|
2112
2112
|
}
|
|
2113
2113
|
},
|
|
2114
2114
|
events: {
|
|
2115
|
-
[
|
|
2115
|
+
[L]: {
|
|
2116
2116
|
bubbles: !0,
|
|
2117
2117
|
cancelable: !0,
|
|
2118
2118
|
description: "Fired before the banner is removed by a dismiss action. Call `preventDefault()` to keep the banner mounted."
|
|
2119
2119
|
},
|
|
2120
|
-
[
|
|
2120
|
+
[R]: {
|
|
2121
2121
|
bubbles: !0,
|
|
2122
2122
|
description: "Fired after the banner has been removed by an allowed dismiss action."
|
|
2123
2123
|
}
|
|
@@ -2174,8 +2174,8 @@ var ae = {
|
|
|
2174
2174
|
}
|
|
2175
2175
|
}
|
|
2176
2176
|
] }
|
|
2177
|
-
},
|
|
2178
|
-
function
|
|
2177
|
+
}, B = "set-image";
|
|
2178
|
+
function se({ 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 }) {
|
|
2179
2179
|
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) => {
|
|
2180
2180
|
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();
|
|
2181
2181
|
if (!n) throw Error(`sources[${t}].srcSet must be non-empty.`);
|
|
@@ -2252,7 +2252,7 @@ function oe({ adaptive: e, alt: t = "", aspectRatio: n, fit: r = "intrinsic", gr
|
|
|
2252
2252
|
attrs: { "data-scheme": e },
|
|
2253
2253
|
children: [...r, n]
|
|
2254
2254
|
};
|
|
2255
|
-
}, N = "(prefers-reduced-motion: reduce)", P = (e, t) => t ? e.replaceAll("{scheme}", t) : e, F = (e, t) => t ? `${e}#${t}` : e,
|
|
2255
|
+
}, N = "(prefers-reduced-motion: reduce)", P = (e, t) => t ? e.replaceAll("{scheme}", t) : e, F = (e, t) => t ? `${e}#${t}` : e, ee = (e) => {
|
|
2256
2256
|
let n = E.filter((e) => e.stillSrc).map((t) => ({
|
|
2257
2257
|
kind: "element",
|
|
2258
2258
|
tag: "source",
|
|
@@ -2311,7 +2311,7 @@ function oe({ adaptive: e, alt: t = "", aspectRatio: n, fit: r = "intrinsic", gr
|
|
|
2311
2311
|
i
|
|
2312
2312
|
]
|
|
2313
2313
|
};
|
|
2314
|
-
},
|
|
2314
|
+
}, te = (e) => {
|
|
2315
2315
|
let t = "(prefers-reduced-motion: no-preference)", n = E.map((n) => {
|
|
2316
2316
|
if (n.leadSrc) return {
|
|
2317
2317
|
kind: "element",
|
|
@@ -2358,10 +2358,10 @@ function oe({ adaptive: e, alt: t = "", aspectRatio: n, fit: r = "intrinsic", gr
|
|
|
2358
2358
|
},
|
|
2359
2359
|
children: [...n, r]
|
|
2360
2360
|
};
|
|
2361
|
-
},
|
|
2362
|
-
return o &&
|
|
2361
|
+
}, I = (e) => k ? [ee(e), te(e)] : [ee(e)], L = D ? O ? [...I("light"), ...I("dark")] : I() : e ? [M("light"), M("dark")] : [M()], R = [];
|
|
2362
|
+
return o && R.push(`--set-image-block-size: ${o / 16}rem`), v && R.push(`--set-image-inline-size: ${v / 16}rem`), {
|
|
2363
2363
|
kind: "element",
|
|
2364
|
-
tag:
|
|
2364
|
+
tag: B,
|
|
2365
2365
|
attrs: {
|
|
2366
2366
|
class: "set-image",
|
|
2367
2367
|
"data-adaptive": !!e,
|
|
@@ -2374,15 +2374,15 @@ function oe({ adaptive: e, alt: t = "", aspectRatio: n, fit: r = "intrinsic", gr
|
|
|
2374
2374
|
"data-object-fit": y ? "cover" : void 0,
|
|
2375
2375
|
"data-radius": !!d,
|
|
2376
2376
|
id: b,
|
|
2377
|
-
style:
|
|
2377
|
+
style: R.length > 0 ? R.join("; ") : void 0
|
|
2378
2378
|
},
|
|
2379
|
-
children:
|
|
2379
|
+
children: L
|
|
2380
2380
|
};
|
|
2381
2381
|
}
|
|
2382
|
-
function
|
|
2383
|
-
return r(
|
|
2382
|
+
function ce(e) {
|
|
2383
|
+
return r(se(e));
|
|
2384
2384
|
}
|
|
2385
|
-
function
|
|
2385
|
+
function le() {
|
|
2386
2386
|
if (customElements.get("set-image")) return;
|
|
2387
2387
|
class e extends HTMLElement {
|
|
2388
2388
|
connectedCallback() {
|
|
@@ -2398,13 +2398,13 @@ function ce() {
|
|
|
2398
2398
|
t.complete && t.naturalWidth > 0 ? n() : (t.addEventListener("load", n, { once: !0 }), t.addEventListener("error", n, { once: !0 }));
|
|
2399
2399
|
}
|
|
2400
2400
|
}
|
|
2401
|
-
customElements.define(
|
|
2401
|
+
customElements.define(B, e);
|
|
2402
2402
|
}
|
|
2403
|
-
var
|
|
2403
|
+
var ue = {
|
|
2404
2404
|
name: "image",
|
|
2405
2405
|
description: "Use `image` to render a responsive image with intrinsic, fluid, or cover fit, and optional art-directed `sources`.",
|
|
2406
2406
|
output: {
|
|
2407
|
-
element:
|
|
2407
|
+
element: B,
|
|
2408
2408
|
class: "set-image"
|
|
2409
2409
|
},
|
|
2410
2410
|
content: { kind: "none" },
|
|
@@ -2727,7 +2727,7 @@ var le = {
|
|
|
2727
2727
|
}
|
|
2728
2728
|
}
|
|
2729
2729
|
] }
|
|
2730
|
-
},
|
|
2730
|
+
}, V = "set-lightswitch", de = "set-lightswitch-change", H = "set-theme", U = "Switch to dark theme", fe = "Switch to light theme";
|
|
2731
2731
|
function pe(e) {
|
|
2732
2732
|
return e === "dark" ? "light" : "dark";
|
|
2733
2733
|
}
|
|
@@ -2762,11 +2762,11 @@ function he(e, t) {
|
|
|
2762
2762
|
}]
|
|
2763
2763
|
};
|
|
2764
2764
|
}
|
|
2765
|
-
function ge({ appearance: e = "text", id: t, labelDark: n =
|
|
2766
|
-
let o = a(t), s = n.trim() === "" ?
|
|
2765
|
+
function ge({ appearance: e = "text", id: t, labelDark: n = U, labelLight: r = fe, size: i = "md" }) {
|
|
2766
|
+
let o = a(t), s = n.trim() === "" ? U : n, c = r.trim() === "" ? fe : r;
|
|
2767
2767
|
return {
|
|
2768
2768
|
kind: "element",
|
|
2769
|
-
tag:
|
|
2769
|
+
tag: V,
|
|
2770
2770
|
attrs: {
|
|
2771
2771
|
class: "set-lightswitch",
|
|
2772
2772
|
id: o
|
|
@@ -2794,7 +2794,7 @@ function ve() {
|
|
|
2794
2794
|
let t = e.target;
|
|
2795
2795
|
if (!(t instanceof Element) || !t.closest("button")) return;
|
|
2796
2796
|
let n = pe(this.#c());
|
|
2797
|
-
n === this.#a() ? this.#i() : this.#r(n), this.#l(), this.dispatchEvent(new CustomEvent(
|
|
2797
|
+
n === this.#a() ? this.#i() : this.#r(n), this.#l(), this.dispatchEvent(new CustomEvent(de, {
|
|
2798
2798
|
bubbles: !0,
|
|
2799
2799
|
detail: {
|
|
2800
2800
|
stored: !!this.#n(),
|
|
@@ -2817,7 +2817,7 @@ function ve() {
|
|
|
2817
2817
|
}
|
|
2818
2818
|
#n() {
|
|
2819
2819
|
try {
|
|
2820
|
-
let e = this.#t()?.getItem(
|
|
2820
|
+
let e = this.#t()?.getItem(H);
|
|
2821
2821
|
return e === "light" || e === "dark" ? e : void 0;
|
|
2822
2822
|
} catch {
|
|
2823
2823
|
return;
|
|
@@ -2825,12 +2825,12 @@ function ve() {
|
|
|
2825
2825
|
}
|
|
2826
2826
|
#r(e) {
|
|
2827
2827
|
try {
|
|
2828
|
-
this.#t()?.setItem(
|
|
2828
|
+
this.#t()?.setItem(H, e);
|
|
2829
2829
|
} catch {}
|
|
2830
2830
|
}
|
|
2831
2831
|
#i() {
|
|
2832
2832
|
try {
|
|
2833
|
-
this.#t()?.removeItem(
|
|
2833
|
+
this.#t()?.removeItem(H);
|
|
2834
2834
|
} catch {}
|
|
2835
2835
|
}
|
|
2836
2836
|
#a() {
|
|
@@ -2854,13 +2854,13 @@ function ve() {
|
|
|
2854
2854
|
t ? e.setAttribute("data-set-theme", t) : e.removeAttribute("data-set-theme");
|
|
2855
2855
|
}
|
|
2856
2856
|
}
|
|
2857
|
-
customElements.define(
|
|
2857
|
+
customElements.define(V, e);
|
|
2858
2858
|
}
|
|
2859
2859
|
var ye = {
|
|
2860
2860
|
name: "lightswitch",
|
|
2861
2861
|
description: "Use `lightswitch` to let users toggle between light and dark themes.",
|
|
2862
2862
|
output: {
|
|
2863
|
-
element:
|
|
2863
|
+
element: V,
|
|
2864
2864
|
class: "set-lightswitch"
|
|
2865
2865
|
},
|
|
2866
2866
|
content: { kind: "none" },
|
|
@@ -2882,7 +2882,7 @@ var ye = {
|
|
|
2882
2882
|
type: { kind: "string" }
|
|
2883
2883
|
},
|
|
2884
2884
|
labelDark: {
|
|
2885
|
-
default:
|
|
2885
|
+
default: U,
|
|
2886
2886
|
description: "Accessible label of the switch-to-dark action.",
|
|
2887
2887
|
type: { kind: "string" }
|
|
2888
2888
|
},
|
|
@@ -2904,7 +2904,7 @@ var ye = {
|
|
|
2904
2904
|
}
|
|
2905
2905
|
}
|
|
2906
2906
|
},
|
|
2907
|
-
events: { [
|
|
2907
|
+
events: { [de]: {
|
|
2908
2908
|
bubbles: !0,
|
|
2909
2909
|
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."
|
|
2910
2910
|
} },
|
|
@@ -4422,7 +4422,7 @@ var We = {
|
|
|
4422
4422
|
description: "Surface context. Applied to the inner panel.",
|
|
4423
4423
|
type: {
|
|
4424
4424
|
kind: "enum",
|
|
4425
|
-
values: ["default", "
|
|
4425
|
+
values: ["default", "brandSubtle"]
|
|
4426
4426
|
}
|
|
4427
4427
|
},
|
|
4428
4428
|
triggerLabel: {
|
|
@@ -5142,10 +5142,8 @@ var ut = {
|
|
|
5142
5142
|
kind: "enum",
|
|
5143
5143
|
values: [
|
|
5144
5144
|
"notification",
|
|
5145
|
-
"
|
|
5146
|
-
"pending",
|
|
5145
|
+
"attention",
|
|
5147
5146
|
"success",
|
|
5148
|
-
"warning",
|
|
5149
5147
|
"error"
|
|
5150
5148
|
]
|
|
5151
5149
|
}
|
|
@@ -5657,7 +5655,13 @@ var vt = {
|
|
|
5657
5655
|
description: "Surface context.",
|
|
5658
5656
|
type: {
|
|
5659
5657
|
kind: "enum",
|
|
5660
|
-
values: [
|
|
5658
|
+
values: [
|
|
5659
|
+
"default",
|
|
5660
|
+
"brandSubtle",
|
|
5661
|
+
"brand",
|
|
5662
|
+
"brandSecondary",
|
|
5663
|
+
"brandTertiary"
|
|
5664
|
+
]
|
|
5661
5665
|
}
|
|
5662
5666
|
}
|
|
5663
5667
|
},
|
|
@@ -5883,7 +5887,7 @@ var xt = {
|
|
|
5883
5887
|
description: "Surface context.",
|
|
5884
5888
|
type: {
|
|
5885
5889
|
kind: "enum",
|
|
5886
|
-
values: ["default", "
|
|
5890
|
+
values: ["default", "brandSubtle"]
|
|
5887
5891
|
}
|
|
5888
5892
|
},
|
|
5889
5893
|
title: {
|
|
@@ -5999,7 +6003,7 @@ var wt = {
|
|
|
5999
6003
|
type: { kind: "boolean" }
|
|
6000
6004
|
},
|
|
6001
6005
|
description: {
|
|
6002
|
-
description: "Helper text shown below the label.",
|
|
6006
|
+
description: "Helper text shown below the label. When invalid, put the error message here.",
|
|
6003
6007
|
type: { kind: "string" }
|
|
6004
6008
|
},
|
|
6005
6009
|
disabled: {
|
|
@@ -6421,9 +6425,239 @@ var At = {
|
|
|
6421
6425
|
}
|
|
6422
6426
|
}
|
|
6423
6427
|
] }
|
|
6428
|
+
}, jt = 16;
|
|
6429
|
+
function Mt(e) {
|
|
6430
|
+
return e <= 0 ? 0 : e >= 100 ? jt : Math.min(15, Math.max(1, Math.round(e / 100 * jt)));
|
|
6431
|
+
}
|
|
6432
|
+
function Nt({ aspectRatio: e, blockSize: t, cell: n = "md", inlineSize: r, children: i, density: o = 50, id: s, ramp: c, tone: l = "default" } = {}) {
|
|
6433
|
+
let u = a(s), d = [];
|
|
6434
|
+
t && d.push(`--set-dither-block-size: ${t / 16}rem`), r && d.push(`--set-dither-inline-size: ${r / 16}rem`);
|
|
6435
|
+
let f = Mt(o), p = c ? Array.from({ length: f + 1 }, (e, t) => {
|
|
6436
|
+
let n = c === "inline-start" || c === "block-start" ? f - t : t;
|
|
6437
|
+
return {
|
|
6438
|
+
kind: "element",
|
|
6439
|
+
tag: "span",
|
|
6440
|
+
attrs: {
|
|
6441
|
+
class: "band",
|
|
6442
|
+
"data-band": String(t),
|
|
6443
|
+
"data-level": String(n)
|
|
6444
|
+
},
|
|
6445
|
+
children: []
|
|
6446
|
+
};
|
|
6447
|
+
}) : [];
|
|
6448
|
+
return {
|
|
6449
|
+
kind: "element",
|
|
6450
|
+
tag: "div",
|
|
6451
|
+
attrs: {
|
|
6452
|
+
class: "set-dither",
|
|
6453
|
+
"data-aspect-ratio": e,
|
|
6454
|
+
"data-block-size": t ? "" : void 0,
|
|
6455
|
+
"data-inline-size": r ? "" : void 0,
|
|
6456
|
+
"data-level": String(f),
|
|
6457
|
+
"data-ramp": c,
|
|
6458
|
+
"data-cell": n,
|
|
6459
|
+
"data-tone": l === "default" ? void 0 : l,
|
|
6460
|
+
id: u,
|
|
6461
|
+
style: d.length > 0 ? d.join("; ") : void 0
|
|
6462
|
+
},
|
|
6463
|
+
children: [...c ? [{
|
|
6464
|
+
kind: "element",
|
|
6465
|
+
tag: "span",
|
|
6466
|
+
attrs: {
|
|
6467
|
+
class: "ramp",
|
|
6468
|
+
"aria-hidden": "true"
|
|
6469
|
+
},
|
|
6470
|
+
children: p
|
|
6471
|
+
}] : [], ...i ? [{
|
|
6472
|
+
kind: "raw",
|
|
6473
|
+
html: i
|
|
6474
|
+
}] : []]
|
|
6475
|
+
};
|
|
6476
|
+
}
|
|
6477
|
+
function Pt(e = {}) {
|
|
6478
|
+
return r(Nt(e));
|
|
6479
|
+
}
|
|
6480
|
+
var Ft = {
|
|
6481
|
+
name: "dither",
|
|
6482
|
+
description: "Use `dither` to render an ordered dither as a graphic or behind content.",
|
|
6483
|
+
output: {
|
|
6484
|
+
element: "div",
|
|
6485
|
+
class: "set-dither"
|
|
6486
|
+
},
|
|
6487
|
+
content: {
|
|
6488
|
+
kind: "html",
|
|
6489
|
+
prop: "children"
|
|
6490
|
+
},
|
|
6491
|
+
props: {
|
|
6492
|
+
aspectRatio: {
|
|
6493
|
+
description: "Aspect ratio of the box. Applies to any axis without an explicit size.",
|
|
6494
|
+
type: {
|
|
6495
|
+
kind: "enum",
|
|
6496
|
+
values: [
|
|
6497
|
+
"1:1",
|
|
6498
|
+
"4:5",
|
|
6499
|
+
"3:2",
|
|
6500
|
+
"16:9",
|
|
6501
|
+
"21:9"
|
|
6502
|
+
]
|
|
6503
|
+
}
|
|
6504
|
+
},
|
|
6505
|
+
blockSize: {
|
|
6506
|
+
description: "Block size in pixels, snapped to whole cells. Fills the parent when omitted.",
|
|
6507
|
+
type: { kind: "number" }
|
|
6508
|
+
},
|
|
6509
|
+
children: {
|
|
6510
|
+
description: "Content rendered over the dither.",
|
|
6511
|
+
type: { kind: "html" }
|
|
6512
|
+
},
|
|
6513
|
+
density: {
|
|
6514
|
+
default: 50,
|
|
6515
|
+
description: "Density from empty at 0 to solid at 100, snapped to 17 levels (0–16).",
|
|
6516
|
+
type: {
|
|
6517
|
+
kind: "number",
|
|
6518
|
+
min: 0,
|
|
6519
|
+
max: 100
|
|
6520
|
+
}
|
|
6521
|
+
},
|
|
6522
|
+
id: {
|
|
6523
|
+
description: "DOM id.",
|
|
6524
|
+
type: { kind: "string" }
|
|
6525
|
+
},
|
|
6526
|
+
inlineSize: {
|
|
6527
|
+
description: "Inline size in pixels, snapped to whole cells and never wider than the parent. Fills the parent when omitted.",
|
|
6528
|
+
type: { kind: "number" }
|
|
6529
|
+
},
|
|
6530
|
+
ramp: {
|
|
6531
|
+
description: "Ramp the dither from the selected edge, fading to empty at the opposite end.",
|
|
6532
|
+
type: {
|
|
6533
|
+
kind: "enum",
|
|
6534
|
+
values: [
|
|
6535
|
+
"inline-start",
|
|
6536
|
+
"inline-end",
|
|
6537
|
+
"block-start",
|
|
6538
|
+
"block-end"
|
|
6539
|
+
]
|
|
6540
|
+
}
|
|
6541
|
+
},
|
|
6542
|
+
cell: {
|
|
6543
|
+
default: "md",
|
|
6544
|
+
description: "Cell size.",
|
|
6545
|
+
type: {
|
|
6546
|
+
kind: "enum",
|
|
6547
|
+
values: [
|
|
6548
|
+
"sm",
|
|
6549
|
+
"md",
|
|
6550
|
+
"lg",
|
|
6551
|
+
"xl"
|
|
6552
|
+
]
|
|
6553
|
+
}
|
|
6554
|
+
},
|
|
6555
|
+
tone: {
|
|
6556
|
+
default: "default",
|
|
6557
|
+
description: "Semantic tone. Only `default` and `subtle` are contrast-safe for children. With `brand*` tones, place any children on a solid background, such as a Box.",
|
|
6558
|
+
type: {
|
|
6559
|
+
kind: "enum",
|
|
6560
|
+
values: [
|
|
6561
|
+
"default",
|
|
6562
|
+
"subtle",
|
|
6563
|
+
"brand",
|
|
6564
|
+
"brandSecondary",
|
|
6565
|
+
"brandTertiary",
|
|
6566
|
+
"brandSupport",
|
|
6567
|
+
"brandSupportSecondary",
|
|
6568
|
+
"brandSupportTertiary"
|
|
6569
|
+
]
|
|
6570
|
+
}
|
|
6571
|
+
}
|
|
6572
|
+
},
|
|
6573
|
+
events: {},
|
|
6574
|
+
rules: { attributes: [
|
|
6575
|
+
{
|
|
6576
|
+
target: { on: "host" },
|
|
6577
|
+
attribute: "data-aspect-ratio",
|
|
6578
|
+
condition: {
|
|
6579
|
+
kind: "when-provided",
|
|
6580
|
+
prop: "aspectRatio"
|
|
6581
|
+
},
|
|
6582
|
+
value: {
|
|
6583
|
+
kind: "prop",
|
|
6584
|
+
prop: "aspectRatio"
|
|
6585
|
+
}
|
|
6586
|
+
},
|
|
6587
|
+
{
|
|
6588
|
+
target: { on: "host" },
|
|
6589
|
+
attribute: "data-block-size",
|
|
6590
|
+
condition: {
|
|
6591
|
+
kind: "when-truthy",
|
|
6592
|
+
prop: "blockSize"
|
|
6593
|
+
}
|
|
6594
|
+
},
|
|
6595
|
+
{
|
|
6596
|
+
target: { on: "host" },
|
|
6597
|
+
attribute: "data-inline-size",
|
|
6598
|
+
condition: {
|
|
6599
|
+
kind: "when-truthy",
|
|
6600
|
+
prop: "inlineSize"
|
|
6601
|
+
}
|
|
6602
|
+
},
|
|
6603
|
+
{
|
|
6604
|
+
target: { on: "host" },
|
|
6605
|
+
attribute: "data-ramp",
|
|
6606
|
+
condition: {
|
|
6607
|
+
kind: "when-provided",
|
|
6608
|
+
prop: "ramp"
|
|
6609
|
+
},
|
|
6610
|
+
value: {
|
|
6611
|
+
kind: "prop",
|
|
6612
|
+
prop: "ramp"
|
|
6613
|
+
}
|
|
6614
|
+
},
|
|
6615
|
+
{
|
|
6616
|
+
target: { on: "host" },
|
|
6617
|
+
attribute: "data-cell",
|
|
6618
|
+
condition: { kind: "always" },
|
|
6619
|
+
value: {
|
|
6620
|
+
kind: "prop",
|
|
6621
|
+
prop: "cell"
|
|
6622
|
+
}
|
|
6623
|
+
},
|
|
6624
|
+
{
|
|
6625
|
+
target: { on: "host" },
|
|
6626
|
+
attribute: "data-tone",
|
|
6627
|
+
condition: {
|
|
6628
|
+
kind: "when-in",
|
|
6629
|
+
prop: "tone",
|
|
6630
|
+
values: [
|
|
6631
|
+
"subtle",
|
|
6632
|
+
"brand",
|
|
6633
|
+
"brandSecondary",
|
|
6634
|
+
"brandTertiary",
|
|
6635
|
+
"brandSupport",
|
|
6636
|
+
"brandSupportSecondary",
|
|
6637
|
+
"brandSupportTertiary"
|
|
6638
|
+
]
|
|
6639
|
+
},
|
|
6640
|
+
value: {
|
|
6641
|
+
kind: "prop",
|
|
6642
|
+
prop: "tone"
|
|
6643
|
+
}
|
|
6644
|
+
},
|
|
6645
|
+
{
|
|
6646
|
+
target: { on: "host" },
|
|
6647
|
+
attribute: "id",
|
|
6648
|
+
condition: {
|
|
6649
|
+
kind: "when-non-empty",
|
|
6650
|
+
prop: "id"
|
|
6651
|
+
},
|
|
6652
|
+
value: {
|
|
6653
|
+
kind: "prop",
|
|
6654
|
+
prop: "id"
|
|
6655
|
+
}
|
|
6656
|
+
}
|
|
6657
|
+
] }
|
|
6424
6658
|
};
|
|
6425
6659
|
// src/components/divider/divider.ts
|
|
6426
|
-
function
|
|
6660
|
+
function It({ id: e, orientation: t = "horizontal", tone: n = "default" } = {}) {
|
|
6427
6661
|
let r = a(e);
|
|
6428
6662
|
return {
|
|
6429
6663
|
kind: "element",
|
|
@@ -6438,10 +6672,10 @@ function jt({ id: e, orientation: t = "horizontal", tone: n = "default" } = {})
|
|
|
6438
6672
|
children: []
|
|
6439
6673
|
};
|
|
6440
6674
|
}
|
|
6441
|
-
function
|
|
6442
|
-
return r(
|
|
6675
|
+
function Lt(e = {}) {
|
|
6676
|
+
return r(It(e));
|
|
6443
6677
|
}
|
|
6444
|
-
var
|
|
6678
|
+
var Rt = {
|
|
6445
6679
|
name: "divider",
|
|
6446
6680
|
description: "Use `divider` to separate sections with a rule.",
|
|
6447
6681
|
output: {
|
|
@@ -6538,7 +6772,7 @@ var Nt = {
|
|
|
6538
6772
|
] }
|
|
6539
6773
|
};
|
|
6540
6774
|
// src/components/fieldset/fieldset.ts
|
|
6541
|
-
function
|
|
6775
|
+
function zt({ children: e, description: t, disabled: n, id: r, invalid: a, legend: o, inlineSize: s = "full" }) {
|
|
6542
6776
|
let c = t?.trim(), l = r.trim();
|
|
6543
6777
|
if (!l) throw Error("id must be a non-empty string.");
|
|
6544
6778
|
if (!i(l)) throw Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");
|
|
@@ -6579,10 +6813,10 @@ function Pt({ children: e, description: t, disabled: n, id: r, invalid: a, legen
|
|
|
6579
6813
|
children: p
|
|
6580
6814
|
};
|
|
6581
6815
|
}
|
|
6582
|
-
function
|
|
6583
|
-
return r(
|
|
6816
|
+
function Bt(e) {
|
|
6817
|
+
return r(zt(e));
|
|
6584
6818
|
}
|
|
6585
|
-
var
|
|
6819
|
+
var Vt = {
|
|
6586
6820
|
name: "fieldset",
|
|
6587
6821
|
description: "Use `fieldset` to group related form controls under a legend.",
|
|
6588
6822
|
output: {
|
|
@@ -6605,7 +6839,7 @@ var It = {
|
|
|
6605
6839
|
type: { kind: "html" }
|
|
6606
6840
|
},
|
|
6607
6841
|
description: {
|
|
6608
|
-
description: "Description shown below the legend
|
|
6842
|
+
description: "Description shown below the legend. When invalid, put the error message here.",
|
|
6609
6843
|
type: { kind: "string" }
|
|
6610
6844
|
},
|
|
6611
6845
|
disabled: {
|
|
@@ -6706,7 +6940,7 @@ var It = {
|
|
|
6706
6940
|
] }
|
|
6707
6941
|
};
|
|
6708
6942
|
// src/components/figure/figure.ts
|
|
6709
|
-
function
|
|
6943
|
+
function Ht({ align: e = "start", caption: t, children: n, id: r, inlineSize: i = "full", responsive: o = !1 }) {
|
|
6710
6944
|
let s = a(r);
|
|
6711
6945
|
return {
|
|
6712
6946
|
kind: "element",
|
|
@@ -6733,10 +6967,10 @@ function Lt({ align: e = "start", caption: t, children: n, id: r, inlineSize: i
|
|
|
6733
6967
|
}]
|
|
6734
6968
|
};
|
|
6735
6969
|
}
|
|
6736
|
-
function
|
|
6737
|
-
return r(
|
|
6970
|
+
function Ut(e) {
|
|
6971
|
+
return r(Ht(e));
|
|
6738
6972
|
}
|
|
6739
|
-
var
|
|
6973
|
+
var Wt = {
|
|
6740
6974
|
name: "figure",
|
|
6741
6975
|
description: "Use `figure` to present media with a caption.",
|
|
6742
6976
|
output: {
|
|
@@ -6838,15 +7072,16 @@ var zt = {
|
|
|
6838
7072
|
}, Q = (e) => {
|
|
6839
7073
|
if (e !== void 0) return String(e);
|
|
6840
7074
|
};
|
|
6841
|
-
function
|
|
6842
|
-
let
|
|
7075
|
+
function Gt({ children: e, gap: t = "default", id: n, responsiveRowGap: r }) {
|
|
7076
|
+
let i = a(n);
|
|
6843
7077
|
return {
|
|
6844
7078
|
kind: "element",
|
|
6845
7079
|
tag: "div",
|
|
6846
7080
|
attrs: {
|
|
6847
7081
|
class: "set-grid",
|
|
6848
7082
|
"data-gap": t === "default" ? void 0 : t,
|
|
6849
|
-
|
|
7083
|
+
"data-responsive-row-gap": r,
|
|
7084
|
+
id: i
|
|
6850
7085
|
},
|
|
6851
7086
|
children: [{
|
|
6852
7087
|
kind: "element",
|
|
@@ -6859,10 +7094,10 @@ function Bt({ children: e, gap: t = "default", id: n }) {
|
|
|
6859
7094
|
}]
|
|
6860
7095
|
};
|
|
6861
7096
|
}
|
|
6862
|
-
function
|
|
6863
|
-
return r(
|
|
7097
|
+
function Kt(e) {
|
|
7098
|
+
return r(Gt(e));
|
|
6864
7099
|
}
|
|
6865
|
-
function
|
|
7100
|
+
function qt({ 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 }) {
|
|
6866
7101
|
let _ = a(l);
|
|
6867
7102
|
return {
|
|
6868
7103
|
kind: "element",
|
|
@@ -6891,10 +7126,10 @@ function Ht({ align: e, children: t, colSpan: n, colSpanNarrow: r, colSpanWide:
|
|
|
6891
7126
|
}] : []
|
|
6892
7127
|
};
|
|
6893
7128
|
}
|
|
6894
|
-
function
|
|
6895
|
-
return r(
|
|
7129
|
+
function Jt(e) {
|
|
7130
|
+
return r(qt(e));
|
|
6896
7131
|
}
|
|
6897
|
-
var
|
|
7132
|
+
var Yt = {
|
|
6898
7133
|
name: "grid",
|
|
6899
7134
|
description: "Use `grid` to lay out content in a 12-column responsive grid.",
|
|
6900
7135
|
output: {
|
|
@@ -6925,39 +7160,70 @@ var Wt = {
|
|
|
6925
7160
|
id: {
|
|
6926
7161
|
description: "DOM id.",
|
|
6927
7162
|
type: { kind: "string" }
|
|
7163
|
+
},
|
|
7164
|
+
responsiveRowGap: {
|
|
7165
|
+
description: "Responsive row gap. Overrides the row axis of `gap`.",
|
|
7166
|
+
type: {
|
|
7167
|
+
kind: "enum",
|
|
7168
|
+
values: [
|
|
7169
|
+
"md",
|
|
7170
|
+
"lg",
|
|
7171
|
+
"xl"
|
|
7172
|
+
]
|
|
7173
|
+
}
|
|
6928
7174
|
}
|
|
6929
7175
|
},
|
|
6930
7176
|
events: {},
|
|
6931
|
-
rules: { attributes: [
|
|
6932
|
-
|
|
6933
|
-
|
|
6934
|
-
|
|
6935
|
-
|
|
6936
|
-
|
|
6937
|
-
|
|
7177
|
+
rules: { attributes: [
|
|
7178
|
+
{
|
|
7179
|
+
target: { on: "host" },
|
|
7180
|
+
attribute: "data-gap",
|
|
7181
|
+
condition: {
|
|
7182
|
+
kind: "when-in",
|
|
7183
|
+
prop: "gap",
|
|
7184
|
+
values: ["expanded", "none"]
|
|
7185
|
+
},
|
|
7186
|
+
value: {
|
|
7187
|
+
kind: "prop",
|
|
7188
|
+
prop: "gap"
|
|
7189
|
+
}
|
|
6938
7190
|
},
|
|
6939
|
-
|
|
6940
|
-
|
|
6941
|
-
|
|
6942
|
-
|
|
6943
|
-
|
|
6944
|
-
|
|
6945
|
-
|
|
6946
|
-
|
|
6947
|
-
|
|
6948
|
-
|
|
7191
|
+
{
|
|
7192
|
+
target: { on: "host" },
|
|
7193
|
+
attribute: "data-responsive-row-gap",
|
|
7194
|
+
condition: {
|
|
7195
|
+
kind: "when-in",
|
|
7196
|
+
prop: "responsiveRowGap",
|
|
7197
|
+
values: [
|
|
7198
|
+
"md",
|
|
7199
|
+
"lg",
|
|
7200
|
+
"xl"
|
|
7201
|
+
]
|
|
7202
|
+
},
|
|
7203
|
+
value: {
|
|
7204
|
+
kind: "prop",
|
|
7205
|
+
prop: "responsiveRowGap"
|
|
7206
|
+
}
|
|
6949
7207
|
},
|
|
6950
|
-
|
|
6951
|
-
|
|
6952
|
-
|
|
7208
|
+
{
|
|
7209
|
+
target: { on: "host" },
|
|
7210
|
+
attribute: "id",
|
|
7211
|
+
condition: {
|
|
7212
|
+
kind: "when-non-empty",
|
|
7213
|
+
prop: "id"
|
|
7214
|
+
},
|
|
7215
|
+
value: {
|
|
7216
|
+
kind: "prop",
|
|
7217
|
+
prop: "id"
|
|
7218
|
+
}
|
|
6953
7219
|
}
|
|
6954
|
-
|
|
7220
|
+
] }
|
|
6955
7221
|
}, $ = {
|
|
6956
7222
|
kind: "number",
|
|
6957
7223
|
min: 1,
|
|
6958
7224
|
max: 12,
|
|
6959
7225
|
integer: !0
|
|
6960
|
-
},
|
|
7226
|
+
}, Xt = {
|
|
6961
7227
|
name: "grid-item",
|
|
6962
7228
|
description: "Use `grid-item` to place content within a `grid` layout.",
|
|
6963
7229
|
output: {
|
|
@@ -7233,7 +7499,7 @@ var Wt = {
|
|
|
7233
7499
|
] }
|
|
7234
7500
|
};
|
|
7235
7501
|
// src/components/heading/heading.ts
|
|
7236
|
-
function
|
|
7502
|
+
function Zt({ align: e = "start", children: t, id: n, level: r, linkVisited: i = !0, opticalAlign: o, responsive: s, size: c = "md" }) {
|
|
7237
7503
|
let l = a(n);
|
|
7238
7504
|
return {
|
|
7239
7505
|
kind: "element",
|
|
@@ -7253,10 +7519,10 @@ function Kt({ align: e = "start", children: t, id: n, level: r, linkVisited: i =
|
|
|
7253
7519
|
}]
|
|
7254
7520
|
};
|
|
7255
7521
|
}
|
|
7256
|
-
function
|
|
7257
|
-
return r(
|
|
7522
|
+
function Qt(e) {
|
|
7523
|
+
return r(Zt(e));
|
|
7258
7524
|
}
|
|
7259
|
-
var
|
|
7525
|
+
var $t = {
|
|
7260
7526
|
name: "heading",
|
|
7261
7527
|
description: "Use `heading` to render heading text with consistent type.",
|
|
7262
7528
|
output: {
|
|
@@ -7326,12 +7592,12 @@ var Jt = {
|
|
|
7326
7592
|
},
|
|
7327
7593
|
responsive: {
|
|
7328
7594
|
default: !1,
|
|
7329
|
-
description: "Scales type across breakpoints.",
|
|
7595
|
+
description: "Scales type across breakpoints. No effect on display sizes, which are fluid.",
|
|
7330
7596
|
type: { kind: "boolean" }
|
|
7331
7597
|
},
|
|
7332
7598
|
size: {
|
|
7333
7599
|
default: "md",
|
|
7334
|
-
description: "Size variant.",
|
|
7600
|
+
description: "Size variant. Display sizes scale fluidly with their container from the 3xl floor to their cap, and fit at least 10 characters at any width.",
|
|
7335
7601
|
type: {
|
|
7336
7602
|
kind: "enum",
|
|
7337
7603
|
values: [
|
|
@@ -7343,7 +7609,9 @@ var Jt = {
|
|
|
7343
7609
|
"2xl",
|
|
7344
7610
|
"3xl",
|
|
7345
7611
|
"4xl",
|
|
7346
|
-
"
|
|
7612
|
+
"display-sm",
|
|
7613
|
+
"display-md",
|
|
7614
|
+
"display-lg"
|
|
7347
7615
|
]
|
|
7348
7616
|
}
|
|
7349
7617
|
}
|
|
@@ -7416,7 +7684,7 @@ var Jt = {
|
|
|
7416
7684
|
] }
|
|
7417
7685
|
};
|
|
7418
7686
|
// src/components/inline/inline.ts
|
|
7419
|
-
function
|
|
7687
|
+
function en({ align: e = "center", as: t = "div", children: n, gap: r = "md", id: i, justify: o = "start", nowrap: s }) {
|
|
7420
7688
|
let c = a(i);
|
|
7421
7689
|
return {
|
|
7422
7690
|
kind: "element",
|
|
@@ -7435,10 +7703,10 @@ function Yt({ align: e = "center", as: t = "div", children: n, gap: r = "md", id
|
|
|
7435
7703
|
}] : []
|
|
7436
7704
|
};
|
|
7437
7705
|
}
|
|
7438
|
-
function
|
|
7439
|
-
return r(
|
|
7706
|
+
function tn(e) {
|
|
7707
|
+
return r(en(e));
|
|
7440
7708
|
}
|
|
7441
|
-
var
|
|
7709
|
+
var nn = {
|
|
7442
7710
|
name: "inline",
|
|
7443
7711
|
description: "Use `inline` to lay out content in a horizontal row.",
|
|
7444
7712
|
output: {
|
|
@@ -7581,7 +7849,7 @@ var Zt = {
|
|
|
7581
7849
|
] }
|
|
7582
7850
|
};
|
|
7583
7851
|
// src/components/input/input.ts
|
|
7584
|
-
function
|
|
7852
|
+
function rn({ 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" }) {
|
|
7585
7853
|
let g = r.trim(), _ = t?.trim(), v = e !== !1 && e?.trim(), y = s?.trim(), b = c?.trim(), x = m;
|
|
7586
7854
|
if (!g) throw Error("id must be a non-empty string.");
|
|
7587
7855
|
if (!i(g)) throw Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");
|
|
@@ -7639,10 +7907,10 @@ function Qt({ autocomplete: e, description: t, disabled: n, id: r, invalid: a, l
|
|
|
7639
7907
|
children: k
|
|
7640
7908
|
};
|
|
7641
7909
|
}
|
|
7642
|
-
function
|
|
7643
|
-
return r(
|
|
7910
|
+
function an(e) {
|
|
7911
|
+
return r(rn(e));
|
|
7644
7912
|
}
|
|
7645
|
-
var
|
|
7913
|
+
var on = {
|
|
7646
7914
|
name: "input",
|
|
7647
7915
|
description: "Use `input` to collect a single line of text from users.",
|
|
7648
7916
|
output: {
|
|
@@ -7668,7 +7936,7 @@ var en = {
|
|
|
7668
7936
|
}
|
|
7669
7937
|
},
|
|
7670
7938
|
description: {
|
|
7671
|
-
description: "Helper text shown below the input
|
|
7939
|
+
description: "Helper text shown below the input. When invalid, put the error message here.",
|
|
7672
7940
|
type: { kind: "string" }
|
|
7673
7941
|
},
|
|
7674
7942
|
disabled: {
|
|
@@ -7981,7 +8249,7 @@ var en = {
|
|
|
7981
8249
|
}
|
|
7982
8250
|
}
|
|
7983
8251
|
] }
|
|
7984
|
-
},
|
|
8252
|
+
}, sn = "0 0 6714.6 1200", cn = "0 0 600 1200", ln = [
|
|
7985
8253
|
{
|
|
7986
8254
|
x: 0,
|
|
7987
8255
|
y: 0
|
|
@@ -8014,11 +8282,11 @@ var en = {
|
|
|
8014
8282
|
x: 450,
|
|
8015
8283
|
y: 900
|
|
8016
8284
|
}
|
|
8017
|
-
],
|
|
8285
|
+
], un = "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", dn = 1163, fn = () => ({
|
|
8018
8286
|
kind: "element",
|
|
8019
8287
|
tag: "g",
|
|
8020
8288
|
attrs: { class: "mark" },
|
|
8021
|
-
children:
|
|
8289
|
+
children: ln.map(({ x: e, y: t }) => ({
|
|
8022
8290
|
kind: "element",
|
|
8023
8291
|
tag: "rect",
|
|
8024
8292
|
attrs: {
|
|
@@ -8029,20 +8297,20 @@ var en = {
|
|
|
8029
8297
|
},
|
|
8030
8298
|
children: []
|
|
8031
8299
|
}))
|
|
8032
|
-
}),
|
|
8300
|
+
}), pn = () => ({
|
|
8033
8301
|
kind: "element",
|
|
8034
8302
|
tag: "g",
|
|
8035
8303
|
attrs: {
|
|
8036
8304
|
class: "word",
|
|
8037
|
-
transform: `translate(${
|
|
8305
|
+
transform: `translate(${dn} 0)`
|
|
8038
8306
|
},
|
|
8039
8307
|
children: [{
|
|
8040
8308
|
kind: "element",
|
|
8041
8309
|
tag: "path",
|
|
8042
|
-
attrs: { d:
|
|
8310
|
+
attrs: { d: un },
|
|
8043
8311
|
children: []
|
|
8044
8312
|
}]
|
|
8045
|
-
}),
|
|
8313
|
+
}), mn = (e, t) => ({
|
|
8046
8314
|
kind: "element",
|
|
8047
8315
|
tag: "svg",
|
|
8048
8316
|
attrs: {
|
|
@@ -8052,14 +8320,14 @@ var en = {
|
|
|
8052
8320
|
},
|
|
8053
8321
|
children: t
|
|
8054
8322
|
});
|
|
8055
|
-
function
|
|
8056
|
-
return
|
|
8323
|
+
function hn() {
|
|
8324
|
+
return mn(sn, [fn(), pn()]);
|
|
8057
8325
|
}
|
|
8058
|
-
function
|
|
8059
|
-
return
|
|
8326
|
+
function gn() {
|
|
8327
|
+
return mn(cn, [fn()]);
|
|
8060
8328
|
}
|
|
8061
8329
|
// src/components/logo/logo.ts
|
|
8062
|
-
function
|
|
8330
|
+
function _n({ animated: e, id: t, label: n, size: r = "md", tone: i = "default", variant: o = "primary" }) {
|
|
8063
8331
|
let s = a(t), c = !!e && (o === "primary" || o === "graphic"), l = [{
|
|
8064
8332
|
kind: "element",
|
|
8065
8333
|
tag: "span",
|
|
@@ -8069,7 +8337,7 @@ function fn({ animated: e, id: t, label: n, size: r = "md", tone: i = "default",
|
|
|
8069
8337
|
value: n
|
|
8070
8338
|
}]
|
|
8071
8339
|
}];
|
|
8072
|
-
return c && l.push(o === "graphic" ?
|
|
8340
|
+
return c && l.push(o === "graphic" ? gn() : hn()), {
|
|
8073
8341
|
kind: "element",
|
|
8074
8342
|
tag: "div",
|
|
8075
8343
|
attrs: {
|
|
@@ -8083,10 +8351,10 @@ function fn({ animated: e, id: t, label: n, size: r = "md", tone: i = "default",
|
|
|
8083
8351
|
children: l
|
|
8084
8352
|
};
|
|
8085
8353
|
}
|
|
8086
|
-
function
|
|
8087
|
-
return r(
|
|
8354
|
+
function vn(e) {
|
|
8355
|
+
return r(_n(e));
|
|
8088
8356
|
}
|
|
8089
|
-
var
|
|
8357
|
+
var yn = {
|
|
8090
8358
|
name: "logo",
|
|
8091
8359
|
description: "Use `logo` to display the brand mark.",
|
|
8092
8360
|
output: {
|
|
@@ -8219,7 +8487,7 @@ var mn = {
|
|
|
8219
8487
|
] }
|
|
8220
8488
|
};
|
|
8221
8489
|
// src/components/page/page.ts
|
|
8222
|
-
function
|
|
8490
|
+
function bn({ banner: e, centerMain: t, children: n, footer: r, header: i, headerBorder: o, headerSize: s = "md", id: c, stickyHeader: l }) {
|
|
8223
8491
|
let u = a(c), d = [];
|
|
8224
8492
|
return e && d.push({
|
|
8225
8493
|
kind: "raw",
|
|
@@ -8262,10 +8530,10 @@ function hn({ banner: e, centerMain: t, children: n, footer: r, header: i, heade
|
|
|
8262
8530
|
children: d
|
|
8263
8531
|
};
|
|
8264
8532
|
}
|
|
8265
|
-
function
|
|
8266
|
-
return r(
|
|
8533
|
+
function xn(e) {
|
|
8534
|
+
return r(bn(e));
|
|
8267
8535
|
}
|
|
8268
|
-
var
|
|
8536
|
+
var Sn = {
|
|
8269
8537
|
name: "page",
|
|
8270
8538
|
description: "Use `page` as the primary layout for header, main, and footer regions.",
|
|
8271
8539
|
output: {
|
|
@@ -8406,7 +8674,7 @@ var _n = {
|
|
|
8406
8674
|
] }
|
|
8407
8675
|
};
|
|
8408
8676
|
// src/components/panel/panel.ts
|
|
8409
|
-
function
|
|
8677
|
+
function Cn({ children: e, id: t, padding: n = "md", surface: r }) {
|
|
8410
8678
|
return {
|
|
8411
8679
|
kind: "element",
|
|
8412
8680
|
tag: "div",
|
|
@@ -8422,10 +8690,10 @@ function vn({ children: e, id: t, padding: n = "md", surface: r }) {
|
|
|
8422
8690
|
}] : []
|
|
8423
8691
|
};
|
|
8424
8692
|
}
|
|
8425
|
-
function
|
|
8426
|
-
return r(
|
|
8693
|
+
function wn(e) {
|
|
8694
|
+
return r(Cn(e));
|
|
8427
8695
|
}
|
|
8428
|
-
var
|
|
8696
|
+
var Tn = {
|
|
8429
8697
|
name: "panel",
|
|
8430
8698
|
description: "Use `panel` to group related content in a contained region.",
|
|
8431
8699
|
output: {
|
|
@@ -8463,7 +8731,7 @@ var bn = {
|
|
|
8463
8731
|
description: "Surface context.",
|
|
8464
8732
|
type: {
|
|
8465
8733
|
kind: "enum",
|
|
8466
|
-
values: ["default", "
|
|
8734
|
+
values: ["default", "brandSubtle"]
|
|
8467
8735
|
}
|
|
8468
8736
|
}
|
|
8469
8737
|
},
|
|
@@ -8505,30 +8773,34 @@ var bn = {
|
|
|
8505
8773
|
] }
|
|
8506
8774
|
};
|
|
8507
8775
|
// src/components/pattern/pattern.ts
|
|
8508
|
-
function
|
|
8509
|
-
let
|
|
8510
|
-
return {
|
|
8776
|
+
function En({ aspectRatio: e, blockSize: t, cell: n = "md", children: r, inlineSize: i, id: o, tone: s = "default", variant: c = "tile" } = {}) {
|
|
8777
|
+
let l = a(o), u = [];
|
|
8778
|
+
return t && u.push(`--set-pattern-block-size: ${t / 16}rem`), i && u.push(`--set-pattern-inline-size: ${i / 16}rem`), {
|
|
8511
8779
|
kind: "element",
|
|
8512
8780
|
tag: "div",
|
|
8513
8781
|
attrs: {
|
|
8514
8782
|
class: "set-pattern",
|
|
8515
|
-
"data-
|
|
8516
|
-
"data-
|
|
8517
|
-
"data-
|
|
8518
|
-
|
|
8783
|
+
"data-aspect-ratio": e,
|
|
8784
|
+
"data-block-size": t ? "" : void 0,
|
|
8785
|
+
"data-inline-size": i ? "" : void 0,
|
|
8786
|
+
"data-cell": n,
|
|
8787
|
+
"data-tone": s === "default" ? void 0 : s,
|
|
8788
|
+
"data-variant": c,
|
|
8789
|
+
id: l,
|
|
8790
|
+
style: u.length > 0 ? u.join("; ") : void 0
|
|
8519
8791
|
},
|
|
8520
|
-
children:
|
|
8792
|
+
children: r ? [{
|
|
8521
8793
|
kind: "raw",
|
|
8522
|
-
html:
|
|
8794
|
+
html: r
|
|
8523
8795
|
}] : []
|
|
8524
8796
|
};
|
|
8525
8797
|
}
|
|
8526
|
-
function
|
|
8527
|
-
return r(
|
|
8798
|
+
function Dn(e = {}) {
|
|
8799
|
+
return r(En(e));
|
|
8528
8800
|
}
|
|
8529
|
-
var
|
|
8801
|
+
var On = {
|
|
8530
8802
|
name: "pattern",
|
|
8531
|
-
description: "Use `pattern` to render
|
|
8803
|
+
description: "Use `pattern` to render a repeating brand tile as a graphic or behind content.",
|
|
8532
8804
|
output: {
|
|
8533
8805
|
element: "div",
|
|
8534
8806
|
class: "set-pattern"
|
|
@@ -8538,29 +8810,55 @@ var Cn = {
|
|
|
8538
8810
|
prop: "children"
|
|
8539
8811
|
},
|
|
8540
8812
|
props: {
|
|
8813
|
+
aspectRatio: {
|
|
8814
|
+
description: "Aspect ratio of the box. Applies to any axis without an explicit size.",
|
|
8815
|
+
type: {
|
|
8816
|
+
kind: "enum",
|
|
8817
|
+
values: [
|
|
8818
|
+
"1:1",
|
|
8819
|
+
"4:5",
|
|
8820
|
+
"3:2",
|
|
8821
|
+
"16:9",
|
|
8822
|
+
"21:9"
|
|
8823
|
+
]
|
|
8824
|
+
}
|
|
8825
|
+
},
|
|
8826
|
+
blockSize: {
|
|
8827
|
+
description: "Block size in pixels, snapped to whole cells. Fills the parent when omitted.",
|
|
8828
|
+
type: { kind: "number" }
|
|
8829
|
+
},
|
|
8541
8830
|
children: {
|
|
8542
|
-
description: "Content rendered
|
|
8831
|
+
description: "Content rendered over the pattern.",
|
|
8543
8832
|
type: { kind: "html" }
|
|
8544
8833
|
},
|
|
8545
8834
|
id: {
|
|
8546
8835
|
description: "DOM id.",
|
|
8547
8836
|
type: { kind: "string" }
|
|
8548
8837
|
},
|
|
8838
|
+
inlineSize: {
|
|
8839
|
+
description: "Inline size in pixels, snapped to whole cells and never wider than the parent. Fills the parent when omitted.",
|
|
8840
|
+
type: { kind: "number" }
|
|
8841
|
+
},
|
|
8549
8842
|
tone: {
|
|
8550
8843
|
default: "default",
|
|
8551
|
-
description: "Semantic tone.",
|
|
8844
|
+
description: "Semantic tone. Only `default` and `subtle` are contrast-safe for children. With `brand*` tones, place any children on a solid background, such as a Box.",
|
|
8552
8845
|
type: {
|
|
8553
8846
|
kind: "enum",
|
|
8554
8847
|
values: [
|
|
8555
8848
|
"default",
|
|
8556
8849
|
"subtle",
|
|
8557
|
-
"
|
|
8850
|
+
"brand",
|
|
8851
|
+
"brandSecondary",
|
|
8852
|
+
"brandTertiary",
|
|
8853
|
+
"brandSupport",
|
|
8854
|
+
"brandSupportSecondary",
|
|
8855
|
+
"brandSupportTertiary"
|
|
8558
8856
|
]
|
|
8559
8857
|
}
|
|
8560
8858
|
},
|
|
8561
|
-
|
|
8859
|
+
cell: {
|
|
8562
8860
|
default: "md",
|
|
8563
|
-
description: "
|
|
8861
|
+
description: "Cell size.",
|
|
8564
8862
|
type: {
|
|
8565
8863
|
kind: "enum",
|
|
8566
8864
|
values: [
|
|
@@ -8568,8 +8866,7 @@ var Cn = {
|
|
|
8568
8866
|
"sm",
|
|
8569
8867
|
"md",
|
|
8570
8868
|
"lg",
|
|
8571
|
-
"xl"
|
|
8572
|
-
"fill"
|
|
8869
|
+
"xl"
|
|
8573
8870
|
]
|
|
8574
8871
|
}
|
|
8575
8872
|
},
|
|
@@ -8588,6 +8885,34 @@ var Cn = {
|
|
|
8588
8885
|
},
|
|
8589
8886
|
events: {},
|
|
8590
8887
|
rules: { attributes: [
|
|
8888
|
+
{
|
|
8889
|
+
target: { on: "host" },
|
|
8890
|
+
attribute: "data-aspect-ratio",
|
|
8891
|
+
condition: {
|
|
8892
|
+
kind: "when-provided",
|
|
8893
|
+
prop: "aspectRatio"
|
|
8894
|
+
},
|
|
8895
|
+
value: {
|
|
8896
|
+
kind: "prop",
|
|
8897
|
+
prop: "aspectRatio"
|
|
8898
|
+
}
|
|
8899
|
+
},
|
|
8900
|
+
{
|
|
8901
|
+
target: { on: "host" },
|
|
8902
|
+
attribute: "data-block-size",
|
|
8903
|
+
condition: {
|
|
8904
|
+
kind: "when-truthy",
|
|
8905
|
+
prop: "blockSize"
|
|
8906
|
+
}
|
|
8907
|
+
},
|
|
8908
|
+
{
|
|
8909
|
+
target: { on: "host" },
|
|
8910
|
+
attribute: "data-inline-size",
|
|
8911
|
+
condition: {
|
|
8912
|
+
kind: "when-truthy",
|
|
8913
|
+
prop: "inlineSize"
|
|
8914
|
+
}
|
|
8915
|
+
},
|
|
8591
8916
|
{
|
|
8592
8917
|
target: { on: "host" },
|
|
8593
8918
|
attribute: "data-variant",
|
|
@@ -8599,11 +8924,11 @@ var Cn = {
|
|
|
8599
8924
|
},
|
|
8600
8925
|
{
|
|
8601
8926
|
target: { on: "host" },
|
|
8602
|
-
attribute: "data-
|
|
8927
|
+
attribute: "data-cell",
|
|
8603
8928
|
condition: { kind: "always" },
|
|
8604
8929
|
value: {
|
|
8605
8930
|
kind: "prop",
|
|
8606
|
-
prop: "
|
|
8931
|
+
prop: "cell"
|
|
8607
8932
|
}
|
|
8608
8933
|
},
|
|
8609
8934
|
{
|
|
@@ -8612,7 +8937,15 @@ var Cn = {
|
|
|
8612
8937
|
condition: {
|
|
8613
8938
|
kind: "when-in",
|
|
8614
8939
|
prop: "tone",
|
|
8615
|
-
values: [
|
|
8940
|
+
values: [
|
|
8941
|
+
"subtle",
|
|
8942
|
+
"brand",
|
|
8943
|
+
"brandSecondary",
|
|
8944
|
+
"brandTertiary",
|
|
8945
|
+
"brandSupport",
|
|
8946
|
+
"brandSupportSecondary",
|
|
8947
|
+
"brandSupportTertiary"
|
|
8948
|
+
]
|
|
8616
8949
|
},
|
|
8617
8950
|
value: {
|
|
8618
8951
|
kind: "prop",
|
|
@@ -8634,15 +8967,15 @@ var Cn = {
|
|
|
8634
8967
|
] }
|
|
8635
8968
|
};
|
|
8636
8969
|
// src/components/poster/poster.ts
|
|
8637
|
-
function
|
|
8638
|
-
return
|
|
8970
|
+
function kn(e) {
|
|
8971
|
+
return ce({
|
|
8639
8972
|
...e,
|
|
8640
8973
|
alt: "",
|
|
8641
8974
|
fit: "cover",
|
|
8642
8975
|
priority: !0
|
|
8643
8976
|
});
|
|
8644
8977
|
}
|
|
8645
|
-
function
|
|
8978
|
+
function An({ children: e, contentTheme: t, id: n, media: r, surface: i }) {
|
|
8646
8979
|
let o = a(n), s = t ? i ?? "default" : i, c = [{
|
|
8647
8980
|
kind: "element",
|
|
8648
8981
|
tag: "div",
|
|
@@ -8672,10 +9005,10 @@ function Tn({ children: e, contentTheme: t, id: n, media: r, surface: i }) {
|
|
|
8672
9005
|
children: c
|
|
8673
9006
|
};
|
|
8674
9007
|
}
|
|
8675
|
-
function
|
|
8676
|
-
return r(
|
|
9008
|
+
function jn(e) {
|
|
9009
|
+
return r(An(e));
|
|
8677
9010
|
}
|
|
8678
|
-
var
|
|
9011
|
+
var Mn = {
|
|
8679
9012
|
name: "poster",
|
|
8680
9013
|
description: "Use `poster` to layer content over background media.",
|
|
8681
9014
|
output: {
|
|
@@ -8718,7 +9051,13 @@ var Dn = {
|
|
|
8718
9051
|
description: "Surface context.",
|
|
8719
9052
|
type: {
|
|
8720
9053
|
kind: "enum",
|
|
8721
|
-
values: [
|
|
9054
|
+
values: [
|
|
9055
|
+
"default",
|
|
9056
|
+
"brandSubtle",
|
|
9057
|
+
"brand",
|
|
9058
|
+
"brandSecondary",
|
|
9059
|
+
"brandTertiary"
|
|
9060
|
+
]
|
|
8722
9061
|
}
|
|
8723
9062
|
}
|
|
8724
9063
|
},
|
|
@@ -8784,7 +9123,7 @@ var Dn = {
|
|
|
8784
9123
|
] }
|
|
8785
9124
|
};
|
|
8786
9125
|
// src/components/prose/prose.ts
|
|
8787
|
-
function
|
|
9126
|
+
function Nn({ align: e = "start", children: t, hangingPunctuation: n, id: r, linkVisited: i = !0, measured: o = !0, monospaced: s, responsive: c }) {
|
|
8788
9127
|
let l = a(r);
|
|
8789
9128
|
return {
|
|
8790
9129
|
kind: "element",
|
|
@@ -8805,10 +9144,10 @@ function On({ align: e = "start", children: t, hangingPunctuation: n, id: r, lin
|
|
|
8805
9144
|
}]
|
|
8806
9145
|
};
|
|
8807
9146
|
}
|
|
8808
|
-
function
|
|
8809
|
-
return r(
|
|
9147
|
+
function Pn(e) {
|
|
9148
|
+
return r(Nn(e));
|
|
8810
9149
|
}
|
|
8811
|
-
var
|
|
9150
|
+
var Fn = {
|
|
8812
9151
|
name: "prose",
|
|
8813
9152
|
description: "Use `prose` to style rich-text markup.",
|
|
8814
9153
|
output: {
|
|
@@ -8948,7 +9287,7 @@ var An = {
|
|
|
8948
9287
|
] }
|
|
8949
9288
|
};
|
|
8950
9289
|
// src/components/radios/radios.ts
|
|
8951
|
-
function
|
|
9290
|
+
function In({ description: e, disabled: t, id: n, invalid: a, radios: o, legend: s, name: c, orientation: l = "vertical", required: u, size: d = "md", value: f }) {
|
|
8952
9291
|
let p = n.trim(), m = c.trim(), h = f?.trim();
|
|
8953
9292
|
if (!p) throw Error("id must be a non-empty string.");
|
|
8954
9293
|
if (!i(p)) throw Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");
|
|
@@ -9013,7 +9352,7 @@ function jn({ description: e, disabled: t, id: n, invalid: a, radios: o, legend:
|
|
|
9013
9352
|
children: r
|
|
9014
9353
|
};
|
|
9015
9354
|
});
|
|
9016
|
-
return
|
|
9355
|
+
return zt({
|
|
9017
9356
|
children: r({
|
|
9018
9357
|
kind: "element",
|
|
9019
9358
|
tag: "div",
|
|
@@ -9031,10 +9370,10 @@ function jn({ description: e, disabled: t, id: n, invalid: a, radios: o, legend:
|
|
|
9031
9370
|
legend: s
|
|
9032
9371
|
});
|
|
9033
9372
|
}
|
|
9034
|
-
function
|
|
9035
|
-
return r(
|
|
9373
|
+
function Ln(e) {
|
|
9374
|
+
return r(In(e));
|
|
9036
9375
|
}
|
|
9037
|
-
var
|
|
9376
|
+
var Rn = {
|
|
9038
9377
|
name: "radios",
|
|
9039
9378
|
description: "Use `radios` to let users select one option from a short list.",
|
|
9040
9379
|
output: {
|
|
@@ -9245,7 +9584,7 @@ var Nn = {
|
|
|
9245
9584
|
] }
|
|
9246
9585
|
};
|
|
9247
9586
|
// src/components/root/root.ts
|
|
9248
|
-
function
|
|
9587
|
+
function zn({ appOverscrollBehavior: e, appRoot: t, brand: n = "mnsp", children: r, dir: i, id: o, lang: s, theme: c }) {
|
|
9249
9588
|
let l = a(o);
|
|
9250
9589
|
return {
|
|
9251
9590
|
kind: "element",
|
|
@@ -9266,10 +9605,10 @@ function Pn({ appOverscrollBehavior: e, appRoot: t, brand: n = "mnsp", children:
|
|
|
9266
9605
|
}] : []
|
|
9267
9606
|
};
|
|
9268
9607
|
}
|
|
9269
|
-
function
|
|
9270
|
-
return r(
|
|
9608
|
+
function Bn(e) {
|
|
9609
|
+
return r(zn(e));
|
|
9271
9610
|
}
|
|
9272
|
-
var
|
|
9611
|
+
var Vn = {
|
|
9273
9612
|
name: "root",
|
|
9274
9613
|
description: "Mandatory top-level `root` wrapper for the Set system.",
|
|
9275
9614
|
output: {
|
|
@@ -9412,7 +9751,7 @@ var In = {
|
|
|
9412
9751
|
] }
|
|
9413
9752
|
};
|
|
9414
9753
|
// src/components/stack/stack.ts
|
|
9415
|
-
function
|
|
9754
|
+
function Hn({ align: e = "stretch", as: t = "div", children: n, gap: r = "md", id: i, responsive: o }) {
|
|
9416
9755
|
let s = a(i);
|
|
9417
9756
|
return {
|
|
9418
9757
|
kind: "element",
|
|
@@ -9430,10 +9769,10 @@ function Ln({ align: e = "stretch", as: t = "div", children: n, gap: r = "md", i
|
|
|
9430
9769
|
}] : []
|
|
9431
9770
|
};
|
|
9432
9771
|
}
|
|
9433
|
-
function
|
|
9434
|
-
return r(
|
|
9772
|
+
function Un(e) {
|
|
9773
|
+
return r(Hn(e));
|
|
9435
9774
|
}
|
|
9436
|
-
var
|
|
9775
|
+
var Wn = {
|
|
9437
9776
|
name: "stack",
|
|
9438
9777
|
description: "Use `stack` to lay out content in a vertical column.",
|
|
9439
9778
|
output: {
|
|
@@ -9553,7 +9892,7 @@ var zn = {
|
|
|
9553
9892
|
] }
|
|
9554
9893
|
};
|
|
9555
9894
|
// src/components/surface/surface.ts
|
|
9556
|
-
function
|
|
9895
|
+
function Gn({ children: e, contentTheme: t, id: n, variant: r = "default" }) {
|
|
9557
9896
|
return {
|
|
9558
9897
|
kind: "element",
|
|
9559
9898
|
tag: "div",
|
|
@@ -9569,10 +9908,10 @@ function Bn({ children: e, contentTheme: t, id: n, variant: r = "default" }) {
|
|
|
9569
9908
|
}]
|
|
9570
9909
|
};
|
|
9571
9910
|
}
|
|
9572
|
-
function
|
|
9573
|
-
return r(
|
|
9911
|
+
function Kn(e) {
|
|
9912
|
+
return r(Gn(e));
|
|
9574
9913
|
}
|
|
9575
|
-
var
|
|
9914
|
+
var qn = {
|
|
9576
9915
|
name: "surface",
|
|
9577
9916
|
description: "Use `surface` to set a colour context for nested content.",
|
|
9578
9917
|
output: {
|
|
@@ -9605,7 +9944,13 @@ var Hn = {
|
|
|
9605
9944
|
description: "Surface context.",
|
|
9606
9945
|
type: {
|
|
9607
9946
|
kind: "enum",
|
|
9608
|
-
values: [
|
|
9947
|
+
values: [
|
|
9948
|
+
"default",
|
|
9949
|
+
"brandSubtle",
|
|
9950
|
+
"brand",
|
|
9951
|
+
"brandSecondary",
|
|
9952
|
+
"brandTertiary"
|
|
9953
|
+
]
|
|
9609
9954
|
}
|
|
9610
9955
|
}
|
|
9611
9956
|
},
|
|
@@ -9647,7 +9992,7 @@ var Hn = {
|
|
|
9647
9992
|
] }
|
|
9648
9993
|
};
|
|
9649
9994
|
// src/components/switch/switch.ts
|
|
9650
|
-
function
|
|
9995
|
+
function Jn({ checked: e, description: t, disabled: n, id: r, label: i, name: o, size: s = "md", value: c }) {
|
|
9651
9996
|
let l = a(r), u = t?.trim();
|
|
9652
9997
|
if (u && !l) throw Error("id must be provided when description is provided.");
|
|
9653
9998
|
let d = u ? `${l}-description` : void 0, f = [{
|
|
@@ -9700,10 +10045,10 @@ function Un({ checked: e, description: t, disabled: n, id: r, label: i, name: o,
|
|
|
9700
10045
|
children: f
|
|
9701
10046
|
};
|
|
9702
10047
|
}
|
|
9703
|
-
function
|
|
9704
|
-
return r(
|
|
10048
|
+
function Yn(e) {
|
|
10049
|
+
return r(Jn(e));
|
|
9705
10050
|
}
|
|
9706
|
-
var
|
|
10051
|
+
var Xn = {
|
|
9707
10052
|
name: "switch",
|
|
9708
10053
|
description: "Use `switch` to let users instantly toggle a setting on or off.",
|
|
9709
10054
|
output: {
|
|
@@ -9879,7 +10224,7 @@ var Gn = {
|
|
|
9879
10224
|
] }
|
|
9880
10225
|
};
|
|
9881
10226
|
// src/components/textarea/textarea.ts
|
|
9882
|
-
function
|
|
10227
|
+
function Zn({ 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" }) {
|
|
9883
10228
|
let g = r.trim(), _ = t?.trim(), v = e !== !1 && e?.trim(), y = s?.trim(), b = m;
|
|
9884
10229
|
if (!g) throw Error("id must be a non-empty string.");
|
|
9885
10230
|
if (!i(g)) throw Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");
|
|
@@ -9939,10 +10284,10 @@ function Kn({ autocomplete: e, description: t, disabled: n, id: r, invalid: a, l
|
|
|
9939
10284
|
children: w
|
|
9940
10285
|
};
|
|
9941
10286
|
}
|
|
9942
|
-
function
|
|
9943
|
-
return r(
|
|
10287
|
+
function Qn(e) {
|
|
10288
|
+
return r(Zn(e));
|
|
9944
10289
|
}
|
|
9945
|
-
var
|
|
10290
|
+
var $n = {
|
|
9946
10291
|
name: "textarea",
|
|
9947
10292
|
description: "Use `textarea` to collect multiple lines of text from users.",
|
|
9948
10293
|
output: {
|
|
@@ -9975,7 +10320,7 @@ var Jn = {
|
|
|
9975
10320
|
}
|
|
9976
10321
|
},
|
|
9977
10322
|
description: {
|
|
9978
|
-
description: "Helper text shown below the textarea
|
|
10323
|
+
description: "Helper text shown below the textarea. When invalid, put the error message here.",
|
|
9979
10324
|
type: { kind: "string" }
|
|
9980
10325
|
},
|
|
9981
10326
|
disabled: {
|
|
@@ -10266,9 +10611,9 @@ var Jn = {
|
|
|
10266
10611
|
] }
|
|
10267
10612
|
};
|
|
10268
10613
|
// src/index.ts
|
|
10269
|
-
function
|
|
10270
|
-
M(),
|
|
10614
|
+
function er() {
|
|
10615
|
+
M(), ae(), le(), ve(), Ce(), Me(), Ie(), Ue(), Je();
|
|
10271
10616
|
}
|
|
10272
|
-
export { w as SET_ALERT_EVENT_BEFORE_DISMISS, T as SET_ALERT_EVENT_DISMISS, N as SET_ALERT_SPEC, C as SET_ALERT_TAG_NAME, st as SET_AVATAR_SPEC, ut as SET_BADGE_SPEC,
|
|
10617
|
+
export { w as SET_ALERT_EVENT_BEFORE_DISMISS, T as SET_ALERT_EVENT_DISMISS, N as SET_ALERT_SPEC, C as SET_ALERT_TAG_NAME, st as SET_AVATAR_SPEC, ut as SET_BADGE_SPEC, L as SET_BANNER_EVENT_BEFORE_DISMISS, R as SET_BANNER_EVENT_DISMISS, oe as SET_BANNER_SPEC, I as SET_BANNER_TAG_NAME, ht as SET_BLOCKQUOTE_SPEC, vt as SET_BOX_SPEC, S as SET_BUTTON_SPEC, xt as SET_CARD_SPEC, wt as SET_CHECKBOX_SPEC, Dt as SET_CONTAINER_SPEC, At as SET_DETAILS_SPEC, Ft as SET_DITHER_SPEC, Rt as SET_DIVIDER_SPEC, Oe as SET_EXPANDER_SPEC, Vt as SET_FIELDSET_SPEC, Wt as SET_FIGURE_SPEC, Xt as SET_GRID_ITEM_SPEC, Yt as SET_GRID_SPEC, $t as SET_HEADING_SPEC, l as SET_ICON_NAMES, p as SET_ICON_SPEC, ue as SET_IMAGE_SPEC, B as SET_IMAGE_TAG_NAME, nn as SET_INLINE_SPEC, on as SET_INPUT_SPEC, de as SET_LIGHTSWITCH_EVENT_CHANGE, ye as SET_LIGHTSWITCH_SPEC, H as SET_LIGHTSWITCH_STORAGE_KEY, V as SET_LIGHTSWITCH_TAG_NAME, te as SET_LINK_SPEC, yn as SET_LOGO_SPEC, be as SET_MENU_EVENT_CHOOSE, we as SET_MENU_SPEC, W as SET_MENU_TAG_NAME, Ne as SET_NAV_SPEC, G as SET_NAV_TAG_NAME, Sn as SET_PAGE_SPEC, Tn as SET_PANEL_SPEC, On as SET_PATTERN_SPEC, Mn as SET_POSTER_SPEC, Fn as SET_PROSE_SPEC, Rn as SET_RADIOS_SPEC, Le as SET_RANGE_SPEC, K as SET_RANGE_TAG_NAME, Vn as SET_ROOT_SPEC, We as SET_SIDEBAR_SPEC, q as SET_SIDEBAR_TAG_NAME, g as SET_SPINNER_SPEC, Wn as SET_STACK_SPEC, qn as SET_SURFACE_SPEC, Xn as SET_SWITCH_SPEC, $n as SET_TEXTAREA_SPEC, ft as SET_TEXT_SPEC, Ye as SET_VIDEO_SPEC, Y as SET_VIDEO_TAG_NAME, x as applySetButtonActivity, A as buildSetAlert, at as buildSetAvatar, ct as buildSetBadge, re as buildSetBanner, pt as buildSetBlockquote, gt as buildSetBox, y as buildSetButton, yt as buildSetCard, St as buildSetCheckbox, Tt as buildSetContainer, Ot as buildSetDetails, Nt as buildSetDither, It as buildSetDivider, Ee as buildSetExpander, zt as buildSetFieldset, Ht as buildSetFigure, Gt as buildSetGrid, qt as buildSetGridItem, Zt as buildSetHeading, d as buildSetIcon, se as buildSetImage, en as buildSetInline, rn as buildSetInput, ge as buildSetLightswitch, F as buildSetLink, _n as buildSetLogo, xe as buildSetMenu, Ae as buildSetNav, bn as buildSetPage, Cn as buildSetPanel, En as buildSetPattern, An as buildSetPoster, Nn as buildSetProse, In as buildSetRadios, Pe as buildSetRange, zn as buildSetRoot, Ve as buildSetSidebar, m as buildSetSpinner, Hn as buildSetStack, Gn as buildSetSurface, Jn as buildSetSwitch, Z as buildSetText, Zn as buildSetTextarea, Ge as buildSetVideo, M as defineSetAlert, ae as defineSetBanner, er as defineSetComponents, le as defineSetImage, ve as defineSetLightswitch, Ce as defineSetMenu, Me as defineSetNav, Ie as defineSetRange, Ue as defineSetSidebar, Je as defineSetVideo, Mt as ditherLevel, t as escapeHtml, Qe as getSetInitials, j as renderSetAlert, ot as renderSetAvatar, lt as renderSetBadge, ie as renderSetBanner, mt as renderSetBlockquote, _t as renderSetBox, b as renderSetButton, bt as renderSetCard, Ct as renderSetCheckbox, Et as renderSetContainer, kt as renderSetDetails, Pt as renderSetDither, Lt as renderSetDivider, De as renderSetExpander, Bt as renderSetFieldset, Ut as renderSetFigure, Kt as renderSetGrid, Jt as renderSetGridItem, Qt as renderSetHeading, f as renderSetIcon, ce as renderSetImage, tn as renderSetInline, an as renderSetInput, _e as renderSetLightswitch, ee as renderSetLink, vn as renderSetLogo, Se as renderSetMenu, je as renderSetNav, xn as renderSetPage, wn as renderSetPanel, Dn as renderSetPattern, jn as renderSetPoster, kn as renderSetPosterImage, Pn as renderSetProse, Ln as renderSetRadios, Fe as renderSetRange, Bn as renderSetRoot, He as renderSetSidebar, h as renderSetSpinner, Un as renderSetStack, Kn as renderSetSurface, Yn as renderSetSwitch, dt as renderSetText, Qn as renderSetTextarea, Ke as renderSetVideo, r as serializeSetNode };
|
|
10273
10618
|
|
|
10274
10619
|
//# sourceMappingURL=index.js.map
|