react-qrcode
Advanced tools
Comparing version 0.3.4 to 0.3.5
@@ -1,4 +0,4 @@ | ||
import React, { HTMLAttributes } from 'react'; | ||
import { FC, HTMLAttributes } from 'react'; | ||
import { QRCodeOptions } from './types.js'; | ||
export declare type QRCodeProps = Omit<HTMLAttributes<HTMLImageElement>, 'color' | 'src'> & QRCodeOptions; | ||
export declare const QRCode: React.FC<QRCodeProps>; | ||
export declare const QRCode: FC<QRCodeProps>; |
import { __rest } from "tslib"; | ||
import React from 'react'; | ||
import { createElement } from 'react'; | ||
import { useQRCode } from './use-qrcode.js'; | ||
export const QRCode = (_a) => { | ||
var { color, errorCorrectionLevel, margin, maskPattern, quality, scale, toSJISFunc, type, value, version, width } = _a, props = __rest(_a, ["color", "errorCorrectionLevel", "margin", "maskPattern", "quality", "scale", "toSJISFunc", "type", "value", "version", "width"]); | ||
return React.createElement('img', Object.assign(Object.assign({}, props), { src: useQRCode({ | ||
return createElement('img', Object.assign(Object.assign({}, props), { src: useQRCode({ | ||
color, | ||
@@ -8,0 +8,0 @@ errorCorrectionLevel, |
{ | ||
"name": "react-qrcode", | ||
"version": "0.3.4", | ||
"version": "0.3.5", | ||
"type": "module", | ||
"description": "🤳 A React component for QR code generation with `qrcode`", | ||
"repository": "git@github.com:rx-ts/react.git", | ||
"repository": "git+https://github.com/rx-ts/react.git", | ||
"homepage": "https://github.com/rx-ts/react/blob/master/packages/react-qrcode", | ||
@@ -40,3 +40,3 @@ "author": "JounQin (https://www.1stG.me) <admin@1stg.me>", | ||
}, | ||
"funding": "https://opencollective.com/unts", | ||
"funding": "https://opencollective.com/rxts", | ||
"license": "MIT", | ||
@@ -70,2 +70,2 @@ "main": "./lib/index.cjs", | ||
"sideEffects": false | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
18248
16
238