bhd-components 0.9.24 → 0.9.26
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/dist/index.esm.es5.development.css +50 -14
- package/dist/index.esm.es5.development.js +123 -112
- package/dist/index.esm.es5.production.css +1 -1
- package/dist/index.esm.es5.production.js +1 -1
- package/dist/vendor.esm.es5.development.js +15 -24
- package/dist/vendor.esm.es5.production.js +2 -2
- package/es2017/customerService/index.js +3 -2
- package/es2017/message/index.d.ts +1 -0
- package/es2017/message/index.js +14 -6
- package/es2017/message/index.module.less +59 -9
- package/esm/customerService/index.js +3 -2
- package/esm/message/index.d.ts +1 -0
- package/esm/message/index.js +14 -6
- package/esm/message/index.module.less +59 -9
- package/package.json +1 -1
|
@@ -3017,6 +3017,7 @@ const CustomerService = (props)=>{
|
|
|
3017
3017
|
value: keyWord,
|
|
3018
3018
|
onChange: (e)=>{
|
|
3019
3019
|
setKeyWord(e.target.value);
|
|
3020
|
+
let value = e.target.value;
|
|
3020
3021
|
if (e.target.value == "") {
|
|
3021
3022
|
setQuestionsList([]);
|
|
3022
3023
|
clearTimeout(timer.current);
|
|
@@ -3024,9 +3025,9 @@ const CustomerService = (props)=>{
|
|
|
3024
3025
|
clearTimeout(timer.current);
|
|
3025
3026
|
timer.current = setTimeout(()=>{
|
|
3026
3027
|
if (config && config.type == 'video') {
|
|
3027
|
-
getQuestiionsList(String(
|
|
3028
|
+
getQuestiionsList(String(value), 3);
|
|
3028
3029
|
} else {
|
|
3029
|
-
getQuestiionsList(String(
|
|
3030
|
+
getQuestiionsList(String(value), 2);
|
|
3030
3031
|
}
|
|
3031
3032
|
}, 1000);
|
|
3032
3033
|
}
|
|
@@ -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;
|
package/es2017/message/index.js
CHANGED
|
@@ -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
|
-
|
|
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: #
|
|
6
|
+
background: #23d9c3 !important;
|
|
7
7
|
color: #ffffff;
|
|
8
|
-
font-weight:
|
|
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:
|
|
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: #
|
|
39
|
+
background-color: #ffc107 !important;
|
|
34
40
|
color: #ffffff;
|
|
35
|
-
font-weight:
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
}
|
|
@@ -3134,6 +3134,7 @@ var CustomerService = function(props) {
|
|
|
3134
3134
|
value: keyWord,
|
|
3135
3135
|
onChange: function(e) {
|
|
3136
3136
|
setKeyWord(e.target.value);
|
|
3137
|
+
var value = e.target.value;
|
|
3137
3138
|
if (e.target.value == "") {
|
|
3138
3139
|
setQuestionsList([]);
|
|
3139
3140
|
clearTimeout(timer.current);
|
|
@@ -3141,9 +3142,9 @@ var CustomerService = function(props) {
|
|
|
3141
3142
|
clearTimeout(timer.current);
|
|
3142
3143
|
timer.current = setTimeout(function() {
|
|
3143
3144
|
if (config && config.type == "video") {
|
|
3144
|
-
getQuestiionsList(String(
|
|
3145
|
+
getQuestiionsList(String(value), 3);
|
|
3145
3146
|
} else {
|
|
3146
|
-
getQuestiionsList(String(
|
|
3147
|
+
getQuestiionsList(String(value), 2);
|
|
3147
3148
|
}
|
|
3148
3149
|
}, 1000);
|
|
3149
3150
|
}
|
package/esm/message/index.d.ts
CHANGED
|
@@ -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;
|
package/esm/message/index.js
CHANGED
|
@@ -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
|
-
|
|
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: #
|
|
6
|
+
background: #23d9c3 !important;
|
|
7
7
|
color: #ffffff;
|
|
8
|
-
font-weight:
|
|
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:
|
|
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: #
|
|
39
|
+
background-color: #ffc107 !important;
|
|
34
40
|
color: #ffffff;
|
|
35
|
-
font-weight:
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
}
|