@carbon/vue 3.0.9-alpha.0 → 3.0.10
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/README.md +60 -21
- package/dist/carbon-vue-3.common.js +19707 -19319
- package/dist/carbon-vue-3.common.js.map +1 -1
- package/dist/carbon-vue-3.css +1 -1
- package/dist/carbon-vue-3.umd.js +19658 -19270
- package/dist/carbon-vue-3.umd.js.map +1 -1
- package/dist/carbon-vue-3.umd.min.js +4 -4
- package/dist/carbon-vue-3.umd.min.js.map +1 -1
- package/dist/web-types.json +5477 -0
- package/package.json +10 -42
- package/src/components/CvAccordion/CvAccordionItem.vue +1 -1
- package/src/components/CvButton/CvButton.stories.js +1 -1
- package/src/components/CvButton/CvButton.vue +2 -2
- package/src/components/CvButton/CvIconButton.stories.js +14 -17
- package/src/components/CvButton/CvIconButton.vue +8 -7
- package/src/components/CvCheckbox/CvCheckbox.vue +4 -3
- package/src/components/CvCodeSnippet/CvCodeSnippet.vue +5 -5
- package/src/components/CvCodeSnippet/_CviCodeSnippetInline.vue +2 -2
- package/src/components/CvCodeSnippet/_CviCodeSnippetMultiline.vue +6 -6
- package/src/components/CvCodeSnippet/_CviCodeSnippetOneline.vue +3 -3
- package/src/components/CvComboBox/CvComboBox.vue +8 -8
- package/src/components/CvContentSwitcher/CvContentSwitcher.vue +1 -1
- package/src/components/CvContentSwitcher/CvContentSwitcherButton.vue +1 -1
- package/src/components/CvCopyButton/CvCopyButton.vue +1 -1
- package/src/components/CvCopyButton/_CviCopyButton.vue +2 -2
- package/src/components/CvDataTable/CvDataTable.vue +29 -27
- package/src/components/CvDataTable/CvDataTableHeading.vue +9 -9
- package/src/components/CvDataTable/CvDataTableRow.vue +6 -6
- package/src/components/CvDataTable/CvDataTableSkeleton.vue +3 -3
- package/src/components/CvDataTable/_CvDataTableRowInner.vue +9 -9
- package/src/components/CvDatePicker/CvDatePicker.vue +10 -10
- package/src/components/CvDatePicker/CvDatePickerSkeleton.vue +3 -3
- package/src/components/CvDropdown/CvDropdown.vue +7 -9
- package/src/components/CvDropdown/CvDropdownItem.vue +1 -1
- package/src/components/CvFileUploader/CvFileUploader.stories.mdx +24 -6
- package/src/components/CvFileUploader/CvFileUploader.vue +65 -26
- package/src/components/CvFileUploader/CvFileUploaderItem.vue +1 -1
- package/src/components/CvForm/CvFormGroup.vue +2 -2
- package/src/components/CvGrid/CvColumn.vue +5 -0
- package/src/components/CvLink/CvLink.vue +1 -1
- package/src/components/CvLoading/CvLoading.stories.js +1 -1
- package/src/components/CvLoading/CvLoading.vue +1 -1
- package/src/components/CvModal/CvModal.vue +19 -19
- package/src/components/CvMultiSelect/CvMultiSelect.vue +4 -4
- package/src/components/CvNotification/CvToastNotification.stories.js +12 -15
- package/src/components/CvNotification/CvToastNotification.vue +1 -1
- package/src/components/CvNumberInput/CvNumberInput.vue +3 -6
- package/src/components/CvOverflowMenu/CvOverflowMenu.vue +11 -10
- package/src/components/CvOverflowMenu/CvOverflowMenuItem.vue +1 -1
- package/src/components/CvPagination/CvPagination.vue +11 -15
- package/src/components/CvProgress/CvProgress.vue +1 -1
- package/src/components/CvProgress/CvProgressStep.vue +5 -5
- package/src/components/CvRadioButton/CvRadioButton.vue +3 -3
- package/src/components/CvSearch/CvSearch.vue +11 -10
- package/src/components/CvSelect/CvSelect.vue +1 -1
- package/src/components/CvSlider/CvSlider.vue +7 -7
- package/src/components/CvSlider/__tests__/__snapshots__/CvSlider.spec.js.snap +1 -1
- package/src/components/CvStructuredList/CvStructuredListItem.vue +3 -3
- package/src/components/CvStructuredList/CvStructuredListItemSelectable.vue +1 -1
- package/src/components/CvStructuredList/__tests__/__snapshots__/CvStructuredListItem.spec.js.snap +3 -3
- package/src/components/CvSvg/__tests__/_TestIcon.vue +2 -2
- package/src/components/CvTabs/CvTab.vue +1 -1
- package/src/components/CvTabs/CvTabs.stories.mdx +84 -3
- package/src/components/CvTabs/CvTabs.vue +15 -13
- package/src/components/CvTabs/__tests__/__snapshots__/CvTabs.spec.js.snap +24 -0
- package/src/components/CvTag/CvTag.stories.js +3 -2
- package/src/components/CvTag/CvTag.vue +11 -6
- package/src/components/CvTag/CvTagSkeleton.stories.js +39 -0
- package/src/components/CvTag/CvTagSkeleton.vue +20 -0
- package/src/components/CvTag/index.js +2 -1
- package/src/components/CvTextArea/CvTextArea.vue +6 -6
- package/src/components/CvTextInput/CvTextInput.stories.js +28 -16
- package/src/components/CvTextInput/CvTextInput.vue +37 -7
- package/src/components/CvTextInput/CvTextInputSkeleton.vue +17 -0
- package/src/components/CvTextInput/index.js +2 -1
- package/src/components/CvTile/CvTile.vue +3 -3
- package/src/components/CvTile/CvTileExpandable.vue +7 -7
- package/src/components/CvTile/CvTileSelectable.vue +2 -2
- package/src/components/CvTimePicker/CvTimePicker.vue +1 -1
- package/src/components/CvTooltip/CvDefinitionTooltip.vue +2 -2
- package/src/components/CvTooltip/CvInteractiveTooltip.vue +6 -6
- package/src/components/CvTooltip/__tests__/__snapshots__/CvTooltip.spec.js.snap +14 -14
- package/src/components/CvUIShell/CvHeader.vue +1 -1
- package/src/components/CvUIShell/CvHeaderGlobalAction.vue +7 -7
- package/src/components/CvUIShell/CvHeaderMenu.vue +3 -3
- package/src/components/CvUIShell/CvHeaderMenuButton.vue +2 -2
- package/src/components/CvUIShell/CvHeaderMenuItem.vue +2 -2
- package/src/components/CvUIShell/CvHeaderName.vue +1 -1
- package/src/components/CvUIShell/CvHeaderNav.vue +1 -1
- package/src/components/CvUIShell/CvHeaderPanel.vue +3 -2
- package/src/components/CvUIShell/CvSideNav.vue +5 -4
- package/src/components/CvUIShell/CvSideNavItems.vue +1 -1
- package/src/components/CvUIShell/CvSideNavLink.vue +1 -1
- package/src/components/CvUIShell/_CvSideNavFooter.vue +2 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @carbon/vue-3
|
|
2
2
|
|
|
3
|
-
<p
|
|
3
|
+
<p>
|
|
4
4
|
<a href="https://github.com/carbon-design-system/carbon/blob/master/LICENSE">
|
|
5
5
|
<img src="https://img.shields.io/badge/license-Apache--2.0-blue.svg" alt="Carbon is released under the Apache-2.0 license" />
|
|
6
6
|
</a>
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
<a href="https://github.com/carbon-design-system/carbon/blob/master/.github/CONTRIBUTING.md">
|
|
14
14
|
<img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs welcome" />
|
|
15
15
|
</a>
|
|
16
|
+
<a href="https://discord.gg/J7JEUEkTRX">
|
|
17
|
+
<img src="https://img.shields.io/discord/689212587170201628?color=5865F2" alt="Chat with us on Discord">
|
|
18
|
+
</a>
|
|
16
19
|
</p>
|
|
17
20
|
|
|
18
21
|
> Vue implementation of the Carbon Design System
|
|
@@ -26,34 +29,70 @@ The [library](http://vue.carbondesignsystem.com/) provides front-end developers
|
|
|
26
29
|
|
|
27
30
|
As a community project contributions are not only welcome, but essential for the maintenance and growth of this project.
|
|
28
31
|
|
|
29
|
-
|
|
32
|
+
## Install
|
|
33
|
+
|
|
34
|
+
```shell
|
|
35
|
+
npm add @carbon/vue
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
or
|
|
39
|
+
|
|
40
|
+
```shell
|
|
41
|
+
$ yarn add @carbon/vue
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Add to Vue project
|
|
45
|
+
|
|
46
|
+
`src/main.js`
|
|
47
|
+
|
|
48
|
+
```js
|
|
49
|
+
import CarbonVue3 from '@carbon/vue';
|
|
50
|
+
import App from './App.vue';
|
|
51
|
+
const app = createApp(App);
|
|
52
|
+
app.use(CarbonVue3);
|
|
53
|
+
app.mount('#app');
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
See [Hello Carbon Vue](https://github.com/IBM/hello-carbon-vue3) for an example Vue project with Carbon.
|
|
57
|
+
|
|
58
|
+
### Add to Nuxt project
|
|
59
|
+
|
|
60
|
+
`plugins/carbon-vue.js`
|
|
61
|
+
|
|
62
|
+
```js
|
|
63
|
+
import CarbonVue from '@carbon/vue'
|
|
64
|
+
|
|
65
|
+
export default defineNuxtPlugin((nuxtApp) => {
|
|
66
|
+
nuxtApp.vueApp.use(CarbonVue)
|
|
67
|
+
}
|
|
68
|
+
```
|
|
30
69
|
|
|
31
|
-
|
|
70
|
+
See [Hello Carbon Nuxt](#add-to-nuxt-project) **coming soon**
|
|
32
71
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
72
|
+
### Vue 3
|
|
73
|
+
|
|
74
|
+
- Vue 2 support will end on Dec 31, 2023. Learn [more](https://vuejs.org/guide/introduction.html).
|
|
75
|
+
- Upgrading from Vue 2? Check out the [Migration Guide](https://v3-migration.vuejs.org/).
|
|
76
|
+
- Vue 2 components can be found on the `vue2` [branch](https://github.com/carbon-design-system/carbon-components-vue/tree/vue2)
|
|
77
|
+
|
|
78
|
+
Vue 3 components for Carbon 10 have reached parity with the Vue 2 components.
|
|
79
|
+
More work is needed especially around accessibility. If you want to improve Vue 3 components follow these guidelines.
|
|
80
|
+
|
|
81
|
+
1. Fork this repo and checkout the `main` branch
|
|
82
|
+
2. Look to see which components are currently being improved. You can do this by looking in the [issues list](https://github.com/carbon-design-system/carbon-components-vue/issues).
|
|
83
|
+
3. If you want to improve a component, look in the open issue list to see if someone else might already be working on it. Look for issues with a "V3 - Vue3" label and the name of the component. For example "**CvDatePicker - improving accessibility**".
|
|
84
|
+
4. If no one else is already working on it, create an issue using the "🍪 Vue 3 - improve component" and label it as above.
|
|
37
85
|
- Work on the component and create a PR when you are ready.
|
|
38
86
|
- Components are expected to be implemented as [single file components](https://vuejs.org/guide/scaling-up/sfc.html) using the Vue [composition api](https://vuejs.org/guide/extras/composition-api-faq.html). See `CvCheckbox` as an example. The Vue 2 components use the options API.
|
|
39
|
-
- You should reference the
|
|
40
|
-
|
|
41
|
-
- You should
|
|
42
|
-
|
|
43
|
-
src/components/CvCheckbox/CvCheckbox.stories.js
|
|
44
|
-
src/components/CvCheckbox/CvCheckbox.vue
|
|
45
|
-
src/components/CvCheckbox/__tests__/CvCheckbox.spec.js
|
|
46
|
-
src/components/CvCheckbox/index.js
|
|
47
|
-
```
|
|
87
|
+
- You should reference the DOM in the React components storybook and be sure to include any accessibility
|
|
88
|
+
improvements that might be there.
|
|
89
|
+
- You should update the story and test cases for the component if applicable. Sometimes the story might need updating
|
|
90
|
+
almost always the test cases for the component will need updates.
|
|
48
91
|
- If you have question tag @davidnixon in your issue and let me know how I can help.
|
|
49
92
|
|
|
50
93
|
### Changelog
|
|
51
94
|
|
|
52
|
-
[CHANGELOG.md](./
|
|
53
|
-
|
|
54
|
-
## Getting started
|
|
55
|
-
|
|
56
|
-
[Usage and getting started instructions](./packages/core/README.md#getting-started) for @carbon/vue.
|
|
95
|
+
[CHANGELOG.md](./CHANGELOG.md)
|
|
57
96
|
|
|
58
97
|
### List of available components
|
|
59
98
|
|