contentoh-components-library 21.0.5 → 21.0.8
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/CharCounter/CharCounter.stories.js +31 -0
- package/dist/components/atoms/CharCounter/index.js +22 -0
- package/dist/components/atoms/CharCounter/styles.js +20 -0
- package/dist/components/atoms/GeneralInput/index.js +78 -49
- package/dist/components/atoms/GeneralInput/styles.js +4 -1
- package/dist/components/atoms/GradientPanel/styles.js +2 -2
- package/dist/components/atoms/InputFormatter/index.js +132 -66
- package/dist/components/atoms/InputFormatter/styles.js +2 -2
- package/dist/components/atoms/ProgressBar/styles.js +1 -1
- package/dist/components/atoms/Select/index.js +4 -2
- package/dist/components/atoms/Select/style.js +1 -1
- package/dist/components/atoms/StatusTag/styles.js +1 -1
- package/dist/components/molecules/CarouselImagesLogin/CarouselImagesLogin.stories.js +37 -0
- package/dist/components/molecules/CarouselImagesLogin/index.js +94 -0
- package/dist/components/molecules/CarouselImagesLogin/styles.js +21 -0
- package/dist/components/molecules/LoginPasswordStrength/LoginPasswordStrength.stories.js +28 -0
- package/dist/components/molecules/LoginPasswordStrength/index.js +131 -0
- package/dist/components/molecules/LoginPasswordStrength/styles.js +78 -0
- package/dist/components/molecules/TagAndInput/index.js +4 -2
- package/dist/components/organisms/InputGroup/index.js +12 -10
- package/dist/components/pages/ChangePasswordLogin/ChangePasswordLogin.stories.js +38 -0
- package/dist/components/pages/ChangePasswordLogin/index.js +131 -0
- package/dist/components/pages/ChangePasswordLogin/styles.js +18 -0
- package/dist/components/pages/EmailResetPassword/EmailResetPassword.stories.js +37 -0
- package/dist/components/pages/EmailResetPassword/index.js +130 -0
- package/dist/components/pages/EmailResetPassword/styles.js +20 -0
- 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/RegistrationLoginSecondStep/RegistrationLoginSecondStep.stories.js +38 -0
- package/dist/components/pages/RegistrationLoginSecondStep/index.js +176 -0
- package/dist/components/pages/RegistrationLoginSecondStep/styles.js +20 -0
- package/dist/components/pages/RegistrationLoginThirdStep/RegistrationLoginThirdStep.stories.js +37 -0
- package/dist/components/pages/RegistrationLoginThirdStep/index.js +178 -0
- package/dist/components/pages/RegistrationLoginThirdStep/styles.js +20 -0
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +15 -37
- package/dist/components/pages/RetailerProductEdition/index.js +92 -56
- package/dist/components/pages/VerificationCodeResetPassword/VerificationCodeResetPassword.stories.js +37 -0
- package/dist/components/pages/VerificationCodeResetPassword/index.js +121 -0
- package/dist/components/pages/VerificationCodeResetPassword/styles.js +20 -0
- package/dist/components/pages/VerificationCodeResetPassword/utils.js +69 -0
- package/package.json +2 -2
- package/src/assets/images/carouselImagesLogin/login2.svg +117 -0
- package/src/assets/images/carouselImagesLogin/login3.svg +147 -0
- package/src/assets/images/carouselImagesLogin/loginImage.svg +301 -0
- package/src/components/atoms/CharCounter/CharCounter.stories.js +11 -0
- package/src/components/atoms/CharCounter/index.js +13 -0
- package/src/components/atoms/CharCounter/styles.js +10 -0
- package/src/components/atoms/GeneralInput/index.js +74 -50
- package/src/components/atoms/GeneralInput/styles.js +9 -0
- package/src/components/atoms/GradientPanel/styles.js +7 -1
- package/src/components/atoms/InputFormatter/index.js +109 -46
- package/src/components/atoms/InputFormatter/styles.js +6 -0
- package/src/components/atoms/ProgressBar/styles.js +2 -1
- package/src/components/atoms/Select/index.js +3 -1
- package/src/components/atoms/Select/style.js +1 -2
- package/src/components/atoms/StatusTag/styles.js +2 -1
- package/src/components/molecules/CarouselImagesLogin/CarouselImagesLogin.stories.js +17 -0
- package/src/components/molecules/CarouselImagesLogin/index.js +68 -0
- package/src/components/molecules/CarouselImagesLogin/styles.js +60 -0
- package/src/components/molecules/LoginPasswordStrength/LoginPasswordStrength.stories.js +8 -0
- package/src/components/molecules/LoginPasswordStrength/index.js +89 -0
- package/src/components/molecules/LoginPasswordStrength/styles.js +87 -0
- package/src/components/molecules/TagAndInput/index.js +2 -0
- package/src/components/organisms/FullTabsMenu/index.js +1 -1
- package/src/components/organisms/InputGroup/index.js +19 -4
- package/src/components/pages/ChangePasswordLogin/ChangePasswordLogin.stories.js +18 -0
- package/src/components/pages/ChangePasswordLogin/index.js +78 -0
- package/src/components/pages/ChangePasswordLogin/styles.js +20 -0
- package/src/components/pages/EmailResetPassword/EmailResetPassword.stories.js +17 -0
- package/src/components/pages/EmailResetPassword/index.js +77 -0
- package/src/components/pages/EmailResetPassword/styles.js +27 -0
- 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/RegistrationLoginSecondStep/RegistrationLoginSecondStep.stories.js +18 -0
- package/src/components/pages/RegistrationLoginSecondStep/index.js +111 -0
- package/src/components/pages/RegistrationLoginSecondStep/styles.js +64 -0
- package/src/components/pages/RegistrationLoginThirdStep/RegistrationLoginThirdStep.stories.js +17 -0
- package/src/components/pages/RegistrationLoginThirdStep/index.js +106 -0
- package/src/components/pages/RegistrationLoginThirdStep/styles.js +48 -0
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +27 -51
- package/src/components/pages/RetailerProductEdition/index.js +172 -52
- package/src/components/pages/VerificationCodeResetPassword/VerificationCodeResetPassword.stories.js +17 -0
- package/src/components/pages/VerificationCodeResetPassword/index.js +92 -0
- package/src/components/pages/VerificationCodeResetPassword/styles.js +54 -0
- package/src/components/pages/VerificationCodeResetPassword/utils.js +56 -0
|
@@ -0,0 +1,176 @@
|
|
|
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.RegistrationLoginSecondStep = void 0;
|
|
9
|
+
|
|
10
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
11
|
+
|
|
12
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/asyncToGenerator"));
|
|
13
|
+
|
|
14
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
15
|
+
|
|
16
|
+
var _styles = require("./styles");
|
|
17
|
+
|
|
18
|
+
var _GradientPanel = require("../../atoms/GradientPanel");
|
|
19
|
+
|
|
20
|
+
var _CarouselImagesLogin = require("../../molecules/CarouselImagesLogin");
|
|
21
|
+
|
|
22
|
+
var _react = require("react");
|
|
23
|
+
|
|
24
|
+
var _ScreenHeader = require("../../atoms/ScreenHeader");
|
|
25
|
+
|
|
26
|
+
var _variables = require("../../../global-files/variables");
|
|
27
|
+
|
|
28
|
+
var _GeneralButton = require("../../atoms/GeneralButton");
|
|
29
|
+
|
|
30
|
+
var _CheckBox = require("../../atoms/CheckBox");
|
|
31
|
+
|
|
32
|
+
var _LoginPasswordStrength = require("../../molecules/LoginPasswordStrength");
|
|
33
|
+
|
|
34
|
+
var _LogoImage = require("../../atoms/LogoImage");
|
|
35
|
+
|
|
36
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
37
|
+
|
|
38
|
+
var RegistrationLoginSecondStep = function RegistrationLoginSecondStep(_ref) {
|
|
39
|
+
var _ref$imageArrayCarous = _ref.imageArrayCarousel,
|
|
40
|
+
imageArrayCarousel = _ref$imageArrayCarous === void 0 ? [] : _ref$imageArrayCarous,
|
|
41
|
+
textCarousel = _ref.textCarousel,
|
|
42
|
+
backogroundColorCarousel = _ref.backogroundColorCarousel,
|
|
43
|
+
textHeaderRight = _ref.textHeaderRight;
|
|
44
|
+
|
|
45
|
+
var _useState = (0, _react.useState)(false),
|
|
46
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
47
|
+
emptyPassword = _useState2[0],
|
|
48
|
+
setEmptyPassword = _useState2[1];
|
|
49
|
+
|
|
50
|
+
var _useState3 = (0, _react.useState)(false),
|
|
51
|
+
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
52
|
+
emptyConfirmPassword = _useState4[0],
|
|
53
|
+
setEmptyConfirmPassword = _useState4[1];
|
|
54
|
+
|
|
55
|
+
var _useState5 = (0, _react.useState)(true),
|
|
56
|
+
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
|
57
|
+
matchPasswords = _useState6[0],
|
|
58
|
+
setMatchPasswords = _useState6[1];
|
|
59
|
+
|
|
60
|
+
var validate = /*#__PURE__*/function () {
|
|
61
|
+
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(e) {
|
|
62
|
+
var password, confirmPassword;
|
|
63
|
+
return _regenerator.default.wrap(function _callee$(_context) {
|
|
64
|
+
while (1) {
|
|
65
|
+
switch (_context.prev = _context.next) {
|
|
66
|
+
case 0:
|
|
67
|
+
e.preventDefault();
|
|
68
|
+
password = document.querySelector("#newPasswordInput").value;
|
|
69
|
+
password.length < 8 ? setEmptyPassword(true) : setEmptyPassword(false);
|
|
70
|
+
confirmPassword = document.querySelector("#confirmPasswordInput").value;
|
|
71
|
+
confirmPassword === "" ? setEmptyConfirmPassword(true) : setEmptyConfirmPassword(false);
|
|
72
|
+
|
|
73
|
+
if (password === confirmPassword) {
|
|
74
|
+
setMatchPasswords(true);
|
|
75
|
+
} else {
|
|
76
|
+
setMatchPasswords(false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
case 6:
|
|
80
|
+
case "end":
|
|
81
|
+
return _context.stop();
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}, _callee);
|
|
85
|
+
}));
|
|
86
|
+
|
|
87
|
+
return function validate(_x) {
|
|
88
|
+
return _ref2.apply(this, arguments);
|
|
89
|
+
};
|
|
90
|
+
}();
|
|
91
|
+
|
|
92
|
+
var loginRight = [/*#__PURE__*/(0, _jsxRuntime.jsx)(_LogoImage.LogoImage, {}, "1"), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
93
|
+
className: "credenciales",
|
|
94
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
95
|
+
fontFamily: _variables.FontFamily.AvenirNext,
|
|
96
|
+
color: _variables.GlobalColors.s5,
|
|
97
|
+
text: textHeaderRight
|
|
98
|
+
})
|
|
99
|
+
}, "2"), /*#__PURE__*/(0, _jsxRuntime.jsx)(_LoginPasswordStrength.LoginPasswordStrength, {
|
|
100
|
+
emptyPassword: emptyPassword,
|
|
101
|
+
emptyConfirmPassword: emptyConfirmPassword,
|
|
102
|
+
matchPasswords: matchPasswords,
|
|
103
|
+
textTittle: textHeaderRight
|
|
104
|
+
}, "3"), /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
105
|
+
className: "label-terms",
|
|
106
|
+
children: "T\xE9rminos y condiciones"
|
|
107
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
108
|
+
className: "checkbox-terms",
|
|
109
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
110
|
+
type: "checkbox"
|
|
111
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
112
|
+
text: "Conoce nuestros termnios y condiciones de cada uno de nuestros servicios. Si tienes algunda duda o comentario escríbenos.",
|
|
113
|
+
headerType: "date-header"
|
|
114
|
+
})]
|
|
115
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
116
|
+
className: "label-terms",
|
|
117
|
+
children: "Aviso de privacidad"
|
|
118
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
119
|
+
className: "checkbox-terms",
|
|
120
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
121
|
+
type: "checkbox"
|
|
122
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
123
|
+
text: "Todos los datos estan protegidos.",
|
|
124
|
+
headerType: "date-header"
|
|
125
|
+
})]
|
|
126
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
127
|
+
className: "button-end",
|
|
128
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
129
|
+
buttonType: "general-default-button",
|
|
130
|
+
label: "Enviar",
|
|
131
|
+
onClick: function onClick(e) {
|
|
132
|
+
return validate(e);
|
|
133
|
+
}
|
|
134
|
+
})
|
|
135
|
+
}, "6"), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
136
|
+
className: "progress-bar",
|
|
137
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
138
|
+
className: "progress-bar-first-step-check"
|
|
139
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
140
|
+
className: "progress-bar-second-step"
|
|
141
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
142
|
+
className: "progress-bar-registration"
|
|
143
|
+
})]
|
|
144
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
145
|
+
text: "Paso 2",
|
|
146
|
+
headerType: "date-header",
|
|
147
|
+
color: _variables.GlobalColors.s4
|
|
148
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
149
|
+
className: "new-login",
|
|
150
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("p", {
|
|
151
|
+
className: "pre-registro",
|
|
152
|
+
children: ["\xBFA\xFAn no tienes cuenta?", /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
153
|
+
children: " Reg\xEDstrate"
|
|
154
|
+
})]
|
|
155
|
+
})
|
|
156
|
+
}, "7")];
|
|
157
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
158
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
159
|
+
className: "home-retailer",
|
|
160
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CarouselImagesLogin.CarouselImagesLogin, {
|
|
161
|
+
panelImg: imageArrayCarousel,
|
|
162
|
+
panelText: textCarousel,
|
|
163
|
+
panelColor: backogroundColorCarousel
|
|
164
|
+
})
|
|
165
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
166
|
+
className: "home-login-retailer",
|
|
167
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_GradientPanel.GradientPanel, {
|
|
168
|
+
panelColor: _variables.GlobalColors.white,
|
|
169
|
+
componentsArray: loginRight,
|
|
170
|
+
panelType: "home-login"
|
|
171
|
+
})
|
|
172
|
+
})]
|
|
173
|
+
});
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
exports.RegistrationLoginSecondStep = RegistrationLoginSecondStep;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.Container = void 0;
|
|
9
|
+
|
|
10
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
11
|
+
|
|
12
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
|
+
|
|
14
|
+
var _variables = require("../../../global-files/variables");
|
|
15
|
+
|
|
16
|
+
var _templateObject;
|
|
17
|
+
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n width: 100%;\n height: 100vh;\n .button-end {\n text-align: end;\n .general-default-button {\n width: 160px;\n }\n & + * {\n margin-top: 10px;\n }\n }\n .progress-bar {\n width: 100%;\n height: 8px;\n display: flex;\n justify-content: space-between;\n .progress-bar-first-step-check {\n width: 33.33%;\n background-color: ", ";\n }\n .progress-bar-second-step {\n width: 33.33%;\n background-color: rgb(196, 196, 196);\n }\n .progress-bar-registration {\n background-color: rgb(226, 226, 226);\n width: 33.33%;\n }\n }\n .date-header {\n margin-left: 33.33%;\n }\n .home-login-retailer,\n .home-retailer {\n width: 50%;\n }\n .checkbox-terms {\n display: flex;\n margin-bottom: 5px;\n input {\n cursor: pointer;\n & + * {\n margin-left: 15px;\n }\n }\n }\n .label-terms {\n //color: ", ";\n color: rgb(129, 115, 147);\n font-size: 13px;\n line-height: 24px;\n font-weight: 700;\n cursor: pointer;\n margin-left: 25px;\n & + * {\n margin-top: 5px;\n }\n }\n"])), _variables.GlobalColors.exported, _variables.GlobalColors.original_purpura);
|
|
19
|
+
|
|
20
|
+
exports.Container = Container;
|
package/dist/components/pages/RegistrationLoginThirdStep/RegistrationLoginThirdStep.stories.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
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.RegistrationLoginThirdStepDefault = void 0;
|
|
9
|
+
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
+
|
|
12
|
+
var _index = require("./index");
|
|
13
|
+
|
|
14
|
+
var _loginImage = _interopRequireDefault(require("../../../assets/images/carouselImagesLogin/loginImage.svg"));
|
|
15
|
+
|
|
16
|
+
var _login = _interopRequireDefault(require("../../../assets/images/carouselImagesLogin/login2.svg"));
|
|
17
|
+
|
|
18
|
+
var _login2 = _interopRequireDefault(require("../../../assets/images/carouselImagesLogin/login3.svg"));
|
|
19
|
+
|
|
20
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
+
|
|
22
|
+
var _default = {
|
|
23
|
+
title: "Components/pages/RegistrationLoginThirdStep",
|
|
24
|
+
component: _index.RegistrationLoginThirdStep
|
|
25
|
+
};
|
|
26
|
+
exports.default = _default;
|
|
27
|
+
|
|
28
|
+
var Template = function Template(args) {
|
|
29
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.RegistrationLoginThirdStep, (0, _objectSpread2.default)({}, args));
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
var RegistrationLoginThirdStepDefault = Template.bind({});
|
|
33
|
+
exports.RegistrationLoginThirdStepDefault = RegistrationLoginThirdStepDefault;
|
|
34
|
+
RegistrationLoginThirdStepDefault.args = {
|
|
35
|
+
imageArrayCarousel: [_loginImage.default, _login.default, _login2.default],
|
|
36
|
+
textCarousel: "Elige la plataforma que conecta proovedores y retailers"
|
|
37
|
+
};
|
|
@@ -0,0 +1,178 @@
|
|
|
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.RegistrationLoginThirdStep = void 0;
|
|
9
|
+
|
|
10
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
11
|
+
|
|
12
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/asyncToGenerator"));
|
|
13
|
+
|
|
14
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
15
|
+
|
|
16
|
+
var _styles = require("./styles");
|
|
17
|
+
|
|
18
|
+
var _GradientPanel = require("../../atoms/GradientPanel");
|
|
19
|
+
|
|
20
|
+
var _CarouselImagesLogin = require("../../molecules/CarouselImagesLogin");
|
|
21
|
+
|
|
22
|
+
var _react = require("react");
|
|
23
|
+
|
|
24
|
+
var _LogoImage = require("../../atoms/LogoImage");
|
|
25
|
+
|
|
26
|
+
var _ScreenHeader = require("../../atoms/ScreenHeader");
|
|
27
|
+
|
|
28
|
+
var _variables = require("../../../global-files/variables");
|
|
29
|
+
|
|
30
|
+
var _TagAndInput = require("../../molecules/TagAndInput");
|
|
31
|
+
|
|
32
|
+
var _GeneralButton = require("../../atoms/GeneralButton");
|
|
33
|
+
|
|
34
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
35
|
+
|
|
36
|
+
var RegistrationLoginThirdStep = function RegistrationLoginThirdStep(_ref) {
|
|
37
|
+
var _ref$imageArrayCarous = _ref.imageArrayCarousel,
|
|
38
|
+
imageArrayCarousel = _ref$imageArrayCarous === void 0 ? [] : _ref$imageArrayCarous,
|
|
39
|
+
textCarousel = _ref.textCarousel,
|
|
40
|
+
backogroundColorCarousel = _ref.backogroundColorCarousel;
|
|
41
|
+
|
|
42
|
+
var _useState = (0, _react.useState)(false),
|
|
43
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
44
|
+
emptyCommercialName = _useState2[0],
|
|
45
|
+
setEmptyCommercialName = _useState2[1];
|
|
46
|
+
|
|
47
|
+
var _useState3 = (0, _react.useState)(false),
|
|
48
|
+
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
49
|
+
emptyBussinesName = _useState4[0],
|
|
50
|
+
setEmptyBussinesName = _useState4[1];
|
|
51
|
+
|
|
52
|
+
var _useState5 = (0, _react.useState)(false),
|
|
53
|
+
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
|
54
|
+
emptyRFC = _useState6[0],
|
|
55
|
+
setEmptyRFC = _useState6[1];
|
|
56
|
+
|
|
57
|
+
var _useState7 = (0, _react.useState)(false),
|
|
58
|
+
_useState8 = (0, _slicedToArray2.default)(_useState7, 2),
|
|
59
|
+
emptyFiscalAddress = _useState8[0],
|
|
60
|
+
setEmptyFiscalAddress = _useState8[1];
|
|
61
|
+
|
|
62
|
+
var validate = /*#__PURE__*/function () {
|
|
63
|
+
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(e) {
|
|
64
|
+
var commercialName, bussinesName, RFC, FiscalAddress;
|
|
65
|
+
return _regenerator.default.wrap(function _callee$(_context) {
|
|
66
|
+
while (1) {
|
|
67
|
+
switch (_context.prev = _context.next) {
|
|
68
|
+
case 0:
|
|
69
|
+
e.preventDefault();
|
|
70
|
+
commercialName = document.querySelector("#commercialNameInput").value;
|
|
71
|
+
bussinesName = document.querySelector("#bussinesNameInput").value;
|
|
72
|
+
RFC = document.querySelector("#rfcInput").value;
|
|
73
|
+
FiscalAddress = document.querySelector("#fiscalAddressInput").value;
|
|
74
|
+
commercialName === "" ? setEmptyCommercialName(true) : setEmptyCommercialName(false);
|
|
75
|
+
bussinesName === "" ? setEmptyBussinesName(true) : setEmptyBussinesName(false);
|
|
76
|
+
RFC === "" ? setEmptyRFC(true) : setEmptyRFC(false);
|
|
77
|
+
FiscalAddress === "" ? setEmptyFiscalAddress(true) : setEmptyFiscalAddress(false);
|
|
78
|
+
|
|
79
|
+
case 9:
|
|
80
|
+
case "end":
|
|
81
|
+
return _context.stop();
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}, _callee);
|
|
85
|
+
}));
|
|
86
|
+
|
|
87
|
+
return function validate(_x) {
|
|
88
|
+
return _ref2.apply(this, arguments);
|
|
89
|
+
};
|
|
90
|
+
}();
|
|
91
|
+
|
|
92
|
+
var loginRight = [/*#__PURE__*/(0, _jsxRuntime.jsx)(_LogoImage.LogoImage, {}, "1"), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
93
|
+
className: "credenciales",
|
|
94
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
95
|
+
fontFamily: _variables.FontFamily.AvenirNext,
|
|
96
|
+
color: _variables.GlobalColors.s5,
|
|
97
|
+
text: "Ingresa tus credenciales"
|
|
98
|
+
})
|
|
99
|
+
}, "2"), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
100
|
+
className: "user",
|
|
101
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
102
|
+
inputType: "text",
|
|
103
|
+
inputId: "commercialNameInput",
|
|
104
|
+
label: "Nombre comercial",
|
|
105
|
+
inputPlaceHolder: "Nombre comercial"
|
|
106
|
+
}), emptyCommercialName && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
107
|
+
children: "Ingrese el nombre comercial de la empresa"
|
|
108
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
109
|
+
inputType: "text",
|
|
110
|
+
inputId: "bussinesNameInput",
|
|
111
|
+
label: "Razón social",
|
|
112
|
+
inputPlaceHolder: "Razón social"
|
|
113
|
+
}), emptyBussinesName && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
114
|
+
children: "Ingrese la raz\xF3n social de la empresa"
|
|
115
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
116
|
+
inputType: "text",
|
|
117
|
+
inputId: "rfcInput",
|
|
118
|
+
label: "RFC",
|
|
119
|
+
inputPlaceHolder: "RFC"
|
|
120
|
+
}), emptyRFC && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
121
|
+
children: "El RFC es requerido"
|
|
122
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
123
|
+
inputType: "text",
|
|
124
|
+
inputId: "fiscalAddressInput",
|
|
125
|
+
label: "Direccion fiscal",
|
|
126
|
+
inputPlaceHolder: "Dirección fiscal"
|
|
127
|
+
}), emptyFiscalAddress && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
128
|
+
children: "Ingrese la direccion fiscal de la empresa"
|
|
129
|
+
})]
|
|
130
|
+
}, "3"), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
131
|
+
className: "button-end",
|
|
132
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
133
|
+
buttonType: "general-default-button",
|
|
134
|
+
label: "Enviar",
|
|
135
|
+
onClick: function onClick(e) {
|
|
136
|
+
return validate(e);
|
|
137
|
+
}
|
|
138
|
+
})
|
|
139
|
+
}, "4"), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
140
|
+
className: "progress-bar",
|
|
141
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
142
|
+
className: "progress-bar-step-check"
|
|
143
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
144
|
+
className: "progress-bar-registration"
|
|
145
|
+
})]
|
|
146
|
+
}, "5"), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
147
|
+
text: "Paso 3",
|
|
148
|
+
headerType: "date-header",
|
|
149
|
+
color: _variables.GlobalColors.s4
|
|
150
|
+
}, "6"), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
151
|
+
className: "new-login",
|
|
152
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("p", {
|
|
153
|
+
className: "pre-registro",
|
|
154
|
+
children: ["\xBFYa tienes una cuenta?", /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
155
|
+
children: " Inicia Sesi\xF3n"
|
|
156
|
+
})]
|
|
157
|
+
})
|
|
158
|
+
}, "7")];
|
|
159
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
160
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
161
|
+
className: "home-retailer",
|
|
162
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CarouselImagesLogin.CarouselImagesLogin, {
|
|
163
|
+
panelImg: imageArrayCarousel,
|
|
164
|
+
panelText: textCarousel,
|
|
165
|
+
panelColor: backogroundColorCarousel
|
|
166
|
+
})
|
|
167
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
168
|
+
className: "home-login-retailer",
|
|
169
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_GradientPanel.GradientPanel, {
|
|
170
|
+
componentsArray: loginRight,
|
|
171
|
+
panelType: "home-login",
|
|
172
|
+
panelColor: _variables.GlobalColors.white
|
|
173
|
+
})
|
|
174
|
+
})]
|
|
175
|
+
});
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
exports.RegistrationLoginThirdStep = RegistrationLoginThirdStep;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.Container = void 0;
|
|
9
|
+
|
|
10
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
11
|
+
|
|
12
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
|
+
|
|
14
|
+
var _variables = require("../../../global-files/variables");
|
|
15
|
+
|
|
16
|
+
var _templateObject;
|
|
17
|
+
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n width: 100%;\n height: 100vh;\n .user {\n .input-name-header {\n margin-top: 10px;\n }\n }\n .button-end {\n text-align: end;\n .general-default-button {\n width: 160px;\n }\n & + * {\n margin-top: 10px;\n }\n }\n .home-login-retailer,\n .home-retailer {\n width: 50%;\n }\n .progress-bar {\n width: 100%;\n height: 8px;\n display: flex;\n justify-content: space-between;\n .progress-bar-step-check {\n width: 66.66%;\n background-color: ", ";\n }\n .progress-bar-registration {\n background-color: rgb(196, 196, 196);\n width: 33.33%;\n }\n }\n .date-header {\n margin-left: 66.66%;\n .new-login {\n & + * {\n margin-top: 20px;\n }\n }\n }\n"])), _variables.GlobalColors.exported);
|
|
19
|
+
|
|
20
|
+
exports.Container = Container;
|
|
@@ -78,35 +78,35 @@ RetailerProductEditionDefault.args = {
|
|
|
78
78
|
descriptions: 1,
|
|
79
79
|
images: 1
|
|
80
80
|
},
|
|
81
|
-
orderId:
|
|
81
|
+
orderId: 123,
|
|
82
82
|
status: "IN_PROGRESS",
|
|
83
83
|
datasheet_status: "IN_PROGRESS",
|
|
84
84
|
prio: "none",
|
|
85
85
|
version: 2,
|
|
86
86
|
description_status: "IN_PROGRESS",
|
|
87
|
-
images_status:
|
|
87
|
+
images_status: null,
|
|
88
88
|
article: {
|
|
89
|
-
id_article:
|
|
90
|
-
id_category: "
|
|
91
|
-
name: "
|
|
92
|
-
upc: "
|
|
93
|
-
timestamp: "2022-04-
|
|
89
|
+
id_article: 109481,
|
|
90
|
+
id_category: "9",
|
|
91
|
+
name: "Barrita de nuez",
|
|
92
|
+
upc: "168489",
|
|
93
|
+
timestamp: "2022-04-27T15:06:59.000Z",
|
|
94
94
|
id_user: 28,
|
|
95
95
|
status: "NULL",
|
|
96
96
|
active: 1,
|
|
97
97
|
company_id: 1,
|
|
98
98
|
company_name: "COMPANY DEV",
|
|
99
99
|
country: "Colombia",
|
|
100
|
-
id_order:
|
|
101
|
-
id_datasheet_especialist:
|
|
100
|
+
id_order: 123,
|
|
101
|
+
id_datasheet_especialist: 54,
|
|
102
102
|
id_datasheet_facilitator: 52,
|
|
103
|
-
id_description_especialist:
|
|
103
|
+
id_description_especialist: 54,
|
|
104
104
|
id_description_facilitator: 52,
|
|
105
|
-
id_images_especialist:
|
|
106
|
-
id_images_facilitator:
|
|
105
|
+
id_images_especialist: null,
|
|
106
|
+
id_images_facilitator: null,
|
|
107
107
|
id_auditor: 30,
|
|
108
108
|
id_recepcionist: null,
|
|
109
|
-
category: "
|
|
109
|
+
category: "ABARROTES|ABARROTES SECOS|CEREALES Y BARRAS",
|
|
110
110
|
missingAttributes: null,
|
|
111
111
|
missingDescriptions: null,
|
|
112
112
|
missingImages: null
|
|
@@ -117,37 +117,15 @@ RetailerProductEditionDefault.args = {
|
|
|
117
117
|
country: "México",
|
|
118
118
|
id_region: 1,
|
|
119
119
|
active: 1
|
|
120
|
-
}, {
|
|
121
|
-
id: 5,
|
|
122
|
-
name: "Chedraui",
|
|
123
|
-
country: "México",
|
|
124
|
-
id_region: 1,
|
|
125
|
-
active: 1
|
|
126
120
|
}, {
|
|
127
121
|
id: 6,
|
|
128
122
|
name: "HEB",
|
|
129
123
|
country: "México",
|
|
130
124
|
id_region: 1,
|
|
131
125
|
active: 1
|
|
132
|
-
}, {
|
|
133
|
-
id: 12,
|
|
134
|
-
name: "La Comer",
|
|
135
|
-
country: "México",
|
|
136
|
-
id_region: 1,
|
|
137
|
-
active: 1
|
|
138
126
|
}],
|
|
139
127
|
country: "Colombia",
|
|
140
|
-
|
|
141
|
-
modalCadenas: false,
|
|
142
|
-
totalCadenas: false,
|
|
143
|
-
modalAsig1: false,
|
|
144
|
-
modalFD: false,
|
|
145
|
-
modalAsig2: false,
|
|
146
|
-
modalAsig3: false,
|
|
147
|
-
modalAsig4: false,
|
|
148
|
-
modalAsig5: false,
|
|
149
|
-
modalFI: false,
|
|
150
|
-
modalQA: false
|
|
128
|
+
upc: "168489"
|
|
151
129
|
},
|
|
152
130
|
user: {
|
|
153
131
|
id_user: 30,
|
|
@@ -179,6 +157,6 @@ RetailerProductEditionDefault.args = {
|
|
|
179
157
|
products_limit: "3",
|
|
180
158
|
type: "PyMES"
|
|
181
159
|
},
|
|
182
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-30/30.png?
|
|
160
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-30/30.png?1649896700986"
|
|
183
161
|
}
|
|
184
162
|
};
|