@corvina/web-components-library 0.1.0 → 0.1.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 +5 -8
- package/package.json +1 -1
- package/web-components-library.cjs.js +11 -11
- package/web-components-library.css +1 -1
- package/web-components-library.es.js +4681 -4580
- package/web-components-library.umd.js +11 -11
package/README.md
CHANGED
|
@@ -1,24 +1,21 @@
|
|
|
1
1
|
# Corvina Components Library
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
Currently, the library includes the following components:
|
|
5
|
-
- corvina-button
|
|
6
|
-
- corvina-table
|
|
2
|
+
This library is a collection of web components aimed to be used in the Corvina App.
|
|
7
3
|
|
|
8
4
|
# Installation
|
|
9
5
|
|
|
10
6
|
To install the package run the following command:
|
|
11
7
|
|
|
12
8
|
```bash
|
|
13
|
-
npm install @corvina/components-library
|
|
9
|
+
npm install @corvina/web-components-library
|
|
14
10
|
```
|
|
15
11
|
|
|
16
12
|
# Usage
|
|
17
13
|
|
|
18
14
|
Add the following code to your main.js file:
|
|
19
15
|
|
|
20
|
-
```
|
|
21
|
-
import CorvinaComponents from "@corvina/components-library";
|
|
16
|
+
```js
|
|
17
|
+
import CorvinaComponents from "@corvina/web-components-library";
|
|
18
|
+
import "@corvina/web-components-library/web-components-library.css"
|
|
22
19
|
// 3 parameters: locale: string = 'en', shouldLoadTheme: boolean = false, shouldLoadFonts: boolean = false) {
|
|
23
20
|
CorvinaComponents.initCorvinaComponents('en')
|
|
24
21
|
```
|