@hi-ui/pop-confirm 4.0.0-beta.7 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/PopConfirm.js +17 -16
- package/lib/cjs/icons/index.js +2 -3
- package/lib/cjs/index.js +1 -2
- package/lib/cjs/styles/index.scss.js +3 -4
- package/lib/cjs/use-pop-confirm.js +6 -7
- package/lib/esm/PopConfirm.js +6 -7
- package/lib/esm/icons/index.js +1 -2
- package/lib/esm/index.js +1 -2
- package/lib/esm/styles/index.scss.js +4 -6
- package/lib/esm/use-pop-confirm.js +1 -2
- package/package.json +18 -18
- package/lib/cjs/PopConfirm.js.map +0 -1
- package/lib/cjs/icons/index.js.map +0 -1
- package/lib/cjs/index.js.map +0 -1
- package/lib/cjs/styles/index.scss.js.map +0 -1
- package/lib/cjs/use-pop-confirm.js.map +0 -1
- package/lib/esm/PopConfirm.js.map +0 -1
- package/lib/esm/icons/index.js.map +0 -1
- package/lib/esm/index.js.map +0 -1
- package/lib/esm/styles/index.scss.js.map +0 -1
- package/lib/esm/use-pop-confirm.js.map +0 -1
package/lib/cjs/PopConfirm.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
* @hi-ui/pop-confirm
|
3
3
|
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/pop-confirm#readme
|
4
4
|
*
|
5
|
-
* Copyright (c)
|
5
|
+
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
6
6
|
*
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
@@ -23,16 +23,16 @@ var classname = require('@hi-ui/classname');
|
|
23
23
|
|
24
24
|
var env = require('@hi-ui/env');
|
25
25
|
|
26
|
+
var core = require('@hi-ui/core');
|
27
|
+
|
26
28
|
var usePopConfirm = require('./use-pop-confirm.js');
|
27
29
|
|
28
30
|
var Button = require('@hi-ui/button');
|
29
31
|
|
30
|
-
var
|
32
|
+
var Popper = require('@hi-ui/popper');
|
31
33
|
|
32
34
|
var index = require('./icons/index.js');
|
33
35
|
|
34
|
-
var localeContext = require('@hi-ui/locale-context');
|
35
|
-
|
36
36
|
var typeAssertion = require('@hi-ui/type-assertion');
|
37
37
|
|
38
38
|
function _interopDefaultLegacy(e) {
|
@@ -45,6 +45,8 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
45
45
|
|
46
46
|
var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
|
47
47
|
|
48
|
+
var Popper__default = /*#__PURE__*/_interopDefaultLegacy(Popper);
|
49
|
+
|
48
50
|
var POP_CONFIRM_PREFIX = classname.getPrefixCls('pop-confirm');
|
49
51
|
/**
|
50
52
|
* TODO: What is PopConfirm
|
@@ -63,7 +65,7 @@ var PopConfirm = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
63
65
|
footer = _a.footer,
|
64
66
|
rest = tslib.__rest(_a, ["prefixCls", "role", "className", "children", "title", "icon", "cancelText", "confirmText", "footer"]);
|
65
67
|
|
66
|
-
var i18n =
|
68
|
+
var i18n = core.useLocaleContext();
|
67
69
|
var cancelText = typeAssertion.isUndef(cancelTextProp) ? i18n.get('popConfirm.cancelText') : cancelTextProp;
|
68
70
|
var confirmText = typeAssertion.isUndef(confirmTextProp) ? i18n.get('popConfirm.confirmText') : confirmTextProp;
|
69
71
|
|
@@ -78,29 +80,29 @@ var PopConfirm = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
78
80
|
var hasConfirm = confirmText !== null;
|
79
81
|
var hasCancel = cancelText !== null;
|
80
82
|
var hasFooter = hasConfirm || hasCancel || footer !== null;
|
81
|
-
return /*#__PURE__*/React__default[
|
82
|
-
getTriggerProps(children.props, children.ref)) : null, /*#__PURE__*/React__default[
|
83
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].isValidElement(children) ? /*#__PURE__*/React__default["default"].cloneElement(children, // @ts-ignore
|
84
|
+
getTriggerProps(children.props, children.ref)) : null, /*#__PURE__*/React__default["default"].createElement(Popper__default["default"], Object.assign({}, getPopperProps()), /*#__PURE__*/React__default["default"].createElement("div", Object.assign({
|
83
85
|
ref: ref,
|
84
86
|
className: cls
|
85
|
-
}, rootProps), /*#__PURE__*/React__default[
|
87
|
+
}, rootProps), /*#__PURE__*/React__default["default"].createElement("section", {
|
86
88
|
className: prefixCls + "__content"
|
87
|
-
}, icon ? /*#__PURE__*/React__default[
|
89
|
+
}, icon ? /*#__PURE__*/React__default["default"].createElement("span", {
|
88
90
|
className: prefixCls + "__content-icon"
|
89
|
-
}, icon) : null, /*#__PURE__*/React__default[
|
91
|
+
}, icon) : null, /*#__PURE__*/React__default["default"].createElement("div", {
|
90
92
|
className: prefixCls + "__content-title"
|
91
|
-
}, title)), hasFooter ? /*#__PURE__*/React__default[
|
93
|
+
}, title)), hasFooter ? /*#__PURE__*/React__default["default"].createElement("footer", {
|
92
94
|
className: prefixCls + "__footer"
|
93
|
-
}, footer === undefined ? [hasCancel ? /*#__PURE__*/React__default[
|
95
|
+
}, footer === undefined ? [hasCancel ? /*#__PURE__*/React__default["default"].createElement(Button__default["default"], {
|
94
96
|
key: "1",
|
95
97
|
className: prefixCls + "__btn-cancel",
|
96
98
|
type: "default",
|
97
|
-
size: "
|
99
|
+
size: "md",
|
98
100
|
onClick: onCancel
|
99
|
-
}, cancelText) : null, hasConfirm ? /*#__PURE__*/React__default[
|
101
|
+
}, cancelText) : null, hasConfirm ? /*#__PURE__*/React__default["default"].createElement(Button__default["default"], {
|
100
102
|
key: "2",
|
101
103
|
className: prefixCls + "__btn-confirm",
|
102
104
|
type: "primary",
|
103
|
-
size: "
|
105
|
+
size: "md",
|
104
106
|
onClick: onConfirm
|
105
107
|
}, confirmText) : null] : footer) : null)));
|
106
108
|
});
|
@@ -110,4 +112,3 @@ if (env.__DEV__) {
|
|
110
112
|
}
|
111
113
|
|
112
114
|
exports.PopConfirm = PopConfirm;
|
113
|
-
//# sourceMappingURL=PopConfirm.js.map
|
package/lib/cjs/icons/index.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
* @hi-ui/pop-confirm
|
3
3
|
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/pop-confirm#readme
|
4
4
|
*
|
5
|
-
* Copyright (c)
|
5
|
+
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
6
6
|
*
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
@@ -27,6 +27,5 @@ function _interopDefaultLegacy(e) {
|
|
27
27
|
|
28
28
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
29
29
|
|
30
|
-
var defaultTipIcon = /*#__PURE__*/React__default[
|
30
|
+
var defaultTipIcon = /*#__PURE__*/React__default["default"].createElement(icons.ExclamationCircleFilled, null);
|
31
31
|
exports.defaultTipIcon = defaultTipIcon;
|
32
|
-
//# sourceMappingURL=index.js.map
|
package/lib/cjs/index.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
* @hi-ui/pop-confirm
|
3
3
|
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/pop-confirm#readme
|
4
4
|
*
|
5
|
-
* Copyright (c)
|
5
|
+
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
6
6
|
*
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
@@ -19,4 +19,3 @@ var PopConfirm = require('./PopConfirm.js');
|
|
19
19
|
|
20
20
|
exports.PopConfirm = PopConfirm.PopConfirm;
|
21
21
|
exports["default"] = PopConfirm.PopConfirm;
|
22
|
-
//# sourceMappingURL=index.js.map
|
@@ -2,7 +2,7 @@
|
|
2
2
|
* @hi-ui/pop-confirm
|
3
3
|
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/pop-confirm#readme
|
4
4
|
*
|
5
|
-
* Copyright (c)
|
5
|
+
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
6
6
|
*
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
@@ -12,11 +12,10 @@
|
|
12
12
|
Object.defineProperty(exports, '__esModule', {
|
13
13
|
value: true
|
14
14
|
});
|
15
|
-
var css_248z = "
|
15
|
+
var css_248z = ".hi-v4-pop-confirm {overflow-wrap: break-word;font-size: var(--hi-v4-text-size-md, 0.875rem);line-height: var(--hi-v4-text-lineheight-md, 1.375rem);position: relative;background: var(--hi-v4-color-static-white, #fff);white-space: nowrap;border-radius: var(--hi-v4-border-radius-lg, 6px);padding: var(--hi-v4-spacing-10, 20px);display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-orient: vertical;-webkit-box-direction: normal;-ms-flex-direction: column;flex-direction: column; }.hi-v4-pop-confirm__content {display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center; }.hi-v4-pop-confirm__content-icon {margin-right: var(--hi-v4-spacing-4, 8px);color: var(--hi-v4-color-warning-500, var(--hi-v4-color-yellow-500, #fab007));font-size: var(--hi-v4-text-size-xxl, 1.5rem); }.hi-v4-pop-confirm__content-title {color: var(--hi-v4-color-gray-700, #1f2733); }.hi-v4-pop-confirm__footer {margin-top: var(--hi-v4-spacing-10, 20px);text-align: right; }";
|
16
16
|
|
17
|
-
var __styleInject__ = require('
|
17
|
+
var __styleInject__ = require('inject-head-style')["default"];
|
18
18
|
|
19
19
|
__styleInject__(css_248z);
|
20
20
|
|
21
21
|
exports["default"] = css_248z;
|
22
|
-
//# sourceMappingURL=index.scss.js.map
|
@@ -2,7 +2,7 @@
|
|
2
2
|
* @hi-ui/pop-confirm
|
3
3
|
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/pop-confirm#readme
|
4
4
|
*
|
5
|
-
* Copyright (c)
|
5
|
+
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
6
6
|
*
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
@@ -23,7 +23,7 @@ var domUtils = require('@hi-ui/dom-utils');
|
|
23
23
|
|
24
24
|
var reactUtils = require('@hi-ui/react-utils');
|
25
25
|
|
26
|
-
var
|
26
|
+
var Popper = require('@hi-ui/popper');
|
27
27
|
|
28
28
|
var useToggle = require('@hi-ui/use-toggle');
|
29
29
|
|
@@ -40,8 +40,8 @@ var usePopConfirm = function usePopConfirm(_a) {
|
|
40
40
|
restProps = tslib.__rest(_a, ["visible", "disabled", "closeOnCancel", "closeOnConfirm", "onCancel", "onConfirm", "onOpen", "onClose"]); // TODO: 移除 popper,使用 hook 重写
|
41
41
|
|
42
42
|
|
43
|
-
var _omitPopperOverlayPro =
|
44
|
-
popper
|
43
|
+
var _omitPopperOverlayPro = Popper.omitPopperOverlayProps(restProps),
|
44
|
+
popper = _omitPopperOverlayPro[0],
|
45
45
|
rest = _omitPopperOverlayPro[1];
|
46
46
|
|
47
47
|
var _useUncontrolledToggl = useToggle.useUncontrolledToggle({
|
@@ -81,7 +81,7 @@ var usePopConfirm = function usePopConfirm(_a) {
|
|
81
81
|
};
|
82
82
|
}, [visibleAction, setTargetEl]);
|
83
83
|
var getPopperProps = React.useCallback(function () {
|
84
|
-
var popperProps = reactUtils.withDefaultProps(popper
|
84
|
+
var popperProps = reactUtils.withDefaultProps(popper, {
|
85
85
|
arrow: true,
|
86
86
|
placement: 'top',
|
87
87
|
// @DesignToken 10
|
@@ -92,7 +92,7 @@ var usePopConfirm = function usePopConfirm(_a) {
|
|
92
92
|
attachEl: targetEl,
|
93
93
|
onClose: visibleAction.off
|
94
94
|
});
|
95
|
-
}, [visible, targetEl, popper
|
95
|
+
}, [visible, targetEl, popper, visibleAction]);
|
96
96
|
var rootProps = Object.assign({
|
97
97
|
role: 'alert-dialog'
|
98
98
|
}, rest);
|
@@ -106,4 +106,3 @@ var usePopConfirm = function usePopConfirm(_a) {
|
|
106
106
|
};
|
107
107
|
|
108
108
|
exports.usePopConfirm = usePopConfirm;
|
109
|
-
//# sourceMappingURL=use-pop-confirm.js.map
|
package/lib/esm/PopConfirm.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
* @hi-ui/pop-confirm
|
3
3
|
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/pop-confirm#readme
|
4
4
|
*
|
5
|
-
* Copyright (c)
|
5
|
+
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
6
6
|
*
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
@@ -11,11 +11,11 @@ import { __rest } from 'tslib';
|
|
11
11
|
import React, { forwardRef } from 'react';
|
12
12
|
import { getPrefixCls, cx } from '@hi-ui/classname';
|
13
13
|
import { __DEV__ } from '@hi-ui/env';
|
14
|
+
import { useLocaleContext } from '@hi-ui/core';
|
14
15
|
import { usePopConfirm } from './use-pop-confirm.js';
|
15
16
|
import Button from '@hi-ui/button';
|
16
|
-
import
|
17
|
+
import Popper from '@hi-ui/popper';
|
17
18
|
import { defaultTipIcon } from './icons/index.js';
|
18
|
-
import { useLocaleContext } from '@hi-ui/locale-context';
|
19
19
|
import { isUndef } from '@hi-ui/type-assertion';
|
20
20
|
var POP_CONFIRM_PREFIX = getPrefixCls('pop-confirm');
|
21
21
|
/**
|
@@ -51,7 +51,7 @@ var PopConfirm = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
51
51
|
var hasCancel = cancelText !== null;
|
52
52
|
var hasFooter = hasConfirm || hasCancel || footer !== null;
|
53
53
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.isValidElement(children) ? /*#__PURE__*/React.cloneElement(children, // @ts-ignore
|
54
|
-
getTriggerProps(children.props, children.ref)) : null, /*#__PURE__*/React.createElement(
|
54
|
+
getTriggerProps(children.props, children.ref)) : null, /*#__PURE__*/React.createElement(Popper, Object.assign({}, getPopperProps()), /*#__PURE__*/React.createElement("div", Object.assign({
|
55
55
|
ref: ref,
|
56
56
|
className: cls
|
57
57
|
}, rootProps), /*#__PURE__*/React.createElement("section", {
|
@@ -66,13 +66,13 @@ var PopConfirm = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
66
66
|
key: "1",
|
67
67
|
className: prefixCls + "__btn-cancel",
|
68
68
|
type: "default",
|
69
|
-
size: "
|
69
|
+
size: "md",
|
70
70
|
onClick: onCancel
|
71
71
|
}, cancelText) : null, hasConfirm ? /*#__PURE__*/React.createElement(Button, {
|
72
72
|
key: "2",
|
73
73
|
className: prefixCls + "__btn-confirm",
|
74
74
|
type: "primary",
|
75
|
-
size: "
|
75
|
+
size: "md",
|
76
76
|
onClick: onConfirm
|
77
77
|
}, confirmText) : null] : footer) : null)));
|
78
78
|
});
|
@@ -82,4 +82,3 @@ if (__DEV__) {
|
|
82
82
|
}
|
83
83
|
|
84
84
|
export { PopConfirm };
|
85
|
-
//# sourceMappingURL=PopConfirm.js.map
|
package/lib/esm/icons/index.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
* @hi-ui/pop-confirm
|
3
3
|
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/pop-confirm#readme
|
4
4
|
*
|
5
|
-
* Copyright (c)
|
5
|
+
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
6
6
|
*
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
@@ -11,4 +11,3 @@ import React from 'react';
|
|
11
11
|
import { ExclamationCircleFilled } from '@hi-ui/icons';
|
12
12
|
var defaultTipIcon = /*#__PURE__*/React.createElement(ExclamationCircleFilled, null);
|
13
13
|
export { defaultTipIcon };
|
14
|
-
//# sourceMappingURL=index.js.map
|
package/lib/esm/index.js
CHANGED
@@ -2,11 +2,10 @@
|
|
2
2
|
* @hi-ui/pop-confirm
|
3
3
|
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/pop-confirm#readme
|
4
4
|
*
|
5
|
-
* Copyright (c)
|
5
|
+
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
6
6
|
*
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
9
9
|
*/
|
10
10
|
import './styles/index.scss.js';
|
11
11
|
export { PopConfirm, PopConfirm as default } from './PopConfirm.js';
|
12
|
-
//# sourceMappingURL=index.js.map
|
@@ -2,16 +2,14 @@
|
|
2
2
|
* @hi-ui/pop-confirm
|
3
3
|
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/pop-confirm#readme
|
4
4
|
*
|
5
|
-
* Copyright (c)
|
5
|
+
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
6
6
|
*
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
9
9
|
*/
|
10
|
-
|
11
|
-
|
12
|
-
var __styleInject__ = require('style-inject/dist/style-inject.es.js')["default"];
|
10
|
+
import __styleInject__ from 'inject-head-style';
|
11
|
+
var css_248z = ".hi-v4-pop-confirm {overflow-wrap: break-word;font-size: var(--hi-v4-text-size-md, 0.875rem);line-height: var(--hi-v4-text-lineheight-md, 1.375rem);position: relative;background: var(--hi-v4-color-static-white, #fff);white-space: nowrap;border-radius: var(--hi-v4-border-radius-lg, 6px);padding: var(--hi-v4-spacing-10, 20px);display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-orient: vertical;-webkit-box-direction: normal;-ms-flex-direction: column;flex-direction: column; }.hi-v4-pop-confirm__content {display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center; }.hi-v4-pop-confirm__content-icon {margin-right: var(--hi-v4-spacing-4, 8px);color: var(--hi-v4-color-warning-500, var(--hi-v4-color-yellow-500, #fab007));font-size: var(--hi-v4-text-size-xxl, 1.5rem); }.hi-v4-pop-confirm__content-title {color: var(--hi-v4-color-gray-700, #1f2733); }.hi-v4-pop-confirm__footer {margin-top: var(--hi-v4-spacing-10, 20px);text-align: right; }";
|
13
12
|
|
14
13
|
__styleInject__(css_248z);
|
15
14
|
|
16
|
-
export default
|
17
|
-
//# sourceMappingURL=index.scss.js.map
|
15
|
+
export { css_248z as default };
|
@@ -2,7 +2,7 @@
|
|
2
2
|
* @hi-ui/pop-confirm
|
3
3
|
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/pop-confirm#readme
|
4
4
|
*
|
5
|
-
* Copyright (c)
|
5
|
+
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
6
6
|
*
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
@@ -94,4 +94,3 @@ var usePopConfirm = function usePopConfirm(_a) {
|
|
94
94
|
};
|
95
95
|
|
96
96
|
export { usePopConfirm };
|
97
|
-
//# sourceMappingURL=use-pop-confirm.js.map
|
package/package.json
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
{
|
2
2
|
"name": "@hi-ui/pop-confirm",
|
3
|
-
"version": "4.0.0
|
3
|
+
"version": "4.0.0",
|
4
4
|
"description": "A sub-package for @hi-ui/hiui.",
|
5
5
|
"keywords": [],
|
6
|
-
"author": "
|
6
|
+
"author": "HiUI <mi-hiui@xiaomi.com>",
|
7
7
|
"homepage": "https://github.com/XiaoMi/hiui/tree/master/packages/ui/pop-confirm#readme",
|
8
8
|
"license": "MIT",
|
9
9
|
"directories": {
|
@@ -43,29 +43,29 @@
|
|
43
43
|
"url": "https://github.com/XiaoMi/hiui/issues"
|
44
44
|
},
|
45
45
|
"dependencies": {
|
46
|
-
"@hi-ui/button": "^4.0.0
|
47
|
-
"@hi-ui/classname": "^4.0.0
|
48
|
-
"@hi-ui/
|
49
|
-
"@hi-ui/
|
50
|
-
"@hi-ui/
|
51
|
-
"@hi-ui/
|
52
|
-
"@hi-ui/
|
53
|
-
"@hi-ui/
|
54
|
-
"@hi-ui/
|
55
|
-
"@hi-ui/
|
56
|
-
"@hi-ui/
|
57
|
-
"@hi-ui/use-latest": "^4.0.0-beta.1",
|
58
|
-
"@hi-ui/use-toggle": "^4.0.0-beta.1",
|
59
|
-
"@hi-ui/use-uncontrolled-state": "^4.0.0-beta.1"
|
46
|
+
"@hi-ui/button": "^4.0.0",
|
47
|
+
"@hi-ui/classname": "^4.0.0",
|
48
|
+
"@hi-ui/dom-utils": "^4.0.0",
|
49
|
+
"@hi-ui/env": "^4.0.0",
|
50
|
+
"@hi-ui/icons": "^4.0.0",
|
51
|
+
"@hi-ui/popper": "^4.0.0",
|
52
|
+
"@hi-ui/react-utils": "^4.0.0",
|
53
|
+
"@hi-ui/type-assertion": "^4.0.0",
|
54
|
+
"@hi-ui/use-latest": "^4.0.0",
|
55
|
+
"@hi-ui/use-toggle": "^4.0.0",
|
56
|
+
"@hi-ui/use-uncontrolled-state": "^4.0.0"
|
60
57
|
},
|
61
58
|
"peerDependencies": {
|
59
|
+
"@hi-ui/core": ">=4.0.0",
|
62
60
|
"react": ">=16.8.6",
|
63
61
|
"react-dom": ">=16.8.6"
|
64
62
|
},
|
65
63
|
"devDependencies": {
|
66
|
-
"@hi-ui/
|
64
|
+
"@hi-ui/core": "^4.0.0",
|
65
|
+
"@hi-ui/core-css": "^4.0.0",
|
66
|
+
"@hi-ui/hi-build": "^4.0.0",
|
67
67
|
"react": "^17.0.1",
|
68
68
|
"react-dom": "^17.0.1"
|
69
69
|
},
|
70
|
-
"gitHead": "
|
70
|
+
"gitHead": "3530e4f3c0b4394b91d66a4aa749579708ebff84"
|
71
71
|
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"PopConfirm.js","sources":["../../src/PopConfirm.tsx"],"sourcesContent":[null],"names":["POP_CONFIRM_PREFIX","getPrefixCls","PopConfirm","forwardRef","_a","ref","prefixCls","className","children","title","icon","defaultTipIcon","cancelTextProp","cancelText","confirmTextProp","confirmText","footer","rest","i18n","useLocaleContext","isUndef","get","usePopConfirm","rootProps","getPopperProps","getTriggerProps","onCancel","onConfirm","cls","cx","hasConfirm","hasCancel","hasFooter","React","isValidElement","cloneElement","props","PopperPortal","undefined","Button","key","type","size","onClick","__DEV__","displayName"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,IAAMA,kBAAkB,GAAGC,sBAAAA,CAAa,aAAbA,CAA3B;AAEA;;;;IAGaC,UAAU,gBAAGC,gBAAAA,CACxB,UACEC,EADF,EAaEC,GAbF;wBAEIC;MAAAA,sCAAYN;MAEZO,eAAAA;MACAC,cAAAA;MACAC,WAAAA;mBACAC;MAAAA,4BAAOC;MACKC,oBAAZC;MACaC,qBAAbC;MACAC,YAAAA;MACGC,wBAVL,YAAA,QAAA,aAAA,YAAA,SAAA,QAAA,cAAA,eAAA,UAAA;;MAcMC,IAAI,GAAGC,8BAAAA;MAEPN,UAAU,GAAGO,qBAAAA,CAAQR,cAARQ,IAA0BF,IAAI,CAACG,GAALH,CAAS,uBAATA,CAA1BE,GAA8DR;MAC3EG,WAAW,GAAGK,qBAAAA,CAAQN,eAARM,IAChBF,IAAI,CAACG,GAALH,CAAS,wBAATA,CADgBE,GAEhBN;;uBAEwEQ,2BAAAA,CAAcL,IAAdK;MAApEC,SAAR,kBAAQA;MAAWC,cAAnB,kBAAmBA;MAAgBC,eAAnC,kBAAmCA;MAAiBC,QAApD,kBAAoDA;MAAUC,SAA9D,kBAA8DA;;MAExDC,GAAG,GAAGC,YAAAA,CAAGvB,SAAHuB,EAActB,SAAdsB;MAENC,UAAU,GAAGf,WAAW,KAAK;MAC7BgB,SAAS,GAAGlB,UAAU,KAAK;MAC3BmB,SAAS,GAAGF,UAAU,IAAIC,SAAdD,IAA2Bd,MAAM,KAAK;sBAGtDiB,yBAAAA,cAAAA,mCAAAA,MAAAA,eACGA,yBAAAA,CAAMC,cAAND,CAAqBzB,QAArByB,iBACGA,yBAAAA,CAAME,YAANF,CACEzB,QADFyB;AAGER,EAAAA,eAAe,CAACjB,QAAQ,CAAC4B,KAAV,EAAiB5B,QAAQ,CAACH,GAA1B,CAHjB4B,CADHA,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@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/icons/index.tsx"],"sourcesContent":[null],"names":["defaultTipIcon","React","ExclamationCircleFilled"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAGaA,cAAc,gBAAGC,yBAAAA,cAAAA,CAACC,6BAADD,MAAAA;"}
|
package/lib/cjs/index.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"use-pop-confirm.js","sources":["../../src/use-pop-confirm.ts"],"sourcesContent":[null],"names":["usePopConfirm","_a","visibleProp","visible","closeOnCancel","closeOnConfirm","onCancelProp","onCancel","onConfirmProp","onConfirm","onOpen","onClose","restProps","omitPopperOverlayProps","popper","rest","useUncontrolledToggle","defaultVisible","visibleAction","useCallback","off","onConfirmLatest","useLatestCallback","useState","targetEl","setTargetEl","getTriggerProps","props","ref","mergeRefs","onClick","mockDefaultHandlers","not","getPopperProps","popperProps","withDefaultProps","arrow","placement","gutterGap","attachEl","rootProps","role"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAOaA,aAAa,GAAG,SAAhBA,aAAgB,CAACC,EAAD;MAClBC,iBAATC;4BAEAC;MAAAA,8CAAgB;6BAChBC;MAAAA,gDAAiB;MACPC,kBAAVC;MACWC,mBAAXC;MACAC,YAAAA;MACAC,cAAAA;MACGC,6BATyB,UAAA,YAAA,iBAAA,kBAAA,YAAA,aAAA,UAAA,WAAA;;;8BAYLC,6BAAAA,CAAuBD,SAAvBC;MAAhBC,QAAP;MAAeC,IAAf;;8BAEiCC,+BAAAA,CAAsB;AACrDC,IAAAA,cAAc,EAAE,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AzBH;2CAQfD;AACH/B,MAAAA,OAAO,EAAPA;AACAoC,MAAAA,QAAQ,EAAEf;AACVb,MAAAA,OAAO,EAAEO,aAAa,CAACE;;AAZO,GAAXD,EAcpB,CAAChB,OAAD,EAAUqB,QAAV,EAAoBV,QAApB,EAA4BI,aAA5B,CAdoBC;MAgBjBqB,SAAS;AACbC,IAAAA,IAAI,EAAE;KACH1B;SAGE;AACLyB,IAAAA,SAAS,EAATA,SADK;AAELd,IAAAA,eAAe,EAAfA,eAFK;AAGLO,IAAAA,cAAc,EAAdA,cAHK;AAIL1B,IAAAA,QAAQ,EAARA,QAJK;AAKLE,IAAAA,SAAS,EAATA;AALK;;;"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"PopConfirm.js","sources":["../../src/PopConfirm.tsx"],"sourcesContent":[null],"names":["POP_CONFIRM_PREFIX","getPrefixCls","PopConfirm","forwardRef","_a","ref","prefixCls","className","children","title","icon","defaultTipIcon","cancelTextProp","cancelText","confirmTextProp","confirmText","footer","rest","i18n","useLocaleContext","isUndef","get","usePopConfirm","rootProps","getPopperProps","getTriggerProps","onCancel","onConfirm","cls","cx","hasConfirm","hasCancel","hasFooter","React","isValidElement","cloneElement","props","PopperPortal","undefined","Button","key","type","size","onClick","__DEV__","displayName"],"mappings":";;;;;;;;;;;;;;;;;;;AAWA,IAAMA,kBAAkB,GAAGC,YAAY,CAAC,aAAD,CAAvC;AAEA;;;;IAGaC,UAAU,gBAAGC,UAAU,CAClC,UACEC,EADF,EAaEC,GAbF;wBAEIC;MAAAA,sCAAYN;MAEZO,eAAAA;MACAC,cAAAA;MACAC,WAAAA;mBACAC;MAAAA,4BAAOC;MACKC,oBAAZC;MACaC,qBAAbC;MACAC,YAAAA;MACGC,kBAVL,YAAA,QAAA,aAAA,YAAA,SAAA,QAAA,cAAA,eAAA,UAAA;;MAcMC,IAAI,GAAGC,gBAAgB;MAEvBN,UAAU,GAAGO,OAAO,CAACR,cAAD,CAAPQ,GAA0BF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,MAAM,KAAKsB,SAAXtB,GACG,CACEe,SAAS,gBACPE,mBAAAA,CAACM,MAADN;AACEO,IAAAA,GAAG,EAAC;AACJjC,IAAAA,SAAS,EAAKD,SAAL;AACTmC,IAAAA,IAAI,EAAC;AACLC,IAAAA,IAAI,EAAC;AACLC,IAAAA,OAAO,EAAEjB;GALXO,EAOGpB,UAPHoB,CADO,GAUL,IAXN,EAYEH,UAAU,gBACRG,mBAAAA,CAACM,MAADN;AACEO,IAAAA,GAAG,EAAC;AACJjC,IAAAA,SAAS,EAAKD,SAAL;AACTmC,IAAAA,IAAI,EAAC;AACLC,IAAAA,IAAI,EAAC;AACLC,IAAAA,OAAO,EAAEhB;GALXM,EAOGlB,WAPHkB,CADQ,GAUN,IAtBN,CADHjB,GAyBGA,MA1BNiB,CADQ,GA6BN,IAnCNA,CADFA,CARFA;AAhC8B,CAAA;;AA2GpC,IAAIW,OAAJ,EAAa;AACX1C,EAAAA,UAAU,CAAC2C,WAAX3C,GAAyB,YAAzBA;;;"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/icons/index.tsx"],"sourcesContent":[null],"names":["defaultTipIcon","React","ExclamationCircleFilled"],"mappings":";;;;;;;;;;;IAGaA,cAAc,gBAAGC,mBAAAA,CAACC,uBAADD,MAAAA;"}
|
package/lib/esm/index.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"use-pop-confirm.js","sources":["../../src/use-pop-confirm.ts"],"sourcesContent":[null],"names":["usePopConfirm","_a","visibleProp","visible","closeOnCancel","closeOnConfirm","onCancelProp","onCancel","onConfirmProp","onConfirm","onOpen","onClose","restProps","omitPopperOverlayProps","popper","rest","useUncontrolledToggle","defaultVisible","visibleAction","useCallback","off","onConfirmLatest","useLatestCallback","useState","targetEl","setTargetEl","getTriggerProps","props","ref","mergeRefs","onClick","mockDefaultHandlers","not","getPopperProps","popperProps","withDefaultProps","arrow","placement","gutterGap","attachEl","rootProps","role"],"mappings":";;;;;;;;;;;;;;;;;IAOaA,aAAa,GAAG,SAAhBA,aAAgB,CAACC,EAAD;MAClBC,iBAATC;4BAEAC;MAAAA,8CAAgB;6BAChBC;MAAAA,gDAAiB;MACPC,kBAAVC;MACWC,mBAAXC;MACAC,YAAAA;MACAC,cAAAA;MACGC,uBATyB,UAAA,YAAA,iBAAA,kBAAA,YAAA,aAAA,UAAA,WAAA;;;8BAYLC,sBAAsB,CAACD,SAAD;MAAtCE,MAAP;MAAeC,IAAf;;8BAEiCC,qBAAqB,CAAC;AACrDC,IAAAA,cAAc,EAAE,KADqC;AAErDd,IAAAA,OAAO,EAAED,WAF4C;AAGrDQ,IAAAA,MAAM,EAANA,MAHqD;AAIrDC,IAAAA,OAAO,EAAE,gBAAA;AACPA,MAAAA,QAAO,SAAPA,IAAAA,QAAO,WAAPA,SAAAA,GAAAA,QAAO,EAAPA;AACAL,MAAAA,YAAY,SAAZA,IAAAA,YAAY,WAAZA,SAAAA,GAAAA,YAAY,EAAZA;;AANmD,GAAD;MAA/CH,OAAP;MAAgBe,aAAhB;;MAUMX,QAAQ,GAAGY,WAAW,CAAC;QACvBf,eAAe;AACjBc,MAAAA,aAAa,CAACE,GAAdF;;AAFwB,GAAA,EAIzB,CAACd,aAAD,EAAgBc,aAAhB,CAJyB;MAMtBG,eAAe,GAAGC,iBAAiB,CAACd,aAAD;MAEnCC,SAAS,GAAGU,WAAW,CAAC;AAC5BE,IAAAA,eAAe;;QACXhB,gBAAgB;AAClBa,MAAAA,aAAa,CAACE,GAAdF;;AAHyB,GAAA,EAK1B,CAACb,cAAD,EAAiBa,aAAjB,EAAgCG,eAAhC,CAL0B;;kBAO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