@drivy/cobalt 0.17.0 → 0.19.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/cjs/tokens/icons.js +1 -0
- package/cjs/tokens/icons.js.map +1 -1
- package/cjs/tokens/theme.js +4 -4
- package/components/Accordion/index.js +4 -2
- package/components/Accordion/index.js.map +1 -1
- package/components/Buttons/DefaultButton/index.js +6 -6
- package/components/Buttons/DefaultButton/index.js.map +1 -1
- package/components/Card/index.js +4 -3
- package/components/Card/index.js.map +1 -1
- package/components/Icon/__generated__/PhoneLinkIcon.js +21 -0
- package/components/Icon/__generated__/PhoneLinkIcon.js.map +1 -0
- package/components/Modal/ModalHeader.js +1 -1
- package/components/Modal/ModalHeader.js.map +1 -1
- package/components/Pill/index.js +1 -1
- package/components/Pill/index.js.map +1 -1
- package/components/PriceTable/index.js +3 -2
- package/components/PriceTable/index.js.map +1 -1
- package/components/Rating/RatingCompact.js +5 -2
- package/components/Rating/RatingCompact.js.map +1 -1
- package/components/Tabs/index.js +5 -3
- package/components/Tabs/index.js.map +1 -1
- package/components/Tag/index.js +1 -1
- package/components/Tag/index.js.map +1 -1
- package/icons/index.js +1 -0
- package/icons/index.js.map +1 -1
- package/icons/phone-link.js +4 -0
- package/icons/phone-link.js.map +1 -0
- package/icons/phone-link.svg +1 -0
- package/icons/search-car.js +1 -1
- package/icons/search-car.svg +1 -1
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/package.json +29 -29
- package/styles/components/Accordion/index.scss +7 -0
- package/styles/components/Buttons/DefaultButton/index.scss +9 -0
- package/styles/components/Helper/index.scss +5 -1
- package/styles/components/Modal/index.scss +3 -8
- package/styles/components/Note/index.scss +3 -4
- package/styles/components/PhotoDropzone/index.scss +9 -11
- package/styles/components/Pill/index.scss +9 -10
- package/styles/components/PriceTable/index.scss +4 -4
- package/styles/components/ProgressBar/index.scss +10 -10
- package/styles/components/Tabs/index.scss +4 -8
- package/styles/components/Tag/index.scss +5 -7
- package/styles/core/_colors-map.scss +4 -4
- package/styles/core/border.scss +2 -2
- package/styles/core/theme.scss +4 -4
- package/tokens/icons.js +1 -0
- package/tokens/icons.js.map +1 -1
- package/tokens/theme.js +4 -4
- package/types/components/Accordion/index.d.ts +4 -0
- package/types/components/Button/index.d.ts +8 -8
- package/types/components/Buttons/DefaultButton/index.d.ts +5 -5
- package/types/components/Buttons/GhostButton/index.d.ts +2 -2
- package/types/components/Card/index.d.ts +5 -1
- package/types/components/Form/Autocomplete/index.d.ts +2 -2
- package/types/components/Form/TextInput.d.ts +3 -3
- package/types/components/Icon/__generated__/PhoneLinkIcon.d.ts +10 -0
- package/types/components/Icon/__generated__/index.d.ts +1 -0
- package/types/components/Icon/index.d.ts +1 -1
- package/types/components/PriceTable/index.d.ts +7 -4
- package/types/components/Rating/RatingCompact.d.ts +2 -1
- package/types/components/Tag/index.d.ts +2 -1
- package/types/icons/index.d.ts +1 -0
- package/types/tokens/index.d.ts +4 -3
- package/utilities.css +4 -7
- package/types/__tests__/fileMock.d.ts +0 -2
- package/types/components/Icon/svgrTemplate.d.ts +0 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@drivy/cobalt",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "Opinionated design system for Drivy's projects.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"url": "https://github.com/TimPetricola"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@juggle/resize-observer": "3.
|
|
19
|
+
"@juggle/resize-observer": "3.4.0",
|
|
20
20
|
"@reach/accordion": "0.16.1",
|
|
21
21
|
"@reach/alert": "0.16.0",
|
|
22
22
|
"@reach/combobox": "0.16.3",
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
"@react-spring/web": "9.3.0",
|
|
29
29
|
"@tippyjs/react": "4.2.6",
|
|
30
30
|
"classnames": "2.3.1",
|
|
31
|
-
"date-fns": "2.
|
|
31
|
+
"date-fns": "2.29.2",
|
|
32
32
|
"lodash.throttle": "4.1.1",
|
|
33
33
|
"media-typer": "1.1.0",
|
|
34
34
|
"nanoid": "3.3.4",
|
|
35
|
-
"postcss": "8.4.
|
|
35
|
+
"postcss": "8.4.16",
|
|
36
36
|
"tailwindcss": "2.2.19",
|
|
37
37
|
"tippy.js": "6.3.7"
|
|
38
38
|
},
|
|
@@ -41,60 +41,60 @@
|
|
|
41
41
|
"react-dom": "^17.0.2"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@getaround-eu/babel-preset-app": "0.5.
|
|
45
|
-
"@getaround-eu/eslint-config": "1.7.
|
|
44
|
+
"@getaround-eu/babel-preset-app": "0.5.2",
|
|
45
|
+
"@getaround-eu/eslint-config": "1.7.2",
|
|
46
46
|
"@getaround-eu/prettier-config": "1.2.0",
|
|
47
|
-
"@getaround-eu/stylelint-config": "1.2.
|
|
47
|
+
"@getaround-eu/stylelint-config": "1.2.2",
|
|
48
48
|
"@getaround-eu/ts-config": "2.1.0",
|
|
49
49
|
"@percy/storybook": "3.3.1",
|
|
50
50
|
"@rollup/plugin-json": "4.1.0",
|
|
51
|
-
"@rushstack/eslint-patch": "1.1.
|
|
52
|
-
"@storybook/addon-essentials": "6.5.
|
|
53
|
-
"@storybook/addons": "6.5.
|
|
54
|
-
"@storybook/builder-webpack5": "6.5.
|
|
55
|
-
"@storybook/manager-webpack5": "6.5.
|
|
56
|
-
"@storybook/react": "6.5.
|
|
57
|
-
"@svgr/cli": "6.
|
|
58
|
-
"@testing-library/jest-dom": "5.16.
|
|
51
|
+
"@rushstack/eslint-patch": "1.1.4",
|
|
52
|
+
"@storybook/addon-essentials": "6.5.10",
|
|
53
|
+
"@storybook/addons": "6.5.10",
|
|
54
|
+
"@storybook/builder-webpack5": "6.5.10",
|
|
55
|
+
"@storybook/manager-webpack5": "6.5.10",
|
|
56
|
+
"@storybook/react": "6.5.10",
|
|
57
|
+
"@svgr/cli": "6.3.1",
|
|
58
|
+
"@testing-library/jest-dom": "5.16.5",
|
|
59
59
|
"@testing-library/react": "12.1.5",
|
|
60
|
-
"@testing-library/react-hooks": "8.0.
|
|
60
|
+
"@testing-library/react-hooks": "8.0.1",
|
|
61
61
|
"@types/classnames": "2.3.0",
|
|
62
62
|
"@types/jest": "27.5.2",
|
|
63
63
|
"@types/lodash.throttle": "4.1.7",
|
|
64
64
|
"@types/media-typer": "1.1.1",
|
|
65
|
-
"@types/react": "17.0.
|
|
65
|
+
"@types/react": "17.0.49",
|
|
66
66
|
"@whitespace/storybook-addon-html": "^5.0.0",
|
|
67
|
-
"autoprefixer": "10.4.
|
|
68
|
-
"core-js": "3.
|
|
67
|
+
"autoprefixer": "10.4.8",
|
|
68
|
+
"core-js": "3.24.1",
|
|
69
69
|
"css-loader": "6.7.1",
|
|
70
|
-
"eslint": "8.
|
|
70
|
+
"eslint": "8.23.0",
|
|
71
71
|
"jest": "27.5.1",
|
|
72
72
|
"nested-object-access": "^0.2.5",
|
|
73
|
-
"np": "7.6.
|
|
73
|
+
"np": "7.6.2",
|
|
74
74
|
"postcss-flexbugs-fixes": "5.0.2",
|
|
75
75
|
"postcss-loader": "6.2.1",
|
|
76
|
-
"prettier": "2.
|
|
76
|
+
"prettier": "2.7.1",
|
|
77
77
|
"raw-loader": "4.0.2",
|
|
78
78
|
"react": "17.0.2",
|
|
79
79
|
"react-dom": "17.0.2",
|
|
80
80
|
"react-test-renderer": "17.0.2",
|
|
81
81
|
"regenerator-runtime": "0.13.9",
|
|
82
|
-
"rollup": "2.
|
|
82
|
+
"rollup": "2.79.0",
|
|
83
83
|
"rollup-plugin-copy": "3.4.0",
|
|
84
84
|
"rollup-plugin-postcss": "4.0.2",
|
|
85
85
|
"rollup-plugin-svgo": "1.1.0",
|
|
86
|
-
"rollup-plugin-typescript2": "0.
|
|
87
|
-
"sass": "1.
|
|
86
|
+
"rollup-plugin-typescript2": "0.33.0",
|
|
87
|
+
"sass": "1.54.8",
|
|
88
88
|
"sass-loader": "12.6.0",
|
|
89
89
|
"sharp": "0.30.7",
|
|
90
90
|
"sharp-cli": "2.1.1",
|
|
91
91
|
"style-loader": "3.3.1",
|
|
92
|
-
"stylelint": "14.
|
|
92
|
+
"stylelint": "14.11.0",
|
|
93
93
|
"svg2vectordrawable": "2.9.1",
|
|
94
94
|
"svgo": "2.8.0",
|
|
95
95
|
"ts-jest": "27.1.5",
|
|
96
|
-
"ts-node": "10.
|
|
97
|
-
"typescript": "4.7.
|
|
96
|
+
"ts-node": "10.9.1",
|
|
97
|
+
"typescript": "4.7.4"
|
|
98
98
|
},
|
|
99
99
|
"scripts": {
|
|
100
100
|
"build": "./scripts/build.sh",
|
|
@@ -138,6 +138,6 @@
|
|
|
138
138
|
"access": "public"
|
|
139
139
|
},
|
|
140
140
|
"resolutions": {
|
|
141
|
-
"@types/react": "17.0.
|
|
141
|
+
"@types/react": "17.0.49"
|
|
142
142
|
}
|
|
143
143
|
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
width: 100%;
|
|
12
12
|
display: flex;
|
|
13
13
|
padding: spacing(sm);
|
|
14
|
+
|
|
14
15
|
border: 0;
|
|
15
16
|
|
|
16
17
|
font-family: font-family(base);
|
|
@@ -20,6 +21,12 @@
|
|
|
20
21
|
// Disable reach-ui styles
|
|
21
22
|
background: transparent;
|
|
22
23
|
|
|
24
|
+
gap: spacing(sm);
|
|
25
|
+
|
|
26
|
+
&--left-toggle-icon {
|
|
27
|
+
flex-direction: row-reverse;
|
|
28
|
+
}
|
|
29
|
+
|
|
23
30
|
&-content {
|
|
24
31
|
width: 100%;
|
|
25
32
|
|
|
@@ -45,4 +45,13 @@
|
|
|
45
45
|
@include semantic-color(error, stroke, border-color);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
+
|
|
49
|
+
&--selected:hover,
|
|
50
|
+
&--selected:focus,
|
|
51
|
+
&--selected:active,
|
|
52
|
+
&--selected {
|
|
53
|
+
@include semantic-color(selected, buttonBackground, background-color);
|
|
54
|
+
@include semantic-color(selected, buttonLabel, color);
|
|
55
|
+
@include border-color(accent);
|
|
56
|
+
}
|
|
48
57
|
}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
.cobalt-helper {
|
|
2
|
+
@include border(base);
|
|
3
|
+
@include bg-color(secondary);
|
|
2
4
|
padding: spacing(sm);
|
|
3
5
|
|
|
6
|
+
// FIXME: remove when releasing semantics color
|
|
4
7
|
background-color: fade-out(color(purple), 0.92);
|
|
8
|
+
|
|
5
9
|
border-radius: border-radius(xl);
|
|
6
10
|
|
|
7
11
|
&__title {
|
|
8
12
|
@include text-style-title-small;
|
|
9
|
-
|
|
13
|
+
@include text-color(base);
|
|
10
14
|
}
|
|
11
15
|
|
|
12
16
|
&__content {
|
|
@@ -71,26 +71,21 @@ $reach-ui-dialog-margin-top: 10vh;
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
&-footer {
|
|
74
|
-
|
|
75
|
-
border-top: border(grey);
|
|
76
|
-
border-color: color(grey, light);
|
|
74
|
+
@include border-top(base);
|
|
77
75
|
padding: spacing(sm);
|
|
78
76
|
}
|
|
79
77
|
|
|
80
78
|
&-header {
|
|
79
|
+
@include border-bottom(base);
|
|
81
80
|
display: flex;
|
|
82
81
|
justify-content: space-between;
|
|
83
82
|
align-items: center;
|
|
84
83
|
padding: spacing(md);
|
|
85
|
-
/* FIXME border function doesn't handle color variant */
|
|
86
|
-
border-bottom: border(grey);
|
|
87
|
-
border-color: color(grey, light);
|
|
88
84
|
|
|
89
85
|
&__title {
|
|
90
86
|
@include c-text-title-md;
|
|
87
|
+
@include text-color(base);
|
|
91
88
|
margin: spacing(none);
|
|
92
|
-
|
|
93
|
-
color: color(indigo, dark);
|
|
94
89
|
}
|
|
95
90
|
|
|
96
91
|
&__close-button {
|
|
@@ -2,14 +2,13 @@
|
|
|
2
2
|
&Note {
|
|
3
3
|
@include text-style-body;
|
|
4
4
|
@include text-style--bodySubdued;
|
|
5
|
+
@include bg-color(info);
|
|
5
6
|
|
|
6
7
|
display: inline-block;
|
|
7
8
|
|
|
8
|
-
padding: spacing(
|
|
9
|
+
padding: spacing(sm);
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
border-radius: border-radius(x-large);
|
|
11
|
+
border-radius: border-radius(lg);
|
|
13
12
|
}
|
|
14
13
|
|
|
15
14
|
&Note--fullWidth {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
.cobalt-photo-dropzone {
|
|
2
|
+
@include bg-color(neutralAlt);
|
|
3
|
+
@include border(accentAlt, default, dashed);
|
|
2
4
|
position: relative;
|
|
3
5
|
|
|
4
6
|
display: flex;
|
|
@@ -7,13 +9,11 @@
|
|
|
7
9
|
height: 100%;
|
|
8
10
|
width: 100%;
|
|
9
11
|
min-height: 14rem;
|
|
10
|
-
border: border(purple, default, dashed);
|
|
11
12
|
|
|
12
13
|
text-align: center;
|
|
13
14
|
|
|
14
15
|
border-radius: border-radius(xl);
|
|
15
16
|
cursor: pointer;
|
|
16
|
-
background-color: color(grey, lighter);
|
|
17
17
|
|
|
18
18
|
transition: background-color 0.25s;
|
|
19
19
|
}
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.cobalt-photo-dropzone--dragging {
|
|
34
|
+
// FIXME NEW COLORS: this background doesn't match any semantic color
|
|
34
35
|
background-color: #f6e5f5;
|
|
35
36
|
|
|
36
37
|
transition: background-color 0.25s;
|
|
@@ -42,20 +43,17 @@
|
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
.cobalt-photo-dropzone--loading {
|
|
45
|
-
|
|
46
|
+
@include bg-color(neutral);
|
|
47
|
+
@include text-color(accent);
|
|
46
48
|
border-style: solid;
|
|
47
49
|
|
|
48
|
-
color: color(indigo, dark);
|
|
49
|
-
|
|
50
50
|
cursor: default;
|
|
51
|
-
background-color: color(grey, light);
|
|
52
51
|
}
|
|
53
52
|
|
|
54
53
|
.cobalt-photo-dropzone--errored {
|
|
55
|
-
|
|
54
|
+
@include bg-color(neutral);
|
|
55
|
+
@include border-color(error);
|
|
56
56
|
border-style: solid;
|
|
57
|
-
|
|
58
|
-
background-color: color(grey, light);
|
|
59
57
|
}
|
|
60
58
|
|
|
61
59
|
.cobalt-photo-dropzone__description {
|
|
@@ -66,7 +64,7 @@
|
|
|
66
64
|
}
|
|
67
65
|
|
|
68
66
|
.cobalt-photo-dropzone__description--strong {
|
|
69
|
-
|
|
67
|
+
@include text-color(accent);
|
|
70
68
|
font-weight: 700;
|
|
71
69
|
}
|
|
72
70
|
|
|
@@ -79,6 +77,7 @@
|
|
|
79
77
|
}
|
|
80
78
|
|
|
81
79
|
.cobalt-photo-dropzone__delete-button {
|
|
80
|
+
@include bg-color(neutralAlt);
|
|
82
81
|
position: absolute;
|
|
83
82
|
bottom: 1rem;
|
|
84
83
|
right: 1rem;
|
|
@@ -89,7 +88,6 @@
|
|
|
89
88
|
border: 0;
|
|
90
89
|
|
|
91
90
|
border-radius: border-radius(full);
|
|
92
|
-
background: color(white);
|
|
93
91
|
cursor: pointer;
|
|
94
92
|
opacity: 0;
|
|
95
93
|
|
|
@@ -1,44 +1,43 @@
|
|
|
1
1
|
$pill-height: 28px;
|
|
2
|
-
$group-item-spacing: spacing(
|
|
2
|
+
$group-item-spacing: spacing(xs);
|
|
3
3
|
|
|
4
4
|
.cobalt- {
|
|
5
5
|
&Pill {
|
|
6
|
+
@include bg-color(neutralAlt);
|
|
7
|
+
@include text-color(base);
|
|
6
8
|
display: inline-flex;
|
|
7
9
|
align-items: center;
|
|
8
10
|
|
|
9
11
|
height: $pill-height;
|
|
10
|
-
padding: spacing(
|
|
12
|
+
padding: spacing("2xs") spacing(sm);
|
|
11
13
|
|
|
12
14
|
font-size: 13px;
|
|
13
15
|
white-space: nowrap;
|
|
14
16
|
|
|
15
|
-
color: color(indigo);
|
|
16
|
-
|
|
17
17
|
border-radius: $pill-height;
|
|
18
|
-
|
|
19
|
-
background-color: color(acier, lighter);
|
|
20
18
|
}
|
|
21
19
|
|
|
22
20
|
&Pill--large {
|
|
23
21
|
$pill-height: 40px;
|
|
24
22
|
height: $pill-height;
|
|
25
|
-
padding: spacing(
|
|
23
|
+
padding: spacing(xs) spacing();
|
|
26
24
|
|
|
27
25
|
border-radius: $pill-height;
|
|
28
26
|
}
|
|
29
27
|
|
|
30
28
|
&Pill--colorAller {
|
|
31
|
-
|
|
29
|
+
@include text-color(connect);
|
|
32
30
|
}
|
|
33
31
|
|
|
34
32
|
&Pill--overlayed {
|
|
35
|
-
|
|
33
|
+
@include text-color(inversed);
|
|
36
34
|
|
|
35
|
+
// FIXME NEW COLORS: this background doesn't match any semantic color
|
|
37
36
|
background-color: rgba(color(graphite), 0.5);
|
|
38
37
|
}
|
|
39
38
|
|
|
40
39
|
&Pill__Icon {
|
|
41
|
-
margin-right: spacing(
|
|
40
|
+
margin-right: spacing("2xs");
|
|
42
41
|
}
|
|
43
42
|
|
|
44
43
|
&PillGroup {
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
justify-content: space-between;
|
|
7
7
|
|
|
8
8
|
&:not(:last-child) {
|
|
9
|
-
margin-bottom: spacing(
|
|
9
|
+
margin-bottom: spacing(sm);
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
&PriceTable__Label {
|
|
14
|
-
margin-right: spacing(
|
|
14
|
+
margin-right: spacing("2xs");
|
|
15
15
|
width: 100%;
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
white-space: nowrap;
|
|
21
21
|
|
|
22
22
|
&--discount {
|
|
23
|
-
|
|
23
|
+
@include text-color(success);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
&:empty:before {
|
|
27
|
-
|
|
27
|
+
@include text-color(subdued);
|
|
28
28
|
font-weight: normal;
|
|
29
29
|
|
|
30
30
|
content: "—";
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
&ProgressBar__Progression {
|
|
9
9
|
@include text-style-title;
|
|
10
|
-
|
|
10
|
+
@include text-color(infoAlt);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
&ProgressBar__Title {
|
|
@@ -16,42 +16,42 @@
|
|
|
16
16
|
|
|
17
17
|
&ProgressBar__CompletedCheckbox {
|
|
18
18
|
path {
|
|
19
|
-
fill
|
|
19
|
+
@include fill-color(secondary);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
&ProgressBar__Container {
|
|
24
|
+
@include bg-color(neutral);
|
|
24
25
|
position: relative;
|
|
25
26
|
|
|
26
|
-
margin-top: spacing(
|
|
27
|
+
margin-top: spacing(sm);
|
|
27
28
|
|
|
28
|
-
height: spacing(
|
|
29
|
+
height: spacing("2xs");
|
|
29
30
|
width: 100%;
|
|
30
31
|
|
|
31
32
|
border-radius: 2px;
|
|
32
|
-
background-color: color(acier, light);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
&ProgressBar__Foreground {
|
|
36
|
+
@include semantic-color(secondary, fill, background-color);
|
|
36
37
|
position: absolute;
|
|
37
38
|
left: 0;
|
|
38
39
|
top: 0;
|
|
39
40
|
|
|
40
|
-
height: spacing(
|
|
41
|
+
height: spacing("2xs");
|
|
41
42
|
|
|
42
43
|
border-radius: 2px;
|
|
43
|
-
background-color: color(aller);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
&ProgressBar__Tick {
|
|
47
|
+
@include bg-color(neutral);
|
|
47
48
|
position: absolute;
|
|
48
49
|
top: -6px;
|
|
49
50
|
right: 0;
|
|
50
51
|
|
|
51
|
-
height: 4 * spacing(
|
|
52
|
-
width: spacing(
|
|
52
|
+
height: 4 * spacing("2xs");
|
|
53
|
+
width: spacing("2xs");
|
|
53
54
|
|
|
54
55
|
border-radius: 2px;
|
|
55
|
-
background-color: color(acier, light);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -101,6 +101,8 @@ $scrollButtonWidth: 2rem;
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
.cobalt-tabs__label {
|
|
104
|
+
@include text-color(subdued);
|
|
105
|
+
@include bg-color(secondaryInteractive);
|
|
104
106
|
position: relative;
|
|
105
107
|
|
|
106
108
|
display: flex;
|
|
@@ -116,7 +118,6 @@ $scrollButtonWidth: 2rem;
|
|
|
116
118
|
font-size: 1rem;
|
|
117
119
|
line-height: 1;
|
|
118
120
|
text-transform: uppercase;
|
|
119
|
-
color: color(graphite, light);
|
|
120
121
|
font-family: font-family(brand);
|
|
121
122
|
font-weight: 700;
|
|
122
123
|
|
|
@@ -126,11 +127,6 @@ $scrollButtonWidth: 2rem;
|
|
|
126
127
|
|
|
127
128
|
transition: 0.2s color;
|
|
128
129
|
|
|
129
|
-
&:hover,
|
|
130
|
-
&:focus {
|
|
131
|
-
background: color(acier, lighter);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
130
|
&:after {
|
|
135
131
|
position: absolute;
|
|
136
132
|
bottom: 0;
|
|
@@ -149,10 +145,10 @@ $scrollButtonWidth: 2rem;
|
|
|
149
145
|
}
|
|
150
146
|
|
|
151
147
|
&.cobalt-tabs__label--selected {
|
|
152
|
-
|
|
148
|
+
@include text-color(base);
|
|
153
149
|
|
|
154
150
|
&:after {
|
|
155
|
-
|
|
151
|
+
@include semantic-color(accent, fill, background-color);
|
|
156
152
|
|
|
157
153
|
transform: scaleX(1);
|
|
158
154
|
}
|
|
@@ -1,26 +1,24 @@
|
|
|
1
1
|
.cobalt- {
|
|
2
2
|
&Tag {
|
|
3
|
+
@include bg-color(neutral);
|
|
3
4
|
display: inline-block;
|
|
4
5
|
|
|
5
|
-
padding: spacing(
|
|
6
|
+
padding: spacing("2xs") spacing(xs);
|
|
6
7
|
|
|
7
8
|
font-size: 13px;
|
|
8
9
|
|
|
9
10
|
font-weight: 600;
|
|
10
11
|
|
|
11
|
-
background-color: color(acier, light);
|
|
12
|
-
|
|
13
12
|
border-radius: border-radius();
|
|
14
13
|
}
|
|
15
14
|
|
|
16
15
|
&Tag--muted {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
background-color: color(acier, lighter);
|
|
16
|
+
@include text-color(subdued);
|
|
17
|
+
@include bg-color(neutralAlt);
|
|
20
18
|
}
|
|
21
19
|
|
|
22
20
|
&Tag--important {
|
|
23
|
-
|
|
21
|
+
@include text-color(error);
|
|
24
22
|
|
|
25
23
|
background-color: lighten(color(essence), 24);
|
|
26
24
|
}
|
|
@@ -40,7 +40,7 @@ $theme-colors-map: (
|
|
|
40
40
|
successAlt: var(--c-l-graphite)
|
|
41
41
|
),
|
|
42
42
|
buttonBackground: (
|
|
43
|
-
|
|
43
|
+
selected: var(--c-l-indigo),
|
|
44
44
|
destructiveInteractive: (
|
|
45
45
|
DEFAULT: var(--c-l-red),
|
|
46
46
|
hover: var(--c-l-red),
|
|
@@ -70,7 +70,7 @@ $theme-colors-map: (
|
|
|
70
70
|
)
|
|
71
71
|
),
|
|
72
72
|
buttonIcon: (
|
|
73
|
-
|
|
73
|
+
selected: var(--c-l-white),
|
|
74
74
|
destructiveInteractive: (
|
|
75
75
|
DEFAULT: var(--c-l-red),
|
|
76
76
|
hover: var(--c-l-red),
|
|
@@ -100,7 +100,7 @@ $theme-colors-map: (
|
|
|
100
100
|
)
|
|
101
101
|
),
|
|
102
102
|
buttonLabel: (
|
|
103
|
-
|
|
103
|
+
selected: var(--c-l-white),
|
|
104
104
|
destructiveInteractive: (
|
|
105
105
|
DEFAULT: var(--c-l-white),
|
|
106
106
|
hover: var(--c-l-white),
|
|
@@ -176,7 +176,7 @@ $theme-colors-map: (
|
|
|
176
176
|
hover: var(--c-l-indigo),
|
|
177
177
|
press: var(--c-l-indigo-dark)
|
|
178
178
|
),
|
|
179
|
-
accentAlt: var(--c-l-
|
|
179
|
+
accentAlt: var(--c-l-purple),
|
|
180
180
|
base: var(--c-l-grey),
|
|
181
181
|
baseInteractive: (
|
|
182
182
|
DEFAULT: var(--c-l-grey),
|
package/styles/core/border.scss
CHANGED
|
@@ -13,7 +13,7 @@ $border-style-data: (
|
|
|
13
13
|
dashed: dashed
|
|
14
14
|
);
|
|
15
15
|
|
|
16
|
-
@mixin border-style($style: solid, $position) {
|
|
16
|
+
@mixin border-style($style: solid, $position: "") {
|
|
17
17
|
$styleValue: map-get($border-style-data, $style);
|
|
18
18
|
@if type-of($styleValue) != string {
|
|
19
19
|
@error "Border style `#{$style}` not found.";
|
|
@@ -33,7 +33,7 @@ $border-style-data: (
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
@mixin border-width($size: default, $position) {
|
|
36
|
+
@mixin border-width($size: default, $position: "") {
|
|
37
37
|
$sizeValue: map-get($border-size-data, $size);
|
|
38
38
|
@if type-of($sizeValue) != number {
|
|
39
39
|
@error "Border size `#{$size}` not found.";
|
package/styles/core/theme.scss
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
--c-background-secondaryInteractive--hover: var(--c-l-grey-lighter);
|
|
28
28
|
--c-background-success: var(--c-l-green);
|
|
29
29
|
--c-background-successAlt: var(--c-l-graphite);
|
|
30
|
-
--c-buttonBackground-
|
|
30
|
+
--c-buttonBackground-selected: var(--c-l-indigo);
|
|
31
31
|
--c-buttonBackground-destructiveInteractive: var(--c-l-red);
|
|
32
32
|
--c-buttonBackground-destructiveInteractive--hover: var(--c-l-red);
|
|
33
33
|
--c-buttonBackground-destructiveInteractive--press: var(--c-l-red);
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
--c-buttonBackground-tertiaryInteractive: var(--c-l-white);
|
|
46
46
|
--c-buttonBackground-tertiaryInteractive--hover: var(--c-l-white);
|
|
47
47
|
--c-buttonBackground-tertiaryInteractive--press: var(--c-l-white);
|
|
48
|
-
--c-buttonIcon-
|
|
48
|
+
--c-buttonIcon-selected: var(--c-l-white);
|
|
49
49
|
--c-buttonIcon-destructiveInteractive: var(--c-l-red);
|
|
50
50
|
--c-buttonIcon-destructiveInteractive--hover: var(--c-l-red);
|
|
51
51
|
--c-buttonIcon-destructiveInteractive--press: var(--c-l-red);
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
--c-buttonIcon-tertiaryInteractive: var(--c-l-blue);
|
|
64
64
|
--c-buttonIcon-tertiaryInteractive--hover: var(--c-l-blue);
|
|
65
65
|
--c-buttonIcon-tertiaryInteractive--press: var(--c-l-blue);
|
|
66
|
-
--c-buttonLabel-
|
|
66
|
+
--c-buttonLabel-selected: var(--c-l-white);
|
|
67
67
|
--c-buttonLabel-destructiveInteractive: var(--c-l-white);
|
|
68
68
|
--c-buttonLabel-destructiveInteractive--hover: var(--c-l-white);
|
|
69
69
|
--c-buttonLabel-destructiveInteractive--press: var(--c-l-white);
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
--c-stroke-accentInteractive: var(--c-l-indigo);
|
|
114
114
|
--c-stroke-accentInteractive--hover: var(--c-l-indigo);
|
|
115
115
|
--c-stroke-accentInteractive--press: var(--c-l-indigo-dark);
|
|
116
|
-
--c-stroke-accentAlt: var(--c-l-
|
|
116
|
+
--c-stroke-accentAlt: var(--c-l-purple);
|
|
117
117
|
--c-stroke-base: var(--c-l-grey);
|
|
118
118
|
--c-stroke-baseInteractive: var(--c-l-grey);
|
|
119
119
|
--c-stroke-baseInteractive--hover: var(--c-l-graphite-light);
|
package/tokens/icons.js
CHANGED
package/tokens/icons.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icons.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"icons.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/tokens/theme.js
CHANGED
|
@@ -35,7 +35,7 @@ const background = {
|
|
|
35
35
|
successAlt: "graphite/green.100/green.1000"
|
|
36
36
|
};
|
|
37
37
|
const buttonBackground = {
|
|
38
|
-
|
|
38
|
+
selected: "indigo/purple.100/purpleDeep.900",
|
|
39
39
|
destructiveInteractive: {
|
|
40
40
|
DEFAULT: "red/red.100/red.900",
|
|
41
41
|
hover: "red/red.120/red.900",
|
|
@@ -65,7 +65,7 @@ const buttonBackground = {
|
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
67
|
const buttonIcon = {
|
|
68
|
-
|
|
68
|
+
selected: "white/purple.500/grey.100",
|
|
69
69
|
destructiveInteractive: {
|
|
70
70
|
DEFAULT: "red/red.500/red.200",
|
|
71
71
|
hover: "red/red.500/red.200",
|
|
@@ -95,7 +95,7 @@ const buttonIcon = {
|
|
|
95
95
|
}
|
|
96
96
|
};
|
|
97
97
|
const buttonLabel = {
|
|
98
|
-
|
|
98
|
+
selected: "white/purple.500/grey.100",
|
|
99
99
|
destructiveInteractive: {
|
|
100
100
|
DEFAULT: "white/red.500/red.200",
|
|
101
101
|
hover: "white/red.500/red.200",
|
|
@@ -171,7 +171,7 @@ const stroke = {
|
|
|
171
171
|
hover: "indigo/purple.700/purpleDeep.400",
|
|
172
172
|
press: "indigo.dark/purple.900/purpleDeep.400"
|
|
173
173
|
},
|
|
174
|
-
accentAlt: "
|
|
174
|
+
accentAlt: "purple/purple.300/purpleDeep.700",
|
|
175
175
|
base: "grey/navy.100/black.50",
|
|
176
176
|
baseInteractive: {
|
|
177
177
|
DEFAULT: "grey/navy.100/black.50",
|