@uiw/react-notify
Advanced tools
Comparing version 5.0.0-bate-1 to 5.0.0-bate-2
@@ -20,2 +20,12 @@ "use strict"; | ||
var _CircleCheck = require("@uiw/icons/lib/CircleCheck"); | ||
var _Warning = require("@uiw/icons/lib/Warning"); | ||
var _Information = require("@uiw/icons/lib/Information"); | ||
var _CircleClose = require("@uiw/icons/lib/CircleClose"); | ||
var _reactIcon = require("@uiw/react-icon"); | ||
var _jsxRuntime = require("react/jsx-runtime"); | ||
@@ -38,15 +48,23 @@ | ||
case 'success': | ||
props.icon = 'circle-check'; | ||
props.icon = /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIcon.IconStyleBase, { | ||
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CircleCheck.CircleCheck, {}) | ||
}); | ||
break; | ||
case 'warning': | ||
props.icon = 'warning'; | ||
props.icon = /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIcon.IconStyleBase, { | ||
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Warning.Warning, {}) | ||
}); | ||
break; | ||
case 'info': | ||
props.icon = 'information'; | ||
props.icon = /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIcon.IconStyleBase, { | ||
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Information.Information, {}) | ||
}); | ||
break; | ||
case 'error': | ||
props.icon = 'circle-close'; | ||
props.icon = /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIcon.IconStyleBase, { | ||
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CircleClose.CircleClose, {}) | ||
}); | ||
break; | ||
@@ -53,0 +71,0 @@ |
@@ -6,2 +6,7 @@ import _extends from "@babel/runtime/helpers/extends"; | ||
import Container from './Container'; | ||
import { CircleCheck } from '@uiw/icons/lib/CircleCheck'; | ||
import { Warning } from '@uiw/icons/lib/Warning'; | ||
import { Information } from '@uiw/icons/lib/Information'; | ||
import { CircleClose } from '@uiw/icons/lib/CircleClose'; | ||
import { IconStyleBase } from '@uiw/react-icon'; | ||
import { jsx as _jsx } from "react/jsx-runtime"; | ||
@@ -25,15 +30,23 @@ var notifys = {}; | ||
case 'success': | ||
props.icon = 'circle-check'; | ||
props.icon = /*#__PURE__*/_jsx(IconStyleBase, { | ||
children: /*#__PURE__*/_jsx(CircleCheck, {}) | ||
}); | ||
break; | ||
case 'warning': | ||
props.icon = 'warning'; | ||
props.icon = /*#__PURE__*/_jsx(IconStyleBase, { | ||
children: /*#__PURE__*/_jsx(Warning, {}) | ||
}); | ||
break; | ||
case 'info': | ||
props.icon = 'information'; | ||
props.icon = /*#__PURE__*/_jsx(IconStyleBase, { | ||
children: /*#__PURE__*/_jsx(Information, {}) | ||
}); | ||
break; | ||
case 'error': | ||
props.icon = 'circle-close'; | ||
props.icon = /*#__PURE__*/_jsx(IconStyleBase, { | ||
children: /*#__PURE__*/_jsx(CircleClose, {}) | ||
}); | ||
break; | ||
@@ -40,0 +53,0 @@ |
{ | ||
"name": "@uiw/react-notify", | ||
"version": "5.0.0-bate-1", | ||
"version": "5.0.0-bate-2", | ||
"description": "Notify component", | ||
@@ -48,9 +48,9 @@ "author": "Kenny Wong <wowohoo@qq.com>", | ||
"dependencies": { | ||
"@uiw/react-alert": "^5.0.0-bate-1", | ||
"@uiw/react-button": "^5.0.0-bate-1", | ||
"@uiw/react-icon": "^5.0.0-bate-1", | ||
"@uiw/react-modal": "^5.0.0-bate-1", | ||
"@uiw/react-overlay": "^5.0.0-bate-1", | ||
"@uiw/utils": "^5.0.0-bate-1" | ||
"@uiw/react-alert": "^5.0.0-bate-2", | ||
"@uiw/react-button": "^5.0.0-bate-2", | ||
"@uiw/react-icon": "^5.0.0-bate-2", | ||
"@uiw/react-modal": "^5.0.0-bate-2", | ||
"@uiw/react-overlay": "^5.0.0-bate-2", | ||
"@uiw/utils": "^5.0.0-bate-2" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
79900
907