From d3a650677156fec7e3f46ba8f4d85b886bc4be41 Mon Sep 17 00:00:00 2001 From: Sam Wilson Date: Thu, 7 Mar 2024 22:47:18 -0500 Subject: [PATCH] Use `export ... from ...` syntax for re-exports --- KaiUIngInferno/src/index.ts | 54 ++++++++++++------------------------- 1 file changed, 17 insertions(+), 37 deletions(-) diff --git a/KaiUIngInferno/src/index.ts b/KaiUIngInferno/src/index.ts index 0ba3025..52d3132 100644 --- a/KaiUIngInferno/src/index.ts +++ b/KaiUIngInferno/src/index.ts @@ -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";