contentoh-components-library 21.0.26 → 21.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/atoms/Loading/Loading.stories.js +28 -0
- package/dist/components/atoms/Loading/index.js +27 -0
- package/dist/components/atoms/Loading/styles.js +18 -0
- package/dist/components/molecules/EmailResetPasswordLogin/EmailResetPasswordLogin.stories.js +28 -0
- package/dist/components/molecules/EmailResetPasswordLogin/index.js +155 -0
- package/dist/components/molecules/EmailResetPasswordLogin/styles.js +20 -0
- package/dist/components/molecules/RegistrationFirstStep/RegistrationFirstStep.stories.js +28 -0
- package/dist/components/molecules/RegistrationFirstStep/index.js +336 -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 +156 -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 +161 -0
- package/dist/components/molecules/RegistrationThirdStep/styles.js +20 -0
- package/dist/components/molecules/SignInLogin/index.js +217 -67
- package/dist/components/molecules/SignInLogin/styles.js +1 -1
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/VerificationCodeResetPasswordLogin.stories.js +28 -0
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/index.js +104 -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 +113 -0
- package/dist/components/organisms/ChangePassword/styles.js +18 -0
- package/dist/index.js +138 -47
- package/package.json +5 -2
- package/src/components/atoms/Loading/Loading.stories.js +10 -0
- package/src/components/atoms/Loading/index.js +13 -0
- package/src/components/atoms/Loading/styles.js +57 -0
- package/src/components/molecules/EmailResetPasswordLogin/EmailResetPasswordLogin.stories.js +11 -0
- package/src/components/molecules/EmailResetPasswordLogin/index.js +86 -0
- package/src/components/molecules/EmailResetPasswordLogin/styles.js +23 -0
- package/src/components/molecules/RegistrationFirstStep/RegistrationFirstStep.stories.js +11 -0
- package/src/components/molecules/RegistrationFirstStep/index.js +242 -0
- package/src/components/molecules/RegistrationFirstStep/styles.js +81 -0
- package/src/components/molecules/RegistrationSecondStep/RegistrationSecondStep.stories.js +11 -0
- package/src/components/molecules/RegistrationSecondStep/index.js +97 -0
- package/src/components/molecules/RegistrationSecondStep/styles.js +59 -0
- package/src/components/molecules/RegistrationThirdStep/RegistrationThirdStep.stories.js +11 -0
- package/src/components/molecules/RegistrationThirdStep/index.js +109 -0
- package/src/components/molecules/RegistrationThirdStep/styles.js +44 -0
- package/src/components/molecules/SignInLogin/index.js +181 -55
- package/src/components/molecules/SignInLogin/styles.js +1 -0
- package/src/components/molecules/VerificationCodeResetPasswordLogin/VerificationCodeResetPasswordLogin.stories.js +11 -0
- package/src/components/molecules/VerificationCodeResetPasswordLogin/index.js +78 -0
- package/src/components/molecules/VerificationCodeResetPasswordLogin/styles.js +49 -0
- package/src/components/molecules/VerificationCodeResetPasswordLogin/utils.js +56 -0
- package/src/components/organisms/ChangePassword/ChangePassword.stories.js +11 -0
- package/src/components/organisms/ChangePassword/index.js +63 -0
- package/src/components/organisms/ChangePassword/styles.js +16 -0
- package/src/index.js +7 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Container } from "./styles";
|
|
2
|
+
import { LoginPasswordStrength } from "../../molecules/LoginPasswordStrength";
|
|
3
|
+
import { useState } from "react";
|
|
4
|
+
import { Button } from "../../atoms/GeneralButton";
|
|
5
|
+
import { LogoImage } from "../../atoms/LogoImage";
|
|
6
|
+
import { ScreenHeader } from "../../atoms/ScreenHeader";
|
|
7
|
+
import { GlobalColors, FontFamily } from "../../../global-files/variables";
|
|
8
|
+
import { GradientPanel } from "../../atoms/GradientPanel";
|
|
9
|
+
|
|
10
|
+
export const ChangePassword = () => {
|
|
11
|
+
const [emptyPassword, setEmptyPassword] = useState(false);
|
|
12
|
+
const [emptyConfirmPassword, setEmptyConfirmPassword] = useState(false);
|
|
13
|
+
const [matchPasswords, setMatchPasswords] = useState(true);
|
|
14
|
+
const validate = async (e) => {
|
|
15
|
+
e.preventDefault();
|
|
16
|
+
const password = document.querySelector("#newPasswordInput").value;
|
|
17
|
+
password.length < 8 ? setEmptyPassword(true) : setEmptyPassword(false);
|
|
18
|
+
const confirmPassword = document.querySelector(
|
|
19
|
+
"#confirmPasswordInput"
|
|
20
|
+
).value;
|
|
21
|
+
confirmPassword === ""
|
|
22
|
+
? setEmptyConfirmPassword(true)
|
|
23
|
+
: setEmptyConfirmPassword(false);
|
|
24
|
+
if (password === confirmPassword) {
|
|
25
|
+
setMatchPasswords(true);
|
|
26
|
+
} else {
|
|
27
|
+
setMatchPasswords(false);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
const loginRight = [
|
|
31
|
+
<LogoImage key="1" />,
|
|
32
|
+
<div className="credenciales" key={"2"}>
|
|
33
|
+
<ScreenHeader
|
|
34
|
+
fontFamily={FontFamily.AvenirNext}
|
|
35
|
+
color={GlobalColors.s5}
|
|
36
|
+
text={"Ingresa tus credenciales"}
|
|
37
|
+
/>
|
|
38
|
+
</div>,
|
|
39
|
+
<LoginPasswordStrength
|
|
40
|
+
emptyPassword={emptyPassword}
|
|
41
|
+
emptyConfirmPassword={emptyConfirmPassword}
|
|
42
|
+
matchPasswords={matchPasswords}
|
|
43
|
+
textTittle={"Ingresa tus credenciales"}
|
|
44
|
+
key="3"
|
|
45
|
+
/>,
|
|
46
|
+
<div className="button-center" key="4">
|
|
47
|
+
<Button
|
|
48
|
+
buttonType={"general-default-button"}
|
|
49
|
+
label={"Enviar"}
|
|
50
|
+
onClick={(e) => validate(e)}
|
|
51
|
+
/>
|
|
52
|
+
</div>,
|
|
53
|
+
];
|
|
54
|
+
return (
|
|
55
|
+
<Container>
|
|
56
|
+
<GradientPanel
|
|
57
|
+
panelColor={GlobalColors.white}
|
|
58
|
+
componentsArray={loginRight}
|
|
59
|
+
panelType={"home-login"}
|
|
60
|
+
></GradientPanel>
|
|
61
|
+
</Container>
|
|
62
|
+
);
|
|
63
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
|
|
3
|
+
export const Container = styled.div`
|
|
4
|
+
display: flex;
|
|
5
|
+
width: 50%;
|
|
6
|
+
height: 100vh;
|
|
7
|
+
.button-center {
|
|
8
|
+
text-align: center;
|
|
9
|
+
position: absolute;
|
|
10
|
+
bottom: 5%;
|
|
11
|
+
left: calc(75% - 80px);
|
|
12
|
+
.general-default-button {
|
|
13
|
+
width: 160px;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
`;
|
package/src/index.js
CHANGED
|
@@ -11,6 +11,7 @@ export * from "./components/atoms/GeneralButton/index";
|
|
|
11
11
|
export * from "./components/atoms/GeneralInput/index";
|
|
12
12
|
export * from "./components/atoms/GeneralTextBox/index";
|
|
13
13
|
export * from "./components/atoms/GradientPanel/index";
|
|
14
|
+
export * from "./components/atoms/Loading/index";
|
|
14
15
|
export * from "./components/atoms/PriorityFlag/index";
|
|
15
16
|
export * from "./components/atoms/ProductImage/index";
|
|
16
17
|
export * from "./components/atoms/ProgressBar/index";
|
|
@@ -24,6 +25,7 @@ export * from "./components/atoms/ValidationPanel/index";
|
|
|
24
25
|
export * from "./components/molecules/AvatarAndValidation/index";
|
|
25
26
|
export * from "./components/molecules/CarouselImagesLogin";
|
|
26
27
|
export * from "./components/molecules/EditionActiveImage/index";
|
|
28
|
+
export * from "./components/molecules/EmailResetPasswordLogin/index";
|
|
27
29
|
export * from "./components/molecules/FeaturesBar/index";
|
|
28
30
|
export * from "./components/molecules/GalleryElement/index";
|
|
29
31
|
export * from "./components/molecules/HeaderTop/index";
|
|
@@ -31,14 +33,19 @@ export * from "./components/molecules/ImageSelector/index";
|
|
|
31
33
|
export * from "./components/molecules/LoginPasswordStrength";
|
|
32
34
|
export * from "./components/molecules/PlanSelection/index";
|
|
33
35
|
export * from "./components/molecules/ProductNameHeader/index";
|
|
36
|
+
export * from "./components/molecules/RegistrationFirstStep/index";
|
|
37
|
+
export * from "./components/molecules/RegistrationSecondStep/index";
|
|
38
|
+
export * from "./components/molecules/RegistrationThirdStep/index";
|
|
34
39
|
export * from "./components/molecules/SignInLogin/index";
|
|
35
40
|
export * from "./components/molecules/StatusAsignationInfo/index";
|
|
36
41
|
export * from "./components/molecules/TableHeader/index";
|
|
37
42
|
export * from "./components/molecules/TableRow/index";
|
|
38
43
|
export * from "./components/molecules/TabsMenu/index";
|
|
39
44
|
export * from "./components/molecules/TagAndInput/index";
|
|
45
|
+
export * from "./components/molecules/VerificationCodeResetPasswordLogin/index";
|
|
40
46
|
|
|
41
47
|
//organisms
|
|
48
|
+
export * from "./components/organisms/ChangePassword/index";
|
|
42
49
|
export * from "./components/organisms/Fullplan/index";
|
|
43
50
|
export * from "./components/organisms/FullProductNameHeader/index";
|
|
44
51
|
export * from "./components/organisms/FullTabsMenu/index";
|