@gitlab/ui 49.3.0 → 49.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "49.3.0",
3
+ "version": "49.4.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -27,7 +27,7 @@
27
27
  "clean": "rm -r dist storybook scss_to_js/scss_variables.* src/scss/utilities.scss",
28
28
  "cy:run": "cypress run --browser firefox",
29
29
  "start": "yarn storybook",
30
- "storybook": "yarn storybook-prep && start-storybook --ci -p 9001 -c .storybook -s ./static",
30
+ "storybook": "yarn storybook-prep && start-storybook --ci --host localhost --port 9001 -c .storybook -s ./static",
31
31
  "storybook-prep": "run-s generate-utilities build-scss-variables",
32
32
  "storybook-static": "yarn storybook-prep && build-storybook -c .storybook -o storybook -s ./static",
33
33
  "pretest:unit": "yarn build-scss-variables",
@@ -56,7 +56,7 @@
56
56
  },
57
57
  "dependencies": {
58
58
  "@popperjs/core": "^2.11.2",
59
- "bootstrap-vue": "2.20.1",
59
+ "bootstrap-vue": "2.23.1",
60
60
  "dompurify": "^2.4.0",
61
61
  "echarts": "^5.3.2",
62
62
  "iframe-resizer": "^4.3.2",
@@ -101,7 +101,7 @@
101
101
  "babel-plugin-lodash": "^3.3.4",
102
102
  "babel-plugin-require-context-hook": "^1.0.0",
103
103
  "babel-preset-vue": "^2.0.2",
104
- "bootstrap": "4.5.3",
104
+ "bootstrap": "4.6.2",
105
105
  "cypress": "^10.11.0",
106
106
  "emoji-regex": "^10.0.0",
107
107
  "eslint": "8.26.0",
@@ -97,14 +97,14 @@
97
97
 
98
98
  @include gl-badge-variant(
99
99
  $variant: muted,
100
- $color: $gray-500,
101
- $icon-color: $gray-400,
100
+ $color: $gray-600,
101
+ $icon-color: $gray-500,
102
102
  $bg: $gray-50,
103
- $hover-color: $gray-600,
104
- $hover-icon-color: $gray-500,
103
+ $hover-color: $gray-700,
104
+ $hover-icon-color: $gray-600,
105
105
  $border-color: $gray-200,
106
- $active-color: $gray-700,
107
- $active-icon-color: $gray-600,
106
+ $active-color: $gray-800,
107
+ $active-icon-color: $gray-700,
108
108
  $active-bg: $gray-100
109
109
  );
110
110
 
@@ -1,6 +1,6 @@
1
1
  <script>
2
2
  import { BFormCheckboxGroup } from 'bootstrap-vue';
3
- import formOptionsMixin from 'bootstrap-vue/src/mixins/form-options';
3
+ import { formOptionsMixin } from 'bootstrap-vue/src/mixins/form-options';
4
4
  import { SafeHtmlDirective as SafeHtml } from '../../../../directives/safe_html/safe_html';
5
5
  import GlFormCheckbox from './form_checkbox.vue';
6
6
 
@@ -1,6 +1,6 @@
1
1
  <script>
2
2
  import { BFormRadioGroup } from 'bootstrap-vue';
3
- import formOptionsMixin from 'bootstrap-vue/src/mixins/form-options';
3
+ import { formOptionsMixin } from 'bootstrap-vue/src/mixins/form-options';
4
4
  import { SafeHtmlDirective as SafeHtml } from '../../../../directives/safe_html/safe_html';
5
5
  import GlFormRadio from '../form_radio/form_radio.vue';
6
6
 
@@ -45,6 +45,11 @@ export default {
45
45
  required: false,
46
46
  default: popoverPlacements.top,
47
47
  },
48
+ boundaryPadding: {
49
+ type: [Number, String],
50
+ required: false,
51
+ default: 5,
52
+ },
48
53
  },
49
54
  computed: {
50
55
  customClass() {
@@ -74,6 +79,7 @@ export default {
74
79
  :triggers="triggers"
75
80
  :title="title"
76
81
  :placement="placement"
82
+ :boundary-padding="boundaryPadding"
77
83
  v-bind="$attrs"
78
84
  v-on="$listeners"
79
85
  >
@@ -228,6 +228,7 @@ describe('tabs component', () => {
228
228
  props: { syncActiveTabWithQueryParams: true, queryParamName },
229
229
  });
230
230
 
231
+ await nextTick();
231
232
  await nextTick();
232
233
 
233
234
  expect(findActiveTab().text()).toBe(expectedActiveTabText);
@@ -337,10 +338,11 @@ describe('tabs component', () => {
337
338
  props: { syncActiveTabWithQueryParams: true },
338
339
  });
339
340
 
341
+ await nextTick();
340
342
  await nextTick();
341
343
 
342
- expect(wrapper.emitted('input')[0]).toEqual([1]);
343
- expect(wrapper.emitted('input')[1]).toEqual([1]);
344
+ expect(wrapper.emitted().input[0]).toEqual([0]);
345
+ expect(wrapper.emitted().input[1]).toEqual([1]);
344
346
  });
345
347
  });
346
348
  });
@@ -129,12 +129,12 @@ export default {
129
129
  /**
130
130
  * When the query parameter is updated, update the active tab to match.
131
131
  */
132
- syncActiveTabFromQueryParams() {
132
+ async syncActiveTabFromQueryParams() {
133
+ await this.$nextTick();
133
134
  const queryParamValue = this.getQueryParamValue();
134
135
  const tabIndexToActivate = this.getTabs().findIndex(
135
136
  (tab, tabIndex) => this.getTabQueryParamValue(tabIndex) === queryParamValue
136
137
  );
137
-
138
138
  this.activeTabIndex = tabIndexToActivate !== -1 ? tabIndexToActivate : 0;
139
139
  },
140
140