contentoh-components-library 21.0.55 → 21.0.56
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/molecules/SignInLogin/index.js +12 -15
- package/dist/components/molecules/SignInLogin/styles.js +1 -1
- package/dist/index.js +70 -57
- package/package.json +1 -1
- package/src/components/molecules/SignInLogin/index.js +3 -7
- package/src/components/molecules/SignInLogin/styles.js +1 -1
- package/src/index.js +3 -2
- package/src/components/molecules/SignInLoginCreationApp/SignInLogin.stories.js +0 -11
- package/src/components/molecules/SignInLoginCreationApp/index.js +0 -182
- package/src/components/molecules/SignInLoginCreationApp/styles.js +0 -79
|
@@ -29,7 +29,7 @@ var _variables = require("../../../global-files/variables");
|
|
|
29
29
|
|
|
30
30
|
var _react = require("react");
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _LogoLoading = require("../LogoLoading");
|
|
33
33
|
|
|
34
34
|
var _reactRouterDom = require("react-router-dom");
|
|
35
35
|
|
|
@@ -75,7 +75,7 @@ var SignInLogin = function SignInLogin(props) {
|
|
|
75
75
|
|
|
76
76
|
var validate = /*#__PURE__*/function () {
|
|
77
77
|
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(e) {
|
|
78
|
-
var valid, email, password, session, userGroup, response,
|
|
78
|
+
var valid, email, password, session, userGroup, response, user, company;
|
|
79
79
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
80
80
|
while (1) {
|
|
81
81
|
switch (_context.prev = _context.next) {
|
|
@@ -103,7 +103,7 @@ var SignInLogin = function SignInLogin(props) {
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
if (!valid) {
|
|
106
|
-
_context.next =
|
|
106
|
+
_context.next = 33;
|
|
107
107
|
break;
|
|
108
108
|
}
|
|
109
109
|
|
|
@@ -122,7 +122,7 @@ var SignInLogin = function SignInLogin(props) {
|
|
|
122
122
|
|
|
123
123
|
props.setUser(session);
|
|
124
124
|
props.setPaso(8);
|
|
125
|
-
_context.next =
|
|
125
|
+
_context.next = 25;
|
|
126
126
|
break;
|
|
127
127
|
|
|
128
128
|
case 20:
|
|
@@ -136,11 +136,8 @@ var SignInLogin = function SignInLogin(props) {
|
|
|
136
136
|
|
|
137
137
|
case 23:
|
|
138
138
|
response = _context.sent;
|
|
139
|
-
console.log(userGroup);
|
|
140
|
-
console.log(userGroup[0]);
|
|
141
|
-
userGroupValue = typeof userGroup === "string" ? userGroup : userGroup[0];
|
|
142
139
|
|
|
143
|
-
if (
|
|
140
|
+
if (userGroup[0] === props.users) {
|
|
144
141
|
sessionStorage.setItem("auth", true);
|
|
145
142
|
sessionStorage.setItem("jwt", session.signInUserSession.idToken.jwtToken);
|
|
146
143
|
user = JSON.parse(response.data.body).data[0];
|
|
@@ -159,12 +156,12 @@ var SignInLogin = function SignInLogin(props) {
|
|
|
159
156
|
setLoading(false);
|
|
160
157
|
}
|
|
161
158
|
|
|
162
|
-
case
|
|
163
|
-
_context.next =
|
|
159
|
+
case 25:
|
|
160
|
+
_context.next = 33;
|
|
164
161
|
break;
|
|
165
162
|
|
|
166
|
-
case
|
|
167
|
-
_context.prev =
|
|
163
|
+
case 27:
|
|
164
|
+
_context.prev = 27;
|
|
168
165
|
_context.t0 = _context["catch"](10);
|
|
169
166
|
console.log(_context.t0);
|
|
170
167
|
setLoading(false);
|
|
@@ -181,12 +178,12 @@ var SignInLogin = function SignInLogin(props) {
|
|
|
181
178
|
console.log("error 2");
|
|
182
179
|
}
|
|
183
180
|
|
|
184
|
-
case
|
|
181
|
+
case 33:
|
|
185
182
|
case "end":
|
|
186
183
|
return _context.stop();
|
|
187
184
|
}
|
|
188
185
|
}
|
|
189
|
-
}, _callee, null, [[10,
|
|
186
|
+
}, _callee, null, [[10, 27]]);
|
|
190
187
|
}));
|
|
191
188
|
|
|
192
189
|
return function validate(_x) {
|
|
@@ -200,7 +197,7 @@ var SignInLogin = function SignInLogin(props) {
|
|
|
200
197
|
(0, _react.useEffect)(function () {
|
|
201
198
|
if (upgradePlanRedirect) setLoading(false);
|
|
202
199
|
}, [upgradePlanRedirect]);
|
|
203
|
-
return loading ? /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
200
|
+
return loading ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_LogoLoading.LogoLoading, {}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
204
201
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
205
202
|
className: "home-login",
|
|
206
203
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
@@ -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:
|
|
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
|
@@ -173,7 +173,7 @@ Object.keys(_index13).forEach(function (key) {
|
|
|
173
173
|
});
|
|
174
174
|
});
|
|
175
175
|
|
|
176
|
-
var _index14 = require("./components/atoms/
|
|
176
|
+
var _index14 = require("./components/atoms/LogoImage/index");
|
|
177
177
|
|
|
178
178
|
Object.keys(_index14).forEach(function (key) {
|
|
179
179
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -186,7 +186,7 @@ Object.keys(_index14).forEach(function (key) {
|
|
|
186
186
|
});
|
|
187
187
|
});
|
|
188
188
|
|
|
189
|
-
var _index15 = require("./components/atoms/
|
|
189
|
+
var _index15 = require("./components/atoms/PriorityFlag/index");
|
|
190
190
|
|
|
191
191
|
Object.keys(_index15).forEach(function (key) {
|
|
192
192
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -199,7 +199,7 @@ Object.keys(_index15).forEach(function (key) {
|
|
|
199
199
|
});
|
|
200
200
|
});
|
|
201
201
|
|
|
202
|
-
var _index16 = require("./components/atoms/
|
|
202
|
+
var _index16 = require("./components/atoms/ProductImage/index");
|
|
203
203
|
|
|
204
204
|
Object.keys(_index16).forEach(function (key) {
|
|
205
205
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -212,7 +212,7 @@ Object.keys(_index16).forEach(function (key) {
|
|
|
212
212
|
});
|
|
213
213
|
});
|
|
214
214
|
|
|
215
|
-
var _index17 = require("./components/atoms/
|
|
215
|
+
var _index17 = require("./components/atoms/ProgressBar/index");
|
|
216
216
|
|
|
217
217
|
Object.keys(_index17).forEach(function (key) {
|
|
218
218
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -225,7 +225,7 @@ Object.keys(_index17).forEach(function (key) {
|
|
|
225
225
|
});
|
|
226
226
|
});
|
|
227
227
|
|
|
228
|
-
var _index18 = require("./components/atoms/
|
|
228
|
+
var _index18 = require("./components/atoms/ScreenHeader/index");
|
|
229
229
|
|
|
230
230
|
Object.keys(_index18).forEach(function (key) {
|
|
231
231
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -238,7 +238,7 @@ Object.keys(_index18).forEach(function (key) {
|
|
|
238
238
|
});
|
|
239
239
|
});
|
|
240
240
|
|
|
241
|
-
var _index19 = require("./components/atoms/
|
|
241
|
+
var _index19 = require("./components/atoms/SideMenuButton/index");
|
|
242
242
|
|
|
243
243
|
Object.keys(_index19).forEach(function (key) {
|
|
244
244
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -251,7 +251,7 @@ Object.keys(_index19).forEach(function (key) {
|
|
|
251
251
|
});
|
|
252
252
|
});
|
|
253
253
|
|
|
254
|
-
var _index20 = require("./components/atoms/
|
|
254
|
+
var _index20 = require("./components/atoms/StatusTag/index");
|
|
255
255
|
|
|
256
256
|
Object.keys(_index20).forEach(function (key) {
|
|
257
257
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -264,7 +264,7 @@ Object.keys(_index20).forEach(function (key) {
|
|
|
264
264
|
});
|
|
265
265
|
});
|
|
266
266
|
|
|
267
|
-
var _index21 = require("./components/atoms/
|
|
267
|
+
var _index21 = require("./components/atoms/TabSection/index");
|
|
268
268
|
|
|
269
269
|
Object.keys(_index21).forEach(function (key) {
|
|
270
270
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -277,7 +277,7 @@ Object.keys(_index21).forEach(function (key) {
|
|
|
277
277
|
});
|
|
278
278
|
});
|
|
279
279
|
|
|
280
|
-
var _index22 = require("./components/
|
|
280
|
+
var _index22 = require("./components/atoms/ValidationPanel/index");
|
|
281
281
|
|
|
282
282
|
Object.keys(_index22).forEach(function (key) {
|
|
283
283
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -290,33 +290,33 @@ Object.keys(_index22).forEach(function (key) {
|
|
|
290
290
|
});
|
|
291
291
|
});
|
|
292
292
|
|
|
293
|
-
var
|
|
293
|
+
var _index23 = require("./components/molecules/AvatarAndValidation/index");
|
|
294
294
|
|
|
295
|
-
Object.keys(
|
|
295
|
+
Object.keys(_index23).forEach(function (key) {
|
|
296
296
|
if (key === "default" || key === "__esModule") return;
|
|
297
|
-
if (key in exports && exports[key] ===
|
|
297
|
+
if (key in exports && exports[key] === _index23[key]) return;
|
|
298
298
|
Object.defineProperty(exports, key, {
|
|
299
299
|
enumerable: true,
|
|
300
300
|
get: function get() {
|
|
301
|
-
return
|
|
301
|
+
return _index23[key];
|
|
302
302
|
}
|
|
303
303
|
});
|
|
304
304
|
});
|
|
305
305
|
|
|
306
|
-
var
|
|
306
|
+
var _CarouselImagesLogin = require("./components/molecules/CarouselImagesLogin");
|
|
307
307
|
|
|
308
|
-
Object.keys(
|
|
308
|
+
Object.keys(_CarouselImagesLogin).forEach(function (key) {
|
|
309
309
|
if (key === "default" || key === "__esModule") return;
|
|
310
|
-
if (key in exports && exports[key] ===
|
|
310
|
+
if (key in exports && exports[key] === _CarouselImagesLogin[key]) return;
|
|
311
311
|
Object.defineProperty(exports, key, {
|
|
312
312
|
enumerable: true,
|
|
313
313
|
get: function get() {
|
|
314
|
-
return
|
|
314
|
+
return _CarouselImagesLogin[key];
|
|
315
315
|
}
|
|
316
316
|
});
|
|
317
317
|
});
|
|
318
318
|
|
|
319
|
-
var _index24 = require("./components/molecules/
|
|
319
|
+
var _index24 = require("./components/molecules/EditionActiveImage/index");
|
|
320
320
|
|
|
321
321
|
Object.keys(_index24).forEach(function (key) {
|
|
322
322
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -329,7 +329,7 @@ Object.keys(_index24).forEach(function (key) {
|
|
|
329
329
|
});
|
|
330
330
|
});
|
|
331
331
|
|
|
332
|
-
var _index25 = require("./components/molecules/
|
|
332
|
+
var _index25 = require("./components/molecules/EmailResetPasswordLogin/index");
|
|
333
333
|
|
|
334
334
|
Object.keys(_index25).forEach(function (key) {
|
|
335
335
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -342,7 +342,7 @@ Object.keys(_index25).forEach(function (key) {
|
|
|
342
342
|
});
|
|
343
343
|
});
|
|
344
344
|
|
|
345
|
-
var _index26 = require("./components/molecules/
|
|
345
|
+
var _index26 = require("./components/molecules/FeaturesBar/index");
|
|
346
346
|
|
|
347
347
|
Object.keys(_index26).forEach(function (key) {
|
|
348
348
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -355,7 +355,7 @@ Object.keys(_index26).forEach(function (key) {
|
|
|
355
355
|
});
|
|
356
356
|
});
|
|
357
357
|
|
|
358
|
-
var _index27 = require("./components/molecules/
|
|
358
|
+
var _index27 = require("./components/molecules/GalleryElement/index");
|
|
359
359
|
|
|
360
360
|
Object.keys(_index27).forEach(function (key) {
|
|
361
361
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -368,7 +368,7 @@ Object.keys(_index27).forEach(function (key) {
|
|
|
368
368
|
});
|
|
369
369
|
});
|
|
370
370
|
|
|
371
|
-
var _index28 = require("./components/molecules/
|
|
371
|
+
var _index28 = require("./components/molecules/HeaderTop/index");
|
|
372
372
|
|
|
373
373
|
Object.keys(_index28).forEach(function (key) {
|
|
374
374
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -381,20 +381,7 @@ Object.keys(_index28).forEach(function (key) {
|
|
|
381
381
|
});
|
|
382
382
|
});
|
|
383
383
|
|
|
384
|
-
var
|
|
385
|
-
|
|
386
|
-
Object.keys(_LoginPasswordStrength).forEach(function (key) {
|
|
387
|
-
if (key === "default" || key === "__esModule") return;
|
|
388
|
-
if (key in exports && exports[key] === _LoginPasswordStrength[key]) return;
|
|
389
|
-
Object.defineProperty(exports, key, {
|
|
390
|
-
enumerable: true,
|
|
391
|
-
get: function get() {
|
|
392
|
-
return _LoginPasswordStrength[key];
|
|
393
|
-
}
|
|
394
|
-
});
|
|
395
|
-
});
|
|
396
|
-
|
|
397
|
-
var _index29 = require("./components/molecules/PlanSelection/index");
|
|
384
|
+
var _index29 = require("./components/molecules/ImageSelector/index");
|
|
398
385
|
|
|
399
386
|
Object.keys(_index29).forEach(function (key) {
|
|
400
387
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -407,7 +394,7 @@ Object.keys(_index29).forEach(function (key) {
|
|
|
407
394
|
});
|
|
408
395
|
});
|
|
409
396
|
|
|
410
|
-
var _index30 = require("./components/molecules/
|
|
397
|
+
var _index30 = require("./components/molecules/LoginPasswordStrength/index");
|
|
411
398
|
|
|
412
399
|
Object.keys(_index30).forEach(function (key) {
|
|
413
400
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -420,7 +407,7 @@ Object.keys(_index30).forEach(function (key) {
|
|
|
420
407
|
});
|
|
421
408
|
});
|
|
422
409
|
|
|
423
|
-
var _index31 = require("./components/molecules/
|
|
410
|
+
var _index31 = require("./components/molecules/LogoLoading/index");
|
|
424
411
|
|
|
425
412
|
Object.keys(_index31).forEach(function (key) {
|
|
426
413
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -433,7 +420,7 @@ Object.keys(_index31).forEach(function (key) {
|
|
|
433
420
|
});
|
|
434
421
|
});
|
|
435
422
|
|
|
436
|
-
var _index32 = require("./components/molecules/
|
|
423
|
+
var _index32 = require("./components/molecules/PlanSelection/index");
|
|
437
424
|
|
|
438
425
|
Object.keys(_index32).forEach(function (key) {
|
|
439
426
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -446,7 +433,7 @@ Object.keys(_index32).forEach(function (key) {
|
|
|
446
433
|
});
|
|
447
434
|
});
|
|
448
435
|
|
|
449
|
-
var _index33 = require("./components/molecules/
|
|
436
|
+
var _index33 = require("./components/molecules/ProductNameHeader/index");
|
|
450
437
|
|
|
451
438
|
Object.keys(_index33).forEach(function (key) {
|
|
452
439
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -459,7 +446,7 @@ Object.keys(_index33).forEach(function (key) {
|
|
|
459
446
|
});
|
|
460
447
|
});
|
|
461
448
|
|
|
462
|
-
var _index34 = require("./components/molecules/
|
|
449
|
+
var _index34 = require("./components/molecules/RegistrationFirstStep/index");
|
|
463
450
|
|
|
464
451
|
Object.keys(_index34).forEach(function (key) {
|
|
465
452
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -472,7 +459,7 @@ Object.keys(_index34).forEach(function (key) {
|
|
|
472
459
|
});
|
|
473
460
|
});
|
|
474
461
|
|
|
475
|
-
var _index35 = require("./components/molecules/
|
|
462
|
+
var _index35 = require("./components/molecules/RegistrationSecondStep/index");
|
|
476
463
|
|
|
477
464
|
Object.keys(_index35).forEach(function (key) {
|
|
478
465
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -485,7 +472,7 @@ Object.keys(_index35).forEach(function (key) {
|
|
|
485
472
|
});
|
|
486
473
|
});
|
|
487
474
|
|
|
488
|
-
var _index36 = require("./components/molecules/
|
|
475
|
+
var _index36 = require("./components/molecules/RegistrationThirdStep/index");
|
|
489
476
|
|
|
490
477
|
Object.keys(_index36).forEach(function (key) {
|
|
491
478
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -498,7 +485,7 @@ Object.keys(_index36).forEach(function (key) {
|
|
|
498
485
|
});
|
|
499
486
|
});
|
|
500
487
|
|
|
501
|
-
var _index37 = require("./components/molecules/
|
|
488
|
+
var _index37 = require("./components/molecules/SignInLogin/index");
|
|
502
489
|
|
|
503
490
|
Object.keys(_index37).forEach(function (key) {
|
|
504
491
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -511,7 +498,7 @@ Object.keys(_index37).forEach(function (key) {
|
|
|
511
498
|
});
|
|
512
499
|
});
|
|
513
500
|
|
|
514
|
-
var _index38 = require("./components/molecules/
|
|
501
|
+
var _index38 = require("./components/molecules/StatusAsignationInfo/index");
|
|
515
502
|
|
|
516
503
|
Object.keys(_index38).forEach(function (key) {
|
|
517
504
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -524,7 +511,7 @@ Object.keys(_index38).forEach(function (key) {
|
|
|
524
511
|
});
|
|
525
512
|
});
|
|
526
513
|
|
|
527
|
-
var _index39 = require("./components/molecules/
|
|
514
|
+
var _index39 = require("./components/molecules/TableHeader/index");
|
|
528
515
|
|
|
529
516
|
Object.keys(_index39).forEach(function (key) {
|
|
530
517
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -537,7 +524,7 @@ Object.keys(_index39).forEach(function (key) {
|
|
|
537
524
|
});
|
|
538
525
|
});
|
|
539
526
|
|
|
540
|
-
var _index40 = require("./components/molecules/
|
|
527
|
+
var _index40 = require("./components/molecules/TableRow/index");
|
|
541
528
|
|
|
542
529
|
Object.keys(_index40).forEach(function (key) {
|
|
543
530
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -550,7 +537,7 @@ Object.keys(_index40).forEach(function (key) {
|
|
|
550
537
|
});
|
|
551
538
|
});
|
|
552
539
|
|
|
553
|
-
var _index41 = require("./components/molecules/
|
|
540
|
+
var _index41 = require("./components/molecules/TabsMenu/index");
|
|
554
541
|
|
|
555
542
|
Object.keys(_index41).forEach(function (key) {
|
|
556
543
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -563,7 +550,7 @@ Object.keys(_index41).forEach(function (key) {
|
|
|
563
550
|
});
|
|
564
551
|
});
|
|
565
552
|
|
|
566
|
-
var _index42 = require("./components/
|
|
553
|
+
var _index42 = require("./components/molecules/TagAndInput/index");
|
|
567
554
|
|
|
568
555
|
Object.keys(_index42).forEach(function (key) {
|
|
569
556
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -576,7 +563,7 @@ Object.keys(_index42).forEach(function (key) {
|
|
|
576
563
|
});
|
|
577
564
|
});
|
|
578
565
|
|
|
579
|
-
var _index43 = require("./components/
|
|
566
|
+
var _index43 = require("./components/molecules/VerificationCodeResetPasswordLogin/index");
|
|
580
567
|
|
|
581
568
|
Object.keys(_index43).forEach(function (key) {
|
|
582
569
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -589,7 +576,7 @@ Object.keys(_index43).forEach(function (key) {
|
|
|
589
576
|
});
|
|
590
577
|
});
|
|
591
578
|
|
|
592
|
-
var _index44 = require("./components/organisms/
|
|
579
|
+
var _index44 = require("./components/organisms/ChangePassword/index");
|
|
593
580
|
|
|
594
581
|
Object.keys(_index44).forEach(function (key) {
|
|
595
582
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -602,7 +589,7 @@ Object.keys(_index44).forEach(function (key) {
|
|
|
602
589
|
});
|
|
603
590
|
});
|
|
604
591
|
|
|
605
|
-
var _index45 = require("./components/organisms/
|
|
592
|
+
var _index45 = require("./components/organisms/Fullplan/index");
|
|
606
593
|
|
|
607
594
|
Object.keys(_index45).forEach(function (key) {
|
|
608
595
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -615,7 +602,7 @@ Object.keys(_index45).forEach(function (key) {
|
|
|
615
602
|
});
|
|
616
603
|
});
|
|
617
604
|
|
|
618
|
-
var _index46 = require("./components/organisms/
|
|
605
|
+
var _index46 = require("./components/organisms/FullProductNameHeader/index");
|
|
619
606
|
|
|
620
607
|
Object.keys(_index46).forEach(function (key) {
|
|
621
608
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -628,7 +615,7 @@ Object.keys(_index46).forEach(function (key) {
|
|
|
628
615
|
});
|
|
629
616
|
});
|
|
630
617
|
|
|
631
|
-
var _index47 = require("./components/organisms/
|
|
618
|
+
var _index47 = require("./components/organisms/FullTabsMenu/index");
|
|
632
619
|
|
|
633
620
|
Object.keys(_index47).forEach(function (key) {
|
|
634
621
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -641,7 +628,7 @@ Object.keys(_index47).forEach(function (key) {
|
|
|
641
628
|
});
|
|
642
629
|
});
|
|
643
630
|
|
|
644
|
-
var _index48 = require("./components/organisms/
|
|
631
|
+
var _index48 = require("./components/organisms/ImageDataTable/index");
|
|
645
632
|
|
|
646
633
|
Object.keys(_index48).forEach(function (key) {
|
|
647
634
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -654,7 +641,7 @@ Object.keys(_index48).forEach(function (key) {
|
|
|
654
641
|
});
|
|
655
642
|
});
|
|
656
643
|
|
|
657
|
-
var _index49 = require("./components/organisms/
|
|
644
|
+
var _index49 = require("./components/organisms/ImagePreviewer/index");
|
|
658
645
|
|
|
659
646
|
Object.keys(_index49).forEach(function (key) {
|
|
660
647
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -667,7 +654,7 @@ Object.keys(_index49).forEach(function (key) {
|
|
|
667
654
|
});
|
|
668
655
|
});
|
|
669
656
|
|
|
670
|
-
var _index50 = require("./components/organisms/
|
|
657
|
+
var _index50 = require("./components/organisms/ImagesGroup/index");
|
|
671
658
|
|
|
672
659
|
Object.keys(_index50).forEach(function (key) {
|
|
673
660
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -680,6 +667,32 @@ Object.keys(_index50).forEach(function (key) {
|
|
|
680
667
|
});
|
|
681
668
|
});
|
|
682
669
|
|
|
670
|
+
var _index51 = require("./components/organisms/InputGroup/index");
|
|
671
|
+
|
|
672
|
+
Object.keys(_index51).forEach(function (key) {
|
|
673
|
+
if (key === "default" || key === "__esModule") return;
|
|
674
|
+
if (key in exports && exports[key] === _index51[key]) return;
|
|
675
|
+
Object.defineProperty(exports, key, {
|
|
676
|
+
enumerable: true,
|
|
677
|
+
get: function get() {
|
|
678
|
+
return _index51[key];
|
|
679
|
+
}
|
|
680
|
+
});
|
|
681
|
+
});
|
|
682
|
+
|
|
683
|
+
var _index52 = require("./components/organisms/ProductImageModal/index");
|
|
684
|
+
|
|
685
|
+
Object.keys(_index52).forEach(function (key) {
|
|
686
|
+
if (key === "default" || key === "__esModule") return;
|
|
687
|
+
if (key in exports && exports[key] === _index52[key]) return;
|
|
688
|
+
Object.defineProperty(exports, key, {
|
|
689
|
+
enumerable: true,
|
|
690
|
+
get: function get() {
|
|
691
|
+
return _index52[key];
|
|
692
|
+
}
|
|
693
|
+
});
|
|
694
|
+
});
|
|
695
|
+
|
|
683
696
|
var _ChangePasswordLogin = require("./components/pages/ChangePasswordLogin");
|
|
684
697
|
|
|
685
698
|
Object.keys(_ChangePasswordLogin).forEach(function (key) {
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@ import { CheckBox } from "../../atoms/CheckBox/index";
|
|
|
6
6
|
import { TagAndInput } from "../TagAndInput";
|
|
7
7
|
import { FontFamily, GlobalColors } from "../../../global-files/variables";
|
|
8
8
|
import { useState, useEffect } from "react";
|
|
9
|
-
import {
|
|
9
|
+
import { LogoLoading } from "../LogoLoading";
|
|
10
10
|
import { Redirect } from "react-router-dom";
|
|
11
11
|
import axios from "axios";
|
|
12
12
|
|
|
@@ -60,11 +60,7 @@ export const SignInLogin = (props) => {
|
|
|
60
60
|
},
|
|
61
61
|
}
|
|
62
62
|
);
|
|
63
|
-
|
|
64
|
-
console.log(userGroup[0]);
|
|
65
|
-
const userGroupValue =
|
|
66
|
-
typeof userGroup === "string" ? userGroup : userGroup[0];
|
|
67
|
-
if (userGroupValue === "usuario_contentoh") {
|
|
63
|
+
if (userGroup[0] === props.users) {
|
|
68
64
|
sessionStorage.setItem("auth", true);
|
|
69
65
|
sessionStorage.setItem(
|
|
70
66
|
"jwt",
|
|
@@ -120,7 +116,7 @@ export const SignInLogin = (props) => {
|
|
|
120
116
|
if (upgradePlanRedirect) setLoading(false);
|
|
121
117
|
}, [upgradePlanRedirect]);
|
|
122
118
|
return loading ? (
|
|
123
|
-
<
|
|
119
|
+
<LogoLoading />
|
|
124
120
|
) : (
|
|
125
121
|
<>
|
|
126
122
|
<Container className={"home-login"}>
|
package/src/index.js
CHANGED
|
@@ -12,6 +12,7 @@ export * from "./components/atoms/GeneralInput/index";
|
|
|
12
12
|
export * from "./components/atoms/GeneralTextBox/index";
|
|
13
13
|
export * from "./components/atoms/GradientPanel/index";
|
|
14
14
|
export * from "./components/atoms/Loading/index";
|
|
15
|
+
export * from "./components/atoms/LogoImage/index";
|
|
15
16
|
export * from "./components/atoms/PriorityFlag/index";
|
|
16
17
|
export * from "./components/atoms/ProductImage/index";
|
|
17
18
|
export * from "./components/atoms/ProgressBar/index";
|
|
@@ -30,14 +31,14 @@ export * from "./components/molecules/FeaturesBar/index";
|
|
|
30
31
|
export * from "./components/molecules/GalleryElement/index";
|
|
31
32
|
export * from "./components/molecules/HeaderTop/index";
|
|
32
33
|
export * from "./components/molecules/ImageSelector/index";
|
|
33
|
-
export * from "./components/molecules/LoginPasswordStrength";
|
|
34
|
+
export * from "./components/molecules/LoginPasswordStrength/index";
|
|
35
|
+
export * from "./components/molecules/LogoLoading/index";
|
|
34
36
|
export * from "./components/molecules/PlanSelection/index";
|
|
35
37
|
export * from "./components/molecules/ProductNameHeader/index";
|
|
36
38
|
export * from "./components/molecules/RegistrationFirstStep/index";
|
|
37
39
|
export * from "./components/molecules/RegistrationSecondStep/index";
|
|
38
40
|
export * from "./components/molecules/RegistrationThirdStep/index";
|
|
39
41
|
export * from "./components/molecules/SignInLogin/index";
|
|
40
|
-
export * from "./components/molecules/SignInLoginCreationApp/index";
|
|
41
42
|
export * from "./components/molecules/StatusAsignationInfo/index";
|
|
42
43
|
export * from "./components/molecules/TableHeader/index";
|
|
43
44
|
export * from "./components/molecules/TableRow/index";
|
|
@@ -1,11 +0,0 @@
|
|
|
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 = {};
|
|
@@ -1,182 +0,0 @@
|
|
|
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
|
-
|
|
22
|
-
const validate = async (e) => {
|
|
23
|
-
e.preventDefault();
|
|
24
|
-
setSignInError("");
|
|
25
|
-
setShowErrors(true);
|
|
26
|
-
let valid = true;
|
|
27
|
-
const email = document.querySelector("#emailInput").value.trim();
|
|
28
|
-
const password = document.querySelector("#passwordInput").value;
|
|
29
|
-
!/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(
|
|
30
|
-
email
|
|
31
|
-
)
|
|
32
|
-
? setInvalidEmail(true)
|
|
33
|
-
: setInvalidEmail(false);
|
|
34
|
-
if (email === "") {
|
|
35
|
-
valid = false;
|
|
36
|
-
setEmptyEmail(true);
|
|
37
|
-
} else {
|
|
38
|
-
setEmptyEmail(false);
|
|
39
|
-
}
|
|
40
|
-
if (password === "") {
|
|
41
|
-
valid = false;
|
|
42
|
-
setEmptyPassword(true);
|
|
43
|
-
} else {
|
|
44
|
-
setEmptyPassword(false);
|
|
45
|
-
}
|
|
46
|
-
if (valid) {
|
|
47
|
-
try {
|
|
48
|
-
setLoading(true);
|
|
49
|
-
const session = await props.Auth.signIn(email, password);
|
|
50
|
-
if (session.challengeName === "NEW_PASSWORD_REQUIRED") {
|
|
51
|
-
props.setUser(session);
|
|
52
|
-
props.setPaso(8);
|
|
53
|
-
} else {
|
|
54
|
-
const userGroup =
|
|
55
|
-
session.signInUserSession.accessToken.payload["cognito:groups"];
|
|
56
|
-
const response = await axios.get(
|
|
57
|
-
process.env.REACT_APP_USER_ENDPOINT,
|
|
58
|
-
{
|
|
59
|
-
headers: {
|
|
60
|
-
Authorization: session.signInUserSession.idToken.jwtToken,
|
|
61
|
-
},
|
|
62
|
-
}
|
|
63
|
-
);
|
|
64
|
-
console.log(userGroup);
|
|
65
|
-
console.log(userGroup[0]);
|
|
66
|
-
const userGroupValue =
|
|
67
|
-
typeof userGroup === "string" ? userGroup : userGroup[0];
|
|
68
|
-
if (userGroupValue === "colaboradores_contentoh") {
|
|
69
|
-
sessionStorage.setItem("auth", true);
|
|
70
|
-
sessionStorage.setItem(
|
|
71
|
-
"jwt",
|
|
72
|
-
session.signInUserSession.idToken.jwtToken
|
|
73
|
-
);
|
|
74
|
-
const user = JSON.parse(response.data.body).data[0];
|
|
75
|
-
const company = JSON.parse(response.data.body).data[1];
|
|
76
|
-
|
|
77
|
-
caches.keys().then((names) => {
|
|
78
|
-
names.forEach((name) => {
|
|
79
|
-
caches.delete(name);
|
|
80
|
-
});
|
|
81
|
-
});
|
|
82
|
-
user.src = `https://${
|
|
83
|
-
process.env.REACT_APP_IMAGES_PROFILE_BUCKET
|
|
84
|
-
}.s3.amazonaws.com/id-${user.id_user}/${
|
|
85
|
-
user.id_user
|
|
86
|
-
}.png?${new Date().getTime()}`;
|
|
87
|
-
sessionStorage.setItem("user", JSON.stringify(user));
|
|
88
|
-
sessionStorage.setItem("company", JSON.stringify(company));
|
|
89
|
-
setUpgradePlanRedirect(true);
|
|
90
|
-
} else {
|
|
91
|
-
setSignInError("NotAuthorizedException");
|
|
92
|
-
setLoading(false);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
} catch (error) {
|
|
96
|
-
console.log(error);
|
|
97
|
-
setLoading(false);
|
|
98
|
-
if (error.code === "NotAuthorizedException") {
|
|
99
|
-
setSignInError("NotAuthorizedException");
|
|
100
|
-
} else if (error.code === "UserNotConfirmedException") {
|
|
101
|
-
sessionStorage.setItem(
|
|
102
|
-
"email",
|
|
103
|
-
JSON.stringify(document.querySelector("#usernameInput").value)
|
|
104
|
-
);
|
|
105
|
-
props.setPaso(5);
|
|
106
|
-
} else {
|
|
107
|
-
setSignInError("Error");
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
useEffect(() => {
|
|
113
|
-
sessionStorage.getItem("resetPasswordProcess") &&
|
|
114
|
-
sessionStorage.removeItem("resetPasswordProcess");
|
|
115
|
-
}, []);
|
|
116
|
-
useEffect(() => {
|
|
117
|
-
if (upgradePlanRedirect) setLoading(false);
|
|
118
|
-
}, [upgradePlanRedirect]);
|
|
119
|
-
return loading ? (
|
|
120
|
-
<Loading />
|
|
121
|
-
) : (
|
|
122
|
-
<>
|
|
123
|
-
<Container className={"home-login"}>
|
|
124
|
-
<div className="main-container">
|
|
125
|
-
<LogoImage />
|
|
126
|
-
<div className="credenciales">
|
|
127
|
-
<ScreenHeader
|
|
128
|
-
fontFamily={FontFamily.AvenirNext}
|
|
129
|
-
color={GlobalColors.s5}
|
|
130
|
-
text={"Ingresa tus credenciales"}
|
|
131
|
-
/>
|
|
132
|
-
</div>
|
|
133
|
-
<div className="user">
|
|
134
|
-
<TagAndInput
|
|
135
|
-
inputType={"text"}
|
|
136
|
-
label={"Nombre de usuario"}
|
|
137
|
-
inputPlaceHolder={"username@contentoh.com"}
|
|
138
|
-
inputId={"emailInput"}
|
|
139
|
-
/>
|
|
140
|
-
</div>
|
|
141
|
-
{showErrors && emptyEmail && <label>Ingrese su correo</label>}
|
|
142
|
-
{invalidEmail && !emptyEmail && (
|
|
143
|
-
<label>Ingrese un correo válido</label>
|
|
144
|
-
)}
|
|
145
|
-
<div className="password">
|
|
146
|
-
<TagAndInput
|
|
147
|
-
inputType={"password"}
|
|
148
|
-
label={"Contraseña"}
|
|
149
|
-
inputPlaceHolder={"Escribe tu contraseña"}
|
|
150
|
-
inputId={"passwordInput"}
|
|
151
|
-
/>
|
|
152
|
-
</div>
|
|
153
|
-
{showErrors && emptyPassword && <label>Ingrese su contraseña</label>}
|
|
154
|
-
<div className="select">
|
|
155
|
-
<CheckBox
|
|
156
|
-
label={"Mantener sesión activada"}
|
|
157
|
-
id={"chk-default"}
|
|
158
|
-
className="active-left"
|
|
159
|
-
/>
|
|
160
|
-
<p onClick={() => props.setPaso(10)} className="active-right">
|
|
161
|
-
Olvide mi contraseña
|
|
162
|
-
</p>
|
|
163
|
-
</div>
|
|
164
|
-
{showErrors && signInError === "NotAuthorizedException" && (
|
|
165
|
-
<label>Correo o contraseña incorrectos</label>
|
|
166
|
-
)}
|
|
167
|
-
{showErrors && signInError === "Error" && (
|
|
168
|
-
<label>Ha habido un problema al iniciar sesión</label>
|
|
169
|
-
)}
|
|
170
|
-
<div className="button-right">
|
|
171
|
-
<Button
|
|
172
|
-
buttonType={"general-default-button"}
|
|
173
|
-
label={"Iniciar sesión"}
|
|
174
|
-
onClick={(e) => validate(e)}
|
|
175
|
-
/>
|
|
176
|
-
</div>
|
|
177
|
-
</div>
|
|
178
|
-
</Container>
|
|
179
|
-
{upgradePlanRedirect && <Redirect to={{ pathname: "/dashboard" }} />}
|
|
180
|
-
</>
|
|
181
|
-
);
|
|
182
|
-
};
|
|
@@ -1,79 +0,0 @@
|
|
|
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
|
-
`;
|