react-jsbarcode 0.2.0 → 0.2.3
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/CHANGELOG.md +16 -0
- package/Readme.md +15 -3
- package/lib/index.d.ts +5 -4
- package/lib/index.esm.js +3350 -0
- package/lib/index.esm.js.map +1 -0
- package/lib/index.js +3365 -36
- package/lib/index.js.map +1 -1
- package/package.json +11 -3
- package/lib/index.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.2.3](https://github.com/iamchathu/react-jsbarcode/compare/v0.2.3-beta.0...v0.2.3) (2021-10-12)
|
|
6
|
+
|
|
7
|
+
### [0.2.3-beta.0](https://github.com/iamchathu/react-jsbarcode/compare/v0.2.2...v0.2.3-beta.0) (2021-10-12)
|
|
8
|
+
|
|
9
|
+
### [0.2.2](https://github.com/iamchathu/react-jsbarcode/compare/v0.2.1...v0.2.2) (2021-10-08)
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
- add className and style support ([cd4d63a](https://github.com/iamchathu/react-jsbarcode/commit/cd4d63ac6a42ba2401f95898c548c318aed7dca3))
|
|
14
|
+
|
|
15
|
+
### [0.2.1](https://github.com/iamchathu/react-jsbarcode/compare/v0.2.0...v0.2.1) (2021-10-07)
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
- make options optional prop ([0bc6f4b](https://github.com/iamchathu/react-jsbarcode/commit/0bc6f4b3cb41efbc97f71495f2f9f8f40775353e))
|
|
20
|
+
|
|
5
21
|
## [0.2.0](https://github.com/iamchathu/react-jsbarcode/compare/v0.1.2...v0.2.0) (2021-10-07)
|
|
6
22
|
|
|
7
23
|
### ⚠ BREAKING CHANGES
|
package/Readme.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
## About
|
|
11
11
|
|
|
12
|
-
This is a [React](https://reactjs.org) component wrapping up [jsbarcode](<[https://](https://github.com/lindell/JsBarcode)>). Written as a React functional component using React hooks.
|
|
12
|
+
This is a [React](https://reactjs.org) component wrapping up [jsbarcode](<[https://](https://github.com/lindell/JsBarcode)>). Written as a React functional component using React hooks. <ReactBarcode />
|
|
13
13
|
|
|
14
14
|
## Installation
|
|
15
15
|
|
|
@@ -27,11 +27,23 @@ yarn add react-jsbarcode
|
|
|
27
27
|
|
|
28
28
|
## Usage
|
|
29
29
|
|
|
30
|
+
- Basic usage
|
|
31
|
+
|
|
32
|
+
```tsx
|
|
33
|
+
import ReactBarcode from 'react-jsbarcode';
|
|
34
|
+
|
|
35
|
+
const App = () => {
|
|
36
|
+
return <ReactBarcode value="ABC123" />;
|
|
37
|
+
};
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
- Advanced usage
|
|
41
|
+
|
|
30
42
|
```tsx
|
|
31
|
-
import
|
|
43
|
+
import ReactBarcode from 'react-jsbarcode';
|
|
32
44
|
|
|
33
45
|
const App = () => {
|
|
34
|
-
return <
|
|
46
|
+
return <ReactBarcode value="ABC123" options={{ format: 'code128' }} renderer="svg" />;
|
|
35
47
|
};
|
|
36
48
|
```
|
|
37
49
|
|
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { Options } from 'jsbarcode';
|
|
3
3
|
export declare const enum Renderer {
|
|
4
4
|
svg = "svg",
|
|
@@ -8,9 +8,10 @@ export declare const enum Renderer {
|
|
|
8
8
|
export interface ReactBarcodeProps {
|
|
9
9
|
renderer?: Renderer;
|
|
10
10
|
value: string;
|
|
11
|
-
options
|
|
11
|
+
options?: Options;
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
className?: string;
|
|
12
14
|
}
|
|
13
15
|
export { Options };
|
|
14
|
-
declare const ReactBarcode: ({ value, options, renderer }: ReactBarcodeProps) => JSX.Element;
|
|
16
|
+
declare const ReactBarcode: ({ style, className, value, options, renderer }: ReactBarcodeProps) => JSX.Element;
|
|
15
17
|
export default ReactBarcode;
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|