contentoh-components-library 21.1.31 → 21.1.32

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 (153) hide show
  1. package/dist/components/atoms/Commentary/styles.js +1 -1
  2. package/dist/components/atoms/GeneralInput/styles.js +3 -3
  3. package/dist/components/atoms/InputFormatter/styles.js +1 -1
  4. package/dist/components/atoms/SliderToolTip/index.js +14 -9
  5. package/dist/components/atoms/SliderToolTip/styles.js +1 -1
  6. package/dist/components/atoms/StatusTag/index.js +2 -17
  7. package/dist/components/atoms/StatusTag/styles.js +1 -1
  8. package/dist/components/organisms/FullProductNameHeader/index.js +1 -1
  9. package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +103 -105
  10. package/dist/components/pages/ProviderProductEdition/index.js +349 -323
  11. package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +83 -38
  12. package/dist/components/pages/RetailerProductEdition/index.js +207 -196
  13. package/dist/global-files/data.js +10 -9
  14. package/package.json +1 -1
  15. package/src/components/atoms/Commentary/styles.js +2 -2
  16. package/src/components/atoms/GeneralInput/styles.js +5 -5
  17. package/src/components/atoms/InputFormatter/styles.js +3 -3
  18. package/src/components/atoms/SliderToolTip/index.js +20 -13
  19. package/src/components/atoms/SliderToolTip/styles.js +20 -24
  20. package/src/components/atoms/StatusTag/index.js +2 -12
  21. package/src/components/atoms/StatusTag/styles.js +11 -11
  22. package/src/components/organisms/FullProductNameHeader/index.js +1 -1
  23. package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +103 -117
  24. package/src/components/pages/ProviderProductEdition/index.js +165 -171
  25. package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +82 -33
  26. package/src/components/pages/RetailerProductEdition/index.js +137 -165
  27. package/src/global-files/data.js +10 -9
  28. package/dist/assets/fonts/avenirnext/AvenirNextLTPro-Bold.otf +0 -0
  29. package/dist/assets/fonts/avenirnext/AvenirNextLTPro-It.otf +0 -0
  30. package/dist/assets/fonts/avenirnext/AvenirNextLTPro-Regular.otf +0 -0
  31. package/dist/assets/fonts/lato/Lato-Bold.ttf +0 -0
  32. package/dist/assets/fonts/lato/Lato-Italic.ttf +0 -0
  33. package/dist/assets/fonts/lato/Lato-Light.ttf +0 -0
  34. package/dist/assets/fonts/lato/Lato-Regular.ttf +0 -0
  35. package/dist/assets/fonts/lato/Lato-Thin.ttf +0 -0
  36. package/dist/assets/fonts/lato/OFL.txt +0 -93
  37. package/dist/assets/fonts/raleway/Raleway-Black.ttf +0 -0
  38. package/dist/assets/fonts/raleway/Raleway-Bold.ttf +0 -0
  39. package/dist/assets/fonts/raleway/Raleway-ExtraBold.ttf +0 -0
  40. package/dist/assets/fonts/raleway/Raleway-Italic.ttf +0 -0
  41. package/dist/assets/fonts/raleway/Raleway-Medium.ttf +0 -0
  42. package/dist/assets/fonts/raleway/Raleway-Regular.ttf +0 -0
  43. package/dist/assets/fonts/raleway/Raleway-SemiBold.ttf +0 -0
  44. package/dist/assets/images/activedFilter/removeFilter.svg +0 -3
  45. package/dist/assets/images/arrow/arrowIcon.svg +0 -3
  46. package/dist/assets/images/arrow/polygon.svg +0 -3
  47. package/dist/assets/images/asignationOptions/availableIcon.svg +0 -3
  48. package/dist/assets/images/asignationOptions/removeAsigned.svg +0 -4
  49. package/dist/assets/images/asignationOptions/requestToProvider.svg +0 -3
  50. package/dist/assets/images/asignationOptions/requestToTeam.svg +0 -3
  51. package/dist/assets/images/card/masterCardIcon.svg +0 -5
  52. package/dist/assets/images/carouselImagesLogin/login2.svg +0 -117
  53. package/dist/assets/images/carouselImagesLogin/login3.svg +0 -147
  54. package/dist/assets/images/carouselImagesLogin/loginImage.svg +0 -301
  55. package/dist/assets/images/checkBox/checked.svg +0 -3
  56. package/dist/assets/images/checkBox/unchecked.svg +0 -3
  57. package/dist/assets/images/componentAssigned/assignedImage1.svg +0 -9
  58. package/dist/assets/images/componentAssigned/assignedImage2.svg +0 -9
  59. package/dist/assets/images/componentAssigned/clock.svg +0 -4
  60. package/dist/assets/images/componentAssigned/flag.svg +0 -3
  61. package/dist/assets/images/defaultImages/defaultProductImage.png +0 -0
  62. package/dist/assets/images/defaultImages/defaultProfileImage.svg +0 -13
  63. package/dist/assets/images/defaultImages/defaultUpdate.png +0 -0
  64. package/dist/assets/images/dropDownButton/dropDownArrowButton.svg +0 -3
  65. package/dist/assets/images/editField/editField.svg +0 -3
  66. package/dist/assets/images/editField/showPassword.png +0 -0
  67. package/dist/assets/images/flags/highPriority.svg +0 -3
  68. package/dist/assets/images/flags/lowPriority.svg +0 -3
  69. package/dist/assets/images/flags/mediumPriority.svg +0 -3
  70. package/dist/assets/images/flags/noPriority.svg +0 -3
  71. package/dist/assets/images/generalButton/acceptIcon.svg +0 -3
  72. package/dist/assets/images/generalButton/closeIcon.svg +0 -4
  73. package/dist/assets/images/generalButton/deleteIcon.svg +0 -13
  74. package/dist/assets/images/generalButton/deleteIconHover.svg +0 -13
  75. package/dist/assets/images/generalButton/downloadIcon.svg +0 -3
  76. package/dist/assets/images/generalButton/gridLayout.svg +0 -3
  77. package/dist/assets/images/generalButton/nullIcon.svg +0 -3
  78. package/dist/assets/images/generalButton/openModal.svg +0 -3
  79. package/dist/assets/images/generalButton/rejectIcon.svg +0 -3
  80. package/dist/assets/images/generalButton/rowLayout.svg +0 -3
  81. package/dist/assets/images/generalButton/saveIcon.svg +0 -3
  82. package/dist/assets/images/generalButton/saveIconHover.svg +0 -3
  83. package/dist/assets/images/generalImage/assigned.svg +0 -14
  84. package/dist/assets/images/generalImage/bags.svg +0 -25
  85. package/dist/assets/images/generalImage/clock.svg +0 -4
  86. package/dist/assets/images/generalImage/flag.svg +0 -3
  87. package/dist/assets/images/genericModal/closeWhite.svg +0 -3
  88. package/dist/assets/images/genericModal/errorModal.svg +0 -3
  89. package/dist/assets/images/genericModal/genericModalCheck.svg +0 -3
  90. package/dist/assets/images/genericModal/genericModalClose.svg +0 -3
  91. package/dist/assets/images/genericModal/genericModalDown.svg +0 -3
  92. package/dist/assets/images/genericModal/genericModalUp.svg +0 -3
  93. package/dist/assets/images/genericModal/genericModalWarning.svg +0 -12
  94. package/dist/assets/images/genericModal/yellowAlert.svg +0 -12
  95. package/dist/assets/images/logo/logoLogin.svg +0 -15
  96. package/dist/assets/images/menuNotification/menuNotificationComment.svg +0 -3
  97. package/dist/assets/images/menuNotification/menuNotificationProduct.svg +0 -3
  98. package/dist/assets/images/menuProfile/logOut.svg +0 -3
  99. package/dist/assets/images/menuProfile/myAccount.svg +0 -3
  100. package/dist/assets/images/menuProfile/settings.svg +0 -3
  101. package/dist/assets/images/modalsSVGs/attributesSent.svg +0 -208
  102. package/dist/assets/images/modalsSVGs/descriptionSent.svg +0 -237
  103. package/dist/assets/images/modalsSVGs/providerSent.svg +0 -445
  104. package/dist/assets/images/modalsSVGs/uploadingImages.svg +0 -148
  105. package/dist/assets/images/productImage/openModal.svg +0 -3
  106. package/dist/assets/images/productNotification/productNotification.svg +0 -3
  107. package/dist/assets/images/profileHeader/profilePicture.svg +0 -9
  108. package/dist/assets/images/providerAndCadena/Cadena.svg +0 -188
  109. package/dist/assets/images/providerAndCadena/LoginContentoh.svg +0 -15
  110. package/dist/assets/images/providerAndCadena/Proveedor.svg +0 -231
  111. package/dist/assets/images/sideMenuButton/contenoh.svg +0 -5
  112. package/dist/assets/images/sideMenuButton/dashboard.svg +0 -5
  113. package/dist/assets/images/sideMenuButton/products.svg +0 -10
  114. package/dist/assets/images/sideMenuButton/providers.svg +0 -10
  115. package/dist/assets/images/sideMenuButton/tasks.svg +0 -3
  116. package/dist/assets/images/sliderToolTip/infoIcon.svg +0 -4
  117. package/dist/assets/images/sliderToolTip/slide1.svg +0 -5
  118. package/dist/assets/images/sliderToolTip/slide2.svg +0 -9
  119. package/dist/assets/images/sliderToolTip/slide21.svg +0 -9
  120. package/dist/assets/images/sliderToolTip/slide22.svg +0 -9
  121. package/dist/assets/images/sliderToolTip/slide23.svg +0 -9
  122. package/dist/assets/images/sliderToolTip/slide3.svg +0 -9
  123. package/dist/assets/images/sliderToolTip/slide4.svg +0 -9
  124. package/dist/assets/images/sliderToolTip/slide5.svg +0 -40
  125. package/dist/assets/images/verticalSideMenuMainPage/closeMenu.svg +0 -4
  126. package/dist/assets/images/verticalSideMenuMainPage/iconFAQS.svg +0 -12
  127. package/dist/assets/images/verticalSideMenuMainPage/iconGroup.svg +0 -3
  128. package/dist/assets/images/verticalSideMenuMainPage/iconLogo.svg +0 -12
  129. package/dist/assets/images/verticalSideMenuMainPage/iconLogoContentoh.svg +0 -15
  130. package/dist/assets/images/verticalSideMenuMainPage/iconProduct.svg +0 -3
  131. package/dist/assets/images/verticalSideMenuMainPage/iconSpeedometer.svg +0 -12
  132. package/dist/assets/images/verticalSideMenuMainPage/iconTask.svg +0 -10
  133. package/dist/assets/images/verticalSideMenuMainPage/openMenu.svg +0 -4
  134. package/dist/components/atoms/ListCommercialRetailers/ListCommercialRetailers.stories.js +0 -36
  135. package/dist/components/atoms/ListCommercialRetailers/index.js +0 -64
  136. package/dist/components/atoms/ListCommercialRetailers/styles.js +0 -20
  137. package/dist/components/atoms/MenuCommercialRetailers/MenuCommercialRetailers.stories.js +0 -37
  138. package/dist/components/atoms/MenuCommercialRetailers/index.js +0 -25
  139. package/dist/components/atoms/MenuCommercialRetailers/styles.js +0 -20
  140. package/dist/components/atoms/MenuProductImage/MenuProductImage.stories.js +0 -28
  141. package/dist/components/atoms/MenuProductImage/index.js +0 -88
  142. package/dist/components/atoms/MenuProductImage/styles.js +0 -20
  143. package/dist/components/molecules/ApproveRejetPanel/ApproveRejetPanel.stories.js +0 -25
  144. package/dist/components/molecules/ApproveRejetPanel/index.js +0 -49
  145. package/dist/components/molecules/ApproveRejetPanel/styles.js +0 -18
  146. package/dist/components/molecules/SignInLoginCreationApp/SignInLogin.stories.js +0 -28
  147. package/dist/components/molecules/SignInLoginCreationApp/index.js +0 -270
  148. package/dist/components/molecules/SignInLoginCreationApp/styles.js +0 -20
  149. package/dist/components/pages/RegistrationLoginFirstStep/RegistrationLoginFirstStep.stories.js +0 -37
  150. package/dist/components/pages/RegistrationLoginFirstStep/index.js +0 -269
  151. package/dist/components/pages/RegistrationLoginFirstStep/styles.js +0 -20
  152. package/dist/global-files/fonts.css +0 -45
  153. package/dist/global-files/global-styles.css +0 -40
@@ -280,20 +280,21 @@ var getNewStatus = function getNewStatus(statusArray) {
280
280
  statusArray.forEach(function (element) {
281
281
  return lookupString += element + "/";
282
282
  });
283
- if (lookupString.includes("RF")) return "RF";
283
+ if (lookupString.includes("RC")) return "RC";
284
284
  if (lookupString.includes("RA")) return "RA";
285
285
  if (lookupString.includes("RP")) return "RP";
286
- if (lookupString.includes("RC")) return "RC";
287
- if (lookupString.includes("UNASSIGNED")) return "IN_PROGRESS";
288
- if (lookupString.includes("IN_PROGRESS")) return "IN_PROGRESS";
289
- if (lookupString.includes("QF")) return "QF";
290
- if (lookupString.includes("AF")) return "AF";
286
+ if (lookupString.includes("RCA")) return "RCA";
287
+ if (lookupString.includes("UNASSIGNED")) return "CA";
288
+ if (lookupString.includes("CA")) return "CA";
289
+ if (lookupString.includes("IE")) return "IE";
290
+ if (lookupString.includes("AC")) return "AC";
291
291
  if (lookupString.includes("AA")) return "AA";
292
292
  if (lookupString.includes("AP")) return "AP";
293
- if (lookupString.includes("AC")) return "AC";
294
- if (lookupString.includes("RECEIVED")) return "RECEIVED";
293
+ if (lookupString.includes("ACA")) return "ACA";
294
+ if (lookupString.includes("R")) return "R";
295
295
  if (lookupString.includes("NA")) return "NA";
296
- return new Error("Status not found");
296
+ console.log("Status not found");
297
+ return "NA";
297
298
  };
298
299
 
299
300
  exports.getNewStatus = getNewStatus;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.1.31",
3
+ "version": "21.1.32",
4
4
  "dependencies": {
5
5
  "@aws-amplify/auth": "^4.5.3",
6
6
  "@aws-amplify/datastore": "^3.11.0",
@@ -10,7 +10,7 @@ export const Container = styled.div`
10
10
  font-family: ${FontFamily.AvenirNext};
11
11
  font-size: 12px;
12
12
  line-height: 15px;
13
- color: ${GlobalColors.s4};
13
+ color: ${GlobalColors.deep_gray};
14
14
  text-decoration: ${({ reviewed }) => (reviewed ? "line-through" : "none")};
15
15
  }
16
- `;
16
+ `;
@@ -19,7 +19,7 @@ export const Container = styled.div`
19
19
  ${({ isRequired }) => (isRequired ? "red" : `${GlobalColors.s2}`)};
20
20
 
21
21
  font-family: ${FontFamily.AvenirNext};
22
- color: ${GlobalColors.s4};
22
+ color: ${GlobalColors.deep_gray};
23
23
  font-weight: normal;
24
24
  font-size: 12px;
25
25
  line-height: 15px;
@@ -41,7 +41,7 @@ export const Container = styled.div`
41
41
  width: 100%;
42
42
  cursor: pointer;
43
43
  font-family: ${FontFamily.AvenirNext};
44
- color: ${GlobalColors.s4};
44
+ color: ${GlobalColors.deep_gray};
45
45
  font-size: 12px;
46
46
  line-height: 21px;
47
47
  padding: 10px;
@@ -54,7 +54,7 @@ export const Container = styled.div`
54
54
 
55
55
  p {
56
56
  font-family: ${FontFamily.Raleway};
57
- font-size: 11px;
58
- color: ${GlobalColors.s4};
57
+ font-size: 12px;
58
+ color: ${GlobalColors.deep_gray};
59
59
  }
60
- `;
60
+ `;
@@ -26,7 +26,7 @@ export const Container = styled.div`
26
26
  .ql-container {
27
27
  border: none;
28
28
  font-family: ${FontFamily.AvenirNext};
29
- color: ${GlobalColors.s4};
29
+ color: ${GlobalColors.deep_gray};
30
30
  strong {
31
31
  font-family: ${FontFamily.Raleway_900};
32
32
  }
@@ -35,7 +35,7 @@ export const Container = styled.div`
35
35
  .description-limit {
36
36
  font-size: 12px;
37
37
  font-family: ${FontFamily.AvenirNext};
38
- color: ${GlobalColors.s4};
38
+ color: ${GlobalColors.deep_gray};
39
39
  text-align: right;
40
40
  }
41
- `;
41
+ `;
@@ -8,6 +8,7 @@ export const SliderToolTip = ({
8
8
  slidePosition,
9
9
  }) => {
10
10
  const [showMenu, setShowMenu] = useState(false);
11
+
11
12
  const closeMenu = (e) => {
12
13
  if (!e.target.closest("#div-slider") && showMenu) {
13
14
  document.removeEventListener("click", closeMenu, false);
@@ -36,7 +37,7 @@ export const SliderToolTip = ({
36
37
 
37
38
  return (
38
39
  <>
39
- <Container className="container-slider">
40
+ <Container>
40
41
  <img
41
42
  src={infoIcon}
42
43
  alt="info icon"
@@ -49,11 +50,7 @@ export const SliderToolTip = ({
49
50
  }}
50
51
  />
51
52
  {showMenu && (
52
- <Slider
53
- id="div-slider"
54
- className={slidePosition}
55
- length={slidefront.length}
56
- >
53
+ <Slider id="div-slider" className={slidePosition}>
57
54
  <ul className="slider">
58
55
  {slidefront.map((item, index) => (
59
56
  <li
@@ -65,13 +62,13 @@ export const SliderToolTip = ({
65
62
  }
66
63
  >
67
64
  <div>
68
- <img src={slidefront[index].slide} />
65
+ <img src={item.slide} />
69
66
  </div>
70
67
  {`slide${index + 1}` === `slide${slidefront.length}` ? (
71
68
  <>
72
69
  <div className="lema-end">
73
- <span>{slidefront[index].title}</span>
74
- <p>{slidefront[index].description}</p>
70
+ <span>{item.title}</span>
71
+ <p>{item.description}</p>
75
72
  </div>
76
73
  <button
77
74
  id="button-slide"
@@ -89,10 +86,10 @@ export const SliderToolTip = ({
89
86
  </>
90
87
  ) : (
91
88
  <>
92
- {slidefront[index].title !== undefined ? (
93
- <span>{slidefront[index].title}</span>
89
+ {item.title !== undefined ? (
90
+ <span>{item.title}</span>
94
91
  ) : null}
95
- <p>{slidefront[index].description}</p>
92
+ <p>{item.description}</p>
96
93
  </>
97
94
  )}
98
95
  </li>
@@ -102,10 +99,20 @@ export const SliderToolTip = ({
102
99
  {slidefront.map((item, index) => (
103
100
  <li>
104
101
  <a
105
- href={`#slide${index + 1}`}
106
102
  id={`slidea${index + 1}`}
107
103
  onClick={(e) => {
108
104
  color(`slidea${index + 1}`);
105
+ for (let i = 1; i <= slidefront.length; i++) {
106
+ if (index + 1 === i) {
107
+ document.getElementById(
108
+ `slide${index + 1}`
109
+ ).style.opacity = 1;
110
+ } else if (index + 1 > i || index + 1 < i) {
111
+ document.getElementById(
112
+ `slide${i}`
113
+ ).style.opacity = 0;
114
+ }
115
+ }
109
116
  }}
110
117
  ></a>
111
118
  </li>
@@ -35,16 +35,14 @@ export const Slider = styled.div`
35
35
  position: absolute;
36
36
  cursor: default;
37
37
  z-index: 2;
38
+ width: 310px;
38
39
  &.top-slide {
39
40
  top: calc(100% - 370px);
40
41
  left: calc(100% - 175px);
41
42
  }
42
43
  &.bottom-slide {
43
- top: calc(100%);
44
- left: calc(-280px / 2);
45
- }
46
- #div-slider {
47
- width: 310px;
44
+ top: 100%;
45
+ right: calc(100% + -70px);
48
46
  }
49
47
  ul,
50
48
  li {
@@ -58,22 +56,6 @@ export const Slider = styled.div`
58
56
  width: 100%;
59
57
  height: 270px;
60
58
  margin: 0;
61
- span {
62
- font-family: "Avenir Next";
63
- font-style: normal;
64
- font-weight: 500;
65
- font-size: 15px;
66
- line-height: 15px;
67
- text-align: center;
68
- letter-spacing: -0.015em;
69
- color: #fafafa;
70
- display: flex;
71
- justify-content: center;
72
- background-color: #281f33;
73
- & + * {
74
- margin-top: 10px;
75
- }
76
- }
77
59
  li {
78
60
  position: absolute;
79
61
  left: 0px;
@@ -118,6 +100,22 @@ export const Slider = styled.div`
118
100
  margin-top: 13px;
119
101
  }
120
102
  }
103
+ span {
104
+ font-family: "Avenir Next";
105
+ font-style: normal;
106
+ font-weight: 500;
107
+ font-size: 15px;
108
+ line-height: 15px;
109
+ text-align: center;
110
+ letter-spacing: -0.015em;
111
+ color: #fafafa;
112
+ display: flex;
113
+ justify-content: center;
114
+ background-color: #281f33;
115
+ & + * {
116
+ margin-top: 10px;
117
+ }
118
+ }
121
119
  }
122
120
  .end-div {
123
121
  div {
@@ -169,9 +167,6 @@ export const Slider = styled.div`
169
167
  li:first-child {
170
168
  opacity: 1;
171
169
  }
172
- li:target {
173
- opacity: 1;
174
- }
175
170
  .menu {
176
171
  margin: 0;
177
172
  text-align: center;
@@ -188,6 +183,7 @@ export const Slider = styled.div`
188
183
  width: 10px;
189
184
  height: 10px;
190
185
  border-radius: 100%;
186
+ cursor: pointer;
191
187
  }
192
188
  #slidea1 {
193
189
  background-color: #e33aa9;
@@ -5,20 +5,10 @@ export const StatusTag = ({ statusType, ovalForm }) => {
5
5
  switch (status) {
6
6
  case "COMPLETED":
7
7
  return "C";
8
- case "RECEPTION":
9
- return "Pr";
10
8
  case "NULL":
11
- return "-";
12
- case "RECEIVED":
13
- return "Rc";
14
- case "IN_PROGRESS":
15
- return "P";
16
- case "ASSIGNED":
17
- return "As";
9
+ return "--";
18
10
  case "APPROVED":
19
11
  return "Ap";
20
- case "VALIDATING":
21
- return "V";
22
12
  case "PAID_OUT":
23
13
  return "Po";
24
14
  default:
@@ -27,7 +17,7 @@ export const StatusTag = ({ statusType, ovalForm }) => {
27
17
  };
28
18
  return (
29
19
  <Container
30
- className={`status-${getShortStatus(statusType)} ${
20
+ className={`status-${getShortStatus(statusType?.replace(/\/.*/, ""))} ${
31
21
  ovalForm && "oval-form"
32
22
  }`}
33
23
  >
@@ -16,30 +16,27 @@ export const Container = styled.div`
16
16
  line-height: 20px;
17
17
  }
18
18
 
19
- &.status-As,
20
- &.status-P,
21
- &.status-IN_PROGRESS,
22
- &.status-QF {
19
+ &.status-AS,
20
+ &.status-CA,
21
+ &.status-IE {
23
22
  background-color: ${GlobalColors.in_progress};
24
23
  }
25
24
 
26
- &.status-Pr,
27
- &.status-Rr,
28
- &.status-Rc {
25
+ &.status-R {
29
26
  background-color: ${GlobalColors.reception};
30
27
  }
31
28
 
32
29
  &.status-AA,
33
30
  &.status-AP,
34
- &.status-AC,
35
- &.status-AF {
31
+ &.status-ACA,
32
+ &.status-AC {
36
33
  background-color: ${GlobalColors.finished};
37
34
  }
38
35
 
39
36
  &.status-RA,
40
- &.status-RF,
37
+ &.status-RC,
41
38
  &.status-RP,
42
- &.status-RC {
39
+ &.status-RCA {
43
40
  background-color: ${GlobalColors.rejected_status};
44
41
  }
45
42
 
@@ -73,4 +70,7 @@ export const Container = styled.div`
73
70
  &.oval-form {
74
71
  border-radius: 10px;
75
72
  }
73
+ &.delThis {
74
+ color: red;
75
+ }
76
76
  `;
@@ -26,7 +26,7 @@ export const FullProductNameHeader = ({
26
26
  const element = [];
27
27
  servicesData.forEach((sd) => {
28
28
  if (sd.id_retailer === rt.id) {
29
- element.push(sd.status ? sd.status : "RECEIVED");
29
+ element.push(sd.status ? sd.status : "R");
30
30
  } else element.push("NA");
31
31
  rt["services"] = element;
32
32
  });
@@ -16,171 +16,157 @@ ProviderProductEditionDefault.args = {
16
16
  Imágenes: false,
17
17
  },
18
18
  token:
19
- "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI1ODg0YWUzNC01OWQ2LTQ0NTQtYjk4ZS04MjE1MThiY2MzYTciLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6IjU4ODRhZTM0LTU5ZDYtNDQ1NC1iOThlLTgyMTUxOGJjYzNhNyIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiJhODE2NGMwNi1hN2U5LTQ2OGItYTBiMS02MDIxNzMyNWY0ZTgiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY1NjExMzE0NiwibmFtZSI6IkNhZGVuYSBJc21hZWwiLCJwaG9uZV9udW1iZXIiOiIrNTIzMTExMzY2MzM2IiwiZXhwIjoxNjU2MTE2NzQ2LCJpYXQiOjE2NTYxMTMxNDYsImVtYWlsIjoiY2FkZW5hLmlzbWFlbEBhbGxmcmVlbWFpbC5uZXQifQ.kfMoKcxYDkpNZJibGdw50oOkRwPVl26YNAwwDoLEfQjOZB6WRCY95iHfU1maYcTTvA5KlT5ali8XZ-nLnxh60vZoLGTDOfCvEnwd1t94JtfE5CsWDr_jfH1U0AVidxihqKnkwvCezkHwU1DUFlbu2iBNo7MHQw4ydiK2sx4q0-QGltmE7W2JJ0sayRDuNchy2S6FQoyIWhsP3oaKTvJGDKCaJxwkFEKk-3antoMtfua9H8V4p2Kkqa_eDbFk8pLYGaYgImLlaia2orGgETkHZIWEMr4WJq1V_7qOg4lYq2BUUuMhWdmK6XUL_Jhmv05TUJ3Rp_Ti4_J2WE4zQqhbfQ",
20
- articleId: 238,
21
- category: 846,
22
- version: 2,
19
+ "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmNTkyN2Y4ZS1jYmY3LTQ5MjItOWUwOS1lNjllYzBiMjczMWEiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImY1OTI3ZjhlLWNiZjctNDkyMi05ZTA5LWU2OWVjMGIyNzMxYSIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiIwOWQ1MDUzMy05NjA3LTQ5YTQtODRkNC0zMDk1OWNmNmY4NjUiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY1NjYwNzcyMSwibmFtZSI6IklzbWFlbCBMb3BleiIsInBob25lX251bWJlciI6Iis1MjMxMTEzNjYzMzYiLCJleHAiOjE2NTY2MTEzMjEsImlhdCI6MTY1NjYwNzcyMSwiZW1haWwiOiJpbG9wZXpAY29udGVudG9oLmNvbSJ9.Xung-7vGoB-YllkTIOn0DrNRd-GBD4lbQemGdMxRPFbE-nvvGXQsTWLstJ-8yQ4zoyGUoOIoGsRwuI127kUkg4hhel6pXDINfxdWsdI1QXk6SzGulkcmhD8gUFnXMc8rvBkMizNYHF9d_7dUsJRhjAxQWmVew8m7W8dTPrAht_xjfk1ZmTQVD4O6IVwLJEX3FncXj1tAXgknksUGj-vGDen5HkuVEv8jJlKFiz72cV07H66jk3-BReu0e_gpq2RRz8wGu18HOaPzjWvzmiYcm5FqGKOTAWM5JSgWCOm9r5ixh5m_pM3EjKbWpVb3joELRQ2DVkPFp2fzGmS028-9XQ",
20
+ articleId: 55157,
21
+ category: 4,
22
+ version: 3,
23
23
  productSelected: {
24
- orderId: 55,
25
- article_status: "AP",
24
+ orderId: 89,
25
+ status: "AA",
26
26
  datasheet_status: "AP",
27
- description_status: "AP",
28
- images_status: "AP",
29
27
  prio: "none",
30
- version: 2,
31
- brand: null,
32
- article: {
33
- category: "ILUMINACIÓN|FOCOS|FOCOS",
34
- company_name: "THD Proveedor",
35
- country: "México",
36
- id_category: "2143",
37
- id_article: 55118,
38
- name: "FOCO BLUETOOTH SPOT PHILIPS 6 WATTS 300 LÚMENES MULTICOLOR",
39
- upc: "145582",
28
+ version: 3,
29
+ description_status: "AA",
30
+ images_status: "AP",
31
+ brand: "123",
32
+ retailerOrder: 0,
33
+ missing: {
34
+ datasheet: 17,
35
+ descriptions: 4,
36
+ images: 3,
40
37
  },
41
- retailers: [
42
- {
43
- id: 58,
44
- name: "The Home Depot Golden",
45
- },
46
- {
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",
57
- },
58
- ],
59
38
  services: {
60
39
  datasheets: 1,
61
40
  descriptions: 1,
62
41
  images: 1,
63
42
  },
64
- id_article: 55118,
65
- retailersAvailable: [
66
- {
67
- id: 58,
68
- name: "The Home Depot Golden",
69
- },
70
- {
71
- id: 59,
72
- name: "The Home Depot Platinum",
73
- },
43
+ article: {
44
+ category: "ABARROTES|ABARROTES SECOS|ALIMENTOS DESHIDRATADOS",
45
+ company_name: "COMPANY DEV",
46
+ country: "México",
47
+ id_category: "4",
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: 89,
55
+ id_article: 55157,
56
+ id_auditor: 37,
57
+ name: "testing",
58
+ upc: "807526",
59
+ },
60
+ retailers: [
74
61
  {
75
- id: 60,
76
- name: "The Home Depot Resizing",
62
+ id: 3,
63
+ name: "Sam´s Club",
77
64
  },
65
+ ],
66
+ retailersAvailable: [
78
67
  {
79
- id: 61,
80
- name: "Home Depot TAB",
68
+ id: 3,
69
+ name: "Sam´s Club",
81
70
  },
82
71
  ],
72
+ categoryName: "ABARROTES|ABARROTES SECOS|ALIMENTOS DESHIDRATADOS",
73
+ upc: "807526",
74
+ id_article: 55157,
75
+ id_order: 89,
83
76
  },
84
77
  productToEdit: {
85
- ArticleId: 55118,
86
- idCategory: "2143",
78
+ ArticleId: 55157,
79
+ idCategory: "4",
87
80
  product: {
88
- orderId: 55,
89
- article_status: "AP",
81
+ orderId: 89,
82
+ status: "AA",
90
83
  datasheet_status: "AP",
91
- description_status: "AP",
92
- images_status: "AP",
93
84
  prio: "none",
94
- version: 2,
95
- brand: null,
96
- article: {
97
- category: "ILUMINACIÓN|FOCOS|FOCOS",
98
- company_name: "THD Proveedor",
99
- country: "México",
100
- id_category: "2143",
101
- id_article: 55118,
102
- name: "FOCO BLUETOOTH SPOT PHILIPS 6 WATTS 300 LÚMENES MULTICOLOR",
103
- upc: "145582",
85
+ version: 3,
86
+ description_status: "AA",
87
+ images_status: "AP",
88
+ brand: "123",
89
+ retailerOrder: 0,
90
+ missing: {
91
+ datasheet: 17,
92
+ descriptions: 4,
93
+ images: 3,
104
94
  },
105
- retailers: [
106
- {
107
- id: 58,
108
- name: "The Home Depot Golden",
109
- },
110
- {
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",
121
- },
122
- ],
123
95
  services: {
124
96
  datasheets: 1,
125
97
  descriptions: 1,
126
98
  images: 1,
127
99
  },
128
- id_article: 55118,
129
- retailersAvailable: [
130
- {
131
- id: 58,
132
- name: "The Home Depot Golden",
133
- },
134
- {
135
- id: 59,
136
- name: "The Home Depot Platinum",
137
- },
100
+ article: {
101
+ category: "ABARROTES|ABARROTES SECOS|ALIMENTOS DESHIDRATADOS",
102
+ company_name: "COMPANY DEV",
103
+ country: "México",
104
+ id_category: "4",
105
+ id_datasheet_especialist: 54,
106
+ id_datasheet_facilitator: 52,
107
+ id_description_especialist: 54,
108
+ id_description_facilitator: 52,
109
+ id_images_especialist: 55,
110
+ id_images_facilitator: 53,
111
+ id_order: 89,
112
+ id_article: 55157,
113
+ id_auditor: 37,
114
+ name: "testing",
115
+ upc: "807526",
116
+ },
117
+ retailers: [
138
118
  {
139
- id: 60,
140
- name: "The Home Depot Resizing",
119
+ id: 3,
120
+ name: "Sam´s Club",
141
121
  },
122
+ ],
123
+ retailersAvailable: [
142
124
  {
143
- id: 61,
144
- name: "Home Depot TAB",
125
+ id: 3,
126
+ name: "Sam´s Club",
145
127
  },
146
128
  ],
129
+ categoryName: "ABARROTES|ABARROTES SECOS|ALIMENTOS DESHIDRATADOS",
130
+ upc: "807526",
131
+ id_article: 55157,
132
+ id_order: 89,
147
133
  },
148
134
  },
149
135
  location: {
150
- product: { articleId: 109485, versionId: 3 },
136
+ product: { articleId: 55157, versionId: 3 },
151
137
  state: { origin: "Contentoh" },
152
138
  },
153
139
  user: {
154
- id_user: 59,
155
- name: "The Home",
156
- last_name: "Depot",
157
- email: "cadena.ismael@allfreemail.net",
158
- position: "Admin",
140
+ id_user: 28,
141
+ name: "Proveedor",
142
+ last_name: "Colgate",
143
+ email: "ilopez@contentoh.com",
144
+ position: "Prueba Admin",
159
145
  telephone: "+523111366336",
160
146
  country: "México",
161
- id_company: 7,
162
- id_cognito: "5884ae34-59d6-4454-b98e-821518bcc3a7",
147
+ id_company: 1,
148
+ id_cognito: "f5927f8e-cbf7-4922-9e09-e69ec0b2731a",
163
149
  birth_Date: null,
164
150
  about_me: null,
165
151
  zip_code: null,
166
152
  address: null,
167
153
  job: null,
168
- id_stripe: "",
154
+ id_stripe: "cus_KuEt6R6vwmN09f",
169
155
  id_role: 0,
170
156
  active: 1,
171
157
  is_retailer: 0,
172
- email_notify: 1,
158
+ email_notify: 0,
173
159
  membership: {
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",
160
+ id: 38,
161
+ start_date: "2022-01-18T17:25:35.000Z",
162
+ end_date: "2023-01-18T17:25:35.000Z",
163
+ planID: 8,
164
+ plan: "prod_KtlhECVSFG2iro",
165
+ name: "Plan Pro",
166
+ user_limit: "20",
167
+ products_limit: "5000",
182
168
  type: "Enterprise",
183
169
  },
184
- src: "https://content-management-profile.s3.amazonaws.com/id-59/59.png?1656113146885",
170
+ src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1656607722122",
185
171
  },
186
172
  };