@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 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 { defineCustomElementsDesignSystem } from '@sellmate/design-system-vue/loader';
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
- // Define custom elements
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
@@ -1,3 +1,4 @@
1
+ import '@sellmate/design-system/styles.css';
1
2
  export * from './components';
2
3
  export * from './plugin';
3
4
  export { default as SdTable } from './SdTable';
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ import '@sellmate/design-system/styles.css';
1
2
  export * from './components';
2
3
  export * from './plugin';
3
4
  export { default as SdTable } from './SdTable';
package/lib/css.d.ts ADDED
@@ -0,0 +1 @@
1
+ declare module '@sellmate/design-system/styles.css';
package/lib/index.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import '@sellmate/design-system/styles.css';
2
+
1
3
  export * from './components';
2
4
  export * from './plugin';
3
5
  export { default as SdTable } from './SdTable';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellmate/design-system-vue",
3
- "version": "1.0.21",
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.20",
48
+ "@sellmate/design-system": "^1.0.21",
49
49
  "@stencil/vue-output-target": "^0.11.8"
50
50
  },
51
51
  "peerDependencies": {