@gitlab/ui 42.20.0 → 42.21.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 +7 -0
- package/dist/components/base/alert/alert.js +1 -0
- package/dist/components/base/badge/badge.js +1 -0
- package/dist/components/base/button/button.js +2 -0
- package/dist/components/base/drawer/drawer.js +1 -0
- package/dist/components/base/dropdown/dropdown.js +1 -0
- package/dist/components/base/filtered_search/filtered_search_token_segment.js +1 -0
- package/dist/components/base/form/form_group/form_group.js +1 -0
- package/dist/components/base/modal/modal.js +4 -1
- package/dist/components/base/toggle/toggle.js +1 -0
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/package.json +2 -2
- package/src/components/base/alert/alert.vue +1 -0
- package/src/components/base/badge/badge.vue +1 -0
- package/src/components/base/button/button.vue +2 -0
- package/src/components/base/carousel/carousel.vue +1 -0
- package/src/components/base/carousel/carousel_slide.vue +1 -0
- package/src/components/base/drawer/drawer.vue +1 -0
- package/src/components/base/dropdown/dropdown.vue +1 -0
- package/src/components/base/filtered_search/filtered_search_token_segment.vue +1 -0
- package/src/components/base/form/form_group/form_group.vue +2 -0
- package/src/components/base/form/form_select/form_select.scss +1 -0
- package/src/components/base/form/form_select/form_select.vue +1 -0
- package/src/components/base/modal/modal.vue +3 -0
- package/src/components/base/tabs/tab/tab.vue +1 -0
- package/src/components/base/tabs/tabs/scrollable_tabs.vue +1 -0
- package/src/components/base/tabs/tabs/tabs.vue +1 -0
- package/src/components/base/toggle/toggle.vue +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitlab/ui",
|
|
3
|
-
"version": "42.
|
|
3
|
+
"version": "42.21.0",
|
|
4
4
|
"description": "GitLab UI Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"@babel/preset-env": "^7.10.2",
|
|
84
84
|
"@gitlab/eslint-plugin": "13.1.0",
|
|
85
85
|
"@gitlab/stylelint-config": "4.1.0",
|
|
86
|
-
"@gitlab/svgs": "2.
|
|
86
|
+
"@gitlab/svgs": "2.27.0",
|
|
87
87
|
"@rollup/plugin-commonjs": "^11.1.0",
|
|
88
88
|
"@rollup/plugin-node-resolve": "^7.1.3",
|
|
89
89
|
"@rollup/plugin-replace": "^2.3.2",
|
|
@@ -74,6 +74,7 @@ export default {
|
|
|
74
74
|
return this.icon !== '';
|
|
75
75
|
},
|
|
76
76
|
hasIconOnly() {
|
|
77
|
+
// eslint-disable-next-line @gitlab/vue-prefer-dollar-scopedslots
|
|
77
78
|
return Object.keys(this.$slots).length === 0 && this.hasIcon;
|
|
78
79
|
},
|
|
79
80
|
isButtonDisabled() {
|
|
@@ -111,6 +112,7 @@ export default {
|
|
|
111
112
|
},
|
|
112
113
|
},
|
|
113
114
|
mounted() {
|
|
115
|
+
// eslint-disable-next-line @gitlab/vue-prefer-dollar-scopedslots
|
|
114
116
|
if (!this.$slots.default && !this.$attrs['aria-label'] && !this.$props.label) {
|
|
115
117
|
logWarning('[gl-button]: Accessible name missing. Please add inner text or aria-label.');
|
|
116
118
|
}
|
|
@@ -10,6 +10,7 @@ export default {
|
|
|
10
10
|
</script>
|
|
11
11
|
<template>
|
|
12
12
|
<b-carousel v-bind="$attrs" v-on="$listeners">
|
|
13
|
+
<!-- eslint-disable-next-line @gitlab/vue-prefer-dollar-scopedslots -->
|
|
13
14
|
<template v-for="slot in Object.keys($slots)" #[slot]>
|
|
14
15
|
<slot :name="slot"></slot>
|
|
15
16
|
</template>
|
|
@@ -9,6 +9,7 @@ export default {
|
|
|
9
9
|
</script>
|
|
10
10
|
<template>
|
|
11
11
|
<b-carousel-slide v-bind="$attrs" v-on="$listeners">
|
|
12
|
+
<!-- eslint-disable-next-line @gitlab/vue-prefer-dollar-scopedslots -->
|
|
12
13
|
<template v-for="slot in Object.keys($slots)" #[slot]>
|
|
13
14
|
<slot :name="slot"></slot>
|
|
14
15
|
</template>
|
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
return defaultClass;
|
|
49
49
|
},
|
|
50
50
|
hasLabelDescription() {
|
|
51
|
+
// eslint-disable-next-line @gitlab/vue-prefer-dollar-scopedslots
|
|
51
52
|
return Boolean(this.labelDescription || this.$slots['label-description']);
|
|
52
53
|
},
|
|
53
54
|
},
|
|
@@ -67,6 +68,7 @@ export default {
|
|
|
67
68
|
</gl-form-text>
|
|
68
69
|
</template>
|
|
69
70
|
|
|
71
|
+
<!-- eslint-disable-next-line @gitlab/vue-prefer-dollar-scopedslots -->
|
|
70
72
|
<template v-for="slot in Object.keys($slots)" #[slot]>
|
|
71
73
|
<slot :name="slot"></slot>
|
|
72
74
|
</template>
|
|
@@ -10,6 +10,7 @@ export default {
|
|
|
10
10
|
</script>
|
|
11
11
|
<template>
|
|
12
12
|
<b-form-select class="gl-form-select" v-bind="$attrs" v-on="$listeners">
|
|
13
|
+
<!-- eslint-disable-next-line @gitlab/vue-prefer-dollar-scopedslots -->
|
|
13
14
|
<template v-for="slot in Object.keys($slots)" #[slot]>
|
|
14
15
|
<slot :name="slot"></slot>
|
|
15
16
|
</template>
|
|
@@ -88,9 +88,11 @@ export default {
|
|
|
88
88
|
},
|
|
89
89
|
computed: {
|
|
90
90
|
shouldRenderModalOk() {
|
|
91
|
+
// eslint-disable-next-line @gitlab/vue-prefer-dollar-scopedslots
|
|
91
92
|
return Boolean(this.$slots['modal-ok']);
|
|
92
93
|
},
|
|
93
94
|
shouldRenderModalCancel() {
|
|
95
|
+
// eslint-disable-next-line @gitlab/vue-prefer-dollar-scopedslots
|
|
94
96
|
return Boolean(this.$slots['modal-cancel']);
|
|
95
97
|
},
|
|
96
98
|
shouldRenderModalFooter() {
|
|
@@ -98,6 +100,7 @@ export default {
|
|
|
98
100
|
this.actionCancel ||
|
|
99
101
|
this.actionSecondary ||
|
|
100
102
|
this.actionPrimary ||
|
|
103
|
+
// eslint-disable-next-line @gitlab/vue-prefer-dollar-scopedslots
|
|
101
104
|
this.$slots['modal-footer']
|
|
102
105
|
);
|
|
103
106
|
},
|
|
@@ -107,6 +107,7 @@ export default {
|
|
|
107
107
|
v-bind="passthroughAttrs"
|
|
108
108
|
v-on="$listeners"
|
|
109
109
|
>
|
|
110
|
+
<!-- eslint-disable-next-line @gitlab/vue-prefer-dollar-scopedslots -->
|
|
110
111
|
<template v-for="slot in Object.keys($slots)" #[slot]>
|
|
111
112
|
<slot :name="slot"></slot>
|
|
112
113
|
</template>
|