contentoh-components-library 21.3.54 → 21.3.55
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 +0 -2
- package/dist/assets/fonts/roboto/LICENSE.txt +202 -0
- 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/molecules/CarouselImagesLogin/index.js +1 -1
- package/dist/components/molecules/HeaderTop/index.js +11 -68
- package/dist/components/organisms/Chat/Chat.stories.js +1 -21
- package/dist/components/organisms/Chat/ContainerItems/index.js +3 -19
- package/dist/components/organisms/Chat/ContainerItems/styles.js +1 -1
- package/dist/components/organisms/Chat/ContentChat/index.js +191 -343
- package/dist/components/organisms/Chat/Footer/index.js +39 -48
- package/dist/components/organisms/Chat/index.js +3 -48
- package/dist/components/organisms/DashboardMetric/dashboardMetricUtils.js +0 -27
- package/dist/components/organisms/FullProductNameHeader/index.js +2 -2
- 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 +81 -198
- package/dist/components/pages/ProviderProductEdition/index.js +429 -725
- package/dist/components/pages/ProviderProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +139 -86
- package/dist/components/pages/RetailerProductEdition/index.js +279 -268
- package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/utils.js +2 -61
- 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/CarouselImagesLogin/index.js +1 -1
- package/src/components/molecules/HeaderTop/index.js +6 -52
- package/src/components/organisms/Chat/Chat.stories.js +0 -21
- package/src/components/organisms/Chat/ContainerItems/index.js +2 -18
- package/src/components/organisms/Chat/ContainerItems/styles.js +2 -10
- package/src/components/organisms/Chat/ContentChat/index.js +6 -81
- package/src/components/organisms/Chat/Footer/index.js +0 -11
- package/src/components/organisms/Chat/index.js +3 -47
- package/src/components/organisms/DashboardMetric/dashboardMetricUtils.js +1 -18
- package/src/components/organisms/FullProductNameHeader/index.js +1 -1
- 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 +88 -214
- package/src/components/pages/ProviderProductEdition/index.js +160 -323
- package/src/components/pages/ProviderProductEdition/styles.js +1 -5
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +146 -89
- package/src/components/pages/RetailerProductEdition/index.js +138 -112
- package/src/components/pages/RetailerProductEdition/styles.js +0 -4
- package/src/components/pages/RetailerProductEdition/utils.js +0 -37
- package/src/index.js +0 -1
- 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
|
@@ -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 display: flex;\n flex-direction: column;\n height: 100%;\n flex: 1;\n overflow: auto;\n\n .data-container {\n display: flex;\n flex: 0%;\n height: calc(100% - ", "px);\n .image-data-panel {\n width: 340px;\n\n & + * {\n margin-left: 10px;\n }\n }\n\n .product-information {\n width: 100%;\n display: flex;\n flex-direction: column;\n\n .services-information-container {\n height: 100%;\n overflow: auto;\n }\n\n .image-services {\n aside {\n display: grid;\n grid-template-columns: repeat(auto-fill, 179px);\n column-gap: 15px;\n row-gap: 15px;\n padding: 20px;\n }\n }\n\n .commentary-box {\n display: flex;\n justify-content: space-between;\n align-items: flex-end;\n padding: 10px;\n padding-left: 0;\n\n .commentary {\n display: flex;\n align-items: flex-end;\n\n .input-container {\n width: 500px;\n\n .quill {\n height: 100px;\n }\n\n & + * {\n margin-left: 5px;\n }\n }\n\n .buttons-box {\n display: flex;\n width: 210px;\n flex-wrap: wrap;\n\n .general-transparent-button {\n & + * {\n margin-top: 5px;\n }\n }\n\n .general-transparent-button,\n .general-green-button,\n .general-button-disabled {\n width: fit-content;\n min-width: 201px;\n height: 40px;\n }\n }\n }\n }\n\n .feedback-box {\n display: flex;\n }\n\n .required-inputs-message {\n font-family: ", ";\n font-size: 13px;\n color: ", ";\n padding: 10px;\n display: flex;\n align-items: center;\n\n p + * {\n margin-top: 10px;\n }\n\n button {\n min-width: fit-content;\n }\n }\n }\n }\n
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: column;\n height: 100%;\n flex: 1;\n overflow: auto;\n\n .data-container {\n display: flex;\n flex: 0%;\n height: calc(100% - ", "px);\n .image-data-panel {\n width: 340px;\n\n & + * {\n margin-left: 10px;\n }\n }\n\n .product-information {\n width: 100%;\n display: flex;\n flex-direction: column;\n\n .services-information-container {\n height: 100%;\n overflow: auto;\n }\n\n .image-services {\n aside {\n display: grid;\n grid-template-columns: repeat(auto-fill, 179px);\n column-gap: 15px;\n row-gap: 15px;\n padding: 20px;\n }\n }\n\n .commentary-box {\n display: flex;\n justify-content: space-between;\n align-items: flex-end;\n padding: 10px;\n padding-left: 0;\n\n .commentary {\n display: flex;\n align-items: flex-end;\n\n .input-container {\n width: 500px;\n\n .quill {\n height: 100px;\n }\n\n & + * {\n margin-left: 5px;\n }\n }\n\n .buttons-box {\n display: flex;\n width: 210px;\n flex-wrap: wrap;\n\n .general-transparent-button {\n & + * {\n margin-top: 5px;\n }\n }\n\n .general-transparent-button,\n .general-green-button,\n .general-button-disabled {\n width: fit-content;\n min-width: 201px;\n height: 40px;\n }\n }\n }\n }\n\n .feedback-box {\n display: flex;\n }\n\n .required-inputs-message {\n font-family: ", ";\n font-size: 13px;\n color: ", ";\n padding: 10px;\n display: flex;\n align-items: center;\n\n p + * {\n margin-top: 10px;\n }\n\n button {\n min-width: fit-content;\n }\n }\n }\n }\n .container {\n width: 100%;\n height: 100%;\n .dropzone {\n height: 100%;\n width: 100%;\n }\n }\n"])), function (_ref) {
|
|
19
19
|
var headerTop = _ref.headerTop;
|
|
20
20
|
return headerTop;
|
|
21
21
|
}, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s4);
|
|
@@ -28,120 +28,173 @@ 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.eyJzdWIiOiJhNmM0ZDNkNi0yNGE0LTQxZDQtYWQwZi1kMD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
|
35
35
|
productSelected: {
|
|
36
|
-
orderId: 15142,
|
|
37
|
-
status: "CA",
|
|
38
|
-
datasheet_status: "CA",
|
|
39
|
-
prio: "none",
|
|
40
|
-
version: 3,
|
|
41
|
-
description_status: "AC",
|
|
42
|
-
images_status: "CA",
|
|
43
|
-
brand: "Garnier",
|
|
44
|
-
retailerOrder: 0,
|
|
45
|
-
missing: {
|
|
46
|
-
datasheet: null,
|
|
47
|
-
descriptions: null,
|
|
48
|
-
images: null
|
|
49
|
-
},
|
|
50
36
|
services: {
|
|
51
37
|
datasheets: 1,
|
|
52
38
|
descriptions: 1,
|
|
53
39
|
images: 1
|
|
54
40
|
},
|
|
41
|
+
orderId: 4106,
|
|
42
|
+
status: "PA",
|
|
43
|
+
datasheet_status: "PA",
|
|
44
|
+
prio: "none",
|
|
45
|
+
version: 7,
|
|
46
|
+
description_status: "PA",
|
|
47
|
+
images_status: "CA",
|
|
48
|
+
statusByRetailer: {
|
|
49
|
+
5: {
|
|
50
|
+
datasheet: "PA",
|
|
51
|
+
description: "PA",
|
|
52
|
+
images: "CA"
|
|
53
|
+
},
|
|
54
|
+
16: {
|
|
55
|
+
datasheet: "PA",
|
|
56
|
+
description: "PA",
|
|
57
|
+
images: "AC"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
55
60
|
article: {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
61
|
+
id_article: 18376,
|
|
62
|
+
id_category: "692",
|
|
63
|
+
name: "Jabón para Manos Palmolive Aquarium Series Líquido Rellena-Pack 800 ml",
|
|
64
|
+
upc: "7509546657097",
|
|
65
|
+
timestamp: "2021-10-09T16:33:17.000Z",
|
|
66
|
+
id_user: 203,
|
|
67
|
+
status: "RECEPTION",
|
|
68
|
+
active: 1,
|
|
69
|
+
company_id: 226,
|
|
70
|
+
verified_upc: 750954665709,
|
|
71
|
+
Descripcion: null,
|
|
72
|
+
Proveedor: null,
|
|
73
|
+
id_proveedor: 0,
|
|
74
|
+
company_name: "COLGATE PALMOLIVE S.A. DE C.V.",
|
|
75
|
+
country: "null",
|
|
76
|
+
id_order: 4106,
|
|
77
|
+
id_datasheet_especialist: null,
|
|
78
|
+
id_datasheet_facilitator: null,
|
|
79
|
+
id_description_especialist: null,
|
|
80
|
+
id_description_facilitator: null,
|
|
81
|
+
id_images_especialist: 1251,
|
|
82
|
+
id_images_facilitator: null,
|
|
83
|
+
id_auditor: null,
|
|
84
|
+
id_recepcionist: null,
|
|
85
|
+
category: "Salud y Belleza|Cuidado Corporal|Jabones de Tocador",
|
|
86
|
+
missingAttributes: null,
|
|
87
|
+
missingDescriptions: null,
|
|
88
|
+
missingImages: null
|
|
72
89
|
},
|
|
73
90
|
retailers: [{
|
|
91
|
+
id: 4,
|
|
92
|
+
name: "Walmart Super y Superama",
|
|
93
|
+
country: "México",
|
|
94
|
+
id_region: 1,
|
|
95
|
+
active: 1
|
|
96
|
+
}, {
|
|
97
|
+
id: 5,
|
|
98
|
+
name: "Chedraui",
|
|
99
|
+
country: "México",
|
|
100
|
+
id_region: 1,
|
|
101
|
+
active: 1
|
|
102
|
+
}, {
|
|
103
|
+
id: 6,
|
|
104
|
+
name: "HEB",
|
|
105
|
+
country: "México",
|
|
106
|
+
id_region: 1,
|
|
107
|
+
active: 1
|
|
108
|
+
}, {
|
|
74
109
|
id: 12,
|
|
75
110
|
name: "La Comer",
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
111
|
+
country: "México",
|
|
112
|
+
id_region: 1,
|
|
113
|
+
active: 1
|
|
79
114
|
}, {
|
|
80
|
-
id:
|
|
81
|
-
name: "
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
115
|
+
id: 13,
|
|
116
|
+
name: "Soriana",
|
|
117
|
+
country: "México",
|
|
118
|
+
id_region: 1,
|
|
119
|
+
active: 1
|
|
120
|
+
}, {
|
|
121
|
+
id: 16,
|
|
122
|
+
name: "Rappi",
|
|
123
|
+
country: "México",
|
|
124
|
+
id_region: 1,
|
|
125
|
+
active: 1
|
|
126
|
+
}, {
|
|
127
|
+
id: 17,
|
|
128
|
+
name: "Genérico",
|
|
129
|
+
country: "México",
|
|
130
|
+
id_region: 1,
|
|
131
|
+
active: 1
|
|
132
|
+
}, {
|
|
133
|
+
id: 20,
|
|
134
|
+
name: "Cornershop",
|
|
135
|
+
country: "México",
|
|
136
|
+
id_region: 1,
|
|
137
|
+
active: 1
|
|
138
|
+
}, {
|
|
139
|
+
id: 24,
|
|
140
|
+
name: "Alsuper",
|
|
141
|
+
country: "México",
|
|
142
|
+
id_region: 1,
|
|
143
|
+
active: 1
|
|
85
144
|
}, {
|
|
86
|
-
id:
|
|
87
|
-
name: "
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
145
|
+
id: 27,
|
|
146
|
+
name: "IMPIRA México",
|
|
147
|
+
country: "México",
|
|
148
|
+
id_region: 1,
|
|
149
|
+
active: 1
|
|
150
|
+
}, {
|
|
151
|
+
id: 38,
|
|
152
|
+
name: "Del Sol",
|
|
153
|
+
country: "México",
|
|
154
|
+
id_region: 1,
|
|
155
|
+
active: 1
|
|
91
156
|
}],
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
datasheet: "CA",
|
|
95
|
-
description: "CA"
|
|
96
|
-
},
|
|
97
|
-
29: {
|
|
98
|
-
datasheet: "CA",
|
|
99
|
-
description: "CA"
|
|
100
|
-
}
|
|
101
|
-
}
|
|
157
|
+
country: "null",
|
|
158
|
+
upc: "7509546657097"
|
|
102
159
|
},
|
|
103
160
|
location: {
|
|
104
161
|
product: {
|
|
105
162
|
articleId: 354,
|
|
106
163
|
versionId: 3
|
|
107
|
-
},
|
|
108
|
-
state: {
|
|
109
|
-
withChat: true,
|
|
110
|
-
chatType: "product_status"
|
|
111
164
|
}
|
|
112
165
|
},
|
|
113
166
|
user: {
|
|
114
|
-
id_user:
|
|
115
|
-
name: "
|
|
116
|
-
last_name: "
|
|
117
|
-
email: "
|
|
118
|
-
position: "
|
|
119
|
-
telephone:
|
|
167
|
+
id_user: 1251,
|
|
168
|
+
name: "Ismael",
|
|
169
|
+
last_name: "López",
|
|
170
|
+
email: "ilopez@contentoh.com",
|
|
171
|
+
position: "Full Stack Developer",
|
|
172
|
+
telephone: null,
|
|
120
173
|
country: "México",
|
|
121
|
-
id_company:
|
|
122
|
-
id_cognito: "
|
|
123
|
-
birth_Date:
|
|
124
|
-
about_me:
|
|
125
|
-
zip_code:
|
|
126
|
-
address:
|
|
127
|
-
job:
|
|
128
|
-
id_stripe:
|
|
129
|
-
id_role:
|
|
174
|
+
id_company: 254,
|
|
175
|
+
id_cognito: "9d0cc5c8-a89e-4bdd-9e2d-358a01cc9a62",
|
|
176
|
+
birth_Date: "1997-08-15T00:00:00.000Z",
|
|
177
|
+
about_me: null,
|
|
178
|
+
zip_code: null,
|
|
179
|
+
address: null,
|
|
180
|
+
job: null,
|
|
181
|
+
id_stripe: null,
|
|
182
|
+
id_role: 7,
|
|
130
183
|
active: 1,
|
|
131
184
|
is_retailer: 0,
|
|
132
185
|
email_notify: 1,
|
|
133
|
-
is_user_tech:
|
|
186
|
+
is_user_tech: "ADMIN-AS",
|
|
134
187
|
membership: {
|
|
135
|
-
id:
|
|
136
|
-
start_date: "
|
|
137
|
-
end_date: "
|
|
138
|
-
planID:
|
|
139
|
-
plan: "
|
|
140
|
-
name: "Plan
|
|
141
|
-
user_limit: "
|
|
142
|
-
products_limit: "
|
|
143
|
-
type: "
|
|
188
|
+
id: 750,
|
|
189
|
+
start_date: "2022-01-07T21:32:54.000Z",
|
|
190
|
+
end_date: "2023-01-07T21:32:54.000Z",
|
|
191
|
+
planID: 6,
|
|
192
|
+
plan: "prod_KvGd6YSTJyR3AP",
|
|
193
|
+
name: "Plan Small",
|
|
194
|
+
user_limit: "10",
|
|
195
|
+
products_limit: "1000",
|
|
196
|
+
type: "Enterprise"
|
|
144
197
|
},
|
|
145
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
198
|
+
src: "https://content-management-profile-prod.s3.amazonaws.com/id-460/460.png?1684511182259"
|
|
146
199
|
}
|
|
147
200
|
};
|