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