1
0
Fork 0

feat: create clean exports

This commit is contained in:
François Chalifour 2020-04-24 15:29:56 +02:00
parent 15ddd0aa5f
commit dbcebed048
4 changed files with 4 additions and 1 deletions

1
button.js Normal file
View file

@ -0,0 +1 @@
export { DocSearchButton } from './dist/esm/DocSearchButton.js';

1
modal.js Normal file
View file

@ -0,0 +1 @@
export { DocSearchModal } from './dist/esm/DocSearchModal.js';

View file

@ -17,7 +17,7 @@ function isAppleDevice() {
return /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform);
}
export function SearchButton(props: SearchButtonProps) {
export function DocSearchButton(props: SearchButtonProps) {
const [key, setKey] = useState(() =>
isAppleDevice() ? ACTION_KEY_APPLE : ACTION_KEY_DEFAULT
);

1
style.js Normal file
View file

@ -0,0 +1 @@
import './dist/esm/style.css';