react-notify-sdk 1.0.24 → 1.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/NotifyMessage.js +3 -1
- package/package.json +1 -1
package/dist/NotifyMessage.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/////////////---Icon imports---////////////////////
|
|
3
|
+
import { AlertTriangle, CircleX, Info } from "lucide-react";
|
|
2
4
|
const NotificationMessage = ({ message }) => {
|
|
3
5
|
function hexToRgba(hex, alpha) {
|
|
4
6
|
// Remove leading #
|
|
@@ -29,7 +31,7 @@ const NotificationMessage = ({ message }) => {
|
|
|
29
31
|
width: '100%',
|
|
30
32
|
display: 'flex',
|
|
31
33
|
flexDirection: 'row'
|
|
32
|
-
}, children: [message?.type === 'Information' && _jsx(
|
|
34
|
+
}, children: [message?.type === 'Information' && _jsx(Info, { size: 16, style: { fontSize: '1.125rem', color: 'rgb(59 130 24)' } }), message?.type === 'Warning' && _jsx(AlertTriangle, { size: 16, style: { fontSize: '1.125rem', color: 'rgb(245 158 1)' } }), message?.type === 'Error' && _jsx(CircleX, { size: 16, style: { fontSize: '1.125rem', color: 'rgb(239 68 68)' } }), _jsx("p", { className: `text-lg font-semibold text-[${message?.textColor}] ml-3`, style: {
|
|
33
35
|
fontSize: '1.125rem', // text-lg = 18px = 1.125rem
|
|
34
36
|
fontWeight: 600, // font-semibold = 600
|
|
35
37
|
color: `${message?.textColor}`,
|