@gitlab/ui 86.1.0 → 86.3.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/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/tokens/build/js/tokens.dark.js +2 -1
- package/dist/tokens/build/js/tokens.js +2 -1
- package/dist/tokens/css/tokens.css +1 -0
- package/dist/tokens/css/tokens.dark.css +1 -0
- package/dist/tokens/js/tokens.dark.js +1 -0
- package/dist/tokens/js/tokens.js +1 -0
- package/dist/tokens/json/tokens.dark.json +26 -0
- package/dist/tokens/json/tokens.json +26 -0
- package/dist/tokens/scss/_tokens.dark.scss +1 -0
- package/dist/tokens/scss/_tokens.scss +1 -0
- package/dist/tokens/scss/_tokens_custom_properties.scss +1 -0
- package/dist/utility_classes.css +1 -1
- package/dist/utility_classes.css.map +1 -1
- package/package.json +5 -5
- package/src/components/base/datepicker/datepicker.scss +1 -1
- package/src/components/base/drawer/drawer.scss +14 -8
- package/src/components/base/popover/popover.scss +1 -1
- package/src/scss/utilities.scss +6 -6
- package/src/scss/utility-mixins/box-shadow.scss +3 -3
- package/src/tokens/build/css/tokens.css +1 -0
- package/src/tokens/build/css/tokens.dark.css +1 -0
- package/src/tokens/build/js/tokens.dark.js +1 -0
- package/src/tokens/build/js/tokens.js +1 -0
- package/src/tokens/build/json/tokens.dark.json +26 -0
- package/src/tokens/build/json/tokens.json +26 -0
- package/src/tokens/build/scss/_tokens.dark.scss +1 -0
- package/src/tokens/build/scss/_tokens.scss +1 -0
- package/src/tokens/build/scss/_tokens_custom_properties.scss +1 -0
- package/src/tokens/shadow.tokens.json +14 -0
- package/tailwind.defaults.js +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitlab/ui",
|
|
3
|
-
"version": "86.
|
|
3
|
+
"version": "86.3.0",
|
|
4
4
|
"description": "GitLab UI Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"@gitlab/eslint-plugin": "19.5.0",
|
|
114
114
|
"@gitlab/fonts": "^1.3.0",
|
|
115
115
|
"@gitlab/stylelint-config": "6.1.0",
|
|
116
|
-
"@gitlab/svgs": "3.
|
|
116
|
+
"@gitlab/svgs": "3.105.0",
|
|
117
117
|
"@jest/test-sequencer": "^29.7.0",
|
|
118
118
|
"@rollup/plugin-commonjs": "^11.1.0",
|
|
119
119
|
"@rollup/plugin-node-resolve": "^7.1.3",
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
"babel-jest": "29.0.1",
|
|
147
147
|
"babel-loader": "^8.0.5",
|
|
148
148
|
"bootstrap": "4.6.2",
|
|
149
|
-
"cypress": "13.
|
|
149
|
+
"cypress": "13.13.0",
|
|
150
150
|
"cypress-axe": "^1.4.0",
|
|
151
151
|
"cypress-real-events": "^1.11.0",
|
|
152
152
|
"dompurify": "^3.1.2",
|
|
@@ -170,8 +170,8 @@
|
|
|
170
170
|
"module-alias": "^2.2.2",
|
|
171
171
|
"npm-run-all": "^4.1.5",
|
|
172
172
|
"pikaday": "^1.8.0",
|
|
173
|
-
"playwright": "^1.45.
|
|
174
|
-
"playwright-core": "^1.45.
|
|
173
|
+
"playwright": "^1.45.1",
|
|
174
|
+
"playwright-core": "^1.45.1",
|
|
175
175
|
"plop": "^2.5.4",
|
|
176
176
|
"postcss": "8.4.28",
|
|
177
177
|
"postcss-loader": "^7.0.2",
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
$gl-drawer-width: 400px;
|
|
2
2
|
$gl-sidebar-width: 290px;
|
|
3
|
-
$gl-drawer-scrim-gradient: linear-gradient(
|
|
3
|
+
$gl-drawer-scrim-gradient: linear-gradient(
|
|
4
|
+
to bottom,
|
|
5
|
+
$transparent-rgba,
|
|
6
|
+
var(--drawer-variant-bg-color)
|
|
7
|
+
);
|
|
4
8
|
|
|
5
9
|
.gl-drawer {
|
|
10
|
+
background-color: var(--drawer-variant-bg-color);
|
|
6
11
|
right: 0;
|
|
7
12
|
@include gl-transition-medium;
|
|
8
13
|
position: fixed;
|
|
@@ -16,14 +21,14 @@ $gl-drawer-scrim-gradient: linear-gradient(to bottom, $transparent-rgba, $white)
|
|
|
16
21
|
@include gl-flex-direction-column;
|
|
17
22
|
|
|
18
23
|
.gl-drawer-header-sticky {
|
|
19
|
-
|
|
24
|
+
background-color: var(--drawer-variant-bg-color);
|
|
20
25
|
top: 0;
|
|
21
26
|
position: sticky;
|
|
22
27
|
}
|
|
23
28
|
}
|
|
24
29
|
|
|
25
30
|
.gl-drawer-default {
|
|
26
|
-
|
|
31
|
+
--drawer-variant-bg-color: var(--gl-background-color-default);
|
|
27
32
|
@include media-breakpoint-up(md) {
|
|
28
33
|
width: $gl-drawer-width;
|
|
29
34
|
}
|
|
@@ -35,7 +40,7 @@ $gl-drawer-scrim-gradient: linear-gradient(to bottom, $transparent-rgba, $white)
|
|
|
35
40
|
}
|
|
36
41
|
|
|
37
42
|
.gl-drawer-sidebar {
|
|
38
|
-
|
|
43
|
+
--drawer-variant-bg-color: var(--gl-background-color-subtle);
|
|
39
44
|
@include media-breakpoint-up(md) {
|
|
40
45
|
width: $gl-sidebar-width;
|
|
41
46
|
}
|
|
@@ -56,7 +61,7 @@ $gl-drawer-scrim-gradient: linear-gradient(to bottom, $transparent-rgba, $white)
|
|
|
56
61
|
|
|
57
62
|
.gl-drawer-footer {
|
|
58
63
|
@include gl-border-t-solid;
|
|
59
|
-
|
|
64
|
+
border-top-color: var(--gl-border-color-default);
|
|
60
65
|
@include gl-border-t-1;
|
|
61
66
|
@include gl-p-5;
|
|
62
67
|
}
|
|
@@ -76,18 +81,19 @@ $gl-drawer-scrim-gradient: linear-gradient(to bottom, $transparent-rgba, $white)
|
|
|
76
81
|
}
|
|
77
82
|
|
|
78
83
|
.gl-drawer-footer-sticky {
|
|
79
|
-
|
|
84
|
+
background-color: var(--drawer-variant-bg-color);
|
|
80
85
|
bottom: 0;
|
|
81
86
|
position: sticky;
|
|
82
87
|
}
|
|
83
88
|
|
|
84
89
|
.gl-drawer-header {
|
|
85
90
|
@include gl-border-b-solid;
|
|
86
|
-
|
|
91
|
+
border-bottom-color: var(--gl-border-color-default);
|
|
87
92
|
@include gl-border-b-1;
|
|
88
93
|
}
|
|
89
94
|
|
|
90
95
|
.gl-drawer-title {
|
|
96
|
+
color: var(--gl-text-color-heading);
|
|
91
97
|
@include gl-display-flex;
|
|
92
98
|
@include gl-align-items-center;
|
|
93
99
|
@include gl-justify-content-space-between;
|
|
@@ -127,7 +133,7 @@ $gl-drawer-scrim-gradient: linear-gradient(to bottom, $transparent-rgba, $white)
|
|
|
127
133
|
|
|
128
134
|
.gl-drawer-body > * {
|
|
129
135
|
@include gl-border-b-solid;
|
|
130
|
-
|
|
136
|
+
border-bottom-color: var(--gl-border-color-default);
|
|
131
137
|
@include gl-border-b-1;
|
|
132
138
|
|
|
133
139
|
&:last-child {
|
package/src/scss/utilities.scss
CHANGED
|
@@ -2355,27 +2355,27 @@ $gl-animate-skeleton-loader-max-width: 64 * $grid-size;
|
|
|
2355
2355
|
}
|
|
2356
2356
|
|
|
2357
2357
|
.gl-shadow-sm {
|
|
2358
|
-
box-shadow: 0 1px 2px
|
|
2358
|
+
box-shadow: 0 1px 2px var(--gl-shadow-color-default)
|
|
2359
2359
|
}
|
|
2360
2360
|
|
|
2361
2361
|
.gl-shadow-sm\! {
|
|
2362
|
-
box-shadow: 0 1px 2px
|
|
2362
|
+
box-shadow: 0 1px 2px var(--gl-shadow-color-default) !important
|
|
2363
2363
|
}
|
|
2364
2364
|
|
|
2365
2365
|
.gl-shadow-md {
|
|
2366
|
-
box-shadow: 0 2px 8px
|
|
2366
|
+
box-shadow: 0 2px 8px var(--gl-shadow-color-default), 0 0 2px var(--gl-shadow-color-default)
|
|
2367
2367
|
}
|
|
2368
2368
|
|
|
2369
2369
|
.gl-shadow-md\! {
|
|
2370
|
-
box-shadow: 0 2px 8px
|
|
2370
|
+
box-shadow: 0 2px 8px var(--gl-shadow-color-default), 0 0 2px var(--gl-shadow-color-default) !important
|
|
2371
2371
|
}
|
|
2372
2372
|
|
|
2373
2373
|
.gl-shadow-lg {
|
|
2374
|
-
box-shadow: 0 4px 12px
|
|
2374
|
+
box-shadow: 0 4px 12px var(--gl-shadow-color-default), 0 0 4px var(--gl-shadow-color-default)
|
|
2375
2375
|
}
|
|
2376
2376
|
|
|
2377
2377
|
.gl-shadow-lg\! {
|
|
2378
|
-
box-shadow: 0 4px 12px
|
|
2378
|
+
box-shadow: 0 4px 12px var(--gl-shadow-color-default), 0 0 4px var(--gl-shadow-color-default) !important
|
|
2379
2379
|
}
|
|
2380
2380
|
.gl-clearfix {
|
|
2381
2381
|
&::after {
|
|
@@ -208,13 +208,13 @@
|
|
|
208
208
|
*/
|
|
209
209
|
|
|
210
210
|
@mixin gl-shadow-sm {
|
|
211
|
-
box-shadow: 0 1px 2px
|
|
211
|
+
box-shadow: 0 1px 2px var(--gl-shadow-color-default);
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
@mixin gl-shadow-md {
|
|
215
|
-
box-shadow: 0 2px 8px
|
|
215
|
+
box-shadow: 0 2px 8px var(--gl-shadow-color-default), 0 0 2px var(--gl-shadow-color-default);
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
@mixin gl-shadow-lg {
|
|
219
|
-
box-shadow: 0 4px 12px
|
|
219
|
+
box-shadow: 0 4px 12px var(--gl-shadow-color-default), 0 0 4px var(--gl-shadow-color-default);
|
|
220
220
|
}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
--gl-text-tertiary: #89888d; /* Use text.color.disabled instead */
|
|
8
8
|
--gl-text-secondary: #737278; /* Use text.color.subtle instead */
|
|
9
9
|
--gl-text-primary: #333238; /* Use text.color.default instead */
|
|
10
|
+
--gl-shadow-color-default: rgba(5, 5, 6, 0.16); /* Used for the default shadow color. */
|
|
10
11
|
--gl-line-height-52: 3.25rem;
|
|
11
12
|
--gl-line-height-44: 2.75rem;
|
|
12
13
|
--gl-line-height-42: 2.625rem;
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
--gl-text-tertiary: #737278; /* Use text.color.disabled instead */
|
|
8
8
|
--gl-text-secondary: #89888d; /* Use text.color.subtle instead */
|
|
9
9
|
--gl-text-primary: #ececef; /* Use text.color.default instead */
|
|
10
|
+
--gl-shadow-color-default: rgba(5, 5, 6, 0.24); /* Used for the default shadow color. */
|
|
10
11
|
--gl-line-height-52: 3.25rem;
|
|
11
12
|
--gl-line-height-44: 2.75rem;
|
|
12
13
|
--gl-line-height-42: 2.625rem;
|
|
@@ -566,6 +566,7 @@ export const GL_LINE_HEIGHT_36 = '2.25rem';
|
|
|
566
566
|
export const GL_LINE_HEIGHT_42 = '2.625rem';
|
|
567
567
|
export const GL_LINE_HEIGHT_44 = '2.75rem';
|
|
568
568
|
export const GL_LINE_HEIGHT_52 = '3.25rem';
|
|
569
|
+
export const GL_SHADOW_COLOR_DEFAULT = 'rgba(5, 5, 6, 0.24)'; // Used for the default shadow color.
|
|
569
570
|
export const GL_STATUS_MUTED_BACKGROUND_COLOR_DEFAULT = '#333238'; // Used for the background of a subtle neutral status item when static or the default state when linked.
|
|
570
571
|
export const GL_STATUS_MUTED_BACKGROUND_COLOR_ACTIVE = '#434248'; // Used for the background of a subtle neutral status item in the active state.
|
|
571
572
|
export const GL_STATUS_MUTED_BORDER_COLOR_HOVER = '#535158'; // Used for the border of a subtle neutral status item in the hover state.
|
|
@@ -566,6 +566,7 @@ export const GL_LINE_HEIGHT_36 = '2.25rem';
|
|
|
566
566
|
export const GL_LINE_HEIGHT_42 = '2.625rem';
|
|
567
567
|
export const GL_LINE_HEIGHT_44 = '2.75rem';
|
|
568
568
|
export const GL_LINE_HEIGHT_52 = '3.25rem';
|
|
569
|
+
export const GL_SHADOW_COLOR_DEFAULT = 'rgba(5, 5, 6, 0.16)'; // Used for the default shadow color.
|
|
569
570
|
export const GL_STATUS_MUTED_BACKGROUND_COLOR_DEFAULT = '#ececef'; // Used for the background of a subtle neutral status item when static or the default state when linked.
|
|
570
571
|
export const GL_STATUS_MUTED_BACKGROUND_COLOR_ACTIVE = '#dcdcde'; // Used for the background of a subtle neutral status item in the active state.
|
|
571
572
|
export const GL_STATUS_MUTED_BORDER_COLOR_HOVER = '#bfbfc3'; // Used for the border of a subtle neutral status item in the hover state.
|
|
@@ -12432,6 +12432,32 @@
|
|
|
12432
12432
|
]
|
|
12433
12433
|
}
|
|
12434
12434
|
},
|
|
12435
|
+
"shadow": {
|
|
12436
|
+
"color": {
|
|
12437
|
+
"default": {
|
|
12438
|
+
"value": "rgba(5, 5, 6, 0.24)",
|
|
12439
|
+
"$type": "color",
|
|
12440
|
+
"comment": "Used for the default shadow color.",
|
|
12441
|
+
"filePath": "src/tokens/shadow.tokens.json",
|
|
12442
|
+
"isSource": true,
|
|
12443
|
+
"original": {
|
|
12444
|
+
"value": {
|
|
12445
|
+
"default": "rgba(5, 5, 6, 0.16)",
|
|
12446
|
+
"dark": "rgba(5, 5, 6, 0.24)"
|
|
12447
|
+
},
|
|
12448
|
+
"$type": "color",
|
|
12449
|
+
"comment": "Used for the default shadow color."
|
|
12450
|
+
},
|
|
12451
|
+
"name": "SHADOW_COLOR_DEFAULT",
|
|
12452
|
+
"attributes": {},
|
|
12453
|
+
"path": [
|
|
12454
|
+
"shadow",
|
|
12455
|
+
"color",
|
|
12456
|
+
"default"
|
|
12457
|
+
]
|
|
12458
|
+
}
|
|
12459
|
+
}
|
|
12460
|
+
},
|
|
12435
12461
|
"status": {
|
|
12436
12462
|
"muted": {
|
|
12437
12463
|
"background": {
|
|
@@ -12432,6 +12432,32 @@
|
|
|
12432
12432
|
]
|
|
12433
12433
|
}
|
|
12434
12434
|
},
|
|
12435
|
+
"shadow": {
|
|
12436
|
+
"color": {
|
|
12437
|
+
"default": {
|
|
12438
|
+
"value": "rgba(5, 5, 6, 0.16)",
|
|
12439
|
+
"$type": "color",
|
|
12440
|
+
"comment": "Used for the default shadow color.",
|
|
12441
|
+
"filePath": "src/tokens/shadow.tokens.json",
|
|
12442
|
+
"isSource": true,
|
|
12443
|
+
"original": {
|
|
12444
|
+
"value": {
|
|
12445
|
+
"default": "rgba(5, 5, 6, 0.16)",
|
|
12446
|
+
"dark": "rgba(5, 5, 6, 0.24)"
|
|
12447
|
+
},
|
|
12448
|
+
"$type": "color",
|
|
12449
|
+
"comment": "Used for the default shadow color."
|
|
12450
|
+
},
|
|
12451
|
+
"name": "SHADOW_COLOR_DEFAULT",
|
|
12452
|
+
"attributes": {},
|
|
12453
|
+
"path": [
|
|
12454
|
+
"shadow",
|
|
12455
|
+
"color",
|
|
12456
|
+
"default"
|
|
12457
|
+
]
|
|
12458
|
+
}
|
|
12459
|
+
}
|
|
12460
|
+
},
|
|
12435
12461
|
"status": {
|
|
12436
12462
|
"muted": {
|
|
12437
12463
|
"background": {
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
$gl-text-tertiary: #737278; // Use text.color.disabled instead
|
|
6
6
|
$gl-text-secondary: #89888d; // Use text.color.subtle instead
|
|
7
7
|
$gl-text-primary: #ececef; // Use text.color.default instead
|
|
8
|
+
$gl-shadow-color-default: rgba(5, 5, 6, 0.24); // Used for the default shadow color.
|
|
8
9
|
$gl-line-height-52: 3.25rem;
|
|
9
10
|
$gl-line-height-44: 2.75rem;
|
|
10
11
|
$gl-line-height-42: 2.625rem;
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
$gl-text-tertiary: #89888d; // Use text.color.disabled instead
|
|
6
6
|
$gl-text-secondary: #737278; // Use text.color.subtle instead
|
|
7
7
|
$gl-text-primary: #333238; // Use text.color.default instead
|
|
8
|
+
$gl-shadow-color-default: rgba(5, 5, 6, 0.16); // Used for the default shadow color.
|
|
8
9
|
$gl-line-height-52: 3.25rem;
|
|
9
10
|
$gl-line-height-44: 2.75rem;
|
|
10
11
|
$gl-line-height-42: 2.625rem;
|
|
@@ -566,6 +566,7 @@ $gl-line-height-36: var(--gl-line-height-36);
|
|
|
566
566
|
$gl-line-height-42: var(--gl-line-height-42);
|
|
567
567
|
$gl-line-height-44: var(--gl-line-height-44);
|
|
568
568
|
$gl-line-height-52: var(--gl-line-height-52);
|
|
569
|
+
$gl-shadow-color-default: var(--gl-shadow-color-default);
|
|
569
570
|
$gl-status-muted-background-color-default: var(--gl-status-muted-background-color-default);
|
|
570
571
|
$gl-status-muted-background-color-active: var(--gl-status-muted-background-color-active);
|
|
571
572
|
$gl-status-muted-border-color-hover: var(--gl-status-muted-border-color-hover);
|
package/tailwind.defaults.js
CHANGED
|
@@ -394,9 +394,9 @@ module.exports = {
|
|
|
394
394
|
boxShadow: {
|
|
395
395
|
DEFAULT: '0 1px 4px 0 #0000004d',
|
|
396
396
|
none: 'none',
|
|
397
|
-
sm: '0 1px 2px var(--
|
|
398
|
-
md: '0 2px 8px var(--
|
|
399
|
-
lg: '0 4px 12px var(--
|
|
397
|
+
sm: '0 1px 2px var(--gl-shadow-color-default, #05050629)',
|
|
398
|
+
md: '0 2px 8px var(--gl-shadow-color-default, #05050629), 0 0 2px var(--gl-shadow-color-default, #05050629)',
|
|
399
|
+
lg: '0 4px 12px var(--gl-shadow-color-default, #05050629), 0 0 4px var(--gl-shadow-color-default, #05050629)',
|
|
400
400
|
'inner-1-blue-500': 'inset 0 0 0 1px var(--blue-500, #1f75cb)',
|
|
401
401
|
'inner-1-gray-100': 'inset 0 0 0 1px var(--gray-100, #dcdcde)',
|
|
402
402
|
'inner-1-gray-200': 'inset 0 0 0 1px var(--gray-200, #bfbfc3)',
|