@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.
@@ -1 +1 @@
1
- {"version":3,"file":"LoadingSpinner.d.ts","sourceRoot":"","sources":["../../../src/components/LoadingSpinner/LoadingSpinner.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,mBAAmB;IAClC,uCAAuC;IACvC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,EAAE,IAAS,EAAE,EAAE,mBAAmB,2CA2ChE"}
1
+ {"version":3,"file":"LoadingSpinner.d.ts","sourceRoot":"","sources":["../../../src/components/LoadingSpinner/LoadingSpinner.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,mBAAmB;IAClC,uCAAuC;IACvC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,EAAE,IAAS,EAAE,EAAE,mBAAmB,2CA2ChE"}
@@ -1 +1 @@
1
- {"version":3,"file":"StatCard.d.ts","sourceRoot":"","sources":["../../../../src/components/generic/StatCard/StatCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAGlE,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IAChE,wCAAwC;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,KAAK,EAAE,MAAM,CAAC;IACd,6BAA6B;IAC7B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yDAAyD;IACzD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,QAAQ,CAAC,EACvB,KAAK,EACL,KAAK,EACL,IAAI,EACJ,KAAsB,EACtB,KAAK,EACL,GAAG,IAAI,EACR,EAAE,aAAa,2CAmCf"}
1
+ {"version":3,"file":"StatCard.d.ts","sourceRoot":"","sources":["../../../../src/components/generic/StatCard/StatCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAGlE,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IAChE,wCAAwC;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,KAAK,EAAE,MAAM,CAAC;IACd,6BAA6B;IAC7B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yDAAyD;IACzD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,QAAQ,CAAC,EACvB,KAAK,EACL,KAAK,EACL,IAAI,EACJ,KAAsB,EACtB,KAAK,EACL,GAAG,IAAI,EACR,EAAE,aAAa,2CA+Bf"}
@@ -1 +1 @@
1
- {"version":3,"file":"SideNav.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/SideNav/SideNav.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,WAAW;IAC1B,sEAAsE;IACtE,EAAE,EAAE,MAAM,CAAC;IACX,qBAAqB;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,oBAAoB;IACpB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,6CAA6C;IAC7C,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,YAAY;IAC3B,kCAAkC;IAClC,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,qEAAqE;IACrE,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,OAAO,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,KAAgB,EAAE,EAAE,YAAY,2CA0B7E"}
1
+ {"version":3,"file":"SideNav.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/SideNav/SideNav.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,MAAM,WAAW,WAAW;IAC1B,sEAAsE;IACtE,EAAE,EAAE,MAAM,CAAC;IACX,qBAAqB;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,oBAAoB;IACpB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,6CAA6C;IAC7C,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,YAAY;IAC3B,kCAAkC;IAClC,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,qEAAqE;IACrE,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,OAAO,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,KAAgB,EAAE,EAAE,YAAY,2CA0B7E"}
@@ -26924,6 +26924,13 @@ function FairmintLogo({
26924
26924
  }
26925
26925
  );
26926
26926
  }
26927
+ const radii = {
26928
+ xs: "0.25rem",
26929
+ sm: "0.375rem",
26930
+ md: "0.5rem",
26931
+ lg: "0.75rem",
26932
+ xl: "1rem"
26933
+ };
26927
26934
  const indigo = [
26928
26935
  "#EEF2FF",
26929
26936
  "#E0E7FF",
@@ -27028,13 +27035,7 @@ const theme = createTheme({
27028
27035
  fontFamily: '"Plus Jakarta Sans", sans-serif',
27029
27036
  fontWeight: "700"
27030
27037
  },
27031
- radius: {
27032
- xs: "0.25rem",
27033
- sm: "0.375rem",
27034
- md: "0.5rem",
27035
- lg: "0.75rem",
27036
- xl: "1rem"
27037
- },
27038
+ radius: radii,
27038
27039
  defaultRadius: "md",
27039
27040
  breakpoints: {
27040
27041
  xs: "30em",
@@ -28543,7 +28544,7 @@ function DataTable({
28543
28544
  styles: onRowClick ? {
28544
28545
  tr: {
28545
28546
  "&:hover": {
28546
- backgroundColor: `var(--mantine-color-${colors.neutral}-0)`
28547
+ backgroundColor: neutralColors[50]
28547
28548
  }
28548
28549
  }
28549
28550
  } : void 0,
@@ -28725,10 +28726,10 @@ function ListRow({
28725
28726
  root: {
28726
28727
  transition: "background-color 0.15s ease",
28727
28728
  "&:hover": {
28728
- backgroundColor: `var(--mantine-color-${colors.neutral}-0)`
28729
+ backgroundColor: neutralColors[50]
28729
28730
  },
28730
28731
  "&:focus-visible": {
28731
- outline: `2px solid var(--mantine-color-${colors.primary}-5)`,
28732
+ outline: `2px solid ${brandColors.indigo}`,
28732
28733
  outlineOffset: "-2px"
28733
28734
  }
28734
28735
  }
@@ -29957,7 +29958,7 @@ function PhotoCropModal({
29957
29958
  style: {
29958
29959
  position: "relative",
29959
29960
  height: 320,
29960
- borderRadius: "var(--mantine-radius-md)",
29961
+ borderRadius: radii.md,
29961
29962
  overflow: "hidden",
29962
29963
  background: neutralColors[900]
29963
29964
  },
@@ -30073,32 +30074,24 @@ function StatCard({
30073
30074
  trend,
30074
30075
  ...rest
30075
30076
  }) {
30076
- return /* @__PURE__ */ jsxRuntime.jsx(
30077
- Card,
30078
- {
30079
- bg: `${color}.0`,
30080
- style: { border: `1px solid var(--mantine-color-${color}-2)` },
30081
- ...rest,
30082
- children: /* @__PURE__ */ jsxRuntime.jsxs(Group, { justify: "space-between", align: "flex-start", children: [
30083
- /* @__PURE__ */ jsxRuntime.jsxs(Stack, { gap: 4, children: [
30084
- /* @__PURE__ */ jsxRuntime.jsx(
30085
- Text,
30086
- {
30087
- size: "xs",
30088
- fw: 600,
30089
- tt: "uppercase",
30090
- c: `${color}.6`,
30091
- style: { letterSpacing: "0.05em" },
30092
- children: label
30093
- }
30094
- ),
30095
- /* @__PURE__ */ jsxRuntime.jsx(Text, { fw: 700, size: "xl", lh: 1, children: value }),
30096
- trend && /* @__PURE__ */ jsxRuntime.jsx(Text, { size: "xs", c: "dimmed", children: trend })
30097
- ] }),
30098
- icon && /* @__PURE__ */ jsxRuntime.jsx(Box, { c: `${color}.5`, fz: "1.5rem", children: icon })
30099
- ] })
30100
- }
30101
- );
30077
+ return /* @__PURE__ */ jsxRuntime.jsx(Card, { bg: `${color}.0`, bd: `1px solid ${color}.2`, ...rest, children: /* @__PURE__ */ jsxRuntime.jsxs(Group, { justify: "space-between", align: "flex-start", children: [
30078
+ /* @__PURE__ */ jsxRuntime.jsxs(Stack, { gap: 4, children: [
30079
+ /* @__PURE__ */ jsxRuntime.jsx(
30080
+ Text,
30081
+ {
30082
+ size: "xs",
30083
+ fw: 600,
30084
+ tt: "uppercase",
30085
+ c: `${color}.6`,
30086
+ style: { letterSpacing: "0.05em" },
30087
+ children: label
30088
+ }
30089
+ ),
30090
+ /* @__PURE__ */ jsxRuntime.jsx(Text, { fw: 700, size: "xl", lh: 1, children: value }),
30091
+ trend && /* @__PURE__ */ jsxRuntime.jsx(Text, { size: "xs", c: "dimmed", children: trend })
30092
+ ] }),
30093
+ icon && /* @__PURE__ */ jsxRuntime.jsx(Box, { c: `${color}.5`, fz: "1.5rem", children: icon })
30094
+ ] }) });
30102
30095
  }
30103
30096
  const DEFAULT_COLOR_MAP = {
30104
30097
  active: colors.success,
@@ -30144,7 +30137,7 @@ function LoadingSpinner({ size: size2 = 32 }) {
30144
30137
  "svg",
30145
30138
  {
30146
30139
  ...iconProps,
30147
- stroke: "var(--mantine-color-gray-3)",
30140
+ stroke: neutralColors[300],
30148
30141
  style: { position: "absolute", inset: 0 },
30149
30142
  "aria-hidden": "true",
30150
30143
  children: paths
@@ -30154,7 +30147,7 @@ function LoadingSpinner({ size: size2 = 32 }) {
30154
30147
  "svg",
30155
30148
  {
30156
30149
  ...iconProps,
30157
- stroke: "var(--mantine-color-indigo-5)",
30150
+ stroke: brandColors.indigo,
30158
30151
  style: { position: "absolute", inset: 0, animation: "fillUp 1.4s ease-in-out infinite" },
30159
30152
  "aria-hidden": "true",
30160
30153
  children: paths
@@ -30205,14 +30198,14 @@ function SideNav({ items, onItemClick, color = "indigo" }) {
30205
30198
  onClick: () => onItemClick(item.id),
30206
30199
  color,
30207
30200
  variant: "light",
30208
- style: { borderRadius: "var(--mantine-radius-md)" },
30201
+ style: { borderRadius: radii.md },
30209
30202
  styles: {
30210
30203
  root: {
30211
- color: item.active ? void 0 : "var(--mantine-color-gray-5)",
30204
+ color: item.active ? void 0 : neutralColors[500],
30212
30205
  fontWeight: item.active ? 500 : 400
30213
30206
  },
30214
30207
  section: {
30215
- color: item.active ? void 0 : "var(--mantine-color-gray-4)"
30208
+ color: item.active ? void 0 : neutralColors[400]
30216
30209
  }
30217
30210
  }
30218
30211
  },
@@ -30421,7 +30414,7 @@ function InvestorProfileCard({
30421
30414
  background: "none",
30422
30415
  border: "none",
30423
30416
  padding: 0,
30424
- borderRadius: "var(--mantine-radius-md)",
30417
+ borderRadius: radii.md,
30425
30418
  flexShrink: 0
30426
30419
  },
30427
30420
  children: [
@@ -30435,7 +30428,7 @@ function InvestorProfileCard({
30435
30428
  style: {
30436
30429
  position: "absolute",
30437
30430
  inset: 0,
30438
- borderRadius: "var(--mantine-radius-md)",
30431
+ borderRadius: radii.md,
30439
30432
  backgroundColor: `${neutralColors[900]}80`,
30440
30433
  display: "flex",
30441
30434
  alignItems: "center",
@@ -30449,7 +30442,7 @@ function InvestorProfileCard({
30449
30442
  style: {
30450
30443
  position: "absolute",
30451
30444
  inset: 0,
30452
- borderRadius: "var(--mantine-radius-md)",
30445
+ borderRadius: radii.md,
30453
30446
  backgroundColor: `${neutralColors[900]}73`,
30454
30447
  display: "flex",
30455
30448
  alignItems: "center",
@@ -30566,8 +30559,8 @@ function WalletList({
30566
30559
  justify: "space-between",
30567
30560
  p: "xs",
30568
30561
  style: {
30569
- borderRadius: "var(--mantine-radius-sm)",
30570
- border: "1px solid var(--mantine-color-default-border)"
30562
+ borderRadius: radii.sm,
30563
+ border: `1px solid ${neutralColors[200]}`
30571
30564
  },
30572
30565
  children: [
30573
30566
  /* @__PURE__ */ jsxRuntime.jsxs(Group, { gap: "xs", children: [
@@ -30801,6 +30794,7 @@ exports.neutralColors = neutralColors;
30801
30794
  exports.notify = notify;
30802
30795
  exports.passwordSchema = passwordSchema;
30803
30796
  exports.phoneSchema = phoneSchema;
30797
+ exports.radii = radii;
30804
30798
  exports.semanticColors = semanticColors;
30805
30799
  exports.theme = theme;
30806
30800
  exports.truncateAddress = truncateAddress;