react-notify-sdk 1.0.25 → 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.
@@ -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("p", { className: 'text-lg', style: { fontSize: '1.125rem' }, children: "\uD83D\uDCA1" }), message?.type === 'Warning' && _jsx("p", { className: 'text-lg', style: { fontSize: '1.125rem' }, children: "\u26A0\uFE0F" }), message?.type === 'Error' && _jsx("p", { className: 'text-lg', style: { fontSize: '1.125rem' }, children: "\u203C\uFE0F" }), _jsx("p", { className: `text-lg font-semibold text-[${message?.textColor}] ml-3`, style: {
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}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-notify-sdk",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
4
4
  "description": "SDK for displaying real-time route-specific messages in React apps",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",