vxui-react 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +198 -0
- package/dist/components/Accordion.d.ts +14 -0
- package/dist/components/Alert.d.ts +10 -0
- package/dist/components/AppShell.d.ts +37 -0
- package/dist/components/Avatar.d.ts +12 -0
- package/dist/components/Badge.d.ts +7 -0
- package/dist/components/Breadcrumb.d.ts +12 -0
- package/dist/components/Button.d.ts +10 -0
- package/dist/components/Card.d.ts +6 -0
- package/dist/components/Checkbox.d.ts +7 -0
- package/dist/components/CodeBlock.d.ts +9 -0
- package/dist/components/CommandPalette.d.ts +22 -0
- package/dist/components/Dialog.d.ts +11 -0
- package/dist/components/DropdownMenu.d.ts +23 -0
- package/dist/components/Heading.d.ts +13 -0
- package/dist/components/Input.d.ts +9 -0
- package/dist/components/LanguageSwitcher.d.ts +9 -0
- package/dist/components/Pagination.d.ts +9 -0
- package/dist/components/Popover.d.ts +13 -0
- package/dist/components/Progress.d.ts +11 -0
- package/dist/components/Radio.d.ts +12 -0
- package/dist/components/Select.d.ts +7 -0
- package/dist/components/Separator.d.ts +6 -0
- package/dist/components/Skeleton.d.ts +8 -0
- package/dist/components/Slider.d.ts +7 -0
- package/dist/components/Spinner.d.ts +8 -0
- package/dist/components/Switch.d.ts +7 -0
- package/dist/components/Table.d.ts +26 -0
- package/dist/components/Tabs.d.ts +5 -0
- package/dist/components/Text.d.ts +14 -0
- package/dist/components/Textarea.d.ts +7 -0
- package/dist/components/ThemeProvider.d.ts +46 -0
- package/dist/components/Toast.d.ts +15 -0
- package/dist/components/Tooltip.d.ts +11 -0
- package/dist/components/mobile/ActionSheet.d.ts +15 -0
- package/dist/components/mobile/BottomNav.d.ts +15 -0
- package/dist/components/mobile/MobileApp.d.ts +1 -0
- package/dist/components/mobile/MobileDrawer.d.ts +27 -0
- package/dist/components/mobile/MobileList.d.ts +24 -0
- package/dist/components/mobile/MobilePreviewPage.d.ts +5 -0
- package/dist/components/mobile/MobileShell.d.ts +24 -0
- package/dist/components/pages/ErrorPage.d.ts +9 -0
- package/dist/components/pages/HomePage.d.ts +10 -0
- package/dist/components/pages/LoginPage.d.ts +12 -0
- package/dist/components/pages/PrivacyPolicyPage.d.ts +5 -0
- package/dist/components/pages/RegisterPage.d.ts +14 -0
- package/dist/components/pages/TermsOfServicePage.d.ts +5 -0
- package/dist/index.cjs +85 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3818 -0
- package/dist/lib/cx.d.ts +1 -0
- package/dist/lib/index.d.ts +61 -0
- package/dist/vxui-react.css +1 -0
- package/package.json +69 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export interface ProgressProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
value?: number;
|
|
4
|
+
max?: number;
|
|
5
|
+
label?: string;
|
|
6
|
+
showLabel?: boolean;
|
|
7
|
+
size?: 'sm' | 'md' | 'lg';
|
|
8
|
+
variant?: 'default' | 'success' | 'warning' | 'danger';
|
|
9
|
+
indeterminate?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function Progress({ className, value, max, label, showLabel, size, variant, indeterminate, ...props }: ProgressProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { InputHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type'> {
|
|
3
|
+
label?: ReactNode;
|
|
4
|
+
description?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function Radio({ className, label, description, ...props }: RadioProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export interface RadioGroupProps {
|
|
8
|
+
label?: string;
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function RadioGroup({ label, children, className }: RadioGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SelectHTMLAttributes } from 'react';
|
|
2
|
+
export interface SelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
|
|
3
|
+
label?: string;
|
|
4
|
+
hint?: string;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function Select({ className, label, hint, placeholder, children, ...props }: SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export interface SeparatorProps extends HTMLAttributes<HTMLHRElement> {
|
|
3
|
+
orientation?: 'horizontal' | 'vertical';
|
|
4
|
+
decorative?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare function Separator({ className, orientation, decorative, ...props }: SeparatorProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export interface SkeletonProps extends HTMLAttributes<HTMLSpanElement> {
|
|
3
|
+
width?: string | number;
|
|
4
|
+
height?: string | number;
|
|
5
|
+
variant?: 'text' | 'rect' | 'circle';
|
|
6
|
+
lines?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare function Skeleton({ className, width, height, variant, lines, style, ...props }: SkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { InputHTMLAttributes } from 'react';
|
|
2
|
+
export interface SliderProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type'> {
|
|
3
|
+
label?: string;
|
|
4
|
+
showValue?: boolean;
|
|
5
|
+
hint?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function Slider({ className, label, showValue, hint, value, defaultValue, ...props }: SliderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
type SpinnerSize = 'sm' | 'md' | 'lg';
|
|
3
|
+
export interface SpinnerProps extends HTMLAttributes<HTMLSpanElement> {
|
|
4
|
+
size?: SpinnerSize;
|
|
5
|
+
label?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function Spinner({ className, size, label, ...props }: SpinnerProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
3
|
+
export interface SwitchProps extends ComponentPropsWithoutRef<typeof SwitchPrimitive.Root> {
|
|
4
|
+
label: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function Switch({ className, label, description, ...props }: SwitchProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ReactNode, HTMLAttributes } from 'react';
|
|
2
|
+
export type SortDirection = 'asc' | 'desc' | null;
|
|
3
|
+
export interface TableColumn<T> {
|
|
4
|
+
key: string;
|
|
5
|
+
header: ReactNode;
|
|
6
|
+
accessor: (row: T) => ReactNode;
|
|
7
|
+
sortable?: boolean;
|
|
8
|
+
width?: string | number;
|
|
9
|
+
align?: 'left' | 'center' | 'right';
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface TableProps<T> extends HTMLAttributes<HTMLDivElement> {
|
|
13
|
+
columns: TableColumn<T>[];
|
|
14
|
+
data: T[];
|
|
15
|
+
striped?: boolean;
|
|
16
|
+
hoverable?: boolean;
|
|
17
|
+
bordered?: boolean;
|
|
18
|
+
compact?: boolean;
|
|
19
|
+
stickyHeader?: boolean;
|
|
20
|
+
caption?: string;
|
|
21
|
+
emptyText?: ReactNode;
|
|
22
|
+
sortColumn?: string | null;
|
|
23
|
+
sortDirection?: SortDirection;
|
|
24
|
+
onSortChange?: (column: string, direction: SortDirection) => void;
|
|
25
|
+
}
|
|
26
|
+
export declare function Table<T>({ columns, data, striped, hoverable, bordered, compact, stickyHeader, caption, emptyText, sortColumn: controlledSortCol, sortDirection: controlledSortDir, onSortChange, className, ...props }: TableProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
2
|
+
export declare const Tabs: import('react').ForwardRefExoticComponent<TabsPrimitive.TabsProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export declare const TabsList: import('react').ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
4
|
+
export declare const TabsTrigger: import('react').ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & import('react').RefAttributes<HTMLButtonElement>, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
export declare const TabsContent: import('react').ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
type TextVariant = 'default' | 'secondary' | 'muted' | 'danger' | 'success';
|
|
3
|
+
type TextSize = 'sm' | 'base' | 'lg' | 'xl';
|
|
4
|
+
type TextWeight = 'normal' | 'medium' | 'semibold' | 'bold';
|
|
5
|
+
type TextElement = 'p' | 'span' | 'div';
|
|
6
|
+
export interface TextProps extends HTMLAttributes<HTMLElement> {
|
|
7
|
+
as?: TextElement;
|
|
8
|
+
variant?: TextVariant;
|
|
9
|
+
size?: TextSize;
|
|
10
|
+
weight?: TextWeight;
|
|
11
|
+
truncate?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare function Text({ as: Component, variant, size, weight, truncate, className, ...props }: TextProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TextareaHTMLAttributes } from 'react';
|
|
2
|
+
export interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
3
|
+
label?: string;
|
|
4
|
+
hint?: string;
|
|
5
|
+
resize?: 'none' | 'vertical' | 'horizontal' | 'both';
|
|
6
|
+
}
|
|
7
|
+
export declare function Textarea({ className, label, hint, resize, style, ...props }: TextareaProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type ThemeMode = 'light' | 'dark';
|
|
3
|
+
export type ThemeTokens = Partial<Record<`--vx-${string}`, string>>;
|
|
4
|
+
export interface ThemeDefinition {
|
|
5
|
+
label?: string;
|
|
6
|
+
mode: ThemeMode;
|
|
7
|
+
tokens?: ThemeTokens;
|
|
8
|
+
}
|
|
9
|
+
export type ThemeRegistry = Record<string, ThemeDefinition>;
|
|
10
|
+
interface CreateThemeOptions {
|
|
11
|
+
label?: string;
|
|
12
|
+
tokens?: ThemeTokens;
|
|
13
|
+
}
|
|
14
|
+
export declare function createTheme(mode: ThemeMode, options?: CreateThemeOptions): ThemeDefinition;
|
|
15
|
+
export declare const themePresets: {
|
|
16
|
+
sunset: ThemeDefinition;
|
|
17
|
+
mint: ThemeDefinition;
|
|
18
|
+
graphite: ThemeDefinition;
|
|
19
|
+
'ivory-gold': ThemeDefinition;
|
|
20
|
+
'black-gold': ThemeDefinition;
|
|
21
|
+
ocean: ThemeDefinition;
|
|
22
|
+
light: {
|
|
23
|
+
label: string;
|
|
24
|
+
mode: "light";
|
|
25
|
+
};
|
|
26
|
+
dark: {
|
|
27
|
+
label: string;
|
|
28
|
+
mode: "dark";
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
interface ThemeContextValue {
|
|
32
|
+
theme: string;
|
|
33
|
+
mode: ThemeMode;
|
|
34
|
+
themes: ThemeRegistry;
|
|
35
|
+
setTheme: (theme: string) => void;
|
|
36
|
+
toggleTheme: () => void;
|
|
37
|
+
}
|
|
38
|
+
interface ThemeProviderProps {
|
|
39
|
+
children: ReactNode;
|
|
40
|
+
defaultTheme?: string;
|
|
41
|
+
storageKey?: string;
|
|
42
|
+
themes?: ThemeRegistry;
|
|
43
|
+
}
|
|
44
|
+
export declare function ThemeProvider({ children, defaultTheme, storageKey, themes, }: ThemeProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
export declare function useTheme(): ThemeContextValue;
|
|
46
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
type ToastTone = 'info' | 'success' | 'warning' | 'danger';
|
|
3
|
+
interface ToastInput {
|
|
4
|
+
title: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
tone?: ToastTone;
|
|
7
|
+
}
|
|
8
|
+
interface ToastContextValue {
|
|
9
|
+
push: (toast: ToastInput) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function ToastProvider({ children }: {
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function useToast(): ToastContextValue;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right';
|
|
3
|
+
export interface TooltipProps {
|
|
4
|
+
content: ReactNode;
|
|
5
|
+
placement?: TooltipPlacement;
|
|
6
|
+
delay?: number;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function Tooltip({ content, placement, delay, children, className }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode, ButtonHTMLAttributes } from 'react';
|
|
2
|
+
export interface ActionSheetProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
title?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function ActionSheet({ open, onClose, title, description, children, className, }: ActionSheetProps): import("react/jsx-runtime").JSX.Element | null;
|
|
11
|
+
export interface ActionSheetItemProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
12
|
+
icon?: ReactNode;
|
|
13
|
+
destructive?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare function ActionSheetItem({ icon, destructive, className, children, ...props }: ActionSheetItemProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface BottomNavItem {
|
|
3
|
+
key: string;
|
|
4
|
+
label: string;
|
|
5
|
+
icon: ReactNode;
|
|
6
|
+
/** 数字或字符串角标,超过 99 建议传 '99+' */
|
|
7
|
+
badge?: string | number;
|
|
8
|
+
active?: boolean;
|
|
9
|
+
onSelect?: () => void;
|
|
10
|
+
}
|
|
11
|
+
export interface BottomNavProps {
|
|
12
|
+
items: BottomNavItem[];
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare function BottomNav({ items, className }: BottomNavProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function MobileApp(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface MobileDrawerProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
/** 抽屉宽度,默认 280px */
|
|
6
|
+
width?: number;
|
|
7
|
+
/** 抽屉头部内容(品牌 logo、用户信息等) */
|
|
8
|
+
header?: ReactNode;
|
|
9
|
+
/** 抽屉底部内容(设置、登出等) */
|
|
10
|
+
footer?: ReactNode;
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function MobileDrawer({ open, onClose, width, header, footer, children, className, }: MobileDrawerProps): import("react/jsx-runtime").JSX.Element | null;
|
|
15
|
+
export interface DrawerNavItemProps {
|
|
16
|
+
icon?: ReactNode;
|
|
17
|
+
label: ReactNode;
|
|
18
|
+
badge?: string | number;
|
|
19
|
+
active?: boolean;
|
|
20
|
+
onClick?: () => void;
|
|
21
|
+
}
|
|
22
|
+
export declare function DrawerNavItem({ icon, label, badge, active, onClick }: DrawerNavItemProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export interface DrawerNavSectionProps {
|
|
24
|
+
title?: string;
|
|
25
|
+
children: ReactNode;
|
|
26
|
+
}
|
|
27
|
+
export declare function DrawerNavSection({ title, children }: DrawerNavSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export declare function MobileList({ className, ...props }: HTMLAttributes<HTMLUListElement>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export interface MobileListSectionProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
title?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function MobileListSection({ title, className, children, ...props }: MobileListSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export interface MobileListItemProps {
|
|
8
|
+
/** 左侧图标或头像区域 */
|
|
9
|
+
leading?: ReactNode;
|
|
10
|
+
/** 右侧自定义内容(如状态标签、数值) */
|
|
11
|
+
trailing?: ReactNode;
|
|
12
|
+
/** 主标签文本 */
|
|
13
|
+
label: ReactNode;
|
|
14
|
+
/** 副文本描述 */
|
|
15
|
+
description?: ReactNode;
|
|
16
|
+
/** 是否显示右侧箭头(表示可进入下一层) */
|
|
17
|
+
chevron?: boolean;
|
|
18
|
+
/** 破坏性操作,文字变为危险色 */
|
|
19
|
+
destructive?: boolean;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
onClick?: () => void;
|
|
22
|
+
className?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare function MobileListItem({ leading, trailing, label, description, chevron, destructive, disabled, onClick, className, }: MobileListItemProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface MobileShellProps {
|
|
3
|
+
/** 固定在顶部的导航栏区域 */
|
|
4
|
+
topBar?: ReactNode;
|
|
5
|
+
/** 固定在底部的导航栏区域 */
|
|
6
|
+
bottomNav?: ReactNode;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function MobileShell({ topBar, bottomNav, children, className }: MobileShellProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export interface MobileTopBarProps {
|
|
12
|
+
/** 标题文本或节点 */
|
|
13
|
+
title?: ReactNode;
|
|
14
|
+
/** 左侧区域,通常为返回按钮 */
|
|
15
|
+
leading?: ReactNode;
|
|
16
|
+
/** 右侧区域,通常为操作按钮 */
|
|
17
|
+
trailing?: ReactNode;
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare function MobileTopBar({ title, leading, trailing, className }: MobileTopBarProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export interface MobileIconButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
22
|
+
label: string;
|
|
23
|
+
}
|
|
24
|
+
export declare function MobileIconButton({ label, className, children, ...props }: MobileIconButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface ErrorPageProps {
|
|
2
|
+
statusCode?: number;
|
|
3
|
+
requestedPath?: string;
|
|
4
|
+
onHome: () => void;
|
|
5
|
+
onDocs: () => void;
|
|
6
|
+
onBack: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function ErrorPage({ statusCode, requestedPath, onHome, onDocs, onBack, }: ErrorPageProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface HomePageProps {
|
|
2
|
+
viewerName?: string | null;
|
|
3
|
+
onLogin: () => void;
|
|
4
|
+
onRegister: () => void;
|
|
5
|
+
onDocs: (pageKey?: string) => void;
|
|
6
|
+
onPrivacy: () => void;
|
|
7
|
+
onLogout?: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare function HomePage({ viewerName, onLogin, onRegister, onDocs, onPrivacy, onLogout, }: HomePageProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface LoginPageProps {
|
|
2
|
+
onLogin: (payload: {
|
|
3
|
+
email: string;
|
|
4
|
+
password: string;
|
|
5
|
+
remember: boolean;
|
|
6
|
+
}) => Promise<void> | void;
|
|
7
|
+
onRegister: () => void;
|
|
8
|
+
onGuest: () => void;
|
|
9
|
+
onBack: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function LoginPage({ onLogin, onRegister, onGuest, onBack }: LoginPageProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface RegisterPageProps {
|
|
2
|
+
onRegister: (payload: {
|
|
3
|
+
name: string;
|
|
4
|
+
email: string;
|
|
5
|
+
password: string;
|
|
6
|
+
}) => Promise<void> | void;
|
|
7
|
+
onLogin: () => void;
|
|
8
|
+
onGuest: () => void;
|
|
9
|
+
onPrivacy: () => void;
|
|
10
|
+
onTerms: () => void;
|
|
11
|
+
onBack: () => void;
|
|
12
|
+
}
|
|
13
|
+
export declare function RegisterPage({ onRegister, onLogin, onGuest, onPrivacy, onTerms, onBack }: RegisterPageProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|