contentoh-components-library 21.2.19 → 21.2.22

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 (30) hide show
  1. package/dist/components/atoms/InputFormatter/index.js +3 -3
  2. package/dist/components/atoms/ListCommercialRetailers/ListCommercialRetailers.stories.js +36 -0
  3. package/dist/components/atoms/ListCommercialRetailers/index.js +64 -0
  4. package/dist/components/atoms/ListCommercialRetailers/styles.js +20 -0
  5. package/dist/components/atoms/MenuCommercialRetailers/MenuCommercialRetailers.stories.js +37 -0
  6. package/dist/components/atoms/MenuCommercialRetailers/index.js +25 -0
  7. package/dist/components/atoms/MenuCommercialRetailers/styles.js +20 -0
  8. package/dist/components/atoms/MenuProductImage/MenuProductImage.stories.js +28 -0
  9. package/dist/components/atoms/MenuProductImage/index.js +88 -0
  10. package/dist/components/atoms/MenuProductImage/styles.js +20 -0
  11. package/dist/components/atoms/VerticalSideMenuMainPage/index.js +23 -33
  12. package/dist/components/atoms/VerticalSideMenuMainPage/styles.js +14 -14
  13. package/dist/components/molecules/ApproveRejetPanel/ApproveRejetPanel.stories.js +25 -0
  14. package/dist/components/molecules/ApproveRejetPanel/index.js +49 -0
  15. package/dist/components/molecules/ApproveRejetPanel/styles.js +18 -0
  16. package/dist/components/molecules/SignInLoginCreationApp/SignInLogin.stories.js +28 -0
  17. package/dist/components/molecules/SignInLoginCreationApp/index.js +270 -0
  18. package/dist/components/molecules/SignInLoginCreationApp/styles.js +20 -0
  19. package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +173 -108
  20. package/dist/components/pages/ProviderProductEdition/index.js +54 -41
  21. package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +69 -193
  22. package/dist/components/pages/RetailerProductEdition/index.js +98 -45
  23. package/package.json +1 -1
  24. package/src/components/atoms/InputFormatter/index.js +8 -3
  25. package/src/components/atoms/VerticalSideMenuMainPage/index.js +17 -30
  26. package/src/components/atoms/VerticalSideMenuMainPage/styles.js +34 -28
  27. package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +183 -117
  28. package/src/components/pages/ProviderProductEdition/index.js +15 -7
  29. package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +69 -489
  30. package/src/components/pages/RetailerProductEdition/index.js +64 -24
@@ -16,537 +16,117 @@ RetailerProductEditionDefault.args = {
16
16
  Imágenes: false,
17
17
  },
18
18
  token:
19
- "eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJjN2U1YTZhNC0yYjNmLTRkNTQtYWY5OC05ZTA5YTRjYmMwMWUiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfbFN6UVo0WjdSIiwiY29nbml0bzp1c2VybmFtZSI6ImM3ZTVhNmE0LTJiM2YtNGQ1NC1hZjk4LTllMDlhNGNiYzAxZSIsImF1ZCI6IjUyZDlza2tkY2c4cWpwODhvb2sxdXNlNm1rIiwiZXZlbnRfaWQiOiIyYjcyOTIzYS04MWMzLTQ0NTYtODE1ZC1kMzI5ZWVkMDRmZmMiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY2MTg5ODYzNSwibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY2MTkwMjIzNSwiaWF0IjoxNjYxODk4NjM1LCJlbWFpbCI6Imtpa2lqZTE0NjdAbXRsY3ouY29tIn0.EcQE9cjvjfyl4JlNVh57wlvDAxem7glTCJwZNLHs-oZj1Q0M_Sg1h24ISsES1WD_OjNaYjub46xU3rNH-i3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xNjYyMDY1NTc1LCJlbWFpbCI6ImF6YXJhdGVAY29udGVudG9oLmNvbSJ9.QtYQg6gjDDrfliKi9k5JnrJHRPt8XhqUphryq7l19BnK1GSFMUBVKx_4CVnbrML8MiKH7AwWFu4TSY5-M8qTEYKTQsr_sYrR-ICe6rAM_LQihD4x1e9THU7FAuXMDdRPv2JnCCUFCjzURbkc1A11oIIYIWnNfCwr33JTwcGQnX1LwYSY7PqhNdIU1pU9aat7lALIV8mFN4npn8m8AvSromfeonD07jl6AqQEs4SuOSiDaMkRENlp--hOx2rY4gEhvX2k3Zl4nHsvJU3Zh3DLaWhD3I9QdX4AOMUjrQOkUXJ7lkSEqY4p2o7fQXXL-D2nL28qAfwE-WlkVGJn-2LpHQ",
20
20
  productSelected: {
21
21
  services: {
22
- datasheets: 0,
23
- descriptions: 0,
22
+ datasheets: 1,
23
+ descriptions: 1,
24
24
  images: 1,
25
25
  },
26
- orderId: 2612,
27
- status: "CA",
28
- datasheet_status: "NS",
26
+ orderId: 149,
27
+ status: "IE",
28
+ datasheet_status: "IE",
29
29
  prio: "none",
30
30
  version: 2,
31
- description_status: "NS",
31
+ description_status: "IE",
32
32
  images_status: "IE",
33
33
  article: {
34
- id_article: 79732,
35
- id_category: "42",
36
- name: "Bolos Naviesferas 6p 96g Bolsa RIC",
37
- upc: "7500810012130",
38
- timestamp: "2022-08-22T19:34:16.000Z",
39
- id_user: 467,
34
+ id_article: 76225,
35
+ id_category: "2028",
36
+ name: "Para documentar",
37
+ upc: "222222222",
38
+ timestamp: "2022-08-03T06:00:23.000Z",
39
+ id_user: 59,
40
40
  status: "NULL",
41
41
  active: 1,
42
- company_id: 229,
43
- SKU: null,
44
- Descripcion: null,
45
- Proveedor: null,
46
- id_proveedor: 0,
47
- company_name: "BIMBO SA DE CV",
48
- country: null,
49
- id_order: 2612,
50
- id_datasheet_especialist: null,
51
- id_datasheet_facilitator: null,
52
- id_description_especialist: null,
53
- id_description_facilitator: null,
54
- id_images_especialist: 427,
55
- id_images_facilitator: 160,
56
- id_auditor: 9,
42
+ company_id: 1,
43
+ company_name: "Cadena Ismael",
44
+ country: "México",
45
+ id_order: 149,
46
+ id_datasheet_especialist: 54,
47
+ id_datasheet_facilitator: 52,
48
+ id_description_especialist: 54,
49
+ id_description_facilitator: 52,
50
+ id_images_especialist: 55,
51
+ id_images_facilitator: 53,
52
+ id_auditor: 37,
57
53
  id_recepcionist: null,
58
- category: "Abarrotes|Botanas, Golosinas y Chocolates|Confitería",
59
- missingAttributes: 208,
60
- missingDescriptions: 9,
61
- missingImages: 8,
54
+ category: "Decoración|Accesorios Decorativos|Accesorios Decorativos",
55
+ missingAttributes: 0,
56
+ missingDescriptions: 0,
57
+ missingImages: 0,
62
58
  },
63
59
  retailers: [
64
60
  {
65
- id: 4,
66
- name: "Walmart Super y Superama",
67
- country: "México",
68
- id_region: 1,
69
- active: 1,
70
- percentage: 37.5,
61
+ id: 58,
62
+ name: "The Home Depot Golden",
63
+ percentage: 66.66666666666667,
71
64
  image:
72
- "https://content-management-images.s3.amazonaws.com/retailers/4.png",
73
- services: [
74
- "IE",
75
- "NA",
76
- "NA",
77
- "NA",
78
- "NA",
79
- "NA",
80
- "NA",
81
- "NA",
82
- "NA",
83
- "NA",
84
- "NA",
85
- "NA",
86
- "NA",
87
- "NA",
88
- "NA",
89
- "NA",
90
- ],
65
+ "https://content-management-images.s3.amazonaws.com/retailers/58.png",
66
+ services: ["CA", "CA", "AS", "NA", "NA", "NA", "NA", "NA"],
91
67
  },
92
68
  {
93
- id: 5,
94
- name: "Chedraui",
95
- country: "México",
96
- id_region: 1,
97
- active: 1,
98
- percentage: 35.29411764705882,
69
+ id: 59,
70
+ name: "The Home Depot Platinum",
71
+ percentage: 66.66666666666667,
99
72
  image:
100
- "https://content-management-images.s3.amazonaws.com/retailers/5.png",
101
- services: [
102
- "NA",
103
- "CA",
104
- "NA",
105
- "NA",
106
- "NA",
107
- "NA",
108
- "NA",
109
- "NA",
110
- "NA",
111
- "NA",
112
- "NA",
113
- "NA",
114
- "NA",
115
- "NA",
116
- "NA",
117
- "NA",
118
- ],
73
+ "https://content-management-images.s3.amazonaws.com/retailers/59.png",
74
+ services: ["NA", "NA", "NA", "AS", "NA", "NA", "NA", "NA"],
119
75
  },
120
76
  {
121
- id: 6,
122
- name: "HEB",
123
- country: "México",
124
- id_region: 1,
125
- active: 1,
126
- percentage: 38.46153846153846,
77
+ id: 60,
78
+ name: "The Home Depot Resizing",
79
+ percentage: null,
127
80
  image:
128
- "https://content-management-images.s3.amazonaws.com/retailers/6.png",
129
- services: [
130
- "NA",
131
- "NA",
132
- "CA",
133
- "NA",
134
- "NA",
135
- "NA",
136
- "NA",
137
- "NA",
138
- "NA",
139
- "NA",
140
- "NA",
141
- "NA",
142
- "NA",
143
- "NA",
144
- "NA",
145
- "NA",
146
- ],
81
+ "https://content-management-images.s3.amazonaws.com/retailers/60.png",
82
+ services: ["NA", "NA", "NA", "NA", "AS", "NA", "NA", "NA"],
147
83
  },
148
84
  {
149
- id: 9,
150
- name: "Amazon",
151
- country: "México",
152
- id_region: 1,
153
- active: 1,
154
- percentage: 34.72222222222222,
85
+ id: 61,
86
+ name: "Home Depot TAB",
87
+ percentage: null,
155
88
  image:
156
- "https://content-management-images.s3.amazonaws.com/retailers/9.png",
157
- services: [
158
- "NA",
159
- "NA",
160
- "NA",
161
- "CA",
162
- "NA",
163
- "NA",
164
- "NA",
165
- "NA",
166
- "NA",
167
- "NA",
168
- "NA",
169
- "NA",
170
- "NA",
171
- "NA",
172
- "NA",
173
- "NA",
174
- ],
175
- },
176
- {
177
- id: 13,
178
- name: "Soriana",
179
- country: "México",
180
- id_region: 1,
181
- active: 1,
182
- percentage: 40,
183
- image:
184
- "https://content-management-images.s3.amazonaws.com/retailers/13.png",
185
- services: [
186
- "NA",
187
- "NA",
188
- "NA",
189
- "NA",
190
- "CA",
191
- "NA",
192
- "NA",
193
- "NA",
194
- "NA",
195
- "NA",
196
- "NA",
197
- "NA",
198
- "NA",
199
- "NA",
200
- "NA",
201
- "NA",
202
- ],
203
- },
204
- {
205
- id: 16,
206
- name: "Rappi",
207
- country: "México",
208
- id_region: 1,
209
- active: 1,
210
- percentage: 36.666666666666664,
211
- image:
212
- "https://content-management-images.s3.amazonaws.com/retailers/16.png",
213
- services: [
214
- "NA",
215
- "NA",
216
- "NA",
217
- "NA",
218
- "NA",
219
- "CA",
220
- "NA",
221
- "NA",
222
- "NA",
223
- "NA",
224
- "NA",
225
- "NA",
226
- "NA",
227
- "NA",
228
- "NA",
229
- "NA",
230
- ],
231
- },
232
- {
233
- id: 17,
234
- name: "Genérico",
235
- country: "México",
236
- id_region: 1,
237
- active: 1,
238
- percentage: 34.78260869565217,
239
- image:
240
- "https://content-management-images.s3.amazonaws.com/retailers/17.png",
241
- services: [
242
- "NA",
243
- "NA",
244
- "NA",
245
- "NA",
246
- "NA",
247
- "NA",
248
- "CA",
249
- "NA",
250
- "NA",
251
- "NA",
252
- "NA",
253
- "NA",
254
- "NA",
255
- "NA",
256
- "NA",
257
- "NA",
258
- ],
259
- },
260
- {
261
- id: 24,
262
- name: "Alsuper",
263
- country: "México",
264
- id_region: 1,
265
- active: 1,
266
- percentage: 37.5,
267
- image:
268
- "https://content-management-images.s3.amazonaws.com/retailers/24.png",
269
- services: [
270
- "NA",
271
- "NA",
272
- "NA",
273
- "NA",
274
- "NA",
275
- "NA",
276
- "NA",
277
- "CA",
278
- "NA",
279
- "NA",
280
- "NA",
281
- "NA",
282
- "NA",
283
- "NA",
284
- "NA",
285
- "NA",
286
- ],
287
- },
288
- {
289
- id: 25,
290
- name: "Merqueo(México)",
291
- country: "México",
292
- id_region: 1,
293
- active: 1,
294
- percentage: 100,
295
- image:
296
- "https://content-management-images.s3.amazonaws.com/retailers/25.png",
297
- services: [
298
- "NA",
299
- "NA",
300
- "NA",
301
- "NA",
302
- "NA",
303
- "NA",
304
- "NA",
305
- "NA",
306
- "CA",
307
- "NA",
308
- "NA",
309
- "NA",
310
- "NA",
311
- "NA",
312
- "NA",
313
- "NA",
314
- ],
315
- },
316
- {
317
- id: 28,
318
- name: "Farmacias Benavides",
319
- country: "México",
320
- id_region: 1,
321
- active: 1,
322
- percentage: 100,
323
- image:
324
- "https://content-management-images.s3.amazonaws.com/retailers/28.png",
325
- services: [
326
- "NA",
327
- "NA",
328
- "NA",
329
- "NA",
330
- "NA",
331
- "NA",
332
- "NA",
333
- "NA",
334
- "NA",
335
- "CA",
336
- "NA",
337
- "NA",
338
- "NA",
339
- "NA",
340
- "NA",
341
- "NA",
342
- ],
343
- },
344
- {
345
- id: 39,
346
- name: "Justo",
347
- country: "México",
348
- id_region: 1,
349
- active: 1,
350
- percentage: 35.416666666666664,
351
- image:
352
- "https://content-management-images.s3.amazonaws.com/retailers/39.png",
353
- services: [
354
- "NA",
355
- "NA",
356
- "NA",
357
- "NA",
358
- "NA",
359
- "NA",
360
- "NA",
361
- "NA",
362
- "NA",
363
- "NA",
364
- "CA",
365
- "NA",
366
- "NA",
367
- "NA",
368
- "NA",
369
- "NA",
370
- ],
371
- },
372
- {
373
- id: 44,
374
- name: "Calimax",
375
- country: "México",
376
- id_region: 1,
377
- active: 1,
378
- percentage: 100,
379
- image:
380
- "https://content-management-images.s3.amazonaws.com/retailers/44.png",
381
- services: [
382
- "NA",
383
- "NA",
384
- "NA",
385
- "NA",
386
- "NA",
387
- "NA",
388
- "NA",
389
- "NA",
390
- "NA",
391
- "NA",
392
- "NA",
393
- "CA",
394
- "NA",
395
- "NA",
396
- "NA",
397
- "NA",
398
- ],
399
- },
400
- {
401
- id: 45,
402
- name: "Casa Ley",
403
- country: "México",
404
- id_region: 1,
405
- active: 1,
406
- percentage: 100,
407
- image:
408
- "https://content-management-images.s3.amazonaws.com/retailers/45.png",
409
- services: [
410
- "NA",
411
- "NA",
412
- "NA",
413
- "NA",
414
- "NA",
415
- "NA",
416
- "NA",
417
- "NA",
418
- "NA",
419
- "NA",
420
- "NA",
421
- "NA",
422
- "CA",
423
- "NA",
424
- "NA",
425
- "NA",
426
- ],
427
- },
428
- {
429
- id: 46,
430
- name: "S-Mart",
431
- country: "México",
432
- id_region: 1,
433
- active: 1,
434
- percentage: 100,
435
- image:
436
- "https://content-management-images.s3.amazonaws.com/retailers/46.png",
437
- services: [
438
- "NA",
439
- "NA",
440
- "NA",
441
- "NA",
442
- "NA",
443
- "NA",
444
- "NA",
445
- "NA",
446
- "NA",
447
- "NA",
448
- "NA",
449
- "NA",
450
- "NA",
451
- "CA",
452
- "NA",
453
- "NA",
454
- ],
455
- },
456
- {
457
- id: 56,
458
- name: "JOKR",
459
- country: "Mexico",
460
- id_region: 1,
461
- active: 1,
462
- percentage: 100,
463
- image:
464
- "https://content-management-images.s3.amazonaws.com/retailers/56.png",
465
- services: [
466
- "NA",
467
- "NA",
468
- "NA",
469
- "NA",
470
- "NA",
471
- "NA",
472
- "NA",
473
- "NA",
474
- "NA",
475
- "NA",
476
- "NA",
477
- "NA",
478
- "NA",
479
- "NA",
480
- "CA",
481
- "NA",
482
- ],
483
- },
484
- {
485
- id: 65,
486
- name: "Súper Aki",
487
- country: "México",
488
- id_region: 1,
489
- active: 1,
490
- percentage: 100,
491
- image:
492
- "https://content-management-images.s3.amazonaws.com/retailers/65.png",
493
- services: [
494
- "NA",
495
- "NA",
496
- "NA",
497
- "NA",
498
- "NA",
499
- "NA",
500
- "NA",
501
- "NA",
502
- "NA",
503
- "NA",
504
- "NA",
505
- "NA",
506
- "NA",
507
- "NA",
508
- "NA",
509
- "CA",
510
- ],
89
+ "https://content-management-images.s3.amazonaws.com/retailers/61.png",
90
+ services: ["NA", "NA", "NA", "NA", "NA", "CA", "CA", "AS"],
511
91
  },
512
92
  ],
513
- country: null,
514
- upc: "7500810012130",
93
+ country: "México",
94
+ upc: "222222222",
515
95
  },
516
96
  location: {
517
97
  product: { articleId: 109485, versionId: 3 },
518
98
  },
519
99
  user: {
520
- id_user: 427,
521
- name: "Especialista Edición",
522
- last_name: " ",
523
- email: "kikije1467@mtlcz.com",
524
- position: "Tester",
100
+ id_user: 52,
101
+ name: "FACILITADOR TXT PRUEBA",
102
+ last_name: "",
103
+ email: "azarate@contentoh.com",
104
+ position: null,
525
105
  telephone: null,
526
106
  country: null,
527
- id_company: 254,
528
- id_cognito: "c7e5a6a4-2b3f-4d54-af98-9e09a4cbc01e",
107
+ id_company: 2,
108
+ id_cognito: "b2ce5b2a-609c-4e79-9ea9-2f74cff43889",
529
109
  birth_Date: null,
530
110
  about_me: null,
531
111
  zip_code: null,
532
112
  address: null,
533
113
  job: null,
534
114
  id_stripe: null,
535
- id_role: 8,
115
+ id_role: 4,
536
116
  active: 1,
537
117
  is_retailer: 0,
538
- email_notify: null,
118
+ email_notify: 0,
539
119
  membership: {
540
- id: 750,
541
- start_date: "2022-01-07T21:32:54.000Z",
542
- end_date: "2023-01-07T21:32:54.000Z",
543
- planID: 6,
544
- plan: "prod_KvGd6YSTJyR3AP",
545
- name: "Plan Small",
546
- user_limit: "10",
547
- products_limit: "1000",
548
- type: "Enterprise",
120
+ id: 2,
121
+ start_date: "2021-11-05T02:35:12.000Z",
122
+ end_date: "2022-11-05T02:34:49.000Z",
123
+ planID: 1,
124
+ plan: "prod_KtkvuFFLpOdP6e",
125
+ name: "Plan Free",
126
+ user_limit: "1",
127
+ products_limit: "3",
128
+ type: "PyMES",
549
129
  },
550
- src: "https://content-management-profile-prod.s3.amazonaws.com/id-427/427.png?1661898636177",
130
+ src: "https://content-management-profile.s3.amazonaws.com/id-52/52.png?1662065576139",
551
131
  },
552
132
  };