contentoh-components-library 21.0.26 → 21.0.29
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/components/atoms/Loading/Loading.stories.js +28 -0
- package/dist/components/atoms/Loading/index.js +27 -0
- package/dist/components/atoms/Loading/styles.js +18 -0
- package/dist/components/molecules/EmailResetPasswordLogin/EmailResetPasswordLogin.stories.js +28 -0
- package/dist/components/molecules/EmailResetPasswordLogin/index.js +155 -0
- package/dist/components/molecules/EmailResetPasswordLogin/styles.js +20 -0
- package/dist/components/molecules/RegistrationFirstStep/RegistrationFirstStep.stories.js +28 -0
- package/dist/components/molecules/RegistrationFirstStep/index.js +336 -0
- package/dist/components/molecules/RegistrationFirstStep/styles.js +20 -0
- package/dist/components/molecules/RegistrationSecondStep/RegistrationSecondStep.stories.js +28 -0
- package/dist/components/molecules/RegistrationSecondStep/index.js +156 -0
- package/dist/components/molecules/RegistrationSecondStep/styles.js +20 -0
- package/dist/components/molecules/RegistrationThirdStep/RegistrationThirdStep.stories.js +28 -0
- package/dist/components/molecules/RegistrationThirdStep/index.js +161 -0
- package/dist/components/molecules/RegistrationThirdStep/styles.js +20 -0
- package/dist/components/molecules/SignInLogin/index.js +217 -67
- package/dist/components/molecules/SignInLogin/styles.js +1 -1
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/VerificationCodeResetPasswordLogin.stories.js +28 -0
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/index.js +104 -0
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/styles.js +20 -0
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/utils.js +69 -0
- package/dist/components/organisms/ChangePassword/ChangePassword.stories.js +28 -0
- package/dist/components/organisms/ChangePassword/index.js +113 -0
- package/dist/components/organisms/ChangePassword/styles.js +18 -0
- package/dist/index.js +138 -47
- package/package.json +5 -2
- package/src/components/atoms/Loading/Loading.stories.js +10 -0
- package/src/components/atoms/Loading/index.js +13 -0
- package/src/components/atoms/Loading/styles.js +57 -0
- package/src/components/molecules/EmailResetPasswordLogin/EmailResetPasswordLogin.stories.js +11 -0
- package/src/components/molecules/EmailResetPasswordLogin/index.js +86 -0
- package/src/components/molecules/EmailResetPasswordLogin/styles.js +23 -0
- package/src/components/molecules/RegistrationFirstStep/RegistrationFirstStep.stories.js +11 -0
- package/src/components/molecules/RegistrationFirstStep/index.js +242 -0
- package/src/components/molecules/RegistrationFirstStep/styles.js +81 -0
- package/src/components/molecules/RegistrationSecondStep/RegistrationSecondStep.stories.js +11 -0
- package/src/components/molecules/RegistrationSecondStep/index.js +97 -0
- package/src/components/molecules/RegistrationSecondStep/styles.js +59 -0
- package/src/components/molecules/RegistrationThirdStep/RegistrationThirdStep.stories.js +11 -0
- package/src/components/molecules/RegistrationThirdStep/index.js +109 -0
- package/src/components/molecules/RegistrationThirdStep/styles.js +44 -0
- package/src/components/molecules/SignInLogin/index.js +181 -55
- package/src/components/molecules/SignInLogin/styles.js +1 -0
- package/src/components/molecules/VerificationCodeResetPasswordLogin/VerificationCodeResetPasswordLogin.stories.js +11 -0
- package/src/components/molecules/VerificationCodeResetPasswordLogin/index.js +78 -0
- package/src/components/molecules/VerificationCodeResetPasswordLogin/styles.js +49 -0
- package/src/components/molecules/VerificationCodeResetPasswordLogin/utils.js +56 -0
- package/src/components/organisms/ChangePassword/ChangePassword.stories.js +11 -0
- package/src/components/organisms/ChangePassword/index.js +63 -0
- package/src/components/organisms/ChangePassword/styles.js +16 -0
- package/src/index.js +7 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = exports.RegistrationSecondStepDefault = void 0;
|
|
9
|
+
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
+
|
|
12
|
+
var _index = require("./index");
|
|
13
|
+
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
|
|
16
|
+
var _default = {
|
|
17
|
+
title: "Components/molecules/RegistrationSecondStep",
|
|
18
|
+
component: _index.RegistrationSecondStep
|
|
19
|
+
};
|
|
20
|
+
exports.default = _default;
|
|
21
|
+
|
|
22
|
+
var Template = function Template(args) {
|
|
23
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.RegistrationSecondStep, (0, _objectSpread2.default)({}, args));
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
var RegistrationSecondStepDefault = Template.bind({});
|
|
27
|
+
exports.RegistrationSecondStepDefault = RegistrationSecondStepDefault;
|
|
28
|
+
RegistrationSecondStepDefault.args = {};
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.RegistrationSecondStep = void 0;
|
|
9
|
+
|
|
10
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
11
|
+
|
|
12
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/asyncToGenerator"));
|
|
13
|
+
|
|
14
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
15
|
+
|
|
16
|
+
var _styles = require("./styles");
|
|
17
|
+
|
|
18
|
+
var _GradientPanel = require("../../atoms/GradientPanel");
|
|
19
|
+
|
|
20
|
+
var _react = require("react");
|
|
21
|
+
|
|
22
|
+
var _ScreenHeader = require("../../atoms/ScreenHeader");
|
|
23
|
+
|
|
24
|
+
var _variables = require("../../../global-files/variables");
|
|
25
|
+
|
|
26
|
+
var _GeneralButton = require("../../atoms/GeneralButton");
|
|
27
|
+
|
|
28
|
+
var _LoginPasswordStrength = require("../../molecules/LoginPasswordStrength");
|
|
29
|
+
|
|
30
|
+
var _LogoImage = require("../../atoms/LogoImage");
|
|
31
|
+
|
|
32
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
33
|
+
|
|
34
|
+
var RegistrationSecondStep = function RegistrationSecondStep() {
|
|
35
|
+
var _useState = (0, _react.useState)(false),
|
|
36
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
37
|
+
emptyPassword = _useState2[0],
|
|
38
|
+
setEmptyPassword = _useState2[1];
|
|
39
|
+
|
|
40
|
+
var _useState3 = (0, _react.useState)(false),
|
|
41
|
+
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
42
|
+
emptyConfirmPassword = _useState4[0],
|
|
43
|
+
setEmptyConfirmPassword = _useState4[1];
|
|
44
|
+
|
|
45
|
+
var _useState5 = (0, _react.useState)(true),
|
|
46
|
+
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
|
47
|
+
matchPasswords = _useState6[0],
|
|
48
|
+
setMatchPasswords = _useState6[1];
|
|
49
|
+
|
|
50
|
+
var validate = /*#__PURE__*/function () {
|
|
51
|
+
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(e) {
|
|
52
|
+
var password, confirmPassword;
|
|
53
|
+
return _regenerator.default.wrap(function _callee$(_context) {
|
|
54
|
+
while (1) {
|
|
55
|
+
switch (_context.prev = _context.next) {
|
|
56
|
+
case 0:
|
|
57
|
+
e.preventDefault();
|
|
58
|
+
password = document.querySelector("#newPasswordInput").value;
|
|
59
|
+
password.length < 8 ? setEmptyPassword(true) : setEmptyPassword(false);
|
|
60
|
+
confirmPassword = document.querySelector("#confirmPasswordInput").value;
|
|
61
|
+
confirmPassword === "" ? setEmptyConfirmPassword(true) : setEmptyConfirmPassword(false);
|
|
62
|
+
|
|
63
|
+
if (password === confirmPassword) {
|
|
64
|
+
setMatchPasswords(true);
|
|
65
|
+
} else {
|
|
66
|
+
setMatchPasswords(false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
case 6:
|
|
70
|
+
case "end":
|
|
71
|
+
return _context.stop();
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}, _callee);
|
|
75
|
+
}));
|
|
76
|
+
|
|
77
|
+
return function validate(_x) {
|
|
78
|
+
return _ref.apply(this, arguments);
|
|
79
|
+
};
|
|
80
|
+
}();
|
|
81
|
+
|
|
82
|
+
var loginRight = [/*#__PURE__*/(0, _jsxRuntime.jsx)(_LogoImage.LogoImage, {}, "1"), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
83
|
+
className: "credenciales",
|
|
84
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
85
|
+
fontFamily: _variables.FontFamily.AvenirNext,
|
|
86
|
+
color: _variables.GlobalColors.s5,
|
|
87
|
+
text: "Ingresa tus credenciales"
|
|
88
|
+
})
|
|
89
|
+
}, "2"), /*#__PURE__*/(0, _jsxRuntime.jsx)(_LoginPasswordStrength.LoginPasswordStrength, {
|
|
90
|
+
emptyPassword: emptyPassword,
|
|
91
|
+
emptyConfirmPassword: emptyConfirmPassword,
|
|
92
|
+
matchPasswords: matchPasswords,
|
|
93
|
+
textTittle: "Ingresa tus credenciales"
|
|
94
|
+
}, "3"), /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
95
|
+
className: "label-terms",
|
|
96
|
+
children: "T\xE9rminos y condiciones"
|
|
97
|
+
}, "4"), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
98
|
+
className: "checkbox-terms",
|
|
99
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
100
|
+
type: "checkbox"
|
|
101
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
102
|
+
text: "Conoce nuestros termnios y condiciones de cada uno de nuestros servicios. Si tienes algunda duda o comentario escríbenos.",
|
|
103
|
+
headerType: "date-header"
|
|
104
|
+
})]
|
|
105
|
+
}, "5"), /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
106
|
+
className: "label-terms",
|
|
107
|
+
children: "Aviso de privacidad"
|
|
108
|
+
}, "6"), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
109
|
+
className: "checkbox-terms",
|
|
110
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
111
|
+
type: "checkbox"
|
|
112
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
113
|
+
text: "Todos los datos estan protegidos.",
|
|
114
|
+
headerType: "date-header"
|
|
115
|
+
})]
|
|
116
|
+
}, "7"), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
117
|
+
className: "button-end",
|
|
118
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
119
|
+
buttonType: "general-default-button",
|
|
120
|
+
label: "Enviar",
|
|
121
|
+
onClick: function onClick(e) {
|
|
122
|
+
return validate(e);
|
|
123
|
+
}
|
|
124
|
+
})
|
|
125
|
+
}, "8"), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
126
|
+
className: "progress-bar",
|
|
127
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
128
|
+
className: "progress-bar-first-step-check"
|
|
129
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
130
|
+
className: "progress-bar-second-step"
|
|
131
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
132
|
+
className: "progress-bar-registration"
|
|
133
|
+
})]
|
|
134
|
+
}, "9"), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
135
|
+
text: "Paso 2",
|
|
136
|
+
headerType: "date-header",
|
|
137
|
+
color: _variables.GlobalColors.s4
|
|
138
|
+
}, "10"), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
139
|
+
className: "new-login",
|
|
140
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("p", {
|
|
141
|
+
className: "pre-registro",
|
|
142
|
+
children: ["\xBFA\xFAn no tienes cuenta?", /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
143
|
+
children: " Reg\xEDstrate"
|
|
144
|
+
})]
|
|
145
|
+
})
|
|
146
|
+
}, "11")];
|
|
147
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
148
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_GradientPanel.GradientPanel, {
|
|
149
|
+
panelColor: _variables.GlobalColors.white,
|
|
150
|
+
componentsArray: loginRight,
|
|
151
|
+
panelType: "home-login"
|
|
152
|
+
})
|
|
153
|
+
});
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
exports.RegistrationSecondStep = RegistrationSecondStep;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.Container = void 0;
|
|
9
|
+
|
|
10
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
11
|
+
|
|
12
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
|
+
|
|
14
|
+
var _variables = require("../../../global-files/variables");
|
|
15
|
+
|
|
16
|
+
var _templateObject;
|
|
17
|
+
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n width: 50%;\n height: 100vh;\n .button-end {\n text-align: end;\n .general-default-button {\n width: 160px;\n }\n & + * {\n margin-top: 10px;\n }\n }\n .progress-bar {\n width: 100%;\n height: 8px;\n display: flex;\n justify-content: space-between;\n .progress-bar-first-step-check {\n width: 33.33%;\n background-color: ", ";\n }\n .progress-bar-second-step {\n width: 33.33%;\n background-color: rgb(196, 196, 196);\n }\n .progress-bar-registration {\n background-color: rgb(226, 226, 226);\n width: 33.33%;\n }\n }\n .date-header {\n margin-left: 33.33%;\n }\n .checkbox-terms {\n display: flex;\n margin-bottom: 5px;\n input {\n cursor: pointer;\n & + * {\n margin-left: 15px;\n }\n }\n }\n .label-terms {\n color: rgb(129, 115, 147);\n font-size: 13px;\n line-height: 24px;\n font-weight: 700;\n cursor: pointer;\n margin-left: 25px;\n & + * {\n margin-top: 5px;\n }\n }\n"])), _variables.GlobalColors.exported);
|
|
19
|
+
|
|
20
|
+
exports.Container = Container;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = exports.RegistrationThirdStepDefault = void 0;
|
|
9
|
+
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
+
|
|
12
|
+
var _index = require("./index");
|
|
13
|
+
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
|
|
16
|
+
var _default = {
|
|
17
|
+
title: "Components/molecules/RegistrationThirdStep",
|
|
18
|
+
component: _index.RegistrationThirdStep
|
|
19
|
+
};
|
|
20
|
+
exports.default = _default;
|
|
21
|
+
|
|
22
|
+
var Template = function Template(args) {
|
|
23
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.RegistrationThirdStep, (0, _objectSpread2.default)({}, args));
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
var RegistrationThirdStepDefault = Template.bind({});
|
|
27
|
+
exports.RegistrationThirdStepDefault = RegistrationThirdStepDefault;
|
|
28
|
+
RegistrationThirdStepDefault.args = {};
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.RegistrationThirdStep = void 0;
|
|
9
|
+
|
|
10
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
11
|
+
|
|
12
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/asyncToGenerator"));
|
|
13
|
+
|
|
14
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
15
|
+
|
|
16
|
+
var _styles = require("./styles");
|
|
17
|
+
|
|
18
|
+
var _GradientPanel = require("../../atoms/GradientPanel");
|
|
19
|
+
|
|
20
|
+
var _react = require("react");
|
|
21
|
+
|
|
22
|
+
var _LogoImage = require("../../atoms/LogoImage");
|
|
23
|
+
|
|
24
|
+
var _ScreenHeader = require("../../atoms/ScreenHeader");
|
|
25
|
+
|
|
26
|
+
var _variables = require("../../../global-files/variables");
|
|
27
|
+
|
|
28
|
+
var _TagAndInput = require("../../molecules/TagAndInput");
|
|
29
|
+
|
|
30
|
+
var _GeneralButton = require("../../atoms/GeneralButton");
|
|
31
|
+
|
|
32
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
33
|
+
|
|
34
|
+
var RegistrationThirdStep = function RegistrationThirdStep() {
|
|
35
|
+
var _useState = (0, _react.useState)(false),
|
|
36
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
37
|
+
emptyCommercialName = _useState2[0],
|
|
38
|
+
setEmptyCommercialName = _useState2[1];
|
|
39
|
+
|
|
40
|
+
var _useState3 = (0, _react.useState)(false),
|
|
41
|
+
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
42
|
+
emptyBussinesName = _useState4[0],
|
|
43
|
+
setEmptyBussinesName = _useState4[1];
|
|
44
|
+
|
|
45
|
+
var _useState5 = (0, _react.useState)(false),
|
|
46
|
+
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
|
47
|
+
emptyRFC = _useState6[0],
|
|
48
|
+
setEmptyRFC = _useState6[1];
|
|
49
|
+
|
|
50
|
+
var _useState7 = (0, _react.useState)(false),
|
|
51
|
+
_useState8 = (0, _slicedToArray2.default)(_useState7, 2),
|
|
52
|
+
emptyFiscalAddress = _useState8[0],
|
|
53
|
+
setEmptyFiscalAddress = _useState8[1];
|
|
54
|
+
|
|
55
|
+
var validate = /*#__PURE__*/function () {
|
|
56
|
+
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(e) {
|
|
57
|
+
var commercialName, bussinesName, RFC, FiscalAddress;
|
|
58
|
+
return _regenerator.default.wrap(function _callee$(_context) {
|
|
59
|
+
while (1) {
|
|
60
|
+
switch (_context.prev = _context.next) {
|
|
61
|
+
case 0:
|
|
62
|
+
e.preventDefault();
|
|
63
|
+
commercialName = document.querySelector("#commercialNameInput").value;
|
|
64
|
+
bussinesName = document.querySelector("#bussinesNameInput").value;
|
|
65
|
+
RFC = document.querySelector("#rfcInput").value;
|
|
66
|
+
FiscalAddress = document.querySelector("#fiscalAddressInput").value;
|
|
67
|
+
commercialName === "" ? setEmptyCommercialName(true) : setEmptyCommercialName(false);
|
|
68
|
+
bussinesName === "" ? setEmptyBussinesName(true) : setEmptyBussinesName(false);
|
|
69
|
+
RFC === "" ? setEmptyRFC(true) : setEmptyRFC(false);
|
|
70
|
+
FiscalAddress === "" ? setEmptyFiscalAddress(true) : setEmptyFiscalAddress(false);
|
|
71
|
+
|
|
72
|
+
case 9:
|
|
73
|
+
case "end":
|
|
74
|
+
return _context.stop();
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}, _callee);
|
|
78
|
+
}));
|
|
79
|
+
|
|
80
|
+
return function validate(_x) {
|
|
81
|
+
return _ref.apply(this, arguments);
|
|
82
|
+
};
|
|
83
|
+
}();
|
|
84
|
+
|
|
85
|
+
var loginRight = [/*#__PURE__*/(0, _jsxRuntime.jsx)(_LogoImage.LogoImage, {}, "1"), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
86
|
+
className: "credenciales",
|
|
87
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
88
|
+
fontFamily: _variables.FontFamily.AvenirNext,
|
|
89
|
+
color: _variables.GlobalColors.s5,
|
|
90
|
+
text: "Ingresa tus credenciales"
|
|
91
|
+
})
|
|
92
|
+
}, "2"), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
93
|
+
className: "user",
|
|
94
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
95
|
+
inputType: "text",
|
|
96
|
+
inputId: "commercialNameInput",
|
|
97
|
+
label: "Nombre comercial",
|
|
98
|
+
inputPlaceHolder: "Nombre comercial"
|
|
99
|
+
}), emptyCommercialName && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
100
|
+
children: "Ingrese el nombre comercial de la empresa"
|
|
101
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
102
|
+
inputType: "text",
|
|
103
|
+
inputId: "bussinesNameInput",
|
|
104
|
+
label: "Razón social",
|
|
105
|
+
inputPlaceHolder: "Razón social"
|
|
106
|
+
}), emptyBussinesName && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
107
|
+
children: "Ingrese la raz\xF3n social de la empresa"
|
|
108
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
109
|
+
inputType: "text",
|
|
110
|
+
inputId: "rfcInput",
|
|
111
|
+
label: "RFC",
|
|
112
|
+
inputPlaceHolder: "RFC"
|
|
113
|
+
}), emptyRFC && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
114
|
+
children: "El RFC es requerido"
|
|
115
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
116
|
+
inputType: "text",
|
|
117
|
+
inputId: "fiscalAddressInput",
|
|
118
|
+
label: "Direccion fiscal",
|
|
119
|
+
inputPlaceHolder: "Dirección fiscal"
|
|
120
|
+
}), emptyFiscalAddress && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
121
|
+
children: "Ingrese la direccion fiscal de la empresa"
|
|
122
|
+
})]
|
|
123
|
+
}, "3"), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
124
|
+
className: "button-end",
|
|
125
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
126
|
+
buttonType: "general-default-button",
|
|
127
|
+
label: "Enviar",
|
|
128
|
+
onClick: function onClick(e) {
|
|
129
|
+
return validate(e);
|
|
130
|
+
}
|
|
131
|
+
})
|
|
132
|
+
}, "4"), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
133
|
+
className: "progress-bar",
|
|
134
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
135
|
+
className: "progress-bar-step-check"
|
|
136
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
137
|
+
className: "progress-bar-registration"
|
|
138
|
+
})]
|
|
139
|
+
}, "5"), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
140
|
+
text: "Paso 3",
|
|
141
|
+
headerType: "date-header",
|
|
142
|
+
color: _variables.GlobalColors.s4
|
|
143
|
+
}, "6"), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
144
|
+
className: "new-login",
|
|
145
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("p", {
|
|
146
|
+
className: "pre-registro",
|
|
147
|
+
children: ["\xBFYa tienes una cuenta?", /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
148
|
+
children: " Inicia Sesi\xF3n"
|
|
149
|
+
})]
|
|
150
|
+
})
|
|
151
|
+
}, "7")];
|
|
152
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
153
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_GradientPanel.GradientPanel, {
|
|
154
|
+
componentsArray: loginRight,
|
|
155
|
+
panelType: "home-login",
|
|
156
|
+
panelColor: _variables.GlobalColors.white
|
|
157
|
+
})
|
|
158
|
+
});
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
exports.RegistrationThirdStep = RegistrationThirdStep;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.Container = void 0;
|
|
9
|
+
|
|
10
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
11
|
+
|
|
12
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
|
+
|
|
14
|
+
var _variables = require("../../../global-files/variables");
|
|
15
|
+
|
|
16
|
+
var _templateObject;
|
|
17
|
+
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n width: 50%;\n height: 100%;\n .user {\n .input-name-header {\n margin-top: 10px;\n }\n }\n .button-end {\n text-align: end;\n .general-default-button {\n width: 160px;\n }\n & + * {\n margin-top: 10px;\n }\n }\n .progress-bar {\n width: 100%;\n height: 8px;\n display: flex;\n justify-content: space-between;\n .progress-bar-step-check {\n width: 66.66%;\n background-color: ", ";\n }\n .progress-bar-registration {\n background-color: rgb(196, 196, 196);\n width: 33.33%;\n }\n }\n .date-header {\n margin-left: 66.66%;\n .new-login {\n & + * {\n margin-top: 20px;\n }\n }\n }\n"])), _variables.GlobalColors.exported);
|
|
19
|
+
|
|
20
|
+
exports.Container = Container;
|