@still-forest/canopy 0.24.0 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Code-BEyCtXmx.js +6 -0
- package/dist/Heading-RoEgEUyn.js +250 -0
- package/dist/Layout-DgdavEB0.js +520 -0
- package/dist/PageNotFound-qxJMFm_R.js +106 -0
- package/dist/Paragraph-CbHixnRz.js +6 -0
- package/dist/SidebarLayout-BdELri0f.js +1043 -0
- package/dist/Textarea-BQK0FPhk.js +2449 -0
- package/dist/calendar-DO3_NMz-.js +3130 -0
- package/dist/forms.d.ts +185 -0
- package/dist/index.js +8 -14562
- package/dist/index2.js +7 -0
- package/dist/index3.js +20 -0
- package/dist/index4.js +8 -0
- package/dist/index5.js +9 -0
- package/dist/index6.js +1371 -0
- package/dist/interstitials.d.ts +41 -0
- package/dist/layout.d.ts +173 -0
- package/dist/navigation.d.ts +59 -0
- package/dist/popover-C6FKo2kc.js +3078 -0
- package/dist/typography.d.ts +89 -0
- package/dist/utils-D_B8C9Kp.js +2781 -0
- package/package.json +33 -2
|
@@ -0,0 +1,520 @@
|
|
|
1
|
+
import { j as u, c as m } from "./utils-D_B8C9Kp.js";
|
|
2
|
+
import g from "react";
|
|
3
|
+
const w = g.forwardRef(
|
|
4
|
+
({
|
|
5
|
+
className: c,
|
|
6
|
+
as: t = "div",
|
|
7
|
+
variant: s,
|
|
8
|
+
size: r,
|
|
9
|
+
width: e,
|
|
10
|
+
height: o,
|
|
11
|
+
display: l,
|
|
12
|
+
sizing: n,
|
|
13
|
+
position: x,
|
|
14
|
+
overflow: a,
|
|
15
|
+
overflowX: b,
|
|
16
|
+
overflowY: d,
|
|
17
|
+
rounded: f,
|
|
18
|
+
...v
|
|
19
|
+
}, j) => /* @__PURE__ */ u.jsx(
|
|
20
|
+
t,
|
|
21
|
+
{
|
|
22
|
+
className: m(
|
|
23
|
+
// Variant
|
|
24
|
+
{
|
|
25
|
+
"bg-primary text-primary-foreground": s === "primary",
|
|
26
|
+
"bg-secondary text-secondary-foreground": s === "secondary",
|
|
27
|
+
"bg-muted text-muted-foreground": s === "muted",
|
|
28
|
+
"bg-accent text-accent-foreground": s === "accent",
|
|
29
|
+
"bg-info text-info-foreground": s === "info",
|
|
30
|
+
"bg-success text-success-foreground": s === "success",
|
|
31
|
+
"bg-warning text-warning-foreground": s === "warning",
|
|
32
|
+
"bg-destructive text-destructive-foreground": s === "destructive"
|
|
33
|
+
},
|
|
34
|
+
// Size
|
|
35
|
+
{
|
|
36
|
+
"size-0": r === "0",
|
|
37
|
+
"size-1": r === "1",
|
|
38
|
+
"size-2": r === "2",
|
|
39
|
+
"size-3": r === "3",
|
|
40
|
+
"size-4": r === "4",
|
|
41
|
+
"size-5": r === "5",
|
|
42
|
+
"size-6": r === "6",
|
|
43
|
+
"size-7": r === "7",
|
|
44
|
+
"size-8": r === "8",
|
|
45
|
+
"size-9": r === "9",
|
|
46
|
+
"size-10": r === "10",
|
|
47
|
+
"size-11": r === "11",
|
|
48
|
+
"size-12": r === "12",
|
|
49
|
+
"size-16": r === "16",
|
|
50
|
+
"size-20": r === "20",
|
|
51
|
+
"size-24": r === "24",
|
|
52
|
+
"size-28": r === "28",
|
|
53
|
+
"size-32": r === "32",
|
|
54
|
+
"size-36": r === "36",
|
|
55
|
+
"size-40": r === "40",
|
|
56
|
+
"size-44": r === "44",
|
|
57
|
+
"size-48": r === "48",
|
|
58
|
+
"size-52": r === "52",
|
|
59
|
+
"size-56": r === "56",
|
|
60
|
+
"size-60": r === "60",
|
|
61
|
+
"size-64": r === "64",
|
|
62
|
+
"size-72": r === "72",
|
|
63
|
+
"size-84": r === "84",
|
|
64
|
+
"size-96": r === "96",
|
|
65
|
+
"size-auto": r === "auto",
|
|
66
|
+
"size-full": r === "full",
|
|
67
|
+
"size-min": r === "min",
|
|
68
|
+
"size-max": r === "max",
|
|
69
|
+
"size-fit": r === "fit",
|
|
70
|
+
"size-px": r === "px"
|
|
71
|
+
},
|
|
72
|
+
// Width
|
|
73
|
+
{
|
|
74
|
+
"w-0": e === "0",
|
|
75
|
+
"w-1": e === "1",
|
|
76
|
+
"w-2": e === "2",
|
|
77
|
+
"w-3": e === "3",
|
|
78
|
+
"w-4": e === "4",
|
|
79
|
+
"w-5": e === "5",
|
|
80
|
+
"w-6": e === "6",
|
|
81
|
+
"w-7": e === "7",
|
|
82
|
+
"w-8": e === "8",
|
|
83
|
+
"w-9": e === "9",
|
|
84
|
+
"w-10": e === "10",
|
|
85
|
+
"w-11": e === "11",
|
|
86
|
+
"w-12": e === "12",
|
|
87
|
+
"w-16": e === "16",
|
|
88
|
+
"w-20": e === "20",
|
|
89
|
+
"w-24": e === "24",
|
|
90
|
+
"w-28": e === "28",
|
|
91
|
+
"w-32": e === "32",
|
|
92
|
+
"w-36": e === "36",
|
|
93
|
+
"w-40": e === "40",
|
|
94
|
+
"w-44": e === "44",
|
|
95
|
+
"w-48": e === "48",
|
|
96
|
+
"w-52": e === "52",
|
|
97
|
+
"w-56": e === "56",
|
|
98
|
+
"w-60": e === "60",
|
|
99
|
+
"w-64": e === "64",
|
|
100
|
+
"w-72": e === "72",
|
|
101
|
+
"w-84": e === "84",
|
|
102
|
+
"w-96": e === "96",
|
|
103
|
+
"w-3xs": e === "3xs",
|
|
104
|
+
"w-2xs": e === "2xs",
|
|
105
|
+
"w-xs": e === "xs",
|
|
106
|
+
"w-sm": e === "sm",
|
|
107
|
+
"w-md": e === "md",
|
|
108
|
+
"w-lg": e === "lg",
|
|
109
|
+
"w-xl": e === "xl",
|
|
110
|
+
"w-2xl": e === "2xl",
|
|
111
|
+
"w-3xl": e === "3xl",
|
|
112
|
+
"w-4xl": e === "4xl",
|
|
113
|
+
"w-5xl": e === "5xl",
|
|
114
|
+
"w-6xl": e === "6xl",
|
|
115
|
+
"w-7xl": e === "7xl",
|
|
116
|
+
"w-auto": e === "auto",
|
|
117
|
+
"w-full": e === "full",
|
|
118
|
+
"w-screen": e === "screen",
|
|
119
|
+
"w-min": e === "min",
|
|
120
|
+
"w-max": e === "max",
|
|
121
|
+
"w-fit": e === "fit",
|
|
122
|
+
"w-px": e === "px"
|
|
123
|
+
},
|
|
124
|
+
// Height
|
|
125
|
+
{
|
|
126
|
+
"h-0": o === "0",
|
|
127
|
+
"h-1": o === "1",
|
|
128
|
+
"h-2": o === "2",
|
|
129
|
+
"h-3": o === "3",
|
|
130
|
+
"h-4": o === "4",
|
|
131
|
+
"h-5": o === "5",
|
|
132
|
+
"h-6": o === "6",
|
|
133
|
+
"h-7": o === "7",
|
|
134
|
+
"h-8": o === "8",
|
|
135
|
+
"h-9": o === "9",
|
|
136
|
+
"h-10": o === "10",
|
|
137
|
+
"h-11": o === "11",
|
|
138
|
+
"h-12": o === "12",
|
|
139
|
+
"h-16": o === "16",
|
|
140
|
+
"h-20": o === "20",
|
|
141
|
+
"h-24": o === "24",
|
|
142
|
+
"h-28": o === "28",
|
|
143
|
+
"h-32": o === "32",
|
|
144
|
+
"h-36": o === "36",
|
|
145
|
+
"h-40": o === "40",
|
|
146
|
+
"h-44": o === "44",
|
|
147
|
+
"h-48": o === "48",
|
|
148
|
+
"h-52": o === "52",
|
|
149
|
+
"h-56": o === "56",
|
|
150
|
+
"h-60": o === "60",
|
|
151
|
+
"h-64": o === "64",
|
|
152
|
+
"h-72": o === "72",
|
|
153
|
+
"h-84": o === "84",
|
|
154
|
+
"h-96": o === "96",
|
|
155
|
+
"h-auto": o === "auto",
|
|
156
|
+
"h-full": o === "full",
|
|
157
|
+
"h-screen": o === "screen",
|
|
158
|
+
"h-min": o === "min",
|
|
159
|
+
"h-max": o === "max",
|
|
160
|
+
"h-fit": o === "fit",
|
|
161
|
+
"h-px": o === "px"
|
|
162
|
+
},
|
|
163
|
+
// Display
|
|
164
|
+
{
|
|
165
|
+
block: l === "block",
|
|
166
|
+
flex: l === "flex",
|
|
167
|
+
grid: l === "grid",
|
|
168
|
+
inline: l === "inline",
|
|
169
|
+
"inline-block": l === "inline-block",
|
|
170
|
+
"inline-flex": l === "inline-flex",
|
|
171
|
+
"inline-grid": l === "inline-grid",
|
|
172
|
+
"inline-table": l === "inline-table",
|
|
173
|
+
"list-item": l === "list-item",
|
|
174
|
+
"flow-root": l === "flow-root",
|
|
175
|
+
contents: l === "contents",
|
|
176
|
+
table: l === "table",
|
|
177
|
+
"table-header-group": l === "table-header-group",
|
|
178
|
+
"table-footer-group": l === "table-footer-group",
|
|
179
|
+
"table-column-group": l === "table-column-group",
|
|
180
|
+
"table-column": l === "table-column",
|
|
181
|
+
"table-row-group": l === "table-row-group",
|
|
182
|
+
"table-row": l === "table-row",
|
|
183
|
+
"table-cell": l === "table-cell",
|
|
184
|
+
"table-caption": l === "table-caption",
|
|
185
|
+
hidden: l === "hidden",
|
|
186
|
+
"sr-only": l === "sr-only",
|
|
187
|
+
"not-sr-only": l === "not-sr-only"
|
|
188
|
+
},
|
|
189
|
+
// Box sizing
|
|
190
|
+
{
|
|
191
|
+
"box-border": n === "border",
|
|
192
|
+
"box-content": n === "content"
|
|
193
|
+
},
|
|
194
|
+
// Position
|
|
195
|
+
{
|
|
196
|
+
static: x === "static",
|
|
197
|
+
fixed: x === "fixed",
|
|
198
|
+
absolute: x === "absolute",
|
|
199
|
+
relative: x === "relative",
|
|
200
|
+
sticky: x === "sticky"
|
|
201
|
+
},
|
|
202
|
+
// Overflow
|
|
203
|
+
{
|
|
204
|
+
"overflow-auto": a === "auto",
|
|
205
|
+
"overflow-hidden": a === "hidden",
|
|
206
|
+
"overflow-clip": a === "clip",
|
|
207
|
+
"overflow-visible": a === "visible",
|
|
208
|
+
"overflow-scroll": a === "scroll"
|
|
209
|
+
},
|
|
210
|
+
// Overflow X
|
|
211
|
+
{
|
|
212
|
+
"overflow-x-auto": b === "auto",
|
|
213
|
+
"overflow-x-hidden": b === "hidden",
|
|
214
|
+
"overflow-x-clip": b === "clip",
|
|
215
|
+
"overflow-x-visible": b === "visible",
|
|
216
|
+
"overflow-x-scroll": b === "scroll"
|
|
217
|
+
},
|
|
218
|
+
// Overflow Y
|
|
219
|
+
{
|
|
220
|
+
"overflow-y-auto": d === "auto",
|
|
221
|
+
"overflow-y-hidden": d === "hidden",
|
|
222
|
+
"overflow-y-clip": d === "clip",
|
|
223
|
+
"overflow-y-visible": d === "visible",
|
|
224
|
+
"overflow-y-scroll": d === "scroll"
|
|
225
|
+
},
|
|
226
|
+
// Rounded
|
|
227
|
+
{
|
|
228
|
+
rounded: f === !0,
|
|
229
|
+
"rounded-none": f === "none",
|
|
230
|
+
"rounded-xs": f === "xs",
|
|
231
|
+
"rounded-sm": f === "sm",
|
|
232
|
+
"rounded-md": f === "md",
|
|
233
|
+
"rounded-lg": f === "lg",
|
|
234
|
+
"rounded-xl": f === "xl",
|
|
235
|
+
"rounded-2xl": f === "2xl",
|
|
236
|
+
"rounded-3xl": f === "3xl",
|
|
237
|
+
"rounded-full": f === "full"
|
|
238
|
+
},
|
|
239
|
+
c
|
|
240
|
+
),
|
|
241
|
+
ref: j,
|
|
242
|
+
...v
|
|
243
|
+
}
|
|
244
|
+
)
|
|
245
|
+
);
|
|
246
|
+
w.displayName = "Box";
|
|
247
|
+
const y = ({ children: c, className: t, direction: s = "col", ...r }) => {
|
|
248
|
+
const { display: e = "flex", ...o } = r, l = m("w-full max-w-6xl px-4 py-2 md:px-8 md:py-4 lg:px-12 lg:py-6", t);
|
|
249
|
+
return e === "block" ? /* @__PURE__ */ u.jsx(w, { className: l, ...o, children: c }) : /* @__PURE__ */ u.jsx(i, { className: l, direction: s, ...o, children: c });
|
|
250
|
+
}, N = ({ flex: c, className: t, as: s, children: r, ...e }) => {
|
|
251
|
+
const o = s || "div";
|
|
252
|
+
return /* @__PURE__ */ u.jsx(
|
|
253
|
+
o,
|
|
254
|
+
{
|
|
255
|
+
className: m(
|
|
256
|
+
{
|
|
257
|
+
"flex-1": c === "1",
|
|
258
|
+
"flex-auto": c === "auto",
|
|
259
|
+
"flex-initial": c === "initial",
|
|
260
|
+
"flex-none": c === "none"
|
|
261
|
+
},
|
|
262
|
+
t
|
|
263
|
+
),
|
|
264
|
+
...e,
|
|
265
|
+
children: r
|
|
266
|
+
}
|
|
267
|
+
);
|
|
268
|
+
}, k = g.forwardRef(
|
|
269
|
+
({ className: c, as: t = "div", direction: s, align: r, justify: e, grow: o, wrap: l, gap: n, gapX: x, gapY: a, ...b }, d) => /* @__PURE__ */ u.jsx(
|
|
270
|
+
t,
|
|
271
|
+
{
|
|
272
|
+
className: m(
|
|
273
|
+
"flex",
|
|
274
|
+
// Flex direction
|
|
275
|
+
{
|
|
276
|
+
"flex-row": s === "row",
|
|
277
|
+
"flex-row-reverse": s === "row-reverse",
|
|
278
|
+
"flex-col": s === "col",
|
|
279
|
+
"flex-col-reverse": s === "col-reverse"
|
|
280
|
+
},
|
|
281
|
+
// Align items
|
|
282
|
+
{
|
|
283
|
+
"items-start": r === "start",
|
|
284
|
+
"items-center": r === "center",
|
|
285
|
+
"items-end": r === "end",
|
|
286
|
+
"items-stretch": r === "stretch",
|
|
287
|
+
"items-baseline": r === "baseline"
|
|
288
|
+
},
|
|
289
|
+
// Justify content
|
|
290
|
+
{
|
|
291
|
+
"justify-start": e === "start",
|
|
292
|
+
"justify-center": e === "center",
|
|
293
|
+
"justify-end": e === "end",
|
|
294
|
+
"justify-between": e === "between",
|
|
295
|
+
"justify-around": e === "around",
|
|
296
|
+
"justify-evenly": e === "evenly",
|
|
297
|
+
"justify-stretch": e === "stretch",
|
|
298
|
+
"justify-baseline": e === "baseline",
|
|
299
|
+
"justify-normal": e === "normal"
|
|
300
|
+
},
|
|
301
|
+
// Grow
|
|
302
|
+
{
|
|
303
|
+
"grow-0": o === "0" || o === !1,
|
|
304
|
+
"grow-1": o === "1" || o === !0,
|
|
305
|
+
"grow-2": o === "2",
|
|
306
|
+
"grow-3": o === "3",
|
|
307
|
+
"grow-4": o === "4",
|
|
308
|
+
"grow-5": o === "5",
|
|
309
|
+
"grow-6": o === "6",
|
|
310
|
+
"grow-7": o === "7",
|
|
311
|
+
"grow-8": o === "8",
|
|
312
|
+
"grow-9": o === "9",
|
|
313
|
+
"grow-10": o === "10",
|
|
314
|
+
"grow-11": o === "11",
|
|
315
|
+
"grow-12": o === "12"
|
|
316
|
+
},
|
|
317
|
+
// Wrap content
|
|
318
|
+
{
|
|
319
|
+
"flex-wrap": l === "wrap",
|
|
320
|
+
"flex-wrap-reverse": l === "wrap-reverse",
|
|
321
|
+
"flex-nowrap": l === "nowrap"
|
|
322
|
+
},
|
|
323
|
+
// Gap
|
|
324
|
+
{
|
|
325
|
+
"gap-0": n === "0",
|
|
326
|
+
"gap-1": n === "1",
|
|
327
|
+
"gap-2": n === "2",
|
|
328
|
+
"gap-3": n === "3",
|
|
329
|
+
"gap-4": n === "4",
|
|
330
|
+
"gap-5": n === "5",
|
|
331
|
+
"gap-6": n === "6",
|
|
332
|
+
"gap-7": n === "7",
|
|
333
|
+
"gap-8": n === "8",
|
|
334
|
+
"gap-9": n === "9",
|
|
335
|
+
"gap-10": n === "10",
|
|
336
|
+
"gap-11": n === "11",
|
|
337
|
+
"gap-12": n === "12",
|
|
338
|
+
"gap-13": n === "13",
|
|
339
|
+
"gap-14": n === "14",
|
|
340
|
+
"gap-15": n === "15",
|
|
341
|
+
"gap-16": n === "16"
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"gap-x-0": x === "0",
|
|
345
|
+
"gap-x-1": x === "1",
|
|
346
|
+
"gap-x-2": x === "2",
|
|
347
|
+
"gap-x-3": x === "3",
|
|
348
|
+
"gap-x-4": x === "4",
|
|
349
|
+
"gap-x-5": x === "5",
|
|
350
|
+
"gap-x-6": x === "6",
|
|
351
|
+
"gap-x-7": x === "7",
|
|
352
|
+
"gap-x-8": x === "8",
|
|
353
|
+
"gap-x-9": x === "9",
|
|
354
|
+
"gap-x-10": x === "10",
|
|
355
|
+
"gap-x-11": x === "11",
|
|
356
|
+
"gap-x-12": x === "12",
|
|
357
|
+
"gap-x-13": x === "13",
|
|
358
|
+
"gap-x-14": x === "14",
|
|
359
|
+
"gap-x-15": x === "15",
|
|
360
|
+
"gap-x-16": x === "16"
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"gap-y-0": a === "0",
|
|
364
|
+
"gap-y-1": a === "1",
|
|
365
|
+
"gap-y-2": a === "2",
|
|
366
|
+
"gap-y-3": a === "3",
|
|
367
|
+
"gap-y-4": a === "4",
|
|
368
|
+
"gap-y-5": a === "5",
|
|
369
|
+
"gap-y-6": a === "6",
|
|
370
|
+
"gap-y-7": a === "7",
|
|
371
|
+
"gap-y-8": a === "8",
|
|
372
|
+
"gap-y-9": a === "9",
|
|
373
|
+
"gap-y-10": a === "10",
|
|
374
|
+
"gap-y-11": a === "11",
|
|
375
|
+
"gap-y-12": a === "12",
|
|
376
|
+
"gap-y-13": a === "13",
|
|
377
|
+
"gap-y-14": a === "14",
|
|
378
|
+
"gap-y-15": a === "15",
|
|
379
|
+
"gap-y-16": a === "16"
|
|
380
|
+
},
|
|
381
|
+
c
|
|
382
|
+
),
|
|
383
|
+
ref: d,
|
|
384
|
+
...b
|
|
385
|
+
}
|
|
386
|
+
)
|
|
387
|
+
), i = Object.assign(k, { Item: N }), C = ({ children: c, ...t }) => /* @__PURE__ */ u.jsx(y, { as: "footer", className: "bottom-0 mt-auto pb-2", justify: "between", ...t, children: c }), R = g.forwardRef(
|
|
388
|
+
({ className: c, as: t = "div", cols: s, rows: r, gap: e, gapX: o, gapY: l, flow: n, ...x }, a) => /* @__PURE__ */ u.jsx(
|
|
389
|
+
t,
|
|
390
|
+
{
|
|
391
|
+
className: m(
|
|
392
|
+
"grid",
|
|
393
|
+
{
|
|
394
|
+
"grid-cols-1": s === "1",
|
|
395
|
+
"grid-cols-2": s === "2",
|
|
396
|
+
"grid-cols-3": s === "3",
|
|
397
|
+
"grid-cols-4": s === "4",
|
|
398
|
+
"grid-cols-5": s === "5",
|
|
399
|
+
"grid-cols-6": s === "6",
|
|
400
|
+
"grid-cols-7": s === "7",
|
|
401
|
+
"grid-cols-8": s === "8",
|
|
402
|
+
"grid-cols-9": s === "9",
|
|
403
|
+
"grid-cols-10": s === "10",
|
|
404
|
+
"grid-cols-11": s === "11",
|
|
405
|
+
"grid-cols-12": s === "12",
|
|
406
|
+
"grid-cols-none": s === "none"
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
"grid-rows-1": r === "1",
|
|
410
|
+
"grid-rows-2": r === "2",
|
|
411
|
+
"grid-rows-3": r === "3",
|
|
412
|
+
"grid-rows-4": r === "4",
|
|
413
|
+
"grid-rows-5": r === "5",
|
|
414
|
+
"grid-rows-6": r === "6",
|
|
415
|
+
"grid-rows-7": r === "7",
|
|
416
|
+
"grid-rows-8": r === "8",
|
|
417
|
+
"grid-rows-9": r === "9",
|
|
418
|
+
"grid-rows-10": r === "10",
|
|
419
|
+
"grid-rows-11": r === "11",
|
|
420
|
+
"grid-rows-12": r === "12",
|
|
421
|
+
"grid-rows-13": r === "13",
|
|
422
|
+
"grid-rows-14": r === "14",
|
|
423
|
+
"grid-rows-15": r === "15",
|
|
424
|
+
"grid-rows-16": r === "16",
|
|
425
|
+
"grid-rows-17": r === "17",
|
|
426
|
+
"grid-rows-18": r === "18",
|
|
427
|
+
"grid-rows-19": r === "19",
|
|
428
|
+
"grid-rows-20": r === "20",
|
|
429
|
+
"grid-rows-21": r === "21",
|
|
430
|
+
"grid-rows-22": r === "22",
|
|
431
|
+
"grid-rows-23": r === "23",
|
|
432
|
+
"grid-rows-24": r === "24",
|
|
433
|
+
"grid-rows-none": r === "none"
|
|
434
|
+
},
|
|
435
|
+
// Gap
|
|
436
|
+
{
|
|
437
|
+
"gap-0": e === "0",
|
|
438
|
+
"gap-1": e === "1",
|
|
439
|
+
"gap-2": e === "2",
|
|
440
|
+
"gap-3": e === "3",
|
|
441
|
+
"gap-4": e === "4",
|
|
442
|
+
"gap-5": e === "5",
|
|
443
|
+
"gap-6": e === "6",
|
|
444
|
+
"gap-7": e === "7",
|
|
445
|
+
"gap-8": e === "8",
|
|
446
|
+
"gap-9": e === "9",
|
|
447
|
+
"gap-10": e === "10",
|
|
448
|
+
"gap-11": e === "11",
|
|
449
|
+
"gap-12": e === "12",
|
|
450
|
+
"gap-13": e === "13",
|
|
451
|
+
"gap-14": e === "14",
|
|
452
|
+
"gap-15": e === "15",
|
|
453
|
+
"gap-16": e === "16"
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"gap-x-0": o === "0",
|
|
457
|
+
"gap-x-1": o === "1",
|
|
458
|
+
"gap-x-2": o === "2",
|
|
459
|
+
"gap-x-3": o === "3",
|
|
460
|
+
"gap-x-4": o === "4",
|
|
461
|
+
"gap-x-5": o === "5",
|
|
462
|
+
"gap-x-6": o === "6",
|
|
463
|
+
"gap-x-7": o === "7",
|
|
464
|
+
"gap-x-8": o === "8",
|
|
465
|
+
"gap-x-9": o === "9",
|
|
466
|
+
"gap-x-10": o === "10",
|
|
467
|
+
"gap-x-11": o === "11",
|
|
468
|
+
"gap-x-12": o === "12",
|
|
469
|
+
"gap-x-13": o === "13",
|
|
470
|
+
"gap-x-14": o === "14",
|
|
471
|
+
"gap-x-15": o === "15",
|
|
472
|
+
"gap-x-16": o === "16"
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
"gap-y-0": l === "0",
|
|
476
|
+
"gap-y-1": l === "1",
|
|
477
|
+
"gap-y-2": l === "2",
|
|
478
|
+
"gap-y-3": l === "3",
|
|
479
|
+
"gap-y-4": l === "4",
|
|
480
|
+
"gap-y-5": l === "5",
|
|
481
|
+
"gap-y-6": l === "6",
|
|
482
|
+
"gap-y-7": l === "7",
|
|
483
|
+
"gap-y-8": l === "8",
|
|
484
|
+
"gap-y-9": l === "9",
|
|
485
|
+
"gap-y-10": l === "10",
|
|
486
|
+
"gap-y-11": l === "11",
|
|
487
|
+
"gap-y-12": l === "12",
|
|
488
|
+
"gap-y-13": l === "13",
|
|
489
|
+
"gap-y-14": l === "14",
|
|
490
|
+
"gap-y-15": l === "15",
|
|
491
|
+
"gap-y-16": l === "16"
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
"grid-flow-row": n === "row",
|
|
495
|
+
"grid-flow-col": n === "col",
|
|
496
|
+
"grid-flow-dense": n === "dense",
|
|
497
|
+
"grid-flow-row-dense": n === "row-dense",
|
|
498
|
+
"grid-flow-col-dense": n === "col-dense"
|
|
499
|
+
},
|
|
500
|
+
c
|
|
501
|
+
),
|
|
502
|
+
ref: a,
|
|
503
|
+
...x
|
|
504
|
+
}
|
|
505
|
+
)
|
|
506
|
+
);
|
|
507
|
+
R.displayName = "Grid";
|
|
508
|
+
const F = ({ children: c, sticky: t = !1, className: s, ...r }) => /* @__PURE__ */ u.jsx(y, { as: "header", className: m("top-0 ", t && "z-50 sticky", s), justify: "between", ...r, children: c }), p = "mx-auto w-full max-w-screen-lg", B = ({ children: c, className: t, withContainer: s = !1, ...r }) => {
|
|
509
|
+
const e = m("flex-1 grow", p, t);
|
|
510
|
+
return s ? /* @__PURE__ */ u.jsx(y, { as: "main", className: e, display: "block", ...r, children: c }) : /* @__PURE__ */ u.jsx(i.Item, { as: "main", className: e, ...r, children: c });
|
|
511
|
+
}, G = g.forwardRef(({ children: c, className: t, ...s }, r) => /* @__PURE__ */ u.jsx(i, { className: m(p, "h-screen flex-1", t), direction: "col", ref: r, ...s, children: c })), H = Object.assign(G, { Header: F, Body: B, Footer: C });
|
|
512
|
+
export {
|
|
513
|
+
w as B,
|
|
514
|
+
y as C,
|
|
515
|
+
i as F,
|
|
516
|
+
R as G,
|
|
517
|
+
F as H,
|
|
518
|
+
H as L,
|
|
519
|
+
C as a
|
|
520
|
+
};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { j as e, c as d } from "./utils-D_B8C9Kp.js";
|
|
2
|
+
import { c, B as l } from "./calendar-DO3_NMz-.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { F as o, B as m } from "./Layout-DgdavEB0.js";
|
|
5
|
+
import { C as h } from "./Code-BEyCtXmx.js";
|
|
6
|
+
import { H as x } from "./Heading-RoEgEUyn.js";
|
|
7
|
+
/**
|
|
8
|
+
* @license lucide-react v0.525.0 - ISC
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the ISC license.
|
|
11
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
12
|
+
*/
|
|
13
|
+
const u = [
|
|
14
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
15
|
+
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
16
|
+
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
17
|
+
], p = c("circle-x", u);
|
|
18
|
+
/**
|
|
19
|
+
* @license lucide-react v0.525.0 - ISC
|
|
20
|
+
*
|
|
21
|
+
* This source code is licensed under the ISC license.
|
|
22
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
23
|
+
*/
|
|
24
|
+
const j = [
|
|
25
|
+
["path", { d: "M12 17h.01", key: "p32p05" }],
|
|
26
|
+
["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z", key: "1mlx9k" }],
|
|
27
|
+
["path", { d: "M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3", key: "mhlwft" }]
|
|
28
|
+
], f = c("file-question-mark", j);
|
|
29
|
+
/**
|
|
30
|
+
* @license lucide-react v0.525.0 - ISC
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the ISC license.
|
|
33
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/
|
|
35
|
+
const y = [
|
|
36
|
+
["path", { d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8", key: "5wwlr5" }],
|
|
37
|
+
[
|
|
38
|
+
"path",
|
|
39
|
+
{
|
|
40
|
+
d: "M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",
|
|
41
|
+
key: "1d0kgt"
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
], k = c("house", y);
|
|
45
|
+
/**
|
|
46
|
+
* @license lucide-react v0.525.0 - ISC
|
|
47
|
+
*
|
|
48
|
+
* This source code is licensed under the ISC license.
|
|
49
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
50
|
+
*/
|
|
51
|
+
const w = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], g = c("loader-circle", w);
|
|
52
|
+
/**
|
|
53
|
+
* @license lucide-react v0.525.0 - ISC
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the ISC license.
|
|
56
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
57
|
+
*/
|
|
58
|
+
const N = [
|
|
59
|
+
["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }],
|
|
60
|
+
["path", { d: "M3 3v5h5", key: "1xhq8a" }]
|
|
61
|
+
], v = c("rotate-ccw", N), a = ({ variant: n, iconComponent: t, message: r, children: i }) => {
|
|
62
|
+
if (!t && !r && !i)
|
|
63
|
+
return /* @__PURE__ */ e.jsx(o, { align: "center", className: "h-full w-full", justify: "center", children: "Content missing" });
|
|
64
|
+
const s = t || null;
|
|
65
|
+
return /* @__PURE__ */ e.jsx(o, { align: "center", className: "h-full w-full", justify: "center", children: /* @__PURE__ */ e.jsxs(o, { direction: "col", justify: "center", children: [
|
|
66
|
+
s && /* @__PURE__ */ e.jsx(o, { align: "center", className: "my-6", gapX: "4", justify: "center", children: /* @__PURE__ */ e.jsx(
|
|
67
|
+
s,
|
|
68
|
+
{
|
|
69
|
+
"aria-hidden": !!r,
|
|
70
|
+
"aria-label": r ? void 0 : `${n || "info"} icon`,
|
|
71
|
+
className: d(
|
|
72
|
+
n === "error" && "text-destructive",
|
|
73
|
+
n === "success" && "text-success",
|
|
74
|
+
n === "warning" && "text-warning",
|
|
75
|
+
n === "info" && "text-info"
|
|
76
|
+
),
|
|
77
|
+
"data-testid": "icon",
|
|
78
|
+
role: r ? void 0 : "img",
|
|
79
|
+
size: 128
|
|
80
|
+
}
|
|
81
|
+
) }),
|
|
82
|
+
/* @__PURE__ */ e.jsxs(o, { className: "max-w-[500px]", direction: "col", justify: "center", children: [
|
|
83
|
+
r ? /* @__PURE__ */ e.jsx(x, { align: "center", level: "4", weight: "normal", children: r }) : null,
|
|
84
|
+
i
|
|
85
|
+
] })
|
|
86
|
+
] }) });
|
|
87
|
+
}, C = ({ message: n = "Something went wrong.", children: t }) => /* @__PURE__ */ e.jsx(a, { iconComponent: p, message: n, variant: "error", children: t }), _ = () => {
|
|
88
|
+
try {
|
|
89
|
+
window.location.reload();
|
|
90
|
+
} catch {
|
|
91
|
+
console.warn("Page reload prevented in test environment");
|
|
92
|
+
}
|
|
93
|
+
}, B = ({ error: n, onRetry: t = _ }) => /* @__PURE__ */ e.jsx(C, { children: /* @__PURE__ */ e.jsxs(o, { align: "center", className: "mt-8", direction: "col", children: [
|
|
94
|
+
/* @__PURE__ */ e.jsx(m, { className: "mb-8 p-4", variant: "muted", width: "full", children: /* @__PURE__ */ e.jsx(h, { align: "center", size: "xs", variant: "inherit", children: n.message || "Unknown error occurred" }) }),
|
|
95
|
+
/* @__PURE__ */ e.jsx(l, { icon: /* @__PURE__ */ e.jsx(v, {}), onClick: t, variant: "primary", children: "Reload" })
|
|
96
|
+
] }) }), M = () => /* @__PURE__ */ e.jsx(g, { className: "animate-spin text-info", "data-testid": "icon", size: 64 }), E = ({ iconComponent: n, message: t }) => {
|
|
97
|
+
const r = n || M;
|
|
98
|
+
return /* @__PURE__ */ e.jsx(a, { iconComponent: r, message: t });
|
|
99
|
+
}, L = ({ goHome: n, message: t = "404: Not found" }) => /* @__PURE__ */ e.jsx(a, { iconComponent: f, message: t, variant: "warning", children: /* @__PURE__ */ e.jsx(o, { align: "center", className: "mt-8", direction: "col", children: n && /* @__PURE__ */ e.jsx(l, { icon: /* @__PURE__ */ e.jsx(k, {}), onClick: n, variant: "primary", children: "Home" }) }) });
|
|
100
|
+
export {
|
|
101
|
+
B as E,
|
|
102
|
+
a as I,
|
|
103
|
+
E as P,
|
|
104
|
+
C as a,
|
|
105
|
+
L as b
|
|
106
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { j as m, c as o } from "./utils-D_B8C9Kp.js";
|
|
2
|
+
import { T as p } from "./Heading-RoEgEUyn.js";
|
|
3
|
+
const c = ({ children: r, className: s, as: a = "p", ...t }) => /* @__PURE__ */ m.jsx(p, { as: a, className: o("mb-4", s), ...t, children: r });
|
|
4
|
+
export {
|
|
5
|
+
c as P
|
|
6
|
+
};
|