contentoh-components-library 15.0.0 → 18.0.0
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.
- package/dist/assets/images/generalButton/downloadIcon.svg +3 -0
- package/dist/components/atoms/CheckBox/index.js +4 -2
- package/dist/components/atoms/GeneralButton/styles.js +4 -2
- package/dist/components/atoms/GeneralInput/index.js +14 -27
- package/dist/components/atoms/GenericModal/index.js +4 -2
- package/dist/components/atoms/GenericModal/styles.js +1 -1
- package/dist/components/atoms/Input/index.js +1 -1
- package/dist/components/atoms/Input/style.js +4 -4
- package/dist/components/atoms/InputFormatter/Wysiwyg.stories.js +30 -0
- package/dist/components/atoms/InputFormatter/index.js +119 -0
- package/dist/components/atoms/InputFormatter/styles.js +33 -0
- package/dist/components/atoms/LabelToInput/style.js +3 -3
- package/dist/components/atoms/ProductPercentCard/Percent.stories.js +41 -0
- package/dist/components/atoms/ProductPercentCard/index.js +45 -0
- package/dist/components/atoms/ProductPercentCard/styles.js +20 -0
- package/dist/components/molecules/GalleryElement/index.js +24 -2
- package/dist/components/molecules/GalleryHeader/index.js +19 -2
- package/dist/components/molecules/StatusAsignationInfo/index.js +12 -27
- package/dist/components/molecules/TableHeader/index.js +4 -2
- package/dist/components/organisms/FullProductNameHeader/index.js +1 -1
- package/dist/components/organisms/FullTabsMenu/index.js +8 -8
- package/dist/components/organisms/ImageDataTable/index.js +4 -2
- package/dist/components/organisms/ProductImageModal/index.js +2 -3
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +4 -14
- package/dist/components/pages/RetailerProductEdition/index.js +330 -169
- package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
- package/package.json +5 -1
- package/src/assets/images/generalButton/downloadIcon.svg +3 -0
- package/src/components/atoms/CheckBox/index.js +8 -2
- package/src/components/atoms/GeneralButton/styles.js +14 -0
- package/src/components/atoms/GeneralInput/index.js +12 -29
- package/src/components/atoms/GenericModal/index.js +2 -2
- package/src/components/atoms/GenericModal/styles.js +3 -0
- package/src/components/atoms/Input/index.js +2 -1
- package/src/components/atoms/Input/style.js +9 -5
- package/src/components/atoms/InputFormatter/Wysiwyg.stories.js +12 -0
- package/src/components/atoms/InputFormatter/index.js +76 -0
- package/src/components/atoms/InputFormatter/styles.js +34 -0
- package/src/components/atoms/LabelToInput/style.js +10 -2
- package/src/components/atoms/ProductPercentCard/Percent.stories.js +41 -0
- package/src/components/atoms/ProductPercentCard/index.js +23 -0
- package/src/components/atoms/{Percent → ProductPercentCard}/styles.js +11 -7
- package/src/components/molecules/GalleryElement/index.js +18 -1
- package/src/components/molecules/GalleryHeader/index.js +8 -2
- package/src/components/molecules/StatusAsignationInfo/index.js +12 -24
- package/src/components/molecules/TableHeader/index.js +2 -0
- package/src/components/organisms/FullProductNameHeader/index.js +1 -1
- package/src/components/organisms/FullTabsMenu/index.js +6 -6
- package/src/components/organisms/ImageDataTable/index.js +2 -0
- package/src/components/organisms/ProductImageModal/index.js +8 -2
- package/src/components/organisms/ProductImageModal/styles.js +3 -0
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +4 -14
- package/src/components/pages/RetailerProductEdition/index.js +250 -90
- package/src/components/pages/RetailerProductEdition/styles.js +11 -3
- package/src/components/atoms/Percent/Percent.stories.js +0 -38
- package/src/components/atoms/Percent/index.js +0 -15
|
@@ -9,12 +9,12 @@ export const FullTabsMenu = ({
|
|
|
9
9
|
activeTab,
|
|
10
10
|
setActiveTab,
|
|
11
11
|
setImageLayout,
|
|
12
|
-
saveDatasheets,
|
|
13
|
-
saveDescriptions,
|
|
14
|
-
updateImages,
|
|
15
12
|
assig,
|
|
16
13
|
setAssignation,
|
|
17
14
|
isRetailer,
|
|
15
|
+
downloadImages,
|
|
16
|
+
askToDeleteImages,
|
|
17
|
+
onClickSave,
|
|
18
18
|
}) => {
|
|
19
19
|
const [imagesSection, setImagesSection] = useState(false);
|
|
20
20
|
|
|
@@ -30,12 +30,12 @@ export const FullTabsMenu = ({
|
|
|
30
30
|
activeTab={activeTab}
|
|
31
31
|
setImageLayout={setImageLayout}
|
|
32
32
|
imagesSection={imagesSection}
|
|
33
|
-
saveDatasheets={saveDatasheets}
|
|
34
|
-
saveDescriptions={saveDescriptions}
|
|
35
|
-
updateImages={updateImages}
|
|
36
33
|
assignationsImages={assig}
|
|
37
34
|
setAssignation={setAssignation}
|
|
38
35
|
isRetailer={isRetailer}
|
|
36
|
+
downloadImages={downloadImages}
|
|
37
|
+
onClickSave={onClickSave}
|
|
38
|
+
askToDeleteImages={askToDeleteImages}
|
|
39
39
|
/>
|
|
40
40
|
</Container>
|
|
41
41
|
);
|
|
@@ -14,6 +14,7 @@ export const ImageDataTable = ({
|
|
|
14
14
|
imagesStatus,
|
|
15
15
|
setAssignation,
|
|
16
16
|
isRetailer,
|
|
17
|
+
onClickSave,
|
|
17
18
|
}) => {
|
|
18
19
|
return (
|
|
19
20
|
<Container darkMode={darkMode}>
|
|
@@ -23,6 +24,7 @@ export const ImageDataTable = ({
|
|
|
23
24
|
assignationsImages={assignationsImages}
|
|
24
25
|
setAssignation={setAssignation}
|
|
25
26
|
isRetailer={isRetailer}
|
|
27
|
+
onClickSave={onClickSave}
|
|
26
28
|
/>
|
|
27
29
|
<Row>
|
|
28
30
|
<ScreenHeader headerType={"table-row-text"} text="Tipo de toma" />
|
|
@@ -5,7 +5,6 @@ import { ImageSelector } from "../../molecules/ImageSelector";
|
|
|
5
5
|
import { useState, useEffect } from "react";
|
|
6
6
|
import { ValidationPanel } from "../../atoms/ValidationPanel";
|
|
7
7
|
import { Button } from "../../atoms/GeneralButton";
|
|
8
|
-
import { getImage } from "../../../global-files/data";
|
|
9
8
|
|
|
10
9
|
export const ProductImageModal = ({
|
|
11
10
|
images = [],
|
|
@@ -31,6 +30,8 @@ export const ProductImageModal = ({
|
|
|
31
30
|
}
|
|
32
31
|
};
|
|
33
32
|
|
|
33
|
+
console.log(images?.values[activeImage]);
|
|
34
|
+
|
|
34
35
|
useEffect(() => {
|
|
35
36
|
if (showValidationPanel) {
|
|
36
37
|
document.addEventListener("click", closeValidationPanel, false);
|
|
@@ -42,7 +43,12 @@ export const ProductImageModal = ({
|
|
|
42
43
|
<div className="modal-container">
|
|
43
44
|
<div className="modal-image-container">
|
|
44
45
|
<ProductImage
|
|
45
|
-
img={
|
|
46
|
+
img={
|
|
47
|
+
"https://" +
|
|
48
|
+
process.env.REACT_APP_IMAGES_BUCKET +
|
|
49
|
+
".s3.amazonaws.com/" +
|
|
50
|
+
images?.values[activeImage]?.srcDB
|
|
51
|
+
}
|
|
46
52
|
altText={images?.values[activeImage]?.name}
|
|
47
53
|
imageType={"expanded-modal-image"}
|
|
48
54
|
/>
|
|
@@ -74,9 +74,9 @@ RetailerProductEditionDefault.args = {
|
|
|
74
74
|
company_name: "COMPANY DEV",
|
|
75
75
|
country: "Colombia",
|
|
76
76
|
id_order: 101,
|
|
77
|
-
id_datasheet_especialist:
|
|
77
|
+
id_datasheet_especialist: 36,
|
|
78
78
|
id_datasheet_facilitator: 52,
|
|
79
|
-
id_description_especialist:
|
|
79
|
+
id_description_especialist: 36,
|
|
80
80
|
id_description_facilitator: 52,
|
|
81
81
|
id_images_especialist: 55,
|
|
82
82
|
id_images_facilitator: 53,
|
|
@@ -105,17 +105,7 @@ RetailerProductEditionDefault.args = {
|
|
|
105
105
|
},
|
|
106
106
|
],
|
|
107
107
|
country: "Colombia",
|
|
108
|
-
|
|
109
|
-
modalCadenas: false,
|
|
110
|
-
totalCadenas: false,
|
|
111
|
-
modalAsig1: false,
|
|
112
|
-
modalFD: false,
|
|
113
|
-
modalAsig2: false,
|
|
114
|
-
modalAsig3: false,
|
|
115
|
-
modalAsig4: false,
|
|
116
|
-
modalAsig5: false,
|
|
117
|
-
modalFI: false,
|
|
118
|
-
modalQA: false,
|
|
108
|
+
upc: "7491989462",
|
|
119
109
|
},
|
|
120
110
|
user: {
|
|
121
111
|
id_user: 30,
|
|
@@ -147,6 +137,6 @@ RetailerProductEditionDefault.args = {
|
|
|
147
137
|
products_limit: "3",
|
|
148
138
|
type: "PyMES",
|
|
149
139
|
},
|
|
150
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-30/30.png?
|
|
140
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-30/30.png?1649434410216",
|
|
151
141
|
},
|
|
152
142
|
};
|