react-notify-sdk 1.0.19 → 1.0.21

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,7 +1,4 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import InfoOutlineIcon from '@mui/icons-material/InfoOutline';
3
- import WarningAmberIcon from '@mui/icons-material/WarningAmber';
4
- import HighlightOffIcon from '@mui/icons-material/HighlightOff';
5
2
  const NotificationMessage = ({ message }) => {
6
3
  return (_jsxs("div", { style: {
7
4
  width: '100%',
@@ -16,7 +13,7 @@ const NotificationMessage = ({ message }) => {
16
13
  width: '100%',
17
14
  display: 'flex',
18
15
  flexDirection: 'row'
19
- }, children: [message?.type === 'Information' && _jsx(InfoOutlineIcon, { fontSize: 'medium', sx: { color: '#4983c9' } }), message?.type === 'Warning' && _jsx(WarningAmberIcon, { fontSize: 'medium', sx: { color: '#ffbf00' } }), message?.type === 'Error' && _jsx(HighlightOffIcon, { fontSize: 'medium', sx: { color: '#d0342c' } }), _jsx("p", { className: `text-lg font-semibold text-[${message?.textColor}] ml-3`, style: {
16
+ }, children: [message?.type === 'Information' && _jsx("p", { className: 'text-lg', style: { fontSize: '1.125rem' }, children: "\u2139" }), 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: {
20
17
  fontSize: '1.125rem', // text-lg = 18px = 1.125rem
21
18
  fontWeight: 600, // font-semibold = 600
22
19
  color: `${message?.textColor}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-notify-sdk",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
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",
@@ -15,11 +15,9 @@
15
15
  "author": "",
16
16
  "license": "ISC",
17
17
  "dependencies": {
18
- "@mui/icons-material": "^7.2.0",
19
18
  "@supabase/supabase-js": "^2.50.0",
20
19
  "clsx": "^2.1.1",
21
- "goober": "^2.1.16",
22
- "heroicons": "^1.0.6"
20
+ "goober": "^2.1.16"
23
21
  },
24
22
  "devDependencies": {
25
23
  "@types/react": "^19.1.8",