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