bojuvue 0.4.1 → 0.4.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.
- package/README.md +11 -0
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -16,6 +16,13 @@ npm install bojuvue
|
|
|
16
16
|
|
|
17
17
|
## Usage
|
|
18
18
|
|
|
19
|
+
Import the stylesheet once, anywhere in your app's entry point — components render
|
|
20
|
+
with no button skin, no dropdown panel background, and raw-size icons without it:
|
|
21
|
+
|
|
22
|
+
```ts
|
|
23
|
+
import 'bojuvue/style.css'
|
|
24
|
+
```
|
|
25
|
+
|
|
19
26
|
```vue
|
|
20
27
|
<script setup>
|
|
21
28
|
import { BVPlatformButton } from 'bojuvue'
|
|
@@ -37,6 +44,7 @@ Works as-is in any Vue 3 app. Building a VitePress site instead? Swap the import
|
|
|
37
44
|
// .vitepress/theme/index.ts
|
|
38
45
|
import DefaultTheme from 'vitepress/theme'
|
|
39
46
|
import { BVPlatformButton, BVMoreButton, BVButton, BVIconButton } from 'bojuvue/vitepress'
|
|
47
|
+
import 'bojuvue/style.css'
|
|
40
48
|
|
|
41
49
|
export default {
|
|
42
50
|
extends: DefaultTheme,
|
|
@@ -49,6 +57,9 @@ export default {
|
|
|
49
57
|
}
|
|
50
58
|
```
|
|
51
59
|
|
|
60
|
+
The same stylesheet covers every component from both import paths — one import is
|
|
61
|
+
enough regardless of which paths you use.
|
|
62
|
+
|
|
52
63
|
Then in any .md page, no import needed:
|
|
53
64
|
|
|
54
65
|
```md
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bojuvue",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Vue 3 components including a download button that serves each visitor the right build for their OS. Works in any Vue 3 app; VitePress-aware variants included.",
|
|
@@ -26,7 +26,9 @@
|
|
|
26
26
|
"./vitepress": {
|
|
27
27
|
"types": "./dist/vitepress.d.ts",
|
|
28
28
|
"import": "./dist/vitepress.js"
|
|
29
|
-
}
|
|
29
|
+
},
|
|
30
|
+
"./style.css": "./dist/bojuvue.css",
|
|
31
|
+
"./dist/bojuvue.css": "./dist/bojuvue.css"
|
|
30
32
|
},
|
|
31
33
|
"scripts": {
|
|
32
34
|
"build": "vue-tsc -b && vite build",
|