contentoh-components-library 21.5.3 → 21.5.4
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/InputGroup/index.js +1 -1
- package/dist/components/organisms/Table/styles.js +1 -1
- package/dist/components/pages/MultipleEdition/saveData.js +9 -19
- package/dist/components/pages/MultipleEdition/styles.js +1 -1
- package/dist/components/pages/MultipleEdition/utils.js +86 -153
- package/package.json +4 -1
- package/src/assets/images/Icons/addv2.svg +8 -0
- package/src/assets/images/Icons/beenhere.svg +9 -0
- package/src/assets/images/Icons/checkv2.svg +8 -0
- package/src/assets/images/Icons/close-magenta.svg +9 -0
- package/src/assets/images/Icons/close.svg +8 -0
- package/src/assets/images/Icons/closeCircle.svg +8 -0
- package/src/assets/images/Icons/delete-forever-red.svg +9 -0
- package/src/assets/images/Icons/delete-forever-white.svg +10 -0
- package/src/assets/images/Icons/edit.svg +8 -0
- package/src/assets/images/Icons/fullscreen.svg +3 -0
- package/src/assets/images/Icons/infoNR.svg +8 -0
- package/src/assets/images/Icons/options.svg +3 -0
- package/src/assets/images/Icons/save-white-gray.svg +9 -0
- package/src/assets/images/Icons/save-white.svg +9 -0
- package/src/assets/images/Icons/save.svg +8 -0
- package/src/assets/images/Icons/search.svg +3 -0
- package/src/assets/images/Icons/settings.svg +8 -0
- package/src/assets/images/Icons/trash.svg +8 -0
- package/src/assets/images/Icons/undo.svg +8 -0
- package/src/assets/images/Icons/upload-file-white.svg +4 -0
- package/src/assets/images/Icons/upload-file.svg +10 -0
- package/src/assets/images/Icons/upload_file.svg +10 -0
- package/src/assets/images/Icons/warningv2.svg +3 -0
- package/src/assets/images/checkBox/checkrosa.svg +3 -0
- package/src/assets/images/checkBox/checkverde.svg +3 -0
- package/src/assets/images/flagsv2/highPriority.svg +3 -0
- package/src/assets/images/flagsv2/lowPriority.svg +3 -0
- package/src/assets/images/flagsv2/mediumPriority.svg +3 -0
- package/src/assets/images/flagsv2/noPriority.svg +3 -0
- package/src/assets/images/generalButton/closeIconWhite.svg +4 -0
- package/src/assets/images/generalButton/closeIconv2.svg +4 -0
- package/src/assets/images/generalButton/saveIconpink.svg +3 -0
- package/src/components/atoms/Avatar/index.js +8 -2
- package/src/components/atoms/ButtonV2/ButtonV2.stories.js +1 -0
- package/src/components/atoms/ButtonV2/index.js +1 -0
- package/src/components/atoms/ButtonV2/styles.js +16 -0
- package/src/components/atoms/CharsMissing/Wysiwyg.stories.js +12 -0
- package/src/components/atoms/CharsMissing/index.js +60 -0
- package/src/components/atoms/CharsMissing/styles.js +44 -0
- package/src/components/atoms/CheckBox/CheckBox.stories.js +5 -0
- package/src/components/atoms/CheckBox/index.js +5 -1
- package/src/components/atoms/CheckBox/styles.js +9 -3
- package/src/components/atoms/CustomChip/CustomChip.stories.js +16 -0
- package/src/components/atoms/CustomChip/index.js +34 -0
- package/src/components/atoms/CustomChip/styles.js +6 -0
- package/src/components/atoms/FeatureTagv2/FeatureTagv2.stories.js +16 -0
- package/src/components/atoms/FeatureTagv2/index.js +10 -0
- package/src/components/atoms/FeatureTagv2/styles.js +56 -0
- package/src/components/atoms/GeneralButton/styles.js +46 -0
- package/src/components/atoms/GeneralInput/index.js +3 -0
- package/src/components/atoms/GeneralInput/styles.js +19 -1
- package/src/components/atoms/GeneralInputv2/GeneralInputv2.stories.js +33 -0
- package/src/components/atoms/GeneralInputv2/index.js +155 -0
- package/src/components/atoms/GeneralInputv2/styles.js +67 -0
- package/src/components/atoms/InputFormatter/index.js +2 -1
- package/src/components/atoms/InputFormatter/styles.js +9 -4
- package/src/components/atoms/InputFormatterv2/Wysiwyg.stories.js +12 -0
- package/src/components/atoms/InputFormatterv2/index.js +148 -0
- package/src/components/atoms/InputFormatterv2/styles.js +39 -0
- package/src/components/atoms/InputImages/InputImages.stories.js +19 -0
- package/src/components/atoms/InputImages/index.js +25 -0
- package/src/components/atoms/InputImages/styles.js +17 -0
- package/src/components/atoms/Multiselect/Multiselect.stories.js +364 -0
- package/src/components/atoms/Multiselect/index.js +351 -0
- package/src/components/atoms/Multiselect/styles.js +33 -0
- package/src/components/atoms/NumberMandatory/NumberMandatory.stories.js +19 -0
- package/src/components/atoms/NumberMandatory/index.js +16 -0
- package/src/components/atoms/NumberMandatory/styles.js +11 -0
- package/src/components/atoms/ObservationFlag/ObservationFlag.stories.js +20 -0
- package/src/components/atoms/ObservationFlag/index.js +167 -0
- package/src/components/atoms/ObservationFlag/styles.js +104 -0
- package/src/components/atoms/PriorityFlagv2/PriorityFlagv2.stories.js +20 -0
- package/src/components/atoms/PriorityFlagv2/index.js +20 -0
- package/src/components/atoms/PriorityFlagv2/styles.js +6 -0
- package/src/components/atoms/ProductImage/index.js +24 -11
- package/src/components/atoms/ProductImage/styles.js +7 -0
- package/src/components/atoms/ProductImagev2/ProductImagev2.stories.js +28 -0
- package/src/components/atoms/ProductImagev2/index.js +16 -0
- package/src/components/atoms/ProductImagev2/styles.js +62 -0
- package/src/components/atoms/Progress/Progress.stories.js +25 -0
- package/src/components/atoms/Progress/index.js +74 -0
- package/src/components/atoms/Progress/styles.js +98 -0
- package/src/components/atoms/ScreenHeaderv2/ScreenHeaderv2.stories.js +53 -0
- package/src/components/atoms/ScreenHeaderv2/index.js +134 -0
- package/src/components/atoms/ScreenHeaderv2/styles.js +103 -0
- package/src/components/atoms/Selectv2/VersionSelect.js +27 -0
- package/src/components/atoms/Selectv2/index.js +35 -0
- package/src/components/atoms/Selectv2/style.js +93 -0
- 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 +0 -3
- package/src/components/atoms/TabSectionv2/TabSection.stories.js +25 -0
- package/src/components/atoms/TabSectionv2/index.js +9 -0
- package/src/components/atoms/TabSectionv2/styles.js +20 -0
- package/src/components/atoms/TooltipLight/Tooltip.stories.js +20 -0
- package/src/components/atoms/TooltipLight/index.js +46 -0
- package/src/components/atoms/TooltipLight/styles.js +65 -0
- package/src/components/atoms/WordsMissing/Wysiwyg.stories.js +12 -0
- package/src/components/atoms/WordsMissing/index.js +60 -0
- package/src/components/atoms/WordsMissing/styles.js +10 -0
- package/src/components/molecules/AddGroup/AddGroup.stories.js +15 -0
- package/src/components/molecules/AddGroup/index.js +84 -0
- package/src/components/molecules/AddGroup/styles.js +141 -0
- package/src/components/molecules/AsignationInfo/AsignationInfo.stories.js +17 -0
- package/src/components/molecules/AsignationInfo/index.js +108 -0
- package/src/components/molecules/AsignationInfo/styles.js +86 -0
- package/src/components/molecules/BoxAttribute/index.js +32 -25
- package/src/components/molecules/BoxAttribute/styles.js +1 -1
- package/src/components/molecules/BoxButtons/index.js +23 -22
- package/src/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/src/components/molecules/EditionActiveImagev2/EditionActiveImagev2.stories.js +12 -0
- package/src/components/molecules/EditionActiveImagev2/index.js +15 -0
- package/src/components/molecules/EditionActiveImagev2/styles.js +7 -0
- package/src/components/molecules/EditionTabs/EditionTabs.stories.js +12 -0
- package/src/components/molecules/EditionTabs/index.js +33 -0
- package/src/components/molecules/EditionTabs/styles.js +24 -0
- package/src/components/molecules/FeaturesBarv2/FeaturesBarv2.stories.js +20 -0
- package/src/components/molecules/FeaturesBarv2/index.js +32 -0
- package/src/components/molecules/FeaturesBarv2/styles.js +17 -0
- package/src/components/molecules/GalleryElement/index.js +76 -1
- package/src/components/molecules/GalleryElementv2/GalleryElementv2.stories.js +30 -0
- package/src/components/molecules/GalleryElementv2/index.js +142 -0
- package/src/components/molecules/GalleryElementv2/styles.js +119 -0
- package/src/components/molecules/GalleryHeader/index.js +1 -0
- package/src/components/molecules/GalleryHeaderv2/GalleryHeaderv2.stories.js +10 -0
- package/src/components/molecules/GalleryHeaderv2/index.js +25 -0
- package/src/components/molecules/GalleryHeaderv2/styles.js +47 -0
- package/src/components/molecules/GroupSelect/GroupSelect.stories.js +35 -0
- package/src/components/molecules/GroupSelect/SelectItem.js +105 -0
- package/src/components/molecules/GroupSelect/index.js +190 -0
- package/src/components/molecules/GroupSelect/styles.js +124 -0
- package/src/components/molecules/HeaderTop/index.js +52 -6
- package/src/components/molecules/HeaderTopv2/HeaderTopv2.stories.js +10 -0
- package/src/components/molecules/HeaderTopv2/index.js +100 -0
- package/src/components/molecules/HeaderTopv2/styles.js +33 -0
- package/src/components/molecules/ImageSelectorv2/ImageSelectorv2.stories.js +46 -0
- package/src/components/molecules/ImageSelectorv2/index.js +22 -0
- package/src/components/molecules/ImageSelectorv2/styles.js +15 -0
- package/src/components/molecules/Phase/Phase.stories.js +107 -0
- package/src/components/molecules/Phase/index.js +391 -0
- package/src/components/molecules/Phase/styles.js +97 -0
- package/src/components/molecules/ProductNameHeader/index.js +19 -1
- package/src/components/molecules/ProductNameHeaderv2/ProductNameHeaderv2.stories.js +37 -0
- package/src/components/molecules/ProductNameHeaderv2/index.js +12 -0
- package/src/components/molecules/ProductNameHeaderv2/styles.js +10 -0
- package/src/components/molecules/ProductSkuStatus/ProductSkuStatus.stories.js +37 -0
- package/src/components/molecules/ProductSkuStatus/index.js +26 -0
- package/src/components/molecules/ProductSkuStatus/styles.js +7 -0
- package/src/components/molecules/RetailerSelectorv2/RetailerSelectorv2.stories.js +35 -0
- package/src/components/molecules/RetailerSelectorv2/index.js +80 -0
- package/src/components/molecules/RetailerSelectorv2/styles.js +21 -0
- package/src/components/molecules/ServiceDataValidator/ServiceDataValidator.stories.js +90 -0
- package/src/components/molecules/ServiceDataValidator/index.js +49 -0
- package/src/components/molecules/ServiceDataValidator/styles.js +36 -0
- package/src/components/molecules/SignInLogin/index.js +11 -11
- package/src/components/molecules/StatusAsignationInfo/FinancedCompanies.js +501 -63
- package/src/components/molecules/StatusAsignationInfo/index.js +1 -1
- package/src/components/molecules/StatusRetailer/StatusAsignationInfo.stories.js +17 -0
- package/src/components/molecules/StatusRetailer/index.js +55 -0
- package/src/components/molecules/StatusRetailer/styles.js +85 -0
- package/src/components/molecules/StripeCardSelector/CardSelector.stories.js +1 -2
- package/src/components/molecules/TabsMenuv2/TabsMenuv2.stories.js +19 -0
- package/src/components/molecules/TabsMenuv2/index.js +112 -0
- package/src/components/molecules/TabsMenuv2/styles.js +19 -0
- package/src/components/molecules/TagAndInput/index.js +8 -6
- package/src/components/molecules/TagAndInputv2/TagAndInputv2.stories.js +24 -0
- package/src/components/molecules/TagAndInputv2/index.js +86 -0
- package/src/components/molecules/TagAndInputv2/styles.js +35 -0
- package/src/components/molecules/Validation/Validation.stories.js +12 -0
- package/src/components/molecules/Validation/index.js +77 -0
- package/src/components/molecules/Validation/styles.js +19 -0
- package/src/components/molecules/VersionItemv2/VersionItemv2.stories.js +14 -0
- package/src/components/molecules/VersionItemv2/index.js +59 -0
- package/src/components/molecules/VersionItemv2/styles.js +47 -0
- package/src/components/organisms/BarButtons/BarButtons.stories.js +13 -0
- package/src/components/organisms/BarButtons/index.js +150 -0
- package/src/components/organisms/BarButtons/styles.js +54 -0
- package/src/components/organisms/Chat/Chat.stories.js +27 -7
- package/src/components/organisms/Chat/ContainerItems/index.js +18 -2
- package/src/components/organisms/Chat/ContainerItems/styles.js +14 -2
- package/src/components/organisms/Chat/ContentChat/index.js +88 -12
- package/src/components/organisms/Chat/Footer/index.js +11 -0
- package/src/components/organisms/Chat/index.js +46 -4
- package/src/components/organisms/Chat/styles.js +4 -0
- package/src/components/organisms/Chatv2/ChatLists/ChatLists.stories.js +65 -0
- 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 +141 -0
- package/src/components/organisms/Chatv2/ChatLists/styles.js +162 -0
- package/src/components/organisms/Chatv2/Chatv2.stories.js +184 -0
- package/src/components/organisms/Chatv2/ContainerItems/ContainerItems.stories.js +142 -0
- package/src/components/organisms/Chatv2/ContainerItems/index.js +538 -0
- package/src/components/organisms/Chatv2/ContainerItems/styles.js +360 -0
- package/src/components/organisms/Chatv2/ContentChat/ContentChat.stories.js +102 -0
- 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 +1016 -0
- package/src/components/organisms/Chatv2/ContentChat/styles.js +44 -0
- package/src/components/organisms/Chatv2/Footer/Footer.stories.js +22 -0
- package/src/components/organisms/Chatv2/Footer/index.js +668 -0
- package/src/components/organisms/Chatv2/Footer/styles.js +290 -0
- package/src/components/organisms/Chatv2/Header/Header.stories.js +66 -0
- package/src/components/organisms/Chatv2/Header/index.js +93 -0
- package/src/components/organisms/Chatv2/Header/styles.js +49 -0
- package/src/components/organisms/Chatv2/index.js +281 -0
- package/src/components/organisms/Chatv2/styles.js +85 -0
- package/src/components/organisms/CompleteServices/CompleteServices.stories.js +91 -0
- package/src/components/organisms/CompleteServices/index.js +82 -0
- package/src/components/organisms/CompleteServices/styles.js +35 -0
- package/src/components/organisms/DashboardMetric/index.js +6 -3
- package/src/components/organisms/DragAndDropPhases/DragAndDropPhases.stories.js +13 -0
- package/src/components/organisms/DragAndDropPhases/index.js +336 -0
- package/src/components/organisms/DragAndDropPhases/styles.js +107 -0
- package/src/components/organisms/DragPrueba/DragPrueba.stories.js +12 -0
- package/src/components/organisms/DragPrueba/index.js +57 -0
- package/src/components/organisms/DragPrueba/styles.js +8 -0
- package/src/components/organisms/EditGroup/EditGroup.stories.js +20 -0
- package/src/components/organisms/EditGroup/index.js +321 -0
- package/src/components/organisms/EditGroup/styles.js +207 -0
- package/src/components/organisms/FullProductNameHeader/index.js +13 -1
- package/src/components/organisms/FullProductNamev2/FullProductNamev2.stories.js +28 -0
- package/src/components/organisms/FullProductNamev2/index.js +101 -0
- package/src/components/organisms/FullProductNamev2/styles.js +49 -0
- package/src/components/organisms/FullTabsMenuv2/FullTabsMenuv2.stories.js +22 -0
- package/src/components/organisms/FullTabsMenuv2/index.js +142 -0
- package/src/components/organisms/FullTabsMenuv2/styles.js +47 -0
- package/src/components/organisms/GridProducts/GridProducts.stories.js +682 -107
- package/src/components/organisms/ImageDataTablev2/ImageDataTablev2.stories.js +24 -0
- package/src/components/organisms/ImageDataTablev2/index.js +124 -0
- package/src/components/organisms/ImageDataTablev2/styles.js +18 -0
- package/src/components/organisms/ImagePreviewerv2/ImagePreviewerv2.stories.js +38 -0
- package/src/components/organisms/ImagePreviewerv2/index.js +22 -0
- package/src/components/organisms/ImagePreviewerv2/styles.js +7 -0
- package/src/components/organisms/ImageUploader/ImageUploader.stories.js +15 -0
- package/src/components/organisms/ImageUploader/index.js +62 -0
- package/src/components/organisms/ImageUploader/styles.js +29 -0
- package/src/components/organisms/ImageVisor/ImageVisor.stories.js +15 -0
- package/src/components/organisms/ImageVisor/index.js +143 -0
- package/src/components/organisms/ImageVisor/styles.js +106 -0
- package/src/components/organisms/InputGroup/index.js +292 -144
- package/src/components/organisms/InputGroup/styles.js +31 -0
- package/src/components/organisms/InputGroupv2/InputGroupv2.stories.js +31 -0
- package/src/components/organisms/InputGroupv2/index.js +296 -0
- package/src/components/organisms/InputGroupv2/styles.js +90 -0
- package/src/components/organisms/MandatoryBar/MandatoryBar.stories.js +18 -0
- package/src/components/organisms/MandatoryBar/index.js +31 -0
- package/src/components/organisms/MandatoryBar/styles.js +12 -0
- package/src/components/organisms/Modal/Modal.stories.js +2 -1
- package/src/components/organisms/Modal/index.js +9 -2
- package/src/components/organisms/Modal/styles.js +8 -1
- package/src/components/organisms/OrderDetail/utils/Table/utils.js +6 -16
- package/src/components/organisms/ProductImageModalv2/ProductImageModalv2.stories.js +90 -0
- package/src/components/organisms/ProductImageModalv2/index.js +105 -0
- package/src/components/organisms/ProductImageModalv2/styles.js +71 -0
- package/src/components/organisms/RenameImagesBar/RenameImagesBar.stories.js +18 -0
- package/src/components/organisms/RenameImagesBar/index.js +30 -0
- package/src/components/organisms/RenameImagesBar/styles.js +12 -0
- package/src/components/organisms/Table/Table.stories.js +609 -0
- package/src/components/organisms/Table/index.js +84 -0
- package/src/components/organisms/Table/styles.js +114 -0
- package/src/components/organisms/VersionSelectorv2/VersionSelectorv2.stories.js +15 -0
- package/src/components/organisms/VersionSelectorv2/index.js +105 -0
- package/src/components/organisms/VersionSelectorv2/styles.js +45 -0
- package/src/components/pages/Dashboard/Dashboard.stories.js +33 -38
- package/src/components/pages/Dashboard/index.js +36 -7
- package/src/components/pages/MultipleEdition/MultipleEdition.stories.js +17 -0
- package/src/components/pages/MultipleEdition/components/ImageUploader.js +62 -0
- package/src/components/pages/MultipleEdition/components/ImageUploaderStyles.js +29 -0
- package/src/components/pages/MultipleEdition/components/ImageVisor.js +143 -0
- package/src/components/pages/MultipleEdition/components/styles.js +106 -0
- package/src/components/pages/MultipleEdition/index.js +248 -0
- package/src/components/pages/MultipleEdition/saveData.js +92 -0
- package/src/components/pages/MultipleEdition/styles.js +201 -0
- package/src/components/pages/MultipleEdition/utils.js +1073 -0
- package/src/components/pages/ProductEditionv2/ProductEditionv2.stories.js +213 -0
- package/src/components/pages/ProductEditionv2/index.js +1758 -0
- package/src/components/pages/ProductEditionv2/styles.js +154 -0
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +56 -60
- package/src/components/pages/ProviderProductEdition/index.js +148 -133
- package/src/components/pages/ProviderProductEdition/styles.js +5 -1
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +4 -0
- package/src/components/pages/RetailerProductEdition/generateThumnail.js +21 -0
- package/src/components/pages/RetailerProductEdition/index.js +293 -300
- package/src/components/pages/RetailerProductEdition/styles.js +4 -0
- package/src/components/pages/RetailerProductEdition/utils.js +37 -0
- package/src/global-files/data.js +6 -10
- package/src/global-files/variables.js +6 -0
- package/src/index.js +12 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Container } from "./styles";
|
|
2
2
|
import IconInfo from "../../../assets/images/Icons/info.svg";
|
|
3
3
|
import TextField from "@mui/material/TextField";
|
|
4
|
-
import Tooltip, { tooltipClasses } from
|
|
5
|
-
import { styled } from
|
|
4
|
+
import Tooltip, { tooltipClasses } from "@mui/material/Tooltip";
|
|
5
|
+
import { styled } from "@mui/material/styles";
|
|
6
6
|
import { FontFamily, GlobalColors } from "../../../global-files/variables";
|
|
7
7
|
|
|
8
8
|
export const BoxAttribute = (props) => {
|
|
@@ -29,7 +29,7 @@ export const BoxAttribute = (props) => {
|
|
|
29
29
|
))(({ theme }) => ({
|
|
30
30
|
[`& .${tooltipClasses.tooltip}`]: {
|
|
31
31
|
backgroundColor: GlobalColors.white,
|
|
32
|
-
color:
|
|
32
|
+
color: "rgba(0, 0, 0, 0.87)",
|
|
33
33
|
boxShadow: theme.shadows[1],
|
|
34
34
|
fontSize: 11,
|
|
35
35
|
fontFamily: `${FontFamily.Roboto}, sans-serif`,
|
|
@@ -37,34 +37,41 @@ export const BoxAttribute = (props) => {
|
|
|
37
37
|
}));
|
|
38
38
|
return (
|
|
39
39
|
<>
|
|
40
|
-
|
|
40
|
+
<Container
|
|
41
41
|
id={id}
|
|
42
42
|
key={key}
|
|
43
43
|
className={className}
|
|
44
44
|
borderType={borderType}
|
|
45
45
|
>
|
|
46
|
-
<LightTooltip
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
</
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
46
|
+
<LightTooltip
|
|
47
|
+
title={
|
|
48
|
+
<div className="container-tooltip">
|
|
49
|
+
<p className="container-tooltip">{description}</p>
|
|
50
|
+
</div>
|
|
51
|
+
}
|
|
52
|
+
>
|
|
53
|
+
<Container className="">
|
|
54
|
+
<img className="icon" src={IconInfo} alt="iconInfo" />
|
|
55
|
+
</Container>
|
|
54
56
|
</LightTooltip>
|
|
55
|
-
<span>
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
57
|
+
<span>
|
|
58
|
+
{text}
|
|
59
|
+
<span className={required ? "required-text" : ""}>
|
|
60
|
+
{required ? "*" : ""}
|
|
61
|
+
</span>
|
|
62
|
+
</span>
|
|
63
|
+
<TextField
|
|
64
|
+
hiddenLabel
|
|
65
|
+
key={props.id}
|
|
66
|
+
name={props.id}
|
|
67
|
+
value={atributos[props.id]}
|
|
68
|
+
onChange={handleInputChange}
|
|
69
|
+
className="caja-borde"
|
|
70
|
+
variant="outlined"
|
|
71
|
+
size="small"
|
|
72
|
+
type="number"
|
|
73
|
+
required={required}
|
|
74
|
+
/>
|
|
68
75
|
</Container>
|
|
69
76
|
</>
|
|
70
77
|
);
|
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
import { Container, ContainerIcon } from "./styles";
|
|
2
2
|
import { Button } from "@mui/material";
|
|
3
3
|
|
|
4
|
-
export const BoxButtons = ({
|
|
5
|
-
|
|
4
|
+
export const BoxButtons = ({
|
|
5
|
+
showAdd,
|
|
6
|
+
onAdd,
|
|
7
|
+
onDelete,
|
|
8
|
+
isTheFirstBox,
|
|
9
|
+
index,
|
|
10
|
+
}) => {
|
|
6
11
|
return (
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
className="
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
</ContainerIcon>
|
|
24
|
-
</Button>
|
|
25
|
-
)}
|
|
26
|
-
</Container>
|
|
12
|
+
<Container index={index}>
|
|
13
|
+
{!isTheFirstBox && (
|
|
14
|
+
<Button variant="outlined" className="button-circle" onClick={onDelete}>
|
|
15
|
+
<ContainerIcon>
|
|
16
|
+
<span className="iconos-out">delete_forever</span>
|
|
17
|
+
</ContainerIcon>
|
|
18
|
+
</Button>
|
|
19
|
+
)}
|
|
20
|
+
{showAdd && (
|
|
21
|
+
<Button onClick={onAdd} variant="outlined" className="button-circle">
|
|
22
|
+
<ContainerIcon>
|
|
23
|
+
<span className="iconos-out iconos-grises">add</span>
|
|
24
|
+
</ContainerIcon>
|
|
25
|
+
</Button>
|
|
26
|
+
)}
|
|
27
|
+
</Container>
|
|
27
28
|
);
|
|
28
29
|
};
|
|
@@ -27,7 +27,7 @@ export const CarouselImagesLogin = ({
|
|
|
27
27
|
img2.src = images[i];
|
|
28
28
|
const circulo_actual = Array.from(circulos).find((el) => el.id === i);
|
|
29
29
|
Array.from(circulos).forEach((cir) => cir.classList.remove("resaltado"));
|
|
30
|
-
circulo_actual
|
|
30
|
+
circulo_actual?.classList.add("resaltado");
|
|
31
31
|
img1.classList.add("right");
|
|
32
32
|
img2.classList.add("active");
|
|
33
33
|
i++;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EditionActiveImagev2 } from "./index";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: "Components/molecules/EditionActiveImagev2",
|
|
5
|
+
component: EditionActiveImagev2,
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
const Template = (args) => <EditionActiveImagev2 {...args} />;
|
|
9
|
+
|
|
10
|
+
export const EditionActiveImagev2Default = Template.bind({});
|
|
11
|
+
|
|
12
|
+
EditionActiveImagev2Default.args = {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Container } from "./styles";
|
|
2
|
+
import { Button } from "../../atoms/GeneralButton/index";
|
|
3
|
+
import { ProductImagev2 } from "../../atoms/ProductImagev2";
|
|
4
|
+
|
|
5
|
+
export const EditionActiveImagev2 = ({ img, altText, setShowModal }) => {
|
|
6
|
+
return (
|
|
7
|
+
<Container>
|
|
8
|
+
<ProductImagev2 img={img} imageType="main-image" altText={altText} />
|
|
9
|
+
<Button
|
|
10
|
+
buttonType="open-modal-button"
|
|
11
|
+
onClick={() => setShowModal(true)}
|
|
12
|
+
/>
|
|
13
|
+
</Container>
|
|
14
|
+
);
|
|
15
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import EditionTabs from "./index";
|
|
2
|
+
import { BrowserRouter } from "react-router-dom";
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: "Components/molecules/EditionTabs",
|
|
6
|
+
component: EditionTabs,
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
const Template = (args) => <EditionTabs {...args} />;
|
|
10
|
+
|
|
11
|
+
export const EditionTabsDefault = Template.bind({});
|
|
12
|
+
EditionTabsDefault.args = {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { Button } from "./styles";
|
|
3
|
+
|
|
4
|
+
const options = [
|
|
5
|
+
{ label: "Descripción", key: "description" },
|
|
6
|
+
{ label: "Ficha técnica", key: "datasheet" },
|
|
7
|
+
{ label: "Imágenes", key: "images" },
|
|
8
|
+
];
|
|
9
|
+
export const EditionTabs = (props) => {
|
|
10
|
+
|
|
11
|
+
const [section, setSection] = useState("description");
|
|
12
|
+
|
|
13
|
+
function changeSection(section = "description") {
|
|
14
|
+
setSection(section);
|
|
15
|
+
if (props.getSection) props.getSection(section);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
return (
|
|
19
|
+
<>
|
|
20
|
+
{options.map(({ label, key }, i) => (
|
|
21
|
+
<Button
|
|
22
|
+
key={key}
|
|
23
|
+
onClick={() => changeSection(key)}
|
|
24
|
+
isActive={section === key}
|
|
25
|
+
>
|
|
26
|
+
{label}
|
|
27
|
+
</Button>
|
|
28
|
+
))}
|
|
29
|
+
</>
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
|
|
3
|
+
export const Button = styled.button`
|
|
4
|
+
background: var(--grey-light, #F0F0F0);
|
|
5
|
+
color: var(--black-main, #262626);
|
|
6
|
+
font-family: Roboto;
|
|
7
|
+
font-size: 12px;
|
|
8
|
+
font-style: normal;
|
|
9
|
+
font-weight: 500;
|
|
10
|
+
line-height: normal;
|
|
11
|
+
padding: 10px 20px;
|
|
12
|
+
border: 0;
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
&:first-child {
|
|
15
|
+
border-radius: 17px 0 0 17px;
|
|
16
|
+
}
|
|
17
|
+
&:last-child {
|
|
18
|
+
border-radius: 0 17px 17px 0;
|
|
19
|
+
}
|
|
20
|
+
${({ isActive }) => isActive && `
|
|
21
|
+
color: #FFFFFF;
|
|
22
|
+
background: var(--purple-medium, #8A6CAA);
|
|
23
|
+
`}
|
|
24
|
+
`;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FeaturesBarv2 } from ".";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: "Components/molecules/FeaturesBarv2",
|
|
5
|
+
component: FeaturesBarv2,
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
const Template = (args) => <FeaturesBarv2 {...args} />;
|
|
9
|
+
|
|
10
|
+
export const FeaturesBarv2Default = Template.bind({});
|
|
11
|
+
|
|
12
|
+
FeaturesBarv2Default.args = {
|
|
13
|
+
features: [
|
|
14
|
+
{ feature: "Prov", value: "Unilever" },
|
|
15
|
+
{ feature: "Vendor", value: "1234567890" },
|
|
16
|
+
{ feature: "SKU", value: "1234567890" },
|
|
17
|
+
{ feature: "UPC", value: "1234567890" },
|
|
18
|
+
{ feature: "Categoría", value: "Desodorantes Caballero y Dama" },
|
|
19
|
+
],
|
|
20
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Container } from "./styles";
|
|
2
|
+
import { useEffect, useState } from "react";
|
|
3
|
+
import { FeatureTagv2 } from "../../atoms/FeatureTagv2";
|
|
4
|
+
|
|
5
|
+
export const FeaturesBarv2 = ({ features, contClassName ,containerClassName }) => {
|
|
6
|
+
const [isIE, setIsIE] = useState(false);
|
|
7
|
+
|
|
8
|
+
useEffect(() => {
|
|
9
|
+
setIsIE(
|
|
10
|
+
window.navigator.userAgentString?.indexOf("MSIE") > -1 ||
|
|
11
|
+
window.navigator.userAgentString?.indexOf("rv:") > -1
|
|
12
|
+
);
|
|
13
|
+
}, []);
|
|
14
|
+
|
|
15
|
+
return (
|
|
16
|
+
<Container containerClassName={containerClassName} className={isIE ? "IEClass" : "gapClass"} >
|
|
17
|
+
{features !== undefined &&
|
|
18
|
+
features.map(
|
|
19
|
+
(feature, index) =>
|
|
20
|
+
feature.value && (
|
|
21
|
+
<FeatureTagv2
|
|
22
|
+
key={index}
|
|
23
|
+
feature={feature.feature}
|
|
24
|
+
value={feature.value}
|
|
25
|
+
contClassName={contClassName}
|
|
26
|
+
tagClassName={containerClassName}
|
|
27
|
+
/>
|
|
28
|
+
)
|
|
29
|
+
)}
|
|
30
|
+
</Container>
|
|
31
|
+
);
|
|
32
|
+
};
|
|
@@ -5,6 +5,9 @@ import { Button } from "../../atoms/GeneralButton";
|
|
|
5
5
|
import { ValidationPanel } from "../../atoms/ValidationPanel";
|
|
6
6
|
import { useState, useEffect } from "react";
|
|
7
7
|
import Select from "../../atoms/Select";
|
|
8
|
+
import rejectIcon from "../../../assets/images/generalButton/rejectIcon.svg";
|
|
9
|
+
import acceptIcon from "../../../assets/images/generalButton/acceptIcon.svg";
|
|
10
|
+
import { Tooltip } from "../../atoms/Tooltip";
|
|
8
11
|
|
|
9
12
|
export const GalleryElement = ({
|
|
10
13
|
image,
|
|
@@ -21,8 +24,25 @@ export const GalleryElement = ({
|
|
|
21
24
|
setCheckAll,
|
|
22
25
|
auditImages,
|
|
23
26
|
compare,
|
|
27
|
+
updateApprovedInputsImages,
|
|
24
28
|
}) => {
|
|
25
29
|
const [showValidationPanel, setShowValidationPanel] = useState(false);
|
|
30
|
+
const [showDivStates, setShowDivStates] = useState({});
|
|
31
|
+
const [imageStates, setImageStates] = useState({});
|
|
32
|
+
|
|
33
|
+
const handleImgClick = (inputId) => {
|
|
34
|
+
setShowDivStates((prevStates) => ({
|
|
35
|
+
...prevStates,
|
|
36
|
+
[inputId]: !prevStates[inputId],
|
|
37
|
+
}));
|
|
38
|
+
};
|
|
39
|
+
const changeImageBtn = (inputId, action) => {
|
|
40
|
+
setImageStates((prevStates) => ({
|
|
41
|
+
...prevStates,
|
|
42
|
+
[inputId]: action === "validate",
|
|
43
|
+
}));
|
|
44
|
+
updateApprovedInputsImages(inputId);
|
|
45
|
+
};
|
|
26
46
|
|
|
27
47
|
const closeValidationPanel = (e) => {
|
|
28
48
|
if (
|
|
@@ -57,7 +77,7 @@ export const GalleryElement = ({
|
|
|
57
77
|
const isEquals = (value, auditValue) => {
|
|
58
78
|
return value === auditValue;
|
|
59
79
|
};
|
|
60
|
-
|
|
80
|
+
//TOMAR EL image_id
|
|
61
81
|
return (
|
|
62
82
|
<Container
|
|
63
83
|
className={`${gridLayout ? "grid-gallery" : "row-gallery"} ${
|
|
@@ -141,6 +161,61 @@ export const GalleryElement = ({
|
|
|
141
161
|
});
|
|
142
162
|
}}
|
|
143
163
|
/>
|
|
164
|
+
|
|
165
|
+
{image?.isApproved === false && (
|
|
166
|
+
<div
|
|
167
|
+
style={{
|
|
168
|
+
display: "flex",
|
|
169
|
+
"justify-content": "center",
|
|
170
|
+
"align-items": "center",
|
|
171
|
+
}}
|
|
172
|
+
>
|
|
173
|
+
<Tooltip
|
|
174
|
+
componentTooltip={
|
|
175
|
+
<>
|
|
176
|
+
<p>
|
|
177
|
+
<b>Comentarios:</b>
|
|
178
|
+
</p>
|
|
179
|
+
<p>{image.comment}</p>
|
|
180
|
+
</>
|
|
181
|
+
}
|
|
182
|
+
children={
|
|
183
|
+
!image.isApproved && (
|
|
184
|
+
<img
|
|
185
|
+
src={
|
|
186
|
+
imageStates[image.image_id]
|
|
187
|
+
? acceptIcon
|
|
188
|
+
: rejectIcon
|
|
189
|
+
}
|
|
190
|
+
alt={"botón rechazar"}
|
|
191
|
+
style={{ cursor: "pointer" }}
|
|
192
|
+
onClick={() => handleImgClick(image.image_id)}
|
|
193
|
+
/>
|
|
194
|
+
)
|
|
195
|
+
}
|
|
196
|
+
classNameTooltip={"container-tooltip"}
|
|
197
|
+
/>
|
|
198
|
+
{showDivStates[image.image_id] && (
|
|
199
|
+
<div className="btnReviewState">
|
|
200
|
+
<div>
|
|
201
|
+
<button
|
|
202
|
+
id="aceptbtn"
|
|
203
|
+
onClick={() =>
|
|
204
|
+
changeImageBtn(image.image_id, "validate")
|
|
205
|
+
}
|
|
206
|
+
>
|
|
207
|
+
<img
|
|
208
|
+
src={acceptIcon}
|
|
209
|
+
alt="acept button"
|
|
210
|
+
style={{ cursor: "pointer" }}
|
|
211
|
+
/>
|
|
212
|
+
Validar
|
|
213
|
+
</button>
|
|
214
|
+
</div>
|
|
215
|
+
</div>
|
|
216
|
+
)}
|
|
217
|
+
</div>
|
|
218
|
+
)}
|
|
144
219
|
</>
|
|
145
220
|
)}
|
|
146
221
|
</div>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { GalleryElementv2 } from "./index";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: "Components/molecules/GalleryElementv2",
|
|
5
|
+
component: GalleryElementv2,
|
|
6
|
+
argTypes: {
|
|
7
|
+
gridLayout: {
|
|
8
|
+
options: [true, false],
|
|
9
|
+
type: "boolean",
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const Template = (args) => <GalleryElementv2 {...args} />;
|
|
15
|
+
|
|
16
|
+
export const GalleryElementv2Default = Template.bind({});
|
|
17
|
+
|
|
18
|
+
GalleryElementv2Default.args = {
|
|
19
|
+
data: {
|
|
20
|
+
image:
|
|
21
|
+
"https://image.shutterstock.com/image-illustration/3d-render-generic-drug-pills-260nw-709112806.jpg",
|
|
22
|
+
altText: "testing image",
|
|
23
|
+
name: "Hero.jpg",
|
|
24
|
+
size: "1000x1000",
|
|
25
|
+
format: "JPG",
|
|
26
|
+
resolution: "300ppi",
|
|
27
|
+
imageType: "Tipo de imagen",
|
|
28
|
+
identificator: "F26",
|
|
29
|
+
},
|
|
30
|
+
};
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { Container } from "./styles";
|
|
2
|
+
import { CheckBox } from "../../atoms/CheckBox";
|
|
3
|
+
import { useState, useEffect } from "react";
|
|
4
|
+
import Selectv2 from "../../atoms/Selectv2";
|
|
5
|
+
import { ProductImagev2 } from "../../atoms/ProductImagev2";
|
|
6
|
+
|
|
7
|
+
export const GalleryElementv2 = ({
|
|
8
|
+
validation = "null-button",
|
|
9
|
+
image,
|
|
10
|
+
gridLayout = false,
|
|
11
|
+
id = "chk-default",
|
|
12
|
+
label,
|
|
13
|
+
number,
|
|
14
|
+
imageInputs,
|
|
15
|
+
imageType,
|
|
16
|
+
imagePackagingType,
|
|
17
|
+
imageShotType,
|
|
18
|
+
changeImage,
|
|
19
|
+
selectedImages,
|
|
20
|
+
setSelectedImages,
|
|
21
|
+
setCheckAll,
|
|
22
|
+
auditImages,
|
|
23
|
+
compare,
|
|
24
|
+
}) => {
|
|
25
|
+
const [statusValidation, setStatusValidation] = useState(validation);
|
|
26
|
+
const [showValidationPanel, setShowValidationPanel] = useState(false);
|
|
27
|
+
|
|
28
|
+
const closeValidationPanel = (e) => {
|
|
29
|
+
if (
|
|
30
|
+
!e.target.closest("#validation-panel") ||
|
|
31
|
+
(e.target.closest(".validation-option") && showValidationPanel)
|
|
32
|
+
) {
|
|
33
|
+
document.removeEventListener("click", closeValidationPanel, false);
|
|
34
|
+
setShowValidationPanel(false);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
const checkOnChange = (e) => {
|
|
39
|
+
const chkGlobal = document.getElementById("check-all-images");
|
|
40
|
+
const checkboxList = document.querySelectorAll("[id^='gallery-element-']");
|
|
41
|
+
let temp = selectedImages.slice();
|
|
42
|
+
e.target.checked
|
|
43
|
+
? temp.push(image)
|
|
44
|
+
: (temp = temp.filter((img) => image.id !== img.id));
|
|
45
|
+
let counter = 0;
|
|
46
|
+
checkboxList?.forEach((chk) => chk.checked && counter++);
|
|
47
|
+
chkGlobal.checked = checkboxList.length === counter;
|
|
48
|
+
setCheckAll(checkboxList.length === counter);
|
|
49
|
+
setSelectedImages(temp);
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
useEffect(() => {
|
|
53
|
+
if (showValidationPanel) {
|
|
54
|
+
document.addEventListener("click", closeValidationPanel, false);
|
|
55
|
+
}
|
|
56
|
+
}, [showValidationPanel]);
|
|
57
|
+
|
|
58
|
+
const isEquals = (value, auditValue) => {
|
|
59
|
+
return value === auditValue;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
return (
|
|
63
|
+
|
|
64
|
+
<Container
|
|
65
|
+
className={`${gridLayout ? "grid-gallery" : "row-gallery"} ${
|
|
66
|
+
compare && !isEquals(image?.uuid, auditImages?.values[number]?.uuid)
|
|
67
|
+
? "audit-class"
|
|
68
|
+
: ""
|
|
69
|
+
}`}
|
|
70
|
+
>
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
<div className="buttons-container">
|
|
74
|
+
<CheckBox id={id} label={label} onChange={(e) => checkOnChange(e)} />
|
|
75
|
+
</div>
|
|
76
|
+
<div className="image-container">
|
|
77
|
+
<ProductImagev2
|
|
78
|
+
img={compare ? auditImages?.values[number]?.src : image?.src}
|
|
79
|
+
altText={image?.altText}
|
|
80
|
+
imageType={`catalogue-image-${gridLayout ? "big" : "small"}-size`}
|
|
81
|
+
/>
|
|
82
|
+
<div className="information-container">
|
|
83
|
+
<p>{image?.name}</p>
|
|
84
|
+
{!gridLayout && (
|
|
85
|
+
<>
|
|
86
|
+
<p>
|
|
87
|
+
{image.width}x{image.height}
|
|
88
|
+
</p>
|
|
89
|
+
<p>{image.ext}</p>
|
|
90
|
+
<Selectv2
|
|
91
|
+
width="100%"
|
|
92
|
+
placeholder="Tipo de toma"
|
|
93
|
+
options={imageInputs?.filter(
|
|
94
|
+
(img) => img.value === image.image_id || !img.active
|
|
95
|
+
)}
|
|
96
|
+
valueSelected={image.image_id}
|
|
97
|
+
onChange={(e) => {
|
|
98
|
+
changeImage({
|
|
99
|
+
action: "changeImageInfo",
|
|
100
|
+
attribute: "image_id",
|
|
101
|
+
value: +e.target.value,
|
|
102
|
+
index: number,
|
|
103
|
+
|
|
104
|
+
});
|
|
105
|
+
}}
|
|
106
|
+
/>
|
|
107
|
+
<Selectv2
|
|
108
|
+
width="100%"
|
|
109
|
+
placeholder="Tipo de imagen"
|
|
110
|
+
options={imageType}
|
|
111
|
+
valueSelected={image.image_type}
|
|
112
|
+
onChange={(e) => {
|
|
113
|
+
changeImage({
|
|
114
|
+
action: "changeImageInfo",
|
|
115
|
+
attribute: "image_type",
|
|
116
|
+
value: +e.target.value,
|
|
117
|
+
index: number,
|
|
118
|
+
});
|
|
119
|
+
}}
|
|
120
|
+
/>
|
|
121
|
+
|
|
122
|
+
<Selectv2
|
|
123
|
+
width="100%"
|
|
124
|
+
placeholder="Tipo de empaque"
|
|
125
|
+
options={imagePackagingType}
|
|
126
|
+
valueSelected={image.packing_type}
|
|
127
|
+
onChange={(e) => {
|
|
128
|
+
changeImage({
|
|
129
|
+
action: "changeImageInfo",
|
|
130
|
+
attribute: "packing_type",
|
|
131
|
+
value: +e.target.value,
|
|
132
|
+
index: number,
|
|
133
|
+
});
|
|
134
|
+
}}
|
|
135
|
+
/>
|
|
136
|
+
</>
|
|
137
|
+
)}
|
|
138
|
+
</div>
|
|
139
|
+
</div>
|
|
140
|
+
</Container>
|
|
141
|
+
);
|
|
142
|
+
};
|