contentoh-components-library 21.3.52 → 21.3.53

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 (36) hide show
  1. package/dist/components/atoms/ButtonV2/styles.js +1 -1
  2. package/dist/components/atoms/Status/styles.js +1 -1
  3. package/dist/components/atoms/VerticalSideMenuMainPage/index.js +23 -18
  4. package/dist/components/atoms/VerticalSideMenuMainPage/styles.js +4 -4
  5. package/dist/components/organisms/DashboardMetric/dashboardMetricUtils.js +0 -27
  6. package/dist/components/organisms/GlobalModal/styles.js +1 -1
  7. package/dist/components/organisms/OrderDetail/styles.js +1 -1
  8. package/dist/components/organisms/OrderDetail/utils/Table/styles.js +1 -1
  9. package/dist/components/pages/Dashboard/Dashboard.stories.js +50 -31
  10. package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +89 -127
  11. package/dist/components/pages/ProviderProductEdition/index.js +392 -647
  12. package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +108 -61
  13. package/dist/components/pages/RetailerProductEdition/index.js +1 -1
  14. package/dist/index.js +0 -13
  15. package/package.json +6 -7
  16. package/src/components/atoms/ButtonV2/styles.js +1 -1
  17. package/src/components/atoms/Status/styles.js +0 -4
  18. package/src/components/atoms/VerticalSideMenuMainPage/index.js +22 -18
  19. package/src/components/atoms/VerticalSideMenuMainPage/styles.js +4 -3
  20. package/src/components/molecules/AvatarAndValidation/index.js +1 -1
  21. package/src/components/organisms/DashboardMetric/dashboardMetricUtils.js +1 -18
  22. package/src/components/organisms/GlobalModal/styles.js +0 -10
  23. package/src/components/organisms/OrderDetail/index.js +0 -1
  24. package/src/components/organisms/OrderDetail/styles.js +1 -1
  25. package/src/components/organisms/OrderDetail/utils/Table/styles.js +1 -0
  26. package/src/components/pages/Dashboard/Dashboard.stories.js +55 -31
  27. package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +96 -135
  28. package/src/components/pages/ProviderProductEdition/index.js +135 -264
  29. package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +111 -61
  30. package/src/components/pages/RetailerProductEdition/index.js +1 -1
  31. package/src/index.js +0 -1
  32. package/dist/assets/fonts/roboto/LICENSE.txt +0 -202
  33. package/src/components/organisms/TableResizable/TableResizable.stories.js +0 -17
  34. package/src/components/organisms/TableResizable/index.js +0 -119
  35. package/src/components/organisms/TableResizable/styles.js +0 -133
  36. package/src/components/organisms/TableResizable/utils.js +0 -46
@@ -10,153 +10,114 @@ const Template = (args) => <ProviderProductEdition {...args} />;
10
10
  export const ProviderProductEditionDefault = Template.bind({});
11
11
 
12
12
  ProviderProductEditionDefault.args = {
13
+ tabsSections: {
14
+ Descripción: true,
15
+ "Ficha técnica": false,
16
+ Imágenes: false,
17
+ },
18
+ token:
19
+ "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI1ODg0YWUzNC01OWQ2LTQ0NTQtYjk4ZS04MjE1MThiY2MzYTciLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6IjU4ODRhZTM0LTU5ZDYtNDQ1NC1iOThlLTgyMTUxOGJjYzNhNyIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiJlZjViNDQzYi02ODc0LTQ2NGQtOWZiZS00Y2UwNWU4ZDQ3YTEiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY4MDAzODYyNiwibmFtZSI6IkNhZGVuYSBJc21hZWwiLCJwaG9uZV9udW1iZXIiOiIrNTIzMTExMzY2MzM2IiwiZXhwIjoxNjgwMDQyMjI1LCJpYXQiOjE2ODAwMzg2MjYsImVtYWlsIjoiY2FkZW5hLmlzbWFlbEBhbGxmcmVlbWFpbC5uZXQifQ.rhufpJdUaJOpiKtXJgNoDq863ecFnLp63c9_6NeEbpYYNN19d_xac8aZADN-QMpkmz1oxtqfxf_-JN5jMJexi9gJCRb9O7-xL75v_G9UjdmE8sRA6qRNb_tFUCt1oee_ulgqm_2wTjb7qGMGvY1eb1J1IX2pBYKnBy64KM6J5xFfZ57ac_bGruYhCzUexPBWyZKc5ckoY2zJqK5m5Ok7ds0m1hC0t-eQSGX_8KMsGQKiHevQ07cZUQ9mxOGVweRuAqITNx8fVmpD9QTpoZJJ5STVVcKO2CS0ltyE_DNlyejO7mZqbKvGEeLYc4ga0nozK9aP8H2cN_topT0d4JZ5rA",
20
+ articleId: 238,
21
+ category: 846,
22
+ version: 2,
13
23
  productSelected: {
14
- orderId: 15104,
15
- article_status: "AP",
16
- datasheet_status: "AP",
17
- description_status: "AP",
18
- images_status: "AP",
19
- prio: "none",
20
- version: 3,
21
- brand: null,
22
- article: {
23
- category: "Juguetes|Juguetes|Juguetes",
24
- company_name: "Financiado Bodega",
25
- id_company: 912,
26
- country: "México",
27
- id_category: "4208",
28
- id_article: 37565,
29
- name: "CARRIOLA Y MUNECA 30CM",
30
- upc: "26253713368",
31
- },
32
- retailers: [
33
- {
34
- id: 70,
35
- name: "Bodega Aurrera",
36
- },
37
- ],
38
- services: {
39
- datasheets: 1,
40
- descriptions: 1,
41
- images: 1,
42
- },
43
- statusByRetailer: {
44
- 70: {
45
- datasheet: "AP",
46
- description: "AP",
47
- images: "AP",
48
- },
49
- },
50
- retailersWithService: ["70"],
51
- id_article: 37565,
24
+ category: "Iluminación|Lámparas de Interior|Pie y Pedestal",
25
+ company_name: "Demo",
26
+ company_id: 923,
27
+ id_category: "2676",
28
+ id_article: 17163,
29
+ name: "Eglo 95055",
30
+ upc: "165033",
31
+ version: 1,
52
32
  retailersAvailable: [
53
33
  {
54
- id: 70,
55
- name: "Bodega Aurrera",
34
+ id: 68,
35
+ name: "The Home Depot Merchants",
56
36
  },
57
37
  ],
58
38
  },
59
39
  productToEdit: {
60
- ArticleId: 37565,
61
- idCategory: "4208",
62
- product: {
63
- orderId: 15104,
64
- article_status: "AP",
65
- datasheet_status: "AP",
66
- description_status: "AP",
67
- images_status: "AP",
68
- prio: "none",
69
- version: 3,
70
- brand: null,
71
- article: {
72
- category: "Juguetes|Juguetes|Juguetes",
73
- company_name: "Financiado Bodega",
74
- id_company: 912,
75
- country: "México",
76
- id_category: "4208",
77
- id_article: 37565,
78
- name: "CARRIOLA Y MUNECA 30CM",
79
- upc: "26253713368",
80
- },
81
- retailers: [
82
- {
83
- id: 70,
84
- name: "Bodega Aurrera",
85
- },
86
- ],
87
- services: {
88
- datasheets: 1,
89
- descriptions: 1,
90
- images: 1,
91
- },
92
- statusByRetailer: {
93
- 70: {
94
- datasheet: "AP",
95
- description: "AP",
96
- images: "AP",
97
- },
40
+ idCategory: "2676",
41
+ ArticleId: 17163,
42
+ product: [
43
+ {
44
+ category: "Iluminación|Lámparas de Interior|Pie y Pedestal",
45
+ company_name: "Demo",
46
+ company_id: 923,
47
+ id_category: "2676",
48
+ id_article: 17163,
49
+ name: "Eglo 95055",
50
+ upc: "165033",
51
+ version: 1,
52
+ retailersAvailable: [
53
+ {
54
+ id: 68,
55
+ name: "The Home Depot Merchants",
56
+ },
57
+ ],
98
58
  },
99
- retailersWithService: ["70"],
100
- id_article: 37565,
101
- retailersAvailable: [
102
- {
103
- id: 70,
104
- name: "Bodega Aurrera",
105
- },
106
- ],
59
+ ],
60
+ },
61
+ location: {
62
+ pathname: "/EditProducts",
63
+ search: "",
64
+ hash: "",
65
+ state: {
66
+ withChat: true,
107
67
  },
68
+ key: "24vwut",
108
69
  },
109
70
  user: {
110
- id_user: 132,
111
- name: "Bodega",
112
- last_name: "Aurrera",
113
- email: "cadenabodega@allfreemail.net",
114
- position: "TI",
115
- telephone: "+529999999999",
71
+ id_user: 59,
72
+ name: "Cadena",
73
+ last_name: "Comercial",
74
+ email: "cadena.ismael@allfreemail.net",
75
+ position: "Admin",
76
+ telephone: "+523111366336",
116
77
  country: "México",
117
- id_company: 912,
118
- id_cognito: "fb2304ef-e1a2-4c2b-8874-eb754e4f6332",
78
+ id_company: 817,
79
+ id_cognito: "5884ae34-59d6-4454-b98e-821518bcc3a7",
119
80
  birth_Date: null,
120
- about_me: null,
121
- zip_code: null,
122
- address: null,
123
- job: null,
124
- id_stripe: null,
81
+ about_me: "",
82
+ zip_code: "",
83
+ address: "",
84
+ job: "",
85
+ id_stripe: "",
125
86
  id_role: 0,
126
87
  active: 1,
127
88
  is_retailer: 1,
128
- email_notify: 1,
89
+ email_notify: 0,
129
90
  is_user_tech: null,
130
91
  membership: {
131
- id: 101,
132
- start_date: "2022-12-22T19:16:53.000Z",
133
- end_date: "2023-12-22T19:16:53.000Z",
134
- planID: 8,
135
- plan: "prod_KtlhECVSFG2iro",
92
+ id: 47,
93
+ start_date: "2022-05-25T14:31:12.000Z",
94
+ end_date: "2023-05-25T14:31:12.000Z",
95
+ planID: 5,
96
+ plan: "prod_Ktl6B5Ou2gqTB2",
136
97
  name: "Plan Pro",
137
- user_limit: "20",
138
- products_limit: "5000",
139
- type: "Enterprise",
98
+ user_limit: "5",
99
+ products_limit: "500",
100
+ type: "PyMES",
140
101
  },
141
- src: "https://content-management-profile.s3.amazonaws.com/id-132/132.png?1683921632099",
102
+ src: "https://content-management-profile.s3.amazonaws.com/id-59/59.png?1680038627077",
142
103
  },
143
104
  company: {
144
- id_company: 912,
145
- trade_name: "Financiado Bodega",
146
- company_name: "Bodega",
147
- rfc: "9395jwhs",
148
- adress: "Toluca",
105
+ id_company: 817,
106
+ trade_name: "Retailer acc",
107
+ company_name: "Retailer acc",
108
+ rfc: "ASER12345",
109
+ adress: "Av. Insurgentes",
149
110
  about_company: null,
150
111
  telephone: null,
151
112
  web_site: null,
152
113
  zip_code: null,
153
114
  email: null,
154
115
  social_link: null,
155
- is_retailer: 0,
116
+ is_retailer: 1,
156
117
  financedRetailers: [
157
118
  {
158
- id: 70,
159
- name: "Bodega Aurrera",
119
+ id: 68,
120
+ name: "The Home Depot Merchants",
160
121
  country: "México",
161
122
  id_region: 1,
162
123
  active: 1,
@@ -164,26 +125,26 @@ ProviderProductEditionDefault.args = {
164
125
  ],
165
126
  retailers: [
166
127
  {
167
- id: 70,
168
- name: "Bodega Aurrera",
128
+ id: 59,
129
+ name: "The Home Depot Platinum",
130
+ country: "México",
131
+ },
132
+ {
133
+ id: 60,
134
+ name: "The Home Depot Resizing",
135
+ country: "México",
136
+ },
137
+ {
138
+ id: 61,
139
+ name: "Home Depot TAB",
140
+ country: "México",
141
+ },
142
+ {
143
+ id: 68,
144
+ name: "The Home Depot Merchants",
169
145
  country: "México",
170
146
  },
171
147
  ],
172
148
  },
173
- token:
174
- "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmYjIzMDRlZi1lMWEyLTRjMmItODg3NC1lYjc1NGU0ZjYzMzIiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwiY29nbml0bzp1c2VybmFtZSI6ImZiMjMwNGVmLWUxYTItNGMyYi04ODc0LWViNzU0ZTRmNjMzMiIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiIzNzVlYjM0NC05NDlkLTQ5ZWYtOWZmYy1iOWExZmM3MmU1ZTUiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY4MzkyMTYzMSwibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY4MzkyNTIzMSwiaWF0IjoxNjgzOTIxNjMxLCJlbWFpbCI6ImNhZGVuYWJvZGVnYUBhbGxmcmVlbWFpbC5uZXQifQ.mtA-W1rNzbIveH7a9R8f8Fam7mNLmD0hX6PyRteCA7sJbfT733X_dnETZ3z1-_o7PgELGL-6rHitcj0K9ktGN1TXXewNF3eOOysXfBv5E1mUnnzuCeEm9XCZf-BjHgw4FNAI2BW8CDLJYlfVLLR-TPncVbRtUoXGVY3Vnq2rM6Ziw57uSIOWVzwH9UyYoFpSkl2qnmg7NpDrKA5wG8VRyTbUoRQpSysTxW-Q5epDaxD3CibykwALv_GPw8FtRZlXJMi7j9yKs4ftHaqVGiO7lvI7gqPWXyd1U-NcH-W6CtuyNGpKbexVDgy_nb1esvV0vaMGTq85CgrC4gL3MWEMQg",
175
- tabsSections: {
176
- Descripción: true,
177
- "Ficha técnica": false,
178
- Imágenes: false,
179
- },
180
- location: {
181
- pathname: "/products/37565/datasheet",
182
- state: {
183
- origin: "RequestWithContentoh",
184
- },
185
- search: "",
186
- hash: "",
187
- key: "oym1rf",
188
- },
149
+ showSurvey: (v) => v && alert("se muestra"),
189
150
  };