Skip to content

Export Token component from the library #154

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/bundle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
<script defer src="bundle.js?4ddb1f5f1c8ed8feab9c"></script></head>
<script defer src="bundle.js?3600fdae6d56c59a0325"></script></head>
<body>
<div id="container"></div>
<script src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?version=4.8.0" crossorigin="anonymous"></script>
Expand Down
1 change: 1 addition & 0 deletions lib/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import TokenInput from './TokenInput';
export type { TokenInputRef, TokenInputProps } from './TokenInput';
export type { TokenProps } from './Token';
export { default as Token } from './Token';
export { JS__TOKEN__DELETE_BUTTON__CLASS_NAME, KEY_DOWN_HANDLER_CONFIG_OPTION, DEFAULT_SEPARATORS, } from './constants';
export default TokenInput;
2 changes: 1 addition & 1 deletion lib/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/index.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import TokenInput from './TokenInput';

export type { TokenInputRef, TokenInputProps } from './TokenInput';
export type { TokenProps } from './Token';
export { default as Token } from './Token';
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Export from the same component should be made by the same export line~

export {
JS__TOKEN__DELETE_BUTTON__CLASS_NAME,
KEY_DOWN_HANDLER_CONFIG_OPTION,
Expand Down