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,48 @@
|
|
|
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.RetailerSelectorDefault = 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/molecules/RetailerSelector",
|
|
18
|
+
component: _index.RetailerSelector
|
|
19
|
+
};
|
|
20
|
+
exports.default = _default;
|
|
21
|
+
|
|
22
|
+
var Template = function Template(args) {
|
|
23
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.RetailerSelector, (0, _objectSpread2.default)({}, args));
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
var RetailerSelectorDefault = Template.bind({});
|
|
27
|
+
exports.RetailerSelectorDefault = RetailerSelectorDefault;
|
|
28
|
+
RetailerSelectorDefault.args = {
|
|
29
|
+
retailers: [{
|
|
30
|
+
id: 2,
|
|
31
|
+
name: "Walmart Mercancías Generales",
|
|
32
|
+
country: "México",
|
|
33
|
+
id_region: 1,
|
|
34
|
+
active: 1
|
|
35
|
+
}, {
|
|
36
|
+
id: 3,
|
|
37
|
+
name: "Sam´s Club",
|
|
38
|
+
country: "México",
|
|
39
|
+
id_region: 1,
|
|
40
|
+
active: 1
|
|
41
|
+
}, {
|
|
42
|
+
id: 14,
|
|
43
|
+
name: "Maskota y Petsy",
|
|
44
|
+
country: "México",
|
|
45
|
+
id_region: 1,
|
|
46
|
+
active: 1
|
|
47
|
+
}]
|
|
48
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
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.RetailerSelector = void 0;
|
|
9
|
+
|
|
10
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
11
|
+
|
|
12
|
+
var _styles = require("./styles");
|
|
13
|
+
|
|
14
|
+
var _Avatar = require("../../atoms/Avatar");
|
|
15
|
+
|
|
16
|
+
var _react = require("react");
|
|
17
|
+
|
|
18
|
+
var _AsignationOption = require("../../atoms/AsignationOption");
|
|
19
|
+
|
|
20
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
+
|
|
22
|
+
var RetailerSelector = function RetailerSelector(_ref) {
|
|
23
|
+
var retailers = _ref.retailers,
|
|
24
|
+
activeRetailer = _ref.activeRetailer,
|
|
25
|
+
setActiveRetailer = _ref.setActiveRetailer;
|
|
26
|
+
|
|
27
|
+
var _useState = (0, _react.useState)(false),
|
|
28
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
29
|
+
retailersPanel = _useState2[0],
|
|
30
|
+
setRetailersPanel = _useState2[1];
|
|
31
|
+
|
|
32
|
+
var closeRetailersPanel = function closeRetailersPanel(e) {
|
|
33
|
+
if (!e.target.closest("#retailers-assignation") && retailersPanel) {
|
|
34
|
+
document.removeEventListener("click", closeRetailersPanel, false);
|
|
35
|
+
setRetailersPanel(false);
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
(0, _react.useEffect)(function () {
|
|
40
|
+
if (retailersPanel) {
|
|
41
|
+
document.addEventListener("click", closeRetailersPanel, false);
|
|
42
|
+
}
|
|
43
|
+
}, [retailersPanel]);
|
|
44
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
45
|
+
id: "retailers-assignation",
|
|
46
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.Avatar, {
|
|
47
|
+
image: activeRetailer === null || activeRetailer === void 0 ? void 0 : activeRetailer.image,
|
|
48
|
+
altText: activeRetailer === null || activeRetailer === void 0 ? void 0 : activeRetailer.name,
|
|
49
|
+
imageType: "medium-image",
|
|
50
|
+
onClick: function onClick() {
|
|
51
|
+
(retailers === null || retailers === void 0 ? void 0 : retailers.length) > 1 && setRetailersPanel(!retailersPanel);
|
|
52
|
+
if (retailersPanel) document.removeEventListener("click", closeRetailersPanel, false);
|
|
53
|
+
}
|
|
54
|
+
}), retailersPanel && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
55
|
+
className: "retailers-panel",
|
|
56
|
+
children: retailers.map(function (retailer, index) {
|
|
57
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_AsignationOption.AsignationOption, {
|
|
58
|
+
profileImage: retailer === null || retailer === void 0 ? void 0 : retailer.image,
|
|
59
|
+
imageType: "medium-image",
|
|
60
|
+
asignationType: null,
|
|
61
|
+
name: retailer === null || retailer === void 0 ? void 0 : retailer.name,
|
|
62
|
+
team: retailer === null || retailer === void 0 ? void 0 : retailer.team,
|
|
63
|
+
onClick: function onClick() {
|
|
64
|
+
setActiveRetailer(retailer);
|
|
65
|
+
document.removeEventListener("click", closeRetailersPanel, false);
|
|
66
|
+
setRetailersPanel(false);
|
|
67
|
+
}
|
|
68
|
+
}, "".concat(index, "-").concat(retailer === null || retailer === void 0 ? void 0 : retailer.name));
|
|
69
|
+
})
|
|
70
|
+
})]
|
|
71
|
+
});
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
exports.RetailerSelector = RetailerSelector;
|
package/dist/components/{atoms/MenuCommercialRetailers → molecules/RetailerSelector}/styles.js
RENAMED
|
@@ -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
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n .retailers-panel {\n background: ", ";\n border: 1px solid ", ";\n box-sizing: border-box;\n box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.25);\n border-radius: 4px;\n padding: 10px;\n position: absolute;\n top: calc(100% + 10px);\n right: 0;\n z-index: 10;\n }\n"])), _variables.GlobalColors.s2, _variables.GlobalColors.s3);
|
|
19
19
|
|
|
20
20
|
exports.Container = Container;
|
|
@@ -23,32 +23,43 @@ var _react = require("react");
|
|
|
23
23
|
|
|
24
24
|
var _index3 = require("../../atoms/AsignationOption/index");
|
|
25
25
|
|
|
26
|
+
var _data = require("../../../global-files/data");
|
|
27
|
+
|
|
26
28
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
27
29
|
|
|
28
30
|
var StatusAsignationInfo = function StatusAsignationInfo(_ref) {
|
|
31
|
+
var _assignationsImages$a, _assignationsImages$c;
|
|
32
|
+
|
|
29
33
|
var _ref$status = _ref.status,
|
|
30
34
|
status = _ref$status === void 0 ? "-" : _ref$status,
|
|
31
|
-
src = _ref.src,
|
|
32
35
|
imagesSection = _ref.imagesSection,
|
|
33
36
|
setImageLayout = _ref.setImageLayout,
|
|
34
|
-
asignationsList = _ref.asignationsList,
|
|
35
37
|
_ref$percent = _ref.percent,
|
|
36
38
|
percent = _ref$percent === void 0 ? 0 : _ref$percent,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
+
assignationsImages = _ref.assignationsImages,
|
|
40
|
+
setAssignation = _ref.setAssignation,
|
|
41
|
+
isRetailer = _ref.isRetailer,
|
|
42
|
+
downloadImages = _ref.downloadImages,
|
|
43
|
+
askToDeleteImages = _ref.askToDeleteImages,
|
|
39
44
|
_ref$id = _ref.id,
|
|
40
|
-
id = _ref$id === void 0 ? "default-id" : _ref$id
|
|
45
|
+
id = _ref$id === void 0 ? "default-id" : _ref$id,
|
|
46
|
+
onClickSave = _ref.onClickSave;
|
|
41
47
|
|
|
42
48
|
var _useState = (0, _react.useState)(false),
|
|
43
49
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
44
50
|
showAsignationPanel = _useState2[0],
|
|
45
51
|
setShowAsignationPanel = _useState2[1];
|
|
46
52
|
|
|
47
|
-
var _useState3 = (0, _react.useState)(
|
|
53
|
+
var _useState3 = (0, _react.useState)(false),
|
|
48
54
|
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
49
55
|
layout = _useState4[0],
|
|
50
56
|
setLayout = _useState4[1];
|
|
51
57
|
|
|
58
|
+
var _useState5 = (0, _react.useState)("facilitator"),
|
|
59
|
+
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
|
60
|
+
assignationType = _useState6[0],
|
|
61
|
+
setAssignationType = _useState6[1];
|
|
62
|
+
|
|
52
63
|
var closeAsignations = function closeAsignations(e) {
|
|
53
64
|
if (!e.target.closest("#default-id") && showAsignationPanel) {
|
|
54
65
|
document.removeEventListener("click", closeAsignations, false);
|
|
@@ -63,17 +74,20 @@ var StatusAsignationInfo = function StatusAsignationInfo(_ref) {
|
|
|
63
74
|
}, [showAsignationPanel]);
|
|
64
75
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
65
76
|
id: id,
|
|
66
|
-
children: [
|
|
77
|
+
children: [["AP", "AC", "RC"].includes(status) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
78
|
+
buttonType: "circular-button save-button",
|
|
79
|
+
onClick: onClickSave
|
|
80
|
+
}), imagesSection && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
67
81
|
className: "images-buttons",
|
|
68
82
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
69
|
-
buttonType: "circular-button
|
|
83
|
+
buttonType: "circular-button delete-button",
|
|
70
84
|
onClick: function onClick() {
|
|
71
|
-
|
|
85
|
+
askToDeleteImages && askToDeleteImages();
|
|
72
86
|
}
|
|
73
87
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
74
|
-
buttonType: "circular-button
|
|
88
|
+
buttonType: "circular-button download-button",
|
|
75
89
|
onClick: function onClick() {
|
|
76
|
-
|
|
90
|
+
downloadImages();
|
|
77
91
|
}
|
|
78
92
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
79
93
|
buttonType: layout ? "grid-layout" : "row-layout",
|
|
@@ -82,16 +96,19 @@ var StatusAsignationInfo = function StatusAsignationInfo(_ref) {
|
|
|
82
96
|
setImageLayout && setImageLayout(!layout);
|
|
83
97
|
}
|
|
84
98
|
})]
|
|
85
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
99
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
100
|
+
className: "assignations-container",
|
|
101
|
+
children: assignationsImages === null || assignationsImages === void 0 ? void 0 : (_assignationsImages$a = assignationsImages.assignations) === null || _assignationsImages$a === void 0 ? void 0 : _assignationsImages$a.map(function (assignation, index) {
|
|
102
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.Avatar, {
|
|
103
|
+
imageType: "small-image",
|
|
104
|
+
image: (0, _data.getProfilePicture)(assignation.id, 20, 20),
|
|
105
|
+
altText: "user profile image",
|
|
106
|
+
onClick: function onClick() {
|
|
107
|
+
setShowAsignationPanel(true);
|
|
108
|
+
setAssignationType(assignation === null || assignation === void 0 ? void 0 : assignation.collaboratorType);
|
|
109
|
+
}
|
|
110
|
+
}, index + "-" + assignation.id);
|
|
111
|
+
})
|
|
95
112
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ScreenHeader, {
|
|
96
113
|
text: "Asig.",
|
|
97
114
|
color: "#969696",
|
|
@@ -120,18 +137,19 @@ var StatusAsignationInfo = function StatusAsignationInfo(_ref) {
|
|
|
120
137
|
})]
|
|
121
138
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
122
139
|
className: "asignations-list",
|
|
123
|
-
children:
|
|
140
|
+
children: (assignationsImages === null || assignationsImages === void 0 ? void 0 : assignationsImages.collaborators) !== undefined ? assignationsImages === null || assignationsImages === void 0 ? void 0 : (_assignationsImages$c = assignationsImages.collaborators[assignationType]) === null || _assignationsImages$c === void 0 ? void 0 : _assignationsImages$c.map(function (asignation, index) {
|
|
124
141
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.AsignationOption, {
|
|
125
|
-
profileImage: asignation.
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
142
|
+
profileImage: (0, _data.getProfilePicture)(asignation === null || asignation === void 0 ? void 0 : asignation.id_user, 40, 40),
|
|
143
|
+
onClick: function onClick() {
|
|
144
|
+
setAssignation(assignationType, asignation === null || asignation === void 0 ? void 0 : asignation.id_user);
|
|
145
|
+
},
|
|
146
|
+
name: asignation.name
|
|
147
|
+
}, index + "-" + asignation.name);
|
|
130
148
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
131
149
|
className: "no-asignations",
|
|
132
150
|
children: "Sin personas para asignar"
|
|
133
151
|
})
|
|
134
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
152
|
+
}), isRetailer === 1 && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
135
153
|
className: "default-asignations-list",
|
|
136
154
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.AsignationOption, {
|
|
137
155
|
asignationType: "provider",
|
|
@@ -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 align-items: center;\n position: relative;\n\n > * + * {\n margin-left: 8px;\n }\n\n .images-buttons {\n button + * {\n margin-left: 8px;\n }\n }\n\n .asignation-panel {\n background: ", ";\n border: 1px solid ", ";\n box-sizing: border-box;\n box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.25);\n border-radius: 4px;\n padding: 10px;\n position: absolute;\n top: calc(100% + 10px);\n right: 0;\n\n .asignation-header {\n display: flex;\n justify-content: space-between;\n\n .asignation-status,\n .asignation-percent {\n & > p {\n font-family: ", ";\n font-weight: 500;\n font-size: 14px;\n line-height: 16px;\n color: ", ";\n }\n }\n\n .asignation-percent {\n text-align: right;\n }\n\n & + * {\n margin-top: 10px;\n }\n }\n\n .asignations-list {\n min-height: 40px;\n
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n position: relative;\n\n > * + * {\n margin-left: 8px;\n }\n\n .images-buttons {\n button + * {\n margin-left: 8px;\n }\n }\n\n .assignations-container {\n display: flex;\n cursor: pointer;\n }\n\n .asignation-panel {\n background: ", ";\n border: 1px solid ", ";\n box-sizing: border-box;\n box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.25);\n border-radius: 4px;\n padding: 10px 8px;\n position: absolute;\n top: calc(100% + 10px);\n right: 0;\n z-index: 10;\n\n .asignation-header {\n display: flex;\n justify-content: space-between;\n\n .asignation-status,\n .asignation-percent {\n & > p {\n font-family: ", ";\n font-weight: 500;\n font-size: 14px;\n line-height: 16px;\n color: ", ";\n }\n }\n\n .asignation-percent {\n text-align: right;\n }\n\n & + * {\n margin-top: 10px;\n }\n }\n\n .asignations-list {\n min-height: 40px;\n\n .no-asignations {\n padding: 5px;\n font-family: ", ";\n font-weight: 500;\n font-size: 14px;\n line-height: 16px;\n color: ", ";\n }\n\n & + * {\n margin-top: 10px;\n border-top: 1px solid ", ";\n }\n }\n\n .default-asignations-list {\n padding-top: 10px;\n }\n }\n"])), _variables.GlobalColors.s2, _variables.GlobalColors.s3, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s5, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s5, _variables.GlobalColors.s3);
|
|
19
19
|
|
|
20
20
|
exports.Container = Container;
|
|
@@ -16,16 +16,23 @@ var _variables = require("../../../global-files/variables");
|
|
|
16
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
17
|
|
|
18
18
|
var TableHeader = function TableHeader(_ref) {
|
|
19
|
-
var
|
|
20
|
-
activeImage = _ref.activeImage
|
|
19
|
+
var imagesStatus = _ref.imagesStatus,
|
|
20
|
+
activeImage = _ref.activeImage,
|
|
21
|
+
assignationsImages = _ref.assignationsImages,
|
|
22
|
+
setAssignation = _ref.setAssignation,
|
|
23
|
+
isRetailer = _ref.isRetailer,
|
|
24
|
+
onClickSave = _ref.onClickSave;
|
|
21
25
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
22
26
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
23
|
-
text: activeImage === null || activeImage === void 0 ? void 0 : activeImage.
|
|
27
|
+
text: (activeImage === null || activeImage === void 0 ? void 0 : activeImage.name) || "-",
|
|
24
28
|
color: _variables.GlobalColors.s5,
|
|
25
29
|
headerType: "input-name-header"
|
|
26
30
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_StatusAsignationInfo.StatusAsignationInfo, {
|
|
27
|
-
status:
|
|
28
|
-
|
|
31
|
+
status: imagesStatus,
|
|
32
|
+
assignationsImages: assignationsImages,
|
|
33
|
+
setAssignation: setAssignation,
|
|
34
|
+
isRetailer: isRetailer,
|
|
35
|
+
onClickSave: onClickSave
|
|
29
36
|
})]
|
|
30
37
|
});
|
|
31
38
|
};
|
|
@@ -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: space-between;\n padding-bottom: 5px;\n border-bottom: 1px solid ", ";\n\n .status-asignation-info {\n display: flex;\n align-items: center;\n\n * + * {\n margin-left: 5px;\n }\n }\n\n & + * {\n margin-top: 4px;\n }\n"])), _variables.GlobalColors.s2);
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: space-between;\n padding-bottom: 5px;\n border-bottom: 1px solid ", ";\n\n .input-name-header {\n overflow: auto;\n max-width: 40%;\n white-space: nowrap;\n }\n .status-asignation-info {\n display: flex;\n align-items: center;\n\n * + * {\n margin-left: 5px;\n }\n }\n\n & + * {\n margin-top: 4px;\n }\n"])), _variables.GlobalColors.s2);
|
|
19
19
|
|
|
20
20
|
exports.Container = Container;
|
|
@@ -19,7 +19,18 @@ var TagAndInput = function TagAndInput(_ref) {
|
|
|
19
19
|
value = _ref.value,
|
|
20
20
|
inputPlaceHolder = _ref.inputPlaceHolder,
|
|
21
21
|
inputId = _ref.inputId,
|
|
22
|
-
|
|
22
|
+
updatedDescriptions = _ref.updatedDescriptions,
|
|
23
|
+
setUpdatedDescriptions = _ref.setUpdatedDescriptions,
|
|
24
|
+
updatedDatasheets = _ref.updatedDatasheets,
|
|
25
|
+
setUpdatedDatasheets = _ref.setUpdatedDatasheets,
|
|
26
|
+
articleId = _ref.articleId,
|
|
27
|
+
version = _ref.version,
|
|
28
|
+
index = _ref.index,
|
|
29
|
+
isRequired = _ref.isRequired,
|
|
30
|
+
dinamicHeight = _ref.dinamicHeight,
|
|
31
|
+
inputCols = _ref.inputCols,
|
|
32
|
+
inputRows = _ref.inputRows,
|
|
33
|
+
maxChar = _ref.maxChar;
|
|
23
34
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
24
35
|
inputType: inputType,
|
|
25
36
|
className: "input-container",
|
|
@@ -30,8 +41,19 @@ var TagAndInput = function TagAndInput(_ref) {
|
|
|
30
41
|
inputId: inputId,
|
|
31
42
|
inputType: inputType,
|
|
32
43
|
inputValue: value,
|
|
44
|
+
index: index,
|
|
45
|
+
isRequired: isRequired,
|
|
33
46
|
inputPlaceholder: inputPlaceHolder,
|
|
34
|
-
|
|
47
|
+
updatedDescriptions: updatedDescriptions,
|
|
48
|
+
setUpdatedDescriptions: setUpdatedDescriptions,
|
|
49
|
+
updatedDatasheets: updatedDatasheets,
|
|
50
|
+
setUpdatedDatasheets: setUpdatedDatasheets,
|
|
51
|
+
articleId: articleId,
|
|
52
|
+
version: version,
|
|
53
|
+
dinamicHeight: dinamicHeight,
|
|
54
|
+
inputCols: inputCols,
|
|
55
|
+
inputRows: inputRows,
|
|
56
|
+
maxChar: maxChar
|
|
35
57
|
})]
|
|
36
58
|
}, "generalTagInput-".concat(inputType));
|
|
37
59
|
};
|
|
@@ -0,0 +1,31 @@
|
|
|
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.TextAndGradientDefault = void 0;
|
|
9
|
+
|
|
10
|
+
var _index = require("./index");
|
|
11
|
+
|
|
12
|
+
var _Cadena = _interopRequireDefault(require("../../../assets/images/providerAndCadena/Cadena.svg"));
|
|
13
|
+
|
|
14
|
+
var _default = {
|
|
15
|
+
title: "Components/molecules/TextAndGradient",
|
|
16
|
+
component: _index.TextAndGradient
|
|
17
|
+
};
|
|
18
|
+
exports.default = _default;
|
|
19
|
+
|
|
20
|
+
var Template = function Template(args) {
|
|
21
|
+
return /*#__PURE__*/React.createElement(_index.TextAndGradient, args);
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
var TextAndGradientDefault = Template.bind({});
|
|
25
|
+
exports.TextAndGradientDefault = TextAndGradientDefault;
|
|
26
|
+
TextAndGradientDefault.args = {
|
|
27
|
+
title: "Beneficios de cadenas",
|
|
28
|
+
containerList: {
|
|
29
|
+
content: ["Crea proveedores y agregalos a tu cadena", "Valida los proveedores", "Solicita actualización a proveedores", "Analiza el número de productos totales"]
|
|
30
|
+
}
|
|
31
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.TextAndGradient = void 0;
|
|
7
|
+
|
|
8
|
+
var _styles = require("./styles");
|
|
9
|
+
|
|
10
|
+
var _AtomList = require("../../atoms/AtomList");
|
|
11
|
+
|
|
12
|
+
var _ScreenHeader = require("../../atoms/ScreenHeader");
|
|
13
|
+
|
|
14
|
+
var _variables = require("../../../global-files/variables");
|
|
15
|
+
|
|
16
|
+
var TextAndGradient = function TextAndGradient(_ref) {
|
|
17
|
+
var title = _ref.title,
|
|
18
|
+
image = _ref.image,
|
|
19
|
+
containerList = _ref.containerList;
|
|
20
|
+
return /*#__PURE__*/React.createElement(_styles.Container, null, /*#__PURE__*/React.createElement("div", {
|
|
21
|
+
className: "title"
|
|
22
|
+
}, /*#__PURE__*/React.createElement(_ScreenHeader.ScreenHeader, {
|
|
23
|
+
className: "title",
|
|
24
|
+
headerType: "with-bold-text",
|
|
25
|
+
text: title,
|
|
26
|
+
color: _variables.GlobalColors.s1
|
|
27
|
+
})), image && /*#__PURE__*/React.createElement("img", {
|
|
28
|
+
src: image
|
|
29
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
30
|
+
className: "list"
|
|
31
|
+
}, /*#__PURE__*/React.createElement(_AtomList.AtomList, {
|
|
32
|
+
content: containerList.content
|
|
33
|
+
})));
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
exports.TextAndGradient = TextAndGradient;
|
|
@@ -0,0 +1,18 @@
|
|
|
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.Container = 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;
|
|
15
|
+
|
|
16
|
+
var Container = _styledComponents.default.button(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\n position: absolute;\n width: 720px;\n height: 720px;\n left: 0px;\n top: 0px;\n background: linear-gradient(180deg, #E33AA9 0%, #3B1366 100%);\n align-content: center;\n\n .title{\n position: absolute;\n width: 475px;\n height: 36px;\n left: 110px;\n top: 140px;\n letter-spacing: -0.015em;\n font-feature-settings: 'pnum' on, 'lnum' on;\n }\n .list{\n position: absolute;\n height: 160px;\n left: 180px;\n top: 219px;\n font-family: Raleway;\n font-style: normal;\n font-weight: 500;\n font-size: 18px;\n line-height: 40px;\n letter-spacing: -0.015em;\n text-align: left;\n \n }\n\n"])));
|
|
17
|
+
|
|
18
|
+
exports.Container = Container;
|
|
@@ -16,22 +16,44 @@ var _AvatarAndValidation = require("../../molecules/AvatarAndValidation");
|
|
|
16
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
17
|
|
|
18
18
|
var FullProductNameHeader = function FullProductNameHeader(_ref) {
|
|
19
|
-
var
|
|
19
|
+
var _headerData$article, _headerData$article2, _headerData$article3, _headerData$article4, _headerData$article5;
|
|
20
|
+
|
|
21
|
+
var headerData = _ref.headerData,
|
|
22
|
+
percent = _ref.percent,
|
|
23
|
+
activeRetailer = _ref.activeRetailer,
|
|
24
|
+
setActiveRetailer = _ref.setActiveRetailer,
|
|
25
|
+
showValidationButtons = _ref.showValidationButtons,
|
|
26
|
+
approve = _ref.approve,
|
|
27
|
+
reject = _ref.reject;
|
|
20
28
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
21
29
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ProductNameHeader.ProductNameHeader, {
|
|
22
|
-
productName: headerData === null || headerData === void 0 ? void 0 : headerData.name,
|
|
23
|
-
statusType: headerData === null || headerData === void 0 ? void 0 : headerData.status,
|
|
24
|
-
percent:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
date: headerData === null || headerData === void 0 ? void 0 : headerData.date
|
|
30
|
+
productName: (headerData === null || headerData === void 0 ? void 0 : (_headerData$article = headerData.article) === null || _headerData$article === void 0 ? void 0 : _headerData$article.name) || (headerData === null || headerData === void 0 ? void 0 : headerData.name),
|
|
31
|
+
statusType: (headerData === null || headerData === void 0 ? void 0 : headerData.version_status) || (headerData === null || headerData === void 0 ? void 0 : headerData.status),
|
|
32
|
+
percent: percent === null || percent === void 0 ? void 0 : percent.toFixed(0),
|
|
33
|
+
priority: headerData === null || headerData === void 0 ? void 0 : headerData.prio,
|
|
34
|
+
date: new Date((headerData === null || headerData === void 0 ? void 0 : (_headerData$article2 = headerData.article) === null || _headerData$article2 === void 0 ? void 0 : _headerData$article2.timestamp) || (headerData === null || headerData === void 0 ? void 0 : headerData.timestamp)).toLocaleDateString()
|
|
28
35
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
29
36
|
className: "features-bar-container",
|
|
30
37
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_FeaturesBar.FeaturesBar, {
|
|
31
|
-
features:
|
|
38
|
+
features: [{
|
|
39
|
+
feature: "Categoría",
|
|
40
|
+
value: (headerData === null || headerData === void 0 ? void 0 : (_headerData$article3 = headerData.article) === null || _headerData$article3 === void 0 ? void 0 : _headerData$article3.category) || (headerData === null || headerData === void 0 ? void 0 : headerData.categoryName)
|
|
41
|
+
}, {
|
|
42
|
+
feature: "Prov",
|
|
43
|
+
value: headerData === null || headerData === void 0 ? void 0 : (_headerData$article4 = headerData.article) === null || _headerData$article4 === void 0 ? void 0 : _headerData$article4.company_name
|
|
44
|
+
}, {
|
|
45
|
+
feature: "UPC",
|
|
46
|
+
value: (headerData === null || headerData === void 0 ? void 0 : (_headerData$article5 = headerData.article) === null || _headerData$article5 === void 0 ? void 0 : _headerData$article5.upc) || (headerData === null || headerData === void 0 ? void 0 : headerData.upc)
|
|
47
|
+
}]
|
|
32
48
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_AvatarAndValidation.AvatarAndValidation, {
|
|
49
|
+
retailers: (headerData === null || headerData === void 0 ? void 0 : headerData.retailers) || (headerData === null || headerData === void 0 ? void 0 : headerData.retailersAvailable),
|
|
33
50
|
avatarData: headerData === null || headerData === void 0 ? void 0 : headerData.avatarData,
|
|
34
|
-
validation: headerData === null || headerData === void 0 ? void 0 : headerData.validation
|
|
51
|
+
validation: headerData === null || headerData === void 0 ? void 0 : headerData.validation,
|
|
52
|
+
activeRetailer: activeRetailer,
|
|
53
|
+
setActiveRetailer: setActiveRetailer,
|
|
54
|
+
showValidationButtons: showValidationButtons,
|
|
55
|
+
approve: approve,
|
|
56
|
+
reject: reject
|
|
35
57
|
})]
|
|
36
58
|
})]
|
|
37
59
|
});
|
|
@@ -21,10 +21,17 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
21
21
|
|
|
22
22
|
var FullTabsMenu = function FullTabsMenu(_ref) {
|
|
23
23
|
var tabsSections = _ref.tabsSections,
|
|
24
|
-
status = _ref.status,
|
|
25
|
-
|
|
24
|
+
_ref$status = _ref.status,
|
|
25
|
+
status = _ref$status === void 0 ? "" : _ref$status,
|
|
26
|
+
activeTab = _ref.activeTab,
|
|
26
27
|
setActiveTab = _ref.setActiveTab,
|
|
27
|
-
setImageLayout = _ref.setImageLayout
|
|
28
|
+
setImageLayout = _ref.setImageLayout,
|
|
29
|
+
assig = _ref.assig,
|
|
30
|
+
setAssignation = _ref.setAssignation,
|
|
31
|
+
isRetailer = _ref.isRetailer,
|
|
32
|
+
downloadImages = _ref.downloadImages,
|
|
33
|
+
askToDeleteImages = _ref.askToDeleteImages,
|
|
34
|
+
onClickSave = _ref.onClickSave;
|
|
28
35
|
|
|
29
36
|
var _useState = (0, _react.useState)(false),
|
|
30
37
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -38,9 +45,15 @@ var FullTabsMenu = function FullTabsMenu(_ref) {
|
|
|
38
45
|
setActiveTab: setActiveTab
|
|
39
46
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.StatusAsignationInfo, {
|
|
40
47
|
status: status,
|
|
41
|
-
|
|
48
|
+
activeTab: activeTab,
|
|
42
49
|
setImageLayout: setImageLayout,
|
|
43
|
-
imagesSection: imagesSection
|
|
50
|
+
imagesSection: imagesSection,
|
|
51
|
+
assignationsImages: assig,
|
|
52
|
+
setAssignation: setAssignation,
|
|
53
|
+
isRetailer: isRetailer,
|
|
54
|
+
downloadImages: downloadImages,
|
|
55
|
+
onClickSave: onClickSave,
|
|
56
|
+
askToDeleteImages: askToDeleteImages
|
|
44
57
|
})]
|
|
45
58
|
});
|
|
46
59
|
};
|
|
@@ -0,0 +1,73 @@
|
|
|
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.GlobalModal = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var _reactImageFallback = _interopRequireDefault(require("react-image-fallback"));
|
|
13
|
+
|
|
14
|
+
var _styles = require("./styles");
|
|
15
|
+
|
|
16
|
+
var _yellowAlert = _interopRequireDefault(require("../../../assets/images/genericModal/yellowAlert.svg"));
|
|
17
|
+
|
|
18
|
+
var _closeWhite = _interopRequireDefault(require("../../../assets/images/genericModal/closeWhite.svg"));
|
|
19
|
+
|
|
20
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
+
|
|
22
|
+
/*
|
|
23
|
+
props (* required):
|
|
24
|
+
- *close: function to quit pop up e.g close={() => setShow(!show)}
|
|
25
|
+
- button1/button2: name and action button e.g. button1={{ name: 'Cancelar', action: () => console.log('Cancelar') }}
|
|
26
|
+
- img: source image
|
|
27
|
+
- *message: message to show (like title)
|
|
28
|
+
- detail: message detail
|
|
29
|
+
- withoutImg: if the value is "true" the icon will not be displayed, if this attribute is ignored or has the value of "false" the icon will be displayed
|
|
30
|
+
- customComponent: contains a custom component
|
|
31
|
+
*/
|
|
32
|
+
var GlobalModal = function GlobalModal(props) {
|
|
33
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.MainContainer, {
|
|
34
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.MessageContainer, {
|
|
35
|
+
height: props.button1 || props.button2,
|
|
36
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Header, {
|
|
37
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Icon, {
|
|
38
|
+
widthImg: props.widthImg,
|
|
39
|
+
heightImg: props.heightImg,
|
|
40
|
+
children: !props.withoutImg && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactImageFallback.default, {
|
|
41
|
+
src: props.img,
|
|
42
|
+
fallbackImage: _yellowAlert.default,
|
|
43
|
+
alt: ""
|
|
44
|
+
})
|
|
45
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Close, {
|
|
46
|
+
onClick: props.close,
|
|
47
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
48
|
+
src: _closeWhite.default,
|
|
49
|
+
alt: "Cerrar"
|
|
50
|
+
})
|
|
51
|
+
})]
|
|
52
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Message, {
|
|
53
|
+
children: [props.bold && /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.BoldText, {
|
|
54
|
+
children: props.bold
|
|
55
|
+
}), " ", props.message]
|
|
56
|
+
}), props.detail && /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Detail, {
|
|
57
|
+
children: "".concat(props.detail, " ")
|
|
58
|
+
}), props.textArea && /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.TextArea, {
|
|
59
|
+
id: "area"
|
|
60
|
+
}), props.customComponent && props.customComponent, /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.ContainerButtons, {
|
|
61
|
+
children: [props.button1 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.FirstButton, {
|
|
62
|
+
onClick: props.button1.action,
|
|
63
|
+
children: props.button1.name
|
|
64
|
+
}), props.button2 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Button, {
|
|
65
|
+
onClick: props.button2.action,
|
|
66
|
+
children: props.button2.name
|
|
67
|
+
})]
|
|
68
|
+
})]
|
|
69
|
+
})
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
exports.GlobalModal = GlobalModal;
|