contentoh-components-library 21.0.65 → 21.0.68
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 +5 -18
- package/.env.production +3 -16
- package/CHANGELOG.md +33 -31
- package/dist/assets/images/carouselImagesLogin/login2.svg +117 -0
- package/dist/assets/images/carouselImagesLogin/login3.svg +147 -0
- package/dist/assets/images/carouselImagesLogin/loginImage.svg +301 -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/components/atoms/AsignationOption/index.js +5 -9
- package/dist/components/atoms/AsignationOption/styles.js +1 -1
- package/dist/components/atoms/CheckBox/index.js +2 -4
- package/dist/components/atoms/GeneralButton/index.js +0 -5
- package/dist/components/atoms/GeneralButton/styles.js +2 -4
- package/dist/components/atoms/GeneralInput/index.js +25 -72
- package/dist/components/atoms/GeneralInput/styles.js +1 -7
- package/dist/components/atoms/GenericModal/index.js +2 -4
- package/dist/components/atoms/GenericModal/styles.js +1 -1
- package/dist/components/atoms/GradientPanel/styles.js +1 -1
- package/dist/components/atoms/ListCommercialRetailers/ListCommercialRetailers.stories.js +36 -0
- package/dist/components/atoms/ListCommercialRetailers/index.js +64 -0
- package/dist/components/atoms/ListCommercialRetailers/styles.js +20 -0
- 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/MenuCommercialRetailers/MenuCommercialRetailers.stories.js +37 -0
- package/dist/components/atoms/MenuCommercialRetailers/index.js +25 -0
- package/dist/components/{molecules/RetailerSelector → atoms/MenuCommercialRetailers}/styles.js +1 -1
- package/dist/components/atoms/MenuProductImage/MenuProductImage.stories.js +28 -0
- package/dist/components/atoms/MenuProductImage/index.js +88 -0
- package/dist/components/atoms/MenuProductImage/styles.js +20 -0
- package/dist/components/atoms/PriorityFlag/index.js +1 -1
- package/dist/components/atoms/ProductImage/styles.js +1 -1
- package/dist/components/atoms/ProgressBar/index.js +2 -2
- package/dist/components/atoms/ProgressBar/styles.js +5 -3
- package/dist/components/atoms/ScreenHeader/index.js +1 -1
- package/dist/components/atoms/ScreenHeader/styles.js +1 -1
- 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/StatusTag/index.js +2 -37
- package/dist/components/atoms/StatusTag/styles.js +1 -1
- package/dist/components/atoms/ValidationPanel/index.js +3 -4
- package/dist/components/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +22 -0
- package/dist/components/atoms/VerticalSideMenuMainPage/index.js +49 -0
- package/dist/components/atoms/{Commentary → VerticalSideMenuMainPage}/styles.js +1 -6
- package/dist/components/molecules/ApproveRejetPanel/ApproveRejetPanel.stories.js +25 -0
- package/dist/components/molecules/ApproveRejetPanel/index.js +49 -0
- package/dist/components/{atoms/CharCounter → molecules/ApproveRejetPanel}/styles.js +1 -3
- package/dist/components/molecules/AvatarAndValidation/index.js +7 -17
- package/dist/components/molecules/AvatarAndValidation/styles.js +1 -1
- 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/FeaturesBar/index.js +1 -1
- package/dist/components/molecules/GalleryElement/index.js +21 -80
- package/dist/components/molecules/GalleryElement/styles.js +1 -1
- package/dist/components/molecules/GalleryHeader/index.js +6 -28
- package/dist/components/molecules/GalleryHeader/styles.js +1 -1
- package/dist/components/molecules/ImageSelector/index.js +4 -2
- package/dist/components/molecules/LoginPasswordStrength/index.js +6 -6
- package/dist/components/molecules/LoginPasswordStrength/styles.js +1 -1
- package/dist/components/{atoms/CharCounter/CharCounter.stories.js → molecules/LogoLoading/Loading.stories.js} +7 -10
- package/dist/components/molecules/LogoLoading/index.js +22 -0
- package/dist/components/molecules/LogoLoading/styles.js +18 -0
- package/dist/components/molecules/ProductNameHeader/index.js +2 -1
- 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 +169 -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 +321 -0
- package/dist/components/molecules/SignInLogin/styles.js +20 -0
- package/dist/components/molecules/SignInLoginCreationApp/SignInLogin.stories.js +28 -0
- package/dist/components/molecules/SignInLoginCreationApp/index.js +270 -0
- package/dist/components/molecules/SignInLoginCreationApp/styles.js +20 -0
- package/dist/components/molecules/StatusAsignationInfo/index.js +25 -46
- package/dist/components/molecules/StatusAsignationInfo/styles.js +1 -1
- package/dist/components/molecules/TableHeader/index.js +5 -12
- package/dist/components/molecules/TableHeader/styles.js +1 -1
- package/dist/components/molecules/TagAndInput/index.js +2 -24
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/VerificationCodeResetPasswordLogin.stories.js +28 -0
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/index.js +210 -0
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/styles.js +20 -0
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/utils.js +69 -0
- package/dist/components/{atoms/InputFormatter/Wysiwyg.stories.js → organisms/ChangePassword/ChangePassword.stories.js} +7 -9
- package/dist/components/organisms/ChangePassword/index.js +123 -0
- package/dist/components/organisms/ChangePassword/styles.js +18 -0
- package/dist/components/organisms/FullProductNameHeader/index.js +8 -32
- package/dist/components/organisms/FullTabsMenu/index.js +5 -18
- package/dist/components/organisms/ImageDataTable/index.js +14 -90
- package/dist/components/organisms/InputGroup/index.js +13 -34
- package/dist/components/organisms/InputGroup/styles.js +1 -1
- package/dist/components/organisms/ProductImageModal/index.js +11 -15
- package/dist/components/organisms/ProductImageModal/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +347 -91
- package/dist/components/pages/RetailerProductEdition/index.js +60 -1608
- package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
- package/dist/global-files/data.js +53 -212
- package/dist/global-files/global-styles.css +0 -1
- package/dist/global-files/variables.js +0 -1
- package/dist/index.js +277 -30
- package/package.json +14 -12
- 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/components/atoms/AsignationOption/index.js +5 -7
- package/src/components/atoms/AsignationOption/styles.js +1 -9
- package/src/components/atoms/CheckBox/index.js +2 -8
- package/src/components/atoms/GeneralButton/index.js +2 -9
- package/src/components/atoms/GeneralButton/styles.js +0 -23
- package/src/components/atoms/GeneralInput/index.js +23 -71
- package/src/components/atoms/GeneralInput/styles.js +1 -11
- package/src/components/atoms/GenericModal/index.js +2 -2
- package/src/components/atoms/GenericModal/styles.js +2 -10
- 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/PriorityFlag/index.js +1 -1
- package/src/components/atoms/ProductImage/styles.js +1 -1
- package/src/components/atoms/ProgressBar/index.js +2 -2
- package/src/components/atoms/ProgressBar/styles.js +3 -54
- package/src/components/atoms/ScreenHeader/index.js +3 -7
- package/src/components/atoms/ScreenHeader/styles.js +2 -9
- 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/StatusTag/index.js +2 -30
- package/src/components/atoms/StatusTag/styles.js +3 -15
- package/src/components/atoms/ValidationPanel/index.js +3 -3
- package/src/components/molecules/AvatarAndValidation/index.js +6 -24
- package/src/components/molecules/AvatarAndValidation/styles.js +1 -1
- 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/FeaturesBar/index.js +7 -10
- package/src/components/molecules/GalleryElement/index.js +36 -75
- package/src/components/molecules/GalleryElement/styles.js +11 -38
- package/src/components/molecules/GalleryHeader/index.js +8 -14
- package/src/components/molecules/GalleryHeader/styles.js +0 -16
- package/src/components/molecules/ImageSelector/index.js +3 -2
- package/src/components/molecules/LoginPasswordStrength/index.js +8 -3
- package/src/components/molecules/LoginPasswordStrength/styles.js +3 -0
- 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/ProductNameHeader/index.js +2 -1
- 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 +130 -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 +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 +228 -0
- package/src/components/molecules/SignInLogin/styles.js +120 -0
- package/src/components/molecules/StatusAsignationInfo/index.js +38 -62
- package/src/components/molecules/StatusAsignationInfo/styles.js +2 -12
- package/src/components/molecules/TableHeader/index.js +3 -16
- package/src/components/molecules/TableHeader/styles.js +0 -5
- package/src/components/molecules/TagAndInput/index.js +2 -24
- package/src/components/molecules/VerificationCodeResetPasswordLogin/VerificationCodeResetPasswordLogin.stories.js +11 -0
- package/src/components/molecules/VerificationCodeResetPasswordLogin/index.js +170 -0
- package/src/components/molecules/VerificationCodeResetPasswordLogin/styles.js +51 -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 +76 -0
- package/src/components/organisms/ChangePassword/styles.js +13 -0
- package/src/components/organisms/FullProductNameHeader/index.js +7 -28
- package/src/components/organisms/FullTabsMenu/index.js +3 -15
- package/src/components/organisms/ImageDataTable/index.js +11 -89
- package/src/components/organisms/InputGroup/index.js +11 -46
- package/src/components/organisms/InputGroup/styles.js +0 -3
- package/src/components/organisms/ProductImageModal/index.js +12 -20
- package/src/components/organisms/ProductImageModal/styles.js +0 -3
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +343 -91
- package/src/components/pages/RetailerProductEdition/index.js +48 -1239
- package/src/components/pages/RetailerProductEdition/styles.js +4 -67
- package/src/global-files/data.js +57 -156
- package/src/global-files/global-styles.css +0 -1
- package/src/global-files/variables.js +0 -1
- package/src/index.js +20 -1
- package/dist/assets/images/generalButton/downloadIcon.svg +0 -3
- package/dist/assets/images/modalsSVGs/attributesSent.svg +0 -208
- package/dist/assets/images/modalsSVGs/descriptionSent.svg +0 -237
- package/dist/assets/images/modalsSVGs/providerSent.svg +0 -445
- package/dist/assets/images/modalsSVGs/uploadingImages.svg +0 -148
- package/dist/components/atoms/CharCounter/index.js +0 -22
- package/dist/components/atoms/Commentary/Commentary.stories.js +0 -1
- package/dist/components/atoms/Commentary/index.js +0 -23
- package/dist/components/atoms/Input/index.js +0 -26
- package/dist/components/atoms/Input/style.js +0 -26
- package/dist/components/atoms/InputFormatter/index.js +0 -184
- package/dist/components/atoms/InputFormatter/styles.js +0 -33
- package/dist/components/atoms/LabelToInput/index.js +0 -53
- package/dist/components/atoms/LabelToInput/style.js +0 -22
- package/dist/components/atoms/Percent/Percent.stories.js +0 -39
- package/dist/components/atoms/Percent/index.js +0 -39
- package/dist/components/atoms/Percent/styles.js +0 -20
- package/dist/components/atoms/Select/index.js +0 -39
- package/dist/components/atoms/Select/style.js +0 -32
- package/dist/components/molecules/RetailerSelector/RetailerSelector.stories.js +0 -48
- package/dist/components/molecules/RetailerSelector/index.js +0 -74
- package/dist/components/molecules/TextAndGradient/TextAndGradient.stories.js +0 -31
- package/dist/components/molecules/TextAndGradient/index.js +0 -36
- package/dist/components/molecules/TextAndGradient/styles.js +0 -18
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +0 -102
- package/dist/components/pages/ProviderProductEdition/index.js +0 -1688
- package/dist/components/pages/ProviderProductEdition/styles.js +0 -21
- package/src/assets/images/generalButton/downloadIcon.svg +0 -3
- package/src/assets/images/modalsSVGs/attributesSent.svg +0 -208
- package/src/assets/images/modalsSVGs/descriptionSent.svg +0 -237
- package/src/assets/images/modalsSVGs/providerSent.svg +0 -445
- package/src/assets/images/modalsSVGs/uploadingImages.svg +0 -148
- package/src/components/atoms/CharCounter/CharCounter.stories.js +0 -11
- package/src/components/atoms/CharCounter/index.js +0 -13
- package/src/components/atoms/CharCounter/styles.js +0 -10
- package/src/components/atoms/Commentary/Commentary.stories.js +0 -0
- package/src/components/atoms/Commentary/index.js +0 -9
- package/src/components/atoms/Commentary/styles.js +0 -16
- package/src/components/atoms/Input/index.js +0 -15
- package/src/components/atoms/Input/style.js +0 -31
- package/src/components/atoms/InputFormatter/Wysiwyg.stories.js +0 -12
- package/src/components/atoms/InputFormatter/index.js +0 -144
- package/src/components/atoms/InputFormatter/styles.js +0 -40
- package/src/components/atoms/LabelToInput/index.js +0 -26
- package/src/components/atoms/LabelToInput/style.js +0 -41
- package/src/components/atoms/Select/index.js +0 -35
- package/src/components/atoms/Select/style.js +0 -76
- package/src/components/molecules/RetailerSelector/RetailerSelector.stories.js +0 -35
- package/src/components/molecules/RetailerSelector/index.js +0 -63
- package/src/components/molecules/RetailerSelector/styles.js +0 -18
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +0 -89
- package/src/components/pages/ProviderProductEdition/index.js +0 -1249
- package/src/components/pages/ProviderProductEdition/styles.js +0 -100
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
import { FontFamily, GlobalColors } from "../../../global-files/variables";
|
|
3
|
+
|
|
4
|
+
export const Container = styled.div`
|
|
5
|
+
display: flex;
|
|
6
|
+
width: 50%;
|
|
7
|
+
height: 100%;
|
|
8
|
+
.user {
|
|
9
|
+
.input-name-header {
|
|
10
|
+
margin-top: 10px;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
.button-end {
|
|
14
|
+
text-align: end;
|
|
15
|
+
.general-default-button {
|
|
16
|
+
width: 160px;
|
|
17
|
+
}
|
|
18
|
+
& + * {
|
|
19
|
+
margin-top: 10px;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
.progress-bar {
|
|
23
|
+
width: 100%;
|
|
24
|
+
height: 8px;
|
|
25
|
+
display: flex;
|
|
26
|
+
justify-content: space-between;
|
|
27
|
+
.progress-bar-step-check {
|
|
28
|
+
width: 66.66%;
|
|
29
|
+
background-color: ${GlobalColors.exported};
|
|
30
|
+
}
|
|
31
|
+
.progress-bar-registration {
|
|
32
|
+
background-color: rgb(196, 196, 196);
|
|
33
|
+
width: 33.33%;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
.date-header {
|
|
37
|
+
margin-left: 66.66%;
|
|
38
|
+
.new-login {
|
|
39
|
+
& + * {
|
|
40
|
+
margin-top: 20px;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
`;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SignInLogin } from "./index";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: "Components/molecules/SignInLogin",
|
|
5
|
+
component: SignInLogin,
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
const Template = (args) => <SignInLogin {...args} />;
|
|
9
|
+
|
|
10
|
+
export const SignInLoginDefault = Template.bind({});
|
|
11
|
+
SignInLoginDefault.args = {};
|
|
@@ -0,0 +1,228 @@
|
|
|
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 { LogoLoading } from "../LogoLoading";
|
|
10
|
+
import { Redirect } from "react-router-dom";
|
|
11
|
+
import showPassword from "../../../assets/images/editField/showPassword.png";
|
|
12
|
+
import axios from "axios";
|
|
13
|
+
|
|
14
|
+
export const SignInLogin = (props) => {
|
|
15
|
+
const [emptyEmail, setEmptyEmail] = useState(false);
|
|
16
|
+
const [invalidEmail, setInvalidEmail] = useState(false);
|
|
17
|
+
const [emptyPassword, setEmptyPassword] = useState(false);
|
|
18
|
+
const [showErrors, setShowErrors] = useState(true);
|
|
19
|
+
const [signInError, setSignInError] = useState("");
|
|
20
|
+
const [loading, setLoading] = useState(false);
|
|
21
|
+
const [upgradePlanRedirect, setUpgradePlanRedirect] = useState(false);
|
|
22
|
+
const [showEye, setShowEye] = useState(false);
|
|
23
|
+
const eye = document.getElementById("Eye");
|
|
24
|
+
const input = document.getElementById("passwordInput");
|
|
25
|
+
|
|
26
|
+
const validate = async (e) => {
|
|
27
|
+
setSignInError("");
|
|
28
|
+
setShowErrors(true);
|
|
29
|
+
e.preventDefault();
|
|
30
|
+
let valid = true;
|
|
31
|
+
const email = document.querySelector("#emailInput").value.trim();
|
|
32
|
+
const password = document.querySelector("#passwordInput").value;
|
|
33
|
+
!/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(
|
|
34
|
+
email
|
|
35
|
+
)
|
|
36
|
+
? setInvalidEmail(true)
|
|
37
|
+
: setInvalidEmail(false);
|
|
38
|
+
if (email === "") {
|
|
39
|
+
valid = false;
|
|
40
|
+
setEmptyEmail(true);
|
|
41
|
+
} else {
|
|
42
|
+
setEmptyEmail(false);
|
|
43
|
+
}
|
|
44
|
+
if (password === "") {
|
|
45
|
+
valid = false;
|
|
46
|
+
setEmptyPassword(true);
|
|
47
|
+
} else {
|
|
48
|
+
setEmptyPassword(false);
|
|
49
|
+
}
|
|
50
|
+
if (valid) {
|
|
51
|
+
try {
|
|
52
|
+
setLoading(true);
|
|
53
|
+
const session = await props.Auth.signIn(email, password);
|
|
54
|
+
if (session.challengeName === "NEW_PASSWORD_REQUIRED") {
|
|
55
|
+
props.setUser(session);
|
|
56
|
+
props.setPaso(8);
|
|
57
|
+
} else {
|
|
58
|
+
const userGroup =
|
|
59
|
+
session.signInUserSession.accessToken.payload["cognito:groups"];
|
|
60
|
+
const response = await axios.get(
|
|
61
|
+
process.env.REACT_APP_USER_ENDPOINT,
|
|
62
|
+
{
|
|
63
|
+
headers: {
|
|
64
|
+
Authorization: session.signInUserSession.idToken.jwtToken,
|
|
65
|
+
},
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
if (userGroup[0] === props.users) {
|
|
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
|
+
caches.keys().then((names) => {
|
|
77
|
+
names.forEach((name) => {
|
|
78
|
+
caches.delete(name);
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
user.src = `https://${
|
|
82
|
+
process.env.REACT_APP_IMAGES_PROFILE_BUCKET
|
|
83
|
+
}.s3.amazonaws.com/id-${user.id_user}/${
|
|
84
|
+
user.id_user
|
|
85
|
+
}.png?${new Date().getTime()}`;
|
|
86
|
+
sessionStorage.setItem("user", JSON.stringify(user));
|
|
87
|
+
sessionStorage.setItem("company", JSON.stringify(company));
|
|
88
|
+
setUpgradePlanRedirect(true);
|
|
89
|
+
} else {
|
|
90
|
+
setSignInError("NotAuthorizedException");
|
|
91
|
+
setLoading(false);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
} catch (error) {
|
|
95
|
+
console.log(error.code);
|
|
96
|
+
setLoading(false);
|
|
97
|
+
if (error.code === "NotAuthorizedException") {
|
|
98
|
+
setSignInError("NotAuthorizedException");
|
|
99
|
+
} else if (error.code === "UserNotConfirmedException") {
|
|
100
|
+
sessionStorage.setItem("email", JSON.stringify(email));
|
|
101
|
+
props.setPaso(5);
|
|
102
|
+
} else {
|
|
103
|
+
setSignInError("Error");
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
useEffect(() => {
|
|
110
|
+
sessionStorage.getItem("resetPasswordProcess") &&
|
|
111
|
+
sessionStorage.removeItem("resetPasswordProcess");
|
|
112
|
+
}, []);
|
|
113
|
+
useEffect(() => {
|
|
114
|
+
if (upgradePlanRedirect) setLoading(false);
|
|
115
|
+
}, [upgradePlanRedirect]);
|
|
116
|
+
|
|
117
|
+
const closeEye = (e) => {
|
|
118
|
+
if (input.type === "password") {
|
|
119
|
+
input.type = "text";
|
|
120
|
+
eye.style.opacity = 0.8;
|
|
121
|
+
} else {
|
|
122
|
+
input.type = "password";
|
|
123
|
+
eye.style.opacity = 0.2;
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
return loading ? (
|
|
128
|
+
<LogoLoading />
|
|
129
|
+
) : (
|
|
130
|
+
<>
|
|
131
|
+
<Container className={"home-login"}>
|
|
132
|
+
<div className="main-container">
|
|
133
|
+
<LogoImage />
|
|
134
|
+
<div className="credenciales">
|
|
135
|
+
<ScreenHeader
|
|
136
|
+
fontFamily={FontFamily.AvenirNext}
|
|
137
|
+
color={GlobalColors.s5}
|
|
138
|
+
text={"Ingresa tus credenciales"}
|
|
139
|
+
/>
|
|
140
|
+
</div>
|
|
141
|
+
<div className="user">
|
|
142
|
+
<TagAndInput
|
|
143
|
+
inputType={"text"}
|
|
144
|
+
label={"Nombre de usuario"}
|
|
145
|
+
inputPlaceHolder={"username@contentoh.com"}
|
|
146
|
+
inputId={"emailInput"}
|
|
147
|
+
/>
|
|
148
|
+
</div>
|
|
149
|
+
{showErrors && emptyEmail && <label>Ingrese su correo</label>}
|
|
150
|
+
{invalidEmail && !emptyEmail && (
|
|
151
|
+
<label>Ingrese un correo válido</label>
|
|
152
|
+
)}
|
|
153
|
+
<div className="password">
|
|
154
|
+
<TagAndInput
|
|
155
|
+
inputType={"password"}
|
|
156
|
+
label={"Contraseña"}
|
|
157
|
+
inputPlaceHolder={"Escribe tu contraseña"}
|
|
158
|
+
inputId={"passwordInput"}
|
|
159
|
+
/>
|
|
160
|
+
<img
|
|
161
|
+
src={showPassword}
|
|
162
|
+
alt="show password"
|
|
163
|
+
className="icon"
|
|
164
|
+
id="Eye"
|
|
165
|
+
onClick={(e) => {
|
|
166
|
+
setShowEye(!showEye);
|
|
167
|
+
closeEye(e);
|
|
168
|
+
}}
|
|
169
|
+
></img>
|
|
170
|
+
</div>
|
|
171
|
+
{showErrors && emptyPassword && <label>Ingrese su contraseña</label>}
|
|
172
|
+
<div className="select">
|
|
173
|
+
<CheckBox
|
|
174
|
+
label={"Mantener sesión activada"}
|
|
175
|
+
id={"chk-default"}
|
|
176
|
+
className="active-left"
|
|
177
|
+
/>
|
|
178
|
+
<p onClick={() => props.setPaso(10)} className="active-right">
|
|
179
|
+
Olvide mi contraseña
|
|
180
|
+
</p>
|
|
181
|
+
</div>
|
|
182
|
+
{showErrors && signInError === "NotAuthorizedException" && (
|
|
183
|
+
<label>Correo o contraseña incorrectos</label>
|
|
184
|
+
)}
|
|
185
|
+
{showErrors && signInError === "Error" && (
|
|
186
|
+
<label>Ha habido un problema al iniciar sesión</label>
|
|
187
|
+
)}
|
|
188
|
+
<div className="button-right">
|
|
189
|
+
<Button
|
|
190
|
+
buttonType={"general-default-button"}
|
|
191
|
+
label={"Iniciar sesión"}
|
|
192
|
+
onClick={(e) => validate(e)}
|
|
193
|
+
/>
|
|
194
|
+
</div>
|
|
195
|
+
{props.registration && (
|
|
196
|
+
<div className="new-login">
|
|
197
|
+
<p
|
|
198
|
+
className="pre-registro"
|
|
199
|
+
onClick={() => {
|
|
200
|
+
props.setPaso(1);
|
|
201
|
+
sessionStorage.setItem(
|
|
202
|
+
"nuevoRegistro",
|
|
203
|
+
JSON.stringify({
|
|
204
|
+
name: "",
|
|
205
|
+
lastName: "",
|
|
206
|
+
email: "",
|
|
207
|
+
position: "",
|
|
208
|
+
country: "",
|
|
209
|
+
phone: "",
|
|
210
|
+
commercialName: "",
|
|
211
|
+
companyName: "",
|
|
212
|
+
rfc: "",
|
|
213
|
+
adress: "",
|
|
214
|
+
})
|
|
215
|
+
);
|
|
216
|
+
sessionStorage.setItem("countryCode", JSON.stringify("+52"));
|
|
217
|
+
}}
|
|
218
|
+
>
|
|
219
|
+
¿Aún no tienes cuenta?<span> Regístrate</span>
|
|
220
|
+
</p>
|
|
221
|
+
</div>
|
|
222
|
+
)}
|
|
223
|
+
</div>
|
|
224
|
+
</Container>
|
|
225
|
+
{upgradePlanRedirect && <Redirect to={{ pathname: "/dashboard" }} />}
|
|
226
|
+
</>
|
|
227
|
+
);
|
|
228
|
+
};
|
|
@@ -0,0 +1,120 @@
|
|
|
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: 45px;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
.password {
|
|
34
|
+
& + * {
|
|
35
|
+
margin-top: 20px;
|
|
36
|
+
}
|
|
37
|
+
&:hover {
|
|
38
|
+
border: 1px solid ${GlobalColors.magenta_s2};
|
|
39
|
+
}
|
|
40
|
+
display: flex;
|
|
41
|
+
justify-content: center;
|
|
42
|
+
align-items: center;
|
|
43
|
+
height: 40px;
|
|
44
|
+
position: relative;
|
|
45
|
+
width: 100%;
|
|
46
|
+
border: 1px solid ${GlobalColors.s2};
|
|
47
|
+
.input-container {
|
|
48
|
+
h2 {
|
|
49
|
+
position: absolute;
|
|
50
|
+
top: -25px;
|
|
51
|
+
left: 0;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
#passwordInput {
|
|
55
|
+
width: 100%;
|
|
56
|
+
background-color: white;
|
|
57
|
+
position: absolute;
|
|
58
|
+
top: 8px;
|
|
59
|
+
left: 0;
|
|
60
|
+
right: 0;
|
|
61
|
+
bottom: 8px;
|
|
62
|
+
box-sizing: border-box;
|
|
63
|
+
border: none;
|
|
64
|
+
}
|
|
65
|
+
.icon {
|
|
66
|
+
position: absolute;
|
|
67
|
+
height: 60%;
|
|
68
|
+
position: absolute;
|
|
69
|
+
top: 50%;
|
|
70
|
+
right: 8px;
|
|
71
|
+
transform: translateY(-50%);
|
|
72
|
+
opacity: 0.3;
|
|
73
|
+
cursor: pointer;
|
|
74
|
+
}
|
|
75
|
+
.icon:hover {
|
|
76
|
+
opacity: 0.8;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
.select {
|
|
80
|
+
display: flex;
|
|
81
|
+
justify-content: space-between;
|
|
82
|
+
.active-right {
|
|
83
|
+
font-family: ${FontFamily.AvenirNext};
|
|
84
|
+
font-weight: 500;
|
|
85
|
+
font-size: 13px;
|
|
86
|
+
line-height: 24px;
|
|
87
|
+
letter-spacing: -0.015em;
|
|
88
|
+
color: ${GlobalColors.s5};
|
|
89
|
+
cursor: pointer;
|
|
90
|
+
}
|
|
91
|
+
& + * {
|
|
92
|
+
margin-top: 50px;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
.button-right {
|
|
96
|
+
text-align: right;
|
|
97
|
+
& + * {
|
|
98
|
+
margin-top: 55px;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
.new-login {
|
|
102
|
+
p {
|
|
103
|
+
font-family: ${FontFamily.AvenirNext};
|
|
104
|
+
text-align: right;
|
|
105
|
+
font-weight: 500;
|
|
106
|
+
font-size: 13px;
|
|
107
|
+
line-height: 24px;
|
|
108
|
+
color: ${GlobalColors.s5};
|
|
109
|
+
cursor: pointer;
|
|
110
|
+
span {
|
|
111
|
+
color: ${GlobalColors.secondary_magenta};
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
.main-container {
|
|
117
|
+
max-width: 80%;
|
|
118
|
+
max-height: 80%;
|
|
119
|
+
}
|
|
120
|
+
`;
|
|
@@ -5,24 +5,20 @@ import { StatusTag } from "../../atoms/StatusTag/index";
|
|
|
5
5
|
import { Button } from "../../atoms/GeneralButton";
|
|
6
6
|
import { useEffect, useState } from "react";
|
|
7
7
|
import { AsignationOption } from "../../atoms/AsignationOption/index";
|
|
8
|
-
import { getProfilePicture } from "../../../global-files/data";
|
|
9
8
|
|
|
10
9
|
export const StatusAsignationInfo = ({
|
|
11
10
|
status = "-",
|
|
11
|
+
src,
|
|
12
12
|
imagesSection,
|
|
13
13
|
setImageLayout,
|
|
14
|
+
asignationsList,
|
|
14
15
|
percent = 0,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
isRetailer,
|
|
18
|
-
downloadImages,
|
|
19
|
-
askToDeleteImages,
|
|
16
|
+
saveImages,
|
|
17
|
+
deleteImages,
|
|
20
18
|
id = "default-id",
|
|
21
|
-
onClickSave,
|
|
22
19
|
}) => {
|
|
23
20
|
const [showAsignationPanel, setShowAsignationPanel] = useState(false);
|
|
24
|
-
const [layout, setLayout] = useState(
|
|
25
|
-
const [assignationType, setAssignationType] = useState("facilitator");
|
|
21
|
+
const [layout, setLayout] = useState(true);
|
|
26
22
|
|
|
27
23
|
const closeAsignations = (e) => {
|
|
28
24
|
if (!e.target.closest("#default-id") && showAsignationPanel) {
|
|
@@ -39,22 +35,18 @@ export const StatusAsignationInfo = ({
|
|
|
39
35
|
|
|
40
36
|
return (
|
|
41
37
|
<Container id={id}>
|
|
42
|
-
<Button
|
|
43
|
-
buttonType={"circular-button save-button"}
|
|
44
|
-
onClick={onClickSave}
|
|
45
|
-
/>
|
|
46
38
|
{imagesSection && (
|
|
47
39
|
<div className="images-buttons">
|
|
48
40
|
<Button
|
|
49
|
-
buttonType={"circular-button
|
|
41
|
+
buttonType={"circular-button save-button"}
|
|
50
42
|
onClick={() => {
|
|
51
|
-
|
|
43
|
+
saveImages && saveImages();
|
|
52
44
|
}}
|
|
53
45
|
/>
|
|
54
46
|
<Button
|
|
55
|
-
buttonType={"circular-button
|
|
47
|
+
buttonType={"circular-button delete-button"}
|
|
56
48
|
onClick={() => {
|
|
57
|
-
|
|
49
|
+
deleteImages && deleteImages();
|
|
58
50
|
}}
|
|
59
51
|
/>
|
|
60
52
|
<Button
|
|
@@ -67,20 +59,14 @@ export const StatusAsignationInfo = ({
|
|
|
67
59
|
</div>
|
|
68
60
|
)}
|
|
69
61
|
<StatusTag statusType={status} ovalForm={true} />
|
|
70
|
-
<
|
|
71
|
-
{
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
setShowAsignationPanel(true);
|
|
79
|
-
setAssignationType(assignation?.collaboratorType);
|
|
80
|
-
}}
|
|
81
|
-
/>
|
|
82
|
-
))}
|
|
83
|
-
</div>
|
|
62
|
+
<Avatar
|
|
63
|
+
imageType={"small-image"}
|
|
64
|
+
image={src}
|
|
65
|
+
altText="user profile image"
|
|
66
|
+
onClick={() => {
|
|
67
|
+
setShowAsignationPanel(true);
|
|
68
|
+
}}
|
|
69
|
+
/>
|
|
84
70
|
<ScreenHeader
|
|
85
71
|
text={"Asig."}
|
|
86
72
|
color={"#969696"}
|
|
@@ -100,41 +86,31 @@ export const StatusAsignationInfo = ({
|
|
|
100
86
|
</div>
|
|
101
87
|
</div>
|
|
102
88
|
<div className="asignations-list">
|
|
103
|
-
{
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
)}
|
|
113
|
-
onClick={() => {
|
|
114
|
-
setAssignation(assignationType, asignation?.id_user);
|
|
115
|
-
}}
|
|
116
|
-
name={asignation.name}
|
|
117
|
-
/>
|
|
118
|
-
)
|
|
119
|
-
)
|
|
89
|
+
{asignationsList !== undefined ? (
|
|
90
|
+
asignationsList.map((asigantion, index) => (
|
|
91
|
+
<AsignationOption
|
|
92
|
+
profileImage={asignation.image}
|
|
93
|
+
asignationType={asignation.asignationType}
|
|
94
|
+
name={asignation.name}
|
|
95
|
+
team={asigantion.team}
|
|
96
|
+
/>
|
|
97
|
+
))
|
|
120
98
|
) : (
|
|
121
99
|
<p className="no-asignations">Sin personas para asignar</p>
|
|
122
100
|
)}
|
|
123
101
|
</div>
|
|
124
|
-
|
|
125
|
-
<
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
</div>
|
|
137
|
-
)}
|
|
102
|
+
<div className="default-asignations-list">
|
|
103
|
+
<AsignationOption
|
|
104
|
+
asignationType={"provider"}
|
|
105
|
+
name={"Solicitar a"}
|
|
106
|
+
team={"Proveedor"}
|
|
107
|
+
/>
|
|
108
|
+
<AsignationOption
|
|
109
|
+
asignationType={"team"}
|
|
110
|
+
name={"Solicitar a"}
|
|
111
|
+
team={"Content-oh!"}
|
|
112
|
+
/>
|
|
113
|
+
</div>
|
|
138
114
|
</div>
|
|
139
115
|
)}
|
|
140
116
|
</Container>
|
|
@@ -16,22 +16,16 @@ export const Container = styled.div`
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
.assignations-container {
|
|
20
|
-
display: flex;
|
|
21
|
-
cursor: pointer;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
19
|
.asignation-panel {
|
|
25
20
|
background: ${GlobalColors.s2};
|
|
26
21
|
border: 1px solid ${GlobalColors.s3};
|
|
27
22
|
box-sizing: border-box;
|
|
28
23
|
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.25);
|
|
29
24
|
border-radius: 4px;
|
|
30
|
-
padding: 10px
|
|
25
|
+
padding: 10px;
|
|
31
26
|
position: absolute;
|
|
32
27
|
top: calc(100% + 10px);
|
|
33
28
|
right: 0;
|
|
34
|
-
z-index: 10;
|
|
35
29
|
|
|
36
30
|
.asignation-header {
|
|
37
31
|
display: flex;
|
|
@@ -59,6 +53,7 @@ export const Container = styled.div`
|
|
|
59
53
|
|
|
60
54
|
.asignations-list {
|
|
61
55
|
min-height: 40px;
|
|
56
|
+
border-bottom: 1px solid ${GlobalColors.s3};
|
|
62
57
|
|
|
63
58
|
.no-asignations {
|
|
64
59
|
padding: 5px;
|
|
@@ -71,12 +66,7 @@ export const Container = styled.div`
|
|
|
71
66
|
|
|
72
67
|
& + * {
|
|
73
68
|
margin-top: 10px;
|
|
74
|
-
border-top: 1px solid ${GlobalColors.s3};
|
|
75
69
|
}
|
|
76
70
|
}
|
|
77
|
-
|
|
78
|
-
.default-asignations-list {
|
|
79
|
-
padding-top: 10px;
|
|
80
|
-
}
|
|
81
71
|
}
|
|
82
72
|
`;
|
|
@@ -3,28 +3,15 @@ import { ScreenHeader } from "../../atoms/ScreenHeader";
|
|
|
3
3
|
import { StatusAsignationInfo } from "../StatusAsignationInfo";
|
|
4
4
|
import { GlobalColors } from "../../../global-files/variables";
|
|
5
5
|
|
|
6
|
-
export const TableHeader = ({
|
|
7
|
-
imagesStatus,
|
|
8
|
-
activeImage,
|
|
9
|
-
assignationsImages,
|
|
10
|
-
setAssignation,
|
|
11
|
-
isRetailer,
|
|
12
|
-
onClickSave,
|
|
13
|
-
}) => {
|
|
6
|
+
export const TableHeader = ({ headerInfo, activeImage }) => {
|
|
14
7
|
return (
|
|
15
8
|
<Container>
|
|
16
9
|
<ScreenHeader
|
|
17
|
-
text={activeImage?.
|
|
10
|
+
text={activeImage?.imageName}
|
|
18
11
|
color={GlobalColors.s5}
|
|
19
12
|
headerType={"input-name-header"}
|
|
20
13
|
/>
|
|
21
|
-
<StatusAsignationInfo
|
|
22
|
-
status={imagesStatus}
|
|
23
|
-
assignationsImages={assignationsImages}
|
|
24
|
-
setAssignation={setAssignation}
|
|
25
|
-
isRetailer={isRetailer}
|
|
26
|
-
onClickSave={onClickSave}
|
|
27
|
-
/>
|
|
14
|
+
<StatusAsignationInfo status={headerInfo?.status} src={headerInfo?.src} />
|
|
28
15
|
</Container>
|
|
29
16
|
);
|
|
30
17
|
};
|
|
@@ -7,11 +7,6 @@ export const Container = styled.div`
|
|
|
7
7
|
padding-bottom: 5px;
|
|
8
8
|
border-bottom: 1px solid ${GlobalColors.s2};
|
|
9
9
|
|
|
10
|
-
.input-name-header {
|
|
11
|
-
overflow: auto;
|
|
12
|
-
max-width: 40%;
|
|
13
|
-
white-space: nowrap;
|
|
14
|
-
}
|
|
15
10
|
.status-asignation-info {
|
|
16
11
|
display: flex;
|
|
17
12
|
align-items: center;
|
|
@@ -8,18 +8,7 @@ export const TagAndInput = ({
|
|
|
8
8
|
value,
|
|
9
9
|
inputPlaceHolder,
|
|
10
10
|
inputId,
|
|
11
|
-
|
|
12
|
-
setUpdatedDescriptions,
|
|
13
|
-
updatedDatasheets,
|
|
14
|
-
setUpdatedDatasheets,
|
|
15
|
-
articleId,
|
|
16
|
-
version,
|
|
17
|
-
index,
|
|
18
|
-
isRequired,
|
|
19
|
-
dinamicHeight,
|
|
20
|
-
inputCols,
|
|
21
|
-
inputRows,
|
|
22
|
-
maxChar,
|
|
11
|
+
required,
|
|
23
12
|
}) => {
|
|
24
13
|
return (
|
|
25
14
|
<Container
|
|
@@ -32,19 +21,8 @@ export const TagAndInput = ({
|
|
|
32
21
|
inputId={inputId}
|
|
33
22
|
inputType={inputType}
|
|
34
23
|
inputValue={value}
|
|
35
|
-
index={index}
|
|
36
|
-
isRequired={isRequired}
|
|
37
24
|
inputPlaceholder={inputPlaceHolder}
|
|
38
|
-
|
|
39
|
-
setUpdatedDescriptions={setUpdatedDescriptions}
|
|
40
|
-
updatedDatasheets={updatedDatasheets}
|
|
41
|
-
setUpdatedDatasheets={setUpdatedDatasheets}
|
|
42
|
-
articleId={articleId}
|
|
43
|
-
version={version}
|
|
44
|
-
dinamicHeight={dinamicHeight}
|
|
45
|
-
inputCols={inputCols}
|
|
46
|
-
inputRows={inputRows}
|
|
47
|
-
maxChar={maxChar}
|
|
25
|
+
required={required}
|
|
48
26
|
/>
|
|
49
27
|
</Container>
|
|
50
28
|
);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { VerificationCodeResetPasswordLogin } from "./index";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: "Components/molecules/VerificationCodeResetPasswordLogin",
|
|
5
|
+
component: VerificationCodeResetPasswordLogin,
|
|
6
|
+
};
|
|
7
|
+
const Template = (args) => <VerificationCodeResetPasswordLogin {...args} />;
|
|
8
|
+
|
|
9
|
+
export const VerificationCodeResetPasswordLoginDefault = Template.bind({});
|
|
10
|
+
|
|
11
|
+
VerificationCodeResetPasswordLoginDefault.args = {};
|