contentoh-components-library 21.0.73 → 21.0.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.development +4 -2
- package/.env.production +4 -2
- package/CHANGELOG.md +39 -0
- package/dist/assets/images/editField/showPassword.png +0 -0
- package/dist/assets/images/sliderToolTip/infoIcon.svg +4 -0
- package/dist/assets/images/sliderToolTip/slide1.svg +5 -0
- package/dist/assets/images/sliderToolTip/slide2.svg +9 -0
- package/dist/assets/images/sliderToolTip/slide3.svg +9 -0
- package/dist/assets/images/sliderToolTip/slide4.svg +9 -0
- package/dist/assets/images/sliderToolTip/slide5.svg +40 -0
- package/dist/assets/images/verticalSideMenuMainPage/closeMenu.svg +4 -0
- package/dist/assets/images/verticalSideMenuMainPage/iconFAQS.svg +12 -0
- package/dist/assets/images/verticalSideMenuMainPage/iconGroup.svg +3 -0
- package/dist/assets/images/verticalSideMenuMainPage/iconLogo.svg +12 -0
- package/dist/assets/images/verticalSideMenuMainPage/iconLogoContentoh.svg +15 -0
- package/dist/assets/images/verticalSideMenuMainPage/iconProduct.svg +3 -0
- package/dist/assets/images/verticalSideMenuMainPage/iconSpeedometer.svg +12 -0
- package/dist/assets/images/verticalSideMenuMainPage/iconTask.svg +10 -0
- package/dist/assets/images/verticalSideMenuMainPage/openMenu.svg +4 -0
- package/dist/components/atoms/GeneralInput/index.js +4 -3
- package/dist/components/atoms/GradientPanel/styles.js +1 -1
- package/dist/components/atoms/Loading/Loading.stories.js +28 -0
- package/dist/components/atoms/Loading/index.js +1 -0
- package/dist/components/atoms/LogoImage/index.js +1 -0
- package/dist/components/atoms/SliderToolTip/SliderToolTip.stories.js +47 -0
- package/dist/components/atoms/SliderToolTip/index.js +200 -0
- package/dist/components/atoms/SliderToolTip/styles.js +24 -0
- package/dist/components/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +28 -0
- package/dist/components/atoms/VerticalSideMenuMainPage/index.js +99 -0
- package/dist/components/atoms/VerticalSideMenuMainPage/styles.js +24 -0
- package/dist/components/molecules/CarouselImagesLogin/index.js +40 -42
- package/dist/components/molecules/EmailResetPasswordLogin/EmailResetPasswordLogin.stories.js +28 -0
- package/dist/components/molecules/EmailResetPasswordLogin/index.js +153 -0
- package/dist/components/molecules/EmailResetPasswordLogin/styles.js +20 -0
- package/dist/components/molecules/LoginPasswordStrength/index.js +9 -9
- package/dist/components/molecules/LoginPasswordStrength/styles.js +1 -1
- package/dist/components/molecules/LogoLoading/Loading.stories.js +28 -0
- package/dist/components/molecules/LogoLoading/index.js +22 -0
- package/dist/components/molecules/LogoLoading/styles.js +18 -0
- package/dist/components/molecules/RegistrationFirstStep/RegistrationFirstStep.stories.js +28 -0
- package/dist/components/molecules/RegistrationFirstStep/index.js +308 -0
- package/dist/components/molecules/RegistrationFirstStep/styles.js +20 -0
- package/dist/components/molecules/RegistrationSecondStep/RegistrationSecondStep.stories.js +28 -0
- package/dist/components/molecules/RegistrationSecondStep/index.js +173 -0
- package/dist/components/molecules/RegistrationSecondStep/styles.js +20 -0
- package/dist/components/molecules/RegistrationThirdStep/RegistrationThirdStep.stories.js +28 -0
- package/dist/components/molecules/RegistrationThirdStep/index.js +155 -0
- package/dist/components/molecules/RegistrationThirdStep/styles.js +20 -0
- package/dist/components/molecules/SignInLogin/SignInLogin.stories.js +28 -0
- package/dist/components/molecules/SignInLogin/index.js +315 -0
- package/dist/components/molecules/SignInLogin/styles.js +20 -0
- package/dist/components/molecules/TagAndInput/index.js +4 -2
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/VerificationCodeResetPasswordLogin.stories.js +28 -0
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/index.js +211 -0
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/styles.js +20 -0
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/utils.js +69 -0
- package/dist/components/organisms/ChangePassword/ChangePassword.stories.js +28 -0
- package/dist/components/organisms/ChangePassword/index.js +124 -0
- package/dist/components/organisms/ChangePassword/styles.js +18 -0
- package/dist/index.js +303 -30
- package/package.json +12 -4
- package/src/assets/images/editField/showPassword.png +0 -0
- package/src/assets/images/sliderToolTip/infoIcon.svg +4 -0
- package/src/assets/images/sliderToolTip/slide1.svg +5 -0
- package/src/assets/images/sliderToolTip/slide2.svg +9 -0
- package/src/assets/images/sliderToolTip/slide3.svg +9 -0
- package/src/assets/images/sliderToolTip/slide4.svg +9 -0
- package/src/assets/images/sliderToolTip/slide5.svg +40 -0
- package/src/assets/images/verticalSideMenuMainPage/closeMenu.svg +4 -0
- package/src/assets/images/verticalSideMenuMainPage/iconFAQS.svg +12 -0
- package/src/assets/images/verticalSideMenuMainPage/iconGroup.svg +3 -0
- package/src/assets/images/verticalSideMenuMainPage/iconLogo.svg +12 -0
- package/src/assets/images/verticalSideMenuMainPage/iconLogoContentoh.svg +15 -0
- package/src/assets/images/verticalSideMenuMainPage/iconProduct.svg +3 -0
- package/src/assets/images/verticalSideMenuMainPage/iconSpeedometer.svg +12 -0
- package/src/assets/images/verticalSideMenuMainPage/iconTask.svg +10 -0
- package/src/assets/images/verticalSideMenuMainPage/openMenu.svg +4 -0
- package/src/components/atoms/GeneralInput/index.js +3 -2
- package/src/components/atoms/GradientPanel/styles.js +1 -0
- package/src/components/atoms/Loading/Loading.stories.js +10 -0
- package/src/components/atoms/Loading/index.js +3 -2
- package/src/components/atoms/LogoImage/index.js +1 -1
- package/src/components/atoms/SliderToolTip/SliderToolTip.stories.js +23 -0
- package/src/components/atoms/SliderToolTip/index.js +182 -0
- package/src/components/atoms/SliderToolTip/styles.js +168 -0
- package/src/components/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +12 -0
- package/src/components/atoms/VerticalSideMenuMainPage/index.js +55 -0
- package/src/components/atoms/VerticalSideMenuMainPage/styles.js +45 -0
- package/src/components/molecules/CarouselImagesLogin/index.js +34 -37
- package/src/components/molecules/EmailResetPasswordLogin/EmailResetPasswordLogin.stories.js +11 -0
- package/src/components/molecules/EmailResetPasswordLogin/index.js +85 -0
- package/src/components/molecules/EmailResetPasswordLogin/styles.js +23 -0
- package/src/components/molecules/LoginPasswordStrength/index.js +11 -6
- package/src/components/molecules/LoginPasswordStrength/styles.js +5 -1
- package/src/components/molecules/LogoLoading/Loading.stories.js +10 -0
- package/src/components/molecules/LogoLoading/index.js +12 -0
- package/src/components/molecules/LogoLoading/styles.js +16 -0
- package/src/components/molecules/RegistrationFirstStep/RegistrationFirstStep.stories.js +11 -0
- package/src/components/molecules/RegistrationFirstStep/index.js +227 -0
- package/src/components/molecules/RegistrationFirstStep/styles.js +87 -0
- package/src/components/molecules/RegistrationSecondStep/RegistrationSecondStep.stories.js +11 -0
- package/src/components/molecules/RegistrationSecondStep/index.js +136 -0
- package/src/components/molecules/RegistrationSecondStep/styles.js +64 -0
- package/src/components/molecules/RegistrationThirdStep/RegistrationThirdStep.stories.js +11 -0
- package/src/components/molecules/RegistrationThirdStep/index.js +130 -0
- package/src/components/molecules/RegistrationThirdStep/styles.js +44 -0
- package/src/components/molecules/SignInLogin/SignInLogin.stories.js +11 -0
- package/src/components/molecules/SignInLogin/index.js +226 -0
- package/src/components/molecules/SignInLogin/styles.js +120 -0
- package/src/components/molecules/TagAndInput/index.js +2 -0
- package/src/components/molecules/VerificationCodeResetPasswordLogin/VerificationCodeResetPasswordLogin.stories.js +11 -0
- package/src/components/molecules/VerificationCodeResetPasswordLogin/index.js +171 -0
- package/src/components/molecules/VerificationCodeResetPasswordLogin/styles.js +54 -0
- package/src/components/molecules/VerificationCodeResetPasswordLogin/utils.js +54 -0
- package/src/components/organisms/ChangePassword/ChangePassword.stories.js +11 -0
- package/src/components/organisms/ChangePassword/index.js +77 -0
- package/src/components/organisms/ChangePassword/styles.js +13 -0
- package/src/index.js +22 -1
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
+
|
|
5
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8
|
+
value: true
|
|
9
|
+
});
|
|
10
|
+
exports.VerticalSideMenuMainPage = void 0;
|
|
11
|
+
|
|
12
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
13
|
+
|
|
14
|
+
var _styles = require("./styles");
|
|
15
|
+
|
|
16
|
+
var _iconLogoContentoh = _interopRequireDefault(require("../../../assets/images/verticalSideMenuMainPage/iconLogoContentoh.svg"));
|
|
17
|
+
|
|
18
|
+
var _iconProduct = _interopRequireDefault(require("../../../assets/images/verticalSideMenuMainPage/iconProduct.svg"));
|
|
19
|
+
|
|
20
|
+
var _iconGroup = _interopRequireDefault(require("../../../assets/images/verticalSideMenuMainPage/iconGroup.svg"));
|
|
21
|
+
|
|
22
|
+
var _iconLogo = _interopRequireDefault(require("../../../assets/images/verticalSideMenuMainPage/iconLogo.svg"));
|
|
23
|
+
|
|
24
|
+
var _iconSpeedometer = _interopRequireDefault(require("../../../assets/images/verticalSideMenuMainPage/iconSpeedometer.svg"));
|
|
25
|
+
|
|
26
|
+
var _iconTask = _interopRequireDefault(require("../../../assets/images/verticalSideMenuMainPage/iconTask.svg"));
|
|
27
|
+
|
|
28
|
+
var _openMenu = _interopRequireDefault(require("../../../assets/images/verticalSideMenuMainPage/openMenu.svg"));
|
|
29
|
+
|
|
30
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
31
|
+
|
|
32
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
33
|
+
|
|
34
|
+
var VerticalSideMenuMainPage = function VerticalSideMenuMainPage() {
|
|
35
|
+
var _useState = (0, _react.useState)(false),
|
|
36
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
37
|
+
trueBar = _useState2[0],
|
|
38
|
+
setTrueBar = _useState2[1];
|
|
39
|
+
|
|
40
|
+
var active = function active() {
|
|
41
|
+
console.log(window.location.href); //document.getElementById("slidea1").style.border= "1px solid rgb(227, 58, 169)";
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
45
|
+
bar: trueBar,
|
|
46
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
47
|
+
className: "navbar-top",
|
|
48
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
49
|
+
src: trueBar ? _iconLogoContentoh.default : _iconLogo.default,
|
|
50
|
+
alt: "Logo",
|
|
51
|
+
className: "logo"
|
|
52
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
53
|
+
className: "option",
|
|
54
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
55
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
56
|
+
src: _iconSpeedometer.default,
|
|
57
|
+
alt: "Speed Meter",
|
|
58
|
+
width: "25px"
|
|
59
|
+
})
|
|
60
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
61
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
62
|
+
src: _iconProduct.default,
|
|
63
|
+
alt: "Focus Product",
|
|
64
|
+
width: "25px"
|
|
65
|
+
})
|
|
66
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
67
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
68
|
+
src: _iconGroup.default,
|
|
69
|
+
alt: "Group",
|
|
70
|
+
width: "25px"
|
|
71
|
+
})
|
|
72
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
73
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
74
|
+
src: _iconLogo.default,
|
|
75
|
+
alt: "Logo",
|
|
76
|
+
width: "25px"
|
|
77
|
+
})
|
|
78
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
79
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
80
|
+
src: _iconTask.default,
|
|
81
|
+
alt: "Task",
|
|
82
|
+
width: "25px"
|
|
83
|
+
})
|
|
84
|
+
})]
|
|
85
|
+
})]
|
|
86
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
87
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
88
|
+
src: _openMenu.default,
|
|
89
|
+
alt: "Open Menu",
|
|
90
|
+
onClick: function onClick() {
|
|
91
|
+
setTrueBar(true);
|
|
92
|
+
active();
|
|
93
|
+
}
|
|
94
|
+
})
|
|
95
|
+
})]
|
|
96
|
+
});
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
exports.VerticalSideMenuMainPage = VerticalSideMenuMainPage;
|
|
@@ -0,0 +1,24 @@
|
|
|
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 _templateObject;
|
|
15
|
+
|
|
16
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n height: 100%;\n width: ", "px;\n box-sizing: border-box;\n padding: 23px 10px 70px 10px;\n flex-direction: column;\n justify-content: space-between;\n overflow: auto;\n border-radius: ", "px;\n background: linear-gradient(180deg, #e33aa9 0%, #3b1366 100%);\n scrollbar-width: none;\n display: flex;\n text-align: center;\n img {\n cursor: pointer;\n width:\"25px\" !important;\n }\n .navbar-top {\n & + * {\n margin-top: 15px;\n }\n .option {\n div {\n height: 38px;\n display: flex;\n justify-content: center;\n border-radius: 100%;\n & + * {\n margin-top: 12px;\n }\n }\n div:hover {\n background: #e33aa9;\n }\n }\n .logo {\n cursor: default;\n & + * {\n margin-top: 225%;\n }\n }\n }\n"])), function (_ref) {
|
|
17
|
+
var bar = _ref.bar;
|
|
18
|
+
return bar ? 200 : 58;
|
|
19
|
+
}, function (_ref2) {
|
|
20
|
+
var bar = _ref2.bar;
|
|
21
|
+
return bar ? 20 : 50;
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
exports.Container = Container;
|
|
@@ -22,50 +22,48 @@ var CarouselImagesLogin = function CarouselImagesLogin(_ref) {
|
|
|
22
22
|
panelColor = _ref.panelColor;
|
|
23
23
|
|
|
24
24
|
var carouselStart = function carouselStart() {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
25
|
+
var images = panelImg;
|
|
26
|
+
var i = 1;
|
|
27
|
+
var img1 = document.querySelector("#img1");
|
|
28
|
+
var img2 = document.querySelector("#img2");
|
|
29
|
+
var divIndicadores = document.querySelector("#indicadores");
|
|
30
|
+
|
|
31
|
+
for (var index = 0; index < images.length; index++) {
|
|
32
|
+
var div = document.createElement("div");
|
|
33
|
+
div.classList.add("circles");
|
|
34
|
+
div.id = index;
|
|
35
|
+
divIndicadores.appendChild(div);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
img1.src = images[0];
|
|
39
|
+
var circulos = document.querySelectorAll(".circles");
|
|
40
|
+
circulos[0].classList.add("resaltado");
|
|
41
|
+
|
|
42
|
+
var slideshow = function slideshow() {
|
|
43
|
+
img2.src = images[i];
|
|
44
|
+
var circulo_actual = Array.from(circulos).find(function (el) {
|
|
45
|
+
return el.id == i;
|
|
46
|
+
});
|
|
47
|
+
Array.from(circulos).forEach(function (cir) {
|
|
48
|
+
return cir.classList.remove("resaltado");
|
|
49
|
+
});
|
|
50
|
+
circulo_actual.classList.add("resaltado");
|
|
51
|
+
img1.classList.add("right");
|
|
52
|
+
img2.classList.add("active");
|
|
53
|
+
i++;
|
|
54
|
+
|
|
55
|
+
if (i == images.length) {
|
|
56
|
+
i = 0;
|
|
37
57
|
}
|
|
38
58
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
});
|
|
48
|
-
Array.from(circulos).forEach(function (cir) {
|
|
49
|
-
return cir.classList.remove("resaltado");
|
|
50
|
-
});
|
|
51
|
-
circulo_actual.classList.add("resaltado");
|
|
52
|
-
img1.classList.add("right");
|
|
53
|
-
img2.classList.add("active");
|
|
54
|
-
i++;
|
|
55
|
-
|
|
56
|
-
if (i == images.length) {
|
|
57
|
-
i = 0;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
setTimeout(function () {
|
|
61
|
-
img1.src = img2.src;
|
|
62
|
-
img2.classList.remove("active");
|
|
63
|
-
img1.classList.remove("right");
|
|
64
|
-
}, 1000);
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
setInterval(slideshow, 4000);
|
|
68
|
-
});
|
|
59
|
+
setTimeout(function () {
|
|
60
|
+
img1.src = img2.src;
|
|
61
|
+
img2.classList.remove("active");
|
|
62
|
+
img1.classList.remove("right");
|
|
63
|
+
}, 1000);
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
setInterval(slideshow, 4000);
|
|
69
67
|
};
|
|
70
68
|
|
|
71
69
|
(0, _react.useEffect)(function () {
|
|
@@ -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.EmailResetPasswordLoginDefault = 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/EmailResetPasswordLogin",
|
|
18
|
+
component: _index.EmailResetPasswordLogin
|
|
19
|
+
};
|
|
20
|
+
exports.default = _default;
|
|
21
|
+
|
|
22
|
+
var Template = function Template(args) {
|
|
23
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.EmailResetPasswordLogin, (0, _objectSpread2.default)({}, args));
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
var EmailResetPasswordLoginDefault = Template.bind({});
|
|
27
|
+
exports.EmailResetPasswordLoginDefault = EmailResetPasswordLoginDefault;
|
|
28
|
+
EmailResetPasswordLoginDefault.args = {};
|
|
@@ -0,0 +1,153 @@
|
|
|
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.EmailResetPasswordLogin = void 0;
|
|
9
|
+
|
|
10
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
11
|
+
|
|
12
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/asyncToGenerator"));
|
|
13
|
+
|
|
14
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
15
|
+
|
|
16
|
+
var _styles = require("./styles");
|
|
17
|
+
|
|
18
|
+
var _GradientPanel = require("../../atoms/GradientPanel");
|
|
19
|
+
|
|
20
|
+
var _react = require("react");
|
|
21
|
+
|
|
22
|
+
var _LogoImage = require("../../atoms/LogoImage");
|
|
23
|
+
|
|
24
|
+
var _ScreenHeader = require("../../atoms/ScreenHeader");
|
|
25
|
+
|
|
26
|
+
var _variables = require("../../../global-files/variables");
|
|
27
|
+
|
|
28
|
+
var _TagAndInput = require("../../molecules/TagAndInput");
|
|
29
|
+
|
|
30
|
+
var _GeneralButton = require("../../atoms/GeneralButton");
|
|
31
|
+
|
|
32
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
33
|
+
|
|
34
|
+
var EmailResetPasswordLogin = function EmailResetPasswordLogin(props) {
|
|
35
|
+
var _useState = (0, _react.useState)(false),
|
|
36
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
37
|
+
emptyEmail = _useState2[0],
|
|
38
|
+
setEmptyEmail = _useState2[1];
|
|
39
|
+
|
|
40
|
+
var _useState3 = (0, _react.useState)(false),
|
|
41
|
+
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
42
|
+
invalidEmail = _useState4[0],
|
|
43
|
+
setInvalidEmail = _useState4[1];
|
|
44
|
+
|
|
45
|
+
var _useState5 = (0, _react.useState)(false),
|
|
46
|
+
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
|
47
|
+
showErrors = _useState6[0],
|
|
48
|
+
setShowErrors = _useState6[1];
|
|
49
|
+
|
|
50
|
+
var _useState7 = (0, _react.useState)(""),
|
|
51
|
+
_useState8 = (0, _slicedToArray2.default)(_useState7, 2),
|
|
52
|
+
awsError = _useState8[0],
|
|
53
|
+
setAwsError = _useState8[1];
|
|
54
|
+
|
|
55
|
+
var validate = /*#__PURE__*/function () {
|
|
56
|
+
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(e) {
|
|
57
|
+
var valid, email;
|
|
58
|
+
return _regenerator.default.wrap(function _callee$(_context) {
|
|
59
|
+
while (1) {
|
|
60
|
+
switch (_context.prev = _context.next) {
|
|
61
|
+
case 0:
|
|
62
|
+
valid = true;
|
|
63
|
+
setShowErrors(true);
|
|
64
|
+
e.preventDefault();
|
|
65
|
+
email = document.querySelector("#emailInput").value.trim();
|
|
66
|
+
email === "" ? setEmptyEmail(true) : setEmptyEmail(false);
|
|
67
|
+
!/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(email) ? setInvalidEmail(true) : setInvalidEmail(false);
|
|
68
|
+
emptyEmail && (valid = false);
|
|
69
|
+
invalidEmail && (valid = false);
|
|
70
|
+
|
|
71
|
+
if (!valid) {
|
|
72
|
+
_context.next = 20;
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
_context.prev = 9;
|
|
77
|
+
_context.next = 12;
|
|
78
|
+
return props.Auth.forgotPassword(email);
|
|
79
|
+
|
|
80
|
+
case 12:
|
|
81
|
+
sessionStorage.setItem("email", JSON.stringify(email));
|
|
82
|
+
sessionStorage.setItem("resetPasswordProcess", JSON.stringify("true"));
|
|
83
|
+
props.setPaso(5);
|
|
84
|
+
_context.next = 20;
|
|
85
|
+
break;
|
|
86
|
+
|
|
87
|
+
case 17:
|
|
88
|
+
_context.prev = 17;
|
|
89
|
+
_context.t0 = _context["catch"](9);
|
|
90
|
+
setAwsError(_context.t0.code);
|
|
91
|
+
|
|
92
|
+
case 20:
|
|
93
|
+
case "end":
|
|
94
|
+
return _context.stop();
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}, _callee, null, [[9, 17]]);
|
|
98
|
+
}));
|
|
99
|
+
|
|
100
|
+
return function validate(_x) {
|
|
101
|
+
return _ref.apply(this, arguments);
|
|
102
|
+
};
|
|
103
|
+
}();
|
|
104
|
+
|
|
105
|
+
var loginRight = [/*#__PURE__*/(0, _jsxRuntime.jsx)(_LogoImage.LogoImage, {}, "1"), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
106
|
+
className: "credenciales",
|
|
107
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
108
|
+
fontFamily: _variables.FontFamily.AvenirNext,
|
|
109
|
+
color: _variables.GlobalColors.s5,
|
|
110
|
+
text: "Ingresa tus credenciales"
|
|
111
|
+
})
|
|
112
|
+
}, "2"), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
113
|
+
className: "user",
|
|
114
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
115
|
+
inputType: "text",
|
|
116
|
+
inputId: "emailInput",
|
|
117
|
+
label: "Nombre de usuario",
|
|
118
|
+
inputPlaceHolder: "username@contentoh.com"
|
|
119
|
+
}), showErrors && emptyEmail && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
120
|
+
children: "Ingrese su correo"
|
|
121
|
+
}), showErrors && invalidEmail && !emptyEmail && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
122
|
+
children: "Ingrese un correo valido"
|
|
123
|
+
}), showErrors && awsError === "LimitExceededException" && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
124
|
+
children: "Has cambiado la contrase\xF1a recientemente, intenta despues"
|
|
125
|
+
})]
|
|
126
|
+
}, "3"), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
127
|
+
className: "button-center",
|
|
128
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
129
|
+
buttonType: "general-default-button",
|
|
130
|
+
label: "Enviar",
|
|
131
|
+
onClick: function onClick(e) {
|
|
132
|
+
return validate(e);
|
|
133
|
+
}
|
|
134
|
+
})
|
|
135
|
+
}, "4"), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
136
|
+
className: "back-login",
|
|
137
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
138
|
+
onClick: function onClick() {
|
|
139
|
+
return props.setPaso(7);
|
|
140
|
+
},
|
|
141
|
+
children: "Regresar..."
|
|
142
|
+
})
|
|
143
|
+
}, "5")];
|
|
144
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
145
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_GradientPanel.GradientPanel, {
|
|
146
|
+
componentsArray: loginRight,
|
|
147
|
+
panelType: "home-login",
|
|
148
|
+
panelColor: _variables.GlobalColors.white
|
|
149
|
+
})
|
|
150
|
+
});
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
exports.EmailResetPasswordLogin = EmailResetPasswordLogin;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.Container = void 0;
|
|
9
|
+
|
|
10
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
11
|
+
|
|
12
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
|
+
|
|
14
|
+
var _variables = require("../../../global-files/variables");
|
|
15
|
+
|
|
16
|
+
var _templateObject;
|
|
17
|
+
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n width: 50%;\n height: 100vh;\n .button-center {\n text-align: center;\n .general-default-button {\n width: 160px;\n }\n }\n .back-login {\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"])), _variables.GlobalColors.secondary_magenta, _variables.FontFamily.Raleway);
|
|
19
|
+
|
|
20
|
+
exports.Container = Container;
|
|
@@ -20,7 +20,8 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
20
20
|
var LoginPasswordStrength = function LoginPasswordStrength(_ref) {
|
|
21
21
|
var emptyPassword = _ref.emptyPassword,
|
|
22
22
|
emptyConfirmPassword = _ref.emptyConfirmPassword,
|
|
23
|
-
matchPasswords = _ref.matchPasswords
|
|
23
|
+
matchPasswords = _ref.matchPasswords,
|
|
24
|
+
required = _ref.required;
|
|
24
25
|
|
|
25
26
|
var _useState = (0, _react.useState)(0),
|
|
26
27
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -60,9 +61,6 @@ var LoginPasswordStrength = function LoginPasswordStrength(_ref) {
|
|
|
60
61
|
});
|
|
61
62
|
break;
|
|
62
63
|
|
|
63
|
-
case "confirmPasswordInput":
|
|
64
|
-
break;
|
|
65
|
-
|
|
66
64
|
default:
|
|
67
65
|
return;
|
|
68
66
|
}
|
|
@@ -74,11 +72,12 @@ var LoginPasswordStrength = function LoginPasswordStrength(_ref) {
|
|
|
74
72
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
75
73
|
inputType: "password",
|
|
76
74
|
inputId: "newPasswordInput",
|
|
77
|
-
label: "Ingrese su nueva contraseña"
|
|
75
|
+
label: "Ingrese su nueva contraseña",
|
|
76
|
+
required: required
|
|
78
77
|
}), emptyPassword && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
79
78
|
children: "La contrase\xF1a debe ser minimo de 8 caracteres"
|
|
80
79
|
})]
|
|
81
|
-
}
|
|
80
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
82
81
|
className: "divPasswordStrength",
|
|
83
82
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.ItemPasswordStrength, {
|
|
84
83
|
paso: 1,
|
|
@@ -113,18 +112,19 @@ var LoginPasswordStrength = function LoginPasswordStrength(_ref) {
|
|
|
113
112
|
children: "Fuerte"
|
|
114
113
|
})]
|
|
115
114
|
})]
|
|
116
|
-
}
|
|
115
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
117
116
|
className: "user",
|
|
118
117
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
119
118
|
inputType: "password",
|
|
120
119
|
inputId: "confirmPasswordInput",
|
|
121
|
-
label: "Confirme la nueva contraseña"
|
|
120
|
+
label: "Confirme la nueva contraseña",
|
|
121
|
+
required: required
|
|
122
122
|
}), emptyConfirmPassword && !emptyPassword && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
123
123
|
children: "Confirme la contrase\xF1a"
|
|
124
124
|
}), !emptyConfirmPassword && !emptyPassword && !matchPasswords && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
125
125
|
children: "La contrase\xF1a no coincide"
|
|
126
126
|
})]
|
|
127
|
-
}
|
|
127
|
+
})]
|
|
128
128
|
});
|
|
129
129
|
};
|
|
130
130
|
|
|
@@ -15,7 +15,7 @@ var _variables = require("../../../global-files/variables");
|
|
|
15
15
|
|
|
16
16
|
var _templateObject, _templateObject2, _templateObject3;
|
|
17
17
|
|
|
18
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n .divPasswordStrength {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-top: 30px;\n & + * {\n margin-top: 40px;\n }\n }\n label {\n color: red;\n margin-top: 3px;\n margin-left: 15px;\n font-family: ", ";\n font-size: 11px;\n }\n"])), _variables.FontFamily.Raleway_700);
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n margin-bottom: 15px;\n .divPasswordStrength {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-top: 30px;\n & + * {\n margin-top: 40px;\n }\n }\n label {\n color: red;\n margin-top: 3px;\n margin-left: 15px;\n font-family: ", ";\n font-size: 11px;\n }\n & + * {\n margin-top: 20px;\n }\n"])), _variables.FontFamily.Raleway_700);
|
|
19
19
|
|
|
20
20
|
exports.Container = Container;
|
|
21
21
|
|
|
@@ -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.LogoLoadingDefault = 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/LogoLoading",
|
|
18
|
+
component: _index.LogoLoading
|
|
19
|
+
};
|
|
20
|
+
exports.default = _default;
|
|
21
|
+
|
|
22
|
+
var Template = function Template(args) {
|
|
23
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.LogoLoading, (0, _objectSpread2.default)({}, args));
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
var LogoLoadingDefault = Template.bind({});
|
|
27
|
+
exports.LogoLoadingDefault = LogoLoadingDefault;
|
|
28
|
+
LogoLoadingDefault.args = {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.LogoLoading = void 0;
|
|
7
|
+
|
|
8
|
+
var _styles = require("./styles");
|
|
9
|
+
|
|
10
|
+
var _Loading = require("../../atoms/Loading");
|
|
11
|
+
|
|
12
|
+
var _LogoImage = require("../../atoms/LogoImage");
|
|
13
|
+
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
|
|
16
|
+
var LogoLoading = function LogoLoading() {
|
|
17
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
18
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_LogoImage.LogoImage, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Loading.Loading, {})]
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
exports.LogoLoading = LogoLoading;
|
|
@@ -0,0 +1,18 @@
|
|
|
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 _templateObject;
|
|
15
|
+
|
|
16
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n height: 100vh;\n width: 50%;\n padding-top: 25%;\n .logo {\n text-align: center;\n img {\n width: 65%;\n }\n }\n .loading {\n height: 10%;\n }\n"])));
|
|
17
|
+
|
|
18
|
+
exports.Container = Container;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = exports.RegistrationFirstStepDefault = void 0;
|
|
9
|
+
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
+
|
|
12
|
+
var _index = require("./index");
|
|
13
|
+
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
|
|
16
|
+
var _default = {
|
|
17
|
+
title: "Components/molecules/RegistrationFirstStep",
|
|
18
|
+
component: _index.RegistrationFirstStep
|
|
19
|
+
};
|
|
20
|
+
exports.default = _default;
|
|
21
|
+
|
|
22
|
+
var Template = function Template(args) {
|
|
23
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.RegistrationFirstStep, (0, _objectSpread2.default)({}, args));
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
var RegistrationFirstStepDefault = Template.bind({});
|
|
27
|
+
exports.RegistrationFirstStepDefault = RegistrationFirstStepDefault;
|
|
28
|
+
RegistrationFirstStepDefault.args = {};
|