@gitlab/ui 80.16.2 → 80.18.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/CHANGELOG.md +14 -0
- package/dist/tokens/build/js/tokens.dark.js +19 -1
- package/dist/tokens/build/js/tokens.js +19 -1
- package/dist/tokens/css/tokens.css +18 -0
- package/dist/tokens/css/tokens.dark.css +18 -0
- package/dist/tokens/js/tokens.dark.js +18 -0
- package/dist/tokens/js/tokens.js +18 -0
- package/dist/tokens/json/tokens.dark.json +385 -13
- package/dist/tokens/json/tokens.json +385 -13
- package/dist/tokens/scss/_tokens.dark.scss +18 -0
- package/dist/tokens/scss/_tokens.scss +18 -0
- package/dist/tokens/scss/_tokens_custom_properties.scss +18 -0
- package/dist/tokens/tailwind/tokens.cjs +35 -0
- package/dist/tokens/tokens_story.js +4 -4
- package/package.json +4 -4
- package/src/tokens/border.tokens.json +35 -0
- package/src/tokens/build/css/tokens.css +18 -0
- package/src/tokens/build/css/tokens.dark.css +18 -0
- package/src/tokens/build/js/tokens.dark.js +18 -0
- package/src/tokens/build/js/tokens.js +18 -0
- package/src/tokens/build/json/tokens.dark.json +385 -13
- package/src/tokens/build/json/tokens.json +385 -13
- package/src/tokens/build/scss/_tokens.dark.scss +18 -0
- package/src/tokens/build/scss/_tokens.scss +18 -0
- package/src/tokens/build/scss/_tokens_custom_properties.scss +18 -0
- package/src/tokens/build/tailwind/tokens.cjs +35 -0
- package/src/tokens/color.alpha.tokens.json +66 -0
- package/src/tokens/color.transparency.tokens.json +26 -13
- package/src/tokens/tokens_story.vue +5 -5
- package/tailwind.defaults.js +2 -0
- package/translations.json +7 -7
|
@@ -224,6 +224,14 @@ const backgroundColors = {
|
|
|
224
224
|
disabled:
|
|
225
225
|
'var(--gl-background-color-disabled, var(--gl-color-neutral-10, #fbfafd))',
|
|
226
226
|
};
|
|
227
|
+
const borderColors = {
|
|
228
|
+
default:
|
|
229
|
+
'var(--gl-border-color-default, var(--gl-color-neutral-100, #dcdcde))',
|
|
230
|
+
subtle: 'var(--gl-border-color-subtle, var(--gl-color-neutral-50, #ececef))',
|
|
231
|
+
strong: 'var(--gl-border-color-strong, var(--gl-color-neutral-400, #89888d))',
|
|
232
|
+
transparent:
|
|
233
|
+
'var(--gl-border-color-transparent, var(--gl-color-alpha-0, transparent))',
|
|
234
|
+
};
|
|
227
235
|
const iconColors = {
|
|
228
236
|
default: 'var(--gl-icon-color-default, var(--gl-color-neutral-700, #535158))',
|
|
229
237
|
subtle: 'var(--gl-icon-color-subtle, var(--gl-color-neutral-500, #737278))',
|
|
@@ -236,6 +244,23 @@ const iconColors = {
|
|
|
236
244
|
danger: 'var(--gl-icon-color-danger, var(--gl-color-red-600, #c91c00))',
|
|
237
245
|
success: 'var(--gl-icon-color-success, var(--gl-color-green-600, #217645))',
|
|
238
246
|
};
|
|
247
|
+
const alphaDarkColors = {
|
|
248
|
+
2: 'var(--gl-color-alpha-dark-2, rgba(31, 30, 36, 0.02))',
|
|
249
|
+
4: 'var(--gl-color-alpha-dark-4, rgba(31, 30, 36, 0.04))',
|
|
250
|
+
6: 'var(--gl-color-alpha-dark-6, rgba(31, 30, 36, 0.06))',
|
|
251
|
+
8: 'var(--gl-color-alpha-dark-8, rgba(31, 30, 36, 0.08))',
|
|
252
|
+
16: 'var(--gl-color-alpha-dark-16, rgba(31, 30, 36, 0.16))',
|
|
253
|
+
24: 'var(--gl-color-alpha-dark-24, rgba(31, 30, 36, 0.24))',
|
|
254
|
+
};
|
|
255
|
+
const alphaLightColors = {
|
|
256
|
+
2: 'var(--gl-color-alpha-light-2, rgba(255, 255, 255, 0.02))',
|
|
257
|
+
4: 'var(--gl-color-alpha-light-4, rgba(255, 255, 255, 0.04))',
|
|
258
|
+
6: 'var(--gl-color-alpha-light-6, rgba(255, 255, 255, 0.06))',
|
|
259
|
+
8: 'var(--gl-color-alpha-light-8, rgba(255, 255, 255, 0.08))',
|
|
260
|
+
16: 'var(--gl-color-alpha-light-16, rgba(255, 255, 255, 0.16))',
|
|
261
|
+
24: 'var(--gl-color-alpha-light-24, rgba(255, 255, 255, 0.24))',
|
|
262
|
+
36: 'var(--gl-color-alpha-light-36, rgba(255, 255, 255, 0.36))',
|
|
263
|
+
};
|
|
239
264
|
|
|
240
265
|
const colors = {
|
|
241
266
|
inherit: 'inherit',
|
|
@@ -243,6 +268,10 @@ const colors = {
|
|
|
243
268
|
transparent: 'transparent',
|
|
244
269
|
white: 'var(--white, #fff)',
|
|
245
270
|
black: 'var(--black, #000)',
|
|
271
|
+
alpha: {
|
|
272
|
+
dark: { ...alphaDarkColors },
|
|
273
|
+
light: { ...alphaLightColors },
|
|
274
|
+
},
|
|
246
275
|
...baseColors,
|
|
247
276
|
...themeColors,
|
|
248
277
|
...dataVizColors,
|
|
@@ -253,6 +282,11 @@ const backgroundColor = {
|
|
|
253
282
|
...backgroundColors,
|
|
254
283
|
};
|
|
255
284
|
|
|
285
|
+
const borderColor = {
|
|
286
|
+
...colors,
|
|
287
|
+
...borderColors,
|
|
288
|
+
};
|
|
289
|
+
|
|
256
290
|
const fill = {
|
|
257
291
|
...colors,
|
|
258
292
|
icon: {
|
|
@@ -271,6 +305,7 @@ const textColor = {
|
|
|
271
305
|
module.exports = {
|
|
272
306
|
colors,
|
|
273
307
|
backgroundColor,
|
|
308
|
+
borderColor,
|
|
274
309
|
textColor,
|
|
275
310
|
fill,
|
|
276
311
|
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"color": {
|
|
3
|
+
"alpha": {
|
|
4
|
+
"0": {
|
|
5
|
+
"$value": "transparent",
|
|
6
|
+
"$type": "color"
|
|
7
|
+
},
|
|
8
|
+
"dark": {
|
|
9
|
+
"2": {
|
|
10
|
+
"$value": "rgba(31, 30, 36, 0.02)",
|
|
11
|
+
"$type": "color"
|
|
12
|
+
},
|
|
13
|
+
"4": {
|
|
14
|
+
"$value": "rgba(31, 30, 36, 0.04)",
|
|
15
|
+
"$type": "color"
|
|
16
|
+
},
|
|
17
|
+
"6": {
|
|
18
|
+
"$value": "rgba(31, 30, 36, 0.06)",
|
|
19
|
+
"$type": "color"
|
|
20
|
+
},
|
|
21
|
+
"8": {
|
|
22
|
+
"$value": "rgba(31, 30, 36, 0.08)",
|
|
23
|
+
"$type": "color"
|
|
24
|
+
},
|
|
25
|
+
"16": {
|
|
26
|
+
"$value": "rgba(31, 30, 36, 0.16)",
|
|
27
|
+
"$type": "color"
|
|
28
|
+
},
|
|
29
|
+
"24": {
|
|
30
|
+
"$value": "rgba(31, 30, 36, 0.24)",
|
|
31
|
+
"$type": "color"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"light": {
|
|
35
|
+
"2": {
|
|
36
|
+
"$value": "rgba(255, 255, 255, 0.02)",
|
|
37
|
+
"$type": "color"
|
|
38
|
+
},
|
|
39
|
+
"4": {
|
|
40
|
+
"$value": "rgba(255, 255, 255, 0.04)",
|
|
41
|
+
"$type": "color"
|
|
42
|
+
},
|
|
43
|
+
"6": {
|
|
44
|
+
"$value": "rgba(255, 255, 255, 0.06)",
|
|
45
|
+
"$type": "color"
|
|
46
|
+
},
|
|
47
|
+
"8": {
|
|
48
|
+
"$value": "rgba(255, 255, 255, 0.08)",
|
|
49
|
+
"$type": "color"
|
|
50
|
+
},
|
|
51
|
+
"16": {
|
|
52
|
+
"$value": "rgba(255, 255, 255, 0.16)",
|
|
53
|
+
"$type": "color"
|
|
54
|
+
},
|
|
55
|
+
"24": {
|
|
56
|
+
"$value": "rgba(255, 255, 255, 0.24)",
|
|
57
|
+
"$type": "color"
|
|
58
|
+
},
|
|
59
|
+
"36": {
|
|
60
|
+
"$value": "rgba(255, 255, 255, 0.36)",
|
|
61
|
+
"$type": "color"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -4,37 +4,43 @@
|
|
|
4
4
|
"$value": "rgba(31, 30, 36, 0.02)",
|
|
5
5
|
"$type": "color",
|
|
6
6
|
"themeable": true,
|
|
7
|
-
"prefix": false
|
|
7
|
+
"prefix": false,
|
|
8
|
+
"deprecated": true
|
|
8
9
|
},
|
|
9
10
|
"04": {
|
|
10
11
|
"$value": "rgba(31, 30, 36, 0.04)",
|
|
11
12
|
"$type": "color",
|
|
12
13
|
"themeable": true,
|
|
13
|
-
"prefix": false
|
|
14
|
+
"prefix": false,
|
|
15
|
+
"deprecated": true
|
|
14
16
|
},
|
|
15
17
|
"06": {
|
|
16
18
|
"$value": "rgba(31, 30, 36, 0.06)",
|
|
17
19
|
"$type": "color",
|
|
18
20
|
"themeable": true,
|
|
19
|
-
"prefix": false
|
|
21
|
+
"prefix": false,
|
|
22
|
+
"deprecated": true
|
|
20
23
|
},
|
|
21
24
|
"08": {
|
|
22
25
|
"$value": "rgba(31, 30, 36, 0.08)",
|
|
23
26
|
"$type": "color",
|
|
24
27
|
"themeable": true,
|
|
25
|
-
"prefix": false
|
|
28
|
+
"prefix": false,
|
|
29
|
+
"deprecated": true
|
|
26
30
|
},
|
|
27
31
|
"16": {
|
|
28
32
|
"$value": "rgba(31, 30, 36, 0.16)",
|
|
29
33
|
"$type": "color",
|
|
30
34
|
"themeable": true,
|
|
31
|
-
"prefix": false
|
|
35
|
+
"prefix": false,
|
|
36
|
+
"deprecated": true
|
|
32
37
|
},
|
|
33
38
|
"24": {
|
|
34
39
|
"$value": "rgba(31, 30, 36, 0.24)",
|
|
35
40
|
"$type": "color",
|
|
36
41
|
"themeable": true,
|
|
37
|
-
"prefix": false
|
|
42
|
+
"prefix": false,
|
|
43
|
+
"deprecated": true
|
|
38
44
|
}
|
|
39
45
|
},
|
|
40
46
|
"t-white-a": {
|
|
@@ -42,43 +48,50 @@
|
|
|
42
48
|
"$value": "rgba(255, 255, 255, 0.02)",
|
|
43
49
|
"$type": "color",
|
|
44
50
|
"themeable": true,
|
|
45
|
-
"prefix": false
|
|
51
|
+
"prefix": false,
|
|
52
|
+
"deprecated": true
|
|
46
53
|
},
|
|
47
54
|
"04": {
|
|
48
55
|
"$value": "rgba(255, 255, 255, 0.04)",
|
|
49
56
|
"$type": "color",
|
|
50
57
|
"themeable": true,
|
|
51
|
-
"prefix": false
|
|
58
|
+
"prefix": false,
|
|
59
|
+
"deprecated": true
|
|
52
60
|
},
|
|
53
61
|
"06": {
|
|
54
62
|
"$value": "rgba(255, 255, 255, 0.06)",
|
|
55
63
|
"$type": "color",
|
|
56
64
|
"themeable": true,
|
|
57
|
-
"prefix": false
|
|
65
|
+
"prefix": false,
|
|
66
|
+
"deprecated": true
|
|
58
67
|
},
|
|
59
68
|
"08": {
|
|
60
69
|
"$value": "rgba(255, 255, 255, 0.08)",
|
|
61
70
|
"$type": "color",
|
|
62
71
|
"themeable": true,
|
|
63
|
-
"prefix": false
|
|
72
|
+
"prefix": false,
|
|
73
|
+
"deprecated": true
|
|
64
74
|
},
|
|
65
75
|
"16": {
|
|
66
76
|
"$value": "rgba(255, 255, 255, 0.16)",
|
|
67
77
|
"$type": "color",
|
|
68
78
|
"themeable": true,
|
|
69
|
-
"prefix": false
|
|
79
|
+
"prefix": false,
|
|
80
|
+
"deprecated": true
|
|
70
81
|
},
|
|
71
82
|
"24": {
|
|
72
83
|
"$value": "rgba(255, 255, 255, 0.24)",
|
|
73
84
|
"$type": "color",
|
|
74
85
|
"themeable": true,
|
|
75
|
-
"prefix": false
|
|
86
|
+
"prefix": false,
|
|
87
|
+
"deprecated": true
|
|
76
88
|
},
|
|
77
89
|
"36": {
|
|
78
90
|
"$value": "rgba(255, 255, 255, 0.36)",
|
|
79
91
|
"$type": "color",
|
|
80
92
|
"themeable": true,
|
|
81
|
-
"prefix": false
|
|
93
|
+
"prefix": false,
|
|
94
|
+
"deprecated": true
|
|
82
95
|
}
|
|
83
96
|
}
|
|
84
97
|
}
|
|
@@ -22,14 +22,14 @@ export default {
|
|
|
22
22
|
},
|
|
23
23
|
},
|
|
24
24
|
methods: {
|
|
25
|
-
|
|
26
|
-
return value.startsWith('
|
|
25
|
+
isHex(value) {
|
|
26
|
+
return value.startsWith('#');
|
|
27
27
|
},
|
|
28
28
|
getTokenName(token) {
|
|
29
29
|
return token.path.filter(Boolean).join('.');
|
|
30
30
|
},
|
|
31
31
|
getClasses(value) {
|
|
32
|
-
if (this.
|
|
32
|
+
if (!this.isHex(value)) return '';
|
|
33
33
|
if (!this.isBackgroundColorStory) return '';
|
|
34
34
|
|
|
35
35
|
const textColorVariant = colorFromBackground(value, 4.5);
|
|
@@ -68,12 +68,12 @@ export default {
|
|
|
68
68
|
</gl-badge>
|
|
69
69
|
<code class="gl-reset-color">{{ token.value }}</code>
|
|
70
70
|
<gl-color-contrast
|
|
71
|
-
v-if="
|
|
71
|
+
v-if="isHex(token.value)"
|
|
72
72
|
:foreground="token.value"
|
|
73
73
|
:background="darkBackground"
|
|
74
74
|
/>
|
|
75
75
|
<gl-color-contrast
|
|
76
|
-
v-if="
|
|
76
|
+
v-if="isHex(token.value)"
|
|
77
77
|
:foreground="token.value"
|
|
78
78
|
:background="lightBackground"
|
|
79
79
|
/>
|
package/tailwind.defaults.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const {
|
|
2
2
|
colors,
|
|
3
3
|
backgroundColor,
|
|
4
|
+
borderColor,
|
|
4
5
|
fill,
|
|
5
6
|
textColor,
|
|
6
7
|
} = require('./src/tokens/build/tailwind/tokens.cjs');
|
|
@@ -54,6 +55,7 @@ module.exports = {
|
|
|
54
55
|
},
|
|
55
56
|
colors,
|
|
56
57
|
backgroundColor,
|
|
58
|
+
borderColor,
|
|
57
59
|
fill,
|
|
58
60
|
spacing,
|
|
59
61
|
fontSize: {
|
package/translations.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"ClearIconButton.title": "Clear",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"GlSearchBoxByType.clearButtonTitle": "Clear",
|
|
6
|
-
"GlSearchBoxByType.input.placeholder": "Search",
|
|
7
|
-
"GlKeysetPagination.prevText": "Previous",
|
|
3
|
+
"GlBreadcrumb.showMoreLabel": "Show more breadcrumbs",
|
|
4
|
+
"GlCollapsibleListbox.srOnlyResultsLabel": "Results count",
|
|
8
5
|
"GlKeysetPagination.navigationLabel": "Pagination",
|
|
9
6
|
"GlKeysetPagination.nextText": "Next",
|
|
10
|
-
"
|
|
11
|
-
"
|
|
7
|
+
"GlKeysetPagination.prevText": "Previous",
|
|
8
|
+
"GlSearchBoxByType.clearButtonTitle": "Clear",
|
|
9
|
+
"GlSearchBoxByType.input.placeholder": "Search",
|
|
10
|
+
"GlSorting.sortAscending": "Sort direction: ascending",
|
|
11
|
+
"GlSorting.sortDescending": "Sort direction: descending"
|
|
12
12
|
}
|