@gitlab/ui 86.0.2 → 86.2.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 +17 -1
- package/dist/tokens/build/js/tokens.js +17 -1
- package/dist/tokens/css/tokens.css +16 -0
- package/dist/tokens/css/tokens.dark.css +16 -0
- package/dist/tokens/js/tokens.dark.js +16 -0
- package/dist/tokens/js/tokens.js +16 -0
- package/dist/tokens/json/tokens.dark.json +320 -11
- package/dist/tokens/json/tokens.json +320 -11
- package/dist/tokens/scss/_tokens.dark.scss +16 -0
- package/dist/tokens/scss/_tokens.scss +16 -0
- package/dist/tokens/scss/_tokens_custom_properties.scss +16 -0
- package/dist/tokens/tailwind/tokens.cjs +24 -0
- package/dist/utility_classes.css +1 -1
- package/dist/utility_classes.css.map +1 -1
- package/package.json +3 -3
- package/src/components/base/datepicker/datepicker.scss +1 -1
- 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 +16 -0
- package/src/tokens/build/css/tokens.dark.css +16 -0
- package/src/tokens/build/js/tokens.dark.js +16 -0
- package/src/tokens/build/js/tokens.js +16 -0
- package/src/tokens/build/json/tokens.dark.json +320 -11
- package/src/tokens/build/json/tokens.json +320 -11
- package/src/tokens/build/scss/_tokens.dark.scss +16 -0
- package/src/tokens/build/scss/_tokens.scss +16 -0
- package/src/tokens/build/scss/_tokens_custom_properties.scss +16 -0
- package/src/tokens/build/tailwind/tokens.cjs +24 -0
- package/src/tokens/color.constant.tokens.json +68 -0
- package/src/tokens/color.tokens.json +28 -17
- 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.0
|
|
3
|
+
"version": "86.2.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",
|
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;
|
|
@@ -237,6 +238,21 @@
|
|
|
237
238
|
--data-viz-green-200: #b0d97b;
|
|
238
239
|
--data-viz-green-100: #c6ed94;
|
|
239
240
|
--data-viz-green-50: #ddfab7;
|
|
241
|
+
--gl-color-brand-pink-01g: #ffb9c9;
|
|
242
|
+
--gl-color-brand-gray-05: #2b2838;
|
|
243
|
+
--gl-color-brand-gray-04: #45424d;
|
|
244
|
+
--gl-color-brand-gray-03: #74717a;
|
|
245
|
+
--gl-color-brand-gray-02: #a2a1a6;
|
|
246
|
+
--gl-color-brand-gray-01: #d1d0d3;
|
|
247
|
+
--gl-color-brand-purple-02p: #7759c2;
|
|
248
|
+
--gl-color-brand-purple-01p: #a989f5;
|
|
249
|
+
--gl-color-brand-purple-01g: #ceb3ef;
|
|
250
|
+
--gl-color-brand-orange-03p: #e24329;
|
|
251
|
+
--gl-color-brand-orange-02p: #fc6d26;
|
|
252
|
+
--gl-color-brand-orange-01p: #fca326;
|
|
253
|
+
--gl-color-brand-orange-01g: #ffd1bf;
|
|
254
|
+
--gl-color-brand-charcoal: #171321;
|
|
255
|
+
--gl-color-brand-white: #fff;
|
|
240
256
|
--gl-color-theme-light-red-950: #5c1105;
|
|
241
257
|
--gl-color-theme-light-red-900: #751709;
|
|
242
258
|
--gl-color-theme-light-red-800: #8b2212;
|
|
@@ -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;
|
|
@@ -237,6 +238,21 @@
|
|
|
237
238
|
--data-viz-green-200: #275600;
|
|
238
239
|
--data-viz-green-100: #1a4500;
|
|
239
240
|
--data-viz-green-50: #133a03;
|
|
241
|
+
--gl-color-brand-pink-01g: #ffb9c9;
|
|
242
|
+
--gl-color-brand-gray-05: #2b2838;
|
|
243
|
+
--gl-color-brand-gray-04: #45424d;
|
|
244
|
+
--gl-color-brand-gray-03: #74717a;
|
|
245
|
+
--gl-color-brand-gray-02: #a2a1a6;
|
|
246
|
+
--gl-color-brand-gray-01: #d1d0d3;
|
|
247
|
+
--gl-color-brand-purple-02p: #7759c2;
|
|
248
|
+
--gl-color-brand-purple-01p: #a989f5;
|
|
249
|
+
--gl-color-brand-purple-01g: #ceb3ef;
|
|
250
|
+
--gl-color-brand-orange-03p: #e24329;
|
|
251
|
+
--gl-color-brand-orange-02p: #fc6d26;
|
|
252
|
+
--gl-color-brand-orange-01p: #fca326;
|
|
253
|
+
--gl-color-brand-orange-01g: #ffd1bf;
|
|
254
|
+
--gl-color-brand-charcoal: #171321;
|
|
255
|
+
--gl-color-brand-white: #fff;
|
|
240
256
|
--gl-color-theme-light-red-950: #5c1105;
|
|
241
257
|
--gl-color-theme-light-red-900: #751709;
|
|
242
258
|
--gl-color-theme-light-red-800: #8b2212;
|
|
@@ -264,6 +264,21 @@ export const GL_COLOR_THEME_LIGHT_RED_700 = '#a02e1c';
|
|
|
264
264
|
export const GL_COLOR_THEME_LIGHT_RED_800 = '#8b2212';
|
|
265
265
|
export const GL_COLOR_THEME_LIGHT_RED_900 = '#751709';
|
|
266
266
|
export const GL_COLOR_THEME_LIGHT_RED_950 = '#5c1105';
|
|
267
|
+
export const GL_COLOR_BRAND_WHITE = '#fff';
|
|
268
|
+
export const GL_COLOR_BRAND_CHARCOAL = '#171321';
|
|
269
|
+
export const GL_COLOR_BRAND_ORANGE_01G = '#ffd1bf';
|
|
270
|
+
export const GL_COLOR_BRAND_ORANGE_01P = '#fca326';
|
|
271
|
+
export const GL_COLOR_BRAND_ORANGE_02P = '#fc6d26';
|
|
272
|
+
export const GL_COLOR_BRAND_ORANGE_03P = '#e24329';
|
|
273
|
+
export const GL_COLOR_BRAND_PURPLE_01G = '#ceb3ef';
|
|
274
|
+
export const GL_COLOR_BRAND_PURPLE_01P = '#a989f5';
|
|
275
|
+
export const GL_COLOR_BRAND_PURPLE_02P = '#7759c2';
|
|
276
|
+
export const GL_COLOR_BRAND_GRAY_01 = '#d1d0d3';
|
|
277
|
+
export const GL_COLOR_BRAND_GRAY_02 = '#a2a1a6';
|
|
278
|
+
export const GL_COLOR_BRAND_GRAY_03 = '#74717a';
|
|
279
|
+
export const GL_COLOR_BRAND_GRAY_04 = '#45424d';
|
|
280
|
+
export const GL_COLOR_BRAND_GRAY_05 = '#2b2838';
|
|
281
|
+
export const GL_COLOR_BRAND_PINK_01G = '#ffb9c9';
|
|
267
282
|
export const DATA_VIZ_GREEN_50 = '#133a03';
|
|
268
283
|
export const DATA_VIZ_GREEN_100 = '#1a4500';
|
|
269
284
|
export const DATA_VIZ_GREEN_200 = '#275600';
|
|
@@ -551,6 +566,7 @@ export const GL_LINE_HEIGHT_36 = '2.25rem';
|
|
|
551
566
|
export const GL_LINE_HEIGHT_42 = '2.625rem';
|
|
552
567
|
export const GL_LINE_HEIGHT_44 = '2.75rem';
|
|
553
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.
|
|
554
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.
|
|
555
571
|
export const GL_STATUS_MUTED_BACKGROUND_COLOR_ACTIVE = '#434248'; // Used for the background of a subtle neutral status item in the active state.
|
|
556
572
|
export const GL_STATUS_MUTED_BORDER_COLOR_HOVER = '#535158'; // Used for the border of a subtle neutral status item in the hover state.
|
|
@@ -264,6 +264,21 @@ export const GL_COLOR_THEME_LIGHT_RED_700 = '#a02e1c';
|
|
|
264
264
|
export const GL_COLOR_THEME_LIGHT_RED_800 = '#8b2212';
|
|
265
265
|
export const GL_COLOR_THEME_LIGHT_RED_900 = '#751709';
|
|
266
266
|
export const GL_COLOR_THEME_LIGHT_RED_950 = '#5c1105';
|
|
267
|
+
export const GL_COLOR_BRAND_WHITE = '#fff';
|
|
268
|
+
export const GL_COLOR_BRAND_CHARCOAL = '#171321';
|
|
269
|
+
export const GL_COLOR_BRAND_ORANGE_01G = '#ffd1bf';
|
|
270
|
+
export const GL_COLOR_BRAND_ORANGE_01P = '#fca326';
|
|
271
|
+
export const GL_COLOR_BRAND_ORANGE_02P = '#fc6d26';
|
|
272
|
+
export const GL_COLOR_BRAND_ORANGE_03P = '#e24329';
|
|
273
|
+
export const GL_COLOR_BRAND_PURPLE_01G = '#ceb3ef';
|
|
274
|
+
export const GL_COLOR_BRAND_PURPLE_01P = '#a989f5';
|
|
275
|
+
export const GL_COLOR_BRAND_PURPLE_02P = '#7759c2';
|
|
276
|
+
export const GL_COLOR_BRAND_GRAY_01 = '#d1d0d3';
|
|
277
|
+
export const GL_COLOR_BRAND_GRAY_02 = '#a2a1a6';
|
|
278
|
+
export const GL_COLOR_BRAND_GRAY_03 = '#74717a';
|
|
279
|
+
export const GL_COLOR_BRAND_GRAY_04 = '#45424d';
|
|
280
|
+
export const GL_COLOR_BRAND_GRAY_05 = '#2b2838';
|
|
281
|
+
export const GL_COLOR_BRAND_PINK_01G = '#ffb9c9';
|
|
267
282
|
export const DATA_VIZ_GREEN_50 = '#ddfab7';
|
|
268
283
|
export const DATA_VIZ_GREEN_100 = '#c6ed94';
|
|
269
284
|
export const DATA_VIZ_GREEN_200 = '#b0d97b';
|
|
@@ -551,6 +566,7 @@ export const GL_LINE_HEIGHT_36 = '2.25rem';
|
|
|
551
566
|
export const GL_LINE_HEIGHT_42 = '2.625rem';
|
|
552
567
|
export const GL_LINE_HEIGHT_44 = '2.75rem';
|
|
553
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.
|
|
554
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.
|
|
555
571
|
export const GL_STATUS_MUTED_BACKGROUND_COLOR_ACTIVE = '#dcdcde'; // Used for the background of a subtle neutral status item in the active state.
|
|
556
572
|
export const GL_STATUS_MUTED_BORDER_COLOR_HOVER = '#bfbfc3'; // Used for the border of a subtle neutral status item in the hover state.
|