@davincihealthcare/elty-design-system-vue 1.17.2 → 1.18.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 CHANGED
@@ -14,7 +14,7 @@ Then install required plugins and the design system package itself
14
14
 
15
15
  ```bash
16
16
  # using yarn (or any other package manager)
17
- yarn add -D @tailwindcss/forms @tailwindcss/typography
17
+ yarn add -D tailwindcss postcss autoprefixer @tailwindcss/forms @tailwindcss/typography
18
18
  yarn add @davincihealthcare/elty-design-system-vue
19
19
  ```
20
20
 
@@ -22,25 +22,26 @@ yarn add @davincihealthcare/elty-design-system-vue
22
22
 
23
23
  in tailwind.config file
24
24
 
25
- ```js
25
+ ```ts
26
+ import {EltyTailwindPlugin, EltyTailwindPreset} from '@davincihealthcare/elty-design-system-vue'
26
27
 
27
28
  module.exports = {
28
29
  ...
29
30
  content: [..., './node_modules/@davincihealthcare/elty-design-system-vue/**/*.{tsx,js}'],
31
+ presets: [EltyTailwindPreset],
30
32
  plugins: [
31
33
  require('@tailwindcss/forms'),
32
34
  require('@tailwindcss/typography'),
33
- require('@davincihealthcare/elty-design-system-vue').EltyTailwindPlugin
35
+ EltyTailwindPlugin
34
36
  ]
35
37
  ...
36
38
  }
37
39
  ```
38
40
 
39
- Note: content needs a new entry in the array, alongside other you may already have.
40
-
41
- Make sure to:
41
+ Note: The Preset way of loading the css was introduced from version 1.18.0
42
42
 
43
- - do NOT to import the elty foundations which are already imported alongside this plugin.
43
+ Note: content needs a new entry in the array, alongside other you may already have.
44
+ You may also change the require with a neater
44
45
 
45
46
  in main.ts file
46
47
 
@@ -83,6 +84,10 @@ const onClick = () => {
83
84
 
84
85
  ## Tech stuff and instructions 🔥🔥
85
86
 
87
+ - EltyTailwindPlugin contains some custom css to be applied on forms and so on.
88
+ - EltyTailwindPreset contains the base style for the elty design system. Exported as a preset, and not as a plugin so that it can be easily overridden by the user application
89
+ - EltyVuePlugin contains the vee-validate rules for the inputs
90
+
86
91
  As it has been set the following as `peer dependencies`
87
92
 
88
93
  - @tailwindcss/forms
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
 
2
2
  export { default as EltyVuePlugin } from './vue.plugin';
3
3
  export { default as EltyTailwindPlugin } from './tailwind.plugin';
4
+ export { default as EltyTailwindPreset } from './preset';
4
5
  export * from './types';
5
6
  export * from './ElAccordion.vue';
6
7
  export { default as ElAccordion } from './ElAccordion.vue';