@juwel-development/design-system 4.0.0 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/design-system.js +780 -545
- package/dist/styles.css +1 -1
- package/dist/styles.dark.css +1 -1
- package/dist/styles.light.css +1 -1
- package/dist/types/Arrangement/ColumnLayout/ColumnLayout.d.ts +59 -0
- package/dist/types/Display/Table/Table.d.ts +4 -0
- package/dist/types/Interaction/Choices/Choices.d.ts +20 -8
- package/dist/types/Layout/Dialog/Dialog.d.ts +11 -4
- package/dist/types/Layout/Dialog/useDialogAllocation.d.ts +2 -0
- package/dist/types/Layout/Dialog/useModalScrollLock.d.ts +2 -0
- package/dist/types/Layout/Pane/Pane.d.ts +6 -1
- package/dist/types/Layout/Screen/Screen.d.ts +31 -0
- package/dist/types/Layout/Screen/ScreenBodyAllocation.d.ts +1 -0
- package/dist/types/Layout/Sidebar/Sidebar.d.ts +9 -6
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/Arrangement/ColumnLayout/ColumnLayout.tsx +312 -0
- package/src/Display/Table/Table.tsx +32 -8
- package/src/Interaction/Choices/Choices.tsx +37 -19
- package/src/Layout/Dialog/Dialog.tsx +28 -7
- package/src/Layout/Dialog/useDialogAllocation.ts +131 -0
- package/src/Layout/Dialog/useModalScrollLock.ts +59 -0
- package/src/Layout/Pane/Pane.tsx +136 -13
- package/src/Layout/Screen/Screen.tsx +61 -0
- package/src/Layout/Screen/ScreenBodyAllocation.ts +5 -0
- package/src/Layout/Sidebar/Sidebar.tsx +10 -7
- package/src/index.ts +1 -0
package/dist/design-system.js
CHANGED
|
@@ -1,36 +1,37 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Fragment as e, jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
3
|
import { Children as r, Fragment as i, createContext as a, isValidElement as o, useCallback as s, useContext as c, useEffect as l, useId as u, useLayoutEffect as d, useReducer as f, useRef as p, useState as m } from "react";
|
|
4
|
+
import { flushSync as h } from "react-dom";
|
|
4
5
|
//#region node_modules/clsx/dist/clsx.mjs
|
|
5
|
-
function
|
|
6
|
+
function g(e) {
|
|
6
7
|
var t, n, r = "";
|
|
7
8
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
8
9
|
else if (typeof e == "object") {
|
|
9
10
|
if (Array.isArray(e)) {
|
|
10
11
|
var i = e.length;
|
|
11
|
-
for (t = 0; t < i; t++) e[t] && (n =
|
|
12
|
+
for (t = 0; t < i; t++) e[t] && (n = g(e[t])) && (r && (r += " "), r += n);
|
|
12
13
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
13
14
|
}
|
|
14
15
|
return r;
|
|
15
16
|
}
|
|
16
|
-
function
|
|
17
|
-
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t =
|
|
17
|
+
function _() {
|
|
18
|
+
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = g(e)) && (r && (r += " "), r += t);
|
|
18
19
|
return r;
|
|
19
20
|
}
|
|
20
21
|
//#endregion
|
|
21
22
|
//#region node_modules/class-variance-authority/dist/index.mjs
|
|
22
|
-
var
|
|
23
|
-
if (t?.variants == null) return
|
|
23
|
+
var v = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, y = _, b = (e, t) => (n) => {
|
|
24
|
+
if (t?.variants == null) return y(e, n?.class, n?.className);
|
|
24
25
|
let { variants: r, defaultVariants: i } = t, a = Object.keys(r).map((e) => {
|
|
25
26
|
let t = n?.[e], a = i?.[e];
|
|
26
27
|
if (t === null) return null;
|
|
27
|
-
let o =
|
|
28
|
+
let o = v(t) || v(a);
|
|
28
29
|
return r[e][o];
|
|
29
30
|
}), o = n && Object.entries(n).reduce((e, t) => {
|
|
30
31
|
let [n, r] = t;
|
|
31
32
|
return r === void 0 || (e[n] = r), e;
|
|
32
33
|
}, {});
|
|
33
|
-
return
|
|
34
|
+
return y(e, a, t?.compoundVariants?.reduce((e, t) => {
|
|
34
35
|
let { class: n, className: r, ...a } = t;
|
|
35
36
|
return Object.entries(a).every((e) => {
|
|
36
37
|
let [t, n] = e;
|
|
@@ -47,7 +48,7 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
47
48
|
r
|
|
48
49
|
] : e;
|
|
49
50
|
}, []), n?.class, n?.className);
|
|
50
|
-
},
|
|
51
|
+
}, x = b("flex flex-wrap items-baseline gap-y-[var(--space-stack)]", {
|
|
51
52
|
variants: {
|
|
52
53
|
gap: {
|
|
53
54
|
stack: "gap-x-[var(--space-stack)]",
|
|
@@ -62,22 +63,22 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
62
63
|
gap: "region",
|
|
63
64
|
justify: "start"
|
|
64
65
|
}
|
|
65
|
-
}),
|
|
66
|
-
className:
|
|
66
|
+
}), S = ({ gap: e, justify: n, children: r, testId: i }) => /* @__PURE__ */ t("div", {
|
|
67
|
+
className: x({
|
|
67
68
|
gap: e,
|
|
68
69
|
justify: n
|
|
69
70
|
}),
|
|
70
71
|
"data-testid": i,
|
|
71
72
|
children: r
|
|
72
|
-
}),
|
|
73
|
+
}), C = class extends Error {
|
|
73
74
|
constructor() {
|
|
74
75
|
super("ColumnLayout.Column must be a direct child of ColumnLayout.Root (arrays and fragments are fine; a wrapping component or a nested Column is not)"), this.name = "ColumnLayoutCompositionError";
|
|
75
76
|
}
|
|
76
|
-
},
|
|
77
|
+
}, w = class extends Error {
|
|
77
78
|
constructor(e) {
|
|
78
79
|
super(`ColumnLayout configuration is invalid: ${e}`), this.name = "ColumnLayoutConfigurationError";
|
|
79
80
|
}
|
|
80
|
-
},
|
|
81
|
+
}, T = b("flex flex-wrap items-start", {
|
|
81
82
|
variants: {
|
|
82
83
|
fill: {
|
|
83
84
|
false: "",
|
|
@@ -92,151 +93,233 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
92
93
|
gap: "region",
|
|
93
94
|
fill: !1
|
|
94
95
|
}
|
|
95
|
-
}),
|
|
96
|
+
}), ee = b("h-full min-h-0 min-w-0 [container-type:inline-size]"), te = b("min-w-0 grow-[calc(var(--column-layout-weight)/var(--column-layout-growth-unit))] basis-[clamp(0px,(var(--column-layout-threshold)-100%)*1000000,100%)] max-w-[var(--column-layout-maximum)]"), ne = b("relative min-w-0", {
|
|
97
|
+
variants: { fill: {
|
|
98
|
+
false: "",
|
|
99
|
+
true: "h-full min-h-0"
|
|
100
|
+
} },
|
|
101
|
+
defaultVariants: { fill: !1 }
|
|
102
|
+
}), E = b("pointer-events-none invisible absolute inset-x-0 top-0 h-0 overflow-hidden"), re = b("h-0 w-[clamp(0px,(var(--column-layout-threshold)-100%+var(--column-layout-reserve))*1000000,1px)]", {
|
|
103
|
+
variants: { gap: {
|
|
104
|
+
stack: "[--column-layout-gap:var(--space-stack)]",
|
|
105
|
+
region: "[--column-layout-gap:var(--space-region)]"
|
|
106
|
+
} },
|
|
107
|
+
defaultVariants: { gap: "region" }
|
|
108
|
+
}), D = a(!1), ie = /^--[A-Za-z0-9_-]+$/, ae = (e, t) => {
|
|
96
109
|
let { weight: n, minWidth: r, maxWidth: i } = e.props;
|
|
97
|
-
if (!Number.isFinite(n) || n <= 0) throw new
|
|
98
|
-
if (!
|
|
99
|
-
if (i !== void 0 && !
|
|
110
|
+
if (!Number.isFinite(n) || n <= 0) throw new w(`column ${t + 1} needs a positive finite weight (got ${n})`);
|
|
111
|
+
if (!ie.test(r)) throw new w(`column ${t + 1} needs a custom-property name such as --main-column-min-width for minWidth (got ${JSON.stringify(r)})`);
|
|
112
|
+
if (i !== void 0 && !ie.test(i)) throw new w(`column ${t + 1} needs a custom-property name such as --support-column-max-width for maxWidth (got ${JSON.stringify(i)})`);
|
|
100
113
|
return {
|
|
101
114
|
weight: n,
|
|
102
115
|
minWidth: r,
|
|
103
116
|
maxWidth: i
|
|
104
117
|
};
|
|
105
|
-
},
|
|
118
|
+
}, oe = (e) => {
|
|
106
119
|
let t = e.reduce((e, t) => e + t.weight, 0), n = e.map((e) => `var(${e.minWidth}) * ${t / e.weight}`);
|
|
107
120
|
return `calc(${e.length - 1} * var(--column-layout-gap) + max(${n.join(", ")}))`;
|
|
108
|
-
},
|
|
121
|
+
}, O = (e) => e.some((e) => e.maxWidth !== void 0) ? Math.min(1, ...e.map((e) => e.weight)) : 1, k = (e) => o(e) && e.type === i, A = (e) => o(e) && e.type === P, j = (e) => r.toArray(e).flatMap((e) => k(e) ? j(e.props.children) : A(e) ? [e] : []), M = (e) => r.map(e, (e) => k(e) ? /* @__PURE__ */ t(i, { children: M(e.props.children) }) : A(e) ? /* @__PURE__ */ t(D.Provider, {
|
|
109
122
|
value: !0,
|
|
110
123
|
children: e
|
|
111
|
-
}) : e),
|
|
112
|
-
let a =
|
|
113
|
-
"--column-layout-threshold":
|
|
114
|
-
"--column-layout-growth-unit":
|
|
124
|
+
}) : e), N = ({ gap: e, fill: n, children: r, testId: i }) => {
|
|
125
|
+
let a = j(r).map(ae), o = a.length === 0 ? void 0 : {
|
|
126
|
+
"--column-layout-threshold": oe(a),
|
|
127
|
+
"--column-layout-growth-unit": O(a)
|
|
115
128
|
}, s = /* @__PURE__ */ t("div", {
|
|
116
|
-
className:
|
|
129
|
+
className: T({
|
|
117
130
|
gap: e,
|
|
118
131
|
fill: n
|
|
119
132
|
}),
|
|
120
133
|
style: o,
|
|
121
134
|
"data-testid": i,
|
|
122
|
-
children:
|
|
135
|
+
children: M(r)
|
|
123
136
|
});
|
|
124
137
|
return n ? /* @__PURE__ */ t("div", {
|
|
125
|
-
className:
|
|
138
|
+
className: ee(),
|
|
126
139
|
children: s
|
|
127
140
|
}) : s;
|
|
128
|
-
},
|
|
129
|
-
if (!c(
|
|
141
|
+
}, P = ({ weight: e, maxWidth: n, children: r, testId: i }) => {
|
|
142
|
+
if (!c(D)) throw new C();
|
|
130
143
|
let a = {
|
|
131
144
|
"--column-layout-weight": e,
|
|
132
145
|
"--column-layout-maximum": n === void 0 ? "none" : `max(var(${n}), clamp(0px, (var(--column-layout-threshold) - 100%) * 1000000, 100%))`
|
|
133
146
|
};
|
|
134
147
|
return /* @__PURE__ */ t("div", {
|
|
135
|
-
className:
|
|
148
|
+
className: te(),
|
|
136
149
|
style: a,
|
|
137
150
|
"data-testid": i,
|
|
138
|
-
children: /* @__PURE__ */ t(
|
|
151
|
+
children: /* @__PURE__ */ t(D.Provider, {
|
|
139
152
|
value: !1,
|
|
140
153
|
children: r
|
|
141
154
|
})
|
|
142
155
|
});
|
|
143
|
-
},
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
},
|
|
156
|
+
}, F = -1, I = 3, L = (e, t, n) => {
|
|
157
|
+
let [r, i, a, o] = e;
|
|
158
|
+
return r?.to === t && a?.to === t && r.width === n && a.width === n && i?.to === o?.to && i?.width === o?.width && o !== void 0 && o.width !== n ? Math.abs(n - o.width) : void 0;
|
|
159
|
+
}, R = (e) => o(e) && e.type === N, z = (e) => r.toArray(e).flatMap((e) => {
|
|
160
|
+
if (k(e)) return z(e.props.children);
|
|
161
|
+
if (!R(e)) throw new w("Alternatives takes ColumnLayout.Root elements only (arrays and fragments are fine; other content or a wrapping component is not)");
|
|
162
|
+
return [e];
|
|
163
|
+
}), se = (e, t) => {
|
|
164
|
+
let n = j(e.props.children).map(ae);
|
|
165
|
+
if (n.length === 0) throw new w(`alternative ${t + 1} declares no columns, so it has no minimum to fit`);
|
|
166
|
+
return {
|
|
167
|
+
arrangement: e,
|
|
168
|
+
threshold: oe(n)
|
|
169
|
+
};
|
|
170
|
+
}, ce = (e, t) => ({
|
|
171
|
+
"--column-layout-threshold": e,
|
|
172
|
+
"--column-layout-reserve": t
|
|
173
|
+
}), le = (e) => Array.from(e.children).findIndex((e) => e.getBoundingClientRect().width === 0), B = (e) => e === F ? Infinity : e, ue = {
|
|
174
|
+
Root: N,
|
|
175
|
+
Column: P,
|
|
176
|
+
Alternatives: ({ fill: e, fallback: r, children: a, testId: o }) => {
|
|
177
|
+
let s = z(a).map(se), c = s.map(({ arrangement: e, threshold: t }) => `${e.props.gap} ${t}`).join("\n"), l = p(null), u = p(null), [f, g] = m(void 0), [_, v] = m(0);
|
|
178
|
+
d(() => {
|
|
179
|
+
let e = l.current;
|
|
180
|
+
if (e === null) return;
|
|
181
|
+
let t, n = [], r = (e) => {
|
|
182
|
+
let t = [...n.slice(-3), e], r = I, i = () => {
|
|
183
|
+
n === t && (--r, r === 0 ? n = [] : requestAnimationFrame(i));
|
|
184
|
+
};
|
|
185
|
+
n = t, requestAnimationFrame(i);
|
|
186
|
+
}, i = () => {
|
|
187
|
+
let i = le(e);
|
|
188
|
+
if (i === t) return;
|
|
189
|
+
let { width: a } = e.getBoundingClientRect(), o = L(n, i, a);
|
|
190
|
+
o !== void 0 && (v((e) => Math.max(e, o)), n = [], t !== void 0 && B(i) < B(t)) || (r({
|
|
191
|
+
to: i,
|
|
192
|
+
width: a
|
|
193
|
+
}), t = i, g({
|
|
194
|
+
measured: c,
|
|
195
|
+
firstFit: i
|
|
196
|
+
}));
|
|
197
|
+
};
|
|
198
|
+
if (v(0), i(), typeof ResizeObserver > "u") return;
|
|
199
|
+
let a = new ResizeObserver(() => h(i));
|
|
200
|
+
for (let t of e.children) a.observe(t);
|
|
201
|
+
return () => {
|
|
202
|
+
n = [], a.disconnect();
|
|
203
|
+
};
|
|
204
|
+
}, [c]);
|
|
205
|
+
let y = r != null && r !== !1, b = f?.measured === c ? f : void 0, x = (b === void 0 ? void 0 : s[b.firstFit]?.arrangement) ?? (y ? void 0 : s.at(-1)?.arrangement), S = b === void 0 ? u.current : x === void 0 ? y && /* @__PURE__ */ t(i, { children: r }, "fallback") : /* @__PURE__ */ t(N, {
|
|
206
|
+
gap: x.props.gap,
|
|
207
|
+
fill: x.props.fill,
|
|
208
|
+
testId: x.props.testId,
|
|
209
|
+
children: x.props.children
|
|
210
|
+
}, "arrangement");
|
|
211
|
+
d(() => {
|
|
212
|
+
u.current = S;
|
|
213
|
+
});
|
|
214
|
+
let C = (e) => b !== void 0 && e < B(b.firstFit) ? `${_}px` : "0px";
|
|
215
|
+
return /* @__PURE__ */ n("div", {
|
|
216
|
+
className: ne({ fill: e }),
|
|
217
|
+
"data-testid": o,
|
|
218
|
+
children: [/* @__PURE__ */ t("div", {
|
|
219
|
+
ref: l,
|
|
220
|
+
"aria-hidden": "true",
|
|
221
|
+
className: E(),
|
|
222
|
+
children: s.map(({ arrangement: e, threshold: n }, r) => /* @__PURE__ */ t("div", {
|
|
223
|
+
className: re({ gap: e.props.gap }),
|
|
224
|
+
style: ce(n, C(r))
|
|
225
|
+
}, r))
|
|
226
|
+
}), S]
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
}, de = .5, V = (e, t) => Math.abs(e - t) <= de, fe = (e) => {
|
|
147
230
|
let t = [];
|
|
148
|
-
for (let { top: n } of e) t.some((e) =>
|
|
149
|
-
let n = t.map((t) => Math.max(...e.filter((e) =>
|
|
231
|
+
for (let { top: n } of e) t.some((e) => V(e, n)) || t.push(n);
|
|
232
|
+
let n = t.map((t) => Math.max(...e.filter((e) => V(t, e.top)).map((e) => e.controlEdge)));
|
|
150
233
|
return e.map(({ top: e, controlEdge: r }) => {
|
|
151
|
-
let i = t.findIndex((t) =>
|
|
234
|
+
let i = t.findIndex((t) => V(t, e));
|
|
152
235
|
return (n[i] ?? r) - r;
|
|
153
236
|
});
|
|
154
|
-
},
|
|
237
|
+
}, pe = class extends Error {
|
|
155
238
|
constructor(e) {
|
|
156
239
|
super(`FieldRow.${e} must be composed inside FieldRow.Root`), this.name = "FieldRowCompositionError";
|
|
157
240
|
}
|
|
158
|
-
},
|
|
241
|
+
}, H = class extends Error {
|
|
159
242
|
constructor(e) {
|
|
160
243
|
super(`FieldRow configuration: ${e}`), this.name = "FieldRowConfigurationError";
|
|
161
244
|
}
|
|
162
|
-
},
|
|
245
|
+
}, me = b("flex flex-wrap items-start gap-y-[var(--space-stack)]", {
|
|
163
246
|
variants: { gap: {
|
|
164
247
|
stack: "gap-x-[var(--space-stack)]",
|
|
165
248
|
region: "gap-x-[var(--space-region)]"
|
|
166
249
|
} },
|
|
167
250
|
defaultVariants: { gap: "stack" }
|
|
168
|
-
}),
|
|
251
|
+
}), he = b("shrink basis-0"), ge = b("", {
|
|
169
252
|
variants: { part: {
|
|
170
253
|
item: "min-w-0 max-w-full flex-none",
|
|
171
254
|
group: "flex flex-wrap items-end gap-[var(--space-stack)]"
|
|
172
255
|
} },
|
|
173
256
|
defaultVariants: { part: "item" }
|
|
174
|
-
}),
|
|
175
|
-
let t = c(
|
|
176
|
-
if (t === void 0) throw new
|
|
257
|
+
}), _e = /^--[A-Za-z0-9_-]+$/, ve = ":scope > [data-field-row-item]", ye = a(void 0), be = (e) => {
|
|
258
|
+
let t = c(ye);
|
|
259
|
+
if (t === void 0) throw new pe(e);
|
|
177
260
|
return t;
|
|
178
|
-
},
|
|
179
|
-
if (!(Number.isFinite(e) && e > 0)) throw new
|
|
180
|
-
},
|
|
181
|
-
if (!
|
|
182
|
-
},
|
|
261
|
+
}, xe = (e) => {
|
|
262
|
+
if (!(Number.isFinite(e) && e > 0)) throw new H(`weight must be a positive finite number, got ${e}`);
|
|
263
|
+
}, Se = (e) => {
|
|
264
|
+
if (!_e.test(e)) throw new H(`minWidth must name a CSS custom property such as --search-field-min-width, got ${JSON.stringify(e)}`);
|
|
265
|
+
}, Ce = (e) => {
|
|
183
266
|
let t = e.querySelector("label[for]")?.getAttribute("for");
|
|
184
267
|
if (!t) return;
|
|
185
268
|
let n = e.ownerDocument.getElementById(t);
|
|
186
269
|
return n !== null && e.contains(n) ? n : void 0;
|
|
187
|
-
},
|
|
270
|
+
}, we = (e) => getComputedStyle(e).position !== "static", Te = (e, t) => {
|
|
188
271
|
if (getComputedStyle(e).position !== "absolute") return e;
|
|
189
272
|
let n = e.parentElement;
|
|
190
|
-
for (; n !== null && n !== t && !
|
|
273
|
+
for (; n !== null && n !== t && !we(n);) n = n.parentElement;
|
|
191
274
|
return n ?? e;
|
|
192
|
-
},
|
|
275
|
+
}, Ee = (e) => {
|
|
193
276
|
let t = e.getBoundingClientRect().top, n = e.firstElementChild;
|
|
194
277
|
if (n === null) return {
|
|
195
278
|
top: t,
|
|
196
279
|
controlEdge: 0
|
|
197
280
|
};
|
|
198
|
-
let r = n.getBoundingClientRect(), i =
|
|
281
|
+
let r = n.getBoundingClientRect(), i = Ce(n);
|
|
199
282
|
return {
|
|
200
283
|
top: t,
|
|
201
|
-
controlEdge: (i === void 0 ? r.bottom :
|
|
284
|
+
controlEdge: (i === void 0 ? r.bottom : Te(i, n).getBoundingClientRect().bottom) - r.top
|
|
202
285
|
};
|
|
203
|
-
},
|
|
204
|
-
let t = Array.from(e.querySelectorAll(
|
|
286
|
+
}, De = (e) => {
|
|
287
|
+
let t = Array.from(e.querySelectorAll(ve)), n = fe(t.map(Ee));
|
|
205
288
|
t.forEach((e, t) => {
|
|
206
289
|
let r = n[t] ?? 0, i = Number.parseFloat(e.style.paddingTop) || 0;
|
|
207
290
|
Math.abs(i - r) > .01 && (e.style.paddingTop = r === 0 ? "" : `${r}px`);
|
|
208
291
|
});
|
|
209
|
-
},
|
|
292
|
+
}, Oe = {
|
|
210
293
|
Root: ({ gap: e, children: n, testId: r }) => {
|
|
211
294
|
let i = p(null), a = p(void 0), o = p(/* @__PURE__ */ new WeakSet()), s = () => {
|
|
212
|
-
i.current &&
|
|
295
|
+
i.current && De(i.current);
|
|
213
296
|
}, c = (e) => {
|
|
214
297
|
e && a.current && !o.current.has(e) && (o.current.add(e), a.current.observe(e));
|
|
215
298
|
};
|
|
216
299
|
return d(() => {
|
|
217
300
|
let e = i.current;
|
|
218
|
-
if (e !== null && (
|
|
219
|
-
a.current ??= new ResizeObserver(() =>
|
|
220
|
-
for (let t of e.querySelectorAll(
|
|
301
|
+
if (e !== null && (De(e), !(typeof ResizeObserver > "u"))) {
|
|
302
|
+
a.current ??= new ResizeObserver(() => De(e));
|
|
303
|
+
for (let t of e.querySelectorAll(ve)) {
|
|
221
304
|
let e = t.firstElementChild ?? void 0;
|
|
222
305
|
c(e), c(e?.querySelector("label[for]") ?? void 0);
|
|
223
306
|
}
|
|
224
307
|
}
|
|
225
308
|
}), d(() => () => a.current?.disconnect(), []), /* @__PURE__ */ t("div", {
|
|
226
309
|
ref: i,
|
|
227
|
-
className:
|
|
310
|
+
className: me({ gap: e }),
|
|
228
311
|
"data-testid": r,
|
|
229
|
-
children: /* @__PURE__ */ t(
|
|
312
|
+
children: /* @__PURE__ */ t(ye, {
|
|
230
313
|
value: { align: s },
|
|
231
314
|
children: n
|
|
232
315
|
})
|
|
233
316
|
});
|
|
234
317
|
},
|
|
235
318
|
Field: ({ children: e, weight: n = 1, minWidth: r, testId: i }) => {
|
|
236
|
-
let { align: a } =
|
|
237
|
-
return
|
|
319
|
+
let { align: a } = be("Field");
|
|
320
|
+
return xe(n), Se(r), d(() => a()), /* @__PURE__ */ t("div", {
|
|
238
321
|
"data-field-row-item": !0,
|
|
239
|
-
className:
|
|
322
|
+
className: he(),
|
|
240
323
|
"data-testid": i,
|
|
241
324
|
style: {
|
|
242
325
|
flexGrow: n,
|
|
@@ -246,18 +329,18 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
246
329
|
});
|
|
247
330
|
},
|
|
248
331
|
Actions: ({ children: e, testId: n }) => {
|
|
249
|
-
let { align: r } =
|
|
332
|
+
let { align: r } = be("Actions");
|
|
250
333
|
return d(() => r()), /* @__PURE__ */ t("div", {
|
|
251
334
|
"data-field-row-item": !0,
|
|
252
|
-
className:
|
|
335
|
+
className: ge(),
|
|
253
336
|
"data-testid": n,
|
|
254
337
|
children: /* @__PURE__ */ t("div", {
|
|
255
|
-
className:
|
|
338
|
+
className: ge({ part: "group" }),
|
|
256
339
|
children: e
|
|
257
340
|
})
|
|
258
341
|
});
|
|
259
342
|
}
|
|
260
|
-
},
|
|
343
|
+
}, ke = b("flex", {
|
|
261
344
|
variants: {
|
|
262
345
|
gap: {
|
|
263
346
|
stack: "gap-[var(--space-stack)]",
|
|
@@ -282,8 +365,8 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
282
365
|
measure: !1,
|
|
283
366
|
direction: "column"
|
|
284
367
|
}
|
|
285
|
-
}),
|
|
286
|
-
className:
|
|
368
|
+
}), Ae = ({ gap: e, measure: n, direction: r, align: i, children: a, testId: o }) => /* @__PURE__ */ t("div", {
|
|
369
|
+
className: ke({
|
|
287
370
|
gap: e,
|
|
288
371
|
measure: n,
|
|
289
372
|
direction: r,
|
|
@@ -291,33 +374,33 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
291
374
|
}),
|
|
292
375
|
"data-testid": o,
|
|
293
376
|
children: a
|
|
294
|
-
}),
|
|
295
|
-
className:
|
|
377
|
+
}), je = b(["min-w-0 border border-solid border-border bg-surface text-foreground", "p-[var(--space-box-inset)] [overflow-wrap:anywhere]"].join(" ")), Me = ({ children: e, name: n, testId: r }) => n === void 0 || n === "" ? /* @__PURE__ */ t("div", {
|
|
378
|
+
className: je(),
|
|
296
379
|
"data-testid": r,
|
|
297
380
|
children: e
|
|
298
381
|
}) : /* @__PURE__ */ t("div", {
|
|
299
|
-
className:
|
|
382
|
+
className: je(),
|
|
300
383
|
role: "group",
|
|
301
384
|
"aria-label": n,
|
|
302
385
|
"data-testid": r,
|
|
303
386
|
children: e
|
|
304
|
-
}),
|
|
387
|
+
}), Ne = b("inline-flex", { variants: { cut: {
|
|
305
388
|
full: "",
|
|
306
389
|
compact: ""
|
|
307
|
-
} } }),
|
|
390
|
+
} } }), Pe = ({ name: e, cut: n, children: r, testId: i }) => e === "" ? /* @__PURE__ */ t("span", {
|
|
308
391
|
"aria-hidden": "true",
|
|
309
392
|
"data-cut": n,
|
|
310
|
-
className:
|
|
393
|
+
className: Ne({ cut: n }),
|
|
311
394
|
"data-testid": i,
|
|
312
395
|
children: r
|
|
313
396
|
}) : /* @__PURE__ */ t("span", {
|
|
314
397
|
role: "img",
|
|
315
398
|
"aria-label": e,
|
|
316
399
|
"data-cut": n,
|
|
317
|
-
className:
|
|
400
|
+
className: Ne({ cut: n }),
|
|
318
401
|
"data-testid": i,
|
|
319
402
|
children: r
|
|
320
|
-
}),
|
|
403
|
+
}), Fe = b("min-w-0 border-s-[length:var(--callout-mark-width)] border-solid ps-[var(--space-callout-inset)] text-foreground [overflow-wrap:anywhere] forced-colors:border-s-[CanvasText]", {
|
|
321
404
|
variants: { tone: {
|
|
322
405
|
warning: "border-warning",
|
|
323
406
|
info: "border-info",
|
|
@@ -325,54 +408,54 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
325
408
|
error: "border-error"
|
|
326
409
|
} },
|
|
327
410
|
defaultVariants: { tone: "warning" }
|
|
328
|
-
}),
|
|
329
|
-
className:
|
|
411
|
+
}), Ie = ({ children: e, tone: n, name: r, testId: i }) => r === void 0 || r === "" ? /* @__PURE__ */ t("div", {
|
|
412
|
+
className: Fe({ tone: n }),
|
|
330
413
|
"data-testid": i,
|
|
331
414
|
children: e
|
|
332
415
|
}) : /* @__PURE__ */ t("div", {
|
|
333
|
-
className:
|
|
416
|
+
className: Fe({ tone: n }),
|
|
334
417
|
role: "group",
|
|
335
418
|
"aria-label": r,
|
|
336
419
|
"data-testid": i,
|
|
337
420
|
children: e
|
|
338
|
-
}),
|
|
421
|
+
}), Le = b("m-0 list-none p-0"), Re = b([
|
|
339
422
|
"flex items-start gap-3 font-body text-body leading-body text-foreground",
|
|
340
423
|
"before:mt-[0.35em] before:size-[calc(var(--tick-length)*0.7)] before:shrink-0 before:rotate-45 before:[border-top:var(--tick-thickness)_solid_var(--color-rule)] before:[border-right:var(--tick-thickness)_solid_var(--color-rule)] before:content-['']",
|
|
341
424
|
"[&:not(:first-child)]:mt-[var(--space-stack)] [&:not(:first-child)]:border-border [&:not(:first-child)]:border-t [&:not(:first-child)]:border-solid [&:not(:first-child)]:pt-[var(--space-stack)]"
|
|
342
|
-
].join(" ")),
|
|
425
|
+
].join(" ")), ze = {
|
|
343
426
|
Root: ({ children: e, testId: n }) => /* @__PURE__ */ t("ul", {
|
|
344
|
-
className:
|
|
427
|
+
className: Le(),
|
|
345
428
|
role: "list",
|
|
346
429
|
"data-testid": n,
|
|
347
430
|
children: e
|
|
348
431
|
}),
|
|
349
432
|
Item: ({ children: e }) => /* @__PURE__ */ t("li", {
|
|
350
|
-
className:
|
|
433
|
+
className: Re(),
|
|
351
434
|
children: e
|
|
352
435
|
})
|
|
353
|
-
},
|
|
436
|
+
}, Be = b("m-0 list-none p-0"), Ve = b("py-[var(--space-collection-item)] [&+li]:border-t [&+li]:border-solid [&+li]:border-border"), He = {
|
|
354
437
|
Root: ({ children: e, testId: n }) => /* @__PURE__ */ t("ul", {
|
|
355
|
-
className:
|
|
438
|
+
className: Be(),
|
|
356
439
|
role: "list",
|
|
357
440
|
"data-testid": n,
|
|
358
441
|
children: e
|
|
359
442
|
}),
|
|
360
443
|
Item: ({ children: e, testId: n }) => /* @__PURE__ */ t("li", {
|
|
361
|
-
className:
|
|
444
|
+
className: Ve(),
|
|
362
445
|
"data-testid": n,
|
|
363
446
|
children: e
|
|
364
447
|
})
|
|
365
|
-
},
|
|
448
|
+
}, Ue = class extends Error {
|
|
366
449
|
constructor(e) {
|
|
367
450
|
super(`DefinitionList configuration is invalid: ${e}`), this.name = "DefinitionListConfigurationError";
|
|
368
451
|
}
|
|
369
|
-
},
|
|
452
|
+
}, We = b("@container", {
|
|
370
453
|
variants: { density: {
|
|
371
454
|
comfortable: "[&>div]:py-[var(--space-definition-item)]",
|
|
372
455
|
compact: "[&>div]:py-[var(--space-definition-item-compact)]"
|
|
373
456
|
} },
|
|
374
457
|
defaultVariants: { density: "comfortable" }
|
|
375
|
-
}),
|
|
458
|
+
}), Ge = b([
|
|
376
459
|
"grid grid-flow-row-dense gap-[var(--space-stack)] border-b border-solid border-border first:border-t",
|
|
377
460
|
"[--definition-stack:clamp(0px,(var(--definition-threshold)-100%)*1000000,100%)]",
|
|
378
461
|
"[--definition-shortfall:clamp(0px,(var(--definition-threshold)-100cqi)*1000000,1px)]",
|
|
@@ -380,46 +463,46 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
380
463
|
"gap-x-[max(0px,var(--space-definition-column)-var(--definition-stack))]",
|
|
381
464
|
"[&>dt]:col-start-1 [&>dt]:self-baseline [&>dd]:col-span-full [&>dd]:self-baseline",
|
|
382
465
|
"[&>dd]:col-start-[calc(2-tan(atan2(var(--definition-shortfall),1px)))]"
|
|
383
|
-
].join(" ")),
|
|
466
|
+
].join(" ")), Ke = b("font-body text-subtitle leading-subtitle text-foreground wrap-break-word"), qe = b("font-body text-body leading-body text-muted max-w-[var(--measure)] wrap-break-word"), Je = {
|
|
384
467
|
weight: 1,
|
|
385
468
|
minWidth: "--definition-term-min-width"
|
|
386
|
-
},
|
|
469
|
+
}, Ye = {
|
|
387
470
|
weight: 2,
|
|
388
471
|
minWidth: "--definition-description-min-width"
|
|
389
|
-
},
|
|
390
|
-
if (!Number.isFinite(t.weight) || t.weight <= 0) throw new
|
|
391
|
-
if (!
|
|
472
|
+
}, Xe = /^--[A-Za-z0-9_-]+$/, Ze = (e, t) => {
|
|
473
|
+
if (!Number.isFinite(t.weight) || t.weight <= 0) throw new Ue(`${e} needs a positive finite weight (got ${t.weight})`);
|
|
474
|
+
if (!Xe.test(t.minWidth)) throw new Ue(`${e} needs a custom-property name such as --summary-term-min-width for minWidth (got ${JSON.stringify(t.minWidth)})`);
|
|
392
475
|
return t;
|
|
393
|
-
},
|
|
476
|
+
}, Qe = (e, t) => {
|
|
394
477
|
let n = e.weight + t.weight;
|
|
395
478
|
return `calc(var(--space-definition-column) + max(var(${e.minWidth}) * ${n / e.weight}, var(${t.minWidth}) * ${n / t.weight}))`;
|
|
396
|
-
},
|
|
397
|
-
Root: ({ density: e, termColumn: n =
|
|
398
|
-
let o =
|
|
399
|
-
"--definition-threshold":
|
|
479
|
+
}, $e = {
|
|
480
|
+
Root: ({ density: e, termColumn: n = Je, descriptionColumn: r = Ye, children: i, testId: a }) => {
|
|
481
|
+
let o = Ze("termColumn", n), s = Ze("descriptionColumn", r), c = {
|
|
482
|
+
"--definition-threshold": Qe(o, s),
|
|
400
483
|
"--definition-term-share": `calc(${o.weight} / ${o.weight + s.weight})`
|
|
401
484
|
};
|
|
402
485
|
return /* @__PURE__ */ t("dl", {
|
|
403
|
-
className:
|
|
486
|
+
className: We({ density: e }),
|
|
404
487
|
style: c,
|
|
405
488
|
"data-testid": a,
|
|
406
489
|
children: i
|
|
407
490
|
});
|
|
408
491
|
},
|
|
409
492
|
Item: ({ children: e, testId: n }) => /* @__PURE__ */ t("div", {
|
|
410
|
-
className:
|
|
493
|
+
className: Ge(),
|
|
411
494
|
"data-testid": n,
|
|
412
495
|
children: e
|
|
413
496
|
}),
|
|
414
497
|
Term: ({ children: e }) => /* @__PURE__ */ t("dt", {
|
|
415
|
-
className:
|
|
498
|
+
className: Ke(),
|
|
416
499
|
children: e
|
|
417
500
|
}),
|
|
418
501
|
Description: ({ children: e }) => /* @__PURE__ */ t("dd", {
|
|
419
|
-
className:
|
|
502
|
+
className: qe(),
|
|
420
503
|
children: e
|
|
421
504
|
})
|
|
422
|
-
},
|
|
505
|
+
}, et = b("block w-full object-cover bg-backing", {
|
|
423
506
|
variants: {
|
|
424
507
|
ratio: {
|
|
425
508
|
portrait: "aspect-portrait",
|
|
@@ -436,13 +519,13 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
436
519
|
}
|
|
437
520
|
},
|
|
438
521
|
defaultVariants: { focus: "center" }
|
|
439
|
-
}),
|
|
522
|
+
}), tt = ({ src: e, alt: r, width: i, height: a, ratio: o, focus: s, responsive: c, caption: l, overlay: u, priority: d, testId: f }) => {
|
|
440
523
|
let p = u != null && typeof u != "boolean", m = /* @__PURE__ */ t("img", {
|
|
441
524
|
src: e,
|
|
442
525
|
alt: r,
|
|
443
526
|
width: i,
|
|
444
527
|
height: a,
|
|
445
|
-
className:
|
|
528
|
+
className: et({
|
|
446
529
|
ratio: o,
|
|
447
530
|
focus: s
|
|
448
531
|
}),
|
|
@@ -465,13 +548,13 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
465
548
|
children: l
|
|
466
549
|
})]
|
|
467
550
|
});
|
|
468
|
-
},
|
|
551
|
+
}, nt = b("inline-block shrink-0 align-[-0.125em] forced-color-adjust-auto", { variants: { color: {
|
|
469
552
|
muted: "text-muted",
|
|
470
553
|
success: "text-success",
|
|
471
554
|
warning: "text-warning",
|
|
472
555
|
error: "text-error",
|
|
473
556
|
info: "text-info"
|
|
474
|
-
} } }),
|
|
557
|
+
} } }), rt = "M3.5 2h9a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H7.25L4 13.75V11h-.5a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1z", it = {
|
|
475
558
|
plus: ["M3 8h10", "M8 3v10"],
|
|
476
559
|
right: ["M3 8h10", "M9 4l4 4-4 4"],
|
|
477
560
|
remove: ["M3 8h10"],
|
|
@@ -492,12 +575,12 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
492
575
|
"M9.25 7.25v3.5"
|
|
493
576
|
],
|
|
494
577
|
"bubble-exclamation": [
|
|
495
|
-
|
|
578
|
+
rt,
|
|
496
579
|
"M8 4.5v2",
|
|
497
580
|
"M8 8.75h.01"
|
|
498
581
|
],
|
|
499
|
-
"bubble-tick": [
|
|
500
|
-
},
|
|
582
|
+
"bubble-tick": [rt, "M5.75 6.75l1.5 1.5 3-3.5"]
|
|
583
|
+
}, at = ({ name: e, label: n, color: r, testId: i }) => /* @__PURE__ */ t("svg", {
|
|
501
584
|
role: n ? "img" : void 0,
|
|
502
585
|
"aria-label": n || void 0,
|
|
503
586
|
"aria-hidden": !n || void 0,
|
|
@@ -505,9 +588,9 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
505
588
|
viewBox: "0 0 16 16",
|
|
506
589
|
width: "1em",
|
|
507
590
|
height: "1em",
|
|
508
|
-
className:
|
|
591
|
+
className: nt({ color: r }),
|
|
509
592
|
"data-testid": i,
|
|
510
|
-
children:
|
|
593
|
+
children: it[e].map((n) => /* @__PURE__ */ t("path", {
|
|
511
594
|
d: n,
|
|
512
595
|
fill: e === "dot" ? "currentColor" : "none",
|
|
513
596
|
stroke: e === "dot" ? "none" : "currentColor",
|
|
@@ -515,36 +598,36 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
515
598
|
strokeLinecap: "round",
|
|
516
599
|
strokeLinejoin: "round"
|
|
517
600
|
}, n))
|
|
518
|
-
}),
|
|
601
|
+
}), U = (e) => ({ label: n, color: r, testId: i }) => /* @__PURE__ */ t(at, {
|
|
519
602
|
name: e,
|
|
520
603
|
label: n,
|
|
521
604
|
color: r,
|
|
522
605
|
testId: i
|
|
523
|
-
}),
|
|
606
|
+
}), ot = Object.assign(({ name: e, label: n, color: r, testId: i }) => /* @__PURE__ */ t(at, {
|
|
524
607
|
name: e,
|
|
525
608
|
label: n,
|
|
526
609
|
color: r,
|
|
527
610
|
testId: i
|
|
528
611
|
}), {
|
|
529
|
-
Plus:
|
|
530
|
-
Up:
|
|
531
|
-
Down:
|
|
532
|
-
Right:
|
|
533
|
-
Remove:
|
|
534
|
-
}),
|
|
612
|
+
Plus: U("plus"),
|
|
613
|
+
Up: U("sort-ascending"),
|
|
614
|
+
Down: U("sort-descending"),
|
|
615
|
+
Right: U("right"),
|
|
616
|
+
Remove: U("remove")
|
|
617
|
+
}), W = class extends Error {
|
|
535
618
|
constructor(e) {
|
|
536
619
|
super(`Meter configuration is invalid: ${e}`), this.name = "MeterConfigurationError";
|
|
537
620
|
}
|
|
538
|
-
},
|
|
621
|
+
}, st = b("w-full h-[var(--meter-track-thickness)] bg-meter-track border border-solid border-rule"), ct = b("h-full w-[calc(var(--meter-level)*100%)]", {
|
|
539
622
|
variants: { treatment: {
|
|
540
623
|
neutral: "bg-meter-fill",
|
|
541
624
|
depleting: "bg-[color-mix(in_oklab,var(--color-meter-fill)_calc(var(--meter-level)*100%),var(--color-error))]"
|
|
542
625
|
} },
|
|
543
626
|
defaultVariants: { treatment: "neutral" }
|
|
544
|
-
}),
|
|
545
|
-
if (!Number.isFinite(e) || !Number.isFinite(n) || !Number.isFinite(r)) throw new
|
|
546
|
-
if (n >= r) throw new
|
|
547
|
-
let c = { "--meter-level":
|
|
627
|
+
}), lt = (e, t, n) => e <= t ? 0 : e >= n ? 1 : (e - t) / (n - t), ut = ({ value: e, min: n = 0, max: r, treatment: i, label: a, valueText: o, testId: s }) => {
|
|
628
|
+
if (!Number.isFinite(e) || !Number.isFinite(n) || !Number.isFinite(r)) throw new W(`value, min and max must be finite numbers (got value=${e}, min=${n}, max=${r})`);
|
|
629
|
+
if (n >= r) throw new W(`min must be less than max (got min=${n}, max=${r})`);
|
|
630
|
+
let c = { "--meter-level": lt(e, n, r) };
|
|
548
631
|
return /* @__PURE__ */ t("div", {
|
|
549
632
|
role: "meter",
|
|
550
633
|
"aria-valuenow": e,
|
|
@@ -553,28 +636,28 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
553
636
|
"aria-label": a,
|
|
554
637
|
"aria-valuetext": o,
|
|
555
638
|
"data-testid": s,
|
|
556
|
-
className:
|
|
639
|
+
className: st(),
|
|
557
640
|
style: c,
|
|
558
641
|
children: /* @__PURE__ */ t("div", {
|
|
559
642
|
"aria-hidden": "true",
|
|
560
|
-
className:
|
|
643
|
+
className: ct({ treatment: i })
|
|
561
644
|
})
|
|
562
645
|
});
|
|
563
|
-
},
|
|
646
|
+
}, dt = b(["grid gap-[var(--space-stack)]", "lg:grid-cols-[10rem_minmax(0,1fr)] lg:items-start lg:gap-x-12"].join(" ")), ft = b("lg:sticky lg:top-6"), pt = b("block border-b border-solid border-border pb-1 font-secondary text-label tracking-label text-muted"), mt = b("block pt-1 font-secondary text-label tracking-label text-foreground"), ht = {
|
|
564
647
|
Root: ({ children: e, testId: n }) => /* @__PURE__ */ t("div", {
|
|
565
|
-
className:
|
|
648
|
+
className: dt(),
|
|
566
649
|
"data-testid": n,
|
|
567
650
|
children: e
|
|
568
651
|
}),
|
|
569
652
|
Index: ({ number: e, children: r, testId: i }) => /* @__PURE__ */ n("div", {
|
|
570
|
-
className:
|
|
653
|
+
className: ft(),
|
|
571
654
|
"data-testid": i,
|
|
572
655
|
"aria-hidden": "true",
|
|
573
656
|
children: [e !== void 0 && /* @__PURE__ */ t("span", {
|
|
574
|
-
className:
|
|
657
|
+
className: pt(),
|
|
575
658
|
children: e
|
|
576
659
|
}), /* @__PURE__ */ t("span", {
|
|
577
|
-
className:
|
|
660
|
+
className: mt(),
|
|
578
661
|
children: r
|
|
579
662
|
})]
|
|
580
663
|
}),
|
|
@@ -582,15 +665,15 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
582
665
|
"data-testid": n,
|
|
583
666
|
children: e
|
|
584
667
|
})
|
|
585
|
-
},
|
|
668
|
+
}, gt = b("w-full shrink-0 border-t border-solid border-border forced-colors:border-[CanvasText]"), _t = ({ testId: e }) => /* @__PURE__ */ t("div", {
|
|
586
669
|
"aria-hidden": "true",
|
|
587
|
-
className:
|
|
670
|
+
className: gt(),
|
|
588
671
|
"data-testid": e
|
|
589
|
-
}),
|
|
672
|
+
}), vt = class extends Error {
|
|
590
673
|
constructor(e) {
|
|
591
674
|
super(`Table configuration is invalid: ${e}`), this.name = "TableConfigurationError";
|
|
592
675
|
}
|
|
593
|
-
},
|
|
676
|
+
}, yt = "comfortable", bt = "marker", xt = b([
|
|
594
677
|
"overflow-x-auto",
|
|
595
678
|
"[&[data-icon-actions]]:p-[calc(var(--focus-ring-width)+var(--focus-ring-offset))]",
|
|
596
679
|
"[&[data-icon-actions]]:m-[calc(-1*(var(--focus-ring-width)+var(--focus-ring-offset)))]",
|
|
@@ -634,11 +717,11 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
634
717
|
}
|
|
635
718
|
},
|
|
636
719
|
defaultVariants: {
|
|
637
|
-
density:
|
|
720
|
+
density: yt,
|
|
638
721
|
captionVisibility: "visible",
|
|
639
|
-
selectionTreatment:
|
|
722
|
+
selectionTreatment: bt
|
|
640
723
|
}
|
|
641
|
-
}),
|
|
724
|
+
}), St = b([
|
|
642
725
|
"border-t border-solid border-border",
|
|
643
726
|
"[&[aria-selected=true]>*:first-child]:relative",
|
|
644
727
|
"[&[aria-selected=true]>*:first-child]:before:absolute [&[aria-selected=true]>*:first-child]:before:inset-y-0 [&[aria-selected=true]>*:first-child]:before:left-0",
|
|
@@ -649,7 +732,7 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
649
732
|
false: ""
|
|
650
733
|
} },
|
|
651
734
|
defaultVariants: { interactive: !1 }
|
|
652
|
-
}),
|
|
735
|
+
}), Ct = [
|
|
653
736
|
"a[href]",
|
|
654
737
|
"button",
|
|
655
738
|
"input",
|
|
@@ -675,11 +758,11 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
675
758
|
"[role=\"searchbox\"]",
|
|
676
759
|
"[role=\"slider\"]",
|
|
677
760
|
"[role=\"spinbutton\"]"
|
|
678
|
-
].join(", "),
|
|
761
|
+
].join(", "), wt = (e, t) => {
|
|
679
762
|
if (!(t instanceof Element)) return !1;
|
|
680
|
-
let n = t.closest(
|
|
763
|
+
let n = t.closest(Ct);
|
|
681
764
|
return n !== null && n !== e && e.contains(n);
|
|
682
|
-
},
|
|
765
|
+
}, Tt = /* @__PURE__ */ new Set(["Enter", " "]), Et = b("px-[var(--table-cell-padding-inline)] py-[var(--table-cell-padding-block)] text-small first:pl-0 last:pr-0", {
|
|
683
766
|
variants: {
|
|
684
767
|
variant: {
|
|
685
768
|
value: "font-body text-foreground tabular-nums",
|
|
@@ -695,24 +778,24 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
695
778
|
variant: "value",
|
|
696
779
|
align: "left"
|
|
697
780
|
}
|
|
698
|
-
}),
|
|
781
|
+
}), Dt = b("px-[var(--table-cell-padding-inline)] py-[var(--table-cell-padding-block)] font-secondary font-medium text-label text-muted tracking-label first:pl-0 last:pr-0", {
|
|
699
782
|
variants: { align: {
|
|
700
783
|
left: "text-left",
|
|
701
784
|
right: "text-right",
|
|
702
785
|
center: "text-center"
|
|
703
786
|
} },
|
|
704
787
|
defaultVariants: { align: "left" }
|
|
705
|
-
}),
|
|
788
|
+
}), Ot = (e) => `var(--table-column-${e})`, kt = (e, t) => {
|
|
706
789
|
if (e.width === "icon-action") return "max-content";
|
|
707
|
-
let n = e.minWidth === void 0 ? void 0 :
|
|
790
|
+
let n = e.minWidth === void 0 ? void 0 : Ot(e.minWidth);
|
|
708
791
|
if (e.width !== void 0) {
|
|
709
|
-
let t =
|
|
792
|
+
let t = Ot(e.width);
|
|
710
793
|
return n === void 0 ? t : `max(${n}, ${t})`;
|
|
711
794
|
}
|
|
712
|
-
if (!Number.isFinite(e.weight) || e.weight <= 0) throw new
|
|
795
|
+
if (!Number.isFinite(e.weight) || e.weight <= 0) throw new vt(`column ${t + 1} needs a positive finite weight (got ${e.weight})`);
|
|
713
796
|
return `minmax(${n ?? "0"}, ${e.weight}fr)`;
|
|
714
|
-
},
|
|
715
|
-
let [i, a] = m(
|
|
797
|
+
}, At = (e) => e === void 0 || e.length === 0 ? void 0 : e.map(kt).join(" "), jt = (e, t, n, r) => {
|
|
798
|
+
let [i, a] = m(0);
|
|
716
799
|
return d(() => {
|
|
717
800
|
let i = e.current;
|
|
718
801
|
if (i === null) return;
|
|
@@ -721,7 +804,8 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
721
804
|
let e = t.current?.querySelector("thead")?.getBoundingClientRect().height ?? 0, n = Number.parseFloat(getComputedStyle(i).paddingTop) || 0;
|
|
722
805
|
i.style.scrollPaddingTop = `${e + 2 * n}px`;
|
|
723
806
|
}
|
|
724
|
-
|
|
807
|
+
let e = getComputedStyle(i).getPropertyValue("--_scroll-released").trim() === "1", n = i === document.activeElement, o = i.scrollWidth > i.clientWidth || r && i.scrollHeight > i.clientHeight;
|
|
808
|
+
a(e ? n ? -1 : void 0 : o || n ? 0 : void 0);
|
|
725
809
|
};
|
|
726
810
|
o();
|
|
727
811
|
let s = typeof ResizeObserver > "u" ? void 0 : new ResizeObserver(o);
|
|
@@ -745,14 +829,16 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
745
829
|
n,
|
|
746
830
|
r
|
|
747
831
|
]), i;
|
|
748
|
-
},
|
|
749
|
-
let t = e.currentTarget
|
|
832
|
+
}, Mt = (e) => {
|
|
833
|
+
let t = e.currentTarget;
|
|
834
|
+
if (getComputedStyle(t).getPropertyValue("--_scroll-released").trim() === "1") return;
|
|
835
|
+
let n = e.target;
|
|
750
836
|
if (n === t) return;
|
|
751
837
|
let r = t.getBoundingClientRect(), i = t.querySelector(":scope > table > thead"), a = n.getBoundingClientRect(), o = Number.parseFloat(getComputedStyle(t).paddingTop) || 0, s = r.top + t.clientTop + (i?.getBoundingClientRect().height ?? 0) + 2 * o, c = r.top + t.clientTop + t.clientHeight - o;
|
|
752
838
|
i?.contains(n) || (a.top < s ? t.scrollTop += a.top - s : a.bottom > c && (t.scrollTop += a.bottom - c)), a.left < r.left + o ? t.scrollLeft += a.left - r.left - o : a.right > r.left + t.clientLeft + t.clientWidth - o && (t.scrollLeft += a.right - r.left - t.clientLeft - t.clientWidth + o);
|
|
753
|
-
},
|
|
839
|
+
}, Nt = {
|
|
754
840
|
Root: ({ caption: e, captionVisibility: r, bounded: i, selectionTreatment: a, notes: o, columns: s, density: c, children: l, testId: u }) => {
|
|
755
|
-
let d = p(null), f = p(null), m = p(null), h =
|
|
841
|
+
let d = p(null), f = p(null), m = p(null), h = At(s), g = jt(d, f, m, i === !0), _ = g !== void 0, v = h === void 0 ? void 0 : { "--table-columns": h }, y = h === void 0 ? void 0 : s?.length, b = /* @__PURE__ */ n("table", {
|
|
756
842
|
ref: f,
|
|
757
843
|
role: "table",
|
|
758
844
|
children: [/* @__PURE__ */ t("caption", {
|
|
@@ -761,42 +847,42 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
761
847
|
}), l]
|
|
762
848
|
});
|
|
763
849
|
return o === void 0 && !i ? /* @__PURE__ */ t("section", {
|
|
764
|
-
className:
|
|
850
|
+
className: xt({
|
|
765
851
|
density: c,
|
|
766
852
|
captionVisibility: r,
|
|
767
853
|
selectionTreatment: a,
|
|
768
854
|
bounded: i
|
|
769
855
|
}),
|
|
770
|
-
style:
|
|
771
|
-
"data-columns":
|
|
856
|
+
style: v,
|
|
857
|
+
"data-columns": y,
|
|
772
858
|
"data-icon-actions": s?.some((e) => e.width === "icon-action") || void 0,
|
|
773
|
-
"data-density": c ??
|
|
774
|
-
"data-selection-treatment": a ??
|
|
859
|
+
"data-density": c ?? yt,
|
|
860
|
+
"data-selection-treatment": a ?? bt,
|
|
775
861
|
"data-testid": u,
|
|
776
862
|
"aria-label": e,
|
|
777
863
|
tabIndex: 0,
|
|
778
|
-
children:
|
|
864
|
+
children: b
|
|
779
865
|
}) : /* @__PURE__ */ t("div", {
|
|
780
866
|
ref: d,
|
|
781
|
-
onFocus: i ?
|
|
782
|
-
className:
|
|
867
|
+
onFocus: i ? Mt : void 0,
|
|
868
|
+
className: xt({
|
|
783
869
|
density: c,
|
|
784
870
|
captionVisibility: r,
|
|
785
871
|
selectionTreatment: a,
|
|
786
872
|
bounded: i
|
|
787
873
|
}),
|
|
788
|
-
style:
|
|
874
|
+
style: v,
|
|
789
875
|
"data-bounded": i || void 0,
|
|
790
876
|
"data-notes": o,
|
|
791
|
-
"data-columns":
|
|
877
|
+
"data-columns": y,
|
|
792
878
|
"data-icon-actions": s?.some((e) => e.width === "icon-action") || void 0,
|
|
793
|
-
"data-density": c ??
|
|
794
|
-
"data-selection-treatment": a ??
|
|
879
|
+
"data-density": c ?? yt,
|
|
880
|
+
"data-selection-treatment": a ?? bt,
|
|
795
881
|
"data-testid": u,
|
|
796
|
-
role:
|
|
797
|
-
"aria-label":
|
|
798
|
-
tabIndex: g
|
|
799
|
-
children:
|
|
882
|
+
role: _ ? "group" : void 0,
|
|
883
|
+
"aria-label": _ ? e : void 0,
|
|
884
|
+
tabIndex: g,
|
|
885
|
+
children: b
|
|
800
886
|
});
|
|
801
887
|
},
|
|
802
888
|
Head: ({ children: e }) => /* @__PURE__ */ t("thead", {
|
|
@@ -819,13 +905,13 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
819
905
|
return () => e?.unsubscribe();
|
|
820
906
|
}, [i]);
|
|
821
907
|
let s = (e) => {
|
|
822
|
-
|
|
908
|
+
wt(e.currentTarget, e.target) || r?.next();
|
|
823
909
|
}, c = (e) => {
|
|
824
|
-
e.target !== e.currentTarget || !
|
|
910
|
+
e.target !== e.currentTarget || !Tt.has(e.key) || (e.key === " " && e.preventDefault(), e.repeat || r?.next());
|
|
825
911
|
}, l = r !== void 0;
|
|
826
912
|
return /* @__PURE__ */ t("tr", {
|
|
827
913
|
role: "row",
|
|
828
|
-
className:
|
|
914
|
+
className: St({ interactive: l }),
|
|
829
915
|
"data-testid": n,
|
|
830
916
|
tabIndex: l ? 0 : void 0,
|
|
831
917
|
"aria-selected": i === void 0 ? void 0 : a,
|
|
@@ -838,19 +924,19 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
838
924
|
role: e === "row" ? "rowheader" : "columnheader",
|
|
839
925
|
scope: e,
|
|
840
926
|
"aria-sort": r,
|
|
841
|
-
className:
|
|
927
|
+
className: Dt({ align: n }),
|
|
842
928
|
children: i
|
|
843
929
|
}),
|
|
844
930
|
Cell: ({ variant: e, align: n, children: r }) => /* @__PURE__ */ t("td", {
|
|
845
931
|
role: "cell",
|
|
846
|
-
className:
|
|
932
|
+
className: Et({
|
|
847
933
|
variant: e,
|
|
848
934
|
align: n
|
|
849
935
|
}),
|
|
850
936
|
"data-variant": e ?? "value",
|
|
851
937
|
children: r
|
|
852
938
|
})
|
|
853
|
-
},
|
|
939
|
+
}, Pt = b("font-secondary text-label tracking-label font-medium", {
|
|
854
940
|
variants: { color: {
|
|
855
941
|
foreground: "text-foreground",
|
|
856
942
|
muted: "text-muted",
|
|
@@ -860,11 +946,11 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
860
946
|
info: "text-info"
|
|
861
947
|
} },
|
|
862
948
|
defaultVariants: { color: "muted" }
|
|
863
|
-
}),
|
|
864
|
-
className:
|
|
949
|
+
}), Ft = ({ children: e, color: n, testId: r }) => /* @__PURE__ */ t("p", {
|
|
950
|
+
className: Pt({ color: n }),
|
|
865
951
|
"data-testid": r,
|
|
866
952
|
children: e
|
|
867
|
-
}),
|
|
953
|
+
}), It = b("font-heading text-display leading-display tracking-optical max-w-[var(--measure-display)]", {
|
|
868
954
|
variants: { color: {
|
|
869
955
|
foreground: "text-foreground",
|
|
870
956
|
muted: "text-muted",
|
|
@@ -874,11 +960,11 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
874
960
|
info: "text-info"
|
|
875
961
|
} },
|
|
876
962
|
defaultVariants: { color: "foreground" }
|
|
877
|
-
}),
|
|
878
|
-
className:
|
|
963
|
+
}), Lt = ({ children: e, color: n, testId: r }) => /* @__PURE__ */ t("h1", {
|
|
964
|
+
className: It({ color: n }),
|
|
879
965
|
"data-testid": r,
|
|
880
966
|
children: e
|
|
881
|
-
}),
|
|
967
|
+
}), Rt = b("font-heading text-title leading-title tracking-optical", {
|
|
882
968
|
variants: { color: {
|
|
883
969
|
foreground: "text-foreground",
|
|
884
970
|
muted: "text-muted",
|
|
@@ -888,11 +974,11 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
888
974
|
info: "text-info"
|
|
889
975
|
} },
|
|
890
976
|
defaultVariants: { color: "foreground" }
|
|
891
|
-
}),
|
|
892
|
-
className:
|
|
977
|
+
}), zt = ({ children: e, color: n, testId: r }) => /* @__PURE__ */ t("h2", {
|
|
978
|
+
className: Rt({ color: n }),
|
|
893
979
|
"data-testid": r,
|
|
894
980
|
children: e
|
|
895
|
-
}),
|
|
981
|
+
}), Bt = b("font-heading text-subtitle leading-subtitle", {
|
|
896
982
|
variants: { color: {
|
|
897
983
|
foreground: "text-foreground",
|
|
898
984
|
muted: "text-muted",
|
|
@@ -902,11 +988,11 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
902
988
|
info: "text-info"
|
|
903
989
|
} },
|
|
904
990
|
defaultVariants: { color: "foreground" }
|
|
905
|
-
}),
|
|
906
|
-
className:
|
|
991
|
+
}), Vt = ({ children: e, color: n, testId: r }) => /* @__PURE__ */ t("h3", {
|
|
992
|
+
className: Bt({ color: n }),
|
|
907
993
|
"data-testid": r,
|
|
908
994
|
children: e
|
|
909
|
-
}),
|
|
995
|
+
}), Ht = b("font-heading text-body leading-body font-bold", {
|
|
910
996
|
variants: { color: {
|
|
911
997
|
foreground: "text-foreground",
|
|
912
998
|
muted: "text-muted",
|
|
@@ -916,11 +1002,11 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
916
1002
|
info: "text-info"
|
|
917
1003
|
} },
|
|
918
1004
|
defaultVariants: { color: "foreground" }
|
|
919
|
-
}),
|
|
920
|
-
className:
|
|
1005
|
+
}), Ut = ({ children: e, color: n, testId: r }) => /* @__PURE__ */ t("h4", {
|
|
1006
|
+
className: Ht({ color: n }),
|
|
921
1007
|
"data-testid": r,
|
|
922
1008
|
children: e
|
|
923
|
-
}),
|
|
1009
|
+
}), Wt = b("font-heading text-body leading-body font-semibold", {
|
|
924
1010
|
variants: { color: {
|
|
925
1011
|
foreground: "text-foreground",
|
|
926
1012
|
muted: "text-muted",
|
|
@@ -930,11 +1016,11 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
930
1016
|
info: "text-info"
|
|
931
1017
|
} },
|
|
932
1018
|
defaultVariants: { color: "foreground" }
|
|
933
|
-
}),
|
|
934
|
-
className:
|
|
1019
|
+
}), Gt = ({ children: e, color: n, testId: r }) => /* @__PURE__ */ t("h5", {
|
|
1020
|
+
className: Wt({ color: n }),
|
|
935
1021
|
"data-testid": r,
|
|
936
1022
|
children: e
|
|
937
|
-
}),
|
|
1023
|
+
}), Kt = b("font-heading text-body leading-body font-medium", {
|
|
938
1024
|
variants: { color: {
|
|
939
1025
|
foreground: "text-foreground",
|
|
940
1026
|
muted: "text-muted",
|
|
@@ -944,11 +1030,11 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
944
1030
|
info: "text-info"
|
|
945
1031
|
} },
|
|
946
1032
|
defaultVariants: { color: "foreground" }
|
|
947
|
-
}),
|
|
948
|
-
className:
|
|
1033
|
+
}), qt = ({ children: e, color: n, testId: r }) => /* @__PURE__ */ t("h6", {
|
|
1034
|
+
className: Kt({ color: n }),
|
|
949
1035
|
"data-testid": r,
|
|
950
1036
|
children: e
|
|
951
|
-
}),
|
|
1037
|
+
}), Jt = b("font-secondary text-small", {
|
|
952
1038
|
variants: {
|
|
953
1039
|
emphasis: {
|
|
954
1040
|
regular: "",
|
|
@@ -972,15 +1058,15 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
972
1058
|
truncate: !1,
|
|
973
1059
|
emphasis: "regular"
|
|
974
1060
|
}
|
|
975
|
-
}),
|
|
976
|
-
className:
|
|
1061
|
+
}), Yt = ({ children: e, color: n, emphasis: r, truncate: i, testId: a }) => /* @__PURE__ */ t("p", {
|
|
1062
|
+
className: Jt({
|
|
977
1063
|
color: n,
|
|
978
1064
|
emphasis: r,
|
|
979
1065
|
truncate: i
|
|
980
1066
|
}),
|
|
981
1067
|
"data-testid": a,
|
|
982
1068
|
children: e
|
|
983
|
-
}),
|
|
1069
|
+
}), Xt = b("font-body text-body leading-body", {
|
|
984
1070
|
variants: {
|
|
985
1071
|
emphasis: {
|
|
986
1072
|
regular: "",
|
|
@@ -1004,21 +1090,21 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
1004
1090
|
truncate: !1,
|
|
1005
1091
|
emphasis: "regular"
|
|
1006
1092
|
}
|
|
1007
|
-
}),
|
|
1008
|
-
className:
|
|
1093
|
+
}), Zt = ({ children: e, color: n, emphasis: r, truncate: i, testId: a }) => /* @__PURE__ */ t("p", {
|
|
1094
|
+
className: Xt({
|
|
1009
1095
|
color: n,
|
|
1010
1096
|
emphasis: r,
|
|
1011
1097
|
truncate: i
|
|
1012
1098
|
}),
|
|
1013
1099
|
"data-testid": a,
|
|
1014
1100
|
children: e
|
|
1015
|
-
}),
|
|
1101
|
+
}), Qt = b("flex flex-col gap-[var(--space-stack)]", {
|
|
1016
1102
|
variants: { variant: {
|
|
1017
1103
|
default: "max-w-[var(--measure)]",
|
|
1018
1104
|
letter: "min-w-0 max-w-[min(100%,var(--measure-letter))] font-letter text-letter"
|
|
1019
1105
|
} },
|
|
1020
1106
|
defaultVariants: { variant: "default" }
|
|
1021
|
-
}),
|
|
1107
|
+
}), $t = a(!1), en = b("font-body text-lede leading-lede text-foreground"), tn = b("", {
|
|
1022
1108
|
variants: {
|
|
1023
1109
|
letter: {
|
|
1024
1110
|
false: "font-body text-body leading-body",
|
|
@@ -1037,111 +1123,117 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
1037
1123
|
letter: !1,
|
|
1038
1124
|
color: "foreground"
|
|
1039
1125
|
}
|
|
1040
|
-
}),
|
|
1041
|
-
Root: ({ children: e, testId: n, variant: r }) => /* @__PURE__ */ t(
|
|
1126
|
+
}), nn = b("font-body text-small text-muted"), rn = {
|
|
1127
|
+
Root: ({ children: e, testId: n, variant: r }) => /* @__PURE__ */ t($t, {
|
|
1042
1128
|
value: r === "letter",
|
|
1043
1129
|
children: /* @__PURE__ */ t("div", {
|
|
1044
|
-
className:
|
|
1130
|
+
className: Qt({ variant: r }),
|
|
1045
1131
|
"data-testid": n,
|
|
1046
1132
|
children: e
|
|
1047
1133
|
})
|
|
1048
1134
|
}),
|
|
1049
1135
|
Lede: ({ children: e }) => /* @__PURE__ */ t("p", {
|
|
1050
|
-
className:
|
|
1136
|
+
className: en(),
|
|
1051
1137
|
children: e
|
|
1052
1138
|
}),
|
|
1053
1139
|
Body: ({ color: e, children: n }) => /* @__PURE__ */ t("p", {
|
|
1054
|
-
className:
|
|
1140
|
+
className: tn({
|
|
1055
1141
|
color: e,
|
|
1056
|
-
letter: c(
|
|
1142
|
+
letter: c($t)
|
|
1057
1143
|
}),
|
|
1058
1144
|
children: n
|
|
1059
1145
|
}),
|
|
1060
1146
|
Tail: ({ children: e }) => /* @__PURE__ */ t("p", {
|
|
1061
|
-
className:
|
|
1147
|
+
className: nn(),
|
|
1062
1148
|
children: e
|
|
1063
1149
|
})
|
|
1064
|
-
},
|
|
1150
|
+
}, G = "font-control text-body text-balance wrap-anywhere rounded-[var(--radius-control)] select-none inline-flex flex-row items-center justify-center gap-2", an = b("transition-colors duration-[var(--motion-duration-color)] cursor-pointer disabled:cursor-not-allowed outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]", {
|
|
1065
1151
|
variants: { variant: {
|
|
1066
|
-
primary: `${
|
|
1067
|
-
secondary: `${
|
|
1068
|
-
ghost: `${
|
|
1069
|
-
outlined: `${
|
|
1070
|
-
destructive: `${
|
|
1152
|
+
primary: `${G} px-4 sm:px-6 py-2 min-w-[min(var(--control-min-width),100%)] bg-primary text-primary-foreground hover:bg-primary-hover disabled:bg-disabled disabled:hover:bg-disabled-hover forced-colors:border`,
|
|
1153
|
+
secondary: `${G} px-4 sm:px-6 py-2 min-w-[min(var(--control-min-width),100%)] bg-secondary text-secondary-foreground hover:bg-secondary-hover disabled:bg-disabled disabled:hover:bg-disabled-hover forced-colors:border`,
|
|
1154
|
+
ghost: `${G} px-2 py-2 min-w-0 bg-transparent text-foreground hover:underline hover:decoration-[length:var(--underline-thickness)] hover:underline-offset-[var(--underline-offset)] disabled:bg-disabled disabled:hover:bg-disabled-hover`,
|
|
1155
|
+
outlined: `${G} px-[calc(1rem_-_1px)] sm:px-[calc(1.5rem_-_1px)] py-[calc(0.5rem_-_1px)] min-w-[min(var(--control-min-width),100%)] border border-solid border-secondary bg-transparent text-secondary hover:bg-backing disabled:border-disabled disabled:text-muted disabled:hover:bg-transparent`,
|
|
1156
|
+
destructive: `${G} px-4 sm:px-6 py-2 min-w-[min(var(--control-min-width),100%)] bg-error text-error-foreground hover:bg-error-hover disabled:bg-disabled disabled:hover:bg-disabled-hover forced-colors:border`,
|
|
1071
1157
|
link: "inline p-0 min-w-0 max-w-full whitespace-normal wrap-anywhere bg-transparent [font:inherit] [letter-spacing:inherit] [text-align:inherit] text-link underline decoration-[length:var(--underline-thickness)] underline-offset-[var(--underline-offset)] enabled:hover:decoration-[length:var(--underline-thickness-hover)] disabled:text-disabled",
|
|
1072
1158
|
plain: "inline p-0 min-w-0 max-w-full whitespace-normal wrap-anywhere bg-transparent [font:inherit] [letter-spacing:inherit] [color:inherit] [text-align:inherit] disabled:text-disabled"
|
|
1073
1159
|
} },
|
|
1074
1160
|
defaultVariants: { variant: "primary" }
|
|
1075
|
-
}),
|
|
1161
|
+
}), on = ({ children: e, disabled: n, testId: r, variant: i, onClick$: a, ariaLabel: o, type: s = "button" }) => /* @__PURE__ */ t("button", {
|
|
1076
1162
|
type: s,
|
|
1077
1163
|
"data-testid": r,
|
|
1078
|
-
className:
|
|
1164
|
+
className: an({ variant: i }),
|
|
1079
1165
|
onClick: () => a?.next(),
|
|
1080
1166
|
disabled: n,
|
|
1081
1167
|
"aria-label": o,
|
|
1082
1168
|
children: e
|
|
1083
|
-
}),
|
|
1169
|
+
}), sn = class extends Error {
|
|
1084
1170
|
constructor(e) {
|
|
1085
1171
|
super(`Choices.${e} must be composed inside Choices.Root`), this.name = "ChoicesCompositionError";
|
|
1086
1172
|
}
|
|
1087
|
-
},
|
|
1088
|
-
|
|
1173
|
+
}, cn = b("flex min-w-0 gap-[var(--space-stack)]", {
|
|
1174
|
+
variants: { arrangement: {
|
|
1175
|
+
vertical: "flex-col [&>[role=radio]]:w-full",
|
|
1176
|
+
wrapping: "flex-row flex-wrap items-start"
|
|
1177
|
+
} },
|
|
1178
|
+
defaultVariants: { arrangement: "vertical" }
|
|
1179
|
+
}), ln = b([
|
|
1180
|
+
"group/choice flex min-w-0 max-w-full flex-none flex-row items-start gap-3 text-left wrap-anywhere",
|
|
1089
1181
|
"rounded-[var(--radius-control)] border border-solid border-control-border bg-transparent aria-checked:border-foreground",
|
|
1090
1182
|
"px-3 py-2",
|
|
1091
1183
|
"cursor-pointer disabled:cursor-not-allowed",
|
|
1092
1184
|
"transition-colors duration-[var(--motion-duration-color)]",
|
|
1093
1185
|
"outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]"
|
|
1094
|
-
].join(" ")),
|
|
1095
|
-
let t = c(
|
|
1096
|
-
if (t === void 0) throw new
|
|
1186
|
+
].join(" ")), un = a(void 0), dn = (e) => {
|
|
1187
|
+
let t = c(un);
|
|
1188
|
+
if (t === void 0) throw new sn(e);
|
|
1097
1189
|
return t;
|
|
1098
|
-
},
|
|
1190
|
+
}, fn = (e, t) => {
|
|
1099
1191
|
let n = e.closest("[role=\"radiogroup\"]");
|
|
1100
1192
|
if (n === null) return;
|
|
1101
1193
|
let r = Array.from(n.querySelectorAll(":scope > [role=\"radio\"]"));
|
|
1102
1194
|
return r[(r.indexOf(e) + t + r.length) % r.length];
|
|
1103
|
-
},
|
|
1195
|
+
}, pn = {
|
|
1104
1196
|
ArrowDown: 1,
|
|
1105
1197
|
ArrowRight: 1,
|
|
1106
1198
|
ArrowUp: -1,
|
|
1107
1199
|
ArrowLeft: -1
|
|
1108
|
-
},
|
|
1109
|
-
Root: ({
|
|
1200
|
+
}, mn = {
|
|
1201
|
+
Root: ({ arrangement: e, selected: n, onSelect$: r, label: i, inert: a, children: o, testId: s }) => /* @__PURE__ */ t(un.Provider, {
|
|
1110
1202
|
value: {
|
|
1111
|
-
selected:
|
|
1112
|
-
onSelect$:
|
|
1113
|
-
inert:
|
|
1203
|
+
selected: n,
|
|
1204
|
+
onSelect$: r,
|
|
1205
|
+
inert: a === !0
|
|
1114
1206
|
},
|
|
1115
1207
|
children: /* @__PURE__ */ t("div", {
|
|
1116
1208
|
role: "radiogroup",
|
|
1117
|
-
"aria-label":
|
|
1118
|
-
"aria-disabled":
|
|
1119
|
-
className:
|
|
1120
|
-
"data-testid":
|
|
1121
|
-
children:
|
|
1209
|
+
"aria-label": i,
|
|
1210
|
+
"aria-disabled": a === !0 ? "true" : void 0,
|
|
1211
|
+
className: cn({ arrangement: e }),
|
|
1212
|
+
"data-testid": s,
|
|
1213
|
+
children: o
|
|
1122
1214
|
})
|
|
1123
1215
|
}),
|
|
1124
1216
|
Choice: ({ value: e, children: r, description: i, testId: a }) => {
|
|
1125
|
-
let { selected: o, onSelect$: s, inert: c } =
|
|
1217
|
+
let { selected: o, onSelect$: s, inert: c } = dn("Choice"), l = o === e, d = u(), f = `${d}-name`, p = `${d}-description`;
|
|
1126
1218
|
return /* @__PURE__ */ n("button", {
|
|
1127
1219
|
type: "button",
|
|
1128
1220
|
role: "radio",
|
|
1129
1221
|
"aria-checked": l,
|
|
1130
1222
|
"aria-labelledby": f,
|
|
1131
|
-
"aria-describedby": p,
|
|
1223
|
+
"aria-describedby": i ? p : void 0,
|
|
1132
1224
|
tabIndex: l && !c ? 0 : -1,
|
|
1133
1225
|
disabled: c,
|
|
1134
1226
|
"data-value": e,
|
|
1135
1227
|
"data-testid": a,
|
|
1136
|
-
className:
|
|
1228
|
+
className: ln(),
|
|
1137
1229
|
onClick: () => {
|
|
1138
1230
|
l || s.next(e);
|
|
1139
1231
|
},
|
|
1140
1232
|
onKeyDown: (e) => {
|
|
1141
|
-
let t =
|
|
1233
|
+
let t = pn[e.key];
|
|
1142
1234
|
if (t === void 0 || c) return;
|
|
1143
1235
|
e.preventDefault();
|
|
1144
|
-
let n =
|
|
1236
|
+
let n = fn(e.currentTarget, t);
|
|
1145
1237
|
if (n === void 0) return;
|
|
1146
1238
|
n.focus();
|
|
1147
1239
|
let r = n.dataset.value;
|
|
@@ -1159,7 +1251,7 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
1159
1251
|
id: f,
|
|
1160
1252
|
className: "font-secondary font-medium text-body text-foreground group-disabled/choice:text-muted",
|
|
1161
1253
|
children: r
|
|
1162
|
-
}), /* @__PURE__ */ t("span", {
|
|
1254
|
+
}), i && /* @__PURE__ */ t("span", {
|
|
1163
1255
|
id: p,
|
|
1164
1256
|
className: "font-secondary text-muted text-small",
|
|
1165
1257
|
children: i
|
|
@@ -1167,14 +1259,14 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
1167
1259
|
})]
|
|
1168
1260
|
});
|
|
1169
1261
|
}
|
|
1170
|
-
},
|
|
1262
|
+
}, hn = b("block w-full rounded-[var(--radius-control)] border border-solid border-control-border bg-transparent px-3 py-2 font-control text-body text-foreground transition-colors duration-[var(--motion-duration-color)] outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)] [&:user-invalid]:border-error aria-[invalid=true]:border-error disabled:cursor-not-allowed disabled:border-disabled disabled:text-muted", {
|
|
1171
1263
|
variants: { variant: {
|
|
1172
1264
|
text: "",
|
|
1173
1265
|
email: "",
|
|
1174
1266
|
url: ""
|
|
1175
1267
|
} },
|
|
1176
1268
|
defaultVariants: { variant: "text" }
|
|
1177
|
-
}),
|
|
1269
|
+
}), gn = ({ label: e, name: r, variant: i, required: a, optionalLabel: o, invalid: s, disabled: c, defaultValue: d, placeholder: f, autocomplete: m, hint: h, errorMessage: g, onInput$: _, reset$: v, testId: y }) => {
|
|
1178
1270
|
let b = u(), x = `${b}-control`, S = `${b}-hint`, C = `${b}-error`, w = [h ? S : void 0, s ? C : void 0].filter(Boolean).join(" ") || void 0, T = p(null);
|
|
1179
1271
|
return l(() => {
|
|
1180
1272
|
let e = v?.subscribe(() => {
|
|
@@ -1194,7 +1286,7 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
1194
1286
|
id: x,
|
|
1195
1287
|
name: r,
|
|
1196
1288
|
type: i ?? "text",
|
|
1197
|
-
className:
|
|
1289
|
+
className: hn({ variant: i }),
|
|
1198
1290
|
required: a,
|
|
1199
1291
|
disabled: c,
|
|
1200
1292
|
defaultValue: d,
|
|
@@ -1221,7 +1313,7 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
1221
1313
|
})
|
|
1222
1314
|
]
|
|
1223
1315
|
});
|
|
1224
|
-
},
|
|
1316
|
+
}, _n = b("outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]", {
|
|
1225
1317
|
variants: { treatment: {
|
|
1226
1318
|
prose: "text-link underline decoration-[length:var(--underline-thickness)] underline-offset-[var(--underline-offset)] hover:decoration-[length:var(--underline-thickness-hover)]",
|
|
1227
1319
|
quiet: "font-secondary text-muted no-underline decoration-[length:var(--underline-thickness)] underline-offset-[var(--underline-offset)] transition-colors duration-[var(--motion-duration-color)] hover:text-foreground hover:underline",
|
|
@@ -1229,15 +1321,15 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
1229
1321
|
graphic: "text-inherit no-underline"
|
|
1230
1322
|
} },
|
|
1231
1323
|
defaultVariants: { treatment: "prose" }
|
|
1232
|
-
}),
|
|
1324
|
+
}), vn = ({ href: e, children: n, treatment: r, external: i, current: a, testId: o }) => /* @__PURE__ */ t("a", {
|
|
1233
1325
|
href: e,
|
|
1234
|
-
className:
|
|
1326
|
+
className: _n({ treatment: r }),
|
|
1235
1327
|
target: i ? "_blank" : void 0,
|
|
1236
1328
|
rel: i ? "noopener noreferrer" : void 0,
|
|
1237
1329
|
"aria-current": a ? "page" : void 0,
|
|
1238
1330
|
"data-testid": o,
|
|
1239
1331
|
children: n
|
|
1240
|
-
}),
|
|
1332
|
+
}), yn = (e, t, n, r) => {
|
|
1241
1333
|
let i = Math.max(e.length - 1, 0) * r;
|
|
1242
1334
|
if (e.reduce((e, t) => e + t, 0) + i <= n) return e.length;
|
|
1243
1335
|
let a = 0, o = t;
|
|
@@ -1246,11 +1338,11 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
1246
1338
|
o += t + r, a += 1;
|
|
1247
1339
|
}
|
|
1248
1340
|
return a;
|
|
1249
|
-
},
|
|
1341
|
+
}, bn = class extends Error {
|
|
1250
1342
|
constructor(e) {
|
|
1251
1343
|
super(`MultiSelect.${e} must be composed inside MultiSelect.Root`), this.name = "MultiSelectCompositionError";
|
|
1252
1344
|
}
|
|
1253
|
-
},
|
|
1345
|
+
}, xn = "outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]", Sn = `relative inline-flex shrink-0 cursor-pointer items-center rounded-[var(--radius-control)] bg-backing px-2 py-0.5 font-secondary text-small text-foreground disabled:cursor-not-allowed disabled:text-muted pointer-events-auto ${xn}`, K = b("", {
|
|
1254
1346
|
variants: { part: {
|
|
1255
1347
|
root: [
|
|
1256
1348
|
"relative flex flex-col gap-[var(--space-stack)]",
|
|
@@ -1263,7 +1355,7 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
1263
1355
|
"font-control text-body text-foreground transition-colors duration-[var(--motion-duration-color)]",
|
|
1264
1356
|
"data-[disabled]:border-disabled data-[disabled]:text-muted"
|
|
1265
1357
|
].join(" "),
|
|
1266
|
-
trigger: `absolute inset-0 flex cursor-pointer items-center justify-end rounded-[var(--radius-control)] bg-transparent px-3 text-muted disabled:cursor-not-allowed ${
|
|
1358
|
+
trigger: `absolute inset-0 flex cursor-pointer items-center justify-end rounded-[var(--radius-control)] bg-transparent px-3 text-muted disabled:cursor-not-allowed ${xn}`,
|
|
1267
1359
|
clip: "relative min-w-0 flex-1 overflow-hidden p-[calc(var(--focus-ring-width)+var(--focus-ring-offset))] -m-[calc(var(--focus-ring-width)+var(--focus-ring-offset))] pointer-events-none",
|
|
1268
1360
|
track: "relative flex min-h-[calc(var(--text-body)*var(--leading-body))] items-center gap-1",
|
|
1269
1361
|
chip: [
|
|
@@ -1271,9 +1363,9 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
1271
1363
|
"rounded-[var(--radius-control)] bg-backing py-0.5 pr-0.5 pl-2 font-secondary text-small text-foreground",
|
|
1272
1364
|
"group-data-[disabled]/field:text-muted data-[overflow]:invisible data-[overflow]:absolute"
|
|
1273
1365
|
].join(" "),
|
|
1274
|
-
count:
|
|
1275
|
-
countMeasure: `${
|
|
1276
|
-
iconButton: `relative inline-flex size-6 shrink-0 cursor-pointer items-center justify-center rounded-[var(--radius-control)] text-muted transition-colors duration-[var(--motion-duration-color)] hover:text-foreground disabled:cursor-not-allowed disabled:hover:text-muted ${
|
|
1366
|
+
count: Sn,
|
|
1367
|
+
countMeasure: `${Sn} invisible absolute`,
|
|
1368
|
+
iconButton: `relative inline-flex size-6 shrink-0 cursor-pointer items-center justify-center rounded-[var(--radius-control)] text-muted transition-colors duration-[var(--motion-duration-color)] hover:text-foreground disabled:cursor-not-allowed disabled:hover:text-muted ${xn}`,
|
|
1277
1369
|
surface: [
|
|
1278
1370
|
"absolute left-0 right-0 z-10 flex flex-col gap-1 overflow-y-auto p-1",
|
|
1279
1371
|
"rounded-[var(--radius-control)] border border-solid border-border bg-surface shadow-[var(--elevation-floating)]",
|
|
@@ -1282,22 +1374,22 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
1282
1374
|
].join(" ")
|
|
1283
1375
|
} },
|
|
1284
1376
|
defaultVariants: { part: "root" }
|
|
1285
|
-
}),
|
|
1377
|
+
}), Cn = b([
|
|
1286
1378
|
"group/option flex w-full flex-row items-center gap-3 text-left",
|
|
1287
1379
|
"rounded-[var(--radius-control)] bg-transparent px-3 py-2 hover:bg-backing",
|
|
1288
1380
|
"cursor-pointer disabled:cursor-not-allowed",
|
|
1289
1381
|
"transition-colors duration-[var(--motion-duration-color)]",
|
|
1290
1382
|
"outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]"
|
|
1291
|
-
].join(" ")),
|
|
1292
|
-
let t = c(
|
|
1293
|
-
if (t === void 0) throw new
|
|
1383
|
+
].join(" ")), wn = 8, Tn = a(void 0), En = (e) => {
|
|
1384
|
+
let t = c(Tn);
|
|
1385
|
+
if (t === void 0) throw new bn(e);
|
|
1294
1386
|
return t;
|
|
1295
|
-
},
|
|
1387
|
+
}, q = (e) => (t) => {
|
|
1296
1388
|
e.current = t ?? void 0;
|
|
1297
|
-
},
|
|
1389
|
+
}, Dn = (e) => e.getBoundingClientRect().width, On = (e) => r.toArray(e).flatMap((e) => {
|
|
1298
1390
|
if (!o(e)) return [];
|
|
1299
|
-
if (e.type === i) return
|
|
1300
|
-
if (e.type ===
|
|
1391
|
+
if (e.type === i) return On(e.props.children);
|
|
1392
|
+
if (e.type === Ln) {
|
|
1301
1393
|
let { value: t, children: n } = e.props;
|
|
1302
1394
|
return [{
|
|
1303
1395
|
value: t,
|
|
@@ -1305,19 +1397,19 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
1305
1397
|
}];
|
|
1306
1398
|
}
|
|
1307
1399
|
return [];
|
|
1308
|
-
}),
|
|
1400
|
+
}), kn = (e) => Array.from(e.querySelectorAll("[data-multiselect-chip]:not([data-overflow]) button")), An = (e) => {
|
|
1309
1401
|
let t = document.activeElement;
|
|
1310
1402
|
return !e.contains(t) || t instanceof Element && t.closest("[data-overflow]") !== null;
|
|
1311
|
-
},
|
|
1403
|
+
}, jn = (e) => e.querySelector("[role=\"checkbox\"][aria-checked=\"true\"]") ?? e.querySelector("[role=\"checkbox\"]") ?? void 0, Mn = (e, t) => [...new Set(e.map(({ value: e }) => e).filter((e) => t.has(e)))], Nn = (e) => e.kind === "firstOption" || !e.control.isConnected, Pn = (e, t, n, r) => {
|
|
1312
1404
|
switch (e.kind) {
|
|
1313
|
-
case "firstOption": return r === void 0 ? void 0 :
|
|
1405
|
+
case "firstOption": return r === void 0 ? void 0 : jn(r);
|
|
1314
1406
|
case "afterRemoval": {
|
|
1315
|
-
let r =
|
|
1407
|
+
let r = kn(t);
|
|
1316
1408
|
return r[e.index] ?? r[e.index - 1] ?? n;
|
|
1317
1409
|
}
|
|
1318
1410
|
case "afterClear": return n;
|
|
1319
1411
|
}
|
|
1320
|
-
},
|
|
1412
|
+
}, Fn = () => /* @__PURE__ */ t("svg", {
|
|
1321
1413
|
"aria-hidden": !0,
|
|
1322
1414
|
focusable: !1,
|
|
1323
1415
|
viewBox: "0 0 16 16",
|
|
@@ -1329,49 +1421,49 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
1329
1421
|
strokeWidth: 1.5,
|
|
1330
1422
|
strokeLinecap: "round"
|
|
1331
1423
|
})
|
|
1332
|
-
}),
|
|
1333
|
-
let y = u(), b = `${y}-label`, x = `${y}-trigger`, S = `${y}-options`, C = `${y}-hint`, w = `${y}-empty`, T = g === !0, [ee,
|
|
1424
|
+
}), In = ({ label: e, selected$: r, onChange$: i, emptyLabel: a, removeLabel: o, clearLabel: s, overflowLabel: c, hint: h, disabled: g, testId: _, children: v }) => {
|
|
1425
|
+
let y = u(), b = `${y}-label`, x = `${y}-trigger`, S = `${y}-options`, C = `${y}-hint`, w = `${y}-empty`, T = g === !0, [ee, te] = m([]), [ne, E] = m(!1), [re, D] = m(void 0), [ie, ae] = m("below"), [, oe] = f((e) => e + 1, 0), O = p(void 0), k = p(void 0), A = p(void 0), j = p(void 0), M = p(void 0), N = p(void 0), P = p(!1), F = ne && !T, I = On(v), L = new Set(ee), R = I.filter((e) => L.has(e.value)), z = re === void 0 ? R.length : Math.min(re, R.length), se = R.length - z;
|
|
1334
1426
|
d(() => {
|
|
1335
|
-
|
|
1336
|
-
let e = r.subscribe((e) =>
|
|
1427
|
+
te([]);
|
|
1428
|
+
let e = r.subscribe((e) => te(e));
|
|
1337
1429
|
return () => e.unsubscribe();
|
|
1338
1430
|
}, [r]), l(() => {
|
|
1339
|
-
T &&
|
|
1431
|
+
T && E(!1);
|
|
1340
1432
|
}, [T]), d(() => {
|
|
1341
1433
|
let e = j.current;
|
|
1342
1434
|
if (e === void 0 || typeof ResizeObserver > "u") return;
|
|
1343
|
-
let t = new ResizeObserver(() =>
|
|
1435
|
+
let t = new ResizeObserver(() => oe());
|
|
1344
1436
|
return t.observe(e), () => t.disconnect();
|
|
1345
1437
|
}, []), d(() => {
|
|
1346
1438
|
let e = j.current;
|
|
1347
1439
|
if (e === void 0) return;
|
|
1348
|
-
let t = Array.from(e.querySelectorAll("[data-multiselect-chip]")), n = e.querySelector("[data-multiselect-count]"), r = Number.parseFloat(getComputedStyle(e).columnGap) || 0, i =
|
|
1349
|
-
|
|
1440
|
+
let t = Array.from(e.querySelectorAll("[data-multiselect-chip]")), n = e.querySelector("[data-multiselect-count]"), r = Number.parseFloat(getComputedStyle(e).columnGap) || 0, i = yn(t.map(Dn), n === null ? 0 : Dn(n), Dn(e), r);
|
|
1441
|
+
D((e) => e === i ? e : i);
|
|
1350
1442
|
}), d(() => {
|
|
1351
|
-
let e =
|
|
1443
|
+
let e = k.current, t = M.current;
|
|
1352
1444
|
if (!F || e === void 0 || t === void 0) return;
|
|
1353
|
-
let n = e.getBoundingClientRect(), r = window.innerHeight - n.bottom -
|
|
1445
|
+
let n = e.getBoundingClientRect(), r = window.innerHeight - n.bottom - wn, i = n.top - wn, a = t.scrollHeight > r && i > r;
|
|
1354
1446
|
t.style.setProperty("--multiselect-surface-max-height", `${Math.max(a ? i : r, 0)}px`), ae(a ? "above" : "below");
|
|
1355
1447
|
}), l(() => {
|
|
1356
1448
|
if (!F) return;
|
|
1357
1449
|
let e = (e) => {
|
|
1358
|
-
let t =
|
|
1359
|
-
t !== void 0 && e.target instanceof Node && !t.contains(e.target) && (P.current = !1, N.current = void 0,
|
|
1450
|
+
let t = O.current;
|
|
1451
|
+
t !== void 0 && e.target instanceof Node && !t.contains(e.target) && (P.current = !1, N.current = void 0, E(!1));
|
|
1360
1452
|
};
|
|
1361
1453
|
return document.addEventListener("pointerdown", e), () => document.removeEventListener("pointerdown", e);
|
|
1362
1454
|
}, [F]), d(() => {
|
|
1363
|
-
let e =
|
|
1455
|
+
let e = O.current, t = A.current;
|
|
1364
1456
|
if (e === void 0 || t === void 0) return;
|
|
1365
1457
|
let n = N.current;
|
|
1366
|
-
n !== void 0 &&
|
|
1458
|
+
n !== void 0 && Nn(n) ? (N.current = void 0, Pn(n, e, t, F ? M.current : void 0)?.focus()) : n === void 0 && P.current && An(e) && t.focus(), P.current = e.contains(document.activeElement);
|
|
1367
1459
|
});
|
|
1368
|
-
let
|
|
1369
|
-
i.next(
|
|
1370
|
-
},
|
|
1460
|
+
let ce = (e) => {
|
|
1461
|
+
i.next(Mn(I, e));
|
|
1462
|
+
}, le = (e) => {
|
|
1371
1463
|
if (T) return;
|
|
1372
1464
|
let t = new Set(L);
|
|
1373
|
-
t.delete(e) || t.add(e),
|
|
1374
|
-
},
|
|
1465
|
+
t.delete(e) || t.add(e), ce(t);
|
|
1466
|
+
}, B = (e, t) => (n) => {
|
|
1375
1467
|
if (T) return;
|
|
1376
1468
|
document.activeElement === n.currentTarget && (N.current = {
|
|
1377
1469
|
kind: "afterRemoval",
|
|
@@ -1379,39 +1471,39 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
1379
1471
|
control: n.currentTarget
|
|
1380
1472
|
});
|
|
1381
1473
|
let r = new Set(L);
|
|
1382
|
-
r.delete(e),
|
|
1474
|
+
r.delete(e), ce(r);
|
|
1383
1475
|
}, ue = (e) => {
|
|
1384
1476
|
T || (document.activeElement === e.currentTarget && (N.current = {
|
|
1385
1477
|
kind: "afterClear",
|
|
1386
1478
|
control: e.currentTarget
|
|
1387
1479
|
}), i.next([]));
|
|
1388
1480
|
}, de = (e) => {
|
|
1389
|
-
T || (e.detail === 0 && (N.current = { kind: "firstOption" }),
|
|
1481
|
+
T || (e.detail === 0 && (N.current = { kind: "firstOption" }), E(!0));
|
|
1482
|
+
}, V = (e) => {
|
|
1483
|
+
F ? E(!1) : de(e);
|
|
1390
1484
|
}, fe = (e) => {
|
|
1391
|
-
F ? D(!1) : de(e);
|
|
1392
|
-
}, pe = (e) => {
|
|
1393
1485
|
if (e.key !== "ArrowDown" || T) return;
|
|
1394
1486
|
e.preventDefault();
|
|
1395
1487
|
let t = M.current;
|
|
1396
|
-
F && t !== void 0 ?
|
|
1397
|
-
},
|
|
1398
|
-
e.key !== "Escape" || !F || (e.preventDefault(), e.stopPropagation(),
|
|
1399
|
-
},
|
|
1488
|
+
F && t !== void 0 ? jn(t)?.focus() : (N.current = { kind: "firstOption" }, E(!0));
|
|
1489
|
+
}, pe = (e) => {
|
|
1490
|
+
e.key !== "Escape" || !F || (e.preventDefault(), e.stopPropagation(), E(!1), A.current?.focus());
|
|
1491
|
+
}, H = (e) => {
|
|
1400
1492
|
P.current = !0;
|
|
1401
1493
|
let t = N.current;
|
|
1402
1494
|
t !== void 0 && t.kind !== "firstOption" && e.target !== t.control && (N.current = void 0);
|
|
1403
|
-
},
|
|
1404
|
-
let t =
|
|
1405
|
-
t !== void 0 && n instanceof Node && t.contains(n) || e.target.isConnected && (P.current = !1, N.current = void 0,
|
|
1406
|
-
},
|
|
1495
|
+
}, me = (e) => {
|
|
1496
|
+
let t = O.current, n = e.relatedTarget;
|
|
1497
|
+
t !== void 0 && n instanceof Node && t.contains(n) || e.target.isConnected && (P.current = !1, N.current = void 0, E(!1));
|
|
1498
|
+
}, he = (e) => {
|
|
1407
1499
|
(!(e.target instanceof Element) || e.target.closest("button") === null) && e.preventDefault();
|
|
1408
|
-
},
|
|
1500
|
+
}, ge = [R.length === 0 ? w : void 0, h ? C : void 0].filter(Boolean).join(" ") || void 0;
|
|
1409
1501
|
return /* @__PURE__ */ n("div", {
|
|
1410
|
-
ref:
|
|
1411
|
-
className:
|
|
1412
|
-
onKeyDown:
|
|
1413
|
-
onFocus:
|
|
1414
|
-
onBlur:
|
|
1502
|
+
ref: q(O),
|
|
1503
|
+
className: K(),
|
|
1504
|
+
onKeyDown: pe,
|
|
1505
|
+
onFocus: H,
|
|
1506
|
+
onBlur: me,
|
|
1415
1507
|
children: [
|
|
1416
1508
|
/* @__PURE__ */ t("label", {
|
|
1417
1509
|
id: b,
|
|
@@ -1419,24 +1511,24 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
1419
1511
|
children: e
|
|
1420
1512
|
}),
|
|
1421
1513
|
/* @__PURE__ */ n("div", {
|
|
1422
|
-
ref:
|
|
1514
|
+
ref: q(k),
|
|
1423
1515
|
"data-multiselect-field": !0,
|
|
1424
1516
|
"data-disabled": T || void 0,
|
|
1425
|
-
className:
|
|
1517
|
+
className: K({ part: "field" }),
|
|
1426
1518
|
children: [
|
|
1427
1519
|
/* @__PURE__ */ t("button", {
|
|
1428
|
-
ref:
|
|
1520
|
+
ref: q(A),
|
|
1429
1521
|
id: x,
|
|
1430
1522
|
type: "button",
|
|
1431
1523
|
"aria-labelledby": b,
|
|
1432
1524
|
"aria-expanded": F,
|
|
1433
1525
|
"aria-controls": F ? S : void 0,
|
|
1434
|
-
"aria-describedby":
|
|
1526
|
+
"aria-describedby": ge,
|
|
1435
1527
|
disabled: T,
|
|
1436
1528
|
"data-testid": _,
|
|
1437
|
-
className:
|
|
1438
|
-
onClick:
|
|
1439
|
-
onKeyDown:
|
|
1529
|
+
className: K({ part: "trigger" }),
|
|
1530
|
+
onClick: V,
|
|
1531
|
+
onKeyDown: fe,
|
|
1440
1532
|
children: /* @__PURE__ */ t("svg", {
|
|
1441
1533
|
"aria-hidden": !0,
|
|
1442
1534
|
focusable: !1,
|
|
@@ -1453,11 +1545,11 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
1453
1545
|
})
|
|
1454
1546
|
}),
|
|
1455
1547
|
/* @__PURE__ */ t("div", {
|
|
1456
|
-
className:
|
|
1548
|
+
className: K({ part: "clip" }),
|
|
1457
1549
|
children: /* @__PURE__ */ n("div", {
|
|
1458
|
-
ref:
|
|
1550
|
+
ref: q(j),
|
|
1459
1551
|
"data-multiselect-track": !0,
|
|
1460
|
-
className:
|
|
1552
|
+
className: K({ part: "track" }),
|
|
1461
1553
|
children: [
|
|
1462
1554
|
R.length === 0 && /* @__PURE__ */ t("span", {
|
|
1463
1555
|
id: w,
|
|
@@ -1471,7 +1563,7 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
1471
1563
|
"data-overflow": a || void 0,
|
|
1472
1564
|
"aria-hidden": a || void 0,
|
|
1473
1565
|
inert: a || void 0,
|
|
1474
|
-
className:
|
|
1566
|
+
className: K({ part: "chip" }),
|
|
1475
1567
|
children: [/* @__PURE__ */ t("span", {
|
|
1476
1568
|
className: "truncate",
|
|
1477
1569
|
children: r
|
|
@@ -1480,23 +1572,23 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
1480
1572
|
"aria-label": o.replaceAll("{label}", r),
|
|
1481
1573
|
disabled: T,
|
|
1482
1574
|
tabIndex: a ? -1 : void 0,
|
|
1483
|
-
className:
|
|
1484
|
-
onClick:
|
|
1485
|
-
children: /* @__PURE__ */ t(
|
|
1575
|
+
className: K({ part: "iconButton" }),
|
|
1576
|
+
onClick: B(e, i),
|
|
1577
|
+
children: /* @__PURE__ */ t(Fn, {})
|
|
1486
1578
|
})]
|
|
1487
1579
|
}, e);
|
|
1488
1580
|
}),
|
|
1489
1581
|
se > 0 && /* @__PURE__ */ t("button", {
|
|
1490
1582
|
type: "button",
|
|
1491
1583
|
disabled: T,
|
|
1492
|
-
className:
|
|
1584
|
+
className: K({ part: "count" }),
|
|
1493
1585
|
onClick: de,
|
|
1494
1586
|
children: c.replaceAll("{count}", String(se))
|
|
1495
1587
|
}),
|
|
1496
1588
|
R.length > 0 && /* @__PURE__ */ t("span", {
|
|
1497
1589
|
"aria-hidden": !0,
|
|
1498
1590
|
"data-multiselect-count": !0,
|
|
1499
|
-
className:
|
|
1591
|
+
className: K({ part: "countMeasure" }),
|
|
1500
1592
|
children: c.replaceAll("{count}", String(R.length))
|
|
1501
1593
|
})
|
|
1502
1594
|
]
|
|
@@ -1506,9 +1598,9 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
1506
1598
|
type: "button",
|
|
1507
1599
|
"aria-label": s,
|
|
1508
1600
|
disabled: T,
|
|
1509
|
-
className:
|
|
1601
|
+
className: K({ part: "iconButton" }),
|
|
1510
1602
|
onClick: ue,
|
|
1511
|
-
children: /* @__PURE__ */ t(
|
|
1603
|
+
children: /* @__PURE__ */ t(Fn, {})
|
|
1512
1604
|
}) : /* @__PURE__ */ t("span", {
|
|
1513
1605
|
"aria-hidden": !0,
|
|
1514
1606
|
className: "size-6 shrink-0"
|
|
@@ -1518,18 +1610,18 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
1518
1610
|
className: "size-6 shrink-0"
|
|
1519
1611
|
}),
|
|
1520
1612
|
F && /* @__PURE__ */ t("div", {
|
|
1521
|
-
ref:
|
|
1613
|
+
ref: q(M),
|
|
1522
1614
|
id: S,
|
|
1523
1615
|
role: "group",
|
|
1524
1616
|
"aria-labelledby": b,
|
|
1525
1617
|
"data-placement": ie,
|
|
1526
|
-
className:
|
|
1527
|
-
onMouseDown:
|
|
1528
|
-
children: /* @__PURE__ */ t(
|
|
1618
|
+
className: K({ part: "surface" }),
|
|
1619
|
+
onMouseDown: he,
|
|
1620
|
+
children: /* @__PURE__ */ t(Tn, {
|
|
1529
1621
|
value: {
|
|
1530
1622
|
selected: L,
|
|
1531
1623
|
disabled: T,
|
|
1532
|
-
toggle:
|
|
1624
|
+
toggle: le
|
|
1533
1625
|
},
|
|
1534
1626
|
children: v
|
|
1535
1627
|
})
|
|
@@ -1542,15 +1634,15 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
1542
1634
|
})
|
|
1543
1635
|
]
|
|
1544
1636
|
});
|
|
1545
|
-
},
|
|
1546
|
-
let { selected: a, disabled: o, toggle: s } =
|
|
1637
|
+
}, Ln = ({ value: e, children: r, testId: i }) => {
|
|
1638
|
+
let { selected: a, disabled: o, toggle: s } = En("Option"), c = a.has(e);
|
|
1547
1639
|
return /* @__PURE__ */ n("button", {
|
|
1548
1640
|
type: "button",
|
|
1549
1641
|
role: "checkbox",
|
|
1550
1642
|
"aria-checked": c,
|
|
1551
1643
|
disabled: o,
|
|
1552
1644
|
"data-testid": i,
|
|
1553
|
-
className:
|
|
1645
|
+
className: Cn(),
|
|
1554
1646
|
onClick: () => s(e),
|
|
1555
1647
|
children: [/* @__PURE__ */ t("span", {
|
|
1556
1648
|
className: "flex size-[var(--choice-marker-size)] shrink-0 items-center justify-center border border-solid border-control-border group-aria-checked/option:border-foreground",
|
|
@@ -1573,10 +1665,10 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
1573
1665
|
children: r
|
|
1574
1666
|
})]
|
|
1575
1667
|
});
|
|
1576
|
-
},
|
|
1577
|
-
Root:
|
|
1578
|
-
Option:
|
|
1579
|
-
},
|
|
1668
|
+
}, Rn = {
|
|
1669
|
+
Root: In,
|
|
1670
|
+
Option: Ln
|
|
1671
|
+
}, zn = b("block w-full rounded-[var(--radius-control)] border border-solid border-control-border bg-transparent px-3 py-2 font-control text-body text-foreground transition-colors duration-[var(--motion-duration-color)] outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)] [&:user-invalid]:border-error aria-[invalid=true]:border-error disabled:cursor-not-allowed disabled:border-disabled disabled:text-muted"), Bn = ({ label: e, name: r, required: i, optionalLabel: a, hint: o, invalid: s, errorMessage: c, disabled: d, placeholder: f, defaultValue: m, onInput$: h, reset$: g, testId: _ }) => {
|
|
1580
1672
|
let v = u(), y = `${v}-control`, b = `${v}-hint`, x = `${v}-error`, S = [o ? b : void 0, s ? x : void 0].filter(Boolean).join(" ") || void 0, C = p(null);
|
|
1581
1673
|
return l(() => {
|
|
1582
1674
|
let e = g?.subscribe(() => {
|
|
@@ -1597,7 +1689,7 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
1597
1689
|
name: r,
|
|
1598
1690
|
type: "text",
|
|
1599
1691
|
inputMode: "decimal",
|
|
1600
|
-
className:
|
|
1692
|
+
className: zn(),
|
|
1601
1693
|
required: i,
|
|
1602
1694
|
disabled: d,
|
|
1603
1695
|
defaultValue: m,
|
|
@@ -1623,7 +1715,7 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
1623
1715
|
})
|
|
1624
1716
|
]
|
|
1625
1717
|
});
|
|
1626
|
-
},
|
|
1718
|
+
}, Vn = b([
|
|
1627
1719
|
"flex flex-col gap-[var(--space-stack)]",
|
|
1628
1720
|
"[&>label]:font-secondary [&>label]:font-medium [&>label]:text-body [&>label]:text-foreground",
|
|
1629
1721
|
"[&>span]:font-secondary [&>span]:text-muted [&>span]:text-small",
|
|
@@ -1632,11 +1724,11 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
1632
1724
|
"[&>select]:font-control [&>select]:text-body [&>select]:text-foreground [&>select]:transition-colors [&>select]:duration-[var(--motion-duration-color)]",
|
|
1633
1725
|
"[&>select]:outline-focus-ring [&>select]:outline-offset-[var(--focus-ring-offset)] [&>select]:focus-visible:outline [&>select]:focus-visible:outline-[length:var(--focus-ring-width)]",
|
|
1634
1726
|
"[&>select:user-invalid]:border-error [&>select]:aria-[invalid=true]:border-error [&>select]:disabled:cursor-not-allowed [&>select]:disabled:border-disabled [&>select]:disabled:text-muted"
|
|
1635
|
-
].join(" ")),
|
|
1727
|
+
].join(" ")), Hn = {
|
|
1636
1728
|
Root: ({ label: e, name: r, required: i, optionalLabel: a, disabled: o, invalid: s, hint: c, errorMessage: l, testId: d, defaultValue: f, onChange$: p, placeholder: m, children: h }) => {
|
|
1637
1729
|
let g = u(), _ = `${g}-control`, v = `${g}-hint`, y = `${g}-error`, b = [c ? v : void 0, s && l ? y : void 0].filter(Boolean).join(" ") || void 0;
|
|
1638
1730
|
return /* @__PURE__ */ n("div", {
|
|
1639
|
-
className:
|
|
1731
|
+
className: Vn(),
|
|
1640
1732
|
children: [
|
|
1641
1733
|
/* @__PURE__ */ t("label", {
|
|
1642
1734
|
htmlFor: _,
|
|
@@ -1675,11 +1767,11 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
1675
1767
|
"data-testid": r,
|
|
1676
1768
|
children: n
|
|
1677
1769
|
})
|
|
1678
|
-
},
|
|
1770
|
+
}, J = class extends Error {
|
|
1679
1771
|
constructor(e) {
|
|
1680
1772
|
super(`Slider configuration: ${e}`), this.name = "SliderConfigurationError";
|
|
1681
1773
|
}
|
|
1682
|
-
},
|
|
1774
|
+
}, Un = b([
|
|
1683
1775
|
"block h-[var(--slider-thumb-size)] w-full cursor-pointer appearance-none bg-transparent",
|
|
1684
1776
|
"disabled:cursor-not-allowed",
|
|
1685
1777
|
"outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]",
|
|
@@ -1690,13 +1782,13 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
1690
1782
|
"[&::-moz-range-track]:h-[var(--slider-track-thickness)] [&::-moz-range-track]:rounded-[var(--radius-control)] [&::-moz-range-track]:bg-control-border",
|
|
1691
1783
|
"[&::-moz-range-thumb]:size-[var(--slider-thumb-size)] [&::-moz-range-thumb]:rounded-[var(--radius-control)] [&::-moz-range-thumb]:border-none [&::-moz-range-thumb]:bg-foreground",
|
|
1692
1784
|
"[&:disabled::-moz-range-track]:bg-disabled [&:disabled::-moz-range-thumb]:bg-disabled"
|
|
1693
|
-
].join(" ")),
|
|
1694
|
-
for (let [t, n] of Object.entries(e)) if (!Number.isFinite(n)) throw new
|
|
1695
|
-
if (e.min >= e.max) throw new
|
|
1696
|
-
if (e.step <= 0) throw new
|
|
1697
|
-
},
|
|
1785
|
+
].join(" ")), Wn = (e) => {
|
|
1786
|
+
for (let [t, n] of Object.entries(e)) if (!Number.isFinite(n)) throw new J(`\`${t}\` must be a finite number, got ${n}`);
|
|
1787
|
+
if (e.min >= e.max) throw new J(`\`min\` (${e.min}) must be below \`max\` (${e.max})`);
|
|
1788
|
+
if (e.step <= 0) throw new J(`\`step\` (${e.step}) must be positive`);
|
|
1789
|
+
}, Gn = ({ min: e, max: r, step: i = 1, value: a, onInput$: o, label: s, valueText: c, disabled: l, testId: d }) => {
|
|
1698
1790
|
let f = `${u()}-control`;
|
|
1699
|
-
return
|
|
1791
|
+
return Wn({
|
|
1700
1792
|
min: e,
|
|
1701
1793
|
max: r,
|
|
1702
1794
|
step: i,
|
|
@@ -1710,7 +1802,7 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
1710
1802
|
}), /* @__PURE__ */ t("input", {
|
|
1711
1803
|
id: f,
|
|
1712
1804
|
type: "range",
|
|
1713
|
-
className:
|
|
1805
|
+
className: Un(),
|
|
1714
1806
|
min: e,
|
|
1715
1807
|
max: r,
|
|
1716
1808
|
step: i,
|
|
@@ -1721,15 +1813,15 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
1721
1813
|
onChange: (e) => o.next(e.currentTarget.valueAsNumber)
|
|
1722
1814
|
})]
|
|
1723
1815
|
});
|
|
1724
|
-
},
|
|
1816
|
+
}, Kn = class extends Error {
|
|
1725
1817
|
constructor(e) {
|
|
1726
1818
|
super(`Stepper.${e} must be composed inside Stepper.Root`), this.name = "StepperCompositionError";
|
|
1727
1819
|
}
|
|
1728
|
-
},
|
|
1820
|
+
}, qn = b("flex h-full min-h-0 min-w-0 flex-col gap-[var(--space-stack)]"), Jn = b([
|
|
1729
1821
|
"flex flex-row shrink-0 min-w-0 overflow-x-auto",
|
|
1730
1822
|
"p-[calc(var(--focus-ring-width)+var(--focus-ring-offset))]",
|
|
1731
1823
|
"scroll-p-[calc(var(--focus-ring-width)+var(--focus-ring-offset))]"
|
|
1732
|
-
].join(" ")),
|
|
1824
|
+
].join(" ")), Yn = b([
|
|
1733
1825
|
"relative isolate flex flex-1 flex-col items-center gap-[var(--space-stack)] text-center",
|
|
1734
1826
|
"font-secondary text-label text-foreground cursor-pointer select-none",
|
|
1735
1827
|
"px-[var(--step-inset-inline)] py-[var(--step-inset-block)]",
|
|
@@ -1742,28 +1834,28 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
1742
1834
|
"forced-colors:after:border-[CanvasText] forced-colors:aria-selected:border-[Highlight]",
|
|
1743
1835
|
"forced-colors:border-b-0 forced-colors:aria-selected:border-b-[length:var(--step-selection-thickness)]",
|
|
1744
1836
|
"forced-colors:[&>[data-marker]]:bg-[Canvas] forced-colors:[&>[data-marker]]:text-[CanvasText] forced-colors:[&>[data-marker]]:border-[CanvasText]"
|
|
1745
|
-
]),
|
|
1746
|
-
let t = c(
|
|
1747
|
-
if (t === void 0) throw new
|
|
1837
|
+
]), Xn = b("min-h-0 min-w-0 flex-auto outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]"), Zn = a(void 0), Qn = (e) => r.toArray(e).flatMap((e) => o(e) && e.type === i ? Qn(e.props.children) : [e]), $n = a(void 0), er = (e) => {
|
|
1838
|
+
let t = c($n);
|
|
1839
|
+
if (t === void 0) throw new Kn(e);
|
|
1748
1840
|
return t;
|
|
1749
|
-
},
|
|
1841
|
+
}, tr = (e) => e.split("").map((e) => e.charCodeAt(0).toString(16).padStart(4, "0")).join(""), nr = (e) => {
|
|
1750
1842
|
e.currentTarget.scrollIntoView({
|
|
1751
1843
|
block: "nearest",
|
|
1752
1844
|
inline: "nearest"
|
|
1753
1845
|
});
|
|
1754
|
-
},
|
|
1846
|
+
}, Y = (e, t) => `${e}tab-${tr(t)}`, rr = (e, t) => `${e}panel-${tr(t)}`, ir = (e, t) => {
|
|
1755
1847
|
let n = e.closest("[role=\"tablist\"]");
|
|
1756
1848
|
if (n === null) return;
|
|
1757
1849
|
let r = Array.from(n.querySelectorAll(":scope > [role=\"tab\"]"));
|
|
1758
1850
|
return r[(r.indexOf(e) + t + r.length) % r.length];
|
|
1759
|
-
},
|
|
1851
|
+
}, ar = {
|
|
1760
1852
|
Root: ({ active$: e, onSelect$: n, label: r, children: i, testId: a }) => {
|
|
1761
1853
|
let o = u(), [s, c] = m();
|
|
1762
1854
|
return l(() => {
|
|
1763
1855
|
c(void 0);
|
|
1764
1856
|
let t = e.subscribe(c);
|
|
1765
1857
|
return () => t.unsubscribe();
|
|
1766
|
-
}, [e]), /* @__PURE__ */ t(
|
|
1858
|
+
}, [e]), /* @__PURE__ */ t($n.Provider, {
|
|
1767
1859
|
value: {
|
|
1768
1860
|
active: s,
|
|
1769
1861
|
onSelect$: n,
|
|
@@ -1771,52 +1863,52 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
1771
1863
|
baseId: o
|
|
1772
1864
|
},
|
|
1773
1865
|
children: /* @__PURE__ */ t("div", {
|
|
1774
|
-
className:
|
|
1866
|
+
className: qn(),
|
|
1775
1867
|
"data-testid": a,
|
|
1776
1868
|
children: i
|
|
1777
1869
|
})
|
|
1778
1870
|
});
|
|
1779
1871
|
},
|
|
1780
1872
|
List: ({ children: e, testId: n }) => {
|
|
1781
|
-
let { label: r } =
|
|
1873
|
+
let { label: r } = er("List");
|
|
1782
1874
|
return /* @__PURE__ */ t("div", {
|
|
1783
1875
|
role: "tablist",
|
|
1784
1876
|
"aria-label": r,
|
|
1785
|
-
className:
|
|
1877
|
+
className: Jn(),
|
|
1786
1878
|
"data-testid": n,
|
|
1787
|
-
children:
|
|
1879
|
+
children: Qn(e).map((e, n) => /* @__PURE__ */ t(Zn.Provider, {
|
|
1788
1880
|
value: n + 1,
|
|
1789
1881
|
children: e
|
|
1790
1882
|
}, o(e) ? e.props.value : n))
|
|
1791
1883
|
});
|
|
1792
1884
|
},
|
|
1793
1885
|
Step: ({ value: e, label: r, status: i, valueText: a, statusContent: o, testId: s }) => {
|
|
1794
|
-
let { active: l, onSelect$: u, baseId: d } =
|
|
1795
|
-
if (f === void 0) throw new
|
|
1886
|
+
let { active: l, onSelect$: u, baseId: d } = er("Step"), f = c(Zn);
|
|
1887
|
+
if (f === void 0) throw new Kn("Step (inside List)");
|
|
1796
1888
|
let p = l === e;
|
|
1797
1889
|
return /* @__PURE__ */ n("button", {
|
|
1798
1890
|
type: "button",
|
|
1799
1891
|
role: "tab",
|
|
1800
|
-
id:
|
|
1892
|
+
id: Y(d, e),
|
|
1801
1893
|
"aria-selected": p,
|
|
1802
|
-
"aria-controls":
|
|
1803
|
-
"aria-labelledby": `${
|
|
1804
|
-
"aria-describedby": o === void 0 ? void 0 : `${
|
|
1894
|
+
"aria-controls": rr(d, e),
|
|
1895
|
+
"aria-labelledby": `${Y(d, e)}-label ${Y(d, e)}-value`,
|
|
1896
|
+
"aria-describedby": o === void 0 ? void 0 : `${Y(d, e)}-status`,
|
|
1805
1897
|
tabIndex: p ? 0 : -1,
|
|
1806
1898
|
"data-value": e,
|
|
1807
1899
|
"data-testid": s,
|
|
1808
|
-
className:
|
|
1900
|
+
className: Yn(),
|
|
1809
1901
|
onClick: () => u.next(e),
|
|
1810
1902
|
onKeyDown: (e) => {
|
|
1811
1903
|
if (e.key !== "ArrowLeft" && e.key !== "ArrowRight") return;
|
|
1812
1904
|
e.preventDefault();
|
|
1813
|
-
let t =
|
|
1905
|
+
let t = ir(e.currentTarget, e.key === "ArrowRight" ? 1 : -1);
|
|
1814
1906
|
if (t === void 0) return;
|
|
1815
1907
|
t.focus();
|
|
1816
1908
|
let n = t.dataset.value;
|
|
1817
1909
|
n !== void 0 && u.next(n);
|
|
1818
1910
|
},
|
|
1819
|
-
onFocus:
|
|
1911
|
+
onFocus: nr,
|
|
1820
1912
|
children: [
|
|
1821
1913
|
/* @__PURE__ */ t("span", {
|
|
1822
1914
|
"data-marker": !0,
|
|
@@ -1824,36 +1916,36 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
1824
1916
|
children: i === "done" ? "✓" : i === "blocked" ? "⊘" : f
|
|
1825
1917
|
}),
|
|
1826
1918
|
/* @__PURE__ */ t("span", {
|
|
1827
|
-
id: `${
|
|
1919
|
+
id: `${Y(d, e)}-label`,
|
|
1828
1920
|
children: r
|
|
1829
1921
|
}),
|
|
1830
1922
|
/* @__PURE__ */ t("span", {
|
|
1831
1923
|
"data-value-text": !0,
|
|
1832
|
-
id: `${
|
|
1924
|
+
id: `${Y(d, e)}-value`,
|
|
1833
1925
|
children: a
|
|
1834
1926
|
}),
|
|
1835
1927
|
o === void 0 ? void 0 : /* @__PURE__ */ t("span", {
|
|
1836
1928
|
"data-status-content": !0,
|
|
1837
|
-
id: `${
|
|
1929
|
+
id: `${Y(d, e)}-status`,
|
|
1838
1930
|
children: o
|
|
1839
1931
|
})
|
|
1840
1932
|
]
|
|
1841
1933
|
});
|
|
1842
1934
|
},
|
|
1843
1935
|
Panel: ({ value: e, children: n, testId: r }) => {
|
|
1844
|
-
let { active: i, baseId: a } =
|
|
1936
|
+
let { active: i, baseId: a } = er("Panel"), o = i === e;
|
|
1845
1937
|
return /* @__PURE__ */ t("div", {
|
|
1846
1938
|
role: "tabpanel",
|
|
1847
|
-
id:
|
|
1848
|
-
"aria-labelledby":
|
|
1939
|
+
id: rr(a, e),
|
|
1940
|
+
"aria-labelledby": Y(a, e),
|
|
1849
1941
|
hidden: !o,
|
|
1850
1942
|
tabIndex: o ? 0 : void 0,
|
|
1851
|
-
className:
|
|
1943
|
+
className: Xn(),
|
|
1852
1944
|
"data-testid": r,
|
|
1853
1945
|
children: o ? n : void 0
|
|
1854
1946
|
});
|
|
1855
1947
|
}
|
|
1856
|
-
},
|
|
1948
|
+
}, or = b([
|
|
1857
1949
|
"inline-flex max-w-full items-center gap-[var(--space-stack)] rounded-[var(--radius-control)] bg-transparent p-0 text-start cursor-pointer",
|
|
1858
1950
|
"font-secondary font-medium text-body text-foreground disabled:text-muted disabled:cursor-not-allowed",
|
|
1859
1951
|
"outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]",
|
|
@@ -1865,7 +1957,7 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
1865
1957
|
"forced-colors:[&>[data-track]]:[forced-color-adjust:none] forced-colors:[&>[data-track]]:border-[ButtonText] forced-colors:[&>[data-track]]:bg-[Canvas] forced-colors:[&>[data-track]::before]:bg-[ButtonText]",
|
|
1866
1958
|
"forced-colors:disabled:text-[GrayText] forced-colors:disabled:[&>[data-track]]:border-[GrayText] forced-colors:disabled:[&>[data-track]::before]:bg-[GrayText]",
|
|
1867
1959
|
"[&>[data-label]]:min-w-0 [&>[data-label]]:wrap-anywhere"
|
|
1868
|
-
]),
|
|
1960
|
+
]), sr = ({ label: e, checked$: r, onChange$: i, disabled: a, testId: o }) => {
|
|
1869
1961
|
let [s, c] = m(!1);
|
|
1870
1962
|
return l(() => {
|
|
1871
1963
|
c(!1);
|
|
@@ -1877,7 +1969,7 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
1877
1969
|
"aria-checked": s,
|
|
1878
1970
|
disabled: a,
|
|
1879
1971
|
"data-testid": o,
|
|
1880
|
-
className:
|
|
1972
|
+
className: or(),
|
|
1881
1973
|
onClick: () => i.next(!s),
|
|
1882
1974
|
children: [/* @__PURE__ */ t("span", {
|
|
1883
1975
|
"data-track": !0,
|
|
@@ -1887,17 +1979,17 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
1887
1979
|
children: e
|
|
1888
1980
|
})]
|
|
1889
1981
|
});
|
|
1890
|
-
},
|
|
1982
|
+
}, cr = class extends Error {
|
|
1891
1983
|
constructor(e) {
|
|
1892
1984
|
super(`Tabs.${e} must be composed inside Tabs.Root`), this.name = "TabsCompositionError";
|
|
1893
1985
|
}
|
|
1894
|
-
},
|
|
1986
|
+
}, lr = b("", {
|
|
1895
1987
|
variants: { fill: {
|
|
1896
1988
|
true: "flex h-full min-h-0 min-w-0 flex-col",
|
|
1897
1989
|
false: ""
|
|
1898
1990
|
} },
|
|
1899
1991
|
defaultVariants: { fill: !1 }
|
|
1900
|
-
}),
|
|
1992
|
+
}), ur = b([
|
|
1901
1993
|
"flex flex-row overflow-x-auto",
|
|
1902
1994
|
"p-[calc(var(--focus-ring-width)+var(--focus-ring-offset))]",
|
|
1903
1995
|
"m-[calc(-1*(var(--focus-ring-width)+var(--focus-ring-offset)))]",
|
|
@@ -1905,34 +1997,34 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
1905
1997
|
].join(" "), { variants: { fill: {
|
|
1906
1998
|
true: "shrink-0",
|
|
1907
1999
|
false: ""
|
|
1908
|
-
} } }),
|
|
2000
|
+
} } }), dr = b([
|
|
1909
2001
|
"font-secondary text-label tracking-label",
|
|
1910
2002
|
"text-muted hover:text-foreground aria-selected:text-foreground",
|
|
1911
2003
|
"border-b-[length:var(--tab-marker-thickness)] border-solid border-transparent aria-selected:border-foreground",
|
|
1912
2004
|
"cursor-pointer select-none px-[var(--tab-inset-inline)] py-[var(--tab-inset-block)]",
|
|
1913
2005
|
"transition-colors duration-[var(--motion-duration-color)]",
|
|
1914
2006
|
"outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]"
|
|
1915
|
-
].join(" ")),
|
|
2007
|
+
].join(" ")), fr = b("outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]", { variants: { fill: {
|
|
1916
2008
|
true: "min-h-0 min-w-0 flex-auto",
|
|
1917
2009
|
false: ""
|
|
1918
|
-
} } }),
|
|
1919
|
-
let t = c(
|
|
1920
|
-
if (t === void 0) throw new
|
|
2010
|
+
} } }), pr = a(void 0), mr = (e) => {
|
|
2011
|
+
let t = c(pr);
|
|
2012
|
+
if (t === void 0) throw new cr(e);
|
|
1921
2013
|
return t;
|
|
1922
|
-
},
|
|
2014
|
+
}, hr = (e) => e.split("").map((e) => e.charCodeAt(0).toString(16).padStart(4, "0")).join(""), gr = (e) => {
|
|
1923
2015
|
e.currentTarget.scrollIntoView({
|
|
1924
2016
|
block: "nearest",
|
|
1925
2017
|
inline: "nearest"
|
|
1926
2018
|
});
|
|
1927
|
-
},
|
|
2019
|
+
}, _r = (e, t) => `${e}tab-${hr(t)}`, vr = (e, t) => `${e}panel-${hr(t)}`, yr = (e, t) => {
|
|
1928
2020
|
let n = e.closest("[role=\"tablist\"]");
|
|
1929
2021
|
if (n === null) return;
|
|
1930
2022
|
let r = Array.from(n.querySelectorAll(":scope > [role=\"tab\"]"));
|
|
1931
2023
|
return r[(r.indexOf(e) + t + r.length) % r.length];
|
|
1932
|
-
},
|
|
2024
|
+
}, br = {
|
|
1933
2025
|
Root: ({ active: e, onSelect$: n, label: r, fill: i, children: a, testId: o }) => {
|
|
1934
2026
|
let s = u();
|
|
1935
|
-
return /* @__PURE__ */ t(
|
|
2027
|
+
return /* @__PURE__ */ t(pr.Provider, {
|
|
1936
2028
|
value: {
|
|
1937
2029
|
active: e,
|
|
1938
2030
|
onSelect$: n,
|
|
@@ -1941,62 +2033,62 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
1941
2033
|
fill: i === !0
|
|
1942
2034
|
},
|
|
1943
2035
|
children: /* @__PURE__ */ t("div", {
|
|
1944
|
-
className:
|
|
2036
|
+
className: lr({ fill: i }),
|
|
1945
2037
|
"data-testid": o,
|
|
1946
2038
|
children: a
|
|
1947
2039
|
})
|
|
1948
2040
|
});
|
|
1949
2041
|
},
|
|
1950
2042
|
List: ({ children: e, testId: n }) => {
|
|
1951
|
-
let { label: r, fill: i } =
|
|
2043
|
+
let { label: r, fill: i } = mr("List");
|
|
1952
2044
|
return /* @__PURE__ */ t("div", {
|
|
1953
2045
|
role: "tablist",
|
|
1954
2046
|
"aria-label": r,
|
|
1955
|
-
className:
|
|
2047
|
+
className: ur({ fill: i }),
|
|
1956
2048
|
"data-testid": n,
|
|
1957
2049
|
children: e
|
|
1958
2050
|
});
|
|
1959
2051
|
},
|
|
1960
2052
|
Tab: ({ value: e, children: n, testId: r }) => {
|
|
1961
|
-
let { active: i, onSelect$: a, baseId: o } =
|
|
2053
|
+
let { active: i, onSelect$: a, baseId: o } = mr("Tab"), s = i === e;
|
|
1962
2054
|
return /* @__PURE__ */ t("button", {
|
|
1963
2055
|
type: "button",
|
|
1964
2056
|
role: "tab",
|
|
1965
|
-
id:
|
|
2057
|
+
id: _r(o, e),
|
|
1966
2058
|
"aria-selected": s,
|
|
1967
|
-
"aria-controls":
|
|
2059
|
+
"aria-controls": vr(o, e),
|
|
1968
2060
|
tabIndex: s ? 0 : -1,
|
|
1969
2061
|
"data-value": e,
|
|
1970
2062
|
"data-testid": r,
|
|
1971
|
-
className:
|
|
2063
|
+
className: dr(),
|
|
1972
2064
|
onClick: () => a.next(e),
|
|
1973
2065
|
onKeyDown: (e) => {
|
|
1974
2066
|
if (e.key !== "ArrowLeft" && e.key !== "ArrowRight") return;
|
|
1975
2067
|
e.preventDefault();
|
|
1976
|
-
let t =
|
|
2068
|
+
let t = yr(e.currentTarget, e.key === "ArrowRight" ? 1 : -1);
|
|
1977
2069
|
if (t === void 0) return;
|
|
1978
2070
|
t.focus();
|
|
1979
2071
|
let n = t.dataset.value;
|
|
1980
2072
|
n !== void 0 && a.next(n);
|
|
1981
2073
|
},
|
|
1982
|
-
onFocus:
|
|
2074
|
+
onFocus: gr,
|
|
1983
2075
|
children: n
|
|
1984
2076
|
});
|
|
1985
2077
|
},
|
|
1986
2078
|
Panel: ({ value: e, children: n, testId: r }) => {
|
|
1987
|
-
let { active: i, baseId: a, fill: o } =
|
|
2079
|
+
let { active: i, baseId: a, fill: o } = mr("Panel"), s = i === e;
|
|
1988
2080
|
return /* @__PURE__ */ t("div", {
|
|
1989
2081
|
role: "tabpanel",
|
|
1990
|
-
id:
|
|
1991
|
-
"aria-labelledby":
|
|
2082
|
+
id: vr(a, e),
|
|
2083
|
+
"aria-labelledby": _r(a, e),
|
|
1992
2084
|
hidden: !s,
|
|
1993
2085
|
tabIndex: s ? 0 : void 0,
|
|
1994
|
-
className:
|
|
2086
|
+
className: fr({ fill: o }),
|
|
1995
2087
|
"data-testid": r,
|
|
1996
2088
|
children: s ? n : void 0
|
|
1997
2089
|
});
|
|
1998
2090
|
}
|
|
1999
|
-
},
|
|
2091
|
+
}, xr = b("block min-h-24 w-full rounded-[var(--radius-control)] border border-solid border-control-border bg-transparent px-3 py-2 font-control text-body text-foreground transition-colors duration-[var(--motion-duration-color)] outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)] [&:user-invalid]:border-error aria-[invalid=true]:border-error disabled:cursor-not-allowed disabled:border-disabled disabled:text-muted"), Sr = ({ label: e, name: r, required: i, optionalLabel: a, invalid: o, disabled: s, defaultValue: c, placeholder: d, autocomplete: f, hint: m, errorMessage: h, onInput$: g, reset$: _, testId: v }) => {
|
|
2000
2092
|
let y = u(), b = `${y}-control`, x = `${y}-hint`, S = `${y}-error`, C = [m ? x : void 0, o ? S : void 0].filter(Boolean).join(" ") || void 0, w = p(null);
|
|
2001
2093
|
return l(() => {
|
|
2002
2094
|
let e = _?.subscribe(() => {
|
|
@@ -2015,7 +2107,7 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
2015
2107
|
ref: w,
|
|
2016
2108
|
id: b,
|
|
2017
2109
|
name: r,
|
|
2018
|
-
className:
|
|
2110
|
+
className: xr(),
|
|
2019
2111
|
required: i,
|
|
2020
2112
|
disabled: s,
|
|
2021
2113
|
defaultValue: c,
|
|
@@ -2042,30 +2134,111 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
2042
2134
|
})
|
|
2043
2135
|
]
|
|
2044
2136
|
});
|
|
2045
|
-
},
|
|
2137
|
+
}, Cr = b([
|
|
2046
2138
|
"flex flex-col items-center",
|
|
2047
2139
|
"min-h-[var(--cover-height)]",
|
|
2048
2140
|
"px-[var(--gutter)] py-[var(--space-region)]"
|
|
2049
|
-
].join(" ")),
|
|
2141
|
+
].join(" ")), wr = "my-auto max-w-full", Tr = ({ children: e, foot: r, testId: i }) => {
|
|
2050
2142
|
let a = r != null && typeof r != "boolean";
|
|
2051
2143
|
return /* @__PURE__ */ n("div", {
|
|
2052
|
-
className:
|
|
2144
|
+
className: Cr(),
|
|
2053
2145
|
"data-testid": i,
|
|
2054
2146
|
children: [/* @__PURE__ */ t("div", {
|
|
2055
|
-
className:
|
|
2147
|
+
className: wr,
|
|
2056
2148
|
children: e
|
|
2057
2149
|
}), a && /* @__PURE__ */ t("div", { children: r })]
|
|
2058
2150
|
});
|
|
2059
|
-
},
|
|
2151
|
+
}, Er = class extends Error {
|
|
2060
2152
|
constructor(e) {
|
|
2061
2153
|
super(`Dialog.${e} must be composed inside Dialog.Root`), this.name = "DialogCompositionError";
|
|
2062
2154
|
}
|
|
2063
|
-
},
|
|
2155
|
+
}, Dr = class extends Error {
|
|
2064
2156
|
constructor() {
|
|
2065
2157
|
super("A Dialog takes exactly one accessible naming source: a visible Dialog.Title or ariaLabel on Dialog.Root, never both"), this.name = "DialogNamingError";
|
|
2066
2158
|
}
|
|
2067
|
-
},
|
|
2159
|
+
}, X = (e) => Number.parseFloat(e) || 0, Or = (e) => X(e.paddingTop) + X(e.paddingBottom) + X(e.borderTopWidth) + X(e.borderBottomWidth), kr = (e) => {
|
|
2160
|
+
let t = getComputedStyle(e);
|
|
2161
|
+
return X(t.marginTop) + X(t.marginBottom);
|
|
2162
|
+
}, Ar = (e) => {
|
|
2163
|
+
let t = getComputedStyle(e);
|
|
2164
|
+
if (t.display === "none" || t.position === "absolute") return 0;
|
|
2165
|
+
if (e.matches("table")) return Array.from(e.children).filter((e) => e.matches("caption, thead")).reduce((e, t) => e + t.getBoundingClientRect().height, 0) + Math.max(0, ...Array.from(e.querySelectorAll("tbody>tr")).map((e) => e.getBoundingClientRect().height));
|
|
2166
|
+
if (e.querySelector("table")) {
|
|
2167
|
+
let n = Array.from(e.children);
|
|
2168
|
+
return Or(t) + Math.max(0, n.length - 1) * X(t.rowGap) + n.reduce((e, t) => e + kr(t) + (t.matches("table") || t.querySelector("table") ? Ar(t) : t.getBoundingClientRect().height), 0);
|
|
2169
|
+
}
|
|
2170
|
+
let n = Math.max(X(t.lineHeight) || X(t.fontSize), ...Array.from(e.querySelectorAll("button, input, select, textarea, [role=\"button\"]")).map((e) => e.getBoundingClientRect().height)), r = X(t.getPropertyValue("--focus-ring-width")) + X(t.getPropertyValue("--focus-ring-offset"));
|
|
2171
|
+
return Or(t) + n + 2 * r;
|
|
2172
|
+
}, jr = (e) => {
|
|
2173
|
+
let [t, n] = m(!1);
|
|
2174
|
+
return d(() => {
|
|
2175
|
+
let t = e.current;
|
|
2176
|
+
if (!t) return;
|
|
2177
|
+
let r = () => {
|
|
2178
|
+
if (!t.open) return;
|
|
2179
|
+
let e = getComputedStyle(t), r = e.maxHeight === "none" ? X(e.height) : X(e.maxHeight), i = Array.from(t.children).reduce((e, t) => e + kr(t) + (t.getAttribute("data-dialog-member") === "content" ? Ar(t) : t.getBoundingClientRect().height), Or(e));
|
|
2180
|
+
n(r < i);
|
|
2181
|
+
}, i = typeof ResizeObserver > "u" ? void 0 : new ResizeObserver(r), a = () => {
|
|
2182
|
+
i?.disconnect(), i?.observe(t);
|
|
2183
|
+
for (let e of t.querySelectorAll("*")) i?.observe(e);
|
|
2184
|
+
r();
|
|
2185
|
+
};
|
|
2186
|
+
a();
|
|
2187
|
+
let o = new MutationObserver(a);
|
|
2188
|
+
return o.observe(t, {
|
|
2189
|
+
childList: !0,
|
|
2190
|
+
subtree: !0,
|
|
2191
|
+
characterData: !0,
|
|
2192
|
+
attributes: !0,
|
|
2193
|
+
attributeFilter: ["open"]
|
|
2194
|
+
}), window.addEventListener("resize", r), () => {
|
|
2195
|
+
i?.disconnect(), o.disconnect(), window.removeEventListener("resize", r);
|
|
2196
|
+
};
|
|
2197
|
+
}, [e]), d(() => {
|
|
2198
|
+
let t = e.current, n = t?.ownerDocument.activeElement;
|
|
2199
|
+
t?.open && n instanceof HTMLElement && t.contains(n) && n.scrollIntoView?.({
|
|
2200
|
+
block: "nearest",
|
|
2201
|
+
inline: "nearest"
|
|
2202
|
+
});
|
|
2203
|
+
}, [e, t]), t;
|
|
2204
|
+
}, Mr = /* @__PURE__ */ new WeakMap(), Nr = (e) => {
|
|
2205
|
+
let t = e.ownerDocument.documentElement, n = Mr.get(t);
|
|
2206
|
+
n === void 0 && (n = {
|
|
2207
|
+
overflow: t.style.getPropertyValue("overflow"),
|
|
2208
|
+
priority: t.style.getPropertyPriority("overflow"),
|
|
2209
|
+
dialogs: /* @__PURE__ */ new Set()
|
|
2210
|
+
}, Mr.set(t, n), t.style.setProperty("overflow", "hidden"));
|
|
2211
|
+
let r = n;
|
|
2212
|
+
return r.dialogs.add(e), () => {
|
|
2213
|
+
r.dialogs.delete(e), r.dialogs.size === 0 && (t.style.setProperty("overflow", r.overflow, r.priority), Mr.delete(t));
|
|
2214
|
+
};
|
|
2215
|
+
}, Pr = (e) => {
|
|
2216
|
+
d(() => {
|
|
2217
|
+
let t = e.current;
|
|
2218
|
+
if (!t) return;
|
|
2219
|
+
let n, r = () => {
|
|
2220
|
+
t.open && n === void 0 ? n = Nr(t) : !t.open && n !== void 0 && (n(), n = void 0);
|
|
2221
|
+
};
|
|
2222
|
+
r();
|
|
2223
|
+
let i = new MutationObserver(r);
|
|
2224
|
+
return i.observe(t, {
|
|
2225
|
+
attributes: !0,
|
|
2226
|
+
attributeFilter: ["open"]
|
|
2227
|
+
}), () => {
|
|
2228
|
+
i.disconnect(), n?.();
|
|
2229
|
+
};
|
|
2230
|
+
}, [e]);
|
|
2231
|
+
}, Fr = b([
|
|
2068
2232
|
"open:flex open:flex-col m-auto p-0 overflow-hidden",
|
|
2233
|
+
"[&[data-dialog-unusable]]:overflow-auto [&[data-dialog-unusable]]:[--_scroll-released:1]",
|
|
2234
|
+
"[&[data-dialog-unusable]]:scroll-p-[calc(var(--focus-ring-width)+var(--focus-ring-offset))]",
|
|
2235
|
+
"[&[data-dialog-unusable]>*]:shrink-0",
|
|
2236
|
+
"[&[data-dialog-unusable]>[data-dialog-member=content]]:flex-none",
|
|
2237
|
+
"[&[data-dialog-unusable]>[data-dialog-member=content]]:overflow-visible",
|
|
2238
|
+
"[&[data-dialog-unusable]>[data-dialog-member=content]>*]:h-auto",
|
|
2239
|
+
"[&[data-dialog-unusable]_div:has(>table)]:max-h-none",
|
|
2240
|
+
"[&[data-dialog-unusable]_div:has(>table)]:overflow-visible",
|
|
2241
|
+
"[&[data-dialog-unusable]_thead]:static",
|
|
2069
2242
|
"bg-surface text-foreground",
|
|
2070
2243
|
"rounded-[var(--radius-dialog)] shadow-[var(--elevation-floating)]",
|
|
2071
2244
|
"backdrop:bg-scrim backdrop:[backdrop-filter:blur(var(--scrim-blur))]"
|
|
@@ -2075,7 +2248,7 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
2075
2248
|
content: ["w-[32rem] max-w-[calc(100vw-2*var(--gutter))]", "max-h-[calc(100dvh-2*var(--space-region))]"].join(" ")
|
|
2076
2249
|
} },
|
|
2077
2250
|
defaultVariants: { extent: "screen" }
|
|
2078
|
-
}),
|
|
2251
|
+
}), Ir = b(["shrink-0 px-[var(--space-region)] pt-[var(--space-region)] pb-[var(--space-region)]", "[&:has(+[data-dialog-member=description])]:pb-0"].join(" ")), Lr = b(["shrink-0 px-[var(--space-region)] pt-[var(--space-region)] pb-[var(--space-region)]", "[[data-dialog-member=title]+&]:mt-[var(--space-stack)] [[data-dialog-member=title]+&]:pt-0"].join(" ")), Rr = b([
|
|
2079
2252
|
"grow shrink min-h-0 min-w-0",
|
|
2080
2253
|
"px-[var(--space-region)] py-[var(--space-region)]",
|
|
2081
2254
|
"[&:not(:first-child)]:border-t [&:not(:first-child)]:border-border"
|
|
@@ -2085,73 +2258,76 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
2085
2258
|
child: "flex flex-col"
|
|
2086
2259
|
} },
|
|
2087
2260
|
defaultVariants: { scrollOwner: "body" }
|
|
2088
|
-
}),
|
|
2261
|
+
}), zr = b([
|
|
2089
2262
|
"flex flex-row flex-wrap items-center justify-end gap-[var(--space-stack)] shrink-0",
|
|
2090
2263
|
"px-[var(--space-region)] pt-[var(--space-region)] pb-[var(--space-region)]",
|
|
2091
2264
|
"[[data-dialog-member=content]+&]:border-t [[data-dialog-member=content]+&]:border-border"
|
|
2092
|
-
].join(" ")),
|
|
2093
|
-
let t = c(
|
|
2094
|
-
if (t === void 0) throw new
|
|
2265
|
+
].join(" ")), Br = a(void 0), Z = (e) => {
|
|
2266
|
+
let t = c(Br);
|
|
2267
|
+
if (t === void 0) throw new Er(e);
|
|
2095
2268
|
return t;
|
|
2096
|
-
},
|
|
2269
|
+
}, Vr = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])", Hr = (e, { presented: t, opener: n }) => {
|
|
2097
2270
|
if (e === void 0 || e.open) return;
|
|
2098
2271
|
let r = document.activeElement;
|
|
2099
|
-
n.current = r instanceof HTMLElement && r !== document.body ? r : void 0, e.showModal(), t.current = !0, e.querySelector(
|
|
2100
|
-
},
|
|
2272
|
+
n.current = r instanceof HTMLElement && r !== document.body ? r : void 0, e.showModal(), t.current = !0, e.querySelector(Vr)?.focus();
|
|
2273
|
+
}, Q = (e, { presented: t }) => {
|
|
2101
2274
|
t.current = !1, e?.open && e.close();
|
|
2102
|
-
},
|
|
2275
|
+
}, Ur = {
|
|
2103
2276
|
Root: ({ children: e, onDismiss$: n, showDialog$: r, extent: i, ariaLabel: a, testId: o }) => {
|
|
2104
|
-
let c = u(), d = p(void 0), f =
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2277
|
+
let c = u(), d = p(void 0), f = jr(d);
|
|
2278
|
+
Pr(d);
|
|
2279
|
+
let h = p(!1), g = p(void 0), [_] = m(() => ({
|
|
2280
|
+
presented: h,
|
|
2281
|
+
opener: g
|
|
2282
|
+
})), [v, y] = m({
|
|
2108
2283
|
title: !1,
|
|
2109
2284
|
description: !1
|
|
2110
|
-
}),
|
|
2285
|
+
}), b = s((e) => (y((t) => ({
|
|
2111
2286
|
...t,
|
|
2112
2287
|
[e]: !0
|
|
2113
|
-
})), () =>
|
|
2288
|
+
})), () => y((t) => ({
|
|
2114
2289
|
...t,
|
|
2115
2290
|
[e]: !1
|
|
2116
|
-
}))), []),
|
|
2291
|
+
}))), []), x = {
|
|
2117
2292
|
titleId: `${c}title`,
|
|
2118
2293
|
descriptionId: `${c}description`,
|
|
2119
2294
|
isLabelled: a !== void 0,
|
|
2120
|
-
registerNamePart:
|
|
2121
|
-
},
|
|
2122
|
-
n.next(), r === void 0 ?
|
|
2295
|
+
registerNamePart: b
|
|
2296
|
+
}, S = () => {
|
|
2297
|
+
n.next(), r === void 0 ? Q(d.current, _) : r.next(!1);
|
|
2123
2298
|
};
|
|
2124
2299
|
return l(() => {
|
|
2125
|
-
if (r === void 0) return
|
|
2300
|
+
if (r === void 0) return Hr(d.current, _), () => Q(d.current, _);
|
|
2126
2301
|
let e = r.subscribe((e) => {
|
|
2127
|
-
e ?
|
|
2302
|
+
e ? Hr(d.current, _) : Q(d.current, _);
|
|
2128
2303
|
});
|
|
2129
2304
|
return () => {
|
|
2130
|
-
e.unsubscribe(),
|
|
2305
|
+
e.unsubscribe(), Q(d.current, _);
|
|
2131
2306
|
};
|
|
2132
|
-
}, [r,
|
|
2133
|
-
value:
|
|
2307
|
+
}, [r, _]), /* @__PURE__ */ t(Br.Provider, {
|
|
2308
|
+
value: x,
|
|
2134
2309
|
children: /* @__PURE__ */ t("dialog", {
|
|
2135
2310
|
ref: (e) => {
|
|
2136
2311
|
d.current = e ?? void 0, e?.setAttribute("headingreset", "");
|
|
2137
2312
|
},
|
|
2138
|
-
className:
|
|
2313
|
+
className: Fr({ extent: i }),
|
|
2314
|
+
"data-dialog-unusable": f || void 0,
|
|
2139
2315
|
"aria-label": a,
|
|
2140
|
-
"aria-labelledby": a === void 0 &&
|
|
2141
|
-
"aria-describedby":
|
|
2142
|
-
onCancel:
|
|
2316
|
+
"aria-labelledby": a === void 0 && v.title ? x.titleId : void 0,
|
|
2317
|
+
"aria-describedby": v.description ? x.descriptionId : void 0,
|
|
2318
|
+
onCancel: S,
|
|
2143
2319
|
onClick: (e) => {
|
|
2144
2320
|
let t = d.current;
|
|
2145
2321
|
if (t === void 0 || e.target !== t || !t.open) return;
|
|
2146
2322
|
let n = t.getBoundingClientRect();
|
|
2147
|
-
e.clientX >= n.left && e.clientX <= n.right && e.clientY >= n.top && e.clientY <= n.bottom ||
|
|
2323
|
+
e.clientX >= n.left && e.clientX <= n.right && e.clientY >= n.top && e.clientY <= n.bottom || S();
|
|
2148
2324
|
},
|
|
2149
2325
|
onClose: () => {
|
|
2150
2326
|
if (d.current?.open) return;
|
|
2151
|
-
let e =
|
|
2152
|
-
|
|
2153
|
-
let t =
|
|
2154
|
-
|
|
2327
|
+
let e = h.current;
|
|
2328
|
+
h.current = !1;
|
|
2329
|
+
let t = g.current;
|
|
2330
|
+
g.current = void 0, t?.isConnected && (t.matches(Vr) || t.hasAttribute("tabindex")) && t.focus(), e && r?.next(!1);
|
|
2155
2331
|
},
|
|
2156
2332
|
"data-testid": o,
|
|
2157
2333
|
children: e
|
|
@@ -2159,11 +2335,11 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
2159
2335
|
});
|
|
2160
2336
|
},
|
|
2161
2337
|
Title: ({ children: e, testId: n }) => {
|
|
2162
|
-
let { titleId: r, isLabelled: i, registerNamePart: a } =
|
|
2163
|
-
if (l(() => a("title"), [a]), i) throw new
|
|
2338
|
+
let { titleId: r, isLabelled: i, registerNamePart: a } = Z("Title");
|
|
2339
|
+
if (l(() => a("title"), [a]), i) throw new Dr();
|
|
2164
2340
|
return /* @__PURE__ */ t("div", {
|
|
2165
2341
|
"data-dialog-member": "title",
|
|
2166
|
-
className:
|
|
2342
|
+
className: Ir(),
|
|
2167
2343
|
"data-testid": n,
|
|
2168
2344
|
children: /* @__PURE__ */ t("h1", {
|
|
2169
2345
|
id: r,
|
|
@@ -2173,10 +2349,10 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
2173
2349
|
});
|
|
2174
2350
|
},
|
|
2175
2351
|
Description: ({ children: e, testId: n }) => {
|
|
2176
|
-
let { descriptionId: r, registerNamePart: i } =
|
|
2352
|
+
let { descriptionId: r, registerNamePart: i } = Z("Description");
|
|
2177
2353
|
return l(() => i("description"), [i]), /* @__PURE__ */ t("div", {
|
|
2178
2354
|
"data-dialog-member": "description",
|
|
2179
|
-
className:
|
|
2355
|
+
className: Lr(),
|
|
2180
2356
|
"data-testid": n,
|
|
2181
2357
|
children: /* @__PURE__ */ t("p", {
|
|
2182
2358
|
id: r,
|
|
@@ -2185,33 +2361,33 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
2185
2361
|
})
|
|
2186
2362
|
});
|
|
2187
2363
|
},
|
|
2188
|
-
Content: ({ children: e, scrollOwner: n, testId: r }) => (
|
|
2364
|
+
Content: ({ children: e, scrollOwner: n, testId: r }) => (Z("Content"), /* @__PURE__ */ t("div", {
|
|
2189
2365
|
"data-dialog-member": "content",
|
|
2190
|
-
className:
|
|
2366
|
+
className: Rr({ scrollOwner: n }),
|
|
2191
2367
|
"data-testid": r,
|
|
2192
2368
|
children: e
|
|
2193
2369
|
})),
|
|
2194
|
-
Actions: ({ children: e, testId: n }) => (
|
|
2370
|
+
Actions: ({ children: e, testId: n }) => (Z("Actions"), /* @__PURE__ */ t("div", {
|
|
2195
2371
|
"data-dialog-member": "actions",
|
|
2196
|
-
className:
|
|
2372
|
+
className: zr(),
|
|
2197
2373
|
"data-testid": n,
|
|
2198
2374
|
children: e
|
|
2199
2375
|
}))
|
|
2200
|
-
},
|
|
2376
|
+
}, Wr = b("font-secondary text-small text-muted py-[var(--space-region)] px-[var(--gutter)]", {
|
|
2201
2377
|
variants: { edge: {
|
|
2202
2378
|
none: "",
|
|
2203
2379
|
rule: "border-t border-solid border-rule"
|
|
2204
2380
|
} },
|
|
2205
2381
|
defaultVariants: { edge: "rule" }
|
|
2206
|
-
}),
|
|
2207
|
-
className:
|
|
2382
|
+
}), Gr = ({ edge: e, children: n, testId: r }) => /* @__PURE__ */ t("footer", {
|
|
2383
|
+
className: Wr({ edge: e }),
|
|
2208
2384
|
"data-testid": r,
|
|
2209
2385
|
children: n
|
|
2210
|
-
}),
|
|
2386
|
+
}), Kr = class extends Error {
|
|
2211
2387
|
constructor(e) {
|
|
2212
2388
|
super(`Form configuration is invalid: ${e}`), this.name = "FormConfigurationError";
|
|
2213
2389
|
}
|
|
2214
|
-
},
|
|
2390
|
+
}, qr = b("font-secondary text-small", {
|
|
2215
2391
|
variants: { state: {
|
|
2216
2392
|
idle: "text-muted",
|
|
2217
2393
|
sending: "text-muted",
|
|
@@ -2219,13 +2395,13 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
2219
2395
|
failed: "text-error"
|
|
2220
2396
|
} },
|
|
2221
2397
|
defaultVariants: { state: "idle" }
|
|
2222
|
-
}),
|
|
2398
|
+
}), Jr = {
|
|
2223
2399
|
sent: "status",
|
|
2224
2400
|
failed: "alert"
|
|
2225
|
-
},
|
|
2401
|
+
}, Yr = ({ action: e, method: r = "post", state: i = "idle", children: a, actions: o, note: s, testId: c }) => {
|
|
2226
2402
|
let l = s != null && typeof s != "boolean";
|
|
2227
|
-
if (i === "sent" && !l) throw new
|
|
2228
|
-
let u = i !== "sent", d =
|
|
2403
|
+
if (i === "sent" && !l) throw new Kr("Form in the `sent` state must be given a `note` - it is the outcome message.");
|
|
2404
|
+
let u = i !== "sent", d = Jr[i];
|
|
2229
2405
|
return /* @__PURE__ */ n("form", {
|
|
2230
2406
|
action: e,
|
|
2231
2407
|
method: r,
|
|
@@ -2243,12 +2419,12 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
2243
2419
|
}),
|
|
2244
2420
|
l && /* @__PURE__ */ t("p", {
|
|
2245
2421
|
role: d,
|
|
2246
|
-
className:
|
|
2422
|
+
className: qr({ state: i }),
|
|
2247
2423
|
children: s
|
|
2248
2424
|
})
|
|
2249
2425
|
]
|
|
2250
2426
|
});
|
|
2251
|
-
},
|
|
2427
|
+
}, Xr = b([
|
|
2252
2428
|
"flex items-baseline",
|
|
2253
2429
|
"font-secondary text-label leading-label tracking-label text-muted",
|
|
2254
2430
|
"py-[var(--space-region)] px-[var(--gutter)]",
|
|
@@ -2268,68 +2444,68 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
2268
2444
|
edge: "rule",
|
|
2269
2445
|
mode: "navigation"
|
|
2270
2446
|
}
|
|
2271
|
-
}),
|
|
2447
|
+
}), Zr = [
|
|
2272
2448
|
"inline-flex shrink-0 items-center",
|
|
2273
2449
|
"min-h-[calc(var(--text-label)*var(--leading-label))]",
|
|
2274
2450
|
"min-w-[var(--standing-min-width)]"
|
|
2275
|
-
].join(" "),
|
|
2451
|
+
].join(" "), Qr = "flex flex-wrap items-baseline gap-[var(--space-region)]", $r = "min-w-0 wrap-anywhere", ei = "ms-auto", ti = (e) => e != null && typeof e != "boolean" && e !== "", ni = ({ edge: r, testId: i, standing: a, navName: o, children: s, status: c, action: l }) => {
|
|
2276
2452
|
let u = c !== void 0 || l !== void 0;
|
|
2277
2453
|
return /* @__PURE__ */ t("header", {
|
|
2278
|
-
className:
|
|
2454
|
+
className: Xr({
|
|
2279
2455
|
edge: r,
|
|
2280
2456
|
mode: u ? "statusAction" : "navigation"
|
|
2281
2457
|
}),
|
|
2282
2458
|
"data-testid": i,
|
|
2283
|
-
children: u ? /* @__PURE__ */ n(e, { children: [
|
|
2284
|
-
className:
|
|
2459
|
+
children: u ? /* @__PURE__ */ n(e, { children: [ti(c) && /* @__PURE__ */ t("div", {
|
|
2460
|
+
className: $r,
|
|
2285
2461
|
children: c
|
|
2286
|
-
}),
|
|
2287
|
-
className:
|
|
2462
|
+
}), ti(l) && /* @__PURE__ */ t("div", {
|
|
2463
|
+
className: ei,
|
|
2288
2464
|
children: l
|
|
2289
2465
|
})] }) : /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("div", {
|
|
2290
|
-
className:
|
|
2466
|
+
className: Zr,
|
|
2291
2467
|
children: a
|
|
2292
2468
|
}), /* @__PURE__ */ t("nav", {
|
|
2293
2469
|
"aria-label": o,
|
|
2294
|
-
className:
|
|
2470
|
+
className: Qr,
|
|
2295
2471
|
children: s
|
|
2296
2472
|
})] })
|
|
2297
2473
|
});
|
|
2298
|
-
},
|
|
2474
|
+
}, ri = b("flex flex-col min-h-[var(--fold-height)] gap-[var(--space-stack)]", {
|
|
2299
2475
|
variants: { place: {
|
|
2300
2476
|
start: "justify-start",
|
|
2301
2477
|
center: "justify-center",
|
|
2302
2478
|
between: "justify-between"
|
|
2303
2479
|
} },
|
|
2304
2480
|
defaultVariants: { place: "center" }
|
|
2305
|
-
}),
|
|
2306
|
-
className:
|
|
2481
|
+
}), ii = ({ place: e, children: n, testId: r }) => /* @__PURE__ */ t("div", {
|
|
2482
|
+
className: ri({ place: e }),
|
|
2307
2483
|
"data-testid": r,
|
|
2308
2484
|
children: n
|
|
2309
|
-
}),
|
|
2310
|
-
className:
|
|
2485
|
+
}), ai = b("flex flex-col gap-[var(--space-stack)] py-[var(--space-band)] px-[var(--gutter)]"), oi = b("font-heading text-title leading-title tracking-optical text-foreground"), si = b("font-body text-lede leading-lede text-foreground max-w-[var(--measure-wide)]"), ci = b("font-body text-small text-muted max-w-[var(--measure)]"), li = ({ title: e, lede: r, intro: i, testId: a }) => /* @__PURE__ */ n("header", {
|
|
2486
|
+
className: ai(),
|
|
2311
2487
|
"data-testid": a,
|
|
2312
2488
|
children: [
|
|
2313
2489
|
/* @__PURE__ */ t("h1", {
|
|
2314
|
-
className:
|
|
2490
|
+
className: oi(),
|
|
2315
2491
|
children: e
|
|
2316
2492
|
}),
|
|
2317
2493
|
r !== void 0 && /* @__PURE__ */ t("p", {
|
|
2318
|
-
className:
|
|
2494
|
+
className: si(),
|
|
2319
2495
|
children: r
|
|
2320
2496
|
}),
|
|
2321
2497
|
i !== void 0 && /* @__PURE__ */ t("p", {
|
|
2322
|
-
className:
|
|
2498
|
+
className: ci(),
|
|
2323
2499
|
children: i
|
|
2324
2500
|
})
|
|
2325
2501
|
]
|
|
2326
|
-
}),
|
|
2502
|
+
}), ui = a(null), di = b("box-border flex h-full min-h-0 min-w-0 flex-col gap-[var(--space-stack)] border border-solid border-border bg-surface text-foreground p-[var(--space-box-inset)] [overflow-wrap:anywhere]"), fi = b("min-w-0 shrink-0"), pi = b("min-h-0 min-w-0 flex-[0_1_auto]", {
|
|
2327
2503
|
variants: { scrollOwner: {
|
|
2328
2504
|
body: "[&>div]:flow-root [&>div]:w-fit [&>div]:min-w-full [&>div]:p-[calc(var(--focus-ring-width)+var(--focus-ring-offset))] overflow-auto overscroll-contain outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]",
|
|
2329
|
-
child: ""
|
|
2505
|
+
child: "flex flex-col"
|
|
2330
2506
|
} },
|
|
2331
2507
|
defaultVariants: { scrollOwner: "body" }
|
|
2332
|
-
}),
|
|
2508
|
+
}), mi = (e, t, n) => {
|
|
2333
2509
|
let [r, i] = m(!0);
|
|
2334
2510
|
return d(() => {
|
|
2335
2511
|
let r = e.current;
|
|
@@ -2351,24 +2527,66 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
2351
2527
|
t,
|
|
2352
2528
|
n
|
|
2353
2529
|
]), r;
|
|
2354
|
-
},
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2530
|
+
}, $ = (e) => Number.parseFloat(e) || 0, hi = (e) => {
|
|
2531
|
+
let t = getComputedStyle(e);
|
|
2532
|
+
return $(t.paddingTop) + $(t.paddingBottom) + $(t.borderTopWidth) + $(t.borderBottomWidth);
|
|
2533
|
+
}, gi = (e) => {
|
|
2534
|
+
let t = 0;
|
|
2535
|
+
for (let n of [e, ...e.querySelectorAll("*")]) {
|
|
2536
|
+
let r = getComputedStyle(n);
|
|
2537
|
+
if (r.display === "none") continue;
|
|
2538
|
+
let i = $(r.lineHeight) || $(r.fontSize), a = $(getComputedStyle(e.firstElementChild ?? e).paddingTop), o = n.matches("tr, button, input, select, textarea, [role=\"button\"]") ? n.getBoundingClientRect().height : i;
|
|
2539
|
+
t = Math.max(t, o + 2 * a);
|
|
2540
|
+
}
|
|
2541
|
+
let n = e.querySelector("table"), r = n ? Array.from(n.children).filter((e) => e.matches("caption, thead")).reduce((e, t) => e + t.getBoundingClientRect().height, 0) : 0;
|
|
2542
|
+
return t + r + hi(e);
|
|
2543
|
+
}, _i = (e) => {
|
|
2544
|
+
let t = c(ui), [n, r] = m(!1);
|
|
2545
|
+
return d(() => {
|
|
2546
|
+
let n = e.current, i = t;
|
|
2547
|
+
if (!n || !i) return;
|
|
2548
|
+
let a = () => {
|
|
2549
|
+
let e = Array.from(n.children), t = e.find((e) => e.hasAttribute("data-pane-body")), a = e.filter((e) => e !== t).reduce((e, t) => e + t.getBoundingClientRect().height, 0), o = Math.max(0, e.length - 1) * $(getComputedStyle(n).rowGap), s = i.getBoundingClientRect(), c = Math.max(0, n.getBoundingClientRect().top - s.top);
|
|
2550
|
+
r(s.height - c < a + o + hi(n) + (t instanceof HTMLElement ? gi(t) : 0));
|
|
2551
|
+
}, o = typeof ResizeObserver > "u" ? void 0 : new ResizeObserver(a), s = () => {
|
|
2552
|
+
o?.disconnect(), o?.observe(i), o?.observe(n);
|
|
2553
|
+
for (let e of n.querySelectorAll("*")) o?.observe(e);
|
|
2554
|
+
a();
|
|
2555
|
+
};
|
|
2556
|
+
s();
|
|
2557
|
+
let c = new MutationObserver(s);
|
|
2558
|
+
return c.observe(n, {
|
|
2559
|
+
childList: !0,
|
|
2560
|
+
subtree: !0,
|
|
2561
|
+
characterData: !0
|
|
2562
|
+
}), window.addEventListener("resize", a), () => {
|
|
2563
|
+
o?.disconnect(), c.disconnect(), window.removeEventListener("resize", a);
|
|
2564
|
+
};
|
|
2565
|
+
}, [t, e]), n;
|
|
2566
|
+
}, vi = {
|
|
2567
|
+
Root: ({ children: e, name: n, testId: r }) => {
|
|
2568
|
+
let i = p(null), a = _i(i);
|
|
2569
|
+
return /* @__PURE__ */ t("div", {
|
|
2570
|
+
ref: i,
|
|
2571
|
+
"data-screen-unusable": a || void 0,
|
|
2572
|
+
className: di(),
|
|
2573
|
+
role: n ? "group" : void 0,
|
|
2574
|
+
"aria-label": n || void 0,
|
|
2575
|
+
"data-testid": r,
|
|
2576
|
+
children: e
|
|
2577
|
+
});
|
|
2578
|
+
},
|
|
2362
2579
|
Head: ({ children: e, testId: n }) => /* @__PURE__ */ t("div", {
|
|
2363
|
-
className:
|
|
2580
|
+
className: fi(),
|
|
2364
2581
|
"data-testid": n,
|
|
2365
2582
|
children: e
|
|
2366
2583
|
}),
|
|
2367
2584
|
Body: ({ children: e, ariaLabel: n, scrollOwner: r, testId: i }) => {
|
|
2368
|
-
let a = p(null), o = p(null), s = r !== "child", c =
|
|
2585
|
+
let a = p(null), o = p(null), s = r !== "child", c = mi(a, o, s) && s;
|
|
2369
2586
|
return /* @__PURE__ */ t("div", {
|
|
2587
|
+
"data-pane-body": "",
|
|
2370
2588
|
ref: a,
|
|
2371
|
-
className:
|
|
2589
|
+
className: pi({ scrollOwner: r ?? "body" }),
|
|
2372
2590
|
role: c ? "group" : void 0,
|
|
2373
2591
|
"aria-label": c ? n : void 0,
|
|
2374
2592
|
tabIndex: c ? 0 : void 0,
|
|
@@ -2380,33 +2598,50 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
2380
2598
|
});
|
|
2381
2599
|
},
|
|
2382
2600
|
Foot: ({ children: e, testId: n }) => /* @__PURE__ */ t("div", {
|
|
2383
|
-
className:
|
|
2601
|
+
className: fi(),
|
|
2384
2602
|
"data-testid": n,
|
|
2385
2603
|
children: e
|
|
2386
2604
|
})
|
|
2387
|
-
},
|
|
2605
|
+
}, yi = b("box-border grid h-full min-h-0 min-w-0 grid-rows-[minmax(0,1fr)] px-[var(--gutter)] py-[var(--space-region)] [&:has(>header)]:grid-rows-[auto_minmax(0,1fr)] [&:has(>header)]:gap-[var(--space-region)]"), bi = b("min-w-0"), xi = b("h-full min-h-0 min-w-0 [&>div]:h-full [&:has([data-screen-unusable])>div]:h-auto"), Si = ({ heading: e, children: r, testId: i }) => {
|
|
2606
|
+
let [a, o] = m(null);
|
|
2607
|
+
return /* @__PURE__ */ n("main", {
|
|
2608
|
+
className: yi(),
|
|
2609
|
+
"data-testid": i,
|
|
2610
|
+
children: [e != null && e !== !1 && /* @__PURE__ */ t("header", {
|
|
2611
|
+
className: bi(),
|
|
2612
|
+
children: e
|
|
2613
|
+
}), /* @__PURE__ */ t("div", {
|
|
2614
|
+
ref: o,
|
|
2615
|
+
className: xi(),
|
|
2616
|
+
children: /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(ui.Provider, {
|
|
2617
|
+
value: a,
|
|
2618
|
+
children: r
|
|
2619
|
+
}) })
|
|
2620
|
+
})]
|
|
2621
|
+
});
|
|
2622
|
+
}, Ci = b("max-h-full max-w-full min-h-0 min-w-0 outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]", {
|
|
2388
2623
|
variants: { axis: {
|
|
2389
2624
|
both: "overflow-auto",
|
|
2390
2625
|
horizontal: "overflow-x-auto overflow-y-hidden",
|
|
2391
2626
|
vertical: "overflow-y-auto overflow-x-hidden"
|
|
2392
2627
|
} },
|
|
2393
2628
|
defaultVariants: { axis: "both" }
|
|
2394
|
-
}),
|
|
2629
|
+
}), wi = b("p-[calc(var(--focus-ring-width)+var(--focus-ring-offset))]", {
|
|
2395
2630
|
variants: { axis: {
|
|
2396
2631
|
both: "w-fit min-w-full",
|
|
2397
2632
|
horizontal: "w-fit min-w-full",
|
|
2398
2633
|
vertical: "w-full"
|
|
2399
2634
|
} },
|
|
2400
2635
|
defaultVariants: { axis: "both" }
|
|
2401
|
-
}),
|
|
2636
|
+
}), Ti = (e, t) => {
|
|
2402
2637
|
let n = e.scrollWidth > e.clientWidth, r = e.scrollHeight > e.clientHeight;
|
|
2403
2638
|
return t !== "vertical" && n || t !== "horizontal" && r;
|
|
2404
|
-
},
|
|
2639
|
+
}, Ei = (e, t, n) => {
|
|
2405
2640
|
let [r, i] = m(!0);
|
|
2406
2641
|
return d(() => {
|
|
2407
2642
|
let r = e.current;
|
|
2408
2643
|
if (r === null) return;
|
|
2409
|
-
let a = () => i(
|
|
2644
|
+
let a = () => i(Ti(r, n) || r === document.activeElement);
|
|
2410
2645
|
a();
|
|
2411
2646
|
let o = typeof ResizeObserver > "u" ? void 0 : new ResizeObserver(a);
|
|
2412
2647
|
return o?.observe(r), t.current !== null && o?.observe(t.current), window.addEventListener("resize", a), r.addEventListener("blur", a), () => {
|
|
@@ -2417,22 +2652,22 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
2417
2652
|
t,
|
|
2418
2653
|
n
|
|
2419
2654
|
]), r;
|
|
2420
|
-
},
|
|
2421
|
-
let a = p(null), o = p(null), s =
|
|
2655
|
+
}, Di = ({ axis: e, ariaLabel: n, children: r, testId: i }) => {
|
|
2656
|
+
let a = p(null), o = p(null), s = Ei(a, o, e ?? "both");
|
|
2422
2657
|
return /* @__PURE__ */ t("div", {
|
|
2423
2658
|
ref: a,
|
|
2424
|
-
className:
|
|
2659
|
+
className: Ci({ axis: e }),
|
|
2425
2660
|
"data-testid": i,
|
|
2426
2661
|
role: s ? "group" : void 0,
|
|
2427
2662
|
"aria-label": s ? n : void 0,
|
|
2428
2663
|
tabIndex: s ? 0 : void 0,
|
|
2429
2664
|
children: /* @__PURE__ */ t("div", {
|
|
2430
2665
|
ref: o,
|
|
2431
|
-
className:
|
|
2666
|
+
className: wi({ axis: e }),
|
|
2432
2667
|
children: r
|
|
2433
2668
|
})
|
|
2434
2669
|
});
|
|
2435
|
-
},
|
|
2670
|
+
}, Oi = b([
|
|
2436
2671
|
"relative",
|
|
2437
2672
|
"py-[var(--space-band)]",
|
|
2438
2673
|
"[[data-section]+&]:border-t [[data-section]+&]:border-solid [[data-section]+&]:border-rule"
|
|
@@ -2442,19 +2677,19 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
2442
2677
|
full: ""
|
|
2443
2678
|
} },
|
|
2444
2679
|
defaultVariants: { bleed: "inset" }
|
|
2445
|
-
}),
|
|
2680
|
+
}), ki = ({ bleed: e, name: n, children: r, testId: i }) => /* @__PURE__ */ t("section", {
|
|
2446
2681
|
"data-section": "",
|
|
2447
|
-
className:
|
|
2682
|
+
className: Oi({ bleed: e }),
|
|
2448
2683
|
"aria-label": n,
|
|
2449
2684
|
"data-testid": i,
|
|
2450
2685
|
children: r
|
|
2451
|
-
}),
|
|
2686
|
+
}), Ai = b("h-dvh min-w-0 overflow-clip grid grid-rows-[auto_minmax(0,1fr)]"), ji = b("min-h-0 min-w-0 overflow-auto overscroll-contain p-[calc(var(--focus-ring-width)+var(--focus-ring-offset))] scroll-p-[calc(var(--focus-ring-width)+var(--focus-ring-offset))] outline-focus-ring focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)] focus-visible:outline-offset-[calc(-1*var(--focus-ring-width))]", {
|
|
2452
2687
|
variants: { mode: {
|
|
2453
2688
|
console: "[&>div]:h-full",
|
|
2454
2689
|
page: "[&>div]:min-h-full"
|
|
2455
2690
|
} },
|
|
2456
2691
|
defaultVariants: { mode: "console" }
|
|
2457
|
-
}),
|
|
2692
|
+
}), Mi = (e) => {
|
|
2458
2693
|
let [t, n] = m(!0);
|
|
2459
2694
|
return d(() => {
|
|
2460
2695
|
let t = e.current;
|
|
@@ -2476,21 +2711,21 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
2476
2711
|
i?.disconnect(), o.disconnect(), window.removeEventListener("resize", r), t.removeEventListener("blur", r);
|
|
2477
2712
|
};
|
|
2478
2713
|
}, [e]), t;
|
|
2479
|
-
},
|
|
2480
|
-
let s = p(null), c =
|
|
2714
|
+
}, Ni = ({ bar: e, children: r, ariaLabel: i, mode: a, testId: o }) => {
|
|
2715
|
+
let s = p(null), c = Mi(s);
|
|
2481
2716
|
return /* @__PURE__ */ n("div", {
|
|
2482
|
-
className:
|
|
2717
|
+
className: Ai(),
|
|
2483
2718
|
"data-testid": o,
|
|
2484
2719
|
children: [/* @__PURE__ */ t("div", { children: e }), /* @__PURE__ */ t("div", {
|
|
2485
2720
|
ref: s,
|
|
2486
|
-
className:
|
|
2721
|
+
className: ji({ mode: a }),
|
|
2487
2722
|
role: c ? "group" : void 0,
|
|
2488
2723
|
"aria-label": c ? i : void 0,
|
|
2489
2724
|
tabIndex: c ? 0 : void 0,
|
|
2490
2725
|
children: /* @__PURE__ */ t("div", { children: r })
|
|
2491
2726
|
})]
|
|
2492
2727
|
});
|
|
2493
|
-
},
|
|
2728
|
+
}, Pi = b([
|
|
2494
2729
|
"grid gap-[var(--space-region)] lg:grid-cols-[12rem_minmax(0,1fr)]",
|
|
2495
2730
|
"[&>div:first-child]:border-solid [&>div:first-child]:border-border [&>div:first-child]:border-b [&>div:first-child]:pb-[var(--space-stack)]",
|
|
2496
2731
|
"lg:[&>div:first-child]:border-b-0 lg:[&>div:first-child]:border-r lg:[&>div:first-child]:pb-0 lg:[&>div:first-child]:pr-[var(--space-stack)]",
|
|
@@ -2503,7 +2738,7 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
2503
2738
|
true: "min-h-full lg:h-full lg:min-h-0 lg:grid-rows-[minmax(0,1fr)] lg:[&>div]:min-h-0 lg:[&>div]:h-full lg:[&>div:first-child>nav]:max-h-full"
|
|
2504
2739
|
} },
|
|
2505
2740
|
defaultVariants: { fill: !1 }
|
|
2506
|
-
}),
|
|
2741
|
+
}), Fi = (e) => {
|
|
2507
2742
|
if (!e) return;
|
|
2508
2743
|
let t = [];
|
|
2509
2744
|
for (let n = e.parentElement; n && n !== e.ownerDocument.documentElement; n = n.parentElement) t.push(n);
|
|
@@ -2520,7 +2755,7 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
2520
2755
|
return window.addEventListener("resize", n), () => {
|
|
2521
2756
|
r?.disconnect(), window.removeEventListener("resize", n), e.style.removeProperty("--sidebar-scrollport-height");
|
|
2522
2757
|
};
|
|
2523
|
-
},
|
|
2758
|
+
}, Ii = b([
|
|
2524
2759
|
"w-full text-left font-secondary text-label tracking-label wrap-anywhere",
|
|
2525
2760
|
"underline-offset-[var(--underline-offset)]",
|
|
2526
2761
|
"outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]"
|
|
@@ -2531,44 +2766,44 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
2531
2766
|
inert: "text-muted cursor-not-allowed"
|
|
2532
2767
|
} },
|
|
2533
2768
|
defaultVariants: { state: "usable" }
|
|
2534
|
-
}),
|
|
2535
|
-
let a = c(
|
|
2769
|
+
}), Li = a(void 0), Ri = ({ entryKey: e, children: n, inert: r, testId: i }) => {
|
|
2770
|
+
let a = c(Li), o = a !== void 0 && a.active === e;
|
|
2536
2771
|
return /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t("button", {
|
|
2537
2772
|
type: "button",
|
|
2538
|
-
className:
|
|
2773
|
+
className: Ii({ state: r ? "inert" : o ? "active" : "usable" }),
|
|
2539
2774
|
disabled: r,
|
|
2540
2775
|
"aria-current": o ? "true" : void 0,
|
|
2541
2776
|
"data-testid": i,
|
|
2542
2777
|
onClick: () => {
|
|
2543
|
-
|
|
2778
|
+
a?.onSelect$.next(e);
|
|
2544
2779
|
},
|
|
2545
2780
|
children: n
|
|
2546
2781
|
}) });
|
|
2547
|
-
},
|
|
2782
|
+
}, zi = ({ children: e, testId: n }) => /* @__PURE__ */ t("div", {
|
|
2548
2783
|
"data-testid": n,
|
|
2549
2784
|
children: e
|
|
2550
|
-
}),
|
|
2785
|
+
}), Bi = {
|
|
2551
2786
|
Root: ({ active: e, label: i, onSelect$: a, children: s, testId: c, fill: l }) => {
|
|
2552
2787
|
let u = r.toArray(s).filter(o);
|
|
2553
2788
|
return /* @__PURE__ */ n("div", {
|
|
2554
|
-
className:
|
|
2789
|
+
className: Pi({ fill: l }),
|
|
2555
2790
|
"data-testid": c,
|
|
2556
2791
|
children: [/* @__PURE__ */ t("div", { children: /* @__PURE__ */ t("nav", {
|
|
2557
|
-
ref: l ? void 0 :
|
|
2792
|
+
ref: l ? void 0 : Fi,
|
|
2558
2793
|
"aria-label": i,
|
|
2559
|
-
children: /* @__PURE__ */ t(
|
|
2794
|
+
children: /* @__PURE__ */ t(Li, {
|
|
2560
2795
|
value: {
|
|
2561
2796
|
active: e,
|
|
2562
2797
|
onSelect$: a
|
|
2563
2798
|
},
|
|
2564
|
-
children: /* @__PURE__ */ t("ul", { children: u.filter((e) => e.type ===
|
|
2799
|
+
children: /* @__PURE__ */ t("ul", { children: u.filter((e) => e.type === Ri) })
|
|
2565
2800
|
})
|
|
2566
|
-
}) }), u.filter((e) => e.type ===
|
|
2801
|
+
}) }), u.filter((e) => e.type === zi)]
|
|
2567
2802
|
});
|
|
2568
2803
|
},
|
|
2569
|
-
Item:
|
|
2570
|
-
Content:
|
|
2571
|
-
},
|
|
2804
|
+
Item: Ri,
|
|
2805
|
+
Content: zi
|
|
2806
|
+
}, Vi = {
|
|
2572
2807
|
surface: "#ffffff",
|
|
2573
2808
|
selectedSurface: "#f8fafc",
|
|
2574
2809
|
selectedError: "#cd2d7d",
|
|
@@ -2597,7 +2832,7 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
2597
2832
|
errorHover: "#be185d",
|
|
2598
2833
|
errorForeground: "#ffffff",
|
|
2599
2834
|
info: "#0e7490"
|
|
2600
|
-
},
|
|
2835
|
+
}, Hi = {
|
|
2601
2836
|
surface: "#0f172a",
|
|
2602
2837
|
selectedSurface: "#151e30",
|
|
2603
2838
|
selectedError: "#f48fb1",
|
|
@@ -2628,4 +2863,4 @@ var _ = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, v = g, y = (e
|
|
|
2628
2863
|
info: "#22d3ee"
|
|
2629
2864
|
};
|
|
2630
2865
|
//#endregion
|
|
2631
|
-
export {
|
|
2866
|
+
export { Me as Box, Pe as Brandmark, on as Button, Ie as Callout, ze as Checklist, mn as Choices, sn as ChoicesCompositionError, S as Cluster, He as Collection, ue as ColumnLayout, C as ColumnLayoutCompositionError, w as ColumnLayoutConfigurationError, Tr as Cover, $e as DefinitionList, Ue as DefinitionListConfigurationError, Ur as Dialog, Er as DialogCompositionError, Dr as DialogNamingError, Ft as Eyebrow, Oe as FieldRow, pe as FieldRowCompositionError, H as FieldRowConfigurationError, tt as Figure, Gr as Footer, Yr as Form, Kr as FormConfigurationError, Lt as H1, zt as H2, Vt as H3, Ut as H4, Gt as H5, qt as H6, ni as Header, ii as Hero, ot as Icon, gn as Input, vn as Link, ut as Meter, W as MeterConfigurationError, Rn as MultiSelect, bn as MultiSelectCompositionError, Yt as Note, Bn as NumberInput, Zt as P, li as PageHead, vi as Pane, rn as Prose, ht as Rail, _t as Rule, Si as Screen, Di as ScrollContainer, ki as Section, Hn as Select, Ni as Shell, Bi as Sidebar, Gn as Slider, J as SliderConfigurationError, Ae as Stack, ar as Stepper, Kn as StepperCompositionError, sr as Switch, Nt as Table, vt as TableConfigurationError, br as Tabs, cr as TabsCompositionError, Sr as TextArea, Hi as dark, Vi as light };
|