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

@uiw/react-alert

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-alert - npm Package Compare versions

Comparing version 4.21.23 to 5.0.0-bate.2.0

cjs/style/index.d.ts

3

cjs/index.d.ts
import { ModalProps } from '@uiw/react-modal';
import { IProps } from '@uiw/utils';
import './style/index.less';
export * from './style';
export interface AlertProps extends IProps, ModalProps {

@@ -9,1 +9,2 @@ width?: number;

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

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

});
var _exportNames = {};
exports["default"] = void 0;

@@ -13,2 +14,14 @@ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));

var _reactModal = _interopRequireDefault(require("@uiw/react-modal"));
var _style = require("./style");
Object.keys(_style).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
if (key in exports && exports[key] === _style[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _style[key];
}
});
});
var _jsxRuntime = require("react/jsx-runtime");

@@ -25,3 +38,5 @@ var _excluded = ["prefixCls", "className", "width"];

var cls = [prefixCls, className].filter(Boolean).join(' ').trim();
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactModal["default"], (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, other), {}, {
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_style.AlertStyleWarp, (0, _objectSpread2["default"])((0, _objectSpread2["default"])({
as: _reactModal["default"]
}, other), {}, {
width: width,

@@ -33,3 +48,2 @@ className: cls,

exports["default"] = _default;
module.exports = exports.default;
//# sourceMappingURL=index.js.map
import { ModalProps } from '@uiw/react-modal';
import { IProps } from '@uiw/utils';
import './style/index.less';
export * from './style';
export interface AlertProps extends IProps, ModalProps {

@@ -9,1 +9,2 @@ width?: number;

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

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

import Modal from '@uiw/react-modal';
import "./style/index.css";
import { AlertStyleWarp } from './style';
import { jsx as _jsx } from "react/jsx-runtime";
export * from './style';
export default (function (props) {

@@ -20,3 +21,5 @@ if (props === void 0) {

var cls = [prefixCls, className].filter(Boolean).join(' ').trim();
return /*#__PURE__*/_jsx(Modal, _extends({}, other, {
return /*#__PURE__*/_jsx(AlertStyleWarp, _extends({
as: Modal
}, other, {
width: width,

@@ -23,0 +26,0 @@ className: cls,

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

@@ -44,8 +44,11 @@ "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-modal": "^4.21.23",
"@uiw/utils": "^4.21.23"
"@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/utils": "^5.0.0-bate.2.0"
}
}

@@ -18,3 +18,3 @@ Alert 确认对话框

```jsx mdx:preview
```jsx mdx:preview&background=#fff&codeSandbox=true&codePen=true
import React from 'react';

@@ -72,3 +72,3 @@ import { Alert, ButtonGroup, Button } from 'uiw';

```jsx mdx:preview
```jsx mdx:preview&background=#fff&codeSandbox=true&codePen=true
import React from 'react';

@@ -126,3 +126,3 @@ import { Alert, Button } from 'uiw';

```jsx mdx:preview
```jsx mdx:preview&background=#fff&codeSandbox=true&codePen=true
import React from 'react';

@@ -219,3 +219,3 @@ import { Alert, ButtonGroup, Button } from 'uiw';

```jsx mdx:preview
```jsx mdx:preview&background=#fff&codeSandbox=true&codePen=true
import React from 'react';

@@ -256,2 +256,3 @@ import { Alert, ButtonGroup, Button } from 'uiw';

cancelText="取消按钮"
icon="circle-check"
type="success"

@@ -319,3 +320,3 @@ onClosed={this.onClosed.bind(this, 'visible2')}

```jsx mdx:preview
```jsx mdx:preview&background=#fff&codeSandbox=true&codePen=true
import React from 'react';

@@ -368,3 +369,3 @@ import { Alert, ButtonGroup, Button } from 'uiw';

```jsx mdx:preview
```jsx mdx:preview&background=#fff&codeSandbox=true&codePen=true
import React from 'react';

@@ -421,3 +422,3 @@ import { Alert, ButtonGroup, Button } from 'uiw';

| type | 按钮类型跟 `<Button>` 组件的 `type` 参数一致,同时会影响按钮颜色。 | String | `light` |
| icon[`<Modal>`](#/components/modal) | 设置对话框右上角图标,,设置 `type` 将图标设置不同的颜色。当前属性为 [`<Icon>`](#/components/icon) 组件的 `type` 属性,所以可以参考该组件自定义图标。 | String/ReactNode | - |
| icon[`<Modal>`](#/components/modal) | 设置对话框左上角图标,,设置 `type` 将图标设置不同的颜色。当前属性为 [`<Icon>`](#/components/icon) 组件的 `type` 属性,所以可以参考该组件自定义图标。 | String/ReactNode | - |
| title[`<Modal>`](#/components/modal) | 设置标题 | Function(e) | - |

@@ -424,0 +425,0 @@ | useButton[`<Modal>`](#/components/modal) | 是否使用默认按钮,如果设置 `false` 需要自定义按钮关闭 | Boolean | `true` |

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