Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@uiw/react-notify

Package Overview
Dependencies
Maintainers
2
Versions
173
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uiw/react-notify - npm Package Compare versions

Comparing version 4.21.23 to 5.0.0-bate.2.0

cjs/style/index.d.ts

1

cjs/Container.d.ts

@@ -24,1 +24,2 @@ import React from 'react';

}
//# sourceMappingURL=Container.d.ts.map

10

cjs/Container.js

@@ -17,3 +17,3 @@ "use strict";

var _react = _interopRequireDefault(require("react"));
var _reactAlert = _interopRequireDefault(require("@uiw/react-alert"));
var _style = require("./style");
var _jsxRuntime = require("react/jsx-runtime");

@@ -89,4 +89,4 @@ var _excluded = ["description", "isOpen"];

var placement = this.state.placement;
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_react["default"].Fragment, {
children: placement && Object.keys(this.state.notifys[placement]).map(function (key) {
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react["default"].Fragment, {
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_style.NotifyGlobalStyle, {}), placement && Object.keys(this.state.notifys[placement]).map(function (key) {
var _this3$state$notifys$ = _this3.state.notifys[placement][key],

@@ -99,3 +99,3 @@ description = _this3$state$notifys$.description,

}
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactAlert["default"], (0, _objectSpread2["default"])((0, _objectSpread2["default"])({
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_style.NotifyStyleAlertBase, (0, _objectSpread2["default"])((0, _objectSpread2["default"])({
className: prefixCls,

@@ -110,3 +110,3 @@ useButton: false,

}), key);
})
})]
});

@@ -113,0 +113,0 @@ }

import React from 'react';
import { AlertProps } from '@uiw/react-alert';
import { Placement, ContainerNotifys } from './Container';
import './style/index.less';
export interface NotificationCreateProps extends Omit<AlertProps, 'type'> {

@@ -32,1 +31,2 @@ placement?: Placement;

export default _default;
//# sourceMappingURL=index.d.ts.map

@@ -13,2 +13,7 @@ "use strict";

var _Container = _interopRequireDefault(require("./Container"));
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");

@@ -26,12 +31,20 @@ var notifys = {};

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;

@@ -38,0 +51,0 @@ default:

@@ -24,1 +24,2 @@ import React from 'react';

}
//# sourceMappingURL=Container.d.ts.map

@@ -5,4 +5,5 @@ import _extends from "@babel/runtime/helpers/extends";

import React from 'react';
import Alert from '@uiw/react-alert';
import { NotifyStyleAlertBase, NotifyGlobalStyle } from './style';
import { jsx as _jsx } from "react/jsx-runtime";
import { jsxs as _jsxs } from "react/jsx-runtime";
var notifys = {};

@@ -66,4 +67,4 @@ var timer = {};

} = this.state;
return /*#__PURE__*/_jsx(React.Fragment, {
children: placement && Object.keys(this.state.notifys[placement]).map(key => {
return /*#__PURE__*/_jsxs(React.Fragment, {
children: [/*#__PURE__*/_jsx(NotifyGlobalStyle, {}), placement && Object.keys(this.state.notifys[placement]).map(key => {
var _this$state$notifys$p = this.state.notifys[placement][key],

@@ -78,3 +79,3 @@ {

}
return /*#__PURE__*/_jsx(Alert, _extends({
return /*#__PURE__*/_jsx(NotifyStyleAlertBase, _extends({
className: prefixCls,

@@ -89,3 +90,3 @@ useButton: false,

}), key);
})
})]
});

@@ -92,0 +93,0 @@ }

import React from 'react';
import { AlertProps } from '@uiw/react-alert';
import { Placement, ContainerNotifys } from './Container';
import './style/index.less';
export interface NotificationCreateProps extends Omit<AlertProps, 'type'> {

@@ -32,1 +31,2 @@ placement?: Placement;

export default _default;
//# sourceMappingURL=index.d.ts.map

@@ -6,3 +6,7 @@ import _extends from "@babel/runtime/helpers/extends";

import Container from './Container';
import "./style/index.css";
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";

@@ -22,12 +26,20 @@ 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;

@@ -34,0 +46,0 @@ default:

{
"name": "@uiw/react-notify",
"version": "4.21.23",
"version": "5.0.0-bate.2.0",
"description": "Notify component",

@@ -44,10 +44,13 @@ "author": "Kenny Wong <wowohoo@qq.com>",

"react": ">=16.9.0",
"react-dom": ">=16.9.0"
"react-dom": ">=16.9.0",
"styled-components": ">=5.3.5"
},
"dependencies": {
"@uiw/react-alert": "^4.21.23",
"@uiw/react-button": "^4.21.23",
"@uiw/react-icon": "^4.21.23",
"@uiw/utils": "^4.21.23"
"@uiw/react-alert": "^5.0.0-bate.2.0",
"@uiw/react-button": "^5.0.0-bate.2.0",
"@uiw/react-icon": "^5.0.0-bate.2.0",
"@uiw/react-modal": "^5.0.0-bate.2.0",
"@uiw/react-overlay": "^5.0.0-bate.2.0",
"@uiw/utils": "^5.0.0-bate.2.0"
}
}

@@ -18,7 +18,7 @@ Notify 消息通知

```jsx mdx:preview&bg=#fff
```jsx mdx:preview&background=#fff&codeSandbox=true&codePen=true
import React from 'react';
import { Button, Notify } from 'uiw';
export default function Demo() {
const Demo = () => {
return (

@@ -71,2 +71,3 @@ <div>

}
export default Demo
```

@@ -77,7 +78,7 @@

```jsx mdx:preview&bg=#fff
```jsx mdx:preview&background=#fff&codeSandbox=true&codePen=true
import React from 'react';
import { Button, Notify } from 'uiw';
export default function Demo() {
const Demo = () => {
return (

@@ -123,2 +124,3 @@ <div>

}
export default Demo
```

@@ -128,7 +130,7 @@

```jsx mdx:preview&bg=#fff
```jsx mdx:preview&background=#fff&codeSandbox=true&codePen=true
import React from 'react';
import { Button, Notify } from 'uiw';
export default function Demo() {
const Demo = () => {
return (

@@ -151,2 +153,3 @@ <div>

}
export default Demo
```

@@ -156,7 +159,7 @@

```jsx mdx:preview&bg=#fff
```jsx mdx:preview&background=#fff&codeSandbox=true&codePen=true
import React from 'react';
import { Button, Notify } from 'uiw';
export default function Demo() {
const Demo = () => {
return (

@@ -192,2 +195,3 @@ <div>

}
export default Demo
```

@@ -197,7 +201,7 @@

```jsx mdx:preview&bg=#fff
```jsx mdx:preview&background=#fff&codeSandbox=true&codePen=true
import React from 'react';
import { Button, Notify } from 'uiw';
export default function Demo() {
const Demo = () => {
return (

@@ -219,2 +223,3 @@ <div>

}
export default Demo
```

@@ -224,7 +229,7 @@

```jsx mdx:preview&bg=#fff
```jsx mdx:preview&background=#fff&codeSandbox=true&codePen=true
import React from 'react';
import { Button, Notify } from 'uiw';
export default function Demo() {
const Demo = () => {
return (

@@ -255,2 +260,3 @@ <div>

}
export default Demo
```

@@ -257,0 +263,0 @@

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc