@gitlab/ui 42.23.0 → 42.24.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": "42.23.0",
3
+ "version": "42.24.1",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -57,7 +57,7 @@
57
57
  "dependencies": {
58
58
  "@popperjs/core": "^2.11.2",
59
59
  "bootstrap-vue": "2.20.1",
60
- "dompurify": "^2.3.9",
60
+ "dompurify": "^2.3.10",
61
61
  "echarts": "^5.3.2",
62
62
  "iframe-resizer": "^4.3.2",
63
63
  "lodash": "^4.17.20",
@@ -5,6 +5,12 @@ import { defaultHeight, defaultWidth, validRenderers } from '../../../utils/char
5
5
  import createTheme, { themeName } from '../../../utils/charts/theme';
6
6
  import { GlResizeObserverDirective } from '../../../directives/resize_observer/resize_observer';
7
7
 
8
+ /**
9
+ * Allowed values by eCharts
10
+ * https://echarts.apache.org/en/api.html#echartsInstance.resize
11
+ */
12
+ const sizeValidator = (size) => Number.isFinite(size) || size === 'auto' || size == null;
13
+
8
14
  export default {
9
15
  directives: {
10
16
  resizeObserver: GlResizeObserverDirective,
@@ -25,14 +31,16 @@ export default {
25
31
  default: false,
26
32
  },
27
33
  width: {
28
- type: Number,
34
+ type: [Number, String],
29
35
  required: false,
30
36
  default: null,
37
+ validator: sizeValidator,
31
38
  },
32
39
  height: {
33
- type: Number,
40
+ type: [Number, String],
34
41
  required: false,
35
42
  default: null,
43
+ validator: sizeValidator,
36
44
  },
37
45
  groupId: {
38
46
  type: String,
@@ -4795,6 +4795,14 @@
4795
4795
  min-width: fit-content !important;
4796
4796
  }
4797
4797
 
4798
+ .gl-min-h-0 {
4799
+ min-height: 0;
4800
+ }
4801
+
4802
+ .gl-min-h-0\! {
4803
+ min-height: 0 !important;
4804
+ }
4805
+
4798
4806
  .gl-min-h-6 {
4799
4807
  min-height: $gl-spacing-scale-6;
4800
4808
  }
@@ -333,6 +333,10 @@
333
333
  min-width: fit-content;
334
334
  }
335
335
 
336
+ @mixin gl-min-h-0 {
337
+ min-height: 0;
338
+ }
339
+
336
340
  @mixin gl-min-h-6 {
337
341
  min-height: $gl-spacing-scale-6;
338
342
  }