react-hook-notification
Advanced tools
Comparing version 3.0.4 to 3.0.5
@@ -24,4 +24,4 @@ import React, { memo } from 'react'; | ||
}); | ||
return (React.createElement(Container, Object.assign({ ref: setElementRef, theme: themeSelected, key: id, role: type, onClick: () => clickIsAllowed && onRemove(id), drag: draggable ? 'x' : false, dragSnapToOrigin: true, onDragEnd: onDragEnd, onDragStart: onDragStart, style: { x, opacity } }, containerAnimations), | ||
withIcon && (React.createElement(IconContainer, { "aria-label": type }, | ||
return (React.createElement(Container, Object.assign({ ref: setElementRef, theme: themeSelected, key: id, role: "alert", onClick: () => clickIsAllowed && onRemove(id), drag: draggable ? 'x' : false, dragSnapToOrigin: true, onDragEnd: onDragEnd, onDragStart: onDragStart, style: { x, opacity } }, containerAnimations), | ||
withIcon && (React.createElement(IconContainer, { "aria-label": `Icon ${type}` }, | ||
React.createElement(Icon, { type: type, size: 20, color: colorsIcon[theme][type] }))), | ||
@@ -28,0 +28,0 @@ showButtonClose && (React.createElement(ButtonClose, { type: "button", color: buttonColor, onClick: () => onRemove(id), "aria-label": "Close notification" }, |
@@ -101,3 +101,2 @@ import { styled } from '@stitches/react'; | ||
fontSize: 0, | ||
outline: 'none', | ||
border: 'none', | ||
@@ -104,0 +103,0 @@ cursor: 'pointer', |
{ | ||
"version": "3.0.4", | ||
"version": "3.0.5", | ||
"license": "MIT", | ||
@@ -4,0 +4,0 @@ "main": "dist/main/index.js", |
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
50683
1141