@davincihealthcare/elty-design-system-vue 1.17.2 → 1.18.1

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,15 +14,18 @@ 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
 
21
21
  ## Usage
22
22
 
23
+ ### Using the standard foundations
24
+
23
25
  in tailwind.config file
24
26
 
25
- ```js
27
+ ```ts
28
+ import {EltyTailwindPlugin, EltyTailwindPreset} from '@davincihealthcare/elty-design-system-vue'
26
29
 
27
30
  module.exports = {
28
31
  ...
@@ -30,17 +33,36 @@ module.exports = {
30
33
  plugins: [
31
34
  require('@tailwindcss/forms'),
32
35
  require('@tailwindcss/typography'),
33
- require('@davincihealthcare/elty-design-system-vue').EltyTailwindPlugin
36
+ EltyTailwindPlugin
34
37
  ]
35
38
  ...
36
39
  }
37
40
  ```
38
41
 
39
- Note: content needs a new entry in the array, alongside other you may already have.
42
+ ### Overriding the standard foundations
40
43
 
41
- Make sure to:
44
+ in tailwind.config file
42
45
 
43
- - do NOT to import the elty foundations which are already imported alongside this plugin.
46
+ ```ts
47
+ import {EltyTailwindPluginWithoutStyle, EltyTailwindPreset} from '@davincihealthcare/elty-design-system-vue'
48
+
49
+ module.exports = {
50
+ ...
51
+ content: [..., './node_modules/@davincihealthcare/elty-design-system-vue/**/*.{tsx,js}'],
52
+ presets: [EltyTailwindPreset],
53
+ plugins: [
54
+ require('@tailwindcss/forms'),
55
+ require('@tailwindcss/typography'),
56
+ EltyTailwindPluginWithoutStyle
57
+ ]
58
+ ...
59
+ }
60
+ ```
61
+
62
+ The Preset way of loading the css was introduced from version 1.18.0
63
+
64
+ Note: content needs a new entry in the array, alongside other you may already have.
65
+ You may also change the require with a neater
44
66
 
45
67
  in main.ts file
46
68
 
@@ -83,6 +105,10 @@ const onClick = () => {
83
105
 
84
106
  ## Tech stuff and instructions 🔥🔥
85
107
 
108
+ - EltyTailwindPlugin contains some custom css to be applied on forms and so on.
109
+ - 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
110
+ - EltyVuePlugin contains the vee-validate rules for the inputs
111
+
86
112
  As it has been set the following as `peer dependencies`
87
113
 
88
114
  - @tailwindcss/forms
package/dist/index.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
 
2
2
  export { default as EltyVuePlugin } from './vue.plugin';
3
- export { default as EltyTailwindPlugin } from './tailwind.plugin';
3
+ export { defaultPlugin as EltyTailwindPlugin } from './tailwind.plugin';
4
+ export { pluginWithoutStyles as EltyTailwindPluginWithoutStyle } from './tailwind.plugin';
5
+ export { default as EltyTailwindPreset } from './preset';
4
6
  export * from './types';
5
7
  export * from './ElAccordion.vue';
6
8
  export { default as ElAccordion } from './ElAccordion.vue';