@gitlab/ui 32.33.0 → 32.36.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 (29) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/components/base/filtered_search/filtered_search_suggestion_list.js +7 -2
  3. package/dist/components/charts/area/area.js +3 -0
  4. package/dist/components/charts/bar/bar.js +2 -2
  5. package/dist/components/charts/chart/chart.js +20 -21
  6. package/dist/components/charts/legend/legend.js +1 -1
  7. package/dist/components/charts/tooltip/tooltip.js +1 -1
  8. package/dist/utility_classes.css +1 -1
  9. package/dist/utility_classes.css.map +1 -1
  10. package/dist/utils/charts/config.js +4 -3
  11. package/dist/utils/charts/mock_data.js +6 -3
  12. package/dist/utils/charts/theme.js +15 -9
  13. package/package.json +3 -3
  14. package/src/components/base/filtered_search/filtered_search_suggestion_list.spec.js +15 -8
  15. package/src/components/base/filtered_search/filtered_search_suggestion_list.vue +11 -2
  16. package/src/components/charts/area/area.vue +3 -0
  17. package/src/components/charts/bar/__snapshots__/bar.spec.js.snap +2 -2
  18. package/src/components/charts/bar/bar.vue +2 -2
  19. package/src/components/charts/chart/chart.spec.js +3 -1
  20. package/src/components/charts/chart/chart.vue +22 -20
  21. package/src/components/charts/column/__snapshots__/column_chart.spec.js.snap +6 -6
  22. package/src/components/charts/legend/legend.vue +1 -1
  23. package/src/components/charts/stacked_column/__snapshots__/stacked_column.spec.js.snap +26 -26
  24. package/src/components/charts/tooltip/tooltip.vue +1 -1
  25. package/src/scss/utilities.scss +24 -0
  26. package/src/scss/utility-mixins/sizing.scss +12 -0
  27. package/src/utils/charts/config.js +3 -2
  28. package/src/utils/charts/mock_data.js +5 -2
  29. package/src/utils/charts/theme.js +14 -9
@@ -105,15 +105,14 @@ const axes = {
105
105
  margin: 8,
106
106
  show: true,
107
107
  color: gray600,
108
- textStyle: {
109
- color: gray600,
110
- },
108
+ hideOverlap: true,
111
109
  },
112
110
  axisLine: {
113
111
  show: false,
114
112
  },
115
113
  axisPointer: {
116
114
  lineStyle: {
115
+ type: 'solid',
117
116
  color: gray600,
118
117
  },
119
118
  label: {
@@ -175,6 +174,7 @@ const createTheme = (options = {}) => ({
175
174
  dataZoom: {
176
175
  borderColor: 'transparent',
177
176
  filterMode: 'none',
177
+ brushSelect: false,
178
178
  dataBackground: {
179
179
  lineStyle: {
180
180
  width: 2,
@@ -184,7 +184,7 @@ const createTheme = (options = {}) => ({
184
184
  // render unfilled zoom-graph if the series is a line chart without area styles
185
185
  // more details: https://gitlab.com/gitlab-org/gitlab-ui/-/merge_requests/2364#note_666637306
186
186
  areaStyle: isLineChartWithoutArea(options)
187
- ? null
187
+ ? {} // Use empty object instead of null, see https://gitlab.com/gitlab-org/gitlab-ui/-/merge_requests/2185#note_707711029 for more context
188
188
  : {
189
189
  color: gray50,
190
190
  opacity: 1,
@@ -192,7 +192,10 @@ const createTheme = (options = {}) => ({
192
192
  },
193
193
  fillerColor: hexToRgba(gray200, 0.23),
194
194
  handleIcon: scrollHandleSvgPath,
195
- handleColor: gray500,
195
+ handleStyle: {
196
+ borderColor: 'transparent',
197
+ color: gray500,
198
+ },
196
199
  handleSize: '50%',
197
200
  labelFormatter: () => null,
198
201
  textStyle: {
@@ -203,14 +206,16 @@ const createTheme = (options = {}) => ({
203
206
  top: '-5',
204
207
  left: 'center',
205
208
  itemSize: 14,
206
- iconStyle: {
207
- color: gray200,
208
- borderWidth: 0,
209
- emphasis: {
209
+ emphasis: {
210
+ iconStyle: {
210
211
  borderWidth: 0,
211
212
  color: gray700,
212
213
  },
213
214
  },
215
+ iconStyle: {
216
+ color: gray200,
217
+ borderWidth: 0,
218
+ },
214
219
  itemGap: 8,
215
220
  feature: {
216
221
  dataZoom: {