@bitrise/bitkit 9.5.4-alpha-chakra.1 → 9.5.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/package.json +4 -10
- package/src/Base/Base.css +3 -3
- package/src/Button/Button.css +135 -117
- package/src/DatePicker/DatePicker.css +24 -24
- package/src/Hamburger/Hamburger.css +13 -15
- package/src/Input/Input.css +18 -18
- package/src/Link/Link.css +10 -10
- package/src/Modal/Modal.css +6 -7
- package/src/Sidebar/Sidebar.css +71 -72
- package/src/Skeleton/Skeleton.css +17 -17
- package/src/Table/Table.css +12 -6
- package/src/Tabs/Tabs.css +3 -3
- package/src/Text/Text.css +2 -2
- package/src/Textarea/Textarea.css +9 -8
- package/src/Toggle/Toggle.css +3 -3
- package/src/variables.css +3 -2
package/package.json
CHANGED
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitrise/bitkit",
|
|
3
3
|
"description": "Bitrise React component library",
|
|
4
|
-
"version": "9.5.4
|
|
4
|
+
"version": "9.5.4",
|
|
5
5
|
"repository": "git@github.com:bitrise-io/bitkit.git",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"license": "UNLICENSED",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"build": "yarn build:lib && yarn build:site",
|
|
10
|
-
"build:css": "postcss src/{*.css,**/*.css} --base src",
|
|
11
10
|
"build:docs": "ts-node ./scripts/build-docs",
|
|
12
11
|
"build:icons": "svgr src/Icon/svg && yarn lint:fix-icons",
|
|
13
12
|
"build:lib": "rm -rf ./lib && yarn build:lib:cjs && yarn build:lib:esn",
|
|
14
|
-
"build:lib:esn": "tsc -p src -m esnext -t esnext --outDir lib/esn
|
|
15
|
-
"build:lib:cjs": "tsc -p src --outDir lib/cjs
|
|
13
|
+
"build:lib:esn": "tsc -p src -m esnext -t esnext --outDir lib/esn",
|
|
14
|
+
"build:lib:cjs": "tsc -p src --outDir lib/cjs",
|
|
16
15
|
"build:site": "rm -rf ./dist && rm -rf ./public && yarn build:docs && parcel build site/index.html -d dist",
|
|
17
16
|
"commitlint": "commitlint",
|
|
18
|
-
"lint": "yarn lint:js
|
|
19
|
-
"lint:css": "stylelint src/**/*.css site/**/*.css",
|
|
17
|
+
"lint": "yarn lint:js",
|
|
20
18
|
"lint:js": "eslint src/**/*.tsx",
|
|
21
19
|
"lint:fix-icons": "eslint --fix src/Icon/tsx/**",
|
|
22
20
|
"semantic-release": "semantic-release",
|
|
@@ -114,8 +112,6 @@
|
|
|
114
112
|
"lodash.shuffle": "^4.2.0",
|
|
115
113
|
"node-watch": "^0.7.3",
|
|
116
114
|
"parcel-bundler": "^1.12.0",
|
|
117
|
-
"postcss-cli": "^6.1.3",
|
|
118
|
-
"postcss-preset-env": "^6.7.1",
|
|
119
115
|
"prettier": "^2.6.2",
|
|
120
116
|
"prismjs": "^1.27.0",
|
|
121
117
|
"react": "^17.0.2",
|
|
@@ -124,8 +120,6 @@
|
|
|
124
120
|
"react-router": "^5.2.1",
|
|
125
121
|
"react-router-dom": "^5.3.0",
|
|
126
122
|
"semantic-release": "^19.0.2",
|
|
127
|
-
"stylelint": "^14.6.1",
|
|
128
|
-
"stylelint-order": "^5.0.0",
|
|
129
123
|
"superstatic": "^7.1.0",
|
|
130
124
|
"ts-jest": "^27.1.4",
|
|
131
125
|
"ts-node": "^10.7.0",
|
package/src/Base/Base.css
CHANGED
package/src/Button/Button.css
CHANGED
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
transition-property: border-color, background-color, color;
|
|
19
19
|
transition-duration: var(--transition-duration--base);
|
|
20
20
|
transition-timing-function: var(--transition-timing-function);
|
|
21
|
+
}
|
|
21
22
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
.Button:hover {
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
}
|
|
25
26
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
27
|
+
.Button:disabled,
|
|
28
|
+
.Button[disabled] {
|
|
29
|
+
cursor: not-allowed;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.Button--full-width {
|
|
@@ -65,42 +65,51 @@
|
|
|
65
65
|
position: relative;
|
|
66
66
|
overflow: hidden;
|
|
67
67
|
z-index: 0;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.Button--level-primary::before,
|
|
71
|
+
.Button--level-primary::after,
|
|
72
|
+
.Button--level-secondary::before,
|
|
73
|
+
.Button--level-secondary::after {
|
|
74
|
+
content: '';
|
|
75
|
+
position: absolute;
|
|
76
|
+
top: -0.125rem;
|
|
77
|
+
right: -0.125rem;
|
|
78
|
+
bottom: -0.125rem;
|
|
79
|
+
left: -0.125rem;
|
|
80
|
+
z-index: -1;
|
|
81
|
+
transition-property: opacity;
|
|
82
|
+
transition-duration: var(--transition-duration--base);
|
|
83
|
+
transition-timing-function: var(--transition-timing-function);
|
|
84
|
+
}
|
|
68
85
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
&:disabled::after,
|
|
99
|
-
&:active:not(:disabled)::after,
|
|
100
|
-
&[disabled]::after,
|
|
101
|
-
&:active:not([disabled])::after {
|
|
102
|
-
opacity: 0;
|
|
103
|
-
}
|
|
86
|
+
.Button--level-primary:disabled::before,
|
|
87
|
+
.Button--level-primary:hover:not(:disabled)::before,
|
|
88
|
+
.Button--level-primary[disabled]::before,
|
|
89
|
+
.Button--level-primary:hover:not([disabled])::before,
|
|
90
|
+
.Button--level-secondary:disabled::before,
|
|
91
|
+
.Button--level-secondary:hover:not(:disabled)::before,
|
|
92
|
+
.Button--level-secondary[disabled]::before,
|
|
93
|
+
.Button--level-secondary:hover:not([disabled])::before {
|
|
94
|
+
opacity: 0;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.Button--level-primary:hover:not(:disabled)::after,
|
|
98
|
+
.Button--level-primary:hover:not([disabled])::after,
|
|
99
|
+
.Button--level-secondary:hover:not(:disabled)::after,
|
|
100
|
+
.Button--level-secondary:hover:not([disabled])::after {
|
|
101
|
+
opacity: 1;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.Button--level-primary:disabled::after,
|
|
105
|
+
.Button--level-primary:active:not(:disabled)::after,
|
|
106
|
+
.Button--level-primary[disabled]::after,
|
|
107
|
+
.Button--level-primary:active:not([disabled])::after,
|
|
108
|
+
.Button--level-secondary:disabled::after,
|
|
109
|
+
.Button--level-secondary:active:not(:disabled)::after,
|
|
110
|
+
.Button--level-secondary[disabled]::after,
|
|
111
|
+
.Button--level-secondary:active:not([disabled])::after {
|
|
112
|
+
opacity: 0;
|
|
104
113
|
}
|
|
105
114
|
|
|
106
115
|
.Button--level-primary {
|
|
@@ -108,88 +117,95 @@
|
|
|
108
117
|
background-color: var(--color-grape--5);
|
|
109
118
|
color: var(--color-gray--1);
|
|
110
119
|
font-weight: var(--font-weight--bold);
|
|
120
|
+
}
|
|
111
121
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
122
|
+
.Button--level-primary:disabled,
|
|
123
|
+
.Button--level-primary[disabled] {
|
|
124
|
+
border-color: var(--color-gray--5);
|
|
125
|
+
background-image: linear-gradient(to bottom, var(--color-gray--4), var(--color-gray--5));
|
|
126
|
+
}
|
|
117
127
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
128
|
+
.Button--level-primary::before {
|
|
129
|
+
opacity: 1;
|
|
130
|
+
background-image: linear-gradient(to bottom, #6C0EB2, #450674);
|
|
131
|
+
}
|
|
121
132
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
133
|
+
.Button--level-primary::after {
|
|
134
|
+
opacity: 0;
|
|
135
|
+
background-image: linear-gradient(to bottom, #50167B, #3D125D);
|
|
125
136
|
}
|
|
126
137
|
|
|
127
138
|
.Button--level-secondary {
|
|
128
139
|
border-color: var(--color-gray--3);
|
|
129
140
|
background-color: var(--color-gray--2);
|
|
130
141
|
color: var(--color-grape--5);
|
|
142
|
+
}
|
|
131
143
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
144
|
+
.Button--level-secondary:disabled,
|
|
145
|
+
.Button--level-secondary[disabled] {
|
|
146
|
+
border-color: var(--color-gray--3);
|
|
147
|
+
background-image: linear-gradient(to bottom, var(--color-white), var(--color-gray--1));
|
|
148
|
+
color: var(--color-gray--5);
|
|
149
|
+
}
|
|
138
150
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
151
|
+
.Button--level-secondary:active:not(:disabled) {
|
|
152
|
+
border-color: var(--color-eggplant);
|
|
153
|
+
background-color: var(--color-grape--5);
|
|
154
|
+
color: var(--color-gray--1);
|
|
155
|
+
}
|
|
144
156
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
157
|
+
.Button--level-secondary::before {
|
|
158
|
+
opacity: 1;
|
|
159
|
+
background-image: linear-gradient(to bottom, var(--color-white), var(--color-gray--1));
|
|
160
|
+
}
|
|
148
161
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
162
|
+
.Button--level-secondary::after {
|
|
163
|
+
content: none;
|
|
164
|
+
opacity: 0;
|
|
152
165
|
}
|
|
153
166
|
|
|
154
167
|
.Button--level-tertiary {
|
|
155
168
|
border-color: transparent;
|
|
156
169
|
background-color: transparent;
|
|
157
170
|
color: var(--color-grape--3);
|
|
171
|
+
}
|
|
158
172
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
173
|
+
.Button--level-tertiary:disabled,
|
|
174
|
+
.Button--level-tertiary[disabled] {
|
|
175
|
+
color: var(--color-gray--5);
|
|
176
|
+
}
|
|
163
177
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
178
|
+
.Button--level-tertiary:hover:not(:disabled),
|
|
179
|
+
.Button--level-tertiary:hover:not([disabled]) {
|
|
180
|
+
background-color: var(--color-grape--1);
|
|
181
|
+
}
|
|
168
182
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
}
|
|
183
|
+
.Button--level-tertiary:active:not(:disabled),
|
|
184
|
+
.Button--level-tertiary:active:not([disabled]) {
|
|
185
|
+
background-color: var(--color-grape--5);
|
|
186
|
+
color: var(--color-gray--1);
|
|
174
187
|
}
|
|
175
188
|
|
|
176
189
|
.Button--variant-danger.Button--level-primary:not(:disabled),
|
|
177
190
|
.Button--variant-danger.Button--level-primary:not([disabled]) {
|
|
178
191
|
border-color: #D4093C;
|
|
179
192
|
background-color: #C90032;
|
|
193
|
+
}
|
|
180
194
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
195
|
+
.Button--variant-danger.Button--level-primary:not(:disabled):active,
|
|
196
|
+
.Button--variant-danger.Button--level-primary:not([disabled]):active {
|
|
197
|
+
border-color: #D4093C;
|
|
198
|
+
background-color: var(--color-red--5);
|
|
199
|
+
}
|
|
185
200
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
201
|
+
.Button--variant-danger.Button--level-primary:not(:disabled)::before,
|
|
202
|
+
.Button--variant-danger.Button--level-primary:not([disabled])::before {
|
|
203
|
+
background-image: linear-gradient(to bottom, #FF2158, #E41447);
|
|
204
|
+
}
|
|
189
205
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
206
|
+
.Button--variant-danger.Button--level-primary:not(:disabled)::after,
|
|
207
|
+
.Button--variant-danger.Button--level-primary:not([disabled])::after {
|
|
208
|
+
content: none;
|
|
193
209
|
}
|
|
194
210
|
|
|
195
211
|
.Button--variant-danger.Button--level-secondary:not(:disabled),
|
|
@@ -197,35 +213,37 @@
|
|
|
197
213
|
border-color: var(--color-gray--3);
|
|
198
214
|
background-color: var(--color-red--1);
|
|
199
215
|
color: var(--color-red--3);
|
|
216
|
+
}
|
|
200
217
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
218
|
+
.Button--variant-danger.Button--level-secondary:not(:disabled):hover,
|
|
219
|
+
.Button--variant-danger.Button--level-secondary:not([disabled]):hover {
|
|
220
|
+
border-color: var(--color-red--2);
|
|
221
|
+
}
|
|
204
222
|
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
223
|
+
.Button--variant-danger.Button--level-secondary:not(:disabled):active,
|
|
224
|
+
.Button--variant-danger.Button--level-secondary:not([disabled]):active {
|
|
225
|
+
border-color: #D4093C;
|
|
226
|
+
background-color: var(--color-red--5);
|
|
227
|
+
color: var(--color-gray--1);
|
|
228
|
+
}
|
|
210
229
|
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
230
|
+
.Button--variant-danger.Button--level-secondary:not(:disabled)::before,
|
|
231
|
+
.Button--variant-danger.Button--level-secondary:not([disabled])::before {
|
|
232
|
+
background-image: linear-gradient(to bottom, var(--color-white), var(--color-gray--1));
|
|
233
|
+
}
|
|
214
234
|
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
235
|
+
.Button--variant-danger.Button--level-secondary:not(:disabled)::after,
|
|
236
|
+
.Button--variant-danger.Button--level-secondary:not([disabled])::after {
|
|
237
|
+
content: none;
|
|
218
238
|
}
|
|
219
239
|
|
|
220
|
-
.Buttons--joined {
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
}
|
|
240
|
+
.Buttons--joined .Button:not(:first-child) {
|
|
241
|
+
border-top-left-radius: 0;
|
|
242
|
+
border-bottom-left-radius: 0;
|
|
243
|
+
}
|
|
225
244
|
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
}
|
|
245
|
+
.Buttons--joined .Button:not(:last-child) {
|
|
246
|
+
border-right: 0;
|
|
247
|
+
border-top-right-radius: 0;
|
|
248
|
+
border-bottom-right-radius: 0;
|
|
231
249
|
}
|
|
@@ -9,22 +9,22 @@
|
|
|
9
9
|
transition-property: color;
|
|
10
10
|
transition-duration: var(--transition-duration--fast);
|
|
11
11
|
transition-timing-function: var(--transition-timing-function);
|
|
12
|
+
}
|
|
12
13
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
14
|
+
.DatePicker__day::before {
|
|
15
|
+
content: '';
|
|
16
|
+
position: absolute;
|
|
17
|
+
top: 0;
|
|
18
|
+
right: 0;
|
|
19
|
+
bottom: 0;
|
|
20
|
+
left: 0;
|
|
21
|
+
transform: scale(0);
|
|
22
|
+
opacity: 0;
|
|
23
|
+
border-radius: 50%;
|
|
24
|
+
background-color: var(--color-grape--4);
|
|
25
|
+
transition-property: transform, opacity, background-color;
|
|
26
|
+
transition-duration: var(--transition-duration--fast);
|
|
27
|
+
transition-timing-function: var(--transition-timing-function);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
.DatePicker__day-inner {
|
|
@@ -39,20 +39,20 @@
|
|
|
39
39
|
color: var(--color-gray--1);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
.DatePicker__day--selected,
|
|
43
|
-
.DatePicker__day--selectable.DatePicker__day--unselected:hover {
|
|
44
|
-
&::before {
|
|
45
|
-
transform: scale(calc(2.5 / 3));
|
|
46
|
-
opacity: 1;
|
|
47
|
-
background-color: var(--color-grape--4);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
42
|
.DatePicker__day--selected::before {
|
|
43
|
+
transform: scale(calc(2.5 / 3));
|
|
44
|
+
opacity: 1;
|
|
45
|
+
background-color: var(--color-grape--4);
|
|
52
46
|
transform: scale(1);
|
|
53
47
|
background-color: var(--color-aqua--3);
|
|
54
48
|
}
|
|
55
49
|
|
|
50
|
+
.DatePicker__day--selectable.DatePicker__day--unselected:hover::before {
|
|
51
|
+
transform: scale(calc(2.5 / 3));
|
|
52
|
+
opacity: 1;
|
|
53
|
+
background-color: var(--color-grape--4);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
56
|
.DatePicker__day--selected-from,
|
|
57
57
|
.DatePicker__day--selected-between,
|
|
58
58
|
.DatePicker__day--selected-to {
|
|
@@ -39,19 +39,17 @@
|
|
|
39
39
|
opacity: 0;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
.Hamburger--active
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
opacity: 1;
|
|
56
|
-
}
|
|
42
|
+
.Hamburger--active::before,
|
|
43
|
+
.Hamburger--active::after {
|
|
44
|
+
transform: translateY(-50%);
|
|
45
|
+
opacity: 0;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.Hamburger--active .Hamburger--bar {
|
|
49
|
+
transform: translateY(-50%) rotate(45deg);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.Hamburger--active .Hamburger--bar::before {
|
|
53
|
+
transform: translateY(-50%) rotate(-90deg);
|
|
54
|
+
opacity: 1;
|
|
57
55
|
}
|
package/src/Input/Input.css
CHANGED
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
text-overflow: ellipsis;
|
|
12
12
|
line-height: inherit;
|
|
13
13
|
appearance: none;
|
|
14
|
-
|
|
15
|
-
&:focus { outline: none; }
|
|
16
|
-
&::placeholder { color: var(--color-gray--7); }
|
|
17
14
|
}
|
|
18
15
|
|
|
16
|
+
.Input:focus { outline: none; }
|
|
17
|
+
.Input::placeholder { color: var(--color-gray--7); }
|
|
18
|
+
|
|
19
19
|
.Input__container {
|
|
20
20
|
border: var(--Input--border) solid var(--color-gray--3);
|
|
21
21
|
border-radius: var(--size--x1);
|
|
@@ -34,24 +34,24 @@
|
|
|
34
34
|
transition-property: border-color, color;
|
|
35
35
|
transition-duration: var(--transition-duration--base);
|
|
36
36
|
transition-timing-function: var(--transition-timing-function);
|
|
37
|
+
}
|
|
37
38
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
39
|
+
.Input__content:last-child {
|
|
40
|
+
border-right: 0;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.Input__content--outside {
|
|
44
44
|
background-color: var(--color-white);
|
|
45
|
+
}
|
|
45
46
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
.Input__content--outside:first-child {
|
|
48
|
+
border-top-left-radius: var(--size--x1);
|
|
49
|
+
border-bottom-left-radius: var(--size--x1);
|
|
50
|
+
}
|
|
50
51
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
52
|
+
.Input__content--outside:last-child {
|
|
53
|
+
border-top-right-radius: var(--size--x1);
|
|
54
|
+
border-bottom-right-radius: var(--size--x1);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
.Input__container--disabled,
|
|
@@ -75,9 +75,9 @@
|
|
|
75
75
|
.Input__container:focus-within {
|
|
76
76
|
border-color: var(--color-grape--3);
|
|
77
77
|
box-shadow: inset 0 0 0 0.125rem rgba(118, 15, 195, 0.3);
|
|
78
|
+
}
|
|
78
79
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
80
|
+
.Input__container:focus-within .Input__content {
|
|
81
|
+
border-color: var(--color-grape--3);
|
|
82
|
+
color: var(--color-grape--5);
|
|
83
83
|
}
|
package/src/Link/Link.css
CHANGED
|
@@ -11,30 +11,30 @@
|
|
|
11
11
|
|
|
12
12
|
.Link--color-grape-3 {
|
|
13
13
|
color: var(--color-grape--3);
|
|
14
|
-
|
|
15
|
-
&:hover { color: var(--color-grape--4); }
|
|
16
14
|
}
|
|
17
15
|
|
|
16
|
+
.Link--color-grape-3:hover { color: var(--color-grape--4); }
|
|
17
|
+
|
|
18
18
|
.Link--color-grape-5 {
|
|
19
19
|
color: var(--color-grape--5);
|
|
20
|
-
|
|
21
|
-
&:hover { color: var(--color-grape--3); }
|
|
22
20
|
}
|
|
23
21
|
|
|
22
|
+
.Link--color-grape-5:hover { color: var(--color-grape--3); }
|
|
23
|
+
|
|
24
24
|
.Link--color-gray-1 {
|
|
25
25
|
color: var(--color-gray--1);
|
|
26
|
-
|
|
27
|
-
&:hover { color: var(--color-gray--2); }
|
|
28
26
|
}
|
|
29
27
|
|
|
28
|
+
.Link--color-gray-1:hover { color: var(--color-gray--2); }
|
|
29
|
+
|
|
30
30
|
.Link--color-gray-5 {
|
|
31
31
|
color: var(--color-gray--5);
|
|
32
|
-
|
|
33
|
-
&:hover { color: var(--color-gray--6); }
|
|
34
32
|
}
|
|
35
33
|
|
|
34
|
+
.Link--color-gray-5:hover { color: var(--color-gray--6); }
|
|
35
|
+
|
|
36
36
|
.Link--color-white {
|
|
37
37
|
color: var(--color-white);
|
|
38
|
-
|
|
39
|
-
&:hover { color: var(--color-gray--1); }
|
|
40
38
|
}
|
|
39
|
+
|
|
40
|
+
.Link--color-white:hover { color: var(--color-gray--1); }
|
package/src/Modal/Modal.css
CHANGED
|
@@ -31,14 +31,13 @@
|
|
|
31
31
|
animation-duration: var(--transition-duration--fast);
|
|
32
32
|
animation-fill-mode: forwards;
|
|
33
33
|
animation-timing-function: var(--transition-timing-function);
|
|
34
|
+
}
|
|
34
35
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
margin-bottom: auto;
|
|
41
|
-
}
|
|
36
|
+
.Modal__content,
|
|
37
|
+
.Modal__content:first-child,
|
|
38
|
+
.Modal__content:last-child {
|
|
39
|
+
margin-top: auto;
|
|
40
|
+
margin-bottom: auto;
|
|
42
41
|
}
|
|
43
42
|
|
|
44
43
|
.Modal--visible {
|
package/src/Sidebar/Sidebar.css
CHANGED
|
@@ -19,53 +19,52 @@
|
|
|
19
19
|
position: relative;
|
|
20
20
|
overflow: hidden;
|
|
21
21
|
z-index: 0;
|
|
22
|
+
}
|
|
22
23
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
24
|
+
.Sidebar__menu-item::before {
|
|
25
|
+
content: '';
|
|
26
|
+
position: absolute;
|
|
27
|
+
top: 0;
|
|
28
|
+
bottom: 0;
|
|
29
|
+
left: 0;
|
|
30
|
+
width: var(--size--x1);
|
|
31
|
+
opacity: 0;
|
|
32
|
+
border-radius: 0 var(--size--x1) var(--size--x1) 0;
|
|
33
|
+
background-color: var(--color-aqua--3);
|
|
34
|
+
transition-property: opacity;
|
|
35
|
+
transition-duration: var(--transition-duration--slow);
|
|
36
|
+
transition-timing-function: var(--transition-timing-function);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
.Sidebar__menu-item-link {
|
|
40
40
|
position: relative;
|
|
41
41
|
padding: var(--size--x4) var(--size--x6);
|
|
42
42
|
cursor: pointer;
|
|
43
|
+
}
|
|
43
44
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
.Sidebar__menu-item--active
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
border-radius: 0;
|
|
68
|
-
}
|
|
45
|
+
.Sidebar__menu-item-link::before {
|
|
46
|
+
content: '';
|
|
47
|
+
position: absolute;
|
|
48
|
+
top: 0;
|
|
49
|
+
right: 0;
|
|
50
|
+
bottom: 0;
|
|
51
|
+
left: 0;
|
|
52
|
+
border-radius: var(--size--x2);
|
|
53
|
+
z-index: -1;
|
|
54
|
+
transition-property: transform, border-radius, background-color;
|
|
55
|
+
transition-duration: var(--transition-duration--base);
|
|
56
|
+
transition-timing-function: var(--transition-timing-function);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.Sidebar__menu-item--active::before,
|
|
60
|
+
.Sidebar__menu-item--active:hover::before {
|
|
61
|
+
opacity: 1;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.Sidebar__menu-item--active .Sidebar__menu-item-link::before,
|
|
65
|
+
.Sidebar__menu-item--active:hover .Sidebar__menu-item-link::before {
|
|
66
|
+
transform: scale(1.2);
|
|
67
|
+
border-radius: 0;
|
|
69
68
|
}
|
|
70
69
|
|
|
71
70
|
.Sidebar__sub-menu-item {
|
|
@@ -81,46 +80,46 @@
|
|
|
81
80
|
.Sidebar--theme-dark {
|
|
82
81
|
background-color: var(--color-grape--5);
|
|
83
82
|
color: var(--color-gray--1);
|
|
83
|
+
}
|
|
84
84
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
85
|
+
.Sidebar--theme-dark .Sidebar__header,
|
|
86
|
+
.Sidebar--theme-dark .Sidebar__menu {
|
|
87
|
+
border-bottom-color: var(--color-grape--4);
|
|
88
|
+
}
|
|
89
89
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
90
|
+
.Sidebar--theme-dark .Sidebar__menu:first-child {
|
|
91
|
+
border-top-color: var(--color-grape--4);
|
|
92
|
+
}
|
|
93
93
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}
|
|
94
|
+
.Sidebar--theme-dark .Sidebar__sub-menu-item {
|
|
95
|
+
border-top-color: var(--color-grape--5);
|
|
97
96
|
}
|
|
98
97
|
|
|
99
98
|
.Sidebar--theme-light {
|
|
100
99
|
background-color: var(--color-white);
|
|
101
100
|
color: var(--color-grape-5);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.Sidebar--theme-light .Sidebar__header,
|
|
104
|
+
.Sidebar--theme-light .Sidebar__menu {
|
|
105
|
+
border-bottom-color: var(--color-gray--2);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.Sidebar--theme-light .Sidebar__menu:first-child {
|
|
109
|
+
border-top-color: var(--color-gray--2);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.Sidebar--theme-light .Sidebar__sub-menu-item,
|
|
113
|
+
.Sidebar--theme-light .Sidebar__menu-item--active .Sidebar__menu-item-link::before,
|
|
114
|
+
.Sidebar--theme-light .Sidebar__menu-item:hover .Sidebar__menu-item-link::before {
|
|
115
|
+
background-color: var(--color-gray--1);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.Sidebar--theme-light .Sidebar__sub-menu-item {
|
|
119
|
+
border-top-color: var(--color-gray--2);
|
|
120
|
+
}
|
|
102
121
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
& .Sidebar__menu:first-child {
|
|
109
|
-
border-top-color: var(--color-gray--2);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
& .Sidebar__sub-menu-item,
|
|
113
|
-
& .Sidebar__menu-item--active .Sidebar__menu-item-link::before,
|
|
114
|
-
& .Sidebar__menu-item:hover .Sidebar__menu-item-link::before {
|
|
115
|
-
background-color: var(--color-gray--1);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
& .Sidebar__sub-menu-item {
|
|
119
|
-
border-top-color: var(--color-gray--2);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
& .Sidebar__sub-menu-item--active,
|
|
123
|
-
& .Sidebar__sub-menu-item:hover {
|
|
124
|
-
background-color: var(--color-gray--2);
|
|
125
|
-
}
|
|
122
|
+
.Sidebar--theme-light .Sidebar__sub-menu-item--active,
|
|
123
|
+
.Sidebar--theme-light .Sidebar__sub-menu-item:hover {
|
|
124
|
+
background-color: var(--color-gray--2);
|
|
126
125
|
}
|
|
@@ -6,24 +6,24 @@
|
|
|
6
6
|
.Skeleton {
|
|
7
7
|
position: relative;
|
|
8
8
|
overflow: hidden;
|
|
9
|
+
}
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
11
|
+
.Skeleton::after {
|
|
12
|
+
position: absolute;
|
|
13
|
+
top: 0;
|
|
14
|
+
right: 0;
|
|
15
|
+
bottom: 0;
|
|
16
|
+
left: 0;
|
|
17
|
+
background:
|
|
18
|
+
linear-gradient(
|
|
19
|
+
to left,
|
|
20
|
+
rgba(var(--Skeleton--color), 0),
|
|
21
|
+
rgba(var(--Skeleton--color), 0.63) 35%,
|
|
22
|
+
rgba(var(--Skeleton--color), 1) 48%,
|
|
23
|
+
rgba(var(--Skeleton--color), 0.57) 55%,
|
|
24
|
+
rgba(var(--Skeleton--color), 0)
|
|
25
|
+
);
|
|
26
|
+
pointer-events: none;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
.Skeleton--active::after {
|
package/src/Table/Table.css
CHANGED
|
@@ -42,14 +42,20 @@
|
|
|
42
42
|
box-shadow: var(--shadow-elevation--x2);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
.Table--type-card .Table__row:first-child .Table__cell {
|
|
46
|
-
|
|
47
|
-
&:last-child { border-top-right-radius: var(--size--x2); }
|
|
45
|
+
.Table--type-card .Table__row:first-child .Table__cell:first-child {
|
|
46
|
+
border-top-left-radius: var(--size--x2);
|
|
48
47
|
}
|
|
49
48
|
|
|
50
|
-
.Table--type-card .Table__row:
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
.Table--type-card .Table__row:first-child .Table__cell:last-child {
|
|
50
|
+
border-top-right-radius: var(--size--x2);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.Table--type-card .Table__row:last-child .Table__cell:first-child {
|
|
54
|
+
border-bottom-left-radius: var(--size--x2);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.Table--type-card .Table__row:last-child .Table__cell:last-child {
|
|
58
|
+
border-bottom-right-radius: var(--size--x2);
|
|
53
59
|
}
|
|
54
60
|
|
|
55
61
|
.Table--type-card .Table__header-cell,
|
package/src/Tabs/Tabs.css
CHANGED
package/src/Text/Text.css
CHANGED
|
@@ -13,26 +13,27 @@
|
|
|
13
13
|
transition-duration: var(--transition-duration--base);
|
|
14
14
|
transition-timing-function: var(--transition-timing-function);
|
|
15
15
|
appearance: none;
|
|
16
|
-
|
|
17
|
-
&::placeholder { color: var(--color-gray--7); }
|
|
18
|
-
&:disabled { background-color: var(--color-gray--2); }
|
|
19
16
|
}
|
|
20
17
|
|
|
18
|
+
.TextArea::placeholder { color: var(--color-gray--7); }
|
|
19
|
+
.TextArea:disabled { background-color: var(--color-gray--2); }
|
|
20
|
+
|
|
21
21
|
.TextArea--invalid {
|
|
22
22
|
border-color: var(--color-red--3);
|
|
23
23
|
color: var(--color-red--3);
|
|
24
|
-
|
|
25
|
-
&::placeholder { color: var(--color-red--3); }
|
|
26
24
|
}
|
|
27
25
|
|
|
26
|
+
.TextArea--invalid::placeholder { color: var(--color-red--3); }
|
|
27
|
+
|
|
28
28
|
.TextArea:focus,
|
|
29
29
|
.TextArea--invalid:focus {
|
|
30
30
|
outline: none;
|
|
31
31
|
border-color: var(--color-grape--3);
|
|
32
32
|
box-shadow: inset 0 0 0 0.125rem rgba(118, 15, 195, 0.3);
|
|
33
33
|
color: var(--color-grape--5);
|
|
34
|
+
}
|
|
34
35
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
.TextArea:focus::placeholder,
|
|
37
|
+
.TextArea--invalid:focus::placeholder {
|
|
38
|
+
color: transparent;
|
|
38
39
|
}
|
package/src/Toggle/Toggle.css
CHANGED
|
@@ -69,10 +69,10 @@
|
|
|
69
69
|
|
|
70
70
|
.Toggle__input:checked + .Toggle__control {
|
|
71
71
|
background-color: var(--color-aqua--3);
|
|
72
|
+
}
|
|
72
73
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
74
|
+
.Toggle__input:checked + .Toggle__control .Toggle__knob {
|
|
75
|
+
transform: translate(calc(100% + (var(--Toggle--border) * 2)), -50%);
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
.Toggle__container--disabled .Toggle__input:checked + .Toggle__control {
|
package/src/variables.css
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
--size--x10: 2.5rem;
|
|
10
10
|
--size--x12: 3rem;
|
|
11
11
|
--size--x16: 4rem;
|
|
12
|
-
|
|
12
|
+
|
|
13
13
|
--color-white: #FFFFFF;
|
|
14
14
|
--color-black: #222222;
|
|
15
15
|
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
|
|
149
149
|
--color-overlay--black: rgba(34, 34, 34, 0.8);
|
|
150
150
|
--color-overlay--grape: rgba(53, 29, 72, 0.8);
|
|
151
|
-
|
|
151
|
+
/*
|
|
152
152
|
--color-white: var(--colors-neutral-100);
|
|
153
153
|
--color-black: var(--colors-neutral-10);
|
|
154
154
|
|
|
@@ -230,6 +230,7 @@
|
|
|
230
230
|
--rgb-blue--2: 134, 193, 230;
|
|
231
231
|
|
|
232
232
|
--color-overlay--black: rgba(34, 34, 34, 0.8);
|
|
233
|
+
*/
|
|
233
234
|
|
|
234
235
|
--font-family: 'TT Norms Pro', sans-serif;
|
|
235
236
|
--font-family-monospace: 'Source Code Pro', monospace;
|