feat: create clean exports
This commit is contained in:
parent
15ddd0aa5f
commit
dbcebed048
4 changed files with 4 additions and 1 deletions
1
button.js
Normal file
1
button.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
export { DocSearchButton } from './dist/esm/DocSearchButton.js';
|
||||
1
modal.js
Normal file
1
modal.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
export { DocSearchModal } from './dist/esm/DocSearchModal.js';
|
||||
|
|
@ -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
1
style.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
import './dist/esm/style.css';
|
||||
Loading…
Reference in a new issue