react-notify-sdk 1.0.9 → 1.0.11
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/NotifyProvider.js +4 -4
- package/package.json +1 -1
package/dist/NotifyProvider.js
CHANGED
|
@@ -45,10 +45,10 @@ disableDefaultStyles = false, }) => {
|
|
|
45
45
|
}, [location.pathname, projectId]);
|
|
46
46
|
if (!message)
|
|
47
47
|
return null;
|
|
48
|
-
const defaultClasses = `
|
|
48
|
+
const defaultClasses = `absolute ${message?.position}-4 left-1/2 transform -translate-x-1/2 z-50 w-[${message?.width}%] px-3 bg-[${message?.backgroundColor}] border border-[${message?.borderColor}] text-[${message?.textColor}] rounded-lg shadow`;
|
|
49
49
|
return (_jsxs("div", { className: clsx(!disableDefaultStyles && defaultClasses), style: disableDefaultStyles ?
|
|
50
50
|
{
|
|
51
|
-
position: '
|
|
51
|
+
position: 'absolute',
|
|
52
52
|
top: message?.position === 'top' ? '16px' : undefined,
|
|
53
53
|
bottom: message?.position === 'top' ? undefined : '16px',
|
|
54
54
|
left: '50%',
|
|
@@ -57,7 +57,7 @@ disableDefaultStyles = false, }) => {
|
|
|
57
57
|
width: `${message?.width}%`,
|
|
58
58
|
padding: '1rem', // p-4 = 1rem
|
|
59
59
|
backgroundColor: message?.backgroundColor,
|
|
60
|
-
border:
|
|
60
|
+
border: `1px solid ${message?.textColor}`, // Completed border style
|
|
61
61
|
}
|
|
62
62
|
:
|
|
63
63
|
{}, children: [_jsx("strong", { className: `block mb-2 text-lg font-semibold text-[${message?.textColor}]`, style: {
|
|
@@ -68,6 +68,6 @@ disableDefaultStyles = false, }) => {
|
|
|
68
68
|
color: `${message?.backgroundColor}`,
|
|
69
69
|
}, children: message.title }), _jsx("p", { className: `text-sm text-[${message?.textColor}]`, style: {
|
|
70
70
|
fontSize: '0.875rem', // text-sm = 14px = 0.875rem
|
|
71
|
-
color: `${message?.
|
|
71
|
+
color: `${message?.textColor}`,
|
|
72
72
|
}, children: message.content })] }));
|
|
73
73
|
};
|