@juwel-development/design-system 3.0.0 → 3.1.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 +31 -0
- package/dist/design-system.js +202 -126
- package/dist/index.css +1 -1
- package/dist/types/Arrangement/Cluster/Cluster.d.ts +50 -0
- package/dist/types/Arrangement/Stack/Stack.d.ts +46 -0
- package/dist/types/Display/Figure/Figure.d.ts +21 -4
- package/dist/types/Display/Rail/Rail.d.ts +6 -0
- package/dist/types/Display/Typography/H1/H1.d.ts +7 -1
- package/dist/types/Display/Typography/Note/Note.d.ts +35 -0
- package/dist/types/Interaction/Link/Link.d.ts +4 -4
- package/dist/types/Layout/Form/Form.d.ts +8 -4
- package/dist/types/Layout/Header/Header.d.ts +20 -1
- package/dist/types/Layout/Hero/Hero.d.ts +9 -7
- package/dist/types/Layout/Section/Section.d.ts +7 -0
- package/dist/types/Theme/Palette.d.ts +55 -6
- package/dist/types/index.d.ts +3 -0
- package/package.json +1 -1
- package/src/Arrangement/Cluster/Cluster.tsx +80 -0
- package/src/Arrangement/Stack/Stack.tsx +75 -0
- package/src/Display/Figure/Figure.tsx +48 -7
- package/src/Display/Rail/Rail.tsx +6 -0
- package/src/Display/Typography/H1/H1.tsx +17 -7
- package/src/Display/Typography/Note/Note.tsx +56 -0
- package/src/Interaction/Button/Button.tsx +4 -1
- package/src/Interaction/Input/Input.tsx +17 -6
- package/src/Interaction/Link/Link.tsx +9 -5
- package/src/Interaction/TextArea/TextArea.tsx +17 -6
- package/src/Layout/Form/Form.tsx +24 -8
- package/src/Layout/Header/Header.tsx +37 -4
- package/src/Layout/Hero/Hero.tsx +10 -6
- package/src/Layout/PageHead/PageHead.tsx +2 -0
- package/src/Layout/Section/Section.tsx +11 -0
- package/src/Theme/Palette.ts +63 -14
- package/src/Theme/renderTokens.ts +18 -1
- package/src/index.ts +3 -0
- package/src/tokens.css +20 -9
- package/src/tokens.dark.css +16 -5
- package/src/tokens.light.css +16 -5
package/dist/design-system.js
CHANGED
|
@@ -46,61 +46,111 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
|
|
|
46
46
|
r
|
|
47
47
|
] : e;
|
|
48
48
|
}, []), n?.class, n?.className);
|
|
49
|
-
}, u = l("
|
|
49
|
+
}, u = l("flex flex-wrap items-baseline gap-y-[var(--space-stack)]", {
|
|
50
|
+
variants: {
|
|
51
|
+
gap: {
|
|
52
|
+
stack: "gap-x-[var(--space-stack)]",
|
|
53
|
+
region: "gap-x-[var(--space-region)]"
|
|
54
|
+
},
|
|
55
|
+
justify: {
|
|
56
|
+
start: "",
|
|
57
|
+
between: "justify-between"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
defaultVariants: {
|
|
61
|
+
gap: "region",
|
|
62
|
+
justify: "start"
|
|
63
|
+
}
|
|
64
|
+
}), d = ({ gap: t, justify: n, children: r, testId: i }) => /* @__PURE__ */ e("div", {
|
|
65
|
+
className: u({
|
|
66
|
+
gap: t,
|
|
67
|
+
justify: n
|
|
68
|
+
}),
|
|
69
|
+
"data-testid": i,
|
|
70
|
+
children: r
|
|
71
|
+
}), f = l("flex", {
|
|
72
|
+
variants: {
|
|
73
|
+
gap: {
|
|
74
|
+
stack: "gap-[var(--space-stack)]",
|
|
75
|
+
region: "gap-[var(--space-region)]"
|
|
76
|
+
},
|
|
77
|
+
measure: {
|
|
78
|
+
true: "max-w-[var(--measure)]",
|
|
79
|
+
false: ""
|
|
80
|
+
},
|
|
81
|
+
direction: {
|
|
82
|
+
column: "flex-col",
|
|
83
|
+
split: "flex-col lg:flex-row lg:items-start"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
defaultVariants: {
|
|
87
|
+
gap: "stack",
|
|
88
|
+
measure: !1,
|
|
89
|
+
direction: "column"
|
|
90
|
+
}
|
|
91
|
+
}), p = ({ gap: t, measure: n, direction: r, children: i, testId: a }) => /* @__PURE__ */ e("div", {
|
|
92
|
+
className: f({
|
|
93
|
+
gap: t,
|
|
94
|
+
measure: n,
|
|
95
|
+
direction: r
|
|
96
|
+
}),
|
|
97
|
+
"data-testid": a,
|
|
98
|
+
children: i
|
|
99
|
+
}), m = l("inline-flex", { variants: { cut: {
|
|
50
100
|
full: "",
|
|
51
101
|
compact: ""
|
|
52
|
-
} } }),
|
|
102
|
+
} } }), h = ({ name: t, cut: n, children: r, testId: i }) => t === "" ? /* @__PURE__ */ e("span", {
|
|
53
103
|
"aria-hidden": "true",
|
|
54
104
|
"data-cut": n,
|
|
55
|
-
className:
|
|
105
|
+
className: m({ cut: n }),
|
|
56
106
|
"data-testid": i,
|
|
57
107
|
children: r
|
|
58
108
|
}) : /* @__PURE__ */ e("span", {
|
|
59
109
|
role: "img",
|
|
60
110
|
"aria-label": t,
|
|
61
111
|
"data-cut": n,
|
|
62
|
-
className:
|
|
112
|
+
className: m({ cut: n }),
|
|
63
113
|
"data-testid": i,
|
|
64
114
|
children: r
|
|
65
|
-
}),
|
|
115
|
+
}), g = l("m-0 list-none p-0"), _ = l([
|
|
66
116
|
"flex items-start gap-3 font-primary text-body leading-body text-foreground",
|
|
67
117
|
"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-['']",
|
|
68
118
|
"[&: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)]"
|
|
69
|
-
].join(" ")),
|
|
119
|
+
].join(" ")), v = {
|
|
70
120
|
Root: ({ children: t, testId: n }) => /* @__PURE__ */ e("ul", {
|
|
71
|
-
className:
|
|
121
|
+
className: g(),
|
|
72
122
|
role: "list",
|
|
73
123
|
"data-testid": n,
|
|
74
124
|
children: t
|
|
75
125
|
}),
|
|
76
126
|
Item: ({ children: t }) => /* @__PURE__ */ e("li", {
|
|
77
|
-
className:
|
|
127
|
+
className: _(),
|
|
78
128
|
children: t
|
|
79
129
|
})
|
|
80
|
-
},
|
|
130
|
+
}, y = l([
|
|
81
131
|
"grid gap-[var(--space-stack)] py-6",
|
|
82
132
|
"border-b border-solid border-border first:border-t",
|
|
83
133
|
"lg:grid-cols-[16rem_minmax(0,1fr)] lg:items-baseline lg:gap-x-12",
|
|
84
134
|
"lg:[&>dt]:col-start-1 lg:[&>dd]:col-start-2 lg:[&>dd]:row-start-1"
|
|
85
|
-
].join(" ")),
|
|
135
|
+
].join(" ")), b = l("font-primary text-subtitle leading-subtitle text-foreground"), x = l("font-primary text-body leading-body text-muted max-w-[var(--measure)]"), S = {
|
|
86
136
|
Root: ({ children: t, testId: n }) => /* @__PURE__ */ e("dl", {
|
|
87
137
|
"data-testid": n,
|
|
88
138
|
children: t
|
|
89
139
|
}),
|
|
90
140
|
Item: ({ children: t, testId: n }) => /* @__PURE__ */ e("div", {
|
|
91
|
-
className:
|
|
141
|
+
className: y(),
|
|
92
142
|
"data-testid": n,
|
|
93
143
|
children: t
|
|
94
144
|
}),
|
|
95
145
|
Term: ({ children: t }) => /* @__PURE__ */ e("dt", {
|
|
96
|
-
className:
|
|
146
|
+
className: b(),
|
|
97
147
|
children: t
|
|
98
148
|
}),
|
|
99
149
|
Description: ({ children: t }) => /* @__PURE__ */ e("dd", {
|
|
100
|
-
className:
|
|
150
|
+
className: x(),
|
|
101
151
|
children: t
|
|
102
152
|
})
|
|
103
|
-
},
|
|
153
|
+
}, C = l("block w-full object-cover bg-backing", {
|
|
104
154
|
variants: {
|
|
105
155
|
ratio: {
|
|
106
156
|
portrait: "aspect-portrait",
|
|
@@ -117,46 +167,50 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
|
|
|
117
167
|
}
|
|
118
168
|
},
|
|
119
169
|
defaultVariants: { focus: "center" }
|
|
120
|
-
}),
|
|
121
|
-
let
|
|
170
|
+
}), w = ({ src: n, alt: r, width: i, height: a, ratio: o, focus: s, responsive: c, caption: l, overlay: u, priority: d, testId: f }) => {
|
|
171
|
+
let p = u != null && typeof u != "boolean", m = /* @__PURE__ */ e("img", {
|
|
122
172
|
src: n,
|
|
123
173
|
alt: r,
|
|
124
174
|
width: i,
|
|
125
175
|
height: a,
|
|
126
|
-
className:
|
|
176
|
+
className: C({
|
|
127
177
|
ratio: o,
|
|
128
178
|
focus: s
|
|
129
179
|
}),
|
|
130
180
|
srcSet: c?.srcSet,
|
|
131
181
|
sizes: c?.sizes,
|
|
132
|
-
loading:
|
|
133
|
-
fetchPriority:
|
|
182
|
+
loading: d ? "eager" : "lazy",
|
|
183
|
+
fetchPriority: d ? "high" : void 0,
|
|
134
184
|
decoding: "async",
|
|
135
|
-
"data-testid": l === void 0 ?
|
|
136
|
-
})
|
|
137
|
-
|
|
185
|
+
"data-testid": l === void 0 && !p ? f : void 0
|
|
186
|
+
}), h = p ? /* @__PURE__ */ t("div", {
|
|
187
|
+
className: "relative",
|
|
188
|
+
"data-testid": l === void 0 ? f : void 0,
|
|
189
|
+
children: [m, u]
|
|
190
|
+
}) : m;
|
|
191
|
+
return l === void 0 ? h : /* @__PURE__ */ t("figure", {
|
|
138
192
|
className: "flex flex-col gap-[var(--space-stack)]",
|
|
139
|
-
"data-testid":
|
|
140
|
-
children: [
|
|
193
|
+
"data-testid": f,
|
|
194
|
+
children: [h, /* @__PURE__ */ e("figcaption", {
|
|
141
195
|
className: "font-secondary text-label tracking-label text-muted",
|
|
142
196
|
children: l
|
|
143
197
|
})]
|
|
144
198
|
});
|
|
145
|
-
},
|
|
199
|
+
}, T = l(["grid gap-[var(--space-stack)]", "lg:grid-cols-[10rem_minmax(0,1fr)] lg:items-start lg:gap-x-12"].join(" ")), E = l("lg:sticky lg:top-6"), ee = l("block border-b border-solid border-border pb-1 font-secondary text-label tracking-label text-muted"), te = l("block pt-1 font-secondary text-label tracking-label text-foreground"), D = {
|
|
146
200
|
Root: ({ children: t, testId: n }) => /* @__PURE__ */ e("div", {
|
|
147
|
-
className:
|
|
201
|
+
className: T(),
|
|
148
202
|
"data-testid": n,
|
|
149
203
|
children: t
|
|
150
204
|
}),
|
|
151
205
|
Index: ({ number: n, children: r, testId: i }) => /* @__PURE__ */ t("div", {
|
|
152
|
-
className:
|
|
206
|
+
className: E(),
|
|
153
207
|
"data-testid": i,
|
|
154
208
|
"aria-hidden": "true",
|
|
155
209
|
children: [n !== void 0 && /* @__PURE__ */ e("span", {
|
|
156
|
-
className:
|
|
210
|
+
className: ee(),
|
|
157
211
|
children: n
|
|
158
212
|
}), /* @__PURE__ */ e("span", {
|
|
159
|
-
className:
|
|
213
|
+
className: te(),
|
|
160
214
|
children: r
|
|
161
215
|
})]
|
|
162
216
|
}),
|
|
@@ -164,7 +218,7 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
|
|
|
164
218
|
"data-testid": n,
|
|
165
219
|
children: t
|
|
166
220
|
})
|
|
167
|
-
},
|
|
221
|
+
}, O = l([
|
|
168
222
|
"[&:not([data-notes])]:overflow-x-auto",
|
|
169
223
|
"[&>table]:w-full [&>table]:border-collapse [&>table]:text-left",
|
|
170
224
|
"[&_caption]:pb-3 [&_caption]:text-left [&_caption]:font-secondary [&_caption]:text-label [&_caption]:tracking-label [&_caption]:text-muted",
|
|
@@ -173,7 +227,7 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
|
|
|
173
227
|
"[&[data-notes=content]>table]:max-md:block",
|
|
174
228
|
"[&[data-notes=content]_thead]:max-md:block [&[data-notes=content]_tbody]:max-md:block [&[data-notes=content]_tfoot]:max-md:block",
|
|
175
229
|
"[&[data-notes=content]_tr]:max-md:block [&[data-notes=content]_td]:max-md:block [&[data-notes=content]_th]:max-md:block"
|
|
176
|
-
].join(" ")),
|
|
230
|
+
].join(" ")), k = l("border-t border-solid border-border"), A = l("px-4 py-2 text-small first:pl-0 last:pr-0", {
|
|
177
231
|
variants: {
|
|
178
232
|
variant: {
|
|
179
233
|
value: "font-primary text-foreground tabular-nums",
|
|
@@ -189,24 +243,24 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
|
|
|
189
243
|
variant: "value",
|
|
190
244
|
align: "left"
|
|
191
245
|
}
|
|
192
|
-
}),
|
|
246
|
+
}), j = l("px-4 py-2 font-secondary font-medium text-label text-muted tracking-label first:pl-0 last:pr-0", {
|
|
193
247
|
variants: { align: {
|
|
194
248
|
left: "text-left",
|
|
195
249
|
right: "text-right",
|
|
196
250
|
center: "text-center"
|
|
197
251
|
} },
|
|
198
252
|
defaultVariants: { align: "left" }
|
|
199
|
-
}),
|
|
253
|
+
}), M = {
|
|
200
254
|
Root: ({ caption: n, notes: r, children: i, testId: a }) => {
|
|
201
255
|
let o = /* @__PURE__ */ t("table", { children: [/* @__PURE__ */ e("caption", { children: n }), i] });
|
|
202
256
|
return r === void 0 ? /* @__PURE__ */ e("section", {
|
|
203
|
-
className:
|
|
257
|
+
className: O(),
|
|
204
258
|
"data-testid": a,
|
|
205
259
|
"aria-label": n,
|
|
206
260
|
tabIndex: 0,
|
|
207
261
|
children: o
|
|
208
262
|
}) : /* @__PURE__ */ e("div", {
|
|
209
|
-
className:
|
|
263
|
+
className: O(),
|
|
210
264
|
"data-notes": r,
|
|
211
265
|
"data-testid": a,
|
|
212
266
|
children: o
|
|
@@ -216,150 +270,160 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
|
|
|
216
270
|
Body: ({ children: t }) => /* @__PURE__ */ e("tbody", { children: t }),
|
|
217
271
|
Footer: ({ children: t }) => /* @__PURE__ */ e("tfoot", { children: t }),
|
|
218
272
|
Row: ({ children: t, testId: n }) => /* @__PURE__ */ e("tr", {
|
|
219
|
-
className:
|
|
273
|
+
className: k(),
|
|
220
274
|
"data-testid": n,
|
|
221
275
|
children: t
|
|
222
276
|
}),
|
|
223
277
|
HeaderCell: ({ scope: t, align: n, children: r }) => /* @__PURE__ */ e("th", {
|
|
224
278
|
scope: t,
|
|
225
|
-
className:
|
|
279
|
+
className: j({ align: n }),
|
|
226
280
|
children: r
|
|
227
281
|
}),
|
|
228
282
|
Cell: ({ variant: t, align: n, children: r }) => /* @__PURE__ */ e("td", {
|
|
229
|
-
className:
|
|
283
|
+
className: A({
|
|
230
284
|
variant: t,
|
|
231
285
|
align: n
|
|
232
286
|
}),
|
|
233
287
|
"data-variant": t ?? "value",
|
|
234
288
|
children: r
|
|
235
289
|
})
|
|
236
|
-
},
|
|
290
|
+
}, N = l("font-secondary text-label tracking-label font-medium", {
|
|
237
291
|
variants: { color: {
|
|
238
292
|
foreground: "text-foreground",
|
|
239
293
|
muted: "text-muted"
|
|
240
294
|
} },
|
|
241
295
|
defaultVariants: { color: "muted" }
|
|
242
|
-
}),
|
|
243
|
-
className:
|
|
296
|
+
}), P = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("p", {
|
|
297
|
+
className: N({ color: n }),
|
|
298
|
+
"data-testid": r,
|
|
299
|
+
children: t
|
|
300
|
+
}), F = l("font-primary text-display leading-display tracking-optical max-w-[var(--measure-display)]", {
|
|
301
|
+
variants: { color: {
|
|
302
|
+
foreground: "text-foreground",
|
|
303
|
+
muted: "text-muted"
|
|
304
|
+
} },
|
|
305
|
+
defaultVariants: { color: "foreground" }
|
|
306
|
+
}), I = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("h1", {
|
|
307
|
+
className: F({ color: n }),
|
|
244
308
|
"data-testid": r,
|
|
245
309
|
children: t
|
|
246
|
-
}),
|
|
310
|
+
}), L = l("font-primary text-title leading-title tracking-optical", {
|
|
247
311
|
variants: { color: {
|
|
248
312
|
foreground: "text-foreground",
|
|
249
313
|
muted: "text-muted"
|
|
250
314
|
} },
|
|
251
315
|
defaultVariants: { color: "foreground" }
|
|
252
|
-
}),
|
|
253
|
-
className:
|
|
316
|
+
}), R = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("h2", {
|
|
317
|
+
className: L({ color: n }),
|
|
254
318
|
"data-testid": r,
|
|
255
319
|
children: t
|
|
256
|
-
}),
|
|
320
|
+
}), z = l("font-primary text-subtitle leading-subtitle", {
|
|
257
321
|
variants: { color: {
|
|
258
322
|
foreground: "text-foreground",
|
|
259
323
|
muted: "text-muted"
|
|
260
324
|
} },
|
|
261
325
|
defaultVariants: { color: "foreground" }
|
|
262
|
-
}),
|
|
263
|
-
className:
|
|
326
|
+
}), B = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("h3", {
|
|
327
|
+
className: z({ color: n }),
|
|
264
328
|
"data-testid": r,
|
|
265
329
|
children: t
|
|
266
|
-
}),
|
|
330
|
+
}), V = l("font-primary text-body leading-body font-bold", {
|
|
267
331
|
variants: { color: {
|
|
268
332
|
foreground: "text-foreground",
|
|
269
333
|
muted: "text-muted"
|
|
270
334
|
} },
|
|
271
335
|
defaultVariants: { color: "foreground" }
|
|
272
|
-
}),
|
|
273
|
-
className:
|
|
336
|
+
}), H = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("h4", {
|
|
337
|
+
className: V({ color: n }),
|
|
274
338
|
"data-testid": r,
|
|
275
339
|
children: t
|
|
276
|
-
}),
|
|
340
|
+
}), U = l("font-primary text-body leading-body font-semibold", {
|
|
277
341
|
variants: { color: {
|
|
278
342
|
foreground: "text-foreground",
|
|
279
343
|
muted: "text-muted"
|
|
280
344
|
} },
|
|
281
345
|
defaultVariants: { color: "foreground" }
|
|
282
|
-
}),
|
|
283
|
-
className:
|
|
346
|
+
}), W = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("h5", {
|
|
347
|
+
className: U({ color: n }),
|
|
284
348
|
"data-testid": r,
|
|
285
349
|
children: t
|
|
286
|
-
}),
|
|
350
|
+
}), G = l("font-primary text-body leading-body font-medium", {
|
|
287
351
|
variants: { color: {
|
|
288
352
|
foreground: "text-foreground",
|
|
289
353
|
muted: "text-muted"
|
|
290
354
|
} },
|
|
291
355
|
defaultVariants: { color: "foreground" }
|
|
292
|
-
}),
|
|
293
|
-
className:
|
|
356
|
+
}), K = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("h6", {
|
|
357
|
+
className: G({ color: n }),
|
|
294
358
|
"data-testid": r,
|
|
295
359
|
children: t
|
|
296
|
-
}),
|
|
360
|
+
}), q = l("font-secondary text-small", {
|
|
297
361
|
variants: { color: {
|
|
298
362
|
foreground: "text-foreground",
|
|
299
363
|
muted: "text-muted"
|
|
300
364
|
} },
|
|
301
365
|
defaultVariants: { color: "foreground" }
|
|
302
|
-
}),
|
|
303
|
-
className:
|
|
366
|
+
}), J = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("p", {
|
|
367
|
+
className: q({ color: n }),
|
|
304
368
|
"data-testid": r,
|
|
305
369
|
children: t
|
|
306
|
-
}),
|
|
370
|
+
}), Y = l("font-primary text-body leading-body", {
|
|
307
371
|
variants: { color: {
|
|
308
372
|
foreground: "text-foreground",
|
|
309
373
|
muted: "text-muted"
|
|
310
374
|
} },
|
|
311
375
|
defaultVariants: { color: "foreground" }
|
|
312
|
-
}),
|
|
313
|
-
className:
|
|
376
|
+
}), X = ({ children: t, color: n, testId: r }) => /* @__PURE__ */ e("p", {
|
|
377
|
+
className: Y({ color: n }),
|
|
314
378
|
"data-testid": r,
|
|
315
379
|
children: t
|
|
316
|
-
}),
|
|
380
|
+
}), Z = l("flex max-w-[var(--measure)] flex-col gap-[var(--space-stack)]"), Q = l("font-primary text-lede leading-lede text-foreground"), ne = l("font-primary text-body leading-body", {
|
|
317
381
|
variants: { color: {
|
|
318
382
|
foreground: "text-foreground",
|
|
319
383
|
muted: "text-muted"
|
|
320
384
|
} },
|
|
321
385
|
defaultVariants: { color: "foreground" }
|
|
322
|
-
}),
|
|
386
|
+
}), re = l("font-primary text-small text-muted"), ie = {
|
|
323
387
|
Root: ({ children: t, testId: n }) => /* @__PURE__ */ e("div", {
|
|
324
|
-
className:
|
|
388
|
+
className: Z(),
|
|
325
389
|
"data-testid": n,
|
|
326
390
|
children: t
|
|
327
391
|
}),
|
|
328
392
|
Lede: ({ children: t }) => /* @__PURE__ */ e("p", {
|
|
329
|
-
className:
|
|
393
|
+
className: Q(),
|
|
330
394
|
children: t
|
|
331
395
|
}),
|
|
332
396
|
Body: ({ color: t, children: n }) => /* @__PURE__ */ e("p", {
|
|
333
|
-
className:
|
|
397
|
+
className: ne({ color: t }),
|
|
334
398
|
children: n
|
|
335
399
|
}),
|
|
336
400
|
Tail: ({ children: t }) => /* @__PURE__ */ e("p", {
|
|
337
|
-
className:
|
|
401
|
+
className: re(),
|
|
338
402
|
children: t
|
|
339
403
|
})
|
|
340
|
-
},
|
|
404
|
+
}, ae = l("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)]", {
|
|
341
405
|
variants: { variant: {
|
|
342
406
|
primary: "px-4 sm:px-6 min-w-[var(--control-min-width)] bg-primary text-primary-foreground hover:bg-primary-hover",
|
|
343
407
|
secondary: "px-4 sm:px-6 min-w-[var(--control-min-width)] bg-secondary text-secondary-foreground hover:bg-secondary-hover",
|
|
344
408
|
ghost: "px-2 min-w-0 bg-transparent text-foreground hover:underline hover:decoration-[length:var(--underline-thickness)] hover:underline-offset-[var(--underline-offset)]"
|
|
345
409
|
} },
|
|
346
410
|
defaultVariants: { variant: "primary" }
|
|
347
|
-
}),
|
|
411
|
+
}), oe = ({ children: t, disabled: n, testId: r, variant: i, onClick$: a, ariaLabel: o, type: s = "button" }) => /* @__PURE__ */ e("button", {
|
|
348
412
|
type: s,
|
|
349
413
|
"data-testid": r,
|
|
350
|
-
className:
|
|
414
|
+
className: ae({ variant: i }),
|
|
351
415
|
onClick: () => a?.next(),
|
|
352
416
|
disabled: n,
|
|
353
417
|
"aria-label": o,
|
|
354
418
|
children: t
|
|
355
|
-
}),
|
|
419
|
+
}), se = l("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", {
|
|
356
420
|
variants: { variant: {
|
|
357
421
|
text: "",
|
|
358
422
|
email: "",
|
|
359
423
|
url: ""
|
|
360
424
|
} },
|
|
361
425
|
defaultVariants: { variant: "text" }
|
|
362
|
-
}),
|
|
426
|
+
}), ce = ({ label: a, name: o, variant: s, required: c, optionalLabel: l, invalid: u, disabled: d, defaultValue: f, placeholder: p, autocomplete: m, hint: h, errorMessage: g, onInput$: _, reset$: v, testId: y }) => {
|
|
363
427
|
let b = r(), x = `${b}-control`, S = `${b}-hint`, C = `${b}-error`, w = [h ? S : void 0, u ? C : void 0].filter(Boolean).join(" ") || void 0, T = i(null);
|
|
364
428
|
return n(() => {
|
|
365
429
|
let e = v?.subscribe(() => {
|
|
@@ -371,7 +435,7 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
|
|
|
371
435
|
children: [
|
|
372
436
|
/* @__PURE__ */ e("label", {
|
|
373
437
|
htmlFor: x,
|
|
374
|
-
className: "font-medium text-foreground",
|
|
438
|
+
className: "font-secondary font-medium text-body text-foreground",
|
|
375
439
|
children: a
|
|
376
440
|
}),
|
|
377
441
|
/* @__PURE__ */ e("input", {
|
|
@@ -379,7 +443,7 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
|
|
|
379
443
|
id: x,
|
|
380
444
|
name: o,
|
|
381
445
|
type: s ?? "text",
|
|
382
|
-
className:
|
|
446
|
+
className: se({ variant: s }),
|
|
383
447
|
required: c,
|
|
384
448
|
disabled: d,
|
|
385
449
|
defaultValue: f,
|
|
@@ -391,38 +455,38 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
|
|
|
391
455
|
onInput: (e) => _?.next(e.currentTarget.value)
|
|
392
456
|
}),
|
|
393
457
|
!c && l && /* @__PURE__ */ e("span", {
|
|
394
|
-
className: "text-muted text-
|
|
458
|
+
className: "font-secondary text-muted text-small",
|
|
395
459
|
children: l
|
|
396
460
|
}),
|
|
397
461
|
h && /* @__PURE__ */ e("p", {
|
|
398
462
|
id: S,
|
|
399
|
-
className: "text-muted text-
|
|
463
|
+
className: "font-secondary text-muted text-small",
|
|
400
464
|
children: h
|
|
401
465
|
}),
|
|
402
466
|
u && /* @__PURE__ */ e("p", {
|
|
403
467
|
id: C,
|
|
404
|
-
className: "text-error text-
|
|
468
|
+
className: "font-secondary text-error text-small",
|
|
405
469
|
children: g
|
|
406
470
|
})
|
|
407
471
|
]
|
|
408
472
|
});
|
|
409
|
-
},
|
|
473
|
+
}, le = l("outline-focus-ring outline-offset-[var(--focus-ring-offset)] focus-visible:outline focus-visible:outline-[length:var(--focus-ring-width)]", {
|
|
410
474
|
variants: { treatment: {
|
|
411
475
|
prose: "text-link underline decoration-[length:var(--underline-thickness)] underline-offset-[var(--underline-offset)] hover:decoration-[length:var(--underline-thickness-hover)]",
|
|
412
|
-
quiet: "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",
|
|
476
|
+
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",
|
|
413
477
|
"label-link": "text-inherit no-underline decoration-[length:var(--underline-thickness)] underline-offset-[var(--underline-offset)] hover:underline",
|
|
414
478
|
graphic: "text-inherit no-underline"
|
|
415
479
|
} },
|
|
416
480
|
defaultVariants: { treatment: "prose" }
|
|
417
|
-
}),
|
|
481
|
+
}), ue = ({ href: t, children: n, treatment: r, external: i, current: a, testId: o }) => /* @__PURE__ */ e("a", {
|
|
418
482
|
href: t,
|
|
419
|
-
className:
|
|
483
|
+
className: le({ treatment: r }),
|
|
420
484
|
target: i ? "_blank" : void 0,
|
|
421
485
|
rel: i ? "noopener noreferrer" : void 0,
|
|
422
486
|
"aria-current": a ? "page" : void 0,
|
|
423
487
|
"data-testid": o,
|
|
424
488
|
children: n
|
|
425
|
-
}),
|
|
489
|
+
}), de = l("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"), fe = ({ label: a, name: o, required: s, optionalLabel: c, invalid: l, disabled: u, defaultValue: d, placeholder: f, autocomplete: p, hint: m, errorMessage: h, onInput$: g, reset$: _, testId: v }) => {
|
|
426
490
|
let y = r(), b = `${y}-control`, x = `${y}-hint`, S = `${y}-error`, C = [m ? x : void 0, l ? S : void 0].filter(Boolean).join(" ") || void 0, w = i(null);
|
|
427
491
|
return n(() => {
|
|
428
492
|
let e = _?.subscribe(() => {
|
|
@@ -434,14 +498,14 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
|
|
|
434
498
|
children: [
|
|
435
499
|
/* @__PURE__ */ e("label", {
|
|
436
500
|
htmlFor: b,
|
|
437
|
-
className: "font-medium text-foreground",
|
|
501
|
+
className: "font-secondary font-medium text-body text-foreground",
|
|
438
502
|
children: a
|
|
439
503
|
}),
|
|
440
504
|
/* @__PURE__ */ e("textarea", {
|
|
441
505
|
ref: w,
|
|
442
506
|
id: b,
|
|
443
507
|
name: o,
|
|
444
|
-
className:
|
|
508
|
+
className: de(),
|
|
445
509
|
required: s,
|
|
446
510
|
disabled: u,
|
|
447
511
|
defaultValue: d,
|
|
@@ -453,32 +517,32 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
|
|
|
453
517
|
onInput: (e) => g?.next(e.currentTarget.value)
|
|
454
518
|
}),
|
|
455
519
|
!s && c && /* @__PURE__ */ e("span", {
|
|
456
|
-
className: "text-muted text-
|
|
520
|
+
className: "font-secondary text-muted text-small",
|
|
457
521
|
children: c
|
|
458
522
|
}),
|
|
459
523
|
m && /* @__PURE__ */ e("p", {
|
|
460
524
|
id: x,
|
|
461
|
-
className: "text-muted text-
|
|
525
|
+
className: "font-secondary text-muted text-small",
|
|
462
526
|
children: m
|
|
463
527
|
}),
|
|
464
528
|
l && /* @__PURE__ */ e("p", {
|
|
465
529
|
id: S,
|
|
466
|
-
className: "text-error text-
|
|
530
|
+
className: "font-secondary text-error text-small",
|
|
467
531
|
children: h
|
|
468
532
|
})
|
|
469
533
|
]
|
|
470
534
|
});
|
|
471
|
-
},
|
|
535
|
+
}, pe = l("font-secondary text-small text-muted py-[var(--space-region)] px-[var(--gutter)]", {
|
|
472
536
|
variants: { edge: {
|
|
473
537
|
none: "",
|
|
474
538
|
rule: "border-t border-solid border-rule"
|
|
475
539
|
} },
|
|
476
540
|
defaultVariants: { edge: "rule" }
|
|
477
|
-
}),
|
|
478
|
-
className:
|
|
541
|
+
}), me = ({ edge: t, children: n, testId: r }) => /* @__PURE__ */ e("footer", {
|
|
542
|
+
className: pe({ edge: t }),
|
|
479
543
|
"data-testid": r,
|
|
480
544
|
children: n
|
|
481
|
-
}),
|
|
545
|
+
}), he = l("font-secondary text-small", {
|
|
482
546
|
variants: { state: {
|
|
483
547
|
idle: "text-muted",
|
|
484
548
|
sending: "text-muted",
|
|
@@ -486,12 +550,13 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
|
|
|
486
550
|
failed: "text-error"
|
|
487
551
|
} },
|
|
488
552
|
defaultVariants: { state: "idle" }
|
|
489
|
-
}),
|
|
553
|
+
}), ge = {
|
|
490
554
|
sent: "status",
|
|
491
555
|
failed: "alert"
|
|
492
|
-
},
|
|
493
|
-
|
|
494
|
-
|
|
556
|
+
}, _e = ({ action: n, method: r = "post", state: i = "idle", children: a, actions: o, note: s, testId: c }) => {
|
|
557
|
+
let l = s != null && typeof s != "boolean";
|
|
558
|
+
if (i === "sent" && !l) throw Error("Form in the `sent` state must be given a `note` - it is the outcome message.");
|
|
559
|
+
let u = i !== "sent", d = ge[i];
|
|
495
560
|
return /* @__PURE__ */ t("form", {
|
|
496
561
|
action: n,
|
|
497
562
|
method: r,
|
|
@@ -499,24 +564,24 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
|
|
|
499
564
|
"data-testid": c,
|
|
500
565
|
className: "flex max-w-[var(--measure)] flex-col gap-[var(--space-region)]",
|
|
501
566
|
children: [
|
|
502
|
-
|
|
567
|
+
u && /* @__PURE__ */ e("div", {
|
|
503
568
|
className: "flex flex-col gap-[var(--space-stack)]",
|
|
504
569
|
children: a
|
|
505
570
|
}),
|
|
506
|
-
|
|
571
|
+
u && o && /* @__PURE__ */ e("div", {
|
|
507
572
|
className: "flex flex-row gap-[var(--space-stack)]",
|
|
508
573
|
children: o
|
|
509
574
|
}),
|
|
510
|
-
|
|
511
|
-
role:
|
|
512
|
-
className:
|
|
575
|
+
l && /* @__PURE__ */ e("p", {
|
|
576
|
+
role: d,
|
|
577
|
+
className: he({ state: i }),
|
|
513
578
|
children: s
|
|
514
579
|
})
|
|
515
580
|
]
|
|
516
581
|
});
|
|
517
|
-
},
|
|
582
|
+
}, ve = l([
|
|
518
583
|
"flex items-baseline justify-between",
|
|
519
|
-
"font-secondary text-label tracking-label text-muted",
|
|
584
|
+
"font-secondary text-label leading-label tracking-label text-muted",
|
|
520
585
|
"py-[var(--space-region)] px-[var(--gutter)]",
|
|
521
586
|
"[&_[aria-current=page]]:text-foreground"
|
|
522
587
|
].join(" "), {
|
|
@@ -525,10 +590,17 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
|
|
|
525
590
|
rule: "border-b border-solid border-rule"
|
|
526
591
|
} },
|
|
527
592
|
defaultVariants: { edge: "rule" }
|
|
528
|
-
}),
|
|
529
|
-
|
|
593
|
+
}), ye = [
|
|
594
|
+
"inline-flex shrink-0 items-center",
|
|
595
|
+
"min-h-[calc(var(--text-label)*var(--leading-label))]",
|
|
596
|
+
"min-w-[var(--standing-min-width)]"
|
|
597
|
+
].join(" "), be = ({ edge: n, standing: r, navName: i, children: a, testId: o }) => /* @__PURE__ */ t("header", {
|
|
598
|
+
className: ve({ edge: n }),
|
|
530
599
|
"data-testid": o,
|
|
531
|
-
children: [/* @__PURE__ */ e("div", {
|
|
600
|
+
children: [/* @__PURE__ */ e("div", {
|
|
601
|
+
className: ye,
|
|
602
|
+
children: r
|
|
603
|
+
}), /* @__PURE__ */ e("nav", {
|
|
532
604
|
"aria-label": i,
|
|
533
605
|
className: "flex flex-wrap items-baseline gap-[var(--space-region)]",
|
|
534
606
|
children: a
|
|
@@ -540,40 +612,44 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
|
|
|
540
612
|
between: "justify-between"
|
|
541
613
|
} },
|
|
542
614
|
defaultVariants: { place: "center" }
|
|
543
|
-
}),
|
|
615
|
+
}), xe = ({ place: t, children: n, testId: r }) => /* @__PURE__ */ e("div", {
|
|
544
616
|
className: $({ place: t }),
|
|
545
617
|
"data-testid": r,
|
|
546
618
|
children: n
|
|
547
|
-
}),
|
|
548
|
-
className:
|
|
619
|
+
}), Se = l("flex flex-col gap-[var(--space-stack)] py-[var(--space-band)] px-[var(--gutter)]"), Ce = l("font-primary text-title leading-title tracking-optical text-foreground"), we = l("font-primary text-lede leading-lede text-foreground max-w-[var(--measure-wide)]"), Te = l("font-primary text-small text-muted max-w-[var(--measure)]"), Ee = ({ title: n, lede: r, intro: i, testId: a }) => /* @__PURE__ */ t("header", {
|
|
620
|
+
className: Se(),
|
|
549
621
|
"data-testid": a,
|
|
550
622
|
children: [
|
|
551
623
|
/* @__PURE__ */ e("h1", {
|
|
552
|
-
className:
|
|
624
|
+
className: Ce(),
|
|
553
625
|
children: n
|
|
554
626
|
}),
|
|
555
627
|
r !== void 0 && /* @__PURE__ */ e("p", {
|
|
556
|
-
className:
|
|
628
|
+
className: we(),
|
|
557
629
|
children: r
|
|
558
630
|
}),
|
|
559
631
|
i !== void 0 && /* @__PURE__ */ e("p", {
|
|
560
|
-
className:
|
|
632
|
+
className: Te(),
|
|
561
633
|
children: i
|
|
562
634
|
})
|
|
563
635
|
]
|
|
564
|
-
}),
|
|
636
|
+
}), De = l([
|
|
637
|
+
"relative",
|
|
638
|
+
"py-[var(--space-band)]",
|
|
639
|
+
"[[data-section]+&]:border-t [[data-section]+&]:border-solid [[data-section]+&]:border-rule"
|
|
640
|
+
].join(" "), {
|
|
565
641
|
variants: { bleed: {
|
|
566
642
|
inset: "px-[var(--gutter)]",
|
|
567
643
|
full: ""
|
|
568
644
|
} },
|
|
569
645
|
defaultVariants: { bleed: "inset" }
|
|
570
|
-
}),
|
|
646
|
+
}), Oe = ({ bleed: t, name: n, children: r, testId: i }) => /* @__PURE__ */ e("section", {
|
|
571
647
|
"data-section": "",
|
|
572
|
-
className:
|
|
648
|
+
className: De({ bleed: t }),
|
|
573
649
|
"aria-label": n,
|
|
574
650
|
"data-testid": i,
|
|
575
651
|
children: r
|
|
576
|
-
}),
|
|
652
|
+
}), ke = {
|
|
577
653
|
surface: "#ffffff",
|
|
578
654
|
foreground: "#0f172a",
|
|
579
655
|
muted: "#64748b",
|
|
@@ -581,11 +657,11 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
|
|
|
581
657
|
controlBorder: "#64748b",
|
|
582
658
|
rule: "#808fa3",
|
|
583
659
|
backing: "#f1f5f9",
|
|
584
|
-
primary: "#
|
|
585
|
-
primaryHover: "#
|
|
660
|
+
primary: "#7c3aed",
|
|
661
|
+
primaryHover: "#6d28d9",
|
|
586
662
|
primaryForeground: "#f8fafc",
|
|
587
|
-
secondary: "#
|
|
588
|
-
secondaryHover: "#
|
|
663
|
+
secondary: "#0369a1",
|
|
664
|
+
secondaryHover: "#075985",
|
|
589
665
|
secondaryForeground: "#f8fafc",
|
|
590
666
|
disabled: "#94a3b8",
|
|
591
667
|
disabledHover: "#64748b",
|
|
@@ -595,7 +671,7 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
|
|
|
595
671
|
warning: "#f59e0b",
|
|
596
672
|
error: "#d63384",
|
|
597
673
|
info: "#06b6d4"
|
|
598
|
-
},
|
|
674
|
+
}, Ae = {
|
|
599
675
|
surface: "#0f172a",
|
|
600
676
|
foreground: "#f8fafc",
|
|
601
677
|
muted: "#94a3b8",
|
|
@@ -603,12 +679,12 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
|
|
|
603
679
|
controlBorder: "#94a3b8",
|
|
604
680
|
rule: "#5b6a80",
|
|
605
681
|
backing: "#1e293b",
|
|
606
|
-
primary: "#
|
|
607
|
-
primaryHover: "#
|
|
608
|
-
primaryForeground: "#
|
|
682
|
+
primary: "#8b5cf6",
|
|
683
|
+
primaryHover: "#a78bfa",
|
|
684
|
+
primaryForeground: "#020617",
|
|
609
685
|
secondary: "#0284c7",
|
|
610
686
|
secondaryHover: "#0ea5e9",
|
|
611
|
-
secondaryForeground: "#
|
|
687
|
+
secondaryForeground: "#020617",
|
|
612
688
|
disabled: "#475569",
|
|
613
689
|
disabledHover: "#334155",
|
|
614
690
|
focusRing: "#cbd5e1",
|
|
@@ -619,4 +695,4 @@ var s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, c = o, l = (e
|
|
|
619
695
|
info: "#22d3ee"
|
|
620
696
|
};
|
|
621
697
|
//#endregion
|
|
622
|
-
export {
|
|
698
|
+
export { h as Brandmark, oe as Button, v as Checklist, d as Cluster, S as DefinitionList, P as Eyebrow, w as Figure, me as Footer, _e as Form, I as H1, R as H2, B as H3, H as H4, W as H5, K as H6, be as Header, xe as Hero, ce as Input, ue as Link, J as Note, X as P, Ee as PageHead, ie as Prose, D as Rail, Oe as Section, p as Stack, M as Table, fe as TextArea, Ae as dark, ke as light };
|