contentoh-components-library 8.0.0 → 11.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/ActivedFilter/ActivedFilter.stories.js +7 -1
- package/dist/components/atoms/ActivedFilter/index.js +12 -4
- package/dist/components/atoms/AsignationOption/AsignationOptions.stories.js +7 -1
- package/dist/components/atoms/AsignationOption/index.js +29 -22
- package/dist/components/atoms/AtomList/AtomList.stories.js +7 -1
- package/dist/components/atoms/AtomList/index.js +14 -9
- package/dist/components/atoms/Avatar/AsignationImage.stories.js +7 -1
- package/dist/components/atoms/Avatar/index.js +11 -8
- package/dist/components/atoms/Card/Card.stories.js +7 -1
- package/dist/components/atoms/Card/index.js +8 -4
- package/dist/components/atoms/CheckBox/CheckBox.stories.js +7 -1
- package/dist/components/atoms/CheckBox/index.js +16 -12
- package/dist/components/atoms/Commentary/index.js +7 -1
- package/dist/components/atoms/CustomerTypeImage/CustomerTypeImage.stories.js +7 -1
- package/dist/components/atoms/CustomerTypeImage/index.js +8 -6
- package/dist/components/atoms/DropDownButton/DropDownButton.stories.js +7 -1
- package/dist/components/atoms/DropDownButton/index.js +9 -6
- package/dist/components/atoms/EditField/EditField.stories.js +7 -1
- package/dist/components/atoms/EditField/index.js +17 -10
- package/dist/components/atoms/FeatureTag/FeatureTag.stories.js +7 -1
- package/dist/components/atoms/FeatureTag/index.js +11 -5
- package/dist/components/atoms/GeneralButton/GeneralButton.stories.js +7 -1
- package/dist/components/atoms/GeneralButton/index.js +13 -7
- package/dist/components/atoms/GeneralInput/GeneralInput.stories.js +7 -1
- package/dist/components/atoms/GeneralInput/index.js +21 -18
- package/dist/components/atoms/GeneralTextBox/GeneralTextBox.stories.js +7 -1
- package/dist/components/atoms/GeneralTextBox/index.js +12 -7
- package/dist/components/atoms/GenericModal/GenericModal.stories.js +46 -59
- package/dist/components/atoms/GenericModal/index.js +12 -7
- package/dist/components/atoms/GradientPanel/GradientPanel.stories.js +85 -80
- package/dist/components/atoms/GradientPanel/index.js +11 -7
- package/dist/components/atoms/Graphic/Graphic.stories.js +7 -1
- package/dist/components/atoms/Graphic/index.js +9 -5
- package/dist/components/atoms/Input/index.js +14 -7
- package/dist/components/atoms/LabelToInput/index.js +19 -13
- package/dist/components/atoms/LoadImageMenu/LoadImageMenu.stories.js +7 -1
- package/dist/components/atoms/LoadImageMenu/index.js +33 -22
- package/dist/components/atoms/LogoImage/LogoImage.stories.js +7 -1
- package/dist/components/atoms/LogoImage/index.js +8 -6
- package/dist/components/atoms/MenuNotification/MenuNotification.stories.js +7 -1
- package/dist/components/atoms/MenuNotification/index.js +21 -15
- package/dist/components/atoms/MenuProfile/MenuProfile.stories.js +7 -1
- package/dist/components/atoms/MenuProfile/index.js +25 -15
- package/dist/components/atoms/Notification/Notification.stories.js +5 -1
- package/dist/components/atoms/Notification/index.js +15 -9
- package/dist/components/atoms/Percent/Percent.stories.js +7 -1
- package/dist/components/atoms/Percent/index.js +21 -14
- package/dist/components/atoms/PriorityFlag/PriorityFlag.stories.js +7 -1
- package/dist/components/atoms/PriorityFlag/index.js +8 -4
- package/dist/components/atoms/ProductImage/ProductImage.stories.js +7 -1
- package/dist/components/atoms/ProductImage/index.js +11 -8
- package/dist/components/atoms/ProgressBar/ProgressBar.stories.js +7 -1
- package/dist/components/atoms/ProgressBar/index.js +8 -3
- package/dist/components/atoms/ScreenHeader/ScreenHeader.stories.js +7 -1
- package/dist/components/atoms/ScreenHeader/index.js +9 -3
- package/dist/components/atoms/Select/index.js +25 -20
- package/dist/components/atoms/SideMenuButton/SideMenuButton.stories.js +5 -1
- package/dist/components/atoms/SideMenuButton/index.js +10 -4
- package/dist/components/atoms/StatusTag/StatusTag.stories.js +7 -1
- package/dist/components/atoms/StatusTag/index.js +8 -3
- package/dist/components/atoms/TabSection/TabSection.stories.js +7 -1
- package/dist/components/atoms/TabSection/index.js +8 -3
- package/dist/components/atoms/ValidationPanel/ValidationPanel.stories.js +7 -1
- package/dist/components/atoms/ValidationPanel/index.js +39 -27
- package/dist/components/molecules/AddProvidersAndProducts/AddProvidersAndProducts.stories.js +5 -1
- package/dist/components/molecules/AddProvidersAndProducts/index.js +18 -12
- package/dist/components/molecules/AssignedWork/AssignedWork.stories.js +5 -1
- package/dist/components/molecules/AssignedWork/index.js +36 -30
- package/dist/components/molecules/AvatarAndValidation/AvatarAndValidation.stories.js +7 -1
- package/dist/components/molecules/AvatarAndValidation/index.js +22 -17
- package/dist/components/molecules/EditionActiveImage/EditionActiveImage.stories.js +7 -1
- package/dist/components/molecules/EditionActiveImage/index.js +14 -10
- package/dist/components/molecules/FeaturesBar/FeaturesBar.stories.js +7 -1
- package/dist/components/molecules/FeaturesBar/index.js +11 -9
- package/dist/components/molecules/GalleryElement/GalleryElement.stories.js +7 -1
- package/dist/components/molecules/GalleryElement/index.js +69 -55
- package/dist/components/molecules/GalleryHeader/GalleryHeader.stories.js +7 -1
- package/dist/components/molecules/GalleryHeader/index.js +28 -15
- package/dist/components/molecules/HeaderTop/HeaderTop.stories.js +7 -1
- package/dist/components/molecules/HeaderTop/index.js +10 -7
- package/dist/components/molecules/ImageSelector/ImageSelector.stories.js +7 -1
- package/dist/components/molecules/ImageSelector/index.js +15 -13
- package/dist/components/molecules/ParentComponent/ParentComponent.stories.js +10 -2
- package/dist/components/molecules/ParentComponent/index.js +9 -5
- package/dist/components/molecules/PayMethod/PayMethod.stories.js +7 -1
- package/dist/components/molecules/PayMethod/index.js +38 -33
- package/dist/components/molecules/PlanSelection/PlanSelection.stories.js +7 -1
- package/dist/components/molecules/PlanSelection/index.js +14 -11
- package/dist/components/molecules/ProductNameHeader/ProductNameHeader.stories.js +7 -1
- package/dist/components/molecules/ProductNameHeader/index.js +18 -14
- package/dist/components/molecules/ProductNotification/ProductNotification.stories.js +7 -1
- package/dist/components/molecules/ProductNotification/index.js +12 -9
- package/dist/components/molecules/ProfileHeader/ProfileHeader.stories.js +5 -1
- package/dist/components/molecules/ProfileHeader/index.js +21 -15
- package/dist/components/molecules/RetailerSelector/RetailerSelector.stories.js +7 -1
- package/dist/components/molecules/RetailerSelector/index.js +27 -24
- package/dist/components/molecules/SidebarNotification/SidebarNotification.stories.js +5 -1
- package/dist/components/molecules/SidebarNotification/index.js +43 -37
- package/dist/components/molecules/StatusAsignationInfo/StatusAsignationInfo.stories.js +7 -1
- package/dist/components/molecules/StatusAsignationInfo/index.js +104 -88
- package/dist/components/molecules/TableHeader/TableHeader.stories.js +7 -1
- package/dist/components/molecules/TableHeader/index.js +12 -8
- package/dist/components/molecules/TableRow/TableRow.stories.js +7 -1
- package/dist/components/molecules/TableRow/index.js +11 -7
- package/dist/components/molecules/TabsMenu/TabsMenu.stories.js +7 -1
- package/dist/components/molecules/TabsMenu/index.js +13 -10
- package/dist/components/molecules/TagAndInput/TagAndInput.stories.js +7 -1
- package/dist/components/molecules/TagAndInput/index.js +24 -22
- package/dist/components/organisms/FullProductNameHeader/FullProductNameHeader.stories.js +7 -1
- package/dist/components/organisms/FullProductNameHeader/index.js +35 -30
- package/dist/components/organisms/FullTabsMenu/FullTabsMenu.stories.js +7 -1
- package/dist/components/organisms/FullTabsMenu/index.js +19 -15
- package/dist/components/organisms/Fullplan/FullPlan.stories.js +7 -1
- package/dist/components/organisms/Fullplan/index.js +23 -15
- package/dist/components/organisms/ImageDataTable/ImageDataTable.stories.js +7 -1
- package/dist/components/organisms/ImageDataTable/index.js +74 -61
- package/dist/components/organisms/ImagePreviewer/ImagePreviewer.stories.js +7 -1
- package/dist/components/organisms/ImagePreviewer/index.js +12 -8
- package/dist/components/organisms/ImagesGroup/index.js +5 -1
- package/dist/components/organisms/InputGroup/InputGroup.stories.js +7 -1
- package/dist/components/organisms/InputGroup/index.js +39 -37
- package/dist/components/organisms/ProductImageModal/ProductImageModal.stories.js +7 -1
- package/dist/components/organisms/ProductImageModal/index.js +49 -40
- package/dist/components/pages/CustomerLogin/CustomerLogin.stories.js +52 -47
- package/dist/components/pages/CustomerLogin/index.js +18 -12
- package/dist/components/pages/CustomerPayMethod/CustomerPayMethod.stories.js +36 -28
- package/dist/components/pages/CustomerPayMethod/index.js +18 -12
- package/dist/components/pages/CustomerType/CustomerType.stories.js +21 -22
- package/dist/components/pages/CustomerType/index.js +18 -12
- package/dist/components/pages/OnboardPlan/OnboardPlan.stories.js +12 -9
- package/dist/components/pages/OnboardPlan/index.js +18 -12
- package/dist/components/pages/RetailerPlan/RetailerPlan.stories.js +13 -10
- package/dist/components/pages/RetailerPlan/index.js +18 -12
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +7 -1
- package/dist/components/pages/RetailerProductEdition/index.js +129 -110
- package/dist/global-files/fonts.css +45 -0
- package/dist/global-files/global-styles.css +41 -0
- package/package.json +8 -1
- package/src/components/atoms/GeneralButton/index.js +1 -0
|
@@ -9,21 +9,27 @@ var _styles = require("./styles");
|
|
|
9
9
|
|
|
10
10
|
var _GradientPanel = require("../../atoms/GradientPanel");
|
|
11
11
|
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
|
|
12
14
|
var OnboardPlan = function OnboardPlan(_ref) {
|
|
13
15
|
var leftPanel = _ref.leftPanel,
|
|
14
16
|
planContainerData = _ref.planContainerData;
|
|
15
|
-
return /*#__PURE__*/
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
17
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
18
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
19
|
+
className: "left",
|
|
20
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_GradientPanel.GradientPanel, {
|
|
21
|
+
componentsArray: leftPanel.componentsArray,
|
|
22
|
+
panelType: "home-panel"
|
|
23
|
+
})
|
|
24
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
25
|
+
className: "rigth",
|
|
26
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_GradientPanel.GradientPanel, {
|
|
27
|
+
panelColor: true,
|
|
28
|
+
componentsArray: planContainerData.componentsArray,
|
|
29
|
+
panelType: "home-plan"
|
|
30
|
+
})
|
|
31
|
+
})]
|
|
32
|
+
});
|
|
27
33
|
};
|
|
28
34
|
|
|
29
35
|
exports.OnboardPlan = OnboardPlan;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
8
|
exports.default = exports.RetailerPlanDefault = void 0;
|
|
7
9
|
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
+
|
|
8
12
|
var _index = require("./index");
|
|
9
13
|
|
|
10
14
|
var _ScreenHeader = require("../../atoms/ScreenHeader");
|
|
@@ -15,6 +19,8 @@ var _variables = require("../../../global-files/variables");
|
|
|
15
19
|
|
|
16
20
|
var _Fullplan = require("../../organisms/Fullplan");
|
|
17
21
|
|
|
22
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
|
+
|
|
18
24
|
var _default = {
|
|
19
25
|
title: "Components/pages/RetailerPlan",
|
|
20
26
|
Component: _index.RetailerPlan
|
|
@@ -22,25 +28,23 @@ var _default = {
|
|
|
22
28
|
exports.default = _default;
|
|
23
29
|
|
|
24
30
|
var Template = function Template(args) {
|
|
25
|
-
return /*#__PURE__*/
|
|
31
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.RetailerPlan, (0, _objectSpread2.default)({}, args));
|
|
26
32
|
};
|
|
27
33
|
|
|
28
34
|
var RetailerPlanDefault = Template.bind({});
|
|
29
35
|
exports.RetailerPlanDefault = RetailerPlanDefault;
|
|
30
36
|
RetailerPlanDefault.args = {
|
|
31
37
|
retailerLeft: {
|
|
32
|
-
componentsArray: [/*#__PURE__*/
|
|
33
|
-
key: "1",
|
|
38
|
+
componentsArray: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
34
39
|
fontFamily: _variables.FontFamily.Raleway_600,
|
|
35
40
|
color: _variables.GlobalColors.white,
|
|
36
41
|
text: "Benficios de crear productos"
|
|
37
|
-
}), /*#__PURE__*/
|
|
38
|
-
key: "2",
|
|
42
|
+
}, "1"), /*#__PURE__*/(0, _jsxRuntime.jsx)(_AtomList.AtomList, {
|
|
39
43
|
content: ["Crea productos", "Solicita actualización", "Revisa, valida o rechaza productos", "Comparte con colaboradores"]
|
|
40
|
-
})]
|
|
44
|
+
}, "2")]
|
|
41
45
|
},
|
|
42
46
|
planRetailerData: {
|
|
43
|
-
componentsArray: [/*#__PURE__*/
|
|
47
|
+
componentsArray: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Fullplan.FullPlan, {
|
|
44
48
|
title: "Elige el n\xFAmero de proveedores",
|
|
45
49
|
textGeneral: "Bienvido a nuestra plataforma de cadena, para continuar elige el n\xFAmero de proveedores que tiene tu cadena",
|
|
46
50
|
containerData: [{
|
|
@@ -52,8 +56,7 @@ RetailerPlanDefault.args = {
|
|
|
52
56
|
}, {
|
|
53
57
|
number: "+3000",
|
|
54
58
|
name: "Proveedores"
|
|
55
|
-
}]
|
|
56
|
-
|
|
57
|
-
})]
|
|
59
|
+
}]
|
|
60
|
+
}, "1")]
|
|
58
61
|
}
|
|
59
62
|
};
|
|
@@ -11,21 +11,27 @@ var _GradientPanel = require("../../atoms/GradientPanel");
|
|
|
11
11
|
|
|
12
12
|
var _Fullplan = require("../../organisms/Fullplan");
|
|
13
13
|
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
|
|
14
16
|
var RetailerPlan = function RetailerPlan(_ref) {
|
|
15
17
|
var retailerLeft = _ref.retailerLeft,
|
|
16
18
|
planRetailerData = _ref.planRetailerData;
|
|
17
|
-
return /*#__PURE__*/
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
19
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
20
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
21
|
+
className: "left-retailer",
|
|
22
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_GradientPanel.GradientPanel, {
|
|
23
|
+
componentsArray: retailerLeft.componentsArray,
|
|
24
|
+
panelType: "home-panel"
|
|
25
|
+
})
|
|
26
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
27
|
+
className: "righ-retailer",
|
|
28
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_GradientPanel.GradientPanel, {
|
|
29
|
+
panelColor: true,
|
|
30
|
+
componentsArray: planRetailerData.componentsArray,
|
|
31
|
+
panelType: "home-plan"
|
|
32
|
+
})
|
|
33
|
+
})]
|
|
34
|
+
});
|
|
29
35
|
};
|
|
30
36
|
|
|
31
37
|
exports.RetailerPlan = RetailerPlan;
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
8
|
exports.default = exports.RetailerProductEditionDefault = void 0;
|
|
7
9
|
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
+
|
|
8
12
|
var _index = require("./index");
|
|
9
13
|
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
|
|
10
16
|
var _default = {
|
|
11
17
|
title: "Components/pages/RetailerProductEdition",
|
|
12
18
|
component: _index.RetailerProductEdition
|
|
@@ -14,7 +20,7 @@ var _default = {
|
|
|
14
20
|
exports.default = _default;
|
|
15
21
|
|
|
16
22
|
var Template = function Template(args) {
|
|
17
|
-
return /*#__PURE__*/
|
|
23
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.RetailerProductEdition, (0, _objectSpread2.default)({}, args));
|
|
18
24
|
};
|
|
19
25
|
|
|
20
26
|
var RetailerProductEditionDefault = Template.bind({});
|
|
@@ -61,6 +61,8 @@ var _GeneralButton = require("../../atoms/GeneralButton");
|
|
|
61
61
|
|
|
62
62
|
var _Commentary = require("../../atoms/Commentary");
|
|
63
63
|
|
|
64
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
65
|
+
|
|
64
66
|
var reducerImages = function reducerImages(state, action) {
|
|
65
67
|
var values = state.values,
|
|
66
68
|
attrForImgs = state.attrForImgs;
|
|
@@ -492,8 +494,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
492
494
|
};
|
|
493
495
|
});
|
|
494
496
|
return images === null || images === void 0 ? void 0 : (_images$values = images.values) === null || _images$values === void 0 ? void 0 : _images$values.map(function (image, index) {
|
|
495
|
-
return /*#__PURE__*/
|
|
496
|
-
key: index,
|
|
497
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_GalleryElement.GalleryElement, {
|
|
497
498
|
image: image,
|
|
498
499
|
gridLayout: imageLayout,
|
|
499
500
|
id: "gallery-element-" + index,
|
|
@@ -502,7 +503,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
502
503
|
imagePackagingType: imagePackagingType,
|
|
503
504
|
imageInputs: imageInputs,
|
|
504
505
|
changeImage: setImages
|
|
505
|
-
});
|
|
506
|
+
}, index);
|
|
506
507
|
});
|
|
507
508
|
};
|
|
508
509
|
|
|
@@ -1056,113 +1057,131 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1056
1057
|
// }
|
|
1057
1058
|
// getComments(concept);
|
|
1058
1059
|
}, [activeTab]);
|
|
1059
|
-
return /*#__PURE__*/
|
|
1060
|
-
headerTop: headerTop
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1060
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
1061
|
+
headerTop: headerTop,
|
|
1062
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_HeaderTop.HeaderTop, {
|
|
1063
|
+
setHeaderTop: setHeaderTop
|
|
1064
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
1065
|
+
className: "data-container",
|
|
1066
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
1067
|
+
className: "image-data-panel",
|
|
1068
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ImagePreviewer.ImagePreviewer, {
|
|
1069
|
+
activeImage: images !== null && images !== void 0 && images.values ? images === null || images === void 0 ? void 0 : images.values[activeImage] : {},
|
|
1070
|
+
imagesArray: images,
|
|
1071
|
+
setActiveImage: setActiveImage,
|
|
1072
|
+
setShowModal: setShowModal
|
|
1073
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ImageDataTable.ImageDataTable, {
|
|
1074
|
+
lists: images,
|
|
1075
|
+
activeImage: images !== null && images !== void 0 && images.values ? images === null || images === void 0 ? void 0 : images.values[activeImage] : {},
|
|
1076
|
+
retailerSelected: activeRetailer.id,
|
|
1077
|
+
setImages: setImages,
|
|
1078
|
+
assignationsImages: [productSelected.article.id_images_especialist, productSelected.article.id_images_facilitator],
|
|
1079
|
+
imagesStatus: productSelected === null || productSelected === void 0 ? void 0 : productSelected.images_status
|
|
1080
|
+
})]
|
|
1081
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
1082
|
+
className: "product-information",
|
|
1083
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_FullProductNameHeader.FullProductNameHeader, {
|
|
1084
|
+
headerData: product,
|
|
1085
|
+
percent: activePercentage,
|
|
1086
|
+
activeRetailer: activeRetailer,
|
|
1087
|
+
setActiveRetailer: setActiveRetailer,
|
|
1088
|
+
approveRejectButtons: approveRejectButtons,
|
|
1089
|
+
sendToFacilitator: sendToFacilitator,
|
|
1090
|
+
auditorAssigned: auditorAssigned,
|
|
1091
|
+
userAssigned: userAssigned(activeTab, "facilitator")
|
|
1092
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_FullTabsMenu.FullTabsMenu, {
|
|
1093
|
+
tabsSections: tabsSections,
|
|
1094
|
+
status: {
|
|
1095
|
+
Descripción: (_servicesData$filter$ = servicesData.filter(function (service) {
|
|
1096
|
+
return service.id_retailer === (activeRetailer === null || activeRetailer === void 0 ? void 0 : activeRetailer.id) && service.service === "description";
|
|
1097
|
+
})[0]) === null || _servicesData$filter$ === void 0 ? void 0 : _servicesData$filter$.status,
|
|
1098
|
+
"Ficha técnica": (_servicesData$filter$2 = servicesData.filter(function (service) {
|
|
1099
|
+
return service.id_retailer === (activeRetailer === null || activeRetailer === void 0 ? void 0 : activeRetailer.id) && service.service === "datasheet";
|
|
1100
|
+
})[0]) === null || _servicesData$filter$2 === void 0 ? void 0 : _servicesData$filter$2.status,
|
|
1101
|
+
Imágenes: product === null || product === void 0 ? void 0 : product.images_status
|
|
1102
|
+
},
|
|
1103
|
+
profileImage: productData.asigned,
|
|
1104
|
+
activeTab: activeTab,
|
|
1105
|
+
setActiveTab: setActiveTab,
|
|
1106
|
+
setImageLayout: setImageLayout,
|
|
1107
|
+
saveDescriptions: saveDescriptions,
|
|
1108
|
+
saveDatasheets: saveDatasheets,
|
|
1109
|
+
updateImages: updateImages,
|
|
1110
|
+
assignations: {
|
|
1111
|
+
Descripción: [productSelected.article.id_description_especialist, productSelected.article.id_description_facilitator],
|
|
1112
|
+
"Ficha técnica": [productSelected.article.id_datasheet_especialist, productSelected.article.id_datasheet_facilitator],
|
|
1113
|
+
Imágenes: [productSelected.article.id_images_especialist, productSelected.article.id_images_facilitator]
|
|
1114
|
+
}
|
|
1115
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
1116
|
+
className: "services-information-container " + (imageLayout && activeTab === "Imágenes" ? "image-services" : ""),
|
|
1117
|
+
children: [!imageLayout && /*#__PURE__*/(0, _jsxRuntime.jsx)(_GalleryHeader.GalleryHeader, {}), activeTab === "Ficha técnica" && ((product === null || product === void 0 ? void 0 : (_product$services = product.services) === null || _product$services === void 0 ? void 0 : _product$services.datasheets) === 1 ? (_datasheets$ = datasheets[0]) === null || _datasheets$ === void 0 ? void 0 : (_datasheets$$data = _datasheets$.data) === null || _datasheets$$data === void 0 ? void 0 : _datasheets$$data.map(function (dataGroup, index) {
|
|
1118
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_InputGroup.InputGroup, {
|
|
1119
|
+
articleId: productSelected.article.id_article,
|
|
1120
|
+
version: version,
|
|
1121
|
+
activeSection: activeTab,
|
|
1122
|
+
inputGroup: dataGroup,
|
|
1123
|
+
dataInputs: datasheets[1],
|
|
1124
|
+
updatedDatasheets: updatedDatasheets,
|
|
1125
|
+
setUpdatedDatasheets: setUpdatedDatasheets
|
|
1126
|
+
}, index + "-" + activeRetailer.name);
|
|
1127
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
1128
|
+
children: "no tienes este servicio"
|
|
1129
|
+
})), activeTab === "Descripción" && ((product === null || product === void 0 ? void 0 : (_product$services2 = product.services) === null || _product$services2 === void 0 ? void 0 : _product$services2.descriptions) === 1 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_InputGroup.InputGroup, {
|
|
1130
|
+
activeSection: activeTab,
|
|
1131
|
+
inputGroup: descriptions[0],
|
|
1132
|
+
updatedDescriptions: updatedDescriptions,
|
|
1133
|
+
setUpdatedDescriptions: setUpdatedDescriptions,
|
|
1134
|
+
articleId: articleId,
|
|
1135
|
+
version: version,
|
|
1136
|
+
dinamicHeight: true
|
|
1137
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
1138
|
+
children: "no tienes este servicio"
|
|
1139
|
+
})), activeTab === "Imágenes" && ((product === null || product === void 0 ? void 0 : (_product$services3 = product.services) === null || _product$services3 === void 0 ? void 0 : _product$services3.images) === 1 ? /*#__PURE__*/(0, _jsxRuntime.jsx)("section", {
|
|
1140
|
+
className: "container",
|
|
1141
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", (0, _objectSpread2.default)((0, _objectSpread2.default)({}, getRootProps({
|
|
1142
|
+
className: "dropzone"
|
|
1143
|
+
})), {}, {
|
|
1144
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", (0, _objectSpread2.default)({}, getInputProps())), /*#__PURE__*/(0, _jsxRuntime.jsx)("aside", {
|
|
1145
|
+
children: thumbs()
|
|
1146
|
+
})]
|
|
1147
|
+
}))
|
|
1148
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
1149
|
+
children: "no tienes este servicio"
|
|
1150
|
+
}))]
|
|
1151
|
+
}), (userAssigned(activeTab, "especialist" || "facilitator") || auditorAssigned()) && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
1152
|
+
className: "commentary-box",
|
|
1153
|
+
children: !comments[activeTab] ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
1154
|
+
className: "commentary",
|
|
1155
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.TagAndInput, {
|
|
1156
|
+
label: "Caja de Comentario",
|
|
1157
|
+
inputType: "textarea",
|
|
1158
|
+
inputCols: 80,
|
|
1159
|
+
inputRows: 4
|
|
1160
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
1161
|
+
className: "buttons-box",
|
|
1162
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
1163
|
+
buttonType: "general-transparent-button",
|
|
1164
|
+
label: "Enviar comentario"
|
|
1165
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
1166
|
+
buttonType: requiredNull !== 0 || !specialistValid(activeTab) || !versionMatch() ? "general-button-disabled" : "general-green-button",
|
|
1167
|
+
label: "Enviar evaluación",
|
|
1168
|
+
onClick: function onClick() {
|
|
1169
|
+
return sendToFacilitator();
|
|
1170
|
+
}
|
|
1171
|
+
})]
|
|
1172
|
+
})]
|
|
1173
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_Commentary.Commentary, {
|
|
1174
|
+
comment: comments[activeTab].message
|
|
1175
|
+
})
|
|
1176
|
+
})]
|
|
1177
|
+
})]
|
|
1178
|
+
}), showModal && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ProductImageModal.ProductImageModal, {
|
|
1179
|
+
images: images,
|
|
1180
|
+
setShowModal: setShowModal,
|
|
1181
|
+
sendToFacilitator: sendToFacilitator,
|
|
1182
|
+
approveRejectButtons: approveRejectButtons
|
|
1183
|
+
})]
|
|
1184
|
+
});
|
|
1166
1185
|
};
|
|
1167
1186
|
|
|
1168
1187
|
exports.RetailerProductEdition = RetailerProductEdition;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: "Avenir Next";
|
|
3
|
+
src: url("../assets/fonts/avenirnext/AvenirNextLTPro-Regular.otf");
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
@font-face {
|
|
7
|
+
font-family: "Lato";
|
|
8
|
+
src: url("../assets/fonts/lato/Lato-Regular.ttf");
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@font-face {
|
|
12
|
+
font-family: "Raleway";
|
|
13
|
+
src: url("../assets/fonts/raleway/Raleway-Regular.ttf");
|
|
14
|
+
font-weight: 400;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@font-face {
|
|
18
|
+
font-family: "Raleway-500";
|
|
19
|
+
src: url("../assets/fonts/raleway/Raleway-Medium.ttf");
|
|
20
|
+
font-weight: 500;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@font-face {
|
|
24
|
+
font-family: "Raleway-600";
|
|
25
|
+
src: url("../assets/fonts/raleway/Raleway-SemiBold.ttf");
|
|
26
|
+
font-weight: 600;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@font-face {
|
|
30
|
+
font-family: "Raleway-700";
|
|
31
|
+
src: url("../assets/fonts/raleway/Raleway-Bold.ttf");
|
|
32
|
+
font-weight: 700;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@font-face {
|
|
36
|
+
font-family: "Raleway-800";
|
|
37
|
+
src: url("../assets/fonts/raleway/Raleway-ExtraBold.ttf");
|
|
38
|
+
font-weight: 800;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@font-face {
|
|
42
|
+
font-family: "Raleway-900";
|
|
43
|
+
src: url("../assets/fonts/raleway/Raleway-Black.ttf");
|
|
44
|
+
font-weight: 900;
|
|
45
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
@import "./fonts.css";
|
|
2
|
+
|
|
3
|
+
*,
|
|
4
|
+
*::after,
|
|
5
|
+
*::before {
|
|
6
|
+
padding: 0;
|
|
7
|
+
margin: 0;
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
body.sb-main-padded.sb-show-main {
|
|
12
|
+
padding: 0;
|
|
13
|
+
height: 100vh;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.sb-main-padded.sb-show-main #root {
|
|
18
|
+
height: 100%;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* width */
|
|
22
|
+
::-webkit-scrollbar {
|
|
23
|
+
width: 6px;
|
|
24
|
+
height: 6px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* Track */
|
|
28
|
+
::-webkit-scrollbar-track {
|
|
29
|
+
background: white;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* Handle */
|
|
33
|
+
::-webkit-scrollbar-thumb {
|
|
34
|
+
border-radius: 15px;
|
|
35
|
+
background: #f0eef2;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* Handle on hover */
|
|
39
|
+
::-webkit-scrollbar-thumb:hover {
|
|
40
|
+
background: #d4d1d7;
|
|
41
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contentoh-components-library",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@babel/runtime": "^7.17.2",
|
|
6
6
|
"@storybook/addon-postcss": "^2.0.0",
|
|
@@ -52,6 +52,13 @@
|
|
|
52
52
|
{
|
|
53
53
|
"absoluteRuntime": false
|
|
54
54
|
}
|
|
55
|
+
],
|
|
56
|
+
"@babel/preset-env",
|
|
57
|
+
[
|
|
58
|
+
"@babel/preset-react",
|
|
59
|
+
{
|
|
60
|
+
"runtime": "automatic"
|
|
61
|
+
}
|
|
55
62
|
]
|
|
56
63
|
]
|
|
57
64
|
},
|