contentoh-components-library 21.1.50 → 21.1.51
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/CheckBox/styles.js +1 -1
- package/dist/components/atoms/Commentary/styles.js +1 -1
- package/dist/components/atoms/GeneralInput/index.js +1 -0
- package/dist/components/atoms/GeneralInput/styles.js +3 -3
- package/dist/components/atoms/InputFormatter/styles.js +1 -1
- package/dist/components/atoms/SliderToolTip/SliderToolTip.stories.js +13 -67
- package/dist/components/atoms/SliderToolTip/index.js +135 -70
- package/dist/components/atoms/SliderToolTip/styles.js +2 -2
- package/dist/components/atoms/StatusTag/index.js +17 -2
- package/dist/components/atoms/StatusTag/styles.js +1 -1
- package/dist/components/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +1 -44
- package/dist/components/atoms/VerticalSideMenuMainPage/index.js +65 -39
- package/dist/components/atoms/VerticalSideMenuMainPage/styles.js +6 -21
- package/dist/components/molecules/HeaderTop/index.js +1 -4
- package/dist/components/molecules/RetailerSelector/index.js +0 -34
- package/dist/components/molecules/StatusAsignationInfo/index.js +3 -32
- package/dist/components/organisms/FullProductNameHeader/index.js +1 -1
- package/dist/components/organisms/FullTabsMenu/index.js +2 -4
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +87 -119
- package/dist/components/pages/ProviderProductEdition/index.js +334 -424
- package/dist/components/pages/RegistrationLoginFirstStep/RegistrationLoginFirstStep.stories.js +37 -0
- package/dist/components/pages/RegistrationLoginFirstStep/index.js +269 -0
- package/dist/components/pages/RegistrationLoginFirstStep/styles.js +20 -0
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +33 -75
- package/dist/components/pages/RetailerProductEdition/index.js +202 -216
- package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
- package/dist/global-files/data.js +9 -10
- package/dist/index.js +64 -38
- package/package.json +2 -2
- package/src/components/atoms/CheckBox/styles.js +1 -0
- package/src/components/atoms/Commentary/styles.js +2 -2
- package/src/components/atoms/GeneralInput/index.js +1 -0
- package/src/components/atoms/GeneralInput/styles.js +5 -5
- package/src/components/atoms/InputFormatter/styles.js +3 -3
- package/src/components/atoms/SliderToolTip/SliderToolTip.stories.js +11 -77
- package/src/components/atoms/SliderToolTip/index.js +154 -98
- package/src/components/atoms/SliderToolTip/styles.js +26 -51
- package/src/components/atoms/StatusTag/index.js +12 -2
- package/src/components/atoms/StatusTag/styles.js +11 -11
- package/src/components/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +1 -24
- package/src/components/atoms/VerticalSideMenuMainPage/index.js +38 -32
- package/src/components/atoms/VerticalSideMenuMainPage/styles.js +29 -35
- package/src/components/molecules/HeaderTop/index.js +1 -6
- package/src/components/molecules/RetailerSelector/index.js +0 -16
- package/src/components/molecules/StatusAsignationInfo/index.js +1 -33
- package/src/components/organisms/FullProductNameHeader/index.js +2 -2
- package/src/components/organisms/FullTabsMenu/index.js +0 -2
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +92 -116
- package/src/components/pages/ProviderProductEdition/index.js +200 -254
- package/src/components/pages/ProviderProductEdition/styles.js +1 -1
- package/src/components/pages/RegistrationLoginFirstStep/RegistrationLoginFirstStep.stories.js +17 -0
- package/src/components/pages/RegistrationLoginFirstStep/index.js +160 -0
- package/src/components/pages/RegistrationLoginFirstStep/styles.js +85 -0
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +31 -77
- package/src/components/pages/RetailerProductEdition/index.js +170 -146
- package/src/components/pages/RetailerProductEdition/styles.js +1 -1
- package/src/global-files/data.js +9 -10
- package/src/index.js +2 -0
|
@@ -19,6 +19,6 @@ var _variables = require("../../../global-files/variables");
|
|
|
19
19
|
|
|
20
20
|
var _templateObject;
|
|
21
21
|
|
|
22
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n input {\n display: none;\n &:checked + label {\n &:before {\n background-color: ", ";\n background-image: url(", ");\n }\n }\n }\n\n label {\n position: relative;\n min-height: 16px;\n min-width: 16px;\n display: inline-block;\n\n p {\n display: inline;\n color: ", ";\n font-family: ", ";\n font-weight: 500;\n font-size: 13px;\n line-height: 21px;\n margin-left: 20px;\n\n &.filter-text {\n color: ", ";\n font-size: 18px;\n line-height: 24px;\n margin-left: 23px;\n }\n }\n\n &:before {\n content: \"\";\n width: 16px;\n height: 16px;\n position: absolute;\n display: inline-block;\n top: 50%;\n transform: translateY(-50%);\n background-image: url(", ");\n }\n }\n"])), _variables.GlobalColors.white, _checked.default, _variables.GlobalColors.s4, _variables.FontFamily.AvenirNext, _variables.GlobalColors.magenta_s2, _unchecked.default);
|
|
22
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n input {\n display: none;\n\n &:checked + label {\n &:before {\n background-color: ", ";\n background-image: url(", ");\n }\n }\n }\n\n label {\n position: relative;\n min-height: 16px;\n min-width: 16px;\n display: inline-block;\n\n p {\n display: inline;\n color: ", ";\n font-family: ", ";\n font-weight: 500;\n font-size: 13px;\n line-height: 21px;\n margin-left: 20px;\n\n &.filter-text {\n color: ", ";\n font-size: 18px;\n line-height: 24px;\n margin-left: 23px;\n }\n }\n\n &:before {\n content: \"\";\n width: 16px;\n height: 16px;\n position: absolute;\n display: inline-block;\n top: 50%;\n transform: translateY(-50%);\n background-image: url(", ");\n }\n }\n"])), _variables.GlobalColors.white, _checked.default, _variables.GlobalColors.s4, _variables.FontFamily.AvenirNext, _variables.GlobalColors.magenta_s2, _unchecked.default);
|
|
23
23
|
|
|
24
24
|
exports.Container = Container;
|
|
@@ -15,7 +15,7 @@ var _variables = require("../../../global-files/variables");
|
|
|
15
15
|
|
|
16
16
|
var _templateObject;
|
|
17
17
|
|
|
18
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 500px;\n height: 80px;\n border: 1px solid ", ";\n padding: 10px;\n p {\n font-family: ", ";\n font-size: 12px;\n line-height: 15px;\n color: ", ";\n text-decoration: ", ";\n }\n"])), _variables.GlobalColors.s2, _variables.FontFamily.AvenirNext, _variables.GlobalColors.
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 500px;\n height: 80px;\n border: 1px solid ", ";\n padding: 10px;\n p {\n font-family: ", ";\n font-size: 12px;\n line-height: 15px;\n color: ", ";\n text-decoration: ", ";\n }\n"])), _variables.GlobalColors.s2, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s4, function (_ref) {
|
|
19
19
|
var reviewed = _ref.reviewed;
|
|
20
20
|
return reviewed ? "line-through" : "none";
|
|
21
21
|
});
|
|
@@ -65,6 +65,7 @@ var GeneralInput = function GeneralInput(_ref) {
|
|
|
65
65
|
if ((optionList === null || optionList === void 0 ? void 0 : optionList.length) > 0) {
|
|
66
66
|
var index = evt.target.selectedIndex;
|
|
67
67
|
var valueSelected = evt.target.value;
|
|
68
|
+
console.log(valueSelected);
|
|
68
69
|
generalValue = valueSelected;
|
|
69
70
|
setTextValue({
|
|
70
71
|
value: generalValue
|
|
@@ -15,15 +15,15 @@ var _variables = require("../../../global-files/variables");
|
|
|
15
15
|
|
|
16
16
|
var _templateObject;
|
|
17
17
|
|
|
18
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n\n > div {\n label {\n &:before {\n outline: 1px solid ", ";\n }\n }\n }\n\n input,\n textarea {\n width: 100%;\n border: 1px solid\n ", ";\n\n font-family: ", ";\n color: ", ";\n font-weight: normal;\n font-size: 12px;\n line-height: 15px;\n padding: 10px;\n outline: none;\n border-radius: 2px;\n resize: none;\n\n &:focus {\n border: 1px solid ", ";\n }\n }\n\n select {\n background: #fafafa;\n outline: none;\n border: 1px solid\n ", ";\n width: 100%;\n cursor: pointer;\n font-family: ", ";\n color: ", ";\n font-size: 12px;\n line-height: 21px;\n padding: 10px;\n border-right: 2px solid #e33aa9;\n\n &:focus {\n border: 1px solid ", ";\n }\n }\n\n p {\n font-family: ", ";\n font-size:
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n\n > div {\n label {\n &:before {\n outline: 1px solid ", ";\n }\n }\n }\n\n input,\n textarea {\n width: 100%;\n border: 1px solid\n ", ";\n\n font-family: ", ";\n color: ", ";\n font-weight: normal;\n font-size: 12px;\n line-height: 15px;\n padding: 10px;\n outline: none;\n border-radius: 2px;\n resize: none;\n\n &:focus {\n border: 1px solid ", ";\n }\n }\n\n select {\n background: #fafafa;\n outline: none;\n border: 1px solid\n ", ";\n width: 100%;\n cursor: pointer;\n font-family: ", ";\n color: ", ";\n font-size: 12px;\n line-height: 21px;\n padding: 10px;\n border-right: 2px solid #e33aa9;\n\n &:focus {\n border: 1px solid ", ";\n }\n }\n\n p {\n font-family: ", ";\n font-size: 11px;\n color: ", ";\n }\n"])), function (_ref) {
|
|
19
19
|
var isRequired = _ref.isRequired;
|
|
20
20
|
return isRequired ? "red" : "none";
|
|
21
21
|
}, function (_ref2) {
|
|
22
22
|
var isRequired = _ref2.isRequired;
|
|
23
23
|
return isRequired ? "red" : "".concat(_variables.GlobalColors.s2);
|
|
24
|
-
}, _variables.FontFamily.AvenirNext, _variables.GlobalColors.
|
|
24
|
+
}, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s4, _variables.GlobalColors.magenta_s2, function (_ref3) {
|
|
25
25
|
var isRequired = _ref3.isRequired;
|
|
26
26
|
return isRequired ? "red" : "".concat(_variables.GlobalColors.s2);
|
|
27
|
-
}, _variables.FontFamily.AvenirNext, _variables.GlobalColors.
|
|
27
|
+
}, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s4, _variables.GlobalColors.magenta_s2, _variables.FontFamily.Raleway, _variables.GlobalColors.s4);
|
|
28
28
|
|
|
29
29
|
exports.Container = Container;
|
|
@@ -28,6 +28,6 @@ var Container = _styledComponents.default.div(_templateObject || (_templateObjec
|
|
|
28
28
|
}, function (_ref4) {
|
|
29
29
|
var position = _ref4.position;
|
|
30
30
|
return position.left;
|
|
31
|
-
}, _variables.FontFamily.AvenirNext, _variables.GlobalColors.
|
|
31
|
+
}, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s4, _variables.FontFamily.Raleway_900, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s4);
|
|
32
32
|
|
|
33
33
|
exports.Container = Container;
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.default = exports.
|
|
8
|
+
exports.default = exports.SliderToolTipDefault = void 0;
|
|
9
9
|
|
|
10
10
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
11
|
|
|
@@ -13,41 +13,21 @@ var _index = require("./index");
|
|
|
13
13
|
|
|
14
14
|
var _infoIcon = _interopRequireDefault(require("../../../assets/images/sliderToolTip/infoIcon.svg"));
|
|
15
15
|
|
|
16
|
-
var _slide = _interopRequireDefault(require("../../../assets/images/sliderToolTip/
|
|
16
|
+
var _slide = _interopRequireDefault(require("../../../assets/images/sliderToolTip/slide1.svg"));
|
|
17
17
|
|
|
18
|
-
var _slide2 = _interopRequireDefault(require("../../../assets/images/sliderToolTip/
|
|
18
|
+
var _slide2 = _interopRequireDefault(require("../../../assets/images/sliderToolTip/slide2.svg"));
|
|
19
19
|
|
|
20
|
-
var _slide3 = _interopRequireDefault(require("../../../assets/images/sliderToolTip/
|
|
20
|
+
var _slide3 = _interopRequireDefault(require("../../../assets/images/sliderToolTip/slide3.svg"));
|
|
21
21
|
|
|
22
|
-
var _slide4 = _interopRequireDefault(require("../../../assets/images/sliderToolTip/
|
|
22
|
+
var _slide4 = _interopRequireDefault(require("../../../assets/images/sliderToolTip/slide4.svg"));
|
|
23
23
|
|
|
24
|
-
var _slide5 = _interopRequireDefault(require("../../../assets/images/sliderToolTip/
|
|
25
|
-
|
|
26
|
-
var _slide6 = _interopRequireDefault(require("../../../assets/images/sliderToolTip/slide3.svg"));
|
|
27
|
-
|
|
28
|
-
var _slide7 = _interopRequireDefault(require("../../../assets/images/sliderToolTip/slide4.svg"));
|
|
29
|
-
|
|
30
|
-
var _slide8 = _interopRequireDefault(require("../../../assets/images/sliderToolTip/slide5.svg"));
|
|
24
|
+
var _slide5 = _interopRequireDefault(require("../../../assets/images/sliderToolTip/slide5.svg"));
|
|
31
25
|
|
|
32
26
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
33
27
|
|
|
34
28
|
var _default = {
|
|
35
29
|
title: "Components/atoms/SliderToolTip",
|
|
36
|
-
component: _index.SliderToolTip
|
|
37
|
-
argTypes: {
|
|
38
|
-
iconSize: {
|
|
39
|
-
options: ["big-image", "medium-image", "small-image"],
|
|
40
|
-
control: {
|
|
41
|
-
type: "select"
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
slidePosition: {
|
|
45
|
-
options: ["top-slide", "bottom-slide"],
|
|
46
|
-
control: {
|
|
47
|
-
type: "select"
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
30
|
+
component: _index.SliderToolTip
|
|
51
31
|
};
|
|
52
32
|
exports.default = _default;
|
|
53
33
|
|
|
@@ -58,44 +38,10 @@ var Template = function Template(args) {
|
|
|
58
38
|
var SliderToolTipDefault = Template.bind({});
|
|
59
39
|
exports.SliderToolTipDefault = SliderToolTipDefault;
|
|
60
40
|
SliderToolTipDefault.args = {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
slide: _slide2.default,
|
|
68
|
-
title: "Aprueba o rechaza con un clic",
|
|
69
|
-
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."
|
|
70
|
-
}, {
|
|
71
|
-
slide: _slide3.default,
|
|
72
|
-
title: "Estatus de tu producto en el proceso",
|
|
73
|
-
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."
|
|
74
|
-
}],
|
|
75
|
-
slidePosition: "bottom-slide",
|
|
76
|
-
iconSize: "medium-image"
|
|
77
|
-
};
|
|
78
|
-
var SliderToolTipSendContentoh = Template.bind({});
|
|
79
|
-
exports.SliderToolTipSendContentoh = SliderToolTipSendContentoh;
|
|
80
|
-
SliderToolTipSendContentoh.args = {
|
|
81
|
-
infoIcon: _infoIcon.default,
|
|
82
|
-
slidefront: [{
|
|
83
|
-
slide: _slide4.default,
|
|
84
|
-
description: "Creamos tu contenido, y todo lo que haga falta para tu producto, cada sección puedes socilitar contenido enriquecido, y nosotros lo haremos por ti."
|
|
85
|
-
}, {
|
|
86
|
-
slide: _slide5.default,
|
|
87
|
-
description: "Puedes agregar solicitudes de contenido enriquecido a tu carrito de compra las veces que sean necesarias. Una vez completada tu lista con los servicios necesitados sigue el proceso de compra en checkout."
|
|
88
|
-
}, {
|
|
89
|
-
slide: _slide6.default,
|
|
90
|
-
description: "Revisa el contenido que deseas solicilitar, valida y tambien puedes agregar contenido extra, traducciones, o simplemente completar el checkout."
|
|
91
|
-
}, {
|
|
92
|
-
slide: _slide7.default,
|
|
93
|
-
description: "Elige el tipo de entrega de tu producto, puedes ser recolección en el lugar o por el contrario puedes dejarlo en nuestras oficinas."
|
|
94
|
-
}, {
|
|
95
|
-
slide: _slide8.default,
|
|
96
|
-
title: "Bienvenido al modo Content-oh!",
|
|
97
|
-
description: "Finalmente elige la forma de pago que más te guste, procede con el pago y listo."
|
|
98
|
-
}],
|
|
99
|
-
slidePosition: "top-slide",
|
|
100
|
-
iconSize: "big-image"
|
|
41
|
+
InfoIcon: _infoIcon.default,
|
|
42
|
+
Slide1: _slide.default,
|
|
43
|
+
Slide2: _slide2.default,
|
|
44
|
+
Slide3: _slide3.default,
|
|
45
|
+
Slide4: _slide4.default,
|
|
46
|
+
Slide5: _slide5.default
|
|
101
47
|
};
|
|
@@ -16,10 +16,12 @@ var _react = require("react");
|
|
|
16
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
17
|
|
|
18
18
|
var SliderToolTip = function SliderToolTip(_ref) {
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
var InfoIcon = _ref.InfoIcon,
|
|
20
|
+
Slide1 = _ref.Slide1,
|
|
21
|
+
Slide2 = _ref.Slide2,
|
|
22
|
+
Slide3 = _ref.Slide3,
|
|
23
|
+
Slide4 = _ref.Slide4,
|
|
24
|
+
Slide5 = _ref.Slide5;
|
|
23
25
|
|
|
24
26
|
var _useState = (0, _react.useState)(false),
|
|
25
27
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -40,27 +42,49 @@ var SliderToolTip = function SliderToolTip(_ref) {
|
|
|
40
42
|
}, [showMenu]);
|
|
41
43
|
|
|
42
44
|
var color = function color(id) {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
if (id === "slidea1") {
|
|
46
|
+
document.getElementById("slidea1").style.backgroundColor = "#E33AA9";
|
|
47
|
+
document.getElementById("slidea2").style.backgroundColor = "#C4C4C4";
|
|
48
|
+
document.getElementById("slidea3").style.backgroundColor = "#C4C4C4";
|
|
49
|
+
document.getElementById("slidea4").style.backgroundColor = "#C4C4C4";
|
|
50
|
+
document.getElementById("slidea5").style.backgroundColor = "#C4C4C4";
|
|
51
|
+
}
|
|
46
52
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
if (id === "slidea2") {
|
|
54
|
+
document.getElementById("slidea1").style.backgroundColor = "#FAFAFA";
|
|
55
|
+
document.getElementById("slidea2").style.backgroundColor = "#E33AA9";
|
|
56
|
+
document.getElementById("slidea3").style.backgroundColor = "#C4C4C4";
|
|
57
|
+
document.getElementById("slidea4").style.backgroundColor = "#C4C4C4";
|
|
58
|
+
document.getElementById("slidea5").style.backgroundColor = "#C4C4C4";
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if (id === "slidea3") {
|
|
62
|
+
document.getElementById("slidea1").style.backgroundColor = "#FAFAFA";
|
|
63
|
+
document.getElementById("slidea2").style.backgroundColor = "#FAFAFA";
|
|
64
|
+
document.getElementById("slidea3").style.backgroundColor = "#E33AA9";
|
|
65
|
+
document.getElementById("slidea4").style.backgroundColor = "#C4C4C4";
|
|
66
|
+
document.getElementById("slidea5").style.backgroundColor = "#C4C4C4";
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if (id === "slidea4") {
|
|
70
|
+
document.getElementById("slidea1").style.backgroundColor = "#FAFAFA";
|
|
71
|
+
document.getElementById("slidea2").style.backgroundColor = "#FAFAFA";
|
|
72
|
+
document.getElementById("slidea3").style.backgroundColor = "#FAFAFA";
|
|
73
|
+
document.getElementById("slidea4").style.backgroundColor = "#E33AA9";
|
|
74
|
+
document.getElementById("slidea5").style.backgroundColor = "#C4C4C4";
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if (id === "slidea5") {
|
|
78
|
+
document.getElementById("button-slide").style.display = "flex";
|
|
55
79
|
}
|
|
56
80
|
};
|
|
57
81
|
|
|
58
82
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
59
83
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
84
|
+
className: "container-slider",
|
|
60
85
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
61
|
-
src:
|
|
86
|
+
src: InfoIcon,
|
|
62
87
|
alt: "info icon",
|
|
63
|
-
className: iconSize,
|
|
64
88
|
onClick: function onClick(e) {
|
|
65
89
|
setShowMenu(!showMenu);
|
|
66
90
|
|
|
@@ -70,62 +94,103 @@ var SliderToolTip = function SliderToolTip(_ref) {
|
|
|
70
94
|
}
|
|
71
95
|
}), showMenu && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Slider, {
|
|
72
96
|
id: "div-slider",
|
|
73
|
-
|
|
74
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("ul", {
|
|
97
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("ul", {
|
|
75
98
|
className: "slider",
|
|
76
|
-
children:
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
99
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("li", {
|
|
100
|
+
id: "slide1",
|
|
101
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
102
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
103
|
+
src: Slide1
|
|
104
|
+
})
|
|
105
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
106
|
+
children: "Creamos tu contenido, y todo lo que haga falta para tu producto, cada secci\xF3n puedes socilitar contenido enriquecido, y nosotros lo haremos por ti."
|
|
107
|
+
})]
|
|
108
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("li", {
|
|
109
|
+
id: "slide2",
|
|
110
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
111
|
+
src: Slide2
|
|
112
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
113
|
+
children: "Puedes agregar solicitudes de contenido enriquecido a tu carrito de compra las veces que sean necesarias. Una vez completada tu lista con los servicios necesitados sigue el proceso de compra en checkout."
|
|
114
|
+
})]
|
|
115
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("li", {
|
|
116
|
+
id: "slide3",
|
|
117
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
118
|
+
src: Slide3
|
|
119
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
120
|
+
children: "Revisa el contenido que deseas solicilitar, valida y tambien puedes agregar contenido extra, traducciones, o simplemente completar el checkout."
|
|
121
|
+
})]
|
|
122
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("li", {
|
|
123
|
+
id: "slide4",
|
|
124
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
125
|
+
src: Slide4
|
|
126
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
127
|
+
children: "Elige el tipo de entrega de tu producto, puedes ser recolecci\xF3n en el lugar o por el contrario puedes dejarlo en nuestras oficinas."
|
|
128
|
+
})]
|
|
129
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("li", {
|
|
130
|
+
id: "slide5",
|
|
131
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
132
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
133
|
+
src: Slide5
|
|
134
|
+
})
|
|
135
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
136
|
+
className: "lema-end",
|
|
137
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
138
|
+
children: "Finalmente elige la forma de pago que m\xE1s te guste, procede con el pago y listo."
|
|
139
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
140
|
+
children: "Bienvenido al modo Content-oh!"
|
|
106
141
|
})]
|
|
107
|
-
})
|
|
108
|
-
|
|
109
|
-
|
|
142
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
143
|
+
id: "button-slide",
|
|
144
|
+
onClick: function onClick(e) {
|
|
145
|
+
document.removeEventListener("click", closeMenu, false);
|
|
146
|
+
setShowMenu(false);
|
|
147
|
+
},
|
|
148
|
+
children: "Cerrar"
|
|
149
|
+
})]
|
|
150
|
+
})]
|
|
151
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("ul", {
|
|
110
152
|
className: "menu",
|
|
111
|
-
children:
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
153
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
|
|
154
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
|
|
155
|
+
href: "#slide1",
|
|
156
|
+
id: "slidea1",
|
|
157
|
+
onClick: function onClick(e) {
|
|
158
|
+
color("slidea1");
|
|
159
|
+
}
|
|
160
|
+
})
|
|
161
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
|
|
162
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
|
|
163
|
+
href: "#slide2",
|
|
164
|
+
id: "slidea2",
|
|
165
|
+
onClick: function onClick(e) {
|
|
166
|
+
color("slidea2");
|
|
167
|
+
}
|
|
168
|
+
})
|
|
169
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
|
|
170
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
|
|
171
|
+
href: "#slide3",
|
|
172
|
+
id: "slidea3",
|
|
173
|
+
onClick: function onClick(e) {
|
|
174
|
+
color("slidea3");
|
|
175
|
+
}
|
|
176
|
+
})
|
|
177
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
|
|
178
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
|
|
179
|
+
href: "#slide4",
|
|
180
|
+
id: "slidea4",
|
|
181
|
+
onClick: function onClick(e) {
|
|
182
|
+
color("slidea4");
|
|
183
|
+
}
|
|
184
|
+
})
|
|
185
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
|
|
186
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
|
|
187
|
+
href: "#slide5",
|
|
188
|
+
id: "slidea5",
|
|
189
|
+
onClick: function onClick(e) {
|
|
190
|
+
color("slidea5");
|
|
191
|
+
}
|
|
192
|
+
})
|
|
193
|
+
})]
|
|
129
194
|
})]
|
|
130
195
|
})]
|
|
131
196
|
})
|
|
@@ -15,10 +15,10 @@ var _variables = require("../../../global-files/variables");
|
|
|
15
15
|
|
|
16
16
|
var _templateObject, _templateObject2;
|
|
17
17
|
|
|
18
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background: transparent;\n cursor: pointer;\n
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background: transparent;\n cursor: pointer;\n width: 40px !important;\n margin: 9px;\n position: relative;\n"])));
|
|
19
19
|
|
|
20
20
|
exports.Container = Container;
|
|
21
21
|
|
|
22
|
-
var Slider = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n font-family: sans-serif;\n margin: auto;\n background: #281f33;\n border-radius: 6px;\n
|
|
22
|
+
var Slider = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n font-family: sans-serif;\n margin: auto;\n background: #281f33;\n border-radius: 6px;\n \n padding: 16px;\n padding-top: 20px;\n box-sizing: border-box;\n position: absolute;\n top: calc(100% + 25px);\n left: calc(50% - 223px / 2);\n #div-slider {\n width: 310px;\n }\n ul,\n li {\n padding: 0;\n margin: 0;\n list-style: none;\n }\n .slider {\n position: relative;\n max-width: 300px;\n width: 100%;\n height: 270px;\n margin: 0;\n li {\n position: absolute;\n left: 0px;\n top: 0px;\n opacity: 0;\n width: inherit;\n height: inherit;\n transition: opacity 0.5s;\n background: transparent;\n img {\n width: 100%;\n height: 180px;\n border-radius: 4px;\n background-color: #fafafa;\n & + * {\n margin-top: 10px;\n }\n }\n p {\n font-family: \"Avenir Next\";\n font-style: normal;\n font-weight: 400;\n font-size: 10px;\n line-height: 12px;\n text-align: center;\n letter-spacing: -0.015em;\n color: #fafafa;\n background-color: #281f33;\n }\n div {\n background-color: #fafafa;\n height: 180px;\n border-radius: 4px;\n display: flex;\n justify-content: center;\n flex-direction: column;\n img {\n height: 40px;\n }\n & + * {\n margin-top: 13px;\n }\n }\n }\n #slide5 {\n div {\n height: 130px;\n width: 100%;\n background-color: #fafafa;\n display: flex;\n align-items: center;\n border-radius: 4px;\n img {\n width: 100%;\n height: 115px;\n object-fit: contain;\n }\n }\n .lema-end {\n justify-content: center;\n justify-content: space-evenly;\n height: 100px;\n background-color: #281f33;\n flex-direction: column;\n justify-content: space-evenly;\n border-radius: inherit;\n span {\n font-family: \"Avenir Next\";\n font-style: normal;\n font-weight: 700;\n font-size: 17px;\n line-height: 15px;\n text-align: center;\n letter-spacing: -0.015em;\n color: #fafafa;\n }\n }\n button {\n display: none;\n justify-content: center;\n align-items: center;\n padding: 10px;\n width: 160px;\n height: 30px;\n border: 1px solid #d4d1d7;\n border-radius: 15px;\n color: #fafafa;\n background-color: #281f33;\n font-family: \"Avenir Next\";\n font-style: normal;\n font-weight: 400;\n font-size: 18px;\n line-height: 25px;\n letter-spacing: -0.015em;\n position: absolute;\n left: 22%;\n top: 88%;\n cursor: pointer;\n }\n }\n }\n\n li:first-child {\n opacity: 1; /*Mostramos el primer <li>*/\n }\n li:target {\n opacity: 1; /*Mostramos el primer <li>*/\n }\n .menu {\n margin: 0;\n text-align: center;\n li {\n display: inline-block;\n text-align: center;\n & + * {\n margin-left: 15px;\n }\n a {\n display: inline-block;\n text-decoration: none;\n background-color: #c4c4c4;\n width: 10px;\n height: 10px;\n border-radius: 100%;\n }\n #slidea1 {\n background-color: #e33aa9;\n }\n }\n }\n"])));
|
|
23
23
|
|
|
24
24
|
exports.Slider = Slider;
|
|
@@ -18,12 +18,27 @@ var StatusTag = function StatusTag(_ref) {
|
|
|
18
18
|
case "COMPLETED":
|
|
19
19
|
return "C";
|
|
20
20
|
|
|
21
|
+
case "RECEPTION":
|
|
22
|
+
return "Pr";
|
|
23
|
+
|
|
21
24
|
case "NULL":
|
|
22
|
-
return "
|
|
25
|
+
return "-";
|
|
26
|
+
|
|
27
|
+
case "RECEIVED":
|
|
28
|
+
return "Rc";
|
|
29
|
+
|
|
30
|
+
case "IN_PROGRESS":
|
|
31
|
+
return "P";
|
|
32
|
+
|
|
33
|
+
case "ASSIGNED":
|
|
34
|
+
return "As";
|
|
23
35
|
|
|
24
36
|
case "APPROVED":
|
|
25
37
|
return "Ap";
|
|
26
38
|
|
|
39
|
+
case "VALIDATING":
|
|
40
|
+
return "V";
|
|
41
|
+
|
|
27
42
|
case "PAID_OUT":
|
|
28
43
|
return "Po";
|
|
29
44
|
|
|
@@ -33,7 +48,7 @@ var StatusTag = function StatusTag(_ref) {
|
|
|
33
48
|
};
|
|
34
49
|
|
|
35
50
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
36
|
-
className: "status-".concat(getShortStatus(statusType
|
|
51
|
+
className: "status-".concat(getShortStatus(statusType), " ").concat(ovalForm && "oval-form"),
|
|
37
52
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
38
53
|
children: getShortStatus(statusType)
|
|
39
54
|
})
|
|
@@ -15,6 +15,6 @@ var _variables = require("../../../global-files/variables");
|
|
|
15
15
|
|
|
16
16
|
var _templateObject;
|
|
17
17
|
|
|
18
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: fit-content;\n padding: 0 10px;\n height: 20px;\n background-color: ", ";\n border-radius: 3px;\n\n p {\n text-align: center;\n color: ", ";\n font-family: ", ";\n font-size: 12px;\n line-height: 20px;\n }\n\n &.status-
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: fit-content;\n padding: 0 10px;\n height: 20px;\n background-color: ", ";\n border-radius: 3px;\n\n p {\n text-align: center;\n color: ", ";\n font-family: ", ";\n font-size: 12px;\n line-height: 20px;\n }\n\n &.status-As,\n &.status-P,\n &.status-IN_PROGRESS,\n &.status-QF {\n background-color: ", ";\n }\n\n &.status-Pr,\n &.status-Rr,\n &.status-Rc {\n background-color: ", ";\n }\n\n &.status-AA,\n &.status-AP,\n &.status-AC,\n &.status-AF {\n background-color: ", ";\n }\n\n &.status-RA,\n &.status-RF,\n &.status-RP,\n &.status-RC {\n background-color: ", ";\n }\n\n &.status-Dat,\n &.status-Dsc,\n &.status-Imgs {\n background-color: ", ";\n }\n\n &.status-Ex {\n background-color: ", ";\n }\n\n &.status-DDI {\n background-color: ", ";\n }\n\n &.status-GLD {\n background-color: ", ";\n }\n\n &.status-TAB {\n background-color: ", ";\n }\n\n &.status-Pt {\n background-color: ", ";\n color: ", ";\n }\n\n &.oval-form {\n border-radius: 10px;\n }\n"])), _variables.GlobalColors.s3, _variables.GlobalColors.white, _variables.FontFamily.Lato, _variables.GlobalColors.in_progress, _variables.GlobalColors.reception, _variables.GlobalColors.finished, _variables.GlobalColors.rejected_status, _variables.GlobalColors.s4, _variables.GlobalColors.exported, _variables.GlobalColors.original_purpura, _variables.GlobalColors.in_progress, _variables.GlobalColors.deep_gray, _variables.GlobalColors.s2, _variables.GlobalColors.s4);
|
|
19
19
|
|
|
20
20
|
exports.Container = Container;
|
|
@@ -11,16 +11,6 @@ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/
|
|
|
11
11
|
|
|
12
12
|
var _index = require("./index");
|
|
13
13
|
|
|
14
|
-
var _iconProduct = _interopRequireDefault(require("../../../assets/images/verticalSideMenuMainPage/iconProduct.svg"));
|
|
15
|
-
|
|
16
|
-
var _iconGroup = _interopRequireDefault(require("../../../assets/images/verticalSideMenuMainPage/iconGroup.svg"));
|
|
17
|
-
|
|
18
|
-
var _iconLogo = _interopRequireDefault(require("../../../assets/images/verticalSideMenuMainPage/iconLogo.svg"));
|
|
19
|
-
|
|
20
|
-
var _iconSpeedometer = _interopRequireDefault(require("../../../assets/images/verticalSideMenuMainPage/iconSpeedometer.svg"));
|
|
21
|
-
|
|
22
|
-
var _iconTask = _interopRequireDefault(require("../../../assets/images/verticalSideMenuMainPage/iconTask.svg"));
|
|
23
|
-
|
|
24
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
25
15
|
|
|
26
16
|
var _default = {
|
|
@@ -35,37 +25,4 @@ var Template = function Template(args) {
|
|
|
35
25
|
|
|
36
26
|
var VerticalSideMenuMainPageDefault = Template.bind({});
|
|
37
27
|
exports.VerticalSideMenuMainPageDefault = VerticalSideMenuMainPageDefault;
|
|
38
|
-
VerticalSideMenuMainPageDefault.args = {
|
|
39
|
-
menuoption: [{
|
|
40
|
-
icon: _iconSpeedometer.default,
|
|
41
|
-
path: "/Dashboard",
|
|
42
|
-
title: "Dashborad"
|
|
43
|
-
}, {
|
|
44
|
-
icon: _iconProduct.default,
|
|
45
|
-
path: "/products",
|
|
46
|
-
title: "Productos",
|
|
47
|
-
suboption: [{
|
|
48
|
-
path: "/Dashboard",
|
|
49
|
-
title: "General"
|
|
50
|
-
}, {
|
|
51
|
-
path: "/AddProducts",
|
|
52
|
-
title: "Agregar Producto"
|
|
53
|
-
}]
|
|
54
|
-
}, {
|
|
55
|
-
icon: _iconGroup.default,
|
|
56
|
-
path: "/providers",
|
|
57
|
-
title: "Proovedores"
|
|
58
|
-
}, {
|
|
59
|
-
icon: _iconLogo.default,
|
|
60
|
-
path: "/ContentohProducts",
|
|
61
|
-
title: "Content Oh!",
|
|
62
|
-
suboption: {
|
|
63
|
-
path: "/ContentohProducts",
|
|
64
|
-
title: "Productos"
|
|
65
|
-
}
|
|
66
|
-
}, {
|
|
67
|
-
icon: _iconTask.default,
|
|
68
|
-
path: "/tasks/7",
|
|
69
|
-
title: "Tareas"
|
|
70
|
-
}]
|
|
71
|
-
};
|
|
28
|
+
VerticalSideMenuMainPageDefault.args = {};
|