contentoh-components-library 21.6.24 → 21.6.26

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.
@@ -2,6 +2,25 @@ import styled from "styled-components";
2
2
  import "../../../global-files/global-styles.css";
3
3
  import { GlobalColors, FontFamily } from "../../../global-files/variables";
4
4
 
5
+ // Rosa ContentOh. Va aquí y no en variables.js porque cambiar la constante
6
+ // global tocaría todos los componentes que ya la usan; este modal es lo que hay
7
+ // que alinear con la marca.
8
+ const PINK = "#E13AA8";
9
+ const PINK_RGB = "225, 58, 168";
10
+
11
+ // accent-color pinta el relleno de checkboxes y radios con el color de marca en
12
+ // vez del azul del sistema, sin reemplazarlos por divs: siguen siendo controles
13
+ // nativos, con su foco y su navegación por teclado intactos.
14
+ const controls = `
15
+ input[type="checkbox"],
16
+ input[type="radio"] {
17
+ accent-color: ${PINK};
18
+ width: 15px;
19
+ height: 15px;
20
+ cursor: pointer;
21
+ }
22
+ `;
23
+
5
24
  export const Overlay = styled.div`
6
25
  position: fixed;
7
26
  inset: 0;
@@ -13,6 +32,7 @@ export const Overlay = styled.div`
13
32
  `;
14
33
 
15
34
  export const Panel = styled.div`
35
+ ${controls}
16
36
  display: flex;
17
37
  flex-direction: column;
18
38
  width: min(680px, 92vw);
@@ -33,13 +53,13 @@ export const Header = styled.div`
33
53
  h2 {
34
54
  margin: 0;
35
55
  font-family: ${FontFamily.Raleway_700};
36
- font-size: 16px;
56
+ font-size: 17px;
37
57
  color: ${GlobalColors.deep_gray};
38
58
  }
39
59
 
40
60
  p {
41
61
  margin: 4px 0 0;
42
- font-size: 12px;
62
+ font-size: 13px;
43
63
  color: ${GlobalColors.gray};
44
64
  }
45
65
 
@@ -47,7 +67,7 @@ export const Header = styled.div`
47
67
  border: none;
48
68
  background: none;
49
69
  cursor: pointer;
50
- font-size: 20px;
70
+ font-size: 21px;
51
71
  line-height: 1;
52
72
  color: ${GlobalColors.gray};
53
73
  }
@@ -65,16 +85,16 @@ export const ModeSwitch = styled.div`
65
85
  border: 1px solid ${GlobalColors.s2};
66
86
  background-color: ${GlobalColors.white};
67
87
  font-family: ${FontFamily.Raleway_600};
68
- font-size: 12px;
88
+ font-size: 13px;
69
89
  color: ${GlobalColors.gray};
70
90
  cursor: pointer;
71
91
  text-align: left;
72
92
  }
73
93
 
74
94
  button.active {
75
- border-color: ${GlobalColors.original_magenta};
76
- color: ${GlobalColors.original_magenta};
77
- background-color: rgba(${GlobalColors.rgb_color_pink}, 0.08);
95
+ border-color: ${PINK};
96
+ color: ${PINK};
97
+ background-color: rgba(${PINK_RGB}, 0.08);
78
98
  }
79
99
  `;
80
100
 
@@ -91,14 +111,14 @@ export const Body = styled.div`
91
111
  padding: 10px 12px;
92
112
  border-radius: 6px;
93
113
  background-color: ${GlobalColors.s2};
94
- font-size: 12px;
114
+ font-size: 13px;
95
115
  color: ${GlobalColors.deep_gray};
96
116
  cursor: pointer;
97
117
  }
98
118
 
99
119
  .apply-all .hint {
100
120
  display: block;
101
- font-size: 11px;
121
+ font-size: 12px;
102
122
  color: ${GlobalColors.gray};
103
123
  }
104
124
  `;
@@ -115,7 +135,7 @@ export const SearchRow = styled.form`
115
135
  border: 1px solid ${GlobalColors.s2};
116
136
  border-radius: 6px;
117
137
  font-family: ${FontFamily.Raleway};
118
- font-size: 12px;
138
+ font-size: 13px;
119
139
  color: ${GlobalColors.deep_gray};
120
140
  }
121
141
 
@@ -124,10 +144,10 @@ export const SearchRow = styled.form`
124
144
  padding: 0 18px;
125
145
  border: none;
126
146
  border-radius: 6px;
127
- background-color: ${GlobalColors.original_magenta};
147
+ background-color: ${PINK};
128
148
  color: ${GlobalColors.white};
129
149
  font-family: ${FontFamily.Raleway_600};
130
- font-size: 12px;
150
+ font-size: 13px;
131
151
  cursor: pointer;
132
152
  }
133
153
 
@@ -154,13 +174,13 @@ export const List = styled.ul`
154
174
  gap: 10px;
155
175
  padding: 10px 12px;
156
176
  cursor: pointer;
157
- font-size: 12px;
177
+ font-size: 13px;
158
178
  color: ${GlobalColors.deep_gray};
159
179
  }
160
180
 
161
181
  .meta {
162
182
  display: block;
163
- font-size: 11px;
183
+ font-size: 12px;
164
184
  color: ${GlobalColors.gray};
165
185
  }
166
186
 
@@ -174,8 +194,8 @@ export const List = styled.ul`
174
194
 
175
195
  .count {
176
196
  margin-left: auto;
177
- font-size: 11px;
178
- color: ${GlobalColors.original_magenta};
197
+ font-size: 12px;
198
+ color: ${PINK};
179
199
  white-space: nowrap;
180
200
  }
181
201
  `;
@@ -186,7 +206,7 @@ export const AttributeList = styled(List)`
186
206
 
187
207
  .note {
188
208
  display: block;
189
- font-size: 10px;
209
+ font-size: 11px;
190
210
  font-style: italic;
191
211
  color: ${GlobalColors.gray};
192
212
  }
@@ -194,7 +214,7 @@ export const AttributeList = styled(List)`
194
214
  .value {
195
215
  margin-left: auto;
196
216
  max-width: 45%;
197
- font-size: 11px;
217
+ font-size: 12px;
198
218
  color: ${GlobalColors.gray};
199
219
  overflow: hidden;
200
220
  text-overflow: ellipsis;
@@ -208,7 +228,7 @@ export const Section = styled.div`
208
228
  h3 {
209
229
  margin: 0 0 8px;
210
230
  font-family: ${FontFamily.Raleway_600};
211
- font-size: 13px;
231
+ font-size: 14px;
212
232
  color: ${GlobalColors.deep_gray};
213
233
  }
214
234
 
@@ -217,14 +237,14 @@ export const Section = styled.div`
217
237
  align-items: flex-start;
218
238
  gap: 8px;
219
239
  padding: 6px 0;
220
- font-size: 12px;
240
+ font-size: 13px;
221
241
  color: ${GlobalColors.deep_gray};
222
242
  cursor: pointer;
223
243
  }
224
244
 
225
245
  label.choice span.hint {
226
246
  display: block;
227
- font-size: 11px;
247
+ font-size: 12px;
228
248
  color: ${GlobalColors.gray};
229
249
  }
230
250
  `;
@@ -233,14 +253,14 @@ export const Message = styled.p`
233
253
  margin: 0 0 12px;
234
254
  padding: 10px 12px;
235
255
  border-radius: 6px;
236
- font-size: 12px;
256
+ font-size: 13px;
237
257
  line-height: 1.4;
238
258
  background-color: ${GlobalColors.s2};
239
259
  color: ${GlobalColors.deep_gray};
240
260
 
241
261
  &.error {
242
- background-color: rgba(${GlobalColors.rgb_color_pink}, 0.1);
243
- color: ${GlobalColors.original_magenta};
262
+ background-color: rgba(${PINK_RGB}, 0.1);
263
+ color: ${PINK};
244
264
  }
245
265
  `;
246
266
 
@@ -253,7 +273,7 @@ export const Footer = styled.div`
253
273
  border-top: 1px solid ${GlobalColors.s2};
254
274
 
255
275
  .summary {
256
- font-size: 12px;
276
+ font-size: 13px;
257
277
  color: ${GlobalColors.gray};
258
278
  }
259
279
 
@@ -268,7 +288,7 @@ export const Footer = styled.div`
268
288
  padding: 0 18px;
269
289
  border-radius: 6px;
270
290
  font-family: ${FontFamily.Raleway_600};
271
- font-size: 12px;
291
+ font-size: 13px;
272
292
  cursor: pointer;
273
293
  }
274
294
 
@@ -280,7 +300,7 @@ export const Footer = styled.div`
280
300
 
281
301
  button.primary {
282
302
  border: none;
283
- background-color: ${GlobalColors.original_magenta};
303
+ background-color: ${PINK};
284
304
  color: ${GlobalColors.white};
285
305
  }
286
306
 
@@ -308,8 +328,8 @@ export const ImageGrid = styled.div`
308
328
  }
309
329
 
310
330
  label.picked {
311
- border-color: ${GlobalColors.original_magenta};
312
- background-color: rgba(${GlobalColors.rgb_color_pink}, 0.06);
331
+ border-color: ${PINK};
332
+ background-color: rgba(${PINK_RGB}, 0.06);
313
333
  }
314
334
 
315
335
  label.locked {
@@ -331,7 +351,7 @@ export const ImageGrid = styled.div`
331
351
  }
332
352
 
333
353
  label span {
334
- font-size: 10px;
354
+ font-size: 11px;
335
355
  color: ${GlobalColors.gray};
336
356
  text-align: center;
337
357
  overflow: hidden;
@@ -343,37 +363,21 @@ export const ImageGrid = styled.div`
343
363
  export const AddRetailer = styled.div`
344
364
  display: flex;
345
365
  flex-wrap: wrap;
366
+ align-items: flex-end;
346
367
  gap: 8px;
347
368
  margin-bottom: 16px;
348
369
 
349
- select {
350
- flex: 1 1 140px;
351
- min-width: 0;
352
- height: 32px;
353
- padding: 0 8px;
354
- border: 1px solid ${GlobalColors.s2};
355
- border-radius: 6px;
356
- font-family: ${FontFamily.Raleway};
357
- font-size: 12px;
358
- color: ${GlobalColors.deep_gray};
359
- background-color: ${GlobalColors.white};
360
- }
361
-
362
370
  button {
363
- height: 32px;
371
+ height: 38px;
364
372
  padding: 0 14px;
365
- border: 1px solid ${GlobalColors.original_magenta};
373
+ border: 1px solid ${PINK};
366
374
  border-radius: 6px;
367
375
  background: none;
368
376
  font-family: ${FontFamily.Raleway_600};
369
- font-size: 12px;
370
- color: ${GlobalColors.original_magenta};
377
+ font-size: 13px;
378
+ color: ${PINK};
371
379
  cursor: pointer;
372
- }
373
-
374
- select:disabled {
375
- opacity: 0.5;
376
- cursor: default;
380
+ flex-shrink: 0;
377
381
  }
378
382
 
379
383
  button:disabled {
@@ -397,7 +401,7 @@ export const Block = styled.section`
397
401
  gap: 8px;
398
402
  margin: 0 0 8px;
399
403
  font-family: ${FontFamily.Raleway_600};
400
- font-size: 13px;
404
+ font-size: 14px;
401
405
  color: ${GlobalColors.deep_gray};
402
406
  }
403
407
 
@@ -408,9 +412,9 @@ export const Block = styled.section`
408
412
  width: 18px;
409
413
  height: 18px;
410
414
  border-radius: 50%;
411
- background-color: ${GlobalColors.original_magenta};
415
+ background-color: ${PINK};
412
416
  color: ${GlobalColors.white};
413
- font-size: 10px;
417
+ font-size: 11px;
414
418
  }
415
419
  `;
416
420
 
@@ -425,14 +429,14 @@ export const Choices = styled.div`
425
429
  align-items: flex-start;
426
430
  gap: 8px;
427
431
  padding: 4px 0;
428
- font-size: 12px;
432
+ font-size: 13px;
429
433
  color: ${GlobalColors.deep_gray};
430
434
  cursor: pointer;
431
435
  }
432
436
 
433
437
  label .hint {
434
438
  display: block;
435
- font-size: 11px;
439
+ font-size: 12px;
436
440
  color: ${GlobalColors.gray};
437
441
  }
438
442
  `;
@@ -444,7 +448,7 @@ export const Paging = styled.div`
444
448
  gap: 12px;
445
449
  margin: -8px 0 16px;
446
450
  font-family: ${FontFamily.Raleway_500};
447
- font-size: 11px;
451
+ font-size: 12px;
448
452
  color: ${GlobalColors.gray};
449
453
 
450
454
  button {
@@ -454,8 +458,8 @@ export const Paging = styled.div`
454
458
  padding: 5px 12px;
455
459
  cursor: pointer;
456
460
  font-family: ${FontFamily.Raleway_600};
457
- font-size: 11px;
458
- color: ${GlobalColors.original_magenta};
461
+ font-size: 12px;
462
+ color: ${PINK};
459
463
  }
460
464
 
461
465
  button:disabled {
@@ -483,7 +487,7 @@ export const Tabs = styled.div`
483
487
  background-color: ${GlobalColors.white};
484
488
  cursor: pointer;
485
489
  font-family: ${FontFamily.Raleway_500};
486
- font-size: 11px;
490
+ font-size: 12px;
487
491
  color: ${GlobalColors.gray};
488
492
  overflow: hidden;
489
493
  text-overflow: ellipsis;
@@ -491,9 +495,9 @@ export const Tabs = styled.div`
491
495
  }
492
496
 
493
497
  button.active {
494
- border-color: ${GlobalColors.original_magenta};
495
- color: ${GlobalColors.original_magenta};
496
- background-color: rgba(${GlobalColors.rgb_color_pink}, 0.08);
498
+ border-color: ${PINK};
499
+ color: ${PINK};
500
+ background-color: rgba(${PINK_RGB}, 0.08);
497
501
  }
498
502
 
499
503
  button .orden {
@@ -504,17 +508,17 @@ export const Tabs = styled.div`
504
508
  height: 16px;
505
509
  border-radius: 50%;
506
510
  background-color: ${GlobalColors.s2};
507
- font-size: 9px;
511
+ font-size: 10px;
508
512
  flex-shrink: 0;
509
513
  }
510
514
 
511
515
  button.active .orden {
512
- background-color: ${GlobalColors.original_magenta};
516
+ background-color: ${PINK};
513
517
  color: ${GlobalColors.white};
514
518
  }
515
519
 
516
520
  button .listo {
517
- color: ${GlobalColors.original_magenta};
521
+ color: ${PINK};
518
522
  flex-shrink: 0;
519
523
  }
520
524
  `;
@@ -1,6 +1,9 @@
1
1
  import styled from "styled-components";
2
2
  import { FontFamily, GlobalColors } from "../../../global-files/variables";
3
3
 
4
+ // Rosa ContentOh, el mismo del modal de ligar productos.
5
+ const PINK = "#E13AA8";
6
+
4
7
  export const Container = styled.div`
5
8
  display: flex;
6
9
  flex-direction: column;
@@ -167,13 +170,13 @@ export const Container = styled.div`
167
170
  margin-bottom: 8px;
168
171
 
169
172
  .link-variants {
170
- border: 1px solid ${GlobalColors.original_magenta};
173
+ border: 1px solid ${PINK};
171
174
  border-radius: 6px;
172
175
  background: none;
173
176
  padding: 6px 12px;
174
177
  font-family: ${FontFamily.Raleway_600};
175
178
  font-size: 11px;
176
- color: ${GlobalColors.original_magenta};
179
+ color: ${PINK};
177
180
  cursor: pointer;
178
181
  }
179
182
 
@@ -232,7 +235,7 @@ export const Container = styled.div`
232
235
  .family-row .role {
233
236
  min-width: 96px;
234
237
  font-size: 10px;
235
- color: ${GlobalColors.original_magenta};
238
+ color: ${PINK};
236
239
  }
237
240
 
238
241
  .family-row.current .role {
package/src/index.js CHANGED
@@ -67,6 +67,7 @@ export * from "./components/molecules/TagAndInput/index";
67
67
  export * from "./components/molecules/VerificationCodeResetPasswordLogin/index";
68
68
  export * from "./components/molecules/RetailerSelector/index";
69
69
  export * from "./components/molecules/CustomSelect/index";
70
+ export * from "./components/molecules/SingleSelect/index";
70
71
  export * from "./components/molecules/ButtonDownloadFile/index";
71
72
  export * from "./components/molecules/ImageTooltip/index";
72
73
  export * from "./components/molecules/SelectV2/index";