@hi-ui/pop-confirm 5.0.0-canary.0 → 5.0.0-canary.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @hi-ui/pop-confirm
2
2
 
3
+ ## 5.0.0-canary.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 40f819417: fix: 修复 UI 问题 (5.0)
8
+ - Updated dependencies [40f819417]
9
+ - @hi-ui/button@5.0.0-canary.3
10
+
3
11
  ## 5.0.0-canary.0
4
12
 
5
13
  ### Major Changes
@@ -80,13 +80,14 @@ var PopConfirm = /*#__PURE__*/React.forwardRef(function (_a, ref) {
80
80
  key: "1",
81
81
  className: prefixCls + "__btn-cancel",
82
82
  type: "default",
83
- size: "md",
83
+ appearance: "line",
84
+ size: "sm",
84
85
  onClick: onCancel
85
86
  }, cancelText)) : null, hasConfirm ? ( /*#__PURE__*/React__default["default"].createElement(Button__default["default"], {
86
87
  key: "2",
87
88
  className: prefixCls + "__btn-confirm",
88
89
  type: "primary",
89
- size: "md",
90
+ size: "sm",
90
91
  onClick: onConfirm
91
92
  }, confirmText)) : null] : footer)) : null)));
92
93
  });
@@ -12,7 +12,7 @@
12
12
  Object.defineProperty(exports, '__esModule', {
13
13
  value: true
14
14
  });
15
- var css_248z = ".hi-v5-pop-confirm {overflow-wrap: break-word;font-size: var(--hi-v5-text-size-md, 0.875rem);line-height: var(--hi-v5-text-lineheight-md, 1.375rem);position: relative;background: var(--hi-v5-color-static-white, #fff);white-space: nowrap;border-radius: var(--hi-v5-border-radius-lg, 6px);padding: var(--hi-v5-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-v5-pop-confirm__content {display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;}.hi-v5-pop-confirm__content-icon {margin-right: var(--hi-v5-spacing-5, 10px);color: var(--hi-v5-color-warning-500, var(--hi-v5-color-yellow-500, #ffbe0a));font-size: var(--hi-v5-text-size-xl, 1.125rem);}.hi-v5-pop-confirm__content-title {color: var(--hi-v5-color-gray-700, #1a1d26);font-weight: var(--hi-v5-text-weight-semibold, 600);}.hi-v5-pop-confirm__body {margin: var(--hi-v5-spacing-5, 10px) 0 0 var(--hi-v5-spacing-14, 28px);white-space: normal;color: var(--hi-v5-color-gray-600, #565a66);}.hi-v5-pop-confirm__footer {margin-top: var(--hi-v5-spacing-10, 20px);text-align: right;}";
15
+ var css_248z = ".hi-v5-pop-confirm {overflow-wrap: break-word;font-size: var(--hi-v5-text-size-md, 0.875rem);line-height: var(--hi-v5-text-lineheight-md, 1.375rem);position: relative;background: var(--hi-v5-color-static-white, #fff);white-space: nowrap;border-radius: var(--hi-v5-border-radius-lg, 6px);padding: var(--hi-v5-spacing-8, 16px) var(--hi-v5-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-v5-pop-confirm__content {display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;}.hi-v5-pop-confirm__content-icon {margin-right: var(--hi-v5-spacing-5, 10px);color: var(--hi-v5-color-warning-500, var(--hi-v5-color-orange-500, #f70));font-size: var(--hi-v5-text-size-xl, 1.125rem);}.hi-v5-pop-confirm__content-title {color: var(--hi-v5-color-gray-700, #1a1d26);font-weight: var(--hi-v5-text-weight-semibold, 600);}.hi-v5-pop-confirm__body {margin: var(--hi-v5-spacing-5, 10px) 0 0 var(--hi-v5-spacing-14, 28px);white-space: normal;color: var(--hi-v5-color-gray-600, #565a66);}.hi-v5-pop-confirm__footer {margin-top: var(--hi-v5-spacing-10, 20px);text-align: right;}";
16
16
  var __styleInject__ = require('@hi-ui/style-inject')["default"];
17
17
  __styleInject__(css_248z);
18
18
  exports["default"] = css_248z;
@@ -66,13 +66,14 @@ var PopConfirm = /*#__PURE__*/forwardRef(function (_a, ref) {
66
66
  key: "1",
67
67
  className: prefixCls + "__btn-cancel",
68
68
  type: "default",
69
- size: "md",
69
+ appearance: "line",
70
+ size: "sm",
70
71
  onClick: onCancel
71
72
  }, cancelText)) : null, hasConfirm ? ( /*#__PURE__*/React.createElement(Button, {
72
73
  key: "2",
73
74
  className: prefixCls + "__btn-confirm",
74
75
  type: "primary",
75
- size: "md",
76
+ size: "sm",
76
77
  onClick: onConfirm
77
78
  }, confirmText)) : null] : footer)) : null)));
78
79
  });
@@ -8,6 +8,6 @@
8
8
  * LICENSE file in the root directory of this source tree.
9
9
  */
10
10
  import __styleInject__ from '@hi-ui/style-inject';
11
- var css_248z = ".hi-v5-pop-confirm {overflow-wrap: break-word;font-size: var(--hi-v5-text-size-md, 0.875rem);line-height: var(--hi-v5-text-lineheight-md, 1.375rem);position: relative;background: var(--hi-v5-color-static-white, #fff);white-space: nowrap;border-radius: var(--hi-v5-border-radius-lg, 6px);padding: var(--hi-v5-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-v5-pop-confirm__content {display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;}.hi-v5-pop-confirm__content-icon {margin-right: var(--hi-v5-spacing-5, 10px);color: var(--hi-v5-color-warning-500, var(--hi-v5-color-yellow-500, #ffbe0a));font-size: var(--hi-v5-text-size-xl, 1.125rem);}.hi-v5-pop-confirm__content-title {color: var(--hi-v5-color-gray-700, #1a1d26);font-weight: var(--hi-v5-text-weight-semibold, 600);}.hi-v5-pop-confirm__body {margin: var(--hi-v5-spacing-5, 10px) 0 0 var(--hi-v5-spacing-14, 28px);white-space: normal;color: var(--hi-v5-color-gray-600, #565a66);}.hi-v5-pop-confirm__footer {margin-top: var(--hi-v5-spacing-10, 20px);text-align: right;}";
11
+ var css_248z = ".hi-v5-pop-confirm {overflow-wrap: break-word;font-size: var(--hi-v5-text-size-md, 0.875rem);line-height: var(--hi-v5-text-lineheight-md, 1.375rem);position: relative;background: var(--hi-v5-color-static-white, #fff);white-space: nowrap;border-radius: var(--hi-v5-border-radius-lg, 6px);padding: var(--hi-v5-spacing-8, 16px) var(--hi-v5-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-v5-pop-confirm__content {display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;}.hi-v5-pop-confirm__content-icon {margin-right: var(--hi-v5-spacing-5, 10px);color: var(--hi-v5-color-warning-500, var(--hi-v5-color-orange-500, #f70));font-size: var(--hi-v5-text-size-xl, 1.125rem);}.hi-v5-pop-confirm__content-title {color: var(--hi-v5-color-gray-700, #1a1d26);font-weight: var(--hi-v5-text-weight-semibold, 600);}.hi-v5-pop-confirm__body {margin: var(--hi-v5-spacing-5, 10px) 0 0 var(--hi-v5-spacing-14, 28px);white-space: normal;color: var(--hi-v5-color-gray-600, #565a66);}.hi-v5-pop-confirm__footer {margin-top: var(--hi-v5-spacing-10, 20px);text-align: right;}";
12
12
  __styleInject__(css_248z);
13
13
  export { css_248z as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hi-ui/pop-confirm",
3
- "version": "5.0.0-canary.0",
3
+ "version": "5.0.0-canary.1",
4
4
  "description": "A sub-package for @hi-ui/hiui.",
5
5
  "keywords": [],
6
6
  "author": "HiUI <mi-hiui@xiaomi.com>",
@@ -44,7 +44,7 @@
44
44
  "url": "https://github.com/XiaoMi/hiui/issues"
45
45
  },
46
46
  "dependencies": {
47
- "@hi-ui/button": "^5.0.0-canary.0",
47
+ "@hi-ui/button": "^5.0.0-canary.3",
48
48
  "@hi-ui/classname": "^5.0.0-canary.0",
49
49
  "@hi-ui/dom-utils": "^5.0.0-canary.0",
50
50
  "@hi-ui/env": "^5.0.0-canary.0",