@dimasbaguspm/versaur 0.0.41 → 0.0.42
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-Da41OlDM.js → bottom-sheet-DHMq1-Di.js} +1 -1
- package/dist/js/{bottom-sheet-input-BB3FZtpr.js → bottom-sheet-input-IzuwB7Zy.js} +10 -10
- package/dist/js/forms/index.js +1 -1
- package/dist/js/{image-rectangle-S0pOfTm5.js → image-rectangle-DPZAgdEa.js} +142 -137
- package/dist/js/index.js +6 -6
- package/dist/js/layouts/index.js +1 -1
- package/dist/js/navigation/index.js +1 -1
- package/dist/js/overlays/index.js +3 -3
- package/dist/js/primitive/index.js +1 -1
- package/dist/js/{tabs-C8iGcy7x.js → tabs-BRMO0ktc.js} +1 -1
- package/dist/js/{tooltip-VV9T0wn6.js → tooltip-D_laXWIT.js} +1 -1
- package/dist/js/{top-bar-DYbS1NgD.js → top-bar-BKeQ6yXv.js} +30 -24
- package/dist/types/layouts/page-loader/types.d.ts +4 -0
- package/dist/types/primitive/card/types.d.ts +0 -4
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as f, j as r, a as l } from "./index-DOdDlCoL.js";
|
|
2
2
|
import j, { useState as p, useEffect as x, createContext as V, useContext as B, forwardRef as u, useRef as z, useMemo as M } from "react";
|
|
3
|
-
import { O as S, n as P, k as N, H as D } from "./image-rectangle-
|
|
3
|
+
import { O as S, n as P, k as N, H as D } from "./image-rectangle-DPZAgdEa.js";
|
|
4
4
|
import { XIcon as R } from "lucide-react";
|
|
5
5
|
import "./snackbar-DH8jCh2V.js";
|
|
6
6
|
function F() {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { c as v, j as e, a as m } from "./index-DOdDlCoL.js";
|
|
2
2
|
import x, { createContext as N, useContext as z, useId as F, forwardRef as j, useRef as B, useState as R, useEffect as U, useMemo as E } from "react";
|
|
3
|
-
import { I as C } from "./image-rectangle-
|
|
3
|
+
import { I as C } from "./image-rectangle-DPZAgdEa.js";
|
|
4
4
|
import { Calendar as X, SearchIcon as Y, Clock as Z, Banknote as ee, MailIcon as re, Check as P } from "lucide-react";
|
|
5
5
|
import "./snackbar-DH8jCh2V.js";
|
|
6
|
-
import { M as O, D as M, B as V } from "./bottom-sheet-
|
|
6
|
+
import { M as O, D as M, B as V } from "./bottom-sheet-DHMq1-Di.js";
|
|
7
7
|
const te = v("space-y-2", {
|
|
8
8
|
variants: {
|
|
9
9
|
direction: {
|
|
@@ -172,7 +172,7 @@ const nr = Object.assign(H, {
|
|
|
172
172
|
);
|
|
173
173
|
return r;
|
|
174
174
|
}, ie = v(
|
|
175
|
-
"inline-flex items-center bg-white
|
|
175
|
+
"inline-flex items-center bg-white transition-colors duration-200 cursor-pointer border border-border",
|
|
176
176
|
{
|
|
177
177
|
variants: {
|
|
178
178
|
variant: {
|
|
@@ -215,9 +215,9 @@ const nr = Object.assign(H, {
|
|
|
215
215
|
rounded: "rounded-lg"
|
|
216
216
|
},
|
|
217
217
|
size: {
|
|
218
|
-
sm: "h-7 px-3 text-sm",
|
|
219
|
-
md: "h-9 px-4 text-
|
|
220
|
-
lg: "h-10 px-
|
|
218
|
+
sm: "h-7 px-3 text-sm min-w-[2.25rem]",
|
|
219
|
+
md: "h-9 px-4 text-sm min-w-[2.5rem]",
|
|
220
|
+
lg: "h-10 px-8 text-lg min-w-[2.75rem]"
|
|
221
221
|
}
|
|
222
222
|
},
|
|
223
223
|
defaultVariants: {
|
|
@@ -312,7 +312,7 @@ const nr = Object.assign(H, {
|
|
|
312
312
|
);
|
|
313
313
|
return r;
|
|
314
314
|
}, ue = v(
|
|
315
|
-
"inline-flex items-center bg-white
|
|
315
|
+
"inline-flex items-center bg-white transition-colors duration-200 cursor-pointer border border-border",
|
|
316
316
|
{
|
|
317
317
|
variants: {
|
|
318
318
|
variant: {
|
|
@@ -359,9 +359,9 @@ const nr = Object.assign(H, {
|
|
|
359
359
|
rounded: "rounded-lg"
|
|
360
360
|
},
|
|
361
361
|
size: {
|
|
362
|
-
sm: "px-3
|
|
363
|
-
md: "px-4
|
|
364
|
-
lg: "
|
|
362
|
+
sm: "h-7 px-3 text-sm min-w-[2.25rem]",
|
|
363
|
+
md: "h-9 px-4 text-sm min-w-[2.5rem]",
|
|
364
|
+
lg: "h-10 px-8 text-lg min-w-[2.75rem]"
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
367
|
}
|
package/dist/js/forms/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as a, C as n, b as p, a as u, D as s, k as I, E as i, M as l, P as S, R as c, d as r, c as g, S as h, e as o, j as m, i as M, h as b, f as k, T as x, g as C } from "../bottom-sheet-input-
|
|
1
|
+
import { B as a, C as n, b as p, a as u, D as s, k as I, E as i, M as l, P as S, R as c, d as r, c as g, S as h, e as o, j as m, i as M, h as b, f as k, T as x, g as C } from "../bottom-sheet-input-IzuwB7Zy.js";
|
|
2
2
|
export {
|
|
3
3
|
a as BottomSheetInput,
|
|
4
4
|
n as CheckboxInput,
|
|
@@ -146,8 +146,8 @@ const AccordionContext = createContext(
|
|
|
146
146
|
isCapitalize: i = !1,
|
|
147
147
|
hasMargin: s = !1,
|
|
148
148
|
align: o = "left",
|
|
149
|
-
italic:
|
|
150
|
-
clamp:
|
|
149
|
+
italic: a = !1,
|
|
150
|
+
clamp: l = "none",
|
|
151
151
|
ellipsis: u = !1,
|
|
152
152
|
className: c,
|
|
153
153
|
children: f,
|
|
@@ -165,8 +165,8 @@ const AccordionContext = createContext(
|
|
|
165
165
|
isCapitalize: i,
|
|
166
166
|
hasMargin: s,
|
|
167
167
|
align: o,
|
|
168
|
-
italic:
|
|
169
|
-
clamp:
|
|
168
|
+
italic: a,
|
|
169
|
+
clamp: l,
|
|
170
170
|
ellipsis: u,
|
|
171
171
|
level: e
|
|
172
172
|
}),
|
|
@@ -209,11 +209,11 @@ const iconVariants = cva("inline-flex items-center justify-center", {
|
|
|
209
209
|
size: "md",
|
|
210
210
|
color: "primary"
|
|
211
211
|
}
|
|
212
|
-
}), Icon = React__default.forwardRef(function({ as: t, color: r = "primary", size: i = "md", className: s, ...o },
|
|
212
|
+
}), Icon = React__default.forwardRef(function({ as: t, color: r = "primary", size: i = "md", className: s, ...o }, a) {
|
|
213
213
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
214
214
|
t,
|
|
215
215
|
{
|
|
216
|
-
ref:
|
|
216
|
+
ref: a,
|
|
217
217
|
className: iconVariants({ color: r, size: i, className: s }),
|
|
218
218
|
...o
|
|
219
219
|
}
|
|
@@ -261,8 +261,8 @@ const iconVariants = cva("inline-flex items-center justify-center", {
|
|
|
261
261
|
isDefaultOpen: i = !1,
|
|
262
262
|
disabled: s = !1,
|
|
263
263
|
hasMargin: o,
|
|
264
|
-
className:
|
|
265
|
-
children:
|
|
264
|
+
className: a,
|
|
265
|
+
children: l,
|
|
266
266
|
...u
|
|
267
267
|
}, c) {
|
|
268
268
|
const [f, n] = useState(i), d = () => {
|
|
@@ -278,7 +278,7 @@ const iconVariants = cva("inline-flex items-center justify-center", {
|
|
|
278
278
|
ref: c,
|
|
279
279
|
className: cn(
|
|
280
280
|
accordionVariants({ disabled: s }),
|
|
281
|
-
|
|
281
|
+
a,
|
|
282
282
|
o && "mb-4"
|
|
283
283
|
),
|
|
284
284
|
...u,
|
|
@@ -307,7 +307,7 @@ const iconVariants = cva("inline-flex items-center justify-center", {
|
|
|
307
307
|
"overflow-hidden transition-all duration-300",
|
|
308
308
|
f ? "max-h-screen opacity-100" : "max-h-0 opacity-0"
|
|
309
309
|
),
|
|
310
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "p-4 pt-2", children:
|
|
310
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "p-4 pt-2", children: l })
|
|
311
311
|
}
|
|
312
312
|
)
|
|
313
313
|
]
|
|
@@ -463,10 +463,10 @@ const iconVariants = cva("inline-flex items-center justify-center", {
|
|
|
463
463
|
className: i,
|
|
464
464
|
children: s,
|
|
465
465
|
...o
|
|
466
|
-
},
|
|
466
|
+
}, a) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
467
467
|
"div",
|
|
468
468
|
{
|
|
469
|
-
ref:
|
|
469
|
+
ref: a,
|
|
470
470
|
role: "alert",
|
|
471
471
|
className: cn(alertVariants({ variant: e, color: t }), i),
|
|
472
472
|
...o,
|
|
@@ -543,16 +543,16 @@ const iconVariants = cva("inline-flex items-center justify-center", {
|
|
|
543
543
|
fontSize: i = "base",
|
|
544
544
|
fontWeight: s = "medium",
|
|
545
545
|
quiet: o = !1,
|
|
546
|
-
...
|
|
547
|
-
},
|
|
546
|
+
...a
|
|
547
|
+
}, l) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
548
548
|
"a",
|
|
549
549
|
{
|
|
550
|
-
ref:
|
|
550
|
+
ref: l,
|
|
551
551
|
className: cn(
|
|
552
552
|
anchorVariants({ color: r, fontSize: i, fontWeight: s, quiet: o }),
|
|
553
553
|
t
|
|
554
554
|
),
|
|
555
|
-
...
|
|
555
|
+
...a,
|
|
556
556
|
children: e
|
|
557
557
|
}
|
|
558
558
|
)
|
|
@@ -633,8 +633,8 @@ const iconVariants = cva("inline-flex items-center justify-center", {
|
|
|
633
633
|
isCapitalize: i = !1,
|
|
634
634
|
align: s = "left",
|
|
635
635
|
italic: o = !1,
|
|
636
|
-
clamp:
|
|
637
|
-
ellipsis:
|
|
636
|
+
clamp: a = "none",
|
|
637
|
+
ellipsis: l = !1,
|
|
638
638
|
fontSize: u,
|
|
639
639
|
fontWeight: c,
|
|
640
640
|
className: f,
|
|
@@ -663,8 +663,8 @@ const iconVariants = cva("inline-flex items-center justify-center", {
|
|
|
663
663
|
isCapitalize: i,
|
|
664
664
|
align: s,
|
|
665
665
|
italic: o,
|
|
666
|
-
clamp:
|
|
667
|
-
ellipsis:
|
|
666
|
+
clamp: a,
|
|
667
|
+
ellipsis: l,
|
|
668
668
|
// @ts-expect-error - `as` is not a valid variant
|
|
669
669
|
as: y
|
|
670
670
|
}),
|
|
@@ -678,11 +678,11 @@ const iconVariants = cva("inline-flex items-center justify-center", {
|
|
|
678
678
|
);
|
|
679
679
|
}
|
|
680
680
|
), Attribute = forwardRef(
|
|
681
|
-
function({ title: t, children: r, className: i, hasMargin: s, ...o },
|
|
681
|
+
function({ title: t, children: r, className: i, hasMargin: s, ...o }, a) {
|
|
682
682
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
683
683
|
"div",
|
|
684
684
|
{
|
|
685
|
-
ref:
|
|
685
|
+
ref: a,
|
|
686
686
|
className: cn("space-y-1", i, s && "mb-4"),
|
|
687
687
|
...o,
|
|
688
688
|
children: [
|
|
@@ -763,17 +763,17 @@ function getGridCols(e = 4) {
|
|
|
763
763
|
return "grid-cols-4";
|
|
764
764
|
}
|
|
765
765
|
}
|
|
766
|
-
const AttributeListItem = forwardRef(function({ children: t, className: r, span: i = 1, title: s, ...o },
|
|
767
|
-
const
|
|
768
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("li", { ref:
|
|
766
|
+
const AttributeListItem = forwardRef(function({ children: t, className: r, span: i = 1, title: s, ...o }, a) {
|
|
767
|
+
const l = getColSpan(i);
|
|
768
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("li", { ref: a, className: cn(l, r), ...o, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Attribute, { title: s, children: t }) });
|
|
769
769
|
}), AttributeListRoot = forwardRef(
|
|
770
770
|
function({ children: t, className: r, columns: i = 4, ...s }, o) {
|
|
771
|
-
const
|
|
771
|
+
const a = getGridCols(i);
|
|
772
772
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
773
773
|
"ul",
|
|
774
774
|
{
|
|
775
775
|
ref: o,
|
|
776
|
-
className: cn("grid gap-4",
|
|
776
|
+
className: cn("grid gap-4", a, r),
|
|
777
777
|
...s,
|
|
778
778
|
children: t
|
|
779
779
|
}
|
|
@@ -831,10 +831,10 @@ const AttributeListItem = forwardRef(function({ children: t, className: r, span:
|
|
|
831
831
|
className: i,
|
|
832
832
|
children: s,
|
|
833
833
|
...o
|
|
834
|
-
},
|
|
834
|
+
}, a) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
835
835
|
"div",
|
|
836
836
|
{
|
|
837
|
-
ref:
|
|
837
|
+
ref: a,
|
|
838
838
|
className: cn(avatarVariants({ variant: e, size: t, shape: r }), i),
|
|
839
839
|
...o,
|
|
840
840
|
children: s
|
|
@@ -842,17 +842,17 @@ const AttributeListItem = forwardRef(function({ children: t, className: r, span:
|
|
|
842
842
|
)
|
|
843
843
|
), AvatarImage = forwardRef(
|
|
844
844
|
({ src: e, alt: t, className: r, onError: i, ...s }, o) => {
|
|
845
|
-
const [
|
|
845
|
+
const [a, l] = useState(!1);
|
|
846
846
|
useEffect(() => {
|
|
847
|
-
|
|
847
|
+
l(!1);
|
|
848
848
|
}, [e]);
|
|
849
849
|
const u = useCallback(
|
|
850
850
|
(c) => {
|
|
851
|
-
|
|
851
|
+
l(!0), i?.(c);
|
|
852
852
|
},
|
|
853
853
|
[i]
|
|
854
854
|
);
|
|
855
|
-
return
|
|
855
|
+
return a ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
856
856
|
"img",
|
|
857
857
|
{
|
|
858
858
|
ref: o,
|
|
@@ -1064,11 +1064,11 @@ const AttributeListItem = forwardRef(function({ children: t, className: r, span:
|
|
|
1064
1064
|
size: i = "md",
|
|
1065
1065
|
iconLeft: s,
|
|
1066
1066
|
iconRight: o,
|
|
1067
|
-
className:
|
|
1068
|
-
children:
|
|
1067
|
+
className: a,
|
|
1068
|
+
children: l,
|
|
1069
1069
|
...u
|
|
1070
1070
|
}, c) => {
|
|
1071
|
-
const d = !(
|
|
1071
|
+
const d = !(l != null && l !== "") && !!(s || o);
|
|
1072
1072
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1073
1073
|
"span",
|
|
1074
1074
|
{
|
|
@@ -1081,7 +1081,7 @@ const AttributeListItem = forwardRef(function({ children: t, className: r, span:
|
|
|
1081
1081
|
size: i,
|
|
1082
1082
|
iconOnly: d
|
|
1083
1083
|
}),
|
|
1084
|
-
|
|
1084
|
+
a
|
|
1085
1085
|
),
|
|
1086
1086
|
...u,
|
|
1087
1087
|
children: d ? (
|
|
@@ -1091,7 +1091,7 @@ const AttributeListItem = forwardRef(function({ children: t, className: r, span:
|
|
|
1091
1091
|
// Normal mode: display icon(s) and text
|
|
1092
1092
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
1093
1093
|
s,
|
|
1094
|
-
|
|
1094
|
+
l,
|
|
1095
1095
|
o
|
|
1096
1096
|
] })
|
|
1097
1097
|
)
|
|
@@ -1203,8 +1203,8 @@ const AttributeListItem = forwardRef(function({ children: t, className: r, span:
|
|
|
1203
1203
|
size: i = "md",
|
|
1204
1204
|
disabled: s = !1,
|
|
1205
1205
|
type: o = "button",
|
|
1206
|
-
children:
|
|
1207
|
-
...
|
|
1206
|
+
children: a,
|
|
1207
|
+
...l
|
|
1208
1208
|
}, u) {
|
|
1209
1209
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1210
1210
|
"button",
|
|
@@ -1215,8 +1215,8 @@ const AttributeListItem = forwardRef(function({ children: t, className: r, span:
|
|
|
1215
1215
|
disabled: s,
|
|
1216
1216
|
"aria-disabled": s,
|
|
1217
1217
|
inert: s ? !0 : void 0,
|
|
1218
|
-
...
|
|
1219
|
-
children:
|
|
1218
|
+
...l,
|
|
1219
|
+
children: a
|
|
1220
1220
|
}
|
|
1221
1221
|
);
|
|
1222
1222
|
}
|
|
@@ -1278,20 +1278,20 @@ function isTriggerVisible(e, t) {
|
|
|
1278
1278
|
return !0;
|
|
1279
1279
|
}
|
|
1280
1280
|
function useMenuPosition(e, t, r, i = "bottom-start", s) {
|
|
1281
|
-
const [o,
|
|
1281
|
+
const [o, a] = useState({ isReady: !1 }), l = useCallback(() => {
|
|
1282
1282
|
if (!e || !t.current) {
|
|
1283
|
-
|
|
1283
|
+
a({ isReady: !1 });
|
|
1284
1284
|
return;
|
|
1285
1285
|
}
|
|
1286
1286
|
if (!r.current) {
|
|
1287
1287
|
const v = setTimeout(() => {
|
|
1288
|
-
|
|
1288
|
+
a({ isReady: !1 });
|
|
1289
1289
|
}, 0);
|
|
1290
1290
|
return () => clearTimeout(v);
|
|
1291
1291
|
}
|
|
1292
1292
|
const u = t.current, c = r.current, f = getScrollableAncestors(u);
|
|
1293
1293
|
if (!isTriggerVisible(u, f)) {
|
|
1294
|
-
|
|
1294
|
+
a({ isReady: !1 });
|
|
1295
1295
|
return;
|
|
1296
1296
|
}
|
|
1297
1297
|
const n = u.getBoundingClientRect(), d = window.innerWidth, h = window.innerHeight;
|
|
@@ -1413,17 +1413,17 @@ function useMenuPosition(e, t, r, i = "bottom-start", s) {
|
|
|
1413
1413
|
p.endsWith("start") ? g.left = (g.left || 0) - j : g.right = (g.right || 0) + j;
|
|
1414
1414
|
}
|
|
1415
1415
|
}
|
|
1416
|
-
g.isReady = !0,
|
|
1416
|
+
g.isReady = !0, a(g);
|
|
1417
1417
|
}, [e, i, t, r, s]);
|
|
1418
1418
|
return useEffect(() => {
|
|
1419
|
-
|
|
1420
|
-
}, [
|
|
1419
|
+
l();
|
|
1420
|
+
}, [l]), useEffect(() => {
|
|
1421
1421
|
if (!e || !t.current) return;
|
|
1422
1422
|
const u = t.current, c = getScrollableAncestors(u);
|
|
1423
1423
|
let f = !1;
|
|
1424
1424
|
const n = () => {
|
|
1425
1425
|
f || (requestAnimationFrame(() => {
|
|
1426
|
-
|
|
1426
|
+
l(), f = !1;
|
|
1427
1427
|
}), f = !0);
|
|
1428
1428
|
};
|
|
1429
1429
|
return c.forEach((d) => {
|
|
@@ -1433,7 +1433,7 @@ function useMenuPosition(e, t, r, i = "bottom-start", s) {
|
|
|
1433
1433
|
d === document.documentElement ? (window.removeEventListener("scroll", n), window.removeEventListener("resize", n)) : d.removeEventListener("scroll", n);
|
|
1434
1434
|
});
|
|
1435
1435
|
};
|
|
1436
|
-
}, [e,
|
|
1436
|
+
}, [e, l, t]), o;
|
|
1437
1437
|
}
|
|
1438
1438
|
const MenuContext = createContext(void 0), MenuProvider = MenuContext.Provider, useMenuProvider = () => {
|
|
1439
1439
|
const e = useContext(MenuContext);
|
|
@@ -1444,8 +1444,8 @@ const MenuContext = createContext(void 0), MenuProvider = MenuContext.Provider,
|
|
|
1444
1444
|
({ children: e }, t) => /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { ref: t, className: "flex flex-col gap-1", children: e })
|
|
1445
1445
|
), MenuItem = forwardRef(
|
|
1446
1446
|
({ children: e, disabled: t, onClick: r, active: i, ...s }, o) => {
|
|
1447
|
-
const { preserve:
|
|
1448
|
-
r?.(c),
|
|
1447
|
+
const { preserve: a, onClose: l } = useMenuProvider(), u = (c) => {
|
|
1448
|
+
r?.(c), a || l();
|
|
1449
1449
|
};
|
|
1450
1450
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("li", { ref: o, ...s, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
1451
1451
|
Button,
|
|
@@ -1476,8 +1476,8 @@ const MenuContext = createContext(void 0), MenuProvider = MenuContext.Provider,
|
|
|
1476
1476
|
content: i,
|
|
1477
1477
|
children: s,
|
|
1478
1478
|
placement: o = "auto",
|
|
1479
|
-
container:
|
|
1480
|
-
preserve:
|
|
1479
|
+
container: a,
|
|
1480
|
+
preserve: l
|
|
1481
1481
|
}) => {
|
|
1482
1482
|
const u = useRef(null), c = useRef(null), f = useId();
|
|
1483
1483
|
useMenuOutsideClick(e, c, u, t);
|
|
@@ -1486,7 +1486,7 @@ const MenuContext = createContext(void 0), MenuProvider = MenuContext.Provider,
|
|
|
1486
1486
|
u,
|
|
1487
1487
|
c,
|
|
1488
1488
|
o,
|
|
1489
|
-
|
|
1489
|
+
a || null
|
|
1490
1490
|
), d = {
|
|
1491
1491
|
...n,
|
|
1492
1492
|
position: n.position || "absolute",
|
|
@@ -1507,7 +1507,7 @@ const MenuContext = createContext(void 0), MenuProvider = MenuContext.Provider,
|
|
|
1507
1507
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1508
1508
|
MenuProvider,
|
|
1509
1509
|
{
|
|
1510
|
-
value: { onClose: t, preserve: !!
|
|
1510
|
+
value: { onClose: t, preserve: !!l },
|
|
1511
1511
|
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "relative w-fit", children: [
|
|
1512
1512
|
cloneElement(s, {
|
|
1513
1513
|
// @ts-expect-error: ref is valid for button or forwardRef components
|
|
@@ -1548,8 +1548,8 @@ const MenuContext = createContext(void 0), MenuProvider = MenuContext.Provider,
|
|
|
1548
1548
|
onOpenChange: i,
|
|
1549
1549
|
onClick: s,
|
|
1550
1550
|
placement: o,
|
|
1551
|
-
container:
|
|
1552
|
-
preserve:
|
|
1551
|
+
container: a,
|
|
1552
|
+
preserve: l,
|
|
1553
1553
|
label: u,
|
|
1554
1554
|
...c
|
|
1555
1555
|
} = e ?? {}, [f, n] = useState(!1);
|
|
@@ -1567,8 +1567,8 @@ const MenuContext = createContext(void 0), MenuProvider = MenuContext.Provider,
|
|
|
1567
1567
|
isOpen: f,
|
|
1568
1568
|
onOutsideClick: d,
|
|
1569
1569
|
placement: o,
|
|
1570
|
-
container:
|
|
1571
|
-
preserve:
|
|
1570
|
+
container: a,
|
|
1571
|
+
preserve: l,
|
|
1572
1572
|
content: /* @__PURE__ */ jsxRuntimeExports.jsx(Menu.Content, { children: r }),
|
|
1573
1573
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { ref: t, onClick: h, ...c, children: u })
|
|
1574
1574
|
}
|
|
@@ -1672,8 +1672,8 @@ const buttonIconVariants = cva(
|
|
|
1672
1672
|
size: i = "md",
|
|
1673
1673
|
shape: s = "rounded",
|
|
1674
1674
|
disabled: o = !1,
|
|
1675
|
-
as:
|
|
1676
|
-
"aria-label":
|
|
1675
|
+
as: a,
|
|
1676
|
+
"aria-label": l,
|
|
1677
1677
|
...u
|
|
1678
1678
|
}, c) {
|
|
1679
1679
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -1691,13 +1691,13 @@ const buttonIconVariants = cva(
|
|
|
1691
1691
|
),
|
|
1692
1692
|
disabled: o,
|
|
1693
1693
|
"aria-disabled": o,
|
|
1694
|
-
"aria-label":
|
|
1694
|
+
"aria-label": l,
|
|
1695
1695
|
inert: o ? !0 : void 0,
|
|
1696
1696
|
...u,
|
|
1697
1697
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1698
1698
|
Icon,
|
|
1699
1699
|
{
|
|
1700
|
-
as:
|
|
1700
|
+
as: a,
|
|
1701
1701
|
size: "sm",
|
|
1702
1702
|
color: getIconColorFromVariant(r)
|
|
1703
1703
|
}
|
|
@@ -1712,8 +1712,8 @@ const buttonIconVariants = cva(
|
|
|
1712
1712
|
children: i,
|
|
1713
1713
|
onOpenChange: s,
|
|
1714
1714
|
onClick: o,
|
|
1715
|
-
placement:
|
|
1716
|
-
container:
|
|
1715
|
+
placement: a,
|
|
1716
|
+
container: l,
|
|
1717
1717
|
preserve: u,
|
|
1718
1718
|
...c
|
|
1719
1719
|
} = e ?? {}, [f, n] = useState(!1);
|
|
@@ -1730,8 +1730,8 @@ const buttonIconVariants = cva(
|
|
|
1730
1730
|
{
|
|
1731
1731
|
isOpen: f,
|
|
1732
1732
|
onOutsideClick: d,
|
|
1733
|
-
placement:
|
|
1734
|
-
container:
|
|
1733
|
+
placement: a,
|
|
1734
|
+
container: l,
|
|
1735
1735
|
preserve: u,
|
|
1736
1736
|
content: /* @__PURE__ */ jsxRuntimeExports.jsx(Menu.Content, { children: i }),
|
|
1737
1737
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ButtonIcon, { ref: t, as: r, onClick: h, ...c })
|
|
@@ -1808,7 +1808,7 @@ const buttonIconVariants = cva(
|
|
|
1808
1808
|
}
|
|
1809
1809
|
);
|
|
1810
1810
|
function useFloatingPosition(e, t = "1rem") {
|
|
1811
|
-
const r = useRef(null), [i, s] = useState({}), [o,
|
|
1811
|
+
const r = useRef(null), [i, s] = useState({}), [o, a] = useState("fixed bottom-4 right-4"), l = useCallback(() => {
|
|
1812
1812
|
const c = r.current;
|
|
1813
1813
|
if (!c) return;
|
|
1814
1814
|
const n = c.getBoundingClientRect().height > window.innerHeight;
|
|
@@ -1822,21 +1822,21 @@ function useFloatingPosition(e, t = "1rem") {
|
|
|
1822
1822
|
position: "fixed",
|
|
1823
1823
|
bottom: t,
|
|
1824
1824
|
zIndex: 50
|
|
1825
|
-
}, h = `fixed bottom-4 ${e}-4`), s(d),
|
|
1825
|
+
}, h = `fixed bottom-4 ${e}-4`), s(d), a(h);
|
|
1826
1826
|
}, [e, t]);
|
|
1827
1827
|
return useEffect(() => {
|
|
1828
|
-
|
|
1828
|
+
l();
|
|
1829
1829
|
const c = r.current;
|
|
1830
|
-
return c && c.addEventListener("scroll",
|
|
1831
|
-
c && c.removeEventListener("scroll",
|
|
1830
|
+
return c && c.addEventListener("scroll", l), window.addEventListener("resize", l), () => {
|
|
1831
|
+
c && c.removeEventListener("scroll", l), window.removeEventListener("resize", l);
|
|
1832
1832
|
};
|
|
1833
|
-
}, [
|
|
1834
|
-
r.current &&
|
|
1835
|
-
}, [e, t,
|
|
1833
|
+
}, [l]), useEffect(() => {
|
|
1834
|
+
r.current && l();
|
|
1835
|
+
}, [e, t, l]), [useCallback(
|
|
1836
1836
|
(c) => {
|
|
1837
|
-
r.current = c, c &&
|
|
1837
|
+
r.current = c, c && l();
|
|
1838
1838
|
},
|
|
1839
|
-
[
|
|
1839
|
+
[l]
|
|
1840
1840
|
), i, o];
|
|
1841
1841
|
}
|
|
1842
1842
|
const ButtonFloat = forwardRef(
|
|
@@ -1846,8 +1846,8 @@ const ButtonFloat = forwardRef(
|
|
|
1846
1846
|
size: i = "md",
|
|
1847
1847
|
side: s = "right",
|
|
1848
1848
|
offset: o = "1rem",
|
|
1849
|
-
...
|
|
1850
|
-
},
|
|
1849
|
+
...a
|
|
1850
|
+
}, l) {
|
|
1851
1851
|
const [u, c, f] = useFloatingPosition(
|
|
1852
1852
|
s,
|
|
1853
1853
|
o
|
|
@@ -1857,8 +1857,8 @@ const ButtonFloat = forwardRef(
|
|
|
1857
1857
|
}, []), /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: u, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1858
1858
|
"button",
|
|
1859
1859
|
{
|
|
1860
|
-
ref:
|
|
1861
|
-
type:
|
|
1860
|
+
ref: l,
|
|
1861
|
+
type: a.type || "button",
|
|
1862
1862
|
className: cn(
|
|
1863
1863
|
buttonFloatVariants({ variant: r, size: i }),
|
|
1864
1864
|
f,
|
|
@@ -1866,7 +1866,7 @@ const ButtonFloat = forwardRef(
|
|
|
1866
1866
|
t
|
|
1867
1867
|
),
|
|
1868
1868
|
style: c,
|
|
1869
|
-
...
|
|
1869
|
+
...a
|
|
1870
1870
|
}
|
|
1871
1871
|
) });
|
|
1872
1872
|
}
|
|
@@ -1988,7 +1988,7 @@ const BUTTONS = [
|
|
|
1988
1988
|
className: i,
|
|
1989
1989
|
"aria-label": s
|
|
1990
1990
|
}, o) => {
|
|
1991
|
-
const { input:
|
|
1991
|
+
const { input: a, inputRef: l, handleButton: u, handleInput: c } = useCalculator({
|
|
1992
1992
|
initialValue: e,
|
|
1993
1993
|
disabled: r,
|
|
1994
1994
|
onChange: t
|
|
@@ -2004,9 +2004,9 @@ const BUTTONS = [
|
|
|
2004
2004
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2005
2005
|
"input",
|
|
2006
2006
|
{
|
|
2007
|
-
ref:
|
|
2007
|
+
ref: l,
|
|
2008
2008
|
className: "w-full mb-3 px-3 py-2 rounded border border-[var(--color-neutral)] bg-[var(--color-neutral-soft)] text-right text-xl font-mono focus:outline-none focus:ring-2 focus:ring-[var(--color-primary)]",
|
|
2009
|
-
value:
|
|
2009
|
+
value: a,
|
|
2010
2010
|
onChange: c,
|
|
2011
2011
|
disabled: r,
|
|
2012
2012
|
inputMode: "decimal",
|
|
@@ -2042,7 +2042,7 @@ const BUTTONS = [
|
|
|
2042
2042
|
);
|
|
2043
2043
|
Calculator.displayName = "Calculator";
|
|
2044
2044
|
const cardVariants = cva(
|
|
2045
|
-
"flex justify-between transition-colors duration-200
|
|
2045
|
+
"flex justify-between transition-colors duration-200 w-full",
|
|
2046
2046
|
{
|
|
2047
2047
|
variants: {
|
|
2048
2048
|
size: {
|
|
@@ -2060,12 +2060,17 @@ const cardVariants = cva(
|
|
|
2060
2060
|
bordered: {
|
|
2061
2061
|
true: "border border-border",
|
|
2062
2062
|
false: ""
|
|
2063
|
+
},
|
|
2064
|
+
as: {
|
|
2065
|
+
button: "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-light hover:bg-gray-50 cursor-pointer",
|
|
2066
|
+
div: ""
|
|
2063
2067
|
}
|
|
2064
2068
|
},
|
|
2065
2069
|
defaultVariants: {
|
|
2066
2070
|
size: "md",
|
|
2067
2071
|
shape: "rounded",
|
|
2068
|
-
bordered: !1
|
|
2072
|
+
bordered: !1,
|
|
2073
|
+
as: "button"
|
|
2069
2074
|
}
|
|
2070
2075
|
}
|
|
2071
2076
|
), CardList = forwardRef(
|
|
@@ -2094,39 +2099,38 @@ const cardVariants = cva(
|
|
|
2094
2099
|
title: i,
|
|
2095
2100
|
subtitle: s,
|
|
2096
2101
|
badge: o,
|
|
2097
|
-
actions: l,
|
|
2098
2102
|
supplementaryInfo: a,
|
|
2099
|
-
bordered:
|
|
2100
|
-
as:
|
|
2101
|
-
className:
|
|
2102
|
-
...
|
|
2103
|
-
},
|
|
2104
|
-
|
|
2103
|
+
bordered: l = !1,
|
|
2104
|
+
as: u = "button",
|
|
2105
|
+
className: c,
|
|
2106
|
+
...f
|
|
2107
|
+
}, n) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2108
|
+
u,
|
|
2105
2109
|
{
|
|
2106
|
-
ref:
|
|
2107
|
-
className: cn(
|
|
2108
|
-
|
|
2110
|
+
ref: n,
|
|
2111
|
+
className: cn(
|
|
2112
|
+
cardVariants({ size: e, shape: t, bordered: l, as: u }),
|
|
2113
|
+
c
|
|
2114
|
+
),
|
|
2115
|
+
...f,
|
|
2109
2116
|
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-start gap-3 sm:gap-4 w-full", children: [
|
|
2110
2117
|
r && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-shrink-0", children: r }),
|
|
2111
2118
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "w-full min-w-0", children: [
|
|
2112
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "mb-2", children: /* @__PURE__ */ jsxRuntimeExports.
|
|
2113
|
-
/* @__PURE__ */ jsxRuntimeExports.
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
] }),
|
|
2126
|
-
l && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-shrink-0 ml-2 -mt-1", children: l })
|
|
2127
|
-
] }) }),
|
|
2119
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "mb-2", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-start justify-between gap-2", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
2120
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2121
|
+
Text,
|
|
2122
|
+
{
|
|
2123
|
+
as: "h3",
|
|
2124
|
+
fontSize: "base",
|
|
2125
|
+
fontWeight: "semibold",
|
|
2126
|
+
className: "break-words leading-tight",
|
|
2127
|
+
children: i
|
|
2128
|
+
}
|
|
2129
|
+
),
|
|
2130
|
+
s && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "mt-1", children: typeof s == "string" ? /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { as: "p", fontSize: "sm", color: "gray", children: s }) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "min-w-0 overflow-hidden", children: s }) })
|
|
2131
|
+
] }) }) }),
|
|
2128
2132
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-2 sm:flex-row sm:justify-between sm:items-center", children: [
|
|
2129
|
-
o && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "
|
|
2133
|
+
o && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "order-1 sm:order-none overflow-hidden", children: o }),
|
|
2130
2134
|
a && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-shrink-0 order-2 sm:order-none sm:ml-auto", children: typeof a == "string" ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2131
2135
|
Text,
|
|
2132
2136
|
{
|
|
@@ -2134,6 +2138,7 @@ const cardVariants = cva(
|
|
|
2134
2138
|
fontSize: "sm",
|
|
2135
2139
|
color: "gray",
|
|
2136
2140
|
className: "truncate",
|
|
2141
|
+
align: "right",
|
|
2137
2142
|
children: a
|
|
2138
2143
|
}
|
|
2139
2144
|
) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "overflow-hidden", children: a }) })
|
|
@@ -2190,19 +2195,19 @@ const cardVariants = cva(
|
|
|
2190
2195
|
size: i = "md",
|
|
2191
2196
|
disabled: s = !1,
|
|
2192
2197
|
children: o,
|
|
2193
|
-
...
|
|
2194
|
-
},
|
|
2198
|
+
...a
|
|
2199
|
+
}, l) {
|
|
2195
2200
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
2196
2201
|
"button",
|
|
2197
2202
|
{
|
|
2198
|
-
ref:
|
|
2203
|
+
ref: l,
|
|
2199
2204
|
type: "button",
|
|
2200
2205
|
className: cn(filterChipVariants({ variant: r, size: i }), t),
|
|
2201
2206
|
disabled: s,
|
|
2202
2207
|
"aria-disabled": s,
|
|
2203
2208
|
"aria-label": `${o}, removable`,
|
|
2204
2209
|
inert: s ? !0 : void 0,
|
|
2205
|
-
...
|
|
2210
|
+
...a,
|
|
2206
2211
|
children: [
|
|
2207
2212
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "flex-shrink-0", children: o }),
|
|
2208
2213
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { as: XIcon, color: "inherit", size: i === "lg" ? "md" : "sm" })
|
|
@@ -2251,15 +2256,15 @@ const cardVariants = cva(
|
|
|
2251
2256
|
), noResultsHeaderVariants = cva(
|
|
2252
2257
|
"flex flex-row items-center gap-3 mb-2"
|
|
2253
2258
|
), NoResults = React__default.forwardRef(
|
|
2254
|
-
function e({ icon: t, title: r, subtitle: i, action: s, className: o, hasGrayBackground:
|
|
2259
|
+
function e({ icon: t, title: r, subtitle: i, action: s, className: o, hasGrayBackground: a, ...l }, u) {
|
|
2255
2260
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
2256
2261
|
"section",
|
|
2257
2262
|
{
|
|
2258
2263
|
ref: u,
|
|
2259
|
-
className: cn(noResultsVariants({ hasGrayBackground:
|
|
2264
|
+
className: cn(noResultsVariants({ hasGrayBackground: a }), o),
|
|
2260
2265
|
role: "status",
|
|
2261
2266
|
"aria-label": "No results found",
|
|
2262
|
-
...
|
|
2267
|
+
...l,
|
|
2263
2268
|
children: [
|
|
2264
2269
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("header", { className: noResultsHeaderVariants(), children: [
|
|
2265
2270
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { as: t, size: "lg", color: "ghost", "aria-hidden": "true" }),
|
|
@@ -2404,14 +2409,14 @@ const getTableColumnClass = (e) => {
|
|
|
2404
2409
|
);
|
|
2405
2410
|
}
|
|
2406
2411
|
), TableColumn = forwardRef(
|
|
2407
|
-
({ as: e = "td", span: t, align: r = "left", children: i, className: s, ...o },
|
|
2408
|
-
const
|
|
2412
|
+
({ as: e = "td", span: t, align: r = "left", children: i, className: s, ...o }, a) => {
|
|
2413
|
+
const l = e === "th" ? "columnheader" : "cell";
|
|
2409
2414
|
let u = "text-left";
|
|
2410
2415
|
return r === "center" ? u = "text-center" : r === "right" && (u = "text-right"), /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2411
2416
|
"div",
|
|
2412
2417
|
{
|
|
2413
|
-
ref:
|
|
2414
|
-
role:
|
|
2418
|
+
ref: a,
|
|
2419
|
+
role: l,
|
|
2415
2420
|
className: cn(
|
|
2416
2421
|
"px-4 py-2",
|
|
2417
2422
|
"[&:not(:last-child)]:border-r [&:not(:last-child)]:border-border",
|
|
@@ -2522,9 +2527,9 @@ const getTableColumnClass = (e) => {
|
|
|
2522
2527
|
)
|
|
2523
2528
|
);
|
|
2524
2529
|
function useImage({ src: e }) {
|
|
2525
|
-
const [t, r] = useState(!1), [i, s] = useState(!1), o = useRef(!1),
|
|
2530
|
+
const [t, r] = useState(!1), [i, s] = useState(!1), o = useRef(!1), a = () => {
|
|
2526
2531
|
r(!0);
|
|
2527
|
-
},
|
|
2532
|
+
}, l = () => {
|
|
2528
2533
|
s(!0);
|
|
2529
2534
|
};
|
|
2530
2535
|
return useEffect(() => {
|
|
@@ -2540,8 +2545,8 @@ function useImage({ src: e }) {
|
|
|
2540
2545
|
}, [e]), {
|
|
2541
2546
|
loaded: t,
|
|
2542
2547
|
errored: i,
|
|
2543
|
-
handleLoad:
|
|
2544
|
-
handleError:
|
|
2548
|
+
handleLoad: a,
|
|
2549
|
+
handleError: l
|
|
2545
2550
|
};
|
|
2546
2551
|
}
|
|
2547
2552
|
const imageVariants = cva("block object-cover", {
|
|
@@ -2619,12 +2624,12 @@ function BaseImageFallback({
|
|
|
2619
2624
|
className: i,
|
|
2620
2625
|
style: s,
|
|
2621
2626
|
shape: o,
|
|
2622
|
-
size:
|
|
2627
|
+
size: a
|
|
2623
2628
|
}) {
|
|
2624
2629
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
2625
2630
|
"div",
|
|
2626
2631
|
{
|
|
2627
|
-
className: imageAtomVariants({ shape: o, size:
|
|
2632
|
+
className: imageAtomVariants({ shape: o, size: a, className: i }),
|
|
2628
2633
|
style: { width: t, height: r, ...s },
|
|
2629
2634
|
"aria-label": e,
|
|
2630
2635
|
role: "img",
|
|
@@ -2650,8 +2655,8 @@ const BaseImage = forwardRef(
|
|
|
2650
2655
|
onError: i,
|
|
2651
2656
|
width: s,
|
|
2652
2657
|
height: o,
|
|
2653
|
-
loading:
|
|
2654
|
-
position:
|
|
2658
|
+
loading: a = "lazy",
|
|
2659
|
+
position: l = "cover",
|
|
2655
2660
|
size: u = "auto",
|
|
2656
2661
|
shape: c,
|
|
2657
2662
|
className: f,
|
|
@@ -2683,10 +2688,10 @@ const BaseImage = forwardRef(
|
|
|
2683
2688
|
alt: t,
|
|
2684
2689
|
width: R,
|
|
2685
2690
|
height: E,
|
|
2686
|
-
loading:
|
|
2691
|
+
loading: a,
|
|
2687
2692
|
className: cn(
|
|
2688
2693
|
imageVariants({
|
|
2689
|
-
position:
|
|
2694
|
+
position: l,
|
|
2690
2695
|
size: u,
|
|
2691
2696
|
shape: c
|
|
2692
2697
|
}),
|
package/dist/js/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { L as t, P as s, S as r } from "./skeleton-BNZyaRjo.js";
|
|
2
|
-
import { A as n, a as u, B as p, b as i, F as l, f as I, P as c, c as S, d as m, e as B, S as g, T as d } from "./top-bar-
|
|
3
|
-
import { B as T, C as x, b as f, a as h, D as P, k as C, E as M, M as A, P as k, R as F, d as L, c as D, S as H, e as R, j as w, i as G, h as j, f as q, T as v, g as y } from "./bottom-sheet-input-
|
|
4
|
-
import { B as N, D as z, M as J } from "./bottom-sheet-
|
|
5
|
-
import { A as O, a as Q, b as U, c as V, d as W, e as X, B as Y, s as Z, f as _, g as $, j as aa, k as ea, h as ta, i as sa, C as ra, l as oa, F as na, H as ua, m as pa, I as ia, p as la, r as Ia, q as ca, M as Sa, N as ma, T as Ba, n as ga, o as da } from "./image-rectangle-
|
|
6
|
-
import { T as Ta } from "./tooltip-
|
|
2
|
+
import { A as n, a as u, B as p, b as i, F as l, f as I, P as c, c as S, d as m, e as B, S as g, T as d } from "./top-bar-BKeQ6yXv.js";
|
|
3
|
+
import { B as T, C as x, b as f, a as h, D as P, k as C, E as M, M as A, P as k, R as F, d as L, c as D, S as H, e as R, j as w, i as G, h as j, f as q, T as v, g as y } from "./bottom-sheet-input-IzuwB7Zy.js";
|
|
4
|
+
import { B as N, D as z, M as J } from "./bottom-sheet-DHMq1-Di.js";
|
|
5
|
+
import { A as O, a as Q, b as U, c as V, d as W, e as X, B as Y, s as Z, f as _, g as $, j as aa, k as ea, h as ta, i as sa, C as ra, l as oa, F as na, H as ua, m as pa, I as ia, p as la, r as Ia, q as ca, M as Sa, N as ma, T as Ba, n as ga, o as da } from "./image-rectangle-DPZAgdEa.js";
|
|
6
|
+
import { T as Ta } from "./tooltip-D_laXWIT.js";
|
|
7
7
|
import { S as fa } from "./snackbar-DH8jCh2V.js";
|
|
8
|
-
import { B as Pa, T as Ca } from "./tabs-
|
|
8
|
+
import { B as Pa, T as Ca } from "./tabs-BRMO0ktc.js";
|
|
9
9
|
import { S as Aa, u as ka } from "./use-snackbars-Cou8L41F.js";
|
|
10
10
|
export {
|
|
11
11
|
O as Accordion,
|
package/dist/js/layouts/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, a as r, B as s, b as t, F as p, f as B, P as u, c as d, d as g, e as P, S as i, T as m } from "../top-bar-
|
|
1
|
+
import { A as e, a as r, B as s, b as t, F as p, f as B, P as u, c as d, d as g, e as P, S as i, T as m } from "../top-bar-BKeQ6yXv.js";
|
|
2
2
|
export {
|
|
3
3
|
e as AppBar,
|
|
4
4
|
r as BadgeGroup,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { B as a, D as e, M as t } from "../bottom-sheet-
|
|
2
|
-
import { M as m } from "../image-rectangle-
|
|
3
|
-
import { T as M } from "../tooltip-
|
|
1
|
+
import { B as a, D as e, M as t } from "../bottom-sheet-DHMq1-Di.js";
|
|
2
|
+
import { M as m } from "../image-rectangle-DPZAgdEa.js";
|
|
3
|
+
import { T as M } from "../tooltip-D_laXWIT.js";
|
|
4
4
|
export {
|
|
5
5
|
a as BottomSheet,
|
|
6
6
|
e as Drawer,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as t, a as e, b as o, c as r, d as n, e as u, B as c, s as l, f as i, g as B, j as g, k as I, h as m, i as A, C as d, l as b, F as C, H as p, m as T, I as f, p as h, r as x, q as F, N as H, T as S, n as k, o as q } from "../image-rectangle-
|
|
1
|
+
import { A as t, a as e, b as o, c as r, d as n, e as u, B as c, s as l, f as i, g as B, j as g, k as I, h as m, i as A, C as d, l as b, F as C, H as p, m as T, I as f, p as h, r as x, q as F, N as H, T as S, n as k, o as q } from "../image-rectangle-DPZAgdEa.js";
|
|
2
2
|
import { S as N } from "../snackbar-DH8jCh2V.js";
|
|
3
3
|
export {
|
|
4
4
|
t as Accordion,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as d, j as s, a as u } from "./index-DOdDlCoL.js";
|
|
2
2
|
import { forwardRef as f, createContext as x, useContext as g, useState as p, useLayoutEffect as y, useRef as h } from "react";
|
|
3
|
-
import { I as w } from "./image-rectangle-
|
|
3
|
+
import { I as w } from "./image-rectangle-DPZAgdEa.js";
|
|
4
4
|
import "./snackbar-DH8jCh2V.js";
|
|
5
5
|
import { ChevronRight as T } from "lucide-react";
|
|
6
6
|
const j = d(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as v, j as c, a as w } from "./index-DOdDlCoL.js";
|
|
2
2
|
import { useRef as m, useState as d, useEffect as h, useId as T, cloneElement as j } from "react";
|
|
3
|
-
import { n as y } from "./image-rectangle-
|
|
3
|
+
import { n as y } from "./image-rectangle-DPZAgdEa.js";
|
|
4
4
|
function P(e = "auto") {
|
|
5
5
|
const n = m(null), [a, t] = d("bottom");
|
|
6
6
|
return h(() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as i, j as s, a as l } from "./index-DOdDlCoL.js";
|
|
2
2
|
import * as v from "react";
|
|
3
3
|
import { forwardRef as o } from "react";
|
|
4
|
-
import { n as f } from "./image-rectangle-
|
|
4
|
+
import { n as f } from "./image-rectangle-DPZAgdEa.js";
|
|
5
5
|
import "./snackbar-DH8jCh2V.js";
|
|
6
6
|
import { L as h } from "./skeleton-BNZyaRjo.js";
|
|
7
7
|
const j = i(
|
|
@@ -196,7 +196,7 @@ const j = i(
|
|
|
196
196
|
}
|
|
197
197
|
), Ha = Object.assign(A, {
|
|
198
198
|
Item: P
|
|
199
|
-
}), C = i("flex", {
|
|
199
|
+
}), C = i("flex flex-wrap items-center", {
|
|
200
200
|
variants: {
|
|
201
201
|
orientation: {
|
|
202
202
|
horizontal: "flex-row",
|
|
@@ -259,7 +259,7 @@ const j = i(
|
|
|
259
259
|
}
|
|
260
260
|
);
|
|
261
261
|
}
|
|
262
|
-
), R = i("flex", {
|
|
262
|
+
), R = i("flex flex-wrap items-center", {
|
|
263
263
|
variants: {
|
|
264
264
|
orientation: {
|
|
265
265
|
horizontal: "flex-row",
|
|
@@ -395,7 +395,7 @@ const j = i(
|
|
|
395
395
|
children: t
|
|
396
396
|
}
|
|
397
397
|
)
|
|
398
|
-
), k = i("w-full
|
|
398
|
+
), k = i("w-full pt-4 md:pt-10"), F = i(
|
|
399
399
|
"flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4 px-4 sm:px-6 mb-4"
|
|
400
400
|
), O = i("mb-4 px-4 sm:px-6"), W = i(
|
|
401
401
|
"flex-1 min-w-0 flex flex-col gap-2 w-full sm:w-auto"
|
|
@@ -502,7 +502,7 @@ const j = i(
|
|
|
502
502
|
tabs: u,
|
|
503
503
|
...m
|
|
504
504
|
}, x) => {
|
|
505
|
-
const
|
|
505
|
+
const g = u;
|
|
506
506
|
return /* @__PURE__ */ s.jsxs(
|
|
507
507
|
"header",
|
|
508
508
|
{
|
|
@@ -523,7 +523,7 @@ const j = i(
|
|
|
523
523
|
] }),
|
|
524
524
|
p && /* @__PURE__ */ s.jsx(Y, { children: p })
|
|
525
525
|
] }),
|
|
526
|
-
|
|
526
|
+
g && /* @__PURE__ */ s.jsx(_, { children: u }),
|
|
527
527
|
t
|
|
528
528
|
]
|
|
529
529
|
}
|
|
@@ -577,10 +577,15 @@ const j = i(
|
|
|
577
577
|
"min-h-32",
|
|
578
578
|
"py-8"
|
|
579
579
|
]
|
|
580
|
+
},
|
|
581
|
+
fullscreen: {
|
|
582
|
+
true: ["fixed", "inset-0", "z-100", "bg-background"],
|
|
583
|
+
false: []
|
|
580
584
|
}
|
|
581
585
|
},
|
|
582
586
|
defaultVariants: {
|
|
583
|
-
minimal: !1
|
|
587
|
+
minimal: !1,
|
|
588
|
+
fullscreen: !1
|
|
584
589
|
}
|
|
585
590
|
}
|
|
586
591
|
), sa = i([
|
|
@@ -595,17 +600,18 @@ const j = i(
|
|
|
595
600
|
color: r = "primary",
|
|
596
601
|
ariaLabel: n = "Loading page",
|
|
597
602
|
message: c,
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
+
fullscreen: p = !1,
|
|
604
|
+
minimal: d = !1,
|
|
605
|
+
className: u,
|
|
606
|
+
children: m,
|
|
607
|
+
...x
|
|
608
|
+
}, g) {
|
|
603
609
|
return /* @__PURE__ */ s.jsxs(
|
|
604
610
|
"div",
|
|
605
611
|
{
|
|
606
|
-
ref:
|
|
607
|
-
className: l(ta({ minimal: p }),
|
|
608
|
-
...
|
|
612
|
+
ref: g,
|
|
613
|
+
className: l(ta({ minimal: d, fullscreen: p }), u),
|
|
614
|
+
...x,
|
|
609
615
|
children: [
|
|
610
616
|
/* @__PURE__ */ s.jsx("div", { className: "max-w-xs w-full flex justify-center", children: /* @__PURE__ */ s.jsx(
|
|
611
617
|
h,
|
|
@@ -617,7 +623,7 @@ const j = i(
|
|
|
617
623
|
}
|
|
618
624
|
) }),
|
|
619
625
|
c && /* @__PURE__ */ s.jsx("p", { className: sa(), "aria-live": "polite", children: c }),
|
|
620
|
-
|
|
626
|
+
m
|
|
621
627
|
]
|
|
622
628
|
}
|
|
623
629
|
);
|
|
@@ -672,7 +678,7 @@ const j = i(
|
|
|
672
678
|
}
|
|
673
679
|
), ka = Object.assign(oa, {
|
|
674
680
|
Column: ia
|
|
675
|
-
}),
|
|
681
|
+
}), b = i(
|
|
676
682
|
"flex items-center gap-2 px-4 py-2 rounded-md hover:text-primary focus:outline-none transition-colors",
|
|
677
683
|
{
|
|
678
684
|
variants: {
|
|
@@ -700,7 +706,7 @@ const j = i(
|
|
|
700
706
|
{
|
|
701
707
|
ref: a,
|
|
702
708
|
href: n,
|
|
703
|
-
className:
|
|
709
|
+
className: b({
|
|
704
710
|
disabled: !!t["aria-disabled"],
|
|
705
711
|
active: p
|
|
706
712
|
}),
|
|
@@ -720,7 +726,7 @@ const j = i(
|
|
|
720
726
|
type: "button",
|
|
721
727
|
onClick: c,
|
|
722
728
|
className: l(
|
|
723
|
-
|
|
729
|
+
b({ disabled: !!m.disabled, active: p }),
|
|
724
730
|
"w-full text-left"
|
|
725
731
|
),
|
|
726
732
|
...m,
|
|
@@ -764,7 +770,7 @@ const j = i(
|
|
|
764
770
|
Item: la,
|
|
765
771
|
Group: ca
|
|
766
772
|
}), da = i(
|
|
767
|
-
"w-full flex items-center px-6 py-4
|
|
773
|
+
"w-full flex items-center px-6 py-4 border-b border-border shadow-xs bg-white",
|
|
768
774
|
{
|
|
769
775
|
variants: {},
|
|
770
776
|
defaultVariants: {}
|
|
@@ -782,11 +788,11 @@ const j = i(
|
|
|
782
788
|
active: !1
|
|
783
789
|
}
|
|
784
790
|
}
|
|
785
|
-
), xa = i("flex items-center gap-2 ml-4"), ga = i("flex items-center gap-2 mr-4"),
|
|
791
|
+
), xa = i("flex items-center gap-2 ml-4"), ga = i("flex items-center gap-2 mr-4"), ba = o(
|
|
786
792
|
function({ children: a, className: e, ...r }, n) {
|
|
787
793
|
return /* @__PURE__ */ s.jsx("nav", { ref: n, className: xa({ className: e }), ...r, children: a });
|
|
788
794
|
}
|
|
789
|
-
),
|
|
795
|
+
), va = o(
|
|
790
796
|
function({ children: a, className: e, ...r }, n) {
|
|
791
797
|
return /* @__PURE__ */ s.jsx("div", { ref: n, className: ga({ className: e }), ...r, children: a });
|
|
792
798
|
}
|
|
@@ -817,8 +823,8 @@ const j = i(
|
|
|
817
823
|
Leading: ha,
|
|
818
824
|
Trailing: ja,
|
|
819
825
|
NavItem: ya,
|
|
820
|
-
Nav:
|
|
821
|
-
Actions:
|
|
826
|
+
Nav: ba,
|
|
827
|
+
Actions: va
|
|
822
828
|
});
|
|
823
829
|
export {
|
|
824
830
|
La as A,
|
|
@@ -31,10 +31,6 @@ export interface CardProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>,
|
|
|
31
31
|
* Badge element to display in the header area
|
|
32
32
|
*/
|
|
33
33
|
badge?: ReactNode;
|
|
34
|
-
/**
|
|
35
|
-
* Action elements to display in the right top area
|
|
36
|
-
*/
|
|
37
|
-
actions?: ReactNode;
|
|
38
34
|
/**
|
|
39
35
|
* Supplementary information to display on the bottom-right side
|
|
40
36
|
* Usually used for amounts, status, or additional info
|