contentoh-components-library 21.2.75 → 21.2.77
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/CustomSelect/index.js +3 -4
- package/dist/components/pages/Dashboard/Dashboard.stories.js +1 -1
- package/dist/components/pages/Dashboard/index.js +3 -2
- package/dist/components/pages/ProviderProductEdition/index.js +11 -14
- package/dist/components/pages/RetailerProductEdition/index.js +2 -1
- package/dist/global-files/data.js +1 -0
- package/package.json +5 -5
- package/src/components/molecules/CustomSelect/CustomSelect.stories.js +2 -2
- package/src/components/molecules/CustomSelect/index.js +2 -3
- package/src/components/pages/Dashboard/Dashboard.stories.js +1 -1
- package/src/components/pages/Dashboard/index.js +5 -4
- package/src/components/pages/ProviderProductEdition/index.js +1 -1
- package/src/components/pages/RetailerProductEdition/index.js +1 -0
- package/src/global-files/data.js +1 -0
- package/dist/components/atoms/StatusTag/StatusTag.stories.js +0 -48
- package/dist/components/atoms/StatusTag/index.js +0 -58
- package/dist/components/atoms/StatusTag/styles.js +0 -20
- package/dist/components/pages/RegistrationLoginFirstStep/RegistrationLoginFirstStep.stories.js +0 -37
- package/dist/components/pages/RegistrationLoginFirstStep/index.js +0 -269
- package/dist/components/pages/RegistrationLoginFirstStep/styles.js +0 -20
|
@@ -23,8 +23,6 @@ var _searchIcon = _interopRequireDefault(require("../../../assets/images/customS
|
|
|
23
23
|
|
|
24
24
|
var _customHooks = require("../../../global-files/customHooks");
|
|
25
25
|
|
|
26
|
-
var _SelectItem = require("./SelectItem");
|
|
27
|
-
|
|
28
26
|
var _Calendar = require("../../organisms/Calendar");
|
|
29
27
|
|
|
30
28
|
var _CustomSelectItem = require("../../atoms/CustomSelectItem");
|
|
@@ -46,7 +44,8 @@ var CustomSelect = function CustomSelect(_ref) {
|
|
|
46
44
|
onClickItem = _ref.onClickItem,
|
|
47
45
|
icon = _ref.icon,
|
|
48
46
|
customOptions = _ref.customOptions,
|
|
49
|
-
|
|
47
|
+
_ref$isSingleSelect = _ref.isSingleSelect,
|
|
48
|
+
isSingleSelect = _ref$isSingleSelect === void 0 ? false : _ref$isSingleSelect;
|
|
50
49
|
|
|
51
50
|
var _useState = (0, _react.useState)([]),
|
|
52
51
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -223,7 +222,7 @@ var CustomSelect = function CustomSelect(_ref) {
|
|
|
223
222
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
224
223
|
className: "filters-container",
|
|
225
224
|
children: filters === null || filters === void 0 ? void 0 : filters.map(function (option) {
|
|
226
|
-
return
|
|
225
|
+
return isSingleSelect ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
227
226
|
className: "dates-select-item",
|
|
228
227
|
onClick: function onClick() {
|
|
229
228
|
option.function ? option.function(setShowDatePicker) : setShowDatePicker(true);
|
|
@@ -59,5 +59,5 @@ DashboardDeafult.args = {
|
|
|
59
59
|
},
|
|
60
60
|
src: "https://content-management-profile-prod.s3.amazonaws.com/id-425/425.png?1666639556174"
|
|
61
61
|
},
|
|
62
|
-
jwt: "
|
|
62
|
+
jwt: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI5YTIxMzEyOC02NDgyLTRjMTYtYTRiNi02ZTY0ZjIyNWIxYmQiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwiY29nbml0bzp1c2VybmFtZSI6IjlhMjEzMTI4LTY0ODItNGMxNi1hNGI2LTZlNjRmMjI1YjFiZCIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiJkYWVmODU5ZC00ODQyLTRkNDQtYTNiNC02ODZlNmJhNTVkMjgiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY2NzA3MjM5MCwibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY2NzA3NTk5MCwiaWF0IjoxNjY3MDcyMzkwLCJlbWFpbCI6ImlzbWFlbDk3bG9wZXpAZ21haWwuY29tIn0.FbGtX1sC3b2c76hGcxkx-GSurEMKZSwNVEnuUOlV9Dhhqrre1VmtfjvodH_3Leipr4g38Sukb6Pr9lVgEy6DJ57MShpS63niXE7Y43FUJ4gVe4F6k8sYbXUaZYS2vw2_PibnycNsFrpD76fZ_ulTqlSuHNrnzf2mjcDFJ5Qlj8hcLlRnpu_DFVpIiXVyK9kvLE5jImHvo4oQZUSrnuIs-oUE7j8mX8-GH2e95Up2wnBMak6S6meMibKoUEFo2qdtDSFbS1JCMBq4vWw2DxToX-7AGXGp_CLxf-sjJ_UpLmFa0KyyxjhAE2cR9BGo8DM8LEUIqMvcz2KH-7e9QTgisA"
|
|
63
63
|
};
|
|
@@ -438,7 +438,8 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
438
438
|
placeHolder: "Buscar fecha",
|
|
439
439
|
customSelectId: "dates-select",
|
|
440
440
|
parameterArray: datesRange,
|
|
441
|
-
setParameterArray: setDatesRange
|
|
441
|
+
setParameterArray: setDatesRange,
|
|
442
|
+
isSingleSelect: true
|
|
442
443
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomSelect.CustomSelect, {
|
|
443
444
|
showFilterString: true,
|
|
444
445
|
showSearchBar: true,
|
|
@@ -458,7 +459,7 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
458
459
|
customSelectId: "category-select",
|
|
459
460
|
parameterArray: categoryId,
|
|
460
461
|
setParameterArray: setCategoryId,
|
|
461
|
-
defaultOption: "Todas las
|
|
462
|
+
defaultOption: "Todas las categor\xEDas"
|
|
462
463
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomSelect.CustomSelect, {
|
|
463
464
|
showFilterString: true,
|
|
464
465
|
showSearchBar: true,
|
|
@@ -1550,10 +1550,6 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1550
1550
|
|
|
1551
1551
|
case 8:
|
|
1552
1552
|
evalResponse = _context13.sent;
|
|
1553
|
-
console.log(evalResponse.map(function (_ref15) {
|
|
1554
|
-
var data = _ref15.data;
|
|
1555
|
-
return JSON.parse(data.body);
|
|
1556
|
-
}));
|
|
1557
1553
|
userType = user.is_retailer === 1 ? "CA" : "P";
|
|
1558
1554
|
productTemp = product;
|
|
1559
1555
|
productTemp.article_status = "".concat(result).concat(userType);
|
|
@@ -1582,24 +1578,24 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1582
1578
|
idCategory: productTemp.article.id_category,
|
|
1583
1579
|
product: productTemp
|
|
1584
1580
|
}));
|
|
1585
|
-
_context13.next =
|
|
1581
|
+
_context13.next = 25;
|
|
1586
1582
|
return loadData();
|
|
1587
1583
|
|
|
1588
|
-
case
|
|
1589
|
-
_context13.next =
|
|
1584
|
+
case 25:
|
|
1585
|
+
_context13.next = 30;
|
|
1590
1586
|
break;
|
|
1591
1587
|
|
|
1592
|
-
case
|
|
1593
|
-
_context13.prev =
|
|
1588
|
+
case 27:
|
|
1589
|
+
_context13.prev = 27;
|
|
1594
1590
|
_context13.t0 = _context13["catch"](0);
|
|
1595
1591
|
console.log(_context13.t0);
|
|
1596
1592
|
|
|
1597
|
-
case
|
|
1593
|
+
case 30:
|
|
1598
1594
|
case "end":
|
|
1599
1595
|
return _context13.stop();
|
|
1600
1596
|
}
|
|
1601
1597
|
}
|
|
1602
|
-
}, _callee13, null, [[0,
|
|
1598
|
+
}, _callee13, null, [[0, 27]]);
|
|
1603
1599
|
}));
|
|
1604
1600
|
|
|
1605
1601
|
return function validateAll(_x8) {
|
|
@@ -1608,7 +1604,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1608
1604
|
}();
|
|
1609
1605
|
|
|
1610
1606
|
var evaluationToRetailer = /*#__PURE__*/function () {
|
|
1611
|
-
var
|
|
1607
|
+
var _ref15 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee14(result) {
|
|
1612
1608
|
var data, prod, statusComplete;
|
|
1613
1609
|
return _regenerator.default.wrap(function _callee14$(_context14) {
|
|
1614
1610
|
while (1) {
|
|
@@ -1650,7 +1646,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
1650
1646
|
}));
|
|
1651
1647
|
|
|
1652
1648
|
return function evaluationToRetailer(_x9) {
|
|
1653
|
-
return
|
|
1649
|
+
return _ref15.apply(this, arguments);
|
|
1654
1650
|
};
|
|
1655
1651
|
}();
|
|
1656
1652
|
|
|
@@ -2085,7 +2081,8 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
|
|
|
2085
2081
|
companyName: company.company_name,
|
|
2086
2082
|
currentVersion: version,
|
|
2087
2083
|
setShowCreateVersion: setShowCreateVersion,
|
|
2088
|
-
setShowVersionSelector: setShowVersionSelector
|
|
2084
|
+
setShowVersionSelector: setShowVersionSelector,
|
|
2085
|
+
jwt: token
|
|
2089
2086
|
}), showCreateVersion && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CreateVersion.CreateVersion, {
|
|
2090
2087
|
idArticle: product.id_article,
|
|
2091
2088
|
version: version,
|
|
@@ -2051,7 +2051,8 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
2051
2051
|
companyName: product.article.company_name,
|
|
2052
2052
|
currentVersion: version,
|
|
2053
2053
|
setShowCreateVersion: setShowCreateVersion,
|
|
2054
|
-
setShowVersionSelector: setShowVersionSelector
|
|
2054
|
+
setShowVersionSelector: setShowVersionSelector,
|
|
2055
|
+
jwt: token
|
|
2055
2056
|
}), showCreateVersion && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CreateVersion.CreateVersion, {
|
|
2056
2057
|
idArticle: product.article.id_article,
|
|
2057
2058
|
version: version,
|
|
@@ -294,6 +294,7 @@ var getNewStatus = function getNewStatus(statusArray) {
|
|
|
294
294
|
if (lookupString.includes("AP")) return "AP";
|
|
295
295
|
if (lookupString.includes("R")) return "R";
|
|
296
296
|
if (lookupString.includes("NA")) return "NA";
|
|
297
|
+
if (lookupString.includes("Ex")) return "EX";
|
|
297
298
|
return new Error("Status not found");
|
|
298
299
|
};
|
|
299
300
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contentoh-components-library",
|
|
3
|
-
"version": "21.2.
|
|
3
|
+
"version": "21.2.77",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@aws-amplify/auth": "^4.5.3",
|
|
6
6
|
"@aws-amplify/datastore": "^3.11.0",
|
|
@@ -77,10 +77,10 @@
|
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@babel/cli": "^7.17.10",
|
|
79
79
|
"@babel/core": "^7.16.0",
|
|
80
|
-
"@storybook/addon-actions": "^6.5.
|
|
81
|
-
"@storybook/addon-essentials": "^6.5.
|
|
82
|
-
"@storybook/addon-links": "^6.5.
|
|
83
|
-
"@storybook/react": "^6.5.
|
|
80
|
+
"@storybook/addon-actions": "^6.5.13",
|
|
81
|
+
"@storybook/addon-essentials": "^6.5.13",
|
|
82
|
+
"@storybook/addon-links": "^6.5.13",
|
|
83
|
+
"@storybook/react": "^6.5.13",
|
|
84
84
|
"auth": "^0.0.9",
|
|
85
85
|
"auto": "^10.36.5",
|
|
86
86
|
"babel-loader": "^8.2.3",
|
|
@@ -11,13 +11,13 @@ CustomSelectDefault.args = {
|
|
|
11
11
|
selectLabel: "Todos los departamentos",
|
|
12
12
|
defaultOption: "Todos los departamentos",
|
|
13
13
|
options: [
|
|
14
|
-
|
|
14
|
+
{
|
|
15
15
|
id: 1,
|
|
16
16
|
value: "Decoración",
|
|
17
17
|
subOptions: [
|
|
18
18
|
{ id: 1, value: "Espejos" },
|
|
19
19
|
{ id: 2, value: "Persianas" },
|
|
20
|
-
|
|
20
|
+
],
|
|
21
21
|
},
|
|
22
22
|
{ id: 2, value: "Eléctrico" },
|
|
23
23
|
{ id: 3, value: "Ferretería" },
|
|
@@ -2,7 +2,6 @@ import { Container } from "./styles";
|
|
|
2
2
|
import { useEffect, useState } from "react";
|
|
3
3
|
import searchIcon from "../../../assets/images/customSelect/searchIcon.png";
|
|
4
4
|
import { useCloseModal } from "../../../global-files/customHooks";
|
|
5
|
-
import { SelecItem } from "./SelectItem";
|
|
6
5
|
import { Calendar } from "../../organisms/Calendar";
|
|
7
6
|
import { CustomSelectItem } from "../../atoms/CustomSelectItem";
|
|
8
7
|
|
|
@@ -18,7 +17,7 @@ export const CustomSelect = ({
|
|
|
18
17
|
onClickItem,
|
|
19
18
|
icon,
|
|
20
19
|
customOptions,
|
|
21
|
-
|
|
20
|
+
isSingleSelect = false,
|
|
22
21
|
}) => {
|
|
23
22
|
const [filters, setFilters] = useState([]);
|
|
24
23
|
const [showList, setShowList] = useCloseModal(customSelectId);
|
|
@@ -151,7 +150,7 @@ export const CustomSelect = ({
|
|
|
151
150
|
)}
|
|
152
151
|
<div className="filters-container">
|
|
153
152
|
{filters?.map((option) =>
|
|
154
|
-
|
|
153
|
+
isSingleSelect ? (
|
|
155
154
|
<div
|
|
156
155
|
className="dates-select-item"
|
|
157
156
|
key={customSelectId + option.id}
|
|
@@ -41,5 +41,5 @@ DashboardDeafult.args = {
|
|
|
41
41
|
},
|
|
42
42
|
src: "https://content-management-profile-prod.s3.amazonaws.com/id-425/425.png?1666639556174",
|
|
43
43
|
},
|
|
44
|
-
jwt: "
|
|
44
|
+
jwt: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI5YTIxMzEyOC02NDgyLTRjMTYtYTRiNi02ZTY0ZjIyNWIxYmQiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwiY29nbml0bzp1c2VybmFtZSI6IjlhMjEzMTI4LTY0ODItNGMxNi1hNGI2LTZlNjRmMjI1YjFiZCIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiJkYWVmODU5ZC00ODQyLTRkNDQtYTNiNC02ODZlNmJhNTVkMjgiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY2NzA3MjM5MCwibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY2NzA3NTk5MCwiaWF0IjoxNjY3MDcyMzkwLCJlbWFpbCI6ImlzbWFlbDk3bG9wZXpAZ21haWwuY29tIn0.FbGtX1sC3b2c76hGcxkx-GSurEMKZSwNVEnuUOlV9Dhhqrre1VmtfjvodH_3Leipr4g38Sukb6Pr9lVgEy6DJ57MShpS63niXE7Y43FUJ4gVe4F6k8sYbXUaZYS2vw2_PibnycNsFrpD76fZ_ulTqlSuHNrnzf2mjcDFJ5Qlj8hcLlRnpu_DFVpIiXVyK9kvLE5jImHvo4oQZUSrnuIs-oUE7j8mX8-GH2e95Up2wnBMak6S6meMibKoUEFo2qdtDSFbS1JCMBq4vWw2DxToX-7AGXGp_CLxf-sjJ_UpLmFa0KyyxjhAE2cR9BGo8DM8LEUIqMvcz2KH-7e9QTgisA",
|
|
45
45
|
};
|
|
@@ -239,6 +239,7 @@ export const Dashboard = ({ jwt, user, company }) => {
|
|
|
239
239
|
customSelectId="dates-select"
|
|
240
240
|
parameterArray={datesRange}
|
|
241
241
|
setParameterArray={setDatesRange}
|
|
242
|
+
isSingleSelect
|
|
242
243
|
/>
|
|
243
244
|
<CustomSelect
|
|
244
245
|
showFilterString={true}
|
|
@@ -249,7 +250,7 @@ export const Dashboard = ({ jwt, user, company }) => {
|
|
|
249
250
|
customSelectId="providers-select"
|
|
250
251
|
parameterArray={companyId}
|
|
251
252
|
setParameterArray={setCompanyId}
|
|
252
|
-
defaultOption=
|
|
253
|
+
defaultOption="Todos los proveedores"
|
|
253
254
|
/>
|
|
254
255
|
<CustomSelect
|
|
255
256
|
showFilterString={true}
|
|
@@ -260,7 +261,7 @@ export const Dashboard = ({ jwt, user, company }) => {
|
|
|
260
261
|
customSelectId="category-select"
|
|
261
262
|
parameterArray={categoryId}
|
|
262
263
|
setParameterArray={setCategoryId}
|
|
263
|
-
defaultOption=
|
|
264
|
+
defaultOption="Todas las categorías"
|
|
264
265
|
/>
|
|
265
266
|
<CustomSelect
|
|
266
267
|
showFilterString={true}
|
|
@@ -271,7 +272,7 @@ export const Dashboard = ({ jwt, user, company }) => {
|
|
|
271
272
|
customSelectId="retailers-select"
|
|
272
273
|
parameterArray={retailerId}
|
|
273
274
|
setParameterArray={setRetailerId}
|
|
274
|
-
defaultOption=
|
|
275
|
+
defaultOption="Todas las cadenas"
|
|
275
276
|
/>
|
|
276
277
|
{user.is_retailer === 1 && (
|
|
277
278
|
<CustomSelect
|
|
@@ -281,7 +282,7 @@ export const Dashboard = ({ jwt, user, company }) => {
|
|
|
281
282
|
customSelectId="applicants-select"
|
|
282
283
|
parameterArray={applicantsFilter}
|
|
283
284
|
setParameterArray={setApplicantsFilter}
|
|
284
|
-
defaultOption=
|
|
285
|
+
defaultOption="Todos los solicitantes"
|
|
285
286
|
/>
|
|
286
287
|
)}
|
|
287
288
|
</div>
|
|
@@ -939,7 +939,6 @@ export const ProviderProductEdition = ({
|
|
|
939
939
|
);
|
|
940
940
|
});
|
|
941
941
|
const evalResponse = await Promise.all(evaluationArray);
|
|
942
|
-
console.log(evalResponse.map(({ data }) => JSON.parse(data.body)));
|
|
943
942
|
const userType = user.is_retailer === 1 ? "CA" : "P";
|
|
944
943
|
|
|
945
944
|
const productTemp = product;
|
|
@@ -1497,6 +1496,7 @@ export const ProviderProductEdition = ({
|
|
|
1497
1496
|
currentVersion={version}
|
|
1498
1497
|
setShowCreateVersion={setShowCreateVersion}
|
|
1499
1498
|
setShowVersionSelector={setShowVersionSelector}
|
|
1499
|
+
jwt={token}
|
|
1500
1500
|
/>
|
|
1501
1501
|
)}
|
|
1502
1502
|
{showCreateVersion && (
|
package/src/global-files/data.js
CHANGED
|
@@ -209,5 +209,6 @@ export const getNewStatus = (statusArray) => {
|
|
|
209
209
|
if (lookupString.includes("AP")) return "AP";
|
|
210
210
|
if (lookupString.includes("R")) return "R";
|
|
211
211
|
if (lookupString.includes("NA")) return "NA";
|
|
212
|
+
if (lookupString.includes("Ex")) return "EX";
|
|
212
213
|
return new Error("Status not found");
|
|
213
214
|
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = exports.StatusTagDefault = void 0;
|
|
9
|
-
|
|
10
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
-
|
|
12
|
-
var _index = require("./index");
|
|
13
|
-
|
|
14
|
-
var _variables = require("../../../global-files/variables");
|
|
15
|
-
|
|
16
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
-
|
|
18
|
-
var status = _variables.GlobalStatus;
|
|
19
|
-
var _default = {
|
|
20
|
-
title: "Components/atoms/StatusTag",
|
|
21
|
-
component: _index.StatusTag,
|
|
22
|
-
argTypes: {
|
|
23
|
-
statusType: {
|
|
24
|
-
options: status,
|
|
25
|
-
control: {
|
|
26
|
-
type: "select"
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
ovalForm: {
|
|
30
|
-
options: [true, false],
|
|
31
|
-
control: {
|
|
32
|
-
type: "boolean"
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
exports.default = _default;
|
|
38
|
-
|
|
39
|
-
var Template = function Template(args) {
|
|
40
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.StatusTag, (0, _objectSpread2.default)({}, args));
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
var StatusTagDefault = Template.bind({});
|
|
44
|
-
exports.StatusTagDefault = StatusTagDefault;
|
|
45
|
-
StatusTagDefault.args = {
|
|
46
|
-
statusType: "-",
|
|
47
|
-
ovalForm: false
|
|
48
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.StatusTag = void 0;
|
|
7
|
-
|
|
8
|
-
var _styles = require("./styles");
|
|
9
|
-
|
|
10
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
|
|
12
|
-
var StatusTag = function StatusTag(_ref) {
|
|
13
|
-
var statusType = _ref.statusType,
|
|
14
|
-
ovalForm = _ref.ovalForm;
|
|
15
|
-
|
|
16
|
-
var getShortStatus = function getShortStatus(status) {
|
|
17
|
-
switch (status) {
|
|
18
|
-
case "COMPLETED":
|
|
19
|
-
return "C";
|
|
20
|
-
|
|
21
|
-
case "RECEPTION":
|
|
22
|
-
return "Pr";
|
|
23
|
-
|
|
24
|
-
case "NULL":
|
|
25
|
-
return "-";
|
|
26
|
-
|
|
27
|
-
case "RECEIVED":
|
|
28
|
-
return "Rc";
|
|
29
|
-
|
|
30
|
-
case "IN_PROGRESS":
|
|
31
|
-
return "P";
|
|
32
|
-
|
|
33
|
-
case "ASSIGNED":
|
|
34
|
-
return "As";
|
|
35
|
-
|
|
36
|
-
case "APPROVED":
|
|
37
|
-
return "Ap";
|
|
38
|
-
|
|
39
|
-
case "VALIDATING":
|
|
40
|
-
return "V";
|
|
41
|
-
|
|
42
|
-
case "PAID_OUT":
|
|
43
|
-
return "Po";
|
|
44
|
-
|
|
45
|
-
default:
|
|
46
|
-
return status;
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
51
|
-
className: "status-".concat(getShortStatus(statusType), " ").concat(ovalForm && "oval-form"),
|
|
52
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
53
|
-
children: getShortStatus(statusType)
|
|
54
|
-
})
|
|
55
|
-
});
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
exports.StatusTag = StatusTag;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.Container = void 0;
|
|
9
|
-
|
|
10
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
11
|
-
|
|
12
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
|
-
|
|
14
|
-
var _variables = require("../../../global-files/variables");
|
|
15
|
-
|
|
16
|
-
var _templateObject;
|
|
17
|
-
|
|
18
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n 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 &.status-Rc {\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
|
-
|
|
20
|
-
exports.Container = Container;
|
package/dist/components/pages/RegistrationLoginFirstStep/RegistrationLoginFirstStep.stories.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = exports.RegistrationLoginFirstStepDefault = void 0;
|
|
9
|
-
|
|
10
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
-
|
|
12
|
-
var _index = require("./index");
|
|
13
|
-
|
|
14
|
-
var _loginImage = _interopRequireDefault(require("../../../assets/images/carouselImagesLogin/loginImage.svg"));
|
|
15
|
-
|
|
16
|
-
var _login = _interopRequireDefault(require("../../../assets/images/carouselImagesLogin/login2.svg"));
|
|
17
|
-
|
|
18
|
-
var _login2 = _interopRequireDefault(require("../../../assets/images/carouselImagesLogin/login3.svg"));
|
|
19
|
-
|
|
20
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
-
|
|
22
|
-
var _default = {
|
|
23
|
-
title: "Components/pages/RegistrationLoginFirstStep",
|
|
24
|
-
component: _index.RegistrationLoginFirstStep
|
|
25
|
-
};
|
|
26
|
-
exports.default = _default;
|
|
27
|
-
|
|
28
|
-
var Template = function Template(args) {
|
|
29
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.RegistrationLoginFirstStep, (0, _objectSpread2.default)({}, args));
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
var RegistrationLoginFirstStepDefault = Template.bind({});
|
|
33
|
-
exports.RegistrationLoginFirstStepDefault = RegistrationLoginFirstStepDefault;
|
|
34
|
-
RegistrationLoginFirstStepDefault.args = {
|
|
35
|
-
imageArrayCarousel: [_loginImage.default, _login.default, _login2.default],
|
|
36
|
-
textCarousel: "Elige la plataforma que conecta proovedores y retailers"
|
|
37
|
-
};
|
|
@@ -1,269 +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.RegistrationLoginFirstStep = void 0;
|
|
9
|
-
|
|
10
|
-
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
11
|
-
|
|
12
|
-
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/asyncToGenerator"));
|
|
13
|
-
|
|
14
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
15
|
-
|
|
16
|
-
var _styles = require("./styles");
|
|
17
|
-
|
|
18
|
-
var _GradientPanel = require("../../atoms/GradientPanel");
|
|
19
|
-
|
|
20
|
-
var _CarouselImagesLogin = require("../../molecules/CarouselImagesLogin");
|
|
21
|
-
|
|
22
|
-
var _react = require("react");
|
|
23
|
-
|
|
24
|
-
var _LogoImage = require("../../atoms/LogoImage");
|
|
25
|
-
|
|
26
|
-
var _ScreenHeader = require("../../atoms/ScreenHeader");
|
|
27
|
-
|
|
28
|
-
var _variables = require("../../../global-files/variables");
|
|
29
|
-
|
|
30
|
-
var _TagAndInput = require("../../molecules/TagAndInput");
|
|
31
|
-
|
|
32
|
-
var _GeneralButton = require("../../atoms/GeneralButton");
|
|
33
|
-
|
|
34
|
-
var _GeneralInput = require("../../atoms/GeneralInput");
|
|
35
|
-
|
|
36
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
37
|
-
|
|
38
|
-
var RegistrationLoginFirstStep = function RegistrationLoginFirstStep(_ref) {
|
|
39
|
-
var _ref$imageArrayCarous = _ref.imageArrayCarousel,
|
|
40
|
-
imageArrayCarousel = _ref$imageArrayCarous === void 0 ? [] : _ref$imageArrayCarous,
|
|
41
|
-
textCarousel = _ref.textCarousel,
|
|
42
|
-
backogroundColorCarousel = _ref.backogroundColorCarousel;
|
|
43
|
-
|
|
44
|
-
var _useState = (0, _react.useState)(false),
|
|
45
|
-
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
46
|
-
emptyName = _useState2[0],
|
|
47
|
-
setEmptyName = _useState2[1];
|
|
48
|
-
|
|
49
|
-
var _useState3 = (0, _react.useState)(false),
|
|
50
|
-
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
51
|
-
emptyLastName = _useState4[0],
|
|
52
|
-
setEmptyLastName = _useState4[1];
|
|
53
|
-
|
|
54
|
-
var _useState5 = (0, _react.useState)(false),
|
|
55
|
-
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
|
56
|
-
emptyEmail = _useState6[0],
|
|
57
|
-
setEmptyEmail = _useState6[1];
|
|
58
|
-
|
|
59
|
-
var _useState7 = (0, _react.useState)(false),
|
|
60
|
-
_useState8 = (0, _slicedToArray2.default)(_useState7, 2),
|
|
61
|
-
emptyJob = _useState8[0],
|
|
62
|
-
setEmptyJob = _useState8[1];
|
|
63
|
-
|
|
64
|
-
var _useState9 = (0, _react.useState)(false),
|
|
65
|
-
_useState10 = (0, _slicedToArray2.default)(_useState9, 2),
|
|
66
|
-
emptyPhone = _useState10[0],
|
|
67
|
-
setEmptyPhone = _useState10[1];
|
|
68
|
-
|
|
69
|
-
var _useState11 = (0, _react.useState)(false),
|
|
70
|
-
_useState12 = (0, _slicedToArray2.default)(_useState11, 2),
|
|
71
|
-
invalidEmail = _useState12[0],
|
|
72
|
-
setInvalidEmail = _useState12[1];
|
|
73
|
-
|
|
74
|
-
var validate = /*#__PURE__*/function () {
|
|
75
|
-
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(e) {
|
|
76
|
-
var name, lastName, email, job, phone;
|
|
77
|
-
return _regenerator.default.wrap(function _callee$(_context) {
|
|
78
|
-
while (1) {
|
|
79
|
-
switch (_context.prev = _context.next) {
|
|
80
|
-
case 0:
|
|
81
|
-
e.preventDefault();
|
|
82
|
-
name = document.querySelector("#nameInput").value;
|
|
83
|
-
lastName = document.querySelector("#lastNameInput").value;
|
|
84
|
-
email = document.querySelector("#emailInput").value;
|
|
85
|
-
job = document.querySelector("#jobInput").value;
|
|
86
|
-
phone = document.querySelector("#phoneInput").value;
|
|
87
|
-
name === "" ? setEmptyName(true) : setEmptyName(false);
|
|
88
|
-
lastName === "" ? setEmptyLastName(true) : setEmptyLastName(false);
|
|
89
|
-
email === "" ? setEmptyEmail(true) : setEmptyEmail(false);
|
|
90
|
-
job === "" ? setEmptyJob(true) : setEmptyJob(false);
|
|
91
|
-
phone === "" ? setEmptyPhone(true) : setEmptyPhone(false);
|
|
92
|
-
!/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(email) ? setInvalidEmail(true) : setInvalidEmail(false);
|
|
93
|
-
|
|
94
|
-
case 12:
|
|
95
|
-
case "end":
|
|
96
|
-
return _context.stop();
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}, _callee);
|
|
100
|
-
}));
|
|
101
|
-
|
|
102
|
-
return function validate(_x) {
|
|
103
|
-
return _ref2.apply(this, arguments);
|
|
104
|
-
};
|
|
105
|
-
}();
|
|
106
|
-
|
|
107
|
-
var loginRight = [/*#__PURE__*/(0, _jsxRuntime.jsx)(_LogoImage.LogoImage, {}, "1"), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
108
|
-
className: "credenciales",
|
|
109
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
110
|
-
fontFamily: _variables.FontFamily.AvenirNext,
|
|
111
|
-
color: _variables.GlobalColors.s5,
|
|
112
|
-
text: "Ingresa tus credenciales"
|
|
113
|
-
})
|
|
114
|
-
}, "2"), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
115
|
-
className: "user",
|
|
116
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
117
|
-
className: "name-registration-user",
|
|
118
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
119
|
-
inputType: "text",
|
|
120
|
-
inputId: "nameInput",
|
|
121
|
-
label: "Nombre",
|
|
122
|
-
inputPlaceHolder: "Nombre"
|
|
123
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
124
|
-
inputType: "text",
|
|
125
|
-
inputId: "lastNameInput",
|
|
126
|
-
label: "Apellido",
|
|
127
|
-
inputPlaceHolder: "Apellido"
|
|
128
|
-
})]
|
|
129
|
-
}), emptyName && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
130
|
-
children: "Ingrese su nombre"
|
|
131
|
-
}), emptyLastName && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
132
|
-
children: "Ingrese sus apellidos"
|
|
133
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
134
|
-
inputType: "text",
|
|
135
|
-
inputId: "emailInput",
|
|
136
|
-
label: "Correo electrónico",
|
|
137
|
-
inputPlaceHolder: "username@contentoh.com"
|
|
138
|
-
}), emptyEmail && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
139
|
-
children: "Ingrese su correo"
|
|
140
|
-
}), invalidEmail && !emptyEmail && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
141
|
-
children: "Ingrese un correo v\xE1lido"
|
|
142
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
143
|
-
inputType: "text",
|
|
144
|
-
inputId: "jobInput",
|
|
145
|
-
label: "Puesto laboral",
|
|
146
|
-
inputPlaceHolder: "Puesto dentro de la empresa"
|
|
147
|
-
}), emptyJob && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
148
|
-
children: "Ingrese su puesto"
|
|
149
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
150
|
-
text: "Teléfono",
|
|
151
|
-
headerType: "input-name-header"
|
|
152
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
153
|
-
className: "phone-registration-user",
|
|
154
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("select", {
|
|
155
|
-
name: "select",
|
|
156
|
-
className: "phone-options",
|
|
157
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
158
|
-
children: "+52"
|
|
159
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
160
|
-
children: "+54"
|
|
161
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
162
|
-
children: "+57"
|
|
163
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
164
|
-
children: "+506"
|
|
165
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
166
|
-
children: "+593"
|
|
167
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
168
|
-
children: "+503"
|
|
169
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
170
|
-
children: "+504"
|
|
171
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
172
|
-
children: "+507"
|
|
173
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
174
|
-
children: "+51"
|
|
175
|
-
})]
|
|
176
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralInput.GeneralInput, {
|
|
177
|
-
inputId: "phoneInput",
|
|
178
|
-
inputType: "text",
|
|
179
|
-
inputPlaceholder: "Teléfono"
|
|
180
|
-
})]
|
|
181
|
-
}), emptyPhone && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
182
|
-
children: "Ingrese su n\xFAmero de tel\xE9fono"
|
|
183
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
184
|
-
text: "País",
|
|
185
|
-
headerType: "input-name-header"
|
|
186
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("select", {
|
|
187
|
-
name: "select",
|
|
188
|
-
className: "country-options",
|
|
189
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
190
|
-
value: "value1",
|
|
191
|
-
selected: true,
|
|
192
|
-
children: "Selecciona tu pa\xEDs"
|
|
193
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
194
|
-
value: "value2",
|
|
195
|
-
children: "Argentina"
|
|
196
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
197
|
-
value: "value3",
|
|
198
|
-
children: "Colombia"
|
|
199
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
200
|
-
value: "value2",
|
|
201
|
-
children: "Ecuador"
|
|
202
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
203
|
-
value: "value3",
|
|
204
|
-
children: "El Salvador"
|
|
205
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
206
|
-
value: "value2",
|
|
207
|
-
children: "Honduras"
|
|
208
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
209
|
-
value: "value3",
|
|
210
|
-
children: "M\xE9xico"
|
|
211
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
212
|
-
value: "value2",
|
|
213
|
-
children: "Panam\xE1"
|
|
214
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
215
|
-
value: "value3",
|
|
216
|
-
children: "Per\xFA"
|
|
217
|
-
})]
|
|
218
|
-
}), emptyEmail && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
219
|
-
children: "Seleccione su pa\xEDs"
|
|
220
|
-
})]
|
|
221
|
-
}, "3"), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
222
|
-
className: "button-end",
|
|
223
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
224
|
-
buttonType: "general-default-button",
|
|
225
|
-
label: "Enviar",
|
|
226
|
-
onClick: function onClick(e) {
|
|
227
|
-
return validate(e);
|
|
228
|
-
}
|
|
229
|
-
})
|
|
230
|
-
}, "4"), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
231
|
-
className: "progress-bar",
|
|
232
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
233
|
-
className: "progress-bar-first-step"
|
|
234
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
235
|
-
className: "progress-bar-registration"
|
|
236
|
-
})]
|
|
237
|
-
}, "5"), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
238
|
-
text: "Paso 1",
|
|
239
|
-
headerType: "date-header",
|
|
240
|
-
color: _variables.GlobalColors.s4
|
|
241
|
-
}, "6"), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
242
|
-
className: "new-login",
|
|
243
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("p", {
|
|
244
|
-
className: "pre-registro",
|
|
245
|
-
children: ["\xBFYa tienes una cuenta?", /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
246
|
-
children: " Inicia Sesi\xF3n"
|
|
247
|
-
})]
|
|
248
|
-
})
|
|
249
|
-
}, "7")];
|
|
250
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
251
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
252
|
-
className: "home-retailer",
|
|
253
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CarouselImagesLogin.CarouselImagesLogin, {
|
|
254
|
-
panelImg: imageArrayCarousel,
|
|
255
|
-
panelText: textCarousel,
|
|
256
|
-
panelColor: backogroundColorCarousel
|
|
257
|
-
})
|
|
258
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
259
|
-
className: "home-login-retailer",
|
|
260
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_GradientPanel.GradientPanel, {
|
|
261
|
-
componentsArray: loginRight,
|
|
262
|
-
panelType: "home-login",
|
|
263
|
-
panelColor: _variables.GlobalColors.white
|
|
264
|
-
})
|
|
265
|
-
})]
|
|
266
|
-
});
|
|
267
|
-
};
|
|
268
|
-
|
|
269
|
-
exports.RegistrationLoginFirstStep = RegistrationLoginFirstStep;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.Container = void 0;
|
|
9
|
-
|
|
10
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
11
|
-
|
|
12
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
|
-
|
|
14
|
-
var _variables = require("../../../global-files/variables");
|
|
15
|
-
|
|
16
|
-
var _templateObject;
|
|
17
|
-
|
|
18
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n width: 100%;\n height: 100vh;\n .user {\n .name-registration-user {\n display: flex;\n justify-content: space-between;\n input {\n width: 160px;\n }\n }\n .input-name-header {\n margin-bottom: 4px;\n margin-top: 12px;\n }\n .phone-registration-user {\n display: flex;\n justify-content: space-between;\n .phone-options {\n width: 80px;\n }\n input {\n width: 100%;\n }\n & + * {\n margin-top: 10px;\n }\n }\n .country-options,\n .phone-options {\n width: 100%;\n border: 1px solid ", ";\n font-family: ", ";\n color: ", ";\n font-weight: normal;\n font-size: 12px;\n line-height: 15px;\n padding: 10px;\n outline: none;\n border-radius: 2px;\n resize: none;\n &:focus {\n border: 1px solid ", ";\n }\n }\n }\n .button-end {\n text-align: end;\n .general-default-button {\n width: 160px;\n }\n & + * {\n margin-top: 10px;\n }\n }\n .progress-bar {\n width: 100%;\n height: 8px;\n display: flex;\n justify-content: space-between;\n .progress-bar-first-step {\n width: 33.33%;\n background-color: rgb(196, 196, 196);\n }\n .progress-bar-registration {\n background-color: rgb(226, 226, 226);\n width: 66.66%;\n }\n }\n .date-header {\n .new-login {\n & + * {\n margin-top: 20px;\n }\n }\n }\n .home-login-retailer,\n .home-retailer {\n width: 50%;\n }\n"])), _variables.GlobalColors.s2, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s4, _variables.GlobalColors.magenta_s2);
|
|
19
|
-
|
|
20
|
-
exports.Container = Container;
|