@lideralia/alife-uikit 1.2.49 → 1.2.50
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.
|
@@ -43,7 +43,7 @@ var _Select = require("../../atoms/Select");
|
|
|
43
43
|
|
|
44
44
|
var _Typography = require("../../atoms/Typography");
|
|
45
45
|
|
|
46
|
-
var _excluded = ["needInvoice", "country", "customColor", "customTextColor", "locale"];
|
|
46
|
+
var _excluded = ["needInvoice", "country", "customColor", "customTextColor", "locale", "labelTermsAndConditions"];
|
|
47
47
|
|
|
48
48
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
49
49
|
|
|
@@ -59,6 +59,7 @@ var CardPayInfo = function CardPayInfo(_ref) {
|
|
|
59
59
|
customColor = _ref.customColor,
|
|
60
60
|
customTextColor = _ref.customTextColor,
|
|
61
61
|
locale = _ref.locale,
|
|
62
|
+
labelTermsAndConditions = _ref.labelTermsAndConditions,
|
|
62
63
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
63
64
|
|
|
64
65
|
var _useState = (0, _react.useState)(false),
|
|
@@ -66,8 +67,6 @@ var CardPayInfo = function CardPayInfo(_ref) {
|
|
|
66
67
|
isNeedInvoice = _useState2[0],
|
|
67
68
|
setIsNeedInvoice = _useState2[1];
|
|
68
69
|
|
|
69
|
-
(0, _react.useEffect)(function () {}, [isNeedInvoice]);
|
|
70
|
-
|
|
71
70
|
var _useState3 = (0, _react.useState)({
|
|
72
71
|
payment_method_id: "",
|
|
73
72
|
invoice_requested: false,
|
|
@@ -170,7 +169,8 @@ var CardPayInfo = function CardPayInfo(_ref) {
|
|
|
170
169
|
infoState: infoState,
|
|
171
170
|
formValid: formValid,
|
|
172
171
|
customColor: customColor,
|
|
173
|
-
customTextColor: customTextColor
|
|
172
|
+
customTextColor: customTextColor,
|
|
173
|
+
labelTermsAndConditions: labelTermsAndConditions
|
|
174
174
|
}, props)));
|
|
175
175
|
};
|
|
176
176
|
|
|
@@ -411,13 +411,19 @@ CardPayInfo.Footer = function (_ref2) {
|
|
|
411
411
|
infoState = _ref2.infoState,
|
|
412
412
|
formValid = _ref2.formValid,
|
|
413
413
|
customColor = _ref2.customColor,
|
|
414
|
-
customTextColor = _ref2.customTextColor
|
|
414
|
+
customTextColor = _ref2.customTextColor,
|
|
415
|
+
labelTermsAndConditions = _ref2.labelTermsAndConditions;
|
|
415
416
|
return _react.default.createElement(_react.default.Fragment, null, _react.default.createElement(_Layout.Box, {
|
|
416
417
|
padding: 3,
|
|
417
418
|
borderTopColor: "black12",
|
|
418
419
|
borderTopStyle: "solid",
|
|
419
420
|
borderTopWidth: "1px"
|
|
420
|
-
}, _react.default.createElement(
|
|
421
|
+
}, labelTermsAndConditions ? _react.default.createElement(_Typography.Text, {
|
|
422
|
+
sizeText: "display12",
|
|
423
|
+
fontWeight: "medium",
|
|
424
|
+
color: "black",
|
|
425
|
+
marginBottom: 2
|
|
426
|
+
}, labelTermsAndConditions) : null, _react.default.createElement(_Button.Button, {
|
|
421
427
|
width: "100%",
|
|
422
428
|
marginX: "auto",
|
|
423
429
|
backgroundColor: customColor,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lideralia/alife-uikit",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.50",
|
|
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": {
|