@wwtdev/bsds-components-vue3 1.16.5 → 2.0.0
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 +36 -17
- package/lib/bsds-components.js +3162 -0
- package/lib/components.css +1 -0
- package/package.json +44 -39
- package/lib/bsds-components.mjs +0 -1185
- package/lib/bsds-components.umd.js +0 -1
- package/lib/components.d.ts +0 -48
- package/lib/components.js +0 -415
- package/lib/components.js.map +0 -1
- package/lib/index.d.ts +0 -2
- package/lib/index.js +0 -3
- package/lib/index.js.map +0 -1
- package/lib/plugin-ssr.js +0 -10
- package/lib/plugin.d.ts +0 -3
- package/lib/plugin.js +0 -17
- package/lib/plugin.js.map +0 -1
- package/lib/vue-component-lib/utils.d.ts +0 -4
- package/lib/vue-component-lib/utils.js +0 -113
- package/lib/vue-component-lib/utils.js.map +0 -1
- package/nuxt/bsds-components.mjs +0 -1616
- package/nuxt/bsds-components.umd.js +0 -1
- package/nuxt/plugins/index.mjs +0 -18
- package/nuxt/style.css +0 -1
package/README.md
CHANGED
|
@@ -1,39 +1,58 @@
|
|
|
1
|
-
# BSDS Components
|
|
1
|
+
# BSDS Components Library
|
|
2
2
|
|
|
3
|
-
## Installation
|
|
3
|
+
## Installation & Usage
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
6
|
npm install --save @wwtdev/bsds-components-vue3
|
|
7
7
|
```
|
|
8
|
-
## Using the components in your Vue App
|
|
9
8
|
|
|
10
|
-
|
|
9
|
+
### Vue App Setup
|
|
11
10
|
|
|
12
|
-
|
|
13
|
-
import { ComponentLibrary } from '@wwtdev/bsds-components-vue3';
|
|
14
|
-
import '@wwtdev/bsds-components/dist/components/components.css'
|
|
11
|
+
Add the following to your `main.js` file to import styles:
|
|
15
12
|
|
|
16
|
-
|
|
13
|
+
```javascript
|
|
14
|
+
/* Blue Steel Styles
|
|
15
|
+
@wwtdev/bsds-css and @wwtdev/bsds-icons-vue3
|
|
16
|
+
will be installed as dependencies of this package
|
|
17
|
+
*/
|
|
18
|
+
import '@wwtdev/bsds-components-vue3/components.css'
|
|
19
|
+
import '@wwtdev/bsds-icons-vue3/lib/style.css'
|
|
17
20
|
```
|
|
18
21
|
|
|
19
|
-
|
|
22
|
+
**Note** that the CSS framework is _included_ in `@wwtdev/bsds-components-vue3/components.css`, along with a few additional styles needed for the Vue components. This means that you do not need to import `@wwtdev/bsds-css/dist/wwt-bsds.min.css` separately.
|
|
23
|
+
|
|
24
|
+
#### Migration from v1
|
|
25
|
+
1. Remove the `@wwtdev/bsds-components` package, as this Vue 3 package no longer depends on a base web component library.
|
|
26
|
+
2. This package no longer provides or requires a Vue plugin, so remove any imports / logic related to that.
|
|
27
|
+
3. These components no longer render custom element tags (e.g., `<bs-input-field>` is now `<div data-component="bs-input-field">`), so if you have any CSS rules or DOM-related logic that relied on the previous version's custom element tag selectors, you'll need to update those accordingly.
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Nuxt App Setup
|
|
31
|
+
|
|
32
|
+
Add the following to your `nuxt.config.js` file to import styles:
|
|
20
33
|
|
|
34
|
+
```javascript
|
|
35
|
+
export default defineNuxtConfig({
|
|
36
|
+
...
|
|
37
|
+
css: [
|
|
38
|
+
'@wwtdev/bsds-components-vue3/components.css',
|
|
39
|
+
'@wwtdev/bsds-icons-vue3/lib/style.css'
|
|
40
|
+
],
|
|
41
|
+
...
|
|
42
|
+
})
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Usage
|
|
21
46
|
```javascript
|
|
22
47
|
<script setup>
|
|
23
48
|
import { BsButton } from '@wwtdev/bsds-components-vue3'
|
|
49
|
+
import { BsIconCaretRight } from '@wwtdev/bsds-icons-vue3'
|
|
24
50
|
</script>
|
|
25
51
|
|
|
26
52
|
<template>
|
|
27
53
|
<div>
|
|
28
54
|
<BsButton>Hello World!</BsButton>
|
|
55
|
+
<BsIconCaretRight />
|
|
29
56
|
</div>
|
|
30
57
|
</template>
|
|
31
58
|
```
|
|
32
|
-
|
|
33
|
-
## Using the components in your Nuxt 3 app
|
|
34
|
-
|
|
35
|
-
For Nuxt apps, we have a [@wwtdev/bsds-nuxt](https://npmjs.com/package/@wwtdev/bsds-nuxt) module. Refer to those instructions.
|
|
36
|
-
|
|
37
|
-
### Caveats
|
|
38
|
-
- Currently an issue where Vue components clash with Web Components in Nuxt apps. Investigating a fix to Vue wrappers to resolve.
|
|
39
|
-
- Currently looking into a known issue wherein multi-word props are lost during hydration after SSR.
|