@robosophy/ui-vue 0.0.1 → 0.0.2

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.
Files changed (2) hide show
  1. package/README.md +20 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -4,11 +4,29 @@ Vue 3 component library for shared Robosophy UI.
4
4
 
5
5
  ## Install
6
6
 
7
+ Con PrimeVue:
8
+
9
+ ```sh
10
+ npm install @robosophy/ui-vue @robosophy/prime-theme vue primevue
11
+ ```
12
+
13
+ Sin PrimeVue:
14
+
7
15
  ```sh
8
16
  npm install @robosophy/ui-vue @robosophy/tokens vue
9
17
  ```
10
18
 
11
- Import tokens once in the consuming app:
19
+ ## CSS imports
20
+
21
+ Si la app usa PrimeVue, importa solo el theme de Prime:
22
+
23
+ ```ts
24
+ import "@robosophy/prime-theme/prime.css";
25
+ ```
26
+
27
+ `prime.css` ya importa `@robosophy/tokens/tokens.css`, asi que no dupliques ese import.
28
+
29
+ Si la app no usa PrimeVue, importa tokens una vez:
12
30
 
13
31
  ```ts
14
32
  import "@robosophy/tokens/tokens.css";
@@ -35,7 +53,7 @@ Optional plugin registration:
35
53
  ```ts
36
54
  import { createApp } from "vue";
37
55
  import RobosophyUiVue from "@robosophy/ui-vue";
38
- import "@robosophy/tokens/tokens.css";
56
+ import "@robosophy/prime-theme/prime.css";
39
57
 
40
58
  createApp(App).use(RobosophyUiVue).mount("#app");
41
59
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robosophy/ui-vue",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "private": false,
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",