@fairmint/ui 0.3.16 → 0.3.17
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/_virtual/index3.cjs +5 -3
- package/dist/_virtual/index3.cjs.map +1 -1
- package/dist/_virtual/index3.js +5 -2
- package/dist/_virtual/index3.js.map +1 -1
- package/dist/_virtual/index4.cjs +3 -5
- package/dist/_virtual/index4.cjs.map +1 -1
- package/dist/_virtual/index4.js +2 -5
- package/dist/_virtual/index4.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/node_modules/@mantine/form/esm/hooks/use-form-status/use-form-status.cjs +1 -1
- package/dist/node_modules/@mantine/form/esm/hooks/use-form-status/use-form-status.js +1 -1
- package/dist/node_modules/prop-types/index.cjs +1 -1
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/notify.cjs +84 -4
- package/dist/notify.cjs.map +1 -1
- package/dist/notify.d.ts +44 -7
- package/dist/notify.d.ts.map +1 -1
- package/dist/notify.js +84 -4
- package/dist/notify.js.map +1 -1
- package/dist/snackbarCompat.cjs +78 -21
- package/dist/snackbarCompat.cjs.map +1 -1
- package/dist/snackbarCompat.d.ts.map +1 -1
- package/dist/snackbarCompat.js +78 -21
- package/dist/snackbarCompat.js.map +1 -1
- package/dist/theme/index.cjs +76 -0
- package/dist/theme/index.cjs.map +1 -1
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/index.js +76 -0
- package/dist/theme/index.js.map +1 -1
- package/package.json +1 -1
package/dist/_virtual/index3.cjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
const _commonjsHelpers = require("./_commonjsHelpers.cjs");
|
|
3
|
+
const index = require("../node_modules/fast-deep-equal/index.cjs");
|
|
4
|
+
var fastDeepEqualExports = index.__require();
|
|
5
|
+
const isEqual = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(fastDeepEqualExports);
|
|
6
|
+
module.exports = isEqual;
|
|
5
7
|
//# sourceMappingURL=index3.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index3.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index3.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
package/dist/_virtual/index3.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { getDefaultExportFromCjs } from "./_commonjsHelpers.js";
|
|
2
|
+
import { __require as requireFastDeepEqual } from "../node_modules/fast-deep-equal/index.js";
|
|
3
|
+
var fastDeepEqualExports = requireFastDeepEqual();
|
|
4
|
+
const isEqual = /* @__PURE__ */ getDefaultExportFromCjs(fastDeepEqualExports);
|
|
2
5
|
export {
|
|
3
|
-
|
|
6
|
+
isEqual as default
|
|
4
7
|
};
|
|
5
8
|
//# sourceMappingURL=index3.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index3.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/_virtual/index4.cjs
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const isEqual = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(fastDeepEqualExports);
|
|
6
|
-
module.exports = isEqual;
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
var propTypes = { exports: {} };
|
|
4
|
+
exports.__module = propTypes;
|
|
7
5
|
//# sourceMappingURL=index4.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index4.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index4.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/_virtual/index4.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { __require as requireFastDeepEqual } from "../node_modules/fast-deep-equal/index.js";
|
|
3
|
-
var fastDeepEqualExports = requireFastDeepEqual();
|
|
4
|
-
const isEqual = /* @__PURE__ */ getDefaultExportFromCjs(fastDeepEqualExports);
|
|
1
|
+
var propTypes = { exports: {} };
|
|
5
2
|
export {
|
|
6
|
-
|
|
3
|
+
propTypes as __module
|
|
7
4
|
};
|
|
8
5
|
//# sourceMappingURL=index4.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index4.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index4.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index.d.ts
CHANGED
|
@@ -152,7 +152,7 @@ export { useDebouncedCallback } from './hooks/useDebouncedCallback';
|
|
|
152
152
|
export { useForm } from './hooks/useForm';
|
|
153
153
|
export { MOBILE_BREAKPOINT, useIsMobile } from './hooks/useIsMobile';
|
|
154
154
|
export { TABLET_BREAKPOINT, useIsTablet } from './hooks/useIsTablet';
|
|
155
|
-
export { notify } from './notify';
|
|
155
|
+
export { type NotifyOptions, type NotifyUpdateOptions, notify } from './notify';
|
|
156
156
|
export { closeSnackbar, enqueueSnackbar, useSnackbar } from './snackbarCompat';
|
|
157
157
|
export type { AvatarPaletteColor, FairmintColor, FairmintFontSize, FairmintResponsiveTypography, FairmintSpacing, } from './theme';
|
|
158
158
|
export { AVATAR_PALETTE, brandColors, colors, commonColors, createFairmintMantineProviderProps, darkNeutralColors, fairmintCssVariables, fairmintVars, fontSizes, indigoColors, neutralColors, radii, responsiveTypography, semanticColors, shadowColor, spacing, theme, typography, } from './theme';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version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AChB,4BAA4B,EAC5B,eAAe,GAChB,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,cAAc,EACd,WAAW,EACX,MAAM,EACN,YAAY,EACZ,kCAAkC,EAClC,iBAAiB,EACjB,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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const React = require("react");
|
|
4
|
-
const index = require("../../../../../../_virtual/
|
|
4
|
+
const index = require("../../../../../../_virtual/index3.cjs");
|
|
5
5
|
const getStatus = require("../../get-status/get-status.cjs");
|
|
6
6
|
const clearListState = require("../../lists/clear-list-state.cjs");
|
|
7
7
|
const getPath = require("../../paths/get-path.cjs");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState, useRef, useCallback } from "react";
|
|
2
|
-
import isEqual from "../../../../../../_virtual/
|
|
2
|
+
import isEqual from "../../../../../../_virtual/index3.js";
|
|
3
3
|
import { getStatus } from "../../get-status/get-status.js";
|
|
4
4
|
import { clearListState } from "../../lists/clear-list-state.js";
|
|
5
5
|
import { getPath } from "../../paths/get-path.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index$1 = require("../../_virtual/
|
|
3
|
+
const index$1 = require("../../_virtual/index4.cjs");
|
|
4
4
|
const index = require("./node_modules/react-is/index.cjs");
|
|
5
5
|
const factoryWithTypeCheckers = require("./factoryWithTypeCheckers.cjs");
|
|
6
6
|
const factoryWithThrowingShims = require("./factoryWithThrowingShims.cjs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as propTypes } from "../../_virtual/
|
|
1
|
+
import { __module as propTypes } from "../../_virtual/index4.js";
|
|
2
2
|
import { __require as requireReactIs } from "./node_modules/react-is/index.js";
|
|
3
3
|
import { __require as requireFactoryWithTypeCheckers } from "./factoryWithTypeCheckers.js";
|
|
4
4
|
import { __require as requireFactoryWithThrowingShims } from "./factoryWithThrowingShims.js";
|
package/dist/notify.cjs
CHANGED
|
@@ -1,12 +1,92 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const React = require("react");
|
|
3
4
|
const colors = require("./theme/colors.cjs");
|
|
4
5
|
const notifications_store = require("./node_modules/@mantine/notifications/esm/notifications.store.cjs");
|
|
6
|
+
const autoCloseDefaults = {
|
|
7
|
+
success: 4e3,
|
|
8
|
+
error: 6e3,
|
|
9
|
+
warning: 5e3,
|
|
10
|
+
info: 4e3
|
|
11
|
+
};
|
|
12
|
+
const iconPaths = {
|
|
13
|
+
success: ["m9 12 2 2 4-4", "M22 12a10 10 0 1 1-20 0 10 10 0 0 1 20 0Z"],
|
|
14
|
+
error: ["m15 9-6 6", "m9 9 6 6", "M22 12a10 10 0 1 1-20 0 10 10 0 0 1 20 0Z"],
|
|
15
|
+
warning: [
|
|
16
|
+
"M12 9v4",
|
|
17
|
+
"M12 17h.01",
|
|
18
|
+
"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"
|
|
19
|
+
],
|
|
20
|
+
info: ["M12 16v-4", "M12 8h.01", "M22 12a10 10 0 1 1-20 0 10 10 0 0 1 20 0Z"]
|
|
21
|
+
};
|
|
22
|
+
function createNotifyIcon(variant) {
|
|
23
|
+
return React.createElement(
|
|
24
|
+
"svg",
|
|
25
|
+
{
|
|
26
|
+
"aria-hidden": true,
|
|
27
|
+
"data-fairmint-notify-icon": variant,
|
|
28
|
+
fill: "none",
|
|
29
|
+
focusable: "false",
|
|
30
|
+
height: 20,
|
|
31
|
+
stroke: "currentColor",
|
|
32
|
+
strokeLinecap: "round",
|
|
33
|
+
strokeLinejoin: "round",
|
|
34
|
+
strokeWidth: 1.75,
|
|
35
|
+
viewBox: "0 0 24 24",
|
|
36
|
+
width: 20,
|
|
37
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
38
|
+
},
|
|
39
|
+
...iconPaths[variant].map((d) => React.createElement("path", { d, key: d }))
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
function resolveIcon(variant, icon, loading) {
|
|
43
|
+
if (loading) return void 0;
|
|
44
|
+
if (icon === null) return void 0;
|
|
45
|
+
if (icon !== void 0) return icon;
|
|
46
|
+
return createNotifyIcon(variant);
|
|
47
|
+
}
|
|
48
|
+
function resolveMessage(message, action) {
|
|
49
|
+
if (action === void 0) return message;
|
|
50
|
+
return React.createElement(
|
|
51
|
+
React.Fragment,
|
|
52
|
+
null,
|
|
53
|
+
message,
|
|
54
|
+
React.createElement("div", { "data-fairmint-notify-action": true, style: { marginTop: 8 } }, action)
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
function buildNotifyNotification(variant, {
|
|
58
|
+
title,
|
|
59
|
+
message,
|
|
60
|
+
autoClose = autoCloseDefaults[variant],
|
|
61
|
+
icon,
|
|
62
|
+
action,
|
|
63
|
+
withCloseButton = true,
|
|
64
|
+
id,
|
|
65
|
+
loading
|
|
66
|
+
}) {
|
|
67
|
+
return {
|
|
68
|
+
id,
|
|
69
|
+
title,
|
|
70
|
+
message: resolveMessage(message, action),
|
|
71
|
+
color: colors.colors[variant],
|
|
72
|
+
autoClose,
|
|
73
|
+
withBorder: true,
|
|
74
|
+
withCloseButton,
|
|
75
|
+
loading,
|
|
76
|
+
icon: resolveIcon(variant, icon, loading)
|
|
77
|
+
};
|
|
78
|
+
}
|
|
5
79
|
const notify = {
|
|
6
|
-
success: (
|
|
7
|
-
error: (
|
|
8
|
-
warning: (
|
|
9
|
-
info: (
|
|
80
|
+
success: (options) => notifications_store.notifications.show(buildNotifyNotification("success", options)),
|
|
81
|
+
error: (options) => notifications_store.notifications.show(buildNotifyNotification("error", options)),
|
|
82
|
+
warning: (options) => notifications_store.notifications.show(buildNotifyNotification("warning", options)),
|
|
83
|
+
info: (options) => notifications_store.notifications.show(buildNotifyNotification("info", options)),
|
|
84
|
+
/**
|
|
85
|
+
* Update an existing toast by `id` (e.g. loading → success).
|
|
86
|
+
* Applies the same visual defaults as `notify.*` show helpers.
|
|
87
|
+
*/
|
|
88
|
+
update: ({ variant = "info", ...options }) => notifications_store.notifications.update(buildNotifyNotification(variant, options))
|
|
10
89
|
};
|
|
90
|
+
exports.buildNotifyNotification = buildNotifyNotification;
|
|
11
91
|
exports.notify = notify;
|
|
12
92
|
//# sourceMappingURL=notify.cjs.map
|
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 { colors } from \"./theme/colors\";\n\
|
|
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: 4000,\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,EAAE,GAAG,KAAK,EAAA,CAAG,CAAC;AAAA,EAAA;AAEzE;AAEA,SAAS,YACP,SACA,MACA,SACuB;AACvB,MAAI,QAAS,QAAO;AACpB,MAAI,SAAS,KAAM,QAAO;AAC1B,MAAI,SAAS,OAAW,QAAO;AAC/B,SAAO,iBAAiB,OAAO;AACjC;AAEA,SAAS,eAAe,SAAiB,QAA0C;AACjF,MAAI,WAAW,OAAW,QAAO;AACjC,SAAOA,MAAAA;AAAAA,IACLC,MAAAA;AAAAA,IACA;AAAA,IACA;AAAA,IACAD,oBAAc,OAAO,EAAE,+BAA+B,MAAM,OAAO,EAAE,WAAW,EAAA,EAAE,GAAK,MAAM;AAAA,EAAA;AAEjG;AAGO,SAAS,wBACd,SACA;AAAA,EACE;AAAA,EACA;AAAA,EACA,YAAY,kBAAkB,OAAO;AAAA,EACrC;AAAA,EACA;AAAA,EACA,kBAAkB;AAAA,EAClB;AAAA,EACA;AACF,GACA;AACA,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA,SAAS,eAAe,SAAS,MAAM;AAAA,IACvC,OAAOE,OAAAA,OAAO,OAAO;AAAA,IACrB;AAAA,IACA,YAAY;AAAA,IACZ;AAAA,IACA;AAAA,IACA,MAAM,YAAY,SAAS,MAAM,OAAO;AAAA,EAAA;AAE5C;AAeO,MAAM,SAAS;AAAA,EACpB,SAAS,CAAC,YACRC,oBAAAA,cAAc,KAAK,wBAAwB,WAAW,OAAO,CAAC;AAAA,EAEhE,OAAO,CAAC,YAA2BA,oBAAAA,cAAc,KAAK,wBAAwB,SAAS,OAAO,CAAC;AAAA,EAE/F,SAAS,CAAC,YACRA,oBAAAA,cAAc,KAAK,wBAAwB,WAAW,OAAO,CAAC;AAAA,EAEhE,MAAM,CAAC,YAA2BA,oBAAAA,cAAc,KAAK,wBAAwB,QAAQ,OAAO,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA,EAM7F,QAAQ,CAAC,EAAE,UAAU,QAAQ,GAAG,cAC9BA,oBAAAA,cAAc,OAAO,wBAAwB,SAAS,OAAO,CAAC;AAClE;;;"}
|
package/dist/notify.d.ts
CHANGED
|
@@ -1,23 +1,60 @@
|
|
|
1
|
-
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
type NotifyVariant = "success" | "error" | "warning" | "info";
|
|
3
|
+
export interface NotifyOptions {
|
|
2
4
|
title?: string;
|
|
3
5
|
message: string;
|
|
4
6
|
autoClose?: number | false;
|
|
7
|
+
/** Override the default semantic icon, or pass `null` to suppress it. */
|
|
8
|
+
icon?: ReactNode | null;
|
|
9
|
+
/** Optional action content rendered below the message (e.g. a Button). */
|
|
10
|
+
action?: ReactNode;
|
|
11
|
+
/** @default true */
|
|
12
|
+
withCloseButton?: boolean;
|
|
13
|
+
/** Stable id for dismiss / update flows. */
|
|
14
|
+
id?: string;
|
|
15
|
+
/** Shows a loading indicator in place of the icon. */
|
|
16
|
+
loading?: boolean;
|
|
5
17
|
}
|
|
18
|
+
export interface NotifyUpdateOptions extends NotifyOptions {
|
|
19
|
+
id: string;
|
|
20
|
+
/** Semantic tone for color + default icon. @default "info" */
|
|
21
|
+
variant?: NotifyVariant;
|
|
22
|
+
}
|
|
23
|
+
/** Shared Notify presentation used by `notify.*` and `snackbarCompat`. */
|
|
24
|
+
export declare function buildNotifyNotification(variant: NotifyVariant, { title, message, autoClose, icon, action, withCloseButton, id, loading, }: NotifyOptions): {
|
|
25
|
+
id: string | undefined;
|
|
26
|
+
title: string | undefined;
|
|
27
|
+
message: ReactNode;
|
|
28
|
+
color: "success" | "warning" | "error" | "info";
|
|
29
|
+
autoClose: number | false;
|
|
30
|
+
withBorder: boolean;
|
|
31
|
+
withCloseButton: boolean;
|
|
32
|
+
loading: boolean | undefined;
|
|
33
|
+
icon: ReactNode;
|
|
34
|
+
};
|
|
6
35
|
/**
|
|
7
36
|
* Fairmint notification helpers.
|
|
8
37
|
*
|
|
9
|
-
* Uses Mantine's notifications system with Fairmint semantic colors
|
|
10
|
-
*
|
|
38
|
+
* Uses Mantine's notifications system with Fairmint semantic colors, outlined
|
|
39
|
+
* semantic icons (no filled circles), and a 1px border. Subtle single-layer
|
|
40
|
+
* elevation (`--fairmint-elevation-subtle`), tinted semantic surfaces
|
|
41
|
+
* (`*-bg` / light /50), and outlined icon chrome come from the Fairmint theme
|
|
42
|
+
* `Notification` defaults. Requires FairmintProvider.
|
|
11
43
|
*
|
|
12
44
|
* @example
|
|
13
45
|
* notify.success({ message: "Investment saved." });
|
|
14
46
|
* notify.error({ title: "Error", message: "Failed to load data." });
|
|
15
47
|
*/
|
|
16
48
|
export declare const notify: {
|
|
17
|
-
success: (
|
|
18
|
-
error: (
|
|
19
|
-
warning: (
|
|
20
|
-
info: (
|
|
49
|
+
success: (options: NotifyOptions) => string;
|
|
50
|
+
error: (options: NotifyOptions) => string;
|
|
51
|
+
warning: (options: NotifyOptions) => string;
|
|
52
|
+
info: (options: NotifyOptions) => string;
|
|
53
|
+
/**
|
|
54
|
+
* Update an existing toast by `id` (e.g. loading → success).
|
|
55
|
+
* Applies the same visual defaults as `notify.*` show helpers.
|
|
56
|
+
*/
|
|
57
|
+
update: ({ variant, ...options }: NotifyUpdateOptions) => string | undefined;
|
|
21
58
|
};
|
|
22
59
|
export {};
|
|
23
60
|
//# sourceMappingURL=notify.d.ts.map
|
package/dist/notify.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notify.d.ts","sourceRoot":"","sources":["../src/notify.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"notify.d.ts","sourceRoot":"","sources":["../src/notify.ts"],"names":[],"mappings":"AACA,OAAO,EAA2B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGhE,KAAK,aAAa,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;AAE9D,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAC3B,yEAAyE;IACzE,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IACxB,0EAA0E;IAC1E,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,oBAAoB;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,4CAA4C;IAC5C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,sDAAsD;IACtD,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,mBAAoB,SAAQ,aAAa;IACxD,EAAE,EAAE,MAAM,CAAC;IACX,8DAA8D;IAC9D,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AA+DD,0EAA0E;AAC1E,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,aAAa,EACtB,EACE,KAAK,EACL,OAAO,EACP,SAAsC,EACtC,IAAI,EACJ,MAAM,EACN,eAAsB,EACtB,EAAE,EACF,OAAO,GACR,EAAE,aAAa;;;;;;;;;;EAajB;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,MAAM;uBACE,aAAa;qBAGf,aAAa;uBAEX,aAAa;oBAGhB,aAAa;IAE7B;;;OAGG;sCACwC,mBAAmB;CAE/D,CAAC"}
|
package/dist/notify.js
CHANGED
|
@@ -1,12 +1,92 @@
|
|
|
1
|
+
import { createElement, Fragment } from "react";
|
|
1
2
|
import { colors } from "./theme/colors.js";
|
|
2
3
|
import { notifications } from "./node_modules/@mantine/notifications/esm/notifications.store.js";
|
|
4
|
+
const autoCloseDefaults = {
|
|
5
|
+
success: 4e3,
|
|
6
|
+
error: 6e3,
|
|
7
|
+
warning: 5e3,
|
|
8
|
+
info: 4e3
|
|
9
|
+
};
|
|
10
|
+
const iconPaths = {
|
|
11
|
+
success: ["m9 12 2 2 4-4", "M22 12a10 10 0 1 1-20 0 10 10 0 0 1 20 0Z"],
|
|
12
|
+
error: ["m15 9-6 6", "m9 9 6 6", "M22 12a10 10 0 1 1-20 0 10 10 0 0 1 20 0Z"],
|
|
13
|
+
warning: [
|
|
14
|
+
"M12 9v4",
|
|
15
|
+
"M12 17h.01",
|
|
16
|
+
"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"
|
|
17
|
+
],
|
|
18
|
+
info: ["M12 16v-4", "M12 8h.01", "M22 12a10 10 0 1 1-20 0 10 10 0 0 1 20 0Z"]
|
|
19
|
+
};
|
|
20
|
+
function createNotifyIcon(variant) {
|
|
21
|
+
return createElement(
|
|
22
|
+
"svg",
|
|
23
|
+
{
|
|
24
|
+
"aria-hidden": true,
|
|
25
|
+
"data-fairmint-notify-icon": variant,
|
|
26
|
+
fill: "none",
|
|
27
|
+
focusable: "false",
|
|
28
|
+
height: 20,
|
|
29
|
+
stroke: "currentColor",
|
|
30
|
+
strokeLinecap: "round",
|
|
31
|
+
strokeLinejoin: "round",
|
|
32
|
+
strokeWidth: 1.75,
|
|
33
|
+
viewBox: "0 0 24 24",
|
|
34
|
+
width: 20,
|
|
35
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
36
|
+
},
|
|
37
|
+
...iconPaths[variant].map((d) => createElement("path", { d, key: d }))
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
function resolveIcon(variant, icon, loading) {
|
|
41
|
+
if (loading) return void 0;
|
|
42
|
+
if (icon === null) return void 0;
|
|
43
|
+
if (icon !== void 0) return icon;
|
|
44
|
+
return createNotifyIcon(variant);
|
|
45
|
+
}
|
|
46
|
+
function resolveMessage(message, action) {
|
|
47
|
+
if (action === void 0) return message;
|
|
48
|
+
return createElement(
|
|
49
|
+
Fragment,
|
|
50
|
+
null,
|
|
51
|
+
message,
|
|
52
|
+
createElement("div", { "data-fairmint-notify-action": true, style: { marginTop: 8 } }, action)
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
function buildNotifyNotification(variant, {
|
|
56
|
+
title,
|
|
57
|
+
message,
|
|
58
|
+
autoClose = autoCloseDefaults[variant],
|
|
59
|
+
icon,
|
|
60
|
+
action,
|
|
61
|
+
withCloseButton = true,
|
|
62
|
+
id,
|
|
63
|
+
loading
|
|
64
|
+
}) {
|
|
65
|
+
return {
|
|
66
|
+
id,
|
|
67
|
+
title,
|
|
68
|
+
message: resolveMessage(message, action),
|
|
69
|
+
color: colors[variant],
|
|
70
|
+
autoClose,
|
|
71
|
+
withBorder: true,
|
|
72
|
+
withCloseButton,
|
|
73
|
+
loading,
|
|
74
|
+
icon: resolveIcon(variant, icon, loading)
|
|
75
|
+
};
|
|
76
|
+
}
|
|
3
77
|
const notify = {
|
|
4
|
-
success: (
|
|
5
|
-
error: (
|
|
6
|
-
warning: (
|
|
7
|
-
info: (
|
|
78
|
+
success: (options) => notifications.show(buildNotifyNotification("success", options)),
|
|
79
|
+
error: (options) => notifications.show(buildNotifyNotification("error", options)),
|
|
80
|
+
warning: (options) => notifications.show(buildNotifyNotification("warning", options)),
|
|
81
|
+
info: (options) => notifications.show(buildNotifyNotification("info", options)),
|
|
82
|
+
/**
|
|
83
|
+
* Update an existing toast by `id` (e.g. loading → success).
|
|
84
|
+
* Applies the same visual defaults as `notify.*` show helpers.
|
|
85
|
+
*/
|
|
86
|
+
update: ({ variant = "info", ...options }) => notifications.update(buildNotifyNotification(variant, options))
|
|
8
87
|
};
|
|
9
88
|
export {
|
|
89
|
+
buildNotifyNotification,
|
|
10
90
|
notify
|
|
11
91
|
};
|
|
12
92
|
//# sourceMappingURL=notify.js.map
|
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 { colors } from \"./theme/colors\";\n\
|
|
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: 4000,\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,CAAC,iBAAiB,2CAA2C;AAAA,EACtE,OAAO,CAAC,aAAa,YAAY,2CAA2C;AAAA,EAC5E,SAAS;AAAA,IACP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AAS;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/snackbarCompat.cjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const React = require("react");
|
|
4
|
-
const
|
|
4
|
+
const notify = require("./notify.cjs");
|
|
5
5
|
const notifications_store = require("./node_modules/@mantine/notifications/esm/notifications.store.cjs");
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
warning: colors.colors.warning
|
|
6
|
+
const semanticNotifyMethods = {
|
|
7
|
+
error: notify.notify.error,
|
|
8
|
+
info: notify.notify.info,
|
|
9
|
+
success: notify.notify.success,
|
|
10
|
+
warning: notify.notify.warning
|
|
12
11
|
};
|
|
12
|
+
const isSemanticVariant = (variant) => variant !== "default";
|
|
13
13
|
const resolveAutoClose = (options) => {
|
|
14
14
|
if (options.persist || options.autoHideDuration === null) return false;
|
|
15
15
|
return options.autoHideDuration;
|
|
@@ -20,6 +20,23 @@ const resolvePosition = (options) => {
|
|
|
20
20
|
const horizontal = options.anchorOrigin?.horizontal;
|
|
21
21
|
return `${vertical ?? "bottom"}-${horizontal ?? "left"}`;
|
|
22
22
|
};
|
|
23
|
+
const resolveWithCloseButton = (options, action) => {
|
|
24
|
+
if (action !== void 0 && (options.persist || options.autoHideDuration === null)) {
|
|
25
|
+
return false;
|
|
26
|
+
}
|
|
27
|
+
return true;
|
|
28
|
+
};
|
|
29
|
+
const canRouteThroughNotify = (message, options) => {
|
|
30
|
+
if (!isSemanticVariant(options.variant ?? "default")) return false;
|
|
31
|
+
if (typeof message !== "string") return false;
|
|
32
|
+
if (options.title !== void 0 && typeof options.title !== "string") return false;
|
|
33
|
+
if (options.content !== void 0) return false;
|
|
34
|
+
if (options.style !== void 0) return false;
|
|
35
|
+
if (options.anchorOrigin !== void 0) return false;
|
|
36
|
+
if (options.onClose !== void 0) return false;
|
|
37
|
+
if (options.preventDuplicate) return false;
|
|
38
|
+
return true;
|
|
39
|
+
};
|
|
23
40
|
let generatedSnackbarKey = 0;
|
|
24
41
|
let generatedNodeDuplicateKey = 0;
|
|
25
42
|
const activeDuplicateKeys = /* @__PURE__ */ new Set();
|
|
@@ -54,6 +71,13 @@ const clearDuplicateId = (id) => {
|
|
|
54
71
|
const duplicateKey = duplicateKeysById.get(id);
|
|
55
72
|
if (duplicateKey) clearDuplicateKey(duplicateKey);
|
|
56
73
|
};
|
|
74
|
+
const trackDuplicate = (id, options, duplicateKey) => {
|
|
75
|
+
if (options.preventDuplicate) {
|
|
76
|
+
activeDuplicateKeys.add(duplicateKey);
|
|
77
|
+
duplicateKeysById.set(id, duplicateKey);
|
|
78
|
+
duplicateIdsByKey.set(duplicateKey, id);
|
|
79
|
+
}
|
|
80
|
+
};
|
|
57
81
|
const enqueueSnackbar = (message, options = {}) => {
|
|
58
82
|
const duplicateKey = createDuplicateKey(message, options);
|
|
59
83
|
const needsStableKey = Boolean(options.action || options.content);
|
|
@@ -71,28 +95,61 @@ const enqueueSnackbar = (message, options = {}) => {
|
|
|
71
95
|
const renderKey = explicitId ?? "";
|
|
72
96
|
const action = typeof options.action === "function" ? options.action(renderKey) : options.action;
|
|
73
97
|
const content = typeof options.content === "function" ? options.content(renderKey, message) : options.content;
|
|
98
|
+
const variant = options.variant ?? "default";
|
|
99
|
+
const autoClose = resolveAutoClose(options);
|
|
100
|
+
const withCloseButton = resolveWithCloseButton(options, action);
|
|
101
|
+
if (typeof message === "string" && canRouteThroughNotify(message, options) && isSemanticVariant(variant)) {
|
|
102
|
+
const notifyOptions = {
|
|
103
|
+
id: explicitId,
|
|
104
|
+
title: typeof options.title === "string" ? options.title : void 0,
|
|
105
|
+
message,
|
|
106
|
+
action,
|
|
107
|
+
withCloseButton,
|
|
108
|
+
...autoClose === void 0 ? {} : { autoClose }
|
|
109
|
+
};
|
|
110
|
+
const id2 = semanticNotifyMethods[variant](notifyOptions);
|
|
111
|
+
trackDuplicate(id2, options, duplicateKey);
|
|
112
|
+
return id2;
|
|
113
|
+
}
|
|
74
114
|
const renderedMessage = content ?? (action ? React.createElement(React.Fragment, null, message, action) : message);
|
|
115
|
+
const onClose = (notification) => {
|
|
116
|
+
const notificationId = String(notification?.id ?? explicitId ?? "");
|
|
117
|
+
const closeReason = notificationId && instructedCloseIds.has(notificationId) ? "instructed" : "timeout";
|
|
118
|
+
if (notificationId) instructedCloseIds.delete(notificationId);
|
|
119
|
+
if (options.preventDuplicate) clearDuplicateKey(duplicateKey);
|
|
120
|
+
options.onClose?.(void 0, closeReason, notification?.id ?? explicitId);
|
|
121
|
+
};
|
|
122
|
+
if (isSemanticVariant(variant)) {
|
|
123
|
+
const presentation = notify.buildNotifyNotification(variant, {
|
|
124
|
+
id: explicitId,
|
|
125
|
+
title: typeof options.title === "string" ? options.title : void 0,
|
|
126
|
+
// Message/action are composed by snackbarCompat for notistack content/action parity.
|
|
127
|
+
message: typeof message === "string" ? message : "",
|
|
128
|
+
withCloseButton,
|
|
129
|
+
...autoClose === void 0 ? {} : { autoClose }
|
|
130
|
+
});
|
|
131
|
+
const id2 = notifications_store.notifications.show({
|
|
132
|
+
...presentation,
|
|
133
|
+
title: options.title,
|
|
134
|
+
message: renderedMessage,
|
|
135
|
+
onClose,
|
|
136
|
+
position: resolvePosition(options),
|
|
137
|
+
style: options.style
|
|
138
|
+
});
|
|
139
|
+
trackDuplicate(id2, options, duplicateKey);
|
|
140
|
+
return id2;
|
|
141
|
+
}
|
|
75
142
|
const id = notifications_store.notifications.show({
|
|
76
143
|
id: explicitId,
|
|
77
144
|
title: options.title,
|
|
78
145
|
message: renderedMessage,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
onClose
|
|
82
|
-
const notificationId = String(notification?.id ?? explicitId ?? "");
|
|
83
|
-
const closeReason = notificationId && instructedCloseIds.has(notificationId) ? "instructed" : "timeout";
|
|
84
|
-
if (notificationId) instructedCloseIds.delete(notificationId);
|
|
85
|
-
if (options.preventDuplicate) clearDuplicateKey(duplicateKey);
|
|
86
|
-
options.onClose?.(void 0, closeReason, notification?.id ?? explicitId);
|
|
87
|
-
},
|
|
146
|
+
autoClose,
|
|
147
|
+
withCloseButton,
|
|
148
|
+
onClose,
|
|
88
149
|
position: resolvePosition(options),
|
|
89
150
|
style: options.style
|
|
90
151
|
});
|
|
91
|
-
|
|
92
|
-
activeDuplicateKeys.add(duplicateKey);
|
|
93
|
-
duplicateKeysById.set(id, duplicateKey);
|
|
94
|
-
duplicateIdsByKey.set(duplicateKey, id);
|
|
95
|
-
}
|
|
152
|
+
trackDuplicate(id, options, duplicateKey);
|
|
96
153
|
return id;
|
|
97
154
|
};
|
|
98
155
|
const closeSnackbar = (id) => {
|