@temboplus/frontend-react-core 0.1.3-beta.7 → 0.1.3-beta.9
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/features/notifications/tembo-notify.d.ts +6 -70
- package/dist/features/notifications/tembo-notify.js +23 -62
- package/dist/features/notifications/toast-config.d.ts +0 -4
- package/dist/features/notifications/toast-config.js +23 -22
- package/dist/features/notifications/toast-container.d.ts +13 -3
- package/dist/features/notifications/toast-container.js +40 -64
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/notifications/index.cjs.js +1 -1
- package/dist/notifications/index.js +1 -1
- package/dist/tembo-notify-Bp14qngd.js +2 -0
- package/dist/tembo-notify-Bp14qngd.js.map +1 -0
- package/dist/tembo-notify-h5Xn66oA.js +2 -0
- package/dist/tembo-notify-h5Xn66oA.js.map +1 -0
- package/package.json +1 -1
- package/dist/tembo-notify-BAawbRy0.js +0 -2
- package/dist/tembo-notify-BAawbRy0.js.map +0 -1
- package/dist/tembo-notify-BDtExWQg.js +0 -2
- package/dist/tembo-notify-BDtExWQg.js.map +0 -1
|
@@ -1,114 +1,50 @@
|
|
|
1
|
-
import { ToastOptions, ToastContent, Id
|
|
1
|
+
import { ToastOptions, ToastContent, Id } from 'react-toastify';
|
|
2
2
|
import { TemboColorPalette, TemboUIConstants } from '../../theme/index.js';
|
|
3
3
|
/**
|
|
4
|
-
* Message input - can be simple string or object with title and
|
|
4
|
+
* Message input - can be simple string or object with title and description
|
|
5
5
|
*/
|
|
6
6
|
export type NotifyMessage = ToastContent | {
|
|
7
7
|
title?: string;
|
|
8
8
|
description?: string;
|
|
9
9
|
};
|
|
10
|
-
export interface NotifyOptions extends Omit<ToastOptions, 'type'
|
|
11
|
-
/**
|
|
12
|
-
* Unique ID for the toast to prevent duplicates
|
|
13
|
-
* If a toast with this ID exists, it will be updated instead of creating a new one
|
|
14
|
-
*/
|
|
10
|
+
export interface NotifyOptions extends Omit<ToastOptions, 'type'> {
|
|
15
11
|
toastId?: Id;
|
|
16
|
-
/**
|
|
17
|
-
* Duration in milliseconds before auto-closing
|
|
18
|
-
* Set to false or 0 to prevent auto-close
|
|
19
|
-
* @default 4000 for success/info/warning, 6000 for error
|
|
20
|
-
*/
|
|
21
12
|
duration?: number | false;
|
|
22
|
-
/**
|
|
23
|
-
* Callback when notification is clicked
|
|
24
|
-
*/
|
|
25
13
|
onClick?: () => void;
|
|
26
|
-
/**
|
|
27
|
-
* Callback when notification is closed
|
|
28
|
-
*/
|
|
29
14
|
onClose?: () => void;
|
|
30
|
-
/**
|
|
31
|
-
* Custom icon to display
|
|
32
|
-
* If provided, will override the default icon
|
|
33
|
-
*/
|
|
34
|
-
icon?: ToastIcon;
|
|
35
|
-
/**
|
|
36
|
-
* Show close button
|
|
37
|
-
* @default false
|
|
38
|
-
*/
|
|
39
|
-
showCloseButton?: boolean;
|
|
40
15
|
}
|
|
41
16
|
/**
|
|
42
17
|
* TemboNotify - Unified notification system
|
|
43
18
|
*/
|
|
44
19
|
export declare class TemboNotify {
|
|
45
20
|
private static configs;
|
|
46
|
-
/**
|
|
47
|
-
* Initialize TemboNotify with theme tokens
|
|
48
|
-
* (Called automatically by TemboToastContainer)
|
|
49
|
-
*/
|
|
50
21
|
static init(colors: TemboColorPalette, constants: TemboUIConstants): void;
|
|
51
|
-
/**
|
|
52
|
-
* Get current toast configs if present, otherwise undefined.
|
|
53
|
-
*/
|
|
54
22
|
private static getConfigs;
|
|
55
23
|
/**
|
|
56
24
|
* Format message content for display
|
|
25
|
+
* - title only → bold
|
|
26
|
+
* - description only → weight 500
|
|
27
|
+
* - title + description → stacked
|
|
57
28
|
*/
|
|
58
29
|
private static formatMessage;
|
|
59
|
-
/**
|
|
60
|
-
* Build toast options from config and user options.
|
|
61
|
-
*/
|
|
62
30
|
private static buildOptions;
|
|
63
|
-
/**
|
|
64
|
-
* Helpers to get per-type base config with fallback
|
|
65
|
-
*/
|
|
66
31
|
private static getSuccessConfig;
|
|
67
32
|
private static getErrorConfig;
|
|
68
33
|
private static getWarningConfig;
|
|
69
34
|
private static getInfoConfig;
|
|
70
35
|
private static getLoadingConfig;
|
|
71
|
-
/**
|
|
72
|
-
* Display a success notification
|
|
73
|
-
*/
|
|
74
36
|
static success(message: NotifyMessage, options?: NotifyOptions): Id;
|
|
75
|
-
/**
|
|
76
|
-
* Display an error notification
|
|
77
|
-
*/
|
|
78
37
|
static error(message: NotifyMessage, options?: NotifyOptions): Id;
|
|
79
|
-
/**
|
|
80
|
-
* Display a warning notification
|
|
81
|
-
*/
|
|
82
38
|
static warning(message: NotifyMessage, options?: NotifyOptions): Id;
|
|
83
|
-
/**
|
|
84
|
-
* Display an info notification
|
|
85
|
-
*/
|
|
86
39
|
static info(message: NotifyMessage, options?: NotifyOptions): Id;
|
|
87
|
-
/**
|
|
88
|
-
* Display a loading notification
|
|
89
|
-
* Returns an ID that can be used to update/dismiss it
|
|
90
|
-
*/
|
|
91
40
|
static loading(message: NotifyMessage, options?: Omit<NotifyOptions, 'duration'>): Id;
|
|
92
|
-
/**
|
|
93
|
-
* Update an existing notification
|
|
94
|
-
*/
|
|
95
41
|
static update(id: Id, options: {
|
|
96
42
|
type?: 'success' | 'error' | 'warning' | 'info';
|
|
97
43
|
message?: NotifyMessage;
|
|
98
44
|
autoClose?: number | false;
|
|
99
45
|
render?: ToastContent;
|
|
100
|
-
icon?: ToastIcon;
|
|
101
46
|
}): void;
|
|
102
|
-
/**
|
|
103
|
-
* Dismiss a specific notification by ID
|
|
104
|
-
*/
|
|
105
47
|
static dismiss(id?: Id): void;
|
|
106
|
-
/**
|
|
107
|
-
* Dismiss all notifications
|
|
108
|
-
*/
|
|
109
48
|
static dismissAll(): void;
|
|
110
|
-
/**
|
|
111
|
-
* Check if a notification is active
|
|
112
|
-
*/
|
|
113
49
|
static isActive(id: Id): boolean;
|
|
114
50
|
}
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
// tembo-notify.tsx
|
|
4
3
|
import { toast } from 'react-toastify';
|
|
5
4
|
import { buildToastConfigs } from './toast-config.js';
|
|
6
5
|
/**
|
|
7
|
-
* Simple
|
|
8
|
-
* This keeps notifications working even before theme initialization.
|
|
6
|
+
* Simple fallback config when TemboNotify.init hasn't been called yet.
|
|
9
7
|
*/
|
|
10
8
|
const FALLBACK_BASE_CONFIG = {
|
|
11
9
|
position: 'top-right',
|
|
12
|
-
autoClose: 4000,
|
|
10
|
+
autoClose: 4000, // ~4 seconds for everything except loading
|
|
13
11
|
hideProgressBar: true,
|
|
14
12
|
closeOnClick: true,
|
|
15
13
|
pauseOnHover: true,
|
|
@@ -20,54 +18,45 @@ const FALLBACK_BASE_CONFIG = {
|
|
|
20
18
|
* TemboNotify - Unified notification system
|
|
21
19
|
*/
|
|
22
20
|
export class TemboNotify {
|
|
23
|
-
/**
|
|
24
|
-
* Initialize TemboNotify with theme tokens
|
|
25
|
-
* (Called automatically by TemboToastContainer)
|
|
26
|
-
*/
|
|
27
21
|
static init(colors, constants) {
|
|
28
22
|
this.configs = buildToastConfigs(colors, constants);
|
|
29
23
|
}
|
|
30
|
-
/**
|
|
31
|
-
* Get current toast configs if present, otherwise undefined.
|
|
32
|
-
*/
|
|
33
24
|
static getConfigs() {
|
|
34
25
|
return this.configs;
|
|
35
26
|
}
|
|
36
27
|
/**
|
|
37
28
|
* Format message content for display
|
|
29
|
+
* - title only → bold
|
|
30
|
+
* - description only → weight 500
|
|
31
|
+
* - title + description → stacked
|
|
38
32
|
*/
|
|
39
33
|
static formatMessage(message) {
|
|
40
|
-
if (message && typeof message === 'object' && ('
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
if (
|
|
44
|
-
return (_jsx("div", { style: { fontWeight:
|
|
34
|
+
if (message && typeof message === 'object' && !('$$typeof' in message)) {
|
|
35
|
+
const hasTitle = !!message.title;
|
|
36
|
+
const hasDescription = !!message.description;
|
|
37
|
+
if (hasTitle && hasDescription) {
|
|
38
|
+
return (_jsxs("div", { style: { display: 'flex', flexDirection: 'column', gap: 2 }, children: [_jsx("div", { style: { fontWeight: 600, fontSize: 14 }, children: message.title }), _jsx("div", { style: { fontSize: 13, fontWeight: 400, opacity: 0.95 }, children: message.description })] }));
|
|
45
39
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
return (_jsx("div", { style: { fontWeight: 600, fontSize: 14, lineHeight: 1.5 }, children: title }));
|
|
40
|
+
if (hasTitle && !hasDescription) {
|
|
41
|
+
return (_jsx("div", { style: { fontWeight: 600, fontSize: 14 }, children: message.title }));
|
|
49
42
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
return (_jsxs("div", { style: { display: 'flex', flexDirection: 'column', gap: 4 }, children: [_jsx("div", { style: { fontWeight: 600, fontSize: 14, lineHeight: 1.5 }, children: title }), _jsx("div", { style: { fontSize: 13, lineHeight: 1.5, opacity: 0.85 }, children: description })] }));
|
|
43
|
+
if (!hasTitle && hasDescription) {
|
|
44
|
+
return (_jsx("div", { style: { fontSize: 13, fontWeight: 500 }, children: message.description }));
|
|
53
45
|
}
|
|
46
|
+
// Empty object case
|
|
47
|
+
return '';
|
|
54
48
|
}
|
|
55
49
|
return message;
|
|
56
50
|
}
|
|
57
|
-
/**
|
|
58
|
-
* Build toast options from config and user options.
|
|
59
|
-
*/
|
|
60
51
|
static buildOptions(baseConfig, options) {
|
|
61
|
-
const _a = options || {}, { duration, toastId, onClick, onClose
|
|
52
|
+
const _a = options || {}, { duration, toastId, onClick, onClose } = _a, restOptions = __rest(_a, ["duration", "toastId", "onClick", "onClose"]);
|
|
62
53
|
const effectiveBase = baseConfig !== null && baseConfig !== void 0 ? baseConfig : FALLBACK_BASE_CONFIG;
|
|
63
|
-
return Object.assign(Object.assign(Object.assign({}, effectiveBase), restOptions), {
|
|
54
|
+
return Object.assign(Object.assign(Object.assign({}, effectiveBase), restOptions), { // includes custom icon if provided
|
|
55
|
+
toastId, autoClose: duration !== undefined
|
|
64
56
|
? duration || false
|
|
65
57
|
: effectiveBase.autoClose, onClick,
|
|
66
|
-
onClose
|
|
58
|
+
onClose });
|
|
67
59
|
}
|
|
68
|
-
/**
|
|
69
|
-
* Helpers to get per-type base config with fallback
|
|
70
|
-
*/
|
|
71
60
|
static getSuccessConfig() {
|
|
72
61
|
var _a, _b;
|
|
73
62
|
const configs = this.getConfigs();
|
|
@@ -93,54 +82,35 @@ export class TemboNotify {
|
|
|
93
82
|
const configs = this.getConfigs();
|
|
94
83
|
return (_b = (_a = configs === null || configs === void 0 ? void 0 : configs.loadingConfig) !== null && _a !== void 0 ? _a : configs === null || configs === void 0 ? void 0 : configs.baseConfig) !== null && _b !== void 0 ? _b : undefined;
|
|
95
84
|
}
|
|
96
|
-
/**
|
|
97
|
-
* Display a success notification
|
|
98
|
-
*/
|
|
99
85
|
static success(message, options) {
|
|
100
86
|
const content = this.formatMessage(message);
|
|
101
87
|
const toastOptions = this.buildOptions(this.getSuccessConfig(), options);
|
|
102
88
|
return toast.success(content, toastOptions);
|
|
103
89
|
}
|
|
104
|
-
/**
|
|
105
|
-
* Display an error notification
|
|
106
|
-
*/
|
|
107
90
|
static error(message, options) {
|
|
108
91
|
const content = this.formatMessage(message);
|
|
109
92
|
const toastOptions = this.buildOptions(this.getErrorConfig(), options);
|
|
110
93
|
return toast.error(content, toastOptions);
|
|
111
94
|
}
|
|
112
|
-
/**
|
|
113
|
-
* Display a warning notification
|
|
114
|
-
*/
|
|
115
95
|
static warning(message, options) {
|
|
116
96
|
const content = this.formatMessage(message);
|
|
117
97
|
const toastOptions = this.buildOptions(this.getWarningConfig(), options);
|
|
118
98
|
return toast.warning(content, toastOptions);
|
|
119
99
|
}
|
|
120
|
-
/**
|
|
121
|
-
* Display an info notification
|
|
122
|
-
*/
|
|
123
100
|
static info(message, options) {
|
|
124
101
|
const content = this.formatMessage(message);
|
|
125
102
|
const toastOptions = this.buildOptions(this.getInfoConfig(), options);
|
|
126
103
|
return toast.info(content, toastOptions);
|
|
127
104
|
}
|
|
128
|
-
/**
|
|
129
|
-
* Display a loading notification
|
|
130
|
-
* Returns an ID that can be used to update/dismiss it
|
|
131
|
-
*/
|
|
132
105
|
static loading(message, options) {
|
|
133
106
|
var _a;
|
|
134
107
|
const content = this.formatMessage(message);
|
|
135
|
-
const _b = options || {}, { toastId, onClick, onClose
|
|
108
|
+
const _b = options || {}, { toastId, onClick, onClose } = _b, restOptions = __rest(_b, ["toastId", "onClick", "onClose"]);
|
|
136
109
|
const baseConfig = (_a = this.getLoadingConfig()) !== null && _a !== void 0 ? _a : FALLBACK_BASE_CONFIG;
|
|
137
110
|
return toast.loading(content, Object.assign(Object.assign(Object.assign({}, baseConfig), restOptions), { toastId,
|
|
138
111
|
onClick,
|
|
139
|
-
onClose
|
|
112
|
+
onClose }));
|
|
140
113
|
}
|
|
141
|
-
/**
|
|
142
|
-
* Update an existing notification
|
|
143
|
-
*/
|
|
144
114
|
static update(id, options) {
|
|
145
115
|
var _a, _b;
|
|
146
116
|
const configs = this.getConfigs();
|
|
@@ -155,23 +125,14 @@ export class TemboNotify {
|
|
|
155
125
|
const content = options.message
|
|
156
126
|
? this.formatMessage(options.message)
|
|
157
127
|
: options.render;
|
|
158
|
-
toast.update(id, Object.assign({ render: content, type: options.type, isLoading: false, autoClose: (_b = (_a = options.autoClose) !== null && _a !== void 0 ? _a : typeConfig === null || typeConfig === void 0 ? void 0 : typeConfig.autoClose) !== null && _b !== void 0 ? _b : FALLBACK_BASE_CONFIG.autoClose
|
|
128
|
+
toast.update(id, Object.assign({ render: content, type: options.type, isLoading: false, autoClose: (_b = (_a = options.autoClose) !== null && _a !== void 0 ? _a : typeConfig === null || typeConfig === void 0 ? void 0 : typeConfig.autoClose) !== null && _b !== void 0 ? _b : FALLBACK_BASE_CONFIG.autoClose }, (typeConfig !== null && typeConfig !== void 0 ? typeConfig : {})));
|
|
159
129
|
}
|
|
160
|
-
/**
|
|
161
|
-
* Dismiss a specific notification by ID
|
|
162
|
-
*/
|
|
163
130
|
static dismiss(id) {
|
|
164
131
|
toast.dismiss(id);
|
|
165
132
|
}
|
|
166
|
-
/**
|
|
167
|
-
* Dismiss all notifications
|
|
168
|
-
*/
|
|
169
133
|
static dismissAll() {
|
|
170
134
|
toast.dismiss();
|
|
171
135
|
}
|
|
172
|
-
/**
|
|
173
|
-
* Check if a notification is active
|
|
174
|
-
*/
|
|
175
136
|
static isActive(id) {
|
|
176
137
|
return toast.isActive(id);
|
|
177
138
|
}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { ToastOptions } from 'react-toastify';
|
|
2
2
|
import { TemboColorPalette, TemboUIConstants } from '../../theme/index.js';
|
|
3
|
-
/**
|
|
4
|
-
* Build toast configurations from theme tokens
|
|
5
|
-
* Professional, minimal design for fintech platform
|
|
6
|
-
*/
|
|
7
3
|
export declare const buildToastConfigs: (colors: TemboColorPalette, constants: TemboUIConstants) => {
|
|
8
4
|
loadingConfig: ToastOptions<unknown>;
|
|
9
5
|
infoConfig: ToastOptions<unknown>;
|
|
@@ -1,52 +1,53 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { CheckCircleOutlined, CloseCircleOutlined, ExclamationCircleOutlined, InfoCircleOutlined, LoadingOutlined, } from '@ant-design/icons';
|
|
3
|
-
/**
|
|
4
|
-
* Build toast configurations from theme tokens
|
|
5
|
-
* Professional, minimal design for fintech platform
|
|
6
|
-
*/
|
|
7
3
|
export const buildToastConfigs = (colors, constants) => {
|
|
8
4
|
/**
|
|
9
|
-
*
|
|
5
|
+
* Base = WHITE background for everything unless overridden
|
|
10
6
|
*/
|
|
11
7
|
const baseConfig = {
|
|
12
8
|
position: 'top-right',
|
|
13
9
|
autoClose: 4000,
|
|
14
|
-
hideProgressBar: true,
|
|
10
|
+
hideProgressBar: true,
|
|
15
11
|
closeOnClick: true,
|
|
16
12
|
pauseOnHover: true,
|
|
17
13
|
draggable: true,
|
|
18
|
-
closeButton: false,
|
|
14
|
+
closeButton: false,
|
|
19
15
|
style: {
|
|
20
16
|
fontFamily: constants.typography.fontFamily,
|
|
21
17
|
fontSize: 14,
|
|
22
|
-
borderRadius:
|
|
23
|
-
padding: '
|
|
24
|
-
boxShadow: '0
|
|
18
|
+
borderRadius: 10,
|
|
19
|
+
padding: '10px 14px',
|
|
20
|
+
boxShadow: '0 12px 24px rgba(15, 23, 42, 0.12)',
|
|
25
21
|
border: 'none',
|
|
26
|
-
minHeight:
|
|
27
|
-
backgroundColor: colors.
|
|
22
|
+
minHeight: 56,
|
|
23
|
+
backgroundColor: colors.surface.elevated,
|
|
24
|
+
color: colors.text.primary,
|
|
25
|
+
display: 'flex',
|
|
26
|
+
alignItems: 'center',
|
|
27
|
+
gap: 8,
|
|
28
28
|
},
|
|
29
29
|
};
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* SUCCESS → success colors
|
|
32
32
|
*/
|
|
33
|
-
const successConfig = Object.assign(Object.assign({}, baseConfig), { icon: _jsx(CheckCircleOutlined, { style: { fontSize:
|
|
33
|
+
const successConfig = Object.assign(Object.assign({}, baseConfig), { icon: (_jsx(CheckCircleOutlined, { style: { fontSize: 18, color: colors.success.main } })), style: Object.assign(Object.assign({}, baseConfig.style), { backgroundColor: colors.success.bg, color: colors.success.text }), className: 'toast-success' });
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* ERROR → error colors
|
|
36
36
|
*/
|
|
37
|
-
const errorConfig = Object.assign(Object.assign({}, baseConfig), { icon: _jsx(CloseCircleOutlined, { style: { fontSize:
|
|
37
|
+
const errorConfig = Object.assign(Object.assign({}, baseConfig), { icon: (_jsx(CloseCircleOutlined, { style: { fontSize: 18, color: colors.error.main } })), style: Object.assign(Object.assign({}, baseConfig.style), { backgroundColor: colors.error.bg, color: colors.error.text }), className: 'toast-error' });
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* WARNING → warning colors
|
|
40
40
|
*/
|
|
41
|
-
const warningConfig = Object.assign(Object.assign({}, baseConfig), { icon: _jsx(ExclamationCircleOutlined, { style: { fontSize:
|
|
41
|
+
const warningConfig = Object.assign(Object.assign({}, baseConfig), { icon: (_jsx(ExclamationCircleOutlined, { style: { fontSize: 18, color: colors.warning.main } })), style: Object.assign(Object.assign({}, baseConfig.style), { backgroundColor: colors.warning.bg, color: colors.warning.text }), className: 'toast-warning' });
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* INFO → *white background*, blue accents only
|
|
44
|
+
* (no colored background)
|
|
44
45
|
*/
|
|
45
|
-
const infoConfig = Object.assign(Object.assign({}, baseConfig), { icon: _jsx(InfoCircleOutlined, { style: { fontSize:
|
|
46
|
+
const infoConfig = Object.assign(Object.assign({}, baseConfig), { icon: (_jsx(InfoCircleOutlined, { style: { fontSize: 18, color: colors.info.main } })), style: Object.assign(Object.assign({}, baseConfig.style), { backgroundColor: colors.surface.elevated, color: colors.text.primary }), className: 'toast-info' });
|
|
46
47
|
/**
|
|
47
|
-
*
|
|
48
|
+
* LOADING (unchanged)
|
|
48
49
|
*/
|
|
49
|
-
const loadingConfig = Object.assign(Object.assign({}, baseConfig), { icon: _jsx(LoadingOutlined, { style: { fontSize:
|
|
50
|
+
const loadingConfig = Object.assign(Object.assign({}, baseConfig), { icon: (_jsx(LoadingOutlined, { style: { fontSize: 18, color: colors.primary.main } })), style: Object.assign(Object.assign({}, baseConfig.style), { backgroundColor: colors.surface.elevated, color: colors.text.primary }), autoClose: false, closeButton: false, hideProgressBar: true, className: 'toast-loading' });
|
|
50
51
|
return {
|
|
51
52
|
loadingConfig,
|
|
52
53
|
infoConfig,
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ToastContainerProps as RTToastContainerProps } from 'react-toastify';
|
|
3
|
-
export
|
|
3
|
+
export interface TemboToastContainerProps extends Omit<RTToastContainerProps, 'closeButton' | 'hideProgressBar'> {
|
|
4
|
+
/**
|
|
5
|
+
* Show the X close button on each toast
|
|
6
|
+
* @default false
|
|
7
|
+
*/
|
|
8
|
+
showCloseButton?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Show the progress bar at the bottom of each toast
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
|
+
showProgressBar?: boolean;
|
|
14
|
+
}
|
|
4
15
|
/**
|
|
5
|
-
* Toast container with
|
|
6
|
-
* Automatically initializes TemboNotify with current theme
|
|
16
|
+
* Toast container with Tembo styling
|
|
7
17
|
*/
|
|
8
18
|
declare const TemboToastContainer: React.FC<TemboToastContainerProps>;
|
|
9
19
|
export default TemboToastContainer;
|
|
@@ -1,111 +1,87 @@
|
|
|
1
|
+
import { __rest } from "tslib";
|
|
1
2
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
// toast-container.tsx
|
|
3
3
|
import { useEffect } from 'react';
|
|
4
|
-
import { ToastContainer } from 'react-toastify';
|
|
4
|
+
import { ToastContainer, } from 'react-toastify';
|
|
5
5
|
import { useTemboTheme } from '../../theme/index.js';
|
|
6
6
|
import { TemboNotify } from './tembo-notify.js';
|
|
7
7
|
/**
|
|
8
|
-
* Toast container with
|
|
9
|
-
* Automatically initializes TemboNotify with current theme
|
|
8
|
+
* Toast container with Tembo styling
|
|
10
9
|
*/
|
|
11
|
-
const TemboToastContainer = (
|
|
10
|
+
const TemboToastContainer = (_a) => {
|
|
11
|
+
var { showCloseButton = false, showProgressBar = false } = _a, rest = __rest(_a, ["showCloseButton", "showProgressBar"]);
|
|
12
12
|
const { colors, constants } = useTemboTheme();
|
|
13
|
-
// Initialize/update TemboNotify whenever theme changes
|
|
14
13
|
useEffect(() => {
|
|
15
14
|
TemboNotify.init(colors, constants);
|
|
16
15
|
}, [colors, constants]);
|
|
17
|
-
return (_jsxs(_Fragment, { children: [_jsx(ToastContainer, Object.assign({},
|
|
18
|
-
/* Professional, minimal toast styles */
|
|
16
|
+
return (_jsxs(_Fragment, { children: [_jsx(ToastContainer, Object.assign({ closeButton: showCloseButton, hideProgressBar: !showProgressBar }, rest)), _jsx("style", { children: `
|
|
19
17
|
.Toastify__toast {
|
|
20
18
|
font-family: ${constants.typography.fontFamily};
|
|
21
19
|
line-height: 1.5;
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center; /* center icon + content */
|
|
24
22
|
}
|
|
25
|
-
|
|
23
|
+
|
|
26
24
|
.Toastify__toast-body {
|
|
27
25
|
padding: 0;
|
|
26
|
+
margin: 0;
|
|
28
27
|
display: flex;
|
|
29
|
-
align-items:
|
|
30
|
-
gap: 12px;
|
|
28
|
+
align-items: flex-start;
|
|
31
29
|
}
|
|
32
|
-
|
|
30
|
+
|
|
33
31
|
.Toastify__toast-icon {
|
|
34
|
-
width:
|
|
35
|
-
height: 20px;
|
|
36
|
-
margin: 0;
|
|
32
|
+
width: 18px;
|
|
37
33
|
display: flex;
|
|
38
34
|
align-items: center;
|
|
39
35
|
justify-content: center;
|
|
40
|
-
|
|
36
|
+
margin-inline-end: 6px; /* tighter spacing */
|
|
41
37
|
}
|
|
42
|
-
|
|
38
|
+
|
|
39
|
+
.Toastify__progress-bar {
|
|
40
|
+
display: none;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
43
|
.Toastify__close-button {
|
|
44
|
-
opacity: 0.
|
|
44
|
+
opacity: 0.5;
|
|
45
45
|
transition: opacity 0.2s ease;
|
|
46
|
-
align-self: flex-start;
|
|
47
46
|
}
|
|
48
|
-
|
|
47
|
+
|
|
49
48
|
.Toastify__close-button:hover {
|
|
50
|
-
opacity:
|
|
49
|
+
opacity: 1;
|
|
51
50
|
}
|
|
52
|
-
|
|
53
|
-
/*
|
|
51
|
+
|
|
52
|
+
/* Force progress bar hidden in case someone enables it unintentionally */
|
|
54
53
|
.Toastify__progress-bar {
|
|
55
54
|
display: none;
|
|
56
55
|
}
|
|
57
|
-
|
|
56
|
+
|
|
58
57
|
/* Smooth entrance animation */
|
|
59
58
|
@keyframes toastSlideIn {
|
|
60
59
|
from {
|
|
61
|
-
transform:
|
|
60
|
+
transform: translateX(110%);
|
|
62
61
|
opacity: 0;
|
|
63
62
|
}
|
|
64
63
|
to {
|
|
65
|
-
transform:
|
|
64
|
+
transform: translateX(0);
|
|
66
65
|
opacity: 1;
|
|
67
66
|
}
|
|
68
67
|
}
|
|
69
|
-
|
|
68
|
+
|
|
70
69
|
.Toastify__toast--top-right {
|
|
71
|
-
animation: toastSlideIn 0.
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.Toastify__toast--top-left {
|
|
75
|
-
animation: toastSlideIn 0.25s cubic-bezier(0.21, 1.02, 0.73, 1) forwards;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.Toastify__toast--top-center {
|
|
79
|
-
animation: toastSlideIn 0.25s cubic-bezier(0.21, 1.02, 0.73, 1) forwards;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/* Smooth exit animation */
|
|
83
|
-
@keyframes toastSlideOut {
|
|
84
|
-
from {
|
|
85
|
-
transform: translate3d(0, 0, 0);
|
|
86
|
-
opacity: 1;
|
|
87
|
-
}
|
|
88
|
-
to {
|
|
89
|
-
transform: translate3d(110%, 0, 0);
|
|
90
|
-
opacity: 0;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.Toastify__toast--top-right.Toastify__toast--removing {
|
|
95
|
-
animation: toastSlideOut 0.25s cubic-bezier(0.06, 0.71, 0.55, 1) forwards;
|
|
70
|
+
animation: toastSlideIn 0.3s ease-out;
|
|
96
71
|
}
|
|
97
|
-
|
|
98
|
-
/*
|
|
99
|
-
@media
|
|
100
|
-
.Toastify__toast-container {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
72
|
+
|
|
73
|
+
/* Optional: full-width mobile behaviour */
|
|
74
|
+
@media (max-width: 480px) {
|
|
75
|
+
.Toastify__toast-container--top-right {
|
|
76
|
+
right: 0;
|
|
77
|
+
left: 0;
|
|
78
|
+
padding: 0;
|
|
79
|
+
width: 100vw;
|
|
105
80
|
}
|
|
106
|
-
|
|
81
|
+
|
|
107
82
|
.Toastify__toast {
|
|
108
|
-
margin-bottom:
|
|
83
|
+
margin-bottom: 0;
|
|
84
|
+
border-radius: 0;
|
|
109
85
|
}
|
|
110
86
|
}
|
|
111
87
|
` })] }));
|
package/dist/index.cjs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var n=require("./theme-provider-RhAw3jw_.js"),t=require("@ebay/nice-modal-react"),e=require("react"),
|
|
1
|
+
"use strict";var n=require("./theme-provider-RhAw3jw_.js"),t=require("@ebay/nice-modal-react"),e=require("tslib"),s=require("react"),o=require("react-toastify");require("lodash");var r=require("./tembo-notify-Bp14qngd.js");function i(n){return n&&n.__esModule?n:{default:n}}require("antd"),require("./InfoCircleOutlined-B7d2aRfV.js"),require("./ZoomOutOutlined-CW-jqBMI.js");var a=i(t);const l=t=>n.jsxRuntimeExports.jsx(a.default.Provider,{children:t.children}),c=t=>{var{showCloseButton:i=!1,showProgressBar:a=!1}=t,l=e.__rest(t,["showCloseButton","showProgressBar"]);const{colors:c,constants:d}=n.useTemboTheme();return s.useEffect(()=>{r.TemboNotify.init(c,d)},[c,d]),n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsx(o.ToastContainer,Object.assign({closeButton:i,hideProgressBar:!a},l)),n.jsxRuntimeExports.jsx("style",{children:`\n .Toastify__toast {\n font-family: ${d.typography.fontFamily};\n line-height: 1.5;\n display: flex;\n align-items: center; /* center icon + content */\n }\n\n .Toastify__toast-body {\n padding: 0;\n margin: 0;\n display: flex;\n align-items: flex-start;\n }\n\n .Toastify__toast-icon {\n width: 18px;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-inline-end: 6px; /* tighter spacing */\n }\n\n .Toastify__progress-bar {\n display: none;\n }\n\n .Toastify__close-button {\n opacity: 0.5;\n transition: opacity 0.2s ease;\n }\n\n .Toastify__close-button:hover {\n opacity: 1;\n }\n\n /* Force progress bar hidden in case someone enables it unintentionally */\n .Toastify__progress-bar {\n display: none;\n }\n\n /* Smooth entrance animation */\n @keyframes toastSlideIn {\n from {\n transform: translateX(110%);\n opacity: 0;\n }\n to {\n transform: translateX(0);\n opacity: 1;\n }\n }\n\n .Toastify__toast--top-right {\n animation: toastSlideIn 0.3s ease-out;\n }\n\n /* Optional: full-width mobile behaviour */\n @media (max-width: 480px) {\n .Toastify__toast-container--top-right {\n right: 0;\n left: 0;\n padding: 0;\n width: 100vw;\n }\n\n .Toastify__toast {\n margin-bottom: 0;\n border-radius: 0;\n }\n }\n `})]})};exports.TemboUIProviders=({children:t,colors:e,constants:s,themeOverrides:o})=>n.jsxRuntimeExports.jsx(n.TemboThemeProvider,{colors:e,constants:s,themeOverrides:o,children:n.jsxRuntimeExports.jsxs(l,{children:[t,n.jsxRuntimeExports.jsx(c,{})]})});
|
|
2
2
|
//# sourceMappingURL=index.cjs.js.map
|
package/dist/index.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":["../src/features/dialogs/modal-provider.tsx","../src/features/notifications/toast-container.tsx","../src/providers.tsx"],"sourcesContent":[null,null,null],"names":["TemboModalProvider","props","_jsx","NiceModal","Provider","children","TemboToastContainer","colors","constants","useTemboTheme","useEffect","TemboNotify","init","_jsxs","ToastContainer","typography","fontFamily","themeOverrides","TemboThemeProvider"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../src/features/dialogs/modal-provider.tsx","../src/features/notifications/toast-container.tsx","../src/providers.tsx"],"sourcesContent":[null,null,null],"names":["TemboModalProvider","props","_jsx","NiceModal","Provider","children","TemboToastContainer","_a","showCloseButton","showProgressBar","rest","__rest","colors","constants","useTemboTheme","useEffect","TemboNotify","init","_jsxs","_Fragment","ToastContainer","Object","assign","closeButton","hideProgressBar","typography","fontFamily","themeOverrides","TemboThemeProvider"],"mappings":"kYAGA,MAAMA,EAAmDC,GAC9CC,EAAAA,kBAAAA,IAACC,EAAAA,QAAUC,mBAAUH,EAAMI,WCsBhCC,EAA2DC,IAAA,IAAAC,gBAC7DA,GAAkB,EAAKC,gBACvBA,GAAkB,GAAKF,EACpBG,EAAIC,EAAAA,OAAAJ,EAHsD,CAAA,kBAAA,oBAK7D,MAAMK,OAAEA,EAAMC,UAAEA,GAAcC,kBAM9B,OAJAC,EAAAA,UAAU,KACNC,cAAYC,KAAKL,EAAQC,IAC1B,CAACD,EAAQC,IAGRK,EAAAA,kBAAAA,KAAAC,EAAAA,kBAAAA,SAAA,CAAAd,SAAA,CACIH,EAAAA,kBAAAA,IAACkB,EAAAA,eAAcC,OAAAC,OAAA,CACXC,YAAaf,EACbgB,iBAAkBf,GACdC,IAGRR,EAAAA,kBAAAA,IAAA,QAAA,CAAAG,SAAQ,0EAEeQ,EAAUY,WAAWC,ovECJS,EAC7DrB,WACAO,SACAC,YACAc,oBAGIzB,EAAAA,kBAAAA,IAAC0B,qBAAkB,CACfhB,OAAQA,EACRC,UAAWA,EACXc,eAAgBA,EAActB,SAE9Ba,EAAAA,kBAAAA,KAAClB,EAAkB,CAAAK,SAAA,CACdA,EACDH,EAAAA,kBAAAA,IAACI,EAAmB,CAAA"}
|
package/dist/index.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{j as n,u as t,T as o}from"./theme-provider-Ca4P0Hcp.js";import i from"@ebay/nice-modal-react";import{useEffect as
|
|
1
|
+
import{j as n,u as t,T as o}from"./theme-provider-Ca4P0Hcp.js";import i from"@ebay/nice-modal-react";import{__rest as s}from"tslib";import{useEffect as e}from"react";import{ToastContainer as r}from"react-toastify";import"lodash";import{T as a}from"./tembo-notify-h5Xn66oA.js";import"antd";import"./InfoCircleOutlined-DYs90hdV.js";import"./ZoomOutOutlined-Pw8hpWWK.js";const l=t=>n.jsx(i.Provider,{children:t.children}),m=o=>{var{showCloseButton:i=!1,showProgressBar:l=!1}=o,m=s(o,["showCloseButton","showProgressBar"]);const{colors:c,constants:d}=t();return e(()=>{a.init(c,d)},[c,d]),n.jsxs(n.Fragment,{children:[n.jsx(r,Object.assign({closeButton:i,hideProgressBar:!l},m)),n.jsx("style",{children:`\n .Toastify__toast {\n font-family: ${d.typography.fontFamily};\n line-height: 1.5;\n display: flex;\n align-items: center; /* center icon + content */\n }\n\n .Toastify__toast-body {\n padding: 0;\n margin: 0;\n display: flex;\n align-items: flex-start;\n }\n\n .Toastify__toast-icon {\n width: 18px;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-inline-end: 6px; /* tighter spacing */\n }\n\n .Toastify__progress-bar {\n display: none;\n }\n\n .Toastify__close-button {\n opacity: 0.5;\n transition: opacity 0.2s ease;\n }\n\n .Toastify__close-button:hover {\n opacity: 1;\n }\n\n /* Force progress bar hidden in case someone enables it unintentionally */\n .Toastify__progress-bar {\n display: none;\n }\n\n /* Smooth entrance animation */\n @keyframes toastSlideIn {\n from {\n transform: translateX(110%);\n opacity: 0;\n }\n to {\n transform: translateX(0);\n opacity: 1;\n }\n }\n\n .Toastify__toast--top-right {\n animation: toastSlideIn 0.3s ease-out;\n }\n\n /* Optional: full-width mobile behaviour */\n @media (max-width: 480px) {\n .Toastify__toast-container--top-right {\n right: 0;\n left: 0;\n padding: 0;\n width: 100vw;\n }\n\n .Toastify__toast {\n margin-bottom: 0;\n border-radius: 0;\n }\n }\n `})]})},c=({children:t,colors:i,constants:s,themeOverrides:e})=>n.jsx(o,{colors:i,constants:s,themeOverrides:e,children:n.jsxs(l,{children:[t,n.jsx(m,{})]})});export{c as TemboUIProviders};
|
|
2
2
|
//# sourceMappingURL=index.esm.js.map
|
package/dist/index.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":["../src/features/dialogs/modal-provider.tsx","../src/features/notifications/toast-container.tsx","../src/providers.tsx"],"sourcesContent":[null,null,null],"names":["TemboModalProvider","props","_jsx","NiceModal","Provider","children","TemboToastContainer","colors","constants","useTemboTheme","useEffect","TemboNotify","init","_jsxs","ToastContainer","typography","fontFamily","TemboUIProviders","themeOverrides","TemboThemeProvider"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../src/features/dialogs/modal-provider.tsx","../src/features/notifications/toast-container.tsx","../src/providers.tsx"],"sourcesContent":[null,null,null],"names":["TemboModalProvider","props","_jsx","NiceModal","Provider","children","TemboToastContainer","_a","showCloseButton","showProgressBar","rest","__rest","colors","constants","useTemboTheme","useEffect","TemboNotify","init","_jsxs","_Fragment","ToastContainer","Object","assign","closeButton","hideProgressBar","typography","fontFamily","TemboUIProviders","themeOverrides","TemboThemeProvider"],"mappings":"gXAGA,MAAMA,EAAmDC,GAC9CC,EAAAA,IAACC,EAAUC,mBAAUH,EAAMI,WCsBhCC,EAA2DC,IAAA,IAAAC,gBAC7DA,GAAkB,EAAKC,gBACvBA,GAAkB,GAAKF,EACpBG,EAAIC,EAAAJ,EAHsD,CAAA,kBAAA,oBAK7D,MAAMK,OAAEA,EAAMC,UAAEA,GAAcC,IAM9B,OAJAC,EAAU,KACNC,EAAYC,KAAKL,EAAQC,IAC1B,CAACD,EAAQC,IAGRK,EAAAA,KAAAC,EAAAA,SAAA,CAAAd,SAAA,CACIH,EAAAA,IAACkB,EAAcC,OAAAC,OAAA,CACXC,YAAaf,EACbgB,iBAAkBf,GACdC,IAGRR,EAAAA,IAAA,QAAA,CAAAG,SAAQ,0EAEeQ,EAAUY,WAAWC,2tECJ3CC,EAAoD,EAC7DtB,WACAO,SACAC,YACAe,oBAGI1B,EAAAA,IAAC2B,EAAkB,CACfjB,OAAQA,EACRC,UAAWA,EACXe,eAAgBA,EAAcvB,SAE9Ba,EAAAA,KAAClB,EAAkB,CAAAK,SAAA,CACdA,EACDH,EAAAA,IAACI,EAAmB,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("../tembo-notify-
|
|
1
|
+
"use strict";var e=require("../tembo-notify-Bp14qngd.js");require("tslib"),require("../theme-provider-RhAw3jw_.js"),require("react"),require("react-toastify"),require("lodash"),require("../InfoCircleOutlined-B7d2aRfV.js"),require("../ZoomOutOutlined-CW-jqBMI.js"),require("antd"),exports.TemboNotify=e.TemboNotify,exports.buildToastConfigs=e.buildToastConfigs;
|
|
2
2
|
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{T as TemboNotify,b as buildToastConfigs}from"../tembo-notify-
|
|
1
|
+
export{T as TemboNotify,b as buildToastConfigs}from"../tembo-notify-h5Xn66oA.js";import"tslib";import"../theme-provider-Ca4P0Hcp.js";import"react";import"react-toastify";import"lodash";import"../InfoCircleOutlined-DYs90hdV.js";import"../ZoomOutOutlined-Pw8hpWWK.js";import"antd";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var s=require("tslib"),t=require("./theme-provider-RhAw3jw_.js"),o=require("react-toastify"),i=require("./InfoCircleOutlined-B7d2aRfV.js"),e=require("./ZoomOutOutlined-CW-jqBMI.js");const n=(s,o)=>{const n={position:"top-right",autoClose:4e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,closeButton:!1,style:{fontFamily:o.typography.fontFamily,fontSize:14,borderRadius:10,padding:"10px 14px",boxShadow:"0 12px 24px rgba(15, 23, 42, 0.12)",border:"none",minHeight:56,backgroundColor:s.surface.elevated,color:s.text.primary,display:"flex",alignItems:"center",gap:8}},r=Object.assign(Object.assign({},n),{icon:t.jsxRuntimeExports.jsx(i.RefIcon$2,{style:{fontSize:18,color:s.success.main}}),style:Object.assign(Object.assign({},n.style),{backgroundColor:s.success.bg,color:s.success.text}),className:"toast-success"}),a=Object.assign(Object.assign({},n),{icon:t.jsxRuntimeExports.jsx(i.RefIcon$3,{style:{fontSize:18,color:s.error.main}}),style:Object.assign(Object.assign({},n.style),{backgroundColor:s.error.bg,color:s.error.text}),className:"toast-error"}),l=Object.assign(Object.assign({},n),{icon:t.jsxRuntimeExports.jsx(i.RefIcon,{style:{fontSize:18,color:s.warning.main}}),style:Object.assign(Object.assign({},n.style),{backgroundColor:s.warning.bg,color:s.warning.text}),className:"toast-warning"}),c=Object.assign(Object.assign({},n),{icon:t.jsxRuntimeExports.jsx(i.RefIcon$1,{style:{fontSize:18,color:s.info.main}}),style:Object.assign(Object.assign({},n.style),{backgroundColor:s.surface.elevated,color:s.text.primary}),className:"toast-info"});return{loadingConfig:Object.assign(Object.assign({},n),{icon:t.jsxRuntimeExports.jsx(e.RefIcon$2,{style:{fontSize:18,color:s.primary.main}}),style:Object.assign(Object.assign({},n.style),{backgroundColor:s.surface.elevated,color:s.text.primary}),autoClose:!1,closeButton:!1,hideProgressBar:!0,className:"toast-loading"}),infoConfig:c,warningConfig:l,errorConfig:a,successConfig:r,baseConfig:n,colors:s}},r={position:"top-right",autoClose:4e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,closeButton:!1};class a{static init(s,t){this.configs=n(s,t)}static getConfigs(){return this.configs}static formatMessage(s){if(s&&"object"==typeof s&&!("$$typeof"in s)){const o=!!s.title,i=!!s.description;return o&&i?t.jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[t.jsxRuntimeExports.jsx("div",{style:{fontWeight:600,fontSize:14},children:s.title}),t.jsxRuntimeExports.jsx("div",{style:{fontSize:13,fontWeight:400,opacity:.95},children:s.description})]}):o&&!i?t.jsxRuntimeExports.jsx("div",{style:{fontWeight:600,fontSize:14},children:s.title}):!o&&i?t.jsxRuntimeExports.jsx("div",{style:{fontSize:13,fontWeight:500},children:s.description}):""}return s}static buildOptions(t,o){const i=o||{},{duration:e,toastId:n,onClick:a,onClose:l}=i,c=s.__rest(i,["duration","toastId","onClick","onClose"]),g=null!=t?t:r;return Object.assign(Object.assign(Object.assign({},g),c),{toastId:n,autoClose:void 0!==e?e||!1:g.autoClose,onClick:a,onClose:l})}static getSuccessConfig(){var s,t;const o=this.getConfigs();return null!==(t=null!==(s=null==o?void 0:o.successConfig)&&void 0!==s?s:null==o?void 0:o.baseConfig)&&void 0!==t?t:void 0}static getErrorConfig(){var s,t;const o=this.getConfigs();return null!==(t=null!==(s=null==o?void 0:o.errorConfig)&&void 0!==s?s:null==o?void 0:o.baseConfig)&&void 0!==t?t:void 0}static getWarningConfig(){var s,t;const o=this.getConfigs();return null!==(t=null!==(s=null==o?void 0:o.warningConfig)&&void 0!==s?s:null==o?void 0:o.baseConfig)&&void 0!==t?t:void 0}static getInfoConfig(){var s,t;const o=this.getConfigs();return null!==(t=null!==(s=null==o?void 0:o.infoConfig)&&void 0!==s?s:null==o?void 0:o.baseConfig)&&void 0!==t?t:void 0}static getLoadingConfig(){var s,t;const o=this.getConfigs();return null!==(t=null!==(s=null==o?void 0:o.loadingConfig)&&void 0!==s?s:null==o?void 0:o.baseConfig)&&void 0!==t?t:void 0}static success(s,t){const i=this.formatMessage(s),e=this.buildOptions(this.getSuccessConfig(),t);return o.toast.success(i,e)}static error(s,t){const i=this.formatMessage(s),e=this.buildOptions(this.getErrorConfig(),t);return o.toast.error(i,e)}static warning(s,t){const i=this.formatMessage(s),e=this.buildOptions(this.getWarningConfig(),t);return o.toast.warning(i,e)}static info(s,t){const i=this.formatMessage(s),e=this.buildOptions(this.getInfoConfig(),t);return o.toast.info(i,e)}static loading(t,i){var e;const n=this.formatMessage(t),a=i||{},{toastId:l,onClick:c,onClose:g}=a,u=s.__rest(a,["toastId","onClick","onClose"]),d=null!==(e=this.getLoadingConfig())&&void 0!==e?e:r;return o.toast.loading(n,Object.assign(Object.assign(Object.assign({},d),u),{toastId:l,onClick:c,onClose:g}))}static update(s,t){var i,e;const n=this.getConfigs(),a=t.type&&n?{success:n.successConfig,error:n.errorConfig,warning:n.warningConfig,info:n.infoConfig}[t.type]:void 0,l=t.message?this.formatMessage(t.message):t.render;o.toast.update(s,Object.assign({render:l,type:t.type,isLoading:!1,autoClose:null!==(e=null!==(i=t.autoClose)&&void 0!==i?i:null==a?void 0:a.autoClose)&&void 0!==e?e:r.autoClose},null!=a?a:{}))}static dismiss(s){o.toast.dismiss(s)}static dismissAll(){o.toast.dismiss()}static isActive(s){return o.toast.isActive(s)}}a.configs=null,exports.TemboNotify=a,exports.buildToastConfigs=n;
|
|
2
|
+
//# sourceMappingURL=tembo-notify-Bp14qngd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tembo-notify-Bp14qngd.js","sources":["../src/features/notifications/toast-config.tsx","../src/features/notifications/tembo-notify.tsx"],"sourcesContent":[null,null],"names":["buildToastConfigs","colors","constants","baseConfig","position","autoClose","hideProgressBar","closeOnClick","pauseOnHover","draggable","closeButton","style","fontFamily","typography","fontSize","borderRadius","padding","boxShadow","border","minHeight","backgroundColor","surface","elevated","color","text","primary","display","alignItems","gap","successConfig","Object","assign","icon","_jsx","CheckCircleOutlined","success","main","bg","className","errorConfig","CloseCircleOutlined","error","warningConfig","ExclamationCircleOutlined","warning","infoConfig","InfoCircleOutlined","info","loadingConfig","LoadingOutlined","FALLBACK_BASE_CONFIG","TemboNotify","init","this","configs","getConfigs","formatMessage","message","hasTitle","title","hasDescription","description","_jsxs","flexDirection","children","fontWeight","opacity","buildOptions","options","_a","duration","toastId","onClick","onClose","restOptions","__rest","effectiveBase","undefined","getSuccessConfig","_b","getErrorConfig","getWarningConfig","getInfoConfig","getLoadingConfig","content","toastOptions","toast","loading","update","id","typeConfig","type","render","isLoading","dismiss","dismissAll","isActive"],"mappings":"yMAUaA,EAAoB,CAC7BC,EACAC,KAKA,MAAMC,EAA2B,CAC7BC,SAAU,YACVC,UAAW,IACXC,iBAAiB,EACjBC,cAAc,EACdC,cAAc,EACdC,WAAW,EACXC,aAAa,EACbC,MAAO,CACHC,W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AIR,aAAOe,CAAOC,EAAQrB,WAMlB,MAAMd,EAAUD,KAAKE,aAEfmC,EACFtB,EAAQuB,MAAQrC,EACV,CACInB,QAASmB,EAAQzB,cACjBY,MAAOa,EAAQf,YACfK,QAASU,EAAQZ,cACjBK,KAAMO,EAAQT,YAChBuB,EAAQuB,WACVd,EAEJO,EAAUhB,EAAQX,QAClBJ,KAAKG,cAAcY,EAAQX,SAC3BW,EAAQwB,OAEdN,QAAME,OAAOC,iBACTG,OAAQR,EACRO,KAAMvB,EAAQuB,KACdE,WAAW,EACXxF,UAEyB,QADrB0E,EAAiB,QAAjBV,EAAAD,EAAQ/D,iBAAS,IAAAgE,EAAAA,EACjBqB,eAAAA,EAAYrF,iBAAS,IAAA0E,EAAAA,EACrB7B,EAAqB7C,WACrBqF,QAAAA,EAAc,CAAA,IAI1B,cAAOI,CAAQL,GACXH,EAAAA,MAAMQ,QAAQL,GAGlB,iBAAOM,GACHT,EAAAA,MAAMQ,UAGV,eAAOE,CAASP,GACZ,OAAOH,EAAAA,MAAMU,SAASP,IAvLXtC,EAAAG,QAA+B"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__rest as s}from"tslib";import{j as o}from"./theme-provider-Ca4P0Hcp.js";import{toast as t}from"react-toastify";import{b as i,c as n,R as e,a}from"./InfoCircleOutlined-DYs90hdV.js";import{b as r}from"./ZoomOutOutlined-Pw8hpWWK.js";const l=(s,t)=>{const l={position:"top-right",autoClose:4e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,closeButton:!1,style:{fontFamily:t.typography.fontFamily,fontSize:14,borderRadius:10,padding:"10px 14px",boxShadow:"0 12px 24px rgba(15, 23, 42, 0.12)",border:"none",minHeight:56,backgroundColor:s.surface.elevated,color:s.text.primary,display:"flex",alignItems:"center",gap:8}},c=Object.assign(Object.assign({},l),{icon:o.jsx(i,{style:{fontSize:18,color:s.success.main}}),style:Object.assign(Object.assign({},l.style),{backgroundColor:s.success.bg,color:s.success.text}),className:"toast-success"}),g=Object.assign(Object.assign({},l),{icon:o.jsx(n,{style:{fontSize:18,color:s.error.main}}),style:Object.assign(Object.assign({},l.style),{backgroundColor:s.error.bg,color:s.error.text}),className:"toast-error"}),d=Object.assign(Object.assign({},l),{icon:o.jsx(e,{style:{fontSize:18,color:s.warning.main}}),style:Object.assign(Object.assign({},l.style),{backgroundColor:s.warning.bg,color:s.warning.text}),className:"toast-warning"}),u=Object.assign(Object.assign({},l),{icon:o.jsx(a,{style:{fontSize:18,color:s.info.main}}),style:Object.assign(Object.assign({},l.style),{backgroundColor:s.surface.elevated,color:s.text.primary}),className:"toast-info"});return{loadingConfig:Object.assign(Object.assign({},l),{icon:o.jsx(r,{style:{fontSize:18,color:s.primary.main}}),style:Object.assign(Object.assign({},l.style),{backgroundColor:s.surface.elevated,color:s.text.primary}),autoClose:!1,closeButton:!1,hideProgressBar:!0,className:"toast-loading"}),infoConfig:u,warningConfig:d,errorConfig:g,successConfig:c,baseConfig:l,colors:s}},c={position:"top-right",autoClose:4e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,closeButton:!1};class g{static init(s,o){this.configs=l(s,o)}static getConfigs(){return this.configs}static formatMessage(s){if(s&&"object"==typeof s&&!("$$typeof"in s)){const t=!!s.title,i=!!s.description;return t&&i?o.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[o.jsx("div",{style:{fontWeight:600,fontSize:14},children:s.title}),o.jsx("div",{style:{fontSize:13,fontWeight:400,opacity:.95},children:s.description})]}):t&&!i?o.jsx("div",{style:{fontWeight:600,fontSize:14},children:s.title}):!t&&i?o.jsx("div",{style:{fontSize:13,fontWeight:500},children:s.description}):""}return s}static buildOptions(o,t){const i=t||{},{duration:n,toastId:e,onClick:a,onClose:r}=i,l=s(i,["duration","toastId","onClick","onClose"]),g=null!=o?o:c;return Object.assign(Object.assign(Object.assign({},g),l),{toastId:e,autoClose:void 0!==n?n||!1:g.autoClose,onClick:a,onClose:r})}static getSuccessConfig(){var s,o;const t=this.getConfigs();return null!==(o=null!==(s=null==t?void 0:t.successConfig)&&void 0!==s?s:null==t?void 0:t.baseConfig)&&void 0!==o?o:void 0}static getErrorConfig(){var s,o;const t=this.getConfigs();return null!==(o=null!==(s=null==t?void 0:t.errorConfig)&&void 0!==s?s:null==t?void 0:t.baseConfig)&&void 0!==o?o:void 0}static getWarningConfig(){var s,o;const t=this.getConfigs();return null!==(o=null!==(s=null==t?void 0:t.warningConfig)&&void 0!==s?s:null==t?void 0:t.baseConfig)&&void 0!==o?o:void 0}static getInfoConfig(){var s,o;const t=this.getConfigs();return null!==(o=null!==(s=null==t?void 0:t.infoConfig)&&void 0!==s?s:null==t?void 0:t.baseConfig)&&void 0!==o?o:void 0}static getLoadingConfig(){var s,o;const t=this.getConfigs();return null!==(o=null!==(s=null==t?void 0:t.loadingConfig)&&void 0!==s?s:null==t?void 0:t.baseConfig)&&void 0!==o?o:void 0}static success(s,o){const i=this.formatMessage(s),n=this.buildOptions(this.getSuccessConfig(),o);return t.success(i,n)}static error(s,o){const i=this.formatMessage(s),n=this.buildOptions(this.getErrorConfig(),o);return t.error(i,n)}static warning(s,o){const i=this.formatMessage(s),n=this.buildOptions(this.getWarningConfig(),o);return t.warning(i,n)}static info(s,o){const i=this.formatMessage(s),n=this.buildOptions(this.getInfoConfig(),o);return t.info(i,n)}static loading(o,i){var n;const e=this.formatMessage(o),a=i||{},{toastId:r,onClick:l,onClose:g}=a,d=s(a,["toastId","onClick","onClose"]),u=null!==(n=this.getLoadingConfig())&&void 0!==n?n:c;return t.loading(e,Object.assign(Object.assign(Object.assign({},u),d),{toastId:r,onClick:l,onClose:g}))}static update(s,o){var i,n;const e=this.getConfigs(),a=o.type&&e?{success:e.successConfig,error:e.errorConfig,warning:e.warningConfig,info:e.infoConfig}[o.type]:void 0,r=o.message?this.formatMessage(o.message):o.render;t.update(s,Object.assign({render:r,type:o.type,isLoading:!1,autoClose:null!==(n=null!==(i=o.autoClose)&&void 0!==i?i:null==a?void 0:a.autoClose)&&void 0!==n?n:c.autoClose},null!=a?a:{}))}static dismiss(s){t.dismiss(s)}static dismissAll(){t.dismiss()}static isActive(s){return t.isActive(s)}}g.configs=null;export{g as T,l as b};
|
|
2
|
+
//# sourceMappingURL=tembo-notify-h5Xn66oA.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tembo-notify-h5Xn66oA.js","sources":["../src/features/notifications/toast-config.tsx","../src/features/notifications/tembo-notify.tsx"],"sourcesContent":[null,null],"names":["buildToastConfigs","colors","constants","baseConfig","position","autoClose","hideProgressBar","closeOnClick","pauseOnHover","draggable","closeButton","style","fontFamily","typography","fontSize","borderRadius","padding","boxShadow","border","minHeight","backgroundColor","surface","elevated","color","text","primary","display","alignItems","gap","successConfig","Object","assign","icon","_jsx","CheckCircleOutlined","success","main","bg","className","errorConfig","CloseCircleOutlined","error","warningConfig","ExclamationCircleOutlined","warning","infoConfig","InfoCircleOutlined","info","loadingConfig","LoadingOutlined","FALLBACK_BASE_CONFIG","TemboNotify","init","this","configs","getConfigs","formatMessage","message","hasTitle","title","hasDescription","description","_jsxs","flexDirection","children","fontWeight","opacity","buildOptions","options","_a","duration","toastId","onClick","onClose","restOptions","__rest","effectiveBase","undefined","getSuccessConfig","_b","getErrorConfig","getWarningConfig","getInfoConfig","getLoadingConfig","content","toastOptions","toast","loading","update","id","typeConfig","type","render","isLoading","dismiss","dismissAll","isActive"],"mappings":"oPAUaA,EAAoB,CAC7BC,EACAC,KAKA,MAAMC,EAA2B,CAC7BC,SAAU,YACVC,UAAW,IACXC,iBAAiB,EACjBC,cAAc,EACdC,cAAc,EACdC,WAAW,EACXC,aAAa,EACbC,MAAO,CACHC,WAAYV,EAAUW,WAAWD,WACjCE,SAAU,GACVC,aAAc,GACdC,QAAS,YACTC,UAAW,qCACXC,OAAQ,OACRC,UAAW,GACXC,gBAAiBnB,EAAOoB,QAAQC,SAChCC,MAAOtB,EAAOuB,KAAKC,QACnB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,OAEdN,EAAME,OAAOC,iBACTG,OAAQR,EACRO,KAAMvB,EAAQuB,KACdE,WAAW,EACXxF,UAEyB,QADrB0E,EAAiB,QAAjBV,EAAAD,EAAQ/D,iBAAS,IAAAgE,EAAAA,EACjBqB,eAAAA,EAAYrF,iBAAS,IAAA0E,EAAAA,EACrB7B,EAAqB7C,WACrBqF,QAAAA,EAAc,CAAA,IAI1B,cAAOI,CAAQL,GACXH,EAAMQ,QAAQL,GAGlB,iBAAOM,GACHT,EAAMQ,UAGV,eAAOE,CAASP,GACZ,OAAOH,EAAMU,SAASP,IAvLXtC,EAAAG,QAA+B"}
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__rest as o}from"tslib";import{j as i}from"./theme-provider-Ca4P0Hcp.js";import{toast as s}from"react-toastify";import{b as t,c as n,R as e,a as r}from"./InfoCircleOutlined-DYs90hdV.js";import{b as l}from"./ZoomOutOutlined-Pw8hpWWK.js";const a=(o,s)=>{const a={position:"top-right",autoClose:4e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,closeButton:!1,style:{fontFamily:s.typography.fontFamily,fontSize:14,borderRadius:8,padding:"16px",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.08)",border:"none",minHeight:"auto",backgroundColor:o.absolute.white}},c=Object.assign(Object.assign({},a),{icon:i.jsx(t,{style:{fontSize:20,color:o.success.main}}),style:Object.assign(Object.assign({},a.style),{backgroundColor:o.success.bg,color:o.success.text})}),g=Object.assign(Object.assign({},a),{icon:i.jsx(n,{style:{fontSize:20,color:o.error.main}}),style:Object.assign(Object.assign({},a.style),{backgroundColor:o.error.bg,color:o.error.text}),autoClose:6e3}),u=Object.assign(Object.assign({},a),{icon:i.jsx(e,{style:{fontSize:20,color:o.warning.main}}),style:Object.assign(Object.assign({},a.style),{backgroundColor:o.warning.bg,color:o.warning.text})}),d=Object.assign(Object.assign({},a),{icon:i.jsx(r,{style:{fontSize:20,color:o.info.main}}),style:Object.assign(Object.assign({},a.style),{backgroundColor:o.info.bg,color:o.info.text})});return{loadingConfig:Object.assign(Object.assign({},a),{icon:i.jsx(l,{style:{fontSize:20,color:o.primary.main}}),style:Object.assign(Object.assign({},a.style),{backgroundColor:o.absolute.white,color:o.text.primary}),autoClose:!1,closeButton:!1,hideProgressBar:!0}),infoConfig:d,warningConfig:u,errorConfig:g,successConfig:c,baseConfig:a,colors:o}},c={position:"top-right",autoClose:4e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,closeButton:!1};class g{static init(o,i){this.configs=a(o,i)}static getConfigs(){return this.configs}static formatMessage(o){if(o&&"object"==typeof o&&("title"in o||"description"in o)){const{title:s,description:t}=o;if(!s&&t)return i.jsx("div",{style:{fontWeight:500,fontSize:14,lineHeight:1.5},children:t});if(s&&!t)return i.jsx("div",{style:{fontWeight:600,fontSize:14,lineHeight:1.5},children:s});if(s&&t)return i.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[i.jsx("div",{style:{fontWeight:600,fontSize:14,lineHeight:1.5},children:s}),i.jsx("div",{style:{fontSize:13,lineHeight:1.5,opacity:.85},children:t})]})}return o}static buildOptions(i,s){const t=s||{},{duration:n,toastId:e,onClick:r,onClose:l,icon:a,showCloseButton:g=!1}=t,u=o(t,["duration","toastId","onClick","onClose","icon","showCloseButton"]),d=null!=i?i:c;return Object.assign(Object.assign(Object.assign({},d),u),{toastId:e,autoClose:void 0!==n?n||!1:d.autoClose,onClick:r,onClose:l,icon:void 0!==a?a:d.icon,closeButton:g})}static getSuccessConfig(){var o,i;const s=this.getConfigs();return null!==(i=null!==(o=null==s?void 0:s.successConfig)&&void 0!==o?o:null==s?void 0:s.baseConfig)&&void 0!==i?i:void 0}static getErrorConfig(){var o,i;const s=this.getConfigs();return null!==(i=null!==(o=null==s?void 0:s.errorConfig)&&void 0!==o?o:null==s?void 0:s.baseConfig)&&void 0!==i?i:void 0}static getWarningConfig(){var o,i;const s=this.getConfigs();return null!==(i=null!==(o=null==s?void 0:s.warningConfig)&&void 0!==o?o:null==s?void 0:s.baseConfig)&&void 0!==i?i:void 0}static getInfoConfig(){var o,i;const s=this.getConfigs();return null!==(i=null!==(o=null==s?void 0:s.infoConfig)&&void 0!==o?o:null==s?void 0:s.baseConfig)&&void 0!==i?i:void 0}static getLoadingConfig(){var o,i;const s=this.getConfigs();return null!==(i=null!==(o=null==s?void 0:s.loadingConfig)&&void 0!==o?o:null==s?void 0:s.baseConfig)&&void 0!==i?i:void 0}static success(o,i){const t=this.formatMessage(o),n=this.buildOptions(this.getSuccessConfig(),i);return s.success(t,n)}static error(o,i){const t=this.formatMessage(o),n=this.buildOptions(this.getErrorConfig(),i);return s.error(t,n)}static warning(o,i){const t=this.formatMessage(o),n=this.buildOptions(this.getWarningConfig(),i);return s.warning(t,n)}static info(o,i){const t=this.formatMessage(o),n=this.buildOptions(this.getInfoConfig(),i);return s.info(t,n)}static loading(i,t){var n;const e=this.formatMessage(i),r=t||{},{toastId:l,onClick:a,onClose:g,icon:u,showCloseButton:d=!1}=r,f=o(r,["toastId","onClick","onClose","icon","showCloseButton"]),C=null!==(n=this.getLoadingConfig())&&void 0!==n?n:c;return s.loading(e,Object.assign(Object.assign(Object.assign({},C),f),{toastId:l,onClick:a,onClose:g,icon:void 0!==u?u:C.icon,closeButton:d}))}static update(o,i){var t,n;const e=this.getConfigs(),r=i.type&&e?{success:e.successConfig,error:e.errorConfig,warning:e.warningConfig,info:e.infoConfig}[i.type]:void 0,l=i.message?this.formatMessage(i.message):i.render;s.update(o,Object.assign({render:l,type:i.type,isLoading:!1,autoClose:null!==(n=null!==(t=i.autoClose)&&void 0!==t?t:null==r?void 0:r.autoClose)&&void 0!==n?n:c.autoClose,icon:void 0!==i.icon?i.icon:null==r?void 0:r.icon},null!=r?r:{}))}static dismiss(o){s.dismiss(o)}static dismissAll(){s.dismiss()}static isActive(o){return s.isActive(o)}}g.configs=null;export{g as T,a as b};
|
|
2
|
-
//# sourceMappingURL=tembo-notify-BAawbRy0.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tembo-notify-BAawbRy0.js","sources":["../src/features/notifications/toast-config.tsx","../src/features/notifications/tembo-notify.tsx"],"sourcesContent":[null,null],"names":["buildToastConfigs","colors","constants","baseConfig","position","autoClose","hideProgressBar","closeOnClick","pauseOnHover","draggable","closeButton","style","fontFamily","typography","fontSize","borderRadius","padding","boxShadow","border","minHeight","backgroundColor","absolute","white","successConfig","icon","_jsx","CheckCircleOutlined","color","success","main","bg","text","errorConfig","Object","assign","CloseCircleOutlined","error","warningConfig","ExclamationCircleOutlined","warning","infoConfig","InfoCircleOutlined","info","loadingConfig","LoadingOutlined","primary","FALLBACK_BASE_CONFIG","TemboNotify","init","this","configs","getConfigs","formatMessage","message","title","description","fontWeight","lineHeight","children","_jsxs","display","flexDirection","gap","opacity","buildOptions","options","_a","duration","toastId","onClick","onClose","showCloseButton","restOptions","__rest","effectiveBase","undefined","getSuccessConfig","_b","getErrorConfig","getWarningConfig","getInfoConfig","getLoadingConfig","content","toastOptions","toast","loading","update","id","typeConfig","type","render","isLoading","dismiss","dismissAll","isActive"],"mappings":"yPAgBaA,EAAoB,CAACC,EAA2BC,KAIzD,MAAMC,EAA2B,CAC7BC,SAAU,YACVC,UAAW,IACXC,iBAAiB,EACjBC,cAAc,EACdC,cAAc,EACdC,WAAW,EACXC,aAAa,EACbC,MAAO,CACHC,WAAYV,EAAUW,WAAWD,WACjCE,SAAU,GACVC,aAAc,EACdC,QAAS,OACTC,UAAW,gCACXC,OAAQ,OACRC,UAAW,OACXC,gBAAiBnB,EAAOoB,SAASC,QAOnCC,iCACCpB,GAAU,CACbqB,KAAMC,EAAAA,IAACC,EAAmB,CAACf,MAAO,CAAEG,SAAU,GAAIa,MAAO1B,EAAO2B,QAAQC,QACxElB,qCACOR,EAAWQ,OAAK,CACnBS,gBAAiBnB,EAAO2B,QAAQE,GAChCH,MAAO1B,EAAO2B,QAAQG,SAOxBC,E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,MAC1DgE,QAAAA,EAAc,CAAA,IAO1B,cAAOI,CAAQL,GACXH,EAAMQ,QAAQL,GAMlB,iBAAOM,GACHT,EAAMQ,UAMV,eAAOE,CAASP,GACZ,OAAOH,EAAMU,SAASP,IA/OXxC,EAAAG,QAA+B"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";var o=require("tslib"),t=require("./theme-provider-RhAw3jw_.js"),s=require("react-toastify"),i=require("./InfoCircleOutlined-B7d2aRfV.js"),n=require("./ZoomOutOutlined-CW-jqBMI.js");const e=(o,s)=>{const e={position:"top-right",autoClose:4e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,closeButton:!1,style:{fontFamily:s.typography.fontFamily,fontSize:14,borderRadius:8,padding:"16px",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.08)",border:"none",minHeight:"auto",backgroundColor:o.absolute.white}},r=Object.assign(Object.assign({},e),{icon:t.jsxRuntimeExports.jsx(i.RefIcon$2,{style:{fontSize:20,color:o.success.main}}),style:Object.assign(Object.assign({},e.style),{backgroundColor:o.success.bg,color:o.success.text})}),l=Object.assign(Object.assign({},e),{icon:t.jsxRuntimeExports.jsx(i.RefIcon$3,{style:{fontSize:20,color:o.error.main}}),style:Object.assign(Object.assign({},e.style),{backgroundColor:o.error.bg,color:o.error.text}),autoClose:6e3}),a=Object.assign(Object.assign({},e),{icon:t.jsxRuntimeExports.jsx(i.RefIcon,{style:{fontSize:20,color:o.warning.main}}),style:Object.assign(Object.assign({},e.style),{backgroundColor:o.warning.bg,color:o.warning.text})}),c=Object.assign(Object.assign({},e),{icon:t.jsxRuntimeExports.jsx(i.RefIcon$1,{style:{fontSize:20,color:o.info.main}}),style:Object.assign(Object.assign({},e.style),{backgroundColor:o.info.bg,color:o.info.text})});return{loadingConfig:Object.assign(Object.assign({},e),{icon:t.jsxRuntimeExports.jsx(n.RefIcon$2,{style:{fontSize:20,color:o.primary.main}}),style:Object.assign(Object.assign({},e.style),{backgroundColor:o.absolute.white,color:o.text.primary}),autoClose:!1,closeButton:!1,hideProgressBar:!0}),infoConfig:c,warningConfig:a,errorConfig:l,successConfig:r,baseConfig:e,colors:o}},r={position:"top-right",autoClose:4e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,closeButton:!1};class l{static init(o,t){this.configs=e(o,t)}static getConfigs(){return this.configs}static formatMessage(o){if(o&&"object"==typeof o&&("title"in o||"description"in o)){const{title:s,description:i}=o;if(!s&&i)return t.jsxRuntimeExports.jsx("div",{style:{fontWeight:500,fontSize:14,lineHeight:1.5},children:i});if(s&&!i)return t.jsxRuntimeExports.jsx("div",{style:{fontWeight:600,fontSize:14,lineHeight:1.5},children:s});if(s&&i)return t.jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[t.jsxRuntimeExports.jsx("div",{style:{fontWeight:600,fontSize:14,lineHeight:1.5},children:s}),t.jsxRuntimeExports.jsx("div",{style:{fontSize:13,lineHeight:1.5,opacity:.85},children:i})]})}return o}static buildOptions(t,s){const i=s||{},{duration:n,toastId:e,onClick:l,onClose:a,icon:c,showCloseButton:g=!1}=i,u=o.__rest(i,["duration","toastId","onClick","onClose","icon","showCloseButton"]),d=null!=t?t:r;return Object.assign(Object.assign(Object.assign({},d),u),{toastId:e,autoClose:void 0!==n?n||!1:d.autoClose,onClick:l,onClose:a,icon:void 0!==c?c:d.icon,closeButton:g})}static getSuccessConfig(){var o,t;const s=this.getConfigs();return null!==(t=null!==(o=null==s?void 0:s.successConfig)&&void 0!==o?o:null==s?void 0:s.baseConfig)&&void 0!==t?t:void 0}static getErrorConfig(){var o,t;const s=this.getConfigs();return null!==(t=null!==(o=null==s?void 0:s.errorConfig)&&void 0!==o?o:null==s?void 0:s.baseConfig)&&void 0!==t?t:void 0}static getWarningConfig(){var o,t;const s=this.getConfigs();return null!==(t=null!==(o=null==s?void 0:s.warningConfig)&&void 0!==o?o:null==s?void 0:s.baseConfig)&&void 0!==t?t:void 0}static getInfoConfig(){var o,t;const s=this.getConfigs();return null!==(t=null!==(o=null==s?void 0:s.infoConfig)&&void 0!==o?o:null==s?void 0:s.baseConfig)&&void 0!==t?t:void 0}static getLoadingConfig(){var o,t;const s=this.getConfigs();return null!==(t=null!==(o=null==s?void 0:s.loadingConfig)&&void 0!==o?o:null==s?void 0:s.baseConfig)&&void 0!==t?t:void 0}static success(o,t){const i=this.formatMessage(o),n=this.buildOptions(this.getSuccessConfig(),t);return s.toast.success(i,n)}static error(o,t){const i=this.formatMessage(o),n=this.buildOptions(this.getErrorConfig(),t);return s.toast.error(i,n)}static warning(o,t){const i=this.formatMessage(o),n=this.buildOptions(this.getWarningConfig(),t);return s.toast.warning(i,n)}static info(o,t){const i=this.formatMessage(o),n=this.buildOptions(this.getInfoConfig(),t);return s.toast.info(i,n)}static loading(t,i){var n;const e=this.formatMessage(t),l=i||{},{toastId:a,onClick:c,onClose:g,icon:u,showCloseButton:d=!1}=l,f=o.__rest(l,["toastId","onClick","onClose","icon","showCloseButton"]),C=null!==(n=this.getLoadingConfig())&&void 0!==n?n:r;return s.toast.loading(e,Object.assign(Object.assign(Object.assign({},C),f),{toastId:a,onClick:c,onClose:g,icon:void 0!==u?u:C.icon,closeButton:d}))}static update(o,t){var i,n;const e=this.getConfigs(),l=t.type&&e?{success:e.successConfig,error:e.errorConfig,warning:e.warningConfig,info:e.infoConfig}[t.type]:void 0,a=t.message?this.formatMessage(t.message):t.render;s.toast.update(o,Object.assign({render:a,type:t.type,isLoading:!1,autoClose:null!==(n=null!==(i=t.autoClose)&&void 0!==i?i:null==l?void 0:l.autoClose)&&void 0!==n?n:r.autoClose,icon:void 0!==t.icon?t.icon:null==l?void 0:l.icon},null!=l?l:{}))}static dismiss(o){s.toast.dismiss(o)}static dismissAll(){s.toast.dismiss()}static isActive(o){return s.toast.isActive(o)}}l.configs=null,exports.TemboNotify=l,exports.buildToastConfigs=e;
|
|
2
|
-
//# sourceMappingURL=tembo-notify-BDtExWQg.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tembo-notify-BDtExWQg.js","sources":["../src/features/notifications/toast-config.tsx","../src/features/notifications/tembo-notify.tsx"],"sourcesContent":[null,null],"names":["buildToastConfigs","colors","constants","baseConfig","position","autoClose","hideProgressBar","closeOnClick","pauseOnHover","draggable","closeButton","style","fontFamily","typography","fontSize","borderRadius","padding","boxShadow","border","minHeight","backgroundColor","absolute","white","successConfig","icon","_jsx","CheckCircleOutlined","color","success","main","bg","text","errorConfig","Object","assign","CloseCircleOutlined","error","warningConfig","ExclamationCircleOutlined","warning","infoConfig","InfoCircleOutlined","info","loadingConfig","LoadingOutlined","primary","FALLBACK_BASE_CONFIG","TemboNotify","init","this","configs","getConfigs","formatMessage","message","title","description","fontWeight","lineHeight","children","_jsxs","display","flexDirection","gap","opacity","buildOptions","options","_a","duration","toastId","onClick","onClose","showCloseButton","restOptions","__rest","effectiveBase","undefined","getSuccessConfig","_b","getErrorConfig","getWarningConfig","getInfoConfig","getLoadingConfig","content","toastOptions","toast","loading","update","id","typeConfig","type","render","isLoading","dismiss","dismissAll","isActive"],"mappings":"yMAgBaA,EAAoB,CAACC,EAA2BC,KAIzD,MAAMC,EAA2B,CAC7BC,SAAU,YACVC,UAAW,IACXC,iBAAiB,EACjBC,cAAc,EACdC,cAAc,EACdC,WAAW,EACXC,aAAa,EACbC,MAAO,CACHC,WAAYV,EAAUW,WAAWD,WACjCE,SAAU,GACVC,aAAc,EACdC,QAAS,OACTC,UAAW,gCACXC,OAAQ,OACRC,UAAW,OACXC,gBAAiBnB,EAAOoB,SAASC,QAOnCC,iCACCpB,GAAU,CACbqB,KAAMC,EAAAA,kBAAAA,IAACC,EAAAA,UAAmB,CAACf,MAAO,CAAEG,SAAU,GAAIa,MAAO1B,EAAO2B,QAAQC,QACxElB,qCACOR,EAAWQ,OAAK,CACnBS,gBAAiBnB,EAAO2B,QAAQE,GAChCH,MAAO1B,EAAO2B,QAAQG,SAOxBC,EAAW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