@gitlab/ui 122.5.0 → 122.6.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/dist/components/dashboards/dashboard_panel/dashboard_panel.js +12 -3
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/tailwind.css.map +1 -1
- package/dist/tokens/build/js/tokens.dark.js +33 -1
- package/dist/tokens/build/js/tokens.js +33 -1
- package/dist/tokens/css/tokens.css +32 -0
- package/dist/tokens/css/tokens.dark.css +32 -0
- package/dist/tokens/docs/tokens-tailwind-docs.dark.json +802 -0
- package/dist/tokens/docs/tokens-tailwind-docs.json +802 -0
- package/dist/tokens/figma/constants.tokens.json +226 -0
- package/dist/tokens/js/tokens.dark.js +32 -0
- package/dist/tokens/js/tokens.js +32 -0
- package/dist/tokens/json/tokens.dark.json +770 -0
- package/dist/tokens/json/tokens.json +770 -0
- package/dist/tokens/scss/_tokens.dark.scss +32 -0
- package/dist/tokens/scss/_tokens.scss +32 -0
- package/dist/tokens/scss/_tokens_custom_properties.scss +32 -0
- package/dist/tokens/tailwind/tokens.cjs +2 -0
- package/package.json +1 -1
- package/src/components/base/banner/banner.scss +1 -1
- package/src/components/dashboards/dashboard_panel/dashboard_panel.vue +33 -10
- package/src/scss/variables.scss +0 -29
- package/src/tokens/build/css/tokens.css +32 -0
- package/src/tokens/build/css/tokens.dark.css +32 -0
- package/src/tokens/build/docs/tokens-tailwind-docs.dark.json +802 -0
- package/src/tokens/build/docs/tokens-tailwind-docs.json +802 -0
- package/src/tokens/build/figma/constants.tokens.json +226 -0
- package/src/tokens/build/js/tokens.dark.js +32 -0
- package/src/tokens/build/js/tokens.js +32 -0
- package/src/tokens/build/json/tokens.dark.json +770 -0
- package/src/tokens/build/json/tokens.json +770 -0
- package/src/tokens/build/scss/_tokens.dark.scss +32 -0
- package/src/tokens/build/scss/_tokens.scss +32 -0
- package/src/tokens/build/scss/_tokens_custom_properties.scss +32 -0
- package/src/tokens/build/tailwind/tokens.cjs +35 -0
- package/src/tokens/constant/spacing_scale.tokens.json +228 -0
- package/tailwind.defaults.js +1 -38
|
@@ -71,12 +71,15 @@ var script = {
|
|
|
71
71
|
},
|
|
72
72
|
/**
|
|
73
73
|
* Configuration object for the title popover. Expected structure:
|
|
74
|
+
* **Deprecated:** Use slots `#info-popover-content` and `#info-popover-title` instead.
|
|
74
75
|
*
|
|
75
76
|
* - `description`: The popover text content with interpolation placeholders.
|
|
76
77
|
* Uses `%{linkStart}` and `%{linkEnd}` as markers for where a link should be inserted.
|
|
77
78
|
*
|
|
78
79
|
* - `descriptionLink`: The optional URL that will be used for the link portion
|
|
79
80
|
* of the description text between the linkStart and linkEnd markers.
|
|
81
|
+
*
|
|
82
|
+
* @deprecated Use slots `#info-popover-content` and `#info-popover-title` instead.
|
|
80
83
|
*/
|
|
81
84
|
titlePopover: {
|
|
82
85
|
type: Object,
|
|
@@ -151,9 +154,15 @@ var script = {
|
|
|
151
154
|
hasTitle() {
|
|
152
155
|
return Boolean(this.title);
|
|
153
156
|
},
|
|
157
|
+
hasInfoPopoverContentSlot() {
|
|
158
|
+
return Boolean(this.$scopedSlots['info-popover-content']);
|
|
159
|
+
},
|
|
160
|
+
hasInfoPopoverTitleSlot() {
|
|
161
|
+
return Boolean(this.$scopedSlots['info-popover-title']);
|
|
162
|
+
},
|
|
154
163
|
hasTitlePopover() {
|
|
155
164
|
var _this$titlePopover;
|
|
156
|
-
return Boolean((_this$titlePopover = this.titlePopover) === null || _this$titlePopover === void 0 ? void 0 : _this$titlePopover.description);
|
|
165
|
+
return Boolean((_this$titlePopover = this.titlePopover) === null || _this$titlePopover === void 0 ? void 0 : _this$titlePopover.description) || this.hasInfoPopoverContentSlot || this.hasInfoPopoverTitleSlot;
|
|
157
166
|
},
|
|
158
167
|
hasTitlePopoverLink() {
|
|
159
168
|
var _this$titlePopover2;
|
|
@@ -173,9 +182,9 @@ var script = {
|
|
|
173
182
|
const __vue_script__ = script;
|
|
174
183
|
|
|
175
184
|
/* template */
|
|
176
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"gl-border gl-h-full !gl-overflow-visible gl-rounded-lg gl-bg-white gl-p-5",class:_vm.containerClasses,attrs:{"id":_vm.panelId}},[_c('div',{staticClass:"gl-flex gl-h-full gl-flex-col"},[_c('div',{staticClass:"gl-flex gl-items-start gl-justify-between",attrs:{"data-testid":"panel-title"}},[_c('div',{staticClass:"gl-flex gl-items-center gl-overflow-hidden gl-pb-3"},[(_vm.hasTitleIcon)?_c('gl-icon',{staticClass:"gl-mr-2",class:_vm.titleIconClass,attrs:{"name":_vm.titleIcon,"data-testid":"panel-title-icon"}}):_vm._e(),_vm._v(" "),(_vm.hasTitle)?_c('gl-truncate',{staticClass:"gl-font-bold gl-text-default",attrs:{"text":_vm.title,"with-tooltip":""}}):_vm._e(),_vm._v(" "),(_vm.hasTitlePopover)?[_c('gl-icon',{staticClass:"gl-ml-2",attrs:{"id":_vm.titlePopoverId,"data-testid":"panel-title-popover-icon","name":"information-o","variant":"info"}}),_vm._v(" "),_c('gl-popover',{attrs:{"data-testid":"panel-title-popover","boundary":"viewport","target":_vm.titlePopoverId}},[(_vm.hasTitlePopoverLink)?_c('gl-sprintf',{attrs:{"message":_vm.titlePopover.description},scopedSlots:_vm._u([{key:"link",fn:function(ref){
|
|
185
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"gl-border gl-h-full !gl-overflow-visible gl-rounded-lg gl-bg-white gl-p-5",class:_vm.containerClasses,attrs:{"id":_vm.panelId}},[_c('div',{staticClass:"gl-flex gl-h-full gl-flex-col"},[_c('div',{staticClass:"gl-flex gl-items-start gl-justify-between",attrs:{"data-testid":"panel-title"}},[_c('div',{staticClass:"gl-flex gl-items-center gl-overflow-hidden gl-pb-3"},[(_vm.hasTitleIcon)?_c('gl-icon',{staticClass:"gl-mr-2",class:_vm.titleIconClass,attrs:{"name":_vm.titleIcon,"data-testid":"panel-title-icon"}}):_vm._e(),_vm._v(" "),(_vm.hasTitle)?_c('gl-truncate',{staticClass:"gl-font-bold gl-text-default",attrs:{"text":_vm.title,"with-tooltip":""}}):_vm._e(),_vm._v(" "),(_vm.hasTitlePopover)?[_c('gl-icon',{staticClass:"gl-ml-2",attrs:{"id":_vm.titlePopoverId,"data-testid":"panel-title-popover-icon","name":"information-o","variant":"info"}}),_vm._v(" "),_c('gl-popover',{attrs:{"data-testid":"panel-title-popover","boundary":"viewport","target":_vm.titlePopoverId},scopedSlots:_vm._u([(_vm.hasInfoPopoverTitleSlot)?{key:"title",fn:function(){return [_vm._t("info-popover-title")]},proxy:true}:null],null,true)},[_vm._v(" "),(_vm.hasInfoPopoverContentSlot)?[_vm._t("info-popover-content")]:_vm._e(),_vm._v(" "),(!_vm.hasInfoPopoverContentSlot)?[(_vm.hasTitlePopoverLink)?_c('gl-sprintf',{attrs:{"message":_vm.titlePopover.description},scopedSlots:_vm._u([{key:"link",fn:function(ref){
|
|
177
186
|
var content = ref.content;
|
|
178
|
-
return [_c('gl-link',{staticClass:"gl-text-sm",attrs:{"href":_vm.titlePopover.descriptionLink}},[_vm._v(_vm._s(content))])]}}],null,false,3051540671)}):[_vm._v("
|
|
187
|
+
return [_c('gl-link',{staticClass:"gl-text-sm",attrs:{"href":_vm.titlePopover.descriptionLink}},[_vm._v(_vm._s(content))])]}}],null,false,3051540671)}):[_vm._v(" "+_vm._s(_vm.titlePopover.description)+" ")]]:_vm._e()],2)]:_vm._e()],2),_vm._v(" "),(_vm.shouldShowActions || _vm.$scopedSlots.filters)?_c('div',{staticClass:"gl-flex gl-flex-col gl-items-end gl-gap-2",attrs:{"data-testid":"panel-actions-filters-container"}},[(_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","size":"small"},on:{"shown":function($event){return _vm.$emit('dropdownOpen')},"hidden":function($event){return _vm.$emit('dropdownClosed')}},scopedSlots:_vm._u([{key:"list-item",fn:function(ref){
|
|
179
188
|
var item = ref.item;
|
|
180
189
|
return [_c('span',[_vm._v(_vm._s(item.text))])]}}],null,false,3418607560)}):_vm._e(),_vm._v(" "),(_vm.$scopedSlots.filters)?_c('div',{staticClass:"gl-flex gl-items-center gl-justify-end gl-pb-2",attrs:{"data-testid":"panel-filters-container"}},[_vm._t("filters")],2):_vm._e()],1):_vm._e()]),_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)])};
|
|
181
190
|
var __vue_staticRenderFns__ = [];
|