contentoh-components-library 21.3.51 → 21.3.53
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/ButtonV2/styles.js +1 -1
- package/dist/components/atoms/Status/styles.js +1 -1
- package/dist/components/atoms/VerticalSideMenuMainPage/index.js +23 -18
- package/dist/components/atoms/VerticalSideMenuMainPage/styles.js +4 -4
- package/dist/components/organisms/DashboardMetric/dashboardMetricUtils.js +0 -27
- package/dist/components/organisms/GlobalModal/styles.js +1 -1
- package/dist/components/organisms/OrderDetail/styles.js +1 -1
- package/dist/components/organisms/OrderDetail/utils/Table/styles.js +1 -1
- package/dist/components/pages/Dashboard/Dashboard.stories.js +50 -31
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +89 -127
- package/dist/components/pages/ProviderProductEdition/index.js +392 -639
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +108 -61
- package/dist/components/pages/RetailerProductEdition/index.js +1 -1
- package/dist/index.js +0 -13
- package/package.json +6 -7
- package/src/components/atoms/ButtonV2/styles.js +1 -1
- package/src/components/atoms/Status/styles.js +0 -4
- package/src/components/atoms/VerticalSideMenuMainPage/index.js +22 -18
- package/src/components/atoms/VerticalSideMenuMainPage/styles.js +4 -3
- package/src/components/molecules/AvatarAndValidation/index.js +1 -1
- package/src/components/organisms/DashboardMetric/dashboardMetricUtils.js +1 -18
- package/src/components/organisms/GlobalModal/styles.js +0 -10
- package/src/components/organisms/OrderDetail/index.js +0 -1
- package/src/components/organisms/OrderDetail/styles.js +1 -1
- package/src/components/organisms/OrderDetail/utils/Table/styles.js +1 -0
- package/src/components/pages/Dashboard/Dashboard.stories.js +55 -31
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +96 -135
- package/src/components/pages/ProviderProductEdition/index.js +135 -256
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +111 -61
- package/src/components/pages/RetailerProductEdition/index.js +1 -1
- package/src/index.js +0 -1
- package/dist/assets/fonts/roboto/LICENSE.txt +0 -202
- package/src/components/organisms/TableResizable/TableResizable.stories.js +0 -17
- package/src/components/organisms/TableResizable/index.js +0 -119
- package/src/components/organisms/TableResizable/styles.js +0 -133
- package/src/components/organisms/TableResizable/utils.js +0 -46
|
@@ -28,90 +28,137 @@ exports.RetailerProductEditionDefault = RetailerProductEditionDefault;
|
|
|
28
28
|
RetailerProductEditionDefault.args = {
|
|
29
29
|
tabsSections: {
|
|
30
30
|
Descripción: true,
|
|
31
|
-
"Ficha técnica":
|
|
32
|
-
Imágenes:
|
|
31
|
+
"Ficha técnica": true,
|
|
32
|
+
Imágenes: true
|
|
33
33
|
},
|
|
34
|
-
token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.
|
|
34
|
+
token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJhNmM0ZDNkNi0yNGE0LTQxZDQtYWQwZi1kMDg3NDM4YWI1YjYiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwiY29nbml0bzp1c2VybmFtZSI6ImE2YzRkM2Q2LTI0YTQtNDFkNC1hZDBmLWQwODc0MzhhYjViNiIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiJhY2FmNjhiOC00MmU1LTQ1NzAtYThiMC04YWY4NmY3MGU5YTEiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY3ODQ5NDYzNiwibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY3ODQ5ODIzNiwiaWF0IjoxNjc4NDk0NjM2LCJlbWFpbCI6ImV0Y0Bjb250ZW50b2guY29tIn0.WoO3h0tAsF_Z4f_6BLIOXaL__TzHUxZyQlDAULQ2cT1HkUs0EmTZXRzRZ4oce7rV5osco9gCWfhc03rQ-C12jmU-Yt7jq3vuuoHUz4JqkLpelZPS8jHSsCAUWu_ekOIgDzvNegiyKk2R4qnd7IRPzWOAx1houg-KKT7kxCxjkTyJJGtzb7pYDLSJSV871nS8MeXGf5VZG5rQ3Smfl8ANqypLUEQQ6gSOr30Ztt1lZaHRmhF8WKo_GWwY3jNScmX_o9QGOSvKVl8hTqz4gA9xbiNJ3zpoh_5PzY-N4Sl8pE3gt_9Zw_o5ItLNHpnXuav_0NENvhXDu7p7VTLEpG8DTA",
|
|
35
35
|
productSelected: {
|
|
36
|
-
orderId: 15104,
|
|
37
|
-
article_status: "AP",
|
|
38
|
-
datasheet_status: "AC",
|
|
39
|
-
description_status: "AC",
|
|
40
|
-
images_status: "AC",
|
|
41
|
-
prio: "none",
|
|
42
|
-
version: 3,
|
|
43
|
-
brand: null,
|
|
44
|
-
article: {
|
|
45
|
-
category: "Juguetes|Juguetes|Juguetes",
|
|
46
|
-
company_name: "Financiado Bodega",
|
|
47
|
-
id_company: 912,
|
|
48
|
-
country: "México",
|
|
49
|
-
id_category: "4208",
|
|
50
|
-
id_article: 37569,
|
|
51
|
-
name: "BB HORA DEL BANO SET MENTA",
|
|
52
|
-
upc: "93905444796"
|
|
53
|
-
},
|
|
54
|
-
retailers: [{
|
|
55
|
-
id: 70,
|
|
56
|
-
name: "Bodega Aurrera"
|
|
57
|
-
}],
|
|
58
36
|
services: {
|
|
59
37
|
datasheets: 1,
|
|
60
38
|
descriptions: 1,
|
|
61
39
|
images: 1
|
|
62
40
|
},
|
|
41
|
+
orderId: 14606,
|
|
42
|
+
status: "AS",
|
|
43
|
+
datasheet_status: "CA",
|
|
44
|
+
prio: "none",
|
|
45
|
+
version: 3,
|
|
46
|
+
description_status: "CA",
|
|
47
|
+
images_status: "AS",
|
|
63
48
|
statusByRetailer: {
|
|
64
|
-
|
|
65
|
-
datasheet: "
|
|
66
|
-
description: "
|
|
67
|
-
images: "
|
|
49
|
+
4: {
|
|
50
|
+
datasheet: "AC",
|
|
51
|
+
description: "CA",
|
|
52
|
+
images: "AS"
|
|
53
|
+
},
|
|
54
|
+
5: {
|
|
55
|
+
datasheet: "CA",
|
|
56
|
+
description: "CA",
|
|
57
|
+
images: "AS"
|
|
58
|
+
},
|
|
59
|
+
6: {
|
|
60
|
+
description: "CA",
|
|
61
|
+
images: "AS",
|
|
62
|
+
datasheet: "CA"
|
|
63
|
+
},
|
|
64
|
+
12: {
|
|
65
|
+
datasheet: "CA",
|
|
66
|
+
description: "CA",
|
|
67
|
+
images: "AS"
|
|
68
|
+
},
|
|
69
|
+
17: {
|
|
70
|
+
datasheet: "CA",
|
|
71
|
+
description: "AC",
|
|
72
|
+
images: "AS"
|
|
68
73
|
}
|
|
69
74
|
},
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
75
|
+
article: {
|
|
76
|
+
id_article: 37317,
|
|
77
|
+
id_category: "157",
|
|
78
|
+
name: "Detergente lavatrastres líquido Axion Complete tricloro 1.1 l",
|
|
79
|
+
upc: "7509546078915",
|
|
80
|
+
timestamp: "2023-03-10T20:19:15.000Z",
|
|
81
|
+
id_user: 28,
|
|
82
|
+
status: "NULL",
|
|
83
|
+
active: 1,
|
|
84
|
+
company_id: 1005,
|
|
85
|
+
SKU: null,
|
|
86
|
+
Descripcion: null,
|
|
87
|
+
Proveedor: null,
|
|
88
|
+
id_proveedor: 0,
|
|
89
|
+
company_name: "CRS Transformaciones",
|
|
90
|
+
country: "México",
|
|
91
|
+
id_order: 14606,
|
|
92
|
+
id_datasheet_especialist: 54,
|
|
93
|
+
id_datasheet_facilitator: 52,
|
|
94
|
+
id_description_especialist: 54,
|
|
95
|
+
id_description_facilitator: 52,
|
|
96
|
+
id_images_especialist: 55,
|
|
97
|
+
id_images_facilitator: 53,
|
|
98
|
+
id_auditor: 37,
|
|
99
|
+
id_recepcionist: null,
|
|
100
|
+
category: "Consumibles|Productos de Limpieza y Lavandería|Jabones y Lavatrastes",
|
|
101
|
+
missingAttributes: 0,
|
|
102
|
+
missingDescriptions: 0,
|
|
103
|
+
missingImages: 0
|
|
104
|
+
},
|
|
105
|
+
retailers: [{
|
|
106
|
+
id: 4,
|
|
107
|
+
name: "Walmart Super y Superama"
|
|
108
|
+
}, {
|
|
109
|
+
id: 5,
|
|
110
|
+
name: "Chedraui"
|
|
111
|
+
}, {
|
|
112
|
+
id: 6,
|
|
113
|
+
name: "HEB"
|
|
114
|
+
}, {
|
|
115
|
+
id: 12,
|
|
116
|
+
name: "La Comer"
|
|
117
|
+
}, {
|
|
118
|
+
id: 17,
|
|
119
|
+
name: "Genérico"
|
|
120
|
+
}],
|
|
121
|
+
country: "México",
|
|
122
|
+
upc: "7509546078915"
|
|
76
123
|
},
|
|
77
124
|
location: {
|
|
78
125
|
product: {
|
|
79
|
-
articleId:
|
|
126
|
+
articleId: 354,
|
|
80
127
|
versionId: 3
|
|
81
128
|
}
|
|
82
129
|
},
|
|
83
130
|
user: {
|
|
84
|
-
id_user:
|
|
85
|
-
name: "
|
|
86
|
-
last_name: "
|
|
87
|
-
email: "
|
|
88
|
-
position: "
|
|
89
|
-
telephone: "
|
|
90
|
-
country: "
|
|
91
|
-
id_company:
|
|
92
|
-
id_cognito: "
|
|
131
|
+
id_user: 51,
|
|
132
|
+
name: "ADMIN PRUEBA",
|
|
133
|
+
last_name: "",
|
|
134
|
+
email: "etc@contentoh.com",
|
|
135
|
+
position: "",
|
|
136
|
+
telephone: "",
|
|
137
|
+
country: "",
|
|
138
|
+
id_company: 2,
|
|
139
|
+
id_cognito: "a6c4d3d6-24a4-41d4-ad0f-d087438ab5b6",
|
|
93
140
|
birth_Date: null,
|
|
94
|
-
about_me:
|
|
95
|
-
zip_code:
|
|
96
|
-
address:
|
|
97
|
-
job:
|
|
98
|
-
id_stripe:
|
|
99
|
-
id_role:
|
|
141
|
+
about_me: "",
|
|
142
|
+
zip_code: "",
|
|
143
|
+
address: "",
|
|
144
|
+
job: "",
|
|
145
|
+
id_stripe: "",
|
|
146
|
+
id_role: 1,
|
|
100
147
|
active: 1,
|
|
101
|
-
is_retailer:
|
|
148
|
+
is_retailer: 0,
|
|
102
149
|
email_notify: 1,
|
|
103
150
|
is_user_tech: null,
|
|
104
151
|
membership: {
|
|
105
|
-
id:
|
|
106
|
-
start_date: "2022-
|
|
107
|
-
end_date: "2023-
|
|
108
|
-
planID:
|
|
109
|
-
plan: "
|
|
110
|
-
name: "Plan
|
|
111
|
-
user_limit: "
|
|
112
|
-
products_limit: "
|
|
152
|
+
id: 750,
|
|
153
|
+
start_date: "2022-01-07T21:32:54.000Z",
|
|
154
|
+
end_date: "2023-01-07T21:32:54.000Z",
|
|
155
|
+
planID: 6,
|
|
156
|
+
plan: "prod_KvGd6YSTJyR3AP",
|
|
157
|
+
name: "Plan Small",
|
|
158
|
+
user_limit: "10",
|
|
159
|
+
products_limit: "1000",
|
|
113
160
|
type: "Enterprise"
|
|
114
161
|
},
|
|
115
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
162
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-51/51.png?1678494637588"
|
|
116
163
|
}
|
|
117
164
|
};
|
|
@@ -1258,7 +1258,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1258
1258
|
})) === null || _servicesData$find === void 0 ? void 0 : (_servicesData$find$st = _servicesData$find.status) === null || _servicesData$find$st === void 0 ? void 0 : _servicesData$find$st.replace(/.*\//, ""); //sessionStorage product
|
|
1259
1259
|
|
|
1260
1260
|
var adminFacilitatorCanEvaluate = retailerStatus === "IE" && [1, 4, 5].includes(user.id_role);
|
|
1261
|
-
var adminAuditorCanEvaluate = ["AC", "RP", "RCA"
|
|
1261
|
+
var adminAuditorCanEvaluate = ["AC", "RP", "RCA"].includes(retailerStatus) && [1, 6].includes(user.id_role);
|
|
1262
1262
|
return adminFacilitatorCanEvaluate || adminAuditorCanEvaluate;
|
|
1263
1263
|
};
|
|
1264
1264
|
|
package/dist/index.js
CHANGED
|
@@ -979,19 +979,6 @@ Object.keys(_RangeCalendar).forEach(function (key) {
|
|
|
979
979
|
});
|
|
980
980
|
});
|
|
981
981
|
|
|
982
|
-
var _TableResizable = require("./components/organisms/TableResizable");
|
|
983
|
-
|
|
984
|
-
Object.keys(_TableResizable).forEach(function (key) {
|
|
985
|
-
if (key === "default" || key === "__esModule") return;
|
|
986
|
-
if (key in exports && exports[key] === _TableResizable[key]) return;
|
|
987
|
-
Object.defineProperty(exports, key, {
|
|
988
|
-
enumerable: true,
|
|
989
|
-
get: function get() {
|
|
990
|
-
return _TableResizable[key];
|
|
991
|
-
}
|
|
992
|
-
});
|
|
993
|
-
});
|
|
994
|
-
|
|
995
982
|
var _ChangePasswordLogin = require("./components/pages/ChangePasswordLogin");
|
|
996
983
|
|
|
997
984
|
Object.keys(_ChangePasswordLogin).forEach(function (key) {
|
package/package.json
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contentoh-components-library",
|
|
3
|
-
"version": "21.3.
|
|
3
|
+
"version": "21.3.53",
|
|
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.
|
|
10
|
-
"@emotion/styled": "^11.10.
|
|
9
|
+
"@emotion/react": "^11.10.5",
|
|
10
|
+
"@emotion/styled": "^11.10.5",
|
|
11
11
|
"@fortawesome/fontawesome-svg-core": "^6.2.0",
|
|
12
12
|
"@fortawesome/free-regular-svg-icons": "^6.2.0",
|
|
13
13
|
"@fortawesome/free-solid-svg-icons": "^6.2.0",
|
|
14
14
|
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
15
|
-
"@mui/
|
|
16
|
-
"@mui/
|
|
17
|
-
"@mui/styled-engine-sc": "^5.12.0",
|
|
15
|
+
"@mui/material": "^5.11.1",
|
|
16
|
+
"@mui/styled-engine-sc": "^5.10.6",
|
|
18
17
|
"@storybook/addon-postcss": "^2.0.0",
|
|
19
18
|
"@testing-library/jest-dom": "^5.11.4",
|
|
20
19
|
"@testing-library/react": "^11.1.0",
|
|
@@ -44,7 +43,7 @@
|
|
|
44
43
|
"react-scroll": "^1.8.8",
|
|
45
44
|
"react-transition-group": "^4.4.5",
|
|
46
45
|
"storybook-addon-external-links": "^2.0.3",
|
|
47
|
-
"styled-components": "^5.3.
|
|
46
|
+
"styled-components": "^5.3.3",
|
|
48
47
|
"swiper": "^8.4.4",
|
|
49
48
|
"uuid": "^8.3.2",
|
|
50
49
|
"web-vitals": "^1.0.1"
|
|
@@ -23,7 +23,6 @@ export const Container = styled.div`
|
|
|
23
23
|
|
|
24
24
|
&.status-R,
|
|
25
25
|
&.status-AS,
|
|
26
|
-
&.status-SAC,
|
|
27
26
|
&.status-PA {
|
|
28
27
|
background-color: ${GlobalColors.reception};
|
|
29
28
|
}
|
|
@@ -31,7 +30,6 @@ export const Container = styled.div`
|
|
|
31
30
|
&.status-AA,
|
|
32
31
|
&.status-AP,
|
|
33
32
|
&.status-AC,
|
|
34
|
-
&.status-AAC,
|
|
35
33
|
&.status-ACA {
|
|
36
34
|
background-color: ${GlobalColors.finished};
|
|
37
35
|
}
|
|
@@ -39,7 +37,6 @@ export const Container = styled.div`
|
|
|
39
37
|
&.status-RA,
|
|
40
38
|
&.status-RC,
|
|
41
39
|
&.status-RP,
|
|
42
|
-
&.status-RAC,
|
|
43
40
|
&.status-RCA {
|
|
44
41
|
background-color: ${GlobalColors.rejected_status};
|
|
45
42
|
}
|
|
@@ -50,7 +47,6 @@ export const Container = styled.div`
|
|
|
50
47
|
background-color: ${GlobalColors.s4};
|
|
51
48
|
}
|
|
52
49
|
|
|
53
|
-
&.status-FAP,
|
|
54
50
|
&.status-Ex {
|
|
55
51
|
background-color: ${GlobalColors.exported};
|
|
56
52
|
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import React, { useState } from "react";
|
|
2
|
-
import { BrowserRouter as Router } from "react-router-dom";
|
|
3
1
|
import {
|
|
4
2
|
Container,
|
|
5
3
|
NavLinkOption,
|
|
@@ -8,12 +6,14 @@ import {
|
|
|
8
6
|
} from "./styles";
|
|
9
7
|
import iconLogoContentoh from "../../../assets/images/verticalSideMenuMainPage/iconLogoContentoh.svg";
|
|
10
8
|
import iconLogo from "../../../assets/images/verticalSideMenuMainPage/iconLogo.svg";
|
|
9
|
+
import React, { useState } from "react";
|
|
10
|
+
import { BrowserRouter as Router } from "react-router-dom";
|
|
11
11
|
|
|
12
12
|
export const VerticalSideMenuMainPage = ({
|
|
13
13
|
menuoption = [],
|
|
14
14
|
containerdash,
|
|
15
15
|
}) => {
|
|
16
|
-
const [trueBar, setTrueBar] = useState(
|
|
16
|
+
const [trueBar, setTrueBar] = useState();
|
|
17
17
|
return (
|
|
18
18
|
<Router>
|
|
19
19
|
<ContainerPrincipal>
|
|
@@ -27,25 +27,29 @@ export const VerticalSideMenuMainPage = ({
|
|
|
27
27
|
src={trueBar ? iconLogoContentoh : iconLogo}
|
|
28
28
|
alt="Logo"
|
|
29
29
|
className="logo"
|
|
30
|
-
|
|
30
|
+
></img>
|
|
31
31
|
<div className="option">
|
|
32
32
|
{menuoption.map((item, index) => (
|
|
33
|
-
<div key={index} className="option-div">
|
|
34
|
-
<NavLinkOption to={item.path} bar={trueBar
|
|
33
|
+
<div key={index} bar={trueBar} className="option-div">
|
|
34
|
+
<NavLinkOption to={item.path} bar={trueBar}>
|
|
35
35
|
<img src={item.icon} alt={item.title}></img>
|
|
36
|
-
{trueBar
|
|
36
|
+
{trueBar && <p>{item.title}</p>}
|
|
37
37
|
</NavLinkOption>
|
|
38
|
-
{item
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
38
|
+
{item.suboption !== undefined && (
|
|
39
|
+
<>
|
|
40
|
+
{item?.suboption?.map((subitem) => (
|
|
41
|
+
<div className="sub-option">
|
|
42
|
+
<NavLinkOption
|
|
43
|
+
to={subitem.path}
|
|
44
|
+
className="sub-option-link"
|
|
45
|
+
bar={trueBar}
|
|
46
|
+
>
|
|
47
|
+
{trueBar && <p>{subitem.title}</p>}
|
|
48
|
+
</NavLinkOption>
|
|
49
|
+
</div>
|
|
50
|
+
))}
|
|
51
|
+
</>
|
|
52
|
+
)}
|
|
49
53
|
</div>
|
|
50
54
|
))}
|
|
51
55
|
</div>
|
|
@@ -9,7 +9,7 @@ export const Container = styled.div`
|
|
|
9
9
|
flex-direction: column;
|
|
10
10
|
justify-content: space-between;
|
|
11
11
|
overflow: none;
|
|
12
|
-
width: ${({ bar }) => (bar ?
|
|
12
|
+
width: ${({ bar }) => (bar ? 240 : 66)}px;
|
|
13
13
|
background: linear-gradient(180deg, #e33aa9 0%, #3b1366 100%);
|
|
14
14
|
scrollbar-width: none;
|
|
15
15
|
display: flex;
|
|
@@ -65,7 +65,7 @@ export const NavLinkOption = styled(NavLink)`
|
|
|
65
65
|
color: ${({ bar }) => (bar ? "#fafafa" : "transparent")};
|
|
66
66
|
text-decoration: none;
|
|
67
67
|
cursor: pointer;
|
|
68
|
-
padding: ${({ bar }) => (bar ? "0
|
|
68
|
+
padding: ${({ bar }) => (bar ? "0 22" : "0 8")}px;
|
|
69
69
|
&:hover {
|
|
70
70
|
background: rgba(255, 255, 255, 0.2);
|
|
71
71
|
color: #fafafa;
|
|
@@ -94,6 +94,7 @@ export const NavLinkOption = styled(NavLink)`
|
|
|
94
94
|
border-radius: 0;
|
|
95
95
|
transition: color 0.3s linear;
|
|
96
96
|
color: ${({ bar }) => (bar ? "#f0eef2" : "transparent")};
|
|
97
|
+
padding-top: 14px;
|
|
97
98
|
height: 25px;
|
|
98
99
|
margin: 0;
|
|
99
100
|
padding-left: 12px;
|
|
@@ -105,7 +106,7 @@ export const NavLinkOption = styled(NavLink)`
|
|
|
105
106
|
height: 10px;
|
|
106
107
|
background-color: white;
|
|
107
108
|
position: absolute;
|
|
108
|
-
|
|
109
|
+
bottom: 0;
|
|
109
110
|
left: -6px;
|
|
110
111
|
}
|
|
111
112
|
&.active {
|
|
@@ -35,16 +35,6 @@ export const getFullStatus = (status) => {
|
|
|
35
35
|
return "Exportado";
|
|
36
36
|
case "NS":
|
|
37
37
|
return "No solicitado";
|
|
38
|
-
case "SAC":
|
|
39
|
-
return "Solicitud Auditoría Content-oh!";
|
|
40
|
-
case "AAC":
|
|
41
|
-
return "Aprobado Auditoría Content-oh!";
|
|
42
|
-
case "RAC":
|
|
43
|
-
return "Rechazado Auditoría Content-oh!";
|
|
44
|
-
case "FAP":
|
|
45
|
-
return "Finalización Auditoría por Proveedor";
|
|
46
|
-
default:
|
|
47
|
-
return "";
|
|
48
38
|
}
|
|
49
39
|
};
|
|
50
40
|
|
|
@@ -85,14 +75,6 @@ export const getStatusColor = (status) => {
|
|
|
85
75
|
return "black";
|
|
86
76
|
case "Ex":
|
|
87
77
|
return "#09CAD8";
|
|
88
|
-
case "SAC":
|
|
89
|
-
return "#2471A3";
|
|
90
|
-
case "AAC":
|
|
91
|
-
return "#1ABC9C";
|
|
92
|
-
case "RAC":
|
|
93
|
-
return "#229954";
|
|
94
|
-
case "FAP":
|
|
95
|
-
return "#F1C40F";
|
|
96
78
|
default:
|
|
97
79
|
return "white";
|
|
98
80
|
}
|
|
@@ -122,6 +104,7 @@ export const removeOldStatus = (object) => {
|
|
|
122
104
|
object["AC"] = object["AC"] + object["AF"];
|
|
123
105
|
delete object["AF"];
|
|
124
106
|
break;
|
|
107
|
+
|
|
125
108
|
default:
|
|
126
109
|
break;
|
|
127
110
|
}
|
|
@@ -27,16 +27,6 @@ export const MessageContainer = styled.div`
|
|
|
27
27
|
min-height: ${(props) => (props.height ? "300px" : "190px")};
|
|
28
28
|
background: #281f33;
|
|
29
29
|
border-radius: 39px;
|
|
30
|
-
& > .generic-text {
|
|
31
|
-
width: 100%;
|
|
32
|
-
font-family: Raleway;
|
|
33
|
-
font-style: normal;
|
|
34
|
-
font-weight: normal;
|
|
35
|
-
font-size: 16px;
|
|
36
|
-
text-align: center;
|
|
37
|
-
color: #f7f7f7;
|
|
38
|
-
margin: 20px 0px;
|
|
39
|
-
}
|
|
40
30
|
`;
|
|
41
31
|
export const TextArea = styled.textarea`
|
|
42
32
|
display: block;
|
|
@@ -9,59 +9,83 @@ const Template = (args) => <Dashboard {...args} />;
|
|
|
9
9
|
export const DashboardDeafult = Template.bind({});
|
|
10
10
|
DashboardDeafult.args = {
|
|
11
11
|
user: {
|
|
12
|
-
id_user:
|
|
13
|
-
name: "
|
|
14
|
-
last_name: "",
|
|
15
|
-
email: "
|
|
16
|
-
position: "",
|
|
17
|
-
telephone: "",
|
|
18
|
-
country: "",
|
|
19
|
-
id_company:
|
|
20
|
-
id_cognito: "
|
|
12
|
+
id_user: 59,
|
|
13
|
+
name: "Cadena",
|
|
14
|
+
last_name: "Comercial",
|
|
15
|
+
email: "cadena.ismael@allfreemail.net",
|
|
16
|
+
position: "Admin",
|
|
17
|
+
telephone: "+523111366336",
|
|
18
|
+
country: "México",
|
|
19
|
+
id_company: 817,
|
|
20
|
+
id_cognito: "5884ae34-59d6-4454-b98e-821518bcc3a7",
|
|
21
21
|
birth_Date: null,
|
|
22
22
|
about_me: "",
|
|
23
23
|
zip_code: "",
|
|
24
24
|
address: "",
|
|
25
25
|
job: "",
|
|
26
26
|
id_stripe: "",
|
|
27
|
-
id_role:
|
|
27
|
+
id_role: 0,
|
|
28
28
|
active: 1,
|
|
29
|
-
is_retailer:
|
|
30
|
-
email_notify:
|
|
29
|
+
is_retailer: 1,
|
|
30
|
+
email_notify: 0,
|
|
31
31
|
is_user_tech: null,
|
|
32
32
|
membership: {
|
|
33
|
-
id:
|
|
34
|
-
start_date: "
|
|
35
|
-
end_date: "
|
|
36
|
-
planID:
|
|
37
|
-
plan: "
|
|
38
|
-
name: "Plan
|
|
39
|
-
user_limit: "
|
|
40
|
-
products_limit: "
|
|
33
|
+
id: 47,
|
|
34
|
+
start_date: "2022-05-25T14:31:12.000Z",
|
|
35
|
+
end_date: "2023-05-25T14:31:12.000Z",
|
|
36
|
+
planID: 5,
|
|
37
|
+
plan: "prod_Ktl6B5Ou2gqTB2",
|
|
38
|
+
name: "Plan Pro",
|
|
39
|
+
user_limit: "5",
|
|
40
|
+
products_limit: "500",
|
|
41
41
|
type: "PyMES",
|
|
42
42
|
},
|
|
43
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
43
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-59/59.png?1681406304781",
|
|
44
44
|
},
|
|
45
45
|
company: {
|
|
46
|
-
id_company:
|
|
47
|
-
trade_name: "
|
|
48
|
-
company_name: "
|
|
49
|
-
rfc:
|
|
50
|
-
adress:
|
|
46
|
+
id_company: 817,
|
|
47
|
+
trade_name: "Retailer acc",
|
|
48
|
+
company_name: "Retailer acc",
|
|
49
|
+
rfc: "ASER12345",
|
|
50
|
+
adress: "Av. Insurgentes",
|
|
51
51
|
about_company: null,
|
|
52
52
|
telephone: null,
|
|
53
53
|
web_site: null,
|
|
54
54
|
zip_code: null,
|
|
55
55
|
email: null,
|
|
56
56
|
social_link: null,
|
|
57
|
-
is_retailer:
|
|
57
|
+
is_retailer: 1,
|
|
58
|
+
financedRetailers: [
|
|
59
|
+
{
|
|
60
|
+
id: 68,
|
|
61
|
+
name: "The Home Depot Merchants",
|
|
62
|
+
country: "México",
|
|
63
|
+
id_region: 1,
|
|
64
|
+
active: 1,
|
|
65
|
+
},
|
|
66
|
+
],
|
|
58
67
|
retailers: [
|
|
59
68
|
{
|
|
60
|
-
id:
|
|
61
|
-
name:
|
|
62
|
-
country:
|
|
69
|
+
id: 59,
|
|
70
|
+
name: "The Home Depot Platinum",
|
|
71
|
+
country: "México",
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
id: 60,
|
|
75
|
+
name: "The Home Depot Resizing",
|
|
76
|
+
country: "México",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
id: 61,
|
|
80
|
+
name: "Home Depot TAB",
|
|
81
|
+
country: "México",
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
id: 68,
|
|
85
|
+
name: "The Home Depot Merchants",
|
|
86
|
+
country: "México",
|
|
63
87
|
},
|
|
64
88
|
],
|
|
65
89
|
},
|
|
66
|
-
jwt: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.
|
|
90
|
+
jwt: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiIyNDlhMjJkMC00Y2VhLTRjNGEtYTNjYS0zM2ZjN2VmNjAwOTEiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwiY29nbml0bzp1c2VybmFtZSI6IjI0OWEyMmQwLTRjZWEtNGM0YS1hM2NhLTMzZmM3ZWY2MDA5MSIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiI0MzRhODBmZi0yZmNiLTQyMmItOGI5ZC0wNzU4OGQ3NGQyNmIiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY4MTQyNjgyOCwibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY4MTQzMDQyOCwiaWF0IjoxNjgxNDI2ODI4LCJlbWFpbCI6Im1lcmNoYW50c2lsdW1pbmFjaW9uQGFsbGZyZWVtYWlsLm5ldCJ9.IJNkSNUBmeOFQiDzyR2R0dDtwqg7U5GbXIwtW60cpxVBXj5Lr4zRdPuQnW3o02PxVR189IX2S3jcGgHhnvGMMKh4jRr-YM_eFpXYRQL_279tjG_rlZjwYFC333XMOcHViB8rEqNAti1PnuphCzqNiWH1z_b6aynxlbAeR23-P3VhSb0v6z_EWTdnuEw7ETXLFu2V6qaZTJCx6l7CZKECG2UExbaA0Be5_Ju56Q5cSNSf-lngetTvlb5DGeCge4nQ36y2qy9HnjAPDtP6c1v7KrT6zE74qh_L6u-xrdwYlaP5KBg4B3qJobtI9bgtKiqY1AZSTjWp4vr0T0_5M6GA7Q",
|
|
67
91
|
};
|