@gitlab/ui 115.3.0 → 115.4.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.
@@ -26,6 +26,11 @@ var script = {
26
26
  required: false,
27
27
  default: ''
28
28
  },
29
+ bodyContentClass: {
30
+ type: String,
31
+ required: false,
32
+ default: ''
33
+ },
29
34
  borderColorClass: {
30
35
  type: String,
31
36
  required: false,
@@ -95,6 +100,9 @@ var script = {
95
100
  containerClasses() {
96
101
  return `${this.containerClass} ${this.borderClass}`;
97
102
  },
103
+ bodyClasses() {
104
+ return this.loading ? 'gl-flex gl-flex-wrap gl-content-center gl-text-center' : `gl-grow gl-overflow-y-auto gl-overflow-x-hidden ${this.bodyContentClass}`;
105
+ },
98
106
  hasTitleIcon() {
99
107
  return Boolean(this.titleIcon);
100
108
  },
@@ -127,7 +135,7 @@ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=
127
135
  var content = ref.content;
128
136
  return [_c('gl-link',{staticClass:"gl-text-sm",attrs:{"href":_vm.titlePopover.descriptionLink}},[_vm._v(_vm._s(content))])]}}],null,false,3051540671)}):[_vm._v("\n "+_vm._s(_vm.titlePopover.description)+"\n ")]],2)]:_vm._e()],2),_vm._v(" "),(_vm.shouldShowActions)?_c('gl-disclosure-dropdown',{attrs:{"items":_vm.actions,"icon":"ellipsis_v","toggle-text":_vm.actionsToggleText,"text-sr-only":"","no-caret":"","placement":"bottom-end","fluid-width":"","toggle-class":"gl-ml-1","category":"tertiary","positioning-strategy":"fixed"},on:{"shown":function($event){return _vm.$emit('dropdownOpen')},"hidden":function($event){return _vm.$emit('dropdownClosed')}},scopedSlots:_vm._u([{key:"list-item",fn:function(ref){
129
137
  var item = ref.item;
130
- return [_c('span',[_c('gl-icon',{attrs:{"name":item.icon}}),_vm._v(" "+_vm._s(item.text))],1)]}}],null,false,3632670457)}):_vm._e()],1),_vm._v(" "),_c('div',{staticClass:"gl-grow gl-overflow-y-auto gl-overflow-x-hidden",class:{ 'gl-flex gl-flex-wrap gl-content-center gl-text-center': _vm.loading }},[(_vm.loading)?[_c('gl-loading-icon',{staticClass:"gl-min-h-8 gl-w-full",attrs:{"size":"lg"}}),_vm._v(" "),(_vm.isLoadingDelayed)?_c('div',{staticClass:"gl-w-full gl-text-subtle",attrs:{"data-testId":"panel-loading-delayed-indicator"}},[_vm._v("\n "+_vm._s(_vm.loadingDelayedText)+"\n ")]):_vm._e()]:_vm._t("body")],2),_vm._v(" "),_vm._t("alert-message",null,{"panelId":_vm.panelId})],2)])};
138
+ return [_c('span',[_c('gl-icon',{attrs:{"name":item.icon}}),_vm._v(" "+_vm._s(item.text))],1)]}}],null,false,3632670457)}):_vm._e()],1),_vm._v(" "),_c('div',{class:_vm.bodyClasses},[(_vm.loading)?[_c('gl-loading-icon',{staticClass:"gl-min-h-8 gl-w-full",attrs:{"size":"lg"}}),_vm._v(" "),(_vm.isLoadingDelayed)?_c('div',{staticClass:"gl-w-full gl-text-subtle",attrs:{"data-testId":"panel-loading-delayed-indicator"}},[_vm._v("\n "+_vm._s(_vm.loadingDelayedText)+"\n ")]):_vm._e()]:_vm._t("body")],2),_vm._v(" "),_vm._t("alert-message",null,{"panelId":_vm.panelId})],2)])};
131
139
  var __vue_staticRenderFns__ = [];
132
140
 
133
141
  /* style */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "115.3.0",
3
+ "version": "115.4.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -92,7 +92,7 @@
92
92
  "jackspeak": "2.1.1",
93
93
  "postcss": "8.5.6",
94
94
  "json5": "2.2.3",
95
- "rollup-plugin-vue/@vue/component-compiler/postcss-modules-sync/generic-names/loader-utils": "1.4.2"
95
+ "rollup-plugin-vue/@vue/component-compiler/postcss-modules-sync/generic-names/loader-utils": "2.0.4"
96
96
  },
97
97
  "devDependencies": {
98
98
  "@babel/core": "^7.28.0",
@@ -26,6 +26,11 @@ export default {
26
26
  required: false,
27
27
  default: '',
28
28
  },
29
+ bodyContentClass: {
30
+ type: String,
31
+ required: false,
32
+ default: '',
33
+ },
29
34
  borderColorClass: {
30
35
  type: String,
31
36
  required: false,
@@ -95,6 +100,11 @@ export default {
95
100
  containerClasses() {
96
101
  return `${this.containerClass} ${this.borderClass}`;
97
102
  },
103
+ bodyClasses() {
104
+ return this.loading
105
+ ? 'gl-flex gl-flex-wrap gl-content-center gl-text-center'
106
+ : `gl-grow gl-overflow-y-auto gl-overflow-x-hidden ${this.bodyContentClass}`;
107
+ },
98
108
  hasTitleIcon() {
99
109
  return Boolean(this.titleIcon);
100
110
  },
@@ -188,10 +198,7 @@ export default {
188
198
  </template>
189
199
  </gl-disclosure-dropdown>
190
200
  </div>
191
- <div
192
- class="gl-grow gl-overflow-y-auto gl-overflow-x-hidden"
193
- :class="{ 'gl-flex gl-flex-wrap gl-content-center gl-text-center': loading }"
194
- >
201
+ <div :class="bodyClasses">
195
202
  <template v-if="loading">
196
203
  <gl-loading-icon size="lg" class="gl-min-h-8 gl-w-full" />
197
204
  <div