contentoh-components-library 21.0.71 → 21.0.74
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/.env.development +20 -5
- package/.env.production +18 -3
- package/CHANGELOG.md +31 -33
- package/dist/assets/images/generalButton/downloadIcon.svg +3 -0
- package/dist/assets/images/genericModal/closeWhite.svg +3 -0
- package/dist/assets/images/genericModal/errorModal.svg +3 -0
- package/dist/assets/images/genericModal/yellowAlert.svg +12 -0
- package/dist/assets/images/modalsSVGs/attributesSent.svg +208 -0
- package/dist/assets/images/modalsSVGs/descriptionSent.svg +237 -0
- package/dist/assets/images/modalsSVGs/providerSent.svg +445 -0
- package/dist/assets/images/modalsSVGs/uploadingImages.svg +148 -0
- package/dist/components/atoms/AsignationOption/index.js +9 -5
- package/dist/components/atoms/AsignationOption/styles.js +1 -1
- package/dist/components/{molecules/SignInLogin/SignInLogin.stories.js → atoms/CharCounter/CharCounter.stories.js} +10 -7
- package/dist/components/atoms/CharCounter/index.js +22 -0
- package/dist/components/{molecules/LogoLoading → atoms/CharCounter}/styles.js +3 -1
- package/dist/components/atoms/CheckBox/index.js +4 -2
- package/dist/components/atoms/Commentary/Commentary.stories.js +1 -0
- package/dist/components/atoms/Commentary/index.js +23 -0
- package/dist/components/{organisms/ChangePassword → atoms/Commentary}/styles.js +6 -1
- package/dist/components/atoms/GeneralButton/index.js +5 -0
- package/dist/components/atoms/GeneralButton/styles.js +4 -2
- package/dist/components/atoms/GeneralInput/index.js +72 -25
- package/dist/components/atoms/GeneralInput/styles.js +7 -1
- package/dist/components/atoms/GenericModal/index.js +4 -2
- package/dist/components/atoms/GenericModal/styles.js +1 -1
- package/dist/components/atoms/GradientPanel/styles.js +1 -1
- package/dist/components/atoms/Input/index.js +26 -0
- package/dist/components/atoms/Input/style.js +26 -0
- package/dist/components/{organisms/ChangePassword/ChangePassword.stories.js → atoms/InputFormatter/Wysiwyg.stories.js} +9 -7
- package/dist/components/atoms/InputFormatter/index.js +184 -0
- package/dist/components/atoms/InputFormatter/styles.js +33 -0
- package/dist/components/atoms/LabelToInput/index.js +53 -0
- package/dist/components/atoms/LabelToInput/style.js +22 -0
- package/dist/components/atoms/Loading/index.js +0 -1
- package/dist/components/atoms/LogoImage/index.js +0 -1
- package/dist/components/atoms/Percent/Percent.stories.js +39 -0
- package/dist/components/atoms/Percent/index.js +39 -0
- package/dist/components/atoms/Percent/styles.js +20 -0
- package/dist/components/atoms/PriorityFlag/index.js +1 -1
- package/dist/components/atoms/ProductImage/styles.js +1 -1
- package/dist/components/atoms/ProgressBar/index.js +2 -2
- package/dist/components/atoms/ProgressBar/styles.js +3 -5
- package/dist/components/atoms/ScreenHeader/index.js +1 -1
- package/dist/components/atoms/ScreenHeader/styles.js +1 -1
- package/dist/components/atoms/Select/index.js +39 -0
- package/dist/components/atoms/Select/style.js +32 -0
- package/dist/components/atoms/StatusTag/index.js +37 -2
- package/dist/components/atoms/StatusTag/styles.js +1 -1
- package/dist/components/atoms/ValidationPanel/index.js +5 -3
- package/dist/components/molecules/AvatarAndValidation/index.js +17 -7
- package/dist/components/molecules/AvatarAndValidation/styles.js +1 -1
- package/dist/components/molecules/CarouselImagesLogin/index.js +42 -40
- package/dist/components/molecules/FeaturesBar/index.js +1 -1
- package/dist/components/molecules/GalleryElement/index.js +80 -21
- package/dist/components/molecules/GalleryElement/styles.js +1 -1
- package/dist/components/molecules/GalleryHeader/index.js +28 -6
- package/dist/components/molecules/GalleryHeader/styles.js +1 -1
- package/dist/components/molecules/ImageSelector/index.js +2 -4
- package/dist/components/molecules/LoginPasswordStrength/index.js +9 -9
- package/dist/components/molecules/LoginPasswordStrength/styles.js +1 -1
- package/dist/components/molecules/ProductNameHeader/index.js +1 -2
- package/dist/components/molecules/RetailerSelector/RetailerSelector.stories.js +48 -0
- package/dist/components/molecules/RetailerSelector/index.js +74 -0
- package/dist/components/{atoms/MenuCommercialRetailers → molecules/RetailerSelector}/styles.js +1 -1
- package/dist/components/molecules/StatusAsignationInfo/index.js +46 -28
- package/dist/components/molecules/StatusAsignationInfo/styles.js +1 -1
- package/dist/components/molecules/TableHeader/index.js +12 -5
- package/dist/components/molecules/TableHeader/styles.js +1 -1
- package/dist/components/molecules/TagAndInput/index.js +24 -2
- package/dist/components/molecules/TextAndGradient/TextAndGradient.stories.js +31 -0
- package/dist/components/molecules/TextAndGradient/index.js +36 -0
- package/dist/components/molecules/TextAndGradient/styles.js +18 -0
- package/dist/components/organisms/FullProductNameHeader/index.js +31 -9
- package/dist/components/organisms/FullTabsMenu/index.js +18 -5
- package/dist/components/organisms/GlobalModal/index.js +73 -0
- package/dist/components/organisms/GlobalModal/styles.js +66 -0
- package/dist/components/organisms/ImageDataTable/index.js +90 -14
- package/dist/components/organisms/InputGroup/index.js +34 -13
- package/dist/components/organisms/InputGroup/styles.js +1 -1
- package/dist/components/organisms/ProductImageModal/index.js +13 -10
- package/dist/components/organisms/ProductImageModal/styles.js +1 -1
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +135 -0
- package/dist/components/pages/ProviderProductEdition/index.js +1979 -0
- package/dist/components/pages/ProviderProductEdition/styles.js +23 -0
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +91 -347
- package/dist/components/pages/RetailerProductEdition/index.js +1610 -60
- package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
- package/dist/global-files/data.js +213 -53
- package/dist/global-files/global-styles.css +1 -0
- package/dist/global-files/variables.js +1 -0
- package/dist/index.js +34 -268
- package/package.json +17 -18
- package/src/assets/images/generalButton/downloadIcon.svg +3 -0
- package/src/assets/images/genericModal/closeWhite.svg +3 -0
- package/src/assets/images/genericModal/errorModal.svg +3 -0
- package/src/assets/images/genericModal/yellowAlert.svg +12 -0
- package/src/assets/images/modalsSVGs/attributesSent.svg +208 -0
- package/src/assets/images/modalsSVGs/descriptionSent.svg +237 -0
- package/src/assets/images/modalsSVGs/providerSent.svg +445 -0
- package/src/assets/images/modalsSVGs/uploadingImages.svg +148 -0
- package/src/components/atoms/AsignationOption/index.js +7 -5
- package/src/components/atoms/AsignationOption/styles.js +9 -1
- package/src/components/atoms/CharCounter/CharCounter.stories.js +11 -0
- package/src/components/atoms/CharCounter/index.js +13 -0
- package/src/components/atoms/CharCounter/styles.js +10 -0
- package/src/components/atoms/CheckBox/index.js +8 -2
- package/src/components/atoms/Commentary/Commentary.stories.js +0 -0
- package/src/components/atoms/Commentary/index.js +9 -0
- package/src/components/atoms/Commentary/styles.js +16 -0
- package/src/components/atoms/GeneralButton/index.js +9 -2
- package/src/components/atoms/GeneralButton/styles.js +23 -0
- package/src/components/atoms/GeneralInput/index.js +71 -23
- package/src/components/atoms/GeneralInput/styles.js +11 -1
- package/src/components/atoms/GenericModal/index.js +2 -2
- package/src/components/atoms/GenericModal/styles.js +10 -2
- package/src/components/atoms/GradientPanel/styles.js +0 -1
- package/src/components/atoms/Input/index.js +15 -0
- package/src/components/atoms/Input/style.js +31 -0
- package/src/components/atoms/InputFormatter/Wysiwyg.stories.js +12 -0
- package/src/components/atoms/InputFormatter/index.js +144 -0
- package/src/components/atoms/InputFormatter/styles.js +40 -0
- package/src/components/atoms/LabelToInput/index.js +26 -0
- package/src/components/atoms/LabelToInput/style.js +41 -0
- package/src/components/atoms/Loading/index.js +2 -3
- package/src/components/atoms/LogoImage/index.js +1 -1
- package/src/components/atoms/PriorityFlag/index.js +1 -1
- package/src/components/atoms/ProductImage/styles.js +1 -1
- package/src/components/atoms/ProgressBar/index.js +2 -2
- package/src/components/atoms/ProgressBar/styles.js +54 -3
- package/src/components/atoms/ScreenHeader/index.js +7 -3
- package/src/components/atoms/ScreenHeader/styles.js +9 -2
- package/src/components/atoms/Select/index.js +35 -0
- package/src/components/atoms/Select/style.js +76 -0
- package/src/components/atoms/StatusTag/index.js +30 -2
- package/src/components/atoms/StatusTag/styles.js +15 -3
- package/src/components/atoms/ValidationPanel/index.js +4 -3
- package/src/components/molecules/AvatarAndValidation/index.js +23 -6
- package/src/components/molecules/AvatarAndValidation/styles.js +1 -1
- package/src/components/molecules/CarouselImagesLogin/index.js +37 -34
- package/src/components/molecules/FeaturesBar/index.js +10 -7
- package/src/components/molecules/GalleryElement/index.js +75 -36
- package/src/components/molecules/GalleryElement/styles.js +38 -11
- package/src/components/molecules/GalleryHeader/index.js +14 -8
- package/src/components/molecules/GalleryHeader/styles.js +16 -0
- package/src/components/molecules/ImageSelector/index.js +2 -3
- package/src/components/molecules/LoginPasswordStrength/index.js +6 -11
- package/src/components/molecules/LoginPasswordStrength/styles.js +1 -5
- package/src/components/molecules/ProductNameHeader/index.js +1 -2
- package/src/components/molecules/RetailerSelector/RetailerSelector.stories.js +35 -0
- package/src/components/molecules/RetailerSelector/index.js +63 -0
- package/src/components/molecules/RetailerSelector/styles.js +18 -0
- package/src/components/molecules/StatusAsignationInfo/index.js +64 -39
- package/src/components/molecules/StatusAsignationInfo/styles.js +12 -2
- package/src/components/molecules/TableHeader/index.js +16 -3
- package/src/components/molecules/TableHeader/styles.js +5 -0
- package/src/components/molecules/TagAndInput/index.js +24 -2
- package/src/components/organisms/FullProductNameHeader/index.js +38 -8
- package/src/components/organisms/FullTabsMenu/index.js +15 -3
- package/src/components/organisms/GlobalModal/index.js +68 -0
- package/src/components/organisms/GlobalModal/styles.js +113 -0
- package/src/components/organisms/ImageDataTable/index.js +89 -11
- package/src/components/organisms/InputGroup/index.js +46 -11
- package/src/components/organisms/InputGroup/styles.js +3 -0
- package/src/components/organisms/ProductImageModal/index.js +19 -12
- package/src/components/organisms/ProductImageModal/styles.js +3 -0
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +123 -0
- package/src/components/pages/ProviderProductEdition/index.js +1493 -0
- package/src/components/pages/ProviderProductEdition/styles.js +118 -0
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +91 -343
- package/src/components/pages/RetailerProductEdition/index.js +1245 -48
- package/src/components/pages/RetailerProductEdition/styles.js +67 -4
- package/src/global-files/data.js +158 -57
- package/src/global-files/global-styles.css +1 -0
- package/src/global-files/variables.js +1 -0
- package/src/index.js +2 -20
- package/dist/assets/images/editField/showPassword.png +0 -0
- package/dist/assets/images/sliderToolTip/infoIcon.svg +0 -4
- package/dist/assets/images/sliderToolTip/slide1.svg +0 -5
- package/dist/assets/images/sliderToolTip/slide2.svg +0 -9
- package/dist/assets/images/sliderToolTip/slide3.svg +0 -9
- package/dist/assets/images/sliderToolTip/slide4.svg +0 -9
- package/dist/assets/images/sliderToolTip/slide5.svg +0 -40
- package/dist/components/atoms/ListCommercialRetailers/ListCommercialRetailers.stories.js +0 -36
- package/dist/components/atoms/ListCommercialRetailers/index.js +0 -64
- package/dist/components/atoms/ListCommercialRetailers/styles.js +0 -20
- package/dist/components/atoms/Loading/Loading.stories.js +0 -28
- package/dist/components/atoms/MenuCommercialRetailers/MenuCommercialRetailers.stories.js +0 -37
- package/dist/components/atoms/MenuCommercialRetailers/index.js +0 -25
- package/dist/components/atoms/MenuProductImage/MenuProductImage.stories.js +0 -28
- package/dist/components/atoms/MenuProductImage/index.js +0 -88
- package/dist/components/atoms/MenuProductImage/styles.js +0 -20
- package/dist/components/atoms/SliderToolTip/SliderToolTip.stories.js +0 -47
- package/dist/components/atoms/SliderToolTip/index.js +0 -200
- package/dist/components/atoms/SliderToolTip/styles.js +0 -24
- package/dist/components/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +0 -28
- package/dist/components/atoms/VerticalSideMenuMainPage/index.js +0 -94
- package/dist/components/atoms/VerticalSideMenuMainPage/styles.js +0 -24
- package/dist/components/molecules/ApproveRejetPanel/ApproveRejetPanel.stories.js +0 -25
- package/dist/components/molecules/ApproveRejetPanel/index.js +0 -49
- package/dist/components/molecules/ApproveRejetPanel/styles.js +0 -18
- package/dist/components/molecules/EmailResetPasswordLogin/EmailResetPasswordLogin.stories.js +0 -28
- package/dist/components/molecules/EmailResetPasswordLogin/index.js +0 -153
- package/dist/components/molecules/EmailResetPasswordLogin/styles.js +0 -20
- package/dist/components/molecules/LogoLoading/Loading.stories.js +0 -28
- package/dist/components/molecules/LogoLoading/index.js +0 -22
- package/dist/components/molecules/RegistrationFirstStep/RegistrationFirstStep.stories.js +0 -28
- package/dist/components/molecules/RegistrationFirstStep/index.js +0 -308
- package/dist/components/molecules/RegistrationFirstStep/styles.js +0 -20
- package/dist/components/molecules/RegistrationSecondStep/RegistrationSecondStep.stories.js +0 -28
- package/dist/components/molecules/RegistrationSecondStep/index.js +0 -173
- package/dist/components/molecules/RegistrationSecondStep/styles.js +0 -20
- package/dist/components/molecules/RegistrationThirdStep/RegistrationThirdStep.stories.js +0 -28
- package/dist/components/molecules/RegistrationThirdStep/index.js +0 -155
- package/dist/components/molecules/RegistrationThirdStep/styles.js +0 -20
- package/dist/components/molecules/SignInLogin/index.js +0 -315
- package/dist/components/molecules/SignInLogin/styles.js +0 -20
- package/dist/components/molecules/SignInLoginCreationApp/SignInLogin.stories.js +0 -28
- package/dist/components/molecules/SignInLoginCreationApp/index.js +0 -270
- package/dist/components/molecules/SignInLoginCreationApp/styles.js +0 -20
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/VerificationCodeResetPasswordLogin.stories.js +0 -28
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/index.js +0 -211
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/styles.js +0 -20
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/utils.js +0 -69
- package/dist/components/organisms/ChangePassword/index.js +0 -124
- package/src/assets/images/editField/showPassword.png +0 -0
- package/src/assets/images/sliderToolTip/infoIcon.svg +0 -4
- package/src/assets/images/sliderToolTip/slide1.svg +0 -5
- package/src/assets/images/sliderToolTip/slide2.svg +0 -9
- package/src/assets/images/sliderToolTip/slide3.svg +0 -9
- package/src/assets/images/sliderToolTip/slide4.svg +0 -9
- package/src/assets/images/sliderToolTip/slide5.svg +0 -40
- package/src/assets/images/verticalSideMenuMainPage/closeMenu.svg +0 -4
- package/src/assets/images/verticalSideMenuMainPage/iconFAQS.svg +0 -12
- package/src/assets/images/verticalSideMenuMainPage/iconGroup.svg +0 -3
- package/src/assets/images/verticalSideMenuMainPage/iconLogo.svg +0 -12
- package/src/assets/images/verticalSideMenuMainPage/iconLogoContentoh.svg +0 -15
- package/src/assets/images/verticalSideMenuMainPage/iconProduct.svg +0 -3
- package/src/assets/images/verticalSideMenuMainPage/iconSpeedometer.svg +0 -12
- package/src/assets/images/verticalSideMenuMainPage/iconTask.svg +0 -10
- package/src/assets/images/verticalSideMenuMainPage/openMenu.svg +0 -4
- package/src/components/atoms/Loading/Loading.stories.js +0 -10
- package/src/components/atoms/SliderToolTip/SliderToolTip.stories.js +0 -23
- package/src/components/atoms/SliderToolTip/index.js +0 -182
- package/src/components/atoms/SliderToolTip/styles.js +0 -168
- package/src/components/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +0 -12
- package/src/components/atoms/VerticalSideMenuMainPage/index.js +0 -51
- package/src/components/atoms/VerticalSideMenuMainPage/styles.js +0 -44
- package/src/components/molecules/EmailResetPasswordLogin/EmailResetPasswordLogin.stories.js +0 -11
- package/src/components/molecules/EmailResetPasswordLogin/index.js +0 -85
- package/src/components/molecules/EmailResetPasswordLogin/styles.js +0 -23
- package/src/components/molecules/LogoLoading/Loading.stories.js +0 -10
- package/src/components/molecules/LogoLoading/index.js +0 -12
- package/src/components/molecules/LogoLoading/styles.js +0 -16
- package/src/components/molecules/RegistrationFirstStep/RegistrationFirstStep.stories.js +0 -11
- package/src/components/molecules/RegistrationFirstStep/index.js +0 -227
- package/src/components/molecules/RegistrationFirstStep/styles.js +0 -87
- package/src/components/molecules/RegistrationSecondStep/RegistrationSecondStep.stories.js +0 -11
- package/src/components/molecules/RegistrationSecondStep/index.js +0 -136
- package/src/components/molecules/RegistrationSecondStep/styles.js +0 -64
- package/src/components/molecules/RegistrationThirdStep/RegistrationThirdStep.stories.js +0 -11
- package/src/components/molecules/RegistrationThirdStep/index.js +0 -130
- package/src/components/molecules/RegistrationThirdStep/styles.js +0 -44
- package/src/components/molecules/SignInLogin/SignInLogin.stories.js +0 -11
- package/src/components/molecules/SignInLogin/index.js +0 -226
- package/src/components/molecules/SignInLogin/styles.js +0 -120
- package/src/components/molecules/VerificationCodeResetPasswordLogin/VerificationCodeResetPasswordLogin.stories.js +0 -11
- package/src/components/molecules/VerificationCodeResetPasswordLogin/index.js +0 -171
- package/src/components/molecules/VerificationCodeResetPasswordLogin/styles.js +0 -54
- package/src/components/molecules/VerificationCodeResetPasswordLogin/utils.js +0 -54
- package/src/components/organisms/ChangePassword/ChangePassword.stories.js +0 -11
- package/src/components/organisms/ChangePassword/index.js +0 -77
- package/src/components/organisms/ChangePassword/styles.js +0 -13
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.TextArea = exports.MessageContainer = exports.Message = exports.MainContainer = exports.Icon = exports.Header = exports.FirstButton = exports.Detail = exports.ContainerButtons = exports.Close = exports.Button = exports.BoldText = void 0;
|
|
9
|
+
|
|
10
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
11
|
+
|
|
12
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
|
+
|
|
14
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12;
|
|
15
|
+
|
|
16
|
+
var MainContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: fixed;\n left: 0;\n top: 0;\n width: 100vw;\n height: 100vh;\n background: #281f3366;\n z-index: 15;\n display: flex;\n justify-content: center;\n align-items: center;\n"])));
|
|
17
|
+
|
|
18
|
+
exports.MainContainer = MainContainer;
|
|
19
|
+
|
|
20
|
+
var Header = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n width: 100%;\n justify-content: center;\n"])));
|
|
21
|
+
|
|
22
|
+
exports.Header = Header;
|
|
23
|
+
|
|
24
|
+
var MessageContainer = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n padding: 40px 20px;\n box-sizing: border-box;\n width: 600px;\n min-height: ", ";\n background: #281f33;\n border-radius: 39px;\n"])), function (props) {
|
|
25
|
+
return props.height ? "300px" : "190px";
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
exports.MessageContainer = MessageContainer;
|
|
29
|
+
|
|
30
|
+
var TextArea = _styledComponents.default.textarea(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n display: block;\n margin-left: auto;\n margin-right: auto;\n position: relative;\n width: 479px;\n height: 84px;\n background: #f0eef2;\n border-radius: 4px;\n color: #817393;\n margin-bottom: 10px;\n"])));
|
|
31
|
+
|
|
32
|
+
exports.TextArea = TextArea;
|
|
33
|
+
|
|
34
|
+
var Close = _styledComponents.default.figure(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n position: absolute;\n cursor: pointer;\n right: 45px;\n > img {\n width: 14px;\n height: 14px;\n }\n"])));
|
|
35
|
+
|
|
36
|
+
exports.Close = Close;
|
|
37
|
+
|
|
38
|
+
var Icon = _styledComponents.default.figure(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n margin-bottom: 10px;\n height: ", ";\n > img {\n width: ", ";\n height: ", ";\n }\n"])), function (props) {
|
|
39
|
+
return props.heightImg && props.heightImg;
|
|
40
|
+
}, function (props) {
|
|
41
|
+
return props.widthImg ? props.widthImg : "85px";
|
|
42
|
+
}, function (props) {
|
|
43
|
+
return props.heightImg ? props.heightImg : "85px";
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
exports.Icon = Icon;
|
|
47
|
+
|
|
48
|
+
var BoldText = _styledComponents.default.span(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 600;\n"])));
|
|
49
|
+
|
|
50
|
+
exports.BoldText = BoldText;
|
|
51
|
+
|
|
52
|
+
var Message = _styledComponents.default.p(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n font-family: Raleway;\n font-style: normal;\n font-weight: normal;\n font-size: 24px;\n text-align: center;\n color: #f7f7f7;\n margin: 20px 0px;\n"])));
|
|
53
|
+
|
|
54
|
+
exports.Message = Message;
|
|
55
|
+
|
|
56
|
+
var ContainerButtons = _styledComponents.default.div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: space-around;\n"])));
|
|
57
|
+
|
|
58
|
+
exports.ContainerButtons = ContainerButtons;
|
|
59
|
+
|
|
60
|
+
var FirstButton = _styledComponents.default.p(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n justify-content: center;\n height: 40px;\n padding: 0 40px;\n border: 1px solid #f0eef2;\n box-sizing: border-box;\n border-radius: 30px;\n font-family: Avenir Next;\n font-style: normal;\n font-weight: 500;\n font-size: 18px;\n color: #f0eef2;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n cursor: pointer;\n"])));
|
|
61
|
+
|
|
62
|
+
exports.FirstButton = FirstButton;
|
|
63
|
+
var Button = (0, _styledComponents.default)(FirstButton)(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n border: 0;\n background: #e33aa9;\n cursor: pointer;\n"])));
|
|
64
|
+
exports.Button = Button;
|
|
65
|
+
var Detail = (0, _styledComponents.default)(Message)(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: bold;\n font-size: 18px;\n white-space: normal;\n"])));
|
|
66
|
+
exports.Detail = Detail;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
@@ -9,27 +11,101 @@ var _styles = require("./styles");
|
|
|
9
11
|
|
|
10
12
|
var _TableHeader = require("../../molecules/TableHeader");
|
|
11
13
|
|
|
12
|
-
var
|
|
14
|
+
var _styles2 = require("../../molecules/TableRow/styles");
|
|
15
|
+
|
|
16
|
+
var _ScreenHeader = require("../../atoms/ScreenHeader");
|
|
17
|
+
|
|
18
|
+
var _LabelToInput = _interopRequireDefault(require("../../atoms/LabelToInput"));
|
|
13
19
|
|
|
14
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
21
|
|
|
16
22
|
var ImageDataTable = function ImageDataTable(_ref) {
|
|
17
|
-
var
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
darkMode = _ref.darkMode
|
|
23
|
+
var _lists$inputs, _lists$inputs$find, _lists$imagePackaging, _lists$imagePackaging2, _lists$imageType, _lists$imageType$find, _lists$attrForImgs$re;
|
|
24
|
+
|
|
25
|
+
var activeImage = _ref.activeImage,
|
|
26
|
+
darkMode = _ref.darkMode,
|
|
27
|
+
lists = _ref.lists,
|
|
28
|
+
retailerSelected = _ref.retailerSelected,
|
|
29
|
+
setImages = _ref.setImages,
|
|
30
|
+
assignationsImages = _ref.assignationsImages,
|
|
31
|
+
imagesStatus = _ref.imagesStatus,
|
|
32
|
+
setAssignation = _ref.setAssignation,
|
|
33
|
+
isRetailer = _ref.isRetailer,
|
|
34
|
+
onClickSave = _ref.onClickSave;
|
|
21
35
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
22
36
|
darkMode: darkMode,
|
|
23
37
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_TableHeader.TableHeader, {
|
|
24
|
-
|
|
25
|
-
activeImage: activeImage
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
38
|
+
imagesStatus: imagesStatus,
|
|
39
|
+
activeImage: activeImage,
|
|
40
|
+
assignationsImages: assignationsImages,
|
|
41
|
+
setAssignation: setAssignation,
|
|
42
|
+
isRetailer: isRetailer,
|
|
43
|
+
onClickSave: onClickSave
|
|
44
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles2.Container, {
|
|
45
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
46
|
+
headerType: "table-row-text",
|
|
47
|
+
text: "Tipo de toma"
|
|
48
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
49
|
+
headerType: "table-row-text gray-table-row",
|
|
50
|
+
text: (lists === null || lists === void 0 ? void 0 : (_lists$inputs = lists.inputs) === null || _lists$inputs === void 0 ? void 0 : (_lists$inputs$find = _lists$inputs.find(function (f) {
|
|
51
|
+
return f.id === +(activeImage === null || activeImage === void 0 ? void 0 : activeImage.image_id);
|
|
52
|
+
})) === null || _lists$inputs$find === void 0 ? void 0 : _lists$inputs$find.name) || "-"
|
|
53
|
+
})]
|
|
54
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles2.Container, {
|
|
55
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
56
|
+
headerType: "table-row-text",
|
|
57
|
+
text: "Tipo de empaque"
|
|
58
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
59
|
+
headerType: "table-row-text gray-table-row",
|
|
60
|
+
text: (lists === null || lists === void 0 ? void 0 : (_lists$imagePackaging = lists.imagePackagingType) === null || _lists$imagePackaging === void 0 ? void 0 : (_lists$imagePackaging2 = _lists$imagePackaging.find(function (f) {
|
|
61
|
+
return f.id === +(activeImage === null || activeImage === void 0 ? void 0 : activeImage.packing_type);
|
|
62
|
+
})) === null || _lists$imagePackaging2 === void 0 ? void 0 : _lists$imagePackaging2.name) || "-"
|
|
63
|
+
})]
|
|
64
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles2.Container, {
|
|
65
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
66
|
+
headerType: "table-row-text",
|
|
67
|
+
text: "Tipo de imagen"
|
|
68
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
69
|
+
headerType: "table-row-text gray-table-row",
|
|
70
|
+
text: (lists === null || lists === void 0 ? void 0 : (_lists$imageType = lists.imageType) === null || _lists$imageType === void 0 ? void 0 : (_lists$imageType$find = _lists$imageType.find(function (f) {
|
|
71
|
+
return f.id === +(activeImage === null || activeImage === void 0 ? void 0 : activeImage.image_type);
|
|
72
|
+
})) === null || _lists$imageType$find === void 0 ? void 0 : _lists$imageType$find.name) || "-"
|
|
73
|
+
})]
|
|
74
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles2.Container, {
|
|
75
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
76
|
+
headerType: "table-row-text",
|
|
77
|
+
text: "Formato"
|
|
78
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
79
|
+
headerType: "table-row-text",
|
|
80
|
+
text: (activeImage === null || activeImage === void 0 ? void 0 : activeImage.ext) || "-"
|
|
81
|
+
})]
|
|
82
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles2.Container, {
|
|
83
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
84
|
+
headerType: "table-row-text",
|
|
85
|
+
text: "Tama\xF1o de imagen"
|
|
86
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
87
|
+
headerType: "table-row-text",
|
|
88
|
+
text: activeImage !== null && activeImage !== void 0 && activeImage.width && activeImage.height ? "".concat(activeImage === null || activeImage === void 0 ? void 0 : activeImage.width, "x").concat(activeImage === null || activeImage === void 0 ? void 0 : activeImage.height, "px") : "-"
|
|
89
|
+
})]
|
|
90
|
+
}), retailerSelected && (lists === null || lists === void 0 ? void 0 : lists.attrForImgs) && (lists === null || lists === void 0 ? void 0 : (_lists$attrForImgs$re = lists.attrForImgs[retailerSelected]) === null || _lists$attrForImgs$re === void 0 ? void 0 : _lists$attrForImgs$re.map(function (attr, index) {
|
|
91
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles2.Container, {
|
|
92
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
93
|
+
headerType: "table-row-text",
|
|
94
|
+
text: (attr === null || attr === void 0 ? void 0 : attr.name) || "-"
|
|
95
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_LabelToInput.default, {
|
|
96
|
+
width: "100px",
|
|
97
|
+
defaultValue: attr === null || attr === void 0 ? void 0 : attr.value,
|
|
98
|
+
onChange: function onChange(e) {
|
|
99
|
+
setImages({
|
|
100
|
+
action: "changeAttrValue",
|
|
101
|
+
retailer: retailerSelected,
|
|
102
|
+
index: index,
|
|
103
|
+
value: e.target.value || "-"
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
})]
|
|
107
|
+
}, "row-" + index);
|
|
108
|
+
}))]
|
|
33
109
|
});
|
|
34
110
|
};
|
|
35
111
|
|
|
@@ -20,7 +20,14 @@ var InputGroup = function InputGroup(_ref) {
|
|
|
20
20
|
inputGroup = _ref$inputGroup === void 0 ? {} : _ref$inputGroup,
|
|
21
21
|
activeSection = _ref.activeSection,
|
|
22
22
|
_ref$dataInputs = _ref.dataInputs,
|
|
23
|
-
dataInputs = _ref$dataInputs === void 0 ? {} : _ref$dataInputs
|
|
23
|
+
dataInputs = _ref$dataInputs === void 0 ? {} : _ref$dataInputs,
|
|
24
|
+
updatedDescriptions = _ref.updatedDescriptions,
|
|
25
|
+
setUpdatedDescriptions = _ref.setUpdatedDescriptions,
|
|
26
|
+
updatedDatasheets = _ref.updatedDatasheets,
|
|
27
|
+
setUpdatedDatasheets = _ref.setUpdatedDatasheets,
|
|
28
|
+
articleId = _ref.articleId,
|
|
29
|
+
version = _ref.version,
|
|
30
|
+
dinamicHeight = _ref.dinamicHeight;
|
|
24
31
|
|
|
25
32
|
var inputTypeValue = function inputTypeValue(type) {
|
|
26
33
|
switch (type) {
|
|
@@ -37,27 +44,41 @@ var InputGroup = function InputGroup(_ref) {
|
|
|
37
44
|
|
|
38
45
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
39
46
|
className: activeSection === "Ficha técnica" ? "datasheets-layout" : "descriptions-layout",
|
|
40
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
47
|
+
children: [(inputGroup === null || inputGroup === void 0 ? void 0 : inputGroup.dataGroup) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
41
48
|
headerType: "retailer-name-header",
|
|
42
49
|
text: inputGroup === null || inputGroup === void 0 ? void 0 : inputGroup.dataGroup
|
|
43
50
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
44
51
|
className: "inputs-container",
|
|
45
52
|
children: inputGroup === null || inputGroup === void 0 ? void 0 : (_inputGroup$inputs = inputGroup.inputs) === null || _inputGroup$inputs === void 0 ? void 0 : _inputGroup$inputs.map(function (input, index) {
|
|
46
|
-
var _dataInputs$input, _dataInputs$input2, _dataInputs$input3, _dataInputs$input4;
|
|
53
|
+
var _dataInputs$input, _dataInputs$input2, _dataInputs$input3, _dataInputs$input4, _dataInputs$input5, _dataInputs$input6, _dataInputs$input7, _dataInputs$input8, _dataInputs$input9, _dataInputs$input10;
|
|
47
54
|
|
|
48
55
|
return activeSection === "Ficha técnica" ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
49
|
-
inputId:
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
+
inputId: (_dataInputs$input3 = dataInputs[input]) === null || _dataInputs$input3 === void 0 ? void 0 : _dataInputs$input3.id,
|
|
57
|
+
version: version,
|
|
58
|
+
inputType: inputTypeValue((_dataInputs$input4 = dataInputs[input]) === null || _dataInputs$input4 === void 0 ? void 0 : _dataInputs$input4.type),
|
|
59
|
+
label: ((_dataInputs$input5 = dataInputs[input]) === null || _dataInputs$input5 === void 0 ? void 0 : _dataInputs$input5.name) + ((_dataInputs$input6 = dataInputs[input]) !== null && _dataInputs$input6 !== void 0 && _dataInputs$input6.required ? "*" : ""),
|
|
60
|
+
value: (_dataInputs$input7 = dataInputs[input]) === null || _dataInputs$input7 === void 0 ? void 0 : _dataInputs$input7.value,
|
|
61
|
+
inputPlaceHolder: input === null || input === void 0 ? void 0 : input.placeholder,
|
|
62
|
+
articleId: articleId,
|
|
63
|
+
isRequired: (_dataInputs$input8 = dataInputs[input]) === null || _dataInputs$input8 === void 0 ? void 0 : _dataInputs$input8.required,
|
|
64
|
+
updatedDatasheets: updatedDatasheets,
|
|
65
|
+
setUpdatedDatasheets: setUpdatedDatasheets,
|
|
66
|
+
maxChar: (_dataInputs$input9 = dataInputs[input]) !== null && _dataInputs$input9 !== void 0 && _dataInputs$input9.max_chars ? (_dataInputs$input10 = dataInputs[input]) === null || _dataInputs$input10 === void 0 ? void 0 : _dataInputs$input10.max_chars : 999
|
|
67
|
+
}, index + "-" + ((_dataInputs$input = dataInputs[input]) === null || _dataInputs$input === void 0 ? void 0 : _dataInputs$input.value) + "-" + ((_dataInputs$input2 = dataInputs[input]) === null || _dataInputs$input2 === void 0 ? void 0 : _dataInputs$input2.id)) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
68
|
+
inputId: input.id,
|
|
69
|
+
index: index,
|
|
56
70
|
inputType: "textarea",
|
|
57
|
-
label: input === null || input === void 0 ? void 0 : input.name,
|
|
71
|
+
label: (input === null || input === void 0 ? void 0 : input.name) + (input.required ? "*" : ""),
|
|
58
72
|
value: input === null || input === void 0 ? void 0 : input.value,
|
|
59
|
-
|
|
60
|
-
|
|
73
|
+
isRequired: input.required,
|
|
74
|
+
maxChar: input.max_chars,
|
|
75
|
+
inputPlaceHolder: input === null || input === void 0 ? void 0 : input.placeholder,
|
|
76
|
+
updatedDescriptions: updatedDescriptions,
|
|
77
|
+
setUpdatedDescriptions: setUpdatedDescriptions,
|
|
78
|
+
articleId: articleId,
|
|
79
|
+
version: version,
|
|
80
|
+
dinamicHeight: dinamicHeight
|
|
81
|
+
}, index + "-" + (input === null || input === void 0 ? void 0 : input.value));
|
|
61
82
|
})
|
|
62
83
|
})]
|
|
63
84
|
});
|
|
@@ -15,6 +15,6 @@ var _variables = require("../../../global-files/variables");
|
|
|
15
15
|
|
|
16
16
|
var _templateObject;
|
|
17
17
|
|
|
18
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n border: 1px solid ", ";\n border-radius: 6px;\n padding: 10px;\n width: 100%;\n\n .retailer-name-header {\n & + * {\n margin-top: 10px;\n }\n }\n &.datasheets-layout {\n padding-right: 0;\n\n .inputs-container {\n display: flex;\n flex-wrap: wrap;\n\n .input-container {\n flex: 1 1 20%;\n margin-right: 10px;\n min-width: 227px;\n }\n }\n }\n\n & + * {\n margin-top: 15px;\n }\n"])), _variables.GlobalColors.s2);
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n border: 1px solid ", ";\n border-radius: 6px;\n padding: 10px;\n width: 100%;\n\n .retailer-name-header {\n & + * {\n margin-top: 10px;\n }\n }\n &.datasheets-layout {\n padding-right: 0;\n\n .inputs-container {\n display: flex;\n flex-wrap: wrap;\n\n .input-container {\n flex: 1 1 20%;\n margin-right: 10px;\n min-width: 227px;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n }\n }\n }\n\n & + * {\n margin-top: 15px;\n }\n"])), _variables.GlobalColors.s2);
|
|
19
19
|
|
|
20
20
|
exports.Container = Container;
|
|
@@ -23,18 +23,19 @@ var _ValidationPanel = require("../../atoms/ValidationPanel");
|
|
|
23
23
|
|
|
24
24
|
var _GeneralButton = require("../../atoms/GeneralButton");
|
|
25
25
|
|
|
26
|
-
var _data = require("../../../global-files/data");
|
|
27
|
-
|
|
28
26
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
29
27
|
|
|
30
28
|
var ProductImageModal = function ProductImageModal(_ref) {
|
|
29
|
+
var _images$values$active, _images$values$active2, _images$values$active3;
|
|
30
|
+
|
|
31
31
|
var _ref$images = _ref.images,
|
|
32
32
|
images = _ref$images === void 0 ? [] : _ref$images,
|
|
33
33
|
headerInfo = _ref.headerInfo,
|
|
34
34
|
validation = _ref.validation,
|
|
35
|
-
setShowModal = _ref.setShowModal
|
|
35
|
+
setShowModal = _ref.setShowModal,
|
|
36
|
+
sendToFacilitator = _ref.sendToFacilitator;
|
|
36
37
|
|
|
37
|
-
var _useState = (0, _react.useState)(
|
|
38
|
+
var _useState = (0, _react.useState)(0),
|
|
38
39
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
39
40
|
activeImage = _useState2[0],
|
|
40
41
|
setActiveImage = _useState2[1];
|
|
@@ -67,8 +68,8 @@ var ProductImageModal = function ProductImageModal(_ref) {
|
|
|
67
68
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
68
69
|
className: "modal-image-container",
|
|
69
70
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ProductImage.ProductImage, {
|
|
70
|
-
img: activeImage.
|
|
71
|
-
altText:
|
|
71
|
+
img: "https://" + process.env.REACT_APP_IMAGES_BUCKET + ".s3.amazonaws.com/" + (images === null || images === void 0 ? void 0 : (_images$values$active = images.values[activeImage]) === null || _images$values$active === void 0 ? void 0 : _images$values$active.srcDB),
|
|
72
|
+
altText: images === null || images === void 0 ? void 0 : (_images$values$active2 = images.values[activeImage]) === null || _images$values$active2 === void 0 ? void 0 : _images$values$active2.name,
|
|
72
73
|
imageType: "expanded-modal-image"
|
|
73
74
|
})
|
|
74
75
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
@@ -90,13 +91,15 @@ var ProductImageModal = function ProductImageModal(_ref) {
|
|
|
90
91
|
}), showValidationPanel && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ValidationPanel.ValidationPanel, {
|
|
91
92
|
id: "validation-panel",
|
|
92
93
|
setOptionClicked: setButtonType,
|
|
93
|
-
setShowValidationPanel: setShowValidationPanel
|
|
94
|
+
setShowValidationPanel: setShowValidationPanel,
|
|
95
|
+
sendToFacilitator: sendToFacilitator
|
|
94
96
|
})]
|
|
95
97
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ImageDataTable.ImageDataTable, {
|
|
96
|
-
imageData: activeImage.data,
|
|
98
|
+
imageData: images === null || images === void 0 ? void 0 : (_images$values$active3 = images.values[activeImage]) === null || _images$values$active3 === void 0 ? void 0 : _images$values$active3.data,
|
|
97
99
|
headerInfo: headerInfo,
|
|
98
|
-
activeImage: activeImage,
|
|
99
|
-
darkMode: true
|
|
100
|
+
activeImage: images === null || images === void 0 ? void 0 : images.values[activeImage],
|
|
101
|
+
darkMode: true,
|
|
102
|
+
lists: images
|
|
100
103
|
})]
|
|
101
104
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ImageSelector.ImageSelector, {
|
|
102
105
|
images: images,
|
|
@@ -15,6 +15,6 @@ var _variables = require("../../../global-files/variables");
|
|
|
15
15
|
|
|
16
16
|
var _templateObject;
|
|
17
17
|
|
|
18
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: center;\n align-items: center;\n min-height: 100vh;\n width: 100%;\n overflow: auto;\n position: fixed;\n background-color: rgba(59, 59, 59, 0.53);\n backdrop-filter: blur(4px);\n\n .modal-container {\n display: flex;\n border-radius: 4px;\n overflow: hidden;\n\n .modal-data-container {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: center;\n padding: 15px;\n min-width: 375px;\n background-color: ", ";\n\n .validation-and-table-container {\n .validation-panel {\n position: relative;\n display: flex;\n justify-content: flex-end;\n align-items: center;\n .circular-button {\n & + * {\n margin-left: 10px;\n }\n }\n\n .close-button {\n border-radius: 3px;\n width: 30px;\n height: 30px;\n padding: 0;\n border: 1px solid #f0eef2;\n background-size: 30px;\n }\n\n & + * {\n margin-top: 25px;\n }\n }\n }\n }\n }\n"])), _variables.GlobalColors.deep_gray);
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: center;\n align-items: center;\n min-height: 100vh;\n width: 100%;\n overflow: auto;\n position: fixed;\n background-color: rgba(59, 59, 59, 0.53);\n backdrop-filter: blur(4px);\n left: 0;\n top: 0;\n z-index: 100;\n\n .modal-container {\n display: flex;\n border-radius: 4px;\n overflow: hidden;\n\n .modal-data-container {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: center;\n padding: 15px;\n min-width: 375px;\n background-color: ", ";\n\n .validation-and-table-container {\n .validation-panel {\n position: relative;\n display: flex;\n justify-content: flex-end;\n align-items: center;\n .circular-button {\n & + * {\n margin-left: 10px;\n }\n }\n\n .close-button {\n border-radius: 3px;\n width: 30px;\n height: 30px;\n padding: 0;\n border: 1px solid #f0eef2;\n background-size: 30px;\n }\n\n & + * {\n margin-top: 25px;\n }\n }\n }\n }\n }\n"])), _variables.GlobalColors.deep_gray);
|
|
19
19
|
|
|
20
20
|
exports.Container = Container;
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = exports.ProviderProductEditionDefault = void 0;
|
|
9
|
+
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
+
|
|
12
|
+
var _index = require("./index");
|
|
13
|
+
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
|
|
16
|
+
var _default = {
|
|
17
|
+
title: "Components/pages/ProviderProductEdition",
|
|
18
|
+
component: _index.ProviderProductEdition
|
|
19
|
+
};
|
|
20
|
+
exports.default = _default;
|
|
21
|
+
|
|
22
|
+
var Template = function Template(args) {
|
|
23
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ProviderProductEdition, (0, _objectSpread2.default)({}, args));
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
var ProviderProductEditionDefault = Template.bind({});
|
|
27
|
+
exports.ProviderProductEditionDefault = ProviderProductEditionDefault;
|
|
28
|
+
ProviderProductEditionDefault.args = {
|
|
29
|
+
tabsSections: {
|
|
30
|
+
Descripción: true,
|
|
31
|
+
"Ficha técnica": false,
|
|
32
|
+
Imágenes: false
|
|
33
|
+
},
|
|
34
|
+
token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmNTkyN2Y4ZS1jYmY3LTQ5MjItOWUwOS1lNjllYzBiMjczMWEiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImY1OTI3ZjhlLWNiZjctNDkyMi05ZTA5LWU2OWVjMGIyNzMxYSIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiJhZWQzMzEyZi1kZGYyLTQ2ZTAtOTgyNS1lODU2ZDM0ODYwNzMiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY1Mzk1NzQ3MiwibmFtZSI6IklzbWFlbCBMb3BleiIsInBob25lX251bWJlciI6Iis1MjMxMTEzNjYzMzYiLCJleHAiOjE2NTM5NjEwNzIsImlhdCI6MTY1Mzk1NzQ3MiwiZW1haWwiOiJpbG9wZXpAY29udGVudG9oLmNvbSJ9.Fq4bWu0irZ3NHDU2MOXBJZaqQlzbXwrS6YY2_GBG0Nq8z5gNmKr8LFcjBvD1mYj6sO6BHPrh0yzAOtlQMVOFAeXXRZ524Um_rpECWKDUD8IjCKUIgbqQos_YB-09zetlsmIE6Pd29UxDuwrN7zWqzzTuKGUnNhfC8uS3_tG9fi4TxNY0TY8Jwuk9uo0LlOjiIb28mL06B98EWTFbuze5J0AADfa_p0zEqYMyAIn4kYouIOt8eqOVFfZ4piEJMMcbwwaPwVTpy8e6FSLHrQeCa054ZJCvdGQLKhN1Ceue77voFINI9umnEIExAp_w2miOwzJjuk6E1ALf2LWo-Rz_qg",
|
|
35
|
+
articleId: 238,
|
|
36
|
+
category: 846,
|
|
37
|
+
version: 2,
|
|
38
|
+
productSelected: {
|
|
39
|
+
id_article: 32,
|
|
40
|
+
id_category: "781",
|
|
41
|
+
name: "PRODUCTO 10",
|
|
42
|
+
upc: "PRUEBA10",
|
|
43
|
+
timestamp: "2021-11-09T23:22:36.000Z",
|
|
44
|
+
status: "NULL",
|
|
45
|
+
categoryName: "TECNOLOGÍA Y ELECTRÓNICA|VIDEO|DVD Y BLU-RAY",
|
|
46
|
+
asignations: [],
|
|
47
|
+
version: 2,
|
|
48
|
+
version_status: "AC",
|
|
49
|
+
retailersAvailable: [{
|
|
50
|
+
id: 2,
|
|
51
|
+
name: "Walmart Mercancías Generales",
|
|
52
|
+
country: "México",
|
|
53
|
+
id_region: 1,
|
|
54
|
+
active: 1
|
|
55
|
+
}, {
|
|
56
|
+
id: 3,
|
|
57
|
+
name: "Sam´s Club",
|
|
58
|
+
country: "México",
|
|
59
|
+
id_region: 1,
|
|
60
|
+
active: 1
|
|
61
|
+
}],
|
|
62
|
+
missing: {}
|
|
63
|
+
},
|
|
64
|
+
productToEdit: {
|
|
65
|
+
idCategory: "781",
|
|
66
|
+
ArticleId: 32,
|
|
67
|
+
product: [{
|
|
68
|
+
id_article: 32,
|
|
69
|
+
id_category: "781",
|
|
70
|
+
name: "PRODUCTO 10",
|
|
71
|
+
upc: "PRUEBA10",
|
|
72
|
+
timestamp: "2021-11-09T23:22:36.000Z",
|
|
73
|
+
status: "NULL",
|
|
74
|
+
categoryName: "TECNOLOGÍA Y ELECTRÓNICA|VIDEO|DVD Y BLU-RAY",
|
|
75
|
+
asignations: [],
|
|
76
|
+
version: 2,
|
|
77
|
+
version_status: "AC",
|
|
78
|
+
retailersAvailable: [{
|
|
79
|
+
id: 2,
|
|
80
|
+
name: "Walmart Mercancías Generales",
|
|
81
|
+
country: "México",
|
|
82
|
+
id_region: 1,
|
|
83
|
+
active: 1
|
|
84
|
+
}, {
|
|
85
|
+
id: 3,
|
|
86
|
+
name: "Sam´s Club",
|
|
87
|
+
country: "México",
|
|
88
|
+
id_region: 1,
|
|
89
|
+
active: 1
|
|
90
|
+
}],
|
|
91
|
+
missing: {}
|
|
92
|
+
}]
|
|
93
|
+
},
|
|
94
|
+
location: {
|
|
95
|
+
product: {
|
|
96
|
+
articleId: 109485,
|
|
97
|
+
versionId: 3
|
|
98
|
+
},
|
|
99
|
+
state: {
|
|
100
|
+
origin: "RequestWithContentoh"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
user: {
|
|
104
|
+
id_user: 28,
|
|
105
|
+
name: "Proveedor",
|
|
106
|
+
last_name: "Colgate",
|
|
107
|
+
email: "ilopez@contentoh.com",
|
|
108
|
+
position: "Prueba Admin",
|
|
109
|
+
telephone: "+523111366336",
|
|
110
|
+
country: "México",
|
|
111
|
+
id_company: 1,
|
|
112
|
+
id_cognito: "f5927f8e-cbf7-4922-9e09-e69ec0b2731a",
|
|
113
|
+
birth_Date: null,
|
|
114
|
+
about_me: null,
|
|
115
|
+
zip_code: null,
|
|
116
|
+
address: null,
|
|
117
|
+
job: null,
|
|
118
|
+
id_stripe: "cus_KuEt6R6vwmN09f",
|
|
119
|
+
id_role: 0,
|
|
120
|
+
active: 1,
|
|
121
|
+
is_retailer: 0,
|
|
122
|
+
membership: {
|
|
123
|
+
id: 38,
|
|
124
|
+
start_date: "2022-01-18T17:25:35.000Z",
|
|
125
|
+
end_date: "2023-01-18T17:25:35.000Z",
|
|
126
|
+
planID: 8,
|
|
127
|
+
plan: "prod_KtlhECVSFG2iro",
|
|
128
|
+
name: "Plan Pro",
|
|
129
|
+
user_limit: "20",
|
|
130
|
+
products_limit: "5000",
|
|
131
|
+
type: "Enterprise"
|
|
132
|
+
},
|
|
133
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1653957474326"
|
|
134
|
+
}
|
|
135
|
+
};
|