@fairmint/ui 0.3.7 → 0.3.8
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/components/generic/StepCard/StepCard.cjs +17 -8
- package/dist/components/generic/StepCard/StepCard.cjs.map +1 -1
- package/dist/components/generic/StepCard/StepCard.d.ts.map +1 -1
- package/dist/components/generic/StepCard/StepCard.js +18 -9
- package/dist/components/generic/StepCard/StepCard.js.map +1 -1
- package/dist/components/generic/StepFlow/StepFlow.cjs +66 -0
- package/dist/components/generic/StepFlow/StepFlow.cjs.map +1 -0
- package/dist/components/generic/StepFlow/StepFlow.d.ts +35 -0
- package/dist/components/generic/StepFlow/StepFlow.d.ts.map +1 -0
- package/dist/components/generic/StepFlow/StepFlow.js +66 -0
- package/dist/components/generic/StepFlow/StepFlow.js.map +1 -0
- package/dist/components/generic/StepProgress/StepProgress.cjs +100 -0
- package/dist/components/generic/StepProgress/StepProgress.cjs.map +1 -0
- package/dist/components/generic/StepProgress/StepProgress.d.ts +31 -0
- package/dist/components/generic/StepProgress/StepProgress.d.ts.map +1 -0
- package/dist/components/generic/StepProgress/StepProgress.js +100 -0
- package/dist/components/generic/StepProgress/StepProgress.js.map +1 -0
- package/dist/fairmint-ui.cjs +8 -0
- package/dist/fairmint-ui.cjs.map +1 -1
- package/dist/fairmint-ui.js +9 -1
- package/dist/fairmint-ui.js.map +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/styles.css +157 -0
- package/dist/theme/index.cjs +37 -1
- package/dist/theme/index.cjs.map +1 -1
- package/dist/theme/index.d.ts +21 -0
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/index.js +37 -1
- package/dist/theme/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { fairmintVars, indigoColors, commonColors, brandColors } from "../../../theme/index.js";
|
|
3
|
+
import { Box } from "../../primitives/layout.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import { UnstyledButton } from "../../../node_modules/@mantine/core/esm/components/UnstyledButton/UnstyledButton.js";
|
|
6
|
+
const CheckIcon = () => /* @__PURE__ */ jsx(
|
|
7
|
+
"svg",
|
|
8
|
+
{
|
|
9
|
+
width: "14",
|
|
10
|
+
height: "14",
|
|
11
|
+
viewBox: "0 0 24 24",
|
|
12
|
+
fill: "none",
|
|
13
|
+
stroke: "currentColor",
|
|
14
|
+
strokeWidth: "2.5",
|
|
15
|
+
strokeLinecap: "round",
|
|
16
|
+
strokeLinejoin: "round",
|
|
17
|
+
"aria-hidden": "true",
|
|
18
|
+
children: /* @__PURE__ */ jsx("path", { d: "m5 13 4 4 10-10" })
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
const resolveActiveStep = (activeStep, stepCount) => {
|
|
22
|
+
if (!Number.isFinite(activeStep)) return 1;
|
|
23
|
+
return Math.min(Math.max(Math.trunc(activeStep), 1), stepCount);
|
|
24
|
+
};
|
|
25
|
+
const getStepProgressStatus = (step, stepNumber, activeStep) => {
|
|
26
|
+
if (stepNumber === activeStep) return "active";
|
|
27
|
+
if (step.completed ?? stepNumber < activeStep) return "complete";
|
|
28
|
+
return "pending";
|
|
29
|
+
};
|
|
30
|
+
function StepProgress({
|
|
31
|
+
steps,
|
|
32
|
+
activeStep,
|
|
33
|
+
orientation = "horizontal",
|
|
34
|
+
onStepChange,
|
|
35
|
+
ariaLabel = "Progress"
|
|
36
|
+
}) {
|
|
37
|
+
if (steps.length === 0) return null;
|
|
38
|
+
const resolvedActiveStep = resolveActiveStep(activeStep, steps.length);
|
|
39
|
+
const rootStyle = {
|
|
40
|
+
"--fairmint-step-progress-brand": brandColors.indigo,
|
|
41
|
+
"--fairmint-step-progress-border": fairmintVars.colorBorderDefault,
|
|
42
|
+
"--fairmint-step-progress-text-primary": fairmintVars.colorTextPrimary,
|
|
43
|
+
"--fairmint-step-progress-text-secondary": fairmintVars.colorTextSecondary,
|
|
44
|
+
"--fairmint-step-progress-surface-selected": fairmintVars.colorSurfaceSelected,
|
|
45
|
+
// One shared accent tone for anything bordering/reading on colorSurfaceSelected,
|
|
46
|
+
// instead of two adjacent-but-different indigo shades competing.
|
|
47
|
+
"--fairmint-step-progress-active-border": indigoColors[2],
|
|
48
|
+
"--fairmint-step-progress-active-indicator-text": commonColors.white,
|
|
49
|
+
"--fairmint-step-progress-complete-border": indigoColors[2],
|
|
50
|
+
"--fairmint-step-progress-complete-text": fairmintVars.colorIconOnSurfaceSelected
|
|
51
|
+
};
|
|
52
|
+
return /* @__PURE__ */ jsx(
|
|
53
|
+
Box,
|
|
54
|
+
{
|
|
55
|
+
component: "nav",
|
|
56
|
+
"aria-label": ariaLabel,
|
|
57
|
+
className: "fairmint-step-progress",
|
|
58
|
+
"data-orientation": orientation,
|
|
59
|
+
style: rootStyle,
|
|
60
|
+
children: /* @__PURE__ */ jsx("ol", { className: "fairmint-step-progress__list", children: steps.map((step, index) => {
|
|
61
|
+
const stepNumber = index + 1;
|
|
62
|
+
const status = getStepProgressStatus(step, stepNumber, resolvedActiveStep);
|
|
63
|
+
const isInteractive = Boolean(onStepChange) && !step.disabled;
|
|
64
|
+
const pillContent = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
65
|
+
/* @__PURE__ */ jsx("span", { className: "fairmint-step-progress__indicator", "aria-hidden": "true", children: status === "complete" ? /* @__PURE__ */ jsx(CheckIcon, {}) : stepNumber }),
|
|
66
|
+
/* @__PURE__ */ jsx("span", { className: "fairmint-step-progress__label", children: step.label })
|
|
67
|
+
] });
|
|
68
|
+
return /* @__PURE__ */ jsx("li", { className: "fairmint-step-progress__item", children: isInteractive ? /* @__PURE__ */ jsx(
|
|
69
|
+
UnstyledButton,
|
|
70
|
+
{
|
|
71
|
+
type: "button",
|
|
72
|
+
className: "fairmint-step-progress__pill",
|
|
73
|
+
"data-state": status,
|
|
74
|
+
"data-interactive": "true",
|
|
75
|
+
"aria-current": status === "active" ? "step" : void 0,
|
|
76
|
+
"aria-label": `Step ${stepNumber}: ${step.label}`,
|
|
77
|
+
onClick: () => onStepChange?.(stepNumber),
|
|
78
|
+
children: pillContent
|
|
79
|
+
}
|
|
80
|
+
) : /* @__PURE__ */ jsx(
|
|
81
|
+
"span",
|
|
82
|
+
{
|
|
83
|
+
className: "fairmint-step-progress__pill",
|
|
84
|
+
"data-state": status,
|
|
85
|
+
"aria-current": status === "active" ? "step" : void 0,
|
|
86
|
+
title: `Step ${stepNumber}: ${step.label}`,
|
|
87
|
+
children: pillContent
|
|
88
|
+
}
|
|
89
|
+
) }, `${stepNumber}-${step.label}`);
|
|
90
|
+
}) })
|
|
91
|
+
}
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
const STEP_PROGRESS_MOBILE_BREAKPOINT = "48em";
|
|
95
|
+
export {
|
|
96
|
+
STEP_PROGRESS_MOBILE_BREAKPOINT,
|
|
97
|
+
StepProgress,
|
|
98
|
+
getStepProgressStatus
|
|
99
|
+
};
|
|
100
|
+
//# sourceMappingURL=StepProgress.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepProgress.js","sources":["../../../../src/components/generic/StepProgress/StepProgress.tsx"],"sourcesContent":["import { brandColors, commonColors, fairmintVars, indigoColors } from \"../../../theme\";\nimport { Box, UnstyledButton } from \"../../primitives/layout\";\nimport \"./StepProgress.css\";\n\nexport type StepProgressOrientation = \"horizontal\" | \"vertical\";\nexport type StepProgressStepStatus = \"complete\" | \"active\" | \"pending\";\n\nexport interface StepProgressStep {\n /** Visible label in the progress pill. */\n label: string;\n /** Explicitly mark a step complete when completion is not derived from activeStep. */\n completed?: boolean;\n /** Prevent navigation to this step when onStepChange is supplied. */\n disabled?: boolean;\n}\n\nexport interface StepProgressProps {\n /** Ordered steps. The visible number is derived from this array and is 1-indexed. */\n steps: readonly StepProgressStep[];\n /** Current step number. This is intentionally 1-indexed to match StepCard and the UI. */\n activeStep: number;\n /** Row of pills for in-app progress or a rail for onboarding. @default \"horizontal\" */\n orientation?: StepProgressOrientation;\n /** Called with the 1-indexed step number when a pill is activated. */\n onStepChange?: (step: number) => void;\n /** Accessible label for the navigation. @default \"Progress\" */\n ariaLabel?: string;\n}\n\nconst CheckIcon = () => (\n <svg\n width=\"14\"\n height=\"14\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m5 13 4 4 10-10\" />\n </svg>\n);\n\nconst resolveActiveStep = (activeStep: number, stepCount: number) => {\n if (!Number.isFinite(activeStep)) return 1;\n return Math.min(Math.max(Math.trunc(activeStep), 1), stepCount);\n};\n\nexport const getStepProgressStatus = (\n step: StepProgressStep,\n stepNumber: number,\n activeStep: number,\n): StepProgressStepStatus => {\n if (stepNumber === activeStep) return \"active\";\n if (step.completed ?? stepNumber < activeStep) return \"complete\";\n return \"pending\";\n};\n\n/**\n * Numbered progress pills shared by horizontal in-app flows and vertical\n * onboarding rails. Owns navigation only — the numbered content container is\n * `StepCard`, and `StepFlow` pairs the two into the canonical shell.\n */\nexport function StepProgress({\n steps,\n activeStep,\n orientation = \"horizontal\",\n onStepChange,\n ariaLabel = \"Progress\",\n}: StepProgressProps) {\n if (steps.length === 0) return null;\n\n const resolvedActiveStep = resolveActiveStep(activeStep, steps.length);\n const rootStyle = {\n \"--fairmint-step-progress-brand\": brandColors.indigo,\n \"--fairmint-step-progress-border\": fairmintVars.colorBorderDefault,\n \"--fairmint-step-progress-text-primary\": fairmintVars.colorTextPrimary,\n \"--fairmint-step-progress-text-secondary\": fairmintVars.colorTextSecondary,\n \"--fairmint-step-progress-surface-selected\": fairmintVars.colorSurfaceSelected,\n // One shared accent tone for anything bordering/reading on colorSurfaceSelected,\n // instead of two adjacent-but-different indigo shades competing.\n \"--fairmint-step-progress-active-border\": indigoColors[2],\n \"--fairmint-step-progress-active-indicator-text\": commonColors.white,\n \"--fairmint-step-progress-complete-border\": indigoColors[2],\n \"--fairmint-step-progress-complete-text\": fairmintVars.colorIconOnSurfaceSelected,\n };\n\n return (\n <Box\n component=\"nav\"\n aria-label={ariaLabel}\n className=\"fairmint-step-progress\"\n data-orientation={orientation}\n style={rootStyle}\n >\n <ol className=\"fairmint-step-progress__list\">\n {steps.map((step, index) => {\n const stepNumber = index + 1;\n const status = getStepProgressStatus(step, stepNumber, resolvedActiveStep);\n const isInteractive = Boolean(onStepChange) && !step.disabled;\n const pillContent = (\n <>\n <span className=\"fairmint-step-progress__indicator\" aria-hidden=\"true\">\n {status === \"complete\" ? <CheckIcon /> : stepNumber}\n </span>\n <span className=\"fairmint-step-progress__label\">{step.label}</span>\n </>\n );\n\n return (\n <li key={`${stepNumber}-${step.label}`} className=\"fairmint-step-progress__item\">\n {isInteractive ? (\n <UnstyledButton\n type=\"button\"\n className=\"fairmint-step-progress__pill\"\n data-state={status}\n data-interactive=\"true\"\n aria-current={status === \"active\" ? \"step\" : undefined}\n aria-label={`Step ${stepNumber}: ${step.label}`}\n onClick={() => onStepChange?.(stepNumber)}\n >\n {pillContent}\n </UnstyledButton>\n ) : (\n <span\n className=\"fairmint-step-progress__pill\"\n data-state={status}\n aria-current={status === \"active\" ? \"step\" : undefined}\n title={`Step ${stepNumber}: ${step.label}`}\n >\n {pillContent}\n </span>\n )}\n </li>\n );\n })}\n </ol>\n </Box>\n );\n}\n\nexport const STEP_PROGRESS_MOBILE_BREAKPOINT = \"48em\";\n"],"names":[],"mappings":";;;;;AA6BA,MAAM,YAAY,MAChB;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,OAAM;AAAA,IACN,QAAO;AAAA,IACP,SAAQ;AAAA,IACR,MAAK;AAAA,IACL,QAAO;AAAA,IACP,aAAY;AAAA,IACZ,eAAc;AAAA,IACd,gBAAe;AAAA,IACf,eAAY;AAAA,IAEZ,UAAA,oBAAC,QAAA,EAAK,G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CAAoC,eAAY,QAC7D,qBAAW,aAAa,oBAAC,WAAA,CAAA,CAAU,IAAK,WAAA,CAC3C;AAAA,UACA,oBAAC,QAAA,EAAK,WAAU,iCAAiC,eAAK,MAAA,CAAM;AAAA,QAAA,GAC9D;AAGF,eACE,oBAAC,MAAA,EAAuC,WAAU,gCAC/C,UAAA,gBACC;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,MAAK;AAAA,YACL,WAAU;AAAA,YACV,cAAY;AAAA,YACZ,oBAAiB;AAAA,YACjB,gBAAc,WAAW,WAAW,SAAS;AAAA,YAC7C,cAAY,QAAQ,UAAU,KAAK,KAAK,KAAK;AAAA,YAC7C,SAAS,MAAM,eAAe,UAAU;AAAA,YAEvC,UAAA;AAAA,UAAA;AAAA,QAAA,IAGH;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAU;AAAA,YACV,cAAY;AAAA,YACZ,gBAAc,WAAW,WAAW,SAAS;AAAA,YAC7C,OAAO,QAAQ,UAAU,KAAK,KAAK,KAAK;AAAA,YAEvC,UAAA;AAAA,UAAA;AAAA,QAAA,KApBE,GAAG,UAAU,IAAI,KAAK,KAAK,EAuBpC;AAAA,MAEJ,CAAC,EAAA,CACH;AAAA,IAAA;AAAA,EAAA;AAGN;AAEO,MAAM,kCAAkC;"}
|
package/dist/fairmint-ui.cjs
CHANGED
|
@@ -43,6 +43,8 @@ const SearchInput = require("./components/generic/SearchInput/SearchInput.cjs");
|
|
|
43
43
|
const StatCard = require("./components/generic/StatCard/StatCard.cjs");
|
|
44
44
|
const StatusBadge = require("./components/generic/StatusBadge/StatusBadge.cjs");
|
|
45
45
|
const StepCard = require("./components/generic/StepCard/StepCard.cjs");
|
|
46
|
+
const StepFlow = require("./components/generic/StepFlow/StepFlow.cjs");
|
|
47
|
+
const StepProgress = require("./components/generic/StepProgress/StepProgress.cjs");
|
|
46
48
|
const ValidationWarning = require("./components/generic/ValidationWarning/ValidationWarning.cjs");
|
|
47
49
|
const LoadingOverlay = require("./components/LoadingOverlay/LoadingOverlay.cjs");
|
|
48
50
|
const LoadingSpinner = require("./components/LoadingSpinner/LoadingSpinner.cjs");
|
|
@@ -195,6 +197,11 @@ exports.SearchInput = SearchInput.SearchInput;
|
|
|
195
197
|
exports.StatCard = StatCard.StatCard;
|
|
196
198
|
exports.StatusBadge = StatusBadge.StatusBadge;
|
|
197
199
|
exports.StepCard = StepCard.StepCard;
|
|
200
|
+
exports.STEP_FLOW_DEFAULT_MAX_WIDTH = StepFlow.STEP_FLOW_DEFAULT_MAX_WIDTH;
|
|
201
|
+
exports.StepFlow = StepFlow.StepFlow;
|
|
202
|
+
exports.STEP_PROGRESS_MOBILE_BREAKPOINT = StepProgress.STEP_PROGRESS_MOBILE_BREAKPOINT;
|
|
203
|
+
exports.StepProgress = StepProgress.StepProgress;
|
|
204
|
+
exports.getStepProgressStatus = StepProgress.getStepProgressStatus;
|
|
198
205
|
exports.ValidationWarning = ValidationWarning.ValidationWarning;
|
|
199
206
|
exports.LoadingOverlay = LoadingOverlay.LoadingOverlay;
|
|
200
207
|
exports.LoadingSpinner = LoadingSpinner.LoadingSpinner;
|
|
@@ -463,6 +470,7 @@ exports.commonColors = index.commonColors;
|
|
|
463
470
|
exports.createFairmintMantineProviderProps = index.createFairmintMantineProviderProps;
|
|
464
471
|
exports.fairmintCssVariables = index.fairmintCssVariables;
|
|
465
472
|
exports.fairmintVars = index.fairmintVars;
|
|
473
|
+
exports.indigoColors = index.indigoColors;
|
|
466
474
|
exports.neutralColors = index.neutralColors;
|
|
467
475
|
exports.radii = index.radii;
|
|
468
476
|
exports.semanticColors = index.semanticColors;
|
package/dist/fairmint-ui.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fairmint-ui.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fairmint-ui.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/fairmint-ui.js
CHANGED
|
@@ -41,6 +41,8 @@ import { SearchInput } from "./components/generic/SearchInput/SearchInput.js";
|
|
|
41
41
|
import { StatCard } from "./components/generic/StatCard/StatCard.js";
|
|
42
42
|
import { StatusBadge } from "./components/generic/StatusBadge/StatusBadge.js";
|
|
43
43
|
import { StepCard } from "./components/generic/StepCard/StepCard.js";
|
|
44
|
+
import { STEP_FLOW_DEFAULT_MAX_WIDTH, StepFlow } from "./components/generic/StepFlow/StepFlow.js";
|
|
45
|
+
import { STEP_PROGRESS_MOBILE_BREAKPOINT, StepProgress, getStepProgressStatus } from "./components/generic/StepProgress/StepProgress.js";
|
|
44
46
|
import { ValidationWarning } from "./components/generic/ValidationWarning/ValidationWarning.js";
|
|
45
47
|
import { LoadingOverlay } from "./components/LoadingOverlay/LoadingOverlay.js";
|
|
46
48
|
import { LoadingSpinner } from "./components/LoadingSpinner/LoadingSpinner.js";
|
|
@@ -87,7 +89,7 @@ import { MOBILE_BREAKPOINT, useIsMobile } from "./hooks/useIsMobile.js";
|
|
|
87
89
|
import { TABLET_BREAKPOINT, useIsTablet } from "./hooks/useIsTablet.js";
|
|
88
90
|
import { notify } from "./notify.js";
|
|
89
91
|
import { closeSnackbar, enqueueSnackbar, useSnackbar } from "./snackbarCompat.js";
|
|
90
|
-
import { brandColors, commonColors, createFairmintMantineProviderProps, fairmintCssVariables, fairmintVars, neutralColors, radii, semanticColors, shadowColor, theme, typography } from "./theme/index.js";
|
|
92
|
+
import { brandColors, commonColors, createFairmintMantineProviderProps, fairmintCssVariables, fairmintVars, indigoColors, neutralColors, radii, semanticColors, shadowColor, theme, typography } from "./theme/index.js";
|
|
91
93
|
import { ETHEREUM_ADDRESS_REGEX, ZERO_ETHEREUM_ADDRESS, isEthereumAddress, truncateAddress, validateEthereumAddress } from "./utils/address.js";
|
|
92
94
|
import { getAvatarColor, getInitials } from "./utils/avatar.js";
|
|
93
95
|
import { getLogoFilter, isLightColor } from "./utils/color.js";
|
|
@@ -379,6 +381,8 @@ export {
|
|
|
379
381
|
ReplayIcon,
|
|
380
382
|
RocketIcon,
|
|
381
383
|
RocketLaunchOutlinedIcon,
|
|
384
|
+
STEP_FLOW_DEFAULT_MAX_WIDTH,
|
|
385
|
+
STEP_PROGRESS_MOBILE_BREAKPOINT,
|
|
382
386
|
SafeIcon,
|
|
383
387
|
SaveOutlinedIcon,
|
|
384
388
|
ScrollArea,
|
|
@@ -405,6 +409,8 @@ export {
|
|
|
405
409
|
StatCard,
|
|
406
410
|
StatusBadge,
|
|
407
411
|
StepCard,
|
|
412
|
+
StepFlow,
|
|
413
|
+
StepProgress,
|
|
408
414
|
Stepper,
|
|
409
415
|
StopCircleOutlinedIcon,
|
|
410
416
|
SupervisorAccountIcon,
|
|
@@ -488,10 +494,12 @@ export {
|
|
|
488
494
|
getAvatarColor,
|
|
489
495
|
getInitials,
|
|
490
496
|
getLogoFilter,
|
|
497
|
+
getStepProgressStatus,
|
|
491
498
|
getWalletDisplayName,
|
|
492
499
|
getWalletIconColor,
|
|
493
500
|
getWalletKindPill,
|
|
494
501
|
getWalletLabel,
|
|
502
|
+
indigoColors,
|
|
495
503
|
inputLabelClasses,
|
|
496
504
|
isEthereumAddress,
|
|
497
505
|
isLightColor,
|
package/dist/fairmint-ui.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fairmint-ui.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fairmint-ui.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -86,6 +86,10 @@ export type { StatusBadgeProps } from './components/generic/StatusBadge/StatusBa
|
|
|
86
86
|
export { StatusBadge } from './components/generic/StatusBadge/StatusBadge';
|
|
87
87
|
export type { StepCardProps } from './components/generic/StepCard/StepCard';
|
|
88
88
|
export { StepCard } from './components/generic/StepCard/StepCard';
|
|
89
|
+
export type { StepFlowOrientation, StepFlowProps, StepFlowStep, } from './components/generic/StepFlow/StepFlow';
|
|
90
|
+
export { STEP_FLOW_DEFAULT_MAX_WIDTH, StepFlow } from './components/generic/StepFlow/StepFlow';
|
|
91
|
+
export type { StepProgressOrientation, StepProgressProps, StepProgressStep, StepProgressStepStatus, } from './components/generic/StepProgress/StepProgress';
|
|
92
|
+
export { getStepProgressStatus, STEP_PROGRESS_MOBILE_BREAKPOINT, StepProgress, } from './components/generic/StepProgress/StepProgress';
|
|
89
93
|
export type { ValidationWarningProps } from './components/generic/ValidationWarning/ValidationWarning';
|
|
90
94
|
export { ValidationWarning } from './components/generic/ValidationWarning/ValidationWarning';
|
|
91
95
|
export type { LoadingOverlayProps } from './components/LoadingOverlay/LoadingOverlay';
|
|
@@ -149,7 +153,7 @@ export { TABLET_BREAKPOINT, useIsTablet } from './hooks/useIsTablet';
|
|
|
149
153
|
export { notify } from './notify';
|
|
150
154
|
export { closeSnackbar, enqueueSnackbar, useSnackbar } from './snackbarCompat';
|
|
151
155
|
export type { AvatarPaletteColor, FairmintColor, FairmintFontSize, FairmintResponsiveTypography, FairmintSpacing, } from './theme';
|
|
152
|
-
export { AVATAR_PALETTE, brandColors, colors, commonColors, createFairmintMantineProviderProps, fairmintCssVariables, fairmintVars, fontSizes, neutralColors, radii, responsiveTypography, semanticColors, shadowColor, spacing, theme, typography, } from './theme';
|
|
156
|
+
export { AVATAR_PALETTE, brandColors, colors, commonColors, createFairmintMantineProviderProps, fairmintCssVariables, fairmintVars, fontSizes, indigoColors, neutralColors, radii, responsiveTypography, semanticColors, shadowColor, spacing, theme, typography, } from './theme';
|
|
153
157
|
export { ETHEREUM_ADDRESS_REGEX, isEthereumAddress, truncateAddress, validateEthereumAddress, ZERO_ETHEREUM_ADDRESS, } from './utils/address';
|
|
154
158
|
export { getAvatarColor, getInitials } from './utils/avatar';
|
|
155
159
|
export { getLogoFilter, isLightColor } from './utils/color';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,YAAY,EAAE,yBAAyB,EAAE,MAAM,wDAAwD,CAAC;AACxG,OAAO,EAAE,oBAAoB,EAAE,MAAM,wDAAwD,CAAC;AAC9F,YAAY,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACzE,YAAY,EACV,0BAA0B,EAC1B,sBAAsB,GACvB,MAAM,6CAA6C,CAAC;AACrD,O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AC;AAC/E,YAAY,EACV,kBAAkB,EAClB,aAAa,EACb,gBAAgB,EAChB,4BAA4B,EAC5B,eAAe,GAChB,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,cAAc,EACd,WAAW,EACX,MAAM,EACN,YAAY,EACZ,kCAAkC,EAClC,oBAAoB,EACpB,YAAY,EACZ,SAAS,EACT,YAAY,EACZ,aAAa,EACb,KAAK,EACL,oBAAoB,EACpB,cAAc,EACd,WAAW,EACX,OAAO,EACP,KAAK,EACL,UAAU,GACX,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,sBAAsB,EACtB,iBAAiB,EACjB,eAAe,EACf,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC5D,YAAY,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC1E,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,UAAU,EACV,cAAc,EACd,YAAY,EACZ,aAAa,EACb,yBAAyB,EACzB,gBAAgB,GACjB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACd,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,EACnB,SAAS,GACV,MAAM,iBAAiB,CAAC;AAEzB,OAAO,cAAc,CAAC;AACtB,OAAO,+DAA+D,CAAC"}
|
package/dist/styles.css
CHANGED
|
@@ -77,6 +77,163 @@
|
|
|
77
77
|
.fairmint-ribbon-mark {
|
|
78
78
|
flex-shrink: 0;
|
|
79
79
|
}
|
|
80
|
+
.fairmint-step-progress {
|
|
81
|
+
width: 100%;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.fairmint-step-progress__list {
|
|
85
|
+
display: flex;
|
|
86
|
+
gap: 0.5rem;
|
|
87
|
+
width: 100%;
|
|
88
|
+
margin: 0 0 1.5rem;
|
|
89
|
+
padding: 0;
|
|
90
|
+
overflow-x: auto;
|
|
91
|
+
list-style: none;
|
|
92
|
+
scrollbar-width: none;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.fairmint-step-progress__list::-webkit-scrollbar {
|
|
96
|
+
display: none;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.fairmint-step-progress[data-orientation="vertical"] .fairmint-step-progress__list {
|
|
100
|
+
flex-direction: column;
|
|
101
|
+
margin: 0;
|
|
102
|
+
overflow: visible;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.fairmint-step-progress__item {
|
|
106
|
+
min-width: 0;
|
|
107
|
+
flex: 1 1 0;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.fairmint-step-progress[data-orientation="vertical"] .fairmint-step-progress__item {
|
|
111
|
+
flex: none;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.fairmint-step-progress__pill {
|
|
115
|
+
box-sizing: border-box;
|
|
116
|
+
display: flex;
|
|
117
|
+
align-items: center;
|
|
118
|
+
justify-content: flex-start;
|
|
119
|
+
gap: 0.5rem;
|
|
120
|
+
width: 100%;
|
|
121
|
+
min-height: 3rem;
|
|
122
|
+
padding: 0.5rem 0.75rem;
|
|
123
|
+
overflow: hidden;
|
|
124
|
+
border: 1px solid transparent;
|
|
125
|
+
border-radius: 999px;
|
|
126
|
+
background: transparent;
|
|
127
|
+
color: var(--fairmint-step-progress-text-secondary, #6c737f);
|
|
128
|
+
font: inherit;
|
|
129
|
+
text-align: left;
|
|
130
|
+
text-decoration: none;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.fairmint-step-progress__pill[data-interactive="true"] {
|
|
134
|
+
cursor: pointer;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.fairmint-step-progress__pill[data-interactive="true"]:hover {
|
|
138
|
+
background: var(--fairmint-interactive-hover-bg, #f8f9fa);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.fairmint-step-progress__pill[data-interactive="true"]:focus-visible {
|
|
142
|
+
outline: 2px solid var(--fairmint-interactive-focus-ring, #6366f1);
|
|
143
|
+
outline-offset: 2px;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.fairmint-step-progress__pill[data-state="active"] {
|
|
147
|
+
border-color: var(--fairmint-step-progress-active-border, #c7d2fe);
|
|
148
|
+
background: var(--fairmint-step-progress-surface-selected, #eef2ff);
|
|
149
|
+
color: var(--fairmint-step-progress-text-primary, #111927);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.fairmint-step-progress__indicator {
|
|
153
|
+
display: inline-flex;
|
|
154
|
+
flex: 0 0 1.5rem;
|
|
155
|
+
align-items: center;
|
|
156
|
+
justify-content: center;
|
|
157
|
+
width: 1.5rem;
|
|
158
|
+
height: 1.5rem;
|
|
159
|
+
border: 1px solid var(--fairmint-step-progress-border, #d2d6db);
|
|
160
|
+
border-radius: 50%;
|
|
161
|
+
color: var(--fairmint-step-progress-text-primary, #111927);
|
|
162
|
+
font-size: 0.875rem;
|
|
163
|
+
font-weight: 700;
|
|
164
|
+
line-height: 1;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.fairmint-step-progress__pill[data-state="active"] .fairmint-step-progress__indicator {
|
|
168
|
+
border-color: var(--fairmint-step-progress-brand, #6366f1);
|
|
169
|
+
background: var(--fairmint-step-progress-brand, #6366f1);
|
|
170
|
+
color: var(--fairmint-step-progress-active-indicator-text, #ffffff);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.fairmint-step-progress__pill[data-state="complete"] .fairmint-step-progress__indicator {
|
|
174
|
+
border-color: var(--fairmint-step-progress-complete-border, #a5b4fc);
|
|
175
|
+
background: var(--fairmint-step-progress-surface-selected, #eef2ff);
|
|
176
|
+
color: var(--fairmint-step-progress-complete-text, #4f46e5);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.fairmint-step-progress__label {
|
|
180
|
+
min-width: 0;
|
|
181
|
+
overflow: hidden;
|
|
182
|
+
text-overflow: ellipsis;
|
|
183
|
+
white-space: nowrap;
|
|
184
|
+
font-size: 1rem;
|
|
185
|
+
font-weight: 500;
|
|
186
|
+
line-height: 1.25;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.fairmint-step-progress__pill[data-state="active"] .fairmint-step-progress__label {
|
|
190
|
+
font-weight: 700;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
@media (max-width: 47.99em) {
|
|
194
|
+
.fairmint-step-progress[data-orientation="vertical"] .fairmint-step-progress__list {
|
|
195
|
+
flex-direction: row;
|
|
196
|
+
margin-bottom: 1.5rem;
|
|
197
|
+
overflow-x: auto;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.fairmint-step-progress__list {
|
|
201
|
+
padding-bottom: 0.25rem;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.fairmint-step-progress[data-orientation="vertical"] .fairmint-step-progress__item {
|
|
205
|
+
flex: 0 0 auto;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.fairmint-step-progress__pill {
|
|
209
|
+
width: auto;
|
|
210
|
+
min-width: 9rem;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
.fairmint-step-flow {
|
|
214
|
+
width: 100%;
|
|
215
|
+
max-width: var(--fairmint-step-flow-max-width, 640px);
|
|
216
|
+
min-width: 0;
|
|
217
|
+
margin-inline: auto;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.fairmint-step-flow[data-orientation="vertical"] {
|
|
221
|
+
display: grid;
|
|
222
|
+
grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr);
|
|
223
|
+
gap: 2rem;
|
|
224
|
+
align-items: start;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.fairmint-step-flow__content {
|
|
228
|
+
width: 100%;
|
|
229
|
+
min-width: 0;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
@media (max-width: 47.99em) {
|
|
233
|
+
.fairmint-step-flow[data-orientation="vertical"] {
|
|
234
|
+
display: block;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
80
237
|
:root,
|
|
81
238
|
:host {
|
|
82
239
|
color-scheme: var(--mantine-color-scheme);
|
package/dist/theme/index.cjs
CHANGED
|
@@ -194,6 +194,10 @@ const fairmintCssVariables = () => ({
|
|
|
194
194
|
"--fairmint-color-text-secondary": neutral[5],
|
|
195
195
|
"--fairmint-color-text-tertiary": neutral[4],
|
|
196
196
|
"--fairmint-color-surface-selected": indigo[0],
|
|
197
|
+
"--fairmint-color-icon-on-surface-selected": indigo[6],
|
|
198
|
+
"--fairmint-color-bg-surface": "#ffffff",
|
|
199
|
+
"--fairmint-color-bg-surface-secondary": neutral[0],
|
|
200
|
+
"--fairmint-color-border-default": neutral[2],
|
|
197
201
|
"--fairmint-interactive-hover-shadow": `0 2px 6px ${neutral[9]}0F`,
|
|
198
202
|
"--fairmint-interactive-hover-bg": neutral[0]
|
|
199
203
|
},
|
|
@@ -202,7 +206,18 @@ const fairmintCssVariables = () => ({
|
|
|
202
206
|
"--fairmint-color-text-primary": neutral[0],
|
|
203
207
|
"--fairmint-color-text-secondary": neutral[4],
|
|
204
208
|
"--fairmint-color-text-tertiary": neutral[5],
|
|
205
|
-
|
|
209
|
+
// Approved charcoal dark-mode values from PR #88 (agent/fairmint-ui-dark-mode-storybook),
|
|
210
|
+
// copied ahead of that merge so token names/values match and don't drift or conflict.
|
|
211
|
+
// "selected" reuses the same muted slate as "border" in #88's palette — a
|
|
212
|
+
// saturated indigo[9] fill here reads as too bold/inconsistent with the
|
|
213
|
+
// rest of the muted charcoal scale.
|
|
214
|
+
"--fairmint-color-surface-selected": "#2F3746",
|
|
215
|
+
// indigo[6] (the light-mode value) is too dark to read against the
|
|
216
|
+
// dark selected surface — use a light indigo instead.
|
|
217
|
+
"--fairmint-color-icon-on-surface-selected": indigo[2],
|
|
218
|
+
"--fairmint-color-bg-surface": "#17191D",
|
|
219
|
+
"--fairmint-color-bg-surface-secondary": "#1B1D21",
|
|
220
|
+
"--fairmint-color-border-default": "#2F3746",
|
|
206
221
|
"--fairmint-interactive-hover-shadow": `0 2px 6px ${neutral[0]}1A`,
|
|
207
222
|
"--fairmint-interactive-hover-bg": neutral[8]
|
|
208
223
|
}
|
|
@@ -216,6 +231,14 @@ const fairmintVars = {
|
|
|
216
231
|
colorTextTertiary: `var(--fairmint-color-text-tertiary, ${neutral[4]})`,
|
|
217
232
|
/** Background tint for selected / active rows. Adapts to color scheme. */
|
|
218
233
|
colorSurfaceSelected: `var(--fairmint-color-surface-selected, ${indigo[0]})`,
|
|
234
|
+
/** Icon/text drawn on top of colorSurfaceSelected (e.g. a checkmark in a selected badge). Adapts to color scheme. */
|
|
235
|
+
colorIconOnSurfaceSelected: `var(--fairmint-color-icon-on-surface-selected, ${indigo[6]})`,
|
|
236
|
+
/** Primary raised surface (cards/panels). Adapts to color scheme. Matches PR #88's naming. */
|
|
237
|
+
colorBgSurface: "var(--fairmint-color-bg-surface, #ffffff)",
|
|
238
|
+
/** Secondary surface for fields/rows/badges on a card. Adapts to color scheme. Matches PR #88's naming. */
|
|
239
|
+
colorBgSurfaceSecondary: `var(--fairmint-color-bg-surface-secondary, ${neutral[0]})`,
|
|
240
|
+
/** Default hairline border for cards/panels. Adapts to color scheme. Matches PR #88's naming. */
|
|
241
|
+
colorBorderDefault: `var(--fairmint-color-border-default, ${neutral[2]})`,
|
|
219
242
|
/** Large decorative watermark on error/empty pages. Adapts to color scheme. */
|
|
220
243
|
watermarkColor: `var(--fairmint-watermark-color, ${neutral[1]})`,
|
|
221
244
|
/** Heading font family (Plus Jakarta Sans). */
|
|
@@ -243,6 +266,18 @@ const commonColors = {
|
|
|
243
266
|
const shadowColor = {
|
|
244
267
|
card: "#1119271A"
|
|
245
268
|
};
|
|
269
|
+
const indigoColors = {
|
|
270
|
+
0: "#EEF2FF",
|
|
271
|
+
1: "#E0E7FF",
|
|
272
|
+
2: "#C7D2FE",
|
|
273
|
+
3: "#A5B4FC",
|
|
274
|
+
4: "#818CF8",
|
|
275
|
+
5: "#6366F1",
|
|
276
|
+
6: "#4F46E5",
|
|
277
|
+
7: "#4338CA",
|
|
278
|
+
8: "#3730A3",
|
|
279
|
+
9: "#312E81"
|
|
280
|
+
};
|
|
246
281
|
const neutralColors = {
|
|
247
282
|
50: "#F8F9FA",
|
|
248
283
|
100: "#F3F4F6",
|
|
@@ -268,6 +303,7 @@ exports.commonColors = commonColors;
|
|
|
268
303
|
exports.createFairmintMantineProviderProps = createFairmintMantineProviderProps;
|
|
269
304
|
exports.fairmintCssVariables = fairmintCssVariables;
|
|
270
305
|
exports.fairmintVars = fairmintVars;
|
|
306
|
+
exports.indigoColors = indigoColors;
|
|
271
307
|
exports.neutralColors = neutralColors;
|
|
272
308
|
exports.radii = radii;
|
|
273
309
|
exports.semanticColors = semanticColors;
|
package/dist/theme/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../src/theme/index.ts"],"sourcesContent":["import { type CSSVariablesResolver, createTheme, type MantineColorsTuple } from \"@mantine/core\";\nimport { fontSizes } from \"./fontSizes\";\nimport { spacing } from \"./spacing\";\n\n/**\n * Fairmint radius scale — single source of truth used by both the Mantine\n * theme config and the exported `radii` constant. Edit here; both stay in sync.\n */\nexport const radii = {\n xs: \"0.25rem\",\n sm: \"0.375rem\",\n md: \"0.5rem\",\n lg: \"0.75rem\",\n xl: \"1rem\",\n} as const;\n\n/**\n * Indigo palette — primary UI color.\n * Used for buttons, links, active navigation, focus rings.\n * Shade [5] (#6366F1) is the default primary.\n */\nconst indigo: MantineColorsTuple = [\n \"#EEF2FF\",\n \"#E0E7FF\",\n \"#C7D2FE\",\n \"#A5B4FC\",\n \"#818CF8\",\n \"#6366F1\",\n \"#4F46E5\",\n \"#4338CA\",\n \"#3730A3\",\n \"#312E81\",\n];\n\n/**\n * Neutral scale — replaces Mantine's default gray.\n * Used for text, borders, backgrounds, disabled states.\n */\nconst neutral: MantineColorsTuple = [\n \"#F8F9FA\",\n \"#F3F4F6\",\n \"#E5E7EB\",\n \"#D2D6DB\",\n \"#9DA4AE\",\n \"#6C737F\",\n \"#4D5761\",\n \"#2F3746\",\n \"#1C2536\",\n \"#111927\",\n];\n\n/**\n * Fairmint brand blue — accent color for gradients and brand elements.\n * Shade [5] (#0A4EFB) is the primary brand blue.\n *\n * NOTE: design/README.md lists #2D00F7 as Fairmint Blue.\n * This library uses #0A4EFB (production value from investorv2).\n */\nconst fairmintBlue: MantineColorsTuple = [\n \"#e6f0ff\",\n \"#cce0ff\",\n \"#99c2ff\",\n \"#66a3ff\",\n \"#3385ff\",\n \"#0A4EFB\",\n \"#083ec9\",\n \"#062e97\",\n \"#041f64\",\n \"#020f32\",\n];\n\n/**\n * Fairmint brand purple — accent color for gradients and brand elements.\n * Shade [5] (#9E03FF) is the primary brand purple.\n *\n * NOTE: design/README.md lists #6739FD as Fairmint Purple.\n * This library uses #9E03FF (production value from investorv2).\n */\nconst fairmintPurple: MantineColorsTuple = [\n \"#f5e6ff\",\n \"#e6ccff\",\n \"#cc99ff\",\n \"#b366ff\",\n \"#9933ff\",\n \"#9E03FF\",\n \"#7e02cc\",\n \"#5f0299\",\n \"#3f0166\",\n \"#200133\",\n];\n\nconst success: MantineColorsTuple = [\n \"#F0FDF9\",\n \"#D1FAE5\",\n \"#A7F3D0\",\n \"#6EE7B7\",\n \"#34D399\",\n \"#10B981\",\n \"#059669\",\n \"#047857\",\n \"#065F46\",\n \"#134E48\",\n];\n\nconst warning: MantineColorsTuple = [\n \"#FFFAEB\",\n \"#FEF0C7\",\n \"#FEDF89\",\n \"#FEC84B\",\n \"#FDB022\",\n \"#F79009\",\n \"#DC6803\",\n \"#B54708\",\n \"#93370D\",\n \"#7A2E0E\",\n];\n\nconst error: MantineColorsTuple = [\n \"#FEF3F2\",\n \"#FEE4E2\",\n \"#FECDCA\",\n \"#FDA29B\",\n \"#F97066\",\n \"#F04438\",\n \"#D92D20\",\n \"#B42318\",\n \"#912018\",\n \"#7A271A\",\n];\n\nconst info: MantineColorsTuple = [\n \"#ECFDFF\",\n \"#CFF9FE\",\n \"#A5F0FC\",\n \"#67E3F9\",\n \"#22CCEE\",\n \"#06AED4\",\n \"#088AB2\",\n \"#0E7090\",\n \"#155B75\",\n \"#164C63\",\n];\n\n/**\n * Typography constants — single source of truth for font families.\n * Use these instead of var(--mantine-font-family-*) in component code.\n * Declared before createTheme so the theme itself references them.\n */\nexport const typography = {\n fontFamily:\n '\"Inter\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\"',\n headingFontFamily: '\"Plus Jakarta Sans\", sans-serif',\n} as const;\n\nexport const theme = createTheme({\n primaryColor: \"indigo\",\n colors: { indigo, gray: neutral, fairmintBlue, fairmintPurple, success, warning, error, info },\n\n fontFamily: typography.fontFamily,\n headings: {\n fontFamily: typography.headingFontFamily,\n fontWeight: \"700\",\n },\n\n radius: radii,\n defaultRadius: \"md\",\n spacing,\n fontSizes: {\n xs: fontSizes.xs,\n sm: fontSizes.sm,\n md: fontSizes.md,\n lg: fontSizes.lg,\n xl: fontSizes.xl,\n },\n\n breakpoints: {\n xs: \"30em\",\n sm: \"48em\",\n md: \"64em\",\n lg: \"74em\",\n xl: \"90em\",\n },\n\n components: {\n Button: {\n defaultProps: { size: \"md\" },\n styles: {\n root: {\n fontWeight: 600,\n borderRadius: \"0.75rem\",\n textTransform: \"none\" as const,\n },\n },\n },\n TextInput: {\n defaultProps: { size: \"md\" },\n },\n Card: {\n defaultProps: {\n padding: \"lg\",\n radius: \"xl\",\n withBorder: true,\n },\n },\n Paper: {\n styles: {\n root: { backgroundImage: \"none\" },\n },\n },\n Table: {\n styles: {\n thead: {\n fontSize: \"0.75rem\",\n fontWeight: 600,\n letterSpacing: \"0.5px\",\n textTransform: \"uppercase\" as const,\n },\n },\n },\n Modal: {\n styles: {\n title: {\n fontSize: fontSizes.lg,\n fontWeight: 700,\n lineHeight: 1.3,\n },\n },\n },\n },\n});\n\n/**\n * Fairmint CSS variables resolver for MantineProvider.\n * Publishes --fairmint-* custom properties so components never reference\n * --mantine-* variables directly. All light/dark switching is centralised here.\n */\nexport const fairmintCssVariables: CSSVariablesResolver = () => ({\n variables: {\n \"--fairmint-font-headings\": typography.headingFontFamily,\n \"--fairmint-font-body\": typography.fontFamily,\n \"--fairmint-interactive-focus-ring\": indigo[5],\n },\n light: {\n \"--fairmint-watermark-color\": neutral[1],\n \"--fairmint-color-text-primary\": neutral[9],\n \"--fairmint-color-text-secondary\": neutral[5],\n \"--fairmint-color-text-tertiary\": neutral[4],\n \"--fairmint-color-surface-selected\": indigo[0],\n \"--fairmint-interactive-hover-shadow\": `0 2px 6px ${neutral[9]}0F`,\n \"--fairmint-interactive-hover-bg\": neutral[0],\n },\n dark: {\n \"--fairmint-watermark-color\": neutral[7],\n \"--fairmint-color-text-primary\": neutral[0],\n \"--fairmint-color-text-secondary\": neutral[4],\n \"--fairmint-color-text-tertiary\": neutral[5],\n \"--fairmint-color-surface-selected\": indigo[9],\n \"--fairmint-interactive-hover-shadow\": `0 2px 6px ${neutral[0]}1A`,\n \"--fairmint-interactive-hover-bg\": neutral[8],\n },\n});\n\n/**\n * Typed JS references to every --fairmint-* CSS custom property.\n * Use these in component code instead of raw \"var(--fairmint-...)\" strings so\n * that renaming a token requires one change here rather than hunting every file.\n *\n * Each value includes a CSS fallback derived from the light-mode token value so\n * that components degrade gracefully when cssVariablesResolver is not wired up\n * (e.g. bare MantineProvider in tests or custom setups). Dark-mode fidelity is\n * lost without the resolver, but nothing renders invisibly.\n */\nexport const fairmintVars = {\n /** Primary body/heading text — titles on tinted surfaces (Chip Banner). */\n colorTextPrimary: `var(--fairmint-color-text-primary, ${neutral[9]})`,\n /** Secondary / muted text — subtitles, supporting labels. Adapts to color scheme. */\n colorTextSecondary: `var(--fairmint-color-text-secondary, ${neutral[5]})`,\n /** Tertiary / faint text — timestamps, metadata. Adapts to color scheme. */\n colorTextTertiary: `var(--fairmint-color-text-tertiary, ${neutral[4]})`,\n /** Background tint for selected / active rows. Adapts to color scheme. */\n colorSurfaceSelected: `var(--fairmint-color-surface-selected, ${indigo[0]})`,\n /** Large decorative watermark on error/empty pages. Adapts to color scheme. */\n watermarkColor: `var(--fairmint-watermark-color, ${neutral[1]})`,\n /** Heading font family (Plus Jakarta Sans). */\n fontHeadings: `var(--fairmint-font-headings, ${typography.headingFontFamily})`,\n /** Body font family (Inter). */\n fontBody: `var(--fairmint-font-body, ${typography.fontFamily})`,\n} as const;\n\n/**\n * Returns the MantineProvider props required to use @fairmint/ui components.\n * Use this when you need to instantiate MantineProvider directly (e.g. in\n * Storybook decorators or server-rendering setups) instead of FairmintProvider.\n *\n * @example\n * ```tsx\n * import { MantineProvider } from \"@mantine/core\";\n * import { createFairmintMantineProviderProps } from \"@fairmint/ui\";\n *\n * <MantineProvider {...createFairmintMantineProviderProps()}>\n * <App />\n * </MantineProvider>\n * ```\n */\nexport function createFairmintMantineProviderProps(\n colorScheme: \"light\" | \"dark\" | \"auto\" = \"light\",\n) {\n return {\n theme,\n cssVariablesResolver: fairmintCssVariables,\n defaultColorScheme: colorScheme,\n } as const;\n}\n\n/** Brand colors for gradients and custom styling. */\nexport const brandColors = {\n blue: \"#0A4EFB\",\n purple: \"#9E03FF\",\n indigo: \"#6366F1\",\n gradient: \"linear-gradient(90deg, #0A4EFB 0%, #9E03FF 100%)\",\n} as const;\n\nexport const commonColors = {\n black: \"#000000\",\n white: \"#ffffff\",\n} as const;\n\n/**\n * Card/row shadow used by WalletList and similar card surfaces.\n * Equivalent to neutralColors[900] at ~10% opacity (#111927 → #1119271A).\n */\nexport const shadowColor = {\n card: \"#1119271A\",\n} as const;\n\n/** Neutral scale for direct access outside Mantine's theme system. Keys are numeric literals. */\nexport const neutralColors = {\n 50: \"#F8F9FA\",\n 100: \"#F3F4F6\",\n 200: \"#E5E7EB\",\n 300: \"#D2D6DB\",\n 400: \"#9DA4AE\",\n 500: \"#6C737F\",\n 600: \"#4D5761\",\n 700: \"#2F3746\",\n 800: \"#1C2536\",\n 900: \"#111927\",\n} as const;\n\n/** Semantic colors for status-based styling. */\nexport const semanticColors = {\n success: \"#10B981\",\n warning: \"#F79009\",\n error: \"#F04438\",\n info: \"#06AED4\",\n} as const;\n\nexport type { AvatarPaletteColor, FairmintColor } from \"./colors\";\nexport { AVATAR_PALETTE, colors } from \"./colors\";\nexport type { FairmintFontSize } from \"./fontSizes\";\nexport { fontSizes } from \"./fontSizes\";\nexport { DEFAULT_FAIRMINT_LOGO_SRC } from \"./logo\";\nexport type { FairmintResponsiveTypography } from \"./responsiveTypography\";\nexport { responsiveTypography } from \"./responsiveTypography\";\nexport type { FairmintSpacing } from \"./spacing\";\nexport { spacing } from \"./spacing\";\nexport { overlayZIndexAboveLegacyShell } from \"./zIndex\";\n"],"names":["createTheme","spacing","fontSizes"],"mappings":";;;;;AAQO,MAAM,QAAQ;AAAA,EACnB,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAOA,MAAM,SAA6B;AAAA,EACjC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAMA,MAAM,UAA8B;AAAA,EAClC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AASA,MAAM,eAAmC;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AASA,MAAM,iBAAqC;AA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AAK;AAAA,EACL,KAAK;AACP;AAGO,MAAM,iBAAiB;AAAA,EAC5B,SAAS;AAAA,EACT,SAAS;AAAA,EACT,OAAO;AAAA,EACP,MAAM;AACR;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../src/theme/index.ts"],"sourcesContent":["import { type CSSVariablesResolver, createTheme, type MantineColorsTuple } from \"@mantine/core\";\nimport { fontSizes } from \"./fontSizes\";\nimport { spacing } from \"./spacing\";\n\n/**\n * Fairmint radius scale — single source of truth used by both the Mantine\n * theme config and the exported `radii` constant. Edit here; both stay in sync.\n */\nexport const radii = {\n xs: \"0.25rem\",\n sm: \"0.375rem\",\n md: \"0.5rem\",\n lg: \"0.75rem\",\n xl: \"1rem\",\n} as const;\n\n/**\n * Indigo palette — primary UI color.\n * Used for buttons, links, active navigation, focus rings.\n * Shade [5] (#6366F1) is the default primary.\n */\nconst indigo: MantineColorsTuple = [\n \"#EEF2FF\",\n \"#E0E7FF\",\n \"#C7D2FE\",\n \"#A5B4FC\",\n \"#818CF8\",\n \"#6366F1\",\n \"#4F46E5\",\n \"#4338CA\",\n \"#3730A3\",\n \"#312E81\",\n];\n\n/**\n * Neutral scale — replaces Mantine's default gray.\n * Used for text, borders, backgrounds, disabled states.\n */\nconst neutral: MantineColorsTuple = [\n \"#F8F9FA\",\n \"#F3F4F6\",\n \"#E5E7EB\",\n \"#D2D6DB\",\n \"#9DA4AE\",\n \"#6C737F\",\n \"#4D5761\",\n \"#2F3746\",\n \"#1C2536\",\n \"#111927\",\n];\n\n/**\n * Fairmint brand blue — accent color for gradients and brand elements.\n * Shade [5] (#0A4EFB) is the primary brand blue.\n *\n * NOTE: design/README.md lists #2D00F7 as Fairmint Blue.\n * This library uses #0A4EFB (production value from investorv2).\n */\nconst fairmintBlue: MantineColorsTuple = [\n \"#e6f0ff\",\n \"#cce0ff\",\n \"#99c2ff\",\n \"#66a3ff\",\n \"#3385ff\",\n \"#0A4EFB\",\n \"#083ec9\",\n \"#062e97\",\n \"#041f64\",\n \"#020f32\",\n];\n\n/**\n * Fairmint brand purple — accent color for gradients and brand elements.\n * Shade [5] (#9E03FF) is the primary brand purple.\n *\n * NOTE: design/README.md lists #6739FD as Fairmint Purple.\n * This library uses #9E03FF (production value from investorv2).\n */\nconst fairmintPurple: MantineColorsTuple = [\n \"#f5e6ff\",\n \"#e6ccff\",\n \"#cc99ff\",\n \"#b366ff\",\n \"#9933ff\",\n \"#9E03FF\",\n \"#7e02cc\",\n \"#5f0299\",\n \"#3f0166\",\n \"#200133\",\n];\n\nconst success: MantineColorsTuple = [\n \"#F0FDF9\",\n \"#D1FAE5\",\n \"#A7F3D0\",\n \"#6EE7B7\",\n \"#34D399\",\n \"#10B981\",\n \"#059669\",\n \"#047857\",\n \"#065F46\",\n \"#134E48\",\n];\n\nconst warning: MantineColorsTuple = [\n \"#FFFAEB\",\n \"#FEF0C7\",\n \"#FEDF89\",\n \"#FEC84B\",\n \"#FDB022\",\n \"#F79009\",\n \"#DC6803\",\n \"#B54708\",\n \"#93370D\",\n \"#7A2E0E\",\n];\n\nconst error: MantineColorsTuple = [\n \"#FEF3F2\",\n \"#FEE4E2\",\n \"#FECDCA\",\n \"#FDA29B\",\n \"#F97066\",\n \"#F04438\",\n \"#D92D20\",\n \"#B42318\",\n \"#912018\",\n \"#7A271A\",\n];\n\nconst info: MantineColorsTuple = [\n \"#ECFDFF\",\n \"#CFF9FE\",\n \"#A5F0FC\",\n \"#67E3F9\",\n \"#22CCEE\",\n \"#06AED4\",\n \"#088AB2\",\n \"#0E7090\",\n \"#155B75\",\n \"#164C63\",\n];\n\n/**\n * Typography constants — single source of truth for font families.\n * Use these instead of var(--mantine-font-family-*) in component code.\n * Declared before createTheme so the theme itself references them.\n */\nexport const typography = {\n fontFamily:\n '\"Inter\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\"',\n headingFontFamily: '\"Plus Jakarta Sans\", sans-serif',\n} as const;\n\nexport const theme = createTheme({\n primaryColor: \"indigo\",\n colors: { indigo, gray: neutral, fairmintBlue, fairmintPurple, success, warning, error, info },\n\n fontFamily: typography.fontFamily,\n headings: {\n fontFamily: typography.headingFontFamily,\n fontWeight: \"700\",\n },\n\n radius: radii,\n defaultRadius: \"md\",\n spacing,\n fontSizes: {\n xs: fontSizes.xs,\n sm: fontSizes.sm,\n md: fontSizes.md,\n lg: fontSizes.lg,\n xl: fontSizes.xl,\n },\n\n breakpoints: {\n xs: \"30em\",\n sm: \"48em\",\n md: \"64em\",\n lg: \"74em\",\n xl: \"90em\",\n },\n\n components: {\n Button: {\n defaultProps: { size: \"md\" },\n styles: {\n root: {\n fontWeight: 600,\n borderRadius: \"0.75rem\",\n textTransform: \"none\" as const,\n },\n },\n },\n TextInput: {\n defaultProps: { size: \"md\" },\n },\n Card: {\n defaultProps: {\n padding: \"lg\",\n radius: \"xl\",\n withBorder: true,\n },\n },\n Paper: {\n styles: {\n root: { backgroundImage: \"none\" },\n },\n },\n Table: {\n styles: {\n thead: {\n fontSize: \"0.75rem\",\n fontWeight: 600,\n letterSpacing: \"0.5px\",\n textTransform: \"uppercase\" as const,\n },\n },\n },\n Modal: {\n styles: {\n title: {\n fontSize: fontSizes.lg,\n fontWeight: 700,\n lineHeight: 1.3,\n },\n },\n },\n },\n});\n\n/**\n * Fairmint CSS variables resolver for MantineProvider.\n * Publishes --fairmint-* custom properties so components never reference\n * --mantine-* variables directly. All light/dark switching is centralised here.\n */\nexport const fairmintCssVariables: CSSVariablesResolver = () => ({\n variables: {\n \"--fairmint-font-headings\": typography.headingFontFamily,\n \"--fairmint-font-body\": typography.fontFamily,\n \"--fairmint-interactive-focus-ring\": indigo[5],\n },\n light: {\n \"--fairmint-watermark-color\": neutral[1],\n \"--fairmint-color-text-primary\": neutral[9],\n \"--fairmint-color-text-secondary\": neutral[5],\n \"--fairmint-color-text-tertiary\": neutral[4],\n \"--fairmint-color-surface-selected\": indigo[0],\n \"--fairmint-color-icon-on-surface-selected\": indigo[6],\n \"--fairmint-color-bg-surface\": \"#ffffff\",\n \"--fairmint-color-bg-surface-secondary\": neutral[0],\n \"--fairmint-color-border-default\": neutral[2],\n \"--fairmint-interactive-hover-shadow\": `0 2px 6px ${neutral[9]}0F`,\n \"--fairmint-interactive-hover-bg\": neutral[0],\n },\n dark: {\n \"--fairmint-watermark-color\": neutral[7],\n \"--fairmint-color-text-primary\": neutral[0],\n \"--fairmint-color-text-secondary\": neutral[4],\n \"--fairmint-color-text-tertiary\": neutral[5],\n // Approved charcoal dark-mode values from PR #88 (agent/fairmint-ui-dark-mode-storybook),\n // copied ahead of that merge so token names/values match and don't drift or conflict.\n // \"selected\" reuses the same muted slate as \"border\" in #88's palette — a\n // saturated indigo[9] fill here reads as too bold/inconsistent with the\n // rest of the muted charcoal scale.\n \"--fairmint-color-surface-selected\": \"#2F3746\",\n // indigo[6] (the light-mode value) is too dark to read against the\n // dark selected surface — use a light indigo instead.\n \"--fairmint-color-icon-on-surface-selected\": indigo[2],\n \"--fairmint-color-bg-surface\": \"#17191D\",\n \"--fairmint-color-bg-surface-secondary\": \"#1B1D21\",\n \"--fairmint-color-border-default\": \"#2F3746\",\n \"--fairmint-interactive-hover-shadow\": `0 2px 6px ${neutral[0]}1A`,\n \"--fairmint-interactive-hover-bg\": neutral[8],\n },\n});\n\n/**\n * Typed JS references to every --fairmint-* CSS custom property.\n * Use these in component code instead of raw \"var(--fairmint-...)\" strings so\n * that renaming a token requires one change here rather than hunting every file.\n *\n * Each value includes a CSS fallback derived from the light-mode token value so\n * that components degrade gracefully when cssVariablesResolver is not wired up\n * (e.g. bare MantineProvider in tests or custom setups). Dark-mode fidelity is\n * lost without the resolver, but nothing renders invisibly.\n */\nexport const fairmintVars = {\n /** Primary body/heading text — titles on tinted surfaces (Chip Banner). */\n colorTextPrimary: `var(--fairmint-color-text-primary, ${neutral[9]})`,\n /** Secondary / muted text — subtitles, supporting labels. Adapts to color scheme. */\n colorTextSecondary: `var(--fairmint-color-text-secondary, ${neutral[5]})`,\n /** Tertiary / faint text — timestamps, metadata. Adapts to color scheme. */\n colorTextTertiary: `var(--fairmint-color-text-tertiary, ${neutral[4]})`,\n /** Background tint for selected / active rows. Adapts to color scheme. */\n colorSurfaceSelected: `var(--fairmint-color-surface-selected, ${indigo[0]})`,\n /** Icon/text drawn on top of colorSurfaceSelected (e.g. a checkmark in a selected badge). Adapts to color scheme. */\n colorIconOnSurfaceSelected: `var(--fairmint-color-icon-on-surface-selected, ${indigo[6]})`,\n /** Primary raised surface (cards/panels). Adapts to color scheme. Matches PR #88's naming. */\n colorBgSurface: \"var(--fairmint-color-bg-surface, #ffffff)\",\n /** Secondary surface for fields/rows/badges on a card. Adapts to color scheme. Matches PR #88's naming. */\n colorBgSurfaceSecondary: `var(--fairmint-color-bg-surface-secondary, ${neutral[0]})`,\n /** Default hairline border for cards/panels. Adapts to color scheme. Matches PR #88's naming. */\n colorBorderDefault: `var(--fairmint-color-border-default, ${neutral[2]})`,\n /** Large decorative watermark on error/empty pages. Adapts to color scheme. */\n watermarkColor: `var(--fairmint-watermark-color, ${neutral[1]})`,\n /** Heading font family (Plus Jakarta Sans). */\n fontHeadings: `var(--fairmint-font-headings, ${typography.headingFontFamily})`,\n /** Body font family (Inter). */\n fontBody: `var(--fairmint-font-body, ${typography.fontFamily})`,\n} as const;\n\n/**\n * Returns the MantineProvider props required to use @fairmint/ui components.\n * Use this when you need to instantiate MantineProvider directly (e.g. in\n * Storybook decorators or server-rendering setups) instead of FairmintProvider.\n *\n * @example\n * ```tsx\n * import { MantineProvider } from \"@mantine/core\";\n * import { createFairmintMantineProviderProps } from \"@fairmint/ui\";\n *\n * <MantineProvider {...createFairmintMantineProviderProps()}>\n * <App />\n * </MantineProvider>\n * ```\n */\nexport function createFairmintMantineProviderProps(\n colorScheme: \"light\" | \"dark\" | \"auto\" = \"light\",\n) {\n return {\n theme,\n cssVariablesResolver: fairmintCssVariables,\n defaultColorScheme: colorScheme,\n } as const;\n}\n\n/** Brand colors for gradients and custom styling. */\nexport const brandColors = {\n blue: \"#0A4EFB\",\n purple: \"#9E03FF\",\n indigo: \"#6366F1\",\n gradient: \"linear-gradient(90deg, #0A4EFB 0%, #9E03FF 100%)\",\n} as const;\n\nexport const commonColors = {\n black: \"#000000\",\n white: \"#ffffff\",\n} as const;\n\n/**\n * Card/row shadow used by WalletList and similar card surfaces.\n * Equivalent to neutralColors[900] at ~10% opacity (#111927 → #1119271A).\n */\nexport const shadowColor = {\n card: \"#1119271A\",\n} as const;\n\n/** Indigo scale for direct access outside Mantine's theme system. Keys are numeric literals. */\nexport const indigoColors = {\n 0: \"#EEF2FF\",\n 1: \"#E0E7FF\",\n 2: \"#C7D2FE\",\n 3: \"#A5B4FC\",\n 4: \"#818CF8\",\n 5: \"#6366F1\",\n 6: \"#4F46E5\",\n 7: \"#4338CA\",\n 8: \"#3730A3\",\n 9: \"#312E81\",\n} as const;\n\n/** Neutral scale for direct access outside Mantine's theme system. Keys are numeric literals. */\nexport const neutralColors = {\n 50: \"#F8F9FA\",\n 100: \"#F3F4F6\",\n 200: \"#E5E7EB\",\n 300: \"#D2D6DB\",\n 400: \"#9DA4AE\",\n 500: \"#6C737F\",\n 600: \"#4D5761\",\n 700: \"#2F3746\",\n 800: \"#1C2536\",\n 900: \"#111927\",\n} as const;\n\n/** Semantic colors for status-based styling. */\nexport const semanticColors = {\n success: \"#10B981\",\n warning: \"#F79009\",\n error: \"#F04438\",\n info: \"#06AED4\",\n} as const;\n\nexport type { AvatarPaletteColor, FairmintColor } from \"./colors\";\nexport { AVATAR_PALETTE, colors } from \"./colors\";\nexport type { FairmintFontSize } from \"./fontSizes\";\nexport { fontSizes } from \"./fontSizes\";\nexport { DEFAULT_FAIRMINT_LOGO_SRC } from \"./logo\";\nexport type { FairmintResponsiveTypography } from \"./responsiveTypography\";\nexport { responsiveTypography } from \"./responsiveTypography\";\nexport type { FairmintSpacing } from \"./spacing\";\nexport { spacing } from \"./spacing\";\nexport { overlayZIndexAboveLegacyShell } from \"./zIndex\";\n"],"names":["createTheme","spacing","fontSizes"],"mappings":";;;;;AAQO,MAAM,QAAQ;AAAA,EACnB,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAOA,MAAM,SAA6B;AAAA,EACjC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAMA,MAAM,UAA8B;AAAA,EAClC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AASA,MAAM,eAAmC;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AASA,MAAM,iBAAqC;AAAA,EACzC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEA,MAAM,UAA8B;AAAA,EAClC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEA,MAAM,UAA8B;AAAA,EAClC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEA,MAAM,QAA4B;AAAA,EAChC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEA,MAAM,OAA2B;AAAA,EAC/B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;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,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AACP;AAGO,MAAM,iBAAiB;AAAA,EAC5B,SAAS;AAAA,EACT,SAAS;AAAA,EACT,OAAO;AAAA,EACP,MAAM;AACR;;;;;;;;;;;;;;;"}
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -185,6 +185,14 @@ export declare const fairmintVars: {
|
|
|
185
185
|
readonly colorTextTertiary: `var(--fairmint-color-text-tertiary, ${string})`;
|
|
186
186
|
/** Background tint for selected / active rows. Adapts to color scheme. */
|
|
187
187
|
readonly colorSurfaceSelected: `var(--fairmint-color-surface-selected, ${string})`;
|
|
188
|
+
/** Icon/text drawn on top of colorSurfaceSelected (e.g. a checkmark in a selected badge). Adapts to color scheme. */
|
|
189
|
+
readonly colorIconOnSurfaceSelected: `var(--fairmint-color-icon-on-surface-selected, ${string})`;
|
|
190
|
+
/** Primary raised surface (cards/panels). Adapts to color scheme. Matches PR #88's naming. */
|
|
191
|
+
readonly colorBgSurface: "var(--fairmint-color-bg-surface, #ffffff)";
|
|
192
|
+
/** Secondary surface for fields/rows/badges on a card. Adapts to color scheme. Matches PR #88's naming. */
|
|
193
|
+
readonly colorBgSurfaceSecondary: `var(--fairmint-color-bg-surface-secondary, ${string})`;
|
|
194
|
+
/** Default hairline border for cards/panels. Adapts to color scheme. Matches PR #88's naming. */
|
|
195
|
+
readonly colorBorderDefault: `var(--fairmint-color-border-default, ${string})`;
|
|
188
196
|
/** Large decorative watermark on error/empty pages. Adapts to color scheme. */
|
|
189
197
|
readonly watermarkColor: `var(--fairmint-watermark-color, ${string})`;
|
|
190
198
|
/** Heading font family (Plus Jakarta Sans). */
|
|
@@ -370,6 +378,19 @@ export declare const commonColors: {
|
|
|
370
378
|
export declare const shadowColor: {
|
|
371
379
|
readonly card: "#1119271A";
|
|
372
380
|
};
|
|
381
|
+
/** Indigo scale for direct access outside Mantine's theme system. Keys are numeric literals. */
|
|
382
|
+
export declare const indigoColors: {
|
|
383
|
+
readonly 0: "#EEF2FF";
|
|
384
|
+
readonly 1: "#E0E7FF";
|
|
385
|
+
readonly 2: "#C7D2FE";
|
|
386
|
+
readonly 3: "#A5B4FC";
|
|
387
|
+
readonly 4: "#818CF8";
|
|
388
|
+
readonly 5: "#6366F1";
|
|
389
|
+
readonly 6: "#4F46E5";
|
|
390
|
+
readonly 7: "#4338CA";
|
|
391
|
+
readonly 8: "#3730A3";
|
|
392
|
+
readonly 9: "#312E81";
|
|
393
|
+
};
|
|
373
394
|
/** Neutral scale for direct access outside Mantine's theme system. Keys are numeric literals. */
|
|
374
395
|
export declare const neutralColors: {
|
|
375
396
|
readonly 50: "#F8F9FA";
|