contentoh-components-library 21.0.31 → 21.0.32
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 +4 -17
- package/.env.production +1 -14
- package/CHANGELOG.md +33 -31
- package/dist/assets/images/carouselImagesLogin/login2.svg +117 -0
- package/dist/assets/images/carouselImagesLogin/login3.svg +147 -0
- package/dist/assets/images/carouselImagesLogin/loginImage.svg +301 -0
- package/dist/components/atoms/AsignationOption/index.js +5 -9
- package/dist/components/atoms/AsignationOption/styles.js +1 -1
- package/dist/components/atoms/CheckBox/index.js +2 -4
- package/dist/components/atoms/GeneralButton/index.js +0 -5
- package/dist/components/atoms/GeneralButton/styles.js +2 -4
- package/dist/components/atoms/GeneralInput/index.js +24 -73
- package/dist/components/atoms/GeneralInput/styles.js +1 -7
- package/dist/components/atoms/GenericModal/index.js +2 -4
- package/dist/components/atoms/GenericModal/styles.js +1 -1
- package/dist/components/atoms/ListCommercialRetailers/ListCommercialRetailers.stories.js +36 -0
- package/dist/components/atoms/ListCommercialRetailers/index.js +64 -0
- package/dist/components/atoms/ListCommercialRetailers/styles.js +20 -0
- package/dist/components/atoms/Loading/Loading.stories.js +28 -0
- package/dist/components/atoms/Loading/index.js +2 -1
- package/dist/components/atoms/Loading/styles.js +4 -8
- package/dist/components/atoms/MenuCommercialRetailers/MenuCommercialRetailers.stories.js +37 -0
- package/dist/components/atoms/MenuCommercialRetailers/index.js +25 -0
- package/dist/components/{molecules/RetailerSelector → atoms/MenuCommercialRetailers}/styles.js +1 -1
- package/dist/components/atoms/MenuProductImage/MenuProductImage.stories.js +28 -0
- package/dist/components/atoms/MenuProductImage/index.js +88 -0
- package/dist/components/atoms/MenuProductImage/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 +5 -3
- package/dist/components/atoms/ScreenHeader/index.js +1 -1
- package/dist/components/atoms/ScreenHeader/styles.js +1 -1
- package/dist/components/atoms/StatusTag/index.js +2 -37
- package/dist/components/atoms/StatusTag/styles.js +1 -1
- package/dist/components/atoms/ValidationPanel/index.js +3 -4
- package/dist/components/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +22 -0
- package/dist/components/atoms/VerticalSideMenuMainPage/index.js +49 -0
- package/dist/components/atoms/{Commentary → VerticalSideMenuMainPage}/styles.js +1 -6
- package/dist/components/molecules/ApproveRejetPanel/ApproveRejetPanel.stories.js +25 -0
- package/dist/components/molecules/ApproveRejetPanel/index.js +49 -0
- package/dist/components/{atoms/CharCounter → molecules/ApproveRejetPanel}/styles.js +1 -3
- package/dist/components/molecules/AvatarAndValidation/index.js +7 -17
- package/dist/components/molecules/AvatarAndValidation/styles.js +1 -1
- package/dist/components/molecules/CarouselImagesLogin/index.js +40 -42
- package/dist/components/molecules/EmailResetPasswordLogin/EmailResetPasswordLogin.stories.js +28 -0
- package/dist/components/molecules/EmailResetPasswordLogin/index.js +155 -0
- package/dist/components/molecules/EmailResetPasswordLogin/styles.js +20 -0
- package/dist/components/molecules/FeaturesBar/index.js +1 -1
- package/dist/components/molecules/GalleryElement/index.js +21 -80
- package/dist/components/molecules/GalleryElement/styles.js +1 -1
- package/dist/components/molecules/GalleryHeader/index.js +6 -28
- package/dist/components/molecules/GalleryHeader/styles.js +1 -1
- package/dist/components/molecules/ImageSelector/index.js +4 -2
- package/dist/components/molecules/ProductNameHeader/index.js +2 -1
- package/dist/components/molecules/RegistrationFirstStep/RegistrationFirstStep.stories.js +28 -0
- package/dist/components/molecules/RegistrationFirstStep/index.js +336 -0
- package/dist/components/molecules/RegistrationFirstStep/styles.js +20 -0
- package/dist/components/molecules/RegistrationSecondStep/RegistrationSecondStep.stories.js +28 -0
- package/dist/components/molecules/RegistrationSecondStep/index.js +156 -0
- package/dist/components/molecules/RegistrationSecondStep/styles.js +20 -0
- package/dist/components/molecules/RegistrationThirdStep/RegistrationThirdStep.stories.js +28 -0
- package/dist/components/molecules/RegistrationThirdStep/index.js +161 -0
- package/dist/components/molecules/RegistrationThirdStep/styles.js +20 -0
- package/dist/components/{atoms/CharCounter/CharCounter.stories.js → molecules/SignInLogin/SignInLogin.stories.js} +7 -10
- package/dist/components/molecules/SignInLogin/index.js +292 -0
- package/dist/components/molecules/SignInLogin/styles.js +20 -0
- package/dist/components/molecules/StatusAsignationInfo/index.js +25 -46
- package/dist/components/molecules/StatusAsignationInfo/styles.js +1 -1
- package/dist/components/molecules/TableHeader/index.js +5 -12
- package/dist/components/molecules/TableHeader/styles.js +1 -1
- package/dist/components/molecules/TagAndInput/index.js +2 -26
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/VerificationCodeResetPasswordLogin.stories.js +28 -0
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/index.js +104 -0
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/styles.js +20 -0
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/utils.js +69 -0
- package/dist/components/{atoms/InputFormatter/Wysiwyg.stories.js → organisms/ChangePassword/ChangePassword.stories.js} +7 -9
- package/dist/components/organisms/ChangePassword/index.js +113 -0
- package/dist/components/organisms/ChangePassword/styles.js +18 -0
- package/dist/components/organisms/FullProductNameHeader/index.js +8 -32
- package/dist/components/organisms/FullTabsMenu/index.js +5 -18
- package/dist/components/organisms/ImageDataTable/index.js +14 -90
- package/dist/components/organisms/InputGroup/index.js +13 -34
- package/dist/components/organisms/InputGroup/styles.js +1 -1
- package/dist/components/organisms/ProductImageModal/index.js +11 -15
- package/dist/components/organisms/ProductImageModal/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +347 -109
- package/dist/components/pages/RetailerProductEdition/index.js +59 -1589
- package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
- package/dist/global-files/data.js +53 -212
- package/dist/global-files/global-styles.css +0 -1
- package/dist/global-files/variables.js +0 -1
- package/dist/index.js +238 -30
- package/package.json +11 -12
- package/src/components/atoms/AsignationOption/index.js +5 -7
- package/src/components/atoms/AsignationOption/styles.js +1 -9
- package/src/components/atoms/CheckBox/index.js +2 -8
- package/src/components/atoms/GeneralButton/index.js +2 -9
- package/src/components/atoms/GeneralButton/styles.js +0 -23
- package/src/components/atoms/GeneralInput/index.js +21 -71
- package/src/components/atoms/GeneralInput/styles.js +1 -11
- package/src/components/atoms/GenericModal/index.js +2 -2
- package/src/components/atoms/GenericModal/styles.js +2 -10
- package/src/components/atoms/Loading/Loading.stories.js +10 -0
- package/src/components/atoms/Loading/index.js +5 -4
- package/src/components/atoms/Loading/styles.js +43 -43
- 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 +3 -54
- package/src/components/atoms/ScreenHeader/index.js +3 -7
- package/src/components/atoms/ScreenHeader/styles.js +2 -9
- package/src/components/atoms/StatusTag/index.js +2 -30
- package/src/components/atoms/StatusTag/styles.js +3 -15
- package/src/components/atoms/ValidationPanel/index.js +3 -3
- package/src/components/molecules/AvatarAndValidation/index.js +6 -24
- package/src/components/molecules/AvatarAndValidation/styles.js +1 -1
- package/src/components/molecules/CarouselImagesLogin/index.js +34 -37
- package/src/components/molecules/EmailResetPasswordLogin/EmailResetPasswordLogin.stories.js +11 -0
- package/src/components/molecules/EmailResetPasswordLogin/index.js +86 -0
- package/src/components/molecules/EmailResetPasswordLogin/styles.js +23 -0
- package/src/components/molecules/FeaturesBar/index.js +7 -10
- package/src/components/molecules/GalleryElement/index.js +36 -75
- package/src/components/molecules/GalleryElement/styles.js +11 -38
- package/src/components/molecules/GalleryHeader/index.js +8 -14
- package/src/components/molecules/GalleryHeader/styles.js +0 -16
- package/src/components/molecules/ImageSelector/index.js +3 -2
- package/src/components/molecules/ProductNameHeader/index.js +2 -1
- package/src/components/molecules/RegistrationFirstStep/RegistrationFirstStep.stories.js +11 -0
- package/src/components/molecules/RegistrationFirstStep/index.js +242 -0
- package/src/components/molecules/RegistrationFirstStep/styles.js +81 -0
- package/src/components/molecules/RegistrationSecondStep/RegistrationSecondStep.stories.js +11 -0
- package/src/components/molecules/RegistrationSecondStep/index.js +97 -0
- package/src/components/molecules/RegistrationSecondStep/styles.js +59 -0
- package/src/components/molecules/RegistrationThirdStep/RegistrationThirdStep.stories.js +11 -0
- package/src/components/molecules/RegistrationThirdStep/index.js +109 -0
- package/src/components/molecules/RegistrationThirdStep/styles.js +44 -0
- package/src/components/molecules/SignInLogin/SignInLogin.stories.js +11 -0
- package/src/components/molecules/SignInLogin/index.js +205 -0
- package/src/components/molecules/SignInLogin/styles.js +78 -0
- package/src/components/molecules/StatusAsignationInfo/index.js +38 -62
- package/src/components/molecules/StatusAsignationInfo/styles.js +2 -12
- package/src/components/molecules/TableHeader/index.js +3 -16
- package/src/components/molecules/TableHeader/styles.js +0 -5
- package/src/components/molecules/TagAndInput/index.js +0 -24
- package/src/components/molecules/VerificationCodeResetPasswordLogin/VerificationCodeResetPasswordLogin.stories.js +11 -0
- package/src/components/molecules/VerificationCodeResetPasswordLogin/index.js +78 -0
- package/src/components/molecules/VerificationCodeResetPasswordLogin/styles.js +49 -0
- package/src/components/molecules/VerificationCodeResetPasswordLogin/utils.js +56 -0
- package/src/components/organisms/ChangePassword/ChangePassword.stories.js +11 -0
- package/src/components/organisms/ChangePassword/index.js +63 -0
- package/src/components/organisms/ChangePassword/styles.js +16 -0
- package/src/components/organisms/FullProductNameHeader/index.js +7 -28
- package/src/components/organisms/FullTabsMenu/index.js +3 -15
- package/src/components/organisms/ImageDataTable/index.js +11 -89
- package/src/components/organisms/InputGroup/index.js +11 -46
- package/src/components/organisms/InputGroup/styles.js +0 -3
- package/src/components/organisms/ProductImageModal/index.js +12 -20
- package/src/components/organisms/ProductImageModal/styles.js +0 -3
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +343 -117
- package/src/components/pages/RetailerProductEdition/index.js +46 -1225
- package/src/components/pages/RetailerProductEdition/styles.js +4 -67
- package/src/global-files/data.js +57 -156
- package/src/global-files/global-styles.css +0 -1
- package/src/global-files/variables.js +0 -1
- package/src/index.js +17 -1
- package/dist/assets/images/generalButton/downloadIcon.svg +0 -3
- package/dist/assets/images/modalsSVGs/attributesSent.svg +0 -208
- package/dist/assets/images/modalsSVGs/descriptionSent.svg +0 -237
- package/dist/assets/images/modalsSVGs/providerSent.svg +0 -445
- package/dist/assets/images/modalsSVGs/uploadingImages.svg +0 -148
- package/dist/components/atoms/CharCounter/index.js +0 -22
- package/dist/components/atoms/Commentary/Commentary.stories.js +0 -1
- package/dist/components/atoms/Commentary/index.js +0 -23
- package/dist/components/atoms/Input/index.js +0 -26
- package/dist/components/atoms/Input/style.js +0 -26
- package/dist/components/atoms/InputFormatter/index.js +0 -185
- package/dist/components/atoms/InputFormatter/styles.js +0 -33
- package/dist/components/atoms/LabelToInput/index.js +0 -53
- package/dist/components/atoms/LabelToInput/style.js +0 -22
- package/dist/components/atoms/Percent/Percent.stories.js +0 -39
- package/dist/components/atoms/Percent/index.js +0 -39
- package/dist/components/atoms/Percent/styles.js +0 -20
- package/dist/components/atoms/Select/index.js +0 -39
- package/dist/components/atoms/Select/style.js +0 -32
- package/dist/components/molecules/RetailerSelector/RetailerSelector.stories.js +0 -48
- package/dist/components/molecules/RetailerSelector/index.js +0 -74
- package/dist/components/molecules/TextAndGradient/TextAndGradient.stories.js +0 -31
- package/dist/components/molecules/TextAndGradient/index.js +0 -36
- package/dist/components/molecules/TextAndGradient/styles.js +0 -18
- package/src/assets/images/generalButton/downloadIcon.svg +0 -3
- package/src/assets/images/modalsSVGs/attributesSent.svg +0 -208
- package/src/assets/images/modalsSVGs/descriptionSent.svg +0 -237
- package/src/assets/images/modalsSVGs/providerSent.svg +0 -445
- package/src/assets/images/modalsSVGs/uploadingImages.svg +0 -148
- package/src/components/atoms/CharCounter/CharCounter.stories.js +0 -11
- package/src/components/atoms/CharCounter/index.js +0 -13
- package/src/components/atoms/CharCounter/styles.js +0 -10
- package/src/components/atoms/Commentary/Commentary.stories.js +0 -0
- package/src/components/atoms/Commentary/index.js +0 -9
- package/src/components/atoms/Commentary/styles.js +0 -16
- package/src/components/atoms/Input/index.js +0 -15
- package/src/components/atoms/Input/style.js +0 -31
- package/src/components/atoms/InputFormatter/Wysiwyg.stories.js +0 -12
- package/src/components/atoms/InputFormatter/index.js +0 -141
- package/src/components/atoms/InputFormatter/styles.js +0 -40
- package/src/components/atoms/LabelToInput/index.js +0 -26
- package/src/components/atoms/LabelToInput/style.js +0 -41
- package/src/components/atoms/Select/index.js +0 -35
- package/src/components/atoms/Select/style.js +0 -76
- package/src/components/molecules/RetailerSelector/RetailerSelector.stories.js +0 -35
- package/src/components/molecules/RetailerSelector/index.js +0 -63
- package/src/components/molecules/RetailerSelector/styles.js +0 -18
|
@@ -12,14 +12,12 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
12
12
|
var GenericModal = function GenericModal(_ref) {
|
|
13
13
|
var _ref$componentsArray = _ref.componentsArray,
|
|
14
14
|
componentsArray = _ref$componentsArray === void 0 ? [] : _ref$componentsArray,
|
|
15
|
-
buttonType = _ref.buttonType
|
|
16
|
-
onClick = _ref.onClick;
|
|
15
|
+
buttonType = _ref.buttonType;
|
|
17
16
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
18
17
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
19
18
|
className: "global-styles " + buttonType,
|
|
20
19
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
21
|
-
className: "close-button"
|
|
22
|
-
onClick: onClick
|
|
20
|
+
className: "close-button"
|
|
23
21
|
}), componentsArray === null || componentsArray === void 0 ? void 0 : componentsArray.map(function (component) {
|
|
24
22
|
return component;
|
|
25
23
|
})]
|
|
@@ -17,6 +17,6 @@ var _genericModalClose = _interopRequireDefault(require("../../../assets/images/
|
|
|
17
17
|
|
|
18
18
|
var _templateObject;
|
|
19
19
|
|
|
20
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n height: 100%;\n background-color: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n position: fixed;\n background-color: rgba(59, 59, 59, 0.53);\n backdrop-filter: blur(4px);\n
|
|
20
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n height: 100%;\n background-color: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n position: fixed;\n background-color: rgba(59, 59, 59, 0.53);\n backdrop-filter: blur(4px);\n\n .global-styles {\n background-color: ", ";\n height: auto;\n width: auto;\n position: relative;\n border-radius: 15px;\n padding: 40px;\n text-align: center;\n .close-button {\n background-image: url(", ");\n background-color: transparent;\n width: 14px;\n height: 14px;\n cursor: pointer;\n border: none;\n position: absolute;\n right: 20px;\n top: 20px;\n }\n .general-white-button {\n width: 160px;\n height: 40px;\n color: ", ";\n border: 1px solid ", ";\n background-color: transparent;\n & + * {\n margin-left: 45px;\n height: 40px;\n width: 161px;\n }\n }\n\n &.log-out {\n padding-bottom: 60px;\n img {\n & + * {\n margin-top: 20px;\n }\n }\n .with-bold-text {\n font-size: 24px;\n & + * {\n margin-top: 20px;\n }\n }\n }\n\n &.delete-product {\n img {\n height: 50px;\n width: 56px;\n & + * {\n margin-top: 30px;\n }\n }\n .product-name-header {\n & + * {\n margin-bottom: 30px;\n }\n }\n }\n\n &.product-edition {\n padding-top: 50px;\n .product-name-header {\n & + * {\n margin-top: 25px;\n }\n }\n }\n\n &.send-invitation {\n width: 604px;\n img {\n & + * {\n margin-top: 40px;\n }\n }\n p {\n font-family: ", ";\n font-style: normal;\n font-size: 24px;\n color: ", ";\n line-height: 28px;\n span {\n font-family: ", ";\n }\n }\n }\n\n &.upload-image {\n width: 430px;\n padding: 50px;\n img {\n & + * {\n margin-top: 33px;\n }\n }\n .input-name-header {\n & + * {\n margin-top: 20px;\n }\n }\n .list-container {\n & + .general-button-default {\n margin-top: 40px;\n }\n }\n }\n }\n"])), _variables.GlobalColors.white, _variables.GlobalColors.deep_gray, _genericModalClose.default, _variables.GlobalColors.s2, _variables.GlobalColors.white, _variables.FontFamily.Raleway_500, _variables.GlobalColors.white, _variables.FontFamily.Raleway_700);
|
|
21
21
|
|
|
22
22
|
exports.Container = Container;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.ListCommercialRetailersDefault = void 0;
|
|
7
|
+
|
|
8
|
+
var _index = require("./index");
|
|
9
|
+
|
|
10
|
+
var _default = {
|
|
11
|
+
title: "Components/atoms/ListCommercialRetailers",
|
|
12
|
+
component: _index.ListCommercialRetailers
|
|
13
|
+
};
|
|
14
|
+
exports.default = _default;
|
|
15
|
+
|
|
16
|
+
var Template = function Template(args) {
|
|
17
|
+
return /*#__PURE__*/React.createElement(_index.ListCommercialRetailers, args);
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
var ListCommercialRetailersDefault = Template.bind({});
|
|
21
|
+
exports.ListCommercialRetailersDefault = ListCommercialRetailersDefault;
|
|
22
|
+
ListCommercialRetailersDefault.args = {
|
|
23
|
+
retailersAvailable: [{
|
|
24
|
+
id: 54,
|
|
25
|
+
name: "Construrama",
|
|
26
|
+
country: "México",
|
|
27
|
+
id_region: 1,
|
|
28
|
+
active: 1
|
|
29
|
+
}, {
|
|
30
|
+
id: 4,
|
|
31
|
+
name: "Walmart Super y Superama"
|
|
32
|
+
}, {
|
|
33
|
+
id: 6,
|
|
34
|
+
name: "HEB"
|
|
35
|
+
}]
|
|
36
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
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.ListCommercialRetailers = void 0;
|
|
9
|
+
|
|
10
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
11
|
+
|
|
12
|
+
var _styles = require("./styles");
|
|
13
|
+
|
|
14
|
+
var _listCommercialRetailers = _interopRequireDefault(require("../../../assets/images/listCommercialRetailers/listCommercialRetailers.svg"));
|
|
15
|
+
|
|
16
|
+
var _react = require("react");
|
|
17
|
+
|
|
18
|
+
var _index = require("../CheckBox/index");
|
|
19
|
+
|
|
20
|
+
var ListCommercialRetailers = function ListCommercialRetailers(_ref) {
|
|
21
|
+
var retailersAvailable = _ref.retailersAvailable;
|
|
22
|
+
|
|
23
|
+
var _useState = (0, _react.useState)(false),
|
|
24
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
25
|
+
showMenu = _useState2[0],
|
|
26
|
+
setShowMenu = _useState2[1];
|
|
27
|
+
|
|
28
|
+
var closeMenu = function closeMenu(e) {
|
|
29
|
+
if (!e.target.closest(".menu-list-commercial-retailers") && showMenu) {
|
|
30
|
+
document.removeEventListener("click", closeMenu, false);
|
|
31
|
+
setShowMenu(false);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
(0, _react.useEffect)(function () {
|
|
36
|
+
if (showMenu) {
|
|
37
|
+
document.addEventListener("click", closeMenu, false);
|
|
38
|
+
}
|
|
39
|
+
}, [showMenu]);
|
|
40
|
+
return /*#__PURE__*/React.createElement(_styles.Container, {
|
|
41
|
+
onClick: function onClick(event) {
|
|
42
|
+
if (!showMenu) {
|
|
43
|
+
setShowMenu(true);
|
|
44
|
+
} else if (showMenu && !event.target.closest(".menu-list-commercial-retailers")) {
|
|
45
|
+
setShowMenu(false);
|
|
46
|
+
document.removeEventListener("click", closeMenu, false);
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
className: "list-commercial-retailers"
|
|
50
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
51
|
+
src: _listCommercialRetailers.default,
|
|
52
|
+
alt: "button up icon"
|
|
53
|
+
}), showMenu && /*#__PURE__*/React.createElement("div", {
|
|
54
|
+
className: "menu-list-commercial-retailers"
|
|
55
|
+
}, retailersAvailable === null || retailersAvailable === void 0 ? void 0 : retailersAvailable.map(function (component, index) {
|
|
56
|
+
return /*#__PURE__*/React.createElement(_index.CheckBox, {
|
|
57
|
+
id: component.id,
|
|
58
|
+
label: component.name,
|
|
59
|
+
key: index + "-" + component.id
|
|
60
|
+
});
|
|
61
|
+
})));
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
exports.ListCommercialRetailers = ListCommercialRetailers;
|
|
@@ -0,0 +1,20 @@
|
|
|
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 _variables = require("../../../global-files/variables");
|
|
15
|
+
|
|
16
|
+
var _templateObject;
|
|
17
|
+
|
|
18
|
+
var Container = _styledComponents.default.button(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background: transparent;\n border: 1px solid ", ";\n border-radius: 2px;\n padding: 3px;\n display: flex;\n align-items: center;\n cursor: pointer;\n position: relative;\n height: 30px;\n .menu-list-commercial-retailers {\n width: 540px;\n height: auto;\n border-radius: 7px;\n background-color: ", ";\n padding: 14px 14px 8px 20px;\n box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);\n position: absolute;\n top: calc(100% + 3px);\n right: calc(100% - 20px);\n display: flex;\n flex-wrap: wrap;\n z-index: 1;\n div {\n & + * {\n margin-left: 15px;\n }\n p {\n font-size: 11px;\n }\n }\n }\n"])), _variables.GlobalColors.magenta_s2, _variables.GlobalColors.s2);
|
|
19
|
+
|
|
20
|
+
exports.Container = Container;
|
|
@@ -0,0 +1,28 @@
|
|
|
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.LoadingDefault = 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/atoms/Loading",
|
|
18
|
+
component: _index.Loading
|
|
19
|
+
};
|
|
20
|
+
exports.default = _default;
|
|
21
|
+
|
|
22
|
+
var Template = function Template(args) {
|
|
23
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Loading, (0, _objectSpread2.default)({}, args));
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
var LoadingDefault = Template.bind({});
|
|
27
|
+
exports.LoadingDefault = LoadingDefault;
|
|
28
|
+
LoadingDefault.args = {};
|
|
@@ -11,7 +11,8 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
11
11
|
|
|
12
12
|
var Loading = function Loading() {
|
|
13
13
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
14
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(
|
|
14
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
15
|
+
className: "loader",
|
|
15
16
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
16
17
|
className: "first"
|
|
17
18
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
@@ -5,18 +5,14 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.Container = void 0;
|
|
9
9
|
|
|
10
10
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
11
11
|
|
|
12
12
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
13
|
|
|
14
|
-
var _templateObject
|
|
14
|
+
var _templateObject;
|
|
15
15
|
|
|
16
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n width: 100%;\n"])));
|
|
16
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n width: 100%;\n .loader {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n width: 100%;\n span {\n display: inline-block;\n border-radius: 100%;\n margin-left: 5px;\n opacity: 1;\n }\n .first {\n background-color: #ff75cf;\n }\n .second {\n background-color: #e33aa9;\n }\n .third {\n background-color: #b12d84;\n }\n span:nth-child(1) {\n width: 16px;\n height: 16px;\n animation: opacitychange 1s ease-in-out infinite;\n }\n span:nth-child(2) {\n width: 18px;\n height: 18px;\n\n animation: opacitychange 1s ease-in-out 0.33s infinite;\n }\n span:nth-child(3) {\n width: 20px;\n height: 20px;\n\n animation: opacitychange 1s ease-in-out 0.66s infinite;\n }\n @keyframes opacitychange {\n 0%,\n 100% {\n opacity: 0;\n }\n 60% {\n opacity: 1;\n }\n }\n }\n"])));
|
|
17
17
|
|
|
18
|
-
exports.Container = Container;
|
|
19
|
-
|
|
20
|
-
var Loader = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n width: 100%;\n span {\n display: inline-block;\n border-radius: 100%;\n margin: 35px 5px;\n opacity: 1;\n }\n .first {\n background-color: #ff75cf;\n }\n .second {\n background-color: #e33aa9;\n }\n .third {\n background-color: #b12d84;\n }\n span:nth-child(1) {\n width: 16px;\n height: 16px;\n animation: opacitychange 1s ease-in-out infinite;\n }\n span:nth-child(2) {\n width: 18px;\n height: 18px;\n\n animation: opacitychange 1s ease-in-out 0.33s infinite;\n }\n span:nth-child(3) {\n width: 20px;\n height: 20px;\n\n animation: opacitychange 1s ease-in-out 0.66s infinite;\n }\n @keyframes opacitychange {\n 0%,\n 100% {\n opacity: 0;\n }\n 60% {\n opacity: 1;\n }\n }\n"])));
|
|
21
|
-
|
|
22
|
-
exports.Loader = Loader;
|
|
18
|
+
exports.Container = Container;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.MenuCommercialRetailersDefault = void 0;
|
|
7
|
+
|
|
8
|
+
var _index = require("./index");
|
|
9
|
+
|
|
10
|
+
var _default = {
|
|
11
|
+
title: "Components/atoms/MenuCommercialRetailers",
|
|
12
|
+
component: _index.MenuCommercialRetailers
|
|
13
|
+
};
|
|
14
|
+
exports.default = _default;
|
|
15
|
+
|
|
16
|
+
var Template = function Template(args) {
|
|
17
|
+
return /*#__PURE__*/React.createElement(_index.MenuCommercialRetailers, args);
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
var MenuCommercialRetailersDefault = Template.bind({});
|
|
21
|
+
exports.MenuCommercialRetailersDefault = MenuCommercialRetailersDefault;
|
|
22
|
+
MenuCommercialRetailersDefault.args = {
|
|
23
|
+
editType: "3",
|
|
24
|
+
retailersAvailable: [{
|
|
25
|
+
id: 54,
|
|
26
|
+
name: "Construrama",
|
|
27
|
+
country: "México",
|
|
28
|
+
id_region: 1,
|
|
29
|
+
active: 1
|
|
30
|
+
}, {
|
|
31
|
+
id: 4,
|
|
32
|
+
name: "Walmart Super y Superama"
|
|
33
|
+
}, {
|
|
34
|
+
id: 6,
|
|
35
|
+
name: "HEB"
|
|
36
|
+
}]
|
|
37
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.MenuCommercialRetailers = void 0;
|
|
7
|
+
|
|
8
|
+
var _styles = require("./styles");
|
|
9
|
+
|
|
10
|
+
var _StatusTag = require("../StatusTag");
|
|
11
|
+
|
|
12
|
+
var _ListCommercialRetailers = require("../ListCommercialRetailers");
|
|
13
|
+
|
|
14
|
+
var MenuCommercialRetailers = function MenuCommercialRetailers(_ref) {
|
|
15
|
+
var editType = _ref.editType,
|
|
16
|
+
retailersAvailable = _ref.retailersAvailable;
|
|
17
|
+
return /*#__PURE__*/React.createElement(_styles.Container, null, /*#__PURE__*/React.createElement(_StatusTag.StatusTag, {
|
|
18
|
+
editType: editType,
|
|
19
|
+
ovalForm: true
|
|
20
|
+
}), /*#__PURE__*/React.createElement(_ListCommercialRetailers.ListCommercialRetailers, {
|
|
21
|
+
retailersAvailable: retailersAvailable
|
|
22
|
+
}));
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
exports.MenuCommercialRetailers = MenuCommercialRetailers;
|
package/dist/components/{molecules/RetailerSelector → atoms/MenuCommercialRetailers}/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 display: flex;\n align-items: center;\n .status-version {\n & + * {\n margin-left: 5px;\n }\n }\n .list-commercial-retailers {\n border: 1px solid transparent;\n img {\n display: none;\n }\n &:hover {\n border: 1px solid ", ";\n img {\n display: block;\n }\n }\n }\n"])), _variables.GlobalColors.magenta_s2);
|
|
19
19
|
|
|
20
20
|
exports.Container = Container;
|
|
@@ -0,0 +1,28 @@
|
|
|
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.MenuProductImageDefault = void 0;
|
|
9
|
+
|
|
10
|
+
var _index = require("./index");
|
|
11
|
+
|
|
12
|
+
var _menuProductImage = _interopRequireDefault(require("../../../assets/images/menuProductImage/menuProductImage.svg"));
|
|
13
|
+
|
|
14
|
+
var _default = {
|
|
15
|
+
title: "Components/atoms/MenuProductImage",
|
|
16
|
+
component: _index.MenuProductImage
|
|
17
|
+
};
|
|
18
|
+
exports.default = _default;
|
|
19
|
+
|
|
20
|
+
var Template = function Template(args) {
|
|
21
|
+
return /*#__PURE__*/React.createElement(_index.MenuProductImage, args);
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
var MenuProductImageDefault = Template.bind({});
|
|
25
|
+
exports.MenuProductImageDefault = MenuProductImageDefault;
|
|
26
|
+
MenuProductImageDefault.args = {
|
|
27
|
+
ProductImg: _menuProductImage.default
|
|
28
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
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.MenuProductImage = void 0;
|
|
9
|
+
|
|
10
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
11
|
+
|
|
12
|
+
var _styles = require("./styles");
|
|
13
|
+
|
|
14
|
+
var _menuProductImageButton = _interopRequireDefault(require("../../../assets/images/menuProductImage/menuProductImageButton.svg"));
|
|
15
|
+
|
|
16
|
+
var _react = require("react");
|
|
17
|
+
|
|
18
|
+
var _index = require("../LoadImageMenu/index");
|
|
19
|
+
|
|
20
|
+
var _listCommercialRetailers = _interopRequireDefault(require("../../../assets/images/listCommercialRetailers/listCommercialRetailers.svg"));
|
|
21
|
+
|
|
22
|
+
var MenuProductImage = function MenuProductImage(_ref) {
|
|
23
|
+
var ProductImg = _ref.ProductImg;
|
|
24
|
+
|
|
25
|
+
var _useState = (0, _react.useState)(false),
|
|
26
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
27
|
+
showMenu = _useState2[0],
|
|
28
|
+
setShowMenu = _useState2[1];
|
|
29
|
+
|
|
30
|
+
var closeMenu = function closeMenu(e) {
|
|
31
|
+
if (!e.target.closest(".menu-upload-product") && showMenu) {
|
|
32
|
+
document.removeEventListener("click", closeMenu, false);
|
|
33
|
+
setShowMenu(false);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
(0, _react.useEffect)(function () {
|
|
38
|
+
if (showMenu) {
|
|
39
|
+
document.addEventListener("click", closeMenu, false);
|
|
40
|
+
}
|
|
41
|
+
}, [showMenu]);
|
|
42
|
+
return /*#__PURE__*/React.createElement(_styles.Container, {
|
|
43
|
+
className: "div-upload-image"
|
|
44
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
45
|
+
className: "profile-image",
|
|
46
|
+
src: ProductImg,
|
|
47
|
+
alt: "Product Image"
|
|
48
|
+
}), /*#__PURE__*/React.createElement("button", {
|
|
49
|
+
onClick: function onClick(event) {
|
|
50
|
+
if (!showMenu) {
|
|
51
|
+
setShowMenu(true);
|
|
52
|
+
} else if (showMenu && !event.target.closest(".menu-upload-product")) {
|
|
53
|
+
setShowMenu(false);
|
|
54
|
+
document.removeEventListener("click", closeMenu, false);
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
className: "upload-image-button " + (showMenu && "show-menu-upload-image")
|
|
58
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
59
|
+
src: showMenu ? _listCommercialRetailers.default : _menuProductImageButton.default,
|
|
60
|
+
alt: "Product Image Button"
|
|
61
|
+
})), showMenu && /*#__PURE__*/React.createElement("div", {
|
|
62
|
+
className: "menu-upload-product"
|
|
63
|
+
}, /*#__PURE__*/React.createElement(_index.LoadImageMenu, {
|
|
64
|
+
tipo: "Tipo de empaque ",
|
|
65
|
+
product: "Producto expuesto",
|
|
66
|
+
content: [{
|
|
67
|
+
label: "Enbalaje adicional - 0"
|
|
68
|
+
}, {
|
|
69
|
+
label: "En paquete - 1"
|
|
70
|
+
}, {
|
|
71
|
+
label: "Producto expuesto - 2"
|
|
72
|
+
}, {
|
|
73
|
+
label: "Embalaje multiforme - 3"
|
|
74
|
+
}, {
|
|
75
|
+
label: "Si no es una imagen / no corresponde - X"
|
|
76
|
+
}],
|
|
77
|
+
id: "menu-packaging-type"
|
|
78
|
+
}), /*#__PURE__*/React.createElement(_index.LoadImageMenu, {
|
|
79
|
+
tipo: "Tipo de imagen ",
|
|
80
|
+
product: "Render",
|
|
81
|
+
content: [{
|
|
82
|
+
label: "fotografía del producto"
|
|
83
|
+
}],
|
|
84
|
+
id: "menu-image-type"
|
|
85
|
+
})));
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
exports.MenuProductImage = MenuProductImage;
|
|
@@ -0,0 +1,20 @@
|
|
|
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 _variables = require("../../../global-files/variables");
|
|
15
|
+
|
|
16
|
+
var _templateObject;
|
|
17
|
+
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n position: relative;\n .profile-image {\n width: 23px;\n height: 23px;\n & + * {\n margin-left: 8px;\n }\n }\n .upload-image-button {\n background: transparent;\n border: 1px solid transparent;\n border-radius: 2px;\n padding: 3px;\n display: flex;\n align-items: center;\n cursor: pointer;\n height: 30px;\n width: 15px;\n left: 100%;\n img {\n display: none;\n }\n &:hover {\n border: 1px solid ", ";\n img {\n display: block;\n }\n }\n &.show-menu-upload-image {\n border: 1px solid ", ";\n img {\n display: block;\n }\n }\n }\n .menu-upload-product {\n background: ", ";\n border: 1px solid ", ";\n box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);\n border-radius: 7px;\n width: 324px;\n padding: 8px 0px;\n position: absolute;\n right: 0%;\n z-index: 1;\n top: 30px;\n button {\n left: 0%;\n border-radius: 7px;\n span,\n .tipo {\n color: ", ";\n }\n .products {\n color: ", ";\n }\n }\n }\n"])), _variables.GlobalColors.s3, _variables.GlobalColors.magenta_s2, _variables.GlobalColors.s2, _variables.GlobalColors.s3, _variables.GlobalColors.s5, _variables.GlobalColors.s4);
|
|
19
|
+
|
|
20
|
+
exports.Container = Container;
|
|
@@ -25,7 +25,7 @@ var PriorityFlag = function PriorityFlag(_ref) {
|
|
|
25
25
|
var _PriorityFlags;
|
|
26
26
|
|
|
27
27
|
var priority = _ref.priority;
|
|
28
|
-
var PriorityFlags = (_PriorityFlags = {}, (0, _defineProperty2.default)(_PriorityFlags, "
|
|
28
|
+
var PriorityFlags = (_PriorityFlags = {}, (0, _defineProperty2.default)(_PriorityFlags, "no priority", _noPriority.default), (0, _defineProperty2.default)(_PriorityFlags, "low", _lowPriority.default), (0, _defineProperty2.default)(_PriorityFlags, "medium", _mediumPriority.default), (0, _defineProperty2.default)(_PriorityFlags, "high", _highPriority.default), _PriorityFlags);
|
|
29
29
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
30
30
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
31
31
|
src: PriorityFlags[priority],
|
|
@@ -13,6 +13,6 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
13
13
|
|
|
14
14
|
var _templateObject;
|
|
15
15
|
|
|
16
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: fit-content;\n\n img {\n object-fit:
|
|
16
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: fit-content;\n\n img {\n object-fit: cover;\n }\n\n &.carousel-image {\n img {\n width: 85px;\n height: 55px;\n cursor: pointer;\n }\n\n & + * {\n margin-left: 1px;\n }\n }\n\n &.main-image {\n img {\n width: 340px;\n height: 295px;\n }\n }\n\n &.catalogue-image-big-size {\n img {\n width: 179px;\n height: 179px;\n }\n }\n\n &.catalogue-image-small-size {\n img {\n width: 60px;\n height: 60px;\n }\n }\n\n &.catalogue-modal-image {\n flex: 1 0 50%;\n cursor: pointer;\n\n img {\n width: 168px;\n height: 108px;\n }\n }\n\n &.expanded-modal-image {\n width: 710px;\n height: 710px;\n\n img {\n width: 710px;\n height: 710px;\n }\n }\n"])));
|
|
17
17
|
|
|
18
18
|
exports.Container = Container;
|
|
@@ -11,9 +11,9 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
11
11
|
|
|
12
12
|
var ProgressBar = function ProgressBar(_ref) {
|
|
13
13
|
var percent = _ref.percent,
|
|
14
|
-
|
|
14
|
+
backgroundColor = _ref.backgroundColor;
|
|
15
15
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
16
|
-
|
|
16
|
+
backgroundColor: backgroundColor,
|
|
17
17
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("p", {
|
|
18
18
|
children: [percent, "%"]
|
|
19
19
|
})
|
|
@@ -15,8 +15,10 @@ 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 background-color: ", ";\n width: fit-content;\n height: 27px;\n padding: 4px;\n border-radius: 15px;\n font-family: ", ";\n font-weight: 600;\n font-size: 14px;\n line-height: 19px;\n color: ", ";\n
|
|
19
|
-
return
|
|
20
|
-
}, _variables.
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background-color: ", ";\n width: fit-content;\n height: 27px;\n padding: 4px;\n border-radius: 15px;\n font-family: ", ";\n font-weight: 600;\n font-size: 14px;\n line-height: 19px;\n color: ", ";\n"])), function (props) {
|
|
19
|
+
return _variables.GlobalColors[props.backgroundColor];
|
|
20
|
+
}, _variables.FontFamily.AvenirNext, function (props) {
|
|
21
|
+
return props.backgroundColor === "s2" || props.backgroundColor === "s1" ? _variables.GlobalColors.s4 : _variables.GlobalColors.white;
|
|
22
|
+
});
|
|
21
23
|
|
|
22
24
|
exports.Container = Container;
|
|
@@ -24,7 +24,7 @@ var ScreenHeader = function ScreenHeader(_ref) {
|
|
|
24
24
|
className: headerType,
|
|
25
25
|
children: [text, " ", boldText && /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
26
26
|
children: [" ", boldText]
|
|
27
|
-
}),
|
|
27
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
28
28
|
children: Paragraph
|
|
29
29
|
})]
|
|
30
30
|
}, "title-".concat(text));
|
|
@@ -15,7 +15,7 @@ var _variables = require("../../../global-files/variables");
|
|
|
15
15
|
|
|
16
16
|
var _templateObject;
|
|
17
17
|
|
|
18
|
-
var Container = _styledComponents.default.h2(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n font-family: ", ";\n font-style: normal;\n font-size: 36px;\n line-height: 42px;\n font-feature-settings: \"pnum\" on, \"lnum\" on;\n color: ", ";\n\n &.with-bold-text {\n span {\n font-family: ", ";\n }\n }\n\n &.product-name-header {\n font-size: 24px;\n line-height: 36px;\n font-weight: 500;\n letter-spacing: -0.015em;\n color: ", ";\n }\n\n &.retailer-name-header {\n font-size: 18px;\n font-weight: 400;\n line-height: 19px;\n color: ", ";\n }\n\n &.input-name-header {\n font-size: 14px;\n line-height: 19px;\n font-weight: 400;\n color: ", ";\n }\n\n &.date-header {\n font-family: ", ";\n color: ", ";\n font-size: 13px;\n font-weight: 400;\n line-height: 18px;\n }\n\n &.table-row-text {\n font-family: ", ";\n color: ", ";\n font-weight: 400;\n font-size: 11px;\n line-height: 18px;\n
|
|
18
|
+
var Container = _styledComponents.default.h2(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n font-family: ", ";\n font-style: normal;\n font-size: 36px;\n line-height: 42px;\n font-feature-settings: \"pnum\" on, \"lnum\" on;\n color: ", ";\n\n &.with-bold-text {\n span {\n font-family: ", ";\n }\n }\n\n &.product-name-header {\n font-size: 24px;\n line-height: 36px;\n font-weight: 500;\n letter-spacing: -0.015em;\n color: ", ";\n }\n\n &.retailer-name-header {\n font-size: 18px;\n font-weight: 400;\n line-height: 19px;\n color: ", ";\n }\n\n &.input-name-header {\n font-size: 14px;\n line-height: 19px;\n font-weight: 400;\n color: ", ";\n }\n\n &.date-header {\n font-family: ", ";\n color: ", ";\n font-size: 13px;\n font-weight: 400;\n line-height: 18px;\n }\n\n &.table-row-text {\n font-family: ", ";\n color: ", ";\n font-weight: 400;\n font-size: 11px;\n line-height: 18px;\n }\n\n &.gray-table-row {\n font-family: ", ";\n font-weight: 400;\n font-size: 11px;\n line-height: 19px;\n color: ", ";\n background-color: ", ";\n padding: 1px 3px;\n border-radius: 3px;\n }\n &.header-and-paragraph{\n font-family: ", ";\n font-size: 36px;\n color: ", ";\n p{\n font-family: ", ";\n font-size: 14px;\n color: ", ";\n letter-spacing: -0.015em;\n }\n }\n"])), function (props) {
|
|
19
19
|
return props.fontFamily;
|
|
20
20
|
}, function (props) {
|
|
21
21
|
return props.color;
|
|
@@ -12,45 +12,10 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
12
12
|
var StatusTag = function StatusTag(_ref) {
|
|
13
13
|
var statusType = _ref.statusType,
|
|
14
14
|
ovalForm = _ref.ovalForm;
|
|
15
|
-
|
|
16
|
-
var getShortStatus = function getShortStatus(status) {
|
|
17
|
-
switch (status) {
|
|
18
|
-
case "COMPLETED":
|
|
19
|
-
return "C";
|
|
20
|
-
|
|
21
|
-
case "RECEPTION":
|
|
22
|
-
return "Pr";
|
|
23
|
-
|
|
24
|
-
case "NULL":
|
|
25
|
-
return "-";
|
|
26
|
-
|
|
27
|
-
case "RECEIVED":
|
|
28
|
-
return "Rc";
|
|
29
|
-
|
|
30
|
-
case "IN_PROGRESS":
|
|
31
|
-
return "P";
|
|
32
|
-
|
|
33
|
-
case "ASSIGNED":
|
|
34
|
-
return "As";
|
|
35
|
-
|
|
36
|
-
case "APPROVED":
|
|
37
|
-
return "Ap";
|
|
38
|
-
|
|
39
|
-
case "VALIDATING":
|
|
40
|
-
return "V";
|
|
41
|
-
|
|
42
|
-
case "PAID_OUT":
|
|
43
|
-
return "Po";
|
|
44
|
-
|
|
45
|
-
default:
|
|
46
|
-
return status;
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
|
|
50
15
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
51
|
-
className: "status-".concat(
|
|
16
|
+
className: "status-".concat(statusType, " ").concat(ovalForm && "oval-form"),
|
|
52
17
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
53
|
-
children:
|
|
18
|
+
children: statusType
|
|
54
19
|
})
|
|
55
20
|
});
|
|
56
21
|
};
|
|
@@ -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 width:
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 30px;\n height: 20px;\n background-color: ", ";\n border-radius: 3px;\n\n p {\n text-align: center;\n color: ", ";\n font-family: ", ";\n font-size: 12px;\n line-height: 20px;\n }\n\n &.status-As,\n &.status-P {\n background-color: ", ";\n }\n\n &.status-Pr,\n &.status-Rr {\n background-color: ", ";\n }\n\n &.status-AA,\n &.status-AP {\n background-color: ", ";\n }\n\n &.status-Dat,\n &.status-Dsc,\n &.status-Imgs {\n background-color: ", ";\n }\n\n &.status-Ex {\n background-color: ", ";\n }\n\n &.status-DDI {\n background-color: ", ";\n }\n\n &.status-GLD {\n background-color: ", ";\n }\n\n &.status-TAB {\n background-color: ", ";\n }\n\n &.status-Pt {\n background-color: ", ";\n color: ", ";\n }\n\n &.oval-form {\n border-radius: 10px;\n }\n"])), _variables.GlobalColors.s3, _variables.GlobalColors.white, _variables.FontFamily.Lato, _variables.GlobalColors.in_progress, _variables.GlobalColors.reception, _variables.GlobalColors.finished, _variables.GlobalColors.s4, _variables.GlobalColors.exported, _variables.GlobalColors.original_purpura, _variables.GlobalColors.in_progress, _variables.GlobalColors.deep_gray, _variables.GlobalColors.s2, _variables.GlobalColors.s4);
|
|
19
19
|
|
|
20
20
|
exports.Container = Container;
|
|
@@ -20,8 +20,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
20
20
|
var ValidationPanel = function ValidationPanel(_ref) {
|
|
21
21
|
var id = _ref.id,
|
|
22
22
|
setOptionClicked = _ref.setOptionClicked,
|
|
23
|
-
setShowValidationPanel = _ref.setShowValidationPanel
|
|
24
|
-
sendToFacilitator = _ref.sendToFacilitator;
|
|
23
|
+
setShowValidationPanel = _ref.setShowValidationPanel;
|
|
25
24
|
|
|
26
25
|
var optionSelected = function optionSelected(option) {
|
|
27
26
|
setOptionClicked("".concat(option, "-button"));
|
|
@@ -32,7 +31,7 @@ var ValidationPanel = function ValidationPanel(_ref) {
|
|
|
32
31
|
id: id,
|
|
33
32
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("button", {
|
|
34
33
|
onClick: function onClick() {
|
|
35
|
-
|
|
34
|
+
optionSelected("accept");
|
|
36
35
|
},
|
|
37
36
|
className: "validation-option",
|
|
38
37
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
@@ -43,7 +42,7 @@ var ValidationPanel = function ValidationPanel(_ref) {
|
|
|
43
42
|
})]
|
|
44
43
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("button", {
|
|
45
44
|
onClick: function onClick() {
|
|
46
|
-
|
|
45
|
+
optionSelected("reject");
|
|
47
46
|
},
|
|
48
47
|
className: "validation-option",
|
|
49
48
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.VerticalSideMenuMainPageDefault = void 0;
|
|
7
|
+
|
|
8
|
+
var _index = require("./index");
|
|
9
|
+
|
|
10
|
+
var _default = {
|
|
11
|
+
title: "Components/atoms/VerticalSideMenuMainPage",
|
|
12
|
+
component: _index.VerticalSideMenuMainPage
|
|
13
|
+
};
|
|
14
|
+
exports.default = _default;
|
|
15
|
+
|
|
16
|
+
var Template = function Template(args) {
|
|
17
|
+
return /*#__PURE__*/React.createElement(_index.VerticalSideMenuMainPage, args);
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
var VerticalSideMenuMainPageDefault = Template.bind({});
|
|
21
|
+
exports.VerticalSideMenuMainPageDefault = VerticalSideMenuMainPageDefault;
|
|
22
|
+
VerticalSideMenuMainPageDefault.args = {};
|