scu-web-components 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.
- package/README.md +12 -11
- package/dist/chunks/{jsCssGenerator.CRXHL5RU.js → jsCssGenerator.HE3CFJOM.js} +2 -2
- package/dist/chunks/{jsCssGenerator.CRXHL5RU.js.map → jsCssGenerator.HE3CFJOM.js.map} +1 -1
- package/dist/chunks/{jsCssGeneratorSansAssets.XBRBB6WN.js → jsCssGeneratorSansAssets.EZW4GYX6.js} +2 -2
- package/dist/chunks/{jsCssGeneratorSansAssets.XBRBB6WN.js.map → jsCssGeneratorSansAssets.EZW4GYX6.js.map} +1 -1
- package/dist/docs/config.json +1 -1
- package/dist/docs/index.html +1 -1
- package/dist/docs/js/app.68a1a2aa.js +2 -0
- package/dist/docs/js/app.68a1a2aa.js.map +1 -0
- package/dist/scw-card/scw-card.js +215 -1
- package/dist/scw-card/scw-card.js.map +3 -3
- package/dist/scw-test/scw-test.js +28 -1
- package/dist/scw-test/scw-test.js.map +3 -3
- package/dist/scw.d.ts +5 -0
- package/dist/scw.js +6 -0
- package/dist/{chunks/chunk.42IFU2WK.js.map → scw.js.map} +3 -3
- package/dist/tokens/source/jsCss.js +1 -1
- package/dist/tokens/source/jsCss.js.gz +0 -0
- package/dist/tokens/source/jsCssGenerator.js +1 -1
- package/dist/tokens/source/jsCssGenerator.js.gz +0 -0
- package/dist/tokens/source/jsCssGeneratorSansAssets.js +1 -1
- package/dist/tokens/source/jsCssGeneratorSansAssets.js.gz +0 -0
- package/package.json +1 -1
- package/dist/chunks/chunk.42IFU2WK.js +0 -6
- package/dist/chunks/chunk.SDGFQPKJ.js +0 -216
- package/dist/chunks/chunk.SDGFQPKJ.js.map +0 -7
- package/dist/chunks/chunk.ZJVMOWGT.js +0 -29
- package/dist/chunks/chunk.ZJVMOWGT.js.map +0 -7
- package/dist/docs/js/app.5832e312.js +0 -2
- package/dist/docs/js/app.5832e312.js.map +0 -1
- package/dist/scw-components-custom.d.ts +0 -5
- package/dist/scw-components-custom.js +0 -2
- package/dist/scw-components-custom.js.map +0 -7
- package/dist/scw-components.d.ts +0 -2
- package/dist/scw-components.js +0 -2
- package/dist/scw-components.js.map +0 -7
- package/dist/scw-styles.d.ts +0 -1
- package/dist/scw-styles.js +0 -2
- package/dist/scw-styles.js.map +0 -7
package/README.md
CHANGED
|
@@ -4,29 +4,30 @@ This webcomponent follows the [open-wc](https://github.com/open-wc/open-wc) reco
|
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
```bash
|
|
7
|
-
npm i scu-
|
|
7
|
+
npm i scu-web-components
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
## Usage
|
|
11
11
|
|
|
12
|
-
### Component by Component
|
|
13
12
|
```html
|
|
14
13
|
<script type="module">
|
|
15
|
-
import
|
|
14
|
+
const scw = await import('scu-web-components/scw.js');
|
|
15
|
+
scw.defineComponents({
|
|
16
|
+
components: [], // list of components you want, not using "components" argument will pull in all components
|
|
17
|
+
suffix: '', // for versioned components. "tst" would turn scw-button into scw-button-tst
|
|
18
|
+
assetsRuntime : true // for browser imports, will load assets lazily versus Base64ing into bundle
|
|
19
|
+
});
|
|
16
20
|
</script>
|
|
17
21
|
...
|
|
18
22
|
<scw-button></scw-button>
|
|
19
23
|
```
|
|
20
24
|
|
|
21
25
|
### Custom Component Package
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
'tst'// implementation specific suffix
|
|
28
|
-
);
|
|
29
|
-
</script>
|
|
26
|
+
```javascript
|
|
27
|
+
const scw = await import('scu-web-components/scw.js');
|
|
28
|
+
scw.defineComponents({
|
|
29
|
+
suffix: 'tst'
|
|
30
|
+
});
|
|
30
31
|
...
|
|
31
32
|
<scw-button-tst></scw-button-tst>
|
|
32
33
|
```
|