@gitlab/ui 41.6.0 → 41.8.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/CHANGELOG.md +26 -0
- package/dist/components/base/modal/modal.js +15 -1
- package/dist/components/base/tabs/tab/tab.js +10 -1
- package/dist/index.css.map +1 -1
- package/dist/utility_classes.css +1 -1
- package/dist/utility_classes.css.map +1 -1
- package/package.json +1 -1
- package/src/components/base/modal/modal.md +5 -1
- package/src/components/base/modal/modal.vue +24 -2
- package/src/components/base/tabs/tab/tab.spec.js +19 -9
- package/src/components/base/tabs/tab/tab.vue +9 -0
- package/src/components/base/tabs/tabs/tabs.stories.js +14 -0
- package/src/scss/utilities.scss +8 -0
- package/src/scss/utility-mixins/background.scss +10 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
+
# [41.8.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v41.7.1...v41.8.0) (2022-06-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **Tabs:** Use unique href for each tab ([171664d](https://gitlab.com/gitlab-org/gitlab-ui/commit/171664d2b5d74cc0bca174637705d89fc6197344))
|
|
7
|
+
|
|
8
|
+
## [41.7.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v41.7.0...v41.7.1) (2022-06-13)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **GlModal:** Re-add deprecated modal slots ([29b7ccf](https://gitlab.com/gitlab-org/gitlab-ui/commit/29b7ccf4623de391192bce75ad176d38e10de3f1))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Reverts
|
|
17
|
+
|
|
18
|
+
* **GlModal:** Remove deprecated slots modal-ok and modal-cancel ([1d2cc9e](https://gitlab.com/gitlab-org/gitlab-ui/commit/1d2cc9e06b5011cd4c8155b5b37db570f8a6b581)), closes [/gitlab.com/gitlab-org/gitlab/-/merge_requests/88974#note_988604141](https://gitlab.com//gitlab.com/gitlab-org/gitlab/-/merge_requests/88974/issues/note_988604141)
|
|
19
|
+
|
|
20
|
+
# [41.7.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v41.6.0...v41.7.0) (2022-06-13)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* Add gl-background-filter-blur class ([9f65dfb](https://gitlab.com/gitlab-org/gitlab-ui/commit/9f65dfb27fe55f75109d3863fc073e23195636c2))
|
|
26
|
+
|
|
1
27
|
# [41.6.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v41.5.0...v41.6.0) (2022-06-13)
|
|
2
28
|
|
|
3
29
|
|
|
@@ -82,6 +82,20 @@ var script = {
|
|
|
82
82
|
default: ''
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
|
+
computed: {
|
|
86
|
+
shouldRenderModalOk() {
|
|
87
|
+
return Boolean(this.$slots['modal-ok']);
|
|
88
|
+
},
|
|
89
|
+
|
|
90
|
+
shouldRenderModalCancel() {
|
|
91
|
+
return Boolean(this.$slots['modal-cancel']);
|
|
92
|
+
},
|
|
93
|
+
|
|
94
|
+
shouldRenderModalFooter() {
|
|
95
|
+
return Boolean(this.actionCancel || this.actionSecondary || this.actionPrimary || this.$slots['modal-footer']);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
},
|
|
85
99
|
|
|
86
100
|
mounted() {
|
|
87
101
|
if (!this.ariaLabel && !this.title) {
|
|
@@ -165,7 +179,7 @@ var script = {
|
|
|
165
179
|
const __vue_script__ = script;
|
|
166
180
|
|
|
167
181
|
/* template */
|
|
168
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-modal',_vm._g(_vm._b({ref:"modal",attrs:{"id":_vm.modalId,"title-tag":_vm.titleTag,"size":_vm.size,"visible":_vm.visible,"aria-label":_vm.ariaLabel || _vm.title,"lazy":"","modal-class":['gl-modal', _vm.modalClass]},on:{"shown":_vm.setFocus,"ok":_vm.primary,"cancel":_vm.canceled,"change":function($event){return _vm.$emit('change', $event)}},scopedSlots:_vm._u([{key:"default",fn:function(){return [_vm._t("default")]},proxy:true},{key:"modal-header",fn:function(){return [_vm._t("modal-header",[_c('h4',{staticClass:"modal-title"},[_vm._t("modal-title",[_vm._v(_vm._s(_vm.title))])],2)]),_vm._v(" "),_c('close-button',{ref:"close-button",attrs:{"label":_vm.dismissLabel},on:{"click":_vm.close}})]},proxy:true},{key:"modal-footer",fn:function(){return [_vm._t("modal-footer",[(_vm.actionCancel)?_c('gl-button',_vm._b({staticClass:"js-modal-action-cancel",on:{"click":_vm.cancel}},'gl-button',_vm.buttonBinding(_vm.actionCancel, 'actionCancel'),false),[_vm._v("\n "+_vm._s(_vm.actionCancel.text)+"\n ")]):_vm._e(),_vm._v(" "),(_vm.actionSecondary)?_c('gl-button',_vm._b({staticClass:"js-modal-action-secondary",on:{"click":_vm.secondary}},'gl-button',_vm.buttonBinding(_vm.actionSecondary, 'actionSecondary'),false),[_vm._v("\n "+_vm._s(_vm.actionSecondary.text)+"\n ")]):_vm._e(),_vm._v(" "),(_vm.actionPrimary)?_c('gl-button',_vm._b({staticClass:"js-modal-action-primary",on:{"click":_vm.ok}},'gl-button',_vm.buttonBinding(_vm.actionPrimary, 'actionPrimary'),false),[_vm._v("\n "+_vm._s(_vm.actionPrimary.text)+"\n ")]):_vm._e()])]},proxy:true}],null,true)},'b-modal',_vm.$attrs,false),_vm.$listeners))};
|
|
182
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-modal',_vm._g(_vm._b({ref:"modal",attrs:{"id":_vm.modalId,"title-tag":_vm.titleTag,"size":_vm.size,"visible":_vm.visible,"aria-label":_vm.ariaLabel || _vm.title,"lazy":"","modal-class":['gl-modal', _vm.modalClass]},on:{"shown":_vm.setFocus,"ok":_vm.primary,"cancel":_vm.canceled,"change":function($event){return _vm.$emit('change', $event)}},scopedSlots:_vm._u([{key:"default",fn:function(){return [_vm._t("default")]},proxy:true},{key:"modal-header",fn:function(){return [_vm._t("modal-header",[_c('h4',{staticClass:"modal-title"},[_vm._t("modal-title",[_vm._v(_vm._s(_vm.title))])],2)]),_vm._v(" "),_c('close-button',{ref:"close-button",attrs:{"label":_vm.dismissLabel},on:{"click":_vm.close}})]},proxy:true},(_vm.shouldRenderModalOk)?{key:"modal-ok",fn:function(){return [_vm._t("modal-ok")]},proxy:true}:null,(_vm.shouldRenderModalCancel)?{key:"modal-cancel",fn:function(){return [_vm._t("modal-cancel")]},proxy:true}:null,(_vm.shouldRenderModalFooter)?{key:"modal-footer",fn:function(){return [_vm._t("modal-footer",[(_vm.actionCancel)?_c('gl-button',_vm._b({staticClass:"js-modal-action-cancel",on:{"click":_vm.cancel}},'gl-button',_vm.buttonBinding(_vm.actionCancel, 'actionCancel'),false),[_vm._v("\n "+_vm._s(_vm.actionCancel.text)+"\n ")]):_vm._e(),_vm._v(" "),(_vm.actionSecondary)?_c('gl-button',_vm._b({staticClass:"js-modal-action-secondary",on:{"click":_vm.secondary}},'gl-button',_vm.buttonBinding(_vm.actionSecondary, 'actionSecondary'),false),[_vm._v("\n "+_vm._s(_vm.actionSecondary.text)+"\n ")]):_vm._e(),_vm._v(" "),(_vm.actionPrimary)?_c('gl-button',_vm._b({staticClass:"js-modal-action-primary",on:{"click":_vm.ok}},'gl-button',_vm.buttonBinding(_vm.actionPrimary, 'actionPrimary'),false),[_vm._v("\n "+_vm._s(_vm.actionPrimary.text)+"\n ")]):_vm._e()])]},proxy:true}:null],null,true)},'b-modal',_vm.$attrs,false),_vm.$listeners))};
|
|
169
183
|
var __vue_staticRenderFns__ = [];
|
|
170
184
|
|
|
171
185
|
/* style */
|
|
@@ -23,6 +23,15 @@ var script = {
|
|
|
23
23
|
type: String,
|
|
24
24
|
required: false,
|
|
25
25
|
default: null
|
|
26
|
+
},
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Provide an `href` for the tab, for example to associate the tab with the tab panel's ID
|
|
30
|
+
*/
|
|
31
|
+
href: {
|
|
32
|
+
type: String,
|
|
33
|
+
required: false,
|
|
34
|
+
default: '#'
|
|
26
35
|
}
|
|
27
36
|
},
|
|
28
37
|
computed: {
|
|
@@ -51,7 +60,7 @@ var script = {
|
|
|
51
60
|
const __vue_script__ = script;
|
|
52
61
|
|
|
53
62
|
/* template */
|
|
54
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-tab',_vm._g(_vm._b({attrs:{"title-link-class":_vm.linkClass,"query-param-value":_vm.queryParamValue},scopedSlots:_vm._u([_vm._l((Object.keys(_vm.$slots)),function(slot){return {key:slot,fn:function(){return [_vm._t(slot)]},proxy:true}})],null,true)},'b-tab',_vm.$attrs,false),_vm.$listeners))};
|
|
63
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-tab',_vm._g(_vm._b({attrs:{"title-link-class":_vm.linkClass,"query-param-value":_vm.queryParamValue,"title-link-attributes":{ href: _vm.href }},scopedSlots:_vm._u([_vm._l((Object.keys(_vm.$slots)),function(slot){return {key:slot,fn:function(){return [_vm._t(slot)]},proxy:true}})],null,true)},'b-tab',_vm.$attrs,false),_vm.$listeners))};
|
|
55
64
|
var __vue_staticRenderFns__ = [];
|
|
56
65
|
|
|
57
66
|
/* style */
|