@gitlab/ui 78.5.0 → 78.6.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "78.5.0",
3
+ "version": "78.6.1",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -99,10 +99,10 @@
99
99
  "@babel/preset-env": "^7.24.3",
100
100
  "@babel/preset-react": "^7.24.1",
101
101
  "@cypress/grep": "^4.0.1",
102
- "@gitlab/eslint-plugin": "19.4.0",
102
+ "@gitlab/eslint-plugin": "19.5.0",
103
103
  "@gitlab/fonts": "^1.3.0",
104
104
  "@gitlab/stylelint-config": "6.1.0",
105
- "@gitlab/svgs": "3.91.0",
105
+ "@gitlab/svgs": "3.93.0",
106
106
  "@rollup/plugin-commonjs": "^11.1.0",
107
107
  "@rollup/plugin-node-resolve": "^7.1.3",
108
108
  "@rollup/plugin-replace": "^2.3.2",
@@ -64,14 +64,18 @@ $gl-broadcast-message-padding-x: var(--gl-broadcast-message-padding-x, 0px);
64
64
  }
65
65
 
66
66
  &.light {
67
- --gl-broadcast-message-bg-color: #{$gray-300};
68
- --gl-broadcast-message-border-color: #{$gray-500};
67
+ --gl-broadcast-message-bg-color: #{$gray-50};
68
+ --gl-broadcast-message-border-color: #{$gray-100};
69
69
  }
70
70
 
71
71
  &.banner {
72
72
  @include gl-text-contrast-light;
73
73
  background-color: var(--gl-broadcast-message-bg-color);
74
74
  box-shadow: inset 0 -#{$gl-border-size-1} 0 0 var(--gl-broadcast-message-border-color);
75
+
76
+ &.light {
77
+ @include gl-text-black-normal;
78
+ }
75
79
  }
76
80
 
77
81
  &.notification {
@@ -6,6 +6,12 @@ import {
6
6
  } from '../../../utils/charts/mock_data';
7
7
  import { toolbox } from '../../../utils/charts/story_config';
8
8
  import { columnOptions } from '../../../utils/constants';
9
+ import {
10
+ DATA_VIZ_ORANGE_600,
11
+ DATA_VIZ_AQUA_500,
12
+ DATA_VIZ_GREEN_600,
13
+ DATA_VIZ_MAGENTA_500,
14
+ } from '../../../../dist/tokens/js/tokens';
9
15
  import readme from './stacked_column.md';
10
16
 
11
17
  const template = `
@@ -21,6 +27,7 @@ const template = `
21
27
  :secondary-data="secondaryData"
22
28
  :secondary-data-title="secondaryDataTitle"
23
29
  :height="height"
30
+ :custom-palette="customPalette"
24
31
  />
25
32
  `;
26
33
 
@@ -38,6 +45,7 @@ const generateProps = ({
38
45
  secondaryData = [],
39
46
  secondaryDataTitle = '',
40
47
  height = null,
48
+ customPalette,
41
49
  } = {}) => ({
42
50
  bars,
43
51
  lines,
@@ -50,6 +58,7 @@ const generateProps = ({
50
58
  secondaryDataTitle,
51
59
  secondaryData,
52
60
  height,
61
+ customPalette,
53
62
  });
54
63
 
55
64
  const Template = (args, { argTypes }) => ({
@@ -103,6 +112,11 @@ SecondaryYAxisLine.args = generateProps({
103
112
  secondaryDataTitle: mockSecondaryDataTitle,
104
113
  });
105
114
 
115
+ export const WithCustomColorPalette = Template.bind({});
116
+ WithCustomColorPalette.args = generateProps({
117
+ customPalette: [DATA_VIZ_ORANGE_600, DATA_VIZ_AQUA_500, DATA_VIZ_GREEN_600, DATA_VIZ_MAGENTA_500],
118
+ });
119
+
106
120
  export default {
107
121
  title: 'charts/stacked-column-chart',
108
122
  component: GlStackedColumnChart,
@@ -3336,6 +3336,18 @@ $gl-animate-skeleton-loader-max-width: 64 * $grid-size;
3336
3336
  }
3337
3337
  }
3338
3338
 
3339
+ .gl-lg-display-grid {
3340
+ @include gl-media-breakpoint-up(lg) {
3341
+ display: grid;
3342
+ }
3343
+ }
3344
+
3345
+ .gl-lg-display-grid\! {
3346
+ @include gl-media-breakpoint-up(lg) {
3347
+ display: grid !important;
3348
+ }
3349
+ }
3350
+
3339
3351
  .gl-sm-display-table-cell {
3340
3352
  @include gl-media-breakpoint-up(sm) {
3341
3353
  display: table-cell;
@@ -163,6 +163,12 @@
163
163
  }
164
164
  }
165
165
 
166
+ @mixin gl-lg-display-grid {
167
+ @include gl-media-breakpoint-up(lg) {
168
+ display: grid;
169
+ }
170
+ }
171
+
166
172
  @mixin gl-sm-display-table-cell {
167
173
  @include gl-media-breakpoint-up(sm) {
168
174
  @include gl-display-table-cell;