contentoh-components-library 21.0.23 → 21.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/{molecules/Login/Login.stories.js → atoms/Loading/Loading.stories.js} +7 -7
- package/dist/components/atoms/Loading/index.js +27 -0
- package/dist/components/atoms/Loading/styles.js +18 -0
- package/dist/components/molecules/EmailResetPasswordLogin/EmailResetPasswordLogin.stories.js +28 -0
- package/dist/components/molecules/EmailResetPasswordLogin/index.js +159 -0
- package/dist/components/molecules/EmailResetPasswordLogin/styles.js +20 -0
- package/dist/components/molecules/RegistrationFirstStep/RegistrationFirstStep.stories.js +28 -0
- package/dist/components/molecules/RegistrationFirstStep/index.js +371 -0
- package/dist/components/molecules/RegistrationFirstStep/styles.js +20 -0
- package/dist/components/molecules/RegistrationSecondStep/RegistrationSecondStep.stories.js +28 -0
- package/dist/components/molecules/RegistrationSecondStep/index.js +156 -0
- package/dist/components/molecules/RegistrationSecondStep/styles.js +20 -0
- package/dist/components/molecules/RegistrationThirdStep/RegistrationThirdStep.stories.js +28 -0
- package/dist/components/molecules/RegistrationThirdStep/index.js +161 -0
- package/dist/components/molecules/RegistrationThirdStep/styles.js +20 -0
- package/dist/components/molecules/SignInLogin/SignInLogin.stories.js +28 -0
- package/dist/components/molecules/SignInLogin/index.js +288 -0
- package/dist/components/molecules/SignInLogin/styles.js +20 -0
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/VerificationCodeResetPasswordLogin.stories.js +28 -0
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/index.js +104 -0
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/styles.js +20 -0
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/utils.js +69 -0
- package/dist/components/organisms/ChangePassword/ChangePassword.stories.js +28 -0
- package/dist/components/organisms/ChangePassword/index.js +113 -0
- package/dist/components/organisms/ChangePassword/styles.js +18 -0
- package/dist/index.js +150 -46
- package/package.json +4 -2
- package/src/components/atoms/Loading/Loading.stories.js +10 -0
- package/src/components/atoms/Loading/index.js +13 -0
- package/src/components/atoms/Loading/styles.js +57 -0
- package/src/components/molecules/EmailResetPasswordLogin/EmailResetPasswordLogin.stories.js +11 -0
- package/src/components/molecules/EmailResetPasswordLogin/index.js +87 -0
- package/src/components/molecules/EmailResetPasswordLogin/styles.js +23 -0
- package/src/components/molecules/RegistrationFirstStep/RegistrationFirstStep.stories.js +11 -0
- package/src/components/molecules/RegistrationFirstStep/index.js +259 -0
- package/src/components/molecules/RegistrationFirstStep/styles.js +81 -0
- package/src/components/molecules/RegistrationSecondStep/RegistrationSecondStep.stories.js +11 -0
- package/src/components/molecules/RegistrationSecondStep/index.js +97 -0
- package/src/components/molecules/RegistrationSecondStep/styles.js +59 -0
- package/src/components/molecules/RegistrationThirdStep/RegistrationThirdStep.stories.js +11 -0
- package/src/components/molecules/RegistrationThirdStep/index.js +109 -0
- package/src/components/molecules/RegistrationThirdStep/styles.js +44 -0
- package/src/components/molecules/SignInLogin/SignInLogin.stories.js +11 -0
- package/src/components/molecules/SignInLogin/index.js +201 -0
- package/src/components/molecules/{Login → SignInLogin}/styles.js +1 -0
- package/src/components/molecules/VerificationCodeResetPasswordLogin/VerificationCodeResetPasswordLogin.stories.js +11 -0
- package/src/components/molecules/VerificationCodeResetPasswordLogin/index.js +78 -0
- package/src/components/molecules/VerificationCodeResetPasswordLogin/styles.js +49 -0
- package/src/components/molecules/VerificationCodeResetPasswordLogin/utils.js +56 -0
- package/src/components/organisms/ChangePassword/ChangePassword.stories.js +11 -0
- package/src/components/organisms/ChangePassword/index.js +63 -0
- package/src/components/organisms/ChangePassword/styles.js +16 -0
- package/src/index.js +17 -9
- package/dist/components/molecules/Login/index.js +0 -142
- package/dist/components/molecules/Login/styles.js +0 -20
- package/src/components/molecules/Login/Login.stories.js +0 -11
- package/src/components/molecules/Login/index.js +0 -79
|
@@ -0,0 +1,69 @@
|
|
|
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;
|
|
@@ -0,0 +1,28 @@
|
|
|
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.ChangePasswordDefault = 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 _default = {
|
|
17
|
+
title: "Components/organisms/ChangePassword",
|
|
18
|
+
component: _index.ChangePassword
|
|
19
|
+
};
|
|
20
|
+
exports.default = _default;
|
|
21
|
+
|
|
22
|
+
var Template = function Template(args) {
|
|
23
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ChangePassword, (0, _objectSpread2.default)({}, args));
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
var ChangePasswordDefault = Template.bind({});
|
|
27
|
+
exports.ChangePasswordDefault = ChangePasswordDefault;
|
|
28
|
+
ChangePasswordDefault.args = {};
|
|
@@ -0,0 +1,113 @@
|
|
|
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;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.Container = void 0;
|
|
9
|
+
|
|
10
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
11
|
+
|
|
12
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
|
+
|
|
14
|
+
var _templateObject;
|
|
15
|
+
|
|
16
|
+
var Container = _styledComponents.default.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;
|
package/dist/index.js
CHANGED
|
@@ -160,7 +160,7 @@ Object.keys(_index12).forEach(function (key) {
|
|
|
160
160
|
});
|
|
161
161
|
});
|
|
162
162
|
|
|
163
|
-
var _index13 = require("./components/atoms/
|
|
163
|
+
var _index13 = require("./components/atoms/Loading/index");
|
|
164
164
|
|
|
165
165
|
Object.keys(_index13).forEach(function (key) {
|
|
166
166
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -173,7 +173,7 @@ Object.keys(_index13).forEach(function (key) {
|
|
|
173
173
|
});
|
|
174
174
|
});
|
|
175
175
|
|
|
176
|
-
var _index14 = require("./components/atoms/
|
|
176
|
+
var _index14 = require("./components/atoms/PriorityFlag/index");
|
|
177
177
|
|
|
178
178
|
Object.keys(_index14).forEach(function (key) {
|
|
179
179
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -186,7 +186,7 @@ Object.keys(_index14).forEach(function (key) {
|
|
|
186
186
|
});
|
|
187
187
|
});
|
|
188
188
|
|
|
189
|
-
var _index15 = require("./components/atoms/
|
|
189
|
+
var _index15 = require("./components/atoms/ProductImage/index");
|
|
190
190
|
|
|
191
191
|
Object.keys(_index15).forEach(function (key) {
|
|
192
192
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -199,7 +199,7 @@ Object.keys(_index15).forEach(function (key) {
|
|
|
199
199
|
});
|
|
200
200
|
});
|
|
201
201
|
|
|
202
|
-
var _index16 = require("./components/atoms/
|
|
202
|
+
var _index16 = require("./components/atoms/ProgressBar/index");
|
|
203
203
|
|
|
204
204
|
Object.keys(_index16).forEach(function (key) {
|
|
205
205
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -212,7 +212,7 @@ Object.keys(_index16).forEach(function (key) {
|
|
|
212
212
|
});
|
|
213
213
|
});
|
|
214
214
|
|
|
215
|
-
var _index17 = require("./components/atoms/
|
|
215
|
+
var _index17 = require("./components/atoms/ScreenHeader/index");
|
|
216
216
|
|
|
217
217
|
Object.keys(_index17).forEach(function (key) {
|
|
218
218
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -225,7 +225,7 @@ Object.keys(_index17).forEach(function (key) {
|
|
|
225
225
|
});
|
|
226
226
|
});
|
|
227
227
|
|
|
228
|
-
var _index18 = require("./components/atoms/
|
|
228
|
+
var _index18 = require("./components/atoms/SideMenuButton/index");
|
|
229
229
|
|
|
230
230
|
Object.keys(_index18).forEach(function (key) {
|
|
231
231
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -238,7 +238,7 @@ Object.keys(_index18).forEach(function (key) {
|
|
|
238
238
|
});
|
|
239
239
|
});
|
|
240
240
|
|
|
241
|
-
var _index19 = require("./components/atoms/
|
|
241
|
+
var _index19 = require("./components/atoms/StatusTag/index");
|
|
242
242
|
|
|
243
243
|
Object.keys(_index19).forEach(function (key) {
|
|
244
244
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -251,7 +251,7 @@ Object.keys(_index19).forEach(function (key) {
|
|
|
251
251
|
});
|
|
252
252
|
});
|
|
253
253
|
|
|
254
|
-
var _index20 = require("./components/atoms/
|
|
254
|
+
var _index20 = require("./components/atoms/TabSection/index");
|
|
255
255
|
|
|
256
256
|
Object.keys(_index20).forEach(function (key) {
|
|
257
257
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -264,7 +264,7 @@ Object.keys(_index20).forEach(function (key) {
|
|
|
264
264
|
});
|
|
265
265
|
});
|
|
266
266
|
|
|
267
|
-
var _index21 = require("./components/
|
|
267
|
+
var _index21 = require("./components/atoms/ValidationPanel/index");
|
|
268
268
|
|
|
269
269
|
Object.keys(_index21).forEach(function (key) {
|
|
270
270
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -277,33 +277,33 @@ Object.keys(_index21).forEach(function (key) {
|
|
|
277
277
|
});
|
|
278
278
|
});
|
|
279
279
|
|
|
280
|
-
var
|
|
280
|
+
var _index22 = require("./components/molecules/AvatarAndValidation/index");
|
|
281
281
|
|
|
282
|
-
Object.keys(
|
|
282
|
+
Object.keys(_index22).forEach(function (key) {
|
|
283
283
|
if (key === "default" || key === "__esModule") return;
|
|
284
|
-
if (key in exports && exports[key] ===
|
|
284
|
+
if (key in exports && exports[key] === _index22[key]) return;
|
|
285
285
|
Object.defineProperty(exports, key, {
|
|
286
286
|
enumerable: true,
|
|
287
287
|
get: function get() {
|
|
288
|
-
return
|
|
288
|
+
return _index22[key];
|
|
289
289
|
}
|
|
290
290
|
});
|
|
291
291
|
});
|
|
292
292
|
|
|
293
|
-
var
|
|
293
|
+
var _CarouselImagesLogin = require("./components/molecules/CarouselImagesLogin");
|
|
294
294
|
|
|
295
|
-
Object.keys(
|
|
295
|
+
Object.keys(_CarouselImagesLogin).forEach(function (key) {
|
|
296
296
|
if (key === "default" || key === "__esModule") return;
|
|
297
|
-
if (key in exports && exports[key] ===
|
|
297
|
+
if (key in exports && exports[key] === _CarouselImagesLogin[key]) return;
|
|
298
298
|
Object.defineProperty(exports, key, {
|
|
299
299
|
enumerable: true,
|
|
300
300
|
get: function get() {
|
|
301
|
-
return
|
|
301
|
+
return _CarouselImagesLogin[key];
|
|
302
302
|
}
|
|
303
303
|
});
|
|
304
304
|
});
|
|
305
305
|
|
|
306
|
-
var _index23 = require("./components/molecules/
|
|
306
|
+
var _index23 = require("./components/molecules/EditionActiveImage/index");
|
|
307
307
|
|
|
308
308
|
Object.keys(_index23).forEach(function (key) {
|
|
309
309
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -316,7 +316,7 @@ Object.keys(_index23).forEach(function (key) {
|
|
|
316
316
|
});
|
|
317
317
|
});
|
|
318
318
|
|
|
319
|
-
var _index24 = require("./components/molecules/
|
|
319
|
+
var _index24 = require("./components/molecules/EmailResetPasswordLogin/index");
|
|
320
320
|
|
|
321
321
|
Object.keys(_index24).forEach(function (key) {
|
|
322
322
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -329,7 +329,7 @@ Object.keys(_index24).forEach(function (key) {
|
|
|
329
329
|
});
|
|
330
330
|
});
|
|
331
331
|
|
|
332
|
-
var _index25 = require("./components/molecules/
|
|
332
|
+
var _index25 = require("./components/molecules/FeaturesBar/index");
|
|
333
333
|
|
|
334
334
|
Object.keys(_index25).forEach(function (key) {
|
|
335
335
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -342,7 +342,7 @@ Object.keys(_index25).forEach(function (key) {
|
|
|
342
342
|
});
|
|
343
343
|
});
|
|
344
344
|
|
|
345
|
-
var _index26 = require("./components/molecules/
|
|
345
|
+
var _index26 = require("./components/molecules/GalleryElement/index");
|
|
346
346
|
|
|
347
347
|
Object.keys(_index26).forEach(function (key) {
|
|
348
348
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -355,46 +355,46 @@ Object.keys(_index26).forEach(function (key) {
|
|
|
355
355
|
});
|
|
356
356
|
});
|
|
357
357
|
|
|
358
|
-
var
|
|
358
|
+
var _index27 = require("./components/molecules/HeaderTop/index");
|
|
359
359
|
|
|
360
|
-
Object.keys(
|
|
360
|
+
Object.keys(_index27).forEach(function (key) {
|
|
361
361
|
if (key === "default" || key === "__esModule") return;
|
|
362
|
-
if (key in exports && exports[key] ===
|
|
362
|
+
if (key in exports && exports[key] === _index27[key]) return;
|
|
363
363
|
Object.defineProperty(exports, key, {
|
|
364
364
|
enumerable: true,
|
|
365
365
|
get: function get() {
|
|
366
|
-
return
|
|
366
|
+
return _index27[key];
|
|
367
367
|
}
|
|
368
368
|
});
|
|
369
369
|
});
|
|
370
370
|
|
|
371
|
-
var
|
|
371
|
+
var _index28 = require("./components/molecules/ImageSelector/index");
|
|
372
372
|
|
|
373
|
-
Object.keys(
|
|
373
|
+
Object.keys(_index28).forEach(function (key) {
|
|
374
374
|
if (key === "default" || key === "__esModule") return;
|
|
375
|
-
if (key in exports && exports[key] ===
|
|
375
|
+
if (key in exports && exports[key] === _index28[key]) return;
|
|
376
376
|
Object.defineProperty(exports, key, {
|
|
377
377
|
enumerable: true,
|
|
378
378
|
get: function get() {
|
|
379
|
-
return
|
|
379
|
+
return _index28[key];
|
|
380
380
|
}
|
|
381
381
|
});
|
|
382
382
|
});
|
|
383
383
|
|
|
384
|
-
var
|
|
384
|
+
var _LoginPasswordStrength = require("./components/molecules/LoginPasswordStrength");
|
|
385
385
|
|
|
386
|
-
Object.keys(
|
|
386
|
+
Object.keys(_LoginPasswordStrength).forEach(function (key) {
|
|
387
387
|
if (key === "default" || key === "__esModule") return;
|
|
388
|
-
if (key in exports && exports[key] ===
|
|
388
|
+
if (key in exports && exports[key] === _LoginPasswordStrength[key]) return;
|
|
389
389
|
Object.defineProperty(exports, key, {
|
|
390
390
|
enumerable: true,
|
|
391
391
|
get: function get() {
|
|
392
|
-
return
|
|
392
|
+
return _LoginPasswordStrength[key];
|
|
393
393
|
}
|
|
394
394
|
});
|
|
395
395
|
});
|
|
396
396
|
|
|
397
|
-
var _index29 = require("./components/molecules/
|
|
397
|
+
var _index29 = require("./components/molecules/PlanSelection/index");
|
|
398
398
|
|
|
399
399
|
Object.keys(_index29).forEach(function (key) {
|
|
400
400
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -407,7 +407,7 @@ Object.keys(_index29).forEach(function (key) {
|
|
|
407
407
|
});
|
|
408
408
|
});
|
|
409
409
|
|
|
410
|
-
var _index30 = require("./components/molecules/
|
|
410
|
+
var _index30 = require("./components/molecules/ProductNameHeader/index");
|
|
411
411
|
|
|
412
412
|
Object.keys(_index30).forEach(function (key) {
|
|
413
413
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -420,7 +420,7 @@ Object.keys(_index30).forEach(function (key) {
|
|
|
420
420
|
});
|
|
421
421
|
});
|
|
422
422
|
|
|
423
|
-
var _index31 = require("./components/molecules/
|
|
423
|
+
var _index31 = require("./components/molecules/RegistrationFirstStep/index");
|
|
424
424
|
|
|
425
425
|
Object.keys(_index31).forEach(function (key) {
|
|
426
426
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -433,7 +433,7 @@ Object.keys(_index31).forEach(function (key) {
|
|
|
433
433
|
});
|
|
434
434
|
});
|
|
435
435
|
|
|
436
|
-
var _index32 = require("./components/molecules/
|
|
436
|
+
var _index32 = require("./components/molecules/RegistrationSecondStep/index");
|
|
437
437
|
|
|
438
438
|
Object.keys(_index32).forEach(function (key) {
|
|
439
439
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -446,7 +446,7 @@ Object.keys(_index32).forEach(function (key) {
|
|
|
446
446
|
});
|
|
447
447
|
});
|
|
448
448
|
|
|
449
|
-
var _index33 = require("./components/molecules/
|
|
449
|
+
var _index33 = require("./components/molecules/RegistrationThirdStep/index");
|
|
450
450
|
|
|
451
451
|
Object.keys(_index33).forEach(function (key) {
|
|
452
452
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -459,7 +459,7 @@ Object.keys(_index33).forEach(function (key) {
|
|
|
459
459
|
});
|
|
460
460
|
});
|
|
461
461
|
|
|
462
|
-
var _index34 = require("./components/
|
|
462
|
+
var _index34 = require("./components/molecules/SignInLogin/index");
|
|
463
463
|
|
|
464
464
|
Object.keys(_index34).forEach(function (key) {
|
|
465
465
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -472,7 +472,7 @@ Object.keys(_index34).forEach(function (key) {
|
|
|
472
472
|
});
|
|
473
473
|
});
|
|
474
474
|
|
|
475
|
-
var _index35 = require("./components/
|
|
475
|
+
var _index35 = require("./components/molecules/StatusAsignationInfo/index");
|
|
476
476
|
|
|
477
477
|
Object.keys(_index35).forEach(function (key) {
|
|
478
478
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -485,7 +485,7 @@ Object.keys(_index35).forEach(function (key) {
|
|
|
485
485
|
});
|
|
486
486
|
});
|
|
487
487
|
|
|
488
|
-
var _index36 = require("./components/
|
|
488
|
+
var _index36 = require("./components/molecules/TableHeader/index");
|
|
489
489
|
|
|
490
490
|
Object.keys(_index36).forEach(function (key) {
|
|
491
491
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -498,7 +498,7 @@ Object.keys(_index36).forEach(function (key) {
|
|
|
498
498
|
});
|
|
499
499
|
});
|
|
500
500
|
|
|
501
|
-
var _index37 = require("./components/
|
|
501
|
+
var _index37 = require("./components/molecules/TableRow/index");
|
|
502
502
|
|
|
503
503
|
Object.keys(_index37).forEach(function (key) {
|
|
504
504
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -511,7 +511,7 @@ Object.keys(_index37).forEach(function (key) {
|
|
|
511
511
|
});
|
|
512
512
|
});
|
|
513
513
|
|
|
514
|
-
var _index38 = require("./components/
|
|
514
|
+
var _index38 = require("./components/molecules/TabsMenu/index");
|
|
515
515
|
|
|
516
516
|
Object.keys(_index38).forEach(function (key) {
|
|
517
517
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -524,7 +524,7 @@ Object.keys(_index38).forEach(function (key) {
|
|
|
524
524
|
});
|
|
525
525
|
});
|
|
526
526
|
|
|
527
|
-
var _index39 = require("./components/
|
|
527
|
+
var _index39 = require("./components/molecules/TagAndInput/index");
|
|
528
528
|
|
|
529
529
|
Object.keys(_index39).forEach(function (key) {
|
|
530
530
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -537,7 +537,7 @@ Object.keys(_index39).forEach(function (key) {
|
|
|
537
537
|
});
|
|
538
538
|
});
|
|
539
539
|
|
|
540
|
-
var _index40 = require("./components/
|
|
540
|
+
var _index40 = require("./components/molecules/VerificationCodeResetPasswordLogin/index");
|
|
541
541
|
|
|
542
542
|
Object.keys(_index40).forEach(function (key) {
|
|
543
543
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -550,7 +550,7 @@ Object.keys(_index40).forEach(function (key) {
|
|
|
550
550
|
});
|
|
551
551
|
});
|
|
552
552
|
|
|
553
|
-
var _index41 = require("./components/organisms/
|
|
553
|
+
var _index41 = require("./components/organisms/ChangePassword/index");
|
|
554
554
|
|
|
555
555
|
Object.keys(_index41).forEach(function (key) {
|
|
556
556
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -563,6 +563,110 @@ Object.keys(_index41).forEach(function (key) {
|
|
|
563
563
|
});
|
|
564
564
|
});
|
|
565
565
|
|
|
566
|
+
var _index42 = require("./components/organisms/Fullplan/index");
|
|
567
|
+
|
|
568
|
+
Object.keys(_index42).forEach(function (key) {
|
|
569
|
+
if (key === "default" || key === "__esModule") return;
|
|
570
|
+
if (key in exports && exports[key] === _index42[key]) return;
|
|
571
|
+
Object.defineProperty(exports, key, {
|
|
572
|
+
enumerable: true,
|
|
573
|
+
get: function get() {
|
|
574
|
+
return _index42[key];
|
|
575
|
+
}
|
|
576
|
+
});
|
|
577
|
+
});
|
|
578
|
+
|
|
579
|
+
var _index43 = require("./components/organisms/FullProductNameHeader/index");
|
|
580
|
+
|
|
581
|
+
Object.keys(_index43).forEach(function (key) {
|
|
582
|
+
if (key === "default" || key === "__esModule") return;
|
|
583
|
+
if (key in exports && exports[key] === _index43[key]) return;
|
|
584
|
+
Object.defineProperty(exports, key, {
|
|
585
|
+
enumerable: true,
|
|
586
|
+
get: function get() {
|
|
587
|
+
return _index43[key];
|
|
588
|
+
}
|
|
589
|
+
});
|
|
590
|
+
});
|
|
591
|
+
|
|
592
|
+
var _index44 = require("./components/organisms/FullTabsMenu/index");
|
|
593
|
+
|
|
594
|
+
Object.keys(_index44).forEach(function (key) {
|
|
595
|
+
if (key === "default" || key === "__esModule") return;
|
|
596
|
+
if (key in exports && exports[key] === _index44[key]) return;
|
|
597
|
+
Object.defineProperty(exports, key, {
|
|
598
|
+
enumerable: true,
|
|
599
|
+
get: function get() {
|
|
600
|
+
return _index44[key];
|
|
601
|
+
}
|
|
602
|
+
});
|
|
603
|
+
});
|
|
604
|
+
|
|
605
|
+
var _index45 = require("./components/organisms/ImageDataTable/index");
|
|
606
|
+
|
|
607
|
+
Object.keys(_index45).forEach(function (key) {
|
|
608
|
+
if (key === "default" || key === "__esModule") return;
|
|
609
|
+
if (key in exports && exports[key] === _index45[key]) return;
|
|
610
|
+
Object.defineProperty(exports, key, {
|
|
611
|
+
enumerable: true,
|
|
612
|
+
get: function get() {
|
|
613
|
+
return _index45[key];
|
|
614
|
+
}
|
|
615
|
+
});
|
|
616
|
+
});
|
|
617
|
+
|
|
618
|
+
var _index46 = require("./components/organisms/ImagePreviewer/index");
|
|
619
|
+
|
|
620
|
+
Object.keys(_index46).forEach(function (key) {
|
|
621
|
+
if (key === "default" || key === "__esModule") return;
|
|
622
|
+
if (key in exports && exports[key] === _index46[key]) return;
|
|
623
|
+
Object.defineProperty(exports, key, {
|
|
624
|
+
enumerable: true,
|
|
625
|
+
get: function get() {
|
|
626
|
+
return _index46[key];
|
|
627
|
+
}
|
|
628
|
+
});
|
|
629
|
+
});
|
|
630
|
+
|
|
631
|
+
var _index47 = require("./components/organisms/ImagesGroup/index");
|
|
632
|
+
|
|
633
|
+
Object.keys(_index47).forEach(function (key) {
|
|
634
|
+
if (key === "default" || key === "__esModule") return;
|
|
635
|
+
if (key in exports && exports[key] === _index47[key]) return;
|
|
636
|
+
Object.defineProperty(exports, key, {
|
|
637
|
+
enumerable: true,
|
|
638
|
+
get: function get() {
|
|
639
|
+
return _index47[key];
|
|
640
|
+
}
|
|
641
|
+
});
|
|
642
|
+
});
|
|
643
|
+
|
|
644
|
+
var _index48 = require("./components/organisms/InputGroup/index");
|
|
645
|
+
|
|
646
|
+
Object.keys(_index48).forEach(function (key) {
|
|
647
|
+
if (key === "default" || key === "__esModule") return;
|
|
648
|
+
if (key in exports && exports[key] === _index48[key]) return;
|
|
649
|
+
Object.defineProperty(exports, key, {
|
|
650
|
+
enumerable: true,
|
|
651
|
+
get: function get() {
|
|
652
|
+
return _index48[key];
|
|
653
|
+
}
|
|
654
|
+
});
|
|
655
|
+
});
|
|
656
|
+
|
|
657
|
+
var _index49 = require("./components/organisms/ProductImageModal/index");
|
|
658
|
+
|
|
659
|
+
Object.keys(_index49).forEach(function (key) {
|
|
660
|
+
if (key === "default" || key === "__esModule") return;
|
|
661
|
+
if (key in exports && exports[key] === _index49[key]) return;
|
|
662
|
+
Object.defineProperty(exports, key, {
|
|
663
|
+
enumerable: true,
|
|
664
|
+
get: function get() {
|
|
665
|
+
return _index49[key];
|
|
666
|
+
}
|
|
667
|
+
});
|
|
668
|
+
});
|
|
669
|
+
|
|
566
670
|
var _ChangePasswordLogin = require("./components/pages/ChangePasswordLogin");
|
|
567
671
|
|
|
568
672
|
Object.keys(_ChangePasswordLogin).forEach(function (key) {
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contentoh-components-library",
|
|
3
|
-
"version": "21.0.
|
|
3
|
+
"version": "21.0.27",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@babel/runtime": "^7.17.2",
|
|
6
6
|
"@storybook/addon-postcss": "^2.0.0",
|
|
7
7
|
"@testing-library/jest-dom": "^5.11.4",
|
|
8
8
|
"@testing-library/react": "^11.1.0",
|
|
9
9
|
"@testing-library/user-event": "^12.1.10",
|
|
10
|
+
"auth": "^0.0.9",
|
|
10
11
|
"axios": "^0.25.0",
|
|
11
12
|
"babel-preset-react-app": "^10.0.1",
|
|
12
13
|
"chart.js": "^3.7.1",
|
|
@@ -16,6 +17,7 @@
|
|
|
16
17
|
"react-chartjs-2": "^4.1.0",
|
|
17
18
|
"react-dom": "^17.0.2",
|
|
18
19
|
"react-image-fallback": "^8.0.0",
|
|
20
|
+
"react-router-dom": "^6.3.0",
|
|
19
21
|
"styled-components": "^5.3.3",
|
|
20
22
|
"web-vitals": "^1.0.1"
|
|
21
23
|
},
|
|
@@ -70,7 +72,7 @@
|
|
|
70
72
|
"auto": "^10.36.5",
|
|
71
73
|
"babel-loader": "^8.2.3",
|
|
72
74
|
"chromatic": "^6.3.3",
|
|
73
|
-
"contentoh-components-library": "^21.0.
|
|
75
|
+
"contentoh-components-library": "^21.0.26",
|
|
74
76
|
"cross-env": "^7.0.3",
|
|
75
77
|
"storybook-css-modules-preset": "^1.1.1"
|
|
76
78
|
},
|