@vcita/design-system 1.0.3 → 1.0.6
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 +138 -14
- package/config/locales/ds.de.yml +16 -0
- package/config/locales/ds.en.yml +28 -0
- package/config/locales/ds.es.yml +16 -0
- package/config/locales/ds.fr.yml +16 -0
- package/config/locales/ds.he.yml +16 -0
- package/config/locales/ds.it.yml +16 -0
- package/config/locales/ds.keys.yml +16 -0
- package/config/locales/ds.nl.yml +16 -0
- package/config/locales/ds.pl.yml +16 -0
- package/config/locales/ds.pseudo.yml +16 -0
- package/config/locales/ds.pt.yml +16 -0
- package/config/locales/ds.ru.yml +6 -0
- package/config/locales/ds.sl.yml +6 -0
- package/config/locales/ds.tr.yml +6 -0
- package/config/locales/ds.zun.yml +6 -0
- package/dist/@vcita/design-system.esm.js +8472 -48
- package/dist/@vcita/design-system.min.js +1 -1
- package/dist/@vcita/design-system.ssr.js +8031 -35
- package/init/DesignSystem.js +123 -0
- package/init/SvgIcons.js +45 -0
- package/init/initI18n.js +52 -0
- package/init/svgImages.js +12 -0
- package/init/vuetify.config.js +36 -0
- package/package.json +28 -16
- package/src/components/VcActionList/VcActionList.spec.js +57 -0
- package/src/components/VcActionList/VcActionList.stories.js +57 -0
- package/src/components/VcActionList/VcActionList.vue +83 -0
- package/src/components/VcActions/VcActions.spec.js +153 -0
- package/src/components/VcActions/VcActions.stories.js +103 -0
- package/src/components/VcActions/VcActions.vue +68 -0
- package/src/components/VcAlert/VcAlert.spec.js +222 -0
- package/src/components/VcAlert/VcAlert.stories.js +107 -0
- package/src/components/VcAlert/VcAlert.vue +305 -0
- package/src/components/VcAutoComplete/VcAutoComplete.spec.js +67 -0
- package/src/components/VcAutoComplete/VcAutoComplete.stories.js +99 -0
- package/src/components/VcAutoComplete/VcAutoComplete.vue +95 -0
- package/src/components/VcAvatar/VcAvatar.spec.js +110 -0
- package/src/components/VcAvatar/VcAvatar.stories.js +112 -0
- package/src/components/VcAvatar/VcAvatar.vue +284 -0
- package/src/components/VcBadge/VcBadge.spec.js +95 -0
- package/src/components/VcBadge/VcBadge.stories.js +45 -0
- package/src/components/VcBadge/VcBadge.vue +55 -0
- package/src/components/VcBanner/VcBanner.spec.js +117 -0
- package/src/components/VcBanner/VcBanner.stories.js +73 -0
- package/src/components/VcBanner/VcBanner.vue +236 -0
- package/src/components/VcBottomActions/VcBottomActions.spec.js +64 -0
- package/src/components/VcBottomActions/VcBottomActions.stories.js +103 -0
- package/src/components/VcBottomActions/VcBottomActions.vue +158 -0
- package/src/components/VcBottomSheet/VcBottomSheet.spec.js +71 -0
- package/src/components/VcBottomSheet/VcBottomSheet.stories.js +64 -0
- package/src/components/VcBottomSheet/VcBottomSheet.vue +52 -0
- package/src/components/VcButton/VcButton.spec.js +249 -0
- package/src/components/VcButton/VcButton.stories.js +258 -0
- package/src/components/VcButton/VcButton.vue +155 -43
- package/src/components/VcButtonGroup/VcButtonGroup.spec.js +209 -0
- package/src/components/VcButtonGroup/VcButtonGroup.stories.js +109 -0
- package/src/components/VcButtonGroup/VcButtonGroup.vue +176 -0
- package/src/components/VcCard/VcCard.spec.js +85 -0
- package/src/components/VcCard/VcCard.stories.js +32 -0
- package/src/components/VcCard/VcCard.vue +68 -0
- package/src/components/VcCheckbox/VcCheckbox.spec.js +115 -0
- package/src/components/VcCheckbox/VcCheckbox.stories.js +129 -0
- package/src/components/VcCheckbox/VcCheckbox.vue +189 -0
- package/src/components/VcChip/VcChip.spec.js +121 -0
- package/src/components/VcChip/VcChip.stories.js +53 -0
- package/src/components/VcChip/VcChip.vue +138 -0
- package/src/components/VcDocItem/VcDocItem.spec.js +142 -0
- package/src/components/VcDocItem/VcDocItem.stories.js +75 -0
- package/src/components/VcDocItem/VcDocItem.vue +165 -0
- package/src/components/VcDocItem/mockData.js +8 -0
- package/src/components/VcDropzone/VcDropzone.spec.js +233 -0
- package/src/components/VcDropzone/VcDropzone.stories.js +49 -0
- package/src/components/VcDropzone/VcDropzone.vue +187 -0
- package/src/components/VcEmptyState/VcEmptyState.spec.js +113 -0
- package/src/components/VcEmptyState/VcEmptyState.stories.js +69 -0
- package/src/components/VcEmptyState/VcEmptyState.vue +150 -0
- package/src/components/VcExpansionCard/VcExpansionCard.spec.js +146 -0
- package/src/components/VcExpansionCard/VcExpansionCard.stories.js +122 -0
- package/src/components/VcExpansionCard/VcExpansionCard.vue +162 -0
- package/src/components/VcFilterPanel/VcFilterPanel.spec.js +80 -0
- package/src/components/VcFilterPanel/VcFilterPanel.stories.js +40 -0
- package/src/components/VcFilterPanel/VcFilterPanel.vue +135 -0
- package/src/components/VcFocusArea/VcFocusArea.spec.js +58 -0
- package/src/components/VcFocusArea/VcFocusArea.stories.js +39 -0
- package/src/components/VcFocusArea/VcFocusArea.vue +27 -0
- package/src/components/VcForm/VcForm.spec.js +38 -0
- package/src/components/VcForm/VcForm.stories.js +43 -0
- package/src/components/VcForm/VcForm.vue +23 -0
- package/src/components/VcIcon/VcIcon.spec.js +41 -0
- package/src/components/VcIcon/VcIcon.stories.js +60 -0
- package/src/components/VcIcon/VcIcon.vue +18 -0
- package/src/components/VcIconWithTooltip/VcIconWithTooltip.spec.js +157 -0
- package/src/components/VcIconWithTooltip/VcIconWithTooltip.stories.js +77 -0
- package/src/components/VcIconWithTooltip/VcIconWithTooltip.vue +107 -0
- package/src/components/VcImage/VcImage.spec.js +46 -0
- package/src/components/VcImage/VcImage.stories.js +36 -0
- package/src/components/VcImage/VcImage.vue +42 -0
- package/src/components/VcInputBottomSheet/VcInputBottomSheet.spec.js +149 -0
- package/src/components/VcInputBottomSheet/VcInputBottomSheet.stories.js +94 -0
- package/src/components/VcInputBottomSheet/VcInputBottomSheet.vue +156 -0
- package/src/components/VcInputPopover/VcInputPopover.spec.js +134 -0
- package/src/components/VcInputPopover/VcInputPopover.stories.js +102 -0
- package/src/components/VcInputPopover/VcInputPopover.vue +147 -0
- package/src/components/VcLayout/VcLayout.spec.js +38 -0
- package/src/components/VcLayout/VcLayout.stories.js +26 -0
- package/src/components/VcLayout/VcLayout.vue +17 -0
- package/src/components/VcLink/VcLink.spec.js +162 -0
- package/src/components/VcLink/VcLink.stories.js +65 -0
- package/src/components/VcLink/VcLink.vue +98 -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 +32 -0
- package/src/components/VcMenu/VcMenu.spec.js +38 -0
- package/src/components/VcMenu/VcMenu.stories.js +45 -0
- package/src/components/VcMenu/VcMenu.vue +16 -0
- package/src/components/VcPopover/VcPopover.spec.js +80 -0
- package/src/components/VcPopover/VcPopover.stories.js +71 -0
- package/src/components/VcPopover/VcPopover.vue +62 -0
- package/src/components/VcProgressCircular/VcProgressCircular.spec.js +109 -0
- package/src/components/VcProgressCircular/VcProgressCircular.stories.js +58 -0
- package/src/components/VcProgressCircular/VcProgressCircular.vue +88 -0
- package/src/components/VcRadio/VcRadio.spec.js +67 -0
- package/src/components/VcRadio/VcRadio.stories.js +72 -0
- package/src/components/VcRadio/VcRadio.vue +129 -0
- package/src/components/VcRadioGroup/VcRadioGroup.spec.js +141 -0
- package/src/components/VcRadioGroup/VcRadioGroup.stories.js +91 -0
- package/src/components/VcRadioGroup/VcRadioGroup.vue +82 -0
- package/src/components/VcSearchBar/VcSearchBar.spec.js +146 -0
- package/src/components/VcSearchBar/VcSearchBar.stories.js +55 -0
- package/src/components/VcSearchBar/VcSearchBar.vue +146 -0
- package/src/components/VcSegmentedControl/VcSegmentedControl.spec.js +109 -0
- package/src/components/VcSegmentedControl/VcSegmentedControl.stories.js +45 -0
- package/src/components/VcSegmentedControl/VcSegmentedControl.vue +119 -0
- package/src/components/VcSelectField/VcSelectField.spec.js +140 -0
- package/src/components/VcSelectField/VcSelectField.stories.js +211 -0
- package/src/components/VcSelectField/VcSelectField.vue +211 -0
- package/src/components/VcSvg/VcSvg.stories.js +24 -0
- package/src/components/VcSvg/VcSvg.vue +10 -0
- package/src/components/VcSwitch/VcSwitch.spec.js +78 -0
- package/src/components/VcSwitch/VcSwitch.stories.js +115 -0
- package/src/components/VcSwitch/VcSwitch.vue +253 -0
- package/src/components/VcTextArea/VcTextArea.spec.js +41 -0
- package/src/components/VcTextArea/VcTextArea.stories.js +177 -0
- package/src/components/VcTextArea/VcTextArea.vue +165 -0
- package/src/components/VcTextField/VcTextField.spec.js +176 -0
- package/src/components/VcTextField/VcTextField.stories.js +151 -0
- package/src/components/VcTextField/VcTextField.vue +211 -0
- package/src/components/VcTimeSince/VcTimeSince.spec.js +115 -0
- package/src/components/VcTimeSince/VcTimeSince.stories.js +50 -0
- package/src/components/VcTimeSince/VcTimeSince.vue +57 -0
- package/src/components/VcToast/VcToast.spec.js +75 -0
- package/src/components/VcToast/VcToast.stories.js +80 -0
- package/src/components/VcToast/VcToast.vue +51 -0
- package/src/components/VcTooltip/VcTooltip.spec.js +58 -0
- package/src/components/VcTooltip/VcTooltip.stories.js +191 -0
- package/src/components/VcTooltip/VcTooltip.vue +167 -0
- package/src/components/VcUpsellBlock/VcUpsellBlock.spec.js +104 -0
- package/src/components/VcUpsellBlock/VcUpsellBlock.stories.js +124 -0
- package/src/components/VcUpsellBlock/VcUpsellBlock.vue +289 -0
- package/src/components/index.js +60 -0
- package/src/components/list/VcGroupHeader/VcGroupHeader.spec.js +70 -0
- package/src/components/list/VcGroupHeader/VcGroupHeader.stories.js +30 -0
- package/src/components/list/VcGroupHeader/VcGroupHeader.vue +54 -0
- package/src/components/list/VcInfiniteScroll/VcInfiniteScroll.spec.js +68 -0
- package/src/components/list/VcInfiniteScroll/VcInfiniteScroll.stories.js +93 -0
- package/src/components/list/VcInfiniteScroll/VcInfiniteScroll.vue +66 -0
- package/src/components/list/VcListEntity/VcListEntity.spec.js +95 -0
- package/src/components/list/VcListEntity/VcListEntity.stories.js +77 -0
- package/src/components/list/VcListEntity/VcListEntity.vue +70 -0
- package/src/components/list/VcListItem/VcListItem.spec.js +113 -0
- package/src/components/list/VcListItem/VcListItem.stories.js +67 -0
- package/src/components/list/VcListItem/VcListItem.vue +105 -0
- package/src/components/listBox/VcChecklistItem/VcChecklistItem.spec.js +93 -0
- package/src/components/listBox/VcChecklistItem/VcChecklistItem.stories.js +56 -0
- package/src/components/listBox/VcChecklistItem/VcChecklistItem.vue +122 -0
- package/src/components/listBox/VcListbox/VcListbox.spec.js +187 -0
- package/src/components/listBox/VcListbox/VcListbox.stories.js +89 -0
- package/src/components/listBox/VcListbox/VcListbox.vue +244 -0
- package/src/components/modal/VcConfirmModal/VcConfirmModal.spec.js +50 -0
- package/src/components/modal/VcConfirmModal/VcConfirmModal.stories.js +146 -0
- package/src/components/modal/VcConfirmModal/VcConfirmModal.vue +95 -0
- package/src/components/modal/VcConfirmProminentModal/VcConfirmProminentModal.spec.js +51 -0
- package/src/components/modal/VcConfirmProminentModal/VcConfirmProminentModal.stories.js +62 -0
- package/src/components/modal/VcConfirmProminentModal/VcConfirmProminentModal.vue +76 -0
- package/src/components/modal/VcInputModal/VcInputModal.spec.js +81 -0
- package/src/components/modal/VcInputModal/VcInputModal.stories.js +207 -0
- package/src/components/modal/VcInputModal/VcInputModal.vue +150 -0
- package/src/components/modal/VcNoticeModal/VcNoticeModal.spec.js +56 -0
- package/src/components/modal/VcNoticeModal/VcNoticeModal.stories.js +149 -0
- package/src/components/modal/VcNoticeModal/VcNoticeModal.vue +184 -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/VcModalContainer.vue +236 -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/VcModalFooter.vue +92 -0
- package/src/components/modal/elements/VcModalHeader.spec.js +122 -0
- package/src/components/modal/elements/VcModalHeader.stories.js +108 -0
- package/src/components/modal/elements/VcModalHeader.vue +204 -0
- package/src/components/modal/elements/VcModalWrapper.spec.js +62 -0
- package/src/components/modal/elements/VcModalWrapper.stories.js +35 -0
- package/src/components/modal/elements/VcModalWrapper.vue +55 -0
- package/src/components/wizard/VcMobileWizardProgress/VcMobileWizardProgress.spec.js +109 -0
- package/src/components/wizard/VcMobileWizardProgress/VcMobileWizardProgress.stories.js +58 -0
- package/src/components/wizard/VcMobileWizardProgress/VcMobileWizardProgress.vue +89 -0
- package/src/components/wizard/VcSteperContent/VcStepperContent.spec.js +184 -0
- package/src/components/wizard/VcSteperContent/VcStepperContent.stories.js +103 -0
- package/src/components/wizard/VcSteperContent/VcStepperContent.vue +175 -0
- package/src/components/wizard/VcSteperContent/demoPage.vue +33 -0
- package/src/components/wizard/VcStepsBar/VcStepsBar.spec.js +122 -0
- package/src/components/wizard/VcStepsBar/VcStepsBar.stories.js +56 -0
- package/src/components/wizard/VcStepsBar/VcStepsBar.vue +194 -0
- package/src/components/wizard/VcWizard/VcWizard.spec.js +186 -0
- package/src/components/wizard/VcWizard/VcWizard.stories.js +125 -0
- package/src/components/wizard/VcWizard/VcWizard.vue +165 -0
- package/src/components/wizard/VcWizard/demoWizardPage.vue +46 -0
- package/src/components/wizard/VcWizardCtaContainer/VcWizardCtaContainer.spec.js +100 -0
- package/src/components/wizard/VcWizardCtaContainer/VcWizardCtaContainer.stories.js +67 -0
- package/src/components/wizard/VcWizardCtaContainer/VcWizardCtaContainer.vue +97 -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 +27 -0
- package/src/stories/assets/HeaderImage.svg +9 -0
- package/src/stories/assets/code-brackets.svg +1 -0
- package/src/stories/assets/flow.svg +1 -0
- package/src/stories/assets/pics/black-widow.jpeg +0 -0
- package/src/stories/assets/pics/creditCard.png +0 -0
- package/src/stories/assets/pics/hulk.png +0 -0
- package/src/stories/assets/pics/ironman.png +0 -0
- package/src/stories/assets/pics/mufasa.png +0 -0
- package/src/stories/assets/pics/spider-man.png +0 -0
- package/src/stories/assets/pics/upsellPage.png +0 -0
- package/src/stories/assets/pics/wolverine.png +0 -0
- package/src/stories/assets/rabbit.svg +17 -0
- package/src/stories/assets/upgrade.svg +40 -0
- package/src/stories/welcome.stories.mdx +237 -0
- package/styles/variables.scss +125 -0
- package/styles/vuetify-variables.scss +36 -0
- package/utils/colorUtil.js +41 -0
- package/src/stories/Button.vue +0 -54
- package/src/stories/Header.vue +0 -59
- package/src/stories/Page.vue +0 -88
package/README.md
CHANGED
|
@@ -1,55 +1,179 @@
|
|
|
1
1
|
# design-system
|
|
2
2
|
|
|
3
|
+
link to storybook
|
|
4
|
+
https://vcita.github.io/design-system
|
|
5
|
+
|
|
3
6
|
## Goals
|
|
4
7
|
|
|
5
8
|
This project's goal is to create a set of tools that will enable future development to be quicker and more standard.
|
|
6
9
|
|
|
7
|
-
|
|
8
10
|
## Creating components
|
|
9
11
|
|
|
12
|
+
### The concept
|
|
13
|
+
|
|
14
|
+
The components in this package are project agnostic. They should not contain anything that is specific to any project.
|
|
15
|
+
Development will proceed by using the storybook.
|
|
16
|
+
|
|
17
|
+
### Requirements
|
|
18
|
+
|
|
19
|
+
1. Input variables will be well defined and validated
|
|
20
|
+
2. Components should be constructed so that they are composable - slots are your friends
|
|
21
|
+
|
|
22
|
+
### Code standards
|
|
23
|
+
|
|
24
|
+
1. The component name will start with Vc and be camel cased. example: VcComponent.vue
|
|
25
|
+
2. Emitted events will start with "on" and be camel cased. example: 'onButtonClicked'. Except for standard events such
|
|
26
|
+
as "click" or "input".
|
|
27
|
+
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
|
|
28
|
+
may need to implement it using a render function instead.
|
|
29
|
+
|
|
10
30
|
### Guidelines and best practices
|
|
11
31
|
|
|
12
32
|
Every component that is created in this project should have the following things:
|
|
13
33
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
34
|
+
Unit test file with 100% coverage.
|
|
35
|
+
|
|
36
|
+
A storybook page with the following data
|
|
37
|
+
|
|
38
|
+
1. link to Figma page with the design of the component
|
|
39
|
+
2. controls definition that allows to manipulate the component parameters
|
|
40
|
+
3. use actions to demonstrate the output of the component in terms of emitted events and data
|
|
41
|
+
4. display variations will be clearly presented
|
|
18
42
|
|
|
19
43
|
Consider localization issues, such as:
|
|
44
|
+
|
|
20
45
|
1. Texts that are set to uppercase by Vuetify need to be changed to text-transform: initial;
|
|
21
46
|
2. Date formatting should be flexible according to different localizations
|
|
47
|
+
3. components should not contain any constant texts, all texts must be passed in as a parameter.
|
|
48
|
+
|
|
49
|
+
## Adding component to the package
|
|
50
|
+
|
|
51
|
+
Add to src/components/index.js an entry for your new component, something like:
|
|
22
52
|
|
|
23
|
-
## Project setup
|
|
24
53
|
```
|
|
25
|
-
|
|
54
|
+
export { default as VcYourComp } from './VcYourComp/VcYourComp.vue';
|
|
26
55
|
```
|
|
27
56
|
|
|
28
|
-
|
|
57
|
+
## Styling
|
|
58
|
+
|
|
59
|
+
### Design tokens and themes
|
|
60
|
+
|
|
61
|
+
Since we want these components to be flexible enough that they can be used in multiple projects, we will be using
|
|
62
|
+
variables to apply most of the design characteristics of each component.
|
|
63
|
+
|
|
64
|
+
Colors will be applied by using the vuetify theme, as defined in preview.js
|
|
65
|
+
|
|
66
|
+
Other design variables will be defined in TBD. Each project that uses this package will assign its own values to the
|
|
67
|
+
design variables, and thus control its own design. Please be thoughtful when adding and using the design variables in
|
|
68
|
+
your components.
|
|
69
|
+
|
|
70
|
+
### Styling best practices
|
|
71
|
+
|
|
72
|
+
1. Values such as margins or padding will be set using css variables, so that each project can adapt the design if need
|
|
73
|
+
be. The initial values will be set in the @/styles/variables.scss file.
|
|
74
|
+
2. Changes and additions to general css variables will be documented in the @/stories/welcome.stories.mdx file
|
|
75
|
+
3. Changes and additions to components specific css variables will be documented TBD
|
|
76
|
+
4. Brand colors will be applied using the Vuetify theme, not through parameters. You can add values to the theme in
|
|
77
|
+
.storybook/preview.js
|
|
78
|
+
|
|
79
|
+
### Using Vuetify SASS variables
|
|
80
|
+
|
|
81
|
+
Changes to default SASS variable values can be made in styles/variables.scss
|
|
82
|
+
|
|
83
|
+
When styling using the Vuetify SASS variables, please consider two situations:
|
|
84
|
+
|
|
85
|
+
1. The styling decision you are making will be correct across all projects that use this package, in which case the
|
|
86
|
+
value can be a constant
|
|
87
|
+
2. the styling decision you are making should be adjusted for different projects. In that case, use the css variables
|
|
88
|
+
option, for example:
|
|
89
|
+
```
|
|
90
|
+
$body-font-family: var(--primary-font-family);
|
|
91
|
+
```
|
|
92
|
+
This will allow each project to apply their own value. The css variables must be documented.
|
|
93
|
+
|
|
94
|
+
### Running Storybook
|
|
95
|
+
|
|
29
96
|
```
|
|
30
|
-
npm run
|
|
97
|
+
npm run storybook
|
|
31
98
|
```
|
|
32
99
|
|
|
33
|
-
###
|
|
100
|
+
### Ongoing development
|
|
101
|
+
|
|
102
|
+
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
|
|
103
|
+
easier to install the package from your local project directory.
|
|
104
|
+
To learn how to do this, please go [here](https://myvcita.atlassian.net/wiki/spaces/FG/pages/2021851137/Using+the+vcita+design+system+package#Installation-for-development-purposes).
|
|
105
|
+
|
|
106
|
+
Note: before releasing, make sure to publish a version and use that in your project, or tracking version changes will
|
|
107
|
+
become impossible.
|
|
108
|
+
|
|
109
|
+
### Publishing the package to npm
|
|
110
|
+
|
|
111
|
+
You may first need to run
|
|
112
|
+
|
|
113
|
+
```
|
|
114
|
+
npm adduser
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
Publishing beta version
|
|
118
|
+
|
|
119
|
+
```
|
|
120
|
+
git commit -a
|
|
121
|
+
npm version [currentVersion]-beta.[NumOfBeta]
|
|
122
|
+
npm run build
|
|
123
|
+
npm publish --tag beta
|
|
34
124
|
```
|
|
125
|
+
|
|
126
|
+
Publishing regular version
|
|
127
|
+
|
|
128
|
+
```
|
|
129
|
+
git commit -a
|
|
130
|
+
npm version [newVersion]
|
|
35
131
|
npm run build
|
|
132
|
+
npm publish
|
|
36
133
|
```
|
|
37
134
|
|
|
38
|
-
### Run your tests
|
|
135
|
+
### Run your unit tests
|
|
136
|
+
|
|
39
137
|
```
|
|
40
|
-
npm run test
|
|
138
|
+
npm run test:unit
|
|
41
139
|
```
|
|
42
140
|
|
|
43
141
|
### Lints and fixes files
|
|
142
|
+
|
|
44
143
|
```
|
|
45
144
|
npm run lint
|
|
46
145
|
```
|
|
47
146
|
|
|
48
|
-
###
|
|
147
|
+
### Initializing in your project
|
|
148
|
+
|
|
149
|
+
To initialize the project
|
|
150
|
+
|
|
49
151
|
```
|
|
50
|
-
|
|
152
|
+
import DesignSystem from '@vcita/design-system';
|
|
153
|
+
import Vue from "vue";
|
|
154
|
+
|
|
155
|
+
Vue.use(DesignSystem);
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
If you need to also adjust some values, such as theme or configurations, it will look something like this:
|
|
159
|
+
|
|
160
|
+
```
|
|
161
|
+
import Vue from "vue";
|
|
162
|
+
import DesignSystem from '@vcita/design-system';
|
|
163
|
+
import DesignSystemInit from '@vcita/design-system/init/DesignSystem';
|
|
164
|
+
|
|
165
|
+
Vue.use(DesignSystem);
|
|
166
|
+
|
|
167
|
+
const config = {
|
|
168
|
+
theme: { primary: '#123456'},
|
|
169
|
+
options: {toastTimeout: 5000 }
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
export default DesignSystemInit(config);
|
|
51
173
|
```
|
|
52
174
|
|
|
53
175
|
### Customize configuration
|
|
176
|
+
|
|
54
177
|
See [Configuration Reference](https://cli.vuejs.org/config/).
|
|
55
178
|
|
|
179
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
en:
|
|
3
|
+
ds:
|
|
4
|
+
wizard:
|
|
5
|
+
back: Back
|
|
6
|
+
next: Next
|
|
7
|
+
modal:
|
|
8
|
+
cancel: Cancel
|
|
9
|
+
ok: Ok
|
|
10
|
+
done: Done
|
|
11
|
+
progress_circular:
|
|
12
|
+
next: 'Next:'
|
|
13
|
+
listbox:
|
|
14
|
+
add: Add new contact
|
|
15
|
+
empty_list: No result found
|
|
16
|
+
dropzone:
|
|
17
|
+
default_title: Submit
|
|
18
|
+
search_bar:
|
|
19
|
+
label: Search
|
|
20
|
+
time_since:
|
|
21
|
+
years: '{years} years ago'
|
|
22
|
+
months: '{months} months ago'
|
|
23
|
+
days: '{days} days ago'
|
|
24
|
+
yesterday: 'Yesterday'
|
|
25
|
+
hours: '{hours} hours ago'
|
|
26
|
+
minutes: '{minutes} minutes ago'
|
|
27
|
+
now: 'Just now'
|
|
28
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
keys:
|
|
3
|
+
ds:
|
|
4
|
+
wizard:
|
|
5
|
+
back: ds.wizard.back
|
|
6
|
+
next: ds.wizard.next
|
|
7
|
+
modal:
|
|
8
|
+
cancel: ds.modal.cancel
|
|
9
|
+
ok: ds.modal.ok
|
|
10
|
+
done: ds.modal.done
|
|
11
|
+
progress_circular:
|
|
12
|
+
next: ds.progress_circular.next
|
|
13
|
+
listbox:
|
|
14
|
+
add: ds.listbox.add
|
|
15
|
+
dropzone:
|
|
16
|
+
default_title: ds.dropzone.default_title
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
pseudo:
|
|
3
|
+
ds:
|
|
4
|
+
wizard:
|
|
5
|
+
back: "ßåçk ßåç"
|
|
6
|
+
next: Néxt Néx
|
|
7
|
+
modal:
|
|
8
|
+
cancel: Cånçél Cån
|
|
9
|
+
ok: Ok Ok
|
|
10
|
+
done: Doné Don
|
|
11
|
+
progress_circular:
|
|
12
|
+
next: 'Néxt: Néx'
|
|
13
|
+
listbox:
|
|
14
|
+
add: "Ädd néw çontåçt Ädd néw"
|
|
15
|
+
dropzone:
|
|
16
|
+
default_title: Submit Sub
|