@vectara/vectara-ui 9.8.5 → 9.8.7
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,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
.vuiProgressBar {
|
|
4
4
|
position: relative;
|
|
5
|
-
border-radius: $
|
|
5
|
+
border-radius: $sizeS;
|
|
6
6
|
height: $sizeS;
|
|
7
7
|
overflow: hidden;
|
|
8
8
|
}
|
|
@@ -35,29 +35,29 @@
|
|
|
35
35
|
// Color
|
|
36
36
|
$color: (
|
|
37
37
|
accent: (
|
|
38
|
-
"background-color": $colorAccent
|
|
38
|
+
"background-color": linear-gradient(to top, $colorAccent, $colorAccentLightShade)
|
|
39
39
|
),
|
|
40
40
|
primary: (
|
|
41
|
-
"background-color": $colorPrimary
|
|
41
|
+
"background-color": linear-gradient(to top, $colorPrimary, $colorPrimaryLightShade)
|
|
42
42
|
),
|
|
43
43
|
success: (
|
|
44
|
-
"background-color": $colorSuccess
|
|
44
|
+
"background-color": linear-gradient(to top, $colorSuccess, $colorSuccessLightShade)
|
|
45
45
|
),
|
|
46
46
|
warning: (
|
|
47
|
-
"background-color": $colorWarning
|
|
47
|
+
"background-color": linear-gradient(to top, $colorWarning, $colorWarningLightShade)
|
|
48
48
|
),
|
|
49
49
|
danger: (
|
|
50
|
-
"background-color": $colorDanger
|
|
50
|
+
"background-color": linear-gradient(to top, $colorDanger, $colorDangerLightShade)
|
|
51
51
|
),
|
|
52
52
|
neutral: (
|
|
53
|
-
"background-color": $colorDarkShade
|
|
53
|
+
"background-color": linear-gradient(to top, $colorDarkShade, $colorMediumShade)
|
|
54
54
|
)
|
|
55
55
|
);
|
|
56
56
|
|
|
57
57
|
@each $colorName, $colorValue in $color {
|
|
58
58
|
.vuiProgressBar--#{$colorName} {
|
|
59
59
|
.vuiProgressBar__bar {
|
|
60
|
-
background-
|
|
60
|
+
background-image: #{map.get($colorValue, "background-color")};
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
$toggleWidth: $sizeL * 1.5;
|
|
2
2
|
$toggleHeight: $sizeM * 1.25;
|
|
3
3
|
$buttonOffset: 2px;
|
|
4
|
-
$
|
|
4
|
+
$buttonHeight: $toggleHeight - ($buttonOffset * 2);
|
|
5
|
+
$buttonWidth: $toggleWidth * 0.75 - ($buttonOffset * 2);
|
|
5
6
|
|
|
6
7
|
.vuiToggle {
|
|
7
8
|
position: relative;
|
|
@@ -25,7 +26,7 @@ $buttonSize: $toggleHeight - ($buttonOffset * 2);
|
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
&:checked + .vuiToggle__button:before {
|
|
28
|
-
transform: translateX($toggleWidth - $
|
|
29
|
+
transform: translateX($toggleWidth - $buttonWidth - ($buttonOffset * 2));
|
|
29
30
|
}
|
|
30
31
|
}
|
|
31
32
|
|
|
@@ -38,18 +39,18 @@ $buttonSize: $toggleHeight - ($buttonOffset * 2);
|
|
|
38
39
|
bottom: 0;
|
|
39
40
|
background-color: $colorMediumShade;
|
|
40
41
|
transition: $transitionSpeed;
|
|
41
|
-
border-radius: $
|
|
42
|
+
border-radius: $buttonHeight;
|
|
42
43
|
box-shadow: inset rgba(0, 0, 0, 0.1) 0px 2px 2px;
|
|
43
44
|
|
|
44
45
|
&:before {
|
|
45
46
|
position: absolute;
|
|
46
47
|
content: "";
|
|
47
|
-
height: $
|
|
48
|
-
width: $
|
|
48
|
+
height: $buttonHeight;
|
|
49
|
+
width: $buttonWidth;
|
|
49
50
|
left: $buttonOffset;
|
|
50
51
|
bottom: $buttonOffset;
|
|
51
52
|
background-color: $colorEmptyShade;
|
|
52
53
|
transition: $transitionSpeed;
|
|
53
|
-
border-radius:
|
|
54
|
+
border-radius: $buttonHeight;
|
|
54
55
|
}
|
|
55
56
|
}
|
package/lib/styles/index.css
CHANGED
|
@@ -3468,7 +3468,7 @@ h2.react-datepicker__current-month {
|
|
|
3468
3468
|
|
|
3469
3469
|
.vuiProgressBar {
|
|
3470
3470
|
position: relative;
|
|
3471
|
-
border-radius:
|
|
3471
|
+
border-radius: 12px;
|
|
3472
3472
|
height: 12px;
|
|
3473
3473
|
overflow: hidden;
|
|
3474
3474
|
}
|
|
@@ -3499,27 +3499,27 @@ h2.react-datepicker__current-month {
|
|
|
3499
3499
|
}
|
|
3500
3500
|
|
|
3501
3501
|
.vuiProgressBar--accent .vuiProgressBar__bar {
|
|
3502
|
-
background-
|
|
3502
|
+
background-image: linear-gradient(to top, #5f30c3, rgba(95, 48, 195, 0.5));
|
|
3503
3503
|
}
|
|
3504
3504
|
|
|
3505
3505
|
.vuiProgressBar--primary .vuiProgressBar__bar {
|
|
3506
|
-
background-
|
|
3506
|
+
background-image: linear-gradient(to top, #045dda, rgba(4, 93, 218, 0.5));
|
|
3507
3507
|
}
|
|
3508
3508
|
|
|
3509
3509
|
.vuiProgressBar--success .vuiProgressBar__bar {
|
|
3510
|
-
background-
|
|
3510
|
+
background-image: linear-gradient(to top, #249719, rgba(36, 151, 25, 0.5));
|
|
3511
3511
|
}
|
|
3512
3512
|
|
|
3513
3513
|
.vuiProgressBar--warning .vuiProgressBar__bar {
|
|
3514
|
-
background-
|
|
3514
|
+
background-image: linear-gradient(to top, #a86f1b, rgba(168, 111, 27, 0.5));
|
|
3515
3515
|
}
|
|
3516
3516
|
|
|
3517
3517
|
.vuiProgressBar--danger .vuiProgressBar__bar {
|
|
3518
|
-
background-
|
|
3518
|
+
background-image: linear-gradient(to top, #d22d2d, rgba(210, 45, 45, 0.5));
|
|
3519
3519
|
}
|
|
3520
3520
|
|
|
3521
3521
|
.vuiProgressBar--neutral .vuiProgressBar__bar {
|
|
3522
|
-
background-
|
|
3522
|
+
background-image: linear-gradient(to top, #3f4551, #cbd1de);
|
|
3523
3523
|
}
|
|
3524
3524
|
|
|
3525
3525
|
.vuiPrompt {
|
|
@@ -4403,7 +4403,7 @@ h2.react-datepicker__current-month {
|
|
|
4403
4403
|
outline-offset: 2px;
|
|
4404
4404
|
}
|
|
4405
4405
|
.vuiToggle__input:checked + .vuiToggle__button:before {
|
|
4406
|
-
transform: translateX(
|
|
4406
|
+
transform: translateX(9px);
|
|
4407
4407
|
}
|
|
4408
4408
|
|
|
4409
4409
|
.vuiToggle__button {
|
|
@@ -4422,12 +4422,12 @@ h2.react-datepicker__current-month {
|
|
|
4422
4422
|
position: absolute;
|
|
4423
4423
|
content: "";
|
|
4424
4424
|
height: 16px;
|
|
4425
|
-
width:
|
|
4425
|
+
width: 23px;
|
|
4426
4426
|
left: 2px;
|
|
4427
4427
|
bottom: 2px;
|
|
4428
4428
|
background-color: #ffffff;
|
|
4429
4429
|
transition: 0.2s;
|
|
4430
|
-
border-radius:
|
|
4430
|
+
border-radius: 16px;
|
|
4431
4431
|
}
|
|
4432
4432
|
|
|
4433
4433
|
.vuiTooltip {
|
|
@@ -4646,7 +4646,7 @@ h2.react-datepicker__current-month {
|
|
|
4646
4646
|
}
|
|
4647
4647
|
.vuiText--xs code,
|
|
4648
4648
|
.vuiText--xs pre {
|
|
4649
|
-
font-size:
|
|
4649
|
+
font-size: 10.2px;
|
|
4650
4650
|
}
|
|
4651
4651
|
.vuiText--xs h1 {
|
|
4652
4652
|
font-size: 24px;
|
|
@@ -4700,7 +4700,7 @@ h2.react-datepicker__current-month {
|
|
|
4700
4700
|
}
|
|
4701
4701
|
.vuiText--s code,
|
|
4702
4702
|
.vuiText--s pre {
|
|
4703
|
-
font-size:
|
|
4703
|
+
font-size: 11.9px;
|
|
4704
4704
|
}
|
|
4705
4705
|
.vuiText--s h1 {
|
|
4706
4706
|
font-size: 28px;
|
|
@@ -4754,7 +4754,7 @@ h2.react-datepicker__current-month {
|
|
|
4754
4754
|
}
|
|
4755
4755
|
.vuiText--m code,
|
|
4756
4756
|
.vuiText--m pre {
|
|
4757
|
-
font-size:
|
|
4757
|
+
font-size: 13.6px;
|
|
4758
4758
|
}
|
|
4759
4759
|
.vuiText--m h1 {
|
|
4760
4760
|
font-size: 32px;
|
|
@@ -4808,7 +4808,7 @@ h2.react-datepicker__current-month {
|
|
|
4808
4808
|
}
|
|
4809
4809
|
.vuiText--l code,
|
|
4810
4810
|
.vuiText--l pre {
|
|
4811
|
-
font-size:
|
|
4811
|
+
font-size: 15.3px;
|
|
4812
4812
|
}
|
|
4813
4813
|
.vuiText--l h1 {
|
|
4814
4814
|
font-size: 36px;
|