contentoh-components-library 21.1.25 → 21.1.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/images/sliderToolTip/slide21.svg +9 -0
- package/dist/assets/images/sliderToolTip/slide22.svg +9 -0
- package/dist/assets/images/sliderToolTip/slide23.svg +9 -0
- package/dist/components/atoms/CheckBox/styles.js +1 -1
- package/dist/components/atoms/ListCommercialRetailers/ListCommercialRetailers.stories.js +36 -0
- package/dist/components/atoms/ListCommercialRetailers/index.js +64 -0
- package/dist/components/atoms/ListCommercialRetailers/styles.js +20 -0
- package/dist/components/atoms/MenuCommercialRetailers/MenuCommercialRetailers.stories.js +37 -0
- package/dist/components/atoms/MenuCommercialRetailers/index.js +25 -0
- package/dist/components/atoms/MenuCommercialRetailers/styles.js +20 -0
- package/dist/components/atoms/MenuProductImage/MenuProductImage.stories.js +28 -0
- package/dist/components/atoms/MenuProductImage/index.js +88 -0
- package/dist/components/atoms/MenuProductImage/styles.js +20 -0
- package/dist/components/atoms/SliderToolTip/SliderToolTip.stories.js +67 -13
- package/dist/components/atoms/SliderToolTip/index.js +64 -134
- package/dist/components/atoms/SliderToolTip/styles.js +2 -2
- package/dist/components/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +44 -1
- package/dist/components/atoms/VerticalSideMenuMainPage/index.js +47 -48
- package/dist/components/atoms/VerticalSideMenuMainPage/styles.js +29 -4
- package/dist/components/molecules/ApproveRejetPanel/ApproveRejetPanel.stories.js +25 -0
- package/dist/components/molecules/ApproveRejetPanel/index.js +49 -0
- package/dist/components/molecules/ApproveRejetPanel/styles.js +18 -0
- package/dist/components/molecules/SignInLoginCreationApp/SignInLogin.stories.js +28 -0
- package/dist/components/molecules/SignInLoginCreationApp/index.js +270 -0
- package/dist/components/molecules/SignInLoginCreationApp/styles.js +20 -0
- package/dist/components/molecules/StatusAsignationInfo/index.js +29 -1
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +17 -17
- package/dist/components/pages/ProviderProductEdition/index.js +44 -6
- package/dist/components/pages/RetailerProductEdition/index.js +10 -9
- package/dist/global-files/global-styles.css +0 -1
- package/dist/index.js +38 -51
- package/package.json +1 -1
- package/src/assets/images/sliderToolTip/slide21.svg +9 -0
- package/src/assets/images/sliderToolTip/slide22.svg +9 -0
- package/src/assets/images/sliderToolTip/slide23.svg +9 -0
- package/src/components/atoms/CheckBox/styles.js +0 -1
- package/src/components/atoms/SliderToolTip/SliderToolTip.stories.js +77 -11
- package/src/components/atoms/SliderToolTip/index.js +91 -154
- package/src/components/atoms/SliderToolTip/styles.js +51 -22
- package/src/components/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +24 -1
- package/src/components/atoms/VerticalSideMenuMainPage/index.js +38 -30
- package/src/components/atoms/VerticalSideMenuMainPage/styles.js +76 -18
- package/src/components/molecules/StatusAsignationInfo/index.js +31 -0
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +17 -17
- package/src/components/pages/ProviderProductEdition/index.js +52 -8
- package/src/components/pages/RetailerProductEdition/index.js +1 -0
- package/src/index.js +0 -1
- package/dist/components/atoms/Percent/Percent.stories.js +0 -39
- package/dist/components/atoms/Percent/index.js +0 -39
- package/dist/components/atoms/Percent/styles.js +0 -20
- package/dist/components/molecules/TextAndGradient/TextAndGradient.stories.js +0 -31
- package/dist/components/molecules/TextAndGradient/index.js +0 -36
- package/dist/components/molecules/TextAndGradient/styles.js +0 -18
- package/src/components/pages/RegistrationLoginFirstStep/RegistrationLoginFirstStep.stories.js +0 -17
- package/src/components/pages/RegistrationLoginFirstStep/index.js +0 -160
- package/src/components/pages/RegistrationLoginFirstStep/styles.js +0 -85
|
@@ -6,6 +6,11 @@ import { Button } from "../../atoms/GeneralButton";
|
|
|
6
6
|
import { useEffect, useState } from "react";
|
|
7
7
|
import { AsignationOption } from "../../atoms/AsignationOption/index";
|
|
8
8
|
import { getProfilePicture } from "../../../global-files/data";
|
|
9
|
+
import { SliderToolTip } from "../../atoms/SliderToolTip";
|
|
10
|
+
import InfoIcon from "../../../assets/images/sliderToolTip/infoIcon.svg";
|
|
11
|
+
import Slide1 from "../../../assets/images/sliderToolTip/slide21.svg";
|
|
12
|
+
import Slide2 from "../../../assets/images/sliderToolTip/slide22.svg";
|
|
13
|
+
import Slide3 from "../../../assets/images/sliderToolTip/slide23.svg";
|
|
9
14
|
|
|
10
15
|
export const StatusAsignationInfo = ({
|
|
11
16
|
status = "-",
|
|
@@ -31,6 +36,26 @@ export const StatusAsignationInfo = ({
|
|
|
31
36
|
setShowAsignationPanel(false);
|
|
32
37
|
}
|
|
33
38
|
};
|
|
39
|
+
const slidefront = [
|
|
40
|
+
{
|
|
41
|
+
slide: Slide1,
|
|
42
|
+
title: "Valida tu producto en cada activo digital",
|
|
43
|
+
description:
|
|
44
|
+
"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.",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
slide: Slide2,
|
|
48
|
+
title: "Aprueba o rechaza con un clic",
|
|
49
|
+
description:
|
|
50
|
+
"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.",
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
slide: Slide3,
|
|
54
|
+
title: "Estatus de tu producto en el proceso",
|
|
55
|
+
description:
|
|
56
|
+
"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.",
|
|
57
|
+
},
|
|
58
|
+
];
|
|
34
59
|
|
|
35
60
|
useEffect(() => {
|
|
36
61
|
if (showAsignationPanel) {
|
|
@@ -40,6 +65,12 @@ export const StatusAsignationInfo = ({
|
|
|
40
65
|
|
|
41
66
|
return (
|
|
42
67
|
<Container id={id}>
|
|
68
|
+
<SliderToolTip
|
|
69
|
+
infoIcon={InfoIcon}
|
|
70
|
+
slidefront={slidefront}
|
|
71
|
+
iconSize={"medium-image"}
|
|
72
|
+
slidePosition={"bottom-slide"}
|
|
73
|
+
></SliderToolTip>
|
|
43
74
|
{status !== "-" && <StatusTag statusType={status} ovalForm={true} />}
|
|
44
75
|
{showSaveButton && (
|
|
45
76
|
<Button
|
|
@@ -153,34 +153,34 @@ ProviderProductEditionDefault.args = {
|
|
|
153
153
|
state: { origin: "Contentoh" },
|
|
154
154
|
},
|
|
155
155
|
user: {
|
|
156
|
-
id_user:
|
|
157
|
-
name: "
|
|
158
|
-
last_name: "
|
|
159
|
-
email: "
|
|
160
|
-
position: "
|
|
161
|
-
telephone: "+
|
|
156
|
+
id_user: 1236,
|
|
157
|
+
name: "THD",
|
|
158
|
+
last_name: "Proveedor",
|
|
159
|
+
email: "thd@allfreemail.net",
|
|
160
|
+
position: "Prod test",
|
|
161
|
+
telephone: "+523111111111",
|
|
162
162
|
country: "México",
|
|
163
|
-
id_company:
|
|
164
|
-
id_cognito: "
|
|
163
|
+
id_company: 816,
|
|
164
|
+
id_cognito: "d660ccca-f906-4970-892c-6d152e832e5d",
|
|
165
165
|
birth_Date: null,
|
|
166
166
|
about_me: null,
|
|
167
167
|
zip_code: null,
|
|
168
168
|
address: null,
|
|
169
169
|
job: null,
|
|
170
|
-
id_stripe:
|
|
170
|
+
id_stripe: null,
|
|
171
171
|
id_role: 0,
|
|
172
172
|
active: 1,
|
|
173
173
|
is_retailer: 1,
|
|
174
174
|
email_notify: 0,
|
|
175
175
|
membership: {
|
|
176
|
-
id:
|
|
177
|
-
start_date: "2022-
|
|
178
|
-
end_date: "2023-
|
|
179
|
-
planID:
|
|
180
|
-
plan: "
|
|
181
|
-
name: "Plan
|
|
182
|
-
user_limit: "
|
|
183
|
-
products_limit: "
|
|
176
|
+
id: 797,
|
|
177
|
+
start_date: "2022-06-19T04:18:39.000Z",
|
|
178
|
+
end_date: "2023-06-19T04:18:39.000Z",
|
|
179
|
+
planID: 6,
|
|
180
|
+
plan: "prod_KvGd6YSTJyR3AP",
|
|
181
|
+
name: "Plan Small",
|
|
182
|
+
user_limit: "10",
|
|
183
|
+
products_limit: "1000",
|
|
184
184
|
type: "Enterprise",
|
|
185
185
|
},
|
|
186
186
|
src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1656087239674",
|
|
@@ -33,6 +33,13 @@ import { Link } from "react-router-dom";
|
|
|
33
33
|
import face from "../../../assets/images/defaultImages/defaultProfileImage.svg";
|
|
34
34
|
import errorModal from "../../../assets/images/genericModal/errorModal.svg";
|
|
35
35
|
import { GlobalModal } from "../../organisms/GlobalModal/index";
|
|
36
|
+
import { SliderToolTip } from "../../atoms/SliderToolTip";
|
|
37
|
+
import InfoIcon from "../../../assets/images/sliderToolTip/infoIcon.svg";
|
|
38
|
+
import Slide1_1 from "../../../assets/images/sliderToolTip/slide1.svg";
|
|
39
|
+
import Slide1_2 from "../../../assets/images/sliderToolTip/slide2.svg";
|
|
40
|
+
import Slide1_3 from "../../../assets/images/sliderToolTip/slide3.svg";
|
|
41
|
+
import Slide1_4 from "../../../assets/images/sliderToolTip/slide4.svg";
|
|
42
|
+
import Slide1_5 from "../../../assets/images/sliderToolTip/slide5.svg";
|
|
36
43
|
|
|
37
44
|
const reducerImages = (state, action) => {
|
|
38
45
|
let { values, attrForImgs } = state;
|
|
@@ -941,6 +948,35 @@ export const ProviderProductEdition = ({
|
|
|
941
948
|
}
|
|
942
949
|
};
|
|
943
950
|
|
|
951
|
+
const slidefront = [
|
|
952
|
+
{
|
|
953
|
+
slide: Slide1_1,
|
|
954
|
+
description:
|
|
955
|
+
"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.",
|
|
956
|
+
},
|
|
957
|
+
{
|
|
958
|
+
slide: Slide1_2,
|
|
959
|
+
description:
|
|
960
|
+
"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.",
|
|
961
|
+
},
|
|
962
|
+
{
|
|
963
|
+
slide: Slide1_3,
|
|
964
|
+
description:
|
|
965
|
+
"Revisa el contenido que deseas solicilitar, valida y tambien puedes agregar contenido extra, traducciones, o simplemente completar el checkout.",
|
|
966
|
+
},
|
|
967
|
+
{
|
|
968
|
+
slide: Slide1_4,
|
|
969
|
+
description:
|
|
970
|
+
"Elige el tipo de entrega de tu producto, puedes ser recolección en el lugar o por el contrario puedes dejarlo en nuestras oficinas.",
|
|
971
|
+
},
|
|
972
|
+
{
|
|
973
|
+
slide: Slide1_5,
|
|
974
|
+
title: "Bienvenido al modo Content-oh!",
|
|
975
|
+
description:
|
|
976
|
+
"Finalmente elige la forma de pago que más te guste, procede con el pago y listo.",
|
|
977
|
+
},
|
|
978
|
+
];
|
|
979
|
+
|
|
944
980
|
useEffect(() => {
|
|
945
981
|
setSaving(loading);
|
|
946
982
|
}, [loading]);
|
|
@@ -1235,14 +1271,22 @@ export const ProviderProductEdition = ({
|
|
|
1235
1271
|
</Link>
|
|
1236
1272
|
</button>
|
|
1237
1273
|
) : (
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1274
|
+
<>
|
|
1275
|
+
<SliderToolTip
|
|
1276
|
+
infoIcon={InfoIcon}
|
|
1277
|
+
slidefront={slidefront}
|
|
1278
|
+
iconSize={"big-image"}
|
|
1279
|
+
slidePosition={"top-slide"}
|
|
1280
|
+
></SliderToolTip>
|
|
1281
|
+
<Button
|
|
1282
|
+
onClick={() => {
|
|
1283
|
+
setShowContentohRequestModal &&
|
|
1284
|
+
setShowContentohRequestModal(true);
|
|
1285
|
+
}}
|
|
1286
|
+
buttonType="general-default-button"
|
|
1287
|
+
label="Enviar a Content-oh!"
|
|
1288
|
+
/>
|
|
1289
|
+
</>
|
|
1246
1290
|
)}
|
|
1247
1291
|
</div>
|
|
1248
1292
|
)}
|
|
@@ -425,6 +425,7 @@ export const RetailerProductEdition = ({
|
|
|
425
425
|
articleId: product?.article?.id_article,
|
|
426
426
|
articleData: updatedDatasheets,
|
|
427
427
|
};
|
|
428
|
+
console.log(updatedDatasheets, "updatedDatasheets");
|
|
428
429
|
if (product?.orderId) dataObject["orderId"] = product?.orderId;
|
|
429
430
|
try {
|
|
430
431
|
await axios.put(
|
package/src/index.js
CHANGED
|
@@ -22,7 +22,6 @@ export * from "./components/atoms/SliderToolTip/index";
|
|
|
22
22
|
export * from "./components/atoms/StatusTag/index";
|
|
23
23
|
export * from "./components/atoms/TabSection/index";
|
|
24
24
|
export * from "./components/atoms/ValidationPanel/index";
|
|
25
|
-
export * from "./components/atoms/VerticalSideMenuMainPage/index";
|
|
26
25
|
|
|
27
26
|
//molecules
|
|
28
27
|
export * from "./components/molecules/AvatarAndValidation/index";
|
|
@@ -1,39 +0,0 @@
|
|
|
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.PercentDefault = void 0;
|
|
9
|
-
|
|
10
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
-
|
|
12
|
-
var _index = require("./index");
|
|
13
|
-
|
|
14
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
-
|
|
16
|
-
var status = ["-", "Pr", "Rc", "As", "P", "QF", "AF", "AA", "AP", "AC", "RA", "RF", "RP", "RC", "Ex"];
|
|
17
|
-
var _default = {
|
|
18
|
-
title: "Components/atoms/Percent",
|
|
19
|
-
component: _index.Percent,
|
|
20
|
-
argTypes: {
|
|
21
|
-
statusType: {
|
|
22
|
-
options: status,
|
|
23
|
-
control: {
|
|
24
|
-
type: "select"
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
exports.default = _default;
|
|
30
|
-
|
|
31
|
-
var Template = function Template(args) {
|
|
32
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Percent, (0, _objectSpread2.default)({}, args));
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
var PercentDefault = Template.bind({});
|
|
36
|
-
exports.PercentDefault = PercentDefault;
|
|
37
|
-
PercentDefault.args = {
|
|
38
|
-
statusType: "-"
|
|
39
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.Percent = void 0;
|
|
9
|
-
|
|
10
|
-
var _styles = require("./styles");
|
|
11
|
-
|
|
12
|
-
var _polygon = _interopRequireDefault(require("../../../assets/images/arrow/polygon.svg"));
|
|
13
|
-
|
|
14
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
-
|
|
16
|
-
var Percent = function Percent(_ref) {
|
|
17
|
-
var statusType = _ref.statusType;
|
|
18
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
19
|
-
className: "status-".concat(statusType),
|
|
20
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
21
|
-
className: "text",
|
|
22
|
-
children: "Productos en proceso"
|
|
23
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
24
|
-
className: "percent-text",
|
|
25
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
26
|
-
className: "number",
|
|
27
|
-
children: "20"
|
|
28
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
29
|
-
src: _polygon.default,
|
|
30
|
-
alt: ""
|
|
31
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
32
|
-
className: "span",
|
|
33
|
-
children: "1%"
|
|
34
|
-
})]
|
|
35
|
-
})]
|
|
36
|
-
});
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
exports.Percent = Percent;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.Container = void 0;
|
|
9
|
-
|
|
10
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
11
|
-
|
|
12
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
|
-
|
|
14
|
-
var _variables = require("../../../global-files/variables");
|
|
15
|
-
|
|
16
|
-
var _templateObject;
|
|
17
|
-
|
|
18
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n border-radius: 7px;\n width: 97px;\n height: 83px;\n text-align: center;\n padding: 15px;\n\n &.status-Pr,\n &.status-Rc {\n border: 1px solid ", ";\n .span {\n color: ", ";\n }\n }\n &.status-- {\n border: 1px solid ", ";\n .span {\n color: ", ";\n }\n }\n\n &.status-As,\n &.status-P,\n &.status-QF {\n border: 1px solid ", ";\n .span {\n color: ", ";\n }\n }\n\n &.status-AF,\n &.status-AA,\n &.status-AP,\n &.status-AC {\n border: 1px solid ", ";\n .span {\n color: ", ";\n }\n }\n\n &.status-RA,\n &.status-RF,\n &.status-RP,\n &.status-RC {\n border: 1px solid #d74ded;\n .span {\n color: #d74ded;\n }\n }\n\n &.status-Ex {\n border: 1px solid ", ";\n .span {\n color: ", ";\n }\n }\n\n .text {\n color: ", ";\n font-size: 12px;\n font-family: ", ";\n line-height: 14px;\n }\n .percent-text {\n display: flex;\n .number {\n font-family: ", ";\n font-size: 28px;\n color: ", ";\n }\n .span{\n padding-top: 8px;\n font-size: 18px;\n }\n }\n"])), _variables.GlobalColors.reception, _variables.GlobalColors.reception, _variables.GlobalColors.s3, _variables.GlobalColors.s3, _variables.GlobalColors.in_progress, _variables.GlobalColors.in_progress, _variables.GlobalColors.finished, _variables.GlobalColors.finished, _variables.GlobalColors.exported, _variables.GlobalColors.exported, _variables.GlobalColors.s4, _variables.FontFamily.Raleway, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s4);
|
|
19
|
-
|
|
20
|
-
exports.Container = Container;
|
|
@@ -1,31 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
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;
|
|
@@ -1,18 +0,0 @@
|
|
|
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;
|
package/src/components/pages/RegistrationLoginFirstStep/RegistrationLoginFirstStep.stories.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { RegistrationLoginFirstStep } from "./index";
|
|
2
|
-
import LoginImage from "../../../assets/images/carouselImagesLogin/loginImage.svg";
|
|
3
|
-
import Login2 from "../../../assets/images/carouselImagesLogin/login2.svg";
|
|
4
|
-
import Login3 from "../../../assets/images/carouselImagesLogin/login3.svg";
|
|
5
|
-
|
|
6
|
-
export default {
|
|
7
|
-
title: "Components/pages/RegistrationLoginFirstStep",
|
|
8
|
-
component: RegistrationLoginFirstStep,
|
|
9
|
-
};
|
|
10
|
-
const Template = (args) => <RegistrationLoginFirstStep {...args} />;
|
|
11
|
-
|
|
12
|
-
export const RegistrationLoginFirstStepDefault = Template.bind({});
|
|
13
|
-
|
|
14
|
-
RegistrationLoginFirstStepDefault.args = {
|
|
15
|
-
imageArrayCarousel: [LoginImage, Login2, Login3],
|
|
16
|
-
textCarousel: "Elige la plataforma que conecta proovedores y retailers",
|
|
17
|
-
};
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
import { Container } from "./styles";
|
|
2
|
-
import { GradientPanel } from "../../atoms/GradientPanel";
|
|
3
|
-
import { CarouselImagesLogin } from "../../molecules/CarouselImagesLogin";
|
|
4
|
-
import { useState } from "react";
|
|
5
|
-
import { LogoImage } from "../../atoms/LogoImage";
|
|
6
|
-
import { ScreenHeader } from "../../atoms/ScreenHeader";
|
|
7
|
-
import { GlobalColors, FontFamily } from "../../../global-files/variables";
|
|
8
|
-
import { TagAndInput } from "../../molecules/TagAndInput";
|
|
9
|
-
import { Button } from "../../atoms/GeneralButton";
|
|
10
|
-
import { GeneralInput } from "../../atoms/GeneralInput";
|
|
11
|
-
|
|
12
|
-
export const RegistrationLoginFirstStep = ({
|
|
13
|
-
imageArrayCarousel = [],
|
|
14
|
-
textCarousel,
|
|
15
|
-
backogroundColorCarousel,
|
|
16
|
-
}) => {
|
|
17
|
-
const [emptyName, setEmptyName] = useState(false);
|
|
18
|
-
const [emptyLastName, setEmptyLastName] = useState(false);
|
|
19
|
-
const [emptyEmail, setEmptyEmail] = useState(false);
|
|
20
|
-
const [emptyJob, setEmptyJob] = useState(false);
|
|
21
|
-
const [emptyPhone, setEmptyPhone] = useState(false);
|
|
22
|
-
const [invalidEmail, setInvalidEmail] = useState(false);
|
|
23
|
-
|
|
24
|
-
const validate = async (e) => {
|
|
25
|
-
e.preventDefault();
|
|
26
|
-
const name = document.querySelector("#nameInput").value;
|
|
27
|
-
const lastName = document.querySelector("#lastNameInput").value;
|
|
28
|
-
const email = document.querySelector("#emailInput").value;
|
|
29
|
-
const job = document.querySelector("#jobInput").value;
|
|
30
|
-
const phone = document.querySelector("#phoneInput").value;
|
|
31
|
-
name === "" ? setEmptyName(true) : setEmptyName(false);
|
|
32
|
-
lastName === "" ? setEmptyLastName(true) : setEmptyLastName(false);
|
|
33
|
-
email === "" ? setEmptyEmail(true) : setEmptyEmail(false);
|
|
34
|
-
job === "" ? setEmptyJob(true) : setEmptyJob(false);
|
|
35
|
-
phone === "" ? setEmptyPhone(true) : setEmptyPhone(false);
|
|
36
|
-
!/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(
|
|
37
|
-
email
|
|
38
|
-
)
|
|
39
|
-
? setInvalidEmail(true)
|
|
40
|
-
: setInvalidEmail(false);
|
|
41
|
-
};
|
|
42
|
-
const loginRight = [
|
|
43
|
-
<LogoImage key="1" />,
|
|
44
|
-
<div className="credenciales" key={"2"}>
|
|
45
|
-
<ScreenHeader
|
|
46
|
-
fontFamily={FontFamily.AvenirNext}
|
|
47
|
-
color={GlobalColors.s5}
|
|
48
|
-
text={"Ingresa tus credenciales"}
|
|
49
|
-
/>
|
|
50
|
-
</div>,
|
|
51
|
-
<div className="user" key="3">
|
|
52
|
-
<div className="name-registration-user">
|
|
53
|
-
<TagAndInput
|
|
54
|
-
inputType={"text"}
|
|
55
|
-
inputId={"nameInput"}
|
|
56
|
-
label={"Nombre"}
|
|
57
|
-
inputPlaceHolder={"Nombre"}
|
|
58
|
-
/>
|
|
59
|
-
<TagAndInput
|
|
60
|
-
inputType={"text"}
|
|
61
|
-
inputId={"lastNameInput"}
|
|
62
|
-
label={"Apellido"}
|
|
63
|
-
inputPlaceHolder={"Apellido"}
|
|
64
|
-
/>
|
|
65
|
-
</div>
|
|
66
|
-
{emptyName && <label>Ingrese su nombre</label>}
|
|
67
|
-
{emptyLastName && <label>Ingrese sus apellidos</label>}
|
|
68
|
-
<TagAndInput
|
|
69
|
-
inputType={"text"}
|
|
70
|
-
inputId={"emailInput"}
|
|
71
|
-
label={"Correo electrónico"}
|
|
72
|
-
inputPlaceHolder={"username@contentoh.com"}
|
|
73
|
-
/>
|
|
74
|
-
{emptyEmail && <label>Ingrese su correo</label>}
|
|
75
|
-
{invalidEmail && !emptyEmail && <label>Ingrese un correo válido</label>}
|
|
76
|
-
<TagAndInput
|
|
77
|
-
inputType={"text"}
|
|
78
|
-
inputId={"jobInput"}
|
|
79
|
-
label={"Puesto laboral"}
|
|
80
|
-
inputPlaceHolder={"Puesto dentro de la empresa"}
|
|
81
|
-
/>
|
|
82
|
-
{emptyJob && <label>Ingrese su puesto</label>}
|
|
83
|
-
<ScreenHeader text={"Teléfono"} headerType={"input-name-header"} />
|
|
84
|
-
<div className="phone-registration-user">
|
|
85
|
-
<select name="select" className="phone-options">
|
|
86
|
-
<option>+52</option>
|
|
87
|
-
<option>+54</option>
|
|
88
|
-
<option>+57</option>
|
|
89
|
-
<option>+506</option>
|
|
90
|
-
<option>+593</option>
|
|
91
|
-
<option>+503</option>
|
|
92
|
-
<option>+504</option>
|
|
93
|
-
<option>+507</option>
|
|
94
|
-
<option>+51</option>
|
|
95
|
-
</select>
|
|
96
|
-
<GeneralInput
|
|
97
|
-
inputId={"phoneInput"}
|
|
98
|
-
inputType={"text"}
|
|
99
|
-
inputPlaceholder={"Teléfono"}
|
|
100
|
-
/>
|
|
101
|
-
</div>
|
|
102
|
-
{emptyPhone && <label>Ingrese su número de teléfono</label>}
|
|
103
|
-
<ScreenHeader text={"País"} headerType={"input-name-header"} />
|
|
104
|
-
<select name="select" className="country-options">
|
|
105
|
-
<option value="value1" selected>
|
|
106
|
-
Selecciona tu país
|
|
107
|
-
</option>
|
|
108
|
-
<option value="value2">Argentina</option>
|
|
109
|
-
<option value="value3">Colombia</option>
|
|
110
|
-
<option value="value2">Ecuador</option>
|
|
111
|
-
<option value="value3">El Salvador</option>
|
|
112
|
-
<option value="value2">Honduras</option>
|
|
113
|
-
<option value="value3">México</option>
|
|
114
|
-
<option value="value2">Panamá</option>
|
|
115
|
-
<option value="value3">Perú</option>
|
|
116
|
-
</select>
|
|
117
|
-
{emptyEmail && <label>Seleccione su país</label>}
|
|
118
|
-
</div>,
|
|
119
|
-
<div className="button-end" key="4">
|
|
120
|
-
<Button
|
|
121
|
-
buttonType={"general-default-button"}
|
|
122
|
-
label={"Enviar"}
|
|
123
|
-
onClick={(e) => validate(e)}
|
|
124
|
-
/>
|
|
125
|
-
</div>,
|
|
126
|
-
<div className="progress-bar" key="5">
|
|
127
|
-
<div className="progress-bar-first-step"></div>
|
|
128
|
-
<div className="progress-bar-registration"></div>
|
|
129
|
-
</div>,
|
|
130
|
-
<ScreenHeader
|
|
131
|
-
text={"Paso 1"}
|
|
132
|
-
headerType={"date-header"}
|
|
133
|
-
color={GlobalColors.s4}
|
|
134
|
-
key="6"
|
|
135
|
-
/>,
|
|
136
|
-
<div className="new-login" key="7">
|
|
137
|
-
<p className="pre-registro">
|
|
138
|
-
¿Ya tienes una cuenta?<span> Inicia Sesión</span>
|
|
139
|
-
</p>
|
|
140
|
-
</div>,
|
|
141
|
-
];
|
|
142
|
-
return (
|
|
143
|
-
<Container>
|
|
144
|
-
<div className="home-retailer">
|
|
145
|
-
<CarouselImagesLogin
|
|
146
|
-
panelImg={imageArrayCarousel}
|
|
147
|
-
panelText={textCarousel}
|
|
148
|
-
panelColor={backogroundColorCarousel}
|
|
149
|
-
/>
|
|
150
|
-
</div>
|
|
151
|
-
<div className="home-login-retailer">
|
|
152
|
-
<GradientPanel
|
|
153
|
-
componentsArray={loginRight}
|
|
154
|
-
panelType={"home-login"}
|
|
155
|
-
panelColor={GlobalColors.white}
|
|
156
|
-
/>
|
|
157
|
-
</div>
|
|
158
|
-
</Container>
|
|
159
|
-
);
|
|
160
|
-
};
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
2
|
-
import { FontFamily, GlobalColors } from "../../../global-files/variables";
|
|
3
|
-
|
|
4
|
-
export const Container = styled.div`
|
|
5
|
-
display: flex;
|
|
6
|
-
width: 100%;
|
|
7
|
-
height: 100vh;
|
|
8
|
-
.user {
|
|
9
|
-
.name-registration-user {
|
|
10
|
-
display: flex;
|
|
11
|
-
justify-content: space-between;
|
|
12
|
-
input {
|
|
13
|
-
width: 160px;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
.input-name-header {
|
|
17
|
-
margin-bottom: 4px;
|
|
18
|
-
margin-top: 12px;
|
|
19
|
-
}
|
|
20
|
-
.phone-registration-user {
|
|
21
|
-
display: flex;
|
|
22
|
-
justify-content: space-between;
|
|
23
|
-
.phone-options {
|
|
24
|
-
width: 80px;
|
|
25
|
-
}
|
|
26
|
-
input {
|
|
27
|
-
width: 100%;
|
|
28
|
-
}
|
|
29
|
-
& + * {
|
|
30
|
-
margin-top: 10px;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
.country-options,
|
|
34
|
-
.phone-options {
|
|
35
|
-
width: 100%;
|
|
36
|
-
border: 1px solid ${GlobalColors.s2};
|
|
37
|
-
font-family: ${FontFamily.AvenirNext};
|
|
38
|
-
color: ${GlobalColors.s4};
|
|
39
|
-
font-weight: normal;
|
|
40
|
-
font-size: 12px;
|
|
41
|
-
line-height: 15px;
|
|
42
|
-
padding: 10px;
|
|
43
|
-
outline: none;
|
|
44
|
-
border-radius: 2px;
|
|
45
|
-
resize: none;
|
|
46
|
-
&:focus {
|
|
47
|
-
border: 1px solid ${GlobalColors.magenta_s2};
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
.button-end {
|
|
52
|
-
text-align: end;
|
|
53
|
-
.general-default-button {
|
|
54
|
-
width: 160px;
|
|
55
|
-
}
|
|
56
|
-
& + * {
|
|
57
|
-
margin-top: 10px;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
.progress-bar {
|
|
61
|
-
width: 100%;
|
|
62
|
-
height: 8px;
|
|
63
|
-
display: flex;
|
|
64
|
-
justify-content: space-between;
|
|
65
|
-
.progress-bar-first-step {
|
|
66
|
-
width: 33.33%;
|
|
67
|
-
background-color: rgb(196, 196, 196);
|
|
68
|
-
}
|
|
69
|
-
.progress-bar-registration {
|
|
70
|
-
background-color: rgb(226, 226, 226);
|
|
71
|
-
width: 66.66%;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
.date-header {
|
|
75
|
-
.new-login {
|
|
76
|
-
& + * {
|
|
77
|
-
margin-top: 20px;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
.home-login-retailer,
|
|
82
|
-
.home-retailer {
|
|
83
|
-
width: 50%;
|
|
84
|
-
}
|
|
85
|
-
`;
|