@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.
Files changed (244) hide show
  1. package/README.md +138 -14
  2. package/config/locales/ds.de.yml +16 -0
  3. package/config/locales/ds.en.yml +28 -0
  4. package/config/locales/ds.es.yml +16 -0
  5. package/config/locales/ds.fr.yml +16 -0
  6. package/config/locales/ds.he.yml +16 -0
  7. package/config/locales/ds.it.yml +16 -0
  8. package/config/locales/ds.keys.yml +16 -0
  9. package/config/locales/ds.nl.yml +16 -0
  10. package/config/locales/ds.pl.yml +16 -0
  11. package/config/locales/ds.pseudo.yml +16 -0
  12. package/config/locales/ds.pt.yml +16 -0
  13. package/config/locales/ds.ru.yml +6 -0
  14. package/config/locales/ds.sl.yml +6 -0
  15. package/config/locales/ds.tr.yml +6 -0
  16. package/config/locales/ds.zun.yml +6 -0
  17. package/dist/@vcita/design-system.esm.js +8472 -48
  18. package/dist/@vcita/design-system.min.js +1 -1
  19. package/dist/@vcita/design-system.ssr.js +8031 -35
  20. package/init/DesignSystem.js +123 -0
  21. package/init/SvgIcons.js +45 -0
  22. package/init/initI18n.js +52 -0
  23. package/init/svgImages.js +12 -0
  24. package/init/vuetify.config.js +36 -0
  25. package/package.json +28 -16
  26. package/src/components/VcActionList/VcActionList.spec.js +57 -0
  27. package/src/components/VcActionList/VcActionList.stories.js +57 -0
  28. package/src/components/VcActionList/VcActionList.vue +83 -0
  29. package/src/components/VcActions/VcActions.spec.js +153 -0
  30. package/src/components/VcActions/VcActions.stories.js +103 -0
  31. package/src/components/VcActions/VcActions.vue +68 -0
  32. package/src/components/VcAlert/VcAlert.spec.js +222 -0
  33. package/src/components/VcAlert/VcAlert.stories.js +107 -0
  34. package/src/components/VcAlert/VcAlert.vue +305 -0
  35. package/src/components/VcAutoComplete/VcAutoComplete.spec.js +67 -0
  36. package/src/components/VcAutoComplete/VcAutoComplete.stories.js +99 -0
  37. package/src/components/VcAutoComplete/VcAutoComplete.vue +95 -0
  38. package/src/components/VcAvatar/VcAvatar.spec.js +110 -0
  39. package/src/components/VcAvatar/VcAvatar.stories.js +112 -0
  40. package/src/components/VcAvatar/VcAvatar.vue +284 -0
  41. package/src/components/VcBadge/VcBadge.spec.js +95 -0
  42. package/src/components/VcBadge/VcBadge.stories.js +45 -0
  43. package/src/components/VcBadge/VcBadge.vue +55 -0
  44. package/src/components/VcBanner/VcBanner.spec.js +117 -0
  45. package/src/components/VcBanner/VcBanner.stories.js +73 -0
  46. package/src/components/VcBanner/VcBanner.vue +236 -0
  47. package/src/components/VcBottomActions/VcBottomActions.spec.js +64 -0
  48. package/src/components/VcBottomActions/VcBottomActions.stories.js +103 -0
  49. package/src/components/VcBottomActions/VcBottomActions.vue +158 -0
  50. package/src/components/VcBottomSheet/VcBottomSheet.spec.js +71 -0
  51. package/src/components/VcBottomSheet/VcBottomSheet.stories.js +64 -0
  52. package/src/components/VcBottomSheet/VcBottomSheet.vue +52 -0
  53. package/src/components/VcButton/VcButton.spec.js +249 -0
  54. package/src/components/VcButton/VcButton.stories.js +258 -0
  55. package/src/components/VcButton/VcButton.vue +155 -43
  56. package/src/components/VcButtonGroup/VcButtonGroup.spec.js +209 -0
  57. package/src/components/VcButtonGroup/VcButtonGroup.stories.js +109 -0
  58. package/src/components/VcButtonGroup/VcButtonGroup.vue +176 -0
  59. package/src/components/VcCard/VcCard.spec.js +85 -0
  60. package/src/components/VcCard/VcCard.stories.js +32 -0
  61. package/src/components/VcCard/VcCard.vue +68 -0
  62. package/src/components/VcCheckbox/VcCheckbox.spec.js +115 -0
  63. package/src/components/VcCheckbox/VcCheckbox.stories.js +129 -0
  64. package/src/components/VcCheckbox/VcCheckbox.vue +189 -0
  65. package/src/components/VcChip/VcChip.spec.js +121 -0
  66. package/src/components/VcChip/VcChip.stories.js +53 -0
  67. package/src/components/VcChip/VcChip.vue +138 -0
  68. package/src/components/VcDocItem/VcDocItem.spec.js +142 -0
  69. package/src/components/VcDocItem/VcDocItem.stories.js +75 -0
  70. package/src/components/VcDocItem/VcDocItem.vue +165 -0
  71. package/src/components/VcDocItem/mockData.js +8 -0
  72. package/src/components/VcDropzone/VcDropzone.spec.js +233 -0
  73. package/src/components/VcDropzone/VcDropzone.stories.js +49 -0
  74. package/src/components/VcDropzone/VcDropzone.vue +187 -0
  75. package/src/components/VcEmptyState/VcEmptyState.spec.js +113 -0
  76. package/src/components/VcEmptyState/VcEmptyState.stories.js +69 -0
  77. package/src/components/VcEmptyState/VcEmptyState.vue +150 -0
  78. package/src/components/VcExpansionCard/VcExpansionCard.spec.js +146 -0
  79. package/src/components/VcExpansionCard/VcExpansionCard.stories.js +122 -0
  80. package/src/components/VcExpansionCard/VcExpansionCard.vue +162 -0
  81. package/src/components/VcFilterPanel/VcFilterPanel.spec.js +80 -0
  82. package/src/components/VcFilterPanel/VcFilterPanel.stories.js +40 -0
  83. package/src/components/VcFilterPanel/VcFilterPanel.vue +135 -0
  84. package/src/components/VcFocusArea/VcFocusArea.spec.js +58 -0
  85. package/src/components/VcFocusArea/VcFocusArea.stories.js +39 -0
  86. package/src/components/VcFocusArea/VcFocusArea.vue +27 -0
  87. package/src/components/VcForm/VcForm.spec.js +38 -0
  88. package/src/components/VcForm/VcForm.stories.js +43 -0
  89. package/src/components/VcForm/VcForm.vue +23 -0
  90. package/src/components/VcIcon/VcIcon.spec.js +41 -0
  91. package/src/components/VcIcon/VcIcon.stories.js +60 -0
  92. package/src/components/VcIcon/VcIcon.vue +18 -0
  93. package/src/components/VcIconWithTooltip/VcIconWithTooltip.spec.js +157 -0
  94. package/src/components/VcIconWithTooltip/VcIconWithTooltip.stories.js +77 -0
  95. package/src/components/VcIconWithTooltip/VcIconWithTooltip.vue +107 -0
  96. package/src/components/VcImage/VcImage.spec.js +46 -0
  97. package/src/components/VcImage/VcImage.stories.js +36 -0
  98. package/src/components/VcImage/VcImage.vue +42 -0
  99. package/src/components/VcInputBottomSheet/VcInputBottomSheet.spec.js +149 -0
  100. package/src/components/VcInputBottomSheet/VcInputBottomSheet.stories.js +94 -0
  101. package/src/components/VcInputBottomSheet/VcInputBottomSheet.vue +156 -0
  102. package/src/components/VcInputPopover/VcInputPopover.spec.js +134 -0
  103. package/src/components/VcInputPopover/VcInputPopover.stories.js +102 -0
  104. package/src/components/VcInputPopover/VcInputPopover.vue +147 -0
  105. package/src/components/VcLayout/VcLayout.spec.js +38 -0
  106. package/src/components/VcLayout/VcLayout.stories.js +26 -0
  107. package/src/components/VcLayout/VcLayout.vue +17 -0
  108. package/src/components/VcLink/VcLink.spec.js +162 -0
  109. package/src/components/VcLink/VcLink.stories.js +65 -0
  110. package/src/components/VcLink/VcLink.vue +98 -0
  111. package/src/components/VcLoader/VcLoader.spec.js +38 -0
  112. package/src/components/VcLoader/VcLoader.stories.js +30 -0
  113. package/src/components/VcLoader/VcLoader.vue +32 -0
  114. package/src/components/VcMenu/VcMenu.spec.js +38 -0
  115. package/src/components/VcMenu/VcMenu.stories.js +45 -0
  116. package/src/components/VcMenu/VcMenu.vue +16 -0
  117. package/src/components/VcPopover/VcPopover.spec.js +80 -0
  118. package/src/components/VcPopover/VcPopover.stories.js +71 -0
  119. package/src/components/VcPopover/VcPopover.vue +62 -0
  120. package/src/components/VcProgressCircular/VcProgressCircular.spec.js +109 -0
  121. package/src/components/VcProgressCircular/VcProgressCircular.stories.js +58 -0
  122. package/src/components/VcProgressCircular/VcProgressCircular.vue +88 -0
  123. package/src/components/VcRadio/VcRadio.spec.js +67 -0
  124. package/src/components/VcRadio/VcRadio.stories.js +72 -0
  125. package/src/components/VcRadio/VcRadio.vue +129 -0
  126. package/src/components/VcRadioGroup/VcRadioGroup.spec.js +141 -0
  127. package/src/components/VcRadioGroup/VcRadioGroup.stories.js +91 -0
  128. package/src/components/VcRadioGroup/VcRadioGroup.vue +82 -0
  129. package/src/components/VcSearchBar/VcSearchBar.spec.js +146 -0
  130. package/src/components/VcSearchBar/VcSearchBar.stories.js +55 -0
  131. package/src/components/VcSearchBar/VcSearchBar.vue +146 -0
  132. package/src/components/VcSegmentedControl/VcSegmentedControl.spec.js +109 -0
  133. package/src/components/VcSegmentedControl/VcSegmentedControl.stories.js +45 -0
  134. package/src/components/VcSegmentedControl/VcSegmentedControl.vue +119 -0
  135. package/src/components/VcSelectField/VcSelectField.spec.js +140 -0
  136. package/src/components/VcSelectField/VcSelectField.stories.js +211 -0
  137. package/src/components/VcSelectField/VcSelectField.vue +211 -0
  138. package/src/components/VcSvg/VcSvg.stories.js +24 -0
  139. package/src/components/VcSvg/VcSvg.vue +10 -0
  140. package/src/components/VcSwitch/VcSwitch.spec.js +78 -0
  141. package/src/components/VcSwitch/VcSwitch.stories.js +115 -0
  142. package/src/components/VcSwitch/VcSwitch.vue +253 -0
  143. package/src/components/VcTextArea/VcTextArea.spec.js +41 -0
  144. package/src/components/VcTextArea/VcTextArea.stories.js +177 -0
  145. package/src/components/VcTextArea/VcTextArea.vue +165 -0
  146. package/src/components/VcTextField/VcTextField.spec.js +176 -0
  147. package/src/components/VcTextField/VcTextField.stories.js +151 -0
  148. package/src/components/VcTextField/VcTextField.vue +211 -0
  149. package/src/components/VcTimeSince/VcTimeSince.spec.js +115 -0
  150. package/src/components/VcTimeSince/VcTimeSince.stories.js +50 -0
  151. package/src/components/VcTimeSince/VcTimeSince.vue +57 -0
  152. package/src/components/VcToast/VcToast.spec.js +75 -0
  153. package/src/components/VcToast/VcToast.stories.js +80 -0
  154. package/src/components/VcToast/VcToast.vue +51 -0
  155. package/src/components/VcTooltip/VcTooltip.spec.js +58 -0
  156. package/src/components/VcTooltip/VcTooltip.stories.js +191 -0
  157. package/src/components/VcTooltip/VcTooltip.vue +167 -0
  158. package/src/components/VcUpsellBlock/VcUpsellBlock.spec.js +104 -0
  159. package/src/components/VcUpsellBlock/VcUpsellBlock.stories.js +124 -0
  160. package/src/components/VcUpsellBlock/VcUpsellBlock.vue +289 -0
  161. package/src/components/index.js +60 -0
  162. package/src/components/list/VcGroupHeader/VcGroupHeader.spec.js +70 -0
  163. package/src/components/list/VcGroupHeader/VcGroupHeader.stories.js +30 -0
  164. package/src/components/list/VcGroupHeader/VcGroupHeader.vue +54 -0
  165. package/src/components/list/VcInfiniteScroll/VcInfiniteScroll.spec.js +68 -0
  166. package/src/components/list/VcInfiniteScroll/VcInfiniteScroll.stories.js +93 -0
  167. package/src/components/list/VcInfiniteScroll/VcInfiniteScroll.vue +66 -0
  168. package/src/components/list/VcListEntity/VcListEntity.spec.js +95 -0
  169. package/src/components/list/VcListEntity/VcListEntity.stories.js +77 -0
  170. package/src/components/list/VcListEntity/VcListEntity.vue +70 -0
  171. package/src/components/list/VcListItem/VcListItem.spec.js +113 -0
  172. package/src/components/list/VcListItem/VcListItem.stories.js +67 -0
  173. package/src/components/list/VcListItem/VcListItem.vue +105 -0
  174. package/src/components/listBox/VcChecklistItem/VcChecklistItem.spec.js +93 -0
  175. package/src/components/listBox/VcChecklistItem/VcChecklistItem.stories.js +56 -0
  176. package/src/components/listBox/VcChecklistItem/VcChecklistItem.vue +122 -0
  177. package/src/components/listBox/VcListbox/VcListbox.spec.js +187 -0
  178. package/src/components/listBox/VcListbox/VcListbox.stories.js +89 -0
  179. package/src/components/listBox/VcListbox/VcListbox.vue +244 -0
  180. package/src/components/modal/VcConfirmModal/VcConfirmModal.spec.js +50 -0
  181. package/src/components/modal/VcConfirmModal/VcConfirmModal.stories.js +146 -0
  182. package/src/components/modal/VcConfirmModal/VcConfirmModal.vue +95 -0
  183. package/src/components/modal/VcConfirmProminentModal/VcConfirmProminentModal.spec.js +51 -0
  184. package/src/components/modal/VcConfirmProminentModal/VcConfirmProminentModal.stories.js +62 -0
  185. package/src/components/modal/VcConfirmProminentModal/VcConfirmProminentModal.vue +76 -0
  186. package/src/components/modal/VcInputModal/VcInputModal.spec.js +81 -0
  187. package/src/components/modal/VcInputModal/VcInputModal.stories.js +207 -0
  188. package/src/components/modal/VcInputModal/VcInputModal.vue +150 -0
  189. package/src/components/modal/VcNoticeModal/VcNoticeModal.spec.js +56 -0
  190. package/src/components/modal/VcNoticeModal/VcNoticeModal.stories.js +149 -0
  191. package/src/components/modal/VcNoticeModal/VcNoticeModal.vue +184 -0
  192. package/src/components/modal/elements/VcModalContainer.spec.js +38 -0
  193. package/src/components/modal/elements/VcModalContainer.stories.js +49 -0
  194. package/src/components/modal/elements/VcModalContainer.vue +236 -0
  195. package/src/components/modal/elements/VcModalFooter.spec.js +82 -0
  196. package/src/components/modal/elements/VcModalFooter.stories.js +47 -0
  197. package/src/components/modal/elements/VcModalFooter.vue +92 -0
  198. package/src/components/modal/elements/VcModalHeader.spec.js +122 -0
  199. package/src/components/modal/elements/VcModalHeader.stories.js +108 -0
  200. package/src/components/modal/elements/VcModalHeader.vue +204 -0
  201. package/src/components/modal/elements/VcModalWrapper.spec.js +62 -0
  202. package/src/components/modal/elements/VcModalWrapper.stories.js +35 -0
  203. package/src/components/modal/elements/VcModalWrapper.vue +55 -0
  204. package/src/components/wizard/VcMobileWizardProgress/VcMobileWizardProgress.spec.js +109 -0
  205. package/src/components/wizard/VcMobileWizardProgress/VcMobileWizardProgress.stories.js +58 -0
  206. package/src/components/wizard/VcMobileWizardProgress/VcMobileWizardProgress.vue +89 -0
  207. package/src/components/wizard/VcSteperContent/VcStepperContent.spec.js +184 -0
  208. package/src/components/wizard/VcSteperContent/VcStepperContent.stories.js +103 -0
  209. package/src/components/wizard/VcSteperContent/VcStepperContent.vue +175 -0
  210. package/src/components/wizard/VcSteperContent/demoPage.vue +33 -0
  211. package/src/components/wizard/VcStepsBar/VcStepsBar.spec.js +122 -0
  212. package/src/components/wizard/VcStepsBar/VcStepsBar.stories.js +56 -0
  213. package/src/components/wizard/VcStepsBar/VcStepsBar.vue +194 -0
  214. package/src/components/wizard/VcWizard/VcWizard.spec.js +186 -0
  215. package/src/components/wizard/VcWizard/VcWizard.stories.js +125 -0
  216. package/src/components/wizard/VcWizard/VcWizard.vue +165 -0
  217. package/src/components/wizard/VcWizard/demoWizardPage.vue +46 -0
  218. package/src/components/wizard/VcWizardCtaContainer/VcWizardCtaContainer.spec.js +100 -0
  219. package/src/components/wizard/VcWizardCtaContainer/VcWizardCtaContainer.stories.js +67 -0
  220. package/src/components/wizard/VcWizardCtaContainer/VcWizardCtaContainer.vue +97 -0
  221. package/src/entry.esm.js +16 -0
  222. package/src/entry.js +13 -0
  223. package/src/scss/_i18n-mixins.scss +174 -0
  224. package/src/scss/mixins.scss +27 -0
  225. package/src/stories/assets/HeaderImage.svg +9 -0
  226. package/src/stories/assets/code-brackets.svg +1 -0
  227. package/src/stories/assets/flow.svg +1 -0
  228. package/src/stories/assets/pics/black-widow.jpeg +0 -0
  229. package/src/stories/assets/pics/creditCard.png +0 -0
  230. package/src/stories/assets/pics/hulk.png +0 -0
  231. package/src/stories/assets/pics/ironman.png +0 -0
  232. package/src/stories/assets/pics/mufasa.png +0 -0
  233. package/src/stories/assets/pics/spider-man.png +0 -0
  234. package/src/stories/assets/pics/upsellPage.png +0 -0
  235. package/src/stories/assets/pics/wolverine.png +0 -0
  236. package/src/stories/assets/rabbit.svg +17 -0
  237. package/src/stories/assets/upgrade.svg +40 -0
  238. package/src/stories/welcome.stories.mdx +237 -0
  239. package/styles/variables.scss +125 -0
  240. package/styles/vuetify-variables.scss +36 -0
  241. package/utils/colorUtil.js +41 -0
  242. package/src/stories/Button.vue +0 -54
  243. package/src/stories/Header.vue +0 -59
  244. 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
- A storybook page with the following data:
15
- 1. link to Figma page with the design of the component
16
- 2. controls definition that allows to manipulate the component parameters
17
- 3. use actions to demonstrate the output of the component in terms of emitted events and data
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
- npm install
54
+ export { default as VcYourComp } from './VcYourComp/VcYourComp.vue';
26
55
  ```
27
56
 
28
- ### Compiles and hot-reloads for development
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 serve
97
+ npm run storybook
31
98
  ```
32
99
 
33
- ### Compiles and minifies for production
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
- ### Run your unit tests
147
+ ### Initializing in your project
148
+
149
+ To initialize the project
150
+
49
151
  ```
50
- npm run test:unit
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,16 @@
1
+ ---
2
+ de:
3
+ ds:
4
+ wizard:
5
+ back: Zurück
6
+ next: Weiter
7
+ modal:
8
+ cancel: Abbrechen
9
+ ok: OK
10
+ done: Fertig
11
+ progress_circular:
12
+ next: 'Weiter:'
13
+ listbox:
14
+ add: Neuen Kontakt hinzufügen
15
+ dropzone:
16
+ default_title:
@@ -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
+ es:
3
+ ds:
4
+ wizard:
5
+ back: Atrás
6
+ next: Siguiente
7
+ modal:
8
+ cancel: Cancelar
9
+ ok: Ok
10
+ done: Hecho
11
+ progress_circular:
12
+ next: 'Siguiente:'
13
+ listbox:
14
+ add: Agregar nuevo contacto
15
+ dropzone:
16
+ default_title:
@@ -0,0 +1,16 @@
1
+ ---
2
+ fr:
3
+ ds:
4
+ wizard:
5
+ back: Retour
6
+ next: Suivant
7
+ modal:
8
+ cancel: Annuler
9
+ ok: Ok
10
+ done: C'est fait
11
+ progress_circular:
12
+ next: 'Suivant :'
13
+ listbox:
14
+ add: Ajouter nouveau contact
15
+ dropzone:
16
+ default_title:
@@ -0,0 +1,16 @@
1
+ ---
2
+ he:
3
+ ds:
4
+ wizard:
5
+ back: "חזרה"
6
+ next: "הבא"
7
+ modal:
8
+ cancel: "ביטול"
9
+ ok: "אישור"
10
+ done: "בוצע"
11
+ progress_circular:
12
+ next: "הבא:"
13
+ listbox:
14
+ add: "הוספה של איש קשר חדש"
15
+ dropzone:
16
+ default_title:
@@ -0,0 +1,16 @@
1
+ ---
2
+ it:
3
+ ds:
4
+ wizard:
5
+ back: Indietro
6
+ next: Avanti
7
+ modal:
8
+ cancel: Cancella
9
+ ok: Ok
10
+ done: Fatto
11
+ progress_circular:
12
+ next: 'Avanti:'
13
+ listbox:
14
+ add: Aggiungi nuovo contatto
15
+ dropzone:
16
+ default_title:
@@ -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
+ nl:
3
+ ds:
4
+ wizard:
5
+ back: Terug
6
+ next: Volgende
7
+ modal:
8
+ cancel: Annuleren
9
+ ok: Ok
10
+ done: Gereed
11
+ progress_circular:
12
+ next: 'Volgende:'
13
+ listbox:
14
+ add: Nieuw contact toevoegen
15
+ dropzone:
16
+ default_title:
@@ -0,0 +1,16 @@
1
+ ---
2
+ pl:
3
+ ds:
4
+ wizard:
5
+ back: Wstecz
6
+ next: Dalej
7
+ modal:
8
+ cancel: Anuluj
9
+ ok: Ok
10
+ done: Gotowe
11
+ progress_circular:
12
+ next: 'Dalej:'
13
+ listbox:
14
+ add: Dodaj nowy kontakt
15
+ dropzone:
16
+ 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
@@ -0,0 +1,16 @@
1
+ ---
2
+ pt:
3
+ ds:
4
+ wizard:
5
+ back: Voltar
6
+ next: Próximo
7
+ modal:
8
+ cancel: Cancelar
9
+ ok: Ok
10
+ done: Pronto
11
+ progress_circular:
12
+ next: Próximo;
13
+ listbox:
14
+ add: Adicionar contato novo
15
+ dropzone:
16
+ default_title:
@@ -0,0 +1,6 @@
1
+ ---
2
+ ru:
3
+ ds:
4
+ modal:
5
+ ok: Ok
6
+ cancel: "Отменить"
@@ -0,0 +1,6 @@
1
+ ---
2
+ sl:
3
+ ds:
4
+ modal:
5
+ ok: V redu
6
+ cancel: Prekliči
@@ -0,0 +1,6 @@
1
+ ---
2
+ tr:
3
+ ds:
4
+ modal:
5
+ ok: Tamam
6
+ cancel: "İptal"
@@ -0,0 +1,6 @@
1
+ ---
2
+ zun:
3
+ ds:
4
+ modal:
5
+ ok: words.ok
6
+ cancel: words.cancel