contentoh-components-library 21.4.16 → 21.4.17

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 (110) hide show
  1. package/.env.development +1 -5
  2. package/.env.production +1 -3
  3. package/dist/components/atoms/Avatar/index.js +2 -3
  4. package/dist/components/atoms/Card/index.js +5 -46
  5. package/dist/components/atoms/Card/styles.js +1 -3
  6. package/dist/components/atoms/CheckBox/index.js +2 -7
  7. package/dist/components/atoms/CheckBox/styles.js +1 -1
  8. package/dist/components/atoms/InputFormatter/styles.js +1 -1
  9. package/dist/components/molecules/CarouselImagesLogin/index.js +1 -1
  10. package/dist/components/molecules/HeaderTop/index.js +11 -68
  11. package/dist/components/molecules/TagAndInput/index.js +1 -1
  12. package/dist/components/organisms/Chat/Chat.stories.js +8 -27
  13. package/dist/components/organisms/Chat/ContainerItems/index.js +3 -19
  14. package/dist/components/organisms/Chat/ContainerItems/styles.js +1 -1
  15. package/dist/components/organisms/Chat/ContentChat/index.js +197 -350
  16. package/dist/components/organisms/Chat/Footer/index.js +39 -48
  17. package/dist/components/organisms/Chat/index.js +4 -49
  18. package/dist/components/organisms/FullProductNameHeader/index.js +2 -2
  19. package/dist/components/organisms/Modal/styles.js +1 -1
  20. package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +120 -88
  21. package/dist/components/pages/ProviderProductEdition/index.js +200 -216
  22. package/dist/components/pages/ProviderProductEdition/styles.js +1 -1
  23. package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +52 -56
  24. package/dist/components/pages/RetailerProductEdition/index.js +300 -318
  25. package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
  26. package/dist/components/pages/RetailerProductEdition/utils.js +2 -61
  27. package/dist/index.js +52 -247
  28. package/package.json +1 -4
  29. package/src/components/atoms/Avatar/index.js +2 -8
  30. package/src/components/atoms/Card/index.js +2 -35
  31. package/src/components/atoms/Card/styles.js +5 -41
  32. package/src/components/atoms/CheckBox/index.js +1 -4
  33. package/src/components/atoms/CheckBox/styles.js +0 -2
  34. package/src/components/atoms/InputFormatter/styles.js +1 -2
  35. package/src/components/molecules/CarouselImagesLogin/index.js +1 -1
  36. package/src/components/molecules/HeaderTop/index.js +6 -52
  37. package/src/components/molecules/TagAndInput/index.js +8 -10
  38. package/src/components/organisms/Chat/Chat.stories.js +7 -27
  39. package/src/components/organisms/Chat/ContainerItems/index.js +2 -18
  40. package/src/components/organisms/Chat/ContainerItems/styles.js +2 -10
  41. package/src/components/organisms/Chat/ContentChat/index.js +12 -88
  42. package/src/components/organisms/Chat/Footer/index.js +0 -11
  43. package/src/components/organisms/Chat/index.js +4 -46
  44. package/src/components/organisms/FullProductNameHeader/index.js +1 -1
  45. package/src/components/organisms/Modal/styles.js +1 -4
  46. package/src/components/organisms/OrderDetail/utils/Table/utils.js +16 -6
  47. package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +127 -95
  48. package/src/components/pages/ProviderProductEdition/index.js +129 -135
  49. package/src/components/pages/ProviderProductEdition/styles.js +1 -5
  50. package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +52 -55
  51. package/src/components/pages/RetailerProductEdition/index.js +136 -124
  52. package/src/components/pages/RetailerProductEdition/styles.js +0 -4
  53. package/src/components/pages/RetailerProductEdition/utils.js +0 -37
  54. package/src/index.js +0 -16
  55. package/src/components/atoms/ImageCarousel/ImgeSlider.stories.js +0 -76
  56. package/src/components/atoms/ImageCarousel/index.js +0 -103
  57. package/src/components/atoms/ImageCarousel/styles.js +0 -79
  58. package/src/components/atoms/PercentTag/PercentTag.stories.js +0 -7
  59. package/src/components/atoms/PercentTag/index.js +0 -9
  60. package/src/components/atoms/PercentTag/styles.js +0 -69
  61. package/src/components/atoms/RatingStars/RatingStars.stories.js +0 -10
  62. package/src/components/atoms/RatingStars/index.js +0 -31
  63. package/src/components/atoms/RatingStars/styles.js +0 -28
  64. package/src/components/atoms/RetailerCatalog/RetailerCatalog.stories.js +0 -36
  65. package/src/components/atoms/RetailerCatalog/index.js +0 -49
  66. package/src/components/atoms/RetailerCatalog/styles.js +0 -30
  67. package/src/components/atoms/RetailerOption/RetailerOption.stories.js +0 -15
  68. package/src/components/atoms/RetailerOption/index.js +0 -53
  69. package/src/components/atoms/RetailerOption/styles.js +0 -41
  70. package/src/components/atoms/RetailersList/RetailersList.stories.js +0 -33
  71. package/src/components/atoms/RetailersList/index.js +0 -20
  72. package/src/components/atoms/RetailersList/styles.js +0 -19
  73. package/src/components/atoms/UserCatalog/UserCatalog.stories.js +0 -67
  74. package/src/components/atoms/UserCatalog/index.js +0 -100
  75. package/src/components/atoms/UserCatalog/styles.js +0 -24
  76. package/src/components/atoms/UserOption/UserOption.stories.js +0 -25
  77. package/src/components/atoms/UserOption/index.js +0 -95
  78. package/src/components/atoms/UserOption/styles.js +0 -61
  79. package/src/components/atoms/UserSelector/UserSelector.stories.js +0 -25
  80. package/src/components/atoms/UserSelector/index.js +0 -86
  81. package/src/components/atoms/UserSelector/styles.js +0 -55
  82. package/src/components/molecules/GridItem/GridItem.stories.js +0 -126
  83. package/src/components/molecules/GridItem/index.js +0 -105
  84. package/src/components/molecules/GridItem/styles.js +0 -104
  85. package/src/components/molecules/HeaderItem/ColumnItem.js +0 -9
  86. package/src/components/molecules/HeaderItem/HeaderItem.stories.js +0 -24
  87. package/src/components/molecules/HeaderItem/index.js +0 -26
  88. package/src/components/molecules/HeaderItem/styles.js +0 -27
  89. package/src/components/molecules/RowItem/ColumnItem.js +0 -9
  90. package/src/components/molecules/RowItem/RowItem.stories.js +0 -5660
  91. package/src/components/molecules/RowItem/index.js +0 -45
  92. package/src/components/molecules/RowItem/styles.js +0 -40
  93. package/src/components/molecules/StripeCardForm/StripeCardForm.stories.js +0 -13
  94. package/src/components/molecules/StripeCardForm/index.js +0 -42
  95. package/src/components/molecules/StripeCardForm/paymentForm.js +0 -124
  96. package/src/components/molecules/StripeCardForm/styles.js +0 -73
  97. package/src/components/molecules/StripeCardSelector/CardSelector.stories.js +0 -12
  98. package/src/components/molecules/StripeCardSelector/index.js +0 -44
  99. package/src/components/molecules/StripeCardSelector/styles.js +0 -4
  100. package/src/components/molecules/StripeCardSelector/utils.js +0 -17
  101. package/src/components/organisms/GridProducts/GridProducts.stories.js +0 -5485
  102. package/src/components/organisms/GridProducts/index.js +0 -50
  103. package/src/components/organisms/GridProducts/styles.js +0 -14
  104. package/src/components/organisms/GridProducts/utils.js +0 -111
  105. package/src/components/organisms/PanelLayout/PanelLayout.stories.js +0 -63
  106. package/src/components/organisms/PanelLayout/index.js +0 -11
  107. package/src/components/organisms/PanelLayout/styles.js +0 -33
  108. package/src/components/organisms/SideModal/SideModal.stories.js +0 -23
  109. package/src/components/organisms/SideModal/index.js +0 -50
  110. package/src/components/organisms/SideModal/styles.js +0 -30
@@ -17,14 +17,14 @@ export const Chat = (props) => {
17
17
  const {
18
18
  chatType, // "merchant_product" | "order_product" | "ticket"
19
19
  chatContainerType, // ("fixed") | ("popUp")
20
- chatData = {}, // {} => aqui poner los datos requeridos segun el tipo de chat
20
+ chatData, // {} => aqui poner los datos requeridos segun el tipo de chat
21
21
  classNameContainerFixed, // clases CSS del envoltoria chat fixed
22
22
  size = 14, // tamaño del icono
23
23
  } = props;
24
24
  const [showPopUpChat, setShowPopUpChat] = useState(false);
25
25
  const [data, setData] = useState();
26
26
 
27
- const { ticketCompany, retailerId } = chatData || {};
27
+ const { ticketCompany } = chatData || {};
28
28
 
29
29
  useEffect(() => {
30
30
  switch (chatType) {
@@ -37,9 +37,6 @@ export const Chat = (props) => {
37
37
  case "ticket":
38
38
  validateChatTicket();
39
39
  break;
40
- case "product_status":
41
- validateProductStatus();
42
- break;
43
40
  default:
44
41
  setData({
45
42
  code: 404,
@@ -49,45 +46,6 @@ export const Chat = (props) => {
49
46
  }
50
47
  }, [chatType]);
51
48
 
52
- const validateProductStatus = () => {
53
- const {
54
- userToken, // string
55
- id, // number
56
- version,
57
- retailerId, // number
58
- status,
59
- orderId,
60
- } = chatData;
61
-
62
- if (!isValidGeneral(userToken, id)) return;
63
-
64
- // validar el ID de la cadena asociada al producto en la OT
65
- if (!isValidNaturalNumber(retailerId)) {
66
- setDataError("La cadena relacionada al producto no es válida");
67
- return;
68
- }
69
-
70
- // validar el ID de la version asociada al producto en la OT
71
- if (!isValidNaturalNumber(version)) {
72
- setDataError("La versión del producto no es válida");
73
- return;
74
- }
75
-
76
- if (orderId && !isValidNaturalNumber(orderId)) {
77
- setDataError("La orden del producto no es válida");
78
- return;
79
- }
80
-
81
- setData({
82
- userToken,
83
- id,
84
- version,
85
- retailerId,
86
- orderId,
87
- status,
88
- });
89
- };
90
-
91
49
  const isValidGeneral = (userToken, id) => {
92
50
  // validar token del user
93
51
  if (isStringEmpty(userToken)) {
@@ -239,7 +197,7 @@ export const Chat = (props) => {
239
197
  dataChat={data}
240
198
  showBtnClose={false}
241
199
  ticketCompany={ticketCompany}
242
- activeRetailer={props.activeRetailer || { id: retailerId }}
200
+ activeRetailer={props.activeRetailer}
243
201
  />
244
202
  </ContainerFixed>
245
203
  );
@@ -272,7 +230,7 @@ export const Chat = (props) => {
272
230
  onClickBtnClose={() => {
273
231
  setShowPopUpChat(false);
274
232
  }}
275
- activeRetailer={props.activeRetailer || { id: retailerId }}
233
+ activeRetailer={props.activeRetailer}
276
234
  />
277
235
  </ContainerPopUp>
278
236
  </Slide>
@@ -23,7 +23,7 @@ export const FullProductNameHeader = ({
23
23
  useEffect(() => {
24
24
  const rtls = headerData?.retailers || headerData?.retailersAvailable;
25
25
  servicesData &&
26
- rtls?.forEach((rt) => {
26
+ rtls.forEach((rt) => {
27
27
  const element = [];
28
28
  servicesData.forEach((sd) => {
29
29
  if (sd.id_retailer === rt.id) {
@@ -31,6 +31,7 @@ export const ContainerModal = styled.div`
31
31
  align-items: center;
32
32
  justify-content: flex-start;
33
33
  gap: 6px;
34
+ margin-bottom: 20px;
34
35
 
35
36
  .label-title {
36
37
  width: 100%;
@@ -41,10 +42,6 @@ export const ContainerModal = styled.div`
41
42
  color: #262626;
42
43
  white-space: pre-wrap;
43
44
  }
44
-
45
- & + * {
46
- margin-top: 20px;
47
- }
48
45
  }
49
46
 
50
47
  .iconModal {
@@ -1,31 +1,41 @@
1
1
  export const servicesCodeIcon = {
2
2
  datasheet: (
3
3
  <div key="datasheet" className="tooltip">
4
- <span className="material-icons small">&#xf8ee;</span>
4
+ <span className="material-icons small">
5
+ &#xf8ee;
6
+ </span>
5
7
  <span className="tooltiptext">Ficha Técnica</span>
6
8
  </div>
7
9
  ),
8
10
  description: (
9
11
  <div key="description" className="tooltip">
10
- <span className="material-icons small">&#xe873;</span>
12
+ <span className="material-icons small">
13
+ &#xe873;
14
+ </span>
11
15
  <span className="tooltiptext">Descripción</span>
12
16
  </div>
13
17
  ),
14
18
  image: (
15
19
  <div key="image" className="tooltip">
16
- <span className="material-icons small">&#xe3f4;</span>
20
+ <span className="material-icons small">
21
+ &#xe3f4;
22
+ </span>
17
23
  <span className="tooltiptext">Imagen</span>
18
24
  </div>
19
25
  ),
20
26
  translate: (
21
27
  <div key="translate" className="tooltip">
22
- <span className="material-icons small">&#xe8e2;</span>
28
+ <span className="material-icons small">
29
+ &#xe8e2;
30
+ </span>
23
31
  <span className="tooltiptext">Traducción</span>
24
32
  </div>
25
33
  ),
26
34
  build: (
27
- <div key="build" className="tooltip">
28
- <span className="material-icons small">&#xe1bd;</span>
35
+ <div key="build" className="tooltip">
36
+ <span className="material-icons small">
37
+ &#xe1bd;
38
+ </span>
29
39
  <span className="tooltiptext">Construcción</span>
30
40
  </div>
31
41
  ),
@@ -16,122 +16,142 @@ ProviderProductEditionDefault.args = {
16
16
  Imágenes: false,
17
17
  },
18
18
  token:
19
- "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmNTkyN2Y4ZS1jYmY3LTQ5MjItOWUwOS1lNjllYzBiMjczM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hPRvxVJYlaO4s0rhk9rt_VVteTyLfhPHFCymrkFYYDB8bVvKnxUUCX_nJvqGQkl48JiYgvYVLpuus5FvRkGwi1u-jTtMoKiUK-jw9MxI18hD0FWXVnJr-q9ftf2d0bv4JRv4XJ_tRh1N6jps5n3c_KKZswqRfGLU-8MS2X3DU6pDqEP2BZAGXksiFYXYH_uHE6BKJAl7EEhkDTqZsx_jWtVSXTdDg_QDKrOw0Kg",
20
20
  articleId: 238,
21
21
  category: 846,
22
22
  version: 2,
23
23
  productSelected: {
24
- id_article: 43,
25
- id_category: 2126,
26
- name: "LIMA CERRAJERO 6 PULGADAS ACERO BELLOTA",
27
- upc: "137915",
28
- timestamp: "2022-11-14T16:03:56.000Z",
29
- categoryName:
30
- "Herramientas|Herramientas Manuales|Herramientas de Corte y Desbaste",
31
- version: 1,
32
- retailersAvailable: [
24
+ orderId: 15195,
25
+ article_status: "AP",
26
+ datasheet_status: "AP",
27
+ description_status: "AP",
28
+ images_status: "AP",
29
+ prio: "none",
30
+ version: 3,
31
+ brand: null,
32
+ article: {
33
+ category:
34
+ "Abarrotes Básicos|Abarrotes Básicos y Procesados|Abarrotes Básicos y Procesados",
35
+ company_name: "Financiado Bodega",
36
+ id_company: 912,
37
+ country: "México",
38
+ id_category: "4004",
39
+ id_article: 39372,
40
+ name: "PRUEBA04BA",
41
+ upc: "001213",
42
+ },
43
+ retailers: [
33
44
  {
34
- name: "The Home Depot Golden",
35
- id: 58,
45
+ id: 70,
46
+ name: "Bodega Aurrera",
36
47
  },
37
48
  ],
49
+ services: {
50
+ datasheets: 1,
51
+ descriptions: 1,
52
+ images: 1,
53
+ },
38
54
  statusByRetailer: {
39
- 12: {
40
- datasheet: "AA",
41
- description: "AA",
42
- images: "AA",
43
- },
44
- 29: {
45
- datasheet: "AA",
46
- description: "AA",
47
- images: "AA",
48
- },
49
- 63: {
50
- datasheet: "AA",
51
- description: "AA",
52
- images: "AA",
55
+ 70: {
56
+ datasheet: "AP",
57
+ description: "AP",
58
+ images: "AP",
53
59
  },
54
60
  },
55
- checked: false,
61
+ retailersWithService: ["70"],
62
+ id_article: 39372,
56
63
  retailersAvailable: [
57
64
  {
58
- id: 12,
59
- name: "La Comer",
60
- },
61
- {
62
- id: 29,
63
- name: "Farmacias del Ahorro",
64
- },
65
- {
66
- id: 63,
67
- name: "DAX",
65
+ id: 70,
66
+ name: "Bodega Aurrera",
68
67
  },
69
68
  ],
70
- categoryName:
71
- "Salud y Belleza|Cuidado del Cabello|Shampoos y Acondicionadores",
72
- upc: "750955287656712",
73
- id_article: 39270,
74
- id_order: 15142,
75
69
  },
76
70
  productToEdit: {
77
- idCategory: 2126,
78
- ArticleId: 43,
79
- product: [
80
- {
81
- id_article: 43,
82
- id_category: 2126,
83
- name: "LIMA CERRAJERO 6 PULGADAS ACERO BELLOTA",
84
- upc: "137915",
85
- timestamp: "2022-11-14T16:03:56.000Z",
86
- categoryName:
87
- "Herramientas|Herramientas Manuales|Herramientas de Corte y Desbaste",
88
- version: 1,
89
- retailersAvailable: [
90
- {
91
- name: "The Home Depot Golden",
92
- id: 58,
93
- percentage: 2,
94
- },
95
- ],
71
+ ArticleId: 39372,
72
+ idCategory: "4004",
73
+ product: {
74
+ orderId: 15195,
75
+ article_status: "AP",
76
+ datasheet_status: "AP",
77
+ description_status: "AP",
78
+ images_status: "AP",
79
+ prio: "none",
80
+ version: 3,
81
+ brand: null,
82
+ article: {
83
+ category:
84
+ "Abarrotes Básicos|Abarrotes Básicos y Procesados|Abarrotes Básicos y Procesados",
85
+ company_name: "Financiado Bodega",
86
+ id_company: 912,
87
+ country: "México",
88
+ id_category: "4004",
89
+ id_article: 39372,
90
+ name: "PRUEBA04BA",
91
+ upc: "001213",
96
92
  },
97
- ],
93
+ retailers: [
94
+ {
95
+ id: 70,
96
+ name: "Bodega Aurrera",
97
+ },
98
+ ],
99
+ services: {
100
+ datasheets: 1,
101
+ descriptions: 1,
102
+ images: 1,
103
+ },
104
+ statusByRetailer: {
105
+ 70: {
106
+ datasheet: "AP",
107
+ description: "AP",
108
+ images: "AP",
109
+ },
110
+ },
111
+ retailersWithService: ["70"],
112
+ id_article: 39372,
113
+ retailersAvailable: [
114
+ {
115
+ id: 70,
116
+ name: "Bodega Aurrera",
117
+ },
118
+ ],
119
+ },
98
120
  },
99
121
  location: {
100
122
  pathname: "/EditProducts",
101
123
  search: "",
102
124
  hash: "",
103
125
  state: {
104
- withChat: true,
105
- chatType: "product_status",
106
126
  origin: "RequestWithContentoh",
107
127
  },
108
128
  key: "24vwut",
109
129
  },
110
130
  user: {
111
- id_user: 28,
112
- name: "Ismael",
113
- last_name: "López",
114
- email: "ilopez@contentoh.com",
115
- position: "Test States",
116
- telephone: "+523111366336",
131
+ id_user: 132,
132
+ name: "Bodega",
133
+ last_name: "Aurrera",
134
+ email: "cadenabodega@allfreemail.net",
135
+ position: "TI",
136
+ telephone: "+529999999999",
117
137
  country: "México",
118
- id_company: 1,
119
- id_cognito: "f5927f8e-cbf7-4922-9e09-e69ec0b2731a",
138
+ id_company: 912,
139
+ id_cognito: "fb2304ef-e1a2-4c2b-8874-eb754e4f6332",
120
140
  birth_Date: null,
121
- about_me: "",
122
- zip_code: "",
123
- address: "",
124
- job: "",
125
- id_stripe: "cus_KuEt6R6vwmN09f",
141
+ about_me: null,
142
+ zip_code: null,
143
+ address: null,
144
+ job: null,
145
+ id_stripe: null,
126
146
  id_role: 0,
127
147
  active: 1,
128
- is_retailer: 0,
148
+ is_retailer: 1,
129
149
  email_notify: 1,
130
- is_user_tech: "ADMIN-AS",
150
+ is_user_tech: null,
131
151
  membership: {
132
- id: 76,
133
- start_date: "2022-01-18T17:25:35.000Z",
134
- end_date: "2023-01-18T17:25:35.000Z",
152
+ id: 101,
153
+ start_date: "2022-12-22T19:16:53.000Z",
154
+ end_date: "2023-12-22T19:16:53.000Z",
135
155
  planID: 8,
136
156
  plan: "prod_KtlhECVSFG2iro",
137
157
  name: "Plan Pro",
@@ -139,23 +159,35 @@ ProviderProductEditionDefault.args = {
139
159
  products_limit: "5000",
140
160
  type: "Enterprise",
141
161
  },
142
- src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1691179745418",
162
+ src: "https://content-management-profile.s3.amazonaws.com/id-132/132.png?1685370125086",
143
163
  },
144
164
  company: {
145
- id_company: 1,
146
- trade_name: "GRUPO BRAHMA",
147
- company_name: "GRUPO BRAHMA",
148
- rfc: "XAXX010101000",
149
- adress: "AA",
150
- about_company: "",
151
- telephone: "",
152
- web_site: "",
153
- zip_code: "",
165
+ id_company: 912,
166
+ trade_name: "Financiado Bodega",
167
+ company_name: "Bodega",
168
+ rfc: "9395jwhs",
169
+ adress: "Toluca",
170
+ about_company: null,
171
+ telephone: null,
172
+ web_site: null,
173
+ zip_code: null,
154
174
  email: null,
155
- social_link: "",
175
+ social_link: null,
156
176
  is_retailer: 0,
157
- financedRetailers: [],
158
- retailers: [],
177
+ financedRetailers: [
178
+ {
179
+ id: 70,
180
+ name: "Bodega Aurrera",
181
+ country: "México",
182
+ },
183
+ ],
184
+ retailers: [
185
+ {
186
+ id: 70,
187
+ name: "Bodega Aurrera",
188
+ country: "México",
189
+ },
190
+ ],
159
191
  },
160
192
  showSurvey: (v) => v && alert("se muestra"),
161
193
  };