contentoh-components-library 21.0.3 → 21.0.6
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 +69 -48
- package/dist/components/atoms/GradientPanel/styles.js +2 -2
- package/dist/components/atoms/InputFormatter/index.js +128 -67
- 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 +10 -8
- package/dist/components/organisms/ProductImageModal/index.js +0 -1
- 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 +6 -16
- package/dist/components/pages/RetailerProductEdition/index.js +102 -66
- 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 +58 -49
- package/src/components/atoms/GradientPanel/styles.js +7 -1
- package/src/components/atoms/InputFormatter/index.js +104 -47
- 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 -1
- 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/InputGroup/index.js +18 -7
- package/src/components/organisms/ProductImageModal/index.js +0 -2
- 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 +6 -16
- package/src/components/pages/RetailerProductEdition/index.js +73 -18
- 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,31 @@
|
|
|
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.CharCounterDefault = 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/atoms/CharCounter",
|
|
18
|
+
component: _index.CharCounter
|
|
19
|
+
};
|
|
20
|
+
exports.default = _default;
|
|
21
|
+
|
|
22
|
+
var Template = function Template(args) {
|
|
23
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.CharCounter, (0, _objectSpread2.default)({}, args));
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
var CharCounterDefault = Template.bind({});
|
|
27
|
+
exports.CharCounterDefault = CharCounterDefault;
|
|
28
|
+
CharCounterDefault.args = {
|
|
29
|
+
counter: 0,
|
|
30
|
+
limit: 0
|
|
31
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.CharCounter = void 0;
|
|
7
|
+
|
|
8
|
+
var _styles = require("./styles");
|
|
9
|
+
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
|
|
12
|
+
var CharCounter = function CharCounter(_ref) {
|
|
13
|
+
var counter = _ref.counter,
|
|
14
|
+
limit = _ref.limit;
|
|
15
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
16
|
+
children: limit && /*#__PURE__*/(0, _jsxRuntime.jsxs)("p", {
|
|
17
|
+
children: [counter, "/", limit]
|
|
18
|
+
})
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
exports.CharCounter = CharCounter;
|
|
@@ -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 font-family: ", ";\n color: ", ";\n font-size: 13px;\n text-align: right;\n padding-right: 10px;\n"])), _variables.FontFamily.AvenirNext, _variables.GlobalColors.s4);
|
|
19
|
+
|
|
20
|
+
exports.Container = Container;
|
|
@@ -20,77 +20,98 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
20
20
|
var GeneralInput = function GeneralInput(_ref) {
|
|
21
21
|
var inputType = _ref.inputType,
|
|
22
22
|
inputId = _ref.inputId,
|
|
23
|
+
inputName = _ref.inputName,
|
|
23
24
|
inputValue = _ref.inputValue,
|
|
24
|
-
articleId = _ref.articleId,
|
|
25
|
-
isRequired = _ref.isRequired,
|
|
26
|
-
version = _ref.version,
|
|
27
25
|
inputPlaceholder = _ref.inputPlaceholder,
|
|
28
|
-
|
|
26
|
+
validateInput = _ref.validateInput,
|
|
27
|
+
position = _ref.position,
|
|
28
|
+
inputsArray = _ref.inputsArray,
|
|
29
|
+
inputSize = _ref.inputSize,
|
|
30
|
+
articleId = _ref.articleId,
|
|
29
31
|
updatedDatasheets = _ref.updatedDatasheets,
|
|
30
32
|
setUpdatedDatasheets = _ref.setUpdatedDatasheets,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
+
updatedDescriptions = _ref.updatedDescriptions,
|
|
34
|
+
setUpdatedDescriptions = _ref.setUpdatedDescriptions,
|
|
35
|
+
maxChar = _ref.maxChar,
|
|
36
|
+
isRequired = _ref.isRequired,
|
|
37
|
+
version = _ref.version;
|
|
33
38
|
|
|
34
39
|
var _useState = (0, _react.useState)({
|
|
35
|
-
value: inputValue
|
|
40
|
+
value: inputValue
|
|
36
41
|
}),
|
|
37
42
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
38
43
|
textValue = _useState2[0],
|
|
39
44
|
setTextValue = _useState2[1];
|
|
40
45
|
|
|
41
|
-
var
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
});
|
|
46
|
-
updatedDatasheets && addTextAreaToArray(e.target.value, updatedDatasheets, setUpdatedDatasheets);
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
(0, _react.useEffect)(function () {
|
|
50
|
-
if (dinamicHeight) {
|
|
51
|
-
var input = document.querySelector("textarea#description-".concat(inputId, "-").concat(index));
|
|
46
|
+
var _useState3 = (0, _react.useState)(false),
|
|
47
|
+
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
48
|
+
requiredEmpty = _useState4[0],
|
|
49
|
+
setRequiredEmpty = _useState4[1];
|
|
52
50
|
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
var onHandleChange = function onHandleChange(evt) {
|
|
52
|
+
if (validateInput) {
|
|
53
|
+
setTextValue({
|
|
54
|
+
value: validateInput(evt, position, inputsArray)
|
|
55
|
+
});
|
|
56
|
+
} else {
|
|
57
|
+
setTextValue({
|
|
58
|
+
value: evt.target.value
|
|
59
|
+
});
|
|
60
|
+
var dataSave = updatedDatasheets.slice();
|
|
61
|
+
if (dataSave.length === 0) dataSave.push({
|
|
62
|
+
articleId: articleId,
|
|
63
|
+
versionId: version,
|
|
64
|
+
attributeId: inputId,
|
|
65
|
+
value: evt.target.value
|
|
66
|
+
});else if (dataSave.some(function (e) {
|
|
67
|
+
return e.attributeId === inputId;
|
|
68
|
+
})) {
|
|
69
|
+
dataSave.forEach(function (e) {
|
|
70
|
+
if (e.attributeId === inputId) {
|
|
71
|
+
e.value = evt.target.value;
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
} else {
|
|
75
|
+
dataSave.push({
|
|
76
|
+
articleId: articleId,
|
|
77
|
+
versionId: version,
|
|
78
|
+
attributeId: inputId,
|
|
79
|
+
value: evt.target.value
|
|
80
|
+
});
|
|
55
81
|
}
|
|
82
|
+
setUpdatedDatasheets(dataSave);
|
|
56
83
|
}
|
|
57
|
-
}, [textValue]);
|
|
58
|
-
|
|
59
|
-
var addTextAreaToArray = function addTextAreaToArray(textValue) {
|
|
60
|
-
var array = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
61
|
-
var setArray = arguments.length > 2 ? arguments[2] : undefined;
|
|
62
|
-
var tempDescriptions = array;
|
|
63
|
-
var newArticle = {
|
|
64
|
-
articleId: articleId,
|
|
65
|
-
attributeId: inputId,
|
|
66
|
-
value: textValue,
|
|
67
|
-
versionId: version
|
|
68
|
-
};
|
|
69
|
-
var isOnArray = tempDescriptions === null || tempDescriptions === void 0 ? void 0 : tempDescriptions.some(function (desc, index) {
|
|
70
|
-
if (desc.attributeId === newArticle.attributeId) {
|
|
71
|
-
tempDescriptions[index] = newArticle;
|
|
72
|
-
return true;
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
!isOnArray && (tempDescriptions === null || tempDescriptions === void 0 ? void 0 : tempDescriptions.push(newArticle));
|
|
76
|
-
setArray(tempDescriptions);
|
|
77
84
|
};
|
|
78
85
|
|
|
86
|
+
(0, _react.useEffect)(function () {
|
|
87
|
+
var _textValue$value;
|
|
88
|
+
|
|
89
|
+
setRequiredEmpty(isRequired && ((_textValue$value = textValue.value) === null || _textValue$value === void 0 ? void 0 : _textValue$value.length) === 0);
|
|
90
|
+
}, [textValue]);
|
|
79
91
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
80
|
-
isRequired:
|
|
92
|
+
isRequired: requiredEmpty,
|
|
81
93
|
children: inputType !== "textarea" ? /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
82
94
|
type: inputType,
|
|
83
|
-
id:
|
|
95
|
+
id: inputId,
|
|
96
|
+
size: inputSize,
|
|
84
97
|
className: "general-input",
|
|
85
98
|
placeholder: inputPlaceholder,
|
|
86
|
-
value: textValue
|
|
87
|
-
|
|
99
|
+
value: textValue.value,
|
|
100
|
+
onInput: function onInput(e) {
|
|
101
|
+
return onHandleChange(e);
|
|
102
|
+
},
|
|
103
|
+
required: isRequired,
|
|
104
|
+
maxLength: maxChar
|
|
88
105
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_InputFormatter.InputFormatter, {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
106
|
+
name: inputName,
|
|
107
|
+
inputId: inputId,
|
|
108
|
+
placeholder: inputPlaceholder,
|
|
109
|
+
mainValue: textValue.value,
|
|
110
|
+
onChange: onHandleChange,
|
|
111
|
+
articleId: articleId,
|
|
112
|
+
updatedDescriptions: updatedDescriptions,
|
|
92
113
|
setUpdatedDescriptions: setUpdatedDescriptions,
|
|
93
|
-
|
|
114
|
+
maxChar: maxChar,
|
|
94
115
|
isRequired: isRequired
|
|
95
116
|
})
|
|
96
117
|
});
|
|
@@ -15,10 +15,10 @@ var _variables = require("../../../global-files/variables");
|
|
|
15
15
|
|
|
16
16
|
var _templateObject;
|
|
17
17
|
|
|
18
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background: ", ";\n display: flex;\n height: 100%;\n justify-content: center;\n align-items: center;\n\n &.home-panel {\n text-align: center;\n h2 {\n & + * {\n margin-top: 20px;\n }\n }\n p {\n font-family: ", ";\n color: ", ";\n font-size: 18px;\n line-height: 21px;\n letter-spacing: -0.015em;\n & + * {\n margin-top: 20px;\n }\n }\n }\n\n &.home-login {\n .credenciales {\n & + * {\n margin-top: 30px;\n }\n }\n .user {\n & + * {\n margin-top: 20px;\n }\n }\n .password {\n & + * {\n margin-top: 20px;\n }\n }\n .select {\n display: flex;\n justify-content: space-between;\n .active-right {\n font-family: ", ";\n font-weight: 500;\n font-size: 13px;\n line-height: 24px;\n letter-spacing: -0.015em;\n color: ", ";\n }\n & + * {\n margin-top: 50px;\n }\n }\n .button-right {\n text-align: right;\n & + * {\n margin-top: 55px;\n }\n }\n .new-login {\n p {\n font-family: ", ";\n text-align: right;\n font-weight: 500;\n font-size: 13px;\n line-height: 24px;\n color: ", ";\n span {\n color: ", ";\n }\n }\n }\n }\n &.home-card {\n position: relative;\n .plan {\n text-align: center;\n & + * {\n margin-top: 40px;\n }\n }\n .arrowimage {\n position: absolute;\n top: 50px;\n left: 40px;\n }\n .general-text {\n font-family: ", ";\n font-size: 14px;\n line-height: 19px;\n text-align: center;\n letter-spacing: -0.015em;\n & + * {\n margin-top: 50px;\n }\n }\n .payment-register {\n & + * {\n margin-top: 50px;\n }\n }\n .button-continuar {\n text-align: center;\n & + * {\n margin-top: 35px;\n }\n }\n .continue {\n text-align: center;\n font-family: ", ";\n font-size: 14px;\n line-height: 19px;\n letter-spacing: -0.015em;\n text-decoration-line: underline;\n color: ", ";\n }\n }\n .main-container{\n max-width: 80%;\n max-height: 80%;\n }\n"])), function (_ref) {
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background: ", ";\n display: flex;\n height: 100%;\n justify-content: center;\n align-items: center;\n label {\n color: red;\n margin-top: 3px;\n margin-left: 15px;\n font-family: ", ";\n font-size: 11px;\n }\n &.home-panel {\n text-align: center;\n h2 {\n & + * {\n margin-top: 20px;\n }\n }\n p {\n font-family: ", ";\n color: ", ";\n font-size: 18px;\n line-height: 21px;\n letter-spacing: -0.015em;\n & + * {\n margin-top: 20px;\n }\n }\n }\n\n &.home-login {\n .credenciales {\n & + * {\n margin-top: 30px;\n }\n }\n .user {\n & + * {\n margin-top: 20px;\n }\n }\n .password {\n & + * {\n margin-top: 20px;\n }\n }\n .select {\n display: flex;\n justify-content: space-between;\n .active-right {\n font-family: ", ";\n font-weight: 500;\n font-size: 13px;\n line-height: 24px;\n letter-spacing: -0.015em;\n color: ", ";\n }\n & + * {\n margin-top: 50px;\n }\n }\n .button-right {\n text-align: right;\n & + * {\n margin-top: 55px;\n }\n }\n .new-login {\n p {\n font-family: ", ";\n text-align: right;\n font-weight: 500;\n font-size: 13px;\n line-height: 24px;\n color: ", ";\n span {\n color: ", ";\n }\n }\n }\n }\n &.home-card {\n position: relative;\n .plan {\n text-align: center;\n & + * {\n margin-top: 40px;\n }\n }\n .arrowimage {\n position: absolute;\n top: 50px;\n left: 40px;\n }\n .general-text {\n font-family: ", ";\n font-size: 14px;\n line-height: 19px;\n text-align: center;\n letter-spacing: -0.015em;\n & + * {\n margin-top: 50px;\n }\n }\n .payment-register {\n & + * {\n margin-top: 50px;\n }\n }\n .button-continuar {\n text-align: center;\n & + * {\n margin-top: 35px;\n }\n }\n .continue {\n text-align: center;\n font-family: ", ";\n font-size: 14px;\n line-height: 19px;\n letter-spacing: -0.015em;\n text-decoration-line: underline;\n color: ", ";\n }\n }\n .main-container{\n max-width: 80%;\n max-height: 80%;\n }\n"])), function (_ref) {
|
|
19
19
|
var panelColor = _ref.panelColor;
|
|
20
20
|
return panelColor ? panelColor : "linear-gradient(180deg, #E33AA9 0%, #3B1366 100%)";
|
|
21
|
-
}, _variables.FontFamily.AvenirNext, function (_ref2) {
|
|
21
|
+
}, _variables.FontFamily.Raleway_700, _variables.FontFamily.AvenirNext, function (_ref2) {
|
|
22
22
|
var panelColor = _ref2.panelColor;
|
|
23
23
|
return panelColor ? _variables.GlobalColors.s4 : "#FBFBFB";
|
|
24
24
|
}, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s5, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s5, _variables.GlobalColors.secondary_magenta, _variables.FontFamily.AvenirNext, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s4);
|
|
@@ -20,100 +20,161 @@ var _styles = require("./styles");
|
|
|
20
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
21
|
|
|
22
22
|
var InputFormatter = function InputFormatter(_ref) {
|
|
23
|
-
var _ref$
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
var _ref$mainValue = _ref.mainValue,
|
|
24
|
+
mainValue = _ref$mainValue === void 0 ? "" : _ref$mainValue,
|
|
25
|
+
inputId = _ref.inputId,
|
|
26
|
+
articleId = _ref.articleId,
|
|
26
27
|
updatedDescriptions = _ref.updatedDescriptions,
|
|
27
28
|
setUpdatedDescriptions = _ref.setUpdatedDescriptions,
|
|
28
29
|
addTextAreaToArray = _ref.addTextAreaToArray,
|
|
29
|
-
|
|
30
|
+
name = _ref.name,
|
|
31
|
+
isRequired = _ref.isRequired,
|
|
32
|
+
maxChar = _ref.maxChar;
|
|
30
33
|
|
|
31
|
-
var _useState = (0, _react.useState)(
|
|
34
|
+
var _useState = (0, _react.useState)(mainValue),
|
|
32
35
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
33
|
-
|
|
34
|
-
|
|
36
|
+
inputValue = _useState2[0],
|
|
37
|
+
setInputValue = _useState2[1];
|
|
35
38
|
|
|
36
39
|
var _useState3 = (0, _react.useState)(false),
|
|
37
40
|
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
38
|
-
|
|
39
|
-
|
|
41
|
+
selection = _useState4[0],
|
|
42
|
+
setSelection = _useState4[1];
|
|
40
43
|
|
|
41
|
-
var _useState5 = (0, _react.useState)(
|
|
42
|
-
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
|
43
|
-
selection = _useState6[0],
|
|
44
|
-
setSelection = _useState6[1];
|
|
45
|
-
|
|
46
|
-
var _useState7 = (0, _react.useState)({
|
|
44
|
+
var _useState5 = (0, _react.useState)({
|
|
47
45
|
left: 0,
|
|
48
46
|
top: 0
|
|
49
47
|
}),
|
|
48
|
+
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
|
49
|
+
position = _useState6[0],
|
|
50
|
+
setPosition = _useState6[1];
|
|
51
|
+
|
|
52
|
+
var _useState7 = (0, _react.useState)(0),
|
|
50
53
|
_useState8 = (0, _slicedToArray2.default)(_useState7, 2),
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
var
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
54
|
+
charsCounter = _useState8[0],
|
|
55
|
+
setCharsCounter = _useState8[1];
|
|
56
|
+
|
|
57
|
+
var _useState9 = (0, _react.useState)({}),
|
|
58
|
+
_useState10 = (0, _slicedToArray2.default)(_useState9, 2),
|
|
59
|
+
quillState = _useState10[0],
|
|
60
|
+
setQuillState = _useState10[1];
|
|
61
|
+
|
|
62
|
+
var maxLength = maxChar ? maxChar : 999;
|
|
63
|
+
|
|
64
|
+
var getValue = function getValue(value) {
|
|
65
|
+
var temp = value.replace(/\n/gm, "<br>");
|
|
66
|
+
return temp;
|
|
67
|
+
}; //const quillRef = useRef();
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
var setQuill = function setQuill(ref) {
|
|
71
|
+
if (!ref || ref === null) return;
|
|
72
|
+
if (typeof ref.getEditor !== "function") return;
|
|
73
|
+
setQuillState(ref.getEditor());
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
var valueFormater = function valueFormater(value) {
|
|
77
|
+
return value.replace(/<\/p><p>/gm, "\n").replace(/<\/?br>|<\/?p>/gm, "");
|
|
59
78
|
};
|
|
60
79
|
|
|
61
|
-
function
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
80
|
+
var _onChange = function onChange(valueInput, delta, user, h) {
|
|
81
|
+
var value = "";
|
|
82
|
+
|
|
83
|
+
if (h.getLength() - 1 <= maxLength) {
|
|
84
|
+
setInputValue(function (val) {
|
|
85
|
+
return val = valueInput.replace(/<\/?span.*?>/gm, "");
|
|
86
|
+
});
|
|
87
|
+
value = valueInput;
|
|
88
|
+
} else {
|
|
89
|
+
quillState.deleteText(maxLength, quillState.getLength());
|
|
90
|
+
setInputValue(function (val) {
|
|
91
|
+
return val = quillState.getText();
|
|
92
|
+
});
|
|
93
|
+
value = quillState.getText();
|
|
72
94
|
}
|
|
73
95
|
|
|
74
|
-
|
|
75
|
-
|
|
96
|
+
setCharsCounter(h.getLength() - 1);
|
|
97
|
+
value = valueFormater(value);
|
|
98
|
+
var idInput = inputId;
|
|
99
|
+
var dataSave = updatedDescriptions.slice();
|
|
100
|
+
|
|
101
|
+
if (dataSave.length > 0) {
|
|
102
|
+
if (dataSave.filter(function (e) {
|
|
103
|
+
return e.attributeId === idInput;
|
|
104
|
+
}).length > 0) {
|
|
105
|
+
dataSave.forEach(function (e) {
|
|
106
|
+
if (e.attributeId === idInput) {
|
|
107
|
+
e.value = value;
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
} else {
|
|
111
|
+
dataSave.push({
|
|
112
|
+
articleId: articleId,
|
|
113
|
+
attributeId: idInput,
|
|
114
|
+
value: value
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
} else {
|
|
118
|
+
dataSave.push({
|
|
119
|
+
articleId: articleId,
|
|
120
|
+
attributeId: idInput,
|
|
121
|
+
value: value
|
|
122
|
+
});
|
|
123
|
+
}
|
|
76
124
|
|
|
77
|
-
|
|
78
|
-
var input = document.getElementById(id);
|
|
79
|
-
var elementPosition = input.getBoundingClientRect();
|
|
80
|
-
position.top === 0 && position.left === 0 && setPosition({
|
|
81
|
-
left: e.clientX - elementPosition.x,
|
|
82
|
-
top: e.clientY - elementPosition.y
|
|
83
|
-
});
|
|
125
|
+
setUpdatedDescriptions(dataSave);
|
|
84
126
|
};
|
|
85
127
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
128
|
+
var getSelection = function getSelection(range, a, b) {
|
|
129
|
+
//getBounds(index,length)
|
|
130
|
+
var selected = b.getSelection();
|
|
131
|
+
var bounds = b.getBounds((selected === null || selected === void 0 ? void 0 : selected.index) || 0, (selected === null || selected === void 0 ? void 0 : selected.length) || 0);
|
|
132
|
+
|
|
133
|
+
if (a === "user") {
|
|
134
|
+
setPosition({
|
|
135
|
+
left: bounds.left,
|
|
136
|
+
top: bounds.top
|
|
137
|
+
});
|
|
138
|
+
setSelection((selected === null || selected === void 0 ? void 0 : selected.length) > 0);
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
143
|
+
isRequired: isRequired && (inputValue.replace(/<.*?>/gm, "").length === 0 || !inputValue),
|
|
89
144
|
selection: selection,
|
|
90
145
|
position: position,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
onChange: onHandleTextAreaChange,
|
|
146
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactQuill.default, {
|
|
147
|
+
id: inputId + "",
|
|
148
|
+
ref: function ref(el) {
|
|
149
|
+
return setQuill(el);
|
|
150
|
+
},
|
|
151
|
+
value: getValue(inputValue) //disabled={!props.enableInputs}
|
|
152
|
+
,
|
|
99
153
|
modules: {
|
|
100
154
|
toolbar: ["bold"]
|
|
101
155
|
},
|
|
102
|
-
|
|
103
|
-
|
|
156
|
+
onKeyPress: function onKeyPress(e) {
|
|
157
|
+
if (charsCounter >= maxLength && e.key !== "Backspace") {
|
|
158
|
+
e.preventDefault();
|
|
159
|
+
}
|
|
104
160
|
},
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
161
|
+
onKeyDown: function onKeyDown(e) {
|
|
162
|
+
var keysArray = ["Backspace", "Meta", "ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown"];
|
|
163
|
+
|
|
164
|
+
if (charsCounter >= maxLength && keysArray.every(function (key) {
|
|
165
|
+
return e.key !== key;
|
|
166
|
+
})) {
|
|
167
|
+
e.preventDefault();
|
|
168
|
+
}
|
|
112
169
|
},
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}
|
|
116
|
-
|
|
170
|
+
onChange: function onChange(valueInput, user, range, h) {
|
|
171
|
+
_onChange(valueInput, user, range, h);
|
|
172
|
+
},
|
|
173
|
+
onChangeSelection: getSelection
|
|
174
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("p", {
|
|
175
|
+
className: "description-limit",
|
|
176
|
+
children: [charsCounter, "/", maxLength]
|
|
177
|
+
})]
|
|
117
178
|
});
|
|
118
179
|
};
|
|
119
180
|
|
|
@@ -15,7 +15,7 @@ var _variables = require("../../../global-files/variables");
|
|
|
15
15
|
|
|
16
16
|
var _templateObject;
|
|
17
17
|
|
|
18
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .quill {\n border: 1px solid\n ", ";\n position: relative;\n border-radius: 2px;\n\n .ql-toolbar {\n background-color: ", ";\n position: absolute;\n z-index: 10;\n border: 1px solid ", ";\n width: 45px;\n height: 45px;\n border-radius: 4px;\n visibility: ", ";\n top: ", "px;\n left: ", "px;\n }\n\n .ql-container {\n border: none;\n font-family: ", ";\n color: ", ";\n strong {\n font-family: ", ";\n }\n }\n }\n"])), function (_ref) {
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .quill {\n border: 1px solid\n ", ";\n position: relative;\n border-radius: 2px;\n\n .ql-toolbar {\n background-color: ", ";\n position: absolute;\n z-index: 10;\n border: 1px solid ", ";\n width: 45px;\n height: 45px;\n border-radius: 4px;\n visibility: ", ";\n top: ", "px;\n left: ", "px;\n }\n\n .ql-container {\n border: none;\n font-family: ", ";\n color: ", ";\n strong {\n font-family: ", ";\n }\n }\n }\n .description-limit {\n font-size: 12px;\n font-family: ", ";\n color: ", ";\n text-align: right;\n }\n"])), function (_ref) {
|
|
19
19
|
var focus = _ref.focus,
|
|
20
20
|
isRequired = _ref.isRequired;
|
|
21
21
|
return focus ? _variables.GlobalColors.magenta_s2 : isRequired ? "red" : _variables.GlobalColors.s3;
|
|
@@ -28,6 +28,6 @@ var Container = _styledComponents.default.div(_templateObject || (_templateObjec
|
|
|
28
28
|
}, function (_ref4) {
|
|
29
29
|
var position = _ref4.position;
|
|
30
30
|
return position.left;
|
|
31
|
-
}, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s4, _variables.FontFamily.Raleway_900);
|
|
31
|
+
}, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s4, _variables.FontFamily.Raleway_900, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s4);
|
|
32
32
|
|
|
33
33
|
exports.Container = Container;
|
|
@@ -15,7 +15,7 @@ var _variables = require("../../../global-files/variables");
|
|
|
15
15
|
|
|
16
16
|
var _templateObject;
|
|
17
17
|
|
|
18
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background-color: ", ";\n width: fit-content;\n height: 27px;\n padding: 4px;\n border-radius: 15px;\n font-family: ", ";\n font-weight: 600;\n font-size: 14px;\n line-height: 19px;\n color: ", ";\n\n &.status-As,\n &.status-P {\n background-color: ", ";\n }\n\n &.status-Pr,\n &.status-Rr {\n background-color: ", ";\n }\n\n &.status-AA,\n &.status-AP,\n &.status-AC {\n background-color: ", ";\n }\n\n &.status-RA,\n &.status-RF,\n &.status-RP,\n &.status-RC {\n background-color: ", ";\n }\n\n &.status-Dat,\n &.status-Dsc,\n &.status-Imgs {\n background-color: ", ";\n }\n\n &.status-Ex {\n background-color: ", ";\n }\n\n &.status-DDI {\n background-color: ", ";\n }\n\n &.status-GLD {\n background-color: ", ";\n }\n\n &.status-TAB {\n background-color: ", ";\n }\n\n &.status-Pt {\n background-color: ", ";\n color: ", ";\n }\n"])), _variables.GlobalColors.s3, _variables.FontFamily.AvenirNext, function (backgroundColor) {
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background-color: ", ";\n width: fit-content;\n height: 27px;\n padding: 4px;\n border-radius: 15px;\n font-family: ", ";\n font-weight: 600;\n font-size: 14px;\n line-height: 19px;\n color: ", ";\n\n &.status-As,\n &.status-P {\n background-color: ", ";\n }\n\n &.status-Pr,\n &.status-Rr {\n background-color: ", ";\n }\n\n &.status-AA,\n &.status-AP,\n &.status-AC,\n &.status-AF {\n background-color: ", ";\n }\n\n &.status-RA,\n &.status-RF,\n &.status-RP,\n &.status-RC {\n background-color: ", ";\n }\n\n &.status-Dat,\n &.status-Dsc,\n &.status-Imgs {\n background-color: ", ";\n }\n\n &.status-Ex {\n background-color: ", ";\n }\n\n &.status-DDI {\n background-color: ", ";\n }\n\n &.status-GLD {\n background-color: ", ";\n }\n\n &.status-TAB {\n background-color: ", ";\n }\n\n &.status-Pt {\n background-color: ", ";\n color: ", ";\n }\n"])), _variables.GlobalColors.s3, _variables.FontFamily.AvenirNext, function (backgroundColor) {
|
|
19
19
|
return backgroundColor === "s2" || backgroundColor === "s1" ? _variables.GlobalColors.s4 : _variables.GlobalColors.white;
|
|
20
20
|
}, _variables.GlobalColors.in_progress, _variables.GlobalColors.reception, _variables.GlobalColors.finished, _variables.GlobalColors.rejected_status, _variables.GlobalColors.s4, _variables.GlobalColors.exported, _variables.GlobalColors.original_purpura, _variables.GlobalColors.in_progress, _variables.GlobalColors.deep_gray, _variables.GlobalColors.s2, _variables.GlobalColors.s4);
|
|
21
21
|
|
|
@@ -22,14 +22,16 @@ function Select(props) {
|
|
|
22
22
|
disabled: true,
|
|
23
23
|
children: props.placeholder
|
|
24
24
|
}), props.options && props.options.map(function (item, i) {
|
|
25
|
-
return /*#__PURE__*/(0, _jsxRuntime.
|
|
25
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("option", {
|
|
26
|
+
className: item.required ? "option-required" : "" //className={ ? "option-required" : ""}
|
|
27
|
+
,
|
|
26
28
|
value: item.value ? item.value : item // selected={
|
|
27
29
|
// item.value
|
|
28
30
|
// ? item.value == props.valueSelected && "selected"
|
|
29
31
|
// : item === props.valueSelected && "selected"
|
|
30
32
|
// }
|
|
31
33
|
,
|
|
32
|
-
children: item.name ? item.name : item
|
|
34
|
+
children: [item.name ? item.name : item, " ", item !== null && item !== void 0 && item.required ? "*" : ""]
|
|
33
35
|
}, "select-" + item.value ? item.value : item + "-" + i);
|
|
34
36
|
})]
|
|
35
37
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_style.BackgroundEnd, {})]
|
|
@@ -24,7 +24,7 @@ var BackgroundEnd = _styledComponents.default.div(_templateObject2 || (_template
|
|
|
24
24
|
|
|
25
25
|
exports.BackgroundEnd = BackgroundEnd;
|
|
26
26
|
|
|
27
|
-
var SelectCustom = _styledComponents.default.select(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n background: #fafafa;\n -webkit-appearance: none;\n -moz-appearance: none;\n -ms-appearance: none;\n appearance: none;\n outline: 0;\n box-shadow: none;\n border: 0 !important;\n background-image: none;\n width: ", ";\n cursor: pointer;\n height: 21px;\n font-family: Avenir Next;\n font-style: normal;\n font-weight: normal;\n font-size: 12px;\n line-height: 21px;\n padding: 0 5px;\n box-sizing: border-box;\n &::-ms-expand {\n display: none;\n }\n
|
|
27
|
+
var SelectCustom = _styledComponents.default.select(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n background: #fafafa;\n -webkit-appearance: none;\n -moz-appearance: none;\n -ms-appearance: none;\n appearance: none;\n outline: 0;\n box-shadow: none;\n border: 0 !important;\n background-image: none;\n width: ", ";\n cursor: pointer;\n height: 21px;\n font-family: Avenir Next;\n font-style: normal;\n font-weight: normal;\n font-size: 12px;\n line-height: 21px;\n padding: 0 5px;\n box-sizing: border-box;\n &::-ms-expand {\n display: none;\n }\n option {\n background-color: blue;\n &:disabled {\n color: #d4d1d7;\n }\n &:invalid {\n color: gray;\n }\n }\n"])), function (_ref2) {
|
|
28
28
|
var width = _ref2.width;
|
|
29
29
|
return width || "100%";
|
|
30
30
|
});
|
|
@@ -15,6 +15,6 @@ var _variables = require("../../../global-files/variables");
|
|
|
15
15
|
|
|
16
16
|
var _templateObject;
|
|
17
17
|
|
|
18
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: fit-content;\n padding: 0 10px;\n height: 20px;\n background-color: ", ";\n border-radius: 3px;\n\n p {\n text-align: center;\n color: ", ";\n font-family: ", ";\n font-size: 12px;\n line-height: 20px;\n }\n\n &.status-As,\n &.status-P,\n &.status-IN_PROGRESS,\n &.status-QF {\n background-color: ", ";\n }\n\n &.status-Pr,\n &.status-Rr {\n background-color: ", ";\n }\n\n &.status-AA,\n &.status-AP,\n &.status-AC {\n background-color: ", ";\n }\n\n &.status-RA,\n &.status-RF,\n &.status-RP,\n &.status-RC {\n background-color: ", ";\n }\n\n &.status-Dat,\n &.status-Dsc,\n &.status-Imgs {\n background-color: ", ";\n }\n\n &.status-Ex {\n background-color: ", ";\n }\n\n &.status-DDI {\n background-color: ", ";\n }\n\n &.status-GLD {\n background-color: ", ";\n }\n\n &.status-TAB {\n background-color: ", ";\n }\n\n &.status-Pt {\n background-color: ", ";\n color: ", ";\n }\n\n &.oval-form {\n border-radius: 10px;\n }\n"])), _variables.GlobalColors.s3, _variables.GlobalColors.white, _variables.FontFamily.Lato, _variables.GlobalColors.in_progress, _variables.GlobalColors.reception, _variables.GlobalColors.finished, _variables.GlobalColors.rejected_status, _variables.GlobalColors.s4, _variables.GlobalColors.exported, _variables.GlobalColors.original_purpura, _variables.GlobalColors.in_progress, _variables.GlobalColors.deep_gray, _variables.GlobalColors.s2, _variables.GlobalColors.s4);
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: fit-content;\n padding: 0 10px;\n height: 20px;\n background-color: ", ";\n border-radius: 3px;\n\n p {\n text-align: center;\n color: ", ";\n font-family: ", ";\n font-size: 12px;\n line-height: 20px;\n }\n\n &.status-As,\n &.status-P,\n &.status-IN_PROGRESS,\n &.status-QF {\n background-color: ", ";\n }\n\n &.status-Pr,\n &.status-Rr {\n background-color: ", ";\n }\n\n &.status-AA,\n &.status-AP,\n &.status-AC,\n &.status-AF {\n background-color: ", ";\n }\n\n &.status-RA,\n &.status-RF,\n &.status-RP,\n &.status-RC {\n background-color: ", ";\n }\n\n &.status-Dat,\n &.status-Dsc,\n &.status-Imgs {\n background-color: ", ";\n }\n\n &.status-Ex {\n background-color: ", ";\n }\n\n &.status-DDI {\n background-color: ", ";\n }\n\n &.status-GLD {\n background-color: ", ";\n }\n\n &.status-TAB {\n background-color: ", ";\n }\n\n &.status-Pt {\n background-color: ", ";\n color: ", ";\n }\n\n &.oval-form {\n border-radius: 10px;\n }\n"])), _variables.GlobalColors.s3, _variables.GlobalColors.white, _variables.FontFamily.Lato, _variables.GlobalColors.in_progress, _variables.GlobalColors.reception, _variables.GlobalColors.finished, _variables.GlobalColors.rejected_status, _variables.GlobalColors.s4, _variables.GlobalColors.exported, _variables.GlobalColors.original_purpura, _variables.GlobalColors.in_progress, _variables.GlobalColors.deep_gray, _variables.GlobalColors.s2, _variables.GlobalColors.s4);
|
|
19
19
|
|
|
20
20
|
exports.Container = Container;
|
|
@@ -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.CarouselImagesLoginDefault = 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/molecules/CarouselImagesLogin",
|
|
24
|
+
component: _index.CarouselImagesLogin
|
|
25
|
+
};
|
|
26
|
+
exports.default = _default;
|
|
27
|
+
|
|
28
|
+
var Template = function Template(args) {
|
|
29
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.CarouselImagesLogin, (0, _objectSpread2.default)({}, args));
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
var CarouselImagesLoginDefault = Template.bind({});
|
|
33
|
+
exports.CarouselImagesLoginDefault = CarouselImagesLoginDefault;
|
|
34
|
+
CarouselImagesLoginDefault.args = {
|
|
35
|
+
panelImg: [_loginImage.default, _login.default, _login2.default],
|
|
36
|
+
panelText: "Elige la plataforma que conecta proovedores y retailers"
|
|
37
|
+
};
|