contentoh-components-library 21.1.26 → 21.1.27

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 (62) hide show
  1. package/dist/components/atoms/CheckBox/styles.js +1 -1
  2. package/dist/components/atoms/Percent/Percent.stories.js +39 -0
  3. package/dist/components/atoms/Percent/index.js +39 -0
  4. package/dist/components/atoms/Percent/styles.js +20 -0
  5. package/dist/components/atoms/SliderToolTip/SliderToolTip.stories.js +13 -67
  6. package/dist/components/atoms/SliderToolTip/index.js +134 -64
  7. package/dist/components/atoms/SliderToolTip/styles.js +2 -2
  8. package/dist/components/atoms/ValidationPanel/index.js +4 -3
  9. package/dist/components/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +1 -44
  10. package/dist/components/atoms/VerticalSideMenuMainPage/index.js +48 -47
  11. package/dist/components/atoms/VerticalSideMenuMainPage/styles.js +4 -29
  12. package/dist/components/molecules/AvatarAndValidation/index.js +4 -0
  13. package/dist/components/molecules/StatusAsignationInfo/index.js +1 -29
  14. package/dist/components/molecules/TextAndGradient/TextAndGradient.stories.js +31 -0
  15. package/dist/components/molecules/TextAndGradient/index.js +36 -0
  16. package/dist/components/molecules/TextAndGradient/styles.js +18 -0
  17. package/dist/components/organisms/FullProductNameHeader/index.js +5 -1
  18. package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +99 -109
  19. package/dist/components/pages/ProviderProductEdition/index.js +87 -97
  20. package/dist/components/pages/RetailerProductEdition/index.js +9 -10
  21. package/dist/global-files/global-styles.css +1 -0
  22. package/dist/index.js +51 -38
  23. package/package.json +1 -1
  24. package/src/components/atoms/CheckBox/styles.js +1 -0
  25. package/src/components/atoms/SliderToolTip/SliderToolTip.stories.js +11 -77
  26. package/src/components/atoms/SliderToolTip/index.js +154 -91
  27. package/src/components/atoms/SliderToolTip/styles.js +22 -51
  28. package/src/components/atoms/ValidationPanel/index.js +4 -3
  29. package/src/components/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +1 -24
  30. package/src/components/atoms/VerticalSideMenuMainPage/index.js +30 -38
  31. package/src/components/atoms/VerticalSideMenuMainPage/styles.js +18 -76
  32. package/src/components/molecules/AvatarAndValidation/index.js +4 -0
  33. package/src/components/molecules/StatusAsignationInfo/index.js +0 -31
  34. package/src/components/organisms/FullProductNameHeader/index.js +4 -0
  35. package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +105 -107
  36. package/src/components/pages/ProviderProductEdition/index.js +37 -64
  37. package/src/components/pages/RegistrationLoginFirstStep/RegistrationLoginFirstStep.stories.js +17 -0
  38. package/src/components/pages/RegistrationLoginFirstStep/index.js +160 -0
  39. package/src/components/pages/RegistrationLoginFirstStep/styles.js +85 -0
  40. package/src/components/pages/RetailerProductEdition/index.js +0 -1
  41. package/src/index.js +1 -0
  42. package/dist/assets/images/sliderToolTip/slide21.svg +0 -9
  43. package/dist/assets/images/sliderToolTip/slide22.svg +0 -9
  44. package/dist/assets/images/sliderToolTip/slide23.svg +0 -9
  45. package/dist/components/atoms/ListCommercialRetailers/ListCommercialRetailers.stories.js +0 -36
  46. package/dist/components/atoms/ListCommercialRetailers/index.js +0 -64
  47. package/dist/components/atoms/ListCommercialRetailers/styles.js +0 -20
  48. package/dist/components/atoms/MenuCommercialRetailers/MenuCommercialRetailers.stories.js +0 -37
  49. package/dist/components/atoms/MenuCommercialRetailers/index.js +0 -25
  50. package/dist/components/atoms/MenuCommercialRetailers/styles.js +0 -20
  51. package/dist/components/atoms/MenuProductImage/MenuProductImage.stories.js +0 -28
  52. package/dist/components/atoms/MenuProductImage/index.js +0 -88
  53. package/dist/components/atoms/MenuProductImage/styles.js +0 -20
  54. package/dist/components/molecules/ApproveRejetPanel/ApproveRejetPanel.stories.js +0 -25
  55. package/dist/components/molecules/ApproveRejetPanel/index.js +0 -49
  56. package/dist/components/molecules/ApproveRejetPanel/styles.js +0 -18
  57. package/dist/components/molecules/SignInLoginCreationApp/SignInLogin.stories.js +0 -28
  58. package/dist/components/molecules/SignInLoginCreationApp/index.js +0 -270
  59. package/dist/components/molecules/SignInLoginCreationApp/styles.js +0 -20
  60. package/src/assets/images/sliderToolTip/slide21.svg +0 -9
  61. package/src/assets/images/sliderToolTip/slide22.svg +0 -9
  62. package/src/assets/images/sliderToolTip/slide23.svg +0 -9
@@ -1,103 +1,45 @@
1
1
  import styled from "styled-components";
2
- import { NavLink } from "react-router-dom";
3
2
 
4
- export const Container = styled(NavLink)`
3
+ export const Container = styled.div`
5
4
  height: 100%;
6
- width: 58px;
5
+ width: ${({ bar }) => (bar ? 200 : 58)}px;
7
6
  box-sizing: border-box;
8
7
  padding: 23px 10px 70px 10px;
9
8
  flex-direction: column;
10
9
  justify-content: space-between;
11
10
  overflow: auto;
12
- border-radius: 50px;
11
+ border-radius: ${({ bar }) => (bar ? 20 : 50)}px;
13
12
  background: linear-gradient(180deg, #e33aa9 0%, #3b1366 100%);
14
13
  scrollbar-width: none;
15
14
  display: flex;
16
15
  text-align: center;
17
- &.actived {
18
- width: 200px;
19
- padding: 23px 10px 15px 10px;
20
- border-radius: 20px;
16
+ img {
17
+ cursor: pointer;
18
+ width:"25px" !important;
21
19
  }
22
20
  .navbar-top {
23
- .logo {
24
- & + * {
25
- margin-top: ${({ bar }) => (bar === "" ? 145 : 50)}%;
26
- }
21
+ & + * {
22
+ margin-top: 15px;
27
23
  }
28
24
  .option {
29
- display: flex;
30
- flex-direction: column;
31
- align-items: flex-start;
32
- padding-left: ${({ bar }) => (bar ? 5 : 0)}px;
33
25
  div {
34
- height: ${({ bar }) => (bar ? 32 : 38)}px;
35
- width: ${({ bar }) => (bar ? 165 : 38)}px;
26
+ height: 38px;
36
27
  display: flex;
37
- justify-content: ${({ bar }) => (bar ? "flex-start" : "center")};
38
- border-radius: ${({ bar }) => (bar ? 18 : 100)}px;
39
- align-items: center;
40
- font-family: "Raleway";
41
- font-style: normal;
42
- font-weight: 400;
43
- font-size: 18px;
44
- line-height: 21px;
45
- letter-spacing: -0.015em;
46
- color: #fafafa;
47
- text-decoration: none;
48
- &.option-link {
49
- cursor: pointer;
28
+ justify-content: center;
29
+ border-radius: 100%;
30
+ & + * {
50
31
  margin-top: 12px;
51
- padding-left: ${({ bar }) => (bar ? 15 : 0)}px;
52
- }
53
- p {
54
- cursor: pointer;
55
- }
56
- img {
57
- & + * {
58
- margin-left: 12px;
59
- }
60
32
  }
61
33
  }
62
- .option-link:hover {
34
+ div:hover {
63
35
  background: #e33aa9;
64
36
  }
65
- .sub-option {
66
- display: flex;
67
- flex-direction: column;
68
- padding-left: ${({ bar }) => (bar ? 28 : 20)}px;
69
- height: auto;
70
- width: auto;
71
- div {
72
- display: flex;
73
- justify-content: flex-start;
74
- text-decoration: none;
75
- position: relative;
76
- font-size: 13px;
77
- border-left: 1px solid #f0eef2;
78
- border-radius: 0;
79
- color: #f0eef2;
80
- padding-top: 20px;
81
- padding-left: 12px;
82
- height: 25px;
83
- &::before {
84
- border-left: 1px solid #e33aa9;
85
- width: 10px;
86
- content: "";
87
- border-radius: 50%;
88
- height: 10px;
89
- background-color: white;
90
- position: absolute;
91
- left: ${({ bar }) => (bar ? -4 : -16)}%;
92
- bottom: 1%;
93
- }
94
- }
37
+ }
38
+ .logo {
39
+ cursor: default;
40
+ & + * {
41
+ margin-top: 225%;
95
42
  }
96
43
  }
97
44
  }
98
- .menu-bottom {
99
- display: flex;
100
- justify-content: ${({ bar }) => (bar ? "flex-end" : "center")};
101
- cursor: pointer;
102
- }
103
45
  `;
@@ -15,6 +15,8 @@ export const AvatarAndValidation = ({
15
15
  showValidationButtons,
16
16
  approve,
17
17
  reject,
18
+ approveAll,
19
+ rejectAll,
18
20
  showApproveRejectAll,
19
21
  }) => {
20
22
  const [showValidationPanel, setShowValidationPanel] = useState(false);
@@ -63,6 +65,8 @@ export const AvatarAndValidation = ({
63
65
  setShowValidationPanel={setShowValidationPanel}
64
66
  approve={approve}
65
67
  reject={reject}
68
+ approveAll={approveAll}
69
+ rejectAll={rejectAll}
66
70
  showApproveRejectAll={showApproveRejectAll}
67
71
  />
68
72
  )}
@@ -6,11 +6,6 @@ import { Button } from "../../atoms/GeneralButton";
6
6
  import { useEffect, useState } from "react";
7
7
  import { AsignationOption } from "../../atoms/AsignationOption/index";
8
8
  import { getProfilePicture } from "../../../global-files/data";
9
- import { SliderToolTip } from "../../atoms/SliderToolTip";
10
- import InfoIcon from "../../../assets/images/sliderToolTip/infoIcon.svg";
11
- import Slide1 from "../../../assets/images/sliderToolTip/slide21.svg";
12
- import Slide2 from "../../../assets/images/sliderToolTip/slide22.svg";
13
- import Slide3 from "../../../assets/images/sliderToolTip/slide23.svg";
14
9
 
15
10
  export const StatusAsignationInfo = ({
16
11
  status = "-",
@@ -36,26 +31,6 @@ export const StatusAsignationInfo = ({
36
31
  setShowAsignationPanel(false);
37
32
  }
38
33
  };
39
- const slidefront = [
40
- {
41
- slide: Slide1,
42
- title: "Valida tu producto en cada activo digital",
43
- description:
44
- "Al solicitar a Content-oh! podrás validar la información, imágenes y documentación de tu producto, esto hará más sencillo que puedas aprobar o rechazar el contenido.",
45
- },
46
- {
47
- slide: Slide2,
48
- title: "Aprueba o rechaza con un clic",
49
- description:
50
- "Cuando termines de revisar tu información, elige si aproebas o rechazas, esto enviara una notificiación a nuestro equipo, para continuar o corregir el producto.",
51
- },
52
- {
53
- slide: Slide3,
54
- title: "Estatus de tu producto en el proceso",
55
- description:
56
- "La mayor parte del proceso podrás identificar que estatus tiene tu producto, esto dara visibilidad a todo tu equipo para saber la etapa se encuentra.",
57
- },
58
- ];
59
34
 
60
35
  useEffect(() => {
61
36
  if (showAsignationPanel) {
@@ -65,12 +40,6 @@ export const StatusAsignationInfo = ({
65
40
 
66
41
  return (
67
42
  <Container id={id}>
68
- <SliderToolTip
69
- infoIcon={InfoIcon}
70
- slidefront={slidefront}
71
- iconSize={"medium-image"}
72
- slidePosition={"bottom-slide"}
73
- ></SliderToolTip>
74
43
  {status !== "-" && <StatusTag statusType={status} ovalForm={true} />}
75
44
  {showSaveButton && (
76
45
  <Button
@@ -13,6 +13,8 @@ export const FullProductNameHeader = ({
13
13
  showValidationButtons,
14
14
  approve,
15
15
  reject,
16
+ approveAll,
17
+ rejectAll,
16
18
  servicesData,
17
19
  showApproveRejectAll,
18
20
  }) => {
@@ -73,6 +75,8 @@ export const FullProductNameHeader = ({
73
75
  showApproveRejectAll={showApproveRejectAll}
74
76
  approve={approve}
75
77
  reject={reject}
78
+ approveAll={approveAll}
79
+ rejectAll={rejectAll}
76
80
  />
77
81
  </div>
78
82
  </Container>
@@ -16,136 +16,134 @@ ProviderProductEditionDefault.args = {
16
16
  Imágenes: false,
17
17
  },
18
18
  token:
19
- "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmNTkyN2Y4ZS1jYmY3LTQ5MjItOWUwOS1lNjllYzBiMjczMWEiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImY1OTI3ZjhlLWNiZjctNDkyMi05ZTA5LWU2OWVjMGIyNzMxYSIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiI5ZmM5YThiNC1mYWViLTQ3ZDUtYjEyYS05NzcxNThmNWUzMWUiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY1NjA4NzIzOSwibmFtZSI6IklzbWFlbCBMb3BleiIsInBob25lX251bWJlciI6Iis1MjMxMTEzNjYzMzYiLCJleHAiOjE2NTYwOTA4MzksImlhdCI6MTY1NjA4NzIzOSwiZW1haWwiOiJpbG9wZXpAY29udGVudG9oLmNvbSJ9.P4HmwNMwF6r9BuH-9onpbU7_iiXwSw1TOEux9seeVwHiEJytl6BOcHkKJEnUZ2dfarK2CRMiYVLVycbT3O4MCVyFb8hWnos_eTBAVIOD9kxd7FMLOL_v5JP6Vw4XxWx2xsut9Jvcw0M-_QipxvAKdHtNcC-pOYs0W2IvyXf0JbYgkthZwRwIOUYhqF2yMtKFFzAX2kZO5_QMNeTLamFoexDU_0heba7sToE_oLyovhPTTRobXQcss8mmiilEfnnGZ_YNlwf-0myAMMJkllESl0tff1YQpHLn1sUN6sA-DotQvYhaGbxNebgQ_sMfPNy8cEFOIrNLP_QMjEC_RCu_tw",
19
+ "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI1ODg0YWUzNC01OWQ2LTQ0NTQtYjk4ZS04MjE1MThiY2MzYTciLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6IjU4ODRhZTM0LTU5ZDYtNDQ1NC1iOThlLTgyMTUxOGJjYzNhNyIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiJhODE2NGMwNi1hN2U5LTQ2OGItYTBiMS02MDIxNzMyNWY0ZTgiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY1NjExMzE0NiwibmFtZSI6IkNhZGVuYSBJc21hZWwiLCJwaG9uZV9udW1iZXIiOiIrNTIzMTExMzY2MzM2IiwiZXhwIjoxNjU2MTE2NzQ2LCJpYXQiOjE2NTYxMTMxNDYsImVtYWlsIjoiY2FkZW5hLmlzbWFlbEBhbGxmcmVlbWFpbC5uZXQifQ.kfMoKcxYDkpNZJibGdw50oOkRwPVl26YNAwwDoLEfQjOZB6WRCY95iHfU1maYcTTvA5KlT5ali8XZ-nLnxh60vZoLGTDOfCvEnwd1t94JtfE5CsWDr_jfH1U0AVidxihqKnkwvCezkHwU1DUFlbu2iBNo7MHQw4ydiK2sx4q0-QGltmE7W2JJ0sayRDuNchy2S6FQoyIWhsP3oaKTvJGDKCaJxwkFEKk-3antoMtfua9H8V4p2Kkqa_eDbFk8pLYGaYgImLlaia2orGgETkHZIWEMr4WJq1V_7qOg4lYq2BUUuMhWdmK6XUL_Jhmv05TUJ3Rp_Ti4_J2WE4zQqhbfQ",
20
20
  articleId: 238,
21
21
  category: 846,
22
22
  version: 2,
23
23
  productSelected: {
24
- orderId: 64,
25
- status: "AP",
24
+ orderId: 55,
25
+ article_status: "AP",
26
26
  datasheet_status: "AP",
27
- prio: "none",
28
- version: 7,
29
27
  description_status: "AP",
30
28
  images_status: "AP",
31
- brand: "1",
32
- retailerOrder: 0,
33
- missing: {
34
- datasheet: null,
35
- descriptions: null,
36
- images: null,
37
- },
38
- services: {
39
- datasheets: 1,
40
- descriptions: 1,
41
- images: 1,
42
- },
29
+ prio: "none",
30
+ version: 2,
31
+ brand: null,
43
32
  article: {
44
- category: "ABARROTES|BOTANAS, GOLOSINAS Y CHOCOLATES|BOTANAS",
45
- company_name: "COMPANY DEV",
33
+ category: "ILUMINACIÓN|FOCOS|FOCOS",
34
+ company_name: "THD Proveedor",
46
35
  country: "México",
47
- id_category: "41",
48
- id_datasheet_especialist: 54,
49
- id_datasheet_facilitator: 52,
50
- id_description_especialist: 54,
51
- id_description_facilitator: 52,
52
- id_images_especialist: 55,
53
- id_images_facilitator: 53,
54
- id_order: 64,
55
- id_article: 35707,
56
- id_auditor: 37,
57
- name: "chetos",
58
- upc: "1010101010",
36
+ id_category: "2143",
37
+ id_article: 55118,
38
+ name: "FOCO BLUETOOTH SPOT PHILIPS 6 WATTS 300 LÚMENES MULTICOLOR",
39
+ upc: "145582",
59
40
  },
60
41
  retailers: [
61
42
  {
62
- id: 3,
63
- name: "Sam´s Club",
43
+ id: 58,
44
+ name: "The Home Depot Golden",
64
45
  },
65
46
  {
66
- id: 8,
67
- name: "Fragua",
47
+ id: 59,
48
+ name: "The Home Depot Platinum",
49
+ },
50
+ {
51
+ id: 60,
52
+ name: "The Home Depot Resizing",
53
+ },
54
+ {
55
+ id: 61,
56
+ name: "Home Depot TAB",
68
57
  },
69
58
  ],
59
+ services: {
60
+ datasheets: 1,
61
+ descriptions: 1,
62
+ images: 1,
63
+ },
64
+ id_article: 55118,
70
65
  retailersAvailable: [
71
66
  {
72
- id: 3,
73
- name: "Sam´s Club",
67
+ id: 58,
68
+ name: "The Home Depot Golden",
69
+ },
70
+ {
71
+ id: 59,
72
+ name: "The Home Depot Platinum",
73
+ },
74
+ {
75
+ id: 60,
76
+ name: "The Home Depot Resizing",
74
77
  },
75
78
  {
76
- id: 8,
77
- name: "Fragua",
79
+ id: 61,
80
+ name: "Home Depot TAB",
78
81
  },
79
82
  ],
80
- categoryName: "ABARROTES|BOTANAS, GOLOSINAS Y CHOCOLATES|BOTANAS",
81
- upc: "1010101010",
82
- id_article: 35707,
83
- id_order: 64,
84
83
  },
85
84
  productToEdit: {
86
- ArticleId: 35707,
87
- idCategory: "41",
85
+ ArticleId: 55118,
86
+ idCategory: "2143",
88
87
  product: {
89
- orderId: 64,
90
- status: "AP",
88
+ orderId: 55,
89
+ article_status: "AP",
91
90
  datasheet_status: "AP",
92
- prio: "none",
93
- version: 7,
94
91
  description_status: "AP",
95
92
  images_status: "AP",
96
- brand: "1",
97
- retailerOrder: 0,
98
- missing: {
99
- datasheet: null,
100
- descriptions: null,
101
- images: null,
102
- },
103
- services: {
104
- datasheets: 1,
105
- descriptions: 1,
106
- images: 1,
107
- },
93
+ prio: "none",
94
+ version: 2,
95
+ brand: null,
108
96
  article: {
109
- category: "ABARROTES|BOTANAS, GOLOSINAS Y CHOCOLATES|BOTANAS",
110
- company_name: "COMPANY DEV",
97
+ category: "ILUMINACIÓN|FOCOS|FOCOS",
98
+ company_name: "THD Proveedor",
111
99
  country: "México",
112
- id_category: "41",
113
- id_datasheet_especialist: 54,
114
- id_datasheet_facilitator: 52,
115
- id_description_especialist: 54,
116
- id_description_facilitator: 52,
117
- id_images_especialist: 55,
118
- id_images_facilitator: 53,
119
- id_order: 64,
120
- id_article: 35707,
121
- id_auditor: 37,
122
- name: "chetos",
123
- upc: "1010101010",
100
+ id_category: "2143",
101
+ id_article: 55118,
102
+ name: "FOCO BLUETOOTH SPOT PHILIPS 6 WATTS 300 LÚMENES MULTICOLOR",
103
+ upc: "145582",
124
104
  },
125
105
  retailers: [
126
106
  {
127
- id: 3,
128
- name: "Sam´s Club",
107
+ id: 58,
108
+ name: "The Home Depot Golden",
129
109
  },
130
110
  {
131
- id: 8,
132
- name: "Fragua",
111
+ id: 59,
112
+ name: "The Home Depot Platinum",
113
+ },
114
+ {
115
+ id: 60,
116
+ name: "The Home Depot Resizing",
117
+ },
118
+ {
119
+ id: 61,
120
+ name: "Home Depot TAB",
133
121
  },
134
122
  ],
123
+ services: {
124
+ datasheets: 1,
125
+ descriptions: 1,
126
+ images: 1,
127
+ },
128
+ id_article: 55118,
135
129
  retailersAvailable: [
136
130
  {
137
- id: 3,
138
- name: "Sam´s Club",
131
+ id: 58,
132
+ name: "The Home Depot Golden",
133
+ },
134
+ {
135
+ id: 59,
136
+ name: "The Home Depot Platinum",
137
+ },
138
+ {
139
+ id: 60,
140
+ name: "The Home Depot Resizing",
139
141
  },
140
142
  {
141
- id: 8,
142
- name: "Fragua",
143
+ id: 61,
144
+ name: "Home Depot TAB",
143
145
  },
144
146
  ],
145
- categoryName: "ABARROTES|BOTANAS, GOLOSINAS Y CHOCOLATES|BOTANAS",
146
- upc: "1010101010",
147
- id_article: 35707,
148
- id_order: 64,
149
147
  },
150
148
  },
151
149
  location: {
@@ -153,36 +151,36 @@ ProviderProductEditionDefault.args = {
153
151
  state: { origin: "Contentoh" },
154
152
  },
155
153
  user: {
156
- id_user: 1236,
157
- name: "THD",
158
- last_name: "Proveedor",
159
- email: "thd@allfreemail.net",
160
- position: "Prod test",
161
- telephone: "+523111111111",
154
+ id_user: 59,
155
+ name: "The Home",
156
+ last_name: "Depot",
157
+ email: "cadena.ismael@allfreemail.net",
158
+ position: "Admin",
159
+ telephone: "+523111366336",
162
160
  country: "México",
163
- id_company: 816,
164
- id_cognito: "d660ccca-f906-4970-892c-6d152e832e5d",
161
+ id_company: 7,
162
+ id_cognito: "5884ae34-59d6-4454-b98e-821518bcc3a7",
165
163
  birth_Date: null,
166
164
  about_me: null,
167
165
  zip_code: null,
168
166
  address: null,
169
167
  job: null,
170
- id_stripe: null,
168
+ id_stripe: "",
171
169
  id_role: 0,
172
170
  active: 1,
173
- is_retailer: 1,
174
- email_notify: 0,
171
+ is_retailer: 0,
172
+ email_notify: 1,
175
173
  membership: {
176
- id: 797,
177
- start_date: "2022-06-19T04:18:39.000Z",
178
- end_date: "2023-06-19T04:18:39.000Z",
179
- planID: 6,
180
- plan: "prod_KvGd6YSTJyR3AP",
181
- name: "Plan Small",
182
- user_limit: "10",
183
- products_limit: "1000",
174
+ id: 24,
175
+ start_date: "2021-11-23T03:35:50.000Z",
176
+ end_date: "2022-11-23T03:35:50.000Z",
177
+ planID: 9,
178
+ plan: "prod_KtlkzZVGq6bRTO",
179
+ name: "Plan Enterprise Full",
180
+ user_limit: "30",
181
+ products_limit: "10000",
184
182
  type: "Enterprise",
185
183
  },
186
- src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1656087239674",
184
+ src: "https://content-management-profile.s3.amazonaws.com/id-59/59.png?1656113146885",
187
185
  },
188
186
  };
@@ -33,13 +33,6 @@ import { Link } from "react-router-dom";
33
33
  import face from "../../../assets/images/defaultImages/defaultProfileImage.svg";
34
34
  import errorModal from "../../../assets/images/genericModal/errorModal.svg";
35
35
  import { GlobalModal } from "../../organisms/GlobalModal/index";
36
- import { SliderToolTip } from "../../atoms/SliderToolTip";
37
- import InfoIcon from "../../../assets/images/sliderToolTip/infoIcon.svg";
38
- import Slide1_1 from "../../../assets/images/sliderToolTip/slide1.svg";
39
- import Slide1_2 from "../../../assets/images/sliderToolTip/slide2.svg";
40
- import Slide1_3 from "../../../assets/images/sliderToolTip/slide3.svg";
41
- import Slide1_4 from "../../../assets/images/sliderToolTip/slide4.svg";
42
- import Slide1_5 from "../../../assets/images/sliderToolTip/slide5.svg";
43
36
 
44
37
  const reducerImages = (state, action) => {
45
38
  let { values, attrForImgs } = state;
@@ -216,6 +209,7 @@ export const ProviderProductEdition = ({
216
209
  const loadData = async () => {
217
210
  const services = await getRetailerServices(
218
211
  product?.id_article || product?.article?.id_article,
212
+ product?.article?.company_name || product?.categoryName,
219
213
  parseInt(product?.article?.id_category || product?.id_category),
220
214
  product?.version
221
215
  );
@@ -833,6 +827,7 @@ export const ProviderProductEdition = ({
833
827
  },
834
828
  });
835
829
  setProduct(productTemp);
830
+ sessionStorage.setItem("productSelected", JSON.stringify(productTemp));
836
831
  setProductEdit({
837
832
  ArticleId: productTemp.id_article,
838
833
  idCategory: productTemp.article.id_category,
@@ -854,10 +849,10 @@ export const ProviderProductEdition = ({
854
849
 
855
850
  const validateAll = async (result) => {
856
851
  try {
852
+ setLoading(true);
857
853
  const evaluationArray = [];
858
854
  const sendAll = [];
859
855
  const conceptArray = ["description", "datasheet", "images"];
860
- console.log(servicesData);
861
856
 
862
857
  servicesData?.forEach((ret) => {
863
858
  let data = {
@@ -876,7 +871,9 @@ export const ProviderProductEdition = ({
876
871
  );
877
872
  });
878
873
 
879
- conceptArray.forEach((concept) => {
874
+ await Promise.all(evaluationArray);
875
+
876
+ conceptArray?.forEach((concept) => {
880
877
  let data = {
881
878
  articleId: product.id_article,
882
879
  orderId: product.id_order ?? product.orderId,
@@ -891,8 +888,29 @@ export const ProviderProductEdition = ({
891
888
  );
892
889
  });
893
890
 
894
- Promise.all(conceptArray);
895
- Promise.all(sendAll);
891
+ await Promise.all(sendAll);
892
+ const productTemp = product;
893
+ productTemp.article_status = `${result}C`;
894
+ productTemp.datasheet_status = `${result}C`;
895
+ productTemp.description_status = `${result}C`;
896
+ productTemp.images_status = `${result}C`;
897
+ setProduct(productTemp);
898
+ sessionStorage.setItem("productSelected", JSON.stringify(productTemp));
899
+ setProductEdit({
900
+ ArticleId: productTemp.id_article,
901
+ idCategory: productTemp.article.id_category,
902
+ product: productTemp,
903
+ });
904
+ sessionStorage.setItem(
905
+ "productEdit",
906
+ JSON.stringify({
907
+ ArticleId: productTemp.id_article,
908
+ idCategory: productTemp.article.id_category,
909
+ product: productTemp,
910
+ })
911
+ );
912
+
913
+ loadData();
896
914
  } catch (error) {
897
915
  console.log(error);
898
916
  }
@@ -948,47 +966,10 @@ export const ProviderProductEdition = ({
948
966
  }
949
967
  };
950
968
 
951
- const slidefront = [
952
- {
953
- slide: Slide1_1,
954
- description:
955
- "Creamos tu contenido, y todo lo que haga falta para tu producto, cada sección puedes socilitar contenido enriquecido, y nosotros lo haremos por ti.",
956
- },
957
- {
958
- slide: Slide1_2,
959
- description:
960
- "Puedes agregar solicitudes de contenido enriquecido a tu carrito de compra las veces que sean necesarias. Una vez completada tu lista con los servicios necesitados sigue el proceso de compra en checkout.",
961
- },
962
- {
963
- slide: Slide1_3,
964
- description:
965
- "Revisa el contenido que deseas solicilitar, valida y tambien puedes agregar contenido extra, traducciones, o simplemente completar el checkout.",
966
- },
967
- {
968
- slide: Slide1_4,
969
- description:
970
- "Elige el tipo de entrega de tu producto, puedes ser recolección en el lugar o por el contrario puedes dejarlo en nuestras oficinas.",
971
- },
972
- {
973
- slide: Slide1_5,
974
- title: "Bienvenido al modo Content-oh!",
975
- description:
976
- "Finalmente elige la forma de pago que más te guste, procede con el pago y listo.",
977
- },
978
- ];
979
-
980
969
  useEffect(() => {
981
970
  setSaving(loading);
982
971
  }, [loading]);
983
972
 
984
- console.log(
985
- user.is_retailer === 1,
986
- product.id_order || product.orderId,
987
- isRevision(),
988
- getSectionStatus(),
989
- "XD"
990
- );
991
-
992
973
  return (
993
974
  <Container headerTop={headerTop}>
994
975
  <HeaderTop setHeaderTop={setHeaderTop} />
@@ -1271,22 +1252,14 @@ export const ProviderProductEdition = ({
1271
1252
  </Link>
1272
1253
  </button>
1273
1254
  ) : (
1274
- <>
1275
- <SliderToolTip
1276
- infoIcon={InfoIcon}
1277
- slidefront={slidefront}
1278
- iconSize={"big-image"}
1279
- slidePosition={"top-slide"}
1280
- ></SliderToolTip>
1281
- <Button
1282
- onClick={() => {
1283
- setShowContentohRequestModal &&
1284
- setShowContentohRequestModal(true);
1285
- }}
1286
- buttonType="general-default-button"
1287
- label="Enviar a Content-oh!"
1288
- />
1289
- </>
1255
+ <Button
1256
+ onClick={() => {
1257
+ setShowContentohRequestModal &&
1258
+ setShowContentohRequestModal(true);
1259
+ }}
1260
+ buttonType="general-default-button"
1261
+ label="Enviar a Content-oh!"
1262
+ />
1290
1263
  )}
1291
1264
  </div>
1292
1265
  )}
@@ -0,0 +1,17 @@
1
+ import { RegistrationLoginFirstStep } from "./index";
2
+ import LoginImage from "../../../assets/images/carouselImagesLogin/loginImage.svg";
3
+ import Login2 from "../../../assets/images/carouselImagesLogin/login2.svg";
4
+ import Login3 from "../../../assets/images/carouselImagesLogin/login3.svg";
5
+
6
+ export default {
7
+ title: "Components/pages/RegistrationLoginFirstStep",
8
+ component: RegistrationLoginFirstStep,
9
+ };
10
+ const Template = (args) => <RegistrationLoginFirstStep {...args} />;
11
+
12
+ export const RegistrationLoginFirstStepDefault = Template.bind({});
13
+
14
+ RegistrationLoginFirstStepDefault.args = {
15
+ imageArrayCarousel: [LoginImage, Login2, Login3],
16
+ textCarousel: "Elige la plataforma que conecta proovedores y retailers",
17
+ };