contentoh-components-library 21.0.11 → 21.0.14

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 (322) hide show
  1. package/.env.development +3 -18
  2. package/.env.production +1 -16
  3. package/CHANGELOG.md +0 -40
  4. package/dist/assets/images/carouselImagesLogin/login2.svg +117 -0
  5. package/dist/assets/images/carouselImagesLogin/login3.svg +147 -0
  6. package/dist/assets/images/carouselImagesLogin/loginImage.svg +301 -0
  7. package/dist/components/atoms/ActivedFilter/ActivedFilter.stories.js +1 -7
  8. package/dist/components/atoms/ActivedFilter/index.js +4 -12
  9. package/dist/components/atoms/AsignationOption/AsignationOptions.stories.js +1 -7
  10. package/dist/components/atoms/AsignationOption/index.js +21 -33
  11. package/dist/components/atoms/AsignationOption/styles.js +1 -1
  12. package/dist/components/atoms/AtomList/AtomList.stories.js +1 -7
  13. package/dist/components/atoms/AtomList/index.js +9 -14
  14. package/dist/components/atoms/Avatar/AsignationImage.stories.js +1 -7
  15. package/dist/components/atoms/Avatar/index.js +8 -11
  16. package/dist/components/atoms/Card/Card.stories.js +1 -7
  17. package/dist/components/atoms/Card/index.js +4 -8
  18. package/dist/components/atoms/CheckBox/CheckBox.stories.js +1 -7
  19. package/dist/components/atoms/CheckBox/index.js +13 -19
  20. package/dist/components/atoms/CustomerTypeImage/CustomerTypeImage.stories.js +1 -7
  21. package/dist/components/atoms/CustomerTypeImage/index.js +6 -8
  22. package/dist/components/atoms/DropDownButton/DropDownButton.stories.js +1 -7
  23. package/dist/components/atoms/DropDownButton/index.js +6 -9
  24. package/dist/components/atoms/EditField/EditField.stories.js +1 -7
  25. package/dist/components/atoms/EditField/index.js +10 -17
  26. package/dist/components/atoms/FeatureTag/FeatureTag.stories.js +1 -7
  27. package/dist/components/atoms/FeatureTag/index.js +5 -11
  28. package/dist/components/atoms/GeneralButton/GeneralButton.stories.js +1 -7
  29. package/dist/components/atoms/GeneralButton/index.js +6 -13
  30. package/dist/components/atoms/GeneralButton/styles.js +2 -4
  31. package/dist/components/atoms/GeneralInput/GeneralInput.stories.js +1 -7
  32. package/dist/components/atoms/GeneralInput/index.js +36 -89
  33. package/dist/components/atoms/GeneralInput/styles.js +1 -7
  34. package/dist/components/atoms/GeneralTextBox/GeneralTextBox.stories.js +1 -7
  35. package/dist/components/atoms/GeneralTextBox/index.js +7 -12
  36. package/dist/components/atoms/GenericModal/GenericModal.stories.js +59 -46
  37. package/dist/components/atoms/GenericModal/index.js +8 -15
  38. package/dist/components/atoms/GenericModal/styles.js +1 -1
  39. package/dist/components/atoms/GradientPanel/GradientPanel.stories.js +80 -85
  40. package/dist/components/atoms/GradientPanel/index.js +7 -11
  41. package/dist/components/atoms/Graphic/Graphic.stories.js +1 -7
  42. package/dist/components/atoms/Graphic/index.js +5 -9
  43. package/dist/components/atoms/ListCommercialRetailers/ListCommercialRetailers.stories.js +36 -0
  44. package/dist/components/atoms/ListCommercialRetailers/index.js +64 -0
  45. package/dist/components/atoms/ListCommercialRetailers/styles.js +20 -0
  46. package/dist/components/atoms/LoadImageMenu/LoadImageMenu.stories.js +1 -7
  47. package/dist/components/atoms/LoadImageMenu/index.js +22 -33
  48. package/dist/components/atoms/LogoImage/LogoImage.stories.js +1 -7
  49. package/dist/components/atoms/LogoImage/index.js +6 -8
  50. package/dist/components/atoms/MenuCommercialRetailers/MenuCommercialRetailers.stories.js +37 -0
  51. package/dist/components/atoms/MenuCommercialRetailers/index.js +25 -0
  52. package/dist/components/{molecules/RetailerSelector → atoms/MenuCommercialRetailers}/styles.js +1 -1
  53. package/dist/components/atoms/MenuNotification/MenuNotification.stories.js +1 -7
  54. package/dist/components/atoms/MenuNotification/index.js +15 -21
  55. package/dist/components/atoms/MenuProductImage/MenuProductImage.stories.js +28 -0
  56. package/dist/components/atoms/MenuProductImage/index.js +88 -0
  57. package/dist/components/atoms/MenuProductImage/styles.js +20 -0
  58. package/dist/components/atoms/MenuProfile/MenuProfile.stories.js +1 -7
  59. package/dist/components/atoms/MenuProfile/index.js +15 -25
  60. package/dist/components/atoms/Notification/Notification.stories.js +1 -5
  61. package/dist/components/atoms/Notification/index.js +9 -15
  62. package/dist/components/atoms/PriorityFlag/PriorityFlag.stories.js +1 -7
  63. package/dist/components/atoms/PriorityFlag/index.js +5 -9
  64. package/dist/components/atoms/ProductImage/ProductImage.stories.js +1 -7
  65. package/dist/components/atoms/ProductImage/index.js +8 -11
  66. package/dist/components/atoms/ProductImage/styles.js +1 -1
  67. package/dist/components/atoms/ProductPercentCard/Percent.stories.js +1 -7
  68. package/dist/components/atoms/ProductPercentCard/index.js +14 -21
  69. package/dist/components/atoms/ProgressBar/ProgressBar.stories.js +1 -7
  70. package/dist/components/atoms/ProgressBar/index.js +4 -9
  71. package/dist/components/atoms/ProgressBar/styles.js +5 -3
  72. package/dist/components/atoms/ScreenHeader/ScreenHeader.stories.js +1 -7
  73. package/dist/components/atoms/ScreenHeader/index.js +3 -9
  74. package/dist/components/atoms/ScreenHeader/styles.js +1 -1
  75. package/dist/components/atoms/SideMenuButton/SideMenuButton.stories.js +1 -5
  76. package/dist/components/atoms/SideMenuButton/index.js +4 -10
  77. package/dist/components/atoms/StatusTag/StatusTag.stories.js +1 -7
  78. package/dist/components/atoms/StatusTag/index.js +3 -43
  79. package/dist/components/atoms/StatusTag/styles.js +1 -1
  80. package/dist/components/atoms/TabSection/TabSection.stories.js +1 -7
  81. package/dist/components/atoms/TabSection/index.js +3 -8
  82. package/dist/components/atoms/ValidationPanel/ValidationPanel.stories.js +1 -7
  83. package/dist/components/atoms/ValidationPanel/index.js +28 -41
  84. package/dist/components/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +22 -0
  85. package/dist/components/atoms/VerticalSideMenuMainPage/index.js +49 -0
  86. package/dist/components/atoms/{Commentary → VerticalSideMenuMainPage}/styles.js +1 -6
  87. package/dist/components/molecules/AddProvidersAndProducts/AddProvidersAndProducts.stories.js +1 -5
  88. package/dist/components/molecules/AddProvidersAndProducts/index.js +12 -18
  89. package/dist/components/molecules/ApproveRejetPanel/ApproveRejetPanel.stories.js +25 -0
  90. package/dist/components/molecules/ApproveRejetPanel/index.js +49 -0
  91. package/dist/components/{atoms/CharCounter → molecules/ApproveRejetPanel}/styles.js +1 -3
  92. package/dist/components/molecules/AssignedWork/AssignedWork.stories.js +1 -5
  93. package/dist/components/molecules/AssignedWork/index.js +30 -36
  94. package/dist/components/molecules/AvatarAndValidation/AvatarAndValidation.stories.js +1 -7
  95. package/dist/components/molecules/AvatarAndValidation/index.js +17 -32
  96. package/dist/components/molecules/AvatarAndValidation/styles.js +1 -1
  97. package/dist/components/molecules/CarouselImagesLogin/CarouselImagesLogin.stories.js +1 -5
  98. package/dist/components/molecules/CarouselImagesLogin/index.js +16 -20
  99. package/dist/components/molecules/EditionActiveImage/EditionActiveImage.stories.js +1 -7
  100. package/dist/components/molecules/EditionActiveImage/index.js +10 -14
  101. package/dist/components/molecules/FeaturesBar/FeaturesBar.stories.js +1 -7
  102. package/dist/components/molecules/FeaturesBar/index.js +9 -11
  103. package/dist/components/molecules/GalleryElement/GalleryElement.stories.js +1 -7
  104. package/dist/components/molecules/GalleryElement/index.js +32 -99
  105. package/dist/components/molecules/GalleryElement/styles.js +1 -1
  106. package/dist/components/molecules/GalleryHeader/GalleryHeader.stories.js +1 -7
  107. package/dist/components/molecules/GalleryHeader/index.js +6 -46
  108. package/dist/components/molecules/GalleryHeader/styles.js +1 -1
  109. package/dist/components/molecules/HeaderTop/HeaderTop.stories.js +1 -7
  110. package/dist/components/molecules/HeaderTop/index.js +7 -10
  111. package/dist/components/molecules/ImageSelector/ImageSelector.stories.js +1 -7
  112. package/dist/components/molecules/ImageSelector/index.js +14 -14
  113. package/dist/components/molecules/LoginPasswordStrength/LoginPasswordStrength.stories.js +1 -7
  114. package/dist/components/molecules/LoginPasswordStrength/index.js +38 -60
  115. package/dist/components/molecules/ParentComponent/ParentComponent.stories.js +2 -10
  116. package/dist/components/molecules/ParentComponent/index.js +5 -9
  117. package/dist/components/molecules/PayMethod/PayMethod.stories.js +1 -7
  118. package/dist/components/molecules/PayMethod/index.js +33 -38
  119. package/dist/components/molecules/PlanSelection/PlanSelection.stories.js +1 -7
  120. package/dist/components/molecules/PlanSelection/index.js +11 -14
  121. package/dist/components/molecules/ProductNameHeader/ProductNameHeader.stories.js +1 -7
  122. package/dist/components/molecules/ProductNameHeader/index.js +15 -18
  123. package/dist/components/molecules/ProductNotification/ProductNotification.stories.js +1 -7
  124. package/dist/components/molecules/ProductNotification/index.js +9 -12
  125. package/dist/components/molecules/ProfileHeader/ProfileHeader.stories.js +1 -5
  126. package/dist/components/molecules/ProfileHeader/index.js +15 -21
  127. package/dist/components/molecules/SidebarNotification/SidebarNotification.stories.js +1 -5
  128. package/dist/components/molecules/SidebarNotification/index.js +37 -43
  129. package/dist/components/molecules/StatusAsignationInfo/StatusAsignationInfo.stories.js +1 -7
  130. package/dist/components/molecules/StatusAsignationInfo/index.js +76 -113
  131. package/dist/components/molecules/StatusAsignationInfo/styles.js +1 -1
  132. package/dist/components/molecules/TableHeader/TableHeader.stories.js +1 -7
  133. package/dist/components/molecules/TableHeader/index.js +10 -21
  134. package/dist/components/molecules/TableHeader/styles.js +1 -1
  135. package/dist/components/molecules/TableRow/TableRow.stories.js +1 -7
  136. package/dist/components/molecules/TableRow/index.js +7 -11
  137. package/dist/components/molecules/TabsMenu/TabsMenu.stories.js +1 -7
  138. package/dist/components/molecules/TabsMenu/index.js +10 -13
  139. package/dist/components/molecules/TagAndInput/TagAndInput.stories.js +1 -7
  140. package/dist/components/molecules/TagAndInput/index.js +12 -38
  141. package/dist/components/organisms/FullProductNameHeader/FullProductNameHeader.stories.js +1 -7
  142. package/dist/components/organisms/FullProductNameHeader/index.js +16 -45
  143. package/dist/components/organisms/FullTabsMenu/FullTabsMenu.stories.js +1 -7
  144. package/dist/components/organisms/FullTabsMenu/index.js +13 -30
  145. package/dist/components/organisms/Fullplan/FullPlan.stories.js +1 -7
  146. package/dist/components/organisms/Fullplan/index.js +15 -23
  147. package/dist/components/organisms/ImageDataTable/ImageDataTable.stories.js +1 -7
  148. package/dist/components/organisms/ImageDataTable/index.js +18 -96
  149. package/dist/components/organisms/ImagePreviewer/ImagePreviewer.stories.js +1 -7
  150. package/dist/components/organisms/ImagePreviewer/index.js +8 -12
  151. package/dist/components/organisms/ImagesGroup/index.js +1 -5
  152. package/dist/components/organisms/InputGroup/InputGroup.stories.js +1 -7
  153. package/dist/components/organisms/InputGroup/index.js +26 -49
  154. package/dist/components/organisms/InputGroup/styles.js +1 -1
  155. package/dist/components/organisms/ProductImageModal/ProductImageModal.stories.js +1 -7
  156. package/dist/components/organisms/ProductImageModal/index.js +41 -54
  157. package/dist/components/organisms/ProductImageModal/styles.js +1 -1
  158. package/dist/components/pages/ChangePasswordLogin/ChangePasswordLogin.stories.js +1 -5
  159. package/dist/components/pages/ChangePasswordLogin/index.js +33 -36
  160. package/dist/components/pages/CustomerLogin/CustomerLogin.stories.js +47 -52
  161. package/dist/components/pages/CustomerLogin/index.js +12 -18
  162. package/dist/components/pages/CustomerPayMethod/CustomerPayMethod.stories.js +28 -36
  163. package/dist/components/pages/CustomerPayMethod/index.js +12 -18
  164. package/dist/components/pages/CustomerType/CustomerType.stories.js +22 -21
  165. package/dist/components/pages/CustomerType/index.js +12 -18
  166. package/dist/components/pages/EmailResetPassword/EmailResetPassword.stories.js +1 -5
  167. package/dist/components/pages/EmailResetPassword/index.js +39 -49
  168. package/dist/components/pages/OnboardPlan/OnboardPlan.stories.js +9 -12
  169. package/dist/components/pages/OnboardPlan/index.js +12 -18
  170. package/dist/components/pages/RegistrationLoginFirstStep/RegistrationLoginFirstStep.stories.js +1 -5
  171. package/dist/components/pages/RegistrationLoginFirstStep/index.js +104 -155
  172. package/dist/components/pages/RegistrationLoginSecondStep/RegistrationLoginSecondStep.stories.js +1 -5
  173. package/dist/components/pages/RegistrationLoginSecondStep/index.js +63 -74
  174. package/dist/components/pages/RegistrationLoginThirdStep/RegistrationLoginThirdStep.stories.js +1 -5
  175. package/dist/components/pages/RegistrationLoginThirdStep/index.js +65 -79
  176. package/dist/components/pages/RetailerPlan/RetailerPlan.stories.js +10 -13
  177. package/dist/components/pages/RetailerPlan/index.js +12 -18
  178. package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +311 -98
  179. package/dist/components/pages/RetailerProductEdition/index.js +82 -1640
  180. package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
  181. package/dist/components/pages/VerificationCodeResetPassword/VerificationCodeResetPassword.stories.js +1 -5
  182. package/dist/components/pages/VerificationCodeResetPassword/index.js +51 -62
  183. package/dist/global-files/data.js +53 -190
  184. package/dist/global-files/variables.js +0 -1
  185. package/package.json +5 -19
  186. package/src/assets/images/approveRejetPanel/approveRejetPanelCancel.svg +4 -0
  187. package/src/assets/images/approveRejetPanel/approveRejetPanelDelete.svg +14 -0
  188. package/src/assets/images/approveRejetPanel/approveRejetPanelExclude.svg +3 -0
  189. package/src/assets/images/approveRejetPanel/approveRejetPanelSave.svg +4 -0
  190. package/src/assets/images/listCommercialRetailers/listCommercialRetailers.svg +3 -0
  191. package/src/assets/images/menuProductImage/menuProductImage.svg +9 -0
  192. package/src/assets/images/menuProductImage/menuProductImageButton.svg +3 -0
  193. package/src/assets/images/registrationLoginFirstStep/countrySelectArgentina.svg +1 -0
  194. package/src/assets/images/registrationLoginFirstStep/countrySelectColombia.svg +1 -0
  195. package/src/assets/images/registrationLoginFirstStep/countrySelectCostaRica.svg +1 -0
  196. package/src/assets/images/registrationLoginFirstStep/countrySelectEcuador.svg +1 -0
  197. package/src/assets/images/registrationLoginFirstStep/countrySelectElSalvador.svg +2364 -0
  198. package/src/assets/images/registrationLoginFirstStep/countrySelectHonduras.svg +1 -0
  199. package/src/assets/images/registrationLoginFirstStep/countrySelectMexico.svg +373 -0
  200. package/src/assets/images/registrationLoginFirstStep/countrySelectPanam/303/241.svg +1 -0
  201. package/src/assets/images/registrationLoginFirstStep/countrySelectPer/303/272.svg +1 -0
  202. package/src/assets/images/verticalSideMenuMainPage/verticalSideMenuMainPageFAQS.svg +12 -0
  203. package/src/assets/images/verticalSideMenuMainPage/verticalSideMenuMainPageFocusProduct.svg +11 -0
  204. package/src/assets/images/verticalSideMenuMainPage/verticalSideMenuMainPageGroup.svg +3 -0
  205. package/src/assets/images/verticalSideMenuMainPage/verticalSideMenuMainPageLogo.svg +12 -0
  206. package/src/assets/images/verticalSideMenuMainPage/verticalSideMenuMainPageSpeedometer.svg +12 -0
  207. package/src/assets/images/verticalSideMenuMainPage/verticalSideMenuMainPageTask.svg +10 -0
  208. package/src/components/atoms/AsignationOption/index.js +5 -7
  209. package/src/components/atoms/AsignationOption/styles.js +1 -9
  210. package/src/components/atoms/CheckBox/index.js +2 -8
  211. package/src/components/atoms/GeneralButton/index.js +2 -9
  212. package/src/components/atoms/GeneralButton/styles.js +0 -23
  213. package/src/components/atoms/GeneralInput/index.js +21 -71
  214. package/src/components/atoms/GeneralInput/styles.js +1 -11
  215. package/src/components/atoms/GenericModal/index.js +2 -2
  216. package/src/components/atoms/GenericModal/styles.js +2 -10
  217. package/src/components/atoms/ListCommercialRetailers/ListCommercialRetailers.stories.js +17 -0
  218. package/src/components/atoms/ListCommercialRetailers/index.js +45 -0
  219. package/src/components/atoms/ListCommercialRetailers/styles.js +36 -0
  220. package/src/components/atoms/MenuCommercialRetailers/MenuCommercialRetailers.stories.js +19 -0
  221. package/src/components/atoms/MenuCommercialRetailers/index.js +14 -0
  222. package/src/components/atoms/MenuCommercialRetailers/styles.js +24 -0
  223. package/src/components/atoms/MenuProductImage/MenuProductImage.stories.js +14 -0
  224. package/src/components/atoms/MenuProductImage/index.js +63 -0
  225. package/src/components/atoms/MenuProductImage/styles.js +66 -0
  226. package/src/components/atoms/PriorityFlag/index.js +1 -1
  227. package/src/components/atoms/ProductImage/styles.js +1 -1
  228. package/src/components/atoms/ProgressBar/index.js +2 -2
  229. package/src/components/atoms/ProgressBar/styles.js +3 -54
  230. package/src/components/atoms/ScreenHeader/index.js +3 -7
  231. package/src/components/atoms/ScreenHeader/styles.js +2 -9
  232. package/src/components/atoms/StatusTag/index.js +2 -30
  233. package/src/components/atoms/StatusTag/styles.js +3 -15
  234. package/src/components/atoms/ValidationPanel/index.js +3 -3
  235. package/src/components/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +12 -0
  236. package/src/components/atoms/VerticalSideMenuMainPage/index.js +23 -0
  237. package/src/components/atoms/VerticalSideMenuMainPage/styles.js +24 -0
  238. package/src/components/molecules/ApproveRejetPanel/ApproveRejetPanel.stories.js +14 -0
  239. package/src/components/molecules/ApproveRejetPanel/index.js +36 -0
  240. package/src/components/molecules/ApproveRejetPanel/styles.js +13 -0
  241. package/src/components/molecules/AvatarAndValidation/index.js +6 -24
  242. package/src/components/molecules/AvatarAndValidation/styles.js +1 -1
  243. package/src/components/molecules/FeaturesBar/index.js +7 -10
  244. package/src/components/molecules/GalleryElement/index.js +36 -75
  245. package/src/components/molecules/GalleryElement/styles.js +11 -38
  246. package/src/components/molecules/GalleryHeader/index.js +8 -14
  247. package/src/components/molecules/GalleryHeader/styles.js +0 -16
  248. package/src/components/molecules/ImageSelector/index.js +3 -2
  249. package/src/components/molecules/ProductNameHeader/index.js +2 -1
  250. package/src/components/molecules/StatusAsignationInfo/index.js +38 -62
  251. package/src/components/molecules/StatusAsignationInfo/styles.js +2 -12
  252. package/src/components/molecules/TableHeader/index.js +3 -16
  253. package/src/components/molecules/TableHeader/styles.js +0 -5
  254. package/src/components/molecules/TagAndInput/index.js +0 -24
  255. package/src/components/organisms/FullProductNameHeader/index.js +7 -28
  256. package/src/components/organisms/FullTabsMenu/index.js +4 -16
  257. package/src/components/organisms/ImageDataTable/index.js +11 -89
  258. package/src/components/organisms/InputGroup/index.js +11 -46
  259. package/src/components/organisms/InputGroup/styles.js +0 -3
  260. package/src/components/organisms/ProductImageModal/index.js +12 -20
  261. package/src/components/organisms/ProductImageModal/styles.js +0 -3
  262. package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +315 -95
  263. package/src/components/pages/RetailerProductEdition/index.js +46 -1235
  264. package/src/components/pages/RetailerProductEdition/styles.js +4 -67
  265. package/src/global-files/data.js +57 -138
  266. package/src/global-files/global-styles.css +0 -1
  267. package/src/global-files/variables.js +0 -1
  268. package/dist/assets/images/generalButton/downloadIcon.svg +0 -3
  269. package/dist/assets/images/modalsSVGs/attributesSent.svg +0 -208
  270. package/dist/assets/images/modalsSVGs/descriptionSent.svg +0 -237
  271. package/dist/assets/images/modalsSVGs/providerSent.svg +0 -445
  272. package/dist/assets/images/modalsSVGs/uploadingImages.svg +0 -148
  273. package/dist/components/atoms/CharCounter/CharCounter.stories.js +0 -31
  274. package/dist/components/atoms/CharCounter/index.js +0 -22
  275. package/dist/components/atoms/Commentary/Commentary.stories.js +0 -1
  276. package/dist/components/atoms/Commentary/index.js +0 -23
  277. package/dist/components/atoms/Input/index.js +0 -26
  278. package/dist/components/atoms/Input/style.js +0 -26
  279. package/dist/components/atoms/InputFormatter/Wysiwyg.stories.js +0 -30
  280. package/dist/components/atoms/InputFormatter/index.js +0 -185
  281. package/dist/components/atoms/InputFormatter/styles.js +0 -33
  282. package/dist/components/atoms/LabelToInput/index.js +0 -53
  283. package/dist/components/atoms/LabelToInput/style.js +0 -22
  284. package/dist/components/atoms/Loading/index.js +0 -26
  285. package/dist/components/atoms/Loading/styles.js +0 -22
  286. package/dist/components/atoms/Percent/Percent.stories.js +0 -39
  287. package/dist/components/atoms/Percent/index.js +0 -39
  288. package/dist/components/atoms/Percent/styles.js +0 -20
  289. package/dist/components/atoms/Select/index.js +0 -39
  290. package/dist/components/atoms/Select/style.js +0 -32
  291. package/dist/components/molecules/RetailerSelector/RetailerSelector.stories.js +0 -48
  292. package/dist/components/molecules/RetailerSelector/index.js +0 -74
  293. package/dist/components/molecules/TextAndGradient/TextAndGradient.stories.js +0 -31
  294. package/dist/components/molecules/TextAndGradient/index.js +0 -36
  295. package/dist/components/molecules/TextAndGradient/styles.js +0 -18
  296. package/dist/global-files/fonts.css +0 -45
  297. package/dist/global-files/global-styles.css +0 -41
  298. package/src/assets/images/generalButton/downloadIcon.svg +0 -3
  299. package/src/assets/images/modalsSVGs/attributesSent.svg +0 -208
  300. package/src/assets/images/modalsSVGs/descriptionSent.svg +0 -237
  301. package/src/assets/images/modalsSVGs/providerSent.svg +0 -445
  302. package/src/assets/images/modalsSVGs/uploadingImages.svg +0 -148
  303. package/src/components/atoms/CharCounter/CharCounter.stories.js +0 -11
  304. package/src/components/atoms/CharCounter/index.js +0 -13
  305. package/src/components/atoms/CharCounter/styles.js +0 -10
  306. package/src/components/atoms/Commentary/Commentary.stories.js +0 -0
  307. package/src/components/atoms/Commentary/index.js +0 -9
  308. package/src/components/atoms/Commentary/styles.js +0 -16
  309. package/src/components/atoms/Input/index.js +0 -15
  310. package/src/components/atoms/Input/style.js +0 -31
  311. package/src/components/atoms/InputFormatter/Wysiwyg.stories.js +0 -12
  312. package/src/components/atoms/InputFormatter/index.js +0 -141
  313. package/src/components/atoms/InputFormatter/styles.js +0 -40
  314. package/src/components/atoms/LabelToInput/index.js +0 -26
  315. package/src/components/atoms/LabelToInput/style.js +0 -41
  316. package/src/components/atoms/Loading/index.js +0 -12
  317. package/src/components/atoms/Loading/styles.js +0 -57
  318. package/src/components/atoms/Select/index.js +0 -35
  319. package/src/components/atoms/Select/style.js +0 -76
  320. package/src/components/molecules/RetailerSelector/RetailerSelector.stories.js +0 -35
  321. package/src/components/molecules/RetailerSelector/index.js +0 -63
  322. package/src/components/molecules/RetailerSelector/styles.js +0 -18
@@ -4,7 +4,7 @@ export const Container = styled.div`
4
4
  width: fit-content;
5
5
 
6
6
  img {
7
- object-fit: contain;
7
+ object-fit: cover;
8
8
  }
9
9
 
10
10
  &.carousel-image {
@@ -1,8 +1,8 @@
1
1
  import { Container } from "./styles";
2
2
 
3
- export const ProgressBar = ({ percent, progressBarType }) => {
3
+ export const ProgressBar = ({ percent, backgroundColor }) => {
4
4
  return (
5
- <Container className={`status-${progressBarType}`}>
5
+ <Container backgroundColor={backgroundColor}>
6
6
  <p>{percent}%</p>
7
7
  </Container>
8
8
  );
@@ -2,7 +2,7 @@ import styled from "styled-components";
2
2
  import { FontFamily, GlobalColors } from "../../../global-files/variables";
3
3
 
4
4
  export const Container = styled.div`
5
- background-color: ${GlobalColors.s3};
5
+ background-color: ${(props) => GlobalColors[props.backgroundColor]};
6
6
  width: fit-content;
7
7
  height: 27px;
8
8
  padding: 4px;
@@ -11,59 +11,8 @@ export const Container = styled.div`
11
11
  font-weight: 600;
12
12
  font-size: 14px;
13
13
  line-height: 19px;
14
- color: ${(backgroundColor) =>
15
- backgroundColor === "s2" || backgroundColor === "s1"
14
+ color: ${(props) =>
15
+ props.backgroundColor === "s2" || props.backgroundColor === "s1"
16
16
  ? GlobalColors.s4
17
17
  : GlobalColors.white};
18
-
19
- &.status-As,
20
- &.status-P {
21
- background-color: ${GlobalColors.in_progress};
22
- }
23
-
24
- &.status-Pr,
25
- &.status-Rr {
26
- background-color: ${GlobalColors.reception};
27
- }
28
-
29
- &.status-AA,
30
- &.status-AP,
31
- &.status-AC,
32
- &.status-AF {
33
- background-color: ${GlobalColors.finished};
34
- }
35
-
36
- &.status-RA,
37
- &.status-RF,
38
- &.status-RP,
39
- &.status-RC {
40
- background-color: ${GlobalColors.rejected_status};
41
- }
42
-
43
- &.status-Dat,
44
- &.status-Dsc,
45
- &.status-Imgs {
46
- background-color: ${GlobalColors.s4};
47
- }
48
-
49
- &.status-Ex {
50
- background-color: ${GlobalColors.exported};
51
- }
52
-
53
- &.status-DDI {
54
- background-color: ${GlobalColors.original_purpura};
55
- }
56
-
57
- &.status-GLD {
58
- background-color: ${GlobalColors.in_progress};
59
- }
60
-
61
- &.status-TAB {
62
- background-color: ${GlobalColors.deep_gray};
63
- }
64
-
65
- &.status-Pt {
66
- background-color: ${GlobalColors.s2};
67
- color: ${GlobalColors.s4};
68
- }
69
18
  `;
@@ -8,16 +8,12 @@ export const ScreenHeader = ({
8
8
  color,
9
9
  headerType,
10
10
  Paragraph,
11
+
11
12
  }) => {
12
13
  return (
13
- <Container
14
- fontFamily={fontFamily}
15
- color={color}
16
- className={headerType}
17
- key={`title-${text}`}
18
- >
14
+ <Container fontFamily={fontFamily} color={color} className={headerType} key={`title-${text}`}>
19
15
  {text} {boldText && <span> {boldText}</span>}
20
- {Paragraph && <p>{Paragraph}</p>}
16
+ {<p>{Paragraph}</p>}
21
17
  </Container>
22
18
  );
23
19
  };
@@ -52,11 +52,6 @@ export const Container = styled.h2`
52
52
  font-weight: 400;
53
53
  font-size: 11px;
54
54
  line-height: 18px;
55
-
56
- &:last-child {
57
- min-width: 50px;
58
- text-align: center;
59
- }
60
55
  }
61
56
 
62
57
  &.gray-table-row {
@@ -68,14 +63,12 @@ export const Container = styled.h2`
68
63
  background-color: ${GlobalColors.s2};
69
64
  padding: 1px 3px;
70
65
  border-radius: 3px;
71
- min-width: 50px;
72
- text-align: center;
73
66
  }
74
- &.header-and-paragraph {
67
+ &.header-and-paragraph{
75
68
  font-family: ${FontFamily.Raleway};
76
69
  font-size: 36px;
77
70
  color: ${GlobalColors.s5};
78
- p {
71
+ p{
79
72
  font-family: ${FontFamily.AvenirNext};
80
73
  font-size: 14px;
81
74
  color: ${GlobalColors.s4};
@@ -1,37 +1,9 @@
1
1
  import { Container } from "./styles";
2
2
 
3
3
  export const StatusTag = ({ statusType, ovalForm }) => {
4
- const getShortStatus = (status) => {
5
- switch (status) {
6
- case "COMPLETED":
7
- return "C";
8
- case "RECEPTION":
9
- return "Pr";
10
- case "NULL":
11
- return "-";
12
- case "RECEIVED":
13
- return "Rc";
14
- case "IN_PROGRESS":
15
- return "P";
16
- case "ASSIGNED":
17
- return "As";
18
- case "APPROVED":
19
- return "Ap";
20
- case "VALIDATING":
21
- return "V";
22
- case "PAID_OUT":
23
- return "Po";
24
- default:
25
- return status;
26
- }
27
- };
28
4
  return (
29
- <Container
30
- className={`status-${getShortStatus(statusType)} ${
31
- ovalForm && "oval-form"
32
- }`}
33
- >
34
- <p>{getShortStatus(statusType)}</p>
5
+ <Container className={`status-${statusType} ${ovalForm && "oval-form"}`}>
6
+ <p>{statusType}</p>
35
7
  </Container>
36
8
  );
37
9
  };
@@ -2,8 +2,7 @@ import styled from "styled-components";
2
2
  import { FontFamily, GlobalColors } from "../../../global-files/variables";
3
3
 
4
4
  export const Container = styled.div`
5
- width: fit-content;
6
- padding: 0 10px;
5
+ width: 30px;
7
6
  height: 20px;
8
7
  background-color: ${GlobalColors.s3};
9
8
  border-radius: 3px;
@@ -17,9 +16,7 @@ export const Container = styled.div`
17
16
  }
18
17
 
19
18
  &.status-As,
20
- &.status-P,
21
- &.status-IN_PROGRESS,
22
- &.status-QF {
19
+ &.status-P {
23
20
  background-color: ${GlobalColors.in_progress};
24
21
  }
25
22
 
@@ -29,19 +26,10 @@ export const Container = styled.div`
29
26
  }
30
27
 
31
28
  &.status-AA,
32
- &.status-AP,
33
- &.status-AC,
34
- &.status-AF {
29
+ &.status-AP {
35
30
  background-color: ${GlobalColors.finished};
36
31
  }
37
32
 
38
- &.status-RA,
39
- &.status-RF,
40
- &.status-RP,
41
- &.status-RC {
42
- background-color: ${GlobalColors.rejected_status};
43
- }
44
-
45
33
  &.status-Dat,
46
34
  &.status-Dsc,
47
35
  &.status-Imgs {
@@ -7,8 +7,8 @@ export const ValidationPanel = ({
7
7
  id,
8
8
  setOptionClicked,
9
9
  setShowValidationPanel,
10
- sendToFacilitator,
11
10
  }) => {
11
+
12
12
  const optionSelected = (option) => {
13
13
  setOptionClicked(`${option}-button`);
14
14
  setShowValidationPanel(false);
@@ -18,7 +18,7 @@ export const ValidationPanel = ({
18
18
  <Container id={id}>
19
19
  <button
20
20
  onClick={() => {
21
- sendToFacilitator("A");
21
+ optionSelected("accept");
22
22
  }}
23
23
  className="validation-option"
24
24
  >
@@ -27,7 +27,7 @@ export const ValidationPanel = ({
27
27
  </button>
28
28
  <button
29
29
  onClick={() => {
30
- sendToFacilitator("R");
30
+ optionSelected("reject");
31
31
  }}
32
32
  className="validation-option"
33
33
  >
@@ -0,0 +1,12 @@
1
+ import { VerticalSideMenuMainPage } from "./index";
2
+
3
+ export default {
4
+ title: "Components/atoms/VerticalSideMenuMainPage",
5
+ component: VerticalSideMenuMainPage,
6
+ };
7
+
8
+ const Template = (args) => <VerticalSideMenuMainPage {...args} />;
9
+
10
+ export const VerticalSideMenuMainPageDefault = Template.bind({});
11
+
12
+ VerticalSideMenuMainPageDefault.args = {};
@@ -0,0 +1,23 @@
1
+ import { Container } from "./styles";
2
+ import verticalSideMenuMainPageFaqs from "../../../assets/images/verticalSideMenuMainPage/verticalSideMenuMainPageFAQS.svg";
3
+ import verticalSideMenuMainPageFocusProduct from "../../../assets/images/verticalSideMenuMainPage/verticalSideMenuMainPageFocusProduct.svg";
4
+ import verticalSideMenuMainPageGroup from "../../../assets/images/verticalSideMenuMainPage/verticalSideMenuMainPageGroup.svg";
5
+ import verticalSideMenuMainPageLogo from "../../../assets/images/verticalSideMenuMainPage/verticalSideMenuMainPageLogo.svg";
6
+ import verticalSideMenuMainPageSpeedometer from "../../../assets/images/verticalSideMenuMainPage/verticalSideMenuMainPageSpeedometer.svg";
7
+ import verticalSideMenuMainPageTask from "../../../assets/images/verticalSideMenuMainPage/verticalSideMenuMainPageTask.svg";
8
+
9
+ export const VerticalSideMenuMainPage = () => {
10
+ return (
11
+ <Container>
12
+ <img src={verticalSideMenuMainPageLogo} alt="Logo"></img>
13
+ <div>
14
+ <img src={verticalSideMenuMainPageSpeedometer} alt="Speed Meter"></img>
15
+ <img src={verticalSideMenuMainPageFocusProduct} alt="Focus Product"></img>
16
+ <img src={verticalSideMenuMainPageGroup} alt="Group"></img>
17
+ <img src={verticalSideMenuMainPageLogo} alt="Logo"></img>
18
+ <img src={verticalSideMenuMainPageTask} alt="Task"></img>
19
+ </div>
20
+ <img src={verticalSideMenuMainPageFaqs} alt="FAQS"></img>
21
+ </Container>
22
+ );
23
+ };
@@ -0,0 +1,24 @@
1
+ import styled from "styled-components";
2
+
3
+ export const Container = styled.div`
4
+ width: 60px;
5
+ height: 700px;
6
+ background: linear-gradient(180deg, #e33aa9 0%, #3b1366 100%);
7
+ border-radius: 50px;
8
+ padding: 30px 10px 20px 10px;
9
+ text-align: center;
10
+ img {
11
+ cursor: pointer;
12
+ }
13
+ img + div {
14
+ margin-top: 100px;
15
+ }
16
+ div {
17
+ img + * {
18
+ margin-top: 20px;
19
+ }
20
+ & + * {
21
+ margin-top: 250px;
22
+ }
23
+ }
24
+ `;
@@ -0,0 +1,14 @@
1
+ import { ApproveRejetPanel } from "./index";
2
+
3
+ export default {
4
+ title: "Components/molecules/ApproveRejetPanel",
5
+ component: ApproveRejetPanel,
6
+ };
7
+
8
+ const Template = (args) => <ApproveRejetPanel {...args} />;
9
+
10
+ export const ApproveRejetPanelDefault = Template.bind({});
11
+ ApproveRejetPanelDefault.args = {
12
+ text:"113 productos",
13
+ check:false,
14
+ }
@@ -0,0 +1,36 @@
1
+ import { ScreenHeader } from "../../atoms/ScreenHeader";
2
+ import { Avatar } from "../../atoms/Avatar";
3
+ import { Container } from "./styles";
4
+ import approveRejetPanelDelete from "../../../assets/images/approveRejetPanel/approveRejetPanelDelete.svg";
5
+ import approveRejetPanelCancel from "../../../assets/images/approveRejetPanel/approveRejetPanelCancel.svg";
6
+ import approveRejetPanelSave from "../../../assets/images/approveRejetPanel/approveRejetPanelSave.svg";
7
+ import approveRejetPanelExclude from "../../../assets/images/approveRejetPanel/approveRejetPanelExclude.svg";
8
+ import { FontFamily, GlobalColors } from "../../../global-files/variables";
9
+
10
+ export const ApproveRejetPanel = ({ text, check }) => {
11
+ return (
12
+ <Container>
13
+ <ScreenHeader
14
+ fontFamily={FontFamily.AvenirNext}
15
+ headerType={"date-header"}
16
+ color={GlobalColors.s4}
17
+ text={text}
18
+ ></ScreenHeader>
19
+ <Avatar
20
+ image={approveRejetPanelDelete}
21
+ imageType={"big-image"}
22
+ altText={"delete button"}
23
+ ></Avatar>
24
+ <Avatar
25
+ image={check?approveRejetPanelCancel:approveRejetPanelExclude}
26
+ imageType={"big-image"}
27
+ altText={check?"cancel button":"exclude button"}
28
+ ></Avatar>
29
+ <Avatar
30
+ image={check?approveRejetPanelSave:approveRejetPanelExclude}
31
+ imageType={"big-image"}
32
+ altText={check?"save button":"exclude button"}
33
+ ></Avatar>
34
+ </Container>
35
+ );
36
+ };
@@ -0,0 +1,13 @@
1
+ import styled from "styled-components";
2
+
3
+ export const Container = styled.div`
4
+ display: flex;
5
+ justify-content: end;
6
+ align-items: center;
7
+ .date-header + * {
8
+ margin-left: 30px;
9
+ }
10
+ .big-image + * {
11
+ margin-left: 10px;
12
+ }
13
+ `;
@@ -7,18 +7,8 @@ import { DropDownButton } from "../../atoms/DropDownButton";
7
7
  import { Button } from "../../atoms/GeneralButton";
8
8
  import { ValidationPanel } from "../../atoms/ValidationPanel";
9
9
  import { useEffect } from "react";
10
- import { RetailerSelector } from "../RetailerSelector";
11
10
 
12
- export const AvatarAndValidation = ({
13
- retailers,
14
- validation,
15
- activeRetailer,
16
- setActiveRetailer,
17
- approveRejectButtons,
18
- sendToFacilitator,
19
- auditorAssigned,
20
- userAssigned,
21
- }) => {
11
+ export const AvatarAndValidation = ({ avatarData, validation }) => {
22
12
  const [showValidationPanel, setShowValidationPanel] = useState(false);
23
13
  const [buttonType, setButtonType] = useState(
24
14
  validation ? validation : "null-button"
@@ -43,26 +33,18 @@ export const AvatarAndValidation = ({
43
33
  return (
44
34
  <Container>
45
35
  <div className="buttons-container">
46
- <RetailerSelector
47
- retailers={retailers}
48
- activeRetailer={activeRetailer}
49
- setActiveRetailer={setActiveRetailer}
50
- />
36
+ <Avatar image={avatarData?.image} altText={avatarData?.altText} />
51
37
  <DropDownButton />
52
- {approveRejectButtons() &&
53
- (auditorAssigned() || (userAssigned && userAssigned())) && (
54
- <Button
55
- buttonType={`circular-button ${buttonType}`}
56
- onClick={() => setShowValidationPanel(true)}
57
- />
58
- )}
38
+ <Button
39
+ buttonType={`circular-button ${buttonType}`}
40
+ onClick={() => setShowValidationPanel(true)}
41
+ />
59
42
  </div>
60
43
  {showValidationPanel && (
61
44
  <ValidationPanel
62
45
  id="validation-panel"
63
46
  setOptionClicked={setButtonType}
64
47
  setShowValidationPanel={setShowValidationPanel}
65
- sendToFacilitator={sendToFacilitator}
66
48
  />
67
49
  )}
68
50
  </Container>
@@ -8,7 +8,7 @@ export const Container = styled.div`
8
8
  display: flex;
9
9
  align-items: center;
10
10
 
11
- > * + * {
11
+ * + * {
12
12
  margin-left: 3px;
13
13
  }
14
14
  }
@@ -15,16 +15,13 @@ export const FeaturesBar = ({ features }) => {
15
15
  return (
16
16
  <Container className={isIE ? "IEClass" : "gapClass"}>
17
17
  {features !== undefined &&
18
- features.map(
19
- (feature, index) =>
20
- feature.value && (
21
- <FeatureTag
22
- key={index}
23
- feature={feature.feature}
24
- value={feature.value}
25
- />
26
- )
27
- )}
18
+ features.map((feature, index) => (
19
+ <FeatureTag
20
+ key={index}
21
+ feature={feature.feature}
22
+ value={feature.value}
23
+ />
24
+ ))}
28
25
  </Container>
29
26
  );
30
27
  };
@@ -4,7 +4,6 @@ import { CheckBox } from "../../atoms/CheckBox";
4
4
  import { Button } from "../../atoms/GeneralButton";
5
5
  import { ValidationPanel } from "../../atoms/ValidationPanel";
6
6
  import { useState, useEffect } from "react";
7
- import Select from "../../atoms/Select";
8
7
 
9
8
  export const GalleryElement = ({
10
9
  validation = "null-button",
@@ -12,14 +11,6 @@ export const GalleryElement = ({
12
11
  gridLayout = false,
13
12
  id = "chk-default",
14
13
  label,
15
- index,
16
- imageInputs,
17
- imageType,
18
- imagePackagingType,
19
- changeImage,
20
- selectedImages,
21
- setSelectedImages,
22
- setCheckAll,
23
14
  }) => {
24
15
  const [statusValidation, setStatusValidation] = useState(validation);
25
16
  const [showValidationPanel, setShowValidationPanel] = useState(false);
@@ -34,20 +25,6 @@ export const GalleryElement = ({
34
25
  }
35
26
  };
36
27
 
37
- const checkOnChange = (e) => {
38
- const chkGlobal = document.getElementById("check-all-images");
39
- const checkboxList = document.querySelectorAll("[id^='gallery-element-']");
40
- let temp = selectedImages.slice();
41
- e.target.checked
42
- ? temp.push(image)
43
- : (temp = temp.filter((img) => image.id !== img.id));
44
- let counter = 0;
45
- checkboxList?.forEach((chk) => chk.checked && counter++);
46
- chkGlobal.checked = checkboxList.length === counter;
47
- setCheckAll(checkboxList.length === counter);
48
- setSelectedImages(temp);
49
- };
50
-
51
28
  useEffect(() => {
52
29
  if (showValidationPanel) {
53
30
  document.addEventListener("click", closeValidationPanel, false);
@@ -57,66 +34,50 @@ export const GalleryElement = ({
57
34
  return (
58
35
  <Container className={gridLayout ? "grid-gallery" : "row-gallery"}>
59
36
  <div className="buttons-container">
60
- <CheckBox id={id} label={label} onChange={(e) => checkOnChange(e)} />
37
+ <CheckBox id={id} label={id} label={label} />
38
+ <Button
39
+ buttonType={`circular-button ${statusValidation}`}
40
+ onClick={() => setShowValidationPanel(true)}
41
+ />
42
+ {showValidationPanel && (
43
+ <ValidationPanel
44
+ id={"validation-panel"}
45
+ setOptionClicked={setStatusValidation}
46
+ setShowValidationPanel={setShowValidationPanel}
47
+ />
48
+ )}
61
49
  </div>
62
50
  <div className="image-container">
63
51
  <ProductImage
64
52
  img={image?.src}
65
53
  altText={image?.altText}
66
- imageType={`catalogue-image-${gridLayout ? "big" : "small"}-size`}
54
+ imageType={
55
+ gridLayout
56
+ ? "catalogue-image-big-size"
57
+ : "catalogue-image-small-size"
58
+ }
67
59
  />
68
60
  <div className="information-container">
61
+ {/* name */}
69
62
  <p>{image?.name}</p>
70
- {!gridLayout && (
71
- <>
72
- <p>
73
- {image.width}x{image.height}
74
- </p>
75
- <p>{image.ext}</p>
76
- <Select
77
- width="100%"
78
- placeholder="Tipo de toma"
79
- options={imageInputs}
80
- valueSelected={image.image_id}
81
- onChange={(e) => {
82
- changeImage({
83
- action: "changeImageInfo",
84
- attribute: "image_id",
85
- value: +e.target.value,
86
- index: index,
87
- });
88
- }}
89
- />
90
- <Select
91
- width="100%"
92
- placeholder="Tipo de imagen"
93
- options={imageType}
94
- valueSelected={image.image_type}
95
- onChange={(e) => {
96
- changeImage({
97
- action: "changeImageInfo",
98
- attribute: "image_type",
99
- value: +e.target.value,
100
- index: index,
101
- });
102
- }}
103
- />
104
- <Select
105
- width="100%"
106
- placeholder="Tipo de empaque"
107
- options={imagePackagingType}
108
- valueSelected={image.packing_type}
109
- onChange={(e) => {
110
- changeImage({
111
- action: "changeImageInfo",
112
- attribute: "packing_type",
113
- value: +e.target.value,
114
- index: index,
115
- });
116
- }}
117
- />
118
- </>
119
- )}
63
+ {/* <p>{image?.data[0]?.value}</p> */}
64
+ {/* size */}
65
+ {!gridLayout &&
66
+ image?.data.map(
67
+ (element, index) =>
68
+ index > 0 && <p key={index}>{element.value}</p>
69
+ )}
70
+ {/* <p>{image?.size}</p>
71
+
72
+ {!gridLayout && (
73
+ <>
74
+ <p>{image?.format}</p>
75
+ <p>{image?.resolution}</p>
76
+ <p className="highlighted-data">{image?.imageType}</p>
77
+ <p className="highlighted-image">{data?.identificator}</p>
78
+ </>
79
+ )}{" "}
80
+ */}
120
81
  </div>
121
82
  </div>
122
83
  </Container>