contentoh-components-library 21.4.74 → 21.4.77

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 (339) hide show
  1. package/dist/assets/images/Icons/addv2.svg +8 -0
  2. package/dist/assets/images/Icons/checkv2.svg +8 -0
  3. package/dist/assets/images/Icons/options.svg +3 -0
  4. package/dist/assets/images/Icons/trash.svg +8 -0
  5. package/dist/assets/images/Icons/undo.svg +8 -0
  6. package/dist/assets/images/Icons/warningv2.svg +3 -0
  7. package/dist/assets/images/checkBox/checkrosa.svg +3 -0
  8. package/dist/assets/images/checkBox/checkverde.svg +3 -0
  9. package/dist/components/atoms/Avatar/index.js +3 -2
  10. package/dist/components/atoms/ButtonV2/ButtonV2.stories.js +1 -1
  11. package/dist/components/atoms/ButtonV2/index.js +1 -1
  12. package/dist/components/atoms/ButtonV2/styles.js +1 -1
  13. package/dist/components/atoms/CheckBox/CheckBox.stories.js +8 -1
  14. package/dist/components/atoms/CheckBox/index.js +8 -0
  15. package/dist/components/atoms/CheckBox/styles.js +8 -1
  16. package/dist/components/atoms/GeneralButton/styles.js +6 -2
  17. package/dist/components/atoms/InputFormatter/styles.js +3 -3
  18. package/dist/components/atoms/ObservationFlag/ObservationFlag.stories.js +38 -0
  19. package/dist/components/atoms/ObservationFlag/index.js +52 -0
  20. package/dist/components/atoms/ObservationFlag/styles.js +18 -0
  21. package/dist/components/atoms/SliderToolTip/styles.js +1 -1
  22. package/dist/components/molecules/BoxAttribute/index.js +3 -3
  23. package/dist/components/molecules/BoxAttribute/styles.js +1 -1
  24. package/dist/components/molecules/BoxButtons/index.js +0 -1
  25. package/dist/components/molecules/CarouselImagesLogin/index.js +1 -1
  26. package/dist/components/molecules/GroupSelect/GroupSelect.stories.js +53 -0
  27. package/dist/components/molecules/GroupSelect/SelectItem.js +142 -0
  28. package/dist/components/molecules/GroupSelect/index.js +254 -0
  29. package/dist/components/molecules/GroupSelect/styles.js +25 -0
  30. package/dist/components/molecules/HeaderTop/index.js +68 -11
  31. package/dist/components/molecules/Phase/index.js +205 -43
  32. package/dist/components/molecules/Phase/styles.js +1 -1
  33. package/dist/components/molecules/ProductNameHeader/index.js +8 -3
  34. package/dist/components/molecules/SignInLogin/index.js +36 -28
  35. package/dist/components/molecules/StripeCardSelector/CardSelector.stories.js +1 -2
  36. package/dist/components/organisms/Chat/Chat.stories.js +27 -8
  37. package/dist/components/organisms/Chat/ContainerItems/index.js +19 -3
  38. package/dist/components/organisms/Chat/ContainerItems/styles.js +1 -1
  39. package/dist/components/organisms/Chat/ContentChat/index.js +350 -197
  40. package/dist/components/organisms/Chat/Footer/index.js +48 -39
  41. package/dist/components/organisms/Chat/index.js +49 -4
  42. package/dist/components/organisms/Chat/styles.js +1 -1
  43. package/dist/components/organisms/DashboardMetric/index.js +12 -6
  44. package/dist/components/organisms/DragAndDropPhases/DragAndDropPhases.stories.js +26 -1
  45. package/dist/components/organisms/DragAndDropPhases/index.js +262 -32
  46. package/dist/components/organisms/DragAndDropPhases/styles.js +8 -4
  47. package/dist/components/organisms/EditGroup/EditGroup.stories.js +39 -0
  48. package/dist/components/organisms/EditGroup/index.js +242 -0
  49. package/dist/components/organisms/EditGroup/styles.js +36 -0
  50. package/dist/components/organisms/FullProductNameHeader/index.js +5 -3
  51. package/dist/components/organisms/InputGroup/index.js +1 -10
  52. package/dist/components/organisms/Modal/Modal.stories.js +2 -1
  53. package/dist/components/organisms/Modal/index.js +6 -1
  54. package/dist/components/organisms/Modal/styles.js +1 -1
  55. package/dist/components/organisms/VersionSelector/index.js +101 -169
  56. package/dist/components/pages/Dashboard/Dashboard.stories.js +33 -36
  57. package/dist/components/pages/Dashboard/index.js +37 -9
  58. package/dist/components/pages/ProviderProductEdition/index.js +120 -144
  59. package/dist/components/pages/ProviderProductEdition/styles.js +1 -1
  60. package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +4 -0
  61. package/dist/components/pages/RetailerProductEdition/index.js +322 -406
  62. package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
  63. package/dist/components/pages/RetailerProductEdition/utils.js +61 -2
  64. package/dist/global-files/data.js +11 -3
  65. package/dist/global-files/variables.js +7 -1
  66. package/dist/index.js +201 -58
  67. package/package.json +3 -1
  68. package/src/assets/images/Icons/addv2.svg +8 -0
  69. package/src/assets/images/Icons/checkv2.svg +8 -0
  70. package/src/assets/images/Icons/infoNR.svg +8 -0
  71. package/src/assets/images/Icons/options.svg +3 -0
  72. package/src/assets/images/Icons/trash.svg +8 -0
  73. package/src/assets/images/Icons/undo.svg +8 -0
  74. package/src/assets/images/Icons/warningv2.svg +3 -0
  75. package/src/assets/images/checkBox/checkrosa.svg +3 -0
  76. package/src/assets/images/checkBox/checkverde.svg +3 -0
  77. package/src/assets/images/flagsv2/highPriority.svg +3 -0
  78. package/src/assets/images/flagsv2/lowPriority.svg +3 -0
  79. package/src/assets/images/flagsv2/mediumPriority.svg +3 -0
  80. package/src/assets/images/flagsv2/noPriority.svg +3 -0
  81. package/src/assets/images/generalButton/closeIconWhite.svg +4 -0
  82. package/src/assets/images/generalButton/closeIconv2.svg +4 -0
  83. package/src/components/atoms/Avatar/index.js +8 -2
  84. package/src/components/atoms/ButtonV2/ButtonV2.stories.js +1 -0
  85. package/src/components/atoms/ButtonV2/index.js +1 -0
  86. package/src/components/atoms/ButtonV2/styles.js +16 -0
  87. package/src/components/atoms/CharsMissing/Wysiwyg.stories.js +12 -0
  88. package/src/components/atoms/CharsMissing/index.js +60 -0
  89. package/src/components/atoms/CharsMissing/styles.js +44 -0
  90. package/src/components/atoms/CheckBox/CheckBox.stories.js +5 -0
  91. package/src/components/atoms/CheckBox/index.js +5 -1
  92. package/src/components/atoms/CheckBox/styles.js +9 -3
  93. package/src/components/atoms/FeatureTagv2/FeatureTagv2.stories.js +16 -0
  94. package/src/components/atoms/FeatureTagv2/index.js +10 -0
  95. package/src/components/atoms/FeatureTagv2/styles.js +56 -0
  96. package/src/components/atoms/GeneralButton/styles.js +46 -0
  97. package/src/components/atoms/GeneralInputv2/GeneralInputv2.stories.js +33 -0
  98. package/src/components/atoms/GeneralInputv2/index.js +155 -0
  99. package/src/components/atoms/GeneralInputv2/styles.js +67 -0
  100. package/src/components/atoms/ImageCarousel/ImgeSlider.stories.js +76 -0
  101. package/src/components/atoms/ImageCarousel/index.js +103 -0
  102. package/src/components/atoms/ImageCarousel/styles.js +79 -0
  103. package/src/components/atoms/InputFormatter/styles.js +9 -4
  104. package/src/components/atoms/InputFormatterv2/Wysiwyg.stories.js +12 -0
  105. package/src/components/atoms/InputFormatterv2/index.js +148 -0
  106. package/src/components/atoms/InputFormatterv2/styles.js +39 -0
  107. package/src/components/atoms/InputImages/InputImages.stories.js +19 -0
  108. package/src/components/atoms/InputImages/index.js +25 -0
  109. package/src/components/atoms/InputImages/styles.js +17 -0
  110. package/src/components/atoms/NumberMandatory/NumberMandatory.stories.js +19 -0
  111. package/src/components/atoms/NumberMandatory/index.js +16 -0
  112. package/src/components/atoms/NumberMandatory/styles.js +11 -0
  113. package/src/components/atoms/ObservationFlag/ObservationFlag.stories.js +20 -0
  114. package/src/components/atoms/ObservationFlag/index.js +33 -0
  115. package/src/components/atoms/ObservationFlag/styles.js +3 -0
  116. package/src/components/atoms/PercentTag/PercentTag.stories.js +7 -0
  117. package/src/components/atoms/PercentTag/index.js +9 -0
  118. package/src/components/atoms/PercentTag/styles.js +69 -0
  119. package/src/components/atoms/PriorityFlagv2/PriorityFlagv2.stories.js +20 -0
  120. package/src/components/atoms/PriorityFlagv2/index.js +20 -0
  121. package/src/components/atoms/PriorityFlagv2/styles.js +6 -0
  122. package/src/components/atoms/ProductImagev2/ProductImagev2.stories.js +28 -0
  123. package/src/components/atoms/ProductImagev2/index.js +16 -0
  124. package/src/components/atoms/ProductImagev2/styles.js +62 -0
  125. package/src/components/atoms/Progress/Progress.stories.js +25 -0
  126. package/src/components/atoms/Progress/index.js +74 -0
  127. package/src/components/atoms/Progress/styles.js +98 -0
  128. package/src/components/atoms/RatingStars/RatingStars.stories.js +10 -0
  129. package/src/components/atoms/RatingStars/index.js +31 -0
  130. package/src/components/atoms/RatingStars/styles.js +28 -0
  131. package/src/components/atoms/RetailerCatalog/RetailerCatalog.stories.js +36 -0
  132. package/src/components/atoms/RetailerCatalog/index.js +49 -0
  133. package/src/components/atoms/RetailerCatalog/styles.js +30 -0
  134. package/src/components/atoms/RetailerOption/RetailerOption.stories.js +15 -0
  135. package/src/components/atoms/RetailerOption/index.js +53 -0
  136. package/src/components/atoms/RetailerOption/styles.js +41 -0
  137. package/src/components/atoms/RetailersList/RetailersList.stories.js +33 -0
  138. package/src/components/atoms/RetailersList/index.js +20 -0
  139. package/src/components/atoms/RetailersList/styles.js +19 -0
  140. package/src/components/atoms/ScreenHeaderv2/ScreenHeaderv2.stories.js +53 -0
  141. package/src/components/atoms/ScreenHeaderv2/index.js +134 -0
  142. package/src/components/atoms/ScreenHeaderv2/styles.js +103 -0
  143. package/src/components/atoms/Selectv2/VersionSelect.js +27 -0
  144. package/src/components/atoms/Selectv2/index.js +35 -0
  145. package/src/components/atoms/Selectv2/style.js +93 -0
  146. package/src/components/atoms/SliderToolTip/styles.js +1 -1
  147. package/src/components/atoms/TabSection/index.js +1 -1
  148. package/src/components/atoms/TabSection/styles.js +1 -1
  149. package/src/components/atoms/TabSectionv2/TabSection.stories.js +25 -0
  150. package/src/components/atoms/TabSectionv2/index.js +9 -0
  151. package/src/components/atoms/TabSectionv2/styles.js +20 -0
  152. package/src/components/atoms/TooltipLight/Tooltip.stories.js +20 -0
  153. package/src/components/atoms/TooltipLight/index.js +46 -0
  154. package/src/components/atoms/TooltipLight/styles.js +65 -0
  155. package/src/components/atoms/UserCatalog/UserCatalog.stories.js +67 -0
  156. package/src/components/atoms/UserCatalog/index.js +100 -0
  157. package/src/components/atoms/UserCatalog/styles.js +24 -0
  158. package/src/components/atoms/UserOption/UserOption.stories.js +25 -0
  159. package/src/components/atoms/UserOption/index.js +95 -0
  160. package/src/components/atoms/UserOption/styles.js +61 -0
  161. package/src/components/atoms/UserSelector/UserSelector.stories.js +25 -0
  162. package/src/components/atoms/UserSelector/index.js +86 -0
  163. package/src/components/atoms/UserSelector/styles.js +55 -0
  164. package/src/components/atoms/WordsMissing/Wysiwyg.stories.js +12 -0
  165. package/src/components/atoms/WordsMissing/index.js +60 -0
  166. package/src/components/atoms/WordsMissing/styles.js +10 -0
  167. package/src/components/molecules/AsignationInfo/AsignationInfo.stories.js +17 -0
  168. package/src/components/molecules/AsignationInfo/index.js +108 -0
  169. package/src/components/molecules/AsignationInfo/styles.js +86 -0
  170. package/src/components/molecules/BoxAttribute/index.js +32 -25
  171. package/src/components/molecules/BoxAttribute/styles.js +1 -1
  172. package/src/components/molecules/BoxButtons/index.js +23 -22
  173. package/src/components/molecules/CarouselImagesLogin/index.js +1 -1
  174. package/src/components/molecules/EditionActiveImagev2/EditionActiveImagev2.stories.js +12 -0
  175. package/src/components/molecules/EditionActiveImagev2/index.js +15 -0
  176. package/src/components/molecules/EditionActiveImagev2/styles.js +7 -0
  177. package/src/components/molecules/FeaturesBarv2/FeaturesBarv2.stories.js +20 -0
  178. package/src/components/molecules/FeaturesBarv2/index.js +32 -0
  179. package/src/components/molecules/FeaturesBarv2/styles.js +17 -0
  180. package/src/components/molecules/GalleryElementv2/GalleryElementv2.stories.js +30 -0
  181. package/src/components/molecules/GalleryElementv2/index.js +142 -0
  182. package/src/components/molecules/GalleryElementv2/styles.js +119 -0
  183. package/src/components/molecules/GalleryHeaderv2/GalleryHeaderv2.stories.js +10 -0
  184. package/src/components/molecules/GalleryHeaderv2/index.js +25 -0
  185. package/src/components/molecules/GalleryHeaderv2/styles.js +47 -0
  186. package/src/components/molecules/GridItem/GridItem.stories.js +126 -0
  187. package/src/components/molecules/GridItem/index.js +105 -0
  188. package/src/components/molecules/GridItem/styles.js +104 -0
  189. package/src/components/molecules/GroupSelect/GroupSelect.stories.js +35 -0
  190. package/src/components/molecules/GroupSelect/SelectItem.js +105 -0
  191. package/src/components/molecules/GroupSelect/index.js +190 -0
  192. package/src/components/molecules/GroupSelect/styles.js +124 -0
  193. package/src/components/molecules/HeaderItem/ColumnItem.js +9 -0
  194. package/src/components/molecules/HeaderItem/HeaderItem.stories.js +24 -0
  195. package/src/components/molecules/HeaderItem/index.js +26 -0
  196. package/src/components/molecules/HeaderItem/styles.js +27 -0
  197. package/src/components/molecules/HeaderTop/index.js +52 -6
  198. package/src/components/molecules/HeaderTopv2/HeaderTopv2.stories.js +10 -0
  199. package/src/components/molecules/HeaderTopv2/index.js +100 -0
  200. package/src/components/molecules/HeaderTopv2/styles.js +33 -0
  201. package/src/components/molecules/ImageSelectorv2/ImageSelectorv2.stories.js +46 -0
  202. package/src/components/molecules/ImageSelectorv2/index.js +22 -0
  203. package/src/components/molecules/ImageSelectorv2/styles.js +15 -0
  204. package/src/components/molecules/Phase/Phase.stories.js +37 -0
  205. package/src/components/molecules/Phase/index.js +185 -0
  206. package/src/components/molecules/Phase/styles.js +91 -0
  207. package/src/components/molecules/ProductNameHeader/index.js +5 -1
  208. package/src/components/molecules/ProductNameHeaderv2/ProductNameHeaderv2.stories.js +37 -0
  209. package/src/components/molecules/ProductNameHeaderv2/index.js +12 -0
  210. package/src/components/molecules/ProductNameHeaderv2/styles.js +10 -0
  211. package/src/components/molecules/ProductSkuStatus/ProductSkuStatus.stories.js +37 -0
  212. package/src/components/molecules/ProductSkuStatus/index.js +26 -0
  213. package/src/components/molecules/ProductSkuStatus/styles.js +7 -0
  214. package/src/components/molecules/RetailerSelectorv2/RetailerSelectorv2.stories.js +35 -0
  215. package/src/components/molecules/RetailerSelectorv2/index.js +80 -0
  216. package/src/components/molecules/RetailerSelectorv2/styles.js +21 -0
  217. package/src/components/molecules/RowItem/ColumnItem.js +9 -0
  218. package/src/components/molecules/RowItem/RowItem.stories.js +5660 -0
  219. package/src/components/molecules/RowItem/index.js +45 -0
  220. package/src/components/molecules/RowItem/styles.js +40 -0
  221. package/src/components/molecules/ServiceDataValidator/ServiceDataValidator.stories.js +90 -0
  222. package/src/components/molecules/ServiceDataValidator/index.js +49 -0
  223. package/src/components/molecules/ServiceDataValidator/styles.js +36 -0
  224. package/src/components/molecules/SignInLogin/index.js +11 -11
  225. package/src/components/molecules/StatusRetailer/StatusAsignationInfo.stories.js +17 -0
  226. package/src/components/molecules/StatusRetailer/index.js +55 -0
  227. package/src/components/molecules/StatusRetailer/styles.js +85 -0
  228. package/src/components/molecules/StripeCardSelector/CardSelector.stories.js +1 -2
  229. package/src/components/molecules/TabsMenuv2/TabsMenuv2.stories.js +19 -0
  230. package/src/components/molecules/TabsMenuv2/index.js +112 -0
  231. package/src/components/molecules/TabsMenuv2/styles.js +19 -0
  232. package/src/components/molecules/TagAndInput/index.js +6 -5
  233. package/src/components/molecules/TagAndInputv2/TagAndInputv2.stories.js +24 -0
  234. package/src/components/molecules/TagAndInputv2/index.js +86 -0
  235. package/src/components/molecules/TagAndInputv2/styles.js +35 -0
  236. package/src/components/molecules/Validation/Validation.stories.js +12 -0
  237. package/src/components/molecules/Validation/index.js +77 -0
  238. package/src/components/molecules/Validation/styles.js +19 -0
  239. package/src/components/molecules/VersionItemv2/VersionItemv2.stories.js +14 -0
  240. package/src/components/molecules/VersionItemv2/index.js +59 -0
  241. package/src/components/molecules/VersionItemv2/styles.js +47 -0
  242. package/src/components/organisms/BarButtons/BarButtons.stories.js +13 -0
  243. package/src/components/organisms/BarButtons/index.js +150 -0
  244. package/src/components/organisms/BarButtons/styles.js +54 -0
  245. package/src/components/organisms/Chat/Chat.stories.js +27 -7
  246. package/src/components/organisms/Chat/ContainerItems/index.js +18 -2
  247. package/src/components/organisms/Chat/ContainerItems/styles.js +14 -2
  248. package/src/components/organisms/Chat/ContentChat/index.js +88 -12
  249. package/src/components/organisms/Chat/Footer/index.js +11 -0
  250. package/src/components/organisms/Chat/index.js +46 -4
  251. package/src/components/organisms/Chat/styles.js +4 -0
  252. package/src/components/organisms/Chatv2/ChatLists/ChatLists.stories.js +65 -0
  253. package/src/components/organisms/Chatv2/ChatLists/Rotoplas.jpeg +0 -0
  254. package/src/components/organisms/Chatv2/ChatLists/THD.png +0 -0
  255. package/src/components/organisms/Chatv2/ChatLists/index.js +141 -0
  256. package/src/components/organisms/Chatv2/ChatLists/styles.js +162 -0
  257. package/src/components/organisms/Chatv2/Chatv2.stories.js +184 -0
  258. package/src/components/organisms/Chatv2/ContainerItems/ContainerItems.stories.js +142 -0
  259. package/src/components/organisms/Chatv2/ContainerItems/index.js +538 -0
  260. package/src/components/organisms/Chatv2/ContainerItems/styles.js +360 -0
  261. package/src/components/organisms/Chatv2/ContentChat/ContentChat.stories.js +102 -0
  262. package/src/components/organisms/Chatv2/ContentChat/Rotoplas.jpeg +0 -0
  263. package/src/components/organisms/Chatv2/ContentChat/THD.png +0 -0
  264. package/src/components/organisms/Chatv2/ContentChat/index.js +1016 -0
  265. package/src/components/organisms/Chatv2/ContentChat/styles.js +44 -0
  266. package/src/components/organisms/Chatv2/Footer/Footer.stories.js +22 -0
  267. package/src/components/organisms/Chatv2/Footer/index.js +668 -0
  268. package/src/components/organisms/Chatv2/Footer/styles.js +290 -0
  269. package/src/components/organisms/Chatv2/Header/Header.stories.js +66 -0
  270. package/src/components/organisms/Chatv2/Header/index.js +93 -0
  271. package/src/components/organisms/Chatv2/Header/styles.js +49 -0
  272. package/src/components/organisms/Chatv2/index.js +281 -0
  273. package/src/components/organisms/Chatv2/styles.js +85 -0
  274. package/src/components/organisms/CompleteServices/CompleteServices.stories.js +91 -0
  275. package/src/components/organisms/CompleteServices/index.js +82 -0
  276. package/src/components/organisms/CompleteServices/styles.js +35 -0
  277. package/src/components/organisms/DashboardMetric/index.js +6 -3
  278. package/src/components/organisms/DragAndDropPhases/DragAndDropPhases.stories.js +40 -0
  279. package/src/components/organisms/DragAndDropPhases/index.js +236 -0
  280. package/src/components/organisms/DragAndDropPhases/styles.js +69 -0
  281. package/src/components/organisms/DragPrueba/DragPrueba.stories.js +12 -0
  282. package/src/components/organisms/DragPrueba/index.js +57 -0
  283. package/src/components/organisms/DragPrueba/styles.js +8 -0
  284. package/src/components/organisms/EditGroup/EditGroup.stories.js +18 -0
  285. package/src/components/organisms/EditGroup/index.js +168 -0
  286. package/src/components/organisms/EditGroup/styles.js +115 -0
  287. package/src/components/organisms/FullProductNameHeader/index.js +3 -1
  288. package/src/components/organisms/FullProductNamev2/FullProductNamev2.stories.js +28 -0
  289. package/src/components/organisms/FullProductNamev2/index.js +101 -0
  290. package/src/components/organisms/FullProductNamev2/styles.js +49 -0
  291. package/src/components/organisms/FullTabsMenuv2/FullTabsMenuv2.stories.js +22 -0
  292. package/src/components/organisms/FullTabsMenuv2/index.js +142 -0
  293. package/src/components/organisms/FullTabsMenuv2/styles.js +47 -0
  294. package/src/components/organisms/GridProducts/GridProducts.stories.js +5485 -0
  295. package/src/components/organisms/GridProducts/index.js +50 -0
  296. package/src/components/organisms/GridProducts/styles.js +14 -0
  297. package/src/components/organisms/GridProducts/utils.js +111 -0
  298. package/src/components/organisms/ImageDataTablev2/ImageDataTablev2.stories.js +24 -0
  299. package/src/components/organisms/ImageDataTablev2/index.js +124 -0
  300. package/src/components/organisms/ImageDataTablev2/styles.js +18 -0
  301. package/src/components/organisms/ImagePreviewerv2/ImagePreviewerv2.stories.js +38 -0
  302. package/src/components/organisms/ImagePreviewerv2/index.js +22 -0
  303. package/src/components/organisms/ImagePreviewerv2/styles.js +7 -0
  304. package/src/components/organisms/InputGroup/index.js +131 -119
  305. package/src/components/organisms/InputGroupv2/InputGroupv2.stories.js +31 -0
  306. package/src/components/organisms/InputGroupv2/index.js +296 -0
  307. package/src/components/organisms/InputGroupv2/styles.js +90 -0
  308. package/src/components/organisms/MandatoryBar/MandatoryBar.stories.js +18 -0
  309. package/src/components/organisms/MandatoryBar/index.js +31 -0
  310. package/src/components/organisms/MandatoryBar/styles.js +12 -0
  311. package/src/components/organisms/Modal/Modal.stories.js +2 -1
  312. package/src/components/organisms/Modal/index.js +8 -1
  313. package/src/components/organisms/Modal/styles.js +8 -1
  314. package/src/components/organisms/OrderDetail/utils/Table/utils.js +6 -16
  315. package/src/components/organisms/ProductImageModalv2/ProductImageModalv2.stories.js +90 -0
  316. package/src/components/organisms/ProductImageModalv2/index.js +105 -0
  317. package/src/components/organisms/ProductImageModalv2/styles.js +71 -0
  318. package/src/components/organisms/RenameImagesBar/RenameImagesBar.stories.js +18 -0
  319. package/src/components/organisms/RenameImagesBar/index.js +30 -0
  320. package/src/components/organisms/RenameImagesBar/styles.js +12 -0
  321. package/src/components/organisms/VersionSelector/index.js +100 -100
  322. package/src/components/organisms/VersionSelectorv2/VersionSelectorv2.stories.js +15 -0
  323. package/src/components/organisms/VersionSelectorv2/index.js +105 -0
  324. package/src/components/organisms/VersionSelectorv2/styles.js +45 -0
  325. package/src/components/pages/Dashboard/Dashboard.stories.js +33 -38
  326. package/src/components/pages/Dashboard/index.js +36 -7
  327. package/src/components/pages/ProductEditionv2/ProductEditionv2.stories.js +213 -0
  328. package/src/components/pages/ProductEditionv2/index.js +1758 -0
  329. package/src/components/pages/ProductEditionv2/styles.js +154 -0
  330. package/src/components/pages/ProviderProductEdition/index.js +100 -131
  331. package/src/components/pages/ProviderProductEdition/styles.js +5 -1
  332. package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +4 -0
  333. package/src/components/pages/RetailerProductEdition/index.js +124 -278
  334. package/src/components/pages/RetailerProductEdition/styles.js +4 -0
  335. package/src/components/pages/RetailerProductEdition/utils.js +37 -0
  336. package/src/global-files/data.js +6 -10
  337. package/src/global-files/variables.js +6 -0
  338. package/src/index.js +11 -0
  339. package/dist/assets/fonts/roboto/LICENSE.txt +0 -202
@@ -21,7 +21,7 @@ export const InputGroup = ({
21
21
  compare,
22
22
  groupData = [],
23
23
  setUpdatedBoxData,
24
- activeRetailer
24
+ activeRetailer,
25
25
  }) => {
26
26
  const inputTypeValue = (type) => {
27
27
  switch (type) {
@@ -41,7 +41,11 @@ export const InputGroup = ({
41
41
  };
42
42
 
43
43
  useEffect(() => {
44
- if (inputGroup.groupId === "16" && activeRetailer && activeRetailer?.retailer?.id) {
44
+ if (
45
+ inputGroup.groupId === "16" &&
46
+ activeRetailer &&
47
+ activeRetailer?.retailer?.id
48
+ ) {
45
49
  if (activeRetailer?.retailer?.id === 68) {
46
50
  setShowBox(true);
47
51
  } else {
@@ -50,127 +54,127 @@ export const InputGroup = ({
50
54
  }
51
55
  }, [activeRetailer, inputGroup.groupId]);
52
56
 
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
-
63
57
  return (
64
58
  <>
65
59
  {inputGroup.groupId === "16" && activeRetailer?.retailer?.id === 68 && (
66
60
  <Container
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}
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}`}
61
+ className={
62
+ activeSection === "Ficha técnica"
63
+ ? "datasheets-layout"
64
+ : "descriptions-layout"
65
+ }
66
+ >
67
+ <Box
68
+ inputGroup={inputGroup}
69
+ dataInputs={dataInputs}
70
+ onChange={setUpdatedBoxData}
92
71
  />
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
- )
72
+ </Container>
73
+ )}
74
+ {inputGroup.groupId !== "16" && (
75
+ <Container
76
+ className={
77
+ activeSection === "Ficha técnica"
78
+ ? "datasheets-layout"
79
+ : "descriptions-layout"
80
+ }
81
+ >
82
+ {inputGroup?.dataGroup && (
83
+ <ScreenHeader
84
+ headerType={"retailer-name-header"}
85
+ text={`${inputGroup?.dataGroup}`}
86
+ />
169
87
  )}
170
- </div>
171
- </Container>
88
+ <div className="inputs-container">
89
+ {inputGroup?.inputs?.map((input, index) =>
90
+ activeSection === "Ficha técnica" ? (
91
+ <>
92
+ <TagAndInput
93
+ key={
94
+ index +
95
+ "-" +
96
+ dataInputs[input]?.value +
97
+ "-" +
98
+ dataInputs[input]?.id +
99
+ "-" +
100
+ compare
101
+ }
102
+ //disabled={input === 40001}
103
+ disabled={false}
104
+ inputId={dataInputs[input]?.id}
105
+ version={version}
106
+ inputType={inputTypeValue(dataInputs[input]?.type)}
107
+ label={
108
+ dataInputs[input]?.name +
109
+ (dataInputs[input]?.required ? "*" : "")
110
+ }
111
+ value={
112
+ compare
113
+ ? auditInputs[input]?.value
114
+ : dataInputs[input]?.value
115
+ }
116
+ inputPlaceHolder={input?.placeholder}
117
+ articleId={articleId}
118
+ isRequired={dataInputs[input]?.required}
119
+ updatedDatasheets={updatedDatasheets}
120
+ setUpdatedDatasheets={setUpdatedDatasheets}
121
+ maxChar={
122
+ dataInputs[input]?.max_chars
123
+ ? dataInputs[input]?.max_chars
124
+ : 999
125
+ }
126
+ optionList={dataInputs[input]?.option_list}
127
+ description={dataInputs[input]?.description}
128
+ showTooltip={true}
129
+ auditClass={
130
+ compare &&
131
+ !isEquals(
132
+ dataInputs[input].value,
133
+ auditInputs[input].value
134
+ )
135
+ ? "audit-class"
136
+ : ""
137
+ }
138
+ />
139
+ </>
140
+ ) : (
141
+ <TagAndInput
142
+ key={index + "-" + input?.value + "-" + compare}
143
+ inputId={input.id}
144
+ index={index}
145
+ inputType={"textarea"}
146
+ label={input?.name + (input.required ? "*" : "")}
147
+ value={
148
+ compare
149
+ ? auditInputGroup?.inputs[index]?.value
150
+ : input?.value
151
+ }
152
+ isRequired={input.required}
153
+ maxChar={input.max_chars}
154
+ inputPlaceHolder={input?.placeholder}
155
+ updatedDescriptions={updatedDescriptions}
156
+ setUpdatedDescriptions={setUpdatedDescriptions}
157
+ articleId={articleId}
158
+ version={version}
159
+ dinamicHeight={dinamicHeight}
160
+ description={input?.description}
161
+ showTooltip={true}
162
+ auditClass={
163
+ compare &&
164
+ !isEquals(
165
+ input?.value,
166
+ auditInputGroup?.inputs[index]?.value
167
+ )
168
+ ? "audit-class"
169
+ : ""
170
+ }
171
+ />
172
+ )
173
+ )}
174
+ </div>
175
+ </Container>
172
176
  )}
173
- {(inputGroup.groupId === "16" && activeRetailer?.retailer?.id === 74) && (
177
+ {inputGroup.groupId === "16" && activeRetailer?.retailer?.id === 74 && (
174
178
  <Container
175
179
  className={
176
180
  activeSection === "Ficha técnica"
@@ -230,7 +234,10 @@ export const InputGroup = ({
230
234
  onChange={setUpdatedBoxData}
231
235
  auditClass={
232
236
  compare &&
233
- !isEquals(dataInputs[input].value, auditInputs[input].value)
237
+ !isEquals(
238
+ dataInputs[input].value,
239
+ auditInputs[input].value
240
+ )
234
241
  ? "audit-class"
235
242
  : ""
236
243
  }
@@ -244,7 +251,9 @@ export const InputGroup = ({
244
251
  inputType={"textarea"}
245
252
  label={input?.name + (input.required ? "*" : "")}
246
253
  value={
247
- compare ? auditInputGroup?.inputs[index]?.value : input?.value
254
+ compare
255
+ ? auditInputGroup?.inputs[index]?.value
256
+ : input?.value
248
257
  }
249
258
  isRequired={input.required}
250
259
  maxChar={input.max_chars}
@@ -258,7 +267,10 @@ export const InputGroup = ({
258
267
  showTooltip={true}
259
268
  auditClass={
260
269
  compare &&
261
- !isEquals(input?.value, auditInputGroup?.inputs[index]?.value)
270
+ !isEquals(
271
+ input?.value,
272
+ auditInputGroup?.inputs[index]?.value
273
+ )
262
274
  ? "audit-class"
263
275
  : ""
264
276
  }
@@ -0,0 +1,31 @@
1
+ import { InputGroupv2 } from "./index";
2
+
3
+ export default {
4
+ title: "Components/organisms/InputGroupv2",
5
+ component: InputGroupv2,
6
+ argTypes: {
7
+ activeSection: {
8
+ options: [true, false],
9
+ control: { type: "boolean" },
10
+ },
11
+ },
12
+ };
13
+
14
+ const Template = (args) => <InputGroupv2 {...args} />;
15
+
16
+ export const InputGroupDefault = Template.bind({});
17
+ InputGroupDefault.args = {
18
+ InputGroupv2: {
19
+ name: "Información básica del producto",
20
+ inputs: [
21
+ { label: "Item", value: "1234567890", placeholder: "Ingresar valor" },
22
+ { label: "Item", value: "1234567890", placeholder: "Ingresar valor" },
23
+ { label: "Item", value: "1234567890", placeholder: "Ingresar valor" },
24
+ { label: "Item", value: "1234567890", placeholder: "Ingresar valor" },
25
+ { label: "Item", value: "1234567890", placeholder: "Ingresar valor" },
26
+ { label: "Item", value: "1234567890", placeholder: "Ingresar valor" },
27
+ { label: "Item", value: "1234567890", placeholder: "Ingresar valor" },
28
+ { label: "Item", value: "1234567890", placeholder: "Ingresar valor" },
29
+ ],
30
+ },
31
+ };
@@ -0,0 +1,296 @@
1
+ import { Container } from "./styles";
2
+ import { TagAndInputv2 } from "../../molecules/TagAndInputv2";
3
+ import { ScreenHeaderv2 } from "../../atoms/ScreenHeaderv2";
4
+ import { useState, useEffect } from "react";
5
+ import { Box } from "../Box";
6
+
7
+ export const InputGroupv2 = ({
8
+ inputGroup = {},
9
+ auditInputGroup,
10
+ activeSection,
11
+ dataInputs = {},
12
+ auditInputs = {},
13
+ updatedDescriptions,
14
+ setUpdatedDescriptions,
15
+ updatedDatasheets,
16
+ setUpdatedDatasheets,
17
+ articleId,
18
+ version,
19
+ dinamicHeight,
20
+ compare,
21
+ activeRetailer,
22
+ setUpdatedBoxData,
23
+ showMissingChars,
24
+ }) => {
25
+ const inputTypeValue = (type) => {
26
+ switch (type) {
27
+ case "Booleano":
28
+ return "checkbox";
29
+ case "Numérico":
30
+ return "number";
31
+ default:
32
+ return "text";
33
+ }
34
+ };
35
+ const [showBox, setShowBox] = useState(false);
36
+
37
+ const isEquals = (dataInputsVal, auditInputsVal) => {
38
+ const result = dataInputsVal === auditInputsVal;
39
+ return result;
40
+ };
41
+
42
+
43
+ useEffect(() => {
44
+ if (inputGroup.groupId === "16" && activeRetailer && activeRetailer?.retailer?.id) {
45
+ if (activeRetailer?.retailer?.id === 68) {
46
+ setShowBox(true);
47
+ } else {
48
+ setShowBox(false);
49
+ }
50
+ }
51
+ }, [activeRetailer, inputGroup.groupId]);
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
+ // console.log("dataInputs",dataInputs);
63
+
64
+ return (
65
+ <>
66
+ {inputGroup.groupId === "16" && activeRetailer?.retailer?.id === 68 && (
67
+ <Container
68
+ className={
69
+ activeSection === "Ficha técnica"
70
+ ? "datasheets-layout"
71
+ : "descriptions-layout"
72
+ }
73
+ >
74
+ <Box
75
+ inputGroup={inputGroup}
76
+ dataInputs={dataInputs}
77
+ onChange={setUpdatedBoxData}
78
+ />
79
+ </Container>
80
+ )}
81
+ {(inputGroup.groupId !== "16") && (
82
+ <Container
83
+ className={
84
+ activeSection === "Ficha técnica"
85
+ ? "datasheets-layout"
86
+ : "descriptions-layout"
87
+ }
88
+ >
89
+ {inputGroup?.dataGroup && (
90
+ <ScreenHeaderv2
91
+ headerType={"retailer-name-header"}
92
+ text={`${inputGroup?.dataGroup}`}
93
+ />
94
+ )}
95
+ <div className="inputs-container">
96
+ {inputGroup?.inputs?.map((input, index) =>
97
+ activeSection === "Ficha técnica" ? (
98
+ <>
99
+ <TagAndInputv2
100
+ key={
101
+ index +
102
+ "-" +
103
+ dataInputs[input]?.value +
104
+ "-" +
105
+ dataInputs[input]?.id +
106
+ "-" +
107
+ compare
108
+ }
109
+ //disabled={input === 40001}
110
+ disabled={false}
111
+ inputId={dataInputs[input]?.id}
112
+ version={version}
113
+ inputType={inputTypeValue(dataInputs[input]?.type)}
114
+ label={
115
+ dataInputs[input]?.name +
116
+ (dataInputs[input]?.required ? "*" : "")
117
+ }
118
+ value={
119
+ compare
120
+ ? auditInputs[input]?.value
121
+ : dataInputs[input]?.value
122
+ }
123
+ inputPlaceHolder={input?.placeholder}
124
+ articleId={articleId}
125
+ isRequired={dataInputs[input]?.required}
126
+ required={dataInputs[input]?.required}
127
+ minWords={dataInputs[input]?.min_words}
128
+ maxWords={dataInputs[input]?.max_words}
129
+ minChar={dataInputs[input]?.min_chars}
130
+ updatedDatasheets={updatedDatasheets}
131
+ setUpdatedDatasheets={setUpdatedDatasheets}
132
+ maxChar={
133
+ dataInputs[input]?.max_chars
134
+ ? dataInputs[input]?.max_chars
135
+ : 999
136
+ }
137
+ optionList={dataInputs[input]?.option_list}
138
+ description={dataInputs[input]?.description}
139
+ showTooltip={true}
140
+ auditClass={
141
+ compare &&
142
+ !isEquals(dataInputs[input].value, auditInputs[input].value)
143
+ ? "audit-class"
144
+ : ""
145
+ }
146
+ showMissingChars={showMissingChars}
147
+ />
148
+ </>
149
+ ) : (
150
+ <TagAndInputv2
151
+ key={index + "-" + input?.value + "-" + compare}
152
+ inputId={input.id}
153
+ index={index}
154
+ inputType={"textarea"}
155
+ label={input?.name + (input.required ? "*" : "")}
156
+ value={
157
+ compare ? auditInputGroup?.inputs[index]?.value : input?.value
158
+ }
159
+ isRequired={input.required}
160
+ required={input.required}
161
+ minWords={input?.min_words}
162
+ maxWords={input?.max_words}
163
+ minChar={input?.min_chars}
164
+ maxChar={input.max_chars}
165
+ inputPlaceHolder={input?.placeholder}
166
+ updatedDescriptions={updatedDescriptions}
167
+ setUpdatedDescriptions={setUpdatedDescriptions}
168
+ articleId={articleId}
169
+ version={version}
170
+ dinamicHeight={dinamicHeight}
171
+ description={input?.description}
172
+ showTooltip={true}
173
+ auditClass={
174
+ compare &&
175
+ !isEquals(input?.value, auditInputGroup?.inputs[index]?.value)
176
+ ? "audit-class"
177
+ : ""
178
+ }
179
+ showMissingChars={showMissingChars}
180
+ />
181
+ )
182
+ )}
183
+ </div>
184
+ </Container>
185
+ )}
186
+ {(inputGroup.groupId === "16" && activeRetailer?.retailer?.id === 74) && (
187
+ <Container
188
+ className={
189
+ activeSection === "Ficha técnica"
190
+ ? "datasheets-layout"
191
+ : "descriptions-layout"
192
+ }
193
+ >
194
+ {inputGroup?.dataGroup && (
195
+ <ScreenHeaderv2
196
+ headerType={"retailer-name-header"}
197
+ text={`${inputGroup?.dataGroup}`}
198
+ />
199
+ )}
200
+ <div className="inputs-container">
201
+ {inputGroup?.inputs?.map((input, index) =>
202
+ activeSection === "Ficha técnica" ? (
203
+ <>
204
+ <TagAndInputv2
205
+ key={
206
+ index +
207
+ "-" +
208
+ dataInputs[input]?.value +
209
+ "-" +
210
+ dataInputs[input]?.id +
211
+ "-" +
212
+ compare
213
+ }
214
+ //disabled={input === 40001}
215
+ disabled={false}
216
+ inputId={dataInputs[input]?.id}
217
+ version={version}
218
+ inputType={inputTypeValue(dataInputs[input]?.type)}
219
+ label={
220
+ dataInputs[input]?.name +
221
+ (dataInputs[input]?.required ? "*" : "")
222
+ }
223
+ value={
224
+ compare
225
+ ? auditInputs[input]?.value
226
+ : dataInputs[input]?.value
227
+ }
228
+ inputPlaceHolder={input?.placeholder}
229
+ articleId={articleId}
230
+ isRequired={dataInputs[input]?.required}
231
+ required={input.required}
232
+ minWords={input?.min_words}
233
+ maxWords={input?.max_words}
234
+ minChar={input?.min_chars}
235
+ updatedDatasheets={updatedDatasheets}
236
+ setUpdatedDatasheets={setUpdatedDatasheets}
237
+ maxChar={
238
+ dataInputs[input]?.max_chars
239
+ ? dataInputs[input]?.max_chars
240
+ : 999
241
+ }
242
+ optionList={dataInputs[input]?.option_list}
243
+ description={dataInputs[input]?.description}
244
+ showTooltip={true}
245
+ inputGroup={inputGroup}
246
+ dataInputs={dataInputs}
247
+ onChange={setUpdatedBoxData}
248
+ auditClass={
249
+ compare &&
250
+ !isEquals(dataInputs[input].value, auditInputs[input].value)
251
+ ? "audit-class"
252
+ : ""
253
+ }
254
+ showMissingChars={showMissingChars}
255
+ />
256
+ </>
257
+ ) : (
258
+ <TagAndInputv2
259
+ key={index + "-" + input?.value + "-" + compare}
260
+ inputId={input.id}
261
+ index={index}
262
+ inputType={"textarea"}
263
+ label={input?.name + (input.required ? "*" : "")}
264
+ value={
265
+ compare ? auditInputGroup?.inputs[index]?.value : input?.value
266
+ }
267
+ isRequired={input.required}
268
+ required={input.required}
269
+ minWords={input?.min_words}
270
+ maxWords={input?.max_words}
271
+ minChar={input?.min_chars}
272
+ maxChar={input.max_chars}
273
+ inputPlaceHolder={input?.placeholder}
274
+ updatedDescriptions={updatedDescriptions}
275
+ setUpdatedDescriptions={setUpdatedDescriptions}
276
+ articleId={articleId}
277
+ version={version}
278
+ dinamicHeight={dinamicHeight}
279
+ description={input?.description}
280
+ showTooltip={true}
281
+ auditClass={
282
+ compare &&
283
+ !isEquals(input?.value, auditInputGroup?.inputs[index]?.value)
284
+ ? "audit-class"
285
+ : ""
286
+ }
287
+ showMissingChars={showMissingChars}
288
+ />
289
+ )
290
+ )}
291
+ </div>
292
+ </Container>
293
+ )}
294
+ </>
295
+ );
296
+ }