@gitlab/ui 117.0.2 → 117.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "117.0.2",
3
+ "version": "117.1.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -70,7 +70,7 @@
70
70
  "dependencies": {
71
71
  "@floating-ui/dom": "1.7.3",
72
72
  "echarts": "^5.6.0",
73
- "gridstack": "^12.2.2",
73
+ "gridstack": "^12.3.0",
74
74
  "iframe-resizer": "^4.4.5",
75
75
  "lodash": "^4.17.21",
76
76
  "popper.js": "^1.16.1",
@@ -73,12 +73,17 @@ export default {
73
73
  required: false,
74
74
  },
75
75
  },
76
- render(createElement, { props, slots }) {
76
+ render(createElement, { props, slots, data }) {
77
77
  const slotIsSet = () => slots().default;
78
78
 
79
79
  const propValueOrDefault = (name, defaultValue) =>
80
80
  props[name] !== null ? props[name] : defaultValue;
81
81
 
82
+ const inheritedClasses =
83
+ data.class || // Vue 3
84
+ data.attrs?.class || // Vue 2
85
+ '';
86
+
82
87
  const width = () => {
83
88
  if (slotIsSet()) {
84
89
  return propValueOrDefault('width', DEFAULT_SVG_WIDTH);
@@ -236,7 +241,8 @@ export default {
236
241
  return createElement(
237
242
  'div',
238
243
  {
239
- class: 'gl-skeleton-loader-default-container gl-max-w-full',
244
+ staticClass: data.staticClass, // Vue 2
245
+ class: ['gl-skeleton-loader-default-container gl-max-w-full', inheritedClasses],
240
246
  style: {
241
247
  width: props.width !== null ? `${props.width}px` : null,
242
248
  height: props.height !== null ? `${props.height}px` : null,