@gitlab/ui 118.1.0 → 118.1.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": "118.1.
|
|
3
|
+
"version": "118.1.1",
|
|
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.3.
|
|
73
|
+
"gridstack": "^12.3.3",
|
|
74
74
|
"iframe-resizer": "^4.4.5",
|
|
75
75
|
"lodash": "^4.17.21",
|
|
76
76
|
"popper.js": "^1.16.1",
|
|
@@ -95,10 +95,10 @@
|
|
|
95
95
|
"rollup-plugin-vue/@vue/component-compiler/postcss-modules-sync/generic-names/loader-utils": "3.3.1"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
98
|
-
"@babel/core": "^7.28.
|
|
98
|
+
"@babel/core": "^7.28.3",
|
|
99
99
|
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
|
|
100
100
|
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
|
|
101
|
-
"@babel/preset-env": "^7.28.
|
|
101
|
+
"@babel/preset-env": "^7.28.3",
|
|
102
102
|
"@babel/preset-react": "^7.27.1",
|
|
103
103
|
"@cypress/grep": "^4.1.1",
|
|
104
104
|
"@gitlab/fonts": "^1.3.0",
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
"cypress-real-events": "^1.14.0",
|
|
139
139
|
"dompurify": "^3.1.2",
|
|
140
140
|
"emoji-regex": "^10.4.0",
|
|
141
|
-
"esbuild": "^0.25.
|
|
141
|
+
"esbuild": "^0.25.9",
|
|
142
142
|
"gitlab-api-async-iterator": "^1.3.1",
|
|
143
143
|
"glob": "11.0.3",
|
|
144
144
|
"globby": "^14.1.0",
|
|
@@ -15,6 +15,19 @@ export default {
|
|
|
15
15
|
required: false,
|
|
16
16
|
default: null,
|
|
17
17
|
},
|
|
18
|
+
/**
|
|
19
|
+
* The header tag used in the empty state component (h1/h2/h3/h4/h5/h6).
|
|
20
|
+
* For accessibility this should be set to an appropriate value in the context where the component is used.
|
|
21
|
+
* Defaults to `h2`
|
|
22
|
+
*/
|
|
23
|
+
headerLevel: {
|
|
24
|
+
type: Number,
|
|
25
|
+
required: false,
|
|
26
|
+
default: 2,
|
|
27
|
+
validator(value) {
|
|
28
|
+
return value > 0 && value <= 6;
|
|
29
|
+
},
|
|
30
|
+
},
|
|
18
31
|
/**
|
|
19
32
|
* The illustration's URL.
|
|
20
33
|
*/
|
|
@@ -94,6 +107,10 @@ export default {
|
|
|
94
107
|
},
|
|
95
108
|
},
|
|
96
109
|
computed: {
|
|
110
|
+
headerComponent() {
|
|
111
|
+
const level = this.headerLevel;
|
|
112
|
+
return `h${level}`;
|
|
113
|
+
},
|
|
97
114
|
height() {
|
|
98
115
|
return this.shouldPreventImageReflow ? this.svgHeight : null;
|
|
99
116
|
},
|
|
@@ -141,12 +158,13 @@ export default {
|
|
|
141
158
|
Overrides the `title` prop.
|
|
142
159
|
-->
|
|
143
160
|
<slot ref="title" name="title">
|
|
144
|
-
<
|
|
161
|
+
<component
|
|
162
|
+
:is="headerComponent"
|
|
145
163
|
class="gl-mb-0 gl-mt-0 gl-text-size-h-display gl-leading-36"
|
|
146
164
|
:class="compact ? 'h5' : 'h4'"
|
|
147
165
|
>
|
|
148
166
|
{{ title }}
|
|
149
|
-
</
|
|
167
|
+
</component>
|
|
150
168
|
</slot>
|
|
151
169
|
<p
|
|
152
170
|
v-if="description || $scopedSlots.description"
|