@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.
Files changed (36) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/index.css +2 -2
  3. package/dist/index.css.map +1 -1
  4. package/dist/tokens/build/js/tokens.dark.js +17 -1
  5. package/dist/tokens/build/js/tokens.js +17 -1
  6. package/dist/tokens/css/tokens.css +16 -0
  7. package/dist/tokens/css/tokens.dark.css +16 -0
  8. package/dist/tokens/js/tokens.dark.js +16 -0
  9. package/dist/tokens/js/tokens.js +16 -0
  10. package/dist/tokens/json/tokens.dark.json +320 -11
  11. package/dist/tokens/json/tokens.json +320 -11
  12. package/dist/tokens/scss/_tokens.dark.scss +16 -0
  13. package/dist/tokens/scss/_tokens.scss +16 -0
  14. package/dist/tokens/scss/_tokens_custom_properties.scss +16 -0
  15. package/dist/tokens/tailwind/tokens.cjs +24 -0
  16. package/dist/utility_classes.css +1 -1
  17. package/dist/utility_classes.css.map +1 -1
  18. package/package.json +3 -3
  19. package/src/components/base/datepicker/datepicker.scss +1 -1
  20. package/src/components/base/popover/popover.scss +1 -1
  21. package/src/scss/utilities.scss +6 -6
  22. package/src/scss/utility-mixins/box-shadow.scss +3 -3
  23. package/src/tokens/build/css/tokens.css +16 -0
  24. package/src/tokens/build/css/tokens.dark.css +16 -0
  25. package/src/tokens/build/js/tokens.dark.js +16 -0
  26. package/src/tokens/build/js/tokens.js +16 -0
  27. package/src/tokens/build/json/tokens.dark.json +320 -11
  28. package/src/tokens/build/json/tokens.json +320 -11
  29. package/src/tokens/build/scss/_tokens.dark.scss +16 -0
  30. package/src/tokens/build/scss/_tokens.scss +16 -0
  31. package/src/tokens/build/scss/_tokens_custom_properties.scss +16 -0
  32. package/src/tokens/build/tailwind/tokens.cjs +24 -0
  33. package/src/tokens/color.constant.tokens.json +68 -0
  34. package/src/tokens/color.tokens.json +28 -17
  35. package/src/tokens/shadow.tokens.json +14 -0
  36. 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.2",
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.103.0",
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.12.0",
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",
@@ -44,7 +44,7 @@ $pd-week-color: $gray-500;
44
44
  @include gl-mt-3;
45
45
 
46
46
  &.is-bound {
47
- @include gl-shadow;
47
+ @include gl-shadow-md;
48
48
  }
49
49
 
50
50
  .pika-lendar {
@@ -7,7 +7,7 @@ $gl-popover-max-width: $grid-size * 35;
7
7
  @include gl-border-1;
8
8
  @include gl-border-solid;
9
9
  @include gl-border-none;
10
- @include gl-shadow;
10
+ @include gl-shadow-md;
11
11
  @include gl-font-sm;
12
12
 
13
13
  &,
@@ -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 $t-gray-a-08
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 $t-gray-a-08 !important
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 $t-gray-a-16, 0 0 2px $t-gray-a-16
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 $t-gray-a-16, 0 0 2px $t-gray-a-16 !important
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 $t-gray-a-16, 0 0 4px $t-gray-a-16
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 $t-gray-a-16, 0 0 4px $t-gray-a-16 !important
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 $t-gray-a-08;
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 $t-gray-a-16, 0 0 2px $t-gray-a-16;
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 $t-gray-a-16, 0 0 4px $t-gray-a-16;
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.