contentoh-components-library 21.5.7 → 21.5.9

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 (295) hide show
  1. package/dist/components/organisms/InputGroup/index.js +1 -9
  2. package/dist/components/organisms/Table/styles.js +1 -1
  3. package/dist/components/pages/MultipleEdition/saveData.js +19 -9
  4. package/dist/components/pages/MultipleEdition/styles.js +1 -1
  5. package/dist/components/pages/MultipleEdition/utils.js +153 -86
  6. package/package.json +1 -4
  7. package/src/components/atoms/Avatar/index.js +2 -8
  8. package/src/components/atoms/ButtonV2/ButtonV2.stories.js +0 -1
  9. package/src/components/atoms/ButtonV2/index.js +0 -1
  10. package/src/components/atoms/ButtonV2/styles.js +0 -16
  11. package/src/components/atoms/CheckBox/CheckBox.stories.js +0 -5
  12. package/src/components/atoms/CheckBox/index.js +1 -5
  13. package/src/components/atoms/CheckBox/styles.js +3 -9
  14. package/src/components/atoms/GeneralButton/styles.js +0 -46
  15. package/src/components/atoms/GeneralInput/index.js +0 -3
  16. package/src/components/atoms/GeneralInput/styles.js +1 -19
  17. package/src/components/atoms/InputFormatter/index.js +1 -2
  18. package/src/components/atoms/InputFormatter/styles.js +4 -9
  19. package/src/components/atoms/ProductImage/index.js +11 -24
  20. package/src/components/atoms/ProductImage/styles.js +0 -7
  21. package/src/components/atoms/SliderToolTip/styles.js +1 -1
  22. package/src/components/atoms/TabSection/index.js +1 -1
  23. package/src/components/atoms/TabSection/styles.js +3 -0
  24. package/src/components/molecules/BoxAttribute/index.js +25 -32
  25. package/src/components/molecules/BoxAttribute/styles.js +1 -1
  26. package/src/components/molecules/BoxButtons/index.js +22 -23
  27. package/src/components/molecules/CarouselImagesLogin/index.js +1 -1
  28. package/src/components/molecules/GalleryElement/index.js +1 -76
  29. package/src/components/molecules/GalleryHeader/index.js +0 -1
  30. package/src/components/molecules/HeaderTop/index.js +6 -52
  31. package/src/components/molecules/ProductNameHeader/index.js +1 -19
  32. package/src/components/molecules/SignInLogin/index.js +11 -11
  33. package/src/components/molecules/StatusAsignationInfo/FinancedCompanies.js +63 -501
  34. package/src/components/molecules/StatusAsignationInfo/index.js +1 -1
  35. package/src/components/molecules/StripeCardSelector/CardSelector.stories.js +2 -1
  36. package/src/components/molecules/TagAndInput/index.js +6 -8
  37. package/src/components/organisms/Chat/Chat.stories.js +7 -27
  38. package/src/components/organisms/Chat/ContainerItems/index.js +2 -18
  39. package/src/components/organisms/Chat/ContainerItems/styles.js +2 -14
  40. package/src/components/organisms/Chat/ContentChat/index.js +12 -88
  41. package/src/components/organisms/Chat/Footer/index.js +0 -11
  42. package/src/components/organisms/Chat/index.js +4 -46
  43. package/src/components/organisms/Chat/styles.js +0 -4
  44. package/src/components/organisms/DashboardMetric/index.js +3 -6
  45. package/src/components/organisms/FullProductNameHeader/index.js +1 -13
  46. package/src/components/organisms/GridProducts/GridProducts.stories.js +107 -682
  47. package/src/components/organisms/GridProducts/index.js +1 -1
  48. package/src/components/organisms/InputGroup/index.js +144 -303
  49. package/src/components/organisms/InputGroup/styles.js +0 -31
  50. package/src/components/organisms/Modal/Modal.stories.js +1 -2
  51. package/src/components/organisms/Modal/index.js +2 -9
  52. package/src/components/organisms/Modal/styles.js +1 -8
  53. package/src/components/organisms/OrderDetail/utils/Table/utils.js +16 -6
  54. package/src/components/pages/Dashboard/Dashboard.stories.js +38 -33
  55. package/src/components/pages/Dashboard/index.js +7 -36
  56. package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +60 -56
  57. package/src/components/pages/ProviderProductEdition/index.js +133 -148
  58. package/src/components/pages/ProviderProductEdition/styles.js +1 -5
  59. package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +0 -4
  60. package/src/components/pages/RetailerProductEdition/index.js +300 -293
  61. package/src/components/pages/RetailerProductEdition/styles.js +0 -4
  62. package/src/components/pages/RetailerProductEdition/utils.js +0 -37
  63. package/src/global-files/data.js +10 -6
  64. package/src/global-files/variables.js +0 -6
  65. package/src/index.js +0 -12
  66. package/src/assets/images/Icons/addv2.svg +0 -8
  67. package/src/assets/images/Icons/beenhere.svg +0 -9
  68. package/src/assets/images/Icons/checkv2.svg +0 -8
  69. package/src/assets/images/Icons/close-magenta.svg +0 -9
  70. package/src/assets/images/Icons/close.svg +0 -8
  71. package/src/assets/images/Icons/closeCircle.svg +0 -8
  72. package/src/assets/images/Icons/delete-forever-red.svg +0 -9
  73. package/src/assets/images/Icons/delete-forever-white.svg +0 -10
  74. package/src/assets/images/Icons/edit.svg +0 -8
  75. package/src/assets/images/Icons/fullscreen.svg +0 -3
  76. package/src/assets/images/Icons/infoNR.svg +0 -8
  77. package/src/assets/images/Icons/options.svg +0 -3
  78. package/src/assets/images/Icons/save-white-gray.svg +0 -9
  79. package/src/assets/images/Icons/save-white.svg +0 -9
  80. package/src/assets/images/Icons/save.svg +0 -8
  81. package/src/assets/images/Icons/search.svg +0 -3
  82. package/src/assets/images/Icons/settings.svg +0 -8
  83. package/src/assets/images/Icons/trash.svg +0 -8
  84. package/src/assets/images/Icons/undo.svg +0 -8
  85. package/src/assets/images/Icons/upload-file-white.svg +0 -4
  86. package/src/assets/images/Icons/upload-file.svg +0 -10
  87. package/src/assets/images/Icons/upload_file.svg +0 -10
  88. package/src/assets/images/Icons/warningv2.svg +0 -3
  89. package/src/assets/images/checkBox/checkrosa.svg +0 -3
  90. package/src/assets/images/checkBox/checkverde.svg +0 -3
  91. package/src/assets/images/flagsv2/highPriority.svg +0 -3
  92. package/src/assets/images/flagsv2/lowPriority.svg +0 -3
  93. package/src/assets/images/flagsv2/mediumPriority.svg +0 -3
  94. package/src/assets/images/flagsv2/noPriority.svg +0 -3
  95. package/src/assets/images/generalButton/closeIconWhite.svg +0 -4
  96. package/src/assets/images/generalButton/closeIconv2.svg +0 -4
  97. package/src/assets/images/generalButton/saveIconpink.svg +0 -3
  98. package/src/components/atoms/CharsMissing/Wysiwyg.stories.js +0 -12
  99. package/src/components/atoms/CharsMissing/index.js +0 -60
  100. package/src/components/atoms/CharsMissing/styles.js +0 -44
  101. package/src/components/atoms/CustomChip/CustomChip.stories.js +0 -16
  102. package/src/components/atoms/CustomChip/index.js +0 -34
  103. package/src/components/atoms/CustomChip/styles.js +0 -6
  104. package/src/components/atoms/FeatureTagv2/FeatureTagv2.stories.js +0 -16
  105. package/src/components/atoms/FeatureTagv2/index.js +0 -10
  106. package/src/components/atoms/FeatureTagv2/styles.js +0 -56
  107. package/src/components/atoms/GeneralInputv2/GeneralInputv2.stories.js +0 -33
  108. package/src/components/atoms/GeneralInputv2/index.js +0 -155
  109. package/src/components/atoms/GeneralInputv2/styles.js +0 -67
  110. package/src/components/atoms/InputFormatterv2/Wysiwyg.stories.js +0 -12
  111. package/src/components/atoms/InputFormatterv2/index.js +0 -148
  112. package/src/components/atoms/InputFormatterv2/styles.js +0 -39
  113. package/src/components/atoms/InputImages/InputImages.stories.js +0 -19
  114. package/src/components/atoms/InputImages/index.js +0 -25
  115. package/src/components/atoms/InputImages/styles.js +0 -17
  116. package/src/components/atoms/Multiselect/Multiselect.stories.js +0 -364
  117. package/src/components/atoms/Multiselect/index.js +0 -351
  118. package/src/components/atoms/Multiselect/styles.js +0 -33
  119. package/src/components/atoms/NumberMandatory/NumberMandatory.stories.js +0 -19
  120. package/src/components/atoms/NumberMandatory/index.js +0 -16
  121. package/src/components/atoms/NumberMandatory/styles.js +0 -11
  122. package/src/components/atoms/ObservationFlag/ObservationFlag.stories.js +0 -20
  123. package/src/components/atoms/ObservationFlag/index.js +0 -167
  124. package/src/components/atoms/ObservationFlag/styles.js +0 -104
  125. package/src/components/atoms/PriorityFlagv2/PriorityFlagv2.stories.js +0 -20
  126. package/src/components/atoms/PriorityFlagv2/index.js +0 -20
  127. package/src/components/atoms/PriorityFlagv2/styles.js +0 -6
  128. package/src/components/atoms/ProductImagev2/ProductImagev2.stories.js +0 -28
  129. package/src/components/atoms/ProductImagev2/index.js +0 -16
  130. package/src/components/atoms/ProductImagev2/styles.js +0 -62
  131. package/src/components/atoms/Progress/Progress.stories.js +0 -25
  132. package/src/components/atoms/Progress/index.js +0 -74
  133. package/src/components/atoms/Progress/styles.js +0 -98
  134. package/src/components/atoms/ScreenHeaderv2/ScreenHeaderv2.stories.js +0 -53
  135. package/src/components/atoms/ScreenHeaderv2/index.js +0 -134
  136. package/src/components/atoms/ScreenHeaderv2/styles.js +0 -103
  137. package/src/components/atoms/Selectv2/VersionSelect.js +0 -27
  138. package/src/components/atoms/Selectv2/index.js +0 -35
  139. package/src/components/atoms/Selectv2/style.js +0 -93
  140. package/src/components/atoms/TabSectionv2/TabSection.stories.js +0 -25
  141. package/src/components/atoms/TabSectionv2/index.js +0 -9
  142. package/src/components/atoms/TabSectionv2/styles.js +0 -20
  143. package/src/components/atoms/TooltipLight/Tooltip.stories.js +0 -20
  144. package/src/components/atoms/TooltipLight/index.js +0 -46
  145. package/src/components/atoms/TooltipLight/styles.js +0 -65
  146. package/src/components/atoms/WordsMissing/Wysiwyg.stories.js +0 -12
  147. package/src/components/atoms/WordsMissing/index.js +0 -60
  148. package/src/components/atoms/WordsMissing/styles.js +0 -10
  149. package/src/components/molecules/AddGroup/AddGroup.stories.js +0 -15
  150. package/src/components/molecules/AddGroup/index.js +0 -84
  151. package/src/components/molecules/AddGroup/styles.js +0 -141
  152. package/src/components/molecules/AsignationInfo/AsignationInfo.stories.js +0 -17
  153. package/src/components/molecules/AsignationInfo/index.js +0 -108
  154. package/src/components/molecules/AsignationInfo/styles.js +0 -86
  155. package/src/components/molecules/EditionActiveImagev2/EditionActiveImagev2.stories.js +0 -12
  156. package/src/components/molecules/EditionActiveImagev2/index.js +0 -15
  157. package/src/components/molecules/EditionActiveImagev2/styles.js +0 -7
  158. package/src/components/molecules/EditionTabs/EditionTabs.stories.js +0 -12
  159. package/src/components/molecules/EditionTabs/index.js +0 -33
  160. package/src/components/molecules/EditionTabs/styles.js +0 -24
  161. package/src/components/molecules/FeaturesBarv2/FeaturesBarv2.stories.js +0 -20
  162. package/src/components/molecules/FeaturesBarv2/index.js +0 -32
  163. package/src/components/molecules/FeaturesBarv2/styles.js +0 -17
  164. package/src/components/molecules/GalleryElementv2/GalleryElementv2.stories.js +0 -30
  165. package/src/components/molecules/GalleryElementv2/index.js +0 -142
  166. package/src/components/molecules/GalleryElementv2/styles.js +0 -119
  167. package/src/components/molecules/GalleryHeaderv2/GalleryHeaderv2.stories.js +0 -10
  168. package/src/components/molecules/GalleryHeaderv2/index.js +0 -25
  169. package/src/components/molecules/GalleryHeaderv2/styles.js +0 -47
  170. package/src/components/molecules/GroupSelect/GroupSelect.stories.js +0 -35
  171. package/src/components/molecules/GroupSelect/SelectItem.js +0 -105
  172. package/src/components/molecules/GroupSelect/index.js +0 -190
  173. package/src/components/molecules/GroupSelect/styles.js +0 -124
  174. package/src/components/molecules/HeaderTopv2/HeaderTopv2.stories.js +0 -10
  175. package/src/components/molecules/HeaderTopv2/index.js +0 -100
  176. package/src/components/molecules/HeaderTopv2/styles.js +0 -33
  177. package/src/components/molecules/ImageSelectorv2/ImageSelectorv2.stories.js +0 -46
  178. package/src/components/molecules/ImageSelectorv2/index.js +0 -22
  179. package/src/components/molecules/ImageSelectorv2/styles.js +0 -15
  180. package/src/components/molecules/Phase/Phase.stories.js +0 -107
  181. package/src/components/molecules/Phase/index.js +0 -391
  182. package/src/components/molecules/Phase/styles.js +0 -97
  183. package/src/components/molecules/ProductNameHeaderv2/ProductNameHeaderv2.stories.js +0 -37
  184. package/src/components/molecules/ProductNameHeaderv2/index.js +0 -12
  185. package/src/components/molecules/ProductNameHeaderv2/styles.js +0 -10
  186. package/src/components/molecules/ProductSkuStatus/ProductSkuStatus.stories.js +0 -37
  187. package/src/components/molecules/ProductSkuStatus/index.js +0 -26
  188. package/src/components/molecules/ProductSkuStatus/styles.js +0 -7
  189. package/src/components/molecules/RetailerSelectorv2/RetailerSelectorv2.stories.js +0 -35
  190. package/src/components/molecules/RetailerSelectorv2/index.js +0 -80
  191. package/src/components/molecules/RetailerSelectorv2/styles.js +0 -21
  192. package/src/components/molecules/ServiceDataValidator/ServiceDataValidator.stories.js +0 -90
  193. package/src/components/molecules/ServiceDataValidator/index.js +0 -49
  194. package/src/components/molecules/ServiceDataValidator/styles.js +0 -36
  195. package/src/components/molecules/StatusRetailer/StatusAsignationInfo.stories.js +0 -17
  196. package/src/components/molecules/StatusRetailer/index.js +0 -55
  197. package/src/components/molecules/StatusRetailer/styles.js +0 -85
  198. package/src/components/molecules/TabsMenuv2/TabsMenuv2.stories.js +0 -19
  199. package/src/components/molecules/TabsMenuv2/index.js +0 -112
  200. package/src/components/molecules/TabsMenuv2/styles.js +0 -19
  201. package/src/components/molecules/TagAndInputv2/TagAndInputv2.stories.js +0 -24
  202. package/src/components/molecules/TagAndInputv2/index.js +0 -86
  203. package/src/components/molecules/TagAndInputv2/styles.js +0 -35
  204. package/src/components/molecules/Validation/Validation.stories.js +0 -12
  205. package/src/components/molecules/Validation/index.js +0 -77
  206. package/src/components/molecules/Validation/styles.js +0 -19
  207. package/src/components/molecules/VersionItemv2/VersionItemv2.stories.js +0 -14
  208. package/src/components/molecules/VersionItemv2/index.js +0 -59
  209. package/src/components/molecules/VersionItemv2/styles.js +0 -47
  210. package/src/components/organisms/BarButtons/BarButtons.stories.js +0 -13
  211. package/src/components/organisms/BarButtons/index.js +0 -150
  212. package/src/components/organisms/BarButtons/styles.js +0 -54
  213. package/src/components/organisms/Chatv2/ChatLists/ChatLists.stories.js +0 -65
  214. package/src/components/organisms/Chatv2/ChatLists/Rotoplas.jpeg +0 -0
  215. package/src/components/organisms/Chatv2/ChatLists/THD.png +0 -0
  216. package/src/components/organisms/Chatv2/ChatLists/index.js +0 -141
  217. package/src/components/organisms/Chatv2/ChatLists/styles.js +0 -162
  218. package/src/components/organisms/Chatv2/Chatv2.stories.js +0 -184
  219. package/src/components/organisms/Chatv2/ContainerItems/ContainerItems.stories.js +0 -142
  220. package/src/components/organisms/Chatv2/ContainerItems/index.js +0 -538
  221. package/src/components/organisms/Chatv2/ContainerItems/styles.js +0 -360
  222. package/src/components/organisms/Chatv2/ContentChat/ContentChat.stories.js +0 -102
  223. package/src/components/organisms/Chatv2/ContentChat/Rotoplas.jpeg +0 -0
  224. package/src/components/organisms/Chatv2/ContentChat/THD.png +0 -0
  225. package/src/components/organisms/Chatv2/ContentChat/index.js +0 -1016
  226. package/src/components/organisms/Chatv2/ContentChat/styles.js +0 -44
  227. package/src/components/organisms/Chatv2/Footer/Footer.stories.js +0 -22
  228. package/src/components/organisms/Chatv2/Footer/index.js +0 -668
  229. package/src/components/organisms/Chatv2/Footer/styles.js +0 -290
  230. package/src/components/organisms/Chatv2/Header/Header.stories.js +0 -66
  231. package/src/components/organisms/Chatv2/Header/index.js +0 -93
  232. package/src/components/organisms/Chatv2/Header/styles.js +0 -49
  233. package/src/components/organisms/Chatv2/index.js +0 -281
  234. package/src/components/organisms/Chatv2/styles.js +0 -85
  235. package/src/components/organisms/CompleteServices/CompleteServices.stories.js +0 -91
  236. package/src/components/organisms/CompleteServices/index.js +0 -82
  237. package/src/components/organisms/CompleteServices/styles.js +0 -35
  238. package/src/components/organisms/DragAndDropPhases/DragAndDropPhases.stories.js +0 -13
  239. package/src/components/organisms/DragAndDropPhases/index.js +0 -336
  240. package/src/components/organisms/DragAndDropPhases/styles.js +0 -107
  241. package/src/components/organisms/DragPrueba/DragPrueba.stories.js +0 -12
  242. package/src/components/organisms/DragPrueba/index.js +0 -57
  243. package/src/components/organisms/DragPrueba/styles.js +0 -8
  244. package/src/components/organisms/EditGroup/EditGroup.stories.js +0 -20
  245. package/src/components/organisms/EditGroup/index.js +0 -321
  246. package/src/components/organisms/EditGroup/styles.js +0 -207
  247. package/src/components/organisms/FullProductNamev2/FullProductNamev2.stories.js +0 -28
  248. package/src/components/organisms/FullProductNamev2/index.js +0 -101
  249. package/src/components/organisms/FullProductNamev2/styles.js +0 -49
  250. package/src/components/organisms/FullTabsMenuv2/FullTabsMenuv2.stories.js +0 -22
  251. package/src/components/organisms/FullTabsMenuv2/index.js +0 -142
  252. package/src/components/organisms/FullTabsMenuv2/styles.js +0 -47
  253. package/src/components/organisms/ImageDataTablev2/ImageDataTablev2.stories.js +0 -24
  254. package/src/components/organisms/ImageDataTablev2/index.js +0 -124
  255. package/src/components/organisms/ImageDataTablev2/styles.js +0 -18
  256. package/src/components/organisms/ImagePreviewerv2/ImagePreviewerv2.stories.js +0 -38
  257. package/src/components/organisms/ImagePreviewerv2/index.js +0 -22
  258. package/src/components/organisms/ImagePreviewerv2/styles.js +0 -7
  259. package/src/components/organisms/ImageUploader/ImageUploader.stories.js +0 -15
  260. package/src/components/organisms/ImageUploader/index.js +0 -62
  261. package/src/components/organisms/ImageUploader/styles.js +0 -29
  262. package/src/components/organisms/ImageVisor/ImageVisor.stories.js +0 -15
  263. package/src/components/organisms/ImageVisor/index.js +0 -143
  264. package/src/components/organisms/ImageVisor/styles.js +0 -106
  265. package/src/components/organisms/InputGroupv2/InputGroupv2.stories.js +0 -31
  266. package/src/components/organisms/InputGroupv2/index.js +0 -296
  267. package/src/components/organisms/InputGroupv2/styles.js +0 -90
  268. package/src/components/organisms/MandatoryBar/MandatoryBar.stories.js +0 -18
  269. package/src/components/organisms/MandatoryBar/index.js +0 -31
  270. package/src/components/organisms/MandatoryBar/styles.js +0 -12
  271. package/src/components/organisms/ProductImageModalv2/ProductImageModalv2.stories.js +0 -90
  272. package/src/components/organisms/ProductImageModalv2/index.js +0 -105
  273. package/src/components/organisms/ProductImageModalv2/styles.js +0 -71
  274. package/src/components/organisms/RenameImagesBar/RenameImagesBar.stories.js +0 -18
  275. package/src/components/organisms/RenameImagesBar/index.js +0 -30
  276. package/src/components/organisms/RenameImagesBar/styles.js +0 -12
  277. package/src/components/organisms/Table/Table.stories.js +0 -609
  278. package/src/components/organisms/Table/index.js +0 -84
  279. package/src/components/organisms/Table/styles.js +0 -114
  280. package/src/components/organisms/VersionSelectorv2/VersionSelectorv2.stories.js +0 -15
  281. package/src/components/organisms/VersionSelectorv2/index.js +0 -105
  282. package/src/components/organisms/VersionSelectorv2/styles.js +0 -45
  283. package/src/components/pages/MultipleEdition/MultipleEdition.stories.js +0 -17
  284. package/src/components/pages/MultipleEdition/components/ImageUploader.js +0 -62
  285. package/src/components/pages/MultipleEdition/components/ImageUploaderStyles.js +0 -29
  286. package/src/components/pages/MultipleEdition/components/ImageVisor.js +0 -143
  287. package/src/components/pages/MultipleEdition/components/styles.js +0 -106
  288. package/src/components/pages/MultipleEdition/index.js +0 -248
  289. package/src/components/pages/MultipleEdition/saveData.js +0 -92
  290. package/src/components/pages/MultipleEdition/styles.js +0 -201
  291. package/src/components/pages/MultipleEdition/utils.js +0 -1073
  292. package/src/components/pages/ProductEditionv2/ProductEditionv2.stories.js +0 -213
  293. package/src/components/pages/ProductEditionv2/index.js +0 -1758
  294. package/src/components/pages/ProductEditionv2/styles.js +0 -154
  295. package/src/components/pages/RetailerProductEdition/generateThumnail.js +0 -21
@@ -16,7 +16,7 @@ export const GridProducts = ({
16
16
  }) => {
17
17
  return (
18
18
  <Container>
19
- {!gridView ? (
19
+ {gridView ? (
20
20
  products?.map(({ gridElement, product, id }, i) => (
21
21
  <GridItem
22
22
  key={i}
@@ -4,10 +4,6 @@ import { TagAndInput } from "../../molecules/TagAndInput";
4
4
  import { BoxOnboarding } from "../BoxOnboarding";
5
5
  import { Box } from "../Box";
6
6
  import { useEffect, useState } from "react";
7
- import acceptIcon from "../../../assets/images/generalButton/acceptIcon.svg";
8
- import rejectIcon from "../../../assets/images/generalButton/rejectIcon.svg";
9
- import { Tooltip } from "../../atoms/Tooltip";
10
- import { height, width } from "@mui/system";
11
7
 
12
8
  export const InputGroup = ({
13
9
  inputGroup = {},
@@ -25,73 +21,8 @@ export const InputGroup = ({
25
21
  compare,
26
22
  groupData = [],
27
23
  setUpdatedBoxData,
28
- activeRetailer,
29
- updateApprovedInputs,
24
+ activeRetailer
30
25
  }) => {
31
- const InputReviewSection = ({
32
- inputId,
33
- isApproved,
34
- comment,
35
- handleImgClick,
36
- changeImageBtn,
37
- showDivState,
38
- imageStates,
39
- }) => (
40
- <div style={{ "margin-top": "10px" }}>
41
- <Tooltip
42
- componentTooltip={
43
- <>
44
- <p>
45
- <b>Comentarios:</b>
46
- </p>
47
- <p>{comment}</p>
48
- </>
49
- }
50
- children={
51
- !isApproved && (
52
- <img
53
- src={imageStates[inputId] ? acceptIcon : rejectIcon}
54
- alt={"botón rechazar"}
55
- style={{ cursor: "pointer" }}
56
- onClick={() => handleImgClick(inputId)}
57
- />
58
- )
59
- }
60
- classNameTooltip={"container-tooltip"}
61
- />
62
- {showDivState[inputId] && (
63
- <div className="btnReviewState">
64
- <div>
65
- <button
66
- id="aceptbtn"
67
- onClick={() => changeImageBtn(inputId, "validate")}
68
- >
69
- <img
70
- src={acceptIcon}
71
- alt="acept button"
72
- style={{ cursor: "pointer" }}
73
- />
74
- Validar
75
- </button>
76
- </div>
77
- {/* <div>
78
- <button
79
- id="rejectbtn"
80
- onClick={() => changeImageBtn(inputId, "reject")}
81
- >
82
- <img
83
- src={rejectIcon}
84
- alt="reject button"
85
- style={{ cursor: "pointer" }}
86
- />
87
- Rechazar
88
- </button>
89
- </div> */}
90
- </div>
91
- )}
92
- </div>
93
- );
94
-
95
26
  const inputTypeValue = (type) => {
96
27
  switch (type) {
97
28
  case "Booleano":
@@ -103,23 +34,6 @@ export const InputGroup = ({
103
34
  }
104
35
  };
105
36
  const [showBox, setShowBox] = useState(false);
106
- const [showDivStates, setShowDivStates] = useState({});
107
- const [imageStates, setImageStates] = useState({});
108
-
109
- const handleImgClick = (inputId) => {
110
- setShowDivStates((prevStates) => ({
111
- ...prevStates,
112
- [inputId]: !prevStates[inputId],
113
- }));
114
- };
115
-
116
- const changeImageBtn = (inputId, action) => {
117
- setImageStates((prevStates) => ({
118
- ...prevStates,
119
- [inputId]: action === "validate",
120
- }));
121
- updateApprovedInputs(inputId);
122
- };
123
37
 
124
38
  const isEquals = (dataInputsVal, auditInputsVal) => {
125
39
  const result = dataInputsVal === auditInputsVal;
@@ -127,11 +41,7 @@ export const InputGroup = ({
127
41
  };
128
42
 
129
43
  useEffect(() => {
130
- if (
131
- inputGroup.groupId === "16" &&
132
- activeRetailer &&
133
- activeRetailer?.retailer?.id
134
- ) {
44
+ if (inputGroup.groupId === "16" && activeRetailer && activeRetailer?.retailer?.id) {
135
45
  if (activeRetailer?.retailer?.id === 68) {
136
46
  setShowBox(true);
137
47
  } else {
@@ -140,163 +50,127 @@ export const InputGroup = ({
140
50
  }
141
51
  }, [activeRetailer, inputGroup.groupId]);
142
52
 
53
+ // useEffect(() => {
54
+ // if (showBox) {
55
+ // // Realiza la acción que deseas cuando showBox es true
56
+ // console.log("showBox es true");
57
+ // } else {
58
+ // // Realiza la acción que deseas cuando showBox es false
59
+ // console.log("showBox es false");
60
+ // }
61
+ // }, [showBox]);
62
+
143
63
  return (
144
64
  <>
145
65
  {inputGroup.groupId === "16" && activeRetailer?.retailer?.id === 68 && (
146
66
  <Container
147
- className={
148
- activeSection === "Ficha técnica"
149
- ? "datasheets-layout"
150
- : "descriptions-layout"
151
- }
152
- >
153
- <Box
154
- inputGroup={inputGroup}
155
- dataInputs={dataInputs}
156
- onChange={setUpdatedBoxData}
157
- />
158
- </Container>
159
- )}
160
- {inputGroup.groupId !== "16" && (
161
- <Container
162
- className={
163
- activeSection === "Ficha técnica"
164
- ? "datasheets-layout"
165
- : "descriptions-layout"
166
- }
167
- >
168
- {inputGroup?.dataGroup && (
169
- <ScreenHeader
170
- headerType={"retailer-name-header"}
171
- text={`${inputGroup?.dataGroup}`}
67
+ className={
68
+ activeSection === "Ficha técnica"
69
+ ? "datasheets-layout"
70
+ : "descriptions-layout"
71
+ }
72
+ >
73
+ <Box
74
+ inputGroup={inputGroup}
75
+ dataInputs={dataInputs}
76
+ onChange={setUpdatedBoxData}
172
77
  />
78
+ </Container>
79
+ )}
80
+ {(inputGroup.groupId !== "16") && (
81
+ <Container
82
+ className={
83
+ activeSection === "Ficha técnica"
84
+ ? "datasheets-layout"
85
+ : "descriptions-layout"
86
+ }
87
+ >
88
+ {inputGroup?.dataGroup && (
89
+ <ScreenHeader
90
+ headerType={"retailer-name-header"}
91
+ text={`${inputGroup?.dataGroup}`}
92
+ />
93
+ )}
94
+ <div className="inputs-container">
95
+ {inputGroup?.inputs?.map((input, index) =>
96
+ activeSection === "Ficha técnica" ? (
97
+ <>
98
+ <TagAndInput
99
+ key={
100
+ index +
101
+ "-" +
102
+ dataInputs[input]?.value +
103
+ "-" +
104
+ dataInputs[input]?.id +
105
+ "-" +
106
+ compare
107
+ }
108
+ //disabled={input === 40001}
109
+ disabled={false}
110
+ inputId={dataInputs[input]?.id}
111
+ version={version}
112
+ inputType={inputTypeValue(dataInputs[input]?.type)}
113
+ label={
114
+ dataInputs[input]?.name +
115
+ (dataInputs[input]?.required ? "*" : "")
116
+ }
117
+ value={
118
+ compare ? auditInputs[input]?.value : dataInputs[input]?.value
119
+ }
120
+ inputPlaceHolder={input?.placeholder}
121
+ articleId={articleId}
122
+ isRequired={dataInputs[input]?.required}
123
+ updatedDatasheets={updatedDatasheets}
124
+ setUpdatedDatasheets={setUpdatedDatasheets}
125
+ maxChar={
126
+ dataInputs[input]?.max_chars
127
+ ? dataInputs[input]?.max_chars
128
+ : 999
129
+ }
130
+ optionList={dataInputs[input]?.option_list}
131
+ description={dataInputs[input]?.description}
132
+ showTooltip={true}
133
+ auditClass={
134
+ compare &&
135
+ !isEquals(dataInputs[input].value, auditInputs[input].value)
136
+ ? "audit-class"
137
+ : ""
138
+ }
139
+ />
140
+ </>
141
+ ) : (
142
+ <TagAndInput
143
+ key={index + "-" + input?.value + "-" + compare}
144
+ inputId={input.id}
145
+ index={index}
146
+ inputType={"textarea"}
147
+ label={input?.name + (input.required ? "*" : "")}
148
+ value={
149
+ compare ? auditInputGroup?.inputs[index]?.value : input?.value
150
+ }
151
+ isRequired={input.required}
152
+ maxChar={input.max_chars}
153
+ inputPlaceHolder={input?.placeholder}
154
+ updatedDescriptions={updatedDescriptions}
155
+ setUpdatedDescriptions={setUpdatedDescriptions}
156
+ articleId={articleId}
157
+ version={version}
158
+ dinamicHeight={dinamicHeight}
159
+ description={input?.description}
160
+ showTooltip={true}
161
+ auditClass={
162
+ compare &&
163
+ !isEquals(input?.value, auditInputGroup?.inputs[index]?.value)
164
+ ? "audit-class"
165
+ : ""
166
+ }
167
+ />
168
+ )
173
169
  )}
174
- <div className="inputs-container">
175
- {inputGroup?.inputs?.map((input, index) =>
176
- activeSection === "Ficha técnica" ? (
177
- <>
178
- <TagAndInput
179
- key={
180
- index +
181
- "-" +
182
- dataInputs[input]?.value +
183
- "-" +
184
- dataInputs[input]?.id +
185
- "-" +
186
- compare
187
- }
188
- //disabled={input === 40001}
189
- disabled={dataInputs[input]?.isApproved}
190
- inputId={dataInputs[input]?.id}
191
- version={version}
192
- inputType={inputTypeValue(dataInputs[input]?.type)}
193
- label={
194
- dataInputs[input]?.name +
195
- (dataInputs[input]?.required ? "*" : "")
196
- }
197
- value={
198
- compare
199
- ? auditInputs[input]?.value
200
- : dataInputs[input]?.value
201
- }
202
- inputPlaceHolder={input?.placeholder}
203
- articleId={articleId}
204
- isRequired={dataInputs[input]?.required}
205
- updatedDatasheets={updatedDatasheets}
206
- setUpdatedDatasheets={setUpdatedDatasheets}
207
- maxChar={
208
- dataInputs[input]?.max_chars
209
- ? dataInputs[input]?.max_chars
210
- : 999
211
- }
212
- optionList={dataInputs[input]?.option_list}
213
- description={dataInputs[input]?.description}
214
- showTooltip={true}
215
- auditClass={
216
- compare &&
217
- !isEquals(
218
- dataInputs[input].value,
219
- auditInputs[input].value
220
- )
221
- ? "audit-class"
222
- : ""
223
- }
224
- />
225
- {dataInputs[input]?.isApproved === false && (
226
- <InputReviewSection
227
- inputId={dataInputs[input]?.id}
228
- isApproved={dataInputs[input]?.isApproved}
229
- comment={dataInputs[input]?.comment}
230
- handleImgClick={handleImgClick}
231
- changeImageBtn={changeImageBtn}
232
- showDivState={showDivStates}
233
- imageStates={imageStates}
234
- />
235
- )}
236
- </>
237
- ) : (
238
- <>
239
- {input?.isApproved === false && (
240
- <InputReviewSection
241
- inputId={input?.id}
242
- isApproved={input?.isApproved}
243
- comment={input?.comment}
244
- handleImgClick={handleImgClick}
245
- changeImageBtn={changeImageBtn}
246
- showDivState={showDivStates}
247
- imageStates={imageStates}
248
- />
249
- )}
250
- {(input.id===44186||input.id===44187)&&input?.isApproved && (
251
- <InputReviewSection
252
- inputId={input?.id}
253
- isApproved={!input?.isApproved}
254
- comment={input?.comment}
255
- handleImgClick={handleImgClick}
256
- changeImageBtn={changeImageBtn}
257
- showDivState={showDivStates}
258
- imageStates={imageStates}
259
- />
260
- )}
261
- <TagAndInput
262
- key={index + "-" + input?.value + "-" + compare}
263
- inputId={input.id}
264
- index={index}
265
- inputType={"textarea"}
266
- label={input?.name + (input.required ? "*" : "")}
267
- value={
268
- compare
269
- ? auditInputGroup?.inputs[index]?.value
270
- : input?.value
271
- }
272
- isRequired={input.required}
273
- disabled={input.id===44186||input.id===44187?false:input?.isApproved}
274
- maxChar={input.max_chars}
275
- inputPlaceHolder={input?.placeholder}
276
- updatedDescriptions={updatedDescriptions}
277
- setUpdatedDescriptions={setUpdatedDescriptions}
278
- articleId={articleId}
279
- version={version}
280
- dinamicHeight={dinamicHeight}
281
- description={input?.description}
282
- showTooltip={true}
283
- auditClass={
284
- compare &&
285
- !isEquals(
286
- input?.value,
287
- auditInputGroup?.inputs[index]?.value
288
- )
289
- ? "audit-class"
290
- : ""
291
- }
292
- />
293
- </>
294
- )
295
- )}
296
- </div>
297
- </Container>
170
+ </div>
171
+ </Container>
298
172
  )}
299
- {inputGroup.groupId === "16" && activeRetailer?.retailer?.id === 74 && (
173
+ {(inputGroup.groupId === "16" && activeRetailer?.retailer?.id === 74) && (
300
174
  <Container
301
175
  className={
302
176
  activeSection === "Ficha técnica"
@@ -325,7 +199,7 @@ export const InputGroup = ({
325
199
  compare
326
200
  }
327
201
  //disabled={input === 40001}
328
- disabled={dataInputs[input]?.isApproved}
202
+ disabled={false}
329
203
  inputId={dataInputs[input]?.id}
330
204
  version={version}
331
205
  inputType={inputTypeValue(dataInputs[input]?.type)}
@@ -356,72 +230,39 @@ export const InputGroup = ({
356
230
  onChange={setUpdatedBoxData}
357
231
  auditClass={
358
232
  compare &&
359
- !isEquals(
360
- dataInputs[input].value,
361
- auditInputs[input].value
362
- )
233
+ !isEquals(dataInputs[input].value, auditInputs[input].value)
363
234
  ? "audit-class"
364
235
  : ""
365
236
  }
366
237
  />
367
- {dataInputs[input]?.isApproved === false && (
368
- <InputReviewSection
369
- inputId={dataInputs[input]?.id}
370
- isApproved={dataInputs[input]?.isApproved}
371
- comment={dataInputs[input]?.comment}
372
- handleImgClick={handleImgClick}
373
- changeImageBtn={changeImageBtn}
374
- showDivState={showDivStates}
375
- imageStates={imageStates}
376
- />
377
- )}
378
238
  </>
379
239
  ) : (
380
- <>
381
- {input?.isApproved === false && (
382
- <InputReviewSection
383
- inputId={input?.id}
384
- isApproved={input?.isApproved}
385
- comment={input?.comment}
386
- handleImgClick={handleImgClick}
387
- changeImageBtn={changeImageBtn}
388
- showDivState={showDivStates}
389
- imageStates={imageStates}
390
- />
391
- )}
392
- <TagAndInput
393
- key={index + "-" + input?.value + "-" + compare}
394
- inputId={input.id}
395
- index={index}
396
- disabled={input?.isApproved}
397
- inputType={"textarea"}
398
- label={input?.name + (input.required ? "*" : "")}
399
- value={
400
- compare
401
- ? auditInputGroup?.inputs[index]?.value
402
- : input?.value
403
- }
404
- isRequired={input.required}
405
- maxChar={input.max_chars}
406
- inputPlaceHolder={input?.placeholder}
407
- updatedDescriptions={updatedDescriptions}
408
- setUpdatedDescriptions={setUpdatedDescriptions}
409
- articleId={articleId}
410
- version={version}
411
- dinamicHeight={dinamicHeight}
412
- description={input?.description}
413
- showTooltip={true}
414
- auditClass={
415
- compare &&
416
- !isEquals(
417
- input?.value,
418
- auditInputGroup?.inputs[index]?.value
419
- )
420
- ? "audit-class"
421
- : ""
422
- }
423
- />
424
- </>
240
+ <TagAndInput
241
+ key={index + "-" + input?.value + "-" + compare}
242
+ inputId={input.id}
243
+ index={index}
244
+ inputType={"textarea"}
245
+ label={input?.name + (input.required ? "*" : "")}
246
+ value={
247
+ compare ? auditInputGroup?.inputs[index]?.value : input?.value
248
+ }
249
+ isRequired={input.required}
250
+ maxChar={input.max_chars}
251
+ inputPlaceHolder={input?.placeholder}
252
+ updatedDescriptions={updatedDescriptions}
253
+ setUpdatedDescriptions={setUpdatedDescriptions}
254
+ articleId={articleId}
255
+ version={version}
256
+ dinamicHeight={dinamicHeight}
257
+ description={input?.description}
258
+ showTooltip={true}
259
+ auditClass={
260
+ compare &&
261
+ !isEquals(input?.value, auditInputGroup?.inputs[index]?.value)
262
+ ? "audit-class"
263
+ : ""
264
+ }
265
+ />
425
266
  )
426
267
  )}
427
268
  </div>
@@ -33,35 +33,4 @@ export const Container = styled.div`
33
33
  & + * {
34
34
  margin-top: 15px;
35
35
  }
36
-
37
- .btnReviewState {
38
- display: "flex";
39
- flex-direction: "column";
40
- border: 1px solid lightgray;
41
- border-radius: 3px;
42
- z-index: 1000;
43
- /* position: absolute; */
44
- }
45
-
46
- .btnReviewState button {
47
- border: none;
48
- background: white;
49
- border-radius: 3px;
50
- }
51
- .btnReviewState button:hover {
52
- background: lightgray;
53
- }
54
- /* #divBtnsReviewdown {
55
- border-left: 1px solid black;
56
- border-right: 1px solid black;
57
- border-bottom: 1px solid black;
58
- }
59
- #aceptbtn {
60
- background: white;
61
- border: none;
62
- }
63
- #rejectbtn {
64
- background: white;
65
- border: none;
66
- } */
67
36
  `;
@@ -6,7 +6,7 @@ export default {
6
6
  component: Modal,
7
7
  argTypes: {
8
8
  icon: {
9
- options: [undefined, "error", "warning", "success", "successv2", "info"],
9
+ options: [undefined, "error", "warning", "success", "info"],
10
10
  control: { type: "select" },
11
11
  },
12
12
  },
@@ -19,7 +19,6 @@ modalDefault.args = {
19
19
  show: false,
20
20
  title: "Titulo del modal",
21
21
  icon: undefined,
22
- image:undefined,
23
22
  message: `descripcion amplia sobre el componente
24
23
  modal white para saber como se ven varias lineas
25
24
  de codigo`,
@@ -6,7 +6,6 @@ import {
6
6
  faCheck as successIcon,
7
7
  faExclamation as infoIcon,
8
8
  } from "@fortawesome/free-solid-svg-icons";
9
-
10
9
  import { FontAwesomeIcon as Icon } from "@fortawesome/react-fontawesome";
11
10
  import { Fade, Grow, Zoom, Modal as ModalMUI, Backdrop } from "@mui/material";
12
11
  import { ButtonV2 } from "../../atoms/ButtonV2";
@@ -18,8 +17,7 @@ export const Modal = (props) => {
18
17
  show, // boolean
19
18
  title, // string
20
19
  message, // string
21
- icon, // "error" | "warning" | "success" | "successV2" | "info" (por default no icon)
22
- image,
20
+ icon, // "error" | "warning" | "success" | "info" | (por default no icon)
23
21
  customComponent, // JSX
24
22
  buttons, // array<JSX>
25
23
  onClickModal, // (event) => {}
@@ -30,7 +28,6 @@ export const Modal = (props) => {
30
28
  warning: warningIcon,
31
29
  info: infoIcon,
32
30
  success: successIcon,
33
- successv2: successIcon,
34
31
  };
35
32
 
36
33
  return (
@@ -40,7 +37,7 @@ export const Modal = (props) => {
40
37
  timeout={400}
41
38
  style={{
42
39
  backgroundColor: "transparent",
43
- zIndex: 10100,
40
+ zIndex: 10,
44
41
  }}
45
42
  onClick={(event) => onClickModal && onClickModal(event)}
46
43
  >
@@ -54,10 +51,6 @@ export const Modal = (props) => {
54
51
  )}
55
52
  </header>
56
53
 
57
- {/* imagen modal */}
58
- {image && (
59
- <img src={image} alt="img modal"></img>
60
- )}
61
54
  {/* icono modal */}
62
55
  {icons[icon?.toLowerCase()] && (
63
56
  <CustomIcon
@@ -31,6 +31,7 @@ export const ContainerModal = styled.div`
31
31
  align-items: center;
32
32
  justify-content: flex-start;
33
33
  gap: 6px;
34
+ margin-bottom: 20px;
34
35
 
35
36
  .label-title {
36
37
  width: 100%;
@@ -41,10 +42,6 @@ export const ContainerModal = styled.div`
41
42
  color: #262626;
42
43
  white-space: pre-wrap;
43
44
  }
44
-
45
- & + * {
46
- margin-top: 20px;
47
- }
48
45
  }
49
46
 
50
47
  .iconModal {
@@ -72,10 +69,6 @@ export const ContainerModal = styled.div`
72
69
  }
73
70
  &.iconModal-success {
74
71
  }
75
- &.iconModal-successv2{
76
- border-color: #85BC5B;
77
- color: #85BC5B;
78
- }
79
72
  }
80
73
 
81
74
  .label-message {