@fairmint/ui 0.3.24 → 0.3.26
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/Banner/Banner.cjs +1 -1
- package/dist/components/generic/Banner/Banner.cjs.map +1 -1
- package/dist/components/generic/Banner/Banner.js +1 -1
- package/dist/components/generic/Banner/Banner.js.map +1 -1
- package/dist/components/generic/TaskInboxPopover/TaskInboxPopover.cjs +72 -0
- package/dist/components/generic/TaskInboxPopover/TaskInboxPopover.cjs.map +1 -0
- package/dist/components/generic/TaskInboxPopover/TaskInboxPopover.d.ts +36 -0
- package/dist/components/generic/TaskInboxPopover/TaskInboxPopover.d.ts.map +1 -0
- package/dist/components/generic/TaskInboxPopover/TaskInboxPopover.js +72 -0
- package/dist/components/generic/TaskInboxPopover/TaskInboxPopover.js.map +1 -0
- package/dist/components/generic/TaskRow/TaskRow.cjs +31 -6
- package/dist/components/generic/TaskRow/TaskRow.cjs.map +1 -1
- package/dist/components/generic/TaskRow/TaskRow.d.ts.map +1 -1
- package/dist/components/generic/TaskRow/TaskRow.js +31 -6
- package/dist/components/generic/TaskRow/TaskRow.js.map +1 -1
- package/dist/components/primitives/Popover/Popover.cjs +13 -0
- package/dist/components/primitives/Popover/Popover.cjs.map +1 -0
- package/dist/components/primitives/Popover/Popover.d.ts +19 -0
- package/dist/components/primitives/Popover/Popover.d.ts.map +1 -0
- package/dist/components/primitives/Popover/Popover.js +13 -0
- package/dist/components/primitives/Popover/Popover.js.map +1 -0
- package/dist/components/primitives/index.d.ts +1 -0
- package/dist/components/primitives/index.d.ts.map +1 -1
- package/dist/fairmint-ui.cjs +4 -0
- package/dist/fairmint-ui.cjs.map +1 -1
- package/dist/fairmint-ui.js +4 -0
- package/dist/fairmint-ui.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +1 -1
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +1 -1
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +1 -1
- package/dist/notify.cjs +1 -1
- package/dist/notify.cjs.map +1 -1
- package/dist/notify.js +1 -1
- package/dist/notify.js.map +1 -1
- package/dist/styles.css +18 -0
- package/dist/theme/colors.cjs.map +1 -1
- package/dist/theme/colors.d.ts +16 -0
- package/dist/theme/colors.d.ts.map +1 -1
- package/dist/theme/colors.js.map +1 -1
- package/package.json +1 -1
|
@@ -73,14 +73,17 @@ function TaskRow({
|
|
|
73
73
|
py: 10,
|
|
74
74
|
w: "100%",
|
|
75
75
|
miw: 0,
|
|
76
|
+
maw: "100%",
|
|
76
77
|
style: {
|
|
77
78
|
background: isCritical ? CRITICAL_ROW_BACKGROUND : fairmintVars.colorBgSurface,
|
|
78
79
|
border: isList ? "none" : `1px solid ${fairmintVars.colorBorderDefault}`,
|
|
79
80
|
borderBottom: isList && withDivider ? `1px solid ${fairmintVars.colorBorderDefault}` : void 0,
|
|
80
|
-
borderRadius: isList ? 0 : 10
|
|
81
|
+
borderRadius: isList ? 0 : 10,
|
|
82
|
+
overflow: "hidden",
|
|
83
|
+
boxSizing: "border-box"
|
|
81
84
|
},
|
|
82
|
-
children: /* @__PURE__ */ jsxs(Group, { align: "center", gap: "sm", justify: "space-between", wrap: "nowrap", children: [
|
|
83
|
-
/* @__PURE__ */ jsxs(Stack, { gap: 4, miw: 0, style: { flex: 1 }, children: [
|
|
85
|
+
children: /* @__PURE__ */ jsxs(Group, { align: "center", gap: "sm", justify: "space-between", wrap: "nowrap", miw: 0, w: "100%", children: [
|
|
86
|
+
/* @__PURE__ */ jsxs(Stack, { gap: 4, miw: 0, style: { flex: "1 1 auto", overflow: "hidden" }, children: [
|
|
84
87
|
/* @__PURE__ */ jsx(
|
|
85
88
|
Text,
|
|
86
89
|
{
|
|
@@ -103,7 +106,7 @@ function TaskRow({
|
|
|
103
106
|
lineClamp: 2,
|
|
104
107
|
size: "sm",
|
|
105
108
|
c: fairmintVars.colorTextPrimary,
|
|
106
|
-
style: { minWidth: 0 },
|
|
109
|
+
style: { minWidth: 0, overflowWrap: "anywhere" },
|
|
107
110
|
children: title
|
|
108
111
|
}
|
|
109
112
|
),
|
|
@@ -113,7 +116,7 @@ function TaskRow({
|
|
|
113
116
|
c: fairmintVars.colorTextSecondary,
|
|
114
117
|
lineClamp: 2,
|
|
115
118
|
size: "sm",
|
|
116
|
-
style: { minWidth: 0 },
|
|
119
|
+
style: { minWidth: 0, overflowWrap: "anywhere" },
|
|
117
120
|
children: description
|
|
118
121
|
}
|
|
119
122
|
) : null
|
|
@@ -126,6 +129,19 @@ function TaskRow({
|
|
|
126
129
|
color: colors.primary,
|
|
127
130
|
size: "sm",
|
|
128
131
|
variant: isCritical ? "filled" : "light",
|
|
132
|
+
styles: {
|
|
133
|
+
root: {
|
|
134
|
+
// Keep CTA + dismiss inside the 420px inbox without x-scroll.
|
|
135
|
+
maxWidth: 148,
|
|
136
|
+
minWidth: 0,
|
|
137
|
+
overflow: "hidden"
|
|
138
|
+
},
|
|
139
|
+
label: {
|
|
140
|
+
overflow: "hidden",
|
|
141
|
+
textOverflow: "ellipsis",
|
|
142
|
+
whiteSpace: "nowrap"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
129
145
|
children: actionLabel
|
|
130
146
|
}
|
|
131
147
|
),
|
|
@@ -134,8 +150,17 @@ function TaskRow({
|
|
|
134
150
|
{
|
|
135
151
|
"aria-label": dismissLabel,
|
|
136
152
|
color: colors.neutral,
|
|
137
|
-
onClick:
|
|
153
|
+
onClick: (event) => {
|
|
154
|
+
event.preventDefault();
|
|
155
|
+
event.stopPropagation();
|
|
156
|
+
onDismiss();
|
|
157
|
+
},
|
|
158
|
+
onMouseDown: (event) => {
|
|
159
|
+
event.preventDefault();
|
|
160
|
+
event.stopPropagation();
|
|
161
|
+
},
|
|
138
162
|
size: "md",
|
|
163
|
+
style: { flexShrink: 0 },
|
|
139
164
|
variant: "subtle",
|
|
140
165
|
children: /* @__PURE__ */ jsx(DefaultDismissIcon, {})
|
|
141
166
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskRow.js","sources":["../../../../src/components/generic/TaskRow/TaskRow.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { fairmintVars } from \"../../../theme\";\nimport { colors } from \"../../../theme/colors\";\nimport { ActionIcon } from \"../../primitives/ActionIcon/ActionIcon\";\nimport { Button, type ButtonProps } from \"../../primitives/Button/Button\";\nimport { Box, Group, Stack, Text } from \"../../primitives/layout\";\n\nexport type TaskRowPriority = \"critical\" | \"high\" | \"medium\" | \"low\";\n\nexport type TaskRowVariant = \"standalone\" | \"list\";\n\nexport interface TaskRowActionProps\n extends Omit<ButtonProps, \"children\" | \"color\" | \"variant\" | \"size\"> {\n /** Visible primary CTA label. */\n label: ReactNode;\n}\n\nexport interface TaskRowProps {\n /** Priority / urgency affordance. @default \"medium\" */\n priority?: TaskRowPriority;\n /**\n * Severity label shown above the title in uppercase plain text.\n * Defaults to the capitalized priority name (for example, \"Critical\", \"High\").\n */\n priorityLabel?: string;\n /** Task title. */\n title: string;\n /** Supporting description. */\n description: string;\n /**\n * Caller-formatted due date or age (for example, \"Due today\", \"3 days ago\").\n * Included in the accessible name when provided; not shown beside the CTA.\n */\n timingLabel?: string;\n /** Primary workflow CTA. */\n action: TaskRowActionProps;\n /**\n * Layout presentation. Use `list` inside a shared bordered stack so rows\n * sit flush with no card gaps. @default \"standalone\"\n */\n variant?: TaskRowVariant;\n /**\n * When `variant=\"list\"`, draw a bottom divider. Set false on the last row.\n * @default true\n */\n withDivider?: boolean;\n /** Optional dismiss or snooze handler. */\n onDismiss?: () => void;\n /** Accessible label for the dismiss control. @default \"Dismiss task\" */\n dismissLabel?: string;\n /** Accessible label for the row. Defaults to title plus timing when provided. */\n ariaLabel?: string;\n className?: string;\n}\n\nconst PRIORITY_SEVERITY_COLORS = {\n critical: fairmintVars.colorErrorText,\n // Mid warning ramp (amber) — clearer than warning-text/solid brown vs error red.\n high: \"warning.5\",\n medium: \"warning.5\",\n low: fairmintVars.colorTextTertiary,\n} as const;\n\nconst DEFAULT_PRIORITY_LABELS: Record<TaskRowPriority, string> = {\n critical: \"Critical\",\n high: \"High\",\n medium: \"Medium\",\n low: \"Low\",\n};\n\n/** Soft critical tint that stays readable in Light and Dark (avoids solid error-bg in dark). */\nconst CRITICAL_ROW_BACKGROUND = `color-mix(in srgb, ${fairmintVars.colorErrorSolid} 18%, ${fairmintVars.colorBgSurface})`;\n\nfunction DefaultDismissIcon() {\n return (\n <svg\n aria-hidden=\"true\"\n width=\"14\"\n height=\"14\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n );\n}\n\n/**\n * Presentational durable-task row for Studio Tasks and future Investor inbox work.\n *\n * Owns uppercase severity text above the title, description, a right-pinned\n * vertically centered `sm` primary CTA, and optional dismiss. Only `critical`\n * priority receives a semantic fill; non-critical rows stay on the neutral\n * list surface. The owning workflow resolves completion; this row does not\n * infer resolution from dismiss.\n */\nexport function TaskRow({\n action,\n ariaLabel,\n className,\n description,\n dismissLabel = \"Dismiss task\",\n onDismiss,\n priority = \"medium\",\n priorityLabel,\n timingLabel,\n title,\n variant = \"standalone\",\n withDivider = true,\n}: TaskRowProps) {\n const resolvedSeverityLabel = priorityLabel ?? DEFAULT_PRIORITY_LABELS[priority];\n const resolvedAriaLabel =\n ariaLabel ??\n (timingLabel\n ? `${title}. ${resolvedSeverityLabel} priority. ${timingLabel}`\n : `${title}. ${resolvedSeverityLabel} priority`);\n const isCritical = priority === \"critical\";\n const isList = variant === \"list\";\n const hasDescription = description.trim().length > 0;\n const { label: actionLabel, ...actionProps } = action;\n\n return (\n <Box\n aria-label={resolvedAriaLabel}\n role=\"group\"\n className={className}\n data-priority={priority}\n data-testid=\"task-row\"\n data-variant={variant}\n px=\"sm\"\n py={10}\n w=\"100%\"\n miw={0}\n style={{\n background: isCritical ? CRITICAL_ROW_BACKGROUND : fairmintVars.colorBgSurface,\n border: isList ? \"none\" : `1px solid ${fairmintVars.colorBorderDefault}`,\n borderBottom:\n isList && withDivider ? `1px solid ${fairmintVars.colorBorderDefault}` : undefined,\n borderRadius: isList ? 0 : 10,\n }}\n >\n <Group align=\"center\" gap=\"sm\" justify=\"space-between\" wrap=\"nowrap\">\n <Stack gap={4} miw={0} style={{ flex: 1 }}>\n <Text\n aria-hidden\n c={PRIORITY_SEVERITY_COLORS[priority]}\n fw={650}\n size=\"xs\"\n style={{\n letterSpacing: \"0.03em\",\n lineHeight: 1.2,\n textTransform: \"uppercase\",\n }}\n >\n {resolvedSeverityLabel}\n </Text>\n\n <Text\n fw={600}\n lineClamp={2}\n size=\"sm\"\n c={fairmintVars.colorTextPrimary}\n style={{ minWidth: 0 }}\n >\n {title}\n </Text>\n\n {hasDescription ? (\n <Text\n c={fairmintVars.colorTextSecondary}\n lineClamp={2}\n size=\"sm\"\n style={{ minWidth: 0 }}\n >\n {description}\n </Text>\n ) : null}\n </Stack>\n\n <Group align=\"center\" gap=\"xs\" wrap=\"nowrap\" style={{ flexShrink: 0 }}>\n <Button\n {...actionProps}\n color={colors.primary}\n size=\"sm\"\n variant={isCritical ? \"filled\" : \"light\"}\n >\n {actionLabel}\n </Button>\n {onDismiss ? (\n <ActionIcon\n aria-label={dismissLabel}\n color={colors.neutral}\n onClick={onDismiss}\n size=\"md\"\n variant=\"subtle\"\n >\n <DefaultDismissIcon />\n </ActionIcon>\n ) : null}\n </Group>\n </Group>\n </Box>\n );\n}\n"],"names":[],"mappings":";;;;;;;;AAuDA,MAAM,2BAA2B;AAAA,EAC/B,UAAU,aAAa;AAAA;AAAA,EAEvB,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,KAAK,aAAa;AACpB;AAEA,MAAM,0BAA2D;AAA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AAA,UAAA;AAAA,UAEF,YACC;AAAA,YAAC;AAAA,YAAA;AAAA,cACC,cAAY;AAAA,cACZ,OAAO,OAAO;AAAA,cACd,SAAS;AAAA,cACT,MAAK;AAAA,cACL,SAAQ;AAAA,cAER,8BAAC,oBAAA,CAAA,CAAmB;AAAA,YAAA;AAAA,UAAA,IAEpB;AAAA,QAAA,EAAA,CACN;AAAA,MAAA,EAAA,CACF;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|
|
1
|
+
{"version":3,"file":"TaskRow.js","sources":["../../../../src/components/generic/TaskRow/TaskRow.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { fairmintVars } from \"../../../theme\";\nimport { colors } from \"../../../theme/colors\";\nimport { ActionIcon } from \"../../primitives/ActionIcon/ActionIcon\";\nimport { Button, type ButtonProps } from \"../../primitives/Button/Button\";\nimport { Box, Group, Stack, Text } from \"../../primitives/layout\";\n\nexport type TaskRowPriority = \"critical\" | \"high\" | \"medium\" | \"low\";\n\nexport type TaskRowVariant = \"standalone\" | \"list\";\n\nexport interface TaskRowActionProps\n extends Omit<ButtonProps, \"children\" | \"color\" | \"variant\" | \"size\"> {\n /** Visible primary CTA label. */\n label: ReactNode;\n}\n\nexport interface TaskRowProps {\n /** Priority / urgency affordance. @default \"medium\" */\n priority?: TaskRowPriority;\n /**\n * Severity label shown above the title in uppercase plain text.\n * Defaults to the capitalized priority name (for example, \"Critical\", \"High\").\n */\n priorityLabel?: string;\n /** Task title. */\n title: string;\n /** Supporting description. */\n description: string;\n /**\n * Caller-formatted due date or age (for example, \"Due today\", \"3 days ago\").\n * Included in the accessible name when provided; not shown beside the CTA.\n */\n timingLabel?: string;\n /** Primary workflow CTA. */\n action: TaskRowActionProps;\n /**\n * Layout presentation. Use `list` inside a shared bordered stack so rows\n * sit flush with no card gaps. @default \"standalone\"\n */\n variant?: TaskRowVariant;\n /**\n * When `variant=\"list\"`, draw a bottom divider. Set false on the last row.\n * @default true\n */\n withDivider?: boolean;\n /** Optional dismiss or snooze handler. */\n onDismiss?: () => void;\n /** Accessible label for the dismiss control. @default \"Dismiss task\" */\n dismissLabel?: string;\n /** Accessible label for the row. Defaults to title plus timing when provided. */\n ariaLabel?: string;\n className?: string;\n}\n\nconst PRIORITY_SEVERITY_COLORS = {\n critical: fairmintVars.colorErrorText,\n // Mid warning ramp (amber) — clearer than warning-text/solid brown vs error red.\n high: \"warning.5\",\n medium: \"warning.5\",\n low: fairmintVars.colorTextTertiary,\n} as const;\n\nconst DEFAULT_PRIORITY_LABELS: Record<TaskRowPriority, string> = {\n critical: \"Critical\",\n high: \"High\",\n medium: \"Medium\",\n low: \"Low\",\n};\n\n/** Soft critical tint that stays readable in Light and Dark (avoids solid error-bg in dark). */\nconst CRITICAL_ROW_BACKGROUND = `color-mix(in srgb, ${fairmintVars.colorErrorSolid} 18%, ${fairmintVars.colorBgSurface})`;\n\nfunction DefaultDismissIcon() {\n return (\n <svg\n aria-hidden=\"true\"\n width=\"14\"\n height=\"14\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n );\n}\n\n/**\n * Presentational durable-task row for Studio Tasks and future Investor inbox work.\n *\n * Owns uppercase severity text above the title, description, a right-pinned\n * vertically centered `sm` primary CTA, and optional dismiss. Only `critical`\n * priority receives a semantic fill; non-critical rows stay on the neutral\n * list surface. The owning workflow resolves completion; this row does not\n * infer resolution from dismiss.\n */\nexport function TaskRow({\n action,\n ariaLabel,\n className,\n description,\n dismissLabel = \"Dismiss task\",\n onDismiss,\n priority = \"medium\",\n priorityLabel,\n timingLabel,\n title,\n variant = \"standalone\",\n withDivider = true,\n}: TaskRowProps) {\n const resolvedSeverityLabel = priorityLabel ?? DEFAULT_PRIORITY_LABELS[priority];\n const resolvedAriaLabel =\n ariaLabel ??\n (timingLabel\n ? `${title}. ${resolvedSeverityLabel} priority. ${timingLabel}`\n : `${title}. ${resolvedSeverityLabel} priority`);\n const isCritical = priority === \"critical\";\n const isList = variant === \"list\";\n const hasDescription = description.trim().length > 0;\n const { label: actionLabel, ...actionProps } = action;\n\n return (\n <Box\n aria-label={resolvedAriaLabel}\n role=\"group\"\n className={className}\n data-priority={priority}\n data-testid=\"task-row\"\n data-variant={variant}\n px=\"sm\"\n py={10}\n w=\"100%\"\n miw={0}\n maw=\"100%\"\n style={{\n background: isCritical ? CRITICAL_ROW_BACKGROUND : fairmintVars.colorBgSurface,\n border: isList ? \"none\" : `1px solid ${fairmintVars.colorBorderDefault}`,\n borderBottom:\n isList && withDivider ? `1px solid ${fairmintVars.colorBorderDefault}` : undefined,\n borderRadius: isList ? 0 : 10,\n overflow: \"hidden\",\n boxSizing: \"border-box\",\n }}\n >\n <Group align=\"center\" gap=\"sm\" justify=\"space-between\" wrap=\"nowrap\" miw={0} w=\"100%\">\n <Stack gap={4} miw={0} style={{ flex: \"1 1 auto\", overflow: \"hidden\" }}>\n <Text\n aria-hidden\n c={PRIORITY_SEVERITY_COLORS[priority]}\n fw={650}\n size=\"xs\"\n style={{\n letterSpacing: \"0.03em\",\n lineHeight: 1.2,\n textTransform: \"uppercase\",\n }}\n >\n {resolvedSeverityLabel}\n </Text>\n\n <Text\n fw={600}\n lineClamp={2}\n size=\"sm\"\n c={fairmintVars.colorTextPrimary}\n style={{ minWidth: 0, overflowWrap: \"anywhere\" }}\n >\n {title}\n </Text>\n\n {hasDescription ? (\n <Text\n c={fairmintVars.colorTextSecondary}\n lineClamp={2}\n size=\"sm\"\n style={{ minWidth: 0, overflowWrap: \"anywhere\" }}\n >\n {description}\n </Text>\n ) : null}\n </Stack>\n\n <Group align=\"center\" gap=\"xs\" wrap=\"nowrap\" style={{ flexShrink: 0 }}>\n <Button\n {...actionProps}\n color={colors.primary}\n size=\"sm\"\n variant={isCritical ? \"filled\" : \"light\"}\n styles={{\n root: {\n // Keep CTA + dismiss inside the 420px inbox without x-scroll.\n maxWidth: 148,\n minWidth: 0,\n overflow: \"hidden\",\n },\n label: {\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n whiteSpace: \"nowrap\",\n },\n }}\n >\n {actionLabel}\n </Button>\n {onDismiss ? (\n <ActionIcon\n aria-label={dismissLabel}\n color={colors.neutral}\n onClick={(event) => {\n // Keep the owning popover/dropdown open and make sure the\n // dismiss handler always receives the click (scroll overlays /\n // focus transfers can otherwise swallow it).\n event.preventDefault();\n event.stopPropagation();\n onDismiss();\n }}\n onMouseDown={(event) => {\n event.preventDefault();\n event.stopPropagation();\n }}\n size=\"md\"\n style={{ flexShrink: 0 }}\n variant=\"subtle\"\n >\n <DefaultDismissIcon />\n </ActionIcon>\n ) : null}\n </Group>\n </Group>\n </Box>\n );\n}\n"],"names":[],"mappings":";;;;;;;;AAuDA,MAAM,2BAA2B;AAAA,EAC/B,UAAU,aAAa;AAAA;AAAA,EAEvB,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,KAAK,aAAa;AACpB;AAEA,MAAM,0BAA2D;AAAA,EAC/D,UAAU;AAAA,EACV,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,KAAK;AACP;AAGA,MAAM,0BAA0B,sBAAsB,aAAa,eAAe,SAAS,aAAa,cAAc;AAEtH,SAAS,qBAAqB;AAC5B,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,eAAY;AAAA,MACZ,OAAM;AAAA,MACN,QAAO;AAAA,MACP,SAAQ;AAAA,MACR,MAAK;AAAA,MACL,QAAO;AAAA,MACP,aAAY;AAAA,MACZ,eAAc;AAAA,MACd,gBAAe;AAAA,MAEf,UAAA;AAAA,QAAA,oBAAC,QAAA,EAAK,GAAE,aAAA,CAAa;AAAA,QACrB,oBAAC,QAAA,EAAK,GAAE,aAAA,CAAa;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAG3B;AAWO,SAAS,QAAQ;AAAA,EACtB;AAAA,EACA;AAAA,EACA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M,eAAA;AACN,sBAAM,gBAAA;AAAA,cACR;AAAA,cACA,MAAK;AAAA,cACL,OAAO,EAAE,YAAY,EAAA;AAAA,cACrB,SAAQ;AAAA,cAER,8BAAC,oBAAA,CAAA,CAAmB;AAAA,YAAA;AAAA,UAAA,IAEpB;AAAA,QAAA,EAAA,CACN;AAAA,MAAA,EAAA,CACF;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const Popover$1 = require("../../../node_modules/@mantine/core/esm/components/Popover/Popover.cjs");
|
|
5
|
+
function PopoverBase(props) {
|
|
6
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Popover$1.Popover, { shadow: "md", ...props });
|
|
7
|
+
}
|
|
8
|
+
const Popover = Object.assign(PopoverBase, {
|
|
9
|
+
Target: Popover$1.Popover.Target,
|
|
10
|
+
Dropdown: Popover$1.Popover.Dropdown
|
|
11
|
+
});
|
|
12
|
+
exports.Popover = Popover;
|
|
13
|
+
//# sourceMappingURL=Popover.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Popover.cjs","sources":["../../../../src/components/primitives/Popover/Popover.tsx"],"sourcesContent":["import { Popover as MantinePopover, type PopoverProps as MantinePopoverProps } from \"@mantine/core\";\n\nexport interface PopoverProps extends MantinePopoverProps {}\n\nfunction PopoverBase(props: PopoverProps) {\n return <MantinePopover shadow=\"md\" {...props} />;\n}\n\nexport const Popover = Object.assign(PopoverBase, {\n Target: MantinePopover.Target,\n Dropdown: MantinePopover.Dropdown,\n});\n"],"names":["jsx","MantinePopover"],"mappings":";;;;AAIA,SAAS,YAAY,OAAqB;AACxC,SAAOA,2BAAAA,IAACC,UAAAA,SAAA,EAAe,QAAO,MAAM,GAAG,OAAO;AAChD;AAEO,MAAM,UAAU,OAAO,OAAO,aAAa;AAAA,EAChD,QAAQA,UAAAA,QAAe;AAAA,EACvB,UAAUA,UAAAA,QAAe;AAC3B,CAAC;;"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { PopoverProps as MantinePopoverProps } from '@mantine/core';
|
|
2
|
+
export interface PopoverProps extends MantinePopoverProps {
|
|
3
|
+
}
|
|
4
|
+
declare function PopoverBase(props: PopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const Popover: typeof PopoverBase & {
|
|
6
|
+
Target: import('@mantine/core').MantineComponent<{
|
|
7
|
+
props: import('@mantine/core').PopoverTargetProps;
|
|
8
|
+
ref: HTMLElement;
|
|
9
|
+
compound: true;
|
|
10
|
+
}>;
|
|
11
|
+
Dropdown: import('@mantine/core').MantineComponent<{
|
|
12
|
+
props: import('@mantine/core').PopoverDropdownProps;
|
|
13
|
+
ref: HTMLDivElement;
|
|
14
|
+
stylesNames: import('@mantine/core').PopoverStylesNames;
|
|
15
|
+
compound: true;
|
|
16
|
+
}>;
|
|
17
|
+
};
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=Popover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../../src/components/primitives/Popover/Popover.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,YAAY,IAAI,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpG,MAAM,WAAW,YAAa,SAAQ,mBAAmB;CAAG;AAE5D,iBAAS,WAAW,CAAC,KAAK,EAAE,YAAY,2CAEvC;AAED,eAAO,MAAM,OAAO;;;;;;;;;;;;CAGlB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Popover as Popover$1 } from "../../../node_modules/@mantine/core/esm/components/Popover/Popover.js";
|
|
3
|
+
function PopoverBase(props) {
|
|
4
|
+
return /* @__PURE__ */ jsx(Popover$1, { shadow: "md", ...props });
|
|
5
|
+
}
|
|
6
|
+
const Popover = Object.assign(PopoverBase, {
|
|
7
|
+
Target: Popover$1.Target,
|
|
8
|
+
Dropdown: Popover$1.Dropdown
|
|
9
|
+
});
|
|
10
|
+
export {
|
|
11
|
+
Popover
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=Popover.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Popover.js","sources":["../../../../src/components/primitives/Popover/Popover.tsx"],"sourcesContent":["import { Popover as MantinePopover, type PopoverProps as MantinePopoverProps } from \"@mantine/core\";\n\nexport interface PopoverProps extends MantinePopoverProps {}\n\nfunction PopoverBase(props: PopoverProps) {\n return <MantinePopover shadow=\"md\" {...props} />;\n}\n\nexport const Popover = Object.assign(PopoverBase, {\n Target: MantinePopover.Target,\n Dropdown: MantinePopover.Dropdown,\n});\n"],"names":["MantinePopover"],"mappings":";;AAIA,SAAS,YAAY,OAAqB;AACxC,SAAO,oBAACA,WAAA,EAAe,QAAO,MAAM,GAAG,OAAO;AAChD;AAEO,MAAM,UAAU,OAAO,OAAO,aAAa;AAAA,EAChD,QAAQA,UAAe;AAAA,EACvB,UAAUA,UAAe;AAC3B,CAAC;"}
|
|
@@ -11,6 +11,7 @@ export { Menu } from './Menu/Menu';
|
|
|
11
11
|
export { Modal } from './Modal/Modal';
|
|
12
12
|
export { PasswordInput } from './PasswordInput/PasswordInput';
|
|
13
13
|
export { PdfDocument, type PdfDocumentProps, PdfPage, type PdfPageProps } from './Pdf/Pdf';
|
|
14
|
+
export { Popover } from './Popover/Popover';
|
|
14
15
|
export { Progress, type ProgressProps } from './Progress/Progress';
|
|
15
16
|
export { Radio, type RadioProps } from './Radio/Radio';
|
|
16
17
|
export { Select } from './Select/Select';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/primitives/index.ts"],"names":[],"mappings":"AAAA,O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AAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC"}
|
package/dist/fairmint-ui.cjs
CHANGED
|
@@ -48,6 +48,7 @@ const StatusBadge = require("./components/generic/StatusBadge/StatusBadge.cjs");
|
|
|
48
48
|
const StepCard = require("./components/generic/StepCard/StepCard.cjs");
|
|
49
49
|
const StepFlow = require("./components/generic/StepFlow/StepFlow.cjs");
|
|
50
50
|
const StepProgress = require("./components/generic/StepProgress/StepProgress.cjs");
|
|
51
|
+
const TaskInboxPopover = require("./components/generic/TaskInboxPopover/TaskInboxPopover.cjs");
|
|
51
52
|
const TaskRow = require("./components/generic/TaskRow/TaskRow.cjs");
|
|
52
53
|
const ValidationWarning = require("./components/generic/ValidationWarning/ValidationWarning.cjs");
|
|
53
54
|
const LoadingOverlay = require("./components/LoadingOverlay/LoadingOverlay.cjs");
|
|
@@ -73,6 +74,7 @@ const muiCompat = require("./components/primitives/muiCompat.cjs");
|
|
|
73
74
|
const muiIcons = require("./mui-icons.cjs");
|
|
74
75
|
const PasswordInput = require("./components/primitives/PasswordInput/PasswordInput.cjs");
|
|
75
76
|
const Pdf = require("./components/primitives/Pdf/Pdf.cjs");
|
|
77
|
+
const Popover = require("./components/primitives/Popover/Popover.cjs");
|
|
76
78
|
const Progress = require("./components/primitives/Progress/Progress.cjs");
|
|
77
79
|
const Radio = require("./components/primitives/Radio/Radio.cjs");
|
|
78
80
|
const Select = require("./components/primitives/Select/Select.cjs");
|
|
@@ -210,6 +212,7 @@ exports.StepFlow = StepFlow.StepFlow;
|
|
|
210
212
|
exports.STEP_PROGRESS_MOBILE_BREAKPOINT = StepProgress.STEP_PROGRESS_MOBILE_BREAKPOINT;
|
|
211
213
|
exports.StepProgress = StepProgress.StepProgress;
|
|
212
214
|
exports.getStepProgressStatus = StepProgress.getStepProgressStatus;
|
|
215
|
+
exports.TaskInboxPopover = TaskInboxPopover.TaskInboxPopover;
|
|
213
216
|
exports.TaskRow = TaskRow.TaskRow;
|
|
214
217
|
exports.ValidationWarning = ValidationWarning.ValidationWarning;
|
|
215
218
|
exports.LoadingOverlay = LoadingOverlay.LoadingOverlay;
|
|
@@ -446,6 +449,7 @@ exports.ZoomOutMapIcon = muiIcons.ZoomOutMapIcon;
|
|
|
446
449
|
exports.PasswordInput = PasswordInput.PasswordInput;
|
|
447
450
|
exports.PdfDocument = Pdf.PdfDocument;
|
|
448
451
|
exports.PdfPage = Pdf.PdfPage;
|
|
452
|
+
exports.Popover = Popover.Popover;
|
|
449
453
|
exports.Progress = Progress.Progress;
|
|
450
454
|
exports.Radio = Radio.Radio;
|
|
451
455
|
exports.Select = Select.Select;
|
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
|
@@ -46,6 +46,7 @@ import { StatusBadge } from "./components/generic/StatusBadge/StatusBadge.js";
|
|
|
46
46
|
import { StepCard } from "./components/generic/StepCard/StepCard.js";
|
|
47
47
|
import { STEP_FLOW_DEFAULT_MAX_WIDTH, StepFlow } from "./components/generic/StepFlow/StepFlow.js";
|
|
48
48
|
import { STEP_PROGRESS_MOBILE_BREAKPOINT, StepProgress, getStepProgressStatus } from "./components/generic/StepProgress/StepProgress.js";
|
|
49
|
+
import { TaskInboxPopover } from "./components/generic/TaskInboxPopover/TaskInboxPopover.js";
|
|
49
50
|
import { TaskRow } from "./components/generic/TaskRow/TaskRow.js";
|
|
50
51
|
import { ValidationWarning } from "./components/generic/ValidationWarning/ValidationWarning.js";
|
|
51
52
|
import { LoadingOverlay } from "./components/LoadingOverlay/LoadingOverlay.js";
|
|
@@ -71,6 +72,7 @@ import { Accordion, AccordionDetails, AccordionSummary, AdapterDayjs, AlertTitle
|
|
|
71
72
|
import { AccessTimeIcon, AccountBalanceOutlinedIcon, AccountTreeOutlinedIcon, ActivityIcon, AddIcon, ArrowBackIcon, ArrowBackIosNewIcon, ArrowForwardIcon, ArrowForwardIosIcon, ArrowRightIcon, ArticleOutlinedIcon, AssessmentIcon, AssignmentTurnedInOutlinedIcon, AssuredWorkloadOutlinedIcon, AttachMoneyIcon, AutoAwesomeIcon, AutoGraphIcon, AwardIcon, BankIcon, BankNoteIcon, BarChartIcon, BarChartOutlinedIcon, BellIcon, BlockIcon, BoltIcon, BriefcaseIcon, BuildingIcon, BusinessIcon, CalendarIcon, CalendarTodayIcon, CancelIcon, CancelOutlinedIcon, CategoryOutlinedIcon, CertificateIcon, CheckBoxOutlinedIcon, CheckCircleIcon, CheckCircleOutlineIcon, CheckIcon, ChevronDownIcon, ChevronRightIcon, ChevronUpIcon, ClearIcon, ClipboardCheckIcon, CloseIcon, CloudUploadOutlinedIcon, ContentCopyIcon, CreateNewFolderIcon, DatasetOutlinedIcon, DateRangeIcon, DeleteIcon, DeleteOutlineIcon, DeleteOutlinedIcon, DescriptionIcon, DescriptionOutlinedIcon, DownloadIcon, DrawOutlinedIcon, EditIcon, EditNoteIcon, EditOutlinedIcon, EmailIcon, EmojiEventsIcon, ErrorOutlineIcon, ExpandLessIcon, ExpandMoreIcon, FacebookLogo, FileDownloadOutlinedIcon, FileIcon, FilterListIcon, FolderIcon, GroupAddIcon, GroupWorkIcon, GroupsIcon, HandshakeOutlinedIcon, HelpOutlineIcon, HourglassBottomIcon, InfoCircleIcon, InfoIcon, InfoOutlinedIcon, InsertDriveFileOutlinedIcon, InstagramLogo, LanguageIcon, LanguageLogo, LightbulbOutlinedIcon, LinkExternalIcon, LinkedInLogo, LocationOnIcon, LockOpenOutlinedIcon, LockOutlinedIcon, MenuIcon, ModeIcon, MoreHorizIcon, NewspaperIcon, NoteAddIcon, OpenInNewIcon, PauseCircleOutlinedIcon, PeopleAltOutlinedIcon, PeopleIcon, PersonAddIcon, PersonIcon, PersonOutlineIcon, PhoneIphoneIcon, PictureAsPdfIcon, PieChartIcon, PlayCircleOutlineIcon, PlusIcon, ReceiptLongOutlinedIcon, RefreshIcon, RemoveCircleOutlineIcon, RemoveRedEyeIcon, ReplayIcon, RocketIcon, RocketLaunchOutlinedIcon, SafeIcon, SaveOutlinedIcon, SearchIcon, SearchOffIcon, SearchOutlinedIcon, SendIcon, SettingsIcon, SettingsOutlinedIcon, ShieldIcon, SlashCircleIcon, StarIcon, StarsIcon, StopCircleOutlinedIcon, SupervisorAccountIcon, SwapHorizIcon, SyncAltIcon, TableChartOutlinedIcon, ThumbDownIcon, ThumbDownOutlinedIcon, ThumbUpIcon, ThumbUpOutlinedIcon, TimelineIcon, TrendUpIcon, TrendingUpIcon, TrendingUpOutlinedIcon, TwitterLogo, UploadFileIcon, UserCheckIcon, UserIcon, UsersIcon, WarningAmberIcon, WorkspacePremiumOutlinedIcon, YouTubeIcon, ZoomOutMapIcon } from "./mui-icons.js";
|
|
72
73
|
import { PasswordInput } from "./components/primitives/PasswordInput/PasswordInput.js";
|
|
73
74
|
import { PdfDocument, PdfPage } from "./components/primitives/Pdf/Pdf.js";
|
|
75
|
+
import { Popover } from "./components/primitives/Popover/Popover.js";
|
|
74
76
|
import { Progress } from "./components/primitives/Progress/Progress.js";
|
|
75
77
|
import { Radio } from "./components/primitives/Radio/Radio.js";
|
|
76
78
|
import { Select } from "./components/primitives/Select/Select.js";
|
|
@@ -374,6 +376,7 @@ export {
|
|
|
374
376
|
PinInput,
|
|
375
377
|
PlayCircleOutlineIcon,
|
|
376
378
|
PlusIcon,
|
|
379
|
+
Popover,
|
|
377
380
|
ProcessingState,
|
|
378
381
|
Progress,
|
|
379
382
|
RIBBON_BACKGROUND_CLASS,
|
|
@@ -436,6 +439,7 @@ export {
|
|
|
436
439
|
TablePagination,
|
|
437
440
|
TableRow,
|
|
438
441
|
Tabs,
|
|
442
|
+
TaskInboxPopover,
|
|
439
443
|
TaskRow,
|
|
440
444
|
Text,
|
|
441
445
|
TextField,
|
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
|
@@ -96,6 +96,8 @@ export type { StepFlowOrientation, StepFlowProps, StepFlowStep, } from './compon
|
|
|
96
96
|
export { STEP_FLOW_DEFAULT_MAX_WIDTH, StepFlow } from './components/generic/StepFlow/StepFlow';
|
|
97
97
|
export type { StepProgressOrientation, StepProgressProps, StepProgressStep, StepProgressStepStatus, } from './components/generic/StepProgress/StepProgress';
|
|
98
98
|
export { getStepProgressStatus, STEP_PROGRESS_MOBILE_BREAKPOINT, StepProgress, } from './components/generic/StepProgress/StepProgress';
|
|
99
|
+
export type { TaskInboxPopoverProps } from './components/generic/TaskInboxPopover/TaskInboxPopover';
|
|
100
|
+
export { TaskInboxPopover } from './components/generic/TaskInboxPopover/TaskInboxPopover';
|
|
99
101
|
export type { TaskRowActionProps, TaskRowPriority, TaskRowProps, TaskRowVariant, } from './components/generic/TaskRow/TaskRow';
|
|
100
102
|
export { TaskRow } from './components/generic/TaskRow/TaskRow';
|
|
101
103
|
export type { ValidationWarningProps } from './components/generic/ValidationWarning/ValidationWarning';
|
|
@@ -129,6 +131,7 @@ export { Accordion, AccordionDetails, AccordionSummary, AdapterDayjs, AlertTitle
|
|
|
129
131
|
export * from './components/primitives/muiIcons';
|
|
130
132
|
export { PasswordInput } from './components/primitives/PasswordInput/PasswordInput';
|
|
131
133
|
export { PdfDocument, type PdfDocumentProps, PdfPage, type PdfPageProps, } from './components/primitives/Pdf/Pdf';
|
|
134
|
+
export { Popover, type PopoverProps } from './components/primitives/Popover/Popover';
|
|
132
135
|
export { Progress, type ProgressProps } from './components/primitives/Progress/Progress';
|
|
133
136
|
export { Radio, type RadioProps } from './components/primitives/Radio/Radio';
|
|
134
137
|
export { Select } from './components/primitives/Select/Select';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1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,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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getSideAxis, getAlignmentAxis, getSide, getAlignment, evaluate, getPaddingObject, rectToClientRect,
|
|
1
|
+
import { getSideAxis, getAlignmentAxis, getSide, getAlignment, evaluate, getPaddingObject, rectToClientRect, getOppositePlacement, getExpandedPlacements, getOppositeAxisPlacements, getAlignmentSides, clamp, min, max, getAxisLength, sides, getOppositeAxis } from "../../utils/dist/floating-ui.utils.js";
|
|
2
2
|
function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
3
3
|
let {
|
|
4
4
|
reference,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computePosition as computePosition$1, offset as offset$1,
|
|
1
|
+
import { computePosition as computePosition$1, offset as offset$1, hide as hide$1, flip as flip$1, shift as shift$1, inline as inline$1, size as size$1, arrow as arrow$1, limitShift as limitShift$1 } from "../../core/dist/floating-ui.core.js";
|
|
2
2
|
import { createCoords, rectToClientRect, floor, round, max, min } from "../../utils/dist/floating-ui.utils.js";
|
|
3
3
|
import { getOverflowAncestors, isElement, getDocumentElement, getWindow, getFrameElement, getComputedStyle as getComputedStyle$1, isHTMLElement, isWebKit, isTopLayer, getParentNode, isLastTraversableNode, isTableElement, isContainingBlock, getContainingBlock, getNodeName, isOverflowElement, getNodeScroll } from "../../utils/dist/floating-ui.utils.dom.js";
|
|
4
4
|
function getCssDimensions(element) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computePosition, offset as offset$1,
|
|
1
|
+
import { computePosition, offset as offset$1, hide as hide$1, flip as flip$1, shift as shift$1, inline as inline$1, size as size$1, arrow as arrow$2, limitShift as limitShift$1 } from "../../dom/dist/floating-ui.dom.js";
|
|
2
2
|
import { autoUpdate, platform } from "../../dom/dist/floating-ui.dom.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { useLayoutEffect } from "react";
|
package/dist/notify.cjs
CHANGED
|
@@ -4,7 +4,7 @@ const React = require("react");
|
|
|
4
4
|
const colors = require("./theme/colors.cjs");
|
|
5
5
|
const notifications_store = require("./node_modules/@mantine/notifications/esm/notifications.store.cjs");
|
|
6
6
|
const autoCloseDefaults = {
|
|
7
|
-
success:
|
|
7
|
+
success: 3e3,
|
|
8
8
|
error: 6e3,
|
|
9
9
|
warning: 5e3,
|
|
10
10
|
info: 4e3
|
package/dist/notify.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notify.cjs","sources":["../src/notify.ts"],"sourcesContent":["import { notifications } from \"@mantine/notifications\";\nimport { createElement, Fragment, type ReactNode } from \"react\";\nimport { colors } from \"./theme/colors\";\n\ntype NotifyVariant = \"success\" | \"error\" | \"warning\" | \"info\";\n\nexport interface NotifyOptions {\n title?: string;\n message: string;\n autoClose?: number | false;\n /** Override the default semantic icon, or pass `null` to suppress it. */\n icon?: ReactNode | null;\n /** Optional action content rendered below the message (e.g. a Button). */\n action?: ReactNode;\n /** @default true */\n withCloseButton?: boolean;\n /** Stable id for dismiss / update flows. */\n id?: string;\n /** Shows a loading indicator in place of the icon. */\n loading?: boolean;\n}\n\nexport interface NotifyUpdateOptions extends NotifyOptions {\n id: string;\n /** Semantic tone for color + default icon. @default \"info\" */\n variant?: NotifyVariant;\n}\n\nconst autoCloseDefaults: Record<NotifyVariant, number> = {\n success:
|
|
1
|
+
{"version":3,"file":"notify.cjs","sources":["../src/notify.ts"],"sourcesContent":["import { notifications } from \"@mantine/notifications\";\nimport { createElement, Fragment, type ReactNode } from \"react\";\nimport { colors } from \"./theme/colors\";\n\ntype NotifyVariant = \"success\" | \"error\" | \"warning\" | \"info\";\n\nexport interface NotifyOptions {\n title?: string;\n message: string;\n autoClose?: number | false;\n /** Override the default semantic icon, or pass `null` to suppress it. */\n icon?: ReactNode | null;\n /** Optional action content rendered below the message (e.g. a Button). */\n action?: ReactNode;\n /** @default true */\n withCloseButton?: boolean;\n /** Stable id for dismiss / update flows. */\n id?: string;\n /** Shows a loading indicator in place of the icon. */\n loading?: boolean;\n}\n\nexport interface NotifyUpdateOptions extends NotifyOptions {\n id: string;\n /** Semantic tone for color + default icon. @default \"info\" */\n variant?: NotifyVariant;\n}\n\nconst autoCloseDefaults: Record<NotifyVariant, number> = {\n success: 3000,\n error: 6000,\n warning: 5000,\n info: 4000,\n};\n\n/** Outlined stroke paths only — no filled shapes. Semantic color comes from currentColor. */\nconst iconPaths: Record<NotifyVariant, string[]> = {\n success: [\"m9 12 2 2 4-4\", \"M22 12a10 10 0 1 1-20 0 10 10 0 0 1 20 0Z\"],\n error: [\"m15 9-6 6\", \"m9 9 6 6\", \"M22 12a10 10 0 1 1-20 0 10 10 0 0 1 20 0Z\"],\n warning: [\n \"M12 9v4\",\n \"M12 17h.01\",\n \"M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0Z\",\n ],\n info: [\"M12 16v-4\", \"M12 8h.01\", \"M22 12a10 10 0 1 1-20 0 10 10 0 0 1 20 0Z\"],\n};\n\nfunction createNotifyIcon(variant: NotifyVariant): ReactNode {\n return createElement(\n \"svg\",\n {\n \"aria-hidden\": true,\n \"data-fairmint-notify-icon\": variant,\n fill: \"none\",\n focusable: \"false\",\n height: 20,\n stroke: \"currentColor\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: 1.75,\n viewBox: \"0 0 24 24\",\n width: 20,\n xmlns: \"http://www.w3.org/2000/svg\",\n },\n ...iconPaths[variant].map((d) => createElement(\"path\", { d, key: d })),\n );\n}\n\nfunction resolveIcon(\n variant: NotifyVariant,\n icon: ReactNode | null | undefined,\n loading: boolean | undefined,\n): ReactNode | undefined {\n if (loading) return undefined;\n if (icon === null) return undefined;\n if (icon !== undefined) return icon;\n return createNotifyIcon(variant);\n}\n\nfunction resolveMessage(message: string, action: ReactNode | undefined): ReactNode {\n if (action === undefined) return message;\n return createElement(\n Fragment,\n null,\n message,\n createElement(\"div\", { \"data-fairmint-notify-action\": true, style: { marginTop: 8 } }, action),\n );\n}\n\n/** Shared Notify presentation used by `notify.*` and `snackbarCompat`. */\nexport function buildNotifyNotification(\n variant: NotifyVariant,\n {\n title,\n message,\n autoClose = autoCloseDefaults[variant],\n icon,\n action,\n withCloseButton = true,\n id,\n loading,\n }: NotifyOptions,\n) {\n return {\n id,\n title,\n message: resolveMessage(message, action),\n color: colors[variant],\n autoClose,\n withBorder: true,\n withCloseButton,\n loading,\n icon: resolveIcon(variant, icon, loading),\n };\n}\n\n/**\n * Fairmint notification helpers.\n *\n * Uses Mantine's notifications system with Fairmint semantic colors, outlined\n * semantic icons (no filled circles), and a 1px border. Subtle single-layer\n * elevation (`--fairmint-elevation-subtle`), tinted semantic surfaces\n * (`*-bg` / light /50), and outlined icon chrome come from the Fairmint theme\n * `Notification` defaults. Requires FairmintProvider.\n *\n * @example\n * notify.success({ message: \"Investment saved.\" });\n * notify.error({ title: \"Error\", message: \"Failed to load data.\" });\n */\nexport const notify = {\n success: (options: NotifyOptions) =>\n notifications.show(buildNotifyNotification(\"success\", options)),\n\n error: (options: NotifyOptions) => notifications.show(buildNotifyNotification(\"error\", options)),\n\n warning: (options: NotifyOptions) =>\n notifications.show(buildNotifyNotification(\"warning\", options)),\n\n info: (options: NotifyOptions) => notifications.show(buildNotifyNotification(\"info\", options)),\n\n /**\n * Update an existing toast by `id` (e.g. loading → success).\n * Applies the same visual defaults as `notify.*` show helpers.\n */\n update: ({ variant = \"info\", ...options }: NotifyUpdateOptions) =>\n notifications.update(buildNotifyNotification(variant, options)),\n};\n"],"names":["createElement","Fragment","colors","notifications"],"mappings":";;;;;AA4BA,MAAM,oBAAmD;AAAA,EACvD,SAAS;AAAA,EACT,OAAO;AAAA,EACP,SAAS;AAAA,EACT,MAAM;AACR;AAGA,MAAM,YAA6C;AAAA,EACjD,SAAS,CAAC,iBAAiB,2CAA2C;AAAA,EACtE,OAAO,CAAC,aAAa,YAAY,2CAA2C;AAAA,EAC5E,SAAS;AAAA,IACP;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAAA,EAEF,MAAM,CAAC,aAAa,aAAa,2CAA2C;AAC9E;AAEA,SAAS,iBAAiB,SAAmC;AAC3D,SAAOA,MAAAA;AAAAA,IACL;AAAA,IACA;AAAA,MACE,eAAe;AAAA,MACf,6BAA6B;AAAA,MAC7B,MAAM;AAAA,MACN,WAAW;AAAA,MACX,QAAQ;AAAA,MACR,QAAQ;AAAA,MACR,eAAe;AAAA,MACf,gBAAgB;AAAA,MAChB,aAAa;AAAA,MACb,SAAS;AAAA,MACT,OAAO;AAAA,MACP,OAAO;AAAA,IAAA;AAAA,IAET,GAAG,UAAU,OAAO,EAAE,IAAI,CAAC,MAAMA,oBAAc,QAAQ,EA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A,cAAc,OAAO,wBAAwB,SAAS,OAAO,CAAC;AAClE;;;"}
|
package/dist/notify.js
CHANGED
|
@@ -2,7 +2,7 @@ import { createElement, Fragment } from "react";
|
|
|
2
2
|
import { colors } from "./theme/colors.js";
|
|
3
3
|
import { notifications } from "./node_modules/@mantine/notifications/esm/notifications.store.js";
|
|
4
4
|
const autoCloseDefaults = {
|
|
5
|
-
success:
|
|
5
|
+
success: 3e3,
|
|
6
6
|
error: 6e3,
|
|
7
7
|
warning: 5e3,
|
|
8
8
|
info: 4e3
|
package/dist/notify.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notify.js","sources":["../src/notify.ts"],"sourcesContent":["import { notifications } from \"@mantine/notifications\";\nimport { createElement, Fragment, type ReactNode } from \"react\";\nimport { colors } from \"./theme/colors\";\n\ntype NotifyVariant = \"success\" | \"error\" | \"warning\" | \"info\";\n\nexport interface NotifyOptions {\n title?: string;\n message: string;\n autoClose?: number | false;\n /** Override the default semantic icon, or pass `null` to suppress it. */\n icon?: ReactNode | null;\n /** Optional action content rendered below the message (e.g. a Button). */\n action?: ReactNode;\n /** @default true */\n withCloseButton?: boolean;\n /** Stable id for dismiss / update flows. */\n id?: string;\n /** Shows a loading indicator in place of the icon. */\n loading?: boolean;\n}\n\nexport interface NotifyUpdateOptions extends NotifyOptions {\n id: string;\n /** Semantic tone for color + default icon. @default \"info\" */\n variant?: NotifyVariant;\n}\n\nconst autoCloseDefaults: Record<NotifyVariant, number> = {\n success:
|
|
1
|
+
{"version":3,"file":"notify.js","sources":["../src/notify.ts"],"sourcesContent":["import { notifications } from \"@mantine/notifications\";\nimport { createElement, Fragment, type ReactNode } from \"react\";\nimport { colors } from \"./theme/colors\";\n\ntype NotifyVariant = \"success\" | \"error\" | \"warning\" | \"info\";\n\nexport interface NotifyOptions {\n title?: string;\n message: string;\n autoClose?: number | false;\n /** Override the default semantic icon, or pass `null` to suppress it. */\n icon?: ReactNode | null;\n /** Optional action content rendered below the message (e.g. a Button). */\n action?: ReactNode;\n /** @default true */\n withCloseButton?: boolean;\n /** Stable id for dismiss / update flows. */\n id?: string;\n /** Shows a loading indicator in place of the icon. */\n loading?: boolean;\n}\n\nexport interface NotifyUpdateOptions extends NotifyOptions {\n id: string;\n /** Semantic tone for color + default icon. @default \"info\" */\n variant?: NotifyVariant;\n}\n\nconst autoCloseDefaults: Record<NotifyVariant, number> = {\n success: 3000,\n error: 6000,\n warning: 5000,\n info: 4000,\n};\n\n/** Outlined stroke paths only — no filled shapes. Semantic color comes from currentColor. */\nconst iconPaths: Record<NotifyVariant, string[]> = {\n success: [\"m9 12 2 2 4-4\", \"M22 12a10 10 0 1 1-20 0 10 10 0 0 1 20 0Z\"],\n error: [\"m15 9-6 6\", \"m9 9 6 6\", \"M22 12a10 10 0 1 1-20 0 10 10 0 0 1 20 0Z\"],\n warning: [\n \"M12 9v4\",\n \"M12 17h.01\",\n \"M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0Z\",\n ],\n info: [\"M12 16v-4\", \"M12 8h.01\", \"M22 12a10 10 0 1 1-20 0 10 10 0 0 1 20 0Z\"],\n};\n\nfunction createNotifyIcon(variant: NotifyVariant): ReactNode {\n return createElement(\n \"svg\",\n {\n \"aria-hidden\": true,\n \"data-fairmint-notify-icon\": variant,\n fill: \"none\",\n focusable: \"false\",\n height: 20,\n stroke: \"currentColor\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: 1.75,\n viewBox: \"0 0 24 24\",\n width: 20,\n xmlns: \"http://www.w3.org/2000/svg\",\n },\n ...iconPaths[variant].map((d) => createElement(\"path\", { d, key: d })),\n );\n}\n\nfunction resolveIcon(\n variant: NotifyVariant,\n icon: ReactNode | null | undefined,\n loading: boolean | undefined,\n): ReactNode | undefined {\n if (loading) return undefined;\n if (icon === null) return undefined;\n if (icon !== undefined) return icon;\n return createNotifyIcon(variant);\n}\n\nfunction resolveMessage(message: string, action: ReactNode | undefined): ReactNode {\n if (action === undefined) return message;\n return createElement(\n Fragment,\n null,\n message,\n createElement(\"div\", { \"data-fairmint-notify-action\": true, style: { marginTop: 8 } }, action),\n );\n}\n\n/** Shared Notify presentation used by `notify.*` and `snackbarCompat`. */\nexport function buildNotifyNotification(\n variant: NotifyVariant,\n {\n title,\n message,\n autoClose = autoCloseDefaults[variant],\n icon,\n action,\n withCloseButton = true,\n id,\n loading,\n }: NotifyOptions,\n) {\n return {\n id,\n title,\n message: resolveMessage(message, action),\n color: colors[variant],\n autoClose,\n withBorder: true,\n withCloseButton,\n loading,\n icon: resolveIcon(variant, icon, loading),\n };\n}\n\n/**\n * Fairmint notification helpers.\n *\n * Uses Mantine's notifications system with Fairmint semantic colors, outlined\n * semantic icons (no filled circles), and a 1px border. Subtle single-layer\n * elevation (`--fairmint-elevation-subtle`), tinted semantic surfaces\n * (`*-bg` / light /50), and outlined icon chrome come from the Fairmint theme\n * `Notification` defaults. Requires FairmintProvider.\n *\n * @example\n * notify.success({ message: \"Investment saved.\" });\n * notify.error({ title: \"Error\", message: \"Failed to load data.\" });\n */\nexport const notify = {\n success: (options: NotifyOptions) =>\n notifications.show(buildNotifyNotification(\"success\", options)),\n\n error: (options: NotifyOptions) => notifications.show(buildNotifyNotification(\"error\", options)),\n\n warning: (options: NotifyOptions) =>\n notifications.show(buildNotifyNotification(\"warning\", options)),\n\n info: (options: NotifyOptions) => notifications.show(buildNotifyNotification(\"info\", options)),\n\n /**\n * Update an existing toast by `id` (e.g. loading → success).\n * Applies the same visual defaults as `notify.*` show helpers.\n */\n update: ({ variant = \"info\", ...options }: NotifyUpdateOptions) =>\n notifications.update(buildNotifyNotification(variant, options)),\n};\n"],"names":[],"mappings":";;;AA4BA,MAAM,oBAAmD;AAAA,EACvD,SAAS;AAAA,EACT,OAAO;AAAA,EACP,SAAS;AAAA,EACT,MAAM;AACR;AAGA,MAAM,YAA6C;AAAA,EACjD,SAAS,CA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AA,IACZ;AAAA,IACA;AAAA,IACA,MAAM,YAAY,SAAS,MAAM,OAAO;AAAA,EAAA;AAE5C;AAeO,MAAM,SAAS;AAAA,EACpB,SAAS,CAAC,YACR,cAAc,KAAK,wBAAwB,WAAW,OAAO,CAAC;AAAA,EAEhE,OAAO,CAAC,YAA2B,cAAc,KAAK,wBAAwB,SAAS,OAAO,CAAC;AAAA,EAE/F,SAAS,CAAC,YACR,cAAc,KAAK,wBAAwB,WAAW,OAAO,CAAC;AAAA,EAEhE,MAAM,CAAC,YAA2B,cAAc,KAAK,wBAAwB,QAAQ,OAAO,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA,EAM7F,QAAQ,CAAC,EAAE,UAAU,QAAQ,GAAG,cAC9B,cAAc,OAAO,wBAAwB,SAAS,OAAO,CAAC;AAClE;"}
|
package/dist/styles.css
CHANGED
|
@@ -153,6 +153,23 @@
|
|
|
153
153
|
text-decoration: none;
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
+
/*
|
|
157
|
+
* Centered, because a pill only has slack when something other than its content
|
|
158
|
+
* set its width — and then that slack should sit evenly rather than all on the
|
|
159
|
+
* right. In a row above the mobile breakpoint the item is sized to its content,
|
|
160
|
+
* so this is a no-op; the `min-width` floor further down is what makes it show.
|
|
161
|
+
*
|
|
162
|
+
* The vertical rail keeps the `flex-start` from the rule above: its pills stretch
|
|
163
|
+
* to the rail width by design, and labels down a rail read as a left-aligned
|
|
164
|
+
* list. Below the breakpoint the rail becomes a row and centers along with it.
|
|
165
|
+
*
|
|
166
|
+
* `text-align` stays `left` either way, so a label too long for its pill
|
|
167
|
+
* ellipsises from the end rather than being clipped at both.
|
|
168
|
+
*/
|
|
169
|
+
.fairmint-step-progress[data-orientation="horizontal"] .fairmint-step-progress__pill {
|
|
170
|
+
justify-content: center;
|
|
171
|
+
}
|
|
172
|
+
|
|
156
173
|
.fairmint-step-progress__pill[data-interactive="true"] {
|
|
157
174
|
cursor: pointer;
|
|
158
175
|
}
|
|
@@ -229,6 +246,7 @@
|
|
|
229
246
|
}
|
|
230
247
|
|
|
231
248
|
.fairmint-step-progress .fairmint-step-progress__pill {
|
|
249
|
+
justify-content: center;
|
|
232
250
|
width: auto;
|
|
233
251
|
min-width: 9rem;
|
|
234
252
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors.cjs","sources":["../../src/theme/colors.ts"],"sourcesContent":["/**\n * Branded color constants for Fairmint UI.\n * These map to Mantine color names defined in src/theme/index.ts.\n * Import from here instead of hardcoding color name strings.\n */\nexport const colors = {\n /** Primary UI color — buttons, links, active states. */\n primary: \"indigo\",\n /** Fairmint brand blue — gradients, brand elements. */\n brandBlue: \"fairmintBlue\",\n /** Fairmint brand purple — gradients, brand elements. */\n brandPurple: \"fairmintPurple\",\n /** Positive outcome — completed, approved, active. */\n success: \"success\",\n /** Caution — pending, processing, review. */\n warning: \"warning\",\n /** Negative outcome — failed, rejected, cancelled. */\n error: \"error\",\n /** Informational — neutral status messages. */\n info: \"info\",\n /** Neutral gray scale — borders, backgrounds, disabled. */\n neutral: \"gray\",\n /** Accent color 1 for avatar palette. */\n accent1: \"teal\",\n /** Accent color 2 for avatar palette. */\n accent2: \"cyan\",\n /** Accent color 3 for avatar palette. */\n accent3: \"green\",\n} as const;\n\nexport type FairmintColor = (typeof colors)[keyof typeof colors];\n\n/**\n * Avatar palette for deterministic color assignment.\n * Used by getAvatarColor() to map names to colors.\n */\nexport const AVATAR_PALETTE = [\n colors.primary,\n colors.brandBlue,\n colors.brandPurple,\n colors.success,\n colors.info,\n colors.accent1,\n colors.accent2,\n colors.accent3,\n] as const;\n\nexport type AvatarPaletteColor = (typeof AVATAR_PALETTE)[number];\n"],"names":[],"mappings":";;AAKO,MAAM,SAAS;AAAA;AAAA,EAEpB,SAAS;AAAA;AAAA,EAET,WAAW;AAAA;AAAA,EAEX,aAAa;AAAA;AAAA,EAEb,SAAS;AAAA;AAAA,EAET,SAAS;AAAA;AAAA,EAET,OAAO;AAAA;AAAA,EAEP,MAAM;AAAA;AAAA,EAEN,SAAS;AAAA;AAAA,EAET,SAAS;AAAA;AAAA,EAET,SAAS;AAAA;AAAA,EAET,SAAS;AACX;AAQO,MAAM,iBAAiB;AAAA,EAC5B,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AACT;;;"}
|
|
1
|
+
{"version":3,"file":"colors.cjs","sources":["../../src/theme/colors.ts"],"sourcesContent":["/**\n * Branded color constants for Fairmint UI.\n * These map to Mantine color names defined in src/theme/index.ts.\n * Import from here instead of hardcoding color name strings.\n */\nexport const colors = {\n /** Primary UI color — buttons, links, active states. */\n primary: \"indigo\",\n /** Fairmint brand blue — gradients, brand elements. */\n brandBlue: \"fairmintBlue\",\n /** Fairmint brand purple — gradients, brand elements. */\n brandPurple: \"fairmintPurple\",\n /** Positive outcome — completed, approved, active. */\n success: \"success\",\n /** Caution — pending, processing, review. */\n warning: \"warning\",\n /** Negative outcome — failed, rejected, cancelled. */\n error: \"error\",\n /** Informational — neutral status messages. */\n info: \"info\",\n /** Neutral gray scale — borders, backgrounds, disabled. */\n neutral: \"gray\",\n /** Accent color 1 for avatar palette. */\n accent1: \"teal\",\n /** Accent color 2 for avatar palette. */\n accent2: \"cyan\",\n /** Accent color 3 for avatar palette. */\n accent3: \"green\",\n} as const;\n\nexport type FairmintColor = (typeof colors)[keyof typeof colors];\n\n/**\n * Avatar palette for deterministic color assignment.\n * Used by getAvatarColor() to map names to colors.\n */\nexport const AVATAR_PALETTE = [\n colors.primary,\n colors.brandBlue,\n colors.brandPurple,\n colors.success,\n colors.info,\n colors.accent1,\n colors.accent2,\n colors.accent3,\n] as const;\n\nexport type AvatarPaletteColor = (typeof AVATAR_PALETTE)[number];\n\n/**\n * CaptableAI logo-symbol SVG gradient stops (CaptableAILogoSymbol.svg).\n * Hex values live here — components reference these constants only.\n */\nexport const captableAiMarkGradient = {\n light: {\n start: \"#557CFF\",\n mid: \"#3385ff\",\n end: \"#0A4EFB\",\n },\n dark: {\n start: \"#D0F8FF\",\n mid: \"#AEEBFF\",\n end: \"#557CFF\",\n },\n} as const;\n"],"names":[],"mappings":";;AAKO,MAAM,SAAS;AAAA;AAAA,EAEpB,SAAS;AAAA;AAAA,EAET,WAAW;AAAA;AAAA,EAEX,aAAa;AAAA;AAAA,EAEb,SAAS;AAAA;AAAA,EAET,SAAS;AAAA;AAAA,EAET,OAAO;AAAA;AAAA,EAEP,MAAM;AAAA;AAAA,EAEN,SAAS;AAAA;AAAA,EAET,SAAS;AAAA;AAAA,EAET,SAAS;AAAA;AAAA,EAET,SAAS;AACX;AAQO,MAAM,iBAAiB;AAAA,EAC5B,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AACT;;;"}
|
package/dist/theme/colors.d.ts
CHANGED
|
@@ -34,4 +34,20 @@ export type FairmintColor = (typeof colors)[keyof typeof colors];
|
|
|
34
34
|
*/
|
|
35
35
|
export declare const AVATAR_PALETTE: readonly ["indigo", "fairmintBlue", "fairmintPurple", "success", "info", "teal", "cyan", "green"];
|
|
36
36
|
export type AvatarPaletteColor = (typeof AVATAR_PALETTE)[number];
|
|
37
|
+
/**
|
|
38
|
+
* CaptableAI logo-symbol SVG gradient stops (CaptableAILogoSymbol.svg).
|
|
39
|
+
* Hex values live here — components reference these constants only.
|
|
40
|
+
*/
|
|
41
|
+
export declare const captableAiMarkGradient: {
|
|
42
|
+
readonly light: {
|
|
43
|
+
readonly start: "#557CFF";
|
|
44
|
+
readonly mid: "#3385ff";
|
|
45
|
+
readonly end: "#0A4EFB";
|
|
46
|
+
};
|
|
47
|
+
readonly dark: {
|
|
48
|
+
readonly start: "#D0F8FF";
|
|
49
|
+
readonly mid: "#AEEBFF";
|
|
50
|
+
readonly end: "#557CFF";
|
|
51
|
+
};
|
|
52
|
+
};
|
|
37
53
|
//# sourceMappingURL=colors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/theme/colors.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,MAAM;IACjB,wDAAwD;;IAExD,uDAAuD;;IAEvD,yDAAyD;;IAEzD,sDAAsD;;IAEtD,6CAA6C;;IAE7C,sDAAsD;;IAEtD,+CAA+C;;IAE/C,2DAA2D;;IAE3D,yCAAyC;;IAEzC,yCAAyC;;IAEzC,yCAAyC;;CAEjC,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,CAAC;AAEjE;;;GAGG;AACH,eAAO,MAAM,cAAc,mGASjB,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/theme/colors.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,MAAM;IACjB,wDAAwD;;IAExD,uDAAuD;;IAEvD,yDAAyD;;IAEzD,sDAAsD;;IAEtD,6CAA6C;;IAE7C,sDAAsD;;IAEtD,+CAA+C;;IAE/C,2DAA2D;;IAE3D,yCAAyC;;IAEzC,yCAAyC;;IAEzC,yCAAyC;;CAEjC,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,CAAC;AAEjE;;;GAGG;AACH,eAAO,MAAM,cAAc,mGASjB,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAEjE;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;CAWzB,CAAC"}
|
package/dist/theme/colors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors.js","sources":["../../src/theme/colors.ts"],"sourcesContent":["/**\n * Branded color constants for Fairmint UI.\n * These map to Mantine color names defined in src/theme/index.ts.\n * Import from here instead of hardcoding color name strings.\n */\nexport const colors = {\n /** Primary UI color — buttons, links, active states. */\n primary: \"indigo\",\n /** Fairmint brand blue — gradients, brand elements. */\n brandBlue: \"fairmintBlue\",\n /** Fairmint brand purple — gradients, brand elements. */\n brandPurple: \"fairmintPurple\",\n /** Positive outcome — completed, approved, active. */\n success: \"success\",\n /** Caution — pending, processing, review. */\n warning: \"warning\",\n /** Negative outcome — failed, rejected, cancelled. */\n error: \"error\",\n /** Informational — neutral status messages. */\n info: \"info\",\n /** Neutral gray scale — borders, backgrounds, disabled. */\n neutral: \"gray\",\n /** Accent color 1 for avatar palette. */\n accent1: \"teal\",\n /** Accent color 2 for avatar palette. */\n accent2: \"cyan\",\n /** Accent color 3 for avatar palette. */\n accent3: \"green\",\n} as const;\n\nexport type FairmintColor = (typeof colors)[keyof typeof colors];\n\n/**\n * Avatar palette for deterministic color assignment.\n * Used by getAvatarColor() to map names to colors.\n */\nexport const AVATAR_PALETTE = [\n colors.primary,\n colors.brandBlue,\n colors.brandPurple,\n colors.success,\n colors.info,\n colors.accent1,\n colors.accent2,\n colors.accent3,\n] as const;\n\nexport type AvatarPaletteColor = (typeof AVATAR_PALETTE)[number];\n"],"names":[],"mappings":"AAKO,MAAM,SAAS;AAAA;AAAA,EAEpB,SAAS;AAAA;AAAA,EAET,WAAW;AAAA;AAAA,EAEX,aAAa;AAAA;AAAA,EAEb,SAAS;AAAA;AAAA,EAET,SAAS;AAAA;AAAA,EAET,OAAO;AAAA;AAAA,EAEP,MAAM;AAAA;AAAA,EAEN,SAAS;AAAA;AAAA,EAET,SAAS;AAAA;AAAA,EAET,SAAS;AAAA;AAAA,EAET,SAAS;AACX;AAQO,MAAM,iBAAiB;AAAA,EAC5B,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AACT;"}
|
|
1
|
+
{"version":3,"file":"colors.js","sources":["../../src/theme/colors.ts"],"sourcesContent":["/**\n * Branded color constants for Fairmint UI.\n * These map to Mantine color names defined in src/theme/index.ts.\n * Import from here instead of hardcoding color name strings.\n */\nexport const colors = {\n /** Primary UI color — buttons, links, active states. */\n primary: \"indigo\",\n /** Fairmint brand blue — gradients, brand elements. */\n brandBlue: \"fairmintBlue\",\n /** Fairmint brand purple — gradients, brand elements. */\n brandPurple: \"fairmintPurple\",\n /** Positive outcome — completed, approved, active. */\n success: \"success\",\n /** Caution — pending, processing, review. */\n warning: \"warning\",\n /** Negative outcome — failed, rejected, cancelled. */\n error: \"error\",\n /** Informational — neutral status messages. */\n info: \"info\",\n /** Neutral gray scale — borders, backgrounds, disabled. */\n neutral: \"gray\",\n /** Accent color 1 for avatar palette. */\n accent1: \"teal\",\n /** Accent color 2 for avatar palette. */\n accent2: \"cyan\",\n /** Accent color 3 for avatar palette. */\n accent3: \"green\",\n} as const;\n\nexport type FairmintColor = (typeof colors)[keyof typeof colors];\n\n/**\n * Avatar palette for deterministic color assignment.\n * Used by getAvatarColor() to map names to colors.\n */\nexport const AVATAR_PALETTE = [\n colors.primary,\n colors.brandBlue,\n colors.brandPurple,\n colors.success,\n colors.info,\n colors.accent1,\n colors.accent2,\n colors.accent3,\n] as const;\n\nexport type AvatarPaletteColor = (typeof AVATAR_PALETTE)[number];\n\n/**\n * CaptableAI logo-symbol SVG gradient stops (CaptableAILogoSymbol.svg).\n * Hex values live here — components reference these constants only.\n */\nexport const captableAiMarkGradient = {\n light: {\n start: \"#557CFF\",\n mid: \"#3385ff\",\n end: \"#0A4EFB\",\n },\n dark: {\n start: \"#D0F8FF\",\n mid: \"#AEEBFF\",\n end: \"#557CFF\",\n },\n} as const;\n"],"names":[],"mappings":"AAKO,MAAM,SAAS;AAAA;AAAA,EAEpB,SAAS;AAAA;AAAA,EAET,WAAW;AAAA;AAAA,EAEX,aAAa;AAAA;AAAA,EAEb,SAAS;AAAA;AAAA,EAET,SAAS;AAAA;AAAA,EAET,OAAO;AAAA;AAAA,EAEP,MAAM;AAAA;AAAA,EAEN,SAAS;AAAA;AAAA,EAET,SAAS;AAAA;AAAA,EAET,SAAS;AAAA;AAAA,EAET,SAAS;AACX;AAQO,MAAM,iBAAiB;AAAA,EAC5B,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AACT;"}
|