@dimasbaguspm/versaur 0.0.14 → 0.0.16
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-Difan0U1.js +340 -0
- package/dist/js/{calendar-B9rIZCdo.js → calendar-CUjVZ7Ap.js} +18 -19
- package/dist/js/enforce-subpath-import.js +1 -0
- package/dist/js/feedbacks/index.js +1 -1
- package/dist/js/{form-layout-PLH-7bWq.js → form-layout-4ASWdXn8.js} +11 -12
- package/dist/js/forms/index.js +1 -1
- package/dist/js/{cn-BKwT3erk.js → index-DOdDlCoL.js} +788 -463
- package/dist/js/index.js +30 -29
- package/dist/js/layouts/index.js +1 -1
- package/dist/js/{menu-oRrbZAAy.js → menu-Bm-yPIMN.js} +5 -6
- package/dist/js/navigation/index.js +1 -1
- package/dist/js/overlays/index.js +2 -2
- package/dist/js/primitive/index.js +15 -14
- package/dist/js/{skeleton-Ma-Fcs06.js → skeleton-BNZyaRjo.js} +5 -6
- package/dist/js/{switch-input-o8oO4Rf4.js → switch-input-Bx6_2zG9.js} +3 -4
- package/dist/js/{tabs-DSeR5XxX.js → tabs-BbOkYchB.js} +5 -6
- package/dist/js/{tile-8hqVMf2m.js → tile-BjhJ5Mvl.js} +160 -113
- package/dist/types/overlays/bottom-sheet/index.d.ts +1 -1
- package/dist/types/primitive/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/js/bottom-sheet-CBLNEX4F.js +0 -281
- package/dist/js/bottom-sheet.atoms-DFMOaMsU.js +0 -78
- package/dist/js/index-Dmu_fHni.js +0 -329
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as
|
|
3
|
-
import { forwardRef as d, useState as v, useEffect as x, useCallback as y, useRef as S, createContext as
|
|
4
|
-
import { c as l } from "./cn-BKwT3erk.js";
|
|
1
|
+
import { c as b, j as n, a as l } from "./index-DOdDlCoL.js";
|
|
2
|
+
import * as u from "react";
|
|
3
|
+
import { forwardRef as d, useState as v, useEffect as x, useCallback as y, useRef as S, createContext as V, useContext as T, useMemo as A } from "react";
|
|
5
4
|
const B = b(
|
|
6
5
|
"relative flex items-center gap-2 rounded-md p-2 text-sm transition-all duration-200",
|
|
7
6
|
{
|
|
@@ -138,7 +137,7 @@ const B = b(
|
|
|
138
137
|
}
|
|
139
138
|
}
|
|
140
139
|
), C = d(
|
|
141
|
-
({ className: e, children: r, ...t }, s) => /* @__PURE__ */
|
|
140
|
+
({ className: e, children: r, ...t }, s) => /* @__PURE__ */ n.jsx("div", { ref: s, className: l(R(), e), ...t, children: r })
|
|
142
141
|
), k = d(
|
|
143
142
|
({
|
|
144
143
|
variant: e = "default",
|
|
@@ -146,23 +145,70 @@ const B = b(
|
|
|
146
145
|
icon: t,
|
|
147
146
|
className: s,
|
|
148
147
|
children: o,
|
|
149
|
-
...
|
|
150
|
-
},
|
|
148
|
+
...a
|
|
149
|
+
}, g) => /* @__PURE__ */ n.jsxs(
|
|
151
150
|
"div",
|
|
152
151
|
{
|
|
153
|
-
ref:
|
|
152
|
+
ref: g,
|
|
154
153
|
role: "alert",
|
|
155
154
|
className: l(B({ variant: e, color: r }), s),
|
|
156
|
-
...
|
|
155
|
+
...a,
|
|
157
156
|
children: [
|
|
158
|
-
t && /* @__PURE__ */
|
|
159
|
-
/* @__PURE__ */
|
|
157
|
+
t && /* @__PURE__ */ n.jsx(C, { children: t }),
|
|
158
|
+
/* @__PURE__ */ n.jsx("div", { className: "flex-1", children: o })
|
|
160
159
|
]
|
|
161
160
|
}
|
|
162
161
|
)
|
|
163
|
-
),
|
|
162
|
+
), le = Object.assign(k, {
|
|
164
163
|
Icon: C
|
|
165
164
|
}), I = b(
|
|
165
|
+
[
|
|
166
|
+
"inline-flex items-center transition-colors underline underline-offset-2 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
|
|
167
|
+
// pseudo selectors for anchor
|
|
168
|
+
"hover:no-underline"
|
|
169
|
+
],
|
|
170
|
+
{
|
|
171
|
+
variants: {
|
|
172
|
+
color: {
|
|
173
|
+
primary: "text-primary",
|
|
174
|
+
secondary: "text-secondary",
|
|
175
|
+
ghost: "text-ghost",
|
|
176
|
+
danger: "text-danger",
|
|
177
|
+
neutral: "text-neutral"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
defaultVariants: {
|
|
181
|
+
color: "primary"
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
), O = d(
|
|
185
|
+
({
|
|
186
|
+
children: e,
|
|
187
|
+
className: r,
|
|
188
|
+
color: t = "primary",
|
|
189
|
+
fontSize: s = "base",
|
|
190
|
+
fontWeight: o = "medium",
|
|
191
|
+
...a
|
|
192
|
+
}, g) => {
|
|
193
|
+
const i = s ? `text-${s}` : "text-base", f = o ? `font-${o}` : "font-medium";
|
|
194
|
+
return /* @__PURE__ */ n.jsx(
|
|
195
|
+
"a",
|
|
196
|
+
{
|
|
197
|
+
ref: g,
|
|
198
|
+
className: l(
|
|
199
|
+
I({ color: t }),
|
|
200
|
+
i,
|
|
201
|
+
f,
|
|
202
|
+
r
|
|
203
|
+
),
|
|
204
|
+
...a,
|
|
205
|
+
children: e
|
|
206
|
+
}
|
|
207
|
+
);
|
|
208
|
+
}
|
|
209
|
+
);
|
|
210
|
+
O.displayName = "Anchor";
|
|
211
|
+
const q = b(
|
|
166
212
|
"inline-flex items-center justify-center font-medium text-white overflow-hidden transition-all duration-200 select-none relative",
|
|
167
213
|
{
|
|
168
214
|
variants: {
|
|
@@ -198,28 +244,28 @@ const B = b(
|
|
|
198
244
|
shape: "circle"
|
|
199
245
|
}
|
|
200
246
|
}
|
|
201
|
-
),
|
|
247
|
+
), F = b(
|
|
202
248
|
"absolute inset-0 h-full w-full object-cover"
|
|
203
|
-
),
|
|
249
|
+
), L = d(
|
|
204
250
|
({
|
|
205
251
|
variant: e = "primary",
|
|
206
252
|
size: r = "md",
|
|
207
253
|
shape: t = "circle",
|
|
208
254
|
className: s,
|
|
209
255
|
children: o,
|
|
210
|
-
...
|
|
211
|
-
},
|
|
256
|
+
...a
|
|
257
|
+
}, g) => /* @__PURE__ */ n.jsx(
|
|
212
258
|
"div",
|
|
213
259
|
{
|
|
214
|
-
ref:
|
|
215
|
-
className: l(
|
|
216
|
-
...
|
|
260
|
+
ref: g,
|
|
261
|
+
className: l(q({ variant: e, size: r, shape: t }), s),
|
|
262
|
+
...a,
|
|
217
263
|
children: o
|
|
218
264
|
}
|
|
219
265
|
)
|
|
220
|
-
),
|
|
221
|
-
({ src: e, alt: r, className: t, onError: s, ...o },
|
|
222
|
-
const [
|
|
266
|
+
), $ = d(
|
|
267
|
+
({ src: e, alt: r, className: t, onError: s, ...o }, a) => {
|
|
268
|
+
const [g, i] = v(!1);
|
|
223
269
|
x(() => {
|
|
224
270
|
i(!1);
|
|
225
271
|
}, [e]);
|
|
@@ -229,24 +275,24 @@ const B = b(
|
|
|
229
275
|
},
|
|
230
276
|
[s]
|
|
231
277
|
);
|
|
232
|
-
return
|
|
278
|
+
return g ? null : /* @__PURE__ */ n.jsx(
|
|
233
279
|
"img",
|
|
234
280
|
{
|
|
235
|
-
ref:
|
|
281
|
+
ref: a,
|
|
236
282
|
src: e,
|
|
237
283
|
alt: r,
|
|
238
|
-
className: l(
|
|
284
|
+
className: l(F(), t),
|
|
239
285
|
onError: f,
|
|
240
286
|
...o
|
|
241
287
|
}
|
|
242
288
|
);
|
|
243
289
|
}
|
|
244
|
-
),
|
|
290
|
+
), ce = Object.assign(L, {
|
|
245
291
|
/**
|
|
246
292
|
* AvatarImage sub-component for displaying images with fallback behavior
|
|
247
293
|
*/
|
|
248
|
-
Image:
|
|
249
|
-
}),
|
|
294
|
+
Image: $
|
|
295
|
+
}), M = b(
|
|
250
296
|
"inline-flex items-center justify-center font-medium transition-all duration-200 select-none gap-1 min-h-[1.25rem]",
|
|
251
297
|
{
|
|
252
298
|
variants: {
|
|
@@ -399,51 +445,51 @@ const B = b(
|
|
|
399
445
|
iconOnly: !1
|
|
400
446
|
}
|
|
401
447
|
}
|
|
402
|
-
),
|
|
448
|
+
), P = d(
|
|
403
449
|
({
|
|
404
450
|
variant: e = "default",
|
|
405
451
|
shape: r = "square",
|
|
406
452
|
color: t = "primary",
|
|
407
453
|
size: s = "md",
|
|
408
454
|
iconLeft: o,
|
|
409
|
-
iconRight:
|
|
410
|
-
className:
|
|
455
|
+
iconRight: a,
|
|
456
|
+
className: g,
|
|
411
457
|
children: i,
|
|
412
458
|
...f
|
|
413
459
|
}, c) => {
|
|
414
|
-
const h = !(i != null && i !== "") && !!(o ||
|
|
415
|
-
return /* @__PURE__ */
|
|
460
|
+
const h = !(i != null && i !== "") && !!(o || a);
|
|
461
|
+
return /* @__PURE__ */ n.jsx(
|
|
416
462
|
"span",
|
|
417
463
|
{
|
|
418
464
|
ref: c,
|
|
419
465
|
className: l(
|
|
420
|
-
|
|
466
|
+
M({
|
|
421
467
|
variant: e,
|
|
422
468
|
color: t,
|
|
423
469
|
shape: r,
|
|
424
470
|
size: s,
|
|
425
471
|
iconOnly: h
|
|
426
472
|
}),
|
|
427
|
-
|
|
473
|
+
g
|
|
428
474
|
),
|
|
429
475
|
...f,
|
|
430
476
|
children: h ? (
|
|
431
477
|
// Icon-only mode: display only the icon
|
|
432
|
-
o ||
|
|
478
|
+
o || a
|
|
433
479
|
) : (
|
|
434
480
|
// Normal mode: display icon(s) and text
|
|
435
|
-
/* @__PURE__ */
|
|
481
|
+
/* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
436
482
|
o,
|
|
437
483
|
i,
|
|
438
|
-
|
|
484
|
+
a
|
|
439
485
|
] })
|
|
440
486
|
)
|
|
441
487
|
}
|
|
442
488
|
);
|
|
443
489
|
}
|
|
444
490
|
);
|
|
445
|
-
|
|
446
|
-
const E = (e) => /* @__PURE__ */
|
|
491
|
+
P.displayName = "Badge";
|
|
492
|
+
const E = (e) => /* @__PURE__ */ u.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ u.createElement("title", null, "Spenicle"), /* @__PURE__ */ u.createElement("rect", { width: 32, height: 32, fill: "#e07a5f" }), /* @__PURE__ */ u.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ u.createElement("path", { d: "M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z", fill: "white" }))), H = (e) => /* @__PURE__ */ u.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ u.createElement("title", null, "Spenicle"), /* @__PURE__ */ u.createElement("rect", { width: 32, height: 32, rx: 8, fill: "#e07a5f" }), /* @__PURE__ */ u.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ u.createElement("path", { d: "M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z", fill: "white" }))), Y = (e) => /* @__PURE__ */ u.createElement("svg", { width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ u.createElement("title", null, "Spenicle"), /* @__PURE__ */ u.createElement("circle", { cx: 16, cy: 16, r: 16, fill: "#e07a5f" }), /* @__PURE__ */ u.createElement("g", { transform: "translate(16, 16) scale(0.625) translate(-12, -12)" }, /* @__PURE__ */ u.createElement("path", { d: "M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z", fill: "white" }))), _ = b("", {
|
|
447
493
|
variants: {
|
|
448
494
|
size: {
|
|
449
495
|
xs: "h-6 w-6",
|
|
@@ -456,33 +502,33 @@ const E = (e) => /* @__PURE__ */ g.createElement("svg", { width: 32, height: 32,
|
|
|
456
502
|
defaultVariants: {
|
|
457
503
|
size: "md"
|
|
458
504
|
}
|
|
459
|
-
}),
|
|
505
|
+
}), D = d(
|
|
460
506
|
({ shape: e = "square", size: r, ...t }, s) => {
|
|
461
|
-
const
|
|
507
|
+
const a = {
|
|
462
508
|
square: E,
|
|
463
|
-
rounded:
|
|
464
|
-
circle:
|
|
509
|
+
rounded: H,
|
|
510
|
+
circle: Y
|
|
465
511
|
}[e] || E;
|
|
466
|
-
return /* @__PURE__ */
|
|
467
|
-
|
|
512
|
+
return /* @__PURE__ */ n.jsx(
|
|
513
|
+
a,
|
|
468
514
|
{
|
|
469
515
|
ref: s,
|
|
470
516
|
...t,
|
|
471
|
-
className: l("inline-block",
|
|
517
|
+
className: l("inline-block", _({ size: r }))
|
|
472
518
|
}
|
|
473
519
|
);
|
|
474
520
|
}
|
|
475
|
-
),
|
|
476
|
-
({ name: e = "spenicle", size: r = "md", shape: t, ...s }, o) => /* @__PURE__ */
|
|
521
|
+
), de = d(
|
|
522
|
+
({ name: e = "spenicle", size: r = "md", shape: t, ...s }, o) => /* @__PURE__ */ n.jsx(
|
|
477
523
|
"span",
|
|
478
524
|
{
|
|
479
525
|
ref: o,
|
|
480
526
|
className: l("inline-flex items-center gap-2"),
|
|
481
527
|
...s,
|
|
482
|
-
children: /* @__PURE__ */
|
|
528
|
+
children: /* @__PURE__ */ n.jsx(D, { shape: t, size: r, "aria-hidden": "true" })
|
|
483
529
|
}
|
|
484
530
|
)
|
|
485
|
-
),
|
|
531
|
+
), G = b(
|
|
486
532
|
[
|
|
487
533
|
"inline-flex items-center justify-center gap-2",
|
|
488
534
|
"rounded-lg",
|
|
@@ -549,8 +595,8 @@ const E = (e) => /* @__PURE__ */ g.createElement("svg", { width: 32, height: 32,
|
|
|
549
595
|
}
|
|
550
596
|
}
|
|
551
597
|
);
|
|
552
|
-
function
|
|
553
|
-
const t = S(null), [s, o] = v({}), [
|
|
598
|
+
function J(e, r = "1rem") {
|
|
599
|
+
const t = S(null), [s, o] = v({}), [a, g] = v("fixed bottom-4 right-4"), i = y(() => {
|
|
554
600
|
const c = t.current;
|
|
555
601
|
if (!c) return;
|
|
556
602
|
const m = c.getBoundingClientRect().height > window.innerHeight;
|
|
@@ -564,7 +610,7 @@ function D(e, r = "1rem") {
|
|
|
564
610
|
position: "fixed",
|
|
565
611
|
bottom: r,
|
|
566
612
|
zIndex: 50
|
|
567
|
-
}, p = `fixed bottom-4 ${e}-4`), o(h),
|
|
613
|
+
}, p = `fixed bottom-4 ${e}-4`), o(h), g(p);
|
|
568
614
|
}, [e, r]);
|
|
569
615
|
return x(() => {
|
|
570
616
|
i();
|
|
@@ -579,40 +625,40 @@ function D(e, r = "1rem") {
|
|
|
579
625
|
t.current = c, c && i();
|
|
580
626
|
},
|
|
581
627
|
[i]
|
|
582
|
-
), s,
|
|
628
|
+
), s, a];
|
|
583
629
|
}
|
|
584
|
-
const
|
|
630
|
+
const ge = d(
|
|
585
631
|
function({
|
|
586
632
|
className: r,
|
|
587
633
|
variant: t = "primary",
|
|
588
634
|
size: s = "md",
|
|
589
635
|
side: o = "right",
|
|
590
|
-
offset:
|
|
591
|
-
...
|
|
636
|
+
offset: a = "1rem",
|
|
637
|
+
...g
|
|
592
638
|
}, i) {
|
|
593
|
-
const [f, c, w] =
|
|
639
|
+
const [f, c, w] = J(
|
|
594
640
|
o,
|
|
595
|
-
|
|
641
|
+
a
|
|
596
642
|
), [m, h] = v(!1);
|
|
597
643
|
return x(() => {
|
|
598
644
|
h(!0);
|
|
599
|
-
}, []), /* @__PURE__ */
|
|
645
|
+
}, []), /* @__PURE__ */ n.jsx("div", { ref: f, children: /* @__PURE__ */ n.jsx(
|
|
600
646
|
"button",
|
|
601
647
|
{
|
|
602
648
|
ref: i,
|
|
603
|
-
type:
|
|
649
|
+
type: g.type || "button",
|
|
604
650
|
className: l(
|
|
605
|
-
|
|
651
|
+
G({ variant: t, size: s }),
|
|
606
652
|
w,
|
|
607
653
|
m && "animate-fab-in",
|
|
608
654
|
r
|
|
609
655
|
),
|
|
610
656
|
style: c,
|
|
611
|
-
...
|
|
657
|
+
...g
|
|
612
658
|
}
|
|
613
659
|
) });
|
|
614
660
|
}
|
|
615
|
-
),
|
|
661
|
+
), K = b(
|
|
616
662
|
"flex items-center gap-2 px-4 py-2 rounded-sm w-fit relative shadow-sm",
|
|
617
663
|
{
|
|
618
664
|
variants: {
|
|
@@ -627,10 +673,10 @@ const de = d(
|
|
|
627
673
|
color: "success"
|
|
628
674
|
}
|
|
629
675
|
}
|
|
630
|
-
),
|
|
676
|
+
), Q = ({
|
|
631
677
|
children: e,
|
|
632
678
|
...r
|
|
633
|
-
}) => /* @__PURE__ */
|
|
679
|
+
}) => /* @__PURE__ */ n.jsx(
|
|
634
680
|
"span",
|
|
635
681
|
{
|
|
636
682
|
className: "flex-1 truncate text-sm",
|
|
@@ -638,27 +684,27 @@ const de = d(
|
|
|
638
684
|
...r,
|
|
639
685
|
children: e
|
|
640
686
|
}
|
|
641
|
-
),
|
|
687
|
+
), U = ({
|
|
642
688
|
children: e,
|
|
643
689
|
...r
|
|
644
|
-
}) => /* @__PURE__ */
|
|
645
|
-
({ children: e, action: r, color: t, className: s, ...o },
|
|
690
|
+
}) => /* @__PURE__ */ n.jsx("span", { className: "ml-2", "data-testid": "snackbar-action", ...r, children: e }), ue = d(
|
|
691
|
+
({ children: e, action: r, color: t, className: s, ...o }, a) => /* @__PURE__ */ n.jsxs(
|
|
646
692
|
"div",
|
|
647
693
|
{
|
|
648
|
-
ref:
|
|
694
|
+
ref: a,
|
|
649
695
|
role: "status",
|
|
650
696
|
"aria-live": "polite",
|
|
651
|
-
className: l(
|
|
697
|
+
className: l(K({ color: t }), s),
|
|
652
698
|
...o,
|
|
653
699
|
children: [
|
|
654
|
-
/* @__PURE__ */
|
|
655
|
-
r && /* @__PURE__ */
|
|
700
|
+
/* @__PURE__ */ n.jsx(Q, { children: e }),
|
|
701
|
+
r && /* @__PURE__ */ n.jsx(U, { children: r })
|
|
656
702
|
]
|
|
657
703
|
}
|
|
658
704
|
)
|
|
659
|
-
), z =
|
|
705
|
+
), z = V(null), W = z.Provider;
|
|
660
706
|
function N() {
|
|
661
|
-
const e =
|
|
707
|
+
const e = T(z);
|
|
662
708
|
if (!e)
|
|
663
709
|
throw new Error("Table compound components must be used within <Table>");
|
|
664
710
|
return e;
|
|
@@ -694,7 +740,7 @@ const j = (e) => {
|
|
|
694
740
|
default:
|
|
695
741
|
return "grid-cols-2";
|
|
696
742
|
}
|
|
697
|
-
},
|
|
743
|
+
}, X = (e) => {
|
|
698
744
|
if (e < 1 || e > 12)
|
|
699
745
|
throw new Error("Column span must be between 1 and 12");
|
|
700
746
|
switch (e) {
|
|
@@ -725,17 +771,17 @@ const j = (e) => {
|
|
|
725
771
|
default:
|
|
726
772
|
return "col-span-2";
|
|
727
773
|
}
|
|
728
|
-
},
|
|
774
|
+
}, Z = d(
|
|
729
775
|
({ children: e, className: r, ...t }, s) => {
|
|
730
776
|
const { maxColumns: o } = N();
|
|
731
|
-
return /* @__PURE__ */
|
|
777
|
+
return /* @__PURE__ */ n.jsx(
|
|
732
778
|
"div",
|
|
733
779
|
{
|
|
734
780
|
role: "rowgroup",
|
|
735
781
|
className: l("bg-neutral-soft", r),
|
|
736
782
|
...t,
|
|
737
783
|
ref: s,
|
|
738
|
-
children: /* @__PURE__ */
|
|
784
|
+
children: /* @__PURE__ */ n.jsx(
|
|
739
785
|
"div",
|
|
740
786
|
{
|
|
741
787
|
role: "row",
|
|
@@ -746,19 +792,19 @@ const j = (e) => {
|
|
|
746
792
|
}
|
|
747
793
|
);
|
|
748
794
|
}
|
|
749
|
-
),
|
|
750
|
-
({ children: e, className: r, ...t }, s) => /* @__PURE__ */
|
|
751
|
-
),
|
|
795
|
+
), ee = d(
|
|
796
|
+
({ children: e, className: r, ...t }, s) => /* @__PURE__ */ n.jsx("div", { role: "rowgroup", ref: s, className: l(r), ...t, children: e })
|
|
797
|
+
), re = d(
|
|
752
798
|
({ children: e, className: r, ...t }, s) => {
|
|
753
799
|
const { maxColumns: o } = N();
|
|
754
|
-
return /* @__PURE__ */
|
|
800
|
+
return /* @__PURE__ */ n.jsx(
|
|
755
801
|
"div",
|
|
756
802
|
{
|
|
757
803
|
role: "rowgroup",
|
|
758
804
|
className: l("bg-neutral-soft", r),
|
|
759
805
|
...t,
|
|
760
806
|
ref: s,
|
|
761
|
-
children: /* @__PURE__ */
|
|
807
|
+
children: /* @__PURE__ */ n.jsx(
|
|
762
808
|
"div",
|
|
763
809
|
{
|
|
764
810
|
role: "row",
|
|
@@ -769,10 +815,10 @@ const j = (e) => {
|
|
|
769
815
|
}
|
|
770
816
|
);
|
|
771
817
|
}
|
|
772
|
-
),
|
|
818
|
+
), te = d(
|
|
773
819
|
({ children: e, className: r, ...t }, s) => {
|
|
774
820
|
const { maxColumns: o } = N();
|
|
775
|
-
return /* @__PURE__ */
|
|
821
|
+
return /* @__PURE__ */ n.jsx(
|
|
776
822
|
"div",
|
|
777
823
|
{
|
|
778
824
|
role: "row",
|
|
@@ -788,34 +834,34 @@ const j = (e) => {
|
|
|
788
834
|
}
|
|
789
835
|
);
|
|
790
836
|
}
|
|
791
|
-
),
|
|
792
|
-
({ as: e = "td", span: r, align: t = "left", children: s, className: o, ...
|
|
837
|
+
), se = d(
|
|
838
|
+
({ as: e = "td", span: r, align: t = "left", children: s, className: o, ...a }, g) => {
|
|
793
839
|
const i = e === "th" ? "columnheader" : "cell";
|
|
794
840
|
let f = "text-left";
|
|
795
|
-
return t === "center" ? f = "text-center" : t === "right" && (f = "text-right"), /* @__PURE__ */
|
|
841
|
+
return t === "center" ? f = "text-center" : t === "right" && (f = "text-right"), /* @__PURE__ */ n.jsx(
|
|
796
842
|
"div",
|
|
797
843
|
{
|
|
798
|
-
ref:
|
|
844
|
+
ref: g,
|
|
799
845
|
role: i,
|
|
800
846
|
className: l(
|
|
801
847
|
"px-4 py-2",
|
|
802
848
|
"[&:not(:last-child)]:border-r [&:not(:last-child)]:border-border",
|
|
803
|
-
|
|
849
|
+
X(r),
|
|
804
850
|
f,
|
|
805
851
|
o
|
|
806
852
|
),
|
|
807
|
-
...
|
|
853
|
+
...a,
|
|
808
854
|
children: s
|
|
809
855
|
}
|
|
810
856
|
);
|
|
811
857
|
}
|
|
812
|
-
),
|
|
858
|
+
), oe = d(
|
|
813
859
|
({ children: e, className: r, maxColumns: t = 12, ...s }, o) => {
|
|
814
|
-
const
|
|
860
|
+
const a = A(
|
|
815
861
|
() => ({ maxColumns: t }),
|
|
816
862
|
[t]
|
|
817
863
|
);
|
|
818
|
-
return /* @__PURE__ */
|
|
864
|
+
return /* @__PURE__ */ n.jsx(W, { value: a, children: /* @__PURE__ */ n.jsx(
|
|
819
865
|
"div",
|
|
820
866
|
{
|
|
821
867
|
ref: o,
|
|
@@ -829,13 +875,13 @@ const j = (e) => {
|
|
|
829
875
|
}
|
|
830
876
|
) });
|
|
831
877
|
}
|
|
832
|
-
),
|
|
833
|
-
Header:
|
|
834
|
-
Body:
|
|
835
|
-
Footer:
|
|
836
|
-
Row:
|
|
837
|
-
Column:
|
|
838
|
-
}),
|
|
878
|
+
), fe = Object.assign(oe, {
|
|
879
|
+
Header: Z,
|
|
880
|
+
Body: ee,
|
|
881
|
+
Footer: re,
|
|
882
|
+
Row: te,
|
|
883
|
+
Column: se
|
|
884
|
+
}), ne = b(
|
|
839
885
|
// Base classes
|
|
840
886
|
"block transition-colors duration-200",
|
|
841
887
|
{
|
|
@@ -870,23 +916,24 @@ const j = (e) => {
|
|
|
870
916
|
shape: "rounded"
|
|
871
917
|
}
|
|
872
918
|
}
|
|
873
|
-
),
|
|
874
|
-
({ variant: e = "white", size: r = "md", shape: t = "rounded", className: s, ...o },
|
|
919
|
+
), be = d(
|
|
920
|
+
({ variant: e = "white", size: r = "md", shape: t = "rounded", className: s, ...o }, a) => /* @__PURE__ */ n.jsx(
|
|
875
921
|
"div",
|
|
876
922
|
{
|
|
877
|
-
ref:
|
|
878
|
-
className: l(
|
|
923
|
+
ref: a,
|
|
924
|
+
className: l(ne({ variant: e, size: r, shape: t }), s),
|
|
879
925
|
...o
|
|
880
926
|
}
|
|
881
927
|
)
|
|
882
928
|
);
|
|
883
929
|
export {
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
930
|
+
le as A,
|
|
931
|
+
P as B,
|
|
932
|
+
ue as S,
|
|
933
|
+
fe as T,
|
|
934
|
+
O as a,
|
|
889
935
|
ce as b,
|
|
890
936
|
de as c,
|
|
891
|
-
|
|
937
|
+
ge as d,
|
|
938
|
+
be as e
|
|
892
939
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { BottomSheet } from './bottom-sheet';
|
|
2
2
|
export * from './types';
|