contentoh-components-library 21.0.31 → 21.0.34

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 (213) hide show
  1. package/.env.development +5 -16
  2. package/.env.production +3 -14
  3. package/CHANGELOG.md +33 -31
  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/AsignationOption/index.js +5 -9
  8. package/dist/components/atoms/AsignationOption/styles.js +1 -1
  9. package/dist/components/atoms/CheckBox/index.js +2 -4
  10. package/dist/components/atoms/GeneralButton/index.js +0 -5
  11. package/dist/components/atoms/GeneralButton/styles.js +2 -4
  12. package/dist/components/atoms/GeneralInput/index.js +24 -73
  13. package/dist/components/atoms/GeneralInput/styles.js +1 -7
  14. package/dist/components/atoms/GenericModal/index.js +2 -4
  15. package/dist/components/atoms/GenericModal/styles.js +1 -1
  16. package/dist/components/atoms/ListCommercialRetailers/ListCommercialRetailers.stories.js +36 -0
  17. package/dist/components/atoms/ListCommercialRetailers/index.js +64 -0
  18. package/dist/components/atoms/ListCommercialRetailers/styles.js +20 -0
  19. package/dist/components/atoms/Loading/Loading.stories.js +28 -0
  20. package/dist/components/atoms/Loading/index.js +2 -1
  21. package/dist/components/atoms/Loading/styles.js +4 -8
  22. package/dist/components/atoms/MenuCommercialRetailers/MenuCommercialRetailers.stories.js +37 -0
  23. package/dist/components/atoms/MenuCommercialRetailers/index.js +25 -0
  24. package/dist/components/{molecules/RetailerSelector → atoms/MenuCommercialRetailers}/styles.js +1 -1
  25. package/dist/components/atoms/MenuProductImage/MenuProductImage.stories.js +28 -0
  26. package/dist/components/atoms/MenuProductImage/index.js +88 -0
  27. package/dist/components/atoms/MenuProductImage/styles.js +20 -0
  28. package/dist/components/atoms/PriorityFlag/index.js +1 -1
  29. package/dist/components/atoms/ProductImage/styles.js +1 -1
  30. package/dist/components/atoms/ProgressBar/index.js +2 -2
  31. package/dist/components/atoms/ProgressBar/styles.js +5 -3
  32. package/dist/components/atoms/ScreenHeader/index.js +1 -1
  33. package/dist/components/atoms/ScreenHeader/styles.js +1 -1
  34. package/dist/components/atoms/StatusTag/index.js +2 -37
  35. package/dist/components/atoms/StatusTag/styles.js +1 -1
  36. package/dist/components/atoms/ValidationPanel/index.js +3 -4
  37. package/dist/components/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +22 -0
  38. package/dist/components/atoms/VerticalSideMenuMainPage/index.js +49 -0
  39. package/dist/components/atoms/{Commentary → VerticalSideMenuMainPage}/styles.js +1 -6
  40. package/dist/components/molecules/ApproveRejetPanel/ApproveRejetPanel.stories.js +25 -0
  41. package/dist/components/molecules/ApproveRejetPanel/index.js +49 -0
  42. package/dist/components/{atoms/CharCounter → molecules/ApproveRejetPanel}/styles.js +1 -3
  43. package/dist/components/molecules/AvatarAndValidation/index.js +7 -17
  44. package/dist/components/molecules/AvatarAndValidation/styles.js +1 -1
  45. package/dist/components/molecules/CarouselImagesLogin/index.js +40 -42
  46. package/dist/components/molecules/EmailResetPasswordLogin/EmailResetPasswordLogin.stories.js +28 -0
  47. package/dist/components/molecules/EmailResetPasswordLogin/index.js +155 -0
  48. package/dist/components/molecules/EmailResetPasswordLogin/styles.js +20 -0
  49. package/dist/components/molecules/FeaturesBar/index.js +1 -1
  50. package/dist/components/molecules/GalleryElement/index.js +21 -80
  51. package/dist/components/molecules/GalleryElement/styles.js +1 -1
  52. package/dist/components/molecules/GalleryHeader/index.js +6 -28
  53. package/dist/components/molecules/GalleryHeader/styles.js +1 -1
  54. package/dist/components/molecules/ImageSelector/index.js +4 -2
  55. package/dist/components/molecules/ProductNameHeader/index.js +2 -1
  56. package/dist/components/molecules/RegistrationFirstStep/RegistrationFirstStep.stories.js +28 -0
  57. package/dist/components/molecules/RegistrationFirstStep/index.js +336 -0
  58. package/dist/components/molecules/RegistrationFirstStep/styles.js +20 -0
  59. package/dist/components/molecules/RegistrationSecondStep/RegistrationSecondStep.stories.js +28 -0
  60. package/dist/components/molecules/RegistrationSecondStep/index.js +156 -0
  61. package/dist/components/molecules/RegistrationSecondStep/styles.js +20 -0
  62. package/dist/components/molecules/RegistrationThirdStep/RegistrationThirdStep.stories.js +28 -0
  63. package/dist/components/molecules/RegistrationThirdStep/index.js +161 -0
  64. package/dist/components/molecules/RegistrationThirdStep/styles.js +20 -0
  65. package/dist/components/{atoms/CharCounter/CharCounter.stories.js → molecules/SignInLogin/SignInLogin.stories.js} +7 -10
  66. package/dist/components/molecules/SignInLogin/index.js +292 -0
  67. package/dist/components/molecules/SignInLogin/styles.js +20 -0
  68. package/dist/components/molecules/StatusAsignationInfo/index.js +25 -46
  69. package/dist/components/molecules/StatusAsignationInfo/styles.js +1 -1
  70. package/dist/components/molecules/TableHeader/index.js +5 -12
  71. package/dist/components/molecules/TableHeader/styles.js +1 -1
  72. package/dist/components/molecules/TagAndInput/index.js +2 -26
  73. package/dist/components/molecules/VerificationCodeResetPasswordLogin/VerificationCodeResetPasswordLogin.stories.js +28 -0
  74. package/dist/components/molecules/VerificationCodeResetPasswordLogin/index.js +104 -0
  75. package/dist/components/molecules/VerificationCodeResetPasswordLogin/styles.js +20 -0
  76. package/dist/components/molecules/VerificationCodeResetPasswordLogin/utils.js +69 -0
  77. package/dist/components/{atoms/InputFormatter/Wysiwyg.stories.js → organisms/ChangePassword/ChangePassword.stories.js} +7 -9
  78. package/dist/components/organisms/ChangePassword/index.js +113 -0
  79. package/dist/components/organisms/ChangePassword/styles.js +18 -0
  80. package/dist/components/organisms/FullProductNameHeader/index.js +8 -32
  81. package/dist/components/organisms/FullTabsMenu/index.js +5 -18
  82. package/dist/components/organisms/ImageDataTable/index.js +14 -90
  83. package/dist/components/organisms/InputGroup/index.js +13 -34
  84. package/dist/components/organisms/InputGroup/styles.js +1 -1
  85. package/dist/components/organisms/ProductImageModal/index.js +11 -15
  86. package/dist/components/organisms/ProductImageModal/styles.js +1 -1
  87. package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +347 -109
  88. package/dist/components/pages/RetailerProductEdition/index.js +59 -1589
  89. package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
  90. package/dist/global-files/data.js +53 -212
  91. package/dist/global-files/global-styles.css +0 -1
  92. package/dist/global-files/variables.js +0 -1
  93. package/dist/index.js +260 -31
  94. package/package.json +14 -12
  95. package/src/components/atoms/AsignationOption/index.js +5 -7
  96. package/src/components/atoms/AsignationOption/styles.js +1 -9
  97. package/src/components/atoms/CheckBox/index.js +2 -8
  98. package/src/components/atoms/GeneralButton/index.js +2 -9
  99. package/src/components/atoms/GeneralButton/styles.js +0 -23
  100. package/src/components/atoms/GeneralInput/index.js +21 -71
  101. package/src/components/atoms/GeneralInput/styles.js +1 -11
  102. package/src/components/atoms/GenericModal/index.js +2 -2
  103. package/src/components/atoms/GenericModal/styles.js +2 -10
  104. package/src/components/atoms/Loading/Loading.stories.js +10 -0
  105. package/src/components/atoms/Loading/index.js +5 -4
  106. package/src/components/atoms/Loading/styles.js +43 -43
  107. package/src/components/atoms/PriorityFlag/index.js +1 -1
  108. package/src/components/atoms/ProductImage/styles.js +1 -1
  109. package/src/components/atoms/ProgressBar/index.js +2 -2
  110. package/src/components/atoms/ProgressBar/styles.js +3 -54
  111. package/src/components/atoms/ScreenHeader/index.js +3 -7
  112. package/src/components/atoms/ScreenHeader/styles.js +2 -9
  113. package/src/components/atoms/StatusTag/index.js +2 -30
  114. package/src/components/atoms/StatusTag/styles.js +3 -15
  115. package/src/components/atoms/ValidationPanel/index.js +3 -3
  116. package/src/components/molecules/AvatarAndValidation/index.js +6 -24
  117. package/src/components/molecules/AvatarAndValidation/styles.js +1 -1
  118. package/src/components/molecules/CarouselImagesLogin/index.js +34 -37
  119. package/src/components/molecules/EmailResetPasswordLogin/EmailResetPasswordLogin.stories.js +11 -0
  120. package/src/components/molecules/EmailResetPasswordLogin/index.js +86 -0
  121. package/src/components/molecules/EmailResetPasswordLogin/styles.js +23 -0
  122. package/src/components/molecules/FeaturesBar/index.js +7 -10
  123. package/src/components/molecules/GalleryElement/index.js +36 -75
  124. package/src/components/molecules/GalleryElement/styles.js +11 -38
  125. package/src/components/molecules/GalleryHeader/index.js +8 -14
  126. package/src/components/molecules/GalleryHeader/styles.js +0 -16
  127. package/src/components/molecules/ImageSelector/index.js +3 -2
  128. package/src/components/molecules/ProductNameHeader/index.js +2 -1
  129. package/src/components/molecules/RegistrationFirstStep/RegistrationFirstStep.stories.js +11 -0
  130. package/src/components/molecules/RegistrationFirstStep/index.js +242 -0
  131. package/src/components/molecules/RegistrationFirstStep/styles.js +81 -0
  132. package/src/components/molecules/RegistrationSecondStep/RegistrationSecondStep.stories.js +11 -0
  133. package/src/components/molecules/RegistrationSecondStep/index.js +97 -0
  134. package/src/components/molecules/RegistrationSecondStep/styles.js +59 -0
  135. package/src/components/molecules/RegistrationThirdStep/RegistrationThirdStep.stories.js +11 -0
  136. package/src/components/molecules/RegistrationThirdStep/index.js +109 -0
  137. package/src/components/molecules/RegistrationThirdStep/styles.js +44 -0
  138. package/src/components/molecules/SignInLogin/SignInLogin.stories.js +11 -0
  139. package/src/components/molecules/SignInLogin/index.js +206 -0
  140. package/src/components/molecules/SignInLogin/styles.js +78 -0
  141. package/src/components/molecules/StatusAsignationInfo/index.js +38 -62
  142. package/src/components/molecules/StatusAsignationInfo/styles.js +2 -12
  143. package/src/components/molecules/TableHeader/index.js +3 -16
  144. package/src/components/molecules/TableHeader/styles.js +0 -5
  145. package/src/components/molecules/TagAndInput/index.js +0 -24
  146. package/src/components/molecules/VerificationCodeResetPasswordLogin/VerificationCodeResetPasswordLogin.stories.js +11 -0
  147. package/src/components/molecules/VerificationCodeResetPasswordLogin/index.js +78 -0
  148. package/src/components/molecules/VerificationCodeResetPasswordLogin/styles.js +49 -0
  149. package/src/components/molecules/VerificationCodeResetPasswordLogin/utils.js +56 -0
  150. package/src/components/organisms/ChangePassword/ChangePassword.stories.js +11 -0
  151. package/src/components/organisms/ChangePassword/index.js +63 -0
  152. package/src/components/organisms/ChangePassword/styles.js +16 -0
  153. package/src/components/organisms/FullProductNameHeader/index.js +7 -28
  154. package/src/components/organisms/FullTabsMenu/index.js +3 -15
  155. package/src/components/organisms/ImageDataTable/index.js +11 -89
  156. package/src/components/organisms/InputGroup/index.js +11 -46
  157. package/src/components/organisms/InputGroup/styles.js +0 -3
  158. package/src/components/organisms/ProductImageModal/index.js +12 -20
  159. package/src/components/organisms/ProductImageModal/styles.js +0 -3
  160. package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +343 -117
  161. package/src/components/pages/RetailerProductEdition/index.js +46 -1225
  162. package/src/components/pages/RetailerProductEdition/styles.js +4 -67
  163. package/src/global-files/data.js +57 -156
  164. package/src/global-files/global-styles.css +0 -1
  165. package/src/global-files/variables.js +0 -1
  166. package/src/index.js +33 -1
  167. package/dist/assets/images/generalButton/downloadIcon.svg +0 -3
  168. package/dist/assets/images/modalsSVGs/attributesSent.svg +0 -208
  169. package/dist/assets/images/modalsSVGs/descriptionSent.svg +0 -237
  170. package/dist/assets/images/modalsSVGs/providerSent.svg +0 -445
  171. package/dist/assets/images/modalsSVGs/uploadingImages.svg +0 -148
  172. package/dist/components/atoms/CharCounter/index.js +0 -22
  173. package/dist/components/atoms/Commentary/Commentary.stories.js +0 -1
  174. package/dist/components/atoms/Commentary/index.js +0 -23
  175. package/dist/components/atoms/Input/index.js +0 -26
  176. package/dist/components/atoms/Input/style.js +0 -26
  177. package/dist/components/atoms/InputFormatter/index.js +0 -185
  178. package/dist/components/atoms/InputFormatter/styles.js +0 -33
  179. package/dist/components/atoms/LabelToInput/index.js +0 -53
  180. package/dist/components/atoms/LabelToInput/style.js +0 -22
  181. package/dist/components/atoms/Percent/Percent.stories.js +0 -39
  182. package/dist/components/atoms/Percent/index.js +0 -39
  183. package/dist/components/atoms/Percent/styles.js +0 -20
  184. package/dist/components/atoms/Select/index.js +0 -39
  185. package/dist/components/atoms/Select/style.js +0 -32
  186. package/dist/components/molecules/RetailerSelector/RetailerSelector.stories.js +0 -48
  187. package/dist/components/molecules/RetailerSelector/index.js +0 -74
  188. package/dist/components/molecules/TextAndGradient/TextAndGradient.stories.js +0 -31
  189. package/dist/components/molecules/TextAndGradient/index.js +0 -36
  190. package/dist/components/molecules/TextAndGradient/styles.js +0 -18
  191. package/src/assets/images/generalButton/downloadIcon.svg +0 -3
  192. package/src/assets/images/modalsSVGs/attributesSent.svg +0 -208
  193. package/src/assets/images/modalsSVGs/descriptionSent.svg +0 -237
  194. package/src/assets/images/modalsSVGs/providerSent.svg +0 -445
  195. package/src/assets/images/modalsSVGs/uploadingImages.svg +0 -148
  196. package/src/components/atoms/CharCounter/CharCounter.stories.js +0 -11
  197. package/src/components/atoms/CharCounter/index.js +0 -13
  198. package/src/components/atoms/CharCounter/styles.js +0 -10
  199. package/src/components/atoms/Commentary/Commentary.stories.js +0 -0
  200. package/src/components/atoms/Commentary/index.js +0 -9
  201. package/src/components/atoms/Commentary/styles.js +0 -16
  202. package/src/components/atoms/Input/index.js +0 -15
  203. package/src/components/atoms/Input/style.js +0 -31
  204. package/src/components/atoms/InputFormatter/Wysiwyg.stories.js +0 -12
  205. package/src/components/atoms/InputFormatter/index.js +0 -141
  206. package/src/components/atoms/InputFormatter/styles.js +0 -40
  207. package/src/components/atoms/LabelToInput/index.js +0 -26
  208. package/src/components/atoms/LabelToInput/style.js +0 -41
  209. package/src/components/atoms/Select/index.js +0 -35
  210. package/src/components/atoms/Select/style.js +0 -76
  211. package/src/components/molecules/RetailerSelector/RetailerSelector.stories.js +0 -35
  212. package/src/components/molecules/RetailerSelector/index.js +0 -63
  213. package/src/components/molecules/RetailerSelector/styles.js +0 -18
@@ -15,6 +15,6 @@ var _variables = require("../../../global-files/variables");
15
15
 
16
16
  var _templateObject;
17
17
 
18
- var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n border: 1px solid ", ";\n border-radius: 6px;\n padding: 10px;\n width: 100%;\n\n .retailer-name-header {\n & + * {\n margin-top: 10px;\n }\n }\n &.datasheets-layout {\n padding-right: 0;\n\n .inputs-container {\n display: flex;\n flex-wrap: wrap;\n\n .input-container {\n flex: 1 1 20%;\n margin-right: 10px;\n min-width: 227px;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n }\n }\n }\n\n & + * {\n margin-top: 15px;\n }\n"])), _variables.GlobalColors.s2);
18
+ var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n border: 1px solid ", ";\n border-radius: 6px;\n padding: 10px;\n width: 100%;\n\n .retailer-name-header {\n & + * {\n margin-top: 10px;\n }\n }\n &.datasheets-layout {\n padding-right: 0;\n\n .inputs-container {\n display: flex;\n flex-wrap: wrap;\n\n .input-container {\n flex: 1 1 20%;\n margin-right: 10px;\n min-width: 227px;\n }\n }\n }\n\n & + * {\n margin-top: 15px;\n }\n"])), _variables.GlobalColors.s2);
19
19
 
20
20
  exports.Container = Container;
@@ -23,20 +23,18 @@ var _ValidationPanel = require("../../atoms/ValidationPanel");
23
23
 
24
24
  var _GeneralButton = require("../../atoms/GeneralButton");
25
25
 
26
+ var _data = require("../../../global-files/data");
27
+
26
28
  var _jsxRuntime = require("react/jsx-runtime");
27
29
 
28
30
  var ProductImageModal = function ProductImageModal(_ref) {
29
- var _images$values$active, _images$values$active2, _images$values$active3;
30
-
31
31
  var _ref$images = _ref.images,
32
32
  images = _ref$images === void 0 ? [] : _ref$images,
33
33
  headerInfo = _ref.headerInfo,
34
34
  validation = _ref.validation,
35
- setShowModal = _ref.setShowModal,
36
- sendToFacilitator = _ref.sendToFacilitator,
37
- approveRejectButtons = _ref.approveRejectButtons;
35
+ setShowModal = _ref.setShowModal;
38
36
 
39
- var _useState = (0, _react.useState)(0),
37
+ var _useState = (0, _react.useState)((0, _data.getImage)(images === null || images === void 0 ? void 0 : images.values[0], 710, 710)),
40
38
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
41
39
  activeImage = _useState2[0],
42
40
  setActiveImage = _useState2[1];
@@ -69,8 +67,8 @@ var ProductImageModal = function ProductImageModal(_ref) {
69
67
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
70
68
  className: "modal-image-container",
71
69
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ProductImage.ProductImage, {
72
- img: "https://" + process.env.REACT_APP_IMAGES_BUCKET + ".s3.amazonaws.com/" + (images === null || images === void 0 ? void 0 : (_images$values$active = images.values[activeImage]) === null || _images$values$active === void 0 ? void 0 : _images$values$active.srcDB),
73
- altText: images === null || images === void 0 ? void 0 : (_images$values$active2 = images.values[activeImage]) === null || _images$values$active2 === void 0 ? void 0 : _images$values$active2.name,
70
+ img: activeImage.src,
71
+ altText: activeImage === null || activeImage === void 0 ? void 0 : activeImage.name,
74
72
  imageType: "expanded-modal-image"
75
73
  })
76
74
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
@@ -79,7 +77,7 @@ var ProductImageModal = function ProductImageModal(_ref) {
79
77
  className: "validation-and-table-container",
80
78
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
81
79
  className: "validation-panel",
82
- children: [approveRejectButtons("images") && /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
80
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
83
81
  buttonType: "circular-button ".concat(buttonType),
84
82
  onClick: function onClick() {
85
83
  return setShowValidationPanel(true);
@@ -92,15 +90,13 @@ var ProductImageModal = function ProductImageModal(_ref) {
92
90
  }), showValidationPanel && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ValidationPanel.ValidationPanel, {
93
91
  id: "validation-panel",
94
92
  setOptionClicked: setButtonType,
95
- setShowValidationPanel: setShowValidationPanel,
96
- sendToFacilitator: sendToFacilitator
93
+ setShowValidationPanel: setShowValidationPanel
97
94
  })]
98
95
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ImageDataTable.ImageDataTable, {
99
- imageData: images === null || images === void 0 ? void 0 : (_images$values$active3 = images.values[activeImage]) === null || _images$values$active3 === void 0 ? void 0 : _images$values$active3.data,
96
+ imageData: activeImage.data,
100
97
  headerInfo: headerInfo,
101
- activeImage: images === null || images === void 0 ? void 0 : images.values[activeImage],
102
- darkMode: true,
103
- lists: images
98
+ activeImage: activeImage,
99
+ darkMode: true
104
100
  })]
105
101
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ImageSelector.ImageSelector, {
106
102
  images: images,
@@ -15,6 +15,6 @@ var _variables = require("../../../global-files/variables");
15
15
 
16
16
  var _templateObject;
17
17
 
18
- var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: center;\n align-items: center;\n min-height: 100vh;\n width: 100%;\n overflow: auto;\n position: fixed;\n background-color: rgba(59, 59, 59, 0.53);\n backdrop-filter: blur(4px);\n left: 0;\n top: 0;\n z-index: 100;\n\n .modal-container {\n display: flex;\n border-radius: 4px;\n overflow: hidden;\n\n .modal-data-container {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: center;\n padding: 15px;\n min-width: 375px;\n background-color: ", ";\n\n .validation-and-table-container {\n .validation-panel {\n position: relative;\n display: flex;\n justify-content: flex-end;\n align-items: center;\n .circular-button {\n & + * {\n margin-left: 10px;\n }\n }\n\n .close-button {\n border-radius: 3px;\n width: 30px;\n height: 30px;\n padding: 0;\n border: 1px solid #f0eef2;\n background-size: 30px;\n }\n\n & + * {\n margin-top: 25px;\n }\n }\n }\n }\n }\n"])), _variables.GlobalColors.deep_gray);
18
+ var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: center;\n align-items: center;\n min-height: 100vh;\n width: 100%;\n overflow: auto;\n position: fixed;\n background-color: rgba(59, 59, 59, 0.53);\n backdrop-filter: blur(4px);\n\n .modal-container {\n display: flex;\n border-radius: 4px;\n overflow: hidden;\n\n .modal-data-container {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: center;\n padding: 15px;\n min-width: 375px;\n background-color: ", ";\n\n .validation-and-table-container {\n .validation-panel {\n position: relative;\n display: flex;\n justify-content: flex-end;\n align-items: center;\n .circular-button {\n & + * {\n margin-left: 10px;\n }\n }\n\n .close-button {\n border-radius: 3px;\n width: 30px;\n height: 30px;\n padding: 0;\n border: 1px solid #f0eef2;\n background-size: 30px;\n }\n\n & + * {\n margin-top: 25px;\n }\n }\n }\n }\n }\n"])), _variables.GlobalColors.deep_gray);
19
19
 
20
20
  exports.Container = Container;
@@ -26,118 +26,356 @@ var Template = function Template(args) {
26
26
  var RetailerProductEditionDefault = Template.bind({});
27
27
  exports.RetailerProductEditionDefault = RetailerProductEditionDefault;
28
28
  RetailerProductEditionDefault.args = {
29
+ productData: {
30
+ imagesData: {
31
+ image: {
32
+ src: "https://www.thestar.com/content/dam/thestar/columnist_logos/francis_angelyn_logo2020.jpg",
33
+ name: "Hero.jpg"
34
+ }
35
+ },
36
+ headerData: {
37
+ name: "Nombre del producto",
38
+ status: "P",
39
+ percent: 20,
40
+ backgroundColor: "in_progress",
41
+ priority: "low",
42
+ date: new Date().toLocaleDateString(),
43
+ features: [{
44
+ feature: "Prov",
45
+ value: "Unilever"
46
+ }, {
47
+ feature: "Vendor",
48
+ value: "1234567890"
49
+ }, {
50
+ feature: "SKU",
51
+ value: "1234567890"
52
+ }, {
53
+ feature: "UPC",
54
+ value: "1234567890"
55
+ }, {
56
+ feature: "Categoría",
57
+ value: "Desodorantes Caballero y Dama"
58
+ }],
59
+ validation: "null-button"
60
+ },
61
+ status: "AA",
62
+ image: {
63
+ src: "https://image.shutterstock.com/image-illustration/3d-render-generic-drug-pills-260nw-709112806.jpg"
64
+ },
65
+ services: {
66
+ Descripción: [{
67
+ inputGroup: {
68
+ name: "Información básica del producto",
69
+ inputs: [{
70
+ label: "Item",
71
+ value: "1234567890",
72
+ placeholder: "Ingresar valor"
73
+ }, {
74
+ label: "Item",
75
+ value: "1234567890",
76
+ placeholder: "Ingresar valor"
77
+ }, {
78
+ label: "Item",
79
+ value: "1234567890",
80
+ placeholder: "Ingresar valor"
81
+ }, {
82
+ label: "Item",
83
+ value: "1234567890",
84
+ placeholder: "Ingresar valor"
85
+ }, {
86
+ label: "Item",
87
+ value: "1234567890",
88
+ placeholder: "Ingresar valor"
89
+ }, {
90
+ label: "Item",
91
+ value: "1234567890",
92
+ placeholder: "Ingresar valor"
93
+ }, {
94
+ label: "Item",
95
+ value: "1234567890",
96
+ placeholder: "Ingresar valor"
97
+ }, {
98
+ label: "Item",
99
+ value: "1234567890",
100
+ placeholder: "Ingresar valor"
101
+ }]
102
+ }
103
+ }],
104
+ "Ficha técnica": [{
105
+ inputGroup: {
106
+ name: "Información básica del producto",
107
+ inputs: [{
108
+ label: "Item",
109
+ value: "1234567890",
110
+ placeholder: "Ingresar valor"
111
+ }, {
112
+ label: "Item",
113
+ value: "1234567890",
114
+ placeholder: "Ingresar valor"
115
+ }, {
116
+ label: "Item",
117
+ value: "1234567890",
118
+ placeholder: "Ingresar valor"
119
+ }, {
120
+ label: "Item",
121
+ value: "1234567890",
122
+ placeholder: "Ingresar valor"
123
+ }, {
124
+ label: "Item",
125
+ value: "1234567890",
126
+ placeholder: "Ingresar valor"
127
+ }, {
128
+ label: "Item",
129
+ value: "1234567890",
130
+ placeholder: "Ingresar valor"
131
+ }, {
132
+ label: "Item",
133
+ value: "1234567890",
134
+ placeholder: "Ingresar valor"
135
+ }, {
136
+ label: "Item",
137
+ value: "1234567890",
138
+ placeholder: "Ingresar valor"
139
+ }]
140
+ }
141
+ }, {
142
+ inputGroup: {
143
+ name: "Información básica del producto",
144
+ inputs: [{
145
+ label: "Item",
146
+ value: "1234567890",
147
+ placeholder: "Ingresar valor"
148
+ }, {
149
+ label: "Item",
150
+ value: "1234567890",
151
+ placeholder: "Ingresar valor"
152
+ }, {
153
+ label: "Item",
154
+ value: "1234567890",
155
+ placeholder: "Ingresar valor"
156
+ }, {
157
+ label: "Item",
158
+ value: "1234567890",
159
+ placeholder: "Ingresar valor"
160
+ }, {
161
+ label: "Item",
162
+ value: "1234567890",
163
+ placeholder: "Ingresar valor"
164
+ }, {
165
+ label: "Item",
166
+ value: "1234567890",
167
+ placeholder: "Ingresar valor"
168
+ }, {
169
+ label: "Item",
170
+ value: "1234567890",
171
+ placeholder: "Ingresar valor"
172
+ }, {
173
+ label: "Item",
174
+ value: "1234567890",
175
+ placeholder: "Ingresar valor"
176
+ }]
177
+ }
178
+ }, {
179
+ inputGroup: {
180
+ name: "Información básica del producto",
181
+ inputs: [{
182
+ label: "Item",
183
+ value: "1234567890",
184
+ placeholder: "Ingresar valor"
185
+ }, {
186
+ label: "Item",
187
+ value: "1234567890",
188
+ placeholder: "Ingresar valor"
189
+ }, {
190
+ label: "Item",
191
+ value: "1234567890",
192
+ placeholder: "Ingresar valor"
193
+ }, {
194
+ label: "Item",
195
+ value: "1234567890",
196
+ placeholder: "Ingresar valor"
197
+ }, {
198
+ label: "Item",
199
+ value: "1234567890",
200
+ placeholder: "Ingresar valor"
201
+ }, {
202
+ label: "Item",
203
+ value: "1234567890",
204
+ placeholder: "Ingresar valor"
205
+ }, {
206
+ label: "Item",
207
+ value: "1234567890",
208
+ placeholder: "Ingresar valor"
209
+ }, {
210
+ label: "Item",
211
+ value: "1234567890",
212
+ placeholder: "Ingresar valor"
213
+ }]
214
+ }
215
+ }, {
216
+ inputGroup: {
217
+ name: "Información básica del producto",
218
+ inputs: [{
219
+ label: "Item",
220
+ value: "1234567890",
221
+ placeholder: "Ingresar valor"
222
+ }, {
223
+ label: "Item",
224
+ value: "1234567890",
225
+ placeholder: "Ingresar valor"
226
+ }, {
227
+ label: "Item",
228
+ value: "1234567890",
229
+ placeholder: "Ingresar valor"
230
+ }, {
231
+ label: "Item",
232
+ value: "1234567890",
233
+ placeholder: "Ingresar valor"
234
+ }, {
235
+ label: "Item",
236
+ value: "1234567890",
237
+ placeholder: "Ingresar valor"
238
+ }, {
239
+ label: "Item",
240
+ value: "1234567890",
241
+ placeholder: "Ingresar valor"
242
+ }, {
243
+ label: "Item",
244
+ value: "1234567890",
245
+ placeholder: "Ingresar valor"
246
+ }, {
247
+ label: "Item",
248
+ value: "1234567890",
249
+ placeholder: "Ingresar valor"
250
+ }]
251
+ }
252
+ }],
253
+ Imágenes: [{
254
+ img: "https://image.shutterstock.com/image-illustration/3d-render-generic-drug-pills-260nw-709112806.jpg",
255
+ alt: "img",
256
+ name: "Hero",
257
+ data: [{
258
+ feature: "Tamaño de imagen",
259
+ value: "1000x10000"
260
+ }, {
261
+ feature: "Formato",
262
+ value: "jpg"
263
+ }, {
264
+ feature: "Resolución",
265
+ value: "300dpi"
266
+ }, {
267
+ feature: "Tipo de imagen",
268
+ value: "Tipo de imagen"
269
+ }, {
270
+ feature: "Identificador",
271
+ value: "F261"
272
+ }]
273
+ }, {
274
+ img: "https://www.muycomputer.com/wp-content/uploads/2020/12/google.png",
275
+ alt: "img",
276
+ name: "Hero2",
277
+ data: [{
278
+ feature: "Tamaño de imagen",
279
+ value: "1000x10000"
280
+ }, {
281
+ feature: "Formato",
282
+ value: "jpg"
283
+ }, {
284
+ feature: "Resolución",
285
+ value: "300dpi"
286
+ }, {
287
+ feature: "Tipo de imagen",
288
+ value: "Tipo de imagen"
289
+ }, {
290
+ feature: "Identificador",
291
+ value: "F261"
292
+ }]
293
+ }, {
294
+ img: "https://www.ionos.es/digitalguide/fileadmin/DigitalGuide/Teaser/bildergalerie-online-t.jpg",
295
+ alt: "img",
296
+ name: "Hero3",
297
+ data: [{
298
+ feature: "Tamaño de imagen",
299
+ value: "1000x10000"
300
+ }, {
301
+ feature: "Formato",
302
+ value: "jpg"
303
+ }, {
304
+ feature: "Resolución",
305
+ value: "300dpi"
306
+ }, {
307
+ feature: "Tipo de imagen",
308
+ value: "Tipo de imagen"
309
+ }, {
310
+ feature: "Identificador",
311
+ value: "F261"
312
+ }]
313
+ }, {
314
+ img: "https://i.pinimg.com/originals/d0/b9/28/d0b928df15d3a3bf1905865a8fedb257.jpg",
315
+ alt: "img",
316
+ name: "Hero4",
317
+ data: [{
318
+ feature: "Tamaño de imagen",
319
+ value: "1000x10000"
320
+ }, {
321
+ feature: "Formato",
322
+ value: "jpg"
323
+ }, {
324
+ feature: "Resolución",
325
+ value: "300dpi"
326
+ }, {
327
+ feature: "Tipo de imagen",
328
+ value: "Tipo de imagen"
329
+ }, {
330
+ feature: "Identificador",
331
+ value: "F261"
332
+ }]
333
+ }, {
334
+ img: "https://memegenerator.net/img/images/72798198.jpg",
335
+ alt: "img",
336
+ name: "Hero5",
337
+ data: [{
338
+ feature: "Tamaño de imagen",
339
+ value: "1000x10000"
340
+ }, {
341
+ feature: "Formato",
342
+ value: "jpg"
343
+ }, {
344
+ feature: "Resolución",
345
+ value: "300dpi"
346
+ }, {
347
+ feature: "Tipo de imagen",
348
+ value: "Tipo de imagen"
349
+ }, {
350
+ feature: "Identificador",
351
+ value: "F261"
352
+ }]
353
+ }, {
354
+ img: "http://www.dumpaday.com/wp-content/uploads/2016/02/funny-pictures-621.jpg",
355
+ alt: "img",
356
+ name: "Hero6",
357
+ data: [{
358
+ feature: "Tamaño de imagen",
359
+ value: "1000x10000"
360
+ }, {
361
+ feature: "Formato",
362
+ value: "jpg"
363
+ }, {
364
+ feature: "Resolución",
365
+ value: "300dpi"
366
+ }, {
367
+ feature: "Tipo de imagen",
368
+ value: "Tipo de imagen"
369
+ }, {
370
+ feature: "Identificador",
371
+ value: "F261"
372
+ }]
373
+ }]
374
+ }
375
+ },
29
376
  tabsSections: {
30
377
  Descripción: true,
31
378
  "Ficha técnica": false,
32
379
  Imágenes: false
33
- },
34
- token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJjOTRhNzMwNS05MzY1LTQ2ZmYtYTQyMy00YjRiYzNiOGIxODAiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjp0cnVlLCJjb2duaXRvOnVzZXJuYW1lIjoiYzk0YTczMDUtOTM2NS00NmZmLWE0MjMtNGI0YmMzYjhiMTgwIiwiY29nbml0bzpyb2xlcyI6WyJhcm46YXdzOmlhbTo6ODk4NjcwMjMyODA3OnJvbGVcL2NvbnRlbnRvaC1kZXYtdXMtZWFzdC0xLWxhbWJkYVJvbGUiXSwiYXVkIjoiNWFjOHRwZ3M2Z2JzcTEzZnJ2cnBpZWVwNDAiLCJldmVudF9pZCI6IjcxNWU4ZTc3LTAwMmMtNGMyNC1hNjM2LTYxNDkxYzQ0MzI2MSIsInRva2VuX3VzZSI6ImlkIiwiYXV0aF90aW1lIjoxNjUyMzA3MTUzLCJuYW1lIjoiQ29sYWJvcmFkb3IiLCJwaG9uZV9udW1iZXIiOiIrNTIxMTExIiwiZXhwIjoxNjUyMzEwNzUzLCJpYXQiOjE2NTIzMDcxNTMsImVtYWlsIjoic2FsbWVyb24uNUBob3RtYWlsLmNvbSJ9.Ov1kjVt1sWrNu-8gPhBvnS6SpCuPmOYcqBwJVIoz-YJvuyNx0lMeRflG99cpgj4SojZqgMfPMQ8gJg5263fhj9oynolP7kh08AS_uoTf6_FK2KCaY8gVF4OJnoJJaX7J12JxzmRMI-lQJftvvoPxo5KYHCf7uZSj-5C5z6yIdk59T3U7vziYiKVtJFvVpA6IEB-oIS57MSdg27kwOtYjWvkfZ5vDRfkoOBGmBBELI9uFbKQS0cmWaLSBhd8ptbXWkAprxm-nkJnH9KQKmCsCLBthqmZTsMDw3ok0RsVpEE7_x4X0Hg0756ebqDe1kLCVuTIBpPx4ySvCdlewvi9bYA",
35
- articleId: 238,
36
- category: 846,
37
- version: 2,
38
- productSelected: {
39
- services: {
40
- datasheets: 1,
41
- descriptions: 1,
42
- images: 1
43
- },
44
- orderId: 105,
45
- status: "AF",
46
- datasheet_status: "AA",
47
- prio: "none",
48
- version: 2,
49
- description_status: "AF",
50
- images_status: "AF",
51
- article: {
52
- id_article: 306,
53
- id_category: "697",
54
- name: "Shampoo anticaida",
55
- upc: "234454365",
56
- timestamp: "2022-03-17T17:24:57.000Z",
57
- id_user: 28,
58
- status: "NULL",
59
- active: 1,
60
- company_id: 1,
61
- company_name: "COMPANY DEV",
62
- country: "Colombia",
63
- id_order: 105,
64
- id_datasheet_especialist: 54,
65
- id_datasheet_facilitator: 52,
66
- id_description_especialist: 54,
67
- id_description_facilitator: 52,
68
- id_images_especialist: 55,
69
- id_images_facilitator: 53,
70
- id_auditor: 30,
71
- id_recepcionist: null,
72
- category: "SALUD Y BELLEZA|CUIDADO DEL CABELLO|SHAMPOOS Y ACONDICIONADORES",
73
- missingAttributes: 43,
74
- missingDescriptions: 3,
75
- missingImages: 4
76
- },
77
- retailers: [{
78
- id: 4,
79
- name: "Walmart Super y Superama",
80
- country: "México",
81
- id_region: 1,
82
- active: 1
83
- }, {
84
- id: 5,
85
- name: "Chedraui",
86
- country: "México",
87
- id_region: 1,
88
- active: 1
89
- }, {
90
- id: 9,
91
- name: "Amazon",
92
- country: "México",
93
- id_region: 1,
94
- active: 1
95
- }, {
96
- id: 12,
97
- name: "La Comer",
98
- country: "México",
99
- id_region: 1,
100
- active: 1
101
- }, {
102
- id: 20,
103
- name: "Cornershop",
104
- country: "México",
105
- id_region: 1,
106
- active: 1
107
- }],
108
- country: "Colombia",
109
- upc: "234454365"
110
- },
111
- user: {
112
- id_user: 30,
113
- name: "Admin",
114
- last_name: "Ulises",
115
- email: "salmeron.5@hotmail.com",
116
- position: "Admin",
117
- telephone: null,
118
- country: "México",
119
- id_company: 2,
120
- id_cognito: "c94a7305-9365-46ff-a423-4b4bc3b8b180",
121
- birth_Date: null,
122
- about_me: null,
123
- zip_code: null,
124
- address: null,
125
- job: null,
126
- id_stripe: null,
127
- id_role: 6,
128
- active: 1,
129
- is_retailer: 0,
130
- membership: {
131
- id: 2,
132
- start_date: "2021-11-05T02:35:12.000Z",
133
- end_date: "2022-11-05T02:34:49.000Z",
134
- planID: 1,
135
- plan: "prod_KtkvuFFLpOdP6e",
136
- name: "Plan Free",
137
- user_limit: "1",
138
- products_limit: "3",
139
- type: "PyMES"
140
- },
141
- src: "https://content-management-profile.s3.amazonaws.com/id-30/30.png?1649896700986"
142
380
  }
143
381
  };