contentoh-components-library 21.0.46 → 21.0.49
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/styles.js +1 -1
- package/dist/components/molecules/RegistrationFirstStep/index.js +1 -0
- package/dist/components/molecules/RegistrationFirstStep/styles.js +1 -1
- package/dist/components/molecules/SignInLoginCreationApp/index.js +59 -65
- package/dist/components/molecules/SignInLoginCreationApp/styles.js +1 -1
- package/dist/index.js +28 -15
- package/package.json +1 -1
- package/src/components/atoms/Loading/styles.js +2 -2
- package/src/components/molecules/RegistrationFirstStep/index.js +9 -7
- package/src/components/molecules/RegistrationFirstStep/styles.js +3 -0
- package/src/components/molecules/SignInLoginCreationApp/index.js +55 -64
- package/src/components/molecules/SignInLoginCreationApp/styles.js +70 -0
- package/src/index.js +1 -0
|
@@ -13,6 +13,6 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
13
13
|
|
|
14
14
|
var _templateObject;
|
|
15
15
|
|
|
16
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n justify-content: center;\n align-items: center;\n height: 100vh;\n width: 50%;\n position: relative;\n img {\n width:
|
|
16
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n justify-content: center;\n align-items: center;\n height: 100vh;\n width: 50%;\n position: relative;\n img {\n width: 75% !important;\n position: absolute;\n bottom: 55%;\n left: 10%;\n }\n .loader {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 10%;\n width: 50%;\n position: absolute;\n bottom: 45%;\n left:25%;\n span {\n display: inline-block;\n border-radius: 100%;\n margin-left: 5px;\n opacity: 1;\n }\n .first {\n background-color: #ff75cf;\n }\n .second {\n background-color: #e33aa9;\n }\n .third {\n background-color: #b12d84;\n }\n span:nth-child(1) {\n width: 16px;\n height: 16px;\n animation: opacitychange 1s ease-in-out infinite;\n }\n span:nth-child(2) {\n width: 18px;\n height: 18px;\n\n animation: opacitychange 1s ease-in-out 0.33s infinite;\n }\n span:nth-child(3) {\n width: 20px;\n height: 20px;\n\n animation: opacitychange 1s ease-in-out 0.66s infinite;\n }\n @keyframes opacitychange {\n 0%,\n 100% {\n opacity: 0;\n }\n 60% {\n opacity: 1;\n }\n }\n }\n"])));
|
|
17
17
|
|
|
18
18
|
exports.Container = Container;
|
|
@@ -163,6 +163,7 @@ var RegistrationFirstStep = function RegistrationFirstStep(props) {
|
|
|
163
163
|
}), emptyName && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
164
164
|
children: "Ingrese su nombre"
|
|
165
165
|
}), emptyLastName && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
166
|
+
className: "lastname",
|
|
166
167
|
children: "Ingrese sus apellidos"
|
|
167
168
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
168
169
|
inputType: "text",
|
|
@@ -15,6 +15,6 @@ var _variables = require("../../../global-files/variables");
|
|
|
15
15
|
|
|
16
16
|
var _templateObject;
|
|
17
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 .pre-registro {\n cursor: pointer;\n }\n"])), _variables.GlobalColors.s2, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s4, _variables.GlobalColors.magenta_s2);
|
|
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 .lastname {\n margin-left: 69%;\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 .pre-registro {\n cursor: pointer;\n }\n"])), _variables.GlobalColors.s2, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s4, _variables.GlobalColors.magenta_s2);
|
|
19
19
|
|
|
20
20
|
exports.Container = Container;
|
|
@@ -35,8 +35,6 @@ var _reactRouterDom = require("react-router-dom");
|
|
|
35
35
|
|
|
36
36
|
var _axios = _interopRequireDefault(require("axios"));
|
|
37
37
|
|
|
38
|
-
var _index5 = require("../../atoms/GradientPanel/index");
|
|
39
|
-
|
|
40
38
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
41
39
|
|
|
42
40
|
var SignInLoginCreationApp = function SignInLoginCreationApp(props) {
|
|
@@ -200,71 +198,67 @@ var SignInLoginCreationApp = function SignInLoginCreationApp(props) {
|
|
|
200
198
|
(0, _react.useEffect)(function () {
|
|
201
199
|
if (upgradePlanRedirect) setLoading(false);
|
|
202
200
|
}, [upgradePlanRedirect]);
|
|
203
|
-
var loginRight = [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
204
|
-
className: "main-container",
|
|
205
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.LogoImage, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
206
|
-
className: "credenciales",
|
|
207
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.ScreenHeader, {
|
|
208
|
-
fontFamily: _variables.FontFamily.AvenirNext,
|
|
209
|
-
color: _variables.GlobalColors.s5,
|
|
210
|
-
text: "Ingresa tus credenciales"
|
|
211
|
-
})
|
|
212
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
213
|
-
className: "user",
|
|
214
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
215
|
-
inputType: "text",
|
|
216
|
-
label: "Nombre de usuario",
|
|
217
|
-
inputPlaceHolder: "username@contentoh.com",
|
|
218
|
-
inputId: "emailInput"
|
|
219
|
-
}), showErrors && emptyEmail && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
220
|
-
children: "Ingrese su correo"
|
|
221
|
-
}), invalidEmail && !emptyEmail && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
222
|
-
children: "Ingrese un correo v\xE1lido"
|
|
223
|
-
})]
|
|
224
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
225
|
-
className: "password",
|
|
226
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
227
|
-
inputType: "password",
|
|
228
|
-
label: "Contraseña",
|
|
229
|
-
inputPlaceHolder: "Escribe tu contraseña",
|
|
230
|
-
inputId: "passwordInput"
|
|
231
|
-
}), showErrors && emptyPassword && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
232
|
-
children: "Ingrese su contrase\xF1a"
|
|
233
|
-
})]
|
|
234
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
235
|
-
className: "select",
|
|
236
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index4.CheckBox, {
|
|
237
|
-
label: "Mantener sesión activada",
|
|
238
|
-
id: "chk-default",
|
|
239
|
-
className: "active-left"
|
|
240
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
241
|
-
onClick: function onClick() {
|
|
242
|
-
return props.setPaso(10);
|
|
243
|
-
},
|
|
244
|
-
className: "active-right",
|
|
245
|
-
children: "Olvide mi contrase\xF1a"
|
|
246
|
-
}), showErrors && signInError === "NotAuthorizedException" && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
247
|
-
children: "Correo o contrase\xF1a incorrectos"
|
|
248
|
-
}), showErrors && signInError === "Error" && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
249
|
-
children: "Ha habido un problema al iniciar sesi\xF3n"
|
|
250
|
-
})]
|
|
251
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
252
|
-
className: "button-right",
|
|
253
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.Button, {
|
|
254
|
-
buttonType: "general-default-button",
|
|
255
|
-
label: "Iniciar sesión",
|
|
256
|
-
onClick: function onClick(e) {
|
|
257
|
-
return validate(e);
|
|
258
|
-
}
|
|
259
|
-
})
|
|
260
|
-
})]
|
|
261
|
-
})];
|
|
262
201
|
return loading ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Loading.Loading, {}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
263
202
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
203
|
+
className: "home-login",
|
|
204
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
205
|
+
className: "main-container",
|
|
206
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.LogoImage, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
207
|
+
className: "credenciales",
|
|
208
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.ScreenHeader, {
|
|
209
|
+
fontFamily: _variables.FontFamily.AvenirNext,
|
|
210
|
+
color: _variables.GlobalColors.s5,
|
|
211
|
+
text: "Ingresa tus credenciales"
|
|
212
|
+
})
|
|
213
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
214
|
+
className: "user",
|
|
215
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
216
|
+
inputType: "text",
|
|
217
|
+
label: "Nombre de usuario",
|
|
218
|
+
inputPlaceHolder: "username@contentoh.com",
|
|
219
|
+
inputId: "emailInput"
|
|
220
|
+
})
|
|
221
|
+
}), showErrors && emptyEmail && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
222
|
+
children: "Ingrese su correo"
|
|
223
|
+
}), invalidEmail && !emptyEmail && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
224
|
+
children: "Ingrese un correo v\xE1lido"
|
|
225
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
226
|
+
className: "password",
|
|
227
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
228
|
+
inputType: "password",
|
|
229
|
+
label: "Contraseña",
|
|
230
|
+
inputPlaceHolder: "Escribe tu contraseña",
|
|
231
|
+
inputId: "passwordInput"
|
|
232
|
+
})
|
|
233
|
+
}), showErrors && emptyPassword && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
234
|
+
children: "Ingrese su contrase\xF1a"
|
|
235
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
236
|
+
className: "select",
|
|
237
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index4.CheckBox, {
|
|
238
|
+
label: "Mantener sesión activada",
|
|
239
|
+
id: "chk-default",
|
|
240
|
+
className: "active-left"
|
|
241
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
242
|
+
onClick: function onClick() {
|
|
243
|
+
return props.setPaso(10);
|
|
244
|
+
},
|
|
245
|
+
className: "active-right",
|
|
246
|
+
children: "Olvide mi contrase\xF1a"
|
|
247
|
+
})]
|
|
248
|
+
}), showErrors && signInError === "NotAuthorizedException" && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
249
|
+
children: "Correo o contrase\xF1a incorrectos"
|
|
250
|
+
}), showErrors && signInError === "Error" && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
251
|
+
children: "Ha habido un problema al iniciar sesi\xF3n"
|
|
252
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
253
|
+
className: "button-right",
|
|
254
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.Button, {
|
|
255
|
+
buttonType: "general-default-button",
|
|
256
|
+
label: "Iniciar sesión",
|
|
257
|
+
onClick: function onClick(e) {
|
|
258
|
+
return validate(e);
|
|
259
|
+
}
|
|
260
|
+
})
|
|
261
|
+
})]
|
|
268
262
|
})
|
|
269
263
|
}), upgradePlanRedirect && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactRouterDom.Redirect, {
|
|
270
264
|
to: {
|
|
@@ -15,6 +15,6 @@ var _variables = require("../../../global-files/variables");
|
|
|
15
15
|
|
|
16
16
|
var _templateObject;
|
|
17
17
|
|
|
18
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background: \"white\";\n display: flex;\n height: 100vh;\n width: 50%;\n"])));
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background: \"white\";\n display: flex;\n height: 100vh;\n width: 50%;\n justify-content: center;\n align-items: center;\n label {\n color: red;\n margin-top: 3px;\n margin-left: 15px;\n font-family: ", ";\n font-size: 11px;\n & + * {\n margin-top: 12px;\n }\n }\n\n &.home-login {\n .credenciales {\n & + * {\n margin-top: 30px;\n }\n }\n .user {\n & + * {\n margin-top: 20px;\n }\n }\n .password {\n & + * {\n margin-top: 20px;\n }\n }\n .select {\n display: flex;\n justify-content: space-between;\n .active-right {\n font-family: ", ";\n font-weight: 500;\n font-size: 13px;\n line-height: 24px;\n letter-spacing: -0.015em;\n color: ", ";\n cursor: pointer;\n }\n & + * {\n margin-top: 50px;\n }\n }\n .button-right {\n text-align: right;\n & + * {\n margin-top: 55px;\n }\n }\n .new-login {\n p {\n font-family: ", ";\n text-align: right;\n font-weight: 500;\n font-size: 13px;\n line-height: 24px;\n color: ", ";\n cursor: pointer;\n span {\n color: ", ";\n }\n }\n }\n }\n .main-container {\n max-width: 80%;\n max-height: 80%;\n }\n"])), _variables.FontFamily.Raleway_700, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s5, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s5, _variables.GlobalColors.secondary_magenta);
|
|
19
19
|
|
|
20
20
|
exports.Container = Container;
|
package/dist/index.js
CHANGED
|
@@ -472,7 +472,7 @@ Object.keys(_index34).forEach(function (key) {
|
|
|
472
472
|
});
|
|
473
473
|
});
|
|
474
474
|
|
|
475
|
-
var _index35 = require("./components/molecules/
|
|
475
|
+
var _index35 = require("./components/molecules/SignInLoginCreationApp/index");
|
|
476
476
|
|
|
477
477
|
Object.keys(_index35).forEach(function (key) {
|
|
478
478
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -485,7 +485,7 @@ Object.keys(_index35).forEach(function (key) {
|
|
|
485
485
|
});
|
|
486
486
|
});
|
|
487
487
|
|
|
488
|
-
var _index36 = require("./components/molecules/
|
|
488
|
+
var _index36 = require("./components/molecules/StatusAsignationInfo/index");
|
|
489
489
|
|
|
490
490
|
Object.keys(_index36).forEach(function (key) {
|
|
491
491
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -498,7 +498,7 @@ Object.keys(_index36).forEach(function (key) {
|
|
|
498
498
|
});
|
|
499
499
|
});
|
|
500
500
|
|
|
501
|
-
var _index37 = require("./components/molecules/
|
|
501
|
+
var _index37 = require("./components/molecules/TableHeader/index");
|
|
502
502
|
|
|
503
503
|
Object.keys(_index37).forEach(function (key) {
|
|
504
504
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -511,7 +511,7 @@ Object.keys(_index37).forEach(function (key) {
|
|
|
511
511
|
});
|
|
512
512
|
});
|
|
513
513
|
|
|
514
|
-
var _index38 = require("./components/molecules/
|
|
514
|
+
var _index38 = require("./components/molecules/TableRow/index");
|
|
515
515
|
|
|
516
516
|
Object.keys(_index38).forEach(function (key) {
|
|
517
517
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -524,7 +524,7 @@ Object.keys(_index38).forEach(function (key) {
|
|
|
524
524
|
});
|
|
525
525
|
});
|
|
526
526
|
|
|
527
|
-
var _index39 = require("./components/molecules/
|
|
527
|
+
var _index39 = require("./components/molecules/TabsMenu/index");
|
|
528
528
|
|
|
529
529
|
Object.keys(_index39).forEach(function (key) {
|
|
530
530
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -537,7 +537,7 @@ Object.keys(_index39).forEach(function (key) {
|
|
|
537
537
|
});
|
|
538
538
|
});
|
|
539
539
|
|
|
540
|
-
var _index40 = require("./components/molecules/
|
|
540
|
+
var _index40 = require("./components/molecules/TagAndInput/index");
|
|
541
541
|
|
|
542
542
|
Object.keys(_index40).forEach(function (key) {
|
|
543
543
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -550,7 +550,7 @@ Object.keys(_index40).forEach(function (key) {
|
|
|
550
550
|
});
|
|
551
551
|
});
|
|
552
552
|
|
|
553
|
-
var _index41 = require("./components/
|
|
553
|
+
var _index41 = require("./components/molecules/VerificationCodeResetPasswordLogin/index");
|
|
554
554
|
|
|
555
555
|
Object.keys(_index41).forEach(function (key) {
|
|
556
556
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -563,7 +563,7 @@ Object.keys(_index41).forEach(function (key) {
|
|
|
563
563
|
});
|
|
564
564
|
});
|
|
565
565
|
|
|
566
|
-
var _index42 = require("./components/organisms/
|
|
566
|
+
var _index42 = require("./components/organisms/ChangePassword/index");
|
|
567
567
|
|
|
568
568
|
Object.keys(_index42).forEach(function (key) {
|
|
569
569
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -576,7 +576,7 @@ Object.keys(_index42).forEach(function (key) {
|
|
|
576
576
|
});
|
|
577
577
|
});
|
|
578
578
|
|
|
579
|
-
var _index43 = require("./components/organisms/
|
|
579
|
+
var _index43 = require("./components/organisms/Fullplan/index");
|
|
580
580
|
|
|
581
581
|
Object.keys(_index43).forEach(function (key) {
|
|
582
582
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -589,7 +589,7 @@ Object.keys(_index43).forEach(function (key) {
|
|
|
589
589
|
});
|
|
590
590
|
});
|
|
591
591
|
|
|
592
|
-
var _index44 = require("./components/organisms/
|
|
592
|
+
var _index44 = require("./components/organisms/FullProductNameHeader/index");
|
|
593
593
|
|
|
594
594
|
Object.keys(_index44).forEach(function (key) {
|
|
595
595
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -602,7 +602,7 @@ Object.keys(_index44).forEach(function (key) {
|
|
|
602
602
|
});
|
|
603
603
|
});
|
|
604
604
|
|
|
605
|
-
var _index45 = require("./components/organisms/
|
|
605
|
+
var _index45 = require("./components/organisms/FullTabsMenu/index");
|
|
606
606
|
|
|
607
607
|
Object.keys(_index45).forEach(function (key) {
|
|
608
608
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -615,7 +615,7 @@ Object.keys(_index45).forEach(function (key) {
|
|
|
615
615
|
});
|
|
616
616
|
});
|
|
617
617
|
|
|
618
|
-
var _index46 = require("./components/organisms/
|
|
618
|
+
var _index46 = require("./components/organisms/ImageDataTable/index");
|
|
619
619
|
|
|
620
620
|
Object.keys(_index46).forEach(function (key) {
|
|
621
621
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -628,7 +628,7 @@ Object.keys(_index46).forEach(function (key) {
|
|
|
628
628
|
});
|
|
629
629
|
});
|
|
630
630
|
|
|
631
|
-
var _index47 = require("./components/organisms/
|
|
631
|
+
var _index47 = require("./components/organisms/ImagePreviewer/index");
|
|
632
632
|
|
|
633
633
|
Object.keys(_index47).forEach(function (key) {
|
|
634
634
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -641,7 +641,7 @@ Object.keys(_index47).forEach(function (key) {
|
|
|
641
641
|
});
|
|
642
642
|
});
|
|
643
643
|
|
|
644
|
-
var _index48 = require("./components/organisms/
|
|
644
|
+
var _index48 = require("./components/organisms/ImagesGroup/index");
|
|
645
645
|
|
|
646
646
|
Object.keys(_index48).forEach(function (key) {
|
|
647
647
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -654,7 +654,7 @@ Object.keys(_index48).forEach(function (key) {
|
|
|
654
654
|
});
|
|
655
655
|
});
|
|
656
656
|
|
|
657
|
-
var _index49 = require("./components/organisms/
|
|
657
|
+
var _index49 = require("./components/organisms/InputGroup/index");
|
|
658
658
|
|
|
659
659
|
Object.keys(_index49).forEach(function (key) {
|
|
660
660
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -667,6 +667,19 @@ Object.keys(_index49).forEach(function (key) {
|
|
|
667
667
|
});
|
|
668
668
|
});
|
|
669
669
|
|
|
670
|
+
var _index50 = require("./components/organisms/ProductImageModal/index");
|
|
671
|
+
|
|
672
|
+
Object.keys(_index50).forEach(function (key) {
|
|
673
|
+
if (key === "default" || key === "__esModule") return;
|
|
674
|
+
if (key in exports && exports[key] === _index50[key]) return;
|
|
675
|
+
Object.defineProperty(exports, key, {
|
|
676
|
+
enumerable: true,
|
|
677
|
+
get: function get() {
|
|
678
|
+
return _index50[key];
|
|
679
|
+
}
|
|
680
|
+
});
|
|
681
|
+
});
|
|
682
|
+
|
|
670
683
|
var _ChangePasswordLogin = require("./components/pages/ChangePasswordLogin");
|
|
671
684
|
|
|
672
685
|
Object.keys(_ChangePasswordLogin).forEach(function (key) {
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@ export const Container = styled.div`
|
|
|
7
7
|
width: 50%;
|
|
8
8
|
position: relative;
|
|
9
9
|
img {
|
|
10
|
-
width:
|
|
10
|
+
width: 75% !important;
|
|
11
11
|
position: absolute;
|
|
12
12
|
bottom: 55%;
|
|
13
13
|
left: 10%;
|
|
@@ -20,7 +20,7 @@ export const Container = styled.div`
|
|
|
20
20
|
width: 50%;
|
|
21
21
|
position: absolute;
|
|
22
22
|
bottom: 45%;
|
|
23
|
-
left:
|
|
23
|
+
left:25%;
|
|
24
24
|
span {
|
|
25
25
|
display: inline-block;
|
|
26
26
|
border-radius: 100%;
|
|
@@ -36,12 +36,12 @@ export const RegistrationFirstStep = (props) => {
|
|
|
36
36
|
}, []);
|
|
37
37
|
const validate = (evt) => {
|
|
38
38
|
const name = document.querySelector("#nameInput").value;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
39
|
+
const lastName = document.querySelector("#lastNameInput").value;
|
|
40
|
+
const email = document.querySelector("#emailInput").value;
|
|
41
|
+
const job = document.querySelector("#jobInput").value;
|
|
42
|
+
const phone = document.querySelector("#phoneInput").value;
|
|
43
|
+
const country = document.querySelector("#countrySelect").value;
|
|
44
|
+
const countryCode = document.querySelector("#countryCodeSelect").value;
|
|
45
45
|
let valid = true;
|
|
46
46
|
evt.preventDefault();
|
|
47
47
|
name === "" ? setEmptyName(true) : setEmptyName(false);
|
|
@@ -122,7 +122,9 @@ export const RegistrationFirstStep = (props) => {
|
|
|
122
122
|
/>
|
|
123
123
|
</div>
|
|
124
124
|
{emptyName && <label>Ingrese su nombre</label>}
|
|
125
|
-
{emptyLastName &&
|
|
125
|
+
{emptyLastName && (
|
|
126
|
+
<label className="lastname">Ingrese sus apellidos</label>
|
|
127
|
+
)}
|
|
126
128
|
<TagAndInput
|
|
127
129
|
inputType={"text"}
|
|
128
130
|
inputId={"emailInput"}
|
|
@@ -9,7 +9,6 @@ import { useState, useEffect } from "react";
|
|
|
9
9
|
import { Loading } from "../../atoms/Loading";
|
|
10
10
|
import { Redirect } from "react-router-dom";
|
|
11
11
|
import axios from "axios";
|
|
12
|
-
import { GradientPanel } from "../../atoms/GradientPanel/index";
|
|
13
12
|
|
|
14
13
|
export const SignInLoginCreationApp = (props) => {
|
|
15
14
|
const [emptyEmail, setEmptyEmail] = useState(false);
|
|
@@ -111,80 +110,72 @@ export const SignInLoginCreationApp = (props) => {
|
|
|
111
110
|
}
|
|
112
111
|
}
|
|
113
112
|
};
|
|
114
|
-
|
|
115
113
|
useEffect(() => {
|
|
116
114
|
sessionStorage.getItem("resetPasswordProcess") &&
|
|
117
115
|
sessionStorage.removeItem("resetPasswordProcess");
|
|
118
116
|
}, []);
|
|
119
|
-
|
|
120
117
|
useEffect(() => {
|
|
121
118
|
if (upgradePlanRedirect) setLoading(false);
|
|
122
119
|
}, [upgradePlanRedirect]);
|
|
123
|
-
|
|
124
|
-
const loginRight = [
|
|
125
|
-
<div className="main-container">
|
|
126
|
-
<LogoImage />
|
|
127
|
-
<div className="credenciales">
|
|
128
|
-
<ScreenHeader
|
|
129
|
-
fontFamily={FontFamily.AvenirNext}
|
|
130
|
-
color={GlobalColors.s5}
|
|
131
|
-
text={"Ingresa tus credenciales"}
|
|
132
|
-
/>
|
|
133
|
-
</div>
|
|
134
|
-
<div className="user">
|
|
135
|
-
<TagAndInput
|
|
136
|
-
inputType={"text"}
|
|
137
|
-
label={"Nombre de usuario"}
|
|
138
|
-
inputPlaceHolder={"username@contentoh.com"}
|
|
139
|
-
inputId={"emailInput"}
|
|
140
|
-
/>
|
|
141
|
-
{showErrors && emptyEmail && <label>Ingrese su correo</label>}
|
|
142
|
-
{invalidEmail && !emptyEmail && <label>Ingrese un correo válido</label>}
|
|
143
|
-
</div>
|
|
144
|
-
<div className="password">
|
|
145
|
-
<TagAndInput
|
|
146
|
-
inputType={"password"}
|
|
147
|
-
label={"Contraseña"}
|
|
148
|
-
inputPlaceHolder={"Escribe tu contraseña"}
|
|
149
|
-
inputId={"passwordInput"}
|
|
150
|
-
/>
|
|
151
|
-
{showErrors && emptyPassword && <label>Ingrese su contraseña</label>}
|
|
152
|
-
</div>
|
|
153
|
-
<div className="select">
|
|
154
|
-
<CheckBox
|
|
155
|
-
label={"Mantener sesión activada"}
|
|
156
|
-
id={"chk-default"}
|
|
157
|
-
className="active-left"
|
|
158
|
-
/>
|
|
159
|
-
<p onClick={() => props.setPaso(10)} className="active-right">
|
|
160
|
-
Olvide mi contraseña
|
|
161
|
-
</p>
|
|
162
|
-
{showErrors && signInError === "NotAuthorizedException" && (
|
|
163
|
-
<label>Correo o contraseña incorrectos</label>
|
|
164
|
-
)}
|
|
165
|
-
{showErrors && signInError === "Error" && (
|
|
166
|
-
<label>Ha habido un problema al iniciar sesión</label>
|
|
167
|
-
)}
|
|
168
|
-
</div>
|
|
169
|
-
<div className="button-right">
|
|
170
|
-
<Button
|
|
171
|
-
buttonType={"general-default-button"}
|
|
172
|
-
label={"Iniciar sesión"}
|
|
173
|
-
onClick={(e) => validate(e)}
|
|
174
|
-
/>
|
|
175
|
-
</div>
|
|
176
|
-
</div>,
|
|
177
|
-
];
|
|
178
120
|
return loading ? (
|
|
179
121
|
<Loading />
|
|
180
122
|
) : (
|
|
181
123
|
<>
|
|
182
|
-
<Container>
|
|
183
|
-
<
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
124
|
+
<Container className={"home-login"}>
|
|
125
|
+
<div className="main-container">
|
|
126
|
+
<LogoImage />
|
|
127
|
+
<div className="credenciales">
|
|
128
|
+
<ScreenHeader
|
|
129
|
+
fontFamily={FontFamily.AvenirNext}
|
|
130
|
+
color={GlobalColors.s5}
|
|
131
|
+
text={"Ingresa tus credenciales"}
|
|
132
|
+
/>
|
|
133
|
+
</div>
|
|
134
|
+
<div className="user">
|
|
135
|
+
<TagAndInput
|
|
136
|
+
inputType={"text"}
|
|
137
|
+
label={"Nombre de usuario"}
|
|
138
|
+
inputPlaceHolder={"username@contentoh.com"}
|
|
139
|
+
inputId={"emailInput"}
|
|
140
|
+
/>
|
|
141
|
+
</div>
|
|
142
|
+
{showErrors && emptyEmail && <label>Ingrese su correo</label>}
|
|
143
|
+
{invalidEmail && !emptyEmail && (
|
|
144
|
+
<label>Ingrese un correo válido</label>
|
|
145
|
+
)}
|
|
146
|
+
<div className="password">
|
|
147
|
+
<TagAndInput
|
|
148
|
+
inputType={"password"}
|
|
149
|
+
label={"Contraseña"}
|
|
150
|
+
inputPlaceHolder={"Escribe tu contraseña"}
|
|
151
|
+
inputId={"passwordInput"}
|
|
152
|
+
/>
|
|
153
|
+
</div>
|
|
154
|
+
{showErrors && emptyPassword && <label>Ingrese su contraseña</label>}
|
|
155
|
+
<div className="select">
|
|
156
|
+
<CheckBox
|
|
157
|
+
label={"Mantener sesión activada"}
|
|
158
|
+
id={"chk-default"}
|
|
159
|
+
className="active-left"
|
|
160
|
+
/>
|
|
161
|
+
<p onClick={() => props.setPaso(10)} className="active-right">
|
|
162
|
+
Olvide mi contraseña
|
|
163
|
+
</p>
|
|
164
|
+
</div>
|
|
165
|
+
{showErrors && signInError === "NotAuthorizedException" && (
|
|
166
|
+
<label>Correo o contraseña incorrectos</label>
|
|
167
|
+
)}
|
|
168
|
+
{showErrors && signInError === "Error" && (
|
|
169
|
+
<label>Ha habido un problema al iniciar sesión</label>
|
|
170
|
+
)}
|
|
171
|
+
<div className="button-right">
|
|
172
|
+
<Button
|
|
173
|
+
buttonType={"general-default-button"}
|
|
174
|
+
label={"Iniciar sesión"}
|
|
175
|
+
onClick={(e) => validate(e)}
|
|
176
|
+
/>
|
|
177
|
+
</div>
|
|
178
|
+
</div>
|
|
188
179
|
</Container>
|
|
189
180
|
{upgradePlanRedirect && <Redirect to={{ pathname: "/dashboard" }} />}
|
|
190
181
|
</>
|
|
@@ -6,4 +6,74 @@ export const Container = styled.div`
|
|
|
6
6
|
display: flex;
|
|
7
7
|
height: 100vh;
|
|
8
8
|
width: 50%;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
align-items: center;
|
|
11
|
+
label {
|
|
12
|
+
color: red;
|
|
13
|
+
margin-top: 3px;
|
|
14
|
+
margin-left: 15px;
|
|
15
|
+
font-family: ${FontFamily.Raleway_700};
|
|
16
|
+
font-size: 11px;
|
|
17
|
+
& + * {
|
|
18
|
+
margin-top: 12px;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&.home-login {
|
|
23
|
+
.credenciales {
|
|
24
|
+
& + * {
|
|
25
|
+
margin-top: 30px;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
.user {
|
|
29
|
+
& + * {
|
|
30
|
+
margin-top: 20px;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
.password {
|
|
34
|
+
& + * {
|
|
35
|
+
margin-top: 20px;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
.select {
|
|
39
|
+
display: flex;
|
|
40
|
+
justify-content: space-between;
|
|
41
|
+
.active-right {
|
|
42
|
+
font-family: ${FontFamily.AvenirNext};
|
|
43
|
+
font-weight: 500;
|
|
44
|
+
font-size: 13px;
|
|
45
|
+
line-height: 24px;
|
|
46
|
+
letter-spacing: -0.015em;
|
|
47
|
+
color: ${GlobalColors.s5};
|
|
48
|
+
cursor: pointer;
|
|
49
|
+
}
|
|
50
|
+
& + * {
|
|
51
|
+
margin-top: 50px;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
.button-right {
|
|
55
|
+
text-align: right;
|
|
56
|
+
& + * {
|
|
57
|
+
margin-top: 55px;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
.new-login {
|
|
61
|
+
p {
|
|
62
|
+
font-family: ${FontFamily.AvenirNext};
|
|
63
|
+
text-align: right;
|
|
64
|
+
font-weight: 500;
|
|
65
|
+
font-size: 13px;
|
|
66
|
+
line-height: 24px;
|
|
67
|
+
color: ${GlobalColors.s5};
|
|
68
|
+
cursor: pointer;
|
|
69
|
+
span {
|
|
70
|
+
color: ${GlobalColors.secondary_magenta};
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
.main-container {
|
|
76
|
+
max-width: 80%;
|
|
77
|
+
max-height: 80%;
|
|
78
|
+
}
|
|
9
79
|
`;
|
package/src/index.js
CHANGED
|
@@ -37,6 +37,7 @@ export * from "./components/molecules/RegistrationFirstStep/index";
|
|
|
37
37
|
export * from "./components/molecules/RegistrationSecondStep/index";
|
|
38
38
|
export * from "./components/molecules/RegistrationThirdStep/index";
|
|
39
39
|
export * from "./components/molecules/SignInLogin/index";
|
|
40
|
+
export * from "./components/molecules/SignInLoginCreationApp/index";
|
|
40
41
|
export * from "./components/molecules/StatusAsignationInfo/index";
|
|
41
42
|
export * from "./components/molecules/TableHeader/index";
|
|
42
43
|
export * from "./components/molecules/TableRow/index";
|