contentoh-components-library 21.4.30 → 21.4.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/dist/assets/images/defaultImages/check_circle.svg +10 -0
- package/dist/components/atoms/Avatar/index.js +3 -2
- package/dist/components/atoms/Card/index.js +46 -5
- package/dist/components/atoms/Card/styles.js +3 -1
- package/dist/components/atoms/CheckBox/index.js +7 -2
- package/dist/components/atoms/CheckBox/styles.js +1 -1
- package/dist/components/atoms/ImageCarousel/ImgeSlider.stories.js +90 -0
- package/dist/components/atoms/ImageCarousel/index.js +120 -0
- package/dist/components/atoms/ImageCarousel/styles.js +18 -0
- package/dist/components/atoms/InputFormatter/styles.js +1 -1
- package/dist/components/atoms/PercentTag/PercentTag.stories.js +31 -0
- package/dist/components/atoms/PercentTag/index.js +23 -0
- package/dist/components/atoms/PercentTag/styles.js +22 -0
- package/dist/components/atoms/RatingStars/RatingStars.stories.js +30 -0
- package/dist/components/atoms/RatingStars/index.js +53 -0
- package/dist/components/atoms/RatingStars/styles.js +18 -0
- package/dist/components/atoms/RetailerCatalog/RetailerCatalog.stories.js +48 -0
- package/dist/components/atoms/RetailerCatalog/index.js +69 -0
- package/dist/components/atoms/RetailerCatalog/styles.js +20 -0
- package/dist/components/atoms/RetailerOption/RetailerOption.stories.js +33 -0
- package/dist/components/atoms/RetailerOption/index.js +62 -0
- package/dist/components/atoms/RetailerOption/styles.js +20 -0
- package/dist/components/atoms/RetailersList/RetailersList.stories.js +45 -0
- package/dist/components/atoms/RetailersList/index.js +46 -0
- package/dist/components/atoms/RetailersList/styles.js +18 -0
- package/dist/components/atoms/SliderToolTip/styles.js +1 -1
- package/dist/components/atoms/UserCatalog/UserCatalog.stories.js +73 -0
- package/dist/components/atoms/UserCatalog/index.js +101 -0
- package/dist/components/atoms/UserCatalog/styles.js +18 -0
- package/dist/components/atoms/UserOption/UserOption.stories.js +40 -0
- package/dist/components/atoms/UserOption/index.js +130 -0
- package/dist/components/atoms/UserOption/styles.js +20 -0
- package/dist/components/atoms/UserSelector/UserSelector.stories.js +40 -0
- package/dist/components/atoms/UserSelector/index.js +98 -0
- package/dist/components/atoms/UserSelector/styles.js +32 -0
- package/dist/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/dist/components/molecules/GridItem/GridItem.stories.js +123 -0
- package/dist/components/molecules/GridItem/index.js +152 -0
- package/dist/components/molecules/GridItem/styles.js +20 -0
- package/dist/components/molecules/HeaderItem/ColumnItem.js +23 -0
- package/dist/components/molecules/HeaderItem/HeaderItem.stories.js +70 -0
- package/dist/components/molecules/HeaderItem/index.js +42 -0
- package/dist/components/molecules/HeaderItem/styles.js +30 -0
- package/dist/components/molecules/HeaderTop/index.js +68 -11
- package/dist/components/molecules/RowItem/ColumnItem.js +23 -0
- package/dist/components/molecules/RowItem/RowItem.stories.js +5242 -0
- package/dist/components/molecules/RowItem/index.js +58 -0
- package/dist/components/molecules/RowItem/styles.js +30 -0
- package/dist/components/molecules/StripeCardForm/StripeCardForm.stories.js +32 -0
- package/dist/components/molecules/StripeCardForm/index.js +94 -0
- package/dist/components/molecules/StripeCardForm/paymentForm.js +199 -0
- package/dist/components/molecules/StripeCardForm/styles.js +27 -0
- package/dist/components/molecules/StripeCardSelector/CardSelector.stories.js +30 -0
- package/dist/components/molecules/StripeCardSelector/index.js +125 -0
- package/dist/components/molecules/StripeCardSelector/styles.js +22 -0
- package/dist/components/molecules/StripeCardSelector/utils.js +56 -0
- package/dist/components/molecules/TagAndInput/index.js +1 -1
- package/dist/components/organisms/Chat/Chat.stories.js +27 -8
- package/dist/components/organisms/Chat/ContainerItems/index.js +19 -3
- package/dist/components/organisms/Chat/ContainerItems/styles.js +1 -1
- package/dist/components/organisms/Chat/ContentChat/index.js +350 -197
- package/dist/components/organisms/Chat/Footer/index.js +48 -39
- package/dist/components/organisms/Chat/index.js +49 -4
- package/dist/components/organisms/Chat/styles.js +1 -1
- package/dist/components/organisms/FullProductNameHeader/index.js +2 -2
- package/dist/components/organisms/GridProducts/GridProducts.stories.js +5097 -0
- package/dist/components/organisms/GridProducts/index.js +63 -0
- package/dist/components/organisms/GridProducts/styles.js +18 -0
- package/dist/components/organisms/GridProducts/utils.js +149 -0
- package/dist/components/organisms/Modal/styles.js +1 -1
- package/dist/components/organisms/PanelLayout/PanelLayout.stories.js +87 -0
- package/dist/components/organisms/PanelLayout/index.js +29 -0
- package/dist/components/organisms/PanelLayout/styles.js +32 -0
- package/dist/components/organisms/SideModal/SideModal.stories.js +42 -0
- package/dist/components/organisms/SideModal/index.js +72 -0
- package/dist/components/organisms/SideModal/styles.js +18 -0
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +6 -4
- package/dist/components/pages/ProviderProductEdition/index.js +117 -142
- package/dist/components/pages/ProviderProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +7 -3
- package/dist/components/pages/RetailerProductEdition/index.js +276 -274
- package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/utils.js +61 -2
- package/dist/index.js +247 -52
- package/package.json +4 -1
- package/src/assets/images/defaultImages/check_circle.svg +10 -0
- package/src/components/atoms/Avatar/index.js +8 -2
- package/src/components/atoms/Card/index.js +35 -2
- package/src/components/atoms/Card/styles.js +41 -5
- package/src/components/atoms/CheckBox/index.js +4 -1
- package/src/components/atoms/CheckBox/styles.js +2 -0
- package/src/components/atoms/ImageCarousel/ImgeSlider.stories.js +76 -0
- package/src/components/atoms/ImageCarousel/index.js +103 -0
- package/src/components/atoms/ImageCarousel/styles.js +79 -0
- package/src/components/atoms/InputFormatter/styles.js +2 -1
- package/src/components/atoms/PercentTag/PercentTag.stories.js +7 -0
- package/src/components/atoms/PercentTag/index.js +9 -0
- package/src/components/atoms/PercentTag/styles.js +69 -0
- package/src/components/atoms/RatingStars/RatingStars.stories.js +10 -0
- package/src/components/atoms/RatingStars/index.js +31 -0
- package/src/components/atoms/RatingStars/styles.js +28 -0
- package/src/components/atoms/RetailerCatalog/RetailerCatalog.stories.js +36 -0
- package/src/components/atoms/RetailerCatalog/index.js +49 -0
- package/src/components/atoms/RetailerCatalog/styles.js +30 -0
- package/src/components/atoms/RetailerOption/RetailerOption.stories.js +15 -0
- package/src/components/atoms/RetailerOption/index.js +53 -0
- package/src/components/atoms/RetailerOption/styles.js +41 -0
- package/src/components/atoms/RetailersList/RetailersList.stories.js +33 -0
- package/src/components/atoms/RetailersList/index.js +20 -0
- package/src/components/atoms/RetailersList/styles.js +19 -0
- package/src/components/atoms/SliderToolTip/styles.js +1 -1
- package/src/components/atoms/UserCatalog/UserCatalog.stories.js +67 -0
- package/src/components/atoms/UserCatalog/index.js +100 -0
- package/src/components/atoms/UserCatalog/styles.js +24 -0
- package/src/components/atoms/UserOption/UserOption.stories.js +25 -0
- package/src/components/atoms/UserOption/index.js +95 -0
- package/src/components/atoms/UserOption/styles.js +61 -0
- package/src/components/atoms/UserSelector/UserSelector.stories.js +25 -0
- package/src/components/atoms/UserSelector/index.js +86 -0
- package/src/components/atoms/UserSelector/styles.js +55 -0
- package/src/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/src/components/molecules/GridItem/GridItem.stories.js +126 -0
- package/src/components/molecules/GridItem/index.js +105 -0
- package/src/components/molecules/GridItem/styles.js +104 -0
- package/src/components/molecules/HeaderItem/ColumnItem.js +9 -0
- package/src/components/molecules/HeaderItem/HeaderItem.stories.js +24 -0
- package/src/components/molecules/HeaderItem/index.js +26 -0
- package/src/components/molecules/HeaderItem/styles.js +27 -0
- package/src/components/molecules/HeaderTop/index.js +52 -6
- package/src/components/molecules/RowItem/ColumnItem.js +9 -0
- package/src/components/molecules/RowItem/RowItem.stories.js +5660 -0
- package/src/components/molecules/RowItem/index.js +45 -0
- package/src/components/molecules/RowItem/styles.js +40 -0
- package/src/components/molecules/StripeCardForm/StripeCardForm.stories.js +14 -0
- package/src/components/molecules/StripeCardForm/index.js +45 -0
- package/src/components/molecules/StripeCardForm/paymentForm.js +126 -0
- package/src/components/molecules/StripeCardForm/styles.js +84 -0
- package/src/components/molecules/StripeCardSelector/CardSelector.stories.js +12 -0
- package/src/components/molecules/StripeCardSelector/index.js +59 -0
- package/src/components/molecules/StripeCardSelector/styles.js +15 -0
- package/src/components/molecules/StripeCardSelector/utils.js +17 -0
- package/src/components/molecules/TagAndInput/index.js +10 -8
- package/src/components/organisms/Chat/Chat.stories.js +27 -7
- package/src/components/organisms/Chat/ContainerItems/index.js +18 -2
- package/src/components/organisms/Chat/ContainerItems/styles.js +14 -2
- package/src/components/organisms/Chat/ContentChat/index.js +88 -12
- package/src/components/organisms/Chat/Footer/index.js +11 -0
- package/src/components/organisms/Chat/index.js +46 -4
- package/src/components/organisms/Chat/styles.js +4 -0
- package/src/components/organisms/FullProductNameHeader/index.js +1 -1
- package/src/components/organisms/GridProducts/GridProducts.stories.js +5485 -0
- package/src/components/organisms/GridProducts/index.js +50 -0
- package/src/components/organisms/GridProducts/styles.js +14 -0
- package/src/components/organisms/GridProducts/utils.js +111 -0
- package/src/components/organisms/Modal/styles.js +4 -1
- package/src/components/organisms/OrderDetail/utils/Table/utils.js +6 -16
- package/src/components/organisms/PanelLayout/PanelLayout.stories.js +63 -0
- package/src/components/organisms/PanelLayout/index.js +11 -0
- package/src/components/organisms/PanelLayout/styles.js +39 -0
- package/src/components/organisms/SideModal/SideModal.stories.js +23 -0
- package/src/components/organisms/SideModal/index.js +50 -0
- package/src/components/organisms/SideModal/styles.js +30 -0
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +6 -4
- package/src/components/pages/ProviderProductEdition/index.js +97 -129
- package/src/components/pages/ProviderProductEdition/styles.js +5 -1
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +6 -2
- package/src/components/pages/RetailerProductEdition/index.js +111 -142
- package/src/components/pages/RetailerProductEdition/styles.js +4 -0
- package/src/components/pages/RetailerProductEdition/utils.js +37 -0
- package/src/index.js +15 -0
|
@@ -0,0 +1,130 @@
|
|
|
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.UserOption = void 0;
|
|
9
|
+
|
|
10
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
11
|
+
|
|
12
|
+
var _styles = require("./styles");
|
|
13
|
+
|
|
14
|
+
var _Avatar = require("../Avatar");
|
|
15
|
+
|
|
16
|
+
var _react = require("react");
|
|
17
|
+
|
|
18
|
+
var _data = require("../../../global-files/data");
|
|
19
|
+
|
|
20
|
+
var _utils = require("../../organisms/OrderDetail/utils/Table/utils");
|
|
21
|
+
|
|
22
|
+
var _UserSelector = require("../UserSelector");
|
|
23
|
+
|
|
24
|
+
var _customHooks = require("../../../global-files/customHooks");
|
|
25
|
+
|
|
26
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
27
|
+
|
|
28
|
+
var UserOption = function UserOption(_ref) {
|
|
29
|
+
var userId = _ref.userId,
|
|
30
|
+
index = _ref.index,
|
|
31
|
+
usersArray = _ref.usersArray,
|
|
32
|
+
id = _ref.id,
|
|
33
|
+
onAssign = _ref.onAssign,
|
|
34
|
+
product = _ref.product;
|
|
35
|
+
index === "auditor" && console.log(userId);
|
|
36
|
+
|
|
37
|
+
var _useState = (0, _react.useState)({}),
|
|
38
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
39
|
+
userAssigned = _useState2[0],
|
|
40
|
+
setUserAssigned = _useState2[1];
|
|
41
|
+
|
|
42
|
+
var _useCloseModal = (0, _customHooks.useCloseModal)(id),
|
|
43
|
+
_useCloseModal2 = (0, _slicedToArray2.default)(_useCloseModal, 2),
|
|
44
|
+
showSelector = _useCloseModal2[0],
|
|
45
|
+
setShowSelector = _useCloseModal2[1];
|
|
46
|
+
|
|
47
|
+
var _useState3 = (0, _react.useState)(""),
|
|
48
|
+
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
49
|
+
assignationTarget = _useState4[0],
|
|
50
|
+
setAssignationTarget = _useState4[1];
|
|
51
|
+
|
|
52
|
+
var _useState5 = (0, _react.useState)(""),
|
|
53
|
+
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
|
54
|
+
concept = _useState6[0],
|
|
55
|
+
setConcept = _useState6[1];
|
|
56
|
+
|
|
57
|
+
var _useState7 = (0, _react.useState)(""),
|
|
58
|
+
_useState8 = (0, _slicedToArray2.default)(_useState7, 2),
|
|
59
|
+
target = _useState8[0],
|
|
60
|
+
setTarget = _useState8[1];
|
|
61
|
+
|
|
62
|
+
var icons = _utils.servicesCodeIcon;
|
|
63
|
+
(0, _react.useEffect)(function () {
|
|
64
|
+
if (usersArray) {
|
|
65
|
+
usersArray.forEach(function (user) {
|
|
66
|
+
if (user.id_user === userId) {
|
|
67
|
+
setUserAssigned(user);
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
}, [userId, usersArray]);
|
|
72
|
+
(0, _react.useEffect)(function () {
|
|
73
|
+
switch (index) {
|
|
74
|
+
case "datasheet":
|
|
75
|
+
case "description":
|
|
76
|
+
setAssignationTarget("id_".concat(index, "_especialist"));
|
|
77
|
+
setConcept(index);
|
|
78
|
+
setTarget("especialist");
|
|
79
|
+
break;
|
|
80
|
+
|
|
81
|
+
case "image":
|
|
82
|
+
setAssignationTarget("id_".concat(index, "s_especialist"));
|
|
83
|
+
setConcept(index + "s");
|
|
84
|
+
setTarget("especialist");
|
|
85
|
+
break;
|
|
86
|
+
|
|
87
|
+
case "auditor":
|
|
88
|
+
setAssignationTarget("id_".concat(index));
|
|
89
|
+
setConcept(index);
|
|
90
|
+
setTarget(index);
|
|
91
|
+
break;
|
|
92
|
+
|
|
93
|
+
default:
|
|
94
|
+
break;
|
|
95
|
+
}
|
|
96
|
+
}, [index]);
|
|
97
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
98
|
+
onClick: function onClick(e) {
|
|
99
|
+
setShowSelector(!showSelector);
|
|
100
|
+
e.stopPropagation();
|
|
101
|
+
},
|
|
102
|
+
id: id,
|
|
103
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
104
|
+
className: "image-and-name",
|
|
105
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.Avatar, {
|
|
106
|
+
image: (0, _data.getProfilePicture)(userAssigned === null || userAssigned === void 0 ? void 0 : userAssigned.id_user, 26, 26),
|
|
107
|
+
altText: "datasheet especialist",
|
|
108
|
+
imageType: "medium-image"
|
|
109
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("p", {
|
|
110
|
+
children: [userAssigned === null || userAssigned === void 0 ? void 0 : userAssigned.name, " ", userAssigned === null || userAssigned === void 0 ? void 0 : userAssigned.last_name]
|
|
111
|
+
})]
|
|
112
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
113
|
+
className: "icon-container",
|
|
114
|
+
children: icons[index]
|
|
115
|
+
}), showSelector && /*#__PURE__*/(0, _jsxRuntime.jsx)(_UserSelector.UserSelector, {
|
|
116
|
+
id: id,
|
|
117
|
+
searchLabel: "Buscar Usuario",
|
|
118
|
+
index: index,
|
|
119
|
+
usersArray: usersArray,
|
|
120
|
+
position: "absolute",
|
|
121
|
+
onAssign: onAssign,
|
|
122
|
+
product: product,
|
|
123
|
+
assignationTarget: assignationTarget,
|
|
124
|
+
target: target,
|
|
125
|
+
concept: concept
|
|
126
|
+
})]
|
|
127
|
+
});
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
exports.UserOption = UserOption;
|
|
@@ -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: 1px solid #f0f0f0;\n border-radius: 5px;\n color: #262626;\n font-size: 12px;\n font-family: ", ";\n display: flex;\n align-items: center;\n padding: 5px 10px;\n justify-content: space-between;\n cursor: pointer;\n position: relative;\n background-color: white;\n\n .image-and-name {\n display: flex;\n align-items: center;\n\n div + p {\n margin-left: 10px;\n white-space: nowrap;\n }\n\n & + * {\n margin-left: 10px;\n }\n }\n\n .icon-container {\n position: relative;\n span {\n color: #808080;\n cursor: pointer;\n\n & + span {\n display: none;\n position: absolute;\n right: 120%;\n top: 50%;\n transform: translateY(-50%);\n white-space: nowrap;\n border: 1px solid #f0f0f0;\n padding: 5px;\n background-color: white;\n }\n\n &:hover {\n & + span {\n display: block;\n }\n }\n }\n }\n\n & + * {\n margin-top: 5px;\n }\n"])), _variables.FontFamily.Lato);
|
|
19
|
+
|
|
20
|
+
exports.Container = Container;
|
|
@@ -0,0 +1,40 @@
|
|
|
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.UserSelectorDefault = void 0;
|
|
9
|
+
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
+
|
|
12
|
+
var _ = require(".");
|
|
13
|
+
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
|
|
16
|
+
var _default = {
|
|
17
|
+
title: "Components/atoms/UserSelector",
|
|
18
|
+
component: _.UserSelector
|
|
19
|
+
};
|
|
20
|
+
exports.default = _default;
|
|
21
|
+
|
|
22
|
+
var Template = function Template(args) {
|
|
23
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_.UserSelector, (0, _objectSpread2.default)({}, args));
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
var UserSelectorDefault = Template.bind({});
|
|
27
|
+
exports.UserSelectorDefault = UserSelectorDefault;
|
|
28
|
+
UserSelectorDefault.args = {
|
|
29
|
+
searchLabel: "Buscar auditor",
|
|
30
|
+
index: "auditor",
|
|
31
|
+
usersArray: [{
|
|
32
|
+
name: "José",
|
|
33
|
+
last_name: "Castañeda",
|
|
34
|
+
id_user: 37
|
|
35
|
+
}, {
|
|
36
|
+
name: "Eduardo ",
|
|
37
|
+
last_name: " Reyes",
|
|
38
|
+
id_user: 195
|
|
39
|
+
}]
|
|
40
|
+
};
|
|
@@ -0,0 +1,98 @@
|
|
|
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.UserSelector = void 0;
|
|
9
|
+
|
|
10
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
11
|
+
|
|
12
|
+
var _styles = require("./styles");
|
|
13
|
+
|
|
14
|
+
var _freeSolidSvgIcons = require("@fortawesome/free-solid-svg-icons");
|
|
15
|
+
|
|
16
|
+
var _reactFontawesome = require("@fortawesome/react-fontawesome");
|
|
17
|
+
|
|
18
|
+
var _Avatar = require("../Avatar");
|
|
19
|
+
|
|
20
|
+
var _data = require("../../../global-files/data");
|
|
21
|
+
|
|
22
|
+
var _react = require("react");
|
|
23
|
+
|
|
24
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
25
|
+
|
|
26
|
+
var UserSelector = function UserSelector(_ref) {
|
|
27
|
+
var searchLabel = _ref.searchLabel,
|
|
28
|
+
usersArray = _ref.usersArray,
|
|
29
|
+
position = _ref.position,
|
|
30
|
+
id = _ref.id,
|
|
31
|
+
onAssign = _ref.onAssign,
|
|
32
|
+
product = _ref.product,
|
|
33
|
+
assignationTarget = _ref.assignationTarget,
|
|
34
|
+
target = _ref.target,
|
|
35
|
+
concept = _ref.concept;
|
|
36
|
+
|
|
37
|
+
var _useState = (0, _react.useState)([]),
|
|
38
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
39
|
+
text = _useState2[0],
|
|
40
|
+
setText = _useState2[1];
|
|
41
|
+
|
|
42
|
+
var _useState3 = (0, _react.useState)([]),
|
|
43
|
+
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
44
|
+
userFiltered = _useState4[0],
|
|
45
|
+
setUsersFiltered = _useState4[1];
|
|
46
|
+
|
|
47
|
+
(0, _react.useEffect)(function () {
|
|
48
|
+
if (usersArray) setUsersFiltered(usersArray);
|
|
49
|
+
}, [usersArray]);
|
|
50
|
+
|
|
51
|
+
var onChangeText = function onChangeText(e) {
|
|
52
|
+
setText(e.target.value);
|
|
53
|
+
if (usersArray) setUsersFiltered(usersArray.filter(function (user) {
|
|
54
|
+
return (user.name + " " + user.last_name).toLowerCase().includes(e.target.value.toLowerCase());
|
|
55
|
+
}));
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
59
|
+
position: position,
|
|
60
|
+
id: id + "users-list",
|
|
61
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
62
|
+
className: "search-cotainer",
|
|
63
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFontawesome.FontAwesomeIcon, {
|
|
64
|
+
icon: _freeSolidSvgIcons.faSearch
|
|
65
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
66
|
+
type: "text",
|
|
67
|
+
className: "search",
|
|
68
|
+
placeholder: searchLabel,
|
|
69
|
+
value: text,
|
|
70
|
+
onChange: onChangeText,
|
|
71
|
+
autoFocus: true
|
|
72
|
+
})]
|
|
73
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
74
|
+
className: "selector-container",
|
|
75
|
+
children: userFiltered.length ? userFiltered.map(function (user, i) {
|
|
76
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
77
|
+
className: "user-item",
|
|
78
|
+
onClick: function onClick() {
|
|
79
|
+
onAssign(product, user.id_user, assignationTarget, target, concept);
|
|
80
|
+
},
|
|
81
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.Avatar, {
|
|
82
|
+
image: (0, _data.getProfilePicture)(user.id_user, 26, 26),
|
|
83
|
+
altText: "profile image",
|
|
84
|
+
imageType: "medium-image"
|
|
85
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("p", {
|
|
86
|
+
children: [user.name, " ", user.last_name]
|
|
87
|
+
})]
|
|
88
|
+
}, user.id_user + "-" + i);
|
|
89
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
90
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
91
|
+
children: "Sin usuarios para asignar"
|
|
92
|
+
})
|
|
93
|
+
})
|
|
94
|
+
})]
|
|
95
|
+
});
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
exports.UserSelector = UserSelector;
|
|
@@ -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.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 box-shadow: 0px 2px 4px #00000040;\n width: 197px;\n border-radius: 5px;\n position: ", ";\n top: ", ";\n left: ", ";\n transform: ", ";\n z-index: 500;\n background-color: white;\n\n .search-cotainer {\n display: flex;\n padding-left: 10px;\n align-items: center;\n border-bottom: 1px solid #f0f0f0;\n\n svg {\n & + * {\n margin-left: 10px;\n }\n }\n\n input {\n border: none;\n width: 100%;\n padding: 10px;\n outline: none;\n }\n }\n\n .selector-container {\n max-height: 184px;\n overflow: auto;\n .user-item {\n display: flex;\n font-family: ", ";\n font-size: 12px;\n align-items: center;\n padding: 10px;\n cursor: pointer;\n\n &:hover {\n background-color: #f0f0f0;\n }\n\n > * + * {\n margin-left: 10px;\n }\n }\n }\n"])), function (_ref) {
|
|
19
|
+
var position = _ref.position;
|
|
20
|
+
return position ? position : "initial";
|
|
21
|
+
}, function (_ref2) {
|
|
22
|
+
var position = _ref2.position;
|
|
23
|
+
return position ? "100%" : "initial";
|
|
24
|
+
}, function (_ref3) {
|
|
25
|
+
var position = _ref3.position;
|
|
26
|
+
return position ? "50%" : "initial";
|
|
27
|
+
}, function (_ref4) {
|
|
28
|
+
var position = _ref4.position;
|
|
29
|
+
return position ? "translateX(-50%)" : "initial";
|
|
30
|
+
}, _variables.FontFamily.Lato);
|
|
31
|
+
|
|
32
|
+
exports.Container = Container;
|
|
@@ -47,7 +47,7 @@ var CarouselImagesLogin = function CarouselImagesLogin(_ref) {
|
|
|
47
47
|
Array.from(circulos).forEach(function (cir) {
|
|
48
48
|
return cir.classList.remove("resaltado");
|
|
49
49
|
});
|
|
50
|
-
circulo_actual.classList.add("resaltado");
|
|
50
|
+
circulo_actual === null || circulo_actual === void 0 ? void 0 : circulo_actual.classList.add("resaltado");
|
|
51
51
|
img1.classList.add("right");
|
|
52
52
|
img2.classList.add("active");
|
|
53
53
|
i++;
|
|
@@ -0,0 +1,123 @@
|
|
|
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.GridItemDefault = void 0;
|
|
9
|
+
|
|
10
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/defineProperty"));
|
|
11
|
+
|
|
12
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
13
|
+
|
|
14
|
+
var _ = require(".");
|
|
15
|
+
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
+
|
|
18
|
+
var _article;
|
|
19
|
+
|
|
20
|
+
var _default = {
|
|
21
|
+
title: "Components/molecules/GridItem",
|
|
22
|
+
component: _.GridItem
|
|
23
|
+
};
|
|
24
|
+
exports.default = _default;
|
|
25
|
+
|
|
26
|
+
var Template = function Template(args) {
|
|
27
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_.GridItem, (0, _objectSpread2.default)({}, args));
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
var GridItemDefault = Template.bind({});
|
|
31
|
+
exports.GridItemDefault = GridItemDefault;
|
|
32
|
+
GridItemDefault.args = {
|
|
33
|
+
article: (_article = {
|
|
34
|
+
services: {
|
|
35
|
+
datasheets: 1,
|
|
36
|
+
descriptions: 1,
|
|
37
|
+
images: 1
|
|
38
|
+
},
|
|
39
|
+
orderId: 15254,
|
|
40
|
+
status: "Ex",
|
|
41
|
+
datasheet_status: "Ex",
|
|
42
|
+
prio: "none",
|
|
43
|
+
version: 15,
|
|
44
|
+
description_status: "Ex",
|
|
45
|
+
images_status: "Ex",
|
|
46
|
+
statusByRetailer: {
|
|
47
|
+
70: {
|
|
48
|
+
datasheet: "Ex",
|
|
49
|
+
description: "Ex",
|
|
50
|
+
images: "Ex"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
id_article: 38443,
|
|
54
|
+
id_category: "4319",
|
|
55
|
+
name: "Im Polvo Compacto Natural 2",
|
|
56
|
+
upc: "7501611823017",
|
|
57
|
+
timestamp: "2023-03-15T05:54:54.000Z",
|
|
58
|
+
id_user: 133
|
|
59
|
+
}, (0, _defineProperty2.default)(_article, "status", "Ex"), (0, _defineProperty2.default)(_article, "active", 1), (0, _defineProperty2.default)(_article, "company_id", 912), (0, _defineProperty2.default)(_article, "company_name", "GRUPO BRAHMA"), (0, _defineProperty2.default)(_article, "country", "México"), (0, _defineProperty2.default)(_article, "id_order", 15254), (0, _defineProperty2.default)(_article, "id_datasheet_especialist", 1841), (0, _defineProperty2.default)(_article, "id_datasheet_facilitator", null), (0, _defineProperty2.default)(_article, "id_description_especialist", 509), (0, _defineProperty2.default)(_article, "id_description_facilitator", null), (0, _defineProperty2.default)(_article, "id_images_especialist", 289), (0, _defineProperty2.default)(_article, "id_images_facilitator", 160), (0, _defineProperty2.default)(_article, "id_auditor", 493), (0, _defineProperty2.default)(_article, "id_recepcionist", null), (0, _defineProperty2.default)(_article, "category", "Salud y Belleza|Cosméticos|Cosméticos"), (0, _defineProperty2.default)(_article, "missingAttributes", 0), (0, _defineProperty2.default)(_article, "missingDescriptions", 0), (0, _defineProperty2.default)(_article, "missingImages", 0), (0, _defineProperty2.default)(_article, "retailers", [{
|
|
60
|
+
id: 70,
|
|
61
|
+
name: "Bodega Aurrera"
|
|
62
|
+
}]), (0, _defineProperty2.default)(_article, "country", "México"), (0, _defineProperty2.default)(_article, "upc", "7501611823017"), (0, _defineProperty2.default)(_article, "imageArray", [{
|
|
63
|
+
id: 35596,
|
|
64
|
+
status: null,
|
|
65
|
+
image_id: 1,
|
|
66
|
+
packing_type: "3",
|
|
67
|
+
image_type: "1",
|
|
68
|
+
article_id: "38443",
|
|
69
|
+
src: "https://d24s337exbt5zr.cloudfront.net/eyJidWNrZXQiOiJjb250ZW50LW1hbmFnZW1lbnQtaW1hZ2VzIiwia2V5IjoiaWQtMzg0NDMvMTUvMS1kNDQ2ZjIwNy0wYTkzLTQyNzgtYWZjNi01MTY2ZjIyY2EzNDMucG5nIiwiZWRpdHMiOnsicmVzaXplIjp7IndpZHRoIjoxMDAwLCJoZWlnaHQiOjEwMDAsImZpdCI6ImNvbnRhaW4iLCJiYWNrZ3JvdW5kIjp7InIiOjI1NSwiZyI6MjU1LCJiIjoyNTUsImFscGhhIjoxfX19fQ==",
|
|
70
|
+
timestamp: "2023-05-30T03:01:12.000Z",
|
|
71
|
+
id_version: 15,
|
|
72
|
+
width: null,
|
|
73
|
+
height: null,
|
|
74
|
+
scene_type: null,
|
|
75
|
+
image_shot_type: null,
|
|
76
|
+
last_modified: "2023-06-05T23:49:49.000Z",
|
|
77
|
+
name: "Central (Frente Comercial)",
|
|
78
|
+
version: 15,
|
|
79
|
+
ext: "png",
|
|
80
|
+
uuid: "d446f207-0a93-4278-afc6-5166f22ca343",
|
|
81
|
+
srcDB: "id-38443/15/1-d446f207-0a93-4278-afc6-5166f22ca343.png"
|
|
82
|
+
}, {
|
|
83
|
+
id: 35597,
|
|
84
|
+
status: null,
|
|
85
|
+
image_id: 3,
|
|
86
|
+
packing_type: "3",
|
|
87
|
+
image_type: "1",
|
|
88
|
+
article_id: "38443",
|
|
89
|
+
src: "https://d24s337exbt5zr.cloudfront.net/eyJidWNrZXQiOiJjb250ZW50LW1hbmFnZW1lbnQtaW1hZ2VzIiwia2V5IjoiaWQtMzg0NDMvMTUvMy0yOTZkMzU3ZC00OTUzLTRiMzktYjFjMy04YWZmZDI2NDgwMWIucG5nIiwiZWRpdHMiOnsicmVzaXplIjp7IndpZHRoIjoxMDAwLCJoZWlnaHQiOjEwMDAsImZpdCI6ImNvbnRhaW4iLCJiYWNrZ3JvdW5kIjp7InIiOjI1NSwiZyI6MjU1LCJiIjoyNTUsImFscGhhIjoxfX19fQ==",
|
|
90
|
+
timestamp: "2023-05-30T03:01:12.000Z",
|
|
91
|
+
id_version: 15,
|
|
92
|
+
width: null,
|
|
93
|
+
height: null,
|
|
94
|
+
scene_type: null,
|
|
95
|
+
image_shot_type: null,
|
|
96
|
+
last_modified: "2023-06-05T23:49:49.000Z",
|
|
97
|
+
name: "Trasera (Back)",
|
|
98
|
+
version: 15,
|
|
99
|
+
ext: "png",
|
|
100
|
+
uuid: "296d357d-4953-4b39-b1c3-8affd264801b",
|
|
101
|
+
srcDB: "id-38443/15/3-296d357d-4953-4b39-b1c3-8affd264801b.png"
|
|
102
|
+
}, {
|
|
103
|
+
id: 35598,
|
|
104
|
+
status: null,
|
|
105
|
+
image_id: 16,
|
|
106
|
+
packing_type: "3",
|
|
107
|
+
image_type: "1",
|
|
108
|
+
article_id: "38443",
|
|
109
|
+
src: "https://d24s337exbt5zr.cloudfront.net/eyJidWNrZXQiOiJjb250ZW50LW1hbmFnZW1lbnQtaW1hZ2VzIiwia2V5IjoiaWQtMzg0NDMvMTUvMTYtOGMzNDIzM2YtZTRiMC00MjU0LWFlYzUtZjEyN2ZiYjhkYmVkLnBuZyIsImVkaXRzIjp7InJlc2l6ZSI6eyJ3aWR0aCI6MTAwMCwiaGVpZ2h0IjoxMDAwLCJmaXQiOiJjb250YWluIiwiYmFja2dyb3VuZCI6eyJyIjoyNTUsImciOjI1NSwiYiI6MjU1LCJhbHBoYSI6MX19fX0=",
|
|
110
|
+
timestamp: "2023-05-30T03:01:12.000Z",
|
|
111
|
+
id_version: 15,
|
|
112
|
+
width: null,
|
|
113
|
+
height: null,
|
|
114
|
+
scene_type: null,
|
|
115
|
+
image_shot_type: null,
|
|
116
|
+
last_modified: "2023-06-05T23:49:49.000Z",
|
|
117
|
+
name: "Detalle / Características 1",
|
|
118
|
+
version: 15,
|
|
119
|
+
ext: "png",
|
|
120
|
+
uuid: "8c34233f-e4b0-4254-aec5-f127fbb8dbed",
|
|
121
|
+
srcDB: "id-38443/15/16-8c34233f-e4b0-4254-aec5-f127fbb8dbed.png"
|
|
122
|
+
}]), _article)
|
|
123
|
+
};
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.GridItem = void 0;
|
|
7
|
+
|
|
8
|
+
var _styles = require("./styles");
|
|
9
|
+
|
|
10
|
+
var _ImageCarousel = require("../../atoms/ImageCarousel");
|
|
11
|
+
|
|
12
|
+
var _Status = require("../../atoms/Status");
|
|
13
|
+
|
|
14
|
+
var _PercentTag = require("../../atoms/PercentTag");
|
|
15
|
+
|
|
16
|
+
var _ButtonV = require("../../atoms/ButtonV2");
|
|
17
|
+
|
|
18
|
+
var _freeRegularSvgIcons = require("@fortawesome/free-regular-svg-icons");
|
|
19
|
+
|
|
20
|
+
var _freeSolidSvgIcons = require("@fortawesome/free-solid-svg-icons");
|
|
21
|
+
|
|
22
|
+
var _RatingStars = require("../../atoms/RatingStars");
|
|
23
|
+
|
|
24
|
+
var _CheckBox = require("../../atoms/CheckBox");
|
|
25
|
+
|
|
26
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
27
|
+
|
|
28
|
+
var GridItem = function GridItem(_ref) {
|
|
29
|
+
var _ref$gridElement = _ref.gridElement,
|
|
30
|
+
gridElement = _ref$gridElement === void 0 ? {} : _ref$gridElement,
|
|
31
|
+
product = _ref.product,
|
|
32
|
+
id = _ref.id,
|
|
33
|
+
isMerchans = _ref.isMerchans,
|
|
34
|
+
chkOnChange = _ref.chkOnChange,
|
|
35
|
+
onGridClick = _ref.onGridClick,
|
|
36
|
+
chkChecked = _ref.chkChecked,
|
|
37
|
+
index = _ref.index;
|
|
38
|
+
var _gridElement$images = gridElement.images,
|
|
39
|
+
images = _gridElement$images === void 0 ? [] : _gridElement$images,
|
|
40
|
+
_gridElement$info = gridElement.info,
|
|
41
|
+
info = _gridElement$info === void 0 ? [] : _gridElement$info,
|
|
42
|
+
_gridElement$status = gridElement.status,
|
|
43
|
+
status = _gridElement$status === void 0 ? [] : _gridElement$status,
|
|
44
|
+
_gridElement$catalogs = gridElement.catalogs,
|
|
45
|
+
catalogs = _gridElement$catalogs === void 0 ? {} : _gridElement$catalogs;
|
|
46
|
+
|
|
47
|
+
var getSrvName = function getSrvName(srv) {
|
|
48
|
+
switch (srv) {
|
|
49
|
+
case "datasheet":
|
|
50
|
+
return "F.T.";
|
|
51
|
+
|
|
52
|
+
case "description":
|
|
53
|
+
return "D.C.";
|
|
54
|
+
|
|
55
|
+
case "images":
|
|
56
|
+
return "IMG";
|
|
57
|
+
|
|
58
|
+
case "general":
|
|
59
|
+
return "S.G.";
|
|
60
|
+
|
|
61
|
+
default:
|
|
62
|
+
return srv;
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
67
|
+
onClick: function onClick(e) {
|
|
68
|
+
return onGridClick && onGridClick(e, product, index);
|
|
69
|
+
},
|
|
70
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
71
|
+
className: "chk-container",
|
|
72
|
+
onClick: function onClick(e) {
|
|
73
|
+
return e.stopPropagation();
|
|
74
|
+
},
|
|
75
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CheckBox.CheckBox, {
|
|
76
|
+
id: "chk-" + id,
|
|
77
|
+
name: "chk-" + id,
|
|
78
|
+
className: "chk-absolute",
|
|
79
|
+
onChange: function onChange(e) {
|
|
80
|
+
return chkOnChange && chkOnChange(e, product);
|
|
81
|
+
},
|
|
82
|
+
defaultChecked: chkChecked && chkChecked(product)
|
|
83
|
+
})
|
|
84
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ImageCarousel.ImageCarousel, {
|
|
85
|
+
imageArray: images
|
|
86
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
87
|
+
className: "data-body",
|
|
88
|
+
children: info === null || info === void 0 ? void 0 : info.map(function (item, i) {
|
|
89
|
+
return i === 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)("h3", {
|
|
90
|
+
children: item.value
|
|
91
|
+
}, i) : /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
92
|
+
children: item.value
|
|
93
|
+
}, i);
|
|
94
|
+
})
|
|
95
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
96
|
+
className: "status-slider",
|
|
97
|
+
children: status === null || status === void 0 ? void 0 : status.map(function (_ref2) {
|
|
98
|
+
var title = _ref2.title,
|
|
99
|
+
value = _ref2.value,
|
|
100
|
+
percent = _ref2.percent;
|
|
101
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
102
|
+
className: "status-element",
|
|
103
|
+
children: [title && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
104
|
+
className: "srv-name",
|
|
105
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
106
|
+
children: getSrvName(title)
|
|
107
|
+
})
|
|
108
|
+
}), value && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Status.Status, {
|
|
109
|
+
statusType: value
|
|
110
|
+
}), percent && /*#__PURE__*/(0, _jsxRuntime.jsx)(_PercentTag.PercentTag, {
|
|
111
|
+
percent: percent,
|
|
112
|
+
progressBarType: value
|
|
113
|
+
})]
|
|
114
|
+
});
|
|
115
|
+
})
|
|
116
|
+
}), isMerchans ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
117
|
+
className: "cart-and-raiting",
|
|
118
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonV.ButtonV2, {
|
|
119
|
+
borderType: "circle",
|
|
120
|
+
type: "whiteS2",
|
|
121
|
+
icon: _freeRegularSvgIcons.faStar,
|
|
122
|
+
size: 10,
|
|
123
|
+
className: "star-button"
|
|
124
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonV.ButtonV2, {
|
|
125
|
+
borderType: "circle",
|
|
126
|
+
type: "whiteS2",
|
|
127
|
+
icon: _freeSolidSvgIcons.faCartPlus,
|
|
128
|
+
size: 10,
|
|
129
|
+
className: "star-button"
|
|
130
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonV.ButtonV2, {
|
|
131
|
+
borderType: "circle",
|
|
132
|
+
type: "whiteS2",
|
|
133
|
+
icon: _freeSolidSvgIcons.faCartPlus,
|
|
134
|
+
size: 10,
|
|
135
|
+
className: "star-button"
|
|
136
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_RatingStars.RatingStars, {
|
|
137
|
+
ratingValue: 4
|
|
138
|
+
})]
|
|
139
|
+
}) : catalogs && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
140
|
+
className: "retailers-and-user",
|
|
141
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
142
|
+
className: "retailers-container",
|
|
143
|
+
children: catalogs.leftSide
|
|
144
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
145
|
+
className: "users-container",
|
|
146
|
+
children: catalogs.rightSide
|
|
147
|
+
})]
|
|
148
|
+
})]
|
|
149
|
+
});
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
exports.GridItem = GridItem;
|
|
@@ -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: 175px;\n border: 1px solid #f0f0f0;\n position: relative;\n height: fit-content;\n\n .chk-container {\n position: absolute;\n top: 5px;\n left: 5px;\n z-index: 5;\n height: 16px;\n }\n\n .data-body {\n padding: 10px;\n border-bottom: 1px solid #f0f0f0;\n\n & > h3,\n & > p {\n color: #262626;\n font-family: ", ";\n font-size: 12px;\n line-height: 16px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n\n & + p {\n margin-top: 5px;\n }\n }\n p {\n font-size: 10px;\n line-height: 12px;\n color: #808080;\n }\n }\n\n .status-slider {\n display: flex;\n padding: 5px 10px;\n overflow: auto;\n border-bottom: 1px solid #f0f0f0;\n flex-wrap: nowrap;\n\n .status-element {\n display: flex;\n\n .srv-name {\n background-color: #808080;\n padding: 0 10px;\n border-radius: 5px;\n p {\n font-family: ", ";\n font-size: 12px;\n line-height: 20px;\n font-weight: 700;\n color: #fff;\n }\n }\n }\n\n * + * {\n margin-left: 10px;\n }\n }\n\n .cart-and-raiting,\n .retailers-and-user {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 5px 10px;\n .star-button {\n button {\n padding: 3px;\n color: transparent;\n -webkit-text-stroke: 1px #808080;\n }\n }\n }\n\n .retailers-and-user {\n padding: 0;\n > * {\n flex: 1 0 50%;\n display: flex;\n padding: 5px;\n height: 36px;\n }\n .retailers-container {\n border-right: 1px solid #f0f0f0;\n }\n }\n\n &:hover {\n cursor: pointer;\n box-shadow: 1px 2px 5px black;\n }\n"])), _variables.FontFamily.Lato, _variables.FontFamily.AvenirNext);
|
|
19
|
+
|
|
20
|
+
exports.Container = Container;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ColumnItem = void 0;
|
|
7
|
+
|
|
8
|
+
var _styles = require("./styles");
|
|
9
|
+
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
|
|
12
|
+
var ColumnItem = function ColumnItem(_ref) {
|
|
13
|
+
var name = _ref.name,
|
|
14
|
+
flex = _ref.flex,
|
|
15
|
+
minWidth = _ref.minWidth;
|
|
16
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Column, {
|
|
17
|
+
flex: flex,
|
|
18
|
+
minWidth: minWidth,
|
|
19
|
+
children: name
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
exports.ColumnItem = ColumnItem;
|