contentoh-components-library 21.6.24 → 21.6.25
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.
- package/dist/components/organisms/LinkVariantsModal/index.js +115 -63
- package/dist/components/organisms/LinkVariantsModal/styles.js +26 -16
- package/dist/components/pages/ProviderProductEdition/styles.js +4 -1
- package/package.json +1 -1
- package/src/components/organisms/LinkVariantsModal/index.js +133 -44
- package/src/components/organisms/LinkVariantsModal/styles.js +69 -49
- package/src/components/pages/ProviderProductEdition/styles.js +6 -3
|
@@ -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:
|
|
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:
|
|
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:
|
|
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:
|
|
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: ${
|
|
76
|
-
color: ${
|
|
77
|
-
background-color: rgba(${
|
|
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:
|
|
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:
|
|
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:
|
|
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: ${
|
|
147
|
+
background-color: ${PINK};
|
|
128
148
|
color: ${GlobalColors.white};
|
|
129
149
|
font-family: ${FontFamily.Raleway_600};
|
|
130
|
-
font-size:
|
|
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:
|
|
177
|
+
font-size: 13px;
|
|
158
178
|
color: ${GlobalColors.deep_gray};
|
|
159
179
|
}
|
|
160
180
|
|
|
161
181
|
.meta {
|
|
162
182
|
display: block;
|
|
163
|
-
font-size:
|
|
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:
|
|
178
|
-
color: ${
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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(${
|
|
243
|
-
color: ${
|
|
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:
|
|
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:
|
|
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: ${
|
|
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: ${
|
|
312
|
-
background-color: rgba(${
|
|
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:
|
|
354
|
+
font-size: 11px;
|
|
335
355
|
color: ${GlobalColors.gray};
|
|
336
356
|
text-align: center;
|
|
337
357
|
overflow: hidden;
|
|
@@ -354,7 +374,7 @@ export const AddRetailer = styled.div`
|
|
|
354
374
|
border: 1px solid ${GlobalColors.s2};
|
|
355
375
|
border-radius: 6px;
|
|
356
376
|
font-family: ${FontFamily.Raleway};
|
|
357
|
-
font-size:
|
|
377
|
+
font-size: 13px;
|
|
358
378
|
color: ${GlobalColors.deep_gray};
|
|
359
379
|
background-color: ${GlobalColors.white};
|
|
360
380
|
}
|
|
@@ -362,12 +382,12 @@ export const AddRetailer = styled.div`
|
|
|
362
382
|
button {
|
|
363
383
|
height: 32px;
|
|
364
384
|
padding: 0 14px;
|
|
365
|
-
border: 1px solid ${
|
|
385
|
+
border: 1px solid ${PINK};
|
|
366
386
|
border-radius: 6px;
|
|
367
387
|
background: none;
|
|
368
388
|
font-family: ${FontFamily.Raleway_600};
|
|
369
|
-
font-size:
|
|
370
|
-
color: ${
|
|
389
|
+
font-size: 13px;
|
|
390
|
+
color: ${PINK};
|
|
371
391
|
cursor: pointer;
|
|
372
392
|
}
|
|
373
393
|
|
|
@@ -397,7 +417,7 @@ export const Block = styled.section`
|
|
|
397
417
|
gap: 8px;
|
|
398
418
|
margin: 0 0 8px;
|
|
399
419
|
font-family: ${FontFamily.Raleway_600};
|
|
400
|
-
font-size:
|
|
420
|
+
font-size: 14px;
|
|
401
421
|
color: ${GlobalColors.deep_gray};
|
|
402
422
|
}
|
|
403
423
|
|
|
@@ -408,9 +428,9 @@ export const Block = styled.section`
|
|
|
408
428
|
width: 18px;
|
|
409
429
|
height: 18px;
|
|
410
430
|
border-radius: 50%;
|
|
411
|
-
background-color: ${
|
|
431
|
+
background-color: ${PINK};
|
|
412
432
|
color: ${GlobalColors.white};
|
|
413
|
-
font-size:
|
|
433
|
+
font-size: 11px;
|
|
414
434
|
}
|
|
415
435
|
`;
|
|
416
436
|
|
|
@@ -425,14 +445,14 @@ export const Choices = styled.div`
|
|
|
425
445
|
align-items: flex-start;
|
|
426
446
|
gap: 8px;
|
|
427
447
|
padding: 4px 0;
|
|
428
|
-
font-size:
|
|
448
|
+
font-size: 13px;
|
|
429
449
|
color: ${GlobalColors.deep_gray};
|
|
430
450
|
cursor: pointer;
|
|
431
451
|
}
|
|
432
452
|
|
|
433
453
|
label .hint {
|
|
434
454
|
display: block;
|
|
435
|
-
font-size:
|
|
455
|
+
font-size: 12px;
|
|
436
456
|
color: ${GlobalColors.gray};
|
|
437
457
|
}
|
|
438
458
|
`;
|
|
@@ -444,7 +464,7 @@ export const Paging = styled.div`
|
|
|
444
464
|
gap: 12px;
|
|
445
465
|
margin: -8px 0 16px;
|
|
446
466
|
font-family: ${FontFamily.Raleway_500};
|
|
447
|
-
font-size:
|
|
467
|
+
font-size: 12px;
|
|
448
468
|
color: ${GlobalColors.gray};
|
|
449
469
|
|
|
450
470
|
button {
|
|
@@ -454,8 +474,8 @@ export const Paging = styled.div`
|
|
|
454
474
|
padding: 5px 12px;
|
|
455
475
|
cursor: pointer;
|
|
456
476
|
font-family: ${FontFamily.Raleway_600};
|
|
457
|
-
font-size:
|
|
458
|
-
color: ${
|
|
477
|
+
font-size: 12px;
|
|
478
|
+
color: ${PINK};
|
|
459
479
|
}
|
|
460
480
|
|
|
461
481
|
button:disabled {
|
|
@@ -483,7 +503,7 @@ export const Tabs = styled.div`
|
|
|
483
503
|
background-color: ${GlobalColors.white};
|
|
484
504
|
cursor: pointer;
|
|
485
505
|
font-family: ${FontFamily.Raleway_500};
|
|
486
|
-
font-size:
|
|
506
|
+
font-size: 12px;
|
|
487
507
|
color: ${GlobalColors.gray};
|
|
488
508
|
overflow: hidden;
|
|
489
509
|
text-overflow: ellipsis;
|
|
@@ -491,9 +511,9 @@ export const Tabs = styled.div`
|
|
|
491
511
|
}
|
|
492
512
|
|
|
493
513
|
button.active {
|
|
494
|
-
border-color: ${
|
|
495
|
-
color: ${
|
|
496
|
-
background-color: rgba(${
|
|
514
|
+
border-color: ${PINK};
|
|
515
|
+
color: ${PINK};
|
|
516
|
+
background-color: rgba(${PINK_RGB}, 0.08);
|
|
497
517
|
}
|
|
498
518
|
|
|
499
519
|
button .orden {
|
|
@@ -504,17 +524,17 @@ export const Tabs = styled.div`
|
|
|
504
524
|
height: 16px;
|
|
505
525
|
border-radius: 50%;
|
|
506
526
|
background-color: ${GlobalColors.s2};
|
|
507
|
-
font-size:
|
|
527
|
+
font-size: 10px;
|
|
508
528
|
flex-shrink: 0;
|
|
509
529
|
}
|
|
510
530
|
|
|
511
531
|
button.active .orden {
|
|
512
|
-
background-color: ${
|
|
532
|
+
background-color: ${PINK};
|
|
513
533
|
color: ${GlobalColors.white};
|
|
514
534
|
}
|
|
515
535
|
|
|
516
536
|
button .listo {
|
|
517
|
-
color: ${
|
|
537
|
+
color: ${PINK};
|
|
518
538
|
flex-shrink: 0;
|
|
519
539
|
}
|
|
520
540
|
`;
|
|
@@ -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 ${
|
|
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: ${
|
|
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: ${
|
|
238
|
+
color: ${PINK};
|
|
236
239
|
}
|
|
237
240
|
|
|
238
241
|
.family-row.current .role {
|