contentoh-components-library 21.4.61 → 21.4.63

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 (28) hide show
  1. package/dist/assets/fonts/roboto/LICENSE.txt +202 -0
  2. package/dist/components/molecules/BoxAttribute/styles.js +1 -1
  3. package/dist/components/molecules/BoxButtons/index.js +1 -0
  4. package/dist/components/molecules/TagAndInput/index.js +64 -3
  5. package/dist/components/organisms/InputGroup/index.js +153 -48
  6. package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +82 -146
  7. package/dist/components/pages/ProviderProductEdition/index.js +173 -138
  8. package/dist/components/pages/RetailerProductEdition/index.js +5 -5
  9. package/package.json +1 -1
  10. package/src/assets/images/Icons/info.svg +8 -0
  11. package/src/components/atoms/TabSection/styles.js +1 -1
  12. package/src/components/molecules/BoxAttribute/BoxAttribute.stories.js +16 -0
  13. package/src/components/molecules/BoxAttribute/index.js +71 -0
  14. package/src/components/molecules/BoxAttribute/styles.js +38 -0
  15. package/src/components/molecules/BoxButtons/BoxButtons.stories.js +15 -0
  16. package/src/components/molecules/BoxButtons/index.js +28 -0
  17. package/src/components/molecules/BoxButtons/styles.js +43 -0
  18. package/src/components/molecules/TagAndInput/index.js +52 -8
  19. package/src/components/organisms/Box/Box.stories.js +17 -0
  20. package/src/components/organisms/Box/index.js +103 -0
  21. package/src/components/organisms/Box/styles.js +48 -0
  22. package/src/components/organisms/BoxOnboarding/BoxOnboarding.stories.js +17 -0
  23. package/src/components/organisms/BoxOnboarding/index.js +60 -0
  24. package/src/components/organisms/BoxOnboarding/styles.js +44 -0
  25. package/src/components/organisms/InputGroup/index.js +233 -87
  26. package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +86 -175
  27. package/src/components/pages/ProviderProductEdition/index.js +43 -16
  28. package/src/components/pages/RetailerProductEdition/index.js +7 -5
@@ -31,164 +31,86 @@ ProviderProductEditionDefault.args = {
31
31
  "Ficha técnica": false,
32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lhdCI6MTY4MzkyNjgyMSwiZW1haWwiOiJpbG9wZXpAY29udGVudG9oLmNvbSJ9.TvCoaKoctj5mypXWMz3NyV1Vm1ToBV0vJmpVyZSQw4-ikTChkxcZ5tFYvqhk1GdvNCFttfSQIqM-14dAYYBc28YwwKP86gqOuzB1fG41rN5x1Yx3tkJq6hiVRgiBbSHWtThA9c8VnxNQbrJiaRTvvkDiM5KNTEst1oxQHL5Ct9_iKQMJMRFie7Xv0xnyS0qZ6QHK4Q2A9OHsnDkAuumALZJcE19Zh6VgSitgWrZiz3x5Text4Q-U-R48NUAzUFirAzYZzJN_fCme5pGf1AnUaZjeUjPsmrV5TBVzPEYwXO0KG8lYjL8id80D7tbGs28ZIK6B4rf3-eqI_ngmBB4CjQ",
35
+ articleId: 39550,
36
+ category: 287,
37
+ version: 1,
38
38
  productSelected: {
39
- orderId: 15275,
40
- status: "AA",
41
- datasheet_status: "AA",
42
- prio: "none",
43
- version: 3,
44
- description_status: "AA",
45
- images_status: "AA",
46
- brand: null,
47
- retailerOrder: 0,
48
- missing: {
49
- datasheet: null,
50
- descriptions: null,
51
- images: null
52
- },
53
- services: {
54
- datasheets: 1,
55
- descriptions: 1,
56
- images: 1
57
- },
58
- article: {
59
- category: "Abarrotes|Abarrotes Secos|Frutos Secos",
60
- company_name: "GRUPO BRAHMA",
61
- country: "México",
62
- id_category: "11",
63
- id_datasheet_especialist: 54,
64
- id_datasheet_facilitator: 52,
65
- id_description_especialist: 54,
66
- id_description_facilitator: 52,
67
- id_images_especialist: 55,
68
- id_images_facilitator: 53,
69
- id_order: 15275,
70
- id_article: 39485,
71
- id_auditor: 37,
72
- name: "Mix de nueces",
73
- timestamp: "2023-07-14T21:03:19.000Z",
74
- upc: "7543453453"
75
- },
76
- retailers: [{
77
- id: 34,
78
- name: "San Pablo"
79
- }],
80
- statusByRetailer: {
81
- 34: {
82
- datasheet: "AA",
83
- description: "AA",
84
- images: "AA"
85
- }
86
- },
39
+ id_article: 39550,
40
+ upc: 43654697,
41
+ name: "Campana de Cocina",
42
+ timestamp: "2023-08-04T22:23:40.000Z",
43
+ categoryName: "Ferretería|Ferretería General|Tornillos, Tuercas y Arandelas",
44
+ id_category: 287,
45
+ version: 1,
87
46
  retailersAvailable: [{
88
- id: 34,
89
- name: "San Pablo"
47
+ name: "The Home Depot Golden",
48
+ "id": 58
49
+ }, {
50
+ name: "The Home Depot Onboarding",
51
+ "id": 68
90
52
  }],
91
- categoryName: "Abarrotes|Abarrotes Secos|Frutos Secos",
92
- upc: "7543453453",
93
- id_article: 39485,
94
- id_order: 15275
53
+ percentage: "89"
95
54
  },
96
55
  productToEdit: {
97
- ArticleId: 39485,
98
- idCategory: "11",
99
- product: {
100
- orderId: 15275,
101
- status: "AA",
102
- datasheet_status: "AA",
103
- prio: "none",
104
- version: 3,
105
- description_status: "AA",
106
- images_status: "AA",
107
- brand: null,
108
- retailerOrder: 0,
109
- missing: {
110
- datasheet: null,
111
- descriptions: null,
112
- images: null
113
- },
114
- services: {
115
- datasheets: 1,
116
- descriptions: 1,
117
- images: 1
118
- },
119
- article: {
120
- category: "Abarrotes|Abarrotes Secos|Frutos Secos",
121
- company_name: "GRUPO BRAHMA",
122
- country: "México",
123
- id_category: "11",
124
- id_datasheet_especialist: 54,
125
- id_datasheet_facilitator: 52,
126
- id_description_especialist: 54,
127
- id_description_facilitator: 52,
128
- id_images_especialist: 55,
129
- id_images_facilitator: 53,
130
- id_order: 15275,
131
- id_article: 39485,
132
- id_auditor: 37,
133
- name: "Mix de nueces",
134
- timestamp: "2023-07-14T21:03:19.000Z",
135
- upc: "7543453453"
136
- },
137
- retailers: [{
138
- id: 34,
139
- name: "San Pablo"
140
- }],
141
- statusByRetailer: {
142
- 34: {
143
- datasheet: "AA",
144
- description: "AA",
145
- images: "AA"
146
- }
147
- },
56
+ idCategory: 287,
57
+ ArticleId: 39550,
58
+ product: [{
59
+ id_article: 39550,
60
+ upc: 43654697,
61
+ name: "Campana de Cocina",
62
+ timestamp: "2023-08-04T22:23:40.000Z",
63
+ categoryName: "Ferretería|Ferretería General|Tornillos, Tuercas y Arandelas",
64
+ id_category: 287,
65
+ version: 1,
148
66
  retailersAvailable: [{
149
- id: 34,
150
- name: "San Pablo"
67
+ name: "The Home Depot Golden",
68
+ id: 58,
69
+ percentage: 100
70
+ }, {
71
+ name: "The Home Depot Onboarding",
72
+ id: 68,
73
+ percentage: 78
151
74
  }],
152
- categoryName: "Abarrotes|Abarrotes Secos|Frutos Secos",
153
- upc: "7543453453",
154
- id_article: 39485,
155
- id_order: 15275
156
- }
75
+ percentage: "89"
76
+ }]
157
77
  },
158
78
  location: {
159
79
  pathname: "/EditProducts",
160
80
  search: "",
161
81
  hash: "",
162
82
  state: {
83
+ withChat: true,
84
+ chatType: "product_status",
163
85
  origin: "RequestWithContentoh"
164
86
  },
165
87
  key: "24vwut"
166
88
  },
167
89
  user: {
168
- id_user: 28,
169
- name: "Ismael",
170
- last_name: "López",
171
- email: "ilopez@contentoh.com",
172
- position: "Test States",
173
- telephone: "+523111366336",
90
+ id_user: 191,
91
+ name: "Demo",
92
+ last_name: "Demo",
93
+ email: "merchants24feb@allfreemail.net",
94
+ position: "Test",
95
+ telephone: "+52123456789",
174
96
  country: "México",
175
- id_company: 1,
176
- id_cognito: "f5927f8e-cbf7-4922-9e09-e69ec0b2731a",
97
+ id_company: 923,
98
+ id_cognito: "c3cd160c-76c2-497c-9357-5ef949307e1e",
177
99
  birth_Date: null,
178
- about_me: "",
179
- zip_code: "",
180
- address: "",
181
- job: "",
182
- id_stripe: "cus_KuEt6R6vwmN09f",
100
+ about_me: null,
101
+ zip_code: null,
102
+ address: null,
103
+ job: null,
104
+ id_stripe: null,
183
105
  id_role: 0,
184
106
  active: 1,
185
107
  is_retailer: 0,
186
108
  email_notify: 1,
187
- is_user_tech: "ADMIN-AS",
109
+ is_user_tech: null,
188
110
  membership: {
189
- id: 76,
190
- start_date: "2022-01-18T17:25:35.000Z",
191
- end_date: "2023-01-18T17:25:35.000Z",
111
+ id: 114,
112
+ start_date: "2023-02-24T18:14:43.000Z",
113
+ end_date: "2024-02-24T18:14:43.000Z",
192
114
  planID: 8,
193
115
  plan: "prod_KtlhECVSFG2iro",
194
116
  name: "Plan Pro",
@@ -196,23 +118,37 @@ ProviderProductEditionDefault.args = {
196
118
  products_limit: "5000",
197
119
  type: "Enterprise"
198
120
  },
199
- src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1693338334183"
121
+ src: "https://content-management-profile.s3.amazonaws.com/id-191/191.png?1697171804447"
200
122
  },
201
123
  company: {
202
- id_company: 1,
203
- trade_name: "GRUPO BRAHMA",
204
- company_name: "GRUPO BRAHMA",
205
- rfc: "XAXX010101000",
206
- adress: "AA",
207
- about_company: "",
208
- telephone: "",
209
- web_site: "",
210
- zip_code: "",
124
+ id_company: 923,
125
+ trade_name: "Demo",
126
+ company_name: "Demo",
127
+ rfc: "Demo",
128
+ adress: "Demo",
129
+ about_company: null,
130
+ telephone: null,
131
+ web_site: null,
132
+ zip_code: null,
211
133
  email: null,
212
- social_link: "",
134
+ social_link: null,
213
135
  is_retailer: 0,
214
- financedRetailers: [],
215
- retailers: []
136
+ financedRetailers: [{
137
+ id: 68,
138
+ name: "The Home Depot Onboarding",
139
+ country: "México",
140
+ id_region: 1,
141
+ active: 1,
142
+ flow: 1
143
+ }],
144
+ retailers: [{
145
+ id: 68,
146
+ name: "The Home Depot Onboarding",
147
+ country: "México",
148
+ id_region: 1,
149
+ "active": 1,
150
+ flow: 1
151
+ }]
216
152
  },
217
153
  showSurvey: function showSurvey(v) {
218
154
  return v && alert("se muestra");