@pingux/astro 2.123.1-alpha.0 → 2.124.0-alpha.0
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/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.d.ts +144 -1
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +144 -1
- package/lib/cjs/styles/themes/next-gen/colors/colors.d.ts +4 -0
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.d.ts +0 -1
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +0 -1
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +311 -11
- package/lib/cjs/styles/themes/next-gen/tokens/colorTokens.d.ts +4 -0
- package/lib/cjs/styles/themes/next-gen/tokens/colorTokens.js +4 -0
- package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +292 -6
- package/lib/cjs/styles/themes/next-gen/variants/button.js +161 -24
- package/lib/cjs/styles/themes/next-gen/variants/links.d.ts +15 -5
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +144 -1
- package/lib/styles/themes/next-gen/convertedComponentList.js +0 -1
- package/lib/styles/themes/next-gen/tokens/colorTokens.js +4 -0
- package/lib/styles/themes/next-gen/variants/button.js +161 -24
- package/package.json +1 -1
@@ -51,7 +51,14 @@ declare const buttons: {
|
|
51
51
|
borderColor: string;
|
52
52
|
};
|
53
53
|
'&.is-hovered': {
|
54
|
+
boxShadow: string;
|
54
55
|
backgroundColor: string;
|
56
|
+
borderColor: string;
|
57
|
+
};
|
58
|
+
'&.is-focused': {
|
59
|
+
backgroundColor: string;
|
60
|
+
borderColor: string;
|
61
|
+
outline: string;
|
55
62
|
};
|
56
63
|
alignItems: string;
|
57
64
|
justifyContent: string;
|
@@ -74,11 +81,6 @@ declare const buttons: {
|
|
74
81
|
'&.is-disabled': {
|
75
82
|
opacity: number;
|
76
83
|
};
|
77
|
-
'&.is-focused': {
|
78
|
-
outline: string;
|
79
|
-
outlineColor: string;
|
80
|
-
outlineOffset: string;
|
81
|
-
};
|
82
84
|
transition: string;
|
83
85
|
};
|
84
86
|
default: {
|
@@ -89,10 +91,18 @@ declare const buttons: {
|
|
89
91
|
backgroundColor: string;
|
90
92
|
borderColor: string;
|
91
93
|
color: string;
|
94
|
+
path: {
|
95
|
+
fill: string;
|
96
|
+
};
|
92
97
|
};
|
93
98
|
'&.is-hovered': {
|
99
|
+
boxShadow: string;
|
94
100
|
backgroundColor: string;
|
101
|
+
borderColor: string;
|
95
102
|
color: string;
|
103
|
+
path: {
|
104
|
+
fill: string;
|
105
|
+
};
|
96
106
|
};
|
97
107
|
alignItems: string;
|
98
108
|
justifyContent: string;
|
@@ -126,6 +136,9 @@ declare const buttons: {
|
|
126
136
|
backgroundColor: string;
|
127
137
|
borderColor: string;
|
128
138
|
color: string;
|
139
|
+
'&.is-hovered': {
|
140
|
+
boxShadow: string;
|
141
|
+
};
|
129
142
|
alignItems: string;
|
130
143
|
justifyContent: string;
|
131
144
|
minWidth: string;
|
@@ -184,6 +197,9 @@ declare const buttons: {
|
|
184
197
|
outlineColor: string;
|
185
198
|
outlineOffset: string;
|
186
199
|
};
|
200
|
+
'&.is-hovered': {
|
201
|
+
boxShadow: string;
|
202
|
+
};
|
187
203
|
transition: string;
|
188
204
|
};
|
189
205
|
critical: {
|
@@ -201,7 +217,9 @@ declare const buttons: {
|
|
201
217
|
borderColor: string;
|
202
218
|
};
|
203
219
|
'&.is-hovered': {
|
220
|
+
boxShadow: string;
|
204
221
|
backgroundColor: string;
|
222
|
+
borderColor: string;
|
205
223
|
color: string;
|
206
224
|
};
|
207
225
|
alignItems: string;
|
@@ -227,6 +245,99 @@ declare const buttons: {
|
|
227
245
|
};
|
228
246
|
transition: string;
|
229
247
|
};
|
248
|
+
inline: {
|
249
|
+
display: string;
|
250
|
+
height: string;
|
251
|
+
lineHeight: number;
|
252
|
+
fontSize: string;
|
253
|
+
borderRadius: string;
|
254
|
+
border: string;
|
255
|
+
alignSelf: string;
|
256
|
+
paddingTop: string;
|
257
|
+
paddingBottom: string;
|
258
|
+
backgroundColor: string;
|
259
|
+
color: string;
|
260
|
+
borderColor: string;
|
261
|
+
'&.is-pressed': {
|
262
|
+
backgroundColor: string;
|
263
|
+
borderColor: string;
|
264
|
+
color: string;
|
265
|
+
};
|
266
|
+
'&.is-hovered': {
|
267
|
+
boxShadow: string;
|
268
|
+
backgroundColor: string;
|
269
|
+
borderColor: string;
|
270
|
+
color: string;
|
271
|
+
path: {
|
272
|
+
fill: string;
|
273
|
+
};
|
274
|
+
};
|
275
|
+
alignItems: string;
|
276
|
+
justifyContent: string;
|
277
|
+
minWidth: string;
|
278
|
+
cursor: string;
|
279
|
+
maxWidth: string;
|
280
|
+
fontFamily: string;
|
281
|
+
flexGrow: string;
|
282
|
+
fontWeight: number;
|
283
|
+
textAlign: string;
|
284
|
+
verticalAlign: string;
|
285
|
+
px: string;
|
286
|
+
py: string;
|
287
|
+
'&.is-disabled': {
|
288
|
+
opacity: number;
|
289
|
+
};
|
290
|
+
'&.is-focused': {
|
291
|
+
outline: string;
|
292
|
+
outlineColor: string;
|
293
|
+
outlineOffset: string;
|
294
|
+
};
|
295
|
+
transition: string;
|
296
|
+
};
|
297
|
+
inlinePrimary: {
|
298
|
+
display: string;
|
299
|
+
height: string;
|
300
|
+
lineHeight: number;
|
301
|
+
fontSize: string;
|
302
|
+
borderRadius: string;
|
303
|
+
border: string;
|
304
|
+
alignSelf: string;
|
305
|
+
paddingTop: string;
|
306
|
+
paddingBottom: string;
|
307
|
+
backgroundColor: string;
|
308
|
+
color: string;
|
309
|
+
borderColor: string;
|
310
|
+
'&.is-pressed': {
|
311
|
+
backgroundColor: string;
|
312
|
+
borderColor: string;
|
313
|
+
};
|
314
|
+
'&.is-hovered': {
|
315
|
+
boxShadow: string;
|
316
|
+
backgroundColor: string;
|
317
|
+
borderColor: string;
|
318
|
+
};
|
319
|
+
'&.is-focused': {
|
320
|
+
backgroundColor: string;
|
321
|
+
borderColor: string;
|
322
|
+
outline: string;
|
323
|
+
};
|
324
|
+
alignItems: string;
|
325
|
+
justifyContent: string;
|
326
|
+
minWidth: string;
|
327
|
+
cursor: string;
|
328
|
+
maxWidth: string;
|
329
|
+
fontFamily: string;
|
330
|
+
flexGrow: string;
|
331
|
+
fontWeight: number;
|
332
|
+
textAlign: string;
|
333
|
+
verticalAlign: string;
|
334
|
+
px: string;
|
335
|
+
py: string;
|
336
|
+
'&.is-disabled': {
|
337
|
+
opacity: number;
|
338
|
+
};
|
339
|
+
transition: string;
|
340
|
+
};
|
230
341
|
checkboxButton: {
|
231
342
|
backgroundColor: string;
|
232
343
|
borderColor: string;
|
@@ -257,6 +368,9 @@ declare const buttons: {
|
|
257
368
|
outlineColor: string;
|
258
369
|
outlineOffset: string;
|
259
370
|
};
|
371
|
+
'&.is-hovered': {
|
372
|
+
boxShadow: string;
|
373
|
+
};
|
260
374
|
transition: string;
|
261
375
|
};
|
262
376
|
checkboxActiveButton: {
|
@@ -289,6 +403,9 @@ declare const buttons: {
|
|
289
403
|
outlineColor: string;
|
290
404
|
outlineOffset: string;
|
291
405
|
};
|
406
|
+
'&.is-hovered': {
|
407
|
+
boxShadow: string;
|
408
|
+
};
|
292
409
|
transition: string;
|
293
410
|
};
|
294
411
|
outlineCritical: {
|
@@ -322,6 +439,9 @@ declare const buttons: {
|
|
322
439
|
'&.is-disabled': {
|
323
440
|
opacity: number;
|
324
441
|
};
|
442
|
+
'&.is-hovered': {
|
443
|
+
boxShadow: string;
|
444
|
+
};
|
325
445
|
transition: string;
|
326
446
|
};
|
327
447
|
link: {
|
@@ -343,6 +463,9 @@ declare const buttons: {
|
|
343
463
|
};
|
344
464
|
withIcon: {
|
345
465
|
display: string;
|
466
|
+
path: {
|
467
|
+
fill: string;
|
468
|
+
};
|
346
469
|
backgroundColor: string;
|
347
470
|
borderColor: string;
|
348
471
|
color: string;
|
@@ -350,10 +473,18 @@ declare const buttons: {
|
|
350
473
|
backgroundColor: string;
|
351
474
|
borderColor: string;
|
352
475
|
color: string;
|
476
|
+
path: {
|
477
|
+
fill: string;
|
478
|
+
};
|
353
479
|
};
|
354
480
|
'&.is-hovered': {
|
481
|
+
boxShadow: string;
|
355
482
|
backgroundColor: string;
|
483
|
+
borderColor: string;
|
356
484
|
color: string;
|
485
|
+
path: {
|
486
|
+
fill: string;
|
487
|
+
};
|
357
488
|
};
|
358
489
|
alignItems: string;
|
359
490
|
justifyContent: string;
|
@@ -392,7 +523,14 @@ declare const buttons: {
|
|
392
523
|
borderColor: string;
|
393
524
|
};
|
394
525
|
'&.is-hovered': {
|
526
|
+
boxShadow: string;
|
395
527
|
backgroundColor: string;
|
528
|
+
borderColor: string;
|
529
|
+
};
|
530
|
+
'&.is-focused': {
|
531
|
+
backgroundColor: string;
|
532
|
+
borderColor: string;
|
533
|
+
outline: string;
|
396
534
|
};
|
397
535
|
alignItems: string;
|
398
536
|
justifyContent: string;
|
@@ -414,6 +552,53 @@ declare const buttons: {
|
|
414
552
|
'&.is-disabled': {
|
415
553
|
opacity: number;
|
416
554
|
};
|
555
|
+
transition: string;
|
556
|
+
};
|
557
|
+
inlineWithIcon: {
|
558
|
+
display: string;
|
559
|
+
path: {
|
560
|
+
fill: string;
|
561
|
+
};
|
562
|
+
height: string;
|
563
|
+
lineHeight: number;
|
564
|
+
fontSize: string;
|
565
|
+
borderRadius: string;
|
566
|
+
border: string;
|
567
|
+
alignSelf: string;
|
568
|
+
paddingTop: string;
|
569
|
+
paddingBottom: string;
|
570
|
+
backgroundColor: string;
|
571
|
+
color: string;
|
572
|
+
borderColor: string;
|
573
|
+
'&.is-pressed': {
|
574
|
+
backgroundColor: string;
|
575
|
+
borderColor: string;
|
576
|
+
color: string;
|
577
|
+
};
|
578
|
+
'&.is-hovered': {
|
579
|
+
boxShadow: string;
|
580
|
+
backgroundColor: string;
|
581
|
+
borderColor: string;
|
582
|
+
color: string;
|
583
|
+
path: {
|
584
|
+
fill: string;
|
585
|
+
};
|
586
|
+
};
|
587
|
+
alignItems: string;
|
588
|
+
justifyContent: string;
|
589
|
+
minWidth: string;
|
590
|
+
cursor: string;
|
591
|
+
maxWidth: string;
|
592
|
+
fontFamily: string;
|
593
|
+
flexGrow: string;
|
594
|
+
fontWeight: number;
|
595
|
+
textAlign: string;
|
596
|
+
verticalAlign: string;
|
597
|
+
px: string;
|
598
|
+
py: string;
|
599
|
+
'&.is-disabled': {
|
600
|
+
opacity: number;
|
601
|
+
};
|
417
602
|
'&.is-focused': {
|
418
603
|
outline: string;
|
419
604
|
outlineColor: string;
|
@@ -421,6 +606,107 @@ declare const buttons: {
|
|
421
606
|
};
|
422
607
|
transition: string;
|
423
608
|
};
|
609
|
+
inlinePrimaryWithIcon: {
|
610
|
+
display: string;
|
611
|
+
color: string;
|
612
|
+
height: string;
|
613
|
+
lineHeight: number;
|
614
|
+
fontSize: string;
|
615
|
+
borderRadius: string;
|
616
|
+
border: string;
|
617
|
+
alignSelf: string;
|
618
|
+
paddingTop: string;
|
619
|
+
paddingBottom: string;
|
620
|
+
backgroundColor: string;
|
621
|
+
borderColor: string;
|
622
|
+
'&.is-pressed': {
|
623
|
+
backgroundColor: string;
|
624
|
+
borderColor: string;
|
625
|
+
};
|
626
|
+
'&.is-hovered': {
|
627
|
+
boxShadow: string;
|
628
|
+
backgroundColor: string;
|
629
|
+
borderColor: string;
|
630
|
+
};
|
631
|
+
'&.is-focused': {
|
632
|
+
backgroundColor: string;
|
633
|
+
borderColor: string;
|
634
|
+
outline: string;
|
635
|
+
};
|
636
|
+
alignItems: string;
|
637
|
+
justifyContent: string;
|
638
|
+
minWidth: string;
|
639
|
+
cursor: string;
|
640
|
+
maxWidth: string;
|
641
|
+
fontFamily: string;
|
642
|
+
flexGrow: string;
|
643
|
+
fontWeight: number;
|
644
|
+
textAlign: string;
|
645
|
+
verticalAlign: string;
|
646
|
+
px: string;
|
647
|
+
py: string;
|
648
|
+
'&.is-disabled': {
|
649
|
+
opacity: number;
|
650
|
+
};
|
651
|
+
transition: string;
|
652
|
+
};
|
653
|
+
colorBlock: {
|
654
|
+
bg: string;
|
655
|
+
borderColor: string;
|
656
|
+
borderRadius: string;
|
657
|
+
width: number;
|
658
|
+
height: number;
|
659
|
+
p: string;
|
660
|
+
'&.is-hovered': {
|
661
|
+
boxShadow: string;
|
662
|
+
bg: string;
|
663
|
+
borderColor: string;
|
664
|
+
};
|
665
|
+
'&.is-focused': {
|
666
|
+
outline: string;
|
667
|
+
outlineColor: string;
|
668
|
+
outlineOffset: string;
|
669
|
+
};
|
670
|
+
'&.is-pressed': {
|
671
|
+
bg: string;
|
672
|
+
borderColor: string;
|
673
|
+
};
|
674
|
+
'&>svg': {
|
675
|
+
color: string;
|
676
|
+
fill: string;
|
677
|
+
};
|
678
|
+
};
|
679
|
+
colorBlockPrimary: {
|
680
|
+
bg: string;
|
681
|
+
borderColor: string;
|
682
|
+
'& span': {
|
683
|
+
color: string;
|
684
|
+
textAlign: string;
|
685
|
+
};
|
686
|
+
'&.is-hovered': {
|
687
|
+
boxShadow: string;
|
688
|
+
backgroundColor: string;
|
689
|
+
borderColor: string;
|
690
|
+
color: string;
|
691
|
+
};
|
692
|
+
'&.is-pressed': {
|
693
|
+
backgroundColor: string;
|
694
|
+
borderColor: string;
|
695
|
+
};
|
696
|
+
'&.is-focused': {
|
697
|
+
backgroundColor: string;
|
698
|
+
borderColor: string;
|
699
|
+
outline: string;
|
700
|
+
};
|
701
|
+
borderRadius: string;
|
702
|
+
width: number;
|
703
|
+
height: number;
|
704
|
+
p: string;
|
705
|
+
'&>svg': {
|
706
|
+
color: string;
|
707
|
+
fill: string;
|
708
|
+
};
|
709
|
+
};
|
424
710
|
iconButtons: {
|
425
711
|
base: {
|
426
712
|
cursor: string;
|
@@ -766,9 +1052,9 @@ declare const buttons: {
|
|
766
1052
|
};
|
767
1053
|
'&.is-hovered': {
|
768
1054
|
border: string;
|
769
|
-
boxShadow: string;
|
770
1055
|
borderColor: string;
|
771
1056
|
backgroundColor: string;
|
1057
|
+
boxShadow: string;
|
772
1058
|
};
|
773
1059
|
'&.is-disabled': {
|
774
1060
|
backgroundColor: string;
|
@@ -20,14 +20,20 @@ var _colors = _interopRequireDefault(require("../colors/colors"));
|
|
20
20
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
21
21
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
22
22
|
var primaryBlue = _colors["default"].primary,
|
23
|
-
|
23
|
+
primaryBlueHover = _colors["default"].active_hover,
|
24
|
+
primaryBluePress = _colors["default"].active_pressed,
|
25
|
+
criticalRedHover = _colors["default"].critical_hover,
|
26
|
+
criticalRedPress = _colors["default"].critical_pressed;
|
24
27
|
var transitions = {
|
25
28
|
transition: 'color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out'
|
26
29
|
};
|
30
|
+
var boxShadowNone = {
|
31
|
+
boxShadow: 'none !important'
|
32
|
+
};
|
27
33
|
var defaultFocus = {
|
28
34
|
outline: '2px solid',
|
29
35
|
outlineColor: 'active',
|
30
|
-
outlineOffset: '
|
36
|
+
outlineOffset: '2px'
|
31
37
|
};
|
32
38
|
exports.defaultFocus = defaultFocus;
|
33
39
|
var buttonBase = _objectSpread(_objectSpread({}, transitions), {}, {
|
@@ -54,7 +60,8 @@ var buttonBase = _objectSpread(_objectSpread({}, transitions), {}, {
|
|
54
60
|
'&.is-disabled': {
|
55
61
|
opacity: 0.65
|
56
62
|
},
|
57
|
-
'&.is-focused': _objectSpread({}, defaultFocus)
|
63
|
+
'&.is-focused': _objectSpread({}, defaultFocus),
|
64
|
+
'&.is-hovered': boxShadowNone
|
58
65
|
});
|
59
66
|
var neutral = _objectSpread(_objectSpread(_objectSpread({
|
60
67
|
color: 'gray-600'
|
@@ -71,11 +78,17 @@ var primary = _objectSpread(_objectSpread({}, buttonBase), {}, {
|
|
71
78
|
backgroundColor: 'primary',
|
72
79
|
borderColor: 'primary',
|
73
80
|
'&.is-pressed': {
|
74
|
-
backgroundColor:
|
75
|
-
borderColor:
|
81
|
+
backgroundColor: primaryBluePress,
|
82
|
+
borderColor: primaryBluePress
|
76
83
|
},
|
77
|
-
'&.is-hovered': {
|
78
|
-
backgroundColor:
|
84
|
+
'&.is-hovered': _objectSpread({
|
85
|
+
backgroundColor: primaryBlueHover,
|
86
|
+
borderColor: primaryBlueHover
|
87
|
+
}, boxShadowNone),
|
88
|
+
'&.is-focused': {
|
89
|
+
backgroundColor: primaryBluePress,
|
90
|
+
borderColor: primaryBluePress,
|
91
|
+
outline: '2px solid'
|
79
92
|
}
|
80
93
|
});
|
81
94
|
var secondary = _objectSpread(_objectSpread({}, buttonBase), {}, {
|
@@ -83,19 +96,27 @@ var secondary = _objectSpread(_objectSpread({}, buttonBase), {}, {
|
|
83
96
|
borderColor: 'primary',
|
84
97
|
color: 'primary',
|
85
98
|
'&.is-pressed': {
|
86
|
-
backgroundColor:
|
87
|
-
borderColor:
|
88
|
-
color: 'white'
|
99
|
+
backgroundColor: primaryBluePress,
|
100
|
+
borderColor: primaryBluePress,
|
101
|
+
color: 'white',
|
102
|
+
path: {
|
103
|
+
fill: 'white'
|
104
|
+
}
|
89
105
|
},
|
90
|
-
'&.is-hovered': {
|
91
|
-
backgroundColor:
|
92
|
-
|
93
|
-
|
106
|
+
'&.is-hovered': _objectSpread({
|
107
|
+
backgroundColor: primaryBlue,
|
108
|
+
borderColor: primaryBlue,
|
109
|
+
color: 'white',
|
110
|
+
path: {
|
111
|
+
fill: 'white'
|
112
|
+
}
|
113
|
+
}, boxShadowNone)
|
94
114
|
});
|
95
115
|
var tertiary = _objectSpread(_objectSpread({}, buttonBase), {}, {
|
96
116
|
backgroundColor: 'transparent',
|
97
117
|
borderColor: 'border.base',
|
98
|
-
color: 'text.secondary'
|
118
|
+
color: 'text.secondary',
|
119
|
+
'&.is-hovered': _objectSpread({}, boxShadowNone)
|
99
120
|
});
|
100
121
|
var outlineCritical = _objectSpread(_objectSpread({}, buttonBase), {}, {
|
101
122
|
backgroundColor: 'transparent',
|
@@ -113,19 +134,74 @@ var inverse = _objectSpread(_objectSpread({}, buttonBase), {}, {
|
|
113
134
|
});
|
114
135
|
var critical = _objectSpread(_objectSpread({}, buttonBase), {}, {
|
115
136
|
backgroundColor: 'critical.bright',
|
116
|
-
borderColor: 'critical',
|
137
|
+
borderColor: 'critical.bright',
|
117
138
|
color: 'white',
|
118
139
|
'&.is-focused': _objectSpread(_objectSpread({}, defaultFocus), {}, {
|
119
140
|
outlineColor: 'critical.bright',
|
120
141
|
backgroundColor: 'critical.dark'
|
121
142
|
}),
|
122
143
|
'&.is-pressed': {
|
123
|
-
backgroundColor:
|
124
|
-
borderColor:
|
144
|
+
backgroundColor: criticalRedPress,
|
145
|
+
borderColor: criticalRedPress
|
125
146
|
},
|
126
|
-
'&.is-hovered': {
|
127
|
-
backgroundColor:
|
147
|
+
'&.is-hovered': _objectSpread({
|
148
|
+
backgroundColor: criticalRedHover,
|
149
|
+
borderColor: criticalRedHover,
|
150
|
+
color: 'white'
|
151
|
+
}, boxShadowNone)
|
152
|
+
});
|
153
|
+
var inline = _objectSpread(_objectSpread({}, buttonBase), {}, {
|
154
|
+
display: 'inline-flex',
|
155
|
+
height: '29px',
|
156
|
+
lineHeight: 1,
|
157
|
+
fontSize: 'sm',
|
158
|
+
borderRadius: '15px',
|
159
|
+
border: '1px solid',
|
160
|
+
alignSelf: 'center',
|
161
|
+
paddingTop: '0px',
|
162
|
+
paddingBottom: '0px',
|
163
|
+
backgroundColor: 'transparent',
|
164
|
+
color: primaryBlue,
|
165
|
+
borderColor: primaryBlue,
|
166
|
+
'&.is-pressed': {
|
167
|
+
backgroundColor: primaryBluePress,
|
168
|
+
borderColor: primaryBluePress,
|
128
169
|
color: 'white'
|
170
|
+
},
|
171
|
+
'&.is-hovered': _objectSpread({
|
172
|
+
backgroundColor: primaryBlue,
|
173
|
+
borderColor: primaryBlue,
|
174
|
+
color: 'white',
|
175
|
+
path: {
|
176
|
+
fill: 'white'
|
177
|
+
}
|
178
|
+
}, boxShadowNone)
|
179
|
+
});
|
180
|
+
var inlinePrimary = _objectSpread(_objectSpread({}, buttonBase), {}, {
|
181
|
+
display: 'inline-flex',
|
182
|
+
height: '29px',
|
183
|
+
lineHeight: 1,
|
184
|
+
fontSize: 'sm',
|
185
|
+
borderRadius: '15px',
|
186
|
+
border: '1px solid',
|
187
|
+
alignSelf: 'center',
|
188
|
+
paddingTop: '0px',
|
189
|
+
paddingBottom: '0px',
|
190
|
+
backgroundColor: 'primary',
|
191
|
+
color: 'white',
|
192
|
+
borderColor: 'primary',
|
193
|
+
'&.is-pressed': {
|
194
|
+
backgroundColor: primaryBluePress,
|
195
|
+
borderColor: primaryBluePress
|
196
|
+
},
|
197
|
+
'&.is-hovered': _objectSpread({
|
198
|
+
backgroundColor: primaryBlueHover,
|
199
|
+
borderColor: primaryBlueHover
|
200
|
+
}, boxShadowNone),
|
201
|
+
'&.is-focused': {
|
202
|
+
backgroundColor: primaryBluePress,
|
203
|
+
borderColor: primaryBluePress,
|
204
|
+
outline: '2px solid'
|
129
205
|
}
|
130
206
|
});
|
131
207
|
var checkboxButton = _objectSpread(_objectSpread({}, buttonBase), {}, {
|
@@ -160,12 +236,68 @@ var paginationMenu = _objectSpread(_objectSpread({}, link), {}, {
|
|
160
236
|
color: 'text.primary'
|
161
237
|
});
|
162
238
|
var withIcon = _objectSpread(_objectSpread({}, secondary), {}, {
|
163
|
-
display: 'inline-flex'
|
239
|
+
display: 'inline-flex',
|
240
|
+
path: {
|
241
|
+
fill: primaryBlue
|
242
|
+
}
|
164
243
|
});
|
165
244
|
var primaryWithIcon = _objectSpread(_objectSpread({}, primary), {}, {
|
166
245
|
display: 'inline-flex',
|
167
246
|
color: 'white'
|
168
247
|
});
|
248
|
+
var inlineWithIcon = _objectSpread(_objectSpread({}, inline), {}, {
|
249
|
+
display: 'inline-flex',
|
250
|
+
path: {
|
251
|
+
fill: primaryBlue
|
252
|
+
}
|
253
|
+
});
|
254
|
+
var inlinePrimaryWithIcon = _objectSpread(_objectSpread({}, inlinePrimary), {}, {
|
255
|
+
display: 'inline-flex',
|
256
|
+
color: 'white'
|
257
|
+
});
|
258
|
+
var colorBlock = {
|
259
|
+
bg: 'gray-200',
|
260
|
+
borderColor: 'gray-200',
|
261
|
+
borderRadius: '1.75rem',
|
262
|
+
width: 150,
|
263
|
+
height: 50,
|
264
|
+
p: '5px 15px 5px 20px',
|
265
|
+
'&.is-hovered': _objectSpread({
|
266
|
+
bg: 'blue-100',
|
267
|
+
borderColor: 'blue-100'
|
268
|
+
}, boxShadowNone),
|
269
|
+
'&.is-focused': _objectSpread({}, defaultFocus),
|
270
|
+
'&.is-pressed': {
|
271
|
+
bg: 'blue-100',
|
272
|
+
borderColor: 'blue-100'
|
273
|
+
},
|
274
|
+
'&>svg': {
|
275
|
+
color: 'text.primary',
|
276
|
+
fill: 'text.primary'
|
277
|
+
}
|
278
|
+
};
|
279
|
+
var colorBlockPrimary = _objectSpread(_objectSpread({}, colorBlock), {}, {
|
280
|
+
bg: primaryBlue,
|
281
|
+
borderColor: primaryBlue,
|
282
|
+
'& span': {
|
283
|
+
color: 'white',
|
284
|
+
textAlign: 'left'
|
285
|
+
},
|
286
|
+
'&.is-hovered': _objectSpread({
|
287
|
+
backgroundColor: primaryBlueHover,
|
288
|
+
borderColor: primaryBlueHover,
|
289
|
+
color: 'white'
|
290
|
+
}, boxShadowNone),
|
291
|
+
'&.is-pressed': {
|
292
|
+
backgroundColor: primaryBluePress,
|
293
|
+
borderColor: primaryBluePress
|
294
|
+
},
|
295
|
+
'&.is-focused': {
|
296
|
+
backgroundColor: primaryBluePress,
|
297
|
+
borderColor: primaryBluePress,
|
298
|
+
outline: '2px solid'
|
299
|
+
}
|
300
|
+
});
|
169
301
|
var aiChat = _objectSpread(_objectSpread({}, withIcon), {}, {
|
170
302
|
maxWidth: 'fit-content',
|
171
303
|
gap: 'sm',
|
@@ -333,12 +465,11 @@ var iconButtons = {
|
|
333
465
|
backgroundColor: _chromaJs["default"].mix(primaryBlue, 'black', 0.125, 'rgb').hex(),
|
334
466
|
borderColor: _chromaJs["default"].mix(primaryBlue, 'black', 0.125, 'rgb').hex()
|
335
467
|
},
|
336
|
-
'&.is-hovered': {
|
468
|
+
'&.is-hovered': _objectSpread(_objectSpread({}, boxShadowNone), {}, {
|
337
469
|
border: 'none !important',
|
338
|
-
boxShadow: 'none !important',
|
339
470
|
borderColor: 'none !important',
|
340
471
|
backgroundColor: _chromaJs["default"].mix(primaryBlue, 'black', 0.075, 'rgb').hex()
|
341
|
-
},
|
472
|
+
}),
|
342
473
|
'&.is-disabled': {
|
343
474
|
backgroundColor: 'gray-300'
|
344
475
|
}
|
@@ -362,12 +493,18 @@ var buttons = {
|
|
362
493
|
tertiary: tertiary,
|
363
494
|
inverse: inverse,
|
364
495
|
critical: critical,
|
496
|
+
inline: inline,
|
497
|
+
inlinePrimary: inlinePrimary,
|
365
498
|
checkboxButton: checkboxButton,
|
366
499
|
checkboxActiveButton: checkboxActiveButton,
|
367
500
|
outlineCritical: outlineCritical,
|
368
501
|
link: link,
|
369
502
|
withIcon: withIcon,
|
370
503
|
primaryWithIcon: primaryWithIcon,
|
504
|
+
inlineWithIcon: inlineWithIcon,
|
505
|
+
inlinePrimaryWithIcon: inlinePrimaryWithIcon,
|
506
|
+
colorBlock: colorBlock,
|
507
|
+
colorBlockPrimary: colorBlockPrimary,
|
371
508
|
iconButtons: iconButtons,
|
372
509
|
modalCloseButton: modalCloseButton,
|
373
510
|
aiChat: aiChat,
|