bhd-components 0.9.24 → 0.9.25

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.
@@ -3,6 +3,7 @@ declare const BhdMessage: {
3
3
  customSuccess: (config: ArgsProps | string) => any;
4
4
  customWarning: (config: ArgsProps | string) => any;
5
5
  customError: (config: ArgsProps | string) => any;
6
+ customInfo: (config: ArgsProps | string) => any;
6
7
  open: (...arg: any) => any;
7
8
  destroy: (...arg: any) => any;
8
9
  error: (...arg: any) => any;
@@ -1,11 +1,9 @@
1
1
  import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
2
2
  import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
3
- import { jsx as _jsx } from "@ice/jsx-runtime/jsx-runtime";
4
3
  import * as React from "react";
5
4
  import styles from "./index.module.less";
6
5
  import { message as AntdMessage } from "antd";
7
6
  import { message } from "../bhdTipModal/modal";
8
- import { ExclamationCircleFilled } from "../icons/index";
9
7
  const BhdMessage = _object_spread_props(_object_spread({}, AntdMessage), {
10
8
  customSuccess: (config)=>{
11
9
  let className = styles.customSuccess;
@@ -36,13 +34,23 @@ const BhdMessage = _object_spread_props(_object_spread({}, AntdMessage), {
36
34
  if (typeof config === "string") {
37
35
  return message.error({
38
36
  content: config,
39
- className,
40
- icon: /*#__PURE__*/ _jsx(ExclamationCircleFilled, {})
37
+ className
41
38
  });
42
39
  }
43
40
  return message.error(_object_spread_props(_object_spread({}, config), {
44
- className: `${className} ${config.className || ""}`,
45
- icon: config.icon || /*#__PURE__*/ _jsx(ExclamationCircleFilled, {})
41
+ className: `${className} ${config.className || ""}`
42
+ }));
43
+ },
44
+ customInfo: (config)=>{
45
+ let className = styles.customInfo;
46
+ if (typeof config === "string") {
47
+ return message.info({
48
+ content: config,
49
+ className
50
+ });
51
+ }
52
+ return message.info(_object_spread_props(_object_spread({}, config), {
53
+ className: `${className} ${config.className || ""}`
46
54
  }));
47
55
  },
48
56
  open: (...arg)=>message.open(...arg),
@@ -3,10 +3,15 @@
3
3
  :local(.customSuccess) {
4
4
  &.bhd-message-notice {
5
5
  .bhd-message-notice-content {
6
- background: #5991ef !important;
6
+ background: #23d9c3 !important;
7
7
  color: #ffffff;
8
- font-weight: 500;
8
+ font-weight: 600;
9
9
  font-size: 14px;
10
+ padding: 9.5px 16px !important;
11
+ border-radius: 4px !important;
12
+ box-shadow: 0 6px 16px 0 rgba(32, 32, 32, 0.08),
13
+ 0 3px 6px -4px rgba(49, 49, 49, 0.12),
14
+ 0 9px 28px 8px rgba(35, 35, 35, 0.05) !important;
10
15
  & > .bhd-message-success {
11
16
  & > .anticon {
12
17
  color: #ffffff;
@@ -18,9 +23,10 @@
18
23
  line-height: 0;
19
24
  text-align: center;
20
25
  text-transform: none;
21
- vertical-align: -0.125em;
26
+ vertical-align: middle;
22
27
  text-rendering: optimizeLegibility;
23
28
  -webkit-font-smoothing: antialiased;
29
+ transform: translateY(-1.25px);
24
30
  }
25
31
  }
26
32
  }
@@ -30,10 +36,15 @@
30
36
  :local(.customWarning) {
31
37
  &.bhd-message-notice {
32
38
  .bhd-message-notice-content {
33
- background-color: #fadb14 !important;
39
+ background-color: #ffc107 !important;
34
40
  color: #ffffff;
35
- font-weight: 500;
41
+ font-weight: 600;
36
42
  font-size: 14px;
43
+ padding: 9.5px 16px !important;
44
+ border-radius: 4px !important;
45
+ box-shadow: 0 6px 16px 0 rgba(32, 32, 32, 0.08),
46
+ 0 3px 6px -4px rgba(49, 49, 49, 0.12),
47
+ 0 9px 28px 8px rgba(35, 35, 35, 0.05) !important;
37
48
  .bhd-message-warning {
38
49
  & > .anticon {
39
50
  color: #ffffff;
@@ -45,23 +56,28 @@
45
56
  line-height: 0;
46
57
  text-align: center;
47
58
  text-transform: none;
48
- vertical-align: -0.125em;
59
+ vertical-align: middle;
49
60
  text-rendering: optimizeLegibility;
50
61
  -webkit-font-smoothing: antialiased;
62
+ transform: translateY(-1.25px);
51
63
  }
52
64
  }
53
65
  }
54
66
  }
55
67
  }
56
68
 
57
-
58
69
  :local(.customError) {
59
70
  &.bhd-message-notice {
60
71
  .bhd-message-notice-content {
61
72
  background-color: #f8700c !important;
62
73
  color: #ffffff;
63
- font-weight: 500;
74
+ font-weight: 600;
64
75
  font-size: 14px;
76
+ padding: 9.5px 16px !important;
77
+ border-radius: 4px !important;
78
+ box-shadow: 0 6px 16px 0 rgba(32, 32, 32, 0.08),
79
+ 0 3px 6px -4px rgba(49, 49, 49, 0.12),
80
+ 0 9px 28px 8px rgba(35, 35, 35, 0.05) !important;
65
81
  .bhd-message-error {
66
82
  & > .anticon {
67
83
  color: #ffffff;
@@ -73,9 +89,43 @@
73
89
  line-height: 0;
74
90
  text-align: center;
75
91
  text-transform: none;
76
- vertical-align: -0.125em;
92
+ vertical-align: middle;
93
+ text-rendering: optimizeLegibility;
94
+ -webkit-font-smoothing: antialiased;
95
+ transform: translateY(-1.25px);
96
+ }
97
+ }
98
+ }
99
+ }
100
+ }
101
+
102
+ :local(.customInfo) {
103
+ &.bhd-message-notice {
104
+ .bhd-message-notice-content {
105
+ background: #5991ef !important;
106
+ color: #ffffff;
107
+ font-weight: 600;
108
+ font-size: 14px;
109
+ padding: 9.5px 16px !important;
110
+ border-radius: 4px !important;
111
+ box-shadow: 0 6px 16px 0 rgba(32, 32, 32, 0.08),
112
+ 0 3px 6px -4px rgba(49, 49, 49, 0.12),
113
+ 0 9px 28px 8px rgba(35, 35, 35, 0.05) !important;
114
+ & > .bhd-message-info {
115
+ & > .anticon {
116
+ color: #ffffff;
117
+ font-size: 14px;
118
+ display: inline-flex;
119
+ align-items: center;
120
+ color: inherit;
121
+ font-style: normal;
122
+ line-height: 0;
123
+ text-align: center;
124
+ text-transform: none;
125
+ vertical-align: middle;
77
126
  text-rendering: optimizeLegibility;
78
127
  -webkit-font-smoothing: antialiased;
128
+ transform: translateY(-1.25px);
79
129
  }
80
130
  }
81
131
  }
@@ -3,6 +3,7 @@ declare const BhdMessage: {
3
3
  customSuccess: (config: ArgsProps | string) => any;
4
4
  customWarning: (config: ArgsProps | string) => any;
5
5
  customError: (config: ArgsProps | string) => any;
6
+ customInfo: (config: ArgsProps | string) => any;
6
7
  open: (...arg: any) => any;
7
8
  destroy: (...arg: any) => any;
8
9
  error: (...arg: any) => any;
@@ -2,12 +2,10 @@ import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
2
2
  import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
3
3
  import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array";
4
4
  var _message, _message1, _message2, _message3, _message4, _message5, _message6, _message7, _message8;
5
- import { jsx as _jsx } from "@ice/jsx-runtime/jsx-runtime";
6
5
  import * as React from "react";
7
6
  import styles from "./index.module.less";
8
7
  import { message as AntdMessage } from "antd";
9
8
  import { message } from "../bhdTipModal/modal";
10
- import { ExclamationCircleFilled } from "../icons/index";
11
9
  var BhdMessage = _object_spread_props(_object_spread({}, AntdMessage), {
12
10
  customSuccess: function(config) {
13
11
  var className = styles.customSuccess;
@@ -38,13 +36,23 @@ var BhdMessage = _object_spread_props(_object_spread({}, AntdMessage), {
38
36
  if (typeof config === "string") {
39
37
  return message.error({
40
38
  content: config,
41
- className: className,
42
- icon: /*#__PURE__*/ _jsx(ExclamationCircleFilled, {})
39
+ className: className
43
40
  });
44
41
  }
45
42
  return message.error(_object_spread_props(_object_spread({}, config), {
46
- className: "".concat(className, " ").concat(config.className || ""),
47
- icon: config.icon || /*#__PURE__*/ _jsx(ExclamationCircleFilled, {})
43
+ className: "".concat(className, " ").concat(config.className || "")
44
+ }));
45
+ },
46
+ customInfo: function(config) {
47
+ var className = styles.customInfo;
48
+ if (typeof config === "string") {
49
+ return message.info({
50
+ content: config,
51
+ className: className
52
+ });
53
+ }
54
+ return message.info(_object_spread_props(_object_spread({}, config), {
55
+ className: "".concat(className, " ").concat(config.className || "")
48
56
  }));
49
57
  },
50
58
  open: function() {
@@ -3,10 +3,15 @@
3
3
  :local(.customSuccess) {
4
4
  &.bhd-message-notice {
5
5
  .bhd-message-notice-content {
6
- background: #5991ef !important;
6
+ background: #23d9c3 !important;
7
7
  color: #ffffff;
8
- font-weight: 500;
8
+ font-weight: 600;
9
9
  font-size: 14px;
10
+ padding: 9.5px 16px !important;
11
+ border-radius: 4px !important;
12
+ box-shadow: 0 6px 16px 0 rgba(32, 32, 32, 0.08),
13
+ 0 3px 6px -4px rgba(49, 49, 49, 0.12),
14
+ 0 9px 28px 8px rgba(35, 35, 35, 0.05) !important;
10
15
  & > .bhd-message-success {
11
16
  & > .anticon {
12
17
  color: #ffffff;
@@ -18,9 +23,10 @@
18
23
  line-height: 0;
19
24
  text-align: center;
20
25
  text-transform: none;
21
- vertical-align: -0.125em;
26
+ vertical-align: middle;
22
27
  text-rendering: optimizeLegibility;
23
28
  -webkit-font-smoothing: antialiased;
29
+ transform: translateY(-1.25px);
24
30
  }
25
31
  }
26
32
  }
@@ -30,10 +36,15 @@
30
36
  :local(.customWarning) {
31
37
  &.bhd-message-notice {
32
38
  .bhd-message-notice-content {
33
- background-color: #fadb14 !important;
39
+ background-color: #ffc107 !important;
34
40
  color: #ffffff;
35
- font-weight: 500;
41
+ font-weight: 600;
36
42
  font-size: 14px;
43
+ padding: 9.5px 16px !important;
44
+ border-radius: 4px !important;
45
+ box-shadow: 0 6px 16px 0 rgba(32, 32, 32, 0.08),
46
+ 0 3px 6px -4px rgba(49, 49, 49, 0.12),
47
+ 0 9px 28px 8px rgba(35, 35, 35, 0.05) !important;
37
48
  .bhd-message-warning {
38
49
  & > .anticon {
39
50
  color: #ffffff;
@@ -45,23 +56,28 @@
45
56
  line-height: 0;
46
57
  text-align: center;
47
58
  text-transform: none;
48
- vertical-align: -0.125em;
59
+ vertical-align: middle;
49
60
  text-rendering: optimizeLegibility;
50
61
  -webkit-font-smoothing: antialiased;
62
+ transform: translateY(-1.25px);
51
63
  }
52
64
  }
53
65
  }
54
66
  }
55
67
  }
56
68
 
57
-
58
69
  :local(.customError) {
59
70
  &.bhd-message-notice {
60
71
  .bhd-message-notice-content {
61
72
  background-color: #f8700c !important;
62
73
  color: #ffffff;
63
- font-weight: 500;
74
+ font-weight: 600;
64
75
  font-size: 14px;
76
+ padding: 9.5px 16px !important;
77
+ border-radius: 4px !important;
78
+ box-shadow: 0 6px 16px 0 rgba(32, 32, 32, 0.08),
79
+ 0 3px 6px -4px rgba(49, 49, 49, 0.12),
80
+ 0 9px 28px 8px rgba(35, 35, 35, 0.05) !important;
65
81
  .bhd-message-error {
66
82
  & > .anticon {
67
83
  color: #ffffff;
@@ -73,9 +89,43 @@
73
89
  line-height: 0;
74
90
  text-align: center;
75
91
  text-transform: none;
76
- vertical-align: -0.125em;
92
+ vertical-align: middle;
93
+ text-rendering: optimizeLegibility;
94
+ -webkit-font-smoothing: antialiased;
95
+ transform: translateY(-1.25px);
96
+ }
97
+ }
98
+ }
99
+ }
100
+ }
101
+
102
+ :local(.customInfo) {
103
+ &.bhd-message-notice {
104
+ .bhd-message-notice-content {
105
+ background: #5991ef !important;
106
+ color: #ffffff;
107
+ font-weight: 600;
108
+ font-size: 14px;
109
+ padding: 9.5px 16px !important;
110
+ border-radius: 4px !important;
111
+ box-shadow: 0 6px 16px 0 rgba(32, 32, 32, 0.08),
112
+ 0 3px 6px -4px rgba(49, 49, 49, 0.12),
113
+ 0 9px 28px 8px rgba(35, 35, 35, 0.05) !important;
114
+ & > .bhd-message-info {
115
+ & > .anticon {
116
+ color: #ffffff;
117
+ font-size: 14px;
118
+ display: inline-flex;
119
+ align-items: center;
120
+ color: inherit;
121
+ font-style: normal;
122
+ line-height: 0;
123
+ text-align: center;
124
+ text-transform: none;
125
+ vertical-align: middle;
77
126
  text-rendering: optimizeLegibility;
78
127
  -webkit-font-smoothing: antialiased;
128
+ transform: translateY(-1.25px);
79
129
  }
80
130
  }
81
131
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bhd-components",
3
- "version": "0.9.24",
3
+ "version": "0.9.25",
4
4
  "description": "组件功能描述",
5
5
  "config": {
6
6
  "commitizen": {