contentoh-components-library 21.4.69 → 21.4.71
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/Icons/infoNR.svg +8 -0
- package/dist/assets/images/flagsv2/highPriority.svg +3 -0
- package/dist/assets/images/flagsv2/lowPriority.svg +3 -0
- package/dist/assets/images/flagsv2/mediumPriority.svg +3 -0
- package/dist/assets/images/flagsv2/noPriority.svg +3 -0
- package/dist/assets/images/generalButton/closeIconWhite.svg +4 -0
- package/dist/assets/images/generalButton/closeIconv2.svg +4 -0
- package/dist/components/atoms/CharsMissing/Wysiwyg.stories.js +30 -0
- package/dist/components/atoms/CharsMissing/index.js +89 -0
- package/dist/components/atoms/CharsMissing/styles.js +33 -0
- package/dist/components/atoms/FeatureTagv2/FeatureTagv2.stories.js +32 -0
- package/dist/components/atoms/FeatureTagv2/index.js +29 -0
- package/dist/components/atoms/FeatureTagv2/styles.js +22 -0
- package/dist/components/atoms/GeneralButton/styles.js +6 -2
- package/dist/components/atoms/GeneralInputv2/GeneralInputv2.stories.js +50 -0
- package/dist/components/atoms/GeneralInputv2/index.js +188 -0
- package/dist/components/atoms/GeneralInputv2/styles.js +29 -0
- package/dist/components/atoms/InputFormatter/styles.js +3 -3
- package/dist/components/atoms/InputFormatterv2/Wysiwyg.stories.js +30 -0
- package/dist/components/atoms/InputFormatterv2/index.js +182 -0
- package/dist/components/atoms/InputFormatterv2/styles.js +33 -0
- package/dist/components/atoms/InputImages/InputImages.stories.js +34 -0
- package/dist/components/atoms/InputImages/index.js +46 -0
- package/dist/components/atoms/InputImages/styles.js +20 -0
- package/dist/components/atoms/NumberMandatory/NumberMandatory.stories.js +34 -0
- package/dist/components/atoms/NumberMandatory/index.js +35 -0
- package/dist/components/atoms/NumberMandatory/styles.js +20 -0
- package/dist/components/atoms/PriorityFlagv2/PriorityFlagv2.stories.js +38 -0
- package/dist/components/atoms/PriorityFlagv2/index.js +37 -0
- package/dist/components/atoms/PriorityFlagv2/styles.js +18 -0
- package/dist/components/atoms/ProductImagev2/ProductImagev2.stories.js +39 -0
- package/dist/components/atoms/ProductImagev2/index.js +34 -0
- package/dist/components/atoms/ProductImagev2/styles.js +18 -0
- package/dist/components/atoms/Progress/Progress.stories.js +49 -0
- package/dist/components/atoms/Progress/index.js +74 -0
- package/dist/components/atoms/Progress/styles.js +30 -0
- package/dist/components/atoms/ScreenHeaderv2/ScreenHeaderv2.stories.js +67 -0
- package/dist/components/atoms/ScreenHeaderv2/index.js +169 -0
- package/dist/components/atoms/ScreenHeaderv2/styles.js +40 -0
- package/dist/components/atoms/Selectv2/VersionSelect.js +38 -0
- package/dist/components/atoms/Selectv2/index.js +40 -0
- package/dist/components/atoms/Selectv2/style.js +38 -0
- package/dist/components/atoms/TabSectionv2/TabSection.stories.js +39 -0
- package/dist/components/atoms/TabSectionv2/index.js +26 -0
- package/dist/components/atoms/TabSectionv2/styles.js +20 -0
- package/dist/components/atoms/TooltipLight/Tooltip.stories.js +36 -0
- package/dist/components/atoms/TooltipLight/index.js +117 -0
- package/dist/components/atoms/TooltipLight/styles.js +23 -0
- package/dist/components/atoms/WordsMissing/Wysiwyg.stories.js +30 -0
- package/dist/components/atoms/WordsMissing/index.js +89 -0
- package/dist/components/atoms/WordsMissing/styles.js +20 -0
- package/dist/components/molecules/AsignationInfo/AsignationInfo.stories.js +34 -0
- package/dist/components/molecules/AsignationInfo/index.js +137 -0
- package/dist/components/molecules/AsignationInfo/styles.js +20 -0
- package/dist/components/molecules/EditionActiveImagev2/EditionActiveImagev2.stories.js +28 -0
- package/dist/components/molecules/EditionActiveImagev2/index.js +34 -0
- package/dist/components/molecules/EditionActiveImagev2/styles.js +18 -0
- package/dist/components/molecules/FeaturesBarv2/FeaturesBarv2.stories.js +45 -0
- package/dist/components/molecules/FeaturesBarv2/index.js +49 -0
- package/dist/components/molecules/FeaturesBarv2/styles.js +18 -0
- package/dist/components/molecules/GalleryElementv2/GalleryElementv2.stories.js +45 -0
- package/dist/components/molecules/GalleryElementv2/index.js +164 -0
- package/dist/components/molecules/GalleryElementv2/styles.js +20 -0
- package/dist/components/molecules/GalleryHeaderv2/GalleryHeaderv2.stories.js +28 -0
- package/dist/components/molecules/GalleryHeaderv2/index.js +61 -0
- package/dist/components/molecules/GalleryHeaderv2/styles.js +20 -0
- package/dist/components/molecules/HeaderTopv2/HeaderTopv2.stories.js +27 -0
- package/dist/components/molecules/HeaderTopv2/index.js +123 -0
- package/dist/components/molecules/HeaderTopv2/styles.js +18 -0
- package/dist/components/molecules/ImageSelectorv2/ImageSelectorv2.stories.js +55 -0
- package/dist/components/molecules/ImageSelectorv2/index.js +36 -0
- package/dist/components/molecules/ImageSelectorv2/styles.js +18 -0
- package/dist/components/molecules/Phase/Phase.stories.js +65 -0
- package/dist/components/molecules/Phase/index.js +104 -0
- package/dist/components/molecules/Phase/styles.js +24 -0
- package/dist/components/molecules/ProductNameHeaderv2/ProductNameHeaderv2.stories.js +65 -0
- package/dist/components/molecules/ProductNameHeaderv2/index.js +24 -0
- package/dist/components/molecules/ProductNameHeaderv2/styles.js +18 -0
- package/dist/components/molecules/ProductSkuStatus/ProductSkuStatus.stories.js +65 -0
- package/dist/components/molecules/ProductSkuStatus/index.js +36 -0
- package/dist/components/molecules/ProductSkuStatus/styles.js +18 -0
- package/dist/components/molecules/RetailerSelectorv2/RetailerSelectorv2.stories.js +48 -0
- package/dist/components/molecules/RetailerSelectorv2/index.js +109 -0
- package/dist/components/molecules/RetailerSelectorv2/styles.js +20 -0
- package/dist/components/molecules/ServiceDataValidator/ServiceDataValidator.stories.js +99 -0
- package/dist/components/molecules/ServiceDataValidator/index.js +57 -0
- package/dist/components/molecules/ServiceDataValidator/styles.js +20 -0
- package/dist/components/molecules/StatusRetailer/StatusAsignationInfo.stories.js +34 -0
- package/dist/components/molecules/StatusRetailer/index.js +74 -0
- package/dist/components/molecules/StatusRetailer/styles.js +20 -0
- package/dist/components/molecules/TabsMenuv2/TabsMenuv2.stories.js +35 -0
- package/dist/components/molecules/TabsMenuv2/index.js +145 -0
- package/dist/components/molecules/TabsMenuv2/styles.js +18 -0
- package/dist/components/molecules/TagAndInputv2/TagAndInputv2.stories.js +41 -0
- package/dist/components/molecules/TagAndInputv2/index.js +92 -0
- package/dist/components/molecules/TagAndInputv2/styles.js +29 -0
- package/dist/components/molecules/Validation/Validation.stories.js +28 -0
- package/dist/components/molecules/Validation/index.js +89 -0
- package/dist/components/molecules/Validation/styles.js +18 -0
- package/dist/components/molecules/VersionItemv2/VersionItemv2.stories.js +28 -0
- package/dist/components/molecules/VersionItemv2/index.js +74 -0
- package/dist/components/molecules/VersionItemv2/styles.js +20 -0
- package/dist/components/organisms/BarButtons/BarButtons.stories.js +30 -0
- package/dist/components/organisms/BarButtons/index.js +186 -0
- package/dist/components/organisms/BarButtons/styles.js +24 -0
- package/dist/components/organisms/Chatv2/ChatLists/ChatLists.stories.js +83 -0
- package/dist/components/organisms/Chatv2/ChatLists/index.js +160 -0
- package/dist/components/organisms/Chatv2/ChatLists/styles.js +29 -0
- package/dist/components/organisms/Chatv2/Chatv2.stories.js +194 -0
- package/dist/components/organisms/Chatv2/ContainerItems/ContainerItems.stories.js +176 -0
- package/dist/components/organisms/Chatv2/ContainerItems/index.js +556 -0
- package/dist/components/organisms/Chatv2/ContainerItems/styles.js +20 -0
- package/dist/components/organisms/Chatv2/ContentChat/ContentChat.stories.js +142 -0
- package/dist/components/organisms/Chatv2/ContentChat/index.js +1679 -0
- package/dist/components/organisms/Chatv2/ContentChat/styles.js +20 -0
- package/dist/components/organisms/Chatv2/Footer/Footer.stories.js +43 -0
- package/dist/components/organisms/Chatv2/Footer/index.js +984 -0
- package/dist/components/organisms/Chatv2/Footer/styles.js +32 -0
- package/dist/components/organisms/Chatv2/Header/Header.stories.js +96 -0
- package/dist/components/organisms/Chatv2/Header/index.js +83 -0
- package/dist/components/organisms/Chatv2/Header/styles.js +20 -0
- package/dist/components/organisms/Chatv2/index.js +306 -0
- package/dist/components/organisms/Chatv2/styles.js +34 -0
- package/dist/components/organisms/CompleteServices/CompleteServices.stories.js +100 -0
- package/dist/components/organisms/CompleteServices/index.js +93 -0
- package/dist/components/organisms/CompleteServices/styles.js +20 -0
- package/dist/components/organisms/DragAndDropPhases/DragAndDropPhases.stories.js +28 -0
- package/dist/components/organisms/DragAndDropPhases/index.js +110 -0
- package/dist/components/organisms/DragAndDropPhases/styles.js +20 -0
- package/dist/components/organisms/DragPrueba/DragPrueba.stories.js +28 -0
- package/dist/components/organisms/DragPrueba/index.js +95 -0
- package/dist/components/organisms/DragPrueba/styles.js +20 -0
- package/dist/components/organisms/FullProductNamev2/FullProductNamev2.stories.js +54 -0
- package/dist/components/organisms/FullProductNamev2/index.js +112 -0
- package/dist/components/organisms/FullProductNamev2/styles.js +20 -0
- package/dist/components/organisms/FullTabsMenuv2/FullTabsMenuv2.stories.js +39 -0
- package/dist/components/organisms/FullTabsMenuv2/index.js +168 -0
- package/dist/components/organisms/FullTabsMenuv2/styles.js +18 -0
- package/dist/components/organisms/ImageDataTablev2/ImageDataTablev2.stories.js +50 -0
- package/dist/components/organisms/ImageDataTablev2/index.js +128 -0
- package/dist/components/organisms/ImageDataTablev2/styles.js +26 -0
- package/dist/components/organisms/ImagePreviewerv2/ImagePreviewerv2.stories.js +48 -0
- package/dist/components/organisms/ImagePreviewerv2/index.js +36 -0
- package/dist/components/organisms/ImagePreviewerv2/styles.js +18 -0
- package/dist/components/organisms/InputGroupv2/InputGroupv2.stories.js +73 -0
- package/dist/components/organisms/InputGroupv2/index.js +228 -0
- package/dist/components/organisms/InputGroupv2/styles.js +28 -0
- package/dist/components/organisms/MandatoryBar/MandatoryBar.stories.js +31 -0
- package/dist/components/organisms/MandatoryBar/index.js +38 -0
- package/dist/components/organisms/MandatoryBar/styles.js +20 -0
- package/dist/components/organisms/ProductImageModalv2/ProductImageModalv2.stories.js +153 -0
- package/dist/components/organisms/ProductImageModalv2/index.js +106 -0
- package/dist/components/organisms/ProductImageModalv2/styles.js +20 -0
- package/dist/components/organisms/RenameImagesBar/RenameImagesBar.stories.js +31 -0
- package/dist/components/organisms/RenameImagesBar/index.js +38 -0
- package/dist/components/organisms/RenameImagesBar/styles.js +20 -0
- package/dist/components/organisms/VersionSelector/index.js +2 -4
- package/dist/components/organisms/VersionSelectorv2/VersionSelectorv2.stories.js +32 -0
- package/dist/components/organisms/VersionSelectorv2/index.js +166 -0
- package/dist/components/organisms/VersionSelectorv2/styles.js +20 -0
- package/dist/components/pages/ProductEditionv2/ProductEditionv2.stories.js +222 -0
- package/dist/components/pages/ProductEditionv2/index.js +2495 -0
- package/dist/components/pages/ProductEditionv2/styles.js +23 -0
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +34 -38
- package/dist/components/pages/ProviderProductEdition/index.js +63 -52
- package/dist/global-files/variables.js +3 -1
- package/package.json +1 -1
- package/src/assets/images/Icons/infoNR.svg +8 -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/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/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/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/styles.js +7 -3
- 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/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/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/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/TabSection/index.js +1 -1
- 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/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/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/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/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/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/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 +37 -0
- package/src/components/molecules/Phase/index.js +56 -0
- package/src/components/molecules/Phase/styles.js +82 -0
- 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/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/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/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/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/DragAndDropPhases/DragAndDropPhases.stories.js +12 -0
- package/src/components/organisms/DragAndDropPhases/index.js +67 -0
- package/src/components/organisms/DragAndDropPhases/styles.js +20 -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/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/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/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/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/VersionSelector/index.js +1 -2
- 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/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 +39 -29
- package/src/components/pages/ProviderProductEdition/index.js +29 -21
- package/src/global-files/data.js +1 -3
- package/src/global-files/variables.js +2 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { InputGroupv2 } from "./index";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: "Components/organisms/InputGroupv2",
|
|
5
|
+
component: InputGroupv2,
|
|
6
|
+
argTypes: {
|
|
7
|
+
activeSection: {
|
|
8
|
+
options: [true, false],
|
|
9
|
+
control: { type: "boolean" },
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const Template = (args) => <InputGroupv2 {...args} />;
|
|
15
|
+
|
|
16
|
+
export const InputGroupDefault = Template.bind({});
|
|
17
|
+
InputGroupDefault.args = {
|
|
18
|
+
InputGroupv2: {
|
|
19
|
+
name: "Información básica del producto",
|
|
20
|
+
inputs: [
|
|
21
|
+
{ label: "Item", value: "1234567890", placeholder: "Ingresar valor" },
|
|
22
|
+
{ label: "Item", value: "1234567890", placeholder: "Ingresar valor" },
|
|
23
|
+
{ label: "Item", value: "1234567890", placeholder: "Ingresar valor" },
|
|
24
|
+
{ label: "Item", value: "1234567890", placeholder: "Ingresar valor" },
|
|
25
|
+
{ label: "Item", value: "1234567890", placeholder: "Ingresar valor" },
|
|
26
|
+
{ label: "Item", value: "1234567890", placeholder: "Ingresar valor" },
|
|
27
|
+
{ label: "Item", value: "1234567890", placeholder: "Ingresar valor" },
|
|
28
|
+
{ label: "Item", value: "1234567890", placeholder: "Ingresar valor" },
|
|
29
|
+
],
|
|
30
|
+
},
|
|
31
|
+
};
|
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
import { Container } from "./styles";
|
|
2
|
+
import { TagAndInputv2 } from "../../molecules/TagAndInputv2";
|
|
3
|
+
import { ScreenHeaderv2 } from "../../atoms/ScreenHeaderv2";
|
|
4
|
+
import { useState, useEffect } from "react";
|
|
5
|
+
import { Box } from "../Box";
|
|
6
|
+
|
|
7
|
+
export const InputGroupv2 = ({
|
|
8
|
+
inputGroup = {},
|
|
9
|
+
auditInputGroup,
|
|
10
|
+
activeSection,
|
|
11
|
+
dataInputs = {},
|
|
12
|
+
auditInputs = {},
|
|
13
|
+
updatedDescriptions,
|
|
14
|
+
setUpdatedDescriptions,
|
|
15
|
+
updatedDatasheets,
|
|
16
|
+
setUpdatedDatasheets,
|
|
17
|
+
articleId,
|
|
18
|
+
version,
|
|
19
|
+
dinamicHeight,
|
|
20
|
+
compare,
|
|
21
|
+
activeRetailer,
|
|
22
|
+
setUpdatedBoxData,
|
|
23
|
+
showMissingChars,
|
|
24
|
+
}) => {
|
|
25
|
+
const inputTypeValue = (type) => {
|
|
26
|
+
switch (type) {
|
|
27
|
+
case "Booleano":
|
|
28
|
+
return "checkbox";
|
|
29
|
+
case "Numérico":
|
|
30
|
+
return "number";
|
|
31
|
+
default:
|
|
32
|
+
return "text";
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
const [showBox, setShowBox] = useState(false);
|
|
36
|
+
|
|
37
|
+
const isEquals = (dataInputsVal, auditInputsVal) => {
|
|
38
|
+
const result = dataInputsVal === auditInputsVal;
|
|
39
|
+
return result;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
useEffect(() => {
|
|
44
|
+
if (inputGroup.groupId === "16" && activeRetailer && activeRetailer?.retailer?.id) {
|
|
45
|
+
if (activeRetailer?.retailer?.id === 68) {
|
|
46
|
+
setShowBox(true);
|
|
47
|
+
} else {
|
|
48
|
+
setShowBox(false);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}, [activeRetailer, inputGroup.groupId]);
|
|
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
|
+
// console.log("dataInputs",dataInputs);
|
|
63
|
+
|
|
64
|
+
return (
|
|
65
|
+
<>
|
|
66
|
+
{inputGroup.groupId === "16" && activeRetailer?.retailer?.id === 68 && (
|
|
67
|
+
<Container
|
|
68
|
+
className={
|
|
69
|
+
activeSection === "Ficha técnica"
|
|
70
|
+
? "datasheets-layout"
|
|
71
|
+
: "descriptions-layout"
|
|
72
|
+
}
|
|
73
|
+
>
|
|
74
|
+
<Box
|
|
75
|
+
inputGroup={inputGroup}
|
|
76
|
+
dataInputs={dataInputs}
|
|
77
|
+
onChange={setUpdatedBoxData}
|
|
78
|
+
/>
|
|
79
|
+
</Container>
|
|
80
|
+
)}
|
|
81
|
+
{(inputGroup.groupId !== "16") && (
|
|
82
|
+
<Container
|
|
83
|
+
className={
|
|
84
|
+
activeSection === "Ficha técnica"
|
|
85
|
+
? "datasheets-layout"
|
|
86
|
+
: "descriptions-layout"
|
|
87
|
+
}
|
|
88
|
+
>
|
|
89
|
+
{inputGroup?.dataGroup && (
|
|
90
|
+
<ScreenHeaderv2
|
|
91
|
+
headerType={"retailer-name-header"}
|
|
92
|
+
text={`${inputGroup?.dataGroup}`}
|
|
93
|
+
/>
|
|
94
|
+
)}
|
|
95
|
+
<div className="inputs-container">
|
|
96
|
+
{inputGroup?.inputs?.map((input, index) =>
|
|
97
|
+
activeSection === "Ficha técnica" ? (
|
|
98
|
+
<>
|
|
99
|
+
<TagAndInputv2
|
|
100
|
+
key={
|
|
101
|
+
index +
|
|
102
|
+
"-" +
|
|
103
|
+
dataInputs[input]?.value +
|
|
104
|
+
"-" +
|
|
105
|
+
dataInputs[input]?.id +
|
|
106
|
+
"-" +
|
|
107
|
+
compare
|
|
108
|
+
}
|
|
109
|
+
//disabled={input === 40001}
|
|
110
|
+
disabled={false}
|
|
111
|
+
inputId={dataInputs[input]?.id}
|
|
112
|
+
version={version}
|
|
113
|
+
inputType={inputTypeValue(dataInputs[input]?.type)}
|
|
114
|
+
label={
|
|
115
|
+
dataInputs[input]?.name +
|
|
116
|
+
(dataInputs[input]?.required ? "*" : "")
|
|
117
|
+
}
|
|
118
|
+
value={
|
|
119
|
+
compare
|
|
120
|
+
? auditInputs[input]?.value
|
|
121
|
+
: dataInputs[input]?.value
|
|
122
|
+
}
|
|
123
|
+
inputPlaceHolder={input?.placeholder}
|
|
124
|
+
articleId={articleId}
|
|
125
|
+
isRequired={dataInputs[input]?.required}
|
|
126
|
+
required={dataInputs[input]?.required}
|
|
127
|
+
minWords={dataInputs[input]?.min_words}
|
|
128
|
+
maxWords={dataInputs[input]?.max_words}
|
|
129
|
+
minChar={dataInputs[input]?.min_chars}
|
|
130
|
+
updatedDatasheets={updatedDatasheets}
|
|
131
|
+
setUpdatedDatasheets={setUpdatedDatasheets}
|
|
132
|
+
maxChar={
|
|
133
|
+
dataInputs[input]?.max_chars
|
|
134
|
+
? dataInputs[input]?.max_chars
|
|
135
|
+
: 999
|
|
136
|
+
}
|
|
137
|
+
optionList={dataInputs[input]?.option_list}
|
|
138
|
+
description={dataInputs[input]?.description}
|
|
139
|
+
showTooltip={true}
|
|
140
|
+
auditClass={
|
|
141
|
+
compare &&
|
|
142
|
+
!isEquals(dataInputs[input].value, auditInputs[input].value)
|
|
143
|
+
? "audit-class"
|
|
144
|
+
: ""
|
|
145
|
+
}
|
|
146
|
+
showMissingChars={showMissingChars}
|
|
147
|
+
/>
|
|
148
|
+
</>
|
|
149
|
+
) : (
|
|
150
|
+
<TagAndInputv2
|
|
151
|
+
key={index + "-" + input?.value + "-" + compare}
|
|
152
|
+
inputId={input.id}
|
|
153
|
+
index={index}
|
|
154
|
+
inputType={"textarea"}
|
|
155
|
+
label={input?.name + (input.required ? "*" : "")}
|
|
156
|
+
value={
|
|
157
|
+
compare ? auditInputGroup?.inputs[index]?.value : input?.value
|
|
158
|
+
}
|
|
159
|
+
isRequired={input.required}
|
|
160
|
+
required={input.required}
|
|
161
|
+
minWords={input?.min_words}
|
|
162
|
+
maxWords={input?.max_words}
|
|
163
|
+
minChar={input?.min_chars}
|
|
164
|
+
maxChar={input.max_chars}
|
|
165
|
+
inputPlaceHolder={input?.placeholder}
|
|
166
|
+
updatedDescriptions={updatedDescriptions}
|
|
167
|
+
setUpdatedDescriptions={setUpdatedDescriptions}
|
|
168
|
+
articleId={articleId}
|
|
169
|
+
version={version}
|
|
170
|
+
dinamicHeight={dinamicHeight}
|
|
171
|
+
description={input?.description}
|
|
172
|
+
showTooltip={true}
|
|
173
|
+
auditClass={
|
|
174
|
+
compare &&
|
|
175
|
+
!isEquals(input?.value, auditInputGroup?.inputs[index]?.value)
|
|
176
|
+
? "audit-class"
|
|
177
|
+
: ""
|
|
178
|
+
}
|
|
179
|
+
showMissingChars={showMissingChars}
|
|
180
|
+
/>
|
|
181
|
+
)
|
|
182
|
+
)}
|
|
183
|
+
</div>
|
|
184
|
+
</Container>
|
|
185
|
+
)}
|
|
186
|
+
{(inputGroup.groupId === "16" && activeRetailer?.retailer?.id === 74) && (
|
|
187
|
+
<Container
|
|
188
|
+
className={
|
|
189
|
+
activeSection === "Ficha técnica"
|
|
190
|
+
? "datasheets-layout"
|
|
191
|
+
: "descriptions-layout"
|
|
192
|
+
}
|
|
193
|
+
>
|
|
194
|
+
{inputGroup?.dataGroup && (
|
|
195
|
+
<ScreenHeaderv2
|
|
196
|
+
headerType={"retailer-name-header"}
|
|
197
|
+
text={`${inputGroup?.dataGroup}`}
|
|
198
|
+
/>
|
|
199
|
+
)}
|
|
200
|
+
<div className="inputs-container">
|
|
201
|
+
{inputGroup?.inputs?.map((input, index) =>
|
|
202
|
+
activeSection === "Ficha técnica" ? (
|
|
203
|
+
<>
|
|
204
|
+
<TagAndInputv2
|
|
205
|
+
key={
|
|
206
|
+
index +
|
|
207
|
+
"-" +
|
|
208
|
+
dataInputs[input]?.value +
|
|
209
|
+
"-" +
|
|
210
|
+
dataInputs[input]?.id +
|
|
211
|
+
"-" +
|
|
212
|
+
compare
|
|
213
|
+
}
|
|
214
|
+
//disabled={input === 40001}
|
|
215
|
+
disabled={false}
|
|
216
|
+
inputId={dataInputs[input]?.id}
|
|
217
|
+
version={version}
|
|
218
|
+
inputType={inputTypeValue(dataInputs[input]?.type)}
|
|
219
|
+
label={
|
|
220
|
+
dataInputs[input]?.name +
|
|
221
|
+
(dataInputs[input]?.required ? "*" : "")
|
|
222
|
+
}
|
|
223
|
+
value={
|
|
224
|
+
compare
|
|
225
|
+
? auditInputs[input]?.value
|
|
226
|
+
: dataInputs[input]?.value
|
|
227
|
+
}
|
|
228
|
+
inputPlaceHolder={input?.placeholder}
|
|
229
|
+
articleId={articleId}
|
|
230
|
+
isRequired={dataInputs[input]?.required}
|
|
231
|
+
required={input.required}
|
|
232
|
+
minWords={input?.min_words}
|
|
233
|
+
maxWords={input?.max_words}
|
|
234
|
+
minChar={input?.min_chars}
|
|
235
|
+
updatedDatasheets={updatedDatasheets}
|
|
236
|
+
setUpdatedDatasheets={setUpdatedDatasheets}
|
|
237
|
+
maxChar={
|
|
238
|
+
dataInputs[input]?.max_chars
|
|
239
|
+
? dataInputs[input]?.max_chars
|
|
240
|
+
: 999
|
|
241
|
+
}
|
|
242
|
+
optionList={dataInputs[input]?.option_list}
|
|
243
|
+
description={dataInputs[input]?.description}
|
|
244
|
+
showTooltip={true}
|
|
245
|
+
inputGroup={inputGroup}
|
|
246
|
+
dataInputs={dataInputs}
|
|
247
|
+
onChange={setUpdatedBoxData}
|
|
248
|
+
auditClass={
|
|
249
|
+
compare &&
|
|
250
|
+
!isEquals(dataInputs[input].value, auditInputs[input].value)
|
|
251
|
+
? "audit-class"
|
|
252
|
+
: ""
|
|
253
|
+
}
|
|
254
|
+
showMissingChars={showMissingChars}
|
|
255
|
+
/>
|
|
256
|
+
</>
|
|
257
|
+
) : (
|
|
258
|
+
<TagAndInputv2
|
|
259
|
+
key={index + "-" + input?.value + "-" + compare}
|
|
260
|
+
inputId={input.id}
|
|
261
|
+
index={index}
|
|
262
|
+
inputType={"textarea"}
|
|
263
|
+
label={input?.name + (input.required ? "*" : "")}
|
|
264
|
+
value={
|
|
265
|
+
compare ? auditInputGroup?.inputs[index]?.value : input?.value
|
|
266
|
+
}
|
|
267
|
+
isRequired={input.required}
|
|
268
|
+
required={input.required}
|
|
269
|
+
minWords={input?.min_words}
|
|
270
|
+
maxWords={input?.max_words}
|
|
271
|
+
minChar={input?.min_chars}
|
|
272
|
+
maxChar={input.max_chars}
|
|
273
|
+
inputPlaceHolder={input?.placeholder}
|
|
274
|
+
updatedDescriptions={updatedDescriptions}
|
|
275
|
+
setUpdatedDescriptions={setUpdatedDescriptions}
|
|
276
|
+
articleId={articleId}
|
|
277
|
+
version={version}
|
|
278
|
+
dinamicHeight={dinamicHeight}
|
|
279
|
+
description={input?.description}
|
|
280
|
+
showTooltip={true}
|
|
281
|
+
auditClass={
|
|
282
|
+
compare &&
|
|
283
|
+
!isEquals(input?.value, auditInputGroup?.inputs[index]?.value)
|
|
284
|
+
? "audit-class"
|
|
285
|
+
: ""
|
|
286
|
+
}
|
|
287
|
+
showMissingChars={showMissingChars}
|
|
288
|
+
/>
|
|
289
|
+
)
|
|
290
|
+
)}
|
|
291
|
+
</div>
|
|
292
|
+
</Container>
|
|
293
|
+
)}
|
|
294
|
+
</>
|
|
295
|
+
);
|
|
296
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
import { GlobalColors } from "../../../global-files/variables";
|
|
3
|
+
|
|
4
|
+
export const Container = styled.div`
|
|
5
|
+
border-radius: 6px;
|
|
6
|
+
padding: 10px;
|
|
7
|
+
width: 100%;
|
|
8
|
+
|
|
9
|
+
.retailer-name-header {
|
|
10
|
+
& + * {
|
|
11
|
+
margin-top: 10px;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
&.datasheets-layout {
|
|
15
|
+
border: 1px solid ${GlobalColors.gray_light};
|
|
16
|
+
padding: 18px;
|
|
17
|
+
border-radius: 10px;
|
|
18
|
+
|
|
19
|
+
.inputs-container {
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-wrap: wrap;
|
|
22
|
+
width: 100%;
|
|
23
|
+
gap: 10px;
|
|
24
|
+
|
|
25
|
+
.input-container {
|
|
26
|
+
flex: 1 1 20%;
|
|
27
|
+
min-width: 227px;
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: row;
|
|
30
|
+
align-items: center;
|
|
31
|
+
gap: 10px;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
&.datasheets-layout .title-container {
|
|
36
|
+
width:auto;
|
|
37
|
+
white-space:nowrap;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
& + * {
|
|
41
|
+
margin-top: 15px;
|
|
42
|
+
}
|
|
43
|
+
.title-container {
|
|
44
|
+
display:flex;
|
|
45
|
+
gap:8px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&.descriptions-layout .title-container {
|
|
49
|
+
width:20%;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&.descriptions-layout {
|
|
53
|
+
.inputs-container{
|
|
54
|
+
.input-container{
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
gap:8px;
|
|
58
|
+
margin-top:10px;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
`;
|
|
63
|
+
export const ContainerIcon = styled.div`
|
|
64
|
+
cursor: pointer;
|
|
65
|
+
@font-face {
|
|
66
|
+
font-family: "Material Symbols Outlined";
|
|
67
|
+
font-style: normal;
|
|
68
|
+
font-weight: 100 700;
|
|
69
|
+
src: url(https://fonts.gstatic.com/s/materialsymbolsoutlined/v68/kJEhBvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oFsLjBuVY.woff2)
|
|
70
|
+
format("woff2");
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.hola {
|
|
74
|
+
font-family: "Material Symbols Outlined";
|
|
75
|
+
font-size: 30px;
|
|
76
|
+
//line-height: 1;
|
|
77
|
+
margin-top: 10px;
|
|
78
|
+
}
|
|
79
|
+
.hola {
|
|
80
|
+
font-variation-settings: "FILL"
|
|
81
|
+
${(props) => (props.percentageRequired < 100 ? 0 : 1)},
|
|
82
|
+
"wght" 400, "GRAD" 0, "opsz" 48;
|
|
83
|
+
|
|
84
|
+
}
|
|
85
|
+
.icono-police{
|
|
86
|
+
font-size:20px;
|
|
87
|
+
color: ${(props) =>
|
|
88
|
+
props.percentageRequired < 100 ? "#d4d1d7" : "#ECDD1D"};
|
|
89
|
+
}
|
|
90
|
+
`;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { MandatoryBar } from "./index";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: "Components/organisms/MandatoryBar",
|
|
5
|
+
component: MandatoryBar,
|
|
6
|
+
argTypes: {
|
|
7
|
+
|
|
8
|
+
},
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
const Template = (args) => <MandatoryBar {...args} />;
|
|
12
|
+
|
|
13
|
+
export const MandatoryBarDefault = Template.bind({});
|
|
14
|
+
MandatoryBarDefault.args = {
|
|
15
|
+
MandatoryBar: {
|
|
16
|
+
|
|
17
|
+
},
|
|
18
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { NumberMandatory } from "../../atoms/NumberMandatory";
|
|
2
|
+
import { Container } from "./styles";
|
|
3
|
+
|
|
4
|
+
export const MandatoryBar = ({
|
|
5
|
+
obligatorias,
|
|
6
|
+
minimas,
|
|
7
|
+
maximas
|
|
8
|
+
}) => {
|
|
9
|
+
return (
|
|
10
|
+
<Container>
|
|
11
|
+
<NumberMandatory
|
|
12
|
+
number={obligatorias}
|
|
13
|
+
required={true}
|
|
14
|
+
typeImage={"obligatorias"}
|
|
15
|
+
typeSingle={"obligatoria"}
|
|
16
|
+
></NumberMandatory>
|
|
17
|
+
<NumberMandatory
|
|
18
|
+
number={minimas}
|
|
19
|
+
required={false}
|
|
20
|
+
typeImage={"mínimas"}
|
|
21
|
+
typeSingle={"mínimas"}
|
|
22
|
+
></NumberMandatory>
|
|
23
|
+
<NumberMandatory
|
|
24
|
+
number={maximas}
|
|
25
|
+
required={false}
|
|
26
|
+
typeImage={"máximas"}
|
|
27
|
+
typeSingle={"máximas"}
|
|
28
|
+
></NumberMandatory>
|
|
29
|
+
</Container>
|
|
30
|
+
);
|
|
31
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
import { GlobalColors } from "../../../global-files/variables";
|
|
3
|
+
|
|
4
|
+
export const Container = styled.div`
|
|
5
|
+
width: fit-content;
|
|
6
|
+
height:60px;
|
|
7
|
+
display: flex;
|
|
8
|
+
gap: 10px;
|
|
9
|
+
padding:22px 15px;
|
|
10
|
+
border:1px solid ${GlobalColors.gray_light};
|
|
11
|
+
border-radius:10px;
|
|
12
|
+
`;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { ProductImageModalv2 } from "./index";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: "Components/organisms/ProductImageModalv2",
|
|
5
|
+
component: ProductImageModalv2,
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
const Template = (args) => <ProductImageModalv2 {...args} />;
|
|
9
|
+
|
|
10
|
+
export const ProductImageModalv2Default = Template.bind({});
|
|
11
|
+
ProductImageModalv2Default.args = {
|
|
12
|
+
headerInfo: {},
|
|
13
|
+
|
|
14
|
+
images: {
|
|
15
|
+
values: [
|
|
16
|
+
{
|
|
17
|
+
img: "https://image.shutterstock.com/image-illustration/3d-render-generic-drug-pills-260nw-709112806.jpg",
|
|
18
|
+
alt: "img",
|
|
19
|
+
name: "Hero",
|
|
20
|
+
data: [
|
|
21
|
+
{ feature: "Tamaño de imagen", value: "1000x10000" },
|
|
22
|
+
{ feature: "Formato", value: "jpg" },
|
|
23
|
+
{ feature: "Resolución", value: "300dpi" },
|
|
24
|
+
{ feature: "Tipo de imagen", value: "Tipo de imagen" },
|
|
25
|
+
{ feature: "Identificador", value: "F261" },
|
|
26
|
+
],
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
img: "https://www.muycomputer.com/wp-content/uploads/2020/12/google.png",
|
|
30
|
+
alt: "img",
|
|
31
|
+
name: "Hero2",
|
|
32
|
+
data: [
|
|
33
|
+
{ feature: "Tamaño de imagen", value: "1000x10000" },
|
|
34
|
+
{ feature: "Formato", value: "jpg" },
|
|
35
|
+
{ feature: "Resolución", value: "300dpi" },
|
|
36
|
+
{ feature: "Tipo de imagen", value: "Tipo de imagen" },
|
|
37
|
+
{ feature: "Identificador", value: "F261" },
|
|
38
|
+
],
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
img: "https://www.ionos.es/digitalguide/fileadmin/DigitalGuide/Teaser/bildergalerie-online-t.jpg",
|
|
42
|
+
alt: "img",
|
|
43
|
+
name: "Hero3",
|
|
44
|
+
data: [
|
|
45
|
+
{ feature: "Tamaño de imagen", value: "1000x10000" },
|
|
46
|
+
{ feature: "Formato", value: "jpg" },
|
|
47
|
+
{ feature: "Resolución", value: "300dpi" },
|
|
48
|
+
{ feature: "Tipo de imagen", value: "Tipo de imagen" },
|
|
49
|
+
{ feature: "Identificador", value: "F261" },
|
|
50
|
+
],
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
img: "https://i.pinimg.com/originals/d0/b9/28/d0b928df15d3a3bf1905865a8fedb257.jpg",
|
|
54
|
+
alt: "img",
|
|
55
|
+
name: "Hero4",
|
|
56
|
+
data: [
|
|
57
|
+
{ feature: "Tamaño de imagen", value: "1000x10000" },
|
|
58
|
+
{ feature: "Formato", value: "jpg" },
|
|
59
|
+
{ feature: "Resolución", value: "300dpi" },
|
|
60
|
+
{ feature: "Tipo de imagen", value: "Tipo de imagen" },
|
|
61
|
+
{ feature: "Identificador", value: "F261" },
|
|
62
|
+
],
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
img: "https://memegenerator.net/img/images/72798198.jpg",
|
|
66
|
+
alt: "img",
|
|
67
|
+
name: "Hero5",
|
|
68
|
+
data: [
|
|
69
|
+
{ feature: "Tamaño de imagen", value: "1000x10000" },
|
|
70
|
+
{ feature: "Formato", value: "jpg" },
|
|
71
|
+
{ feature: "Resolución", value: "300dpi" },
|
|
72
|
+
{ feature: "Tipo de imagen", value: "Tipo de imagen" },
|
|
73
|
+
{ feature: "Identificador", value: "F261" },
|
|
74
|
+
],
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
img: "http://www.dumpaday.com/wp-content/uploads/2016/02/funny-pictures-621.jpg",
|
|
78
|
+
alt: "img",
|
|
79
|
+
name: "Hero6",
|
|
80
|
+
data: [
|
|
81
|
+
{ feature: "Tamaño de imagen", value: "1000x10000" },
|
|
82
|
+
{ feature: "Formato", value: "jpg" },
|
|
83
|
+
{ feature: "Resolución", value: "300dpi" },
|
|
84
|
+
{ feature: "Tipo de imagen", value: "Tipo de imagen" },
|
|
85
|
+
{ feature: "Identificador", value: "F261" },
|
|
86
|
+
],
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
},
|
|
90
|
+
};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { Container } from "./styles";
|
|
2
|
+
import { useState, useEffect } from "react";
|
|
3
|
+
import { ValidationPanel } from "../../atoms/ValidationPanel";
|
|
4
|
+
import { Button } from "../../atoms/GeneralButton/index";
|
|
5
|
+
import { ProductImagev2 } from "../../atoms/ProductImagev2";
|
|
6
|
+
import { ImageSelectorv2 } from "../../molecules/ImageSelectorv2";
|
|
7
|
+
import { ImageDataTablev2 } from "../ImageDataTablev2";
|
|
8
|
+
|
|
9
|
+
export const ProductImageModalv2 = ({
|
|
10
|
+
images = [],
|
|
11
|
+
headerInfo,
|
|
12
|
+
validation,
|
|
13
|
+
setShowModal,
|
|
14
|
+
sendToFacilitator,
|
|
15
|
+
approveRejectButtons = false,
|
|
16
|
+
}) => {
|
|
17
|
+
const [activeImage, setActiveImage] = useState(0);
|
|
18
|
+
const [buttonType, setButtonType] = useState(
|
|
19
|
+
validation ? validation : "null-button"
|
|
20
|
+
);
|
|
21
|
+
const [showValidationPanel, setShowValidationPanel] = useState(false);
|
|
22
|
+
|
|
23
|
+
const closeValidationPanel = (e) => {
|
|
24
|
+
if (
|
|
25
|
+
!e.target.closest("#validation-panel") ||
|
|
26
|
+
(e.target.closest(".validation-option") && showValidationPanel)
|
|
27
|
+
) {
|
|
28
|
+
document.removeEventListener("click", closeValidationPanel, false);
|
|
29
|
+
setShowValidationPanel(false);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
useEffect(() => {
|
|
34
|
+
if (showValidationPanel) {
|
|
35
|
+
document.addEventListener("click", closeValidationPanel, false);
|
|
36
|
+
}
|
|
37
|
+
}, [showValidationPanel]);
|
|
38
|
+
|
|
39
|
+
return (
|
|
40
|
+
<Container>
|
|
41
|
+
<div className="modal-container">
|
|
42
|
+
<div className="modal-image-container">
|
|
43
|
+
<ProductImagev2
|
|
44
|
+
img={
|
|
45
|
+
"https://" +
|
|
46
|
+
process.env.REACT_APP_IMAGES_BUCKET +
|
|
47
|
+
".s3.amazonaws.com/" +
|
|
48
|
+
images?.values[activeImage]?.srcDB
|
|
49
|
+
}
|
|
50
|
+
altText={images?.values[activeImage]?.name}
|
|
51
|
+
imageType={"expanded-modal-image"}
|
|
52
|
+
/>
|
|
53
|
+
</div>
|
|
54
|
+
<div className="modal-data-container">
|
|
55
|
+
<div className="validation-and-table-container">
|
|
56
|
+
<div className="validation-panel">
|
|
57
|
+
{/* {approveRejectButtons && (
|
|
58
|
+
<Button
|
|
59
|
+
buttonType={`circular-button ${buttonType}`}
|
|
60
|
+
onClick={() => setShowValidationPanel(true)}
|
|
61
|
+
/>
|
|
62
|
+
)} */}
|
|
63
|
+
<Button
|
|
64
|
+
buttonType="general-white-button close-button-white"
|
|
65
|
+
onClick={() => {
|
|
66
|
+
setShowModal(false);
|
|
67
|
+
}}
|
|
68
|
+
/>
|
|
69
|
+
|
|
70
|
+
{/* <Button
|
|
71
|
+
buttonType="general-white-button close-buttonv2"
|
|
72
|
+
onClick={() => {
|
|
73
|
+
window.location.href = `/products`;
|
|
74
|
+
}}
|
|
75
|
+
/> */}
|
|
76
|
+
|
|
77
|
+
{/* {showValidationPanel && (
|
|
78
|
+
<ValidationPanel
|
|
79
|
+
id="validation-panel"
|
|
80
|
+
setOptionClicked={setButtonType}
|
|
81
|
+
setShowValidationPanel={setShowValidationPanel}
|
|
82
|
+
approve={() => sendToFacilitator && sendToFacilitator("A")}
|
|
83
|
+
reject={() => sendToFacilitator && sendToFacilitator("R")}
|
|
84
|
+
/>
|
|
85
|
+
)} */}
|
|
86
|
+
</div>
|
|
87
|
+
|
|
88
|
+
<ImageDataTablev2
|
|
89
|
+
imageData={images?.values[activeImage]?.data}
|
|
90
|
+
headerInfo={headerInfo}
|
|
91
|
+
activeImage={images?.values[activeImage]}
|
|
92
|
+
darkMode={true}
|
|
93
|
+
lists={images}
|
|
94
|
+
/>
|
|
95
|
+
</div>
|
|
96
|
+
<ImageSelectorv2
|
|
97
|
+
images={images}
|
|
98
|
+
setActiveImage={setActiveImage}
|
|
99
|
+
modalSelector={true}
|
|
100
|
+
/>
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
103
|
+
</Container>
|
|
104
|
+
);
|
|
105
|
+
};
|