@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.
|
@@ -73,12 +73,18 @@ var script = {
|
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
render(createElement, _ref) {
|
|
76
|
+
var _data$attrs;
|
|
76
77
|
let {
|
|
77
78
|
props,
|
|
78
|
-
slots
|
|
79
|
+
slots,
|
|
80
|
+
data
|
|
79
81
|
} = _ref;
|
|
80
82
|
const slotIsSet = () => slots().default;
|
|
81
83
|
const propValueOrDefault = (name, defaultValue) => props[name] !== null ? props[name] : defaultValue;
|
|
84
|
+
const inheritedClasses = data.class || (// Vue 3
|
|
85
|
+
(_data$attrs = data.attrs) === null || _data$attrs === void 0 ? void 0 : _data$attrs.class) ||
|
|
86
|
+
// Vue 2
|
|
87
|
+
'';
|
|
82
88
|
const width = () => {
|
|
83
89
|
if (slotIsSet()) {
|
|
84
90
|
return propValueOrDefault('width', DEFAULT_SVG_WIDTH);
|
|
@@ -178,7 +184,9 @@ var script = {
|
|
|
178
184
|
return svg;
|
|
179
185
|
}
|
|
180
186
|
return createElement('div', {
|
|
181
|
-
|
|
187
|
+
staticClass: data.staticClass,
|
|
188
|
+
// Vue 2
|
|
189
|
+
class: ['gl-skeleton-loader-default-container gl-max-w-full', inheritedClasses],
|
|
182
190
|
style: {
|
|
183
191
|
width: props.width !== null ? `${props.width}px` : null,
|
|
184
192
|
height: props.height !== null ? `${props.height}px` : null
|