Comparing version 1.3.1 to 1.3.2
@@ -47,3 +47,3 @@ 'use strict'; | ||
dark: { | ||
colors: "text-white bg-black/80", | ||
colors: "text-white bg-gray-800/90", | ||
progessbarBgColor: "#4A5568", | ||
@@ -64,6 +64,6 @@ success: "#32cd32", | ||
}; | ||
theme = theme in themes ? theme : 'light'; | ||
type = type in themes[theme] ? type : 'default'; | ||
message = message || "Welcome to Popupz!"; | ||
progressBar = progressBar === 'true' || progressBar === 'false' ? progressBar : 'true'; | ||
theme = themes[theme] ? theme : 'light'; | ||
type = type in themes[theme] ? type : 'default'; | ||
React.useEffect(() => { | ||
@@ -70,0 +70,0 @@ setColor(themes[theme][type]); |
{ | ||
"name": "popupz", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "A simple and customizable popup notification library for React and Next.js applications.", |
@@ -27,3 +27,3 @@ import React, { useState, useEffect } from 'react'; | ||
dark: { | ||
colors: "text-white bg-black/80", | ||
colors: "text-white bg-gray-800/90", | ||
progessbarBgColor: "#4A5568", | ||
@@ -46,6 +46,6 @@ success: "#32cd32", | ||
theme= theme in themes? theme : 'light'; | ||
type= (type in themes[theme]) ? type : 'default'; | ||
message= message || "Welcome to Popupz!" ; | ||
progressBar= progressBar==='true'|| progressBar==='false' ? progressBar : 'true'; | ||
theme= (themes[theme]) ? theme : 'light'; | ||
type= (type in themes[theme]) ? type : 'default'; | ||
@@ -52,0 +52,0 @@ useEffect(() => { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24147