Files
timi-tdesign-mobile/src/components/index.ts
T

192 lines
4.0 KiB
TypeScript

/** 导出所有组件 */
import RootLayout from "./root-layout";
import PageTransition from "./page-transition";
import AppShell from "./app-shell";
import MasterDetail from "./master-detail";
import MasterDetailPage from "./master-detail-page";
import PaneTransition from "./pane-transition";
import DurationPicker from "./duration-picker";
import CodeEditor from "./code-editor";
import TiptapEditor from "./tiptap-editor";
import TiptapView from "./tiptap-view";
import ArticleEditor from "./article-editor";
import ArticleView from "./article-view";
import NotifyEditor from "./notify-editor";
import NotifyView from "./notify-view";
import BottomPopup from "./bottom-popup";
import AttachmentSelector from "./attachment-selector";
import Space from "./space";
import { Timeline, TimelineItem } from "./timeline";
import CardContainer from "./card-container";
import DropdownFilter from "./dropdown-filter";
import {
AiChatComposer,
AiChatMessageList,
AiChatPanel,
AiChatThinking
} from "./ai";
export default [
RootLayout,
PageTransition,
AppShell,
MasterDetail,
MasterDetailPage,
PaneTransition,
DurationPicker,
CodeEditor,
TiptapEditor,
TiptapView,
ArticleEditor,
ArticleView,
NotifyEditor,
NotifyView,
BottomPopup,
AttachmentSelector,
Space,
Timeline,
TimelineItem,
CardContainer,
DropdownFilter,
AiChatComposer,
AiChatMessageList,
AiChatPanel,
AiChatThinking
];
export {
RootLayout,
PageTransition,
AppShell,
MasterDetail,
MasterDetailPage,
PaneTransition,
DurationPicker,
CodeEditor,
TiptapEditor,
TiptapView,
ArticleEditor,
ArticleView,
NotifyEditor,
NotifyView,
BottomPopup,
AttachmentSelector,
Space,
Timeline,
TimelineItem,
CardContainer,
DropdownFilter,
AiChatComposer,
AiChatMessageList,
AiChatPanel,
AiChatThinking
};
export { createLayoutContext, provideLayout, useLayout } from "./app-shell";
export { useExpandToMaster, useMasterDetail, useMasterDetailPane, usePane, providePane } from "../composables/use-master-detail";
export type { ExpandToMasterOptions, PaneContext, PaneDirection, UseMasterDetailOptions, UseMasterDetailPaneOptions, UseMasterDetailPaneReturn, UseMasterDetailReturn } from "../composables/use-master-detail";
export type {
AppShellItem,
AppShellLayoutOptions,
AppShellMode,
AppShellProps,
AppShellValue,
LayoutContext
} from "./app-shell";
export type { MasterDetailProps } from "./master-detail";
export type { MasterDetailPageProps } from "./master-detail-page";
export {
AiChatHttpError,
AiChatStreamError,
ensureChatResponse,
parseAssistantResponse,
parseSseData,
readSseStream,
useAiChat
} from "./ai";
export type {
AiChatCitationFormatter,
AiChatErrorMessages,
AiChatEventAction,
AiChatMessage,
AiChatMessageStatusFormatter,
AiChatRequestContext,
AiChatRoleNameFormatter,
AiChatRoleNames,
AiChatStreamEvent,
AiCitation,
AiMessageRole,
AiThinking,
UseAiChatOptions
} from "./ai";
export type {
SpaceAlign,
SpaceDirection,
SpaceProps,
SpaceSeparator,
SpaceSize,
SpaceSlots
} from "./space";
export type {
CardContainerProps
} from "./card-container";
export type {
DropdownFilterChange,
DropdownFilterItem,
DropdownFilterOption,
DropdownFilterProps
} from "./dropdown-filter";
export type {
AttachmentSelectorItem,
AttachmentSelectorProps,
AttachmentSelectorSelection,
AttachmentSelectorViewerItem
} from "./attachment-selector";
export type {
PageTransitionBackground,
PageTransitionClass,
PageTransitionKeepAliveMatcher,
PageTransitionNameResolver,
PageTransitionProps,
PageTransitionRoute,
PageTransitionRouteDepthResolver,
PageTransitionRouteKeyResolver
} from "./page-transition";
export type {
CodeEditorExpose
} from "./code-editor";
export type {
TiptapEditorExpose
} from "./tiptap-editor";
export type {
ArticleEditorExpose
} from "./article-editor";
export type {
NotifyEditorExpose
} from "./notify-editor";
export type {
Article,
ArticleContentType,
Attachment,
UploadResult
} from "./article-editor";
export type {
NotifyContentType,
NotifyDetail
} from "./notify-editor";