@dimasbaguspm/versaur 0.0.39 → 0.0.40
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/assets/styles.css +18 -0
- package/dist/js/{bottom-sheet-B9Knzg2N.js → bottom-sheet-BjNMFNXp.js} +1 -1
- package/dist/js/{bottom-sheet-input-Ch9h_vZC.js → bottom-sheet-input-BnuL4Cci.js} +2 -2
- package/dist/js/forms/index.js +1 -1
- package/dist/js/{image-rectangle-C1ydvFGL.js → image-rectangle-DGO9R_ox.js} +71 -32
- 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-38zAflsT.js → tabs-lPDgArjA.js} +1 -1
- package/dist/js/{tooltip-CvOzRRkS.js → tooltip-uCpYAX_O.js} +1 -1
- package/dist/js/{top-bar-CKFu3xrL.js → top-bar-D8P4uwtN.js} +1 -1
- package/dist/types/primitive/avatar/types.d.ts +1 -1
- package/dist/types/primitive/badge/types.d.ts +1 -1
- package/dist/types/primitive/button/types.d.ts +1 -1
- package/dist/types/primitive/card/card.d.ts +1 -1
- package/dist/types/primitive/card/types.d.ts +5 -0
- package/package.json +1 -1
package/dist/assets/styles.css
CHANGED
|
@@ -87,6 +87,24 @@
|
|
|
87
87
|
--color-cream-bold: #e2d9b8;
|
|
88
88
|
--color-cream-soft: #f9f7f3;
|
|
89
89
|
|
|
90
|
+
/* Accent 1 (Lavender) */
|
|
91
|
+
--color-accent-1: #b69ad1;
|
|
92
|
+
--color-accent-1-light: #e8dcf5;
|
|
93
|
+
--color-accent-1-bold: #8a6ba8;
|
|
94
|
+
--color-accent-1-soft: #f7f3ff;
|
|
95
|
+
|
|
96
|
+
/* Accent 2 (Amber) */
|
|
97
|
+
--color-accent-2: #d4a942;
|
|
98
|
+
--color-accent-2-light: #ffeaa3;
|
|
99
|
+
--color-accent-2-bold: #a6822a;
|
|
100
|
+
--color-accent-2-soft: #fffbef;
|
|
101
|
+
|
|
102
|
+
/* Accent 3 (Rose) */
|
|
103
|
+
--color-accent-3: #d1869b;
|
|
104
|
+
--color-accent-3-light: #f5d4df;
|
|
105
|
+
--color-accent-3-bold: #a8647a;
|
|
106
|
+
--color-accent-3-soft: #fff6f8;
|
|
107
|
+
|
|
90
108
|
/* Border and Accent */
|
|
91
109
|
--color-border: #e0e0e0;
|
|
92
110
|
--color-accent: #84a5c0;
|
|
@@ -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-DGO9R_ox.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-DGO9R_ox.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-BjNMFNXp.js";
|
|
7
7
|
const te = v("space-y-2", {
|
|
8
8
|
variants: {
|
|
9
9
|
direction: {
|
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-BnuL4Cci.js";
|
|
2
2
|
export {
|
|
3
3
|
a as BottomSheetInput,
|
|
4
4
|
n as CheckboxInput,
|
|
@@ -792,6 +792,10 @@ const AttributeListItem = forwardRef(function({ children: t, className: r, span:
|
|
|
792
792
|
tertiary: "bg-tertiary-light text-tertiary",
|
|
793
793
|
ghost: "bg-ghost-light text-ghost",
|
|
794
794
|
neutral: "bg-neutral-light text-foreground border border-border",
|
|
795
|
+
// Accent variants
|
|
796
|
+
accent_1: "bg-accent-1-light text-accent-1",
|
|
797
|
+
accent_2: "bg-accent-2-light text-accent-2",
|
|
798
|
+
accent_3: "bg-accent-3-light text-accent-3",
|
|
795
799
|
// Semantic variants
|
|
796
800
|
success: "bg-success-light text-success",
|
|
797
801
|
info: "bg-info-light text-info",
|
|
@@ -880,6 +884,10 @@ const AttributeListItem = forwardRef(function({ children: t, className: r, span:
|
|
|
880
884
|
tertiary: "",
|
|
881
885
|
ghost: "",
|
|
882
886
|
neutral: "",
|
|
887
|
+
// Accent colors
|
|
888
|
+
accent_1: "",
|
|
889
|
+
accent_2: "",
|
|
890
|
+
accent_3: "",
|
|
883
891
|
// Semantic colors
|
|
884
892
|
success: "",
|
|
885
893
|
info: "",
|
|
@@ -905,17 +913,17 @@ const AttributeListItem = forwardRef(function({ children: t, className: r, span:
|
|
|
905
913
|
{
|
|
906
914
|
variant: "default",
|
|
907
915
|
color: "primary",
|
|
908
|
-
className: "bg-primary-light
|
|
916
|
+
className: "bg-primary-light text-primary-bold"
|
|
909
917
|
},
|
|
910
918
|
{
|
|
911
919
|
variant: "default",
|
|
912
920
|
color: "secondary",
|
|
913
|
-
className: "bg-secondary-light
|
|
921
|
+
className: "bg-secondary-light text-secondary-bold"
|
|
914
922
|
},
|
|
915
923
|
{
|
|
916
924
|
variant: "default",
|
|
917
925
|
color: "tertiary",
|
|
918
|
-
className: "bg-tertiary-light
|
|
926
|
+
className: "bg-tertiary-light text-tertiary-bold"
|
|
919
927
|
},
|
|
920
928
|
{
|
|
921
929
|
variant: "default",
|
|
@@ -930,22 +938,37 @@ const AttributeListItem = forwardRef(function({ children: t, className: r, span:
|
|
|
930
938
|
{
|
|
931
939
|
variant: "default",
|
|
932
940
|
color: "success",
|
|
933
|
-
className: "bg-success-light/
|
|
941
|
+
className: "bg-success-light/50 text-success-bold"
|
|
934
942
|
},
|
|
935
943
|
{
|
|
936
944
|
variant: "default",
|
|
937
945
|
color: "info",
|
|
938
|
-
className: "bg-info-light/50 text-info"
|
|
946
|
+
className: "bg-info-light/50 text-info-bold"
|
|
939
947
|
},
|
|
940
948
|
{
|
|
941
949
|
variant: "default",
|
|
942
950
|
color: "warning",
|
|
943
|
-
className: "bg-warning-light/50 text-warning"
|
|
951
|
+
className: "bg-warning-light/50 text-warning-bold"
|
|
944
952
|
},
|
|
945
953
|
{
|
|
946
954
|
variant: "default",
|
|
947
955
|
color: "danger",
|
|
948
|
-
className: "bg-danger-light/40 text-danger"
|
|
956
|
+
className: "bg-danger-light/40 text-danger-bold"
|
|
957
|
+
},
|
|
958
|
+
{
|
|
959
|
+
variant: "default",
|
|
960
|
+
color: "accent_1",
|
|
961
|
+
className: "bg-accent-1-light text-accent-1-bold"
|
|
962
|
+
},
|
|
963
|
+
{
|
|
964
|
+
variant: "default",
|
|
965
|
+
color: "accent_2",
|
|
966
|
+
className: "bg-accent-2-light text-accent-2-bold"
|
|
967
|
+
},
|
|
968
|
+
{
|
|
969
|
+
variant: "default",
|
|
970
|
+
color: "accent_3",
|
|
971
|
+
className: "bg-accent-3-light text-accent-3-bold"
|
|
949
972
|
},
|
|
950
973
|
// Outline variant color combinations
|
|
951
974
|
{
|
|
@@ -993,6 +1016,21 @@ const AttributeListItem = forwardRef(function({ children: t, className: r, span:
|
|
|
993
1016
|
color: "danger",
|
|
994
1017
|
className: "border-danger text-danger"
|
|
995
1018
|
},
|
|
1019
|
+
{
|
|
1020
|
+
variant: "outline",
|
|
1021
|
+
color: "accent_1",
|
|
1022
|
+
className: "border-accent-1 text-accent-1"
|
|
1023
|
+
},
|
|
1024
|
+
{
|
|
1025
|
+
variant: "outline",
|
|
1026
|
+
color: "accent_2",
|
|
1027
|
+
className: "border-accent-2 text-accent-2"
|
|
1028
|
+
},
|
|
1029
|
+
{
|
|
1030
|
+
variant: "outline",
|
|
1031
|
+
color: "accent_3",
|
|
1032
|
+
className: "border-accent-3 text-accent-3"
|
|
1033
|
+
},
|
|
996
1034
|
// Icon-only size adjustments
|
|
997
1035
|
{
|
|
998
1036
|
iconOnly: !0,
|
|
@@ -1108,12 +1146,18 @@ const AttributeListItem = forwardRef(function({ children: t, className: r, span:
|
|
|
1108
1146
|
primary: "bg-primary text-white hover:bg-primary/90 focus-visible:ring-primary-light focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
1109
1147
|
secondary: "bg-secondary text-white hover:bg-secondary/90 focus-visible:ring-secondary-light focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
1110
1148
|
tertiary: "bg-tertiary text-white hover:bg-tertiary/90 focus-visible:ring-tertiary-light focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
1149
|
+
accent_1: "bg-accent-1 text-white hover:bg-accent-1/90 focus-visible:ring-accent-1-light focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
1150
|
+
accent_2: "bg-accent-2 text-white hover:bg-accent-2/90 focus-visible:ring-accent-2-light focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
1151
|
+
accent_3: "bg-accent-3 text-white hover:bg-accent-3/90 focus-visible:ring-accent-3-light focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
1111
1152
|
ghost: "bg-white text-foreground hover:bg-ghost-soft focus-visible:ring-ghost-light focus-visible:ring-offset-white",
|
|
1112
1153
|
neutral: "bg-neutral text-foreground border border-border hover:bg-neutral/80 focus-visible:ring-foreground-light focus-visible:ring-offset-white shadow-sm",
|
|
1113
1154
|
// Outline variants
|
|
1114
1155
|
"primary-outline": "border border-primary text-primary bg-white hover:bg-primary hover:text-white focus-visible:ring-primary-light focus-visible:ring-offset-white transition-all",
|
|
1115
1156
|
"secondary-outline": "border border-secondary text-secondary bg-white hover:bg-secondary hover:text-white focus-visible:ring-secondary-light focus-visible:ring-offset-white transition-all",
|
|
1116
1157
|
"tertiary-outline": "border border-tertiary text-tertiary bg-white hover:bg-tertiary hover:text-white focus-visible:ring-tertiary-light focus-visible:ring-offset-white transition-all",
|
|
1158
|
+
"accent_1-outline": "border border-accent-1 text-accent-1 bg-white hover:bg-accent-1 hover:text-white focus-visible:ring-accent-1-light focus-visible:ring-offset-white transition-all",
|
|
1159
|
+
"accent_2-outline": "border border-accent-2 text-accent-2 bg-white hover:bg-accent-2 hover:text-white focus-visible:ring-accent-2-light focus-visible:ring-offset-white transition-all",
|
|
1160
|
+
"accent_3-outline": "border border-accent-3 text-accent-3 bg-white hover:bg-accent-3 hover:text-white focus-visible:ring-accent-3-light focus-visible:ring-offset-white transition-all",
|
|
1117
1161
|
"ghost-outline": "border border-ghost text-ghost bg-white hover:bg-ghost hover:text-white focus-visible:ring-ghost-light focus-visible:ring-offset-white transition-all",
|
|
1118
1162
|
"neutral-outline": "border border-border text-foreground bg-white hover:bg-neutral hover:text-foreground focus-visible:ring-foreground-light focus-visible:ring-offset-white transition-all",
|
|
1119
1163
|
// Ghost variants (subtle)
|
|
@@ -1121,6 +1165,9 @@ const AttributeListItem = forwardRef(function({ children: t, className: r, span:
|
|
|
1121
1165
|
"secondary-ghost": "text-secondary bg-white hover:bg-secondary/20 focus-visible:ring-secondary focus-visible:ring-offset-white",
|
|
1122
1166
|
"tertiary-ghost": "text-tertiary bg-white hover:bg-tertiary/20 focus-visible:ring-tertiary focus-visible:ring-offset-white",
|
|
1123
1167
|
"neutral-ghost": "text-foreground bg-white hover:bg-neutral/50 focus-visible:ring-foreground focus-visible:ring-offset-white",
|
|
1168
|
+
"accent_1-ghost": "text-accent-1 bg-white hover:bg-accent-1/20 focus-visible:ring-accent-1 focus-visible:ring-offset-white",
|
|
1169
|
+
"accent_2-ghost": "text-accent-2 bg-white hover:bg-accent-2/20 focus-visible:ring-accent-2 focus-visible:ring-offset-white",
|
|
1170
|
+
"accent_3-ghost": "text-accent-3 bg-white hover:bg-accent-3/20 focus-visible:ring-accent-3 focus-visible:ring-offset-white",
|
|
1124
1171
|
// Semantic variants
|
|
1125
1172
|
success: "bg-success text-white hover:bg-success/90 focus-visible:ring-success-light focus-visible:ring-offset-white shadow-sm hover:shadow-md",
|
|
1126
1173
|
"success-outline": "border border-success text-success bg-white hover:bg-success hover:text-white focus-visible:ring-success-light focus-visible:ring-offset-white transition-all",
|
|
@@ -1254,7 +1301,7 @@ function useMenuPosition(e, t, r, i = "bottom-start", s) {
|
|
|
1254
1301
|
c.style.visibility = "hidden", c.style.position = "absolute", c.style.opacity = "0";
|
|
1255
1302
|
const x = c.getBoundingClientRect();
|
|
1256
1303
|
c.style.visibility = R, c.style.position = E, c.style.opacity = C;
|
|
1257
|
-
const N = w.bottom - n.bottom - 8, I = n.top - w.top - 8, V = w.right - n.left - 8,
|
|
1304
|
+
const N = w.bottom - n.bottom - 8, I = n.top - w.top - 8, V = w.right - n.left - 8, k = n.right - w.left - 8;
|
|
1258
1305
|
let p = i;
|
|
1259
1306
|
if (i === "auto") {
|
|
1260
1307
|
const b = [
|
|
@@ -1267,7 +1314,7 @@ function useMenuPosition(e, t, r, i = "bottom-start", s) {
|
|
|
1267
1314
|
},
|
|
1268
1315
|
{
|
|
1269
1316
|
name: "bottom-end",
|
|
1270
|
-
fits: N >= x.height &&
|
|
1317
|
+
fits: N >= x.height && k >= x.width,
|
|
1271
1318
|
spaceUsed: N,
|
|
1272
1319
|
priority: 2
|
|
1273
1320
|
},
|
|
@@ -1279,14 +1326,14 @@ function useMenuPosition(e, t, r, i = "bottom-start", s) {
|
|
|
1279
1326
|
},
|
|
1280
1327
|
{
|
|
1281
1328
|
name: "top-end",
|
|
1282
|
-
fits: I >= x.height &&
|
|
1329
|
+
fits: I >= x.height && k >= x.width,
|
|
1283
1330
|
spaceUsed: I,
|
|
1284
1331
|
priority: 4
|
|
1285
1332
|
}
|
|
1286
1333
|
].filter((j) => j.fits);
|
|
1287
1334
|
b.length > 0 ? p = b.sort(
|
|
1288
|
-
(j,
|
|
1289
|
-
)[0].name : N >= I ? p = V >=
|
|
1335
|
+
(j, B) => j.priority - B.priority
|
|
1336
|
+
)[0].name : N >= I ? p = V >= k ? "bottom-start" : "bottom-end" : p = V >= k ? "top-start" : "top-end";
|
|
1290
1337
|
}
|
|
1291
1338
|
const g = {};
|
|
1292
1339
|
if (s)
|
|
@@ -2049,14 +2096,15 @@ const cardVariants = cva(
|
|
|
2049
2096
|
actions: l,
|
|
2050
2097
|
supplementaryInfo: a,
|
|
2051
2098
|
bordered: u = !1,
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2099
|
+
as: c = "button",
|
|
2100
|
+
className: f,
|
|
2101
|
+
...n
|
|
2102
|
+
}, d) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2103
|
+
c,
|
|
2056
2104
|
{
|
|
2057
|
-
ref:
|
|
2058
|
-
className: cn(cardVariants({ size: e, shape: t, bordered: u }),
|
|
2059
|
-
...
|
|
2105
|
+
ref: d,
|
|
2106
|
+
className: cn(cardVariants({ size: e, shape: t, bordered: u }), f),
|
|
2107
|
+
...n,
|
|
2060
2108
|
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-start gap-4 w-full", children: [
|
|
2061
2109
|
r && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-shrink-0", children: r }),
|
|
2062
2110
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "w-full min-w-0", children: [
|
|
@@ -2074,20 +2122,11 @@ const cardVariants = cva(
|
|
|
2074
2122
|
),
|
|
2075
2123
|
l && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: l })
|
|
2076
2124
|
] }),
|
|
2077
|
-
s && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cn(l && "-mt-3"), 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:
|
|
2078
|
-
Text,
|
|
2079
|
-
{
|
|
2080
|
-
as: "p",
|
|
2081
|
-
fontSize: "sm",
|
|
2082
|
-
color: "gray",
|
|
2083
|
-
className: "min-w-0",
|
|
2084
|
-
children: s
|
|
2085
|
-
}
|
|
2086
|
-
) }) })
|
|
2125
|
+
s && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cn(l && "-mt-3"), 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 }) })
|
|
2087
2126
|
] }),
|
|
2088
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex justify-between items-center gap-2", children: [
|
|
2089
|
-
o && o,
|
|
2090
|
-
a && typeof a == "string" ? /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { as: "p", fontSize: "sm", color: "gray", children: a }) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: a })
|
|
2127
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex justify-between items-center gap-2 flex-wrap ", children: [
|
|
2128
|
+
o && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "mr-auto flex-shrink-0 flex-wrap", children: o }),
|
|
2129
|
+
a && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "ml-auto flex-shrink-0", children: typeof a == "string" ? /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { as: "p", fontSize: "sm", color: "gray", children: a }) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: a }) })
|
|
2091
2130
|
] })
|
|
2092
2131
|
] })
|
|
2093
2132
|
] })
|
package/dist/js/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { L as e, 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, e as I, P as c, c as S, d as m, S as B, T as g } from "./top-bar-
|
|
3
|
-
import { B as b, C as T, b as x, a as h, D as f, k as C, E as M, M as P, P as A, R as k, d as F, c as D, S as L, e as H, j as R, i as w, h as G, f as j, T as q, g as v } from "./bottom-sheet-input-
|
|
4
|
-
import { B as E, D as N, M as z } from "./bottom-sheet-
|
|
5
|
-
import { A as K, a as O, b as Q, c as U, d as V, e as W, B as X, s as Y, f as Z, g as _, j as $, k as aa, h as ta, i as ea, C as sa, l as ra, F as oa, H as na, m as ua, I as pa, p as ia, r as la, q as Ia, M as ca, N as Sa, T as ma, n as Ba, o as ga } from "./image-rectangle-
|
|
6
|
-
import { T as ba } from "./tooltip-
|
|
2
|
+
import { A as n, a as u, B as p, b as i, F as l, e as I, P as c, c as S, d as m, S as B, T as g } from "./top-bar-D8P4uwtN.js";
|
|
3
|
+
import { B as b, C as T, b as x, a as h, D as f, k as C, E as M, M as P, P as A, R as k, d as F, c as D, S as L, e as H, j as R, i as w, h as G, f as j, T as q, g as v } from "./bottom-sheet-input-BnuL4Cci.js";
|
|
4
|
+
import { B as E, D as N, M as z } from "./bottom-sheet-BjNMFNXp.js";
|
|
5
|
+
import { A as K, a as O, b as Q, c as U, d as V, e as W, B as X, s as Y, f as Z, g as _, j as $, k as aa, h as ta, i as ea, C as sa, l as ra, F as oa, H as na, m as ua, I as pa, p as ia, r as la, q as Ia, M as ca, N as Sa, T as ma, n as Ba, o as ga } from "./image-rectangle-DGO9R_ox.js";
|
|
6
|
+
import { T as ba } from "./tooltip-uCpYAX_O.js";
|
|
7
7
|
import { S as xa } from "./snackbar-DH8jCh2V.js";
|
|
8
|
-
import { B as fa, T as Ca } from "./tabs-
|
|
8
|
+
import { B as fa, T as Ca } from "./tabs-lPDgArjA.js";
|
|
9
9
|
import { S as Pa, u as Aa } from "./use-snackbars-CKi6BQDT.js";
|
|
10
10
|
export {
|
|
11
11
|
K as Accordion,
|
package/dist/js/layouts/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as r, a as e, B as s, b as t, F as p, e as B, P as u, c as d, d as g, S as P, T as i } from "../top-bar-
|
|
1
|
+
import { A as r, a as e, B as s, b as t, F as p, e as B, P as u, c as d, d as g, S as P, T as i } from "../top-bar-D8P4uwtN.js";
|
|
2
2
|
export {
|
|
3
3
|
r as AppBar,
|
|
4
4
|
e 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-BjNMFNXp.js";
|
|
2
|
+
import { M as m } from "../image-rectangle-DGO9R_ox.js";
|
|
3
|
+
import { T as M } from "../tooltip-uCpYAX_O.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-DGO9R_ox.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-DGO9R_ox.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-DGO9R_ox.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 r, 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-DGO9R_ox.js";
|
|
5
5
|
import "./snackbar-DH8jCh2V.js";
|
|
6
6
|
const h = 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",
|
|
@@ -11,7 +11,7 @@ export interface AvatarProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
11
11
|
* Core variants: primary (coral), secondary (sage), tertiary (mist), ghost (slate), neutral (light gray)
|
|
12
12
|
* Semantic variants: success, info, warning, danger
|
|
13
13
|
*/
|
|
14
|
-
variant?: 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'neutral' | 'success' | 'info' | 'warning' | 'danger';
|
|
14
|
+
variant?: 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'neutral' | 'success' | 'info' | 'warning' | 'danger' | 'accent_1' | 'accent_2' | 'accent_3';
|
|
15
15
|
/**
|
|
16
16
|
* Size of the avatar
|
|
17
17
|
* xs: 24px, sm: 32px, md: 40px, lg: 48px, xl: 64px
|
|
@@ -32,7 +32,7 @@ export interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
|
|
|
32
32
|
* Core colors: primary (coral), secondary (sage), tertiary (mist), ghost (slate), neutral (light gray)
|
|
33
33
|
* Semantic colors: success, info, warning, danger
|
|
34
34
|
*/
|
|
35
|
-
color?: 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'neutral' | 'success' | 'info' | 'warning' | 'danger';
|
|
35
|
+
color?: 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'neutral' | 'success' | 'info' | 'warning' | 'danger' | 'accent_1' | 'accent_2' | 'accent_3';
|
|
36
36
|
/**
|
|
37
37
|
* Icon element to display on the left side of the badge
|
|
38
38
|
* When no children are provided and an icon is present, badge automatically becomes icon-only
|
|
@@ -14,7 +14,7 @@ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
14
14
|
* Semantic variants: success, info, warning, danger
|
|
15
15
|
* Each variant supports outline and ghost forms for flexible design expression
|
|
16
16
|
*/
|
|
17
|
-
variant?: 'primary' | 'primary-outline' | 'primary-ghost' | 'secondary' | 'secondary-outline' | 'secondary-ghost' | 'tertiary' | 'tertiary-outline' | 'tertiary-ghost' | 'ghost' | 'ghost-outline' | 'neutral' | 'neutral-outline' | 'neutral-ghost' | 'success' | 'success-outline' | 'success-ghost' | 'info' | 'info-outline' | 'info-ghost' | 'warning' | 'warning-outline' | 'warning-ghost' | 'danger' | 'danger-outline' | 'danger-ghost' | 'outline' | 'destructive';
|
|
17
|
+
variant?: 'primary' | 'primary-outline' | 'primary-ghost' | 'secondary' | 'secondary-outline' | 'secondary-ghost' | 'tertiary' | 'tertiary-outline' | 'tertiary-ghost' | 'accent_1' | 'accent_1-outline' | 'accent_1-ghost' | 'accent_2' | 'accent_2-outline' | 'accent_2-ghost' | 'accent_3' | 'accent_3-outline' | 'accent_3-ghost' | 'ghost' | 'ghost-outline' | 'neutral' | 'neutral-outline' | 'neutral-ghost' | 'success' | 'success-outline' | 'success-ghost' | 'info' | 'info-outline' | 'info-ghost' | 'warning' | 'warning-outline' | 'warning-ghost' | 'danger' | 'danger-outline' | 'danger-ghost' | 'outline' | 'destructive';
|
|
18
18
|
/**
|
|
19
19
|
* Size of the button
|
|
20
20
|
* sm: 36px height, compact for space-constrained interfaces
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CardProps } from './types';
|
|
2
|
-
export declare const Card: import('react').ForwardRefExoticComponent<CardProps & import('react').RefAttributes<HTMLButtonElement>> & {
|
|
2
|
+
export declare const Card: import('react').ForwardRefExoticComponent<CardProps & import('react').RefAttributes<HTMLDivElement | HTMLButtonElement>> & {
|
|
3
3
|
List: import('react').ForwardRefExoticComponent<import('./types').CardListProps & import('react').RefAttributes<HTMLUListElement>>;
|
|
4
4
|
ListItem: import('react').ForwardRefExoticComponent<import('./types').CardListItemProps & import('react').RefAttributes<HTMLLIElement>>;
|
|
5
5
|
};
|
|
@@ -45,6 +45,11 @@ export interface CardProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>,
|
|
|
45
45
|
* @default false
|
|
46
46
|
*/
|
|
47
47
|
bordered?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Is the card a button or a div?
|
|
50
|
+
* @default 'button'
|
|
51
|
+
*/
|
|
52
|
+
as?: 'button' | 'div';
|
|
48
53
|
}
|
|
49
54
|
export type CardListProps = {
|
|
50
55
|
children: ReactNode;
|