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.
Files changed (60) hide show
  1. package/.env.development +0 -2
  2. package/dist/assets/fonts/roboto/LICENSE.txt +202 -0
  3. package/dist/components/atoms/ButtonV2/styles.js +1 -1
  4. package/dist/components/atoms/Status/styles.js +1 -1
  5. package/dist/components/atoms/VerticalSideMenuMainPage/index.js +23 -18
  6. package/dist/components/atoms/VerticalSideMenuMainPage/styles.js +4 -4
  7. package/dist/components/molecules/CarouselImagesLogin/index.js +1 -1
  8. package/dist/components/molecules/HeaderTop/index.js +11 -68
  9. package/dist/components/organisms/Chat/Chat.stories.js +1 -21
  10. package/dist/components/organisms/Chat/ContainerItems/index.js +3 -19
  11. package/dist/components/organisms/Chat/ContainerItems/styles.js +1 -1
  12. package/dist/components/organisms/Chat/ContentChat/index.js +191 -343
  13. package/dist/components/organisms/Chat/Footer/index.js +39 -48
  14. package/dist/components/organisms/Chat/index.js +3 -48
  15. package/dist/components/organisms/DashboardMetric/dashboardMetricUtils.js +0 -27
  16. package/dist/components/organisms/FullProductNameHeader/index.js +2 -2
  17. package/dist/components/organisms/GlobalModal/styles.js +1 -1
  18. package/dist/components/organisms/OrderDetail/styles.js +1 -1
  19. package/dist/components/organisms/OrderDetail/utils/Table/styles.js +1 -1
  20. package/dist/components/pages/Dashboard/Dashboard.stories.js +50 -31
  21. package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +81 -198
  22. package/dist/components/pages/ProviderProductEdition/index.js +429 -725
  23. package/dist/components/pages/ProviderProductEdition/styles.js +1 -1
  24. package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +139 -86
  25. package/dist/components/pages/RetailerProductEdition/index.js +279 -268
  26. package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
  27. package/dist/components/pages/RetailerProductEdition/utils.js +2 -61
  28. package/dist/index.js +0 -13
  29. package/package.json +6 -7
  30. package/src/components/atoms/ButtonV2/styles.js +1 -1
  31. package/src/components/atoms/Status/styles.js +0 -4
  32. package/src/components/atoms/VerticalSideMenuMainPage/index.js +22 -18
  33. package/src/components/atoms/VerticalSideMenuMainPage/styles.js +4 -3
  34. package/src/components/molecules/CarouselImagesLogin/index.js +1 -1
  35. package/src/components/molecules/HeaderTop/index.js +6 -52
  36. package/src/components/organisms/Chat/Chat.stories.js +0 -21
  37. package/src/components/organisms/Chat/ContainerItems/index.js +2 -18
  38. package/src/components/organisms/Chat/ContainerItems/styles.js +2 -10
  39. package/src/components/organisms/Chat/ContentChat/index.js +6 -81
  40. package/src/components/organisms/Chat/Footer/index.js +0 -11
  41. package/src/components/organisms/Chat/index.js +3 -47
  42. package/src/components/organisms/DashboardMetric/dashboardMetricUtils.js +1 -18
  43. package/src/components/organisms/FullProductNameHeader/index.js +1 -1
  44. package/src/components/organisms/GlobalModal/styles.js +0 -10
  45. package/src/components/organisms/OrderDetail/index.js +0 -1
  46. package/src/components/organisms/OrderDetail/styles.js +1 -1
  47. package/src/components/organisms/OrderDetail/utils/Table/styles.js +1 -0
  48. package/src/components/pages/Dashboard/Dashboard.stories.js +55 -31
  49. package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +88 -214
  50. package/src/components/pages/ProviderProductEdition/index.js +160 -323
  51. package/src/components/pages/ProviderProductEdition/styles.js +1 -5
  52. package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +146 -89
  53. package/src/components/pages/RetailerProductEdition/index.js +138 -112
  54. package/src/components/pages/RetailerProductEdition/styles.js +0 -4
  55. package/src/components/pages/RetailerProductEdition/utils.js +0 -37
  56. package/src/index.js +0 -1
  57. package/src/components/organisms/TableResizable/TableResizable.stories.js +0 -17
  58. package/src/components/organisms/TableResizable/index.js +0 -119
  59. package/src/components/organisms/TableResizable/styles.js +0 -133
  60. 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 #modal-message-box {\n width: 400px;\n height: 100px;\n }\n .container {\n width: 100%;\n height: 100%;\n .dropzone {\n height: 100%;\n width: 100%;\n }\n }\n"])), function (_ref) {
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": false,
32
- Imágenes: false
31
+ "Ficha técnica": true,
32
+ Imágenes: true
33
33
  },
34
- token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI5YTIxMzEyOC02NDgyLTRjM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SV871nS8MeXGf5VZG5rQ3Smfl8ANqypLUEQQ6gSOr30Ztt1lZaHRmhF8WKo_GWwY3jNScmX_o9QGOSvKVl8hTqz4gA9xbiNJ3zpoh_5PzY-N4Sl8pE3gt_9Zw_o5ItLNHpnXuav_0NENvhXDu7p7VTLEpG8DTA",
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
- category: "Salud y Belleza|Cuidado del Cabello|Shampoos y Acondicionadores",
57
- company_name: "GRUPO BRAHMA",
58
- country: "México",
59
- id_category: "697",
60
- id_datasheet_especialist: 54,
61
- id_datasheet_facilitator: 52,
62
- id_description_especialist: 54,
63
- id_description_facilitator: 52,
64
- id_images_especialist: 55,
65
- id_images_facilitator: 53,
66
- id_order: 15142,
67
- id_article: 39270,
68
- id_auditor: 37,
69
- name: "Acondicionador Garnier Fructis 650 ml",
70
- timestamp: "2023-03-27T18:37:48.000Z",
71
- upc: "750955287656712"
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
- image: "https://content-management-images.s3.amazonaws.com/retailers/12.png",
77
- services: ["CA", "CA", "AC", "NA", "NA", "NA", "NA", "NA", "NA"],
78
- percentage: 100
111
+ country: "México",
112
+ id_region: 1,
113
+ active: 1
79
114
  }, {
80
- id: 29,
81
- name: "Farmacias del Ahorro",
82
- image: "https://content-management-images.s3.amazonaws.com/retailers/29.png",
83
- services: ["NA", "NA", "NA", "CA", "CA", "CA", "NA", "NA", "NA"],
84
- percentage: 100
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: 63,
87
- name: "DAX",
88
- image: "https://content-management-images.s3.amazonaws.com/retailers/63.png",
89
- services: ["NA", "NA", "NA", "NA", "NA", "NA", "AC", "AC", "CA"],
90
- percentage: 83
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
- statusByRetailer: {
93
- 12: {
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: 37,
115
- name: "José",
116
- last_name: "Castañeda",
117
- email: "ismael97lopez@gmail.com",
118
- position: "Auditor",
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: 2,
122
- id_cognito: "9a213128-6482-4c16-a4b6-6e64f225b1bd",
123
- birth_Date: null,
124
- about_me: "",
125
- zip_code: "",
126
- address: "",
127
- job: "",
128
- id_stripe: "",
129
- id_role: 6,
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: null,
186
+ is_user_tech: "ADMIN-AS",
134
187
  membership: {
135
- id: 2,
136
- start_date: "2021-11-05T02:35:12.000Z",
137
- end_date: "2022-11-05T02:34:49.000Z",
138
- planID: 1,
139
- plan: "prod_KtkvuFFLpOdP6e",
140
- name: "Plan Free",
141
- user_limit: "1",
142
- products_limit: "3",
143
- type: "PyMES"
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-37/37.png?1683875228327"
198
+ src: "https://content-management-profile-prod.s3.amazonaws.com/id-460/460.png?1684511182259"
146
199
  }
147
200
  };