@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.
Files changed (29) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/components/base/alert/alert.js +1 -0
  3. package/dist/components/base/badge/badge.js +1 -0
  4. package/dist/components/base/button/button.js +2 -0
  5. package/dist/components/base/drawer/drawer.js +1 -0
  6. package/dist/components/base/dropdown/dropdown.js +1 -0
  7. package/dist/components/base/filtered_search/filtered_search_token_segment.js +1 -0
  8. package/dist/components/base/form/form_group/form_group.js +1 -0
  9. package/dist/components/base/modal/modal.js +4 -1
  10. package/dist/components/base/toggle/toggle.js +1 -0
  11. package/dist/index.css +1 -1
  12. package/dist/index.css.map +1 -1
  13. package/package.json +2 -2
  14. package/src/components/base/alert/alert.vue +1 -0
  15. package/src/components/base/badge/badge.vue +1 -0
  16. package/src/components/base/button/button.vue +2 -0
  17. package/src/components/base/carousel/carousel.vue +1 -0
  18. package/src/components/base/carousel/carousel_slide.vue +1 -0
  19. package/src/components/base/drawer/drawer.vue +1 -0
  20. package/src/components/base/dropdown/dropdown.vue +1 -0
  21. package/src/components/base/filtered_search/filtered_search_token_segment.vue +1 -0
  22. package/src/components/base/form/form_group/form_group.vue +2 -0
  23. package/src/components/base/form/form_select/form_select.scss +1 -0
  24. package/src/components/base/form/form_select/form_select.vue +1 -0
  25. package/src/components/base/modal/modal.vue +3 -0
  26. package/src/components/base/tabs/tab/tab.vue +1 -0
  27. package/src/components/base/tabs/tabs/scrollable_tabs.vue +1 -0
  28. package/src/components/base/tabs/tabs/tabs.vue +1 -0
  29. 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.20.0",
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.26.0",
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",
@@ -94,6 +94,7 @@ export default {
94
94
  return alertVariantIconMap[this.variant];
95
95
  },
96
96
  shouldRenderActions() {
97
+ // eslint-disable-next-line @gitlab/vue-prefer-dollar-scopedslots
97
98
  return Boolean(this.$slots.actions || this.actionButtons.length);
98
99
  },
99
100
  actionButtons() {
@@ -44,6 +44,7 @@ export default {
44
44
  },
45
45
  computed: {
46
46
  hasIconOnly() {
47
+ // eslint-disable-next-line @gitlab/vue-prefer-dollar-scopedslots
47
48
  return Boolean(this.icon && Object.keys(this.$slots).length === 0);
48
49
  },
49
50
  role() {
@@ -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>
@@ -57,6 +57,7 @@ export default {
57
57
  };
58
58
  },
59
59
  shouldRenderFooter() {
60
+ // eslint-disable-next-line @gitlab/vue-prefer-dollar-scopedslots
60
61
  return Boolean(this.$slots.footer);
61
62
  },
62
63
  variantClass() {
@@ -202,6 +202,7 @@ export default {
202
202
  },
203
203
  methods: {
204
204
  hasSlotContents(slotName) {
205
+ // eslint-disable-next-line @gitlab/vue-prefer-dollar-scopedslots
205
206
  return Boolean(this.$slots[slotName]);
206
207
  },
207
208
  show(...args) {
@@ -118,6 +118,7 @@ export default {
118
118
  },
119
119
 
120
120
  hasOptionsOrSuggestions() {
121
+ // eslint-disable-next-line @gitlab/vue-prefer-dollar-scopedslots
121
122
  return this.options?.length || this.$slots.suggestions;
122
123
  },
123
124
 
@@ -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>
@@ -21,6 +21,7 @@ See: https://gitlab.com/gitlab-org/gitlab/issues/30055
21
21
  @include gl-border-none;
22
22
  @include gl-appearance-none;
23
23
  @include gl-text-truncate;
24
+ @include gl-bg-no-repeat;
24
25
  background-image: url($gl-icon-select-chevron-down);
25
26
 
26
27
  &:focus,
@@ -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
  },
@@ -48,6 +48,7 @@ export default {
48
48
  v-bind="$attrs"
49
49
  v-on="$listeners"
50
50
  >
51
+ <!-- eslint-disable-next-line @gitlab/vue-prefer-dollar-scopedslots -->
51
52
  <template v-for="slot in Object.keys($slots)" #[slot]>
52
53
  <slot :name="slot"></slot>
53
54
  </template>
@@ -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>
@@ -221,6 +221,7 @@ export default {
221
221
  v-bind="$attrs"
222
222
  v-on="listeners"
223
223
  >
224
+ <!-- eslint-disable-next-line @gitlab/vue-prefer-dollar-scopedslots -->
224
225
  <template v-for="slot in Object.keys($slots)" #[slot]>
225
226
  <slot :name="slot"></slot>
226
227
  </template>
@@ -82,6 +82,7 @@ export default {
82
82
  },
83
83
  computed: {
84
84
  shouldRenderHelp() {
85
+ // eslint-disable-next-line @gitlab/vue-prefer-dollar-scopedslots
85
86
  return Boolean(this.$slots.help || this.help);
86
87
  },
87
88
  icon() {