contentoh-components-library 21.1.24 → 21.1.27

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.
Files changed (66) hide show
  1. package/dist/components/atoms/CheckBox/styles.js +1 -1
  2. package/dist/components/atoms/Percent/Percent.stories.js +39 -0
  3. package/dist/components/atoms/Percent/index.js +39 -0
  4. package/dist/components/atoms/Percent/styles.js +20 -0
  5. package/dist/components/atoms/SliderToolTip/SliderToolTip.stories.js +13 -67
  6. package/dist/components/atoms/SliderToolTip/index.js +134 -64
  7. package/dist/components/atoms/SliderToolTip/styles.js +2 -2
  8. package/dist/components/atoms/ValidationPanel/index.js +27 -17
  9. package/dist/components/atoms/ValidationPanel/styles.js +1 -1
  10. package/dist/components/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +1 -44
  11. package/dist/components/atoms/VerticalSideMenuMainPage/index.js +48 -49
  12. package/dist/components/atoms/VerticalSideMenuMainPage/styles.js +3 -12
  13. package/dist/components/molecules/AvatarAndValidation/index.js +8 -2
  14. package/dist/components/molecules/StatusAsignationInfo/index.js +1 -35
  15. package/dist/components/molecules/TextAndGradient/TextAndGradient.stories.js +31 -0
  16. package/dist/components/molecules/TextAndGradient/index.js +36 -0
  17. package/dist/components/molecules/TextAndGradient/styles.js +18 -0
  18. package/dist/components/organisms/FullProductNameHeader/index.js +8 -2
  19. package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +124 -88
  20. package/dist/components/pages/ProviderProductEdition/index.js +119 -23
  21. package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +58 -51
  22. package/dist/components/pages/RetailerProductEdition/index.js +27 -28
  23. package/dist/global-files/data.js +21 -12
  24. package/dist/global-files/global-styles.css +1 -0
  25. package/package.json +1 -1
  26. package/src/components/atoms/CheckBox/styles.js +1 -0
  27. package/src/components/atoms/SliderToolTip/SliderToolTip.stories.js +11 -77
  28. package/src/components/atoms/SliderToolTip/index.js +154 -91
  29. package/src/components/atoms/SliderToolTip/styles.js +22 -48
  30. package/src/components/atoms/ValidationPanel/index.js +25 -14
  31. package/src/components/atoms/ValidationPanel/styles.js +6 -2
  32. package/src/components/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +1 -24
  33. package/src/components/atoms/VerticalSideMenuMainPage/index.js +30 -41
  34. package/src/components/atoms/VerticalSideMenuMainPage/styles.js +18 -70
  35. package/src/components/molecules/AvatarAndValidation/index.js +6 -0
  36. package/src/components/molecules/StatusAsignationInfo/index.js +0 -37
  37. package/src/components/organisms/FullProductNameHeader/index.js +6 -0
  38. package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +140 -89
  39. package/src/components/pages/ProviderProductEdition/index.js +79 -1
  40. package/src/components/pages/RegistrationLoginFirstStep/RegistrationLoginFirstStep.stories.js +17 -0
  41. package/src/components/pages/RegistrationLoginFirstStep/index.js +160 -0
  42. package/src/components/pages/RegistrationLoginFirstStep/styles.js +85 -0
  43. package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +59 -51
  44. package/src/components/pages/RetailerProductEdition/index.js +1 -1
  45. package/src/global-files/data.js +32 -20
  46. package/dist/assets/images/sliderToolTip/slide21.svg +0 -9
  47. package/dist/assets/images/sliderToolTip/slide22.svg +0 -9
  48. package/dist/assets/images/sliderToolTip/slide23.svg +0 -9
  49. package/dist/components/atoms/ListCommercialRetailers/ListCommercialRetailers.stories.js +0 -36
  50. package/dist/components/atoms/ListCommercialRetailers/index.js +0 -64
  51. package/dist/components/atoms/ListCommercialRetailers/styles.js +0 -20
  52. package/dist/components/atoms/MenuCommercialRetailers/MenuCommercialRetailers.stories.js +0 -37
  53. package/dist/components/atoms/MenuCommercialRetailers/index.js +0 -25
  54. package/dist/components/atoms/MenuCommercialRetailers/styles.js +0 -20
  55. package/dist/components/atoms/MenuProductImage/MenuProductImage.stories.js +0 -28
  56. package/dist/components/atoms/MenuProductImage/index.js +0 -88
  57. package/dist/components/atoms/MenuProductImage/styles.js +0 -20
  58. package/dist/components/molecules/ApproveRejetPanel/ApproveRejetPanel.stories.js +0 -25
  59. package/dist/components/molecules/ApproveRejetPanel/index.js +0 -49
  60. package/dist/components/molecules/ApproveRejetPanel/styles.js +0 -18
  61. package/dist/components/molecules/SignInLoginCreationApp/SignInLogin.stories.js +0 -28
  62. package/dist/components/molecules/SignInLoginCreationApp/index.js +0 -270
  63. package/dist/components/molecules/SignInLoginCreationApp/styles.js +0 -20
  64. package/src/assets/images/sliderToolTip/slide21.svg +0 -9
  65. package/src/assets/images/sliderToolTip/slide22.svg +0 -9
  66. package/src/assets/images/sliderToolTip/slide23.svg +0 -9
@@ -15,26 +15,32 @@ var _styles = require("./styles");
15
15
 
16
16
  var _iconLogoContentoh = _interopRequireDefault(require("../../../assets/images/verticalSideMenuMainPage/iconLogoContentoh.svg"));
17
17
 
18
+ var _iconProduct = _interopRequireDefault(require("../../../assets/images/verticalSideMenuMainPage/iconProduct.svg"));
19
+
20
+ var _iconGroup = _interopRequireDefault(require("../../../assets/images/verticalSideMenuMainPage/iconGroup.svg"));
21
+
18
22
  var _iconLogo = _interopRequireDefault(require("../../../assets/images/verticalSideMenuMainPage/iconLogo.svg"));
19
23
 
20
- var _openMenu = _interopRequireDefault(require("../../../assets/images/verticalSideMenuMainPage/openMenu.svg"));
24
+ var _iconSpeedometer = _interopRequireDefault(require("../../../assets/images/verticalSideMenuMainPage/iconSpeedometer.svg"));
21
25
 
22
- var _closeMenu = _interopRequireDefault(require("../../../assets/images/verticalSideMenuMainPage/closeMenu.svg"));
26
+ var _iconTask = _interopRequireDefault(require("../../../assets/images/verticalSideMenuMainPage/iconTask.svg"));
27
+
28
+ var _openMenu = _interopRequireDefault(require("../../../assets/images/verticalSideMenuMainPage/openMenu.svg"));
23
29
 
24
30
  var _react = _interopRequireWildcard(require("react"));
25
31
 
26
32
  var _jsxRuntime = require("react/jsx-runtime");
27
33
 
28
- var VerticalSideMenuMainPage = function VerticalSideMenuMainPage(_ref) {
29
- var menuoption = _ref.menuoption;
30
-
31
- var _useState = (0, _react.useState)(""),
34
+ var VerticalSideMenuMainPage = function VerticalSideMenuMainPage() {
35
+ var _useState = (0, _react.useState)(false),
32
36
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
33
37
  trueBar = _useState2[0],
34
38
  setTrueBar = _useState2[1];
35
39
 
40
+ var active = function active() {//document.getElementById("slidea1").style.border= "1px solid rgb(227, 58, 169)";
41
+ };
42
+
36
43
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
37
- className: trueBar,
38
44
  bar: trueBar,
39
45
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
40
46
  className: "navbar-top",
@@ -42,54 +48,47 @@ var VerticalSideMenuMainPage = function VerticalSideMenuMainPage(_ref) {
42
48
  src: trueBar ? _iconLogoContentoh.default : _iconLogo.default,
43
49
  alt: "Logo",
44
50
  className: "logo"
45
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
51
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
46
52
  className: "option",
47
- children: menuoption.map(function (item, index) {
48
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
49
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
50
- className: "option-link",
51
- exact: true,
52
- activeClassName: "active",
53
- to: menuoption[index].path,
54
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
55
- src: menuoption[index].icon,
56
- alt: menuoption[index].title,
57
- width: "25px"
58
- }), trueBar && /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
59
- children: menuoption[index].title
60
- })]
61
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
62
- className: "sub-option",
63
- children: menuoption[index].title !== "Productos" ? "" : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
64
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
65
- exact: true,
66
- activeClassName: "active",
67
- to: "/Dashboard",
68
- children: trueBar && /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
69
- children: "General"
70
- })
71
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
72
- exact: true,
73
- activeClassName: "active",
74
- to: "/AddProducts",
75
- children: trueBar && /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
76
- children: "Agregar Producto"
77
- })
78
- })]
79
- })
80
- })]
81
- });
82
- })
53
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
54
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
55
+ src: _iconSpeedometer.default,
56
+ alt: "Speed Meter",
57
+ width: "25px"
58
+ })
59
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
60
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
61
+ src: _iconProduct.default,
62
+ alt: "Focus Product",
63
+ width: "25px"
64
+ })
65
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
66
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
67
+ src: _iconGroup.default,
68
+ alt: "Group",
69
+ width: "25px"
70
+ })
71
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
72
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
73
+ src: _iconLogo.default,
74
+ alt: "Logo",
75
+ width: "25px"
76
+ })
77
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
78
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
79
+ src: _iconTask.default,
80
+ alt: "Task",
81
+ width: "25px"
82
+ })
83
+ })]
83
84
  })]
84
85
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
85
- className: "menu-bottom",
86
86
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
87
- src: trueBar ? _closeMenu.default : _openMenu.default,
87
+ src: _openMenu.default,
88
88
  alt: "Open Menu",
89
89
  onClick: function onClick() {
90
- {
91
- trueBar ? setTrueBar("") : setTrueBar("active");
92
- }
90
+ setTrueBar(true);
91
+ active();
93
92
  }
94
93
  })
95
94
  })]
@@ -13,21 +13,12 @@ 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 height: 100%;\n width: 58px;\n box-sizing: border-box;\n padding: 23px 10px 70px 10px;\n flex-direction: column;\n justify-content: space-between;\n overflow: auto;\n border-radius: 50px;\n background: linear-gradient(180deg, #e33aa9 0%, #3b1366 100%);\n scrollbar-width: none;\n display: flex;\n text-align: center;\n &.active {\n width: 200px;\n padding: 23px 10px 15px 10px;\n border-radius: 20px;\n }\n .navbar-top {\n .logo {\n & + * {\n margin-top: ", "%;\n }\n }\n .option {\n a {\n cursor: pointer;\n height: 38px;\n display: flex;\n justify-content: center;\n border-radius: ", "px;\n align-items: center;\n font-family: \"Raleway\";\n font-style: normal;\n font-weight: 400;\n font-size: 18px;\n line-height: 21px;\n letter-spacing: -0.015em;\n color: #fafafa;\n text-decoration: none;\n &.option-link {\n margin-top: 12px;\n }\n img {\n & + * {\n margin-left: 12px;\n }\n }\n &:hover {\n background: #e33aa9;\n }\n }\n .sub-option {\n display: flex;\n flex-direction: column;\n padding-left: ", "px;\n a {\n display: flex;\n justify-content: flex-start;\n text-decoration: none;\n position: relative;\n font-size: 13px;\n border-left: 1px solid #f0eef2;\n border-radius: 0;\n color: #f0eef2;\n padding-top: 20px;\n padding-left: 12px;\n height: 25px;\n &::before {\n border-left: 1px solid #e33aa9;\n width: 10px;\n content: \"\";\n border-radius: 50%;\n height: 10px;\n background-color: white;\n position: absolute;\n left: ", "%;\n bottom: 1%;\n }\n &:hover {\n background-color: transparent;\n }\n }\n & + * {\n margin-top: 12px;\n }\n }\n }\n }\n .menu-bottom {\n display: flex;\n justify-content: ", ";\n cursor: pointer;\n }\n"])), function (_ref) {
16
+ var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n height: 100%;\n width: ", "px;\n box-sizing: border-box;\n padding: 23px 10px 70px 10px;\n flex-direction: column;\n justify-content: space-between;\n overflow: auto;\n border-radius: ", "px;\n background: linear-gradient(180deg, #e33aa9 0%, #3b1366 100%);\n scrollbar-width: none;\n display: flex;\n text-align: center;\n img {\n cursor: pointer;\n width:\"25px\" !important;\n }\n .navbar-top {\n & + * {\n margin-top: 15px;\n }\n .option {\n div {\n height: 38px;\n display: flex;\n justify-content: center;\n border-radius: 100%;\n & + * {\n margin-top: 12px;\n }\n }\n div:hover {\n background: #e33aa9;\n }\n }\n .logo {\n cursor: default;\n & + * {\n margin-top: 225%;\n }\n }\n }\n"])), function (_ref) {
17
17
  var bar = _ref.bar;
18
- return bar === "" ? 345 : 50;
18
+ return bar ? 200 : 58;
19
19
  }, function (_ref2) {
20
20
  var bar = _ref2.bar;
21
- return bar ? 18 : 100;
22
- }, function (_ref3) {
23
- var bar = _ref3.bar;
24
- return bar ? 40 : 18;
25
- }, function (_ref4) {
26
- var bar = _ref4.bar;
27
- return bar ? -4 : -35;
28
- }, function (_ref5) {
29
- var bar = _ref5.bar;
30
- return bar ? "flex-end" : "center";
21
+ return bar ? 20 : 50;
31
22
  });
32
23
 
33
24
  exports.Container = Container;
@@ -29,7 +29,10 @@ var AvatarAndValidation = function AvatarAndValidation(_ref) {
29
29
  setActiveRetailer = _ref.setActiveRetailer,
30
30
  showValidationButtons = _ref.showValidationButtons,
31
31
  approve = _ref.approve,
32
- reject = _ref.reject;
32
+ reject = _ref.reject,
33
+ approveAll = _ref.approveAll,
34
+ rejectAll = _ref.rejectAll,
35
+ showApproveRejectAll = _ref.showApproveRejectAll;
33
36
 
34
37
  var _useState = (0, _react.useState)(false),
35
38
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
@@ -72,7 +75,10 @@ var AvatarAndValidation = function AvatarAndValidation(_ref) {
72
75
  setOptionClicked: setButtonType,
73
76
  setShowValidationPanel: setShowValidationPanel,
74
77
  approve: approve,
75
- reject: reject
78
+ reject: reject,
79
+ approveAll: approveAll,
80
+ rejectAll: rejectAll,
81
+ showApproveRejectAll: showApproveRejectAll
76
82
  })]
77
83
  });
78
84
  };
@@ -25,16 +25,6 @@ var _index3 = require("../../atoms/AsignationOption/index");
25
25
 
26
26
  var _data = require("../../../global-files/data");
27
27
 
28
- var _SliderToolTip = require("../../atoms/SliderToolTip");
29
-
30
- var _infoIcon = _interopRequireDefault(require("../../../assets/images/sliderToolTip/infoIcon.svg"));
31
-
32
- var _slide = _interopRequireDefault(require("../../../assets/images/sliderToolTip/slide21.svg"));
33
-
34
- var _slide2 = _interopRequireDefault(require("../../../assets/images/sliderToolTip/slide22.svg"));
35
-
36
- var _slide3 = _interopRequireDefault(require("../../../assets/images/sliderToolTip/slide23.svg"));
37
-
38
28
  var _jsxRuntime = require("react/jsx-runtime");
39
29
 
40
30
  var StatusAsignationInfo = function StatusAsignationInfo(_ref) {
@@ -78,25 +68,6 @@ var StatusAsignationInfo = function StatusAsignationInfo(_ref) {
78
68
  }
79
69
  };
80
70
 
81
- var slidefront = [{
82
- slide: _slide.default,
83
- id: "slide1",
84
- id_link: "slidea1",
85
- title: "Valida tu producto en cada activo digital",
86
- description: "Al solicitar a Content-oh! podrás validar la información, imágenes y documentación de tu producto, esto hará más sencillo que puedas aprobar o rechazar el contenido."
87
- }, {
88
- slide: _slide2.default,
89
- id: "slide2",
90
- id_link: "slidea2",
91
- title: "Aprueba o rechaza con un clic",
92
- description: "Cuando termines de revisar tu información, elige si aproebas o rechazas, esto enviara una notificiación a nuestro equipo, para continuar o corregir el producto."
93
- }, {
94
- slide: _slide3.default,
95
- id: "slide3",
96
- id_link: "slidea3",
97
- title: "Estatus de tu producto en el proceso",
98
- description: "La mayor parte del proceso podrás identificar que estatus tiene tu producto, esto dara visibilidad a todo tu equipo para saber la etapa se encuentra."
99
- }];
100
71
  (0, _react.useEffect)(function () {
101
72
  if (showAsignationPanel) {
102
73
  document.addEventListener("click", closeAsignations, false);
@@ -104,12 +75,7 @@ var StatusAsignationInfo = function StatusAsignationInfo(_ref) {
104
75
  }, [showAsignationPanel]);
105
76
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
106
77
  id: id,
107
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_SliderToolTip.SliderToolTip, {
108
- infoIcon: _infoIcon.default,
109
- slidefront: slidefront,
110
- iconSize: "medium-image",
111
- slidePosition: "bottom-slide"
112
- }), status !== "-" && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.StatusTag, {
78
+ children: [status !== "-" && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.StatusTag, {
113
79
  statusType: status,
114
80
  ovalForm: true
115
81
  }), showSaveButton && /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = exports.TextAndGradientDefault = void 0;
9
+
10
+ var _index = require("./index");
11
+
12
+ var _Cadena = _interopRequireDefault(require("../../../assets/images/providerAndCadena/Cadena.svg"));
13
+
14
+ var _default = {
15
+ title: "Components/molecules/TextAndGradient",
16
+ component: _index.TextAndGradient
17
+ };
18
+ exports.default = _default;
19
+
20
+ var Template = function Template(args) {
21
+ return /*#__PURE__*/React.createElement(_index.TextAndGradient, args);
22
+ };
23
+
24
+ var TextAndGradientDefault = Template.bind({});
25
+ exports.TextAndGradientDefault = TextAndGradientDefault;
26
+ TextAndGradientDefault.args = {
27
+ title: "Beneficios de cadenas",
28
+ containerList: {
29
+ content: ["Crea proveedores y agregalos a tu cadena", "Valida los proveedores", "Solicita actualización a proveedores", "Analiza el número de productos totales"]
30
+ }
31
+ };
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.TextAndGradient = void 0;
7
+
8
+ var _styles = require("./styles");
9
+
10
+ var _AtomList = require("../../atoms/AtomList");
11
+
12
+ var _ScreenHeader = require("../../atoms/ScreenHeader");
13
+
14
+ var _variables = require("../../../global-files/variables");
15
+
16
+ var TextAndGradient = function TextAndGradient(_ref) {
17
+ var title = _ref.title,
18
+ image = _ref.image,
19
+ containerList = _ref.containerList;
20
+ return /*#__PURE__*/React.createElement(_styles.Container, null, /*#__PURE__*/React.createElement("div", {
21
+ className: "title"
22
+ }, /*#__PURE__*/React.createElement(_ScreenHeader.ScreenHeader, {
23
+ className: "title",
24
+ headerType: "with-bold-text",
25
+ text: title,
26
+ color: _variables.GlobalColors.s1
27
+ })), image && /*#__PURE__*/React.createElement("img", {
28
+ src: image
29
+ }), /*#__PURE__*/React.createElement("div", {
30
+ className: "list"
31
+ }, /*#__PURE__*/React.createElement(_AtomList.AtomList, {
32
+ content: containerList.content
33
+ })));
34
+ };
35
+
36
+ exports.TextAndGradient = TextAndGradient;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.Container = void 0;
9
+
10
+ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
11
+
12
+ var _styledComponents = _interopRequireDefault(require("styled-components"));
13
+
14
+ var _templateObject;
15
+
16
+ var Container = _styledComponents.default.button(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\n position: absolute;\n width: 720px;\n height: 720px;\n left: 0px;\n top: 0px;\n background: linear-gradient(180deg, #E33AA9 0%, #3B1366 100%);\n align-content: center;\n\n .title{\n position: absolute;\n width: 475px;\n height: 36px;\n left: 110px;\n top: 140px;\n letter-spacing: -0.015em;\n font-feature-settings: 'pnum' on, 'lnum' on;\n }\n .list{\n position: absolute;\n height: 160px;\n left: 180px;\n top: 219px;\n font-family: Raleway;\n font-style: normal;\n font-weight: 500;\n font-size: 18px;\n line-height: 40px;\n letter-spacing: -0.015em;\n text-align: left;\n \n }\n\n"])));
17
+
18
+ exports.Container = Container;
@@ -31,7 +31,10 @@ var FullProductNameHeader = function FullProductNameHeader(_ref) {
31
31
  showValidationButtons = _ref.showValidationButtons,
32
32
  approve = _ref.approve,
33
33
  reject = _ref.reject,
34
- servicesData = _ref.servicesData;
34
+ approveAll = _ref.approveAll,
35
+ rejectAll = _ref.rejectAll,
36
+ servicesData = _ref.servicesData,
37
+ showApproveRejectAll = _ref.showApproveRejectAll;
35
38
 
36
39
  var _useState = (0, _react.useState)([]),
37
40
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
@@ -79,8 +82,11 @@ var FullProductNameHeader = function FullProductNameHeader(_ref) {
79
82
  activeRetailer: activeRetailer,
80
83
  setActiveRetailer: setActiveRetailer,
81
84
  showValidationButtons: showValidationButtons,
85
+ showApproveRejectAll: showApproveRejectAll,
82
86
  approve: approve,
83
- reject: reject
87
+ reject: reject,
88
+ approveAll: approveAll,
89
+ rejectAll: rejectAll
84
90
  })]
85
91
  })]
86
92
  });
@@ -31,120 +31,156 @@ ProviderProductEditionDefault.args = {
31
31
  "Ficha técnica": false,
32
32
  Imágenes: false
33
33
  },
34
- token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmNTkyN2Y4ZS1jYmY3LTQ5MjItOWUwOS1lNjllYzBiMjczMWEiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0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4lYq2BUUuMhWdmK6XUL_Jhmv05TUJ3Rp_Ti4_J2WE4zQqhbfQ",
35
35
  articleId: 238,
36
36
  category: 846,
37
37
  version: 2,
38
38
  productSelected: {
39
- id_article: 55081,
40
- id_category: "157",
41
- name: "Lavatrastes Axion toque de crema",
42
- upc: "750954665375",
43
- timestamp: "2022-06-17T18:43:45.000Z",
44
- status: "NULL",
45
- categoryName: "CONSUMIBLES|PRODUCTOS DE LIMPIEZA Y LAVANDERÍA|JABONES Y LAVATRASTES",
46
- asignations: [],
47
- version: 1,
48
- version_status: null,
49
- retailersAvailable: [{
50
- id: 4,
51
- name: "Walmart Super y Superama",
39
+ orderId: 55,
40
+ article_status: "AP",
41
+ datasheet_status: "AP",
42
+ description_status: "AP",
43
+ images_status: "AP",
44
+ prio: "none",
45
+ version: 2,
46
+ brand: null,
47
+ article: {
48
+ category: "ILUMINACIÓN|FOCOS|FOCOS",
49
+ company_name: "THD Proveedor",
52
50
  country: "México",
53
- id_region: 1,
54
- active: 1
51
+ id_category: "2143",
52
+ id_article: 55118,
53
+ name: "FOCO BLUETOOTH SPOT PHILIPS 6 WATTS 300 LÚMENES MULTICOLOR",
54
+ upc: "145582"
55
+ },
56
+ retailers: [{
57
+ id: 58,
58
+ name: "The Home Depot Golden"
59
+ }, {
60
+ id: 59,
61
+ name: "The Home Depot Platinum"
62
+ }, {
63
+ id: 60,
64
+ name: "The Home Depot Resizing"
65
+ }, {
66
+ id: 61,
67
+ name: "Home Depot TAB"
55
68
  }],
56
- missing: {
57
- datasheet: 10,
58
- description: 6,
59
- image: 32
69
+ services: {
70
+ datasheets: 1,
71
+ descriptions: 1,
72
+ images: 1
73
+ },
74
+ id_article: 55118,
75
+ retailersAvailable: [{
76
+ id: 58,
77
+ name: "The Home Depot Golden"
78
+ }, {
79
+ id: 59,
80
+ name: "The Home Depot Platinum"
81
+ }, {
82
+ id: 60,
83
+ name: "The Home Depot Resizing"
84
+ }, {
85
+ id: 61,
86
+ name: "Home Depot TAB"
87
+ }]
88
+ },
89
+ productToEdit: {
90
+ ArticleId: 55118,
91
+ idCategory: "2143",
92
+ product: {
93
+ orderId: 55,
94
+ article_status: "AP",
95
+ datasheet_status: "AP",
96
+ description_status: "AP",
97
+ images_status: "AP",
98
+ prio: "none",
99
+ version: 2,
100
+ brand: null,
101
+ article: {
102
+ category: "ILUMINACIÓN|FOCOS|FOCOS",
103
+ company_name: "THD Proveedor",
104
+ country: "México",
105
+ id_category: "2143",
106
+ id_article: 55118,
107
+ name: "FOCO BLUETOOTH SPOT PHILIPS 6 WATTS 300 LÚMENES MULTICOLOR",
108
+ upc: "145582"
109
+ },
110
+ retailers: [{
111
+ id: 58,
112
+ name: "The Home Depot Golden"
113
+ }, {
114
+ id: 59,
115
+ name: "The Home Depot Platinum"
116
+ }, {
117
+ id: 60,
118
+ name: "The Home Depot Resizing"
119
+ }, {
120
+ id: 61,
121
+ name: "Home Depot TAB"
122
+ }],
123
+ services: {
124
+ datasheets: 1,
125
+ descriptions: 1,
126
+ images: 1
127
+ },
128
+ id_article: 55118,
129
+ retailersAvailable: [{
130
+ id: 58,
131
+ name: "The Home Depot Golden"
132
+ }, {
133
+ id: 59,
134
+ name: "The Home Depot Platinum"
135
+ }, {
136
+ id: 60,
137
+ name: "The Home Depot Resizing"
138
+ }, {
139
+ id: 61,
140
+ name: "Home Depot TAB"
141
+ }]
60
142
  }
61
143
  },
62
- // productToEdit: {
63
- // idCategory: "2976",
64
- // ArticleId: 55070,
65
- // product: [
66
- // {
67
- // id_article: 55070,
68
- // id_category: "2976",
69
- // name: "TOALLERO CORTO ACCESS NEGRO ÉBANO",
70
- // upc: "161788",
71
- // timestamp: "2022-06-17T17:31:14.000Z",
72
- // status: "NULL",
73
- // categoryName: "BAÑOS|ACCESORIOS PARA BAÑO|TOALLEROS",
74
- // asignations: [],
75
- // version: 1,
76
- // version_status: null,
77
- // retailersAvailable: [
78
- // {
79
- // id: 58,
80
- // name: "The Home Depot Golden",
81
- // country: "México",
82
- // id_region: 1,
83
- // active: 1,
84
- // },
85
- // {
86
- // id: 59,
87
- // name: "The Home Depot Platinum",
88
- // country: "México",
89
- // id_region: 1,
90
- // active: 1,
91
- // },
92
- // {
93
- // id: 60,
94
- // name: "The Home Depot Resizing",
95
- // country: "México",
96
- // id_region: 1,
97
- // active: 1,
98
- // },
99
- // {
100
- // id: 61,
101
- // name: "Home Depot TAB",
102
- // country: "México",
103
- // id_region: 1,
104
- // active: 1,
105
- // },
106
- // ],
107
- // missing: {},
108
- // },
109
- // ],
110
- // },
111
144
  location: {
112
145
  product: {
113
146
  articleId: 109485,
114
147
  versionId: 3
115
148
  },
116
- state: {}
149
+ state: {
150
+ origin: "Contentoh"
151
+ }
117
152
  },
118
153
  user: {
119
- id_user: 1236,
120
- name: "THD",
121
- last_name: "Proveedor",
122
- email: "thd@allfreemail.net",
123
- position: "Prod test",
124
- telephone: "+523111111111",
154
+ id_user: 59,
155
+ name: "The Home",
156
+ last_name: "Depot",
157
+ email: "cadena.ismael@allfreemail.net",
158
+ position: "Admin",
159
+ telephone: "+523111366336",
125
160
  country: "México",
126
- id_company: 816,
127
- id_cognito: "d660ccca-f906-4970-892c-6d152e832e5d",
161
+ id_company: 7,
162
+ id_cognito: "5884ae34-59d6-4454-b98e-821518bcc3a7",
128
163
  birth_Date: null,
129
164
  about_me: null,
130
165
  zip_code: null,
131
166
  address: null,
132
167
  job: null,
133
- id_stripe: null,
168
+ id_stripe: "",
134
169
  id_role: 0,
135
170
  active: 1,
136
171
  is_retailer: 0,
172
+ email_notify: 1,
137
173
  membership: {
138
- id: 797,
139
- start_date: "2022-06-19T04:18:39.000Z",
140
- end_date: "2023-06-19T04:18:39.000Z",
141
- planID: 6,
142
- plan: "prod_KvGd6YSTJyR3AP",
143
- name: "Plan Small",
144
- user_limit: "10",
145
- products_limit: "1000",
174
+ id: 24,
175
+ start_date: "2021-11-23T03:35:50.000Z",
176
+ end_date: "2022-11-23T03:35:50.000Z",
177
+ planID: 9,
178
+ plan: "prod_KtlkzZVGq6bRTO",
179
+ name: "Plan Enterprise Full",
180
+ user_limit: "30",
181
+ products_limit: "10000",
146
182
  type: "Enterprise"
147
183
  },
148
- src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1656001689809"
184
+ src: "https://content-management-profile.s3.amazonaws.com/id-59/59.png?1656113146885"
149
185
  }
150
186
  };