contentoh-components-library 21.4.37 → 21.4.39

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 (55) hide show
  1. package/dist/assets/images/Icons/delete.svg +8 -0
  2. package/dist/assets/images/Icons/edit.svg +3 -0
  3. package/dist/assets/images/Icons/info.svg +8 -0
  4. package/dist/components/molecules/BoxAttribute/BoxAttribute.stories.js +33 -0
  5. package/dist/components/molecules/BoxAttribute/index.js +73 -0
  6. package/dist/components/molecules/BoxAttribute/styles.js +23 -0
  7. package/dist/components/molecules/BoxButtons/BoxButtons.stories.js +31 -0
  8. package/dist/components/molecules/BoxButtons/index.js +56 -0
  9. package/dist/components/molecules/BoxButtons/styles.js +24 -0
  10. package/dist/components/molecules/ButtonsAssignation/ButtonsAssignation.stories.js +34 -0
  11. package/dist/components/molecules/ButtonsAssignation/index.js +142 -0
  12. package/dist/components/molecules/ButtonsAssignation/styles.js +20 -0
  13. package/dist/components/molecules/ButtonsEdition/ButtonsEdition.stories.js +34 -0
  14. package/dist/components/molecules/ButtonsEdition/index.js +182 -0
  15. package/dist/components/molecules/ButtonsEdition/styles.js +24 -0
  16. package/dist/components/molecules/ProductSkuStatus/ProductSkuStatus.stories.js +64 -0
  17. package/dist/components/molecules/ProductSkuStatus/index.js +36 -0
  18. package/dist/components/molecules/ProductSkuStatus/styles.js +18 -0
  19. package/dist/components/molecules/Validation/Validation.stories.js +28 -0
  20. package/dist/components/molecules/Validation/index.js +77 -0
  21. package/dist/components/molecules/Validation/styles.js +18 -0
  22. package/dist/components/organisms/BarButtons/BarButtons.stories.js +30 -0
  23. package/dist/components/organisms/BarButtons/index.js +61 -0
  24. package/dist/components/organisms/BarButtons/styles.js +18 -0
  25. package/dist/components/organisms/Box/Box.stories.js +37 -0
  26. package/dist/components/organisms/Box/index.js +99 -0
  27. package/dist/components/organisms/Box/styles.js +20 -0
  28. package/dist/components/organisms/BoxOnboarding/BoxOnboarding.stories.js +37 -0
  29. package/dist/components/organisms/BoxOnboarding/index.js +69 -0
  30. package/dist/components/organisms/BoxOnboarding/styles.js +20 -0
  31. package/dist/components/organisms/InputGroup/index.js +83 -48
  32. package/dist/components/pages/ProviderProductEdition/index.js +4 -2
  33. package/dist/components/pages/ProviderProductEdition1/ProviderProductEdition.stories.js +222 -0
  34. package/dist/components/pages/ProviderProductEdition1/index.js +2339 -0
  35. package/dist/components/pages/ProviderProductEdition1/styles.js +23 -0
  36. package/dist/global-files/data.js +4 -4
  37. package/dist/global-files/variables.js +5 -1
  38. package/package.json +1 -1
  39. package/src/assets/images/Icons/info.svg +8 -0
  40. package/src/components/molecules/BoxAttribute/BoxAttribute.stories.js +17 -0
  41. package/src/components/molecules/BoxAttribute/index.js +71 -0
  42. package/src/components/molecules/BoxAttribute/styles.js +35 -0
  43. package/src/components/molecules/BoxButtons/BoxButtons.stories.js +15 -0
  44. package/src/components/molecules/BoxButtons/index.js +32 -0
  45. package/src/components/molecules/BoxButtons/styles.js +43 -0
  46. package/src/components/organisms/Box/Box.stories.js +17 -0
  47. package/src/components/organisms/Box/index.js +61 -0
  48. package/src/components/organisms/Box/styles.js +48 -0
  49. package/src/components/organisms/BoxOnboarding/BoxOnboarding.stories.js +17 -0
  50. package/src/components/organisms/BoxOnboarding/index.js +63 -0
  51. package/src/components/organisms/BoxOnboarding/styles.js +44 -0
  52. package/src/components/organisms/InputGroup/index.js +31 -0
  53. package/src/components/pages/ProviderProductEdition/index.js +4 -1
  54. package/src/global-files/data.js +3 -2
  55. package/src/global-files/variables.js +4 -0
@@ -0,0 +1,222 @@
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.ProviderProductEdition1Default = 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 _default = {
17
+ title: "Components/pages/ProviderProductEdition1",
18
+ component: _index.ProviderProductEdition1
19
+ };
20
+ exports.default = _default;
21
+
22
+ var Template = function Template(args) {
23
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ProviderProductEdition1, (0, _objectSpread2.default)({}, args));
24
+ };
25
+
26
+ var ProviderProductEdition1Default = Template.bind({});
27
+ exports.ProviderProductEdition1Default = ProviderProductEdition1Default;
28
+ ProviderProductEdition1Default.args = {
29
+ tabsSections: {
30
+ Descripción: true,
31
+ "Ficha técnica": false,
32
+ Imágenes: false
33
+ },
34
+ token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmNTkyN2Y4ZS1jYmY3LTQ5MjItOWUwOS1lNjllYzBiMjczMWEiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImY1OTI3ZjhlLWNiZjctNDkyMi05ZTA5LWU2OWVjMGIyNzMxYSIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiIyM2Q1NTlmYi1jMzIwLTRhMjItYjJmNy1lOThhYTFhZGEyNmYiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY4MzkyNjgyMSwibmFtZSI6IklzbWFlbCBMb3BleiIsInBob25lX251bWJlciI6Iis1MjMxMTEzNjYzMzYiLCJleHAiOjE2ODM5MzA0MjEsImlhdCI6MTY4MzkyNjgyMSwiZW1haWwiOiJpbG9wZXpAY29udGVudG9oLmNvbSJ9.TvCoaKoctj5mypXWMz3NyV1Vm1ToBV0vJmpVyZSQw4-ikTChkxcZ5tFYvqhk1GdvNCFttfSQIqM-14dAYYBc28YwwKP86gqOuzB1fG41rN5x1Yx3tkJq6hiVRgiBbSHWtThA9c8VnxNQbrJiaRTvvkDiM5KNTEst1oxQHL5Ct9_iKQMJMRFie7Xv0xnyS0qZ6QHK4Q2A9OHsnDkAuumALZJcE19Zh6VgSitgWrZiz3x5Text4Q-U-R48NUAzUFirAzYZzJN_fCme5pGf1AnUaZjeUjPsmrV5TBVzPEYwXO0KG8lYjL8id80D7tbGs28ZIK6B4rf3-eqI_ngmBB4CjQ",
35
+ articleId: 238,
36
+ category: 846,
37
+ version: 2,
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
+ },
87
+ retailersAvailable: [{
88
+ id: 34,
89
+ name: "San Pablo"
90
+ }],
91
+ categoryName: "Abarrotes|Abarrotes Secos|Frutos Secos",
92
+ upc: "7543453453",
93
+ id_article: 39485,
94
+ id_order: 15275
95
+ },
96
+ 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
+ },
148
+ retailersAvailable: [{
149
+ id: 34,
150
+ name: "San Pablo"
151
+ }],
152
+ categoryName: "Abarrotes|Abarrotes Secos|Frutos Secos",
153
+ upc: "7543453453",
154
+ id_article: 39485,
155
+ id_order: 15275
156
+ }
157
+ },
158
+ location: {
159
+ pathname: "/EditProducts",
160
+ search: "",
161
+ hash: "",
162
+ state: {
163
+ withChat: true,
164
+ chatType: "product_status",
165
+ origin: "RequestWithContentoh"
166
+ },
167
+ key: "24vwut"
168
+ },
169
+ user: {
170
+ id_user: 28,
171
+ name: "Ismael",
172
+ last_name: "López",
173
+ email: "ilopez@contentoh.com",
174
+ position: "Test States",
175
+ telephone: "+523111366336",
176
+ country: "México",
177
+ id_company: 1,
178
+ id_cognito: "f5927f8e-cbf7-4922-9e09-e69ec0b2731a",
179
+ birth_Date: null,
180
+ about_me: "",
181
+ zip_code: "",
182
+ address: "",
183
+ job: "",
184
+ id_stripe: "cus_KuEt6R6vwmN09f",
185
+ id_role: 0,
186
+ active: 1,
187
+ is_retailer: 0,
188
+ email_notify: 1,
189
+ is_user_tech: "ADMIN-AS",
190
+ membership: {
191
+ id: 76,
192
+ start_date: "2022-01-18T17:25:35.000Z",
193
+ end_date: "2023-01-18T17:25:35.000Z",
194
+ planID: 8,
195
+ plan: "prod_KtlhECVSFG2iro",
196
+ name: "Plan Pro",
197
+ user_limit: "50",
198
+ products_limit: "5000",
199
+ type: "Enterprise"
200
+ },
201
+ src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1693338334183"
202
+ },
203
+ company: {
204
+ id_company: 1,
205
+ trade_name: "GRUPO BRAHMA",
206
+ company_name: "GRUPO BRAHMA",
207
+ rfc: "XAXX010101000",
208
+ adress: "AA",
209
+ about_company: "",
210
+ telephone: "",
211
+ web_site: "",
212
+ zip_code: "",
213
+ email: null,
214
+ social_link: "",
215
+ is_retailer: 0,
216
+ financedRetailers: [],
217
+ retailers: []
218
+ },
219
+ showSurvey: function showSurvey(v) {
220
+ return v && alert("se muestra");
221
+ }
222
+ };