Skip to content

Commit

Permalink
Merge pull request #21 from SamWilsn/export-from
Browse files Browse the repository at this point in the history
Use `export ... from ...` syntax for re-exports
  • Loading branch information
farooqkz authored Jun 26, 2024
2 parents 9c526db + d3a6506 commit c30b054
Showing 1 changed file with 17 additions and 37 deletions.
54 changes: 17 additions & 37 deletions KaiUIngInferno/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,40 +1,20 @@
import Header from "./ui/Header";
import IconListItem from "./ui/IconListItem";
import TextListItem from "./ui/TextListItem";
import SoftKey from "./ui/SoftKey";
import Tab from "./ui/Tab";
import Tabs from "./ui/Tabs";
import TextInput from "./ui/TextInput";
import Separator from "./ui/Separator";
import Button from "./ui/Button";
export {default as Header } from "./ui/Header";
export { default as IconListItem } from "./ui/IconListItem";
export { default as TextListItem } from "./ui/TextListItem";
export { default as SoftKey } from "./ui/SoftKey";
export { default as Tab } from "./ui/Tab";
export { default as Tabs } from "./ui/Tabs";
export { default as TextInput } from "./ui/TextInput";
export { default as Separator } from "./ui/Separator";
export { default as Button } from "./ui/Button";

import Avatar from "./ui/Avatar";
import DropDownMenu from "./DropDownMenu";
export { default as Avatar } from "./ui/Avatar";
export { default as DropDownMenu } from "./DropDownMenu";

import ListView from "./views/ListView";
import ListViewKeyed from "./views/ListViewKeyed";
import ListViewNonKeyed from "./views/ListViewNonKeyed";
import TabView from "./views/TabView";
export { default as ListView } from "./views/ListView";
export { default as ListViewKeyed } from "./views/ListViewKeyed";
export { default as ListViewNonKeyed } from "./views/ListViewNonKeyed";
export { default as TabView } from "./views/TabView";

import { asArray } from "./utils";
import toast from "./toast";

export {
Header,
IconListItem,
TextInput,
TextListItem,
SoftKey,
Tab,
Tabs,
Separator,
ListView,
ListViewNonKeyed,
ListViewKeyed,
TabView,
Avatar,
DropDownMenu,
Button,
asArray,
toast,
};
export { asArray } from "./utils";
export { default as toast } from "./toast";

0 comments on commit c30b054

Please sign in to comment.