contentoh-components-library 21.2.2 → 21.2.5

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.
@@ -22,20 +22,13 @@ export const Dashboard = () => {
22
22
  const [retailers, setRetailers] = useState({});
23
23
  const [loading, setLoading] = useState(true);
24
24
 
25
- const loadProductVersions = async (byStatus, queryObject) => {
26
- const { retailerId, startDate, endDate, fullData } = queryObject;
27
- const query = fullData
28
- ? `fullData=true`
29
- : `retailerId=${retailerId}&startDate=${startDate}&endDate=${endDate}`;
25
+ const loadProductVersions = async (queryObject, byStatus = false) => {
26
+ const { retailerId, startDate, endDate} = queryObject;
27
+ const query = `retailerId=${retailerId}&startDate=${startDate}&endDate=${endDate}`;
28
+ const endpoint = byStatus ? process.env.REACT_APP_READ_ORDERS_BY_STATUS : process.env.REACT_APP_READ_REQUIRED_ORDERS
30
29
  try {
31
- const response = await axios.get(
32
- byStatus
33
- ? `${process.env.REACT_APP_READ_ORDERS_BY_STATUS}?${query}`
34
- : `${process.env.REACT_APP_READ_REQUIRED_ORDERS}?retailerId=${retailerId}&startDate=${startDate}&endDate=${endDate}`
35
- );
36
-
37
- const versionList = JSON.parse(response.data.body);
38
- return versionList;
30
+ const response = await axios.get(`${endpoint}?${query}`);
31
+ return JSON.parse(response.data.body);
39
32
  } catch (error) {
40
33
  console.log(error);
41
34
  }
@@ -50,22 +43,30 @@ export const Dashboard = () => {
50
43
  },
51
44
  }
52
45
  );
53
- setRetailers(JSON.parse(retailersResponse.data.body).data);
46
+ const parsed = JSON.parse(retailersResponse.data.body).data;
47
+ const retailers = Object.keys(parsed).map((key) => {
48
+ if (key.includes('The Home Depot')) return parsed[key];
49
+ }).filter((f) => f);
50
+ setRetailers(retailers);
54
51
  };
55
52
 
56
53
  const loadProductsByStatus = async (orderByStatus) => {
57
- const { orders, fullData } = await loadProductVersions(true, orderByStatus);
54
+ const { orders, fullData } = await loadProductVersions(orderByStatus, true);
55
+ const { total, R, ACA, PA } = fullData;
56
+ const inProcess = Object.keys(fullData).reduce((prev, curr) =>
57
+ !['total', 'ACA', 'PA', 'R'].includes(curr) ? prev + fullData[curr] : prev
58
+ , 0);
58
59
  setMetricsData([
59
- { label: "Productos totales", value: fullData?.total },
60
- { label: "Productos sin asignar", value: fullData?.PA },
61
- { label: "Productos en proceso", value: fullData?.CA },
62
- { label: "Productos terminados", value: fullData?.AP },
60
+ { label: "Productos totales", value: total },
61
+ { label: "Productos sin asignar", value: PA + R },
62
+ { label: "Productos en proceso", value: inProcess },
63
+ { label: "Productos terminados", value: ACA },
63
64
  ]);
64
65
  setProductsByStatus(orders);
65
66
  };
66
67
 
67
68
  const loadRequiredProducts = async (orderByRequired) => {
68
- const { dates } = await loadProductVersions(false, orderByRequired);
69
+ const { dates } = await loadProductVersions(orderByRequired);
69
70
  setRequiredProducts(dates);
70
71
  };
71
72
 
@@ -82,16 +83,10 @@ export const Dashboard = () => {
82
83
  setOrderByStatus(queryObject);
83
84
  setOrderByRequired(queryObject);
84
85
  getRetailers();
86
+ loadProductsByStatus(queryObject);
87
+ loadRequiredProducts(queryObject);
85
88
  }, []);
86
89
 
87
- useEffect(() => {
88
- loadProductsByStatus(orderByStatus);
89
- }, [orderByStatus]);
90
-
91
- useEffect(() => {
92
- loadRequiredProducts(orderByRequired);
93
- }, [orderByRequired]);
94
-
95
90
  useEffect(() => {
96
91
  orderByRequired?.retailerId &&
97
92
  orderByStatus?.retailerId &&
@@ -122,7 +117,10 @@ export const Dashboard = () => {
122
117
  retailerSelected={orderByStatus.retailerId}
123
118
  retailers={retailers}
124
119
  queryObject={orderByStatus}
125
- setQueryObject={setOrderByStatus}
120
+ setQueryObject={(evt) => {
121
+ loadProductsByStatus(evt);
122
+ setOrderByStatus(evt);
123
+ }}
126
124
  />
127
125
  <DashboardMetric
128
126
  label={"Productos solicitados"}
@@ -137,7 +135,10 @@ export const Dashboard = () => {
137
135
  retailers={retailers}
138
136
  retailerSelected={orderByRequired.retailerId}
139
137
  queryObject={orderByRequired}
140
- setQueryObject={setOrderByRequired}
138
+ setQueryObject={(evt) => {
139
+ loadRequiredProducts(evt);
140
+ setOrderByRequired(evt);
141
+ }}
141
142
  />
142
143
  </div>
143
144
  </Container>
@@ -16,75 +16,288 @@ RetailerProductEditionDefault.args = {
16
16
  Imágenes: false,
17
17
  },
18
18
  token:
19
- "eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiIwYjY2YTRhOS03NzkwLTQwMzQtYTMwYS1jMDA4MDg5NjI4NjciLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfbFN6UVo0WjdSIiwiY29nbml0bzp1c2VybmFtZSI6IjBiNjZhNGE5LTc3OTAtNDAzNC1hMzBhLWMwMDgwODk2Mjg2NyIsImF1ZCI6IjUyZDlza2tkY2c4cWpwODhvb2sxdXNlNm1rIiwiZXZlbnRfaWQiOiI4ZjA2YmU0NC04ZWEzLTQ5OWMtOGFjZC0xMDlmMDZiZWI1MjAiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY2MDA3NjQ5MywibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY2MDA4MDA5MywiaWF0IjoxNjYwMDc2NDkzLCJlbWFpbCI6ImJheWFkaTE1MzhAbW5xbG0uY29tIn0.aw_x1A8WR2MCp_Kz-T2Jcg0ZtuKwyzQ23yT_OoKr-aGJmEjSPihmksWgLZr9hJXyfvU0JndaVMM_3DRly1TdtJ264zwH4dZ7Cp9gF4TSXG16HQxIIPUA4NnwdpOnlBdE9E27mCXs4XYnCZ7dRMXnkjpRL4PVbrGji9qbEEJR6TxCJafR-zes1o4HC1KfQ5QF4s5I_LYQYbD-Ot0A1zDiJg34HR9tTILu5f4uc_2Nj8bqqYJsEdKg982WWO9ac2uKRPXQqNL6CsdltnSeQQcnS6Wj5DJTRRoc-lRdE6ekpAvDGPo0Dyj1Q8GYH3uxvM-pVu8J1Z_JOtO5j5mPN9krpA",
19
+ "eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiIwYjY2YTRhOS03NzkwLTQwMzQtYTMwYS1jMDA4MDg5NjI4NjciLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfbFN6UVo0WjdSIiwiY29nbml0bzp1c2VybmFtZSI6IjBiNjZhNGE5LTc3OTAtNDAzNC1hMzBhLWMwMDgwODk2Mjg2NyIsImF1ZCI6IjUyZDlza2tkY2c4cWpwODhvb2sxdXNlNm1rIiwiZXZlbnRfaWQiOiIzNmIxMmUwMy0xOWJhLTRiMDktYWJiYS1kZjk3ZTFkNThjZTQiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY2MDE4MjgzNywibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY2MDE4NjQzNywiaWF0IjoxNjYwMTgyODM3LCJlbWFpbCI6ImJheWFkaTE1MzhAbW5xbG0uY29tIn0.MM9nIHkrRIS2o8_s4BR6VTLgyw3ryvPrr-mf6RtnQ4smng2Q3fmtK07zInNcvcrv8EXO5J9z47_NZ5MOJDo1Pz1CV2cOYM7PT5tEn3F-W4SitqDbBw3KxfkqSMxdZUIHLWECGL-u2ATCYU2J4KRVQi8XSP1qbfv1hu9dh-vID8Fq641ccQwEqUDC13pshDPlR08legg7AAPJqoilV7wuvxqTYAK6fGqMS5jcdW2iDmU0ti9gkydXkYRIC-jg446VOmRCpwzKsk4UAPwlrGeodQ0LV1bfWn_-KVspWCRQd6U5WbFxHn0umYe3CvvPpyVmHzD3F_EMxaVyqV5aW5IoIQ",
20
20
  productSelected: {
21
21
  services: {
22
- datasheets: 0,
23
- descriptions: 0,
22
+ datasheets: 1,
23
+ descriptions: 1,
24
24
  images: 1,
25
25
  },
26
- orderId: 1789,
27
- status: "ACA",
28
- datasheet_status: "NS",
26
+ orderId: 2296,
27
+ status: "AP",
28
+ datasheet_status: "AP",
29
29
  prio: "none",
30
- version: 2,
31
- description_status: "NS",
32
- images_status: "ACA",
30
+ version: 8,
31
+ description_status: "ACA",
32
+ images_status: "AP",
33
33
  article: {
34
- id_article: 68865,
35
- id_category: "2999",
36
- name: "RESIZE",
37
- upc: "169955",
38
- timestamp: "2022-06-21T16:03:10.000Z",
39
- id_user: 1238,
40
- status: "NULL",
41
- active: 0,
42
- company_id: 819,
34
+ id_article: 14701,
35
+ id_category: "684",
36
+ name: "Pasta Dental Colgate Total 12 Clean Mint de 100 ml",
37
+ upc: "7501035911369",
38
+ timestamp: "2021-10-09T16:33:17.000Z",
39
+ id_user: 203,
40
+ status: "Ex",
41
+ active: 1,
42
+ company_id: 226,
43
43
  SKU: null,
44
44
  Descripcion: null,
45
45
  Proveedor: null,
46
46
  id_proveedor: 0,
47
- company_name: "The Home Depot Resize",
48
- country: "México",
49
- id_order: 1789,
50
- id_datasheet_especialist: null,
51
- id_datasheet_facilitator: null,
52
- id_description_especialist: null,
53
- id_description_facilitator: null,
54
- id_images_especialist: 1250,
55
- id_images_facilitator: 424,
56
- id_auditor: null,
47
+ company_name: "Prueba Test S.A de C.V.",
48
+ country: "null",
49
+ id_order: 2296,
50
+ id_datasheet_especialist: 405,
51
+ id_datasheet_facilitator: 158,
52
+ id_description_especialist: 405,
53
+ id_description_facilitator: 158,
54
+ id_images_especialist: 366,
55
+ id_images_facilitator: 160,
56
+ id_auditor: 9,
57
57
  id_recepcionist: null,
58
- category: "Resizing|Resizing|Resizing",
59
- missingAttributes: null,
60
- missingDescriptions: null,
61
- missingImages: null,
58
+ category: "Salud y Belleza|Cuidado Bucal|Pastas Dentales y Aseo Bucal",
59
+ missingAttributes: -1,
60
+ missingDescriptions: 3,
61
+ missingImages: -9,
62
62
  },
63
63
  retailers: [
64
64
  {
65
- id: 60,
66
- name: "The Home Depot Resizing",
65
+ id: 4,
66
+ name: "Walmart Super y Superama",
67
67
  country: "México",
68
68
  id_region: 1,
69
69
  active: 1,
70
+ percentage: 97.61904761904763,
71
+ image:
72
+ "https://content-management-images.s3.amazonaws.com/retailers/4.png",
73
+ services: ["NA", "NA", "NA"],
74
+ },
75
+ {
76
+ id: 5,
77
+ name: "Chedraui",
78
+ country: "México",
79
+ id_region: 1,
80
+ active: 1,
81
+ percentage: 100,
82
+ image:
83
+ "https://content-management-images.s3.amazonaws.com/retailers/5.png",
84
+ services: ["NA", "NA", "NA"],
85
+ },
86
+ {
87
+ id: 6,
88
+ name: "HEB",
89
+ country: "México",
90
+ id_region: 1,
91
+ active: 1,
92
+ percentage: 100,
93
+ image:
94
+ "https://content-management-images.s3.amazonaws.com/retailers/6.png",
95
+ services: ["AP", "ACA", "AP"],
96
+ },
97
+ {
98
+ id: 7,
99
+ name: "Mega",
100
+ country: "México",
101
+ id_region: 1,
102
+ active: 1,
103
+ percentage: 100,
104
+ image:
105
+ "https://content-management-images.s3.amazonaws.com/retailers/7.png",
106
+ services: ["NA", "NA", "NA"],
107
+ },
108
+ {
109
+ id: 8,
110
+ name: "Fragua",
111
+ country: "México",
112
+ id_region: 1,
113
+ active: 1,
114
+ percentage: null,
115
+ image:
116
+ "https://content-management-images.s3.amazonaws.com/retailers/8.png",
117
+ services: ["NA", "NA", "NA"],
118
+ },
119
+ {
120
+ id: 9,
121
+ name: "Amazon",
122
+ country: "México",
123
+ id_region: 1,
124
+ active: 1,
125
+ percentage: 85.18518518518518,
126
+ image:
127
+ "https://content-management-images.s3.amazonaws.com/retailers/9.png",
128
+ services: ["NA", "NA", "NA"],
129
+ },
130
+ {
131
+ id: 12,
132
+ name: "La Comer",
133
+ country: "México",
134
+ id_region: 1,
135
+ active: 1,
136
+ percentage: 100,
137
+ image:
138
+ "https://content-management-images.s3.amazonaws.com/retailers/12.png",
139
+ services: ["NA", "NA", "NA"],
140
+ },
141
+ {
142
+ id: 13,
143
+ name: "Soriana",
144
+ country: "México",
145
+ id_region: 1,
146
+ active: 1,
147
+ percentage: 100,
148
+ image:
149
+ "https://content-management-images.s3.amazonaws.com/retailers/13.png",
150
+ services: ["NA", "NA", "NA"],
151
+ },
152
+ {
153
+ id: 16,
154
+ name: "Rappi",
155
+ country: "México",
156
+ id_region: 1,
157
+ active: 1,
158
+ percentage: 93.33333333333333,
159
+ image:
160
+ "https://content-management-images.s3.amazonaws.com/retailers/16.png",
161
+ services: ["NA", "NA", "NA"],
162
+ },
163
+ {
164
+ id: 17,
165
+ name: "Genérico",
166
+ country: "México",
167
+ id_region: 1,
168
+ active: 1,
169
+ percentage: 100,
170
+ image:
171
+ "https://content-management-images.s3.amazonaws.com/retailers/17.png",
172
+ services: ["NA", "NA", "NA"],
173
+ },
174
+ {
175
+ id: 18,
176
+ name: "Google",
177
+ country: "México",
178
+ id_region: 1,
179
+ active: 1,
180
+ percentage: 96.66666666666667,
181
+ image:
182
+ "https://content-management-images.s3.amazonaws.com/retailers/18.png",
183
+ services: ["NA", "NA", "NA"],
184
+ },
185
+ {
186
+ id: 20,
187
+ name: "Cornershop",
188
+ country: "México",
189
+ id_region: 1,
190
+ active: 1,
191
+ percentage: 91.66666666666667,
192
+ image:
193
+ "https://content-management-images.s3.amazonaws.com/retailers/20.png",
194
+ services: ["NA", "NA", "NA"],
195
+ },
196
+ {
197
+ id: 24,
198
+ name: "Alsuper",
199
+ country: "México",
200
+ id_region: 1,
201
+ active: 1,
202
+ percentage: 95.83333333333333,
203
+ image:
204
+ "https://content-management-images.s3.amazonaws.com/retailers/24.png",
205
+ services: ["NA", "NA", "NA"],
206
+ },
207
+ {
208
+ id: 27,
209
+ name: "IMPIRA México",
210
+ country: "México",
211
+ id_region: 1,
212
+ active: 1,
213
+ percentage: 100,
214
+ image:
215
+ "https://content-management-images.s3.amazonaws.com/retailers/27.png",
216
+ services: ["NA", "NA", "NA"],
217
+ },
218
+ {
219
+ id: 29,
220
+ name: "Farmacias del Ahorro",
221
+ country: "México",
222
+ id_region: 1,
223
+ active: 1,
224
+ percentage: 81.48148148148148,
225
+ image:
226
+ "https://content-management-images.s3.amazonaws.com/retailers/29.png",
227
+ services: ["NA", "NA", "NA"],
228
+ },
229
+ {
230
+ id: 33,
231
+ name: "Merza",
232
+ country: "México",
233
+ id_region: 1,
234
+ active: 1,
235
+ percentage: 66.66666666666667,
236
+ image:
237
+ "https://content-management-images.s3.amazonaws.com/retailers/33.png",
238
+ services: ["NA", "NA", "NA"],
239
+ },
240
+ {
241
+ id: 34,
242
+ name: "San Pablo",
243
+ country: "México",
244
+ id_region: 1,
245
+ active: 1,
246
+ percentage: 95.16666666666667,
247
+ image:
248
+ "https://content-management-images.s3.amazonaws.com/retailers/34.png",
249
+ services: ["NA", "NA", "NA"],
250
+ },
251
+ {
252
+ id: 38,
253
+ name: "Del Sol",
254
+ country: "México",
255
+ id_region: 1,
256
+ active: 1,
257
+ percentage: 100,
258
+ image:
259
+ "https://content-management-images.s3.amazonaws.com/retailers/38.png",
260
+ services: ["NA", "NA", "NA"],
261
+ },
262
+ {
263
+ id: 39,
264
+ name: "Justo",
265
+ country: "México",
266
+ id_region: 1,
267
+ active: 1,
268
+ percentage: 94.73684210526316,
269
+ image:
270
+ "https://content-management-images.s3.amazonaws.com/retailers/39.png",
271
+ services: ["NA", "NA", "NA"],
272
+ },
273
+ {
274
+ id: 62,
275
+ name: "Sanborns Café",
276
+ country: "México",
277
+ id_region: 1,
278
+ active: 1,
279
+ percentage: 100,
280
+ image:
281
+ "https://content-management-images.s3.amazonaws.com/retailers/62.png",
282
+ services: ["NA", "NA", "NA"],
70
283
  },
71
284
  ],
72
- country: "México",
73
- upc: "169955",
285
+ country: "null",
286
+ upc: "7501035911369",
74
287
  },
75
288
  location: {
76
289
  product: { articleId: 109485, versionId: 3 },
77
290
  },
78
291
  user: {
79
- id_user: 425,
80
- name: "Auditor QA",
292
+ id_user: 423,
293
+ name: "Facilitador Textos",
81
294
  last_name: " ",
82
- email: "ladiboh785@mi166.com",
295
+ email: "bayadi1538@mnqlm.com",
83
296
  position: "Tester",
84
297
  telephone: null,
85
298
  country: null,
86
299
  id_company: 254,
87
- id_cognito: "23a3f496-4e38-4e12-9bf5-7f90b77a2f35",
300
+ id_cognito: "0b66a4a9-7790-4034-a30a-c00808962867",
88
301
  birth_Date: null,
89
302
  about_me: null,
90
303
  zip_code: null,
@@ -106,6 +319,6 @@ RetailerProductEditionDefault.args = {
106
319
  products_limit: "1000",
107
320
  type: "Enterprise",
108
321
  },
109
- src: "https://content-management-profile-prod.s3.amazonaws.com/id-425/425.png?1659649029658",
322
+ src: "https://content-management-profile-prod.s3.amazonaws.com/id-423/423.png?1660182839373",
110
323
  },
111
324
  };
@@ -60,7 +60,7 @@ const reducerImages = (state, action) => {
60
60
  values[action.index][action.attribute] = action.value;
61
61
  return { ...state, values };
62
62
  case "changeAttrValue":
63
- const index = attrForImgs.general.findIndex((f) => (f.id = action.id));
63
+ const index = attrForImgs.general.findIndex((f) => f.id === action.id);
64
64
  if (index !== -1) {
65
65
  attrForImgs.general[index].value = action.value;
66
66
  }
@@ -1,48 +0,0 @@
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.StatusTagDefault = void 0;
9
-
10
- var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
11
-
12
- var _index = require("./index");
13
-
14
- var _variables = require("../../../global-files/variables");
15
-
16
- var _jsxRuntime = require("react/jsx-runtime");
17
-
18
- var status = _variables.GlobalStatus;
19
- var _default = {
20
- title: "Components/atoms/StatusTag",
21
- component: _index.StatusTag,
22
- argTypes: {
23
- statusType: {
24
- options: status,
25
- control: {
26
- type: "select"
27
- }
28
- },
29
- ovalForm: {
30
- options: [true, false],
31
- control: {
32
- type: "boolean"
33
- }
34
- }
35
- }
36
- };
37
- exports.default = _default;
38
-
39
- var Template = function Template(args) {
40
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.StatusTag, (0, _objectSpread2.default)({}, args));
41
- };
42
-
43
- var StatusTagDefault = Template.bind({});
44
- exports.StatusTagDefault = StatusTagDefault;
45
- StatusTagDefault.args = {
46
- statusType: "-",
47
- ovalForm: false
48
- };
@@ -1,58 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.StatusTag = void 0;
7
-
8
- var _styles = require("./styles");
9
-
10
- var _jsxRuntime = require("react/jsx-runtime");
11
-
12
- var StatusTag = function StatusTag(_ref) {
13
- var statusType = _ref.statusType,
14
- ovalForm = _ref.ovalForm;
15
-
16
- var getShortStatus = function getShortStatus(status) {
17
- switch (status) {
18
- case "COMPLETED":
19
- return "C";
20
-
21
- case "RECEPTION":
22
- return "Pr";
23
-
24
- case "NULL":
25
- return "-";
26
-
27
- case "RECEIVED":
28
- return "Rc";
29
-
30
- case "IN_PROGRESS":
31
- return "P";
32
-
33
- case "ASSIGNED":
34
- return "As";
35
-
36
- case "APPROVED":
37
- return "Ap";
38
-
39
- case "VALIDATING":
40
- return "V";
41
-
42
- case "PAID_OUT":
43
- return "Po";
44
-
45
- default:
46
- return status;
47
- }
48
- };
49
-
50
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
51
- className: "status-".concat(getShortStatus(statusType), " ").concat(ovalForm && "oval-form"),
52
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
53
- children: getShortStatus(statusType)
54
- })
55
- });
56
- };
57
-
58
- exports.StatusTag = StatusTag;
@@ -1,20 +0,0 @@
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.Container = void 0;
9
-
10
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
11
-
12
- var _styledComponents = _interopRequireDefault(require("styled-components"));
13
-
14
- var _variables = require("../../../global-files/variables");
15
-
16
- var _templateObject;
17
-
18
- var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: fit-content;\n padding: 0 10px;\n height: 20px;\n background-color: ", ";\n border-radius: 3px;\n\n p {\n text-align: center;\n color: ", ";\n font-family: ", ";\n font-size: 12px;\n line-height: 20px;\n }\n\n &.status-As,\n &.status-P,\n &.status-IN_PROGRESS,\n &.status-QF {\n background-color: ", ";\n }\n\n &.status-Pr,\n &.status-Rr,\n &.status-Rc {\n background-color: ", ";\n }\n\n &.status-AA,\n &.status-AP,\n &.status-AC,\n &.status-AF {\n background-color: ", ";\n }\n\n &.status-RA,\n &.status-RF,\n &.status-RP,\n &.status-RC {\n background-color: ", ";\n }\n\n &.status-Dat,\n &.status-Dsc,\n &.status-Imgs {\n background-color: ", ";\n }\n\n &.status-Ex {\n background-color: ", ";\n }\n\n &.status-DDI {\n background-color: ", ";\n }\n\n &.status-GLD {\n background-color: ", ";\n }\n\n &.status-TAB {\n background-color: ", ";\n }\n\n &.status-Pt {\n background-color: ", ";\n color: ", ";\n }\n\n &.oval-form {\n border-radius: 10px;\n }\n"])), _variables.GlobalColors.s3, _variables.GlobalColors.white, _variables.FontFamily.Lato, _variables.GlobalColors.in_progress, _variables.GlobalColors.reception, _variables.GlobalColors.finished, _variables.GlobalColors.rejected_status, _variables.GlobalColors.s4, _variables.GlobalColors.exported, _variables.GlobalColors.original_purpura, _variables.GlobalColors.in_progress, _variables.GlobalColors.deep_gray, _variables.GlobalColors.s2, _variables.GlobalColors.s4);
19
-
20
- exports.Container = Container;
@@ -1,37 +0,0 @@
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.RegistrationLoginFirstStepDefault = void 0;
9
-
10
- var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
11
-
12
- var _index = require("./index");
13
-
14
- var _loginImage = _interopRequireDefault(require("../../../assets/images/carouselImagesLogin/loginImage.svg"));
15
-
16
- var _login = _interopRequireDefault(require("../../../assets/images/carouselImagesLogin/login2.svg"));
17
-
18
- var _login2 = _interopRequireDefault(require("../../../assets/images/carouselImagesLogin/login3.svg"));
19
-
20
- var _jsxRuntime = require("react/jsx-runtime");
21
-
22
- var _default = {
23
- title: "Components/pages/RegistrationLoginFirstStep",
24
- component: _index.RegistrationLoginFirstStep
25
- };
26
- exports.default = _default;
27
-
28
- var Template = function Template(args) {
29
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.RegistrationLoginFirstStep, (0, _objectSpread2.default)({}, args));
30
- };
31
-
32
- var RegistrationLoginFirstStepDefault = Template.bind({});
33
- exports.RegistrationLoginFirstStepDefault = RegistrationLoginFirstStepDefault;
34
- RegistrationLoginFirstStepDefault.args = {
35
- imageArrayCarousel: [_loginImage.default, _login.default, _login2.default],
36
- textCarousel: "Elige la plataforma que conecta proovedores y retailers"
37
- };