@dimasbaguspm/versaur 0.0.23 → 0.0.25
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/js/index.js +64 -63
- package/dist/js/layouts/index.js +7 -6
- package/dist/js/{side-bar-BCTyiW3N.js → top-bar-PpiWsgeR.js} +127 -116
- package/dist/types/layouts/index.d.ts +2 -1
- package/dist/types/layouts/page-content/index.d.ts +2 -0
- package/dist/types/layouts/page-content/page-content.d.ts +15 -0
- package/dist/types/layouts/page-content/types.d.ts +14 -0
- package/dist/utils/enforce-subpath-import.js +1 -0
- package/package.json +1 -1
package/dist/js/index.js
CHANGED
|
@@ -1,73 +1,74 @@
|
|
|
1
|
-
import { L as
|
|
2
|
-
import { A as n, B as p, a as u, F as l, P as i, b as I,
|
|
3
|
-
import { B, C as
|
|
4
|
-
import { B as
|
|
5
|
-
import { M as
|
|
6
|
-
import { A as
|
|
7
|
-
import { S as
|
|
8
|
-
import { T as
|
|
9
|
-
import { B as
|
|
10
|
-
import { S as
|
|
1
|
+
import { L as t, P as s, S as r } from "./skeleton-BNZyaRjo.js";
|
|
2
|
+
import { A as n, B as p, a as u, F as l, P as i, b as I, c, S, T as m } from "./top-bar-PpiWsgeR.js";
|
|
3
|
+
import { B as g, C as d, b as T, a as x, D as b, k as f, E as P, M as h, P as k, R as C, d as M, c as A, S as D, e as L, j as R, i as w, h as F, f as j, T as v, g as y } from "./bottom-sheet-input-DsgPp5zI.js";
|
|
4
|
+
import { B as N, D as q, M as G } from "./bottom-sheet-CCDa5VGo.js";
|
|
5
|
+
import { M as z, T as J } from "./tooltip-CDdl1U3A.js";
|
|
6
|
+
import { A as O, a as Q, b as U, B as V, l as W, c as X, d as Y, e as Z, f as _, C as $, g as aa, D as ea, I as ta, i as sa, k as ra, j as oa, N as na, T as pa, h as ua } from "./image-rectangle-GA3oWX7A.js";
|
|
7
|
+
import { S as ia } from "./snackbar-DH8jCh2V.js";
|
|
8
|
+
import { T as ca } from "./text-CRsIInRA.js";
|
|
9
|
+
import { B as ma, T as Ba } from "./tabs-p6g9kN0N.js";
|
|
10
|
+
import { S as da, u as Ta } from "./use-snackbars-B0MaRlg1.js";
|
|
11
11
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
O as Alert,
|
|
13
|
+
Q as Anchor,
|
|
14
14
|
n as AppBar,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
U as Avatar,
|
|
16
|
+
V as Badge,
|
|
17
|
+
W as BaseImage,
|
|
18
18
|
p as BottomBar,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
N as BottomSheet,
|
|
20
|
+
g as BottomSheetInput,
|
|
21
|
+
X as Brand,
|
|
22
|
+
ma as Breadcrumbs,
|
|
23
|
+
Y as Button,
|
|
24
|
+
Z as ButtonFloat,
|
|
25
25
|
u as ButtonGroup,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
26
|
+
_ as ButtonIcon,
|
|
27
|
+
$ as Calculator,
|
|
28
|
+
aa as Calendar,
|
|
29
|
+
d as CheckboxInput,
|
|
30
|
+
T as ChipMultipleInput,
|
|
31
|
+
x as ChipSingleInput,
|
|
32
|
+
b as DateSinglePickerInput,
|
|
33
|
+
ea as DescriptionList,
|
|
34
|
+
q as Drawer,
|
|
35
|
+
f as DrawerInput,
|
|
36
|
+
P as EmailInput,
|
|
37
37
|
l as FormLayout,
|
|
38
|
-
|
|
38
|
+
ta as Icon,
|
|
39
39
|
sa as ImageCircle,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
ra as ImageRectangle,
|
|
41
|
+
oa as ImageSquare,
|
|
42
|
+
t as LoadingIndicator,
|
|
43
|
+
z as Menu,
|
|
44
|
+
G as Modal,
|
|
45
45
|
h as ModalInput,
|
|
46
|
-
|
|
47
|
-
i as
|
|
48
|
-
I as
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
46
|
+
na as NoResults,
|
|
47
|
+
i as PageContent,
|
|
48
|
+
I as PageHeader,
|
|
49
|
+
c as PageLayout,
|
|
50
|
+
k as PriceInput,
|
|
51
|
+
s as ProgressIndicator,
|
|
52
|
+
C as RadioInput,
|
|
52
53
|
M as SearchInput,
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
54
|
+
A as SegmentMultipleInput,
|
|
55
|
+
D as SegmentSingleInput,
|
|
56
|
+
L as SelectInput,
|
|
57
|
+
R as SelectableMultipleInput,
|
|
58
|
+
w as SelectableSingleInput,
|
|
59
|
+
S as SideBar,
|
|
59
60
|
r as Skeleton,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
61
|
+
ia as Snackbar,
|
|
62
|
+
da as SnackbarsProvider,
|
|
63
|
+
F as SwitchInput,
|
|
64
|
+
pa as Table,
|
|
65
|
+
Ba as Tabs,
|
|
66
|
+
ca as Text,
|
|
67
|
+
j as TextAreaInput,
|
|
68
|
+
v as TextInput,
|
|
69
|
+
ua as Tile,
|
|
70
|
+
y as TimePickerInput,
|
|
71
|
+
J as Tooltip,
|
|
72
|
+
m as TopBar,
|
|
73
|
+
Ta as useSnackbars
|
|
73
74
|
};
|
package/dist/js/layouts/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { A as r, B as s, a as t, F as
|
|
1
|
+
import { A as r, B as s, a as t, F as e, P as B, b as p, c as u, S as P, T as g } from "../top-bar-PpiWsgeR.js";
|
|
2
2
|
export {
|
|
3
3
|
r as AppBar,
|
|
4
4
|
s as BottomBar,
|
|
5
5
|
t as ButtonGroup,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
p as
|
|
9
|
-
u as
|
|
10
|
-
|
|
6
|
+
e as FormLayout,
|
|
7
|
+
B as PageContent,
|
|
8
|
+
p as PageHeader,
|
|
9
|
+
u as PageLayout,
|
|
10
|
+
P as SideBar,
|
|
11
|
+
g as TopBar
|
|
11
12
|
};
|
|
@@ -79,7 +79,7 @@ const h = i(
|
|
|
79
79
|
color: "gray",
|
|
80
80
|
children: t
|
|
81
81
|
}
|
|
82
|
-
)),
|
|
82
|
+
)), V = n(
|
|
83
83
|
({ children: t, className: a }, e) => /* @__PURE__ */ s.jsx(
|
|
84
84
|
"div",
|
|
85
85
|
{
|
|
@@ -89,7 +89,7 @@ const h = i(
|
|
|
89
89
|
children: t
|
|
90
90
|
}
|
|
91
91
|
)
|
|
92
|
-
),
|
|
92
|
+
), T = n(
|
|
93
93
|
({ children: t, className: a, placement: e }, r) => /* @__PURE__ */ s.jsx(
|
|
94
94
|
"div",
|
|
95
95
|
{
|
|
@@ -109,12 +109,12 @@ const h = i(
|
|
|
109
109
|
role: "banner",
|
|
110
110
|
children: t
|
|
111
111
|
}
|
|
112
|
-
),
|
|
112
|
+
), ya = Object.assign(S, {
|
|
113
113
|
Leading: B,
|
|
114
114
|
Headline: w,
|
|
115
115
|
Subtitle: N,
|
|
116
|
-
Trailing:
|
|
117
|
-
Center:
|
|
116
|
+
Trailing: V,
|
|
117
|
+
Center: T,
|
|
118
118
|
Bottom: y
|
|
119
119
|
}), H = i(
|
|
120
120
|
"sticky bottom-0 left-0 w-full flex justify-between items-center bg-white border-t border-border shadow-xs z-40 safe-bottom px-8 py-1",
|
|
@@ -180,9 +180,9 @@ const h = i(
|
|
|
180
180
|
...o,
|
|
181
181
|
children: t
|
|
182
182
|
}
|
|
183
|
-
),
|
|
183
|
+
), Ba = Object.assign(P, {
|
|
184
184
|
Item: L
|
|
185
|
-
}),
|
|
185
|
+
}), C = i("flex", {
|
|
186
186
|
variants: {
|
|
187
187
|
orientation: {
|
|
188
188
|
horizontal: "flex-row",
|
|
@@ -214,7 +214,7 @@ const h = i(
|
|
|
214
214
|
gap: "md",
|
|
215
215
|
fluid: !1
|
|
216
216
|
}
|
|
217
|
-
}),
|
|
217
|
+
}), wa = n(
|
|
218
218
|
function({
|
|
219
219
|
className: a,
|
|
220
220
|
children: e,
|
|
@@ -229,7 +229,7 @@ const h = i(
|
|
|
229
229
|
{
|
|
230
230
|
ref: x,
|
|
231
231
|
className: l(
|
|
232
|
-
|
|
232
|
+
C({
|
|
233
233
|
orientation: r,
|
|
234
234
|
alignment: o,
|
|
235
235
|
gap: c,
|
|
@@ -243,44 +243,54 @@ const h = i(
|
|
|
243
243
|
}
|
|
244
244
|
);
|
|
245
245
|
}
|
|
246
|
-
),
|
|
246
|
+
), z = i("w-full px-4 sm:px-6 py-6 sm:py-8"), Na = n(
|
|
247
|
+
({ children: t, className: a, ...e }, r) => /* @__PURE__ */ s.jsx(
|
|
248
|
+
"div",
|
|
249
|
+
{
|
|
250
|
+
ref: r,
|
|
251
|
+
className: l(z(), a),
|
|
252
|
+
...e,
|
|
253
|
+
children: t
|
|
254
|
+
}
|
|
255
|
+
)
|
|
256
|
+
), R = i("w-full mt-4"), I = i(
|
|
247
257
|
"flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4 px-4 sm:px-6 mb-4"
|
|
248
|
-
),
|
|
258
|
+
), k = i("mb-4 px-4 sm:px-6"), F = i(
|
|
249
259
|
"flex-1 min-w-0 flex flex-col gap-2 w-full sm:w-auto"
|
|
250
|
-
),
|
|
260
|
+
), G = i("flex items-center gap-2 flex-wrap"), O = i(
|
|
251
261
|
"flex flex-col sm:flex-row gap-2 sm:gap-3 w-full sm:w-auto sm:ml-auto sm:shrink-0 [&>*]:w-full sm:[&>*]:w-auto"
|
|
252
|
-
),
|
|
262
|
+
), W = i(
|
|
253
263
|
"w-full flex items-center px-4 sm:px-6 py-0 overflow-x-auto"
|
|
254
|
-
),
|
|
264
|
+
), M = n(
|
|
255
265
|
({ children: t, className: a, ...e }, r) => /* @__PURE__ */ s.jsx(
|
|
256
266
|
"div",
|
|
257
267
|
{
|
|
258
268
|
ref: r,
|
|
259
|
-
className: l(
|
|
269
|
+
className: l(I(), a),
|
|
260
270
|
"data-versaur-page-header-top": !0,
|
|
261
271
|
...e,
|
|
262
272
|
children: t
|
|
263
273
|
}
|
|
264
274
|
)
|
|
265
|
-
),
|
|
275
|
+
), E = n(({ children: t, className: a, ...e }, r) => /* @__PURE__ */ s.jsx(
|
|
266
276
|
"div",
|
|
267
277
|
{
|
|
268
278
|
ref: r,
|
|
269
|
-
className: l(
|
|
279
|
+
className: l(k(), a),
|
|
270
280
|
"data-versaur-page-header-breadcrumbs": !0,
|
|
271
281
|
...e,
|
|
272
282
|
children: t
|
|
273
283
|
}
|
|
274
|
-
)),
|
|
284
|
+
)), $ = n(({ children: t, className: a, ...e }, r) => /* @__PURE__ */ s.jsx(
|
|
275
285
|
"div",
|
|
276
286
|
{
|
|
277
287
|
ref: r,
|
|
278
|
-
className: l(
|
|
288
|
+
className: l(F(), a),
|
|
279
289
|
"data-versaur-page-header-content": !0,
|
|
280
290
|
...e,
|
|
281
291
|
children: t
|
|
282
292
|
}
|
|
283
|
-
)),
|
|
293
|
+
)), q = n((t, a) => /* @__PURE__ */ s.jsx(
|
|
284
294
|
d,
|
|
285
295
|
{
|
|
286
296
|
...t,
|
|
@@ -290,7 +300,7 @@ const h = i(
|
|
|
290
300
|
ellipsis: !0,
|
|
291
301
|
ref: a
|
|
292
302
|
}
|
|
293
|
-
)),
|
|
303
|
+
)), D = n(({ className: t, ...a }, e) => /* @__PURE__ */ s.jsx(
|
|
294
304
|
d,
|
|
295
305
|
{
|
|
296
306
|
as: "p",
|
|
@@ -301,34 +311,34 @@ const h = i(
|
|
|
301
311
|
className: l("mb-2 sm:clamp-3", t),
|
|
302
312
|
...a
|
|
303
313
|
}
|
|
304
|
-
)),
|
|
314
|
+
)), J = n(({ children: t, className: a, ...e }, r) => /* @__PURE__ */ s.jsx(
|
|
305
315
|
"div",
|
|
306
316
|
{
|
|
307
317
|
ref: r,
|
|
308
|
-
className: l(
|
|
318
|
+
className: l(G(), a),
|
|
309
319
|
"data-versaur-page-header-badges": !0,
|
|
310
320
|
...e,
|
|
311
321
|
children: t
|
|
312
322
|
}
|
|
313
|
-
)),
|
|
323
|
+
)), K = n(({ children: t, className: a, ...e }, r) => /* @__PURE__ */ s.jsx(
|
|
314
324
|
"div",
|
|
315
325
|
{
|
|
316
326
|
ref: r,
|
|
317
|
-
className: l(
|
|
327
|
+
className: l(O(), a),
|
|
318
328
|
"data-versaur-page-header-actions": !0,
|
|
319
329
|
...e,
|
|
320
330
|
children: t
|
|
321
331
|
}
|
|
322
|
-
)),
|
|
332
|
+
)), Q = n(({ children: t, className: a, ...e }, r) => /* @__PURE__ */ s.jsx(
|
|
323
333
|
"div",
|
|
324
334
|
{
|
|
325
335
|
ref: r,
|
|
326
|
-
className: l(
|
|
336
|
+
className: l(W(), a),
|
|
327
337
|
"data-versaur-page-header-bottom": !0,
|
|
328
338
|
...e,
|
|
329
339
|
children: t
|
|
330
340
|
}
|
|
331
|
-
)),
|
|
341
|
+
)), U = n(
|
|
332
342
|
({
|
|
333
343
|
children: t,
|
|
334
344
|
className: a,
|
|
@@ -345,82 +355,26 @@ const h = i(
|
|
|
345
355
|
"header",
|
|
346
356
|
{
|
|
347
357
|
ref: u,
|
|
348
|
-
className: l(
|
|
358
|
+
className: l(R(), a),
|
|
349
359
|
role: "banner",
|
|
350
360
|
...x,
|
|
351
361
|
children: [
|
|
352
|
-
o && /* @__PURE__ */ s.jsx(
|
|
353
|
-
g && /* @__PURE__ */ s.jsxs(
|
|
354
|
-
/* @__PURE__ */ s.jsxs(
|
|
355
|
-
e && /* @__PURE__ */ s.jsx(
|
|
356
|
-
r && /* @__PURE__ */ s.jsx(
|
|
357
|
-
c && /* @__PURE__ */ s.jsx(
|
|
362
|
+
o && /* @__PURE__ */ s.jsx(E, { children: o }),
|
|
363
|
+
g && /* @__PURE__ */ s.jsxs(M, { children: [
|
|
364
|
+
/* @__PURE__ */ s.jsxs($, { children: [
|
|
365
|
+
e && /* @__PURE__ */ s.jsx(q, { children: e }),
|
|
366
|
+
r && /* @__PURE__ */ s.jsx(D, { children: r }),
|
|
367
|
+
c && /* @__PURE__ */ s.jsx(J, { children: c })
|
|
358
368
|
] }),
|
|
359
|
-
p && /* @__PURE__ */ s.jsx(
|
|
369
|
+
p && /* @__PURE__ */ s.jsx(K, { children: p })
|
|
360
370
|
] }),
|
|
361
|
-
b && /* @__PURE__ */ s.jsx(
|
|
371
|
+
b && /* @__PURE__ */ s.jsx(Q, { children: m }),
|
|
362
372
|
t
|
|
363
373
|
]
|
|
364
374
|
}
|
|
365
375
|
);
|
|
366
376
|
}
|
|
367
|
-
),
|
|
368
|
-
"w-full flex items-center px-6 py-4 mb-6 border-b border-border shadow-xs bg-white",
|
|
369
|
-
{
|
|
370
|
-
variants: {},
|
|
371
|
-
defaultVariants: {}
|
|
372
|
-
}
|
|
373
|
-
), X = i("flex items-center gap-3 min-w-0 flex-1"), Y = i("flex items-center gap-2 ml-auto"), Z = i(
|
|
374
|
-
"px-2.5 py-1.5 rounded-md text-sm cursor-pointer transition-colors",
|
|
375
|
-
{
|
|
376
|
-
variants: {
|
|
377
|
-
active: {
|
|
378
|
-
true: "bg-primary/10 text-primary",
|
|
379
|
-
false: "hover:text-primary text-ghost"
|
|
380
|
-
}
|
|
381
|
-
},
|
|
382
|
-
defaultVariants: {
|
|
383
|
-
active: !1
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
), _ = i("flex items-center gap-2 ml-4"), aa = i("flex items-center gap-2 mr-4"), ea = n(
|
|
387
|
-
function({ children: a, className: e, ...r }, o) {
|
|
388
|
-
return /* @__PURE__ */ s.jsx("nav", { ref: o, className: _({ className: e }), ...r, children: a });
|
|
389
|
-
}
|
|
390
|
-
), ta = n(
|
|
391
|
-
function({ children: a, className: e, ...r }, o) {
|
|
392
|
-
return /* @__PURE__ */ s.jsx("div", { ref: o, className: aa({ className: e }), ...r, children: a });
|
|
393
|
-
}
|
|
394
|
-
), sa = n(
|
|
395
|
-
function({ children: a, className: e, ...r }, o) {
|
|
396
|
-
return /* @__PURE__ */ s.jsx("div", { ref: o, className: X({ className: e }), ...r, children: a });
|
|
397
|
-
}
|
|
398
|
-
), ra = n(
|
|
399
|
-
function({ children: a, className: e, ...r }, o) {
|
|
400
|
-
return /* @__PURE__ */ s.jsx("div", { ref: o, className: Y({ className: e }), ...r, children: a });
|
|
401
|
-
}
|
|
402
|
-
), oa = n(
|
|
403
|
-
function({ children: a, className: e, active: r, ...o }, c) {
|
|
404
|
-
return /* @__PURE__ */ s.jsx(
|
|
405
|
-
"div",
|
|
406
|
-
{
|
|
407
|
-
ref: c,
|
|
408
|
-
className: Z({ active: r, className: e }),
|
|
409
|
-
"aria-current": r ? "page" : void 0,
|
|
410
|
-
...o,
|
|
411
|
-
children: a
|
|
412
|
-
}
|
|
413
|
-
);
|
|
414
|
-
}
|
|
415
|
-
), na = n(
|
|
416
|
-
({ children: t, className: a, ...e }, r) => /* @__PURE__ */ s.jsx("header", { ref: r, className: U({ className: a }), ...e, children: t })
|
|
417
|
-
), Na = Object.assign(na, {
|
|
418
|
-
Leading: sa,
|
|
419
|
-
Trailing: ra,
|
|
420
|
-
NavItem: oa,
|
|
421
|
-
Nav: ea,
|
|
422
|
-
Actions: ta
|
|
423
|
-
}), ia = i("w-full mx-auto relative", {
|
|
377
|
+
), Va = U, X = i("w-full mx-auto relative", {
|
|
424
378
|
variants: {
|
|
425
379
|
type: {
|
|
426
380
|
desktop: "max-w-7xl px-6 pb-10",
|
|
@@ -437,13 +391,13 @@ const h = i(
|
|
|
437
391
|
"div",
|
|
438
392
|
{
|
|
439
393
|
ref: c,
|
|
440
|
-
className: l(
|
|
394
|
+
className: l(X({ type: a }), e),
|
|
441
395
|
...o,
|
|
442
396
|
children: r
|
|
443
397
|
}
|
|
444
398
|
);
|
|
445
399
|
}
|
|
446
|
-
),
|
|
400
|
+
), Y = i("grid w-full gap-4 grid-cols-12"), Z = i("", {
|
|
447
401
|
variants: {
|
|
448
402
|
span: {
|
|
449
403
|
1: "col-span-1",
|
|
@@ -463,19 +417,19 @@ const h = i(
|
|
|
463
417
|
defaultVariants: {
|
|
464
418
|
span: "4"
|
|
465
419
|
}
|
|
466
|
-
}),
|
|
420
|
+
}), _ = n(
|
|
467
421
|
function({ className: a, children: e, ...r }, o) {
|
|
468
422
|
return /* @__PURE__ */ s.jsx(
|
|
469
423
|
"div",
|
|
470
424
|
{
|
|
471
425
|
ref: o,
|
|
472
|
-
className: l(
|
|
426
|
+
className: l(Y(), a),
|
|
473
427
|
...r,
|
|
474
428
|
children: e
|
|
475
429
|
}
|
|
476
430
|
);
|
|
477
431
|
}
|
|
478
|
-
),
|
|
432
|
+
), aa = n(
|
|
479
433
|
function({ span: a = 4, className: e, children: r, ...o }, c) {
|
|
480
434
|
const p = Math.min(12, Math.max(1, a));
|
|
481
435
|
return /* @__PURE__ */ s.jsx(
|
|
@@ -483,7 +437,7 @@ const h = i(
|
|
|
483
437
|
{
|
|
484
438
|
ref: c,
|
|
485
439
|
className: l(
|
|
486
|
-
|
|
440
|
+
Z({ span: `${p}` }),
|
|
487
441
|
e
|
|
488
442
|
),
|
|
489
443
|
...o,
|
|
@@ -491,8 +445,8 @@ const h = i(
|
|
|
491
445
|
}
|
|
492
446
|
);
|
|
493
447
|
}
|
|
494
|
-
),
|
|
495
|
-
Column:
|
|
448
|
+
), Sa = Object.assign(_, {
|
|
449
|
+
Column: aa
|
|
496
450
|
}), f = i(
|
|
497
451
|
"flex items-center gap-2 px-4 py-2 rounded-md hover:text-primary focus:outline-none transition-colors",
|
|
498
452
|
{
|
|
@@ -511,7 +465,7 @@ const h = i(
|
|
|
511
465
|
disabled: !1
|
|
512
466
|
}
|
|
513
467
|
}
|
|
514
|
-
),
|
|
468
|
+
), ea = n(
|
|
515
469
|
(t, a) => {
|
|
516
470
|
const { icon: e, children: r, href: o, onClick: c, active: p, ...m } = t;
|
|
517
471
|
if (typeof o == "string") {
|
|
@@ -553,7 +507,7 @@ const h = i(
|
|
|
553
507
|
) });
|
|
554
508
|
}
|
|
555
509
|
}
|
|
556
|
-
),
|
|
510
|
+
), ta = n(
|
|
557
511
|
function({ children: a, label: e, ...r }, o) {
|
|
558
512
|
return /* @__PURE__ */ s.jsxs("li", { ref: o, className: "flex flex-col gap-2 mt-2", ...r, children: [
|
|
559
513
|
/* @__PURE__ */ s.jsx(
|
|
@@ -570,7 +524,7 @@ const h = i(
|
|
|
570
524
|
/* @__PURE__ */ s.jsx("ul", { className: "flex flex-col gap-1", children: a })
|
|
571
525
|
] });
|
|
572
526
|
}
|
|
573
|
-
),
|
|
527
|
+
), sa = n(
|
|
574
528
|
({ children: t, ...a }, e) => /* @__PURE__ */ s.jsx(
|
|
575
529
|
"nav",
|
|
576
530
|
{
|
|
@@ -581,17 +535,74 @@ const h = i(
|
|
|
581
535
|
children: /* @__PURE__ */ s.jsx("div", { className: "flex-1 overflow-y-auto scrollbar-thin scrollbar-thumb-border scrollbar-track-background", children: /* @__PURE__ */ s.jsx("ul", { className: "flex flex-col gap-1 mx-2", children: t }) })
|
|
582
536
|
}
|
|
583
537
|
)
|
|
584
|
-
),
|
|
585
|
-
Item:
|
|
586
|
-
Group:
|
|
538
|
+
), Ha = Object.assign(sa, {
|
|
539
|
+
Item: ea,
|
|
540
|
+
Group: ta
|
|
541
|
+
}), ra = i(
|
|
542
|
+
"w-full flex items-center px-6 py-4 mb-6 border-b border-border shadow-xs bg-white",
|
|
543
|
+
{
|
|
544
|
+
variants: {},
|
|
545
|
+
defaultVariants: {}
|
|
546
|
+
}
|
|
547
|
+
), oa = i("flex items-center gap-3 min-w-0 flex-1"), na = i("flex items-center gap-2 ml-auto"), ia = i(
|
|
548
|
+
"px-2.5 py-1.5 rounded-md text-sm cursor-pointer transition-colors",
|
|
549
|
+
{
|
|
550
|
+
variants: {
|
|
551
|
+
active: {
|
|
552
|
+
true: "bg-primary/10 text-primary",
|
|
553
|
+
false: "hover:text-primary text-ghost"
|
|
554
|
+
}
|
|
555
|
+
},
|
|
556
|
+
defaultVariants: {
|
|
557
|
+
active: !1
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
), la = i("flex items-center gap-2 ml-4"), ca = i("flex items-center gap-2 mr-4"), pa = n(
|
|
561
|
+
function({ children: a, className: e, ...r }, o) {
|
|
562
|
+
return /* @__PURE__ */ s.jsx("nav", { ref: o, className: la({ className: e }), ...r, children: a });
|
|
563
|
+
}
|
|
564
|
+
), ma = n(
|
|
565
|
+
function({ children: a, className: e, ...r }, o) {
|
|
566
|
+
return /* @__PURE__ */ s.jsx("div", { ref: o, className: ca({ className: e }), ...r, children: a });
|
|
567
|
+
}
|
|
568
|
+
), da = n(
|
|
569
|
+
function({ children: a, className: e, ...r }, o) {
|
|
570
|
+
return /* @__PURE__ */ s.jsx("div", { ref: o, className: oa({ className: e }), ...r, children: a });
|
|
571
|
+
}
|
|
572
|
+
), ua = n(
|
|
573
|
+
function({ children: a, className: e, ...r }, o) {
|
|
574
|
+
return /* @__PURE__ */ s.jsx("div", { ref: o, className: na({ className: e }), ...r, children: a });
|
|
575
|
+
}
|
|
576
|
+
), xa = n(
|
|
577
|
+
function({ children: a, className: e, active: r, ...o }, c) {
|
|
578
|
+
return /* @__PURE__ */ s.jsx(
|
|
579
|
+
"div",
|
|
580
|
+
{
|
|
581
|
+
ref: c,
|
|
582
|
+
className: ia({ active: r, className: e }),
|
|
583
|
+
"aria-current": r ? "page" : void 0,
|
|
584
|
+
...o,
|
|
585
|
+
children: a
|
|
586
|
+
}
|
|
587
|
+
);
|
|
588
|
+
}
|
|
589
|
+
), fa = n(
|
|
590
|
+
({ children: t, className: a, ...e }, r) => /* @__PURE__ */ s.jsx("header", { ref: r, className: ra({ className: a }), ...e, children: t })
|
|
591
|
+
), Aa = Object.assign(fa, {
|
|
592
|
+
Leading: da,
|
|
593
|
+
Trailing: ua,
|
|
594
|
+
NavItem: xa,
|
|
595
|
+
Nav: pa,
|
|
596
|
+
Actions: ma
|
|
587
597
|
});
|
|
588
598
|
export {
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
599
|
+
ya as A,
|
|
600
|
+
Ba as B,
|
|
601
|
+
Sa as F,
|
|
602
|
+
Na as P,
|
|
603
|
+
Ha as S,
|
|
604
|
+
Aa as T,
|
|
605
|
+
wa as a,
|
|
606
|
+
Va as b,
|
|
607
|
+
Ta as c
|
|
597
608
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export * from './app-bar';
|
|
2
2
|
export * from './bottom-bar';
|
|
3
3
|
export * from './button-group';
|
|
4
|
+
export * from './page-content';
|
|
4
5
|
export * from './page-header';
|
|
5
|
-
export * from './top-bar';
|
|
6
6
|
export * from './page-layout';
|
|
7
7
|
export * from './form-layout';
|
|
8
8
|
export * from './side-bar';
|
|
9
|
+
export * from './top-bar';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PageContentProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* PageContent - Layout component for page content areas
|
|
4
|
+
*
|
|
5
|
+
* Provides consistent horizontal spacing that matches the page-header
|
|
6
|
+
* component, with additional vertical padding for proper content separation.
|
|
7
|
+
* Designed to be used as a sibling to PageHeader for consistent page layouts.
|
|
8
|
+
*
|
|
9
|
+
* Key features:
|
|
10
|
+
* - Horizontal padding matches page-header (px-4 sm:px-6)
|
|
11
|
+
* - Additional vertical padding for content separation (py-6 sm:py-8)
|
|
12
|
+
* - Mobile-first responsive design
|
|
13
|
+
* - Full width container
|
|
14
|
+
*/
|
|
15
|
+
export declare const PageContent: import('react').ForwardRefExoticComponent<PageContentProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode, HTMLAttributes } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Props for PageContent main container
|
|
4
|
+
*
|
|
5
|
+
* A layout component that provides consistent horizontal spacing
|
|
6
|
+
* matching the page-header component, with additional vertical
|
|
7
|
+
* padding for content separation
|
|
8
|
+
*/
|
|
9
|
+
export interface PageContentProps extends HTMLAttributes<HTMLDivElement> {
|
|
10
|
+
/**
|
|
11
|
+
* Content to be displayed inside the page content area
|
|
12
|
+
*/
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
}
|