contentoh-components-library 21.0.45 → 21.0.48

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.
@@ -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: 60%;\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:10%;\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"])));
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;
@@ -35,7 +35,7 @@ var RegistrationFirstStep = function RegistrationFirstStep(props) {
35
35
  emptyName = _useState2[0],
36
36
  setEmptyName = _useState2[1];
37
37
 
38
- var _useState3 = (0, _react.useState)(false),
38
+ var _useState3 = (0, _react.useState)(true),
39
39
  _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
40
40
  emptyLastName = _useState4[0],
41
41
  setEmptyLastName = _useState4[1];
@@ -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;
@@ -124,8 +124,6 @@ var RegistrationSecondStep = function RegistrationSecondStep(props) {
124
124
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
125
125
  text: "Todos los datos estan protegidos.",
126
126
  headerType: "date-header"
127
- }), !termsCheck && !!privacyCheck && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
128
- children: "Seleccione los terminos y condiciones y el Aviso de privacidad"
129
127
  })]
130
128
  }, "7"), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
131
129
  className: "button-end",
@@ -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.SignInLoginCreationAppDefault = 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/SignInLoginCreationApp",
18
+ component: _index.SignInLoginCreationApp
19
+ };
20
+ exports.default = _default;
21
+
22
+ var Template = function Template(args) {
23
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.SignInLoginCreationApp, (0, _objectSpread2.default)({}, args));
24
+ };
25
+
26
+ var SignInLoginCreationAppDefault = Template.bind({});
27
+ exports.SignInLoginCreationAppDefault = SignInLoginCreationAppDefault;
28
+ SignInLoginCreationAppDefault.args = {};
@@ -0,0 +1,271 @@
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.SignInLoginCreationApp = 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 _index = require("../../atoms/LogoImage/index");
19
+
20
+ var _index2 = require("../../atoms/ScreenHeader/index");
21
+
22
+ var _index3 = require("../../atoms/GeneralButton/index");
23
+
24
+ var _index4 = require("../../atoms/CheckBox/index");
25
+
26
+ var _TagAndInput = require("../TagAndInput");
27
+
28
+ var _variables = require("../../../global-files/variables");
29
+
30
+ var _react = require("react");
31
+
32
+ var _Loading = require("../../atoms/Loading");
33
+
34
+ var _reactRouterDom = require("react-router-dom");
35
+
36
+ var _axios = _interopRequireDefault(require("axios"));
37
+
38
+ var _jsxRuntime = require("react/jsx-runtime");
39
+
40
+ var SignInLoginCreationApp = function SignInLoginCreationApp(props) {
41
+ var _useState = (0, _react.useState)(false),
42
+ _useState2 = (0, _slicedToArray2.default)(_useState, 2),
43
+ emptyEmail = _useState2[0],
44
+ setEmptyEmail = _useState2[1];
45
+
46
+ var _useState3 = (0, _react.useState)(false),
47
+ _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
48
+ invalidEmail = _useState4[0],
49
+ setInvalidEmail = _useState4[1];
50
+
51
+ var _useState5 = (0, _react.useState)(false),
52
+ _useState6 = (0, _slicedToArray2.default)(_useState5, 2),
53
+ emptyPassword = _useState6[0],
54
+ setEmptyPassword = _useState6[1];
55
+
56
+ var _useState7 = (0, _react.useState)(true),
57
+ _useState8 = (0, _slicedToArray2.default)(_useState7, 2),
58
+ showErrors = _useState8[0],
59
+ setShowErrors = _useState8[1];
60
+
61
+ var _useState9 = (0, _react.useState)(""),
62
+ _useState10 = (0, _slicedToArray2.default)(_useState9, 2),
63
+ signInError = _useState10[0],
64
+ setSignInError = _useState10[1];
65
+
66
+ var _useState11 = (0, _react.useState)(false),
67
+ _useState12 = (0, _slicedToArray2.default)(_useState11, 2),
68
+ loading = _useState12[0],
69
+ setLoading = _useState12[1];
70
+
71
+ var _useState13 = (0, _react.useState)(false),
72
+ _useState14 = (0, _slicedToArray2.default)(_useState13, 2),
73
+ upgradePlanRedirect = _useState14[0],
74
+ setUpgradePlanRedirect = _useState14[1];
75
+
76
+ var validate = /*#__PURE__*/function () {
77
+ var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(e) {
78
+ var valid, email, password, session, userGroup, response, userGroupValue, user, company;
79
+ return _regenerator.default.wrap(function _callee$(_context) {
80
+ while (1) {
81
+ switch (_context.prev = _context.next) {
82
+ case 0:
83
+ setSignInError("");
84
+ setShowErrors(true);
85
+ e.preventDefault();
86
+ valid = true;
87
+ email = document.querySelector("#emailInput").value;
88
+ password = document.querySelector("#passwordInput").value;
89
+ !/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(email) ? setInvalidEmail(true) : setInvalidEmail(false);
90
+
91
+ if (email === "") {
92
+ valid = false;
93
+ setEmptyEmail(true);
94
+ } else {
95
+ setEmptyEmail(false);
96
+ }
97
+
98
+ if (password === "") {
99
+ valid = false;
100
+ setEmptyPassword(true);
101
+ } else {
102
+ setEmptyPassword(false);
103
+ }
104
+
105
+ if (!valid) {
106
+ _context.next = 34;
107
+ break;
108
+ }
109
+
110
+ _context.prev = 10;
111
+ setLoading(true);
112
+ _context.next = 14;
113
+ return props.Auth.signIn(email, password);
114
+
115
+ case 14:
116
+ session = _context.sent;
117
+
118
+ if (!(session.challengeName === "NEW_PASSWORD_REQUIRED")) {
119
+ _context.next = 20;
120
+ break;
121
+ }
122
+
123
+ props.setUser(session);
124
+ props.setPaso(8);
125
+ _context.next = 26;
126
+ break;
127
+
128
+ case 20:
129
+ userGroup = session.signInUserSession.accessToken.payload["cognito:groups"];
130
+ _context.next = 23;
131
+ return _axios.default.get(process.env.REACT_APP_USER_ENDPOINT, {
132
+ headers: {
133
+ Authorization: session.signInUserSession.idToken.jwtToken
134
+ }
135
+ });
136
+
137
+ case 23:
138
+ response = _context.sent;
139
+ userGroupValue = typeof userGroup === "string" ? userGroup : userGroup[0];
140
+
141
+ if (userGroupValue === "usuario_contentoh") {
142
+ sessionStorage.setItem("auth", true);
143
+ sessionStorage.setItem("jwt", session.signInUserSession.idToken.jwtToken);
144
+ user = JSON.parse(response.data.body).data[0];
145
+ company = JSON.parse(response.data.body).data[1];
146
+ caches.keys().then(function (names) {
147
+ names.forEach(function (name) {
148
+ caches.delete(name);
149
+ });
150
+ });
151
+ user.src = "https://".concat(process.env.REACT_APP_IMAGES_PROFILE_BUCKET, ".s3.amazonaws.com/id-").concat(user.id_user, "/").concat(user.id_user, ".png?").concat(new Date().getTime());
152
+ sessionStorage.setItem("user", JSON.stringify(user));
153
+ sessionStorage.setItem("company", JSON.stringify(company));
154
+ setUpgradePlanRedirect(true);
155
+ } else {
156
+ setSignInError("NotAuthorizedException");
157
+ setLoading(false);
158
+ }
159
+
160
+ case 26:
161
+ _context.next = 34;
162
+ break;
163
+
164
+ case 28:
165
+ _context.prev = 28;
166
+ _context.t0 = _context["catch"](10);
167
+ console.log(_context.t0);
168
+ setLoading(false);
169
+ console.log("error 1");
170
+
171
+ if (_context.t0.code === "NotAuthorizedException") {
172
+ setSignInError("NotAuthorizedException");
173
+ } else if (_context.t0.code === "UserNotConfirmedException") {
174
+ sessionStorage.setItem("email", JSON.stringify(document.querySelector("#usernameInput").value.trim()));
175
+ sessionStorage.setItem("email", JSON.stringify(email));
176
+ props.setPaso(5);
177
+ } else {
178
+ setSignInError("Error");
179
+ console.log("error 2");
180
+ }
181
+
182
+ case 34:
183
+ case "end":
184
+ return _context.stop();
185
+ }
186
+ }
187
+ }, _callee, null, [[10, 28]]);
188
+ }));
189
+
190
+ return function validate(_x) {
191
+ return _ref.apply(this, arguments);
192
+ };
193
+ }();
194
+
195
+ (0, _react.useEffect)(function () {
196
+ sessionStorage.getItem("resetPasswordProcess") && sessionStorage.removeItem("resetPasswordProcess");
197
+ }, []);
198
+ (0, _react.useEffect)(function () {
199
+ if (upgradePlanRedirect) setLoading(false);
200
+ }, [upgradePlanRedirect]);
201
+ return loading ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Loading.Loading, {}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
202
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
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
+ })]
262
+ })
263
+ }), upgradePlanRedirect && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactRouterDom.Redirect, {
264
+ to: {
265
+ pathname: "/dashboard"
266
+ }
267
+ })]
268
+ });
269
+ };
270
+
271
+ exports.SignInLoginCreationApp = SignInLoginCreationApp;
@@ -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 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
+
20
+ exports.Container = Container;
@@ -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 height: 100%;\n width: 50%;\n .button-center {\n text-align: center;\n .general-default-button {\n width: 160px;\n }\n }\n .reset-password {\n text-align: center;\n margin: 15px !important;\n color: ", ";\n cursor: pointer;\n font-weight: bold;\n font-family: ", ";\n font-size: 13px;\n }\n .resend-code {\n margin-top: 8px !important;\n color: ", ";\n font-family: ", ";\n font-size: 11px;\n text-decoration: underline rgb(228, 81, 172);\n cursor: pointer;\n & + * {\n margin-top: 30px;\n }\n }\n .verification-code {\n display: flex;\n text-align: center;\n margin: auto;\n margin-top: 10px;\n input[type=\"number\"]::-webkit-inner-spin-button,\n input[type=\"number\"]::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n input {\n width: 70%;\n text-align: center;\n }\n }\n"])), _variables.GlobalColors.secondary_magenta, _variables.FontFamily.Raleway, _variables.GlobalColors.magenta_s2, _variables.FontFamily.AvenirNext);
18
+ var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n height: 100vh;\n width: 50%;\n align-items: center;\n justify-content: center;\n .button-center {\n text-align: center;\n .general-default-button {\n width: 160px;\n }\n }\n .reset-password {\n text-align: center;\n margin: 15px !important;\n color: ", ";\n cursor: pointer;\n font-weight: bold;\n font-family: ", ";\n font-size: 13px;\n }\n .resend-code {\n margin-top: 8px !important;\n color: ", ";\n font-family: ", ";\n font-size: 11px;\n text-decoration: underline rgb(228, 81, 172);\n cursor: pointer;\n & + * {\n margin-top: 30px;\n }\n }\n .verification-code {\n display: flex;\n text-align: center;\n margin: auto;\n margin-top: 10px;\n input[type=\"number\"]::-webkit-inner-spin-button,\n input[type=\"number\"]::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n input {\n width: 70%;\n text-align: center;\n }\n }\n"])), _variables.GlobalColors.secondary_magenta, _variables.FontFamily.Raleway, _variables.GlobalColors.magenta_s2, _variables.FontFamily.AvenirNext);
19
19
 
20
20
  exports.Container = Container;
@@ -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 display: flex;\n width: 50%;\n height: 100vh;\n .button-center {\n position: absolute;\n bottom: 10%;\n left: 65%;\n .general-default-button {\n width: 160px;\n }\n }\n"])));
16
+ var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n width: 50%;\n height: 100vh;\n .button-center {\n position: absolute;\n bottom: 13%;\n left: 18%;\n .general-default-button {\n width: 160px;\n }\n }\n"])));
17
17
 
18
18
  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/StatusAsignationInfo/index");
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/TableHeader/index");
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/TableRow/index");
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/TabsMenu/index");
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/TagAndInput/index");
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/VerificationCodeResetPasswordLogin/index");
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/organisms/ChangePassword/index");
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/Fullplan/index");
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/FullProductNameHeader/index");
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/FullTabsMenu/index");
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/ImageDataTable/index");
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/ImagePreviewer/index");
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/ImagesGroup/index");
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/InputGroup/index");
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/ProductImageModal/index");
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.0.45",
3
+ "version": "21.0.48",
4
4
  "dependencies": {
5
5
  "@aws-amplify/auth": "^4.5.3",
6
6
  "@aws-amplify/datastore": "^3.11.0",
@@ -7,7 +7,7 @@ export const Container = styled.div`
7
7
  width: 50%;
8
8
  position: relative;
9
9
  img {
10
- width: 60%;
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:10%;
23
+ left:25%;
24
24
  span {
25
25
  display: inline-block;
26
26
  border-radius: 100%;
@@ -10,7 +10,7 @@ import { GeneralInput } from "../../atoms/GeneralInput";
10
10
 
11
11
  export const RegistrationFirstStep = (props) => {
12
12
  const [emptyName, setEmptyName] = useState(false);
13
- const [emptyLastName, setEmptyLastName] = useState(false);
13
+ const [emptyLastName, setEmptyLastName] = useState(true);
14
14
  const [emptyEmail, setEmptyEmail] = useState(false);
15
15
  const [emptyJob, setEmptyJob] = useState(false);
16
16
  const [emptyPhone, setEmptyPhone] = useState(false);
@@ -36,12 +36,12 @@ export const RegistrationFirstStep = (props) => {
36
36
  }, []);
37
37
  const validate = (evt) => {
38
38
  const name = document.querySelector("#nameInput").value;
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;
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 && <label>Ingrese sus apellidos</label>}
125
+ {emptyLastName && (
126
+ <label className="lastname">Ingrese sus apellidos</label>
127
+ )}
126
128
  <TagAndInput
127
129
  inputType={"text"}
128
130
  inputId={"emailInput"}
@@ -13,6 +13,9 @@ export const Container = styled.div`
13
13
  width: 160px;
14
14
  }
15
15
  }
16
+ .lastname {
17
+ margin-left: 69%;
18
+ }
16
19
  .input-name-header {
17
20
  margin-bottom: 4px;
18
21
  margin-top: 12px;
@@ -46,7 +46,7 @@ export const RegistrationSecondStep = (props) => {
46
46
  password !== confirmPassword
47
47
  ) {
48
48
  valid = false;
49
- }
49
+ }
50
50
  return valid;
51
51
  };
52
52
  const loginRight = [
@@ -90,11 +90,6 @@ export const RegistrationSecondStep = (props) => {
90
90
  text={"Todos los datos estan protegidos."}
91
91
  headerType={"date-header"}
92
92
  />
93
- {!termsCheck && !!privacyCheck && (
94
- <label>
95
- Seleccione los terminos y condiciones y el Aviso de privacidad
96
- </label>
97
- )}
98
93
  </div>,
99
94
  <div className="button-end" key="8">
100
95
  <Button
@@ -0,0 +1,11 @@
1
+ import { SignInLoginCreationApp } from "./index";
2
+
3
+ export default {
4
+ title: "Components/molecules/SignInLoginCreationApp",
5
+ component: SignInLoginCreationApp,
6
+ };
7
+
8
+ const Template = (args) => <SignInLoginCreationApp {...args} />;
9
+
10
+ export const SignInLoginCreationAppDefault = Template.bind({});
11
+ SignInLoginCreationAppDefault.args = {};
@@ -0,0 +1,183 @@
1
+ import { Container } from "./styles";
2
+ import { LogoImage } from "../../atoms/LogoImage/index";
3
+ import { ScreenHeader } from "../../atoms/ScreenHeader/index";
4
+ import { Button } from "../../atoms/GeneralButton/index";
5
+ import { CheckBox } from "../../atoms/CheckBox/index";
6
+ import { TagAndInput } from "../TagAndInput";
7
+ import { FontFamily, GlobalColors } from "../../../global-files/variables";
8
+ import { useState, useEffect } from "react";
9
+ import { Loading } from "../../atoms/Loading";
10
+ import { Redirect } from "react-router-dom";
11
+ import axios from "axios";
12
+
13
+ export const SignInLoginCreationApp = (props) => {
14
+ const [emptyEmail, setEmptyEmail] = useState(false);
15
+ const [invalidEmail, setInvalidEmail] = useState(false);
16
+ const [emptyPassword, setEmptyPassword] = useState(false);
17
+ const [showErrors, setShowErrors] = useState(true);
18
+ const [signInError, setSignInError] = useState("");
19
+ const [loading, setLoading] = useState(false);
20
+ const [upgradePlanRedirect, setUpgradePlanRedirect] = useState(false);
21
+ const validate = async (e) => {
22
+ setSignInError("");
23
+ setShowErrors(true);
24
+ e.preventDefault();
25
+ let valid = true;
26
+ const email = document.querySelector("#emailInput").value;
27
+ const password = document.querySelector("#passwordInput").value;
28
+ !/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(
29
+ email
30
+ )
31
+ ? setInvalidEmail(true)
32
+ : setInvalidEmail(false);
33
+ if (email === "") {
34
+ valid = false;
35
+ setEmptyEmail(true);
36
+ } else {
37
+ setEmptyEmail(false);
38
+ }
39
+ if (password === "") {
40
+ valid = false;
41
+ setEmptyPassword(true);
42
+ } else {
43
+ setEmptyPassword(false);
44
+ }
45
+ if (valid) {
46
+ try {
47
+ setLoading(true);
48
+ const session = await props.Auth.signIn(email, password);
49
+ if (session.challengeName === "NEW_PASSWORD_REQUIRED") {
50
+ props.setUser(session);
51
+ props.setPaso(8);
52
+ } else {
53
+ const userGroup =
54
+ session.signInUserSession.accessToken.payload["cognito:groups"];
55
+ const response = await axios.get(
56
+ process.env.REACT_APP_USER_ENDPOINT,
57
+ {
58
+ headers: {
59
+ Authorization: session.signInUserSession.idToken.jwtToken,
60
+ },
61
+ }
62
+ );
63
+ const userGroupValue =
64
+ typeof userGroup === "string" ? userGroup : userGroup[0];
65
+ if (userGroupValue === "usuario_contentoh") {
66
+ sessionStorage.setItem("auth", true);
67
+ sessionStorage.setItem(
68
+ "jwt",
69
+ session.signInUserSession.idToken.jwtToken
70
+ );
71
+ const user = JSON.parse(response.data.body).data[0];
72
+ const company = JSON.parse(response.data.body).data[1];
73
+ caches.keys().then((names) => {
74
+ names.forEach((name) => {
75
+ caches.delete(name);
76
+ });
77
+ });
78
+ user.src = `https://${
79
+ process.env.REACT_APP_IMAGES_PROFILE_BUCKET
80
+ }.s3.amazonaws.com/id-${user.id_user}/${
81
+ user.id_user
82
+ }.png?${new Date().getTime()}`;
83
+ sessionStorage.setItem("user", JSON.stringify(user));
84
+ sessionStorage.setItem("company", JSON.stringify(company));
85
+ setUpgradePlanRedirect(true);
86
+ } else {
87
+ setSignInError("NotAuthorizedException");
88
+ setLoading(false);
89
+ }
90
+ }
91
+ } catch (error) {
92
+ console.log(error);
93
+ setLoading(false);
94
+ console.log("error 1");
95
+ if (error.code === "NotAuthorizedException") {
96
+ setSignInError("NotAuthorizedException");
97
+ } else if (error.code === "UserNotConfirmedException") {
98
+ sessionStorage.setItem(
99
+ "email",
100
+ JSON.stringify(
101
+ document.querySelector("#usernameInput").value.trim()
102
+ )
103
+ );
104
+ sessionStorage.setItem("email", JSON.stringify(email));
105
+ props.setPaso(5);
106
+ } else {
107
+ setSignInError("Error");
108
+ console.log("error 2");
109
+ }
110
+ }
111
+ }
112
+ };
113
+ useEffect(() => {
114
+ sessionStorage.getItem("resetPasswordProcess") &&
115
+ sessionStorage.removeItem("resetPasswordProcess");
116
+ }, []);
117
+ useEffect(() => {
118
+ if (upgradePlanRedirect) setLoading(false);
119
+ }, [upgradePlanRedirect]);
120
+ return loading ? (
121
+ <Loading />
122
+ ) : (
123
+ <>
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>
179
+ </Container>
180
+ {upgradePlanRedirect && <Redirect to={{ pathname: "/dashboard" }} />}
181
+ </>
182
+ );
183
+ };
@@ -0,0 +1,79 @@
1
+ import styled from "styled-components";
2
+ import { FontFamily, GlobalColors } from "../../../global-files/variables";
3
+
4
+ export const Container = styled.div`
5
+ background: "white";
6
+ display: flex;
7
+ height: 100vh;
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
+ }
79
+ `;
@@ -3,8 +3,10 @@ import { FontFamily, GlobalColors } from "../../../global-files/variables";
3
3
 
4
4
  export const Container = styled.div`
5
5
  display: flex;
6
- height: 100%;
6
+ height: 100vh;
7
7
  width: 50%;
8
+ align-items: center;
9
+ justify-content: center;
8
10
  .button-center {
9
11
  text-align: center;
10
12
  .general-default-button {
@@ -6,8 +6,8 @@ export const Container = styled.div`
6
6
  height: 100vh;
7
7
  .button-center {
8
8
  position: absolute;
9
- bottom: 10%;
10
- left: 65%;
9
+ bottom: 13%;
10
+ left: 18%;
11
11
  .general-default-button {
12
12
  width: 160px;
13
13
  }
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";