diff --git a/package.json b/package.json index 5c8faee..d42bd81 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kne-components/components-core", - "version": "0.3.14", + "version": "0.3.15", "files": [ "build" ], diff --git a/src/components/File/File.js b/src/components/File/File.js index b2ed0fc..5557e2b 100644 --- a/src/components/File/File.js +++ b/src/components/File/File.js @@ -1 +1 @@ -export { default } from "@kne/react-file"; +export {default, PrintButton} from "@kne/react-file"; diff --git a/src/components/File/index.js b/src/components/File/index.js index 32b6b15..f1f4d4e 100644 --- a/src/components/File/index.js +++ b/src/components/File/index.js @@ -1,53 +1,44 @@ import "@kne/react-file/dist/index.css"; import useRefCallback from "@kne/use-ref-callback"; import { - FileButton as FileButtonBase, - useFileModalProps, + FileButton as FileButtonBase, useFileModalProps, } from "@kne/react-file"; -import Modal, { useModal } from "@components/Modal"; +import Modal, {useModal} from "@components/Modal"; import classnames from "classnames"; export const FileButton = (p) => { - return ( - { - return ( - - ); - }, - }, - })} - /> - ); + return ( { + return (); + }, + }, + })} + />); }; export const FileLink = (p) => { - const { className, ...props } = Object.assign({}, p); - return ( - - {props.children || props.filename || props.originName} - - ); + {props.children || props.filename || props.originName} + ); }; export const useFileModal = (p) => { - const { title, children, footer } = useFileModalProps(Object.assign({}, p)); - const modal = useModal(); - return useRefCallback(() => { - return modal({ - title, - children, - footer, + const {title, children, footer} = useFileModalProps(Object.assign({}, p)); + const modal = useModal(); + return useRefCallback(() => { + return modal({ + title, children, footer, + }); }); - }); }; -export { default as Download, downloadBlobFile, useDownload } from "./Download"; -export { default as List, OptionButtons } from "./List"; -export { default } from "./File"; +export {default as Download, downloadBlobFile, useDownload} from "./Download"; +export {default as List, OptionButtons} from "./List"; +export {default, PrintButton} from "./File"; \ No newline at end of file