contentoh-components-library 21.0.30 → 21.0.31
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/.env.development +18 -3
- package/.env.production +16 -1
- package/CHANGELOG.md +31 -33
- package/dist/assets/images/generalButton/downloadIcon.svg +3 -0
- package/dist/assets/images/modalsSVGs/attributesSent.svg +208 -0
- package/dist/assets/images/modalsSVGs/descriptionSent.svg +237 -0
- package/dist/assets/images/modalsSVGs/providerSent.svg +445 -0
- package/dist/assets/images/modalsSVGs/uploadingImages.svg +148 -0
- package/dist/components/atoms/AsignationOption/index.js +9 -5
- package/dist/components/atoms/AsignationOption/styles.js +1 -1
- package/dist/components/{molecules/SignInLogin/SignInLogin.stories.js → atoms/CharCounter/CharCounter.stories.js} +10 -7
- package/dist/components/atoms/CharCounter/index.js +22 -0
- package/dist/components/{molecules/ApproveRejetPanel → atoms/CharCounter}/styles.js +3 -1
- package/dist/components/atoms/CheckBox/index.js +4 -2
- package/dist/components/atoms/Commentary/Commentary.stories.js +1 -0
- package/dist/components/atoms/Commentary/index.js +23 -0
- package/dist/components/atoms/{VerticalSideMenuMainPage → Commentary}/styles.js +6 -1
- package/dist/components/atoms/GeneralButton/index.js +5 -0
- package/dist/components/atoms/GeneralButton/styles.js +4 -2
- package/dist/components/atoms/GeneralInput/index.js +73 -24
- package/dist/components/atoms/GeneralInput/styles.js +7 -1
- package/dist/components/atoms/GenericModal/index.js +4 -2
- package/dist/components/atoms/GenericModal/styles.js +1 -1
- package/dist/components/atoms/Input/index.js +26 -0
- package/dist/components/atoms/Input/style.js +26 -0
- package/dist/components/{organisms/ChangePassword/ChangePassword.stories.js → atoms/InputFormatter/Wysiwyg.stories.js} +9 -7
- package/dist/components/atoms/InputFormatter/index.js +185 -0
- package/dist/components/atoms/InputFormatter/styles.js +33 -0
- package/dist/components/atoms/LabelToInput/index.js +53 -0
- package/dist/components/atoms/LabelToInput/style.js +22 -0
- package/dist/components/atoms/Loading/index.js +1 -2
- package/dist/components/atoms/Loading/styles.js +8 -4
- package/dist/components/atoms/Percent/Percent.stories.js +39 -0
- package/dist/components/atoms/Percent/index.js +39 -0
- package/dist/components/atoms/Percent/styles.js +20 -0
- package/dist/components/atoms/PriorityFlag/index.js +1 -1
- package/dist/components/atoms/ProductImage/styles.js +1 -1
- package/dist/components/atoms/ProgressBar/index.js +2 -2
- package/dist/components/atoms/ProgressBar/styles.js +3 -5
- package/dist/components/atoms/ScreenHeader/index.js +1 -1
- package/dist/components/atoms/ScreenHeader/styles.js +1 -1
- package/dist/components/atoms/Select/index.js +39 -0
- package/dist/components/atoms/Select/style.js +32 -0
- package/dist/components/atoms/StatusTag/index.js +37 -2
- package/dist/components/atoms/StatusTag/styles.js +1 -1
- package/dist/components/atoms/ValidationPanel/index.js +4 -3
- package/dist/components/molecules/AvatarAndValidation/index.js +17 -7
- package/dist/components/molecules/AvatarAndValidation/styles.js +1 -1
- package/dist/components/molecules/CarouselImagesLogin/index.js +42 -40
- package/dist/components/molecules/FeaturesBar/index.js +1 -1
- package/dist/components/molecules/GalleryElement/index.js +80 -21
- package/dist/components/molecules/GalleryElement/styles.js +1 -1
- package/dist/components/molecules/GalleryHeader/index.js +28 -6
- package/dist/components/molecules/GalleryHeader/styles.js +1 -1
- package/dist/components/molecules/ImageSelector/index.js +2 -4
- package/dist/components/molecules/ProductNameHeader/index.js +1 -2
- package/dist/components/molecules/RetailerSelector/RetailerSelector.stories.js +48 -0
- package/dist/components/molecules/RetailerSelector/index.js +74 -0
- package/dist/components/{atoms/MenuCommercialRetailers → molecules/RetailerSelector}/styles.js +1 -1
- package/dist/components/molecules/StatusAsignationInfo/index.js +46 -25
- package/dist/components/molecules/StatusAsignationInfo/styles.js +1 -1
- package/dist/components/molecules/TableHeader/index.js +12 -5
- package/dist/components/molecules/TableHeader/styles.js +1 -1
- package/dist/components/molecules/TagAndInput/index.js +26 -2
- package/dist/components/molecules/TextAndGradient/TextAndGradient.stories.js +31 -0
- package/dist/components/molecules/TextAndGradient/index.js +36 -0
- package/dist/components/molecules/TextAndGradient/styles.js +18 -0
- package/dist/components/organisms/FullProductNameHeader/index.js +32 -8
- package/dist/components/organisms/FullTabsMenu/index.js +18 -5
- package/dist/components/organisms/ImageDataTable/index.js +90 -14
- package/dist/components/organisms/InputGroup/index.js +34 -13
- package/dist/components/organisms/InputGroup/styles.js +1 -1
- package/dist/components/organisms/ProductImageModal/index.js +15 -11
- package/dist/components/organisms/ProductImageModal/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +109 -347
- package/dist/components/pages/RetailerProductEdition/index.js +1589 -59
- package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
- package/dist/global-files/data.js +212 -53
- package/dist/global-files/global-styles.css +1 -0
- package/dist/global-files/variables.js +1 -0
- package/dist/index.js +30 -238
- package/package.json +12 -11
- package/src/assets/images/generalButton/downloadIcon.svg +3 -0
- package/src/assets/images/modalsSVGs/attributesSent.svg +208 -0
- package/src/assets/images/modalsSVGs/descriptionSent.svg +237 -0
- package/src/assets/images/modalsSVGs/providerSent.svg +445 -0
- package/src/assets/images/modalsSVGs/uploadingImages.svg +148 -0
- package/src/components/atoms/AsignationOption/index.js +7 -5
- package/src/components/atoms/AsignationOption/styles.js +9 -1
- package/src/components/atoms/CharCounter/CharCounter.stories.js +11 -0
- package/src/components/atoms/CharCounter/index.js +13 -0
- package/src/components/atoms/CharCounter/styles.js +10 -0
- package/src/components/atoms/CheckBox/index.js +8 -2
- package/src/components/atoms/Commentary/Commentary.stories.js +0 -0
- package/src/components/atoms/Commentary/index.js +9 -0
- package/src/components/atoms/Commentary/styles.js +16 -0
- package/src/components/atoms/GeneralButton/index.js +9 -2
- package/src/components/atoms/GeneralButton/styles.js +23 -0
- package/src/components/atoms/GeneralInput/index.js +71 -21
- package/src/components/atoms/GeneralInput/styles.js +11 -1
- package/src/components/atoms/GenericModal/index.js +2 -2
- package/src/components/atoms/GenericModal/styles.js +10 -2
- package/src/components/atoms/Input/index.js +15 -0
- package/src/components/atoms/Input/style.js +31 -0
- package/src/components/atoms/InputFormatter/Wysiwyg.stories.js +12 -0
- package/src/components/atoms/InputFormatter/index.js +141 -0
- package/src/components/atoms/InputFormatter/styles.js +40 -0
- package/src/components/atoms/LabelToInput/index.js +26 -0
- package/src/components/atoms/LabelToInput/style.js +41 -0
- package/src/components/atoms/Loading/index.js +4 -5
- package/src/components/atoms/Loading/styles.js +43 -43
- package/src/components/atoms/PriorityFlag/index.js +1 -1
- package/src/components/atoms/ProductImage/styles.js +1 -1
- package/src/components/atoms/ProgressBar/index.js +2 -2
- package/src/components/atoms/ProgressBar/styles.js +54 -3
- package/src/components/atoms/ScreenHeader/index.js +7 -3
- package/src/components/atoms/ScreenHeader/styles.js +9 -2
- package/src/components/atoms/Select/index.js +35 -0
- package/src/components/atoms/Select/style.js +76 -0
- package/src/components/atoms/StatusTag/index.js +30 -2
- package/src/components/atoms/StatusTag/styles.js +15 -3
- package/src/components/atoms/ValidationPanel/index.js +3 -3
- package/src/components/molecules/AvatarAndValidation/index.js +24 -6
- package/src/components/molecules/AvatarAndValidation/styles.js +1 -1
- package/src/components/molecules/CarouselImagesLogin/index.js +37 -34
- package/src/components/molecules/FeaturesBar/index.js +10 -7
- package/src/components/molecules/GalleryElement/index.js +75 -36
- package/src/components/molecules/GalleryElement/styles.js +38 -11
- package/src/components/molecules/GalleryHeader/index.js +14 -8
- package/src/components/molecules/GalleryHeader/styles.js +16 -0
- package/src/components/molecules/ImageSelector/index.js +2 -3
- package/src/components/molecules/ProductNameHeader/index.js +1 -2
- package/src/components/molecules/RetailerSelector/RetailerSelector.stories.js +35 -0
- package/src/components/molecules/RetailerSelector/index.js +63 -0
- package/src/components/molecules/RetailerSelector/styles.js +18 -0
- package/src/components/molecules/StatusAsignationInfo/index.js +62 -38
- package/src/components/molecules/StatusAsignationInfo/styles.js +12 -2
- package/src/components/molecules/TableHeader/index.js +16 -3
- package/src/components/molecules/TableHeader/styles.js +5 -0
- package/src/components/molecules/TagAndInput/index.js +24 -0
- package/src/components/organisms/FullProductNameHeader/index.js +28 -7
- package/src/components/organisms/FullTabsMenu/index.js +15 -3
- package/src/components/organisms/ImageDataTable/index.js +89 -11
- package/src/components/organisms/InputGroup/index.js +46 -11
- package/src/components/organisms/InputGroup/styles.js +3 -0
- package/src/components/organisms/ProductImageModal/index.js +20 -12
- package/src/components/organisms/ProductImageModal/styles.js +3 -0
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +117 -343
- package/src/components/pages/RetailerProductEdition/index.js +1225 -46
- package/src/components/pages/RetailerProductEdition/styles.js +67 -4
- package/src/global-files/data.js +156 -57
- package/src/global-files/global-styles.css +1 -0
- package/src/global-files/variables.js +1 -0
- package/src/index.js +1 -17
- package/dist/assets/images/carouselImagesLogin/login2.svg +0 -117
- package/dist/assets/images/carouselImagesLogin/login3.svg +0 -147
- package/dist/assets/images/carouselImagesLogin/loginImage.svg +0 -301
- package/dist/components/atoms/ListCommercialRetailers/ListCommercialRetailers.stories.js +0 -36
- package/dist/components/atoms/ListCommercialRetailers/index.js +0 -64
- package/dist/components/atoms/ListCommercialRetailers/styles.js +0 -20
- package/dist/components/atoms/Loading/Loading.stories.js +0 -28
- package/dist/components/atoms/MenuCommercialRetailers/MenuCommercialRetailers.stories.js +0 -37
- package/dist/components/atoms/MenuCommercialRetailers/index.js +0 -25
- package/dist/components/atoms/MenuProductImage/MenuProductImage.stories.js +0 -28
- package/dist/components/atoms/MenuProductImage/index.js +0 -88
- package/dist/components/atoms/MenuProductImage/styles.js +0 -20
- package/dist/components/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +0 -22
- package/dist/components/atoms/VerticalSideMenuMainPage/index.js +0 -49
- package/dist/components/molecules/ApproveRejetPanel/ApproveRejetPanel.stories.js +0 -25
- package/dist/components/molecules/ApproveRejetPanel/index.js +0 -49
- package/dist/components/molecules/EmailResetPasswordLogin/EmailResetPasswordLogin.stories.js +0 -28
- package/dist/components/molecules/EmailResetPasswordLogin/index.js +0 -155
- package/dist/components/molecules/EmailResetPasswordLogin/styles.js +0 -20
- package/dist/components/molecules/RegistrationFirstStep/RegistrationFirstStep.stories.js +0 -28
- package/dist/components/molecules/RegistrationFirstStep/index.js +0 -336
- package/dist/components/molecules/RegistrationFirstStep/styles.js +0 -20
- package/dist/components/molecules/RegistrationSecondStep/RegistrationSecondStep.stories.js +0 -28
- package/dist/components/molecules/RegistrationSecondStep/index.js +0 -156
- package/dist/components/molecules/RegistrationSecondStep/styles.js +0 -20
- package/dist/components/molecules/RegistrationThirdStep/RegistrationThirdStep.stories.js +0 -28
- package/dist/components/molecules/RegistrationThirdStep/index.js +0 -161
- package/dist/components/molecules/RegistrationThirdStep/styles.js +0 -20
- package/dist/components/molecules/SignInLogin/index.js +0 -292
- package/dist/components/molecules/SignInLogin/styles.js +0 -20
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/VerificationCodeResetPasswordLogin.stories.js +0 -28
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/index.js +0 -104
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/styles.js +0 -20
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/utils.js +0 -69
- package/dist/components/organisms/ChangePassword/index.js +0 -113
- package/dist/components/organisms/ChangePassword/styles.js +0 -18
- package/src/components/atoms/Loading/Loading.stories.js +0 -10
- package/src/components/molecules/EmailResetPasswordLogin/EmailResetPasswordLogin.stories.js +0 -11
- package/src/components/molecules/EmailResetPasswordLogin/index.js +0 -86
- package/src/components/molecules/EmailResetPasswordLogin/styles.js +0 -23
- package/src/components/molecules/RegistrationFirstStep/RegistrationFirstStep.stories.js +0 -11
- package/src/components/molecules/RegistrationFirstStep/index.js +0 -242
- package/src/components/molecules/RegistrationFirstStep/styles.js +0 -81
- package/src/components/molecules/RegistrationSecondStep/RegistrationSecondStep.stories.js +0 -11
- package/src/components/molecules/RegistrationSecondStep/index.js +0 -97
- package/src/components/molecules/RegistrationSecondStep/styles.js +0 -59
- package/src/components/molecules/RegistrationThirdStep/RegistrationThirdStep.stories.js +0 -11
- package/src/components/molecules/RegistrationThirdStep/index.js +0 -109
- package/src/components/molecules/RegistrationThirdStep/styles.js +0 -44
- package/src/components/molecules/SignInLogin/SignInLogin.stories.js +0 -11
- package/src/components/molecules/SignInLogin/index.js +0 -205
- package/src/components/molecules/SignInLogin/styles.js +0 -78
- package/src/components/molecules/VerificationCodeResetPasswordLogin/VerificationCodeResetPasswordLogin.stories.js +0 -11
- package/src/components/molecules/VerificationCodeResetPasswordLogin/index.js +0 -78
- package/src/components/molecules/VerificationCodeResetPasswordLogin/styles.js +0 -49
- package/src/components/molecules/VerificationCodeResetPasswordLogin/utils.js +0 -56
- package/src/components/organisms/ChangePassword/ChangePassword.stories.js +0 -11
- package/src/components/organisms/ChangePassword/index.js +0 -63
- package/src/components/organisms/ChangePassword/styles.js +0 -16
|
@@ -1,28 +0,0 @@
|
|
|
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.RegistrationFirstStepDefault = 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/RegistrationFirstStep",
|
|
18
|
-
component: _index.RegistrationFirstStep
|
|
19
|
-
};
|
|
20
|
-
exports.default = _default;
|
|
21
|
-
|
|
22
|
-
var Template = function Template(args) {
|
|
23
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.RegistrationFirstStep, (0, _objectSpread2.default)({}, args));
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
var RegistrationFirstStepDefault = Template.bind({});
|
|
27
|
-
exports.RegistrationFirstStepDefault = RegistrationFirstStepDefault;
|
|
28
|
-
RegistrationFirstStepDefault.args = {};
|
|
@@ -1,336 +0,0 @@
|
|
|
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.RegistrationFirstStep = void 0;
|
|
9
|
-
|
|
10
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
11
|
-
|
|
12
|
-
var _styles = require("./styles");
|
|
13
|
-
|
|
14
|
-
var _GradientPanel = require("../../atoms/GradientPanel");
|
|
15
|
-
|
|
16
|
-
var _react = require("react");
|
|
17
|
-
|
|
18
|
-
var _LogoImage = require("../../atoms/LogoImage");
|
|
19
|
-
|
|
20
|
-
var _ScreenHeader = require("../../atoms/ScreenHeader");
|
|
21
|
-
|
|
22
|
-
var _variables = require("../../../global-files/variables");
|
|
23
|
-
|
|
24
|
-
var _TagAndInput = require("../../molecules/TagAndInput");
|
|
25
|
-
|
|
26
|
-
var _GeneralButton = require("../../atoms/GeneralButton");
|
|
27
|
-
|
|
28
|
-
var _GeneralInput = require("../../atoms/GeneralInput");
|
|
29
|
-
|
|
30
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
31
|
-
|
|
32
|
-
var RegistrationFirstStep = function RegistrationFirstStep(props) {
|
|
33
|
-
var _useState = (0, _react.useState)(false),
|
|
34
|
-
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
35
|
-
emptyName = _useState2[0],
|
|
36
|
-
setEmptyName = _useState2[1];
|
|
37
|
-
|
|
38
|
-
var _useState3 = (0, _react.useState)(false),
|
|
39
|
-
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
40
|
-
emptyLastName = _useState4[0],
|
|
41
|
-
setEmptyLastName = _useState4[1];
|
|
42
|
-
|
|
43
|
-
var _useState5 = (0, _react.useState)(false),
|
|
44
|
-
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
|
45
|
-
emptyEmail = _useState6[0],
|
|
46
|
-
setEmptyEmail = _useState6[1];
|
|
47
|
-
|
|
48
|
-
var _useState7 = (0, _react.useState)(false),
|
|
49
|
-
_useState8 = (0, _slicedToArray2.default)(_useState7, 2),
|
|
50
|
-
emptyJob = _useState8[0],
|
|
51
|
-
setEmptyJob = _useState8[1];
|
|
52
|
-
|
|
53
|
-
var _useState9 = (0, _react.useState)(false),
|
|
54
|
-
_useState10 = (0, _slicedToArray2.default)(_useState9, 2),
|
|
55
|
-
emptyPhone = _useState10[0],
|
|
56
|
-
setEmptyPhone = _useState10[1];
|
|
57
|
-
|
|
58
|
-
var _useState11 = (0, _react.useState)(true),
|
|
59
|
-
_useState12 = (0, _slicedToArray2.default)(_useState11, 2),
|
|
60
|
-
emptyCountry = _useState12[0],
|
|
61
|
-
setEmptyCountry = _useState12[1];
|
|
62
|
-
|
|
63
|
-
var _useState13 = (0, _react.useState)(false),
|
|
64
|
-
_useState14 = (0, _slicedToArray2.default)(_useState13, 2),
|
|
65
|
-
showErrors = _useState14[0],
|
|
66
|
-
setShowErrors = _useState14[1];
|
|
67
|
-
|
|
68
|
-
var _useState15 = (0, _react.useState)(false),
|
|
69
|
-
_useState16 = (0, _slicedToArray2.default)(_useState15, 2),
|
|
70
|
-
regError = _useState16[0],
|
|
71
|
-
setRegError = _useState16[1];
|
|
72
|
-
|
|
73
|
-
var _useState17 = (0, _react.useState)(false),
|
|
74
|
-
_useState18 = (0, _slicedToArray2.default)(_useState17, 2),
|
|
75
|
-
phoneFormatError = _useState18[0],
|
|
76
|
-
setPhoneFormatError = _useState18[1];
|
|
77
|
-
|
|
78
|
-
var _useState19 = (0, _react.useState)(false),
|
|
79
|
-
_useState20 = (0, _slicedToArray2.default)(_useState19, 2),
|
|
80
|
-
emailFormatError = _useState20[0],
|
|
81
|
-
setEmailFormatError = _useState20[1];
|
|
82
|
-
|
|
83
|
-
(0, _react.useEffect)(function () {
|
|
84
|
-
JSON.parse(sessionStorage.getItem("nuevoRegistro")).name === "" && sessionStorage.removeItem("registrationError");
|
|
85
|
-
sessionStorage.getItem("registrationError") && setRegError(true);
|
|
86
|
-
|
|
87
|
-
if (sessionStorage.getItem("registrationError")) {
|
|
88
|
-
setEmptyName(false);
|
|
89
|
-
setEmptyLastName(false);
|
|
90
|
-
setEmptyEmail(false);
|
|
91
|
-
setEmptyJob(false);
|
|
92
|
-
setEmptyCountry(false);
|
|
93
|
-
setEmptyPhone(false);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
sessionStorage.getItem("resetPasswordProcess") && sessionStorage.getItem("resetPasswordProcess");
|
|
97
|
-
}, []);
|
|
98
|
-
var paisesEsp = ["Argentina", "Colombia", "Costa Rica", "Ecuador", "El Salvador", "Honduras", "México", "Panamá", "Perú"];
|
|
99
|
-
|
|
100
|
-
var updateInfo = function updateInfo(e, newValue) {
|
|
101
|
-
var nuevoUsuario = JSON.parse(sessionStorage.getItem("nuevoRegistro"));
|
|
102
|
-
|
|
103
|
-
switch (e.target.id) {
|
|
104
|
-
case "nameInput":
|
|
105
|
-
nuevoUsuario.name = newValue;
|
|
106
|
-
newValue === "" ? setEmptyName(true) : setEmptyName(false);
|
|
107
|
-
break;
|
|
108
|
-
|
|
109
|
-
case "lastNameInput":
|
|
110
|
-
nuevoUsuario.lastName = newValue;
|
|
111
|
-
newValue === "" ? setEmptyLastName(true) : setEmptyLastName(false);
|
|
112
|
-
break;
|
|
113
|
-
|
|
114
|
-
case "emailInput":
|
|
115
|
-
nuevoUsuario.email = newValue;
|
|
116
|
-
newValue === "" ? setEmptyEmail(true) : setEmptyEmail(false);
|
|
117
|
-
|
|
118
|
-
if (!/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(newValue)) {
|
|
119
|
-
setEmailFormatError(true);
|
|
120
|
-
} else {
|
|
121
|
-
setEmailFormatError(false);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
break;
|
|
125
|
-
|
|
126
|
-
case "jobInput":
|
|
127
|
-
nuevoUsuario.position = newValue;
|
|
128
|
-
newValue === "" ? setEmptyJob(true) : setEmptyJob(false);
|
|
129
|
-
break;
|
|
130
|
-
|
|
131
|
-
case "phoneInput":
|
|
132
|
-
Array.from(newValue).forEach(function (digit, i) {
|
|
133
|
-
newValue.charCodeAt(i) < 48 ? setPhoneFormatError(true) : setPhoneFormatError(false);
|
|
134
|
-
newValue.charCodeAt(i) > 57 ? setPhoneFormatError(true) : setPhoneFormatError(false);
|
|
135
|
-
});
|
|
136
|
-
nuevoUsuario.phone = "".concat(JSON.parse(sessionStorage.getItem("countryCodeSelect"))).concat(newValue);
|
|
137
|
-
newValue === "" ? setEmptyPhone(true) : setEmptyPhone(false);
|
|
138
|
-
break;
|
|
139
|
-
|
|
140
|
-
case "countrySelect":
|
|
141
|
-
nuevoUsuario.country = newValue;
|
|
142
|
-
newValue === "" || newValue === "Selecciona tu país" ? setEmptyCountry(true) : setEmptyCountry(false);
|
|
143
|
-
break;
|
|
144
|
-
|
|
145
|
-
case "countryCodeSelect":
|
|
146
|
-
sessionStorage.setItem("countryCode", JSON.stringify(newValue));
|
|
147
|
-
nuevoUsuario.phone = "".concat(JSON.parse(sessionStorage.getItem("countryCode"))).concat(document.querySelector("#phoneInput").value);
|
|
148
|
-
break;
|
|
149
|
-
|
|
150
|
-
default:
|
|
151
|
-
return;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
sessionStorage.setItem("nuevoRegistro", JSON.stringify(nuevoUsuario));
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
var validateForm = function validateForm(evt) {
|
|
158
|
-
var valid = true;
|
|
159
|
-
evt.preventDefault();
|
|
160
|
-
setShowErrors(true);
|
|
161
|
-
emptyName && (valid = false);
|
|
162
|
-
emptyLastName && (valid = false);
|
|
163
|
-
emptyEmail && (valid = false);
|
|
164
|
-
emptyJob && (valid = false);
|
|
165
|
-
emptyPhone && (valid = false);
|
|
166
|
-
emptyCountry && (valid = false);
|
|
167
|
-
phoneFormatError && (valid = false);
|
|
168
|
-
emailFormatError && (valid = false);
|
|
169
|
-
!regError && valid && props.setPaso(function (paso) {
|
|
170
|
-
return props.paso + 1;
|
|
171
|
-
});
|
|
172
|
-
regError && valid && props.setPaso(4);
|
|
173
|
-
};
|
|
174
|
-
|
|
175
|
-
var loginRight = [/*#__PURE__*/(0, _jsxRuntime.jsx)(_LogoImage.LogoImage, {}, "1"), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
176
|
-
className: "credenciales",
|
|
177
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
178
|
-
fontFamily: _variables.FontFamily.AvenirNext,
|
|
179
|
-
color: _variables.GlobalColors.s5,
|
|
180
|
-
text: "Ingresa tus credenciales"
|
|
181
|
-
})
|
|
182
|
-
}, "2"), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
183
|
-
className: "user",
|
|
184
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
185
|
-
className: "name-registration-user",
|
|
186
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
187
|
-
inputType: "text",
|
|
188
|
-
inputId: "nameInput",
|
|
189
|
-
label: "Nombre",
|
|
190
|
-
inputPlaceHolder: "Nombre",
|
|
191
|
-
defaultValue: JSON.parse(sessionStorage.getItem("nuevoRegistro")).name,
|
|
192
|
-
required: true,
|
|
193
|
-
onInput: function onInput(e) {
|
|
194
|
-
return updateInfo(e, e.target.value);
|
|
195
|
-
}
|
|
196
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
197
|
-
inputType: "text",
|
|
198
|
-
inputId: "lastNameInput",
|
|
199
|
-
label: "Apellido",
|
|
200
|
-
inputPlaceHolder: "Apellido"
|
|
201
|
-
})]
|
|
202
|
-
}), emptyName && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
203
|
-
children: "Ingrese su nombre"
|
|
204
|
-
}), emptyLastName && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
205
|
-
children: "Ingrese sus apellidos"
|
|
206
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
207
|
-
inputType: "text",
|
|
208
|
-
inputId: "emailInput",
|
|
209
|
-
label: "Correo electrónico",
|
|
210
|
-
inputPlaceHolder: "username@contentoh.com"
|
|
211
|
-
}), emptyEmail && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
212
|
-
children: "Ingrese su correo"
|
|
213
|
-
}), invalidEmail && !emptyEmail && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
214
|
-
children: "Ingrese un correo v\xE1lido"
|
|
215
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
216
|
-
inputType: "text",
|
|
217
|
-
inputId: "jobInput",
|
|
218
|
-
label: "Puesto laboral",
|
|
219
|
-
inputPlaceHolder: "Puesto dentro de la empresa"
|
|
220
|
-
}), emptyJob && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
221
|
-
children: "Ingrese su puesto"
|
|
222
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
223
|
-
text: "Teléfono",
|
|
224
|
-
headerType: "input-name-header"
|
|
225
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
226
|
-
className: "phone-registration-user",
|
|
227
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("select", {
|
|
228
|
-
name: "select",
|
|
229
|
-
className: "phone-options",
|
|
230
|
-
id: "countryCodeSelect",
|
|
231
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
232
|
-
children: "+52"
|
|
233
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
234
|
-
children: "+54"
|
|
235
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
236
|
-
children: "+57"
|
|
237
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
238
|
-
children: "+506"
|
|
239
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
240
|
-
children: "+593"
|
|
241
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
242
|
-
children: "+503"
|
|
243
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
244
|
-
children: "+504"
|
|
245
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
246
|
-
children: "+507"
|
|
247
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
248
|
-
children: "+51"
|
|
249
|
-
})]
|
|
250
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralInput.GeneralInput, {
|
|
251
|
-
inputId: "phoneInput",
|
|
252
|
-
inputType: "text",
|
|
253
|
-
inputPlaceholder: "Teléfono"
|
|
254
|
-
})]
|
|
255
|
-
}), emptyPhone && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
256
|
-
children: "Ingrese su n\xFAmero de tel\xE9fono"
|
|
257
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
258
|
-
text: "País",
|
|
259
|
-
headerType: "input-name-header"
|
|
260
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("select", {
|
|
261
|
-
name: "select",
|
|
262
|
-
className: "country-options",
|
|
263
|
-
id: "countrySelect",
|
|
264
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
265
|
-
value: "value1",
|
|
266
|
-
selected: true,
|
|
267
|
-
children: "Selecciona tu pa\xEDs"
|
|
268
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
269
|
-
value: "value2",
|
|
270
|
-
children: "Argentina"
|
|
271
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
272
|
-
value: "value3",
|
|
273
|
-
children: "Colombia"
|
|
274
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
275
|
-
value: "value2",
|
|
276
|
-
children: "Ecuador"
|
|
277
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
278
|
-
value: "value3",
|
|
279
|
-
children: "El Salvador"
|
|
280
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
281
|
-
value: "value2",
|
|
282
|
-
children: "Honduras"
|
|
283
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
284
|
-
value: "value3",
|
|
285
|
-
children: "M\xE9xico"
|
|
286
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
287
|
-
value: "value2",
|
|
288
|
-
children: "Panam\xE1"
|
|
289
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
290
|
-
value: "value3",
|
|
291
|
-
children: "Per\xFA"
|
|
292
|
-
})]
|
|
293
|
-
}), emptyEmail && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
294
|
-
children: "Seleccione su pa\xEDs"
|
|
295
|
-
})]
|
|
296
|
-
}, "3"), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
297
|
-
className: "button-end",
|
|
298
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
299
|
-
buttonType: "general-default-button",
|
|
300
|
-
label: "Enviar",
|
|
301
|
-
onClick: function onClick(e) {
|
|
302
|
-
return validate(e);
|
|
303
|
-
}
|
|
304
|
-
})
|
|
305
|
-
}, "4"), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
306
|
-
className: "progress-bar",
|
|
307
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
308
|
-
className: "progress-bar-first-step"
|
|
309
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
310
|
-
className: "progress-bar-registration"
|
|
311
|
-
})]
|
|
312
|
-
}, "5"), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
313
|
-
text: "Paso 1",
|
|
314
|
-
headerType: "date-header",
|
|
315
|
-
color: _variables.GlobalColors.s4
|
|
316
|
-
}, "6"), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
317
|
-
className: "new-login",
|
|
318
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("p", {
|
|
319
|
-
className: "pre-registro",
|
|
320
|
-
children: ["\xBFYa tienes una cuenta?", /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
321
|
-
children: " Inicia Sesi\xF3n"
|
|
322
|
-
})]
|
|
323
|
-
})
|
|
324
|
-
}, "7")];
|
|
325
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
326
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
327
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_GradientPanel.GradientPanel, {
|
|
328
|
-
componentsArray: loginRight,
|
|
329
|
-
panelType: "home-login",
|
|
330
|
-
panelColor: _variables.GlobalColors.white
|
|
331
|
-
})
|
|
332
|
-
})
|
|
333
|
-
});
|
|
334
|
-
};
|
|
335
|
-
|
|
336
|
-
exports.RegistrationFirstStep = RegistrationFirstStep;
|
|
@@ -1,20 +0,0 @@
|
|
|
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 .user {\n .name-registration-user {\n display: flex;\n justify-content: space-between;\n input {\n width: 160px;\n }\n }\n .input-name-header {\n margin-bottom: 4px;\n margin-top: 12px;\n }\n .phone-registration-user {\n display: flex;\n justify-content: space-between;\n .phone-options {\n width: 80px;\n }\n input {\n width: 100%;\n }\n & + * {\n margin-top: 10px;\n }\n }\n .country-options,\n .phone-options {\n width: 100%;\n border: 1px solid ", ";\n font-family: ", ";\n color: ", ";\n font-weight: normal;\n font-size: 12px;\n line-height: 15px;\n padding: 10px;\n outline: none;\n border-radius: 2px;\n resize: none;\n &:focus {\n border: 1px solid ", ";\n }\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-first-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: 66.66%;\n }\n }\n .date-header {\n .new-login {\n & + * {\n margin-top: 20px;\n }\n }\n }\n"])), _variables.GlobalColors.s2, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s4, _variables.GlobalColors.magenta_s2);
|
|
19
|
-
|
|
20
|
-
exports.Container = Container;
|
|
@@ -1,28 +0,0 @@
|
|
|
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 = {};
|
|
@@ -1,156 +0,0 @@
|
|
|
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;
|
|
@@ -1,20 +0,0 @@
|
|
|
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;
|
|
@@ -1,28 +0,0 @@
|
|
|
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 = {};
|