@davincihealthcare/elty-design-system-vue 1.9.0 → 1.9.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 +34 -9
- package/dist/forms/validation-rules.d.ts +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.mjs +4243 -4195
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +19 -19
- package/dist/index.umd.js.map +1 -1
- package/dist/vue.plugin.d.ts +4 -0
- package/package.json +1 -2
- /package/dist/{elty.plugin.d.ts → tailwind.plugin.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -22,13 +22,40 @@ in tailwind.config file
|
|
|
22
22
|
module.exports = {
|
|
23
23
|
...
|
|
24
24
|
content: [..., './node_modules/@davincihealthcare/elty-design-system-vue/**/*.{tsx,js}'],
|
|
25
|
-
plugins: [
|
|
25
|
+
plugins: [
|
|
26
|
+
require('@tailwindcss/forms'),
|
|
27
|
+
require('@tailwindcss/typography'),
|
|
28
|
+
require('@davincihealthcare/elty-design-system-vue').EltyTailwindPlugin
|
|
29
|
+
]
|
|
26
30
|
...
|
|
27
31
|
}
|
|
28
32
|
```
|
|
33
|
+
|
|
29
34
|
Note: content needs a new entry in the array, alongside other you may already have.
|
|
30
35
|
|
|
31
|
-
Make sure
|
|
36
|
+
Make sure to:
|
|
37
|
+
|
|
38
|
+
- NOT to import the elty foundations which are already imported alongside this plugin.
|
|
39
|
+
- import other required official tailwind plugins
|
|
40
|
+
- `@tailwindcss/forms`
|
|
41
|
+
- `@tailwindcss/typography`
|
|
42
|
+
|
|
43
|
+
in main.ts file
|
|
44
|
+
|
|
45
|
+
```js
|
|
46
|
+
import { createApp } from 'vue';
|
|
47
|
+
import { EltyVuePlugin } from '@davincihealthcare/elty-design-system-vue';
|
|
48
|
+
|
|
49
|
+
...
|
|
50
|
+
|
|
51
|
+
const app = createApp();
|
|
52
|
+
app.use(EltyVuePlugin);
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
...
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
remember to `use` the related vue plugin (it will install form validation rules)!
|
|
32
59
|
|
|
33
60
|
```js
|
|
34
61
|
// Import the component you need
|
|
@@ -40,16 +67,14 @@ Now, you can use the imported component in your templates:
|
|
|
40
67
|
```vue
|
|
41
68
|
<template>
|
|
42
69
|
<div>
|
|
43
|
-
<ElButton @click="
|
|
70
|
+
<ElButton label="Click me" @click="onClick" />
|
|
44
71
|
</div>
|
|
45
72
|
</template>
|
|
46
73
|
|
|
47
74
|
<script lang="ts" setup>
|
|
48
|
-
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
}
|
|
52
|
-
|
|
75
|
+
import { ElButton } from '@davincihealthcare/elty-design-system-vue';
|
|
76
|
+
const onClick = () => {
|
|
77
|
+
window.alert('click');
|
|
78
|
+
};
|
|
53
79
|
</script>
|
|
54
|
-
|
|
55
80
|
```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare const defineValidationRules: () => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { default as
|
|
1
|
+
export { default as EltyVuePlugin } from './vue.plugin';
|
|
2
|
+
export { default as EltyTailwindPlugin } from './tailwind.plugin';
|
|
2
3
|
export * from './routes';
|
|
3
4
|
export * from './types';
|
|
4
5
|
export * from './ElAccordion.vue';
|