@fairmint/ui 0.2.8 → 0.2.10

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.
@@ -26906,6 +26906,13 @@ function FairmintLogo({
26906
26906
  }
26907
26907
  );
26908
26908
  }
26909
+ const radii = {
26910
+ xs: "0.25rem",
26911
+ sm: "0.375rem",
26912
+ md: "0.5rem",
26913
+ lg: "0.75rem",
26914
+ xl: "1rem"
26915
+ };
26909
26916
  const indigo = [
26910
26917
  "#EEF2FF",
26911
26918
  "#E0E7FF",
@@ -27010,13 +27017,7 @@ const theme = createTheme({
27010
27017
  fontFamily: '"Plus Jakarta Sans", sans-serif',
27011
27018
  fontWeight: "700"
27012
27019
  },
27013
- radius: {
27014
- xs: "0.25rem",
27015
- sm: "0.375rem",
27016
- md: "0.5rem",
27017
- lg: "0.75rem",
27018
- xl: "1rem"
27019
- },
27020
+ radius: radii,
27020
27021
  defaultRadius: "md",
27021
27022
  breakpoints: {
27022
27023
  xs: "30em",
@@ -28525,7 +28526,7 @@ function DataTable({
28525
28526
  styles: onRowClick ? {
28526
28527
  tr: {
28527
28528
  "&:hover": {
28528
- backgroundColor: `var(--mantine-color-${colors.neutral}-0)`
28529
+ backgroundColor: neutralColors[50]
28529
28530
  }
28530
28531
  }
28531
28532
  } : void 0,
@@ -28707,10 +28708,10 @@ function ListRow({
28707
28708
  root: {
28708
28709
  transition: "background-color 0.15s ease",
28709
28710
  "&:hover": {
28710
- backgroundColor: `var(--mantine-color-${colors.neutral}-0)`
28711
+ backgroundColor: neutralColors[50]
28711
28712
  },
28712
28713
  "&:focus-visible": {
28713
- outline: `2px solid var(--mantine-color-${colors.primary}-5)`,
28714
+ outline: `2px solid ${brandColors.indigo}`,
28714
28715
  outlineOffset: "-2px"
28715
28716
  }
28716
28717
  }
@@ -29939,7 +29940,7 @@ function PhotoCropModal({
29939
29940
  style: {
29940
29941
  position: "relative",
29941
29942
  height: 320,
29942
- borderRadius: "var(--mantine-radius-md)",
29943
+ borderRadius: radii.md,
29943
29944
  overflow: "hidden",
29944
29945
  background: neutralColors[900]
29945
29946
  },
@@ -30055,32 +30056,24 @@ function StatCard({
30055
30056
  trend,
30056
30057
  ...rest
30057
30058
  }) {
30058
- return /* @__PURE__ */ jsx(
30059
- Card,
30060
- {
30061
- bg: `${color}.0`,
30062
- style: { border: `1px solid var(--mantine-color-${color}-2)` },
30063
- ...rest,
30064
- children: /* @__PURE__ */ jsxs(Group, { justify: "space-between", align: "flex-start", children: [
30065
- /* @__PURE__ */ jsxs(Stack, { gap: 4, children: [
30066
- /* @__PURE__ */ jsx(
30067
- Text,
30068
- {
30069
- size: "xs",
30070
- fw: 600,
30071
- tt: "uppercase",
30072
- c: `${color}.6`,
30073
- style: { letterSpacing: "0.05em" },
30074
- children: label
30075
- }
30076
- ),
30077
- /* @__PURE__ */ jsx(Text, { fw: 700, size: "xl", lh: 1, children: value }),
30078
- trend && /* @__PURE__ */ jsx(Text, { size: "xs", c: "dimmed", children: trend })
30079
- ] }),
30080
- icon && /* @__PURE__ */ jsx(Box, { c: `${color}.5`, fz: "1.5rem", children: icon })
30081
- ] })
30082
- }
30083
- );
30059
+ return /* @__PURE__ */ jsx(Card, { bg: `${color}.0`, bd: `1px solid ${color}.2`, ...rest, children: /* @__PURE__ */ jsxs(Group, { justify: "space-between", align: "flex-start", children: [
30060
+ /* @__PURE__ */ jsxs(Stack, { gap: 4, children: [
30061
+ /* @__PURE__ */ jsx(
30062
+ Text,
30063
+ {
30064
+ size: "xs",
30065
+ fw: 600,
30066
+ tt: "uppercase",
30067
+ c: `${color}.6`,
30068
+ style: { letterSpacing: "0.05em" },
30069
+ children: label
30070
+ }
30071
+ ),
30072
+ /* @__PURE__ */ jsx(Text, { fw: 700, size: "xl", lh: 1, children: value }),
30073
+ trend && /* @__PURE__ */ jsx(Text, { size: "xs", c: "dimmed", children: trend })
30074
+ ] }),
30075
+ icon && /* @__PURE__ */ jsx(Box, { c: `${color}.5`, fz: "1.5rem", children: icon })
30076
+ ] }) });
30084
30077
  }
30085
30078
  const DEFAULT_COLOR_MAP = {
30086
30079
  active: colors.success,
@@ -30126,7 +30119,7 @@ function LoadingSpinner({ size: size2 = 32 }) {
30126
30119
  "svg",
30127
30120
  {
30128
30121
  ...iconProps,
30129
- stroke: "var(--mantine-color-gray-3)",
30122
+ stroke: neutralColors[300],
30130
30123
  style: { position: "absolute", inset: 0 },
30131
30124
  "aria-hidden": "true",
30132
30125
  children: paths
@@ -30136,7 +30129,7 @@ function LoadingSpinner({ size: size2 = 32 }) {
30136
30129
  "svg",
30137
30130
  {
30138
30131
  ...iconProps,
30139
- stroke: "var(--mantine-color-indigo-5)",
30132
+ stroke: brandColors.indigo,
30140
30133
  style: { position: "absolute", inset: 0, animation: "fillUp 1.4s ease-in-out infinite" },
30141
30134
  "aria-hidden": "true",
30142
30135
  children: paths
@@ -30187,14 +30180,14 @@ function SideNav({ items, onItemClick, color = "indigo" }) {
30187
30180
  onClick: () => onItemClick(item.id),
30188
30181
  color,
30189
30182
  variant: "light",
30190
- style: { borderRadius: "var(--mantine-radius-md)" },
30183
+ style: { borderRadius: radii.md },
30191
30184
  styles: {
30192
30185
  root: {
30193
- color: item.active ? void 0 : "var(--mantine-color-gray-5)",
30186
+ color: item.active ? void 0 : neutralColors[500],
30194
30187
  fontWeight: item.active ? 500 : 400
30195
30188
  },
30196
30189
  section: {
30197
- color: item.active ? void 0 : "var(--mantine-color-gray-4)"
30190
+ color: item.active ? void 0 : neutralColors[400]
30198
30191
  }
30199
30192
  }
30200
30193
  },
@@ -30403,7 +30396,7 @@ function InvestorProfileCard({
30403
30396
  background: "none",
30404
30397
  border: "none",
30405
30398
  padding: 0,
30406
- borderRadius: "var(--mantine-radius-md)",
30399
+ borderRadius: radii.md,
30407
30400
  flexShrink: 0
30408
30401
  },
30409
30402
  children: [
@@ -30417,7 +30410,7 @@ function InvestorProfileCard({
30417
30410
  style: {
30418
30411
  position: "absolute",
30419
30412
  inset: 0,
30420
- borderRadius: "var(--mantine-radius-md)",
30413
+ borderRadius: radii.md,
30421
30414
  backgroundColor: `${neutralColors[900]}80`,
30422
30415
  display: "flex",
30423
30416
  alignItems: "center",
@@ -30431,7 +30424,7 @@ function InvestorProfileCard({
30431
30424
  style: {
30432
30425
  position: "absolute",
30433
30426
  inset: 0,
30434
- borderRadius: "var(--mantine-radius-md)",
30427
+ borderRadius: radii.md,
30435
30428
  backgroundColor: `${neutralColors[900]}73`,
30436
30429
  display: "flex",
30437
30430
  alignItems: "center",
@@ -30548,8 +30541,8 @@ function WalletList({
30548
30541
  justify: "space-between",
30549
30542
  p: "xs",
30550
30543
  style: {
30551
- borderRadius: "var(--mantine-radius-sm)",
30552
- border: "1px solid var(--mantine-color-default-border)"
30544
+ borderRadius: radii.sm,
30545
+ border: `1px solid ${neutralColors[200]}`
30553
30546
  },
30554
30547
  children: [
30555
30548
  /* @__PURE__ */ jsxs(Group, { gap: "xs", children: [
@@ -30784,6 +30777,7 @@ export {
30784
30777
  notify,
30785
30778
  passwordSchema,
30786
30779
  phoneSchema,
30780
+ radii,
30787
30781
  semanticColors,
30788
30782
  theme,
30789
30783
  truncateAddress,