@ada-cx/lovelace 1.21.0 → 1.21.2
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/Carousel/Carousel.css.d.ts +2 -0
- package/dist/components/Carousel/Carousel.css.js +2 -2
- package/dist/components/Carousel/Carousel.css.js.map +1 -1
- package/dist/components/Carousel/Carousel.d.ts +4 -3
- package/dist/components/Carousel/Carousel.js +72 -70
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/Checkbox/Checkbox.css.d.ts +2 -2
- package/dist/components/Checkbox/Checkbox.css.js.map +1 -1
- package/dist/components/Input/Input.css.js.map +1 -1
- package/dist/components/Radio/Radio.css.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tokens/generated/tokens.d.ts +1 -1
- package/dist/tokens.css +4 -0
- package/package.json +1 -1
|
@@ -2,6 +2,8 @@ export declare const carouselRoot: string;
|
|
|
2
2
|
export declare const carouselTrack: string;
|
|
3
3
|
export declare const carouselItem: string;
|
|
4
4
|
export declare const carouselFooter: string;
|
|
5
|
+
export declare const carouselPrevious: string;
|
|
6
|
+
export declare const carouselNext: string;
|
|
5
7
|
export declare const carouselCounter: string;
|
|
6
8
|
export declare const carouselCounterNumber: string;
|
|
7
9
|
export declare const carouselVisuallyHidden: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
//#region src/components/Carousel/Carousel.css.ts
|
|
3
|
-
var e = "_1vler2p0", t = "_1vler2p1", n = "_1vler2p2", r = "_1vler2p3", i = "_1vler2p4", a = "_1vler2p5", o = "_1vler2p6";
|
|
3
|
+
var e = "_1vler2p0", t = "_1vler2p1", n = "_1vler2p2", r = "_1vler2p3", i = "_1vler2p4", a = "_1vler2p5", o = "_1vler2p6", s = "_1vler2p7", c = "_1vler2p8";
|
|
4
4
|
//#endregion
|
|
5
|
-
export {
|
|
5
|
+
export { o as carouselCounter, s as carouselCounterNumber, r as carouselFooter, n as carouselItem, a as carouselNext, i as carouselPrevious, e as carouselRoot, t as carouselTrack, c as carouselVisuallyHidden };
|
|
6
6
|
|
|
7
7
|
//# sourceMappingURL=Carousel.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Carousel.css.js","names":[],"sources":["../../../src/components/Carousel/Carousel.css.ts"],"sourcesContent":["import { style } from \"@vanilla-extract/css\";\nimport { typography } from \"../../styles/typography.js\";\nimport { t } from \"../../tokens/index.js\";\n\nexport const carouselRoot = style({\n\tdisplay: \"flex\",\n\tflexDirection: \"column\",\n\talignItems: \"stretch\",\n\tgap: t(\"gap-20\"),\n\tminWidth: 0,\n});\n\n// The block padding keeps a focused card's ring inside the scroll box, which\n// would otherwise clip it.\nexport const carouselTrack = style({\n\tdisplay: \"flex\",\n\tgap: t(\"gap-12\"),\n\tpaddingBlock: t(\"padding-4\"),\n\tpaddingInline: t(\"padding-12\"),\n\tscrollPaddingInline: t(\"padding-12\"),\n\toverflowX: \"auto\",\n\toverflowY: \"hidden\",\n\tscrollSnapType: \"x mandatory\",\n\tscrollbarWidth: \"none\",\n\tselectors: {\n\t\t\"&::-webkit-scrollbar\": { display: \"none\" },\n\t},\n});\n\n// The design's card is 280px. On a narrow column the item shrinks so the\n// cards beside it still peek in. A middle card centres, so both neighbours\n// show; the first and last cards meet the edges, so no end is left empty.\nexport const carouselItem = style({\n\tdisplay: \"flex\",\n\tflex: \"0 0 min(280px, 80%)\",\n\tminWidth: 0,\n\tscrollSnapAlign: \"center\",\n\tselectors: {\n\t\t\"&:first-child\": { scrollSnapAlign: \"start\" },\n\t\t\"&:last-child\": { scrollSnapAlign: \"end\" },\n\t},\n});\n\nexport const carouselFooter = style({\n\tdisplay: \"
|
|
1
|
+
{"version":3,"file":"Carousel.css.js","names":[],"sources":["../../../src/components/Carousel/Carousel.css.ts"],"sourcesContent":["import { style } from \"@vanilla-extract/css\";\nimport { typography } from \"../../styles/typography.js\";\nimport { t } from \"../../tokens/index.js\";\n\nexport const carouselRoot = style({\n\tdisplay: \"flex\",\n\tflexDirection: \"column\",\n\talignItems: \"stretch\",\n\tgap: t(\"gap-20\"),\n\tminWidth: 0,\n});\n\n// The block padding keeps a focused card's ring inside the scroll box, which\n// would otherwise clip it.\nexport const carouselTrack = style({\n\tdisplay: \"flex\",\n\tgap: t(\"gap-12\"),\n\tpaddingBlock: t(\"padding-4\"),\n\tpaddingInline: t(\"padding-12\"),\n\tscrollPaddingInline: t(\"padding-12\"),\n\toverflowX: \"auto\",\n\toverflowY: \"hidden\",\n\tscrollSnapType: \"x mandatory\",\n\tscrollbarWidth: \"none\",\n\tselectors: {\n\t\t\"&::-webkit-scrollbar\": { display: \"none\" },\n\t},\n});\n\n// The design's card is 280px. On a narrow column the item shrinks so the\n// cards beside it still peek in. A middle card centres, so both neighbours\n// show; the first and last cards meet the edges, so no end is left empty.\nexport const carouselItem = style({\n\tdisplay: \"flex\",\n\tflex: \"0 0 min(280px, 80%)\",\n\tminWidth: 0,\n\tscrollSnapAlign: \"center\",\n\tselectors: {\n\t\t\"&:first-child\": { scrollSnapAlign: \"start\" },\n\t\t\"&:last-child\": { scrollSnapAlign: \"end\" },\n\t},\n});\n\n// The side columns share the free space, so the counter stays in the middle\n// when an arrow hides at the first or the last slide.\nexport const carouselFooter = style({\n\tdisplay: \"grid\",\n\tgridTemplateColumns: \"1fr auto 1fr\",\n\talignItems: \"center\",\n});\n\nexport const carouselPrevious = style({\n\tgridColumn: 1,\n\tjustifySelf: \"end\",\n});\n\nexport const carouselNext = style({\n\tgridColumn: 3,\n\tjustifySelf: \"start\",\n});\n\nexport const carouselCounter = style({\n\t...typography(\"caption\"),\n\tgridColumn: 2,\n\tdisplay: \"flex\",\n\talignItems: \"center\",\n\tgap: t(\"gap-4\"),\n\tpaddingInline: t(\"padding-16\"),\n\tcolor: t(\"color-content-default\"),\n\tfontVariantNumeric: \"tabular-nums\",\n});\n\nexport const carouselCounterNumber = style({\n\tminWidth: \"24px\",\n\ttextAlign: \"center\",\n});\n\n// Live regions announce rendered text, not `aria-label`. The text must stay\n// out of a text selection over the transcript (EXP-1479).\nexport const carouselVisuallyHidden = style({\n\tposition: \"absolute\",\n\twidth: 1,\n\theight: 1,\n\tpadding: 0,\n\tmargin: -1,\n\toverflow: \"hidden\",\n\tclip: \"rect(0, 0, 0, 0)\",\n\twhiteSpace: \"nowrap\",\n\tborder: 0,\n\tuserSelect: \"none\",\n\tWebkitUserSelect: \"none\",\n});\n"],"mappings":""}
|
|
@@ -20,8 +20,9 @@ export interface CarouselProps {
|
|
|
20
20
|
/**
|
|
21
21
|
* A row of slides that scrolls sideways and snaps to each slide. When the
|
|
22
22
|
* slides overflow, a footer shows the previous and next buttons and the
|
|
23
|
-
* position as "1 / 3".
|
|
24
|
-
*
|
|
25
|
-
* the
|
|
23
|
+
* position as "1 / 3". The previous button hides at the first slide and the
|
|
24
|
+
* next button at the last. Keyboard focus on a partly hidden slide scrolls it
|
|
25
|
+
* in. Screen readers read the position, and a polite live region announces it
|
|
26
|
+
* when the user moves to another slide.
|
|
26
27
|
*/
|
|
27
28
|
export declare function Carousel({ children, label, previousLabel, nextLabel, positionLabel, positionAnnouncement, className, style, }: CarouselProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,149 +6,151 @@ import { IconButton as i } from "../IconButton/IconButton.js";
|
|
|
6
6
|
import { carouselRoot as a, carouselTrack as o } from "./Carousel.css.js";
|
|
7
7
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
8
|
import { Group as l, useLocale as u } from "react-aria-components";
|
|
9
|
-
import { Children as d, isValidElement as f, useEffect as p,
|
|
9
|
+
import { Children as d, isValidElement as f, useEffect as p, useLayoutEffect as m, useRef as h, useState as g } from "react";
|
|
10
10
|
//#region src/components/Carousel/Carousel.tsx
|
|
11
|
-
function
|
|
11
|
+
function _(e) {
|
|
12
12
|
return Array.from(e.children);
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function v(e, t, n, r, i) {
|
|
15
15
|
let a = e.getBoundingClientRect(), o = t.getBoundingClientRect(), s = getComputedStyle(e), c = Number.parseFloat(s.scrollPaddingInlineStart) || 0, l = Number.parseFloat(s.scrollPaddingInlineEnd) || 0, u = () => o.left - a.left - (i ? l : c), d = () => o.right - a.right + (i ? c : l);
|
|
16
16
|
return n === 0 ? i ? d() : u() : n === r - 1 ? i ? u() : d() : (o.left + o.right) / 2 - (a.left + a.right) / 2;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function ee(e, t) {
|
|
19
19
|
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect();
|
|
20
20
|
return r.left >= n.left - 1 && r.right <= n.right + 1;
|
|
21
21
|
}
|
|
22
22
|
function y(e, t) {
|
|
23
|
-
let n =
|
|
23
|
+
let n = _(e), r = e.scrollWidth - e.clientWidth;
|
|
24
24
|
if (n.length > 0 && r > 0 && Math.abs(e.scrollLeft) >= r - 1) return n.length - 1;
|
|
25
25
|
let i = 0, a = Infinity;
|
|
26
26
|
return n.forEach((r, o) => {
|
|
27
|
-
let s = Math.abs(
|
|
27
|
+
let s = Math.abs(v(e, r, o, n.length, t));
|
|
28
28
|
s < a && (i = o, a = s);
|
|
29
29
|
}), i;
|
|
30
30
|
}
|
|
31
31
|
function b(e) {
|
|
32
32
|
return typeof CSS > "u" || typeof CSS.supports != "function" || !CSS.supports("selector(:focus-visible)") || e.matches(":focus-visible");
|
|
33
33
|
}
|
|
34
|
-
var x = 600,
|
|
35
|
-
function
|
|
36
|
-
let
|
|
37
|
-
|
|
34
|
+
var x = 600, te = (e, t) => `${e} of ${t}`;
|
|
35
|
+
function S({ children: S, label: C, previousLabel: ne, nextLabel: re, positionLabel: w = te, positionAnnouncement: T = w, className: E, style: D }) {
|
|
36
|
+
let O = h(null), [k, A] = g(0), j = h(null), M = h(null), N = h(null), P = h(null), [ie, F] = g(!1), [ae, I] = g(null), { direction: L } = u(), R = L === "rtl", z = d.toArray(S), B = z.length, V = z.map((e) => f(e) ? String(e.key) : "").join("|"), H = () => {
|
|
37
|
+
M.current !== null && (clearTimeout(M.current), M.current = null);
|
|
38
|
+
}, U = () => {
|
|
39
|
+
H(), j.current = null;
|
|
40
|
+
}, W = () => {
|
|
41
|
+
let e = O.current;
|
|
42
|
+
j.current !== null && (U(), e && J(y(e, R)));
|
|
38
43
|
}, G = () => {
|
|
39
|
-
|
|
40
|
-
}, K = ()
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}, q = () => {
|
|
44
|
-
W(), P.current = setTimeout(K, x);
|
|
45
|
-
}, J = m(K);
|
|
46
|
-
J.current = K, p(() => {
|
|
47
|
-
let e = A.current;
|
|
44
|
+
H(), M.current = setTimeout(W, x);
|
|
45
|
+
}, K = h(W);
|
|
46
|
+
K.current = W, p(() => {
|
|
47
|
+
let e = O.current;
|
|
48
48
|
if (!e) return;
|
|
49
|
-
let t = () =>
|
|
49
|
+
let t = () => K.current();
|
|
50
50
|
return e.addEventListener("scrollend", t), () => {
|
|
51
|
-
e.removeEventListener("scrollend", t),
|
|
51
|
+
e.removeEventListener("scrollend", t), M.current !== null && clearTimeout(M.current);
|
|
52
52
|
};
|
|
53
53
|
}, []), p(() => {
|
|
54
|
-
let e =
|
|
54
|
+
let e = O.current;
|
|
55
55
|
if (!e) return;
|
|
56
|
-
let t = () =>
|
|
56
|
+
let t = () => F(e.scrollWidth > e.clientWidth);
|
|
57
57
|
if (t(), typeof ResizeObserver > "u") return;
|
|
58
58
|
let n = new ResizeObserver(t);
|
|
59
59
|
n.observe(e);
|
|
60
|
-
for (let t of
|
|
60
|
+
for (let t of _(e)) n.observe(t);
|
|
61
61
|
return () => n.disconnect();
|
|
62
|
-
}, [
|
|
63
|
-
let
|
|
64
|
-
e !==
|
|
65
|
-
},
|
|
66
|
-
|
|
62
|
+
}, [V]);
|
|
63
|
+
let q = Math.min(k, Math.max(B - 1, 0)), oe = ae === V, J = (e) => {
|
|
64
|
+
e !== q && I(V), A(e);
|
|
65
|
+
}, Y = q > 0, X = q < B - 1, Z = O.current?.ownerDocument.activeElement, Q = null;
|
|
66
|
+
Z && Z === N.current && !Y ? Q = P : Z && Z === P.current && !X && (Q = N), m(() => {
|
|
67
|
+
Q?.current?.focus();
|
|
68
|
+
});
|
|
69
|
+
let $ = (e) => {
|
|
70
|
+
let t = O.current, n = t ? _(t)[e] : void 0;
|
|
67
71
|
if (!t || !n) return;
|
|
68
|
-
let i = t.scrollLeft +
|
|
72
|
+
let i = t.scrollLeft + v(t, n, e, _(t).length, R);
|
|
69
73
|
typeof t.scrollTo == "function" ? t.scrollTo({
|
|
70
74
|
left: i,
|
|
71
75
|
behavior: r() ? "instant" : "smooth"
|
|
72
|
-
}) : t.scrollLeft = i,
|
|
76
|
+
}) : t.scrollLeft = i, j.current = e, J(e);
|
|
73
77
|
};
|
|
74
78
|
return /* @__PURE__ */ c("div", {
|
|
75
|
-
className: e(a,
|
|
76
|
-
style:
|
|
79
|
+
className: e(a, E),
|
|
80
|
+
style: D,
|
|
77
81
|
children: [/* @__PURE__ */ s(l, {
|
|
78
|
-
ref:
|
|
79
|
-
"aria-label":
|
|
82
|
+
ref: O,
|
|
83
|
+
"aria-label": C,
|
|
80
84
|
className: o,
|
|
81
|
-
onPointerDown:
|
|
82
|
-
onTouchStart:
|
|
83
|
-
onWheel:
|
|
85
|
+
onPointerDown: U,
|
|
86
|
+
onTouchStart: U,
|
|
87
|
+
onWheel: U,
|
|
84
88
|
onFocus: (e) => {
|
|
85
|
-
let t = e.currentTarget, n =
|
|
86
|
-
r && b(e.target) && !
|
|
89
|
+
let t = e.currentTarget, n = _(t).findIndex((t) => t.contains(e.target)), r = _(t)[n];
|
|
90
|
+
r && b(e.target) && !ee(t, r) && $(n);
|
|
87
91
|
},
|
|
88
92
|
onScroll: (e) => {
|
|
89
|
-
let t = y(e.currentTarget,
|
|
90
|
-
if (
|
|
91
|
-
t ===
|
|
93
|
+
let t = y(e.currentTarget, R);
|
|
94
|
+
if (j.current !== null) {
|
|
95
|
+
t === j.current ? U() : G();
|
|
92
96
|
return;
|
|
93
97
|
}
|
|
94
|
-
|
|
98
|
+
J(t);
|
|
95
99
|
},
|
|
96
|
-
children:
|
|
97
|
-
}),
|
|
100
|
+
children: S
|
|
101
|
+
}), B > 1 && ie && /* @__PURE__ */ c("div", {
|
|
98
102
|
className: "_1vler2p3",
|
|
99
103
|
children: [
|
|
100
|
-
/* @__PURE__ */ s(i, {
|
|
101
|
-
|
|
104
|
+
Y && /* @__PURE__ */ s(i, {
|
|
105
|
+
ref: N,
|
|
106
|
+
label: ne,
|
|
102
107
|
variant: "tertiary",
|
|
103
108
|
size: "xs",
|
|
104
|
-
"
|
|
105
|
-
onPress: () =>
|
|
106
|
-
|
|
107
|
-
},
|
|
108
|
-
children: s(B ? n : t, {})
|
|
109
|
+
className: "_1vler2p4",
|
|
110
|
+
onPress: () => $(q - 1),
|
|
111
|
+
children: s(R ? n : t, {})
|
|
109
112
|
}),
|
|
110
113
|
/* @__PURE__ */ c("div", {
|
|
111
114
|
"aria-hidden": "true",
|
|
112
115
|
"data-testid": "carousel-position",
|
|
113
|
-
className: "
|
|
116
|
+
className: "_1vler2p6",
|
|
114
117
|
children: [
|
|
115
118
|
/* @__PURE__ */ s("span", {
|
|
116
|
-
className: "
|
|
117
|
-
children:
|
|
119
|
+
className: "_1vler2p7",
|
|
120
|
+
children: q + 1
|
|
118
121
|
}),
|
|
119
122
|
/* @__PURE__ */ s("span", { children: "/" }),
|
|
120
123
|
/* @__PURE__ */ s("span", {
|
|
121
|
-
className: "
|
|
122
|
-
children:
|
|
124
|
+
className: "_1vler2p7",
|
|
125
|
+
children: B
|
|
123
126
|
})
|
|
124
127
|
]
|
|
125
128
|
}),
|
|
126
129
|
/* @__PURE__ */ s("span", {
|
|
127
|
-
className: "
|
|
128
|
-
children:
|
|
130
|
+
className: "_1vler2p8",
|
|
131
|
+
children: w(q + 1, B)
|
|
129
132
|
}),
|
|
130
133
|
/* @__PURE__ */ s("span", {
|
|
131
|
-
className: "
|
|
134
|
+
className: "_1vler2p8",
|
|
132
135
|
role: "status",
|
|
133
136
|
"aria-live": "polite",
|
|
134
137
|
"aria-atomic": "true",
|
|
135
|
-
children:
|
|
138
|
+
children: oe ? T(q + 1, B) : ""
|
|
136
139
|
}),
|
|
137
|
-
/* @__PURE__ */ s(i, {
|
|
138
|
-
|
|
140
|
+
X && /* @__PURE__ */ s(i, {
|
|
141
|
+
ref: P,
|
|
142
|
+
label: re,
|
|
139
143
|
variant: "tertiary",
|
|
140
144
|
size: "xs",
|
|
141
|
-
"
|
|
142
|
-
onPress: () =>
|
|
143
|
-
|
|
144
|
-
},
|
|
145
|
-
children: s(B ? t : n, {})
|
|
145
|
+
className: "_1vler2p5",
|
|
146
|
+
onPress: () => $(q + 1),
|
|
147
|
+
children: s(R ? t : n, {})
|
|
146
148
|
})
|
|
147
149
|
]
|
|
148
150
|
})]
|
|
149
151
|
});
|
|
150
152
|
}
|
|
151
153
|
//#endregion
|
|
152
|
-
export {
|
|
154
|
+
export { S as Carousel };
|
|
153
155
|
|
|
154
156
|
//# sourceMappingURL=Carousel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Carousel.js","names":[],"sources":["../../../src/components/Carousel/Carousel.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode } from \"react\";\nimport { Children, isValidElement, useEffect, useRef, useState } from \"react\";\nimport { Group, useLocale } from \"react-aria-components\";\nimport { readPrefersReducedMotion } from \"../../hooks/usePrefersReducedMotion.js\";\nimport { cx } from \"../../utils/cx.js\";\nimport { ChevronLeft } from \"../Icon/icons/ChevronLeft.js\";\nimport { ChevronRight } from \"../Icon/icons/ChevronRight.js\";\nimport { IconButton } from \"../IconButton/index.js\";\nimport {\n\tcarouselCounter,\n\tcarouselCounterNumber,\n\tcarouselFooter,\n\tcarouselRoot,\n\tcarouselTrack,\n\tcarouselVisuallyHidden,\n} from \"./Carousel.css.js\";\n\nexport interface CarouselProps {\n\t/** The slides, each a `CarouselItem`. */\n\tchildren?: ReactNode;\n\t/** Accessible name of the group of slides. */\n\tlabel: string;\n\t/** Accessible name of the previous-slide button. */\n\tpreviousLabel: string;\n\t/** Accessible name of the next-slide button. */\n\tnextLabel: string;\n\t/** Position text for screen readers, such as \"Option 2 of 3\". `current`\n\t * counts from 1. The default is \"2 of 3\". */\n\tpositionLabel?: (current: number, total: number) => string;\n\t/** Text announced when the user moves to another slide. The default is\n\t * `positionLabel`. */\n\tpositionAnnouncement?: (current: number, total: number) => string;\n\tclassName?: string;\n\tstyle?: CSSProperties;\n}\n\nfunction itemsOf(track: HTMLElement): HTMLElement[] {\n\treturn Array.from(track.children) as HTMLElement[];\n}\n\n/** How far the track must scroll for `item` to sit where it snaps: the first\n * item at the start edge, the last at the end edge and any other in the\n * middle. Physical pixels, so it adds to `scrollLeft` in either direction. */\nfunction offsetToSnap(\n\ttrack: HTMLElement,\n\titem: HTMLElement,\n\tindex: number,\n\tcount: number,\n\tisRtl: boolean,\n): number {\n\tconst trackRect = track.getBoundingClientRect();\n\tconst itemRect = item.getBoundingClientRect();\n\tconst style = getComputedStyle(track);\n\tconst paddingStart = Number.parseFloat(style.scrollPaddingInlineStart) || 0;\n\tconst paddingEnd = Number.parseFloat(style.scrollPaddingInlineEnd) || 0;\n\tconst left = () =>\n\t\titemRect.left - trackRect.left - (isRtl ? paddingEnd : paddingStart);\n\tconst right = () =>\n\t\titemRect.right - trackRect.right + (isRtl ? paddingStart : paddingEnd);\n\n\tif (index === 0) {\n\t\treturn isRtl ? right() : left();\n\t}\n\tif (index === count - 1) {\n\t\treturn isRtl ? left() : right();\n\t}\n\treturn (\n\t\t(itemRect.left + itemRect.right) / 2 -\n\t\t(trackRect.left + trackRect.right) / 2\n\t);\n}\n\nfunction isFullyVisible(track: HTMLElement, item: HTMLElement): boolean {\n\tconst trackRect = track.getBoundingClientRect();\n\tconst itemRect = item.getBoundingClientRect();\n\treturn (\n\t\titemRect.left >= trackRect.left - 1 && itemRect.right <= trackRect.right + 1\n\t);\n}\n\nfunction currentIndexOf(track: HTMLElement, isRtl: boolean): number {\n\tconst items = itemsOf(track);\n\t// A track short enough that the last item meets the end edge before it is\n\t// the closest snap point still has to count the end of its range as the last\n\t// item.\n\tconst maxScroll = track.scrollWidth - track.clientWidth;\n\tif (\n\t\titems.length > 0 &&\n\t\tmaxScroll > 0 &&\n\t\tMath.abs(track.scrollLeft) >= maxScroll - 1\n\t) {\n\t\treturn items.length - 1;\n\t}\n\tlet closest = 0;\n\tlet closestDistance = Number.POSITIVE_INFINITY;\n\titems.forEach((item, index) => {\n\t\tconst distance = Math.abs(\n\t\t\toffsetToSnap(track, item, index, items.length, isRtl),\n\t\t);\n\t\tif (distance < closestDistance) {\n\t\t\tclosest = index;\n\t\t\tclosestDistance = distance;\n\t\t}\n\t});\n\treturn closest;\n}\n\n// React Aria focuses a pressable card on pointerdown. A scroll at that moment\n// moves the card from under the finger and cancels the press, so only keyboard\n// focus scrolls. Where `:focus-visible` is not supported, as in jsdom, every\n// focus scrolls.\nfunction isKeyboardFocus(element: Element): boolean {\n\tif (\n\t\ttypeof CSS === \"undefined\" ||\n\t\ttypeof CSS.supports !== \"function\" ||\n\t\t!CSS.supports(\"selector(:focus-visible)\")\n\t) {\n\t\treturn true;\n\t}\n\treturn element.matches(\":focus-visible\");\n}\n\n// Safari before 18.2 has no `scrollend`, so a quiet period after the last\n// scroll event also counts as the end of a button scroll.\nconst SCROLL_SETTLE_MS = 600;\n\nconst defaultPositionLabel = (current: number, total: number) =>\n\t`${current} of ${total}`;\n\n/**\n * A row of slides that scrolls sideways and snaps to each slide. When the\n * slides overflow, a footer shows the previous and next buttons and the\n * position as \"1 / 3\". Keyboard focus on a partly hidden slide scrolls it in.\n * Screen readers read the position, and a polite live region announces it when\n * the user moves to another slide.\n */\nexport function Carousel({\n\tchildren,\n\tlabel,\n\tpreviousLabel,\n\tnextLabel,\n\tpositionLabel = defaultPositionLabel,\n\tpositionAnnouncement = positionLabel,\n\tclassName,\n\tstyle,\n}: CarouselProps) {\n\tconst trackRef = useRef<HTMLDivElement>(null);\n\tconst [currentIndex, setCurrentIndex] = useState(0);\n\t// A button scroll animates past the slides in between. Until it lands, the\n\t// track position names one of those as current, and a second press would\n\t// start from it instead of from the slide the first press asked for.\n\tconst targetIndexRef = useRef<number | null>(null);\n\tconst settleTimerRef = useRef<ReturnType<typeof setTimeout> | null>(null);\n\tconst [overflows, setOverflows] = useState(false);\n\tconst [movedKeys, setMovedKeys] = useState<string | null>(null);\n\tconst { direction } = useLocale();\n\tconst isRtl = direction === \"rtl\";\n\tconst slides = Children.toArray(children);\n\tconst count = slides.length;\n\tconst slideKeys = slides\n\t\t.map((slide) => (isValidElement(slide) ? String(slide.key) : \"\"))\n\t\t.join(\"|\");\n\n\tconst clearSettleTimer = () => {\n\t\tif (settleTimerRef.current !== null) {\n\t\t\tclearTimeout(settleTimerRef.current);\n\t\t\tsettleTimerRef.current = null;\n\t\t}\n\t};\n\tconst releaseTarget = () => {\n\t\tclearSettleTimer();\n\t\ttargetIndexRef.current = null;\n\t};\n\t// The track cannot always align the target slide, for example when the\n\t// slides after it fit beside it. The scroll then stops short of the target,\n\t// so the lock ends with the scroll and the counter takes the real position.\n\tconst settleTarget = () => {\n\t\tconst track = trackRef.current;\n\t\tif (targetIndexRef.current === null) {\n\t\t\treturn;\n\t\t}\n\t\treleaseTarget();\n\t\tif (track) {\n\t\t\tmoveTo(currentIndexOf(track, isRtl));\n\t\t}\n\t};\n\tconst scheduleSettle = () => {\n\t\tclearSettleTimer();\n\t\tsettleTimerRef.current = setTimeout(settleTarget, SCROLL_SETTLE_MS);\n\t};\n\tconst settleTargetRef = useRef(settleTarget);\n\tsettleTargetRef.current = settleTarget;\n\n\tuseEffect(() => {\n\t\tconst track = trackRef.current;\n\t\tif (!track) {\n\t\t\treturn;\n\t\t}\n\t\tconst onScrollEnd = () => settleTargetRef.current();\n\t\ttrack.addEventListener(\"scrollend\", onScrollEnd);\n\t\treturn () => {\n\t\t\ttrack.removeEventListener(\"scrollend\", onScrollEnd);\n\t\t\tif (settleTimerRef.current !== null) {\n\t\t\t\tclearTimeout(settleTimerRef.current);\n\t\t\t}\n\t\t};\n\t}, []);\n\n\t// biome-ignore lint/correctness/useExhaustiveDependencies: slideKeys isn't read here, but a new set of slides, even one of the same length, must be measured and observed again.\n\tuseEffect(() => {\n\t\tconst track = trackRef.current;\n\t\tif (!track) {\n\t\t\treturn;\n\t\t}\n\t\tconst measure = () => setOverflows(track.scrollWidth > track.clientWidth);\n\t\tmeasure();\n\t\t// Absent in jsdom, so the measurement above has to stand on its own.\n\t\tif (typeof ResizeObserver === \"undefined\") {\n\t\t\treturn;\n\t\t}\n\t\tconst observer = new ResizeObserver(measure);\n\t\tobserver.observe(track);\n\t\tfor (const item of itemsOf(track)) {\n\t\t\tobserver.observe(item);\n\t\t}\n\t\treturn () => observer.disconnect();\n\t}, [slideKeys]);\n\n\t// A new set of slides can be shorter than the position the track was at.\n\tconst shownIndex = Math.min(currentIndex, Math.max(count - 1, 0));\n\t// The live region stays empty until the user moves within this set of\n\t// slides, so a new message or a new set does not also announce a position.\n\tconst hasMoved = movedKeys === slideKeys;\n\tconst moveTo = (index: number) => {\n\t\tif (index !== shownIndex) {\n\t\t\tsetMovedKeys(slideKeys);\n\t\t}\n\t\tsetCurrentIndex(index);\n\t};\n\tconst hasPrevious = shownIndex > 0;\n\tconst hasNext = shownIndex < count - 1;\n\n\tconst scrollToItem = (index: number) => {\n\t\tconst track = trackRef.current;\n\t\tconst item = track ? itemsOf(track)[index] : undefined;\n\t\tif (!track || !item) {\n\t\t\treturn;\n\t\t}\n\t\tconst left =\n\t\t\ttrack.scrollLeft +\n\t\t\toffsetToSnap(track, item, index, itemsOf(track).length, isRtl);\n\t\tif (typeof track.scrollTo === \"function\") {\n\t\t\ttrack.scrollTo({\n\t\t\t\tleft,\n\t\t\t\tbehavior: readPrefersReducedMotion() ? \"instant\" : \"smooth\",\n\t\t\t});\n\t\t} else {\n\t\t\ttrack.scrollLeft = left;\n\t\t}\n\t\ttargetIndexRef.current = index;\n\t\tmoveTo(index);\n\t};\n\n\treturn (\n\t\t<div className={cx(carouselRoot, className)} style={style}>\n\t\t\t<Group\n\t\t\t\tref={trackRef}\n\t\t\t\taria-label={label}\n\t\t\t\tclassName={carouselTrack}\n\t\t\t\tonPointerDown={releaseTarget}\n\t\t\t\tonTouchStart={releaseTarget}\n\t\t\t\tonWheel={releaseTarget}\n\t\t\t\tonFocus={(event) => {\n\t\t\t\t\tconst track = event.currentTarget;\n\t\t\t\t\tconst index = itemsOf(track).findIndex((item) =>\n\t\t\t\t\t\titem.contains(event.target),\n\t\t\t\t\t);\n\t\t\t\t\tconst item = itemsOf(track)[index];\n\t\t\t\t\tif (\n\t\t\t\t\t\titem &&\n\t\t\t\t\t\tisKeyboardFocus(event.target) &&\n\t\t\t\t\t\t!isFullyVisible(track, item)\n\t\t\t\t\t) {\n\t\t\t\t\t\tscrollToItem(index);\n\t\t\t\t\t}\n\t\t\t\t}}\n\t\t\t\tonScroll={(event) => {\n\t\t\t\t\tconst index = currentIndexOf(event.currentTarget, isRtl);\n\t\t\t\t\tif (targetIndexRef.current !== null) {\n\t\t\t\t\t\tif (index === targetIndexRef.current) {\n\t\t\t\t\t\t\treleaseTarget();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tscheduleSettle();\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tmoveTo(index);\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</Group>\n\t\t\t{count > 1 && overflows && (\n\t\t\t\t<div className={carouselFooter}>\n\t\t\t\t\t<IconButton\n\t\t\t\t\t\tlabel={previousLabel}\n\t\t\t\t\t\tvariant=\"tertiary\"\n\t\t\t\t\t\tsize=\"xs\"\n\t\t\t\t\t\t// aria-disabled keeps the button focusable at the end, so focus\n\t\t\t\t\t\t// does not jump away after the last press.\n\t\t\t\t\t\taria-disabled={!hasPrevious || undefined}\n\t\t\t\t\t\tonPress={() => {\n\t\t\t\t\t\t\tif (hasPrevious) {\n\t\t\t\t\t\t\t\tscrollToItem(shownIndex - 1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t{isRtl ? <ChevronRight /> : <ChevronLeft />}\n\t\t\t\t\t</IconButton>\n\t\t\t\t\t<div\n\t\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\t\tdata-testid=\"carousel-position\"\n\t\t\t\t\t\tclassName={carouselCounter}\n\t\t\t\t\t>\n\t\t\t\t\t\t<span className={carouselCounterNumber}>{shownIndex + 1}</span>\n\t\t\t\t\t\t<span>/</span>\n\t\t\t\t\t\t<span className={carouselCounterNumber}>{count}</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t<span className={carouselVisuallyHidden}>\n\t\t\t\t\t\t{positionLabel(shownIndex + 1, count)}\n\t\t\t\t\t</span>\n\t\t\t\t\t<span\n\t\t\t\t\t\tclassName={carouselVisuallyHidden}\n\t\t\t\t\t\trole=\"status\"\n\t\t\t\t\t\taria-live=\"polite\"\n\t\t\t\t\t\taria-atomic=\"true\"\n\t\t\t\t\t>\n\t\t\t\t\t\t{hasMoved ? positionAnnouncement(shownIndex + 1, count) : \"\"}\n\t\t\t\t\t</span>\n\t\t\t\t\t<IconButton\n\t\t\t\t\t\tlabel={nextLabel}\n\t\t\t\t\t\tvariant=\"tertiary\"\n\t\t\t\t\t\tsize=\"xs\"\n\t\t\t\t\t\taria-disabled={!hasNext || undefined}\n\t\t\t\t\t\tonPress={() => {\n\t\t\t\t\t\t\tif (hasNext) {\n\t\t\t\t\t\t\t\tscrollToItem(shownIndex + 1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t{isRtl ? <ChevronLeft /> : <ChevronRight />}\n\t\t\t\t\t</IconButton>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;;;;;;;AAoCA,SAAS,EAAQ,GAAmC;CACnD,OAAO,MAAM,KAAK,EAAM,QAAQ;AACjC;AAKA,SAAS,EACR,GACA,GACA,GACA,GACA,GACS;CACT,IAAM,IAAY,EAAM,sBAAsB,GACxC,IAAW,EAAK,sBAAsB,GACtC,IAAQ,iBAAiB,CAAK,GAC9B,IAAe,OAAO,WAAW,EAAM,wBAAwB,KAAK,GACpE,IAAa,OAAO,WAAW,EAAM,sBAAsB,KAAK,GAChE,UACL,EAAS,OAAO,EAAU,QAAQ,IAAQ,IAAa,IAClD,UACL,EAAS,QAAQ,EAAU,SAAS,IAAQ,IAAe;CAQ5D,OANI,MAAU,IACN,IAAQ,EAAM,IAAI,EAAK,IAE3B,MAAU,IAAQ,IACd,IAAQ,EAAK,IAAI,EAAM,KAG7B,EAAS,OAAO,EAAS,SAAS,KAClC,EAAU,OAAO,EAAU,SAAS;AAEvC;AAEA,SAAS,EAAe,GAAoB,GAA4B;CACvE,IAAM,IAAY,EAAM,sBAAsB,GACxC,IAAW,EAAK,sBAAsB;CAC5C,OACC,EAAS,QAAQ,EAAU,OAAO,KAAK,EAAS,SAAS,EAAU,QAAQ;AAE7E;AAEA,SAAS,EAAe,GAAoB,GAAwB;CACnE,IAAM,IAAQ,EAAQ,CAAK,GAIrB,IAAY,EAAM,cAAc,EAAM;CAC5C,IACC,EAAM,SAAS,KACf,IAAY,KACZ,KAAK,IAAI,EAAM,UAAU,KAAK,IAAY,GAE1C,OAAO,EAAM,SAAS;CAEvB,IAAI,IAAU,GACV,IAAkB;CAUtB,OATA,EAAM,SAAS,GAAM,MAAU;EAC9B,IAAM,IAAW,KAAK,IACrB,EAAa,GAAO,GAAM,GAAO,EAAM,QAAQ,CAAK,CACrD;EACA,AAAI,IAAW,MACd,IAAU,GACV,IAAkB;CAEpB,CAAC,GACM;AACR;AAMA,SAAS,EAAgB,GAA2B;CAQnD,OANC,OAAO,MAAQ,OACf,OAAO,IAAI,YAAa,cACxB,CAAC,IAAI,SAAS,0BAA0B,KAIlC,EAAQ,QAAQ,gBAAgB;AACxC;AAIA,IAAM,IAAmB,KAEnB,KAAwB,GAAiB,MAC9C,GAAG,EAAQ,MAAM;AASlB,SAAgB,EAAS,EACxB,aACA,UACA,kBACA,eACA,mBAAgB,GAChB,0BAAuB,GACvB,cACA,YACiB;CACjB,IAAM,IAAW,EAAuB,IAAI,GACtC,CAAC,GAAc,KAAmB,EAAS,CAAC,GAI5C,IAAiB,EAAsB,IAAI,GAC3C,IAAiB,EAA6C,IAAI,GAClE,CAAC,GAAW,KAAgB,EAAS,EAAK,GAC1C,CAAC,GAAW,KAAgB,EAAwB,IAAI,GACxD,EAAE,iBAAc,EAAU,GAC1B,IAAQ,MAAc,OACtB,IAAS,EAAS,QAAQ,CAAQ,GAClC,IAAQ,EAAO,QACf,IAAY,EAChB,KAAK,MAAW,EAAe,CAAK,IAAI,OAAO,EAAM,GAAG,IAAI,EAAG,CAAC,CAChE,KAAK,GAAG,GAEJ,UAAyB;EAC9B,AAAI,EAAe,YAAY,SAC9B,aAAa,EAAe,OAAO,GACnC,EAAe,UAAU;CAE3B,GACM,UAAsB;EAE3B,AADA,EAAiB,GACjB,EAAe,UAAU;CAC1B,GAIM,UAAqB;EAC1B,IAAM,IAAQ,EAAS;EACnB,EAAe,YAAY,SAG/B,EAAc,GACV,KACH,EAAO,EAAe,GAAO,CAAK,CAAC;CAErC,GACM,UAAuB;EAE5B,AADA,EAAiB,GACjB,EAAe,UAAU,WAAW,GAAc,CAAgB;CACnE,GACM,IAAkB,EAAO,CAAY;CAmB3C,AAlBA,EAAgB,UAAU,GAE1B,QAAgB;EACf,IAAM,IAAQ,EAAS;EACvB,IAAI,CAAC,GACJ;EAED,IAAM,UAAoB,EAAgB,QAAQ;EAElD,OADA,EAAM,iBAAiB,aAAa,CAAW,SAClC;GAEZ,AADA,EAAM,oBAAoB,aAAa,CAAW,GAC9C,EAAe,YAAY,QAC9B,aAAa,EAAe,OAAO;EAErC;CACD,GAAG,CAAC,CAAC,GAGL,QAAgB;EACf,IAAM,IAAQ,EAAS;EACvB,IAAI,CAAC,GACJ;EAED,IAAM,UAAgB,EAAa,EAAM,cAAc,EAAM,WAAW;EAGxE,IAFA,EAAQ,GAEJ,OAAO,iBAAmB,KAC7B;EAED,IAAM,IAAW,IAAI,eAAe,CAAO;EAC3C,EAAS,QAAQ,CAAK;EACtB,KAAK,IAAM,KAAQ,EAAQ,CAAK,GAC/B,EAAS,QAAQ,CAAI;EAEtB,aAAa,EAAS,WAAW;CAClC,GAAG,CAAC,CAAS,CAAC;CAGd,IAAM,IAAa,KAAK,IAAI,GAAc,KAAK,IAAI,IAAQ,GAAG,CAAC,CAAC,GAG1D,KAAW,MAAc,GACzB,KAAU,MAAkB;EAIjC,AAHI,MAAU,KACb,EAAa,CAAS,GAEvB,EAAgB,CAAK;CACtB,GACM,IAAc,IAAa,GAC3B,IAAU,IAAa,IAAQ,GAE/B,KAAgB,MAAkB;EACvC,IAAM,IAAQ,EAAS,SACjB,IAAO,IAAQ,EAAQ,CAAK,CAAC,CAAC,KAAS,KAAA;EAC7C,IAAI,CAAC,KAAS,CAAC,GACd;EAED,IAAM,IACL,EAAM,aACN,EAAa,GAAO,GAAM,GAAO,EAAQ,CAAK,CAAC,CAAC,QAAQ,CAAK;EAU9D,AATI,OAAO,EAAM,YAAa,aAC7B,EAAM,SAAS;GACd;GACA,UAAU,EAAyB,IAAI,YAAY;EACpD,CAAC,IAED,EAAM,aAAa,GAEpB,EAAe,UAAU,GACzB,EAAO,CAAK;CACb;CAEA,OACC,kBAAC,OAAD;EAAK,WAAW,EAAG,GAAc,CAAS;EAAU;YAApD,CACC,kBAAC,GAAD;GACC,KAAK;GACL,cAAY;GACZ,WAAW;GACX,eAAe;GACf,cAAc;GACd,SAAS;GACT,UAAU,MAAU;IACnB,IAAM,IAAQ,EAAM,eACd,IAAQ,EAAQ,CAAK,CAAC,CAAC,WAAW,MACvC,EAAK,SAAS,EAAM,MAAM,CAC3B,GACM,IAAO,EAAQ,CAAK,CAAC,CAAC;IAC5B,AACC,KACA,EAAgB,EAAM,MAAM,KAC5B,CAAC,EAAe,GAAO,CAAI,KAE3B,EAAa,CAAK;GAEpB;GACA,WAAW,MAAU;IACpB,IAAM,IAAQ,EAAe,EAAM,eAAe,CAAK;IACvD,IAAI,EAAe,YAAY,MAAM;KACpC,AAAI,MAAU,EAAe,UAC5B,EAAc,IAEd,EAAe;KAEhB;IACD;IACA,EAAO,CAAK;GACb;GAEC;EACK,CAAA,GACN,IAAQ,KAAK,KACb,kBAAC,OAAD;GAAK,WAAA;aAAL;IACC,kBAAC,GAAD;KACC,OAAO;KACP,SAAQ;KACR,MAAK;KAGL,iBAAe,CAAC,KAAe,KAAA;KAC/B,eAAe;MACd,AAAI,KACH,EAAa,IAAa,CAAC;KAE7B;eAES,EAAR,IAAS,IAAmB,GAApB,CAAe,CAAkB;IAC/B,CAAA;IACZ,kBAAC,OAAD;KACC,eAAY;KACZ,eAAY;KACZ,WAAA;eAHD;MAKC,kBAAC,QAAD;OAAM,WAAA;iBAAmC,IAAa;MAAQ,CAAA;MAC9D,kBAAC,QAAD,EAAA,UAAM,IAAO,CAAA;MACb,kBAAC,QAAD;OAAM,WAAA;iBAAmC;MAAY,CAAA;KACjD;;IACL,kBAAC,QAAD;KAAM,WAAA;eACJ,EAAc,IAAa,GAAG,CAAK;IAC/B,CAAA;IACN,kBAAC,QAAD;KACC,WAAA;KACA,MAAK;KACL,aAAU;KACV,eAAY;eAEX,KAAW,EAAqB,IAAa,GAAG,CAAK,IAAI;IACrD,CAAA;IACN,kBAAC,GAAD;KACC,OAAO;KACP,SAAQ;KACR,MAAK;KACL,iBAAe,CAAC,KAAW,KAAA;KAC3B,eAAe;MACd,AAAI,KACH,EAAa,IAAa,CAAC;KAE7B;eAES,EAAR,IAAS,IAAkB,GAAnB,CAAc,CAAmB;IAC/B,CAAA;GACR;IAEF;;AAEP"}
|
|
1
|
+
{"version":3,"file":"Carousel.js","names":[],"sources":["../../../src/components/Carousel/Carousel.tsx"],"sourcesContent":["import type { CSSProperties, ReactNode } from \"react\";\nimport {\n\tChildren,\n\tisValidElement,\n\tuseEffect,\n\tuseLayoutEffect,\n\tuseRef,\n\tuseState,\n} from \"react\";\nimport { Group, useLocale } from \"react-aria-components\";\nimport { readPrefersReducedMotion } from \"../../hooks/usePrefersReducedMotion.js\";\nimport { cx } from \"../../utils/cx.js\";\nimport { ChevronLeft } from \"../Icon/icons/ChevronLeft.js\";\nimport { ChevronRight } from \"../Icon/icons/ChevronRight.js\";\nimport { IconButton } from \"../IconButton/index.js\";\nimport {\n\tcarouselCounter,\n\tcarouselCounterNumber,\n\tcarouselFooter,\n\tcarouselNext,\n\tcarouselPrevious,\n\tcarouselRoot,\n\tcarouselTrack,\n\tcarouselVisuallyHidden,\n} from \"./Carousel.css.js\";\n\nexport interface CarouselProps {\n\t/** The slides, each a `CarouselItem`. */\n\tchildren?: ReactNode;\n\t/** Accessible name of the group of slides. */\n\tlabel: string;\n\t/** Accessible name of the previous-slide button. */\n\tpreviousLabel: string;\n\t/** Accessible name of the next-slide button. */\n\tnextLabel: string;\n\t/** Position text for screen readers, such as \"Option 2 of 3\". `current`\n\t * counts from 1. The default is \"2 of 3\". */\n\tpositionLabel?: (current: number, total: number) => string;\n\t/** Text announced when the user moves to another slide. The default is\n\t * `positionLabel`. */\n\tpositionAnnouncement?: (current: number, total: number) => string;\n\tclassName?: string;\n\tstyle?: CSSProperties;\n}\n\nfunction itemsOf(track: HTMLElement): HTMLElement[] {\n\treturn Array.from(track.children) as HTMLElement[];\n}\n\n/** How far the track must scroll for `item` to sit where it snaps: the first\n * item at the start edge, the last at the end edge and any other in the\n * middle. Physical pixels, so it adds to `scrollLeft` in either direction. */\nfunction offsetToSnap(\n\ttrack: HTMLElement,\n\titem: HTMLElement,\n\tindex: number,\n\tcount: number,\n\tisRtl: boolean,\n): number {\n\tconst trackRect = track.getBoundingClientRect();\n\tconst itemRect = item.getBoundingClientRect();\n\tconst style = getComputedStyle(track);\n\tconst paddingStart = Number.parseFloat(style.scrollPaddingInlineStart) || 0;\n\tconst paddingEnd = Number.parseFloat(style.scrollPaddingInlineEnd) || 0;\n\tconst left = () =>\n\t\titemRect.left - trackRect.left - (isRtl ? paddingEnd : paddingStart);\n\tconst right = () =>\n\t\titemRect.right - trackRect.right + (isRtl ? paddingStart : paddingEnd);\n\n\tif (index === 0) {\n\t\treturn isRtl ? right() : left();\n\t}\n\tif (index === count - 1) {\n\t\treturn isRtl ? left() : right();\n\t}\n\treturn (\n\t\t(itemRect.left + itemRect.right) / 2 -\n\t\t(trackRect.left + trackRect.right) / 2\n\t);\n}\n\nfunction isFullyVisible(track: HTMLElement, item: HTMLElement): boolean {\n\tconst trackRect = track.getBoundingClientRect();\n\tconst itemRect = item.getBoundingClientRect();\n\treturn (\n\t\titemRect.left >= trackRect.left - 1 && itemRect.right <= trackRect.right + 1\n\t);\n}\n\nfunction currentIndexOf(track: HTMLElement, isRtl: boolean): number {\n\tconst items = itemsOf(track);\n\t// A track short enough that the last item meets the end edge before it is\n\t// the closest snap point still has to count the end of its range as the last\n\t// item.\n\tconst maxScroll = track.scrollWidth - track.clientWidth;\n\tif (\n\t\titems.length > 0 &&\n\t\tmaxScroll > 0 &&\n\t\tMath.abs(track.scrollLeft) >= maxScroll - 1\n\t) {\n\t\treturn items.length - 1;\n\t}\n\tlet closest = 0;\n\tlet closestDistance = Number.POSITIVE_INFINITY;\n\titems.forEach((item, index) => {\n\t\tconst distance = Math.abs(\n\t\t\toffsetToSnap(track, item, index, items.length, isRtl),\n\t\t);\n\t\tif (distance < closestDistance) {\n\t\t\tclosest = index;\n\t\t\tclosestDistance = distance;\n\t\t}\n\t});\n\treturn closest;\n}\n\n// React Aria focuses a pressable card on pointerdown. A scroll at that moment\n// moves the card from under the finger and cancels the press, so only keyboard\n// focus scrolls. Where `:focus-visible` is not supported, as in jsdom, every\n// focus scrolls.\nfunction isKeyboardFocus(element: Element): boolean {\n\tif (\n\t\ttypeof CSS === \"undefined\" ||\n\t\ttypeof CSS.supports !== \"function\" ||\n\t\t!CSS.supports(\"selector(:focus-visible)\")\n\t) {\n\t\treturn true;\n\t}\n\treturn element.matches(\":focus-visible\");\n}\n\n// Safari before 18.2 has no `scrollend`, so a quiet period after the last\n// scroll event also counts as the end of a button scroll.\nconst SCROLL_SETTLE_MS = 600;\n\nconst defaultPositionLabel = (current: number, total: number) =>\n\t`${current} of ${total}`;\n\n/**\n * A row of slides that scrolls sideways and snaps to each slide. When the\n * slides overflow, a footer shows the previous and next buttons and the\n * position as \"1 / 3\". The previous button hides at the first slide and the\n * next button at the last. Keyboard focus on a partly hidden slide scrolls it\n * in. Screen readers read the position, and a polite live region announces it\n * when the user moves to another slide.\n */\nexport function Carousel({\n\tchildren,\n\tlabel,\n\tpreviousLabel,\n\tnextLabel,\n\tpositionLabel = defaultPositionLabel,\n\tpositionAnnouncement = positionLabel,\n\tclassName,\n\tstyle,\n}: CarouselProps) {\n\tconst trackRef = useRef<HTMLDivElement>(null);\n\tconst [currentIndex, setCurrentIndex] = useState(0);\n\t// A button scroll animates past the slides in between. Until it lands, the\n\t// track position names one of those as current, and a second press would\n\t// start from it instead of from the slide the first press asked for.\n\tconst targetIndexRef = useRef<number | null>(null);\n\tconst settleTimerRef = useRef<ReturnType<typeof setTimeout> | null>(null);\n\tconst previousRef = useRef<HTMLButtonElement>(null);\n\tconst nextRef = useRef<HTMLButtonElement>(null);\n\tconst [overflows, setOverflows] = useState(false);\n\tconst [movedKeys, setMovedKeys] = useState<string | null>(null);\n\tconst { direction } = useLocale();\n\tconst isRtl = direction === \"rtl\";\n\tconst slides = Children.toArray(children);\n\tconst count = slides.length;\n\tconst slideKeys = slides\n\t\t.map((slide) => (isValidElement(slide) ? String(slide.key) : \"\"))\n\t\t.join(\"|\");\n\n\tconst clearSettleTimer = () => {\n\t\tif (settleTimerRef.current !== null) {\n\t\t\tclearTimeout(settleTimerRef.current);\n\t\t\tsettleTimerRef.current = null;\n\t\t}\n\t};\n\tconst releaseTarget = () => {\n\t\tclearSettleTimer();\n\t\ttargetIndexRef.current = null;\n\t};\n\t// The track cannot always align the target slide, for example when the\n\t// slides after it fit beside it. The scroll then stops short of the target,\n\t// so the lock ends with the scroll and the counter takes the real position.\n\tconst settleTarget = () => {\n\t\tconst track = trackRef.current;\n\t\tif (targetIndexRef.current === null) {\n\t\t\treturn;\n\t\t}\n\t\treleaseTarget();\n\t\tif (track) {\n\t\t\tmoveTo(currentIndexOf(track, isRtl));\n\t\t}\n\t};\n\tconst scheduleSettle = () => {\n\t\tclearSettleTimer();\n\t\tsettleTimerRef.current = setTimeout(settleTarget, SCROLL_SETTLE_MS);\n\t};\n\tconst settleTargetRef = useRef(settleTarget);\n\tsettleTargetRef.current = settleTarget;\n\n\tuseEffect(() => {\n\t\tconst track = trackRef.current;\n\t\tif (!track) {\n\t\t\treturn;\n\t\t}\n\t\tconst onScrollEnd = () => settleTargetRef.current();\n\t\ttrack.addEventListener(\"scrollend\", onScrollEnd);\n\t\treturn () => {\n\t\t\ttrack.removeEventListener(\"scrollend\", onScrollEnd);\n\t\t\tif (settleTimerRef.current !== null) {\n\t\t\t\tclearTimeout(settleTimerRef.current);\n\t\t\t}\n\t\t};\n\t}, []);\n\n\t// biome-ignore lint/correctness/useExhaustiveDependencies: slideKeys isn't read here, but a new set of slides, even one of the same length, must be measured and observed again.\n\tuseEffect(() => {\n\t\tconst track = trackRef.current;\n\t\tif (!track) {\n\t\t\treturn;\n\t\t}\n\t\tconst measure = () => setOverflows(track.scrollWidth > track.clientWidth);\n\t\tmeasure();\n\t\t// Absent in jsdom, so the measurement above has to stand on its own.\n\t\tif (typeof ResizeObserver === \"undefined\") {\n\t\t\treturn;\n\t\t}\n\t\tconst observer = new ResizeObserver(measure);\n\t\tobserver.observe(track);\n\t\tfor (const item of itemsOf(track)) {\n\t\t\tobserver.observe(item);\n\t\t}\n\t\treturn () => observer.disconnect();\n\t}, [slideKeys]);\n\n\t// A new set of slides can be shorter than the position the track was at.\n\tconst shownIndex = Math.min(currentIndex, Math.max(count - 1, 0));\n\t// The live region stays empty until the user moves within this set of\n\t// slides, so a new message or a new set does not also announce a position.\n\tconst hasMoved = movedKeys === slideKeys;\n\tconst moveTo = (index: number) => {\n\t\tif (index !== shownIndex) {\n\t\t\tsetMovedKeys(slideKeys);\n\t\t}\n\t\tsetCurrentIndex(index);\n\t};\n\tconst hasPrevious = shownIndex > 0;\n\tconst hasNext = shownIndex < count - 1;\n\n\t// An arrow hides at its end of the track, after a press or when the slides\n\t// change. If that arrow has focus, focus moves to the other arrow, so it\n\t// does not drop to the document body. Render reads the focus because the\n\t// commit removes the arrow before any effect runs.\n\tconst focused = trackRef.current?.ownerDocument.activeElement;\n\tlet arrowToFocus: typeof nextRef | null = null;\n\tif (focused && focused === previousRef.current && !hasPrevious) {\n\t\tarrowToFocus = nextRef;\n\t} else if (focused && focused === nextRef.current && !hasNext) {\n\t\tarrowToFocus = previousRef;\n\t}\n\tuseLayoutEffect(() => {\n\t\tarrowToFocus?.current?.focus();\n\t});\n\n\tconst scrollToItem = (index: number) => {\n\t\tconst track = trackRef.current;\n\t\tconst item = track ? itemsOf(track)[index] : undefined;\n\t\tif (!track || !item) {\n\t\t\treturn;\n\t\t}\n\t\tconst left =\n\t\t\ttrack.scrollLeft +\n\t\t\toffsetToSnap(track, item, index, itemsOf(track).length, isRtl);\n\t\tif (typeof track.scrollTo === \"function\") {\n\t\t\ttrack.scrollTo({\n\t\t\t\tleft,\n\t\t\t\tbehavior: readPrefersReducedMotion() ? \"instant\" : \"smooth\",\n\t\t\t});\n\t\t} else {\n\t\t\ttrack.scrollLeft = left;\n\t\t}\n\t\ttargetIndexRef.current = index;\n\t\tmoveTo(index);\n\t};\n\n\treturn (\n\t\t<div className={cx(carouselRoot, className)} style={style}>\n\t\t\t<Group\n\t\t\t\tref={trackRef}\n\t\t\t\taria-label={label}\n\t\t\t\tclassName={carouselTrack}\n\t\t\t\tonPointerDown={releaseTarget}\n\t\t\t\tonTouchStart={releaseTarget}\n\t\t\t\tonWheel={releaseTarget}\n\t\t\t\tonFocus={(event) => {\n\t\t\t\t\tconst track = event.currentTarget;\n\t\t\t\t\tconst index = itemsOf(track).findIndex((item) =>\n\t\t\t\t\t\titem.contains(event.target),\n\t\t\t\t\t);\n\t\t\t\t\tconst item = itemsOf(track)[index];\n\t\t\t\t\tif (\n\t\t\t\t\t\titem &&\n\t\t\t\t\t\tisKeyboardFocus(event.target) &&\n\t\t\t\t\t\t!isFullyVisible(track, item)\n\t\t\t\t\t) {\n\t\t\t\t\t\tscrollToItem(index);\n\t\t\t\t\t}\n\t\t\t\t}}\n\t\t\t\tonScroll={(event) => {\n\t\t\t\t\tconst index = currentIndexOf(event.currentTarget, isRtl);\n\t\t\t\t\tif (targetIndexRef.current !== null) {\n\t\t\t\t\t\tif (index === targetIndexRef.current) {\n\t\t\t\t\t\t\treleaseTarget();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tscheduleSettle();\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tmoveTo(index);\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</Group>\n\t\t\t{count > 1 && overflows && (\n\t\t\t\t<div className={carouselFooter}>\n\t\t\t\t\t{hasPrevious && (\n\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\tref={previousRef}\n\t\t\t\t\t\t\tlabel={previousLabel}\n\t\t\t\t\t\t\tvariant=\"tertiary\"\n\t\t\t\t\t\t\tsize=\"xs\"\n\t\t\t\t\t\t\tclassName={carouselPrevious}\n\t\t\t\t\t\t\tonPress={() => scrollToItem(shownIndex - 1)}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{isRtl ? <ChevronRight /> : <ChevronLeft />}\n\t\t\t\t\t\t</IconButton>\n\t\t\t\t\t)}\n\t\t\t\t\t<div\n\t\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\t\tdata-testid=\"carousel-position\"\n\t\t\t\t\t\tclassName={carouselCounter}\n\t\t\t\t\t>\n\t\t\t\t\t\t<span className={carouselCounterNumber}>{shownIndex + 1}</span>\n\t\t\t\t\t\t<span>/</span>\n\t\t\t\t\t\t<span className={carouselCounterNumber}>{count}</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t<span className={carouselVisuallyHidden}>\n\t\t\t\t\t\t{positionLabel(shownIndex + 1, count)}\n\t\t\t\t\t</span>\n\t\t\t\t\t<span\n\t\t\t\t\t\tclassName={carouselVisuallyHidden}\n\t\t\t\t\t\trole=\"status\"\n\t\t\t\t\t\taria-live=\"polite\"\n\t\t\t\t\t\taria-atomic=\"true\"\n\t\t\t\t\t>\n\t\t\t\t\t\t{hasMoved ? positionAnnouncement(shownIndex + 1, count) : \"\"}\n\t\t\t\t\t</span>\n\t\t\t\t\t{hasNext && (\n\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\tref={nextRef}\n\t\t\t\t\t\t\tlabel={nextLabel}\n\t\t\t\t\t\t\tvariant=\"tertiary\"\n\t\t\t\t\t\t\tsize=\"xs\"\n\t\t\t\t\t\t\tclassName={carouselNext}\n\t\t\t\t\t\t\tonPress={() => scrollToItem(shownIndex + 1)}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{isRtl ? <ChevronLeft /> : <ChevronRight />}\n\t\t\t\t\t\t</IconButton>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</div>\n\t);\n}\n"],"mappings":";;;;;;;;;;AA6CA,SAAS,EAAQ,GAAmC;CACnD,OAAO,MAAM,KAAK,EAAM,QAAQ;AACjC;AAKA,SAAS,EACR,GACA,GACA,GACA,GACA,GACS;CACT,IAAM,IAAY,EAAM,sBAAsB,GACxC,IAAW,EAAK,sBAAsB,GACtC,IAAQ,iBAAiB,CAAK,GAC9B,IAAe,OAAO,WAAW,EAAM,wBAAwB,KAAK,GACpE,IAAa,OAAO,WAAW,EAAM,sBAAsB,KAAK,GAChE,UACL,EAAS,OAAO,EAAU,QAAQ,IAAQ,IAAa,IAClD,UACL,EAAS,QAAQ,EAAU,SAAS,IAAQ,IAAe;CAQ5D,OANI,MAAU,IACN,IAAQ,EAAM,IAAI,EAAK,IAE3B,MAAU,IAAQ,IACd,IAAQ,EAAK,IAAI,EAAM,KAG7B,EAAS,OAAO,EAAS,SAAS,KAClC,EAAU,OAAO,EAAU,SAAS;AAEvC;AAEA,SAAS,GAAe,GAAoB,GAA4B;CACvE,IAAM,IAAY,EAAM,sBAAsB,GACxC,IAAW,EAAK,sBAAsB;CAC5C,OACC,EAAS,QAAQ,EAAU,OAAO,KAAK,EAAS,SAAS,EAAU,QAAQ;AAE7E;AAEA,SAAS,EAAe,GAAoB,GAAwB;CACnE,IAAM,IAAQ,EAAQ,CAAK,GAIrB,IAAY,EAAM,cAAc,EAAM;CAC5C,IACC,EAAM,SAAS,KACf,IAAY,KACZ,KAAK,IAAI,EAAM,UAAU,KAAK,IAAY,GAE1C,OAAO,EAAM,SAAS;CAEvB,IAAI,IAAU,GACV,IAAkB;CAUtB,OATA,EAAM,SAAS,GAAM,MAAU;EAC9B,IAAM,IAAW,KAAK,IACrB,EAAa,GAAO,GAAM,GAAO,EAAM,QAAQ,CAAK,CACrD;EACA,AAAI,IAAW,MACd,IAAU,GACV,IAAkB;CAEpB,CAAC,GACM;AACR;AAMA,SAAS,EAAgB,GAA2B;CAQnD,OANC,OAAO,MAAQ,OACf,OAAO,IAAI,YAAa,cACxB,CAAC,IAAI,SAAS,0BAA0B,KAIlC,EAAQ,QAAQ,gBAAgB;AACxC;AAIA,IAAM,IAAmB,KAEnB,MAAwB,GAAiB,MAC9C,GAAG,EAAQ,MAAM;AAUlB,SAAgB,EAAS,EACxB,aACA,UACA,mBACA,eACA,mBAAgB,IAChB,0BAAuB,GACvB,cACA,YACiB;CACjB,IAAM,IAAW,EAAuB,IAAI,GACtC,CAAC,GAAc,KAAmB,EAAS,CAAC,GAI5C,IAAiB,EAAsB,IAAI,GAC3C,IAAiB,EAA6C,IAAI,GAClE,IAAc,EAA0B,IAAI,GAC5C,IAAU,EAA0B,IAAI,GACxC,CAAC,IAAW,KAAgB,EAAS,EAAK,GAC1C,CAAC,IAAW,KAAgB,EAAwB,IAAI,GACxD,EAAE,iBAAc,EAAU,GAC1B,IAAQ,MAAc,OACtB,IAAS,EAAS,QAAQ,CAAQ,GAClC,IAAQ,EAAO,QACf,IAAY,EAChB,KAAK,MAAW,EAAe,CAAK,IAAI,OAAO,EAAM,GAAG,IAAI,EAAG,CAAC,CAChE,KAAK,GAAG,GAEJ,UAAyB;EAC9B,AAAI,EAAe,YAAY,SAC9B,aAAa,EAAe,OAAO,GACnC,EAAe,UAAU;CAE3B,GACM,UAAsB;EAE3B,AADA,EAAiB,GACjB,EAAe,UAAU;CAC1B,GAIM,UAAqB;EAC1B,IAAM,IAAQ,EAAS;EACnB,EAAe,YAAY,SAG/B,EAAc,GACV,KACH,EAAO,EAAe,GAAO,CAAK,CAAC;CAErC,GACM,UAAuB;EAE5B,AADA,EAAiB,GACjB,EAAe,UAAU,WAAW,GAAc,CAAgB;CACnE,GACM,IAAkB,EAAO,CAAY;CAmB3C,AAlBA,EAAgB,UAAU,GAE1B,QAAgB;EACf,IAAM,IAAQ,EAAS;EACvB,IAAI,CAAC,GACJ;EAED,IAAM,UAAoB,EAAgB,QAAQ;EAElD,OADA,EAAM,iBAAiB,aAAa,CAAW,SAClC;GAEZ,AADA,EAAM,oBAAoB,aAAa,CAAW,GAC9C,EAAe,YAAY,QAC9B,aAAa,EAAe,OAAO;EAErC;CACD,GAAG,CAAC,CAAC,GAGL,QAAgB;EACf,IAAM,IAAQ,EAAS;EACvB,IAAI,CAAC,GACJ;EAED,IAAM,UAAgB,EAAa,EAAM,cAAc,EAAM,WAAW;EAGxE,IAFA,EAAQ,GAEJ,OAAO,iBAAmB,KAC7B;EAED,IAAM,IAAW,IAAI,eAAe,CAAO;EAC3C,EAAS,QAAQ,CAAK;EACtB,KAAK,IAAM,KAAQ,EAAQ,CAAK,GAC/B,EAAS,QAAQ,CAAI;EAEtB,aAAa,EAAS,WAAW;CAClC,GAAG,CAAC,CAAS,CAAC;CAGd,IAAM,IAAa,KAAK,IAAI,GAAc,KAAK,IAAI,IAAQ,GAAG,CAAC,CAAC,GAG1D,KAAW,OAAc,GACzB,KAAU,MAAkB;EAIjC,AAHI,MAAU,KACb,EAAa,CAAS,GAEvB,EAAgB,CAAK;CACtB,GACM,IAAc,IAAa,GAC3B,IAAU,IAAa,IAAQ,GAM/B,IAAU,EAAS,SAAS,cAAc,eAC5C,IAAsC;CAM1C,AALI,KAAW,MAAY,EAAY,WAAW,CAAC,IAClD,IAAe,IACL,KAAW,MAAY,EAAQ,WAAW,CAAC,MACrD,IAAe,IAEhB,QAAsB;EACrB,GAAc,SAAS,MAAM;CAC9B,CAAC;CAED,IAAM,KAAgB,MAAkB;EACvC,IAAM,IAAQ,EAAS,SACjB,IAAO,IAAQ,EAAQ,CAAK,CAAC,CAAC,KAAS,KAAA;EAC7C,IAAI,CAAC,KAAS,CAAC,GACd;EAED,IAAM,IACL,EAAM,aACN,EAAa,GAAO,GAAM,GAAO,EAAQ,CAAK,CAAC,CAAC,QAAQ,CAAK;EAU9D,AATI,OAAO,EAAM,YAAa,aAC7B,EAAM,SAAS;GACd;GACA,UAAU,EAAyB,IAAI,YAAY;EACpD,CAAC,IAED,EAAM,aAAa,GAEpB,EAAe,UAAU,GACzB,EAAO,CAAK;CACb;CAEA,OACC,kBAAC,OAAD;EAAK,WAAW,EAAG,GAAc,CAAS;EAAU;YAApD,CACC,kBAAC,GAAD;GACC,KAAK;GACL,cAAY;GACZ,WAAW;GACX,eAAe;GACf,cAAc;GACd,SAAS;GACT,UAAU,MAAU;IACnB,IAAM,IAAQ,EAAM,eACd,IAAQ,EAAQ,CAAK,CAAC,CAAC,WAAW,MACvC,EAAK,SAAS,EAAM,MAAM,CAC3B,GACM,IAAO,EAAQ,CAAK,CAAC,CAAC;IAC5B,AACC,KACA,EAAgB,EAAM,MAAM,KAC5B,CAAC,GAAe,GAAO,CAAI,KAE3B,EAAa,CAAK;GAEpB;GACA,WAAW,MAAU;IACpB,IAAM,IAAQ,EAAe,EAAM,eAAe,CAAK;IACvD,IAAI,EAAe,YAAY,MAAM;KACpC,AAAI,MAAU,EAAe,UAC5B,EAAc,IAEd,EAAe;KAEhB;IACD;IACA,EAAO,CAAK;GACb;GAEC;EACK,CAAA,GACN,IAAQ,KAAK,MACb,kBAAC,OAAD;GAAK,WAAA;aAAL;IACE,KACA,kBAAC,GAAD;KACC,KAAK;KACL,OAAO;KACP,SAAQ;KACR,MAAK;KACL,WAAA;KACA,eAAe,EAAa,IAAa,CAAC;eAEjC,EAAR,IAAS,IAAmB,GAApB,CAAe,CAAkB;IAC/B,CAAA;IAEb,kBAAC,OAAD;KACC,eAAY;KACZ,eAAY;KACZ,WAAA;eAHD;MAKC,kBAAC,QAAD;OAAM,WAAA;iBAAmC,IAAa;MAAQ,CAAA;MAC9D,kBAAC,QAAD,EAAA,UAAM,IAAO,CAAA;MACb,kBAAC,QAAD;OAAM,WAAA;iBAAmC;MAAY,CAAA;KACjD;;IACL,kBAAC,QAAD;KAAM,WAAA;eACJ,EAAc,IAAa,GAAG,CAAK;IAC/B,CAAA;IACN,kBAAC,QAAD;KACC,WAAA;KACA,MAAK;KACL,aAAU;KACV,eAAY;eAEX,KAAW,EAAqB,IAAa,GAAG,CAAK,IAAI;IACrD,CAAA;IACL,KACA,kBAAC,GAAD;KACC,KAAK;KACL,OAAO;KACP,SAAQ;KACR,MAAK;KACL,WAAA;KACA,eAAe,EAAa,IAAa,CAAC;eAEjC,EAAR,IAAS,IAAkB,GAAnB,CAAc,CAAmB;IAC/B,CAAA;GAET;IAEF;;AAEP"}
|
|
@@ -23,8 +23,8 @@ export declare const checkboxRoot: import("@vanilla-extract/recipes").RuntimeFn<
|
|
|
23
23
|
* `MenuItem` row), so the state rules below are child selectors driven from
|
|
24
24
|
* whichever host carries React Aria's `data-*`. `color` is the inverse content
|
|
25
25
|
* color: it feeds both the glyph stroke and the `currentColor` state-layer
|
|
26
|
-
* overlay, so the overlay is invisible over the light unchecked box
|
|
27
|
-
*
|
|
26
|
+
* overlay, so the overlay is invisible over the light unchecked box yet lightens
|
|
27
|
+
* the dark filled box.
|
|
28
28
|
*/
|
|
29
29
|
export declare const checkboxBox: string;
|
|
30
30
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.css.js","names":[],"sources":["../../../src/components/Checkbox/Checkbox.css.ts"],"sourcesContent":["import { globalStyle, style } from \"@vanilla-extract/css\";\nimport { recipe } from \"@vanilla-extract/recipes\";\nimport {\n\tcontrolRowFrame,\n\tcontrolRowSlotRules,\n} from \"../../styles/control-row.js\";\nimport { focusRing } from \"../../styles/focus-ring.js\";\nimport { typography } from \"../../styles/typography.js\";\nimport { t } from \"../../tokens/index.js\";\n\n// 24px box + 16px glyph mirror Figma's fixed frame sizes (button-size/xs,\n// icon-size/md), which the token set does not expose as spacing values.\nconst BOX_SIZE = \"24px\";\nconst GLYPH_SIZE = \"16px\";\n\nexport const checkboxGroup = style({\n\tdisplay: \"flex\",\n\tflexDirection: \"column\",\n\tgap: t(\"gap-20\"),\n});\n\n// Empty handle classes: a recipe can't target a descendant, so the row variant's\n// slot rules are attached to a stable class instead (same trick as Button's base).\nconst checkboxRowBase = style({});\n\n/**\n * The RAC `Checkbox` label. `inline` lays the box out beside an optional label;\n * `row` is the 40px selectable row Figma draws for a menu item, for a\n * `CheckboxGroup` rendered as a list of options.\n */\nexport const checkboxRoot = recipe({\n\tbase: {\n\t\t...typography(\"body\", \"regular\"),\n\t\tcolor: t(\"color-content-default\"),\n\t\tcursor: \"pointer\",\n\t\tuserSelect: \"none\",\n\t\toutline: \"none\",\n\t\tselectors: {\n\t\t\t\"&[data-disabled]\": {\n\t\t\t\tcursor: \"not-allowed\",\n\t\t\t\tcolor: t(\"color-content-disabled\"),\n\t\t\t},\n\t\t},\n\t},\n\tvariants: {\n\t\tvariant: {\n\t\t\tinline: {\n\t\t\t\tdisplay: \"inline-flex\",\n\t\t\t\talignItems: \"center\",\n\t\t\t\tgap: t(\"gap-12\"),\n\t\t\t},\n\t\t\trow: [checkboxRowBase, controlRowFrame],\n\t\t},\n\t},\n\tdefaultVariants: { variant: \"inline\" },\n});\n\nglobalStyle(\n\t`${checkboxRowBase} > [data-slot=\"icon\"]`,\n\tcontrolRowSlotRules.icon,\n);\nglobalStyle(\n\t`${checkboxRowBase} > [data-slot=\"label\"]`,\n\tcontrolRowSlotRules.label,\n);\n\n/**\n * The 24px indicator. Its geometry is fixed in every state — a rigid `border-box`\n * square with an always-present 1px border (transparent when filled) and a\n * `box-shadow` focus ring — so selecting/focusing never reflows it.\n *\n * Selection/interaction state lives on the host element (the RAC label, or a\n * `MenuItem` row), so the state rules below are child selectors driven from\n * whichever host carries React Aria's `data-*`. `color` is the inverse content\n * color: it feeds both the glyph stroke and the `currentColor` state-layer\n * overlay, so the overlay is invisible over the light unchecked box
|
|
1
|
+
{"version":3,"file":"Checkbox.css.js","names":[],"sources":["../../../src/components/Checkbox/Checkbox.css.ts"],"sourcesContent":["import { globalStyle, style } from \"@vanilla-extract/css\";\nimport { recipe } from \"@vanilla-extract/recipes\";\nimport {\n\tcontrolRowFrame,\n\tcontrolRowSlotRules,\n} from \"../../styles/control-row.js\";\nimport { focusRing } from \"../../styles/focus-ring.js\";\nimport { typography } from \"../../styles/typography.js\";\nimport { t } from \"../../tokens/index.js\";\n\n// 24px box + 16px glyph mirror Figma's fixed frame sizes (button-size/xs,\n// icon-size/md), which the token set does not expose as spacing values.\nconst BOX_SIZE = \"24px\";\nconst GLYPH_SIZE = \"16px\";\n\nexport const checkboxGroup = style({\n\tdisplay: \"flex\",\n\tflexDirection: \"column\",\n\tgap: t(\"gap-20\"),\n});\n\n// Empty handle classes: a recipe can't target a descendant, so the row variant's\n// slot rules are attached to a stable class instead (same trick as Button's base).\nconst checkboxRowBase = style({});\n\n/**\n * The RAC `Checkbox` label. `inline` lays the box out beside an optional label;\n * `row` is the 40px selectable row Figma draws for a menu item, for a\n * `CheckboxGroup` rendered as a list of options.\n */\nexport const checkboxRoot = recipe({\n\tbase: {\n\t\t...typography(\"body\", \"regular\"),\n\t\tcolor: t(\"color-content-default\"),\n\t\tcursor: \"pointer\",\n\t\tuserSelect: \"none\",\n\t\toutline: \"none\",\n\t\tselectors: {\n\t\t\t\"&[data-disabled]\": {\n\t\t\t\tcursor: \"not-allowed\",\n\t\t\t\tcolor: t(\"color-content-disabled\"),\n\t\t\t},\n\t\t},\n\t},\n\tvariants: {\n\t\tvariant: {\n\t\t\tinline: {\n\t\t\t\tdisplay: \"inline-flex\",\n\t\t\t\talignItems: \"center\",\n\t\t\t\tgap: t(\"gap-12\"),\n\t\t\t},\n\t\t\trow: [checkboxRowBase, controlRowFrame],\n\t\t},\n\t},\n\tdefaultVariants: { variant: \"inline\" },\n});\n\nglobalStyle(\n\t`${checkboxRowBase} > [data-slot=\"icon\"]`,\n\tcontrolRowSlotRules.icon,\n);\nglobalStyle(\n\t`${checkboxRowBase} > [data-slot=\"label\"]`,\n\tcontrolRowSlotRules.label,\n);\n\n/**\n * The 24px indicator. Its geometry is fixed in every state — a rigid `border-box`\n * square with an always-present 1px border (transparent when filled) and a\n * `box-shadow` focus ring — so selecting/focusing never reflows it.\n *\n * Selection/interaction state lives on the host element (the RAC label, or a\n * `MenuItem` row), so the state rules below are child selectors driven from\n * whichever host carries React Aria's `data-*`. `color` is the inverse content\n * color: it feeds both the glyph stroke and the `currentColor` state-layer\n * overlay, so the overlay is invisible over the light unchecked box yet lightens\n * the dark filled box.\n */\nexport const checkboxBox = style({\n\tposition: \"relative\",\n\tisolation: \"isolate\",\n\tboxSizing: \"border-box\",\n\tflexShrink: 0,\n\twidth: BOX_SIZE,\n\theight: BOX_SIZE,\n\tborderRadius: t(\"border-radius-6\"),\n\tborderStyle: \"solid\",\n\tborderWidth: t(\"border-width-default\"),\n\tborderColor: t(\"color-border-control\"),\n\tbackgroundColor: t(\"color-background-default\"),\n\tcolor: t(\"color-content-inverse\"),\n\t// No background-color transition, so the fill flips instantly and lands with the glyph.\n\ttransitionProperty: \"border-color, box-shadow\",\n\ttransitionDuration: t(\"duration-fast\"),\n\ttransitionTimingFunction: t(\"easing-standard\"),\n\t\"::after\": {\n\t\tcontent: '\"\"',\n\t\tposition: \"absolute\",\n\t\tinset: 0,\n\t\tborderRadius: \"inherit\",\n\t\tbackgroundColor: \"currentColor\",\n\t\topacity: 0,\n\t\tpointerEvents: \"none\",\n\t\tzIndex: -1,\n\t\ttransition: `opacity ${t(\"duration-fast\")} ${t(\"easing-standard\")}`,\n\t},\n});\n\n/**\n * Checkmark / dash glyph — absolutely centered and toggled by opacity, never\n * in-flow, so revealing it can never shift the box.\n */\nexport const checkboxGlyph = style({\n\tposition: \"absolute\",\n\tinset: 0,\n\tmargin: \"auto\",\n\twidth: GLYPH_SIZE,\n\theight: GLYPH_SIZE,\n\tcolor: \"currentColor\",\n\topacity: 0,\n\tpointerEvents: \"none\",\n});\n\n// Selection and disabled are host-agnostic: any element carrying React Aria's\n// `data-*` drives the box directly below it. Interaction (hover border, state\n// layer, focus ring) additionally requires `[data-state-layer]`, which the\n// indicator sets only when it is the sole affordance — inside a row the row\n// paints those itself.\n\n// Border goes transparent when filled so it folds into the fill (no ring).\nglobalStyle(\n\t`[data-selected] > ${checkboxBox}, [data-indeterminate] > ${checkboxBox}`,\n\t{\n\t\tbackgroundColor: t(\"color-background-inverse\"),\n\t\tborderColor: \"transparent\",\n\t},\n);\n\nglobalStyle(\n\t`[data-hovered]:not([data-disabled]):not([data-selected]):not([data-indeterminate]) > ${checkboxBox}[data-state-layer]`,\n\t{ borderColor: t(\"color-border-control-hover\") },\n);\n\n// State layer — currentColor overlay at per-state opacity, tracking box content color.\nglobalStyle(\n\t`[data-hovered]:not([data-disabled]) > ${checkboxBox}[data-state-layer]::after`,\n\t{ opacity: t(\"opacity-state-hover\") },\n);\nglobalStyle(\n\t`[data-focus-visible]:not([data-disabled]) > ${checkboxBox}[data-state-layer]::after`,\n\t{ opacity: t(\"opacity-state-focus\") },\n);\nglobalStyle(\n\t`[data-pressed]:not([data-disabled]) > ${checkboxBox}[data-state-layer]::after`,\n\t{ opacity: t(\"opacity-state-pressed\") },\n);\n\nglobalStyle(\n\t`[data-focus-visible]:not([data-disabled]) > ${checkboxBox}[data-state-layer]`,\n\tfocusRing,\n);\n\nglobalStyle(\n\t`[data-focus-visible]:not([data-disabled]) > ${checkboxBox}[data-state-layer]`,\n\t{\n\t\t\"@media\": {\n\t\t\t\"(forced-colors: active)\": {\n\t\t\t\toutline: \"2px solid Highlight\",\n\t\t\t\toutlineOffset: \"2px\",\n\t\t\t},\n\t\t},\n\t},\n);\n\n// Disabled wins over the filled rule: light fill, default border, faded glyph\n// (Figma color/content/disabled).\nglobalStyle(`[data-disabled] > ${checkboxBox}`, {\n\tbackgroundColor: t(\"color-background-disabled\"),\n\tborderColor: t(\"color-border-default\"),\n\tcolor: t(\"color-content-disabled\"),\n});\n\n// Reveal the matching glyph. Dash wins for the mixed state; the check shows only\n// when selected and not indeterminate.\nglobalStyle(\n\t`[data-selected]:not([data-indeterminate]) > ${checkboxBox} > ${checkboxGlyph}[data-glyph=\"check\"]`,\n\t{ opacity: 1 },\n);\nglobalStyle(\n\t`[data-indeterminate] > ${checkboxBox} > ${checkboxGlyph}[data-glyph=\"dash\"]`,\n\t{ opacity: 1 },\n);\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.css.js","names":[],"sources":["../../../src/components/Input/Input.css.ts"],"sourcesContent":["import type { ComplexStyleRule } from \"@vanilla-extract/css\";\nimport { globalStyle, style } from \"@vanilla-extract/css\";\nimport type { RuntimeFn } from \"@vanilla-extract/recipes\";\nimport { recipe } from \"@vanilla-extract/recipes\";\nimport { focusRing } from \"../../styles/focus-ring.js\";\nimport { typography } from \"../../styles/typography.js\";\nimport { t } from \"../../tokens/index.js\";\n\n// Shared by the text control and the label so their typography stays in lockstep.\nconst bodyText = {\n\t...typography(\"body\", \"regular\"),\n} as const;\n\n// Field and action-button icon glyphs share sizing.\nconst iconSlotSizing = {\n\tflexShrink: 0,\n\tfontSize: t(\"icon-size-control\"),\n} as const;\n\nexport const inputRoot = style({\n\tdisplay: \"flex\",\n\tflexDirection: \"column\",\n\twidth: \"100%\",\n\tfontFamily: t(\"font-family-body\"),\n});\n\n// Empty style used purely as a stable selector anchor for the globalStyle rules\n// below — a recipe class isn't a usable selector string, so descendant styles\n// hang off this base class instead.\nconst inputFieldBase = style({});\n\n// Composer-variant anchor: composed into the `composer` variant so the control's\n// content/placeholder colors (a descendant, not the field) can be re-themed to\n// the composer-* tokens via globalStyle.\nconst inputFieldComposer = style({});\n\n/**\n * Shares the line below the control with the field's own button rather than\n * taking a line of its own: Figma bottom-aligns the chips and the send action\n * on one line, which `Input.Field`'s `align-items: flex-end` then handles.\n */\nexport const inputAttachments = style({\n\tflex: \"1 1 auto\",\n\tminWidth: 0,\n\tdisplay: \"flex\",\n\tflexWrap: \"wrap\",\n\tgap: t(\"gap-8\"),\n});\n\n// Explicit annotation: the inferred recipe type exceeds tsc's declaration\n// serialization limit (TS7056) under `tsc -p tsconfig.build.json`.\nexport const inputField: RuntimeFn<{\n\tvariant: Record<\"default\" | \"composer\", ComplexStyleRule>;\n}> = recipe({\n\tbase: [\n\t\tinputFieldBase,\n\t\t{\n\t\t\tdisplay: \"flex\",\n\t\t\t// The control takes the whole first line whenever attachments are present\n\t\t\t// (see the `data-has-attachments` rule below), so the chips and the button\n\t\t\t// wrap onto the second. Keep wrapping unconditional because Chrome and\n\t\t\t// Firefox at the floor in `messaging/vite.browser-targets.mjs` lack\n\t\t\t// `:has()`. Without attachments nothing wraps: the control has\n\t\t\t// flex-basis 0, icons and button are 22px.\n\t\t\tflexWrap: \"wrap\",\n\t\t\talignItems: \"flex-end\",\n\t\t\tgap: t(\"gap-8\"),\n\t\t\twidth: \"100%\",\n\t\t\tminHeight: \"40px\",\n\t\t\tboxSizing: \"border-box\",\n\t\t\tpaddingInline: t(\"padding-12\"),\n\t\t\tpaddingBlock: t(\"padding-8\"),\n\t\t\tborder: `${t(\"border-width-default\")} solid ${t(\"color-border-default\")}`,\n\t\t\tbackgroundColor: t(\"color-background-default\"),\n\t\t\tborderRadius: t(\"border-radius-input\"),\n\t\t\tcursor: \"text\",\n\t\t\tselectors: {\n\t\t\t\t\"&[data-focus-within]\": {\n\t\t\t\t\tborderColor: t(\"color-border-accent\"),\n\t\t\t\t\t...focusRing,\n\t\t\t\t},\n\t\t\t\t// After focus-within so an invalid field keeps its destructive border while focused.\n\t\t\t\t\"&[data-invalid]\": {\n\t\t\t\t\tborderColor: t(\"color-border-destructive\"),\n\t\t\t\t},\n\t\t\t\t\"&[data-disabled]\": {\n\t\t\t\t\tbackgroundColor: t(\"color-background-disabled\"),\n\t\t\t\t\tcursor: \"not-allowed\",\n\t\t\t\t},\n\t\t\t},\n\t\t\t\"@media\": {\n\t\t\t\t\"(prefers-reduced-motion: no-preference)\": {\n\t\t\t\t\ttransitionProperty: \"border-color\",\n\t\t\t\t\ttransitionDuration: t(\"duration-fast\"),\n\t\t\t\t\ttransitionTimingFunction: t(\"easing-standard\"),\n\t\t\t\t},\n\t\t\t\t// Token-color focus ring flattens in forced-colors; redraw with a system color.\n\t\t\t\t\"(forced-colors: active)\": {\n\t\t\t\t\tselectors: {\n\t\t\t\t\t\t\"&[data-focus-within]\": {\n\t\t\t\t\t\t\toutline: \"2px solid Highlight\",\n\t\t\t\t\t\t\toutlineOffset: \"2px\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t],\n\tvariants: {\n\t\tvariant: {\n\t\t\t// Default field styling lives in `base`; this key exists so the variant\n\t\t\t// axis accepts \"default\" as an explicit no-op.\n\t\t\tdefault: {},\n\t\t\tcomposer: [\n\t\t\t\tinputFieldComposer,\n\t\t\t\t{\n\t\t\t\t\tborderRadius: t(\"border-radius-composer\"),\n\t\t\t\t\tborder: `${t(\"border-width-default\")} solid ${t(\"composer-border-default\")}`,\n\t\t\t\t\tbackgroundColor: t(\"composer-background\"),\n\t\t\t\t\tselectors: {\n\t\t\t\t\t\t\"&[data-focus-within]\": {\n\t\t\t\t\t\t\tborderColor: t(\"composer-border-active\"),\n\t\t\t\t\t\t\toutline: `${t(\"border-width-focus\")} solid ${t(\"composer-border-focus\")}`,\n\t\t\t\t\t\t\toutlineOffset: t(\"border-width-focus\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t\t// Re-declared after focus-within for the same reason the base does:\n\t\t\t\t\t\t// variant styles are emitted after base at equal specificity, so\n\t\t\t\t\t\t// without this the composer's focus colour would win and an invalid\n\t\t\t\t\t\t// composer would lose its destructive border while focused.\n\t\t\t\t\t\t\"&[data-invalid]\": {\n\t\t\t\t\t\t\tborderColor: t(\"color-border-destructive\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tvariant: \"default\",\n\t},\n});\n\nexport const inputControl = style({\n\tflex: 1,\n\tminWidth: 0,\n\tmargin: 0,\n\tpadding: 0,\n\tborder: \"none\",\n\tbackgroundColor: \"transparent\",\n\toutline: \"none\",\n\tappearance: \"none\",\n\t...bodyText,\n\tcolor: t(\"color-content-default\"),\n\tselectors: {\n\t\t\"&::placeholder\": {\n\t\t\tcolor: t(\"color-content-secondary\"),\n\t\t\topacity: 1,\n\t\t},\n\t\t\"&[data-disabled]\": {\n\t\t\tcolor: t(\"color-content-disabled\"),\n\t\t\tcursor: \"not-allowed\",\n\t\t},\n\t\t\"&[data-disabled]::placeholder\": {\n\t\t\tcolor: t(\"color-content-disabled\"),\n\t\t},\n\t},\n});\n\n// Same control base as the single-line inputControl (typography, colors,\n// placeholder/disabled states), plus the multi-line-specific box behavior.\nexport const inputTextArea = style([\n\tinputControl,\n\t{\n\t\tdisplay: \"block\",\n\t\twidth: \"100%\",\n\t\tboxSizing: \"border-box\",\n\t\t// Height is driven by the auto-grow logic in InputTextArea; the user never drags it.\n\t\tresize: \"none\",\n\t\toverflowY: \"auto\",\n\t\toverflowWrap: \"anywhere\",\n\t\twordBreak: \"break-word\",\n\t\tscrollbarWidth: \"thin\",\n\t\tscrollbarColor: `${t(\"color-border-default\")} transparent`,\n\t},\n]);\n\nconst inputButtonBase = style({});\nconst inputButtonTertiary = style({});\n\nexport const inputButton = recipe({\n\tbase: [\n\t\tinputButtonBase,\n\t\t{\n\t\t\tposition: \"relative\",\n\t\t\tisolation: \"isolate\",\n\t\t\tdisplay: \"inline-flex\",\n\t\t\talignItems: \"center\",\n\t\t\tjustifyContent: \"center\",\n\t\t\tflexShrink: 0,\n\t\t\t// Circular send/action button — 22px square per Figma (matches the field's icon size).\n\t\t\twidth: \"22px\",\n\t\t\theight: \"22px\",\n\t\t\tpadding: 0,\n\t\t\tborder: \"none\",\n\t\t\tborderRadius: t(\"border-radius-full\"),\n\t\t\tbackgroundColor: t(\"button-primary-background\"),\n\t\t\tcolor: t(\"button-primary-content\"),\n\t\t\tcursor: \"pointer\",\n\t\t\tappearance: \"none\",\n\t\t\toutline: \"none\",\n\t\t\toverflow: \"hidden\",\n\t\t\t\"::after\": {\n\t\t\t\tcontent: '\"\"',\n\t\t\t\tposition: \"absolute\",\n\t\t\t\tinset: 0,\n\t\t\t\tborderRadius: \"inherit\",\n\t\t\t\tbackgroundColor: \"currentColor\",\n\t\t\t\topacity: 0,\n\t\t\t\tpointerEvents: \"none\",\n\t\t\t\tzIndex: -1,\n\t\t\t},\n\t\t\tselectors: {\n\t\t\t\t\"&[data-hovered]:not([data-disabled])::after\": {\n\t\t\t\t\topacity: t(\"opacity-state-hover\"),\n\t\t\t\t},\n\t\t\t\t\"&[data-focus-visible]:not([data-disabled])::after\": {\n\t\t\t\t\topacity: t(\"opacity-state-focus\"),\n\t\t\t\t},\n\t\t\t\t\"&[data-pressed]:not([data-disabled])::after\": {\n\t\t\t\t\topacity: t(\"opacity-state-pressed\"),\n\t\t\t\t},\n\t\t\t\t\"&[data-focus-visible]:not([data-disabled])\": focusRing,\n\t\t\t\t\"&[data-disabled]\": {\n\t\t\t\t\tcursor: \"not-allowed\",\n\t\t\t\t\tbackgroundColor: t(\"color-background-disabled\"),\n\t\t\t\t\tcolor: t(\"color-content-disabled\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\t\"@media\": {\n\t\t\t\t\"(prefers-reduced-motion: no-preference)\": {\n\t\t\t\t\tselectors: {\n\t\t\t\t\t\t\"&::after\": {\n\t\t\t\t\t\t\ttransition: `opacity ${t(\"duration-fast\")} ${t(\"easing-standard\")}`,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t// Token-color focus ring flattens in forced-colors; redraw with a system color.\n\t\t\t\t\"(forced-colors: active)\": {\n\t\t\t\t\tselectors: {\n\t\t\t\t\t\t\"&[data-focus-visible]:not([data-disabled])\": {\n\t\t\t\t\t\t\toutline: \"2px solid Highlight\",\n\t\t\t\t\t\t\toutlineOffset: \"2px\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t],\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: {},\n\t\t\ttertiary: [\n\t\t\t\tinputButtonTertiary,\n\t\t\t\t{\n\t\t\t\t\t// Meet the 24px target minimum without changing the send slot's 22px footprint.\n\t\t\t\t\twidth: \"24px\",\n\t\t\t\t\theight: \"24px\",\n\t\t\t\t\tmargin: \"-1px\",\n\t\t\t\t\tbackgroundColor: \"transparent\",\n\t\t\t\t\tcolor: t(\"color-content-secondary\"),\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tvariant: \"primary\",\n\t},\n});\n\nexport const inputLabel = style({\n\t...bodyText,\n\tmarginBottom: t(\"gap-8\"),\n\tcolor: t(\"color-content-default\"),\n});\n\nexport const inputHelperText = style({\n\tmarginTop: t(\"gap-4\"),\n\t...typography(\"caption\", \"regular\"),\n\tcolor: t(\"color-content-secondary\"),\n\tselectors: {\n\t\t\"&[data-invalid]\": {\n\t\t\tcolor: t(\"color-content-destructive\"),\n\t\t},\n\t},\n});\n\nglobalStyle(`${inputFieldBase} [data-slot='icon']`, iconSlotSizing);\nglobalStyle(`${inputButtonBase} [data-slot='icon']`, iconSlotSizing);\n\n// Direct child only: field-level icons follow content color. The send button's\n// icon is a deeper descendant, so it deliberately has no rule of its own — it\n// inherits the button's paired tokens (button-primary-content over\n// button-primary-background, or the disabled pair). Giving the icon its own\n// background re-pairs an accent foreground with a neutral backdrop, and those\n// two are unrelated tokens: a customer tint near the surface color then renders\n// the arrow at ~1:1.\nglobalStyle(`${inputFieldBase} > [data-slot='icon']`, {\n\tcolor: t(\"color-content-secondary\"),\n});\n\nglobalStyle(`${inputFieldBase}[data-disabled] > [data-slot='icon']`, {\n\tcolor: t(\"color-content-disabled\"),\n});\n\n// Composer variant re-themes the field's content colors to the composer-* tokens.\n// The control (input/textarea) and field-level icons are descendants of the field,\n// so these ride the composer anchor rather than the field recipe.\n/**\n * With attachments in the field the control owns the first line, so the chips\n * and the send button fall onto the second and bottom-align there.\n *\n * Driven by an attribute the caller sets rather than `:has()`, which the iOS 15\n * baseline does not have.\n */\nglobalStyle(`${inputFieldBase}[data-has-attachments] ${inputControl}`, {\n\tflexBasis: \"100%\",\n});\n\n// Figma stacks the text and the chips 20px apart while the send button keeps its\n// 8px from the chips, so the two axes take different gaps.\nglobalStyle(`${inputFieldBase}[data-has-attachments]`, {\n\trowGap: t(\"gap-20\"),\n});\n\nglobalStyle(`${inputFieldComposer} ${inputControl}`, {\n\tcolor: t(\"composer-content-default\"),\n});\n\nglobalStyle(`${inputFieldComposer} ${inputControl}::placeholder`, {\n\tcolor: t(\"composer-content-secondary\"),\n});\n\nglobalStyle(`${inputFieldComposer} > [data-slot='icon']`, {\n\tcolor: t(\"composer-content-secondary\"),\n});\n\nglobalStyle(`${inputFieldComposer} ${inputButtonTertiary}`, {\n\tcolor: t(\"composer-content-secondary\"),\n});\n\n// Equal specificity: later order overrides the base disabled fill and composer colour.\nglobalStyle(`${inputButtonTertiary}[data-disabled]`, {\n\tbackgroundColor: \"transparent\",\n\tcolor: t(\"color-content-disabled\"),\n});\n\n// The composer rules above are descendant selectors, so they tie with the field\n// recipe's [data-disabled] rules on specificity and win on order. Re-assert the\n// disabled colors after them or a disabled control renders as if it were editable.\nglobalStyle(`${inputFieldComposer} ${inputControl}[data-disabled]`, {\n\tcolor: t(\"color-content-disabled\"),\n});\n\nglobalStyle(\n\t`${inputFieldComposer} ${inputControl}[data-disabled]::placeholder`,\n\t{\n\t\tcolor: t(\"color-content-disabled\"),\n\t},\n);\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"Input.css.js","names":[],"sources":["../../../src/components/Input/Input.css.ts"],"sourcesContent":["import type { ComplexStyleRule } from \"@vanilla-extract/css\";\nimport { globalStyle, style } from \"@vanilla-extract/css\";\nimport type { RuntimeFn } from \"@vanilla-extract/recipes\";\nimport { recipe } from \"@vanilla-extract/recipes\";\nimport { focusRing } from \"../../styles/focus-ring.js\";\nimport { typography } from \"../../styles/typography.js\";\nimport { t } from \"../../tokens/index.js\";\n\n// Shared by the text control and the label so their typography stays in lockstep.\nconst bodyText = {\n\t...typography(\"body\", \"regular\"),\n} as const;\n\n// Field and action-button icon glyphs share sizing.\nconst iconSlotSizing = {\n\tflexShrink: 0,\n\tfontSize: t(\"icon-size-control\"),\n} as const;\n\nexport const inputRoot = style({\n\tdisplay: \"flex\",\n\tflexDirection: \"column\",\n\twidth: \"100%\",\n\tfontFamily: t(\"font-family-body\"),\n});\n\n// Empty style used purely as a stable selector anchor for the globalStyle rules\n// below — a recipe class isn't a usable selector string, so descendant styles\n// hang off this base class instead.\nconst inputFieldBase = style({});\n\n// Composer-variant anchor: composed into the `composer` variant so the control's\n// content/placeholder colors (a descendant, not the field) can be re-themed to\n// the composer-* tokens via globalStyle.\nconst inputFieldComposer = style({});\n\n/**\n * Shares the line below the control with the field's own button rather than\n * taking a line of its own: Figma bottom-aligns the chips and the send action\n * on one line, which `Input.Field`'s `align-items: flex-end` then handles.\n */\nexport const inputAttachments = style({\n\tflex: \"1 1 auto\",\n\tminWidth: 0,\n\tdisplay: \"flex\",\n\tflexWrap: \"wrap\",\n\tgap: t(\"gap-8\"),\n});\n\n// Explicit annotation: the inferred recipe type exceeds tsc's declaration\n// serialization limit (TS7056) under `tsc -p tsconfig.build.json`.\nexport const inputField: RuntimeFn<{\n\tvariant: Record<\"default\" | \"composer\", ComplexStyleRule>;\n}> = recipe({\n\tbase: [\n\t\tinputFieldBase,\n\t\t{\n\t\t\tdisplay: \"flex\",\n\t\t\t// The control takes the whole first line whenever attachments are present\n\t\t\t// (see the `data-has-attachments` rule below), so the chips and the button\n\t\t\t// wrap onto the second. Keep wrapping unconditional because Chrome and\n\t\t\t// Firefox at the floor in `messaging/vite.browser-targets.mjs` lack\n\t\t\t// `:has()`. Without attachments nothing wraps: the control has\n\t\t\t// flex-basis 0, icons and button are 22px.\n\t\t\tflexWrap: \"wrap\",\n\t\t\talignItems: \"flex-end\",\n\t\t\tgap: t(\"gap-8\"),\n\t\t\twidth: \"100%\",\n\t\t\tminHeight: \"40px\",\n\t\t\tboxSizing: \"border-box\",\n\t\t\tpaddingInline: t(\"padding-12\"),\n\t\t\tpaddingBlock: t(\"padding-8\"),\n\t\t\tborder: `${t(\"border-width-default\")} solid ${t(\"color-border-control\")}`,\n\t\t\tbackgroundColor: t(\"color-background-default\"),\n\t\t\tborderRadius: t(\"border-radius-input\"),\n\t\t\tcursor: \"text\",\n\t\t\tselectors: {\n\t\t\t\t\"&[data-focus-within]\": {\n\t\t\t\t\tborderColor: t(\"color-border-accent\"),\n\t\t\t\t\t...focusRing,\n\t\t\t\t},\n\t\t\t\t\"&[data-disabled]\": {\n\t\t\t\t\tbackgroundColor: t(\"color-background-disabled\"),\n\t\t\t\t\tborderColor: t(\"color-border-default\"),\n\t\t\t\t\tcursor: \"not-allowed\",\n\t\t\t\t},\n\t\t\t\t// After focus-within and disabled so an invalid field keeps its destructive border.\n\t\t\t\t\"&[data-invalid]\": {\n\t\t\t\t\tborderColor: t(\"color-border-destructive\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\t\"@media\": {\n\t\t\t\t\"(prefers-reduced-motion: no-preference)\": {\n\t\t\t\t\ttransitionProperty: \"border-color\",\n\t\t\t\t\ttransitionDuration: t(\"duration-fast\"),\n\t\t\t\t\ttransitionTimingFunction: t(\"easing-standard\"),\n\t\t\t\t},\n\t\t\t\t// Token-color focus ring flattens in forced-colors; redraw with a system color.\n\t\t\t\t\"(forced-colors: active)\": {\n\t\t\t\t\tselectors: {\n\t\t\t\t\t\t\"&[data-focus-within]\": {\n\t\t\t\t\t\t\toutline: \"2px solid Highlight\",\n\t\t\t\t\t\t\toutlineOffset: \"2px\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t],\n\tvariants: {\n\t\tvariant: {\n\t\t\t// Default field styling lives in `base`; this key exists so the variant\n\t\t\t// axis accepts \"default\" as an explicit no-op.\n\t\t\tdefault: {},\n\t\t\tcomposer: [\n\t\t\t\tinputFieldComposer,\n\t\t\t\t{\n\t\t\t\t\tborderRadius: t(\"border-radius-composer\"),\n\t\t\t\t\tborder: `${t(\"border-width-default\")} solid ${t(\"composer-border-default\")}`,\n\t\t\t\t\tbackgroundColor: t(\"composer-background\"),\n\t\t\t\t\tselectors: {\n\t\t\t\t\t\t\"&[data-focus-within]\": {\n\t\t\t\t\t\t\tborderColor: t(\"composer-border-active\"),\n\t\t\t\t\t\t\toutline: `${t(\"border-width-focus\")} solid ${t(\"composer-border-focus\")}`,\n\t\t\t\t\t\t\toutlineOffset: t(\"border-width-focus\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t\t// Re-declared after focus-within for the same reason the base does:\n\t\t\t\t\t\t// variant styles are emitted after base at equal specificity, so\n\t\t\t\t\t\t// without this the composer's focus colour would win and an invalid\n\t\t\t\t\t\t// composer would lose its destructive border while focused.\n\t\t\t\t\t\t\"&[data-invalid]\": {\n\t\t\t\t\t\t\tborderColor: t(\"color-border-destructive\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tvariant: \"default\",\n\t},\n});\n\nexport const inputControl = style({\n\tflex: 1,\n\tminWidth: 0,\n\tmargin: 0,\n\tpadding: 0,\n\tborder: \"none\",\n\tbackgroundColor: \"transparent\",\n\toutline: \"none\",\n\tappearance: \"none\",\n\t...bodyText,\n\tcolor: t(\"color-content-default\"),\n\tselectors: {\n\t\t\"&::placeholder\": {\n\t\t\tcolor: t(\"color-content-secondary\"),\n\t\t\topacity: 1,\n\t\t},\n\t\t\"&[data-disabled]\": {\n\t\t\tcolor: t(\"color-content-disabled\"),\n\t\t\tcursor: \"not-allowed\",\n\t\t},\n\t\t\"&[data-disabled]::placeholder\": {\n\t\t\tcolor: t(\"color-content-disabled\"),\n\t\t},\n\t},\n});\n\n// Same control base as the single-line inputControl (typography, colors,\n// placeholder/disabled states), plus the multi-line-specific box behavior.\nexport const inputTextArea = style([\n\tinputControl,\n\t{\n\t\tdisplay: \"block\",\n\t\twidth: \"100%\",\n\t\tboxSizing: \"border-box\",\n\t\t// Height is driven by the auto-grow logic in InputTextArea; the user never drags it.\n\t\tresize: \"none\",\n\t\toverflowY: \"auto\",\n\t\toverflowWrap: \"anywhere\",\n\t\twordBreak: \"break-word\",\n\t\tscrollbarWidth: \"thin\",\n\t\tscrollbarColor: `${t(\"color-border-default\")} transparent`,\n\t},\n]);\n\nconst inputButtonBase = style({});\nconst inputButtonTertiary = style({});\n\nexport const inputButton = recipe({\n\tbase: [\n\t\tinputButtonBase,\n\t\t{\n\t\t\tposition: \"relative\",\n\t\t\tisolation: \"isolate\",\n\t\t\tdisplay: \"inline-flex\",\n\t\t\talignItems: \"center\",\n\t\t\tjustifyContent: \"center\",\n\t\t\tflexShrink: 0,\n\t\t\t// Circular send/action button — 22px square per Figma (matches the field's icon size).\n\t\t\twidth: \"22px\",\n\t\t\theight: \"22px\",\n\t\t\tpadding: 0,\n\t\t\tborder: \"none\",\n\t\t\tborderRadius: t(\"border-radius-full\"),\n\t\t\tbackgroundColor: t(\"button-primary-background\"),\n\t\t\tcolor: t(\"button-primary-content\"),\n\t\t\tcursor: \"pointer\",\n\t\t\tappearance: \"none\",\n\t\t\toutline: \"none\",\n\t\t\toverflow: \"hidden\",\n\t\t\t\"::after\": {\n\t\t\t\tcontent: '\"\"',\n\t\t\t\tposition: \"absolute\",\n\t\t\t\tinset: 0,\n\t\t\t\tborderRadius: \"inherit\",\n\t\t\t\tbackgroundColor: \"currentColor\",\n\t\t\t\topacity: 0,\n\t\t\t\tpointerEvents: \"none\",\n\t\t\t\tzIndex: -1,\n\t\t\t},\n\t\t\tselectors: {\n\t\t\t\t\"&[data-hovered]:not([data-disabled])::after\": {\n\t\t\t\t\topacity: t(\"opacity-state-hover\"),\n\t\t\t\t},\n\t\t\t\t\"&[data-focus-visible]:not([data-disabled])::after\": {\n\t\t\t\t\topacity: t(\"opacity-state-focus\"),\n\t\t\t\t},\n\t\t\t\t\"&[data-pressed]:not([data-disabled])::after\": {\n\t\t\t\t\topacity: t(\"opacity-state-pressed\"),\n\t\t\t\t},\n\t\t\t\t\"&[data-focus-visible]:not([data-disabled])\": focusRing,\n\t\t\t\t\"&[data-disabled]\": {\n\t\t\t\t\tcursor: \"not-allowed\",\n\t\t\t\t\tbackgroundColor: t(\"color-background-disabled\"),\n\t\t\t\t\tcolor: t(\"color-content-disabled\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\t\"@media\": {\n\t\t\t\t\"(prefers-reduced-motion: no-preference)\": {\n\t\t\t\t\tselectors: {\n\t\t\t\t\t\t\"&::after\": {\n\t\t\t\t\t\t\ttransition: `opacity ${t(\"duration-fast\")} ${t(\"easing-standard\")}`,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t// Token-color focus ring flattens in forced-colors; redraw with a system color.\n\t\t\t\t\"(forced-colors: active)\": {\n\t\t\t\t\tselectors: {\n\t\t\t\t\t\t\"&[data-focus-visible]:not([data-disabled])\": {\n\t\t\t\t\t\t\toutline: \"2px solid Highlight\",\n\t\t\t\t\t\t\toutlineOffset: \"2px\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t],\n\tvariants: {\n\t\tvariant: {\n\t\t\tprimary: {},\n\t\t\ttertiary: [\n\t\t\t\tinputButtonTertiary,\n\t\t\t\t{\n\t\t\t\t\t// Meet the 24px target minimum without changing the send slot's 22px footprint.\n\t\t\t\t\twidth: \"24px\",\n\t\t\t\t\theight: \"24px\",\n\t\t\t\t\tmargin: \"-1px\",\n\t\t\t\t\tbackgroundColor: \"transparent\",\n\t\t\t\t\tcolor: t(\"color-content-secondary\"),\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tvariant: \"primary\",\n\t},\n});\n\nexport const inputLabel = style({\n\t...bodyText,\n\tmarginBottom: t(\"gap-8\"),\n\tcolor: t(\"color-content-default\"),\n});\n\nexport const inputHelperText = style({\n\tmarginTop: t(\"gap-4\"),\n\t...typography(\"caption\", \"regular\"),\n\tcolor: t(\"color-content-secondary\"),\n\tselectors: {\n\t\t\"&[data-invalid]\": {\n\t\t\tcolor: t(\"color-content-destructive\"),\n\t\t},\n\t},\n});\n\nglobalStyle(`${inputFieldBase} [data-slot='icon']`, iconSlotSizing);\nglobalStyle(`${inputButtonBase} [data-slot='icon']`, iconSlotSizing);\n\n// Direct child only: field-level icons follow content color. The send button's\n// icon is a deeper descendant, so it deliberately has no rule of its own — it\n// inherits the button's paired tokens (button-primary-content over\n// button-primary-background, or the disabled pair). Giving the icon its own\n// background re-pairs an accent foreground with a neutral backdrop, and those\n// two are unrelated tokens: a customer tint near the surface color then renders\n// the arrow at ~1:1.\nglobalStyle(`${inputFieldBase} > [data-slot='icon']`, {\n\tcolor: t(\"color-content-secondary\"),\n});\n\nglobalStyle(`${inputFieldBase}[data-disabled] > [data-slot='icon']`, {\n\tcolor: t(\"color-content-disabled\"),\n});\n\n// Composer variant re-themes the field's content colors to the composer-* tokens.\n// The control (input/textarea) and field-level icons are descendants of the field,\n// so these ride the composer anchor rather than the field recipe.\n/**\n * With attachments in the field the control owns the first line, so the chips\n * and the send button fall onto the second and bottom-align there.\n *\n * Driven by an attribute the caller sets rather than `:has()`, which the iOS 15\n * baseline does not have.\n */\nglobalStyle(`${inputFieldBase}[data-has-attachments] ${inputControl}`, {\n\tflexBasis: \"100%\",\n});\n\n// Figma stacks the text and the chips 20px apart while the send button keeps its\n// 8px from the chips, so the two axes take different gaps.\nglobalStyle(`${inputFieldBase}[data-has-attachments]`, {\n\trowGap: t(\"gap-20\"),\n});\n\nglobalStyle(`${inputFieldComposer} ${inputControl}`, {\n\tcolor: t(\"composer-content-default\"),\n});\n\nglobalStyle(`${inputFieldComposer} ${inputControl}::placeholder`, {\n\tcolor: t(\"composer-content-secondary\"),\n});\n\nglobalStyle(`${inputFieldComposer} > [data-slot='icon']`, {\n\tcolor: t(\"composer-content-secondary\"),\n});\n\nglobalStyle(`${inputFieldComposer} ${inputButtonTertiary}`, {\n\tcolor: t(\"composer-content-secondary\"),\n});\n\n// Equal specificity: later order overrides the base disabled fill and composer colour.\nglobalStyle(`${inputButtonTertiary}[data-disabled]`, {\n\tbackgroundColor: \"transparent\",\n\tcolor: t(\"color-content-disabled\"),\n});\n\n// The composer rules above are descendant selectors, so they tie with the field\n// recipe's [data-disabled] rules on specificity and win on order. Re-assert the\n// disabled colors after them or a disabled control renders as if it were editable.\nglobalStyle(`${inputFieldComposer} ${inputControl}[data-disabled]`, {\n\tcolor: t(\"color-content-disabled\"),\n});\n\nglobalStyle(\n\t`${inputFieldComposer} ${inputControl}[data-disabled]::placeholder`,\n\t{\n\t\tcolor: t(\"color-content-disabled\"),\n\t},\n);\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.css.js","names":[],"sources":["../../../src/components/Radio/Radio.css.ts"],"sourcesContent":["import { globalStyle, style } from \"@vanilla-extract/css\";\nimport { recipe } from \"@vanilla-extract/recipes\";\nimport {\n\tcontrolRowFrame,\n\tcontrolRowSlotRules,\n} from \"../../styles/control-row.js\";\nimport { focusRing } from \"../../styles/focus-ring.js\";\nimport { typography } from \"../../styles/typography.js\";\nimport { t } from \"../../tokens/index.js\";\n\n// Figma's `button-size/xs` (24px) has no LovelaceToken; the checked indicator's\n// inset is likewise fixed visual detail Figma renders as a flattened raster with\n// no token (5px inset inside the 1px border → 12px center dot). Both are\n// hardcoded like a fixed frame size.\nconst CONTROL_SIZE = \"24px\";\nconst INDICATOR_INSET = \"5px\";\n\n// Empty handle class: a recipe can't target a descendant, so the row variant's\n// slot rules are attached to a stable class instead (same trick as Button's base).\nconst radioRowBase = style({});\n\nexport const radioGroup = style({\n\tdisplay: \"flex\",\n\tflexDirection: \"column\",\n\tgap: t(\"gap-20\"),\n\tselectors: {\n\t\t'&[data-orientation=\"horizontal\"]': {\n\t\t\tflexDirection: \"row\",\n\t\t},\n\t},\n});\n\n/**\n * The RAC `Radio` label. `inline` lays the control out beside its label; `row` is\n * the 40px selectable row Figma draws for a menu item, for a `RadioGroup`\n * rendered as a list of options.\n */\nexport const radioRoot = recipe({\n\tbase: {\n\t\tcursor: \"pointer\",\n\t\tuserSelect: \"none\",\n\t\tselectors: {\n\t\t\t\"&[data-disabled]\": {\n\t\t\t\tcursor: \"not-allowed\",\n\t\t\t},\n\t\t},\n\t},\n\tvariants: {\n\t\tvariant: {\n\t\t\tinline: {\n\t\t\t\tdisplay: \"inline-flex\",\n\t\t\t\talignItems: \"center\",\n\t\t\t\tgap: t(\"gap-12\"),\n\t\t\t},\n\t\t\trow: [radioRowBase, controlRowFrame],\n\t\t},\n\t},\n\tdefaultVariants: { variant: \"inline\" },\n});\n\nglobalStyle(`${radioRowBase} > [data-slot=\"icon\"]`, controlRowSlotRules.icon);\nglobalStyle(`${radioRowBase} > [data-slot=\"label\"]`, controlRowSlotRules.label);\n\n/**\n * The 24px control circle. Selection and interaction state are read from whichever\n * host element carries React Aria's `data-*` — the RAC label, or a `MenuItem` row —\n * so the rules below are child selectors that name no host. Interaction rules\n * additionally require `[data-state-layer]`, which the indicator sets only when it\n * is the sole affordance; inside a row the row paints hover and focus itself.\n */\nexport const radioControl = style({\n\tposition: \"relative\",\n\tboxSizing: \"border-box\",\n\tflexShrink: 0,\n\twidth: CONTROL_SIZE,\n\theight: CONTROL_SIZE,\n\tborderRadius: t(\"border-radius-full\"),\n\tborderStyle: \"solid\",\n\tborderWidth: t(\"border-width-default\"),\n\t// Unchecked resting state; the selected rules below override it.\n\tbackgroundColor: t(\"color-background-default\"),\n\tborderColor: t(\"color-border-
|
|
1
|
+
{"version":3,"file":"Radio.css.js","names":[],"sources":["../../../src/components/Radio/Radio.css.ts"],"sourcesContent":["import { globalStyle, style } from \"@vanilla-extract/css\";\nimport { recipe } from \"@vanilla-extract/recipes\";\nimport {\n\tcontrolRowFrame,\n\tcontrolRowSlotRules,\n} from \"../../styles/control-row.js\";\nimport { focusRing } from \"../../styles/focus-ring.js\";\nimport { typography } from \"../../styles/typography.js\";\nimport { t } from \"../../tokens/index.js\";\n\n// Figma's `button-size/xs` (24px) has no LovelaceToken; the checked indicator's\n// inset is likewise fixed visual detail Figma renders as a flattened raster with\n// no token (5px inset inside the 1px border → 12px center dot). Both are\n// hardcoded like a fixed frame size.\nconst CONTROL_SIZE = \"24px\";\nconst INDICATOR_INSET = \"5px\";\n\n// Empty handle class: a recipe can't target a descendant, so the row variant's\n// slot rules are attached to a stable class instead (same trick as Button's base).\nconst radioRowBase = style({});\n\nexport const radioGroup = style({\n\tdisplay: \"flex\",\n\tflexDirection: \"column\",\n\tgap: t(\"gap-20\"),\n\tselectors: {\n\t\t'&[data-orientation=\"horizontal\"]': {\n\t\t\tflexDirection: \"row\",\n\t\t},\n\t},\n});\n\n/**\n * The RAC `Radio` label. `inline` lays the control out beside its label; `row` is\n * the 40px selectable row Figma draws for a menu item, for a `RadioGroup`\n * rendered as a list of options.\n */\nexport const radioRoot = recipe({\n\tbase: {\n\t\tcursor: \"pointer\",\n\t\tuserSelect: \"none\",\n\t\tselectors: {\n\t\t\t\"&[data-disabled]\": {\n\t\t\t\tcursor: \"not-allowed\",\n\t\t\t},\n\t\t},\n\t},\n\tvariants: {\n\t\tvariant: {\n\t\t\tinline: {\n\t\t\t\tdisplay: \"inline-flex\",\n\t\t\t\talignItems: \"center\",\n\t\t\t\tgap: t(\"gap-12\"),\n\t\t\t},\n\t\t\trow: [radioRowBase, controlRowFrame],\n\t\t},\n\t},\n\tdefaultVariants: { variant: \"inline\" },\n});\n\nglobalStyle(`${radioRowBase} > [data-slot=\"icon\"]`, controlRowSlotRules.icon);\nglobalStyle(`${radioRowBase} > [data-slot=\"label\"]`, controlRowSlotRules.label);\n\n/**\n * The 24px control circle. Selection and interaction state are read from whichever\n * host element carries React Aria's `data-*` — the RAC label, or a `MenuItem` row —\n * so the rules below are child selectors that name no host. Interaction rules\n * additionally require `[data-state-layer]`, which the indicator sets only when it\n * is the sole affordance; inside a row the row paints hover and focus itself.\n */\nexport const radioControl = style({\n\tposition: \"relative\",\n\tboxSizing: \"border-box\",\n\tflexShrink: 0,\n\twidth: CONTROL_SIZE,\n\theight: CONTROL_SIZE,\n\tborderRadius: t(\"border-radius-full\"),\n\tborderStyle: \"solid\",\n\tborderWidth: t(\"border-width-default\"),\n\t// Unchecked resting state; the selected rules below override it.\n\tbackgroundColor: t(\"color-background-default\"),\n\tborderColor: t(\"color-border-control\"),\n\ttransitionProperty: \"background-color, border-color, box-shadow\",\n\ttransitionDuration: t(\"duration-fast\"),\n\ttransitionTimingFunction: t(\"easing-standard\"),\n\tselectors: {\n\t\t\"[data-hovered]:not([data-selected]):not([data-disabled]) > &[data-state-layer]\":\n\t\t\t{\n\t\t\t\tborderColor: t(\"color-border-control-hover\"),\n\t\t\t},\n\t\t// Checked — solid inverse disc; the white ring is drawn by radioDot.\n\t\t\"[data-selected] > &\": {\n\t\t\tbackgroundColor: t(\"color-background-inverse\"),\n\t\t\tborderColor: t(\"color-background-inverse\"),\n\t\t},\n\t\t// Focus — outer 2px focus ring for both states (matches Chip's double ring).\n\t\t\"[data-focus-visible]:not([data-disabled]) > &[data-state-layer]\":\n\t\t\tfocusRing,\n\t\t// Focus (unchecked) — inner accent border completes the double ring.\n\t\t\"[data-focus-visible]:not([data-selected]):not([data-disabled]) > &[data-state-layer]\":\n\t\t\t{\n\t\t\t\tborderColor: t(\"color-border-accent\"),\n\t\t\t},\n\t\t// Disabled — unchecked.\n\t\t\"[data-disabled]:not([data-selected]) > &\": {\n\t\t\tbackgroundColor: t(\"color-background-tertiary\"),\n\t\t\tborderColor: t(\"color-border-default\"),\n\t\t},\n\t\t// Disabled — checked disc fades to the disabled background.\n\t\t\"[data-disabled][data-selected] > &\": {\n\t\t\tbackgroundColor: t(\"color-background-disabled\"),\n\t\t\tborderColor: t(\"color-background-disabled\"),\n\t\t},\n\t},\n\t\"@media\": {\n\t\t\"(forced-colors: active)\": {\n\t\t\tselectors: {\n\t\t\t\t\"[data-focus-visible]:not([data-disabled]) > &[data-state-layer]\": {\n\t\t\t\t\toutline: \"2px solid Highlight\",\n\t\t\t\t\toutlineOffset: \"2px\",\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n});\n\n// Solid center dot on the checked disc (dark disc → filled light center circle).\n// Hidden (transparent) until the option is selected.\nexport const radioDot = style({\n\tposition: \"absolute\",\n\tinset: INDICATOR_INSET,\n\tborderRadius: t(\"border-radius-full\"),\n\tbackgroundColor: \"transparent\",\n\tpointerEvents: \"none\",\n\tselectors: {\n\t\t[`[data-selected] > ${radioControl} > &`]: {\n\t\t\tbackgroundColor: t(\"color-background-default\"),\n\t\t},\n\t\t[`[data-selected][data-disabled] > ${radioControl} > &`]: {\n\t\t\tbackgroundColor: t(\"color-background-tertiary\"),\n\t\t},\n\t},\n\t\"@media\": {\n\t\t// Author background-colors collapse to Canvas in forced-colors mode, so the\n\t\t// disc/dot contrast is lost — redraw the dot with a system color instead.\n\t\t\"(forced-colors: active)\": {\n\t\t\tselectors: {\n\t\t\t\t[`[data-selected] > ${radioControl} > &`]: {\n\t\t\t\t\tbackgroundColor: \"CanvasText\",\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n});\n\nexport const radioLabel = style({\n\t...typography(\"body\", \"regular\"),\n\tcolor: t(\"color-content-default\"),\n\tselectors: {\n\t\t\"[data-disabled] > &\": {\n\t\t\tcolor: t(\"color-content-disabled\"),\n\t\t},\n\t},\n});\n"],"mappings":""}
|
package/dist/style.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.slrdvx0{color:var(--lovelace-message-content-default);font-family:var(--lovelace-font-family-body);font-weight:var(--lovelace-font-weight-regular);font-size:var(--lovelace-message-content-font-size-body);line-height:var(--lovelace-message-content-line-height-body);overflow-wrap:anywhere;word-break:break-word}.slrdvx0 :is(p,ul,ol,h1,h2,h3,h4,h5,h6,pre,blockquote,table,hr){margin:0}.slrdvx0 :is(ul,ol){margin:var(--lovelace-gap-4) 0;padding-inline-start:var(--lovelace-padding-16)}.slrdvx0 p+p{margin-top:var(--lovelace-gap-16)}:where(.slrdvx0) a{color:var(--lovelace-message-content-link);text-decoration:underline}:where(.slrdvx0) strong{font-weight:var(--lovelace-font-weight-semi-bold)}._1xn6t060{text-align:start;flex-direction:column;justify-content:center;min-width:0;min-height:24px;display:flex}._1chqu661{box-sizing:border-box;align-items:center;gap:var(--lovelace-gap-8);min-width:0;padding:var(--lovelace-padding-8);border-radius:var(--lovelace-border-radius-6);background-color:var(--lovelace-color-background-quaternary);color:var(--lovelace-color-content-default);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-regular);text-align:start;appearance:none;box-shadow:0 var(--lovelace-elevation-2-offset-y) var(--lovelace-elevation-2-blur) var(--lovelace-elevation-2-spread) var(--lovelace-elevation-2-color);border:0;display:flex;overflow:hidden}._1chqu662{isolation:isolate;cursor:pointer;outline:none;height:36px;position:relative}._1chqu662:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}._1chqu662[data-hovered]:after{opacity:var(--lovelace-opacity-state-hover)}._1chqu662[data-focus-visible]:after{opacity:var(--lovelace-opacity-state-focus)}._1chqu662[data-pressed]:after{opacity:var(--lovelace-opacity-state-pressed)}._1chqu662[data-focus-visible]{outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}._1chqu663{max-width:148px;height:40px}._1chqu664{border-radius:var(--lovelace-border-radius-6);flex-shrink:0;justify-content:center;align-items:center;width:24px;height:24px;display:inline-flex;overflow:hidden}._1chqu664 [data-slot=icon]{font-size:var(--lovelace-icon-size-control)}._1chqu665{object-fit:cover;width:100%;height:100%}._1chqu666{text-overflow:ellipsis;white-space:nowrap;word-break:break-word;min-width:0;overflow:hidden}@media (forced-colors:active){._1chqu662[data-focus-visible]{outline-offset:2px;outline:2px solid highlight}}.kmbju21{isolation:isolate;box-sizing:border-box;border-radius:var(--lovelace-border-radius-avatar);background-color:var(--lovelace-avatar-background);color:var(--lovelace-avatar-content);font-family:var(--lovelace-font-family-body);font-weight:var(--lovelace-font-weight-semi-bold);text-align:center;-webkit-user-select:none;user-select:none;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex;position:relative;overflow:hidden}.kmbju22{width:24px;height:24px;font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body)}.kmbju23{width:36px;height:36px;font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body)}.kmbju24{width:48px;height:48px;font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body)}.kmbju25{width:72px;height:72px;font-size:var(--lovelace-font-size-title-large);line-height:var(--lovelace-line-height-title-large)}.kmbju26{flex-shrink:0}.kmbju27{width:24px;height:24px}.kmbju28{width:36px;height:36px}.kmbju29{width:48px;height:48px}.kmbju2a{width:72px;height:72px}.kmbju20 [data-slot=image]{width:100%;max-width:none;height:auto;max-height:none;margin:auto;position:absolute;inset:0}.kmbju20 [data-slot=icon]{flex-shrink:0}.kmbju20[data-size=sm] [data-slot=icon]{font-size:var(--lovelace-icon-size-sm)}.kmbju20[data-size=md] [data-slot=icon]{font-size:var(--lovelace-icon-size-md)}.kmbju20[data-size=lg] [data-slot=icon]{font-size:32px}.kmbju20[data-size=xl] [data-slot=icon]{font-size:36px}._1lzdalt0{aspect-ratio:1;color:currentColor;flex-shrink:0;justify-content:center;align-items:center;width:1em;height:1em;line-height:0;display:inline-flex}._3tx76z0{width:3.125em}.fpbgjm0{gap:var(--lovelace-gap-8);box-sizing:border-box;width:100%;padding-inline:var(--lovelace-padding-12);padding-block:var(--lovelace-padding-8);font-family:var(--lovelace-font-family-body);font-weight:var(--lovelace-font-weight-medium);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);overflow-wrap:break-word;justify-content:center;align-items:center;display:flex}.fpbgjm2{background-color:var(--lovelace-color-background-success-light);color:var(--lovelace-color-content-success)}.fpbgjm3{background-color:var(--lovelace-color-background-warning-light);color:var(--lovelace-color-content-warning)}.fpbgjm4{background-color:var(--lovelace-color-background-destructive-light);color:var(--lovelace-color-content-destructive)}.fpbgjm5{min-width:0}.fpbgjm0>[data-slot=icon]{font-size:var(--lovelace-icon-size-control);flex-shrink:0}.fpbgjm6{overflow:hidden}.fpbgjm7[data-entering],.fpbgjm7[data-exiting]{transform:translateY(-100%)}.fpbgjm7[data-swapping]{opacity:0}@media (prefers-reduced-motion:no-preference){.fpbgjm7{transition:transform var(--lovelace-duration-medium) var(--lovelace-easing-standard), opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard)}}._1kxa7cu0{z-index:200;flex-direction:column;display:flex;position:fixed;inset:0}._1kxa7cu0[data-entering],._1kxa7cu0[data-exiting]{opacity:0}@media (prefers-reduced-motion:no-preference){._1kxa7cu0{transition:opacity var(--lovelace-duration-medium) var(--lovelace-easing-standard)}}.xywi8y0{padding:var(--lovelace-padding-16);justify-content:flex-end;align-items:center}.xywi8y1{background-color:var(--lovelace-elevation-2-background);border-radius:var(--lovelace-border-radius-container);width:fit-content;max-width:min(320px,100%);min-height:0;max-height:100%;box-shadow:var(--lovelace-elevation-4);flex-direction:column;display:flex;position:relative;overflow:hidden}.xywi8y1[data-entering],.xywi8y1[data-exiting]{transform:translateY(8px)}.xywi8y2{outline:none;flex-direction:column;flex:auto;min-height:0;max-height:100%;display:flex}@media (prefers-reduced-motion:no-preference){.xywi8y1{transition:transform var(--lovelace-duration-medium) var(--lovelace-easing-standard)}}.ateptb1{isolation:isolate;justify-content:center;align-items:center;gap:var(--lovelace-gap-8);padding-inline:var(--lovelace-padding-12);box-sizing:border-box;border:var(--lovelace-border-width-default) solid transparent;border-radius:var(--lovelace-border-radius-button);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-medium);white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none;appearance:none;transition-property:background-color,border-color;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard);outline:none;text-decoration:none;display:inline-flex;position:relative}.ateptb1:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}.ateptb1[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}.ateptb1[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}.ateptb1[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}.ateptb1[data-focus-visible]:not([data-disabled]){outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}.ateptb1[data-disabled]{cursor:not-allowed;color:var(--lovelace-color-content-disabled)}.ateptb2{background-color:var(--lovelace-button-primary-background);color:var(--lovelace-button-primary-content)}.ateptb2[data-disabled]{background-color:var(--lovelace-color-background-disabled)}.ateptb3{background-color:var(--lovelace-color-background-destructive);color:var(--lovelace-color-content-on-destructive)}.ateptb3[data-disabled]{background-color:var(--lovelace-color-background-disabled)}.ateptb4{background-color:var(--lovelace-color-background-default);color:var(--lovelace-color-content-default);border-color:var(--lovelace-color-border-default)}.ateptb5{background-color:var(--lovelace-color-background-default);color:var(--lovelace-color-content-destructive);border-color:var(--lovelace-color-border-destructive)}.ateptb6{color:var(--lovelace-color-content-default);background-color:#0000}.ateptb7{color:var(--lovelace-color-content-destructive);background-color:#0000}.ateptb8{height:40px}.ateptb9{height:32px}.ateptb0 [data-slot=icon]{font-size:var(--lovelace-icon-size-control);flex-shrink:0}@media (forced-colors:active){.ateptb1[data-focus-visible]:not([data-disabled]){outline-offset:2px;outline:2px solid highlight}}.ptvtw60{max-width:100%;display:block}._10mu92g0{isolation:isolate;box-sizing:border-box;border:var(--lovelace-border-width-default) solid var(--lovelace-color-border-default);border-radius:var(--lovelace-border-radius-message);background-color:var(--lovelace-color-background-default);width:100%;color:var(--lovelace-color-content-default);text-align:start;flex-direction:column;margin:0;padding:0;display:flex;position:relative;overflow:hidden}._10mu92g1{appearance:none;font:inherit;cursor:pointer;outline:none}._10mu92g1:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}._10mu92g1[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}._10mu92g1[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}._10mu92g1[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}._10mu92g1[data-focus-visible]:not([data-disabled]){outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}._10mu92g1[data-disabled]{cursor:default}._10mu92g2{aspect-ratio:16/9;background-color:var(--lovelace-color-background-tertiary);width:100%;color:var(--lovelace-color-content-disabled);flex-shrink:0;justify-content:center;align-items:center;display:flex;overflow:hidden}._10mu92g3{object-fit:cover;width:100%;height:100%;display:block}._10mu92g2 [data-slot=icon]{font-size:var(--lovelace-icon-size-lg)}._10mu92g4{gap:var(--lovelace-gap-4);min-width:0;padding:var(--lovelace-padding-12);flex-direction:column;display:flex}._10mu92g5{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-semi-bold);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}._10mu92g6{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-caption);line-height:var(--lovelace-line-height-caption);font-weight:var(--lovelace-font-weight-regular);overflow-wrap:anywhere;-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}._10mu92g7{gap:var(--lovelace-gap-8);padding:var(--lovelace-padding-8) var(--lovelace-padding-12) var(--lovelace-padding-12);flex-direction:column;margin-top:auto;display:flex}._10mu92g7>[data-slot=button]{width:100%}@media (forced-colors:active){._10mu92g1[data-focus-visible]:not([data-disabled]){outline-offset:2px;outline:2px solid highlight}}._1nvcxt20{isolation:isolate;box-sizing:border-box;border:var(--lovelace-border-width-default) solid transparent;border-radius:var(--lovelace-border-radius-button);font-size:var(--lovelace-icon-size-control);cursor:pointer;-webkit-user-select:none;user-select:none;appearance:none;transition-property:background-color,border-color;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard);outline:none;flex-shrink:0;justify-content:center;align-items:center;padding:0;display:inline-flex;position:relative}._1nvcxt20:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}._1nvcxt20[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}._1nvcxt20[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}._1nvcxt20[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}._1nvcxt20[data-focus-visible]:not([data-disabled]){outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}._1nvcxt20[data-disabled]{cursor:not-allowed;color:var(--lovelace-color-content-disabled)}._1nvcxt21{background-color:var(--lovelace-button-primary-background);color:var(--lovelace-button-primary-content)}._1nvcxt21[data-disabled]{background-color:var(--lovelace-color-background-disabled)}._1nvcxt22{background-color:var(--lovelace-color-background-destructive);color:var(--lovelace-color-content-on-destructive)}._1nvcxt22[data-disabled]{background-color:var(--lovelace-color-background-disabled)}._1nvcxt23{background-color:var(--lovelace-color-background-default);color:var(--lovelace-color-content-default);border-color:var(--lovelace-color-border-default)}._1nvcxt24{background-color:var(--lovelace-color-background-default);color:var(--lovelace-color-content-destructive);border-color:var(--lovelace-color-border-destructive)}._1nvcxt25{color:var(--lovelace-color-content-default);background-color:#0000}._1nvcxt26{color:var(--lovelace-color-content-destructive);background-color:#0000}._1nvcxt27{width:40px;height:40px}._1nvcxt28{width:32px;height:32px}._1nvcxt29{width:24px;height:24px}@media (forced-colors:active){._1nvcxt20[data-focus-visible]:not([data-disabled]){outline-offset:2px;outline:2px solid highlight}}._1vler2p0{align-items:stretch;gap:var(--lovelace-gap-20);flex-direction:column;min-width:0;display:flex}._1vler2p1{gap:var(--lovelace-gap-12);padding-block:var(--lovelace-padding-4);padding-inline:var(--lovelace-padding-12);scroll-padding-inline:var(--lovelace-padding-12);scroll-snap-type:x mandatory;scrollbar-width:none;display:flex;overflow:auto hidden}._1vler2p1::-webkit-scrollbar{display:none}._1vler2p2{scroll-snap-align:center;flex:0 0 min(280px,80%);min-width:0;display:flex}._1vler2p2:first-child{scroll-snap-align:start}._1vler2p2:last-child{scroll-snap-align:end}._1vler2p3{justify-content:center;align-items:center;display:flex}._1vler2p4{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-caption);line-height:var(--lovelace-line-height-caption);font-weight:var(--lovelace-font-weight-regular);align-items:center;gap:var(--lovelace-gap-4);padding-inline:var(--lovelace-padding-16);color:var(--lovelace-color-content-default);font-variant-numeric:tabular-nums;display:flex}._1vler2p5{text-align:center;min-width:24px}._1vler2p6{clip:rect(0, 0, 0, 0);white-space:nowrap;-webkit-user-select:none;user-select:none;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.s7h2sn0{gap:var(--lovelace-gap-20);flex-direction:column;display:flex}.s7h2sn2{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-regular);color:var(--lovelace-color-content-default);cursor:pointer;-webkit-user-select:none;user-select:none;outline:none}.s7h2sn2[data-disabled]{cursor:not-allowed;color:var(--lovelace-color-content-disabled)}.s7h2sn3{align-items:center;gap:var(--lovelace-gap-12);display:inline-flex}.s7h2sn4{isolation:isolate;box-sizing:border-box;align-items:center;gap:var(--lovelace-gap-12);min-height:40px;padding-inline:var(--lovelace-padding-8);padding-block:var(--lovelace-padding-4);border-radius:var(--lovelace-border-radius-button);border:var(--lovelace-border-width-default) solid transparent;color:var(--lovelace-color-content-default);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);font-weight:var(--lovelace-font-weight-regular);line-height:var(--lovelace-line-height-body);text-align:start;cursor:pointer;-webkit-user-select:none;user-select:none;transition-property:background-color,border-color;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard);outline:none;display:flex;position:relative}.s7h2sn4:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}.s7h2sn4[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}.s7h2sn4[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}.s7h2sn4[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}.s7h2sn4[data-focus-visible]:not([data-disabled]){border-color:var(--lovelace-color-border-accent);outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}.s7h2sn4[data-disabled]{cursor:not-allowed;color:var(--lovelace-color-content-disabled)}.s7h2sn1>[data-slot=icon]{font-size:var(--lovelace-icon-size-lg);flex-shrink:0}.s7h2sn1>[data-slot=label]{text-align:start;overflow-wrap:anywhere;flex:1;min-width:0}.s7h2sn5{isolation:isolate;box-sizing:border-box;border-radius:var(--lovelace-border-radius-6);border-style:solid;border-width:var(--lovelace-border-width-default);border-color:var(--lovelace-color-border-default);background-color:var(--lovelace-color-background-default);width:24px;height:24px;color:var(--lovelace-color-content-inverse);transition-property:border-color,box-shadow;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard);flex-shrink:0;position:relative}.s7h2sn5:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}.s7h2sn6{color:currentColor;opacity:0;pointer-events:none;width:16px;height:16px;margin:auto;position:absolute;inset:0}[data-selected]>.s7h2sn5,[data-indeterminate]>.s7h2sn5{background-color:var(--lovelace-color-background-inverse);border-color:#0000}[data-hovered]:not([data-disabled]):not([data-selected]):not([data-indeterminate])>.s7h2sn5[data-state-layer]{border-color:var(--lovelace-color-border-medium)}[data-hovered]:not([data-disabled])>.s7h2sn5[data-state-layer]:after{opacity:var(--lovelace-opacity-state-hover)}[data-focus-visible]:not([data-disabled])>.s7h2sn5[data-state-layer]:after{opacity:var(--lovelace-opacity-state-focus)}[data-pressed]:not([data-disabled])>.s7h2sn5[data-state-layer]:after{opacity:var(--lovelace-opacity-state-pressed)}[data-focus-visible]:not([data-disabled])>.s7h2sn5[data-state-layer]{outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}[data-disabled]>.s7h2sn5{background-color:var(--lovelace-color-background-disabled);border-color:var(--lovelace-color-border-default);color:var(--lovelace-color-content-disabled)}[data-selected]:not([data-indeterminate])>.s7h2sn5>.s7h2sn6[data-glyph=check],[data-indeterminate]>.s7h2sn5>.s7h2sn6[data-glyph=dash]{opacity:1}@media (forced-colors:active){.s7h2sn4[data-focus-visible]:not([data-disabled]),[data-focus-visible]:not([data-disabled])>.s7h2sn5[data-state-layer]{outline-offset:2px;outline:2px solid highlight}}._18cnc771{isolation:isolate;box-sizing:border-box;border:var(--lovelace-border-width-default) solid transparent;font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-medium);white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none;appearance:none;transition-property:background-color,border-color;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard);outline:none;justify-content:center;align-items:center;display:inline-flex;position:relative}._18cnc771:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}._18cnc771:not([data-selected]){background-color:var(--lovelace-color-background-default);color:var(--lovelace-color-content-default);border-color:var(--lovelace-color-border-default)}._18cnc771[data-selected]{background-color:var(--lovelace-chip-background-selected);color:var(--lovelace-color-content-on-accent);border-color:#0000}._18cnc771[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}._18cnc771[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}._18cnc771[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}._18cnc771[data-focus-visible]:not([data-disabled]){border-color:var(--lovelace-color-border-accent);outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}._18cnc771[data-disabled]{cursor:not-allowed;color:var(--lovelace-color-content-disabled)}._18cnc772{min-width:80px;padding-inline:var(--lovelace-padding-12);border-radius:var(--lovelace-border-radius-pill)}._18cnc773,._18cnc774{border-radius:var(--lovelace-border-radius-button)}._18cnc777{height:40px}._18cnc778{height:48px}._18cnc779{width:40px;height:40px}._18cnc77a{width:48px;height:48px}._18cnc77b{width:40px;height:40px}._18cnc77c{width:48px;height:48px;font-size:var(--lovelace-font-size-title-large)}._18cnc770 [data-slot=icon]{font-size:var(--lovelace-icon-size-control);flex-shrink:0}@media (forced-colors:active){._18cnc771[data-focus-visible]:not([data-disabled]){outline-offset:2px;outline:2px solid highlight}}.onnuc90{text-align:center;align-items:center;gap:var(--lovelace-gap-16);padding:var(--lovelace-padding-16);background-color:var(--lovelace-elevation-2-background);flex-direction:column;display:flex}.onnuc91{flex-shrink:0;font-size:32px;line-height:0;display:flex}.onnuc92{color:var(--lovelace-color-content-warning)}.onnuc93{color:var(--lovelace-color-content-success)}.onnuc94{align-items:center;gap:var(--lovelace-gap-8);flex-direction:column;width:100%;display:flex}.onnuc95{text-align:center;width:100%;font-family:var(--lovelace-font-family-heading);font-size:var(--lovelace-font-size-title-large);line-height:var(--lovelace-line-height-title-large);font-weight:var(--lovelace-font-weight-medium);color:var(--lovelace-color-content-default);margin:0}.onnuc96{text-align:center;width:100%;font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-regular);color:var(--lovelace-color-content-secondary);margin:0}.onnuc97{align-items:stretch;gap:var(--lovelace-gap-8);flex-direction:column;width:100%;display:flex}._9zd2r40{padding:var(--lovelace-padding-16);background-color:var(--lovelace-color-scrim-subtle);justify-content:center;align-items:center}._9zd2r41{background-color:var(--lovelace-elevation-2-background);border-radius:var(--lovelace-border-radius-container);width:366px;max-width:100%;max-height:90%;box-shadow:var(--lovelace-elevation-2);flex-direction:column;display:flex;overflow:hidden}._9zd2r41[data-entering],._9zd2r41[data-exiting]{opacity:0;transform:scale(.95)}._9zd2r42{box-sizing:border-box;outline:none;flex-direction:column;flex:auto;width:100%;min-height:0;display:flex;overflow-y:auto}@media (prefers-reduced-motion:no-preference){._9zd2r41{transition-property:opacity,transform;transition-duration:var(--lovelace-duration-medium);transition-timing-function:var(--lovelace-easing-standard)}}.a07ce60{box-sizing:border-box}.a07ce61{width:100%;display:block}.a07ce62{justify-content:center;align-items:center;gap:var(--lovelace-gap-8);width:100%;display:flex}.a07ce63{justify-content:center;align-items:center;gap:var(--lovelace-gap-4);text-align:center;flex-direction:column;display:flex}.a07ce64{border:none;border-top:var(--lovelace-border-width-default) solid var(--lovelace-color-border-default);flex:1 1 0;width:100%;min-width:1px;height:0;margin:0}.a07ce65{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-caption);line-height:var(--lovelace-line-height-caption);color:var(--lovelace-color-content-secondary);font-weight:var(--lovelace-font-weight-regular);white-space:nowrap;flex-shrink:0;margin:0}.a07ce66{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-caption);line-height:var(--lovelace-line-height-caption);color:var(--lovelace-color-content-secondary);font-weight:var(--lovelace-font-weight-medium);margin:0}.a07ce67{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-caption);line-height:var(--lovelace-line-height-caption);color:var(--lovelace-color-content-secondary);font-weight:var(--lovelace-font-weight-regular);margin:0}._1vy5zjp0{flex-direction:column;flex:auto;min-height:0;display:flex;position:relative}._1vy5zjp1{justify-content:center;align-items:center;gap:var(--lovelace-gap-12);padding:var(--lovelace-padding-16);border-radius:var(--lovelace-border-radius-20);background-color:var(--lovelace-color-background-default);pointer-events:none;flex-direction:column;display:flex;position:absolute;inset:0}._1vy5zjp1 [data-slot=icon]{color:var(--lovelace-color-content-secondary);font-size:32px}._1vy5zjp0[data-drop-target] ._1vy5zjp1 [data-slot=icon]{color:var(--lovelace-color-content-highlight)}._1vy5zjp2{gap:var(--lovelace-gap-8);text-align:center;width:100%;font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-regular);word-break:break-word;flex-direction:column;display:flex}._1vy5zjp3{color:var(--lovelace-color-content-default);margin:0}._1vy5zjp4{color:var(--lovelace-color-content-secondary);margin:0}._6ivfy30{background-color:var(--lovelace-color-scrim-subtle)}._6ivfy31{background-color:var(--lovelace-elevation-2-background);flex-direction:column;width:100%;height:100%;min-height:0;max-height:100%;display:flex;position:relative;overflow:hidden}._6ivfy31[data-entering],._6ivfy31[data-exiting]{transform:translateY(100%)}._6ivfy32{outline:none;flex-direction:column;flex:auto;min-height:0;max-height:100%;display:flex}@media (prefers-reduced-motion:no-preference){._6ivfy31{transition:transform var(--lovelace-duration-medium) var(--lovelace-easing-standard)}}._1x52ra20{background-color:var(--lovelace-header-background);color:var(--lovelace-header-content);height:56px;padding:0 var(--lovelace-padding-12);align-items:center;gap:var(--lovelace-spacing-8);flex-shrink:0;display:flex;position:relative;overflow:hidden}._1x52ra20 [data-slot=icon]{color:var(--lovelace-header-content)}._1x52ra20 [data-slot=avatar] [data-slot=icon]{color:var(--lovelace-avatar-content)}._1x52ra21{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-medium);flex:1;margin:0;overflow:hidden}.ynzg8v0{width:100%;font-family:var(--lovelace-font-family-body);flex-direction:column;display:flex}.ynzg8v3{gap:var(--lovelace-gap-8);flex-wrap:wrap;flex:auto;min-width:0;display:flex}.ynzg8v4{align-items:flex-end;gap:var(--lovelace-gap-8);box-sizing:border-box;width:100%;min-height:40px;padding-inline:var(--lovelace-padding-12);padding-block:var(--lovelace-padding-8);border:var(--lovelace-border-width-default) solid var(--lovelace-color-border-default);background-color:var(--lovelace-color-background-default);border-radius:var(--lovelace-border-radius-input);cursor:text;flex-wrap:wrap;display:flex}.ynzg8v4[data-focus-within]{border-color:var(--lovelace-color-border-accent);outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}.ynzg8v4[data-invalid]{border-color:var(--lovelace-color-border-destructive)}.ynzg8v4[data-disabled]{background-color:var(--lovelace-color-background-disabled);cursor:not-allowed}.ynzg8v6{border-radius:var(--lovelace-border-radius-composer);border:var(--lovelace-border-width-default) solid var(--lovelace-composer-border-default);background-color:var(--lovelace-composer-background)}.ynzg8v6[data-focus-within]{border-color:var(--lovelace-composer-border-active);outline:var(--lovelace-border-width-focus) solid var(--lovelace-composer-border-focus);outline-offset:var(--lovelace-border-width-focus)}.ynzg8v6[data-invalid]{border-color:var(--lovelace-color-border-destructive)}.ynzg8v7{appearance:none;min-width:0;font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-regular);color:var(--lovelace-color-content-default);background-color:#0000;border:none;outline:none;flex:1;margin:0;padding:0}.ynzg8v7::placeholder{color:var(--lovelace-color-content-secondary);opacity:1}.ynzg8v7[data-disabled]{color:var(--lovelace-color-content-disabled);cursor:not-allowed}.ynzg8v7[data-disabled]::placeholder{color:var(--lovelace-color-content-disabled)}.ynzg8v8{box-sizing:border-box;resize:none;overflow-wrap:anywhere;word-break:break-word;scrollbar-width:thin;scrollbar-color:var(--lovelace-color-border-default) transparent;width:100%;display:block;overflow-y:auto}.ynzg8vb{isolation:isolate;border-radius:var(--lovelace-border-radius-full);background-color:var(--lovelace-button-primary-background);width:22px;height:22px;color:var(--lovelace-button-primary-content);cursor:pointer;appearance:none;border:none;outline:none;flex-shrink:0;justify-content:center;align-items:center;padding:0;display:inline-flex;position:relative;overflow:hidden}.ynzg8vb:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;background-color:currentColor;position:absolute;inset:0}.ynzg8vb[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}.ynzg8vb[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}.ynzg8vb[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}.ynzg8vb[data-focus-visible]:not([data-disabled]){outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}.ynzg8vb[data-disabled]{cursor:not-allowed;background-color:var(--lovelace-color-background-disabled);color:var(--lovelace-color-content-disabled)}.ynzg8vd{width:24px;height:24px;color:var(--lovelace-color-content-secondary);background-color:#0000;margin:-1px}.ynzg8ve{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-regular);margin-bottom:var(--lovelace-gap-8);color:var(--lovelace-color-content-default)}.ynzg8vf{margin-top:var(--lovelace-gap-4);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-caption);line-height:var(--lovelace-line-height-caption);font-weight:var(--lovelace-font-weight-regular);color:var(--lovelace-color-content-secondary)}.ynzg8vf[data-invalid]{color:var(--lovelace-color-content-destructive)}.ynzg8v1 [data-slot=icon],.ynzg8v9 [data-slot=icon]{font-size:var(--lovelace-icon-size-control);flex-shrink:0}.ynzg8v1>[data-slot=icon]{color:var(--lovelace-color-content-secondary)}.ynzg8v1[data-disabled]>[data-slot=icon]{color:var(--lovelace-color-content-disabled)}.ynzg8v1[data-has-attachments] .ynzg8v7{flex-basis:100%}.ynzg8v1[data-has-attachments]{row-gap:var(--lovelace-gap-20)}.ynzg8v2 .ynzg8v7{color:var(--lovelace-composer-content-default)}.ynzg8v2 .ynzg8v7::placeholder,.ynzg8v2>[data-slot=icon],.ynzg8v2 .ynzg8va{color:var(--lovelace-composer-content-secondary)}.ynzg8va[data-disabled]{color:var(--lovelace-color-content-disabled);background-color:#0000}.ynzg8v2 .ynzg8v7[data-disabled],.ynzg8v2 .ynzg8v7[data-disabled]::placeholder{color:var(--lovelace-color-content-disabled)}@media (prefers-reduced-motion:no-preference){.ynzg8v4{transition-property:border-color;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard)}.ynzg8vb:after{transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard)}}@media (forced-colors:active){.ynzg8v4[data-focus-within],.ynzg8vb[data-focus-visible]:not([data-disabled]){outline-offset:2px;outline:2px solid highlight}}.k107bi1{isolation:isolate;align-items:center;gap:var(--lovelace-gap-4);color:var(--lovelace-color-content-link);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-regular);word-break:break-word;cursor:pointer;border-radius:var(--lovelace-border-radius-6);outline:none;text-decoration:none;display:inline-flex;position:relative}.k107bi1:after{content:"";inset-block:0;inset-inline:calc(-1 * var(--lovelace-padding-4));border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute}.k107bi1:not([data-icon]){text-decoration:underline}.k107bi1[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}.k107bi1[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}.k107bi1[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}.k107bi1[data-focus-visible]:not([data-disabled]){outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}.k107bi1[data-disabled]{cursor:not-allowed;color:var(--lovelace-color-content-disabled)}.k107bi2{text-decoration:underline}.k107bi0 [data-slot=icon]{font-size:var(--lovelace-icon-size-control);flex-shrink:0}[dir=rtl] .k107bi0:not([data-download]) [data-slot=icon]{transform:scaleX(-1)}@media (forced-colors:active){.k107bi1[data-focus-visible]:not([data-disabled]){outline-offset:2px;outline:2px solid highlight}}.fa1x5n0{outline:none;flex-direction:column;display:flex}.fa1x5n1{isolation:isolate;box-sizing:border-box;align-items:center;gap:var(--lovelace-gap-12);min-height:40px;padding-inline:var(--lovelace-padding-8);padding-block:var(--lovelace-padding-4);border-radius:var(--lovelace-border-radius-button);border:var(--lovelace-border-width-default) solid transparent;color:var(--lovelace-color-content-default);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);font-weight:var(--lovelace-font-weight-regular);line-height:var(--lovelace-line-height-body);text-align:start;cursor:pointer;-webkit-user-select:none;user-select:none;transition-property:background-color,border-color;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard);outline:none;display:flex;position:relative}.fa1x5n1:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}.fa1x5n1[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}.fa1x5n1[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}.fa1x5n1[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}.fa1x5n1[data-focus-visible]:not([data-disabled]){border-color:var(--lovelace-color-border-accent);outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}.fa1x5n1[data-disabled]{cursor:not-allowed;color:var(--lovelace-color-content-disabled)}.fa1x5n1>[data-slot=icon]{font-size:var(--lovelace-icon-size-lg);flex-shrink:0}.fa1x5n1>[data-slot=label]{text-align:start;overflow-wrap:anywhere;flex:1;min-width:0}@media (forced-colors:active){.fa1x5n1[data-focus-visible]:not([data-disabled]){outline-offset:2px;outline:2px solid highlight}}.mufew31{gap:var(--lovelace-gap-20);flex-direction:column;display:flex}.mufew31[data-orientation=horizontal]{flex-direction:row}.mufew32{cursor:pointer;-webkit-user-select:none;user-select:none}.mufew32[data-disabled]{cursor:not-allowed}.mufew33{align-items:center;gap:var(--lovelace-gap-12);display:inline-flex}.mufew34{isolation:isolate;box-sizing:border-box;align-items:center;gap:var(--lovelace-gap-12);min-height:40px;padding-inline:var(--lovelace-padding-8);padding-block:var(--lovelace-padding-4);border-radius:var(--lovelace-border-radius-button);border:var(--lovelace-border-width-default) solid transparent;color:var(--lovelace-color-content-default);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);font-weight:var(--lovelace-font-weight-regular);line-height:var(--lovelace-line-height-body);text-align:start;cursor:pointer;-webkit-user-select:none;user-select:none;transition-property:background-color,border-color;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard);outline:none;display:flex;position:relative}.mufew34:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}.mufew34[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}.mufew34[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}.mufew34[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}.mufew34[data-focus-visible]:not([data-disabled]){border-color:var(--lovelace-color-border-accent);outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}.mufew34[data-disabled]{cursor:not-allowed;color:var(--lovelace-color-content-disabled)}.mufew30>[data-slot=icon]{font-size:var(--lovelace-icon-size-lg);flex-shrink:0}.mufew30>[data-slot=label]{text-align:start;overflow-wrap:anywhere;flex:1;min-width:0}.mufew35{box-sizing:border-box;border-radius:var(--lovelace-border-radius-full);border-style:solid;border-width:var(--lovelace-border-width-default);background-color:var(--lovelace-color-background-default);border-color:var(--lovelace-color-border-default);width:24px;height:24px;transition-property:background-color,border-color,box-shadow;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard);flex-shrink:0;position:relative}[data-hovered]:not([data-selected]):not([data-disabled])>.mufew35[data-state-layer]{border-color:var(--lovelace-color-border-medium)}[data-selected]>.mufew35{background-color:var(--lovelace-color-background-inverse);border-color:var(--lovelace-color-background-inverse)}[data-focus-visible]:not([data-disabled])>.mufew35[data-state-layer]{outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}[data-focus-visible]:not([data-selected]):not([data-disabled])>.mufew35[data-state-layer]{border-color:var(--lovelace-color-border-accent)}[data-disabled]:not([data-selected])>.mufew35{background-color:var(--lovelace-color-background-tertiary);border-color:var(--lovelace-color-border-default)}[data-disabled][data-selected]>.mufew35{background-color:var(--lovelace-color-background-disabled);border-color:var(--lovelace-color-background-disabled)}.mufew36{border-radius:var(--lovelace-border-radius-full);pointer-events:none;background-color:#0000;position:absolute;inset:5px}[data-selected]>.mufew35>.mufew36{background-color:var(--lovelace-color-background-default)}[data-selected][data-disabled]>.mufew35>.mufew36{background-color:var(--lovelace-color-background-tertiary)}.mufew37{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-regular);color:var(--lovelace-color-content-default)}[data-disabled]>.mufew37{color:var(--lovelace-color-content-disabled)}@media (forced-colors:active){.mufew34[data-focus-visible]:not([data-disabled]),[data-focus-visible]:not([data-disabled])>.mufew35[data-state-layer]{outline-offset:2px;outline:2px solid highlight}[data-selected]>.mufew35>.mufew36{background-color:canvastext}}._1s0itzy0{cursor:pointer;outline:none;flex-shrink:0;display:inline-flex}._1s0itzy0[data-disabled]{cursor:not-allowed}._1s0itzy1{isolation:isolate;box-sizing:border-box;border-radius:var(--lovelace-border-radius-full);background-color:var(--lovelace-color-background-quaternary);width:44px;height:24px;color:var(--lovelace-color-content-inverse);flex-shrink:0;display:inline-block;position:relative;box-shadow:0 1px 1px #00000014}._1s0itzy1:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;background-color:currentColor;position:absolute;inset:0}[data-selected]>._1s0itzy1{background-color:var(--lovelace-color-background-success);box-shadow:none}[data-hovered]:not([data-disabled])>._1s0itzy1[data-state-layer]:after{opacity:var(--lovelace-opacity-state-hover)}[data-focus-visible]:not([data-disabled])>._1s0itzy1[data-state-layer]:after{opacity:var(--lovelace-opacity-state-focus)}[data-pressed]:not([data-disabled])>._1s0itzy1[data-state-layer]:after{opacity:var(--lovelace-opacity-state-pressed)}[data-focus-visible]:not([data-disabled])>._1s0itzy1[data-state-layer]{outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}[data-disabled]>._1s0itzy1{background-color:var(--lovelace-color-background-disabled);box-shadow:none}[data-disabled][data-selected]>._1s0itzy1{background-color:var(--lovelace-color-background-success)}[data-disabled][data-selected]>._1s0itzy1:after{opacity:.3}._1s0itzy2{border-radius:var(--lovelace-border-radius-full);background-color:var(--lovelace-color-background-default);pointer-events:none;width:22px;height:22px;position:absolute;inset-block-start:1px;inset-inline-start:1px}[data-selected]>._1s0itzy1>._1s0itzy2{inset-inline-start:calc(100% - 23px)}@media (prefers-reduced-motion:no-preference){._1s0itzy1{transition-property:background-color,box-shadow;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard)}._1s0itzy1:after{transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard)}._1s0itzy2{transition:inset-inline-start var(--lovelace-duration-fast) var(--lovelace-easing-standard)}}@media (forced-colors:active){[data-focus-visible]:not([data-disabled])>._1s0itzy1[data-state-layer]{outline-offset:2px;outline:2px solid highlight}}._1pxs3ha0{display:flex}._1pxs3ha1{min-height:var(--lovelace-icon-size-lg);align-items:center;gap:var(--lovelace-gap-4);color:var(--lovelace-color-content-destructive);margin:0;display:inline-flex}._1pxs3ha2{border-radius:var(--lovelace-border-radius-6);cursor:pointer;background:0 0;border:none;outline:none;padding:0}._1pxs3ha2[data-focus-visible]{outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}._1pxs3ha3{clip:rect(0, 0, 0, 0);white-space:nowrap;-webkit-user-select:none;user-select:none;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}._1pxs3ha4{color:inherit;font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-caption);line-height:var(--lovelace-line-height-caption);font-weight:var(--lovelace-font-weight-regular);margin:0}._1pxs3ha1 [data-slot=icon]{font-size:var(--lovelace-icon-size-lg)}@media (forced-colors:active){._1pxs3ha2[data-focus-visible]{outline-offset:2px;outline:2px solid highlight}}._16xwgyj0{align-items:flex-start;gap:var(--lovelace-gap-12);display:flex}._16xwgyj1{justify-content:flex-start}._16xwgyj2{justify-content:flex-end}._16xwgyj3{min-width:0;font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-message-content-font-size-body);line-height:var(--lovelace-message-content-line-height-body);color:var(--lovelace-message-content-default);overflow-wrap:anywhere;word-break:break-word;flex-direction:column;display:flex}._16xwgyj4{align-items:flex-end}._16xwgyj5{align-items:stretch}._16xwgyj6{flex:1 1 0;max-width:100%}._16xwgyj7{flex:0 auto}._16xwgyj8{max-width:80%}._16xwgyj9{max-width:90%}._14rcj9q1{box-sizing:border-box;border-radius:var(--lovelace-border-radius-media-preview);border:var(--lovelace-border-width-default) solid var(--lovelace-color-border-default);justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden}._14rcj9q2{aspect-ratio:16/9}._14rcj9q3{aspect-ratio:4/3}._14rcj9q4{aspect-ratio:1}._14rcj9q5{aspect-ratio:3/4}._14rcj9q6{aspect-ratio:9/16}._14rcj9q7{background-color:var(--lovelace-color-background-disabled);color:var(--lovelace-color-content-disabled)}._14rcj9q9{object-fit:cover;width:100%;height:100%;display:block}._14rcj9q0 [data-slot=icon]{font-size:var(--lovelace-icon-size-lg)}.rygqx10{isolation:isolate;justify-content:center;align-items:center;gap:var(--lovelace-gap-8);padding-inline:var(--lovelace-padding-12);box-sizing:border-box;border:var(--lovelace-border-width-default) solid var(--lovelace-color-border-default);border-radius:var(--lovelace-border-radius-pill);background-color:var(--lovelace-color-background-default);color:var(--lovelace-pill-content-primary);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-medium);white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none;appearance:none;transition-property:background-color,border-color;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard);outline:none;text-decoration:none;display:inline-flex;position:relative}.rygqx10:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}.rygqx10[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}.rygqx10[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}.rygqx10[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}.rygqx10[data-focus-visible]:not([data-disabled]){border-color:var(--lovelace-color-border-accent);outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}.rygqx10[data-disabled]{cursor:not-allowed;color:var(--lovelace-color-content-disabled)}.rygqx11{height:40px}.rygqx12{height:32px}[data-slot=pill-button] [data-slot=icon]{font-size:var(--lovelace-icon-size-control);flex-shrink:0}@media (forced-colors:active){.rygqx10[data-focus-visible]:not([data-disabled]){outline-offset:2px;outline:2px solid highlight}}.y22qey0{box-sizing:border-box;width:fit-content;min-height:48px;padding-block:var(--lovelace-padding-8);padding-inline:var(--lovelace-padding-16);border-radius:var(--lovelace-border-radius-message);background-color:var(--lovelace-elevation-3-background);border:var(--lovelace-border-width-default) solid var(--lovelace-color-border-default);box-shadow:var(--lovelace-elevation-3);color:var(--lovelace-color-content-default);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-regular);text-align:start;overflow-wrap:anywhere;flex-direction:column;justify-content:center;align-items:flex-start;display:flex}._19x8abf1{isolation:isolate;box-sizing:border-box;border-radius:var(--lovelace-border-radius-full);box-shadow:var(--lovelace-elevation-2);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-medium);white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none;appearance:none;transition-property:background-color,box-shadow;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard);border:none;outline:none;justify-content:center;align-items:center;display:inline-flex;position:relative}._19x8abf1:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}._19x8abf1[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}._19x8abf1[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}._19x8abf1[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}._19x8abf1[data-focus-visible]:not([data-disabled]){outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}._19x8abf2{background-color:var(--lovelace-scrollmarker-background);color:var(--lovelace-scrollmarker-content)}._19x8abf3{background-color:var(--lovelace-color-background-accent);color:var(--lovelace-color-content-on-accent)}._19x8abf4{width:40px;height:40px;padding:0}._19x8abf5{height:38px;padding-inline:var(--lovelace-padding-12);gap:var(--lovelace-gap-8)}._19x8abf0 [data-slot=icon]{font-size:var(--lovelace-icon-size-control);flex-shrink:0}@media (forced-colors:active){._19x8abf1[data-focus-visible]:not([data-disabled]){outline-offset:2px;outline:2px solid highlight}}.mf01c90{box-sizing:border-box;background-color:var(--lovelace-elevation-2-background);width:100%;min-height:0;max-height:100%;color:var(--lovelace-color-content-default);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);flex-direction:column;flex:0 auto;display:flex;overflow-y:auto}.mf01c91{height:56px;padding-inline:var(--lovelace-padding-12);box-sizing:border-box;flex-shrink:0;justify-content:center;align-items:center;display:flex;position:relative}.mf01c92{color:var(--lovelace-color-content-default);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-medium);text-align:center;margin:0}.mf01c93{inset-inline-start:var(--lovelace-padding-12);align-items:center;display:flex;position:absolute;top:0;bottom:0}.mf01c94{inset-inline-end:var(--lovelace-padding-12);align-items:center;display:flex;position:absolute;top:0;bottom:0}[dir=rtl] .mf01c95{transform:scaleX(-1)}.mf01c96{min-height:var(--lovelace-spacing-48);padding:var(--lovelace-padding-12);box-sizing:border-box;scrollbar-width:thin;scrollbar-color:var(--lovelace-color-border-default) transparent;flex:0 auto;overflow-y:auto}.mf01c97{align-items:stretch;gap:var(--lovelace-gap-12);padding:var(--lovelace-padding-12);box-sizing:border-box;flex-direction:column;flex-shrink:0;display:flex}._1hi4ecs0{background-color:var(--lovelace-color-scrim-subtle);justify-content:flex-end;align-items:center}._1hi4ecs1{background-color:var(--lovelace-elevation-2-background);width:100%;min-height:0;max-height:80%;box-shadow:var(--lovelace-elevation-2);border-start-start-radius:var(--lovelace-border-radius-container);border-start-end-radius:var(--lovelace-border-radius-container);flex-direction:column;display:flex;position:relative;overflow:hidden}._1hi4ecs1[data-entering],._1hi4ecs1[data-exiting]{transform:translateY(100%)}._1hi4ecs2{outline:none;flex-direction:column;flex:auto;min-height:0;max-height:100%;display:flex}@media (prefers-reduced-motion:no-preference){._1hi4ecs1{transition:transform var(--lovelace-duration-medium) var(--lovelace-easing-standard)}}@keyframes _2rqyvg0{to{transform:rotate(360deg)}}._2rqyvg1{box-sizing:border-box;border-style:solid;border-color:var(--lovelace-color-wash-neutral);border-radius:50%;animation:.8s linear infinite _2rqyvg0;display:inline-block}._2rqyvg1[data-reduced-motion]{animation-duration:2.4s}._2rqyvg2{border-width:2px;width:16px;height:16px}._2rqyvg3{border-width:3px;width:32px;height:32px}._2rqyvg4{border-top-color:var(--lovelace-color-content-default)}._2rqyvg5{border-top-color:var(--lovelace-color-content-on-accent)}@media (prefers-reduced-motion:reduce){._2rqyvg1{animation-duration:2.4s}}.ewm1i80{gap:var(--lovelace-gap-8);flex-direction:column;width:fit-content;display:flex}.ewm1i81{justify-content:center;align-items:center;gap:var(--lovelace-gap-8);flex-wrap:wrap;width:100%;display:flex}.ewm1i82{width:100%;font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-caption);line-height:var(--lovelace-line-height-caption);font-weight:var(--lovelace-font-weight-regular);color:var(--lovelace-color-content-secondary);justify-content:space-between;display:flex}.r495e20{justify-content:center;align-items:center;gap:var(--lovelace-gap-8);flex-wrap:wrap;width:100%;display:flex}._17fuu3y0{margin:0}._17fuu3y1{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body)}._17fuu3y2{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-caption);line-height:var(--lovelace-line-height-caption)}._17fuu3y3{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-title-small);line-height:var(--lovelace-line-height-title-small)}._17fuu3y4{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-title-large);line-height:var(--lovelace-line-height-title-large)}._17fuu3y5{font-weight:var(--lovelace-font-weight-regular)}._17fuu3y6{font-weight:var(--lovelace-font-weight-medium)}._17fuu3y7{font-weight:var(--lovelace-font-weight-semi-bold)}@keyframes _9az62f0{0%{background-position-x:200%}to{background-position-x:0%}}@keyframes _9az62f1{0%,80%,to{vertical-align:0}40%{vertical-align:.3em}}._9az62f2{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-medium);white-space:nowrap;background-image:linear-gradient(90deg, var(--lovelace-color-content-secondary) 0%, var(--lovelace-color-content-secondary) 35%, var(--lovelace-color-content-default) 50%, var(--lovelace-color-content-secondary) 65%, var(--lovelace-color-content-secondary) 100%);color:#0000;-webkit-text-fill-color:transparent;background-repeat:repeat;background-size:200% 100%;-webkit-background-clip:text;background-clip:text;animation:2s linear infinite _9az62f0;display:inline-block}._9az62f3{clip:rect(0, 0, 0, 0);white-space:nowrap;-webkit-user-select:none;user-select:none;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}._9az62f4{display:inline}._9az62f5{line-height:0;animation:1.4s ease-in-out infinite _9az62f1;display:inline}._9az62f5:nth-child(2){animation-delay:.16s}._9az62f5:nth-child(3){animation-delay:.32s}@media (prefers-reduced-motion:reduce){._9az62f2{color:var(--lovelace-color-content-secondary);-webkit-text-fill-color:var(--lovelace-color-content-secondary);background-image:none;animation:none}._9az62f5{animation:none}}[data-theme=light]{--_16991600:var(--lovelace-color-border-default)}[data-theme=dark]{--_16991600:var(--lovelace-color-border-medium)}._16991601{box-sizing:border-box;justify-content:flex-start;align-items:center;gap:var(--lovelace-gap-8);width:fit-content;max-width:100%;padding-inline:var(--lovelace-padding-12);padding-block:var(--lovelace-padding-8);border-radius:var(--lovelace-border-radius-10);border-width:var(--lovelace-border-width-default);border-style:solid;border-color:var(--_16991600,var(--lovelace-color-border-default));background-color:var(--lovelace-color-background-tertiary);box-shadow:var(--lovelace-elevation-3);display:flex}._16991602{flex-shrink:0;justify-content:center;align-items:center;line-height:0;display:flex}._16991603{color:var(--lovelace-color-content-success);font-size:var(--lovelace-icon-size-control)}._16991604{color:var(--lovelace-color-content-warning);font-size:var(--lovelace-icon-size-control)}._16991605{color:var(--lovelace-color-content-destructive);font-size:var(--lovelace-icon-size-control)}._16991606{color:var(--lovelace-color-content-secondary);font-size:var(--lovelace-icon-size-lg)}._16991607{width:var(--lovelace-icon-size-lg);height:var(--lovelace-icon-size-lg)}._16991608{min-width:0;color:var(--lovelace-color-content-default);font-family:var(--lovelace-font-family-body);font-weight:var(--lovelace-font-weight-medium);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);overflow-wrap:break-word;margin-inline-end:auto}._16991609{color:var(--lovelace-color-content-secondary);flex-shrink:0}._16991601>[data-slot=button] [data-slot=icon]{font-size:var(--lovelace-icon-size-sm)}._16991601>[data-slot=button][data-disabled]{color:var(--lovelace-color-content-secondary);cursor:inherit}._1699160a{pointer-events:none}._1699160b{outline:none}._1699160c{align-items:center;gap:var(--lovelace-gap-16);flex-direction:column-reverse;margin:0;padding:0;list-style:none;display:flex}._1699160d{pointer-events:auto;padding-inline:var(--lovelace-padding-16);outline:none}._1699160d[data-entering]{opacity:0;transform:translateY(100%)}._1699160d[data-exiting]{opacity:0;pointer-events:none;transform:translateY(100%)}._1699160d[data-focus-visible] ._16991601{outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:calc(-2 * var(--lovelace-border-width-focus))}@media (forced-colors:active){._16991601{border-color:canvastext}._1699160d[data-focus-visible] ._16991601{outline-offset:-2px;outline:2px solid highlight}}@media (prefers-reduced-motion:no-preference){._1699160d{transition:opacity var(--lovelace-duration-medium) var(--lovelace-easing-standard), transform var(--lovelace-duration-medium) var(--lovelace-easing-standard)}}.s6807p0{box-sizing:border-box;max-width:184px;padding:var(--lovelace-spacing-8);border-radius:var(--lovelace-border-radius-6);background-color:var(--lovelace-color-background-inverse);color:var(--lovelace-color-content-inverse);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-caption);line-height:var(--lovelace-line-height-caption);font-weight:var(--lovelace-font-weight-regular);text-align:center;word-break:break-word;filter:var(--lovelace-elevation-2-filter)}.s6807p0[data-entering],.s6807p0[data-exiting]{opacity:0}.s6807p1{display:block}.s6807p2{fill:var(--lovelace-color-background-inverse);display:block}.s6807p0[data-placement^=top] .s6807p2{transform:rotate(0)}.s6807p0[data-placement^=bottom] .s6807p2{transform:rotate(180deg)}.s6807p0[data-placement^=left] .s6807p2{transform:rotate(-90deg)}.s6807p0[data-placement^=right] .s6807p2{transform:rotate(90deg)}@media (prefers-reduced-motion:no-preference){.s6807p0{transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard)}}@keyframes bwq5ac0{0%,60%,to{transform:translateY(0)}30%{transform:translateY(-4px)}}.bwq5ac1{align-items:center;gap:var(--lovelace-gap-4);height:38px;padding-inline:var(--lovelace-padding-20);background-color:var(--lovelace-color-background-quaternary);border-start-start-radius:var(--lovelace-border-radius-20);border-start-end-radius:var(--lovelace-border-radius-20);border-end-end-radius:var(--lovelace-border-radius-20);border-end-start-radius:0;display:inline-flex}.bwq5ac2{clip:rect(0, 0, 0, 0);white-space:nowrap;-webkit-user-select:none;user-select:none;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.bwq5ac3{width:var(--lovelace-spacing-8);height:var(--lovelace-spacing-8);border-radius:var(--lovelace-border-radius-full);background-color:var(--lovelace-color-content-default);flex-shrink:0;animation:.9s ease-in-out infinite bwq5ac0}.bwq5ac3:nth-child(2){animation-delay:.15s}.bwq5ac3:nth-child(3){animation-delay:.3s}@media (prefers-reduced-motion:reduce){.bwq5ac3{animation:none}}.jxp4or0{box-sizing:border-box;width:fit-content;max-width:100%;padding-inline:var(--lovelace-padding-12);padding-block:var(--lovelace-padding-8);border-radius:var(--lovelace-border-radius-message);background-color:var(--lovelace-message-user-background);align-items:center;display:flex}.jxp4or1{--lovelace-message-content-default:var(--lovelace-message-user-content);--lovelace-message-content-link:var(--lovelace-message-user-content)}.v51xfr0{box-sizing:border-box;border-radius:var(--lovelace-border-radius-media-preview);justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden}.v51xfr1{aspect-ratio:16/9}.v51xfr2{aspect-ratio:4/3}.v51xfr3{aspect-ratio:1}.v51xfr4{aspect-ratio:3/4}.v51xfr5{aspect-ratio:9/16}.v51xfr6{background-color:var(--lovelace-color-background-disabled);color:var(--lovelace-color-content-disabled);border:var(--lovelace-border-width-default) solid var(--lovelace-color-border-default)}.v51xfr8{border-radius:inherit;background-color:var(--lovelace-color-wash-neutral);position:absolute;inset:0;overflow:hidden}.v51xfr9{font-size:var(--lovelace-icon-size-lg)}
|
|
1
|
+
.slrdvx0{color:var(--lovelace-message-content-default);font-family:var(--lovelace-font-family-body);font-weight:var(--lovelace-font-weight-regular);font-size:var(--lovelace-message-content-font-size-body);line-height:var(--lovelace-message-content-line-height-body);overflow-wrap:anywhere;word-break:break-word}.slrdvx0 :is(p,ul,ol,h1,h2,h3,h4,h5,h6,pre,blockquote,table,hr){margin:0}.slrdvx0 :is(ul,ol){margin:var(--lovelace-gap-4) 0;padding-inline-start:var(--lovelace-padding-16)}.slrdvx0 p+p{margin-top:var(--lovelace-gap-16)}:where(.slrdvx0) a{color:var(--lovelace-message-content-link);text-decoration:underline}:where(.slrdvx0) strong{font-weight:var(--lovelace-font-weight-semi-bold)}._1xn6t060{text-align:start;flex-direction:column;justify-content:center;min-width:0;min-height:24px;display:flex}._1chqu661{box-sizing:border-box;align-items:center;gap:var(--lovelace-gap-8);min-width:0;padding:var(--lovelace-padding-8);border-radius:var(--lovelace-border-radius-6);background-color:var(--lovelace-color-background-quaternary);color:var(--lovelace-color-content-default);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-regular);text-align:start;appearance:none;box-shadow:0 var(--lovelace-elevation-2-offset-y) var(--lovelace-elevation-2-blur) var(--lovelace-elevation-2-spread) var(--lovelace-elevation-2-color);border:0;display:flex;overflow:hidden}._1chqu662{isolation:isolate;cursor:pointer;outline:none;height:36px;position:relative}._1chqu662:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}._1chqu662[data-hovered]:after{opacity:var(--lovelace-opacity-state-hover)}._1chqu662[data-focus-visible]:after{opacity:var(--lovelace-opacity-state-focus)}._1chqu662[data-pressed]:after{opacity:var(--lovelace-opacity-state-pressed)}._1chqu662[data-focus-visible]{outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}._1chqu663{max-width:148px;height:40px}._1chqu664{border-radius:var(--lovelace-border-radius-6);flex-shrink:0;justify-content:center;align-items:center;width:24px;height:24px;display:inline-flex;overflow:hidden}._1chqu664 [data-slot=icon]{font-size:var(--lovelace-icon-size-control)}._1chqu665{object-fit:cover;width:100%;height:100%}._1chqu666{text-overflow:ellipsis;white-space:nowrap;word-break:break-word;min-width:0;overflow:hidden}@media (forced-colors:active){._1chqu662[data-focus-visible]{outline-offset:2px;outline:2px solid highlight}}.kmbju21{isolation:isolate;box-sizing:border-box;border-radius:var(--lovelace-border-radius-avatar);background-color:var(--lovelace-avatar-background);color:var(--lovelace-avatar-content);font-family:var(--lovelace-font-family-body);font-weight:var(--lovelace-font-weight-semi-bold);text-align:center;-webkit-user-select:none;user-select:none;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex;position:relative;overflow:hidden}.kmbju22{width:24px;height:24px;font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body)}.kmbju23{width:36px;height:36px;font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body)}.kmbju24{width:48px;height:48px;font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body)}.kmbju25{width:72px;height:72px;font-size:var(--lovelace-font-size-title-large);line-height:var(--lovelace-line-height-title-large)}.kmbju26{flex-shrink:0}.kmbju27{width:24px;height:24px}.kmbju28{width:36px;height:36px}.kmbju29{width:48px;height:48px}.kmbju2a{width:72px;height:72px}.kmbju20 [data-slot=image]{width:100%;max-width:none;height:auto;max-height:none;margin:auto;position:absolute;inset:0}.kmbju20 [data-slot=icon]{flex-shrink:0}.kmbju20[data-size=sm] [data-slot=icon]{font-size:var(--lovelace-icon-size-sm)}.kmbju20[data-size=md] [data-slot=icon]{font-size:var(--lovelace-icon-size-md)}.kmbju20[data-size=lg] [data-slot=icon]{font-size:32px}.kmbju20[data-size=xl] [data-slot=icon]{font-size:36px}._1lzdalt0{aspect-ratio:1;color:currentColor;flex-shrink:0;justify-content:center;align-items:center;width:1em;height:1em;line-height:0;display:inline-flex}._3tx76z0{width:3.125em}.fpbgjm0{gap:var(--lovelace-gap-8);box-sizing:border-box;width:100%;padding-inline:var(--lovelace-padding-12);padding-block:var(--lovelace-padding-8);font-family:var(--lovelace-font-family-body);font-weight:var(--lovelace-font-weight-medium);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);overflow-wrap:break-word;justify-content:center;align-items:center;display:flex}.fpbgjm2{background-color:var(--lovelace-color-background-success-light);color:var(--lovelace-color-content-success)}.fpbgjm3{background-color:var(--lovelace-color-background-warning-light);color:var(--lovelace-color-content-warning)}.fpbgjm4{background-color:var(--lovelace-color-background-destructive-light);color:var(--lovelace-color-content-destructive)}.fpbgjm5{min-width:0}.fpbgjm0>[data-slot=icon]{font-size:var(--lovelace-icon-size-control);flex-shrink:0}.fpbgjm6{overflow:hidden}.fpbgjm7[data-entering],.fpbgjm7[data-exiting]{transform:translateY(-100%)}.fpbgjm7[data-swapping]{opacity:0}@media (prefers-reduced-motion:no-preference){.fpbgjm7{transition:transform var(--lovelace-duration-medium) var(--lovelace-easing-standard), opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard)}}._1kxa7cu0{z-index:200;flex-direction:column;display:flex;position:fixed;inset:0}._1kxa7cu0[data-entering],._1kxa7cu0[data-exiting]{opacity:0}@media (prefers-reduced-motion:no-preference){._1kxa7cu0{transition:opacity var(--lovelace-duration-medium) var(--lovelace-easing-standard)}}.xywi8y0{padding:var(--lovelace-padding-16);justify-content:flex-end;align-items:center}.xywi8y1{background-color:var(--lovelace-elevation-2-background);border-radius:var(--lovelace-border-radius-container);width:fit-content;max-width:min(320px,100%);min-height:0;max-height:100%;box-shadow:var(--lovelace-elevation-4);flex-direction:column;display:flex;position:relative;overflow:hidden}.xywi8y1[data-entering],.xywi8y1[data-exiting]{transform:translateY(8px)}.xywi8y2{outline:none;flex-direction:column;flex:auto;min-height:0;max-height:100%;display:flex}@media (prefers-reduced-motion:no-preference){.xywi8y1{transition:transform var(--lovelace-duration-medium) var(--lovelace-easing-standard)}}.ateptb1{isolation:isolate;justify-content:center;align-items:center;gap:var(--lovelace-gap-8);padding-inline:var(--lovelace-padding-12);box-sizing:border-box;border:var(--lovelace-border-width-default) solid transparent;border-radius:var(--lovelace-border-radius-button);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-medium);white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none;appearance:none;transition-property:background-color,border-color;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard);outline:none;text-decoration:none;display:inline-flex;position:relative}.ateptb1:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}.ateptb1[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}.ateptb1[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}.ateptb1[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}.ateptb1[data-focus-visible]:not([data-disabled]){outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}.ateptb1[data-disabled]{cursor:not-allowed;color:var(--lovelace-color-content-disabled)}.ateptb2{background-color:var(--lovelace-button-primary-background);color:var(--lovelace-button-primary-content)}.ateptb2[data-disabled]{background-color:var(--lovelace-color-background-disabled)}.ateptb3{background-color:var(--lovelace-color-background-destructive);color:var(--lovelace-color-content-on-destructive)}.ateptb3[data-disabled]{background-color:var(--lovelace-color-background-disabled)}.ateptb4{background-color:var(--lovelace-color-background-default);color:var(--lovelace-color-content-default);border-color:var(--lovelace-color-border-default)}.ateptb5{background-color:var(--lovelace-color-background-default);color:var(--lovelace-color-content-destructive);border-color:var(--lovelace-color-border-destructive)}.ateptb6{color:var(--lovelace-color-content-default);background-color:#0000}.ateptb7{color:var(--lovelace-color-content-destructive);background-color:#0000}.ateptb8{height:40px}.ateptb9{height:32px}.ateptb0 [data-slot=icon]{font-size:var(--lovelace-icon-size-control);flex-shrink:0}@media (forced-colors:active){.ateptb1[data-focus-visible]:not([data-disabled]){outline-offset:2px;outline:2px solid highlight}}.ptvtw60{max-width:100%;display:block}._10mu92g0{isolation:isolate;box-sizing:border-box;border:var(--lovelace-border-width-default) solid var(--lovelace-color-border-default);border-radius:var(--lovelace-border-radius-message);background-color:var(--lovelace-color-background-default);width:100%;color:var(--lovelace-color-content-default);text-align:start;flex-direction:column;margin:0;padding:0;display:flex;position:relative;overflow:hidden}._10mu92g1{appearance:none;font:inherit;cursor:pointer;outline:none}._10mu92g1:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}._10mu92g1[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}._10mu92g1[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}._10mu92g1[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}._10mu92g1[data-focus-visible]:not([data-disabled]){outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}._10mu92g1[data-disabled]{cursor:default}._10mu92g2{aspect-ratio:16/9;background-color:var(--lovelace-color-background-tertiary);width:100%;color:var(--lovelace-color-content-disabled);flex-shrink:0;justify-content:center;align-items:center;display:flex;overflow:hidden}._10mu92g3{object-fit:cover;width:100%;height:100%;display:block}._10mu92g2 [data-slot=icon]{font-size:var(--lovelace-icon-size-lg)}._10mu92g4{gap:var(--lovelace-gap-4);min-width:0;padding:var(--lovelace-padding-12);flex-direction:column;display:flex}._10mu92g5{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-semi-bold);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}._10mu92g6{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-caption);line-height:var(--lovelace-line-height-caption);font-weight:var(--lovelace-font-weight-regular);overflow-wrap:anywhere;-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}._10mu92g7{gap:var(--lovelace-gap-8);padding:var(--lovelace-padding-8) var(--lovelace-padding-12) var(--lovelace-padding-12);flex-direction:column;margin-top:auto;display:flex}._10mu92g7>[data-slot=button]{width:100%}@media (forced-colors:active){._10mu92g1[data-focus-visible]:not([data-disabled]){outline-offset:2px;outline:2px solid highlight}}._1nvcxt20{isolation:isolate;box-sizing:border-box;border:var(--lovelace-border-width-default) solid transparent;border-radius:var(--lovelace-border-radius-button);font-size:var(--lovelace-icon-size-control);cursor:pointer;-webkit-user-select:none;user-select:none;appearance:none;transition-property:background-color,border-color;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard);outline:none;flex-shrink:0;justify-content:center;align-items:center;padding:0;display:inline-flex;position:relative}._1nvcxt20:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}._1nvcxt20[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}._1nvcxt20[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}._1nvcxt20[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}._1nvcxt20[data-focus-visible]:not([data-disabled]){outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}._1nvcxt20[data-disabled]{cursor:not-allowed;color:var(--lovelace-color-content-disabled)}._1nvcxt21{background-color:var(--lovelace-button-primary-background);color:var(--lovelace-button-primary-content)}._1nvcxt21[data-disabled]{background-color:var(--lovelace-color-background-disabled)}._1nvcxt22{background-color:var(--lovelace-color-background-destructive);color:var(--lovelace-color-content-on-destructive)}._1nvcxt22[data-disabled]{background-color:var(--lovelace-color-background-disabled)}._1nvcxt23{background-color:var(--lovelace-color-background-default);color:var(--lovelace-color-content-default);border-color:var(--lovelace-color-border-default)}._1nvcxt24{background-color:var(--lovelace-color-background-default);color:var(--lovelace-color-content-destructive);border-color:var(--lovelace-color-border-destructive)}._1nvcxt25{color:var(--lovelace-color-content-default);background-color:#0000}._1nvcxt26{color:var(--lovelace-color-content-destructive);background-color:#0000}._1nvcxt27{width:40px;height:40px}._1nvcxt28{width:32px;height:32px}._1nvcxt29{width:24px;height:24px}@media (forced-colors:active){._1nvcxt20[data-focus-visible]:not([data-disabled]){outline-offset:2px;outline:2px solid highlight}}._1vler2p0{align-items:stretch;gap:var(--lovelace-gap-20);flex-direction:column;min-width:0;display:flex}._1vler2p1{gap:var(--lovelace-gap-12);padding-block:var(--lovelace-padding-4);padding-inline:var(--lovelace-padding-12);scroll-padding-inline:var(--lovelace-padding-12);scroll-snap-type:x mandatory;scrollbar-width:none;display:flex;overflow:auto hidden}._1vler2p1::-webkit-scrollbar{display:none}._1vler2p2{scroll-snap-align:center;flex:0 0 min(280px,80%);min-width:0;display:flex}._1vler2p2:first-child{scroll-snap-align:start}._1vler2p2:last-child{scroll-snap-align:end}._1vler2p3{grid-template-columns:1fr auto 1fr;align-items:center;display:grid}._1vler2p4{grid-column:1;justify-self:end}._1vler2p5{grid-column:3;justify-self:start}._1vler2p6{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-caption);line-height:var(--lovelace-line-height-caption);font-weight:var(--lovelace-font-weight-regular);align-items:center;gap:var(--lovelace-gap-4);padding-inline:var(--lovelace-padding-16);color:var(--lovelace-color-content-default);font-variant-numeric:tabular-nums;grid-column:2;display:flex}._1vler2p7{text-align:center;min-width:24px}._1vler2p8{clip:rect(0, 0, 0, 0);white-space:nowrap;-webkit-user-select:none;user-select:none;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.s7h2sn0{gap:var(--lovelace-gap-20);flex-direction:column;display:flex}.s7h2sn2{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-regular);color:var(--lovelace-color-content-default);cursor:pointer;-webkit-user-select:none;user-select:none;outline:none}.s7h2sn2[data-disabled]{cursor:not-allowed;color:var(--lovelace-color-content-disabled)}.s7h2sn3{align-items:center;gap:var(--lovelace-gap-12);display:inline-flex}.s7h2sn4{isolation:isolate;box-sizing:border-box;align-items:center;gap:var(--lovelace-gap-12);min-height:40px;padding-inline:var(--lovelace-padding-8);padding-block:var(--lovelace-padding-4);border-radius:var(--lovelace-border-radius-button);border:var(--lovelace-border-width-default) solid transparent;color:var(--lovelace-color-content-default);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);font-weight:var(--lovelace-font-weight-regular);line-height:var(--lovelace-line-height-body);text-align:start;cursor:pointer;-webkit-user-select:none;user-select:none;transition-property:background-color,border-color;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard);outline:none;display:flex;position:relative}.s7h2sn4:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}.s7h2sn4[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}.s7h2sn4[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}.s7h2sn4[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}.s7h2sn4[data-focus-visible]:not([data-disabled]){border-color:var(--lovelace-color-border-accent);outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}.s7h2sn4[data-disabled]{cursor:not-allowed;color:var(--lovelace-color-content-disabled)}.s7h2sn1>[data-slot=icon]{font-size:var(--lovelace-icon-size-lg);flex-shrink:0}.s7h2sn1>[data-slot=label]{text-align:start;overflow-wrap:anywhere;flex:1;min-width:0}.s7h2sn5{isolation:isolate;box-sizing:border-box;border-radius:var(--lovelace-border-radius-6);border-style:solid;border-width:var(--lovelace-border-width-default);border-color:var(--lovelace-color-border-control);background-color:var(--lovelace-color-background-default);width:24px;height:24px;color:var(--lovelace-color-content-inverse);transition-property:border-color,box-shadow;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard);flex-shrink:0;position:relative}.s7h2sn5:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}.s7h2sn6{color:currentColor;opacity:0;pointer-events:none;width:16px;height:16px;margin:auto;position:absolute;inset:0}[data-selected]>.s7h2sn5,[data-indeterminate]>.s7h2sn5{background-color:var(--lovelace-color-background-inverse);border-color:#0000}[data-hovered]:not([data-disabled]):not([data-selected]):not([data-indeterminate])>.s7h2sn5[data-state-layer]{border-color:var(--lovelace-color-border-control-hover)}[data-hovered]:not([data-disabled])>.s7h2sn5[data-state-layer]:after{opacity:var(--lovelace-opacity-state-hover)}[data-focus-visible]:not([data-disabled])>.s7h2sn5[data-state-layer]:after{opacity:var(--lovelace-opacity-state-focus)}[data-pressed]:not([data-disabled])>.s7h2sn5[data-state-layer]:after{opacity:var(--lovelace-opacity-state-pressed)}[data-focus-visible]:not([data-disabled])>.s7h2sn5[data-state-layer]{outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}[data-disabled]>.s7h2sn5{background-color:var(--lovelace-color-background-disabled);border-color:var(--lovelace-color-border-default);color:var(--lovelace-color-content-disabled)}[data-selected]:not([data-indeterminate])>.s7h2sn5>.s7h2sn6[data-glyph=check],[data-indeterminate]>.s7h2sn5>.s7h2sn6[data-glyph=dash]{opacity:1}@media (forced-colors:active){.s7h2sn4[data-focus-visible]:not([data-disabled]),[data-focus-visible]:not([data-disabled])>.s7h2sn5[data-state-layer]{outline-offset:2px;outline:2px solid highlight}}._18cnc771{isolation:isolate;box-sizing:border-box;border:var(--lovelace-border-width-default) solid transparent;font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-medium);white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none;appearance:none;transition-property:background-color,border-color;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard);outline:none;justify-content:center;align-items:center;display:inline-flex;position:relative}._18cnc771:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}._18cnc771:not([data-selected]){background-color:var(--lovelace-color-background-default);color:var(--lovelace-color-content-default);border-color:var(--lovelace-color-border-default)}._18cnc771[data-selected]{background-color:var(--lovelace-chip-background-selected);color:var(--lovelace-color-content-on-accent);border-color:#0000}._18cnc771[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}._18cnc771[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}._18cnc771[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}._18cnc771[data-focus-visible]:not([data-disabled]){border-color:var(--lovelace-color-border-accent);outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}._18cnc771[data-disabled]{cursor:not-allowed;color:var(--lovelace-color-content-disabled)}._18cnc772{min-width:80px;padding-inline:var(--lovelace-padding-12);border-radius:var(--lovelace-border-radius-pill)}._18cnc773,._18cnc774{border-radius:var(--lovelace-border-radius-button)}._18cnc777{height:40px}._18cnc778{height:48px}._18cnc779{width:40px;height:40px}._18cnc77a{width:48px;height:48px}._18cnc77b{width:40px;height:40px}._18cnc77c{width:48px;height:48px;font-size:var(--lovelace-font-size-title-large)}._18cnc770 [data-slot=icon]{font-size:var(--lovelace-icon-size-control);flex-shrink:0}@media (forced-colors:active){._18cnc771[data-focus-visible]:not([data-disabled]){outline-offset:2px;outline:2px solid highlight}}.onnuc90{text-align:center;align-items:center;gap:var(--lovelace-gap-16);padding:var(--lovelace-padding-16);background-color:var(--lovelace-elevation-2-background);flex-direction:column;display:flex}.onnuc91{flex-shrink:0;font-size:32px;line-height:0;display:flex}.onnuc92{color:var(--lovelace-color-content-warning)}.onnuc93{color:var(--lovelace-color-content-success)}.onnuc94{align-items:center;gap:var(--lovelace-gap-8);flex-direction:column;width:100%;display:flex}.onnuc95{text-align:center;width:100%;font-family:var(--lovelace-font-family-heading);font-size:var(--lovelace-font-size-title-large);line-height:var(--lovelace-line-height-title-large);font-weight:var(--lovelace-font-weight-medium);color:var(--lovelace-color-content-default);margin:0}.onnuc96{text-align:center;width:100%;font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-regular);color:var(--lovelace-color-content-secondary);margin:0}.onnuc97{align-items:stretch;gap:var(--lovelace-gap-8);flex-direction:column;width:100%;display:flex}._9zd2r40{padding:var(--lovelace-padding-16);background-color:var(--lovelace-color-scrim-subtle);justify-content:center;align-items:center}._9zd2r41{background-color:var(--lovelace-elevation-2-background);border-radius:var(--lovelace-border-radius-container);width:366px;max-width:100%;max-height:90%;box-shadow:var(--lovelace-elevation-2);flex-direction:column;display:flex;overflow:hidden}._9zd2r41[data-entering],._9zd2r41[data-exiting]{opacity:0;transform:scale(.95)}._9zd2r42{box-sizing:border-box;outline:none;flex-direction:column;flex:auto;width:100%;min-height:0;display:flex;overflow-y:auto}@media (prefers-reduced-motion:no-preference){._9zd2r41{transition-property:opacity,transform;transition-duration:var(--lovelace-duration-medium);transition-timing-function:var(--lovelace-easing-standard)}}.a07ce60{box-sizing:border-box}.a07ce61{width:100%;display:block}.a07ce62{justify-content:center;align-items:center;gap:var(--lovelace-gap-8);width:100%;display:flex}.a07ce63{justify-content:center;align-items:center;gap:var(--lovelace-gap-4);text-align:center;flex-direction:column;display:flex}.a07ce64{border:none;border-top:var(--lovelace-border-width-default) solid var(--lovelace-color-border-default);flex:1 1 0;width:100%;min-width:1px;height:0;margin:0}.a07ce65{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-caption);line-height:var(--lovelace-line-height-caption);color:var(--lovelace-color-content-secondary);font-weight:var(--lovelace-font-weight-regular);white-space:nowrap;flex-shrink:0;margin:0}.a07ce66{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-caption);line-height:var(--lovelace-line-height-caption);color:var(--lovelace-color-content-secondary);font-weight:var(--lovelace-font-weight-medium);margin:0}.a07ce67{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-caption);line-height:var(--lovelace-line-height-caption);color:var(--lovelace-color-content-secondary);font-weight:var(--lovelace-font-weight-regular);margin:0}._1vy5zjp0{flex-direction:column;flex:auto;min-height:0;display:flex;position:relative}._1vy5zjp1{justify-content:center;align-items:center;gap:var(--lovelace-gap-12);padding:var(--lovelace-padding-16);border-radius:var(--lovelace-border-radius-20);background-color:var(--lovelace-color-background-default);pointer-events:none;flex-direction:column;display:flex;position:absolute;inset:0}._1vy5zjp1 [data-slot=icon]{color:var(--lovelace-color-content-secondary);font-size:32px}._1vy5zjp0[data-drop-target] ._1vy5zjp1 [data-slot=icon]{color:var(--lovelace-color-content-highlight)}._1vy5zjp2{gap:var(--lovelace-gap-8);text-align:center;width:100%;font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-regular);word-break:break-word;flex-direction:column;display:flex}._1vy5zjp3{color:var(--lovelace-color-content-default);margin:0}._1vy5zjp4{color:var(--lovelace-color-content-secondary);margin:0}._6ivfy30{background-color:var(--lovelace-color-scrim-subtle)}._6ivfy31{background-color:var(--lovelace-elevation-2-background);flex-direction:column;width:100%;height:100%;min-height:0;max-height:100%;display:flex;position:relative;overflow:hidden}._6ivfy31[data-entering],._6ivfy31[data-exiting]{transform:translateY(100%)}._6ivfy32{outline:none;flex-direction:column;flex:auto;min-height:0;max-height:100%;display:flex}@media (prefers-reduced-motion:no-preference){._6ivfy31{transition:transform var(--lovelace-duration-medium) var(--lovelace-easing-standard)}}._1x52ra20{background-color:var(--lovelace-header-background);color:var(--lovelace-header-content);height:56px;padding:0 var(--lovelace-padding-12);align-items:center;gap:var(--lovelace-spacing-8);flex-shrink:0;display:flex;position:relative;overflow:hidden}._1x52ra20 [data-slot=icon]{color:var(--lovelace-header-content)}._1x52ra20 [data-slot=avatar] [data-slot=icon]{color:var(--lovelace-avatar-content)}._1x52ra21{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-medium);flex:1;margin:0;overflow:hidden}.ynzg8v0{width:100%;font-family:var(--lovelace-font-family-body);flex-direction:column;display:flex}.ynzg8v3{gap:var(--lovelace-gap-8);flex-wrap:wrap;flex:auto;min-width:0;display:flex}.ynzg8v4{align-items:flex-end;gap:var(--lovelace-gap-8);box-sizing:border-box;width:100%;min-height:40px;padding-inline:var(--lovelace-padding-12);padding-block:var(--lovelace-padding-8);border:var(--lovelace-border-width-default) solid var(--lovelace-color-border-control);background-color:var(--lovelace-color-background-default);border-radius:var(--lovelace-border-radius-input);cursor:text;flex-wrap:wrap;display:flex}.ynzg8v4[data-focus-within]{border-color:var(--lovelace-color-border-accent);outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}.ynzg8v4[data-disabled]{background-color:var(--lovelace-color-background-disabled);border-color:var(--lovelace-color-border-default);cursor:not-allowed}.ynzg8v4[data-invalid]{border-color:var(--lovelace-color-border-destructive)}.ynzg8v6{border-radius:var(--lovelace-border-radius-composer);border:var(--lovelace-border-width-default) solid var(--lovelace-composer-border-default);background-color:var(--lovelace-composer-background)}.ynzg8v6[data-focus-within]{border-color:var(--lovelace-composer-border-active);outline:var(--lovelace-border-width-focus) solid var(--lovelace-composer-border-focus);outline-offset:var(--lovelace-border-width-focus)}.ynzg8v6[data-invalid]{border-color:var(--lovelace-color-border-destructive)}.ynzg8v7{appearance:none;min-width:0;font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-regular);color:var(--lovelace-color-content-default);background-color:#0000;border:none;outline:none;flex:1;margin:0;padding:0}.ynzg8v7::placeholder{color:var(--lovelace-color-content-secondary);opacity:1}.ynzg8v7[data-disabled]{color:var(--lovelace-color-content-disabled);cursor:not-allowed}.ynzg8v7[data-disabled]::placeholder{color:var(--lovelace-color-content-disabled)}.ynzg8v8{box-sizing:border-box;resize:none;overflow-wrap:anywhere;word-break:break-word;scrollbar-width:thin;scrollbar-color:var(--lovelace-color-border-default) transparent;width:100%;display:block;overflow-y:auto}.ynzg8vb{isolation:isolate;border-radius:var(--lovelace-border-radius-full);background-color:var(--lovelace-button-primary-background);width:22px;height:22px;color:var(--lovelace-button-primary-content);cursor:pointer;appearance:none;border:none;outline:none;flex-shrink:0;justify-content:center;align-items:center;padding:0;display:inline-flex;position:relative;overflow:hidden}.ynzg8vb:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;background-color:currentColor;position:absolute;inset:0}.ynzg8vb[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}.ynzg8vb[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}.ynzg8vb[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}.ynzg8vb[data-focus-visible]:not([data-disabled]){outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}.ynzg8vb[data-disabled]{cursor:not-allowed;background-color:var(--lovelace-color-background-disabled);color:var(--lovelace-color-content-disabled)}.ynzg8vd{width:24px;height:24px;color:var(--lovelace-color-content-secondary);background-color:#0000;margin:-1px}.ynzg8ve{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-regular);margin-bottom:var(--lovelace-gap-8);color:var(--lovelace-color-content-default)}.ynzg8vf{margin-top:var(--lovelace-gap-4);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-caption);line-height:var(--lovelace-line-height-caption);font-weight:var(--lovelace-font-weight-regular);color:var(--lovelace-color-content-secondary)}.ynzg8vf[data-invalid]{color:var(--lovelace-color-content-destructive)}.ynzg8v1 [data-slot=icon],.ynzg8v9 [data-slot=icon]{font-size:var(--lovelace-icon-size-control);flex-shrink:0}.ynzg8v1>[data-slot=icon]{color:var(--lovelace-color-content-secondary)}.ynzg8v1[data-disabled]>[data-slot=icon]{color:var(--lovelace-color-content-disabled)}.ynzg8v1[data-has-attachments] .ynzg8v7{flex-basis:100%}.ynzg8v1[data-has-attachments]{row-gap:var(--lovelace-gap-20)}.ynzg8v2 .ynzg8v7{color:var(--lovelace-composer-content-default)}.ynzg8v2 .ynzg8v7::placeholder,.ynzg8v2>[data-slot=icon],.ynzg8v2 .ynzg8va{color:var(--lovelace-composer-content-secondary)}.ynzg8va[data-disabled]{color:var(--lovelace-color-content-disabled);background-color:#0000}.ynzg8v2 .ynzg8v7[data-disabled],.ynzg8v2 .ynzg8v7[data-disabled]::placeholder{color:var(--lovelace-color-content-disabled)}@media (prefers-reduced-motion:no-preference){.ynzg8v4{transition-property:border-color;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard)}.ynzg8vb:after{transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard)}}@media (forced-colors:active){.ynzg8v4[data-focus-within],.ynzg8vb[data-focus-visible]:not([data-disabled]){outline-offset:2px;outline:2px solid highlight}}.k107bi1{isolation:isolate;align-items:center;gap:var(--lovelace-gap-4);color:var(--lovelace-color-content-link);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-regular);word-break:break-word;cursor:pointer;border-radius:var(--lovelace-border-radius-6);outline:none;text-decoration:none;display:inline-flex;position:relative}.k107bi1:after{content:"";inset-block:0;inset-inline:calc(-1 * var(--lovelace-padding-4));border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute}.k107bi1:not([data-icon]){text-decoration:underline}.k107bi1[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}.k107bi1[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}.k107bi1[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}.k107bi1[data-focus-visible]:not([data-disabled]){outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}.k107bi1[data-disabled]{cursor:not-allowed;color:var(--lovelace-color-content-disabled)}.k107bi2{text-decoration:underline}.k107bi0 [data-slot=icon]{font-size:var(--lovelace-icon-size-control);flex-shrink:0}[dir=rtl] .k107bi0:not([data-download]) [data-slot=icon]{transform:scaleX(-1)}@media (forced-colors:active){.k107bi1[data-focus-visible]:not([data-disabled]){outline-offset:2px;outline:2px solid highlight}}.fa1x5n0{outline:none;flex-direction:column;display:flex}.fa1x5n1{isolation:isolate;box-sizing:border-box;align-items:center;gap:var(--lovelace-gap-12);min-height:40px;padding-inline:var(--lovelace-padding-8);padding-block:var(--lovelace-padding-4);border-radius:var(--lovelace-border-radius-button);border:var(--lovelace-border-width-default) solid transparent;color:var(--lovelace-color-content-default);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);font-weight:var(--lovelace-font-weight-regular);line-height:var(--lovelace-line-height-body);text-align:start;cursor:pointer;-webkit-user-select:none;user-select:none;transition-property:background-color,border-color;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard);outline:none;display:flex;position:relative}.fa1x5n1:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}.fa1x5n1[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}.fa1x5n1[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}.fa1x5n1[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}.fa1x5n1[data-focus-visible]:not([data-disabled]){border-color:var(--lovelace-color-border-accent);outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}.fa1x5n1[data-disabled]{cursor:not-allowed;color:var(--lovelace-color-content-disabled)}.fa1x5n1>[data-slot=icon]{font-size:var(--lovelace-icon-size-lg);flex-shrink:0}.fa1x5n1>[data-slot=label]{text-align:start;overflow-wrap:anywhere;flex:1;min-width:0}@media (forced-colors:active){.fa1x5n1[data-focus-visible]:not([data-disabled]){outline-offset:2px;outline:2px solid highlight}}.mufew31{gap:var(--lovelace-gap-20);flex-direction:column;display:flex}.mufew31[data-orientation=horizontal]{flex-direction:row}.mufew32{cursor:pointer;-webkit-user-select:none;user-select:none}.mufew32[data-disabled]{cursor:not-allowed}.mufew33{align-items:center;gap:var(--lovelace-gap-12);display:inline-flex}.mufew34{isolation:isolate;box-sizing:border-box;align-items:center;gap:var(--lovelace-gap-12);min-height:40px;padding-inline:var(--lovelace-padding-8);padding-block:var(--lovelace-padding-4);border-radius:var(--lovelace-border-radius-button);border:var(--lovelace-border-width-default) solid transparent;color:var(--lovelace-color-content-default);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);font-weight:var(--lovelace-font-weight-regular);line-height:var(--lovelace-line-height-body);text-align:start;cursor:pointer;-webkit-user-select:none;user-select:none;transition-property:background-color,border-color;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard);outline:none;display:flex;position:relative}.mufew34:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}.mufew34[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}.mufew34[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}.mufew34[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}.mufew34[data-focus-visible]:not([data-disabled]){border-color:var(--lovelace-color-border-accent);outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}.mufew34[data-disabled]{cursor:not-allowed;color:var(--lovelace-color-content-disabled)}.mufew30>[data-slot=icon]{font-size:var(--lovelace-icon-size-lg);flex-shrink:0}.mufew30>[data-slot=label]{text-align:start;overflow-wrap:anywhere;flex:1;min-width:0}.mufew35{box-sizing:border-box;border-radius:var(--lovelace-border-radius-full);border-style:solid;border-width:var(--lovelace-border-width-default);background-color:var(--lovelace-color-background-default);border-color:var(--lovelace-color-border-control);width:24px;height:24px;transition-property:background-color,border-color,box-shadow;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard);flex-shrink:0;position:relative}[data-hovered]:not([data-selected]):not([data-disabled])>.mufew35[data-state-layer]{border-color:var(--lovelace-color-border-control-hover)}[data-selected]>.mufew35{background-color:var(--lovelace-color-background-inverse);border-color:var(--lovelace-color-background-inverse)}[data-focus-visible]:not([data-disabled])>.mufew35[data-state-layer]{outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}[data-focus-visible]:not([data-selected]):not([data-disabled])>.mufew35[data-state-layer]{border-color:var(--lovelace-color-border-accent)}[data-disabled]:not([data-selected])>.mufew35{background-color:var(--lovelace-color-background-tertiary);border-color:var(--lovelace-color-border-default)}[data-disabled][data-selected]>.mufew35{background-color:var(--lovelace-color-background-disabled);border-color:var(--lovelace-color-background-disabled)}.mufew36{border-radius:var(--lovelace-border-radius-full);pointer-events:none;background-color:#0000;position:absolute;inset:5px}[data-selected]>.mufew35>.mufew36{background-color:var(--lovelace-color-background-default)}[data-selected][data-disabled]>.mufew35>.mufew36{background-color:var(--lovelace-color-background-tertiary)}.mufew37{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-regular);color:var(--lovelace-color-content-default)}[data-disabled]>.mufew37{color:var(--lovelace-color-content-disabled)}@media (forced-colors:active){.mufew34[data-focus-visible]:not([data-disabled]),[data-focus-visible]:not([data-disabled])>.mufew35[data-state-layer]{outline-offset:2px;outline:2px solid highlight}[data-selected]>.mufew35>.mufew36{background-color:canvastext}}._1s0itzy0{cursor:pointer;outline:none;flex-shrink:0;display:inline-flex}._1s0itzy0[data-disabled]{cursor:not-allowed}._1s0itzy1{isolation:isolate;box-sizing:border-box;border-radius:var(--lovelace-border-radius-full);background-color:var(--lovelace-color-background-quaternary);width:44px;height:24px;color:var(--lovelace-color-content-inverse);flex-shrink:0;display:inline-block;position:relative;box-shadow:0 1px 1px #00000014}._1s0itzy1:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;background-color:currentColor;position:absolute;inset:0}[data-selected]>._1s0itzy1{background-color:var(--lovelace-color-background-success);box-shadow:none}[data-hovered]:not([data-disabled])>._1s0itzy1[data-state-layer]:after{opacity:var(--lovelace-opacity-state-hover)}[data-focus-visible]:not([data-disabled])>._1s0itzy1[data-state-layer]:after{opacity:var(--lovelace-opacity-state-focus)}[data-pressed]:not([data-disabled])>._1s0itzy1[data-state-layer]:after{opacity:var(--lovelace-opacity-state-pressed)}[data-focus-visible]:not([data-disabled])>._1s0itzy1[data-state-layer]{outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}[data-disabled]>._1s0itzy1{background-color:var(--lovelace-color-background-disabled);box-shadow:none}[data-disabled][data-selected]>._1s0itzy1{background-color:var(--lovelace-color-background-success)}[data-disabled][data-selected]>._1s0itzy1:after{opacity:.3}._1s0itzy2{border-radius:var(--lovelace-border-radius-full);background-color:var(--lovelace-color-background-default);pointer-events:none;width:22px;height:22px;position:absolute;inset-block-start:1px;inset-inline-start:1px}[data-selected]>._1s0itzy1>._1s0itzy2{inset-inline-start:calc(100% - 23px)}@media (prefers-reduced-motion:no-preference){._1s0itzy1{transition-property:background-color,box-shadow;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard)}._1s0itzy1:after{transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard)}._1s0itzy2{transition:inset-inline-start var(--lovelace-duration-fast) var(--lovelace-easing-standard)}}@media (forced-colors:active){[data-focus-visible]:not([data-disabled])>._1s0itzy1[data-state-layer]{outline-offset:2px;outline:2px solid highlight}}._1pxs3ha0{display:flex}._1pxs3ha1{min-height:var(--lovelace-icon-size-lg);align-items:center;gap:var(--lovelace-gap-4);color:var(--lovelace-color-content-destructive);margin:0;display:inline-flex}._1pxs3ha2{border-radius:var(--lovelace-border-radius-6);cursor:pointer;background:0 0;border:none;outline:none;padding:0}._1pxs3ha2[data-focus-visible]{outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}._1pxs3ha3{clip:rect(0, 0, 0, 0);white-space:nowrap;-webkit-user-select:none;user-select:none;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}._1pxs3ha4{color:inherit;font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-caption);line-height:var(--lovelace-line-height-caption);font-weight:var(--lovelace-font-weight-regular);margin:0}._1pxs3ha1 [data-slot=icon]{font-size:var(--lovelace-icon-size-lg)}@media (forced-colors:active){._1pxs3ha2[data-focus-visible]{outline-offset:2px;outline:2px solid highlight}}._16xwgyj0{align-items:flex-start;gap:var(--lovelace-gap-12);display:flex}._16xwgyj1{justify-content:flex-start}._16xwgyj2{justify-content:flex-end}._16xwgyj3{min-width:0;font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-message-content-font-size-body);line-height:var(--lovelace-message-content-line-height-body);color:var(--lovelace-message-content-default);overflow-wrap:anywhere;word-break:break-word;flex-direction:column;display:flex}._16xwgyj4{align-items:flex-end}._16xwgyj5{align-items:stretch}._16xwgyj6{flex:1 1 0;max-width:100%}._16xwgyj7{flex:0 auto}._16xwgyj8{max-width:80%}._16xwgyj9{max-width:90%}._14rcj9q1{box-sizing:border-box;border-radius:var(--lovelace-border-radius-media-preview);border:var(--lovelace-border-width-default) solid var(--lovelace-color-border-default);justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden}._14rcj9q2{aspect-ratio:16/9}._14rcj9q3{aspect-ratio:4/3}._14rcj9q4{aspect-ratio:1}._14rcj9q5{aspect-ratio:3/4}._14rcj9q6{aspect-ratio:9/16}._14rcj9q7{background-color:var(--lovelace-color-background-disabled);color:var(--lovelace-color-content-disabled)}._14rcj9q9{object-fit:cover;width:100%;height:100%;display:block}._14rcj9q0 [data-slot=icon]{font-size:var(--lovelace-icon-size-lg)}.rygqx10{isolation:isolate;justify-content:center;align-items:center;gap:var(--lovelace-gap-8);padding-inline:var(--lovelace-padding-12);box-sizing:border-box;border:var(--lovelace-border-width-default) solid var(--lovelace-color-border-default);border-radius:var(--lovelace-border-radius-pill);background-color:var(--lovelace-color-background-default);color:var(--lovelace-pill-content-primary);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-medium);white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none;appearance:none;transition-property:background-color,border-color;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard);outline:none;text-decoration:none;display:inline-flex;position:relative}.rygqx10:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}.rygqx10[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}.rygqx10[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}.rygqx10[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}.rygqx10[data-focus-visible]:not([data-disabled]){border-color:var(--lovelace-color-border-accent);outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}.rygqx10[data-disabled]{cursor:not-allowed;color:var(--lovelace-color-content-disabled)}.rygqx11{height:40px}.rygqx12{height:32px}[data-slot=pill-button] [data-slot=icon]{font-size:var(--lovelace-icon-size-control);flex-shrink:0}@media (forced-colors:active){.rygqx10[data-focus-visible]:not([data-disabled]){outline-offset:2px;outline:2px solid highlight}}.y22qey0{box-sizing:border-box;width:fit-content;min-height:48px;padding-block:var(--lovelace-padding-8);padding-inline:var(--lovelace-padding-16);border-radius:var(--lovelace-border-radius-message);background-color:var(--lovelace-elevation-3-background);border:var(--lovelace-border-width-default) solid var(--lovelace-color-border-default);box-shadow:var(--lovelace-elevation-3);color:var(--lovelace-color-content-default);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-regular);text-align:start;overflow-wrap:anywhere;flex-direction:column;justify-content:center;align-items:flex-start;display:flex}._19x8abf1{isolation:isolate;box-sizing:border-box;border-radius:var(--lovelace-border-radius-full);box-shadow:var(--lovelace-elevation-2);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-medium);white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none;appearance:none;transition-property:background-color,box-shadow;transition-duration:var(--lovelace-duration-fast);transition-timing-function:var(--lovelace-easing-standard);border:none;outline:none;justify-content:center;align-items:center;display:inline-flex;position:relative}._19x8abf1:after{content:"";border-radius:inherit;opacity:0;pointer-events:none;z-index:-1;transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard);background-color:currentColor;position:absolute;inset:0}._19x8abf1[data-hovered]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-hover)}._19x8abf1[data-focus-visible]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-focus)}._19x8abf1[data-pressed]:not([data-disabled]):after{opacity:var(--lovelace-opacity-state-pressed)}._19x8abf1[data-focus-visible]:not([data-disabled]){outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:var(--lovelace-border-width-focus)}._19x8abf2{background-color:var(--lovelace-scrollmarker-background);color:var(--lovelace-scrollmarker-content)}._19x8abf3{background-color:var(--lovelace-color-background-accent);color:var(--lovelace-color-content-on-accent)}._19x8abf4{width:40px;height:40px;padding:0}._19x8abf5{height:38px;padding-inline:var(--lovelace-padding-12);gap:var(--lovelace-gap-8)}._19x8abf0 [data-slot=icon]{font-size:var(--lovelace-icon-size-control);flex-shrink:0}@media (forced-colors:active){._19x8abf1[data-focus-visible]:not([data-disabled]){outline-offset:2px;outline:2px solid highlight}}.mf01c90{box-sizing:border-box;background-color:var(--lovelace-elevation-2-background);width:100%;min-height:0;max-height:100%;color:var(--lovelace-color-content-default);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);flex-direction:column;flex:0 auto;display:flex;overflow-y:auto}.mf01c91{height:56px;padding-inline:var(--lovelace-padding-12);box-sizing:border-box;flex-shrink:0;justify-content:center;align-items:center;display:flex;position:relative}.mf01c92{color:var(--lovelace-color-content-default);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-medium);text-align:center;margin:0}.mf01c93{inset-inline-start:var(--lovelace-padding-12);align-items:center;display:flex;position:absolute;top:0;bottom:0}.mf01c94{inset-inline-end:var(--lovelace-padding-12);align-items:center;display:flex;position:absolute;top:0;bottom:0}[dir=rtl] .mf01c95{transform:scaleX(-1)}.mf01c96{min-height:var(--lovelace-spacing-48);padding:var(--lovelace-padding-12);box-sizing:border-box;scrollbar-width:thin;scrollbar-color:var(--lovelace-color-border-default) transparent;flex:0 auto;overflow-y:auto}.mf01c97{align-items:stretch;gap:var(--lovelace-gap-12);padding:var(--lovelace-padding-12);box-sizing:border-box;flex-direction:column;flex-shrink:0;display:flex}._1hi4ecs0{background-color:var(--lovelace-color-scrim-subtle);justify-content:flex-end;align-items:center}._1hi4ecs1{background-color:var(--lovelace-elevation-2-background);width:100%;min-height:0;max-height:80%;box-shadow:var(--lovelace-elevation-2);border-start-start-radius:var(--lovelace-border-radius-container);border-start-end-radius:var(--lovelace-border-radius-container);flex-direction:column;display:flex;position:relative;overflow:hidden}._1hi4ecs1[data-entering],._1hi4ecs1[data-exiting]{transform:translateY(100%)}._1hi4ecs2{outline:none;flex-direction:column;flex:auto;min-height:0;max-height:100%;display:flex}@media (prefers-reduced-motion:no-preference){._1hi4ecs1{transition:transform var(--lovelace-duration-medium) var(--lovelace-easing-standard)}}@keyframes _2rqyvg0{to{transform:rotate(360deg)}}._2rqyvg1{box-sizing:border-box;border-style:solid;border-color:var(--lovelace-color-wash-neutral);border-radius:50%;animation:.8s linear infinite _2rqyvg0;display:inline-block}._2rqyvg1[data-reduced-motion]{animation-duration:2.4s}._2rqyvg2{border-width:2px;width:16px;height:16px}._2rqyvg3{border-width:3px;width:32px;height:32px}._2rqyvg4{border-top-color:var(--lovelace-color-content-default)}._2rqyvg5{border-top-color:var(--lovelace-color-content-on-accent)}@media (prefers-reduced-motion:reduce){._2rqyvg1{animation-duration:2.4s}}.ewm1i80{gap:var(--lovelace-gap-8);flex-direction:column;width:fit-content;display:flex}.ewm1i81{justify-content:center;align-items:center;gap:var(--lovelace-gap-8);flex-wrap:wrap;width:100%;display:flex}.ewm1i82{width:100%;font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-caption);line-height:var(--lovelace-line-height-caption);font-weight:var(--lovelace-font-weight-regular);color:var(--lovelace-color-content-secondary);justify-content:space-between;display:flex}.r495e20{justify-content:center;align-items:center;gap:var(--lovelace-gap-8);flex-wrap:wrap;width:100%;display:flex}._17fuu3y0{margin:0}._17fuu3y1{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body)}._17fuu3y2{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-caption);line-height:var(--lovelace-line-height-caption)}._17fuu3y3{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-title-small);line-height:var(--lovelace-line-height-title-small)}._17fuu3y4{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-title-large);line-height:var(--lovelace-line-height-title-large)}._17fuu3y5{font-weight:var(--lovelace-font-weight-regular)}._17fuu3y6{font-weight:var(--lovelace-font-weight-medium)}._17fuu3y7{font-weight:var(--lovelace-font-weight-semi-bold)}@keyframes _9az62f0{0%{background-position-x:200%}to{background-position-x:0%}}@keyframes _9az62f1{0%,80%,to{vertical-align:0}40%{vertical-align:.3em}}._9az62f2{font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);font-weight:var(--lovelace-font-weight-medium);white-space:nowrap;background-image:linear-gradient(90deg, var(--lovelace-color-content-secondary) 0%, var(--lovelace-color-content-secondary) 35%, var(--lovelace-color-content-default) 50%, var(--lovelace-color-content-secondary) 65%, var(--lovelace-color-content-secondary) 100%);color:#0000;-webkit-text-fill-color:transparent;background-repeat:repeat;background-size:200% 100%;-webkit-background-clip:text;background-clip:text;animation:2s linear infinite _9az62f0;display:inline-block}._9az62f3{clip:rect(0, 0, 0, 0);white-space:nowrap;-webkit-user-select:none;user-select:none;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}._9az62f4{display:inline}._9az62f5{line-height:0;animation:1.4s ease-in-out infinite _9az62f1;display:inline}._9az62f5:nth-child(2){animation-delay:.16s}._9az62f5:nth-child(3){animation-delay:.32s}@media (prefers-reduced-motion:reduce){._9az62f2{color:var(--lovelace-color-content-secondary);-webkit-text-fill-color:var(--lovelace-color-content-secondary);background-image:none;animation:none}._9az62f5{animation:none}}[data-theme=light]{--_16991600:var(--lovelace-color-border-default)}[data-theme=dark]{--_16991600:var(--lovelace-color-border-medium)}._16991601{box-sizing:border-box;justify-content:flex-start;align-items:center;gap:var(--lovelace-gap-8);width:fit-content;max-width:100%;padding-inline:var(--lovelace-padding-12);padding-block:var(--lovelace-padding-8);border-radius:var(--lovelace-border-radius-10);border-width:var(--lovelace-border-width-default);border-style:solid;border-color:var(--_16991600,var(--lovelace-color-border-default));background-color:var(--lovelace-color-background-tertiary);box-shadow:var(--lovelace-elevation-3);display:flex}._16991602{flex-shrink:0;justify-content:center;align-items:center;line-height:0;display:flex}._16991603{color:var(--lovelace-color-content-success);font-size:var(--lovelace-icon-size-control)}._16991604{color:var(--lovelace-color-content-warning);font-size:var(--lovelace-icon-size-control)}._16991605{color:var(--lovelace-color-content-destructive);font-size:var(--lovelace-icon-size-control)}._16991606{color:var(--lovelace-color-content-secondary);font-size:var(--lovelace-icon-size-lg)}._16991607{width:var(--lovelace-icon-size-lg);height:var(--lovelace-icon-size-lg)}._16991608{min-width:0;color:var(--lovelace-color-content-default);font-family:var(--lovelace-font-family-body);font-weight:var(--lovelace-font-weight-medium);font-size:var(--lovelace-font-size-body);line-height:var(--lovelace-line-height-body);overflow-wrap:break-word;margin-inline-end:auto}._16991609{color:var(--lovelace-color-content-secondary);flex-shrink:0}._16991601>[data-slot=button] [data-slot=icon]{font-size:var(--lovelace-icon-size-sm)}._16991601>[data-slot=button][data-disabled]{color:var(--lovelace-color-content-secondary);cursor:inherit}._1699160a{pointer-events:none}._1699160b{outline:none}._1699160c{align-items:center;gap:var(--lovelace-gap-16);flex-direction:column-reverse;margin:0;padding:0;list-style:none;display:flex}._1699160d{pointer-events:auto;padding-inline:var(--lovelace-padding-16);outline:none}._1699160d[data-entering]{opacity:0;transform:translateY(100%)}._1699160d[data-exiting]{opacity:0;pointer-events:none;transform:translateY(100%)}._1699160d[data-focus-visible] ._16991601{outline:var(--lovelace-border-width-focus) solid var(--lovelace-color-border-focus);outline-offset:calc(-2 * var(--lovelace-border-width-focus))}@media (forced-colors:active){._16991601{border-color:canvastext}._1699160d[data-focus-visible] ._16991601{outline-offset:-2px;outline:2px solid highlight}}@media (prefers-reduced-motion:no-preference){._1699160d{transition:opacity var(--lovelace-duration-medium) var(--lovelace-easing-standard), transform var(--lovelace-duration-medium) var(--lovelace-easing-standard)}}.s6807p0{box-sizing:border-box;max-width:184px;padding:var(--lovelace-spacing-8);border-radius:var(--lovelace-border-radius-6);background-color:var(--lovelace-color-background-inverse);color:var(--lovelace-color-content-inverse);font-family:var(--lovelace-font-family-body);font-size:var(--lovelace-font-size-caption);line-height:var(--lovelace-line-height-caption);font-weight:var(--lovelace-font-weight-regular);text-align:center;word-break:break-word;filter:var(--lovelace-elevation-2-filter)}.s6807p0[data-entering],.s6807p0[data-exiting]{opacity:0}.s6807p1{display:block}.s6807p2{fill:var(--lovelace-color-background-inverse);display:block}.s6807p0[data-placement^=top] .s6807p2{transform:rotate(0)}.s6807p0[data-placement^=bottom] .s6807p2{transform:rotate(180deg)}.s6807p0[data-placement^=left] .s6807p2{transform:rotate(-90deg)}.s6807p0[data-placement^=right] .s6807p2{transform:rotate(90deg)}@media (prefers-reduced-motion:no-preference){.s6807p0{transition:opacity var(--lovelace-duration-fast) var(--lovelace-easing-standard)}}@keyframes bwq5ac0{0%,60%,to{transform:translateY(0)}30%{transform:translateY(-4px)}}.bwq5ac1{align-items:center;gap:var(--lovelace-gap-4);height:38px;padding-inline:var(--lovelace-padding-20);background-color:var(--lovelace-color-background-quaternary);border-start-start-radius:var(--lovelace-border-radius-20);border-start-end-radius:var(--lovelace-border-radius-20);border-end-end-radius:var(--lovelace-border-radius-20);border-end-start-radius:0;display:inline-flex}.bwq5ac2{clip:rect(0, 0, 0, 0);white-space:nowrap;-webkit-user-select:none;user-select:none;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.bwq5ac3{width:var(--lovelace-spacing-8);height:var(--lovelace-spacing-8);border-radius:var(--lovelace-border-radius-full);background-color:var(--lovelace-color-content-default);flex-shrink:0;animation:.9s ease-in-out infinite bwq5ac0}.bwq5ac3:nth-child(2){animation-delay:.15s}.bwq5ac3:nth-child(3){animation-delay:.3s}@media (prefers-reduced-motion:reduce){.bwq5ac3{animation:none}}.jxp4or0{box-sizing:border-box;width:fit-content;max-width:100%;padding-inline:var(--lovelace-padding-12);padding-block:var(--lovelace-padding-8);border-radius:var(--lovelace-border-radius-message);background-color:var(--lovelace-message-user-background);align-items:center;display:flex}.jxp4or1{--lovelace-message-content-default:var(--lovelace-message-user-content);--lovelace-message-content-link:var(--lovelace-message-user-content)}.v51xfr0{box-sizing:border-box;border-radius:var(--lovelace-border-radius-media-preview);justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden}.v51xfr1{aspect-ratio:16/9}.v51xfr2{aspect-ratio:4/3}.v51xfr3{aspect-ratio:1}.v51xfr4{aspect-ratio:3/4}.v51xfr5{aspect-ratio:9/16}.v51xfr6{background-color:var(--lovelace-color-background-disabled);color:var(--lovelace-color-content-disabled);border:var(--lovelace-border-width-default) solid var(--lovelace-color-border-default)}.v51xfr8{border-radius:inherit;background-color:var(--lovelace-color-wash-neutral);position:absolute;inset:0;overflow:hidden}.v51xfr9{font-size:var(--lovelace-icon-size-lg)}
|
|
2
2
|
/*$vite$:1*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export type LovelacePrimitiveToken = "color-neutral-0" | "color-neutral-50" | "color-neutral-100" | "color-neutral-200" | "color-neutral-300" | "color-neutral-400" | "color-neutral-500" | "color-neutral-600" | "color-neutral-700" | "color-neutral-800" | "color-neutral-900" | "color-red-50" | "color-orange-50" | "color-green-50" | "color-green-100" | "color-green-200" | "color-green-300" | "color-green-400" | "color-green-500" | "color-green-600" | "color-green-700" | "color-green-800" | "color-green-900" | "color-orange-100" | "color-orange-200" | "color-orange-300" | "color-orange-400" | "color-orange-500" | "color-orange-600" | "color-orange-700" | "color-orange-800" | "color-orange-900" | "color-red-100" | "color-red-200" | "color-red-300" | "color-red-400" | "color-red-500" | "color-red-600" | "color-red-700" | "color-red-800" | "color-red-900" | "spacing-4" | "spacing-8" | "spacing-12" | "spacing-16" | "spacing-20" | "spacing-24" | "spacing-32" | "spacing-40" | "spacing-48" | "font-weight-400" | "font-weight-500" | "font-weight-600" | "color-blue-50" | "color-blue-100" | "color-blue-200" | "color-blue-300" | "color-blue-400" | "color-blue-500" | "color-blue-600" | "color-blue-700" | "color-blue-800" | "color-blue-900" | "font-size-12" | "font-size-14" | "font-size-16" | "font-size-18" | "font-size-20" | "font-size-22" | "font-size-24" | "font-size-26" | "font-size-28" | "font-line-height-16" | "font-line-height-18" | "font-line-height-22" | "font-line-height-24" | "font-line-height-26" | "font-line-height-28" | "font-line-height-30" | "font-line-height-32" | "font-line-height-34" | "border-radius-0" | "p-border-radius-6" | "p-border-radius-10" | "p-border-radius-14" | "p-border-radius-20" | "p-border-radius-24" | "border-radius-999" | "font-paragraph-spacing-4" | "font-paragraph-spacing-6" | "font-paragraph-spacing-8" | "font-paragraph-spacing-10" | "font-paragraph-spacing-12" | "color-accent-50" | "color-accent-100" | "color-accent-200" | "color-accent-300" | "color-accent-400" | "color-accent-500" | "color-accent-600" | "color-accent-700" | "color-accent-800" | "color-accent-900" | "font-family-sans-serif" | "font-family-mono" | "border-width-1" | "border-width-2" | "dimension-16" | "dimension-20" | "dimension-22" | "dimension-24" | "dimension-32" | "dimension-36" | "shadow-offset-y-1" | "shadow-blur-1" | "shadow-spread-1" | "shadow-offset-y-2" | "shadow-blur-2" | "shadow-spread-2" | "shadow-offset-y-3" | "shadow-blur-3" | "shadow-spread-3" | "shadow-offset-y-4" | "shadow-blur-4" | "shadow-spread-4" | "color-elevation-1" | "color-elevation-2" | "color-elevation-3" | "color-elevation-4";
|
|
2
|
-
export type LovelaceSemanticToken = "color-content-default" | "color-content-secondary" | "color-content-secondary-inverse" | "color-content-disabled" | "color-content-inverse" | "color-background-default" | "color-background-secondary" | "color-background-tertiary" | "color-background-quaternary" | "color-background-disabled" | "color-background-inverse" | "color-border-default" | "color-wash-neutral" | "color-border-medium" | "color-border-strong" | "color-content-link" | "color-background-destructive" | "color-content-destructive" | "color-background-destructive-light" | "color-content-on-destructive" | "color-border-destructive" | "color-content-warning" | "color-background-warning" | "color-background-warning-light" | "color-border-warning" | "color-content-success" | "color-background-success" | "color-background-success-light" | "color-border-success" | "color-content-accent" | "color-content-on-accent" | "color-content-on-scrim" | "color-background-accent" | "color-wash-highlight" | "color-border-focus" | "color-border-accent" | "color-border-highlight" | "color-scrim-strong" | "color-scrim-subtle" | "color-content-highlight" | "font-weight-regular" | "font-size-caption" | "line-height-caption" | "paragraph-spacing-caption" | "paragraph-spacing-body" | "paragraph-spacing-title" | "line-height-body" | "line-height-title-small" | "line-height-title-large" | "font-size-body" | "font-size-title-small" | "font-size-title-large" | "font-weight-medium" | "font-weight-semi-bold" | "font-family-body" | "font-family-heading" | "font-family-code" | "border-radius-none" | "border-radius-6" | "border-radius-10" | "border-radius-14" | "border-radius-20" | "border-radius-24" | "border-radius-full" | "padding-4" | "padding-8" | "padding-12" | "padding-16" | "gap-4" | "gap-8" | "gap-12" | "gap-16" | "gap-20" | "padding-20" | "border-width-default" | "border-width-focus" | "opacity-state-hover" | "opacity-state-focus" | "opacity-state-pressed" | "icon-size-sm" | "icon-size-md" | "icon-size-control" | "icon-size-lg" | "easing-standard" | "easing-emphasized" | "easing-decelerate" | "easing-accelerate" | "duration-fast" | "duration-medium" | "duration-slow" | "elevation-1-offset-y" | "elevation-1-blur" | "elevation-1-spread" | "elevation-1-color" | "elevation-2-offset-y" | "elevation-2-blur" | "elevation-2-spread" | "elevation-2-color" | "elevation-3-offset-y" | "elevation-3-blur" | "elevation-3-spread" | "elevation-3-color" | "elevation-4-offset-y" | "elevation-4-blur" | "elevation-4-spread" | "elevation-4-color" | "elevation-1-background" | "elevation-2-background" | "elevation-3-background" | "elevation-4-background" | "elevation-1" | "elevation-1-filter" | "elevation-2" | "elevation-2-filter" | "elevation-3" | "elevation-3-filter" | "elevation-4" | "elevation-4-filter";
|
|
2
|
+
export type LovelaceSemanticToken = "color-content-default" | "color-content-secondary" | "color-content-secondary-inverse" | "color-content-disabled" | "color-content-inverse" | "color-background-default" | "color-background-secondary" | "color-background-tertiary" | "color-background-quaternary" | "color-background-disabled" | "color-background-inverse" | "color-border-default" | "color-wash-neutral" | "color-border-medium" | "color-border-strong" | "color-content-link" | "color-background-destructive" | "color-content-destructive" | "color-background-destructive-light" | "color-content-on-destructive" | "color-border-destructive" | "color-content-warning" | "color-background-warning" | "color-background-warning-light" | "color-border-warning" | "color-content-success" | "color-background-success" | "color-background-success-light" | "color-border-success" | "color-content-accent" | "color-content-on-accent" | "color-content-on-scrim" | "color-background-accent" | "color-wash-highlight" | "color-border-focus" | "color-border-accent" | "color-border-highlight" | "color-scrim-strong" | "color-scrim-subtle" | "color-content-highlight" | "color-border-control" | "color-border-control-hover" | "font-weight-regular" | "font-size-caption" | "line-height-caption" | "paragraph-spacing-caption" | "paragraph-spacing-body" | "paragraph-spacing-title" | "line-height-body" | "line-height-title-small" | "line-height-title-large" | "font-size-body" | "font-size-title-small" | "font-size-title-large" | "font-weight-medium" | "font-weight-semi-bold" | "font-family-body" | "font-family-heading" | "font-family-code" | "border-radius-none" | "border-radius-6" | "border-radius-10" | "border-radius-14" | "border-radius-20" | "border-radius-24" | "border-radius-full" | "padding-4" | "padding-8" | "padding-12" | "padding-16" | "gap-4" | "gap-8" | "gap-12" | "gap-16" | "gap-20" | "padding-20" | "border-width-default" | "border-width-focus" | "opacity-state-hover" | "opacity-state-focus" | "opacity-state-pressed" | "icon-size-sm" | "icon-size-md" | "icon-size-control" | "icon-size-lg" | "easing-standard" | "easing-emphasized" | "easing-decelerate" | "easing-accelerate" | "duration-fast" | "duration-medium" | "duration-slow" | "elevation-1-offset-y" | "elevation-1-blur" | "elevation-1-spread" | "elevation-1-color" | "elevation-2-offset-y" | "elevation-2-blur" | "elevation-2-spread" | "elevation-2-color" | "elevation-3-offset-y" | "elevation-3-blur" | "elevation-3-spread" | "elevation-3-color" | "elevation-4-offset-y" | "elevation-4-blur" | "elevation-4-spread" | "elevation-4-color" | "elevation-1-background" | "elevation-2-background" | "elevation-3-background" | "elevation-4-background" | "elevation-1" | "elevation-1-filter" | "elevation-2" | "elevation-2-filter" | "elevation-3" | "elevation-3-filter" | "elevation-4" | "elevation-4-filter";
|
|
3
3
|
export type LovelaceComponentToken = "message-user-background" | "message-user-content" | "message-content-link" | "message-content-default" | "message-content-font-size-body" | "message-content-line-height-body" | "button-primary-background" | "button-primary-content" | "header-background" | "pill-content-primary" | "header-content" | "chip-background-selected" | "chatfab-background" | "chatfab-content" | "composer-background" | "composer-border-default" | "composer-content-default" | "composer-content-secondary" | "composer-border-focus" | "composer-border-active" | "avatar-background" | "avatar-content" | "scrollmarker-background" | "scrollmarker-content" | "send-button-background" | "chat-background" | "border-radius-button" | "border-radius-message" | "border-radius-input" | "border-radius-composer" | "border-radius-avatar" | "border-radius-pill" | "border-radius-media-preview" | "border-radius-container";
|
|
4
4
|
export type LovelaceToken = LovelacePrimitiveToken | LovelaceSemanticToken | LovelaceComponentToken;
|
package/dist/tokens.css
CHANGED
|
@@ -270,6 +270,8 @@
|
|
|
270
270
|
--lovelace-color-scrim-strong: rgba(24, 26, 30, 0.9);
|
|
271
271
|
--lovelace-color-scrim-subtle: rgba(24, 26, 30, 0.2);
|
|
272
272
|
--lovelace-color-content-highlight: var(--lovelace-color-blue-500);
|
|
273
|
+
--lovelace-color-border-control: var(--lovelace-color-neutral-500);
|
|
274
|
+
--lovelace-color-border-control-hover: var(--lovelace-color-neutral-600);
|
|
273
275
|
--lovelace-elevation-1-offset-y: var(--lovelace-shadow-offset-y-1);
|
|
274
276
|
--lovelace-elevation-1-blur: var(--lovelace-shadow-blur-1);
|
|
275
277
|
--lovelace-elevation-1-spread: var(--lovelace-shadow-spread-1);
|
|
@@ -333,6 +335,8 @@
|
|
|
333
335
|
--lovelace-color-scrim-strong: rgba(24, 26, 30, 0.9);
|
|
334
336
|
--lovelace-color-scrim-subtle: rgba(24, 26, 30, 0.2);
|
|
335
337
|
--lovelace-color-content-highlight: var(--lovelace-color-blue-500);
|
|
338
|
+
--lovelace-color-border-control: var(--lovelace-color-neutral-400);
|
|
339
|
+
--lovelace-color-border-control-hover: var(--lovelace-color-neutral-300);
|
|
336
340
|
--lovelace-elevation-1-offset-y: var(--lovelace-shadow-offset-y-1);
|
|
337
341
|
--lovelace-elevation-1-blur: var(--lovelace-shadow-blur-1);
|
|
338
342
|
--lovelace-elevation-1-spread: var(--lovelace-shadow-spread-1);
|
package/package.json
CHANGED