@fuf-stack/megapixels 0.11.36 → 0.13.0

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.
Files changed (34) hide show
  1. package/dist/Filter/index.cjs +1 -1
  2. package/dist/Filter/index.d.cts +1 -1
  3. package/dist/Filter/index.d.ts +1 -1
  4. package/dist/Filter/index.js +1 -1
  5. package/dist/{Filter-DHNzbevz.js → Filter-BKfVjFPo.js} +8 -8
  6. package/dist/{Filter-DHNzbevz.js.map → Filter-BKfVjFPo.js.map} +1 -1
  7. package/dist/{Filter-B_YqTFA5.cjs → Filter-Cw7qoiiE.cjs} +8 -8
  8. package/dist/{Filter-B_YqTFA5.cjs.map → Filter-Cw7qoiiE.cjs.map} +1 -1
  9. package/dist/Notification/index.cjs +1 -1
  10. package/dist/Notification/index.d.cts +1 -1
  11. package/dist/Notification/index.d.ts +1 -1
  12. package/dist/Notification/index.js +1 -1
  13. package/dist/{Notification-ClLRWj0j.cjs → Notification-Bg3_1P1x.cjs} +45 -12
  14. package/dist/Notification-Bg3_1P1x.cjs.map +1 -0
  15. package/dist/{Notification-5tyFF-87.js → Notification-Bgw2MtBQ.js} +45 -12
  16. package/dist/Notification-Bgw2MtBQ.js.map +1 -0
  17. package/dist/{index-BkliAQ5x.d.cts → index-CgoXcO8f.d.cts} +2 -2
  18. package/dist/{index-BkliAQ5x.d.cts.map → index-CgoXcO8f.d.cts.map} +1 -1
  19. package/dist/{index-DNAyXW3U.d.ts → index-E2k5kJ14.d.ts} +2 -2
  20. package/dist/{index-DNAyXW3U.d.ts.map → index-E2k5kJ14.d.ts.map} +1 -1
  21. package/dist/{index-DRyBPfQT.d.cts → index-oeUH2qWd.d.cts} +16 -10
  22. package/dist/index-oeUH2qWd.d.cts.map +1 -0
  23. package/dist/{index-DRyBPfQT.d.ts → index-oeUH2qWd.d.ts} +16 -10
  24. package/dist/index-oeUH2qWd.d.ts.map +1 -0
  25. package/dist/index.cjs +2 -2
  26. package/dist/index.d.cts +2 -2
  27. package/dist/index.d.ts +2 -2
  28. package/dist/index.js +2 -2
  29. package/package.json +10 -11
  30. package/LICENSE +0 -21
  31. package/dist/Notification-5tyFF-87.js.map +0 -1
  32. package/dist/Notification-ClLRWj0j.cjs.map +0 -1
  33. package/dist/index-DRyBPfQT.d.cts.map +0 -1
  34. package/dist/index-DRyBPfQT.d.ts.map +0 -1
@@ -1,2 +1,2 @@
1
- import { n as NotificationHost, r as notification, t as Notification_default } from "../Notification-5tyFF-87.js";
1
+ import { n as NotificationHost, r as notification, t as Notification_default } from "../Notification-Bgw2MtBQ.js";
2
2
  export { NotificationHost, Notification_default as default, notification };
@@ -2,12 +2,23 @@ let react_jsx_runtime = require("react/jsx-runtime");
2
2
  let _fuf_stack_pixels_Modal = require("@fuf-stack/pixels/Modal");
3
3
  let _fuf_stack_pixels_Toast = require("@fuf-stack/pixels/Toast");
4
4
  //#region src/Notification/notification.tsx
5
- const renderProps = { modal: _fuf_stack_pixels_Modal.modal };
5
+ const renderPropsModal = {
6
+ ..._fuf_stack_pixels_Modal.modal,
7
+ open: (options) => {
8
+ return _fuf_stack_pixels_Modal.modal.open({
9
+ className: {
10
+ backdrop: "z-[70]",
11
+ wrapper: "z-[70]"
12
+ },
13
+ ...options
14
+ });
15
+ }
16
+ };
6
17
  /**
7
18
  * Maps `NotificationOptions` to `ToastOptions` by resolving `endContent`:
8
19
  * a render function receives the render props and its returned node is used.
9
20
  */
10
- const resolveOptions = (options) => {
21
+ const resolveOptions = (options, renderProps) => {
11
22
  if (!options) return;
12
23
  const { endContent, ...toastOptions } = options;
13
24
  return {
@@ -16,12 +27,31 @@ const resolveOptions = (options) => {
16
27
  };
17
28
  };
18
29
  /**
30
+ * Shows a notification via the given toast method, wiring up the render props.
31
+ *
32
+ * The toast id is only known after the toast is shown, but the `endContent`
33
+ * render function runs before that — so we stash the id in a holder that the
34
+ * `closeNotification` closure reads when invoked (always after the id is set).
35
+ */
36
+ const show = (showToast, message, options) => {
37
+ const idHolder = {};
38
+ const id = showToast(message, resolveOptions(options, {
39
+ modal: renderPropsModal,
40
+ closeNotification: () => {
41
+ if (idHolder.id !== void 0) _fuf_stack_pixels_Toast.toast.close(idHolder.id);
42
+ }
43
+ }));
44
+ idHolder.id = id;
45
+ return id;
46
+ };
47
+ /**
19
48
  * Imperative API for showing notifications: `default` / `info` / `warn` /
20
49
  * `success` / `error` show a notification (each returns an id), and `close`
21
50
  * dismisses one by id.
22
51
  *
23
52
  * Besides a plain node, `endContent` may be a render function that receives
24
- * the {@link NotificationRenderProps} — including a `modal` API — and returns
53
+ * the {@link NotificationRenderProps} — including a `modal` API and a
54
+ * `closeNotification` helper that dismisses this notification — and returns
25
55
  * the node to render, e.g. to open a modal showing details that do not fit
26
56
  * into the notification itself.
27
57
  *
@@ -31,8 +61,11 @@ const resolveOptions = (options) => {
31
61
  * ```tsx
32
62
  * notification.error('A request failed.', {
33
63
  * title: 'Request failed',
34
- * endContent: ({ modal }) => (
35
- * <Button onClick={() => modal.open({ content: details })}>More</Button>
64
+ * endContent: ({ modal, closeNotification }) => (
65
+ * <>
66
+ * <Button onClick={() => modal.open({ content: details })}>More</Button>
67
+ * <Button onClick={closeNotification}>Dismiss</Button>
68
+ * </>
36
69
  * ),
37
70
  * });
38
71
  * ```
@@ -43,35 +76,35 @@ const notification = {
43
76
  * @returns The toast id which can be passed to `notification.close()`
44
77
  */
45
78
  default: (message, options) => {
46
- return _fuf_stack_pixels_Toast.toast.default(message, resolveOptions(options));
79
+ return show(_fuf_stack_pixels_Toast.toast.default, message, options);
47
80
  },
48
81
  /**
49
82
  * Show an info notification.
50
83
  * @returns The toast id which can be passed to `notification.close()`
51
84
  */
52
85
  info: (message, options) => {
53
- return _fuf_stack_pixels_Toast.toast.info(message, resolveOptions(options));
86
+ return show(_fuf_stack_pixels_Toast.toast.info, message, options);
54
87
  },
55
88
  /**
56
89
  * Show a warning notification.
57
90
  * @returns The toast id which can be passed to `notification.close()`
58
91
  */
59
92
  warn: (message, options) => {
60
- return _fuf_stack_pixels_Toast.toast.warn(message, resolveOptions(options));
93
+ return show(_fuf_stack_pixels_Toast.toast.warn, message, options);
61
94
  },
62
95
  /**
63
96
  * Show a success notification.
64
97
  * @returns The toast id which can be passed to `notification.close()`
65
98
  */
66
99
  success: (message, options) => {
67
- return _fuf_stack_pixels_Toast.toast.success(message, resolveOptions(options));
100
+ return show(_fuf_stack_pixels_Toast.toast.success, message, options);
68
101
  },
69
102
  /**
70
103
  * Show an error notification.
71
104
  * @returns The toast id which can be passed to `notification.close()`
72
105
  */
73
106
  error: (message, options) => {
74
- return _fuf_stack_pixels_Toast.toast.error(message, resolveOptions(options));
107
+ return show(_fuf_stack_pixels_Toast.toast.error, message, options);
75
108
  },
76
109
  /** Close a notification by its id */
77
110
  close: (id) => {
@@ -91,7 +124,7 @@ const notification = {
91
124
  */
92
125
  const NotificationHost = ({ width = 600 }) => {
93
126
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_fuf_stack_pixels_Toast.Toaster, { style: {
94
- zIndex: 40,
127
+ zIndex: 60,
95
128
  ...width != null && { "--width": typeof width === "number" ? `${width}px` : width }
96
129
  } }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_fuf_stack_pixels_Modal.ModalHost, {})] });
97
130
  };
@@ -118,4 +151,4 @@ Object.defineProperty(exports, "notification", {
118
151
  }
119
152
  });
120
153
 
121
- //# sourceMappingURL=Notification-ClLRWj0j.cjs.map
154
+ //# sourceMappingURL=Notification-Bg3_1P1x.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Notification-Bg3_1P1x.cjs","names":["modal","toast","Toaster","ModalHost"],"sources":["../src/Notification/notification.tsx","../src/Notification/NotificationHost.tsx","../src/Notification/index.ts"],"sourcesContent":["import type { ModalStoreApi } from '@fuf-stack/pixels/Modal';\nimport type { ToastOptions } from '@fuf-stack/pixels/Toast';\nimport type { ReactNode } from 'react';\n\nimport { modal } from '@fuf-stack/pixels/Modal';\nimport { toast } from '@fuf-stack/pixels/Toast';\n\n/**\n * Props passed to function-based render props on a notification (e.g.\n * `endContent`), exposing helpers usable while rendering.\n */\nexport interface NotificationRenderProps {\n /** Closes the notification this render function belongs to. */\n closeNotification: () => void;\n /** Imperative modal API for opening/closing a modal from a notification. */\n modal: ModalStoreApi;\n}\n\n/** Options accepted by every `notification.<variant>()` call */\nexport interface NotificationOptions extends Omit<ToastOptions, 'endContent'> {\n /**\n * The notification's end content. Either a node rendered directly, or a\n * render function that receives the {@link NotificationRenderProps} (incl. a\n * `modal` API to open a modal) and returns the node to render.\n */\n endContent?: ReactNode | ((props: NotificationRenderProps) => ReactNode);\n}\n\n// Modal API exposed to render props. The exposed `modal.open` elevates the\n// modal above the Toaster so it stacks on top of the notification it was opened\n// from: the Toaster sits at z-60 (see NotificationHost) while HeroUI defaults\n// the modal z-index (on its `wrapper` + `backdrop` slots) to z-50, so we raise\n// both to z-70 via the `className` slot.\nconst renderPropsModal: ModalStoreApi = {\n ...modal,\n open: (options) => {\n return modal.open({\n className: { backdrop: 'z-[70]', wrapper: 'z-[70]' },\n ...options,\n });\n },\n};\n\n/**\n * Maps `NotificationOptions` to `ToastOptions` by resolving `endContent`:\n * a render function receives the render props and its returned node is used.\n */\nconst resolveOptions = (\n options: NotificationOptions | undefined,\n renderProps: NotificationRenderProps,\n): ToastOptions | undefined => {\n if (!options) {\n return undefined;\n }\n // Pull `endContent` out so the remaining options pass through unchanged.\n const { endContent, ...toastOptions } = options;\n\n return {\n ...toastOptions,\n // `ToastOptions.endContent` only accepts a node, so resolve the\n // render-function form down to one (a plain node passes through as-is).\n endContent:\n typeof endContent === 'function' ? endContent(renderProps) : endContent,\n };\n};\n\n/**\n * Shows a notification via the given toast method, wiring up the render props.\n *\n * The toast id is only known after the toast is shown, but the `endContent`\n * render function runs before that — so we stash the id in a holder that the\n * `closeNotification` closure reads when invoked (always after the id is set).\n */\nconst show = (\n showToast: (message: ReactNode, options?: ToastOptions) => string | number,\n message: ReactNode,\n options?: NotificationOptions,\n) => {\n const idHolder: { id?: string | number } = {};\n const renderProps: NotificationRenderProps = {\n modal: renderPropsModal,\n closeNotification: () => {\n if (idHolder.id !== undefined) {\n toast.close(idHolder.id);\n }\n },\n };\n const id = showToast(message, resolveOptions(options, renderProps));\n idHolder.id = id;\n return id;\n};\n\n/**\n * Imperative API for showing notifications: `default` / `info` / `warn` /\n * `success` / `error` show a notification (each returns an id), and `close`\n * dismisses one by id.\n *\n * Besides a plain node, `endContent` may be a render function that receives\n * the {@link NotificationRenderProps} — including a `modal` API and a\n * `closeNotification` helper that dismisses this notification — and returns\n * the node to render, e.g. to open a modal showing details that do not fit\n * into the notification itself.\n *\n * Requires a `<NotificationHost />` to be mounted in the React tree.\n *\n * @example\n * ```tsx\n * notification.error('A request failed.', {\n * title: 'Request failed',\n * endContent: ({ modal, closeNotification }) => (\n * <>\n * <Button onClick={() => modal.open({ content: details })}>More</Button>\n * <Button onClick={closeNotification}>Dismiss</Button>\n * </>\n * ),\n * });\n * ```\n */\nconst notification = {\n /**\n * Show a default notification.\n * @returns The toast id which can be passed to `notification.close()`\n */\n default: (message: ReactNode, options?: NotificationOptions) => {\n return show(toast.default, message, options);\n },\n /**\n * Show an info notification.\n * @returns The toast id which can be passed to `notification.close()`\n */\n info: (message: ReactNode, options?: NotificationOptions) => {\n return show(toast.info, message, options);\n },\n /**\n * Show a warning notification.\n * @returns The toast id which can be passed to `notification.close()`\n */\n warn: (message: ReactNode, options?: NotificationOptions) => {\n return show(toast.warn, message, options);\n },\n /**\n * Show a success notification.\n * @returns The toast id which can be passed to `notification.close()`\n */\n success: (message: ReactNode, options?: NotificationOptions) => {\n return show(toast.success, message, options);\n },\n /**\n * Show an error notification.\n * @returns The toast id which can be passed to `notification.close()`\n */\n error: (message: ReactNode, options?: NotificationOptions) => {\n return show(toast.error, message, options);\n },\n /** Close a notification by its id */\n close: (id: string | number) => {\n toast.close(id);\n },\n};\n\nexport default notification;\n","import type { CSSProperties } from 'react';\n\nimport { ModalHost } from '@fuf-stack/pixels/Modal';\nimport { Toaster } from '@fuf-stack/pixels/Toast';\n\nexport interface NotificationHostProps {\n /**\n * Width applied to all toasts. A number is treated as pixels; a string is\n * used verbatim (e.g. `'600px'`, `'40rem'`). Sets Sonner's `--width` CSS\n * variable on the Toaster.\n */\n width?: number | string;\n}\n\n/**\n * Mounts the Toaster and ModalHost.\n *\n * Use once at the top level of your app:\n *\n * ```tsx\n * <NotificationHost />\n * ```\n */\nconst NotificationHost = ({ width = 600 }: NotificationHostProps) => {\n // Stacking layers (see notification.tsx for the modal side):\n // 1. normal app-level modal — HeroUI default z-50\n // 2. notification / Toaster — z-60 (this), so notifications appear ABOVE\n // a normal modal that is already open\n // 3. modal opened FROM a notification — z-70 (set in notification.tsx),\n // so it appears above the notification again\n // Sonner defaults the Toaster to z-index 999999999, so we override it here.\n // `--width` is passed inline because Sonner sets its default `--width` inline\n // on the same element, which beats class-based overrides.\n const toasterStyle = {\n zIndex: 60,\n ...(width != null && {\n '--width': typeof width === 'number' ? `${width}px` : width,\n }),\n } as CSSProperties;\n return (\n <>\n <Toaster style={toasterStyle} />\n <ModalHost />\n </>\n );\n};\n\nexport default NotificationHost;\n","import notification from './notification';\nimport NotificationHost from './NotificationHost';\n\nexport type {\n NotificationOptions,\n NotificationRenderProps,\n} from './notification';\nexport type { NotificationHostProps } from './NotificationHost';\n\nexport { NotificationHost, notification };\nexport default notification;\n"],"mappings":";;;;AAiCA,MAAM,mBAAkC;CACtC,GAAGA,wBAAAA;CACH,OAAO,YAAY;EACjB,OAAOA,wBAAAA,MAAM,KAAK;GAChB,WAAW;IAAE,UAAU;IAAU,SAAS;GAAS;GACnD,GAAG;EACL,CAAC;CACH;AACF;;;;;AAMA,MAAM,kBACJ,SACA,gBAC6B;CAC7B,IAAI,CAAC,SACH;CAGF,MAAM,EAAE,YAAY,GAAG,iBAAiB;CAExC,OAAO;EAC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IAAA,CAACC,wBAAAA,WAAD,CAAY,CAAA,CACZ,EAAA,CAAA;AAEN;;;ACnCA,IAAA,uBAAe"}
@@ -2,12 +2,23 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
2
  import { ModalHost, modal } from "@fuf-stack/pixels/Modal";
3
3
  import { Toaster, toast } from "@fuf-stack/pixels/Toast";
4
4
  //#region src/Notification/notification.tsx
5
- const renderProps = { modal };
5
+ const renderPropsModal = {
6
+ ...modal,
7
+ open: (options) => {
8
+ return modal.open({
9
+ className: {
10
+ backdrop: "z-[70]",
11
+ wrapper: "z-[70]"
12
+ },
13
+ ...options
14
+ });
15
+ }
16
+ };
6
17
  /**
7
18
  * Maps `NotificationOptions` to `ToastOptions` by resolving `endContent`:
8
19
  * a render function receives the render props and its returned node is used.
9
20
  */
10
- const resolveOptions = (options) => {
21
+ const resolveOptions = (options, renderProps) => {
11
22
  if (!options) return;
12
23
  const { endContent, ...toastOptions } = options;
13
24
  return {
@@ -16,12 +27,31 @@ const resolveOptions = (options) => {
16
27
  };
17
28
  };
18
29
  /**
30
+ * Shows a notification via the given toast method, wiring up the render props.
31
+ *
32
+ * The toast id is only known after the toast is shown, but the `endContent`
33
+ * render function runs before that — so we stash the id in a holder that the
34
+ * `closeNotification` closure reads when invoked (always after the id is set).
35
+ */
36
+ const show = (showToast, message, options) => {
37
+ const idHolder = {};
38
+ const id = showToast(message, resolveOptions(options, {
39
+ modal: renderPropsModal,
40
+ closeNotification: () => {
41
+ if (idHolder.id !== void 0) toast.close(idHolder.id);
42
+ }
43
+ }));
44
+ idHolder.id = id;
45
+ return id;
46
+ };
47
+ /**
19
48
  * Imperative API for showing notifications: `default` / `info` / `warn` /
20
49
  * `success` / `error` show a notification (each returns an id), and `close`
21
50
  * dismisses one by id.
22
51
  *
23
52
  * Besides a plain node, `endContent` may be a render function that receives
24
- * the {@link NotificationRenderProps} — including a `modal` API — and returns
53
+ * the {@link NotificationRenderProps} — including a `modal` API and a
54
+ * `closeNotification` helper that dismisses this notification — and returns
25
55
  * the node to render, e.g. to open a modal showing details that do not fit
26
56
  * into the notification itself.
27
57
  *
@@ -31,8 +61,11 @@ const resolveOptions = (options) => {
31
61
  * ```tsx
32
62
  * notification.error('A request failed.', {
33
63
  * title: 'Request failed',
34
- * endContent: ({ modal }) => (
35
- * <Button onClick={() => modal.open({ content: details })}>More</Button>
64
+ * endContent: ({ modal, closeNotification }) => (
65
+ * <>
66
+ * <Button onClick={() => modal.open({ content: details })}>More</Button>
67
+ * <Button onClick={closeNotification}>Dismiss</Button>
68
+ * </>
36
69
  * ),
37
70
  * });
38
71
  * ```
@@ -43,35 +76,35 @@ const notification = {
43
76
  * @returns The toast id which can be passed to `notification.close()`
44
77
  */
45
78
  default: (message, options) => {
46
- return toast.default(message, resolveOptions(options));
79
+ return show(toast.default, message, options);
47
80
  },
48
81
  /**
49
82
  * Show an info notification.
50
83
  * @returns The toast id which can be passed to `notification.close()`
51
84
  */
52
85
  info: (message, options) => {
53
- return toast.info(message, resolveOptions(options));
86
+ return show(toast.info, message, options);
54
87
  },
55
88
  /**
56
89
  * Show a warning notification.
57
90
  * @returns The toast id which can be passed to `notification.close()`
58
91
  */
59
92
  warn: (message, options) => {
60
- return toast.warn(message, resolveOptions(options));
93
+ return show(toast.warn, message, options);
61
94
  },
62
95
  /**
63
96
  * Show a success notification.
64
97
  * @returns The toast id which can be passed to `notification.close()`
65
98
  */
66
99
  success: (message, options) => {
67
- return toast.success(message, resolveOptions(options));
100
+ return show(toast.success, message, options);
68
101
  },
69
102
  /**
70
103
  * Show an error notification.
71
104
  * @returns The toast id which can be passed to `notification.close()`
72
105
  */
73
106
  error: (message, options) => {
74
- return toast.error(message, resolveOptions(options));
107
+ return show(toast.error, message, options);
75
108
  },
76
109
  /** Close a notification by its id */
77
110
  close: (id) => {
@@ -91,7 +124,7 @@ const notification = {
91
124
  */
92
125
  const NotificationHost = ({ width = 600 }) => {
93
126
  return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Toaster, { style: {
94
- zIndex: 40,
127
+ zIndex: 60,
95
128
  ...width != null && { "--width": typeof width === "number" ? `${width}px` : width }
96
129
  } }), /* @__PURE__ */ jsx(ModalHost, {})] });
97
130
  };
@@ -101,4 +134,4 @@ var Notification_default = notification;
101
134
  //#endregion
102
135
  export { NotificationHost as n, notification as r, Notification_default as t };
103
136
 
104
- //# sourceMappingURL=Notification-5tyFF-87.js.map
137
+ //# sourceMappingURL=Notification-Bgw2MtBQ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Notification-Bgw2MtBQ.js","names":[],"sources":["../src/Notification/notification.tsx","../src/Notification/NotificationHost.tsx","../src/Notification/index.ts"],"sourcesContent":["import type { ModalStoreApi } from '@fuf-stack/pixels/Modal';\nimport type { ToastOptions } from '@fuf-stack/pixels/Toast';\nimport type { ReactNode } from 'react';\n\nimport { modal } from '@fuf-stack/pixels/Modal';\nimport { toast } from '@fuf-stack/pixels/Toast';\n\n/**\n * Props passed to function-based render props on a notification (e.g.\n * `endContent`), exposing helpers usable while rendering.\n */\nexport interface NotificationRenderProps {\n /** Closes the notification this render function belongs to. */\n closeNotification: () => void;\n /** Imperative modal API for opening/closing a modal from a notification. */\n modal: ModalStoreApi;\n}\n\n/** Options accepted by every `notification.<variant>()` call */\nexport interface NotificationOptions extends Omit<ToastOptions, 'endContent'> {\n /**\n * The notification's end content. Either a node rendered directly, or a\n * render function that receives the {@link NotificationRenderProps} (incl. a\n * `modal` API to open a modal) and returns the node to render.\n */\n endContent?: ReactNode | ((props: NotificationRenderProps) => ReactNode);\n}\n\n// Modal API exposed to render props. The exposed `modal.open` elevates the\n// modal above the Toaster so it stacks on top of the notification it was opened\n// from: the Toaster sits at z-60 (see NotificationHost) while HeroUI defaults\n// the modal z-index (on its `wrapper` + `backdrop` slots) to z-50, so we raise\n// both to z-70 via the `className` slot.\nconst renderPropsModal: ModalStoreApi = {\n ...modal,\n open: (options) => {\n return modal.open({\n className: { backdrop: 'z-[70]', wrapper: 'z-[70]' },\n ...options,\n });\n },\n};\n\n/**\n * Maps `NotificationOptions` to `ToastOptions` by resolving `endContent`:\n * a render function receives the render props and its returned node is used.\n */\nconst resolveOptions = (\n options: NotificationOptions | undefined,\n renderProps: NotificationRenderProps,\n): ToastOptions | undefined => {\n if (!options) {\n return undefined;\n }\n // Pull `endContent` out so the remaining options pass through unchanged.\n const { endContent, ...toastOptions } = options;\n\n return {\n ...toastOptions,\n // `ToastOptions.endContent` only accepts a node, so resolve the\n // render-function form down to one (a plain node passes through as-is).\n endContent:\n typeof endContent === 'function' ? endContent(renderProps) : endContent,\n };\n};\n\n/**\n * Shows a notification via the given toast method, wiring up the render props.\n *\n * The toast id is only known after the toast is shown, but the `endContent`\n * render function runs before that — so we stash the id in a holder that the\n * `closeNotification` closure reads when invoked (always after the id is set).\n */\nconst show = (\n showToast: (message: ReactNode, options?: ToastOptions) => string | number,\n message: ReactNode,\n options?: NotificationOptions,\n) => {\n const idHolder: { id?: string | number } = {};\n const renderProps: NotificationRenderProps = {\n modal: renderPropsModal,\n closeNotification: () => {\n if (idHolder.id !== undefined) {\n toast.close(idHolder.id);\n }\n },\n };\n const id = showToast(message, resolveOptions(options, renderProps));\n idHolder.id = id;\n return id;\n};\n\n/**\n * Imperative API for showing notifications: `default` / `info` / `warn` /\n * `success` / `error` show a notification (each returns an id), and `close`\n * dismisses one by id.\n *\n * Besides a plain node, `endContent` may be a render function that receives\n * the {@link NotificationRenderProps} — including a `modal` API and a\n * `closeNotification` helper that dismisses this notification — and returns\n * the node to render, e.g. to open a modal showing details that do not fit\n * into the notification itself.\n *\n * Requires a `<NotificationHost />` to be mounted in the React tree.\n *\n * @example\n * ```tsx\n * notification.error('A request failed.', {\n * title: 'Request failed',\n * endContent: ({ modal, closeNotification }) => (\n * <>\n * <Button onClick={() => modal.open({ content: details })}>More</Button>\n * <Button onClick={closeNotification}>Dismiss</Button>\n * </>\n * ),\n * });\n * ```\n */\nconst notification = {\n /**\n * Show a default notification.\n * @returns The toast id which can be passed to `notification.close()`\n */\n default: (message: ReactNode, options?: NotificationOptions) => {\n return show(toast.default, message, options);\n },\n /**\n * Show an info notification.\n * @returns The toast id which can be passed to `notification.close()`\n */\n info: (message: ReactNode, options?: NotificationOptions) => {\n return show(toast.info, message, options);\n },\n /**\n * Show a warning notification.\n * @returns The toast id which can be passed to `notification.close()`\n */\n warn: (message: ReactNode, options?: NotificationOptions) => {\n return show(toast.warn, message, options);\n },\n /**\n * Show a success notification.\n * @returns The toast id which can be passed to `notification.close()`\n */\n success: (message: ReactNode, options?: NotificationOptions) => {\n return show(toast.success, message, options);\n },\n /**\n * Show an error notification.\n * @returns The toast id which can be passed to `notification.close()`\n */\n error: (message: ReactNode, options?: NotificationOptions) => {\n return show(toast.error, message, options);\n },\n /** Close a notification by its id */\n close: (id: string | number) => {\n toast.close(id);\n },\n};\n\nexport default notification;\n","import type { CSSProperties } from 'react';\n\nimport { ModalHost } from '@fuf-stack/pixels/Modal';\nimport { Toaster } from '@fuf-stack/pixels/Toast';\n\nexport interface NotificationHostProps {\n /**\n * Width applied to all toasts. A number is treated as pixels; a string is\n * used verbatim (e.g. `'600px'`, `'40rem'`). Sets Sonner's `--width` CSS\n * variable on the Toaster.\n */\n width?: number | string;\n}\n\n/**\n * Mounts the Toaster and ModalHost.\n *\n * Use once at the top level of your app:\n *\n * ```tsx\n * <NotificationHost />\n * ```\n */\nconst NotificationHost = ({ width = 600 }: NotificationHostProps) => {\n // Stacking layers (see notification.tsx for the modal side):\n // 1. normal app-level modal — HeroUI default z-50\n // 2. notification / Toaster — z-60 (this), so notifications appear ABOVE\n // a normal modal that is already open\n // 3. modal opened FROM a notification — z-70 (set in notification.tsx),\n // so it appears above the notification again\n // Sonner defaults the Toaster to z-index 999999999, so we override it here.\n // `--width` is passed inline because Sonner sets its default `--width` inline\n // on the same element, which beats class-based overrides.\n const toasterStyle = {\n zIndex: 60,\n ...(width != null && {\n '--width': typeof width === 'number' ? `${width}px` : width,\n }),\n } as CSSProperties;\n return (\n <>\n <Toaster style={toasterStyle} />\n <ModalHost />\n </>\n );\n};\n\nexport default NotificationHost;\n","import notification from './notification';\nimport NotificationHost from './NotificationHost';\n\nexport type {\n NotificationOptions,\n NotificationRenderProps,\n} from './notification';\nexport type { NotificationHostProps } from './NotificationHost';\n\nexport { NotificationHost, notification };\nexport default notification;\n"],"mappings":";;;;AAiCA,MAAM,mBAAkC;CACtC,GAAG;CACH,OAAO,YAAY;EACjB,OAAO,MAAM,KAAK;GAChB,WAAW;IAAE,UAAU;IAAU,SAAS;GAAS;GACnD,GAAG;EACL,CAAC;CACH;AACF;;;;;AAMA,MAAM,kBACJ,SACA,gBAC6B;CAC7B,IAAI,CAAC,SACH;CAGF,MAAM,EAAE,YAAY,GAAG,iBAAiB;CAExC,OAAO;EACL,GAAG;EAGH,YACE,OAAO,eAAe,aAAa,WAAW,WAAW,IAAI;CACjE;AACF;;;;;;;;AASA,MAAM,QACJ,WACA,SACA,YACG;CACH,MAAM,WAAqC,CAAC;CAS5C,MAAM,KAAK,UAAU,SAAS,eAAe,SAAS;EAPpD,OAAO;EACP,yBAAyB;GACvB,IAAI,SAAS,OAAO,KAAA,GAClB,MAAM,MAAM,SAAS,EAAE;EAE3B;CAE8D,CAAC,CAAC;CAClE,SAAS,KAAK;CACd,OAAO;AACT;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,MAAM,eAAe;;;;;CAKnB,UAAU,SAAoB,YAAkC;EAC9D,OAAO,KAAK,MAAM,SAAS,SAAS,OAAO;CAC7C;;;;;CAKA,OAAO,SAAoB,YAAkC;EAC3D,OAAO,KAAK,MAAM,MAAM,SAAS,OAAO;CAC1C;;;;;CAKA,OAAO,SAAoB,YAAkC;EAC3D,OAAO,KAAK,MAAM,MAAM,SAAS,OAAO;CAC1C;;;;;CAKA,UAAU,SAAoB,YAAkC;EAC9D,OAAO,KAAK,MAAM,SAAS,SAAS,OAAO;CAC7C;;;;;CAKA,QAAQ,SAAoB,YAAkC;EAC5D,OAAO,KAAK,MAAM,OAAO,SAAS,OAAO;CAC3C;;CAEA,QAAQ,OAAwB;EAC9B,MAAM,MAAM,EAAE;CAChB;AACF;;;;;;;;;;;;ACvIA,MAAM,oBAAoB,EAAE,QAAQ,UAAiC;CAgBnE,OACE,qBAAA,UAAA,EAAA,UAAA,CACE,oBAAC,SAAD,EAAS,OAAO;EAPlB,QAAQ;EACR,GAAI,SAAS,QAAQ,EACnB,WAAW,OAAO,UAAU,WAAW,GAAG,MAAM,MAAM,MACxD;CAI6B,EAAI,CAAA,GAC/B,oBAAC,WAAD,CAAY,CAAA,CACZ,EAAA,CAAA;AAEN;;;ACnCA,IAAA,uBAAe"}
@@ -2024,7 +2024,7 @@ declare const Filter: ({
2024
2024
  formName,
2025
2025
  onChange,
2026
2026
  values
2027
- }: FilterProps) => import("react/jsx-runtime").JSX.Element;
2027
+ }: FilterProps) => import("react").JSX.Element;
2028
2028
  //#endregion
2029
2029
  //#region src/Filter/filters/createFilter.d.ts
2030
2030
  /**
@@ -2057,4 +2057,4 @@ declare const filters: {
2057
2057
  };
2058
2058
  //#endregion
2059
2059
  export { FilterProps as a, FilterDefinition as c, FilterFormProps as d, FilterInstance as f, FilterChildRenderFn as i, FilterDisplayProps as l, createFilter as n, FilterValues as o, FiltersConfiguration as p, Filter as r, filterVariants as s, filters as t, FilterFactory as u };
2060
- //# sourceMappingURL=index-BkliAQ5x.d.cts.map
2060
+ //# sourceMappingURL=index-CgoXcO8f.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-BkliAQ5x.d.cts","names":[],"sources":["../src/Filter/filters/checkboxes/schema.ts","../src/Filter/filters/types.ts","../src/Filter/Subcomponents/SearchInput.tsx","../src/Filter/Filter.tsx","../src/Filter/filters/createFilter.ts","../src/Filter/index.ts"],"mappings":";;;;;;cAMa,QAAA,4BAAM,aAAA;;AAAnB;;;;EAAmB;;;;;;;;;;;;KAgBP,MAAA,GAAS,IAAA,CAAK,MAAA,QAAc,QA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obAAD;;;;wbADF;IAAA;;obAAZ;;;;wbAC4B;IAAA;;;;;;wbCP7B;IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KFwCI,SAAA,GAAY,WAAW,QAAQ,cAAA;AAAA,UAEnB,YAAA;EACf,MAAA;EACA,MAAA,YAAkB,MAAM;AAAA;AAAA,KAGd,mBAAA,IAAuB,MAAA;EACjC,MAAA;EACA,MAAA,GAAS,MAAA;AAAA,MACL,SAAS;;;;;;;;;;;;;;;;;;UAmBE,WAAA;;EAEf,QAAA,GAAW,mBAAA;;EAEX,SAAA,GAAY,SAAA;;EAEZ,MAAA;;;;;IAKE,OAAA,EAAS,oBAAA;IAET,MAAA,GAAS,mBAAA;EAAA;;EAGX,QAAA;;EAEA,QAAA,GAAW,UAAA,EAAY,YAAA;;EAEvB,MAAA,EAAQ,YAAA;AAAA;;;;;;cAQJ,MAAA;EAAU,QAAA;EAAA,SAAA;EAAA,MAAA;EAAA,QAAA;EAAA,QAAA;EAAA;AAAA,GAOb,WAAA,iCAAW,GAAA,CAAA,OAAA;;;;;;;AHhHd;;;;;;;;;;;;;cIaM,YAAA,kBACJ,UAAA,EAAY,gBAAA,CAAiB,MAAA,EAAQ,KAAA,MACpC,aAAA,CAAc,MAAA,EAAQ,KAAA;;;cCVZ,OAAA;WAGZ,aAAA"}
1
+ {"version":3,"file":"index-CgoXcO8f.d.cts","names":[],"sources":["../src/Filter/filters/checkboxes/schema.ts","../src/Filter/filters/types.ts","../src/Filter/Subcomponents/SearchInput.tsx","../src/Filter/Filter.tsx","../src/Filter/filters/createFilter.ts","../src/Filter/index.ts"],"m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
2026
  values
2027
- }: FilterProps) => import("react/jsx-runtime").JSX.Element;
2027
+ }: FilterProps) => import("react").JSX.Element;
2028
2028
  //#endregion
2029
2029
  //#region src/Filter/filters/createFilter.d.ts
2030
2030
  /**
@@ -2057,4 +2057,4 @@ declare const filters: {
2057
2057
  };
2058
2058
  //#endregion
2059
2059
  export { FilterProps as a, FilterDefinition as c, FilterFormProps as d, FilterInstance as f, FilterChildRenderFn as i, FilterDisplayProps as l, createFilter as n, FilterValues as o, FiltersConfiguration as p, Filter as r, filterVariants as s, filters as t, FilterFactory as u };
2060
- //# sourceMappingURL=index-DNAyXW3U.d.ts.map
2060
+ //# sourceMappingURL=index-E2k5kJ14.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-DNAyXW3U.d.ts","names":[],"sources":["../src/Filter/filters/checkboxes/schema.ts","../src/Filter/filters/types.ts","../src/Filter/Subcomponents/SearchInput.tsx","../src/Filter/Filter.tsx","../src/Filter/filters/createFilter.ts","../src/Filter/index.ts"],"mappings":";;;;;;cAMa,QAAA,4BAAM,aAAA;;AAAnB;;;;EAAmB;;;;;;;;;;;;KAgBP,MAAA,GAAS,IAAA,CAAK,MAAA,QAAc,QAAA;EACtC,OAAA;IACE,KAAA,EAAO,SAAA,KAAc,IAAA,yBAA6B,SAAA;IAClD,KAAA;EAAA;AAAA;;;;;;;AAnBJ;;;;;;;UCOiB,gBAAA;EACf,UAAA;;;;;IAKE,OAAA,GAAU,KAAA;MAAS,KAAA,EAAO,KAAA;MAAO,MAAA,EAAQ,MAAA;IAAA,MAAa,SAAA;IDGxC;;;;ICEd,IAAA,GAAO,KAAA;MAAS,SAAA;MAAmB,MAAA,EAAQ,MAAA;IAAA,MAAa,SAAA;EAAA;EAE1D,QAAA;IDJwB,yECMtB,MAAA,EAAQ,MAAA,EDLV;ICOE,KAAA,EAAO,KAAA;EAAA;EDNc;;;;ECYvB,UAAA,GAAa,MAAA,GAAS,MAAA;AAAA;;;AAvBxB;;;;;;;;KAoCY,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S,MAAA;AAAA,MACL,SAAS;;;;;;;;;;;;;;;;;;UAmBE,WAAA;;EAEf,QAAA,GAAW,mBAAA;;EAEX,SAAA,GAAY,SAAA;;EAEZ,MAAA;;;;;IAKE,OAAA,EAAS,oBAAA;IAET,MAAA,GAAS,mBAAA;EAAA;;EAGX,QAAA;;EAEA,QAAA,GAAW,UAAA,EAAY,YAAA;;EAEvB,MAAA,EAAQ,YAAA;AAAA;;;;;;cAQJ,MAAA;EAAU,QAAA;EAAA,SAAA;EAAA,MAAA;EAAA,QAAA;EAAA,QAAA;EAAA;AAAA,GAOb,WAAA,iCAAW,GAAA,CAAA,OAAA;;;;;;;AHhHd;;;;;;;;;;;;;cIaM,YAAA,kBACJ,UAAA,EAAY,gBAAA,CAAiB,MAAA,EAAQ,KAAA,MACpC,aAAA,CAAc,MAAA,EAAQ,KAAA;;;cCVZ,OAAA;WAGZ,aAAA"}
1
+ {"version":3,"file":"index-E2k5kJ14.d.ts","names":[],"sources":["../src/Filter/filters/checkboxes/schema.ts","../src/Filter/filters/types.ts","../src/Filter/Subcomponents/SearchInput.tsx","../src/Filter/Filter.tsx","../src/Filter/filters/createFilter.ts","../src/Filter/index.ts"],"mappings":";;;;;;cAMa,QAAA,4BAAM,aAAA;;AAAnB;;;;EAAmB;;;;;;;;;;;;KAgBP,MAAA,GAAS,IAAA,CAAK,MAAA,QAAc,QAAA;EACtC,OAAA;IACE,KAAA,EAAO,SAAA,KAAc,IAAA,yBAA6B,SAAA;IAClD,KAAA;EAAA;AAAA;;;;;;;AAnBJ;;;;;;;UCOiB,gBAAA;EACf,UAAA;;;;;IAKE,OAAA,GAAU,KAAA;MAAS,KAAA,EAAO,KAAA;MAAO,MAAA,EAAQ,MAAA;IAAA,MAAa,SAAA;IDGxC;;;;ICEd,IAAA,GAAO,KAAA;MAAS,SAAA;MAAmB,MAAA,EAAQ,MAAA;IAAA,MAAa,SAAA;EAAA;EAE1D,QAAA;IDJwB,yECMtB,MAAA,EAAQ,MAAA,E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,UAEnB,YAAA;EACf,MAAA;EACA,MAAA,YAAkB,MAAM;AAAA;AAAA,KAGd,mBAAA,IAAuB,MAAA;EACjC,MAAA;EACA,MAAA,GAAS,MAAA;AAAA,MACL,SAAS;;;;;;;;;;;;;;;;;;UAmBE,WAAA;;EAEf,QAAA,GAAW,mBAAA;;EAEX,SAAA,GAAY,SAAA;;EAEZ,MAAA;;;;;IAKE,OAAA,EAAS,oBAAA;IAET,MAAA,GAAS,mBAAA;EAAA;;EAGX,QAAA;;EAEA,QAAA,GAAW,UAAA,EAAY,YAAA;;EAEvB,MAAA,EAAQ,YAAA;AAAA;;;;;;cAQJ,MAAA;EAAU,QAAA;EAAA,SAAA;EAAA,MAAA;EAAA,QAAA;EAAA,QAAA;EAAA;AAAA,GAOb,WAAA,qBAAW,GAAA,CAAA,OAAA;;;;;;;AHhHd;;;;;;;;;;;;;cIaM,YAAA,kBACJ,UAAA,EAAY,gBAAA,CAAiB,MAAA,EAAQ,KAAA,MACpC,aAAA,CAAc,MAAA,EAAQ,KAAA;;;cCVZ,OAAA;WAGZ,aAAA"}
@@ -8,6 +8,8 @@ import { ToastOptions } from "@fuf-stack/pixels/Toast";
8
8
  * `endContent`), exposing helpers usable while rendering.
9
9
  */
10
10
  interface NotificationRenderProps {
11
+ /** Closes the notification this render function belongs to. */
12
+ closeNotification: () => void;
11
13
  /** Imperative modal API for opening/closing a modal from a notification. */
12
14
  modal: ModalStoreApi;
13
15
  }
@@ -26,7 +28,8 @@ interface NotificationOptions extends Omit<ToastOptions, 'endContent'> {
26
28
  * dismisses one by id.
27
29
  *
28
30
  * Besides a plain node, `endContent` may be a render function that receives
29
- * the {@link NotificationRenderProps} — including a `modal` API — and returns
31
+ * the {@link NotificationRenderProps} — including a `modal` API and a
32
+ * `closeNotification` helper that dismisses this notification — and returns
30
33
  * the node to render, e.g. to open a modal showing details that do not fit
31
34
  * into the notification itself.
32
35
  *
@@ -36,8 +39,11 @@ interface NotificationOptions extends Omit<ToastOptions, 'endContent'> {
36
39
  * ```tsx
37
40
  * notification.error('A request failed.', {
38
41
  * title: 'Request failed',
39
- * endContent: ({ modal }) => (
40
- * <Button onClick={() => modal.open({ content: details })}>More</Button>
42
+ * endContent: ({ modal, closeNotification }) => (
43
+ * <>
44
+ * <Button onClick={() => modal.open({ content: details })}>More</Button>
45
+ * <Button onClick={closeNotification}>Dismiss</Button>
46
+ * </>
41
47
  * ),
42
48
  * });
43
49
  * ```
@@ -47,27 +53,27 @@ declare const notification: {
47
53
  * Show a default notification.
48
54
  * @returns The toast id which can be passed to `notification.close()`
49
55
  */
50
- default: (message: ReactNode, options?: NotificationOptions) => any;
56
+ default: (message: ReactNode, options?: NotificationOptions) => string | number;
51
57
  /**
52
58
  * Show an info notification.
53
59
  * @returns The toast id which can be passed to `notification.close()`
54
60
  */
55
- info: (message: ReactNode, options?: NotificationOptions) => any;
61
+ info: (message: ReactNode, options?: NotificationOptions) => string | number;
56
62
  /**
57
63
  * Show a warning notification.
58
64
  * @returns The toast id which can be passed to `notification.close()`
59
65
  */
60
- warn: (message: ReactNode, options?: NotificationOptions) => any;
66
+ warn: (message: ReactNode, options?: NotificationOptions) => string | number;
61
67
  /**
62
68
  * Show a success notification.
63
69
  * @returns The toast id which can be passed to `notification.close()`
64
70
  */
65
- success: (message: ReactNode, options?: NotificationOptions) => any;
71
+ success: (message: ReactNode, options?: NotificationOptions) => string | number;
66
72
  /**
67
73
  * Show an error notification.
68
74
  * @returns The toast id which can be passed to `notification.close()`
69
75
  */
70
- error: (message: ReactNode, options?: NotificationOptions) => any; /** Close a notification by its id */
76
+ error: (message: ReactNode, options?: NotificationOptions) => string | number; /** Close a notification by its id */
71
77
  close: (id: string | number) => void;
72
78
  };
73
79
  //#endregion
@@ -91,7 +97,7 @@ interface NotificationHostProps {
91
97
  */
92
98
  declare const NotificationHost: ({
93
99
  width
94
- }: NotificationHostProps) => import("react/jsx-runtime").JSX.Element;
100
+ }: NotificationHostProps) => import("react").JSX.Element;
95
101
  //#endregion
96
102
  export { notification as a, NotificationRenderProps as i, NotificationHostProps as n, NotificationOptions as r, NotificationHost as t };
97
- //# sourceMappingURL=index-DRyBPfQT.d.cts.map
103
+ //# sourceMappingURL=index-oeUH2qWd.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-oeUH2qWd.d.cts","names":[],"sources":["../src/Notification/notification.tsx","../src/Notification/NotificationHost.tsx"],"mappings":";;;;;;;AAWA;;UAAiB,uBAAA;EAIK;EAFpB,iBAAA;EAEA;EAAA,KAAA,EAAO,aAAa;AAAA;AAAA;AAAA,UAIL,mBAAA,SAA4B,IAAA,CAAK,YAAA;EAAb;;;;;EAMnC,UAAA,GAAa,SAAA,KAAc,KAAA,EAAO,uBAAA,KAA4B,SAAA;AAAA;;;;;;;;;;;AAAS;AACxE;;;;;;;;;;;;;;;cA4FK,YAAA;EAKe;;;;qBAAA,SAAA,EAAS,OAAA,GAAY,mBAAA;EAOxB;;;;kBAAA,SAAA,EAAS,OAAA,GAAY,mBAAA;EAOrB;;;;kBAAA,SAAA,EAAS,OAAA,GAAY,mBAAA;EAOlB;;;;qBAAA,SAAA,EAAS,OAAA,GAAY,mBAAA;EAOvB;;;;mBAAA,SAAA,EAAS,OAAA,GAAY,mBAAA;;;;;UClJvB,qBAAA;;;;;ADMjB;ECAE,KAAK;AAAA;;;;;;ADIe;AAItB;;;cCIM,gBAAA;EAAoB;AAAA,GAAiB,qBAAqB,qBAAA,GAAA,CAAA,OAAA"}
@@ -8,6 +8,8 @@ import { ToastOptions } from "@fuf-stack/pixels/Toast";
8
8
  * `endContent`), exposing helpers usable while rendering.
9
9
  */
10
10
  interface NotificationRenderProps {
11
+ /** Closes the notification this render function belongs to. */
12
+ closeNotification: () => void;
11
13
  /** Imperative modal API for opening/closing a modal from a notification. */
12
14
  modal: ModalStoreApi;
13
15
  }
@@ -26,7 +28,8 @@ interface NotificationOptions extends Omit<ToastOptions, 'endContent'> {
26
28
  * dismisses one by id.
27
29
  *
28
30
  * Besides a plain node, `endContent` may be a render function that receives
29
- * the {@link NotificationRenderProps} — including a `modal` API — and returns
31
+ * the {@link NotificationRenderProps} — including a `modal` API and a
32
+ * `closeNotification` helper that dismisses this notification — and returns
30
33
  * the node to render, e.g. to open a modal showing details that do not fit
31
34
  * into the notification itself.
32
35
  *
@@ -36,8 +39,11 @@ interface NotificationOptions extends Omit<ToastOptions, 'endContent'> {
36
39
  * ```tsx
37
40
  * notification.error('A request failed.', {
38
41
  * title: 'Request failed',
39
- * endContent: ({ modal }) => (
40
- * <Button onClick={() => modal.open({ content: details })}>More</Button>
42
+ * endContent: ({ modal, closeNotification }) => (
43
+ * <>
44
+ * <Button onClick={() => modal.open({ content: details })}>More</Button>
45
+ * <Button onClick={closeNotification}>Dismiss</Button>
46
+ * </>
41
47
  * ),
42
48
  * });
43
49
  * ```
@@ -47,27 +53,27 @@ declare const notification: {
47
53
  * Show a default notification.
48
54
  * @returns The toast id which can be passed to `notification.close()`
49
55
  */
50
- default: (message: ReactNode, options?: NotificationOptions) => any;
56
+ default: (message: ReactNode, options?: NotificationOptions) => string | number;
51
57
  /**
52
58
  * Show an info notification.
53
59
  * @returns The toast id which can be passed to `notification.close()`
54
60
  */
55
- info: (message: ReactNode, options?: NotificationOptions) => any;
61
+ info: (message: ReactNode, options?: NotificationOptions) => string | number;
56
62
  /**
57
63
  * Show a warning notification.
58
64
  * @returns The toast id which can be passed to `notification.close()`
59
65
  */
60
- warn: (message: ReactNode, options?: NotificationOptions) => any;
66
+ warn: (message: ReactNode, options?: NotificationOptions) => string | number;
61
67
  /**
62
68
  * Show a success notification.
63
69
  * @returns The toast id which can be passed to `notification.close()`
64
70
  */
65
- success: (message: ReactNode, options?: NotificationOptions) => any;
71
+ success: (message: ReactNode, options?: NotificationOptions) => string | number;
66
72
  /**
67
73
  * Show an error notification.
68
74
  * @returns The toast id which can be passed to `notification.close()`
69
75
  */
70
- error: (message: ReactNode, options?: NotificationOptions) => any; /** Close a notification by its id */
76
+ error: (message: ReactNode, options?: NotificationOptions) => string | number; /** Close a notification by its id */
71
77
  close: (id: string | number) => void;
72
78
  };
73
79
  //#endregion
@@ -91,7 +97,7 @@ interface NotificationHostProps {
91
97
  */
92
98
  declare const NotificationHost: ({
93
99
  width
94
- }: NotificationHostProps) => import("react/jsx-runtime").JSX.Element;
100
+ }: NotificationHostProps) => import("react").JSX.Element;
95
101
  //#endregion
96
102
  export { notification as a, NotificationRenderProps as i, NotificationHostProps as n, NotificationOptions as r, NotificationHost as t };
97
- //# sourceMappingURL=index-DRyBPfQT.d.ts.map
103
+ //# sourceMappingURL=index-oeUH2qWd.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-oeUH2qWd.d.ts","names":[],"sources":["../src/Notification/notification.tsx","../src/Notification/NotificationHost.tsx"],"mappings":";;;;;;;AAWA;;UAAiB,uBAAA;EAIK;EAFpB,iBAAA;EAEA;EAAA,KAAA,EAAO,aAAa;AAAA;AAAA;AAAA,UAIL,mBAAA,SAA4B,IAAA,CAAK,YAAA;EAAb;;;;;EAMnC,UAAA,GAAa,SAAA,KAAc,KAAA,EAAO,uBAAA,KAA4B,SAAA;AAAA;;;;;;;;;;;AAAS;AACxE;;;;;;;;;;;;;;;cA4FK,YAAA;EAKe;;;;qBAAA,SAAA,EAAS,OAAA,GAAY,mBAAA;EAOxB;;;;kBAAA,SAAA,EAAS,OAAA,GAAY,mBAAA;EAOrB;;;;kBAAA,SAAA,EAAS,OAAA,GAAY,mBAAA;EAOlB;;;;qBAAA,SAAA,EAAS,OAAA,GAAY,mBAAA;EAOvB;;;;mBAAA,SAAA,EAAS,OAAA,GAAY,mBAAA;;;;;UClJvB,qBAAA;;;;;ADMjB;ECAE,KAAK;AAAA;;;;;;ADIe;AAItB;;;cCIM,gBAAA;EAAoB;AAAA,GAAiB,qBAAqB,qBAAA,GAAA,CAAA,OAAA"}
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_Filter = require("./Filter-B_YqTFA5.cjs");
3
- const require_Notification = require("./Notification-ClLRWj0j.cjs");
2
+ const require_Filter = require("./Filter-Cw7qoiiE.cjs");
3
+ const require_Notification = require("./Notification-Bg3_1P1x.cjs");
4
4
  //#region src/index.ts
5
5
  /* v8 ignore stop */
6
6
  //#endregion
package/dist/index.d.cts CHANGED
@@ -1,3 +1,3 @@
1
- import { a as FilterProps, c as FilterDefinition, d as FilterFormProps, f as FilterInstance, i as FilterChildRenderFn, l as FilterDisplayProps, n as createFilter, o as FilterValues, p as FiltersConfiguration, s as filterVariants, t as filters, u as FilterFactory } from "./index-BkliAQ5x.cjs";
2
- import { a as notification, i as NotificationRenderProps, n as NotificationHostProps, r as NotificationOptions, t as NotificationHost } from "./index-DRyBPfQT.cjs";
1
+ import { a as FilterProps, c as FilterDefinition, d as FilterFormProps, f as FilterInstance, i as FilterChildRenderFn, l as FilterDisplayProps, n as createFilter, o as FilterValues, p as FiltersConfiguration, s as filterVariants, t as filters, u as FilterFactory } from "./index-CgoXcO8f.cjs";
2
+ import { a as notification, i as NotificationRenderProps, n as NotificationHostProps, r as NotificationOptions, t as NotificationHost } from "./index-oeUH2qWd.cjs";
3
3
  export { FilterChildRenderFn, type FilterDefinition, type FilterDisplayProps, type FilterFactory, type FilterFormProps, type FilterInstance, FilterProps, FilterValues, type FiltersConfiguration, NotificationHost, type NotificationHostProps, type NotificationOptions, type NotificationRenderProps, createFilter, filterVariants, filters, notification };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { a as FilterProps, c as FilterDefinition, d as FilterFormProps, f as FilterInstance, i as FilterChildRenderFn, l as FilterDisplayProps, n as createFilter, o as FilterValues, p as FiltersConfiguration, s as filterVariants, t as filters, u as FilterFactory } from "./index-DNAyXW3U.js";
2
- import { a as notification, i as NotificationRenderProps, n as NotificationHostProps, r as NotificationOptions, t as NotificationHost } from "./index-DRyBPfQT.js";
1
+ import { a as FilterProps, c as FilterDefinition, d as FilterFormProps, f as FilterInstance, i as FilterChildRenderFn, l as FilterDisplayProps, n as createFilter, o as FilterValues, p as FiltersConfiguration, s as filterVariants, t as filters, u as FilterFactory } from "./index-E2k5kJ14.js";
2
+ import { a as notification, i as NotificationRenderProps, n as NotificationHostProps, r as NotificationOptions, t as NotificationHost } from "./index-oeUH2qWd.js";
3
3
  export { FilterChildRenderFn, type FilterDefinition, type FilterDisplayProps, type FilterFactory, type FilterFormProps, type FilterInstance, FilterProps, FilterValues, type FiltersConfiguration, NotificationHost, type NotificationHostProps, type NotificationOptions, type NotificationRenderProps, createFilter, filterVariants, filters, notification };
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { i as filterVariants, n as filters, r as createFilter } from "./Filter-DHNzbevz.js";
2
- import { n as NotificationHost, r as notification } from "./Notification-5tyFF-87.js";
1
+ import { i as filterVariants, n as filters, r as createFilter } from "./Filter-BKfVjFPo.js";
2
+ import { n as NotificationHost, r as notification } from "./Notification-Bgw2MtBQ.js";
3
3
  //#region src/index.ts
4
4
  /* v8 ignore stop */
5
5
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fuf-stack/megapixels",
3
- "version": "0.11.36",
3
+ "version": "0.13.0",
4
4
  "description": "fuf react advanced components library",
5
5
  "author": "Fröhlich ∧ Frei",
6
6
  "homepage": "https://github.com/fuf-stack/megapixels#readme",
@@ -49,20 +49,19 @@
49
49
  "react-dom": ">=18"
50
50
  },
51
51
  "dependencies": {
52
- "@fuf-stack/pixel-motion": "1.2.2",
53
- "@fuf-stack/pixel-utils": "1.3.2",
54
- "@fuf-stack/pixels": "1.11.4",
55
- "@fuf-stack/uniform": "1.24.1",
56
- "@fuf-stack/veto": "1.7.3",
52
+ "@fuf-stack/pixel-motion": "workspace:*",
53
+ "@fuf-stack/pixel-utils": "workspace:*",
54
+ "@fuf-stack/pixels": "workspace:*",
55
+ "@fuf-stack/uniform": "workspace:*",
56
+ "@fuf-stack/veto": "workspace:*",
57
57
  "debug": "4.4.3",
58
58
  "react-icons": "5.6.0"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@types/debug": "4.1.13",
62
- "@types/react": "19.2.15",
62
+ "@types/react": "19.2.17",
63
63
  "@types/react-dom": "19.2.3",
64
- "react": "19.2.6",
65
- "react-dom": "19.2.6"
66
- },
67
- "gitHead": "37b02a760b073f3bcdb7cf1a9ea69fd6db446158"
64
+ "react": "19.2.7",
65
+ "react-dom": "19.2.7"
66
+ }
68
67
  }