@sellmate/design-system-vue 1.0.8 → 1.0.11
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 +45 -12
- package/dist/components.js +0 -1
- package/lib/components.ts +0 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Vue 3 component wrappers for Sellmate Design System built with Stencil web components.
|
|
4
4
|
|
|
5
|
-
## Installation
|
|
5
|
+
## 📦 Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
npm install @sellmate/design-system-vue
|
|
@@ -14,7 +14,7 @@ or
|
|
|
14
14
|
yarn add @sellmate/design-system-vue
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
## Setup
|
|
17
|
+
## 🛠 Setup
|
|
18
18
|
|
|
19
19
|
### Vue 3
|
|
20
20
|
|
|
@@ -31,29 +31,62 @@ defineCustomElementsDesignSystem();
|
|
|
31
31
|
app.mount('#app');
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
### Vite Configuration
|
|
35
|
+
|
|
36
|
+
If you are using Vite, you need to configure `vite-plugin-static-copy` to serve the design system assets (icons, lazy-loaded components) correctly.
|
|
37
|
+
|
|
38
|
+
1. Install `vite-plugin-static-copy`:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
npm install -D vite-plugin-static-copy
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
or
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
yarn add -D vite-plugin-static-copy
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
2. Update `vite.config.ts`:
|
|
51
|
+
|
|
52
|
+
```ts
|
|
53
|
+
import { defineConfig } from 'vite';
|
|
54
|
+
import { viteStaticCopy } from 'vite-plugin-static-copy';
|
|
55
|
+
export default defineConfig({
|
|
56
|
+
plugins: [
|
|
57
|
+
viteStaticCopy({
|
|
58
|
+
targets: [
|
|
59
|
+
{
|
|
60
|
+
src: 'node_modules/@sellmate/design-system/dist/esm/*',
|
|
61
|
+
dest: 'assets',
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
}),
|
|
65
|
+
],
|
|
66
|
+
});
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## 🚀 Quick Start
|
|
35
70
|
|
|
36
71
|
### Basic Component Usage
|
|
37
72
|
|
|
38
73
|
```vue
|
|
39
74
|
<template>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</SdButton>
|
|
44
|
-
</div>
|
|
75
|
+
<div>
|
|
76
|
+
<SdButton @click="handleClick"> Click me </SdButton>
|
|
77
|
+
</div>
|
|
45
78
|
</template>
|
|
46
79
|
|
|
47
80
|
<script setup lang="ts">
|
|
48
81
|
import { SdButton } from '@sellmate/design-system-vue';
|
|
49
82
|
|
|
50
83
|
const handleClick = () => {
|
|
51
|
-
|
|
84
|
+
console.log('Button clicked');
|
|
52
85
|
};
|
|
53
86
|
</script>
|
|
54
87
|
```
|
|
55
88
|
|
|
56
|
-
## Available Components
|
|
89
|
+
## 📚 Available Components
|
|
57
90
|
|
|
58
91
|
- `SdButton` - Button component
|
|
59
92
|
- `SdInput` - Input component
|
|
@@ -68,11 +101,11 @@ const handleClick = () => {
|
|
|
68
101
|
- `SdDateRangePicker` - Date range picker component
|
|
69
102
|
- `SdPagination` - Pagination component
|
|
70
103
|
|
|
71
|
-
## Requirements
|
|
104
|
+
## 📋 Requirements
|
|
72
105
|
|
|
73
106
|
- Vue 3.0.0 or higher
|
|
74
107
|
- @sellmate/design-system (peer dependency)
|
|
75
108
|
|
|
76
|
-
## License
|
|
109
|
+
## 📝 License
|
|
77
110
|
|
|
78
111
|
MIT
|
package/dist/components.js
CHANGED
package/lib/components.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sellmate/design-system-vue",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"description": "Design System - Vue Component Wrappers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vue",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"vue": "^3.4.38"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@sellmate/design-system": "^1.0.
|
|
48
|
+
"@sellmate/design-system": "^1.0.10",
|
|
49
49
|
"@stencil/vue-output-target": "^0.11.8"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|