react-notify-sdk 1.0.12 → 1.0.13

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.
@@ -47,7 +47,7 @@ disableDefaultStyles = false, }) => {
47
47
  }, [location.pathname, projectId]);
48
48
  if (!message)
49
49
  return null;
50
- const defaultClasses = `absolute ${message?.position}-6 left-1/2 transform -translate-x-1/2 z-20 w-full md:w-[${message?.width}%] px-3 bg-[${message?.backgroundColor}] border border-[${message?.borderColor}] text-[${message?.textColor}] rounded-lg shadow`;
50
+ const defaultClasses = `absolute ${message?.position}-6 left-1/2 transform -translate-x-1/2 z-20 w-full md:w-[${message?.width}%] px-3 py-1 bg-[${message?.backgroundColor}] border border-[${message?.borderColor}] text-[${message?.textColor}] rounded-lg shadow`;
51
51
  return (_jsxs("div", { className: clsx(!disableDefaultStyles && defaultClasses), style: !disableDefaultStyles ?
52
52
  {
53
53
  position: 'absolute',
@@ -57,7 +57,10 @@ disableDefaultStyles = false, }) => {
57
57
  transform: 'translateX(-50%)',
58
58
  zIndex: 20,
59
59
  width: device === 'Mobile' ? '100%' : device === 'Tablet' ? '80%' : `${message?.width}%`,
60
- padding: '1rem', // p-4 = 1rem
60
+ paddingTop: '4px', // p-4 = 1rem
61
+ paddingBottom: '4px',
62
+ paddingLeft: '12px',
63
+ paddingRight: '12px',
61
64
  backgroundColor: message?.backgroundColor,
62
65
  border: `1px solid ${message?.textColor}`, // Completed border style
63
66
  borderRadius: "8px"
@@ -68,7 +71,7 @@ disableDefaultStyles = false, }) => {
68
71
  marginBottom: '0.5rem', // mb-2 = 0.5rem
69
72
  fontSize: '1.125rem', // text-lg = 18px = 1.125rem
70
73
  fontWeight: 600, // font-semibold = 600
71
- color: `${message?.backgroundColor}`,
74
+ color: `${message?.textColor}`,
72
75
  }, children: message.title }), _jsx("p", { className: `text-sm text-[${message?.textColor}]`, style: {
73
76
  fontSize: '0.875rem', // text-sm = 14px = 0.875rem
74
77
  color: `${message?.textColor}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-notify-sdk",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
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",