contentoh-components-library 21.1.21 → 21.1.24

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.
Files changed (54) hide show
  1. package/dist/assets/images/sliderToolTip/slide21.svg +9 -0
  2. package/dist/assets/images/sliderToolTip/slide22.svg +9 -0
  3. package/dist/assets/images/sliderToolTip/slide23.svg +9 -0
  4. package/dist/components/atoms/CheckBox/styles.js +1 -1
  5. package/dist/components/atoms/ListCommercialRetailers/ListCommercialRetailers.stories.js +36 -0
  6. package/dist/components/atoms/ListCommercialRetailers/index.js +64 -0
  7. package/dist/components/atoms/ListCommercialRetailers/styles.js +20 -0
  8. package/dist/components/atoms/MenuCommercialRetailers/MenuCommercialRetailers.stories.js +37 -0
  9. package/dist/components/atoms/MenuCommercialRetailers/index.js +25 -0
  10. package/dist/components/atoms/MenuCommercialRetailers/styles.js +20 -0
  11. package/dist/components/atoms/MenuProductImage/MenuProductImage.stories.js +28 -0
  12. package/dist/components/atoms/MenuProductImage/index.js +88 -0
  13. package/dist/components/atoms/MenuProductImage/styles.js +20 -0
  14. package/dist/components/atoms/SliderToolTip/SliderToolTip.stories.js +67 -13
  15. package/dist/components/atoms/SliderToolTip/index.js +64 -134
  16. package/dist/components/atoms/SliderToolTip/styles.js +2 -2
  17. package/dist/components/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +44 -1
  18. package/dist/components/atoms/VerticalSideMenuMainPage/index.js +49 -48
  19. package/dist/components/atoms/VerticalSideMenuMainPage/styles.js +12 -3
  20. package/dist/components/molecules/ApproveRejetPanel/ApproveRejetPanel.stories.js +25 -0
  21. package/dist/components/molecules/ApproveRejetPanel/index.js +49 -0
  22. package/dist/components/molecules/ApproveRejetPanel/styles.js +18 -0
  23. package/dist/components/molecules/SignInLoginCreationApp/SignInLogin.stories.js +28 -0
  24. package/dist/components/molecules/SignInLoginCreationApp/index.js +270 -0
  25. package/dist/components/molecules/SignInLoginCreationApp/styles.js +20 -0
  26. package/dist/components/molecules/StatusAsignationInfo/index.js +35 -1
  27. package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +64 -71
  28. package/dist/components/pages/ProviderProductEdition/index.js +33 -61
  29. package/dist/components/pages/RetailerProductEdition/index.js +7 -1
  30. package/dist/global-files/global-styles.css +0 -1
  31. package/package.json +1 -1
  32. package/src/assets/images/sliderToolTip/slide21.svg +9 -0
  33. package/src/assets/images/sliderToolTip/slide22.svg +9 -0
  34. package/src/assets/images/sliderToolTip/slide23.svg +9 -0
  35. package/src/components/atoms/CheckBox/styles.js +0 -1
  36. package/src/components/atoms/SliderToolTip/SliderToolTip.stories.js +77 -11
  37. package/src/components/atoms/SliderToolTip/index.js +91 -154
  38. package/src/components/atoms/SliderToolTip/styles.js +48 -22
  39. package/src/components/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +24 -1
  40. package/src/components/atoms/VerticalSideMenuMainPage/index.js +41 -30
  41. package/src/components/atoms/VerticalSideMenuMainPage/styles.js +70 -18
  42. package/src/components/molecules/StatusAsignationInfo/index.js +37 -0
  43. package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +65 -81
  44. package/src/components/pages/ProviderProductEdition/index.js +17 -40
  45. package/src/components/pages/RetailerProductEdition/index.js +17 -8
  46. package/dist/components/atoms/Percent/Percent.stories.js +0 -39
  47. package/dist/components/atoms/Percent/index.js +0 -39
  48. package/dist/components/atoms/Percent/styles.js +0 -20
  49. package/dist/components/molecules/TextAndGradient/TextAndGradient.stories.js +0 -31
  50. package/dist/components/molecules/TextAndGradient/index.js +0 -36
  51. package/dist/components/molecules/TextAndGradient/styles.js +0 -18
  52. package/src/components/pages/RegistrationLoginFirstStep/RegistrationLoginFirstStep.stories.js +0 -17
  53. package/src/components/pages/RegistrationLoginFirstStep/index.js +0 -160
  54. package/src/components/pages/RegistrationLoginFirstStep/styles.js +0 -85
@@ -1,160 +0,0 @@
1
- import { Container } from "./styles";
2
- import { GradientPanel } from "../../atoms/GradientPanel";
3
- import { CarouselImagesLogin } from "../../molecules/CarouselImagesLogin";
4
- import { useState } from "react";
5
- import { LogoImage } from "../../atoms/LogoImage";
6
- import { ScreenHeader } from "../../atoms/ScreenHeader";
7
- import { GlobalColors, FontFamily } from "../../../global-files/variables";
8
- import { TagAndInput } from "../../molecules/TagAndInput";
9
- import { Button } from "../../atoms/GeneralButton";
10
- import { GeneralInput } from "../../atoms/GeneralInput";
11
-
12
- export const RegistrationLoginFirstStep = ({
13
- imageArrayCarousel = [],
14
- textCarousel,
15
- backogroundColorCarousel,
16
- }) => {
17
- const [emptyName, setEmptyName] = useState(false);
18
- const [emptyLastName, setEmptyLastName] = useState(false);
19
- const [emptyEmail, setEmptyEmail] = useState(false);
20
- const [emptyJob, setEmptyJob] = useState(false);
21
- const [emptyPhone, setEmptyPhone] = useState(false);
22
- const [invalidEmail, setInvalidEmail] = useState(false);
23
-
24
- const validate = async (e) => {
25
- e.preventDefault();
26
- const name = document.querySelector("#nameInput").value;
27
- const lastName = document.querySelector("#lastNameInput").value;
28
- const email = document.querySelector("#emailInput").value;
29
- const job = document.querySelector("#jobInput").value;
30
- const phone = document.querySelector("#phoneInput").value;
31
- name === "" ? setEmptyName(true) : setEmptyName(false);
32
- lastName === "" ? setEmptyLastName(true) : setEmptyLastName(false);
33
- email === "" ? setEmptyEmail(true) : setEmptyEmail(false);
34
- job === "" ? setEmptyJob(true) : setEmptyJob(false);
35
- phone === "" ? setEmptyPhone(true) : setEmptyPhone(false);
36
- !/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(
37
- email
38
- )
39
- ? setInvalidEmail(true)
40
- : setInvalidEmail(false);
41
- };
42
- const loginRight = [
43
- <LogoImage key="1" />,
44
- <div className="credenciales" key={"2"}>
45
- <ScreenHeader
46
- fontFamily={FontFamily.AvenirNext}
47
- color={GlobalColors.s5}
48
- text={"Ingresa tus credenciales"}
49
- />
50
- </div>,
51
- <div className="user" key="3">
52
- <div className="name-registration-user">
53
- <TagAndInput
54
- inputType={"text"}
55
- inputId={"nameInput"}
56
- label={"Nombre"}
57
- inputPlaceHolder={"Nombre"}
58
- />
59
- <TagAndInput
60
- inputType={"text"}
61
- inputId={"lastNameInput"}
62
- label={"Apellido"}
63
- inputPlaceHolder={"Apellido"}
64
- />
65
- </div>
66
- {emptyName && <label>Ingrese su nombre</label>}
67
- {emptyLastName && <label>Ingrese sus apellidos</label>}
68
- <TagAndInput
69
- inputType={"text"}
70
- inputId={"emailInput"}
71
- label={"Correo electrónico"}
72
- inputPlaceHolder={"username@contentoh.com"}
73
- />
74
- {emptyEmail && <label>Ingrese su correo</label>}
75
- {invalidEmail && !emptyEmail && <label>Ingrese un correo válido</label>}
76
- <TagAndInput
77
- inputType={"text"}
78
- inputId={"jobInput"}
79
- label={"Puesto laboral"}
80
- inputPlaceHolder={"Puesto dentro de la empresa"}
81
- />
82
- {emptyJob && <label>Ingrese su puesto</label>}
83
- <ScreenHeader text={"Teléfono"} headerType={"input-name-header"} />
84
- <div className="phone-registration-user">
85
- <select name="select" className="phone-options">
86
- <option>+52</option>
87
- <option>+54</option>
88
- <option>+57</option>
89
- <option>+506</option>
90
- <option>+593</option>
91
- <option>+503</option>
92
- <option>+504</option>
93
- <option>+507</option>
94
- <option>+51</option>
95
- </select>
96
- <GeneralInput
97
- inputId={"phoneInput"}
98
- inputType={"text"}
99
- inputPlaceholder={"Teléfono"}
100
- />
101
- </div>
102
- {emptyPhone && <label>Ingrese su número de teléfono</label>}
103
- <ScreenHeader text={"País"} headerType={"input-name-header"} />
104
- <select name="select" className="country-options">
105
- <option value="value1" selected>
106
- Selecciona tu país
107
- </option>
108
- <option value="value2">Argentina</option>
109
- <option value="value3">Colombia</option>
110
- <option value="value2">Ecuador</option>
111
- <option value="value3">El Salvador</option>
112
- <option value="value2">Honduras</option>
113
- <option value="value3">México</option>
114
- <option value="value2">Panamá</option>
115
- <option value="value3">Perú</option>
116
- </select>
117
- {emptyEmail && <label>Seleccione su país</label>}
118
- </div>,
119
- <div className="button-end" key="4">
120
- <Button
121
- buttonType={"general-default-button"}
122
- label={"Enviar"}
123
- onClick={(e) => validate(e)}
124
- />
125
- </div>,
126
- <div className="progress-bar" key="5">
127
- <div className="progress-bar-first-step"></div>
128
- <div className="progress-bar-registration"></div>
129
- </div>,
130
- <ScreenHeader
131
- text={"Paso 1"}
132
- headerType={"date-header"}
133
- color={GlobalColors.s4}
134
- key="6"
135
- />,
136
- <div className="new-login" key="7">
137
- <p className="pre-registro">
138
- ¿Ya tienes una cuenta?<span> Inicia Sesión</span>
139
- </p>
140
- </div>,
141
- ];
142
- return (
143
- <Container>
144
- <div className="home-retailer">
145
- <CarouselImagesLogin
146
- panelImg={imageArrayCarousel}
147
- panelText={textCarousel}
148
- panelColor={backogroundColorCarousel}
149
- />
150
- </div>
151
- <div className="home-login-retailer">
152
- <GradientPanel
153
- componentsArray={loginRight}
154
- panelType={"home-login"}
155
- panelColor={GlobalColors.white}
156
- />
157
- </div>
158
- </Container>
159
- );
160
- };
@@ -1,85 +0,0 @@
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: 100%;
7
- height: 100vh;
8
- .user {
9
- .name-registration-user {
10
- display: flex;
11
- justify-content: space-between;
12
- input {
13
- width: 160px;
14
- }
15
- }
16
- .input-name-header {
17
- margin-bottom: 4px;
18
- margin-top: 12px;
19
- }
20
- .phone-registration-user {
21
- display: flex;
22
- justify-content: space-between;
23
- .phone-options {
24
- width: 80px;
25
- }
26
- input {
27
- width: 100%;
28
- }
29
- & + * {
30
- margin-top: 10px;
31
- }
32
- }
33
- .country-options,
34
- .phone-options {
35
- width: 100%;
36
- border: 1px solid ${GlobalColors.s2};
37
- font-family: ${FontFamily.AvenirNext};
38
- color: ${GlobalColors.s4};
39
- font-weight: normal;
40
- font-size: 12px;
41
- line-height: 15px;
42
- padding: 10px;
43
- outline: none;
44
- border-radius: 2px;
45
- resize: none;
46
- &:focus {
47
- border: 1px solid ${GlobalColors.magenta_s2};
48
- }
49
- }
50
- }
51
- .button-end {
52
- text-align: end;
53
- .general-default-button {
54
- width: 160px;
55
- }
56
- & + * {
57
- margin-top: 10px;
58
- }
59
- }
60
- .progress-bar {
61
- width: 100%;
62
- height: 8px;
63
- display: flex;
64
- justify-content: space-between;
65
- .progress-bar-first-step {
66
- width: 33.33%;
67
- background-color: rgb(196, 196, 196);
68
- }
69
- .progress-bar-registration {
70
- background-color: rgb(226, 226, 226);
71
- width: 66.66%;
72
- }
73
- }
74
- .date-header {
75
- .new-login {
76
- & + * {
77
- margin-top: 20px;
78
- }
79
- }
80
- }
81
- .home-login-retailer,
82
- .home-retailer {
83
- width: 50%;
84
- }
85
- `;