@drivy/cobalt 1.1.2 → 1.1.4
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/cjs/tokens/icons.js +1 -0
- package/cjs/tokens/icons.js.map +1 -1
- package/components/Form/Slider.js +0 -1
- package/components/Form/Slider.js.map +1 -1
- package/components/Icon/__generated__/SmilingFaceIcon.js +21 -0
- package/components/Icon/__generated__/SmilingFaceIcon.js.map +1 -0
- package/components/Icon/__generated__/StarHalfIcon.js +2 -2
- package/components/Icon/__generated__/StarHalfIcon.js.map +1 -1
- package/components/Icon/__generated__/StarIcon.js +2 -2
- package/components/Icon/__generated__/StarIcon.js.map +1 -1
- package/icons/index.js +1 -0
- package/icons/index.js.map +1 -1
- package/icons/smiling-face.js +4 -0
- package/icons/smiling-face.js.map +1 -0
- package/icons/smiling-face.svg +1 -0
- package/icons/star-half.js +1 -1
- package/icons/star-half.svg +1 -1
- package/icons/star.js +1 -1
- package/icons/star.svg +1 -1
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/package.json +15 -15
- package/styles/components/BasicCell/index.scss +8 -10
- package/styles/components/BulletList/index.scss +3 -3
- package/styles/components/Buttons/DefaultButton/index.scss +1 -1
- package/styles/components/Buttons/GhostButton/index.scss +2 -4
- package/styles/components/Buttons/index.scss +9 -9
- package/styles/components/Calendar/CalendarDayPicker/index.scss +10 -11
- package/styles/components/Calendar/CalendarRangePicker/index.scss +20 -21
- package/styles/components/Calendar/CalendarView/index.scss +11 -13
- package/styles/components/Callout/index.scss +5 -16
- package/styles/components/Card/index.scss +11 -17
- package/styles/components/Cell/index.scss +6 -4
- package/styles/components/Chip/index.scss +8 -10
- package/styles/components/ContainedIcon/index.scss +11 -11
- package/styles/components/EmptyState/index.scss +6 -12
- package/styles/components/Flash/index.scss +7 -13
- package/styles/components/Form/Autocomplete/index.scss +1 -3
- package/styles/components/Form/CheckablePill.scss +9 -19
- package/styles/components/Form/Checkmark.scss +14 -23
- package/styles/components/Form/ComposedField.scss +2 -2
- package/styles/components/Form/Fieldset.scss +6 -9
- package/styles/components/Form/Hint.scss +4 -8
- package/styles/components/Form/RadioWithDetails.scss +11 -16
- package/styles/components/Form/Select.scss +2 -2
- package/styles/components/Form/Stepper.scss +7 -8
- package/styles/components/Form/TextArea.scss +4 -4
- package/styles/components/Form/TextInput.scss +2 -2
- package/styles/components/Form/ToggleSwitch.scss +12 -15
- package/styles/components/Form/field.scss +8 -6
- package/styles/components/Form/form.scss +8 -12
- package/styles/components/Helper/index.scss +4 -9
- package/styles/components/Icon/index.scss +4 -6
- package/styles/components/Pagination/index.scss +1 -1
- package/styles/components/PhotoDropzone/index.scss +9 -12
- package/styles/components/Pill/index.scss +7 -17
- package/styles/components/PlateNumber/index.scss +1 -7
- package/styles/components/Popover/index.scss +20 -19
- package/styles/components/PriceTable/index.scss +6 -5
- package/styles/components/ProgressBanner/index.scss +5 -18
- package/styles/components/ProgressBar/index.scss +6 -16
- package/styles/components/ProgressCircular/index.scss +5 -5
- package/styles/components/Rating/index.scss +4 -5
- package/styles/components/Sidepanel/index.scss +4 -4
- package/styles/components/TabBar/index.scss +10 -9
- package/styles/components/Tabs/index.scss +1 -2
- package/styles/components/Tag/index.scss +11 -23
- package/styles/core/global-variables.scss +1 -1
- package/tokens/icons.js +1 -0
- package/tokens/icons.js.map +1 -1
- package/types/src/components/Form/Autocomplete/index.d.ts +1 -1
- package/types/src/components/Form/TextInput.d.ts +1 -1
- package/types/src/components/Icon/__generated__/SmilingFaceIcon.d.ts +10 -0
- package/types/src/components/Icon/__generated__/index.d.ts +1 -0
- package/types/src/components/Icon/index.d.ts +1 -1
- package/types/src/icons/index.d.ts +1 -0
- package/types/src/tokens/index.d.ts +1 -0
- package/utils/getCobaltTailwindcssConfig.js.map +1 -1
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
@mixin form-input-base($container) {
|
|
2
|
-
@
|
|
3
|
-
@include border(strongInteractive);
|
|
4
|
-
@include bg-color(secondary);
|
|
2
|
+
@apply c-text-base c-border-strongInteractive c-bg-secondary;
|
|
5
3
|
@include withContext(#{$container}--success) {
|
|
6
|
-
@
|
|
4
|
+
@apply c-border-success;
|
|
7
5
|
|
|
8
6
|
&:not(:disabled):hover,
|
|
9
7
|
&:not(:disabled):focus {
|
|
10
|
-
@
|
|
8
|
+
@apply c-border-success;
|
|
11
9
|
}
|
|
12
10
|
}
|
|
13
11
|
|
|
14
12
|
@include withContext(#{$container}--error) {
|
|
15
|
-
@
|
|
13
|
+
@apply c-border-error;
|
|
16
14
|
|
|
17
15
|
&:not(:disabled):hover,
|
|
18
16
|
&:not(:disabled):focus {
|
|
19
|
-
@
|
|
17
|
+
@apply c-border-error;
|
|
20
18
|
}
|
|
21
19
|
}
|
|
22
20
|
|
|
@@ -36,13 +34,13 @@
|
|
|
36
34
|
transition: border-color 150ms ease-in-out;
|
|
37
35
|
|
|
38
36
|
&:not(:disabled):not(:read-only):hover {
|
|
39
|
-
@
|
|
37
|
+
@apply c-text-base;
|
|
40
38
|
|
|
41
39
|
box-shadow: elevation(base);
|
|
42
40
|
}
|
|
43
41
|
|
|
44
42
|
&:not(:disabled):not(:read-only):focus {
|
|
45
|
-
@
|
|
43
|
+
@apply c-border-accent c-border-2;
|
|
46
44
|
|
|
47
45
|
outline: none;
|
|
48
46
|
}
|
|
@@ -57,9 +55,7 @@
|
|
|
57
55
|
|
|
58
56
|
&:disabled,
|
|
59
57
|
&:not(select):read-only {
|
|
60
|
-
@
|
|
61
|
-
@include text-color(subdued);
|
|
62
|
-
@include bg-color(neutral);
|
|
58
|
+
@apply c-border-base c-text-subdued c-bg-neutral;
|
|
63
59
|
}
|
|
64
60
|
|
|
65
61
|
&:disabled {
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
.cobalt-helper {
|
|
2
|
-
@
|
|
3
|
-
|
|
4
|
-
padding: spacing(sm);
|
|
5
|
-
|
|
6
|
-
border-radius: border-radius(xl);
|
|
2
|
+
@apply c-border c-border-base c-bg-secondary c-rounded-xl;
|
|
3
|
+
padding: theme("spacing.sm");
|
|
7
4
|
|
|
8
5
|
&__title {
|
|
9
|
-
@
|
|
10
|
-
@include text-color(base);
|
|
6
|
+
@apply c-text-title-sm c-text-base;
|
|
11
7
|
}
|
|
12
8
|
|
|
13
9
|
&__content {
|
|
14
|
-
|
|
15
|
-
margin-bottom: spacing(sm);
|
|
10
|
+
@apply c-mt-xs c-mb-sm;
|
|
16
11
|
}
|
|
17
12
|
}
|
|
@@ -24,12 +24,10 @@
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
&Icon--contained {
|
|
27
|
-
@
|
|
27
|
+
@apply c-bg-neutralAlt c-rounded-lg;
|
|
28
28
|
height: 40px;
|
|
29
29
|
width: 40px;
|
|
30
30
|
padding: math.div(40px - 24px, 2);
|
|
31
|
-
|
|
32
|
-
border-radius: border-radius(lg);
|
|
33
31
|
}
|
|
34
32
|
|
|
35
33
|
&Icon--size16 {
|
|
@@ -42,7 +40,7 @@
|
|
|
42
40
|
|
|
43
41
|
padding: math.div(28px - 16px, 2);
|
|
44
42
|
|
|
45
|
-
|
|
43
|
+
@apply c-rounded-md;
|
|
46
44
|
}
|
|
47
45
|
}
|
|
48
46
|
|
|
@@ -56,7 +54,7 @@
|
|
|
56
54
|
|
|
57
55
|
padding: math.div(32px - 20px, 2);
|
|
58
56
|
|
|
59
|
-
|
|
57
|
+
@apply c-rounded-md;
|
|
60
58
|
}
|
|
61
59
|
}
|
|
62
60
|
|
|
@@ -70,7 +68,7 @@
|
|
|
70
68
|
|
|
71
69
|
padding: math.div(52px - 32px, 2);
|
|
72
70
|
|
|
73
|
-
|
|
71
|
+
@apply c-rounded-lg;
|
|
74
72
|
}
|
|
75
73
|
}
|
|
76
74
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
.cobalt-photo-dropzone {
|
|
2
|
-
@
|
|
3
|
-
@include border(accentAlt, default, dashed);
|
|
2
|
+
@apply c-bg-neutralAlt c-border c-border-accentAlt c-rounded-xl;
|
|
4
3
|
position: relative;
|
|
5
4
|
|
|
5
|
+
border-style: dashed;
|
|
6
|
+
|
|
6
7
|
display: flex;
|
|
7
8
|
align-items: center;
|
|
8
9
|
justify-content: center;
|
|
@@ -12,7 +13,6 @@
|
|
|
12
13
|
|
|
13
14
|
text-align: center;
|
|
14
15
|
|
|
15
|
-
border-radius: border-radius(xl);
|
|
16
16
|
cursor: pointer;
|
|
17
17
|
|
|
18
18
|
transition: background-color 0.25s;
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.cobalt-photo-dropzone--dragging {
|
|
34
|
-
@
|
|
34
|
+
@apply c-bg-accentAlt;
|
|
35
35
|
|
|
36
36
|
transition: background-color 0.25s;
|
|
37
37
|
|
|
@@ -42,16 +42,14 @@
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
.cobalt-photo-dropzone--loading {
|
|
45
|
-
@
|
|
46
|
-
@include text-color(accent);
|
|
45
|
+
@apply c-bg-neutral c-text-accent;
|
|
47
46
|
border-style: solid;
|
|
48
47
|
|
|
49
48
|
cursor: default;
|
|
50
49
|
}
|
|
51
50
|
|
|
52
51
|
.cobalt-photo-dropzone--errored {
|
|
53
|
-
@
|
|
54
|
-
@include border-color(error);
|
|
52
|
+
@apply c-bg-neutral c-border-error;
|
|
55
53
|
border-style: solid;
|
|
56
54
|
}
|
|
57
55
|
|
|
@@ -63,7 +61,7 @@
|
|
|
63
61
|
}
|
|
64
62
|
|
|
65
63
|
.cobalt-photo-dropzone__description--strong {
|
|
66
|
-
@
|
|
64
|
+
@apply c-text-accent;
|
|
67
65
|
font-weight: 700;
|
|
68
66
|
}
|
|
69
67
|
|
|
@@ -71,12 +69,12 @@
|
|
|
71
69
|
width: 100%;
|
|
72
70
|
height: 100%;
|
|
73
71
|
|
|
74
|
-
|
|
72
|
+
@apply c-rounded;
|
|
75
73
|
object-fit: cover;
|
|
76
74
|
}
|
|
77
75
|
|
|
78
76
|
.cobalt-photo-dropzone__delete-button {
|
|
79
|
-
@
|
|
77
|
+
@apply c-bg-neutralAlt c-rounded-full;
|
|
80
78
|
position: absolute;
|
|
81
79
|
bottom: 1rem;
|
|
82
80
|
right: 1rem;
|
|
@@ -86,7 +84,6 @@
|
|
|
86
84
|
|
|
87
85
|
border: 0;
|
|
88
86
|
|
|
89
|
-
border-radius: border-radius(full);
|
|
90
87
|
cursor: pointer;
|
|
91
88
|
opacity: 0;
|
|
92
89
|
|
|
@@ -1,52 +1,42 @@
|
|
|
1
1
|
$pill-height: 28px;
|
|
2
|
-
$group-item-spacing: spacing(xs);
|
|
3
2
|
|
|
4
3
|
.cobalt- {
|
|
5
4
|
&Pill {
|
|
6
|
-
@
|
|
7
|
-
@include text-color(base);
|
|
5
|
+
@apply c-bg-neutralAlt c-text-base c-rounded-full c-py-2xs c-px-sm;
|
|
8
6
|
display: inline-flex;
|
|
9
7
|
align-items: center;
|
|
10
8
|
|
|
11
9
|
height: $pill-height;
|
|
12
|
-
padding: spacing("2xs") spacing(sm);
|
|
13
10
|
|
|
14
11
|
font-size: 13px;
|
|
15
12
|
white-space: nowrap;
|
|
16
|
-
|
|
17
|
-
border-radius: $pill-height;
|
|
18
13
|
}
|
|
19
14
|
|
|
20
15
|
&Pill--large {
|
|
16
|
+
@apply c-py-xs c-px-md;
|
|
21
17
|
$pill-height: 40px;
|
|
22
18
|
height: $pill-height;
|
|
23
|
-
padding: spacing(xs) spacing(md);
|
|
24
|
-
|
|
25
|
-
border-radius: $pill-height;
|
|
26
19
|
}
|
|
27
20
|
|
|
28
21
|
&Pill--colorConnect {
|
|
29
|
-
@
|
|
22
|
+
@apply c-text-connect;
|
|
30
23
|
}
|
|
31
24
|
|
|
32
25
|
&Pill--overlayed {
|
|
33
|
-
@
|
|
34
|
-
@include text-color(accentAlt);
|
|
26
|
+
@apply c-bg-accentAlt c-text-accentAlt;
|
|
35
27
|
}
|
|
36
28
|
|
|
37
29
|
&Pill__Icon {
|
|
38
|
-
|
|
30
|
+
@apply c-mr-2xs;
|
|
39
31
|
}
|
|
40
32
|
|
|
41
33
|
&PillGroup {
|
|
42
|
-
|
|
43
|
-
margin-left: (-1 * $group-item-spacing);
|
|
34
|
+
@apply c--mt-xs c--ml-xs;
|
|
44
35
|
}
|
|
45
36
|
|
|
46
37
|
&PillGroup__Item {
|
|
38
|
+
@apply c-mt-xs c-ml-xs;
|
|
47
39
|
display: inline-block;
|
|
48
|
-
margin-top: $group-item-spacing;
|
|
49
|
-
margin-left: $group-item-spacing;
|
|
50
40
|
|
|
51
41
|
vertical-align: top;
|
|
52
42
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
.cobalt-plate-number {
|
|
2
|
-
@
|
|
3
|
-
@include bg-color(primary);
|
|
4
|
-
@include text-color(base);
|
|
2
|
+
@apply c-border-base c-bg-primary c-text-base c-rounded c-py-[2px] c-px-2xs;
|
|
5
3
|
|
|
6
4
|
display: inline-flex;
|
|
7
5
|
|
|
@@ -9,8 +7,6 @@
|
|
|
9
7
|
|
|
10
8
|
height: 20px;
|
|
11
9
|
|
|
12
|
-
padding: 2px spacing("2xs");
|
|
13
|
-
|
|
14
10
|
font-family: font-family(base);
|
|
15
11
|
|
|
16
12
|
font-size: 14px;
|
|
@@ -19,7 +15,5 @@
|
|
|
19
15
|
|
|
20
16
|
line-height: 14px;
|
|
21
17
|
|
|
22
|
-
border-radius: border-radius();
|
|
23
|
-
|
|
24
18
|
letter-spacing: normal;
|
|
25
19
|
}
|
|
@@ -4,35 +4,36 @@
|
|
|
4
4
|
|
|
5
5
|
[data-theme~="cobalt-popover"] {
|
|
6
6
|
&.tippy-box {
|
|
7
|
-
@
|
|
8
|
-
@include text-color(base);
|
|
9
|
-
|
|
10
|
-
box-shadow: elevation(lg);
|
|
11
|
-
|
|
12
|
-
border-radius: border-radius(lg);
|
|
7
|
+
@apply c-bg-secondary c-text-base c-shadow-lg c-rounded-lg;
|
|
13
8
|
}
|
|
14
9
|
|
|
15
10
|
.tippy-content {
|
|
16
11
|
padding: 0;
|
|
17
12
|
min-width: 16rem;
|
|
18
13
|
|
|
19
|
-
|
|
14
|
+
@apply c-rounded-lg;
|
|
20
15
|
}
|
|
21
16
|
|
|
22
17
|
&[data-placement^="top"] > .tippy-arrow::before {
|
|
23
|
-
border-top-color:
|
|
18
|
+
border-top-color: var(--theme-semanticBackgroundColor-secondary) !important;
|
|
24
19
|
}
|
|
25
20
|
|
|
26
21
|
&[data-placement^="bottom"] > .tippy-arrow::before {
|
|
27
|
-
border-bottom-color:
|
|
22
|
+
border-bottom-color: var(
|
|
23
|
+
--theme-semanticBackgroundColor-secondary
|
|
24
|
+
) !important;
|
|
28
25
|
}
|
|
29
26
|
|
|
30
27
|
&[data-placement^="left"] > .tippy-arrow::before {
|
|
31
|
-
border-left-color:
|
|
28
|
+
border-left-color: var(
|
|
29
|
+
--theme-semanticBackgroundColor-secondary
|
|
30
|
+
) !important;
|
|
32
31
|
}
|
|
33
32
|
|
|
34
33
|
&[data-placement^="right"] > .tippy-arrow::before {
|
|
35
|
-
border-right-color:
|
|
34
|
+
border-right-color: var(
|
|
35
|
+
--theme-semanticBackgroundColor-secondary
|
|
36
|
+
) !important;
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
39
|
|
|
@@ -44,27 +45,27 @@
|
|
|
44
45
|
|
|
45
46
|
[data-theme~="cobalt-popover--withArrow"] {
|
|
46
47
|
&.tippy-box {
|
|
47
|
-
|
|
48
|
+
@apply c-rounded-xl;
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
.tippy-content {
|
|
51
|
-
|
|
52
|
+
@apply c-rounded-xl;
|
|
52
53
|
}
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
.cobalt-popover--bodySpacing {
|
|
56
|
-
padding: spacing
|
|
57
|
+
padding: theme("spacing.md");
|
|
57
58
|
}
|
|
58
59
|
|
|
59
60
|
.use-cobalt-dark-theme {
|
|
60
61
|
[data-theme~="cobalt-popover"] {
|
|
61
|
-
box-shadow: 0 0 0 1px
|
|
62
|
+
box-shadow: 0 0 0 1px var(--theme-semanticBorderColor-base);
|
|
62
63
|
|
|
63
64
|
&[data-placement^="top"] > .tippy-arrow {
|
|
64
65
|
bottom: -1px;
|
|
65
66
|
|
|
66
67
|
&::before {
|
|
67
|
-
border-top-color:
|
|
68
|
+
border-top-color: var(--theme-semanticBorderColor-base) !important;
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
71
|
|
|
@@ -72,7 +73,7 @@
|
|
|
72
73
|
top: -1px;
|
|
73
74
|
|
|
74
75
|
&::before {
|
|
75
|
-
border-bottom-color:
|
|
76
|
+
border-bottom-color: var(--theme-semanticBorderColor-base) !important;
|
|
76
77
|
}
|
|
77
78
|
}
|
|
78
79
|
|
|
@@ -80,7 +81,7 @@
|
|
|
80
81
|
right: -1px;
|
|
81
82
|
|
|
82
83
|
&::before {
|
|
83
|
-
border-left-color:
|
|
84
|
+
border-left-color: var(--theme-semanticBorderColor-base) !important;
|
|
84
85
|
}
|
|
85
86
|
}
|
|
86
87
|
|
|
@@ -88,7 +89,7 @@
|
|
|
88
89
|
left: -1px;
|
|
89
90
|
|
|
90
91
|
&::before {
|
|
91
|
-
border-right-color:
|
|
92
|
+
border-right-color: var(--theme-semanticBorderColor-base) !important;
|
|
92
93
|
}
|
|
93
94
|
}
|
|
94
95
|
}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
.cobalt- {
|
|
2
2
|
&PriceTable__Row {
|
|
3
|
-
@
|
|
3
|
+
@apply c-text-body-md;
|
|
4
4
|
|
|
5
5
|
display: flex;
|
|
6
6
|
justify-content: space-between;
|
|
7
7
|
|
|
8
8
|
&:not(:last-child) {
|
|
9
|
-
|
|
9
|
+
@apply c-mb-sm;
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
&PriceTable__Label {
|
|
14
|
-
|
|
14
|
+
@apply c-mr-2xs;
|
|
15
|
+
|
|
15
16
|
width: 100%;
|
|
16
17
|
}
|
|
17
18
|
|
|
@@ -20,11 +21,11 @@
|
|
|
20
21
|
white-space: nowrap;
|
|
21
22
|
|
|
22
23
|
&--discount {
|
|
23
|
-
@
|
|
24
|
+
@apply c-text-success;
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
&:empty:before {
|
|
27
|
-
@
|
|
28
|
+
@apply c-text-subdued;
|
|
28
29
|
font-weight: normal;
|
|
29
30
|
|
|
30
31
|
content: "—";
|
|
@@ -1,46 +1,34 @@
|
|
|
1
1
|
.cobalt-progressBanner {
|
|
2
|
-
@
|
|
3
|
-
@include text-color(info);
|
|
2
|
+
@apply c-bg-info c-text-info c-rounded-xl c-p-sm c-gap-sm;
|
|
4
3
|
|
|
5
4
|
display: inline-flex;
|
|
6
5
|
align-items: center;
|
|
7
6
|
|
|
8
|
-
padding: spacing(sm);
|
|
9
|
-
|
|
10
|
-
border-radius: border-radius(xl);
|
|
11
|
-
|
|
12
|
-
gap: spacing(sm);
|
|
13
|
-
|
|
14
7
|
&__progress-container {
|
|
15
8
|
font-weight: 600;
|
|
16
9
|
}
|
|
17
10
|
|
|
18
11
|
&__completed-icon-container {
|
|
19
|
-
@
|
|
12
|
+
@apply c-bg-primary c-rounded-full c-w-xl c-h-xl;
|
|
20
13
|
|
|
21
14
|
display: flex;
|
|
22
15
|
|
|
23
16
|
justify-content: center;
|
|
24
17
|
align-items: center;
|
|
25
18
|
|
|
26
|
-
width: spacing(xl);
|
|
27
|
-
height: spacing(xl);
|
|
28
|
-
|
|
29
19
|
margin: 0 5px; // ProgressCircular stroke width
|
|
30
20
|
|
|
31
21
|
flex-shrink: 0;
|
|
32
|
-
|
|
33
|
-
border-radius: 50%;
|
|
34
22
|
}
|
|
35
23
|
|
|
36
24
|
&__text-container {
|
|
25
|
+
@apply c-gap-2xs;
|
|
37
26
|
display: flex;
|
|
38
27
|
flex-direction: column;
|
|
39
|
-
gap: spacing("2xs");
|
|
40
28
|
}
|
|
41
29
|
|
|
42
30
|
&__title {
|
|
43
|
-
@
|
|
31
|
+
@apply c-text-title-xs;
|
|
44
32
|
}
|
|
45
33
|
|
|
46
34
|
&__description {
|
|
@@ -48,8 +36,7 @@
|
|
|
48
36
|
}
|
|
49
37
|
|
|
50
38
|
&--completed {
|
|
51
|
-
@
|
|
52
|
-
@include text-color(successAlt);
|
|
39
|
+
@apply c-bg-successAlt c-text-successAlt;
|
|
53
40
|
}
|
|
54
41
|
|
|
55
42
|
&__completed-icon-container--animated .cobalt-Icon {
|
|
@@ -6,53 +6,43 @@
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
&ProgressBar__Progression {
|
|
9
|
-
@
|
|
10
|
-
@include text-color(infoAlt);
|
|
9
|
+
@apply c-text-title-md c-text-infoAlt;
|
|
11
10
|
}
|
|
12
11
|
|
|
13
12
|
&ProgressBar__Title {
|
|
14
|
-
@
|
|
15
|
-
@include text-color(base);
|
|
13
|
+
@apply c-text-title-sm c-text-base;
|
|
16
14
|
}
|
|
17
15
|
|
|
18
16
|
&ProgressBar__CompletedCheckbox {
|
|
19
17
|
path {
|
|
20
|
-
|
|
18
|
+
fill: theme("semanticFillColor.secondary");
|
|
21
19
|
}
|
|
22
20
|
}
|
|
23
21
|
|
|
24
22
|
&ProgressBar__Container {
|
|
25
|
-
@
|
|
23
|
+
@apply c-bg-fill-subdued c-rounded c-mt-sm c-h-2xs;
|
|
26
24
|
position: relative;
|
|
27
25
|
|
|
28
|
-
margin-top: spacing(sm);
|
|
29
|
-
|
|
30
|
-
height: spacing("2xs");
|
|
31
26
|
width: 100%;
|
|
32
27
|
|
|
33
28
|
border-radius: 2px;
|
|
34
29
|
}
|
|
35
30
|
|
|
36
31
|
&ProgressBar__Foreground {
|
|
37
|
-
@
|
|
32
|
+
@apply c-bg-fill-secondary c-rounded c-h-2xs;
|
|
38
33
|
position: absolute;
|
|
39
34
|
left: 0;
|
|
40
35
|
top: 0;
|
|
41
36
|
|
|
42
|
-
height: spacing("2xs");
|
|
43
|
-
|
|
44
37
|
border-radius: 2px;
|
|
45
38
|
}
|
|
46
39
|
|
|
47
40
|
&ProgressBar__Tick {
|
|
48
|
-
@
|
|
41
|
+
@apply c-bg-fill-secondary c-rounded c-w-2xs c-h-sm;
|
|
49
42
|
position: absolute;
|
|
50
43
|
top: -6px;
|
|
51
44
|
right: 0;
|
|
52
45
|
|
|
53
|
-
height: 4 * spacing("2xs");
|
|
54
|
-
width: spacing("2xs");
|
|
55
|
-
|
|
56
46
|
border-radius: 2px;
|
|
57
47
|
}
|
|
58
48
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.cobalt-circularProgressBar {
|
|
2
2
|
--content-size: 64px;
|
|
3
3
|
--total-size: calc((var(--content-size) / 4) + var(--content-size));
|
|
4
|
-
--progress-color:
|
|
4
|
+
--progress-color: var(--theme-semanticFillColor-base);
|
|
5
5
|
|
|
6
6
|
position: relative;
|
|
7
7
|
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
&__content {
|
|
39
|
-
@
|
|
39
|
+
@apply c-bg-primary;
|
|
40
40
|
|
|
41
41
|
position: absolute;
|
|
42
42
|
|
|
@@ -72,14 +72,14 @@
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
&--info {
|
|
75
|
-
--progress-color:
|
|
75
|
+
--progress-color: var(--theme-semanticFillColor-secondary);
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
&--error {
|
|
79
|
-
--progress-color:
|
|
79
|
+
--progress-color: var(--theme-semanticFillColor-error);
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
&--success {
|
|
83
|
-
--progress-color:
|
|
83
|
+
--progress-color: var(--theme-semanticFillColor-success);
|
|
84
84
|
}
|
|
85
85
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.cobalt-rating__label {
|
|
13
|
-
@
|
|
13
|
+
@apply c-text-subdued;
|
|
14
14
|
line-height: 14px;
|
|
15
15
|
font-size: 14px;
|
|
16
16
|
}
|
|
@@ -36,8 +36,7 @@
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
&--icon-size-48 .cobalt-Icon {
|
|
39
|
-
|
|
40
|
-
width: spacing(xl);
|
|
39
|
+
@apply c-h-xl c-w-xl;
|
|
41
40
|
}
|
|
42
41
|
|
|
43
42
|
&__icon-wrapper {
|
|
@@ -81,8 +80,8 @@
|
|
|
81
80
|
&:not(:hover):not(:focus-visible) input:focus {
|
|
82
81
|
// focus feedback with keyboard navigation only
|
|
83
82
|
& + .cobalt-Icon {
|
|
84
|
-
@
|
|
85
|
-
border-radius:
|
|
83
|
+
@apply c-border-accent;
|
|
84
|
+
border-radius: theme("spacing.2xs");
|
|
86
85
|
}
|
|
87
86
|
}
|
|
88
87
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
.cobalt-sidepanel {
|
|
2
|
-
@
|
|
2
|
+
@apply c-bg-primary;
|
|
3
3
|
|
|
4
4
|
position: fixed;
|
|
5
5
|
|
|
6
6
|
top: 0;
|
|
7
7
|
right: 0;
|
|
8
|
-
z-index:
|
|
8
|
+
z-index: theme("zIndex.sidepanel");
|
|
9
9
|
|
|
10
10
|
height: 100vh;
|
|
11
11
|
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
&--visible {
|
|
29
|
-
|
|
29
|
+
@apply c-shadow-lg;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
top: 0;
|
|
37
37
|
left: 0;
|
|
38
38
|
|
|
39
|
-
z-index:
|
|
39
|
+
z-index: theme("zIndex.sidepanel-below");
|
|
40
40
|
|
|
41
41
|
background-color: fade-out(black, 0.2);
|
|
42
42
|
|