@carbon/vue 2.42.0 → 2.44.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 (54) hide show
  1. package/README.md +24 -2
  2. package/dist/carbon-vue.common.js +1103 -1007
  3. package/dist/carbon-vue.common.js.map +1 -1
  4. package/dist/carbon-vue.umd.js +1103 -1007
  5. package/dist/carbon-vue.umd.js.map +1 -1
  6. package/dist/carbon-vue.umd.min.js +3 -3
  7. package/dist/carbon-vue.umd.min.js.map +1 -1
  8. package/package.json +5 -5
  9. package/src/carbon.yml +388 -0
  10. package/src/components/cv-accordion/cv-accordion-skeleton.vue +1 -1
  11. package/src/components/cv-accordion/cv-accordion.vue +1 -1
  12. package/src/components/cv-aspect-ratio/cv-aspect-ratio.vue +3 -2
  13. package/src/components/cv-aspect-ratio/index.js +2 -2
  14. package/src/components/cv-breadcrumb/cv-breadcrumb-skeleton.vue +8 -1
  15. package/src/components/cv-button/button-mixin.js +7 -4
  16. package/src/components/cv-button/consts.js +14 -0
  17. package/src/components/cv-button/cv-icon-button.vue +2 -2
  18. package/src/components/cv-checkbox/cv-checkbox.vue +0 -1
  19. package/src/components/cv-code-snippet/_cv-code-snippet-inline.vue +2 -1
  20. package/src/components/cv-code-snippet/_cv-code-snippet-multiline.vue +2 -1
  21. package/src/components/cv-code-snippet/_cv-code-snippet-oneline.vue +2 -1
  22. package/src/components/cv-code-snippet/cv-code-snippet-skeleton.vue +1 -1
  23. package/src/components/cv-code-snippet/cv-code-snippet.vue +2 -1
  24. package/src/components/cv-data-table/cv-data-table-heading.vue +1 -1
  25. package/src/components/cv-data-table/cv-data-table-skeleton.vue +1 -2
  26. package/src/components/cv-data-table/cv-data-table.vue +45 -43
  27. package/src/components/cv-date-picker/plugins/monthSelectPlugin.js +1 -1
  28. package/src/components/cv-feedback-button/_cv-feedback-button.vue +1 -1
  29. package/src/components/cv-file-uploader/cv-file-uploader.vue +22 -12
  30. package/src/components/cv-inline-loading/cv-inline-loading.vue +1 -0
  31. package/src/components/cv-link/cv-link.vue +8 -1
  32. package/src/components/cv-loading/cv-loading.vue +4 -1
  33. package/src/components/cv-modal/cv-modal.vue +4 -3
  34. package/src/components/cv-multi-select/cv-multi-select.vue +9 -2
  35. package/src/components/cv-number-input/cv-number-input.vue +39 -31
  36. package/src/components/cv-overflow-menu/cv-overflow-menu.vue +3 -3
  37. package/src/components/cv-search/cv-search.vue +30 -14
  38. package/src/components/cv-slider/cv-slider.vue +1 -0
  39. package/src/components/cv-tabs/cv-tabs-skeleton.vue +7 -19
  40. package/src/components/cv-tabs/cv-tabs.vue +0 -2
  41. package/src/components/cv-tag/cv-tag-skeleton.vue +1 -3
  42. package/src/components/cv-tag/cv-tag.vue +6 -7
  43. package/src/components/cv-tag/index.js +3 -2
  44. package/src/components/cv-tile/_cv-tile-selectable.vue +0 -1
  45. package/src/components/cv-toggle/cv-toggle.vue +0 -1
  46. package/src/components/cv-tooltip/consts.js +2 -0
  47. package/src/components/cv-tooltip/cv-definition-tooltip.vue +5 -5
  48. package/src/components/cv-tooltip/cv-interactive-tooltip.vue +7 -7
  49. package/src/components/cv-tooltip/cv-tooltip.vue +5 -5
  50. package/src/components/cv-tooltip/index.js +1 -0
  51. package/src/components/cv-ui-shell/cv-header-global-action.vue +1 -1
  52. package/src/thumbnails/inline-notification.svg +23 -0
  53. package/src/thumbnails/skeleton-text.svg +15 -0
  54. package/src/thumbnails/toast-notification.svg +34 -0
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.42.0",
4
+ "version": "2.44.0",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -64,9 +64,9 @@
64
64
  },
65
65
  "sideEffects": true,
66
66
  "dependencies": {
67
- "@carbon/icons-vue": "10.41.0",
68
- "@carbon/telemetry": "^0.0.0-alpha.6",
69
- "carbon-components": "10.46.0",
67
+ "@carbon/icons-vue": "10.49.1",
68
+ "@carbon/telemetry": "^0.1.0",
69
+ "carbon-components": "10.56.0",
70
70
  "flatpickr": "4.6.9",
71
71
  "vue": "^2.6.14"
72
72
  },
@@ -75,5 +75,5 @@
75
75
  "eslint-plugin-prettier": "^3.3.1",
76
76
  "vue-template-compiler": "^2.6.14"
77
77
  },
78
- "gitHead": "ab0c2e9ac8f61f208d73291274108ce5c25cb527"
78
+ "gitHead": "cf32f525094daf7cd1073afb4285dd1b8961bba5"
79
79
  }
package/src/carbon.yml ADDED
@@ -0,0 +1,388 @@
1
+ # yaml-language-server: $schema=https://unpkg.com/@carbon-platform/schemas@v1/carbon-resources.schema.json
2
+ library:
3
+ id: carbon-components-vue
4
+ name: Carbon Components Vue
5
+ description: Vue implementation of Carbon Components.
6
+ externalDocsUrl: https://vue.carbondesignsystem.com/?path=/story/welcome
7
+ inherits: carbon-styles
8
+ packageJsonPath: /../package.json
9
+ assets:
10
+ accordion:
11
+ status: stable
12
+ externalDocsUrl: https://www.carbondesignsystem.com/components/accordion/usage
13
+ framework: vue
14
+ demoLinks:
15
+ - type: storybook
16
+ name: Storybook
17
+ action: link
18
+ url: https://vue.carbondesignsystem.com/?path=/story/components-cvaccordion
19
+ aspect-ratio:
20
+ status: stable
21
+ framework: vue
22
+ demoLinks:
23
+ - type: storybook
24
+ name: Storybook
25
+ action: link
26
+ url: https://vue.carbondesignsystem.com/?path=/story/components-cvaspectratio
27
+ breadcrumb:
28
+ status: stable
29
+ externalDocsUrl: https://www.carbondesignsystem.com/components/breadcrumb/usage
30
+ framework: vue
31
+ demoLinks:
32
+ - type: storybook
33
+ name: Storybook
34
+ action: link
35
+ url: https://vue.carbondesignsystem.com/?path=/story/components-cvbreadcrumb
36
+ button:
37
+ status: stable
38
+ externalDocsUrl: https://www.carbondesignsystem.com/components/button/usage
39
+ framework: vue
40
+ demoLinks:
41
+ - type: storybook
42
+ name: Storybook
43
+ action: link
44
+ url: https://vue.carbondesignsystem.com/?path=/story/components-cvbutton
45
+ checkbox:
46
+ status: stable
47
+ externalDocsUrl: https://www.carbondesignsystem.com/components/checkbox/usage
48
+ framework: vue
49
+ demoLinks:
50
+ - type: storybook
51
+ name: Storybook
52
+ action: link
53
+ url: https://vue.carbondesignsystem.com/?path=/story/components-cvcheckbox
54
+ code-snippet:
55
+ status: stable
56
+ externalDocsUrl: https://www.carbondesignsystem.com/components/code-snippet/usage
57
+ framework: vue
58
+ demoLinks:
59
+ - type: storybook
60
+ name: Storybook
61
+ action: link
62
+ url: https://vue.carbondesignsystem.com/?path=/story/components-cvcodesnippet
63
+ combo-box:
64
+ status: stable
65
+ framework: vue
66
+ demoLinks:
67
+ - type: storybook
68
+ name: Storybook
69
+ action: link
70
+ url: https://vue.carbondesignsystem.com/?path=/story/components-cvcombobox
71
+ content-switcher:
72
+ status: stable
73
+ externalDocsUrl: https://www.carbondesignsystem.com/components/data-table/usage
74
+ framework: vue
75
+ demoLinks:
76
+ - type: storybook
77
+ name: Storybook
78
+ action: link
79
+ url: https://vue.carbondesignsystem.com/?path=/story/components-cvcontentswitcher
80
+ data-table:
81
+ status: stable
82
+ externalDocsUrl: https://www.carbondesignsystem.com/components/accordion/usage
83
+ framework: vue
84
+ demoLinks:
85
+ - type: storybook
86
+ name: Storybook
87
+ action: link
88
+ url: https://vue.carbondesignsystem.com/?path=/story/components-cvdatatable
89
+ date-picker:
90
+ status: stable
91
+ externalDocsUrl: https://www.carbondesignsystem.com/components/date-picker/usage
92
+ framework: vue
93
+ demoLinks:
94
+ - type: storybook
95
+ name: Storybook
96
+ action: link
97
+ url: https://vue.carbondesignsystem.com/?path=/story/components-cvdatatable
98
+ dropdown:
99
+ status: stable
100
+ externalDocsUrl: https://www.carbondesignsystem.com/components/dropdown/usage/
101
+ framework: vue
102
+ demoLinks:
103
+ - type: storybook
104
+ name: Storybook
105
+ action: link
106
+ url: https://vue.carbondesignsystem.com/?path=/story/components-cvdropdown
107
+ file-uploader:
108
+ status: stable
109
+ externalDocsUrl: https://www.carbondesignsystem.com/components/file-uploader/usage
110
+ framework: vue
111
+ demoLinks:
112
+ - type: storybook
113
+ name: Storybook
114
+ action: link
115
+ url: https://vue.carbondesignsystem.com/?path=/story/components-cvfileuploader
116
+ form:
117
+ status: stable
118
+ externalDocsUrl: https://www.carbondesignsystem.com/components/form/usage
119
+ framework: vue
120
+ demoLinks:
121
+ - type: storybook
122
+ name: Storybook
123
+ action: link
124
+ url: https://vue.carbondesignsystem.com/?path=/story/components-cvform
125
+ grid:
126
+ status: stable
127
+ framework: vue
128
+ demoLinks:
129
+ - type: storybook
130
+ name: Storybook
131
+ action: link
132
+ url: https://vue.carbondesignsystem.com/?path=/story/components-cvgrid
133
+ inline-loading:
134
+ status: stable
135
+ externalDocsUrl: https://www.carbondesignsystem.com/components/inline-loading/usage
136
+ framework: vue
137
+ demoLinks:
138
+ - type: storybook
139
+ name: Storybook
140
+ action: link
141
+ url: https://vue.carbondesignsystem.com/?path=/story/components-cvinlineloading
142
+ inline-notification:
143
+ name: Inline notification
144
+ status: stable
145
+ type: component
146
+ platform: web
147
+ framework: vue
148
+ thumbnailPath: './thumbnails/inline-notification.svg'
149
+ demoLinks:
150
+ - type: storybook
151
+ name: Storybook
152
+ action: link
153
+ url: https://vue.carbondesignsystem.com/?path=/story/components-cvinlinenotification
154
+ tags:
155
+ - system-feedback
156
+ link:
157
+ status: stable
158
+ externalDocsUrl: https://www.carbondesignsystem.com/components/link/usage
159
+ framework: vue
160
+ demoLinks:
161
+ - type: storybook
162
+ name: Storybook
163
+ action: link
164
+ url: https://vue.carbondesignsystem.com/?path=/story/components-cvlink
165
+ list:
166
+ status: stable
167
+ externalDocsUrl: https://www.carbondesignsystem.com/components/list/usage
168
+ framework: vue
169
+ demoLinks:
170
+ - type: storybook
171
+ name: Storybook
172
+ action: link
173
+ url: https://vue.carbondesignsystem.com/?path=/story/components-cvlist
174
+ loading:
175
+ status: stable
176
+ externalDocsUrl: https://www.carbondesignsystem.com/components/loading/usage
177
+ framework: vue
178
+ demoLinks:
179
+ - type: storybook
180
+ name: Storybook
181
+ action: link
182
+ url: https://vue.carbondesignsystem.com/?path=/story/components-cvloading
183
+ modal:
184
+ status: stable
185
+ externalDocsUrl: https://www.carbondesignsystem.com/components/modal/usage
186
+ framework: vue
187
+ demoLinks:
188
+ - type: storybook
189
+ name: Storybook
190
+ action: link
191
+ url: https://vue.carbondesignsystem.com/?path=/story/components-cvmodal
192
+ multiselect:
193
+ status: stable
194
+ externalDocsUrl: https://www.carbondesignsystem.com/components/dropdown/usage/#multiselect
195
+ framework: vue
196
+ demoLinks:
197
+ - type: storybook
198
+ name: Storybook
199
+ action: link
200
+ url: https://vue.carbondesignsystem.com/?path=/story/components-cvmultiselect
201
+ number-input:
202
+ status: stable
203
+ externalDocsUrl: https://www.carbondesignsystem.com/components/number-input/usage
204
+ framework: vue
205
+ demoLinks:
206
+ - type: storybook
207
+ name: Storybook
208
+ action: link
209
+ url: https://vue.carbondesignsystem.com/?path=/story/components-cvnumberinput
210
+ overflow-menu:
211
+ status: stable
212
+ externalDocsUrl: https://www.carbondesignsystem.com/components/overflow-menu/usage
213
+ framework: vue
214
+ demoLinks:
215
+ - type: storybook
216
+ name: Storybook
217
+ action: link
218
+ url: https://vue.carbondesignsystem.com/?path=/story/components-cvoverflowmenu
219
+ pagination:
220
+ status: stable
221
+ externalDocsUrl: https://www.carbondesignsystem.com/components/pagination/usage
222
+ framework: vue
223
+ demoLinks:
224
+ - type: storybook
225
+ name: Storybook
226
+ action: link
227
+ url: https://vue.carbondesignsystem.com/?path=/story/components-cvpagination
228
+ progress-indicator:
229
+ status: stable
230
+ externalDocsUrl: https://carbondesignsystem.com/components/progress-indicator/usage/
231
+ framework: vue
232
+ demoLinks:
233
+ - type: storybook
234
+ name: Storybook
235
+ action: link
236
+ url: https://vue.carbondesignsystem.com/?path=/story/components-cvprogress
237
+ radio-button:
238
+ status: stable
239
+ externalDocsUrl: https://www.carbondesignsystem.com/components/radio-button/usage
240
+ framework: vue
241
+ demoLinks:
242
+ - type: storybook
243
+ name: Storybook
244
+ action: link
245
+ url: https://vue.carbondesignsystem.com/?path=/story/components-cvradiobutton
246
+ search:
247
+ status: stable
248
+ externalDocsUrl: https://www.carbondesignsystem.com/components/search/usage
249
+ framework: vue
250
+ demoLinks:
251
+ - type: storybook
252
+ name: Storybook
253
+ action: link
254
+ url: https://vue.carbondesignsystem.com/?path=/story/components-cvsearch
255
+ select:
256
+ status: stable
257
+ externalDocsUrl: https://www.carbondesignsystem.com/components/select/usage
258
+ framework: vue
259
+ demoLinks:
260
+ - type: storybook
261
+ name: Storybook
262
+ action: link
263
+ url: https://vue.carbondesignsystem.com/?path=/story/components-cvselect
264
+ skeleton-text:
265
+ name: Skeleton text
266
+ status: stable
267
+ type: component
268
+ platform: web
269
+ framework: vue
270
+ thumbnailPath: './thumbnails/skeleton-text.svg'
271
+ demoLinks:
272
+ - type: storybook
273
+ name: Storybook
274
+ action: link
275
+ url: https://vue.carbondesignsystem.com/?path=/story/components-cvskeletontext
276
+ tags:
277
+ - data-display
278
+ slider:
279
+ status: stable
280
+ externalDocsUrl: https://www.carbondesignsystem.com/components/slider/usage
281
+ framework: vue
282
+ demoLinks:
283
+ - type: storybook
284
+ name: Storybook
285
+ action: link
286
+ url: https://vue.carbondesignsystem.com/?path=/story/components-cvslider
287
+ structured-list:
288
+ status: stable
289
+ externalDocsUrl: https://www.carbondesignsystem.com/components/structured-list/usage
290
+ framework: vue
291
+ demoLinks:
292
+ - type: storybook
293
+ name: Storybook
294
+ action: link
295
+ url: https://vue.carbondesignsystem.com/?path=/story/components-cvstructuredlist
296
+ tabs:
297
+ status: stable
298
+ externalDocsUrl: https://www.carbondesignsystem.com/components/tabs/usage
299
+ framework: vue
300
+ demoLinks:
301
+ - type: storybook
302
+ name: Storybook
303
+ action: link
304
+ url: https://vue.carbondesignsystem.com/?path=/story/components-cvtabs
305
+ tag:
306
+ status: stable
307
+ externalDocsUrl: https://www.carbondesignsystem.com/components/tag/usage
308
+ framework: vue
309
+ demoLinks:
310
+ - type: storybook
311
+ name: Storybook
312
+ action: link
313
+ url: https://vue.carbondesignsystem.com/?path=/story/components-cvtag
314
+ text-area:
315
+ status: stable
316
+ framework: vue
317
+ demoLinks:
318
+ - type: storybook
319
+ name: Storybook
320
+ action: link
321
+ url: https://vue.carbondesignsystem.com/?path=/story/components-cvtextarea
322
+ text-input:
323
+ status: stable
324
+ externalDocsUrl: https://www.carbondesignsystem.com/components/text-input/usage
325
+ framework: vue
326
+ demoLinks:
327
+ - type: storybook
328
+ name: Storybook
329
+ action: link
330
+ url: https://vue.carbondesignsystem.com/?path=/story/components-cvtextinput
331
+ tile:
332
+ status: stable
333
+ externalDocsUrl: https://www.carbondesignsystem.com/components/tile/usage
334
+ framework: vue
335
+ demoLinks:
336
+ - type: storybook
337
+ name: Storybook
338
+ action: link
339
+ url: https://vue.carbondesignsystem.com/?path=/story/components-cvtile
340
+ time-picker:
341
+ status: stable
342
+ framework: vue
343
+ demoLinks:
344
+ - type: storybook
345
+ name: Storybook
346
+ action: link
347
+ url: https://vue.carbondesignsystem.com/?path=/story/components-cvtimepicker
348
+ toast-notification:
349
+ name: Toast notification
350
+ status: stable
351
+ type: component
352
+ platform: web
353
+ framework: vue
354
+ thumbnailPath: './thumbnails/toast-notification.svg'
355
+ demoLinks:
356
+ - type: storybook
357
+ name: Storybook
358
+ action: link
359
+ url: https://vue.carbondesignsystem.com/?path=/story/components-cvtoastnotification
360
+ tags:
361
+ - system-feedback
362
+ toggle:
363
+ status: stable
364
+ externalDocsUrl: https://www.carbondesignsystem.com/components/toggle/usage
365
+ framework: vue
366
+ demoLinks:
367
+ - type: storybook
368
+ name: Storybook
369
+ action: link
370
+ url: https://vue.carbondesignsystem.com/?path=/story/components-cvtoggle
371
+ tooltip:
372
+ status: stable
373
+ externalDocsUrl: https://www.carbondesignsystem.com/components/tooltip/usage
374
+ framework: vue
375
+ demoLinks:
376
+ - type: storybook
377
+ name: Storybook
378
+ action: link
379
+ url: https://vue.carbondesignsystem.com/?path=/story/components-cvtooltip-interactive-tootlip
380
+ ui-shell-header:
381
+ status: stable
382
+ externalDocsUrl: https://www.carbondesignsystem.com/components/UI-shell-header/usage
383
+ framework: vue
384
+ demoLinks:
385
+ - type: storybook
386
+ name: Storybook
387
+ action: link
388
+ url: https://vue.carbondesignsystem.com/?path=/story/components-cvuishell
@@ -31,7 +31,7 @@ export default {
31
31
  size: {
32
32
  type: String,
33
33
  default: '',
34
- validator: val => ['sm', 'xl', ''].includes(val),
34
+ validator: val => ['sm', 'md', 'lg', 'xl', ''].includes(val),
35
35
  },
36
36
  },
37
37
  mixins: [carbonPrefixMixin],
@@ -23,7 +23,7 @@ export default {
23
23
  size: {
24
24
  type: String,
25
25
  default: '',
26
- validator: val => ['sm', 'xl', ''].includes(val),
26
+ validator: val => ['sm', 'md', 'lg', 'xl', ''].includes(val),
27
27
  },
28
28
  },
29
29
  mixins: [carbonPrefixMixin],
@@ -4,6 +4,8 @@
4
4
 
5
5
  <script>
6
6
  import { carbonPrefixMixin } from '../../mixins';
7
+
8
+ export const ratios = ['16x9', '9x16', '2x1', '1x2', '4x3', '3x4', '1x1'];
7
9
  export default {
8
10
  name: 'CvAspectRatio',
9
11
  mixins: [carbonPrefixMixin],
@@ -11,8 +13,7 @@ export default {
11
13
  ratio: {
12
14
  type: String,
13
15
  validator: val => {
14
- const options = ['16x9', '9x16', '2x1', '1x2', '4x3', '3x4', '1x1'];
15
- const result = options.includes(val);
16
+ const result = ratios.includes(val);
16
17
  if (!result) {
17
18
  console.warn(`Invalid options supplied to "CvAspectRation"-"${val}".`);
18
19
  }
@@ -1,2 +1,2 @@
1
- import CvAspectRatio from './cv-aspect-ratio';
2
- export { CvAspectRatio };
1
+ import CvAspectRatio, { ratios } from './cv-aspect-ratio';
2
+ export { CvAspectRatio, ratios };
@@ -1,5 +1,11 @@
1
1
  <template>
2
- <nav :class="`${carbonPrefix}--breadcrumb ${carbonPrefix}--skeleton`" :aria-label="ariaLabel">
2
+ <nav
3
+ :class="[
4
+ `${carbonPrefix}--breadcrumb ${carbonPrefix}--skeleton`,
5
+ { [`${carbonPrefix}--breadcrumb--no-trailing-slash`]: noTrailingSlash },
6
+ ]"
7
+ :aria-label="ariaLabel"
8
+ >
3
9
  <cv-breadcrumb-item-skeleton></cv-breadcrumb-item-skeleton>
4
10
  <cv-breadcrumb-item-skeleton></cv-breadcrumb-item-skeleton>
5
11
  <cv-breadcrumb-item-skeleton></cv-breadcrumb-item-skeleton>
@@ -18,6 +24,7 @@ export default {
18
24
  },
19
25
  props: {
20
26
  ariaLabel: { type: String, default: 'breadcrumb' },
27
+ noTrailingSlash: Boolean,
21
28
  },
22
29
  };
23
30
  </script>
@@ -13,6 +13,7 @@ export default {
13
13
  },
14
14
  },
15
15
  iconHref: {
16
+ deprecated: true,
16
17
  type: String,
17
18
  default: undefined,
18
19
  validator(val) {
@@ -29,6 +30,7 @@ export default {
29
30
  ['', 'primary', 'secondary', 'tertiary', 'ghost', 'danger', 'danger--ghost', 'danger--tertiary'].includes(val),
30
31
  },
31
32
  small: {
33
+ deprecated: true,
32
34
  type: Boolean,
33
35
  default: undefined,
34
36
  validator(val) {
@@ -56,7 +58,8 @@ export default {
56
58
  buttonClassOpts() {
57
59
  return (opts = {}) => {
58
60
  const classes = [`${carbonSettings.prefix}--btn`];
59
- const lowerCaseKind = this.kind.toLowerCase();
61
+ // ensure lower case and default to primary
62
+ const _kind = this.kind ? this.kind.toLowerCase() : 'primary';
60
63
 
61
64
  if (opts.skeleton) {
62
65
  classes.push(`${carbonSettings.prefix}--skeleton`);
@@ -64,13 +67,13 @@ export default {
64
67
 
65
68
  if (opts.iconOnly) {
66
69
  classes.push(`${carbonSettings.prefix}--btn--icon-only`);
67
- if (this.selected && lowerCaseKind === 'ghost') {
70
+ if (this.selected && _kind === 'ghost') {
68
71
  classes.push(`${carbonSettings.prefix}--btn--selected`);
69
72
  }
70
73
  }
71
74
 
72
- if (this.kind && !opts.skeleton) {
73
- classes.push(`${carbonSettings.prefix}--btn--${lowerCaseKind}`);
75
+ if (_kind && !opts.skeleton) {
76
+ classes.push(`${carbonSettings.prefix}--btn--${_kind}`);
74
77
  }
75
78
 
76
79
  let size = this.size ? this.size : this.small && 'sm';
@@ -0,0 +1,14 @@
1
+ export const buttonKinds = [
2
+ '',
3
+ 'primary',
4
+ 'secondary',
5
+ 'tertiary',
6
+ 'ghost',
7
+ 'danger',
8
+ 'danger--ghost',
9
+ 'danger--tertiary',
10
+ ];
11
+ export const buttonSizes = ['', 'default', 'field', 'small', 'sm', 'lg', 'xl'];
12
+
13
+ const CvButtonConsts = { buttonKinds, buttonSizes };
14
+ export default CvButtonConsts;
@@ -29,12 +29,12 @@ export default {
29
29
  mixins: [buttonMixin, carbonPrefixMixin],
30
30
  components: { CvSvg },
31
31
  props: {
32
- label: { type: String, required: true },
32
+ label: { type: String, default: undefined },
33
33
  selected: Boolean,
34
34
  tipPosition: {
35
35
  type: String,
36
36
  default: 'bottom',
37
- validator: val => ['top', 'left', 'bottom', 'right'.includes(val)],
37
+ validator: val => ['top', 'left', 'bottom', 'right'].includes(val),
38
38
  },
39
39
  tipAlignment: { type: String, default: 'center', validator: val => ['start', 'center', 'end'].includes(val) },
40
40
  },
@@ -7,7 +7,6 @@
7
7
  :class="`${carbonPrefix}--checkbox`"
8
8
  type="checkbox"
9
9
  :checked="isChecked === true"
10
- :aria-checked="`${isChecked}`"
11
10
  @focus="onFocus"
12
11
  @blur="onBlur"
13
12
  :value="value"
@@ -6,7 +6,8 @@
6
6
  :disabled="disabled"
7
7
  :feedback="copyFeedback"
8
8
  inline
9
- :aria-label="feedbackAriaLabel"
9
+ :title="feedbackAriaLabel"
10
+ :ariaLabel="feedbackAriaLabel"
10
11
  @click="$emit('copy-code')"
11
12
  ><slot
12
13
  /></cv-feedback-button>
@@ -15,7 +15,8 @@
15
15
  v-if="!hideCopyButton"
16
16
  :disabled="disabled"
17
17
  :feedback="copyFeedback"
18
- :aria-label="feedbackAriaLabel"
18
+ :title="feedbackAriaLabel"
19
+ :ariaLabel="feedbackAriaLabel"
19
20
  @click="$emit('copy-code')"
20
21
  >
21
22
  <Copy16 :class="`${carbonPrefix}--snippet__icon`" />
@@ -16,7 +16,8 @@
16
16
  v-if="!hideCopyButton"
17
17
  :disabled="disabled"
18
18
  :feedback="copyFeedback"
19
- :aria-label="feedbackAriaLabel"
19
+ :ariaLabel="feedbackAriaLabel"
20
+ :title="feedbackAriaLabel"
20
21
  @click="$emit('copy-code')"
21
22
  >
22
23
  <Copy16 :class="`${carbonPrefix}--snippet__icon`" />
@@ -19,7 +19,7 @@ export default {
19
19
  name: 'CvCodeSnippetSkeleton',
20
20
  mixins: [carbonPrefixMixin],
21
21
  props: {
22
- kind: { type: String, default: 'oneline' },
22
+ kind: { type: String, default: 'oneline', validator: val => ['multiline', 'oneline'].includes(val) },
23
23
  },
24
24
  computed: {
25
25
  multi() {
@@ -14,8 +14,9 @@
14
14
  <!-- textarea cannot be fully hidden for clipboard to work -->
15
15
  <textarea
16
16
  class="cv-code-snippet__clippy"
17
- style="position: absolute; left: -9999px; max-width: 0; opacity: 0; overflow: hidden;"
17
+ style="position: absolute; left: -9999px; max-width: 0; opacity: 0; overflow: hidden"
18
18
  aria-hidden="true"
19
+ tabindex="-1"
19
20
  ref="clippy"
20
21
  ></textarea>
21
22
  </component>
@@ -28,7 +28,7 @@
28
28
 
29
29
  <script>
30
30
  import ArrowDown16 from '@carbon/icons-vue/es/arrow--down/16';
31
- import Arrows16 from '@carbon/icons-vue/es/arrows/16';
31
+ import Arrows16 from '@carbon/icons-vue/es/arrows--vertical/16';
32
32
  import CvWrapper from '../cv-wrapper/_cv-wrapper';
33
33
  import { uidMixin, carbonPrefixMixin } from '../../mixins';
34
34
 
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <cv-data-table skeleton :data="data" :columns="cols" v-on="$listeners" v-bind="$attrs">
3
- <template v-if="hasBatchActions" slot="helper-text">
3
+ <template v-if="hasHelperText" slot="helper-text">
4
4
  <slot name="helper-text" />
5
5
  </template>
6
6
 
@@ -29,7 +29,6 @@ export default {
29
29
  },
30
30
  props: {
31
31
  columns: { type: [Array, Number], default: DEFAULTS.COLS },
32
- hasExpandables: Boolean,
33
32
  rows: { type: Number, default: DEFAULTS.ROWS },
34
33
  },
35
34
  data() {