@burdenoff/fe-libs 2026.1120.1 → 2026.1120.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,13 @@
1
+ export type EmptyStateArtModule = typeof import('./empty-state-art');
2
+ /** Start loading the art, or return the load already in flight. */
3
+ export declare function loadEmptyStateArt(): Promise<EmptyStateArtModule>;
4
+ /**
5
+ * The art module once it has loaded, else null. While `needed`, it starts the load; a caller
6
+ * that does not need art (an inline or menu size, no picture) never fetches the chunk.
7
+ */
8
+ export declare function useEmptyStateArt(needed: boolean): EmptyStateArtModule | null;
9
+ /**
10
+ * Test seam: replace how the chunk is imported (or restore the real import) and forget any
11
+ * module already loaded, so a test starts from the unloaded state.
12
+ */
13
+ export declare function setEmptyStateArtImporter(importer?: () => Promise<EmptyStateArtModule>): void;
@@ -0,0 +1,25 @@
1
+ import { useEffect as e, useSyncExternalStore as t } from "react";
2
+ // src/ui/empty-state-art-loader.ts
3
+ var n = null, r = null, i = /* @__PURE__ */ new Set(), a = () => import("./empty-state-art.js");
4
+ function o() {
5
+ return n ? Promise.resolve(n) : (r ??= a().then((e) => {
6
+ n = e, r = null;
7
+ for (let e of [...i]) e();
8
+ return e;
9
+ }, (e) => {
10
+ throw r = null, e;
11
+ }), r);
12
+ }
13
+ function s(e) {
14
+ return i.add(e), () => {
15
+ i.delete(e);
16
+ };
17
+ }
18
+ var c = () => n, l = () => null;
19
+ function u(r) {
20
+ let i = t(s, c, l);
21
+ return e(() => {
22
+ r && !n && o().catch(() => {});
23
+ }, [r]), r ? i : null;
24
+ }
25
+ export { o as loadEmptyStateArt, u as useEmptyStateArt };
@@ -0,0 +1,19 @@
1
+ import { LucideIcon } from 'lucide-react';
2
+ import { EmptyStateArtKey } from './empty-state-map';
3
+ export { resolveEmptyStateArt } from './empty-state-map';
4
+ /** The illustrations drawn so far, in the order above. */
5
+ export declare const DRAWN_EMPTY_STATE_ART: readonly EmptyStateArtKey[];
6
+ /** Own keys only: a name from untyped data (`constructor`) is never a drawing. */
7
+ export declare function isEmptyStateArtDrawn(key: EmptyStateArtKey | 'glass'): key is EmptyStateArtKey;
8
+ export declare function emptyStateSubjectGlyph(key: EmptyStateArtKey | 'glass'): LucideIcon | null;
9
+ export interface EmptyStateDrawingProps {
10
+ art: EmptyStateArtKey;
11
+ /** Unique per instance: names this drawing's paint servers. */
12
+ uid: string;
13
+ }
14
+ /**
15
+ * One illustration with its own paint servers (they resolve the stylesheet's variables where
16
+ * they are defined, so the drawing follows the theme of the page it is on). Decorative: the
17
+ * box around it is aria-hidden.
18
+ */
19
+ export declare function EmptyStateDrawing({ art, uid }: EmptyStateDrawingProps): import('react').JSX.Element | null;
@@ -0,0 +1,530 @@
1
+ import { resolveEmptyStateArt as e } from "./empty-state-map.js";
2
+ import { createElement as t } from "react";
3
+ import { Clapperboard as n, Sprout as r } from "lucide-react";
4
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
5
+ // src/ui/empty-state-art.tsx
6
+ var o = (e, t) => t.reduce((e, t) => ({
7
+ ...e,
8
+ ...t
9
+ }), e), s = (e) => Math.round(e * 100) / 100, c = (e, t, ...n) => ({
10
+ tag: "path",
11
+ role: e,
12
+ attrs: o({ d: t }, n)
13
+ }), l = (e, t, n, r, ...i) => ({
14
+ tag: "circle",
15
+ role: e,
16
+ attrs: o({
17
+ cx: t,
18
+ cy: n,
19
+ r
20
+ }, i)
21
+ }), u = (e, t, n, r, i, ...a) => ({
22
+ tag: "ellipse",
23
+ role: e,
24
+ attrs: o({
25
+ cx: t,
26
+ cy: n,
27
+ rx: r,
28
+ ry: i
29
+ }, a)
30
+ }), d = (e, t, n, r, i, a, ...s) => ({
31
+ tag: "rect",
32
+ role: e,
33
+ attrs: o({
34
+ x: t,
35
+ y: n,
36
+ width: r,
37
+ height: i,
38
+ rx: a
39
+ }, s)
40
+ }), f = (e) => ({ strokeWidth: e }), p = (e) => ({ opacity: e }), m = (e, t, n) => ({ transform: `rotate(${e} ${t} ${n})` });
41
+ function h(e, t, n, r = .28) {
42
+ let i = n * r;
43
+ return `M${s(e)} ${s(t - n)}Q${s(e + i)} ${s(t - i)} ${s(e + n)} ${s(t)}Q${s(e + i)} ${s(t + i)} ${s(e)} ${s(t + n)}Q${s(e - i)} ${s(t + i)} ${s(e - n)} ${s(t)}Q${s(e - i)} ${s(t - i)} ${s(e)} ${s(t - n)}Z`;
44
+ }
45
+ function g(e, t, n, r) {
46
+ return `M${s(e - t)} ${s(r)}V${s(n + t * .75)}Q${s(e - t)} ${s(n)} ${s(e)} ${s(n)}Q${s(e + t)} ${s(n)} ${s(e + t)} ${s(n + t * .75)}V${s(r - 3)}Q${s(e + t)} ${s(r)} ${s(e + t - 3)} ${s(r)}H${s(e - t + 3)}Q${s(e - t)} ${s(r)} ${s(e - t)} ${s(r - 3)}Z`;
47
+ }
48
+ var _ = (e = 60, t = 102, n = 32, r = 5.5) => u("s", e, t, n, r);
49
+ function v(e, t, n) {
50
+ let r = [];
51
+ for (let i = 0; i < e; i += 1) for (let e = 0; e < t; e += 1) r.push(n(i, e));
52
+ return r;
53
+ }
54
+ var y = {
55
+ box: [
56
+ _(60, 102, 34),
57
+ c("b", "M28 52L60 38L49 23L17 37Z"),
58
+ c("b", "M60 38L92 52L103 37L71 23Z"),
59
+ c("i", "M28 52L60 38L92 52L60 66Z"),
60
+ c("a", "M28 52L60 66V97L28 83Z"),
61
+ c("c", "M60 66L92 52V83L60 97Z"),
62
+ c("hl", "M31 56L57 67.5"),
63
+ c("hl", "M63 67.5L89 56"),
64
+ c("h", "M32 60.5L35.5 62V78L32 76.5Z"),
65
+ c("x", h(84, 22, 5.5)),
66
+ c("x", h(36, 18, 3.5))
67
+ ],
68
+ people: [
69
+ _(60, 102, 38),
70
+ l("b", 34, 46, 10.5),
71
+ c("b", g(34, 17, 61, 93)),
72
+ l("b", 86, 46, 10.5),
73
+ c("b", g(86, 17, 61, 93)),
74
+ l("a", 60, 39, 14),
75
+ c("a", g(60, 23, 58, 98)),
76
+ c("hl", "M50 33A11 11 0 0 1 58 27.5"),
77
+ c("hl", "M41 73Q42 63 52 61"),
78
+ c("h", "M27 41A8 8 0 0 1 32 37.5L31 40.5A5 5 0 0 0 28 43Z"),
79
+ c("h", "M79 41A8 8 0 0 1 84 37.5L83 40.5A5 5 0 0 0 80 43Z")
80
+ ],
81
+ documents: [
82
+ _(62, 103, 30),
83
+ d("b", 26, 24, 46, 60, 6, m(-11, 49, 54)),
84
+ c("a", "M45 31H73L88 46V89A6 6 0 0 1 82 95H45A6 6 0 0 1 39 89V37A6 6 0 0 1 45 31Z"),
85
+ c("c", "M73 31V41A5 5 0 0 0 78 46H88Z"),
86
+ c("l", "M48 57H70"),
87
+ c("l", "M48 66H79"),
88
+ c("l", "M48 75H75"),
89
+ c("l", "M48 84H62"),
90
+ c("h", "M43.5 38A3 3 0 0 1 46.5 35H52L43.5 50Z")
91
+ ],
92
+ messages: [
93
+ _(58, 102, 34),
94
+ c("b", "M55 24H88A12 12 0 0 1 100 36V54A12 12 0 0 1 88 66H86V77L74 66H55A12 12 0 0 1 43 54V36A12 12 0 0 1 55 24Z"),
95
+ c("a", "M32 42H70A13 13 0 0 1 83 55V75A13 13 0 0 1 70 88H44L30 99V88A13 13 0 0 1 19 75V55A13 13 0 0 1 32 42Z"),
96
+ l("k", 37, 65, 4),
97
+ l("k", 51, 65, 4),
98
+ l("k", 65, 65, 4),
99
+ c("h", "M24 52A9 9 0 0 1 31 46H38L24 62Z")
100
+ ],
101
+ assistant: [
102
+ _(60, 102, 30),
103
+ u("l", 60, 60, 46, 13, m(-22, 60, 60), p(.45)),
104
+ l("a", 60, 58, 30),
105
+ c("f", h(60, 58, 18, .24)),
106
+ c("c", h(90, 26, 9, .26)),
107
+ c("x", h(30, 88, 5.5)),
108
+ c("x", h(98, 72, 3.5)),
109
+ c("h", "M38 44A24 24 0 0 1 52 31L54 35.5A19 19 0 0 0 42.5 46Z")
110
+ ],
111
+ calendar: [
112
+ _(58, 102, 34),
113
+ d("f", 20, 28, 68, 64, 10),
114
+ c("a", "M30 28H78A10 10 0 0 1 88 38V46H20V38A10 10 0 0 1 30 28Z"),
115
+ d("c", 34, 20, 7, 15, 3.5),
116
+ d("c", 67, 20, 7, 15, 3.5),
117
+ ...v(3, 4, (e, t) => d("k", 29 + t * 14, 54 + e * 12, 8, 6, 2, p(.55))),
118
+ l("c", 86, 82, 17),
119
+ c("l", "M86 73V82L92 86"),
120
+ c("h", "M24 34A6 6 0 0 1 30 31H40L24 43Z")
121
+ ],
122
+ tasks: [
123
+ _(60, 103, 32),
124
+ d("a", 28, 26, 64, 74, 11),
125
+ d("f", 36, 36, 48, 56, 6),
126
+ d("c", 46, 18, 28, 15, 6),
127
+ l("k", 60, 25.5, 2.4, p(.7)),
128
+ d("l", 43, 46, 7, 7, 2),
129
+ c("l", "M56 49.5H76"),
130
+ d("l", 43, 61, 7, 7, 2),
131
+ c("l", "M56 64.5H72"),
132
+ d("l", 43, 76, 7, 7, 2),
133
+ c("l", "M56 79.5H68"),
134
+ c("h", "M32 34A6 6 0 0 1 38 30H44L32 46Z")
135
+ ],
136
+ security: [
137
+ _(60, 104, 28),
138
+ c("b", "M64 22L95 33V58C95 79 81 93 64 101C47 93 33 79 33 58V33Z"),
139
+ c("a", "M60 18L91 29V54C91 75 77 89 60 97C43 89 29 75 29 54V29Z"),
140
+ c("f", "M60 28L82 36V54C82 69 72 79 60 85C48 79 38 69 38 54V36Z", p(.55)),
141
+ c("l", "M48 56L57 65L74 47"),
142
+ c("h", "M33 33L58 23.5V29L37 37V48L33 50Z")
143
+ ],
144
+ workflows: [
145
+ _(60, 104, 34),
146
+ c("ga", "M44 42C62 42 60 60 74 60", f(4), p(.85)),
147
+ c("ga", "M34 54C34 70 38 78 46 82", f(4), p(.85)),
148
+ d("a", 20, 26, 28, 28, 9),
149
+ d("c", 70, 46, 28, 28, 9),
150
+ d("b", 42, 72, 28, 28, 9),
151
+ c("k", "M30 34L40 40L30 46Z"),
152
+ l("k", 84, 60, 4, p(.85)),
153
+ d("k", 50, 83, 12, 6, 3, p(.85)),
154
+ c("h", "M24 33A5 5 0 0 1 29 29H34L24 41Z"),
155
+ c("h", "M74 53A5 5 0 0 1 79 49H84L74 61Z"),
156
+ l("x", 74, 60, 3),
157
+ l("x", 46, 82, 3)
158
+ ],
159
+ connections: [
160
+ _(62, 100, 36),
161
+ c("gc", "M10 80C26 82 24 64 38 64", f(5)),
162
+ c("ga", "M110 52C100 50 104 64 96 64", f(5)),
163
+ d("a", 34, 50, 24, 28, 7),
164
+ d("k", 58, 55, 12, 4.5, 2.2, p(.9)),
165
+ d("k", 58, 68.5, 12, 4.5, 2.2, p(.9)),
166
+ d("c", 74, 46, 24, 36, 8),
167
+ d("i", 79, 55, 3, 7, 1.5),
168
+ d("i", 79, 66, 3, 7, 1.5),
169
+ c("x", h(68, 36, 6)),
170
+ c("x", h(56, 30, 3.2)),
171
+ c("h", "M37.5 56A4 4 0 0 1 41.5 53H45L37.5 63Z"),
172
+ c("h", "M77.5 53A4 4 0 0 1 81.5 49H85L77.5 60Z")
173
+ ],
174
+ servers: [
175
+ _(60, 103, 36),
176
+ d("c", 24, 24, 72, 22, 7),
177
+ d("a", 24, 50, 72, 22, 7),
178
+ d("b", 24, 76, 72, 22, 7),
179
+ c("l", "M34 35H58"),
180
+ c("l", "M34 61H52"),
181
+ c("l", "M34 87H62"),
182
+ l("k", 78, 35, 3),
183
+ l("x", 87, 35, 3),
184
+ l("k", 78, 61, 3),
185
+ l("x", 87, 61, 3),
186
+ l("k", 78, 87, 3),
187
+ l("k", 87, 87, 3, p(.5)),
188
+ c("h", "M28 30A4 4 0 0 1 32 27H70L28 31Z"),
189
+ c("h", "M28 56A4 4 0 0 1 32 53H62L28 57Z")
190
+ ],
191
+ "data-tables": [
192
+ _(60, 103, 36),
193
+ d("f", 18, 26, 84, 68, 10),
194
+ c("a", "M28 26H92A10 10 0 0 1 102 36V43H18V36A10 10 0 0 1 28 26Z"),
195
+ d("c", 46, 58, 26, 16, 3),
196
+ c("l", "M22 58H98", p(.6)),
197
+ c("l", "M22 74H98", p(.6)),
198
+ c("l", "M46 43V94", p(.6)),
199
+ c("l", "M72 43V94", p(.6)),
200
+ d("k", 26, 32, 14, 5, 2.5, p(.85)),
201
+ d("k", 52, 32, 14, 5, 2.5, p(.85)),
202
+ d("k", 78, 32, 14, 5, 2.5, p(.85)),
203
+ c("h", "M22 33A5 5 0 0 1 27 29H36L22 40Z")
204
+ ],
205
+ variables: [
206
+ _(60, 104, 32),
207
+ c("ga", "M41 24C31.5 24.5 32.5 32 32.5 41V50C32.5 56 30 59.5 24.5 60C30 60.5 32.5 64 32.5 70V79C32.5 88 31.5 95.5 41 96", f(8)),
208
+ c("gc", "M79 24C88.5 24.5 87.5 32 87.5 41V50C87.5 56 90 59.5 95.5 60C90 60.5 87.5 64 87.5 70V79C87.5 88 88.5 95.5 79 96", f(8)),
209
+ c("hl", "M38.5 28.5C35.5 30 35.6 34 35.6 40"),
210
+ c("hl", "M81.5 28.5C84.5 30 84.4 34 84.4 40"),
211
+ d("f", 46, 45, 28, 30, 8),
212
+ c("l", "M53.5 53L66.5 67M66.5 53L53.5 67")
213
+ ],
214
+ history: [
215
+ _(58, 103, 34),
216
+ d("b", 34, 18, 54, 40, 8),
217
+ d("c", 27, 28, 54, 40, 8),
218
+ d("f", 20, 38, 54, 44, 8),
219
+ c("l", "M29 52H55"),
220
+ c("l", "M29 61H63"),
221
+ c("l", "M29 70H49"),
222
+ l("a", 80, 80, 19),
223
+ c("l", "M80 70V80L87 84"),
224
+ c("ga", "M66 69A17 17 0 0 1 93 67", f(2.6), p(.9)),
225
+ c("h", "M24 45A5 5 0 0 1 29 41H36L24 54Z")
226
+ ],
227
+ notifications: [
228
+ _(60, 104, 30),
229
+ c("l", "M23 45Q16 54 23 63", p(.5)),
230
+ c("l", "M97 45Q104 54 97 63", p(.5)),
231
+ l("b", 60, 21, 5),
232
+ c("a", "M60 24C45 24 37 36 37 51V66L29 78H91L83 66V51C83 36 75 24 60 24Z"),
233
+ d("c", 26, 76, 68, 9, 4.5),
234
+ l("c", 60, 92, 6.5),
235
+ c("h", "M43 50C43 40 48 32 55 30L52 36C48.5 39 47 44 47 50V62L43 63Z")
236
+ ],
237
+ money: [
238
+ _(58, 103, 34),
239
+ d("c", 32, 22, 50, 30, 6, m(-10, 57, 37)),
240
+ c("l", "M40 36H58", m(-10, 57, 37)),
241
+ d("a", 20, 40, 76, 52, 11),
242
+ d("b", 66, 55, 34, 22, 8),
243
+ l("k", 77, 66, 4),
244
+ l("c", 94, 90, 10),
245
+ l("l", 94, 90, 5.5),
246
+ c("h", "M24 50A7 7 0 0 1 31 44H44L24 64Z")
247
+ ],
248
+ places: [
249
+ _(60, 103, 36),
250
+ d("b", 58, 36, 38, 62, 5),
251
+ ...v(4, 2, (e, t) => d("k", 66 + t * 14, 46 + e * 12, 8, 6, 1.6, p(.5))),
252
+ d("a", 24, 20, 40, 78, 6),
253
+ ...v(5, 2, (e, t) => d("k", 32 + t * 15, 30 + e * 11, 9, 6, 1.6, p(.75))),
254
+ d("f", 37, 84, 14, 14, 3),
255
+ c("h", "M28 28A5 5 0 0 1 33 24H40L28 40Z")
256
+ ],
257
+ charts: [
258
+ _(60, 102, 36),
259
+ d("f", 20, 26, 80, 62, 10),
260
+ d("b", 31, 60, 11, 20, 4),
261
+ d("a", 47, 47, 11, 33, 4),
262
+ d("c", 63, 38, 11, 42, 4),
263
+ d("b", 79, 53, 11, 27, 4),
264
+ c("l", "M30 49L47 39L61 44L84 27"),
265
+ l("x", 84, 27, 4),
266
+ c("l", "M28 82H92"),
267
+ c("h", "M24 34A6 6 0 0 1 30 29H44L24 46Z")
268
+ ],
269
+ maps: [
270
+ _(60, 104, 40),
271
+ c("f", "M16 46L42 37L66 46L94 37V90L66 99L42 90L16 99Z", p(.9)),
272
+ c("i", "M42 37L66 46V99L42 90Z"),
273
+ c("ld", "M26 86C36 78 44 84 52 76"),
274
+ u("s", 60, 77, 10, 3),
275
+ c("a", "M60 15C46 15 37 25 37 38C37 55 60 76 60 76C60 76 83 55 83 38C83 25 74 15 60 15Z"),
276
+ l("f", 60, 38, 9),
277
+ c("h", "M42 33C43 25 49 20 56 19L53 24C49 25.5 46.5 29 45.5 34Z")
278
+ ],
279
+ goals: [
280
+ _(56, 104, 32),
281
+ l("b", 56, 64, 34),
282
+ l("a", 56, 64, 25),
283
+ l("f", 56, 64, 15, p(.8)),
284
+ l("c", 56, 64, 6.5),
285
+ c("l", "M57 63L88 32"),
286
+ c("c", "M86 34L86 22L94 15L95 25Z"),
287
+ c("c", "M86 34L98 34L105 26L95 25Z"),
288
+ c("h", "M29 54A28 28 0 0 1 45 34L47 38A24 24 0 0 0 33 55Z")
289
+ ],
290
+ files: [
291
+ _(60, 103, 38),
292
+ c("b", "M20 34A6 6 0 0 1 26 28H46L53 35H90A6 6 0 0 1 96 41V86A6 6 0 0 1 90 92H26A6 6 0 0 1 20 86Z"),
293
+ d("f", 32, 32, 40, 34, 4, m(-7, 52, 49)),
294
+ d("f", 44, 30, 40, 34, 4, m(6, 64, 47)),
295
+ c("a", "M15 54A6 6 0 0 1 21 48H99A6 6 0 0 1 105 54L98 87A7 7 0 0 1 91 93H28A7 7 0 0 1 21 87Z"),
296
+ c("hl", "M20 53.5H100"),
297
+ c("h", "M19.5 57H24L26 75H22Z")
298
+ ],
299
+ learning: [
300
+ _(60, 103, 40),
301
+ c("b", "M18 84C32 80 47 81 60 87C73 81 88 80 102 84V91C88 87 73 88 60 94C47 88 32 87 18 91Z"),
302
+ c("a", "M60 37C47 30 32 29 18 33V84C32 80 47 81 60 87Z"),
303
+ c("c", "M60 37C73 30 88 29 102 33V84C88 80 73 81 60 87Z"),
304
+ c("l", "M27 47C35 45 43 45 51 48"),
305
+ c("l", "M27 57C35 55 43 55 51 58"),
306
+ c("l", "M27 67C35 65 41 65 46 67"),
307
+ c("l", "M69 48C77 45 85 45 93 47"),
308
+ c("l", "M69 58C77 55 85 55 93 57"),
309
+ c("f", "M83 31V50L88 45.5L93 50V31Z"),
310
+ c("hl", "M60 40C60.6 55 59.4 70 60 84")
311
+ ],
312
+ "no-results": [
313
+ _(58, 103, 30),
314
+ c("c", "M70.5 76.5L76.5 70.5L98 92A4.2 4.2 0 0 1 92 98Z"),
315
+ l("f", 50, 50, 24, p(.7)),
316
+ l("ga", 50, 50, 26, f(8)),
317
+ c("hl", "M33 46A18 18 0 0 1 45 33"),
318
+ l("x", 44, 52, 2.4),
319
+ l("x", 52, 52, 2.4),
320
+ l("x", 60, 52, 2.4)
321
+ ],
322
+ filtered: [
323
+ _(60, 104, 22),
324
+ l("c", 40, 16, 4),
325
+ l("x", 58, 11, 3),
326
+ l("c", 78, 17, 4.5),
327
+ c("a", "M24 34H96L69 64V89L51 98V64Z"),
328
+ u("f", 60, 34, 36, 7.5),
329
+ c("hl", "M33 40L54 63"),
330
+ c("ld", "M60 101V112")
331
+ ],
332
+ error: [
333
+ _(56, 100, 34),
334
+ c("a", "M34 84A17 17 0 0 1 32 50A23 23 0 0 1 76 43A19 19 0 0 1 84 84Z"),
335
+ c("l", "M44 66L52 58L58 66L66 58"),
336
+ l("c", 86, 80, 16),
337
+ c("l", "M86 72V81"),
338
+ l("k", 86, 88, 2.3),
339
+ c("h", "M24 64A12 12 0 0 1 31 54L33 58A8 8 0 0 0 28 65Z")
340
+ ],
341
+ offline: [
342
+ _(60, 102, 28),
343
+ c("ga", "M24 54A52 52 0 0 1 96 54", f(7), p(.55)),
344
+ c("ga", "M36 66A34 34 0 0 1 84 66", f(7), p(.8)),
345
+ c("ga", "M48 78A16 16 0 0 1 72 78", f(7)),
346
+ l("c", 60, 90, 6),
347
+ c("gc", "M28 26L94 96", f(7)),
348
+ c("hl", "M30 30L90 93")
349
+ ],
350
+ "no-access": [
351
+ _(60, 104, 30),
352
+ c("ga", "M45 54V43A15 15 0 0 1 75 43V54", f(9)),
353
+ c("hl", "M47 44A13 13 0 0 1 54 32"),
354
+ d("a", 30, 52, 60, 46, 12),
355
+ c("f", "M60 64A7 7 0 0 1 63.5 77L65 86H55L56.5 77A7 7 0 0 1 60 64Z"),
356
+ c("h", "M34 62A8 8 0 0 1 42 56H50L34 72Z")
357
+ ],
358
+ "all-done": [
359
+ _(60, 104, 28),
360
+ l("a", 60, 60, 31),
361
+ c("l", "M46 61L56 71L76 50"),
362
+ c("c", h(93, 28, 9, .26)),
363
+ c("x", h(26, 34, 5.5)),
364
+ c("x", h(95, 86, 4)),
365
+ l("x", 22, 76, 2.4),
366
+ l("x", 104, 56, 2),
367
+ c("h", "M36 48A26 26 0 0 1 50 32L52 36.5A21 21 0 0 0 40.5 50Z")
368
+ ],
369
+ "not-found": [
370
+ _(62, 103, 30),
371
+ d("ld", 50, 26, 50, 64, 9),
372
+ d("a", 20, 34, 48, 62, 9, m(-9, 44, 65)),
373
+ c("l", "M36 56A8 8 0 1 1 46 63.5C44 64.5 43.5 66 43.5 69", m(-9, 44, 65)),
374
+ l("k", 44, 77, 2.4, m(-9, 44, 65)),
375
+ c("h", "M24 43A6 6 0 0 1 30 37H38L24 52Z", m(-9, 44, 65))
376
+ ]
377
+ }, b = Object.keys(y).filter((e) => Object.hasOwn(y, e));
378
+ function x(e) {
379
+ return e !== "glass" && Object.hasOwn(y, e);
380
+ }
381
+ var S = {
382
+ media: n,
383
+ plants: r
384
+ }, C = (e) => Object.hasOwn(S, e);
385
+ function w(e) {
386
+ return C(e) ? S[e] ?? null : null;
387
+ }
388
+ function T(e, t) {
389
+ let n = (e) => `url(#${t}-${e})`;
390
+ switch (e) {
391
+ case "a":
392
+ case "b":
393
+ case "c":
394
+ case "f": return {
395
+ className: `es-${e}`,
396
+ fill: n(e),
397
+ stroke: n("r")
398
+ };
399
+ case "i": return {
400
+ className: "es-i",
401
+ fill: n("b")
402
+ };
403
+ case "s": return {
404
+ className: "es-s",
405
+ fill: n("s")
406
+ };
407
+ case "ga": return {
408
+ className: "es-ga",
409
+ stroke: n("a")
410
+ };
411
+ case "gc": return {
412
+ className: "es-gc",
413
+ stroke: n("c")
414
+ };
415
+ default: return { className: `es-${e}` };
416
+ }
417
+ }
418
+ function E({ art: e, uid: n }) {
419
+ let r = Object.hasOwn(y, e) ? y[e] : void 0;
420
+ return r ? /* @__PURE__ */ a("svg", {
421
+ className: "es-svg",
422
+ viewBox: "0 0 120 120",
423
+ focusable: "false",
424
+ "aria-hidden": "true",
425
+ children: [/* @__PURE__ */ a("defs", { children: [
426
+ /* @__PURE__ */ a("linearGradient", {
427
+ id: `${n}-a`,
428
+ x1: "0.08",
429
+ y1: "0",
430
+ x2: "0.92",
431
+ y2: "1",
432
+ children: [
433
+ /* @__PURE__ */ i("stop", {
434
+ className: "es-q1",
435
+ offset: "0"
436
+ }),
437
+ /* @__PURE__ */ i("stop", {
438
+ className: "es-q2",
439
+ offset: "0.52"
440
+ }),
441
+ /* @__PURE__ */ i("stop", {
442
+ className: "es-q3",
443
+ offset: "1"
444
+ })
445
+ ]
446
+ }),
447
+ /* @__PURE__ */ a("linearGradient", {
448
+ id: `${n}-b`,
449
+ x1: "0",
450
+ y1: "0",
451
+ x2: "1",
452
+ y2: "1",
453
+ children: [/* @__PURE__ */ i("stop", {
454
+ className: "es-q4",
455
+ offset: "0"
456
+ }), /* @__PURE__ */ i("stop", {
457
+ className: "es-q5",
458
+ offset: "1"
459
+ })]
460
+ }),
461
+ /* @__PURE__ */ a("linearGradient", {
462
+ id: `${n}-c`,
463
+ x1: "0",
464
+ y1: "0",
465
+ x2: "1",
466
+ y2: "1",
467
+ children: [/* @__PURE__ */ i("stop", {
468
+ className: "es-q6",
469
+ offset: "0"
470
+ }), /* @__PURE__ */ i("stop", {
471
+ className: "es-q7",
472
+ offset: "1"
473
+ })]
474
+ }),
475
+ /* @__PURE__ */ a("linearGradient", {
476
+ id: `${n}-f`,
477
+ x1: "0",
478
+ y1: "0",
479
+ x2: "0",
480
+ y2: "1",
481
+ children: [/* @__PURE__ */ i("stop", {
482
+ className: "es-q8",
483
+ offset: "0"
484
+ }), /* @__PURE__ */ i("stop", {
485
+ className: "es-q9",
486
+ offset: "1"
487
+ })]
488
+ }),
489
+ /* @__PURE__ */ a("linearGradient", {
490
+ id: `${n}-r`,
491
+ x1: "0",
492
+ y1: "0",
493
+ x2: "1",
494
+ y2: "1",
495
+ children: [
496
+ /* @__PURE__ */ i("stop", {
497
+ className: "es-r1",
498
+ offset: "0"
499
+ }),
500
+ /* @__PURE__ */ i("stop", {
501
+ className: "es-r2",
502
+ offset: "0.5"
503
+ }),
504
+ /* @__PURE__ */ i("stop", {
505
+ className: "es-r3",
506
+ offset: "1"
507
+ })
508
+ ]
509
+ }),
510
+ /* @__PURE__ */ a("radialGradient", {
511
+ id: `${n}-s`,
512
+ children: [/* @__PURE__ */ i("stop", {
513
+ className: "es-s1",
514
+ offset: "0"
515
+ }), /* @__PURE__ */ i("stop", {
516
+ className: "es-s2",
517
+ offset: "1"
518
+ })]
519
+ })
520
+ ] }), /* @__PURE__ */ i("g", {
521
+ className: "es-fig",
522
+ children: r.map((e, r) => t(e.tag, {
523
+ key: r,
524
+ ...T(e.role, n),
525
+ ...e.attrs
526
+ }))
527
+ })]
528
+ }) : null;
529
+ }
530
+ export { b as DRAWN_EMPTY_STATE_ART, E as EmptyStateDrawing, w as emptyStateSubjectGlyph, x as isEmptyStateArtDrawn, e as resolveEmptyStateArt };
@@ -0,0 +1,25 @@
1
+ import { ReactNode } from 'react';
2
+ import { LucideIcon } from 'lucide-react';
3
+ import { EmptyStateKind, EmptyStateSize, EmptyStateSubject } from './empty-state';
4
+ type Situation = Exclude<EmptyStateKind, 'first-use'>;
5
+ /** The glyph a kind's glass icon shows when the page passed no icon of its own. */
6
+ export declare const EMPTY_STATE_KIND_GLYPHS: Readonly<Record<Situation, LucideIcon>>;
7
+ export interface GlassEmptyStateProps {
8
+ /**
9
+ * The root's `data-slot`: the component's own (`empty-state` or `illustrated-empty-state`),
10
+ * so code that counts either keeps counting the same elements.
11
+ */
12
+ slot: 'empty-state' | 'illustrated-empty-state';
13
+ /** The page's icon: `undefined` when it passed none, `null` when it asked for none. */
14
+ icon: ReactNode;
15
+ title: ReactNode;
16
+ description?: ReactNode;
17
+ action?: ReactNode;
18
+ secondaryAction?: ReactNode;
19
+ kind: EmptyStateKind;
20
+ illustration: EmptyStateSubject | 'auto' | 'none';
21
+ size: EmptyStateSize;
22
+ className?: string;
23
+ }
24
+ export declare function GlassEmptyState({ slot, icon, title, description, action, secondaryAction, kind: kindProp, illustration, size: sizeProp, className, }: GlassEmptyStateProps): import('react').JSX.Element;
25
+ export {};