asterui 0.10.2
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 +15 -0
- package/README.md +214 -0
- package/dist/components/Affix.d.ts +14 -0
- package/dist/components/Alert.d.ts +10 -0
- package/dist/components/Autocomplete.d.ts +18 -0
- package/dist/components/Avatar.d.ts +28 -0
- package/dist/components/Badge.d.ts +20 -0
- package/dist/components/Breadcrumb.d.ts +15 -0
- package/dist/components/Browser.d.ts +7 -0
- package/dist/components/Button.d.ts +23 -0
- package/dist/components/Card.d.ts +26 -0
- package/dist/components/Carousel.d.ts +14 -0
- package/dist/components/Cascader.d.ts +19 -0
- package/dist/components/Chart.d.ts +19 -0
- package/dist/components/Chat.d.ts +11 -0
- package/dist/components/Checkbox.d.ts +27 -0
- package/dist/components/Code.d.ts +14 -0
- package/dist/components/Collapse.d.ts +25 -0
- package/dist/components/ColorPicker.d.ts +10 -0
- package/dist/components/Container.d.ts +6 -0
- package/dist/components/ContextMenu.d.ts +23 -0
- package/dist/components/Countdown.d.ts +27 -0
- package/dist/components/DatePicker.d.ts +11 -0
- package/dist/components/Descriptions.d.ts +34 -0
- package/dist/components/Divider.d.ts +8 -0
- package/dist/components/Drawer.d.ts +10 -0
- package/dist/components/Dropdown.d.ts +39 -0
- package/dist/components/Empty.d.ts +8 -0
- package/dist/components/Fieldset.d.ts +15 -0
- package/dist/components/FileInput.d.ts +9 -0
- package/dist/components/Flex.d.ts +14 -0
- package/dist/components/FloatButton.d.ts +34 -0
- package/dist/components/Footer.d.ts +16 -0
- package/dist/components/Form.d.ts +66 -0
- package/dist/components/Grid.d.ts +26 -0
- package/dist/components/Hero.d.ts +9 -0
- package/dist/components/Image.d.ts +14 -0
- package/dist/components/Indicator.d.ts +7 -0
- package/dist/components/Input.d.ts +14 -0
- package/dist/components/InputNumber.d.ts +19 -0
- package/dist/components/Join.d.ts +6 -0
- package/dist/components/Label.d.ts +15 -0
- package/dist/components/Layout.d.ts +59 -0
- package/dist/components/List.d.ts +13 -0
- package/dist/components/Loading.d.ts +9 -0
- package/dist/components/Masonry.d.ts +15 -0
- package/dist/components/Mention.d.ts +30 -0
- package/dist/components/Menu.d.ts +45 -0
- package/dist/components/Modal.d.ts +42 -0
- package/dist/components/Navbar.d.ts +8 -0
- package/dist/components/Notification.d.ts +43 -0
- package/dist/components/OTPInput.d.ts +32 -0
- package/dist/components/PageLayout.d.ts +9 -0
- package/dist/components/Pagination.d.ts +18 -0
- package/dist/components/Phone.d.ts +8 -0
- package/dist/components/Popconfirm.d.ts +17 -0
- package/dist/components/Popover.d.ts +15 -0
- package/dist/components/Progress.d.ts +5 -0
- package/dist/components/QRCode.d.ts +19 -0
- package/dist/components/RadialProgress.d.ts +10 -0
- package/dist/components/Radio.d.ts +20 -0
- package/dist/components/Range.d.ts +16 -0
- package/dist/components/Rating.d.ts +22 -0
- package/dist/components/Responsive.d.ts +18 -0
- package/dist/components/Result.d.ts +12 -0
- package/dist/components/Select.d.ts +10 -0
- package/dist/components/Skeleton.d.ts +9 -0
- package/dist/components/Space.d.ts +10 -0
- package/dist/components/Splitter.d.ts +27 -0
- package/dist/components/Stack.d.ts +10 -0
- package/dist/components/Stat.d.ts +18 -0
- package/dist/components/Steps.d.ts +16 -0
- package/dist/components/Table.d.ts +51 -0
- package/dist/components/Tabs.d.ts +21 -0
- package/dist/components/Tag.d.ts +18 -0
- package/dist/components/Textarea.d.ts +9 -0
- package/dist/components/ThemeController.d.ts +20 -0
- package/dist/components/TimePicker.d.ts +12 -0
- package/dist/components/Timeline.d.ts +24 -0
- package/dist/components/Toggle.d.ts +7 -0
- package/dist/components/Tooltip.d.ts +9 -0
- package/dist/components/Transfer.d.ts +22 -0
- package/dist/components/Tree.d.ts +40 -0
- package/dist/components/TreeSelect.d.ts +20 -0
- package/dist/components/Typography.d.ts +53 -0
- package/dist/components/Upload.d.ts +38 -0
- package/dist/components/Window.d.ts +7 -0
- package/dist/hooks/useBreakpoint.d.ts +10 -0
- package/dist/index.d.ts +172 -0
- package/dist/index.js +182 -0
- package/dist/index.js.map +1 -0
- package/dist/index10.js +33 -0
- package/dist/index10.js.map +1 -0
- package/dist/index100.js +24 -0
- package/dist/index100.js.map +1 -0
- package/dist/index101.js +27 -0
- package/dist/index101.js.map +1 -0
- package/dist/index102.js +23 -0
- package/dist/index102.js.map +1 -0
- package/dist/index103.js +103 -0
- package/dist/index103.js.map +1 -0
- package/dist/index104.js +363 -0
- package/dist/index104.js.map +1 -0
- package/dist/index105.js +28 -0
- package/dist/index105.js.map +1 -0
- package/dist/index106.js +76 -0
- package/dist/index106.js.map +1 -0
- package/dist/index107.js +19 -0
- package/dist/index107.js.map +1 -0
- package/dist/index108.js +69 -0
- package/dist/index108.js.map +1 -0
- package/dist/index109.js +147 -0
- package/dist/index109.js.map +1 -0
- package/dist/index11.js +268 -0
- package/dist/index11.js.map +1 -0
- package/dist/index110.js +5 -0
- package/dist/index110.js.map +1 -0
- package/dist/index111.js +59 -0
- package/dist/index111.js.map +1 -0
- package/dist/index112.js +5 -0
- package/dist/index112.js.map +1 -0
- package/dist/index113.js +5 -0
- package/dist/index113.js.map +1 -0
- package/dist/index114.js +5 -0
- package/dist/index114.js.map +1 -0
- package/dist/index115.js +5 -0
- package/dist/index115.js.map +1 -0
- package/dist/index116.js +5 -0
- package/dist/index116.js.map +1 -0
- package/dist/index117.js +5 -0
- package/dist/index117.js.map +1 -0
- package/dist/index118.js +5 -0
- package/dist/index118.js.map +1 -0
- package/dist/index119.js +5 -0
- package/dist/index119.js.map +1 -0
- package/dist/index12.js +98 -0
- package/dist/index12.js.map +1 -0
- package/dist/index120.js +35 -0
- package/dist/index120.js.map +1 -0
- package/dist/index121.js +5 -0
- package/dist/index121.js.map +1 -0
- package/dist/index122.js +11 -0
- package/dist/index122.js.map +1 -0
- package/dist/index123.js +5 -0
- package/dist/index123.js.map +1 -0
- package/dist/index124.js +5 -0
- package/dist/index124.js.map +1 -0
- package/dist/index125.js +24 -0
- package/dist/index125.js.map +1 -0
- package/dist/index126.js +5 -0
- package/dist/index126.js.map +1 -0
- package/dist/index127.js +27 -0
- package/dist/index127.js.map +1 -0
- package/dist/index128.js +74 -0
- package/dist/index128.js.map +1 -0
- package/dist/index129.js +24 -0
- package/dist/index129.js.map +1 -0
- package/dist/index13.js +161 -0
- package/dist/index13.js.map +1 -0
- package/dist/index130.js +37 -0
- package/dist/index130.js.map +1 -0
- package/dist/index131.js +73 -0
- package/dist/index131.js.map +1 -0
- package/dist/index132.js +5 -0
- package/dist/index132.js.map +1 -0
- package/dist/index133.js +25 -0
- package/dist/index133.js.map +1 -0
- package/dist/index134.js +5 -0
- package/dist/index134.js.map +1 -0
- package/dist/index135.js +5 -0
- package/dist/index135.js.map +1 -0
- package/dist/index136.js +5 -0
- package/dist/index136.js.map +1 -0
- package/dist/index137.js +5 -0
- package/dist/index137.js.map +1 -0
- package/dist/index138.js +7 -0
- package/dist/index138.js.map +1 -0
- package/dist/index14.js +153 -0
- package/dist/index14.js.map +1 -0
- package/dist/index15.js +8 -0
- package/dist/index15.js.map +1 -0
- package/dist/index16.js +74 -0
- package/dist/index16.js.map +1 -0
- package/dist/index17.js +20 -0
- package/dist/index17.js.map +1 -0
- package/dist/index18.js +101 -0
- package/dist/index18.js.map +1 -0
- package/dist/index19.js +117 -0
- package/dist/index19.js.map +1 -0
- package/dist/index2.js +50 -0
- package/dist/index2.js.map +1 -0
- package/dist/index20.js +187 -0
- package/dist/index20.js.map +1 -0
- package/dist/index21.js +113 -0
- package/dist/index21.js.map +1 -0
- package/dist/index22.js +35 -0
- package/dist/index22.js.map +1 -0
- package/dist/index23.js +44 -0
- package/dist/index23.js.map +1 -0
- package/dist/index24.js +15 -0
- package/dist/index24.js.map +1 -0
- package/dist/index25.js +36 -0
- package/dist/index25.js.map +1 -0
- package/dist/index26.js +66 -0
- package/dist/index26.js.map +1 -0
- package/dist/index27.js +83 -0
- package/dist/index27.js.map +1 -0
- package/dist/index28.js +21 -0
- package/dist/index28.js.map +1 -0
- package/dist/index29.js +164 -0
- package/dist/index29.js.map +1 -0
- package/dist/index3.js +31 -0
- package/dist/index3.js.map +1 -0
- package/dist/index30.js +1085 -0
- package/dist/index30.js.map +1 -0
- package/dist/index31.js +21 -0
- package/dist/index31.js.map +1 -0
- package/dist/index32.js +125 -0
- package/dist/index32.js.map +1 -0
- package/dist/index33.js +43 -0
- package/dist/index33.js.map +1 -0
- package/dist/index34.js +194 -0
- package/dist/index34.js.map +1 -0
- package/dist/index35.js +100 -0
- package/dist/index35.js.map +1 -0
- package/dist/index36.js +165 -0
- package/dist/index36.js.map +1 -0
- package/dist/index37.js +149 -0
- package/dist/index37.js.map +1 -0
- package/dist/index38.js +18 -0
- package/dist/index38.js.map +1 -0
- package/dist/index39.js +24 -0
- package/dist/index39.js.map +1 -0
- package/dist/index4.js +104 -0
- package/dist/index4.js.map +1 -0
- package/dist/index40.js +122 -0
- package/dist/index40.js.map +1 -0
- package/dist/index41.js +16 -0
- package/dist/index41.js.map +1 -0
- package/dist/index42.js +38 -0
- package/dist/index42.js.map +1 -0
- package/dist/index43.js +119 -0
- package/dist/index43.js.map +1 -0
- package/dist/index44.js +179 -0
- package/dist/index44.js.map +1 -0
- package/dist/index45.js +150 -0
- package/dist/index45.js.map +1 -0
- package/dist/index46.js +15 -0
- package/dist/index46.js.map +1 -0
- package/dist/index47.js +25 -0
- package/dist/index47.js.map +1 -0
- package/dist/index48.js +17 -0
- package/dist/index48.js.map +1 -0
- package/dist/index49.js +10 -0
- package/dist/index49.js.map +1 -0
- package/dist/index5.js +64 -0
- package/dist/index5.js.map +1 -0
- package/dist/index50.js +269 -0
- package/dist/index50.js.map +1 -0
- package/dist/index51.js +20 -0
- package/dist/index51.js.map +1 -0
- package/dist/index52.js +125 -0
- package/dist/index52.js.map +1 -0
- package/dist/index53.js +113 -0
- package/dist/index53.js.map +1 -0
- package/dist/index54.js +173 -0
- package/dist/index54.js.map +1 -0
- package/dist/index55.js +35 -0
- package/dist/index55.js.map +1 -0
- package/dist/index56.js +125 -0
- package/dist/index56.js.map +1 -0
- package/dist/index57.js +89 -0
- package/dist/index57.js.map +1 -0
- package/dist/index58.js +23 -0
- package/dist/index58.js.map +1 -0
- package/dist/index59.js +77 -0
- package/dist/index59.js.map +1 -0
- package/dist/index6.js +133 -0
- package/dist/index6.js.map +1 -0
- package/dist/index60.js +60 -0
- package/dist/index60.js.map +1 -0
- package/dist/index61.js +48 -0
- package/dist/index61.js.map +1 -0
- package/dist/index62.js +55 -0
- package/dist/index62.js.map +1 -0
- package/dist/index63.js +65 -0
- package/dist/index63.js.map +1 -0
- package/dist/index64.js +110 -0
- package/dist/index64.js.map +1 -0
- package/dist/index65.js +44 -0
- package/dist/index65.js.map +1 -0
- package/dist/index66.js +24 -0
- package/dist/index66.js.map +1 -0
- package/dist/index67.js +49 -0
- package/dist/index67.js.map +1 -0
- package/dist/index68.js +137 -0
- package/dist/index68.js.map +1 -0
- package/dist/index69.js +55 -0
- package/dist/index69.js.map +1 -0
- package/dist/index7.js +14 -0
- package/dist/index7.js.map +1 -0
- package/dist/index70.js +25 -0
- package/dist/index70.js.map +1 -0
- package/dist/index71.js +25 -0
- package/dist/index71.js.map +1 -0
- package/dist/index72.js +332 -0
- package/dist/index72.js.map +1 -0
- package/dist/index73.js +59 -0
- package/dist/index73.js.map +1 -0
- package/dist/index74.js +43 -0
- package/dist/index74.js.map +1 -0
- package/dist/index75.js +98 -0
- package/dist/index75.js.map +1 -0
- package/dist/index76.js +133 -0
- package/dist/index76.js.map +1 -0
- package/dist/index77.js +164 -0
- package/dist/index77.js.map +1 -0
- package/dist/index78.js +68 -0
- package/dist/index78.js.map +1 -0
- package/dist/index79.js +38 -0
- package/dist/index79.js.map +1 -0
- package/dist/index8.js +73 -0
- package/dist/index8.js.map +1 -0
- package/dist/index80.js +37 -0
- package/dist/index80.js.map +1 -0
- package/dist/index81.js +213 -0
- package/dist/index81.js.map +1 -0
- package/dist/index82.js +216 -0
- package/dist/index82.js.map +1 -0
- package/dist/index83.js +298 -0
- package/dist/index83.js.map +1 -0
- package/dist/index84.js +181 -0
- package/dist/index84.js.map +1 -0
- package/dist/index85.js +261 -0
- package/dist/index85.js.map +1 -0
- package/dist/index86.js +17 -0
- package/dist/index86.js.map +1 -0
- package/dist/index87.js +36 -0
- package/dist/index87.js.map +1 -0
- package/dist/index88.js +10796 -0
- package/dist/index88.js.map +1 -0
- package/dist/index89.js +8 -0
- package/dist/index89.js.map +1 -0
- package/dist/index9.js +95 -0
- package/dist/index9.js.map +1 -0
- package/dist/index90.js +45 -0
- package/dist/index90.js.map +1 -0
- package/dist/index91.js +5 -0
- package/dist/index91.js.map +1 -0
- package/dist/index92.js +10 -0
- package/dist/index92.js.map +1 -0
- package/dist/index93.js +155 -0
- package/dist/index93.js.map +1 -0
- package/dist/index94.js +33 -0
- package/dist/index94.js.map +1 -0
- package/dist/index95.js +33 -0
- package/dist/index95.js.map +1 -0
- package/dist/index96.js +5 -0
- package/dist/index96.js.map +1 -0
- package/dist/index97.js +75 -0
- package/dist/index97.js.map +1 -0
- package/dist/index98.js +42 -0
- package/dist/index98.js.map +1 -0
- package/dist/index99.js +29 -0
- package/dist/index99.js.map +1 -0
- package/package.json +71 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface DividerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
orientation?: 'horizontal' | 'vertical';
|
|
5
|
+
position?: 'start' | 'center' | 'end';
|
|
6
|
+
type?: 'neutral' | 'primary' | 'secondary' | 'accent' | 'success' | 'warning' | 'info' | 'error';
|
|
7
|
+
}
|
|
8
|
+
export declare function Divider({ children, orientation, position, type, className, ...rest }: DividerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface DrawerProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
sidebar: React.ReactNode;
|
|
5
|
+
open?: boolean;
|
|
6
|
+
onOpenChange?: (open: boolean) => void;
|
|
7
|
+
end?: boolean;
|
|
8
|
+
sidebarClassName?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const Drawer: React.FC<DrawerProps>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface DropdownProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
hover?: boolean;
|
|
5
|
+
position?: 'top' | 'bottom' | 'left' | 'right';
|
|
6
|
+
align?: 'start' | 'center' | 'end';
|
|
7
|
+
}
|
|
8
|
+
export interface DropdownTriggerProps {
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface DropdownMenuProps {
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface DropdownItemProps {
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
onClick?: () => void;
|
|
19
|
+
active?: boolean;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
danger?: boolean;
|
|
22
|
+
className?: string;
|
|
23
|
+
_index?: number;
|
|
24
|
+
}
|
|
25
|
+
export interface DropdownDividerProps {
|
|
26
|
+
className?: string;
|
|
27
|
+
}
|
|
28
|
+
declare function DropdownRoot({ children, hover, position, align, className, ...rest }: DropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
declare function DropdownTrigger({ children, className }: DropdownTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
declare function DropdownMenu({ children, className }: DropdownMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
declare function DropdownItem({ children, onClick, active, disabled, danger, className, }: DropdownItemProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
declare function DropdownDivider({ className }: DropdownDividerProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export declare const Dropdown: typeof DropdownRoot & {
|
|
34
|
+
Trigger: typeof DropdownTrigger;
|
|
35
|
+
Menu: typeof DropdownMenu;
|
|
36
|
+
Item: typeof DropdownItem;
|
|
37
|
+
Divider: typeof DropdownDivider;
|
|
38
|
+
};
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface EmptyProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
description?: React.ReactNode;
|
|
5
|
+
image?: React.ReactNode;
|
|
6
|
+
imageStyle?: React.CSSProperties;
|
|
7
|
+
}
|
|
8
|
+
export declare const Empty: React.FC<EmptyProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface FieldsetProps extends React.FieldsetHTMLAttributes<HTMLFieldSetElement> {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface FieldsetLegendProps {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
declare function FieldsetRoot({ children, className, ...props }: FieldsetProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function FieldsetLegend({ children, className }: FieldsetLegendProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const Fieldset: typeof FieldsetRoot & {
|
|
13
|
+
Legend: typeof FieldsetLegend;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface FileInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'> {
|
|
3
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
4
|
+
color?: 'neutral' | 'primary' | 'secondary' | 'accent' | 'info' | 'success' | 'warning' | 'error';
|
|
5
|
+
ghost?: boolean;
|
|
6
|
+
bordered?: boolean;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const FileInput: React.ForwardRefExoticComponent<FileInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface FlexProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
direction?: 'row' | 'column' | 'row-reverse' | 'column-reverse';
|
|
4
|
+
justify?: 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly';
|
|
5
|
+
align?: 'start' | 'end' | 'center' | 'baseline' | 'stretch';
|
|
6
|
+
wrap?: boolean | 'wrap' | 'nowrap' | 'wrap-reverse';
|
|
7
|
+
gap?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | number;
|
|
8
|
+
flex?: '1' | 'auto' | 'initial' | 'none';
|
|
9
|
+
inline?: boolean;
|
|
10
|
+
minHeight?: 'screen' | 'full' | 'fit' | 'min' | 'max';
|
|
11
|
+
minWidth?: 'full' | 'fit' | 'min' | 'max';
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export declare const Flex: React.FC<FlexProps>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface FloatButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'type'> {
|
|
3
|
+
/** Button content (icon or text) */
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
/** Button type/color */
|
|
6
|
+
type?: 'default' | 'primary' | 'secondary' | 'accent';
|
|
7
|
+
/** Button shape */
|
|
8
|
+
shape?: 'circle' | 'square';
|
|
9
|
+
/** Position on screen */
|
|
10
|
+
position?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
|
|
11
|
+
/** Distance from edge in pixels */
|
|
12
|
+
offset?: number;
|
|
13
|
+
/** Tooltip text */
|
|
14
|
+
tooltip?: string;
|
|
15
|
+
/** Tooltip placement */
|
|
16
|
+
tooltipPlacement?: 'left' | 'right' | 'top' | 'bottom';
|
|
17
|
+
}
|
|
18
|
+
export interface BackTopProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'type' | 'onClick'> {
|
|
19
|
+
/** Scroll threshold to show button (pixels) */
|
|
20
|
+
visibilityHeight?: number;
|
|
21
|
+
/** Scroll target (default: window) */
|
|
22
|
+
target?: () => HTMLElement | Window;
|
|
23
|
+
/** Click handler (called before scrolling) */
|
|
24
|
+
onClick?: () => void;
|
|
25
|
+
/** Custom content */
|
|
26
|
+
children?: React.ReactNode;
|
|
27
|
+
/** Position on screen */
|
|
28
|
+
position?: 'bottom-right' | 'bottom-left';
|
|
29
|
+
/** Distance from edge in pixels */
|
|
30
|
+
offset?: number;
|
|
31
|
+
}
|
|
32
|
+
export declare const FloatButton: React.FC<FloatButtonProps> & {
|
|
33
|
+
BackTop: React.FC<BackTopProps>;
|
|
34
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface FooterProps extends React.HTMLAttributes<HTMLElement> {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
center?: boolean;
|
|
5
|
+
horizontal?: boolean;
|
|
6
|
+
vertical?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface FooterTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
declare function FooterRoot({ children, className, center, horizontal, vertical, ...rest }: FooterProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function FooterTitle({ children, className, ...rest }: FooterTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const Footer: typeof FooterRoot & {
|
|
14
|
+
Title: typeof FooterTitle;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { UseFormReturn, FieldValues, SubmitHandler, UseFormProps, FieldArrayPath, FieldArray } from 'react-hook-form';
|
|
3
|
+
export interface FormProps<TFieldValues extends FieldValues = FieldValues> extends Omit<React.FormHTMLAttributes<HTMLFormElement>, 'onSubmit'> {
|
|
4
|
+
form?: UseFormReturn<TFieldValues>;
|
|
5
|
+
onFinish?: SubmitHandler<TFieldValues>;
|
|
6
|
+
initialValues?: UseFormProps<TFieldValues>['defaultValues'];
|
|
7
|
+
layout?: 'vertical' | 'horizontal' | 'inline';
|
|
8
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export interface FormRule {
|
|
12
|
+
required?: boolean | string;
|
|
13
|
+
type?: 'email' | 'url' | 'number';
|
|
14
|
+
min?: number | {
|
|
15
|
+
value: number;
|
|
16
|
+
message: string;
|
|
17
|
+
};
|
|
18
|
+
max?: number | {
|
|
19
|
+
value: number;
|
|
20
|
+
message: string;
|
|
21
|
+
};
|
|
22
|
+
pattern?: RegExp | {
|
|
23
|
+
value: RegExp;
|
|
24
|
+
message: string;
|
|
25
|
+
};
|
|
26
|
+
message?: string;
|
|
27
|
+
validate?: (value: any) => boolean | string | Promise<boolean | string>;
|
|
28
|
+
}
|
|
29
|
+
export interface FormItemProps {
|
|
30
|
+
name?: string | string[];
|
|
31
|
+
label?: string;
|
|
32
|
+
help?: string;
|
|
33
|
+
required?: boolean;
|
|
34
|
+
rules?: FormRule | FormRule[];
|
|
35
|
+
valuePropName?: string;
|
|
36
|
+
inline?: boolean;
|
|
37
|
+
className?: string;
|
|
38
|
+
children: React.ReactElement;
|
|
39
|
+
}
|
|
40
|
+
export interface FormListProps<TFieldValues extends FieldValues = FieldValues> {
|
|
41
|
+
name: FieldArrayPath<TFieldValues>;
|
|
42
|
+
children: (fields: FieldArray<TFieldValues>[], operations: {
|
|
43
|
+
add: (value?: any) => void;
|
|
44
|
+
remove: (index: number) => void;
|
|
45
|
+
move: (from: number, to: number) => void;
|
|
46
|
+
}) => React.ReactNode;
|
|
47
|
+
}
|
|
48
|
+
declare function FormRoot<TFieldValues extends FieldValues = FieldValues>({ form: externalForm, onFinish, initialValues, layout, size, children, className, noValidate, ...props }: FormProps<TFieldValues>): import("react/jsx-runtime").JSX.Element;
|
|
49
|
+
declare function FormItem({ name, label, help, required, rules, valuePropName, inline, className, children, }: FormItemProps): import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
declare function FormList<TFieldValues extends FieldValues = FieldValues>({ name, children, }: FormListProps<TFieldValues>): import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
export declare function useFormInstance<TFieldValues extends FieldValues = FieldValues>(): UseFormReturn<TFieldValues, any, TFieldValues> & {
|
|
52
|
+
setFieldValue: import('react-hook-form').UseFormSetValue<TFieldValues>;
|
|
53
|
+
getFieldValue: (name: any) => any;
|
|
54
|
+
getFieldsValue: import('react-hook-form').UseFormGetValues<TFieldValues>;
|
|
55
|
+
setFieldsValue: (values: any) => void;
|
|
56
|
+
validateFields: import('react-hook-form').UseFormTrigger<TFieldValues>;
|
|
57
|
+
resetFields: import('react-hook-form').UseFormReset<TFieldValues>;
|
|
58
|
+
isFieldTouched: (name: string) => boolean;
|
|
59
|
+
getFieldError: (name: string) => string | undefined;
|
|
60
|
+
};
|
|
61
|
+
export declare const Form: typeof FormRoot & {
|
|
62
|
+
Item: typeof FormItem;
|
|
63
|
+
List: typeof FormList;
|
|
64
|
+
useForm: typeof useFormInstance;
|
|
65
|
+
};
|
|
66
|
+
export type { UseFormReturn as FormInstance };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface RowProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
cols?: 24 | 120;
|
|
5
|
+
gutter?: number | [number, number];
|
|
6
|
+
justify?: 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly';
|
|
7
|
+
align?: 'start' | 'end' | 'center' | 'stretch' | 'baseline';
|
|
8
|
+
}
|
|
9
|
+
export interface ColProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
span?: number;
|
|
12
|
+
offset?: number;
|
|
13
|
+
order?: number;
|
|
14
|
+
xs?: number;
|
|
15
|
+
sm?: number;
|
|
16
|
+
md?: number;
|
|
17
|
+
lg?: number;
|
|
18
|
+
xl?: number;
|
|
19
|
+
xxl?: number;
|
|
20
|
+
}
|
|
21
|
+
export declare function Row({ children, cols, gutter, justify, align, className, style: userStyle, ...rest }: RowProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare function Col({ children, span, offset, order, xs, sm, md, lg, xl, xxl, className, ...rest }: ColProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare const Grid: {
|
|
24
|
+
Row: typeof Row;
|
|
25
|
+
Col: typeof Col;
|
|
26
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface HeroProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
overlay?: boolean;
|
|
5
|
+
overlayClassName?: string;
|
|
6
|
+
contentClassName?: string;
|
|
7
|
+
wrapperClassName?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function Hero({ children, overlay, overlayClassName, contentClassName, wrapperClassName, className, style, ...rest }: HeroProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface ImageProps extends Omit<React.ImgHTMLAttributes<HTMLImageElement>, 'placeholder'> {
|
|
3
|
+
src: string;
|
|
4
|
+
alt?: string;
|
|
5
|
+
fallback?: string;
|
|
6
|
+
placeholder?: React.ReactNode;
|
|
7
|
+
preview?: boolean;
|
|
8
|
+
width?: string | number;
|
|
9
|
+
height?: string | number;
|
|
10
|
+
className?: string;
|
|
11
|
+
onLoad?: () => void;
|
|
12
|
+
onError?: () => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const Image: React.FC<ImageProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type IndicatorPosition = 'top-start' | 'top-center' | 'top-end' | 'middle-start' | 'middle-center' | 'middle-end' | 'bottom-start' | 'bottom-center' | 'bottom-end';
|
|
3
|
+
export interface IndicatorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
position?: IndicatorPosition;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare const Indicator: React.FC<IndicatorProps>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
3
|
+
type?: 'text' | 'password' | 'email' | 'number' | 'date' | 'datetime-local' | 'week' | 'month' | 'tel' | 'url' | 'search' | 'time';
|
|
4
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
5
|
+
color?: 'neutral' | 'primary' | 'secondary' | 'accent' | 'info' | 'success' | 'warning' | 'error';
|
|
6
|
+
ghost?: boolean;
|
|
7
|
+
bordered?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
/** Input mask pattern. Use # for digits, A for letters, * for alphanumeric */
|
|
10
|
+
mask?: string;
|
|
11
|
+
/** Placeholder character shown in mask (default: _) */
|
|
12
|
+
maskPlaceholder?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface InputNumberProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'onChange' | 'value' | 'defaultValue'> {
|
|
3
|
+
value?: number;
|
|
4
|
+
defaultValue?: number;
|
|
5
|
+
min?: number;
|
|
6
|
+
max?: number;
|
|
7
|
+
step?: number;
|
|
8
|
+
precision?: number;
|
|
9
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
onChange?: (value: number | null) => void;
|
|
12
|
+
formatter?: (value: number | undefined) => string;
|
|
13
|
+
parser?: (displayValue: string) => number;
|
|
14
|
+
className?: string;
|
|
15
|
+
controls?: boolean;
|
|
16
|
+
block?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare const InputNumber: React.ForwardRefExoticComponent<InputNumberProps & React.RefAttributes<HTMLInputElement>>;
|
|
19
|
+
export default InputNumber;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface JoinProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
vertical?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare function Join({ children, vertical, className, ...rest }: JoinProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface LabelProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
}
|
|
5
|
+
export interface FloatingLabelProps extends React.LabelHTMLAttributes<HTMLLabelElement> {
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
label: string;
|
|
8
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
9
|
+
}
|
|
10
|
+
declare function LabelRoot({ children, className, ...rest }: LabelProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function FloatingLabel({ children, label, size, className, ...rest }: FloatingLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const Label: typeof LabelRoot & {
|
|
13
|
+
Floating: typeof FloatingLabel;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface LayoutProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
style?: React.CSSProperties;
|
|
6
|
+
}
|
|
7
|
+
export interface LayoutHeaderProps {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
className?: string;
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
}
|
|
12
|
+
export interface LayoutFooterProps {
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
className?: string;
|
|
15
|
+
style?: React.CSSProperties;
|
|
16
|
+
}
|
|
17
|
+
export interface LayoutContentProps {
|
|
18
|
+
children: React.ReactNode;
|
|
19
|
+
className?: string;
|
|
20
|
+
style?: React.CSSProperties;
|
|
21
|
+
}
|
|
22
|
+
export interface LayoutSiderProps {
|
|
23
|
+
children: React.ReactNode;
|
|
24
|
+
width?: number | string;
|
|
25
|
+
collapsedWidth?: number | string;
|
|
26
|
+
collapsed?: boolean;
|
|
27
|
+
defaultCollapsed?: boolean;
|
|
28
|
+
collapsible?: boolean;
|
|
29
|
+
onCollapse?: (collapsed: boolean) => void;
|
|
30
|
+
trigger?: React.ReactNode | null;
|
|
31
|
+
breakpoint?: 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
32
|
+
onBreakpoint?: (broken: boolean) => void;
|
|
33
|
+
className?: string;
|
|
34
|
+
style?: React.CSSProperties;
|
|
35
|
+
}
|
|
36
|
+
interface SiderContextValue {
|
|
37
|
+
collapsed: boolean;
|
|
38
|
+
collapsedWidth: number | string;
|
|
39
|
+
width: number | string;
|
|
40
|
+
}
|
|
41
|
+
export declare function useSiderContext(): SiderContextValue | null;
|
|
42
|
+
declare function LayoutRoot({ children, className, style }: LayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
declare namespace LayoutRoot {
|
|
44
|
+
var displayName: string;
|
|
45
|
+
}
|
|
46
|
+
declare function LayoutHeader({ children, className, style }: LayoutHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
declare function LayoutFooter({ children, className, style }: LayoutFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
declare function LayoutContent({ children, className, style }: LayoutContentProps): import("react/jsx-runtime").JSX.Element;
|
|
49
|
+
declare function LayoutSider({ children, width, collapsedWidth, collapsed: controlledCollapsed, defaultCollapsed, collapsible, onCollapse, trigger, className, style, }: LayoutSiderProps): import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
declare namespace LayoutSider {
|
|
51
|
+
var displayName: string;
|
|
52
|
+
}
|
|
53
|
+
export declare const Layout: typeof LayoutRoot & {
|
|
54
|
+
Header: typeof LayoutHeader;
|
|
55
|
+
Footer: typeof LayoutFooter;
|
|
56
|
+
Content: typeof LayoutContent;
|
|
57
|
+
Sider: typeof LayoutSider;
|
|
58
|
+
};
|
|
59
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface ListProps extends React.HTMLAttributes<HTMLUListElement> {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
}
|
|
5
|
+
export interface ListRowProps extends React.LiHTMLAttributes<HTMLLIElement> {
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
declare function ListRoot({ children, className, ...rest }: ListProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function ListRow({ children, className, ...rest }: ListRowProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const List: typeof ListRoot & {
|
|
11
|
+
Row: typeof ListRow;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface LoadingProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
4
|
+
type?: 'spinner' | 'dots' | 'ring' | 'ball' | 'bars' | 'infinity';
|
|
5
|
+
spinning?: boolean;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
tip?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const Loading: React.FC<LoadingProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface MasonryProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
columns?: number | {
|
|
5
|
+
xs?: number;
|
|
6
|
+
sm?: number;
|
|
7
|
+
md?: number;
|
|
8
|
+
lg?: number;
|
|
9
|
+
xl?: number;
|
|
10
|
+
'2xl'?: number;
|
|
11
|
+
};
|
|
12
|
+
gap?: number | string;
|
|
13
|
+
}
|
|
14
|
+
export declare const Masonry: React.FC<MasonryProps>;
|
|
15
|
+
export default Masonry;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface MentionOption {
|
|
3
|
+
value: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
avatar?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface MentionProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onSelect' | 'defaultValue' | 'prefix'> {
|
|
9
|
+
value?: string;
|
|
10
|
+
defaultValue?: string;
|
|
11
|
+
onChange?: (value: string) => void;
|
|
12
|
+
onSelect?: (option: MentionOption, prefix: string) => void;
|
|
13
|
+
onSearch?: (text: string, prefix: string) => void;
|
|
14
|
+
options?: MentionOption[];
|
|
15
|
+
loading?: boolean;
|
|
16
|
+
prefix?: string | string[];
|
|
17
|
+
split?: string;
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
readOnly?: boolean;
|
|
21
|
+
rows?: number;
|
|
22
|
+
autoSize?: boolean | {
|
|
23
|
+
minRows?: number;
|
|
24
|
+
maxRows?: number;
|
|
25
|
+
};
|
|
26
|
+
notFoundContent?: React.ReactNode;
|
|
27
|
+
filterOption?: boolean | ((input: string, option: MentionOption) => boolean);
|
|
28
|
+
dropdownClassName?: string;
|
|
29
|
+
}
|
|
30
|
+
export declare const Mention: React.FC<MentionProps>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type MenuMode = 'vertical' | 'horizontal' | 'inline';
|
|
3
|
+
export interface MenuProps extends Omit<React.HTMLAttributes<HTMLUListElement>, 'onSelect'> {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
mode?: MenuMode;
|
|
6
|
+
selectedKeys?: string[];
|
|
7
|
+
defaultSelectedKeys?: string[];
|
|
8
|
+
openKeys?: string[];
|
|
9
|
+
defaultOpenKeys?: string[];
|
|
10
|
+
onSelect?: (key: string) => void;
|
|
11
|
+
onOpenChange?: (openKeys: string[]) => void;
|
|
12
|
+
}
|
|
13
|
+
export interface MenuItemProps extends Omit<React.HTMLAttributes<HTMLAnchorElement>, 'onClick'> {
|
|
14
|
+
children: React.ReactNode;
|
|
15
|
+
itemKey?: string;
|
|
16
|
+
icon?: React.ReactNode;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
onClick?: () => void;
|
|
19
|
+
/** @deprecated Use itemKey and selectedKeys instead */
|
|
20
|
+
active?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface MenuSubMenuProps extends React.HTMLAttributes<HTMLLIElement> {
|
|
23
|
+
children: React.ReactNode;
|
|
24
|
+
itemKey: string;
|
|
25
|
+
label: React.ReactNode;
|
|
26
|
+
icon?: React.ReactNode;
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export interface MenuTitleProps extends React.HTMLAttributes<HTMLLIElement> {
|
|
30
|
+
children: React.ReactNode;
|
|
31
|
+
}
|
|
32
|
+
export interface MenuDividerProps extends React.HTMLAttributes<HTMLLIElement> {
|
|
33
|
+
}
|
|
34
|
+
declare function MenuRoot({ children, mode, selectedKeys: controlledSelectedKeys, defaultSelectedKeys, openKeys: controlledOpenKeys, defaultOpenKeys, onSelect, onOpenChange, className, ...rest }: MenuProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
declare function MenuItem({ children, itemKey, icon, disabled, onClick, active, className, ...rest }: MenuItemProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
declare function MenuSubMenu({ children, itemKey, label, icon, disabled, className, ...rest }: MenuSubMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
declare function MenuTitle({ children, className, ...rest }: MenuTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
declare function MenuDivider({ className, ...rest }: MenuDividerProps): import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
export declare const Menu: typeof MenuRoot & {
|
|
40
|
+
Item: typeof MenuItem;
|
|
41
|
+
SubMenu: typeof MenuSubMenu;
|
|
42
|
+
Title: typeof MenuTitle;
|
|
43
|
+
Divider: typeof MenuDivider;
|
|
44
|
+
};
|
|
45
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface ModalProps extends Omit<React.HTMLAttributes<HTMLDialogElement>, 'title'> {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
title?: React.ReactNode;
|
|
5
|
+
footer?: React.ReactNode;
|
|
6
|
+
open?: boolean;
|
|
7
|
+
onOk?: () => void | Promise<void>;
|
|
8
|
+
onCancel?: () => void;
|
|
9
|
+
okText?: string;
|
|
10
|
+
cancelText?: string;
|
|
11
|
+
maskClosable?: boolean;
|
|
12
|
+
closable?: boolean;
|
|
13
|
+
position?: 'top' | 'middle' | 'bottom';
|
|
14
|
+
align?: 'start' | 'end';
|
|
15
|
+
}
|
|
16
|
+
export interface ModalFuncProps {
|
|
17
|
+
title?: React.ReactNode;
|
|
18
|
+
content?: React.ReactNode;
|
|
19
|
+
onOk?: () => void | Promise<void>;
|
|
20
|
+
onCancel?: () => void;
|
|
21
|
+
okText?: string;
|
|
22
|
+
cancelText?: string;
|
|
23
|
+
type?: 'info' | 'success' | 'warning' | 'error';
|
|
24
|
+
}
|
|
25
|
+
export declare function Modal({ children, title, footer, open, onOk, onCancel, okText, cancelText, maskClosable, closable, position, align, className, ...rest }: ModalProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare namespace Modal {
|
|
27
|
+
var confirm: (config: ModalFuncProps) => {
|
|
28
|
+
destroy: () => void;
|
|
29
|
+
};
|
|
30
|
+
var info: (config: ModalFuncProps) => {
|
|
31
|
+
destroy: () => void;
|
|
32
|
+
};
|
|
33
|
+
var success: (config: ModalFuncProps) => {
|
|
34
|
+
destroy: () => void;
|
|
35
|
+
};
|
|
36
|
+
var warning: (config: ModalFuncProps) => {
|
|
37
|
+
destroy: () => void;
|
|
38
|
+
};
|
|
39
|
+
var error: (config: ModalFuncProps) => {
|
|
40
|
+
destroy: () => void;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface NavbarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
start?: React.ReactNode;
|
|
5
|
+
center?: React.ReactNode;
|
|
6
|
+
end?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const Navbar: React.FC<NavbarProps>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type NotificationType = 'success' | 'info' | 'warning' | 'error';
|
|
3
|
+
export type NotificationPlacement = 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
|
|
4
|
+
export interface NotificationConfig {
|
|
5
|
+
message: React.ReactNode;
|
|
6
|
+
description?: React.ReactNode;
|
|
7
|
+
type?: NotificationType;
|
|
8
|
+
duration?: number;
|
|
9
|
+
placement?: NotificationPlacement;
|
|
10
|
+
closable?: boolean;
|
|
11
|
+
onClick?: () => void;
|
|
12
|
+
onClose?: () => void;
|
|
13
|
+
}
|
|
14
|
+
interface NotificationItem extends NotificationConfig {
|
|
15
|
+
id: string;
|
|
16
|
+
createdAt: number;
|
|
17
|
+
}
|
|
18
|
+
type Listener = () => void;
|
|
19
|
+
declare class NotificationManager {
|
|
20
|
+
private notifications;
|
|
21
|
+
private listeners;
|
|
22
|
+
private container;
|
|
23
|
+
private root;
|
|
24
|
+
private idCounter;
|
|
25
|
+
subscribe(listener: Listener): () => void;
|
|
26
|
+
getNotifications(): NotificationItem[];
|
|
27
|
+
private emit;
|
|
28
|
+
private ensureContainer;
|
|
29
|
+
open(config: NotificationConfig): string;
|
|
30
|
+
close(id: string): void;
|
|
31
|
+
success(config: Omit<NotificationConfig, 'type'>): string;
|
|
32
|
+
error(config: Omit<NotificationConfig, 'type'>): string;
|
|
33
|
+
info(config: Omit<NotificationConfig, 'type'>): string;
|
|
34
|
+
warning(config: Omit<NotificationConfig, 'type'>): string;
|
|
35
|
+
destroy(): void;
|
|
36
|
+
}
|
|
37
|
+
interface NotificationItemProps {
|
|
38
|
+
notification: NotificationItem;
|
|
39
|
+
onClose: () => void;
|
|
40
|
+
}
|
|
41
|
+
declare function NotificationItem({ notification, onClose }: NotificationItemProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
export declare const notification: NotificationManager;
|
|
43
|
+
export {};
|