contentoh-components-library 21.2.62 → 21.2.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.development +1 -4
- package/.env.production +1 -1
- package/dist/components/atoms/GradientPanel/GradientPanel.stories.js +1 -1
- package/dist/components/molecules/CustomSelect/CustomSelect.stories.js +22 -21
- package/dist/components/molecules/CustomSelect/SelectItem.js +1 -10
- package/dist/components/molecules/GalleryHeader/index.js +1 -1
- package/dist/components/molecules/HeaderTop/index.js +5 -10
- package/dist/components/molecules/HeaderTop/styles.js +1 -1
- package/dist/components/molecules/TagAndInput/styles.js +1 -1
- package/dist/components/molecules/VersionItem/index.js +4 -4
- package/dist/components/organisms/VersionSelector/index.js +1 -1
- package/dist/components/pages/Dashboard/index.js +6 -6
- package/package.json +1 -6
- package/src/components/atoms/GradientPanel/GradientPanel.stories.js +1 -1
- package/src/components/molecules/CustomSelect/CustomSelect.stories.js +11 -19
- package/src/components/molecules/CustomSelect/SelectItem.js +0 -7
- package/src/components/molecules/GalleryHeader/index.js +1 -1
- package/src/components/molecules/HeaderTop/index.js +6 -10
- package/src/components/molecules/HeaderTop/styles.js +0 -4
- package/src/components/molecules/TagAndInput/styles.js +1 -2
- package/src/components/molecules/VersionItem/index.js +6 -6
- package/src/components/organisms/VersionSelector/index.js +1 -1
- package/src/components/pages/Dashboard/index.js +6 -6
- package/dist/assets/images/chatPopup/Spinner.gif +0 -0
- package/dist/assets/images/chatPopup/close.svg +0 -3
- package/dist/assets/images/chatPopup/defaultImage.png +0 -0
- package/dist/assets/images/chatPopup/defaultProfile.png +0 -0
- package/dist/assets/images/chatPopup/doc.svg +0 -1
- package/dist/assets/images/chatPopup/document.svg +0 -1
- package/dist/assets/images/chatPopup/iconChat.svg +0 -19
- package/dist/assets/images/chatPopup/iconPlus.svg +0 -3
- package/dist/assets/images/chatPopup/pdf.svg +0 -75
- package/dist/assets/images/chatPopup/remove.svg +0 -4
- package/dist/assets/images/chatPopup/send.svg +0 -3
- package/dist/assets/images/chatPopup/svgIcon.svg +0 -109
- package/dist/assets/images/chatPopup/upload_file.svg +0 -3
- package/dist/assets/images/chatPopup/xls.svg +0 -53
- package/dist/components/atoms/ChatPopUp/ChatPopUp.stories.js +0 -28
- package/dist/components/atoms/ChatPopUp/index.js +0 -841
- package/dist/components/atoms/ChatPopUp/styles.js +0 -27
- package/dist/components/atoms/ChatPopUp/utils/handlersChat.js +0 -182
- 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/atoms/Tooltip/Tooltip.stories.js +0 -36
- package/dist/components/atoms/Tooltip/index.js +0 -55
- package/dist/components/atoms/Tooltip/styles.js +0 -18
- 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
- package/src/assets/images/chatPopup/Spinner.gif +0 -0
- package/src/assets/images/chatPopup/close.svg +0 -3
- package/src/assets/images/chatPopup/defaultImage.png +0 -0
- package/src/assets/images/chatPopup/defaultProfile.png +0 -0
- package/src/assets/images/chatPopup/doc.svg +0 -1
- package/src/assets/images/chatPopup/document.svg +0 -1
- package/src/assets/images/chatPopup/iconChat.svg +0 -19
- package/src/assets/images/chatPopup/iconPlus.svg +0 -3
- package/src/assets/images/chatPopup/pdf.svg +0 -75
- package/src/assets/images/chatPopup/remove.svg +0 -4
- package/src/assets/images/chatPopup/send.svg +0 -3
- package/src/assets/images/chatPopup/svgIcon.svg +0 -109
- package/src/assets/images/chatPopup/upload_file.svg +0 -3
- package/src/assets/images/chatPopup/xls.svg +0 -53
- package/src/assets/images/customSelect/starIcon.svg +0 -14
- package/src/components/atoms/ChatPopUp/ChatPopUp.stories.js +0 -11
- package/src/components/atoms/ChatPopUp/index.js +0 -541
- package/src/components/atoms/ChatPopUp/styles.js +0 -278
- package/src/components/atoms/ChatPopUp/utils/handlersChat.js +0 -104
- package/src/components/atoms/Tooltip/Tooltip.stories.js +0 -15
- package/src/components/atoms/Tooltip/index.js +0 -35
- package/src/components/atoms/Tooltip/styles.js +0 -5
package/.env.development
CHANGED
|
@@ -21,11 +21,8 @@ REACT_APP_READ_REQUIRED_ORDERS=https://fc069ovhuk.execute-api.us-east-1.amazonaw
|
|
|
21
21
|
REACT_APP_CATEGORY_ENDPOINT=https://fc069ovhuk.execute-api.us-east-1.amazonaws.com/dev/categories
|
|
22
22
|
REACT_APP_READ_PROVIDERS=https://fc069ovhuk.execute-api.us-east-1.amazonaws.com/dev/providers
|
|
23
23
|
REACT_APP_PENDING_INVITATIONS=https://fc069ovhuk.execute-api.us-east-1.amazonaws.com/dev/pending-invitations
|
|
24
|
-
REACT_APP_POST_MESSAGE=https://fc069ovhuk.execute-api.us-east-1.amazonaws.com/dev/products-chat
|
|
25
|
-
REACT_APP_KEY_UPLOAD_TO_S3=AKIA5CPHLQTT46EQ5TIK
|
|
26
|
-
REACT_APP_ACCESS_KEY_UPLOAD_TO_S3=tZDdrmvwxM1cScspfxFM3XpU4HSYrCNPazyHd0BL
|
|
27
|
-
REACT_APP_IMAGES_BUCKET=content-management-images
|
|
28
24
|
|
|
25
|
+
REACT_APP_IMAGES_BUCKET=content-management-images
|
|
29
26
|
REACT_APP_KEY_UPLOAD_TO_S3=AKIA5CPHLQTT46EQ5TIK
|
|
30
27
|
REACT_APP_IMAGES_PROFILE_BUCKET=content-management-profile
|
|
31
28
|
REACT_APP_ACCESS_KEY_UPLOAD_TO_S3=tZDdrmvwxM1cScspfxFM3XpU4HSYrCNPazyHd0BL
|
package/.env.production
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
REACT_APP_ARTICLE_DATA_ENDPOINT=https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/articles-data
|
|
2
2
|
REACT_APP_ARTICLE_DATA_DATASHEET_ENDPOINT=https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/articles-data/datasheets
|
|
3
3
|
REACT_APP_ARTICLE_DATA_DESCRIPTION_ENDPOINT=https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/articles-data/descriptions
|
|
4
4
|
REACT_APP_ARTICLE_DATA_IMAGES_ENDPOINT=https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/articles-data/images
|
|
@@ -93,7 +93,7 @@ LoginPanelDefault.args = {
|
|
|
93
93
|
className: "active-left"
|
|
94
94
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
95
95
|
className: "active-right",
|
|
96
|
-
children: "
|
|
96
|
+
children: "Olvid\xE9 mi contrase\xF1a"
|
|
97
97
|
})]
|
|
98
98
|
}, "5"), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
99
99
|
className: "button-right",
|
|
@@ -11,8 +11,6 @@ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/
|
|
|
11
11
|
|
|
12
12
|
var _index = require("./index");
|
|
13
13
|
|
|
14
|
-
var _starIcon = _interopRequireDefault(require("../../../assets/images/customSelect/starIcon.svg"));
|
|
15
|
-
|
|
16
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
15
|
|
|
18
16
|
var _default = {
|
|
@@ -28,26 +26,29 @@ var Template = function Template(args) {
|
|
|
28
26
|
var CustomSelectDefault = Template.bind({});
|
|
29
27
|
exports.CustomSelectDefault = CustomSelectDefault;
|
|
30
28
|
CustomSelectDefault.args = {
|
|
31
|
-
|
|
29
|
+
selectLabel: "Todos los departamentos",
|
|
32
30
|
defaultOption: "Todos los departamentos",
|
|
33
31
|
options: [{
|
|
34
|
-
id:
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
id: 1,
|
|
33
|
+
value: "Decoración",
|
|
34
|
+
subOptions: [{
|
|
35
|
+
id: 1,
|
|
36
|
+
value: "Espejos"
|
|
37
|
+
}, {
|
|
38
|
+
id: 2,
|
|
39
|
+
value: "Persianas"
|
|
40
|
+
}]
|
|
41
|
+
}, {
|
|
42
|
+
id: 2,
|
|
43
|
+
value: "Eléctrico"
|
|
44
|
+
}, {
|
|
45
|
+
id: 3,
|
|
46
|
+
value: "Ferretería"
|
|
47
|
+
}, {
|
|
48
|
+
id: 4,
|
|
49
|
+
value: "Herramientas"
|
|
37
50
|
}, {
|
|
38
|
-
id:
|
|
39
|
-
|
|
40
|
-
}]
|
|
41
|
-
onClickItem: function onClickItem(v, id) {
|
|
42
|
-
if (v) {
|
|
43
|
-
console.log("Agregar a la lista", id);
|
|
44
|
-
} else {
|
|
45
|
-
console.log("Eliminar a la lista", id);
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
icon: _starIcon.default,
|
|
49
|
-
showSearchBar: true,
|
|
50
|
-
customOptions: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
51
|
-
children: "Esto es un customOptions"
|
|
52
|
-
})
|
|
51
|
+
id: 5,
|
|
52
|
+
value: "Iluminación"
|
|
53
|
+
}]
|
|
53
54
|
};
|
|
@@ -26,8 +26,7 @@ var SelecItem = function SelecItem(_ref) {
|
|
|
26
26
|
customSelectId = _ref.customSelectId,
|
|
27
27
|
setParameterArray = _ref.setParameterArray,
|
|
28
28
|
activeFilters = _ref.activeFilters,
|
|
29
|
-
setActiveFilters = _ref.setActiveFilters
|
|
30
|
-
onClickItem = _ref.onClickItem;
|
|
29
|
+
setActiveFilters = _ref.setActiveFilters;
|
|
31
30
|
|
|
32
31
|
var _useState = (0, _react.useState)(false),
|
|
33
32
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -47,10 +46,6 @@ var SelecItem = function SelecItem(_ref) {
|
|
|
47
46
|
id: "main-item-" + option.id,
|
|
48
47
|
label: option.name,
|
|
49
48
|
onChange: function onChange(e) {
|
|
50
|
-
if (onClickItem) {
|
|
51
|
-
onClickItem(e.target.checked, option.id);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
49
|
var subOptions = option.subOptions;
|
|
55
50
|
var filtersCopy = (0, _objectSpread2.default)({}, activeFilters);
|
|
56
51
|
|
|
@@ -113,10 +108,6 @@ var SelecItem = function SelecItem(_ref) {
|
|
|
113
108
|
label: sub.name,
|
|
114
109
|
defaultChecked: activeFilters[option.name] && activeFilters[option.name][sub.name],
|
|
115
110
|
onChange: function onChange(e) {
|
|
116
|
-
if (onClickItem) {
|
|
117
|
-
onClickItem(e.target.checked, sub.id);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
111
|
if (e.target.checked) {
|
|
121
112
|
setParameterArray(function (current) {
|
|
122
113
|
return [].concat((0, _toConsumableArray2.default)(current), [sub.id]).sort(function (a, b) {
|
|
@@ -35,7 +35,7 @@ var GalleryHeader = function GalleryHeader(_ref) {
|
|
|
35
35
|
})
|
|
36
36
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
37
37
|
className: "image-header",
|
|
38
|
-
children: "
|
|
38
|
+
children: "Imagen"
|
|
39
39
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
40
40
|
className: "image-name",
|
|
41
41
|
children: "Nombre"
|
|
@@ -13,8 +13,6 @@ var _index2 = require("../../atoms/GeneralButton/index");
|
|
|
13
13
|
|
|
14
14
|
var _react = require("react");
|
|
15
15
|
|
|
16
|
-
var _index3 = require("../../atoms/ChatPopUp/index");
|
|
17
|
-
|
|
18
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
17
|
|
|
20
18
|
var HeaderTop = function HeaderTop(_ref) {
|
|
@@ -27,14 +25,11 @@ var HeaderTop = function HeaderTop(_ref) {
|
|
|
27
25
|
ref: headerTop,
|
|
28
26
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ScreenHeader, {
|
|
29
27
|
text: "Edici\xF3n de producto"
|
|
30
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
window.location.href = "/products";
|
|
36
|
-
}
|
|
37
|
-
})
|
|
28
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Button, {
|
|
29
|
+
buttonType: "close-button",
|
|
30
|
+
onClick: function onClick() {
|
|
31
|
+
window.location.href = "/products";
|
|
32
|
+
}
|
|
38
33
|
})]
|
|
39
34
|
});
|
|
40
35
|
};
|
|
@@ -13,6 +13,6 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
13
13
|
|
|
14
14
|
var _templateObject;
|
|
15
15
|
|
|
16
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: space-between;\n
|
|
16
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: space-between;\n"])));
|
|
17
17
|
|
|
18
18
|
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 .title-container {\n position: relative;\n
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .title-container {\n //position: relative;\n .tooltip {\n display: none;\n position: absolute;\n background-color: ", ";\n color: ", ";\n font-family: ", ";\n font-size: 14px;\n line-height: 19px;\n left: 0;\n top: 0;\n height: fit-content;\n transition: display 2s;\n }\n\n &:hover {\n .tooltip {\n display: block;\n }\n }\n }\n\n & > :first-child {\n & + * {\n margin-top: ", "px;\n }\n }\n & + * {\n margin-top: ", "px;\n }\n"])), _variables.GlobalColors.white, function (_ref) {
|
|
19
19
|
var color = _ref.color;
|
|
20
20
|
return color ? color : _variables.GlobalColors.s5;
|
|
21
21
|
}, _variables.FontFamily.Raleway, function (_ref2) {
|
|
@@ -38,7 +38,7 @@ var VersionItem = function VersionItem(_ref) {
|
|
|
38
38
|
|
|
39
39
|
if (timestamp !== null) {
|
|
40
40
|
var exportedDate = new Date(timestamp).toLocaleDateString();
|
|
41
|
-
textExportedDate = "\
|
|
41
|
+
textExportedDate = "\xDAltima vez exportado: ".concat(exportedDate);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
@@ -57,15 +57,15 @@ var VersionItem = function VersionItem(_ref) {
|
|
|
57
57
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
58
58
|
className: "version-info",
|
|
59
59
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
60
|
-
text: "
|
|
60
|
+
text: "Versión " + version,
|
|
61
61
|
headerType: "input-name-header",
|
|
62
62
|
color: _variables.GlobalColors.magenta_s2
|
|
63
63
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
64
64
|
children: textExportedDate
|
|
65
65
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
66
|
-
children: currentVersion ? "
|
|
66
|
+
children: currentVersion ? "Versión actual" : articleStatus ? "Edición Content-Oh!" : "Versión de " + productOwner
|
|
67
67
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
68
|
-
children: articleStatus ? "Content-
|
|
68
|
+
children: articleStatus ? "Content-Oh! digital" : productOwner
|
|
69
69
|
})]
|
|
70
70
|
})]
|
|
71
71
|
});
|
|
@@ -97,7 +97,7 @@ var VersionSelector = function VersionSelector(_ref) {
|
|
|
97
97
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
98
98
|
className: "versions-header",
|
|
99
99
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
100
|
-
text: "
|
|
100
|
+
text: "Versión del producto",
|
|
101
101
|
headerType: "input-name-header",
|
|
102
102
|
color: _variables.GlobalColors.white,
|
|
103
103
|
fontFamily: _variables2.FontFamily.Lato
|
|
@@ -435,7 +435,7 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
435
435
|
showFilterString: true,
|
|
436
436
|
options: dateOptions,
|
|
437
437
|
selectLabel: "Todo el tiempo",
|
|
438
|
-
placeHolder: "Buscar
|
|
438
|
+
placeHolder: "Buscar fecha",
|
|
439
439
|
customSelectId: "dates-select",
|
|
440
440
|
parameterArray: datesRange,
|
|
441
441
|
setParameterArray: setDatesRange
|
|
@@ -444,7 +444,7 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
444
444
|
showSearchBar: true,
|
|
445
445
|
options: providers,
|
|
446
446
|
selectLabel: "Todos los proveedores",
|
|
447
|
-
placeHolder: "Buscar
|
|
447
|
+
placeHolder: "Buscar proveedor",
|
|
448
448
|
customSelectId: "providers-select",
|
|
449
449
|
parameterArray: companyId,
|
|
450
450
|
setParameterArray: setCompanyId,
|
|
@@ -454,7 +454,7 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
454
454
|
showSearchBar: true,
|
|
455
455
|
options: categories,
|
|
456
456
|
selectLabel: "Todas las categor\xEDas",
|
|
457
|
-
placeHolder: "Buscar
|
|
457
|
+
placeHolder: "Buscar categor\xEDa",
|
|
458
458
|
customSelectId: "category-select",
|
|
459
459
|
parameterArray: categoryId,
|
|
460
460
|
setParameterArray: setCategoryId,
|
|
@@ -463,12 +463,12 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
463
463
|
showFilterString: true,
|
|
464
464
|
showSearchBar: true,
|
|
465
465
|
options: retailers,
|
|
466
|
-
selectLabel: "
|
|
467
|
-
placeHolder: "Buscar
|
|
466
|
+
selectLabel: "Todas las cadenas",
|
|
467
|
+
placeHolder: "Buscar cadena",
|
|
468
468
|
customSelectId: "retailers-select",
|
|
469
469
|
parameterArray: retailerId,
|
|
470
470
|
setParameterArray: setRetailerId,
|
|
471
|
-
defaultOption: "
|
|
471
|
+
defaultOption: "Todas las cadenas"
|
|
472
472
|
}), user.is_retailer === 1 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomSelect.CustomSelect, {
|
|
473
473
|
showFilterString: true,
|
|
474
474
|
options: applicants,
|
package/package.json
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contentoh-components-library",
|
|
3
|
-
"version": "21.2.
|
|
3
|
+
"version": "21.2.65",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@aws-amplify/auth": "^4.5.3",
|
|
6
6
|
"@aws-amplify/datastore": "^3.11.0",
|
|
7
7
|
"@aws-amplify/ui-react": "^2.17.0",
|
|
8
8
|
"@babel/runtime": "^7.17.2",
|
|
9
|
-
"@emotion/react": "^11.10.4",
|
|
10
|
-
"@emotion/styled": "^11.10.4",
|
|
11
|
-
"@mui/material": "^5.10.8",
|
|
12
|
-
"@mui/styled-engine-sc": "^5.10.6",
|
|
13
9
|
"@storybook/addon-postcss": "^2.0.0",
|
|
14
10
|
"@testing-library/jest-dom": "^5.11.4",
|
|
15
11
|
"@testing-library/react": "^11.1.0",
|
|
@@ -23,7 +19,6 @@
|
|
|
23
19
|
"draft-js": "^0.11.7",
|
|
24
20
|
"file-saver": "^2.0.5",
|
|
25
21
|
"js-base64": "^3.7.2",
|
|
26
|
-
"moment": "^2.29.4",
|
|
27
22
|
"prop-types": "^15.7.2",
|
|
28
23
|
"react": "^17.0.2",
|
|
29
24
|
"react-chartjs-2": "^4.0.1",
|
|
@@ -69,7 +69,7 @@ LoginPanelDefault.args = {
|
|
|
69
69
|
id={"chk-default"}
|
|
70
70
|
className="active-left"
|
|
71
71
|
/>
|
|
72
|
-
<p className="active-right">
|
|
72
|
+
<p className="active-right">Olvidé mi contraseña</p>
|
|
73
73
|
</div>,
|
|
74
74
|
<div className="button-right" key="6">
|
|
75
75
|
<Button buttonType={"general-default-button"} label={"Iniciar sesión"} />
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { CustomSelect } from "./index";
|
|
2
|
-
import iconStar from "../../../assets/images/customSelect/starIcon.svg";
|
|
3
2
|
|
|
4
3
|
export default {
|
|
5
4
|
title: "Components/molecules/CustomSelect",
|
|
@@ -9,27 +8,20 @@ export default {
|
|
|
9
8
|
const Template = (args) => <CustomSelect {...args} />;
|
|
10
9
|
export const CustomSelectDefault = Template.bind({});
|
|
11
10
|
CustomSelectDefault.args = {
|
|
12
|
-
|
|
11
|
+
selectLabel: "Todos los departamentos",
|
|
13
12
|
defaultOption: "Todos los departamentos",
|
|
14
13
|
options: [
|
|
15
14
|
{
|
|
16
|
-
id:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
name: "Mis Favoritos",
|
|
15
|
+
id: 1,
|
|
16
|
+
value: "Decoración",
|
|
17
|
+
subOptions: [
|
|
18
|
+
{ id: 1, value: "Espejos" },
|
|
19
|
+
{ id: 2, value: "Persianas" },
|
|
20
|
+
],
|
|
23
21
|
},
|
|
22
|
+
{ id: 2, value: "Eléctrico" },
|
|
23
|
+
{ id: 3, value: "Ferretería" },
|
|
24
|
+
{ id: 4, value: "Herramientas" },
|
|
25
|
+
{ id: 5, value: "Iluminación" },
|
|
24
26
|
],
|
|
25
|
-
onClickItem: (v, id) => {
|
|
26
|
-
if (v) {
|
|
27
|
-
console.log("Agregar a la lista", id);
|
|
28
|
-
} else {
|
|
29
|
-
console.log("Eliminar a la lista", id);
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
icon: iconStar,
|
|
33
|
-
showSearchBar: true,
|
|
34
|
-
customOptions: <p>Esto es un customOptions</p>
|
|
35
27
|
};
|
|
@@ -7,7 +7,6 @@ export const SelecItem = ({
|
|
|
7
7
|
setParameterArray,
|
|
8
8
|
activeFilters,
|
|
9
9
|
setActiveFilters,
|
|
10
|
-
onClickItem,
|
|
11
10
|
}) => {
|
|
12
11
|
const [showSubOptions, setShowSubOptions] = useState(false);
|
|
13
12
|
const [chkGlobal, setChkGlobal] = useState(false);
|
|
@@ -18,9 +17,6 @@ export const SelecItem = ({
|
|
|
18
17
|
id={"main-item-" + option.id}
|
|
19
18
|
label={option.name}
|
|
20
19
|
onChange={(e) => {
|
|
21
|
-
if (onClickItem) {
|
|
22
|
-
onClickItem(e.target.checked, option.id)
|
|
23
|
-
}
|
|
24
20
|
const subOptions = option.subOptions;
|
|
25
21
|
const filtersCopy = { ...activeFilters };
|
|
26
22
|
if (subOptions) {
|
|
@@ -81,9 +77,6 @@ export const SelecItem = ({
|
|
|
81
77
|
activeFilters[option.name][sub.name]
|
|
82
78
|
}
|
|
83
79
|
onChange={(e) => {
|
|
84
|
-
if (onClickItem) {
|
|
85
|
-
onClickItem(e.target.checked, sub.id)
|
|
86
|
-
}
|
|
87
80
|
if (e.target.checked) {
|
|
88
81
|
setParameterArray((current) =>
|
|
89
82
|
[...current, sub.id].sort((a, b) => a - b)
|
|
@@ -13,7 +13,7 @@ export const GalleryHeader = ({ setCheckAll, setSelectedImages, shotThd }) => {
|
|
|
13
13
|
<div>
|
|
14
14
|
<CheckBox id="check-all-images" onChange={(e) => checkAll(e)} />
|
|
15
15
|
</div>
|
|
16
|
-
<p className="image-header">
|
|
16
|
+
<p className="image-header">Imagen</p>
|
|
17
17
|
<p className="image-name">Nombre</p>
|
|
18
18
|
<p className="image-size">Tamaño</p>
|
|
19
19
|
<p className="image-format">Formato</p>
|
|
@@ -2,7 +2,6 @@ import { Container } from "./styles";
|
|
|
2
2
|
import { ScreenHeader } from "../../atoms/ScreenHeader/index";
|
|
3
3
|
import { Button } from "../../atoms/GeneralButton/index";
|
|
4
4
|
import { useEffect, useRef } from "react";
|
|
5
|
-
import { ChatPopUp } from "../../atoms/ChatPopUp/index";
|
|
6
5
|
|
|
7
6
|
export const HeaderTop = ({ setHeaderTop }) => {
|
|
8
7
|
const headerTop = useRef();
|
|
@@ -14,15 +13,12 @@ export const HeaderTop = ({ setHeaderTop }) => {
|
|
|
14
13
|
return (
|
|
15
14
|
<Container ref={headerTop}>
|
|
16
15
|
<ScreenHeader text="Edición de producto" />
|
|
17
|
-
<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}}
|
|
24
|
-
/>
|
|
25
|
-
</div>
|
|
16
|
+
<Button
|
|
17
|
+
buttonType="close-button"
|
|
18
|
+
onClick={() => {
|
|
19
|
+
window.location.href = `/products`;
|
|
20
|
+
}}
|
|
21
|
+
/>
|
|
26
22
|
</Container>
|
|
27
23
|
);
|
|
28
24
|
};
|
|
@@ -18,7 +18,7 @@ export const VersionItem = ({
|
|
|
18
18
|
let textExportedDate = "";
|
|
19
19
|
if (timestamp !== null) {
|
|
20
20
|
const exportedDate = new Date(timestamp).toLocaleDateString();
|
|
21
|
-
textExportedDate =
|
|
21
|
+
textExportedDate = `Última vez exportado: ${exportedDate}`;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
return (
|
|
@@ -36,19 +36,19 @@ export const VersionItem = ({
|
|
|
36
36
|
</div>
|
|
37
37
|
<div className="version-info">
|
|
38
38
|
<ScreenHeader
|
|
39
|
-
text={"
|
|
39
|
+
text={"Versión " + version}
|
|
40
40
|
headerType={"input-name-header"}
|
|
41
41
|
color={GlobalColors.magenta_s2}
|
|
42
42
|
/>
|
|
43
43
|
<p>{textExportedDate}</p>
|
|
44
44
|
<p>
|
|
45
45
|
{currentVersion
|
|
46
|
-
? "
|
|
46
|
+
? "Versión actual"
|
|
47
47
|
: articleStatus
|
|
48
|
-
? "Edición Content-
|
|
49
|
-
: "
|
|
48
|
+
? "Edición Content-Oh!"
|
|
49
|
+
: "Versión de " + productOwner}
|
|
50
50
|
</p>
|
|
51
|
-
<p>{articleStatus ? "Content-
|
|
51
|
+
<p>{articleStatus ? "Content-Oh! digital" : productOwner}</p>
|
|
52
52
|
</div>
|
|
53
53
|
</Container>
|
|
54
54
|
);
|
|
@@ -47,7 +47,7 @@ export const VersionSelector = ({
|
|
|
47
47
|
<Container id={modalId}>
|
|
48
48
|
<div className="versions-header">
|
|
49
49
|
<ScreenHeader
|
|
50
|
-
text={"
|
|
50
|
+
text={"Versión del producto"}
|
|
51
51
|
headerType={"input-name-header"}
|
|
52
52
|
color={GlobalColors.white}
|
|
53
53
|
fontFamily={FontFamily.Lato}
|
|
@@ -235,7 +235,7 @@ export const Dashboard = ({ jwt, user, company }) => {
|
|
|
235
235
|
showFilterString={true}
|
|
236
236
|
options={dateOptions}
|
|
237
237
|
selectLabel="Todo el tiempo"
|
|
238
|
-
placeHolder="Buscar
|
|
238
|
+
placeHolder="Buscar fecha"
|
|
239
239
|
customSelectId="dates-select"
|
|
240
240
|
parameterArray={datesRange}
|
|
241
241
|
setParameterArray={setDatesRange}
|
|
@@ -245,7 +245,7 @@ export const Dashboard = ({ jwt, user, company }) => {
|
|
|
245
245
|
showSearchBar={true}
|
|
246
246
|
options={providers}
|
|
247
247
|
selectLabel="Todos los proveedores"
|
|
248
|
-
placeHolder="Buscar
|
|
248
|
+
placeHolder="Buscar proveedor"
|
|
249
249
|
customSelectId="providers-select"
|
|
250
250
|
parameterArray={companyId}
|
|
251
251
|
setParameterArray={setCompanyId}
|
|
@@ -256,7 +256,7 @@ export const Dashboard = ({ jwt, user, company }) => {
|
|
|
256
256
|
showSearchBar={true}
|
|
257
257
|
options={categories}
|
|
258
258
|
selectLabel="Todas las categorías"
|
|
259
|
-
placeHolder="Buscar
|
|
259
|
+
placeHolder="Buscar categoría"
|
|
260
260
|
customSelectId="category-select"
|
|
261
261
|
parameterArray={categoryId}
|
|
262
262
|
setParameterArray={setCategoryId}
|
|
@@ -266,12 +266,12 @@ export const Dashboard = ({ jwt, user, company }) => {
|
|
|
266
266
|
showFilterString={true}
|
|
267
267
|
showSearchBar={true}
|
|
268
268
|
options={retailers}
|
|
269
|
-
selectLabel="
|
|
270
|
-
placeHolder="Buscar
|
|
269
|
+
selectLabel="Todas las cadenas"
|
|
270
|
+
placeHolder="Buscar cadena"
|
|
271
271
|
customSelectId="retailers-select"
|
|
272
272
|
parameterArray={retailerId}
|
|
273
273
|
setParameterArray={setRetailerId}
|
|
274
|
-
defaultOption={"
|
|
274
|
+
defaultOption={"Todas las cadenas"}
|
|
275
275
|
/>
|
|
276
276
|
{user.is_retailer === 1 && (
|
|
277
277
|
<CustomSelect
|
|
Binary file
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14">
|
|
2
|
-
<path id="close_FILL0_wght400_GRAD0_opsz48" d="M6.385,19.308,5.308,18.231l5.923-5.923L5.308,6.385,6.385,5.308l5.923,5.923,5.923-5.923,1.077,1.077-5.923,5.923,5.923,5.923-1.077,1.077-5.923-5.923Z" transform="translate(-5.308 -5.308)" fill="#fff"/>
|
|
3
|
-
</svg>
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 51 65" fill="#fff" fill-rule="evenodd" stroke="#000" stroke-linecap="round" stroke-linejoin="round"><use xlink:href="#C" x=".5" y=".5"/><defs><filter id="A" x="-6%" y="-4.6875%" width="116%" height="112.5%"><feGaussianBlur in="SourceAlpha" stdDeviation="1"/><feOffset dx="2" dy="2" result="B"/><feFlood flood-color="#000" flood-opacity=".2"/><feComposite in2="B" operator="in" result="C"/><feMerge><feMergeNode in="C"/><feMergeNode in="SourceGraphic"/></feMerge></filter><filter id="B" x="-27.5%" y="-32.5%" width="160%" height="160%"><feGaussianBlur in="SourceAlpha" stdDeviation="2"/><feOffset dx="1" dy="-1" result="B"/><feFlood flood-color="#000" flood-opacity=".2"/><feComposite in2="B" operator="in" result="C"/><feMerge><feMergeNode in="C"/><feMergeNode in="SourceGraphic"/></feMerge></filter></defs><symbol id="C" overflow="visible"><path d="M50 20L30 0H5a4.99 4.99 0 0 0-5 5v54a4.99 4.99 0 0 0 5 5h40a4.99 4.99 0 0 0 5-5z" fill="#2196f3" stroke="none" filter="url(#A)"/><defs/><g transform="matrix(-1 0 0 -1 50 20)"><path d="M20 20L0 0h15a4.99 4.99 0 0 1 5 5z" fill="#90caf9" stroke="none" filter="url(#B)"/><defs/></g><path d="M10 17.5h17.5V20H10zm0 10h27.5V30H10zm0 10h27.5V40H10zm0 10h27.5V50H10z" stroke="none"/></symbol></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 66 81" fill="#fff" fill-rule="evenodd" stroke="#000" stroke-linecap="round" stroke-linejoin="round"><use xlink:href="#A" x=".5" y=".5"/><symbol id="A" overflow="visible"><path d="M44.674 0H0v79.977h65V20.012L44.674 0zM60.93 75.993H4.07V4.007h38.593v18.008h18.291v53.978zm-10.151-40H14.221v-3.984h36.558zm0 9.995H14.221v-3.984h36.558zm0 10.017H14.221v-4.007h36.558zm0 9.994H14.221v-4.007h36.558z" fill="#2a3282" stroke="none"/></symbol></svg>
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="14" height="14" viewBox="0 0 14 14">
|
|
2
|
-
<defs>
|
|
3
|
-
<style>
|
|
4
|
-
.cls-1 {
|
|
5
|
-
fill: #707070;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.cls-2 {
|
|
9
|
-
clip-path: url(#clip-path);
|
|
10
|
-
}
|
|
11
|
-
</style>
|
|
12
|
-
<clipPath id="clip-path">
|
|
13
|
-
<rect id="Rectángulo_368" data-name="Rectángulo 368" class="cls-1" width="14" height="14" transform="translate(1737 869)"/>
|
|
14
|
-
</clipPath>
|
|
15
|
-
</defs>
|
|
16
|
-
<g id="Enmascarar_grupo_83" data-name="Enmascarar grupo 83" class="cls-2" transform="translate(-1737 -869)">
|
|
17
|
-
<path id="forum_FILL0_wght400_GRAD0_opsz48" class="cls-1" d="M1.4,11.9V2.135a.728.728,0,0,1,.228-.49A.651.651,0,0,1,2.1,1.4h9.082a.675.675,0,0,1,.49.236.714.714,0,0,1,.227.5v6.23a.728.728,0,0,1-.227.49.666.666,0,0,1-.49.245H4.2Zm3.518.7a.678.678,0,0,1-.481-.245.716.716,0,0,1-.236-.49V10.15h8.75V4.2H14.7a.651.651,0,0,1,.472.245.744.744,0,0,1,.227.508v10.43L12.617,12.6ZM10.85,2.45H2.45V9.363L3.763,8.05H10.85Zm-8.4,0v0Z" transform="translate(1735.6 867.609)"/>
|
|
18
|
-
</g>
|
|
19
|
-
</svg>
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">
|
|
2
|
-
<path id="Icono_cargar_más" data-name="Icono, cargar más" d="M18,28a9.64,9.64,0,0,1-7.078-2.922A9.64,9.64,0,0,1,8,18a9.64,9.64,0,0,1,2.922-7.078A9.64,9.64,0,0,1,18,8a9.665,9.665,0,0,1,4.656,1.078,11.027,11.027,0,0,1,3.469,2.953V8H28v7.938H20.063V14.063h5.25a9.572,9.572,0,0,0-3.031-3.031A7.888,7.888,0,0,0,18,9.875,8.056,8.056,0,0,0,9.875,18,8.056,8.056,0,0,0,18,26.125a8.2,8.2,0,0,0,4.75-1.484,7.72,7.72,0,0,0,3-3.922h1.937A9.576,9.576,0,0,1,24.094,26,9.947,9.947,0,0,1,18,28Z" transform="translate(-8 -8)" fill="#8a6caa"/>
|
|
3
|
-
</svg>
|