impact-ui 0.1.18 → 0.1.20
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 +21 -6
- package/dist/{assets/images/avatar.svg → 166bd048260d2fea.svg} +0 -0
- package/dist/index.cjs.js +1379 -0
- package/dist/index.esm.js +1340 -0
- package/dist/index.js +1616 -401
- package/package.json +62 -45
- package/dist/assets/.DS_Store +0 -0
- package/dist/assets/images/Logo.svg +0 -11
- package/dist/assets/images/checkbox-tick.svg +0 -3
- package/dist/assets/images/close.svg +0 -3
- package/dist/assets/images/error.svg +0 -3
- package/dist/assets/images/home-disabled.svg +0 -3
- package/dist/assets/images/home-primary.svg +0 -3
- package/dist/assets/images/home-secondary.svg +0 -3
- package/dist/assets/images/home-white.svg +0 -3
- package/dist/assets/images/info.svg +0 -3
- package/dist/assets/images/location.png +0 -0
- package/dist/assets/images/notification-close.svg +0 -3
- package/dist/assets/images/success.svg +0 -3
- package/dist/assets/images/warning.svg +0 -3
- package/dist/index.js.map +0 -1
- package/dist/index.modern.js +0 -371
- package/dist/index.modern.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,22 +1,37 @@
|
|
|
1
|
-
#
|
|
1
|
+
# impact-ui
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> Impact Analytics UI library
|
|
4
4
|
|
|
5
|
-
[](https://www.npmjs.com/package/impact-ui) [](https://standardjs.com)
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npm install --save
|
|
10
|
+
npm install --save impact-ui
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
+
## Start, Build and Publish
|
|
14
|
+
|
|
15
|
+
`npm run start // Start docs`
|
|
16
|
+
|
|
17
|
+
`npm run build:lib // Build lib`
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
// Upgrade versin in package.json
|
|
21
|
+
npm login
|
|
22
|
+
npm publish
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Generate component
|
|
26
|
+
|
|
27
|
+
`npm run generate-component -- <component-name>`
|
|
28
|
+
|
|
13
29
|
## Usage
|
|
14
30
|
|
|
15
31
|
```jsx
|
|
16
32
|
import React, { Component } from 'react'
|
|
17
33
|
|
|
18
|
-
import MyComponent from '
|
|
19
|
-
import 'poc/dist/index.css'
|
|
34
|
+
import MyComponent from 'impact-ui'
|
|
20
35
|
|
|
21
36
|
class Example extends Component {
|
|
22
37
|
render() {
|
|
File without changes
|