@lideralia/alife-uikit 1.1.369 → 1.1.372
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.
|
@@ -37,9 +37,7 @@ var CardPaymentMethod = function CardPaymentMethod(_ref) {
|
|
|
37
37
|
getPaymentMethod = _ref.getPaymentMethod,
|
|
38
38
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
39
39
|
(0, _react.useEffect)(function () {}, []);
|
|
40
|
-
var stripePromise = (0, _stripeJs.loadStripe)(stripeKey
|
|
41
|
-
stripeAccount: stripeAccount
|
|
42
|
-
});
|
|
40
|
+
var stripePromise = (0, _stripeJs.loadStripe)(stripeKey);
|
|
43
41
|
return _react.default.createElement(_reactStripeJs.Elements, {
|
|
44
42
|
stripe: stripePromise
|
|
45
43
|
}, _react.default.createElement(CardPaymentMethod.Card, (0, _extends2.default)({
|
|
@@ -49,7 +49,8 @@ var ModalLogin = function ModalLogin(_ref) {
|
|
|
49
49
|
onModalBack = _ref.onModalBack,
|
|
50
50
|
backWithButton = _ref.backWithButton,
|
|
51
51
|
customColor = _ref.customColor,
|
|
52
|
-
customTextColor = _ref.customTextColor
|
|
52
|
+
customTextColor = _ref.customTextColor,
|
|
53
|
+
defaultInputQuery = _ref.defaultInputQuery;
|
|
53
54
|
|
|
54
55
|
var _useState = (0, _react.useState)(prefix === null || prefix === void 0 ? void 0 : prefix.defaultValue),
|
|
55
56
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -102,7 +103,8 @@ var ModalLogin = function ModalLogin(_ref) {
|
|
|
102
103
|
onChange: actionInput,
|
|
103
104
|
maxLength: 99999999,
|
|
104
105
|
pattern: "[0-9]{3} [0-9]{3} [0-9]{4}",
|
|
105
|
-
hasError: hasError
|
|
106
|
+
hasError: hasError,
|
|
107
|
+
defaultValue: (defaultInputQuery === null || defaultInputQuery === void 0 ? void 0 : defaultInputQuery.phoneNumber) || ''
|
|
106
108
|
})))), hasError && errorMessage && _react.default.createElement(_Typography.Text, {
|
|
107
109
|
sizeText: "display14",
|
|
108
110
|
color: "red",
|
|
@@ -140,6 +142,9 @@ ModalLogin.defaultProps = {
|
|
|
140
142
|
idPhone: 'phone',
|
|
141
143
|
title: 'Iniciar sesión',
|
|
142
144
|
labelPhone: 'Escribe tu número de teéfono',
|
|
145
|
+
defaultInputQuery: {
|
|
146
|
+
phoneNumber: '4242424242'
|
|
147
|
+
},
|
|
143
148
|
footer: {
|
|
144
149
|
label: null,
|
|
145
150
|
action: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lideralia/alife-uikit",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.372",
|
|
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": {
|