contentoh-components-library 21.3.67 → 21.3.69

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 (81) hide show
  1. package/.env.development +4 -0
  2. package/.env.production +3 -0
  3. package/dist/components/atoms/ButtonV2/styles.js +1 -1
  4. package/dist/components/atoms/Card/index.js +47 -7
  5. package/dist/components/atoms/Card/styles.js +3 -1
  6. package/dist/components/atoms/CheckBox/index.js +4 -2
  7. package/dist/components/atoms/InputFormatter/styles.js +1 -1
  8. package/dist/components/molecules/CarouselImagesLogin/index.js +1 -1
  9. package/dist/components/molecules/HeaderTop/index.js +68 -11
  10. package/dist/components/molecules/StripeCardForm/StripeCardForm.stories.js +31 -0
  11. package/dist/components/molecules/StripeCardForm/index.js +81 -0
  12. package/dist/components/molecules/StripeCardForm/paymentForm.js +187 -0
  13. package/dist/components/molecules/StripeCardForm/styles.js +24 -0
  14. package/dist/components/molecules/StripeCardSelector/CardSelector.stories.js +30 -0
  15. package/dist/components/molecules/StripeCardSelector/index.js +103 -0
  16. package/dist/components/molecules/StripeCardSelector/styles.js +19 -0
  17. package/dist/components/molecules/StripeCardSelector/utils.js +56 -0
  18. package/dist/components/molecules/TabsMenu/index.js +128 -13
  19. package/dist/components/molecules/TagAndInput/index.js +1 -1
  20. package/dist/components/organisms/Chat/Chat.stories.js +21 -1
  21. package/dist/components/organisms/Chat/ContainerItems/index.js +19 -3
  22. package/dist/components/organisms/Chat/ContainerItems/styles.js +1 -1
  23. package/dist/components/organisms/Chat/ContentChat/index.js +343 -191
  24. package/dist/components/organisms/Chat/Footer/index.js +48 -39
  25. package/dist/components/organisms/Chat/index.js +48 -3
  26. package/dist/components/organisms/FullProductNameHeader/index.js +2 -2
  27. package/dist/components/organisms/FullTabsMenu/index.js +27 -2
  28. package/dist/components/organisms/ImageDataTable/index.js +2 -0
  29. package/dist/components/organisms/Modal/styles.js +1 -1
  30. package/dist/components/organisms/SideModal/index.js +11 -0
  31. package/dist/components/organisms/SideModal/styles.js +1 -1
  32. package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +172 -127
  33. package/dist/components/pages/ProviderProductEdition/index.js +223 -177
  34. package/dist/components/pages/ProviderProductEdition/styles.js +1 -1
  35. package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +40 -28
  36. package/dist/components/pages/RetailerProductEdition/index.js +298 -273
  37. package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
  38. package/dist/components/pages/RetailerProductEdition/utils.js +61 -2
  39. package/dist/index.js +51 -12
  40. package/package.json +1 -1
  41. package/src/components/atoms/ButtonV2/styles.js +1 -1
  42. package/src/components/atoms/Card/index.js +35 -2
  43. package/src/components/atoms/Card/styles.js +41 -5
  44. package/src/components/atoms/CheckBox/index.js +2 -0
  45. package/src/components/atoms/InputFormatter/styles.js +2 -1
  46. package/src/components/molecules/CarouselImagesLogin/index.js +1 -1
  47. package/src/components/molecules/GalleryElement/index.js +5 -0
  48. package/src/components/molecules/HeaderTop/index.js +52 -6
  49. package/src/components/molecules/StripeCardForm/StripeCardForm.stories.js +13 -0
  50. package/src/components/molecules/StripeCardForm/index.js +33 -0
  51. package/src/components/molecules/StripeCardForm/paymentForm.js +121 -0
  52. package/src/components/molecules/StripeCardForm/styles.js +72 -0
  53. package/src/components/molecules/StripeCardSelector/CardSelector.stories.js +12 -0
  54. package/src/components/molecules/StripeCardSelector/index.js +42 -0
  55. package/src/components/molecules/StripeCardSelector/styles.js +4 -0
  56. package/src/components/molecules/StripeCardSelector/utils.js +17 -0
  57. package/src/components/molecules/TabsMenu/index.js +126 -3
  58. package/src/components/molecules/TagAndInput/index.js +12 -8
  59. package/src/components/organisms/Chat/Chat.stories.js +21 -0
  60. package/src/components/organisms/Chat/ContainerItems/index.js +18 -2
  61. package/src/components/organisms/Chat/ContainerItems/styles.js +10 -2
  62. package/src/components/organisms/Chat/ContentChat/index.js +81 -6
  63. package/src/components/organisms/Chat/Footer/index.js +11 -0
  64. package/src/components/organisms/Chat/index.js +47 -3
  65. package/src/components/organisms/FullProductNameHeader/index.js +1 -1
  66. package/src/components/organisms/FullTabsMenu/index.js +28 -1
  67. package/src/components/organisms/ImageDataTable/index.js +3 -0
  68. package/src/components/organisms/InputGroup/index.js +4 -1
  69. package/src/components/organisms/Modal/styles.js +4 -1
  70. package/src/components/organisms/SideModal/SideModal.stories.js +23 -0
  71. package/src/components/organisms/SideModal/index.js +50 -0
  72. package/src/components/organisms/SideModal/styles.js +30 -0
  73. package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +177 -130
  74. package/src/components/pages/ProviderProductEdition/index.js +160 -129
  75. package/src/components/pages/ProviderProductEdition/styles.js +5 -1
  76. package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +38 -26
  77. package/src/components/pages/RetailerProductEdition/index.js +142 -135
  78. package/src/components/pages/RetailerProductEdition/styles.js +4 -0
  79. package/src/components/pages/RetailerProductEdition/utils.js +37 -0
  80. package/src/index.js +3 -0
  81. package/dist/assets/fonts/roboto/LICENSE.txt +0 -202
@@ -16,120 +16,194 @@ ProviderProductEditionDefault.args = {
16
16
  Imágenes: false,
17
17
  },
18
18
  token:
19
- "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI1ODg0YWUzNC01OWQ2LTQ0NTQtYjk4ZS04MjE1MThiY2MzYTciLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6IjU4ODRhZTM0LTU5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
23
23
  productSelected: {
24
- orderId: 15165,
25
- article_status: "AAC",
26
- datasheet_status: "AAC",
27
- description_status: "FAP",
28
- images_status: "FAP",
24
+ orderId: 15142,
25
+ status: "AA",
26
+ datasheet_status: "AA",
29
27
  prio: "none",
30
28
  version: 3,
31
- brand: null,
29
+ description_status: "AA",
30
+ images_status: "AA",
31
+ brand: "Garnier",
32
+ retailerOrder: 0,
33
+ missing: {
34
+ datasheet: null,
35
+ descriptions: null,
36
+ images: null,
37
+ },
38
+ services: {
39
+ datasheets: 1,
40
+ descriptions: 1,
41
+ images: 1,
42
+ },
32
43
  article: {
33
- category: "Puertas y Ventanas|Molduras|Molduras Madera Blanda",
34
- company_name: "Demo",
35
- id_company: 923,
44
+ category:
45
+ "Salud y Belleza|Cuidado del Cabello|Shampoos y Acondicionadores",
46
+ company_name: "GRUPO BRAHMA",
36
47
  country: "México",
37
- id_category: "2366",
38
- id_article: 39336,
39
- name: "Prueba Auditoria",
40
- upc: "100030124",
48
+ id_category: "697",
49
+ id_datasheet_especialist: 54,
50
+ id_datasheet_facilitator: 52,
51
+ id_description_especialist: 54,
52
+ id_description_facilitator: 52,
53
+ id_images_especialist: 55,
54
+ id_images_facilitator: 53,
55
+ id_order: 15142,
56
+ id_article: 39270,
57
+ id_auditor: 37,
58
+ name: "Acondicionador Garnier Fructis 650 ml",
59
+ timestamp: "2023-03-27T18:37:48.000Z",
60
+ upc: "750955287656712",
41
61
  },
42
62
  retailers: [
43
63
  {
44
- id: 58,
45
- name: "The Home Depot Golden",
64
+ id: 12,
65
+ name: "La Comer",
46
66
  },
47
67
  {
48
- id: 68,
49
- name: "The Home Depot Dropship",
68
+ id: 29,
69
+ name: "Farmacias del Ahorro",
70
+ },
71
+ {
72
+ id: 63,
73
+ name: "DAX",
50
74
  },
51
75
  ],
52
- services: {
53
- datasheets: 1,
54
- descriptions: 1,
55
- images: 1,
56
- },
57
76
  statusByRetailer: {
58
- 58: {
59
- datasheet: "AAC",
60
- description: "FAP",
61
- images: "FAP",
77
+ 12: {
78
+ datasheet: "AA",
79
+ description: "AA",
80
+ images: "AA",
81
+ },
82
+ 29: {
83
+ datasheet: "AA",
84
+ description: "AA",
85
+ images: "AA",
86
+ },
87
+ 63: {
88
+ datasheet: "AA",
89
+ description: "AA",
90
+ images: "AA",
62
91
  },
63
92
  },
64
- retailersWithService: ["58"],
65
- id_article: 39336,
93
+ checked: false,
66
94
  retailersAvailable: [
67
95
  {
68
- id: 58,
69
- name: "The Home Depot Golden",
96
+ id: 12,
97
+ name: "La Comer",
98
+ },
99
+ {
100
+ id: 29,
101
+ name: "Farmacias del Ahorro",
70
102
  },
71
103
  {
72
- id: 68,
73
- name: "The Home Depot Dropship",
104
+ id: 63,
105
+ name: "DAX",
74
106
  },
75
107
  ],
108
+ categoryName:
109
+ "Salud y Belleza|Cuidado del Cabello|Shampoos y Acondicionadores",
110
+ upc: "750955287656712",
111
+ id_article: 39270,
112
+ id_order: 15142,
76
113
  },
77
114
  productToEdit: {
78
- ArticleId: 39336,
79
- idCategory: "2366",
115
+ ArticleId: 39270,
116
+ idCategory: "697",
80
117
  product: {
81
- orderId: 15165,
82
- article_status: "AAC",
83
- datasheet_status: "AAC",
84
- description_status: "FAP",
85
- images_status: "FAP",
118
+ orderId: 15142,
119
+ status: "AA",
120
+ datasheet_status: "AA",
86
121
  prio: "none",
87
122
  version: 3,
88
- brand: null,
123
+ description_status: "AA",
124
+ images_status: "AA",
125
+ brand: "Garnier",
126
+ retailerOrder: 0,
127
+ missing: {
128
+ datasheet: null,
129
+ descriptions: null,
130
+ images: null,
131
+ },
132
+ services: {
133
+ datasheets: 1,
134
+ descriptions: 1,
135
+ images: 1,
136
+ },
89
137
  article: {
90
- category: "Puertas y Ventanas|Molduras|Molduras Madera Blanda",
91
- company_name: "Demo",
92
- id_company: 923,
138
+ category:
139
+ "Salud y Belleza|Cuidado del Cabello|Shampoos y Acondicionadores",
140
+ company_name: "GRUPO BRAHMA",
93
141
  country: "México",
94
- id_category: "2366",
95
- id_article: 39336,
96
- name: "Prueba Auditoria",
97
- upc: "100030124",
142
+ id_category: "697",
143
+ id_datasheet_especialist: 54,
144
+ id_datasheet_facilitator: 52,
145
+ id_description_especialist: 54,
146
+ id_description_facilitator: 52,
147
+ id_images_especialist: 55,
148
+ id_images_facilitator: 53,
149
+ id_order: 15142,
150
+ id_article: 39270,
151
+ id_auditor: 37,
152
+ name: "Acondicionador Garnier Fructis 650 ml",
153
+ timestamp: "2023-03-27T18:37:48.000Z",
154
+ upc: "750955287656712",
98
155
  },
99
156
  retailers: [
100
157
  {
101
- id: 58,
102
- name: "The Home Depot Golden",
158
+ id: 12,
159
+ name: "La Comer",
103
160
  },
104
161
  {
105
- id: 68,
106
- name: "The Home Depot Dropship",
162
+ id: 29,
163
+ name: "Farmacias del Ahorro",
164
+ },
165
+ {
166
+ id: 63,
167
+ name: "DAX",
107
168
  },
108
169
  ],
109
- services: {
110
- datasheets: 1,
111
- descriptions: 1,
112
- images: 1,
113
- },
114
170
  statusByRetailer: {
115
- 58: {
116
- datasheet: "AAC",
117
- description: "FAP",
118
- images: "FAP",
171
+ 12: {
172
+ datasheet: "AA",
173
+ description: "AA",
174
+ images: "AA",
175
+ },
176
+ 29: {
177
+ datasheet: "AA",
178
+ description: "AA",
179
+ images: "AA",
180
+ },
181
+ 63: {
182
+ datasheet: "AA",
183
+ description: "AA",
184
+ images: "AA",
119
185
  },
120
186
  },
121
- retailersWithService: ["58"],
122
- id_article: 39336,
187
+ checked: false,
123
188
  retailersAvailable: [
124
189
  {
125
- id: 58,
126
- name: "The Home Depot Golden",
190
+ id: 12,
191
+ name: "La Comer",
127
192
  },
128
193
  {
129
- id: 68,
130
- name: "The Home Depot Dropship",
194
+ id: 29,
195
+ name: "Farmacias del Ahorro",
196
+ },
197
+ {
198
+ id: 63,
199
+ name: "DAX",
131
200
  },
132
201
  ],
202
+ categoryName:
203
+ "Salud y Belleza|Cuidado del Cabello|Shampoos y Acondicionadores",
204
+ upc: "750955287656712",
205
+ id_article: 39270,
206
+ id_order: 15142,
133
207
  },
134
208
  },
135
209
  location: {
@@ -138,90 +212,63 @@ ProviderProductEditionDefault.args = {
138
212
  hash: "",
139
213
  state: {
140
214
  withChat: true,
215
+ chatType: "product_status",
216
+ origin: "RequestWithContentoh",
141
217
  },
142
218
  key: "24vwut",
143
219
  },
144
220
  user: {
145
- id_user: 59,
146
- name: "Cadena",
147
- last_name: "Comercial",
148
- email: "cadena.ismael@allfreemail.net",
149
- position: "Admin",
221
+ id_user: 28,
222
+ name: "Ismael",
223
+ last_name: "López",
224
+ email: "ilopez@contentoh.com",
225
+ position: "Test States",
150
226
  telephone: "+523111366336",
151
227
  country: "México",
152
- id_company: 817,
153
- id_cognito: "5884ae34-59d6-4454-b98e-821518bcc3a7",
228
+ id_company: 1,
229
+ id_cognito: "f5927f8e-cbf7-4922-9e09-e69ec0b2731a",
154
230
  birth_Date: null,
155
231
  about_me: "",
156
232
  zip_code: "",
157
233
  address: "",
158
234
  job: "",
159
- id_stripe: "",
235
+ id_stripe: "cus_KuEt6R6vwmN09f",
160
236
  id_role: 0,
161
237
  active: 1,
162
- is_retailer: 1,
163
- email_notify: 0,
164
- is_user_tech: null,
238
+ is_retailer: 0,
239
+ email_notify: 1,
240
+ is_user_tech: "ADMIN-AS",
165
241
  membership: {
166
- id: 47,
167
- start_date: "2022-05-25T14:31:12.000Z",
168
- end_date: "2023-05-25T14:31:12.000Z",
169
- planID: 5,
170
- plan: "prod_Ktl6B5Ou2gqTB2",
242
+ id: 76,
243
+ start_date: "2022-01-18T17:25:35.000Z",
244
+ end_date: "2023-01-18T17:25:35.000Z",
245
+ planID: 8,
246
+ plan: "prod_KtlhECVSFG2iro",
171
247
  name: "Plan Pro",
172
- user_limit: "5",
173
- products_limit: "500",
174
- type: "PyMES",
248
+ user_limit: "20",
249
+ products_limit: "5000",
250
+ type: "Enterprise",
175
251
  },
176
- src: "https://content-management-profile.s3.amazonaws.com/id-59/59.png?1682462786497",
252
+ src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1683926822779",
177
253
  },
178
254
  company: {
179
- id_company: 817,
180
- trade_name: "Retailer acc",
181
- company_name: "Retailer acc",
182
- rfc: "ASER12345",
183
- adress: "Av. Insurgentes",
184
- about_company: null,
185
- telephone: null,
186
- web_site: null,
187
- zip_code: null,
255
+ id_company: 1,
256
+ trade_name: "GRUPO BRAHMA",
257
+ company_name: "GRUPO BRAHMA",
258
+ rfc: "XAXX010101000",
259
+ adress: "AA",
260
+ about_company: "",
261
+ telephone: "",
262
+ web_site: "",
263
+ zip_code: "",
188
264
  email: null,
189
- social_link: null,
190
- is_retailer: 1,
191
- financedRetailers: [
192
- {
193
- id: 68,
194
- name: "The Home Depot Dropship",
195
- country: "México",
196
- id_region: 1,
197
- active: 1,
198
- },
199
- ],
265
+ social_link: "",
266
+ is_retailer: 0,
200
267
  retailers: [
201
268
  {
202
- id: 59,
203
- name: "The Home Depot Platinum",
204
- country: "México",
205
- },
206
- {
207
- id: 60,
208
- name: "The Home Depot Resizing",
209
- country: "México",
210
- },
211
- {
212
- id: 61,
213
- name: "Home Depot TAB",
214
- country: "México",
215
- },
216
- {
217
- id: 68,
218
- name: "The Home Depot Dropship",
219
- country: "México",
220
- },
221
- {
222
- id: 58,
223
- name: "The Home Depot Golden",
224
- country: "México",
269
+ id: null,
270
+ name: null,
271
+ country: null,
225
272
  },
226
273
  ],
227
274
  },