@vcita/design-system 0.0.12-prod.beta.21 → 0.1.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/README.md +24 -16
- package/dist/@vcita/design-system.esm.js +1373 -750
- package/dist/@vcita/design-system.min.js +1 -1
- package/dist/@vcita/design-system.ssr.js +1341 -750
- package/init/DesignSystem.js +77 -0
- package/init/VcSvg/VcSvg.stories.js +25 -0
- package/{src/components → init}/VcSvg/VcSvg.vue +0 -0
- package/init/vuetify.config.js +132 -0
- package/package.json +6 -6
- package/src/assets/logo.png +0 -0
- package/src/assets/logo.svg +1 -0
- package/src/components/VcActionList/VcActionList.spec.js +39 -0
- package/src/components/VcActionList/VcActionList.stories.js +56 -0
- package/src/components/VcActionList/VcActionList.vue +82 -0
- package/src/components/VcActions/VcActions.spec.js +39 -0
- package/src/components/VcActions/VcActions.stories.js +95 -0
- package/src/components/VcActions/VcActions.vue +60 -0
- package/src/components/VcAlert/VcAlert.spec.js +162 -0
- package/src/components/VcAlert/VcAlert.stories.js +105 -0
- package/src/components/VcAlert/VcAlert.vue +2 -12
- package/src/components/VcAutoComplete/VcAutoComplete.spec.js +67 -0
- package/src/components/VcAutoComplete/VcAutoComplete.stories.js +99 -0
- package/src/components/VcAvatar/VcAvatar.spec.js +110 -0
- package/src/components/VcAvatar/VcAvatar.stories.js +101 -0
- package/src/components/VcBottomActions/VcBottomActions.spec.js +39 -0
- package/src/components/VcBottomActions/VcBottomActions.stories.js +100 -0
- package/src/components/VcBottomActions/VcBottomActions.vue +158 -0
- package/src/components/VcButton/VcButton.spec.js +181 -0
- package/src/components/VcButton/VcButton.stories.js +123 -0
- package/src/components/VcButton/VcButton.stories.mdx.old +40 -0
- package/src/components/VcButton/VcButton.vue +4 -0
- package/src/components/VcButtonGroup/VcButtonGroup.spec.js +209 -0
- package/src/components/VcButtonGroup/VcButtonGroup.stories.js +109 -0
- package/src/components/VcButtonGroup/VcButtonGroup.vue +5 -1
- package/src/components/VcCard/VcCard.spec.js +38 -0
- package/src/components/VcCard/VcCard.stories.js +28 -0
- package/src/components/VcCard/VcCard.vue +46 -0
- package/src/components/VcExpansionPanels/VcExpansionPanels.stories.js +36 -0
- package/src/components/VcForm/VcForm.spec.js +38 -0
- package/src/components/VcForm/VcForm.stories.js +44 -0
- package/src/components/VcHourInput/VcHourInput.stories.js +36 -0
- package/src/components/VcIcon/VcIcon.spec.js +38 -0
- package/src/components/VcIcon/VcIcon.stories.js +53 -0
- package/src/components/VcIconWithTooltip/VcIconWithTooltip.spec.js +39 -0
- package/src/components/VcIconWithTooltip/VcIconWithTooltip.stories.js +77 -0
- package/src/components/VcIconWithTooltip/VcIconWithTooltip.vue +106 -0
- package/src/components/VcLayout/VcLayout.spec.js +38 -0
- package/src/components/VcLayout/VcLayout.stories.js +26 -0
- package/src/components/VcLoader/VcLoader.spec.js +38 -0
- package/src/components/VcLoader/VcLoader.stories.js +30 -0
- package/src/components/VcLoader/VcLoader.vue +1 -1
- package/src/components/VcMenu/VcMenu.spec.js +38 -0
- package/src/components/VcMenu/VcMenu.stories.js +45 -0
- package/src/components/VcSwitch/VcSwitch.spec.js +38 -0
- package/src/components/VcSwitch/VcSwitch.stories.js +87 -0
- package/src/components/VcSwitch/VcSwitch.vue +14 -1
- package/src/components/VcTextArea/VcTextArea.spec.js +41 -0
- package/src/components/VcTextArea/VcTextArea.stories.js +144 -0
- package/src/components/VcTextArea/VcTextArea.vue +21 -10
- package/src/components/VcTextField/VcTextField.spec.js +170 -0
- package/src/components/VcTextField/VcTextField.stories.js +65 -0
- package/src/components/VcTextField/VcTextField.vue +4 -3
- package/src/components/VcToast/VcToast.spec.js +75 -0
- package/src/components/VcToast/VcToast.stories.js +80 -0
- package/src/components/VcToast/VcToast.vue +11 -15
- package/src/components/VcTooltip/VcTooltip.spec.js +58 -0
- package/src/components/VcTooltip/VcTooltip.stories.js +163 -0
- package/src/components/VcTooltip/VcTooltip.vue +154 -0
- package/src/components/index.js +26 -0
- package/src/components/modal/VcConfirmModal/VcConfirmModal.spec.js +48 -0
- package/src/components/modal/VcConfirmModal/VcConfirmModal.stories.js +142 -0
- package/src/components/modal/VcConfirmProminentModal/VcConfirmProminentModal.spec.js +49 -0
- package/src/components/modal/VcConfirmProminentModal/VcConfirmProminentModal.stories.js +53 -0
- package/src/components/modal/VcInputModal/VcInputModal.spec.js +79 -0
- package/src/components/modal/VcInputModal/VcInputModal.stories.js +188 -0
- package/src/components/modal/VcNoticeModal/VcNoticeModal.spec.js +54 -0
- package/src/components/modal/VcNoticeModal/VcNoticeModal.stories.js +136 -0
- package/src/components/modal/elements/VcModalContainer.spec.js +38 -0
- package/src/components/modal/elements/VcModalContainer.stories.js +49 -0
- package/src/components/modal/elements/VcModalFooter.spec.js +82 -0
- package/src/components/modal/elements/VcModalFooter.stories.js +47 -0
- package/src/components/modal/elements/VcModalHeader.spec.js +103 -0
- package/src/components/modal/elements/VcModalHeader.stories.js +91 -0
- package/src/components/modal/elements/VcModalWrapper.spec.js +38 -0
- package/src/components/modal/elements/VcModalWrapper.stories.js +34 -0
- package/src/entry.esm.js +16 -0
- package/src/entry.js +13 -0
- package/src/scss/_i18n-mixins.scss +174 -0
- package/src/scss/mixins.scss +7 -0
- package/src/stories/assets/HeaderImage.svg +9 -0
- package/src/stories/assets/code-brackets.svg +1 -0
- package/src/stories/assets/colors.svg +1 -0
- package/src/stories/assets/comments.svg +1 -0
- package/src/stories/assets/direction.svg +1 -0
- package/src/stories/assets/flow.svg +1 -0
- package/src/stories/assets/plugin.svg +1 -0
- package/src/stories/assets/rabbit.svg +17 -0
- package/src/stories/assets/repo.svg +1 -0
- package/src/stories/assets/stackalt.svg +1 -0
- package/src/stories/colors.stories.mdx +78 -0
- package/src/stories/welcome.stories.mdx +210 -0
- package/styles/variables.scss +72 -13
package/README.md
CHANGED
|
@@ -21,11 +21,10 @@ Development will proceed by using the storybook.
|
|
|
21
21
|
### Code standards
|
|
22
22
|
|
|
23
23
|
1. The component name will start with Vc and be camel cased. example: VcComponent.vue
|
|
24
|
-
2. Emitted events will start with "on" and be camel cased. example: 'onButtonClicked'.
|
|
25
|
-
|
|
26
|
-
3. Don't use v-bind="$attrs" and v-on="$listeners", that's not the way.
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
2. Emitted events will start with "on" and be camel cased. example: 'onButtonClicked'. Except for standard events such
|
|
25
|
+
as "click" or "input".
|
|
26
|
+
3. Don't use v-bind="$attrs" and v-on="$listeners", that's not the way. If you find yourself needing a lot of props, you
|
|
27
|
+
may need to implement it using a render function instead.
|
|
29
28
|
|
|
30
29
|
### Guidelines and best practices
|
|
31
30
|
|
|
@@ -98,20 +97,24 @@ npm run storybook
|
|
|
98
97
|
```
|
|
99
98
|
|
|
100
99
|
### Ongoing development
|
|
101
|
-
|
|
102
|
-
In
|
|
100
|
+
|
|
101
|
+
In many cases, you don't want to publish the package each time you make a change. In those cases it can may life much
|
|
102
|
+
easier to install the package directly from your branch in git.
|
|
103
103
|
|
|
104
104
|
```
|
|
105
105
|
npm install "https://github.com/vcita/design-system.git#branch" --save
|
|
106
106
|
```
|
|
107
107
|
|
|
108
108
|
so to install from integration for example, run
|
|
109
|
+
|
|
109
110
|
```
|
|
110
111
|
npm install "https://github.com/vcita/design-system.git#example" --save
|
|
111
112
|
```
|
|
112
|
-
Note: before releasing, make sure to publish a version and use that in your project, or tracking version changes will become impossible.
|
|
113
113
|
|
|
114
|
-
|
|
114
|
+
Note: before releasing, make sure to publish a version and use that in your project, or tracking version changes will
|
|
115
|
+
become impossible.
|
|
116
|
+
|
|
117
|
+
### Publishing the package to npm
|
|
115
118
|
|
|
116
119
|
You may first need to run
|
|
117
120
|
|
|
@@ -151,7 +154,7 @@ npm run lint
|
|
|
151
154
|
|
|
152
155
|
### Initializing in your project
|
|
153
156
|
|
|
154
|
-
|
|
157
|
+
To initialize the project
|
|
155
158
|
|
|
156
159
|
```
|
|
157
160
|
import DesignSystem from '@vcita/design-system';
|
|
@@ -160,16 +163,21 @@ import Vue from "vue";
|
|
|
160
163
|
Vue.use(DesignSystem);
|
|
161
164
|
```
|
|
162
165
|
|
|
163
|
-
|
|
166
|
+
If you need to also adjust some values, such as theme or configurations, it will look something like this:
|
|
164
167
|
|
|
165
168
|
```
|
|
166
|
-
import DesignSystem from '@vcita/design-system';
|
|
167
169
|
import Vue from "vue";
|
|
170
|
+
import DesignSystem from '@vcita/design-system';
|
|
171
|
+
import DesignSystemInit from '@vcita/design-system/init/DesignSystem';
|
|
172
|
+
|
|
173
|
+
Vue.use(DesignSystem);
|
|
174
|
+
|
|
175
|
+
const config = {
|
|
176
|
+
theme: { primary: '#123456'},
|
|
177
|
+
options: {toastTimeout: 5000 }
|
|
178
|
+
};
|
|
168
179
|
|
|
169
|
-
|
|
170
|
-
theme: { primary: '#123456'},
|
|
171
|
-
options: {toastTimeout: 5000 }
|
|
172
|
-
});
|
|
180
|
+
export default DesignSystemInit(config);
|
|
173
181
|
```
|
|
174
182
|
|
|
175
183
|
### Customize configuration
|