@lideralia/alife-uikit 1.2.66 → 1.2.68
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.
|
@@ -236,6 +236,7 @@ CardPayInfo.Body = props => {
|
|
|
236
236
|
handleChange,
|
|
237
237
|
infoState,
|
|
238
238
|
setInfoState,
|
|
239
|
+
labelInvoiceInfo,
|
|
239
240
|
emailValid
|
|
240
241
|
} = props;
|
|
241
242
|
|
|
@@ -282,7 +283,11 @@ CardPayInfo.Body = props => {
|
|
|
282
283
|
country_iso: isNeedInvoice ? "" : infoState.country_iso
|
|
283
284
|
}));
|
|
284
285
|
}
|
|
285
|
-
})), isNeedInvoice && _react.default.createElement(_react.default.Fragment, null, _react.default.createElement(
|
|
286
|
+
})), isNeedInvoice && _react.default.createElement(_react.default.Fragment, null, labelInvoiceInfo ? _react.default.createElement(_Typography.Text, {
|
|
287
|
+
sizeText: "display12",
|
|
288
|
+
color: "black60",
|
|
289
|
+
fontWeight: "bold"
|
|
290
|
+
}, labelInvoiceInfo) : null, _react.default.createElement(_Field.Field, {
|
|
286
291
|
label: labelName,
|
|
287
292
|
color: "black60",
|
|
288
293
|
fontWeight: "bold"
|
|
@@ -15,9 +15,9 @@ var _reactLivechat = _interopRequireDefault(require("react-livechat"));
|
|
|
15
15
|
|
|
16
16
|
var _Icon = require("../../atoms/Icon");
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _Icons = require("../../atoms/Icons");
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _IconSee = _interopRequireDefault(require("../../atoms/Icons/IconSee"));
|
|
21
21
|
|
|
22
22
|
var _Layout = require("../../atoms/Layout");
|
|
23
23
|
|
|
@@ -51,15 +51,15 @@ const Header = (_ref, props) => {
|
|
|
51
51
|
shareCopy,
|
|
52
52
|
eventAction,
|
|
53
53
|
paramsLiveChat,
|
|
54
|
-
allowShowLiveChat
|
|
54
|
+
allowShowLiveChat,
|
|
55
|
+
notLoggedIn
|
|
55
56
|
} = _ref;
|
|
56
57
|
const [isOpened, setIsOpened] = (0, _react.useState)(false);
|
|
57
58
|
const {
|
|
58
59
|
width
|
|
59
60
|
} = (0, _useWindowSize.default)();
|
|
60
61
|
const [liveChat, setLiveChat] = (0, _react.useState)(null);
|
|
61
|
-
const [
|
|
62
|
-
(0, _react.useEffect)(() => {}, [liveChat]);
|
|
62
|
+
const [showNotification, setShowNotification] = (0, _react.useState)(false);
|
|
63
63
|
|
|
64
64
|
const showLiveChat = () => {
|
|
65
65
|
if (liveChat !== null) {
|
|
@@ -67,28 +67,21 @@ const Header = (_ref, props) => {
|
|
|
67
67
|
liveChat === null || liveChat === void 0 ? void 0 : liveChat.open_chat_window();
|
|
68
68
|
setShowNotification(false);
|
|
69
69
|
} catch (e) {}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
const hideLiveChat = () => {
|
|
74
|
-
if (liveChat !== null) {
|
|
75
|
-
try {
|
|
76
|
-
liveChat === null || liveChat === void 0 ? void 0 : liveChat.hide_chat_window();
|
|
77
|
-
} catch (e) {}
|
|
70
|
+
} else {
|
|
71
|
+
notLoggedIn();
|
|
78
72
|
}
|
|
79
73
|
};
|
|
80
74
|
|
|
81
75
|
const captureNotification = notification => {
|
|
82
76
|
if (notification.user_type == 'agent') {
|
|
83
77
|
try {
|
|
84
|
-
if (!
|
|
78
|
+
if (!showNotification && !(liveChat !== null && liveChat !== void 0 && liveChat.chat_window_maximized())) {
|
|
85
79
|
setShowNotification(true);
|
|
86
80
|
}
|
|
87
81
|
} catch (e) {}
|
|
88
82
|
}
|
|
89
83
|
};
|
|
90
84
|
|
|
91
|
-
(0, _react.useEffect)(() => {}, [showNotificatoin]);
|
|
92
85
|
return _react.default.createElement(_Layout.Box, (0, _extends2.default)({
|
|
93
86
|
boxShadow: "bottom",
|
|
94
87
|
width: "100%",
|
|
@@ -129,7 +122,7 @@ const Header = (_ref, props) => {
|
|
|
129
122
|
sizeIcon: "display24",
|
|
130
123
|
color: customTextColor || 'black60',
|
|
131
124
|
marginRight: 1
|
|
132
|
-
}, _react.default.createElement(
|
|
125
|
+
}, _react.default.createElement(_Icons.IconWhatsapp, null)), _react.default.createElement(_Typography.LinkText, {
|
|
133
126
|
sizeText: "display14",
|
|
134
127
|
fontWeight: "bold",
|
|
135
128
|
color: customTextColor || 'black84',
|
|
@@ -152,7 +145,7 @@ const Header = (_ref, props) => {
|
|
|
152
145
|
fontWeight: "bold",
|
|
153
146
|
color: customTextColor || 'black84',
|
|
154
147
|
onClick: e => showLiveChat()
|
|
155
|
-
}, helpLabel)),
|
|
148
|
+
}, helpLabel)), showNotification && _react.default.createElement("div", {
|
|
156
149
|
style: {
|
|
157
150
|
width: "12px",
|
|
158
151
|
height: "12px",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lideralia/alife-uikit",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.68",
|
|
4
4
|
"description": "Librería y documentación de componentes, basada en el Design System de Alife.",
|
|
5
5
|
"homepage": "https://github.com/lideralia/alife-frontend-components#readme",
|
|
6
6
|
"bugs": {
|