@sellmate/design-system-vue 1.0.21 → 1.0.22
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 +5 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/lib/css.d.ts +1 -0
- package/lib/index.ts +2 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -19,18 +19,19 @@ yarn add @sellmate/design-system-vue
|
|
|
19
19
|
### Vue 3
|
|
20
20
|
|
|
21
21
|
```ts
|
|
22
|
+
import '@sellmate/design-system/styles.css';
|
|
22
23
|
import { createApp } from 'vue';
|
|
23
|
-
import {
|
|
24
|
+
import { StencilVuePlugin } from '@sellmate/design-system-vue';
|
|
24
25
|
import App from './App.vue';
|
|
25
26
|
|
|
26
27
|
const app = createApp(App);
|
|
27
28
|
|
|
28
|
-
|
|
29
|
-
defineCustomElementsDesignSystem();
|
|
30
|
-
|
|
29
|
+
app.use(StencilVuePlugin);
|
|
31
30
|
app.mount('#app');
|
|
32
31
|
```
|
|
33
32
|
|
|
33
|
+
Import `@sellmate/design-system/styles.css` once at app entry so global token CSS variables are available for components like `sd-button`.
|
|
34
|
+
|
|
34
35
|
### Vite Configuration
|
|
35
36
|
|
|
36
37
|
If you are using Vite, you need to configure `vite-plugin-static-copy` to serve the design system assets (icons, lazy-loaded components) correctly.
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/lib/css.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module '@sellmate/design-system/styles.css';
|
package/lib/index.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.22",
|
|
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.21",
|
|
49
49
|
"@stencil/vue-output-target": "^0.11.8"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|