@dimasbaguspm/versaur 0.0.48 → 0.0.49

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.
Files changed (76) hide show
  1. package/dist/assets/styles.css +14 -6
  2. package/dist/js/forms/index.js +12 -14
  3. package/dist/js/image-rectangle-K9jmTTED.js +2607 -0
  4. package/dist/js/index.js +66 -68
  5. package/dist/js/layouts/index.js +8 -9
  6. package/dist/js/navigation/index.js +1 -1
  7. package/dist/js/overlays/index.js +2 -2
  8. package/dist/js/primitive/index.js +21 -20
  9. package/dist/js/tabs-I4n6MLAv.js +210 -0
  10. package/dist/js/time-picker-input-jJBtyikv.js +1562 -0
  11. package/dist/js/{tooltip-D6fUigp2.js → tooltip-nZW9TUz3.js} +293 -297
  12. package/dist/js/{top-bar-Dx0JVXms.js → top-bar-BMw3gFYA.js} +292 -247
  13. package/dist/types/forms/checkbox-input/checkbox-input.d.ts +1 -1
  14. package/dist/types/forms/checkbox-input/types.d.ts +11 -14
  15. package/dist/types/forms/chip-multiple-input/chip-multiple-input.atoms.d.ts +2 -2
  16. package/dist/types/forms/chip-multiple-input/chip-multiple-input.d.ts +1 -1
  17. package/dist/types/forms/chip-multiple-input/types.d.ts +15 -14
  18. package/dist/types/forms/chip-single-input/chip-single-input.atoms.d.ts +1 -1
  19. package/dist/types/forms/chip-single-input/chip-single-input.d.ts +1 -1
  20. package/dist/types/forms/chip-single-input/types.d.ts +15 -14
  21. package/dist/types/forms/date-single-picker-input/types.d.ts +10 -0
  22. package/dist/types/forms/index.d.ts +0 -2
  23. package/dist/types/forms/pin-field/pin-field.d.ts +2 -2
  24. package/dist/types/forms/pin-field/types.d.ts +16 -28
  25. package/dist/types/forms/select-input/index.d.ts +1 -1
  26. package/dist/types/forms/select-input/select-input.atoms.d.ts +16 -0
  27. package/dist/types/forms/select-input/select-input.d.ts +4 -7
  28. package/dist/types/forms/select-input/types.d.ts +32 -9
  29. package/dist/types/forms/selectable-multiple-input/selectable-multiple-input.d.ts +1 -1
  30. package/dist/types/forms/selectable-multiple-input/types.d.ts +20 -3
  31. package/dist/types/forms/selectable-single-input/selectable-single-input.d.ts +1 -1
  32. package/dist/types/forms/selectable-single-input/types.d.ts +20 -3
  33. package/dist/types/forms/switch-input/switch-input.atoms.d.ts +7 -8
  34. package/dist/types/forms/switch-input/switch-input.d.ts +5 -1
  35. package/dist/types/forms/switch-input/types.d.ts +10 -33
  36. package/dist/types/forms/text-input/text-input.d.ts +2 -2
  37. package/dist/types/forms/text-input/types.d.ts +0 -7
  38. package/dist/types/forms/textarea-input/textarea-input.d.ts +3 -3
  39. package/dist/types/forms/textarea-input/types.d.ts +33 -18
  40. package/dist/types/layouts/index.d.ts +1 -2
  41. package/dist/types/layouts/page-content/index.d.ts +1 -1
  42. package/dist/types/layouts/page-content/page-content.d.ts +5 -11
  43. package/dist/types/layouts/page-content/types.d.ts +29 -9
  44. package/dist/types/layouts/page-header/types.d.ts +13 -0
  45. package/dist/types/navigation/tabs/tabs.atoms.d.ts +3 -2
  46. package/dist/types/navigation/tabs/types.d.ts +5 -13
  47. package/dist/types/navigation/tabs/use-tab-indicator.d.ts +8 -8
  48. package/dist/types/overlays/drawer/drawer.atoms.d.ts +18 -8
  49. package/dist/types/overlays/drawer/drawer.d.ts +5 -5
  50. package/dist/types/overlays/drawer/types.d.ts +11 -15
  51. package/dist/types/primitive/button/button.d.ts +5 -0
  52. package/dist/types/primitive/button/types.d.ts +24 -11
  53. package/dist/types/primitive/button-anchor/button-anchor.d.ts +9 -0
  54. package/dist/types/primitive/button-anchor/index.d.ts +2 -0
  55. package/dist/types/primitive/button-anchor/types.d.ts +35 -0
  56. package/dist/types/primitive/button-icon/button-icon.d.ts +6 -0
  57. package/dist/types/primitive/button-icon/types.d.ts +21 -10
  58. package/dist/types/primitive/filter-chip/types.d.ts +0 -10
  59. package/dist/types/primitive/index.d.ts +1 -0
  60. package/dist/types/templates/pin-verifier-drawer/types.d.ts +0 -5
  61. package/dist/utils/enforce-subpath-import.js +1 -3
  62. package/package.json +1 -1
  63. package/dist/js/image-rectangle-B4nXH4Q5.js +0 -2581
  64. package/dist/js/tabs-BAzThVka.js +0 -291
  65. package/dist/js/time-picker-input-JBEgDV2V.js +0 -2049
  66. package/dist/types/forms/segment-multiple-input/index.d.ts +0 -2
  67. package/dist/types/forms/segment-multiple-input/segment-multiple-input.atoms.d.ts +0 -12
  68. package/dist/types/forms/segment-multiple-input/segment-multiple-input.d.ts +0 -7
  69. package/dist/types/forms/segment-multiple-input/types.d.ts +0 -55
  70. package/dist/types/forms/segment-single-input/index.d.ts +0 -2
  71. package/dist/types/forms/segment-single-input/segment-single-input.atoms.d.ts +0 -11
  72. package/dist/types/forms/segment-single-input/segment-single-input.d.ts +0 -7
  73. package/dist/types/forms/segment-single-input/types.d.ts +0 -55
  74. package/dist/types/layouts/page-layout/index.d.ts +0 -2
  75. package/dist/types/layouts/page-layout/page-layout.d.ts +0 -8
  76. package/dist/types/layouts/page-layout/types.d.ts +0 -20
@@ -1,10 +1,10 @@
1
- import { c as i, j as s, a as l } from "./index-DOdDlCoL.js";
1
+ import { c as i, j as t, a as l } from "./index-DOdDlCoL.js";
2
2
  import * as v from "react";
3
3
  import { forwardRef as o } from "react";
4
- import { m as f } from "./image-rectangle-B4nXH4Q5.js";
4
+ import { n as f } from "./image-rectangle-K9jmTTED.js";
5
5
  import "./snackbar-DH8jCh2V.js";
6
- import { L as h } from "./skeleton-BNZyaRjo.js";
7
- const j = i(
6
+ import { L as y } from "./skeleton-BNZyaRjo.js";
7
+ const w = i(
8
8
  "w-full flex flex-wrap items-center pt-3 mb-3 gap-2 bg-white [&>[data-versaur-appbar-bottom]]:basis-full [&>[data-versaur-appbar-bottom]]:w-full [&:has([data-versaur-appbar-bottom])>[data-versaur-appbar-leading]]:pl-4 [&:has([data-versaur-appbar-bottom])>[data-versaur-appbar-trailing]]:pr-4 [&:not(:has([data-versaur-appbar-bottom]))]:px-4",
9
9
  {
10
10
  variants: {
@@ -20,7 +20,7 @@ const j = i(
20
20
  variant: "primary"
21
21
  }
22
22
  }
23
- ), y = i(
23
+ ), B = i(
24
24
  "flex flex-col justify-center min-w-0 flex-grow",
25
25
  {
26
26
  variants: {
@@ -34,27 +34,27 @@ const j = i(
34
34
  placement: "start"
35
35
  }
36
36
  }
37
- ), w = o(
38
- ({ children: t, className: a }, e) => /* @__PURE__ */ s.jsx(
37
+ ), N = o(
38
+ ({ children: s, className: a }, e) => /* @__PURE__ */ t.jsx(
39
39
  "div",
40
40
  {
41
41
  ref: e,
42
42
  "data-versaur-appbar-bottom": !0,
43
43
  className: l("w-full flex items-center min-h-[2.5rem] mt-2", a),
44
- children: t
44
+ children: s
45
45
  }
46
46
  )
47
- ), B = o(
48
- ({ children: t, className: a }, e) => /* @__PURE__ */ s.jsx(
47
+ ), V = o(
48
+ ({ children: s, className: a }, e) => /* @__PURE__ */ t.jsx(
49
49
  "div",
50
50
  {
51
51
  ref: e,
52
52
  className: l("flex items-center", a),
53
53
  "data-versaur-appbar-leading": !0,
54
- children: t
54
+ children: s
55
55
  }
56
56
  )
57
- ), N = o(({ children: t, ...a }, e) => /* @__PURE__ */ s.jsx(
57
+ ), z = o(({ children: s, ...a }, e) => /* @__PURE__ */ t.jsx(
58
58
  f,
59
59
  {
60
60
  ...a,
@@ -64,9 +64,9 @@ const j = i(
64
64
  fontWeight: "semibold",
65
65
  ellipsis: !0,
66
66
  clamp: 1,
67
- children: t
67
+ children: s
68
68
  }
69
- )), V = o(({ children: t, ...a }, e) => /* @__PURE__ */ s.jsx(
69
+ )), S = o(({ children: s, ...a }, e) => /* @__PURE__ */ t.jsx(
70
70
  f,
71
71
  {
72
72
  ...a,
@@ -77,46 +77,46 @@ const j = i(
77
77
  ellipsis: !0,
78
78
  clamp: 1,
79
79
  color: "gray",
80
- children: t
80
+ children: s
81
81
  }
82
- )), S = o(
83
- ({ children: t, className: a }, e) => /* @__PURE__ */ s.jsx(
82
+ )), T = o(
83
+ ({ children: s, className: a }, e) => /* @__PURE__ */ t.jsx(
84
84
  "div",
85
85
  {
86
86
  ref: e,
87
87
  className: l("flex items-center justify-end gap-2", a),
88
88
  "data-versaur-appbar-trailing": !0,
89
- children: t
89
+ children: s
90
90
  }
91
91
  )
92
- ), T = o(
93
- ({ children: t, className: a, placement: e }, r) => /* @__PURE__ */ s.jsx(
92
+ ), C = o(
93
+ ({ children: s, className: a, placement: e }, r) => /* @__PURE__ */ t.jsx(
94
94
  "div",
95
95
  {
96
96
  ref: r,
97
- className: l(y({ placement: e }), a),
98
- children: t
97
+ className: l(B({ placement: e }), a),
98
+ children: s
99
99
  }
100
100
  )
101
- ), L = ({
102
- children: t,
101
+ ), H = ({
102
+ children: s,
103
103
  className: a,
104
104
  variant: e = "primary"
105
- }) => /* @__PURE__ */ s.jsx(
105
+ }) => /* @__PURE__ */ t.jsx(
106
106
  "header",
107
107
  {
108
- className: l(j({ variant: e }), a),
108
+ className: l(w({ variant: e }), a),
109
109
  role: "banner",
110
- children: t
111
- }
112
- ), La = Object.assign(L, {
113
- Leading: B,
114
- Headline: N,
115
- Subtitle: V,
116
- Trailing: S,
117
- Center: T,
118
- Bottom: w
119
- }), H = i(
110
+ children: s
111
+ }
112
+ ), La = Object.assign(H, {
113
+ Leading: V,
114
+ Headline: z,
115
+ Subtitle: S,
116
+ Trailing: T,
117
+ Center: C,
118
+ Bottom: N
119
+ }), L = i(
120
120
  "sticky bottom-0 w-full flex justify-around items-center bg-white border-t border-border shadow-xs z-40 safe-bottom gap-4 select-none px-8",
121
121
  {
122
122
  variants: {
@@ -138,7 +138,7 @@ const j = i(
138
138
  size: "md"
139
139
  }
140
140
  }
141
- ), z = i(
141
+ ), A = i(
142
142
  "flex flex-col items-center justify-center gap-1",
143
143
  {
144
144
  variants: {
@@ -158,45 +158,45 @@ const j = i(
158
158
  }
159
159
  ), P = o(
160
160
  ({
161
- as: t = "button",
161
+ as: s = "button",
162
162
  icon: a,
163
163
  label: e,
164
164
  active: r = !1,
165
165
  className: n,
166
166
  children: c,
167
- ...p
168
- }, d) => /* @__PURE__ */ s.jsxs(
169
- t,
167
+ ...d
168
+ }, m) => /* @__PURE__ */ t.jsxs(
169
+ s,
170
170
  {
171
- ref: d,
171
+ ref: m,
172
172
  "aria-current": r ? "page" : void 0,
173
- className: z({ active: r, className: n, as: t }),
174
- ...p,
173
+ className: A({ active: r, className: n, as: s }),
174
+ ...d,
175
175
  children: [
176
176
  a && a,
177
177
  c && c,
178
- e && /* @__PURE__ */ s.jsx("span", { className: "text-xs mt-0.5", children: e })
178
+ e && /* @__PURE__ */ t.jsx("span", { className: "text-xs mt-0.5", children: e })
179
179
  ]
180
180
  }
181
181
  )
182
- ), A = ({
183
- children: t,
182
+ ), I = ({
183
+ children: s,
184
184
  variant: a = "primary",
185
185
  size: e = "md",
186
186
  className: r,
187
187
  ...n
188
- }) => /* @__PURE__ */ s.jsx(
188
+ }) => /* @__PURE__ */ t.jsx(
189
189
  "nav",
190
190
  {
191
191
  role: "navigation",
192
192
  "aria-label": "Bottom navigation",
193
- className: H({ variant: a, size: e, className: r }),
193
+ className: L({ variant: a, size: e, className: r }),
194
194
  ...n,
195
- children: t
195
+ children: s
196
196
  }
197
- ), Ha = Object.assign(A, {
197
+ ), Aa = Object.assign(I, {
198
198
  Item: P
199
- }), C = i("flex flex-wrap items-center", {
199
+ }), R = i("flex flex-wrap items-center", {
200
200
  variants: {
201
201
  orientation: {
202
202
  horizontal: "flex-row",
@@ -228,38 +228,38 @@ const j = i(
228
228
  gap: "md",
229
229
  fluid: !1
230
230
  }
231
- }), za = o(
231
+ }), Pa = o(
232
232
  function({
233
233
  className: a,
234
234
  children: e,
235
235
  orientation: r = "horizontal",
236
236
  alignment: n = "start",
237
237
  gap: c = "md",
238
- fluid: p = !1,
239
- hasMargin: d,
240
- ...u
241
- }, m) {
242
- return /* @__PURE__ */ s.jsx(
238
+ fluid: d = !1,
239
+ hasMargin: m,
240
+ ...p
241
+ }, u) {
242
+ return /* @__PURE__ */ t.jsx(
243
243
  "div",
244
244
  {
245
- ref: m,
245
+ ref: u,
246
246
  className: l(
247
- C({
247
+ R({
248
248
  orientation: r,
249
249
  alignment: n,
250
250
  gap: c,
251
- fluid: p
251
+ fluid: d
252
252
  }),
253
- d && "mb-4",
253
+ m && "mb-4",
254
254
  a
255
255
  ),
256
256
  role: "group",
257
- ...u,
257
+ ...p,
258
258
  children: e
259
259
  }
260
260
  );
261
261
  }
262
- ), R = i("flex flex-wrap items-center", {
262
+ ), G = i("flex flex-wrap items-center", {
263
263
  variants: {
264
264
  orientation: {
265
265
  horizontal: "flex-row",
@@ -291,38 +291,38 @@ const j = i(
291
291
  gap: "md",
292
292
  fluid: !1
293
293
  }
294
- }), Pa = o(
294
+ }), Ia = o(
295
295
  function({
296
296
  className: a,
297
297
  children: e,
298
298
  orientation: r = "horizontal",
299
299
  alignment: n = "start",
300
300
  gap: c = "md",
301
- fluid: p = !1,
302
- hasMargin: d,
303
- ...u
304
- }, m) {
305
- return /* @__PURE__ */ s.jsx(
301
+ fluid: d = !1,
302
+ hasMargin: m,
303
+ ...p
304
+ }, u) {
305
+ return /* @__PURE__ */ t.jsx(
306
306
  "div",
307
307
  {
308
- ref: m,
308
+ ref: u,
309
309
  className: l(
310
- R({
310
+ G({
311
311
  orientation: r,
312
312
  alignment: n,
313
313
  gap: c,
314
- fluid: p
314
+ fluid: d
315
315
  }),
316
- d && "mb-4",
316
+ m && "mb-4",
317
317
  a
318
318
  ),
319
319
  role: "group",
320
- ...u,
320
+ ...p,
321
321
  children: e
322
322
  }
323
323
  );
324
324
  }
325
- ), G = i("flex flex-wrap items-center", {
325
+ ), k = i("flex flex-wrap items-center", {
326
326
  variants: {
327
327
  orientation: {
328
328
  horizontal: "flex-row",
@@ -354,95 +354,106 @@ const j = i(
354
354
  gap: "md",
355
355
  fluid: !1
356
356
  }
357
- }), Aa = o(
357
+ }), Ra = o(
358
358
  function({
359
359
  className: a,
360
360
  children: e,
361
361
  orientation: r = "horizontal",
362
362
  alignment: n = "start",
363
363
  gap: c = "md",
364
- fluid: p = !1,
365
- hasMargin: d,
366
- ...u
367
- }, m) {
368
- return /* @__PURE__ */ s.jsx(
364
+ fluid: d = !1,
365
+ hasMargin: m,
366
+ ...p
367
+ }, u) {
368
+ return /* @__PURE__ */ t.jsx(
369
369
  "div",
370
370
  {
371
- ref: m,
371
+ ref: u,
372
372
  className: l(
373
- G({
373
+ k({
374
374
  orientation: r,
375
375
  alignment: n,
376
376
  gap: c,
377
- fluid: p
377
+ fluid: d
378
378
  }),
379
- d && "mb-4",
379
+ m && "mb-4",
380
380
  a
381
381
  ),
382
382
  role: "group",
383
- ...u,
383
+ ...p,
384
384
  children: e
385
385
  }
386
386
  );
387
387
  }
388
- ), I = i("w-full px-4 sm:px-6 py-6 sm:py-8"), Ca = o(
389
- ({ children: t, className: a, ...e }, r) => /* @__PURE__ */ s.jsx(
390
- "div",
391
- {
392
- ref: r,
393
- className: l(I(), a),
394
- ...e,
395
- children: t
388
+ ), F = i("w-full", {
389
+ variants: {
390
+ backgroundColor: {
391
+ white: "bg-white",
392
+ gray: "bg-neutral"
396
393
  }
397
- )
398
- ), k = i("w-full pt-4 md:pt-10"), F = i(
399
- "flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4 px-4 sm:px-6 mb-4"
400
- ), O = i("mb-4 px-4 sm:px-6"), W = i(
394
+ },
395
+ defaultVariants: {
396
+ backgroundColor: "white"
397
+ }
398
+ }), O = i("w-full mx-auto pt-4 md:pt-10", {
399
+ variants: {
400
+ size: {
401
+ fluid: "max-w-full px-0",
402
+ wide: "max-w-7xl px-6",
403
+ narrow: "max-w-3xl px-4"
404
+ }
405
+ },
406
+ defaultVariants: {
407
+ size: "fluid"
408
+ }
409
+ }), W = i(
410
+ "flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4 mb-4"
411
+ ), M = i("mb-4"), E = i(
401
412
  "flex-1 min-w-0 flex flex-col gap-2 w-full sm:w-auto"
402
- ), M = i("flex items-center gap-2 flex-wrap"), E = i(
413
+ ), $ = i("flex items-center gap-2 flex-wrap"), q = i(
403
414
  "hidden md:flex flex-col sm:flex-row gap-2 sm:gap-3 w-full w-auto sm:ml-auto sm:shrink-0 [&>*]:w-full sm:[&>*]:w-auto"
404
- ), $ = i("md:hidden"), q = i(
405
- "w-full flex items-center px-4 sm:px-6 py-0 overflow-x-auto"
406
- ), D = o(
407
- ({ children: t, className: a, ...e }, r) => /* @__PURE__ */ s.jsx(
415
+ ), D = i("md:hidden"), J = i(
416
+ "w-full flex items-center py-0 overflow-x-auto"
417
+ ), K = o(
418
+ ({ children: s, className: a, ...e }, r) => /* @__PURE__ */ t.jsx(
408
419
  "div",
409
420
  {
410
421
  ref: r,
411
- className: l(F(), a),
422
+ className: l(W(), a),
412
423
  "data-versaur-page-header-top": !0,
413
424
  ...e,
414
- children: t
425
+ children: s
415
426
  }
416
427
  )
417
- ), J = o(({ children: t, className: a, ...e }, r) => /* @__PURE__ */ s.jsx(
428
+ ), Q = o(({ children: s, className: a, ...e }, r) => /* @__PURE__ */ t.jsx(
418
429
  "div",
419
430
  {
420
431
  ref: r,
421
- className: l(O(), a),
432
+ className: l(M(), a),
422
433
  "data-versaur-page-header-breadcrumbs": !0,
423
434
  ...e,
424
- children: t
435
+ children: s
425
436
  }
426
- )), K = o(({ children: t, className: a, ...e }, r) => /* @__PURE__ */ s.jsx(
437
+ )), U = o(({ children: s, className: a, ...e }, r) => /* @__PURE__ */ t.jsx(
427
438
  "div",
428
439
  {
429
440
  ref: r,
430
- className: l(W(), a),
441
+ className: l(E(), a),
431
442
  "data-versaur-page-header-content": !0,
432
443
  ...e,
433
- children: t
444
+ children: s
434
445
  }
435
- )), Q = o((t, a) => /* @__PURE__ */ s.jsx(
446
+ )), X = o((s, a) => /* @__PURE__ */ t.jsx(
436
447
  f,
437
448
  {
438
- ...t,
449
+ ...s,
439
450
  as: "h1",
440
451
  fontSize: "xl",
441
452
  fontWeight: "semibold",
442
453
  ellipsis: !0,
443
454
  ref: a
444
455
  }
445
- )), U = o(({ className: t, ...a }, e) => /* @__PURE__ */ s.jsx(
456
+ )), Y = o(({ className: s, ...a }, e) => /* @__PURE__ */ t.jsx(
446
457
  f,
447
458
  {
448
459
  as: "p",
@@ -450,109 +461,144 @@ const j = i(
450
461
  fontWeight: "normal",
451
462
  clamp: 2,
452
463
  ref: e,
453
- className: l("mb-2 sm:clamp-3", t),
464
+ className: l("mb-2 sm:clamp-3", s),
454
465
  ...a
455
466
  }
456
- )), X = o(({ children: t, className: a, ...e }, r) => /* @__PURE__ */ s.jsx(
467
+ )), Z = o(({ children: s, className: a, ...e }, r) => /* @__PURE__ */ t.jsx(
457
468
  "div",
458
469
  {
459
470
  ref: r,
460
- className: l(M(), a),
471
+ className: l($(), a),
461
472
  "data-versaur-page-header-badges": !0,
462
473
  ...e,
463
- children: t
474
+ children: s
464
475
  }
465
- )), Y = o(({ children: t, className: a, ...e }, r) => /* @__PURE__ */ s.jsx(
476
+ )), _ = o(({ children: s, className: a, ...e }, r) => /* @__PURE__ */ t.jsx(
466
477
  "div",
467
478
  {
468
479
  ref: r,
469
- className: l(E(), a),
480
+ className: l(q(), a),
470
481
  "data-versaur-page-header-actions": !0,
471
482
  ...e,
472
- children: t
483
+ children: s
473
484
  }
474
- )), Z = o(({ children: t, className: a, ...e }, r) => /* @__PURE__ */ s.jsx(
485
+ )), aa = o(({ children: s, className: a, ...e }, r) => /* @__PURE__ */ t.jsx(
475
486
  "div",
476
487
  {
477
488
  ref: r,
478
- className: l($(), a),
489
+ className: l(D(), a),
479
490
  "data-versaur-page-header-mobile-actions": !0,
480
491
  ...e,
481
- children: t
492
+ children: s
482
493
  }
483
- )), _ = o(({ children: t, className: a, ...e }, r) => /* @__PURE__ */ s.jsx(
494
+ )), ea = o(({ children: s, className: a, ...e }, r) => /* @__PURE__ */ t.jsx(
484
495
  "div",
485
496
  {
486
497
  ref: r,
487
- className: l(q(), a),
498
+ className: l(J(), a),
488
499
  "data-versaur-page-header-bottom": !0,
489
500
  ...e,
490
- children: t
501
+ children: s
491
502
  }
492
- )), aa = o(
503
+ )), ta = o(
493
504
  ({
494
- children: t,
505
+ children: s,
495
506
  className: a,
496
- title: e,
497
- subtitle: r,
498
- breadcrumbs: n,
499
- badges: c,
507
+ size: e = "fluid",
508
+ backgroundColor: r = "white",
509
+ title: n,
510
+ subtitle: c,
511
+ breadcrumbs: d,
512
+ badges: m,
500
513
  actions: p,
501
- mobileActions: d,
502
- tabs: u,
503
- ...m
504
- }, x) => {
505
- const g = u;
506
- return /* @__PURE__ */ s.jsxs(
514
+ mobileActions: u,
515
+ tabs: x,
516
+ ...g
517
+ }, h) => {
518
+ const j = x;
519
+ return /* @__PURE__ */ t.jsx(
507
520
  "header",
508
521
  {
509
- ref: x,
510
- className: l(k(), a),
522
+ ref: h,
523
+ className: l(F({ backgroundColor: r })),
511
524
  role: "banner",
512
- ...m,
513
- children: [
514
- n && /* @__PURE__ */ s.jsx(J, { children: n }),
515
- /* @__PURE__ */ s.jsxs(D, { children: [
516
- /* @__PURE__ */ s.jsxs(K, { children: [
517
- /* @__PURE__ */ s.jsxs("div", { className: "flex items-center justify-between", children: [
518
- /* @__PURE__ */ s.jsx(Q, { children: e }),
519
- d && /* @__PURE__ */ s.jsx(Z, { children: d })
525
+ ...g,
526
+ children: /* @__PURE__ */ t.jsxs("div", { className: l(O({ size: e }), a), children: [
527
+ d && /* @__PURE__ */ t.jsx(Q, { children: d }),
528
+ /* @__PURE__ */ t.jsxs(K, { children: [
529
+ /* @__PURE__ */ t.jsxs(U, { children: [
530
+ /* @__PURE__ */ t.jsxs("div", { className: "flex items-center justify-between", children: [
531
+ /* @__PURE__ */ t.jsx(X, { children: n }),
532
+ u && /* @__PURE__ */ t.jsx(aa, { children: u })
520
533
  ] }),
521
- r && /* @__PURE__ */ s.jsx(U, { children: r }),
522
- c && /* @__PURE__ */ s.jsx(X, { children: c })
534
+ c && /* @__PURE__ */ t.jsx(Y, { children: c }),
535
+ m && /* @__PURE__ */ t.jsx(Z, { children: m })
523
536
  ] }),
524
- p && /* @__PURE__ */ s.jsx(Y, { children: p })
537
+ p && /* @__PURE__ */ t.jsx(_, { children: p })
525
538
  ] }),
526
- g && /* @__PURE__ */ s.jsx(_, { children: u }),
527
- t
528
- ]
539
+ j && /* @__PURE__ */ t.jsx(ea, { children: x }),
540
+ s
541
+ ] })
529
542
  }
530
543
  );
531
544
  }
532
- ), Ra = aa, ea = i("w-full mx-auto relative", {
545
+ ), Ga = ta, sa = i("w-full", {
546
+ variants: {
547
+ backgroundColor: {
548
+ white: "bg-white",
549
+ gray: "bg-neutral"
550
+ }
551
+ },
552
+ defaultVariants: {
553
+ backgroundColor: "white"
554
+ }
555
+ }), ra = i("w-full mx-auto relative", {
533
556
  variants: {
534
- type: {
535
- desktop: "max-w-7xl px-6 pb-10",
536
- tablet: "max-w-3xl px-4",
537
- mobile: "w-full"
557
+ size: {
558
+ fluid: "max-w-full px-0",
559
+ wide: "max-w-7xl px-6 pb-10",
560
+ narrow: "max-w-3xl px-4 pb-10"
561
+ },
562
+ template: {
563
+ "single-column": "grid grid-cols-1",
564
+ "two-column": "grid grid-cols-1 md:grid-cols-2 gap-6",
565
+ "two-column-asymmetric-left": "grid grid-cols-1 md:grid-cols-3 gap-6",
566
+ "two-column-asymmetric-right": "grid grid-cols-1 md:grid-cols-3 gap-6"
538
567
  }
539
568
  },
540
569
  defaultVariants: {
541
- type: "desktop"
570
+ size: "fluid",
571
+ template: "single-column"
542
572
  }
543
- }), Ga = v.forwardRef(
544
- function({ type: a = "desktop", className: e, children: r, ...n }, c) {
545
- return /* @__PURE__ */ s.jsx(
573
+ }), ka = v.forwardRef(
574
+ function({
575
+ size: a = "fluid",
576
+ template: e = "single-column",
577
+ backgroundColor: r = "white",
578
+ className: n,
579
+ children: c,
580
+ ...d
581
+ }, m) {
582
+ return /* @__PURE__ */ t.jsx(
546
583
  "div",
547
584
  {
548
- ref: c,
549
- className: l(ea({ type: a }), e),
550
- ...n,
551
- children: r
585
+ ref: m,
586
+ className: l(sa({ backgroundColor: r })),
587
+ ...d,
588
+ children: /* @__PURE__ */ t.jsx(
589
+ "div",
590
+ {
591
+ className: l(
592
+ ra({ size: a, template: e }),
593
+ n
594
+ ),
595
+ children: c
596
+ }
597
+ )
552
598
  }
553
599
  );
554
600
  }
555
- ), ta = i(
601
+ ), na = i(
556
602
  [
557
603
  // Base styles: flex container that centers content
558
604
  "flex",
@@ -588,33 +634,33 @@ const j = i(
588
634
  fullscreen: !1
589
635
  }
590
636
  }
591
- ), sa = i([
637
+ ), oa = i([
592
638
  "text-foreground-light",
593
639
  "text-sm",
594
640
  "text-center",
595
641
  "max-w-xs"
596
- ]), Ia = v.forwardRef(
642
+ ]), Fa = v.forwardRef(
597
643
  function({
598
644
  type: a = "bar",
599
645
  size: e = "sm",
600
646
  color: r = "primary",
601
647
  ariaLabel: n = "Loading page",
602
648
  message: c,
603
- fullscreen: p = !1,
604
- minimal: d = !1,
605
- className: u,
606
- children: m,
649
+ fullscreen: d = !1,
650
+ minimal: m = !1,
651
+ className: p,
652
+ children: u,
607
653
  ...x
608
654
  }, g) {
609
- return /* @__PURE__ */ s.jsxs(
655
+ return /* @__PURE__ */ t.jsxs(
610
656
  "div",
611
657
  {
612
658
  ref: g,
613
- className: l(ta({ minimal: d, fullscreen: p }), u),
659
+ className: l(na({ minimal: m, fullscreen: d }), p),
614
660
  ...x,
615
661
  children: [
616
- /* @__PURE__ */ s.jsx("div", { className: "max-w-xs w-full flex justify-center", children: /* @__PURE__ */ s.jsx(
617
- h,
662
+ /* @__PURE__ */ t.jsx("div", { className: "max-w-xs w-full flex justify-center", children: /* @__PURE__ */ t.jsx(
663
+ y,
618
664
  {
619
665
  type: a,
620
666
  size: e,
@@ -622,13 +668,13 @@ const j = i(
622
668
  ariaLabel: n
623
669
  }
624
670
  ) }),
625
- c && /* @__PURE__ */ s.jsx("p", { className: sa(), "aria-live": "polite", children: c }),
626
- m
671
+ c && /* @__PURE__ */ t.jsx("p", { className: oa(), "aria-live": "polite", children: c }),
672
+ u
627
673
  ]
628
674
  }
629
675
  );
630
676
  }
631
- ), ra = i("grid w-full gap-4 grid-cols-12"), na = i("", {
677
+ ), ia = i("grid w-full gap-4 grid-cols-12"), la = i("", {
632
678
  variants: {
633
679
  span: {
634
680
  1: "col-span-1",
@@ -648,27 +694,27 @@ const j = i(
648
694
  defaultVariants: {
649
695
  span: "4"
650
696
  }
651
- }), oa = o(
697
+ }), ca = o(
652
698
  function({ className: a, children: e, ...r }, n) {
653
- return /* @__PURE__ */ s.jsx(
699
+ return /* @__PURE__ */ t.jsx(
654
700
  "div",
655
701
  {
656
702
  ref: n,
657
- className: l(ra(), a),
703
+ className: l(ia(), a),
658
704
  ...r,
659
705
  children: e
660
706
  }
661
707
  );
662
708
  }
663
- ), ia = o(
709
+ ), da = o(
664
710
  function({ span: a = 4, className: e, children: r, ...n }, c) {
665
- const p = Math.min(12, Math.max(1, a));
666
- return /* @__PURE__ */ s.jsx(
711
+ const d = Math.min(12, Math.max(1, a));
712
+ return /* @__PURE__ */ t.jsx(
667
713
  "div",
668
714
  {
669
715
  ref: c,
670
716
  className: l(
671
- na({ span: `${p}` }),
717
+ la({ span: `${d}` }),
672
718
  e
673
719
  ),
674
720
  ...n,
@@ -676,8 +722,8 @@ const j = i(
676
722
  }
677
723
  );
678
724
  }
679
- ), ka = Object.assign(oa, {
680
- Column: ia
725
+ ), Oa = Object.assign(ca, {
726
+ Column: da
681
727
  }), b = i(
682
728
  "flex items-center gap-2 px-4 py-2 rounded-md hover:text-primary focus:outline-none transition-colors",
683
729
  {
@@ -696,52 +742,52 @@ const j = i(
696
742
  disabled: !1
697
743
  }
698
744
  }
699
- ), la = o(
700
- (t, a) => {
701
- const { icon: e, children: r, href: n, onClick: c, active: p, ...d } = t;
745
+ ), ma = o(
746
+ (s, a) => {
747
+ const { icon: e, children: r, href: n, onClick: c, active: d, ...m } = s;
702
748
  if (typeof n == "string") {
703
- const m = d;
704
- return /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsxs(
749
+ const u = m;
750
+ return /* @__PURE__ */ t.jsx("li", { children: /* @__PURE__ */ t.jsxs(
705
751
  "a",
706
752
  {
707
753
  ref: a,
708
754
  href: n,
709
755
  className: b({
710
- disabled: !!t["aria-disabled"],
711
- active: p
756
+ disabled: !!s["aria-disabled"],
757
+ active: d
712
758
  }),
713
- ...m,
759
+ ...u,
714
760
  children: [
715
761
  e,
716
- /* @__PURE__ */ s.jsx(f, { as: "span", color: "inherit", fontSize: "sm", children: r })
762
+ /* @__PURE__ */ t.jsx(f, { as: "span", color: "inherit", fontSize: "sm", children: r })
717
763
  ]
718
764
  }
719
765
  ) });
720
766
  } else {
721
- const m = d;
722
- return /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsxs(
767
+ const u = m;
768
+ return /* @__PURE__ */ t.jsx("li", { children: /* @__PURE__ */ t.jsxs(
723
769
  "button",
724
770
  {
725
771
  ref: a,
726
772
  type: "button",
727
773
  onClick: c,
728
774
  className: l(
729
- b({ disabled: !!m.disabled, active: p }),
775
+ b({ disabled: !!u.disabled, active: d }),
730
776
  "w-full text-left"
731
777
  ),
732
- ...m,
778
+ ...u,
733
779
  children: [
734
780
  e,
735
- /* @__PURE__ */ s.jsx(f, { as: "span", color: "inherit", fontSize: "sm", children: r })
781
+ /* @__PURE__ */ t.jsx(f, { as: "span", color: "inherit", fontSize: "sm", children: r })
736
782
  ]
737
783
  }
738
784
  ) });
739
785
  }
740
786
  }
741
- ), ca = o(
787
+ ), ua = o(
742
788
  function({ children: a, label: e, ...r }, n) {
743
- return /* @__PURE__ */ s.jsxs("li", { ref: n, className: "flex flex-col gap-2 mt-2", ...r, children: [
744
- /* @__PURE__ */ s.jsx(
789
+ return /* @__PURE__ */ t.jsxs("li", { ref: n, className: "flex flex-col gap-2 mt-2", ...r, children: [
790
+ /* @__PURE__ */ t.jsx(
745
791
  f,
746
792
  {
747
793
  as: "h2",
@@ -752,30 +798,30 @@ const j = i(
752
798
  children: e
753
799
  }
754
800
  ),
755
- /* @__PURE__ */ s.jsx("ul", { className: "flex flex-col gap-1", children: a })
801
+ /* @__PURE__ */ t.jsx("ul", { className: "flex flex-col gap-1", children: a })
756
802
  ] });
757
803
  }
758
804
  ), pa = o(
759
- ({ children: t, ...a }, e) => /* @__PURE__ */ s.jsx(
805
+ ({ children: s, ...a }, e) => /* @__PURE__ */ t.jsx(
760
806
  "nav",
761
807
  {
762
808
  ref: e,
763
809
  className: "w-56 bg-background border-r border-border flex flex-col my-2",
764
810
  "aria-label": "Sidebar",
765
811
  ...a,
766
- 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 }) })
812
+ children: /* @__PURE__ */ t.jsx("div", { className: "flex-1 overflow-y-auto scrollbar-thin scrollbar-thumb-border scrollbar-track-background", children: /* @__PURE__ */ t.jsx("ul", { className: "flex flex-col gap-1 mx-2", children: s }) })
767
813
  }
768
814
  )
769
- ), Fa = Object.assign(pa, {
770
- Item: la,
771
- Group: ca
772
- }), da = i(
815
+ ), Wa = Object.assign(pa, {
816
+ Item: ma,
817
+ Group: ua
818
+ }), fa = i(
773
819
  "w-full flex items-center px-6 py-4 border-b border-border shadow-xs bg-white",
774
820
  {
775
821
  variants: {},
776
822
  defaultVariants: {}
777
823
  }
778
- ), ma = i("flex items-center gap-3 min-w-0 flex-1"), ua = i("flex items-center gap-2 ml-auto"), fa = i(
824
+ ), xa = i("flex items-center gap-3 min-w-0 flex-1"), ga = i("flex items-center gap-2 ml-auto"), ba = i(
779
825
  "px-2.5 py-1.5 rounded-md text-sm cursor-pointer transition-colors",
780
826
  {
781
827
  variants: {
@@ -788,55 +834,54 @@ const j = i(
788
834
  active: !1
789
835
  }
790
836
  }
791
- ), xa = i("flex items-center gap-2 ml-4"), ga = i("flex items-center gap-2 mr-4"), ba = o(
837
+ ), va = i("flex items-center gap-2 ml-4"), ha = i("flex items-center gap-2 mr-4"), ja = o(
792
838
  function({ children: a, className: e, ...r }, n) {
793
- return /* @__PURE__ */ s.jsx("nav", { ref: n, className: xa({ className: e }), ...r, children: a });
839
+ return /* @__PURE__ */ t.jsx("nav", { ref: n, className: va({ className: e }), ...r, children: a });
794
840
  }
795
- ), va = o(
841
+ ), ya = o(
796
842
  function({ children: a, className: e, ...r }, n) {
797
- return /* @__PURE__ */ s.jsx("div", { ref: n, className: ga({ className: e }), ...r, children: a });
843
+ return /* @__PURE__ */ t.jsx("div", { ref: n, className: ha({ className: e }), ...r, children: a });
798
844
  }
799
- ), ha = o(
845
+ ), wa = o(
800
846
  function({ children: a, className: e, ...r }, n) {
801
- return /* @__PURE__ */ s.jsx("div", { ref: n, className: ma({ className: e }), ...r, children: a });
847
+ return /* @__PURE__ */ t.jsx("div", { ref: n, className: xa({ className: e }), ...r, children: a });
802
848
  }
803
- ), ja = o(
849
+ ), Ba = o(
804
850
  function({ children: a, className: e, ...r }, n) {
805
- return /* @__PURE__ */ s.jsx("div", { ref: n, className: ua({ className: e }), ...r, children: a });
851
+ return /* @__PURE__ */ t.jsx("div", { ref: n, className: ga({ className: e }), ...r, children: a });
806
852
  }
807
- ), ya = o(
853
+ ), Na = o(
808
854
  function({ children: a, className: e, active: r, ...n }, c) {
809
- return /* @__PURE__ */ s.jsx(
855
+ return /* @__PURE__ */ t.jsx(
810
856
  "div",
811
857
  {
812
858
  ref: c,
813
- className: fa({ active: r, className: e }),
859
+ className: ba({ active: r, className: e }),
814
860
  "aria-current": r ? "page" : void 0,
815
861
  ...n,
816
862
  children: a
817
863
  }
818
864
  );
819
865
  }
820
- ), wa = o(
821
- ({ children: t, className: a, ...e }, r) => /* @__PURE__ */ s.jsx("header", { ref: r, className: da({ className: a }), ...e, children: t })
822
- ), Oa = Object.assign(wa, {
823
- Leading: ha,
824
- Trailing: ja,
825
- NavItem: ya,
826
- Nav: ba,
827
- Actions: va
866
+ ), Va = o(
867
+ ({ children: s, className: a, ...e }, r) => /* @__PURE__ */ t.jsx("header", { ref: r, className: fa({ className: a }), ...e, children: s })
868
+ ), Ma = Object.assign(Va, {
869
+ Leading: wa,
870
+ Trailing: Ba,
871
+ NavItem: Na,
872
+ Nav: ja,
873
+ Actions: ya
828
874
  });
829
875
  export {
830
876
  La as A,
831
- Ha as B,
832
- Aa as F,
833
- Ca as P,
834
- Fa as S,
835
- Oa as T,
836
- za as a,
837
- Pa as b,
838
- Ra as c,
839
- Ga as d,
840
- Ia as e,
841
- ka as f
877
+ Aa as B,
878
+ Ra as F,
879
+ Ga as P,
880
+ Wa as S,
881
+ Ma as T,
882
+ Pa as a,
883
+ Ia as b,
884
+ ka as c,
885
+ Fa as d,
886
+ Oa as e
842
887
  };