@carbon/vue 2.17.0 → 2.17.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/vue",
3
3
  "description": "A collection of components for the Carbon Design System built using Vue.js",
4
- "version": "2.17.0",
4
+ "version": "2.17.1",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -63,7 +63,7 @@
63
63
  "sideEffects": true,
64
64
  "dependencies": {
65
65
  "@carbon/icons-vue": "10.6.1",
66
- "carbon-components": "10.7.0",
66
+ "carbon-components": "10.7.3",
67
67
  "flatpickr": "4.6.3",
68
68
  "vue": "^2.6.10"
69
69
  },
@@ -73,5 +73,5 @@
73
73
  "eslint-plugin-prettier": "^3.1.1",
74
74
  "vue-template-compiler": "^2.6.10"
75
75
  },
76
- "gitHead": "7c0d889adc032847748a8932c0c9b374e655d877"
76
+ "gitHead": "638a3416a706a1172f45f09e37082e6527cd0ad4"
77
77
  }
@@ -19,6 +19,14 @@
19
19
  <p class="bx--inline-notification__subtitle">{{ subTitle }}</p>
20
20
  </div>
21
21
  </div>
22
+ <button
23
+ v-if="actionLabel"
24
+ @click="$emit('action')"
25
+ class="bx--inline-notification__action-button bx--btn bx--btn--sm bx--btn--ghost"
26
+ type="button"
27
+ >
28
+ {{ actionLabel }}
29
+ </button>
22
30
  <button
23
31
  type="button"
24
32
  :aria-label="closeAriaLabel"
@@ -43,6 +51,7 @@ export default {
43
51
  components: { Close16 },
44
52
  mixins: [notificationMixin],
45
53
  props: {
54
+ actionLabel: { type: String, default: '' },
46
55
  closeAriaLabel: { type: String, default: 'Dismiss notification' },
47
56
  kind: {
48
57
  type: String,
@@ -11,8 +11,8 @@
11
11
  >
12
12
  <svg class="bx--loading__svg" viewBox="-75 -75 150 150">
13
13
  <title>Loading</title>
14
- <circle v-if="small" class="bx--loading__background" cx="0" cy="0" r="37.5"></circle>
15
- <circle class="bx--loading__stroke" cx="0" cy="0" r="37.5"></circle>
14
+ <circle v-if="small" class="bx--loading__background" cx="0" cy="0" :r="loadingRadius" />
15
+ <circle class="bx--loading__stroke" cx="0" cy="0" :r="loadingRadius" />
16
16
  </svg>
17
17
  </div>
18
18
  </div>
@@ -32,6 +32,9 @@ export default {
32
32
 
33
33
  return `bx--loading-overlay ${this.stopped ? 'bx--loading-overlay--stop' : ''}`;
34
34
  },
35
+ loadingRadius() {
36
+ return this.small ? '26.8125' : '37.5';
37
+ },
35
38
  },
36
39
  data() {
37
40
  return {
@@ -23,7 +23,9 @@
23
23
  'bx--tabs__nav-item--selected': selectedId == tab.uid,
24
24
  'bx--tabs__nav-item--disabled': disabledTabs.indexOf(tab.uid) !== -1,
25
25
  }"
26
- role="presentation"
26
+ role="tab"
27
+ :aria-selected="selectedId == tab.uid"
28
+ :aria-disabled="disabledTabs.indexOf(tab.uid) !== -1"
27
29
  >
28
30
  <a
29
31
  class="bx--tabs__nav-link"
@@ -31,7 +33,6 @@
31
33
  role="tab"
32
34
  :aria-controls="tab.uid"
33
35
  :id="`${tab.uid}-link`"
34
- aria-selected="false"
35
36
  @click="onTabClick(tab.uid)"
36
37
  ref="link"
37
38
  >{{ tab.label }}</a
@@ -104,7 +105,7 @@ export default {
104
105
 
105
106
  this.selectedId = id;
106
107
 
107
- for (let i = 0; i < this.tabs.length && newIndex < 0; i++) {
108
+ for (let i = 0; i < this.tabs.length; i++) {
108
109
  if (this.tabs[i].uid === id) {
109
110
  this.tabs[i].internalSelected = true;
110
111
  newIndex = i;