@juwel-development/design-system 3.5.0 → 3.6.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/README.md +8 -0
- package/dist/design-system.js +317 -180
- package/dist/index.css +1 -1
- package/dist/types/Layout/Dialog/Dialog.d.ts +104 -0
- package/dist/types/Layout/Dialog/DialogCompositionError.d.ts +3 -0
- package/dist/types/Layout/Dialog/DialogNamingError.d.ts +3 -0
- package/dist/types/Theme/Palette.d.ts +10 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/Layout/Dialog/Dialog.tsx +478 -0
- package/src/Layout/Dialog/DialogCompositionError.ts +6 -0
- package/src/Layout/Dialog/DialogNamingError.ts +8 -0
- package/src/Theme/Palette.ts +15 -0
- package/src/Theme/renderTokens.ts +31 -3
- package/src/index.ts +1 -0
- package/src/tokens.css +20 -0
- package/src/tokens.dark.css +19 -0
- package/src/tokens.light.css +19 -0
package/dist/design-system.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
-
import { Children as n, createContext as r, isValidElement as i,
|
|
2
|
+
import { Children as n, createContext as r, isValidElement as i, useCallback as a, useContext as o, useEffect as s, useId as c, useRef as l, useState as u } from "react";
|
|
3
3
|
import './index.css';//#region node_modules/clsx/dist/clsx.mjs
|
|
4
|
-
function
|
|
4
|
+
function d(e) {
|
|
5
5
|
var t, n, r = "";
|
|
6
6
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
7
7
|
else if (typeof e == "object") {
|
|
8
8
|
if (Array.isArray(e)) {
|
|
9
9
|
var i = e.length;
|
|
10
|
-
for (t = 0; t < i; t++) e[t] && (n =
|
|
10
|
+
for (t = 0; t < i; t++) e[t] && (n = d(e[t])) && (r && (r += " "), r += n);
|
|
11
11
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
12
12
|
}
|
|
13
13
|
return r;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t =
|
|
15
|
+
function f() {
|
|
16
|
+
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = d(e)) && (r && (r += " "), r += t);
|
|
17
17
|
return r;
|
|
18
18
|
}
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region node_modules/class-variance-authority/dist/index.mjs
|
|
21
|
-
var
|
|
22
|
-
if (t?.variants == null) return
|
|
21
|
+
var p = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, m = f, h = (e, t) => (n) => {
|
|
22
|
+
if (t?.variants == null) return m(e, n?.class, n?.className);
|
|
23
23
|
let { variants: r, defaultVariants: i } = t, a = Object.keys(r).map((e) => {
|
|
24
24
|
let t = n?.[e], a = i?.[e];
|
|
25
25
|
if (t === null) return null;
|
|
26
|
-
let o =
|
|
26
|
+
let o = p(t) || p(a);
|
|
27
27
|
return r[e][o];
|
|
28
28
|
}), o = n && Object.entries(n).reduce((e, t) => {
|
|
29
29
|
let [n, r] = t;
|
|
30
30
|
return r === void 0 || (e[n] = r), e;
|
|
31
31
|
}, {});
|
|
32
|
-
return
|
|
32
|
+
return m(e, a, t?.compoundVariants?.reduce((e, t) => {
|
|
33
33
|
let { class: n, className: r, ...a } = t;
|
|
34
34
|
return Object.entries(a).every((e) => {
|
|
35
35
|
let [t, n] = e;
|
|
@@ -46,7 +46,7 @@ var d = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, f = u, p = (e
|
|
|
46
46
|
r
|
|
47
47
|
] : e;
|
|
48
48
|
}, []), n?.class, n?.className);
|
|
49
|
-
},
|
|
49
|
+
}, g = h("flex flex-wrap items-baseline gap-y-[var(--space-stack)]", {
|
|
50
50
|
variants: {
|
|
51
51
|
gap: {
|
|
52
52
|
stack: "gap-x-[var(--space-stack)]",
|
|
@@ -61,14 +61,14 @@ var d = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, f = u, p = (e
|
|
|
61
61
|
gap: "region",
|
|
62
62
|
justify: "start"
|
|
63
63
|
}
|
|
64
|
-
}),
|
|
65
|
-
className:
|
|
64
|
+
}), _ = ({ gap: t, justify: n, children: r, testId: i }) => /* @__PURE__ */ e("div", {
|
|
65
|
+
className: g({
|
|
66
66
|
gap: t,
|
|
67
67
|
justify: n
|
|
68
68
|
}),
|
|
69
69
|
"data-testid": i,
|
|
70
70
|
children: r
|
|
71
|
-
}),
|
|
71
|
+
}), v = h("flex", {
|
|
72
72
|
variants: {
|
|
73
73
|
gap: {
|
|
74
74
|
stack: "gap-[var(--space-stack)]",
|
|
@@ -93,8 +93,8 @@ var d = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, f = u, p = (e
|
|
|
93
93
|
measure: !1,
|
|
94
94
|
direction: "column"
|
|
95
95
|
}
|
|
96
|
-
}),
|
|
97
|
-
className:
|
|
96
|
+
}), y = ({ gap: t, measure: n, direction: r, align: i, children: a, testId: o }) => /* @__PURE__ */ e("div", {
|
|
97
|
+
className: v({
|
|
98
98
|
gap: t,
|
|
99
99
|
measure: n,
|
|
100
100
|
direction: r,
|
|
@@ -102,73 +102,73 @@ var d = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, f = u, p = (e
|
|
|
102
102
|
}),
|
|
103
103
|
"data-testid": o,
|
|
104
104
|
children: a
|
|
105
|
-
}),
|
|
105
|
+
}), b = h("inline-flex", { variants: { cut: {
|
|
106
106
|
full: "",
|
|
107
107
|
compact: ""
|
|
108
|
-
} } }),
|
|
108
|
+
} } }), x = ({ name: t, cut: n, children: r, testId: i }) => t === "" ? /* @__PURE__ */ e("span", {
|
|
109
109
|
"aria-hidden": "true",
|
|
110
110
|
"data-cut": n,
|
|
111
|
-
className:
|
|
111
|
+
className: b({ cut: n }),
|
|
112
112
|
"data-testid": i,
|
|
113
113
|
children: r
|
|
114
114
|
}) : /* @__PURE__ */ e("span", {
|
|
115
115
|
role: "img",
|
|
116
116
|
"aria-label": t,
|
|
117
117
|
"data-cut": n,
|
|
118
|
-
className:
|
|
118
|
+
className: b({ cut: n }),
|
|
119
119
|
"data-testid": i,
|
|
120
120
|
children: r
|
|
121
|
-
}),
|
|
121
|
+
}), S = h("m-0 list-none p-0"), C = h([
|
|
122
122
|
"flex items-start gap-3 font-primary text-body leading-body text-foreground",
|
|
123
123
|
"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-['']",
|
|
124
124
|
"[&: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)]"
|
|
125
|
-
].join(" ")),
|
|
125
|
+
].join(" ")), w = {
|
|
126
126
|
Root: ({ children: t, testId: n }) => /* @__PURE__ */ e("ul", {
|
|
127
|
-
className:
|
|
127
|
+
className: S(),
|
|
128
128
|
role: "list",
|
|
129
129
|
"data-testid": n,
|
|
130
130
|
children: t
|
|
131
131
|
}),
|
|
132
132
|
Item: ({ children: t }) => /* @__PURE__ */ e("li", {
|
|
133
|
-
className:
|
|
133
|
+
className: C(),
|
|
134
134
|
children: t
|
|
135
135
|
})
|
|
136
|
-
},
|
|
136
|
+
}, T = h("m-0 list-none p-0"), ee = h("py-[var(--space-collection-item)] [&+li]:border-t [&+li]:border-solid [&+li]:border-border"), te = {
|
|
137
137
|
Root: ({ children: t, testId: n }) => /* @__PURE__ */ e("ul", {
|
|
138
|
-
className:
|
|
138
|
+
className: T(),
|
|
139
139
|
role: "list",
|
|
140
140
|
"data-testid": n,
|
|
141
141
|
children: t
|
|
142
142
|
}),
|
|
143
143
|
Item: ({ children: t, testId: n }) => /* @__PURE__ */ e("li", {
|
|
144
|
-
className:
|
|
144
|
+
className: ee(),
|
|
145
145
|
"data-testid": n,
|
|
146
146
|
children: t
|
|
147
147
|
})
|
|
148
|
-
},
|
|
148
|
+
}, ne = h([
|
|
149
149
|
"grid gap-[var(--space-stack)] py-6",
|
|
150
150
|
"border-b border-solid border-border first:border-t",
|
|
151
151
|
"lg:grid-cols-[16rem_minmax(0,1fr)] lg:items-baseline lg:gap-x-12",
|
|
152
152
|
"lg:[&>dt]:col-start-1 lg:[&>dd]:col-start-2 lg:[&>dd]:row-start-1"
|
|
153
|
-
].join(" ")),
|
|
153
|
+
].join(" ")), re = h("font-primary text-subtitle leading-subtitle text-foreground"), ie = h("font-primary text-body leading-body text-muted max-w-[var(--measure)]"), ae = {
|
|
154
154
|
Root: ({ children: t, testId: n }) => /* @__PURE__ */ e("dl", {
|
|
155
155
|
"data-testid": n,
|
|
156
156
|
children: t
|
|
157
157
|
}),
|
|
158
158
|
Item: ({ children: t, testId: n }) => /* @__PURE__ */ e("div", {
|
|
159
|
-
className:
|
|
159
|
+
className: ne(),
|
|
160
160
|
"data-testid": n,
|
|
161
161
|
children: t
|
|
162
162
|
}),
|
|
163
163
|
Term: ({ children: t }) => /* @__PURE__ */ e("dt", {
|
|
164
|
-
className:
|
|
164
|
+
className: re(),
|
|
165
165
|
children: t
|
|
166
166
|
}),
|
|
167
167
|
Description: ({ children: t }) => /* @__PURE__ */ e("dd", {
|
|
168
|
-
className:
|
|
168
|
+
className: ie(),
|
|
169
169
|
children: t
|
|
170
170
|
})
|
|
171
|
-
},
|
|
171
|
+
}, oe = h("block w-full object-cover bg-backing", {
|
|
172
172
|
variants: {
|
|
173
173
|
ratio: {
|
|
174
174
|
portrait: "aspect-portrait",
|
|
@@ -185,13 +185,13 @@ var d = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, f = u, p = (e
|
|
|
185
185
|
}
|
|
186
186
|
},
|
|
187
187
|
defaultVariants: { focus: "center" }
|
|
188
|
-
}),
|
|
188
|
+
}), se = ({ src: n, alt: r, width: i, height: a, ratio: o, focus: s, responsive: c, caption: l, overlay: u, priority: d, testId: f }) => {
|
|
189
189
|
let p = u != null && typeof u != "boolean", m = /* @__PURE__ */ e("img", {
|
|
190
190
|
src: n,
|
|
191
191
|
alt: r,
|
|
192
192
|
width: i,
|
|
193
193
|
height: a,
|
|
194
|
-
className:
|
|
194
|
+
className: oe({
|
|
195
195
|
ratio: o,
|
|
196
196
|
focus: s
|
|
197
197
|
}),
|
|
@@ -214,20 +214,20 @@ var d = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, f = u, p = (e
|
|
|
214
214
|
children: l
|
|
215
215
|
})]
|
|
216
216
|
});
|
|
217
|
-
},
|
|
217
|
+
}, E = class extends Error {
|
|
218
218
|
constructor(e) {
|
|
219
219
|
super(`Meter configuration is invalid: ${e}`), this.name = "MeterConfigurationError";
|
|
220
220
|
}
|
|
221
|
-
},
|
|
221
|
+
}, ce = h("w-full h-[var(--meter-track-thickness)] bg-meter-track border border-solid border-rule"), le = h("h-full w-[calc(var(--meter-level)*100%)]", {
|
|
222
222
|
variants: { treatment: {
|
|
223
223
|
neutral: "bg-meter-fill",
|
|
224
224
|
depleting: "bg-[color-mix(in_oklab,var(--color-meter-fill)_calc(var(--meter-level)*100%),var(--color-error))]"
|
|
225
225
|
} },
|
|
226
226
|
defaultVariants: { treatment: "neutral" }
|
|
227
|
-
}),
|
|
228
|
-
if (!Number.isFinite(t) || !Number.isFinite(n) || !Number.isFinite(r)) throw new
|
|
229
|
-
if (n >= r) throw new
|
|
230
|
-
if (t < n || t > r) throw new
|
|
227
|
+
}), ue = ({ value: t, min: n = 0, max: r, treatment: i, label: a, valueText: o, testId: s }) => {
|
|
228
|
+
if (!Number.isFinite(t) || !Number.isFinite(n) || !Number.isFinite(r)) throw new E(`value, min and max must be finite numbers (got value=${t}, min=${n}, max=${r})`);
|
|
229
|
+
if (n >= r) throw new E(`min must be less than max (got min=${n}, max=${r})`);
|
|
230
|
+
if (t < n || t > r) throw new E(`value must lie within [min, max] (got value=${t}, min=${n}, max=${r})`);
|
|
231
231
|
let c = { "--meter-level": (t - n) / (r - n) };
|
|
232
232
|
return /* @__PURE__ */ e("div", {
|
|
233
233
|
role: "meter",
|
|
@@ -237,28 +237,28 @@ var d = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, f = u, p = (e
|
|
|
237
237
|
"aria-label": a,
|
|
238
238
|
"aria-valuetext": o,
|
|
239
239
|
"data-testid": s,
|
|
240
|
-
className:
|
|
240
|
+
className: ce(),
|
|
241
241
|
style: c,
|
|
242
242
|
children: /* @__PURE__ */ e("div", {
|
|
243
243
|
"aria-hidden": "true",
|
|
244
|
-
className:
|
|
244
|
+
className: le({ treatment: i })
|
|
245
245
|
})
|
|
246
246
|
});
|
|
247
|
-
},
|
|
247
|
+
}, de = h(["grid gap-[var(--space-stack)]", "lg:grid-cols-[10rem_minmax(0,1fr)] lg:items-start lg:gap-x-12"].join(" ")), fe = h("lg:sticky lg:top-6"), pe = h("block border-b border-solid border-border pb-1 font-secondary text-label tracking-label text-muted"), me = h("block pt-1 font-secondary text-label tracking-label text-foreground"), he = {
|
|
248
248
|
Root: ({ children: t, testId: n }) => /* @__PURE__ */ e("div", {
|
|
249
|
-
className:
|
|
249
|
+
className: de(),
|
|
250
250
|
"data-testid": n,
|
|
251
251
|
children: t
|
|
252
252
|
}),
|
|
253
253
|
Index: ({ number: n, children: r, testId: i }) => /* @__PURE__ */ t("div", {
|
|
254
|
-
className:
|
|
254
|
+
className: fe(),
|
|
255
255
|
"data-testid": i,
|
|
256
256
|
"aria-hidden": "true",
|
|
257
257
|
children: [n !== void 0 && /* @__PURE__ */ e("span", {
|
|
258
|
-
className:
|
|
258
|
+
className: pe(),
|
|
259
259
|
children: n
|
|
260
260
|
}), /* @__PURE__ */ e("span", {
|
|
261
|
-
className:
|
|
261
|
+
className: me(),
|
|
262
262
|
children: r
|
|
263
263
|
})]
|
|
264
264
|
}),
|
|
@@ -266,7 +266,7 @@ var d = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, f = u, p = (e
|
|
|
266
266
|
"data-testid": n,
|
|
267
267
|
children: t
|
|
268
268
|
})
|
|
269
|
-
},
|
|
269
|
+
}, D = h([
|
|
270
270
|
"[&:not([data-notes])]:overflow-x-auto",
|
|
271
271
|
"[&>table]:w-full [&>table]:border-collapse [&>table]:text-left",
|
|
272
272
|
"[&_caption]:pb-3 [&_caption]:text-left [&_caption]:font-secondary [&_caption]:text-label [&_caption]:tracking-label [&_caption]:text-muted",
|
|
@@ -275,7 +275,7 @@ var d = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, f = u, p = (e
|
|
|
275
275
|
"[&[data-notes=content]>table]:max-md:block",
|
|
276
276
|
"[&[data-notes=content]_thead]:max-md:block [&[data-notes=content]_tbody]:max-md:block [&[data-notes=content]_tfoot]:max-md:block",
|
|
277
277
|
"[&[data-notes=content]_tr]:max-md:block [&[data-notes=content]_td]:max-md:block [&[data-notes=content]_th]:max-md:block"
|
|
278
|
-
].join(" ")),
|
|
278
|
+
].join(" ")), O = h("border-t border-solid border-border"), k = h("px-4 py-2 text-small first:pl-0 last:pr-0", {
|
|
279
279
|
variants: {
|
|
280
280
|
variant: {
|
|
281
281
|
value: "font-primary text-foreground tabular-nums",
|
|
@@ -291,24 +291,24 @@ var d = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, f = u, p = (e
|
|
|
291
291
|
variant: "value",
|
|
292
292
|
align: "left"
|
|
293
293
|
}
|
|
294
|
-
}),
|
|
294
|
+
}), A = h("px-4 py-2 font-secondary font-medium text-label text-muted tracking-label first:pl-0 last:pr-0", {
|
|
295
295
|
variants: { align: {
|
|
296
296
|
left: "text-left",
|
|
297
297
|
right: "text-right",
|
|
298
298
|
center: "text-center"
|
|
299
299
|
} },
|
|
300
300
|
defaultVariants: { align: "left" }
|
|
301
|
-
}),
|
|
301
|
+
}), j = {
|
|
302
302
|
Root: ({ caption: n, notes: r, children: i, testId: a }) => {
|
|
303
303
|
let o = /* @__PURE__ */ t("table", { children: [/* @__PURE__ */ e("caption", { children: n }), i] });
|
|
304
304
|
return r === void 0 ? /* @__PURE__ */ e("section", {
|
|
305
|
-
className:
|
|
305
|
+
className: D(),
|
|
306
306
|
"data-testid": a,
|
|
307
307
|
"aria-label": n,
|
|
308
308
|
tabIndex: 0,
|
|
309
309
|
children: o
|
|
310
310
|
}) : /* @__PURE__ */ e("div", {
|
|
311
|
-
className:
|
|
311
|
+
className: D(),
|
|
312
312
|
"data-notes": r,
|
|
313
313
|
"data-testid": a,
|
|
314
314
|
children: o
|
|
@@ -318,24 +318,24 @@ var d = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, f = u, p = (e
|
|
|
318
318
|
Body: ({ children: t }) => /* @__PURE__ */ e("tbody", { children: t }),
|
|
319
319
|
Footer: ({ children: t }) => /* @__PURE__ */ e("tfoot", { children: t }),
|
|
320
320
|
Row: ({ children: t, testId: n }) => /* @__PURE__ */ e("tr", {
|
|
321
|
-
className:
|
|
321
|
+
className: O(),
|
|
322
322
|
"data-testid": n,
|
|
323
323
|
children: t
|
|
324
324
|
}),
|
|
325
325
|
HeaderCell: ({ scope: t, align: n, children: r }) => /* @__PURE__ */ e("th", {
|
|
326
326
|
scope: t,
|
|
327
|
-
className:
|
|
327
|
+
className: A({ align: n }),
|
|
328
328
|
children: r
|
|
329
329
|
}),
|
|
330
330
|
Cell: ({ variant: t, align: n, children: r }) => /* @__PURE__ */ e("td", {
|
|
331
|
-
className:
|
|
331
|
+
className: k({
|
|
332
332
|
variant: t,
|
|
333
333
|
align: n
|
|
334
334
|
}),
|
|
335
335
|
"data-variant": t ?? "value",
|
|
336
336
|
children: r
|
|
337
337
|
})
|
|
338
|
-
},
|
|
338
|
+
}, M = h("font-secondary text-label tracking-label font-medium", {
|
|
339
339
|
variants: { color: {
|
|
340
340
|
foreground: "text-foreground",
|
|
341
341
|
muted: "text-muted",
|
|
@@ -345,11 +345,11 @@ var d = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, f = u, p = (e
|
|
|
345
345
|
info: "text-info"
|
|
346
346
|
} },
|
|
347
347
|
defaultVariants: { color: "muted" }
|
|
348
|
-
}),
|
|
349
|
-
className:
|
|
348
|
+
}), N = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("p", {
|
|
349
|
+
className: M({ color: n }),
|
|
350
350
|
"data-testid": r,
|
|
351
351
|
children: t
|
|
352
|
-
}),
|
|
352
|
+
}), P = h("font-primary text-display leading-display tracking-optical max-w-[var(--measure-display)]", {
|
|
353
353
|
variants: { color: {
|
|
354
354
|
foreground: "text-foreground",
|
|
355
355
|
muted: "text-muted",
|
|
@@ -359,11 +359,11 @@ var d = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, f = u, p = (e
|
|
|
359
359
|
info: "text-info"
|
|
360
360
|
} },
|
|
361
361
|
defaultVariants: { color: "foreground" }
|
|
362
|
-
}),
|
|
363
|
-
className:
|
|
362
|
+
}), F = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("h1", {
|
|
363
|
+
className: P({ color: n }),
|
|
364
364
|
"data-testid": r,
|
|
365
365
|
children: t
|
|
366
|
-
}),
|
|
366
|
+
}), I = h("font-primary text-title leading-title tracking-optical", {
|
|
367
367
|
variants: { color: {
|
|
368
368
|
foreground: "text-foreground",
|
|
369
369
|
muted: "text-muted",
|
|
@@ -373,11 +373,11 @@ var d = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, f = u, p = (e
|
|
|
373
373
|
info: "text-info"
|
|
374
374
|
} },
|
|
375
375
|
defaultVariants: { color: "foreground" }
|
|
376
|
-
}),
|
|
377
|
-
className:
|
|
376
|
+
}), L = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("h2", {
|
|
377
|
+
className: I({ color: n }),
|
|
378
378
|
"data-testid": r,
|
|
379
379
|
children: t
|
|
380
|
-
}),
|
|
380
|
+
}), R = h("font-primary text-subtitle leading-subtitle", {
|
|
381
381
|
variants: { color: {
|
|
382
382
|
foreground: "text-foreground",
|
|
383
383
|
muted: "text-muted",
|
|
@@ -387,11 +387,11 @@ var d = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, f = u, p = (e
|
|
|
387
387
|
info: "text-info"
|
|
388
388
|
} },
|
|
389
389
|
defaultVariants: { color: "foreground" }
|
|
390
|
-
}),
|
|
391
|
-
className:
|
|
390
|
+
}), ge = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("h3", {
|
|
391
|
+
className: R({ color: n }),
|
|
392
392
|
"data-testid": r,
|
|
393
393
|
children: t
|
|
394
|
-
}),
|
|
394
|
+
}), _e = h("font-primary text-body leading-body font-bold", {
|
|
395
395
|
variants: { color: {
|
|
396
396
|
foreground: "text-foreground",
|
|
397
397
|
muted: "text-muted",
|
|
@@ -401,11 +401,11 @@ var d = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, f = u, p = (e
|
|
|
401
401
|
info: "text-info"
|
|
402
402
|
} },
|
|
403
403
|
defaultVariants: { color: "foreground" }
|
|
404
|
-
}),
|
|
405
|
-
className:
|
|
404
|
+
}), ve = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("h4", {
|
|
405
|
+
className: _e({ color: n }),
|
|
406
406
|
"data-testid": r,
|
|
407
407
|
children: t
|
|
408
|
-
}),
|
|
408
|
+
}), ye = h("font-primary text-body leading-body font-semibold", {
|
|
409
409
|
variants: { color: {
|
|
410
410
|
foreground: "text-foreground",
|
|
411
411
|
muted: "text-muted",
|
|
@@ -415,11 +415,11 @@ var d = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, f = u, p = (e
|
|
|
415
415
|
info: "text-info"
|
|
416
416
|
} },
|
|
417
417
|
defaultVariants: { color: "foreground" }
|
|
418
|
-
}),
|
|
419
|
-
className:
|
|
418
|
+
}), be = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("h5", {
|
|
419
|
+
className: ye({ color: n }),
|
|
420
420
|
"data-testid": r,
|
|
421
421
|
children: t
|
|
422
|
-
}),
|
|
422
|
+
}), xe = h("font-primary text-body leading-body font-medium", {
|
|
423
423
|
variants: { color: {
|
|
424
424
|
foreground: "text-foreground",
|
|
425
425
|
muted: "text-muted",
|
|
@@ -429,11 +429,11 @@ var d = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, f = u, p = (e
|
|
|
429
429
|
info: "text-info"
|
|
430
430
|
} },
|
|
431
431
|
defaultVariants: { color: "foreground" }
|
|
432
|
-
}),
|
|
433
|
-
className:
|
|
432
|
+
}), Se = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("h6", {
|
|
433
|
+
className: xe({ color: n }),
|
|
434
434
|
"data-testid": r,
|
|
435
435
|
children: t
|
|
436
|
-
}),
|
|
436
|
+
}), Ce = h("font-secondary text-small", {
|
|
437
437
|
variants: { color: {
|
|
438
438
|
foreground: "text-foreground",
|
|
439
439
|
muted: "text-muted",
|
|
@@ -443,11 +443,11 @@ var d = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, f = u, p = (e
|
|
|
443
443
|
info: "text-info"
|
|
444
444
|
} },
|
|
445
445
|
defaultVariants: { color: "foreground" }
|
|
446
|
-
}),
|
|
447
|
-
className:
|
|
446
|
+
}), we = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("p", {
|
|
447
|
+
className: Ce({ color: n }),
|
|
448
448
|
"data-testid": r,
|
|
449
449
|
children: t
|
|
450
|
-
}),
|
|
450
|
+
}), Te = h("font-primary text-body leading-body", {
|
|
451
451
|
variants: { color: {
|
|
452
452
|
foreground: "text-foreground",
|
|
453
453
|
muted: "text-muted",
|
|
@@ -457,11 +457,11 @@ var d = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, f = u, p = (e
|
|
|
457
457
|
info: "text-info"
|
|
458
458
|
} },
|
|
459
459
|
defaultVariants: { color: "foreground" }
|
|
460
|
-
}),
|
|
461
|
-
className:
|
|
460
|
+
}), Ee = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("p", {
|
|
461
|
+
className: Te({ color: n }),
|
|
462
462
|
"data-testid": r,
|
|
463
463
|
children: t
|
|
464
|
-
}),
|
|
464
|
+
}), De = h("flex max-w-[var(--measure)] flex-col gap-[var(--space-stack)]"), Oe = h("font-primary text-lede leading-lede text-foreground"), ke = h("font-primary text-body leading-body", {
|
|
465
465
|
variants: { color: {
|
|
466
466
|
foreground: "text-foreground",
|
|
467
467
|
muted: "text-muted",
|
|
@@ -471,49 +471,49 @@ var d = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, f = u, p = (e
|
|
|
471
471
|
info: "text-info"
|
|
472
472
|
} },
|
|
473
473
|
defaultVariants: { color: "foreground" }
|
|
474
|
-
}),
|
|
474
|
+
}), Ae = h("font-primary text-small text-muted"), je = {
|
|
475
475
|
Root: ({ children: t, testId: n }) => /* @__PURE__ */ e("div", {
|
|
476
|
-
className:
|
|
476
|
+
className: De(),
|
|
477
477
|
"data-testid": n,
|
|
478
478
|
children: t
|
|
479
479
|
}),
|
|
480
480
|
Lede: ({ children: t }) => /* @__PURE__ */ e("p", {
|
|
481
|
-
className:
|
|
481
|
+
className: Oe(),
|
|
482
482
|
children: t
|
|
483
483
|
}),
|
|
484
484
|
Body: ({ color: t, children: n }) => /* @__PURE__ */ e("p", {
|
|
485
|
-
className:
|
|
485
|
+
className: ke({ color: t }),
|
|
486
486
|
children: n
|
|
487
487
|
}),
|
|
488
488
|
Tail: ({ children: t }) => /* @__PURE__ */ e("p", {
|
|
489
|
-
className:
|
|
489
|
+
className: Ae(),
|
|
490
490
|
children: t
|
|
491
491
|
})
|
|
492
|
-
},
|
|
492
|
+
}, Me = h("font-primary text-body transition-colors duration-[var(--motion-duration-color)] rounded-[var(--radius-control)] py-2 sm:py-2 disabled:bg-disabled disabled:hover:bg-disabled-hover cursor-pointer disabled:cursor-not-allowed select-none text-nowrap inline-flex flex-row items-center justify-center gap-2 outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]", {
|
|
493
493
|
variants: { variant: {
|
|
494
494
|
primary: "px-4 sm:px-6 min-w-[var(--control-min-width)] bg-primary text-primary-foreground hover:bg-primary-hover",
|
|
495
495
|
secondary: "px-4 sm:px-6 min-w-[var(--control-min-width)] bg-secondary text-secondary-foreground hover:bg-secondary-hover",
|
|
496
496
|
ghost: "px-2 min-w-0 bg-transparent text-foreground hover:underline hover:decoration-[length:var(--underline-thickness)] hover:underline-offset-[var(--underline-offset)]"
|
|
497
497
|
} },
|
|
498
498
|
defaultVariants: { variant: "primary" }
|
|
499
|
-
}),
|
|
499
|
+
}), Ne = ({ children: t, disabled: n, testId: r, variant: i, onClick$: a, ariaLabel: o, type: s = "button" }) => /* @__PURE__ */ e("button", {
|
|
500
500
|
type: s,
|
|
501
501
|
"data-testid": r,
|
|
502
|
-
className:
|
|
502
|
+
className: Me({ variant: i }),
|
|
503
503
|
onClick: () => a?.next(),
|
|
504
504
|
disabled: n,
|
|
505
505
|
"aria-label": o,
|
|
506
506
|
children: t
|
|
507
|
-
}),
|
|
507
|
+
}), Pe = h("block w-full rounded-[var(--radius-control)] border border-solid border-control-border bg-transparent px-3 py-2 font-primary 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", {
|
|
508
508
|
variants: { variant: {
|
|
509
509
|
text: "",
|
|
510
510
|
email: "",
|
|
511
511
|
url: ""
|
|
512
512
|
} },
|
|
513
513
|
defaultVariants: { variant: "text" }
|
|
514
|
-
}),
|
|
515
|
-
let b =
|
|
516
|
-
return
|
|
514
|
+
}), Fe = ({ label: n, name: r, variant: i, required: a, optionalLabel: o, invalid: u, disabled: d, defaultValue: f, placeholder: p, autocomplete: m, hint: h, errorMessage: g, onInput$: _, reset$: v, testId: y }) => {
|
|
515
|
+
let b = c(), x = `${b}-control`, S = `${b}-hint`, C = `${b}-error`, w = [h ? S : void 0, u ? C : void 0].filter(Boolean).join(" ") || void 0, T = l(null);
|
|
516
|
+
return s(() => {
|
|
517
517
|
let e = v?.subscribe(() => {
|
|
518
518
|
T.current && (T.current.value = "");
|
|
519
519
|
});
|
|
@@ -531,7 +531,7 @@ var d = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, f = u, p = (e
|
|
|
531
531
|
id: x,
|
|
532
532
|
name: r,
|
|
533
533
|
type: i ?? "text",
|
|
534
|
-
className:
|
|
534
|
+
className: Pe({ variant: i }),
|
|
535
535
|
required: a,
|
|
536
536
|
disabled: d,
|
|
537
537
|
defaultValue: f,
|
|
@@ -542,9 +542,9 @@ var d = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, f = u, p = (e
|
|
|
542
542
|
"data-testid": y,
|
|
543
543
|
onInput: (e) => _?.next(e.currentTarget.value)
|
|
544
544
|
}),
|
|
545
|
-
!a &&
|
|
545
|
+
!a && o && /* @__PURE__ */ e("span", {
|
|
546
546
|
className: "font-secondary text-muted text-small",
|
|
547
|
-
children:
|
|
547
|
+
children: o
|
|
548
548
|
}),
|
|
549
549
|
h && /* @__PURE__ */ e("p", {
|
|
550
550
|
id: S,
|
|
@@ -558,7 +558,7 @@ var d = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, f = u, p = (e
|
|
|
558
558
|
})
|
|
559
559
|
]
|
|
560
560
|
});
|
|
561
|
-
},
|
|
561
|
+
}, Ie = h("outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]", {
|
|
562
562
|
variants: { treatment: {
|
|
563
563
|
prose: "text-link underline decoration-[length:var(--underline-thickness)] underline-offset-[var(--underline-offset)] hover:decoration-[length:var(--underline-thickness-hover)]",
|
|
564
564
|
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",
|
|
@@ -566,19 +566,19 @@ var d = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, f = u, p = (e
|
|
|
566
566
|
graphic: "text-inherit no-underline"
|
|
567
567
|
} },
|
|
568
568
|
defaultVariants: { treatment: "prose" }
|
|
569
|
-
}),
|
|
569
|
+
}), Le = ({ href: t, children: n, treatment: r, external: i, current: a, testId: o }) => /* @__PURE__ */ e("a", {
|
|
570
570
|
href: t,
|
|
571
|
-
className:
|
|
571
|
+
className: Ie({ treatment: r }),
|
|
572
572
|
target: i ? "_blank" : void 0,
|
|
573
573
|
rel: i ? "noopener noreferrer" : void 0,
|
|
574
574
|
"aria-current": a ? "page" : void 0,
|
|
575
575
|
"data-testid": o,
|
|
576
576
|
children: n
|
|
577
|
-
}),
|
|
577
|
+
}), z = class extends Error {
|
|
578
578
|
constructor(e) {
|
|
579
579
|
super(`Slider configuration: ${e}`), this.name = "SliderConfigurationError";
|
|
580
580
|
}
|
|
581
|
-
},
|
|
581
|
+
}, Re = h([
|
|
582
582
|
"block h-[var(--slider-thumb-size)] w-full cursor-pointer appearance-none bg-transparent",
|
|
583
583
|
"disabled:cursor-not-allowed",
|
|
584
584
|
"outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]",
|
|
@@ -589,19 +589,19 @@ var d = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, f = u, p = (e
|
|
|
589
589
|
"[&::-moz-range-track]:h-[var(--slider-track-thickness)] [&::-moz-range-track]:rounded-[var(--radius-control)] [&::-moz-range-track]:bg-control-border",
|
|
590
590
|
"[&::-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",
|
|
591
591
|
"[&:disabled::-moz-range-track]:bg-disabled [&:disabled::-moz-range-thumb]:bg-disabled"
|
|
592
|
-
].join(" ")),
|
|
593
|
-
for (let [t, n] of Object.entries(e)) if (!Number.isFinite(n)) throw new
|
|
594
|
-
if (e.min >= e.max) throw new
|
|
595
|
-
if (e.step <= 0) throw new
|
|
596
|
-
if (e.value < e.min || e.value > e.max) throw new
|
|
597
|
-
},
|
|
592
|
+
].join(" ")), ze = (e) => {
|
|
593
|
+
for (let [t, n] of Object.entries(e)) if (!Number.isFinite(n)) throw new z(`\`${t}\` must be a finite number, got ${n}`);
|
|
594
|
+
if (e.min >= e.max) throw new z(`\`min\` (${e.min}) must be below \`max\` (${e.max})`);
|
|
595
|
+
if (e.step <= 0) throw new z(`\`step\` (${e.step}) must be positive`);
|
|
596
|
+
if (e.value < e.min || e.value > e.max) throw new z(`\`value\` (${e.value}) must lie within [${e.min}, ${e.max}]`);
|
|
597
|
+
}, Be = ({ min: t, max: n, step: r = 1, value: i, onInput$: a, label: o, valueText: s, disabled: c, testId: l }) => (ze({
|
|
598
598
|
min: t,
|
|
599
599
|
max: n,
|
|
600
600
|
step: r,
|
|
601
601
|
value: i
|
|
602
602
|
}), /* @__PURE__ */ e("input", {
|
|
603
603
|
type: "range",
|
|
604
|
-
className:
|
|
604
|
+
className: Re(),
|
|
605
605
|
min: t,
|
|
606
606
|
max: n,
|
|
607
607
|
step: r,
|
|
@@ -611,40 +611,40 @@ var d = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, f = u, p = (e
|
|
|
611
611
|
"aria-valuetext": s,
|
|
612
612
|
"data-testid": l,
|
|
613
613
|
onChange: (e) => a.next(e.currentTarget.valueAsNumber)
|
|
614
|
-
})),
|
|
614
|
+
})), Ve = class extends Error {
|
|
615
615
|
constructor(e) {
|
|
616
616
|
super(`Tabs.${e} must be composed inside Tabs.Root`), this.name = "TabsCompositionError";
|
|
617
617
|
}
|
|
618
|
-
},
|
|
618
|
+
}, He = h([
|
|
619
619
|
"flex flex-row overflow-x-auto",
|
|
620
620
|
"p-[calc(var(--focus-ring-width)+var(--focus-ring-offset))]",
|
|
621
621
|
"m-[calc(-1*(var(--focus-ring-width)+var(--focus-ring-offset)))]",
|
|
622
622
|
"scroll-p-[calc(var(--focus-ring-width)+var(--focus-ring-offset))]"
|
|
623
|
-
].join(" ")),
|
|
623
|
+
].join(" ")), Ue = h([
|
|
624
624
|
"font-secondary text-label tracking-label",
|
|
625
625
|
"text-muted hover:text-foreground aria-selected:text-foreground",
|
|
626
626
|
"border-b-[length:var(--tab-marker-thickness)] border-solid border-transparent aria-selected:border-foreground",
|
|
627
627
|
"shrink-0 cursor-pointer select-none text-nowrap px-[var(--tab-inset-inline)] py-[var(--tab-inset-block)]",
|
|
628
628
|
"transition-colors duration-[var(--motion-duration-color)]",
|
|
629
629
|
"outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]"
|
|
630
|
-
].join(" ")),
|
|
631
|
-
let t =
|
|
632
|
-
if (t === void 0) throw new
|
|
630
|
+
].join(" ")), We = h("outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]"), B = r(void 0), V = (e) => {
|
|
631
|
+
let t = o(B);
|
|
632
|
+
if (t === void 0) throw new Ve(e);
|
|
633
633
|
return t;
|
|
634
|
-
},
|
|
634
|
+
}, H = (e) => e.split("").map((e) => e.charCodeAt(0).toString(16).padStart(4, "0")).join(""), Ge = (e) => {
|
|
635
635
|
e.currentTarget.scrollIntoView({
|
|
636
636
|
block: "nearest",
|
|
637
637
|
inline: "nearest"
|
|
638
638
|
});
|
|
639
|
-
},
|
|
639
|
+
}, U = (e, t) => `${e}tab-${H(t)}`, W = (e, t) => `${e}panel-${H(t)}`, Ke = (e, t) => {
|
|
640
640
|
let n = e.closest("[role=\"tablist\"]");
|
|
641
641
|
if (n === null) return;
|
|
642
642
|
let r = Array.from(n.querySelectorAll(":scope > [role=\"tab\"]"));
|
|
643
643
|
return r[(r.indexOf(e) + t + r.length) % r.length];
|
|
644
|
-
},
|
|
644
|
+
}, qe = {
|
|
645
645
|
Root: ({ active: t, onSelect$: n, label: r, children: i, testId: a }) => {
|
|
646
|
-
let o =
|
|
647
|
-
return /* @__PURE__ */ e(
|
|
646
|
+
let o = c();
|
|
647
|
+
return /* @__PURE__ */ e(B.Provider, {
|
|
648
648
|
value: {
|
|
649
649
|
active: t,
|
|
650
650
|
onSelect$: n,
|
|
@@ -658,57 +658,57 @@ var d = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, f = u, p = (e
|
|
|
658
658
|
});
|
|
659
659
|
},
|
|
660
660
|
List: ({ children: t, testId: n }) => {
|
|
661
|
-
let { label: r } =
|
|
661
|
+
let { label: r } = V("List");
|
|
662
662
|
return /* @__PURE__ */ e("div", {
|
|
663
663
|
role: "tablist",
|
|
664
664
|
"aria-label": r,
|
|
665
|
-
className:
|
|
665
|
+
className: He(),
|
|
666
666
|
"data-testid": n,
|
|
667
667
|
children: t
|
|
668
668
|
});
|
|
669
669
|
},
|
|
670
670
|
Tab: ({ value: t, children: n, testId: r }) => {
|
|
671
|
-
let { active: i, onSelect$: a, baseId: o } =
|
|
671
|
+
let { active: i, onSelect$: a, baseId: o } = V("Tab"), s = i === t;
|
|
672
672
|
return /* @__PURE__ */ e("button", {
|
|
673
673
|
type: "button",
|
|
674
674
|
role: "tab",
|
|
675
|
-
id:
|
|
675
|
+
id: U(o, t),
|
|
676
676
|
"aria-selected": s,
|
|
677
|
-
"aria-controls":
|
|
677
|
+
"aria-controls": W(o, t),
|
|
678
678
|
tabIndex: s ? 0 : -1,
|
|
679
679
|
"data-value": t,
|
|
680
680
|
"data-testid": r,
|
|
681
|
-
className:
|
|
681
|
+
className: Ue(),
|
|
682
682
|
onClick: () => a.next(t),
|
|
683
683
|
onKeyDown: (e) => {
|
|
684
684
|
if (e.key !== "ArrowLeft" && e.key !== "ArrowRight") return;
|
|
685
685
|
e.preventDefault();
|
|
686
|
-
let t =
|
|
686
|
+
let t = Ke(e.currentTarget, e.key === "ArrowRight" ? 1 : -1);
|
|
687
687
|
if (t === void 0) return;
|
|
688
688
|
t.focus();
|
|
689
689
|
let n = t.dataset.value;
|
|
690
690
|
n !== void 0 && a.next(n);
|
|
691
691
|
},
|
|
692
|
-
onFocus:
|
|
692
|
+
onFocus: Ge,
|
|
693
693
|
children: n
|
|
694
694
|
});
|
|
695
695
|
},
|
|
696
696
|
Panel: ({ value: t, children: n, testId: r }) => {
|
|
697
|
-
let { active: i, baseId: a } =
|
|
697
|
+
let { active: i, baseId: a } = V("Panel"), o = i === t;
|
|
698
698
|
return /* @__PURE__ */ e("div", {
|
|
699
699
|
role: "tabpanel",
|
|
700
|
-
id:
|
|
701
|
-
"aria-labelledby":
|
|
700
|
+
id: W(a, t),
|
|
701
|
+
"aria-labelledby": U(a, t),
|
|
702
702
|
hidden: !o,
|
|
703
703
|
tabIndex: o ? 0 : void 0,
|
|
704
|
-
className:
|
|
704
|
+
className: We(),
|
|
705
705
|
"data-testid": r,
|
|
706
706
|
children: o ? n : void 0
|
|
707
707
|
});
|
|
708
708
|
}
|
|
709
|
-
},
|
|
710
|
-
let y =
|
|
711
|
-
return
|
|
709
|
+
}, Je = h("block min-h-24 w-full rounded-[var(--radius-control)] border border-solid border-control-border bg-transparent px-3 py-2 font-primary 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"), Ye = ({ label: n, name: r, required: i, optionalLabel: a, invalid: o, disabled: u, defaultValue: d, placeholder: f, autocomplete: p, hint: m, errorMessage: h, onInput$: g, reset$: _, testId: v }) => {
|
|
710
|
+
let y = c(), b = `${y}-control`, x = `${y}-hint`, S = `${y}-error`, C = [m ? x : void 0, o ? S : void 0].filter(Boolean).join(" ") || void 0, w = l(null);
|
|
711
|
+
return s(() => {
|
|
712
712
|
let e = _?.subscribe(() => {
|
|
713
713
|
w.current && (w.current.value = "");
|
|
714
714
|
});
|
|
@@ -725,13 +725,13 @@ var d = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, f = u, p = (e
|
|
|
725
725
|
ref: w,
|
|
726
726
|
id: b,
|
|
727
727
|
name: r,
|
|
728
|
-
className:
|
|
728
|
+
className: Je(),
|
|
729
729
|
required: i,
|
|
730
730
|
disabled: u,
|
|
731
731
|
defaultValue: d,
|
|
732
732
|
placeholder: f,
|
|
733
733
|
autoComplete: p,
|
|
734
|
-
"aria-invalid":
|
|
734
|
+
"aria-invalid": o || void 0,
|
|
735
735
|
"aria-describedby": C,
|
|
736
736
|
"data-testid": v,
|
|
737
737
|
onInput: (e) => g?.next(e.currentTarget.value)
|
|
@@ -745,38 +745,173 @@ var d = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, f = u, p = (e
|
|
|
745
745
|
className: "font-secondary text-muted text-small",
|
|
746
746
|
children: m
|
|
747
747
|
}),
|
|
748
|
-
|
|
748
|
+
o && /* @__PURE__ */ e("p", {
|
|
749
749
|
id: S,
|
|
750
750
|
className: "font-secondary text-error text-small",
|
|
751
751
|
children: h
|
|
752
752
|
})
|
|
753
753
|
]
|
|
754
754
|
});
|
|
755
|
-
},
|
|
755
|
+
}, Xe = h([
|
|
756
756
|
"flex flex-col items-center",
|
|
757
757
|
"min-h-[var(--cover-height)]",
|
|
758
758
|
"px-[var(--gutter)] py-[var(--space-region)]"
|
|
759
|
-
].join(" ")),
|
|
759
|
+
].join(" ")), Ze = "my-auto max-w-full", Qe = ({ children: n, foot: r, testId: i }) => {
|
|
760
760
|
let a = r != null && typeof r != "boolean";
|
|
761
761
|
return /* @__PURE__ */ t("div", {
|
|
762
|
-
className:
|
|
762
|
+
className: Xe(),
|
|
763
763
|
"data-testid": i,
|
|
764
764
|
children: [/* @__PURE__ */ e("div", {
|
|
765
|
-
className:
|
|
765
|
+
className: Ze,
|
|
766
766
|
children: n
|
|
767
767
|
}), a && /* @__PURE__ */ e("div", { children: r })]
|
|
768
768
|
});
|
|
769
|
-
},
|
|
769
|
+
}, $e = class extends Error {
|
|
770
|
+
constructor(e) {
|
|
771
|
+
super(`Dialog.${e} must be composed inside Dialog.Root`), this.name = "DialogCompositionError";
|
|
772
|
+
}
|
|
773
|
+
}, et = class extends Error {
|
|
774
|
+
constructor() {
|
|
775
|
+
super("A Dialog takes exactly one accessible naming source: a visible Dialog.Title or ariaLabel on Dialog.Root, never both"), this.name = "DialogNamingError";
|
|
776
|
+
}
|
|
777
|
+
}, tt = h([
|
|
778
|
+
"open:flex open:flex-col m-auto p-0 overflow-hidden",
|
|
779
|
+
"bg-surface text-foreground",
|
|
780
|
+
"rounded-[var(--radius-dialog)] shadow-[var(--elevation-floating)]",
|
|
781
|
+
"backdrop:bg-scrim backdrop:[backdrop-filter:blur(var(--scrim-blur))]"
|
|
782
|
+
].join(" "), {
|
|
783
|
+
variants: { extent: {
|
|
784
|
+
screen: ["w-[calc(100vw-2*var(--gutter))] max-w-none", "h-[calc(100dvh-2*var(--space-region))] max-h-none"].join(" "),
|
|
785
|
+
content: ["w-[32rem] max-w-[calc(100vw-2*var(--gutter))]", "max-h-[calc(100dvh-2*var(--space-region))]"].join(" ")
|
|
786
|
+
} },
|
|
787
|
+
defaultVariants: { extent: "screen" }
|
|
788
|
+
}), nt = h(["px-[var(--space-region)] pt-[var(--space-region)] pb-[var(--space-region)]", "[&:has(+[data-dialog-member=description])]:pb-0"].join(" ")), rt = h(["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(" ")), it = h([
|
|
789
|
+
"grow shrink min-h-0 overflow-y-auto",
|
|
790
|
+
"px-[var(--space-region)] py-[var(--space-region)]",
|
|
791
|
+
"[&:not(:first-child)]:border-t [&:not(:first-child)]:border-border"
|
|
792
|
+
].join(" ")), at = h([
|
|
793
|
+
"flex flex-row flex-wrap items-center justify-end gap-[var(--space-stack)] shrink-0",
|
|
794
|
+
"px-[var(--space-region)] pt-[var(--space-region)] pb-[var(--space-region)]",
|
|
795
|
+
"[[data-dialog-member=content]+&]:border-t [[data-dialog-member=content]+&]:border-border"
|
|
796
|
+
].join(" ")), G = r(void 0), K = (e) => {
|
|
797
|
+
let t = o(G);
|
|
798
|
+
if (t === void 0) throw new $e(e);
|
|
799
|
+
return t;
|
|
800
|
+
}, q = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])", J = (e, { presented: t, opener: n }) => {
|
|
801
|
+
if (e === void 0 || e.open) return;
|
|
802
|
+
let r = document.activeElement;
|
|
803
|
+
n.current = r instanceof HTMLElement && r !== document.body ? r : void 0, e.showModal(), t.current = !0, e.querySelector(q)?.focus();
|
|
804
|
+
}, Y = (e, { presented: t }) => {
|
|
805
|
+
t.current = !1, e?.open && e.close();
|
|
806
|
+
}, ot = {
|
|
807
|
+
Root: ({ children: t, onDismiss$: n, showDialog$: r, extent: i, ariaLabel: o, testId: d }) => {
|
|
808
|
+
let f = c(), p = l(void 0), m = l(!1), h = l(void 0), [g] = u(() => ({
|
|
809
|
+
presented: m,
|
|
810
|
+
opener: h
|
|
811
|
+
})), [_, v] = u({
|
|
812
|
+
title: !1,
|
|
813
|
+
description: !1
|
|
814
|
+
}), y = a((e) => (v((t) => ({
|
|
815
|
+
...t,
|
|
816
|
+
[e]: !0
|
|
817
|
+
})), () => v((t) => ({
|
|
818
|
+
...t,
|
|
819
|
+
[e]: !1
|
|
820
|
+
}))), []), b = {
|
|
821
|
+
titleId: `${f}title`,
|
|
822
|
+
descriptionId: `${f}description`,
|
|
823
|
+
isLabelled: o !== void 0,
|
|
824
|
+
registerNamePart: y
|
|
825
|
+
}, x = () => {
|
|
826
|
+
n.next(), r === void 0 ? Y(p.current, g) : r.next(!1);
|
|
827
|
+
};
|
|
828
|
+
return s(() => {
|
|
829
|
+
if (r === void 0) return J(p.current, g), () => Y(p.current, g);
|
|
830
|
+
let e = r.subscribe((e) => {
|
|
831
|
+
e ? J(p.current, g) : Y(p.current, g);
|
|
832
|
+
});
|
|
833
|
+
return () => {
|
|
834
|
+
e.unsubscribe(), Y(p.current, g);
|
|
835
|
+
};
|
|
836
|
+
}, [r, g]), /* @__PURE__ */ e(G.Provider, {
|
|
837
|
+
value: b,
|
|
838
|
+
children: /* @__PURE__ */ e("dialog", {
|
|
839
|
+
ref: (e) => {
|
|
840
|
+
p.current = e ?? void 0, e?.setAttribute("headingreset", "");
|
|
841
|
+
},
|
|
842
|
+
className: tt({ extent: i }),
|
|
843
|
+
"aria-label": o,
|
|
844
|
+
"aria-labelledby": o === void 0 && _.title ? b.titleId : void 0,
|
|
845
|
+
"aria-describedby": _.description ? b.descriptionId : void 0,
|
|
846
|
+
onCancel: x,
|
|
847
|
+
onClick: (e) => {
|
|
848
|
+
let t = p.current;
|
|
849
|
+
if (t === void 0 || e.target !== t || !t.open) return;
|
|
850
|
+
let n = t.getBoundingClientRect();
|
|
851
|
+
e.clientX >= n.left && e.clientX <= n.right && e.clientY >= n.top && e.clientY <= n.bottom || x();
|
|
852
|
+
},
|
|
853
|
+
onClose: () => {
|
|
854
|
+
if (p.current?.open) return;
|
|
855
|
+
let e = m.current;
|
|
856
|
+
m.current = !1;
|
|
857
|
+
let t = h.current;
|
|
858
|
+
h.current = void 0, t?.isConnected && (t.matches(q) || t.hasAttribute("tabindex")) && t.focus(), e && r?.next(!1);
|
|
859
|
+
},
|
|
860
|
+
"data-testid": d,
|
|
861
|
+
children: t
|
|
862
|
+
})
|
|
863
|
+
});
|
|
864
|
+
},
|
|
865
|
+
Title: ({ children: t, testId: n }) => {
|
|
866
|
+
let { titleId: r, isLabelled: i, registerNamePart: a } = K("Title");
|
|
867
|
+
if (s(() => a("title"), [a]), i) throw new et();
|
|
868
|
+
return /* @__PURE__ */ e("div", {
|
|
869
|
+
"data-dialog-member": "title",
|
|
870
|
+
className: nt(),
|
|
871
|
+
"data-testid": n,
|
|
872
|
+
children: /* @__PURE__ */ e("h1", {
|
|
873
|
+
id: r,
|
|
874
|
+
className: "font-primary text-dialog-title leading-dialog-title text-foreground",
|
|
875
|
+
children: t
|
|
876
|
+
})
|
|
877
|
+
});
|
|
878
|
+
},
|
|
879
|
+
Description: ({ children: t, testId: n }) => {
|
|
880
|
+
let { descriptionId: r, registerNamePart: i } = K("Description");
|
|
881
|
+
return s(() => i("description"), [i]), /* @__PURE__ */ e("div", {
|
|
882
|
+
"data-dialog-member": "description",
|
|
883
|
+
className: rt(),
|
|
884
|
+
"data-testid": n,
|
|
885
|
+
children: /* @__PURE__ */ e("p", {
|
|
886
|
+
id: r,
|
|
887
|
+
className: "font-primary text-body leading-body text-foreground",
|
|
888
|
+
children: t
|
|
889
|
+
})
|
|
890
|
+
});
|
|
891
|
+
},
|
|
892
|
+
Content: ({ children: t, testId: n }) => (K("Content"), /* @__PURE__ */ e("div", {
|
|
893
|
+
"data-dialog-member": "content",
|
|
894
|
+
className: it(),
|
|
895
|
+
"data-testid": n,
|
|
896
|
+
children: t
|
|
897
|
+
})),
|
|
898
|
+
Actions: ({ children: t, testId: n }) => (K("Actions"), /* @__PURE__ */ e("div", {
|
|
899
|
+
"data-dialog-member": "actions",
|
|
900
|
+
className: at(),
|
|
901
|
+
"data-testid": n,
|
|
902
|
+
children: t
|
|
903
|
+
}))
|
|
904
|
+
}, st = h("font-secondary text-small text-muted py-[var(--space-region)] px-[var(--gutter)]", {
|
|
770
905
|
variants: { edge: {
|
|
771
906
|
none: "",
|
|
772
907
|
rule: "border-t border-solid border-rule"
|
|
773
908
|
} },
|
|
774
909
|
defaultVariants: { edge: "rule" }
|
|
775
|
-
}),
|
|
776
|
-
className:
|
|
910
|
+
}), ct = ({ edge: t, children: n, testId: r }) => /* @__PURE__ */ e("footer", {
|
|
911
|
+
className: st({ edge: t }),
|
|
777
912
|
"data-testid": r,
|
|
778
913
|
children: n
|
|
779
|
-
}),
|
|
914
|
+
}), lt = h("font-secondary text-small", {
|
|
780
915
|
variants: { state: {
|
|
781
916
|
idle: "text-muted",
|
|
782
917
|
sending: "text-muted",
|
|
@@ -784,13 +919,13 @@ var d = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, f = u, p = (e
|
|
|
784
919
|
failed: "text-error"
|
|
785
920
|
} },
|
|
786
921
|
defaultVariants: { state: "idle" }
|
|
787
|
-
}),
|
|
922
|
+
}), ut = {
|
|
788
923
|
sent: "status",
|
|
789
924
|
failed: "alert"
|
|
790
|
-
},
|
|
925
|
+
}, dt = ({ action: n, method: r = "post", state: i = "idle", children: a, actions: o, note: s, testId: c }) => {
|
|
791
926
|
let l = s != null && typeof s != "boolean";
|
|
792
927
|
if (i === "sent" && !l) throw Error("Form in the `sent` state must be given a `note` - it is the outcome message.");
|
|
793
|
-
let u = i !== "sent", d =
|
|
928
|
+
let u = i !== "sent", d = ut[i];
|
|
794
929
|
return /* @__PURE__ */ t("form", {
|
|
795
930
|
action: n,
|
|
796
931
|
method: r,
|
|
@@ -808,12 +943,12 @@ var d = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, f = u, p = (e
|
|
|
808
943
|
}),
|
|
809
944
|
l && /* @__PURE__ */ e("p", {
|
|
810
945
|
role: d,
|
|
811
|
-
className:
|
|
946
|
+
className: lt({ state: i }),
|
|
812
947
|
children: s
|
|
813
948
|
})
|
|
814
949
|
]
|
|
815
950
|
});
|
|
816
|
-
},
|
|
951
|
+
}, ft = h([
|
|
817
952
|
"flex items-baseline justify-between",
|
|
818
953
|
"font-secondary text-label leading-label tracking-label text-muted",
|
|
819
954
|
"py-[var(--space-region)] px-[var(--gutter)]",
|
|
@@ -824,50 +959,50 @@ var d = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, f = u, p = (e
|
|
|
824
959
|
rule: "border-b border-solid border-rule"
|
|
825
960
|
} },
|
|
826
961
|
defaultVariants: { edge: "rule" }
|
|
827
|
-
}),
|
|
962
|
+
}), pt = [
|
|
828
963
|
"inline-flex shrink-0 items-center",
|
|
829
964
|
"min-h-[calc(var(--text-label)*var(--leading-label))]",
|
|
830
965
|
"min-w-[var(--standing-min-width)]"
|
|
831
|
-
].join(" "),
|
|
832
|
-
className:
|
|
966
|
+
].join(" "), mt = ({ edge: n, standing: r, navName: i, children: a, testId: o }) => /* @__PURE__ */ t("header", {
|
|
967
|
+
className: ft({ edge: n }),
|
|
833
968
|
"data-testid": o,
|
|
834
969
|
children: [/* @__PURE__ */ e("div", {
|
|
835
|
-
className:
|
|
970
|
+
className: pt,
|
|
836
971
|
children: r
|
|
837
972
|
}), /* @__PURE__ */ e("nav", {
|
|
838
973
|
"aria-label": i,
|
|
839
974
|
className: "flex flex-wrap items-baseline gap-[var(--space-region)]",
|
|
840
975
|
children: a
|
|
841
976
|
})]
|
|
842
|
-
}),
|
|
977
|
+
}), ht = h("flex flex-col min-h-[var(--fold-height)] gap-[var(--space-stack)]", {
|
|
843
978
|
variants: { place: {
|
|
844
979
|
start: "justify-start",
|
|
845
980
|
center: "justify-center",
|
|
846
981
|
between: "justify-between"
|
|
847
982
|
} },
|
|
848
983
|
defaultVariants: { place: "center" }
|
|
849
|
-
}),
|
|
850
|
-
className:
|
|
984
|
+
}), gt = ({ place: t, children: n, testId: r }) => /* @__PURE__ */ e("div", {
|
|
985
|
+
className: ht({ place: t }),
|
|
851
986
|
"data-testid": r,
|
|
852
987
|
children: n
|
|
853
|
-
}),
|
|
854
|
-
className:
|
|
988
|
+
}), _t = h("flex flex-col gap-[var(--space-stack)] py-[var(--space-band)] px-[var(--gutter)]"), vt = h("font-primary text-title leading-title tracking-optical text-foreground"), yt = h("font-primary text-lede leading-lede text-foreground max-w-[var(--measure-wide)]"), bt = h("font-primary text-small text-muted max-w-[var(--measure)]"), xt = ({ title: n, lede: r, intro: i, testId: a }) => /* @__PURE__ */ t("header", {
|
|
989
|
+
className: _t(),
|
|
855
990
|
"data-testid": a,
|
|
856
991
|
children: [
|
|
857
992
|
/* @__PURE__ */ e("h1", {
|
|
858
|
-
className:
|
|
993
|
+
className: vt(),
|
|
859
994
|
children: n
|
|
860
995
|
}),
|
|
861
996
|
r !== void 0 && /* @__PURE__ */ e("p", {
|
|
862
|
-
className:
|
|
997
|
+
className: yt(),
|
|
863
998
|
children: r
|
|
864
999
|
}),
|
|
865
1000
|
i !== void 0 && /* @__PURE__ */ e("p", {
|
|
866
|
-
className:
|
|
1001
|
+
className: bt(),
|
|
867
1002
|
children: i
|
|
868
1003
|
})
|
|
869
1004
|
]
|
|
870
|
-
}),
|
|
1005
|
+
}), St = h([
|
|
871
1006
|
"relative",
|
|
872
1007
|
"py-[var(--space-band)]",
|
|
873
1008
|
"[[data-section]+&]:border-t [[data-section]+&]:border-solid [[data-section]+&]:border-rule"
|
|
@@ -877,20 +1012,20 @@ var d = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, f = u, p = (e
|
|
|
877
1012
|
full: ""
|
|
878
1013
|
} },
|
|
879
1014
|
defaultVariants: { bleed: "inset" }
|
|
880
|
-
}),
|
|
1015
|
+
}), X = ({ bleed: t, name: n, children: r, testId: i }) => /* @__PURE__ */ e("section", {
|
|
881
1016
|
"data-section": "",
|
|
882
|
-
className:
|
|
1017
|
+
className: St({ bleed: t }),
|
|
883
1018
|
"aria-label": n,
|
|
884
1019
|
"data-testid": i,
|
|
885
1020
|
children: r
|
|
886
|
-
}),
|
|
1021
|
+
}), Ct = h([
|
|
887
1022
|
"grid gap-[var(--space-region)] lg:grid-cols-[12rem_minmax(0,1fr)]",
|
|
888
1023
|
"[&>div:first-child]:border-solid [&>div:first-child]:border-border [&>div:first-child]:border-b [&>div:first-child]:pb-[var(--space-stack)]",
|
|
889
1024
|
"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)]",
|
|
890
1025
|
"lg:[&>div:first-child>nav]:sticky lg:[&>div:first-child>nav]:top-0 lg:[&>div:first-child>nav]:max-h-[min(100dvh,var(--sidebar-scrollport-height,100dvh))] lg:[&>div:first-child>nav]:overflow-y-auto",
|
|
891
1026
|
"[&>div:first-child>nav]:p-[calc(var(--focus-ring-width)+var(--focus-ring-offset))] lg:[&>div:first-child>nav]:scroll-p-[calc(var(--focus-ring-width)+var(--focus-ring-offset))]",
|
|
892
1027
|
"[&>div:first-child>nav>ul]:flex [&>div:first-child>nav>ul]:flex-col [&>div:first-child>nav>ul]:gap-[var(--space-stack)]"
|
|
893
|
-
].join(" ")),
|
|
1028
|
+
].join(" ")), wt = (e) => {
|
|
894
1029
|
if (!e) return;
|
|
895
1030
|
let t = [];
|
|
896
1031
|
for (let n = e.parentElement; n && n !== e.ownerDocument.documentElement; n = n.parentElement) t.push(n);
|
|
@@ -904,7 +1039,7 @@ var d = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, f = u, p = (e
|
|
|
904
1039
|
return window.addEventListener("resize", n), () => {
|
|
905
1040
|
r?.disconnect(), window.removeEventListener("resize", n), e.style.removeProperty("--sidebar-scrollport-height");
|
|
906
1041
|
};
|
|
907
|
-
},
|
|
1042
|
+
}, Tt = h([
|
|
908
1043
|
"w-full text-left font-secondary text-label tracking-label",
|
|
909
1044
|
"underline-offset-[var(--underline-offset)]",
|
|
910
1045
|
"outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]"
|
|
@@ -916,29 +1051,29 @@ var d = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, f = u, p = (e
|
|
|
916
1051
|
} },
|
|
917
1052
|
defaultVariants: { state: "usable" }
|
|
918
1053
|
}), Z = r(void 0), Q = ({ entryKey: t, children: n, inert: r, testId: i }) => {
|
|
919
|
-
let
|
|
1054
|
+
let a = o(Z), s = a !== void 0 && a.active === t;
|
|
920
1055
|
return /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e("button", {
|
|
921
1056
|
type: "button",
|
|
922
|
-
className:
|
|
1057
|
+
className: Tt({ state: r ? "inert" : s ? "active" : "usable" }),
|
|
923
1058
|
disabled: r,
|
|
924
1059
|
"aria-current": s ? "true" : void 0,
|
|
925
1060
|
"data-testid": i,
|
|
926
1061
|
onClick: () => {
|
|
927
|
-
s ||
|
|
1062
|
+
s || a?.onSelect$.next(t);
|
|
928
1063
|
},
|
|
929
1064
|
children: n
|
|
930
1065
|
}) });
|
|
931
1066
|
}, $ = ({ children: t, testId: n }) => /* @__PURE__ */ e("div", {
|
|
932
1067
|
"data-testid": n,
|
|
933
1068
|
children: t
|
|
934
|
-
}),
|
|
1069
|
+
}), Et = {
|
|
935
1070
|
Root: ({ active: r, label: a, onSelect$: o, children: s, testId: c }) => {
|
|
936
1071
|
let l = n.toArray(s).filter(i);
|
|
937
1072
|
return /* @__PURE__ */ t("div", {
|
|
938
|
-
className:
|
|
1073
|
+
className: Ct(),
|
|
939
1074
|
"data-testid": c,
|
|
940
1075
|
children: [/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("nav", {
|
|
941
|
-
ref:
|
|
1076
|
+
ref: wt,
|
|
942
1077
|
"aria-label": a,
|
|
943
1078
|
children: /* @__PURE__ */ e(Z, {
|
|
944
1079
|
value: {
|
|
@@ -952,7 +1087,7 @@ var d = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, f = u, p = (e
|
|
|
952
1087
|
},
|
|
953
1088
|
Item: Q,
|
|
954
1089
|
Content: $
|
|
955
|
-
},
|
|
1090
|
+
}, Dt = {
|
|
956
1091
|
surface: "#ffffff",
|
|
957
1092
|
foreground: "#0f172a",
|
|
958
1093
|
muted: "#64748b",
|
|
@@ -960,6 +1095,7 @@ var d = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, f = u, p = (e
|
|
|
960
1095
|
controlBorder: "#64748b",
|
|
961
1096
|
rule: "#808fa3",
|
|
962
1097
|
backing: "#f1f5f9",
|
|
1098
|
+
scrim: "rgb(15 23 42 / 0.5)",
|
|
963
1099
|
meterFill: "#0f172a",
|
|
964
1100
|
meterTrack: "#e2e8f0",
|
|
965
1101
|
primary: "#7c3aed",
|
|
@@ -976,7 +1112,7 @@ var d = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, f = u, p = (e
|
|
|
976
1112
|
warning: "#b45309",
|
|
977
1113
|
error: "#d63384",
|
|
978
1114
|
info: "#0e7490"
|
|
979
|
-
},
|
|
1115
|
+
}, Ot = {
|
|
980
1116
|
surface: "#0f172a",
|
|
981
1117
|
foreground: "#f8fafc",
|
|
982
1118
|
muted: "#94a3b8",
|
|
@@ -984,6 +1120,7 @@ var d = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, f = u, p = (e
|
|
|
984
1120
|
controlBorder: "#94a3b8",
|
|
985
1121
|
rule: "#5b6a80",
|
|
986
1122
|
backing: "#1e293b",
|
|
1123
|
+
scrim: "rgb(15 23 42 / 0.5)",
|
|
987
1124
|
meterFill: "#f8fafc",
|
|
988
1125
|
meterTrack: "#334155",
|
|
989
1126
|
primary: "#8b5cf6",
|
|
@@ -1002,4 +1139,4 @@ var d = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, f = u, p = (e
|
|
|
1002
1139
|
info: "#22d3ee"
|
|
1003
1140
|
};
|
|
1004
1141
|
//#endregion
|
|
1005
|
-
export {
|
|
1142
|
+
export { x as Brandmark, Ne as Button, w as Checklist, _ as Cluster, te as Collection, Qe as Cover, ae as DefinitionList, ot as Dialog, N as Eyebrow, se as Figure, ct as Footer, dt as Form, F as H1, L as H2, ge as H3, ve as H4, be as H5, Se as H6, mt as Header, gt as Hero, Fe as Input, Le as Link, ue as Meter, we as Note, Ee as P, xt as PageHead, je as Prose, he as Rail, X as Section, Et as Sidebar, Be as Slider, y as Stack, j as Table, qe as Tabs, Ye as TextArea, Ot as dark, Dt as light };
|