@dimasbaguspm/versaur 0.0.27 → 0.0.28
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/{bottom-sheet-input-D14wjCoC.js → bottom-sheet-input-BIbHW5ME.js} +255 -244
- package/dist/js/{bottom-sheet-DCwLmjiX.js → bottom-sheet-tOKkkgJA.js} +168 -152
- package/dist/js/forms/index.js +1 -1
- package/dist/js/{image-rectangle-BGLYH2Gl.js → image-rectangle-C1zMt0DR.js} +183 -117
- package/dist/js/index.js +61 -59
- package/dist/js/layouts/index.js +9 -8
- package/dist/js/navigation/index.js +1 -1
- package/dist/js/overlays/index.js +2 -2
- package/dist/js/primitive/index.js +13 -12
- package/dist/js/{tabs-C0hcpxNk.js → tabs-CtPlBMP4.js} +1 -1
- package/dist/js/{tooltip-DlbAOUeP.js → tooltip-C_riAXZP.js} +1 -1
- package/dist/js/{top-bar-BA88ij4M.js → top-bar-BqLv8_hy.js} +163 -101
- package/dist/types/forms/drawer-input/types.d.ts +1 -1
- package/dist/types/layouts/filter-chip-group/filter-chip-group.d.ts +27 -0
- package/dist/types/layouts/filter-chip-group/index.d.ts +2 -0
- package/dist/types/layouts/filter-chip-group/types.d.ts +32 -0
- package/dist/types/layouts/index.d.ts +1 -0
- package/dist/types/overlays/bottom-sheet/types.d.ts +4 -0
- package/dist/types/overlays/drawer/types.d.ts +5 -13
- package/dist/types/overlays/modal/types.d.ts +14 -4
- package/dist/types/primitive/filter-chip/filter-chip.d.ts +3 -0
- package/dist/types/primitive/filter-chip/index.d.ts +2 -0
- package/dist/types/primitive/filter-chip/types.d.ts +35 -0
- package/dist/types/primitive/index.d.ts +1 -0
- package/dist/utils/enforce-subpath-import.js +2 -0
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { c as i, j as r, a as l } from "./index-DOdDlCoL.js";
|
|
2
2
|
import * as b from "react";
|
|
3
3
|
import { forwardRef as o } from "react";
|
|
4
|
-
import { i as
|
|
4
|
+
import { i as u } from "./image-rectangle-C1zMt0DR.js";
|
|
5
5
|
import "./snackbar-DH8jCh2V.js";
|
|
6
|
-
const
|
|
6
|
+
const j = i(
|
|
7
7
|
"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",
|
|
8
8
|
{
|
|
9
9
|
variants: {
|
|
@@ -19,7 +19,7 @@ const h = i(
|
|
|
19
19
|
variant: "primary"
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
),
|
|
22
|
+
), h = i(
|
|
23
23
|
"flex flex-col justify-center min-w-0 flex-grow",
|
|
24
24
|
{
|
|
25
25
|
variants: {
|
|
@@ -54,7 +54,7 @@ const h = i(
|
|
|
54
54
|
}
|
|
55
55
|
)
|
|
56
56
|
), w = o(({ children: t, ...a }, e) => /* @__PURE__ */ r.jsx(
|
|
57
|
-
|
|
57
|
+
u,
|
|
58
58
|
{
|
|
59
59
|
...a,
|
|
60
60
|
as: "h1",
|
|
@@ -66,7 +66,7 @@ const h = i(
|
|
|
66
66
|
children: t
|
|
67
67
|
}
|
|
68
68
|
)), N = o(({ children: t, ...a }, e) => /* @__PURE__ */ r.jsx(
|
|
69
|
-
|
|
69
|
+
u,
|
|
70
70
|
{
|
|
71
71
|
...a,
|
|
72
72
|
ref: e,
|
|
@@ -93,7 +93,7 @@ const h = i(
|
|
|
93
93
|
"div",
|
|
94
94
|
{
|
|
95
95
|
ref: s,
|
|
96
|
-
className: l(
|
|
96
|
+
className: l(h({ placement: e }), a),
|
|
97
97
|
children: t
|
|
98
98
|
}
|
|
99
99
|
)
|
|
@@ -104,18 +104,18 @@ const h = i(
|
|
|
104
104
|
}) => /* @__PURE__ */ r.jsx(
|
|
105
105
|
"header",
|
|
106
106
|
{
|
|
107
|
-
className: l(
|
|
107
|
+
className: l(j({ variant: e }), a),
|
|
108
108
|
role: "banner",
|
|
109
109
|
children: t
|
|
110
110
|
}
|
|
111
|
-
),
|
|
111
|
+
), Ba = Object.assign(T, {
|
|
112
112
|
Leading: B,
|
|
113
113
|
Headline: w,
|
|
114
114
|
Subtitle: N,
|
|
115
115
|
Trailing: V,
|
|
116
116
|
Center: S,
|
|
117
117
|
Bottom: y
|
|
118
|
-
}),
|
|
118
|
+
}), z = i(
|
|
119
119
|
"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",
|
|
120
120
|
{
|
|
121
121
|
variants: {
|
|
@@ -137,7 +137,7 @@ const h = i(
|
|
|
137
137
|
size: "md"
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
|
-
),
|
|
140
|
+
), H = i(
|
|
141
141
|
"flex flex-col items-center justify-center gap-1 px-2 py-1 select-none",
|
|
142
142
|
{
|
|
143
143
|
variants: {
|
|
@@ -150,13 +150,13 @@ const h = i(
|
|
|
150
150
|
active: !1
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
|
-
),
|
|
153
|
+
), C = o(
|
|
154
154
|
({ icon: t, label: a, active: e = !1, className: s, ...n }, c) => /* @__PURE__ */ r.jsxs(
|
|
155
155
|
"div",
|
|
156
156
|
{
|
|
157
157
|
ref: c,
|
|
158
158
|
"aria-current": e ? "page" : void 0,
|
|
159
|
-
className:
|
|
159
|
+
className: H({ active: e, className: s }),
|
|
160
160
|
...n,
|
|
161
161
|
children: [
|
|
162
162
|
t,
|
|
@@ -164,7 +164,7 @@ const h = i(
|
|
|
164
164
|
]
|
|
165
165
|
}
|
|
166
166
|
)
|
|
167
|
-
),
|
|
167
|
+
), A = ({
|
|
168
168
|
children: t,
|
|
169
169
|
variant: a = "primary",
|
|
170
170
|
size: e = "md",
|
|
@@ -175,13 +175,13 @@ const h = i(
|
|
|
175
175
|
{
|
|
176
176
|
role: "navigation",
|
|
177
177
|
"aria-label": "Bottom navigation",
|
|
178
|
-
className:
|
|
178
|
+
className: z({ variant: a, size: e, className: s }),
|
|
179
179
|
...n,
|
|
180
180
|
children: t
|
|
181
181
|
}
|
|
182
|
-
),
|
|
183
|
-
Item:
|
|
184
|
-
}),
|
|
182
|
+
), wa = Object.assign(A, {
|
|
183
|
+
Item: C
|
|
184
|
+
}), L = i("flex", {
|
|
185
185
|
variants: {
|
|
186
186
|
orientation: {
|
|
187
187
|
horizontal: "flex-row",
|
|
@@ -213,7 +213,68 @@ const h = i(
|
|
|
213
213
|
gap: "md",
|
|
214
214
|
fluid: !1
|
|
215
215
|
}
|
|
216
|
-
}),
|
|
216
|
+
}), Na = o(
|
|
217
|
+
function({
|
|
218
|
+
className: a,
|
|
219
|
+
children: e,
|
|
220
|
+
orientation: s = "horizontal",
|
|
221
|
+
alignment: n = "start",
|
|
222
|
+
gap: c = "md",
|
|
223
|
+
fluid: p = !1,
|
|
224
|
+
...m
|
|
225
|
+
}, d) {
|
|
226
|
+
return /* @__PURE__ */ r.jsx(
|
|
227
|
+
"div",
|
|
228
|
+
{
|
|
229
|
+
ref: d,
|
|
230
|
+
className: l(
|
|
231
|
+
L({
|
|
232
|
+
orientation: s,
|
|
233
|
+
alignment: n,
|
|
234
|
+
gap: c,
|
|
235
|
+
fluid: p
|
|
236
|
+
}),
|
|
237
|
+
a
|
|
238
|
+
),
|
|
239
|
+
role: "group",
|
|
240
|
+
...m,
|
|
241
|
+
children: e
|
|
242
|
+
}
|
|
243
|
+
);
|
|
244
|
+
}
|
|
245
|
+
), P = i("flex", {
|
|
246
|
+
variants: {
|
|
247
|
+
orientation: {
|
|
248
|
+
horizontal: "flex-row",
|
|
249
|
+
vertical: "flex-col"
|
|
250
|
+
},
|
|
251
|
+
alignment: {
|
|
252
|
+
start: "justify-start",
|
|
253
|
+
center: "justify-center",
|
|
254
|
+
end: "justify-end",
|
|
255
|
+
between: "justify-between",
|
|
256
|
+
around: "justify-around",
|
|
257
|
+
evenly: "justify-evenly"
|
|
258
|
+
},
|
|
259
|
+
gap: {
|
|
260
|
+
xs: "gap-1",
|
|
261
|
+
sm: "gap-2",
|
|
262
|
+
md: "gap-3",
|
|
263
|
+
lg: "gap-4",
|
|
264
|
+
xl: "gap-6"
|
|
265
|
+
},
|
|
266
|
+
fluid: {
|
|
267
|
+
true: "[&>*]:flex-1",
|
|
268
|
+
false: ""
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
defaultVariants: {
|
|
272
|
+
orientation: "horizontal",
|
|
273
|
+
alignment: "start",
|
|
274
|
+
gap: "md",
|
|
275
|
+
fluid: !1
|
|
276
|
+
}
|
|
277
|
+
}), Va = o(
|
|
217
278
|
function({
|
|
218
279
|
className: a,
|
|
219
280
|
children: e,
|
|
@@ -222,11 +283,11 @@ const h = i(
|
|
|
222
283
|
gap: c = "md",
|
|
223
284
|
fluid: p = !1,
|
|
224
285
|
...m
|
|
225
|
-
},
|
|
286
|
+
}, d) {
|
|
226
287
|
return /* @__PURE__ */ r.jsx(
|
|
227
288
|
"div",
|
|
228
289
|
{
|
|
229
|
-
ref:
|
|
290
|
+
ref: d,
|
|
230
291
|
className: l(
|
|
231
292
|
P({
|
|
232
293
|
orientation: s,
|
|
@@ -242,7 +303,7 @@ const h = i(
|
|
|
242
303
|
}
|
|
243
304
|
);
|
|
244
305
|
}
|
|
245
|
-
),
|
|
306
|
+
), G = i("flex flex-wrap items-center", {
|
|
246
307
|
variants: {
|
|
247
308
|
orientation: {
|
|
248
309
|
horizontal: "flex-row",
|
|
@@ -274,7 +335,7 @@ const h = i(
|
|
|
274
335
|
gap: "md",
|
|
275
336
|
fluid: !1
|
|
276
337
|
}
|
|
277
|
-
}),
|
|
338
|
+
}), Sa = o(
|
|
278
339
|
function({
|
|
279
340
|
className: a,
|
|
280
341
|
children: e,
|
|
@@ -283,13 +344,13 @@ const h = i(
|
|
|
283
344
|
gap: c = "md",
|
|
284
345
|
fluid: p = !1,
|
|
285
346
|
...m
|
|
286
|
-
},
|
|
347
|
+
}, d) {
|
|
287
348
|
return /* @__PURE__ */ r.jsx(
|
|
288
349
|
"div",
|
|
289
350
|
{
|
|
290
|
-
ref:
|
|
351
|
+
ref: d,
|
|
291
352
|
className: l(
|
|
292
|
-
|
|
353
|
+
G({
|
|
293
354
|
orientation: s,
|
|
294
355
|
alignment: n,
|
|
295
356
|
gap: c,
|
|
@@ -303,7 +364,7 @@ const h = i(
|
|
|
303
364
|
}
|
|
304
365
|
);
|
|
305
366
|
}
|
|
306
|
-
), R = i("w-full px-4 sm:px-6 py-6 sm:py-8"),
|
|
367
|
+
), R = i("w-full px-4 sm:px-6 py-6 sm:py-8"), Ta = o(
|
|
307
368
|
({ children: t, className: a, ...e }, s) => /* @__PURE__ */ r.jsx(
|
|
308
369
|
"div",
|
|
309
370
|
{
|
|
@@ -315,13 +376,13 @@ const h = i(
|
|
|
315
376
|
)
|
|
316
377
|
), I = i("w-full mt-4"), k = i(
|
|
317
378
|
"flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4 px-4 sm:px-6 mb-4"
|
|
318
|
-
),
|
|
379
|
+
), F = i("mb-4 px-4 sm:px-6"), O = i(
|
|
319
380
|
"flex-1 min-w-0 flex flex-col gap-2 w-full sm:w-auto"
|
|
320
|
-
),
|
|
381
|
+
), W = i("flex items-center gap-2 flex-wrap"), M = i(
|
|
321
382
|
"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"
|
|
322
|
-
),
|
|
383
|
+
), E = i(
|
|
323
384
|
"w-full flex items-center px-4 sm:px-6 py-0 overflow-x-auto"
|
|
324
|
-
),
|
|
385
|
+
), $ = o(
|
|
325
386
|
({ children: t, className: a, ...e }, s) => /* @__PURE__ */ r.jsx(
|
|
326
387
|
"div",
|
|
327
388
|
{
|
|
@@ -332,26 +393,26 @@ const h = i(
|
|
|
332
393
|
children: t
|
|
333
394
|
}
|
|
334
395
|
)
|
|
335
|
-
),
|
|
396
|
+
), q = o(({ children: t, className: a, ...e }, s) => /* @__PURE__ */ r.jsx(
|
|
336
397
|
"div",
|
|
337
398
|
{
|
|
338
399
|
ref: s,
|
|
339
|
-
className: l(
|
|
400
|
+
className: l(F(), a),
|
|
340
401
|
"data-versaur-page-header-breadcrumbs": !0,
|
|
341
402
|
...e,
|
|
342
403
|
children: t
|
|
343
404
|
}
|
|
344
|
-
)),
|
|
405
|
+
)), D = o(({ children: t, className: a, ...e }, s) => /* @__PURE__ */ r.jsx(
|
|
345
406
|
"div",
|
|
346
407
|
{
|
|
347
408
|
ref: s,
|
|
348
|
-
className: l(
|
|
409
|
+
className: l(O(), a),
|
|
349
410
|
"data-versaur-page-header-content": !0,
|
|
350
411
|
...e,
|
|
351
412
|
children: t
|
|
352
413
|
}
|
|
353
|
-
)),
|
|
354
|
-
|
|
414
|
+
)), J = o((t, a) => /* @__PURE__ */ r.jsx(
|
|
415
|
+
u,
|
|
355
416
|
{
|
|
356
417
|
...t,
|
|
357
418
|
as: "h1",
|
|
@@ -360,8 +421,8 @@ const h = i(
|
|
|
360
421
|
ellipsis: !0,
|
|
361
422
|
ref: a
|
|
362
423
|
}
|
|
363
|
-
)),
|
|
364
|
-
|
|
424
|
+
)), K = o(({ className: t, ...a }, e) => /* @__PURE__ */ r.jsx(
|
|
425
|
+
u,
|
|
365
426
|
{
|
|
366
427
|
as: "p",
|
|
367
428
|
fontSize: "sm",
|
|
@@ -371,34 +432,34 @@ const h = i(
|
|
|
371
432
|
className: l("mb-2 sm:clamp-3", t),
|
|
372
433
|
...a
|
|
373
434
|
}
|
|
374
|
-
)),
|
|
435
|
+
)), Q = o(({ children: t, className: a, ...e }, s) => /* @__PURE__ */ r.jsx(
|
|
375
436
|
"div",
|
|
376
437
|
{
|
|
377
438
|
ref: s,
|
|
378
|
-
className: l(
|
|
439
|
+
className: l(W(), a),
|
|
379
440
|
"data-versaur-page-header-badges": !0,
|
|
380
441
|
...e,
|
|
381
442
|
children: t
|
|
382
443
|
}
|
|
383
|
-
)),
|
|
444
|
+
)), U = o(({ children: t, className: a, ...e }, s) => /* @__PURE__ */ r.jsx(
|
|
384
445
|
"div",
|
|
385
446
|
{
|
|
386
447
|
ref: s,
|
|
387
|
-
className: l(
|
|
448
|
+
className: l(M(), a),
|
|
388
449
|
"data-versaur-page-header-actions": !0,
|
|
389
450
|
...e,
|
|
390
451
|
children: t
|
|
391
452
|
}
|
|
392
|
-
)),
|
|
453
|
+
)), X = o(({ children: t, className: a, ...e }, s) => /* @__PURE__ */ r.jsx(
|
|
393
454
|
"div",
|
|
394
455
|
{
|
|
395
456
|
ref: s,
|
|
396
|
-
className: l(
|
|
457
|
+
className: l(E(), a),
|
|
397
458
|
"data-versaur-page-header-bottom": !0,
|
|
398
459
|
...e,
|
|
399
460
|
children: t
|
|
400
461
|
}
|
|
401
|
-
)),
|
|
462
|
+
)), Y = o(
|
|
402
463
|
({
|
|
403
464
|
children: t,
|
|
404
465
|
className: a,
|
|
@@ -408,7 +469,7 @@ const h = i(
|
|
|
408
469
|
badges: c,
|
|
409
470
|
actions: p,
|
|
410
471
|
tabs: m,
|
|
411
|
-
...
|
|
472
|
+
...d
|
|
412
473
|
}, f) => {
|
|
413
474
|
const g = e || s || n || c || p, v = m;
|
|
414
475
|
return /* @__PURE__ */ r.jsxs(
|
|
@@ -417,24 +478,24 @@ const h = i(
|
|
|
417
478
|
ref: f,
|
|
418
479
|
className: l(I(), a),
|
|
419
480
|
role: "banner",
|
|
420
|
-
...
|
|
481
|
+
...d,
|
|
421
482
|
children: [
|
|
422
|
-
n && /* @__PURE__ */ r.jsx(
|
|
423
|
-
g && /* @__PURE__ */ r.jsxs(
|
|
424
|
-
/* @__PURE__ */ r.jsxs(
|
|
425
|
-
e && /* @__PURE__ */ r.jsx(
|
|
426
|
-
s && /* @__PURE__ */ r.jsx(
|
|
427
|
-
c && /* @__PURE__ */ r.jsx(
|
|
483
|
+
n && /* @__PURE__ */ r.jsx(q, { children: n }),
|
|
484
|
+
g && /* @__PURE__ */ r.jsxs($, { children: [
|
|
485
|
+
/* @__PURE__ */ r.jsxs(D, { children: [
|
|
486
|
+
e && /* @__PURE__ */ r.jsx(J, { children: e }),
|
|
487
|
+
s && /* @__PURE__ */ r.jsx(K, { children: s }),
|
|
488
|
+
c && /* @__PURE__ */ r.jsx(Q, { children: c })
|
|
428
489
|
] }),
|
|
429
|
-
p && /* @__PURE__ */ r.jsx(
|
|
490
|
+
p && /* @__PURE__ */ r.jsx(U, { children: p })
|
|
430
491
|
] }),
|
|
431
|
-
v && /* @__PURE__ */ r.jsx(
|
|
492
|
+
v && /* @__PURE__ */ r.jsx(X, { children: m }),
|
|
432
493
|
t
|
|
433
494
|
]
|
|
434
495
|
}
|
|
435
496
|
);
|
|
436
497
|
}
|
|
437
|
-
),
|
|
498
|
+
), za = Y, Z = i("w-full mx-auto relative", {
|
|
438
499
|
variants: {
|
|
439
500
|
type: {
|
|
440
501
|
desktop: "max-w-7xl px-6 pb-10",
|
|
@@ -445,19 +506,19 @@ const h = i(
|
|
|
445
506
|
defaultVariants: {
|
|
446
507
|
type: "desktop"
|
|
447
508
|
}
|
|
448
|
-
}),
|
|
509
|
+
}), Ha = b.forwardRef(
|
|
449
510
|
function({ type: a = "desktop", className: e, children: s, ...n }, c) {
|
|
450
511
|
return /* @__PURE__ */ r.jsx(
|
|
451
512
|
"div",
|
|
452
513
|
{
|
|
453
514
|
ref: c,
|
|
454
|
-
className: l(
|
|
515
|
+
className: l(Z({ type: a }), e),
|
|
455
516
|
...n,
|
|
456
517
|
children: s
|
|
457
518
|
}
|
|
458
519
|
);
|
|
459
520
|
}
|
|
460
|
-
),
|
|
521
|
+
), _ = i("grid w-full gap-4 grid-cols-12"), aa = i("", {
|
|
461
522
|
variants: {
|
|
462
523
|
span: {
|
|
463
524
|
1: "col-span-1",
|
|
@@ -477,19 +538,19 @@ const h = i(
|
|
|
477
538
|
defaultVariants: {
|
|
478
539
|
span: "4"
|
|
479
540
|
}
|
|
480
|
-
}),
|
|
541
|
+
}), ea = o(
|
|
481
542
|
function({ className: a, children: e, ...s }, n) {
|
|
482
543
|
return /* @__PURE__ */ r.jsx(
|
|
483
544
|
"div",
|
|
484
545
|
{
|
|
485
546
|
ref: n,
|
|
486
|
-
className: l(
|
|
547
|
+
className: l(_(), a),
|
|
487
548
|
...s,
|
|
488
549
|
children: e
|
|
489
550
|
}
|
|
490
551
|
);
|
|
491
552
|
}
|
|
492
|
-
),
|
|
553
|
+
), ta = o(
|
|
493
554
|
function({ span: a = 4, className: e, children: s, ...n }, c) {
|
|
494
555
|
const p = Math.min(12, Math.max(1, a));
|
|
495
556
|
return /* @__PURE__ */ r.jsx(
|
|
@@ -497,7 +558,7 @@ const h = i(
|
|
|
497
558
|
{
|
|
498
559
|
ref: c,
|
|
499
560
|
className: l(
|
|
500
|
-
|
|
561
|
+
aa({ span: `${p}` }),
|
|
501
562
|
e
|
|
502
563
|
),
|
|
503
564
|
...n,
|
|
@@ -505,8 +566,8 @@ const h = i(
|
|
|
505
566
|
}
|
|
506
567
|
);
|
|
507
568
|
}
|
|
508
|
-
),
|
|
509
|
-
Column:
|
|
569
|
+
), Ca = Object.assign(ea, {
|
|
570
|
+
Column: ta
|
|
510
571
|
}), x = i(
|
|
511
572
|
"flex items-center gap-2 px-4 py-2 rounded-md hover:text-primary focus:outline-none transition-colors",
|
|
512
573
|
{
|
|
@@ -525,7 +586,7 @@ const h = i(
|
|
|
525
586
|
disabled: !1
|
|
526
587
|
}
|
|
527
588
|
}
|
|
528
|
-
),
|
|
589
|
+
), sa = o(
|
|
529
590
|
(t, a) => {
|
|
530
591
|
const { icon: e, children: s, href: n, onClick: c, active: p, ...m } = t;
|
|
531
592
|
if (typeof n == "string") {
|
|
@@ -542,7 +603,7 @@ const h = i(
|
|
|
542
603
|
...f,
|
|
543
604
|
children: [
|
|
544
605
|
e,
|
|
545
|
-
/* @__PURE__ */ r.jsx(
|
|
606
|
+
/* @__PURE__ */ r.jsx(u, { as: "span", color: "inherit", fontSize: "sm", children: s })
|
|
546
607
|
]
|
|
547
608
|
}
|
|
548
609
|
) });
|
|
@@ -561,17 +622,17 @@ const h = i(
|
|
|
561
622
|
...f,
|
|
562
623
|
children: [
|
|
563
624
|
e,
|
|
564
|
-
/* @__PURE__ */ r.jsx(
|
|
625
|
+
/* @__PURE__ */ r.jsx(u, { as: "span", color: "inherit", fontSize: "sm", children: s })
|
|
565
626
|
]
|
|
566
627
|
}
|
|
567
628
|
) });
|
|
568
629
|
}
|
|
569
630
|
}
|
|
570
|
-
),
|
|
631
|
+
), ra = o(
|
|
571
632
|
function({ children: a, label: e, ...s }, n) {
|
|
572
633
|
return /* @__PURE__ */ r.jsxs("li", { ref: n, className: "flex flex-col gap-2 mt-2", ...s, children: [
|
|
573
634
|
/* @__PURE__ */ r.jsx(
|
|
574
|
-
|
|
635
|
+
u,
|
|
575
636
|
{
|
|
576
637
|
as: "h2",
|
|
577
638
|
fontSize: "xs",
|
|
@@ -584,7 +645,7 @@ const h = i(
|
|
|
584
645
|
/* @__PURE__ */ r.jsx("ul", { className: "flex flex-col gap-1", children: a })
|
|
585
646
|
] });
|
|
586
647
|
}
|
|
587
|
-
),
|
|
648
|
+
), na = o(
|
|
588
649
|
({ children: t, ...a }, e) => /* @__PURE__ */ r.jsx(
|
|
589
650
|
"nav",
|
|
590
651
|
{
|
|
@@ -595,16 +656,16 @@ const h = i(
|
|
|
595
656
|
children: /* @__PURE__ */ r.jsx("div", { className: "flex-1 overflow-y-auto scrollbar-thin scrollbar-thumb-border scrollbar-track-background", children: /* @__PURE__ */ r.jsx("ul", { className: "flex flex-col gap-1 mx-2", children: t }) })
|
|
596
657
|
}
|
|
597
658
|
)
|
|
598
|
-
), Aa = Object.assign(
|
|
599
|
-
Item:
|
|
600
|
-
Group:
|
|
601
|
-
}),
|
|
659
|
+
), Aa = Object.assign(na, {
|
|
660
|
+
Item: sa,
|
|
661
|
+
Group: ra
|
|
662
|
+
}), oa = i(
|
|
602
663
|
"w-full flex items-center px-6 py-4 mb-6 border-b border-border shadow-xs bg-white",
|
|
603
664
|
{
|
|
604
665
|
variants: {},
|
|
605
666
|
defaultVariants: {}
|
|
606
667
|
}
|
|
607
|
-
),
|
|
668
|
+
), ia = i("flex items-center gap-3 min-w-0 flex-1"), la = i("flex items-center gap-2 ml-auto"), ca = i(
|
|
608
669
|
"px-2.5 py-1.5 rounded-md text-sm cursor-pointer transition-colors",
|
|
609
670
|
{
|
|
610
671
|
variants: {
|
|
@@ -617,53 +678,54 @@ const h = i(
|
|
|
617
678
|
active: !1
|
|
618
679
|
}
|
|
619
680
|
}
|
|
620
|
-
),
|
|
621
|
-
function({ children: a, className: e, ...s }, n) {
|
|
622
|
-
return /* @__PURE__ */ r.jsx("nav", { ref: n, className: ca({ className: e }), ...s, children: a });
|
|
623
|
-
}
|
|
624
|
-
), da = o(
|
|
681
|
+
), pa = i("flex items-center gap-2 ml-4"), ma = i("flex items-center gap-2 mr-4"), da = o(
|
|
625
682
|
function({ children: a, className: e, ...s }, n) {
|
|
626
|
-
return /* @__PURE__ */ r.jsx("
|
|
683
|
+
return /* @__PURE__ */ r.jsx("nav", { ref: n, className: pa({ className: e }), ...s, children: a });
|
|
627
684
|
}
|
|
628
685
|
), ua = o(
|
|
629
686
|
function({ children: a, className: e, ...s }, n) {
|
|
630
|
-
return /* @__PURE__ */ r.jsx("div", { ref: n, className:
|
|
687
|
+
return /* @__PURE__ */ r.jsx("div", { ref: n, className: ma({ className: e }), ...s, children: a });
|
|
631
688
|
}
|
|
632
689
|
), fa = o(
|
|
633
690
|
function({ children: a, className: e, ...s }, n) {
|
|
634
691
|
return /* @__PURE__ */ r.jsx("div", { ref: n, className: ia({ className: e }), ...s, children: a });
|
|
635
692
|
}
|
|
636
693
|
), xa = o(
|
|
694
|
+
function({ children: a, className: e, ...s }, n) {
|
|
695
|
+
return /* @__PURE__ */ r.jsx("div", { ref: n, className: la({ className: e }), ...s, children: a });
|
|
696
|
+
}
|
|
697
|
+
), ga = o(
|
|
637
698
|
function({ children: a, className: e, active: s, ...n }, c) {
|
|
638
699
|
return /* @__PURE__ */ r.jsx(
|
|
639
700
|
"div",
|
|
640
701
|
{
|
|
641
702
|
ref: c,
|
|
642
|
-
className:
|
|
703
|
+
className: ca({ active: s, className: e }),
|
|
643
704
|
"aria-current": s ? "page" : void 0,
|
|
644
705
|
...n,
|
|
645
706
|
children: a
|
|
646
707
|
}
|
|
647
708
|
);
|
|
648
709
|
}
|
|
649
|
-
),
|
|
650
|
-
({ children: t, className: a, ...e }, s) => /* @__PURE__ */ r.jsx("header", { ref: s, className:
|
|
651
|
-
),
|
|
652
|
-
Leading:
|
|
653
|
-
Trailing:
|
|
654
|
-
NavItem:
|
|
655
|
-
Nav:
|
|
656
|
-
Actions:
|
|
710
|
+
), va = o(
|
|
711
|
+
({ children: t, className: a, ...e }, s) => /* @__PURE__ */ r.jsx("header", { ref: s, className: oa({ className: a }), ...e, children: t })
|
|
712
|
+
), La = Object.assign(va, {
|
|
713
|
+
Leading: fa,
|
|
714
|
+
Trailing: xa,
|
|
715
|
+
NavItem: ga,
|
|
716
|
+
Nav: da,
|
|
717
|
+
Actions: ua
|
|
657
718
|
});
|
|
658
719
|
export {
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
720
|
+
Ba as A,
|
|
721
|
+
wa as B,
|
|
722
|
+
Sa as F,
|
|
723
|
+
Ta as P,
|
|
663
724
|
Aa as S,
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
725
|
+
La as T,
|
|
726
|
+
Na as a,
|
|
727
|
+
Va as b,
|
|
728
|
+
za as c,
|
|
729
|
+
Ha as d,
|
|
730
|
+
Ca as e
|
|
669
731
|
};
|
|
@@ -13,6 +13,6 @@ export interface DrawerInputContextValue {
|
|
|
13
13
|
* @property {(open: boolean) => void} onOpenChange - Callback for drawer open state change
|
|
14
14
|
* @property {React.ReactNode} children - Drawer content
|
|
15
15
|
*/
|
|
16
|
-
export interface DrawerInputProps extends Omit<TextInputProps, 'readOnly' | 'children'>, Pick<DrawerProps, 'size' | 'position'> {
|
|
16
|
+
export interface DrawerInputProps extends Omit<TextInputProps, 'readOnly' | 'children'>, Pick<DrawerProps, 'size' | 'position' | 'disableEscapeKeyDown' | 'disableOverlayClickToClose'> {
|
|
17
17
|
children: (ctx: DrawerInputContextValue) => ReactNode;
|
|
18
18
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { FilterChipGroupProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* FilterChipGroup provides layout management for filter chips with control over
|
|
4
|
+
* positioning, alignment, and fluid behavior
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* <FilterChipGroup alignment="center" gap="sm">
|
|
8
|
+
* <FilterChip active>Category 1</FilterChip>
|
|
9
|
+
* <FilterChip>Category 2</FilterChip>
|
|
10
|
+
* </FilterChipGroup>
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* // Vertical filter chip group
|
|
14
|
+
* <FilterChipGroup orientation="vertical" fluid>
|
|
15
|
+
* <FilterChip active>Category 1</FilterChip>
|
|
16
|
+
* <FilterChip>Category 2</FilterChip>
|
|
17
|
+
* <FilterChip>Category 3</FilterChip>
|
|
18
|
+
* </FilterChipGroup>
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* // Fluid filter chips with space between
|
|
22
|
+
* <FilterChipGroup alignment="between" fluid>
|
|
23
|
+
* <FilterChip>Clear All</FilterChip>
|
|
24
|
+
* <FilterChip active>Apply</FilterChip>
|
|
25
|
+
* </FilterChipGroup>
|
|
26
|
+
*/
|
|
27
|
+
export declare const FilterChipGroup: import('react').ForwardRefExoticComponent<FilterChipGroupProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { VariantProps } from '../../utils/variants';
|
|
3
|
+
import { filterChipGroupVariants } from './helpers';
|
|
4
|
+
/**
|
|
5
|
+
* Props for the FilterChipGroup component
|
|
6
|
+
*/
|
|
7
|
+
export interface FilterChipGroupProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof filterChipGroupVariants> {
|
|
8
|
+
/**
|
|
9
|
+
* Children (should be FilterChip components)
|
|
10
|
+
*/
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Alignment of filter chips within the group
|
|
14
|
+
* @default 'start'
|
|
15
|
+
*/
|
|
16
|
+
alignment?: 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly';
|
|
17
|
+
/**
|
|
18
|
+
* Whether filter chips should be fluid (full width)
|
|
19
|
+
* @default false
|
|
20
|
+
*/
|
|
21
|
+
fluid?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Orientation of the filter chip group
|
|
24
|
+
* @default 'horizontal'
|
|
25
|
+
*/
|
|
26
|
+
orientation?: 'horizontal' | 'vertical';
|
|
27
|
+
/**
|
|
28
|
+
* Size of the gap between filter chips
|
|
29
|
+
* @default 'md'
|
|
30
|
+
*/
|
|
31
|
+
gap?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
32
|
+
}
|