contentoh-components-library 21.0.30 → 21.0.31
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/.env.development +18 -3
- package/.env.production +16 -1
- package/CHANGELOG.md +31 -33
- package/dist/assets/images/generalButton/downloadIcon.svg +3 -0
- package/dist/assets/images/modalsSVGs/attributesSent.svg +208 -0
- package/dist/assets/images/modalsSVGs/descriptionSent.svg +237 -0
- package/dist/assets/images/modalsSVGs/providerSent.svg +445 -0
- package/dist/assets/images/modalsSVGs/uploadingImages.svg +148 -0
- package/dist/components/atoms/AsignationOption/index.js +9 -5
- package/dist/components/atoms/AsignationOption/styles.js +1 -1
- package/dist/components/{molecules/SignInLogin/SignInLogin.stories.js → atoms/CharCounter/CharCounter.stories.js} +10 -7
- package/dist/components/atoms/CharCounter/index.js +22 -0
- package/dist/components/{molecules/ApproveRejetPanel → atoms/CharCounter}/styles.js +3 -1
- package/dist/components/atoms/CheckBox/index.js +4 -2
- package/dist/components/atoms/Commentary/Commentary.stories.js +1 -0
- package/dist/components/atoms/Commentary/index.js +23 -0
- package/dist/components/atoms/{VerticalSideMenuMainPage → Commentary}/styles.js +6 -1
- package/dist/components/atoms/GeneralButton/index.js +5 -0
- package/dist/components/atoms/GeneralButton/styles.js +4 -2
- package/dist/components/atoms/GeneralInput/index.js +73 -24
- package/dist/components/atoms/GeneralInput/styles.js +7 -1
- package/dist/components/atoms/GenericModal/index.js +4 -2
- package/dist/components/atoms/GenericModal/styles.js +1 -1
- package/dist/components/atoms/Input/index.js +26 -0
- package/dist/components/atoms/Input/style.js +26 -0
- package/dist/components/{organisms/ChangePassword/ChangePassword.stories.js → atoms/InputFormatter/Wysiwyg.stories.js} +9 -7
- package/dist/components/atoms/InputFormatter/index.js +185 -0
- package/dist/components/atoms/InputFormatter/styles.js +33 -0
- package/dist/components/atoms/LabelToInput/index.js +53 -0
- package/dist/components/atoms/LabelToInput/style.js +22 -0
- package/dist/components/atoms/Loading/index.js +1 -2
- package/dist/components/atoms/Loading/styles.js +8 -4
- package/dist/components/atoms/Percent/Percent.stories.js +39 -0
- package/dist/components/atoms/Percent/index.js +39 -0
- package/dist/components/atoms/Percent/styles.js +20 -0
- package/dist/components/atoms/PriorityFlag/index.js +1 -1
- package/dist/components/atoms/ProductImage/styles.js +1 -1
- package/dist/components/atoms/ProgressBar/index.js +2 -2
- package/dist/components/atoms/ProgressBar/styles.js +3 -5
- package/dist/components/atoms/ScreenHeader/index.js +1 -1
- package/dist/components/atoms/ScreenHeader/styles.js +1 -1
- package/dist/components/atoms/Select/index.js +39 -0
- package/dist/components/atoms/Select/style.js +32 -0
- package/dist/components/atoms/StatusTag/index.js +37 -2
- package/dist/components/atoms/StatusTag/styles.js +1 -1
- package/dist/components/atoms/ValidationPanel/index.js +4 -3
- package/dist/components/molecules/AvatarAndValidation/index.js +17 -7
- package/dist/components/molecules/AvatarAndValidation/styles.js +1 -1
- package/dist/components/molecules/CarouselImagesLogin/index.js +42 -40
- package/dist/components/molecules/FeaturesBar/index.js +1 -1
- package/dist/components/molecules/GalleryElement/index.js +80 -21
- package/dist/components/molecules/GalleryElement/styles.js +1 -1
- package/dist/components/molecules/GalleryHeader/index.js +28 -6
- package/dist/components/molecules/GalleryHeader/styles.js +1 -1
- package/dist/components/molecules/ImageSelector/index.js +2 -4
- package/dist/components/molecules/ProductNameHeader/index.js +1 -2
- package/dist/components/molecules/RetailerSelector/RetailerSelector.stories.js +48 -0
- package/dist/components/molecules/RetailerSelector/index.js +74 -0
- package/dist/components/{atoms/MenuCommercialRetailers → molecules/RetailerSelector}/styles.js +1 -1
- package/dist/components/molecules/StatusAsignationInfo/index.js +46 -25
- package/dist/components/molecules/StatusAsignationInfo/styles.js +1 -1
- package/dist/components/molecules/TableHeader/index.js +12 -5
- package/dist/components/molecules/TableHeader/styles.js +1 -1
- package/dist/components/molecules/TagAndInput/index.js +26 -2
- package/dist/components/molecules/TextAndGradient/TextAndGradient.stories.js +31 -0
- package/dist/components/molecules/TextAndGradient/index.js +36 -0
- package/dist/components/molecules/TextAndGradient/styles.js +18 -0
- package/dist/components/organisms/FullProductNameHeader/index.js +32 -8
- package/dist/components/organisms/FullTabsMenu/index.js +18 -5
- package/dist/components/organisms/ImageDataTable/index.js +90 -14
- package/dist/components/organisms/InputGroup/index.js +34 -13
- package/dist/components/organisms/InputGroup/styles.js +1 -1
- package/dist/components/organisms/ProductImageModal/index.js +15 -11
- package/dist/components/organisms/ProductImageModal/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +109 -347
- package/dist/components/pages/RetailerProductEdition/index.js +1589 -59
- package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
- package/dist/global-files/data.js +212 -53
- package/dist/global-files/global-styles.css +1 -0
- package/dist/global-files/variables.js +1 -0
- package/dist/index.js +30 -238
- package/package.json +12 -11
- package/src/assets/images/generalButton/downloadIcon.svg +3 -0
- package/src/assets/images/modalsSVGs/attributesSent.svg +208 -0
- package/src/assets/images/modalsSVGs/descriptionSent.svg +237 -0
- package/src/assets/images/modalsSVGs/providerSent.svg +445 -0
- package/src/assets/images/modalsSVGs/uploadingImages.svg +148 -0
- package/src/components/atoms/AsignationOption/index.js +7 -5
- package/src/components/atoms/AsignationOption/styles.js +9 -1
- 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/CheckBox/index.js +8 -2
- package/src/components/atoms/Commentary/Commentary.stories.js +0 -0
- package/src/components/atoms/Commentary/index.js +9 -0
- package/src/components/atoms/Commentary/styles.js +16 -0
- package/src/components/atoms/GeneralButton/index.js +9 -2
- package/src/components/atoms/GeneralButton/styles.js +23 -0
- package/src/components/atoms/GeneralInput/index.js +71 -21
- package/src/components/atoms/GeneralInput/styles.js +11 -1
- package/src/components/atoms/GenericModal/index.js +2 -2
- package/src/components/atoms/GenericModal/styles.js +10 -2
- package/src/components/atoms/Input/index.js +15 -0
- package/src/components/atoms/Input/style.js +31 -0
- package/src/components/atoms/InputFormatter/Wysiwyg.stories.js +12 -0
- package/src/components/atoms/InputFormatter/index.js +141 -0
- package/src/components/atoms/InputFormatter/styles.js +40 -0
- package/src/components/atoms/LabelToInput/index.js +26 -0
- package/src/components/atoms/LabelToInput/style.js +41 -0
- package/src/components/atoms/Loading/index.js +4 -5
- package/src/components/atoms/Loading/styles.js +43 -43
- package/src/components/atoms/PriorityFlag/index.js +1 -1
- package/src/components/atoms/ProductImage/styles.js +1 -1
- package/src/components/atoms/ProgressBar/index.js +2 -2
- package/src/components/atoms/ProgressBar/styles.js +54 -3
- package/src/components/atoms/ScreenHeader/index.js +7 -3
- package/src/components/atoms/ScreenHeader/styles.js +9 -2
- package/src/components/atoms/Select/index.js +35 -0
- package/src/components/atoms/Select/style.js +76 -0
- package/src/components/atoms/StatusTag/index.js +30 -2
- package/src/components/atoms/StatusTag/styles.js +15 -3
- package/src/components/atoms/ValidationPanel/index.js +3 -3
- package/src/components/molecules/AvatarAndValidation/index.js +24 -6
- package/src/components/molecules/AvatarAndValidation/styles.js +1 -1
- package/src/components/molecules/CarouselImagesLogin/index.js +37 -34
- package/src/components/molecules/FeaturesBar/index.js +10 -7
- package/src/components/molecules/GalleryElement/index.js +75 -36
- package/src/components/molecules/GalleryElement/styles.js +38 -11
- package/src/components/molecules/GalleryHeader/index.js +14 -8
- package/src/components/molecules/GalleryHeader/styles.js +16 -0
- package/src/components/molecules/ImageSelector/index.js +2 -3
- package/src/components/molecules/ProductNameHeader/index.js +1 -2
- package/src/components/molecules/RetailerSelector/RetailerSelector.stories.js +35 -0
- package/src/components/molecules/RetailerSelector/index.js +63 -0
- package/src/components/molecules/RetailerSelector/styles.js +18 -0
- package/src/components/molecules/StatusAsignationInfo/index.js +62 -38
- package/src/components/molecules/StatusAsignationInfo/styles.js +12 -2
- package/src/components/molecules/TableHeader/index.js +16 -3
- package/src/components/molecules/TableHeader/styles.js +5 -0
- package/src/components/molecules/TagAndInput/index.js +24 -0
- package/src/components/organisms/FullProductNameHeader/index.js +28 -7
- package/src/components/organisms/FullTabsMenu/index.js +15 -3
- package/src/components/organisms/ImageDataTable/index.js +89 -11
- package/src/components/organisms/InputGroup/index.js +46 -11
- package/src/components/organisms/InputGroup/styles.js +3 -0
- package/src/components/organisms/ProductImageModal/index.js +20 -12
- package/src/components/organisms/ProductImageModal/styles.js +3 -0
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +117 -343
- package/src/components/pages/RetailerProductEdition/index.js +1225 -46
- package/src/components/pages/RetailerProductEdition/styles.js +67 -4
- package/src/global-files/data.js +156 -57
- package/src/global-files/global-styles.css +1 -0
- package/src/global-files/variables.js +1 -0
- package/src/index.js +1 -17
- package/dist/assets/images/carouselImagesLogin/login2.svg +0 -117
- package/dist/assets/images/carouselImagesLogin/login3.svg +0 -147
- package/dist/assets/images/carouselImagesLogin/loginImage.svg +0 -301
- package/dist/components/atoms/ListCommercialRetailers/ListCommercialRetailers.stories.js +0 -36
- package/dist/components/atoms/ListCommercialRetailers/index.js +0 -64
- package/dist/components/atoms/ListCommercialRetailers/styles.js +0 -20
- package/dist/components/atoms/Loading/Loading.stories.js +0 -28
- package/dist/components/atoms/MenuCommercialRetailers/MenuCommercialRetailers.stories.js +0 -37
- package/dist/components/atoms/MenuCommercialRetailers/index.js +0 -25
- package/dist/components/atoms/MenuProductImage/MenuProductImage.stories.js +0 -28
- package/dist/components/atoms/MenuProductImage/index.js +0 -88
- package/dist/components/atoms/MenuProductImage/styles.js +0 -20
- package/dist/components/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +0 -22
- package/dist/components/atoms/VerticalSideMenuMainPage/index.js +0 -49
- package/dist/components/molecules/ApproveRejetPanel/ApproveRejetPanel.stories.js +0 -25
- package/dist/components/molecules/ApproveRejetPanel/index.js +0 -49
- package/dist/components/molecules/EmailResetPasswordLogin/EmailResetPasswordLogin.stories.js +0 -28
- package/dist/components/molecules/EmailResetPasswordLogin/index.js +0 -155
- package/dist/components/molecules/EmailResetPasswordLogin/styles.js +0 -20
- package/dist/components/molecules/RegistrationFirstStep/RegistrationFirstStep.stories.js +0 -28
- package/dist/components/molecules/RegistrationFirstStep/index.js +0 -336
- package/dist/components/molecules/RegistrationFirstStep/styles.js +0 -20
- package/dist/components/molecules/RegistrationSecondStep/RegistrationSecondStep.stories.js +0 -28
- package/dist/components/molecules/RegistrationSecondStep/index.js +0 -156
- package/dist/components/molecules/RegistrationSecondStep/styles.js +0 -20
- package/dist/components/molecules/RegistrationThirdStep/RegistrationThirdStep.stories.js +0 -28
- package/dist/components/molecules/RegistrationThirdStep/index.js +0 -161
- package/dist/components/molecules/RegistrationThirdStep/styles.js +0 -20
- package/dist/components/molecules/SignInLogin/index.js +0 -292
- package/dist/components/molecules/SignInLogin/styles.js +0 -20
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/VerificationCodeResetPasswordLogin.stories.js +0 -28
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/index.js +0 -104
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/styles.js +0 -20
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/utils.js +0 -69
- package/dist/components/organisms/ChangePassword/index.js +0 -113
- package/dist/components/organisms/ChangePassword/styles.js +0 -18
- package/src/components/atoms/Loading/Loading.stories.js +0 -10
- package/src/components/molecules/EmailResetPasswordLogin/EmailResetPasswordLogin.stories.js +0 -11
- package/src/components/molecules/EmailResetPasswordLogin/index.js +0 -86
- package/src/components/molecules/EmailResetPasswordLogin/styles.js +0 -23
- package/src/components/molecules/RegistrationFirstStep/RegistrationFirstStep.stories.js +0 -11
- package/src/components/molecules/RegistrationFirstStep/index.js +0 -242
- package/src/components/molecules/RegistrationFirstStep/styles.js +0 -81
- package/src/components/molecules/RegistrationSecondStep/RegistrationSecondStep.stories.js +0 -11
- package/src/components/molecules/RegistrationSecondStep/index.js +0 -97
- package/src/components/molecules/RegistrationSecondStep/styles.js +0 -59
- package/src/components/molecules/RegistrationThirdStep/RegistrationThirdStep.stories.js +0 -11
- package/src/components/molecules/RegistrationThirdStep/index.js +0 -109
- package/src/components/molecules/RegistrationThirdStep/styles.js +0 -44
- package/src/components/molecules/SignInLogin/SignInLogin.stories.js +0 -11
- package/src/components/molecules/SignInLogin/index.js +0 -205
- package/src/components/molecules/SignInLogin/styles.js +0 -78
- package/src/components/molecules/VerificationCodeResetPasswordLogin/VerificationCodeResetPasswordLogin.stories.js +0 -11
- package/src/components/molecules/VerificationCodeResetPasswordLogin/index.js +0 -78
- package/src/components/molecules/VerificationCodeResetPasswordLogin/styles.js +0 -49
- package/src/components/molecules/VerificationCodeResetPasswordLogin/utils.js +0 -56
- package/src/components/organisms/ChangePassword/ChangePassword.stories.js +0 -11
- package/src/components/organisms/ChangePassword/index.js +0 -63
- package/src/components/organisms/ChangePassword/styles.js +0 -16
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.validateInput = exports.validate = void 0;
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @param {event} e event received triggered by verification code input
|
|
11
|
-
* @param {number} index index position from the verification code(VC) input array (i.e. digit 1,2,3 etc...)
|
|
12
|
-
* @param {array<html nodes>} inputsArray array which contains every VC digit input (used to change focus on input change)
|
|
13
|
-
*/
|
|
14
|
-
var validateInput = function validateInput(e, index, inputsArray) {
|
|
15
|
-
var isValid = false;
|
|
16
|
-
var inputNotEmpty = e.target.value.length > 0;
|
|
17
|
-
|
|
18
|
-
if (inputNotEmpty) {
|
|
19
|
-
if (validateInputNumber(e) !== null) {
|
|
20
|
-
isValid = true;
|
|
21
|
-
nextInputFocus(inputsArray, index++);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
return isValid ? e.target.value : "";
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @param {event} e event received triggered by verification code input
|
|
30
|
-
* @returns {boolean} if digit is a number
|
|
31
|
-
*/
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
exports.validateInput = validateInput;
|
|
35
|
-
|
|
36
|
-
var validateInputNumber = function validateInputNumber(e) {
|
|
37
|
-
return (e.target.value || String.fromCharCode(e.keyCode)).match(/[0-9]{1}/);
|
|
38
|
-
};
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @param {array<html nodes>} inputsArray array which contains every VC digit input (used to change focus on input change)
|
|
42
|
-
* @param {number} index index position from the verification code(VC) input array (i.e. digit 1,2,3 etc...)
|
|
43
|
-
* changes focus to next input if digit typed is a number and there wasn't any before
|
|
44
|
-
*/
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
var nextInputFocus = function nextInputFocus(inputsArray, index) {
|
|
48
|
-
var _inputsArray$index;
|
|
49
|
-
|
|
50
|
-
var button = document.getElementsByClassName("general-default-button");
|
|
51
|
-
inputsArray !== null && inputsArray !== void 0 && inputsArray.length && index === (inputsArray === null || inputsArray === void 0 ? void 0 : inputsArray.length) ? button[0].focus() : (_inputsArray$index = inputsArray[index]) === null || _inputsArray$index === void 0 ? void 0 : _inputsArray$index.focus();
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
*
|
|
55
|
-
* @param {array<html nodes>} inputsArray array which contains every VC digit input (used to check if there's any empty)
|
|
56
|
-
* @param {function} setEmptyVerificationCode function to update flag which handles if there's an empty char
|
|
57
|
-
* updates emptyVerificationFlag from father component
|
|
58
|
-
*/
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
var validate = function validate(inputsArray, setEmptyVerificationCode) {
|
|
62
|
-
var contInputEmpty = 0;
|
|
63
|
-
inputsArray.forEach(function (element) {
|
|
64
|
-
element.value === "" ? 0 : contInputEmpty++;
|
|
65
|
-
});
|
|
66
|
-
contInputEmpty === inputsArray.length ? setEmptyVerificationCode(false) : setEmptyVerificationCode(true);
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
exports.validate = validate;
|
|
@@ -1,113 +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.ChangePassword = 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 _LoginPasswordStrength = require("../../molecules/LoginPasswordStrength");
|
|
19
|
-
|
|
20
|
-
var _react = require("react");
|
|
21
|
-
|
|
22
|
-
var _GeneralButton = require("../../atoms/GeneralButton");
|
|
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 _GradientPanel = require("../../atoms/GradientPanel");
|
|
31
|
-
|
|
32
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
33
|
-
|
|
34
|
-
var ChangePassword = function ChangePassword() {
|
|
35
|
-
var _useState = (0, _react.useState)(false),
|
|
36
|
-
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
37
|
-
emptyPassword = _useState2[0],
|
|
38
|
-
setEmptyPassword = _useState2[1];
|
|
39
|
-
|
|
40
|
-
var _useState3 = (0, _react.useState)(false),
|
|
41
|
-
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
42
|
-
emptyConfirmPassword = _useState4[0],
|
|
43
|
-
setEmptyConfirmPassword = _useState4[1];
|
|
44
|
-
|
|
45
|
-
var _useState5 = (0, _react.useState)(true),
|
|
46
|
-
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
|
47
|
-
matchPasswords = _useState6[0],
|
|
48
|
-
setMatchPasswords = _useState6[1];
|
|
49
|
-
|
|
50
|
-
var validate = /*#__PURE__*/function () {
|
|
51
|
-
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(e) {
|
|
52
|
-
var password, confirmPassword;
|
|
53
|
-
return _regenerator.default.wrap(function _callee$(_context) {
|
|
54
|
-
while (1) {
|
|
55
|
-
switch (_context.prev = _context.next) {
|
|
56
|
-
case 0:
|
|
57
|
-
e.preventDefault();
|
|
58
|
-
password = document.querySelector("#newPasswordInput").value;
|
|
59
|
-
password.length < 8 ? setEmptyPassword(true) : setEmptyPassword(false);
|
|
60
|
-
confirmPassword = document.querySelector("#confirmPasswordInput").value;
|
|
61
|
-
confirmPassword === "" ? setEmptyConfirmPassword(true) : setEmptyConfirmPassword(false);
|
|
62
|
-
|
|
63
|
-
if (password === confirmPassword) {
|
|
64
|
-
setMatchPasswords(true);
|
|
65
|
-
} else {
|
|
66
|
-
setMatchPasswords(false);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
case 6:
|
|
70
|
-
case "end":
|
|
71
|
-
return _context.stop();
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}, _callee);
|
|
75
|
-
}));
|
|
76
|
-
|
|
77
|
-
return function validate(_x) {
|
|
78
|
-
return _ref.apply(this, arguments);
|
|
79
|
-
};
|
|
80
|
-
}();
|
|
81
|
-
|
|
82
|
-
var loginRight = [/*#__PURE__*/(0, _jsxRuntime.jsx)(_LogoImage.LogoImage, {}, "1"), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
83
|
-
className: "credenciales",
|
|
84
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
85
|
-
fontFamily: _variables.FontFamily.AvenirNext,
|
|
86
|
-
color: _variables.GlobalColors.s5,
|
|
87
|
-
text: "Ingresa tus credenciales"
|
|
88
|
-
})
|
|
89
|
-
}, "2"), /*#__PURE__*/(0, _jsxRuntime.jsx)(_LoginPasswordStrength.LoginPasswordStrength, {
|
|
90
|
-
emptyPassword: emptyPassword,
|
|
91
|
-
emptyConfirmPassword: emptyConfirmPassword,
|
|
92
|
-
matchPasswords: matchPasswords,
|
|
93
|
-
textTittle: "Ingresa tus credenciales"
|
|
94
|
-
}, "3"), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
95
|
-
className: "button-center",
|
|
96
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
97
|
-
buttonType: "general-default-button",
|
|
98
|
-
label: "Enviar",
|
|
99
|
-
onClick: function onClick(e) {
|
|
100
|
-
return validate(e);
|
|
101
|
-
}
|
|
102
|
-
})
|
|
103
|
-
}, "4")];
|
|
104
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
105
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_GradientPanel.GradientPanel, {
|
|
106
|
-
panelColor: _variables.GlobalColors.white,
|
|
107
|
-
componentsArray: loginRight,
|
|
108
|
-
panelType: "home-login"
|
|
109
|
-
})
|
|
110
|
-
});
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
exports.ChangePassword = ChangePassword;
|
|
@@ -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.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n width: 50%;\n height: 100vh;\n .button-center {\n text-align: center;\n position: absolute;\n bottom: 5%;\n left: calc(75% - 80px);\n .general-default-button {\n width: 160px;\n }\n }\n"])));
|
|
17
|
-
|
|
18
|
-
exports.Container = Container;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { EmailResetPasswordLogin } from "./index";
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
title: "Components/molecules/EmailResetPasswordLogin",
|
|
5
|
-
component: EmailResetPasswordLogin,
|
|
6
|
-
};
|
|
7
|
-
const Template = (args) => <EmailResetPasswordLogin {...args} />;
|
|
8
|
-
|
|
9
|
-
export const EmailResetPasswordLoginDefault = Template.bind({});
|
|
10
|
-
|
|
11
|
-
EmailResetPasswordLoginDefault.args = {};
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { Container } from "./styles";
|
|
2
|
-
import { GradientPanel } from "../../atoms/GradientPanel";
|
|
3
|
-
import { useState } from "react";
|
|
4
|
-
import { LogoImage } from "../../atoms/LogoImage";
|
|
5
|
-
import { ScreenHeader } from "../../atoms/ScreenHeader";
|
|
6
|
-
import { GlobalColors, FontFamily } from "../../../global-files/variables";
|
|
7
|
-
import { TagAndInput } from "../../molecules/TagAndInput";
|
|
8
|
-
import { Button } from "../../atoms/GeneralButton";
|
|
9
|
-
import { Auth } from "aws-amplify";
|
|
10
|
-
|
|
11
|
-
export const EmailResetPasswordLogin = (props) => {
|
|
12
|
-
const [emptyEmail, setEmptyEmail] = useState(false);
|
|
13
|
-
const [invalidEmail, setInvalidEmail] = useState(false);
|
|
14
|
-
const [showErrors, setShowErrors] = useState(false);
|
|
15
|
-
const [awsError, setAwsError] = useState("");
|
|
16
|
-
const validate = async (e) => {
|
|
17
|
-
let valid = true;
|
|
18
|
-
setShowErrors(true);
|
|
19
|
-
e.preventDefault();
|
|
20
|
-
const email = document.querySelector("#emailInput").value;
|
|
21
|
-
email === "" ? setEmptyEmail(true) : setEmptyEmail(false);
|
|
22
|
-
!/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(
|
|
23
|
-
email
|
|
24
|
-
)
|
|
25
|
-
? setInvalidEmail(true)
|
|
26
|
-
: setInvalidEmail(false);
|
|
27
|
-
emptyEmail && (valid = false);
|
|
28
|
-
invalidEmail && (valid = false);
|
|
29
|
-
|
|
30
|
-
if (valid) {
|
|
31
|
-
try {
|
|
32
|
-
await Auth.forgotPassword(email);
|
|
33
|
-
sessionStorage.setItem("email", JSON.stringify(email));
|
|
34
|
-
sessionStorage.setItem("resetPasswordProcess", JSON.stringify("true"));
|
|
35
|
-
props.setPaso(5);
|
|
36
|
-
} catch (err) {
|
|
37
|
-
setAwsError(err.code);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
};
|
|
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
|
-
<TagAndInput
|
|
53
|
-
inputType={"text"}
|
|
54
|
-
inputId={"emailInput"}
|
|
55
|
-
label={"Nombre de usuario"}
|
|
56
|
-
inputPlaceHolder={"username@contentoh.com"}
|
|
57
|
-
/>
|
|
58
|
-
{showErrors && emptyEmail && <label>Ingrese su correo</label>}
|
|
59
|
-
{showErrors && invalidEmail && !emptyEmail && (
|
|
60
|
-
<label>Ingrese un correo valido</label>
|
|
61
|
-
)}
|
|
62
|
-
{showErrors && awsError === "LimitExceededException" && (
|
|
63
|
-
<label>Has cambiado la contraseña recientemente, intenta despues</label>
|
|
64
|
-
)}
|
|
65
|
-
</div>,
|
|
66
|
-
<div className="button-center" key="4">
|
|
67
|
-
<Button
|
|
68
|
-
buttonType={"general-default-button"}
|
|
69
|
-
label={"Enviar"}
|
|
70
|
-
onClick={(e) => validate(e)}
|
|
71
|
-
/>
|
|
72
|
-
</div>,
|
|
73
|
-
<div className="back-login" key="5">
|
|
74
|
-
<p onClick={() => props.setPaso(7)}>Regresar...</p>
|
|
75
|
-
</div>,
|
|
76
|
-
];
|
|
77
|
-
return (
|
|
78
|
-
<Container>
|
|
79
|
-
<GradientPanel
|
|
80
|
-
componentsArray={loginRight}
|
|
81
|
-
panelType={"home-login"}
|
|
82
|
-
panelColor={GlobalColors.white}
|
|
83
|
-
/>
|
|
84
|
-
</Container>
|
|
85
|
-
);
|
|
86
|
-
};
|
|
@@ -1,23 +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: 50%;
|
|
7
|
-
height: 100vh;
|
|
8
|
-
.button-center {
|
|
9
|
-
text-align: center;
|
|
10
|
-
.general-default-button {
|
|
11
|
-
width: 160px;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
.back-login {
|
|
15
|
-
text-align: center;
|
|
16
|
-
margin: 15px !important;
|
|
17
|
-
color: ${GlobalColors.secondary_magenta};
|
|
18
|
-
cursor: pointer;
|
|
19
|
-
font-weight: bold;
|
|
20
|
-
font-family: ${FontFamily.Raleway};
|
|
21
|
-
font-size: 13px;
|
|
22
|
-
}
|
|
23
|
-
`;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { RegistrationFirstStep } from "./index";
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
title: "Components/molecules/RegistrationFirstStep",
|
|
5
|
-
component: RegistrationFirstStep,
|
|
6
|
-
};
|
|
7
|
-
const Template = (args) => <RegistrationFirstStep {...args} />;
|
|
8
|
-
|
|
9
|
-
export const RegistrationFirstStepDefault = Template.bind({});
|
|
10
|
-
|
|
11
|
-
RegistrationFirstStepDefault.args = {};
|
|
@@ -1,242 +0,0 @@
|
|
|
1
|
-
import { Container } from "./styles";
|
|
2
|
-
import { GradientPanel } from "../../atoms/GradientPanel";
|
|
3
|
-
import { useState, useEffect } from "react";
|
|
4
|
-
import { LogoImage } from "../../atoms/LogoImage";
|
|
5
|
-
import { ScreenHeader } from "../../atoms/ScreenHeader";
|
|
6
|
-
import { GlobalColors, FontFamily } from "../../../global-files/variables";
|
|
7
|
-
import { TagAndInput } from "../../molecules/TagAndInput";
|
|
8
|
-
import { Button } from "../../atoms/GeneralButton";
|
|
9
|
-
import { GeneralInput } from "../../atoms/GeneralInput";
|
|
10
|
-
|
|
11
|
-
export const RegistrationFirstStep = (props) => {
|
|
12
|
-
const [emptyName, setEmptyName] = useState(false);
|
|
13
|
-
const [emptyLastName, setEmptyLastName] = useState(false);
|
|
14
|
-
const [emptyEmail, setEmptyEmail] = useState(false);
|
|
15
|
-
const [emptyJob, setEmptyJob] = useState(false);
|
|
16
|
-
const [emptyPhone, setEmptyPhone] = useState(false);
|
|
17
|
-
const [emptyCountry, setEmptyCountry] = useState(true);
|
|
18
|
-
const [showErrors, setShowErrors] = useState(false);
|
|
19
|
-
const [regError, setRegError] = useState(false);
|
|
20
|
-
const [phoneFormatError, setPhoneFormatError] = useState(false);
|
|
21
|
-
const [emailFormatError, setEmailFormatError] = useState(false);
|
|
22
|
-
|
|
23
|
-
useEffect(() => {
|
|
24
|
-
JSON.parse(sessionStorage.getItem("nuevoRegistro")).name === "" &&
|
|
25
|
-
sessionStorage.removeItem("registrationError");
|
|
26
|
-
sessionStorage.getItem("registrationError") && setRegError(true);
|
|
27
|
-
if (sessionStorage.getItem("registrationError")) {
|
|
28
|
-
setEmptyName(false);
|
|
29
|
-
setEmptyLastName(false);
|
|
30
|
-
setEmptyEmail(false);
|
|
31
|
-
setEmptyJob(false);
|
|
32
|
-
setEmptyCountry(false);
|
|
33
|
-
setEmptyPhone(false);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
sessionStorage.getItem("resetPasswordProcess") &&
|
|
37
|
-
sessionStorage.getItem("resetPasswordProcess");
|
|
38
|
-
}, []);
|
|
39
|
-
|
|
40
|
-
let paisesEsp = [
|
|
41
|
-
"Argentina",
|
|
42
|
-
"Colombia",
|
|
43
|
-
"Costa Rica",
|
|
44
|
-
"Ecuador",
|
|
45
|
-
"El Salvador",
|
|
46
|
-
"Honduras",
|
|
47
|
-
"México",
|
|
48
|
-
"Panamá",
|
|
49
|
-
"Perú",
|
|
50
|
-
];
|
|
51
|
-
const updateInfo = (e, newValue) => {
|
|
52
|
-
let nuevoUsuario = JSON.parse(sessionStorage.getItem("nuevoRegistro"));
|
|
53
|
-
switch (e.target.id) {
|
|
54
|
-
case "nameInput":
|
|
55
|
-
nuevoUsuario.name = newValue;
|
|
56
|
-
newValue === "" ? setEmptyName(true) : setEmptyName(false);
|
|
57
|
-
break;
|
|
58
|
-
case "lastNameInput":
|
|
59
|
-
nuevoUsuario.lastName = newValue;
|
|
60
|
-
newValue === "" ? setEmptyLastName(true) : setEmptyLastName(false);
|
|
61
|
-
break;
|
|
62
|
-
case "emailInput":
|
|
63
|
-
nuevoUsuario.email = newValue;
|
|
64
|
-
newValue === "" ? setEmptyEmail(true) : setEmptyEmail(false);
|
|
65
|
-
if (
|
|
66
|
-
!/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(
|
|
67
|
-
newValue
|
|
68
|
-
)
|
|
69
|
-
) {
|
|
70
|
-
setEmailFormatError(true);
|
|
71
|
-
} else {
|
|
72
|
-
setEmailFormatError(false);
|
|
73
|
-
}
|
|
74
|
-
break;
|
|
75
|
-
case "jobInput":
|
|
76
|
-
nuevoUsuario.position = newValue;
|
|
77
|
-
newValue === "" ? setEmptyJob(true) : setEmptyJob(false);
|
|
78
|
-
break;
|
|
79
|
-
case "phoneInput":
|
|
80
|
-
Array.from(newValue).forEach((digit, i) => {
|
|
81
|
-
newValue.charCodeAt(i) < 48
|
|
82
|
-
? setPhoneFormatError(true)
|
|
83
|
-
: setPhoneFormatError(false);
|
|
84
|
-
newValue.charCodeAt(i) > 57
|
|
85
|
-
? setPhoneFormatError(true)
|
|
86
|
-
: setPhoneFormatError(false);
|
|
87
|
-
});
|
|
88
|
-
nuevoUsuario.phone = `${JSON.parse(
|
|
89
|
-
sessionStorage.getItem("countryCodeSelect")
|
|
90
|
-
)}${newValue}`;
|
|
91
|
-
newValue === "" ? setEmptyPhone(true) : setEmptyPhone(false);
|
|
92
|
-
break;
|
|
93
|
-
case "countrySelect":
|
|
94
|
-
nuevoUsuario.country = newValue;
|
|
95
|
-
newValue === "" || newValue === "Selecciona tu país"
|
|
96
|
-
? setEmptyCountry(true)
|
|
97
|
-
: setEmptyCountry(false);
|
|
98
|
-
break;
|
|
99
|
-
case "countryCodeSelect":
|
|
100
|
-
sessionStorage.setItem("countryCode", JSON.stringify(newValue));
|
|
101
|
-
nuevoUsuario.phone = `${JSON.parse(
|
|
102
|
-
sessionStorage.getItem("countryCode")
|
|
103
|
-
)}${document.querySelector("#phoneInput").value}`;
|
|
104
|
-
break;
|
|
105
|
-
default:
|
|
106
|
-
return;
|
|
107
|
-
}
|
|
108
|
-
sessionStorage.setItem("nuevoRegistro", JSON.stringify(nuevoUsuario));
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
const validateForm = (evt) => {
|
|
112
|
-
let valid = true;
|
|
113
|
-
evt.preventDefault();
|
|
114
|
-
setShowErrors(true);
|
|
115
|
-
emptyName && (valid = false);
|
|
116
|
-
emptyLastName && (valid = false);
|
|
117
|
-
emptyEmail && (valid = false);
|
|
118
|
-
emptyJob && (valid = false);
|
|
119
|
-
emptyPhone && (valid = false);
|
|
120
|
-
emptyCountry && (valid = false);
|
|
121
|
-
phoneFormatError && (valid = false);
|
|
122
|
-
emailFormatError && (valid = false);
|
|
123
|
-
!regError && valid && props.setPaso((paso) => props.paso + 1);
|
|
124
|
-
regError && valid && props.setPaso(4);
|
|
125
|
-
};
|
|
126
|
-
const loginRight = [
|
|
127
|
-
<LogoImage key="1" />,
|
|
128
|
-
<div className="credenciales" key={"2"}>
|
|
129
|
-
<ScreenHeader
|
|
130
|
-
fontFamily={FontFamily.AvenirNext}
|
|
131
|
-
color={GlobalColors.s5}
|
|
132
|
-
text={"Ingresa tus credenciales"}
|
|
133
|
-
/>
|
|
134
|
-
</div>,
|
|
135
|
-
<div className="user" key="3">
|
|
136
|
-
<div className="name-registration-user">
|
|
137
|
-
<TagAndInput
|
|
138
|
-
inputType={"text"}
|
|
139
|
-
inputId={"nameInput"}
|
|
140
|
-
label={"Nombre"}
|
|
141
|
-
inputPlaceHolder={"Nombre"}
|
|
142
|
-
defaultValue={
|
|
143
|
-
JSON.parse(sessionStorage.getItem("nuevoRegistro")).name
|
|
144
|
-
}
|
|
145
|
-
required
|
|
146
|
-
onInput={(e) => updateInfo(e, e.target.value)}
|
|
147
|
-
/>
|
|
148
|
-
<TagAndInput
|
|
149
|
-
inputType={"text"}
|
|
150
|
-
inputId={"lastNameInput"}
|
|
151
|
-
label={"Apellido"}
|
|
152
|
-
inputPlaceHolder={"Apellido"}
|
|
153
|
-
/>
|
|
154
|
-
</div>
|
|
155
|
-
{emptyName && <label>Ingrese su nombre</label>}
|
|
156
|
-
{emptyLastName && <label>Ingrese sus apellidos</label>}
|
|
157
|
-
<TagAndInput
|
|
158
|
-
inputType={"text"}
|
|
159
|
-
inputId={"emailInput"}
|
|
160
|
-
label={"Correo electrónico"}
|
|
161
|
-
inputPlaceHolder={"username@contentoh.com"}
|
|
162
|
-
/>
|
|
163
|
-
{emptyEmail && <label>Ingrese su correo</label>}
|
|
164
|
-
{invalidEmail && !emptyEmail && <label>Ingrese un correo válido</label>}
|
|
165
|
-
<TagAndInput
|
|
166
|
-
inputType={"text"}
|
|
167
|
-
inputId={"jobInput"}
|
|
168
|
-
label={"Puesto laboral"}
|
|
169
|
-
inputPlaceHolder={"Puesto dentro de la empresa"}
|
|
170
|
-
/>
|
|
171
|
-
{emptyJob && <label>Ingrese su puesto</label>}
|
|
172
|
-
<ScreenHeader text={"Teléfono"} headerType={"input-name-header"} />
|
|
173
|
-
<div className="phone-registration-user">
|
|
174
|
-
<select name="select" className="phone-options" id="countryCodeSelect">
|
|
175
|
-
<option>+52</option>
|
|
176
|
-
<option>+54</option>
|
|
177
|
-
<option>+57</option>
|
|
178
|
-
<option>+506</option>
|
|
179
|
-
<option>+593</option>
|
|
180
|
-
<option>+503</option>
|
|
181
|
-
<option>+504</option>
|
|
182
|
-
<option>+507</option>
|
|
183
|
-
<option>+51</option>
|
|
184
|
-
</select>
|
|
185
|
-
<GeneralInput
|
|
186
|
-
inputId={"phoneInput"}
|
|
187
|
-
inputType={"text"}
|
|
188
|
-
inputPlaceholder={"Teléfono"}
|
|
189
|
-
/>
|
|
190
|
-
</div>
|
|
191
|
-
{emptyPhone && <label>Ingrese su número de teléfono</label>}
|
|
192
|
-
<ScreenHeader text={"País"} headerType={"input-name-header"} />
|
|
193
|
-
<select name="select" className="country-options" id="countrySelect">
|
|
194
|
-
<option value="value1" selected>
|
|
195
|
-
Selecciona tu país
|
|
196
|
-
</option>
|
|
197
|
-
<option value="value2">Argentina</option>
|
|
198
|
-
<option value="value3">Colombia</option>
|
|
199
|
-
<option value="value2">Ecuador</option>
|
|
200
|
-
<option value="value3">El Salvador</option>
|
|
201
|
-
<option value="value2">Honduras</option>
|
|
202
|
-
<option value="value3">México</option>
|
|
203
|
-
<option value="value2">Panamá</option>
|
|
204
|
-
<option value="value3">Perú</option>
|
|
205
|
-
</select>
|
|
206
|
-
{emptyEmail && <label>Seleccione su país</label>}
|
|
207
|
-
</div>,
|
|
208
|
-
<div className="button-end" key="4">
|
|
209
|
-
<Button
|
|
210
|
-
buttonType={"general-default-button"}
|
|
211
|
-
label={"Enviar"}
|
|
212
|
-
onClick={(e) => validate(e)}
|
|
213
|
-
/>
|
|
214
|
-
</div>,
|
|
215
|
-
<div className="progress-bar" key="5">
|
|
216
|
-
<div className="progress-bar-first-step"></div>
|
|
217
|
-
<div className="progress-bar-registration"></div>
|
|
218
|
-
</div>,
|
|
219
|
-
<ScreenHeader
|
|
220
|
-
text={"Paso 1"}
|
|
221
|
-
headerType={"date-header"}
|
|
222
|
-
color={GlobalColors.s4}
|
|
223
|
-
key="6"
|
|
224
|
-
/>,
|
|
225
|
-
<div className="new-login" key="7">
|
|
226
|
-
<p className="pre-registro">
|
|
227
|
-
¿Ya tienes una cuenta?<span> Inicia Sesión</span>
|
|
228
|
-
</p>
|
|
229
|
-
</div>,
|
|
230
|
-
];
|
|
231
|
-
return (
|
|
232
|
-
<Container>
|
|
233
|
-
<div>
|
|
234
|
-
<GradientPanel
|
|
235
|
-
componentsArray={loginRight}
|
|
236
|
-
panelType={"home-login"}
|
|
237
|
-
panelColor={GlobalColors.white}
|
|
238
|
-
/>
|
|
239
|
-
</div>
|
|
240
|
-
</Container>
|
|
241
|
-
);
|
|
242
|
-
};
|
|
@@ -1,81 +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: 50%;
|
|
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
|
-
`;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { RegistrationSecondStep } from "./index";
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
title: "Components/molecules/RegistrationSecondStep",
|
|
5
|
-
component: RegistrationSecondStep,
|
|
6
|
-
};
|
|
7
|
-
const Template = (args) => <RegistrationSecondStep {...args} />;
|
|
8
|
-
|
|
9
|
-
export const RegistrationSecondStepDefault = Template.bind({});
|
|
10
|
-
|
|
11
|
-
RegistrationSecondStepDefault.args = {};
|