@bookipi/htmlgenerator 1.1.17-alpha4 → 1.1.17-alpha6
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 +11 -10
- package/dist/bootstrap.css +705 -276
- package/dist/font-awesome.css +13 -7
- package/dist/index.css +1336 -492
- package/dist/index.js +1575 -1569
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1575 -1569
- package/dist/index.modern.js.map +1 -1
- package/package.json +5 -2
package/README.md
CHANGED
|
@@ -15,24 +15,25 @@ npm install --save @bookipi/htmlgenerator
|
|
|
15
15
|
please link the react and react-dom first via the following steps for dev environment.
|
|
16
16
|
|
|
17
17
|
1. In Your Application:
|
|
18
|
-
a) cd node_modules/react && npm link && cd ../../
|
|
19
|
-
b) cd node_modules/react-dom && npm link && cd ../../
|
|
18
|
+
a) cd node_modules/react && npm link && cd ../../
|
|
19
|
+
b) cd node_modules/react-dom && npm link && cd ../../
|
|
20
20
|
|
|
21
21
|
2. In Your Library
|
|
22
|
-
a) npm link react
|
|
23
|
-
b) npm link react-dom
|
|
22
|
+
a) npm link react
|
|
23
|
+
b) npm link react-dom
|
|
24
24
|
|
|
25
25
|
```jsx
|
|
26
|
-
import React, { Component } from
|
|
26
|
+
import React, { Component } from "react";
|
|
27
27
|
|
|
28
|
-
import {InvoiceCompatHtml} from
|
|
28
|
+
import { InvoiceCompatHtml } from "@bookipi/htmlgenerator";
|
|
29
29
|
|
|
30
30
|
class Example extends Component {
|
|
31
31
|
render() {
|
|
32
|
-
return
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
return (
|
|
33
|
+
<div
|
|
34
|
+
dangerouslySetInnerHTML={{ __html: InvoiceCompatHtml(invoice, lang) }}
|
|
35
|
+
/>
|
|
36
|
+
);
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
39
|
```
|