@gitlab/ui 111.0.0 → 111.1.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 +7 -0
- package/dist/components/charts/discrete_scatter/discrete_scatter.js +1 -2
- package/dist/components/charts/heatmap/heatmap.js +4 -4
- package/dist/components/charts/legend/legend.js +1 -2
- package/dist/components/charts/line/line.js +1 -2
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/tokens/build/js/tokens.dark.js +8 -1
- package/dist/tokens/build/js/tokens.js +8 -1
- package/dist/tokens/css/tokens.css +7 -0
- package/dist/tokens/css/tokens.dark.css +7 -0
- package/dist/tokens/js/tokens.dark.js +7 -0
- package/dist/tokens/js/tokens.js +7 -0
- package/dist/tokens/json/tokens.dark.json +171 -0
- package/dist/tokens/json/tokens.json +171 -0
- package/dist/tokens/scss/_tokens.dark.scss +7 -0
- package/dist/tokens/scss/_tokens.scss +7 -0
- package/dist/tokens/scss/_tokens_custom_properties.scss +7 -0
- package/dist/utils/charts/theme.js +31 -29
- package/package.json +1 -1
- package/src/components/charts/discrete_scatter/discrete_scatter.vue +1 -2
- package/src/components/charts/heatmap/heatmap.vue +4 -4
- package/src/components/charts/legend/legend.vue +1 -2
- package/src/components/charts/line/line.vue +1 -2
- package/src/tokens/build/css/tokens.css +7 -0
- package/src/tokens/build/css/tokens.dark.css +7 -0
- package/src/tokens/build/js/tokens.dark.js +7 -0
- package/src/tokens/build/js/tokens.js +7 -0
- package/src/tokens/build/json/tokens.dark.json +171 -0
- package/src/tokens/build/json/tokens.json +171 -0
- package/src/tokens/build/scss/_tokens.dark.scss +7 -0
- package/src/tokens/build/scss/_tokens.scss +7 -0
- package/src/tokens/build/scss/_tokens_custom_properties.scss +7 -0
- package/src/tokens/contextual/chart.tokens.json +68 -0
- package/src/utils/charts/theme.js +150 -153
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [111.1.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v111.0.0...v111.1.0) (2025-03-13)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **DesignTokens:** define chart contextual design tokens ([57eafc4](https://gitlab.com/gitlab-org/gitlab-ui/commit/57eafc435b47fdec3a57ed8f2e0a6be4ac585ca3))
|
|
7
|
+
|
|
1
8
|
# [111.0.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v110.1.0...v111.0.0) (2025-03-12)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import merge from 'lodash/merge';
|
|
2
|
-
import { GRAY_200 } from '../../../tokens/build/js/tokens';
|
|
3
2
|
import { defaultChartOptions, dataZoomAdjustments, mergeSeriesToOptions } from '../../../utils/charts/config';
|
|
4
3
|
import { colorFromDefaultPalette } from '../../../utils/charts/theme';
|
|
5
4
|
import { HEIGHT_AUTO_CLASSES } from '../../../utils/charts/constants';
|
|
@@ -98,7 +97,7 @@ var script = {
|
|
|
98
97
|
alignWithLabel: true,
|
|
99
98
|
show: true,
|
|
100
99
|
lineStyle: {
|
|
101
|
-
color:
|
|
100
|
+
color: 'var(--gl-chart-axis-line-color)'
|
|
102
101
|
}
|
|
103
102
|
},
|
|
104
103
|
axisLabel: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import merge from 'lodash/merge';
|
|
2
|
-
import {
|
|
2
|
+
import { GL_COLOR_NEUTRAL_100, GL_COLOR_NEUTRAL_0 } from '../../../tokens/build/js/tokens';
|
|
3
3
|
import { getTooltipTitle, getTooltipContent } from '../../../utils/charts/config';
|
|
4
4
|
import { HEIGHT_AUTO_CLASSES } from '../../../utils/charts/constants';
|
|
5
5
|
import { heatmapHues } from '../../../utils/charts/theme';
|
|
@@ -139,7 +139,7 @@ var script = {
|
|
|
139
139
|
right: '32px',
|
|
140
140
|
show: true,
|
|
141
141
|
borderWidth: 0,
|
|
142
|
-
backgroundColor:
|
|
142
|
+
backgroundColor: GL_COLOR_NEUTRAL_100
|
|
143
143
|
},
|
|
144
144
|
visualMap: {
|
|
145
145
|
min,
|
|
@@ -163,7 +163,7 @@ var script = {
|
|
|
163
163
|
show: true,
|
|
164
164
|
interval: 0,
|
|
165
165
|
lineStyle: {
|
|
166
|
-
color:
|
|
166
|
+
color: GL_COLOR_NEUTRAL_0,
|
|
167
167
|
width: 2
|
|
168
168
|
}
|
|
169
169
|
},
|
|
@@ -190,7 +190,7 @@ var script = {
|
|
|
190
190
|
show: true,
|
|
191
191
|
interval: 0,
|
|
192
192
|
lineStyle: {
|
|
193
|
-
color:
|
|
193
|
+
color: GL_COLOR_NEUTRAL_0,
|
|
194
194
|
width: 2
|
|
195
195
|
}
|
|
196
196
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as echarts from 'echarts';
|
|
2
|
-
import { GRAY_200 } from '../../../tokens/build/js/tokens';
|
|
3
2
|
import { defaultFontSize } from '../../../utils/charts/config';
|
|
4
3
|
import { LEGEND_AVERAGE_TEXT, LEGEND_CURRENT_TEXT, LEGEND_MIN_TEXT, LEGEND_MAX_TEXT, LEGEND_LAYOUT_INLINE, LEGEND_LAYOUT_TABLE } from '../../../utils/charts/constants';
|
|
5
4
|
import { engineeringNotation, average } from '../../../utils/number_utils';
|
|
@@ -155,7 +154,7 @@ var script = {
|
|
|
155
154
|
});
|
|
156
155
|
},
|
|
157
156
|
getColor(color, key) {
|
|
158
|
-
return this.disabledSeries[key] ?
|
|
157
|
+
return this.disabledSeries[key] ? 'var(--gl-chart-axis-line-color)' : color;
|
|
159
158
|
},
|
|
160
159
|
suppressLastActiveSeriesLabelToggle(_ref2) {
|
|
161
160
|
let {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import merge from 'lodash/merge';
|
|
2
|
-
import { GRAY_200 } from '../../../tokens/build/js/tokens';
|
|
3
2
|
import { symbolSize, lineStyle, getThresholdConfig, generateAnnotationSeries, defaultChartOptions, dataZoomAdjustments, mergeSeriesToOptions, mergeAnnotationAxisToOptions, grid } from '../../../utils/charts/config';
|
|
4
3
|
import { LEGEND_AVERAGE_TEXT, LEGEND_MAX_TEXT, LEGEND_MIN_TEXT, LEGEND_CURRENT_TEXT, LEGEND_LAYOUT_INLINE, LEGEND_LAYOUT_TABLE, HEIGHT_AUTO_CLASSES } from '../../../utils/charts/constants';
|
|
5
4
|
import { colorFromDefaultPalette } from '../../../utils/charts/theme';
|
|
@@ -153,7 +152,7 @@ var script = {
|
|
|
153
152
|
alignWithLabel: true,
|
|
154
153
|
show: true,
|
|
155
154
|
lineStyle: {
|
|
156
|
-
color:
|
|
155
|
+
color: 'var(--gl-chart-axis-line-color)'
|
|
157
156
|
}
|
|
158
157
|
}
|
|
159
158
|
},
|