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.
Files changed (39) hide show
  1. package/README.md +12 -11
  2. package/dist/chunks/{jsCssGenerator.CRXHL5RU.js → jsCssGenerator.HE3CFJOM.js} +2 -2
  3. package/dist/chunks/{jsCssGenerator.CRXHL5RU.js.map → jsCssGenerator.HE3CFJOM.js.map} +1 -1
  4. package/dist/chunks/{jsCssGeneratorSansAssets.XBRBB6WN.js → jsCssGeneratorSansAssets.EZW4GYX6.js} +2 -2
  5. package/dist/chunks/{jsCssGeneratorSansAssets.XBRBB6WN.js.map → jsCssGeneratorSansAssets.EZW4GYX6.js.map} +1 -1
  6. package/dist/docs/config.json +1 -1
  7. package/dist/docs/index.html +1 -1
  8. package/dist/docs/js/app.68a1a2aa.js +2 -0
  9. package/dist/docs/js/app.68a1a2aa.js.map +1 -0
  10. package/dist/scw-card/scw-card.js +215 -1
  11. package/dist/scw-card/scw-card.js.map +3 -3
  12. package/dist/scw-test/scw-test.js +28 -1
  13. package/dist/scw-test/scw-test.js.map +3 -3
  14. package/dist/scw.d.ts +5 -0
  15. package/dist/scw.js +6 -0
  16. package/dist/{chunks/chunk.42IFU2WK.js.map → scw.js.map} +3 -3
  17. package/dist/tokens/source/jsCss.js +1 -1
  18. package/dist/tokens/source/jsCss.js.gz +0 -0
  19. package/dist/tokens/source/jsCssGenerator.js +1 -1
  20. package/dist/tokens/source/jsCssGenerator.js.gz +0 -0
  21. package/dist/tokens/source/jsCssGeneratorSansAssets.js +1 -1
  22. package/dist/tokens/source/jsCssGeneratorSansAssets.js.gz +0 -0
  23. package/package.json +1 -1
  24. package/dist/chunks/chunk.42IFU2WK.js +0 -6
  25. package/dist/chunks/chunk.SDGFQPKJ.js +0 -216
  26. package/dist/chunks/chunk.SDGFQPKJ.js.map +0 -7
  27. package/dist/chunks/chunk.ZJVMOWGT.js +0 -29
  28. package/dist/chunks/chunk.ZJVMOWGT.js.map +0 -7
  29. package/dist/docs/js/app.5832e312.js +0 -2
  30. package/dist/docs/js/app.5832e312.js.map +0 -1
  31. package/dist/scw-components-custom.d.ts +0 -5
  32. package/dist/scw-components-custom.js +0 -2
  33. package/dist/scw-components-custom.js.map +0 -7
  34. package/dist/scw-components.d.ts +0 -2
  35. package/dist/scw-components.js +0 -2
  36. package/dist/scw-components.js.map +0 -7
  37. package/dist/scw-styles.d.ts +0 -1
  38. package/dist/scw-styles.js +0 -2
  39. 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-test
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 'scw-components/scw-button/scw-button.js';
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
- ```html
23
- <script type="module">
24
- import defineComponents from 'scw-components/scw-components-custom.js';
25
- defineComponents(
26
- ['scw-test', 'scw-button'],
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
  ```