contentoh-components-library 21.1.22 → 21.1.23

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 (54) hide show
  1. package/dist/assets/images/sliderToolTip/slide21.svg +9 -0
  2. package/dist/assets/images/sliderToolTip/slide22.svg +9 -0
  3. package/dist/assets/images/sliderToolTip/slide23.svg +9 -0
  4. package/dist/components/atoms/CheckBox/styles.js +1 -1
  5. package/dist/components/atoms/ListCommercialRetailers/ListCommercialRetailers.stories.js +36 -0
  6. package/dist/components/atoms/ListCommercialRetailers/index.js +64 -0
  7. package/dist/components/atoms/ListCommercialRetailers/styles.js +20 -0
  8. package/dist/components/atoms/MenuCommercialRetailers/MenuCommercialRetailers.stories.js +37 -0
  9. package/dist/components/atoms/MenuCommercialRetailers/index.js +25 -0
  10. package/dist/components/atoms/MenuCommercialRetailers/styles.js +20 -0
  11. package/dist/components/atoms/MenuProductImage/MenuProductImage.stories.js +28 -0
  12. package/dist/components/atoms/MenuProductImage/index.js +88 -0
  13. package/dist/components/atoms/MenuProductImage/styles.js +20 -0
  14. package/dist/components/atoms/SliderToolTip/SliderToolTip.stories.js +67 -13
  15. package/dist/components/atoms/SliderToolTip/index.js +64 -134
  16. package/dist/components/atoms/SliderToolTip/styles.js +2 -2
  17. package/dist/components/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +44 -1
  18. package/dist/components/atoms/VerticalSideMenuMainPage/index.js +49 -48
  19. package/dist/components/atoms/VerticalSideMenuMainPage/styles.js +12 -3
  20. package/dist/components/molecules/ApproveRejetPanel/ApproveRejetPanel.stories.js +25 -0
  21. package/dist/components/molecules/ApproveRejetPanel/index.js +49 -0
  22. package/dist/components/molecules/ApproveRejetPanel/styles.js +18 -0
  23. package/dist/components/molecules/SignInLoginCreationApp/SignInLogin.stories.js +28 -0
  24. package/dist/components/molecules/SignInLoginCreationApp/index.js +270 -0
  25. package/dist/components/molecules/SignInLoginCreationApp/styles.js +20 -0
  26. package/dist/components/molecules/StatusAsignationInfo/index.js +35 -1
  27. package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +88 -81
  28. package/dist/components/pages/ProviderProductEdition/index.js +61 -33
  29. package/dist/components/pages/RetailerProductEdition/index.js +11 -16
  30. package/dist/global-files/global-styles.css +0 -1
  31. package/package.json +1 -1
  32. package/src/assets/images/sliderToolTip/slide21.svg +9 -0
  33. package/src/assets/images/sliderToolTip/slide22.svg +9 -0
  34. package/src/assets/images/sliderToolTip/slide23.svg +9 -0
  35. package/src/components/atoms/CheckBox/styles.js +0 -1
  36. package/src/components/atoms/SliderToolTip/SliderToolTip.stories.js +77 -11
  37. package/src/components/atoms/SliderToolTip/index.js +91 -154
  38. package/src/components/atoms/SliderToolTip/styles.js +48 -22
  39. package/src/components/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +24 -1
  40. package/src/components/atoms/VerticalSideMenuMainPage/index.js +41 -30
  41. package/src/components/atoms/VerticalSideMenuMainPage/styles.js +70 -18
  42. package/src/components/molecules/StatusAsignationInfo/index.js +37 -0
  43. package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +98 -82
  44. package/src/components/pages/ProviderProductEdition/index.js +40 -17
  45. package/src/components/pages/RetailerProductEdition/index.js +9 -17
  46. package/dist/components/atoms/Percent/Percent.stories.js +0 -39
  47. package/dist/components/atoms/Percent/index.js +0 -39
  48. package/dist/components/atoms/Percent/styles.js +0 -20
  49. package/dist/components/molecules/TextAndGradient/TextAndGradient.stories.js +0 -31
  50. package/dist/components/molecules/TextAndGradient/index.js +0 -36
  51. package/dist/components/molecules/TextAndGradient/styles.js +0 -18
  52. package/src/components/pages/RegistrationLoginFirstStep/RegistrationLoginFirstStep.stories.js +0 -17
  53. package/src/components/pages/RegistrationLoginFirstStep/index.js +0 -160
  54. package/src/components/pages/RegistrationLoginFirstStep/styles.js +0 -85
@@ -6,6 +6,11 @@ import { Button } from "../../atoms/GeneralButton";
6
6
  import { useEffect, useState } from "react";
7
7
  import { AsignationOption } from "../../atoms/AsignationOption/index";
8
8
  import { getProfilePicture } from "../../../global-files/data";
9
+ import { SliderToolTip } from "../../atoms/SliderToolTip";
10
+ import InfoIcon from "../../../assets/images/sliderToolTip/infoIcon.svg";
11
+ import Slide1 from "../../../assets/images/sliderToolTip/slide21.svg";
12
+ import Slide2 from "../../../assets/images/sliderToolTip/slide22.svg";
13
+ import Slide3 from "../../../assets/images/sliderToolTip/slide23.svg";
9
14
 
10
15
  export const StatusAsignationInfo = ({
11
16
  status = "-",
@@ -31,6 +36,32 @@ export const StatusAsignationInfo = ({
31
36
  setShowAsignationPanel(false);
32
37
  }
33
38
  };
39
+ const slidefront = [
40
+ {
41
+ slide: Slide1,
42
+ id: "slide1",
43
+ id_link: "slidea1",
44
+ title: "Valida tu producto en cada activo digital",
45
+ description:
46
+ "Al solicitar a Content-oh! podrás validar la información, imágenes y documentación de tu producto, esto hará más sencillo que puedas aprobar o rechazar el contenido.",
47
+ },
48
+ {
49
+ slide: Slide2,
50
+ id: "slide2",
51
+ id_link: "slidea2",
52
+ title: "Aprueba o rechaza con un clic",
53
+ description:
54
+ "Cuando termines de revisar tu información, elige si aproebas o rechazas, esto enviara una notificiación a nuestro equipo, para continuar o corregir el producto.",
55
+ },
56
+ {
57
+ slide: Slide3,
58
+ id: "slide3",
59
+ id_link: "slidea3",
60
+ title: "Estatus de tu producto en el proceso",
61
+ description:
62
+ "La mayor parte del proceso podrás identificar que estatus tiene tu producto, esto dara visibilidad a todo tu equipo para saber la etapa se encuentra.",
63
+ },
64
+ ];
34
65
 
35
66
  useEffect(() => {
36
67
  if (showAsignationPanel) {
@@ -40,6 +71,12 @@ export const StatusAsignationInfo = ({
40
71
 
41
72
  return (
42
73
  <Container id={id}>
74
+ <SliderToolTip
75
+ infoIcon={InfoIcon}
76
+ slidefront={slidefront}
77
+ iconSize={"medium-image"}
78
+ slidePosition={"bottom-slide"}
79
+ ></SliderToolTip>
43
80
  {status !== "-" && <StatusTag statusType={status} ovalForm={true} />}
44
81
  {showSaveButton && (
45
82
  <Button
@@ -16,120 +16,136 @@ ProviderProductEditionDefault.args = {
16
16
  Imágenes: false,
17
17
  },
18
18
  token:
19
- "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmNTkyN2Y4ZS1jYmY3LTQ5MjItOWUwOS1lNjllYzBiMjczMWEiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImY1OTI3ZjhlLWNiZjctNDkyMi05ZTA5LWU2OWVjMGIyNzMxYSIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiI3ZTU5YmI1Yy1mNjI1LTQ1NzMtYjMzYS00ZWM4YzFmMzMyNTIiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY1NjAwMTY4OCwibmFtZSI6IklzbWFlbCBMb3BleiIsInBob25lX251bWJlciI6Iis1MjMxMTEzNjYzMzYiLCJleHAiOjE2NTYwMDUyODgsImlhdCI6MTY1NjAwMTY4OCwiZW1haWwiOiJpbG9wZXpAY29udGVudG9oLmNvbSJ9.ZUKMejBG8qCT2bv-zrqyFx6xyeKK85Ry-kRlQv3U2KrDasW6ea8zbNDJMJAGMu_7dDrk9mRUj0Mp-jW32T1IBOweWxivRKSYfWQzjMdJdOUcckCagVXp8zQ4W-DZJINI25iq1AEfl9--6WaTRybEdTLjKXgzzOmLCGk5QbUI2uSeT_3w7fZiHPlCDCFFTSgXaNKUqxnsyZ2llos97KKIhH7tmn7DBw8mTPTUFyxED6EzBc7mkCYrM1o0velAZF0bOYhiuNnA-TF0L8eqPIZ3_13WDzGjRk3_eOBM37z8AqlMtBCJYIyQFGf-uCIbpSG0yJzYTswrExCkLamlKDhwtQ",
19
+ "eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJkNjYwY2NjYS1mOTA2LTQ5NzAtODkyYy02ZDE1MmU4MzJlNWQiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfbFN6UVo0WjdSIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImQ2NjBjY2NhLWY5MDYtNDk3MC04OTJjLTZkMTUyZTgzMmU1ZCIsImF1ZCI6IjUyZDlza2tkY2c4cWpwODhvb2sxdXNlNm1rIiwiZXZlbnRfaWQiOiJiY2ZhOGZlNi0wMDRjLTQ3NzAtODFjOC01YmNmMmMxMzM3YmIiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY1NTkxMTI4NywibmFtZSI6IlRIRCBQcm92ZWVkb3IiLCJwaG9uZV9udW1iZXIiOiIrNTIzMTExMTExMTExIiwiZXhwIjoxNjU1OTE0ODg3LCJpYXQiOjE2NTU5MTEyODcsImVtYWlsIjoidGhkQGFsbGZyZWVtYWlsLm5ldCJ9.MWZiRXTcH2fBgHASZ-6rIr43-WzIkp48ToBS4XQgJt4klDp96qzZCO8o6siDK5ptw48CawlFT1nl4QszEA8b6WeqgdjsMo-MhTFF9v0QtYyjCZ97Sfs2roSLAU0pZC8-JT-yZV7auHfsoGzGWhR6CoDLQEtm0nk0pqJtwm2qObv1tZUeJUvS4qPRnLBXv3qn8--0D7dGI2NTJKfm4RN-BiDNIQQE6B0UZuY8hCxYz0OXqvpstYNQnd0YQLTXnBYN0SiHAdF2DuQqDVhnVCphqcgq49DxwN6o1br7M4ySHhe7a9mg4-uSJjLF25oW8K4dFgvvStMvuScUhpzngc8caA",
20
20
  articleId: 238,
21
21
  category: 846,
22
22
  version: 2,
23
23
  productSelected: {
24
- id_article: 55081,
25
- id_category: "157",
26
- name: "Lavatrastes Axion toque de crema",
27
- upc: "750954665375",
28
- timestamp: "2022-06-17T18:43:45.000Z",
24
+ id_article: 55070,
25
+ id_category: "2976",
26
+ name: "TOALLERO CORTO ACCESS NEGRO ÉBANO",
27
+ upc: "161788",
28
+ timestamp: "2022-06-17T17:31:14.000Z",
29
29
  status: "NULL",
30
- categoryName:
31
- "CONSUMIBLES|PRODUCTOS DE LIMPIEZA Y LAVANDERÍA|JABONES Y LAVATRASTES",
30
+ categoryName: "BAÑOS|ACCESORIOS PARA BAÑO|TOALLEROS",
32
31
  asignations: [],
33
32
  version: 1,
34
33
  version_status: null,
35
34
  retailersAvailable: [
36
35
  {
37
- id: 4,
38
- name: "Walmart Super y Superama",
36
+ id: 58,
37
+ name: "The Home Depot Golden",
38
+ country: "México",
39
+ id_region: 1,
40
+ active: 1,
41
+ },
42
+ {
43
+ id: 59,
44
+ name: "The Home Depot Platinum",
45
+ country: "México",
46
+ id_region: 1,
47
+ active: 1,
48
+ },
49
+ {
50
+ id: 60,
51
+ name: "The Home Depot Resizing",
52
+ country: "México",
53
+ id_region: 1,
54
+ active: 1,
55
+ },
56
+ {
57
+ id: 61,
58
+ name: "Home Depot TAB",
39
59
  country: "México",
40
60
  id_region: 1,
41
61
  active: 1,
42
62
  },
43
63
  ],
44
- missing: {
45
- datasheet: 10,
46
- description: 6,
47
- image: 32,
48
- },
64
+ missing: {},
65
+ },
66
+ productToEdit: {
67
+ idCategory: "2976",
68
+ ArticleId: 55070,
69
+ product: [
70
+ {
71
+ id_article: 55070,
72
+ id_category: "2976",
73
+ name: "TOALLERO CORTO ACCESS NEGRO ÉBANO",
74
+ upc: "161788",
75
+ timestamp: "2022-06-17T17:31:14.000Z",
76
+ status: "NULL",
77
+ categoryName: "BAÑOS|ACCESORIOS PARA BAÑO|TOALLEROS",
78
+ asignations: [],
79
+ version: 1,
80
+ version_status: null,
81
+ retailersAvailable: [
82
+ {
83
+ id: 58,
84
+ name: "The Home Depot Golden",
85
+ country: "México",
86
+ id_region: 1,
87
+ active: 1,
88
+ },
89
+ {
90
+ id: 59,
91
+ name: "The Home Depot Platinum",
92
+ country: "México",
93
+ id_region: 1,
94
+ active: 1,
95
+ },
96
+ {
97
+ id: 60,
98
+ name: "The Home Depot Resizing",
99
+ country: "México",
100
+ id_region: 1,
101
+ active: 1,
102
+ },
103
+ {
104
+ id: 61,
105
+ name: "Home Depot TAB",
106
+ country: "México",
107
+ id_region: 1,
108
+ active: 1,
109
+ },
110
+ ],
111
+ missing: {},
112
+ },
113
+ ],
49
114
  },
50
- // productToEdit: {
51
- // idCategory: "2976",
52
- // ArticleId: 55070,
53
- // product: [
54
- // {
55
- // id_article: 55070,
56
- // id_category: "2976",
57
- // name: "TOALLERO CORTO ACCESS NEGRO ÉBANO",
58
- // upc: "161788",
59
- // timestamp: "2022-06-17T17:31:14.000Z",
60
- // status: "NULL",
61
- // categoryName: "BAÑOS|ACCESORIOS PARA BAÑO|TOALLEROS",
62
- // asignations: [],
63
- // version: 1,
64
- // version_status: null,
65
- // retailersAvailable: [
66
- // {
67
- // id: 58,
68
- // name: "The Home Depot Golden",
69
- // country: "México",
70
- // id_region: 1,
71
- // active: 1,
72
- // },
73
- // {
74
- // id: 59,
75
- // name: "The Home Depot Platinum",
76
- // country: "México",
77
- // id_region: 1,
78
- // active: 1,
79
- // },
80
- // {
81
- // id: 60,
82
- // name: "The Home Depot Resizing",
83
- // country: "México",
84
- // id_region: 1,
85
- // active: 1,
86
- // },
87
- // {
88
- // id: 61,
89
- // name: "Home Depot TAB",
90
- // country: "México",
91
- // id_region: 1,
92
- // active: 1,
93
- // },
94
- // ],
95
- // missing: {},
96
- // },
97
- // ],
98
- // },
99
115
  location: {
100
116
  product: { articleId: 109485, versionId: 3 },
101
117
  state: {},
102
118
  },
103
119
  user: {
104
- id_user: 28,
105
- name: "Proveedor",
106
- last_name: "Colgate",
107
- email: "ilopez@contentoh.com",
108
- position: "Prueba Admin",
109
- telephone: "+523111366336",
120
+ id_user: 1236,
121
+ name: "THD",
122
+ last_name: "Proveedor",
123
+ email: "thd@allfreemail.net",
124
+ position: "Prod test",
125
+ telephone: "+523111111111",
110
126
  country: "México",
111
- id_company: 1,
112
- id_cognito: "f5927f8e-cbf7-4922-9e09-e69ec0b2731a",
127
+ id_company: 816,
128
+ id_cognito: "d660ccca-f906-4970-892c-6d152e832e5d",
113
129
  birth_Date: null,
114
130
  about_me: null,
115
131
  zip_code: null,
116
132
  address: null,
117
133
  job: null,
118
- id_stripe: "cus_KuEt6R6vwmN09f",
134
+ id_stripe: null,
119
135
  id_role: 0,
120
136
  active: 1,
121
137
  is_retailer: 0,
122
138
  membership: {
123
- id: 38,
124
- start_date: "2022-01-18T17:25:35.000Z",
125
- end_date: "2023-01-18T17:25:35.000Z",
126
- planID: 8,
127
- plan: "prod_KtlhECVSFG2iro",
128
- name: "Plan Pro",
129
- user_limit: "20",
130
- products_limit: "5000",
139
+ id: 797,
140
+ start_date: "2022-06-19T04:18:39.000Z",
141
+ end_date: "2023-06-19T04:18:39.000Z",
142
+ planID: 6,
143
+ plan: "prod_KvGd6YSTJyR3AP",
144
+ name: "Plan Small",
145
+ user_limit: "10",
146
+ products_limit: "1000",
131
147
  type: "Enterprise",
132
148
  },
133
- src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1656001689809",
149
+ src: "https://content-management-profile-prod.s3.amazonaws.com/id-1236/1236.png?1655911288481",
134
150
  },
135
151
  };
@@ -406,6 +406,7 @@ export const ProviderProductEdition = ({
406
406
 
407
407
  const saveDescriptions = async () => {
408
408
  setLoading(true);
409
+ const productTemp = product;
409
410
  const dataObject = {
410
411
  articleId: product?.id_article,
411
412
  articleData: updatedDescriptions,
@@ -421,6 +422,12 @@ export const ProviderProductEdition = ({
421
422
  },
422
423
  }
423
424
  );
425
+ if (productTemp.status === "ASSIGNED") {
426
+ productTemp.status = "IN_PROGRESS";
427
+ setProduct(productTemp);
428
+ sessionStorage.setItem("productSelected", JSON.stringify(productTemp));
429
+ }
430
+
424
431
  setMessage("Descripciones guardadas con éxito");
425
432
  loadData();
426
433
  } catch (error) {
@@ -446,6 +453,11 @@ export const ProviderProductEdition = ({
446
453
  }
447
454
  );
448
455
  setMessage("Fichas técnicas guardadas");
456
+ if (productTemp.status === "ASSIGNED") {
457
+ productTemp.status = "IN_PROGRESS";
458
+ setProduct(productTemp);
459
+ sessionStorage.setItem("productSelected", JSON.stringify(productTemp));
460
+ }
449
461
  loadData();
450
462
  } catch (error) {
451
463
  console.log(error);
@@ -687,23 +699,14 @@ export const ProviderProductEdition = ({
687
699
  };
688
700
 
689
701
  const downloadImages = () => {
690
- selectedImages.length > 0
691
- ? selectedImages.forEach((e) => {
692
- if (e.id) {
693
- saveAs(
694
- `https://${process.env.REACT_APP_IMAGES_BUCKET}.s3.amazonaws.com/${e.srcDB}`,
695
- `${product.upc || product.article.upc}_${e.name}.${e.ext}`
696
- );
697
- }
698
- })
699
- : images?.values?.forEach((e) => {
700
- if (e.id) {
701
- saveAs(
702
- `https://${process.env.REACT_APP_IMAGES_BUCKET}.s3.amazonaws.com/${e.srcDB}`,
703
- `${product.upc || product.article.upc}_${e.name}.${e.ext}`
704
- );
705
- }
706
- });
702
+ selectedImages.forEach((e) => {
703
+ if (e.id) {
704
+ saveAs(
705
+ `https://${process.env.REACT_APP_IMAGES_BUCKET}.s3.amazonaws.com/${e.srcDB}`,
706
+ `${product.article.upc}_${e.name}.${e.ext}`
707
+ );
708
+ }
709
+ });
707
710
  };
708
711
 
709
712
  const deleteImages = () => {
@@ -779,6 +782,26 @@ export const ProviderProductEdition = ({
779
782
  }
780
783
  };
781
784
 
785
+ const specialistValid = (tab) => {
786
+ let concept = "";
787
+ switch (tab) {
788
+ case "Ficha técnica":
789
+ concept = "datasheet";
790
+ break;
791
+ case "Imágenes":
792
+ concept = "images";
793
+ break;
794
+ case "Descripción":
795
+ concept = "description";
796
+ break;
797
+ }
798
+ return (
799
+ product[`${concept}_status`] === "IN_PROGRESS" ||
800
+ product[`${concept}_status`] === "RF" ||
801
+ product[`${concept}_status`] === "RA"
802
+ );
803
+ };
804
+
782
805
  const confirmStatusComplete = () => {
783
806
  const { datasheet_status, description_status, images_status } = product;
784
807
  const completionStates =
@@ -424,6 +424,7 @@ export const RetailerProductEdition = ({
424
424
  articleId: product?.article?.id_article,
425
425
  articleData: updatedDatasheets,
426
426
  };
427
+ console.log(updatedDatasheets, "updatedDatasheets");
427
428
  if (product?.orderId) dataObject["orderId"] = product?.orderId;
428
429
  try {
429
430
  await axios.put(
@@ -955,23 +956,14 @@ export const RetailerProductEdition = ({
955
956
  };
956
957
 
957
958
  const downloadImages = () => {
958
- selectedImages.length > 0
959
- ? selectedImages.forEach((e) => {
960
- if (e.id) {
961
- saveAs(
962
- `https://${process.env.REACT_APP_IMAGES_BUCKET}.s3.amazonaws.com/${e.srcDB}`,
963
- `${product.article.upc}_${e.name}.${e.ext}`
964
- );
965
- }
966
- })
967
- : images?.values?.forEach((e) => {
968
- if (e.id) {
969
- saveAs(
970
- `https://${process.env.REACT_APP_IMAGES_BUCKET}.s3.amazonaws.com/${e.srcDB}`,
971
- `${product.article.upc}_${e.name}.${e.ext}`
972
- );
973
- }
974
- });
959
+ selectedImages.forEach((e) => {
960
+ if (e.id) {
961
+ saveAs(
962
+ `https://${process.env.REACT_APP_IMAGES_BUCKET}.s3.amazonaws.com/${e.srcDB}`,
963
+ `${product.article.upc}_${e.name}.${e.ext}`
964
+ );
965
+ }
966
+ });
975
967
  };
976
968
 
977
969
  const deleteImages = () => {
@@ -1,39 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.default = exports.PercentDefault = void 0;
9
-
10
- var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
11
-
12
- var _index = require("./index");
13
-
14
- var _jsxRuntime = require("react/jsx-runtime");
15
-
16
- var status = ["-", "Pr", "Rc", "As", "P", "QF", "AF", "AA", "AP", "AC", "RA", "RF", "RP", "RC", "Ex"];
17
- var _default = {
18
- title: "Components/atoms/Percent",
19
- component: _index.Percent,
20
- argTypes: {
21
- statusType: {
22
- options: status,
23
- control: {
24
- type: "select"
25
- }
26
- }
27
- }
28
- };
29
- exports.default = _default;
30
-
31
- var Template = function Template(args) {
32
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Percent, (0, _objectSpread2.default)({}, args));
33
- };
34
-
35
- var PercentDefault = Template.bind({});
36
- exports.PercentDefault = PercentDefault;
37
- PercentDefault.args = {
38
- statusType: "-"
39
- };
@@ -1,39 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.Percent = void 0;
9
-
10
- var _styles = require("./styles");
11
-
12
- var _polygon = _interopRequireDefault(require("../../../assets/images/arrow/polygon.svg"));
13
-
14
- var _jsxRuntime = require("react/jsx-runtime");
15
-
16
- var Percent = function Percent(_ref) {
17
- var statusType = _ref.statusType;
18
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
19
- className: "status-".concat(statusType),
20
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
21
- className: "text",
22
- children: "Productos en proceso"
23
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
24
- className: "percent-text",
25
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
26
- className: "number",
27
- children: "20"
28
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
29
- src: _polygon.default,
30
- alt: ""
31
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
32
- className: "span",
33
- children: "1%"
34
- })]
35
- })]
36
- });
37
- };
38
-
39
- exports.Percent = Percent;
@@ -1,20 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.Container = void 0;
9
-
10
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
11
-
12
- var _styledComponents = _interopRequireDefault(require("styled-components"));
13
-
14
- var _variables = require("../../../global-files/variables");
15
-
16
- var _templateObject;
17
-
18
- var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n border-radius: 7px;\n width: 97px;\n height: 83px;\n text-align: center;\n padding: 15px;\n\n &.status-Pr,\n &.status-Rc {\n border: 1px solid ", ";\n .span {\n color: ", ";\n }\n }\n &.status-- {\n border: 1px solid ", ";\n .span {\n color: ", ";\n }\n }\n\n &.status-As,\n &.status-P,\n &.status-QF {\n border: 1px solid ", ";\n .span {\n color: ", ";\n }\n }\n\n &.status-AF,\n &.status-AA,\n &.status-AP,\n &.status-AC {\n border: 1px solid ", ";\n .span {\n color: ", ";\n }\n }\n\n &.status-RA,\n &.status-RF,\n &.status-RP,\n &.status-RC {\n border: 1px solid #d74ded;\n .span {\n color: #d74ded;\n }\n }\n\n &.status-Ex {\n border: 1px solid ", ";\n .span {\n color: ", ";\n }\n }\n\n .text {\n color: ", ";\n font-size: 12px;\n font-family: ", ";\n line-height: 14px;\n }\n .percent-text {\n display: flex;\n .number {\n font-family: ", ";\n font-size: 28px;\n color: ", ";\n }\n .span{\n padding-top: 8px;\n font-size: 18px;\n }\n }\n"])), _variables.GlobalColors.reception, _variables.GlobalColors.reception, _variables.GlobalColors.s3, _variables.GlobalColors.s3, _variables.GlobalColors.in_progress, _variables.GlobalColors.in_progress, _variables.GlobalColors.finished, _variables.GlobalColors.finished, _variables.GlobalColors.exported, _variables.GlobalColors.exported, _variables.GlobalColors.s4, _variables.FontFamily.Raleway, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s4);
19
-
20
- exports.Container = Container;
@@ -1,31 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.default = exports.TextAndGradientDefault = void 0;
9
-
10
- var _index = require("./index");
11
-
12
- var _Cadena = _interopRequireDefault(require("../../../assets/images/providerAndCadena/Cadena.svg"));
13
-
14
- var _default = {
15
- title: "Components/molecules/TextAndGradient",
16
- component: _index.TextAndGradient
17
- };
18
- exports.default = _default;
19
-
20
- var Template = function Template(args) {
21
- return /*#__PURE__*/React.createElement(_index.TextAndGradient, args);
22
- };
23
-
24
- var TextAndGradientDefault = Template.bind({});
25
- exports.TextAndGradientDefault = TextAndGradientDefault;
26
- TextAndGradientDefault.args = {
27
- title: "Beneficios de cadenas",
28
- containerList: {
29
- content: ["Crea proveedores y agregalos a tu cadena", "Valida los proveedores", "Solicita actualización a proveedores", "Analiza el número de productos totales"]
30
- }
31
- };
@@ -1,36 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.TextAndGradient = void 0;
7
-
8
- var _styles = require("./styles");
9
-
10
- var _AtomList = require("../../atoms/AtomList");
11
-
12
- var _ScreenHeader = require("../../atoms/ScreenHeader");
13
-
14
- var _variables = require("../../../global-files/variables");
15
-
16
- var TextAndGradient = function TextAndGradient(_ref) {
17
- var title = _ref.title,
18
- image = _ref.image,
19
- containerList = _ref.containerList;
20
- return /*#__PURE__*/React.createElement(_styles.Container, null, /*#__PURE__*/React.createElement("div", {
21
- className: "title"
22
- }, /*#__PURE__*/React.createElement(_ScreenHeader.ScreenHeader, {
23
- className: "title",
24
- headerType: "with-bold-text",
25
- text: title,
26
- color: _variables.GlobalColors.s1
27
- })), image && /*#__PURE__*/React.createElement("img", {
28
- src: image
29
- }), /*#__PURE__*/React.createElement("div", {
30
- className: "list"
31
- }, /*#__PURE__*/React.createElement(_AtomList.AtomList, {
32
- content: containerList.content
33
- })));
34
- };
35
-
36
- exports.TextAndGradient = TextAndGradient;
@@ -1,18 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.Container = void 0;
9
-
10
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
11
-
12
- var _styledComponents = _interopRequireDefault(require("styled-components"));
13
-
14
- var _templateObject;
15
-
16
- var Container = _styledComponents.default.button(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\n position: absolute;\n width: 720px;\n height: 720px;\n left: 0px;\n top: 0px;\n background: linear-gradient(180deg, #E33AA9 0%, #3B1366 100%);\n align-content: center;\n\n .title{\n position: absolute;\n width: 475px;\n height: 36px;\n left: 110px;\n top: 140px;\n letter-spacing: -0.015em;\n font-feature-settings: 'pnum' on, 'lnum' on;\n }\n .list{\n position: absolute;\n height: 160px;\n left: 180px;\n top: 219px;\n font-family: Raleway;\n font-style: normal;\n font-weight: 500;\n font-size: 18px;\n line-height: 40px;\n letter-spacing: -0.015em;\n text-align: left;\n \n }\n\n"])));
17
-
18
- exports.Container = Container;
@@ -1,17 +0,0 @@
1
- import { RegistrationLoginFirstStep } from "./index";
2
- import LoginImage from "../../../assets/images/carouselImagesLogin/loginImage.svg";
3
- import Login2 from "../../../assets/images/carouselImagesLogin/login2.svg";
4
- import Login3 from "../../../assets/images/carouselImagesLogin/login3.svg";
5
-
6
- export default {
7
- title: "Components/pages/RegistrationLoginFirstStep",
8
- component: RegistrationLoginFirstStep,
9
- };
10
- const Template = (args) => <RegistrationLoginFirstStep {...args} />;
11
-
12
- export const RegistrationLoginFirstStepDefault = Template.bind({});
13
-
14
- RegistrationLoginFirstStepDefault.args = {
15
- imageArrayCarousel: [LoginImage, Login2, Login3],
16
- textCarousel: "Elige la plataforma que conecta proovedores y retailers",
17
- };