contentoh-components-library 6.0.0 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/atoms/AsignationOption/index.js +10 -5
- package/dist/components/atoms/AsignationOption/styles.js +1 -1
- package/dist/components/atoms/AtomList/index.js +5 -3
- package/dist/components/atoms/AtomList/styles.js +1 -1
- package/dist/components/atoms/Avatar/index.js +4 -2
- package/dist/components/atoms/Card/Card.stories.js +22 -0
- package/dist/components/atoms/Card/index.js +19 -0
- package/dist/components/atoms/Card/styles.js +18 -0
- package/dist/components/atoms/CheckBox/index.js +3 -1
- package/dist/components/atoms/Commentary/Commentary.stories.js +1 -0
- package/dist/components/atoms/Commentary/index.js +15 -0
- package/dist/components/atoms/Commentary/styles.js +20 -0
- package/dist/components/atoms/CustomerTypeImage/index.js +2 -1
- package/dist/components/atoms/EditField/EditField.stories.js +24 -0
- package/dist/components/atoms/EditField/index.js +29 -0
- package/dist/components/atoms/EditField/styles.js +20 -0
- package/dist/components/atoms/GeneralButton/GeneralButton.stories.js +1 -1
- package/dist/components/atoms/GeneralButton/index.js +3 -1
- package/dist/components/atoms/GeneralButton/styles.js +12 -2
- package/dist/components/atoms/GeneralInput/index.js +60 -8
- package/dist/components/atoms/GeneralInput/styles.js +4 -1
- package/dist/components/atoms/GeneralTextBox/styles.js +1 -1
- package/dist/components/atoms/GenericModal/GenericModal.stories.js +171 -0
- package/dist/components/atoms/GenericModal/index.js +23 -0
- package/dist/components/atoms/GenericModal/styles.js +22 -0
- package/dist/components/atoms/GradientPanel/GradientPanel.stories.js +135 -4
- package/dist/components/atoms/GradientPanel/index.js +4 -2
- package/dist/components/atoms/GradientPanel/styles.js +2 -2
- package/dist/components/atoms/Graphic/Graphic.stories.js +30 -0
- package/dist/components/atoms/Graphic/index.js +30 -0
- package/dist/components/atoms/Graphic/styles.js +18 -0
- package/dist/components/atoms/Input/index.js +19 -0
- package/dist/components/atoms/Input/style.js +26 -0
- package/dist/components/atoms/LabelToInput/index.js +48 -0
- package/dist/components/atoms/LabelToInput/style.js +22 -0
- package/dist/components/atoms/LoadImageMenu/LoadImageMenu.stories.js +29 -0
- package/dist/components/atoms/LoadImageMenu/index.js +74 -0
- package/dist/components/atoms/LoadImageMenu/styles.js +20 -0
- package/dist/components/atoms/LogoImage/LogoImage.stories.js +22 -0
- package/dist/components/atoms/LogoImage/index.js +23 -0
- package/dist/components/atoms/LogoImage/styles.js +18 -0
- package/dist/components/atoms/MenuNotification/MenuNotification.stories.js +33 -0
- package/dist/components/atoms/MenuNotification/index.js +35 -0
- package/dist/components/atoms/MenuNotification/styles.js +20 -0
- package/dist/components/atoms/MenuProfile/MenuProfile.stories.js +24 -0
- package/dist/components/atoms/MenuProfile/index.js +47 -0
- package/dist/components/atoms/MenuProfile/styles.js +20 -0
- package/dist/components/atoms/Notification/Notification.stories.js +30 -0
- package/dist/components/atoms/Notification/index.js +27 -0
- package/dist/components/atoms/Notification/styles.js +20 -0
- package/dist/components/atoms/Percent/Percent.stories.js +33 -0
- package/dist/components/atoms/Percent/index.js +32 -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/ScreenHeader.stories.js +9 -2
- package/dist/components/atoms/ScreenHeader/index.js +5 -3
- package/dist/components/atoms/ScreenHeader/styles.js +17 -2
- package/dist/components/atoms/Select/index.js +32 -0
- package/dist/components/atoms/Select/style.js +32 -0
- package/dist/components/atoms/StatusTag/styles.js +1 -1
- package/dist/components/atoms/ValidationPanel/index.js +4 -3
- package/dist/components/molecules/AddProvidersAndProducts/AddProvidersAndProducts.stories.js +28 -0
- package/dist/components/molecules/AddProvidersAndProducts/index.js +36 -0
- package/dist/components/molecules/AddProvidersAndProducts/styles.js +20 -0
- package/dist/components/molecules/AssignedWork/AssignedWork.stories.js +44 -0
- package/dist/components/molecules/AssignedWork/index.js +55 -0
- package/dist/components/molecules/AssignedWork/styles.js +20 -0
- package/dist/components/molecules/AvatarAndValidation/index.js +17 -7
- package/dist/components/molecules/AvatarAndValidation/styles.js +1 -1
- package/dist/components/molecules/EditionActiveImage/index.js +6 -2
- package/dist/components/molecules/FeaturesBar/index.js +21 -2
- package/dist/components/molecules/FeaturesBar/styles.js +1 -1
- package/dist/components/molecules/GalleryElement/index.js +51 -20
- package/dist/components/molecules/GalleryElement/styles.js +1 -1
- package/dist/components/molecules/GalleryHeader/GalleryHeader.stories.js +22 -0
- package/dist/components/molecules/GalleryHeader/index.js +30 -0
- package/dist/components/molecules/GalleryHeader/styles.js +20 -0
- package/dist/components/molecules/ImageSelector/index.js +8 -5
- package/dist/components/molecules/ParentComponent/ParentComponent.stories.js +25 -0
- package/dist/components/molecules/ParentComponent/index.js +67 -0
- package/dist/components/molecules/ParentComponent/styles.js +18 -0
- package/dist/components/molecules/PayMethod/PayMethod.stories.js +22 -0
- package/dist/components/molecules/PayMethod/index.js +61 -0
- package/dist/components/molecules/PayMethod/styles.js +20 -0
- package/dist/components/molecules/PlanSelection/PlanSelection.stories.js +0 -3
- package/dist/components/molecules/PlanSelection/index.js +1 -1
- package/dist/components/molecules/PlanSelection/styles.js +1 -1
- package/dist/components/molecules/ProductNameHeader/index.js +1 -2
- package/dist/components/molecules/ProductNotification/ProductNotification.stories.js +24 -0
- package/dist/components/molecules/ProductNotification/index.js +71 -0
- package/dist/components/molecules/ProductNotification/styles.js +20 -0
- package/dist/components/molecules/ProfileHeader/ProfileHeader.stories.js +30 -0
- package/dist/components/molecules/ProfileHeader/index.js +73 -0
- package/dist/components/molecules/ProfileHeader/styles.js +20 -0
- package/dist/components/molecules/RetailerSelector/RetailerSelector.stories.js +42 -0
- package/dist/components/molecules/RetailerSelector/index.js +71 -0
- package/dist/components/molecules/RetailerSelector/styles.js +20 -0
- package/dist/components/molecules/SidebarNotification/SidebarNotification.stories.js +98 -0
- package/dist/components/molecules/SidebarNotification/index.js +105 -0
- package/dist/components/molecules/SidebarNotification/styles.js +20 -0
- package/dist/components/molecules/StatusAsignationInfo/index.js +51 -12
- package/dist/components/molecules/StatusAsignationInfo/styles.js +1 -1
- package/dist/components/molecules/TableHeader/index.js +5 -4
- package/dist/components/molecules/TabsMenu/index.js +4 -2
- package/dist/components/molecules/TagAndInput/index.js +28 -3
- package/dist/components/molecules/TagAndInput/styles.js +1 -1
- package/dist/components/organisms/FullProductNameHeader/index.js +32 -8
- package/dist/components/organisms/FullTabsMenu/index.js +17 -5
- package/dist/components/organisms/FullTabsMenu/styles.js +1 -1
- package/dist/components/organisms/Fullplan/FullPlan.stories.js +13 -15
- package/dist/components/organisms/Fullplan/index.js +1 -1
- package/dist/components/organisms/Fullplan/styles.js +1 -1
- package/dist/components/organisms/ImageDataTable/index.js +77 -15
- package/dist/components/organisms/ImageDataTable/styles.js +7 -1
- package/dist/components/organisms/ImagePreviewer/index.js +6 -19
- package/dist/components/organisms/InputGroup/index.js +53 -8
- package/dist/components/organisms/InputGroup/styles.js +1 -1
- package/dist/components/organisms/ProductImageModal/ProductImageModal.stories.js +122 -120
- package/dist/components/organisms/ProductImageModal/index.js +28 -12
- package/dist/components/organisms/ProductImageModal/styles.js +1 -1
- package/dist/components/pages/CustomerLogin/CustomerLogin.stories.js +95 -0
- package/dist/components/pages/CustomerLogin/index.js +29 -0
- package/dist/components/pages/CustomerLogin/styles.js +18 -0
- package/dist/components/pages/CustomerPayMethod/CustomerPayMethod.stories.js +72 -0
- package/dist/components/pages/CustomerPayMethod/index.js +29 -0
- package/dist/components/pages/CustomerPayMethod/styles.js +18 -0
- package/dist/components/pages/CustomerType/CustomerType.stories.js +16 -5
- package/dist/components/pages/CustomerType/styles.js +1 -3
- package/dist/components/pages/OnboardPlan/OnboardPlan.stories.js +24 -10
- package/dist/components/pages/OnboardPlan/index.js +8 -10
- package/dist/components/pages/OnboardPlan/styles.js +1 -1
- package/dist/components/pages/RetailerPlan/RetailerPlan.stories.js +59 -0
- package/dist/components/pages/RetailerPlan/index.js +31 -0
- package/dist/components/pages/RetailerPlan/styles.js +18 -0
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +101 -313
- package/dist/components/pages/RetailerProductEdition/index.js +1071 -39
- package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
- package/dist/global-files/data.js +219 -0
- package/dist/global-files/variables.js +1 -0
- package/dist/index.js +7 -2
- package/package.json +1 -1
- package/src/index.js +2 -1
|
@@ -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.LoadImageMenu = void 0;
|
|
9
|
+
|
|
10
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
11
|
+
|
|
12
|
+
var _styles = require("./styles");
|
|
13
|
+
|
|
14
|
+
var _genericModalDown = _interopRequireDefault(require("../../../assets/images/genericModal/genericModalDown.svg"));
|
|
15
|
+
|
|
16
|
+
var _genericModalUp = _interopRequireDefault(require("../../../assets/images/genericModal/genericModalUp.svg"));
|
|
17
|
+
|
|
18
|
+
var _react = require("react");
|
|
19
|
+
|
|
20
|
+
var LoadImageMenu = function LoadImageMenu(_ref) {
|
|
21
|
+
var tipo = _ref.tipo,
|
|
22
|
+
product = _ref.product,
|
|
23
|
+
content = _ref.content,
|
|
24
|
+
id = _ref.id;
|
|
25
|
+
|
|
26
|
+
var _useState = (0, _react.useState)(false),
|
|
27
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
28
|
+
showMenu = _useState2[0],
|
|
29
|
+
setShowMenu = _useState2[1];
|
|
30
|
+
|
|
31
|
+
var closeMenu = function closeMenu(e) {
|
|
32
|
+
if (!e.target.closest("#" + id) && showMenu) {
|
|
33
|
+
document.removeEventListener("click", closeMenu, false);
|
|
34
|
+
setShowMenu(false);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
(0, _react.useEffect)(function () {
|
|
39
|
+
if (showMenu) {
|
|
40
|
+
document.addEventListener("click", closeMenu, false);
|
|
41
|
+
}
|
|
42
|
+
}, [showMenu]);
|
|
43
|
+
return /*#__PURE__*/React.createElement(_styles.Container, {
|
|
44
|
+
onClick: function onClick(e) {
|
|
45
|
+
setShowMenu(!showMenu);
|
|
46
|
+
|
|
47
|
+
if (showMenu) {
|
|
48
|
+
document.removeEventListener("click", closeMenu, false);
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
className: "list-container " + (showMenu && "show-menu")
|
|
52
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
53
|
+
className: "tipo"
|
|
54
|
+
}, tipo, /*#__PURE__*/React.createElement("span", null, "*")), /*#__PURE__*/React.createElement("p", {
|
|
55
|
+
className: "products"
|
|
56
|
+
}, product, /*#__PURE__*/React.createElement("img", {
|
|
57
|
+
src: showMenu ? _genericModalUp.default : _genericModalDown.default,
|
|
58
|
+
alt: "Check icon"
|
|
59
|
+
})), showMenu && /*#__PURE__*/React.createElement("div", {
|
|
60
|
+
id: id,
|
|
61
|
+
className: "upload-image-menu"
|
|
62
|
+
}, /*#__PURE__*/React.createElement("ul", {
|
|
63
|
+
className: "overall-list"
|
|
64
|
+
}, content === null || content === void 0 ? void 0 : content.map(function (item, index) {
|
|
65
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
66
|
+
key: index + item.label,
|
|
67
|
+
onClick: function onClick() {
|
|
68
|
+
console.log(item.label);
|
|
69
|
+
}
|
|
70
|
+
}, /*#__PURE__*/React.createElement("p", null, item.label));
|
|
71
|
+
}))));
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
exports.LoadImageMenu = LoadImageMenu;
|
|
@@ -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: 7px;\n padding: 5px;\n width: 310px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin: auto;\n cursor: pointer;\n position: relative;\n & + * {\n margin-top: 7px;\n }\n p {\n font-family: ", ";\n font-weight: 600;\n font-size: 12px;\n line-height: 18px;\n color: ", ";\n letter-spacing: -0.015em;\n span {\n color: ", ";\n }\n }\n .products {\n line-height: 13px;\n font-weight: 500;\n img {\n margin-left: 3px;\n }\n }\n &.show-menu {\n border: 1px solid ", ";\n .tipo {\n color: ", ";\n }\n .products {\n color: ", ";\n }\n }\n .upload-image-menu {\n width: 310px;\n height: auto;\n border-radius: 7px;\n background-color: ", ";\n padding: 5px 20px;\n border: 1px solid ", ";\n box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);\n position: absolute;\n left: calc(50% - 155px);\n top: 35px;\n z-index: 1;\n .overall-list {\n list-style: none;\n li {\n & + * {\n margin-top: 7px;\n }\n p {\n line-height: 16px;\n color: ", ";\n text-align: right;\n }\n }\n }\n }\n"])), _variables.GlobalColors.s3, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s3, _variables.GlobalColors.white, _variables.GlobalColors.magenta_s2, _variables.GlobalColors.s5, _variables.GlobalColors.s4, _variables.GlobalColors.s2, _variables.GlobalColors.s3, _variables.GlobalColors.s4);
|
|
19
|
+
|
|
20
|
+
exports.Container = Container;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.LogoImageDefault = void 0;
|
|
7
|
+
|
|
8
|
+
var _index = require("./index");
|
|
9
|
+
|
|
10
|
+
var _default = {
|
|
11
|
+
title: "Components/atoms/LogoImage",
|
|
12
|
+
component: _index.LogoImage
|
|
13
|
+
};
|
|
14
|
+
exports.default = _default;
|
|
15
|
+
|
|
16
|
+
var Template = function Template(args) {
|
|
17
|
+
return /*#__PURE__*/React.createElement(_index.LogoImage, args);
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
var LogoImageDefault = Template.bind({});
|
|
21
|
+
exports.LogoImageDefault = LogoImageDefault;
|
|
22
|
+
LogoImageDefault.args = {};
|
|
@@ -0,0 +1,23 @@
|
|
|
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.LogoImage = void 0;
|
|
9
|
+
|
|
10
|
+
var _styles = require("./styles");
|
|
11
|
+
|
|
12
|
+
var _logoLogin = _interopRequireDefault(require("../../../assets/images/logo/logoLogin.svg"));
|
|
13
|
+
|
|
14
|
+
var LogoImage = function LogoImage() {
|
|
15
|
+
return /*#__PURE__*/React.createElement(_styles.Container, {
|
|
16
|
+
key: "logo"
|
|
17
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
18
|
+
src: _logoLogin.default,
|
|
19
|
+
alt: "logo"
|
|
20
|
+
}));
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
exports.LogoImage = LogoImage;
|
|
@@ -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.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\nimg {\n width: 100%;\n margin:auto;\n}\n& + * {\n margin-top: 20px;\n}\n"])));
|
|
17
|
+
|
|
18
|
+
exports.Container = Container;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.MenuNotificationDefault = void 0;
|
|
7
|
+
|
|
8
|
+
var _index = require("./index");
|
|
9
|
+
|
|
10
|
+
var _default = {
|
|
11
|
+
title: "Components/atoms/MenuNotification",
|
|
12
|
+
component: _index.MenuNotification
|
|
13
|
+
};
|
|
14
|
+
exports.default = _default;
|
|
15
|
+
|
|
16
|
+
var Template = function Template(args) {
|
|
17
|
+
return /*#__PURE__*/React.createElement(_index.MenuNotification, args);
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
var MenuNotificationDefault = Template.bind({});
|
|
21
|
+
exports.MenuNotificationDefault = MenuNotificationDefault;
|
|
22
|
+
MenuNotificationDefault.args = {
|
|
23
|
+
content: [{
|
|
24
|
+
notificationType: "productComment",
|
|
25
|
+
label: "Asignaron el producto 23441244"
|
|
26
|
+
}, {
|
|
27
|
+
notificationType: "productAssignation",
|
|
28
|
+
label: "Ajustaron el nombre del producto"
|
|
29
|
+
}, {
|
|
30
|
+
notificationType: "productAssignation",
|
|
31
|
+
label: "Agregaron comentario en producto 123"
|
|
32
|
+
}]
|
|
33
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
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.MenuNotification = void 0;
|
|
9
|
+
|
|
10
|
+
var _styles = require("./styles");
|
|
11
|
+
|
|
12
|
+
var _menuNotificationComment = _interopRequireDefault(require("../../../assets/images/menuNotification/menuNotificationComment.svg"));
|
|
13
|
+
|
|
14
|
+
var _menuNotificationProduct = _interopRequireDefault(require("../../../assets/images/menuNotification/menuNotificationProduct.svg"));
|
|
15
|
+
|
|
16
|
+
var MenuNotification = function MenuNotification(_ref) {
|
|
17
|
+
var content = _ref.content;
|
|
18
|
+
return /*#__PURE__*/React.createElement(_styles.Container, {
|
|
19
|
+
id: "menu-notification"
|
|
20
|
+
}, /*#__PURE__*/React.createElement("ul", {
|
|
21
|
+
className: "overall-list"
|
|
22
|
+
}, content === null || content === void 0 ? void 0 : content.map(function (item, index) {
|
|
23
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
24
|
+
key: index,
|
|
25
|
+
onClick: function onClick() {
|
|
26
|
+
console.log(item.label);
|
|
27
|
+
}
|
|
28
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
29
|
+
src: (content === null || content === void 0 ? void 0 : content.notificationType) === "productComment" ? _menuNotificationComment.default : _menuNotificationProduct.default,
|
|
30
|
+
alt: item.label
|
|
31
|
+
}), " ", /*#__PURE__*/React.createElement("p", null, item.label));
|
|
32
|
+
})));
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
exports.MenuNotification = MenuNotification;
|
|
@@ -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 width: 220px;\n height: auto;\n border-radius: 20px;\n background-color: ", ";\n padding: 25px 16px 18px 26px;\n box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.14);\n position: absolute;\n top: calc(100% + 25px);\n left: calc(50% - 223px / 2);\n &::before {\n content: \"\";\n width: 85px;\n height: 85px;\n display: block;\n background-color: ", ";\n position: absolute;\n left: 50%;\n transform: translateX(-30%) rotate(-22deg) skewX(45deg);\n top: -17px;\n z-index: -1;\n }\n .overall-list {\n list-style: none;\n li {\n display: flex;\n align-items: center;\n & + * {\n margin-top: 10px;\n }\n img {\n & + * {\n margin-left: 10px;\n }\n }\n p {\n line-height: 16px;\n font-size: 12px;\n letter-spacing: -0.015em;\n color: ", ";\n font-family: ", ";\n font-style: normal;\n font-weight: normal;\n }\n }\n }\n"])), _variables.GlobalColors.s2, _variables.GlobalColors.s2, _variables.GlobalColors.s4, _variables.FontFamily.AvenirNext);
|
|
19
|
+
|
|
20
|
+
exports.Container = Container;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.MenuProfileDefault = void 0;
|
|
7
|
+
|
|
8
|
+
var _index = require("./index");
|
|
9
|
+
|
|
10
|
+
var _default = {
|
|
11
|
+
title: "Components/atoms/MenuProfile",
|
|
12
|
+
component: _index.MenuProfile
|
|
13
|
+
};
|
|
14
|
+
exports.default = _default;
|
|
15
|
+
|
|
16
|
+
var Template = function Template(args) {
|
|
17
|
+
return /*#__PURE__*/React.createElement(_index.MenuProfile, args);
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
var MenuProfileDefault = Template.bind({});
|
|
21
|
+
exports.MenuProfileDefault = MenuProfileDefault;
|
|
22
|
+
MenuProfileDefault.args = {
|
|
23
|
+
user: "Administrador"
|
|
24
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
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.MenuProfile = void 0;
|
|
9
|
+
|
|
10
|
+
var _styles = require("./styles");
|
|
11
|
+
|
|
12
|
+
var _myAccount = _interopRequireDefault(require("../../../assets/images/menuProfile/myAccount.svg"));
|
|
13
|
+
|
|
14
|
+
var _settings = _interopRequireDefault(require("../../../assets/images/menuProfile/settings.svg"));
|
|
15
|
+
|
|
16
|
+
var _logOut = _interopRequireDefault(require("../../../assets/images/menuProfile/logOut.svg"));
|
|
17
|
+
|
|
18
|
+
var MenuProfile = function MenuProfile(_ref) {
|
|
19
|
+
var user = _ref.user;
|
|
20
|
+
var content = [{
|
|
21
|
+
icon: _myAccount.default,
|
|
22
|
+
label: "Mi cuenta"
|
|
23
|
+
}, {
|
|
24
|
+
icon: _settings.default,
|
|
25
|
+
label: "Ajustes"
|
|
26
|
+
}, {
|
|
27
|
+
icon: _logOut.default,
|
|
28
|
+
label: "Cerrar sesión"
|
|
29
|
+
}];
|
|
30
|
+
return /*#__PURE__*/React.createElement(_styles.Container, {
|
|
31
|
+
id: "menu-profile"
|
|
32
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("p", null, user)), /*#__PURE__*/React.createElement("ul", {
|
|
33
|
+
className: "overall-list"
|
|
34
|
+
}, content.map(function (item, index) {
|
|
35
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
36
|
+
key: index,
|
|
37
|
+
onClick: function onClick() {
|
|
38
|
+
console.log(item.label);
|
|
39
|
+
}
|
|
40
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
41
|
+
src: item.icon,
|
|
42
|
+
alt: item.label
|
|
43
|
+
}), " ", /*#__PURE__*/React.createElement("p", null, item.label));
|
|
44
|
+
})));
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
exports.MenuProfile = MenuProfile;
|
|
@@ -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 width: 200px;\n height: auto;\n border-radius: 20px;\n background-color: ", ";\n padding: 16px;\n box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);\n position: absolute;\n top: calc(100% + 5px);\n left: 0px;\n div {\n background-color: ", ";\n border-radius: 15px;\n padding-top: 4px;\n padding-bottom: 1px;\n p {\n text-align: center;\n font-family: ", ";\n font-style: normal;\n font-weight: 500;\n line-height: 20px;\n font-size: 14px;\n color: #ededed;\n letter-spacing: -0.015em;\n }\n }\n .overall-list {\n margin-top: 5px;\n margin-left: 25px;\n list-style: none;\n li {\n display: flex;\n align-items: center;\n & + * {\n margin-top: 8px;\n }\n img {\n & + * {\n margin-left: 10px;\n }\n }\n p {\n margin-top: 3px;\n line-height: 14px;\n font-size: 14px;\n letter-spacing: -0.015em;\n color: ", ";\n font-family: ", ";\n font-style: normal;\n font-weight: normal;\n }\n }\n }\n"])), _variables.GlobalColors.s2, _variables.GlobalColors.original_purpura, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s4, _variables.FontFamily.AvenirNext);
|
|
19
|
+
|
|
20
|
+
exports.Container = Container;
|
|
@@ -0,0 +1,30 @@
|
|
|
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.NotificationDefault = void 0;
|
|
9
|
+
|
|
10
|
+
var _index = require("./index");
|
|
11
|
+
|
|
12
|
+
var _defaultProfileImage = _interopRequireDefault(require("../../../assets/images/defaultImages/defaultProfileImage.svg"));
|
|
13
|
+
|
|
14
|
+
var _default = {
|
|
15
|
+
title: "Components/atoms/Notification",
|
|
16
|
+
component: _index.Notification
|
|
17
|
+
};
|
|
18
|
+
exports.default = _default;
|
|
19
|
+
|
|
20
|
+
var Template = function Template(args) {
|
|
21
|
+
return /*#__PURE__*/React.createElement(_index.Notification, args);
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
var NotificationDefault = Template.bind({});
|
|
25
|
+
exports.NotificationDefault = NotificationDefault;
|
|
26
|
+
NotificationDefault.args = {
|
|
27
|
+
profilePicture: _defaultProfileImage.default,
|
|
28
|
+
notification: "ODT 23441244",
|
|
29
|
+
newNotification: true
|
|
30
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Notification = void 0;
|
|
7
|
+
|
|
8
|
+
var _styles = require("./styles");
|
|
9
|
+
|
|
10
|
+
var _index = require("../../atoms/Avatar/index");
|
|
11
|
+
|
|
12
|
+
var Notification = function Notification(_ref) {
|
|
13
|
+
var profilePicture = _ref.profilePicture,
|
|
14
|
+
notification = _ref.notification,
|
|
15
|
+
newNotification = _ref.newNotification;
|
|
16
|
+
return /*#__PURE__*/React.createElement(_styles.Container, {
|
|
17
|
+
className: newNotification && "new-notification"
|
|
18
|
+
}, /*#__PURE__*/React.createElement(_index.Avatar, {
|
|
19
|
+
image: profilePicture,
|
|
20
|
+
imageType: "profile-image",
|
|
21
|
+
altText: "Profile Picture"
|
|
22
|
+
}), /*#__PURE__*/React.createElement("p", null, newNotification ? "Notificación nueva" : "Notificación vista"), notification ? /*#__PURE__*/React.createElement("p", {
|
|
23
|
+
className: "bolder"
|
|
24
|
+
}, notification) : "ODT 23441244");
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
exports.Notification = Notification;
|
|
@@ -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-color: #f9f9fc;\n border-radius: 25px;\n display: flex;\n align-items: center;\n cursor: pointer;\n padding: 5px;\n width: 360px;\n height: auto;\n border: none;\n &.new-notification {\n border: 1px solid #ff009a;\n }\n .profile-image {\n & + * {\n margin-left: 10px;\n }\n }\n p {\n font-family: ", ";\n color: #342b3f;\n font-style: normal;\n font-weight: normal;\n font-size: 12px;\n line-height: 18px;\n letter-spacing: -0.015em;\n & + * {\n margin-left: 4px;\n }\n }\n .bolder {\n font-weight: 900;\n max-width: 185px;\n max-height: 40px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n"])), _variables.FontFamily.AvenirNext);
|
|
19
|
+
|
|
20
|
+
exports.Container = Container;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.PercentDefault = void 0;
|
|
7
|
+
|
|
8
|
+
var _index = require("./index");
|
|
9
|
+
|
|
10
|
+
var status = ["-", "Pr", "Rc", "As", "P", "QF", "AF", "AA", "AP", "AC", "RA", "RF", "RP", "RC", "Ex"];
|
|
11
|
+
var _default = {
|
|
12
|
+
title: "Components/atoms/Percent",
|
|
13
|
+
component: _index.Percent,
|
|
14
|
+
argTypes: {
|
|
15
|
+
statusType: {
|
|
16
|
+
options: status,
|
|
17
|
+
control: {
|
|
18
|
+
type: "select"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
exports.default = _default;
|
|
24
|
+
|
|
25
|
+
var Template = function Template(args) {
|
|
26
|
+
return /*#__PURE__*/React.createElement(_index.Percent, args);
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
var PercentDefault = Template.bind({});
|
|
30
|
+
exports.PercentDefault = PercentDefault;
|
|
31
|
+
PercentDefault.args = {
|
|
32
|
+
statusType: "-"
|
|
33
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
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.Percent = void 0;
|
|
9
|
+
|
|
10
|
+
var _styles = require("./styles");
|
|
11
|
+
|
|
12
|
+
var _polygon = _interopRequireDefault(require("../../../assets/images/arrow/polygon.svg"));
|
|
13
|
+
|
|
14
|
+
var Percent = function Percent(_ref) {
|
|
15
|
+
var statusType = _ref.statusType;
|
|
16
|
+
return /*#__PURE__*/React.createElement(_styles.Container, {
|
|
17
|
+
className: "status-".concat(statusType)
|
|
18
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
19
|
+
className: "text"
|
|
20
|
+
}, "Productos en proceso"), /*#__PURE__*/React.createElement("div", {
|
|
21
|
+
className: "percent-text"
|
|
22
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
23
|
+
className: "number"
|
|
24
|
+
}, "20"), /*#__PURE__*/React.createElement("img", {
|
|
25
|
+
src: _polygon.default,
|
|
26
|
+
alt: ""
|
|
27
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
28
|
+
className: "span"
|
|
29
|
+
}, "1%")));
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
exports.Percent = Percent;
|
|
@@ -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 border-radius: 7px;\n width: 97px;\n height: 83px;\n text-align: center;\n padding: 15px;\n\n &.status-Pr,\n &.status-Rc {\n border: 1px solid ", ";\n .span {\n color: ", ";\n }\n }\n &.status-- {\n border: 1px solid ", ";\n .span {\n color: ", ";\n }\n }\n\n &.status-As,\n &.status-P,\n &.status-QF {\n border: 1px solid ", ";\n .span {\n color: ", ";\n }\n }\n\n &.status-AF,\n &.status-AA,\n &.status-AP,\n &.status-AC {\n border: 1px solid ", ";\n .span {\n color: ", ";\n }\n }\n\n &.status-RA,\n &.status-RF,\n &.status-RP,\n &.status-RC {\n border: 1px solid #d74ded;\n .span {\n color: #d74ded;\n }\n }\n\n &.status-Ex {\n border: 1px solid ", ";\n .span {\n color: ", ";\n }\n }\n\n .text {\n color: ", ";\n font-size: 12px;\n font-family: ", ";\n line-height: 14px;\n }\n .percent-text {\n display: flex;\n .number {\n font-family: ", ";\n font-size: 28px;\n color: ", ";\n }\n .span{\n padding-top: 8px;\n font-size: 18px;\n }\n }\n"])), _variables.GlobalColors.reception, _variables.GlobalColors.reception, _variables.GlobalColors.s3, _variables.GlobalColors.s3, _variables.GlobalColors.in_progress, _variables.GlobalColors.in_progress, _variables.GlobalColors.finished, _variables.GlobalColors.finished, _variables.GlobalColors.exported, _variables.GlobalColors.exported, _variables.GlobalColors.s4, _variables.FontFamily.Raleway, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s4);
|
|
19
|
+
|
|
20
|
+
exports.Container = Container;
|
|
@@ -23,7 +23,7 @@ var PriorityFlag = function PriorityFlag(_ref) {
|
|
|
23
23
|
var _PriorityFlags;
|
|
24
24
|
|
|
25
25
|
var priority = _ref.priority;
|
|
26
|
-
var PriorityFlags = (_PriorityFlags = {}, (0, _defineProperty2.default)(_PriorityFlags, "
|
|
26
|
+
var PriorityFlags = (_PriorityFlags = {}, (0, _defineProperty2.default)(_PriorityFlags, "none", _noPriority.default), (0, _defineProperty2.default)(_PriorityFlags, "low", _lowPriority.default), (0, _defineProperty2.default)(_PriorityFlags, "medium", _mediumPriority.default), (0, _defineProperty2.default)(_PriorityFlags, "high", _highPriority.default), _PriorityFlags);
|
|
27
27
|
return /*#__PURE__*/React.createElement(_styles.Container, null, /*#__PURE__*/React.createElement("img", {
|
|
28
28
|
src: PriorityFlags[priority],
|
|
29
29
|
alt: 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: contain;\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;
|
|
@@ -9,9 +9,9 @@ var _styles = require("./styles");
|
|
|
9
9
|
|
|
10
10
|
var ProgressBar = function ProgressBar(_ref) {
|
|
11
11
|
var percent = _ref.percent,
|
|
12
|
-
|
|
12
|
+
progressBarType = _ref.progressBarType;
|
|
13
13
|
return /*#__PURE__*/React.createElement(_styles.Container, {
|
|
14
|
-
|
|
14
|
+
className: "status-".concat(progressBarType)
|
|
15
15
|
}, /*#__PURE__*/React.createElement("p", null, percent, "%"));
|
|
16
16
|
};
|
|
17
17
|
|
|
@@ -15,10 +15,8 @@ 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"])), function (
|
|
19
|
-
return _variables.GlobalColors
|
|
20
|
-
}, _variables.
|
|
21
|
-
return props.backgroundColor === "s2" || props.backgroundColor === "s1" ? _variables.GlobalColors.s4 : _variables.GlobalColors.white;
|
|
22
|
-
});
|
|
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\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 &.status-AC {\n background-color: ", ";\n }\n\n &.status-RA,\n &.status-RF,\n &.status-RP,\n &.status-RC {\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"])), _variables.GlobalColors.s3, _variables.FontFamily.AvenirNext, function (backgroundColor) {
|
|
19
|
+
return backgroundColor === "s2" || backgroundColor === "s1" ? _variables.GlobalColors.s4 : _variables.GlobalColors.white;
|
|
20
|
+
}, _variables.GlobalColors.in_progress, _variables.GlobalColors.reception, _variables.GlobalColors.finished, _variables.GlobalColors.rejected_status, _variables.GlobalColors.s4, _variables.GlobalColors.exported, _variables.GlobalColors.original_purpura, _variables.GlobalColors.in_progress, _variables.GlobalColors.deep_gray, _variables.GlobalColors.s2, _variables.GlobalColors.s4);
|
|
23
21
|
|
|
24
22
|
exports.Container = Container;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default = exports.ScreenHeaderDefatult = exports.ScreenHeaderDate = void 0;
|
|
6
|
+
exports.default = exports.ScreenHeaderDefatult = exports.ScreenHeaderDate = exports.ScreenHeaderAndParagraph = void 0;
|
|
7
7
|
|
|
8
8
|
var _ = require(".");
|
|
9
9
|
|
|
@@ -15,7 +15,7 @@ var _default = {
|
|
|
15
15
|
component: _.ScreenHeader,
|
|
16
16
|
argTypes: {
|
|
17
17
|
headerType: {
|
|
18
|
-
options: ["with-bold-text", "product-name-header", "retailer-name-header", "input-name-header", "date-header"],
|
|
18
|
+
options: ["with-bold-text", "product-name-header", "retailer-name-header", "input-name-header", "date-header", "header-and-paragraph"],
|
|
19
19
|
control: {
|
|
20
20
|
type: "select"
|
|
21
21
|
}
|
|
@@ -51,4 +51,11 @@ exports.ScreenHeaderDate = ScreenHeaderDate;
|
|
|
51
51
|
ScreenHeaderDate.args = {
|
|
52
52
|
text: "00/00/00",
|
|
53
53
|
headerType: "date-header"
|
|
54
|
+
};
|
|
55
|
+
var ScreenHeaderAndParagraph = Template.bind({});
|
|
56
|
+
exports.ScreenHeaderAndParagraph = ScreenHeaderAndParagraph;
|
|
57
|
+
ScreenHeaderAndParagraph.args = {
|
|
58
|
+
text: "Primer texto antes del span//",
|
|
59
|
+
boldText: "se puede cambiar el color de este texto con span",
|
|
60
|
+
Paragraph: "Aquí se incerta el parrafo en general y su etiqueta es p"
|
|
54
61
|
};
|
|
@@ -14,12 +14,14 @@ var ScreenHeader = function ScreenHeader(_ref) {
|
|
|
14
14
|
boldText = _ref.boldText,
|
|
15
15
|
fontFamily = _ref.fontFamily,
|
|
16
16
|
color = _ref.color,
|
|
17
|
-
headerType = _ref.headerType
|
|
17
|
+
headerType = _ref.headerType,
|
|
18
|
+
Paragraph = _ref.Paragraph;
|
|
18
19
|
return /*#__PURE__*/React.createElement(_styles.Container, {
|
|
19
20
|
fontFamily: fontFamily,
|
|
20
21
|
color: color,
|
|
21
|
-
className: headerType
|
|
22
|
-
|
|
22
|
+
className: headerType,
|
|
23
|
+
key: "title-".concat(text)
|
|
24
|
+
}, text, " ", boldText && /*#__PURE__*/React.createElement("span", null, " ", boldText), /*#__PURE__*/React.createElement("p", null, Paragraph));
|
|
23
25
|
};
|
|
24
26
|
|
|
25
27
|
exports.ScreenHeader = ScreenHeader;
|